diff -Nru gettext-0.17/aclocal.m4 gettext-0.18.1.1/aclocal.m4 --- gettext-0.17/aclocal.m4 2007-11-06 23:53:39.000000000 +0000 +++ gettext-0.18.1.1/aclocal.m4 2010-06-06 20:12:40.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,8 +11,10 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -24,10 +26,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' +[am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -41,10 +43,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -102,13 +106,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 +# serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. @@ -125,7 +129,7 @@ # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl +[AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -176,8 +180,8 @@ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -185,24 +189,37 @@ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -213,18 +230,19 @@ # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $1 | $1:* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -235,7 +253,14 @@ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -261,14 +286,14 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -285,7 +310,14 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -323,13 +355,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -346,7 +378,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -356,14 +388,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -372,16 +404,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -406,6 +451,33 @@ fi AC_MSG_RESULT(yes)]) +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -434,18 +506,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 2 + # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. @@ -542,3 +621,4 @@ AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([m4/init-package-version.m4]) diff -Nru gettext-0.17/AUTHORS gettext-0.18.1.1/AUTHORS --- gettext-0.17/AUTHORS 2007-09-14 23:02:36.000000000 +0000 +++ gettext-0.18.1.1/AUTHORS 2010-06-06 12:49:57.000000000 +0000 @@ -3,16 +3,40 @@ The following contributions warranted legal paper exchanges with the Free Software Foundation. Also see files ChangeLog and THANKS. -GETTEXT Ulrich Drepper -Assigns program. +GETTEXT Ulrich Drepper +Assigns program and future changes. -GETTEXT Peter Miller +GETTEXT Peter Miller Assigns past and future changes. -GETTEXT Bruno Haible +GETTEXT François Pinard Assigns past and future changes. -GETTEXT Karl Eichwalder +GETTEXT Ben Kasmin Bullock +Disclaims changes to manual. + +GETTEXT Bruno Haible +Assigns past and future changes. + +GETTEXT Tim Van Holder Assigns past and future changes. -GETTEXT SuSE Linux AG 2002-07-03 + +GETTEXT Tommy Johansson +Assigns changes. (changed: xgettext.c, configure.in; added: x-java.[lh]) + +GETTEXT Karl Eichwalder +Assigns past and future changes. +GETTEXT SuSE Linux AG 2002-07-03 Disclaimer for Karl Eichwalder, in the past and for the next 5 years. + +GETTEXT Alexandre Duret-Lutz +Assigns past and future changes. + +GETTEXT Guido Flohr +Assigns past and future changes. + +GETTEXT Michele Cicciotti alias KJK::Hyperion +Assigns past and future changes. + +GETTEXT Noritada Kobayashi +Assigns past and future changes. diff -Nru gettext-0.17/autoconf-lib-link/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/aclocal.m4 --- gettext-0.17/autoconf-lib-link/aclocal.m4 2007-11-06 23:32:12.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,862 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([../m4/fixautomake.m4]) -m4_include([../m4/libtool.m4]) -m4_include([../m4/woe32-dll.m4]) -m4_include([m4/lib-prefix.m4]) diff -Nru gettext-0.17/autoconf-lib-link/AUTHORS gettext-0.18.1.1/autoconf-lib-link/AUTHORS --- gettext-0.17/autoconf-lib-link/AUTHORS 2003-02-14 20:17:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/AUTHORS 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Bruno Haible wrote these autoconf macros. diff -Nru gettext-0.17/autoconf-lib-link/ChangeLog gettext-0.18.1.1/autoconf-lib-link/ChangeLog --- gettext-0.17/autoconf-lib-link/ChangeLog 2007-11-06 23:24:34.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,265 +0,0 @@ -2007-11-07 Bruno Haible - - * gettext-0.17 released. - -2007-06-27 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.24. - -2006-12-24 Bruno Haible - - Improve support for OpenBSD. - * config.rpath (libname_spec): Export. - (library_names_spec): New variable. Export. - -2006-10-27 Bruno Haible - - Work around automake-1.10 annoyance. - * Makefile.am (ACLOCAL): New macro. - (tests/*/aclocal.m4): Use fixaclocal. - -2006-11-27 Bruno Haible - - * gettext-0.16.1 released. - -2006-10-26 Bruno Haible - - * gettext-0.16 released. - -2006-07-21 Bruno Haible - - * gettext-0.15 released. - -2006-06-23 Bruno Haible - - Biarch support. - * configure.ac: Invoke AC_LIB_PREPARE_MULTILIB. Set LIBDIRSTEM. - * tests/Makefile.am (TESTS_ENVIRONMENT): Set LIBDIRSTEM. - * tests/rpath-1: Pass --libdir to all configure invocations. - * tests/rpath-2_a: Likewise. - * tests/rpath-2_b: Likewise. - * tests/rpath-3_a: Likewise. - * tests/rpath-3_b: Likewise. - * tests/rpathcfg.sh: Likewise. - -2006-05-15 Bruno Haible - - * config.rpath: Improve support for Sun C 5.9 on Linux, based on - libtool patch by Ralf Wildenhues. - -2006-05-05 Bruno Haible - - * config.rpath: Add support for Sun C 5.9 on Linux. - -2006-04-17 Bruno Haible - - * Makefile.am (all-local): Remove dependency on build-aux/mkinstalldirs. - (build-aux/mkinstalldirs): Remove rule. - (DISTCLEANFILES): Remove build-aux/mkinstalldirs. - * tests/rpathlx/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathly/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathlyx/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathlz/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathlzyx/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathx/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathy/Makefile.am (mkinstalldirs): Remove variable. - * tests/rpathz/Makefile.am (mkinstalldirs): Remove variable. - -2005-12-27 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.22. - -2005-11-23 Bruno Haible - - Cygwin portability. - * configure.ac: Invoke gl_WOE32_DLL. - -2005-09-18 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.20. - -2005-09-18 Bruno Haible - - * config.rpath: Complete upgrade to libtool-1.5.16. - -2005-05-01 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.16. - -2006-06-21 Bruno Haible - - * gettext-0.14.6 released. - -2006-06-21 Bruno Haible - - * tests/Makefile.am (TESTS): Remove those tests that fail on x86_64. - -2005-05-23 Bruno Haible - - * gettext-0.14.5 released. - -2005-04-11 Bruno Haible - - * gettext-0.14.4 released. - -2005-04-11 Bruno Haible - - * tests/rpath-1, tests/rpath-2_a, tests/rpath-2_b, tests/rpath-3_a: - * tests/rpath-3_b, tests/rpathcfg.sh: Use build-aux instead of config. - -2005-03-22 Bruno Haible - - * configure.ac (AC_CONFIG_AUX_DIR): Use ../build-aux. - * tests/rpath*/configure.ac (AC_CONFIG_AUX_DIR): Use ../../../build-aux. - * Makefile.am: Replace config/m4 with m4 and config/ with build-aux/. - (build-aux-dir): Renamed from config-dir. - -2005-03-14 Bruno Haible - - * gettext-0.14.3 released. - -2005-02-24 Bruno Haible - - * gettext-0.14.2 released. - -2005-02-07 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.12: support for Portland Group - compiler, support for DragonFly BSD, relaxed copyright permissions. - -2005-02-07 Bruno Haible - - * config.rpath: Use 'sed' with ranges only in C locale. Needed because - in the et_EE locale, the letters T U V W C Y come after Z. - Reported by Mike Frysinger . - -2005-01-09 Bruno Haible - - Adaptation to automake-1.9. - * Makefile.am (tests/rpath*/aclocal.m4): Turn the m4 directories - into absolute pathnames, so that aclocal-1.9 includes the files - literally into the created aclocal.m4 file, instead of putting - m4_include(...) statements that don't work after the directory has - been copied to a different location. - -2005-01-05 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.10. - -2004-11-11 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.8 and libtool-1.5.10. - -2004-11-11 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.6. - -2004-10-30 James Youngman - - * config.rpath: Modify comment to be consistent with the code. - -2004-02-22 Bruno Haible - - * config.rpath: Add support for Comeau C++ on Linux. - Patch by Prof. Roberto Bagnara . - -2004-02-21 Bruno Haible - - * config.rpath: Upgrade to libtool-1.5.2. - -2004-01-29 Bruno Haible - - * gettext-0.14.1 released. - -2004-01-28 Bruno Haible - - * gettext-0.14 released. - -2003-12-12 Bruno Haible - - Assume automake-1.8. - * Makefile.am (html): Remove rule. - (distclean-local): Renamed from distclean-am. - * tests/Makefile.am (distclean-local): Renamed from distclean-am. - -2003-12-17 Bruno Haible - - * gettext-0.13.1 released. - -2003-11-30 Bruno Haible - - * gettext-0.13 released. - -2003-10-31 Bruno Haible - - * configure.ac: Remove argument of FIX_MAKEFILE_DISTRIB. - -2003-06-17 Paul Eggert - - * config.rpath: Use grep instead of egrep, since POSIX 1003.1-2001 no - longer requires egrep. - -2003-05-22 Bruno Haible - - * gettext-0.12.1 released. - -2003-05-20 Bruno Haible - - * Makefile.am (config-dir): New target. - (config/config.guess, config/config.sub, config/install-sh, - config/ltmain.sh, config/mkinstalldirs, config/missing, - config/config.rpath): Depend on it. - (distclean-am): Remove config-dir as well. - Reported by Frédéric L. W. Meunier <0@pervalidus.tk>. - -2003-05-17 Bruno Haible - - * gettext-0.12 released. - -2003-05-02 Bruno Haible - - * config.rpath: Document limitation on IRIX. - -2003-04-24 Bruno Haible - - * config.rpath: Update to libtool-1.5. Small changes for AIX, HP-UX, - Irix, Linux, MacOS X, Windows. - -2003-04-24 Bruno Haible - - * config.rpath: Don't set sys_lib_search_path_spec and - sys_lib_dlsearch_path_spec. - -2003-02-28 Bruno Haible - - Support for relocatable installation. - * INSTALL: Document --enable-relocatable and --with-libintl-prefix. - -2003-02-22 Bruno Haible - - * Makefile.am (ps, pdf): Remove rules, redundant with automake 1.7.2. - -2003-02-12 Bruno Haible - - Extracted from gettext package. - * configure.ac: New file. - * Makefile.am: New file. - * AUTHORS, COPYING, INSTALL, NEWS, README: New files. - * m4/Makefile.am: New file. - * tests/Makefile.am: New file. - * tests/rpath-1: Move temporary directories down under tstdir. - Rename global_top_srcdir to global_top_auxdir. - * tests/rpath-2_a: Likewise. - * tests/rpath-2_b: Likewise. - * tests/rpath-3_a: Likewise. - * tests/rpath-3_b: Likewise. - * tests/rpath-2???: Use $srcdir instead of $top_srcdir/tests. - * tests/rpath-3???: Likewise. - * tests/rpathcfg.sh: Move temporary directories down under tstdir. - Use $srcdir instead of $top_srcdir/tests. - * tests/rpath*/Makefile.am: Use global_top_auxdir instead of - global_top_srcdir. - * tests/rpath*/configure.ac: Use AC_CONFIG_AUX_DIR instead of - AC_CONFIG_AUX_DIRS; the latter is undocumented and doesn't work - with automake-1.7.2. - diff -Nru gettext-0.17/autoconf-lib-link/config.rpath gettext-0.18.1.1/autoconf-lib-link/config.rpath --- gettext-0.17/autoconf-lib-link/config.rpath 2007-06-27 23:01:49.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/config.rpath 1970-01-01 00:00:00.000000000 +0000 @@ -1,666 +0,0 @@ -#! /bin/sh -# Output a system dependent set of variables, describing how to set the -# run time search path of shared libraries in an executable. -# -# Copyright 1996-2007 Free Software Foundation, Inc. -# Taken from GNU libtool, 2001 -# Originally by Gordon Matzigkeit , 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. -# -# The first argument passed to this file is the canonical host specification, -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld -# should be set by the caller. -# -# The set of defined variables is at the end of this script. - -# Known limitations: -# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer -# than 256 bytes, otherwise the compiler driver will dump core. The only -# known workaround is to choose shorter directory names for the build -# directory and/or the installation directory. - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -shrext=.so - -host="$1" -host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - -# Code taken from libtool.m4's _LT_CC_BASENAME. - -for cc_temp in $CC""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` - -# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. - -wl= -if test "$GCC" = yes; then - wl='-Wl,' -else - case "$host_os" in - aix*) - wl='-Wl,' - ;; - darwin*) - case $cc_basename in - xlc*) - wl='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) - ;; - hpux9* | hpux10* | hpux11*) - wl='-Wl,' - ;; - irix5* | irix6* | nonstopux*) - wl='-Wl,' - ;; - newsos6) - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - wl='-Wl,' - ;; - pgcc | pgf77 | pgf90) - wl='-Wl,' - ;; - ccc*) - wl='-Wl,' - ;; - como) - wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - wl='-Wl,' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - wl='-Wl,' - ;; - rdos*) - ;; - solaris*) - wl='-Wl,' - ;; - sunos4*) - wl='-Qoption ld ' - ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - wl='-Wl,' - ;; - sysv4*MP*) - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - wl='-Wl,' - ;; - unicos*) - wl='-Wl,' - ;; - uts4*) - ;; - esac -fi - -# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. - -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no - -case "$host_os" in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - # Unlike libtool, we use -rpath here, not --rpath, since the documented - # option of GNU ld is called -rpath, not --rpath. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - case "$host_os" in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - fi - ;; - amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we cannot use - # them. - ld_shlibs=no - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - cygwin* | mingw* | pw32*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - interix[3-9]*) - hardcode_direct=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - netbsd*) - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - else - ld_shlibs=no - fi - ;; - esac - ;; - sunos4*) - hardcode_direct=yes - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - : - else - ld_shlibs=no - fi - ;; - esac - if test "$ld_shlibs" = no; then - hardcode_libdir_flag_spec= - fi -else - case "$host_os" in - aix3*) - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - else - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - fi - hardcode_direct=yes - hardcode_libdir_separator=':' - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - fi - # Begin _LT_AC_SYS_LIBPATH_AIX. - echo 'int main () { return 0; }' > conftest.c - ${CC} ${LDFLAGS} conftest.c -o conftest - aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } -}'` - fi - if test -z "$aix_libpath"; then - aix_libpath="/usr/lib:/lib" - fi - rm -f conftest.c conftest - # End _LT_AC_SYS_LIBPATH_AIX. - if test "$aix_use_runtimelinking" = yes; then - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - else - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - fi - fi - ;; - amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - bsdi[45]*) - ;; - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - libext=lib - ;; - darwin* | rhapsody*) - hardcode_direct=no - if test "$GCC" = yes ; then - : - else - case $cc_basename in - xlc*) - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - dgux*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - freebsd1*) - ld_shlibs=no - ;; - freebsd2.2*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - freebsd2*) - hardcode_direct=yes - hardcode_minus_L=yes - ;; - freebsd* | dragonfly*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - hpux9*) - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - hpux10*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - hpux11*) - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - ;; - *) - hardcode_direct=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - netbsd*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - newsos6) - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - else - case "$host_os" in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - osf3*) - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - osf4* | osf5*) - if test "$GCC" = yes; then - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - # Both cc and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - solaris*) - hardcode_libdir_flag_spec='-R$libdir' - ;; - sunos4*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - ;; - sysv4) - case $host_vendor in - sni) - hardcode_direct=yes # is this really true??? - ;; - siemens) - hardcode_direct=no - ;; - motorola) - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - ;; - sysv4.3*) - ;; - sysv4*MP*) - if test -d /usr/nec; then - ld_shlibs=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - ;; - sysv5* | sco3.2v5* | sco5v6*) - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - ;; - uts4*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - *) - ld_shlibs=no - ;; - esac -fi - -# Check dynamic linker characteristics -# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. -# Unlike libtool.m4, here we don't care about _all_ names of the library, but -# only about the one the linker finds when passed -lNAME. This is the last -# element of library_names_spec in libtool.m4, or possibly two of them if the -# linker has special search rules. -library_names_spec= # the last element of library_names_spec in libtool.m4 -libname_spec='lib$name' -case "$host_os" in - aix3*) - library_names_spec='$libname.a' - ;; - aix4* | aix5*) - library_names_spec='$libname$shrext' - ;; - amigaos*) - library_names_spec='$libname.a' - ;; - beos*) - library_names_spec='$libname$shrext' - ;; - bsdi[45]*) - library_names_spec='$libname$shrext' - ;; - cygwin* | mingw* | pw32*) - shrext=.dll - library_names_spec='$libname.dll.a $libname.lib' - ;; - darwin* | rhapsody*) - shrext=.dylib - library_names_spec='$libname$shrext' - ;; - dgux*) - library_names_spec='$libname$shrext' - ;; - freebsd1*) - ;; - freebsd* | dragonfly*) - case "$host_os" in - freebsd[123]*) - library_names_spec='$libname$shrext$versuffix' ;; - *) - library_names_spec='$libname$shrext' ;; - esac - ;; - gnu*) - library_names_spec='$libname$shrext' - ;; - hpux9* | hpux10* | hpux11*) - case $host_cpu in - ia64*) - shrext=.so - ;; - hppa*64*) - shrext=.sl - ;; - *) - shrext=.sl - ;; - esac - library_names_spec='$libname$shrext' - ;; - interix[3-9]*) - library_names_spec='$libname$shrext' - ;; - irix5* | irix6* | nonstopux*) - library_names_spec='$libname$shrext' - case "$host_os" in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; - *) libsuff= shlibsuff= ;; - esac - ;; - esac - ;; - linux*oldld* | linux*aout* | linux*coff*) - ;; - linux* | k*bsd*-gnu) - library_names_spec='$libname$shrext' - ;; - knetbsd*-gnu) - library_names_spec='$libname$shrext' - ;; - netbsd*) - library_names_spec='$libname$shrext' - ;; - newsos6) - library_names_spec='$libname$shrext' - ;; - nto-qnx*) - library_names_spec='$libname$shrext' - ;; - openbsd*) - library_names_spec='$libname$shrext$versuffix' - ;; - os2*) - libname_spec='$name' - shrext=.dll - library_names_spec='$libname.a' - ;; - osf3* | osf4* | osf5*) - library_names_spec='$libname$shrext' - ;; - rdos*) - ;; - solaris*) - library_names_spec='$libname$shrext' - ;; - sunos4*) - library_names_spec='$libname$shrext$versuffix' - ;; - sysv4 | sysv4.3*) - library_names_spec='$libname$shrext' - ;; - sysv4*MP*) - library_names_spec='$libname$shrext' - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - library_names_spec='$libname$shrext' - ;; - uts4*) - library_names_spec='$libname$shrext' - ;; -esac - -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` -shlibext=`echo "$shrext" | sed -e 's,^\.,,'` -escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` - -LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' </dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="tests/rpath-1a" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -SED -GREP -EGREP -LN_S -ECHO -AR -RANLIB -DLLTOOL -AS -OBJDUMP -CPP -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -GCC -LD -with_gnu_ld -aclocaldir -LIBDIRSTEM -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -ac_aux_dir= -for ac_dir in ../build-aux "$srcdir"/../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -. $srcdir/../version.sh -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=autoconf-lib-link - VERSION=$VERSION_NUMBER - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - - - - - - - - case "$host_os" in - mingw* | cygwin*) - { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 -echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } - if test "${gl_cv_ld_autoimport+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - gl_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_ld_autoimport=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_ld_autoimport=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$gl_save_LDFLAGS" -fi - - { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 -echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } - if test $gl_cv_ld_autoimport = yes; then - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - fi - ;; - esac - - - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4463 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-cygwin* | *-*-mingw* | *-*-pw32*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 -echo "${ECHO_T}$DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AS="${ac_tool_prefix}as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { echo "$as_me:$LINENO: result: $AS" >&5 -echo "${ECHO_T}$AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AS="as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -echo "${ECHO_T}$ac_ct_AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 -echo "${ECHO_T}$OBJDUMP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - - ;; - -esac - -need_locks="$enable_libtool_lock" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -enable_dlopen=no -enable_win32_dll=yes - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7494: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7498: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7787: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7791: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } - -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } - -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7891: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:7895: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# ### END LIBTOOL CONFIG - -__EOF__ - - - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -GCC_CXX="$GXX" -LD_CXX="$LD" - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... - -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$rm -f confest.$objext - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac - - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12764: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:12768: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } - -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } - -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12868: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:12872: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14433: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:14437: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } - -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14537: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14541: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; - - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - freebsd1*) - ld_shlibs_F77=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - *) - ld_shlibs_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } - -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_F77 - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_F77 - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... - -lt_prog_compiler_no_builtin_flag_GCJ= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16728: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16732: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17021: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:17025: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17125: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:17129: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - *) - ld_shlibs_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_GCJ - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_GCJ - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) - - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - -lt_cv_prog_compiler_c_o_RC=yes - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_RC - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_RC - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - ;; - - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Prevent multiple expansion - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -aclocaldir='${datadir}/aclocal' - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - -LIBDIRSTEM=$acl_libdirstem - - -ac_config_files="$ac_config_files Makefile" - - -ac_config_files="$ac_config_files m4/Makefile" - - -ac_config_files="$ac_config_files tests/Makefile" - - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -SED!$SED$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -DLLTOOL!$DLLTOOL$ac_delim -AS!$AS$ac_delim -OBJDUMP!$OBJDUMP$ac_delim -CPP!$CPP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -GCC!$GCC$ac_delim -LD!$LD$ac_delim -with_gnu_ld!$with_gnu_ld$ac_delim -aclocaldir!$aclocaldir$ac_delim -LIBDIRSTEM!$LIBDIRSTEM$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - "Makefile":F) - sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/configure.ac gettext-0.18.1.1/autoconf-lib-link/configure.ac --- gettext-0.17/autoconf-lib-link/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -dnl Configuration for the autoconf-lib-link directory of GNU gettext -dnl Copyright (C) 1995-1999, 2000-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.57) -AC_INIT -AC_CONFIG_SRCDIR(tests/rpath-1a) -AC_CONFIG_AUX_DIR(../build-aux) -. $srcdir/../version.sh -AM_INIT_AUTOMAKE(autoconf-lib-link, $VERSION_NUMBER) - -dnl Checks for programs. -AC_PROG_CC -AC_PROG_INSTALL - -dnl Check for host type. -AC_CANONICAL_HOST - -dnl Checks for UNIX variants that set DEFS, - -dnl Checks for compiler output filename suffixes. -AC_OBJEXT -AC_EXEEXT - -dnl Check for build configuration. -gl_WOE32_DLL -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL - -dnl Checks for libraries. - -dnl Checks for header files. - -dnl Checks for typedefs, structures, and compiler characteristics. - -dnl Checks for library functions. - -dnl Checks for tests/rpathcfg. -AC_SUBST(GCC) -AC_SUBST(LD) -AC_SUBST(with_gnu_ld) - -aclocaldir='${datadir}/aclocal' -AC_SUBST(aclocaldir) - -AC_LIB_PREPARE_MULTILIB -LIBDIRSTEM=$acl_libdirstem -AC_SUBST(LIBDIRSTEM) - -AC_CONFIG_FILES([Makefile], - [FIX_MAKEFILE_DISTRIB]) - -AC_CONFIG_FILES([m4/Makefile]) - -AC_CONFIG_FILES([tests/Makefile]) - -AC_OUTPUT diff -Nru gettext-0.17/autoconf-lib-link/COPYING gettext-0.18.1.1/autoconf-lib-link/COPYING --- gettext-0.17/autoconf-lib-link/COPYING 2003-02-14 20:17:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/COPYING 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -This subpackage is under the GPL, see file COPYING in the toplevel directory. diff -Nru gettext-0.17/autoconf-lib-link/INSTALL gettext-0.18.1.1/autoconf-lib-link/INSTALL --- gettext-0.17/autoconf-lib-link/INSTALL 2006-08-23 17:22:58.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/INSTALL 1970-01-01 00:00:00.000000000 +0000 @@ -1,251 +0,0 @@ -Basic Installation -================== - - These are generic installation instructions. - - The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation. It uses -those values to create a `Makefile' in each directory of the package. -It may also create one or more `.h' files containing system-dependent -definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, a file -`config.cache' that saves the results of its tests to speed up -reconfiguring, and a file `config.log' containing compiler output -(useful mainly for debugging `configure'). - - If you need to do unusual things to compile the package, please try -to figure out how `configure' could check whether to do them, and mail -diffs or instructions to the address given in the `README' so they can -be considered for the next release. If at some point `config.cache' -contains results you don't want to keep, you may remove or edit it. - - The file `configure.ac' is used to create `configure' by a program -called `autoconf'. You only need `configure.ac' if you want to change -it or regenerate `configure' using a newer version of `autoconf'. - -The simplest way to compile this package is: - - 1. `cd' to the directory containing the package's source code and type - `./configure' to configure the package for your system. If you're - using `csh' on an old version of System V, you might need to type - `sh ./configure' instead to prevent `csh' from trying to execute - `configure' itself. - - Running `configure' takes awhile. While running, it prints some - messages telling which features it is checking for. - - 2. Type `make' to compile the package. - - 3. Optionally, type `make check' to run any self-tests that come with - the package. - - 4. Type `make install' to install the programs and any data files and - documentation. - - 5. You can remove the program binaries and object files from the - source code directory by typing `make clean'. To also remove the - files that `configure' created (so you can compile the package for - a different kind of computer), type `make distclean'. There is - also a `make maintainer-clean' target, but that is intended mainly - for the package's developers. If you use it, you may have to get - all sorts of other programs in order to regenerate files that came - with the distribution. - -Compilers and Options -===================== - - Some systems require unusual options for compilation or linking that -the `configure' script does not know about. You can give `configure' -initial values for variables as arguments. You can do it like this: - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix - -Compiling For Multiple Architectures -==================================== - - You can compile the package for more than one kind of computer at the -same time, by placing the object files for each architecture in their -own directory. To do this, you must use a version of `make' that -supports the `VPATH' variable, such as GNU `make'. `cd' to the -directory where you want the object files and executables to go and run -the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. - - If you have to use a `make' that does not supports the `VPATH' -variable, you have to compile the package for one architecture at a time -in the source code directory. After you have installed the package for -one architecture, use `make distclean' before reconfiguring for another -architecture. - -Installation Names -================== - - By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - - You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If you -give `configure' the option `--exec-prefix=PATH', the package will use -PATH as the prefix for installing programs and libraries. -Documentation and other data files will still use the regular prefix. - - In addition, if you use an unusual directory layout you can give -options like `--bindir=PATH' to specify different values for particular -kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. - - If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' the -option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Relocatable Installation -======================== - - By default, `make install' will install a package with hardwired -file names, and the package will not work correctly when copied or -moved to a different location in the filesystem. - - Some packages pay attention to the `--enable-relocatable' option to -`configure'. This option makes the entire installed package -relocatable. This means, it can be moved or copied to a different -location on the filesystem. It is possible to make symlinks to the -installed and moved programs, and invoke them through the symlink. It -is possible to do the same thing with a hard link _only_ if the hard -linked file is in the same directory as the real program. - - For reliability it is best to give together with --enable-relocatable -a `--prefix' option pointing to an otherwise unused (and never used -again) directory, for example, `--prefix=/tmp/inst$$'. This is -recommended because on some OSes the executables remember the location -of shared libraries (and prefer them over LD_LIBRARY_PATH !), therefore -such an executable will look for its shared libraries first in the -original installation directory and only then in the current -installation directory. - - Installation with `--enable-relocatable' will not work for setuid / -setgid executables. (This is because such an executable kills its -LD_LIBRARY_PATH variable when it is launched.) - - The runtime penalty and size penalty are nearly zero on Linux 2.2 or -newer (just one system call more when an executable is launched), and -small on other systems (the wrapper program just sets an environment -variable and execs the real program). - -Optional Features -================= - - Some packages pay attention to `--enable-FEATURE' options to -`configure', where FEATURE indicates an optional part of the package. -They may also pay attention to `--with-PACKAGE' options, where PACKAGE -is something like `gnu-as' or `x' (for the X Window System). The -`README' should mention any `--enable-' and `--with-' options that the -package recognizes. - - For packages that use the X Window System, `configure' can usually -find the X include and library files automatically, but if it doesn't, -you can use the `configure' options `--x-includes=DIR' and -`--x-libraries=DIR' to specify their locations. - - For packages that use the GNU libiconv library, you can use the -`configure' option `--with-libiconv-prefix' to specify the prefix you -used while installing GNU libiconv. This option is not necessary if -that other prefix is the same as the one now specified through --prefix. - - For packages that use the GNU libintl library, you can use the -`configure' option `--with-libintl-prefix' to specify the prefix you -used while installing GNU gettext-runtime. This option is not necessary if -that other prefix is the same as the one now specified through --prefix. - -Particular Systems -================== - - On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC -is not installed, it is recommended to use the following options in order -to use an ANSI C compiler: - - ./configure CC="cc -Ae" - - On OSF/1 a.k.a. Tru64, some versions of the default C compiler don't grok -its header file. The option -nodtk can be used as a workaround. -If GNU CC is not installed, it is therefore recommended to try - - ./configure CC="cc" - -and if that doesn't work, try - - ./configure CC="cc -nodtk" - - On AIX 3, the C include files by default don't define some necessary -prototype declarations. If GNU CC is not installed, it is recommended to -use the following options: - - ./configure CC="xlc -D_ALL_SOURCE" - - On BeOS, user installed software goes in /boot/home/config, not -/usr/local. It is recommended to use the following options: - - ./configure --prefix=/boot/home/config - -Specifying the System Type -========================== - - There may be some features `configure' can not figure out -automatically, but needs to determine by the type of host the package -will run on. Usually `configure' can figure that out, but if it prints -a message saying it can not guess the host type, give it the -`--host=TYPE' option. TYPE can either be a short name for the system -type, such as `sun4', or a canonical name with three fields: - CPU-COMPANY-SYSTEM - -See the file `config.sub' for the possible values of each field. If -`config.sub' isn't included in this package, then this package doesn't -need to know the host type. - - If you are building compiler tools for cross-compiling, you can also -use the `--target=TYPE' option to select the type of system they will -produce code for and the `--build=TYPE' option to select the type of -system on which you are compiling the package. - -Sharing Defaults -================ - - If you want to set default values for `configure' scripts to share, -you can create a site shell script called `config.site' that gives -default values for variables like `CC', `cache_file', and `prefix'. -`configure' looks for `PREFIX/share/config.site' if it exists, then -`PREFIX/etc/config.site' if it exists. Or, you can set the -`CONFIG_SITE' environment variable to the location of the site script. -A warning: not all `configure' scripts look for a site script. - -Operation Controls -================== - - `configure' recognizes the following options to control how it -operates. - -`--cache-file=FILE' - Use and save the results of the tests in FILE instead of - `./config.cache'. Set FILE to `/dev/null' to disable caching, for - debugging `configure'. - -`--help' - Print a summary of the options to `configure', and exit. - -`--quiet' -`--silent' -`-q' - Do not print messages saying which checks are being made. To - suppress all normal output, redirect it to `/dev/null' (any error - messages will still be shown). - -`--srcdir=DIR' - Look for the package's source code in directory DIR. Usually - `configure' can determine that directory automatically. - -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`configure' also accepts some other, not widely useful, options. - diff -Nru gettext-0.17/autoconf-lib-link/m4/ChangeLog gettext-0.18.1.1/autoconf-lib-link/m4/ChangeLog --- gettext-0.17/autoconf-lib-link/m4/ChangeLog 2007-11-06 23:27:07.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,152 +0,0 @@ -2007-11-07 Bruno Haible - - * gettext-0.17 released. - -2007-01-08 Bruno Haible - - Avoid variable names that conflict with those from libtool. - * lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY, - AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext, - shlibext to acl_shlibext, libname_spec to acl_libname_spec, - library_names_spec to acl_library_names_spec, hardcode_* to - acl_hardcode_*. - Reported by Ralf Wildenhues. - -2007-01-08 Bruno Haible - - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting command. - -2006-12-24 Bruno Haible - - Improve support for OpenBSD. - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and - library_names_spec from the config.rpath output. Locate shared library - through the name pattern in library_names_spec. - -2006-11-12 Bruno Haible - - * lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS, - AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed - for GNOME libraries, for which the include files are installed in - subdirectories of $prefix/include. - -2006-11-12 Bruno Haible - - * lib-link.m4: Require at least autoconf-2.54. - (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library - name to underscores for the --with option. - -2006-11-27 Bruno Haible - - * gettext-0.16.1 released. - -2006-10-26 Bruno Haible - - * gettext-0.16 released. - -2006-09-03 Bruno Haible - - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries - correctly. - -2006-07-21 Bruno Haible - - * gettext-0.15 released. - -2006-03-25 Bruno Haible - - * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro. - -2005-08-27 Bruno Haible - - Support for lib vs. lib64 distinction on biarch platforms. - * lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro. - (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'. - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise. - -2006-06-21 Bruno Haible - - * gettext-0.14.6 released. - -2005-05-23 Bruno Haible - - * gettext-0.14.5 released. - -2005-04-11 Bruno Haible - - * gettext-0.14.4 released. - -2005-03-14 Bruno Haible - - * gettext-0.14.3 released. - -2005-03-05 Bruno Haible - - * lib-link.m4: Require autoconf >= 2.50. - (AC_LIB_RPATH): Use AC_REQUIRE_AUX_FILE conditionally. - -2005-02-24 Bruno Haible - - * gettext-0.14.2 released. - -2005-01-19 Bruno Haible - - * lib-ld.m4, lib-link.m4, lib-prefix.m4: Use an all-permissive - copyright notice, recommended by RMS. - -2004-07-13 Robert Millan - - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Same /usr/local/include handling - on Hurd and on GNU/k*BSD as on Linux. - * lib-prefix.m4 (AC_LIB_PREFIX): Likewise. - -2004-01-29 Bruno Haible - - * gettext-0.14.1 released. - -2004-01-28 Bruno Haible - - * gettext-0.14 released. - -2003-12-17 Bruno Haible - - * gettext-0.13.1 released. - -2003-11-30 Bruno Haible - - * gettext-0.13 released. - -2003-07-01 Bruno Haible - - * lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error from - aclocal-1.4-p4. - Reported by Luke Schierer and - Michael C. Toren . - -2003-06-17 Paul Eggert - - * lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep, for - portability to POSIX 1003.1-2001. Backported from libtool-1.5. - -2003-05-22 Bruno Haible - - * gettext-0.12.1 released. - -2003-05-17 Bruno Haible - - * gettext-0.12 released. - -2003-04-24 Bruno Haible - - * lib-link.m4 (AC_LIB_RPATH): Don't set sys_lib_search_path_spec and - sys_lib_dlsearch_path_spec. - -2003-02-16 Bruno Haible - - Workaround autoconf >= 2.52 breakage. - * lib-prefix.m4 (AC_LIB_ARG_WITH): New macro. - (AC_LIB_PREFIX): Use it instead of AC_ARG_WITH. - * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise. - - -See ../../gettext-tools/m4/ChangeLog.0 for earlier changes. diff -Nru gettext-0.17/autoconf-lib-link/m4/lib-ld.m4 gettext-0.18.1.1/autoconf-lib-link/m4/lib-ld.m4 --- gettext-0.17/autoconf-lib-link/m4/lib-ld.m4 2005-01-19 14:06:11.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/lib-ld.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,110 +0,0 @@ -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) diff -Nru gettext-0.17/autoconf-lib-link/m4/lib-link.m4 gettext-0.18.1.1/autoconf-lib-link/m4/lib-link.m4 --- gettext-0.17/autoconf-lib-link/m4/lib-link.m4 2007-10-28 16:22:40.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/lib-link.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,709 +0,0 @@ -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) diff -Nru gettext-0.17/autoconf-lib-link/m4/lib-prefix.m4 gettext-0.18.1.1/autoconf-lib-link/m4/lib-prefix.m4 --- gettext-0.17/autoconf-lib-link/m4/lib-prefix.m4 2005-09-02 11:19:58.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/lib-prefix.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,185 +0,0 @@ -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) diff -Nru gettext-0.17/autoconf-lib-link/m4/Makefile.am gettext-0.18.1.1/autoconf-lib-link/m4/Makefile.am --- gettext-0.17/autoconf-lib-link/m4/Makefile.am 2003-02-14 20:17:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -## Process this file with automake to produce Makefile.in -*-Makefile-*- - -# Files installed for use by aclocal. - -aclocaldir = @aclocaldir@ -aclocal_DATA = \ - lib-ld.m4 \ - lib-link.m4 \ - lib-prefix.m4 - -# Generate this list with -# find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012' -EXTRA_DIST = README \ -lib-ld.m4 \ -lib-link.m4 \ -lib-prefix.m4 diff -Nru gettext-0.17/autoconf-lib-link/m4/Makefile.in gettext-0.18.1.1/autoconf-lib-link/m4/Makefile.in --- gettext-0.17/autoconf-lib-link/m4/Makefile.in 2007-11-06 23:32:32.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,377 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# Files installed for use by aclocal. - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = m4 -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - ChangeLog -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../m4/fixautomake.m4 \ - $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(aclocaldir)" -aclocalDATA_INSTALL = $(INSTALL_DATA) -DATA = $(aclocal_DATA) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GCC = @GCC@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBDIRSTEM = @LIBDIRSTEM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -aclocaldir = @aclocaldir@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -with_gnu_ld = @with_gnu_ld@ -aclocal_DATA = \ - lib-ld.m4 \ - lib-link.m4 \ - lib-prefix.m4 - - -# Generate this list with -# find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012' -EXTRA_DIST = README \ -lib-ld.m4 \ -lib-link.m4 \ -lib-prefix.m4 - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu m4/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-aclocalDATA: $(aclocal_DATA) - @$(NORMAL_INSTALL) - test -z "$(aclocaldir)" || $(MKDIR_P) "$(DESTDIR)$(aclocaldir)" - @list='$(aclocal_DATA)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(aclocalDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(aclocaldir)/$$f'"; \ - $(aclocalDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(aclocaldir)/$$f"; \ - done - -uninstall-aclocalDATA: - @$(NORMAL_UNINSTALL) - @list='$(aclocal_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(aclocaldir)/$$f'"; \ - rm -f "$(DESTDIR)$(aclocaldir)/$$f"; \ - done -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(DATA) -installdirs: - for dir in "$(DESTDIR)$(aclocaldir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: install-aclocalDATA - -install-dvi: install-dvi-am - -install-exec-am: - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-aclocalDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am html html-am info info-am install install-aclocalDATA \ - install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-aclocalDATA uninstall-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/m4/README gettext-0.18.1.1/autoconf-lib-link/m4/README --- gettext-0.17/autoconf-lib-link/m4/README 2003-02-14 12:33:56.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/m4/README 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -These files are used by a program called aclocal (part of the GNU automake -package). aclocal uses these files to create aclocal.m4 which is in turn -used by autoconf to create the configure script at the the top level in -this distribution. diff -Nru gettext-0.17/autoconf-lib-link/Makefile.am gettext-0.18.1.1/autoconf-lib-link/Makefile.am --- gettext-0.17/autoconf-lib-link/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,149 +0,0 @@ -## Makefile for the autoconf-lib-link directory of GNU gettext -## Copyright (C) 1995-1999, 2000-2003, 2005-2006 Free Software Foundation, Inc. -## -## This program is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program. If not, see . - -## Process this file with automake to produce Makefile.in. - -AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -ACLOCAL = ../build-aux/fixaclocal @ACLOCAL@ -ACLOCAL_AMFLAGS = -I m4 -I ../m4 -EXTRA_DIST = -DISTCLEANFILES = - -SUBDIRS = m4 tests - -EXTRA_DIST += config.rpath - - -# We want to maintain only one copy of config.rpath. The one in this directory -# is the source. - -all-local: $(srcdir)/../build-aux/config.rpath - -$(srcdir)/../build-aux/config.rpath: $(srcdir)/config.rpath - cp $(srcdir)/config.rpath $(srcdir)/../build-aux/config.rpath - - -# The AC_CONFIG_AUX_DIR argument in the tests/rpath*/configure.ac files is -# interpreted in two different contexts: -# 1. at "make distrib" time, when we call automake, relative to -# SRCDIR/tests/rpath*/, -# 2. at "make check" time, when the directory is copied and configured, -# relative to BUILDDIR/tests/tstdir/rp-*/. -# We choose this argument to be '../../../build-aux', for case 1, and therefore -# we need to make a local copy of the build-aux directory, for case 2. - -all-local: build-aux/config.guess build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/config.rpath - -build-aux-dir: - test -d build-aux || mkdir build-aux - touch build-aux-dir - -build-aux/config.guess: $(srcdir)/../build-aux/config.guess build-aux-dir - cp $(srcdir)/../build-aux/config.guess build-aux/config.guess - -build-aux/config.sub: $(srcdir)/../build-aux/config.sub build-aux-dir - cp $(srcdir)/../build-aux/config.sub build-aux/config.sub - -build-aux/install-sh: $(srcdir)/../build-aux/install-sh build-aux-dir - cp $(srcdir)/../build-aux/install-sh build-aux/install-sh - -build-aux/ltmain.sh: $(srcdir)/../build-aux/ltmain.sh build-aux-dir - cp $(srcdir)/../build-aux/ltmain.sh build-aux/ltmain.sh - -build-aux/missing: $(srcdir)/../build-aux/missing build-aux-dir - cp $(srcdir)/../build-aux/missing build-aux/missing - -build-aux/config.rpath: $(srcdir)/config.rpath build-aux-dir - cp $(srcdir)/config.rpath build-aux/config.rpath - -DISTCLEANFILES += build-aux/config.guess build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/config.rpath - -distclean-local: - rm -rf build-aux build-aux-dir - - -# Subdirectories with separate autoconfiguration. - -CONFIGURES_RPATHX = $(srcdir)/tests/rpathx/Makefile.in $(srcdir)/tests/rpathx/aclocal.m4 $(srcdir)/tests/rpathx/configure -$(srcdir)/tests/rpathx/Makefile.in: $(srcdir)/tests/rpathx/Makefile.am $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4 - cd $(srcdir)/tests/rpathx && automake Makefile -$(srcdir)/tests/rpathx/aclocal.m4: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/../m4/libtool.m4 - cd $(srcdir)/tests/rpathx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathx/configure: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4 - cd $(srcdir)/tests/rpathx && autoconf - -CONFIGURES_RPATHY = $(srcdir)/tests/rpathy/Makefile.in $(srcdir)/tests/rpathy/aclocal.m4 $(srcdir)/tests/rpathy/configure -$(srcdir)/tests/rpathy/Makefile.in: $(srcdir)/tests/rpathy/Makefile.am $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4 - cd $(srcdir)/tests/rpathy && automake Makefile -$(srcdir)/tests/rpathy/aclocal.m4: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathy && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathy/configure: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4 - cd $(srcdir)/tests/rpathy && autoconf - -CONFIGURES_RPATHZ = $(srcdir)/tests/rpathz/Makefile.in $(srcdir)/tests/rpathz/aclocal.m4 $(srcdir)/tests/rpathz/configure -$(srcdir)/tests/rpathz/Makefile.in: $(srcdir)/tests/rpathz/Makefile.am $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4 - cd $(srcdir)/tests/rpathz && automake Makefile -$(srcdir)/tests/rpathz/aclocal.m4: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathz && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathz/configure: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4 - cd $(srcdir)/tests/rpathz && autoconf - -CONFIGURES_RPATHLX = $(srcdir)/tests/rpathlx/Makefile.in $(srcdir)/tests/rpathlx/aclocal.m4 $(srcdir)/tests/rpathlx/configure -$(srcdir)/tests/rpathlx/Makefile.in: $(srcdir)/tests/rpathlx/Makefile.am $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4 - cd $(srcdir)/tests/rpathlx && automake Makefile -$(srcdir)/tests/rpathlx/aclocal.m4: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlx/configure: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4 - cd $(srcdir)/tests/rpathlx && autoconf - -CONFIGURES_RPATHLY = $(srcdir)/tests/rpathly/Makefile.in $(srcdir)/tests/rpathly/aclocal.m4 $(srcdir)/tests/rpathly/configure -$(srcdir)/tests/rpathly/Makefile.in: $(srcdir)/tests/rpathly/Makefile.am $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4 - cd $(srcdir)/tests/rpathly && automake Makefile -$(srcdir)/tests/rpathly/aclocal.m4: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathly && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathly/configure: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4 - cd $(srcdir)/tests/rpathly && autoconf - -CONFIGURES_RPATHLYX = $(srcdir)/tests/rpathlyx/Makefile.in $(srcdir)/tests/rpathlyx/aclocal.m4 $(srcdir)/tests/rpathlyx/configure -$(srcdir)/tests/rpathlyx/Makefile.in: $(srcdir)/tests/rpathlyx/Makefile.am $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4 - cd $(srcdir)/tests/rpathlyx && automake Makefile -$(srcdir)/tests/rpathlyx/aclocal.m4: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlyx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlyx/configure: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4 - cd $(srcdir)/tests/rpathlyx && autoconf - -CONFIGURES_RPATHLZ = $(srcdir)/tests/rpathlz/Makefile.in $(srcdir)/tests/rpathlz/aclocal.m4 $(srcdir)/tests/rpathlz/configure -$(srcdir)/tests/rpathlz/Makefile.in: $(srcdir)/tests/rpathlz/Makefile.am $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4 - cd $(srcdir)/tests/rpathlz && automake Makefile -$(srcdir)/tests/rpathlz/aclocal.m4: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlz && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlz/configure: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4 - cd $(srcdir)/tests/rpathlz && autoconf - -CONFIGURES_RPATHLZYX = $(srcdir)/tests/rpathlzyx/Makefile.in $(srcdir)/tests/rpathlzyx/aclocal.m4 $(srcdir)/tests/rpathlzyx/configure -$(srcdir)/tests/rpathlzyx/Makefile.in: $(srcdir)/tests/rpathlzyx/Makefile.am $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4 - cd $(srcdir)/tests/rpathlzyx && automake Makefile -$(srcdir)/tests/rpathlzyx/aclocal.m4: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlzyx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlzyx/configure: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4 - cd $(srcdir)/tests/rpathlzyx && autoconf - -SUBCONFIGURES = $(CONFIGURES_RPATHX) $(CONFIGURES_RPATHY) $(CONFIGURES_RPATHZ) $(CONFIGURES_RPATHLX) $(CONFIGURES_RPATHLY) $(CONFIGURES_RPATHLYX) $(CONFIGURES_RPATHLZ) $(CONFIGURES_RPATHLZYX) - -subconfigures: $(SUBCONFIGURES) - -# Hidden from automake, but really activated. Works around an automake-1.5 bug. -#distdir: subconfigures diff -Nru gettext-0.17/autoconf-lib-link/Makefile.in gettext-0.18.1.1/autoconf-lib-link/Makefile.in --- gettext-0.17/autoconf-lib-link/Makefile.in 2007-11-06 23:32:33.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,746 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = README $(am__configure_deps) \ - $(srcdir)/../build-aux/config.guess \ - $(srcdir)/../build-aux/config.sub \ - $(srcdir)/../build-aux/install-sh \ - $(srcdir)/../build-aux/ltmain.sh \ - $(srcdir)/../build-aux/missing \ - $(srcdir)/../build-aux/mkinstalldirs $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure \ - ../build-aux/compile ../build-aux/config.guess \ - ../build-aux/config.rpath ../build-aux/config.sub \ - ../build-aux/depcomp ../build-aux/elisp-comp \ - ../build-aux/install-sh ../build-aux/ltmain.sh \ - ../build-aux/mdate-sh ../build-aux/missing \ - ../build-aux/mkinstalldirs ../build-aux/texinfo.tex \ - ../build-aux/ylwrap AUTHORS COPYING ChangeLog INSTALL NEWS \ - config.rpath -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../m4/fixautomake.m4 \ - $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -depcomp = -am__depfiles_maybe = -SOURCES = -DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive -RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ - distclean-recursive maintainer-clean-recursive -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = ../build-aux/fixaclocal @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GCC = @GCC@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBDIRSTEM = @LIBDIRSTEM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -aclocaldir = @aclocaldir@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -with_gnu_ld = @with_gnu_ld@ -AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -ACLOCAL_AMFLAGS = -I m4 -I ../m4 -EXTRA_DIST = config.rpath -DISTCLEANFILES = build-aux/config.guess build-aux/config.sub \ - build-aux/install-sh build-aux/ltmain.sh build-aux/missing \ - build-aux/config.rpath -SUBDIRS = m4 tests - -# Subdirectories with separate autoconfiguration. -CONFIGURES_RPATHX = $(srcdir)/tests/rpathx/Makefile.in $(srcdir)/tests/rpathx/aclocal.m4 $(srcdir)/tests/rpathx/configure -CONFIGURES_RPATHY = $(srcdir)/tests/rpathy/Makefile.in $(srcdir)/tests/rpathy/aclocal.m4 $(srcdir)/tests/rpathy/configure -CONFIGURES_RPATHZ = $(srcdir)/tests/rpathz/Makefile.in $(srcdir)/tests/rpathz/aclocal.m4 $(srcdir)/tests/rpathz/configure -CONFIGURES_RPATHLX = $(srcdir)/tests/rpathlx/Makefile.in $(srcdir)/tests/rpathlx/aclocal.m4 $(srcdir)/tests/rpathlx/configure -CONFIGURES_RPATHLY = $(srcdir)/tests/rpathly/Makefile.in $(srcdir)/tests/rpathly/aclocal.m4 $(srcdir)/tests/rpathly/configure -CONFIGURES_RPATHLYX = $(srcdir)/tests/rpathlyx/Makefile.in $(srcdir)/tests/rpathlyx/aclocal.m4 $(srcdir)/tests/rpathlyx/configure -CONFIGURES_RPATHLZ = $(srcdir)/tests/rpathlz/Makefile.in $(srcdir)/tests/rpathlz/aclocal.m4 $(srcdir)/tests/rpathlz/configure -CONFIGURES_RPATHLZYX = $(srcdir)/tests/rpathlzyx/Makefile.in $(srcdir)/tests/rpathlzyx/aclocal.m4 $(srcdir)/tests/rpathlzyx/configure -SUBCONFIGURES = $(CONFIGURES_RPATHX) $(CONFIGURES_RPATHY) $(CONFIGURES_RPATHZ) $(CONFIGURES_RPATHLX) $(CONFIGURES_RPATHLY) $(CONFIGURES_RPATHLYX) $(CONFIGURES_RPATHLZ) $(CONFIGURES_RPATHLZYX) -all: all-recursive - -.SUFFIXES: -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -$(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(MKDIR_P) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - am__remove_distdir=: \ - am__skip_length_check=: \ - distdir) \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile all-local -installdirs: installdirs-recursive -installdirs-am: -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-recursive - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-libtool \ - distclean-local distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-exec-am: - -install-html: install-html-recursive - -install-info: install-info-recursive - -install-man: - -install-pdf: install-pdf-recursive - -install-ps: install-ps-recursive - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip - -.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ - all all-am all-local am--refresh check check-am clean \ - clean-generic clean-libtool ctags ctags-recursive dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-generic distclean-libtool \ - distclean-local distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-recursive uninstall uninstall-am - - -# We want to maintain only one copy of config.rpath. The one in this directory -# is the source. - -all-local: $(srcdir)/../build-aux/config.rpath - -$(srcdir)/../build-aux/config.rpath: $(srcdir)/config.rpath - cp $(srcdir)/config.rpath $(srcdir)/../build-aux/config.rpath - -# The AC_CONFIG_AUX_DIR argument in the tests/rpath*/configure.ac files is -# interpreted in two different contexts: -# 1. at "make distrib" time, when we call automake, relative to -# SRCDIR/tests/rpath*/, -# 2. at "make check" time, when the directory is copied and configured, -# relative to BUILDDIR/tests/tstdir/rp-*/. -# We choose this argument to be '../../../build-aux', for case 1, and therefore -# we need to make a local copy of the build-aux directory, for case 2. - -all-local: build-aux/config.guess build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh build-aux/missing build-aux/config.rpath - -build-aux-dir: - test -d build-aux || mkdir build-aux - touch build-aux-dir - -build-aux/config.guess: $(srcdir)/../build-aux/config.guess build-aux-dir - cp $(srcdir)/../build-aux/config.guess build-aux/config.guess - -build-aux/config.sub: $(srcdir)/../build-aux/config.sub build-aux-dir - cp $(srcdir)/../build-aux/config.sub build-aux/config.sub - -build-aux/install-sh: $(srcdir)/../build-aux/install-sh build-aux-dir - cp $(srcdir)/../build-aux/install-sh build-aux/install-sh - -build-aux/ltmain.sh: $(srcdir)/../build-aux/ltmain.sh build-aux-dir - cp $(srcdir)/../build-aux/ltmain.sh build-aux/ltmain.sh - -build-aux/missing: $(srcdir)/../build-aux/missing build-aux-dir - cp $(srcdir)/../build-aux/missing build-aux/missing - -build-aux/config.rpath: $(srcdir)/config.rpath build-aux-dir - cp $(srcdir)/config.rpath build-aux/config.rpath - -distclean-local: - rm -rf build-aux build-aux-dir -$(srcdir)/tests/rpathx/Makefile.in: $(srcdir)/tests/rpathx/Makefile.am $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4 - cd $(srcdir)/tests/rpathx && automake Makefile -$(srcdir)/tests/rpathx/aclocal.m4: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/../m4/libtool.m4 - cd $(srcdir)/tests/rpathx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathx/configure: $(srcdir)/tests/rpathx/configure.ac $(srcdir)/tests/rpathx/aclocal.m4 - cd $(srcdir)/tests/rpathx && autoconf -$(srcdir)/tests/rpathy/Makefile.in: $(srcdir)/tests/rpathy/Makefile.am $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4 - cd $(srcdir)/tests/rpathy && automake Makefile -$(srcdir)/tests/rpathy/aclocal.m4: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathy && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathy/configure: $(srcdir)/tests/rpathy/configure.ac $(srcdir)/tests/rpathy/aclocal.m4 - cd $(srcdir)/tests/rpathy && autoconf -$(srcdir)/tests/rpathz/Makefile.in: $(srcdir)/tests/rpathz/Makefile.am $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4 - cd $(srcdir)/tests/rpathz && automake Makefile -$(srcdir)/tests/rpathz/aclocal.m4: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/../m4/libtool.m4 $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathz && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -I `cd ../../../m4 && pwd` -$(srcdir)/tests/rpathz/configure: $(srcdir)/tests/rpathz/configure.ac $(srcdir)/tests/rpathz/aclocal.m4 - cd $(srcdir)/tests/rpathz && autoconf -$(srcdir)/tests/rpathlx/Makefile.in: $(srcdir)/tests/rpathlx/Makefile.am $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4 - cd $(srcdir)/tests/rpathlx && automake Makefile -$(srcdir)/tests/rpathlx/aclocal.m4: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlx/configure: $(srcdir)/tests/rpathlx/configure.ac $(srcdir)/tests/rpathlx/aclocal.m4 - cd $(srcdir)/tests/rpathlx && autoconf -$(srcdir)/tests/rpathly/Makefile.in: $(srcdir)/tests/rpathly/Makefile.am $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4 - cd $(srcdir)/tests/rpathly && automake Makefile -$(srcdir)/tests/rpathly/aclocal.m4: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathly && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathly/configure: $(srcdir)/tests/rpathly/configure.ac $(srcdir)/tests/rpathly/aclocal.m4 - cd $(srcdir)/tests/rpathly && autoconf -$(srcdir)/tests/rpathlyx/Makefile.in: $(srcdir)/tests/rpathlyx/Makefile.am $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4 - cd $(srcdir)/tests/rpathlyx && automake Makefile -$(srcdir)/tests/rpathlyx/aclocal.m4: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlyx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlyx/configure: $(srcdir)/tests/rpathlyx/configure.ac $(srcdir)/tests/rpathlyx/aclocal.m4 - cd $(srcdir)/tests/rpathlyx && autoconf -$(srcdir)/tests/rpathlz/Makefile.in: $(srcdir)/tests/rpathlz/Makefile.am $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4 - cd $(srcdir)/tests/rpathlz && automake Makefile -$(srcdir)/tests/rpathlz/aclocal.m4: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlz && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlz/configure: $(srcdir)/tests/rpathlz/configure.ac $(srcdir)/tests/rpathlz/aclocal.m4 - cd $(srcdir)/tests/rpathlz && autoconf -$(srcdir)/tests/rpathlzyx/Makefile.in: $(srcdir)/tests/rpathlzyx/Makefile.am $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4 - cd $(srcdir)/tests/rpathlzyx && automake Makefile -$(srcdir)/tests/rpathlzyx/aclocal.m4: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/m4/lib-link.m4 $(srcdir)/m4/lib-prefix.m4 $(srcdir)/m4/lib-ld.m4 - cd $(srcdir)/tests/rpathlzyx && ../../../build-aux/fixaclocal aclocal -I `cd ../../m4 && pwd` -$(srcdir)/tests/rpathlzyx/configure: $(srcdir)/tests/rpathlzyx/configure.ac $(srcdir)/tests/rpathlzyx/aclocal.m4 - cd $(srcdir)/tests/rpathlzyx && autoconf - -subconfigures: $(SUBCONFIGURES) - -# Hidden from automake, but really activated. Works around an automake-1.5 bug. -#distdir: subconfigures -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/README gettext-0.18.1.1/autoconf-lib-link/README --- gettext-0.17/autoconf-lib-link/README 2003-02-14 20:17:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/README 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -This subpackage defines autoconf macros for linking with shared libraries. diff -Nru gettext-0.17/autoconf-lib-link/tests/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,79 +0,0 @@ -## Makefile for the autoconf-lib-link/tests subdirectory of GNU gettext -## Copyright (C) 1995-1997, 2001-2003, 2006 Free Software Foundation, Inc. -## -## This program is free software: you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 3 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program. If not, see . - -## Process this file with automake to produce Makefile.in. - -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies -MOSTLYCLEANFILES = - -TESTS = rpath-1a rpath-1b \ - rpath-2aaa rpath-2aab rpath-2aad \ - rpath-2aba rpath-2abb rpath-2abd \ - rpath-2baa rpath-2bab rpath-2bad \ - rpath-2bba rpath-2bbb rpath-2bbd \ - rpath-3aaa rpath-3aab rpath-3aad \ - rpath-3aah \ - rpath-3aba rpath-3abb rpath-3abd \ - rpath-3abh \ - rpath-3baa rpath-3bab rpath-3bad \ - rpath-3bah \ - rpath-3bba rpath-3bbb rpath-3bbd \ - rpath-3bbh - -EXTRA_DIST = $(TESTS) \ - rpathx/configure.ac rpathx/aclocal.m4 rpathx/configure \ - rpathx/Makefile.am rpathx/Makefile.in rpathx/rpathx.c \ - rpathy/configure.ac rpathy/aclocal.m4 rpathy/configure \ - rpathy/Makefile.am rpathy/Makefile.in rpathy/rpathy.c \ - rpathz/configure.ac rpathz/aclocal.m4 rpathz/configure \ - rpathz/Makefile.am rpathz/Makefile.in rpathz/rpathz.c \ - rpathlx/configure.ac rpathlx/aclocal.m4 rpathlx/configure \ - rpathlx/Makefile.am rpathlx/Makefile.in rpathlx/usex.c \ - rpathly/configure.ac rpathly/aclocal.m4 rpathly/configure \ - rpathly/Makefile.am rpathly/Makefile.in rpathly/usey.c \ - rpathlyx/configure.ac rpathlyx/aclocal.m4 rpathlyx/configure \ - rpathlyx/Makefile.am rpathlyx/Makefile.in rpathlyx/usey.c \ - rpathlz/configure.ac rpathlz/aclocal.m4 rpathlz/configure \ - rpathlz/Makefile.am rpathlz/Makefile.in rpathlz/usez.c \ - rpathlzyx/configure.ac rpathlzyx/aclocal.m4 rpathlzyx/configure \ - rpathlzyx/Makefile.am rpathlzyx/Makefile.in rpathlzyx/usez.c \ - rpath-1 rpath-2_a rpath-2_b rpath-3_a rpath-3_b rpath.README \ - rpath-3aae rpath-3aag rpath-3abe rpath-3abg \ - rpathcfg.sh - -TESTS_ENVIRONMENT = top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \ - OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \ - LIBTOOL='@LIBTOOL@' \ - CC='@CC@' CFLAGS='@CFLAGS@' \ - CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \ - LIBDIRSTEM='@LIBDIRSTEM@' \ - CONFIG_SHELL='$(SHELL)' \ - $(SHELL) - -# Help maintaining config.rpath. -rpathcfg: rpathcfg.sh - top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \ - CONFIG_SHELL='$(SHELL)' \ - CC='@CC@' GCC='@GCC@' \ - LDFLAGS='@LDFLAGS@' \ - LD='@LD@' with_gnu_ld='@with_gnu_ld@' \ - host='@host@' \ - $(SHELL) $(srcdir)/rpathcfg.sh > rpathcfg 2> rpathcfg.log -MOSTLYCLEANFILES += rpathcfg rpathcfg.log - -# Clean up the intermediate directory created by running the tests. -distclean-local: - rm -rf tstdir diff -Nru gettext-0.17/autoconf-lib-link/tests/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/Makefile.in 2007-11-06 23:32:33.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,468 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = tests -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../m4/fixautomake.m4 \ - $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -depcomp = -am__depfiles_maybe = -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GCC = @GCC@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBDIRSTEM = @LIBDIRSTEM@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -aclocaldir = @aclocaldir@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -with_gnu_ld = @with_gnu_ld@ -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies -MOSTLYCLEANFILES = rpathcfg rpathcfg.log -TESTS = rpath-1a rpath-1b \ - rpath-2aaa rpath-2aab rpath-2aad \ - rpath-2aba rpath-2abb rpath-2abd \ - rpath-2baa rpath-2bab rpath-2bad \ - rpath-2bba rpath-2bbb rpath-2bbd \ - rpath-3aaa rpath-3aab rpath-3aad \ - rpath-3aah \ - rpath-3aba rpath-3abb rpath-3abd \ - rpath-3abh \ - rpath-3baa rpath-3bab rpath-3bad \ - rpath-3bah \ - rpath-3bba rpath-3bbb rpath-3bbd \ - rpath-3bbh - -EXTRA_DIST = $(TESTS) \ - rpathx/configure.ac rpathx/aclocal.m4 rpathx/configure \ - rpathx/Makefile.am rpathx/Makefile.in rpathx/rpathx.c \ - rpathy/configure.ac rpathy/aclocal.m4 rpathy/configure \ - rpathy/Makefile.am rpathy/Makefile.in rpathy/rpathy.c \ - rpathz/configure.ac rpathz/aclocal.m4 rpathz/configure \ - rpathz/Makefile.am rpathz/Makefile.in rpathz/rpathz.c \ - rpathlx/configure.ac rpathlx/aclocal.m4 rpathlx/configure \ - rpathlx/Makefile.am rpathlx/Makefile.in rpathlx/usex.c \ - rpathly/configure.ac rpathly/aclocal.m4 rpathly/configure \ - rpathly/Makefile.am rpathly/Makefile.in rpathly/usey.c \ - rpathlyx/configure.ac rpathlyx/aclocal.m4 rpathlyx/configure \ - rpathlyx/Makefile.am rpathlyx/Makefile.in rpathlyx/usey.c \ - rpathlz/configure.ac rpathlz/aclocal.m4 rpathlz/configure \ - rpathlz/Makefile.am rpathlz/Makefile.in rpathlz/usez.c \ - rpathlzyx/configure.ac rpathlzyx/aclocal.m4 rpathlzyx/configure \ - rpathlzyx/Makefile.am rpathlzyx/Makefile.in rpathlzyx/usez.c \ - rpath-1 rpath-2_a rpath-2_b rpath-3_a rpath-3_b rpath.README \ - rpath-3aae rpath-3aag rpath-3abe rpath-3abg \ - rpathcfg.sh - -TESTS_ENVIRONMENT = top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \ - OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \ - LIBTOOL='@LIBTOOL@' \ - CC='@CC@' CFLAGS='@CFLAGS@' \ - CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \ - LIBDIRSTEM='@LIBDIRSTEM@' \ - CONFIG_SHELL='$(SHELL)' \ - $(SHELL) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits tests/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ - ;; \ - *) \ - echo "PASS: $$tst"; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ - xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - echo "SKIP: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ - else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - skipped="($$skip tests were not run)"; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - test -z "$$skipped" || echo "$$skipped"; \ - test -z "$$report" || echo "$$report"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-local - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-TESTS check-am clean clean-generic \ - clean-libtool distclean distclean-generic distclean-libtool \ - distclean-local distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am - - -# Help maintaining config.rpath. -rpathcfg: rpathcfg.sh - top_srcdir=$(srcdir)/../.. srcdir=$(srcdir) \ - CONFIG_SHELL='$(SHELL)' \ - CC='@CC@' GCC='@GCC@' \ - LDFLAGS='@LDFLAGS@' \ - LD='@LD@' with_gnu_ld='@with_gnu_ld@' \ - host='@host@' \ - $(SHELL) $(srcdir)/rpathcfg.sh > rpathcfg 2> rpathcfg.log - -# Clean up the intermediate directory created by running the tests. -distclean-local: - rm -rf tstdir -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-1 gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1 --- gettext-0.17/autoconf-lib-link/tests/rpath-1 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1 1970-01-01 00:00:00.000000000 +0000 @@ -1,39 +0,0 @@ -# Common portion of all rpath-1* tests. - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -tmpfiles="$tmpfiles $rp-prefix" -rm -rf $rp-prefix -mkdir $rp-prefix - -tmpfiles="$tmpfiles tstdir/$rp-build1" -rm -rf tstdir/$rp-build1 -mkdir tstdir/$rp-build1 -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) -(cd tstdir/$rp-build1 - ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) - -tmpfiles="$tmpfiles tstdir/$rp-build2" -rm -rf tstdir/$rp-build2 -mkdir tstdir/$rp-build2 -(cd $srcdir/rpathlx && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) -(cd tstdir/$rp-build2 - ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make check >> make.log -) -result=$? - -rm -rf $tmpfiles - -exit $result diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-1a gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1a --- gettext-0.17/autoconf-lib-link/tests/rpath-1a 2003-02-14 15:49:15.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1a 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# Simple case: a static library. - -rp=rp1a -build1_configure_flags=--disable-shared - -. $srcdir/rpath-1 diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-1b gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1b --- gettext-0.17/autoconf-lib-link/tests/rpath-1b 2003-02-14 15:49:26.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-1b 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# Simple case: a shared library. - -rp=rp1b -build1_configure_flags= - -. $srcdir/rpath-1 diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2_a gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2_a --- gettext-0.17/autoconf-lib-link/tests/rpath-2_a 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2_a 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -# Common portion of all rpath-2?a? tests. - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -tmpfiles="$tmpfiles $rp-prefix" -rm -rf $rp-prefix -mkdir $rp-prefix - -tmpfiles="$tmpfiles tstdir/$rp-build1" -rm -rf tstdir/$rp-build1 -mkdir tstdir/$rp-build1 -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) -(cd tstdir/$rp-build1 - ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix/lib/librpathx.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build2" -rm -rf tstdir/$rp-build2 -mkdir tstdir/$rp-build2 -(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) -(cd tstdir/$rp-build2 - ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix/lib/librpathy.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build3" -rm -rf tstdir/$rp-build3 -mkdir tstdir/$rp-build3 -(cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -) -(cd tstdir/$rp-build3 - ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make check >> make.log -) -result=$? - -rm -rf $tmpfiles - -exit $result diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2aaa gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aaa --- gettext-0.17/autoconf-lib-link/tests/rpath-2aaa 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aaa 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library. - -rp=rp2aaa -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2aab gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aab --- gettext-0.17/autoconf-lib-link/tests/rpath-2aab 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aab 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library. - -rp=rp2aab -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2aad gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aad --- gettext-0.17/autoconf-lib-link/tests/rpath-2aad 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aad 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library. - -rp=rp2aad -build1_configure_flags= -build2_configure_flags= -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2aba gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aba --- gettext-0.17/autoconf-lib-link/tests/rpath-2aba 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2aba 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library. -# Each library installed with a different prefix. - -rp=rp2aba -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2abb gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2abb --- gettext-0.17/autoconf-lib-link/tests/rpath-2abb 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2abb 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library. -# Each library installed with a different prefix. - -rp=rp2abb -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2abd gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2abd --- gettext-0.17/autoconf-lib-link/tests/rpath-2abd 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2abd 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library. -# Each library installed with a different prefix. - -rp=rp2abd -build1_configure_flags= -build2_configure_flags= -build3_package=rpathly -remove_la=no - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2_b gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2_b --- gettext-0.17/autoconf-lib-link/tests/rpath-2_b 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2_b 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -# Common portion of all rpath-2?b? tests. - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -tmpfiles="$tmpfiles $rp-prefix1" -rm -rf $rp-prefix1 -mkdir $rp-prefix1 - -tmpfiles="$tmpfiles $rp-prefix2" -rm -rf $rp-prefix2 -mkdir $rp-prefix2 - -tmpfiles="$tmpfiles $rp-prefix" -rm -rf $rp-prefix -mkdir $rp-prefix - -tmpfiles="$tmpfiles tstdir/$rp-build1" -rm -rf tstdir/$rp-build1 -mkdir tstdir/$rp-build1 -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) -(cd tstdir/$rp-build1 - ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 --libdir=$builddir/$rp-prefix1/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix1/lib/librpathx.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build2" -rm -rf tstdir/$rp-build2 -mkdir tstdir/$rp-build2 -(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) -(cd tstdir/$rp-build2 - ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --libdir=$builddir/$rp-prefix2/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix2/lib/librpathy.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build3" -rm -rf tstdir/$rp-build3 -mkdir tstdir/$rp-build3 -(cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -) -(cd tstdir/$rp-build3 - if test $remove_la = yes; then - build3_configure_flags=--with-librpathx-prefix=$builddir/$rp-prefix1 - else - build3_configure_flags= - fi - ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM --with-librpathy-prefix=$builddir/$rp-prefix2 $build3_configure_flags > configure.log 2>&1 - make > make.log 2>&1 - make check >> make.log -) -result=$? - -rm -rf $tmpfiles - -exit $result diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2baa gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2baa --- gettext-0.17/autoconf-lib-link/tests/rpath-2baa 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2baa 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp2baa -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2bab gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bab --- gettext-0.17/autoconf-lib-link/tests/rpath-2bab 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bab 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp2bab -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2bad gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bad --- gettext-0.17/autoconf-lib-link/tests/rpath-2bad 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bad 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp2bad -build1_configure_flags= -build2_configure_flags= -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2bba gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bba --- gettext-0.17/autoconf-lib-link/tests/rpath-2bba 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bba 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp2bba -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2bbb gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bbb --- gettext-0.17/autoconf-lib-link/tests/rpath-2bbb 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bbb 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp2bbb -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-2bbd gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bbd --- gettext-0.17/autoconf-lib-link/tests/rpath-2bbd 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-2bbd 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp2bbd -build1_configure_flags= -build2_configure_flags= -build3_package=rpathlyx -remove_la=yes - -. $srcdir/rpath-2_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3_a gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3_a --- gettext-0.17/autoconf-lib-link/tests/rpath-3_a 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3_a 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -# Common portion of all rpath-3?a? tests. - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -tmpfiles="$tmpfiles $rp-prefix" -rm -rf $rp-prefix -mkdir $rp-prefix - -tmpfiles="$tmpfiles tstdir/$rp-build1" -rm -rf tstdir/$rp-build1 -mkdir tstdir/$rp-build1 -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) -(cd tstdir/$rp-build1 - ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix/lib/librpathx.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build2" -rm -rf tstdir/$rp-build2 -mkdir tstdir/$rp-build2 -(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) -(cd tstdir/$rp-build2 - ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix/lib/librpathy.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build3" -rm -rf tstdir/$rp-build3 -mkdir tstdir/$rp-build3 -(cd $srcdir/rpathz && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -) -(cd tstdir/$rp-build3 - ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix/lib/librpathz.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build4" -rm -rf tstdir/$rp-build4 -mkdir tstdir/$rp-build4 -(cd $srcdir/$build4_package && tar cf - *) | (cd tstdir/$rp-build4 && tar xf -) -(cd tstdir/$rp-build4 - ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make check >> make.log -) -result=$? - -rm -rf $tmpfiles - -exit $result diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aaa gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aaa --- gettext-0.17/autoconf-lib-link/tests/rpath-3aaa 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aaa 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a static library depending on both. - -rp=rp3aaa -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aab gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aab --- gettext-0.17/autoconf-lib-link/tests/rpath-3aab 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aab 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library, -# and a static library depending on both. - -rp=rp3aab -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aad gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aad --- gettext-0.17/autoconf-lib-link/tests/rpath-3aad 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aad 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a static library depending on both. - -rp=rp3aad -build1_configure_flags= -build2_configure_flags= -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aae gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aae --- gettext-0.17/autoconf-lib-link/tests/rpath-3aae 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aae 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a shared library depending on both. - -rp=rp3aae -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aag gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aag --- gettext-0.17/autoconf-lib-link/tests/rpath-3aag 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aag 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a static library, -# and a shared library depending on both. - -rp=rp3aag -build1_configure_flags=--disable-shared -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aah gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aah --- gettext-0.17/autoconf-lib-link/tests/rpath-3aah 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aah 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a shared library depending on both. - -rp=rp3aah -build1_configure_flags= -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3aba gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aba --- gettext-0.17/autoconf-lib-link/tests/rpath-3aba 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3aba 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a static library depending on both. -# Each library installed with a different prefix. - -rp=rp3aba -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3abb gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abb --- gettext-0.17/autoconf-lib-link/tests/rpath-3abb 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abb 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library, -# and a static library depending on both. -# Each library installed with a different prefix. - -rp=rp3abb -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3abd gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abd --- gettext-0.17/autoconf-lib-link/tests/rpath-3abd 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abd 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a static library depending on both. -# Each library installed with a different prefix. - -rp=rp3abd -build1_configure_flags= -build2_configure_flags= -build3_configure_flags=--disable-shared -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3abe gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abe --- gettext-0.17/autoconf-lib-link/tests/rpath-3abe 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abe 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a shared library depending on both. -# Each library installed with a different prefix. - -rp=rp3abe -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3abg gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abg --- gettext-0.17/autoconf-lib-link/tests/rpath-3abg 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abg 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a static library, -# and a shared library depending on both. -# Each library installed with a different prefix. - -rp=rp3abg -build1_configure_flags=--disable-shared -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3abh gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abh --- gettext-0.17/autoconf-lib-link/tests/rpath-3abh 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3abh 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a shared library depending on both. -# Each library installed with a different prefix. - -rp=rp3abh -build1_configure_flags= -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlz -remove_la=no - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3_b gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3_b --- gettext-0.17/autoconf-lib-link/tests/rpath-3_b 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3_b 1970-01-01 00:00:00.000000000 +0000 @@ -1,85 +0,0 @@ -# Common portion of all rpath-3?b? tests. - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -tmpfiles="$tmpfiles $rp-prefix1" -rm -rf $rp-prefix1 -mkdir $rp-prefix1 - -tmpfiles="$tmpfiles $rp-prefix2" -rm -rf $rp-prefix2 -mkdir $rp-prefix2 - -tmpfiles="$tmpfiles $rp-prefix3" -rm -rf $rp-prefix3 -mkdir $rp-prefix3 - -tmpfiles="$tmpfiles $rp-prefix" -rm -rf $rp-prefix -mkdir $rp-prefix - -tmpfiles="$tmpfiles tstdir/$rp-build1" -rm -rf tstdir/$rp-build1 -mkdir tstdir/$rp-build1 -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -) -(cd tstdir/$rp-build1 - ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 --libdir=$builddir/$rp-prefix1/$LIBDIRSTEM > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix1/lib/librpathx.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build2" -rm -rf tstdir/$rp-build2 -mkdir tstdir/$rp-build2 -(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -) -(cd tstdir/$rp-build2 - ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --libdir=$builddir/$rp-prefix2/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix2/lib/librpathy.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build3" -rm -rf tstdir/$rp-build3 -mkdir tstdir/$rp-build3 -(cd $srcdir/rpathz && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -) -(cd tstdir/$rp-build3 - ${CONFIG_SHELL-/bin/sh} ./configure $build3_configure_flags --prefix=$builddir/$rp-prefix3 --libdir=$builddir/$rp-prefix3/$LIBDIRSTEM --with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2 > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -if test $remove_la = yes; then - rm -f $rp-prefix3/lib/librpathz.la -fi - -tmpfiles="$tmpfiles tstdir/$rp-build4" -rm -rf tstdir/$rp-build4 -mkdir tstdir/$rp-build4 -(cd $srcdir/$build4_package && tar cf - *) | (cd tstdir/$rp-build4 && tar xf -) -(cd tstdir/$rp-build4 - if test $remove_la = yes; then - build4_configure_flags="--with-librpathx-prefix=$builddir/$rp-prefix1 --with-librpathy-prefix=$builddir/$rp-prefix2" - else - build4_configure_flags= - fi - ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM --with-librpathz-prefix=$builddir/$rp-prefix3 $build4_configure_flags > configure.log 2>&1 - make > make.log 2>&1 - make check >> make.log -) -result=$? - -rm -rf $tmpfiles - -exit $result diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3baa gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3baa --- gettext-0.17/autoconf-lib-link/tests/rpath-3baa 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3baa 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp3baa -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bab gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bab --- gettext-0.17/autoconf-lib-link/tests/rpath-3bab 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bab 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp3bab -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bad gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bad --- gettext-0.17/autoconf-lib-link/tests/rpath-3bad 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bad 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp3bad -build1_configure_flags= -build2_configure_flags= -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bah gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bah --- gettext-0.17/autoconf-lib-link/tests/rpath-3bah 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bah 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a shared library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. - -rp=rp3bah -build1_configure_flags= -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_a diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bba gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bba --- gettext-0.17/autoconf-lib-link/tests/rpath-3bba 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bba 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a static library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp3bba -build1_configure_flags=--disable-shared -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bbb gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbb --- gettext-0.17/autoconf-lib-link/tests/rpath-3bbb 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbb 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a static library depending on a shared library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp3bbb -build1_configure_flags= -build2_configure_flags=--disable-shared -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bbd gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbd --- gettext-0.17/autoconf-lib-link/tests/rpath-3bbd 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbd 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a static library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp3bbd -build1_configure_flags= -build2_configure_flags= -build3_configure_flags=--disable-shared -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath-3bbh gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbh --- gettext-0.17/autoconf-lib-link/tests/rpath-3bbh 2003-02-14 20:17:42.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath-3bbh 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -#!/bin/sh - -# Test config.rpath and AC_LIB_LINKFLAGS macro. -# With dependencies: a shared library depending on a shared library, -# and a shared library depending on both. -# No libtool *.la files are assumed, dependencies given as AC_LIB_LINKFLAGS -# argument instead. -# Each library installed with a different prefix. - -rp=rp3bbh -build1_configure_flags= -build2_configure_flags= -build3_configure_flags= -build4_package=rpathlzyx -remove_la=yes - -. $srcdir/rpath-3_b diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathcfg.sh gettext-0.18.1.1/autoconf-lib-link/tests/rpathcfg.sh --- gettext-0.17/autoconf-lib-link/tests/rpathcfg.sh 2006-06-23 14:31:14.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathcfg.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,225 +0,0 @@ -#!/bin/sh -# Prints information for maintaining config.rpath. - -# The caller should set the environment variables -# top_srcdir, srcdir, CONFIG_SHELL, CC, GCC, LDFLAGS, LD, LIBDIRSTEM, with_gnu_ld, host. - -echo "=============== rpathcfg for $host ===============" -echo -echo "--------------- config.rpath output ---------------" -${CONFIG_SHELL-/bin/sh} $srcdir/../config.rpath "$host" | sed -e 's/^acl_cv_//' -echo "--------------- experimentally determined ---------------" -builddir=`pwd` -global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` -export global_top_auxdir - -test -d tstdir || mkdir tstdir - -rm -rf tstprefix tstdir/build tstlib - -eval `${CONFIG_SHELL-/bin/sh} $srcdir/../config.rpath "$host" | grep '^acl_cv_wl='` -wl="$acl_cv_wl" - -# Static library suffix (normally "a"). -mkdir tstprefix -mkdir tstdir/build -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/build && tar xf -) -(cd tstdir/build - ${CONFIG_SHELL-/bin/sh} ./configure --disable-shared --prefix=$builddir/tstprefix --libdir=$builddir/tstprefix/${LIBDIRSTEM-lib} > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -rm -rf tstdir/build -libext= -cd tstprefix/lib -for f in *; do - case $f in - *.la) ;; - *[0-9]) ;; - *) libext=`echo $f | sed -e 's/^.*\.//'`;; - esac - if test -n "$libext"; then - break - fi -done -cd ../.. -rm -rf tstprefix - -# Shared library suffix (normally "so"). -mkdir tstprefix -mkdir tstdir/build -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/build && tar xf -) -(cd tstdir/build - ${CONFIG_SHELL-/bin/sh} ./configure --disable-static --prefix=$builddir/tstprefix --libdir=$builddir/tstprefix/${LIBDIRSTEM-lib} > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -rm -rf tstdir/build -shlibext= -cd tstprefix/lib || exit 1 -for f in *; do - case $f in - *.la) ;; - *[0-9]) ;; - *) shlibext=`echo $f | sed -e 's/^.*\.//'`;; - esac - if test -n "$shlibext"; then - break - fi -done -cd ../.. -rm -rf tstprefix - -# Prepare hardcoding tests. -mkdir tstprefix -mkdir tstdir/build -(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/build && tar xf -) -(cd tstdir/build - ${CONFIG_SHELL-/bin/sh} ./configure --disable-static --prefix=$builddir/tstprefix --libdir=$builddir/tstprefix/${LIBDIRSTEM-lib} > configure.log 2>&1 - make > make.log 2>&1 - make install > install.log 2>&1 -) -rm -rf tstdir/build - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec= -for spec in \ - '-L$libdir' \ - '-R$libdir' \ - '-rpath $libdir' '${wl}-rpath ${wl}$libdir' \ - '${wl}+b ${wl}$libdir' \ - '${wl}-R $libdir:/usr/lib:/lib' \ - '${wl}-blibpath:$libdir:/usr/lib:/lib' \ - '${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' \ - ; do - mv tstprefix/lib tstlib - libdir=`pwd`/tstprefix/lib - eval flag=\"$spec\" - echo 1>&2 - echo "$CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag -o a.out" 1>&2 - $CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag -o a.out - if test $? = 0; then - mv tstlib tstprefix/lib - echo "ok, running created a.out." 1>&2 - if ./a.out; then - hardcode_libdir_flag_spec="$hardcode_libdir_flag_spec$spec -" - fi - else - mv tstlib tstprefix/lib - fi - rm -f a.out -done - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator= -if test -n "$hardcode_libdir_flag_spec"; then - spec=`echo "$hardcode_libdir_flag_spec" | sed -e '2,$d'` - # Try with multiple -rpath flags. - mv tstprefix/lib tstlib - libdir=`pwd`/tstprefix/lib - eval flag1=\"$spec\" - libdir=/tmp - eval flag2=\"$spec\" - echo 1>&2 - echo "$CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag1 $flag2 -o a.out" 1>&2 - $CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag1 $flag2 -o a.out - if test $? = 0; then - mv tstlib tstprefix/lib - echo "ok, running created a.out." 1>&2 - if ./a.out; then - hardcode_libdir_separator=NONE - fi - else - mv tstlib tstprefix/lib - fi - rm -f a.out - if test -z "$hardcode_libdir_separator"; then - # Try with a single -rpath flag. - mv tstprefix/lib tstlib - libdir=`pwd`/tstprefix/lib:/tmp - eval flag=\"$spec\" - echo 1>&2 - echo "$CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag -o a.out" 1>&2 - $CC $LDFLAGS $srcdir/rpathlx/usex.c tstlib/librpathx.$shlibext $flag -o a.out - if test $? = 0; then - mv tstlib tstprefix/lib - echo "ok, running created a.out." 1>&2 - if ./a.out; then - hardcode_libdir_separator=: - fi - else - mv tstlib tstprefix/lib - fi - rm -f a.out - fi - if test -z "$hardcode_libdir_separator"; then - echo "hardcode_libdir_separator test failed!" 1>&2 - else - if test "$hardcode_libdir_separator" = NONE; then - hardcode_libdir_separator= - fi - fi -fi - -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=no -echo 1>&2 -echo "$CC $LDFLAGS $srcdir/rpathlx/usex.c tstprefix/lib/librpathx.$shlibext -o a.out" 1>&2 -$CC $LDFLAGS $srcdir/rpathlx/usex.c tstprefix/lib/librpathx.$shlibext -o a.out -if test $? = 0; then - echo "ok, running created a.out." 1>&2 - if ./a.out; then - hardcode_direct=yes - fi -fi -rm -f a.out - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=no -echo 1>&2 -echo "$CC $LDFLAGS $srcdir/rpathlx/usex.c -Ltstprefix/lib -lrpathx -o a.out" 1>&2 -$CC $LDFLAGS $srcdir/rpathlx/usex.c -Ltstprefix/lib -lrpathx -o a.out -if test $? = 0; then - echo "ok, running created a.out." 1>&2 - if ./a.out; then - hardcode_minus_L=yes - fi -fi -rm -f a.out - -# Clean up. -rm -rf tstprefix tstdir - -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_sys_lib_search_path_spec=`echo "X$sys_lib_search_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` -escaped_sys_lib_dlsearch_path_spec=`echo "X$sys_lib_dlsearch_path_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` - -cat < sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlx/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/configure --- gettext-0.17/autoconf-lib-link/tests/rpathlx/configure 2007-10-31 13:33:35.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,5240 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -LIBRPATHX -LTLIBRPATHX -LIBRPATHX_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib - --without-librpathx-prefix don't search for librpathx in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathlx - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 -echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } -if test "${ac_cv_librpathx_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathx-prefix was given. -if test "${with_librpathx_prefix+set}" = set; then - withval=$with_librpathx_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHX= - LTLIBRPATHX= - INCRPATHX= - LIBRPATHX_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathx ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHX_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" - done - fi - - ac_cv_librpathx_libs="$LIBRPATHX" - ac_cv_librpathx_ltlibs="$LTLIBRPATHX" - ac_cv_librpathx_cppflags="$INCRPATHX" - ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } - LIBRPATHX="$ac_cv_librpathx_libs" - LTLIBRPATHX="$ac_cv_librpathx_ltlibs" - INCRPATHX="$ac_cv_librpathx_cppflags" - LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" - - for element in $INCRPATHX; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHX=yes - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -LIBRPATHX!$LIBRPATHX$ac_delim -LTLIBRPATHX!$LTLIBRPATHX$ac_delim -LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlx/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathlx/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -dnl Configuration of a program that links with librpathx. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathlx, 0) -AC_PROG_CC -AC_LIB_LINKFLAGS([rpathx]) -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlx/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathlx/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -bin_PROGRAMS = usex -usex_SOURCES = usex.c -LDADD = @LIBRPATHX@ - -check: all - ./usex diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlx/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathlx/Makefile.in 2007-10-31 13:33:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,547 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = usex$(EXEEXT) -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_usex_OBJECTS = usex.$(OBJEXT) -usex_OBJECTS = $(am_usex_OBJECTS) -usex_LDADD = $(LDADD) -usex_DEPENDENCIES = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(usex_SOURCES) -DIST_SOURCES = $(usex_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHX = @LIBRPATHX@ -LIBRPATHX_PREFIX = @LIBRPATHX_PREFIX@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHX = @LTLIBRPATHX@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -usex_SOURCES = usex.c -LDADD = @LIBRPATHX@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -usex$(EXEEXT): $(usex_OBJECTS) $(usex_DEPENDENCIES) - @rm -f usex$(EXEEXT) - $(LINK) $(usex_OBJECTS) $(usex_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-compile distclean-generic distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS - - -check: all - ./usex -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlx/usex.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/usex.c --- gettext-0.17/autoconf-lib-link/tests/rpathlx/usex.c 2003-02-14 16:05:34.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlx/usex.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathx_value (void); -int main () { return !(rpathx_value () == 5); } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathly/aclocal.m4 2007-10-31 13:33:39.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,1865 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/configure --- gettext-0.17/autoconf-lib-link/tests/rpathly/configure 2007-10-31 13:33:48.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,5240 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -LIBRPATHY -LTLIBRPATHY -LIBRPATHY_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib - --without-librpathy-prefix don't search for librpathy in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathly - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathy" >&5 -echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; } -if test "${ac_cv_librpathy_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathy-prefix was given. -if test "${with_librpathy_prefix+set}" = set; then - withval=$with_librpathy_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHY= - LTLIBRPATHY= - INCRPATHY= - LIBRPATHY_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathy ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHY_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" - done - fi - - ac_cv_librpathy_libs="$LIBRPATHY" - ac_cv_librpathy_ltlibs="$LTLIBRPATHY" - ac_cv_librpathy_cppflags="$INCRPATHY" - ac_cv_librpathy_prefix="$LIBRPATHY_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; } - LIBRPATHY="$ac_cv_librpathy_libs" - LTLIBRPATHY="$ac_cv_librpathy_ltlibs" - INCRPATHY="$ac_cv_librpathy_cppflags" - LIBRPATHY_PREFIX="$ac_cv_librpathy_prefix" - - for element in $INCRPATHY; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHY=yes - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -LIBRPATHY!$LIBRPATHY$ac_delim -LTLIBRPATHY!$LTLIBRPATHY$ac_delim -LIBRPATHY_PREFIX!$LIBRPATHY_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathly/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -dnl Configuration of a program that links with librpathy. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathly, 0) -AC_PROG_CC -AC_LIB_LINKFLAGS([rpathy]) -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathly/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -bin_PROGRAMS = usey -usey_SOURCES = usey.c -LDADD = @LIBRPATHY@ - -check: all - ./usey diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathly/Makefile.in 2007-10-31 13:33:44.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,547 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = usey$(EXEEXT) -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_usey_OBJECTS = usey.$(OBJEXT) -usey_OBJECTS = $(am_usey_OBJECTS) -usey_LDADD = $(LDADD) -usey_DEPENDENCIES = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(usey_SOURCES) -DIST_SOURCES = $(usey_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHY = @LIBRPATHY@ -LIBRPATHY_PREFIX = @LIBRPATHY_PREFIX@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHY = @LTLIBRPATHY@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -usey_SOURCES = usey.c -LDADD = @LIBRPATHY@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -usey$(EXEEXT): $(usey_OBJECTS) $(usey_DEPENDENCIES) - @rm -f usey$(EXEEXT) - $(LINK) $(usey_OBJECTS) $(usey_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-compile distclean-generic distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS - - -check: all - ./usey -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathly/usey.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/usey.c --- gettext-0.17/autoconf-lib-link/tests/rpathly/usey.c 2003-02-14 16:06:12.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathly/usey.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathy_value (void); -int main () { return !(rpathy_value () == 57); } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/aclocal.m4 2007-10-31 13:33:52.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,1865 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/configure --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/configure 2007-10-31 13:34:00.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,5737 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -LIBRPATHX -LTLIBRPATHX -LIBRPATHX_PREFIX -LIBRPATHY -LTLIBRPATHY -LIBRPATHY_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib - --without-librpathx-prefix don't search for librpathx in includedir and libdir - --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib - --without-librpathy-prefix don't search for librpathy in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathlyx - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 -echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } -if test "${ac_cv_librpathx_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathx-prefix was given. -if test "${with_librpathx_prefix+set}" = set; then - withval=$with_librpathx_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHX= - LTLIBRPATHX= - INCRPATHX= - LIBRPATHX_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathx ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHX_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" - done - fi - - ac_cv_librpathx_libs="$LIBRPATHX" - ac_cv_librpathx_ltlibs="$LTLIBRPATHX" - ac_cv_librpathx_cppflags="$INCRPATHX" - ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } - LIBRPATHX="$ac_cv_librpathx_libs" - LTLIBRPATHX="$ac_cv_librpathx_ltlibs" - INCRPATHX="$ac_cv_librpathx_cppflags" - LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" - - for element in $INCRPATHX; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHX=yes - - - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathy" >&5 -echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; } -if test "${ac_cv_librpathy_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathy-prefix was given. -if test "${with_librpathy_prefix+set}" = set; then - withval=$with_librpathy_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHY= - LTLIBRPATHY= - INCRPATHY= - LIBRPATHY_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathy rpathx' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHY_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" - done - fi - - ac_cv_librpathy_libs="$LIBRPATHY" - ac_cv_librpathy_ltlibs="$LTLIBRPATHY" - ac_cv_librpathy_cppflags="$INCRPATHY" - ac_cv_librpathy_prefix="$LIBRPATHY_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; } - LIBRPATHY="$ac_cv_librpathy_libs" - LTLIBRPATHY="$ac_cv_librpathy_ltlibs" - INCRPATHY="$ac_cv_librpathy_cppflags" - LIBRPATHY_PREFIX="$ac_cv_librpathy_prefix" - - for element in $INCRPATHY; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHY=yes - - - -LIBRPATHY="$LIBRPATHY $LIBRPATHX" - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -LIBRPATHX!$LIBRPATHX$ac_delim -LTLIBRPATHX!$LTLIBRPATHX$ac_delim -LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim -LIBRPATHY!$LIBRPATHY$ac_delim -LTLIBRPATHY!$LTLIBRPATHY$ac_delim -LIBRPATHY_PREFIX!$LIBRPATHY_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -dnl Configuration of a program that links with librpathy. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathlyx, 0) -AC_PROG_CC -AC_LIB_LINKFLAGS([rpathx]) -AC_LIB_LINKFLAGS([rpathy],[rpathx]) -LIBRPATHY="$LIBRPATHY $LIBRPATHX" -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -bin_PROGRAMS = usey -usey_SOURCES = usey.c -LDADD = @LIBRPATHY@ - -check: all - ./usey diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/Makefile.in 2007-10-31 13:33:57.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,550 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = usey$(EXEEXT) -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_usey_OBJECTS = usey.$(OBJEXT) -usey_OBJECTS = $(am_usey_OBJECTS) -usey_LDADD = $(LDADD) -usey_DEPENDENCIES = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(usey_SOURCES) -DIST_SOURCES = $(usey_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHX = @LIBRPATHX@ -LIBRPATHX_PREFIX = @LIBRPATHX_PREFIX@ -LIBRPATHY = @LIBRPATHY@ -LIBRPATHY_PREFIX = @LIBRPATHY_PREFIX@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHX = @LTLIBRPATHX@ -LTLIBRPATHY = @LTLIBRPATHY@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -usey_SOURCES = usey.c -LDADD = @LIBRPATHY@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -usey$(EXEEXT): $(usey_OBJECTS) $(usey_DEPENDENCIES) - @rm -f usey$(EXEEXT) - $(LINK) $(usey_OBJECTS) $(usey_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-compile distclean-generic distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS - - -check: all - ./usey -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlyx/usey.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/usey.c --- gettext-0.17/autoconf-lib-link/tests/rpathlyx/usey.c 2003-02-14 16:06:52.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlyx/usey.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathy_value (void); -int main () { return !(rpathy_value () == 57); } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathlz/aclocal.m4 2007-10-31 13:34:05.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,1865 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/configure --- gettext-0.17/autoconf-lib-link/tests/rpathlz/configure 2007-10-31 13:34:13.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,5240 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -LIBRPATHZ -LTLIBRPATHZ -LIBRPATHZ_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathz-prefix[=DIR] search for librpathz in DIR/include and DIR/lib - --without-librpathz-prefix don't search for librpathz in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathlz - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathz" >&5 -echo $ECHO_N "checking how to link with librpathz... $ECHO_C" >&6; } -if test "${ac_cv_librpathz_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathz-prefix was given. -if test "${with_librpathz_prefix+set}" = set; then - withval=$with_librpathz_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHZ= - LTLIBRPATHZ= - INCRPATHZ= - LIBRPATHZ_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathz ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_a" - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHZ_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHZ="${INCRPATHZ}${INCRPATHZ:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$dep" - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-l$name" - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-R$found_dir" - done - fi - - ac_cv_librpathz_libs="$LIBRPATHZ" - ac_cv_librpathz_ltlibs="$LTLIBRPATHZ" - ac_cv_librpathz_cppflags="$INCRPATHZ" - ac_cv_librpathz_prefix="$LIBRPATHZ_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathz_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathz_libs" >&6; } - LIBRPATHZ="$ac_cv_librpathz_libs" - LTLIBRPATHZ="$ac_cv_librpathz_ltlibs" - INCRPATHZ="$ac_cv_librpathz_cppflags" - LIBRPATHZ_PREFIX="$ac_cv_librpathz_prefix" - - for element in $INCRPATHZ; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHZ=yes - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -LIBRPATHZ!$LIBRPATHZ$ac_delim -LTLIBRPATHZ!$LTLIBRPATHZ$ac_delim -LIBRPATHZ_PREFIX!$LIBRPATHZ_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathlz/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -dnl Configuration of a program that links with librpathz. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathlz, 0) -AC_PROG_CC -AC_LIB_LINKFLAGS([rpathz]) -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathlz/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -bin_PROGRAMS = usez -usez_SOURCES = usez.c -LDADD = @LIBRPATHZ@ - -check: all - ./usez diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathlz/Makefile.in 2007-10-31 13:34:10.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,547 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = usez$(EXEEXT) -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_usez_OBJECTS = usez.$(OBJEXT) -usez_OBJECTS = $(am_usez_OBJECTS) -usez_LDADD = $(LDADD) -usez_DEPENDENCIES = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(usez_SOURCES) -DIST_SOURCES = $(usez_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHZ = @LIBRPATHZ@ -LIBRPATHZ_PREFIX = @LIBRPATHZ_PREFIX@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHZ = @LTLIBRPATHZ@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -usez_SOURCES = usez.c -LDADD = @LIBRPATHZ@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -usez$(EXEEXT): $(usez_OBJECTS) $(usez_DEPENDENCIES) - @rm -f usez$(EXEEXT) - $(LINK) $(usez_OBJECTS) $(usez_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-compile distclean-generic distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS - - -check: all - ./usez -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlz/usez.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/usez.c --- gettext-0.17/autoconf-lib-link/tests/rpathlz/usez.c 2003-02-14 16:07:27.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlz/usez.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathz_value (void); -int main () { return !(rpathz_value () == 5171); } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/aclocal.m4 2007-10-31 13:34:18.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,1865 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/configure --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/configure 2007-10-31 13:34:26.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,6233 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -LIBRPATHX -LTLIBRPATHX -LIBRPATHX_PREFIX -LIBRPATHY -LTLIBRPATHY -LIBRPATHY_PREFIX -LIBRPATHZ -LTLIBRPATHZ -LIBRPATHZ_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib - --without-librpathx-prefix don't search for librpathx in includedir and libdir - --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib - --without-librpathy-prefix don't search for librpathy in includedir and libdir - --with-librpathz-prefix[=DIR] search for librpathz in DIR/include and DIR/lib - --without-librpathz-prefix don't search for librpathz in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathlzyx - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 -echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } -if test "${ac_cv_librpathx_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathx-prefix was given. -if test "${with_librpathx_prefix+set}" = set; then - withval=$with_librpathx_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHX= - LTLIBRPATHX= - INCRPATHX= - LIBRPATHX_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathx ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHX_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" - done - fi - - ac_cv_librpathx_libs="$LIBRPATHX" - ac_cv_librpathx_ltlibs="$LTLIBRPATHX" - ac_cv_librpathx_cppflags="$INCRPATHX" - ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } - LIBRPATHX="$ac_cv_librpathx_libs" - LTLIBRPATHX="$ac_cv_librpathx_ltlibs" - INCRPATHX="$ac_cv_librpathx_cppflags" - LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" - - for element in $INCRPATHX; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHX=yes - - - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathy" >&5 -echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; } -if test "${ac_cv_librpathy_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathy-prefix was given. -if test "${with_librpathy_prefix+set}" = set; then - withval=$with_librpathy_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHY= - LTLIBRPATHY= - INCRPATHY= - LIBRPATHY_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathy rpathx' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHY_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" - done - fi - - ac_cv_librpathy_libs="$LIBRPATHY" - ac_cv_librpathy_ltlibs="$LTLIBRPATHY" - ac_cv_librpathy_cppflags="$INCRPATHY" - ac_cv_librpathy_prefix="$LIBRPATHY_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; } - LIBRPATHY="$ac_cv_librpathy_libs" - LTLIBRPATHY="$ac_cv_librpathy_ltlibs" - INCRPATHY="$ac_cv_librpathy_cppflags" - LIBRPATHY_PREFIX="$ac_cv_librpathy_prefix" - - for element in $INCRPATHY; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHY=yes - - - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathz" >&5 -echo $ECHO_N "checking how to link with librpathz... $ECHO_C" >&6; } -if test "${ac_cv_librpathz_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathz-prefix was given. -if test "${with_librpathz_prefix+set}" = set; then - withval=$with_librpathz_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHZ= - LTLIBRPATHZ= - INCRPATHZ= - LIBRPATHZ_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathz rpathx rpathy' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_so" - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$found_a" - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHZ_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHZ="${INCRPATHZ}${INCRPATHZ:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHZ; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$dep" - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }-l$name" - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHZ="${LIBRPATHZ}${LIBRPATHZ:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHZ="${LTLIBRPATHZ}${LTLIBRPATHZ:+ }-R$found_dir" - done - fi - - ac_cv_librpathz_libs="$LIBRPATHZ" - ac_cv_librpathz_ltlibs="$LTLIBRPATHZ" - ac_cv_librpathz_cppflags="$INCRPATHZ" - ac_cv_librpathz_prefix="$LIBRPATHZ_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathz_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathz_libs" >&6; } - LIBRPATHZ="$ac_cv_librpathz_libs" - LTLIBRPATHZ="$ac_cv_librpathz_ltlibs" - INCRPATHZ="$ac_cv_librpathz_cppflags" - LIBRPATHZ_PREFIX="$ac_cv_librpathz_prefix" - - for element in $INCRPATHZ; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHZ=yes - - - -LIBRPATHZ="$LIBRPATHZ $LIBRPATHY $LIBRPATHX" - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -LIBRPATHX!$LIBRPATHX$ac_delim -LTLIBRPATHX!$LTLIBRPATHX$ac_delim -LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim -LIBRPATHY!$LIBRPATHY$ac_delim -LTLIBRPATHY!$LTLIBRPATHY$ac_delim -LIBRPATHY_PREFIX!$LIBRPATHY_PREFIX$ac_delim -LIBRPATHZ!$LIBRPATHZ$ac_delim -LTLIBRPATHZ!$LTLIBRPATHZ$ac_delim -LIBRPATHZ_PREFIX!$LIBRPATHZ_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -dnl Configuration of a program that links with librpathz. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathlzyx, 0) -AC_PROG_CC -AC_LIB_LINKFLAGS([rpathx]) -AC_LIB_LINKFLAGS([rpathy],[rpathx]) -AC_LIB_LINKFLAGS([rpathz],[rpathx rpathy]) -LIBRPATHZ="$LIBRPATHZ $LIBRPATHY $LIBRPATHX" -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -bin_PROGRAMS = usez -usez_SOURCES = usez.c -LDADD = @LIBRPATHZ@ - -check: all - ./usez diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/Makefile.in 2007-10-31 13:34:22.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,553 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = usez$(EXEEXT) -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_usez_OBJECTS = usez.$(OBJEXT) -usez_OBJECTS = $(am_usez_OBJECTS) -usez_LDADD = $(LDADD) -usez_DEPENDENCIES = -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(usez_SOURCES) -DIST_SOURCES = $(usez_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EXEEXT = @EXEEXT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHX = @LIBRPATHX@ -LIBRPATHX_PREFIX = @LIBRPATHX_PREFIX@ -LIBRPATHY = @LIBRPATHY@ -LIBRPATHY_PREFIX = @LIBRPATHY_PREFIX@ -LIBRPATHZ = @LIBRPATHZ@ -LIBRPATHZ_PREFIX = @LIBRPATHZ_PREFIX@ -LIBS = @LIBS@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHX = @LTLIBRPATHX@ -LTLIBRPATHY = @LTLIBRPATHY@ -LTLIBRPATHZ = @LTLIBRPATHZ@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -usez_SOURCES = usez.c -LDADD = @LIBRPATHZ@ -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-binPROGRAMS: $(bin_PROGRAMS) - @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done - -uninstall-binPROGRAMS: - @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done - -clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) -usez$(EXEEXT): $(usez_OBJECTS) $(usez_DEPENDENCIES) - @rm -f usez$(EXEEXT) - $(LINK) $(usez_OBJECTS) $(usez_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: - for dir in "$(DESTDIR)$(bindir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-binPROGRAMS - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-compile distclean-generic distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS - - -check: all - ./usez -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathlzyx/usez.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/usez.c --- gettext-0.17/autoconf-lib-link/tests/rpathlzyx/usez.c 2003-02-14 16:08:06.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathlzyx/usez.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathz_value (void); -int main () { return !(rpathz_value () == 5171); } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpath.README gettext-0.18.1.1/autoconf-lib-link/tests/rpath.README --- gettext-0.17/autoconf-lib-link/tests/rpath.README 2006-06-21 16:29:19.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpath.README 1970-01-01 00:00:00.000000000 +0000 @@ -1,78 +0,0 @@ -Tests for config.rpath and lib-link.m4. - -rpath-1 w - | - +---- a = static, b = shared - -rpath-2 u v w - | | | - | | +---- a = static/static, b = static/shared, - | | c = shared/static, d = shared/shared. - | | - | +------ a = all libraries and the program have the same prefix, - | b = the libraries are in different directories. - | - +-------- a = all shared libraries use the libtool *.la files for - resolving dependencies, b = dependencies are given as - AC_LIB_LINKFLAGS argument instead. - -rpath-3 u v w - | | | - | | +---- a = static/static/static, b = static/static/shared, - | | c = static/shared/static, d = static/shared/shared, - | | e = shared/static/static, f = shared/static/shared, - | | g = shared/shared/static, h = shared/shared/shared. - | | - | +------ a = all libraries and the program have the same prefix, - | b = the libraries are in different directories. - | - +-------- a = all shared libraries use the libtool *.la files for - resolving dependencies, b = dependencies are given as - AC_LIB_LINKFLAGS argument instead. - -The rpath-2* tests are sensitive to - - incomplete shared library support in the system, - - bugs in libtool that creates the shared libraries, - - bugs in lib-link.m4. - -The rpath-3* tests are sensitive to - - incomplete shared library support in the system, - - bugs in libtool that creates the shared libraries. - -Known failures: - -* On all platforms supporting shared libraries, - rpath-3aae rpath-3aag - rpath-3abe rpath-3abg - fail. This is a libtool 1.4.2 bug: When a shared library depends on a - static library indirectly through two different dependency paths, - libtool attempts to link together invalid sets of object files. - -* OSF/1 4.0: the tests - rpath-2bbd - rpath-3bbd rpath-3bbf rpath-3bbg rpath-3bbh - fail, because -rpath options are not cumulative: - The last -rpath option overrides all previous ones. One would need to - pass all directories, separated by colons, in a single -rpath option. - -* On Linux/x86_64: the tests - rpath-2aac rpath-2abc rpath-2bac rpath-2bbc - rpath-3aac rpath-3aaf rpath-3abc rpath-3abf - rpath-3bac rpath-3bae rpath-3baf rpath-3bag - rpath-3bbc rpath-3bbe rpath-3bbf rpath-3bbg - fail, because code from static libraries not compiled with -fPIC cannot - be integrated into shared libraries: linker error about relocations. - -* Solaris: the tests - rpath-3bae rpath-3bbe - rpath-3aaf rpath-3abf - rpath-3baf rpath-3bbf - fail, because code from static libraries not compiled with -fPIC cannot - be integrated into shared libraries: linker error "Text relocation remains". - -* Cygwin: The tests - rpath-2aac rpath-2abc - rpath-3aac rpath-3aaf - rpath-3abc rpath-3abf - fail. - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathx/aclocal.m4 2007-10-27 02:23:33.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,7426 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- - -# serial 51 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) - - -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL - - -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL - - -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - -AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl -dnl - -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR - -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] - -# Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC - fi - ;; -esac - -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP - - -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_LINKER_BOILERPLATE - - -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX - - -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT - - -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH - - -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; - ]) -esac - -need_locks="$enable_libtool_lock" - -])# _LT_AC_LOCK - - -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) - -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION - - -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) -fi -])# AC_LIBTOOL_LINKER_OPTION - - -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN - - -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN - - -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF - - -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -])# AC_LIBTOOL_DLOPEN_SELF - - -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O - - -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS - - -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR - - -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH - - -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP - - -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -m4_if($1,[],[ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER - - -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) - else - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in - "") ;; - *) AC_MSG_ERROR([invalid tag name: $tagname]) - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - AC_MSG_ERROR([tag name \"$tagname\" already exists]) - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_LIBTOOL_LANG_CXX_CONFIG - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - AC_LIBTOOL_LANG_F77_CONFIG - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - AC_LIBTOOL_LANG_GCJ_CONFIG - else - tagname="" - fi - ;; - - RC) - AC_LIBTOOL_LANG_RC_CONFIG - ;; - - *) - AC_MSG_ERROR([Unsupported tag name: $tagname]) - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - AC_MSG_ERROR([unable to update list of available tagged configurations.]) - fi -fi -])# _LT_AC_TAGCONFIG - - -# AC_LIBTOOL_DLOPEN -# ----------------- -# enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_DLOPEN - - -# AC_LIBTOOL_WIN32_DLL -# -------------------- -# declare package support for building win32 DLLs -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_WIN32_DLL - - -# AC_ENABLE_SHARED([DEFAULT]) -# --------------------------- -# implement the --enable-shared flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([shared], - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) -])# AC_ENABLE_SHARED - - -# AC_DISABLE_SHARED -# ----------------- -# set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no) -])# AC_DISABLE_SHARED - - -# AC_ENABLE_STATIC([DEFAULT]) -# --------------------------- -# implement the --enable-static flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([static], - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]AC_ENABLE_STATIC_DEFAULT) -])# AC_ENABLE_STATIC - - -# AC_DISABLE_STATIC -# ----------------- -# set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no) -])# AC_DISABLE_STATIC - - -# AC_ENABLE_FAST_INSTALL([DEFAULT]) -# --------------------------------- -# implement the --enable-fast-install flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([fast-install], - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) -])# AC_ENABLE_FAST_INSTALL - - -# AC_DISABLE_FAST_INSTALL -# ----------------------- -# set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no) -])# AC_DISABLE_FAST_INSTALL - - -# AC_LIBTOOL_PICMODE([MODE]) -# -------------------------- -# implement the --with-pic flag -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default) -])# AC_LIBTOOL_PICMODE - - -# AC_PROG_EGREP -# ------------- -# This is predefined starting with Autoconf 2.54, so this conditional -# definition can be removed once we require Autoconf 2.54 or later. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -])]) - - -# AC_PATH_TOOL_PREFIX -# ------------------- -# find a file program which can recognize shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -])# AC_PATH_TOOL_PREFIX - - -# AC_PATH_MAGIC -# ------------- -# find a file program which can recognize a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# AC_PATH_MAGIC - - -# AC_PROG_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH([gnu-ld], - [AC_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no]) -AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -])# AC_DEPLIBS_CHECK_METHOD - - -# AC_PROG_NM -# ---------- -# find the pathname to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -])# AC_PROG_NM - - -# AC_CHECK_LIBM -# ------------- -# check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -])# AC_CHECK_LIBM - - -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' -# (note the single quotes!). If your package is not flat and you're not -# using automake, define top_builddir and top_srcdir appropriately in -# the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_CONVENIENCE - - -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl installable library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# and an installed libltdl is not found, it is assumed to be `libltdl'. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and top_srcdir -# appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, lt_dlinit, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= - fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_INSTALLABLE - - -# AC_LIBTOOL_CXX -# -------------- -# enable support for C++ libraries -AC_DEFUN([AC_LIBTOOL_CXX], -[AC_REQUIRE([_LT_AC_LANG_CXX]) -])# AC_LIBTOOL_CXX - - -# _LT_AC_LANG_CXX -# --------------- -AC_DEFUN([_LT_AC_LANG_CXX], -[AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) -])# _LT_AC_LANG_CXX - -# _LT_AC_PROG_CXXCPP -# ------------------ -AC_DEFUN([_LT_AC_PROG_CXXCPP], -[ -AC_REQUIRE([AC_PROG_CXX]) -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -fi -])# _LT_AC_PROG_CXXCPP - -# AC_LIBTOOL_F77 -# -------------- -# enable support for Fortran 77 libraries -AC_DEFUN([AC_LIBTOOL_F77], -[AC_REQUIRE([_LT_AC_LANG_F77]) -])# AC_LIBTOOL_F77 - - -# _LT_AC_LANG_F77 -# --------------- -AC_DEFUN([_LT_AC_LANG_F77], -[AC_REQUIRE([AC_PROG_F77]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) -])# _LT_AC_LANG_F77 - - -# AC_LIBTOOL_GCJ -# -------------- -# enable support for GCJ libraries -AC_DEFUN([AC_LIBTOOL_GCJ], -[AC_REQUIRE([_LT_AC_LANG_GCJ]) -])# AC_LIBTOOL_GCJ - - -# _LT_AC_LANG_GCJ -# --------------- -AC_DEFUN([_LT_AC_LANG_GCJ], -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) -])# _LT_AC_LANG_GCJ - - -# AC_LIBTOOL_RC -# ------------- -# enable support for Windows resource files -AC_DEFUN([AC_LIBTOOL_RC], -[AC_REQUIRE([LT_AC_PROG_RC]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) -])# AC_LIBTOOL_RC - - -# AC_LIBTOOL_LANG_C_CONFIG -# ------------------------ -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) -AC_DEFUN([_LT_AC_LANG_C_CONFIG], -[lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_SYS_LIB_STRIP -AC_LIBTOOL_DLOPEN_SELF - -# Report which library types will actually be built -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_C_CONFIG - - -# AC_LIBTOOL_LANG_CXX_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], -[AC_LANG_PUSH(C++) -AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Dependencies to place before and after the object being linked: -_LT_AC_TAGVAR(predep_objects, $1)= -_LT_AC_TAGVAR(postdep_objects, $1)= -_LT_AC_TAGVAR(predeps, $1)= -_LT_AC_TAGVAR(postdeps, $1)= -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' -else - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - AC_PROG_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -_LT_AC_TAGVAR(ld_shlibs, $1)=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - freebsd-elf*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - ;; - gnu*) - ;; - hpux9*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - m88k*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; -esac -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_AC_TAGVAR(GCC, $1)="$GXX" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_POSTDEP_PREDEP($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -])# AC_LIBTOOL_LANG_CXX_CONFIG - -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) -# ------------------------------------ -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_AC_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac -])# AC_LIBTOOL_POSTDEP_PREDEP - -# AC_LIBTOOL_LANG_F77_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], -[AC_REQUIRE([AC_PROG_F77]) -AC_LANG_PUSH(Fortran 77) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -_LT_AC_TAGVAR(GCC, $1)="$G77" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_F77_CONFIG - - -# AC_LIBTOOL_LANG_GCJ_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], -[AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_GCJ_CONFIG - - -# AC_LIBTOOL_LANG_RC_CONFIG -# ------------------------- -# Ensure that the configuration vars for the Windows resource compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], -[AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_RC_CONFIG - - -# AC_LIBTOOL_CONFIG([TAGNAME]) -# ---------------------------- -# If TAGNAME is not passed, then create an initial libtool script -# with a default configuration from the untagged config vars. Otherwise -# add code to config.status for appending the configuration named by -# TAGNAME from the matching tagged config vars. -AC_DEFUN([AC_LIBTOOL_CONFIG], -[# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - _LT_AC_TAGVAR(compiler, $1) \ - _LT_AC_TAGVAR(CC, $1) \ - _LT_AC_TAGVAR(LD, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ - _LT_AC_TAGVAR(old_archive_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ - _LT_AC_TAGVAR(predep_objects, $1) \ - _LT_AC_TAGVAR(postdep_objects, $1) \ - _LT_AC_TAGVAR(predeps, $1) \ - _LT_AC_TAGVAR(postdeps, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ - _LT_AC_TAGVAR(archive_cmds, $1) \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ - _LT_AC_TAGVAR(postinstall_cmds, $1) \ - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ - _LT_AC_TAGVAR(no_undefined_flag, $1) \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ - _LT_AC_TAGVAR(hardcode_automatic, $1) \ - _LT_AC_TAGVAR(module_cmds, $1) \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ - _LT_AC_TAGVAR(fix_srcfile_path, $1) \ - _LT_AC_TAGVAR(exclude_expsyms, $1) \ - _LT_AC_TAGVAR(include_expsyms, $1); do - - case $var in - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ - _LT_AC_TAGVAR(archive_cmds, $1) | \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(module_cmds, $1) | \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\[$]0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` - ;; - esac - -ifelse([$1], [], - [cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - AC_MSG_NOTICE([creating $ofile])], - [cfgfile="$ofile"]) - - cat <<__EOF__ >> "$cfgfile" -ifelse([$1], [], -[#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG], -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) - -# Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) - -# Commands used to build and install a shared archive. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) - -# The commands to list exported symbols. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) - -# Symbols that must always be exported. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) - -ifelse([$1],[], -[# ### END LIBTOOL CONFIG], -[# ### END LIBTOOL TAG CONFIG: $tagname]) - -__EOF__ - -ifelse([$1],[], [ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -]) -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi -])# AC_LIBTOOL_CONFIG - - -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl - -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI - - -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([LT_AC_PROG_SED]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[[ABCDGIRSTW]]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[[]] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE - - -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) -# --------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= - -AC_MSG_CHECKING([for $compiler option to produce PIC]) - ifelse([$1],[CXX],[ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - newsos6) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - como) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) -]) - - -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) -# ------------------------------------ -# See if the linker supports building shared libraries. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -ifelse([$1],[CXX],[ - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - ;; - *) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -],[ - runpath_var= - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)= - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown - _LT_AC_TAGVAR(hardcode_automatic, $1)=no - _LT_AC_TAGVAR(module_cmds, $1)= - _LT_AC_TAGVAR(module_expsym_cmds, $1)= - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_AC_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - _LT_CC_BASENAME([$compiler]) - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - # see comment about different semantics on the GNU ld section - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - bsdi[[45]]*) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - freebsd1*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_AC_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac -])# AC_LIBTOOL_PROG_LD_SHLIBS - - -# _LT_AC_FILE_LTDLL_C -# ------------------- -# Be careful that the start marker always follows a newline. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ -])# _LT_AC_FILE_LTDLL_C - - -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) -# --------------------------------- -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) - - -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) - -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) - -AC_DEFUN([LT_AC_PROG_GCJ], -[AC_CHECK_TOOL(GCJ, gcj, no) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS) -]) - -AC_DEFUN([LT_AC_PROG_RC], -[AC_CHECK_TOOL(RC, windres, no) -]) - - -# Cheap backport of AS_EXECUTABLE_P and required macros -# from Autoconf 2.59; we should not use $as_executable_p directly. - -# _AS_TEST_PREPARE -# ---------------- -m4_ifndef([_AS_TEST_PREPARE], -[m4_defun([_AS_TEST_PREPARE], -[if test -x / >/dev/null 2>&1; then - as_executable_p='test -x' -else - as_executable_p='test -f' -fi -])])# _AS_TEST_PREPARE - -# AS_EXECUTABLE_P -# --------------- -# Check whether a file is executable. -m4_ifndef([AS_EXECUTABLE_P], -[m4_defun([AS_EXECUTABLE_P], -[AS_REQUIRE([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -])])# AS_EXECUTABLE_P - -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -# LT_AC_PROG_SED -# -------------- -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -AC_DEFUN([LT_AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/configure --- gettext-0.17/autoconf-lib-link/tests/rpathx/configure 2007-10-27 02:23:51.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,20593 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -SED -GREP -EGREP -LN_S -ECHO -AR -RANLIB -CPP -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathx - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4301 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - - -esac - -need_locks="$enable_libtool_lock" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7038: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7042: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7331: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7335: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } - -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } - -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7435: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:7439: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# ### END LIBTOOL CONFIG - -__EOF__ - - - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -GCC_CXX="$GXX" -LD_CXX="$LD" - - -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$rm -f confest.$objext - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac - - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12304: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:12308: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } - -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } - -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12408: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:12412: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13973: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:13977: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } - -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14077: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14081: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; - - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - freebsd1*) - ld_shlibs_F77=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - *) - ld_shlibs_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } - -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_F77 - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_F77 - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - - -lt_prog_compiler_no_builtin_flag_GCJ= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16264: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16268: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16557: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16561: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16661: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:16665: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - *) - ld_shlibs_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_GCJ - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_GCJ - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) - - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - -lt_cv_prog_compiler_c_o_RC=yes - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_RC - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_RC - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - ;; - - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Prevent multiple expansion - - - - - - - - - - - - - - - - - - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -SED!$SED$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -CPP!$CPP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathx/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -dnl Configuration of librpathx. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathx, 0) -AC_PROG_CC -AM_PROG_LIBTOOL -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathx/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathx.la -librpathx_la_SOURCES = rpathx.c -librpathx_la_LDFLAGS = -lc -no-undefined diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathx/Makefile.in 2007-10-27 02:23:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,589 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/ltmain.sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(libdir)" -libLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(lib_LTLIBRARIES) -librpathx_la_LIBADD = -am_librpathx_la_OBJECTS = rpathx.lo -librpathx_la_OBJECTS = $(am_librpathx_la_OBJECTS) -librpathx_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(librpathx_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(librpathx_la_SOURCES) -DIST_SOURCES = $(librpathx_la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathx.la -librpathx_la_SOURCES = rpathx.c -librpathx_la_LDFLAGS = -lc -no-undefined -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ - else :; fi; \ - done - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -librpathx.la: $(librpathx_la_OBJECTS) $(librpathx_la_DEPENDENCIES) - $(librpathx_la_LINK) -rpath $(libdir) $(librpathx_la_OBJECTS) $(librpathx_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: - $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(libdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libLTLIBRARIES - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathx/rpathx.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/rpathx.c --- gettext-0.17/autoconf-lib-link/tests/rpathx/rpathx.c 2003-02-14 16:08:45.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathx/rpathx.c 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -int rpathx_value () { return 5; } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathy/aclocal.m4 2007-10-31 13:32:33.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,8433 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- - -# serial 51 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) - - -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL - - -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL - - -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - -AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl -dnl - -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR - -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] - -# Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC - fi - ;; -esac - -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP - - -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_LINKER_BOILERPLATE - - -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX - - -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT - - -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH - - -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; - ]) -esac - -need_locks="$enable_libtool_lock" - -])# _LT_AC_LOCK - - -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) - -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION - - -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) -fi -])# AC_LIBTOOL_LINKER_OPTION - - -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN - - -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN - - -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF - - -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -])# AC_LIBTOOL_DLOPEN_SELF - - -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O - - -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS - - -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR - - -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH - - -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP - - -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -m4_if($1,[],[ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER - - -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) - else - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in - "") ;; - *) AC_MSG_ERROR([invalid tag name: $tagname]) - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - AC_MSG_ERROR([tag name \"$tagname\" already exists]) - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_LIBTOOL_LANG_CXX_CONFIG - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - AC_LIBTOOL_LANG_F77_CONFIG - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - AC_LIBTOOL_LANG_GCJ_CONFIG - else - tagname="" - fi - ;; - - RC) - AC_LIBTOOL_LANG_RC_CONFIG - ;; - - *) - AC_MSG_ERROR([Unsupported tag name: $tagname]) - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - AC_MSG_ERROR([unable to update list of available tagged configurations.]) - fi -fi -])# _LT_AC_TAGCONFIG - - -# AC_LIBTOOL_DLOPEN -# ----------------- -# enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_DLOPEN - - -# AC_LIBTOOL_WIN32_DLL -# -------------------- -# declare package support for building win32 DLLs -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_WIN32_DLL - - -# AC_ENABLE_SHARED([DEFAULT]) -# --------------------------- -# implement the --enable-shared flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([shared], - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) -])# AC_ENABLE_SHARED - - -# AC_DISABLE_SHARED -# ----------------- -# set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no) -])# AC_DISABLE_SHARED - - -# AC_ENABLE_STATIC([DEFAULT]) -# --------------------------- -# implement the --enable-static flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([static], - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]AC_ENABLE_STATIC_DEFAULT) -])# AC_ENABLE_STATIC - - -# AC_DISABLE_STATIC -# ----------------- -# set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no) -])# AC_DISABLE_STATIC - - -# AC_ENABLE_FAST_INSTALL([DEFAULT]) -# --------------------------------- -# implement the --enable-fast-install flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([fast-install], - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) -])# AC_ENABLE_FAST_INSTALL - - -# AC_DISABLE_FAST_INSTALL -# ----------------------- -# set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no) -])# AC_DISABLE_FAST_INSTALL - - -# AC_LIBTOOL_PICMODE([MODE]) -# -------------------------- -# implement the --with-pic flag -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default) -])# AC_LIBTOOL_PICMODE - - -# AC_PROG_EGREP -# ------------- -# This is predefined starting with Autoconf 2.54, so this conditional -# definition can be removed once we require Autoconf 2.54 or later. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -])]) - - -# AC_PATH_TOOL_PREFIX -# ------------------- -# find a file program which can recognize shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -])# AC_PATH_TOOL_PREFIX - - -# AC_PATH_MAGIC -# ------------- -# find a file program which can recognize a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# AC_PATH_MAGIC - - -# AC_PROG_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH([gnu-ld], - [AC_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no]) -AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -])# AC_DEPLIBS_CHECK_METHOD - - -# AC_PROG_NM -# ---------- -# find the pathname to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -])# AC_PROG_NM - - -# AC_CHECK_LIBM -# ------------- -# check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -])# AC_CHECK_LIBM - - -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' -# (note the single quotes!). If your package is not flat and you're not -# using automake, define top_builddir and top_srcdir appropriately in -# the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_CONVENIENCE - - -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl installable library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# and an installed libltdl is not found, it is assumed to be `libltdl'. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and top_srcdir -# appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, lt_dlinit, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= - fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_INSTALLABLE - - -# AC_LIBTOOL_CXX -# -------------- -# enable support for C++ libraries -AC_DEFUN([AC_LIBTOOL_CXX], -[AC_REQUIRE([_LT_AC_LANG_CXX]) -])# AC_LIBTOOL_CXX - - -# _LT_AC_LANG_CXX -# --------------- -AC_DEFUN([_LT_AC_LANG_CXX], -[AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) -])# _LT_AC_LANG_CXX - -# _LT_AC_PROG_CXXCPP -# ------------------ -AC_DEFUN([_LT_AC_PROG_CXXCPP], -[ -AC_REQUIRE([AC_PROG_CXX]) -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -fi -])# _LT_AC_PROG_CXXCPP - -# AC_LIBTOOL_F77 -# -------------- -# enable support for Fortran 77 libraries -AC_DEFUN([AC_LIBTOOL_F77], -[AC_REQUIRE([_LT_AC_LANG_F77]) -])# AC_LIBTOOL_F77 - - -# _LT_AC_LANG_F77 -# --------------- -AC_DEFUN([_LT_AC_LANG_F77], -[AC_REQUIRE([AC_PROG_F77]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) -])# _LT_AC_LANG_F77 - - -# AC_LIBTOOL_GCJ -# -------------- -# enable support for GCJ libraries -AC_DEFUN([AC_LIBTOOL_GCJ], -[AC_REQUIRE([_LT_AC_LANG_GCJ]) -])# AC_LIBTOOL_GCJ - - -# _LT_AC_LANG_GCJ -# --------------- -AC_DEFUN([_LT_AC_LANG_GCJ], -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) -])# _LT_AC_LANG_GCJ - - -# AC_LIBTOOL_RC -# ------------- -# enable support for Windows resource files -AC_DEFUN([AC_LIBTOOL_RC], -[AC_REQUIRE([LT_AC_PROG_RC]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) -])# AC_LIBTOOL_RC - - -# AC_LIBTOOL_LANG_C_CONFIG -# ------------------------ -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) -AC_DEFUN([_LT_AC_LANG_C_CONFIG], -[lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_SYS_LIB_STRIP -AC_LIBTOOL_DLOPEN_SELF - -# Report which library types will actually be built -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_C_CONFIG - - -# AC_LIBTOOL_LANG_CXX_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], -[AC_LANG_PUSH(C++) -AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Dependencies to place before and after the object being linked: -_LT_AC_TAGVAR(predep_objects, $1)= -_LT_AC_TAGVAR(postdep_objects, $1)= -_LT_AC_TAGVAR(predeps, $1)= -_LT_AC_TAGVAR(postdeps, $1)= -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' -else - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - AC_PROG_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -_LT_AC_TAGVAR(ld_shlibs, $1)=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - freebsd-elf*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - ;; - gnu*) - ;; - hpux9*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - m88k*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; -esac -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_AC_TAGVAR(GCC, $1)="$GXX" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_POSTDEP_PREDEP($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -])# AC_LIBTOOL_LANG_CXX_CONFIG - -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) -# ------------------------------------ -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_AC_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac -])# AC_LIBTOOL_POSTDEP_PREDEP - -# AC_LIBTOOL_LANG_F77_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], -[AC_REQUIRE([AC_PROG_F77]) -AC_LANG_PUSH(Fortran 77) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -_LT_AC_TAGVAR(GCC, $1)="$G77" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_F77_CONFIG - - -# AC_LIBTOOL_LANG_GCJ_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], -[AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_GCJ_CONFIG - - -# AC_LIBTOOL_LANG_RC_CONFIG -# ------------------------- -# Ensure that the configuration vars for the Windows resource compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], -[AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_RC_CONFIG - - -# AC_LIBTOOL_CONFIG([TAGNAME]) -# ---------------------------- -# If TAGNAME is not passed, then create an initial libtool script -# with a default configuration from the untagged config vars. Otherwise -# add code to config.status for appending the configuration named by -# TAGNAME from the matching tagged config vars. -AC_DEFUN([AC_LIBTOOL_CONFIG], -[# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - _LT_AC_TAGVAR(compiler, $1) \ - _LT_AC_TAGVAR(CC, $1) \ - _LT_AC_TAGVAR(LD, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ - _LT_AC_TAGVAR(old_archive_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ - _LT_AC_TAGVAR(predep_objects, $1) \ - _LT_AC_TAGVAR(postdep_objects, $1) \ - _LT_AC_TAGVAR(predeps, $1) \ - _LT_AC_TAGVAR(postdeps, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ - _LT_AC_TAGVAR(archive_cmds, $1) \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ - _LT_AC_TAGVAR(postinstall_cmds, $1) \ - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ - _LT_AC_TAGVAR(no_undefined_flag, $1) \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ - _LT_AC_TAGVAR(hardcode_automatic, $1) \ - _LT_AC_TAGVAR(module_cmds, $1) \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ - _LT_AC_TAGVAR(fix_srcfile_path, $1) \ - _LT_AC_TAGVAR(exclude_expsyms, $1) \ - _LT_AC_TAGVAR(include_expsyms, $1); do - - case $var in - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ - _LT_AC_TAGVAR(archive_cmds, $1) | \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(module_cmds, $1) | \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\[$]0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` - ;; - esac - -ifelse([$1], [], - [cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - AC_MSG_NOTICE([creating $ofile])], - [cfgfile="$ofile"]) - - cat <<__EOF__ >> "$cfgfile" -ifelse([$1], [], -[#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG], -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) - -# Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) - -# Commands used to build and install a shared archive. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) - -# The commands to list exported symbols. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) - -# Symbols that must always be exported. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) - -ifelse([$1],[], -[# ### END LIBTOOL CONFIG], -[# ### END LIBTOOL TAG CONFIG: $tagname]) - -__EOF__ - -ifelse([$1],[], [ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -]) -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi -])# AC_LIBTOOL_CONFIG - - -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl - -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI - - -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([LT_AC_PROG_SED]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[[ABCDGIRSTW]]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[[]] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE - - -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) -# --------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= - -AC_MSG_CHECKING([for $compiler option to produce PIC]) - ifelse([$1],[CXX],[ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - newsos6) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - como) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) -]) - - -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) -# ------------------------------------ -# See if the linker supports building shared libraries. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -ifelse([$1],[CXX],[ - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - ;; - *) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -],[ - runpath_var= - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)= - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown - _LT_AC_TAGVAR(hardcode_automatic, $1)=no - _LT_AC_TAGVAR(module_cmds, $1)= - _LT_AC_TAGVAR(module_expsym_cmds, $1)= - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_AC_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - _LT_CC_BASENAME([$compiler]) - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - # see comment about different semantics on the GNU ld section - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - bsdi[[45]]*) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - freebsd1*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_AC_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac -])# AC_LIBTOOL_PROG_LD_SHLIBS - - -# _LT_AC_FILE_LTDLL_C -# ------------------- -# Be careful that the start marker always follows a newline. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ -])# _LT_AC_FILE_LTDLL_C - - -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) -# --------------------------------- -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) - - -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) - -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) - -AC_DEFUN([LT_AC_PROG_GCJ], -[AC_CHECK_TOOL(GCJ, gcj, no) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS) -]) - -AC_DEFUN([LT_AC_PROG_RC], -[AC_CHECK_TOOL(RC, windres, no) -]) - - -# Cheap backport of AS_EXECUTABLE_P and required macros -# from Autoconf 2.59; we should not use $as_executable_p directly. - -# _AS_TEST_PREPARE -# ---------------- -m4_ifndef([_AS_TEST_PREPARE], -[m4_defun([_AS_TEST_PREPARE], -[if test -x / >/dev/null 2>&1; then - as_executable_p='test -x' -else - as_executable_p='test -f' -fi -])])# _AS_TEST_PREPARE - -# AS_EXECUTABLE_P -# --------------- -# Check whether a file is executable. -m4_ifndef([AS_EXECUTABLE_P], -[m4_defun([AS_EXECUTABLE_P], -[AS_REQUIRE([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -])])# AS_EXECUTABLE_P - -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -# LT_AC_PROG_SED -# -------------- -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -AC_DEFUN([LT_AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -]) - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/configure --- gettext-0.17/autoconf-lib-link/tests/rpathy/configure 2007-10-31 13:32:51.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,21275 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -SED -GREP -EGREP -LN_S -ECHO -AR -RANLIB -CPP -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -LIBRPATHX -LTLIBRPATHX -LIBRPATHX_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib - --without-librpathx-prefix don't search for librpathx in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathy - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4308 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - - -esac - -need_locks="$enable_libtool_lock" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7045: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7049: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7338: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7342: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } - -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } - -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7442: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:7446: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# ### END LIBTOOL CONFIG - -__EOF__ - - - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -GCC_CXX="$GXX" -LD_CXX="$LD" - - -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$rm -f confest.$objext - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac - - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12311: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:12315: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } - -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } - -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12415: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:12419: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13980: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:13984: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } - -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14084: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14088: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; - - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - freebsd1*) - ld_shlibs_F77=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - *) - ld_shlibs_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } - -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_F77 - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_F77 - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - - -lt_prog_compiler_no_builtin_flag_GCJ= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16271: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16275: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16564: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16568: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16668: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:16672: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - *) - ld_shlibs_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_GCJ - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_GCJ - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) - - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - -lt_cv_prog_compiler_c_o_RC=yes - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_RC - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_RC - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - ;; - - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Prevent multiple expansion - - - - - - - - - - - - - - - - - - - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 -echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } -if test "${ac_cv_librpathx_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathx-prefix was given. -if test "${with_librpathx_prefix+set}" = set; then - withval=$with_librpathx_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHX= - LTLIBRPATHX= - INCRPATHX= - LIBRPATHX_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathx ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHX_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" - done - fi - - ac_cv_librpathx_libs="$LIBRPATHX" - ac_cv_librpathx_ltlibs="$LTLIBRPATHX" - ac_cv_librpathx_cppflags="$INCRPATHX" - ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } - LIBRPATHX="$ac_cv_librpathx_libs" - LTLIBRPATHX="$ac_cv_librpathx_ltlibs" - INCRPATHX="$ac_cv_librpathx_cppflags" - LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" - - for element in $INCRPATHX; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHX=yes - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -SED!$SED$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -CPP!$CPP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -LIBRPATHX!$LIBRPATHX$ac_delim -LTLIBRPATHX!$LTLIBRPATHX$ac_delim -LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathy/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -dnl Configuration of librpathy that depends on librpathx. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathy, 0) -AC_PROG_CC -AM_PROG_LIBTOOL -AC_LIB_LINKFLAGS([rpathx]) -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathy/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathy.la -librpathy_la_SOURCES = rpathy.c -librpathy_la_LDFLAGS = @LTLIBRPATHX@ -lc -no-undefined diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathy/Makefile.in 2007-10-31 13:32:41.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,593 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/ltmain.sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(libdir)" -libLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(lib_LTLIBRARIES) -librpathy_la_LIBADD = -am_librpathy_la_OBJECTS = rpathy.lo -librpathy_la_OBJECTS = $(am_librpathy_la_OBJECTS) -librpathy_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(librpathy_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(librpathy_la_SOURCES) -DIST_SOURCES = $(librpathy_la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHX = @LIBRPATHX@ -LIBRPATHX_PREFIX = @LIBRPATHX_PREFIX@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHX = @LTLIBRPATHX@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathy.la -librpathy_la_SOURCES = rpathy.c -librpathy_la_LDFLAGS = @LTLIBRPATHX@ -lc -no-undefined -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ - else :; fi; \ - done - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -librpathy.la: $(librpathy_la_OBJECTS) $(librpathy_la_DEPENDENCIES) - $(librpathy_la_LINK) -rpath $(libdir) $(librpathy_la_OBJECTS) $(librpathy_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: - $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(libdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libLTLIBRARIES - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathy/rpathy.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/rpathy.c --- gettext-0.17/autoconf-lib-link/tests/rpathy/rpathy.c 2003-02-14 16:09:26.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathy/rpathy.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -extern int rpathx_value (void); -int rpathy_value () { return 10 * rpathx_value () + 7; } diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/aclocal.m4 gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/aclocal.m4 --- gettext-0.17/autoconf-lib-link/tests/rpathz/aclocal.m4 2007-10-31 13:33:04.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/aclocal.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,8433 +0,0 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - - -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- - -# serial 51 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) - - -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL - - -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL - - -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - -AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl -dnl - -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR - -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] - -# Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC - fi - ;; -esac - -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP - - -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_LINKER_BOILERPLATE - - -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX - - -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT - - -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac - -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi - -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi - -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH - - -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; - ]) -esac - -need_locks="$enable_libtool_lock" - -])# _LT_AC_LOCK - - -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) - -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION - - -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -]) - -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) -fi -])# AC_LIBTOOL_LINKER_OPTION - - -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN - - -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN - - -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF - - -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -])# AC_LIBTOOL_DLOPEN_SELF - - -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O - - -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS - - -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR - - -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) - -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH - - -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP - - -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -m4_if($1,[],[ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER - - -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) - else - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in - "") ;; - *) AC_MSG_ERROR([invalid tag name: $tagname]) - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - AC_MSG_ERROR([tag name \"$tagname\" already exists]) - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_LIBTOOL_LANG_CXX_CONFIG - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - AC_LIBTOOL_LANG_F77_CONFIG - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - AC_LIBTOOL_LANG_GCJ_CONFIG - else - tagname="" - fi - ;; - - RC) - AC_LIBTOOL_LANG_RC_CONFIG - ;; - - *) - AC_MSG_ERROR([Unsupported tag name: $tagname]) - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - AC_MSG_ERROR([unable to update list of available tagged configurations.]) - fi -fi -])# _LT_AC_TAGCONFIG - - -# AC_LIBTOOL_DLOPEN -# ----------------- -# enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_DLOPEN - - -# AC_LIBTOOL_WIN32_DLL -# -------------------- -# declare package support for building win32 DLLs -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_WIN32_DLL - - -# AC_ENABLE_SHARED([DEFAULT]) -# --------------------------- -# implement the --enable-shared flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([shared], - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) -])# AC_ENABLE_SHARED - - -# AC_DISABLE_SHARED -# ----------------- -# set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no) -])# AC_DISABLE_SHARED - - -# AC_ENABLE_STATIC([DEFAULT]) -# --------------------------- -# implement the --enable-static flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([static], - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]AC_ENABLE_STATIC_DEFAULT) -])# AC_ENABLE_STATIC - - -# AC_DISABLE_STATIC -# ----------------- -# set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no) -])# AC_DISABLE_STATIC - - -# AC_ENABLE_FAST_INSTALL([DEFAULT]) -# --------------------------------- -# implement the --enable-fast-install flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([fast-install], - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) -])# AC_ENABLE_FAST_INSTALL - - -# AC_DISABLE_FAST_INSTALL -# ----------------------- -# set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no) -])# AC_DISABLE_FAST_INSTALL - - -# AC_LIBTOOL_PICMODE([MODE]) -# -------------------------- -# implement the --with-pic flag -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default) -])# AC_LIBTOOL_PICMODE - - -# AC_PROG_EGREP -# ------------- -# This is predefined starting with Autoconf 2.54, so this conditional -# definition can be removed once we require Autoconf 2.54 or later. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -])]) - - -# AC_PATH_TOOL_PREFIX -# ------------------- -# find a file program which can recognize shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -])# AC_PATH_TOOL_PREFIX - - -# AC_PATH_MAGIC -# ------------- -# find a file program which can recognize a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# AC_PATH_MAGIC - - -# AC_PROG_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH([gnu-ld], - [AC_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no]) -AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -])# AC_DEPLIBS_CHECK_METHOD - - -# AC_PROG_NM -# ---------- -# find the pathname to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -])# AC_PROG_NM - - -# AC_CHECK_LIBM -# ------------- -# check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") - ;; -esac -])# AC_CHECK_LIBM - - -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' -# (note the single quotes!). If your package is not flat and you're not -# using automake, define top_builddir and top_srcdir appropriately in -# the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_CONVENIENCE - - -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl installable library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# and an installed libltdl is not found, it is assumed to be `libltdl'. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and top_srcdir -# appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, lt_dlinit, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= - fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_INSTALLABLE - - -# AC_LIBTOOL_CXX -# -------------- -# enable support for C++ libraries -AC_DEFUN([AC_LIBTOOL_CXX], -[AC_REQUIRE([_LT_AC_LANG_CXX]) -])# AC_LIBTOOL_CXX - - -# _LT_AC_LANG_CXX -# --------------- -AC_DEFUN([_LT_AC_LANG_CXX], -[AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) -])# _LT_AC_LANG_CXX - -# _LT_AC_PROG_CXXCPP -# ------------------ -AC_DEFUN([_LT_AC_PROG_CXXCPP], -[ -AC_REQUIRE([AC_PROG_CXX]) -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -fi -])# _LT_AC_PROG_CXXCPP - -# AC_LIBTOOL_F77 -# -------------- -# enable support for Fortran 77 libraries -AC_DEFUN([AC_LIBTOOL_F77], -[AC_REQUIRE([_LT_AC_LANG_F77]) -])# AC_LIBTOOL_F77 - - -# _LT_AC_LANG_F77 -# --------------- -AC_DEFUN([_LT_AC_LANG_F77], -[AC_REQUIRE([AC_PROG_F77]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) -])# _LT_AC_LANG_F77 - - -# AC_LIBTOOL_GCJ -# -------------- -# enable support for GCJ libraries -AC_DEFUN([AC_LIBTOOL_GCJ], -[AC_REQUIRE([_LT_AC_LANG_GCJ]) -])# AC_LIBTOOL_GCJ - - -# _LT_AC_LANG_GCJ -# --------------- -AC_DEFUN([_LT_AC_LANG_GCJ], -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) -])# _LT_AC_LANG_GCJ - - -# AC_LIBTOOL_RC -# ------------- -# enable support for Windows resource files -AC_DEFUN([AC_LIBTOOL_RC], -[AC_REQUIRE([LT_AC_PROG_RC]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) -])# AC_LIBTOOL_RC - - -# AC_LIBTOOL_LANG_C_CONFIG -# ------------------------ -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) -AC_DEFUN([_LT_AC_LANG_C_CONFIG], -[lt_save_CC="$CC" -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_SYS_LIB_STRIP -AC_LIBTOOL_DLOPEN_SELF - -# Report which library types will actually be built -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_C_CONFIG - - -# AC_LIBTOOL_LANG_CXX_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], -[AC_LANG_PUSH(C++) -AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Dependencies to place before and after the object being linked: -_LT_AC_TAGVAR(predep_objects, $1)= -_LT_AC_TAGVAR(postdep_objects, $1)= -_LT_AC_TAGVAR(predeps, $1)= -_LT_AC_TAGVAR(postdeps, $1)= -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' -else - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - AC_PROG_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -_LT_AC_TAGVAR(ld_shlibs, $1)=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - freebsd-elf*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - ;; - gnu*) - ;; - hpux9*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - m88k*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; -esac -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -_LT_AC_TAGVAR(GCC, $1)="$GXX" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_POSTDEP_PREDEP($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -])# AC_LIBTOOL_LANG_CXX_CONFIG - -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) -# ------------------------------------ -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac -]) - -case " $_LT_AC_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac -])# AC_LIBTOOL_POSTDEP_PREDEP - -# AC_LIBTOOL_LANG_F77_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], -[AC_REQUIRE([AC_PROG_F77]) -AC_LANG_PUSH(Fortran 77) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) - -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -_LT_AC_TAGVAR(GCC, $1)="$G77" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_F77_CONFIG - - -# AC_LIBTOOL_LANG_GCJ_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], -[AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_GCJ_CONFIG - - -# AC_LIBTOOL_LANG_RC_CONFIG -# ------------------------- -# Ensure that the configuration vars for the Windows resource compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], -[AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_RC_CONFIG - - -# AC_LIBTOOL_CONFIG([TAGNAME]) -# ---------------------------- -# If TAGNAME is not passed, then create an initial libtool script -# with a default configuration from the untagged config vars. Otherwise -# add code to config.status for appending the configuration named by -# TAGNAME from the matching tagged config vars. -AC_DEFUN([AC_LIBTOOL_CONFIG], -[# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - _LT_AC_TAGVAR(compiler, $1) \ - _LT_AC_TAGVAR(CC, $1) \ - _LT_AC_TAGVAR(LD, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ - _LT_AC_TAGVAR(old_archive_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ - _LT_AC_TAGVAR(predep_objects, $1) \ - _LT_AC_TAGVAR(postdep_objects, $1) \ - _LT_AC_TAGVAR(predeps, $1) \ - _LT_AC_TAGVAR(postdeps, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ - _LT_AC_TAGVAR(archive_cmds, $1) \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ - _LT_AC_TAGVAR(postinstall_cmds, $1) \ - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ - _LT_AC_TAGVAR(no_undefined_flag, $1) \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ - _LT_AC_TAGVAR(hardcode_automatic, $1) \ - _LT_AC_TAGVAR(module_cmds, $1) \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ - _LT_AC_TAGVAR(fix_srcfile_path, $1) \ - _LT_AC_TAGVAR(exclude_expsyms, $1) \ - _LT_AC_TAGVAR(include_expsyms, $1); do - - case $var in - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ - _LT_AC_TAGVAR(archive_cmds, $1) | \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(module_cmds, $1) | \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\[$]0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` - ;; - esac - -ifelse([$1], [], - [cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - AC_MSG_NOTICE([creating $ofile])], - [cfgfile="$ofile"]) - - cat <<__EOF__ >> "$cfgfile" -ifelse([$1], [], -[#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG], -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) - -# Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) - -# Commands used to build and install a shared archive. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) - -# The commands to list exported symbols. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) - -# Symbols that must always be exported. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) - -ifelse([$1],[], -[# ### END LIBTOOL CONFIG], -[# ### END LIBTOOL TAG CONFIG: $tagname]) - -__EOF__ - -ifelse([$1],[], [ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -]) -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi -])# AC_LIBTOOL_CONFIG - - -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl - -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI - - -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([LT_AC_PROG_SED]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[[ABCDGIRSTW]]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[[]] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE - - -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) -# --------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= - -AC_MSG_CHECKING([for $compiler option to produce PIC]) - ifelse([$1],[CXX],[ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - newsos6) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - como) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) -]) - - -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) -# ------------------------------------ -# See if the linker supports building shared libraries. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -ifelse([$1],[CXX],[ - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - ;; - *) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -],[ - runpath_var= - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)= - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown - _LT_AC_TAGVAR(hardcode_automatic, $1)=no - _LT_AC_TAGVAR(module_cmds, $1)= - _LT_AC_TAGVAR(module_expsym_cmds, $1)= - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_AC_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - _LT_CC_BASENAME([$compiler]) - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - # see comment about different semantics on the GNU ld section - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - bsdi[[45]]*) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - - dgux*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - freebsd1*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_AC_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac -])# AC_LIBTOOL_PROG_LD_SHLIBS - - -# _LT_AC_FILE_LTDLL_C -# ------------------- -# Be careful that the start marker always follows a newline. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ -])# _LT_AC_FILE_LTDLL_C - - -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) -# --------------------------------- -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) - - -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) - -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) - -AC_DEFUN([LT_AC_PROG_GCJ], -[AC_CHECK_TOOL(GCJ, gcj, no) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS) -]) - -AC_DEFUN([LT_AC_PROG_RC], -[AC_CHECK_TOOL(RC, windres, no) -]) - - -# Cheap backport of AS_EXECUTABLE_P and required macros -# from Autoconf 2.59; we should not use $as_executable_p directly. - -# _AS_TEST_PREPARE -# ---------------- -m4_ifndef([_AS_TEST_PREPARE], -[m4_defun([_AS_TEST_PREPARE], -[if test -x / >/dev/null 2>&1; then - as_executable_p='test -x' -else - as_executable_p='test -f' -fi -])])# _AS_TEST_PREPARE - -# AS_EXECUTABLE_P -# --------------- -# Check whether a file is executable. -m4_ifndef([AS_EXECUTABLE_P], -[m4_defun([AS_EXECUTABLE_P], -[AS_REQUIRE([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -])])# AS_EXECUTABLE_P - -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -# LT_AC_PROG_SED -# -------------- -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -AC_DEFUN([LT_AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -]) - -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) - -# lib-link.m4 serial 13 (gettext-0.17) -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -AC_PREREQ(2.54) - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname -dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - LIB[]NAME[]_PREFIX= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - AC_SUBST([LIB]NAME[_PREFIX]) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl acl_libext, -dnl acl_shlibext, -dnl acl_hardcode_libdir_flag_spec, -dnl acl_hardcode_libdir_separator, -dnl acl_hardcode_direct, -dnl acl_hardcode_minus_L. -AC_DEFUN([AC_LIB_RPATH], -[ - dnl Tell automake >= 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found -dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl Autoconf >= 2.61 supports dots in --with options. - define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix], -[ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - LIB[]NAME[]_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$acl_hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIB[]NAME[]_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -dnl For those cases where a variable contains several -L and -l options -dnl referring to unknown libraries and directories, this macro determines the -dnl necessary additional linker options for the runtime path. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) -dnl sets LDADDVAR to linker options needed together with LIBSVALUE. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, -dnl otherwise linking without libtool is assumed. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -[ - AC_REQUIRE([AC_LIB_RPATH]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - $1= - if test "$enable_rpath" != no; then - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode directories into the resulting - dnl binary. - rpathdirs= - next= - for opt in $2; do - if test -n "$next"; then - dir="$next" - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= - else - case $opt in - -L) next=yes ;; - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` - dnl No need to hardcode the standard /usr/lib. - if test "X$dir" != "X/usr/$acl_libdirstem"; then - rpathdirs="$rpathdirs $dir" - fi - next= ;; - *) next= ;; - esac - fi - done - if test "X$rpathdirs" != "X"; then - if test -n ""$3""; then - dnl libtool is used for linking. Use -R options. - for dir in $rpathdirs; do - $1="${$1}${$1:+ }-R$dir" - done - else - dnl The linker is used for linking directly. - if test -n "$acl_hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user - dnl must pass all path elements in one option. - alldirs= - for dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="$flag" - else - dnl The -rpath options are cumulative. - for dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - $1="${$1}${$1:+ }$flag" - done - fi - fi - fi - fi - fi - AC_SUBST([$1]) -]) - -# lib-prefix.m4 serial 5 (gettext-0.15) -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing -dnl the basename of the libdir, either "lib" or "lib64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. The current - dnl practice is that on a system supporting 32-bit and 64-bit instruction - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit - dnl libraries go under $prefix/lib. We determine the compiler's default - dnl mode by looking at the compiler's library search path. If at least - dnl of its elements ends in /lib64 or points to a directory whose absolute - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the - dnl default, namely "lib". - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi -]) - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/configure gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/configure --- gettext-0.17/autoconf-lib-link/tests/rpathz/configure 2007-10-31 13:33:22.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/configure 1970-01-01 00:00:00.000000000 +0000 @@ -1,21771 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. -# -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS - - - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= - -ac_unique_file="configure.ac" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -SED -GREP -EGREP -LN_S -ECHO -AR -RANLIB -CPP -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -LIBRPATHX -LTLIBRPATHX -LIBRPATHX_PREFIX -LIBRPATHY -LTLIBRPATHY -LIBRPATHY_PREFIX -global_top_auxdir -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-rpath do not hardcode runtime library paths - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib - --without-librpathx-prefix don't search for librpathx in includedir and libdir - --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib - --without-librpathy-prefix don't search for librpathy in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_aux_dir= -for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext_rpathz - VERSION=0 - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4313 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - - -esac - -need_locks="$enable_libtool_lock" - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - - -lt_prog_compiler_no_builtin_flag= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7050: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7054: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7343: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7347: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } - -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } - -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7447: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:7451: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi - -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef shl_load - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif - -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif - -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_svld_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# ### END LIBTOOL CONFIG - -__EOF__ - - - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - - -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -GCC_CXX="$GXX" -LD_CXX="$LD" - - -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi - -$rm -f confest.$objext - -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; - -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; - -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac - - -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac - -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12316: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:12320: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } - -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } - -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12420: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:12424: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac - -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_CXX - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_CXX - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13985: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:13989: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } - -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14089: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14093: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; - - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - freebsd1*) - ld_shlibs_F77=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - - *) - ld_shlibs_F77=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } - -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_F77 - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_F77 - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - - -lt_prog_compiler_no_builtin_flag_GCJ= - -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - - -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16276: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16280: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi - -fi - -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16569: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16573: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi - -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } - -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi - - -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16673: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:16677: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } - - -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; - - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - *) - ld_shlibs_GCJ=no - ;; - esac - fi - -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" - -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; - -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd1*) - dynamic_linker=no - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_GCJ - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_GCJ - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) - - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - -lt_cv_prog_compiler_c_o_RC=yes - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler_RC - -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD_RC - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec - -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path - -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC - -# ### END LIBTOOL TAG CONFIG: $tagname - -__EOF__ - - -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - ;; - - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Prevent multiple expansion - - - - - - - - - - - - - - - - - - - - - - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 -echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } -if test "${ac_cv_librpathx_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathx-prefix was given. -if test "${with_librpathx_prefix+set}" = set; then - withval=$with_librpathx_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHX= - LTLIBRPATHX= - INCRPATHX= - LIBRPATHX_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathx ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHX_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHX; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" - done - fi - - ac_cv_librpathx_libs="$LIBRPATHX" - ac_cv_librpathx_ltlibs="$LTLIBRPATHX" - ac_cv_librpathx_cppflags="$INCRPATHX" - ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } - LIBRPATHX="$ac_cv_librpathx_libs" - LTLIBRPATHX="$ac_cv_librpathx_ltlibs" - INCRPATHX="$ac_cv_librpathx_cppflags" - LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" - - for element in $INCRPATHX; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHX=yes - - - - - - - - - { echo "$as_me:$LINENO: checking how to link with librpathy" >&5 -echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; } -if test "${ac_cv_librpathy_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - - - - use_additional=yes - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - -# Check whether --with-librpathy-prefix was given. -if test "${with_librpathy_prefix+set}" = set; then - withval=$with_librpathy_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi - -fi - - LIBRPATHY= - LTLIBRPATHY= - INCRPATHY= - LIBRPATHY_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='rpathy rpathx' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBRPATHY_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBRPATHY; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" - ;; - esac - done - fi - else - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" - done - fi - - ac_cv_librpathy_libs="$LIBRPATHY" - ac_cv_librpathy_ltlibs="$LTLIBRPATHY" - ac_cv_librpathy_cppflags="$INCRPATHY" - ac_cv_librpathy_prefix="$LIBRPATHY_PREFIX" - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 -echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; } - LIBRPATHY="$ac_cv_librpathy_libs" - LTLIBRPATHY="$ac_cv_librpathy_ltlibs" - INCRPATHY="$ac_cv_librpathy_cppflags" - LIBRPATHY_PREFIX="$ac_cv_librpathy_prefix" - - for element in $INCRPATHY; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - - - - HAVE_LIBRPATHY=yes - - - - -ac_config_files="$ac_config_files Makefile" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -ac_script=' -t clear -:clear -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g -t quote -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g -t quote -b any -:quote -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g -s/\[/\\&/g -s/\]/\\&/g -s/\$/$$/g -H -:any -${ - g - s/^\n// - s/\n/ /g - p -} -' -DEFS=`sed -n "$ac_script" confdefs.h` - - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi - -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 - -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_commands="$ac_config_commands" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Configuration commands: -$config_commands - -Report bugs to ." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then - -_ACEOF - - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -SED!$SED$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -CPP!$CPP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF - - -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -LIBRPATHX!$LIBRPATHX$ac_delim -LTLIBRPATHX!$LTLIBRPATHX$ac_delim -LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim -LIBRPATHY!$LIBRPATHY$ac_delim -LTLIBRPATHY!$LTLIBRPATHY$ac_delim -LIBRPATHY_PREFIX!$LIBRPATHY_PREFIX$ac_delim -global_top_auxdir!$global_top_auxdir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF - - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF - - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" - - -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi - - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} - - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - - - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac - - - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - - esac -done # for ac_tag - - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/configure.ac gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/configure.ac --- gettext-0.17/autoconf-lib-link/tests/rpathz/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -dnl Configuration of librpathz that depends on librpathx and librpathy. -dnl -dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc. -dnl -dnl This program 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. If not, see . - -AC_INIT(configure.ac) -AC_CONFIG_AUX_DIR(../../../build-aux) -AM_INIT_AUTOMAKE(gettext_rpathz, 0) -AC_PROG_CC -AM_PROG_LIBTOOL -AC_LIB_LINKFLAGS([rpathx]) -AC_LIB_LINKFLAGS([rpathy],[rpathx]) -AC_SUBST(global_top_auxdir) -AC_OUTPUT([Makefile]) diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/Makefile.am gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/Makefile.am --- gettext-0.17/autoconf-lib-link/tests/rpathz/Makefile.am 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathz.la -librpathz_la_SOURCES = rpathz.c -librpathz_la_LDFLAGS = @LTLIBRPATHX@ @LTLIBRPATHY@ -lc -no-undefined diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/Makefile.in gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/Makefile.in --- gettext-0.17/autoconf-lib-link/tests/rpathz/Makefile.in 2007-10-31 13:33:13.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/Makefile.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,596 +0,0 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -subdir = . -DIST_COMMON = $(am__configure_deps) \ - $(srcdir)/../../../build-aux/config.guess \ - $(srcdir)/../../../build-aux/config.rpath \ - $(srcdir)/../../../build-aux/config.sub \ - $(srcdir)/../../../build-aux/install-sh \ - $(srcdir)/../../../build-aux/ltmain.sh \ - $(srcdir)/../../../build-aux/missing \ - $(srcdir)/../../../build-aux/mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(top_srcdir)/configure ../../../build-aux/compile \ - ../../../build-aux/config.guess \ - ../../../build-aux/config.rpath ../../../build-aux/config.sub \ - ../../../build-aux/depcomp ../../../build-aux/elisp-comp \ - ../../../build-aux/install-sh ../../../build-aux/ltmain.sh \ - ../../../build-aux/mdate-sh ../../../build-aux/missing \ - ../../../build-aux/mkinstalldirs \ - ../../../build-aux/texinfo.tex ../../../build-aux/ylwrap -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) \ - $(top_srcdir)/../../../build-aux/mkinstalldirs -CONFIG_CLEAN_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(libdir)" -libLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(lib_LTLIBRARIES) -librpathz_la_LIBADD = -am_librpathz_la_OBJECTS = rpathz.lo -librpathz_la_OBJECTS = $(am_librpathz_la_OBJECTS) -librpathz_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(librpathz_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -depcomp = -am__depfiles_maybe = -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(librpathz_la_SOURCES) -DIST_SOURCES = $(librpathz_la_SOURCES) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBRPATHX = @LIBRPATHX@ -LIBRPATHX_PREFIX = @LIBRPATHX_PREFIX@ -LIBRPATHY = @LIBRPATHY@ -LIBRPATHY_PREFIX = @LIBRPATHY_PREFIX@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -LTLIBRPATHX = @LTLIBRPATHX@ -LTLIBRPATHY = @LTLIBRPATHY@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -global_top_auxdir = @global_top_auxdir@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies -lib_LTLIBRARIES = librpathz.la -librpathz_la_SOURCES = rpathz.c -librpathz_la_LDFLAGS = @LTLIBRPATHX@ @LTLIBRPATHY@ -lc -no-undefined -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -am--refresh: - @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ - else :; fi; \ - done - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -librpathz.la: $(librpathz_la_OBJECTS) $(librpathz_la_DEPENDENCIES) - $(librpathz_la_LINK) -rpath $(libdir) $(librpathz_la_OBJECTS) $(librpathz_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.c.o: - $(COMPILE) -c $< - -.c.obj: - $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: - $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(libdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ - mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-info: install-info-am - -install-man: - -install-pdf: install-pdf-am - -install-ps: install-ps-am - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libLTLIBRARIES - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff -Nru gettext-0.17/autoconf-lib-link/tests/rpathz/rpathz.c gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/rpathz.c --- gettext-0.17/autoconf-lib-link/tests/rpathz/rpathz.c 2003-02-14 16:10:00.000000000 +0000 +++ gettext-0.18.1.1/autoconf-lib-link/tests/rpathz/rpathz.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -extern int rpathx_value (void); -extern int rpathy_value (void); -int rpathz_value () { return 1000 * rpathx_value () + 3 * rpathy_value (); } diff -Nru gettext-0.17/autogen.sh gettext-0.18.1.1/autogen.sh --- gettext-0.17/autogen.sh 2007-11-07 02:27:50.000000000 +0000 +++ gettext-0.18.1.1/autogen.sh 2010-06-06 12:49:57.000000000 +0000 @@ -4,13 +4,19 @@ # also regenerates all aclocal.m4, config.h.in, Makefile.in, configure files # with new versions of autoconf or automake. # -# This script requires autoconf-2.60..2.61 and automake-1.10 in the PATH. +# This script requires autoconf-2.60..2.65 and automake-1.11.1 in the PATH. # It also requires either # - the GNULIB_TOOL environment variable pointing to the gnulib-tool script # in a gnulib checkout, or -# - the cvs program in the PATH and an internet connection. +# - the git program in the PATH and an internet connection. +# It also requires +# - the bison program, +# - the gperf program, +# - the groff program, +# - the makeinfo program from the texinfo package, +# - perl. -# Copyright (C) 2003-2007 Free Software Foundation, Inc. +# Copyright (C) 2003-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,11 +33,11 @@ # Usage: ./autogen.sh [--quick] [--skip-gnulib] # -# Usage after a first-time CVS checkout: ./autogen.sh -# Usage after a CVS update: ./autogen.sh --quick +# Usage after a first-time git clone / cvs checkout: ./autogen.sh +# Usage after a git clone / cvs update: ./autogen.sh --quick # This uses an up-to-date gnulib checkout. -# (The gettext-0.17 release was prepared using gnulib commit -# bf5ebbca03613397b66521e98dd4ce28741c4689 from 2007-11-07.) +# (The gettext-0.18.1 release was prepared using gnulib commit +# 74d509383fe30bb5511a978b52e4f8ecae37826b from 2010-06-03.) # # Usage from a released tarball: ./autogen.sh --quick --skip-gnulib # This does not use a gnulib checkout. @@ -46,15 +52,16 @@ esac done -if test $skip_gnulib = false; then +# The tests in gettext-tools/tests are not meant to be executable, because +# they have a TESTS_ENVIRONMENT that specifies the shell explicitly. + +if ! $skip_gnulib; then if test -z "$GNULIB_TOOL"; then # Check out gnulib in a subdirectory 'gnulib'. - GNULIB_CVS_ROOT=':pserver:anonymous@pserver.git.sv.gnu.org:/gnulib.git' - GNULIB_CVS_REPOSITORY='gnulib' if test -d gnulib; then - (cd gnulib && cvs update -d -P) + (cd gnulib && git pull) else - cvs -d "$GNULIB_CVS_ROOT" checkout -d $GNULIB_CVS_REPOSITORY HEAD + git clone git://git.savannah.gnu.org/gnulib.git fi # Now it should contain a gnulib-tool. if test -f gnulib/gnulib-tool; then @@ -74,14 +81,17 @@ basename closeout error - exit - getopt + getopt-gnu gettext-h + havelib memmove progname propername relocatable-prog + sigpipe stdbool + stdio + stdlib strtoul unlocked-io xalloc @@ -94,6 +104,18 @@ ' $GNULIB_TOOL --dir=gettext-runtime --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --no-libtool --local-dir=gnulib-local --local-symlink \ --import $GNULIB_MODULES_RUNTIME_FOR_SRC $GNULIB_MODULES_RUNTIME_OTHER + # In gettext-runtime/libasprintf: + if test -f gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4; then + mv -f gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4 gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4~ + fi + GNULIB_MODULES_LIBASPRINTF=' + alloca + errno + ' + GNULIB_MODULES_LIBASPRINTF_OTHER=' + ' + $GNULIB_TOOL --dir=gettext-runtime/libasprintf --source-base=. --m4-base=gnulib-m4 --lgpl=2 --makefile-name=Makefile.gnulib --libtool --local-dir=gnulib-local --local-symlink \ + --import $GNULIB_MODULES_LIBASPRINTF $GNULIB_MODULES_LIBASPRINTF_OTHER # In gettext-tools: if test -f gettext-tools/gnulib-m4/gnulib-cache.m4; then mv -f gettext-tools/gnulib-m4/gnulib-cache.m4 gettext-tools/gnulib-m4/gnulib-cache.m4~ @@ -118,26 +140,25 @@ error error-progname execute - exit fd-ostream file-ostream filename findprog - fnmatch-posix + fnmatch fopen fstrcmp full-write fwriteerror gcd getline - getopt + getopt-gnu gettext-h hash html-styled-ostream iconv javacomp javaexec - linebreak + libunistring-optional localcharset locale localename @@ -150,57 +171,95 @@ openmp ostream pipe + pipe-filter-ii progname propername relocatable-prog relocatable-script sh-quote + sigpipe + sigprocmask stdbool + stdio + stdlib stpcpy stpncpy strcspn + strerror strpbrk strtol strtoul styled-ostream + sys_select sys_stat sys_time term-styled-ostream - ucs4-utf8 + unilbrk/ulc-width-linebreaks uniname/uniname unistd + unistr/u8-mbtouc + unistr/u8-uctomb + unistr/u16-mbtouc uniwidth/width unlocked-io - utf8-ucs4 - utf16-ucs4 vasprintf wait-process + write xalloc + xconcat-filename xmalloca xerror xsetenv xstriconv + xstriconveh xvasprintf ' - # Not yet used. Add some files to gettext-tools-misc instead. - GNULIB_MODULES_TOOLS_FOR_LIBGREP=' - error - exitfail + # Common dependencies of GNULIB_MODULES_TOOLS_FOR_SRC and GNULIB_MODULES_TOOLS_FOR_LIBGREP. + GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES=' + alloca-opt + arg-nonnull + c++defs + extensions gettext-h - hard-locale - obstack - regex + include_next + localcharset + malloc-posix + mbrtowc + mbsinit + multiarch + ssize_t stdbool - xalloc + stddef + stdint + stdlib + streq + unistd + verify + warn-on-use + wchar + wctype ' GNULIB_MODULES_TOOLS_OTHER=' gettext-tools-misc + csharpcomp-script + csharpexec-script gcj java + javacomp-script + javaexec-script stdint ' $GNULIB_TOOL --dir=gettext-tools --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --tests-base=gnulib-tests --makefile-name=Makefile.gnulib --libtool --with-tests --local-dir=gnulib-local --local-symlink \ - --import $GNULIB_MODULES_TOOLS_FOR_SRC $GNULIB_MODULES_TOOLS_OTHER + --import --avoid=hash-tests $GNULIB_MODULES_TOOLS_FOR_SRC $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES $GNULIB_MODULES_TOOLS_OTHER + # In gettext-tools/libgrep: + if test -f gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4; then + mv -f gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4 gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4~ + fi + GNULIB_MODULES_TOOLS_FOR_LIBGREP=' + regex + ' + $GNULIB_TOOL --dir=gettext-tools --macro-prefix=grgl --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --makefile-name=Makefile.gnulib --local-dir=gnulib-local --local-symlink \ + --import `for m in $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES; do if test \`$GNULIB_TOOL --extract-applicability $m\` != all; then echo --avoid=$m; fi; done` $GNULIB_MODULES_TOOLS_FOR_LIBGREP # In gettext-tools/libgettextpo: if test -f gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4; then mv -f gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4 gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4~ @@ -213,7 +272,6 @@ c-strstr error error-progname - exit file-ostream filename fopen @@ -224,19 +282,26 @@ gettext-h hash iconv - linebreak + libunistring-optional minmax + open ostream progname relocatable-lib + sigpipe stdbool - ucs4-utf8 + stdio + stdlib + strerror + unilbrk/ulc-width-linebreaks + unistr/u8-mbtouc + unistr/u8-uctomb + unistr/u16-mbtouc uniwidth/width unlocked-io - utf8-ucs4 - utf16-ucs4 vasprintf xalloc + xconcat-filename xmalloca xerror xstriconv @@ -249,47 +314,71 @@ fi fi -(cd autoconf-lib-link - ../build-aux/fixaclocal aclocal -I m4 -I ../m4 - autoconf - automake -) +# Fetch config.guess, config.sub. +if test -n "$GNULIB_TOOL"; then + for file in config.guess config.sub; do + $GNULIB_TOOL --copy-file build-aux/$file; chmod a+x build-aux/$file + done +else + for file in config.guess config.sub; do + wget -q --timeout=5 -O build-aux/$file.tmp "http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=build-aux/${file};hb=HEAD" \ + && mv build-aux/$file.tmp build-aux/$file \ + && chmod a+x build-aux/$file + done +fi -(cd gettext-runtime - ../build-aux/fixaclocal aclocal -I m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 +(cd gettext-runtime/libasprintf + ../../build-aux/fixaclocal aclocal -I ../../m4 -I ../m4 -I gnulib-m4 autoconf autoheader && touch config.h.in - automake + automake --add-missing --copy ) -(cd gettext-runtime/libasprintf - ../../build-aux/fixaclocal aclocal -I ../../m4 -I ../m4 +(cd gettext-runtime + ../build-aux/fixaclocal aclocal -I m4 -I ../m4 -I gnulib-m4 autoconf autoheader && touch config.h.in - automake + automake --add-missing --copy + # Rebuilding the PO files and manual pages is only rarely needed. + if ! $quick; then + ./configure --disable-java --disable-native-java --disable-csharp \ + && (cd po && make update-po) \ + && (cd intl && make) && (cd gnulib-lib && make) && (cd src && make) \ + && (cd man && make update-man1 all) \ + && make distclean + fi ) cp -p gettext-runtime/ABOUT-NLS gettext-tools/ABOUT-NLS -(cd gettext-tools - ../build-aux/fixaclocal aclocal -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 - autoconf - autoheader && touch config.h.in - automake -) - (cd gettext-tools/examples ../../build-aux/fixaclocal aclocal -I ../../gettext-runtime/m4 -I ../../m4 autoconf - automake + automake --add-missing --copy # Rebuilding the examples PO files is only rarely needed. if ! $quick; then ./configure && (cd po && make update-po) && make distclean fi ) -build-aux/fixaclocal aclocal +(cd gettext-tools + ../build-aux/fixaclocal aclocal -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 + autoconf + autoheader && touch config.h.in + test -d intl || mkdir intl + automake --add-missing --copy + # Rebuilding the PO files, manual pages, documentation, test files is only rarely needed. + if ! $quick; then + ./configure --disable-java --disable-native-java --disable-csharp --disable-openmp \ + && (cd po && make update-po) \ + && (cd intl && make) && (cd gnulib-lib && make) && (cd libgrep && make) && (cd src && make) \ + && (cd man && make update-man1 all) \ + && (cd doc && make all) \ + && (cd tests && make update-expected) \ + && make distclean + fi +) + +build-aux/fixaclocal aclocal -I m4 autoconf automake - -cp -p autoconf-lib-link/config.rpath build-aux/config.rpath diff -Nru gettext-0.17/build-aux/arg-nonnull.h gettext-0.18.1.1/build-aux/arg-nonnull.h --- gettext-0.17/build-aux/arg-nonnull.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/build-aux/arg-nonnull.h 2010-05-24 09:59:53.000000000 +0000 @@ -0,0 +1,26 @@ +/* A C macro for declaring that specific arguments must not be NULL. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools + that the values passed as arguments n, ..., m must be non-NULL pointers. + n = 1 stands for the first argument, n = 2 for the second argument etc. */ +#ifndef _GL_ARG_NONNULL +# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3 +# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) +# else +# define _GL_ARG_NONNULL(params) +# endif +#endif diff -Nru gettext-0.17/build-aux/c++defs.h gettext-0.18.1.1/build-aux/c++defs.h --- gettext-0.17/build-aux/c++defs.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/build-aux/c++defs.h 2010-05-24 09:59:53.000000000 +0000 @@ -0,0 +1,271 @@ +/* C++ compatible function declaration macros. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_CXXDEFS_H +#define _GL_CXXDEFS_H + +/* The three most frequent use cases of these macros are: + + * For providing a substitute for a function that is missing on some + platforms, but is declared and works fine on the platforms on which + it exists: + + #if @GNULIB_FOO@ + # if !@HAVE_FOO@ + _GL_FUNCDECL_SYS (foo, ...); + # endif + _GL_CXXALIAS_SYS (foo, ...); + _GL_CXXALIASWARN (foo); + #elif defined GNULIB_POSIXCHECK + ... + #endif + + * For providing a replacement for a function that exists on all platforms, + but is broken/insufficient and needs to be replaced on some platforms: + + #if @GNULIB_FOO@ + # if @REPLACE_FOO@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) + # undef foo + # define foo rpl_foo + # endif + _GL_FUNCDECL_RPL (foo, ...); + _GL_CXXALIAS_RPL (foo, ...); + # else + _GL_CXXALIAS_SYS (foo, ...); + # endif + _GL_CXXALIASWARN (foo); + #elif defined GNULIB_POSIXCHECK + ... + #endif + + * For providing a replacement for a function that exists on some platforms + but is broken/insufficient and needs to be replaced on some of them and + is additionally either missing or undeclared on some other platforms: + + #if @GNULIB_FOO@ + # if @REPLACE_FOO@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) + # undef foo + # define foo rpl_foo + # endif + _GL_FUNCDECL_RPL (foo, ...); + _GL_CXXALIAS_RPL (foo, ...); + # else + # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@ + _GL_FUNCDECL_SYS (foo, ...); + # endif + _GL_CXXALIAS_SYS (foo, ...); + # endif + _GL_CXXALIASWARN (foo); + #elif defined GNULIB_POSIXCHECK + ... + #endif +*/ + +/* _GL_EXTERN_C declaration; + performs the declaration with C linkage. */ +#if defined __cplusplus +# define _GL_EXTERN_C extern "C" +#else +# define _GL_EXTERN_C extern +#endif + +/* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); + declares a replacement function, named rpl_func, with the given prototype, + consisting of return type, parameters, and attributes. + Example: + _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) + _GL_ARG_NONNULL ((1))); + */ +#define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ + _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) +#define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ + _GL_EXTERN_C rettype rpl_func parameters_and_attributes + +/* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); + declares the system function, named func, with the given prototype, + consisting of return type, parameters, and attributes. + Example: + _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...) + _GL_ARG_NONNULL ((1))); + */ +#define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ + _GL_EXTERN_C rettype func parameters_and_attributes + +/* _GL_CXXALIAS_RPL (func, rettype, parameters); + declares a C++ alias called GNULIB_NAMESPACE::func + that redirects to rpl_func, if GNULIB_NAMESPACE is defined. + Example: + _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); + */ +#define _GL_CXXALIAS_RPL(func,rettype,parameters) \ + _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) +#if defined __cplusplus && defined GNULIB_NAMESPACE +# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ + namespace GNULIB_NAMESPACE \ + { \ + rettype (*const func) parameters = ::rpl_func; \ + } \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#else +# define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); + is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); + except that the C function rpl_func may have a slightly different + declaration. A cast is used to silence the "invalid conversion" error + that would otherwise occur. */ +#if defined __cplusplus && defined GNULIB_NAMESPACE +# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ + namespace GNULIB_NAMESPACE \ + { \ + rettype (*const func) parameters = \ + reinterpret_cast(::rpl_func); \ + } \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#else +# define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIAS_SYS (func, rettype, parameters); + declares a C++ alias called GNULIB_NAMESPACE::func + that redirects to the system provided function func, if GNULIB_NAMESPACE + is defined. + Example: + _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); + */ +#if defined __cplusplus && defined GNULIB_NAMESPACE + /* If we were to write + rettype (*const func) parameters = ::func; + like above in _GL_CXXALIAS_RPL_1, the compiler could optimize calls + better (remove an indirection through a 'static' pointer variable), + but then the _GL_CXXALIASWARN macro below would cause a warning not only + for uses of ::func but also for uses of GNULIB_NAMESPACE::func. */ +# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ + namespace GNULIB_NAMESPACE \ + { \ + static rettype (*func) parameters = ::func; \ + } \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#else +# define _GL_CXXALIAS_SYS(func,rettype,parameters) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters); + is like _GL_CXXALIAS_SYS (func, rettype, parameters); + except that the C function func may have a slightly different declaration. + A cast is used to silence the "invalid conversion" error that would + otherwise occur. */ +#if defined __cplusplus && defined GNULIB_NAMESPACE +# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ + namespace GNULIB_NAMESPACE \ + { \ + static rettype (*func) parameters = \ + reinterpret_cast(::func); \ + } \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#else +# define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2); + is like _GL_CXXALIAS_SYS (func, rettype, parameters); + except that the C function is picked among a set of overloaded functions, + namely the one with rettype2 and parameters2. Two consecutive casts + are used to silence the "cannot find a match" and "invalid conversion" + errors that would otherwise occur. */ +#if defined __cplusplus && defined GNULIB_NAMESPACE + /* The outer cast must be a reinterpret_cast. + The inner cast: When the function is defined as a set of overloaded + functions, it works as a static_cast<>, choosing the designated variant. + When the function is defined as a single variant, it works as a + reinterpret_cast<>. The parenthesized cast syntax works both ways. */ +# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ + namespace GNULIB_NAMESPACE \ + { \ + static rettype (*func) parameters = \ + reinterpret_cast( \ + (rettype2(*)parameters2)(::func)); \ + } \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#else +# define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIASWARN (func); + causes a warning to be emitted when ::func is used but not when + GNULIB_NAMESPACE::func is used. func must be defined without overloaded + variants. */ +#if defined __cplusplus && defined GNULIB_NAMESPACE +# define _GL_CXXALIASWARN(func) \ + _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) +# define _GL_CXXALIASWARN_1(func,namespace) \ + _GL_CXXALIASWARN_2 (func, namespace) +/* To work around GCC bug , + we enable the warning only when not optimizing. */ +# if !__OPTIMIZE__ +# define _GL_CXXALIASWARN_2(func,namespace) \ + _GL_WARN_ON_USE (func, \ + "The symbol ::" #func " refers to the system function. " \ + "Use " #namespace "::" #func " instead.") +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +# define _GL_CXXALIASWARN_2(func,namespace) \ + extern __typeof__ (func) func +# else +# define _GL_CXXALIASWARN_2(func,namespace) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +# endif +#else +# define _GL_CXXALIASWARN(func) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +/* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes); + causes a warning to be emitted when the given overloaded variant of ::func + is used but not when GNULIB_NAMESPACE::func is used. */ +#if defined __cplusplus && defined GNULIB_NAMESPACE +# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ + _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ + GNULIB_NAMESPACE) +# define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ + _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) +/* To work around GCC bug , + we enable the warning only when not optimizing. */ +# if !__OPTIMIZE__ +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ + _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ + "The symbol ::" #func " refers to the system function. " \ + "Use " #namespace "::" #func " instead.") +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ + extern __typeof__ (func) func +# else +# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +# endif +#else +# define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ + _GL_EXTERN_C int _gl_cxxalias_dummy +#endif + +#endif /* _GL_CXXDEFS_H */ diff -Nru gettext-0.17/build-aux/compile gettext-0.18.1.1/build-aux/compile --- gettext-0.17/build-aux/compile 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/compile 2009-08-15 15:28:59.000000000 +0000 @@ -1,9 +1,10 @@ #! /bin/sh # Wrapper for compilers which do not understand `-c -o'. -scriptversion=2005-05-14.22 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software +# Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify @@ -17,8 +18,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -103,13 +103,13 @@ fi # Name of file we expect compiler to create. -cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. -# Note: use `[/.-]' here to ensure that we don't use the same name +# Note: use `[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. -lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break @@ -138,5 +138,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/config.guess gettext-0.18.1.1/build-aux/config.guess --- gettext-0.17/build-aux/config.guess 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/build-aux/config.guess 2010-05-24 17:05:17.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. -timestamp='2009-06-10' +timestamp='2010-04-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -27,16 +27,16 @@ # the same distribution terms that you use for the rest of that program. -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` @@ -56,8 +56,9 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free +Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -91,7 +92,7 @@ exit 1 fi -trap 'exit 1' 1 2 15 +trap 'exit 1' HUP INT TERM # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires @@ -105,7 +106,7 @@ set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || @@ -333,6 +334,9 @@ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" @@ -807,12 +811,12 @@ i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; - *:Interix*:[3456]*) + *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; - EM64T | authenticamd | genuineintel) + authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) @@ -854,6 +858,20 @@ i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ @@ -876,6 +894,17 @@ frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; + i*86:Linux:*:*) + LIBC=gnu + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; @@ -901,39 +930,18 @@ #endif #endif EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -942,8 +950,11 @@ *) echo hppa-unknown-linux-gnu ;; esac exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux @@ -966,58 +977,6 @@ xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^LIBC/{ - s: ::g - p - }'`" - test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit - } - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } - ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both @@ -1247,6 +1206,16 @@ *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} diff -Nru gettext-0.17/build-aux/config.libpath gettext-0.18.1.1/build-aux/config.libpath --- gettext-0.17/build-aux/config.libpath 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/build-aux/config.libpath 2010-02-16 21:31:27.000000000 +0000 @@ -2,7 +2,7 @@ # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable at run time. # -# Copyright 1996-2007 Free Software Foundation, Inc. +# Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2003 # Originally by Gordon Matzigkeit , 1996 # @@ -42,7 +42,7 @@ aix3*) shlibpath_var=LIBPATH ;; - aix4* | aix5*) + aix[4-9]*) if test "$host_cpu" = ia64; then # AIX 5 supports IA64 shlibpath_var=LD_LIBRARY_PATH @@ -56,7 +56,7 @@ bsdi[45]*) shlibpath_var=LD_LIBRARY_PATH ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; diff -Nru gettext-0.17/build-aux/config.rpath gettext-0.18.1.1/build-aux/config.rpath --- gettext-0.17/build-aux/config.rpath 2007-06-27 23:01:49.000000000 +0000 +++ gettext-0.18.1.1/build-aux/config.rpath 2010-04-02 16:29:39.000000000 +0000 @@ -2,7 +2,7 @@ # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # -# Copyright 1996-2007 Free Software Foundation, Inc. +# Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # @@ -47,7 +47,7 @@ done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` -# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. +# Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then @@ -64,7 +64,7 @@ ;; esac ;; - mingw* | cygwin* | pw32* | os2*) + mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' @@ -76,7 +76,13 @@ ;; linux* | k*bsd*-gnu) case $cc_basename in - icc* | ecc*) + ecc*) + wl='-Wl,' + ;; + icc* | ifort*) + wl='-Wl,' + ;; + lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) @@ -124,7 +130,7 @@ esac fi -# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. +# Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= @@ -132,7 +138,7 @@ hardcode_minus_L=no case "$host_os" in - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. @@ -158,7 +164,7 @@ # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in - aix3* | aix4* | aix5*) + aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no @@ -182,7 +188,7 @@ ld_shlibs=no fi ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' @@ -254,7 +260,7 @@ hardcode_direct=unsupported fi ;; - aix4* | aix5*) + aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. @@ -264,7 +270,7 @@ # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes @@ -326,7 +332,7 @@ ;; bsdi[45]*) ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is @@ -494,7 +500,7 @@ fi # Check dynamic linker characteristics -# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. +# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the @@ -505,7 +511,7 @@ aix3*) library_names_spec='$libname.a' ;; - aix4* | aix5*) + aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) @@ -517,7 +523,7 @@ bsdi[45]*) library_names_spec='$libname$shrext' ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; diff -Nru gettext-0.17/build-aux/config.sub gettext-0.18.1.1/build-aux/config.sub --- gettext-0.17/build-aux/config.sub 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/build-aux/config.sub 2010-05-24 17:05:17.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. -timestamp='2009-06-11' +timestamp='2010-05-21' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -32,13 +32,16 @@ # Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. +# diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -72,8 +75,9 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free +Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -120,8 +124,9 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os @@ -149,7 +154,7 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) + -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; @@ -284,20 +289,31 @@ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ + | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ + | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; - m6811 | m68hc11 | m6812 | m68hc12) + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none @@ -328,7 +344,7 @@ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ @@ -340,7 +356,7 @@ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -368,15 +384,17 @@ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ - | romp-* | rs6000-* \ + | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile-* | tilegx-* \ | tron-* \ + | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ @@ -474,6 +492,15 @@ basic_machine=powerpc-ibm os=-cnk ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; c90) basic_machine=c90-cray os=-unicos @@ -726,6 +753,9 @@ basic_machine=ns32k-utek os=-sysv ;; + microblaze) + basic_machine=microblaze-xilinx + ;; mingw32) basic_machine=i386-pc os=-mingw32 @@ -1064,17 +1094,10 @@ basic_machine=t90-cray os=-unicos ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff + # This must be matched before tile*. + tilegx*) + basic_machine=tilegx-unknown + os=-linux-gnu ;; tile*) basic_machine=tile-unknown @@ -1247,6 +1270,9 @@ # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. + -auroraux) + os=-auroraux + ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; @@ -1268,8 +1294,8 @@ # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -kopensolaris* \ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ @@ -1282,7 +1308,8 @@ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -mingw32* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ @@ -1290,7 +1317,7 @@ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1423,6 +1450,8 @@ -dicos*) os=-dicos ;; + -nacl*) + ;; -none) ;; *) @@ -1463,6 +1492,15 @@ c4x-* | tic4x-*) os=-coff ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 diff -Nru gettext-0.17/build-aux/csharpcomp.sh.in gettext-0.18.1.1/build-aux/csharpcomp.sh.in --- gettext-0.17/build-aux/csharpcomp.sh.in 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/build-aux/csharpcomp.sh.in 2010-02-16 21:31:27.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Compile a C# program. -# Copyright (C) 2003-2006 Free Software Foundation, Inc. +# Copyright (C) 2003-2006, 2009-2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2003. # # This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/build-aux/csharpexec.sh.in gettext-0.18.1.1/build-aux/csharpexec.sh.in --- gettext-0.17/build-aux/csharpexec.sh.in 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/build-aux/csharpexec.sh.in 2010-02-16 21:32:16.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Execute a C# program. -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005, 2009, 2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2003. # # This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/build-aux/depcomp gettext-0.18.1.1/build-aux/depcomp --- gettext-0.17/build-aux/depcomp 2006-10-16 22:15:21.000000000 +0000 +++ gettext-0.18.1.1/build-aux/depcomp 2009-08-15 15:30:38.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # depcomp - compile a program generating dependencies as side-effects -scriptversion=2006-10-15.18 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software -# Foundation, Inc. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free +# Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,9 +17,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -87,6 +85,15 @@ depmode=dashmstdout fi +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u="sed s,\\\\\\\\,/,g" + depmode=msvisualcpp +fi + case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what @@ -192,14 +199,14 @@ ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' -' ' ' >> $depfile - echo >> $depfile +' ' ' >> "$depfile" + echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> $depfile + >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile @@ -215,34 +222,39 @@ # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` - tmpdepfile="$stripped.u" + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u "$@" -M fi stat=$? - if test -f "$tmpdepfile"; then : - else - stripped=`echo "$stripped" | sed 's,^.*/,,'` - tmpdepfile="$stripped.u" - fi - if test $stat -eq 0; then : else - rm -f "$tmpdepfile" + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done if test -f "$tmpdepfile"; then - outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile @@ -323,7 +335,12 @@ if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi @@ -399,7 +416,7 @@ # Remove the call to Libtool. if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift @@ -450,32 +467,39 @@ "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift - cleared=no - for arg in "$@"; do + cleared=no eat=no + for arg + do case $cleared in no) set ""; shift cleared=yes ;; esac + if test $eat = yes; then + eat=no + continue + fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done - obj_suffix="`echo $object | sed 's/^.*\././'`" + obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" @@ -495,7 +519,7 @@ # Remove the call to Libtool. if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift @@ -533,13 +557,27 @@ msvisualcpp) # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o, - # because we must use -o when running libtool. + # always write the preprocessed file to stdout. "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + IFS=" " for arg do case "$arg" in + -o) + shift + ;; + $object) + shift + ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift @@ -552,16 +590,23 @@ ;; esac done - "$@" -E | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + none) exec "$@" ;; @@ -580,5 +625,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/elisp-comp gettext-0.18.1.1/build-aux/elisp-comp --- gettext-0.17/build-aux/elisp-comp 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/elisp-comp 2009-08-15 15:30:40.000000000 +0000 @@ -1,7 +1,8 @@ #!/bin/sh -# Copyright (C) 1995, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1995, 2000, 2003, 2004, 2005, 2009 Free Software +# Foundation, Inc. -scriptversion=2005-05-14.22 +scriptversion=2009-04-28.21; # UTC # Franc,ois Pinard , 1995. # @@ -16,8 +17,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -85,5 +85,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/fixaclocal gettext-0.18.1.1/build-aux/fixaclocal --- gettext-0.17/build-aux/fixaclocal 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/build-aux/fixaclocal 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ #!/bin/sh # Script for fixing aclocal.m4 files produced by 'aclocal' from automake 1.10. -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,8 +20,11 @@ "$@" result=$? if test $result = 0 && test -f aclocal.m4; then - # Remove the block of 4 lines starting with 'm4_if(m4_PACKAGE_VERSION'. - sed -e '/m4_if(m4_PACKAGE_VERSION/{N;N;N;d}' < aclocal.m4 > aclocal.m4.tmp + # Remove the block of 4 lines starting with 'm4_if(m4_PACKAGE_VERSION' + # and the block of 5 lines starting with 'm4_if(AC_AUTOCONF_VERSION' + # (automake <= 1.10.1) or with 'm4_if(m4_defn([AC_AUTOCONF_VERSION])' + # (automake >= 1.10.2). + sed -e '/m4_if(m4_PACKAGE_VERSION/{N;N;N;d}' -e '/m4_if(AC_AUTOCONF_VERSION/{N;N;N;N;d}' -e '/m4_if(m4_defn(\[AC_AUTOCONF_VERSION\])/{N;N;N;N;d}' < aclocal.m4 > aclocal.m4.tmp if cmp aclocal.m4 aclocal.m4.tmp > /dev/null; then rm -f aclocal.m4.tmp else diff -Nru gettext-0.17/build-aux/install-reloc gettext-0.18.1.1/build-aux/install-reloc --- gettext-0.17/build-aux/install-reloc 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/build-aux/install-reloc 2010-02-16 21:31:27.000000000 +0000 @@ -1,6 +1,6 @@ #!/bin/sh # install-reloc - install a program including a relocating wrapper -# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2003. # # This program is free software: you can redistribute it and/or modify @@ -17,21 +17,27 @@ # along with this program. If not, see . # Usage: -# install-reloc library_path_var library_path_value prefix \ -# compile_command srcdir config_h_dir exeext \ +# install-reloc library_path_var library_path_value prefix destdir \ +# compile_command srcdir builddir config_h_dir exeext \ +# strip_command \ # install_command... destprog # where # - library_path_var is the platform dependent runtime library path variable # - library_path_value is a colon separated list of directories that contain # the libraries at installation time (use this instead of -rpath) # - prefix is the base directory at installation time +# - destdir is a string that is prepended to all file names at installation +# time; it is already prepended to destprog but not to library_path_value +# and prefix # - compile_command is a C compiler compilation and linking command # - srcdir is the directory where to find relocwrapper.c and its dependencies # - builddir is the directory where to find built dependencies (namely, # alloca.h and stdbool.h) # - config_h_dir is the directory where to find config.h # - exeext is platform dependent suffix of executables -# - install-command is the install command line, excluding the final destprog +# - strip_command is the command for stripping executables, or : if no +# stripping is desired +# - install_command is the install command line, excluding the final destprog # - destprog is the destination program name # install-reloc renames destprog to destprog.bin and installs a relocating # wrapper in the place of destprog. @@ -43,36 +49,43 @@ library_path_var=$RELOC_LIBRARY_PATH_VAR library_path_value=$RELOC_LIBRARY_PATH_VALUE prefix=$RELOC_PREFIX + destdir=$RELOC_DESTDIR compile_command=$RELOC_COMPILE_COMMAND srcdir=$RELOC_SRCDIR builddir=$RELOC_BUILDDIR config_h_dir=$RELOC_CONFIG_H_DIR exeext=$RELOC_EXEEXT + strip_prog=$RELOC_STRIP_PROG install_prog=$RELOC_INSTALL_PROG # including the "-c" option else - if test $# -ge 9; then + if test $# -ge 11; then # Get fixed position arguments. library_path_var=$1 library_path_value=$2 prefix=$3 - compile_command=$4 - srcdir=$5 - builddir=$6 - config_h_dir=$7 - exeext=$8 - install_prog=$9 # maybe not including the "-c" option + destdir=$4 shift shift shift shift + compile_command=$1 + srcdir=$2 + builddir=$3 + config_h_dir=$4 + exeext=$5 shift shift shift shift shift + strip_prog=$1 + shift + install_prog=$1 # maybe not including the "-c" option + shift else - echo "Usage: $0 library_path_var library_path_value prefix" \ + echo "Usage: $0 library_path_var library_path_value prefix destdir" \ "compile_command srcdir builddir config_h_dir exeext" \ + "strip_command" \ "install_command... destprog" 1>&2 exit 1 fi @@ -86,8 +99,9 @@ done # Remove trailing $exeext, if present. if test -n "$exeext"; then - sedexpr='s|'`echo "$exeext" | sed -e 's,\.,\\\.,g'`'$||' - destprog=`echo "$destprog" | sed -e "$sedexpr"` + sed_quote='s,\.,\\.,g' + sed_remove_exeext='s|'`echo "$exeext" | sed -e "$sed_quote"`'$||' + destprog=`echo "$destprog" | sed -e "$sed_remove_exeext"` fi # Outputs a command and runs it. @@ -100,6 +114,9 @@ # Run install_command. func_verbose $install_prog "$@" || exit $? +# Run strip_command. +test "$strip_prog" = ':' || func_verbose "$strip_prog" "$destprog$exeext" || exit $? + # If the platform doesn't support LD_LIBRARY_PATH or similar, we cannot build # a wrapper. test -n "$library_path_var" || exit 0 @@ -120,8 +137,15 @@ # wrapper. test -n "$libdirs" || exit 0 -# Compile wrapper. +# Determine installdir from destprog, removing a leading destdir if present. installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'` +if test -n "$destdir"; then + sed_quote='s,\([|.\*^$[]\),\\\1,g' + sed_remove_destdir='s|^'`echo "$destdir" | sed -e "$sed_quote"`'||' + installdir=`echo "$installdir" | sed -e "$sed_remove_destdir"` +fi + +# Compile wrapper. func_verbose $compile_command \ -I"$builddir" -I"$srcdir" -I"$config_h_dir" \ -DHAVE_CONFIG_H -DIN_RELOCWRAPPER -DNO_XMALLOC \ @@ -131,7 +155,6 @@ "$srcdir"/relocwrapper.c \ "$srcdir"/progname.c \ "$srcdir"/progreloc.c \ - "$srcdir"/xreadlink.c \ "$srcdir"/areadlink.c \ "$srcdir"/readlink.c \ "$srcdir"/canonicalize-lgpl.c \ @@ -156,6 +179,12 @@ strerror.o \ c-ctype.o test $rc = 0 || exit $? +# Clean up debugging information left over by the native C compiler on MacOS X. +rm -rf "$destprog.wrapper$exeext.dSYM" +test $rc = 0 || exit $? + +# Strip wrapper. +test "$strip_prog" = ':' || func_verbose "$strip_prog" "$destprog.wrapper$exeext" || exit $? # Rename $destprog.wrapper -> $destprog -> $destprog.bin. ln -f "$destprog$exeext" "$destprog.bin$exeext" \ diff -Nru gettext-0.17/build-aux/install-sh gettext-0.18.1.1/build-aux/install-sh --- gettext-0.17/build-aux/install-sh 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/install-sh 2009-08-15 15:28:09.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2005-05-14.22 +scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -39,38 +39,68 @@ # when there is no Makefile. # # This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. +# from scratch. + +nl=' +' +IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi -# put in absolute paths if you don't have them in your path; or use env. vars. +# Put in absolute file names if you don't have them in your path; +# or use environment vars. -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 -chmodcmd="$chmodprog 0755" -chowncmd= chgrpcmd= -stripcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog rmcmd="$rmprog -f" -mvcmd="$mvprog" +stripcmd= + src= dst= dir_arg= -dstarg= +dst_arg= + +copy_on_change=false no_target_directory= -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... @@ -80,81 +110,86 @@ In the 4th, create DIRECTORIES. Options: --c (ignored) --d create directories instead of installing files. --g GROUP $chgrpprog installed files to GROUP. --m MODE $chmodprog installed files to MODE. --o USER $chownprog installed files to USER. --s $stripprog installed files. --t DIRECTORY install into DIRECTORY. --T report an error if DSTFILE is a directory. ---help display this help and exit. ---version display version info and exit. + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. Environment variables override the default commands: - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG " -while test -n "$1"; do +while test $# -ne 0; do case $1 in - -c) shift - continue;; + -c) ;; - -d) dir_arg=true - shift - continue;; + -C) copy_on_change=true;; + + -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; + shift;; --help) echo "$usage"; exit $?;; - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t) dstarg=$2 - shift - shift - continue;; - - -T) no_target_directory=true - shift - continue;; + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + shift;; + + -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; - *) # When -d is used, all remaining arguments are directories to create. - # When -t is used, the destination is already specified. - test -n "$dir_arg$dstarg" && break - # Otherwise, the last argument is the destination. Remove it from $@. - for arg - do - if test -n "$dstarg"; then - # $@ is not empty: it contains at least $arg. - set fnord "$@" "$dstarg" - shift # fnord - fi - shift # arg - dstarg=$arg - done + --) shift break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; esac + shift done -if test -z "$1"; then +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + done +fi + +if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 @@ -164,24 +199,47 @@ exit 0 fi +if test -z "$dir_arg"; then + trap '(exit $?); exit' 1 2 13 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + for src do # Protect names starting with `-'. case $src in - -*) src=./$src ;; + -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src - src= - - if test -d "$dst"; then - mkdircmd=: - chmodcmd= - else - mkdircmd=$mkdirprog - fi + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? else + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. @@ -190,71 +248,199 @@ exit 1 fi - if test -z "$dstarg"; then + if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi - dst=$dstarg + dst=$dst_arg # Protect names starting with `-'. case $dst in - -*) dst=./$dst ;; + -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then - echo "$0: $dstarg: Is a directory" >&2 + echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi - dst=$dst/`basename "$src"` + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? fi fi - # This sed command emulates the dirname command. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` - - # Make sure that the destination directory exists. + obsolete_mkdir_used=false - # Skip lots of stat calls in the usual case. - if test ! -d "$dstdir"; then - defaultIFS=' - ' - IFS="${IFS-$defaultIFS}" - - oIFS=$IFS - # Some sh's can't handle IFS=/ for some reason. - IFS='%' - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` - shift - IFS=$oIFS + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writeable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac - pathcomp= + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else - while test $# -ne 0 ; do - pathcomp=$pathcomp$1 + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + -*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir shift - if test ! -d "$pathcomp"; then - $mkdirprog "$pathcomp" - # mkdir can fail with a `File exist' error in case several - # install-sh are creating the directory concurrently. This - # is OK. - test -d "$pathcomp" || exit + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test -z "$d" && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true fi - pathcomp=$pathcomp/ - done + fi fi if test -n "$dir_arg"; then - $doit $mkdircmd "$dst" \ - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } - + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else - dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ @@ -262,10 +448,9 @@ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 - trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. - $doit $cpprog "$src" "$dsttmp" && + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # @@ -273,51 +458,63 @@ # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && - - # Now rename the file to the real destination. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ - || { - # The rename failed, perhaps because mv can't rename something else - # to itself, or perhaps because mv is so ancient that it does not - # support -f. - - # Now remove or move aside any old file at destination location. - # We try this two ways since rm can't unlink itself on some - # systems and the destination file might be busy for other - # reasons. In this case, the final cleanup might fail but the new - # file should still install successfully. - { - if test -f "$dstdir/$dstfile"; then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ - || { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit 1 - } - else - : - fi - } && - - # Now rename the file to the real destination. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" - } - } - fi || { (exit 1); exit 1; } -done + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || -# The final little trick to "correctly" pass the exit status to the exit trap. -{ - (exit 0); exit 0 -} + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/javacomp.sh.in gettext-0.18.1.1/build-aux/javacomp.sh.in --- gettext-0.17/build-aux/javacomp.sh.in 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/build-aux/javacomp.sh.in 2010-02-16 21:31:27.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Compile a Java program. -# Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. +# Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2001. # # This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/build-aux/javaexec.sh.in gettext-0.18.1.1/build-aux/javaexec.sh.in --- gettext-0.17/build-aux/javaexec.sh.in 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/build-aux/javaexec.sh.in 2010-02-16 21:32:16.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Execute a Java program. -# Copyright (C) 2001, 2006 Free Software Foundation, Inc. +# Copyright (C) 2001, 2006, 2009, 2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2001. # # This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/build-aux/link-warning.h gettext-0.18.1.1/build-aux/link-warning.h --- gettext-0.17/build-aux/link-warning.h 2007-02-19 22:10:54.000000000 +0000 +++ gettext-0.18.1.1/build-aux/link-warning.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -/* GL_LINK_WARNING("literal string") arranges to emit the literal string as - a linker warning on most glibc systems. - We use a linker warning rather than a preprocessor warning, because - #warning cannot be used inside macros. */ -#ifndef GL_LINK_WARNING - /* This works on platforms with GNU ld and ELF object format. - Testing __GLIBC__ is sufficient for asserting that GNU ld is in use. - Testing __ELF__ guarantees the ELF object format. - Testing __GNUC__ is necessary for the compound expression syntax. */ -# if defined __GLIBC__ && defined __ELF__ && defined __GNUC__ -# define GL_LINK_WARNING(message) \ - GL_LINK_WARNING1 (__FILE__, __LINE__, message) -# define GL_LINK_WARNING1(file, line, message) \ - GL_LINK_WARNING2 (file, line, message) /* macroexpand file and line */ -# define GL_LINK_WARNING2(file, line, message) \ - GL_LINK_WARNING3 (file ":" #line ": warning: " message) -# define GL_LINK_WARNING3(message) \ - ({ static const char warning[sizeof (message)] \ - __attribute__ ((__unused__, \ - __section__ (".gnu.warning"), \ - __aligned__ (1))) \ - = message "\n"; \ - (void)0; \ - }) -# else -# define GL_LINK_WARNING(message) ((void) 0) -# endif -#endif diff -Nru gettext-0.17/build-aux/ltmain.sh gettext-0.18.1.1/build-aux/ltmain.sh --- gettext-0.17/build-aux/ltmain.sh 2007-10-27 00:29:11.000000000 +0000 +++ gettext-0.18.1.1/build-aux/ltmain.sh 2010-06-06 12:49:57.000000000 +0000 @@ -1,52 +1,83 @@ -# ltmain.sh - Provide generalized library-building support services. -# NOTE: Changing this file will not affect anything until you rerun configure. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, -# 2007 Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify +# Generated from ltmain.m4sh. + +# ltmain.sh (GNU libtool) 2.2.6 +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, but +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -basename="s,^.*/,,g" - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -progname=`echo "$progpath" | $SED $basename` -modename="$progname" +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print informational messages (default) +# --version print version information +# -h, --help print short or long help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.2.6 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool -VERSION=1.5.24 -TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" +VERSION=2.2.6 +TIMESTAMP="" +package_revision=1.3012 -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). +# Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: @@ -60,98 +91,261 @@ BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh -# Check that we have a working $echo. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then - # Yippee, $echo works! - : -else - # Restart under the correct shell, and then maybe $echo will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE -fi +dirname="s,/[^/]*$,," +basename="s,^.*/,," -# Global variables. -mode=$default_mode -nonopt= -prev= -prevopt= -run= -show="$echo" -show_help= -execute_dlfiles= -duplicate_deps=no -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" -extracted_archives= -extracted_serial=0 +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +# Generated shell functions inserted here. + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +# In the unlikely event $progname began with a '-', it would play havoc with +# func_echo (imagine progname=-n), so we prepend ./ in that case: +func_dirname_and_basename "$progpath" +progname=$func_basename_result +case $progname in + -*) progname=./$progname ;; +esac + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=: + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname${mode+: }$mode: $*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + done + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} -##################################### -# Shell function definitions: -# This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running @@ -161,7 +355,7 @@ { my_template="${TMPDIR-/tmp}/${1-$progname}" - if test "$run" = ":"; then + if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else @@ -170,526 +364,787 @@ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" - save_mktempdir_umask=`umask` - umask 0077 - $mkdir "$my_tmpdir" - umask $save_mktempdir_umask + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || { - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 - exit $EXIT_FAILURE - } + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi - $echo "X$my_tmpdir" | $Xsed + $ECHO "X$my_tmpdir" | $Xsed } -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () { - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | \ - $SED -n -e '1,100{ - / I /{ - s,.*,import, - p - q - } - }'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac - ;; - esac - $echo $win32_libid_type } -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () { - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "X$1" | $Xsed \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) - for z in $available_tags; do - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case "$@ " in - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - $echo "$modename: unable to infer tagged configuration" - $echo "$modename: specify a tag with \`--tag'" 1>&2 - exit $EXIT_FAILURE -# else -# $echo "$modename: using $tagname tagged configuration" - fi - ;; - esac - fi + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" } -# func_extract_an_archive dir oldlib -func_extract_an_archive () +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () { - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" + my_cmd="$1" + my_fail_exp="${2-:}" - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 - exit $EXIT_FAILURE + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi fi } -# func_extract_archives gentop oldlib ... -func_extract_archives () + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () { - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - my_status="" + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } - $show "${rm}r $my_gentop" - $run ${rm}r "$my_gentop" - $show "$mkdir $my_gentop" - $run $mkdir "$my_gentop" - my_status=$? - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then - exit $my_status + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi fi +} - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - extracted_serial=`expr $extracted_serial + 1` - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - $show "${rm}r $my_xdir" - $run ${rm}r "$my_xdir" - $show "$mkdir $my_xdir" - $run $mkdir "$my_xdir" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then - exit $exit_status - fi - case $host in - *-darwin*) - $show "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - if test -z "$run"; then - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` - if test -n "$darwin_arches"; then - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - $show "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we have a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - lipo -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - ${rm}r unfat-$$ - cd "$darwin_orig_dir" - else - cd "$darwin_orig_dir" - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - fi # $run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - func_extract_archives_result="$my_oldobjs" + + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $SED -n '/^# Usage:/,/# -h/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + $ECHO + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help +# Echo long help message to standard output and exit. +func_help () +{ + $SED -n '/^# Usage:/,/# Report bugs to/ { + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + }' < "$progpath" + exit $? +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + func_error "missing argument for $1" + exit_cmd=exit } -# End of Shell function definitions -##################################### -# Darwin sucks -eval std_shrext=\"$shrext_cmds\" +exit_cmd=: -disable_libs=no -# Parse our command line options once, thoroughly. -while test "$#" -gt 0 -do - arg="$1" + + + +# Check that we have a working $ECHO. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell, and then maybe $ECHO will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi - case $arg in - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <&2 - exit $EXIT_FAILURE - ;; - esac +magic="%%%MAGIC variable%%%" +magic_exe="%%%MAGIC EXE variable%%%" - case $tagname in - CC) - # Don't test for the "default" C tag, as we know, it's there, but - # not specially marked. - ;; - *) - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then - taglist="$taglist $tagname" - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" - else - $echo "$progname: ignoring unknown tag $tagname" 1>&2 - fi - ;; - esac - ;; - *) - eval "$prev=\$arg" - ;; - esac +# Global variables. +# $mode is unset +nonopt= +execute_dlfiles= +preserve_args= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" +extracted_archives= +extracted_serial=0 - prev= - prevopt= - continue - fi +opt_dry_run=false +opt_duplicate_deps=false +opt_silent=false +opt_debug=: - # Have we seen a non-optional argument yet? - case $arg in - --help) - show_help=yes - ;; +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= - --version) - echo "\ -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP - -Copyright (C) 2007 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - exit $? - ;; +# func_fatal_configuration arg... +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func_error ${1+"$@"} + func_error "See the $PACKAGE documentation for more information." + func_fatal_error "Fatal configuration error." +} + + +# func_config +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" - --config) - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done - exit $? - ;; - - --debug) - $echo "$progname: enabling shell trace mode" - set -x - preserve_args="$preserve_args $arg" - ;; - --dry-run | -n) - run=: - ;; + exit $? +} - --features) - $echo "host: $host" +# func_features +# Display the features supported by this script. +func_features () +{ + $ECHO "host: $host" if test "$build_libtool_libs" = yes; then - $echo "enable shared libraries" + $ECHO "enable shared libraries" else - $echo "disable shared libraries" + $ECHO "disable shared libraries" fi if test "$build_old_libs" = yes; then - $echo "enable static libraries" + $ECHO "enable static libraries" else - $echo "disable static libraries" + $ECHO "disable static libraries" fi + exit $? - ;; +} - --finish) mode="finish" ;; +# func_enable_tag tagname +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname="$1" + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf="/$re_begincf/,/$re_endcf/p" + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac - --mode) prevopt="--mode" prev=mode ;; - --mode=*) mode="$optarg" ;; + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" - --preserve-dup-deps) duplicate_deps="yes" ;; + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} - --quiet | --silent) - show=: - preserve_args="$preserve_args $arg" - ;; +# Parse options once, thoroughly. This comes as soon as possible in +# the script to make things like `libtool --version' happen quickly. +{ - --tag) - prevopt="--tag" - prev=tag - preserve_args="$preserve_args --tag" + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift ;; - --tag=*) - set tag "$optarg" ${1+"$@"} - shift - prev=tag - preserve_args="$preserve_args --tag" + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift ;; - - -dlopen) - prevopt="-dlopen" - prev=execute_dlfiles + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift ;; - - -*) - $echo "$modename: unrecognized option \`$arg'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift ;; - - *) - nonopt="$arg" - break + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac -done -if test -n "$prevopt"; then - $echo "$modename: option \`$prevopt' requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE -fi + # Parse non-mode specific arguments: + while test "$#" -gt 0; do + opt="$1" + shift -case $disable_libs in -no) - ;; -shared) - build_libtool_libs=no - build_old_libs=yes - ;; -static) - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` - ;; -esac + case $opt in + --config) func_config ;; -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= + --debug) preserve_args="$preserve_args $opt" + func_echo "enabling shell trace mode" + opt_debug='set -x' + $opt_debug + ;; -if test -z "$show_help"; then + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break + execute_dlfiles="$execute_dlfiles $1" + shift + ;; - # Infer the operation mode. - if test -z "$mode"; then - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 - case $nonopt in - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) - mode=link - for arg - do - case $arg in - -c) - mode=compile - break - ;; - esac - done - ;; - *db | *dbx | *strace | *truss) - mode=execute - ;; - *install*|cp|mv) - mode=install - ;; - *rm) - mode=uninstall + --dry-run | -n) opt_dry_run=: ;; + --features) func_features ;; + --finish) mode="finish" ;; + + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break + case $1 in + # Valid mode arguments: + clean) ;; + compile) ;; + execute) ;; + finish) ;; + install) ;; + link) ;; + relink) ;; + uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; + esac + + mode="$1" + shift + ;; + + --preserve-dup-deps) + opt_duplicate_deps=: ;; + + --quiet|--silent) preserve_args="$preserve_args $opt" + opt_silent=: + ;; + + --verbose| -v) preserve_args="$preserve_args $opt" + opt_silent=false + ;; + + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break + preserve_args="$preserve_args $opt $1" + func_enable_tag "$1" # tagname is set here + shift + ;; + + # Separate optargs to long options: + -dlopen=*|--mode=*|--tag=*) + func_opt_split "$opt" + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + shift + ;; + + -\?|-h) func_usage ;; + --help) opt_help=: ;; + --version) func_version ;; + + -*) func_fatal_help "unrecognized option \`$opt'" ;; + + *) nonopt="$opt" + break + ;; + esac + done + + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: ;; *) - # If we have no mode, but dlfiles were specified, then do execute mode. - test -n "$execute_dlfiles" && mode=execute + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps + ;; + esac - # Just use the default operation mode. - if test -z "$mode"; then - if test -n "$nonopt"; then - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 - else - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 - fi + # Having warned about all mis-specified options, bail out if + # anything was wrong. + $exit_cmd $EXIT_FAILURE +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF fi - ;; - esac + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +## ----------- ## +## Main. ## +## ----------- ## + +$opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" fi + test -z "$mode" && func_fatal_error "error: you must specify a MODE." + + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then - $echo "$modename: unrecognized option \`-dlopen'" 1>&2 - $echo "$help" 1>&2 + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" - help="Try \`$modename --help --mode=$mode' for more information." + help="Try \`$progname --help --mode=$mode' for more information." +} - # These modes are in order of execution frequency so that they run quickly. - case $mode in - # libtool compile mode - compile) - modename="$modename: compile" - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} - target ) - libobj="$arg" - arg_mode=normal - continue - ;; +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} - normal ) - # Accept any command-line options. - case $arg in - -o) - if test -n "$libobj" ; then - $echo "$modename: you cannot specify \`-o' more than once" 1>&2 - exit $EXIT_FAILURE - fi - arg_mode=target - continue - ;; +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} - -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" - continue - ;; +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_ltwrapper_scriptname_result="" + if func_ltwrapper_executable_p "$1"; then + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" + fi +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case "$@ " in + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T <\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - lastarg="$lastarg $arg" + func_quote_for_eval "$arg" + lastarg="$lastarg $func_quote_for_eval_result" done IFS="$save_ifs" - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; - * ) + *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # @@ -738,65 +1187,42 @@ esac # case $arg_mode # Aesthetically quote the previous argument. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` - - case $lastarg in - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, and some SunOS ksh mistreat backslash-escaping - # in scan sets (worked around with variable expansion), - # and furthermore cannot handle '|' '&' '(' ')' in scan sets - # at all, so we specify them separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - lastarg="\"$lastarg\"" - ;; - esac - - base_compile="$base_compile $lastarg" + func_quote_for_eval "$lastarg" + base_compile="$base_compile $func_quote_for_eval_result" done # for arg case $arg_mode in arg) - $echo "$modename: you must specify an argument for -Xcompile" - exit $EXIT_FAILURE + func_fatal_error "you must specify an argument for -Xcompile" ;; target) - $echo "$modename: you must specify a target with \`-o'" 1>&2 - exit $EXIT_FAILURE + func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` + test -z "$libobj" && { + func_basename "$srcfile" + libobj="$func_basename_result" + } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo - xform='[cCFSifmso]' case $libobj in - *.ada) xform=ada ;; - *.adb) xform=adb ;; - *.ads) xform=ads ;; - *.asm) xform=asm ;; - *.c++) xform=c++ ;; - *.cc) xform=cc ;; - *.ii) xform=ii ;; - *.class) xform=class ;; - *.cpp) xform=cpp ;; - *.cxx) xform=cxx ;; - *.[fF][09]?) xform=[fF][09]. ;; - *.for) xform=for ;; - *.java) xform=java ;; - *.obj) xform=obj ;; + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.obj | *.sx) + func_xform "$libobj" + libobj=$func_xform_result + ;; esac - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - case $libobj in - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 - exit $EXIT_FAILURE + func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac @@ -804,7 +1230,15 @@ for arg in $later; do case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + continue + ;; + -static) + build_libtool_libs=no build_old_libs=yes continue ;; @@ -821,28 +1255,17 @@ esac done - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` - case $qlibobj in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qlibobj="\"$qlibobj\"" ;; - esac - test "X$libobj" != "X$qlibobj" \ - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$obj"; then - xdir= - else - xdir=$xdir/ - fi + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname - if test -z "$base_compile"; then - $echo "$modename: you must specify a compilation command" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then @@ -851,12 +1274,9 @@ removelist="$lobj $libobj ${libobj}T" fi - $run $rm $removelist - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in - cygwin* | mingw* | pw32* | os2*) + cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac @@ -868,10 +1288,8 @@ # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" - removelist="$removelist $output_obj $lockfile" - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no @@ -881,13 +1299,13 @@ # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then - until $run ln "$progpath" "$lockfile" 2>/dev/null; do - $show "Waiting for $lockfile to be removed" + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then - $echo "\ + $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` @@ -898,34 +1316,22 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." - $run $rm $removelist + $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi - $echo "$srcfile" > "$lockfile" + removelist="$removelist $output_obj" + $ECHO "$srcfile" > "$lockfile" fi + $opt_dry_run || $RM $removelist + removelist="$removelist $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` - case $qsrcfile in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qsrcfile="\"$qsrcfile\"" ;; - esac - - $run $rm "$libobj" "${libobj}T" - - # Create a libtool object file (analogous to a ".la" file), - # but don't create it if we're doing a dry run. - test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ + $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` @@ -980,45 +1371,27 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." - $run $rm $removelist + $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - $show "$mv $output_obj $lobj" - if $run $mv $output_obj $lobj; then : - else - error=$? - $run $rm $removelist - exit $error - fi + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi - # Append the name of the PIC object to the libtool object file. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then - $echo "\ + $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` @@ -1052,5460 +1420,6913 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." - $run $rm $removelist + $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - $show "$mv $output_obj $obj" - if $run $mv $output_obj $obj; then : - else - error=$? - $run $rm $removelist - exit $error - fi + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi - - # Append the name of the non-PIC object the libtool object file. - # Only append if the libtool object file exists. - test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test - ;; - *) qarg=$arg ;; - esac - libtool_args="$libtool_args $qarg" +Compile a source file into a libtool library object. - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - compile_command="$compile_command @OUTPUT@" - finalize_command="$finalize_command @OUTPUT@" - ;; - esac +This mode accepts the following additional options: - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - compile_command="$compile_command @SYMFILE@" - finalize_command="$finalize_command @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - if test ! -f "$arg"; then - $echo "$modename: symbol file \`$arg' does not exist" - exit $EXIT_FAILURE - fi - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat $save_arg` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi +Automatically set library path, then run a program. - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" +This mode accepts the following additional options: - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi + -dlopen FILE add the directory containing FILE to the library path - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi +This mode sets the library path environment variable according to \`-dlopen' +flags. - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" +Then, COMMAND is executed, with ARGS as arguments." + ;; - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi +Complete the installation of libtool libraries. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - done - else - $echo "$modename: link input file \`$save_arg' does not exist" - exit $EXIT_FAILURE - fi - arg=$save_arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - compile_command="$compile_command $wl$qarg" - finalize_command="$finalize_command $wl$qarg" - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - darwin_framework|darwin_framework_skip) - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - prev= - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" +Each LIBDIR is a directory that contains libtool libraries. - case $arg in - -all-static) - if test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi - continue - ;; +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; - -allow-undefined) - # FIXME: remove this flag sometime in the future. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 - continue - ;; + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -avoid-version) - avoid_version=yes - continue - ;; +Install executables or libraries. - -dlopen) - prev=dlfiles - continue - ;; +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. - -dlpreopen) - prev=dlprefiles - continue - ;; +The following components of INSTALL-COMMAND are treated specially: - -export-dynamic) - export_dynamic=yes - continue - ;; + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: more than one -exported-symbols argument is not allowed" - exit $EXIT_FAILURE - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; - -framework|-arch|-isysroot) - case " $CC " in - *" ${arg} ${1} "* | *" ${arg} ${1} "*) - prev=darwin_framework_skip ;; - *) compiler_flags="$compiler_flags $arg" - prev=darwin_framework ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -inst-prefix-dir) - prev=inst_prefix - continue - ;; +Link object files or libraries together to form another library, or to +create an executable program. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - ;; - esac - continue - ;; +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. - -L*) - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - notinst_path="$notinst_path $dir" - fi - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; +The following components of LINK-COMMAND are treated specially: - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs -framework System" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test "X$arg" = "X-lc" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test "X$arg" = "X-lc" && continue - ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - deplibs="$deplibs $arg" - continue - ;; + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - -model) - compile_command="$compile_command $arg" - compiler_flags="$compiler_flags $arg" - finalize_command="$finalize_command $arg" - prev=xcompiler - continue - ;; +All other options (arguments beginning with \`-') are ignored. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. - -module) - module=yes - continue - ;; +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m* pass through architecture-specific compiler args for GCC - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC - # -F/path gives path to uninstalled frameworks, gcc on darwin - # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - compiler_flags="$compiler_flags $arg" - continue +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." ;; - -shrext) - prev=shrext - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; +Remove libraries from an installation directory. - -no-undefined) - allow_undefined=no - continue - ;; +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. - -objectlist) - prev=objectlist - continue - ;; +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; - -o) prev=output ;; + *) + func_fatal_help "invalid operation mode \`$mode'" + ;; + esac - -precious-files-regex) - prev=precious_regex - continue - ;; + $ECHO + $ECHO "Try \`$progname --help' for more information about other modes." - -release) - prev=release - continue - ;; + exit $? +} - -rpath) - prev=rpath - continue - ;; + # Now that we've collected a possible --mode arg, show help if necessary + $opt_help && func_mode_help - -R) - prev=xrpath - continue - ;; - -R*) - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - continue - ;; +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" - -thread-safe) - thread_safe=yes - continue - ;; + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" - -version-info) - prev=vinfo - continue - ;; - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; + # Read the libtool library. + dlname= + library_names= + func_source "$file" - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi - -Wl,*) - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - flag="\"$flag\"" - ;; - esac - arg="$arg $wl$flag" - compiler_flags="$compiler_flags $wl$flag" - linker_flags="$linker_flags $flag" - done - IFS="$save_ifs" - arg=`$echo "X$arg" | $Xsed -e "s/^ //"` - ;; + func_dirname "$file" "" "." + dir="$func_dirname_result" - -Xcompiler) - prev=xcompiler - continue + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi ;; - -Xlinker) - prev=xlinker - continue + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" ;; - -XCClinker) - prev=xcclinker + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; + esac - # Some other compiler flag. - -* | +*) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - ;; - - *.$objext) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_quote_for_eval "$file" + args="$args $func_quote_for_eval_result" + done - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi + $lt_unset $lt_var + fi" + done - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + $ECHO "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi +test "$mode" = execute && func_mode_execute ${1+"$@"} - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libdirs="$nonopt" + admincmds= - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' fi - ;; - - *.$libext) - # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" - continue - ;; + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi - *.la) - # A libtool-controlled library. + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" - prev= - else - deplibs="$deplibs $arg" - fi - continue - ;; + $ECHO "X----------------------------------------------------------------------" | $Xsed + $ECHO "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + $ECHO + $ECHO "If you ever happen to want to link against installed libraries" + $ECHO "in a given directory, LIBDIR, you must either use libtool, and" + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" + $ECHO "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" + $ECHO " during execution" + fi + if test -n "$runpath_var"; then + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" + $ECHO " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" - # Some other compiler argument. + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $ECHO + + $ECHO "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" + $ECHO "pages." + ;; *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + $ECHO "X----------------------------------------------------------------------" | $Xsed + exit $EXIT_SUCCESS +} + +test "$mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog="$install_prog$func_quote_for_eval_result" + install_shared_prog=$install_prog + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + files="$files $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=$arg ;; esac ;; - esac # arg + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test "x$prev" = x-m && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog="$install_prog $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" fi - done # argument parsing loop - - if test -n "$prev"; then - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + install_shared_prog="$install_shared_prog $func_quote_for_eval_result" + done - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - fi + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" - oldlibs= - # calculate the name of the file, without its directory - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` - libobjs_save="$libobjs" + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` - else - shlib_search_path= + if test -n "$install_override_mode" && $no_mode; then + func_quote_for_eval "$install_override_mode" + install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result" fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` - if test "X$output_objdir" = "X$output"; then - output_objdir="$objdir" - else - output_objdir="$output_objdir/$objdir" - fi - # Create the object directory. - if test ! -d "$output_objdir"; then - $show "$mkdir $output_objdir" - $run $mkdir $output_objdir - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then - exit $exit_status + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" fi - $show "chmod 777 $output_objdir" - $run chmod 777 $output_objdir fi - # Determine the type of output - case $output in - "") - $echo "$modename: you must specify an output file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result - case $host in - *cygwin* | *mingw* | *pw32*) - # don't eliminate duplications in $postdeps and $predeps - duplicate_compiler_generated_deps=yes - ;; + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; *) - duplicate_compiler_generated_deps=$duplicate_deps + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done ;; esac - specialdeplibs= - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if test "X$duplicate_deps" = "Xyes" ; then - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - libs="$libs $deplib" - done + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" - if test "$linkmode" = lib; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; esac - pre_post_deps="$pre_post_deps $pre_post_dep" - done - fi - pre_post_deps= - fi + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - case $linkmode in - lib) - passes="conv link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 - exit $EXIT_FAILURE + func_dirname "$file" "/" "" + dir="$func_dirname_result" + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac ;; esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - for pass in $passes; do - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan"; then - libs="$deplibs" - deplibs= - fi - if test "$linkmode" = prog; then - case $pass in - dlopen) libs="$dlfiles" ;; - dlpreopen) libs="$dlprefiles" ;; - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; - esac - fi - if test "$pass" = dlopen; then - # Collect dlpreopened libraries - save_deplibs="$deplibs" - deplibs= - fi - for deplib in $libs; do - lib= - found=no - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - compiler_flags="$compiler_flags $deplib" - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 - continue + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' fi - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib="$searchdir/lib${name}${search_ext}" - if test -f "$lib"; then - if test "$search_ext" = ".la"; then - found=yes - else - found=no - fi - break 2 - fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done - done - if test "$found" != yes; then - # deplib doesn't seem to be a libtool library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - else # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $deplib "*) - if (${SED} -e '2q' $lib | - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - library_names= - old_library= - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - lib=$ladir/$old_library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - fi - ;; # -l - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - prog) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - if test "$pass" = scan; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` - ;; - *) - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) lib="$deplib" ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - if eval $echo \"$deplib\" 2>/dev/null \ - | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=yes - fi - ;; - pass_all) - valid_a_lib=yes - ;; - esac - if test "$valid_a_lib" != yes; then - $echo - $echo "*** Warning: Trying to link with static lib archive $deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because the file extensions .$libext of this argument makes me believe" - $echo "*** that it is just a static archive that I should not used here." - else - $echo - $echo "*** Warning: Linking the shared library $output against the" - $echo "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - continue - ;; - prog) - if test "$pass" != link; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - elif test "$linkmode" = prog; then - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" - fi fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - if test "$found" = yes || test -f "$lib"; then : - else - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 - exit $EXIT_FAILURE - fi - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' fi - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` - test "X$ladir" = "X$lib" && ladir="." - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; - # Read the .la file - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac + *.lo) + # Install (i.e. copy) a libtool object. - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" fi - if test "$pass" = conv; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - elif test "$linkmode" != prog && test "$linkmode" != lib; then - $echo "$modename: \`$lib' is not a convenience library" 1>&2 - exit $EXIT_FAILURE - fi - continue - fi # $pass = conv + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - if test -z "$linklib"; then - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit $EXIT_FAILURE + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi + exit $EXIT_SUCCESS + ;; - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE - fi - if test -z "$dlname" || - test "$dlopen_support" != yes || - test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" - else - newdlfiles="$newdlfiles $lib" - fi - continue - fi # $pass = dlopen + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 - abs_ladir="$ladir" + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac ;; esac - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - $echo "$modename: warning: library \`$lib' was moved." 1>&2 - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$libdir" - absdir="$libdir" + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_verbose "extracting global C symbols from \`$progfile'" + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir="$ladir" - absdir="$abs_ladir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } fi - fi # $installed = yes - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + fi - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir"; then - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 - exit $EXIT_FAILURE + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : else - newdlprefiles="$newdlprefiles $dir/$linklib" + $GREP -v "^: " < "$nlist" > "$nlist"S fi - fi # $pass = dlpreopen - if test -z "$libdir"; then - # Link the convenience library - if test "$linkmode" = lib; then - deplibs="$dir/$old_library $deplibs" - elif test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else - deplibs="$lib $deplibs" # used for prog,scan pass + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi - continue - fi + $ECHO >> "$output_objdir/$my_dlsyms" "\ - if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=no - if test "$link_all_deplibs" != no || test -z "$library_names" || - test "$build_libtool_libs" = no; then - linkalldeplibs=yes - fi +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +" + case $host in + *cygwin* | *mingw* | *cegcc* ) + $ECHO >> "$output_objdir/$my_dlsyms" "\ +/* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs. */" + lt_dlsym_const= ;; + *osf5*) + echo >> "$output_objdir/$my_dlsyms" "\ +/* This system does not cope well with relocations in const data */" + lt_dlsym_const= ;; + *) + lt_dlsym_const=const ;; + esac - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test - esac - # Need to link against all dependency_libs? - if test "$linkalldeplibs" = yes; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done # for deplib - continue - fi # $linkmode = prog... + $ECHO >> "$output_objdir/$my_dlsyms" "\ +extern $lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +$lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," - if test "$linkmode,$pass" = "prog,link"; then - if test -n "$library_names" && - { { test "$prefer_static_libs" = no || - test "$prefer_static_libs,$installed" = "built,yes"; } || - test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath " in - *" $dir "*) ;; - *" $absdir "*) ;; - *) temp_rpath="$temp_rpath $absdir" ;; - esac - fi + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + $ECHO >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test "$use_static_libs" = built && test "$installed" = yes ; then - use_static_libs=no - fi - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" - need_relink=yes - fi - # This is a shared library +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run - # Warn about portability, can't link against -module's on - # some systems (darwin) - if test "$shouldnotlink" = yes && test "$pass" = link ; then - $echo - if test "$linkmode" = prog; then - $echo "*** Warning: Linking the executable $output against the loadable module" - else - $echo "*** Warning: Linking the shared library $output against the loadable module" + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" fi - $echo "*** $linklib is not portable!" - fi - if test "$linkmode" = lib && - test "$hardcode_into_libs" = yes; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags="$symtab_cflags $arg" ;; + esac + done - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - realname="$2" - shift; shift - libname=`eval \\$echo \"$libname_spec\"` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw*) - major=`expr $current - $age` - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - soname=`$echo $soroot | ${SED} -e 's/^.*\///'` - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - $show "extracting exported symbol list from \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$extract_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi +} - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - $show "generating import library for \`$soname'" - save_ifs="$IFS"; IFS='~' - cmds=$old_archive_from_expsyms_cmds - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} - if test "$linkmode" = prog || test "$mode" != relink; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test "$hardcode_direct" = no; then - add="$dir/$linklib" - case $host in - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; - *-*-sysv4*uw2*) add_dir="-L$dir" ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir="-L$dir" ;; - *-*-darwin* ) - # if the lib is a module then we can not link against - # it, someone is ignoring the new warnings I added - if /usr/bin/file -L $add 2> /dev/null | - $EGREP ": [^:]* bundle" >/dev/null ; then - $echo "** Warning, lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - $echo - $echo "** And there doesn't seem to be a static archive available" - $echo "** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - fi - esac - elif test "$hardcode_minus_L" = no; then - case $host in - *-*-sunos*) add_shlibpath="$dir" ;; - esac - add_dir="-L$dir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = no; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - relink) - if test "$hardcode_direct" = yes; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - if test "$lib_linked" != yes; then - $echo "$modename: configuration error: unsupported hardcode properties" - exit $EXIT_FAILURE - fi - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; - esac - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test "$hardcode_direct" != yes && \ - test "$hardcode_minus_L" != yes && \ - test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - fi - fi - fi +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} - if test "$linkmode" = prog || test "$mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes; then - add="$libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$libdir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - add="-l$name" - elif test "$hardcode_automatic" = yes; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" ; then - add="$inst_prefix_dir$libdir/$linklib" - else - add="$libdir/$linklib" - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test "$linkmode" = prog; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test "$build_libtool_libs" = yes; then - # Not a shared library - if test "$deplibs_check_method" != pass_all; then - # We're trying link a shared library against a static one - # but the system doesn't support it. +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - $echo - $echo "*** Warning: This system can not link to static lib archive $lib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have." - if test "$module" = yes; then - $echo "*** But as you try to build a module library, libtool will still create " - $echo "*** a static module, that should work as long as the dlopening application" - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done - if test "$linkmode" = lib; then - if test -n "$dependency_libs" && - { test "$hardcode_into_libs" != yes || - test "$build_old_libs" = yes || - test "$link_static" = yes; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - *) temp_deplibs="$temp_deplibs $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi + func_extract_archives_result="$my_oldobjs" +} - newlib_search_path="$newlib_search_path $absdir" - # Link against this library - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - if test "X$duplicate_deps" = "Xyes" ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - case $deplib in - -L*) path="$deplib" ;; - *.la) - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$deplib" && dir="." - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - fi - ;; - esac - if grep "^installed=no" $deplib > /dev/null; then - path="$absdir/$objdir" - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - if test "$absdir" != "$libdir"; then - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 - fi - path="$absdir" - fi - depdepl= - case $host in - *-*-darwin*) - # we do not want to link against static libs, - # but need to link against shared - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$path/$depdepl" ; then - depdepl="$path/$depdepl" - fi - # do not add paths which are already there - case " $newlib_search_path " in - *" $path "*) ;; - *) newlib_search_path="$newlib_search_path $path";; - esac - fi - path="" - ;; - *) - path="-L$path" - ;; - esac - ;; - -l*) - case $host in - *-*-darwin*) - # Again, we only want to link against shared libraries - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` - for tmp in $newlib_search_path ; do - if test -f "$tmp/lib$tmp_libs.dylib" ; then - eval depdepl="$tmp/lib$tmp_libs.dylib" - break - fi - done - path="" - ;; - *) continue ;; - esac - ;; - *) continue ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - case " $deplibs " in - *" $depdepl "*) ;; - *) deplibs="$depdepl $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - dependency_libs="$newdependency_libs" - if test "$pass" = dlpreopen; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test "$pass" != dlopen; then - if test "$pass" != conv; then - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; - esac - done - newlib_search_path= - fi - if test "$linkmode,$pass" != "prog,link"; then - vars="deplibs" - else - vars="compile_deplibs finalize_deplibs" +# func_emit_wrapper_part1 [arg=no] +# +# Emit the first part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part1 () +{ + func_emit_wrapper_part1_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part1_arg1=$1 fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs ; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i="" - ;; - esac - if test -n "$i" ; then - tmp_libs="$tmp_libs $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - dlprefiles="$newdlprefiles" - fi - case $linkmode in - oldlib) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 - fi + $ECHO "\ +#! $SHELL - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 - fi +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 - fi +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 - fi +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 - fi +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 - fi +relink_command=\"$relink_command\" - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 - fi +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + ECHO=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$ECHO works! + : + else + # Restart under the correct shell, and then maybe \$ECHO will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $ECHO "\ - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - objs="$objs$old_deplibs" - ;; + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - if test "$module" = no; then - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` - fi - ;; + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; esac + fi - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 - exit $EXIT_FAILURE - else - $echo - $echo "*** Warning: Linking the shared library $output against the non-libtool" - $echo "*** objects $objs is not portable!" - libobjs="$libobjs $objs" - fi - fi + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done +" +} +# end: func_emit_wrapper_part1 - if test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 - fi +# func_emit_wrapper_part2 [arg=no] +# +# Emit the second part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part2 () +{ + func_emit_wrapper_part2_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part2_arg1=$1 + fi + + $ECHO "\ + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi - set dummy $rpath - if test "$#" -gt 2; then - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 fi - install_libdir="$2" + fi - oldlibs= - if test -z "$rpath"; then - if test "$build_libtool_libs" = yes; then - # Building a libtool convenience library. - # Some compilers have problems with a `.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" fi - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" fi - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" fi - else - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - IFS="$save_ifs" + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} +# end: func_emit_wrapper_part2 + - if test -n "$8"; then - $echo "$modename: too many parameters to \`-version-info'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=no + if test -n "$1" ; then + func_emit_wrapper_arg1=$1 fi - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible + # split this up so that func_emit_cwrapperexe_src + # can call each part independently. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" +} - case $vinfo_number in - yes) - number_major="$2" - number_minor="$3" - number_revision="$4" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - darwin|linux|osf|windows|none) - current=`expr $number_major + $number_minor` - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - current=`expr $number_major + $number_minor` - age="$number_minor" - revision="$number_minor" - lt_irix_increment=no - ;; - esac - ;; - no) - current="$2" - revision="$3" - age="$4" - ;; - esac - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac +# func_to_host_path arg +# +# Convert paths to host format when used with build tools. +# Intended for use with "native" mingw (where libtool itself +# is running under the msys shell), or in the following cross- +# build environments: +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# where wine is equipped with the `winepath' executable. +# In the native mingw case, the (msys) shell automatically +# converts paths for any non-msys applications it launches, +# but that facility isn't available from inside the cwrapper. +# Similar accommodations are necessary for $host mingw and +# $build cygwin. Calling this function does no harm for other +# $host/$build combinations not listed above. +# +# ARG is the path (on $build) that should be converted to +# the proper representation for $host. The result is stored +# in $func_to_host_path_result. +func_to_host_path () +{ + func_to_host_path_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + case $build in + *mingw* ) # actually, msys + # awkward: cmd appends spaces to result + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_path_tmp1=`( cmd //c echo "$1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_path_tmp1=`cygpath -w "$1"` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # Unfortunately, winepath does not exit with a non-zero + # error code, so we are forced to check the contents of + # stdout. On the other hand, if the command is not + # found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both + # error code of zero AND non-empty stdout, which explains + # the odd construction: + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + else + # Allow warning below. + func_to_host_path_result="" + fi + ;; + esac + if test -z "$func_to_host_path_result" ; then + func_error "Could not determine host path corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_path_result="$1" + fi + ;; + esac + fi +} +# end: func_to_host_path - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac +# func_to_host_pathlist arg +# +# Convert pathlists to host format when used with build tools. +# See func_to_host_path(), above. This function supports the +# following $build/$host combinations (but does no harm for +# combinations not listed here): +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# +# Path separators are also converted from $build format to +# $host format. If ARG begins or ends with a path separator +# character, it is preserved (but converted to $host format) +# on output. +# +# ARG is a pathlist (on $build) that should be converted to +# the proper representation on $host. The result is stored +# in $func_to_host_pathlist_result. +func_to_host_pathlist () +{ + func_to_host_pathlist_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_to_host_pathlist_tmp2="$1" + # Once set for this call, this variable should not be + # reassigned. It is used in tha fallback case. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e 's|^:*||' -e 's|:*$||'` + case $build in + *mingw* ) # Actually, msys. + # Awkward: cmd appends spaces to result. + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # unfortunately, winepath doesn't convert pathlists + func_to_host_pathlist_result="" + func_to_host_pathlist_oldIFS=$IFS + IFS=: + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do + IFS=$func_to_host_pathlist_oldIFS + if test -n "$func_to_host_pathlist_f" ; then + func_to_host_path "$func_to_host_pathlist_f" + if test -n "$func_to_host_path_result" ; then + if test -z "$func_to_host_pathlist_result" ; then + func_to_host_pathlist_result="$func_to_host_path_result" + else + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" + fi + fi + fi + IFS=: + done + IFS=$func_to_host_pathlist_oldIFS + ;; + esac + if test -z "$func_to_host_pathlist_result" ; then + func_error "Could not determine the host path(s) corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This may break if $1 contains DOS-style drive + # specifications. The fix is not to complicate the expression + # below, but for the user to provide a working wine installation + # with winepath so that path translation in the cross-to-mingw + # case works properly. + lt_replace_pathsep_nix_to_dos="s|:|;|g" + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_replace_pathsep_nix_to_dos"` + fi + # Now, add the leading and trailing path separators back + case "$1" in + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" + ;; + esac + case "$1" in + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" + ;; + esac + ;; + esac + fi +} +# end: func_to_host_pathlist - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - ;; - esac +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat <&2 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit $EXIT_FAILURE - fi +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; + The $output program cannot be directly executed until all the libtool + libraries that it depends on are installed. - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - minor_current=`expr $current + 1` - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; + This wrapper executable should never be moved out of the build directory. + If it is, it will not operate correctly. - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; + Currently, it simply execs the wrapper *script* "$SHELL $output", + but could eventually absorb all of the scripts functionality and + exec $objdir/$outputname directly. +*/ +EOF + cat <<"EOF" +#include +#include +#ifdef _MSC_VER +# include +# include +# include +# define setmode _setmode +#else +# include +# include +# ifdef __CYGWIN__ +# include +# define HAVE_SETENV +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include - freebsd-elf) - major=".$current" - versuffix=".$current"; - ;; +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif - irix | nonstopux) - if test "X$lt_irix_increment" = "Xno"; then - major=`expr $current - $age` - else - major=`expr $current - $age + 1` - fi - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - iface=`expr $revision - $loop` - loop=`expr $loop - 1` - verstring="$verstring_prefix$major.$iface:$verstring" - done +#ifdef _MSC_VER +# define S_IXUSR _S_IEXEC +# define stat _stat +# ifndef _INTPTR_T_DEFINED +# define intptr_t int +# endif +#endif - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif - linux) - major=.`expr $current - $age` - versuffix="$major.$age.$revision" - ;; +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif - osf) - major=.`expr $current - $age` - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - iface=`expr $current - $loop` - loop=`expr $loop - 1` - verstring="$verstring:${iface}.0" - done +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ - # Make executables depend on our current version. - verstring="$verstring:${current}.0" - ;; +#ifdef __CYGWIN__ +# define FOPEN_WB "wb" +#endif - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - major=`expr $current - $age` - versuffix="-$major" - ;; +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) - *) - $echo "$modename: unknown library version type \`$version_type'" 1>&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE - ;; - esac +#undef LTWRAPPER_DEBUGPRINTF +#if defined DEBUGWRAPPER +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args +static void +ltwrapper_debugprintf (const char *fmt, ...) +{ + va_list args; + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); +} +#else +# define LTWRAPPER_DEBUGPRINTF(args) +#endif - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$need_version" = no; then - versuffix= - else - versuffix=".0.0" - fi - fi +const char *program_name = NULL; - # Remove version info from name if versioning should be avoided - if test "$avoid_version" = yes && test "$need_version" = no; then - major= - versuffix= - verstring="" - fi +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_fatal (const char *message, ...); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_opt_process_env_set (const char *arg); +void lt_opt_process_env_prepend (const char *arg); +void lt_opt_process_env_append (const char *arg); +int lt_split_name_value (const char *arg, char** name, char** value); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); - # Check to see if the archive will have undefined symbols. - if test "$allow_undefined" = yes; then - if test "$allow_undefined_flag" = unsupported; then - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - fi +static const char *script_text_part1 = +EOF - if test "$mode" != relink; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$echo "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) - if test "X$precious_files_regex" != "X"; then - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - removelist="$removelist $p" - ;; - *) ;; - esac - done - if test -n "$removelist"; then - $show "${rm}r $removelist" - $run ${rm}r $removelist - fi - fi + func_emit_wrapper_part1 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + cat <"))); + for (i = 0; i < newargc; i++) + { + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); + } - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $rm conftest.c - cat > conftest.c </dev/null` - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null \ - | grep " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for file magic test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a file magic. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` - for a_deplib in $deplibs; do - name=`expr $a_deplib : '-l\(.*\)'` - # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval $echo \"$potent_lib\" 2>/dev/null \ - | ${SED} 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $echo - $echo "*** Warning: linker path does not have real file for library $a_deplib." - $echo "*** I have the capability to make that library automatically link in when" - $echo "*** you link to this library. But I can only do this if you have a" - $echo "*** shared version of the library, which you do not appear to have" - $echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $echo "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $echo "*** with $libname and none of the candidates passed a file format test" - $echo "*** using a regex pattern. Last file checked: $potlib" - fi - fi - else - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - fi - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ - -e 's/ -[LR][^ ]*//g'` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - for i in $predeps $postdeps ; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` - done - fi - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ - | grep . >/dev/null; then - $echo - if test "X$deplibs_check_method" = "Xnone"; then - $echo "*** Warning: inter-library dependencies are not supported in this platform." - else - $echo "*** Warning: inter-library dependencies are not known to be supported." - fi - $echo "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - fi - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + newargz = prepare_spawn (newargz); + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); + if (rval == -1) + { + /* failed to start process */ + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =127, but avoids unused variable warning */ +EOF + ;; + esac - if test "$droppeddeps" = yes; then - if test "$module" = yes; then - $echo - $echo "*** Warning: libtool could not satisfy all declared inter-library" - $echo "*** dependencies of module $libname. Therefore, libtool will create" - $echo "*** a static module, that should work as long as the dlopening" - $echo "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - $echo - $echo "*** However, this would only work if libtool was able to extract symbol" - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - $echo "*** not find such a program. So, this module is probably useless." - $echo "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - $echo "*** The inter-library dependencies that have been dropped here will be" - $echo "*** automatically added whenever a program is linked with this library" - $echo "*** or is declared to -dlopen it." + cat <<"EOF" +} - if test "$allow_undefined" = no; then - $echo - $echo "*** Since this library must not contain undefined symbols," - $echo "*** because either the platform does not support them or" - $echo "*** it was explicitly requested with -no-undefined," - $echo "*** libtool will only create a static version of it." - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi +void * +xmalloc (size_t num) +{ + void *p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + return p; +} - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - deplibs="$new_libs" +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} +const char * +base_name (const char *name) +{ + const char *base; - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] == ':') + name += 2; +#endif - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - case $archive_cmds in - *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; - *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; - esac - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} - shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi +int +check_executable (const char *path) +{ + struct stat st; - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - realname="$2" - shift; shift + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi + if ((stat (path, &st) >= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} - lib="$output_objdir/$realname" - linknames= - for link - do - linknames="$linknames $link" - done +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - if len=`expr "X$cmd" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - $show "$cmd" - $run eval "$cmd" || exit $? - skipped_export=false - else - # The command line is too long to execute in one step. - $show "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex"; then - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - $show "$mv \"${export_symbols}T\" \"$export_symbols\"" - $run eval '$mv "${export_symbols}T" "$export_symbols"' - fi - fi - fi + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' - fi +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - tmp_deplibs="$tmp_deplibs $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - else - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; - func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" - fi + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif - # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? - fi + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} - if test "X$skipped_export" != "X:" && - len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise. - $echo "creating reloadable object files..." +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", + tmp_pathspec)); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - output_la=`$echo "X$output" | $Xsed -e "$basename"` + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + char *errstr = strerror (errno); + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + } + } + XFREE (tmp_pathspec); - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - delfiles= - last_robj= - k=1 - output=$output_objdir/$output_la-${k}.$objext - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - eval test_cmds=\"$reload_cmds $objlist $last_robj\" - if test "X$objlist" = X || - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; }; then - objlist="$objlist $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" - else - # All subsequent reloadable object files will link in - # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - k=`expr $k + 1` - output=$output_objdir/$output_la-${k}.$objext - objlist=$obj - len=1 - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + if (!has_symlinks) + { + return xstrdup (pathspec); + } - if ${skipped_export-false}; then - $show "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $run $rm $export_symbols - libobjs=$output - # Append the command to create the export file. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" - fi - - # Set up a command to remove the reloadable object files - # after they are used. - i=0 - while test "$i" -lt "$k" - do - i=`expr $i + 1` - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" - done + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal ("Could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} - $echo "creating a temporary reloadable object file: $output" +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" + assert (str != NULL); + assert (pat != NULL); - libobjs=$output - # Restore the value of output. - output=$save_output + len = strlen (str); + patlen = strlen (pat); - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi +static void +lt_error_core (int exit_status, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); - # Append the command to remove the reloadable object files - # to the just-reset $cmds. - eval cmds=\"\$cmds~\$rm $delfiles\" - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? + if (exit_status >= 0) + exit (exit_status); +} - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} - exit $lt_exit - } - done - IFS="$save_ifs" +void +lt_setenv (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", + (name ? name : ""), + (value ? value : ""))); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - fi - fi +int +lt_split_name_value (const char *arg, char** name, char** value) +{ + const char *p; + int len; + if (!arg || !*arg) + return 1; - exit $EXIT_SUCCESS - fi + p = strchr (arg, (int)'='); - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? - fi - done + if (!p) + return 1; - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; + *value = xstrdup (++p); - obj) - if test -n "$deplibs"; then - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 - fi + len = strlen (arg) - strlen (*value); + *name = XMALLOC (char, len); + strncpy (*name, arg, len-1); + (*name)[len - 1] = '\0'; - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 - fi + return 0; +} - if test -n "$rpath"; then - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 - fi +void +lt_opt_process_env_set (const char *arg) +{ + char *name = NULL; + char *value = NULL; - if test -n "$xrpath"; then - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 - fi + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); + } - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 - fi + lt_setenv (name, value); + XFREE (name); + XFREE (value); +} - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 - fi +void +lt_opt_process_env_prepend (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; - case $output in - *.lo) - if test -n "$objs$old_deplibs"; then - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 - exit $EXIT_FAILURE - fi - libobj="$output" - obj=`$echo "X$output" | $Xsed -e "$lo2o"` - ;; - *) - libobj= - obj="$output" - ;; - esac + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); + } - # Delete the old objects. - $run $rm $obj $libobj + new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec and hope we can get by with - # turning comma into space.. - wl= +void +lt_opt_process_env_append (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` - else - gentop="$output_objdir/${obj}x" - generated="$generated $gentop" + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); + } - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi + new_value = lt_extend_str (getenv (name), value, 1); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test +void +lt_update_exe_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); - output="$obj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi +void +lt_update_lib_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); - exit $EXIT_SUCCESS - fi + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $run eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - fi + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; - if test -n "$pic_flag" || test "$pic_mode" != default; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output="$libobj" - cmds=$reload_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - fi + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); - if test -n "$gentop"; then - $show "${rm}r $gentop" - $run ${rm}r $gentop - fi + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; - exit $EXIT_SUCCESS - ;; + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; - prog) - case $host in - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; - esac - if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 - fi + quoted_string = XMALLOC (char, length + 1); - if test -n "$release"; then - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 - fi + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; - if test "$preload" = yes; then - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && - test "$dlopen_self_static" = unknown; then - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." - fi - fi + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - ;; - esac + return new_argv; +} +EOF + ;; + esac +} +# end: func_emit_cwrapperexe_src - case $host in - *darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - if test "$tagname" = CXX ; then - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - fi - ;; - esac +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes ;; - *) new_libs="$new_libs $deplib" ;; esac - done - compile_deplibs="$new_libs" + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - fi + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac + dlself=needless + export_dynamic=yes fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - *) dllsearchpath="$dllsearchpath:$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; esac ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + ;; esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + ;; esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - fi + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. - dlsyms= - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - dlsyms="${outputname}S.c" - else - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 - fi - fi + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= - if test -n "$dlsyms"; then - case $dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${outputname}.nm" + # Read the .lo file + func_source "$arg" - $show "$rm $nlist ${nlist}S ${nlist}T" - $run $rm "$nlist" "${nlist}S" "${nlist}T" + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi - # Parse the name list into a source file. - $show "creating $output_objdir/$dlsyms" + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" -#ifdef __cplusplus -extern \"C\" { -#endif + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi -/* Prevent the only kind of declaration conflicts we can make. */ -#define lt_preloaded_symbols some_other_symbol + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi -/* External symbol declarations for the compiler. */\ -" + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi - if test "$dlself" = yes; then - $show "generating symbol list for \`$output'" + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" - # Add our own program objects to the symbol list. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - for arg in $progfiles; do - $show "extracting global C symbols from \`$arg'" - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi done - - if test -n "$exclude_expsyms"; then - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - if test -n "$export_symbols_regex"; then - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - $run eval '$mv "$nlist"T "$nlist"' - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $run $rm $export_symbols - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - else - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - $run eval 'mv "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* ) - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - fi + else + func_fatal_error "link input file \`$arg' does not exist" fi - - for arg in $dlprefiles; do - $show "extracting global C symbols from \`$arg'" - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` - $run eval '$echo ": $name " >> "$nlist"' - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" - done - - if test -z "$run"; then - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $mv "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if grep -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - grep -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' - else - $echo '/* NONE */' >> "$output_objdir/$dlsyms" - fi - - $echo >> "$output_objdir/$dlsyms" "\ - -#undef lt_preloaded_symbols - -#if defined (__STDC__) && __STDC__ -# define lt_ptr void * -#else -# define lt_ptr char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -" - - case $host in - *cygwin* | *mingw* ) - $echo >> "$output_objdir/$dlsyms" "\ -/* DATA imports from DLLs on WIN32 can't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs */ -struct { -" - ;; - * ) - $echo >> "$output_objdir/$dlsyms" "\ -const struct { -" - ;; - esac - - - $echo >> "$output_objdir/$dlsyms" "\ - const char *name; - lt_ptr address; -} -lt_preloaded_symbols[] = -{\ -" - - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" - - $echo >> "$output_objdir/$dlsyms" "\ - {0, (lt_ptr) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - fi - - pic_flag_for_symtable= - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; - esac;; - *-*-hpux*) - case "$compile_command " in - *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag";; - esac + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; esac - - # Now compile the dynamic symbol file. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? - - # Clean up the generated files. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" - - # Transform the symbol file into the correct name. - case $host in - *cygwin* | *mingw* ) - if test -f "$output_objdir/${outputname}.def" ; then - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` - else - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - fi - ;; - * ) - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` - ;; - esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + weak_libs="$weak_libs $arg" + prev= + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue ;; *) - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 - exit $EXIT_FAILURE + eval "$prev=\"\$arg\"" + prev= + continue ;; esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` - fi - - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - # Replace the output file specification. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` - link_command="$compile_command$compile_rpath" + fi # test -n "$prev" - # We have no uninstalled library dependencies, so finalize right now. - $show "$link_command" - $run eval "$link_command" - exit_status=$? + prevarg="$arg" - # Delete the generated files. - if test -n "$dlsyms"; then - $show "$rm $output_objdir/${outputname}S.${objext}" - $run $rm "$output_objdir/${outputname}S.${objext}" + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" fi + continue + ;; - exit $exit_status - fi - - if test -n "$shlibpath_var"; then - # We should set the shlibpath_var - rpath= - for dir in $temp_rpath; do - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) - # Absolute path. - rpath="$rpath$dir:" - ;; - *) - # Relative path: add a thisdir entry. - rpath="$rpath\$thisdir/$dir:" - ;; - esac - done - temp_rpath="$rpath" - fi + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi + -avoid-version) + avoid_version=yes + continue + ;; - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi + -dlopen) + prev=dlfiles + continue + ;; - if test "$no_install" = yes; then - # We don't need to create a wrapper script. - link_command="$compile_var$compile_command$compile_rpath" - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $run $rm $output - # Link the executable and exit - $show "$link_command" - $run eval "$link_command" || exit $? - exit $EXIT_SUCCESS - fi + -dlpreopen) + prev=dlprefiles + continue + ;; - if test "$hardcode_action" = relink; then - # Fast installation is not supported - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" + -export-dynamic) + export_dynamic=yes + continue + ;; - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 - $echo "$modename: \`$output' will be relinked during installation" 1>&2 - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` - else - # fast_install is set to needless - relink_command= - fi + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms else - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" + prev=expsyms_regex fi - fi - - # Replace the output file specification. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + continue + ;; - # Delete the old output files. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname + -framework) + prev=framework + continue + ;; - $show "$link_command" - $run eval "$link_command" || exit $? + -inst-prefix-dir) + prev=inst_prefix + continue + ;; - # Now create the wrapper script. - $show "creating $output" + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" + -L*) + func_stripname '-L' '' "$arg" + dir=$func_stripname_result + if test -z "$dir"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" + func_fatal_error "need path for \`-L' option" fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` - fi - - # Quote $echo for shipping. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + fi + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; esac - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` - fi - - # Only actually do things if our run command is non-null. - if test -z "$run"; then - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; esac - # test for cygwin because mv fails w/o .exe extensions case $host in - *cygwin*) - exeext=.exe - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; - *) exeext= ;; + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; esac - case $host in - *cygwin* | *mingw* ) - output_name=`basename $output` - output_path=`dirname $output` - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $rm $cwrappersource $cwrapper - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + continue + ;; - cat > $cwrappersource <> $cwrappersource<<"EOF" -#include -#include -#include -#include -#include -#include -#include -#include -#include + -multi_module) + single_module="${wl}-multi_module" + continue + ;; -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif + -no-fast-install) + fast_install=no + continue + ;; -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif + -no-undefined) + allow_undefined=no + continue + ;; -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ + -objectlist) + prev=objectlist + continue + ;; -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ + -o) prev=output ;; -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) + -precious-files-regex) + prev=precious_regex + continue + ;; -/* -DDEBUG is fairly common in CFLAGS. */ -#undef DEBUG -#if defined DEBUGWRAPPER -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) -#else -# define DEBUG(format, ...) -#endif + -release) + prev=release + continue + ;; -const char *program_name = NULL; + -rpath) + prev=rpath + continue + ;; -void * xmalloc (size_t num); -char * xstrdup (const char *string); -const char * base_name (const char *name); -char * find_executable(const char *wrapper); -int check_executable(const char *path); -char * strendzap(char *str, const char *pat); -void lt_fatal (const char *message, ...); + -R) + prev=xrpath + continue + ;; -int -main (int argc, char *argv[]) -{ - char **newargz; - int i; + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; - program_name = (char *) xstrdup (base_name (argv[0])); - DEBUG("(main) argv[0] : %s\n",argv[0]); - DEBUG("(main) program_name : %s\n",program_name); - newargz = XMALLOC(char *, argc+2); -EOF + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; - cat >> $cwrappersource <> $cwrappersource <<"EOF" - newargz[1] = find_executable(argv[0]); - if (newargz[1] == NULL) - lt_fatal("Couldn't find %s", argv[0]); - DEBUG("(main) found exe at : %s\n",newargz[1]); - /* we know the script has the same name, without the .exe */ - /* so make sure newargz[1] doesn't end in .exe */ - strendzap(newargz[1],".exe"); - for (i = 1; i < argc; i++) - newargz[i+1] = xstrdup(argv[i]); - newargz[argc+1] = NULL; + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; - for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" - return 127; -} + -weak) + prev=weak + continue + ;; -void * -xmalloc (size_t num) -{ - void * p = (void *) malloc (num); - if (!p) - lt_fatal ("Memory exhausted"); + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; - return p; -} + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" + linker_flags="$linker_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; -char * -xstrdup (const char *string) -{ - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL -; -} + -Xcompiler) + prev=xcompiler + continue + ;; -const char * -base_name (const char *name) -{ - const char *base; - -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha ((unsigned char)name[0]) && name[1] == ':') - name += 2; -#endif + -Xlinker) + prev=xlinker + continue + ;; - for (base = name; *name; name++) - if (IS_DIR_SEPARATOR (*name)) - base = name + 1; - return base; -} + -XCClinker) + prev=xcclinker + continue + ;; -int -check_executable(const char * path) -{ - struct stat st; + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); - if ((!path) || (!*path)) - return 0; + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + compiler_flags="$compiler_flags $arg" + continue + ;; - if ((stat (path, &st) >= 0) && - ( - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ -#if defined (S_IXOTH) - ((st.st_mode & S_IXOTH) == S_IXOTH) || -#endif -#if defined (S_IXGRP) - ((st.st_mode & S_IXGRP) == S_IXGRP) || -#endif - ((st.st_mode & S_IXUSR) == S_IXUSR)) - ) - return 1; - else - return 0; -} + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise */ -char * -find_executable (const char* wrapper) -{ - int has_slash = 0; - const char* p; - const char* p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char* concat_name; + *.$objext) + # A standard object. + objs="$objs $arg" + ;; - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); + *.lo) + # A libtool-controlled object. - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif + # Read the .lo file + func_source "$arg" - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char* path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char* q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR(*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen(tmp); - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi - if (check_executable(concat_name)) - return concat_name; - XFREE(concat_name); - return NULL; -} + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" -char * -strendzap(char *str, const char *pat) -{ - size_t len, patlen; + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" - assert(str != NULL); - assert(pat != NULL); + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi - len = strlen(str); - patlen = strlen(pat); + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi - if (patlen <= len) - { - str += len - patlen; - if (strcmp(str, pat) == 0) - *str = '\0'; - } - return str; -} + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi -static void -lt_error_core (int exit_status, const char * mode, - const char * message, va_list ap) -{ - fprintf (stderr, "%s: %s: ", program_name, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" - if (exit_status >= 0) - exit (exit_status); -} + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" -void -lt_fatal (const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); - va_end (ap); -} -EOF - # we should really use a build-platform specific compiler - # here, but OTOH, the wrappers (shell script and this C one) - # are only useful if you want to execute the "real" binary. - # Since the "real" binary is built for $host, then this - # wrapper might as well be built for $host, too. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource - ;; - esac - $rm $output - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; - $echo > $output "\ -#! $SHELL + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. + *.la) + # A libtool-controlled library. -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' -sed_quote_subst='$sed_quote_subst' + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop -relink_command=\"$relink_command\" + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variable: - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$echo are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - echo=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$echo works! - : - else - # Restart under the correct shell, and then maybe \$echo will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" fi - fi\ -" - $echo >> $output "\ - - # Find the directory that this script lives in. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_duplicate_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + case $lib in + *.la) func_source "$lib" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs="$deplibs $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + dir=$func_stripname_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $ECHO + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because the file extensions .$libext of this argument makes me believe" + $ECHO "*** that it is just a static archive that I should not use here." + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath="$temp_rpath$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + $ECHO + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $ECHO + $ECHO "*** And there doesn't seem to be a static archive available" + $ECHO "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $ECHO + $ECHO "*** Warning: This system can not link to static lib archive $lib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $ECHO "*** But as you try to build a module library, libtool will still create " + $ECHO "*** a static module, that should work as long as the dlopening application" + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_dirname "$deplib" "" "." + dir="$func_dirname_result" + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs="$libobjs $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + done + fi + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | + $GREP . >/dev/null; then + $ECHO + if test "X$deplibs_check_method" = "Xnone"; then + $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + else + $ECHO "*** Warning: inter-library dependencies are not known to be supported." + fi + $ECHO "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $ECHO + $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + $ECHO "*** a static module, that should work as long as the dlopening" + $ECHO "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $ECHO "*** The inter-library dependencies that have been dropped here will be" + $ECHO "*** automatically added whenever a program is linked with this library" + $ECHO "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $ECHO + $ECHO "*** Since this library must not contain undefined symbols," + $ECHO "*** because either the platform does not support them or" + $ECHO "*** it was explicitly requested with -no-undefined," + $ECHO "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; esac - fi - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` - done + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi - if test "$fast_install" = yes; then - $echo >> $output "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift - if test ! -f \"\$progdir/\$program\" || \\ - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi - file=\"\$\$-\$program\" + lib="$output_objdir/$realname" + linknames= + for link + do + linknames="$linknames $link" + done - if test ! -d \"\$progdir\"; then - $mkdir \"\$progdir\" - else - $rm \"\$progdir/\$file\" - fi" + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= - $echo >> $output "\ + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + delfiles="$delfiles $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $echo \"\$relink_command_output\" >&2 - $rm \"\$progdir/\$file\" - exit $EXIT_FAILURE - fi - fi + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + func_len " $cmd" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $rm \"\$progdir/\$program\"; - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $rm \"\$progdir/\$file\" - fi" - else - $echo >> $output "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi - $echo >> $output "\ + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" - if test -f \"\$progdir/\$program\"; then" + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $echo >> $output "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi - export $shlibpath_var -" + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $echo >> $output "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi fi - $echo >> $output "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2*) - $echo >> $output "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. - *) - $echo >> $output "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $echo >> $output "\ - \$echo \"\$0: cannot exec \$program \$*\" - exit $EXIT_FAILURE - fi - else - # The program doesn't exist. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$echo \"This script is just a wrapper for \$program.\" 1>&2 - $echo \"See the $PACKAGE documentation for more information.\" 1>&2 - exit $EXIT_FAILURE - fi -fi\ -" - chmod +x $output - fi - exit $EXIT_SUCCESS - ;; - esac + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$ECHO "X$output" | $Xsed -e "$basename"` - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save" - addlibs="$convenience" - build_libtool_libs=no - else - if test "$build_libtool_libs" = module; then - oldobjs="$libobjs_save" - build_libtool_libs=no - else - oldobjs="$old_deplibs $non_pic_objects" - fi - addlibs="$old_convenience" - fi + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + $ECHO 'INPUT (' > $output + for obj in $save_libobjs + do + $ECHO "$obj" >> $output + done + $ECHO ')' >> $output + delfiles="$delfiles $output" + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + $ECHO "$obj" >> $output + done + delfiles="$delfiles $output" + output=$firstobj\"$file_list_spec$output\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles="$delfiles $output" - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + else + output= + fi - func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" - fi + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - $echo "X$obj" | $Xsed -e 's%^.*/%%' - done | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "copying selected object files to avoid basename conflicts..." + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" - if test -z "$gentop"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "$mkdir $gentop" - $run $mkdir "$gentop" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then - exit $exit_status + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - counter=`expr $counter + 1` - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - $run ln "$obj" "$gentop/$newobj" || - $run cp "$obj" "$gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" - ;; - *) oldobjs="$oldobjs $obj" ;; - esac - done - fi + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi - eval cmds=\"$old_archive_cmds\" + libobjs=$output + # Restore the value of output. + output=$save_output - if len=`expr "X$cmds" : ".*"` && - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - $echo "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - for obj in $save_oldobjs - do - oldobjs="$objlist $obj" - objlist="$objlist $obj" - eval test_cmds=\"$old_archive_cmds\" - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && - test "$len" -le "$max_cmd_len"; then - : + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= + cmds=$module_cmds fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi fi fi - fi - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - eval cmd=\"$cmd\" - IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done - if test -n "$generated"; then - $show "${rm}r$generated" - $run ${rm}r$generated - fi + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - $show "creating $output" + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` - relink_command="$var=\"$var_value\"; export $var; $relink_command" + func_extract_archives $gentop $dlprefiles + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? - # Only create the output if not a dry run. - if test -z "$run"; then - for installed in no yes; do - if test "$installed" = yes; then - if test -z "$install_libdir"; then - break + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) fi - output="$output_objdir/$outputname"i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - if test -z "$libdir"; then - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdependency_libs="$newdependency_libs $libdir/$name" - ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - for lib in $dlfiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlfiles="$newdlfiles $libdir/$name" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - if test -z "$libdir"; then - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit $EXIT_FAILURE - fi - newdlprefiles="$newdlprefiles $libdir/$name" - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlfiles="$newdlfiles $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlprefiles="$newdlprefiles $abs" - done - dlprefiles="$newdlprefiles" - fi - $rm $output - # place dlname in correct position for cygwin - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; - esac - $echo > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' -# Version information for $libname. -current=$current -age=$age -revision=$revision + exit $lt_exit + } + done + IFS="$save_ifs" -# Is this an already installed library? -installed=$installed + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? -# Should we warn about portability when linking against -modules? -shouldnotlink=$module + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' + exit $EXIT_SUCCESS + fi -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $echo >> $output "\ -relink_command=\"$relink_command\"" + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done - fi - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi ;; - esac - exit $EXIT_SUCCESS - ;; - # libtool install mode - install) - modename="$modename: install" + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || - # Allow the use of GNU shtool's install command. - $echo "X$nonopt" | grep shtool > /dev/null; then - # Aesthetically quote it. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; esac - install_prog="$arg " - arg="$1" - shift - else - install_prog= - arg=$nonopt - fi - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog$arg" + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - for arg - do - if test -n "$dest"; then - files="$files $dest" - dest=$arg - continue - fi + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" - case $arg in - -d) isdir=yes ;; - -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac - ;; - -g | -m | -o) prev=$arg ;; - -s) - stripme=" -s" - continue - ;; - -*) + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result ;; *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - prev= - else - dest=$arg - continue - fi + libobj= + obj="$output" ;; esac - # Aesthetically quote the argument. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - install_prog="$install_prog $arg" - done + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj - if test -z "$install_prog"; then - $echo "$modename: you must specify an install program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= - if test -n "$prev"; then - $echo "$modename: the \`$prev' option requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" - if test -z "$files"; then - if test -z "$dest"; then - $echo "$modename: no file or destination specified" 1>&2 - else - $echo "$modename: you must specify a destination" 1>&2 + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi fi - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - # Strip any trailing slash from the destination. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` - test "X$destdir" = "X$dest" && destdir=. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' - # Not a directory, so check to see that there is only one file specified. - set dummy $files - if test "$#" -gt 2; then - $echo "$modename: \`$dest' is not a directory" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS fi - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - done + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS ;; - esac - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - staticlibs="$staticlibs $file" + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; + esac - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : - else - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac - library_names= - old_library= - relink_command= - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; esac - fi + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ - test "X$dir" = "X$file/" && dir= - dir="$dir$objdir" - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - if test "$inst_prefix_dir" = "$destdir"; then - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 - exit $EXIT_FAILURE - fi + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi else - relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" - $echo "$modename: warning: relinking \`$file'" 1>&2 - $show "$relink_command" - if $run eval "$relink_command"; then : + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - exit $EXIT_FAILURE + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" - # See the names of the shared library. - set dummy $library_names - if test -n "$2"; then - realname="$2" - shift - shift + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" - # Install the shared library and build the symlinks. - $show "$install_prog $dir/$srcname $destdir/$realname" - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? - if test -n "$stripme" && test -n "$striplib"; then - $show "$striplib $destdir/$realname" - $run eval "$striplib $destdir/$realname" || exit $? - fi + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - if test "$linkname" != "$realname"; then - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" - fi - done - fi + wrappers_required=yes + case $host in + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *cegcc) + # Disable wrappers for cegcc, we are cross compiling anyway. + wrappers_required=no + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" - # Do each command in the postinstall commands. - lib="$destdir/$realname" - cmds=$postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' - fi + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' - exit $lt_exit - } - done - IFS="$save_ifs" + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi - # Install the pseudo-library for information purposes. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - instname="$dir/$name"i - $show "$install_prog $instname $destdir/$name" - $run eval "$install_prog $instname $destdir/$name" || exit $? - - # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" - ;; + exit $exit_status + fi - *.lo) - # Install (i.e. copy) a libtool object. + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - # Install the libtool object if requested. - if test -n "$destfile"; then - $show "$install_prog $file $destfile" - $run eval "$install_prog $file $destfile" || exit $? + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi + fi - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` - - $show "$install_prog $staticobj $staticdest" - $run eval "$install_prog \$staticobj \$staticdest" || exit $? - fi + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS - ;; + fi - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi else - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - destfile="$destdir/$destfile" + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" fi + fi - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - file=`$echo $file|${SED} 's,.exe$,,'` - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin*|*mingw*) - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` - ;; - *) - wrapper=$file - ;; - esac - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then - notinst_deplibs= - relink_command= - - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac - - # Check the variables that should have been set. - if test -z "$notinst_deplibs"; then - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 - exit $EXIT_FAILURE - fi + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - # If there is no directory component, then add one. - case $lib in - */* | *\\*) . $lib ;; - *) . ./$lib ;; - esac - fi - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 - finalize=no - fi - done + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - relink_command= - # Note that it is not necessary on cygwin/mingw to append a dot to - # foo even if both foo and FILE.exe exist: automatic-append-.exe - # behavior happens only for exec(3), not for open(2)! Also, sourcing - # `FILE.' does not work on cygwin managed mounts. - # - # If there is no directory component, then add one. - case $wrapper in - */* | *\\*) . ${wrapper} ;; - *) . ./${wrapper} ;; - esac + func_show_eval "$link_command" 'exit $?' - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - if test "$finalize" = yes && test -z "$run"; then - tmpdir=`func_mktempdir` - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` + # Now create the wrapper script. + func_verbose "creating $output" - $show "$relink_command" - if $run eval "$relink_command"; then : - else - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - ${rm}r "$tmpdir" - continue - fi - file="$outputname" - else - $echo "$modename: warning: cannot relink \`$file'" 1>&2 - fi + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" else - # Install the binary that we compiled earlier. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi - fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` - ;; - esac - ;; + # Quote $ECHO for shipping. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; esac - $show "$install_prog$stripme $file $destfile" - $run eval "$install_prog\$stripme \$file \$destfile" || exit $? - test -n "$outputname" && ${rm}r "$tmpdir" - ;; - esac - done + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } - for file in $staticlibs; do - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - # Set up the ranlib parameters. - oldlib="$destdir/$name" + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac - $show "$install_prog $file $oldlib" - $run eval "$install_prog \$file \$oldlib" || exit $? + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do - if test -n "$stripme" && test -n "$old_striplib"; then - $show "$old_striplib $oldlib" - $run eval "$old_striplib $oldlib" || exit $? + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + oldobjs="$oldobjs $symfileobj" + fi + fi + addlibs="$old_convenience" fi - # Do each command in the postinstall commands. - cmds=$old_postinstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || exit $? - done - IFS="$save_ifs" - done + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" - if test -n "$future_libdirs"; then - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 - fi + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - test -n "$run" && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi - ;; + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else - # libtool finish mode - finish) - modename="$modename: finish" - libdirs="$nonopt" - admincmds= + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done + func_extract_archives $gentop $dlprefiles + oldobjs="$oldobjs $func_extract_archives_result" + fi - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - cmds=$finish_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" || admincmds="$admincmds - $cmd" + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $ECHO "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac done - IFS="$save_ifs" fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $run eval "$cmds" || admincmds="$admincmds - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - test "$show" = : && exit $EXIT_SUCCESS + eval cmds=\"$old_archive_cmds\" - $echo "X----------------------------------------------------------------------" | $Xsed - $echo "Libraries have been installed in:" - for libdir in $libdirs; do - $echo " $libdir" + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' done - $echo - $echo "If you ever happen to want to link against installed libraries" - $echo "in a given directory, LIBDIR, you must either use libtool, and" - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" - $echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" - $echo " during execution" - fi - if test -n "$runpath_var"; then - $echo " - add LIBDIR to the \`$runpath_var' environment variable" - $echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $echo " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $echo " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $echo - $echo "See any operating system documentation about shared libraries for" - $echo "more information, such as the ld(1) and ld.so(8) manual pages." - $echo "X----------------------------------------------------------------------" | $Xsed - exit $EXIT_SUCCESS - ;; - # libtool execute mode - execute) - modename="$modename: execute" - - # The first argument is the command name. - cmd="$nonopt" - if test -z "$cmd"; then - $echo "$modename: you must specify a COMMAND" 1>&2 - $echo "$help" - exit $EXIT_FAILURE - fi + test -n "$generated" && \ + func_show_eval "${RM}r$generated" - # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do - if test ! -f "$file"; then - $echo "$modename: \`$file' is not a file" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" - dir= - case $file in - *.la) - # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" else - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi - # Read the libtool library. - dlname= - library_names= + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles="$newdlfiles $libdir/$name" + ;; + *) newdlfiles="$newdlfiles $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles="$newdlprefiles $libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac +# The name that we can dlopen(3). +dlname='$tdlname' - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" - continue - fi +# Names of this library. +library_names='$library_names' - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. +# The name of the static archive. +old_library='$old_library' - if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" - else - if test ! -f "$dir/$dlname"; then - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 - exit $EXIT_FAILURE - fi - fi - ;; +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' - *.lo) - # Just add the directory containing the .lo file. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - test "X$dir" = "X$file" && dir=. - ;; +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' - *) - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 - continue - ;; - esac +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" +# Version information for $libname. +current=$current +age=$age +revision=$revision - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done +# Is this an already installed library? +installed=$installed - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" +# Should we warn about portability when linking against -modules? +shouldnotlink=$module - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -*) ;; - *) - # Do a test to see if this is really a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - # If there is no directory component, then add one. - case $file in - */* | *\\*) . $file ;; - *) . ./$file ;; - esac +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` - args="$args \"$file\"" - done +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } - if test -z "$run"; then - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} - # Restore saved environment variables - for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - fi" - done +{ test "$mode" = link || test "$mode" = relink; } && + func_mode_link ${1+"$@"} - # Now prepare to actually exec the command. - exec_cmd="\$cmd$args" - else - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" - $echo "export $shlibpath_var" - fi - $echo "$cmd$args" - exit $EXIT_SUCCESS - fi - ;; - # libtool clean and uninstall mode - clean | uninstall) - modename="$modename: $mode" - rm="$nonopt" +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" files= rmforce= exit_status=0 @@ -6517,30 +8338,28 @@ for arg do case $arg in - -f) rm="$rm $arg"; rmforce=yes ;; - -*) rm="$rm $arg" ;; + -f) RM="$RM $arg"; rmforce=yes ;; + -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done - if test -z "$rm"; then - $echo "$modename: you must specify an RM program" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` - if test "X$dir" = "X$file"; then - dir=. + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + func_basename "$file" + name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates @@ -6552,9 +8371,9 @@ fi # Don't error if the file doesn't exist and rm -f was used. - if (test -L "$file") >/dev/null 2>&1 \ - || (test -h "$file") >/dev/null 2>&1 \ - || test -f "$file"; then + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then : elif test -d "$file"; then exit_status=1 @@ -6568,8 +8387,8 @@ case $name in *.la) # Possibly a libtool archive, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - . $dir/$name + if func_lalib_p "$file"; then + func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do @@ -6584,39 +8403,17 @@ *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. - cmds=$postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. - cmds=$old_postuninstall_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $show "$cmd" - $run eval "$cmd" - if test "$?" -ne 0 && test "$rmforce" != yes; then - exit_status=1 - fi - done - IFS="$save_ifs" + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; @@ -6626,20 +8423,20 @@ *.lo) # Possibly a libtool object, so verify it. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if func_lalib_p "$file"; then # Read the .lo file - . $dir/$name + func_source $dir/$name # Add PIC object to the list of files to remove. - if test -n "$pic_object" \ - && test "$pic_object" != none; then + if test -n "$pic_object" && + test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" \ - && test "$non_pic_object" != none; then + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi @@ -6650,17 +8447,26 @@ noexename=$name case $file in *.exe) - file=`$echo $file|${SED} 's,.exe$,,'` - noexename=`$echo $name|${SED} 's,.exe$,,'` + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - relink_command= - . $dir/$noexename + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles @@ -6675,239 +8481,38 @@ fi ;; esac - $show "$rm $rmfiles" - $run $rm $rmfiles || exit_status=1 + func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then - $show "rmdir $dir" - $run rmdir $dir >/dev/null 2>&1 + func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status - ;; +} - "") - $echo "$modename: you must specify a MODE" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - ;; - esac +{ test "$mode" = uninstall || test "$mode" = clean; } && + func_mode_uninstall ${1+"$@"} - if test -z "$exec_cmd"; then - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$generic_help" 1>&2 - exit $EXIT_FAILURE - fi -fi # test -z "$show_help" +test -z "$mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then - eval exec $exec_cmd + eval exec "$exec_cmd" exit $EXIT_FAILURE fi -# We need to display help for each of the modes. -case $mode in -"") $echo \ -"Usage: $modename [OPTION]... [MODE-ARG]... - -Provide generalized library-building support services. - - --config show all configuration variables - --debug enable verbose shell tracing --n, --dry-run display commands without modifying any files - --features display basic configuration information and exit - --finish same as \`--mode=finish' - --help display this help message and exit - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] - --quiet same as \`--silent' - --silent don't print informational messages - --tag=TAG use configuration variables from tag TAG - --version print version information - -MODE must be one of the following: - - clean remove files from the build directory - compile compile a source file into a libtool object - execute automatically set library path, then run a program - finish complete the installation of libtool libraries - install install libraries or executables - link create a library or an executable - uninstall remove libraries from an installed directory - -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for -a more detailed description of MODE. - -Report bugs to ." - exit $EXIT_SUCCESS - ;; - -clean) - $echo \ -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - -compile) - $echo \ -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only - -static always build a \`.o' file suitable for static linking - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - -execute) - $echo \ -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - -finish) - $echo \ -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - -install) - $echo \ -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - -link) - $echo \ -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. +exit $exit_status -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - -uninstall) - $echo \ -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - -*) - $echo "$modename: invalid operation mode \`$mode'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; -esac - -$echo -$echo "Try \`$modename --help' for more information about other modes." - -exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting @@ -6921,14 +8526,17 @@ # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared -disable_libs=shared +build_libtool_libs=no +build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static -disable_libs=static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: +# vi:sw=2 + diff -Nru gettext-0.17/build-aux/mdate-sh gettext-0.18.1.1/build-aux/mdate-sh --- gettext-0.17/build-aux/mdate-sh 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/mdate-sh 2009-08-15 15:30:37.000000000 +0000 @@ -1,10 +1,10 @@ #!/bin/sh # Get modification time of a file or directory and pretty-print it. -scriptversion=2005-06-29.22 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software -# Foundation, Inc. +# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009 Free +# Software Foundation, Inc. # written by Ulrich Drepper , June 1995 # # This program is free software; you can redistribute it and/or modify @@ -18,8 +18,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -75,6 +74,10 @@ else ls_command='ls -l -d' fi +# Avoid user/group names that might have spaces, when possible. +if ls -n /dev/null 1>/dev/null 2>&1; then + ls_command="$ls_command -n" +fi # A `ls -l' line looks as follows on OS/2. # drwxrwx--- 0 Aug 11 2001 foo @@ -89,7 +92,7 @@ # words should be skipped to get the date. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. -set x`ls -l -d /` +set x`$ls_command /` # Find which argument is the month. month= @@ -197,5 +200,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/missing gettext-0.18.1.1/build-aux/missing --- gettext-0.17/build-aux/missing 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/missing 2009-08-15 15:28:09.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Common stub for a few missing GNU programs while installing. -scriptversion=2005-06-08.21 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, +# 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify @@ -18,9 +18,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -33,6 +31,8 @@ fi run=: +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. @@ -44,7 +44,7 @@ msg="missing on your system" -case "$1" in +case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= @@ -77,6 +77,7 @@ aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' + autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c @@ -86,6 +87,9 @@ tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and +\`g' are ignored when checking the name. + Send bug reports to ." exit $? ;; @@ -103,15 +107,22 @@ esac +# normalize program name to check for. +program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect -# the program). -case "$1" in - lex|yacc) +# the program). This is about non-GNU programs, so use $1 not +# $program. +case $1 in + lex*|yacc*) # Not GNU programs, they don't have --version. ;; - tar) + tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 @@ -135,7 +146,7 @@ # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. -case "$1" in +case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if @@ -145,7 +156,7 @@ touch aclocal.m4 ;; - autoconf) + autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the @@ -154,7 +165,7 @@ touch configure ;; - autoheader) + autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want @@ -164,7 +175,7 @@ test -z "$files" && files="config.h" touch_files= for f in $files; do - case "$f" in + case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; @@ -184,7 +195,7 @@ while read f; do touch "$f"; done ;; - autom4te) + autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the @@ -192,8 +203,8 @@ You can get \`$1' as part of \`Autoconf' from any GNU archive site." - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else @@ -207,80 +218,78 @@ fi ;; - bison|yacc) + bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h - if [ $# -ne 1 ]; then + if test $# -ne 1; then eval LASTARG="\${$#}" - case "$LASTARG" in + case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` - if [ -f "$SRCFILE" ]; then + if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` - if [ -f "$SRCFILE" ]; then + if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi - if [ ! -f y.tab.h ]; then + if test ! -f y.tab.h; then echo >y.tab.h fi - if [ ! -f y.tab.c ]; then + if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; - lex|flex) + lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c - if [ $# -ne 1 ]; then + if test $# -ne 1; then eval LASTARG="\${$#}" - case "$LASTARG" in + case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` - if [ -f "$SRCFILE" ]; then + if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi - if [ ! -f lex.yy.c ]; then + if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; - help2man) + help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` - if test -z "$file"; then - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` - fi - if [ -f "$file" ]; then + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" - exit 1 + exit $? fi ;; - makeinfo) + makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file @@ -289,11 +298,17 @@ DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` + file=`sed -n ' + /^@setfilename/{ + s/.* \([^ ]*\) *$/\1/ + p + q + }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi @@ -303,7 +318,7 @@ touch $file ;; - tar) + tar*) shift # We have already tried tar in the generic part. @@ -317,13 +332,13 @@ fi firstarg="$1" if shift; then - case "$firstarg" in + case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac - case "$firstarg" in + case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 @@ -356,5 +371,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/build-aux/moopp gettext-0.18.1.1/build-aux/moopp --- gettext-0.17/build-aux/moopp 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/build-aux/moopp 2010-06-06 12:49:58.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Minimal Object-Oriented style PreProcessor. -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 Free Software Foundation, Inc. # Written by Bruno Haible , 2006. # # This program is free software: you can redistribute it and/or modify @@ -659,6 +659,8 @@ inherited=yes fi done + # First a prototype, to avoid gcc -Wmissing-prototypes warnings. + echo "$rettype ${main_classname}__${name} ($arglist);" echo "$rettype" echo "${main_classname}__${name} ($arglist)" echo "{" diff -Nru gettext-0.17/build-aux/relocatable.sh.in gettext-0.18.1.1/build-aux/relocatable.sh.in --- gettext-0.17/build-aux/relocatable.sh.in 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/build-aux/relocatable.sh.in 2010-02-16 21:32:16.000000000 +0000 @@ -6,7 +6,7 @@ # package by hand; see doc/relocatable-maint.texi (in Gnulib) for # details. # -# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/build-aux/reloc-ldflags gettext-0.18.1.1/build-aux/reloc-ldflags --- gettext-0.17/build-aux/reloc-ldflags 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/build-aux/reloc-ldflags 2010-02-16 21:31:27.000000000 +0000 @@ -2,7 +2,7 @@ # Output a system dependent linker command for putting a relocatable library # search path into an executable. # -# Copyright 2003 Free Software Foundation, Inc. +# Copyright 2003, 2009, 2010 Free Software Foundation, Inc. # Written by Bruno Haible , 2003. # # This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/build-aux/unused-parameter.h gettext-0.18.1.1/build-aux/unused-parameter.h --- gettext-0.17/build-aux/unused-parameter.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/build-aux/unused-parameter.h 2010-02-16 21:32:16.000000000 +0000 @@ -0,0 +1,36 @@ +/* A C macro for declaring that specific function parameters are not used. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* _GL_UNUSED_PARAMETER is a marker that can be appended to function parameter + declarations for parameters that are not used. This helps to reduce + warnings, such as from GCC -Wunused-parameter. The syntax is as follows: + type param _GL_UNUSED_PARAMETER + or more generally + param_decl _GL_UNUSED_PARAMETER + For example: + int param _GL_UNUSED_PARAMETER + int *(*param)(void) _GL_UNUSED_PARAMETER + Other possible, but obscure and discouraged syntaxes: + int _GL_UNUSED_PARAMETER *(*param)(void) + _GL_UNUSED_PARAMETER int *(*param)(void) + */ +#ifndef _GL_UNUSED_PARAMETER +# if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED_PARAMETER __attribute__ ((__unused__)) +# else +# define _GL_UNUSED_PARAMETER +# endif +#endif diff -Nru gettext-0.17/build-aux/warn-on-use.h gettext-0.18.1.1/build-aux/warn-on-use.h --- gettext-0.17/build-aux/warn-on-use.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/build-aux/warn-on-use.h 2010-05-24 09:59:53.000000000 +0000 @@ -0,0 +1,109 @@ +/* A C macro for emitting warnings if a function is used. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* _GL_WARN_ON_USE (function, "literal string") issues a declaration + for FUNCTION which will then trigger a compiler warning containing + the text of "literal string" anywhere that function is called, if + supported by the compiler. If the compiler does not support this + feature, the macro expands to an unused extern declaration. + + This macro is useful for marking a function as a potential + portability trap, with the intent that "literal string" include + instructions on the replacement function that should be used + instead. However, one of the reasons that a function is a + portability trap is if it has the wrong signature. Declaring + FUNCTION with a different signature in C is a compilation error, so + this macro must use the same type as any existing declaration so + that programs that avoid the problematic FUNCTION do not fail to + compile merely because they included a header that poisoned the + function. But this implies that _GL_WARN_ON_USE is only safe to + use if FUNCTION is known to already have a declaration. Use of + this macro implies that there must not be any other macro hiding + the declaration of FUNCTION; but undefining FUNCTION first is part + of the poisoning process anyway (although for symbols that are + provided only via a macro, the result is a compilation error rather + than a warning containing "literal string"). Also note that in + C++, it is only safe to use if FUNCTION has no overloads. + + For an example, it is possible to poison 'getline' by: + - adding a call to gl_WARN_ON_USE_PREPARE([[#include ]], + [getline]) in configure.ac, which potentially defines + HAVE_RAW_DECL_GETLINE + - adding this code to a header that wraps the system : + #undef getline + #if HAVE_RAW_DECL_GETLINE + _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" + "not universally present; use the gnulib module getline"); + #endif + + It is not possible to directly poison global variables. But it is + possible to write a wrapper accessor function, and poison that + (less common usage, like &environ, will cause a compilation error + rather than issue the nice warning, but the end result of informing + the developer about their portability problem is still achieved): + #if HAVE_RAW_DECL_ENVIRON + static inline char ***rpl_environ (void) { return &environ; } + _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); + # undef environ + # define environ (*rpl_environ ()) + #endif + */ +#ifndef _GL_WARN_ON_USE + +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) +/* A compiler attribute is available in gcc versions 4.3.0 and later. */ +# define _GL_WARN_ON_USE(function, message) \ +extern __typeof__ (function) function __attribute__ ((__warning__ (message))) +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +/* Verify the existence of the function. */ +# define _GL_WARN_ON_USE(function, message) \ +extern __typeof__ (function) function +# else /* Unsupported. */ +# define _GL_WARN_ON_USE(function, message) \ +_GL_WARN_EXTERN_C int _gl_warn_on_use +# endif +#endif + +/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string") + is like _GL_WARN_ON_USE (function, "string"), except that the function is + declared with the given prototype, consisting of return type, parameters, + and attributes. + This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does + not work in this case. */ +#ifndef _GL_WARN_ON_USE_CXX +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +extern rettype function parameters_and_attributes \ + __attribute__ ((__warning__ (msg))) +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +/* Verify the existence of the function. */ +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +extern rettype function parameters_and_attributes +# else /* Unsupported. */ +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +_GL_WARN_EXTERN_C int _gl_warn_on_use +# endif +#endif + +/* _GL_WARN_EXTERN_C declaration; + performs the declaration with C linkage. */ +#ifndef _GL_WARN_EXTERN_C +# if defined __cplusplus +# define _GL_WARN_EXTERN_C extern "C" +# else +# define _GL_WARN_EXTERN_C extern +# endif +#endif diff -Nru gettext-0.17/build-aux/ylwrap gettext-0.18.1.1/build-aux/ylwrap --- gettext-0.17/build-aux/ylwrap 2006-07-20 18:45:35.000000000 +0000 +++ gettext-0.18.1.1/build-aux/ylwrap 2009-08-15 15:30:40.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # ylwrap - wrapper for lex/yacc invocations. -scriptversion=2005-05-14.22 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, +# 2007, 2009 Free Software Foundation, Inc. # # Written by Tom Tromey . # @@ -19,9 +19,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -101,14 +99,14 @@ # FIXME: add hostname here for parallel makes that run commands on # other machines. But that might take us over the 14-char limit. dirname=ylwrap$$ -trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 +trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 mkdir $dirname || exit 1 cd $dirname case $# in - 0) $prog "$input" ;; - *) $prog "$@" "$input" ;; + 0) "$prog" "$input" ;; + *) "$prog" "$@" "$input" ;; esac ret=$? @@ -219,5 +217,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru gettext-0.17/ChangeLog gettext-0.18.1.1/ChangeLog --- gettext-0.17/ChangeLog 2007-11-06 23:27:08.000000000 +0000 +++ gettext-0.18.1.1/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,428 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-04 Bruno Haible + + * DEPENDENCIES: Add entries for 'tar' and 'gzip'. + +2010-06-04 Bruno Haible + + * autogen.sh: For libgrep, don't use --avoid of modules with + applicability 'all'. + Reported by Ryan Schmidt . + +2010-06-03 Bruno Haible + + * README: Remove lots of old cruft. Mention the translators as the + third audience. + +2010-06-03 Bruno Haible + + * version.sh: Bump to 0.18.1. + * autogen.sh: Record the gnulib version that is being used. + +2010-06-03 Bruno Haible + + Deprecate the --with-cvs option. + * DEPENDENCIES: Update entries for git, CVS. Remove entry for RCS. + * PACKAGING: Update comments about archive.*.tar.gz. + +2010-05-19 Bruno Haible + + Link with libunistring, if it exists. + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, + GNULIB_MODULES_LIBGETTEXTPO): Add libunistring-optional. + * DEPENDENCIES: Mention optional dependency to GNU libunistring. + +2010-05-22 Bruno Haible + + * README.woe32: Explain how to build 64-bit mode binaries. + Reported by Rob . + +2010-05-24 Bruno Haible + + Use the newest regex module from gnulib. + * autogen.sh: Add another gnulib-tool invocation for libgrep. + (GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES): New variable. + (GNULIB_MODULES_TOOLS_FOR_LIBGREP): Change value. + Pass option -I libgrep/gnulib-m4 to 'aclocal'. + * Makefile.am (distcheck-hook): Don't compare memchr.c. + +2010-05-23 Bruno Haible + + Do regex matching purely with regex, not regex + dfa + kwset. + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_LIBGREP): Remove hard-locale. + +2010-05-15 Bruno Haible + + List the build dependencies. + * DEPENDENCIES: Clarify that 'git' is also a build dependencies. + List the non-trivial build dependencies. + Reported by Santiago Vila . + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * version.sh: Bump to 0.18. + * windows/gettext.rc: Update year. + * autogen.sh: Record the gnulib version that is being used. + +2010-05-08 Bruno Haible + + * NEWS: Mention the PO mode changes. + +2010-04-02 Bruno Haible + + Remove autoconf-lib-link directory, obsoleted by gnulib. + * Makefile.am (SUBDIRS): Remove autoconf-lib-link. + ($(srcdir)/configure): Don't depend on autoconf-lib-link/configure.ac. + (distcheck-hook): Remove checks of lib-*.m4 and config.rpath. + * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add havelib. + Remove configuration of autoconf-lib-link subdirectory. Remove + "-I ../autoconf-lib-link/m4" option to aclocal. Don't copy + config.rpath. + * configure.ac (AC_CONFIG_SUBDIRS): Remove autoconf-lib-link. + Don't recurse into autoconf-lib-link. + +2010-03-30 Bruno Haible + + * README.woe32: Update for Cygwin 1.7.x. + +2010-03-28 Bruno Haible + + * NEWS: Deprecate the use of AM_GNU_GETTEXT with 'no-libtool' argument + and 'gettextize --intl'. + +2010-03-28 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add fnmatch, remove + fnmatch-posix. + + * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, + GNULIB_MODULES_TOOLS_FOR_SRC, GNULIB_MODULES_LIBGETTEXTPO): Add stdlib, + remove exit. + +2010-03-13 Bruno Haible + + * NEWS: Mention the --color and --style options on many programs. + +2010-01-19 Bruno Haible + + * AUTHORS: Update from fencepost.gnu.org:/gd/gnuorg/copyright.list. + +2010-01-11 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, + GNULIB_MODULES_LIBGETTEXTPO): Replace ucs4-utf8, utf8-ucs4, utf16-ucs4 + with their modern equivalents. + +2009-12-26 Bruno Haible + + * windows/gettext.rc: Update. + +2009-12-26 Bruno Haible + + * NEWS: Mention the use of the thread-specific locale on MacOS X. + +2009-12-25 Bruno Haible + + * Makefile.am (distcheck-hook): Compare fcntl-o.m4 instead of + fcntl_h.m4. + * PACKAGING: Mention fcntl-o.m4 instead of fcntl_h.m4. + +2009-12-12 Bruno Haible + + * AUTHORS: Untabify. + * README: Untabify. + * THANKS: Untabify. + +2009-12-01 Bruno Haible + + * m4/init-package-version.m4 (gl_INIT_PACKAGE): Set AC_PACKAGE_NAME. + +2009-11-30 Bruno Haible + + * autogen.sh: Treat gettext-runtime/libasprintf before gettext-runtime. + Treat gettext-tools/examples before gettext-tools. + +2009-10-18 Bruno Haible + + * Makefile.am (distcheck-hook): Compare fcntl_h.m4. + * PACKAGING: Mention also fcntl_h.m4. + +2009-09-27 Bruno Haible + + * NEWS: Mention configure options --without-cvs and --with-git. + * PACKAGING: Mention archive.*.tar.gz instead of archive.tar.gz. + * DEPENDENCIES: Mention also git. + +2009-09-01 Bruno Haible + + * README.woe32: Put the -mno-cygwin option into CC and CXX. + Recommended by Paolo Bonzini and Eric Blake. + +2009-08-30 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add xstriconveh. + +2009-08-30 Bruno Haible + + * configure.ac (AC_PREREQ): Require at least autoconf 2.59. + +2009-08-15 Bruno Haible + + Stop using gnulib module 'strdup'. + * Makefile.am (distcheck-hook): Don't compare strdup.c. + +2009-08-14 Bruno Haible + + * autogen.sh: Invoke gnulib-tool also for gettext-runtime/libasprintf. + (GNULIB_MODULES_LIBASPRINTF, GNULIB_MODULES_LIBASPRINTF_OTHER): New + variables. + Update aclocal options for gettext-runtime/libasprintf. + * Makefile.am (distcheck-hook): Don't compare eoverflow.m4. Update + comparison of alloca.in.h. + +2009-08-14 Bruno Haible + + Remove automatically copied files from version control. + * autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Add csharpcomp-script, + csharpexec-script, javacomp-script, javaexec-script. + * build-aux/csharpcomp.sh.in: Remove file. + * build-aux/csharpexec.sh.in: Remove file. + * build-aux/javacomp.sh.in: Remove file. + * build-aux/javaexec.sh.in: Remove file. + +2009-08-14 Bruno Haible + + Remove automatically copied files from version control. + * autogen.sh: Fetch config.guess, config.sub. + * build-aux/config.guess: Remove file. + * build-aux/config.sub: Remove file. + + Remove automatically copied files from version control. + * autogen.sh: Invoke automake with options --add-missing --copy. + * build-aux/compile: Remove file. + * build-aux/depcomp: Remove file. + * build-aux/elisp-comp: Remove file. + * build-aux/install-sh: Remove file. + * build-aux/mdate-sh: Remove file. + * build-aux/missing: Remove file. + * build-aux/ylwrap: Remove file. + +2009-08-14 Bruno Haible + + Remove automatically generated files from version control. + * autogen.sh: If --quick was not given, rebuild autoconfiguration of + tests, PO files, manual pages, documentation, test files. + +2009-08-14 Bruno Haible + + * autogen.sh: Update comments. + +2009-08-14 Bruno Haible + + * autogen.sh: Create gettext-tools/intl directory before running + automake. + +2009-08-12 Bruno Haible + + * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, + GNULIB_MODULES_TOOLS_FOR_SRC): Use getopt-gnu instead of getopt. + +2009-08-10 Bruno Haible + + * autogen.sh: Avoid the 'hash-tests' module. It corresponds to an + incompatible 'hash' module. + +2009-08-04 Bruno Haible + + Port msgfilter to Woe32 platforms. + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add pipe-filter-ii. + +2009-08-03 Bruno Haible + + * autogen.sh: Remove statements to fix permissions. Now fixed in git. + +2009-05-23 Bruno Haible + + * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. + +2009-05-23 Bruno Haible + + * m4/init-package-version.m4: New file. + * configure.ac: Invoke gl_INIT_PACKAGE. Use the preferred form of + AM_INIT_AUTOMAKE. + * Makefile.am (ACLOCAL_AMFLAGS): New variable. + * autogen.sh: Update aclocal invocation. + +2009-05-21 Bruno Haible + + Require automake >= 1.11. + * autogen.sh: Update comment. + +2009-05-21 Bruno Haible + + Support automake 1.11. + * m4/fixautomake.m4 (FIX_MAKEFILE_TOPDIR_DISTRIB): Update for + automake 1.11. + * autogen.sh: Update comment. + +2009-05-21 Bruno Haible + + Assume automake >= 1.10.2. + * m4/fixautomake.m4 (FIX_MAKEFILE_COMPILE, FIX_MAKEFILE_INFO): Remove + macros. + +2009-04-23 Bruno Haible + + Fix recognition of "nm" command. + * m4/libtool.m4 (LT_PATH_NM): Try "nm" program also when compiling for + mingw in a cygwin environment. + +2009-04-23 Bruno Haible + + * m4/libtool.m4: Fix recognition of 'link' command. + 2009-01-26 Peter Rosin + Don't settle for any dumpbin/link program as name lister. + * m4/libtool.m4 (LT_PATH_NM): When locating dumpbin or + link -dump, check if they appear to really be capable of name + listing, in order to eliminate e.g. link from coreutils. This + makes the name lister decision fall back on nm as the default + if no acceptable candidate is found, which mainly happens on + (arguably broken) cross compiles. + +2009-03-14 Bruno Haible + + * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'. + +2009-01-14 Bruno Haible + + * configure.ac: More consistent m4 quoting. + +2008-12-07 Bruno Haible + + * build-aux/fixaclocal: Update for automake-1.10.2. + +2008-10-01 Ralf Wildenhues + + * m4/libtool.m4 (install_override_mode): New LT_DECL. + (_LT_SYS_DYNAMIC_LINKER) [hpux9*, hpux10*, hpux11*]: Set it. + * build-aux/ltmain.sh (func_mode_install): Build a second command line, + $install_shared_prog, for the installation of the shared library. + Override resp. set the permission mode if install_override_mode is + nonempty. + +2008-10-04 Bruno Haible + + * autogen.sh: Fix execute permissions of some files. + +2008-09-28 Bruno Haible + + * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw, + preprocess the argument vector through prepare_spawn. + +2008-09-27 Bruno Haible + + * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add sigpipe, stdio. + (GNULIB_MODULES_TOOLS_FOR_SRC): Add sigpipe, stdio, sys_select, write. + (GNULIB_MODULES_LIBGETTEXTPO): Add sigpipe, stdio. + +2008-09-27 Bruno Haible + + * build-aux/config.guess: Update to GNU version 2008-09-08. + * build-aux/config.sub: Likewise. + +2008-09-21 Bruno Haible + + * build-aux/fixaclocal: Adapt for newer versions of 'aclocal'. + +2008-09-14 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, + GNULIB_MODULES_LIBGETTEXTPO): Add strerror. + +2008-09-07 Bruno Haible + + * m4/libtool.m4: Update from libtool-2.2.6, with modifications: + 2008-04-06 Bruno Haible + * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use + CONFIG_SHELL; don't assume that the Makefile.in will set SHELL + to ${CONFIG_SHELL}. + * m4/ltoptions.m4: Update from libtool-2.2.6. + * m4/ltsugar.m4: Likewise. + * m4/ltversion.m4: Likewise. + * build-aux/ltmain.sh: Likewise. + +2008-09-01 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC, + GNULIB_MODULES_LIBGETTEXTPO): Add xconcat-filename. + +2008-08-31 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sigprocmask. + +2008-08-30 Bruno Haible + + * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add open. + +2008-08-17 Bruno Haible + + * Makefile.am (distcheck-hook): Also compare threadlib.m4. + +2008-08-14 Bruno Haible + + * Makefile.am (distcheck-hook): Update check of lock.h and lock.c. + +2008-05-22 Bruno Haible + + * README.woe32: Add a note about the libiconv dependency. + Reported by Marko Lindqvist . + +2008-05-18 Bruno Haible + + * m4/libtool.m4: Update from libtool-2.2.4, with modifications: + 2008-04-06 Bruno Haible + * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use + CONFIG_SHELL; don't assume that the Makefile.in will set SHELL + to ${CONFIG_SHELL}. + * m4/ltoptions.m4: Update from libtool-2.2.4. + * m4/ltversion.m4: Likewise. + * m4/lt~obsolete.m4: Likewise. + * build-aux/ltmain.sh: Likewise. + +2008-05-10 Bruno Haible + + * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Replace linebreak with + unilbrk/ulc-width-linebreaks. + (GNULIB_MODULES_LIBGETTEXTPO): Likewise. + +2008-04-20 Bruno Haible + + * m4/libtool.m4: Update from libtool-2.2.2, with modifications: + 2008-04-06 Bruno Haible + * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use + CONFIG_SHELL; don't assume that the Makefile.in will set SHELL + to ${CONFIG_SHELL}. + * m4/ltoptions.m4: New file, from libtool-2.2.2. + * m4/ltsugar.m4: New file, from libtool-2.2.2. + * m4/ltversion.m4: New file, from libtool-2.2.2. + * m4/lt~obsolete.m4: New file, from libtool-2.2.2. + * build-aux/ltmain.sh: Update from libtool-2.2.2. + +2007-12-24 Bruno Haible + + * version.sh: Bump to 0.18-pre1. + +2007-11-10 Bruno Haible + + * Makefile.am (distcheck-hook): Add a check for eoverflow.m4. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/configure gettext-0.18.1.1/configure --- gettext-0.17/configure 2007-11-06 23:54:56.000000000 +0000 +++ gettext-0.18.1.1/configure 2010-06-06 20:12:46.000000000 +0000 @@ -1,60 +1,83 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.65. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -63,20 +86,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -87,354 +108,320 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE # CDPATH. -$as_unset CDPATH - +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST else - as_have_required=no + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : -if as_func_ret_success; then - : else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes else - exitcode=1 - echo positional parameters were not saved. + as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - case $as_dir in + as_found=: + case $as_dir in #( /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi done;; esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } IFS=$as_save_IFS - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} } +as_unset=as_fn_unset -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi -if ( set x; as_func_ret_success y && test x = "$1" ); then - : +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error -exitcode=0 -if as_func_success; then - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + as_expr=false fi -if as_func_ret_success; then - : +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + as_basename=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname else - exitcode=1 - echo positional parameters were not saved. + as_dirname=false fi -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= @@ -451,8 +438,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the @@ -462,49 +448,40 @@ exit } - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi @@ -512,7 +489,7 @@ rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -529,12 +506,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -548,8 +525,8 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -567,7 +544,6 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= @@ -575,95 +551,144 @@ PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= +PACKAGE_URL= ac_unique_file="gettext-tools/src/msgfmt.c" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -subdirs -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -CC -CFLAGS -LDFLAGS -CPPFLAGS -CPP -CXX -CXXFLAGS +enable_option_checking=no +ac_subst_vars='LTLIBOBJS +LIBOBJS CXXCPP -F77 -FFLAGS -YACC -YFLAGS -GCJ -GCJFLAGS -EMACS EMACSLOADPATH -LIBOBJS -LTLIBOBJS' +EMACS +GCJFLAGS +GCJ +CXXFLAGS +CXX +CPP +YFLAGS +YACC +CPPFLAGS +LDFLAGS +CFLAGS +CC +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +subdirs +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_java +enable_native_java +enable_csharp +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +enable_libtool_lock +enable_nls +enable_threads +enable_rpath +with_libpth_prefix +with_libiconv_prefix +with_included_gettext +with_libintl_prefix +enable_relocatable +enable_libasprintf +enable_acl +with_included_glib +with_libglib_20_prefix +with_included_libcroco +with_libcroco_06_prefix +with_included_libunistring +with_libunistring_prefix +with_included_libxml +with_libxml2_prefix +enable_openmp +enable_largefile +enable_curses +with_libncurses_prefix +with_libtermcap_prefix +with_libxcurses_prefix +with_libcurses_prefix +with_included_regex +with_libexpat_prefix +with_lispdir +with_emacs +with_git +with_cvs +' ac_precious_vars='build_alias host_alias target_alias @@ -672,23 +697,23 @@ LDFLAGS LIBS CPPFLAGS +YACC +YFLAGS CPP CXX CXXFLAGS -CXXCPP -F77 -FFLAGS -YACC -YFLAGS GCJ GCJFLAGS EMACS -EMACSLOADPATH' -ac_subdirs_all='autoconf-lib-link gettext-runtime gettext-tools' +EMACSLOADPATH +CXXCPP' +ac_subdirs_all='gettext-runtime gettext-tools' # Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -787,13 +812,20 @@ datarootdir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; @@ -806,13 +838,20 @@ dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -1003,22 +1042,36 @@ ac_init_version=: ;; -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. @@ -1038,25 +1091,25 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; @@ -1065,23 +1118,36 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error "missing argument to $ac_option" fi -# Be sure to have absolute directory names. +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1095,7 +1161,7 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes @@ -1111,23 +1177,21 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1154,13 +1218,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1208,9 +1270,9 @@ Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -1220,25 +1282,25 @@ For better control, use the options below. Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -1259,67 +1321,82 @@ cat <<\_ACEOF Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) --disable-java do not build Java sources --disable-native-java do not compile Java to native executables --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) + --enable-shared[=PKGS] build shared libraries + [default=]_LT_ENABLE_SHARED_DEFAULT[] + --enable-static[=PKGS] build static libraries + [default=]_LT_ENABLE_STATIC_DEFAULT[] + --enable-fast-install[=PKGS] + optimize for fast installation + [default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[] + --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --enable-threads={posix|solaris|pth|win32} specify multithreading API --disable-threads build without multithread safety --disable-rpath do not hardcode runtime library paths - --enable-relocatable install a package that can be moved in the filesystem + --enable-relocatable install a package that can be moved in the file + system --disable-libasprintf do not build libasprintf + --disable-acl do not support ACLs --disable-openmp do not use OpenMP --disable-largefile omit support for large files + --disable-curses do not use libncurses, libtermcap even if they exist Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] - --with-tags[=TAGS] include additional configurations [automatic] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib - --without-libpth-prefix don't search for libpth in includedir and libdir - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-libpth-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libpth-prefix don't search for PACKLIBS in includedir and libdir + --with-libiconv-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libiconv-prefix don't search for PACKLIBS in includedir and libdir --with-included-gettext use the GNU gettext library included here - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir + --with-libintl-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libintl-prefix don't search for PACKLIBS in includedir and libdir --with-included-glib use the glib2 included here - --with-libglib-2.0-prefix[=DIR] search for libglib-2.0 in DIR/include and DIR/lib - --without-libglib-2.0-prefix don't search for libglib-2.0 in includedir and libdir + --with-libglib-2.0-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libglib-2.0-prefix don't search for PACKLIBS in includedir and libdir --with-included-libcroco use the libcroco included here - --with-libcroco-0.6-prefix[=DIR] search for libcroco-0.6 in DIR/include and DIR/lib - --without-libcroco-0.6-prefix don't search for libcroco-0.6 in includedir and libdir + --with-libcroco-0.6-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libcroco-0.6-prefix don't search for PACKLIBS in includedir and libdir + --with-included-libunistring use the libunistring parts included here + --with-libunistring-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libunistring-prefix don't search for PACKLIBS in includedir and libdir --with-included-libxml use the libxml2 included here - --with-libxml2-prefix[=DIR] search for libxml2 in DIR/include and DIR/lib - --without-libxml2-prefix don't search for libxml2 in includedir and libdir - --with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib - --without-libncurses-prefix don't search for libncurses in includedir and libdir - --with-libtermcap-prefix[=DIR] search for libtermcap in DIR/include and DIR/lib - --without-libtermcap-prefix don't search for libtermcap in includedir and libdir - --with-libxcurses-prefix[=DIR] search for libxcurses in DIR/include and DIR/lib - --without-libxcurses-prefix don't search for libxcurses in includedir and libdir - --with-libcurses-prefix[=DIR] search for libcurses in DIR/include and DIR/lib - --without-libcurses-prefix don't search for libcurses in includedir and libdir - --without-included-regex don't compile regex; this is the default on - systems with version 2 of the GNU C library - (use with caution on other system) - --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib - --without-libexpat-prefix don't search for libexpat in includedir and libdir + --with-libxml2-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libxml2-prefix don't search for PACKLIBS in includedir and libdir + --with-libncurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libncurses-prefix don't search for PACKLIBS in includedir and libdir + --with-libtermcap-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libtermcap-prefix don't search for PACKLIBS in includedir and libdir + --with-libxcurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libxcurses-prefix don't search for PACKLIBS in includedir and libdir + --with-libcurses-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libcurses-prefix don't search for PACKLIBS in includedir and libdir + --without-included-regex + don't compile regex; this is the default on systems + with recent-enough versions of the GNU C Library + (use with caution on other systems). + --with-libexpat-prefix[=DIR] search for PACKLIBS in DIR/include and DIR/lib + --without-libexpat-prefix don't search for PACKLIBS in includedir and libdir --with-lispdir override the default lisp directory --without-emacs do not use Emacs, don't install po-mode + --without-git don't use git to compress the infrastructure archive + --with-cvs use cvs to compress the infrastructure archive + (deprecated) Some influential environment variables: CC C compiler command @@ -1327,28 +1404,27 @@ LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags YACC The `Yet Another C Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags GCJ Java native code compiler command GCJFLAGS Java native code compiler flags EMACS the Emacs editor command EMACSLOADPATH the Emacs library search path + CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. +Report bugs to the package provider. _ACEOF ac_status=$? fi @@ -1356,15 +1432,17 @@ if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1400,7 +1478,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1410,21 +1488,24 @@ if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.61 +generated by GNU Autoconf 2.65 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -1460,8 +1541,8 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS } >&5 @@ -1495,12 +1576,12 @@ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else @@ -1516,13 +1597,13 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args '$ac_arg'" + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there @@ -1547,12 +1628,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -1581,9 +1663,9 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - echo "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo @@ -1598,9 +1680,9 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - echo "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi @@ -1616,83 +1698,88 @@ echo fi test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h +$as_echo "/* confdefs.h */" > confdefs.h + # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + # Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" + ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site fi -shift -for ac_site_file +for ac_site_file in "$ac_site_file1" "$ac_site_file2" do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -1706,60 +1793,56 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -1771,24 +1854,16 @@ ac_aux_dir= for ac_dir in build-aux "$srcdir"/build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done done if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -1801,7 +1876,13 @@ . $srcdir/version.sh -am__api_version='1.10' + + + + + + +am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1816,22 +1897,23 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -1849,17 +1931,29 @@ # program-specific install script used by HP pwplus--don't use. : else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi fi fi done done ;; esac -done + + done IFS=$as_save_IFS +rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then @@ -1872,8 +1966,8 @@ INSTALL=$ac_install_sh fi fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -1883,21 +1977,34 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ @@ -1907,11 +2014,8 @@ # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file @@ -1920,52 +2024,162 @@ # Ok. : else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. +# Double any \ or $. # By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do + for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( @@ -1977,11 +2191,12 @@ esac done done -done + done IFS=$as_save_IFS fi + test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else @@ -1989,12 +2204,11 @@ # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in @@ -2006,10 +2220,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -2019,36 +2233,37 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi test -n "$AWK" && break done -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh @@ -2065,12 +2280,12 @@ rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -2083,15 +2298,27 @@ fi rmdir .tst 2>/dev/null -if test "`cd $srcdir && pwd`" != "`pwd`"; then +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=1;; +esac +AM_BACKSLASH='\' + + + + if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi @@ -2106,19 +2333,10 @@ # Define the identity of the package. - PACKAGE=gettext - VERSION=$VERSION_NUMBER - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF + PACKAGE='' + VERSION='' -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} @@ -2135,121 +2353,32 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +AMTAR=${AMTAR-"${am_missing_run}tar"} -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + PACKAGE=gettext -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. + VERSION=$VERSION_NUMBER -AMTAR=${AMTAR-"${am_missing_run}tar"} -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF @@ -2261,40 +2390,34 @@ -subdirs="$subdirs autoconf-lib-link gettext-runtime gettext-tools" + + +subdirs="$subdirs gettext-runtime gettext-tools" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' @@ -2310,28 +2433,24 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' @@ -2347,72 +2466,9 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; -fi - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; -fi - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; -fi - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; -fi - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; -fi - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - - - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; -fi - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; fi @@ -2420,180 +2476,153 @@ - - - - # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then +if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then +if test "${enable_java+set}" = set; then : enableval=$enable_java; fi # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then +if test "${enable_native_java+set}" = set; then : enableval=$enable_native_java; fi # Check whether --enable-csharp was given. -if test "${enable_csharp+set}" = set; then +if test "${enable_csharp+set}" = set; then : enableval=$enable_csharp; fi # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then +if test "${enable_shared+set}" = set; then : enableval=$enable_shared; fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then +if test "${enable_static+set}" = set; then : enableval=$enable_static; fi -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; -fi - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; -fi - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then +if test "${with_pic+set}" = set; then : withval=$with_pic; fi -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; fi - - - - - - - # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; fi - - - +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then +if test "${enable_nls+set}" = set; then : enableval=$enable_nls; fi # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then +if test "${enable_threads+set}" = set; then : enableval=$enable_threads; fi # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; fi # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then +if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; fi # Check whether --with-libpth-prefix was given. -if test "${with_libpth_prefix+set}" = set; then +if test "${with_libpth_prefix+set}" = set; then : withval=$with_libpth_prefix; fi # Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then +if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; fi # Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then +if test "${with_included_gettext+set}" = set; then : withval=$with_included_gettext; fi # Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then +if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; fi # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then +if test "${enable_java+set}" = set; then : enableval=$enable_java; fi # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then +if test "${enable_native_java+set}" = set; then : enableval=$enable_native_java; fi # Check whether --enable-relocatable was given. -if test "${enable_relocatable+set}" = set; then +if test "${enable_relocatable+set}" = set; then : enableval=$enable_relocatable; fi # Check whether --enable-libasprintf was given. -if test "${enable_libasprintf+set}" = set; then +if test "${enable_libasprintf+set}" = set; then : enableval=$enable_libasprintf; fi +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then +if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then +if test "${enable_java+set}" = set; then : enableval=$enable_java; fi # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then +if test "${enable_native_java+set}" = set; then : enableval=$enable_native_java; fi @@ -2602,223 +2631,229 @@ # Check whether --enable-csharp was given. -if test "${enable_csharp+set}" = set; then +if test "${enable_csharp+set}" = set; then : enableval=$enable_csharp; fi # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then +if test "${enable_threads+set}" = set; then : enableval=$enable_threads; fi # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then +if test "${enable_shared+set}" = set; then : enableval=$enable_shared; fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then +if test "${enable_static+set}" = set; then : enableval=$enable_static; fi -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; -fi - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; -fi - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then +if test "${with_pic+set}" = set; then : withval=$with_pic; fi -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - - -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; +# Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; fi - - - - - - - # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; fi - - - +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then +if test "${enable_nls+set}" = set; then : enableval=$enable_nls; fi # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; fi # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then +if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; fi # Check whether --with-libpth-prefix was given. -if test "${with_libpth_prefix+set}" = set; then +if test "${with_libpth_prefix+set}" = set; then : withval=$with_libpth_prefix; fi # Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then +if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; fi # Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then +if test "${with_included_gettext+set}" = set; then : withval=$with_included_gettext; fi # Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then +if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; fi +# Check whether --enable-acl was given. +if test "${enable_acl+set}" = set; then : + enableval=$enable_acl; +fi + # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then +if test "${enable_java+set}" = set; then : enableval=$enable_java; fi # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then +if test "${enable_native_java+set}" = set; then : enableval=$enable_native_java; fi # Check whether --with-included-glib was given. -if test "${with_included_glib+set}" = set; then +if test "${with_included_glib+set}" = set; then : withval=$with_included_glib; fi # Check whether --with-libglib-2.0-prefix was given. -if test "${with_libglib_2_0_prefix+set}" = set; then - withval=$with_libglib_2_0_prefix; +if test "${with_libglib_20_prefix+set}" = set; then : + withval=$with_libglib_20_prefix; fi # Check whether --with-included-libcroco was given. -if test "${with_included_libcroco+set}" = set; then +if test "${with_included_libcroco+set}" = set; then : withval=$with_included_libcroco; fi # Check whether --with-libcroco-0.6-prefix was given. -if test "${with_libcroco_0_6_prefix+set}" = set; then - withval=$with_libcroco_0_6_prefix; +if test "${with_libcroco_06_prefix+set}" = set; then : + withval=$with_libcroco_06_prefix; fi # Check whether --with-included-glib was given. -if test "${with_included_glib+set}" = set; then +if test "${with_included_glib+set}" = set; then : withval=$with_included_glib; fi # Check whether --with-libglib-2.0-prefix was given. -if test "${with_libglib_2_0_prefix+set}" = set; then - withval=$with_libglib_2_0_prefix; +if test "${with_libglib_20_prefix+set}" = set; then : + withval=$with_libglib_20_prefix; +fi + + +# Check whether --with-included-libunistring was given. +if test "${with_included_libunistring+set}" = set; then : + withval=$with_included_libunistring; +fi + + +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; +fi + + +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; +fi + + +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; fi # Check whether --with-included-libxml was given. -if test "${with_included_libxml+set}" = set; then +if test "${with_included_libxml+set}" = set; then : withval=$with_included_libxml; fi # Check whether --with-libxml2-prefix was given. -if test "${with_libxml2_prefix+set}" = set; then +if test "${with_libxml2_prefix+set}" = set; then : withval=$with_libxml2_prefix; fi # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then +if test "${enable_openmp+set}" = set; then : enableval=$enable_openmp; fi # Check whether --enable-relocatable was given. -if test "${enable_relocatable+set}" = set; then +if test "${enable_relocatable+set}" = set; then : enableval=$enable_relocatable; fi # Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then +if test "${enable_largefile+set}" = set; then : enableval=$enable_largefile; fi +# Check whether --enable-curses was given. +if test "${enable_curses+set}" = set; then : + enableval=$enable_curses; +fi + # Check whether --with-libncurses-prefix was given. -if test "${with_libncurses_prefix+set}" = set; then +if test "${with_libncurses_prefix+set}" = set; then : withval=$with_libncurses_prefix; fi # Check whether --with-libtermcap-prefix was given. -if test "${with_libtermcap_prefix+set}" = set; then +if test "${with_libtermcap_prefix+set}" = set; then : withval=$with_libtermcap_prefix; fi # Check whether --with-libxcurses-prefix was given. -if test "${with_libxcurses_prefix+set}" = set; then +if test "${with_libxcurses_prefix+set}" = set; then : withval=$with_libxcurses_prefix; fi # Check whether --with-libcurses-prefix was given. -if test "${with_libcurses_prefix+set}" = set; then +if test "${with_libcurses_prefix+set}" = set; then : withval=$with_libcurses_prefix; fi # Check whether --with-included-regex was given. -if test "${with_included_regex+set}" = set; then +if test "${with_included_regex+set}" = set; then : withval=$with_included_regex; fi # Check whether --with-libexpat-prefix was given. -if test "${with_libexpat_prefix+set}" = set; then +if test "${with_libexpat_prefix+set}" = set; then : withval=$with_libexpat_prefix; fi @@ -2826,17 +2861,42 @@ # Check whether --with-lispdir was given. -if test "${with_lispdir+set}" = set; then +if test "${with_lispdir+set}" = set; then : withval=$with_lispdir; fi # Check whether --with-emacs was given. -if test "${with_emacs+set}" = set; then +if test "${with_emacs+set}" = set; then : withval=$with_emacs; fi +# Check whether --with-git was given. +if test "${with_git+set}" = set; then : + withval=$with_git; +fi + + +# Check whether --with-cvs was given. +if test "${with_cvs+set}" = set; then : + withval=$with_cvs; +fi + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; +fi @@ -2873,12 +2933,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -2886,8 +2947,8 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" @@ -2910,12 +2971,12 @@ if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -2932,6 +2993,12 @@ # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g @@ -2961,11 +3028,11 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -2973,12 +3040,15 @@ + : ${CONFIG_STATUS=./config.status} +ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -2988,59 +3058,79 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -3049,20 +3139,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -3073,32 +3161,111 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi -done + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -3112,13 +3279,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -3133,104 +3304,103 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -3247,12 +3417,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -3267,13 +3437,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +This file was extended by gettext $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -3286,40 +3462,50 @@ _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTIONS] [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE Configuration files: $config_files -Report bugs to ." +Report bugs to the package provider." _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +gettext config.status +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" -Copyright (C) 2006 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -3327,11 +3513,12 @@ srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do @@ -3353,25 +3540,29 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; + $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -3386,30 +3577,32 @@ fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + exec "\$@" fi _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - echo "$ac_log" + $as_echo "$ac_log" } >&5 _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets @@ -3418,9 +3611,7 @@ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "gnulib-local/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-local/Makefile" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -3445,7 +3636,7 @@ trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. @@ -3456,152 +3647,139 @@ { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then -_ACEOF +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -subdirs!$subdirs$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -CPP!$CPP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -YACC!$YACC$ac_delim -YFLAGS!$YFLAGS$ac_delim -GCJ!$GCJ$ac_delim -GCJFLAGS!$GCJFLAGS$ac_delim -EMACS!$EMACS$ac_delim -EMACSLOADPATH!$EMACSLOADPATH$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done +rm -f conf$$subs.sh -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and @@ -3618,20 +3796,20 @@ }' fi -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" -for ac_tag in :F $CONFIG_FILES +eval set X " :F $CONFIG_FILES " +shift +for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -3659,26 +3837,34 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - ac_file_inputs="$ac_file_inputs $ac_f" + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -3688,42 +3874,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | +$as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -3741,20 +3892,15 @@ q } s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -3799,12 +3945,12 @@ esac _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { +ac_sed_dataroot=' +/datarootdir/ { p q } @@ -3812,36 +3958,37 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' $ac_file_inputs` in +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t +s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t @@ -3852,21 +3999,24 @@ s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; @@ -3876,11 +4026,13 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -3900,7 +4052,7 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? fi # @@ -3908,7 +4060,8 @@ # if test "$no_recursion" != yes; then - # Remove --cache-file and --srcdir arguments so they do not pile up. + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" @@ -3937,11 +4090,13 @@ ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; + --disable-option-checking) + ;; *) case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done @@ -3949,7 +4104,7 @@ # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" @@ -3958,6 +4113,10 @@ ac_sub_configure_args="--silent $ac_sub_configure_args" fi + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue @@ -3966,57 +4125,17 @@ test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - echo "$as_me:$LINENO: $ac_msg" >&5 - echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -4055,8 +4174,8 @@ # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else - { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 -echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -4069,17 +4188,19 @@ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 -echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi diff -Nru gettext-0.17/configure.ac gettext-0.18.1.1/configure.ac --- gettext-0.17/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/configure.ac 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ dnl Configuration for the toplevel directory of GNU gettext -dnl Copyright (C) 1995-1999, 2000-2003, 2005-2006 Free Software Foundation, Inc. +dnl Copyright (C) 1995-1999, 2000-2003, 2005-2006, 2009-2010 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -16,12 +16,13 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.57) +AC_PREREQ([2.59]) AC_INIT -AC_CONFIG_SRCDIR(gettext-tools/src/msgfmt.c) -AC_CONFIG_AUX_DIR(build-aux) +AC_CONFIG_SRCDIR([gettext-tools/src/msgfmt.c]) +AC_CONFIG_AUX_DIR([build-aux]) . $srcdir/version.sh -AM_INIT_AUTOMAKE(gettext, $VERSION_NUMBER) +gl_INIT_PACKAGE([gettext], [$VERSION_NUMBER]) +AM_INIT_AUTOMAKE([silent-rules]) dnl Override automake's tar command used for creating distributions. am__tar='${AMTAR} chof - --owner=root --group=root "$$tardir"' @@ -36,7 +37,7 @@ dnl Checks for library functions. -AC_CONFIG_SUBDIRS(autoconf-lib-link gettext-runtime gettext-tools) +AC_CONFIG_SUBDIRS([gettext-runtime gettext-tools]) dnl Ensure that "configure --help" lists all the command line options that dnl are usable with the subdir configures. Really AC_CONFIG_SUBDIRS should @@ -46,7 +47,7 @@ dnl Optional Features: AC_ARG_ENABLE calls dnl Optional Packages: AC_ARG_WITH calls dnl Some influential environment variables: AC_ARG_VAR calls -esyscmd([{ cd autoconf-lib-link && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; cd gettext-runtime && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; cd gettext-tools && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; } | sed -f build-aux/ac-help.sed ]) +esyscmd([{ cd gettext-runtime && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; cd gettext-tools && autoconf --trace=AC_ARG_ENABLE:'$n([$1],[$2])' --trace=AC_ARG_WITH:'$n([$1],[$2])' --trace=AC_ARG_VAR:'$n($@)' && cd ..; } | sed -f build-aux/ac-help.sed ]) AC_CONFIG_FILES([Makefile]) diff -Nru gettext-0.17/debian/50gettext.el gettext-0.18.1.1/debian/50gettext.el --- gettext-0.17/debian/50gettext.el 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/50gettext.el 2010-08-01 21:50:09.000000000 +0000 @@ -1,3 +1,5 @@ +(if (not (file-exists-p "/usr/share/emacs/site-lisp/gettext")) + (message "Package gettext-el removed but not purged. Skipping setup.") (setq auto-mode-alist (cons '("\\.po[tx]?\\'\\|\\.po\\." . po-mode) auto-mode-alist)) (autoload 'po-mode "gettext/po-mode" @@ -8,3 +10,4 @@ (if (fboundp 'modify-coding-system-alist) (modify-coding-system-alist 'file "\\.po[tx]?\\'\\|\\.po\\." 'po-find-file-coding-system)) +) diff -Nru gettext-0.17/debian/changelog gettext-0.18.1.1/debian/changelog --- gettext-0.17/debian/changelog 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/changelog 2011-06-12 21:13:37.000000000 +0000 @@ -1,3 +1,118 @@ +gettext (0.18.1.1-1ubuntu2~ppa1~lucid1) lucid; urgency=low + + * Backport to Lucidbleed ppa. + + -- Nicola Ferralis Sun, 12 Jun 2011 17:13:09 -0400 + +gettext (0.18.1.1-1ubuntu2) maverick; urgency=low + + * debian/control: Drop autopoint recommends of gettext. It pulls in git and + other sizable packages which make the CDs explode. + + -- Martin Pitt Mon, 02 Aug 2010 15:45:46 +0200 + +gettext (0.18.1.1-1ubuntu1) maverick; urgency=low + + * Resynchronise with Debian. Remaining changes: + - Build Java components with gcj. + - Throw away /usr/lib/gettext/gnu.gettext*; we don't need them. + - Explicitly configure with --disable-csharp. + - Keep gettext.jar in /usr/share/gettext instead of moving it to + /usr/share/java. + * Bump Replaces on gettext and Conflicts on autopoint to (<< 0.18-1) + rather than (<= 0.17-11), to accommodate previous Ubuntu versions. + + -- Colin Watson Sun, 01 Aug 2010 16:50:03 -0500 + +gettext (0.18.1.1-1) unstable; urgency=low + + * New upstream release. + * Added Conflicts: autopoint (<= 0.17-11) to gettext, as the old dummy + autopoint had a dependency on gettext that should have been versioned + and the current gettext package no longer contains the autopoint script. + * Dropped cvs and rcs from Build-Depends. No longer needed. + * Dropped options --without-cvs and --with-git from ./configure call, + as those are now the default. + * Added Build-Depends: libunistring-dev. + + -- Santiago Vila Sun, 13 Jun 2010 14:34:30 +0200 + +gettext (0.18-1) unstable; urgency=low + + * New upstream release. + * When called with options --statistics and --verbose, msgfmt now prints + the filename as a prefix of the statistics line. Closes: #320174. + * Changed 50gettext.el to behave if gettext-el is removed but not purged. + Thanks to Kevin Ryde. Closes: #422664. + * Fixed infinite loop in po-previous-translated-entry. Closes: #496944. + * Makevars now allows passing options for msgmerge. Closes: #538137. + * autopoint now supports multiple PO directories. Closes: #538150. + * Upstream includes zh_CN translation. Closes: #559051. + * Lots of programs now support --color. Closes: #573704. + * Fixed xgettext problem with perl strings. Closes: #573770. + * Changed autopoint so that it uses git instead of cvs. As the autopoint + package was created to avoid gettext to depend on cvs, we are not going + to make gettext to depend on git now. Moreover, as packages using + autopoint and still having cvs in their build-depends would not work + anymore even if autopoint is still kept in the gettext package, this + effectively puts an end to the transition period: packages using + autopoint must build-depend on autopoint now. + * Do the actual move of autopoint stuff to the autopoint package. + * Applied patch from Bruno Haible to not publicize the builder's name + and email in the small git repository created for autopoint. + * Added cvs, rcs and git to build-depends, because of the above. + * Updated README.Debian to match current status of autopoint package. + * Removed way obsolete versioned Replaces everywhere, as we don't + support upgrades which skip releases. + + -- Santiago Vila Tue, 18 May 2010 13:52:36 +0200 + +gettext (0.17-11ubuntu1) maverick; urgency=low + + * Resynchronise with Debian (LP: #577744). Remaining changes: + - Build Java components with gcj. + - Throw away /usr/lib/gettext/gnu.gettext*; we don't need them. + - gettext-tools/src/write-catalog.c: + - Add missing "mode" parameter to fix FTBFS. + - Use autoconf's preferred shell when invoking config.status. + - Explicitly configure with --disable-csharp. + - Keep gettext.jar in /usr/share/gettext instead of moving it to + /usr/share/java. + * Convert Ubuntu direct source changes to quilt patches (u01 and u02). + + -- Felix Geyer Sun, 09 May 2010 10:05:58 +0200 + +gettext (0.17-11) unstable; urgency=low + + * Enable java on all architectures, by using default-jdk. + Thanks to Petr Salinger. Closes: #578602. + + -- Santiago Vila Fri, 23 Apr 2010 20:21:10 +0200 + +gettext (0.17-10) unstable; urgency=low + + * Switch to 3.0 (quilt) source format, 10 patches. + * Create an autopoint package. Packages using autopoint should now + build-depend on it and drop cvs if they don't use it directly. + After packages have been updated, the autopoint script will actually + be moved to the autopoint package. This procedure avoids breaking + affected packages during the transition period. + * gettext now recommends autopoint, not cvs. + * Rewrite of README.Debian to match reality. + * Added homepage. + + -- Santiago Vila Sun, 28 Feb 2010 17:43:26 +0100 + +gettext (0.17-9) unstable; urgency=low + + * Added several lintian overrides. + * Do not ship empty directories in /usr/share/locale. + * gettext-el: Update Depends to current emacs (emacs23). + * Disable java for hurd-i386, kfreebsd-amd64 and kfreebsd-i386, + as they don't have openjdk yet. Closes: #568390. + + -- Santiago Vila Sun, 14 Feb 2010 16:48:00 +0100 + gettext (0.17-8ubuntu3) lucid; urgency=low * rebuild rest of main for armel armv7/thumb2 optimization; diff -Nru gettext-0.17/debian/control gettext-0.18.1.1/debian/control --- gettext-0.17/debian/control 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/control 2010-08-02 13:45:39.000000000 +0000 @@ -1,17 +1,17 @@ Source: gettext Section: devel Priority: optional -Maintainer: Ubuntu Core Developers +Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Santiago Vila -Standards-Version: 3.8.3 -Build-Depends: libexpat1-dev, fastjar, default-jdk [!hppa], file, libncurses5-dev, libxml2-dev, libglib2.0-dev, libcroco3-dev +Standards-Version: 3.8.4 +Build-Depends: libexpat1-dev, fastjar, default-jdk, file, libncurses5-dev, libxml2-dev, libglib2.0-dev, libcroco3-dev, git (>= 1:1.7.0.5), libunistring-dev +Homepage: http://www.gnu.org/software/gettext/ Package: gettext-base Section: utils Priority: standard Architecture: any Depends: ${shlibs:Depends} -Replaces: gettext (<= 0.12.1-1) Provides: libasprintf0c2 Description: GNU Internationalization utilities for the base system This package includes the gettext and ngettext programs which allow @@ -20,9 +20,9 @@ Package: gettext Architecture: any Depends: ${shlibs:Depends}, gettext-base, dpkg (>= 1.15.4) | install-info -Recommends: curl | wget | lynx, cvs +Recommends: curl | wget | lynx +Conflicts: autopoint (<< 0.18-1) Suggests: gettext-doc -Replaces: gettext-base (<= 0.14.4-1) Provides: libgettextpo0, libasprintf-dev, libgettextpo-dev Description: GNU Internationalization utilities Interesting for authors or maintainers of other packages or programs @@ -31,8 +31,7 @@ Package: gettext-el Section: lisp Architecture: all -Depends: gettext, emacs22 | emacsen -Replaces: gettext (<= 0.10.40-3) +Depends: gettext, emacs23 | emacsen Description: Emacs po-mode for editing gettext .po files This package contains po-mode.el for easy .po editing using emacs. @@ -43,3 +42,17 @@ Description: Documentation for GNU gettext This package contains the HTML documentation for GNU gettext, as well as simple "hello world" examples in several programming languages. + +Package: autopoint +Section: devel +Priority: optional +Architecture: all +Depends: git (>= 1:1.7.0.5) | git-core +Replaces: gettext (<< 0.18-1) +Description: The autopoint program from GNU gettext + The `autopoint' program copies standard gettext infrastructure files + into a source package. It extracts from a macro call of the form + `AM_GNU_GETTEXT_VERSION(VERSION)', found in the package's + `configure.in' or `configure.ac' file, the gettext version used by the + package, and copies the infrastructure files belonging to this version + into the package. diff -Nru gettext-0.17/debian/copyright gettext-0.18.1.1/debian/copyright --- gettext-0.17/debian/copyright 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/copyright 2010-08-01 21:50:09.000000000 +0000 @@ -7,7 +7,7 @@ This release has been built using the sources from: -http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz +http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz The changes were fairly minimal, and consisted solely of adding various debian/* files to the distribution. @@ -15,7 +15,7 @@ Copyright and license for the gettext tools: -Copyright (C) 1995-2007 Free Software Foundation, Inc. +Copyright (C) 1995-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ Copyright and license for the libintl library: -Copyright (C) 1995-2007 Free Software Foundation, Inc. +Copyright (C) 1995-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published diff -Nru gettext-0.17/debian/gettext-base.lintian-overrides gettext-0.18.1.1/debian/gettext-base.lintian-overrides --- gettext-0.17/debian/gettext-base.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/gettext-base.lintian-overrides 2010-08-01 21:50:09.000000000 +0000 @@ -0,0 +1,9 @@ +# +# We would like to use just usr/bin/gettext but that's already taken. +# +gettext-base: script-with-language-extension usr/bin/gettext.sh +# +# gettext-base Provides libasprintf0c2, which is libasprintf0 +# after a C++ transition, so it's correct. +# +gettext-base: package-name-doesnt-match-sonames libasprintf0 diff -Nru gettext-0.17/debian/gettext.lintian-overrides gettext-0.18.1.1/debian/gettext.lintian-overrides --- gettext-0.17/debian/gettext.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/gettext.lintian-overrides 2010-08-01 21:50:09.000000000 +0000 @@ -0,0 +1,21 @@ +# +# This is not a development library in the usual sense, but a library to be +# preloaded. Usage is explained in section "Prioritizing messages". +# +gettext: ldconfig-symlink-missing-for-shlib usr/lib/libgnuintl.so.8 usr/lib/preloadable_libintl.so libgnuintl.so.8 +gettext: shlib-missing-in-control-file libgnuintl 8 for usr/lib/preloadable_libintl.so +# +# gettext Provides libgettextpo-dev, so yes, it is a dev-pkg. +# +gettext: non-dev-pkg-with-shlib-symlink usr/lib/libgettextpo.so.0.5.1 usr/lib/libgettextpo.so +# +# These libraries are for internal use only and should not be used by +# other programs. +# +gettext: shlib-missing-in-control-file libgettextsrc 0.18.1 for usr/lib/libgettextsrc-0.18.1.so +gettext: shlib-missing-in-control-file libgettextlib 0.18.1 for usr/lib/libgettextlib-0.18.1.so +# +# Only libgettextpo0 is to be used by other packages. +# gettext Provides libgettextpo0, so yes, it's correct. +# +gettext: package-name-doesnt-match-sonames libgettextlib-0.18.1 libgettextpo0 libgettextsrc-0.18.1 libgnuintl8 diff -Nru gettext-0.17/debian/patches/01-do-not-use-java-in-urlget gettext-0.18.1.1/debian/patches/01-do-not-use-java-in-urlget --- gettext-0.17/debian/patches/01-do-not-use-java-in-urlget 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/patches/01-do-not-use-java-in-urlget 2010-08-01 21:50:09.000000000 +0000 @@ -0,0 +1,16 @@ +From: Santiago Vila +Subject: Do not depend on libgcj4 +Bug-Debian: http://bugs.debian.org/292988 +X-Debian-version: 0.14.1-10 + +--- a/gettext-tools/src/urlget.c ++++ b/gettext-tools/src/urlget.c +@@ -267,7 +267,7 @@ + + #if USEJAVA + /* First try: using Java. */ +- { ++ if (0) { + const char *class_name = "gnu.gettext.GetURL"; + const char *gettextjexedir; + const char *gettextjar; diff -Nru gettext-0.17/debian/patches/99-config-guess-config-sub gettext-0.18.1.1/debian/patches/99-config-guess-config-sub --- gettext-0.17/debian/patches/99-config-guess-config-sub 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/patches/99-config-guess-config-sub 2010-08-01 21:50:09.000000000 +0000 @@ -0,0 +1,2508 @@ +From: Santiago Vila +Subject: Updated config.guess and config.sub +X-Debian-version: 0.17-8 + +--- a/gettext-tools/examples/hello-c++-kde/admin/config.guess ++++ b/gettext-tools/examples/hello-c++-kde/admin/config.guess +@@ -1,9 +1,10 @@ + #! /bin/sh + # Attempt to guess a canonical system name. + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +-# 2000, 2001, 2002 Free Software Foundation, Inc. ++# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 ++# Free Software Foundation, Inc. + +-timestamp='2002-10-21' ++timestamp='2010-04-03' + + # This file is free software; you can redistribute it and/or modify it + # under the terms of the GNU General Public License as published by +@@ -17,23 +18,25 @@ + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software +-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA ++# 02110-1301, USA. + # + # As a special exception to the GNU General Public License, if you + # distribute this file as part of a program that contains a + # configuration script generated by Autoconf, you may include it under + # the same distribution terms that you use for the rest of that program. + +-# Originally written by Per Bothner . +-# Please send patches to . Submit a context +-# diff and a properly formatted ChangeLog entry. ++ ++# Originally written by Per Bothner. Please send patches (context ++# diff format) to and include a ChangeLog ++# entry. + # + # This script attempts to guess a canonical system name similar to + # config.sub. If it succeeds, it prints the system name on stdout, and + # exits with 0. Otherwise, it exits with 1. + # +-# The plan is that this can be called by configure scripts if you +-# don't specify an explicit build system type. ++# You can get the latest version of this script from: ++# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + + me=`echo "$0" | sed -e 's,.*/,,'` + +@@ -53,8 +56,9 @@ + GNU config.guess ($timestamp) + + Originally written by Per Bothner. +-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +-Free Software Foundation, Inc. ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, ++2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free ++Software Foundation, Inc. + + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +@@ -66,11 +70,11 @@ + while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) +- echo "$timestamp" ; exit 0 ;; ++ echo "$timestamp" ; exit ;; + --version | -v ) +- echo "$version" ; exit 0 ;; ++ echo "$version" ; exit ;; + --help | --h* | -h ) +- echo "$usage"; exit 0 ;; ++ echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. +@@ -88,7 +92,7 @@ + exit 1 + fi + +-trap 'exit 1' 1 2 15 ++trap 'exit 1' HUP INT TERM + + # CC_FOR_BUILD -- compiler used by this script. Note that the use of a + # compiler to aid in system detection is discouraged as it requires +@@ -98,14 +102,18 @@ + # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still + # use `HOST_CC' if defined, but it is deprecated. + +-# This shell variable is my proudest work .. or something. --bje ++# Portable tmp directory creation inspired by the Autoconf team. + +-set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; +-(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) +- || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; +-dummy=$tmpdir/dummy ; +-files="$dummy.c $dummy.o $dummy.rel $dummy" ; +-trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; ++set_cc_for_build=' ++trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; ++trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; ++: ${TMPDIR=/tmp} ; ++ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || ++ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || ++ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || ++ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; ++dummy=$tmp/dummy ; ++tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; + case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do +@@ -113,15 +121,13 @@ + CC_FOR_BUILD="$c"; break ; + fi ; + done ; +- rm -f $files ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +-esac ; +-unset files' ++esac ; set_cc_for_build= ;' + + # This is needed to find uname on a Pyramid OSx when run in the BSD universe. + # (ghazi@noc.rutgers.edu 1994-08-24) +@@ -156,6 +162,7 @@ + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; ++ sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched +@@ -164,7 +171,7 @@ + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep __ELF__ >/dev/null ++ | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? +@@ -178,144 +185,128 @@ + ;; + esac + # The OS release +- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ++ # Debian GNU/NetBSD machines have a different userland, and ++ # thus, need a distinct triplet. However, they do not need ++ # kernel version information, so it can be replaced with a ++ # suitable tag, in the style of linux-gnu. ++ case "${UNAME_VERSION}" in ++ Debian*) ++ release='-gnu' ++ ;; ++ *) ++ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ++ ;; ++ esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" +- exit 0 ;; +- amiga:OpenBSD:*:*) +- echo m68k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- arc:OpenBSD:*:*) +- echo mipsel-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- hp300:OpenBSD:*:*) +- echo m68k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- mac68k:OpenBSD:*:*) +- echo m68k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- macppc:OpenBSD:*:*) +- echo powerpc-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- mvme68k:OpenBSD:*:*) +- echo m68k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- mvme88k:OpenBSD:*:*) +- echo m88k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- mvmeppc:OpenBSD:*:*) +- echo powerpc-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- pmax:OpenBSD:*:*) +- echo mipsel-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- sgi:OpenBSD:*:*) +- echo mipseb-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- sun3:OpenBSD:*:*) +- echo m68k-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; +- wgrisc:OpenBSD:*:*) +- echo mipsel-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:OpenBSD:*:*) +- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} +- exit 0 ;; ++ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` ++ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} ++ exit ;; ++ *:ekkoBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} ++ exit ;; ++ *:SolidBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} ++ exit ;; ++ macppc:MirBSD:*:*) ++ echo powerpc-unknown-mirbsd${UNAME_RELEASE} ++ exit ;; ++ *:MirBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} ++ exit ;; + alpha:OSF1:*:*) +- if test $UNAME_RELEASE = "V4.0"; then ++ case $UNAME_RELEASE in ++ *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` +- fi ++ ;; ++ *5.*) ++ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ++ ;; ++ esac ++ # According to Compaq, /usr/sbin/psrinfo has been available on ++ # OSF/1 and Tru64 systems produced since 1995. I hope that ++ # covers most systems running today. This code pipes the CPU ++ # types through head -n 1, so we only detect the type of CPU 0. ++ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` ++ case "$ALPHA_CPU_TYPE" in ++ "EV4 (21064)") ++ UNAME_MACHINE="alpha" ;; ++ "EV4.5 (21064)") ++ UNAME_MACHINE="alpha" ;; ++ "LCA4 (21066/21068)") ++ UNAME_MACHINE="alpha" ;; ++ "EV5 (21164)") ++ UNAME_MACHINE="alphaev5" ;; ++ "EV5.6 (21164A)") ++ UNAME_MACHINE="alphaev56" ;; ++ "EV5.6 (21164PC)") ++ UNAME_MACHINE="alphapca56" ;; ++ "EV5.7 (21164PC)") ++ UNAME_MACHINE="alphapca57" ;; ++ "EV6 (21264)") ++ UNAME_MACHINE="alphaev6" ;; ++ "EV6.7 (21264A)") ++ UNAME_MACHINE="alphaev67" ;; ++ "EV6.8CB (21264C)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.8AL (21264B)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.8CX (21264D)") ++ UNAME_MACHINE="alphaev68" ;; ++ "EV6.9A (21264/EV69A)") ++ UNAME_MACHINE="alphaev69" ;; ++ "EV7 (21364)") ++ UNAME_MACHINE="alphaev7" ;; ++ "EV7.9 (21364A)") ++ UNAME_MACHINE="alphaev79" ;; ++ esac ++ # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. +- eval $set_cc_for_build +- cat <$dummy.s +- .data +-\$Lformat: +- .byte 37,100,45,37,120,10,0 # "%d-%x\n" +- +- .text +- .globl main +- .align 4 +- .ent main +-main: +- .frame \$30,16,\$26,0 +- ldgp \$29,0(\$27) +- .prologue 1 +- .long 0x47e03d80 # implver \$0 +- lda \$2,-1 +- .long 0x47e20c21 # amask \$2,\$1 +- lda \$16,\$Lformat +- mov \$0,\$17 +- not \$1,\$18 +- jsr \$26,printf +- ldgp \$29,0(\$26) +- mov 0,\$16 +- jsr \$26,exit +- .end main +-EOF +- $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null +- if test "$?" = 0 ; then +- case `$dummy` in +- 0-0) +- UNAME_MACHINE="alpha" +- ;; +- 1-0) +- UNAME_MACHINE="alphaev5" +- ;; +- 1-1) +- UNAME_MACHINE="alphaev56" +- ;; +- 1-101) +- UNAME_MACHINE="alphapca56" +- ;; +- 2-303) +- UNAME_MACHINE="alphaev6" +- ;; +- 2-307) +- UNAME_MACHINE="alphaev67" +- ;; +- 2-1307) +- UNAME_MACHINE="alphaev68" +- ;; +- 3-1307) +- UNAME_MACHINE="alphaev7" +- ;; +- esac +- fi +- rm -f $dummy.s $dummy && rmdir $tmpdir +- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` +- exit 0 ;; ++ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` ++ exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix +- exit 0 ;; ++ exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 +- exit 0 ;; ++ exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 +- exit 0;; ++ exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos +- exit 0 ;; ++ exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos +- exit 0 ;; ++ exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition +- exit 0 ;; ++ exit ;; ++ *:z/VM:*:*) ++ echo s390-ibm-zvmoe ++ exit ;; ++ *:OS400:*:*) ++ echo powerpc-ibm-os400 ++ exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} +- exit 0;; ++ exit ;; ++ arm:riscos:*:*|arm:RISCOS:*:*) ++ echo arm-unknown-riscos ++ exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp +- exit 0;; ++ exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then +@@ -323,29 +314,51 @@ + else + echo pyramid-pyramid-bsd + fi +- exit 0 ;; ++ exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 +- exit 0 ;; +- DRS?6000:UNIX_SV:4.2*:7*) ++ exit ;; ++ DRS?6000:unix:4.0:6*) ++ echo sparc-icl-nx6 ++ exit ;; ++ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in +- sparc) echo sparc-icl-nx7 && exit 0 ;; ++ sparc) echo sparc-icl-nx7; exit ;; + esac ;; ++ s390x:SunOS:*:*) ++ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` +- exit 0 ;; ++ exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` +- exit 0 ;; +- i86pc:SunOS:5.*:*) +- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` +- exit 0 ;; ++ exit ;; ++ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) ++ echo i386-pc-auroraux${UNAME_RELEASE} ++ exit ;; ++ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) ++ eval $set_cc_for_build ++ SUN_ARCH="i386" ++ # If there is a compiler, see if it is configured for 64-bit objects. ++ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. ++ # This test works for both compilers. ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_64BIT_ARCH >/dev/null ++ then ++ SUN_ARCH="x86_64" ++ fi ++ fi ++ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` +- exit 0 ;; ++ exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) +@@ -354,10 +367,10 @@ + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` +- exit 0 ;; ++ exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 +@@ -369,10 +382,10 @@ + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac +- exit 0 ;; ++ exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor +@@ -383,37 +396,40 @@ + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; ++ m68k:machten:*:*) ++ echo m68k-apple-machten${UNAME_RELEASE} ++ exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 +- exit 0 ;; ++ exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +@@ -437,33 +453,33 @@ + exit (-1); + } + EOF +- $CC_FOR_BUILD -o $dummy $dummy.c \ +- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ +- && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +- rm -f $dummy.c $dummy && rmdir $tmpdir ++ $CC_FOR_BUILD -o $dummy $dummy.c && ++ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && ++ SYSTEM_NAME=`$dummy $dummyarg` && ++ { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax +- exit 0 ;; ++ exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax +- exit 0 ;; +- Night_Hawk:*:*:PowerMAX_OS) ++ exit ;; ++ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax +- exit 0 ;; ++ exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix +- exit 0 ;; ++ exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 +- exit 0 ;; ++ exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 +- exit 0 ;; ++ exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 +- exit 0 ;; ++ exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` +@@ -479,29 +495,29 @@ + else + echo i586-dg-dgux${UNAME_RELEASE} + fi +- exit 0 ;; ++ exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 +- exit 0 ;; ++ exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 +- exit 0 ;; ++ exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 +- exit 0 ;; ++ exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd +- exit 0 ;; ++ exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` +- exit 0 ;; ++ exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. +- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id +- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' ++ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id ++ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix +- exit 0 ;; ++ exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` +@@ -509,7 +525,7 @@ + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} +- exit 0 ;; ++ exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build +@@ -524,16 +540,19 @@ + exit(0); + } + EOF +- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +- rm -f $dummy.c $dummy && rmdir $tmpdir +- echo rs6000-ibm-aix3.2.5 ++ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` ++ then ++ echo "$SYSTEM_NAME" ++ else ++ echo rs6000-ibm-aix3.2.5 ++ fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi +- exit 0 ;; +- *:AIX:*:[45]) ++ exit ;; ++ *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 +@@ -546,28 +565,28 @@ + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} +- exit 0 ;; ++ exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix +- exit 0 ;; ++ exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 +- exit 0 ;; ++ exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to +- exit 0 ;; # report: romp-ibm BSD 4.3 ++ exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx +- exit 0 ;; ++ exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 +- exit 0 ;; ++ exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd +- exit 0 ;; ++ exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 +- exit 0 ;; ++ exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in +@@ -624,16 +643,36 @@ + } + EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` +- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi +- rm -f $dummy.c $dummy && rmdir $tmpdir ++ test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac ++ if [ ${HP_ARCH} = "hppa2.0w" ] ++ then ++ eval $set_cc_for_build ++ ++ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating ++ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler ++ # generating 64-bit code. GNU and HP use different nomenclature: ++ # ++ # $ CC_FOR_BUILD=cc ./config.guess ++ # => hppa2.0w-hp-hpux11.23 ++ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess ++ # => hppa64-hp-hpux11.23 ++ ++ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | ++ grep -q __LP64__ ++ then ++ HP_ARCH="hppa2.0w" ++ else ++ HP_ARCH="hppa64" ++ fi ++ fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} +- exit 0 ;; ++ exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} +- exit 0 ;; ++ exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +@@ -661,186 +700,248 @@ + exit (0); + } + EOF +- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +- rm -f $dummy.c $dummy && rmdir $tmpdir ++ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && ++ { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 +- exit 0 ;; ++ exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd +- exit 0 ;; ++ exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd +- exit 0 ;; ++ exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix +- exit 0 ;; ++ exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf +- exit 0 ;; ++ exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf +- exit 0 ;; ++ exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi +- exit 0 ;; ++ exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites +- exit 0 ;; ++ exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd +- exit 0 ;; ++ exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi +- exit 0 ;; ++ exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd +- exit 0 ;; ++ exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd +- exit 0 ;; ++ exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd +- exit 0 ;; ++ exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' +- exit 0 ;; ++ exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' +- exit 0 ;; ++ exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' +- exit 0 ;; +- CRAY*T3D:*:*:*) +- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' +- exit 0 ;; ++ exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' +- exit 0 ;; ++ exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' +- exit 0 ;; ++ exit ;; ++ *:UNICOS/mp:*:*) ++ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' ++ exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" +- exit 0 ;; ++ exit ;; ++ 5000:UNIX_System_V:4.*:*) ++ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` ++ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` ++ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" ++ exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:FreeBSD:*:*) +- # Determine whether the default compiler uses glibc. +- eval $set_cc_for_build +- sed 's/^ //' << EOF >$dummy.c +- #include +- #if __GLIBC__ >= 2 +- LIBC=gnu +- #else +- LIBC= +- #endif +-EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` +- rm -f $dummy.c && rmdir $tmpdir +- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} +- exit 0 ;; ++ case ${UNAME_MACHINE} in ++ pc98) ++ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ amd64) ++ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ *) ++ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ esac ++ exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin +- exit 0 ;; +- i*:MINGW*:*) ++ exit ;; ++ *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 +- exit 0 ;; ++ exit ;; ++ i*:windows32*:*) ++ # uname -m includes "-pc" on this system. ++ echo ${UNAME_MACHINE}-mingw32 ++ exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 +- exit 0 ;; +- x86:Interix*:3*) +- echo i386-pc-interix3 +- exit 0 ;; ++ exit ;; ++ *:Interix*:*) ++ case ${UNAME_MACHINE} in ++ x86) ++ echo i586-pc-interix${UNAME_RELEASE} ++ exit ;; ++ authenticamd | genuineintel | EM64T) ++ echo x86_64-unknown-interix${UNAME_RELEASE} ++ exit ;; ++ IA64) ++ echo ia64-unknown-interix${UNAME_RELEASE} ++ exit ;; ++ esac ;; ++ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) ++ echo i${UNAME_MACHINE}-pc-mks ++ exit ;; ++ 8664:Windows_NT:*) ++ echo x86_64-pc-mks ++ exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? +- echo i386-pc-interix +- exit 0 ;; ++ echo i586-pc-interix ++ exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin +- exit 0 ;; ++ exit ;; ++ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) ++ echo x86_64-unknown-cygwin ++ exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin +- exit 0 ;; ++ exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` +- exit 0 ;; ++ exit ;; + *:GNU:*:*) ++ # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` +- exit 0 ;; ++ exit ;; ++ *:GNU/*:*:*) ++ # other systems with GNU libc and userland ++ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu ++ exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix +- exit 0 ;; ++ exit ;; ++ alpha:Linux:*:*) ++ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in ++ EV5) UNAME_MACHINE=alphaev5 ;; ++ EV56) UNAME_MACHINE=alphaev56 ;; ++ PCA56) UNAME_MACHINE=alphapca56 ;; ++ PCA57) UNAME_MACHINE=alphapca56 ;; ++ EV6) UNAME_MACHINE=alphaev6 ;; ++ EV67) UNAME_MACHINE=alphaev67 ;; ++ EV68*) UNAME_MACHINE=alphaev68 ;; ++ esac ++ objdump --private-headers /bin/sh | grep -q ld.so.1 ++ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi ++ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ++ exit ;; + arm*:Linux:*:*) ++ eval $set_cc_for_build ++ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ ++ | grep -q __ARM_EABI__ ++ then ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ else ++ echo ${UNAME_MACHINE}-unknown-linux-gnueabi ++ fi ++ exit ;; ++ avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu +- exit 0 ;; ++ exit ;; ++ cris:Linux:*:*) ++ echo cris-axis-linux-gnu ++ exit ;; ++ crisv32:Linux:*:*) ++ echo crisv32-axis-linux-gnu ++ exit ;; ++ frv:Linux:*:*) ++ echo frv-unknown-linux-gnu ++ exit ;; ++ i*86:Linux:*:*) ++ LIBC=gnu ++ eval $set_cc_for_build ++ sed 's/^ //' << EOF >$dummy.c ++ #ifdef __dietlibc__ ++ LIBC=dietlibc ++ #endif ++EOF ++ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ++ echo "${UNAME_MACHINE}-pc-linux-${LIBC}" ++ exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu +- exit 0 ;; ++ exit ;; ++ m32r*:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu +- exit 0 ;; +- mips:Linux:*:*) ++ exit ;; ++ mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU +- #undef mips +- #undef mipsel ++ #undef ${UNAME_MACHINE} ++ #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) +- CPU=mipsel ++ CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) +- CPU=mips ++ CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif + EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` +- rm -f $dummy.c && rmdir $tmpdir +- test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 ++ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` ++ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; +- ppc:Linux:*:*) +- echo powerpc-unknown-linux-gnu +- exit 0 ;; +- ppc64:Linux:*:*) +- echo powerpc64-unknown-linux-gnu +- exit 0 ;; +- alpha:Linux:*:*) +- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in +- EV5) UNAME_MACHINE=alphaev5 ;; +- EV56) UNAME_MACHINE=alphaev56 ;; +- PCA56) UNAME_MACHINE=alphapca56 ;; +- PCA57) UNAME_MACHINE=alphapca56 ;; +- EV6) UNAME_MACHINE=alphaev6 ;; +- EV67) UNAME_MACHINE=alphaev67 ;; +- EV68*) UNAME_MACHINE=alphaev68 ;; +- esac +- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null +- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi +- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} +- exit 0 ;; ++ or32:Linux:*:*) ++ echo or32-unknown-linux-gnu ++ exit ;; ++ padre:Linux:*:*) ++ echo sparc-unknown-linux-gnu ++ exit ;; ++ parisc64:Linux:*:* | hppa64:Linux:*:*) ++ echo hppa64-unknown-linux-gnu ++ exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in +@@ -848,82 +949,40 @@ + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac +- exit 0 ;; +- parisc64:Linux:*:* | hppa64:Linux:*:*) +- echo hppa64-unknown-linux-gnu +- exit 0 ;; ++ exit ;; ++ ppc64:Linux:*:*) ++ echo powerpc64-unknown-linux-gnu ++ exit ;; ++ ppc:Linux:*:*) ++ echo powerpc-unknown-linux-gnu ++ exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux +- exit 0 ;; ++ exit ;; ++ sh64*:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu +- exit 0 ;; ++ exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu +- exit 0 ;; ++ exit ;; ++ vax:Linux:*:*) ++ echo ${UNAME_MACHINE}-dec-linux-gnu ++ exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu +- exit 0 ;; +- i*86:Linux:*:*) +- # The BFD linker knows what the default object file format is, so +- # first see if it will tell us. cd to the root directory to prevent +- # problems with other programs or directories called `ld' in the path. +- # Set LC_ALL=C to ensure ld outputs messages in English. +- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ +- | sed -ne '/supported targets:/!d +- s/[ ][ ]*/ /g +- s/.*supported targets: *// +- s/ .*// +- p'` +- case "$ld_supported_targets" in +- elf32-i386) +- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" +- ;; +- a.out-i386-linux) +- echo "${UNAME_MACHINE}-pc-linux-gnuaout" +- exit 0 ;; +- coff-i386) +- echo "${UNAME_MACHINE}-pc-linux-gnucoff" +- exit 0 ;; +- "") +- # Either a pre-BFD a.out linker (linux-gnuoldld) or +- # one that does not give us useful --help. +- echo "${UNAME_MACHINE}-pc-linux-gnuoldld" +- exit 0 ;; +- esac +- # Determine whether the default compiler is a.out or elf +- eval $set_cc_for_build +- sed 's/^ //' << EOF >$dummy.c +- #include +- #ifdef __ELF__ +- # ifdef __GLIBC__ +- # if __GLIBC__ >= 2 +- LIBC=gnu +- # else +- LIBC=gnulibc1 +- # endif +- # else +- LIBC=gnulibc1 +- # endif +- #else +- #ifdef __INTEL_COMPILER +- LIBC=gnu +- #else +- LIBC=gnuaout +- #endif +- #endif +-EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` +- rm -f $dummy.c && rmdir $tmpdir +- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 +- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 +- ;; ++ exit ;; ++ xtensa*:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 +- exit 0 ;; ++ exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... +@@ -931,7 +990,27 @@ + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} +- exit 0 ;; ++ exit ;; ++ i*86:OS/2:*:*) ++ # If we were able to find `uname', then EMX Unix compatibility ++ # is probably installed. ++ echo ${UNAME_MACHINE}-pc-os2-emx ++ exit ;; ++ i*86:XTS-300:*:STOP) ++ echo ${UNAME_MACHINE}-unknown-stop ++ exit ;; ++ i*86:atheos:*:*) ++ echo ${UNAME_MACHINE}-unknown-atheos ++ exit ;; ++ i*86:syllable:*:*) ++ echo ${UNAME_MACHINE}-pc-syllable ++ exit ;; ++ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) ++ echo i386-unknown-lynxos${UNAME_RELEASE} ++ exit ;; ++ i*86:*DOS:*:*) ++ echo ${UNAME_MACHINE}-pc-msdosdjgpp ++ exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then +@@ -939,15 +1018,16 @@ + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi +- exit 0 ;; +- i*86:*:5:[78]*) ++ exit ;; ++ i*86:*:5:[678]*) ++ # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} +- exit 0 ;; ++ exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi +- exit 0 ;; ++ exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv +- exit 0 ;; ++ exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv +- exit 0 ;; +- M68*:*:R3V[567]*:*) +- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; +- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) ++ exit ;; ++ M680?0:D-NIX:5.3:*) ++ echo m68k-diab-dnix ++ exit ;; ++ M68*:*:R3V[5678]*:*) ++ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; ++ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && echo i486-ncr-sysv4.3${OS_REL} && exit 0 ++ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ +- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && echo i486-ncr-sysv4 && exit 0 ;; ++ && { echo i486-ncr-sysv4; exit; } ;; ++ NCR*:*:4.2:* | MPRAS*:*:4.2:*) ++ OS_REL='.3' ++ test -r /etc/.relid \ ++ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` ++ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ ++ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } ++ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ++ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 +- exit 0 ;; +- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) +- echo i386-unknown-lynxos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} +- exit 0 ;; +- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) ++ exit ;; ++ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 +- exit 0 ;; ++ exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 +- exit 0 ;; ++ exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` +@@ -1042,64 +1132,94 @@ + else + echo ns32k-sni-sysv + fi +- exit 0 ;; ++ exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 +- exit 0 ;; ++ exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 +- exit 0 ;; ++ exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 +- exit 0 ;; ++ exit ;; ++ i*86:VOS:*:*) ++ # From Paul.Green@stratus.com. ++ echo ${UNAME_MACHINE}-stratus-vos ++ exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos +- exit 0 ;; ++ exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 +- exit 0 ;; ++ exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi +- exit 0 ;; ++ exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos +- exit 0 ;; ++ exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos +- exit 0 ;; ++ exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos +- exit 0 ;; ++ exit ;; ++ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. ++ echo i586-pc-haiku ++ exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; ++ SX-7:SUPER-UX:*:*) ++ echo sx7-nec-superux${UNAME_RELEASE} ++ exit ;; ++ SX-8:SUPER-UX:*:*) ++ echo sx8-nec-superux${UNAME_RELEASE} ++ exit ;; ++ SX-8R:SUPER-UX:*:*) ++ echo sx8r-nec-superux${UNAME_RELEASE} ++ exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:Darwin:*:*) +- echo `uname -p`-apple-darwin${UNAME_RELEASE} +- exit 0 ;; ++ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown ++ case $UNAME_PROCESSOR in ++ i386) ++ eval $set_cc_for_build ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_64BIT_ARCH >/dev/null ++ then ++ UNAME_PROCESSOR="x86_64" ++ fi ++ fi ;; ++ unknown) UNAME_PROCESSOR=powerpc ;; ++ esac ++ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} ++ exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then +@@ -1107,22 +1227,25 @@ + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:QNX:*:4*) + echo i386-pc-qnx +- exit 0 ;; +- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) ++ exit ;; ++ NSE-?:NONSTOP_KERNEL:*:*) ++ echo nse-tandem-nsk${UNAME_RELEASE} ++ exit ;; ++ NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux +- exit 0 ;; ++ exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv +- exit 0 ;; ++ exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} +- exit 0 ;; ++ exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 +@@ -1133,36 +1256,50 @@ + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 +- exit 0 ;; +- i*86:OS/2:*:*) +- # If we were able to find `uname', then EMX Unix compatibility +- # is probably installed. +- echo ${UNAME_MACHINE}-pc-os2-emx +- exit 0 ;; ++ exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 +- exit 0 ;; ++ exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex +- exit 0 ;; ++ exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 +- exit 0 ;; ++ exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 +- exit 0 ;; ++ exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 +- exit 0 ;; ++ exit ;; + *:ITS:*:*) + echo pdp10-unknown-its +- exit 0 ;; +- i*86:XTS-300:*:STOP) +- echo ${UNAME_MACHINE}-unknown-stop +- exit 0 ;; +- i*86:atheos:*:*) +- echo ${UNAME_MACHINE}-unknown-atheos +- exit 0 ;; ++ exit ;; ++ SEI:*:*:SEIUX) ++ echo mips-sei-seiux${UNAME_RELEASE} ++ exit ;; ++ *:DragonFly:*:*) ++ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ++ exit ;; ++ *:*VMS:*:*) ++ UNAME_MACHINE=`(uname -p) 2>/dev/null` ++ case "${UNAME_MACHINE}" in ++ A*) echo alpha-dec-vms ; exit ;; ++ I*) echo ia64-dec-vms ; exit ;; ++ V*) echo vax-dec-vms ; exit ;; ++ esac ;; ++ *:XENIX:*:SysV) ++ echo i386-pc-xenix ++ exit ;; ++ i*86:skyos:*:*) ++ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' ++ exit ;; ++ i*86:rdos:*:*) ++ echo ${UNAME_MACHINE}-pc-rdos ++ exit ;; ++ i*86:AROS:*:*) ++ echo ${UNAME_MACHINE}-pc-aros ++ exit ;; + esac + + #echo '(No uname command or uname output not recognized.)' 1>&2 +@@ -1194,7 +1331,7 @@ + #endif + + #if defined (__arm) && defined (__acorn) && defined (__unix) +- printf ("arm-acorn-riscix"); exit (0); ++ printf ("arm-acorn-riscix\n"); exit (0); + #endif + + #if defined (hp300) && !defined (hpux) +@@ -1283,12 +1420,12 @@ + } + EOF + +-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +-rm -f $dummy.c $dummy && rmdir $tmpdir ++$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && ++ { echo "$SYSTEM_NAME"; exit; } + + # Apollos put the system type in the environment. + +-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } ++test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + + # Convex versions that predate uname can use getsysinfo(1) + +@@ -1297,22 +1434,22 @@ + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd +- exit 0 ;; ++ exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi +- exit 0 ;; ++ exit ;; + c34*) + echo c34-convex-bsd +- exit 0 ;; ++ exit ;; + c38*) + echo c38-convex-bsd +- exit 0 ;; ++ exit ;; + c4*) + echo c4-convex-bsd +- exit 0 ;; ++ exit ;; + esac + fi + +@@ -1323,7 +1460,9 @@ + the operating system you are using. It is advised that you + download the most up to date version of the config scripts from + +- ftp://ftp.gnu.org/pub/gnu/config/ ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD ++and ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + + If the version you run ($0) is already up to date, please + send the following data and any information you think might be +--- a/gettext-tools/examples/hello-c++-kde/admin/config.sub ++++ b/gettext-tools/examples/hello-c++-kde/admin/config.sub +@@ -1,9 +1,10 @@ + #! /bin/sh + # Configuration validation subroutine script. + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +-# 2000, 2001, 2002 Free Software Foundation, Inc. ++# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 ++# Free Software Foundation, Inc. + +-timestamp='2002-09-05' ++timestamp='2010-05-21' + + # This file is (in principle) common to ALL GNU software. + # The presence of a machine in this file suggests that SOME GNU software +@@ -21,22 +22,26 @@ + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, write to the Free Software +-# Foundation, Inc., 59 Temple Place - Suite 330, +-# Boston, MA 02111-1307, USA. +- ++# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA ++# 02110-1301, USA. ++# + # As a special exception to the GNU General Public License, if you + # distribute this file as part of a program that contains a + # configuration script generated by Autoconf, you may include it under + # the same distribution terms that you use for the rest of that program. + ++ + # Please send patches to . Submit a context +-# diff and a properly formatted ChangeLog entry. ++# diff and a properly formatted GNU ChangeLog entry. + # + # Configuration subroutine to validate and canonicalize a configuration type. + # Supply the specified configuration type as an argument. + # If it is invalid, we print an error message on stderr and exit with code 1. + # Otherwise, we print the canonical config type on stdout and succeed. + ++# You can get the latest version of this script from: ++# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD ++ + # This file is supposed to be the same for all GNU packages + # and recognize all the CPU types, system types and aliases + # that are meaningful with *any* GNU software. +@@ -70,8 +75,9 @@ + version="\ + GNU config.sub ($timestamp) + +-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +-Free Software Foundation, Inc. ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, ++2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free ++Software Foundation, Inc. + + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +@@ -83,11 +89,11 @@ + while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) +- echo "$timestamp" ; exit 0 ;; ++ echo "$timestamp" ; exit ;; + --version | -v ) +- echo "$version" ; exit 0 ;; ++ echo "$version" ; exit ;; + --help | --h* | -h ) +- echo "$usage"; exit 0 ;; ++ echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. +@@ -99,7 +105,7 @@ + *local*) + # First pass through any local machine types. + echo $1 +- exit 0;; ++ exit ;; + + * ) + break ;; +@@ -118,7 +124,11 @@ + # Here we must recognize all the valid KERNEL-OS combinations. + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` + case $maybe_os in +- nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) ++ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ ++ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ ++ knetbsd*-gnu* | netbsd*-gnu* | \ ++ kopensolaris*-gnu* | \ ++ storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; +@@ -144,10 +154,13 @@ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ +- -apple | -axis) ++ -apple | -axis | -knuth | -cray | -microblaze) + os= + basic_machine=$1 + ;; ++ -bluegene*) ++ os=-cnk ++ ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 +@@ -169,6 +182,10 @@ + -hiux*) + os=-hiuxwe2 + ;; ++ -sco6) ++ os=-sco5v6 ++ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ++ ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` +@@ -185,6 +202,10 @@ + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; ++ -sco5v6*) ++ # Don't forget version if it is 3.2v4 or newer. ++ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ++ ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` +@@ -228,51 +249,80 @@ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ +- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ +- | clipper \ ++ | am33_2.0 \ ++ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ ++ | bfin \ ++ | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ +- | fr30 | frv \ ++ | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ +- | ip2k \ +- | m32r | m68000 | m68k | m88k | mcore \ ++ | ip2k | iq2000 \ ++ | lm32 \ ++ | m32c | m32r | m32rle | m68000 | m68k | m88k \ ++ | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ +- | mips64vr | mips64vrel \ ++ | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ ++ | mips64r5900 | mips64r5900el \ ++ | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ ++ | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ ++ | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ ++ | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ ++ | moxie \ ++ | mt \ ++ | msp430 \ ++ | nios | nios2 \ + | ns16k | ns32k \ +- | openrisc | or32 \ ++ | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ +- | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ ++ | rx \ ++ | score \ ++ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ +- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ +- | strongarm \ +- | tahoe | thumb | tic80 | tron \ ++ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ ++ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ ++ | spu | strongarm \ ++ | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ ++ | ubicom32 \ + | v850 | v850e \ + | we32k \ +- | x86 | xscale | xstormy16 | xtensa \ +- | z8k) ++ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ ++ | z8k | z80) + basic_machine=$basic_machine-unknown + ;; +- m6811 | m68hc11 | m6812 | m68hc12) ++ c54x) ++ basic_machine=tic54x-unknown ++ ;; ++ c55x) ++ basic_machine=tic55x-unknown ++ ;; ++ c6x) ++ basic_machine=tic6x-unknown ++ ;; ++ m6811 | m68hc11 | m6812 | m68hc12 | picochip) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; ++ ms1) ++ basic_machine=mt-unknown ++ ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and +@@ -292,50 +342,69 @@ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ +- | avr-* \ +- | bs2000-* \ +- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ +- | clipper-* | cydra-* \ ++ | avr-* | avr32-* \ ++ | bfin-* | bs2000-* \ ++ | c[123]* | c30-* | [cjt]90-* | c4x-* \ ++ | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ +- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ ++ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ +- | ip2k-* \ +- | m32r-* \ ++ | ip2k-* | iq2000-* \ ++ | lm32-* \ ++ | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ +- | m88110-* | m88k-* | mcore-* \ ++ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ +- | mips64vr-* | mips64vrel-* \ ++ | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ ++ | mips64r5900-* | mips64r5900el-* \ ++ | mips64vr-* | mips64vrel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ ++ | mips64vr5900-* | mips64vr5900el-* \ + | mipsisa32-* | mipsisa32el-* \ ++ | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ ++ | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ +- | mipstx39 | mipstx39el \ ++ | mipstx39-* | mipstx39el-* \ ++ | mmix-* \ ++ | mt-* \ ++ | msp430-* \ ++ | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ +- | romp-* | rs6000-* \ +- | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ ++ | romp-* | rs6000-* | rx-* \ ++ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ +- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ +- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ +- | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ ++ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ ++ | sparclite-* \ ++ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ ++ | tahoe-* | thumb-* \ ++ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ ++ | tile-* | tilegx-* \ ++ | tron-* \ ++ | ubicom32-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ +- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ +- | xtensa-* \ ++ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ ++ | xstormy16-* | xtensa*-* \ + | ymp-* \ +- | z8k-*) ++ | z8k-* | z80-*) ++ ;; ++ # Recognize the basic CPU types without company name, with glob match. ++ xtensa*) ++ basic_machine=$basic_machine-unknown + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. +@@ -353,6 +422,9 @@ + basic_machine=a29k-amd + os=-udi + ;; ++ abacus) ++ basic_machine=abacus-unknown ++ ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout +@@ -367,6 +439,12 @@ + basic_machine=a29k-none + os=-bsd + ;; ++ amd64) ++ basic_machine=x86_64-pc ++ ;; ++ amd64-*) ++ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; + amdahl) + basic_machine=580-amdahl + os=-sysv +@@ -390,6 +468,10 @@ + basic_machine=m68k-apollo + os=-bsd + ;; ++ aros) ++ basic_machine=i386-pc ++ os=-aros ++ ;; + aux) + basic_machine=m68k-apple + os=-aux +@@ -398,10 +480,35 @@ + basic_machine=ns32k-sequent + os=-dynix + ;; ++ blackfin) ++ basic_machine=bfin-unknown ++ os=-linux ++ ;; ++ blackfin-*) ++ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` ++ os=-linux ++ ;; ++ bluegene*) ++ basic_machine=powerpc-ibm ++ os=-cnk ++ ;; ++ c54x-*) ++ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; ++ c55x-*) ++ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; ++ c6x-*) ++ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; ++ cegcc) ++ basic_machine=arm-unknown ++ os=-cegcc ++ ;; + convex-c1) + basic_machine=c1-convex + os=-bsd +@@ -426,12 +533,27 @@ + basic_machine=j90-cray + os=-unicos + ;; ++ craynv) ++ basic_machine=craynv-cray ++ os=-unicosmp ++ ;; ++ cr16) ++ basic_machine=cr16-unknown ++ os=-elf ++ ;; + crds | unos) + basic_machine=m68k-crds + ;; ++ crisv32 | crisv32-* | etraxfs*) ++ basic_machine=crisv32-axis ++ ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; ++ crx) ++ basic_machine=crx-unknown ++ os=-elf ++ ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; +@@ -454,6 +576,14 @@ + basic_machine=m88k-motorola + os=-sysv3 + ;; ++ dicos) ++ basic_machine=i686-pc ++ os=-dicos ++ ;; ++ djgpp) ++ basic_machine=i586-pc ++ os=-msdosdjgpp ++ ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx +@@ -604,6 +734,14 @@ + basic_machine=m68k-isi + os=-sysv + ;; ++ m68knommu) ++ basic_machine=m68k-unknown ++ os=-linux ++ ;; ++ m68knommu-*) ++ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` ++ os=-linux ++ ;; + m88k-omron*) + basic_machine=m88k-omron + ;; +@@ -615,10 +753,17 @@ + basic_machine=ns32k-utek + os=-sysv + ;; ++ microblaze) ++ basic_machine=microblaze-xilinx ++ ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; ++ mingw32ce) ++ basic_machine=arm-unknown ++ os=-mingw32ce ++ ;; + miniframe) + basic_machine=m68000-convergent + ;; +@@ -632,10 +777,6 @@ + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; +- mmix*) +- basic_machine=mmix-knuth +- os=-mmixware +- ;; + monitor) + basic_machine=m68k-rom68k + os=-coff +@@ -648,6 +789,9 @@ + basic_machine=i386-pc + os=-msdos + ;; ++ ms1-*) ++ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ++ ;; + mvs) + basic_machine=i370-ibm + os=-mvs +@@ -723,9 +867,12 @@ + basic_machine=hppa1.1-oki + os=-proelf + ;; +- or32 | or32-*) ++ openrisc | openrisc-*) + basic_machine=or32-unknown +- os=-coff ++ ;; ++ os400) ++ basic_machine=powerpc-ibm ++ os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson +@@ -743,6 +890,14 @@ + basic_machine=i860-intel + os=-osf + ;; ++ parisc) ++ basic_machine=hppa-unknown ++ os=-linux ++ ;; ++ parisc-*) ++ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` ++ os=-linux ++ ;; + pbd) + basic_machine=sparc-tti + ;; +@@ -752,24 +907,36 @@ + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; ++ pc98) ++ basic_machine=i386-pc ++ ;; ++ pc98-*) ++ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; +- pentiumii | pentium2) ++ pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; ++ pentium4) ++ basic_machine=i786-pc ++ ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; +- pentiumii-* | pentium2-*) ++ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; ++ pentium4-*) ++ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ++ ;; + pn) + basic_machine=pn-gould + ;; +@@ -802,6 +969,10 @@ + basic_machine=i586-unknown + os=-pw32 + ;; ++ rdos) ++ basic_machine=i386-pc ++ os=-rdos ++ ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff +@@ -828,6 +999,14 @@ + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; ++ sde) ++ basic_machine=mipsisa32-sde ++ os=-elf ++ ;; ++ sei) ++ basic_machine=mips-sei ++ os=-seiux ++ ;; + sequent) + basic_machine=i386-sequent + ;; +@@ -835,6 +1014,12 @@ + basic_machine=sh-hitachi + os=-hms + ;; ++ sh5el) ++ basic_machine=sh5le-unknown ++ ;; ++ sh64) ++ basic_machine=sh64-unknown ++ ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks +@@ -901,10 +1086,6 @@ + basic_machine=i386-sequent + os=-dynix + ;; +- t3d) +- basic_machine=alpha-cray +- os=-unicos +- ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos +@@ -913,13 +1094,14 @@ + basic_machine=t90-cray + os=-unicos + ;; +- tic4x | c4x*) +- basic_machine=tic4x-unknown +- os=-coff +- ;; +- tic54x | c54x*) +- basic_machine=tic54x-unknown +- os=-coff ++ # This must be matched before tile*. ++ tilegx*) ++ basic_machine=tilegx-unknown ++ os=-linux-gnu ++ ;; ++ tile*) ++ basic_machine=tile-unknown ++ os=-linux-gnu + ;; + tx39) + basic_machine=mipstx39-unknown +@@ -934,6 +1116,10 @@ + tower | tower-32) + basic_machine=m68k-ncr + ;; ++ tpf) ++ basic_machine=s390x-ibm ++ os=-tpf ++ ;; + udi29k) + basic_machine=a29k-amd + os=-udi +@@ -977,9 +1163,9 @@ + basic_machine=hppa1.1-winbond + os=-proelf + ;; +- windows32) +- basic_machine=i386-pc +- os=-windows32-msvcrt ++ xbox) ++ basic_machine=i686-pc ++ os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell +@@ -992,6 +1178,10 @@ + basic_machine=z8k-unknown + os=-sim + ;; ++ z80-*-coff) ++ basic_machine=z80-unknown ++ os=-sim ++ ;; + none) + basic_machine=none-none + os=-none +@@ -1011,6 +1201,9 @@ + romp) + basic_machine=romp-ibm + ;; ++ mmix) ++ basic_machine=mmix-knuth ++ ;; + rs6000) + basic_machine=rs6000-ibm + ;; +@@ -1027,13 +1220,10 @@ + we32k) + basic_machine=we32k-att + ;; +- sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) ++ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; +- sh64) +- basic_machine=sh64-unknown +- ;; +- sparc | sparcv9 | sparcv9b) ++ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + basic_machine=sparc-sun + ;; + cydra) +@@ -1080,6 +1270,9 @@ + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. ++ -auroraux) ++ os=-auroraux ++ ;; + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; +@@ -1100,24 +1293,31 @@ + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ +- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ +- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ ++ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ ++ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ ++ | -sym* | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ +- | -aos* \ ++ | -aos* | -aros* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ +- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ +- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ ++ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ ++ | -openbsd* | -solidbsd* \ ++ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ ++ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ +- | -chorusos* | -chorusrdb* \ ++ | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ +- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ +- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ ++ | -mingw32* | -linux-gnu* | -linux-android* \ ++ | -linux-newlib* | -linux-uclibc* \ ++ | -uxpv* | -beos* | -mpeix* | -udk* \ ++ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ +- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) ++ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ ++ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ ++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) +@@ -1129,16 +1329,21 @@ + ;; + esac + ;; ++ -nto-qnx*) ++ ;; + -nto*) +- os=-nto-qnx ++ os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ +- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ ++ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; ++ -linux-dietlibc) ++ os=-linux-dietlibc ++ ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; +@@ -1151,6 +1356,9 @@ + -opened*) + os=-openedition + ;; ++ -os400*) ++ os=-os400 ++ ;; + -wince*) + os=-wince + ;; +@@ -1172,6 +1380,9 @@ + -atheos*) + os=-atheos + ;; ++ -syllable*) ++ os=-syllable ++ ;; + -386bsd) + os=-bsd + ;; +@@ -1194,6 +1405,9 @@ + -sinix*) + os=-sysv4 + ;; ++ -tpf*) ++ os=-tpf ++ ;; + -triton*) + os=-sysv3 + ;; +@@ -1224,6 +1438,20 @@ + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; ++ -aros*) ++ os=-aros ++ ;; ++ -kaos*) ++ os=-kaos ++ ;; ++ -zvmoe) ++ os=-zvmoe ++ ;; ++ -dicos*) ++ os=-dicos ++ ;; ++ -nacl*) ++ ;; + -none) + ;; + *) +@@ -1246,6 +1474,12 @@ + # system, and we'll never get to this point. + + case $basic_machine in ++ score-*) ++ os=-elf ++ ;; ++ spu-*) ++ os=-elf ++ ;; + *-acorn) + os=-riscix1.2 + ;; +@@ -1255,6 +1489,18 @@ + arm*-semi) + os=-aout + ;; ++ c4x-* | tic4x-*) ++ os=-coff ++ ;; ++ tic54x-*) ++ os=-coff ++ ;; ++ tic55x-*) ++ os=-coff ++ ;; ++ tic6x-*) ++ os=-coff ++ ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 +@@ -1280,6 +1526,9 @@ + m68*-cisco) + os=-aout + ;; ++ mep-*) ++ os=-elf ++ ;; + mips*-cisco) + os=-elf + ;; +@@ -1298,9 +1547,15 @@ + *-be) + os=-beos + ;; ++ *-haiku) ++ os=-haiku ++ ;; + *-ibm) + os=-aix + ;; ++ *-knuth) ++ os=-mmixware ++ ;; + *-wec) + os=-proelf + ;; +@@ -1403,7 +1658,7 @@ + -sunos*) + vendor=sun + ;; +- -aix*) ++ -cnk*|-aix*) + vendor=ibm + ;; + -beos*) +@@ -1433,9 +1688,15 @@ + -mvs* | -opened*) + vendor=ibm + ;; ++ -os400*) ++ vendor=ibm ++ ;; + -ptx*) + vendor=sequent + ;; ++ -tpf*) ++ vendor=ibm ++ ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; +@@ -1460,7 +1721,7 @@ + esac + + echo $basic_machine$os +-exit 0 ++exit + + # Local variables: + # eval: (add-hook 'write-file-hooks 'time-stamp) diff -Nru gettext-0.17/debian/patches/series gettext-0.18.1.1/debian/patches/series --- gettext-0.17/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/patches/series 2010-08-01 21:50:09.000000000 +0000 @@ -0,0 +1,2 @@ +01-do-not-use-java-in-urlget +99-config-guess-config-sub diff -Nru gettext-0.17/debian/README.Debian gettext-0.18.1.1/debian/README.Debian --- gettext-0.17/debian/README.Debian 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/README.Debian 2010-08-01 21:50:09.000000000 +0000 @@ -1,17 +1,11 @@ Notes about the Debian gettext package ====================================== -The gettext package contains a tool called autopoint which needs cvs. -If you use autopoint, you will need to install cvs. If you don't use -autopoint, you don't need to install cvs. Because autopoint is just a -single tool among a lot of other programs in gettext, and not everybody -who install the gettext package will use autopoint, the gettext package -does not depend on cvs. This will give people the freedom to *not* -install cvs if they don't really need it. +The autopoint script and related stuff is now in a separate package +called "autopoint". -Because of this, a package which uses autopoint in its build process -*must* have the cvs package in its Build-Depends field or else it will -have a FTBFS-type bug. +Packages using autopoint in their build process should now build-depend +on autopoint. Santiago Vila diff -Nru gettext-0.17/debian/rules gettext-0.18.1.1/debian/rules --- gettext-0.17/debian/rules 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/debian/rules 2010-08-01 21:50:09.000000000 +0000 @@ -33,7 +33,7 @@ CSHARP = --disable-csharp -NOJAVA_ARCHS = %hppa% +NOJAVA_ARCHS = %none% build: cd debian && $(CC) glibc-test.c @@ -53,7 +53,8 @@ [ ! -f Makefile ] || $(MAKE) distclean rm -f `find . -name "*~"` rm -rf debian/tmp debian/files* core debian/substvars debian/a.out - cd debian && rm -rf gettext-base gettext gettext-el gettext-doc + cd debian && rm -rf gettext-base gettext gettext-el gettext-doc \ + autopoint binary-arch: build debian/rules gettext-base @@ -62,11 +63,15 @@ binary-indep: build debian/rules gettext-el debian/rules gettext-doc + debian/rules autopoint gettext-base: build rm -rf debian/$@ install -d debian/$@/DEBIAN debian/$@/usr/share/doc/$@ - cd debian/$@ && install -d usr/share/man/man1 usr/bin usr/lib + cd debian/$@ && install -d usr/share/man/man1 usr/bin usr/lib \ + usr/share/lintian/overrides + cp -p debian/$@.lintian-overrides \ + debian/$@/usr/share/lintian/overrides/$@ cp -p debian/tmp/usr/share/man/man1/gettext.1 \ debian/$@/usr/share/man/man1 cp -p debian/tmp/usr/share/man/man1/ngettext.1 \ @@ -109,16 +114,21 @@ dpkg-gencontrol -p$@ -Pdebian/$@ cd debian/$@ && \ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums - chown -R root:root debian/$@ + find debian/$@/usr/share/locale -type d -empty | xargs -r rmdir + find debian/$@/usr/share/locale -type d -empty | xargs -r rmdir + chown -R 0:0 debian/$@ chmod -R u+w,go=rX debian/$@ dpkg --build debian/$@ .. gettext: build rm -rf debian/$@ install -d debian/$@/DEBIAN debian/$@/usr/share/doc/$@ - cd debian/$@ && install -d usr/share/man usr/share/java + cd debian/$@ && install -d usr/share/man usr/share/java \ + usr/share/lintian/overrides cd debian && install -m 644 $@.shlibs $@/DEBIAN/shlibs cd debian && install -m 755 postinst $@/DEBIAN + cp -p debian/$@.lintian-overrides \ + debian/$@/usr/share/lintian/overrides/$@ cp -p gettext-runtime/BUGS gettext-tools/misc/DISCLAIM NEWS README \ debian/copyright debian/$@/usr/share/doc/$@ cp -p debian/README.Debian debian/$@/usr/share/doc/$@ @@ -150,13 +160,18 @@ $(STRIP) debian/$@/usr/lib/libgettextpo.so.* $(ATRIP) debian/$@/usr/lib/libasprintf.a $(ATRIP) debian/$@/usr/lib/libgettextpo.a + rm -f debian/$@/usr/bin/autopoint + rm -f debian/$@/usr/share/man/man1/autopoint.1 + rm -f debian/$@/usr/share/gettext/archive.git.tar.gz gzip -9 debian/$@/usr/share/info/* gzip -r9 debian/$@/usr/share/man sh debian/my-shlibdeps debian/$@/usr/bin/* debian/$@/usr/lib/gettext/* dpkg-gencontrol -p$@ -Pdebian/$@ cd debian/$@ && \ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums - chown -R root:root debian/$@ + find debian/$@/usr/share/locale -type d -empty | xargs -r rmdir + find debian/$@/usr/share/locale -type d -empty | xargs -r rmdir + chown -R 0:0 debian/$@ chmod -R u+w,go=rX debian/$@ dpkg --build debian/$@ .. @@ -187,7 +202,7 @@ dpkg-gencontrol -p$@ -Pdebian/$@ cd debian/$@ && \ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums - chown -R root:root debian/$@ + chown -R 0:0 debian/$@ chmod -R u+w,go=rX debian/$@ dpkg --build debian/$@ .. @@ -207,11 +222,32 @@ dpkg-gencontrol -p$@ -Pdebian/$@ cd debian/$@ && \ md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums - chown -R root:root debian/$@ + chown -R 0:0 debian/$@ + chmod -R u+w,go=rX debian/$@ + dpkg --build debian/$@ .. + +autopoint: + rm -rf debian/$@ + install -d debian/$@/DEBIAN debian/$@/usr/share/doc/$@ + cd debian/$@ && install -d usr/bin usr/share/gettext usr/share/man/man1 + cp -p debian/tmp/usr/bin/autopoint debian/$@/usr/bin + cp -p debian/tmp/usr/share/gettext/archive.git.tar.gz \ + debian/$@/usr/share/gettext + cp -p debian/tmp/usr/share/man/man1/autopoint.1 \ + debian/$@/usr/share/man/man1 + gzip -r9 debian/$@/usr/share/man + cp -p debian/copyright debian/README.Debian debian/$@/usr/share/doc/$@ + cp -p ChangeLog debian/$@/usr/share/doc/$@/changelog + cp -p debian/changelog debian/$@/usr/share/doc/$@/changelog.Debian + cd debian/$@/usr/share/doc/$@ && gzip -9 changelog changelog.Debian + dpkg-gencontrol -p$@ -Pdebian/$@ + cd debian/$@ && \ + md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R 0:0 debian/$@ chmod -R u+w,go=rX debian/$@ dpkg --build debian/$@ .. binary: binary-indep binary-arch .PHONY: binary binary-arch binary-indep clean -.PHONY: gettext-base gettext gettext-el gettext-doc +.PHONY: gettext-base gettext gettext-el gettext-doc autopoint diff -Nru gettext-0.17/debian/source/format gettext-0.18.1.1/debian/source/format --- gettext-0.17/debian/source/format 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/debian/source/format 2011-06-12 21:36:48.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt) diff -Nru gettext-0.17/DEPENDENCIES gettext-0.18.1.1/DEPENDENCIES --- gettext-0.17/DEPENDENCIES 2007-07-09 00:58:26.000000000 +0000 +++ gettext-0.18.1.1/DEPENDENCIES 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,5 @@ -The following packages should be installed before GNU gettext is installed: +The following packages should be installed before GNU gettext is installed +(runtime dependencies that are also build dependencies): * GNU libiconv + Not needed on systems with @@ -60,6 +61,15 @@ + If more than one C# is installed, pass the option --enable-csharp=IMPL to 'configure', to disambiguate. +* git 1.6 or newer + + Recommended. + Needed by the 'autopoint' program, if not configured with --without-git + or --with-cvs. + + Homepage: + http://git-scm.com/ + + Download: + http://www.kernel.org/pub/software/scm/git/ + * libxml2 + Optional. Needed for the --color option of the various programs. @@ -96,13 +106,109 @@ + If it is installed in a nonstandard directory, pass the option --with-libcroco-0.6-prefix=DIR to 'configure'. -The following packages should be installed when GNU gettext is installed: +* GNU libunistring + + Optional. + Needed for the line breaking in PO files and for xgettext. + If not present, a subset of libunistring (included in this package) will + be compiled into libgettextlib. + + Homepage: + http://www.gnu.org/software/libunistring/ + + Download: + http://ftp.gnu.org/gnu/libunistring/ + ftp://ftp.gnu.org/gnu/libunistring/ + + If it is installed in a nonstandard directory, pass the option + --with-libunistring-prefix=DIR to 'configure'. * CVS 1.11 or newer - + Recommended. - Needed by the 'autopoint' program. + + Optional but deprecated. + Needed by the 'autopoint' program, if configured with --with-cvs. + Homepage: http://ximbiot.com/cvs/wiki/index.php?title=Main_Page http://www.nongnu.org/cvs/ + Download: http://ftp.gnu.org/non-gnu/cvs/ + + +The following packages should be installed when GNU gettext is installed +(runtime dependencies, but not build dependencies): + +None. + + +The following should be installed when GNU gettext is built, but are not +needed later, once it is installed (build dependencies, but not runtime +dependencies): + +* A C runtime, compiler, linker, etc. + + Mandatory. Either the platform's native 'cc', or GCC 2.95 or newer. + + GCC Homepage: + http://gcc.gnu.org/ + + Download: + http://ftp.gnu.org/gnu/gcc/ + ftp://ftp.gnu.org/gnu/gcc/ + +* A 'make' utility. + + Mandatory. Either the platform's native 'make' (for in-tree builds only), + or GNU Make 3.79.1 or newer. + + GNU Make Homepage: + http://www.gnu.org/software/make/ + + Download: + http://ftp.gnu.org/gnu/make/ + ftp://ftp.gnu.org/gnu/make/ + +* A shell + + Mandatory. Either the platform's native 'sh', or Bash. + + Homepage: + http://www.gnu.org/software/bash/ + + Download: + http://ftp.gnu.org/gnu/bash/ + ftp://ftp.gnu.org/gnu/bash/ + +* Core POSIX utilities, including: + [ basename cat chgrp chmod chown cp dd echo expand expr + false hostname install kill ln ls md5sum mkdir mkfifo + mknod mv printenv pwd rm rmdir sleep sort tee test touch + true uname + + Mandatory. Either the platform's native utilities, or GNU coreutils. + + Homepage: + http://www.gnu.org/software/coreutils/ + + Download: + http://ftp.gnu.org/gnu/coreutils/ + ftp://ftp.gnu.org/gnu/coreutils/ + +* The comparison utilities 'cmp' and 'diff'. + + Mandatory. Either the platform's native utilities, or GNU diffutils. + + Homepage: + http://www.gnu.org/software/diffutils/ + + Download: + http://ftp.gnu.org/gnu/diffutils/ + ftp://ftp.gnu.org/gnu/diffutils/ + +* Grep. + + Mandatory. Either the platform's native grep, or GNU grep. + + Homepage: + http://www.gnu.org/software/grep/ + + Download: + http://ftp.gnu.org/gnu/grep/ + ftp://ftp.gnu.org/gnu/grep/ + +* The archiving utility 'tar'. + + Optional. + Needed for the 'autopoint' program, if not configured with --without-git + and --without-cvs. + Either the platform's native tar, or GNU tar. + + Homepage: + http://www.gnu.org/software/tar/ + + Download: + http://ftp.gnu.org/gnu/tar/ + ftp://ftp.gnu.org/gnu/tar/ + +* The GNU compression utility 'gzip'. + + Optional. + Needed for the 'autopoint' program, if not configured with --without-git + and --without-cvs. + + Homepage: + http://www.gnu.org/software/gzip/ + + Download: + http://ftp.gnu.org/gnu/gzip/ + ftp://ftp.gnu.org/gnu/gzip/ diff -Nru gettext-0.17/djgpp/djpwd.h gettext-0.18.1.1/djgpp/djpwd.h --- gettext-0.17/djgpp/djpwd.h 2002-02-15 17:37:28.000000000 +0000 +++ gettext-0.18.1.1/djgpp/djpwd.h 2010-06-06 12:49:57.000000000 +0000 @@ -24,23 +24,23 @@ #define __DJ_uid_t struct passwd { - char * pw_name; /* Username. */ - uid_t pw_uid; /* User ID. */ - gid_t pw_gid; /* Group ID. */ - char * pw_dir; /* Home directory. */ - char * pw_shell; /* Shell program. */ - char * pw_gecos; /* Real name. */ - char * pw_passwd; /* Password. */ + char * pw_name; /* Username. */ + uid_t pw_uid; /* User ID. */ + gid_t pw_gid; /* Group ID. */ + char * pw_dir; /* Home directory. */ + char * pw_shell; /* Shell program. */ + char * pw_gecos; /* Real name. */ + char * pw_passwd; /* Password. */ }; -struct passwd * getpwuid(uid_t _uid); -struct passwd * getpwnam(const char *_name); +struct passwd * getpwuid(uid_t _uid); +struct passwd * getpwnam(const char *_name); #ifndef _POSIX_SOURCE -struct passwd *getpwent(void); -void setpwent(void); -void endpwent(void); +struct passwd *getpwent(void); +void setpwent(void); +void endpwent(void); #endif /* !_POSIX_SOURCE */ #endif /* !__STRICT_ANSI__ */ diff -Nru gettext-0.17/gettext-runtime/ABOUT-NLS gettext-0.18.1.1/gettext-runtime/ABOUT-NLS --- gettext-0.17/gettext-runtime/ABOUT-NLS 2007-11-02 02:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/ABOUT-NLS 2010-06-06 12:49:57.000000000 +0000 @@ -18,35 +18,7 @@ available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. - When reporting bugs in the `intl/' directory or bugs which may be -related to internationalization, you should tell about the version of -`gettext' which is used. The information can be found in the -`intl/VERSION' file, in internationalized packages. - -1.1 Quick configuration advice -============================== - -If you want to exploit the full power of internationalization, you -should configure it using - - ./configure --with-included-gettext - -to force usage of internationalizing routines provided within this -package, despite the existence of internationalizing capabilities in the -operating system where this package is being installed. So far, only -the `gettext' implementation in the GNU C library version 2 provides as -many features (such as locale alias, message inheritance, automatic -charset conversion or plural form handling) as the implementation here. -It is also not possible to offer this additional functionality on top -of a `catgets' implementation. Future versions of GNU `gettext' will -very likely convey even more functionality. So it might be a good idea -to change to GNU `gettext' as soon as possible. - - So you need _not_ provide this option if you are using GNU libc 2 or -you have installed a recent copy of the GNU gettext package with the -included `libintl'. - -1.2 INSTALL Matters +1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs @@ -56,36 +28,19 @@ By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already -provides the GNU `gettext' functions. If not, the included GNU -`gettext' library will be used. This library is wholly contained -within this package, usually in the `intl/' subdirectory, so prior -installation of the GNU `gettext' package is _not_ required. -Installers may use special options at configuration time for changing -the default behaviour. The commands: +provides the GNU `gettext' functions. Installers may use special +options at configuration time for changing the default behaviour. The +command: - ./configure --with-included-gettext ./configure --disable-nls -will, respectively, bypass any pre-existing `gettext' to use the -internationalizing routines provided within this package, or else, -_totally_ disable translation of messages. +will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will -probably detect the previously built and installed `libintl.a' file and -will decide to use this. This might not be desirable. You should use -the more recent version of the GNU `gettext' library. I.e. if the file -`intl/VERSION' shows that the library which comes with this package is -more recent, you should use - - ./configure --with-included-gettext - -to prevent auto-detection. - - The configuration process will not test for the `catgets' function -and therefore it will not be used. The reason is that even an -emulation of `gettext' on top of `catgets' could not provide all the -extensions of the GNU `gettext' library. +probably detect the previously built and installed `libintl' library +and will decide to use it. If not, you may have to to use the +`--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless @@ -96,7 +51,7 @@ `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. -1.3 Using This Package +1.2 Using This Package ====================== As a user, if your language has been installed for this package, you @@ -148,7 +103,7 @@ to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. -1.4 Translating Teams +1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested @@ -177,859 +132,1118 @@ the terminology in use. Proven linguistic skills are praised more than programming skills, here. -1.5 Available Packages +1.4 Available Packages ====================== Languages are not equally supported in all packages. The following -matrix shows the current state of internationalization, as of November -2007. The matrix shows, in regard of each package, for which languages +matrix shows the current state of internationalization, as of June +2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. - Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo - +----------------------------------------------------+ - Compendium | [] [] [] [] | - a2ps | [] [] [] [] [] | - aegis | () | - ant-phone | () | - anubis | [] | - ap-utils | | - aspell | [] [] [] [] [] | - bash | [] | - bfd | | - bibshelf | [] | - binutils | | - bison | [] [] | - bison-runtime | [] | - bluez-pin | [] [] [] [] [] | - cflow | [] | - clisp | [] [] [] | - console-tools | [] [] | - coreutils | [] [] [] [] | - cpio | | - cpplib | [] [] [] | - cryptonit | [] | - dialog | | - diffutils | [] [] [] [] [] [] | - doodle | [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] | - fetchmail | [] [] () [] [] | - findutils | [] | - findutils_stable | [] [] [] | - flex | [] [] [] | - fslint | | - gas | | - gawk | [] [] [] | - gcal | [] | - gcc | [] | - gettext-examples | [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] | - gettext-tools | [] [] | - gip | [] | - gliv | [] [] | - glunarclock | [] | - gmult | [] [] | - gnubiff | () | - gnucash | [] [] () () [] | - gnuedu | | - gnulib | [] | - gnunet | | - gnunet-gtk | | - gnutls | [] | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | | - gpe-clock | [] [] | - gpe-conf | [] [] | - gpe-contacts | | - gpe-edit | [] | - gpe-filemanager | | - gpe-go | [] | - gpe-login | [] [] | - gpe-ownerinfo | [] [] | - gpe-package | | - gpe-sketchbook | [] [] | - gpe-su | [] [] | - gpe-taskmanager | [] [] | - gpe-timesheet | [] | - gpe-today | [] [] | - gpe-todo | | - gphoto2 | [] [] [] [] | - gprof | [] [] | - gpsdrive | | - gramadoir | [] [] | - grep | [] [] | - gretl | () | - gsasl | | - gss | | - gst-plugins-bad | [] [] | - gst-plugins-base | [] [] | - gst-plugins-good | [] [] [] | - gst-plugins-ugly | [] [] | - gstreamer | [] [] [] [] [] [] [] | - gtick | () | - gtkam | [] [] [] [] | - gtkorphan | [] [] | - gtkspell | [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] | - herrie | [] | - hylafax | | - idutils | [] [] | - indent | [] [] [] [] | - iso_15924 | | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] [] [] | - iso_639 | [] [] [] [] | - jpilot | [] | - jtag | | - jwhois | | - kbd | [] [] [] [] | - keytouch | [] [] | - keytouch-editor | [] | - keytouch-keyboa... | [] | - latrine | () | - ld | [] | - leafpad | [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] | - libextractor | [] | - libgpewidget | [] [] [] | - libgpg-error | [] | - libgphoto2 | [] [] | - libgphoto2_port | [] [] | - libgsasl | | - libiconv | [] [] | - libidn | [] [] [] | - lifelines | [] () | - lilypond | [] | - lingoteach | | - lprng | | - lynx | [] [] [] [] | - m4 | [] [] [] [] | - mailfromd | | - mailutils | [] | - make | [] [] | - man-db | [] [] [] | - minicom | [] [] [] | - nano | [] [] [] | - opcodes | [] | - parted | [] [] | - pilot-qof | | - popt | [] [] [] | - psmisc | [] | - pwdutils | | - qof | | - radius | [] | - recode | [] [] [] [] [] [] | - rpm | [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] [] | - sed | [] [] [] | - shared-mime-info | [] [] [] [] () [] [] [] | - sharutils | [] [] [] [] [] [] | - shishi | | - skencil | [] () | - solfege | | - soundtracker | [] [] | - sp | [] | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] | - texinfo | [] [] [] | - tin | () () | - tuxpaint | [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] [] | - util-linux-ng | [] [] [] [] | - vorbis-tools | [] | - wastesedge | () | - wdiff | [] [] [] [] | - wget | [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] | - xpad | [] [] [] | - +----------------------------------------------------+ - af am ar az be bg bs ca cs cy da de el en en_GB eo - 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18 - - es et eu fa fi fr ga gl gu he hi hr hu id is it + Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ - Compendium | [] [] [] [] [] | - a2ps | [] [] [] () | + a2ps | [] [] | aegis | | - ant-phone | [] | - anubis | [] | - ap-utils | [] [] | - aspell | [] [] [] | - bash | [] | - bfd | [] [] | - bibshelf | [] [] [] | - binutils | [] [] [] | - bison | [] [] [] [] [] [] | - bison-runtime | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] | - cflow | [] | - clisp | [] [] | - console-tools | | - coreutils | [] [] [] [] [] [] | - cpio | [] [] [] | - cpplib | [] [] | - cryptonit | [] | - dialog | [] [] [] | - diffutils | [] [] [] [] [] [] [] [] [] | - doodle | [] [] | - e2fsprogs | [] [] [] | - enscript | [] [] [] | - fetchmail | [] | - findutils | [] [] [] | - findutils_stable | [] [] [] [] | - flex | [] [] [] | - fslint | | - gas | [] [] | - gawk | [] [] [] [] () | - gcal | [] [] | - gcc | [] | - gettext-examples | [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] [] | - gip | [] [] [] [] | - gliv | () | - glunarclock | [] [] [] | - gmult | [] [] [] | - gnubiff | () () | - gnucash | () () () | - gnuedu | [] | - gnulib | [] [] [] | - gnunet | | - gnunet-gtk | | - gnutls | | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | | - gpe-clock | [] [] [] [] | - gpe-conf | [] | - gpe-contacts | [] [] | - gpe-edit | [] [] [] [] | - gpe-filemanager | [] | - gpe-go | [] [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] [] [] [] | - gpe-package | [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] [] | - gpe-taskmanager | [] [] [] | - gpe-timesheet | [] [] [] [] | - gpe-today | [] [] [] [] | - gpe-todo | [] | - gphoto2 | [] [] [] [] [] | - gprof | [] [] [] [] [] | - gpsdrive | [] | - gramadoir | [] [] | - grep | [] [] [] | - gretl | [] [] [] () | - gsasl | [] [] | - gss | [] [] | - gst-plugins-bad | [] [] [] [] | - gst-plugins-base | [] [] [] [] | - gst-plugins-good | [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] | - gstreamer | [] [] [] | - gtick | [] [] [] | - gtkam | [] [] [] [] | - gtkorphan | [] [] | - gtkspell | [] [] [] [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | - herrie | [] | - hylafax | | - idutils | [] [] [] [] [] | - indent | [] [] [] [] [] [] [] [] [] [] | - iso_15924 | [] | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | [] | - iso_4217 | [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] | - jpilot | [] [] | - jtag | [] | - jwhois | [] [] [] [] [] | - kbd | [] [] | - keytouch | [] [] [] | - keytouch-editor | [] | - keytouch-keyboa... | [] [] | - latrine | [] [] | - ld | [] [] [] [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] [] | - libexif | [] | - libextractor | [] | - libgpewidget | [] [] [] [] [] | - libgpg-error | [] | - libgphoto2 | [] [] [] | - libgphoto2_port | [] [] | - libgsasl | [] [] | - libiconv | [] [] [] | - libidn | [] [] | - lifelines | () | - lilypond | [] [] [] | - lingoteach | [] [] [] | - lprng | | - lynx | [] [] [] | - m4 | [] [] [] [] | - mailfromd | | - mailutils | [] [] | - make | [] [] [] [] [] [] [] [] | - man-db | [] | - minicom | [] [] [] [] | - nano | [] [] [] [] [] [] [] | - opcodes | [] [] [] [] | - parted | [] [] [] | - pilot-qof | | - popt | [] [] [] [] | - psmisc | [] [] | - pwdutils | | - qof | [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] [] | - rpm | [] [] | - screem | | - scrollkeeper | [] [] [] | - sed | [] [] [] [] [] | - shared-mime-info | [] [] [] [] [] [] | - sharutils | [] [] [] [] [] [] [] [] | - shishi | [] | - skencil | [] [] | - solfege | [] | - soundtracker | [] [] [] | - sp | [] | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] [] [] [] | - texinfo | [] [] [] | - tin | [] () | - tuxpaint | [] [] | - unicode-han-tra... | | - unicode-transla... | [] [] | - util-linux | [] [] [] [] [] [] [] | - util-linux-ng | [] [] [] [] [] [] [] | - vorbis-tools | | - wastesedge | () | - wdiff | [] [] [] [] [] [] [] [] | - wget | [] [] [] [] [] [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] | - xpad | [] [] [] | - +--------------------------------------------------+ - es et eu fa fi fr ga gl gu he hi hr hu id is it - 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52 - - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - +--------------------------------------------------+ - Compendium | [] | - a2ps | () [] [] | - aegis | () | - ant-phone | [] | - anubis | [] [] [] | - ap-utils | [] | - aspell | [] [] | - bash | [] | + ant-phone | | + anubis | | + aspell | [] [] | + bash | | bfd | | - bibshelf | [] | + bibshelf | [] | binutils | | - bison | [] [] [] | - bison-runtime | [] [] [] | - bluez-pin | [] [] [] | + bison | | + bison-runtime | [] | + bluez-pin | [] [] | + bombono-dvd | | + buzztard | | cflow | | - clisp | [] | - console-tools | | - coreutils | [] | - cpio | [] | - cpplib | [] | - cryptonit | [] | - dialog | [] [] | - diffutils | [] [] [] | + clisp | | + coreutils | [] [] | + cpio | | + cppi | | + cpplib | [] | + cryptsetup | | + dfarc | | + dialog | [] [] | + dico | | + diffutils | [] | + dink | | doodle | | - e2fsprogs | [] | - enscript | [] | - fetchmail | [] [] | - findutils | [] | - findutils_stable | [] | - flex | [] [] | - fslint | | + e2fsprogs | [] | + enscript | [] | + exif | | + fetchmail | [] | + findutils | [] | + flex | [] | + freedink | | gas | | - gawk | [] [] | - gcal | | + gawk | [] [] | + gcal | [] | gcc | | - gettext-examples | [] [] [] | - gettext-runtime | [] [] [] | - gettext-tools | [] [] | - gip | [] [] | - gliv | [] | - glunarclock | [] [] | - gmult | [] [] [] | + gettext-examples | [] [] [] [] | + gettext-runtime | [] [] | + gettext-tools | [] [] | + gip | [] | + gjay | | + gliv | [] | + glunarclock | [] [] | gnubiff | | - gnucash | () () () | + gnucash | [] | gnuedu | | - gnulib | [] [] | + gnulib | | gnunet | | gnunet-gtk | | - gnutls | [] | - gpe-aerial | [] | - gpe-beam | [] | - gpe-calendar | [] | - gpe-clock | [] [] [] | - gpe-conf | [] [] [] | - gpe-contacts | [] | - gpe-edit | [] [] [] | - gpe-filemanager | [] [] | - gpe-go | [] [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] | - gpe-taskmanager | [] [] [] [] | - gpe-timesheet | [] | - gpe-today | [] [] | - gpe-todo | [] | - gphoto2 | [] [] | - gprof | [] | - gpsdrive | [] | - gramadoir | () | - grep | [] [] | - gretl | | - gsasl | [] | + gnutls | | + gold | | + gpe-aerial | | + gpe-beam | | + gpe-bluetooth | | + gpe-calendar | | + gpe-clock | [] | + gpe-conf | | + gpe-contacts | | + gpe-edit | | + gpe-filemanager | | + gpe-go | | + gpe-login | | + gpe-ownerinfo | [] | + gpe-package | | + gpe-sketchbook | | + gpe-su | [] | + gpe-taskmanager | [] | + gpe-timesheet | [] | + gpe-today | [] | + gpe-todo | | + gphoto2 | | + gprof | [] | + gpsdrive | | + gramadoir | | + grep | | + grub | [] [] | + gsasl | | gss | | - gst-plugins-bad | [] | - gst-plugins-base | [] | - gst-plugins-good | [] | - gst-plugins-ugly | [] | - gstreamer | [] | - gtick | [] | - gtkam | [] [] | - gtkorphan | [] | - gtkspell | [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] | - herrie | [] | + gst-plugins-bad | [] | + gst-plugins-base | [] | + gst-plugins-good | [] | + gst-plugins-ugly | [] | + gstreamer | [] [] [] | + gtick | | + gtkam | [] | + gtkorphan | [] | + gtkspell | [] [] [] | + gutenprint | | + hello | [] | + help2man | | hylafax | | - idutils | [] | - indent | [] [] | - iso_15924 | [] | - iso_3166 | [] [] [] [] [] [] [] [] | - iso_3166_2 | [] | - iso_4217 | [] [] [] | - iso_639 | [] [] [] [] | - jpilot | () () | - jtag | | - jwhois | [] | - kbd | [] | - keytouch | [] | - keytouch-editor | [] | - keytouch-keyboa... | | - latrine | [] | - ld | | - leafpad | [] [] | - libc | [] [] [] | - libexif | | + idutils | | + indent | [] [] | + iso_15924 | | + iso_3166 | [] [] [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | | + iso_639 | [] [] [] [] | + iso_639_3 | | + jwhois | | + kbd | | + keytouch | [] | + keytouch-editor | | + keytouch-keyboa... | [] | + klavaro | [] | + latrine | | + ld | [] | + leafpad | [] [] | + libc | [] [] | + libexif | () | libextractor | | - libgpewidget | [] | + libgnutls | | + libgpewidget | | libgpg-error | | - libgphoto2 | [] | - libgphoto2_port | [] | - libgsasl | [] | - libiconv | [] | - libidn | [] [] | - lifelines | [] | - lilypond | [] | - lingoteach | [] | + libgphoto2 | | + libgphoto2_port | | + libgsasl | | + libiconv | [] | + libidn | | + lifelines | | + liferea | [] [] | + lilypond | | + linkdr | [] | + lordsawar | | lprng | | - lynx | [] [] | - m4 | [] [] | + lynx | [] | + m4 | | mailfromd | | mailutils | | - make | [] [] [] | + make | | man-db | | - minicom | [] | - nano | [] [] [] | - opcodes | [] | - parted | [] [] | - pilot-qof | | - popt | [] [] [] | - psmisc | [] [] [] | + man-db-manpages | | + minicom | | + mkisofs | | + myserver | | + nano | [] [] | + opcodes | | + parted | | + pies | | + popt | | + psmisc | | + pspp | [] | pwdutils | | - qof | | - radius | | - recode | [] | - rpm | [] [] | - screem | [] | - scrollkeeper | [] [] [] [] | - sed | [] [] | - shared-mime-info | [] [] [] [] [] [] [] | - sharutils | [] [] | + radius | [] | + recode | [] [] | + rosegarden | | + rpm | | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] [] | + sed | [] [] | + sharutils | [] [] | shishi | | skencil | | - solfege | () () | + solfege | | + solfege-manual | | soundtracker | | - sp | () | - system-tools-ba... | [] [] [] [] | - tar | [] [] [] | - texinfo | [] [] | + sp | | + sysstat | | + tar | [] | + texinfo | | tin | | - tuxpaint | () [] [] | unicode-han-tra... | | unicode-transla... | | - util-linux | [] [] | - util-linux-ng | [] [] | + util-linux-ng | [] | + vice | | + vmm | | vorbis-tools | | - wastesedge | [] | - wdiff | [] [] | - wget | [] [] | - xchat | [] [] [] [] | - xkeyboard-config | [] [] [] | - xpad | [] [] [] | - +--------------------------------------------------+ - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6 - - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - +--------------------------------------------------+ - Compendium | [] [] [] [] [] | - a2ps | () [] [] [] [] [] [] | - aegis | () () | - ant-phone | [] [] | - anubis | [] [] [] | - ap-utils | () | - aspell | [] [] [] | - bash | [] [] | - bfd | | - bibshelf | [] | - binutils | [] [] | - bison | [] [] [] [] [] | - bison-runtime | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] [] [] [] | - cflow | [] | - clisp | [] | - console-tools | [] | - coreutils | [] [] [] [] | - cpio | [] [] [] | - cpplib | [] | - cryptonit | [] [] | - dialog | [] | - diffutils | [] [] [] [] [] [] | - doodle | [] [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] [] | - fetchmail | [] [] [] | - findutils | [] [] [] | - findutils_stable | [] [] [] [] [] [] | - flex | [] [] [] [] [] | - fslint | [] | - gas | | - gawk | [] [] [] [] | - gcal | [] | - gcc | [] [] | - gettext-examples | [] [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] [] [] | - gip | [] [] [] [] | - gliv | [] [] [] [] [] [] | - glunarclock | [] [] [] [] [] [] | - gmult | [] [] [] [] | - gnubiff | () [] | - gnucash | () [] | - gnuedu | | - gnulib | [] [] [] | - gnunet | | - gnunet-gtk | [] | - gnutls | [] [] | - gpe-aerial | [] [] [] [] [] [] [] | - gpe-beam | [] [] [] [] [] [] [] | - gpe-calendar | [] [] [] [] | - gpe-clock | [] [] [] [] [] [] [] [] | - gpe-conf | [] [] [] [] [] [] [] | - gpe-contacts | [] [] [] [] [] | - gpe-edit | [] [] [] [] [] [] [] [] [] | - gpe-filemanager | [] [] | - gpe-go | [] [] [] [] [] [] [] [] | - gpe-login | [] [] [] [] [] [] [] [] | - gpe-ownerinfo | [] [] [] [] [] [] [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] [] [] [] [] [] [] | - gpe-su | [] [] [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] [] [] [] | - gpe-timesheet | [] [] [] [] [] [] [] [] | - gpe-today | [] [] [] [] [] [] [] [] | - gpe-todo | [] [] [] [] | - gphoto2 | [] [] [] [] [] [] | - gprof | [] [] [] | - gpsdrive | [] [] | - gramadoir | [] [] | - grep | [] [] [] [] | - gretl | [] [] [] | - gsasl | [] [] [] | - gss | [] [] [] [] | - gst-plugins-bad | [] [] [] | - gst-plugins-base | [] [] | - gst-plugins-good | [] [] | - gst-plugins-ugly | [] [] [] | - gstreamer | [] [] [] [] | - gtick | [] | - gtkam | [] [] [] [] [] | - gtkorphan | [] | - gtkspell | [] [] [] [] [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] [] | - herrie | [] [] [] | - hylafax | | - idutils | [] [] [] [] [] | - indent | [] [] [] [] [] [] [] | - iso_15924 | | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] [] | - jpilot | | - jtag | [] | - jwhois | [] [] [] [] | - kbd | [] [] [] | - keytouch | [] | - keytouch-editor | [] | - keytouch-keyboa... | [] | - latrine | | - ld | [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] [] | - libextractor | [] [] | - libgpewidget | [] [] [] [] [] [] [] [] | - libgpg-error | [] [] [] | - libgphoto2 | [] | - libgphoto2_port | [] [] [] | - libgsasl | [] [] [] [] | - libiconv | [] [] [] | - libidn | [] [] () | - lifelines | [] [] | - lilypond | | - lingoteach | [] | - lprng | [] | - lynx | [] [] [] | - m4 | [] [] [] [] [] | - mailfromd | [] | - mailutils | [] [] [] | - make | [] [] [] [] | - man-db | [] [] [] [] | - minicom | [] [] [] [] [] | - nano | [] [] [] [] | - opcodes | [] [] | - parted | [] | - pilot-qof | | - popt | [] [] [] [] | - psmisc | [] [] | - pwdutils | [] [] | - qof | [] [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] | - rpm | [] [] [] [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] | - sed | [] [] [] [] [] [] [] [] [] | - shared-mime-info | [] [] [] [] [] [] | - sharutils | [] [] [] [] | - shishi | [] | - skencil | [] [] [] | - solfege | [] | - soundtracker | [] [] | - sp | | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] [] [] | - texinfo | [] [] [] [] | - tin | () | - tuxpaint | [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] [] | - util-linux-ng | [] [] [] [] | - vorbis-tools | [] | wastesedge | | - wdiff | [] [] [] [] [] [] [] | - wget | [] [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - xpad | [] [] [] | + wdiff | | + wget | [] [] | + wyslij-po | | + xchat | [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] | +--------------------------------------------------+ - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3 + af am an ar as ast az be be@latin bg bn_IN bs ca + 6 0 1 2 3 19 1 10 3 28 3 1 38 + + crh cs da de el en en_GB en_ZA eo es et eu fa + +-------------------------------------------------+ + a2ps | [] [] [] [] [] [] [] | + aegis | [] [] [] | + ant-phone | [] () | + anubis | [] [] | + aspell | [] [] [] [] [] | + bash | [] [] [] | + bfd | [] | + bibshelf | [] [] [] | + binutils | [] | + bison | [] [] | + bison-runtime | [] [] [] [] | + bluez-pin | [] [] [] [] [] [] | + bombono-dvd | [] | + buzztard | [] [] [] | + cflow | [] [] | + clisp | [] [] [] [] | + coreutils | [] [] [] [] | + cpio | | + cppi | | + cpplib | [] [] [] | + cryptsetup | [] | + dfarc | [] [] [] | + dialog | [] [] [] [] [] | + dico | | + diffutils | [] [] [] [] [] [] | + dink | [] [] [] | + doodle | [] | + e2fsprogs | [] [] [] | + enscript | [] [] [] | + exif | () [] [] | + fetchmail | [] [] () [] [] [] | + findutils | [] [] [] | + flex | [] [] | + freedink | [] [] [] | + gas | [] | + gawk | [] [] [] | + gcal | [] | + gcc | [] [] | + gettext-examples | [] [] [] [] | + gettext-runtime | [] [] [] [] | + gettext-tools | [] [] [] | + gip | [] [] [] [] | + gjay | [] | + gliv | [] [] [] | + glunarclock | [] [] | + gnubiff | () | + gnucash | [] () () () () | + gnuedu | [] [] | + gnulib | [] [] | + gnunet | | + gnunet-gtk | [] | + gnutls | [] [] | + gold | [] | + gpe-aerial | [] [] [] [] | + gpe-beam | [] [] [] [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] | + gpe-clock | [] [] [] [] | + gpe-conf | [] [] [] | + gpe-contacts | [] [] [] | + gpe-edit | [] [] | + gpe-filemanager | [] [] [] | + gpe-go | [] [] [] [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] [] [] | + gpe-package | [] [] [] | + gpe-sketchbook | [] [] [] [] | + gpe-su | [] [] [] [] | + gpe-taskmanager | [] [] [] [] | + gpe-timesheet | [] [] [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] [] [] | + gphoto2 | [] [] () [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] [] | + gramadoir | [] [] [] | + grep | [] | + grub | [] [] | + gsasl | [] | + gss | | + gst-plugins-bad | [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] () [] | + gtkam | [] [] () [] [] | + gtkorphan | [] [] [] [] | + gtkspell | [] [] [] [] [] [] [] | + gutenprint | [] [] [] | + hello | [] [] [] [] | + help2man | [] | + hylafax | [] [] | + idutils | [] [] | + indent | [] [] [] [] [] [] [] | + iso_15924 | [] () [] [] | + iso_3166 | [] [] [] [] () [] [] [] () | + iso_3166_2 | () | + iso_4217 | [] [] [] () [] [] | + iso_639 | [] [] [] [] () [] [] | + iso_639_3 | [] | + jwhois | [] | + kbd | [] [] [] [] [] | + keytouch | [] [] | + keytouch-editor | [] [] | + keytouch-keyboa... | [] | + klavaro | [] [] [] [] | + latrine | [] () | + ld | [] [] | + leafpad | [] [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] [] () | + libextractor | | + libgnutls | [] | + libgpewidget | [] [] | + libgpg-error | [] [] | + libgphoto2 | [] () | + libgphoto2_port | [] () [] | + libgsasl | | + libiconv | [] [] [] [] [] | + libidn | [] [] [] | + lifelines | [] () | + liferea | [] [] [] [] [] | + lilypond | [] [] [] | + linkdr | [] [] [] | + lordsawar | [] | + lprng | | + lynx | [] [] [] [] | + m4 | [] [] [] [] | + mailfromd | | + mailutils | [] | + make | [] [] [] | + man-db | | + man-db-manpages | | + minicom | [] [] [] [] | + mkisofs | | + myserver | | + nano | [] [] [] | + opcodes | [] [] | + parted | [] [] | + pies | | + popt | [] [] [] [] [] | + psmisc | [] [] [] | + pspp | [] | + pwdutils | [] | + radius | [] | + recode | [] [] [] [] [] [] | + rosegarden | () () () | + rpm | [] [] [] | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] [] [] [] | + sed | [] [] [] [] [] [] | + sharutils | [] [] [] [] | + shishi | | + skencil | [] () [] | + solfege | [] [] [] | + solfege-manual | [] [] | + soundtracker | [] [] [] | + sp | [] | + sysstat | [] [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] | + tin | [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | [] [] [] [] | + vice | () () | + vmm | [] | + vorbis-tools | [] [] | + wastesedge | [] | + wdiff | [] [] | + wget | [] [] [] | + wyslij-po | | + xchat | [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] [] [] [] | + +-------------------------------------------------+ + crh cs da de el en en_GB en_ZA eo es et eu fa + 5 64 105 117 18 1 8 0 28 89 18 19 0 + + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + +----------------------------------------------------+ + a2ps | [] [] [] [] | + aegis | [] [] | + ant-phone | [] [] | + anubis | [] [] [] [] | + aspell | [] [] [] [] | + bash | [] [] [] [] | + bfd | [] [] [] | + bibshelf | [] [] [] [] [] | + binutils | [] [] [] | + bison | [] [] [] [] | + bison-runtime | [] [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] | + bombono-dvd | [] | + buzztard | [] | + cflow | [] [] [] | + clisp | [] | + coreutils | [] [] [] [] [] | + cpio | [] [] [] [] | + cppi | [] [] | + cpplib | [] [] [] | + cryptsetup | [] [] [] | + dfarc | [] [] [] | + dialog | [] [] [] [] [] [] [] | + dico | | + diffutils | [] [] [] [] [] [] [] [] [] | + dink | [] | + doodle | [] [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] | + exif | [] [] [] [] [] [] | + fetchmail | [] [] [] [] | + findutils | [] [] [] [] [] [] | + flex | [] [] [] | + freedink | [] [] [] | + gas | [] [] | + gawk | [] [] [] [] () [] | + gcal | [] | + gcc | [] | + gettext-examples | [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] | + gettext-tools | [] [] [] [] | + gip | [] [] [] [] [] [] | + gjay | [] | + gliv | [] () | + glunarclock | [] [] [] [] | + gnubiff | () [] () | + gnucash | () () () () () [] | + gnuedu | [] [] | + gnulib | [] [] [] [] [] [] | + gnunet | | + gnunet-gtk | [] | + gnutls | [] [] | + gold | [] [] | + gpe-aerial | [] [] [] | + gpe-beam | [] [] [] [] | + gpe-bluetooth | [] [] [] [] | + gpe-calendar | [] [] | + gpe-clock | [] [] [] [] [] | + gpe-conf | [] [] [] [] | + gpe-contacts | [] [] [] [] | + gpe-edit | [] [] [] | + gpe-filemanager | [] [] [] [] | + gpe-go | [] [] [] [] [] | + gpe-login | [] [] [] | + gpe-ownerinfo | [] [] [] [] [] | + gpe-package | [] [] [] | + gpe-sketchbook | [] [] [] [] | + gpe-su | [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] | + gpe-todo | [] [] [] | + gphoto2 | [] [] [] [] [] [] | + gprof | [] [] [] [] | + gpsdrive | [] [] [] | + gramadoir | [] [] [] | + grep | [] [] | + grub | [] [] [] [] | + gsasl | [] [] [] [] [] | + gss | [] [] [] [] [] | + gst-plugins-bad | [] [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] [] [] [] [] | + gtkam | [] [] [] [] [] | + gtkorphan | [] [] [] | + gtkspell | [] [] [] [] [] [] [] [] [] | + gutenprint | [] [] [] [] | + hello | [] [] [] | + help2man | [] [] | + hylafax | [] | + idutils | [] [] [] [] [] [] | + indent | [] [] [] [] [] [] [] [] | + iso_15924 | [] () [] [] | + iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | + iso_3166_2 | () [] [] [] | + iso_4217 | [] () [] [] [] [] | + iso_639 | [] () [] [] [] [] [] [] [] | + iso_639_3 | () [] [] | + jwhois | [] [] [] [] [] | + kbd | [] [] | + keytouch | [] [] [] [] [] [] | + keytouch-editor | [] [] [] [] [] | + keytouch-keyboa... | [] [] [] [] [] | + klavaro | [] [] | + latrine | [] [] [] | + ld | [] [] [] [] | + leafpad | [] [] [] [] [] [] [] () | + libc | [] [] [] [] [] | + libexif | [] | + libextractor | | + libgnutls | [] [] | + libgpewidget | [] [] [] [] | + libgpg-error | [] [] | + libgphoto2 | [] [] [] | + libgphoto2_port | [] [] [] | + libgsasl | [] [] [] [] [] | + libiconv | [] [] [] [] [] [] | + libidn | [] [] [] [] | + lifelines | () | + liferea | [] [] [] [] | + lilypond | [] [] | + linkdr | [] [] [] [] [] | + lordsawar | | + lprng | [] | + lynx | [] [] [] [] [] | + m4 | [] [] [] [] [] [] | + mailfromd | | + mailutils | [] [] | + make | [] [] [] [] [] [] [] [] [] | + man-db | [] [] | + man-db-manpages | [] | + minicom | [] [] [] [] [] | + mkisofs | [] [] [] [] | + myserver | | + nano | [] [] [] [] [] [] | + opcodes | [] [] [] [] | + parted | [] [] [] [] | + pies | | + popt | [] [] [] [] [] [] [] [] [] | + psmisc | [] [] [] | + pspp | | + pwdutils | [] [] | + radius | [] [] | + recode | [] [] [] [] [] [] [] [] | + rosegarden | () () () () () | + rpm | [] [] | + rush | | + sarg | [] | + screem | [] [] | + scrollkeeper | [] [] [] [] | + sed | [] [] [] [] [] [] [] [] | + sharutils | [] [] [] [] [] [] [] | + shishi | [] | + skencil | [] | + solfege | [] [] [] [] | + solfege-manual | [] [] | + soundtracker | [] [] | + sp | [] () | + sysstat | [] [] [] [] [] | + tar | [] [] [] [] [] [] [] | + texinfo | [] [] [] [] | + tin | [] | + unicode-han-tra... | | + unicode-transla... | [] [] | + util-linux-ng | [] [] [] [] [] [] | + vice | () () () | + vmm | [] | + vorbis-tools | [] | + wastesedge | () () | + wdiff | [] | + wget | [] [] [] [] [] [] [] [] | + wyslij-po | [] [] [] | + xchat | [] [] [] [] [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] [] [] | + +----------------------------------------------------+ + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 + + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + +-----------------------------------------------+ + a2ps | [] | + aegis | | + ant-phone | | + anubis | [] [] | + aspell | [] | + bash | | + bfd | | + bibshelf | [] [] | + binutils | | + bison | [] | + bison-runtime | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] | + bombono-dvd | | + buzztard | | + cflow | | + clisp | | + coreutils | [] | + cpio | | + cppi | | + cpplib | | + cryptsetup | | + dfarc | [] | + dialog | [] [] [] [] [] | + dico | | + diffutils | [] [] | + dink | | + doodle | | + e2fsprogs | | + enscript | | + exif | [] | + fetchmail | | + findutils | | + flex | | + freedink | [] | + gas | | + gawk | | + gcal | | + gcc | | + gettext-examples | [] [] [] [] | + gettext-runtime | [] | + gettext-tools | [] | + gip | [] [] | + gjay | | + gliv | | + glunarclock | [] | + gnubiff | | + gnucash | () () () () | + gnuedu | | + gnulib | | + gnunet | | + gnunet-gtk | | + gnutls | [] | + gold | | + gpe-aerial | [] | + gpe-beam | [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] | + gpe-clock | [] [] [] [] [] | + gpe-conf | [] [] | + gpe-contacts | [] [] | + gpe-edit | [] | + gpe-filemanager | [] [] | + gpe-go | [] [] [] | + gpe-login | [] | + gpe-ownerinfo | [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] | + gpe-timesheet | [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] [] | + gphoto2 | | + gprof | [] | + gpsdrive | | + gramadoir | | + grep | | + grub | | + gsasl | | + gss | | + gst-plugins-bad | [] [] [] [] | + gst-plugins-base | [] [] | + gst-plugins-good | [] [] | + gst-plugins-ugly | [] [] [] [] [] | + gstreamer | | + gtick | | + gtkam | [] | + gtkorphan | [] [] | + gtkspell | [] [] [] [] [] [] [] | + gutenprint | | + hello | [] [] [] | + help2man | | + hylafax | | + idutils | | + indent | | + iso_15924 | [] [] | + iso_3166 | [] [] () [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | [] [] | + iso_639 | [] [] | + iso_639_3 | [] | + jwhois | [] | + kbd | | + keytouch | [] | + keytouch-editor | [] | + keytouch-keyboa... | [] | + klavaro | [] | + latrine | [] | + ld | | + leafpad | [] [] [] | + libc | [] | + libexif | | + libextractor | | + libgnutls | [] | + libgpewidget | [] [] | + libgpg-error | | + libgphoto2 | | + libgphoto2_port | | + libgsasl | | + libiconv | | + libidn | | + lifelines | | + liferea | | + lilypond | | + linkdr | | + lordsawar | | + lprng | | + lynx | | + m4 | | + mailfromd | | + mailutils | | + make | [] | + man-db | | + man-db-manpages | | + minicom | [] | + mkisofs | | + myserver | | + nano | [] [] | + opcodes | | + parted | | + pies | | + popt | [] [] [] | + psmisc | | + pspp | | + pwdutils | | + radius | | + recode | | + rosegarden | | + rpm | | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] | + sed | | + sharutils | | + shishi | | + skencil | | + solfege | [] | + solfege-manual | | + soundtracker | | + sp | | + sysstat | [] | + tar | [] | + texinfo | [] | + tin | | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | | + vice | | + vmm | | + vorbis-tools | | + wastesedge | | + wdiff | | + wget | [] | + wyslij-po | | + xchat | [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] | + +-----------------------------------------------+ + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 + + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + +---------------------------------------------------+ + a2ps | [] [] [] [] [] [] [] [] | + aegis | [] [] [] | + ant-phone | [] [] | + anubis | [] [] [] | + aspell | [] [] [] [] [] | + bash | [] [] | + bfd | [] | + bibshelf | [] [] | + binutils | [] [] | + bison | [] [] [] | + bison-runtime | [] [] [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] | + bombono-dvd | [] () | + buzztard | [] [] | + cflow | [] | + clisp | [] [] | + coreutils | [] [] [] [] [] [] | + cpio | [] [] [] | + cppi | [] | + cpplib | [] | + cryptsetup | [] | + dfarc | [] | + dialog | [] [] [] [] | + dico | [] | + diffutils | [] [] [] [] [] [] | + dink | () | + doodle | [] [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] [] | + exif | [] [] [] () [] | + fetchmail | [] [] [] [] | + findutils | [] [] [] [] [] | + flex | [] [] [] [] [] | + freedink | [] [] | + gas | | + gawk | [] [] [] [] | + gcal | | + gcc | [] | + gettext-examples | [] [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] [] [] [] | + gettext-tools | [] [] [] [] [] [] | + gip | [] [] [] [] [] | + gjay | | + gliv | [] [] [] [] [] [] | + glunarclock | [] [] [] [] [] | + gnubiff | [] () | + gnucash | [] () () () | + gnuedu | [] | + gnulib | [] [] [] [] | + gnunet | | + gnunet-gtk | | + gnutls | [] [] | + gold | | + gpe-aerial | [] [] [] [] [] [] [] | + gpe-beam | [] [] [] [] [] [] [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] [] [] [] | + gpe-clock | [] [] [] [] [] [] [] [] | + gpe-conf | [] [] [] [] [] [] [] | + gpe-contacts | [] [] [] [] [] | + gpe-edit | [] [] [] | + gpe-filemanager | [] [] [] | + gpe-go | [] [] [] [] [] [] [] [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] [] [] [] [] [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] [] [] [] [] [] | + gpe-su | [] [] [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] [] | + gpe-todo | [] [] [] [] [] | + gphoto2 | [] [] [] [] [] [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] | + gramadoir | [] [] | + grep | [] [] [] [] | + grub | [] [] [] | + gsasl | [] [] [] [] | + gss | [] [] [] | + gst-plugins-bad | [] [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] [] [] | + gtkam | [] [] [] [] [] [] | + gtkorphan | [] | + gtkspell | [] [] [] [] [] [] [] [] [] [] | + gutenprint | [] [] | + hello | [] [] [] [] | + help2man | [] [] | + hylafax | [] | + idutils | [] [] [] [] [] | + indent | [] [] [] [] [] [] [] | + iso_15924 | [] [] [] [] | + iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | + iso_3166_2 | [] [] [] | + iso_4217 | [] [] [] [] [] [] [] [] | + iso_639 | [] [] [] [] [] [] [] [] [] | + iso_639_3 | [] [] | + jwhois | [] [] [] [] | + kbd | [] [] [] | + keytouch | [] [] [] | + keytouch-editor | [] [] [] | + keytouch-keyboa... | [] [] [] | + klavaro | [] [] | + latrine | [] [] | + ld | | + leafpad | [] [] [] [] [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] [] () [] | + libextractor | | + libgnutls | [] [] | + libgpewidget | [] [] [] | + libgpg-error | [] [] | + libgphoto2 | [] [] | + libgphoto2_port | [] [] [] [] [] | + libgsasl | [] [] [] [] [] | + libiconv | [] [] [] [] [] | + libidn | [] [] | + lifelines | [] [] | + liferea | [] [] [] [] [] () () [] | + lilypond | [] | + linkdr | [] [] [] | + lordsawar | | + lprng | [] | + lynx | [] [] [] | + m4 | [] [] [] [] [] | + mailfromd | [] | + mailutils | [] | + make | [] [] [] [] | + man-db | [] [] [] | + man-db-manpages | [] [] [] | + minicom | [] [] [] [] | + mkisofs | [] [] [] | + myserver | | + nano | [] [] [] [] | + opcodes | [] [] | + parted | [] [] [] [] | + pies | [] | + popt | [] [] [] [] | + psmisc | [] [] [] | + pspp | [] [] | + pwdutils | [] | + radius | [] [] [] | + recode | [] [] [] [] [] [] [] [] | + rosegarden | () () | + rpm | [] [] [] | + rush | [] [] | + sarg | | + screem | | + scrollkeeper | [] [] [] [] [] [] [] [] | + sed | [] [] [] [] [] [] [] [] [] | + sharutils | [] [] [] [] | + shishi | [] | + skencil | [] [] | + solfege | [] [] [] [] | + solfege-manual | [] [] [] | + soundtracker | [] | + sp | | + sysstat | [] [] [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] [] | + tin | [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | [] [] [] [] [] | + vice | [] | + vmm | [] | + vorbis-tools | [] [] | + wastesedge | [] | + wdiff | [] [] | + wget | [] [] [] [] [] [] [] | + wyslij-po | [] [] [] | + xchat | [] [] [] [] [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] | + +---------------------------------------------------+ + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 - tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu + sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ - Compendium | [] [] [] [] | 19 - a2ps | [] [] [] | 19 - aegis | [] | 1 - ant-phone | [] [] | 6 - anubis | [] [] [] | 11 - ap-utils | () [] | 4 - aspell | [] [] [] | 16 - bash | [] | 6 - bfd | | 2 - bibshelf | [] | 7 - binutils | [] [] [] [] | 9 - bison | [] [] [] [] | 20 - bison-runtime | [] [] [] [] | 18 - bluez-pin | [] [] [] [] [] [] | 28 - cflow | [] [] | 5 - clisp | | 9 - console-tools | [] [] | 5 - coreutils | [] [] [] | 18 - cpio | [] [] [] [] | 11 - cpplib | [] [] [] [] [] | 12 - cryptonit | [] | 6 - dialog | [] [] [] | 9 - diffutils | [] [] [] [] [] | 29 - doodle | [] | 6 - e2fsprogs | [] [] | 10 - enscript | [] [] [] | 16 - fetchmail | [] [] | 12 - findutils | [] [] [] | 11 - findutils_stable | [] [] [] [] | 18 - flex | [] [] | 15 - fslint | [] | 2 - gas | [] | 3 - gawk | [] [] [] | 16 - gcal | [] | 5 - gcc | [] [] [] | 7 - gettext-examples | [] [] [] [] [] [] | 29 - gettext-runtime | [] [] [] [] [] [] | 28 - gettext-tools | [] [] [] [] [] | 20 - gip | [] [] | 13 - gliv | [] [] | 11 - glunarclock | [] [] [] | 15 - gmult | [] [] [] [] | 16 - gnubiff | [] | 2 - gnucash | () [] | 5 - gnuedu | [] | 2 - gnulib | [] | 10 - gnunet | | 0 - gnunet-gtk | [] [] | 3 - gnutls | | 4 - gpe-aerial | [] [] | 14 - gpe-beam | [] [] | 14 - gpe-calendar | [] [] | 7 - gpe-clock | [] [] [] [] | 21 - gpe-conf | [] [] [] | 16 - gpe-contacts | [] [] | 10 - gpe-edit | [] [] [] [] [] | 22 - gpe-filemanager | [] [] | 7 - gpe-go | [] [] [] [] | 19 - gpe-login | [] [] [] [] [] | 21 - gpe-ownerinfo | [] [] [] [] | 21 - gpe-package | [] | 6 - gpe-sketchbook | [] [] | 16 - gpe-su | [] [] [] [] | 21 - gpe-taskmanager | [] [] [] [] | 21 - gpe-timesheet | [] [] [] [] | 18 - gpe-today | [] [] [] [] [] | 21 - gpe-todo | [] [] | 8 - gphoto2 | [] [] [] [] | 21 - gprof | [] [] | 13 - gpsdrive | [] | 5 - gramadoir | [] | 7 - grep | [] | 12 - gretl | | 6 - gsasl | [] [] [] | 9 - gss | [] | 7 - gst-plugins-bad | [] [] [] | 13 - gst-plugins-base | [] [] | 11 - gst-plugins-good | [] [] [] [] [] | 16 - gst-plugins-ugly | [] [] [] | 13 - gstreamer | [] [] [] | 18 - gtick | [] [] | 7 - gtkam | [] | 16 - gtkorphan | [] | 7 - gtkspell | [] [] [] [] [] [] | 27 - gutenprint | | 4 - hello | [] [] [] [] [] | 38 - herrie | [] [] | 8 - hylafax | | 0 - idutils | [] [] | 15 - indent | [] [] [] [] [] | 28 - iso_15924 | [] [] | 4 - iso_3166 | [] [] [] [] [] [] [] [] [] | 54 - iso_3166_2 | [] [] | 4 - iso_4217 | [] [] [] [] [] | 24 - iso_639 | [] [] [] [] [] | 26 - jpilot | [] [] [] [] | 7 - jtag | [] | 3 - jwhois | [] [] [] | 13 - kbd | [] [] [] | 13 - keytouch | [] | 8 - keytouch-editor | [] | 5 - keytouch-keyboa... | [] | 5 - latrine | [] [] | 5 - ld | [] [] [] [] | 10 - leafpad | [] [] [] [] [] | 24 - libc | [] [] [] | 19 - libexif | [] | 5 - libextractor | [] | 5 - libgpewidget | [] [] [] | 20 - libgpg-error | [] | 6 - libgphoto2 | [] [] | 9 - libgphoto2_port | [] [] [] | 11 - libgsasl | [] | 8 - libiconv | [] [] | 11 - libidn | [] [] | 11 - lifelines | | 4 - lilypond | [] | 6 - lingoteach | [] | 6 - lprng | [] | 2 - lynx | [] [] [] | 15 - m4 | [] [] [] | 18 - mailfromd | [] [] | 3 - mailutils | [] [] | 8 - make | [] [] [] | 20 - man-db | [] | 9 - minicom | [] | 14 - nano | [] [] [] | 20 - opcodes | [] [] | 10 - parted | [] [] [] | 11 - pilot-qof | [] | 1 - popt | [] [] [] [] | 18 - psmisc | [] [] | 10 - pwdutils | [] | 3 - qof | [] | 4 - radius | [] [] | 7 - recode | [] [] [] | 25 - rpm | [] [] [] [] | 13 - screem | [] | 2 - scrollkeeper | [] [] [] [] | 26 - sed | [] [] [] [] | 23 - shared-mime-info | [] [] [] | 29 - sharutils | [] [] [] | 23 - shishi | [] | 3 - skencil | [] | 7 - solfege | [] | 3 - soundtracker | [] [] | 9 - sp | [] | 3 - system-tools-ba... | [] [] [] [] [] [] [] | 38 - tar | [] [] [] | 17 - texinfo | [] [] [] | 15 - tin | | 1 - tuxpaint | [] [] [] | 19 + a2ps | [] [] [] [] [] | 27 + aegis | [] | 9 + ant-phone | [] [] [] [] | 9 + anubis | [] [] [] [] | 15 + aspell | [] [] [] | 20 + bash | [] [] [] | 12 + bfd | [] | 6 + bibshelf | [] [] [] | 16 + binutils | [] [] | 8 + bison | [] [] | 12 + bison-runtime | [] [] [] [] [] [] | 29 + bluez-pin | [] [] [] [] [] [] [] [] | 37 + bombono-dvd | [] | 4 + buzztard | [] | 7 + cflow | [] [] [] | 9 + clisp | | 10 + coreutils | [] [] [] [] | 22 + cpio | [] [] [] [] [] [] | 13 + cppi | [] [] | 5 + cpplib | [] [] [] [] [] [] | 14 + cryptsetup | [] [] | 7 + dfarc | [] | 9 + dialog | [] [] [] [] [] [] [] | 30 + dico | [] | 2 + diffutils | [] [] [] [] [] [] | 30 + dink | | 4 + doodle | [] [] | 7 + e2fsprogs | [] [] [] | 11 + enscript | [] [] [] [] | 17 + exif | [] [] [] | 16 + fetchmail | [] [] [] | 17 + findutils | [] [] [] [] [] | 20 + flex | [] [] [] [] | 15 + freedink | [] | 10 + gas | [] | 4 + gawk | [] [] [] [] | 18 + gcal | [] [] | 5 + gcc | [] [] [] | 7 + gettext-examples | [] [] [] [] [] [] [] | 34 + gettext-runtime | [] [] [] [] [] [] [] | 29 + gettext-tools | [] [] [] [] [] [] | 22 + gip | [] [] [] [] | 22 + gjay | [] | 3 + gliv | [] [] [] | 14 + glunarclock | [] [] [] [] [] | 19 + gnubiff | [] [] | 4 + gnucash | () [] () [] () | 10 + gnuedu | [] [] | 7 + gnulib | [] [] [] [] | 16 + gnunet | [] | 1 + gnunet-gtk | [] [] [] | 5 + gnutls | [] [] [] | 10 + gold | [] | 4 + gpe-aerial | [] [] [] | 18 + gpe-beam | [] [] [] | 19 + gpe-bluetooth | [] [] [] | 13 + gpe-calendar | [] [] [] [] | 12 + gpe-clock | [] [] [] [] [] | 28 + gpe-conf | [] [] [] [] | 20 + gpe-contacts | [] [] [] | 17 + gpe-edit | [] [] [] | 12 + gpe-filemanager | [] [] [] [] | 16 + gpe-go | [] [] [] [] [] | 25 + gpe-login | [] [] [] | 11 + gpe-ownerinfo | [] [] [] [] [] | 25 + gpe-package | [] [] [] | 13 + gpe-sketchbook | [] [] [] | 20 + gpe-su | [] [] [] [] [] | 30 + gpe-taskmanager | [] [] [] [] [] | 29 + gpe-timesheet | [] [] [] [] [] | 25 + gpe-today | [] [] [] [] [] [] | 30 + gpe-todo | [] [] [] [] | 17 + gphoto2 | [] [] [] [] [] | 24 + gprof | [] [] [] | 15 + gpsdrive | [] [] [] | 11 + gramadoir | [] [] [] | 11 + grep | [] [] [] | 10 + grub | [] [] [] | 14 + gsasl | [] [] [] [] | 14 + gss | [] [] [] | 11 + gst-plugins-bad | [] [] [] [] | 26 + gst-plugins-base | [] [] [] [] [] | 24 + gst-plugins-good | [] [] [] [] | 24 + gst-plugins-ugly | [] [] [] [] [] | 29 + gstreamer | [] [] [] [] | 22 + gtick | [] [] [] | 13 + gtkam | [] [] [] | 20 + gtkorphan | [] [] [] | 14 + gtkspell | [] [] [] [] [] [] [] [] [] | 45 + gutenprint | [] | 10 + hello | [] [] [] [] [] [] | 21 + help2man | [] [] | 7 + hylafax | [] | 5 + idutils | [] [] [] [] | 17 + indent | [] [] [] [] [] [] | 30 + iso_15924 | () [] () [] [] | 16 + iso_3166 | [] [] () [] [] () [] [] [] () | 53 + iso_3166_2 | () [] () [] | 9 + iso_4217 | [] () [] [] () [] [] | 26 + iso_639 | [] [] [] () [] () [] [] [] [] | 38 + iso_639_3 | [] () | 8 + jwhois | [] [] [] [] [] | 16 + kbd | [] [] [] [] [] | 15 + keytouch | [] [] [] | 16 + keytouch-editor | [] [] [] | 14 + keytouch-keyboa... | [] [] [] | 14 + klavaro | [] | 11 + latrine | [] [] [] | 10 + ld | [] [] [] [] | 11 + leafpad | [] [] [] [] [] [] | 33 + libc | [] [] [] [] [] | 21 + libexif | [] () | 7 + libextractor | [] | 1 + libgnutls | [] [] [] | 9 + libgpewidget | [] [] [] | 14 + libgpg-error | [] [] [] | 9 + libgphoto2 | [] [] | 8 + libgphoto2_port | [] [] [] [] | 14 + libgsasl | [] [] [] | 13 + libiconv | [] [] [] [] | 21 + libidn | () [] [] | 11 + lifelines | [] | 4 + liferea | [] [] [] | 21 + lilypond | [] | 7 + linkdr | [] [] [] [] [] | 17 + lordsawar | | 1 + lprng | [] | 3 + lynx | [] [] [] [] | 17 + m4 | [] [] [] [] | 19 + mailfromd | [] [] | 3 + mailutils | [] | 5 + make | [] [] [] [] | 21 + man-db | [] [] [] | 8 + man-db-manpages | | 4 + minicom | [] [] | 16 + mkisofs | [] [] | 9 + myserver | | 0 + nano | [] [] [] [] | 21 + opcodes | [] [] [] | 11 + parted | [] [] [] [] [] | 15 + pies | [] [] | 3 + popt | [] [] [] [] [] [] | 27 + psmisc | [] [] | 11 + pspp | | 4 + pwdutils | [] [] | 6 + radius | [] [] | 9 + recode | [] [] [] [] | 28 + rosegarden | () | 0 + rpm | [] [] [] | 11 + rush | [] [] | 4 + sarg | | 1 + screem | [] | 3 + scrollkeeper | [] [] [] [] [] | 27 + sed | [] [] [] [] [] | 30 + sharutils | [] [] [] [] [] | 22 + shishi | [] | 3 + skencil | [] [] | 7 + solfege | [] [] [] [] | 16 + solfege-manual | [] | 8 + soundtracker | [] [] [] | 9 + sp | [] | 3 + sysstat | [] [] | 15 + tar | [] [] [] [] [] [] | 23 + texinfo | [] [] [] [] [] | 17 + tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 - util-linux | [] [] [] | 20 - util-linux-ng | [] [] [] | 20 - vorbis-tools | [] [] | 4 - wastesedge | | 1 - wdiff | [] [] | 23 - wget | [] [] [] | 20 - xchat | [] [] [] [] | 29 - xkeyboard-config | [] [] [] | 14 - xpad | [] [] [] | 15 + util-linux-ng | [] [] [] [] | 20 + vice | () () | 1 + vmm | [] | 4 + vorbis-tools | [] | 6 + wastesedge | | 2 + wdiff | [] [] | 7 + wget | [] [] [] [] [] | 26 + wyslij-po | [] [] | 8 + xchat | [] [] [] [] [] [] | 36 + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 + xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ - 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu - 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036 + 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW + 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are @@ -1042,12 +1256,12 @@ lag between the mere existence a PO file and its wide availability in a distribution. - If November 2007 seems to be old, you may fetch a more recent copy -of this `ABOUT-NLS' file on most GNU archive sites. The most -up-to-date matrix with full percentage details can be found at + If June 2010 seems to be old, you may fetch a more recent copy of +this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date +matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. -1.6 Using `gettext' in new packages +1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to diff -Nru gettext-0.17/gettext-runtime/aclocal.m4 gettext-0.18.1.1/gettext-runtime/aclocal.m4 --- gettext-0.17/gettext-runtime/aclocal.m4 2007-11-06 23:33:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/aclocal.m4 2010-06-06 20:11:30.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,8 +11,6646 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- + +# serial 52 AC_PROG_LIBTOOL + + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +_LT_REQUIRED_DARWIN_CHECKS + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# -------------------------- +# Check for some things on darwin +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + case $host_os in + rhapsody* | darwin1.[[0123]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac +]) + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# ------------------ +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# --------------------------------------------------------------------- +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + + +# AC_LIBTOOL_DLOPEN_SELF +# ---------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + + +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) +# --------------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* +]) +])# AC_LIBTOOL_PROG_CC_C_O + + +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- +# Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + +hard_links="nottested" +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS + + +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- +# Check hardcoding attributes. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_AC_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP + + +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- +# PORTME Fill in your ld.so characteristics +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +m4_if($1,[],[ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 DLLs +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +# set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognize shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognize a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' +# (note the single quotes!). If your package is not flat and you're not +# using automake, define top_builddir and top_srcdir appropriately in +# the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# and an installed libltdl is not found, it is assumed to be `libltdl'. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and top_srcdir +# appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + +# _LT_AC_PROG_CXXCPP +# ------------------ +AC_DEFUN([_LT_AC_PROG_CXXCPP], +[ +AC_REQUIRE([AC_PROG_CXX]) +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +fi +])# _LT_AC_PROG_CXXCPP + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# ------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF + +# Report which library types will actually be built +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + $as_unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + $as_unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) +case " $_LT_AC_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac +])# AC_LIBTOOL_POSTDEP_PREDEP + +# AC_LIBTOOL_LANG_F77_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) +AC_DEFUN([_LT_AC_LANG_F77_CONFIG], +[AC_REQUIRE([AC_PROG_F77]) +AC_LANG_PUSH(Fortran 77) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="\ + subroutine t + return + end +" + +# Code to be used in simple link tests +lt_simple_link_test_code="\ + program t + end +" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${F77-"f77"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +_LT_AC_TAGVAR(GCC, $1)="$G77" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_F77_CONFIG + + +# AC_LIBTOOL_LANG_GCJ_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], +[AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_GCJ_CONFIG + + +# AC_LIBTOOL_LANG_RC_CONFIG +# ------------------------- +# Ensure that the configuration vars for the Windows resource compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) +AC_DEFUN([_LT_AC_LANG_RC_CONFIG], +[AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_RC_CONFIG + + +# AC_LIBTOOL_CONFIG([TAGNAME]) +# ---------------------------- +# If TAGNAME is not passed, then create an initial libtool script +# with a default configuration from the untagged config vars. Otherwise +# add code to config.status for appending the configuration named by +# TAGNAME from the matching tagged config vars. +AC_DEFUN([AC_LIBTOOL_CONFIG], +[# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + _LT_AC_TAGVAR(compiler, $1) \ + _LT_AC_TAGVAR(CC, $1) \ + _LT_AC_TAGVAR(LD, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ + _LT_AC_TAGVAR(old_archive_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ + _LT_AC_TAGVAR(predep_objects, $1) \ + _LT_AC_TAGVAR(postdep_objects, $1) \ + _LT_AC_TAGVAR(predeps, $1) \ + _LT_AC_TAGVAR(postdeps, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ + _LT_AC_TAGVAR(archive_cmds, $1) \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ + _LT_AC_TAGVAR(postinstall_cmds, $1) \ + _LT_AC_TAGVAR(postuninstall_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ + _LT_AC_TAGVAR(allow_undefined_flag, $1) \ + _LT_AC_TAGVAR(no_undefined_flag, $1) \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ + _LT_AC_TAGVAR(hardcode_automatic, $1) \ + _LT_AC_TAGVAR(module_cmds, $1) \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) \ + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ + _LT_AC_TAGVAR(fix_srcfile_path, $1) \ + _LT_AC_TAGVAR(exclude_expsyms, $1) \ + _LT_AC_TAGVAR(include_expsyms, $1); do + + case $var in + _LT_AC_TAGVAR(old_archive_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ + _LT_AC_TAGVAR(archive_cmds, $1) | \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(module_cmds, $1) | \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\[$]0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` + ;; + esac + +ifelse([$1], [], + [cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + AC_MSG_NOTICE([creating $ofile])], + [cfgfile="$ofile"]) + + cat <<__EOF__ >> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) + +# Is the compiler the GNU C compiler? +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + +# Commands used to build and install a shared archive. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + +# The commands to list exported symbols. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + +# Symbols that must always be exported. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) + +__EOF__ + +ifelse([$1],[], [ + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([LT_AC_PROG_SED]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) +]) + + +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + _LT_CC_BASENAME([$compiler]) + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi[[45]]*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ +])# _LT_AC_FILE_LTDLL_C + + +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) + + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) +]) + +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + + +# Cheap backport of AS_EXECUTABLE_P and required macros +# from Autoconf 2.59; we should not use $as_executable_p directly. + +# _AS_TEST_PREPARE +# ---------------- +m4_ifndef([_AS_TEST_PREPARE], +[m4_defun([_AS_TEST_PREPARE], +[if test -x / >/dev/null 2>&1; then + as_executable_p='test -x' +else + as_executable_p='test -f' +fi +])])# _AS_TEST_PREPARE + +# AS_EXECUTABLE_P +# --------------- +# Check whether a file is executable. +m4_ifndef([AS_EXECUTABLE_P], +[m4_defun([AS_EXECUTABLE_P], +[AS_REQUIRE([_AS_TEST_PREPARE])dnl +$as_executable_p $1[]dnl +])])# AS_EXECUTABLE_P + +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -24,10 +6662,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' +[am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -41,10 +6679,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -101,14 +6741,14 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 8 +# serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- @@ -121,6 +6761,7 @@ AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' @@ -134,14 +6775,14 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 9 +# serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, @@ -198,6 +6839,16 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and @@ -215,7 +6866,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -225,19 +6886,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; none) break ;; esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message @@ -294,57 +6959,68 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -#serial 3 +#serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done done -done +} ])# _AM_OUTPUT_DEPENDENCY_COMMANDS @@ -376,13 +7052,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 +# serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. @@ -399,7 +7075,7 @@ # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl +[AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -450,8 +7126,8 @@ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -459,24 +7135,37 @@ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -487,18 +7176,19 @@ # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $1 | $1:* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -509,7 +7199,14 @@ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -535,13 +7232,13 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # AM_MAKE_INCLUDE() # ----------------- @@ -550,7 +7247,7 @@ [am_make=${MAKE-make} cat > confinc << 'END' am__doit: - @echo done + @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. @@ -560,24 +7257,24 @@ _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) @@ -585,14 +7282,14 @@ rm -f confinc confmf ]) -# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_PROG_CC_C_O # -------------- @@ -604,8 +7301,9 @@ # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC -ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. @@ -621,14 +7319,14 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -645,7 +7343,14 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -683,13 +7388,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -706,7 +7411,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -716,14 +7421,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -732,16 +7437,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -766,6 +7484,33 @@ fi AC_MSG_RESULT(yes)]) +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -794,18 +7539,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 2 + # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. @@ -902,12 +7654,18 @@ AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([gnulib-m4/00gnulib.m4]) m4_include([gnulib-m4/alloca.m4]) +m4_include([gnulib-m4/asm-underscore.m4]) m4_include([gnulib-m4/atexit.m4]) -m4_include([gnulib-m4/canonicalize-lgpl.m4]) +m4_include([gnulib-m4/canonicalize.m4]) m4_include([gnulib-m4/csharp.m4]) m4_include([gnulib-m4/csharpcomp.m4]) +m4_include([gnulib-m4/dos.m4]) +m4_include([gnulib-m4/double-slash-root.m4]) m4_include([gnulib-m4/eealloc.m4]) +m4_include([gnulib-m4/environ.m4]) +m4_include([gnulib-m4/errno_h.m4]) m4_include([gnulib-m4/error.m4]) m4_include([gnulib-m4/extensions.m4]) m4_include([gnulib-m4/getopt.m4]) @@ -918,45 +7676,67 @@ m4_include([gnulib-m4/include_next.m4]) m4_include([gnulib-m4/java.m4]) m4_include([gnulib-m4/javacomp.m4]) +m4_include([gnulib-m4/lib-ld.m4]) +m4_include([gnulib-m4/lib-link.m4]) +m4_include([gnulib-m4/lib-prefix.m4]) +m4_include([gnulib-m4/libunistring-base.m4]) m4_include([gnulib-m4/localcharset.m4]) +m4_include([gnulib-m4/locale-fr.m4]) +m4_include([gnulib-m4/locale-ja.m4]) +m4_include([gnulib-m4/locale-zh.m4]) +m4_include([gnulib-m4/lstat.m4]) m4_include([gnulib-m4/malloc.m4]) m4_include([gnulib-m4/malloca.m4]) m4_include([gnulib-m4/mbchar.m4]) m4_include([gnulib-m4/mbiter.m4]) m4_include([gnulib-m4/mbrtowc.m4]) +m4_include([gnulib-m4/mbsinit.m4]) m4_include([gnulib-m4/mbslen.m4]) -m4_include([gnulib-m4/mbsstr.m4]) +m4_include([gnulib-m4/mbstate_t.m4]) m4_include([gnulib-m4/memchr.m4]) m4_include([gnulib-m4/memmove.m4]) -m4_include([gnulib-m4/onceonly_2_57.m4]) +m4_include([gnulib-m4/mmap-anon.m4]) +m4_include([gnulib-m4/multiarch.m4]) +m4_include([gnulib-m4/onceonly.m4]) m4_include([gnulib-m4/pathmax.m4]) m4_include([gnulib-m4/readlink.m4]) m4_include([gnulib-m4/relocatable-lib.m4]) m4_include([gnulib-m4/relocatable.m4]) m4_include([gnulib-m4/setenv.m4]) +m4_include([gnulib-m4/signal_h.m4]) +m4_include([gnulib-m4/signalblocking.m4]) +m4_include([gnulib-m4/sigpipe.m4]) m4_include([gnulib-m4/ssize_t.m4]) +m4_include([gnulib-m4/stat.m4]) m4_include([gnulib-m4/stdbool.m4]) +m4_include([gnulib-m4/stddef_h.m4]) m4_include([gnulib-m4/stdint.m4]) +m4_include([gnulib-m4/stdio_h.m4]) m4_include([gnulib-m4/stdlib_h.m4]) -m4_include([gnulib-m4/strdup.m4]) m4_include([gnulib-m4/strerror.m4]) m4_include([gnulib-m4/string_h.m4]) m4_include([gnulib-m4/strnlen.m4]) m4_include([gnulib-m4/strtol.m4]) m4_include([gnulib-m4/strtoul.m4]) +m4_include([gnulib-m4/sys_stat_h.m4]) +m4_include([gnulib-m4/time_h.m4]) m4_include([gnulib-m4/unistd_h.m4]) m4_include([gnulib-m4/unlocked-io.m4]) -m4_include([gnulib-m4/wchar.m4]) -m4_include([gnulib-m4/wctype.m4]) +m4_include([gnulib-m4/warn-on-use.m4]) +m4_include([gnulib-m4/wchar_h.m4]) +m4_include([gnulib-m4/wctype_h.m4]) m4_include([gnulib-m4/wcwidth.m4]) m4_include([../m4/fixautomake.m4]) +m4_include([../m4/init-package-version.m4]) m4_include([../m4/libtool.m4]) +m4_include([../m4/ltoptions.m4]) +m4_include([../m4/ltsugar.m4]) +m4_include([../m4/ltversion.m4]) +m4_include([../m4/lt~obsolete.m4]) m4_include([../m4/woe32-dll.m4]) -m4_include([../autoconf-lib-link/m4/lib-ld.m4]) -m4_include([../autoconf-lib-link/m4/lib-link.m4]) -m4_include([../autoconf-lib-link/m4/lib-prefix.m4]) m4_include([m4/ansi-c++.m4]) m4_include([m4/codeset.m4]) +m4_include([m4/fcntl-o.m4]) m4_include([m4/gettext.m4]) m4_include([m4/glibc2.m4]) m4_include([m4/glibc21.m4]) @@ -976,6 +7756,7 @@ m4_include([m4/progtest.m4]) m4_include([m4/size_max.m4]) m4_include([m4/stdint_h.m4]) +m4_include([m4/threadlib.m4]) m4_include([m4/uintmax_t.m4]) m4_include([m4/visibility.m4]) m4_include([m4/wchar_t.m4]) diff -Nru gettext-0.17/gettext-runtime/ChangeLog gettext-0.18.1.1/gettext-runtime/ChangeLog --- gettext-0.17/gettext-runtime/ChangeLog 2007-11-06 23:27:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,48 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-04-02 Bruno Haible + + * Makefile.am (ACLOCAL_AMFLAGS): Remove "-I ../autoconf-lib-link/m4" + option. + +2009-12-26 Bruno Haible + + * NEWS: Mention the use of the thread-specific locale on MacOS X. + +2009-05-23 Bruno Haible + + * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. + +2009-05-23 Bruno Haible + + * configure.ac: Invoke gl_INIT_PACKAGE. Use the preferred form of + AM_INIT_AUTOMAKE. + +2009-05-21 Bruno Haible + + Assume automake >= 1.10.2. + * configure.ac (AC_CONFIG_FILES): Remove FIX_MAKEFILE_COMPILE + invocations. + +2009-03-25 Bruno Haible + + Fix the handling of Windows resources in shared libraries. + * configure.ac: Invoke LT_LANG for 'Windows Resource'. + +2009-01-14 Bruno Haible + + * configure.ac: More consistent m4 quoting. + +2008-04-20 Bruno Haible + + * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/config.h.in gettext-0.18.1.1/gettext-runtime/config.h.in --- gettext-0.17/gettext-runtime/config.h.in 2007-11-06 23:34:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/config.h.in 2010-06-06 20:11:34.000000000 +0000 @@ -1,5 +1,9 @@ /* config.h.in. Generated from configure.ac by autoheader. */ +/* Define if the compiler is building for multiple architectures of Apple + platforms at once. */ +#undef AA_APPLE_UNIVERSAL_BUILD + /* Define to the number of bits in type 'ptrdiff_t'. */ #undef BITSIZEOF_PTRDIFF_T @@ -29,16 +33,97 @@ /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA +/* Define to 1 if // is a file system root distinct from /. */ +#undef DOUBLE_SLASH_IS_DISTINCT_ROOT + /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS -/* Define to 1 if the package shall run at any location in the filesystem. */ +/* Define to 1 if the package shall run at any location in the file system. */ #undef ENABLE_RELOCATABLE -/* Define to 1 when using the gnulib module fwriteerror. */ +/* Define on systems for which file names may have a so-called `drive letter' + prefix, define this to compute the length of that prefix, including the + colon. */ +#undef FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX + +/* Define if the backslash character may also serve as a file name component + separator. */ +#undef FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR + +/* Define if a drive letter prefix denotes a relative path if it is not + followed by a file name component separator. */ +#undef FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE + +/* Define to 1 if realpath() can malloc memory, always gives an absolute path, + and handles trailing slash correctly. */ +#undef FUNC_REALPATH_WORKS + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module canonicalize-lgpl shall be considered present. */ +#undef GNULIB_CANONICALIZE_LGPL + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module fwriteerror shall be considered present. */ #undef GNULIB_FWRITEERROR +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module sigpipe shall be considered present. */ +#undef GNULIB_SIGPIPE + +/* Define to 1 when the gnulib module canonicalize_file_name should be tested. + */ +#undef GNULIB_TEST_CANONICALIZE_FILE_NAME + +/* Define to 1 when the gnulib module environ should be tested. */ +#undef GNULIB_TEST_ENVIRON + +/* Define to 1 when the gnulib module getopt-gnu should be tested. */ +#undef GNULIB_TEST_GETOPT_GNU + +/* Define to 1 when the gnulib module lstat should be tested. */ +#undef GNULIB_TEST_LSTAT + +/* Define to 1 when the gnulib module malloc-posix should be tested. */ +#undef GNULIB_TEST_MALLOC_POSIX + +/* Define to 1 when the gnulib module mbrtowc should be tested. */ +#undef GNULIB_TEST_MBRTOWC + +/* Define to 1 when the gnulib module mbsinit should be tested. */ +#undef GNULIB_TEST_MBSINIT + +/* Define to 1 when the gnulib module mbslen should be tested. */ +#undef GNULIB_TEST_MBSLEN + +/* Define to 1 when the gnulib module mbsstr should be tested. */ +#undef GNULIB_TEST_MBSSTR + +/* Define to 1 when the gnulib module memchr should be tested. */ +#undef GNULIB_TEST_MEMCHR + +/* Define to 1 when the gnulib module readlink should be tested. */ +#undef GNULIB_TEST_READLINK + +/* Define to 1 when the gnulib module realpath should be tested. */ +#undef GNULIB_TEST_REALPATH + +/* Define to 1 when the gnulib module sigprocmask should be tested. */ +#undef GNULIB_TEST_SIGPROCMASK + +/* Define to 1 when the gnulib module stat should be tested. */ +#undef GNULIB_TEST_STAT + +/* Define to 1 when the gnulib module strerror should be tested. */ +#undef GNULIB_TEST_STRERROR + +/* Define to 1 when the gnulib module strnlen should be tested. */ +#undef GNULIB_TEST_STRNLEN + +/* Define to 1 when the gnulib module wcwidth should be tested. */ +#undef GNULIB_TEST_WCWIDTH + /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA @@ -85,10 +170,6 @@ */ #undef HAVE_DCGETTEXT -/* Define to 1 if you have the declaration of `canonicalize_file_name', and to - 0 if you don't. */ -#undef HAVE_DECL_CANONICALIZE_FILE_NAME - /* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_CLEARERR_UNLOCKED @@ -137,6 +218,22 @@ */ #undef HAVE_DECL_GETENV +/* Define to 1 if you have the declaration of `getopt_clip', and to 0 if you + don't. */ +#undef HAVE_DECL_GETOPT_CLIP + +/* Define to 1 if you have the declaration of `optreset', and to 0 if you + don't. */ +#undef HAVE_DECL_OPTRESET + +/* Define to 1 if you have the declaration of `program_invocation_name', and + to 0 if you don't. */ +#undef HAVE_DECL_PROGRAM_INVOCATION_NAME + +/* Define to 1 if you have the declaration of `program_invocation_short_name', + and to 0 if you don't. */ +#undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME + /* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_PUTCHAR_UNLOCKED @@ -145,10 +242,6 @@ don't. */ #undef HAVE_DECL_PUTC_UNLOCKED -/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. - */ -#undef HAVE_DECL_STRDUP - /* Define to 1 if you have the declaration of `strerror', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR @@ -179,6 +272,9 @@ /* Define if you have the declaration of environ. */ #undef HAVE_ENVIRON_DECL +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + /* Define to 1 if you have the `fwprintf' function. */ #undef HAVE_FWPRINTF @@ -215,9 +311,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ICONV_H -/* Define if your compiler supports the #include_next directive. */ -#undef HAVE_INCLUDE_NEXT - /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T @@ -228,6 +321,9 @@ declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX +/* Define to 1 if you have the `iswblank' function. */ +#undef HAVE_ISWBLANK + /* Define to 1 if you have the `iswcntrl' function. */ #undef HAVE_ISWCNTRL @@ -243,15 +339,28 @@ /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT +/* Define to 1 if you have the `lstat' function. */ +#undef HAVE_LSTAT + /* Define to 1 if you have the header file. */ #undef HAVE_MACH_O_DYLD_H /* Define if the 'malloc' function is POSIX compliant. */ #undef HAVE_MALLOC_POSIX -/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ +/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including + config.h and . */ +#undef HAVE_MAP_ANONYMOUS + +/* Define to 1 if you have the `mbrtowc' function. */ #undef HAVE_MBRTOWC +/* Define to 1 if you have the `mbsinit' function. */ +#undef HAVE_MBSINIT + +/* Define to 1 if you have the `mbslen' function. */ +#undef HAVE_MBSLEN + /* Define to 1 if declares mbstate_t. */ #undef HAVE_MBSTATE_T @@ -270,12 +379,17 @@ /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP +/* Define to 1 if you have the `mprotect' function. */ +#undef HAVE_MPROTECT + /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP -/* Define if you have and it defines the NL_LOCALE_NAME macro if - _GNU_SOURCE is defined. */ -#undef HAVE_NL_LOCALE_NAME +/* Define to 1 if you have the `newlocale' function. */ +#undef HAVE_NEWLOCALE + +/* Define to 1 if you have the `pathconf' function. */ +#undef HAVE_PATHCONF /* Define if your printf() function supports format strings with positions. */ #undef HAVE_POSIX_PRINTF @@ -289,9 +403,379 @@ /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV +/* Define to 1 if you have the header file. */ +#undef HAVE_RANDOM_H + +/* Define to 1 if atoll is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ATOLL + +/* Define to 1 if btowc is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_BTOWC + +/* Define to 1 if canonicalize_file_name is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_CANONICALIZE_FILE_NAME + +/* Define to 1 if chown is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_CHOWN + +/* Define to 1 if dprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DPRINTF + +/* Define to 1 if dup2 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUP2 + +/* Define to 1 if dup3 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUP3 + +/* Define to 1 if endusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ENDUSERSHELL + +/* Define to 1 if environ is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ENVIRON + +/* Define to 1 if euidaccess is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_EUIDACCESS + +/* Define to 1 if faccessat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FACCESSAT + +/* Define to 1 if fchdir is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHDIR + +/* Define to 1 if fchmodat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHMODAT + +/* Define to 1 if fchownat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHOWNAT + +/* Define to 1 if fpurge is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FPURGE + +/* Define to 1 if fseeko is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSEEKO + +/* Define to 1 if fstatat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSTATAT + +/* Define to 1 if fsync is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSYNC + +/* Define to 1 if ftello is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FTELLO + +/* Define to 1 if ftruncate is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FTRUNCATE + +/* Define to 1 if futimens is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FUTIMENS + +/* Define to 1 if getcwd is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETCWD + +/* Define to 1 if getdelim is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDELIM + +/* Define to 1 if getdomainname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDOMAINNAME + +/* Define to 1 if getdtablesize is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDTABLESIZE + +/* Define to 1 if getgroups is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETGROUPS + +/* Define to 1 if gethostname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETHOSTNAME + +/* Define to 1 if getline is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLINE + +/* Define to 1 if getloadavg is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOADAVG + +/* Define to 1 if getlogin is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOGIN + +/* Define to 1 if getlogin_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOGIN_R + +/* Define to 1 if getpagesize is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETPAGESIZE + +/* Define to 1 if getsubopt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETSUBOPT + +/* Define to 1 if getusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETUSERSHELL + +/* Define to 1 if grantpt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GRANTPT + +/* Define to 1 if initstat_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_INITSTAT_R + +/* Define to 1 if lchmod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LCHMOD + +/* Define to 1 if lchown is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LCHOWN + +/* Define to 1 if link is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LINK + +/* Define to 1 if linkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LINKAT + +/* Define to 1 if lseek is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LSEEK + +/* Define to 1 if lstat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LSTAT + +/* Define to 1 if mbrlen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBRLEN + +/* Define to 1 if mbrtowc is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBRTOWC + +/* Define to 1 if mbsinit is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSINIT + +/* Define to 1 if mbsnrtowcs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSNRTOWCS + +/* Define to 1 if mbsrtowcs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSRTOWCS + +/* Define to 1 if memmem is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMMEM + +/* Define to 1 if mempcpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMPCPY + +/* Define to 1 if memrchr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMRCHR + +/* Define to 1 if mkdirat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKDIRAT + +/* Define to 1 if mkdtemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKDTEMP + +/* Define to 1 if mkfifo is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKFIFO + +/* Define to 1 if mkfifoat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKFIFOAT + +/* Define to 1 if mknod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKNOD + +/* Define to 1 if mknodat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKNODAT + +/* Define to 1 if mkostemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKOSTEMP + +/* Define to 1 if mkostemps is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKOSTEMPS + +/* Define to 1 if mkstemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKSTEMP + +/* Define to 1 if mkstemps is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKSTEMPS + +/* Define to 1 if pipe2 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PIPE2 + +/* Define to 1 if popen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_POPEN + +/* Define to 1 if pread is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PREAD + +/* Define to 1 if ptsname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PTSNAME + +/* Define to 1 if pwrite is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PWRITE + +/* Define to 1 if random_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RANDOM_R + +/* Define to 1 if rawmemchr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RAWMEMCHR + +/* Define to 1 if readlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_READLINK + +/* Define to 1 if readlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_READLINKAT + +/* Define to 1 if realpath is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_REALPATH + +/* Define to 1 if renameat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RENAMEAT + +/* Define to 1 if rmdir is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RMDIR + +/* Define to 1 if rpmatch is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RPMATCH + +/* Define to 1 if setenv is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETENV + +/* Define to 1 if setstate_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETSTATE_R + +/* Define to 1 if setusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETUSERSHELL + +/* Define to 1 if sigaction is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGACTION + +/* Define to 1 if sigaddset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGADDSET + +/* Define to 1 if sigdelset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGDELSET + +/* Define to 1 if sigemptyset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGEMPTYSET + +/* Define to 1 if sigfillset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGFILLSET + +/* Define to 1 if sigismember is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGISMEMBER + +/* Define to 1 if sigpending is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGPENDING + +/* Define to 1 if sigprocmask is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGPROCMASK + +/* Define to 1 if sleep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SLEEP + +/* Define to 1 if snprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SNPRINTF + +/* Define to 1 if srandom_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SRANDOM_R + +/* Define to 1 if stat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STAT + +/* Define to 1 if stpcpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STPCPY + +/* Define to 1 if stpncpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STPNCPY + +/* Define to 1 if strcasestr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRCASESTR + +/* Define to 1 if strchrnul is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRCHRNUL + +/* Define to 1 if strdup is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRDUP + +/* Define to 1 if strncat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNCAT + +/* Define to 1 if strndup is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNDUP + +/* Define to 1 if strnlen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNLEN + +/* Define to 1 if strpbrk is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRPBRK + +/* Define to 1 if strsep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRSEP + +/* Define to 1 if strsignal is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRSIGNAL + +/* Define to 1 if strtod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOD + +/* Define to 1 if strtok_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOK_R + +/* Define to 1 if strtoll is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOLL + +/* Define to 1 if strtoull is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOULL + +/* Define to 1 if strverscmp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRVERSCMP + +/* Define to 1 if symlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SYMLINK + +/* Define to 1 if symlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SYMLINKAT + +/* Define to 1 if tmpfile is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_TMPFILE + +/* Define to 1 if ttyname_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_TTYNAME_R + +/* Define to 1 if unlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLINK + +/* Define to 1 if unlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLINKAT + +/* Define to 1 if unlockpt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLOCKPT + +/* Define to 1 if unsetenv is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNSETENV + +/* Define to 1 if usleep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_USLEEP + +/* Define to 1 if utimensat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UTIMENSAT + +/* Define to 1 if vdprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_VDPRINTF + +/* Define to 1 if vsnprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_VSNPRINTF + +/* Define to 1 if wcrtomb is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCRTOMB + +/* Define to 1 if wcsnrtombs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCSNRTOMBS + +/* Define to 1 if wcsrtombs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCSRTOMBS + +/* Define to 1 if wctob is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCTOB + +/* Define to 1 if wcwidth is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCWIDTH + /* Define to 1 if you have the `readlink' function. */ #undef HAVE_READLINK +/* Define to 1 if you have the `realpath' function. */ +#undef HAVE_REALPATH + /* Define to 1 if you have the header file. */ #undef HAVE_SEARCH_H @@ -301,6 +785,9 @@ /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE +/* Define to 1 if you have the header file. */ +#undef HAVE_SIGNAL_H + /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ #undef HAVE_SIGNED_SIG_ATOMIC_T @@ -310,6 +797,9 @@ /* Define to 1 if 'wint_t' is a signed integer type. */ #undef HAVE_SIGNED_WINT_T +/* Define to 1 if the system has the type `sigset_t'. */ +#undef HAVE_SIGSET_T + /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF @@ -326,6 +816,9 @@ uintmax_t. */ #undef HAVE_STDINT_H_WITH_UINTMAX +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -347,27 +840,45 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL +/* Define to 1 if the system has the type `struct random_data'. */ +#undef HAVE_STRUCT_RANDOM_DATA + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_BITYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MMAN_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SOCKET_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_TIME_H + /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH @@ -380,6 +891,9 @@ /* Define to 1 if the system has the type `unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT +/* Define to 1 if you have the `uselocale' function. */ +#undef HAVE_USELOCALE + /* Define to 1 or 0, depending whether the compiler supports simple visibility declarations. */ #undef HAVE_VISIBILITY @@ -390,18 +904,33 @@ /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T +/* Define to 1 if you have the `wcrtomb' function. */ +#undef HAVE_WCRTOMB + /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN +/* Define to 1 if you have the `wcsnlen' function. */ +#undef HAVE_WCSNLEN + /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H /* Define to 1 if you have the `wcwidth' function. */ #undef HAVE_WCWIDTH +/* Define to 1 if you have the header file. */ +#undef HAVE_WINSOCK2_H + /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T +/* Define to 1 if O_NOATIME works. */ +#undef HAVE_WORKING_O_NOATIME + +/* Define to 1 if O_NOFOLLOW works. */ +#undef HAVE_WORKING_O_NOFOLLOW + /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL @@ -424,9 +953,35 @@ /* Define if integer division by zero raises signal SIGFPE. */ #undef INTDIV0_RAISES_SIGFPE +#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +#else +# define ISSLASH(C) ((C) == '/') +#endif + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#undef LSTAT_FOLLOWS_SLASHED_SYMLINK + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ #undef MALLOC_0_IS_NONNULL +/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ +#undef MAP_ANONYMOUS + +/* Define if the mbrtowc function has the NULL string argument bug. */ +#undef MBRTOWC_NULL_ARG_BUG + +/* Define if the mbrtowc function does not return 0 for a NUL character. */ +#undef MBRTOWC_NUL_RETVAL_BUG + +/* Define if the mbrtowc function returns a wrong return value. */ +#undef MBRTOWC_RETVAL_BUG + /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O @@ -445,6 +1000,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION @@ -458,6 +1016,17 @@ 'ptrdiff_t'. */ #undef PTRDIFF_T_SUFFIX +/* Define to 1 if readlink fails to recognize a trailing slash. */ +#undef READLINK_TRAILING_SLASH_BUG + +/* Define to 1 if stat needs help when passed a directory name with a trailing + slash */ +#undef REPLACE_FUNC_STAT_DIR + +/* Define to 1 if stat needs help when passed a file name with a trailing + slash */ +#undef REPLACE_FUNC_STAT_FILE + /* Define this to 1 if strerror is broken. */ #undef REPLACE_STRERROR @@ -467,7 +1036,9 @@ /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ -#undef SIZE_MAX +#ifndef SIZE_MAX +# undef SIZE_MAX +#endif /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'size_t'. */ @@ -481,12 +1052,19 @@ STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION +/* Define to 1 if the `S_IS*' macros in do not work properly. */ +#undef STAT_MACROS_BROKEN + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P +/* Define to the prefix of C symbols at the assembler and linker level, either + an underscore or empty. */ +#undef USER_LABEL_PREFIX + /* Define if the POSIX multithreading library can be used. */ #undef USE_POSIX_THREADS @@ -527,11 +1105,6 @@ 'wint_t'. */ #undef WINT_T_SUFFIX -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif - /* Define to 1 if on MINIX. */ #undef _MINIX @@ -542,6 +1115,9 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE +/* Define to 500 only on HP-UX. */ +#undef _XOPEN_SOURCE + /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE @@ -568,33 +1144,47 @@ used. */ #undef __GETOPT_PREFIX +/* Define to `int' if doesn't define. */ +#undef gid_t + /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif +/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif + /* Define to a type if does not define. */ #undef mbstate_t +/* Define to the type of st_nlink in struct stat, or a supertype. */ +#undef nlink_t + /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t -/* Define to a replacement function name for realpath(). */ -#undef realpath - /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. */ #undef restrict -/* Work around a bug in Sun C++: it does not support _Restrict, even - though the corresponding Sun C compiler does, which causes - "#define restrict _Restrict" in the previous line. Perhaps some future - version of Sun C++ will work with _Restrict; if so, it'll probably - define __RESTRICT, just as Sun C does. */ +/* Work around a bug in Sun C++: it does not support _Restrict or + __restrict__, even though the corresponding Sun C compiler ends up with + "#define restrict _Restrict" or "#define restrict __restrict__" in the + previous line. Perhaps some future version of Sun C++ will work with + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT # define _Restrict +# define __restrict__ #endif /* Define to `unsigned int' if does not define. */ @@ -603,13 +1193,26 @@ /* Define as a signed type of the same size as size_t. */ #undef ssize_t -/* Define to rpl_strnlen if the replacement function should be used. */ -#undef strnlen +/* Define to `int' if doesn't define. */ +#undef uid_t /* Define to unsigned long or unsigned long long if and don't define. */ #undef uintmax_t +/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED + + #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define @@ -624,22 +1227,31 @@ #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use -#define glthread_lock_init libintl_lock_init -#define glthread_lock_lock libintl_lock_lock -#define glthread_lock_unlock libintl_lock_unlock -#define glthread_lock_destroy libintl_lock_destroy -#define glthread_rwlock_init libintl_rwlock_init -#define glthread_rwlock_rdlock libintl_rwlock_rdlock -#define glthread_rwlock_wrlock libintl_rwlock_wrlock -#define glthread_rwlock_unlock libintl_rwlock_unlock -#define glthread_rwlock_destroy libintl_rwlock_destroy -#define glthread_recursive_lock_init libintl_recursive_lock_init -#define glthread_recursive_lock_lock libintl_recursive_lock_lock -#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock -#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy -#define glthread_once libintl_once -#define glthread_once_call libintl_once_call +#define glthread_lock_init_func libintl_lock_init_func +#define glthread_lock_lock_func libintl_lock_lock_func +#define glthread_lock_unlock_func libintl_lock_unlock_func +#define glthread_lock_destroy_func libintl_lock_destroy_func +#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded +#define glthread_rwlock_init_func libintl_rwlock_init_func +#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded +#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func +#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded +#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func +#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded +#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func +#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded +#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func +#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded +#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func +#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded +#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func +#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded +#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func +#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded +#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func +#define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded +#define glthread_once_multithreaded libintl_once_multithreaded diff -Nru gettext-0.17/gettext-runtime/configure gettext-0.18.1.1/gettext-runtime/configure --- gettext-0.17/gettext-runtime/configure 2007-11-06 23:33:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/configure 2010-06-06 20:11:32.000000000 +0000 @@ -1,60 +1,83 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.65. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -63,20 +86,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -87,32 +108,270 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -126,13 +385,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -147,428 +410,142 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit } -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -if as_func_ret_success; then - : +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi else - exitcode=1 - echo as_func_ret_success failed. + as_ln_s='cp -p' fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' else - exitcode=1 - echo positional parameters were not saved. + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' fi +as_executable_p=$as_test_x -test \$exitcode = 0) || { (exit 1); exit 1; } +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac -fi +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} +case X$lt_ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} +ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! : else # Restart under the correct shell. @@ -578,9 +555,9 @@ if test "X$1" = X--fallback-echo; then # used as fallback echo shift - cat </dev/null 2>&1 && unset CDPATH -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done + fi -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else - # maybe with a smaller string... - prev=: + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi fi fi fi fi -fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -721,7 +694,6 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= @@ -729,6 +701,7 @@ PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= +PACKAGE_URL= ac_unique_file="intl/dcigettext.c" # Factoring default headers for most tests. @@ -769,12223 +742,5598 @@ gt_needs= gl_header_list= +gl_use_threads_default= gl_func_list= -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -YACC -YFLAGS -JAVA_CHOICE -CPP -GREP -EGREP -HAVE_GCJ_IN_PATH -HAVE_JAVAC_IN_PATH -HAVE_JIKES_IN_PATH -CONF_JAVAC -CLASSPATH -CLASSPATH_SEPARATOR -HAVE_JAVAC_ENVVAR -HAVE_GCJ_C -HAVE_JAVAC -HAVE_JIKES -JAR -BUILDJAVA -CSHARP_CHOICE -HAVE_CSCC_IN_PATH -HAVE_MCS_IN_PATH -HAVE_CSC_IN_PATH -HAVE_CSCC -HAVE_MCS -HAVE_CSC -CSHARPCOMPFLAGS -BUILDCSHARP -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -RANLIB -SED -LN_S -ECHO -AR -DLLTOOL -AS -OBJDUMP -CXX +gl_getopt_required=POSIX +gl_getopt_required=POSIX +enable_option_checking=no +ac_subst_vars='gltests_LTLIBOBJS +gltests_LIBOBJS +gl_LTLIBOBJS +gl_LIBOBJS +am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +subdirs +ENABLE_LIBASPRINTF_FALSE +ENABLE_LIBASPRINTF_TRUE +LIBSCHED CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -WOE32_TRUE -WOE32_FALSE -USE_NLS -GETTEXT_MACRO_VERSION -MSGFMT -GMSGFMT -MSGFMT_015 -GMSGFMT_015 -XGETTEXT -XGETTEXT_015 -MSGMERGE -XGETTEXT_EXTRA_OPTIONS -GLIBC2 -CFLAG_VISIBILITY -HAVE_VISIBILITY -ALLOCA -PRI_MACROS_BROKEN -LIBPTH -LTLIBPTH -LIBPTH_PREFIX -LIBTHREAD -LTLIBTHREAD -LIBMULTITHREAD -LTLIBMULTITHREAD -LIBICONV -LTLIBICONV -INTLBISON -GLIBC21 -INTL_MACOSX_LIBS -HAVE_POSIX_PRINTF -HAVE_ASPRINTF -HAVE_SNPRINTF -HAVE_WPRINTF -WOE32DLL -WOE32 -WINDRES -LTLIBC -BUILD_INCLUDED_LIBINTL -USE_INCLUDED_LIBINTL -CATOBJEXT -DATADIRNAME -INSTOBJEXT -GENCAT -INTLOBJS -INTL_LIBTOOL_SUFFIX_PREFIX -INTLLIBS -LIBINTL -LTLIBINTL -POSUB -GL_COND_LIBTOOL_TRUE -GL_COND_LIBTOOL_FALSE -ALLOCA_H -GETOPT_H -REPLACE_ICONV -REPLACE_ICONV_OPEN -REPLACE_ICONV_UTF -INCLUDE_NEXT -NEXT_ICONV_H -ICONV_H -HAVE_MALLOC_POSIX -GNULIB_MALLOC_POSIX -GNULIB_REALLOC_POSIX -GNULIB_CALLOC_POSIX -GNULIB_GETSUBOPT -GNULIB_MKDTEMP -GNULIB_MKSTEMP -GNULIB_PUTENV -HAVE_CALLOC_POSIX -HAVE_GETSUBOPT -HAVE_MKDTEMP -HAVE_REALLOC_POSIX -REPLACE_MKSTEMP -REPLACE_PUTENV -GNULIB_MEMMEM -GNULIB_MEMPCPY -GNULIB_MEMRCHR -GNULIB_STPCPY -GNULIB_STPNCPY -GNULIB_STRCHRNUL -GNULIB_STRDUP -GNULIB_STRNDUP -GNULIB_STRNLEN -GNULIB_STRPBRK -GNULIB_STRSEP -GNULIB_STRCASESTR -GNULIB_STRTOK_R -GNULIB_MBSLEN -GNULIB_MBSNLEN -GNULIB_MBSCHR -GNULIB_MBSRCHR -GNULIB_MBSSTR -GNULIB_MBSCASECMP -GNULIB_MBSNCASECMP -GNULIB_MBSPCASECMP -GNULIB_MBSCASESTR -GNULIB_MBSCSPN -GNULIB_MBSPBRK -GNULIB_MBSSPN -GNULIB_MBSSEP -GNULIB_MBSTOK_R -GNULIB_STRERROR -HAVE_DECL_MEMMEM -HAVE_MEMPCPY -HAVE_DECL_MEMRCHR -HAVE_STPCPY -HAVE_STPNCPY -HAVE_STRCASECMP -HAVE_DECL_STRNCASECMP -HAVE_STRCHRNUL -HAVE_DECL_STRDUP -HAVE_STRNDUP -HAVE_DECL_STRNDUP -HAVE_DECL_STRNLEN -HAVE_STRPBRK -HAVE_STRSEP -HAVE_STRCASESTR -HAVE_DECL_STRTOK_R -HAVE_DECL_STRERROR -REPLACE_STRERROR -GNULIB_CHOWN -GNULIB_DUP2 -GNULIB_FCHDIR -GNULIB_FTRUNCATE -GNULIB_GETCWD -GNULIB_GETLOGIN_R -GNULIB_LCHOWN -GNULIB_LSEEK -GNULIB_READLINK -GNULIB_SLEEP -HAVE_DUP2 -HAVE_FTRUNCATE -HAVE_READLINK -HAVE_SLEEP -HAVE_DECL_GETLOGIN_R -REPLACE_CHOWN -REPLACE_FCHDIR -REPLACE_GETCWD -REPLACE_LCHOWN -REPLACE_LSEEK -RELOCATABLE -RELOCATABLE_LDFLAGS -INSTALL_PROGRAM_ENV -RELOCATABLE_VIA_LD_TRUE -RELOCATABLE_VIA_LD_FALSE -RELOCATABLE_LIBRARY_PATH -RELOCATABLE_CONFIG_H_DIR -RELOCATABLE_SRC_DIR -RELOCATABLE_BUILD_DIR -STDBOOL_H -HAVE__BOOL -HAVE_LONG_LONG_INT -HAVE_UNSIGNED_LONG_LONG_INT -HAVE_INTTYPES_H -HAVE_SYS_TYPES_H -NEXT_STDINT_H -HAVE_STDINT_H -HAVE_SYS_INTTYPES_H -HAVE_SYS_BITYPES_H -BITSIZEOF_PTRDIFF_T -BITSIZEOF_SIG_ATOMIC_T -BITSIZEOF_SIZE_T -BITSIZEOF_WCHAR_T -BITSIZEOF_WINT_T -HAVE_SIGNED_SIG_ATOMIC_T -HAVE_SIGNED_WCHAR_T -HAVE_SIGNED_WINT_T -PTRDIFF_T_SUFFIX +CXX +CROSS_COMPILING +PERL +LIBGRT_LTLIBDEPS +LIBGRT_LIBDEPS +gltests_WITNESS +REPLACE_ISWCNTRL +HAVE_WCTYPE_H +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H +NEXT_WCTYPE_H +HAVE_ISWBLANK +HAVE_ISWCNTRL +HAVE_WINT_T +HAVE_WCHAR_H +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H +NEXT_WCHAR_H +LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE +LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE +LIBUNISTRING_UNIWIDTH_H +LIBUNISTRING_UNITYPES_H +HAVE_UNISTD_H +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H +NEXT_UNISTD_H +PTHREAD_H_DEFINES_STRUCT_TIMESPEC +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC +TIME_H_DEFINES_STRUCT_TIMESPEC +NEXT_AS_FIRST_DIRECTIVE_TIME_H +NEXT_TIME_H +REPLACE_TIMEGM +REPLACE_NANOSLEEP +REPLACE_MKTIME +REPLACE_LOCALTIME_R +HAVE_TIMEGM +HAVE_STRPTIME +HAVE_NANOSLEEP +HAVE_LOCALTIME_R +GNULIB_TIME_R +GNULIB_TIMEGM +GNULIB_STRPTIME +GNULIB_NANOSLEEP +GNULIB_MKTIME +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H +NEXT_SYS_STAT_H +NEXT_AS_FIRST_DIRECTIVE_STRING_H +NEXT_STRING_H +HAVE_RANDOM_H +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H +NEXT_STDLIB_H +NEXT_AS_FIRST_DIRECTIVE_STDIO_H +NEXT_STDIO_H +ASM_SYMBOL_PREFIX +STDINT_H +WINT_T_SUFFIX +WCHAR_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX -WCHAR_T_SUFFIX -WINT_T_SUFFIX -STDINT_H -NEXT_STDLIB_H -NEXT_STRING_H -NEXT_UNISTD_H -HAVE_UNISTD_H -GNULIB_WCWIDTH -HAVE_DECL_WCWIDTH +PTRDIFF_T_SUFFIX +HAVE_SIGNED_WINT_T +HAVE_SIGNED_WCHAR_T +HAVE_SIGNED_SIG_ATOMIC_T +BITSIZEOF_WINT_T +BITSIZEOF_WCHAR_T +BITSIZEOF_SIG_ATOMIC_T +BITSIZEOF_SIZE_T +BITSIZEOF_PTRDIFF_T +HAVE_SYS_BITYPES_H +HAVE_SYS_INTTYPES_H +HAVE_STDINT_H +NEXT_AS_FIRST_DIRECTIVE_STDINT_H +NEXT_STDINT_H +HAVE_SYS_TYPES_H +HAVE_INTTYPES_H +HAVE_UNSIGNED_LONG_LONG_INT +HAVE_LONG_LONG_INT +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H +NEXT_STDDEF_H +STDDEF_H +HAVE_WCHAR_T +REPLACE_NULL +HAVE__BOOL +STDBOOL_H +REPLACE_VSPRINTF +REPLACE_VSNPRINTF +REPLACE_VPRINTF +REPLACE_VFPRINTF +REPLACE_VDPRINTF +REPLACE_VASPRINTF +REPLACE_TMPFILE +REPLACE_STDIO_WRITE_FUNCS +REPLACE_SPRINTF +REPLACE_SNPRINTF +REPLACE_RENAMEAT +REPLACE_RENAME +REPLACE_REMOVE +REPLACE_PRINTF +REPLACE_POPEN +REPLACE_PERROR +REPLACE_OBSTACK_PRINTF +REPLACE_GETLINE +REPLACE_GETDELIM +REPLACE_FTELLO +REPLACE_FTELL +REPLACE_FSEEKO +REPLACE_FSEEK +REPLACE_FREOPEN +REPLACE_FPURGE +REPLACE_FPRINTF +REPLACE_FOPEN +REPLACE_FFLUSH +REPLACE_FCLOSE +REPLACE_DPRINTF +HAVE_VDPRINTF +HAVE_VASPRINTF +HAVE_RENAMEAT +HAVE_FTELLO +HAVE_FSEEKO +HAVE_DPRINTF +HAVE_DECL_VSNPRINTF +HAVE_DECL_SNPRINTF +HAVE_DECL_OBSTACK_PRINTF +HAVE_DECL_GETLINE +HAVE_DECL_GETDELIM +HAVE_DECL_FPURGE +GNULIB_VSPRINTF_POSIX +GNULIB_VSNPRINTF +GNULIB_VPRINTF_POSIX +GNULIB_VPRINTF +GNULIB_VFPRINTF_POSIX +GNULIB_VFPRINTF +GNULIB_VDPRINTF +GNULIB_VASPRINTF +GNULIB_TMPFILE +GNULIB_STDIO_H_SIGPIPE +GNULIB_SPRINTF_POSIX +GNULIB_SNPRINTF +GNULIB_RENAMEAT +GNULIB_RENAME +GNULIB_REMOVE +GNULIB_PUTS +GNULIB_PUTCHAR +GNULIB_PUTC +GNULIB_PRINTF_POSIX +GNULIB_PRINTF +GNULIB_POPEN +GNULIB_PERROR +GNULIB_OBSTACK_PRINTF_POSIX +GNULIB_OBSTACK_PRINTF +GNULIB_GETLINE +GNULIB_GETDELIM +GNULIB_FWRITE +GNULIB_FTELLO +GNULIB_FTELL +GNULIB_FSEEKO +GNULIB_FSEEK +GNULIB_FREOPEN +GNULIB_FPUTS +GNULIB_FPUTC +GNULIB_FPURGE +GNULIB_FPRINTF_POSIX +GNULIB_FPRINTF +GNULIB_FOPEN +GNULIB_FFLUSH +GNULIB_FCLOSE +GNULIB_DPRINTF +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H +NEXT_SIGNAL_H +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T +HAVE_STRUCT_SIGACTION_SA_SIGACTION +HAVE_SIGACTION +HAVE_SIGINFO_T +HAVE_SIGSET_T +HAVE_POSIX_SIGNALBLOCKING +GNULIB_SIGACTION +GNULIB_SIGPROCMASK +GNULIB_SIGNAL_H_SIGPIPE +RELOCATABLE_STRIP +RELOCATABLE_BUILD_DIR +RELOCATABLE_SRC_DIR +RELOCATABLE_CONFIG_H_DIR +RELOCATABLE_LIBRARY_PATH +RELOCATABLE_VIA_LD_FALSE +RELOCATABLE_VIA_LD_TRUE +INSTALL_PROGRAM_ENV +RELOCATABLE_LDFLAGS +RELOCATABLE +APPLE_UNIVERSAL_BUILD +UNDEFINE_STRTOK_R +REPLACE_STRTOK_R +REPLACE_STRSIGNAL +REPLACE_STRNLEN +REPLACE_STRNDUP +REPLACE_STRNCAT +REPLACE_STRERROR +REPLACE_STRCASESTR +REPLACE_STRSTR +REPLACE_STRDUP +REPLACE_STPNCPY +REPLACE_MEMMEM +REPLACE_MEMCHR +HAVE_STRVERSCMP +HAVE_DECL_STRSIGNAL +HAVE_DECL_STRTOK_R +HAVE_STRCASESTR +HAVE_STRSEP +HAVE_STRPBRK +HAVE_DECL_STRNLEN +HAVE_DECL_STRNDUP +HAVE_DECL_STRDUP +HAVE_STRCHRNUL +HAVE_STPNCPY +HAVE_STPCPY +HAVE_RAWMEMCHR +HAVE_DECL_MEMRCHR +HAVE_MEMPCPY +HAVE_DECL_MEMMEM +HAVE_MEMCHR +HAVE_MBSLEN +GNULIB_STRVERSCMP +GNULIB_STRSIGNAL +GNULIB_STRERROR +GNULIB_MBSTOK_R +GNULIB_MBSSEP +GNULIB_MBSSPN +GNULIB_MBSPBRK +GNULIB_MBSCSPN +GNULIB_MBSCASESTR +GNULIB_MBSPCASECMP +GNULIB_MBSNCASECMP +GNULIB_MBSCASECMP +GNULIB_MBSSTR +GNULIB_MBSRCHR +GNULIB_MBSCHR +GNULIB_MBSNLEN +GNULIB_MBSLEN +GNULIB_STRTOK_R +GNULIB_STRCASESTR +GNULIB_STRSTR +GNULIB_STRSEP +GNULIB_STRPBRK +GNULIB_STRNLEN +GNULIB_STRNDUP +GNULIB_STRNCAT +GNULIB_STRDUP +GNULIB_STRCHRNUL +GNULIB_STPNCPY +GNULIB_STPCPY +GNULIB_RAWMEMCHR +GNULIB_MEMRCHR +GNULIB_MEMPCPY +GNULIB_MEMMEM +GNULIB_MEMCHR +LOCALE_FR_UTF8 +LOCALE_ZH_CN +LOCALE_JA REPLACE_WCWIDTH -WCHAR_H -HAVE_WCHAR_H -NEXT_WCHAR_H -HAVE_ISWCNTRL -HAVE_WINT_T -NEXT_WCTYPE_H -HAVE_WCTYPE_H -WCTYPE_H -LIBGRT_LIBDEPS -LIBGRT_LTLIBDEPS -PERL -CROSS_COMPILING -LIBSCHED -ENABLE_LIBASPRINTF_TRUE -ENABLE_LIBASPRINTF_FALSE -subdirs -LIBOBJS -LTLIBOBJS -gl_LIBOBJS -gl_LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -YACC -YFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS' -ac_subdirs_all='libasprintf' - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-java do not build Java sources - --disable-native-java do not compile Java to native executables - --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-nls do not use Native Language Support - --enable-threads={posix|solaris|pth|win32} - specify multithreading API - --disable-threads build without multithread safety - --disable-rpath do not hardcode runtime library paths - --enable-relocatable install a package that can be moved in the filesystem - --disable-libasprintf do not build libasprintf - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib - --without-libpth-prefix don't search for libpth in includedir and libdir - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir - --with-included-gettext use the GNU gettext library included here - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - YACC The `Yet Another C Compiler' implementation to use. Defaults to - the first program found out of: `bison -y', `byacc', `yacc'. - YFLAGS The list of arguments that will be passed by default to $YACC. - This script will default YFLAGS to the empty string to avoid a - default value of `-d' given by some make applications. - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit -fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -gt_needs="$gt_needs need-ngettext" -gl_header_list="$gl_header_list stdlib.h" -gl_header_list="$gl_header_list string.h" -gl_func_list="$gl_func_list canonicalize_file_name" -gl_header_list="$gl_header_list sys/param.h" -gl_header_list="$gl_header_list unistd.h" -gl_func_list="$gl_func_list getcwd" -gl_func_list="$gl_func_list readlink" -gl_header_list="$gl_header_list iconv.h" -gl_func_list="$gl_func_list setenv" -gl_header_list="$gl_header_list stdint.h" -gl_header_list="$gl_header_list wchar.h" -gl_func_list="$gl_func_list iswcntrl" -gl_header_list="$gl_header_list wctype.h" -gl_func_list="$gl_func_list wcwidth" -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -ac_aux_dir= -for ac_dir in ../build-aux "$srcdir"/../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -. $srcdir/../version.sh -am__api_version='1.10' - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE=gettext-runtime - VERSION=$VERSION_NUMBER - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -ac_config_headers="$ac_config_headers config.h" - - -test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext - -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - -depcc="$CC" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -for ac_prog in 'bison -y' byacc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_YACC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$YACC"; then - ac_cv_prog_YACC="$YACC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_YACC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -YACC=$ac_cv_prog_YACC -if test -n "$YACC"; then - { echo "$as_me:$LINENO: result: $YACC" >&5 -echo "${ECHO_T}$YACC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$YACC" && break -done -test -n "$YACC" || YACC="yacc" - - - - { echo "$as_me:$LINENO: checking whether to use Java" >&5 -echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } - # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then - enableval=$enable_java; JAVA_CHOICE="$enableval" -else - JAVA_CHOICE=yes -fi - - { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 -echo "${ECHO_T}$JAVA_CHOICE" >&6; } - if test "$JAVA_CHOICE" = yes; then - # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then - enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode -fi - - fi - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_GREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_GREP=$GREP -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - - $ac_path_EGREP_found && break 3 - done -done - -done -IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - -else - ac_cv_path_EGREP=$EGREP -fi - - - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - yes -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - CLASSPATH_SEPARATOR=';' -else - CLASSPATH_SEPARATOR=':' -fi -rm -f conftest* - - source_version=1.3 - test -n "$source_version" || { - { { echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5 -echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;} - { (exit 1); exit 1; }; } - } - target_version=1.1 - case "$source_version" in - 1.3) goodcode='class conftest {}' - failcode='class conftestfail { static { assert(true); } }' ;; - 1.4) goodcode='class conftest { static { assert(true); } }' - failcode='class conftestfail { T foo() { return null; } }' ;; - 1.5) goodcode='class conftest { T foo() { return null; } }' - failcode='class conftestfail syntax error' ;; - *) { { echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5 -echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;} - { (exit 1); exit 1; }; } ;; - esac - case "$target_version" in - 1.1) cfversion=45 ;; - 1.2) cfversion=46 ;; - 1.3) cfversion=47 ;; - 1.4) cfversion=48 ;; - 1.5) cfversion=49 ;; - 1.6) cfversion=50 ;; - *) { { echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5 -echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;} - { (exit 1); exit 1; }; } ;; - esac - # Function to output the classfile version of a file (8th byte) in decimal. - if od -A x < /dev/null >/dev/null 2>/dev/null; then - # Use POSIX od. - func_classfile_version () - { - od -A n -t d1 -j 7 -N 1 "$1" - } - else - # Use BSD hexdump. - func_classfile_version () - { - dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' - echo - } - fi - { echo "$as_me:$LINENO: checking for Java compiler" >&5 -echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6; } - CONF_JAVAC= - HAVE_JAVAC_ENVVAR= - HAVE_GCJ_C= - HAVE_JAVAC= - HAVE_JIKES= - HAVE_JAVACOMP= - cat > conftestlib.java < conftest.java - echo "$failcode" > conftestfail.java - if test -n "$JAVAC"; then - if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then - if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then - rm -f conftest.class - if { echo "$as_me:4392: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4399: $JAVAC -fsource=$source_version -d . conftest.java" >&5 - $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4404: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4408: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5 - $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -fsource=$source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4422: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 - $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.4; then - rm -f conftest.class - if { echo "$as_me:4435: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.3; then - javac_works= - rm -f conftest.class - if { echo "$as_me:4447: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - javac_works=1 - fi - javac_noassert_works= - rm -f conftest.class - if { echo "$as_me:4455: $JAVAC -fno-assert -d . conftest.java" >&5 - $JAVAC -fno-assert -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - javac_noassert_works=1 - fi - if test -n "$javac_works" && test -n "$javac_noassert_works"; then - rm -f conftestfail.class - if { echo "$as_me:4463: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4467: $JAVAC -fno-assert -d . conftestfail.java" >&5 - $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 - }; then - javac_works= - fi - fi - if test -n "$javac_works"; then - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - if test -n "$javac_noassert_works"; then - CONF_JAVAC="$JAVAC -fno-assert" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - else - rm -f conftest.class - if { echo "$as_me:4489: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4496: $JAVAC -source $source_version -d . conftest.java" >&5 - $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4501: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4505: $JAVAC -source $source_version -d . conftestfail.java" >&5 - $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:4518: $JAVAC -target $target_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4525: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4530: $JAVAC -target $target_version -d . conftestfail.java" >&5 - $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4534: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -target $target_version -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC -target $target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:4547: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="$JAVAC -target $target_version -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - if test -z "$HAVE_JAVACOMP"; then - # Extract the first word of "gcj", so it can be a program name with args. -set dummy gcj; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_GCJ_IN_PATH"; then - ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_GCJ_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH -if test -n "$HAVE_GCJ_IN_PATH"; then - : -else - : -fi - - - # Extract the first word of "javac", so it can be a program name with args. -set dummy javac; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JAVAC_IN_PATH"; then - ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH -if test -n "$HAVE_JAVAC_IN_PATH"; then - : -else - : -fi - - - # Extract the first word of "jikes", so it can be a program name with args. -set dummy jikes; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JIKES_IN_PATH"; then - ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JIKES_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH -if test -n "$HAVE_JIKES_IN_PATH"; then - : -else - : -fi - - - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then - if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then - if { echo "$as_me:4665: gcj -C -d . conftestlib.java" >&5 - gcj -C -d . conftestlib.java >&5 2>&1 - }; then - if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then - rm -f conftest.class - if { echo "$as_me:4670: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4677: gcj -C -fsource=$source_version -d . conftest.java" >&5 - gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4682: gcj -C -d . conftestfail.java" >&5 - gcj -C -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4686: gcj -C -fsource=$source_version -d . conftestfail.java" >&5 - gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="gcj -C -fsource=$source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="gcj -C" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4700: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 - gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.4; then - rm -f conftest.class - if { echo "$as_me:4713: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.3; then - rm -f conftest.class - if { echo "$as_me:4724: gcj -C -fno-assert -d . conftest.java" >&5 - gcj -C -fno-assert -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C -fno-assert" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - else - rm -f conftest.class - if { echo "$as_me:4733: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - fi - fi - fi - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then - if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ - && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then - rm -f conftest.class - if { echo "$as_me:4752: javac -d . conftest.java" >&5 - javac -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4759: javac -source $source_version -d . conftest.java" >&5 - javac -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4764: javac -d . conftestfail.java" >&5 - javac -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4768: javac -source $source_version -d . conftestfail.java" >&5 - javac -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="javac -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="javac" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:4781: javac -target $target_version -d . conftest.java" >&5 - javac -target "$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:4788: javac -target $target_version -source $source_version -d . conftest.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:4793: javac -target $target_version -d . conftestfail.java" >&5 - javac -target "$target_version" -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:4797: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="javac -target $target_version -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="javac -target $target_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:4810: javac -target $target_version -source $source_version -d . conftest.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="javac -target $target_version -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then - if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ - && ( - # See if the existing CLASSPATH is sufficient to make jikes work. - unset JAVA_HOME - jikes conftestlib.java >&5 2>&1 - error=$? - rm -f conftestlib.class - exit $error - ); then - if test "$source_version" = 1.3; then - CONF_JAVAC="jikes" - HAVE_JIKES=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - rm -f conftest*.java conftest*.class - if test -n "$HAVE_JAVACOMP"; then - ac_result="$CONF_JAVAC" - else - ac_result="no" - fi - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } - - - - - - - - -# Extract the first word of "jar", so it can be a program name with args. -set dummy jar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_JAR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$JAR"; then - ac_cv_prog_JAR="$JAR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_JAR="jar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -JAR=$ac_cv_prog_JAR -if test -n "$JAR"; then - { echo "$as_me:$LINENO: result: $JAR" >&5 -echo "${ECHO_T}$JAR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then - BUILDJAVA=yes -else - BUILDJAVA=no -fi - - - - { echo "$as_me:$LINENO: checking for preferred C# implementation" >&5 -echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6; } - # Check whether --enable-csharp was given. -if test "${enable_csharp+set}" = set; then - enableval=$enable_csharp; CSHARP_CHOICE="$enableval" -else - CSHARP_CHOICE=any -fi - - - { echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5 -echo "${ECHO_T}$CSHARP_CHOICE" >&6; } - case "$CSHARP_CHOICE" in - pnet) - -cat >>confdefs.h <<\_ACEOF -#define CSHARP_CHOICE_PNET 1 -_ACEOF - - ;; - mono) - -cat >>confdefs.h <<\_ACEOF -#define CSHARP_CHOICE_MONO 1 -_ACEOF - - ;; - esac - - - - { echo "$as_me:$LINENO: checking for C# compiler" >&5 -echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6; } - HAVE_CSHARPCOMP=1 - # Extract the first word of "cscc", so it can be a program name with args. -set dummy cscc; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_CSCC_IN_PATH"; then - ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_CSCC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH -if test -n "$HAVE_CSCC_IN_PATH"; then - : -else - : -fi - - - # Extract the first word of "mcs", so it can be a program name with args. -set dummy mcs; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_MCS_IN_PATH"; then - ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_MCS_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH -if test -n "$HAVE_MCS_IN_PATH"; then - : -else - : -fi - - - # Extract the first word of "csc", so it can be a program name with args. -set dummy csc; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_CSC_IN_PATH"; then - ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_CSC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH -if test -n "$HAVE_CSC_IN_PATH"; then - : -else - : -fi - - - for impl in "$CSHARP_CHOICE" pnet mono sscli no; do - case "$impl" in - pnet) - if test -n "$HAVE_CSCC_IN_PATH" \ - && cscc --version >/dev/null 2>/dev/null \ - && ( - # See if pnetlib is well installed. - echo 'class ConfTest { static void Main() { } }' > conftest.cs - cscc -o conftest.exe conftest.cs 2>/dev/null - error=$? - rm -f conftest.cs conftest.exe - exit $error - ); then - HAVE_CSCC=1 - ac_result="cscc" - break - fi - ;; - mono) - if test -n "$HAVE_MCS_IN_PATH" \ - && mcs --version >/dev/null 2>/dev/null \ - && mcs --version 2>/dev/null | grep Mono >/dev/null; then - HAVE_MCS=1 - ac_result="mcs" - break - fi - ;; - sscli) - if test -n "$HAVE_CSC_IN_PATH" \ - && csc -help >/dev/null 2>/dev/null \ - && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then - HAVE_CSC=1 - ac_result="csc" - break - fi - ;; - no) - HAVE_CSHARPCOMP= - ac_result="no" - break - ;; - esac - done - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } - - - - if test -z "${CSHARPCOMPFLAGS+set}"; then - CSHARPCOMPFLAGS="-O -g" - fi - - -if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then - BUILDCSHARP=yes -else - BUILDCSHARP=no -fi - - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test "x$CC" != xcc; then - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } -fi -set dummy $CC; ac_cc=`echo $2 | - sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' -rm -f conftest2.* -if { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - test -f conftest2.$ac_objext && { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; -then - eval ac_cv_prog_cc_${ac_cc}_c_o=yes - if test "x$CC" != xcc; then - # Test first that cc exists at all. - if { ac_try='cc -c conftest.$ac_ext >&5' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' - rm -f conftest2.* - if { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - test -f conftest2.$ac_objext && { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; - then - # cc works too. - : - else - # cc exists but doesn't like -o. - eval ac_cv_prog_cc_${ac_cc}_c_o=no - fi - fi - fi -else - eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f core conftest* - -fi -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - -cat >>confdefs.h <<\_ACEOF -#define NO_MINUS_C_MINUS_O 1 -_ACEOF - -fi - -# FIXME: we rely on the cache variable name because -# there is no other way. -set dummy $CC -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi - - - -cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF - - -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - if test "${ac_cv_header_minix_config_h+set}" = set; then - { echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 -echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5 -echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_minix_config_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } - -fi -if test $ac_cv_header_minix_config_h = yes; then - MINIX=yes -else - MINIX= -fi - - - if test "$MINIX" = yes; then - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_SOURCE 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _POSIX_1_SOURCE 2 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define _MINIX 1 -_ACEOF - - fi - - - - { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 -echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_safe_to_define___extensions__=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_safe_to_define___extensions__=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 -echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - cat >>confdefs.h <<\_ACEOF -#define __EXTENSIONS__ 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _ALL_SOURCE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _POSIX_PTHREAD_SEMANTICS 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF -#define _TANDEM_SOURCE 1 -_ACEOF - - - - - - - - - - - - - - case "$host_os" in - mingw* | cygwin*) - { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 -echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } - if test "${gl_cv_ld_autoimport+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - gl_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_ld_autoimport=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_ld_autoimport=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$gl_save_LDFLAGS" -fi - - { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 -echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } - if test $gl_cv_ld_autoimport = yes; then - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - fi - ;; - esac - - - -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi - - -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi - - -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi - - -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done - -fi - -SED=$lt_cv_path_SED - -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } -fi - -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; - -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 6519 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-cygwin* | *-*-mingw* | *-*-pw32*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 -echo "${ECHO_T}$DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AS="${ac_tool_prefix}as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { echo "$as_me:$LINENO: result: $AS" >&5 -echo "${ECHO_T}$AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AS="as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -echo "${ECHO_T}$ac_ct_AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 -echo "${ECHO_T}$OBJDUMP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - - ;; - -esac - -need_locks="$enable_libtool_lock" - - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$CXX" && break - done -fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_CXX" && break -done - - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi -fi - - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -depcc="$CXX" am_compiler_list= - -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi - - - - -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP - -fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP -fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi - -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - -fi - - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi -fi - - -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi - -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - - - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi - -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi +REPLACE_WCSNRTOMBS +REPLACE_WCSRTOMBS +REPLACE_WCRTOMB +REPLACE_MBSNRTOWCS +REPLACE_MBSRTOWCS +REPLACE_MBRLEN +REPLACE_MBRTOWC +REPLACE_MBSINIT +REPLACE_WCTOB +REPLACE_BTOWC +REPLACE_MBSTATE_T +HAVE_DECL_WCWIDTH +HAVE_DECL_WCTOB +HAVE_WCSNRTOMBS +HAVE_WCSRTOMBS +HAVE_WCRTOMB +HAVE_MBSNRTOWCS +HAVE_MBSRTOWCS +HAVE_MBRLEN +HAVE_MBRTOWC +HAVE_MBSINIT +HAVE_BTOWC +GNULIB_WCWIDTH +GNULIB_WCSNRTOMBS +GNULIB_WCSRTOMBS +GNULIB_WCRTOMB +GNULIB_MBSNRTOWCS +GNULIB_MBSRTOWCS +GNULIB_MBRLEN +GNULIB_MBRTOWC +GNULIB_MBSINIT +GNULIB_WCTOB +GNULIB_BTOWC +REPLACE_UTIMENSAT +REPLACE_STAT +REPLACE_MKNOD +REPLACE_MKFIFO +REPLACE_MKDIR +REPLACE_LSTAT +REPLACE_FUTIMENS +REPLACE_FSTATAT +REPLACE_FSTAT +HAVE_UTIMENSAT +HAVE_MKNODAT +HAVE_MKNOD +HAVE_MKFIFOAT +HAVE_MKFIFO +HAVE_MKDIRAT +HAVE_LSTAT +HAVE_LCHMOD +HAVE_FUTIMENS +HAVE_FSTATAT +HAVE_FCHMODAT +GNULIB_UTIMENSAT +GNULIB_STAT +GNULIB_MKNODAT +GNULIB_MKNOD +GNULIB_MKFIFOAT +GNULIB_MKFIFO +GNULIB_MKDIRAT +GNULIB_LSTAT +GNULIB_LCHMOD +GNULIB_FUTIMENS +GNULIB_FSTATAT +GNULIB_FCHMODAT +LOCALCHARSET_TESTS_ENVIRONMENT +NEXT_AS_FIRST_DIRECTIVE_ICONV_H +NEXT_ICONV_H +ICONV_H +REPLACE_ICONV_UTF +REPLACE_ICONV_OPEN +REPLACE_ICONV +GETOPT_H +HAVE_GETOPT_H +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H +NEXT_GETOPT_H +EOVERFLOW_VALUE +EOVERFLOW_HIDDEN +ENOLINK_VALUE +ENOLINK_HIDDEN +EMULTIHOP_VALUE +EMULTIHOP_HIDDEN +ERRNO_H +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H +NEXT_ERRNO_H +PRAGMA_SYSTEM_HEADER +INCLUDE_NEXT_AS_FIRST_DIRECTIVE +INCLUDE_NEXT +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS +UNISTD_H_HAVE_WINSOCK2_H +REPLACE_WRITE +REPLACE_USLEEP +REPLACE_UNLINKAT +REPLACE_UNLINK +REPLACE_TTYNAME_R +REPLACE_SYMLINK +REPLACE_SLEEP +REPLACE_RMDIR +REPLACE_READLINK +REPLACE_PWRITE +REPLACE_PREAD +REPLACE_LSEEK +REPLACE_LINKAT +REPLACE_LINK +REPLACE_LCHOWN +REPLACE_GETPAGESIZE +REPLACE_GETGROUPS +REPLACE_GETCWD +REPLACE_FCHOWNAT +REPLACE_DUP2 +REPLACE_DUP +REPLACE_CLOSE +REPLACE_CHOWN +HAVE_SYS_PARAM_H +HAVE_OS_H +HAVE_DECL_GETUSERSHELL +HAVE_DECL_GETPAGESIZE +HAVE_DECL_GETLOGIN_R +HAVE_DECL_ENVIRON +HAVE_USLEEP +HAVE_UNLINKAT +HAVE_TTYNAME_R +HAVE_SYMLINKAT +HAVE_SYMLINK +HAVE_SLEEP +HAVE_READLINKAT +HAVE_READLINK +HAVE_PWRITE +HAVE_PREAD +HAVE_PIPE2 +HAVE_LINKAT +HAVE_LINK +HAVE_LCHOWN +HAVE_GETPAGESIZE +HAVE_GETLOGIN +HAVE_GETHOSTNAME +HAVE_GETGROUPS +HAVE_GETDTABLESIZE +HAVE_GETDOMAINNAME +HAVE_FTRUNCATE +HAVE_FSYNC +HAVE_FCHOWNAT +HAVE_FCHDIR +HAVE_FACCESSAT +HAVE_EUIDACCESS +HAVE_DUP3 +HAVE_DUP2 +HAVE_CHOWN +GNULIB_WRITE +GNULIB_USLEEP +GNULIB_UNLINKAT +GNULIB_UNLINK +GNULIB_UNISTD_H_SIGPIPE +GNULIB_UNISTD_H_GETOPT +GNULIB_TTYNAME_R +GNULIB_SYMLINKAT +GNULIB_SYMLINK +GNULIB_SLEEP +GNULIB_RMDIR +GNULIB_READLINKAT +GNULIB_READLINK +GNULIB_PWRITE +GNULIB_PREAD +GNULIB_PIPE2 +GNULIB_LSEEK +GNULIB_LINKAT +GNULIB_LINK +GNULIB_LCHOWN +GNULIB_GETUSERSHELL +GNULIB_GETPAGESIZE +GNULIB_GETLOGIN_R +GNULIB_GETLOGIN +GNULIB_GETHOSTNAME +GNULIB_GETGROUPS +GNULIB_GETDTABLESIZE +GNULIB_GETDOMAINNAME +GNULIB_GETCWD +GNULIB_FTRUNCATE +GNULIB_FSYNC +GNULIB_FCHOWNAT +GNULIB_FCHDIR +GNULIB_FACCESSAT +GNULIB_EUIDACCESS +GNULIB_ENVIRON +GNULIB_DUP3 +GNULIB_DUP2 +GNULIB_CLOSE +GNULIB_CHOWN +REPLACE_UNSETENV +REPLACE_STRTOD +REPLACE_SETENV +REPLACE_REALPATH +REPLACE_PUTENV +REPLACE_MKSTEMP +REPLACE_CANONICALIZE_FILE_NAME +HAVE_UNSETENV +HAVE_UNLOCKPT +HAVE_SYS_LOADAVG_H +HAVE_STRUCT_RANDOM_DATA +HAVE_STRTOULL +HAVE_STRTOLL +HAVE_STRTOD +HAVE_SETENV +HAVE_RPMATCH +HAVE_REALPATH +HAVE_REALLOC_POSIX +HAVE_RANDOM_R +HAVE_PTSNAME +HAVE_MKSTEMPS +HAVE_MKSTEMP +HAVE_MKOSTEMPS +HAVE_MKOSTEMP +HAVE_MKDTEMP +HAVE_MALLOC_POSIX +HAVE_GRANTPT +HAVE_GETSUBOPT +HAVE_DECL_GETLOADAVG +HAVE_CANONICALIZE_FILE_NAME +HAVE_CALLOC_POSIX +HAVE_ATOLL +GNULIB_UNSETENV +GNULIB_UNLOCKPT +GNULIB_STRTOULL +GNULIB_STRTOLL +GNULIB_STRTOD +GNULIB_SETENV +GNULIB_RPMATCH +GNULIB_REALPATH +GNULIB_REALLOC_POSIX +GNULIB_RANDOM_R +GNULIB_PUTENV +GNULIB_PTSNAME +GNULIB_MKSTEMPS +GNULIB_MKSTEMP +GNULIB_MKOSTEMPS +GNULIB_MKOSTEMP +GNULIB_MKDTEMP +GNULIB_MALLOC_POSIX +GNULIB_GRANTPT +GNULIB_GETSUBOPT +GNULIB_GETLOADAVG +GNULIB_CANONICALIZE_FILE_NAME +GNULIB_CALLOC_POSIX +GNULIB_ATOLL +ALLOCA_H +GL_COND_LIBTOOL_FALSE +GL_COND_LIBTOOL_TRUE +POSUB +LTLIBINTL +LIBINTL +INTLLIBS +INTL_LIBTOOL_SUFFIX_PREFIX +INTLOBJS +GENCAT +INSTOBJEXT +DATADIRNAME +CATOBJEXT +USE_INCLUDED_LIBINTL +BUILD_INCLUDED_LIBINTL +LTLIBC +WINDRES +WOE32 +WOE32DLL +HAVE_WPRINTF +HAVE_NEWLOCALE +HAVE_SNPRINTF +HAVE_ASPRINTF +HAVE_POSIX_PRINTF +INTL_DEFAULT_VERBOSITY +INTL_MACOSX_LIBS +GLIBC21 +INTLBISON +LTLIBICONV +LIBICONV +LTLIBMULTITHREAD +LIBMULTITHREAD +LTLIBTHREAD +LIBTHREAD +LIBPTH_PREFIX +LTLIBPTH +LIBPTH +PRI_MACROS_BROKEN +ALLOCA +HAVE_VISIBILITY +CFLAG_VISIBILITY +GLIBC2 +XGETTEXT_EXTRA_OPTIONS +MSGMERGE +XGETTEXT_015 +XGETTEXT +GMSGFMT_015 +MSGFMT_015 +GMSGFMT +MSGFMT +GETTEXT_MACRO_VERSION +USE_NLS +WOE32_FALSE +WOE32_TRUE +RC +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +lt_ECHO +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +LIBTOOL +OBJDUMP +DLLTOOL +AS +RANLIB +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +BUILDCSHARP +CSHARPCOMPFLAGS +HAVE_CSC +HAVE_MCS +HAVE_CSCC +HAVE_CSC_IN_PATH +HAVE_MCS_IN_PATH +HAVE_CSCC_IN_PATH +CSHARP_CHOICE +BUILDJAVA +JAR +HAVE_JIKES +HAVE_JAVAC +HAVE_GCJ_C +HAVE_JAVAC_ENVVAR +CLASSPATH_SEPARATOR +CLASSPATH +CONF_JAVAC +HAVE_JIKES_IN_PATH +HAVE_JAVAC_IN_PATH +HAVE_GCJ_IN_PATH +EGREP +GREP +CPP +JAVA_CHOICE +YFLAGS +YACC +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_java +enable_native_java +enable_csharp +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +enable_libtool_lock +enable_nls +enable_threads +enable_rpath +with_libpth_prefix +with_libiconv_prefix +with_included_gettext +with_libintl_prefix +enable_relocatable +enable_libasprintf +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +YACC +YFLAGS +CPP +CXX +CXXFLAGS' +ac_subdirs_all='libasprintf' -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE - else - MAGIC_CMD=: - fi -fi +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue fi - ;; -esac -enable_dlopen=no -enable_win32_dll=yes - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + # Accept the important Cygnus configure options, so we can diagnose typos. -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; -# Allow CC to be a program name with arguments. -compiler=$CC + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* + --config-cache | -C) + cache_file=config.cache ;; -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; -lt_prog_compiler_no_builtin_flag= + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9076: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:9080: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; -fi + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; - rdos*) - lt_prog_compiler_static='-non_shared' - ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; - *) - lt_prog_compiler_can_build_shared=no - ;; + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; esac - fi + eval with_$ac_useropt=no ;; -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } + --x) + # Obsolete; use --with-x. + with_x=yes ;; -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9369: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:9373: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." + ;; -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; -esac -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" + esac +done +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error "missing argument to $ac_option" fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac fi +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" +done -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error "pwd does not report name of working directory" - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9473: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:9477: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi +Usage: $0 [OPTION]... [VAR=VALUE]... -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +Defaults for the options are specified in brackets. - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 +For better control, use the options below. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF -EOF - fi - ;; + cat <<\_ACEOF - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; +if test -n "$ac_init_help"; then - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + cat <<\_ACEOF - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-java do not build Java sources + --disable-native-java do not compile Java to native executables + --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-nls do not use Native Language Support + --enable-threads={posix|solaris|pth|win32} + specify multithreading API + --disable-threads build without multithread safety + --disable-rpath do not hardcode runtime library paths + --enable-relocatable install a package that can be moved in the file + system + --disable-libasprintf do not build libasprintf - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib + --without-libpth-prefix don't search for libpth in includedir and libdir + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-included-gettext use the GNU gettext library included here + --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib + --without-libintl-prefix don't search for libintl in includedir and libdir - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + YACC The `Yet Another C Compiler' implementation to use. Defaults to + the first program found out of: `bison -y', `byacc', `yacc'. + YFLAGS The list of arguments that will be passed by default to $YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. + CPP C preprocessor + CXX C++ compiler command + CXXFLAGS C++ compiler flags - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +configure +generated by GNU Autoconf 2.65 -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; +Copyright (C) 2009 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; +} # ac_fn_c_try_compile - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi +} # ac_fn_c_try_cpp - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +} # ac_fn_c_check_header_mongrel -int -main () +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () { + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - ; - return 0; -} + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + ac_retval=1 fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +} # ac_fn_c_check_func - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +$4 int main () { - +if (sizeof (($2))) + return 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_compile "$LINENO"; then : -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + eval "$3=yes" fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; +} # ac_fn_c_check_type - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0 - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0 - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0 - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 - freebsd1*) - ld_shlibs=no - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 +$as_echo_n "checking whether $2 is declared... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $2 + (void) $2; +#endif - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' +} # ac_fn_c_check_decl +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; +It was created by $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: + $ $0 $@ - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; +_ASUNAME - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; +} >&5 - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; +cat >&5 <<_ACEOF - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; +## ----------- ## +## Core tests. ## +## ----------- ## - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; +_ACEOF - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no + as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; + esac | + sort +) + echo - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF - *) - ld_shlibs=no - ;; - esac - fi +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" fi - ;; -esac +done -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; +gt_needs="$gt_needs need-ngettext" +gl_header_list="$gl_header_list stdlib.h" +gl_header_list="$gl_header_list unistd.h" +gl_header_list="$gl_header_list sys/param.h" +gl_header_list="$gl_header_list string.h" +gl_func_list="$gl_func_list canonicalize_file_name" +gl_func_list="$gl_func_list getcwd" +gl_func_list="$gl_func_list readlink" +gl_func_list="$gl_func_list realpath" +gl_header_list="$gl_header_list errno.h" +gl_getopt_required=GNU +gl_header_list="$gl_header_list getopt.h" +gl_header_list="$gl_header_list iconv.h" +gl_func_list="$gl_func_list lstat" +gl_func_list="$gl_func_list mbsinit" +gl_func_list="$gl_func_list mbrtowc" +gl_func_list="$gl_func_list mbslen" +gl_header_list="$gl_header_list sys/mman.h" +gl_func_list="$gl_func_list mprotect" +gl_func_list="$gl_func_list memchr" +gl_func_list="$gl_func_list pathconf" +gl_func_list="$gl_func_list setenv" +gl_header_list="$gl_header_list sys/socket.h" +gl_header_list="$gl_header_list signal.h" +gl_header_list="$gl_header_list stddef.h" +gl_header_list="$gl_header_list stdint.h" +gl_header_list="$gl_header_list wchar.h" +gl_header_list="$gl_header_list stdio.h" +gl_header_list="$gl_header_list sys/stat.h" +gl_header_list="$gl_header_list time.h" +gl_header_list="$gl_header_list sys/time.h" +gl_func_list="$gl_func_list iswcntrl" +gl_func_list="$gl_func_list iswblank" +gl_header_list="$gl_header_list wctype.h" +gl_func_list="$gl_func_list wcwidth" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_aux_dir= +for ac_dir in ../build-aux "$srcdir"/../build-aux; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 fi done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5 fi -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +. $srcdir/../version.sh + + + + + + +am__api_version='1.11' + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH + done +IFS=$as_save_IFS - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; +rm -rf conftest.one conftest.two conftest.dir -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh fi - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; + MISSING="\${SHELL} $am_aux_dir/missing" ;; esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS -freebsd1*) - dynamic_linker=no - ;; +fi -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=1;; +esac +AM_BACKSLASH='\' - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' + if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' + CYGPATH_W=echo fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; +fi -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; +# Define the identity of the package. + PACKAGE='' + VERSION='' -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; +# Some tools Automake needs. -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} -rdos*) - dynamic_linker=no - ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + PACKAGE=gettext-runtime + + VERSION=$VERSION_NUMBER + + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + + + +ac_config_headers="$ac_config_headers config.h" + + +test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; +done + done +IFS=$as_save_IFS -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink + if test "x$ac_ct_CC" = x; then + CC="" else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC fi else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } - -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless + CC="$ac_cv_prog_CC" fi -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_dlopen=no - lt_cv_dlopen_libs= + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_lib_dl_dlopen=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - ;; - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load + test -n "$ac_ct_CC" && break +done -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi -#ifdef __STDC__ -# include -#else -# include -#endif +fi -#undef shl_load -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_shl_load=no -fi + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); int main () { -return shl_load (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no -fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef dlopen - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); +#include int main () { -return dlopen (); +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); int main () { -return dlopen (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done else - echo "$as_me: failed program was:" >&5 + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_svld_dlopen=no +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); int main () { -return dld_link (); +#ifndef __GNUC__ + choke me +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_dld_link=no + ac_compiler_gnu=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ -fi - + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -fi +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : -fi +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes fi - - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - - ;; - esac - - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" else - enable_dlopen=no + CFLAGS="-g" fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include #include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; { - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg fi -rm -fr conftest* - +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : -#if HAVE_DLFCN_H -#include -#endif +fi -#include +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif +ac_config_commands="$ac_config_commands depfiles" -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif -#ifdef __cplusplus -extern "C" void exit (int); -#endif +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; fi -rm -fr conftest* - +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi +depcc="$CC" am_compiler_list= -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi - ;; + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= ;; + none) break ;; esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done -# ### BEGIN LIBTOOL CONFIG + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc +for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_YACC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 +$as_echo_n "checking whether to use Java... " >&6; } + # Check whether --enable-java was given. +if test "${enable_java+set}" = set; then : + enableval=$enable_java; JAVA_CHOICE="$enableval" +else + JAVA_CHOICE=yes +fi -# A C compiler. -LTCC=$lt_LTCC + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 +$as_echo "$JAVA_CHOICE" >&6; } + if test "$JAVA_CHOICE" = yes; then + # Check whether --enable-native-java was given. +if test "${enable_native_java+set}" = set; then : + enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode +fi -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS + fi -# A language-specific compiler. -CC=$lt_compiler -# Is the compiler the GNU C compiler? -with_gcc=$GCC -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : -# Whether we need hard or soft links. -LN_S=$lt_LN_S +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext -# A BSD-compatible nm program. -NM=$lt_NM + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext -# A symbol stripping program -STRIP=$lt_STRIP +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + done + ac_cv_prog_CPP=$CPP -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext -# Used on cygwin: assembler. -AS="$AS" + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext -# The name of the directory that contains temporary libtool files. -objdir=$objdir +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi -# Executable file suffix (normally ""). -exeext="$exeext" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi -# Must we lock files when doing compilation? -need_locks=$lt_need_locks + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + yes +#endif -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + CLASSPATH_SEPARATOR=';' +else + CLASSPATH_SEPARATOR=':' +fi +rm -f conftest* -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + source_version=1.3 + test -n "$source_version" || { + as_fn_error "missing source-version argument to gt_JAVACOMP" "$LINENO" 5 + } + target_version=1.1 + case "$source_version" in + 1.3) goodcode='class conftest {}' + failcode='class conftestfail { static { assert(true); } }' ;; + 1.4) goodcode='class conftest { static { assert(true); } }' + failcode='class conftestfail { T foo() { return null; } }' ;; + 1.5) goodcode='class conftest { T foo() { return null; } }' + failcode='class conftestfail syntax error' ;; + *) as_fn_error "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;; + esac + case "$target_version" in + 1.1) cfversion=45 ;; + 1.2) cfversion=46 ;; + 1.3) cfversion=47 ;; + 1.4) cfversion=48 ;; + 1.5) cfversion=49 ;; + 1.6) cfversion=50 ;; + *) as_fn_error "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;; + esac + # Function to output the classfile version of a file (8th byte) in decimal. + if od -A x < /dev/null >/dev/null 2>/dev/null; then + # Use POSIX od. + func_classfile_version () + { + od -A n -t d1 -j 7 -N 1 "$1" + } + else + # Use BSD hexdump. + func_classfile_version () + { + dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' + echo + } + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5 +$as_echo_n "checking for Java compiler... " >&6; } + CONF_JAVAC= + HAVE_JAVAC_ENVVAR= + HAVE_GCJ_C= + HAVE_JAVAC= + HAVE_JIKES= + HAVE_JAVACOMP= + cat > conftestlib.java < conftest.java + echo "$failcode" > conftestfail.java + if test -n "$JAVAC"; then + if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then + if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then + rm -f conftest.class + if { echo "$as_me:5170: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5177: $JAVAC -fsource=$source_version -d . conftest.java" >&5 + $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5182: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5186: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5 + $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -fsource=$source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5200: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 + $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.4; then + rm -f conftest.class + if { echo "$as_me:5213: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.3; then + javac_works= + rm -f conftest.class + if { echo "$as_me:5225: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + javac_works=1 + fi + javac_noassert_works= + rm -f conftest.class + if { echo "$as_me:5233: $JAVAC -fno-assert -d . conftest.java" >&5 + $JAVAC -fno-assert -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + javac_noassert_works=1 + fi + if test -n "$javac_works" && test -n "$javac_noassert_works"; then + rm -f conftestfail.class + if { echo "$as_me:5241: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5245: $JAVAC -fno-assert -d . conftestfail.java" >&5 + $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 + }; then + javac_works= + fi + fi + if test -n "$javac_works"; then + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + if test -n "$javac_noassert_works"; then + CONF_JAVAC="$JAVAC -fno-assert" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + else + rm -f conftest.class + if { echo "$as_me:5267: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5274: $JAVAC -source $source_version -d . conftest.java" >&5 + $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5279: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5283: $JAVAC -source $source_version -d . conftestfail.java" >&5 + $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:5296: $JAVAC -target $target_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5303: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5308: $JAVAC -target $target_version -d . conftestfail.java" >&5 + $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5312: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -target $target_version -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC -target $target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:5325: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="$JAVAC -target $target_version -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP"; then + # Extract the first word of "gcj", so it can be a program name with args. +set dummy gcj; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_GCJ_IN_PATH"; then + ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_GCJ_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec +fi +fi +HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH +if test -n "$HAVE_GCJ_IN_PATH"; then + : +else + : +fi -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec + # Extract the first word of "javac", so it can be a program name with args. +set dummy javac; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JAVAC_IN_PATH"; then + ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Library versioning type. -version_type=$version_type +fi +fi +HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH +if test -n "$HAVE_JAVAC_IN_PATH"; then + : +else + : +fi -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec + # Extract the first word of "jikes", so it can be a program name with args. +set dummy jikes; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JIKES_IN_PATH"; then + ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JIKES_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec +fi +fi +HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH +if test -n "$HAVE_JIKES_IN_PATH"; then + : +else + : +fi -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then + if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then + if { echo "$as_me:5443: gcj -C -d . conftestlib.java" >&5 + gcj -C -d . conftestlib.java >&5 2>&1 + }; then + if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then + rm -f conftest.class + if { echo "$as_me:5448: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5455: gcj -C -fsource=$source_version -d . conftest.java" >&5 + gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5460: gcj -C -d . conftestfail.java" >&5 + gcj -C -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5464: gcj -C -fsource=$source_version -d . conftestfail.java" >&5 + gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="gcj -C -fsource=$source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="gcj -C" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5478: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 + gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.4; then + rm -f conftest.class + if { echo "$as_me:5491: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.3; then + rm -f conftest.class + if { echo "$as_me:5502: gcj -C -fno-assert -d . conftest.java" >&5 + gcj -C -fno-assert -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C -fno-assert" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + else + rm -f conftest.class + if { echo "$as_me:5511: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then + if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ + && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then + rm -f conftest.class + if { echo "$as_me:5530: javac -d . conftest.java" >&5 + javac -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5537: javac -source $source_version -d . conftest.java" >&5 + javac -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5542: javac -d . conftestfail.java" >&5 + javac -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5546: javac -source $source_version -d . conftestfail.java" >&5 + javac -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="javac -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="javac" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:5559: javac -target $target_version -d . conftest.java" >&5 + javac -target "$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:5566: javac -target $target_version -source $source_version -d . conftest.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:5571: javac -target $target_version -d . conftestfail.java" >&5 + javac -target "$target_version" -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:5575: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="javac -target $target_version -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="javac -target $target_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:5588: javac -target $target_version -source $source_version -d . conftest.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="javac -target $target_version -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then + if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ + && ( + # See if the existing CLASSPATH is sufficient to make jikes work. + unset JAVA_HOME + jikes conftestlib.java >&5 2>&1 + error=$? + rm -f conftestlib.class + exit $error + ); then + if test "$source_version" = 1.3; then + CONF_JAVAC="jikes" + HAVE_JIKES=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + rm -f conftest*.java conftest*.class + if test -n "$HAVE_JAVACOMP"; then + ac_result="$CONF_JAVAC" + else + ac_result="no" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag +# Extract the first word of "jar", so it can be a program name with args. +set dummy jar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_JAR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAR"; then + ac_cv_prog_JAR="$JAR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_JAR="jar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag +fi +fi +JAR=$ac_cv_prog_JAR +if test -n "$JAR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 +$as_echo "$JAR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval +if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then + BUILDJAVA=yes +else + BUILDJAVA=no +fi -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5 +$as_echo_n "checking for preferred C# implementation... " >&6; } + # Check whether --enable-csharp was given. +if test "${enable_csharp+set}" = set; then : + enableval=$enable_csharp; CSHARP_CHOICE="$enableval" +else + CSHARP_CHOICE=any +fi -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5 +$as_echo "$CSHARP_CHOICE" >&6; } + case "$CSHARP_CHOICE" in + pnet) -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath +$as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action + ;; + mono) -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs +$as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + ;; + esac -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5 +$as_echo_n "checking for C# compiler... " >&6; } + HAVE_CSHARPCOMP=1 + # Extract the first word of "cscc", so it can be a program name with args. +set dummy cscc; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CSCC_IN_PATH"; then + ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_CSCC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L +fi +fi +HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH +if test -n "$HAVE_CSCC_IN_PATH"; then + : +else + : +fi -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic + # Extract the first word of "mcs", so it can be a program name with args. +set dummy mcs; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_MCS_IN_PATH"; then + ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_MCS_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" +fi +fi +HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH +if test -n "$HAVE_MCS_IN_PATH"; then + : +else + : +fi -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + # Extract the first word of "csc", so it can be a program name with args. +set dummy csc; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CSC_IN_PATH"; then + ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_CSC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec +fi +fi +HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH +if test -n "$HAVE_CSC_IN_PATH"; then + : +else + : +fi -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols + for impl in "$CSHARP_CHOICE" pnet mono sscli no; do + case "$impl" in + pnet) + if test -n "$HAVE_CSCC_IN_PATH" \ + && cscc --version >/dev/null 2>/dev/null \ + && ( + # See if pnetlib is well installed. + echo 'class ConfTest { static void Main() { } }' > conftest.cs + cscc -o conftest.exe conftest.cs 2>/dev/null + error=$? + rm -f conftest.cs conftest.exe + exit $error + ); then + HAVE_CSCC=1 + ac_result="cscc" + break + fi + ;; + mono) + if test -n "$HAVE_MCS_IN_PATH" \ + && mcs --version >/dev/null 2>/dev/null \ + && mcs --version 2>/dev/null | grep Mono >/dev/null; then + HAVE_MCS=1 + ac_result="mcs" + break + fi + ;; + sscli) + if test -n "$HAVE_CSC_IN_PATH" \ + && csc -help >/dev/null 2>/dev/null \ + && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then + HAVE_CSC=1 + ac_result="csc" + break + fi + ;; + no) + HAVE_CSHARPCOMP= + ac_result="no" + break + ;; + esac + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms + if test -z "${CSHARPCOMPFLAGS+set}"; then + CSHARPCOMPFLAGS="-O -g" + fi -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms -# ### END LIBTOOL CONFIG +if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then + BUILDCSHARP=yes +else + BUILDCSHARP=no +fi -__EOF__ +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES fi -EOF - ;; - esac - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no - -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Source file extension for C++ test sources. -ac_ext=cpp +int +main () +{ -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h -# ltmain only uses $CC for tagged configurations so make sure $CC is set. +fi -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +int +main () +{ -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX else - $as_unset lt_cv_path_LD + ac_cv_header_stdc=no fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - +rm -f conftest* -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= fi -if test "$GXX" = yes; then - # Set up default GNU C++ configuration +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else - with_gnu_ld=no + ac_cv_header_stdc=no fi +rm -f conftest* -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + else - lt_cv_path_LD="$LD" # Let the user override the test with a path. + ac_cv_header_stdc=no fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -LD="$lt_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then +$as_echo "#define STDC_HEADERS 1" >>confdefs.h +fi - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' +fi - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' +done - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = x""yes; then : + MINIX=yes else - GXX=no - with_gnu_ld=no - wlarc= + MINIX= fi -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac + if test "$MINIX" = yes; then - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + case "$host_os" in + hpux*) + +$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h + + ;; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +# define __EXTENSIONS__ 1 + $ac_includes_default int main () { @@ -12994,63 +6342,138 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h -fi + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + + + + + + # Code from module alloca-opt: + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module atexit: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module canonicalize-lgpl: + # Code from module closeout: + # Code from module configmake: + # Code from module csharpcomp-script: + # Code from module double-slash-root: + # Code from module environ: + # Code from module errno: + # Code from module error: + # Code from module extensions: + + # Code from module fwriteerror: + # Code from module getopt-gnu: + # Code from module getopt-posix: + # Code from module gettext-h: + # Code from module gettext-runtime-misc: + # Code from module gperf: + # Code from module havelib: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv_open: + # Code from module include_next: + # Code from module intprops: + # Code from module java: + # Code from module javacomp-script: + # Code from module localcharset: + # Code from module lstat: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module mbchar: + # Code from module mbiter: + # Code from module mbrtowc: + # Code from module mbsinit: + # Code from module mbslen: + # Code from module mbsstr: + # Code from module mbuiter: + # Code from module memchr: + # Code from module memmove: + # Code from module multiarch: + # Code from module pathmax: + # Code from module progname: + # Code from module propername: + # Code from module readlink: + # Code from module relocatable-prog: + # Code from module relocatable-prog-wrapper: + # Code from module signal: + # Code from module sigpipe: + # Code from module sigprocmask: + # Code from module ssize_t: + # Code from module stat: + # Code from module stdbool: + # Code from module stddef: + # Code from module stdint: + # Code from module stdio: + # Code from module stdlib: + # Code from module streq: + # Code from module strerror: + # Code from module striconv: + # Code from module string: + # Code from module strnlen: + # Code from module strnlen1: + # Code from module strtol: + # Code from module strtoul: + # Code from module sys_stat: + # Code from module time: + # Code from module trim: + # Code from module unistd: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module unlocked-io: + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wctype: + # Code from module wcwidth: + # Code from module xalloc: + # Code from module xreadlink: + # Code from module xstriconv: + + + + + + case "$host_os" in + mingw* | cygwin*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5 +$as_echo_n "checking for auto-import of symbols... " >&6; } + if test "${gl_cv_ld_autoimport+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gl_save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -13061,2613 +6484,1436 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_ld_autoimport=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_ld_autoimport=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$gl_save_LDFLAGS" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5 +$as_echo "$gl_cv_ld_autoimport" >&6; } + if test $gl_cv_ld_autoimport = yes; then + LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" + fi + ;; + esac -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; +macro_version='2.2.6' +macro_revision='1.3012' - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - output_verbose_link_cmd='echo' - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; +ltmain="$ac_aux_dir/ltmain.sh" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if test "${ac_cv_path_SED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no -GCC_CXX="$GXX" -LD_CXX="$LD" - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi -cat > conftest.$ac_ext <&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - *) ;; # Ignore the rest. - esac - done - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi -$rm -f confest.$objext -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if test "${ac_cv_path_FGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count fi - ;; - esac - ;; + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14346: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:14350: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no + with_gnu_ld=no fi -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld ;; *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown ;; -esac - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : +LD="$lt_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } else - lt_prog_compiler_static_CXX= + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14450: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14454: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test "${lt_cv_path_NM+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } else - need_locks=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } + *) + DUMPBIN=: ;; esac fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if test "${lt_cv_nm_interface+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:7000: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:7003: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:7006: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" fi - ;; + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if test "${lt_cv_sys_max_cmd_len+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 ;; + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi ;; esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +fi - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' ;; +esac -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if test "${lt_cv_ld_reload_flag+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + reload_cmds='$LD$reload_flag -o $output$reload_objs' fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; +esac -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; +test -z "$OBJDUMP" && OBJDUMP=objdump -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if test "${lt_cv_deplibs_check_method+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" +beos*) + lt_cv_deplibs_check_method=pass_all ;; -rdos*) - dynamic_linker=no +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' ;; -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' fi - need_version=yes ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' ;; -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; esac + else + lt_cv_deplibs_check_method=pass_all fi - sys_lib_dlsearch_path_spec='/usr/lib' ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac ;; -*) - dynamic_linker=no +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname + ;; -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; -# Whether or not to build static libraries. -build_old_libs=$enable_static +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac -# An echo program that does not interpret backslashes. -echo=$lt_echo +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_CXX -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_CXX -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi -# Object file suffix (normally "o"). -objext="$ac_objext" +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX +test -z "$STRIP" && STRIP=: -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method +test -z "$RANLIB" && RANLIB=: -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX -# ### END LIBTOOL TAG CONFIG: $tagname -__EOF__ -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - else - tagname="" - fi - ;; - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no -# Source file extension for f77 test sources. -ac_ext=f -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" -# ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} @@ -15679,2559 +7925,1789 @@ compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : + $as_echo_n "(cached) " >&6 +else +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. +# Define system-specific variables. case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' fi ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' ;; esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; + # Check to see that the pipe works correctly. + pipe_works=no - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' + rm -f "$nlist"T fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; + cat <<_LT_EOF >> conftest.$ac_ext - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; - - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 fi + rm -rf conftest* conftst* -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16015: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16019: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } fi -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16119: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:16123: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. -EOF - fi - ;; - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 8208 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if test "${lt_cv_cc_needs_belf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" fi - else - ld_shlibs_F77=no - fi + ;; + esac ;; + esac + fi + rm -rf conftest* + ;; +esac - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; +need_locks="$enable_libtool_lock" - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi + OTOOL=$ac_ct_OTOOL + fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + OTOOL="$ac_cv_prog_OTOOL" +fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - freebsd1*) - ld_shlibs_F77=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if test "${lt_cv_apple_cc_single_mod+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' + cat conftest.err >&5 fi - ;; - esac - link_all_deplibs_F77=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + rm -rf libconftest.dylib* + rm -f conftest.* fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; +int +main () +{ - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +fi - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' +done - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi +# Set options +enable_win32_dll=yes -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi - ;; +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -need_lib_prefix=unknown -hardcode_into_libs=no +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL fi - ;; - -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH ;; +esac -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +test -z "$AS" && AS=as - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; +test -z "$DLLTOOL" && DLLTOOL=dlltool -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes +test -z "$OBJDUMP" && OBJDUMP=objdump - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; -rdos*) - dynamic_linker=no - ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" ;; - esac - ;; + esac +else + enable_static=yes +fi -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported + pic_mode=default fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi + +test -z "$pic_mode" && pic_mode=default -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" ;; esac - done +else + enable_fast_install=yes +fi - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="$ofile" - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' + + + + + + + + -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_F77 -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_F77 -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir +test -z "$LN_S" && LN_S="ln -s" -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if test "${lt_cv_objdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -# This is the shared library runtime path variable. -runpath_var=$runpath_var +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' -# This is the shared library path variable. -shlibpath_var=$shlibpath_var +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath +# Global variables: +ofile=libtool +can_build_shared=yes -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs +with_gnu_ld="$lt_cv_prog_gnu_ld" -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 +old_CC="$CC" +old_CFLAGS="$CFLAGS" -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 -# ### END LIBTOOL TAG CONFIG: $tagname +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 -__EOF__ +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: fi fi + fi + ;; +esac + +# Use C for the default configuration in the libtool script +lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -CC="$lt_save_CC" - else - tagname="" - fi - ;; +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' -# Source file extension for Java test sources. -ac_ext=java -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' -# ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} @@ -18242,60 +9718,42 @@ # Allow CC to be a program name with arguments. compiler=$CC +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* +$RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no +$RM -r conftest* -old_archive_cmds_GCJ=$old_archive_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... +if test -n "$compiler"; then -lt_prog_compiler_no_builtin_flag_GCJ= +lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' - + lt_prog_compiler_no_builtin_flag=' -fno-builtin' -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : + $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or @@ -18307,77 +9765,104 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18310: $lt_compile\"" >&5) + (eval echo "\"\$as_me:9768: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18314: \$? = $ac_status" >&5 + echo "$as_me:9772: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi - $rm conftest* + $RM conftest* fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; - mingw* | cygwin* | pw32* | os2*) + mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' + lt_prog_compiler_pic='-fno-common' + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac ;; interix[3-9]*) @@ -18388,64 +9873,47 @@ msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no + lt_prog_compiler_can_build_shared=no enable_shared=no ;; + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + sysv4*MP*) if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic + lt_prog_compiler_pic=-Kconform_pic fi ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' + lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_static='-Bstatic' else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) + mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in @@ -18453,144 +9921,180 @@ # +Z the default ;; *) - lt_prog_compiler_pic_GCJ='+Z' + lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' + lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' ;; ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' + lt_prog_compiler_static='-non_shared' ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' ;; esac ;; esac ;; + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' + lt_prog_compiler_static='-non_shared' ;; rdos*) - lt_prog_compiler_static_GCJ='-non_shared' + lt_prog_compiler_static='-non_shared' ;; solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; + lt_prog_compiler_wl='-Qoption ld ';; *) - lt_prog_compiler_wl_GCJ='-Wl,';; + lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' ;; unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no ;; uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' ;; *) - lt_prog_compiler_can_build_shared_GCJ=no + lt_prog_compiler_can_build_shared=no ;; esac fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + + + + + # # Check to make sure the PIC flag actually works. # -if test -n "$lt_prog_compiler_pic_GCJ"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins @@ -18600,57 +10104,53 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18603: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10107: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18607: \$? = $ac_status" >&5 + echo "$as_me:10111: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes + lt_cv_prog_compiler_pic_works=yes fi fi - $rm conftest* + $RM conftest* fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no fi fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac + + + + + # # Check to make sure the static flag actually works. # -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_prog_compiler_static_works_GCJ=no + lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -18660,36 +10160,96 @@ if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes + lt_cv_prog_compiler_static_works=yes fi else - lt_prog_compiler_static_works_GCJ=yes + lt_cv_prog_compiler_static_works=yes fi fi - $rm conftest* + $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then +if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else - lt_prog_compiler_static_GCJ= + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:10212: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:10216: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out @@ -18704,110 +10264,111 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18707: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10267: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:18711: \$? = $ac_status" >&5 + echo "$as_me:10271: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes + lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 - $rm conftest* + $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out cd .. - rmdir conftest - $rm conftest* + $RM -r conftest + $RM conftest* fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes - $rm conftest* + $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list - include_expsyms_GCJ= + include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. @@ -18824,7 +10385,7 @@ ;; esac - ld_shlibs_GCJ=yes + ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' @@ -18833,16 +10394,16 @@ # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= fi supports_anon_versioning=no - case `$LD -v 2>/dev/null` in + case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... @@ -18852,11 +10413,11 @@ # See if GNU ld supports shared libraries. case $host_os in - aix3* | aix4* | aix5*) + aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 + ld_shlibs=no + cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. @@ -18864,49 +10425,50 @@ *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. -EOF +_LT_EOF fi ;; amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; @@ -18914,79 +10476,109 @@ fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then tmp_addflag= + tmp_sharedflag='-shared' case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool @@ -18995,19 +10587,19 @@ *** your PATH or compiler configuration so that the native linker is *** used, and then restart. -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no + ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not @@ -19020,58 +10612,62 @@ _LT_EOF ;; *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; esac ;; sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no + hardcode_direct=yes + hardcode_shlibpath_var=no ;; *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; esac - if test "$ld_shlibs_GCJ" = no; then + if test "$ld_shlibs" = no; then runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. - hardcode_minus_L_GCJ=yes + hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. - hardcode_direct_GCJ=unsupported + hardcode_direct=unsupported fi ;; - aix4* | aix5*) + aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. @@ -19081,22 +10677,22 @@ else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi done ;; esac @@ -19111,30 +10707,32 @@ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null then - # We have reworked collect2 - : + # We have reworked collect2 + : else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= fi ;; esac @@ -19145,8 +10743,8 @@ else # not using gcc if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then @@ -19157,19 +10755,17 @@ fi fi + export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes + always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -19180,24 +10776,7 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -19211,31 +10790,22 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -19246,24 +10816,7 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -19277,122 +10830,100 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic + export_dynamic_flag_spec=-rdynamic ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' + old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + ;; dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no ;; freebsd1*) - ld_shlibs_GCJ=no + ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor @@ -19400,60 +10931,60 @@ # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. - hardcode_minus_L_GCJ=yes + hardcode_minus_L=yes fi ;; @@ -19461,45 +10992,45 @@ if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no + hardcode_direct=no + hardcode_shlibpath_var=no ;; *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. - hardcode_minus_L_GCJ=yes + hardcode_minus_L=yes ;; esac fi @@ -19507,194 +11038,228 @@ irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo(void) {} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes ;; netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ;; newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' ;; *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac - fi + fi else - ld_shlibs_GCJ=no + ld_shlibs=no fi ;; os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' + hardcode_libdir_flag_spec='-rpath $libdir' fi - hardcode_libdir_separator_GCJ=: + archive_cmds_need_lc='no' + hardcode_libdir_separator=: ;; solaris*) - no_undefined_flag_GCJ=' -z text' + no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) + # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac - link_all_deplibs_GCJ=yes + link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no ;; motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no + hardcode_shlibpath_var=no ;; sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes - ld_shlibs_GCJ=yes + ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; @@ -19705,51 +11270,75 @@ # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no ;; *) - ld_shlibs_GCJ=no + ld_shlibs=no ;; esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi fi -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + # # Do we need to explicitly link libc? # -case "x$archive_cmds_need_lc_GCJ" in +case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes + archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in + case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; @@ -19757,54 +11346,262 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } then - archive_cmds_need_lc_GCJ=no + archive_cmds_need_lc=no else - archive_cmds_need_lc_GCJ=yes + archive_cmds_need_lc=yes fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag + allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } + $RM conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi library_names_spec= libname_spec='lib$name' soname_spec= @@ -19818,7 +11615,6 @@ version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" - need_lib_prefix=unknown hardcode_into_libs=no @@ -19836,7 +11632,7 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; -aix4* | aix5*) +aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no @@ -19855,7 +11651,7 @@ aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no @@ -19881,9 +11677,18 @@ ;; amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac ;; beos*) @@ -19906,25 +11711,28 @@ # libtool to hard-code these into programs ;; -cygwin* | mingw* | pw32*) +cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ - $rm \$dlpath' + $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in @@ -19933,20 +11741,20 @@ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; - mingw*) + mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) @@ -19970,12 +11778,13 @@ version_type=darwin need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; @@ -20068,18 +11877,18 @@ fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH @@ -20088,8 +11897,10 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 ;; interix[3-9]*) @@ -20156,6 +11967,32 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. @@ -20163,7 +12000,7 @@ # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi @@ -20180,7 +12017,7 @@ version_type=sunos need_lib_prefix=no need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' @@ -20201,14 +12038,16 @@ shlibpath_overrides_runpath=yes ;; -nto-qnx*) - version_type=linux +*nto* | *qnx*) + version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' ;; openbsd*) @@ -20217,13 +12056,13 @@ need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no @@ -20295,7 +12134,6 @@ sni) shlibpath_overrides_runpath=no need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) @@ -20326,13 +12164,12 @@ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" @@ -20342,6 +12179,17 @@ sys_lib_dlsearch_path_spec='/usr/lib' ;; +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -20353,8 +12201,8 @@ dynamic_linker=no ;; esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -20362,999 +12210,931 @@ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } - -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="$ofile" - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_GCJ -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_GCJ -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ -# ### END LIBTOOL TAG CONFIG: $tagname -__EOF__ + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + ac_cv_lib_dl_dlopen=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; - - RC) +fi + ;; -# Source file extension for RC test sources. -ac_ext=rc + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if test "${ac_cv_lib_dld_shl_load+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if test "${ac_cv_lib_svld_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if test "${ac_cv_lib_dld_dld_link+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# ltmain only uses $CC for tagged configurations so make sure $CC is set. +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} +fi -# Allow CC to be a program name with arguments. -compiler=$CC +fi -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* +fi -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +fi -lt_cv_prog_compiler_c_o_RC=yes -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done +fi - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" -# An echo program that does not interpret backslashes. -echo=$lt_echo + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 12641 "configure" +#include "confdefs.h" -# A C compiler. -LTCC=$lt_LTCC +#if HAVE_DLFCN_H +#include +#endif -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS +#include -# A language-specific compiler. -CC=$lt_compiler_RC +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif -# An ERE matcher. -EGREP=$lt_EGREP +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; -# The linker used to build libraries. -LD=$lt_LD_RC + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); -# Whether we need hard or soft links. -LN_S=$lt_LN_S + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self_static+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 12737 "configure" +#include "confdefs.h" -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +#if HAVE_DLFCN_H +#include +#endif -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +#include -# Used on cygwin: assembler. -AS="$AS" +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif -# The name of the directory that contains temporary libtool files. -objdir=$objdir +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); -# Object file suffix (normally "o"). -objext="$ac_objext" + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi -# Executable file suffix (normally ""). -exeext="$exeext" + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } -# This is the shared library runtime path variable. -runpath_var=$runpath_var + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC +CC="$lt_save_CC" -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC + ac_config_commands="$ac_config_commands libtool" -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC -# ### END LIBTOOL TAG CONFIG: $tagname +# Only expand once: -__EOF__ +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RC"; then + ac_cv_prog_RC="$RC" # Let the user override the test. else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RC="${ac_tool_prefix}windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS + +fi +fi +RC=$ac_cv_prog_RC +if test -n "$RC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 +$as_echo "$RC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi +if test -z "$ac_cv_prog_RC"; then + ac_ct_RC=$RC + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RC"; then + ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RC="windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -CC="$lt_save_CC" +fi +fi +ac_ct_RC=$ac_cv_prog_ac_ct_RC +if test -n "$ac_ct_RC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 +$as_echo "$ac_ct_RC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - ;; + if test "x$ac_ct_RC" = x; then + RC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RC=$ac_ct_RC + fi +else + RC="$ac_cv_prog_RC" +fi - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi -fi +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +objext_RC=$objext +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +# ltmain only uses $CC for tagged configurations so make sure $CC is set. -# Prevent multiple expansion +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} +# Allow CC to be a program name with arguments. +compiler=$CC +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +compiler=$CC +compiler_RC=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +lt_cv_prog_compiler_c_o_RC=yes +if test -n "$compiler"; then + : +fi +GCC=$lt_save_GCC +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +CC="$lt_save_CC" case "$host_os" in @@ -21372,22 +13152,22 @@ - { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then +if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi - { echo "$as_me:$LINENO: result: $USE_NLS" >&5 -echo "${ECHO_T}$USE_NLS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } - GETTEXT_MACRO_VERSION=0.17 + GETTEXT_MACRO_VERSION=0.18 @@ -21422,10 +13202,10 @@ # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) @@ -21454,19 +13234,19 @@ fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then - { echo "$as_me:$LINENO: result: $MSGFMT" >&5 -echo "${ECHO_T}$MSGFMT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_GMSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) @@ -21478,14 +13258,14 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" @@ -21494,11 +13274,11 @@ fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 -echo "${ECHO_T}$GMSGFMT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -21545,10 +13325,10 @@ # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_XGETTEXT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) @@ -21577,11 +13357,11 @@ fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then - { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 -echo "${ECHO_T}$XGETTEXT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi rm -f messages.po @@ -21623,10 +13403,10 @@ # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGMERGE+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGMERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) @@ -21654,11 +13434,11 @@ fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then - { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 -echo "${ECHO_T}$MSGMERGE" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -21672,16 +13452,12 @@ - { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 -echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } -if test "${ac_cv_gnu_library_2+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } +if test "${ac_cv_gnu_library_2+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -21693,7 +13469,7 @@ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2=yes else ac_cv_gnu_library_2=no @@ -21703,8 +13479,8 @@ fi -{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 -echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 +$as_echo "$ac_cv_gnu_library_2" >&6; } GLIBC2="$ac_cv_gnu_library_2" @@ -21714,24 +13490,54 @@ CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then - { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5 -echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; } - if test "${gl_cv_cc_visibility+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 +$as_echo_n "checking whether the -Werror option is usable... " >&6; } + if test "${gl_cv_cc_vis_werror+set}" = set; then : + $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fvisibility=hidden" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + CFLAGS="$CFLAGS -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_cc_vis_werror=yes +else + gl_cv_cc_vis_werror=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$gl_save_CFLAGS" +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 +$as_echo "$gl_cv_cc_vis_werror" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +$as_echo_n "checking for simple visibility declarations... " >&6; } + if test "${gl_cv_cc_visibility+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fvisibility=hidden" + if test $gl_cv_cc_vis_werror = yes; then + CFLAGS="$CFLAGS -Werror" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); + void dummyfunc (void) {} int main () { @@ -21740,37 +13546,17 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_visibility=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_cc_visibility=no + gl_cv_cc_visibility=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi - { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5 -echo "${ECHO_T}$gl_cv_cc_visibility" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +$as_echo "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 @@ -21784,18 +13570,14 @@ _ACEOF -{ echo "$as_me:$LINENO: checking for inline" >&5 -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } -if test "${ac_cv_c_inline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; @@ -21804,39 +13586,16 @@ #endif _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -echo "${ECHO_T}$ac_cv_c_inline" >&6; } - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; @@ -21853,61 +13612,9 @@ ;; esac -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=no -fi +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : else cat >>confdefs.h <<_ACEOF @@ -21917,56 +13624,32 @@ fi - { echo "$as_me:$LINENO: checking for stdint.h" >&5 -echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } -if test "${gl_cv_header_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 +$as_echo_n "checking for stdint.h... " >&6; } +if test "${gl_cv_header_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () -{ -uintmax_t i = (uintmax_t) -1; return !i; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +{ +uintmax_t i = (uintmax_t) -1; return !i; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_stdint_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_header_stdint_h=no + gl_cv_header_stdint_h=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 +$as_echo "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then cat >>confdefs.h <<_ACEOF @@ -21977,16 +13660,12 @@ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if test "${ac_cv_working_alloca_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -21998,55 +13677,28 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_working_alloca_h=no + ac_cv_working_alloca_h=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -{ echo "$as_me:$LINENO: checking for alloca" >&5 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if test "${ac_cv_func_alloca_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca @@ -22078,1956 +13730,1796 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_alloca_works=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=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: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } + +if test $ac_cv_func_alloca_works = yes; then + +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h + +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. + +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + +$as_echo "#define C_ALLOCA 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if test "${ac_cv_os_cray+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF + + break +fi + + done +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if test "${ac_cv_c_stack_direction+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} + +int +main () +{ + return find_stack_direction () < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + + +fi + + + + + + for ac_header in $gl_header_list +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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + + + + + + + + + + + + : + + + + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + data2 = ""; + if (write (fd2, data2, 1) != 1) + return 5; + data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_alloca_works=no + ac_cv_func_mmap_fixed_mapped=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } - -if test $ac_cv_func_alloca_works = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA 1 -_ACEOF +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then -else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. +$as_echo "#define HAVE_MMAP 1" >>confdefs.h -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext +fi +rm -f conftest.mmap conftest.txt -cat >>confdefs.h <<\_ACEOF -#define C_ALLOCA 1 -_ACEOF -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } -if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 +$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } +if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* + gt_cv_int_divbyzero_sigfpe= + case "$host_os" in + macos* | darwin[6-9]* | darwin[1-9][0-9]*) + # On MacOS X 10.2 or newer, just assume the same as when cross- + # compiling. If we were to perform the real test, 1 Crash Report + # dialog window would pop up. + case "$host_cpu" in + i[34567]86 | x86_64) + gt_cv_int_divbyzero_sigfpe="guessing yes" ;; + esac + ;; + esac + if test -z "$gt_cv_int_divbyzero_sigfpe"; then + if test "$cross_compiling" = yes; then : + + # Guess based on the CPU. + case "$host_cpu" in + alpha* | i[34567]86 | x86_64 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac -fi -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 -echo "${ECHO_T}$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +#include +#include -#ifdef __STDC__ -# include -#else -# include -#endif +static void +sigfpe_handler (int sig) +{ + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} -#undef $ac_func +int x = 1; +int y = 0; +int z; +int nan; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); #endif -int -main () -{ -return $ac_func (); - ; - return 0; + z = x / y; + nan = y / y; + exit (1); } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gt_cv_int_divbyzero_sigfpe=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gt_cv_int_divbyzero_sigfpe=no fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 +$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func +#define INTDIV0_RAISES_SIGFPE $value _ACEOF - break -fi - done -fi -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 +$as_echo_n "checking for inttypes.h... " >&6; } +if test "${gl_cv_header_inttypes_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} - +#include +#include int main () { - return find_stack_direction () < 0; +uintmax_t i = (uintmax_t) -1; return !i; + ; + return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_stack_direction=1 +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_inttypes_h=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_stack_direction=-1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + gl_cv_header_inttypes_h=no fi - - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 +$as_echo "$gl_cv_header_inttypes_h" >&6; } + if test $gl_cv_header_inttypes_h = yes; then cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 _ACEOF - -fi - + fi -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 +$as_echo_n "checking for unsigned long long int... " >&6; } +if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; +int +main () +{ +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); + ; + return 0; +} -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_type_unsigned_long_long_int=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + ac_cv_type_unsigned_long_long_int=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: $ac_cv_type_unsigned_long_long_int" >&5 +$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } + if test $ac_cv_type_unsigned_long_long_int = yes; then -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + fi - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + + + if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then + + test $ac_cv_type_unsigned_long_long_int = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' + +cat >>confdefs.h <<_ACEOF +#define uintmax_t $ac_type _ACEOF -fi + else -done +$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h + + fi -for ac_func in getpagesize -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_header in inttypes.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +fi -#ifdef __STDC__ -# include -#else -# include -#endif +done -#undef $ac_func + if test $ac_cv_header_inttypes_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 +$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } +if test "${gt_cv_inttypes_pri_broken+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef PRId32 +char *p = PRId32; #endif int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_inttypes_pri_broken=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gt_cv_inttypes_pri_broken=yes fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 +$as_echo "$gt_cv_inttypes_pri_broken" >&6; } + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then + +cat >>confdefs.h <<_ACEOF +#define PRI_MACROS_BROKEN 1 _ACEOF -fi -done + PRI_MACROS_BROKEN=1 + else + PRI_MACROS_BROKEN=0 + fi -{ echo "$as_me:$LINENO: checking for working mmap" >&5 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no + + + + + + + # Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; gl_use_threads=$enableval else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc + if test -n "$gl_use_threads_default"; then + gl_use_threads="$gl_use_threads_default" + else + case "$host_os" in + osf*) gl_use_threads=no ;; + cygwin*) + case `uname -r` in + 1.[0-5].*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ;; + *) gl_use_threads=yes ;; + esac + fi -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. +fi - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # For using : + case "$host_os" in + osf*) + # On OSF/1, the compiler needs the flag -D_REENTRANT so that it + # groks . cc also understands the flag -pthread, but + # we don't use it because 1. gcc-2.95 doesn't understand -pthread, + # 2. putting a flag into CPPFLAGS that has an effect on the linker + # causes the AC_TRY_LINK test below to succeed unexpectedly, + # leading to wrong values of LIBTHREAD and LTLIBTHREAD. + CPPFLAGS="$CPPFLAGS -D_REENTRANT" + ;; + esac + # Some systems optimize for single-threaded programs by default, and + # need special flags to disable these optimizations. For example, the + # definition of 'errno' in . + case "$host_os" in + aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; + solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; + esac + fi -#include -#include -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ -#endif /* no HAVE_GETPAGESIZE */ + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 +$as_echo_n "checking for ld used by GCC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${acl_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; +LD="$acl_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${acl_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$acl_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$acl_cv_prog_gnu_ld - pagesize = getpagesize (); - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - return 1; - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - return 1; - if (write (fd, data, pagesize) != pagesize) - return 1; - close (fd); - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - return 1; - data2 = (char *) malloc (2 * pagesize); - if (!data2) - return 1; - data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - return 1; - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - return 1; - if (read (fd, data3, pagesize) != pagesize) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - return 1; - close (fd); - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_mmap_fixed_mapped=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +$as_echo_n "checking for shared library run path origin... " >&6; } +if test "${acl_cv_rpath+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +$as_echo "$acl_cv_rpath" >&6; } + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + # Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; : +else + enable_rpath=yes fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF -fi -rm -f conftest.mmap + acl_libdirstem=lib + acl_libdirstem2= + case "$host_os" in + solaris*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 +$as_echo_n "checking for 64-bit host... " >&6; } +if test "${gl_cv_solaris_64bit+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef _LP64 +sixtyfour bits +#endif - { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 -echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } -if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sixtyfour bits" >/dev/null 2>&1; then : + gl_cv_solaris_64bit=yes else + gl_cv_solaris_64bit=no +fi +rm -f conftest* - gt_cv_int_divbyzero_sigfpe= - case "$host_os" in - macos* | darwin[6-9]* | darwin[1-9][0-9]*) - # On MacOS X 10.2 or newer, just assume the same as when cross- - # compiling. If we were to perform the real test, 1 Crash Report - # dialog window would pop up. - case "$host_cpu" in - i[34567]86 | x86_64) - gt_cv_int_divbyzero_sigfpe="guessing yes" ;; - esac - ;; - esac - if test -z "$gt_cv_int_divbyzero_sigfpe"; then - if test "$cross_compiling" = yes; then - # Guess based on the CPU. - case "$host_cpu" in - alpha* | i[34567]86 | x86_64 | m68k | s390*) - gt_cv_int_divbyzero_sigfpe="guessing yes";; - *) - gt_cv_int_divbyzero_sigfpe="guessing no";; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 +$as_echo "$gl_cv_solaris_64bit" >&6; } + if test $gl_cv_solaris_64bit = yes; then + acl_libdirstem=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; esac + fi + done + IFS="$acl_save_IFS" + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static void -sigfpe_handler (int sig) + gl_threads_api=none + LIBTHREAD= + LTLIBTHREAD= + LIBMULTITHREAD= + LTLIBMULTITHREAD= + if test "$gl_use_threads" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } +if test "${gl_cv_have_weak+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_have_weak=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern void xyzzy (); +#pragma weak xyzzy +int +main () { - /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ - exit (sig != SIGFPE); +xyzzy(); + ; + return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_have_weak=maybe +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $gl_cv_have_weak = maybe; then + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __ELF__ + Extensible Linking Format + #endif -int x = 1; -int y = 0; -int z; -int nan; +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + gl_cv_have_weak="guessing yes" +else + gl_cv_have_weak="guessing no" +fi +rm -f conftest* + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#pragma weak fputs int main () { - signal (SIGFPE, sigfpe_handler); -/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ -#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) - signal (SIGTRAP, sigfpe_handler); -#endif -/* Linux/SPARC yields signal SIGILL. */ -#if defined (__sparc__) && defined (__linux__) - signal (SIGILL, sigfpe_handler); -#endif - - z = x / y; - nan = y / y; - exit (1); + return (fputs == NULL); } - _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gt_cv_int_divbyzero_sigfpe=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_have_weak=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gt_cv_int_divbyzero_sigfpe=no + gl_cv_have_weak=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - - fi + fi fi -{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 -echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } - case "$gt_cv_int_divbyzero_sigfpe" in - *yes) value=1;; - *) value=0;; - esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +$as_echo "$gl_cv_have_weak" >&6; } + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that + # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. + ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = x""yes; then : + gl_have_pthread_h=yes +else + gl_have_pthread_h=no +fi -cat >>confdefs.h <<_ACEOF -#define INTDIV0_RAISES_SIGFPE $value + + if test "$gl_have_pthread_h" = yes; then + # Other possible tests: + # -lpthreads (FSU threads, PCthreads) + # -lgthreads + gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0); + ; + return 0; +} _ACEOF - - - - { echo "$as_me:$LINENO: checking for inttypes.h" >&5 -echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } -if test "${gl_cv_header_inttypes_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if ac_fn_c_try_link "$LINENO"; then : + gl_have_pthread=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + # Test for libpthread by looking for pthread_kill. (Not pthread_self, + # since it is defined as a macro on OSF/1.) + if test -n "$gl_have_pthread"; then + # The program links fine without libpthread. But it may actually + # need to link with libpthread in order to create multiple threads. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } +if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); int main () { -uintmax_t i = (uintmax_t) -1; return !i; +return pthread_kill (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_inttypes_h=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_kill=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_header_inttypes_h=no + ac_cv_lib_pthread_pthread_kill=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 -echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } - if test $gl_cv_header_inttypes_h = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + # On Solaris and HP-UX, most pthread functions exist also in libc. + # Therefore pthread_in_use() needs to actually try to create a + # thread: pthread_create from libc will fail, whereas + # pthread_create will actually create a thread. + case "$host_os" in + solaris* | hpux*) -cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 -_ACEOF +$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h - fi + esac +fi - { echo "$as_me:$LINENO: checking for unsigned long long int" >&5 -echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; } -if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + else + # Some library is needed. Try libpthread and libc_r. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } +if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); int main () { -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); +return pthread_kill (); ; return 0; } - _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_type_unsigned_long_long_int=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_kill=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_unsigned_long_long_int=no + ac_cv_lib_pthread_pthread_kill=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 -echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; } - if test $ac_cv_type_unsigned_long_long_int = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_UNSIGNED_LONG_LONG_INT 1 -_ACEOF - - fi - - - - - if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then - - test $ac_cv_type_unsigned_long_long_int = yes \ - && ac_type='unsigned long long' \ - || ac_type='unsigned long' - -cat >>confdefs.h <<_ACEOF -#define uintmax_t $ac_type -_ACEOF - - else - -cat >>confdefs.h <<\_ACEOF -#define HAVE_UINTMAX_T 1 -_ACEOF - - fi - - - -for ac_header in inttypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : + gl_have_pthread=yes + LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + + if test -z "$gl_have_pthread"; then + # For FreeBSD 4. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } +if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc_r $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); +int +main () +{ +return pthread_kill (); + ; + return 0; +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_r_pthread_kill=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + ac_cv_lib_c_r_pthread_kill=no fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : + gl_have_pthread=yes + LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r + LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + fi + fi + if test -n "$gl_have_pthread"; then + gl_threads_api=posix -done +$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h - if test $ac_cv_header_inttypes_h = yes; then - { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 -echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } -if test "${gt_cv_inttypes_pri_broken+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef PRId32 -char *p = PRId32; -#endif +$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then + gl_have_solaristhread= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lthread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include int main () { - +thr_self(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_inttypes_pri_broken=no +if ac_fn_c_try_link "$LINENO"; then : + gl_have_solaristhread=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test -n "$gl_have_solaristhread"; then + gl_threads_api=solaris + LIBTHREAD=-lthread + LTLIBTHREAD=-lthread + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + +$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h + + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + +$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h + + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + if test "$gl_use_threads" = pth; then + gl_save_CPPFLAGS="$CPPFLAGS" + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 +$as_echo_n "checking how to link with libpth... " >&6; } +if test "${ac_cv_libpth_libs+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_inttypes_pri_broken=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 -echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } - fi - if test "$gt_cv_inttypes_pri_broken" = yes; then -cat >>confdefs.h <<_ACEOF -#define PRI_MACROS_BROKEN 1 -_ACEOF - PRI_MACROS_BROKEN=1 - else - PRI_MACROS_BROKEN=0 - fi + use_additional=yes + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then - enableval=$enable_threads; gl_use_threads=$enableval -else - case "$host_os" in - osf*) gl_use_threads=no ;; - *) gl_use_threads=yes ;; - esac + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # For using : - case "$host_os" in - osf*) - # On OSF/1, the compiler needs the flag -D_REENTRANT so that it - # groks . cc also understands the flag -pthread, but - # we don't use it because 1. gcc-2.95 doesn't understand -pthread, - # 2. putting a flag into CPPFLAGS that has an effect on the linker - # causes the AC_TRY_LINK test below to succeed unexpectedly, - # leading to wrong values of LIBTHREAD and LTLIBTHREAD. - CPPFLAGS="$CPPFLAGS -D_REENTRANT" - ;; - esac - # Some systems optimize for single-threaded programs by default, and - # need special flags to disable these optimizations. For example, the - # definition of 'errno' in . - case "$host_os" in - aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; - solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; - esac - fi +# Check whether --with-libpth-prefix was given. +if test "${with_libpth_prefix+set}" = set; then : + withval=$with_libpth_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi +fi + LIBPTH= + LTLIBPTH= + INCPTH= + LIBPTH_PREFIX= + HAVE_LIBPTH= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='pth ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBPTH; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBPTH; do - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'pth'; then + LIBPTH_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'pth'; then + LIBPTH_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCPTH; do -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi - - - - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - - + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - gl_threads_api=none - LIBTHREAD= - LTLIBTHREAD= - LIBMULTITHREAD= - LTLIBMULTITHREAD= - if test "$gl_use_threads" != no; then - { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5 -echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; } - gl_have_weak=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern void xyzzy (); -#pragma weak xyzzy -int -main () -{ -xyzzy(); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_weak=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBPTH; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBPTH; do -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $gl_have_weak" >&5 -echo "${ECHO_T}$gl_have_weak" >&6; } - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that - # it groks . It's added above, in gl_LOCK_EARLY_BODY. - if test "${ac_cv_header_pthread_h+set}" = set; then - { echo "$as_me:$LINENO: checking for pthread.h" >&5 -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking pthread.h usability" >&5 -echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - ac_header_compiler=no -fi + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" + ;; + esac + done + fi + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" + done + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking pthread.h presence" >&5 -echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for pthread.h" >&5 -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_pthread_h=$ac_header_preproc -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } + ac_cv_libpth_libs="$LIBPTH" + ac_cv_libpth_ltlibs="$LTLIBPTH" + ac_cv_libpth_cppflags="$INCPTH" + ac_cv_libpth_prefix="$LIBPTH_PREFIX" fi -if test $ac_cv_header_pthread_h = yes; then - gl_have_pthread_h=yes -else - gl_have_pthread_h=no -fi - - - if test "$gl_have_pthread_h" = yes; then - # Other possible tests: - # -lpthreads (FSU threads, PCthreads) - # -lgthreads - gl_have_pthread= - # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist - # in libc. IRIX 6.5 has the first one in both libc and libpthread, but - # the second one only in libpthread, and lock.c needs it. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -pthread_mutex_lock((pthread_mutex_t*)0); - pthread_mutexattr_init((pthread_mutexattr_t*)0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_pthread=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 +$as_echo "$ac_cv_libpth_libs" >&6; } + LIBPTH="$ac_cv_libpth_libs" + LTLIBPTH="$ac_cv_libpth_ltlibs" + INCPTH="$ac_cv_libpth_cppflags" + LIBPTH_PREFIX="$ac_cv_libpth_prefix" -fi + for element in $INCPTH; do + haveit= + for x in $CPPFLAGS; do -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - # Test for libpthread by looking for pthread_kill. (Not pthread_self, - # since it is defined as a macro on OSF/1.) - if test -n "$gl_have_pthread"; then - # The program links fine without libpthread. But it may actually - # need to link with libpthread in order to create multiple threads. - { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } -if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); -int -main () -{ -return pthread_kill (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pthread_pthread_kill=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - ac_cv_lib_pthread_pthread_kill=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } -if test $ac_cv_lib_pthread_pthread_kill = yes; then - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread - # On Solaris and HP-UX, most pthread functions exist also in libc. - # Therefore pthread_in_use() needs to actually try to create a - # thread: pthread_create from libc will fail, whereas - # pthread_create will actually create a thread. - case "$host_os" in - solaris* | hpux*) -cat >>confdefs.h <<\_ACEOF -#define PTHREAD_IN_USE_DETECTION_HARD 1 -_ACEOF - esac + HAVE_LIBPTH=yes -fi - else - # Some library is needed. Try libpthread and libc_r. - { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } -if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); + gl_have_pth= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lpth" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return pthread_kill (); +pth_self(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pthread_pthread_kill=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pthread_pthread_kill=no +if ac_fn_c_try_link "$LINENO"; then : + gl_have_pth=yes fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test -n "$gl_have_pth"; then + gl_threads_api=pth + LIBTHREAD="$LIBPTH" + LTLIBTHREAD="$LTLIBPTH" + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } -if test $ac_cv_lib_pthread_pthread_kill = yes; then - gl_have_pthread=yes - LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread -fi +$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h - if test -z "$gl_have_pthread"; then - # For FreeBSD 4. - { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5 -echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; } -if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lc_r $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); -int -main () -{ -return pthread_kill (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_c_r_pthread_kill=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h - ac_cv_lib_c_r_pthread_kill=no -fi + LIBTHREAD= + LTLIBTHREAD= + fi + fi + else + CPPFLAGS="$gl_save_CPPFLAGS" + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then + if { case "$host_os" in + mingw*) true;; + *) false;; + esac + }; then + gl_threads_api=win32 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; } -if test $ac_cv_lib_c_r_pthread_kill = yes; then - gl_have_pthread=yes - LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r - LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r -fi +$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h - fi fi - if test -n "$gl_have_pthread"; then - gl_threads_api=posix + fi + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 +$as_echo_n "checking for multithread API to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 +$as_echo "$gl_threads_api" >&6; } + + -cat >>confdefs.h <<\_ACEOF -#define USE_POSIX_THREADS 1 -_ACEOF - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_POSIX_THREADS_WEAK 1 -_ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the - # pthread_rwlock_* functions. - { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 -echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } -if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -typedef pthread_rwlock_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_pthread_rwlock_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_pthread_rwlock_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 -echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } -if test $ac_cv_type_pthread_rwlock_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_RWLOCK 1 -_ACEOF + + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include +" +if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : + +$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h fi - # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int @@ -24043,124 +15535,23 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_MUTEX_RECURSIVE 1 -_ACEOF - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : +$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then - gl_have_solaristhread= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lthread" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -thr_self(); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_solaristhread=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test -n "$gl_have_solaristhread"; then - gl_threads_api=solaris - LIBTHREAD=-lthread - LTLIBTHREAD=-lthread - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" -cat >>confdefs.h <<\_ACEOF -#define USE_SOLARIS_THREADS 1 -_ACEOF - if test $gl_have_weak = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_SOLARIS_THREADS_WEAK 1 -_ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - fi - fi - if test "$gl_use_threads" = pth; then - gl_save_CPPFLAGS="$CPPFLAGS" - { echo "$as_me:$LINENO: checking how to link with libpth" >&5 -echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; } -if test "${ac_cv_libpth_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else @@ -24180,9 +15571,9 @@ prefix="$acl_save_prefix" -# Check whether --with-libpth-prefix was given. -if test "${with_libpth_prefix+set}" = set; then - withval=$with_libpth_prefix; +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : + withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else @@ -24202,19 +15593,24 @@ else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi fi fi fi - LIBPTH= - LTLIBPTH= - INCPTH= - LIBPTH_PREFIX= + LIBICONV= + LTLIBICONV= + INCICONV= + LIBICONV_PREFIX= + HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= - names_next_round='pth ' + names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= @@ -24233,9 +15629,9 @@ if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" - test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi @@ -24292,7 +15688,7 @@ fi fi if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBPTH; do + for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -24351,10 +15747,12 @@ done fi if test "X$found_dir" != "X"; then - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do @@ -24367,10 +15765,10 @@ ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then @@ -24383,7 +15781,7 @@ fi else haveit= - for x in $LDFLAGS $LIBPTH; do + for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -24399,28 +15797,37 @@ fi done if test -z "$haveit"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else - LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBPTH_PREFIX="$basedir" + if test "$name" = 'iconv'; then + LIBICONV_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'iconv'; then + LIBICONV_PREFIX="$basedir" + fi additional_includedir="$basedir/include" ;; esac @@ -24435,7 +15842,7 @@ fi fi if test -z "$haveit"; then - for x in $CPPFLAGS $INCPTH; do + for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -24452,7 +15859,7 @@ done if test -z "$haveit"; then if test -d "$additional_includedir"; then - INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi @@ -24469,9 +15876,11 @@ case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; @@ -24480,7 +15889,7 @@ fi if test -z "$haveit"; then haveit= - for x in $LDFLAGS $LIBPTH; do + for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -24497,11 +15906,11 @@ done if test -z "$haveit"; then if test -d "$additional_libdir"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= - for x in $LDFLAGS $LTLIBPTH; do + for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -24518,7 +15927,7 @@ done if test -z "$haveit"; then if test -d "$additional_libdir"; then - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi @@ -24556,15 +15965,15 @@ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) - LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else - LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi @@ -24580,621 +15989,866 @@ libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" - LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" - LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" + done + fi + + + + + + + + + + + + + am_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if test "${am_cv_func_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_lib_iconv=yes + am_cv_func_iconv=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +$as_echo_n "checking for working iconv... " >&6; } +if test "${am_cv_func_iconv_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + am_save_LIBS="$LIBS" + if test $am_cv_lib_iconv = yes; then + LIBS="$LIBS $LIBICONV" + fi + if test "$cross_compiling" = yes; then : + case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +int main () +{ + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful + returns. */ + { + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); + if (cd_utf8_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\342\202\254"; /* EURO SIGN */ + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_utf8_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } + /* Test against Solaris 10 bug: Failures are not distinguishable from + successful returns. */ + { + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); + if (cd_ascii_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\263"; + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_ascii_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } +#if 0 /* This bug could be worked around by the caller. */ + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char buf[50]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_88591_to_utf8, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if ((int)res > 0) + return 1; + } + } +#endif + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is + provided. */ + if (/* Try standardized names. */ + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) + /* Try IRIX, OSF/1 names. */ + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) + /* Try AIX names. */ + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) + /* Try HP-UX names. */ + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + am_cv_func_iconv_works=yes +else + am_cv_func_iconv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + LIBS="$am_save_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +$as_echo "$am_cv_func_iconv_works" >&6; } + case "$am_cv_func_iconv_works" in + *no) am_func_iconv=no am_cv_lib_iconv=no ;; + *) am_func_iconv=yes ;; + esac + else + am_func_iconv=no am_cv_lib_iconv=no + fi + if test "$am_func_iconv" = yes; then + +$as_echo "#define HAVE_ICONV 1" >>confdefs.h + + fi + if test "$am_cv_lib_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +$as_echo_n "checking how to link with libiconv... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +$as_echo "$LIBICONV" >&6; } + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= fi - ac_cv_libpth_libs="$LIBPTH" - ac_cv_libpth_ltlibs="$LTLIBPTH" - ac_cv_libpth_cppflags="$INCPTH" - ac_cv_libpth_prefix="$LIBPTH_PREFIX" + + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +$as_echo_n "checking for iconv declaration... " >&6; } + if test "${am_cv_proto_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + am_cv_proto_iconv_arg1="" +else + am_cv_proto_iconv_arg1="const" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi -{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5 -echo "${ECHO_T}$ac_cv_libpth_libs" >&6; } - LIBPTH="$ac_cv_libpth_libs" - LTLIBPTH="$ac_cv_libpth_ltlibs" - INCPTH="$ac_cv_libpth_cppflags" - LIBPTH_PREFIX="$ac_cv_libpth_prefix" - for element in $INCPTH; do - haveit= - for x in $CPPFLAGS; do + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: + $am_cv_proto_iconv" >&5 +$as_echo " + $am_cv_proto_iconv" >&6; } - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done + fi - HAVE_LIBPTH=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext - gl_have_pth= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lpth" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_header in argz.h inttypes.h limits.h unistd.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ + stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ + argz_stringify argz_next __fsetlocking +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi +done + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 +$as_echo_n "checking whether feof_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include int main () { -pth_self(); + +#ifndef feof_unlocked + char *p = (char *) feof_unlocked; +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_pth=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_feof_unlocked=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + ac_cv_have_decl_feof_unlocked=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 +$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } + if test $ac_cv_have_decl_feof_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test -n "$gl_have_pth"; then - gl_threads_api=pth - LIBTHREAD="$LIBPTH" - LTLIBTHREAD="$LTLIBPTH" - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" - -cat >>confdefs.h <<\_ACEOF -#define USE_PTH_THREADS 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FEOF_UNLOCKED $gt_value _ACEOF - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_PTH_THREADS_WEAK 1 -_ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - else - CPPFLAGS="$gl_save_CPPFLAGS" - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then - if { case "$host_os" in - mingw*) true;; - *) false;; - esac - }; then - gl_threads_api=win32 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 +$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ -cat >>confdefs.h <<\_ACEOF -#define USE_WIN32_THREADS 1 -_ACEOF +#ifndef fgets_unlocked + char *p = (char *) fgets_unlocked; +#endif - fi - fi - fi + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_fgets_unlocked=yes +else + ac_cv_have_decl_fgets_unlocked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 +$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } + if test $ac_cv_have_decl_fgets_unlocked = yes; then + gt_value=1 + else + gt_value=0 fi - { echo "$as_me:$LINENO: checking for multithread API to use" >&5 -echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_threads_api" >&5 -echo "${ECHO_T}$gl_threads_api" >&6; } + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FGETS_UNLOCKED $gt_value +_ACEOF + for ac_prog in bison +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_INTLBISON+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$INTLBISON"; then + ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_INTLBISON="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +INTLBISON=$ac_cv_prog_INTLBISON +if test -n "$INTLBISON"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 +$as_echo "$INTLBISON" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + test -n "$INTLBISON" && break +done + if test -z "$INTLBISON"; then + ac_verc_fail=yes + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 +$as_echo_n "checking version of bison... " >&6; } + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 +$as_echo "$ac_prog_version" >&6; } + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +$as_echo_n "checking for long long int... " >&6; } +if test "${ac_cv_type_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; +int +main () +{ +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_type_long_long_int=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifndef LLONG_MAX + # define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + # define LLONG_MAX (HALF - 1 + HALF) + #endif +int +main () +{ +long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_type_long_long_int=yes +else + ac_cv_type_long_long_int=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +else + ac_cv_type_long_long_int=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: $ac_cv_type_long_long_int" >&5 +$as_echo "$ac_cv_type_long_long_int" >&6; } + if test $ac_cv_type_long_long_int = yes; then +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +$as_echo_n "checking for wchar_t... " >&6; } +if test "${gt_cv_c_wchar_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + wchar_t foo = (wchar_t)'\0'; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wchar_t=yes +else + gt_cv_c_wchar_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +$as_echo "$gt_cv_c_wchar_t" >&6; } + if test $gt_cv_c_wchar_t = yes; then - use_additional=yes +$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + fi - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +$as_echo_n "checking for wint_t... " >&6; } +if test "${gt_cv_c_wint_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + wint_t foo = (wchar_t)'\0'; +int +main () +{ -# Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then - withval=$with_libiconv_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wint_t=yes +else + gt_cv_c_wint_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +$as_echo "$gt_cv_c_wint_t" >&6; } + if test $gt_cv_c_wint_t = yes; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" +$as_echo "#define HAVE_WINT_T 1" >>confdefs.h - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + fi - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBICONV= - LTLIBICONV= - INCICONV= - LIBICONV_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='iconv ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBICONV; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +$as_echo_n "checking for intmax_t... " >&6; } +if test "${gt_cv_c_intmax_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBICONV; do +int +main () +{ +intmax_t x = -1; + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_intmax_t=yes +else + gt_cv_c_intmax_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +$as_echo "$gt_cv_c_intmax_t" >&6; } + if test $gt_cv_c_intmax_t = yes; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBICONV_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCICONV; do + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBICONV; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 +$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } +if test "${gt_cv_func_printf_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBICONV; do + if test "$cross_compiling" = yes; then : - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" - ;; - esac - done - fi - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" - done - fi +#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "notposix" >/dev/null 2>&1; then : + gt_cv_func_printf_posix="guessing no" +else + gt_cv_func_printf_posix="guessing yes" +fi +rm -f conftest* + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gt_cv_func_printf_posix=yes +else + gt_cv_func_printf_posix=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 +$as_echo "$gt_cv_func_printf_posix" >&6; } + case $gt_cv_func_printf_posix in + *yes) + +$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h + + ;; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } +if test "${ac_cv_gnu_library_2_1+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + ac_cv_gnu_library_2_1=yes +else + ac_cv_gnu_library_2_1=no +fi +rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 +$as_echo "$ac_cv_gnu_library_2_1" >&6; } + + GLIBC21="$ac_cv_gnu_library_2_1" + - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +$as_echo_n "checking for SIZE_MAX... " >&6; } +if test "${gl_cv_size_max+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gl_cv_size_max= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } + +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then : + gl_cv_size_max=yes +fi +rm -f conftest* + + if test -z "$gl_cv_size_max"; then + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include +#include "; then : + +else + size_t_bits_minus_1= +fi + + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : + +else + fits_in_uint= +fi + + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + extern size_t foo; + extern unsigned long foo; + int main () { @@ -25203,182 +16857,219 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_compile "$LINENO"; then : + fits_in_uint=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi + else + gl_cv_size_max='((size_t)~(size_t)0)' + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +$as_echo "$gl_cv_size_max" >&6; } + if test "$gl_cv_size_max" != yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_BUILTIN_EXPECT 1 +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $gl_cv_size_max _ACEOF -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + fi -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 +_ACEOF +fi +done -for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 +$as_echo_n "checking for working fcntl.h... " >&6; } +if test "${gl_cv_header_working_fcntl_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + gl_cv_header_working_fcntl_h=cross-compiling +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + #include + #include + #include + #ifndef O_NOATIME + #define O_NOATIME 0 + #endif + #ifndef O_NOFOLLOW + #define O_NOFOLLOW 0 + #endif + static int const constants[] = + { + O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, + O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY + }; + +int +main () +{ + + int status = !constants; + { + static char const sym[] = "conftest.sym"; + if (symlink (".", sym) != 0 + || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) + status |= 32; + unlink (sym); + } + { + static char const file[] = "confdefs.h"; + int fd = open (file, O_RDONLY | O_NOATIME); + char c; + struct stat st0, st1; + if (fd < 0 + || fstat (fd, &st0) != 0 + || sleep (1) != 0 + || read (fd, &c, 1) != 1 + || close (fd) != 0 + || stat (file, &st1) != 0 + || st0.st_atime != st1.st_atime) + status |= 64; + } + return status; + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_header_working_fcntl_h=yes +else + case $? in #( + 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( + 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( + 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( + *) gl_cv_header_working_fcntl_h='no';; + esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 +$as_echo "$gl_cv_header_working_fcntl_h" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + case $gl_cv_header_working_fcntl_h in #( + *O_NOATIME* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_WORKING_O_NOATIME $ac_val +_ACEOF + + + case $gl_cv_header_working_fcntl_h in #( + *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac + +cat >>confdefs.h <<_ACEOF +#define HAVE_WORKING_O_NOFOLLOW $ac_val _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> +#include +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) + ; + return 0; +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFPreferencesCopyAppValue=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + gt_cv_func_CFPreferencesCopyAppValue=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +CFLocaleCopyCurrent(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFLocaleCopyCurrent=yes else - eval "$as_ac_Header=\$ac_header_preproc" + gt_cv_func_CFLocaleCopyCurrent=no fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -fi +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h -done + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi @@ -25386,240 +17077,405 @@ + case "$enable_silent_rules" in + yes) INTL_DEFAULT_VERBOSITY=0;; + no) INTL_DEFAULT_VERBOSITY=1;; + *) INTL_DEFAULT_VERBOSITY=1;; + esac + ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : +else +$as_echo "#define ptrdiff_t long" >>confdefs.h +fi + for ac_header in stddef.h stdlib.h string.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF +fi +done -for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ - stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ - argz_next __fsetlocking -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ + snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +fi +done -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 +$as_echo_n "checking whether _snprintf is declared... " >&6; } +if test "${ac_cv_have_decl__snprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef _snprintf + char *p = (char *) _snprintf; #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl__snprintf=yes +else + ac_cv_have_decl__snprintf=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 +$as_echo "$ac_cv_have_decl__snprintf" >&6; } + if test $ac_cv_have_decl__snprintf = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNPRINTF $gt_value +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 +$as_echo_n "checking whether _snwprintf is declared... " >&6; } +if test "${ac_cv_have_decl__snwprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); + +#ifndef _snwprintf + char *p = (char *) _snwprintf; +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl__snwprintf=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_have_decl__snwprintf=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 +$as_echo "$ac_cv_have_decl__snwprintf" >&6; } + if test $ac_cv_have_decl__snwprintf = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNWPRINTF $gt_value _ACEOF -fi -done - { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 -echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 +$as_echo_n "checking whether getc_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { -#ifndef feof_unlocked - char *p = (char *) feof_unlocked; +#ifndef getc_unlocked + char *p = (char *) getc_unlocked; #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_feof_unlocked=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_getc_unlocked=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_feof_unlocked=no + ac_cv_have_decl_getc_unlocked=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } - if test $ac_cv_have_decl_feof_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 +$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } + if test $ac_cv_have_decl_getc_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED $gt_value +#define HAVE_DECL_GETC_UNLOCKED $gt_value _ACEOF - { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 -echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac + + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 + else + HAVE_ASPRINTF=0 + fi + + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi + + if test "$ac_cv_func_newlocale" = yes; then + HAVE_NEWLOCALE=1 + else + HAVE_NEWLOCALE=0 + fi + + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 + else + HAVE_WPRINTF=0 + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } +if test "${am_cv_langinfo_codeset+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include int main () { +char* cs = nl_langinfo(CODESET); return !cs; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_langinfo_codeset=yes +else + am_cv_langinfo_codeset=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext -#ifndef fgets_unlocked - char *p = (char *) fgets_unlocked; -#endif +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +$as_echo "$am_cv_langinfo_codeset" >&6; } + if test $am_cv_langinfo_codeset = yes; then + +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +$as_echo_n "checking for LC_MESSAGES... " >&6; } +if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return LC_MESSAGES ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fgets_unlocked=yes +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_val_LC_MESSAGES=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_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: $gt_cv_val_LC_MESSAGES" >&5 +$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } + if test $gt_cv_val_LC_MESSAGES = yes; then + +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h + + fi + + + if test "$enable_shared" = yes; then + case "$host_os" in + mingw* | cygwin*) is_woe32dll=yes ;; + *) is_woe32dll=no ;; + esac + else + is_woe32dll=no + fi + WOE32DLL=$is_woe32dll + + + case "$host_os" in + mingw* | cygwin*) is_woe32=yes ;; + *) is_woe32=no ;; + esac + WOE32=$is_woe32 + + if test $WOE32 = yes; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_WINDRES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_WINDRES="${ac_tool_prefix}windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_cv_have_decl_fgets_unlocked=no +fi +fi +WINDRES=$ac_cv_prog_WINDRES +if test -n "$WINDRES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 +$as_echo "$WINDRES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } - if test $ac_cv_have_decl_fgets_unlocked = yes; then - gt_value=1 +if test -z "$ac_cv_prog_WINDRES"; then + ac_ct_WINDRES=$WINDRES + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_WINDRES"; then + ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_WINDRES="windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES +if test -n "$ac_ct_WINDRES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 +$as_echo "$ac_ct_WINDRES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_WINDRES" = x; then + WINDRES="" else - gt_value=0 + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + WINDRES=$ac_ct_WINDRES fi +else + WINDRES="$ac_cv_prog_WINDRES" +fi + + fi + + case "$host_os" in + hpux*) LTLIBC="" ;; + *) LTLIBC="-lc" ;; + esac + + + + + + + + + + + + + -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED $gt_value -_ACEOF @@ -25628,2103 +17484,1387 @@ - am_save_CPPFLAGS="$CPPFLAGS" - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - { echo "$as_me:$LINENO: checking for iconv" >&5 -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : + $as_echo_n "(cached) " >&6 else - - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include int main () { -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); +CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_func_iconv=yes +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFPreferencesCopyAppValue=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gt_cv_func_CFPreferencesCopyAppValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include int main () { -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); +CFLocaleCopyCurrent(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFLocaleCopyCurrent=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h -fi + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -echo "${ECHO_T}$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for working iconv" >&5 -echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + + LIBINTL= + LTLIBINTL= + POSUB= + + case " $gt_needs " in + *" need-formatstring-macros "*) gt_api_version=3 ;; + *" need-ngettext "*) gt_api_version=2 ;; + *) gt_api_version=1 ;; + esac + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 +$as_echo_n "checking whether included gettext is requested... " >&6; } + +# Check whether --with-included-gettext was given. +if test "${with_included_gettext+set}" = set; then : + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else + nls_cv_force_use_gnu_gettext=no +fi - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - if test "$cross_compiling" = yes; then - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 +$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + + + if test $gt_api_version -ge 3; then + gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +#endif +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +' + else + gt_revision_test_code= + fi + if test $gt_api_version -ge 2; then + gt_expression_test_code=' + * ngettext ("", "", 0)' + else + gt_expression_test_code= + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +$as_echo_n "checking for GNU gettext in libc... " >&6; } +if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include -#include -int main () +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; +int +main () { - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static const char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - return 1; - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - return 1; - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings + ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_iconv_works=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$gt_func_gnugettext_libc=yes" else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -am_cv_func_iconv_works=no + eval "$gt_func_gnugettext_libc=no" fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +eval ac_res=\$$gt_func_gnugettext_libc + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then - LIBS="$am_save_LIBS" -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 -echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF - fi - if test "$am_cv_lib_iconv" = yes; then - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBICONV" >&5 -echo "${ECHO_T}$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for iconv declaration" >&5 -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } - if test "${am_cv_proto_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libintl-prefix was given. +if test "${with_libintl_prefix+set}" = set; then : + withval=$with_libintl_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -int -main () -{ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - am_cv_proto_iconv_arg1="const" -fi + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -echo "${ECHO_T}${ac_t:- - }$am_cv_proto_iconv" >&6; } + LIBINTL= + LTLIBINTL= + INCINTL= + LIBINTL_PREFIX= + HAVE_LIBINTL= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='intl ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBINTL; do -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - fi + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBINTL; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5 -echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; } -if test "${gt_cv_nl_locale_name+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); - return !cs; + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'intl'; then + LIBINTL_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'intl'; then + LIBINTL_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCINTL; do - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_nl_locale_name=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - gt_cv_nl_locale_name=no -fi + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBINTL; do -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5 -echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; } - if test $gt_cv_nl_locale_name = yes; then + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBINTL; do -cat >>confdefs.h <<\_ACEOF -#define HAVE_NL_LOCALE_NAME 1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" + ;; + esac + done + fi + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + done + fi fi - - for ac_prog in bison -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_INTLBISON+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$INTLBISON"; then - ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_INTLBISON="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" + done fi -done -done -IFS=$as_save_IFS - -fi -fi -INTLBISON=$ac_cv_prog_INTLBISON -if test -n "$INTLBISON"; then - { echo "$as_me:$LINENO: result: $INTLBISON" >&5 -echo "${ECHO_T}$INTLBISON" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - test -n "$INTLBISON" && break -done - - if test -z "$INTLBISON"; then - ac_verc_fail=yes - else - { echo "$as_me:$LINENO: checking version of bison" >&5 -echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` - case $ac_prog_version in - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; - esac - { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 -echo "${ECHO_T}$ac_prog_version" >&6; } - fi - if test $ac_verc_fail = yes; then - INTLBISON=: - fi - { echo "$as_me:$LINENO: checking for long long int" >&5 -echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } -if test "${ac_cv_type_long_long_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +$as_echo_n "checking for GNU gettext in libintl... " >&6; } +if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); int main () { -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } - _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - if test "$cross_compiling" = yes; then - ac_cv_type_long_long_int=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$gt_func_gnugettext_libintl=yes" else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + eval "$gt_func_gnugettext_libintl=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #ifndef LLONG_MAX - # define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - # define LLONG_MAX (HALF - 1 + HALF) - #endif +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern +#ifdef __cplusplus +"C" +#endif +const char *_nl_expand_alias (const char *); int main () { -long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0; +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_long_long_int=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" -( exit $ac_status ) -ac_cv_type_long_long_int=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" fi +eval ac_res=\$$gt_func_gnugettext_libintl + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + fi + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + LIBINTL= + LTLIBINTL= + INCINTL= + fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_long_long_int=no -fi + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + nls_cv_use_gnu_gettext=yes + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 -echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } - if test $ac_cv_type_long_long_int = yes; then + if test "$nls_cv_use_gnu_gettext" = "yes"; then + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" + LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_LONG_INT 1 -_ACEOF + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + CATOBJEXT=.gmo + fi - fi + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi - { echo "$as_me:$LINENO: checking for wchar_t" >&5 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wchar_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - wchar_t foo = (wchar_t)'\0'; -int -main () -{ + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wchar_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define ENABLE_NLS 1" >>confdefs.h - gt_cv_c_wchar_t=no -fi + else + USE_NLS=no + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 -echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } - if test $gt_cv_c_wchar_t = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +$as_echo_n "checking whether to use NLS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + if test "$USE_NLS" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +$as_echo_n "checking where the gettext function comes from... " >&6; } + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +$as_echo "$gt_source" >&6; } + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_WCHAR_T 1 -_ACEOF + if test "$USE_NLS" = "yes"; then - fi + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +$as_echo_n "checking how to link with libintl... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +$as_echo "$LIBINTL" >&6; } + for element in $INCINTL; do + haveit= + for x in $CPPFLAGS; do - { echo "$as_me:$LINENO: checking for wint_t" >&5 -echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wint_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include - wint_t foo = (wchar_t)'\0'; -int -main () -{ + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wint_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + fi - gt_cv_c_wint_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 -echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } - if test $gt_cv_c_wint_t = yes; then +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define HAVE_WINT_T 1 -_ACEOF +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h + + fi + + POSUB=po fi + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi - { echo "$as_me:$LINENO: checking for intmax_t" >&5 -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } -if test "${gt_cv_c_intmax_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if HAVE_STDINT_H_WITH_UINTMAX -#include -#endif -#if HAVE_INTTYPES_H_WITH_UINTMAX -#include -#endif -int -main () -{ -intmax_t x = -1; - return !x; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_intmax_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_c_intmax_t=no -fi + nls_cv_header_intl= + nls_cv_header_libgt= + + DATADIRNAME=share + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 -echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } - if test $gt_cv_c_intmax_t = yes; then + INSTOBJEXT=.mo -cat >>confdefs.h <<\_ACEOF -#define HAVE_INTMAX_T 1 -_ACEOF - fi + GENCAT=gencat + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi - { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 -echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } -if test "${gt_cv_func_printf_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then + INTL_LIBTOOL_SUFFIX_PREFIX=l - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ - notposix -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "notposix" >/dev/null 2>&1; then - gt_cv_func_printf_posix="guessing no" -else - gt_cv_func_printf_posix="guessing yes" -fi -rm -f conftest* + INTLLIBS="$LIBINTL" -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -/* The string "%2$d %1$d", with dollar characters protected from the shell's - dollar expansion (possibly an autoconf bug). */ -static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; -static char buf[100]; -int main () -{ - sprintf (buf, format, 33, 55); - return (strcmp (buf, "55 33") != 0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gt_cv_func_printf_posix=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gt_cv_func_printf_posix=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 -echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } - case $gt_cv_func_printf_posix in - *yes) -cat >>confdefs.h <<\_ACEOF -#define HAVE_POSIX_PRINTF 1 -_ACEOF - ;; - esac - { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 -echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } -if test "${ac_cv_gnu_library_2_1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - ac_cv_gnu_library_2_1=yes -else - ac_cv_gnu_library_2_1=no -fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 -echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } - GLIBC21="$ac_cv_gnu_library_2_1" -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + for ac_func in $gl_func_list +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } - if test "${gl_cv_size_max+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_size_max= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#if HAVE_STDINT_H -#include -#endif -#ifdef SIZE_MAX -Found it -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then - gl_cv_size_max=yes -fi -rm -f conftest* - if test -z "$gl_cv_size_max"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 +$as_echo_n "checking whether // is distinct from /... " >&6; } +if test "${gl_cv_double_slash_root+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 +$as_echo "$gl_cv_double_slash_root" >&6; } + if test "$gl_cv_double_slash_root" = yes; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h + + fi - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 + : - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) size_t_bits_minus_1=$ac_lo;; -'') size_t_bits_minus_1= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } -static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) * CHAR_BIT - 1) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - size_t_bits_minus_1=`cat conftest.val` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5 +$as_echo_n "checking whether realpath works... " >&6; } +if test "${gl_cv_func_realpath_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -size_t_bits_minus_1= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + touch conftest.a + if test "$cross_compiling" = yes; then : + gl_cv_func_realpath_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + + #include + int main () { -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 + + char *name1 = realpath ("conftest.a", NULL); + char *name2 = realpath ("conftest.b/../conftest.a", NULL); + char *name3 = realpath ("conftest.a/", NULL); + return !(name1 && *name1 == '/' && !name2 && !name3); ; return 0; } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_realpath_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_realpath_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5 +$as_echo "$gl_cv_func_realpath_works" >&6; } + if test "$gl_cv_func_realpath_works" = yes; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; -test_array [0] = 0 + fi - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) fits_in_uint=$ac_lo;; -'') fits_in_uint= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } -static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - fits_in_uint=`cat conftest.val` + + + + + + + : + + + + + + + + GNULIB_ATOLL=0; + GNULIB_CALLOC_POSIX=0; + GNULIB_CANONICALIZE_FILE_NAME=0; + GNULIB_GETLOADAVG=0; + GNULIB_GETSUBOPT=0; + GNULIB_GRANTPT=0; + GNULIB_MALLOC_POSIX=0; + GNULIB_MKDTEMP=0; + GNULIB_MKOSTEMP=0; + GNULIB_MKOSTEMPS=0; + GNULIB_MKSTEMP=0; + GNULIB_MKSTEMPS=0; + GNULIB_PTSNAME=0; + GNULIB_PUTENV=0; + GNULIB_RANDOM_R=0; + GNULIB_REALLOC_POSIX=0; + GNULIB_REALPATH=0; + GNULIB_RPMATCH=0; + GNULIB_SETENV=0; + GNULIB_STRTOD=0; + GNULIB_STRTOLL=0; + GNULIB_STRTOULL=0; + GNULIB_UNLOCKPT=0; + GNULIB_UNSETENV=0; + HAVE_ATOLL=1; + HAVE_CALLOC_POSIX=1; + HAVE_CANONICALIZE_FILE_NAME=1; + HAVE_DECL_GETLOADAVG=1; + HAVE_GETSUBOPT=1; + HAVE_GRANTPT=1; + HAVE_MALLOC_POSIX=1; + HAVE_MKDTEMP=1; + HAVE_MKOSTEMP=1; + HAVE_MKOSTEMPS=1; + HAVE_MKSTEMP=1; + HAVE_MKSTEMPS=1; + HAVE_PTSNAME=1; + HAVE_RANDOM_R=1; + HAVE_REALLOC_POSIX=1; + HAVE_REALPATH=1; + HAVE_RPMATCH=1; + HAVE_SETENV=1; + HAVE_STRTOD=1; + HAVE_STRTOLL=1; + HAVE_STRTOULL=1; + HAVE_STRUCT_RANDOM_DATA=1; + HAVE_SYS_LOADAVG_H=0; + HAVE_UNLOCKPT=1; + HAVE_UNSETENV=1; + REPLACE_CANONICALIZE_FILE_NAME=0; + REPLACE_MKSTEMP=0; + REPLACE_PUTENV=0; + REPLACE_REALPATH=0; + REPLACE_SETENV=0; + REPLACE_STRTOD=0; + REPLACE_UNSETENV=0; + + + GNULIB_CHOWN=0; + GNULIB_CLOSE=0; + GNULIB_DUP2=0; + GNULIB_DUP3=0; + GNULIB_ENVIRON=0; + GNULIB_EUIDACCESS=0; + GNULIB_FACCESSAT=0; + GNULIB_FCHDIR=0; + GNULIB_FCHOWNAT=0; + GNULIB_FSYNC=0; + GNULIB_FTRUNCATE=0; + GNULIB_GETCWD=0; + GNULIB_GETDOMAINNAME=0; + GNULIB_GETDTABLESIZE=0; + GNULIB_GETGROUPS=0; + GNULIB_GETHOSTNAME=0; + GNULIB_GETLOGIN=0; + GNULIB_GETLOGIN_R=0; + GNULIB_GETPAGESIZE=0; + GNULIB_GETUSERSHELL=0; + GNULIB_LCHOWN=0; + GNULIB_LINK=0; + GNULIB_LINKAT=0; + GNULIB_LSEEK=0; + GNULIB_PIPE2=0; + GNULIB_PREAD=0; + GNULIB_PWRITE=0; + GNULIB_READLINK=0; + GNULIB_READLINKAT=0; + GNULIB_RMDIR=0; + GNULIB_SLEEP=0; + GNULIB_SYMLINK=0; + GNULIB_SYMLINKAT=0; + GNULIB_TTYNAME_R=0; + GNULIB_UNISTD_H_GETOPT=0; + GNULIB_UNISTD_H_SIGPIPE=0; + GNULIB_UNLINK=0; + GNULIB_UNLINKAT=0; + GNULIB_USLEEP=0; + GNULIB_WRITE=0; + HAVE_CHOWN=1; + HAVE_DUP2=1; + HAVE_DUP3=1; + HAVE_EUIDACCESS=1; + HAVE_FACCESSAT=1; + HAVE_FCHDIR=1; + HAVE_FCHOWNAT=1; + HAVE_FSYNC=1; + HAVE_FTRUNCATE=1; + HAVE_GETDOMAINNAME=1; + HAVE_GETDTABLESIZE=1; + HAVE_GETGROUPS=1; + HAVE_GETHOSTNAME=1; + HAVE_GETLOGIN=1; + HAVE_GETPAGESIZE=1; + HAVE_LCHOWN=1; + HAVE_LINK=1; + HAVE_LINKAT=1; + HAVE_PIPE2=1; + HAVE_PREAD=1; + HAVE_PWRITE=1; + HAVE_READLINK=1; + HAVE_READLINKAT=1; + HAVE_SLEEP=1; + HAVE_SYMLINK=1; + HAVE_SYMLINKAT=1; + HAVE_TTYNAME_R=1; + HAVE_UNLINKAT=1; + HAVE_USLEEP=1; + HAVE_DECL_ENVIRON=1; + HAVE_DECL_GETLOGIN_R=1; + HAVE_DECL_GETPAGESIZE=1; + HAVE_DECL_GETUSERSHELL=1; + HAVE_OS_H=0; + HAVE_SYS_PARAM_H=0; + REPLACE_CHOWN=0; + REPLACE_CLOSE=0; + REPLACE_DUP=0; + REPLACE_DUP2=0; + REPLACE_FCHOWNAT=0; + REPLACE_GETCWD=0; + REPLACE_GETGROUPS=0; + REPLACE_GETPAGESIZE=0; + REPLACE_LCHOWN=0; + REPLACE_LINK=0; + REPLACE_LINKAT=0; + REPLACE_LSEEK=0; + REPLACE_PREAD=0; + REPLACE_PWRITE=0; + REPLACE_READLINK=0; + REPLACE_RMDIR=0; + REPLACE_SLEEP=0; + REPLACE_SYMLINK=0; + REPLACE_TTYNAME_R=0; + REPLACE_UNLINK=0; + REPLACE_UNLINKAT=0; + REPLACE_USLEEP=0; + REPLACE_WRITE=0; + UNISTD_H_HAVE_WINSOCK2_H=0; + UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 +$as_echo_n "checking if environ is properly declared... " >&6; } + if test "${gt_cv_var_environ_declaration+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -fits_in_uint= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then - if test $fits_in_uint = 1; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - extern size_t foo; - extern unsigned long foo; - +#include + extern struct { int foo; } environ; int main () { - +environ.foo = 1; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - fits_in_uint=0 +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_var_environ_declaration=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gt_cv_var_environ_declaration=yes fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $fits_in_uint = 1; then - gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" - else - gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" - fi - else - gl_cv_size_max='((size_t)~(size_t)0)' - fi - fi - fi - { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 -echo "${ECHO_T}$gl_cv_size_max" >&6; } - if test "$gl_cv_size_max" != yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 +$as_echo "$gt_cv_var_environ_declaration" >&6; } + if test $gt_cv_var_environ_declaration = yes; then -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max -_ACEOF +$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h fi + if test $gt_cv_var_environ_declaration != yes; then + HAVE_DECL_ENVIRON=0 + fi -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 +$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } +if test "${gl_cv_have_include_next+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + cat < conftestd1a/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd2/conftest.h +#ifndef DEFINED_IN_CONFTESTD1 +#error "include_next test doesn't work" +#endif +#define DEFINED_IN_CONFTESTD2 +EOF + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=yes +else + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=buggy else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + gl_cv_have_include_next=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 +$as_echo "$gl_cv_have_include_next" >&6; } + PRAGMA_SYSTEM_HEADER= + if test $gl_cv_have_include_next = yes; then + INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi + else + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi + fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 +$as_echo_n "checking for complete errno.h... " >&6; } +if test "${gl_cv_header_errno_h_complete+set}" = set; then : + $as_echo_n "(cached) " >&6 else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFPreferencesCopyAppValue=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_func_CFPreferencesCopyAppValue=no -fi +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "booboo" >/dev/null 2>&1; then : + gl_cv_header_errno_h_complete=no +else + gl_cv_header_errno_h_complete=yes fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then +rm -f conftest* -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -CFLocaleCopyCurrent(); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFLocaleCopyCurrent=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 +$as_echo "$gl_cv_header_errno_h_complete" >&6; } + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else - gt_cv_func_CFLocaleCopyCurrent=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFLOCALECOPYCURRENT 1 -_ACEOF - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi + : @@ -27732,789 +18872,774 @@ - { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_errno_h='<'errno.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_errno_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_errno_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -typedef ptrdiff_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +#include - ac_cv_type_ptrdiff_t=no -fi +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/errno.h#{ + s#.*"\(.*/errno.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_errno_h='<'errno.h'>' + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then - : -else - -cat >>confdefs.h <<\_ACEOF -#define ptrdiff_t long -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 +$as_echo "$gl_cv_next_errno_h" >&6; } + fi + NEXT_ERRNO_H=$gl_cv_next_errno_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'errno.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_errno_h + fi + NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive -fi + ERRNO_H='errno.h' + fi -for ac_header in stddef.h stdlib.h string.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 +$as_echo_n "checking for EMULTIHOP value... " >&6; } +if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +#include +#ifdef EMULTIHOP +yes +#endif -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + gl_cv_header_errno_h_EMULTIHOP=no fi +rm -f conftest* -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + if test $gl_cv_header_errno_h_EMULTIHOP = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EMULTIHOP +yes +#endif -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=hidden fi +rm -f conftest* -done - + if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then + if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : +fi + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 +$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } + case $gl_cv_header_errno_h_EMULTIHOP in + yes | no) + EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= + ;; + *) + EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" + ;; + esac + fi -for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 +$as_echo_n "checking for ENOLINK value... " >&6; } +if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include +#include +#ifdef ENOLINK +yes #endif -#undef $ac_func +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=yes +else + gl_cv_header_errno_h_ENOLINK=no +fi +rm -f conftest* -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me + if test $gl_cv_header_errno_h_ENOLINK = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ENOLINK +yes #endif -int -main () -{ -return $ac_func (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=hidden fi +rm -f conftest* + + if test $gl_cv_header_errno_h_ENOLINK = hidden; then + if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + + fi + fi fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 +$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } + case $gl_cv_header_errno_h_ENOLINK in + yes | no) + ENOLINK_HIDDEN=0; ENOLINK_VALUE= + ;; + *) + ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" + ;; + esac + fi + - { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 -echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 +$as_echo_n "checking for EOVERFLOW value... " >&6; } +if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -#ifndef _snprintf - char *p = (char *) _snprintf; +#include +#ifdef EOVERFLOW +yes #endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snprintf=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl__snprintf=no + gl_cv_header_errno_h_EOVERFLOW=no fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } - if test $ac_cv_have_decl__snprintf = yes; then - gt_value=1 - else - gt_value=0 - fi + if test $gl_cv_header_errno_h_EOVERFLOW = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EOVERFLOW +yes +#endif -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF $gt_value _ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=hidden +fi +rm -f conftest* + if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then + if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : +fi - { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 -echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snwprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ + fi + fi -#ifndef _snwprintf - char *p = (char *) _snwprintf; -#endif +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 +$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } + case $gl_cv_header_errno_h_EOVERFLOW in + yes | no) + EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= + ;; + *) + EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" + ;; + esac - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snwprintf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl__snwprintf=no -fi + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" +if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } - if test $ac_cv_have_decl__snwprintf = yes; then - gt_value=1 - else - gt_value=0 - fi cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNWPRINTF $gt_value +#define HAVE_DECL_STRERROR_R $ac_have_decl _ACEOF +for ac_func in strerror_r +do : + ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" +if test "x$ac_cv_func_strerror_r" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRERROR_R 1 +_ACEOF +fi +done - - { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 +$as_echo_n "checking whether strerror_r returns char *... " >&6; } +if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + ac_cv_func_strerror_r_char_p=no + if test $ac_cv_have_decl_strerror_r = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +$ac_includes_default int main () { -#ifndef getc_unlocked - char *p = (char *) getc_unlocked; -#endif + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + char *p = strerror_r (0, buf, sizeof buf); + return !p || x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getc_unlocked=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_strerror_r_char_p=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + else + # strerror_r is not declared. Choose between + # systems that have relatively inaccessible declarations for the + # function. BeOS and DEC UNIX 4.0 fall in this category, but the + # former has a strerror_r that returns char*, while the latter + # has a strerror_r that returns `int'. + # This test should segfault on the DEC system. + if test "$cross_compiling" = yes; then : + : else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + extern char *strerror_r (); +int +main () +{ +char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + return ! isalpha (x); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_strerror_r_char_p=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi - ac_cv_have_decl_getc_unlocked=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 +$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } +if test $ac_cv_func_strerror_r_char_p = yes; then + +$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } - if test $ac_cv_have_decl_getc_unlocked = yes; then - gt_value=1 - else - gt_value=0 - fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED $gt_value -_ACEOF + XGETTEXT_EXTRA_OPTIONS= - case $gt_cv_func_printf_posix in - *yes) HAVE_POSIX_PRINTF=1 ;; - *) HAVE_POSIX_PRINTF=0 ;; - esac - if test "$ac_cv_func_asprintf" = yes; then - HAVE_ASPRINTF=1 - else - HAVE_ASPRINTF=0 - fi - if test "$ac_cv_func_snprintf" = yes; then - HAVE_SNPRINTF=1 - else - HAVE_SNPRINTF=0 - fi - if test "$ac_cv_func_wprintf" = yes; then - HAVE_WPRINTF=1 - else - HAVE_WPRINTF=0 - fi - { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 -echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } -if test "${am_cv_langinfo_codeset+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_getopt_h='<'getopt.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_getopt_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_getopt_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -char* cs = nl_langinfo(CODESET); return !cs; - ; - return 0; -} +#include + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_langinfo_codeset=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/getopt.h#{ + s#.*"\(.*/getopt.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_getopt_h='<'getopt.h'>' + fi - am_cv_langinfo_codeset=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 +$as_echo "$gl_cv_next_getopt_h" >&6; } + fi + NEXT_GETOPT_H=$gl_cv_next_getopt_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'getopt.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_getopt_h + fi + NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 -echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } - if test $am_cv_langinfo_codeset = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LANGINFO_CODESET 1 -_ACEOF + : + + + + + + if test $ac_cv_header_getopt_h = yes; then + HAVE_GETOPT_H=1 + else + HAVE_GETOPT_H=0 fi - { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } -if test "${gt_cv_val_LC_MESSAGES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + gl_replace_getopt= + + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + for ac_header in getopt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" +if test "x$ac_cv_header_getopt_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return LC_MESSAGES - ; - return 0; -} + +else + gl_replace_getopt=yes +fi + +done + + fi + + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + for ac_func in getopt_long_only +do : + ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" +if test "x$ac_cv_func_getopt_long_only" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_LONG_ONLY 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_val_LC_MESSAGES=yes + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_replace_getopt=yes +fi +done + + fi - gt_cv_val_LC_MESSAGES=no + if test -z "$gl_replace_getopt"; then + ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include +" +if test "x$ac_cv_have_decl_optreset" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_OPTRESET $ac_have_decl +_ACEOF +if test $ac_have_decl = 1; then : + +else + ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include +" +if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 -echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } - if test $gt_cv_val_LC_MESSAGES = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETOPT_CLIP $ac_have_decl _ACEOF - fi +fi - if test "$enable_shared" = yes; then - case "$host_os" in - mingw* | cygwin*) is_woe32dll=yes ;; - *) is_woe32dll=no ;; - esac - else - is_woe32dll=no fi - WOE32DLL=$is_woe32dll + if test -z "$gl_replace_getopt"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 +$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } +if test "${gl_cv_func_getopt_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - case "$host_os" in - mingw* | cygwin*) is_woe32=yes ;; - *) is_woe32=no ;; - esac - WOE32=$is_woe32 + if test "$cross_compiling" = yes; then : + case "$host_os" in + mingw*) gl_cv_func_getopt_posix="guessing no";; + darwin*) gl_cv_func_getopt_posix="guessing no";; + *) gl_cv_func_getopt_posix="guessing yes";; + esac - if test $WOE32 = yes; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. -set dummy ${ac_tool_prefix}windres; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_WINDRES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$WINDRES"; then - ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_WINDRES="${ac_tool_prefix}windres" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP +# define OPTIND_MIN 0 +#else +# define OPTIND_MIN 1 +#endif + +int +main () +{ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "ab"); + if (!(c == 'a')) + return 1; + c = getopt (argc, argv, "ab"); + if (!(c == -1)) + return 2; + if (!(optind == 2)) + return 3; + } + /* Some internal state exists at this point. */ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "+abp:q:"); + if (!(c == -1)) + return 4; + if (!(strcmp (argv[0], "program") == 0)) + return 5; + if (!(strcmp (argv[1], "donald") == 0)) + return 6; + if (!(strcmp (argv[2], "-p") == 0)) + return 7; + if (!(strcmp (argv[3], "billy") == 0)) + return 8; + if (!(strcmp (argv[4], "duck") == 0)) + return 9; + if (!(strcmp (argv[5], "-a") == 0)) + return 10; + if (!(strcmp (argv[6], "bar") == 0)) + return 11; + if (!(optind == 1)) + return 12; + } + /* Detect MacOS 10.5 bug. */ + { + char *argv[3] = { "program", "-ab", NULL }; + optind = OPTIND_MIN; + opterr = 0; + if (getopt (2, argv, "ab:") != 'a') + return 13; + if (getopt (2, argv, "ab:") != '?') + return 14; + if (optopt != 'b') + return 15; + if (optind != 2) + return 16; + } -fi -fi -WINDRES=$ac_cv_prog_WINDRES -if test -n "$WINDRES"; then - { echo "$as_me:$LINENO: result: $WINDRES" >&5 -echo "${ECHO_T}$WINDRES" >&6; } + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_getopt_posix=yes else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + gl_cv_func_getopt_posix=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -if test -z "$ac_cv_prog_WINDRES"; then - ac_ct_WINDRES=$WINDRES - # Extract the first word of "windres", so it can be a program name with args. -set dummy windres; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 +$as_echo "$gl_cv_func_getopt_posix" >&6; } + case "$gl_cv_func_getopt_posix" in + *no) gl_replace_getopt=yes ;; + esac + fi + + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 +$as_echo_n "checking for working GNU getopt function... " >&6; } +if test "${gl_cv_func_getopt_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_WINDRES"; then - ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. + # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the + # optstring is necessary for programs like m4 that have POSIX-mandated + # semantics for supporting options interspersed with files. + # Also, since getopt_long is a GNU extension, we require optind=0. + gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes} + POSIXLY_CORRECT=1 + export POSIXLY_CORRECT + if test "$cross_compiling" = yes; then : + case $host_os:$ac_cv_have_decl_optreset in + *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; + *:yes) gl_cv_func_getopt_gnu=no;; + *) gl_cv_func_getopt_gnu=yes;; + esac + else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_WINDRES="windres" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include -fi -fi -ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES -if test -n "$ac_ct_WINDRES"; then - { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 -echo "${ECHO_T}$ac_ct_WINDRES" >&6; } +int +main () +{ + + /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, + and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, + OSF/1 5.1, Solaris 10. */ + { + char *myargv[3]; + myargv[0] = "conftest"; + myargv[1] = "-+"; + myargv[2] = 0; + opterr = 0; + if (getopt (2, myargv, "+a") != '?') + return 1; + } + /* This code succeeds on glibc 2.8, mingw, + and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, + IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ + { + char *argv[] = { "program", "-p", "foo", "bar", NULL }; + + optind = 1; + if (getopt (4, argv, "p::") != 'p') + return 2; + if (optarg != NULL) + return 3; + if (getopt (4, argv, "p::") != -1) + return 4; + if (optind != 2) + return 5; + } + /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ + { + char *argv[] = { "program", "foo", "-p", NULL }; + optind = 0; + if (getopt (3, argv, "-p") != 1) + return 6; + if (getopt (3, argv, "-p") != 'p') + return 7; + } + /* This code fails on glibc 2.11. */ + { + char *argv[] = { "program", "-b", "-a", NULL }; + optind = opterr = 0; + if (getopt (3, argv, "+:a:b") != 'b') + return 8; + if (getopt (3, argv, "+:a:b") != ':') + return 9; + } + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_getopt_gnu=yes else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + gl_cv_func_getopt_gnu=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - if test "x$ac_ct_WINDRES" = x; then - WINDRES="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - WINDRES=$ac_ct_WINDRES + if test "$gl_had_POSIXLY_CORRECT" != yes; then + { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 +$as_echo "$gl_cv_func_getopt_gnu" >&6; } + if test "$gl_cv_func_getopt_gnu" = "no"; then + gl_replace_getopt=yes + fi fi + + + ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" +if test "x$ac_cv_have_decl_getenv" = x""yes; then : + ac_have_decl=1 else - WINDRES="$ac_cv_prog_WINDRES" + ac_have_decl=0 fi - fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETENV $ac_have_decl +_ACEOF - case "$host_os" in - hpux*) LTLIBC="" ;; - *) LTLIBC="-lc" ;; - esac + if test -n "$gl_replace_getopt"; then : + GETOPT_H=getopt.h +$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h + GNULIB_UNISTD_H_GETOPT=1 @@ -28523,968 +19648,1528 @@ + gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" + + + + : + - { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFPreferencesCopyAppValue=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_func_CFPreferencesCopyAppValue=no fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" + + + REPLACE_ICONV=0; + REPLACE_ICONV_OPEN=0; + REPLACE_ICONV_UTF=0; + ICONV_H=''; + + + + + + + + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl _ACEOF - fi - { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + GNULIB_FCHMODAT=0; + GNULIB_FSTATAT=0; + GNULIB_FUTIMENS=0; + GNULIB_LCHMOD=0; + GNULIB_LSTAT=0; + GNULIB_MKDIRAT=0; + GNULIB_MKFIFO=0; + GNULIB_MKFIFOAT=0; + GNULIB_MKNOD=0; + GNULIB_MKNODAT=0; + GNULIB_STAT=0; + GNULIB_UTIMENSAT=0; + HAVE_FCHMODAT=1; + HAVE_FSTATAT=1; + HAVE_FUTIMENS=1; + HAVE_LCHMOD=1; + HAVE_LSTAT=1; + HAVE_MKDIRAT=1; + HAVE_MKFIFO=1; + HAVE_MKFIFOAT=1; + HAVE_MKNOD=1; + HAVE_MKNODAT=1; + HAVE_UTIMENSAT=1; + REPLACE_FSTAT=0; + REPLACE_FSTATAT=0; + REPLACE_FUTIMENS=0; + REPLACE_LSTAT=0; + REPLACE_MKDIR=0; + REPLACE_MKFIFO=0; + REPLACE_MKNOD=0; + REPLACE_STAT=0; + REPLACE_UTIMENSAT=0; + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.sym conftest.file +echo >conftest.file +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +$ac_includes_default int main () { -CFLocaleCopyCurrent(); +struct stat sbuf; + /* Linux will dereference the symlink and fail, as required by POSIX. + That is better in the sense that it means we will not + have to compile and use the lstat wrapper. */ + return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFLocaleCopyCurrent=yes +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_lstat_dereferences_slashed_symlink=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - gt_cv_func_CFLocaleCopyCurrent=no +else + # If the `ln -s' command failed, then we probably don't even + # have an lstat function. + ac_cv_func_lstat_dereferences_slashed_symlink=no fi +rm -f conftest.sym conftest.file -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFLOCALECOPYCURRENT 1 +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && + +cat >>confdefs.h <<_ACEOF +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no - LIBINTL= - LTLIBINTL= - POSUB= - case " $gt_needs " in - *" need-formatstring-macros "*) gt_api_version=3 ;; - *" need-ngettext "*) gt_api_version=2 ;; - *) gt_api_version=1 ;; - esac - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no + gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" + +fi - { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } -# Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then - withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 +$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } +if test "${gl_cv_func_malloc_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 else - nls_cv_force_use_gnu_gettext=no + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + choke me + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_malloc_posix=yes +else + gl_cv_func_malloc_posix=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 +$as_echo "$gl_cv_func_malloc_posix" >&6; } - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF - if test $gt_api_version -ge 3; then - gt_revision_test_code=' -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) +fi + +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); #endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -' - else - gt_revision_test_code= - fi - if test $gt_api_version -ge 2; then - gt_expression_test_code=' + * ngettext ("", "", 0)' - else - gt_expression_test_code= - fi - { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 -echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } -if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + gl_cv_func_malloc_0_nonnull=1 +else + gl_cv_func_malloc_0_nonnull=0 +fi + + +cat >>confdefs.h <<_ACEOF +#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if test "${ac_cv_type_mbstate_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings; +$ac_includes_default +# include int main () { -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings +mbstate_t x; return sizeof x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$gt_func_gnugettext_libc=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_mbstate_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$gt_func_gnugettext_libc=no" + ac_cv_type_mbstate_t=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } + if test $ac_cv_type_mbstate_t = yes; then +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + else +$as_echo "#define mbstate_t int" >>confdefs.h + fi - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 +$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } +if test "${ac_cv_func_mbrtowc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +wchar_t wc; + char const s[] = ""; + size_t n = 1; + mbstate_t state; + return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_mbrtowc=yes +else + ac_cv_func_mbrtowc=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: $ac_cv_func_mbrtowc" >&5 +$as_echo "$ac_cv_func_mbrtowc" >&6; } + if test $ac_cv_func_mbrtowc = yes; then - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" +$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + fi -# Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then - withval=$with_libintl_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then + GNULIB_BTOWC=0; + GNULIB_WCTOB=0; + GNULIB_MBSINIT=0; + GNULIB_MBRTOWC=0; + GNULIB_MBRLEN=0; + GNULIB_MBSRTOWCS=0; + GNULIB_MBSNRTOWCS=0; + GNULIB_WCRTOMB=0; + GNULIB_WCSRTOMBS=0; + GNULIB_WCSNRTOMBS=0; + GNULIB_WCWIDTH=0; + HAVE_BTOWC=1; + HAVE_MBSINIT=1; + HAVE_MBRTOWC=1; + HAVE_MBRLEN=1; + HAVE_MBSRTOWCS=1; + HAVE_MBSNRTOWCS=1; + HAVE_WCRTOMB=1; + HAVE_WCSRTOMBS=1; + HAVE_WCSNRTOMBS=1; + HAVE_DECL_WCTOB=1; + HAVE_DECL_WCWIDTH=1; + REPLACE_MBSTATE_T=0; + REPLACE_BTOWC=0; + REPLACE_WCTOB=0; + REPLACE_MBSINIT=0; + REPLACE_MBRTOWC=0; + REPLACE_MBRLEN=0; + REPLACE_MBSRTOWCS=0; + REPLACE_MBSNRTOWCS=0; + REPLACE_WCRTOMB=0; + REPLACE_WCSRTOMBS=0; + REPLACE_WCSNRTOMBS=0; + REPLACE_WCWIDTH=0; - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBINTL= - LTLIBINTL= - INCINTL= - LIBINTL_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='intl ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBINTL; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBINTL; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" - else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - fi - fi - fi - fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +$as_echo_n "checking for a traditional japanese locale... " >&6; } +if test "${gt_cv_locale_ja+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC else - if test "X$found_a" != "X"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja else - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi fi fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBINTL_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCINTL; do + fi + fi + fi + fi + rm -fr conftest* - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +$as_echo "$gt_cv_locale_ja" >&6; } + LOCALE_JA=$gt_cv_locale_ja - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBINTL; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBINTL; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" - ;; - esac - done - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +$as_echo_n "checking for a transitional chinese locale... " >&6; } +if test "${gt_cv_locale_zh_CN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +$as_echo "$gt_cv_locale_zh_CN" >&6; } + LOCALE_ZH_CN=$gt_cv_locale_zh_CN + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + # None found. + gt_cv_locale_fr_utf8=none fi fi fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - done fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" - done - fi + rm -fr conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 + + + + GNULIB_MEMCHR=0; + GNULIB_MEMMEM=0; + GNULIB_MEMPCPY=0; + GNULIB_MEMRCHR=0; + GNULIB_RAWMEMCHR=0; + GNULIB_STPCPY=0; + GNULIB_STPNCPY=0; + GNULIB_STRCHRNUL=0; + GNULIB_STRDUP=0; + GNULIB_STRNCAT=0; + GNULIB_STRNDUP=0; + GNULIB_STRNLEN=0; + GNULIB_STRPBRK=0; + GNULIB_STRSEP=0; + GNULIB_STRSTR=0; + GNULIB_STRCASESTR=0; + GNULIB_STRTOK_R=0; + GNULIB_MBSLEN=0; + GNULIB_MBSNLEN=0; + GNULIB_MBSCHR=0; + GNULIB_MBSRCHR=0; + GNULIB_MBSSTR=0; + GNULIB_MBSCASECMP=0; + GNULIB_MBSNCASECMP=0; + GNULIB_MBSPCASECMP=0; + GNULIB_MBSCASESTR=0; + GNULIB_MBSCSPN=0; + GNULIB_MBSPBRK=0; + GNULIB_MBSSPN=0; + GNULIB_MBSSEP=0; + GNULIB_MBSTOK_R=0; + GNULIB_STRERROR=0; + GNULIB_STRSIGNAL=0; + GNULIB_STRVERSCMP=0; + HAVE_MBSLEN=0; + HAVE_MEMCHR=1; + HAVE_DECL_MEMMEM=1; + HAVE_MEMPCPY=1; + HAVE_DECL_MEMRCHR=1; + HAVE_RAWMEMCHR=1; + HAVE_STPCPY=1; + HAVE_STPNCPY=1; + HAVE_STRCHRNUL=1; + HAVE_DECL_STRDUP=1; + HAVE_DECL_STRNDUP=1; + HAVE_DECL_STRNLEN=1; + HAVE_STRPBRK=1; + HAVE_STRSEP=1; + HAVE_STRCASESTR=1; + HAVE_DECL_STRTOK_R=1; + HAVE_DECL_STRSIGNAL=1; + HAVE_STRVERSCMP=1; + REPLACE_MEMCHR=0; + REPLACE_MEMMEM=0; + REPLACE_STPNCPY=0; + REPLACE_STRDUP=0; + REPLACE_STRSTR=0; + REPLACE_STRCASESTR=0; + REPLACE_STRERROR=0; + REPLACE_STRNCAT=0; + REPLACE_STRNDUP=0; + REPLACE_STRNLEN=0; + REPLACE_STRSIGNAL=0; + REPLACE_STRTOK_R=0; + UNDEFINE_STRTOK_R=0; + + + + + + + + + + + + + + + + + - { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 -echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } -if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + + + + + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" +if test "x$ac_cv_func_mmap" = x""yes; then : + gl_have_mmap=yes else - gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + gl_have_mmap=no +fi + + + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 +$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. +#endif + _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : + gl_have_mmap_anonymous=yes +fi +rm -f conftest* + + if test $gl_have_mmap_anonymous != yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" + +#include +#ifdef MAP_ANON + I cant identify this map. #endif -const char *_nl_expand_alias (const char *); + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : + +$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h + + gl_have_mmap_anonymous=yes +fi +rm -f conftest* + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 +$as_echo "$gl_have_mmap_anonymous" >&6; } + if test $gl_have_mmap_anonymous = yes; then + +$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h + + fi + fi + + + : + + + + + + + : + + + + + + + + + : + + + + + + if test $ac_cv_func_memchr = yes; then + # Detect platform-specific bugs in some versions of glibc: + # memchr should not dereference anything with length 0 + # http://bugzilla.redhat.com/499689 + # memchr should not dereference overestimated length after a match + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 + # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 + # Assume that memchr works on platforms that lack mprotect. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 +$as_echo_n "checking whether memchr works... " >&6; } +if test "${gl_cv_func_memchr_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_memchr_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if HAVE_SYS_MMAN_H +# include +# include +# include +# include +# ifndef MAP_FILE +# define MAP_FILE 0 +# endif +#endif + int main () { -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") + + char *fence = NULL; +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# if HAVE_MAP_ANONYMOUS + const int flags = MAP_ANONYMOUS | MAP_PRIVATE; + const int fd = -1; +# else /* !HAVE_MAP_ANONYMOUS */ + const int flags = MAP_FILE | MAP_PRIVATE; + int fd = open ("/dev/zero", O_RDONLY, 0666); + if (fd >= 0) +# endif + { + int pagesize = getpagesize (); + char *two_pages = + (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, + flags, fd, 0); + if (two_pages != (char *)(-1) + && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) + fence = two_pages + pagesize; + } +#endif + if (fence) + { + if (memchr (fence, 0, 0)) + return 1; + strcpy (fence - 9, "12345678"); + if (memchr (fence - 9, 0, 79) != fence - 1) + return 2; + } + return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$gt_func_gnugettext_libintl=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_memchr_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_memchr_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - eval "$gt_func_gnugettext_libintl=no" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 +$as_echo "$gl_cv_func_memchr_works" >&6; } + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_MEMCHR=1 + fi + else + HAVE_MEMCHR=0 + fi + if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" + + + for ac_header in bp-sym.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" +if test "x$ac_cv_header_bp_sym_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_BP_SYM_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi + +done + + + fi + + + gl_cv_c_multiarch=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ; - return 0; -} +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" +if ac_fn_c_try_compile "$LINENO"; then : + + arch= + prev= + for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do + if test -n "$prev"; then + case $word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$arch" || test "$arch" = "$word"; then + arch="$word" + else + gl_cv_c_multiarch=yes + fi + ;; + esac + prev= + else + if test "x$word" = "x-arch"; then + prev=arch + fi + fi + done + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $gl_cv_c_multiarch = yes; then + +$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + APPLE_UNIVERSAL_BUILD=1 + else + APPLE_UNIVERSAL_BUILD=0 + fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5 +$as_echo_n "checking for shared library path variable... " >&6; } +if test "${acl_cv_libpath+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + LD="$LD" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_libpath=${acl_cv_shlibpath_var:-none} fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5 +$as_echo "$acl_cv_libpath" >&6; } + shlibpath_var="$acl_cv_shlibpath_var" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5 +$as_echo_n "checking whether to activate relocatable installation... " >&6; } + # Check whether --enable-relocatable was given. +if test "${enable_relocatable+set}" = set; then : + enableval=$enable_relocatable; if test "$enableval" != no; then + RELOCATABLE=yes + else + RELOCATABLE=no + fi + +else + RELOCATABLE=no fi -ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - fi - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - LIBINTL= - LTLIBINTL= - INCINTL= - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5 +$as_echo "$RELOCATABLE" >&6; } - if test "$gt_use_preinstalled_gnugettext" != "yes"; then - nls_cv_use_gnu_gettext=yes - fi - fi - if test "$nls_cv_use_gnu_gettext" = "yes"; then - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" - LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi - CATOBJEXT= - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - CATOBJEXT=.gmo - fi + if test "X$prefix" = "XNONE"; then + reloc_final_prefix="$ac_default_prefix" + else + reloc_final_prefix="$prefix" + fi +cat >>confdefs.h <<_ACEOF +#define INSTALLPREFIX "${reloc_final_prefix}" +_ACEOF - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi + if test $RELOCATABLE = yes; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then +$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h + + fi + + + + + + + is_noop=no + use_elf_origin_trick=no + if test $RELOCATABLE = yes; then + # --enable-relocatable implies --disable-rpath + enable_rpath=no + for ac_header in mach-o/dyld.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" +if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MACH_O_DYLD_H 1 +_ACEOF -cat >>confdefs.h <<\_ACEOF -#define ENABLE_NLS 1 +fi + +done + + for ac_func in _NSGetExecutablePath +do : + ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath" +if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE__NSGETEXECUTABLEPATH 1 _ACEOF +fi +done + + case "$host_os" in + mingw*) is_noop=yes ;; + linux*) use_elf_origin_trick=yes ;; + esac + if test $is_noop = yes; then + RELOCATABLE_LDFLAGS=: + else - USE_NLS=no - fi - fi + if test $use_elf_origin_trick = yes; then + case "$ac_aux_dir" in + /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; + *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; + esac + RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" - { echo "$as_me:$LINENO: checking whether to use NLS" >&5 -echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $USE_NLS" >&5 -echo "${ECHO_T}$USE_NLS" >&6; } - if test "$USE_NLS" = "yes"; then - { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 -echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - gt_source="external libintl" else - gt_source="libc" + INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" + + case "$ac_aux_dir" in + /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; + *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; + esac fi - else - gt_source="included intl directory" fi - { echo "$as_me:$LINENO: result: $gt_source" >&5 -echo "${ECHO_T}$gt_source" >&6; } fi + if test $is_noop = yes || test $use_elf_origin_trick = yes; then + RELOCATABLE_VIA_LD_TRUE= + RELOCATABLE_VIA_LD_FALSE='#' +else + RELOCATABLE_VIA_LD_TRUE='#' + RELOCATABLE_VIA_LD_FALSE= +fi - if test "$USE_NLS" = "yes"; then - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { echo "$as_me:$LINENO: checking how to link with libintl" >&5 -echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBINTL" >&5 -echo "${ECHO_T}$LIBINTL" >&6; } - for element in $INCINTL; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETTEXT 1 + RELOCATABLE_STRIP=':' + + + + + + + + + + + + + + GNULIB_SIGNAL_H_SIGPIPE=0; + GNULIB_SIGPROCMASK=0; + GNULIB_SIGACTION=0; + HAVE_POSIX_SIGNALBLOCKING=1; + HAVE_SIGSET_T=1; + HAVE_SIGINFO_T=1; + HAVE_SIGACTION=1; + HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; + + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if test "${ac_cv_type_uid_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then + +$as_echo "#define uid_t int" >>confdefs.h + + +$as_echo "#define gid_t int" >>confdefs.h + +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5 +$as_echo_n "checking for SIGPIPE... " >&6; } +if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if !defined SIGPIPE +booboo +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "booboo" >/dev/null 2>&1; then : + gl_cv_header_signal_h_SIGPIPE=no +else + gl_cv_header_signal_h_SIGPIPE=yes +fi +rm -f conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5 +$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; } + + + GNULIB_DPRINTF=0; + GNULIB_FCLOSE=0; + GNULIB_FFLUSH=0; + GNULIB_FOPEN=0; + GNULIB_FPRINTF=0; + GNULIB_FPRINTF_POSIX=0; + GNULIB_FPURGE=0; + GNULIB_FPUTC=0; + GNULIB_FPUTS=0; + GNULIB_FREOPEN=0; + GNULIB_FSEEK=0; + GNULIB_FSEEKO=0; + GNULIB_FTELL=0; + GNULIB_FTELLO=0; + GNULIB_FWRITE=0; + GNULIB_GETDELIM=0; + GNULIB_GETLINE=0; + GNULIB_OBSTACK_PRINTF=0; + GNULIB_OBSTACK_PRINTF_POSIX=0; + GNULIB_PERROR=0; + GNULIB_POPEN=0; + GNULIB_PRINTF=0; + GNULIB_PRINTF_POSIX=0; + GNULIB_PUTC=0; + GNULIB_PUTCHAR=0; + GNULIB_PUTS=0; + GNULIB_REMOVE=0; + GNULIB_RENAME=0; + GNULIB_RENAMEAT=0; + GNULIB_SNPRINTF=0; + GNULIB_SPRINTF_POSIX=0; + GNULIB_STDIO_H_SIGPIPE=0; + GNULIB_TMPFILE=0; + GNULIB_VASPRINTF=0; + GNULIB_VDPRINTF=0; + GNULIB_VFPRINTF=0; + GNULIB_VFPRINTF_POSIX=0; + GNULIB_VPRINTF=0; + GNULIB_VPRINTF_POSIX=0; + GNULIB_VSNPRINTF=0; + GNULIB_VSPRINTF_POSIX=0; + HAVE_DECL_FPURGE=1; + HAVE_DECL_GETDELIM=1; + HAVE_DECL_GETLINE=1; + HAVE_DECL_OBSTACK_PRINTF=1; + HAVE_DECL_SNPRINTF=1; + HAVE_DECL_VSNPRINTF=1; + HAVE_DPRINTF=1; + HAVE_FSEEKO=1; + HAVE_FTELLO=1; + HAVE_RENAMEAT=1; + HAVE_VASPRINTF=1; + HAVE_VDPRINTF=1; + REPLACE_DPRINTF=0; + REPLACE_FCLOSE=0; + REPLACE_FFLUSH=0; + REPLACE_FOPEN=0; + REPLACE_FPRINTF=0; + REPLACE_FPURGE=0; + REPLACE_FREOPEN=0; + REPLACE_FSEEK=0; + REPLACE_FSEEKO=0; + REPLACE_FTELL=0; + REPLACE_FTELLO=0; + REPLACE_GETDELIM=0; + REPLACE_GETLINE=0; + REPLACE_OBSTACK_PRINTF=0; + REPLACE_PERROR=0; + REPLACE_POPEN=0; + REPLACE_PRINTF=0; + REPLACE_REMOVE=0; + REPLACE_RENAME=0; + REPLACE_RENAMEAT=0; + REPLACE_SNPRINTF=0; + REPLACE_SPRINTF=0; + REPLACE_STDIO_WRITE_FUNCS=0; + REPLACE_TMPFILE=0; + REPLACE_VASPRINTF=0; + REPLACE_VDPRINTF=0; + REPLACE_VFPRINTF=0; + REPLACE_VPRINTF=0; + REPLACE_VSNPRINTF=0; + REPLACE_VSPRINTF=0; + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5 +$as_echo_n "checking whether system is Windows or MSDOS... " >&6; } +if test "${ac_cv_win_or_dos+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + +#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ +neither MSDOS nor Windows +#endif + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_win_or_dos=yes +else + ac_cv_win_or_dos=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5 +$as_echo "$ac_cv_win_or_dos" >&6; } + + if test x"$ac_cv_win_or_dos" = xyes; then + ac_fs_accepts_drive_letter_prefix=1 + ac_fs_backslash_is_file_name_separator=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5 +$as_echo_n "checking whether drive letter can start relative path... " >&6; } +if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ -cat >>confdefs.h <<\_ACEOF -#define HAVE_DCGETTEXT 1 +#if defined __CYGWIN__ +drive letters are always absolute +#endif + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_drive_letter_can_be_relative=yes +else + ac_cv_drive_letter_can_be_relative=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5 +$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; } + if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then + ac_fs_drive_letter_can_be_relative=1 + else + ac_fs_drive_letter_can_be_relative=0 + fi + else + ac_fs_accepts_drive_letter_prefix=0 + ac_fs_backslash_is_file_name_separator=0 + ac_fs_drive_letter_can_be_relative=0 fi - POSUB=po - fi +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix +_ACEOF - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then - BUILD_INCLUDED_LIBINTL=yes - fi +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator +_ACEOF - nls_cv_header_intl= - nls_cv_header_libgt= - DATADIRNAME=share +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative +_ACEOF - INSTOBJEXT=.mo +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if test "${ac_cv_header_stdbool_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + #if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a run-time + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); + #endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; - GENCAT=gencat +int +main () +{ + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); - INTLOBJS= - if test "$USE_INCLUDED_LIBINTL" = yes; then - INTLOBJS="\$(GETTOBJS)" - fi + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF - INTL_LIBTOOL_SUFFIX_PREFIX=l +fi + if test $ac_cv_header_stdbool_h = yes; then - INTLLIBS="$LIBINTL" +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + fi + REPLACE_NULL=0; + HAVE_WCHAR_T=1; + STDDEF_H=''; @@ -29495,150 +21180,52 @@ -for ac_header in $gl_header_list -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5 +$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; } +if test "${gl_cv_prog_as_underscore+set}" = set; then : + $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + cat > conftest.c <&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } >/dev/null 2>&1 + if grep _foo conftest.s >/dev/null ; then + gl_cv_prog_as_underscore=yes + else + gl_cv_prog_as_underscore=no + fi + rm -f conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5 +$as_echo "$gl_cv_prog_as_underscore" >&6; } + if test $gl_cv_prog_as_underscore = yes; then + USER_LABEL_PREFIX=_ + else + USER_LABEL_PREFIX= + fi -done - - - - - +cat >>confdefs.h <<_ACEOF +#define USER_LABEL_PREFIX $USER_LABEL_PREFIX +_ACEOF + ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' @@ -29646,193 +21233,211 @@ - { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5 -echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 +$as_echo_n "checking for C/C++ restrict keyword... " >&6; } +if test "${ac_cv_c_restrict+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +typedef int * int_ptr; + int foo (int_ptr $ac_kw ip) { + return ip[0]; + } int main () { -#ifndef canonicalize_file_name - (void) canonicalize_file_name; -#endif - +int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t) ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_canonicalize_file_name=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_canonicalize_file_name=no +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_restrict=$ac_kw fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_restrict" != no && break + done + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5 -echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; } -if test $ac_cv_have_decl_canonicalize_file_name = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 +$as_echo "$ac_cv_c_restrict" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CANONICALIZE_FILE_NAME 1 + case $ac_cv_c_restrict in + restrict) ;; + no) $as_echo "#define restrict /**/" >>confdefs.h + ;; + *) cat >>confdefs.h <<_ACEOF +#define restrict $ac_cv_c_restrict _ACEOF + ;; + esac + -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CANONICALIZE_FILE_NAME 0 -_ACEOF -fi + : -for ac_func in $gl_func_list -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_string_h='<'string.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_string_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_string_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +#include -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/string.h#{ + s#.*"\(.*/string.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_string_h='<'string.h'>' + fi -#ifdef __STDC__ -# include -#else -# include -#endif +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 +$as_echo "$gl_cv_next_string_h" >&6; } + fi + NEXT_STRING_H=$gl_cv_next_string_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'string.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_string_h + fi + NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + + + + for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done - - - - - - - - + done + ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" +if test "x$ac_cv_have_decl_strnlen" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRNLEN $ac_have_decl +_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 +$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } +if test "${ac_cv_header_stat_broken+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if defined S_ISBLK && defined S_IFDIR +extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; +#endif +#if defined S_ISBLK && defined S_IFCHR +extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; +#endif +#if defined S_ISLNK && defined S_IFREG +extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; +#endif +#if defined S_ISSOCK && defined S_IFREG +extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; +#endif +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stat_broken=no +else + ac_cv_header_stat_broken=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 +$as_echo "$ac_cv_header_stat_broken" >&6; } +if test $ac_cv_header_stat_broken = yes; then +$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h +fi @@ -29840,883 +21445,588 @@ + GNULIB_MKTIME=0; + GNULIB_NANOSLEEP=0; + GNULIB_STRPTIME=0; + GNULIB_TIMEGM=0; + GNULIB_TIME_R=0; + HAVE_LOCALTIME_R=1; + HAVE_NANOSLEEP=1; + HAVE_STRPTIME=1; + HAVE_TIMEGM=1; + REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; + REPLACE_MKTIME=GNULIB_PORTCHECK; + REPLACE_NANOSLEEP=GNULIB_PORTCHECK; + REPLACE_TIMEGM=GNULIB_PORTCHECK; -{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 -echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strerror_r+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strerror_r - (void) strerror_r; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strerror_r=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_strerror_r=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } -if test $ac_cv_have_decl_strerror_r = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R 0 -_ACEOF -fi -for ac_func in strerror_r -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + : -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_time_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gl_cv_sys_struct_timespec_in_time_h=no fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } -{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 -echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } -if test "${ac_cv_func_strerror_r_char_p+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + TIME_H_DEFINES_STRUCT_TIMESPEC=0 + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 + if test $gl_cv_sys_struct_timespec_in_time_h = yes; then + TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - - ac_cv_func_strerror_r_char_p=no - if test $ac_cv_have_decl_strerror_r = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + int main () { - - char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - char *p = strerror_r (0, buf, sizeof buf); - return !p || x; - +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_func_strerror_r_char_p=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_sys_time_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gl_cv_sys_struct_timespec_in_sys_time_h=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } + if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); +#include + int main () { -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_strerror_r_char_p=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_pthread_h=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + gl_cv_sys_struct_timespec_in_pthread_h=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } + if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 + fi + fi + fi - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 -echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } -if test $ac_cv_func_strerror_r_char_p = yes; then -cat >>confdefs.h <<\_ACEOF -#define STRERROR_R_CHAR_P 1 -_ACEOF -fi - XGETTEXT_EXTRA_OPTIONS= - if test -z "$GETOPT_H"; then -for ac_header in getopt.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_time_h='<'time.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_time_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/time.h#{ + s#.*"\(.*/time.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_time_h='<'time.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 +$as_echo "$gl_cv_next_time_h" >&6; } + fi + NEXT_TIME_H=$gl_cv_next_time_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'time.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_time_h + fi + NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + +gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' + + + if test "$HAVE_LIBUNISTRING" = yes; then + LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` + LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` + LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` + fi + + + ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then : + ac_have_decl=1 else - eval "$as_ac_Header=\$ac_header_preproc" + ac_have_decl=0 fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl _ACEOF + + + ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then : + ac_have_decl=1 else - GETOPT_H=getopt.h + ac_have_decl=0 fi -done +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl +_ACEOF - fi - if test -z "$GETOPT_H"; then -for ac_func in getopt_long_only -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then : + ac_have_decl=1 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + ac_have_decl=0 +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl +_ACEOF -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -int -main () -{ -return $ac_func (); - ; - return 0; -} +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" + + + + ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then : + ac_have_decl=1 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl +_ACEOF - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + + ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl _ACEOF + + + ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then : + ac_have_decl=1 else - GETOPT_H=getopt.h + ac_have_decl=0 fi -done - fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl +_ACEOF + + - if test -z "$GETOPT_H"; then - { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 -echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_optreset+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then : + ac_have_decl=1 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef optreset - (void) optreset; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_optreset=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_optreset=no + ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 -echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } -if test $ac_cv_have_decl_optreset = yes; then - GETOPT_H=getopt.h -fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl +_ACEOF - fi - if test -z "$GETOPT_H"; then - { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 -echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } -if test "${gl_cv_func_gnu_getopt+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 -echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getopt_clip+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then : + ac_have_decl=1 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef getopt_clip - (void) getopt_clip; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getopt_clip=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_getopt_clip=no + ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } -if test $ac_cv_have_decl_getopt_clip = yes; then - gl_cv_func_gnu_getopt=no +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl +_ACEOF + + + + ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then : + ac_have_decl=1 else - gl_cv_func_gnu_getopt=yes + ac_have_decl=0 fi -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uses 'inline' correctly" >&5 +$as_echo_n "checking whether uses 'inline' correctly... " >&6; } +if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_header_wchar_h_correct_inline=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ - char *myargv[3]; - myargv[0] = "conftest"; - myargv[1] = "-+"; - myargv[2] = 0; - return getopt (2, myargv, "+a") != '?'; + #define wcstod renamed_wcstod +#include +extern int zero (void); +int main () { return zero(); } - ; - return 0; -} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + mv conftest.$ac_objext conftest1.$ac_objext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define wcstod renamed_wcstod +#include +int zero (void) { return 0; } + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_gnu_getopt=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + mv conftest.$ac_objext conftest2.$ac_objext + if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then + : + else + gl_cv_header_wchar_h_correct_inline=no + fi + fi + fi + rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext -( exit $ac_status ) -gl_cv_func_gnu_getopt=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 +$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } + if test $gl_cv_header_wchar_h_correct_inline = no; then + as_fn_error " cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). +This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in +C99 mode. You have four options: + - Add the flag -fgnu89-inline to CC and reconfigure, or + - Fix your include files, using parts of + , or + - Use a gcc version older than 4.3, or + - Don't use the flags -std=c99 or -std=gnu99. +Configuration aborted." "$LINENO" 5 + fi + + + + + + + + + + + + + + + + + + + + + if false; then + GL_COND_LIBTOOL_TRUE= + GL_COND_LIBTOOL_FALSE='#' +else + GL_COND_LIBTOOL_TRUE='#' + GL_COND_LIBTOOL_FALSE= fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 -echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } - if test "$gl_cv_func_gnu_getopt" = "no"; then - GETOPT_H=getopt.h - fi + + gl_cond_libtool=false + gl_libdeps= + gl_ltlibdeps= + gl_m4_base='gnulib-m4' + + + + + + + + + + gl_source_base='gnulib-lib' + # Code from module alloca-opt: + + + + + + if test $ac_cv_func_alloca_works = no; then + + + : + + + + + + + + + : + fi + # Define an additional variable used in the Makefile substitution. - { echo "$as_me:$LINENO: checking whether getenv is declared" >&5 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getenv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getenv - (void) getenv; + +#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H + Need own alloca #endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getenv=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Need own alloca" >/dev/null 2>&1; then : + ALLOCA_H=alloca.h else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_getenv=no + ALLOCA_H= fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; } -if test $ac_cv_have_decl_getenv = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETENV 1 -_ACEOF + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module atexit: -else + + + + + + + + + for ac_func in atexit +do : + ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" +if test "x$ac_cv_func_atexit" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETENV 0 +#define HAVE_ATEXIT 1 _ACEOF +else + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi +done + if test $ac_cv_func_atexit = no; then + : - REPLACE_ICONV=0; - REPLACE_ICONV_OPEN=0; - REPLACE_ICONV_UTF=0; + fi + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module canonicalize-lgpl: - { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 -echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; } -if test "${gl_cv_have_include_next+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -rf conftestd1 conftestd2 - mkdir conftestd1 conftestd2 - cat < conftestd1/conftest.h -#define DEFINED_IN_CONFTESTD1 -#include_next -#ifdef DEFINED_IN_CONFTESTD2 -int foo; -#else -#error "include_next doesn't work" -#endif -EOF - cat < conftestd2/conftest.h -#ifndef DEFINED_IN_CONFTESTD1 -#error "include_next test doesn't work" -#endif -#define DEFINED_IN_CONFTESTD2 -EOF - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" - cat >conftest.$ac_ext <<_ACEOF -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_have_include_next=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 - gl_cv_have_include_next=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$save_CPPFLAGS" - rm -rf conftestd1 conftestd2 -fi -{ echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 -echo "${ECHO_T}$gl_cv_have_include_next" >&6; } - if test $gl_cv_have_include_next = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_INCLUDE_NEXT 1 -_ACEOF - INCLUDE_NEXT=include_next - else - INCLUDE_NEXT=include - fi + gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" + if test $ac_cv_func_realpath = no; then + HAVE_REALPATH=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_REALPATH=1 + fi + elif test "$gl_cv_func_realpath_works" != yes; then @@ -30724,2411 +22034,1269 @@ - { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getc_unlocked - (void) getc_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getc_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" + + REPLACE_REALPATH=1 + REPLACE_CANONICALIZE_FILE_NAME=1 + fi - ac_cv_have_decl_getc_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } -if test $ac_cv_have_decl_getc_unlocked = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED 1 +#define GNULIB_CANONICALIZE_LGPL 1 _ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED 0 -_ACEOF -fi + GNULIB_CANONICALIZE_FILE_NAME=1 - { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5 -echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; } -if test "${gl_cv_func_malloc_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ -#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - choke me - #endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_malloc_posix=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_func_malloc_posix=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5 -echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; } + GNULIB_REALPATH=1 - GNULIB_MALLOC_POSIX=0; - GNULIB_REALLOC_POSIX=0; - GNULIB_CALLOC_POSIX=0; - GNULIB_GETSUBOPT=0; - GNULIB_MKDTEMP=0; - GNULIB_MKSTEMP=0; - GNULIB_PUTENV=0; - HAVE_CALLOC_POSIX=1; - HAVE_GETSUBOPT=1; - HAVE_MALLOC_POSIX=1; - HAVE_MKDTEMP=1; - HAVE_REALLOC_POSIX=1; - REPLACE_MKSTEMP=0; - REPLACE_PUTENV=0; +$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h -for ac_header in stdlib.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi + # Code from module closeout: + # Code from module configmake: + # Code from module csharpcomp-script: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module double-slash-root: - ac_header_preproc=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 +$as_echo_n "checking whether // is distinct from /... " >&6; } +if test "${gl_cv_double_slash_root+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 +$as_echo "$gl_cv_double_slash_root" >&6; } + if test "$gl_cv_double_slash_root" = yes; then -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + fi - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + # Code from module environ: -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 -echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_malloc_0_nonnull=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif + GNULIB_ENVIRON=1 -int -main () -{ -return ! malloc (0); - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_malloc_0_nonnull=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_func_malloc_0_nonnull=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 -echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then - gl_cv_func_malloc_0_nonnull=1 -else - gl_cv_func_malloc_0_nonnull=0 -fi + + + # Code from module errno: + + # Code from module error: -cat >>confdefs.h <<_ACEOF -#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull -_ACEOF - { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 -echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } -if test "${gl_cv_func_mbrtowc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -wchar_t wc; - char const s[] = ""; - size_t n = 1; - mbstate_t state; - return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_func_mbrtowc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_func_mbrtowc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 -echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } - if test $gl_cv_func_mbrtowc = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBRTOWC 1 -_ACEOF - fi - GNULIB_MEMMEM=0; - GNULIB_MEMPCPY=0; - GNULIB_MEMRCHR=0; - GNULIB_STPCPY=0; - GNULIB_STPNCPY=0; - GNULIB_STRCHRNUL=0; - GNULIB_STRDUP=0; - GNULIB_STRNDUP=0; - GNULIB_STRNLEN=0; - GNULIB_STRPBRK=0; - GNULIB_STRSEP=0; - GNULIB_STRCASESTR=0; - GNULIB_STRTOK_R=0; - GNULIB_MBSLEN=0; - GNULIB_MBSNLEN=0; - GNULIB_MBSCHR=0; - GNULIB_MBSRCHR=0; - GNULIB_MBSSTR=0; - GNULIB_MBSCASECMP=0; - GNULIB_MBSNCASECMP=0; - GNULIB_MBSPCASECMP=0; - GNULIB_MBSCASESTR=0; - GNULIB_MBSCSPN=0; - GNULIB_MBSPBRK=0; - GNULIB_MBSSPN=0; - GNULIB_MBSSEP=0; - GNULIB_MBSTOK_R=0; - GNULIB_STRERROR=0; - HAVE_DECL_MEMMEM=1; - HAVE_MEMPCPY=1; - HAVE_DECL_MEMRCHR=1; - HAVE_STPCPY=1; - HAVE_STPNCPY=1; - HAVE_STRCASECMP=1; - HAVE_DECL_STRNCASECMP=1; - HAVE_STRCHRNUL=1; - HAVE_DECL_STRDUP=1; - HAVE_STRNDUP=1; - HAVE_DECL_STRNDUP=1; - HAVE_DECL_STRNLEN=1; - HAVE_STRPBRK=1; - HAVE_STRSEP=1; - HAVE_STRCASESTR=1; - HAVE_DECL_STRTOK_R=1; - HAVE_DECL_STRERROR=1; - REPLACE_STRERROR=0; -{ echo "$as_me:$LINENO: checking for mbstate_t" >&5 -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if test "${ac_cv_lib_error_at_line+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -# include +#include int main () { -mbstate_t x; return sizeof x; +error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mbstate_t=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_mbstate_t=no + ac_cv_lib_error_at_line=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } - if test $ac_cv_type_mbstate_t = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - else -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF - fi - GNULIB_CHOWN=0; - GNULIB_DUP2=0; - GNULIB_FCHDIR=0; - GNULIB_FTRUNCATE=0; - GNULIB_GETCWD=0; - GNULIB_GETLOGIN_R=0; - GNULIB_LCHOWN=0; - GNULIB_LSEEK=0; - GNULIB_READLINK=0; - GNULIB_SLEEP=0; - HAVE_DUP2=1; - HAVE_FTRUNCATE=1; - HAVE_READLINK=1; - HAVE_SLEEP=1; - HAVE_DECL_GETLOGIN_R=1; - REPLACE_CHOWN=0; - REPLACE_FCHDIR=0; - REPLACE_GETCWD=0; - REPLACE_LCHOWN=0; - REPLACE_LSEEK=0; - { echo "$as_me:$LINENO: checking for shared library path variable" >&5 -echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6; } -if test "${acl_cv_libpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - LD="$LD" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_libpath=${acl_cv_shlibpath_var:-none} + gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" fi -{ echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5 -echo "${ECHO_T}$acl_cv_libpath" >&6; } - shlibpath_var="$acl_cv_shlibpath_var" - { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5 -echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; } - # Check whether --enable-relocatable was given. -if test "${enable_relocatable+set}" = set; then - enableval=$enable_relocatable; if test "$enableval" != no; then - RELOCATABLE=yes - else - RELOCATABLE=no - fi -else - RELOCATABLE=no -fi + : - { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5 -echo "${ECHO_T}$RELOCATABLE" >&6; } - if test "X$prefix" = "XNONE"; then - reloc_final_prefix="$ac_default_prefix" - else - reloc_final_prefix="$prefix" - fi + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" + + # Code from module extensions: + # Code from module fwriteerror: + cat >>confdefs.h <<_ACEOF -#define INSTALLPREFIX "${reloc_final_prefix}" +#define GNULIB_FWRITEERROR 1 _ACEOF - if test $RELOCATABLE = yes; then -cat >>confdefs.h <<\_ACEOF -#define ENABLE_RELOCATABLE 1 -_ACEOF + # Code from module getopt-gnu: - fi - is_noop=no - use_elf_origin_trick=no - if test $RELOCATABLE = yes; then - # --enable-relocatable implies --disable-rpath - enable_rpath=no +$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h + + + # Code from module getopt-posix: + + + + + + if test -n "$gl_replace_getopt"; then : + + + + GETOPT_H=getopt.h + +$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h + + + + GNULIB_UNISTD_H_GETOPT=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" + + + + : + + + -for ac_header in mach-o/dyld.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + # Code from module gettext-h: - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + # Code from module gettext-runtime-misc: + # Code from module gperf: + # Code from module havelib: + # Code from module iconv: + + # Code from module iconv-h: + + + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_iconv_h='<'iconv.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_iconv_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + if test $ac_cv_header_iconv_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/iconv.h#{ + s#.*"\(.*/iconv.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_iconv_h='<'iconv.h'>' + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 +$as_echo "$gl_cv_next_iconv_h" >&6; } + fi + NEXT_ICONV_H=$gl_cv_next_iconv_h -done + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'iconv.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_iconv_h + fi + NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive -for ac_func in _NSGetExecutablePath -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + # Code from module iconv_open: -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} + + if test "$am_cv_func_iconv" = yes; then + + + ICONV_H='iconv.h' + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #if defined _LIBICONV_VERSION || defined __GLIBC__ + gnu_iconv + #endif + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "gnu_iconv" >/dev/null 2>&1; then : + gl_func_iconv_gnu=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_func_iconv_gnu=no fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + if test $gl_func_iconv_gnu = no; then + iconv_flavor= + case "$host_os" in + aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; + irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; + hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; + osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; + esac + if test -n "$iconv_flavor"; then + +cat >>confdefs.h <<_ACEOF +#define ICONV_FLAVOR $iconv_flavor _ACEOF -fi -done - case "$host_os" in - mingw*) is_noop=yes ;; - linux*) use_elf_origin_trick=yes ;; - esac - if test $is_noop = yes; then - RELOCATABLE_LDFLAGS=: - else - if test $use_elf_origin_trick = yes; then - case "$ac_aux_dir" in - /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; - *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; - esac - RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" - else - INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" + ICONV_H='iconv.h' + + REPLACE_ICONV_OPEN=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" + - case "$ac_aux_dir" in - /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; - *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; - esac fi fi fi - if test $is_noop = yes || test $use_elf_origin_trick = yes; then - RELOCATABLE_VIA_LD_TRUE= - RELOCATABLE_VIA_LD_FALSE='#' + + # Code from module include_next: + # Code from module intprops: + # Code from module java: + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 +$as_echo_n "checking whether to use Java... " >&6; } + # Check whether --enable-java was given. +if test "${enable_java+set}" = set; then : + enableval=$enable_java; JAVA_CHOICE="$enableval" else - RELOCATABLE_VIA_LD_TRUE='#' - RELOCATABLE_VIA_LD_FALSE= + JAVA_CHOICE=yes fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 +$as_echo "$JAVA_CHOICE" >&6; } + if test "$JAVA_CHOICE" = yes; then + # Check whether --enable-native-java was given. +if test "${enable_native_java+set}" = set; then : + enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode +fi + fi + # Code from module javacomp-script: + # You need to invoke gt_JAVACOMP yourself, possibly with arguments. + ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" + # Code from module localcharset: + : -{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 -echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } -if test "${ac_cv_header_stdbool_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - #include - #ifndef bool - "error: bool is not defined" - #endif - #ifndef false - "error: false is not defined" - #endif - #if false - "error: false is not 0" - #endif - #ifndef true - "error: true is not defined" - #endif - #if true != 1 - "error: true is not 1" - #endif - #ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" - #endif - - struct s { _Bool s: 1; _Bool t; } s; - - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; - #if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a run-time - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); - #endif - /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html - */ - _Bool q = true; - _Bool *pq = &q; -int -main () -{ - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdbool_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_header_stdbool_h=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 -echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } - { echo "$as_me:$LINENO: checking for _Bool" >&5 -echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } -if test "${ac_cv_type__Bool+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef _Bool ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type__Bool=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" - ac_cv_type__Bool=no -fi + # Code from module lstat: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -echo "${ECHO_T}$ac_cv_type__Bool" >&6; } -if test $ac_cv_type__Bool = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE__BOOL 1 -_ACEOF + : -fi - if test $ac_cv_header_stdbool_h = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_STDBOOL_H 1 -_ACEOF - fi + if test $ac_cv_func_lstat = yes; then + if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then + REPLACE_LSTAT=1 + fi + # Prerequisites of lib/lstat.c. + else + HAVE_LSTAT=0 + fi + GNULIB_LSTAT=1 +$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h - { echo "$as_me:$LINENO: checking whether strdup is declared" >&5 -echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strdup+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strdup - (void) strdup; -#endif + # Code from module malloc-posix: - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strdup=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_strdup=no -fi + if test $gl_cv_func_malloc_posix = yes; then + HAVE_MALLOC_POSIX=1 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; } -if test $ac_cv_have_decl_strdup = yes; then +$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRDUP 1 -_ACEOF + else -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRDUP 0 -_ACEOF -fi -{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 -echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } -if test "${ac_cv_c_restrict+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_restrict=no - # The order here caters to the fact that C++ does not require restrict. - for ac_kw in __restrict __restrict__ _Restrict restrict; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -typedef int * int_ptr; - int foo (int_ptr $ac_kw ip) { - return ip[0]; - } -int -main () -{ -int s[1]; - int * $ac_kw t = s; - t[0] = 0; - return foo(t) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_restrict=$ac_kw -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" -fi + HAVE_MALLOC_POSIX=0 + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_restrict" != no && break - done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 -echo "${ECHO_T}$ac_cv_c_restrict" >&6; } - case $ac_cv_c_restrict in - restrict) ;; - no) cat >>confdefs.h <<\_ACEOF -#define restrict -_ACEOF - ;; - *) cat >>confdefs.h <<_ACEOF -#define restrict $ac_cv_c_restrict -_ACEOF - ;; - esac + GNULIB_MALLOC_POSIX=1 +$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h - : + # Code from module malloca: + # Code from module mbchar: - if test $gl_cv_have_include_next = yes; then - gl_cv_next_string_h='<'string.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_string_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_string_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + # Code from module mbiter: -_ACEOF - gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/string.h#{ - s#.*"\(.*/string.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_string_h='<'string.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 -echo "${ECHO_T}$gl_cv_next_string_h" >&6; } - fi - NEXT_STRING_H=$gl_cv_next_string_h + : + # Code from module mbrtowc: - { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5 -echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strnlen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strnlen - (void) strnlen; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strnlen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_strnlen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; } -if test $ac_cv_have_decl_strnlen = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNLEN 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNLEN 0 -_ACEOF + + : + + + + + + + : + + + -fi + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 -echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef clearerr_unlocked - (void) clearerr_unlocked; -#endif - ; +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_clearerr_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_clearerr_unlocked=no + gl_cv_func_mbrtowc_incomplete_state=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; } -if test $ac_cv_have_decl_clearerr_unlocked = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLEARERR_UNLOCKED 1 -_ACEOF - - -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLEARERR_UNLOCKED 0 -_ACEOF + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 -echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef feof_unlocked - (void) feof_unlocked; -#endif - ; +#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_feof_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_feof_unlocked=no + gl_cv_func_mbrtowc_sanitycheck=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } -if test $ac_cv_have_decl_feof_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED 1 -_ACEOF + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : + + fi + + + + : -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED 0 -_ACEOF -fi + if test $ac_cv_func_mbrtowc = no; then + HAVE_MBRTOWC=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBRTOWC=1 + else - { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 -echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 +$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } +if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on OSF/1. + osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef ferror_unlocked - (void) ferror_unlocked; -#endif - ; +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + mbstate_t state; + wchar_t wc; + int ret; + + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + mbrtowc (&wc, NULL, 5, &state); + /* Check that wc was not modified. */ + if (wc != (wchar_t) 0xBADFACE) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_ferror_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_null_arg=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_ferror_unlocked=no + gl_cv_func_mbrtowc_null_arg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; } -if test $ac_cv_have_decl_ferror_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5 +$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; } + -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FERROR_UNLOCKED 1 -_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 +$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } +if test "${gl_cv_func_mbrtowc_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FERROR_UNLOCKED 0 + + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_retval="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +int main () +{ + /* This fails on Solaris. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 1) + return 1; + } + } + /* This fails on HP-UX 11.11. */ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 2) + return 1; + } + } + return 0; +} _ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_retval=yes +else + gl_cv_func_mbrtowc_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } - { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 -echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 +$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } +if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on Solaris 8 and 9. + solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () + +#include +#include +#include +int main () { -#ifndef fflush_unlocked - (void) fflush_unlocked; -#endif + /* This fails on Solaris 8 and 9. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + mbstate_t state; + wchar_t wc; - ; + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, "", 1, &state) != 0) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fflush_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_nul_retval=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_fflush_unlocked=no + gl_cv_func_mbrtowc_nul_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; } -if test $ac_cv_have_decl_fflush_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FFLUSH_UNLOCKED 1 -_ACEOF + case "$gl_cv_func_mbrtowc_null_arg" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FFLUSH_UNLOCKED 0 -_ACEOF + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_nul_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h + REPLACE_MBRTOWC=1 + ;; + esac + fi + fi + if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then -fi + : - { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 -echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fgets_unlocked - (void) fgets_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fgets_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_fgets_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } -if test $ac_cv_have_decl_fgets_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED 1 -_ACEOF + gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED 0 -_ACEOF + : -fi + fi - { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 -echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fputc_unlocked - (void) fputc_unlocked; -#endif + GNULIB_MBRTOWC=1 + + + +$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h + - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fputc_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_fputc_unlocked=no -fi + # Code from module mbsinit: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; } -if test $ac_cv_have_decl_fputc_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTC_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTC_UNLOCKED 0 -_ACEOF -fi + : - { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 -echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fputs_unlocked - (void) fputs_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fputs_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_fputs_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; } -if test $ac_cv_have_decl_fputs_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTS_UNLOCKED 1 -_ACEOF + : -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTS_UNLOCKED 0 -_ACEOF -fi + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then - { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 -echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fread_unlocked - (void) fread_unlocked; -#endif - ; +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fread_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_fread_unlocked=no + gl_cv_func_mbrtowc_incomplete_state=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; } -if test $ac_cv_have_decl_fread_unlocked = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREAD_UNLOCKED 1 -_ACEOF - - -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREAD_UNLOCKED 0 -_ACEOF + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 -echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fwrite_unlocked - (void) fwrite_unlocked; -#endif - ; +#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fwrite_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_fwrite_unlocked=no + gl_cv_func_mbrtowc_sanitycheck=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; } -if test $ac_cv_have_decl_fwrite_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FWRITE_UNLOCKED 1 -_ACEOF + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FWRITE_UNLOCKED 0 -_ACEOF + fi -fi + : - { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 -echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getchar_unlocked - (void) getchar_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getchar_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_getchar_unlocked=no -fi + if test $ac_cv_func_mbsinit = no; then + HAVE_MBSINIT=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSINIT=1 + fi + fi + if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; } -if test $ac_cv_have_decl_getchar_unlocked = yes; then + : -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETCHAR_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETCHAR_UNLOCKED 0 -_ACEOF -fi - { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 -echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef putc_unlocked - (void) putc_unlocked; -#endif + gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_putc_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_putc_unlocked=no -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; } -if test $ac_cv_have_decl_putc_unlocked = yes; then + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTC_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTC_UNLOCKED 0 -_ACEOF + GNULIB_MBSINIT=1 -fi +$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h - { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 -echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef putchar_unlocked - (void) putchar_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_putchar_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module mbslen: - ac_cv_have_decl_putchar_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; } -if test $ac_cv_have_decl_putchar_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTCHAR_UNLOCKED 1 -_ACEOF + : -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTCHAR_UNLOCKED 0 -_ACEOF -fi + if test $ac_cv_func_mbslen = yes; then + HAVE_MBSLEN=1 + else + HAVE_MBSLEN=0 + fi - GNULIB_WCWIDTH=0; - HAVE_DECL_WCWIDTH=1; - REPLACE_WCWIDTH=0; - WCHAR_H= + GNULIB_MBSLEN=1 + + + +$as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h + + + + # Code from module mbsstr: + GNULIB_MBSSTR=1 +$as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h + # Code from module mbuiter: + : + # Code from module memchr: + GNULIB_MEMCHR=1 +$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h - if false; then - GL_COND_LIBTOOL_TRUE= - GL_COND_LIBTOOL_FALSE='#' -else - GL_COND_LIBTOOL_TRUE='#' - GL_COND_LIBTOOL_FALSE= -fi - gl_cond_libtool=false - gl_libdeps= - gl_ltlibdeps= - gl_source_base='gnulib-lib' + # Code from module memmove: - if test $ac_cv_func_alloca_works = no; then - : + for ac_func in memmove +do : + ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" +if test "x$ac_cv_func_memmove" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MEMMOVE 1 +_ACEOF +else + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" +fi +done + if test $ac_cv_func_memmove = no; then : fi - # Define an additional variable used in the Makefile substitution. + # Code from module multiarch: - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module pathmax: -#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H - Need own alloca -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Need own alloca" >/dev/null 2>&1; then - ALLOCA_H=alloca.h -else - ALLOCA_H= -fi -rm -f conftest* + : + : -for ac_func in atexit -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + # Code from module progname: + ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then : + ac_have_decl=1 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + ac_have_decl=0 +fi -int -main () -{ -return $ac_func (); - ; - return 0; -} +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" + ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl _ACEOF -else + # Code from module propername: - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'" - if test $ac_cv_func_atexit = no; then - : + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'" - fi + # Code from module readlink: @@ -33138,31 +23306,91 @@ - - : - + if test $ac_cv_func_readlink = no; then + HAVE_READLINK=0 - if test $ac_cv_func_canonicalize_file_name = no; then + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" + : - gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 +$as_echo_n "checking whether readlink signature is correct... " >&6; } +if test "${gl_cv_decl_readlink_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Cause compilation failure if original declaration has wrong type. */ + ssize_t readlink (const char *, char *, size_t); +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_readlink_works=yes +else + gl_cv_decl_readlink_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 +$as_echo "$gl_cv_decl_readlink_works" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 +$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } +if test "${gl_cv_func_readlink_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # We have readlink, so assume ln -s works. + ln -s conftest.no-such conftest.link + ln -s conftest.link conftest.lnk2 + if test "$cross_compiling" = yes; then : + gl_cv_func_readlink_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -cat >>confdefs.h <<\_ACEOF -#define realpath rpl_realpath +int +main () +{ +char buf[20]; + return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; + ; + return 0; +} _ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_readlink_works=yes +else + gl_cv_func_readlink_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + rm -f conftest.link conftest.lnk2 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 +$as_echo "$gl_cv_func_readlink_works" >&6; } + if test "$gl_cv_func_readlink_works" != yes; then +$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h - : + REPLACE_READLINK=1 @@ -33171,8 +23399,10 @@ + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" - : + elif test "$gl_cv_decl_readlink_works" != yes; then + REPLACE_READLINK=1 @@ -33181,134 +23411,82 @@ + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" + fi fi - ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" - - - - + GNULIB_READLINK=1 +$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h -{ echo "$as_me:$LINENO: checking for error_at_line" >&5 -echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } -if test "${ac_cv_lib_error_at_line+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -error_at_line (0, 0, "", 0, "an error occurred"); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_error_at_line=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module relocatable-prog: - ac_cv_lib_error_at_line=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 -echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } -if test $ac_cv_lib_error_at_line = no; then + if test $RELOCATABLE = yes; then - gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" -fi + gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" - : + fi + if test $RELOCATABLE = yes; then - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" + gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" -cat >>confdefs.h <<\_ACEOF -#define GNULIB_FWRITEERROR 1 -_ACEOF + fi + : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} + RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" + RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" + # Code from module relocatable-prog-wrapper: + : - if test -n "$GETOPT_H"; then + : - gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + : - gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" - GETOPT_H=getopt.h -cat >>confdefs.h <<\_ACEOF -#define __GETOPT_PREFIX rpl_ -_ACEOF @@ -33322,7 +23500,6 @@ -fi @@ -33332,362 +23509,204 @@ - am_save_CPPFLAGS="$CPPFLAGS" + : - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - { echo "$as_me:$LINENO: checking for iconv" >&5 -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $ac_cv_func_setenv = no; then + HAVE_SETENV=0 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 +$as_echo_n "checking whether setenv validates arguments... " >&6; } +if test "${gl_cv_func_setenv_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + gl_cv_func_setenv_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include + + #include + #include + #include + int main () { -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); + + if (setenv ("", "", 0) != -1) return 1; + if (errno != EINVAL) return 2; + if (setenv ("a", "=", 1) != 0) return 3; + if (strcmp (getenv ("a"), "=") != 0) return 4; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_func_iconv=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_setenv_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_setenv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 +$as_echo "$gl_cv_func_setenv_works" >&6; } + if test "$gl_cv_func_setenv_works" != yes; then + REPLACE_SETENV=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext" + + fi + fi + + + : + + + + + + for ac_header in search.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" +if test "x$ac_cv_header_search_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SEARCH_H 1 +_ACEOF + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +done + + for ac_func in tsearch +do : + ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" +if test "x$ac_cv_func_tsearch" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TSEARCH 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi +done + + + + + + + if test -z "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 +$as_echo_n "checking for working strerror function... " >&6; } +if test "${gl_cv_func_working_strerror+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include + int main () { -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); +return !*strerror (-2); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_working_strerror=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gl_cv_func_working_strerror=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi - -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -echo "${ECHO_T}$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for working iconv" >&5 -echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - if test "$cross_compiling" = yes; then - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include #include -int main () + +int +main () { - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static const char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - return 1; - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - return 1; - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; +return !*strerror (-2); + ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_iconv_works=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_strerror=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -am_cv_func_iconv_works=no + gl_cv_func_working_strerror=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - LIBS="$am_save_LIBS" - fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 -echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 +$as_echo "$gl_cv_func_working_strerror" >&6; } + if test $gl_cv_func_working_strerror = no; then + REPLACE_STRERROR=1 + fi else - am_func_iconv=no am_cv_lib_iconv=no + REPLACE_STRERROR=1 fi - if test "$am_func_iconv" = yes; then + if test $REPLACE_STRERROR = 1; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF + ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" +if test "x$ac_cv_have_decl_strerror" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - fi - if test "$am_cv_lib_iconv" = yes; then - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBICONV" >&5 -echo "${ECHO_T}$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRERROR $ac_have_decl +_ACEOF + : - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for iconv declaration" >&5 -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } - if test "${am_cv_proto_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif -int -main () -{ - ; - return 0; -} + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - am_cv_proto_iconv_arg1="const" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -echo "${ECHO_T}${ac_t:- - }$am_cv_proto_iconv" >&6; } +done -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF + fi fi + # Code from module signal: + @@ -33702,563 +23721,870 @@ if test $gl_cv_have_include_next = yes; then - gl_cv_next_iconv_h='<'iconv.h'>' + gl_cv_next_signal_h='<'signal.h'>' else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_iconv_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_signal_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_iconv_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_signal_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include _ACEOF - gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/iconv.h#{ - s#.*"\(.*/iconv.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_iconv_h='<'iconv.h'>' - fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/signal.h#{ + s#.*"\(.*/signal.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_signal_h='<'signal.h'>' + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5 -echo "${ECHO_T}$gl_cv_next_iconv_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 +$as_echo "$gl_cv_next_signal_h" >&6; } fi - NEXT_ICONV_H=$gl_cv_next_iconv_h + NEXT_SIGNAL_H=$gl_cv_next_signal_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'signal.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_signal_h + fi + NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive - ICONV_H= +# AIX declares sig_atomic_t to already include volatile, and C89 compilers +# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. + ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " +#include +" +if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : +else + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 +fi - if test "$am_cv_func_iconv" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include - #if defined _LIBICONV_VERSION || defined __GLIBC__ - gnu_iconv - #endif + for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "gnu_iconv" >/dev/null 2>&1; then - gl_func_iconv_gnu=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - gl_func_iconv_gnu=no + eval "$as_gl_Symbol=no" fi -rm -f conftest* +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF - if test $gl_func_iconv_gnu = no; then - iconv_flavor= - case "$host_os" in - aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; - irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; - hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; - osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; - esac - if test -n "$iconv_flavor"; then + eval ac_cv_have_decl_$gl_func=yes +fi + done + + + # Code from module sigpipe: -cat >>confdefs.h <<_ACEOF -#define ICONV_FLAVOR $iconv_flavor -_ACEOF - REPLACE_ICONV_OPEN=1 +cat >>confdefs.h <<_ACEOF +#define GNULIB_SIGPIPE 1 +_ACEOF + GNULIB_SIGNAL_H_SIGPIPE=1 + GNULIB_STDIO_H_SIGPIPE=1 - gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: - ICONV_H='iconv.h' - fi - fi - fi + signals_not_posix= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sigset_t" >/dev/null 2>&1; then : - { echo "$as_me:$LINENO: checking whether to use Java" >&5 -echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } - # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then - enableval=$enable_java; JAVA_CHOICE="$enableval" else - JAVA_CHOICE=yes + signals_not_posix=1 fi +rm -f conftest* - { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 -echo "${ECHO_T}$JAVA_CHOICE" >&6; } - if test "$JAVA_CHOICE" = yes; then - # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then - enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode + if test -z "$signals_not_posix"; then + ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = x""yes; then : + gl_cv_func_sigprocmask=1 fi fi + if test -z "$gl_cv_func_sigprocmask"; then + HAVE_POSIX_SIGNALBLOCKING=0 - # You need to invoke gt_JAVACOMP yourself, possibly with arguments. - ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" - : + gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext" + ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include +/* Mingw defines sigset_t not in , but in . */ +#include +" +if test "x$ac_cv_type_sigset_t" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_SIGSET_T 1 +_ACEOF +gl_cv_type_sigset_t=yes +else + gl_cv_type_sigset_t=no +fi + if test $gl_cv_type_sigset_t != yes; then + HAVE_SIGSET_T=0 + fi + fi - if test $gl_cv_func_malloc_posix = yes; then - HAVE_MALLOC_POSIX=1 -cat >>confdefs.h <<\_ACEOF -#define HAVE_MALLOC_POSIX 1 -_ACEOF - else + GNULIB_SIGPROCMASK=1 +$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h - gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" + # Code from module ssize_t: + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +$as_echo_n "checking for ssize_t... " >&6; } +if test "${gt_cv_ssize_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_ssize_t=yes +else + gt_cv_ssize_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +$as_echo "$gt_cv_ssize_t" >&6; } + if test $gt_cv_ssize_t = no; then + +$as_echo "#define ssize_t int" >>confdefs.h - HAVE_MALLOC_POSIX=0 fi + # Code from module stat: - GNULIB_MALLOC_POSIX=1 + : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 +$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } +if test "${gl_cv_func_stat_dir_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + case $host_os in + mingw*) gl_cv_func_stat_dir_slash="guessing no";; + *) gl_cv_func_stat_dir_slash="guessing yes";; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct stat st; return stat (".", &st) != stat ("./", &st); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_dir_slash=yes +else + gl_cv_func_stat_dir_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 +$as_echo "$gl_cv_func_stat_dir_slash" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 +$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } +if test "${gl_cv_func_stat_file_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + touch conftest.tmp + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + ln -s conftest.tmp conftest.lnk + fi + if test "$cross_compiling" = yes; then : + gl_cv_func_stat_file_slash="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +struct stat st; + if (!stat ("conftest.tmp/", &st)) return 1; +#if HAVE_LSTAT + if (!stat ("conftest.lnk/", &st)) return 2; +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_file_slash=yes +else + gl_cv_func_stat_file_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - : + rm -f conftest.tmp conftest.lnk +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 +$as_echo "$gl_cv_func_stat_file_slash" >&6; } + case $gl_cv_func_stat_dir_slash in + *no) REPLACE_STAT=1 +$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h +;; + esac + case $gl_cv_func_stat_file_slash in + *no) REPLACE_STAT=1 +$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h +;; + esac + if test $REPLACE_STAT = 1; then - GNULIB_MBSLEN=1 - : + gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" - GNULIB_MBSSTR=1 + fi - : + GNULIB_STAT=1 +$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h + # Code from module stdbool: + # Define two additional variables used in the Makefile substitution. -for ac_func in memchr -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + if test "$ac_cv_header_stdbool_h" = yes; then + STDBOOL_H='' + else + STDBOOL_H='stdbool.h' + fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + if test "$ac_cv_type__Bool" = yes; then + HAVE__BOOL=1 + else + HAVE__BOOL=0 + fi -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + # Code from module stddef: + + + + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 +$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } +if test "${gl_cv_decl_null_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_null_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_decl_null_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 +$as_echo "$gl_cv_decl_null_works" >&6; } + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + : - if test $ac_cv_func_memchr = no; then -for ac_header in bp-sym.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stddef_h='<'stddef.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stddef_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_stddef_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stddef.h#{ + s#.*"\(.*/stddef.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stddef_h='<'stddef.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 +$as_echo "$gl_cv_next_stddef_h" >&6; } + fi + NEXT_STDDEF_H=$gl_cv_next_stddef_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stddef.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stddef_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive + + + + fi + + # Code from module stdint: + + + + if test $ac_cv_type_long_long_int = yes; then + HAVE_LONG_LONG_INT=1 + else + HAVE_LONG_LONG_INT=0 + fi + + + if test $ac_cv_type_unsigned_long_long_int = yes; then + HAVE_UNSIGNED_LONG_LONG_INT=1 + else + HAVE_UNSIGNED_LONG_LONG_INT=0 + fi + + + if test $ac_cv_header_inttypes_h = yes; then + HAVE_INTTYPES_H=1 + else + HAVE_INTTYPES_H=0 + fi + + + if test $ac_cv_header_sys_types_h = yes; then + HAVE_SYS_TYPES_H=1 + else + HAVE_SYS_TYPES_H=0 + fi + + + + + + + : + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdint_h='<'stdint.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + if test $ac_cv_header_stdint_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdint.h#{ + s#.*"\(.*/stdint.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdint_h='<'stdint.h'>' + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 +$as_echo "$gl_cv_next_stdint_h" >&6; } + fi + NEXT_STDINT_H=$gl_cv_next_stdint_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdint.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdint_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive -done + if test $ac_cv_header_stdint_h = yes; then + HAVE_STDINT_H=1 + else + HAVE_STDINT_H=0 fi + if test $ac_cv_header_stdint_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 +$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } +if test "${gl_cv_header_working_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_header_working_stdint_h=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include +/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ +#if !(defined WCHAR_MIN && defined WCHAR_MAX) +#error "WCHAR_MIN, WCHAR_MAX not defined in " +#endif + + + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#ifdef INT8_MAX +int8_t a1 = INT8_MAX; +int8_t a1min = INT8_MIN; +#endif +#ifdef INT16_MAX +int16_t a2 = INT16_MAX; +int16_t a2min = INT16_MIN; +#endif +#ifdef INT32_MAX +int32_t a3 = INT32_MAX; +int32_t a3min = INT32_MIN; +#endif +#ifdef INT64_MAX +int64_t a4 = INT64_MAX; +int64_t a4min = INT64_MIN; +#endif +#ifdef UINT8_MAX +uint8_t b1 = UINT8_MAX; +#else +typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; +#endif +#ifdef UINT16_MAX +uint16_t b2 = UINT16_MAX; +#endif +#ifdef UINT32_MAX +uint32_t b3 = UINT32_MAX; +#endif +#ifdef UINT64_MAX +uint64_t b4 = UINT64_MAX; +#endif +int_least8_t c1 = INT8_C (0x7f); +int_least8_t c1max = INT_LEAST8_MAX; +int_least8_t c1min = INT_LEAST8_MIN; +int_least16_t c2 = INT16_C (0x7fff); +int_least16_t c2max = INT_LEAST16_MAX; +int_least16_t c2min = INT_LEAST16_MIN; +int_least32_t c3 = INT32_C (0x7fffffff); +int_least32_t c3max = INT_LEAST32_MAX; +int_least32_t c3min = INT_LEAST32_MIN; +int_least64_t c4 = INT64_C (0x7fffffffffffffff); +int_least64_t c4max = INT_LEAST64_MAX; +int_least64_t c4min = INT_LEAST64_MIN; +uint_least8_t d1 = UINT8_C (0xff); +uint_least8_t d1max = UINT_LEAST8_MAX; +uint_least16_t d2 = UINT16_C (0xffff); +uint_least16_t d2max = UINT_LEAST16_MAX; +uint_least32_t d3 = UINT32_C (0xffffffff); +uint_least32_t d3max = UINT_LEAST32_MAX; +uint_least64_t d4 = UINT64_C (0xffffffffffffffff); +uint_least64_t d4max = UINT_LEAST64_MAX; +int_fast8_t e1 = INT_FAST8_MAX; +int_fast8_t e1min = INT_FAST8_MIN; +int_fast16_t e2 = INT_FAST16_MAX; +int_fast16_t e2min = INT_FAST16_MIN; +int_fast32_t e3 = INT_FAST32_MAX; +int_fast32_t e3min = INT_FAST32_MIN; +int_fast64_t e4 = INT_FAST64_MAX; +int_fast64_t e4min = INT_FAST64_MIN; +uint_fast8_t f1 = UINT_FAST8_MAX; +uint_fast16_t f2 = UINT_FAST16_MAX; +uint_fast32_t f3 = UINT_FAST32_MAX; +uint_fast64_t f4 = UINT_FAST64_MAX; +#ifdef INTPTR_MAX +intptr_t g = INTPTR_MAX; +intptr_t gmin = INTPTR_MIN; +#endif +#ifdef UINTPTR_MAX +uintptr_t h = UINTPTR_MAX; +#endif +intmax_t i = INTMAX_MAX; +uintmax_t j = UINTMAX_MAX; +#include /* for CHAR_BIT */ +#define TYPE_MINIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +#define TYPE_MAXIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) +struct s { + int check_PTRDIFF: + PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) + && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) + ? 1 : -1; + /* Detect bug in FreeBSD 6.0 / ia64. */ + int check_SIG_ATOMIC: + SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) + && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) + ? 1 : -1; + int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; + int check_WCHAR: + WCHAR_MIN == TYPE_MINIMUM (wchar_t) + && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) + ? 1 : -1; + /* Detect bug in mingw. */ + int check_WINT: + WINT_MIN == TYPE_MINIMUM (wint_t) + && WINT_MAX == TYPE_MAXIMUM (wint_t) + ? 1 : -1; + /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ + int check_UINT8_C: + (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; + int check_UINT16_C: + (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; + /* Detect bugs in OpenBSD 3.9 stdint.h. */ +#ifdef UINT8_MAX + int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; +#endif +#ifdef UINT16_MAX + int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; +#endif +#ifdef UINT32_MAX + int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; +#endif +#ifdef UINT64_MAX + int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; +#endif + int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; + int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; + int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; + int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; + int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; + int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; + int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; + int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; + int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; + int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; + int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; +}; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if test "$cross_compiling" = yes; then : + gl_cv_header_working_stdint_h=yes -for ac_func in memmove -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + + +#include +#include +#define MVAL(macro) MVAL1(macro) +#define MVAL1(expression) #expression +static const char *macro_values[] = + { +#ifdef INT8_MAX + MVAL (INT8_MAX), #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#ifdef INT16_MAX + MVAL (INT16_MAX), +#endif +#ifdef INT32_MAX + MVAL (INT32_MAX), +#endif +#ifdef INT64_MAX + MVAL (INT64_MAX), +#endif +#ifdef UINT8_MAX + MVAL (UINT8_MAX), #endif +#ifdef UINT16_MAX + MVAL (UINT16_MAX), +#endif +#ifdef UINT32_MAX + MVAL (UINT32_MAX), +#endif +#ifdef UINT64_MAX + MVAL (UINT64_MAX), +#endif + NULL + }; int main () { -return $ac_func (); + + const char **mv; + for (mv = macro_values; *mv != NULL; mv++) + { + const char *value = *mv; + /* Test whether it looks like a cast expression. */ + if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 + || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 + || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 + || strncmp (value, "((int)"/*)*/, 6) == 0 + || strncmp (value, "((signed short)"/*)*/, 15) == 0 + || strncmp (value, "((signed char)"/*)*/, 14) == 0) + return 1; + } + return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_header_working_stdint_h=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + - eval "$as_ac_var=no" fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 +$as_echo "$gl_cv_header_working_stdint_h" >&6; } + fi + if test "$gl_cv_header_working_stdint_h" = yes; then + STDINT_H= + else + for ac_header in sys/inttypes.h sys/bitypes.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" - fi -done - - if test $ac_cv_func_memmove = no; then +done - : + if test $ac_cv_header_sys_inttypes_h = yes; then + HAVE_SYS_INTTYPES_H=1 + else + HAVE_SYS_INTTYPES_H=0 + fi - fi + if test $ac_cv_header_sys_bitypes_h = yes; then + HAVE_SYS_BITYPES_H=1 + else + HAVE_SYS_BITYPES_H=0 + fi @@ -34271,79 +24597,306 @@ - - : - - - - - - if test $ac_cv_func_readlink = no; then - HAVE_READLINK=0 - + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#include "; then : +else + result=unknown +fi + eval gl_cv_bitsizeof_${gltype}=\$result - gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF + eval BITSIZEOF_${GLTYPE}=\$result + done - : fi + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif - GNULIB_READLINK=1 +#include "; then : +else + result=unknown +fi + eval gl_cv_bitsizeof_${gltype}=\$result +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF + eval BITSIZEOF_${GLTYPE}=\$result + done - if test $RELOCATABLE = yes; then + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 +$as_echo_n "checking whether $gltype is signed... " >&6; } +if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + result=yes +else + result=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval gl_cv_type_${gltype}_signed=\$result - gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" +fi +eval ac_res=\$gl_cv_type_${gltype}_signed + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_type_${gltype}_signed + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + if test "$result" = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGNED_${GLTYPE} 1 +_ACEOF - fi + eval HAVE_SIGNED_${GLTYPE}=1 + else + eval HAVE_SIGNED_${GLTYPE}=0 + fi + done - if test $RELOCATABLE = yes; then + + gl_cv_type_ptrdiff_t_signed=yes + gl_cv_type_size_t_signed=no + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + extern $gltype foo; + extern $gltype1 foo; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done +fi +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result +_ACEOF + done - gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" fi - : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} - RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" - RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - : + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + extern $gltype foo; + extern $gltype1 foo; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done +fi +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result +_ACEOF + done - : + STDINT_H=stdint.h + fi + # Code from module stdio: - : @@ -34358,22 +24911,69 @@ - : - - - + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdio_h='<'stdio.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdio_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stdio_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdio.h#{ + s#.*"\(.*/stdio.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdio_h='<'stdio.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 +$as_echo "$gl_cv_next_stdio_h" >&6; } + fi + NEXT_STDIO_H=$gl_cv_next_stdio_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdio.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdio_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive - : + GNULIB_FPRINTF=1 + GNULIB_PRINTF=1 + GNULIB_VFPRINTF=1 + GNULIB_VPRINTF=1 + GNULIB_FPUTC=1 + GNULIB_PUTC=1 + GNULIB_PUTCHAR=1 + GNULIB_FPUTS=1 + GNULIB_PUTS=1 + GNULIB_FWRITE=1 + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_STDIO_WRITE_FUNCS=1 @@ -34382,15 +24982,54 @@ + gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext" + fi + for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" +else + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF - : + eval ac_cv_have_decl_$gl_func=yes +fi + done + # Code from module stdlib: @@ -34404,1007 +25043,468 @@ -for ac_header in search.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdlib_h='<'stdlib.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdlib_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_stdlib_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> +#include + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdlib.h#{ + s#.*"\(.*/stdlib.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdlib_h='<'stdlib.h'>' + fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 +$as_echo "$gl_cv_next_stdlib_h" >&6; } + fi + NEXT_STDLIB_H=$gl_cv_next_stdlib_h -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdlib.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdlib_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then + for ac_header in random.h +do : + ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default +" +if test "x$ac_cv_header_random_h" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_RANDOM_H 1 _ACEOF fi done + if test $ac_cv_header_random_h = yes; then + HAVE_RANDOM_H=1 + else + HAVE_RANDOM_H=0 + fi -for ac_func in tsearch -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include + #if HAVE_RANDOM_H + # include + #endif + +" +if test "x$ac_cv_type_struct_random_data" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_RANDOM_DATA 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif +else + HAVE_STRUCT_RANDOM_DATA=0 +fi -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + + for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if HAVE_SYS_LOADAVG_H +# include #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#if HAVE_RANDOM_H +# include #endif int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done + done + # Code from module streq: + # Code from module strerror: - { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 -echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } - if test "${gt_cv_var_environ_declaration+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - extern struct { int foo; } environ; -int -main () -{ -environ.foo = 1; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_var_environ_declaration=no -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $REPLACE_STRERROR = 1; then - gt_cv_var_environ_declaration=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 -echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } - if test $gt_cv_var_environ_declaration = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ENVIRON_DECL 1 -_ACEOF - fi + gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" - { echo "$as_me:$LINENO: checking for working strerror function" >&5 -echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; } -if test "${gl_cv_func_working_strerror+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return !*strerror (-2); - ; - return 0; -} +cat >>confdefs.h <<_ACEOF +#define REPLACE_STRERROR $REPLACE_STRERROR _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_working_strerror=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_func_working_strerror=no -fi + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return !*strerror (-2); - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_working_strerror=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gl_cv_func_working_strerror=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + GNULIB_STRERROR=1 -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5 -echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; } - if test $gl_cv_func_working_strerror = no ; then - REPLACE_STRERROR=1 - { echo "$as_me:$LINENO: checking whether strerror is declared" >&5 -echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strerror+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strerror - (void) strerror; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strerror=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h - ac_cv_have_decl_strerror=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; } -if test $ac_cv_have_decl_strerror = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR 1 -_ACEOF + # Code from module striconv: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module string: -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR 0 -_ACEOF + # Code from module strnlen: -fi - fi - { echo "$as_me:$LINENO: checking for ssize_t" >&5 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } -if test "${gt_cv_ssize_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + : + + + + + + if test $ac_cv_have_decl_strnlen = no; then + HAVE_DECL_STRNLEN=0 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 +$as_echo_n "checking for working strnlen... " >&6; } +if test "${ac_cv_func_strnlen_working+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + ac_cv_func_strnlen_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +$ac_includes_default int main () { -int x = sizeof (ssize_t *) + sizeof (ssize_t); - return !x; + +#define S "foobar" +#define S_LEN (sizeof S - 1) + + /* At least one implementation is buggy: that of AIX 4.3 would + give strnlen (S, 1) == 3. */ + + int i; + for (i = 0; i < S_LEN + 1; ++i) + { + int expected = i <= S_LEN ? i : S_LEN; + if (strnlen (S, i) != expected) + return 1; + } + return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_ssize_t=yes +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_strnlen_working=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_ssize_t=no + ac_cv_func_strnlen_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 -echo "${ECHO_T}$gt_cv_ssize_t" >&6; } - if test $gt_cv_ssize_t = no; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 +$as_echo "$ac_cv_func_strnlen_working" >&6; } +test $ac_cv_func_strnlen_working = no && -cat >>confdefs.h <<\_ACEOF -#define ssize_t int -_ACEOF - fi - # Define two additional variables used in the Makefile substitution. - if test "$ac_cv_header_stdbool_h" = yes; then - STDBOOL_H='' - else - STDBOOL_H='stdbool.h' - fi + gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" - if test "$ac_cv_type__Bool" = yes; then - HAVE__BOOL=1 - else - HAVE__BOOL=0 + if test $ac_cv_func_strnlen_working = no; then + REPLACE_STRNLEN=1 + fi fi + if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then - if test $ac_cv_type_long_long_int = yes; then - HAVE_LONG_LONG_INT=1 - else - HAVE_LONG_LONG_INT=0 - fi - - - if test $ac_cv_type_unsigned_long_long_int = yes; then - HAVE_UNSIGNED_LONG_LONG_INT=1 - else - HAVE_UNSIGNED_LONG_LONG_INT=0 - fi - if test $ac_cv_header_inttypes_h = yes; then - HAVE_INTTYPES_H=1 - else - HAVE_INTTYPES_H=0 - fi + gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" - if test $ac_cv_header_sys_types_h = yes; then - HAVE_SYS_TYPES_H=1 - else - HAVE_SYS_TYPES_H=0 + : fi + GNULIB_STRNLEN=1 - : +$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h + # Code from module strnlen1: + # Code from module strtol: - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdint_h='<'stdint.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_stdint_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdint.h#{ - s#.*"\(.*/stdint.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdint_h='<'stdint.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; } - fi - NEXT_STDINT_H=$gl_cv_next_stdint_h - if test $ac_cv_header_stdint_h = yes; then - HAVE_STDINT_H=1 - else - HAVE_STDINT_H=0 - fi + for ac_func in strtol +do : + ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" +if test "x$ac_cv_func_strtol" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRTOL 1 +_ACEOF - if test $ac_cv_header_stdint_h = yes; then - { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 -echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; } -if test "${gl_cv_header_working_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - gl_cv_header_working_stdint_h=no - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ -#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ -#include -/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ -#if !(defined WCHAR_MIN && defined WCHAR_MAX) -#error "WCHAR_MIN, WCHAR_MAX not defined in " -#endif +fi +done - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + + # Code from module strtoul: -#ifdef INT8_MAX -int8_t a1 = INT8_MAX; -int8_t a1min = INT8_MIN; -#endif -#ifdef INT16_MAX -int16_t a2 = INT16_MAX; -int16_t a2min = INT16_MIN; -#endif -#ifdef INT32_MAX -int32_t a3 = INT32_MAX; -int32_t a3min = INT32_MIN; -#endif -#ifdef INT64_MAX -int64_t a4 = INT64_MAX; -int64_t a4min = INT64_MIN; -#endif -#ifdef UINT8_MAX -uint8_t b1 = UINT8_MAX; -#else -typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; -#endif -#ifdef UINT16_MAX -uint16_t b2 = UINT16_MAX; -#endif -#ifdef UINT32_MAX -uint32_t b3 = UINT32_MAX; -#endif -#ifdef UINT64_MAX -uint64_t b4 = UINT64_MAX; -#endif -int_least8_t c1 = INT8_C (0x7f); -int_least8_t c1max = INT_LEAST8_MAX; -int_least8_t c1min = INT_LEAST8_MIN; -int_least16_t c2 = INT16_C (0x7fff); -int_least16_t c2max = INT_LEAST16_MAX; -int_least16_t c2min = INT_LEAST16_MIN; -int_least32_t c3 = INT32_C (0x7fffffff); -int_least32_t c3max = INT_LEAST32_MAX; -int_least32_t c3min = INT_LEAST32_MIN; -int_least64_t c4 = INT64_C (0x7fffffffffffffff); -int_least64_t c4max = INT_LEAST64_MAX; -int_least64_t c4min = INT_LEAST64_MIN; -uint_least8_t d1 = UINT8_C (0xff); -uint_least8_t d1max = UINT_LEAST8_MAX; -uint_least16_t d2 = UINT16_C (0xffff); -uint_least16_t d2max = UINT_LEAST16_MAX; -uint_least32_t d3 = UINT32_C (0xffffffff); -uint_least32_t d3max = UINT_LEAST32_MAX; -uint_least64_t d4 = UINT64_C (0xffffffffffffffff); -uint_least64_t d4max = UINT_LEAST64_MAX; -int_fast8_t e1 = INT_FAST8_MAX; -int_fast8_t e1min = INT_FAST8_MIN; -int_fast16_t e2 = INT_FAST16_MAX; -int_fast16_t e2min = INT_FAST16_MIN; -int_fast32_t e3 = INT_FAST32_MAX; -int_fast32_t e3min = INT_FAST32_MIN; -int_fast64_t e4 = INT_FAST64_MAX; -int_fast64_t e4min = INT_FAST64_MIN; -uint_fast8_t f1 = UINT_FAST8_MAX; -uint_fast16_t f2 = UINT_FAST16_MAX; -uint_fast32_t f3 = UINT_FAST32_MAX; -uint_fast64_t f4 = UINT_FAST64_MAX; -#ifdef INTPTR_MAX -intptr_t g = INTPTR_MAX; -intptr_t gmin = INTPTR_MIN; -#endif -#ifdef UINTPTR_MAX -uintptr_t h = UINTPTR_MAX; -#endif -intmax_t i = INTMAX_MAX; -uintmax_t j = UINTMAX_MAX; -#include /* for CHAR_BIT */ -#define TYPE_MINIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -struct s { - int check_PTRDIFF: - PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) - && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) - ? 1 : -1; - /* Detect bug in FreeBSD 6.0 / ia64. */ - int check_SIG_ATOMIC: - SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) - && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) - ? 1 : -1; - int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; - int check_WCHAR: - WCHAR_MIN == TYPE_MINIMUM (wchar_t) - && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) - ? 1 : -1; - /* Detect bug in mingw. */ - int check_WINT: - WINT_MIN == TYPE_MINIMUM (wint_t) - && WINT_MAX == TYPE_MAXIMUM (wint_t) - ? 1 : -1; - /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ - int check_UINT8_C: - (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; - int check_UINT16_C: - (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; - /* Detect bugs in OpenBSD 3.9 stdint.h. */ -#ifdef UINT8_MAX - int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; -#endif -#ifdef UINT16_MAX - int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; -#endif -#ifdef UINT32_MAX - int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; -#endif -#ifdef UINT64_MAX - int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; -#endif - int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; - int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; - int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; - int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; - int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; - int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; - int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; - int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; - int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; - int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; - int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; -}; -int -main () -{ - ; - return 0; -} + + + for ac_func in strtoul +do : + ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" +if test "x$ac_cv_func_strtoul" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRTOUL 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_working_stdint_h=yes + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; } - fi - if test "$gl_cv_header_working_stdint_h" = yes; then - STDINT_H= - else -for ac_header in sys/inttypes.h sys/bitypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + # Code from module sys_stat: + + + + + + + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_stat_h='<'sys/stat.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_stat_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_sys_stat_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/stat.h#{ + s#.*"\(.*/sys/stat.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_stat_h='<'sys/stat.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 +$as_echo "$gl_cv_next_sys_stat_h" >&6; } + fi + NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/stat.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_stat_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive + + + + + ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include + #include +" +if test "x$ac_cv_type_nlink_t" = x""yes; then : -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no +$as_echo "#define nlink_t int" >>confdefs.h + fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" +else + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi + done -done - if test $ac_cv_header_sys_inttypes_h = yes; then - HAVE_SYS_INTTYPES_H=1 - else - HAVE_SYS_INTTYPES_H=0 - fi - if test $ac_cv_header_sys_bitypes_h = yes; then - HAVE_SYS_BITYPES_H=1 - else - HAVE_SYS_BITYPES_H=0 - fi + # Code from module time: - : + # Code from module trim: + # Code from module unistd: + @@ -35412,6 +25512,7 @@ + : @@ -35419,596 +25520,315 @@ - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 -echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; } -if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_unistd_h='<'unistd.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_unistd_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_unistd_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/unistd.h#{ + s#.*"\(.*/unistd.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_unistd_h='<'unistd.h'>' + fi -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; -test_array [0] = 0 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 +$as_echo "$gl_cv_next_unistd_h" >&6; } + fi + NEXT_UNISTD_H=$gl_cv_next_unistd_h - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'unistd.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_unistd_h + fi + NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + if test $ac_cv_header_unistd_h = yes; then + HAVE_UNISTD_H=1 + else + HAVE_UNISTD_H=0 + fi + + + + for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +/* Some systems declare various items in the wrong headers. */ +#ifndef __GLIBC__ +# include +# include +# include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif +#endif -#include int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; -test_array [0] = 0 - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval ac_cv_have_decl_$gl_func=yes fi + done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + # Code from module unitypes: -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) result=$ac_lo;; -'') result=unknown ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -#include -static long int longval () { return sizeof ($gltype) * CHAR_BIT; } -static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof ($gltype) * CHAR_BIT) < 0) - { - long int i = longval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%ld\n", i); - } + + + } + }; then + LIBUNISTRING_UNITYPES_H='unitypes.h' else - { - unsigned long int i = ulongval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; + LIBUNISTRING_UNITYPES_H= + fi - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - result=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -result=unknown -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - eval gl_cv_bitsizeof_${gltype}=\$result + # Code from module uniwidth/base: -fi -ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_bitsizeof_${gltype} - if test $result = unknown; then - result=0 - fi - GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - cat >>confdefs.h <<_ACEOF -#define BITSIZEOF_${GLTYPE} $result -_ACEOF - eval BITSIZEOF_${GLTYPE}=\$result - done + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - for gltype in sig_atomic_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 -echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + } + }; then + LIBUNISTRING_UNIWIDTH_H='uniwidth.h' + else + LIBUNISTRING_UNIWIDTH_H= + fi - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; -int -main () -{ + # Code from module uniwidth/width: - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - result=yes + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= +fi + + + # Code from module unlocked-io: + + +$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + - result=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval gl_cv_type_${gltype}_signed=\$result + : -fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_type_${gltype}_signed - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - if test "$result" = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGNED_${GLTYPE} 1 -_ACEOF - eval HAVE_SIGNED_${GLTYPE}=1 - else - eval HAVE_SIGNED_${GLTYPE}=0 - fi - done - gl_cv_type_ptrdiff_t_signed=yes - gl_cv_type_size_t_signed=no + : - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 -echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval gl_cv_type_${gltype}_suffix=no - eval result=\$gl_cv_type_${gltype}_signed - if test "$result" = yes; then - glsufu= - else - glsufu=u - fi - for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do - case $glsuf in - '') gltype1='int';; - l) gltype1='long int';; - ll) gltype1='long long int';; - i64) gltype1='__int64';; - u) gltype1='unsigned int';; - ul) gltype1='unsigned long int';; - ull) gltype1='unsigned long long int';; - ui64)gltype1='unsigned __int64';; - esac - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + : - extern $gltype foo; - extern $gltype1 foo; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval gl_cv_type_${gltype}_suffix=\$glsuf -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" != no && break - done -fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" = no && result= - eval ${GLTYPE}_SUFFIX=\$result - cat >>confdefs.h <<_ACEOF -#define ${GLTYPE}_SUFFIX $result -_ACEOF - done + : - STDINT_H=stdint.h - fi + + + + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: + + + + + : + + @@ -36025,527 +25845,405 @@ if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdlib_h='<'stdlib.h'>' + gl_cv_next_wchar_h='<'wchar.h'>' else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wchar_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_stdlib_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_wchar_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include _ACEOF - gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdlib.h#{ - s#.*"\(.*/stdlib.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdlib_h='<'stdlib.h'>' - fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wchar.h#{ + s#.*"\(.*/wchar.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wchar_h='<'wchar.h'>' + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 +$as_echo "$gl_cv_next_wchar_h" >&6; } fi - NEXT_STDLIB_H=$gl_cv_next_stdlib_h - - - - + NEXT_WCHAR_H=$gl_cv_next_wchar_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wchar.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wchar_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive + if test $ac_cv_header_wchar_h = yes; then + HAVE_WCHAR_H=1 + else + HAVE_WCHAR_H=0 + fi + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi -for ac_func in strdup -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +/* Some systems require additional headers. */ +#ifndef __GLIBC__ +# include +# include +# include #endif +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" - + eval ac_cv_have_decl_$gl_func=yes fi -done - - + done - : + # Code from module wctype: - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 - fi : - GNULIB_STRDUP=1 - - - - if test $gl_cv_func_working_strerror = no; then - - - - - - - gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" - - -cat >>confdefs.h <<_ACEOF -#define REPLACE_STRERROR $REPLACE_STRERROR -_ACEOF + if test $ac_cv_func_iswcntrl = yes; then + HAVE_ISWCNTRL=1 + else + HAVE_ISWCNTRL=0 fi + : - GNULIB_STRERROR=1 - if test $gl_cond_libtool = false; then - gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" - gl_libdeps="$gl_libdeps $LIBICONV" - fi + if test $ac_cv_func_iswblank = yes; then + HAVE_ISWBLANK=1 + else + HAVE_ISWBLANK=0 + fi + : - : - if test $ac_cv_have_decl_strnlen = no; then - HAVE_DECL_STRNLEN=0 + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 fi - { echo "$as_me:$LINENO: checking for working strnlen" >&5 -echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; } -if test "${ac_cv_func_strnlen_working+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strnlen_working=no + + if test $ac_cv_header_wctype_h = yes; then + if test $ac_cv_func_iswcntrl = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 +$as_echo_n "checking whether iswcntrl works... " >&6; } +if test "${gl_cv_func_iswcntrl_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. + #endif int main () { -#define S "foobar" -#define S_LEN (sizeof S - 1) - - /* At least one implementation is buggy: that of AIX 4.3 would - give strnlen (S, 1) == 3. */ - - int i; - for (i = 0; i < S_LEN + 1; ++i) - { - int expected = i <= S_LEN ? i : S_LEN; - if (strnlen (S, i) != expected) - return 1; - } - return 0; - ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_strnlen_working=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_iswcntrl_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -( exit $ac_status ) -ac_cv_func_strnlen_working=no + #include + #include + #include + #include + #include + int main () { return iswprint ('x') == 0; } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes +else + gl_cv_func_iswcntrl_works=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 -echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; } -test $ac_cv_func_strnlen_working = no && +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 +$as_echo "$gl_cv_func_iswcntrl_works" >&6; } + fi + + : - gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" - if test $ac_cv_func_strnlen_working = no; then - # This is necessary because automake-1.6.1 doesn't understand - # that the above use of AC_FUNC_STRNLEN means we may have to use - # lib/strnlen.c. - #AC_LIBOBJ(strnlen) -cat >>confdefs.h <<\_ACEOF -#define strnlen rpl_strnlen + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_wctype_h='<'wctype.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wctype_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_wctype_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wctype.h#{ + s#.*"\(.*/wctype.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wctype_h='<'wctype.h'>' + fi - : - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 +$as_echo "$gl_cv_next_wctype_h" >&6; } + fi + NEXT_WCTYPE_H=$gl_cv_next_wctype_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wctype.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wctype_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive - GNULIB_STRNLEN=1 + HAVE_WCTYPE_H=1 + else + HAVE_WCTYPE_H=0 + fi + if test "$gl_cv_func_iswcntrl_works" = no; then + REPLACE_ISWCNTRL=1 + else + REPLACE_ISWCNTRL=0 + fi + # Code from module wcwidth: -for ac_func in strtol -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + : -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + : + ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +" +if test "x$ac_cv_have_decl_wcwidth" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_WCWIDTH $ac_have_decl +_ACEOF + if test $ac_cv_have_decl_wcwidth != yes; then + HAVE_DECL_WCWIDTH=0 + fi + if test $ac_cv_func_wcwidth = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 +$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } +if test "${gl_cv_func_wcwidth_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; + esac -for ac_func in strtoul -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +#if !HAVE_DECL_WCWIDTH +extern +# ifdef __cplusplus +"C" +# endif +int wcwidth (int); #endif - -int -main () +int main () { -return $ac_func (); - ; + if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) + if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) + return 1; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_wcwidth_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_wcwidth_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5 +$as_echo "$gl_cv_func_wcwidth_works" >&6; } + case "$gl_cv_func_wcwidth_works" in + *yes) ;; + *no) REPLACE_WCWIDTH=1 ;; + esac + fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then @@ -36554,2852 +26252,2992 @@ + gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" - : + fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \ + || test $HAVE_DECL_WCWIDTH = 0; then + : + fi + GNULIB_WCWIDTH=1 - if test $gl_cv_have_include_next = yes; then - gl_cv_next_unistd_h='<'unistd.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_unistd_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_unistd_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/unistd.h#{ - s#.*"\(.*/unistd.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_unistd_h='<'unistd.h'>' - fi +$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5 -echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; } - fi - NEXT_UNISTD_H=$gl_cv_next_unistd_h + # Code from module xalloc: + # Code from module xreadlink: + # Code from module xstriconv: + # End of code from modules - : - if test $ac_cv_header_unistd_h = yes; then - HAVE_UNISTD_H=1 - else - HAVE_UNISTD_H=0 - fi + gltests_libdeps= + gltests_ltlibdeps= -cat >>confdefs.h <<\_ACEOF -#define USE_UNLOCKED_IO 1 -_ACEOF - : + gl_source_base='tests' + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS + gl_module_indicator_condition=$gltests_WITNESS - : + LIBGRT_LIBDEPS="$gl_libdeps" - : + LIBGRT_LTLIBDEPS="$gl_ltlibdeps" +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF +fi +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 +ac_aux_dir_abs=`cd $ac_aux_dir && pwd` +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PERL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - : +CROSS_COMPILING=$cross_compiling +for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - : +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + test -n "$CXX" && break +done +test -n "$CXX" || CXX=":" +if test "$CXX" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - : + echo 'int main () { return 0; }' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + ac_cv_prog_cxx_works=yes + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cxx_cross=no + else + ac_cv_prog_cxx_cross=yes + fi + else + ac_cv_prog_cxx_works=no + fi + rm -fr conftest* + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_works" >&5 +$as_echo "$ac_cv_prog_cxx_works" >&6; } + if test $ac_cv_prog_cxx_works = no; then + CXX=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5 +$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + cat < conftest.$ac_ext +#include +namespace test { using namespace std; } +std::ostream* ptr; +int main () { return 0; } +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + gt_cv_prog_cxx_namespaces=yes + else + gt_cv_prog_cxx_namespaces=no + fi + rm -fr conftest* + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_prog_cxx_namespaces" >&5 +$as_echo "$gt_cv_prog_cxx_namespaces" >&6; } + if test $gt_cv_prog_cxx_namespaces = no; then + CXX=: + fi + fi +fi +LIBSCHED= +if test $gl_threads_api = posix; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 +$as_echo_n "checking for sched_yield in -lrt... " >&6; } +if test "${ac_cv_lib_rt_sched_yield+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - : +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sched_yield (); +int +main () +{ +return sched_yield (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_sched_yield=yes +else + ac_cv_lib_rt_sched_yield=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 +$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } +if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then : + LIBSCHED=-lrt +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 +$as_echo_n "checking for sched_yield in -lposix4... " >&6; } +if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix4 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sched_yield (); +int +main () +{ +return sched_yield (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_posix4_sched_yield=yes +else + ac_cv_lib_posix4_sched_yield=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 +$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } +if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then : + LIBSCHED=-lposix4 +fi +fi +fi +# Check whether --enable-libasprintf was given. +if test "${enable_libasprintf+set}" = set; then : + enableval=$enable_libasprintf; if test "$enableval" != no; then + SUBDIR_libasprintf=libasprintf + else + SUBDIR_libasprintf= + fi - : +else + SUBDIR_libasprintf=libasprintf +fi +if test "$CXX" = ":"; then + SUBDIR_libasprintf= +fi + if test -n "$SUBDIR_libasprintf"; then + ENABLE_LIBASPRINTF_TRUE= + ENABLE_LIBASPRINTF_FALSE='#' +else + ENABLE_LIBASPRINTF_TRUE='#' + ENABLE_LIBASPRINTF_FALSE= +fi +subdirs="$subdirs libasprintf" - : +ac_config_files="$ac_config_files Makefile" +ac_config_files="$ac_config_files doc/Makefile" +ac_config_files="$ac_config_files intl/Makefile" - : +ac_config_files="$ac_config_files intl-java/Makefile" +ac_config_files="$ac_config_files intl-csharp/Makefile" +ac_config_files="$ac_config_files gnulib-lib/Makefile" - : +ac_config_files="$ac_config_files src/Makefile" +ac_config_files="$ac_config_files src/gettext.sh" +ac_config_files="$ac_config_files po/Makefile.in" - : +ac_config_files="$ac_config_files man/Makefile" +ac_config_files="$ac_config_files man/x-to-1" +ac_config_files="$ac_config_files m4/Makefile" +ac_config_files="$ac_config_files tests/Makefile" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. - { echo "$as_me:$LINENO: checking whether is standalone" >&5 -echo $ECHO_N "checking whether is standalone... $ECHO_C" >&6; } -if test "${gl_cv_header_wchar_h_standalone+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#include -wchar_t w; _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_wchar_h_standalone=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_header_wchar_h_standalone=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 -echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; } - if test $gl_cv_header_wchar_h_standalone != yes; then - WCHAR_H=wchar.h - fi - - - : - - - +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done - if test $ac_cv_header_wchar_h = yes; then - HAVE_WCHAR_H=1 + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file else - HAVE_WCHAR_H=0 - fi - - - - - : - + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +DEFS=-DHAVE_CONFIG_H +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs +LTLIBOBJS=$ac_ltlibobjs - if test $gl_cv_have_include_next = yes; then - gl_cv_next_wchar_h='<'wchar.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wchar_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi - if test $ac_cv_header_wchar_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wchar.h#{ - s#.*"\(.*/wchar.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wchar_h='<'wchar.h'>' - fi - +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then + as_fn_error "conditional \"WOE32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then + as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then + as_fn_error "conditional \"RELOCATABLE_VIA_LD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 -echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; } - fi - NEXT_WCHAR_H=$gl_cv_next_wchar_h + gl_libobjs= + gl_ltlibobjs= + if test -n "$gl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gl_libobjs="$gl_libobjs $i.$ac_objext" + gl_ltlibobjs="$gl_ltlibobjs $i.lo" + done + fi + gl_LIBOBJS=$gl_libobjs + gl_LTLIBOBJS=$gl_ltlibobjs + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + gltests_LIBOBJS=$gltests_libobjs - : + gltests_LTLIBOBJS=$gltests_ltlibobjs +if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then + as_fn_error "conditional \"ENABLE_LIBASPRINTF\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. +debug=false +ac_cs_recheck=false +ac_cs_silent=false - if test $ac_cv_func_iswcntrl = yes; then - HAVE_ISWCNTRL=1 - else - HAVE_ISWCNTRL=0 - fi +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi - : +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' - if test $gt_cv_c_wint_t = yes; then - HAVE_WINT_T=1 - else - HAVE_WINT_T=0 - fi +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - WCTYPE_H=wctype.h - if test $ac_cv_header_wctype_h = yes; then - if test $ac_cv_func_iswcntrl = yes; then - WCTYPE_H= - fi +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac - if test $gl_cv_have_include_next = yes; then - gl_cv_next_wctype_h='<'wctype.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wctype_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file else - - if test $ac_cv_header_wctype_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wctype.h#{ - s#.*"\(.*/wctype.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wctype_h='<'wctype.h'>' - fi - + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5 -echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; } - fi - NEXT_WCTYPE_H=$gl_cv_next_wctype_h +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ - HAVE_WCTYPE_H=1 - else - HAVE_WCTYPE_H=0 - fi + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by gettext-runtime $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" +_ACEOF - : +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. - : +Usage: $0 [OPTION]... [TAG]... + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE +Configuration files: +$config_files +Configuration headers: +$config_headers +Configuration commands: +$config_commands +Report bugs to the package provider." - { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5 -echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_wcwidth+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include - +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +gettext-runtime config.status +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" -int -main () -{ -#ifndef wcwidth - (void) wcwidth; -#endif +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." - ; - return 0; -} +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_wcwidth=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_wcwidth=no -fi +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5 -echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; } -if test $ac_cv_have_decl_wcwidth = yes; then + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 1 -_ACEOF + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 0 -_ACEOF + esac + shift +done +ac_configure_extra_args= +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" fi - - if test $ac_cv_have_decl_wcwidth != yes; then - HAVE_DECL_WCWIDTH=0 - fi - - if test $ac_cv_func_wcwidth = no; then - REPLACE_WCWIDTH=1 - else - { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5 -echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; } -if test "${gl_cv_func_wcwidth_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test "$cross_compiling" = yes; then - gl_cv_func_wcwidth_works="guessing no" -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi -#include -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include -#if !HAVE_DECL_WCWIDTH -extern -# ifdef __cplusplus -"C" -# endif -int wcwidth (int); -#endif -int main () -{ - if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) - if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) - return 1; - return 0; -} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_wcwidth_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 -( exit $ac_status ) -gl_cv_func_wcwidth_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5 -echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; } - case "$gl_cv_func_wcwidth_works" in - *yes) ;; - *no) REPLACE_WCWIDTH=1 ;; +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "X$install_override_mode" | $Xsed -e "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`' +GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +AR \ +AR_FLAGS \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +SHELL \ +ECHO \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_wl \ +lt_prog_compiler_pic \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +fix_srcfile_path \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +LD_RC \ +compiler_RC \ +lt_prog_compiler_no_builtin_flag_RC \ +lt_prog_compiler_wl_RC \ +lt_prog_compiler_pic_RC \ +lt_prog_compiler_static_RC \ +lt_cv_prog_compiler_c_o_RC \ +export_dynamic_flag_spec_RC \ +whole_archive_flag_spec_RC \ +compiler_needs_object_RC \ +with_gnu_ld_RC \ +allow_undefined_flag_RC \ +no_undefined_flag_RC \ +hardcode_libdir_flag_spec_RC \ +hardcode_libdir_flag_spec_ld_RC \ +hardcode_libdir_separator_RC \ +fix_srcfile_path_RC \ +exclude_expsyms_RC \ +include_expsyms_RC \ +file_list_spec_RC; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; esac - fi - if test $REPLACE_WCWIDTH = 1; then - +done +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +old_archive_cmds_RC \ +old_archive_from_new_cmds_RC \ +old_archive_from_expsyms_cmds_RC \ +archive_cmds_RC \ +archive_expsym_cmds_RC \ +module_cmds_RC \ +module_expsym_cmds_RC \ +export_symbols_cmds_RC \ +prelink_cmds_RC; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` + ;; +esac +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi - gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' - fi - if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h - fi - GNULIB_WCWIDTH=1 +# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake < 1.5. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" - LIBGRT_LIBDEPS="$gl_libdeps" - LIBGRT_LTLIBDEPS="$gl_ltlibdeps" +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; + "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; + "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; + "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;; + "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;; + "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; + "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; -int -main () +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 } -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Create a (secure) tmp directory for tmp files. - ac_cv_type_size_t=no -fi +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' fi - - -for ac_func in setlocale -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 -#undef $ac_func + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" -int -main () +} { -return $ac_func (); - ; - return 0; + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line } + +_ACAWK _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF - eval "$as_ac_var=no" +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { _ACEOF -fi -done +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" -ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" - ;; -esac -fi -PERL=$ac_cv_path_PERL -if test -n "$PERL"; then - { echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac -CROSS_COMPILING=$cross_compiling + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix -for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + case $ac_mode in + :F) + # + # CONFIG_FILE + # - test -n "$CXX" && break -done -test -n "$CXX" || CXX=":" + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF -if test "$CXX" != ":"; then - { echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 -echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} - echo 'int main () { return 0; }' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - ac_cv_prog_cxx_works=yes - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} else - ac_cv_prog_cxx_cross=yes + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else - ac_cv_prog_cxx_works=no + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 fi - rm -fr conftest* - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; - { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6; } - if test $ac_cv_prog_cxx_works = no; then - CXX=: - else - { echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5 -echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac - cat < conftest.$ac_ext -#include -namespace test { using namespace std; } -std::ostream* ptr; -int main () { return 0; } -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - gt_cv_prog_cxx_namespaces=yes + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` else - gt_cv_prog_cxx_namespaces=no + continue fi - rm -fr conftest* - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) - { echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5 -echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6; } - if test $gt_cv_prog_cxx_namespaces = no; then - CXX=: + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST fi - fi -fi + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" -LIBSCHED= -if test $gl_threads_api = posix; then - { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 -echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; } -if test "${ac_cv_lib_rt_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lrt $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sched_yield (); -int -main () -{ -return sched_yield (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_rt_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - ac_cv_lib_rt_sched_yield=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; } -if test $ac_cv_lib_rt_sched_yield = yes; then - LIBSCHED=-lrt -else - { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 -echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; } -if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lposix4 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# The names of the tagged configurations supported by this script. +available_tags="RC " -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sched_yield (); -int -main () -{ -return sched_yield (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_posix4_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# ### BEGIN LIBTOOL CONFIG - ac_cv_lib_posix4_sched_yield=no -fi +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; } -if test $ac_cv_lib_posix4_sched_yield = yes; then - LIBSCHED=-lposix4 -fi +# Assembler program. +AS=$AS -fi +# DLL creation program. +DLLTOOL=$DLLTOOL -fi +# Object dumper program. +OBJDUMP=$OBJDUMP +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared -# Check whether --enable-libasprintf was given. -if test "${enable_libasprintf+set}" = set; then - enableval=$enable_libasprintf; if test "$enableval" != no; then - SUBDIR_libasprintf=libasprintf - else - SUBDIR_libasprintf= - fi +# Whether or not to build static libraries. +build_old_libs=$enable_static -else - SUBDIR_libasprintf=libasprintf -fi +# What type of objects to build. +pic_mode=$pic_mode -if test "$CXX" = ":"; then - SUBDIR_libasprintf= -fi - if test -n "$SUBDIR_libasprintf"; then - ENABLE_LIBASPRINTF_TRUE= - ENABLE_LIBASPRINTF_FALSE='#' -else - ENABLE_LIBASPRINTF_TRUE='#' - ENABLE_LIBASPRINTF_FALSE= -fi +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os -subdirs="$subdirs libasprintf" +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os +# A sed program that does not truncate output. +SED=$lt_SED -ac_config_files="$ac_config_files Makefile" +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" +# A grep program that handles long lines. +GREP=$lt_GREP -ac_config_files="$ac_config_files doc/Makefile" +# An ERE matcher. +EGREP=$lt_EGREP +# A literal string matcher. +FGREP=$lt_FGREP -ac_config_files="$ac_config_files intl/Makefile" +# A BSD- or MS-compatible name lister. +NM=$lt_NM +# Whether we need soft or hard links. +LN_S=$lt_LN_S -ac_config_files="$ac_config_files intl-java/Makefile" +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len +# Object file suffix (normally "o"). +objext=$ac_objext -ac_config_files="$ac_config_files intl-csharp/Makefile" +# Executable file suffix (normally ""). +exeext=$exeext +# whether the shell understands "unset". +lt_unset=$lt_unset -ac_config_files="$ac_config_files gnulib-lib/Makefile" +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP -ac_config_files="$ac_config_files src/Makefile" +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds -ac_config_files="$ac_config_files src/gettext.sh" +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd=$lt_file_magic_cmd -ac_config_files="$ac_config_files po/Makefile.in" +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS +# A symbol stripping program. +STRIP=$lt_STRIP -ac_config_files="$ac_config_files man/Makefile" +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds -ac_config_files="$ac_config_files man/x-to-1" +# A C compiler. +LTCC=$lt_CC +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS -ac_config_files="$ac_config_files m4/Makefile" +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -ac_config_files="$ac_config_files tests/Makefile" +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. +# The name of the directory that contains temporary libtool files. +objdir=$objdir -_ACEOF +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done +# An echo program that does not interpret backslashes. +ECHO=$lt_ECHO - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +# Must we lock files when doing compilation? +need_locks=$lt_need_locks -DEFS=-DHAVE_CONFIG_H +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink -LTLIBOBJS=$ac_ltlibobjs +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix +# Do we need a version for libraries? +need_version=$need_version -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"WOE32\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"WOE32\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +# Library versioning type. +version_type=$version_type - gl_libobjs= - gl_ltlibobjs= - if test -n "$gl_LIBOBJS"; then - # Remove the extension. - sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do - gl_libobjs="$gl_libobjs $i.$ac_objext" - gl_ltlibobjs="$gl_ltlibobjs $i.lo" - done - fi - gl_LIBOBJS=$gl_libobjs +# Shared library runtime path variable. +runpath_var=$runpath_var - gl_LTLIBOBJS=$gl_ltlibobjs +# Shared library path variable. +shlibpath_var=$shlibpath_var +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath -if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBASPRINTF\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"ENABLE_LIBASPRINTF\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +# Format of library name prefix. +libname_spec=$lt_libname_spec -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds -fi +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi +# Whether dlopen is supported. +dlopen_support=$enable_dlopen +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' +# The linker used to build libraries. +LD=$lt_LD -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi +# A language specific compiler. +CC=$lt_compiler -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi +# Is the compiler the GNU compiler? +with_gcc=$GCC +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl -# CDPATH. -$as_unset CDPATH +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag -exec 6>&1 +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct -_ACEOF +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L -_ACEOF +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic -Usage: $0 [OPTIONS] [FILE]... +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs -Configuration files: -$config_files +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path -Configuration headers: -$config_headers +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols -Configuration commands: -$config_commands +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds -Report bugs to ." +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF ;; esac - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - { echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; +ltmain="$ac_aux_dir/ltmain.sh" - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; - esac - shift -done + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) -ac_configure_extra_args= + case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () { - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" -# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} -_ACEOF +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} -cat >>$CONFIG_STATUS <<\_ACEOF +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; - "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; - "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; - "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;; - "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;; - "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; - "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; - "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || +# func_basename file +func_basename () { - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } -# Create a (secure) tmp directory for tmp files. + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () { - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} + +# sed scripts: +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[^=]*=//' + +# func_opt_split +func_opt_split () { - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} + +# func_lo2o object +func_lo2o () { - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } -# -# Set up the sed scripts for CONFIG_FILES section. -# +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` +} -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$@"` +} -_ACEOF +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` +} +_LT_EOF +esac +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1+=\$2" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -YACC!$YACC$ac_delim -YFLAGS!$YFLAGS$ac_delim -JAVA_CHOICE!$JAVA_CHOICE$ac_delim -CPP!$CPP$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -HAVE_GCJ_IN_PATH!$HAVE_GCJ_IN_PATH$ac_delim -HAVE_JAVAC_IN_PATH!$HAVE_JAVAC_IN_PATH$ac_delim -HAVE_JIKES_IN_PATH!$HAVE_JIKES_IN_PATH$ac_delim -CONF_JAVAC!$CONF_JAVAC$ac_delim -CLASSPATH!$CLASSPATH$ac_delim -CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim -HAVE_JAVAC_ENVVAR!$HAVE_JAVAC_ENVVAR$ac_delim -HAVE_GCJ_C!$HAVE_GCJ_C$ac_delim -HAVE_JAVAC!$HAVE_JAVAC$ac_delim -HAVE_JIKES!$HAVE_JIKES$ac_delim -JAR!$JAR$ac_delim -BUILDJAVA!$BUILDJAVA$ac_delim -CSHARP_CHOICE!$CSHARP_CHOICE$ac_delim -HAVE_CSCC_IN_PATH!$HAVE_CSCC_IN_PATH$ac_delim -HAVE_MCS_IN_PATH!$HAVE_MCS_IN_PATH$ac_delim -HAVE_CSC_IN_PATH!$HAVE_CSC_IN_PATH$ac_delim -_ACEOF +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1=\$$1\$2" +} - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +_LT_EOF + ;; + esac -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -HAVE_CSCC!$HAVE_CSCC$ac_delim -HAVE_MCS!$HAVE_MCS$ac_delim -HAVE_CSC!$HAVE_CSC$ac_delim -CSHARPCOMPFLAGS!$CSHARPCOMPFLAGS$ac_delim -BUILDCSHARP!$BUILDCSHARP$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -RANLIB!$RANLIB$ac_delim -SED!$SED$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -DLLTOOL!$DLLTOOL$ac_delim -AS!$AS$ac_delim -OBJDUMP!$OBJDUMP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -WOE32_TRUE!$WOE32_TRUE$ac_delim -WOE32_FALSE!$WOE32_FALSE$ac_delim -USE_NLS!$USE_NLS$ac_delim -GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim -MSGFMT!$MSGFMT$ac_delim -GMSGFMT!$GMSGFMT$ac_delim -MSGFMT_015!$MSGFMT_015$ac_delim -GMSGFMT_015!$GMSGFMT_015$ac_delim -XGETTEXT!$XGETTEXT$ac_delim -XGETTEXT_015!$XGETTEXT_015$ac_delim -MSGMERGE!$MSGMERGE$ac_delim -XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim -GLIBC2!$GLIBC2$ac_delim -CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim -HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim -ALLOCA!$ALLOCA$ac_delim -PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim -LIBPTH!$LIBPTH$ac_delim -LTLIBPTH!$LTLIBPTH$ac_delim -LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim -LIBTHREAD!$LIBTHREAD$ac_delim -LTLIBTHREAD!$LTLIBTHREAD$ac_delim -LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim -LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim -LIBICONV!$LIBICONV$ac_delim -LTLIBICONV!$LTLIBICONV$ac_delim -INTLBISON!$INTLBISON$ac_delim -GLIBC21!$GLIBC21$ac_delim -INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim -HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim -HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim -HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim -HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim -WOE32DLL!$WOE32DLL$ac_delim -WOE32!$WOE32$ac_delim -WINDRES!$WINDRES$ac_delim -LTLIBC!$LTLIBC$ac_delim -BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim -USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim -CATOBJEXT!$CATOBJEXT$ac_delim -DATADIRNAME!$DATADIRNAME$ac_delim -INSTOBJEXT!$INSTOBJEXT$ac_delim -GENCAT!$GENCAT$ac_delim -INTLOBJS!$INTLOBJS$ac_delim -INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim -INTLLIBS!$INTLLIBS$ac_delim -LIBINTL!$LIBINTL$ac_delim -LTLIBINTL!$LTLIBINTL$ac_delim -POSUB!$POSUB$ac_delim -GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim -GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim -ALLOCA_H!$ALLOCA_H$ac_delim -GETOPT_H!$GETOPT_H$ac_delim -REPLACE_ICONV!$REPLACE_ICONV$ac_delim -REPLACE_ICONV_OPEN!$REPLACE_ICONV_OPEN$ac_delim -REPLACE_ICONV_UTF!$REPLACE_ICONV_UTF$ac_delim -INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim -NEXT_ICONV_H!$NEXT_ICONV_H$ac_delim -ICONV_H!$ICONV_H$ac_delim -HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim -GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim -GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim -GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim -GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim -GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim -_ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done + cat <<_LT_EOF >> "$ofile" -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# ### BEGIN LIBTOOL TAG CONFIG: RC -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# The linker used to build libraries. +LD=$lt_LD_RC +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_RC -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim -GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim -HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim -HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim -HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim -HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim -REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim -REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim -GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim -GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim -GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim -GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim -GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim -GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim -GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim -GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim -GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim -GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim -GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim -GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim -GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim -GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim -GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim -GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim -GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim -GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim -GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim -GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim -GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim -GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim -GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim -GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim -GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim -GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim -GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim -GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim -HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim -HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim -HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim -HAVE_STPCPY!$HAVE_STPCPY$ac_delim -HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim -HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim -HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim -HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim -HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim -HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim -HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim -HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim -HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim -HAVE_STRSEP!$HAVE_STRSEP$ac_delim -HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim -HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim -HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim -REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim -GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim -GNULIB_DUP2!$GNULIB_DUP2$ac_delim -GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim -GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim -GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim -GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim -GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim -GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim -GNULIB_READLINK!$GNULIB_READLINK$ac_delim -GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim -HAVE_DUP2!$HAVE_DUP2$ac_delim -HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim -HAVE_READLINK!$HAVE_READLINK$ac_delim -HAVE_SLEEP!$HAVE_SLEEP$ac_delim -HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim -REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim -REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim -REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim -REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim -REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim -RELOCATABLE!$RELOCATABLE$ac_delim -RELOCATABLE_LDFLAGS!$RELOCATABLE_LDFLAGS$ac_delim -INSTALL_PROGRAM_ENV!$INSTALL_PROGRAM_ENV$ac_delim -RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim -RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim -RELOCATABLE_LIBRARY_PATH!$RELOCATABLE_LIBRARY_PATH$ac_delim -RELOCATABLE_CONFIG_H_DIR!$RELOCATABLE_CONFIG_H_DIR$ac_delim -RELOCATABLE_SRC_DIR!$RELOCATABLE_SRC_DIR$ac_delim -RELOCATABLE_BUILD_DIR!$RELOCATABLE_BUILD_DIR$ac_delim -STDBOOL_H!$STDBOOL_H$ac_delim -HAVE__BOOL!$HAVE__BOOL$ac_delim -HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim -HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim -HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim -HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim -NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim -HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim -HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim -HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim -BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim -BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim -BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim -BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim -_ACEOF +# A language specific compiler. +CC=$lt_compiler_RC - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# Is the compiler the GNU compiler? +with_gcc=$GCC_RC -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_RC +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_RC -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim -HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim -HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim -HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim -PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim -SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim -SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim -WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim -WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim -STDINT_H!$STDINT_H$ac_delim -NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim -NEXT_STRING_H!$NEXT_STRING_H$ac_delim -NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim -HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim -GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim -HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim -REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim -WCHAR_H!$WCHAR_H$ac_delim -HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim -NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim -HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim -HAVE_WINT_T!$HAVE_WINT_T$ac_delim -NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim -HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim -WCTYPE_H!$WCTYPE_H$ac_delim -LIBGRT_LIBDEPS!$LIBGRT_LIBDEPS$ac_delim -LIBGRT_LTLIBDEPS!$LIBGRT_LTLIBDEPS$ac_delim -PERL!$PERL$ac_delim -CROSS_COMPILING!$CROSS_COMPILING$ac_delim -LIBSCHED!$LIBSCHED$ac_delim -ENABLE_LIBASPRINTF_TRUE!$ENABLE_LIBASPRINTF_TRUE$ac_delim -ENABLE_LIBASPRINTF_FALSE!$ENABLE_LIBASPRINTF_FALSE$ac_delim -subdirs!$subdirs$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -gl_LIBOBJS!$gl_LIBOBJS$ac_delim -gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim -_ACEOF +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_RC - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_RC +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_RC -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_RC +archive_expsym_cmds=$lt_archive_expsym_cmds_RC - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_RC +module_expsym_cmds=$lt_module_expsym_cmds_RC - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_RC -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_RC -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_RC + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - case $ac_mode in - :F) - # - # CONFIG_FILE - # +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_RC -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_RC -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_RC -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_RC - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - :H) - # - # CONFIG_HEADER - # -_ACEOF +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_RC -# Transform confdefs.h into a sed script `conftest.defines', that -# substitutes the proper values into config.h.in to produce config.h. -rm -f conftest.defines conftest.tail -# First, append a space to every undef/define line, to ease matching. -echo 's/$/ /' >conftest.defines -# Then, protect against being on the right side of a sed subst, or in -# an unquoted here document, in config.status. If some macros were -# called several times there might be several #defines for the same -# symbol, which is useless. But do not sort them, since the last -# AC_DEFINE must be honored. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where -# NAME is the cpp macro being defined, VALUE is the value it is being given. -# PARAMS is the parameter list in the macro definition--in most cases, it's -# just an empty string. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' -ac_dB='\\)[ (].*,\\1define\\2' -ac_dC=' ' -ac_dD=' ,' +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_RC -uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - -# Remove the space that was appended to ease matching. -# Then replace #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -# (The regexp can be short, since the line contains either #define or #undef.) -echo 's/ $// -s,^[ #]*u.*,/* & */,' >>conftest.defines - -# Break up conftest.defines: -ac_max_sed_lines=50 - -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" -# et cetera. -ac_in='$ac_file_inputs' -ac_out='"$tmp/out1"' -ac_nxt='"$tmp/out2"' - -while : -do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def -b -:def -_ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines conftest.tail +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_RC -echo "ac_result=$ac_in" >>$CONFIG_STATUS -cat >>$CONFIG_STATUS <<\_ACEOF - if test x"$ac_file" != x-; then - echo "/* $configure_input */" >"$tmp/config.h" - cat "$ac_result" >>"$tmp/config.h" - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f $ac_file - mv "$tmp/config.h" $ac_file - fi - else - echo "/* $configure_input */" - cat "$ac_result" - fi - rm -f "$tmp/out12" -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| . 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_RC - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_RC +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_RC + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_RC + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_RC + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_RC + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_RC + +# ### END LIBTOOL TAG CONFIG: RC +_LT_EOF - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done ;; "po-directories":C) for ac_file in $CONFIG_FILES; do @@ -39514,14 +29352,6 @@ ;; esac done ;; - "gnulib-lib/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - "src/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; "src/gettext.sh":F) chmod a+x src/gettext.sh ;; "man/Makefile":F) sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp @@ -39532,11 +29362,13 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -39556,7 +29388,7 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? fi # @@ -39564,7 +29396,8 @@ # if test "$no_recursion" != yes; then - # Remove --cache-file and --srcdir arguments so they do not pile up. + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" @@ -39593,11 +29426,13 @@ ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; + --disable-option-checking) + ;; *) case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done @@ -39605,7 +29440,7 @@ # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" @@ -39614,6 +29449,10 @@ ac_sub_configure_args="--silent $ac_sub_configure_args" fi + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue @@ -39622,57 +29461,17 @@ test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - echo "$as_me:$LINENO: $ac_msg" >&5 - echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -39711,8 +29510,8 @@ # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else - { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 -echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -39725,17 +29524,19 @@ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 -echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi diff -Nru gettext-0.17/gettext-runtime/configure.ac gettext-0.18.1.1/gettext-runtime/configure.ac --- gettext-0.17/gettext-runtime/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/configure.ac 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ dnl Configuration for the gettext-runtime directory of GNU gettext -dnl Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. +dnl Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -18,11 +18,12 @@ AC_PREREQ([2.59]) AC_INIT -AC_CONFIG_SRCDIR(intl/dcigettext.c) -AC_CONFIG_AUX_DIR(../build-aux) +AC_CONFIG_SRCDIR([intl/dcigettext.c]) +AC_CONFIG_AUX_DIR([../build-aux]) . $srcdir/../version.sh -AM_INIT_AUTOMAKE(gettext-runtime, $VERSION_NUMBER) -AM_CONFIG_HEADER(config.h) +gl_INIT_PACKAGE([gettext-runtime], [$VERSION_NUMBER]) +AM_INIT_AUTOMAKE([silent-rules]) +AM_CONFIG_HEADER([config.h]) dnl Installation directories. test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' @@ -35,13 +36,13 @@ gt_JAVA_CHOICE gt_JAVACOMP([1.3], [1.1]) -AC_CHECK_PROG(JAR, jar, jar) +AC_CHECK_PROG([JAR], [jar], [jar]) if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then BUILDJAVA=yes else BUILDJAVA=no fi -AC_SUBST(BUILDJAVA) +AC_SUBST([BUILDJAVA]) gt_CSHARPCOMP if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then @@ -49,7 +50,7 @@ else BUILDCSHARP=no fi -AC_SUBST(BUILDCSHARP) +AC_SUBST([BUILDCSHARP]) dnl Check for host type. AC_CANONICAL_HOST @@ -64,8 +65,12 @@ dnl Check for build configuration. gl_WOE32_DLL -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL + +LT_INIT([win32-dll]) + +dnl Prepares the libtool configuration for handling of Windows resources, and +dnl sets the RC variable to a program that compiles Windows resource files. +LT_LANG([Windows Resource]) dnl On mingw and Cygwin, we can activate special Makefile rules which add dnl version information to the shared libraries and executables. @@ -79,7 +84,7 @@ dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.) -AM_GNU_GETTEXT(use-libtool, need-ngettext) +AM_GNU_GETTEXT([use-libtool], [need-ngettext]) dnl Checks for header files, functions and declarations. gl_INIT @@ -103,11 +108,11 @@ dnl Check for tools needed for formatting the documentation. ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl) +AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl]) dnl Check for tools needed for formatting man pages. CROSS_COMPILING=$cross_compiling -AC_SUBST(CROSS_COMPILING) +AC_SUBST([CROSS_COMPILING]) dnl Checks for optional programs for the tests/lang-* tests. gt_PROG_ANSI_CXX @@ -117,27 +122,27 @@ LIBSCHED= if test $gl_threads_api = posix; then dnl Solaris has sched_yield in librt, not in libpthread or libc. - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], + AC_CHECK_LIB([rt], [sched_yield], [LIBSCHED=-lrt], [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. - AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) + AC_CHECK_LIB([posix4], [sched_yield], [LIBSCHED=-lposix4])]) fi AC_SUBST([LIBSCHED]) dnl Determine whether to build libasprintf. -AC_ARG_ENABLE(libasprintf, +AC_ARG_ENABLE([libasprintf], [ --disable-libasprintf do not build libasprintf], [if test "$enableval" != no; then SUBDIR_libasprintf=libasprintf else SUBDIR_libasprintf= fi - ], SUBDIR_libasprintf=libasprintf) + ], [SUBDIR_libasprintf=libasprintf]) if test "$CXX" = ":"; then SUBDIR_libasprintf= fi AM_CONDITIONAL([ENABLE_LIBASPRINTF], [test -n "$SUBDIR_libasprintf"]) -AC_CONFIG_SUBDIRS(libasprintf) +AC_CONFIG_SUBDIRS([libasprintf]) AC_CONFIG_FILES([Makefile]) @@ -149,11 +154,9 @@ AC_CONFIG_FILES([intl-csharp/Makefile]) -AC_CONFIG_FILES([gnulib-lib/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([gnulib-lib/Makefile]) -AC_CONFIG_FILES([src/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([src/Makefile]) AC_CONFIG_FILES([src/gettext.sh], [chmod a+x src/gettext.sh]) AC_CONFIG_FILES([po/Makefile.in]) diff -Nru gettext-0.17/gettext-runtime/doc/ChangeLog gettext-0.18.1.1/gettext-runtime/doc/ChangeLog --- gettext-0.17/gettext-runtime/doc/ChangeLog 2007-11-06 23:27:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/doc/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,39 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-03 Bruno Haible + + De-emphasize the intl/ subdirectory. + * nls.texi (Translation Intro): Remove paragraph about the version. + (Configuration advice): Remove section. + (INSTALL Matters): Don't explain --with-included-gettext. Don't mention + catgets. + +2010-06-03 Bruno Haible + + * matrix.texi: Update. + * nls.texi (STATUS): Likewise. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-08 Bruno Haible + + * matrix.texi: Update. + * nls.texi (STATUS): Likewise. + +2010-03-27 Bruno Haible + + * matrix.texi: Update. + * nls.texi (STATUS): Likewise. + +2008-09-27 Bruno Haible + + * matrix.texi: Update. + * nls.texi (STATUS): Likewise. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/doc/Makefile.in gettext-0.18.1.1/gettext-runtime/doc/Makefile.in --- gettext-0.17/gettext-runtime/doc/Makefile.in 2007-11-06 23:34:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/doc/Makefile.in 2010-06-06 20:11:37.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -34,12 +36,18 @@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -50,44 +58,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -98,14 +127,22 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -113,8 +150,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -141,22 +181,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -164,117 +209,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -285,10 +554,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -302,7 +573,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -315,59 +593,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -382,8 +784,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -403,6 +804,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -416,6 +820,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -429,6 +834,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -441,14 +847,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits doc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits doc/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -466,6 +872,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -495,13 +902,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -529,6 +940,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -547,6 +959,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -555,18 +969,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -600,6 +1024,7 @@ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/doc/matrix.texi gettext-0.18.1.1/gettext-runtime/doc/matrix.texi --- gettext-0.17/gettext-runtime/doc/matrix.texi 2007-11-02 00:04:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/doc/matrix.texi 2010-06-06 12:49:57.000000000 +0000 @@ -1,856 +1,1117 @@ @example @group -Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo - +----------------------------------------------------+ -Compendium | [] [] [] [] | -a2ps | [] [] [] [] [] | -aegis | () | -ant-phone | () | -anubis | [] | -ap-utils | | -aspell | [] [] [] [] [] | -bash | [] | -bfd | | -bibshelf | [] | -binutils | | -bison | [] [] | -bison-runtime | [] | -bluez-pin | [] [] [] [] [] | -cflow | [] | -clisp | [] [] [] | -console-tools | [] [] | -coreutils | [] [] [] [] | -cpio | | -cpplib | [] [] [] | -cryptonit | [] | -dialog | | -diffutils | [] [] [] [] [] [] | -doodle | [] | -e2fsprogs | [] [] | -enscript | [] [] [] [] | -fetchmail | [] [] () [] [] | -findutils | [] | -findutils_stable | [] [] [] | -flex | [] [] [] | -fslint | | -gas | | -gawk | [] [] [] | -gcal | [] | -gcc | [] | -gettext-examples | [] [] [] [] [] | -gettext-runtime | [] [] [] [] [] | -gettext-tools | [] [] | -gip | [] | -gliv | [] [] | -glunarclock | [] | -gmult | [] [] | -gnubiff | () | -gnucash | [] [] () () [] | -gnuedu | | -gnulib | [] | -gnunet | | -gnunet-gtk | | -gnutls | [] | -gpe-aerial | [] [] | -gpe-beam | [] [] | -gpe-calendar | | -gpe-clock | [] [] | -gpe-conf | [] [] | -gpe-contacts | | -gpe-edit | [] | -gpe-filemanager | | -gpe-go | [] | -gpe-login | [] [] | -gpe-ownerinfo | [] [] | -gpe-package | | -gpe-sketchbook | [] [] | -gpe-su | [] [] | -gpe-taskmanager | [] [] | -gpe-timesheet | [] | -gpe-today | [] [] | -gpe-todo | | -gphoto2 | [] [] [] [] | -gprof | [] [] | -gpsdrive | | -gramadoir | [] [] | -grep | [] [] | -gretl | () | -gsasl | | -gss | | -gst-plugins-bad | [] [] | -gst-plugins-base | [] [] | -gst-plugins-good | [] [] [] | -gst-plugins-ugly | [] [] | -gstreamer | [] [] [] [] [] [] [] | -gtick | () | -gtkam | [] [] [] [] | -gtkorphan | [] [] | -gtkspell | [] [] [] [] | -gutenprint | [] | -hello | [] [] [] [] [] | -herrie | [] | -hylafax | | -idutils | [] [] | -indent | [] [] [] [] | -iso_15924 | | -iso_3166 | [] [] [] [] [] [] [] [] [] [] [] | -iso_3166_2 | | -iso_4217 | [] [] [] | -iso_639 | [] [] [] [] | -jpilot | [] | -jtag | | -jwhois | | -kbd | [] [] [] [] | -keytouch | [] [] | -keytouch-editor | [] | -keytouch-keyboa... | [] | -latrine | () | -ld | [] | -leafpad | [] [] [] [] [] | -libc | [] [] [] [] | -libexif | [] | -libextractor | [] | -libgpewidget | [] [] [] | -libgpg-error | [] | -libgphoto2 | [] [] | -libgphoto2_port | [] [] | -libgsasl | | -libiconv | [] [] | -libidn | [] [] [] | -lifelines | [] () | -lilypond | [] | -lingoteach | | -lprng | | -lynx | [] [] [] [] | -m4 | [] [] [] [] | -mailfromd | | -mailutils | [] | -make | [] [] | -man-db | [] [] [] | -minicom | [] [] [] | -nano | [] [] [] | -opcodes | [] | -parted | [] [] | -pilot-qof | | -popt | [] [] [] | -psmisc | [] | -pwdutils | | -qof | | -radius | [] | -recode | [] [] [] [] [] [] | -rpm | [] | -screem | | -scrollkeeper | [] [] [] [] [] [] [] [] | -sed | [] [] [] | -shared-mime-info | [] [] [] [] () [] [] [] | -sharutils | [] [] [] [] [] [] | -shishi | | -skencil | [] () | -solfege | | -soundtracker | [] [] | -sp | [] | -system-tools-ba... | [] [] [] [] [] [] [] [] [] | -tar | [] [] | -texinfo | [] [] [] | -tin | () () | -tuxpaint | [] [] [] [] [] [] | -unicode-han-tra... | | -unicode-transla... | | -util-linux | [] [] [] [] | -util-linux-ng | [] [] [] [] | -vorbis-tools | [] | -wastesedge | () | -wdiff | [] [] [] [] | -wget | [] [] [] | -xchat | [] [] [] [] [] [] [] | -xkeyboard-config | [] | -xpad | [] [] [] | - +----------------------------------------------------+ - af am ar az be bg bs ca cs cy da de el en en_GB eo - 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18 -@end group - -@group - es et eu fa fi fr ga gl gu he hi hr hu id is it +Ready PO files af am an ar as ast az be be@@latin bg bn_IN bs ca +--------------------------------------------------+ -Compendium | [] [] [] [] [] | -a2ps | [] [] [] () | +a2ps | [] [] | aegis | | -ant-phone | [] | -anubis | [] | -ap-utils | [] [] | -aspell | [] [] [] | -bash | [] | -bfd | [] [] | -bibshelf | [] [] [] | -binutils | [] [] [] | -bison | [] [] [] [] [] [] | -bison-runtime | [] [] [] [] [] | -bluez-pin | [] [] [] [] [] | -cflow | [] | -clisp | [] [] | -console-tools | | -coreutils | [] [] [] [] [] [] | -cpio | [] [] [] | -cpplib | [] [] | -cryptonit | [] | -dialog | [] [] [] | -diffutils | [] [] [] [] [] [] [] [] [] | -doodle | [] [] | -e2fsprogs | [] [] [] | -enscript | [] [] [] | -fetchmail | [] | -findutils | [] [] [] | -findutils_stable | [] [] [] [] | -flex | [] [] [] | -fslint | | -gas | [] [] | -gawk | [] [] [] [] () | -gcal | [] [] | -gcc | [] | -gettext-examples | [] [] [] [] [] [] [] | -gettext-runtime | [] [] [] [] [] [] | -gettext-tools | [] [] [] [] | -gip | [] [] [] [] | -gliv | () | -glunarclock | [] [] [] | -gmult | [] [] [] | -gnubiff | () () | -gnucash | () () () | -gnuedu | [] | -gnulib | [] [] [] | -gnunet | | -gnunet-gtk | | -gnutls | | -gpe-aerial | [] [] | -gpe-beam | [] [] | -gpe-calendar | | -gpe-clock | [] [] [] [] | -gpe-conf | [] | -gpe-contacts | [] [] | -gpe-edit | [] [] [] [] | -gpe-filemanager | [] | -gpe-go | [] [] [] | -gpe-login | [] [] [] | -gpe-ownerinfo | [] [] [] [] [] | -gpe-package | [] | -gpe-sketchbook | [] [] | -gpe-su | [] [] [] [] | -gpe-taskmanager | [] [] [] | -gpe-timesheet | [] [] [] [] | -gpe-today | [] [] [] [] | -gpe-todo | [] | -gphoto2 | [] [] [] [] [] | -gprof | [] [] [] [] [] | -gpsdrive | [] | -gramadoir | [] [] | -grep | [] [] [] | -gretl | [] [] [] () | -gsasl | [] [] | -gss | [] [] | -gst-plugins-bad | [] [] [] [] | -gst-plugins-base | [] [] [] [] | -gst-plugins-good | [] [] [] [] [] | -gst-plugins-ugly | [] [] [] [] | -gstreamer | [] [] [] | -gtick | [] [] [] | -gtkam | [] [] [] [] | -gtkorphan | [] [] | -gtkspell | [] [] [] [] [] [] [] | -gutenprint | [] | -hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | -herrie | [] | -hylafax | | -idutils | [] [] [] [] [] | -indent | [] [] [] [] [] [] [] [] [] [] | -iso_15924 | [] | -iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | -iso_3166_2 | [] | -iso_4217 | [] [] [] [] [] [] | -iso_639 | [] [] [] [] [] [] | -jpilot | [] [] | -jtag | [] | -jwhois | [] [] [] [] [] | -kbd | [] [] | -keytouch | [] [] [] | -keytouch-editor | [] | -keytouch-keyboa... | [] [] | -latrine | [] [] | -ld | [] [] [] [] | -leafpad | [] [] [] [] [] [] | -libc | [] [] [] [] [] | -libexif | [] | -libextractor | [] | -libgpewidget | [] [] [] [] [] | -libgpg-error | [] | -libgphoto2 | [] [] [] | -libgphoto2_port | [] [] | -libgsasl | [] [] | -libiconv | [] [] [] | -libidn | [] [] | -lifelines | () | -lilypond | [] [] [] | -lingoteach | [] [] [] | -lprng | | -lynx | [] [] [] | -m4 | [] [] [] [] | -mailfromd | | -mailutils | [] [] | -make | [] [] [] [] [] [] [] [] | -man-db | [] | -minicom | [] [] [] [] | -nano | [] [] [] [] [] [] [] | -opcodes | [] [] [] [] | -parted | [] [] [] | -pilot-qof | | -popt | [] [] [] [] | -psmisc | [] [] | -pwdutils | | -qof | [] | -radius | [] [] | -recode | [] [] [] [] [] [] [] [] | -rpm | [] [] | -screem | | -scrollkeeper | [] [] [] | -sed | [] [] [] [] [] | -shared-mime-info | [] [] [] [] [] [] | -sharutils | [] [] [] [] [] [] [] [] | -shishi | [] | -skencil | [] [] | -solfege | [] | -soundtracker | [] [] [] | -sp | [] | -system-tools-ba... | [] [] [] [] [] [] [] [] [] | -tar | [] [] [] [] [] | -texinfo | [] [] [] | -tin | [] () | -tuxpaint | [] [] | -unicode-han-tra... | | -unicode-transla... | [] [] | -util-linux | [] [] [] [] [] [] [] | -util-linux-ng | [] [] [] [] [] [] [] | -vorbis-tools | | -wastesedge | () | -wdiff | [] [] [] [] [] [] [] [] | -wget | [] [] [] [] [] [] [] [] | -xchat | [] [] [] [] [] [] [] | -xkeyboard-config | [] [] [] [] | -xpad | [] [] [] | - +--------------------------------------------------+ - es et eu fa fi fr ga gl gu he hi hr hu id is it - 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52 -@end group - -@group - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - +--------------------------------------------------+ -Compendium | [] | -a2ps | () [] [] | -aegis | () | -ant-phone | [] | -anubis | [] [] [] | -ap-utils | [] | -aspell | [] [] | -bash | [] | +ant-phone | | +anubis | | +aspell | [] [] | +bash | | bfd | | -bibshelf | [] | +bibshelf | [] | binutils | | -bison | [] [] [] | -bison-runtime | [] [] [] | -bluez-pin | [] [] [] | +bison | | +bison-runtime | [] | +bluez-pin | [] [] | +bombono-dvd | | +buzztard | | cflow | | -clisp | [] | -console-tools | | -coreutils | [] | -cpio | [] | -cpplib | [] | -cryptonit | [] | -dialog | [] [] | -diffutils | [] [] [] | +clisp | | +coreutils | [] [] | +cpio | | +cppi | | +cpplib | [] | +cryptsetup | | +dfarc | | +dialog | [] [] | +dico | | +diffutils | [] | +dink | | doodle | | -e2fsprogs | [] | -enscript | [] | -fetchmail | [] [] | -findutils | [] | -findutils_stable | [] | -flex | [] [] | -fslint | | +e2fsprogs | [] | +enscript | [] | +exif | | +fetchmail | [] | +findutils | [] | +flex | [] | +freedink | | gas | | -gawk | [] [] | -gcal | | +gawk | [] [] | +gcal | [] | gcc | | -gettext-examples | [] [] [] | -gettext-runtime | [] [] [] | -gettext-tools | [] [] | -gip | [] [] | -gliv | [] | -glunarclock | [] [] | -gmult | [] [] [] | +gettext-examples | [] [] [] [] | +gettext-runtime | [] [] | +gettext-tools | [] [] | +gip | [] | +gjay | | +gliv | [] | +glunarclock | [] [] | gnubiff | | -gnucash | () () () | +gnucash | [] | gnuedu | | -gnulib | [] [] | +gnulib | | gnunet | | gnunet-gtk | | -gnutls | [] | -gpe-aerial | [] | -gpe-beam | [] | -gpe-calendar | [] | -gpe-clock | [] [] [] | -gpe-conf | [] [] [] | -gpe-contacts | [] | -gpe-edit | [] [] [] | -gpe-filemanager | [] [] | -gpe-go | [] [] [] | -gpe-login | [] [] [] | -gpe-ownerinfo | [] [] | -gpe-package | [] [] | -gpe-sketchbook | [] [] | -gpe-su | [] [] [] | -gpe-taskmanager | [] [] [] [] | -gpe-timesheet | [] | -gpe-today | [] [] | -gpe-todo | [] | -gphoto2 | [] [] | -gprof | [] | -gpsdrive | [] | -gramadoir | () | -grep | [] [] | -gretl | | -gsasl | [] | +gnutls | | +gold | | +gpe-aerial | | +gpe-beam | | +gpe-bluetooth | | +gpe-calendar | | +gpe-clock | [] | +gpe-conf | | +gpe-contacts | | +gpe-edit | | +gpe-filemanager | | +gpe-go | | +gpe-login | | +gpe-ownerinfo | [] | +gpe-package | | +gpe-sketchbook | | +gpe-su | [] | +gpe-taskmanager | [] | +gpe-timesheet | [] | +gpe-today | [] | +gpe-todo | | +gphoto2 | | +gprof | [] | +gpsdrive | | +gramadoir | | +grep | | +grub | [] [] | +gsasl | | gss | | -gst-plugins-bad | [] | -gst-plugins-base | [] | -gst-plugins-good | [] | -gst-plugins-ugly | [] | -gstreamer | [] | -gtick | [] | -gtkam | [] [] | -gtkorphan | [] | -gtkspell | [] [] | -gutenprint | [] | -hello | [] [] [] [] [] [] [] | -herrie | [] | +gst-plugins-bad | [] | +gst-plugins-base | [] | +gst-plugins-good | [] | +gst-plugins-ugly | [] | +gstreamer | [] [] [] | +gtick | | +gtkam | [] | +gtkorphan | [] | +gtkspell | [] [] [] | +gutenprint | | +hello | [] | +help2man | | hylafax | | -idutils | [] | -indent | [] [] | -iso_15924 | [] | -iso_3166 | [] [] [] [] [] [] [] [] | -iso_3166_2 | [] | -iso_4217 | [] [] [] | -iso_639 | [] [] [] [] | -jpilot | () () | -jtag | | -jwhois | [] | -kbd | [] | -keytouch | [] | -keytouch-editor | [] | -keytouch-keyboa... | | -latrine | [] | -ld | | -leafpad | [] [] | -libc | [] [] [] | -libexif | | +idutils | | +indent | [] [] | +iso_15924 | | +iso_3166 | [] [] [] [] [] [] [] | +iso_3166_2 | | +iso_4217 | | +iso_639 | [] [] [] [] | +iso_639_3 | | +jwhois | | +kbd | | +keytouch | [] | +keytouch-editor | | +keytouch-keyboa... | [] | +klavaro | [] | +latrine | | +ld | [] | +leafpad | [] [] | +libc | [] [] | +libexif | () | libextractor | | -libgpewidget | [] | +libgnutls | | +libgpewidget | | libgpg-error | | -libgphoto2 | [] | -libgphoto2_port | [] | -libgsasl | [] | -libiconv | [] | -libidn | [] [] | -lifelines | [] | -lilypond | [] | -lingoteach | [] | +libgphoto2 | | +libgphoto2_port | | +libgsasl | | +libiconv | [] | +libidn | | +lifelines | | +liferea | [] [] | +lilypond | | +linkdr | [] | +lordsawar | | lprng | | -lynx | [] [] | -m4 | [] [] | +lynx | [] | +m4 | | mailfromd | | mailutils | | -make | [] [] [] | +make | | man-db | | -minicom | [] | -nano | [] [] [] | -opcodes | [] | -parted | [] [] | -pilot-qof | | -popt | [] [] [] | -psmisc | [] [] [] | +man-db-manpages | | +minicom | | +mkisofs | | +myserver | | +nano | [] [] | +opcodes | | +parted | | +pies | | +popt | | +psmisc | | +pspp | [] | pwdutils | | -qof | | -radius | | -recode | [] | -rpm | [] [] | -screem | [] | -scrollkeeper | [] [] [] [] | -sed | [] [] | -shared-mime-info | [] [] [] [] [] [] [] | -sharutils | [] [] | +radius | [] | +recode | [] [] | +rosegarden | | +rpm | | +rush | | +sarg | | +screem | | +scrollkeeper | [] [] [] | +sed | [] [] | +sharutils | [] [] | shishi | | skencil | | -solfege | () () | +solfege | | +solfege-manual | | soundtracker | | -sp | () | -system-tools-ba... | [] [] [] [] | -tar | [] [] [] | -texinfo | [] [] | +sp | | +sysstat | | +tar | [] | +texinfo | | tin | | -tuxpaint | () [] [] | unicode-han-tra... | | unicode-transla... | | -util-linux | [] [] | -util-linux-ng | [] [] | +util-linux-ng | [] | +vice | | +vmm | | vorbis-tools | | -wastesedge | [] | -wdiff | [] [] | -wget | [] [] | -xchat | [] [] [] [] | -xkeyboard-config | [] [] [] | -xpad | [] [] [] | +wastesedge | | +wdiff | | +wget | [] [] | +wyslij-po | | +xchat | [] [] [] [] | +xdg-user-dirs | [] [] [] [] [] [] [] [] [] | +xkeyboard-config | [] [] | +--------------------------------------------------+ - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6 + af am an ar as ast az be be@@latin bg bn_IN bs ca + 6 0 1 2 3 19 1 10 3 28 3 1 38 @end group @group - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - +--------------------------------------------------+ -Compendium | [] [] [] [] [] | -a2ps | () [] [] [] [] [] [] | -aegis | () () | -ant-phone | [] [] | -anubis | [] [] [] | -ap-utils | () | -aspell | [] [] [] | -bash | [] [] | -bfd | | -bibshelf | [] | -binutils | [] [] | -bison | [] [] [] [] [] | -bison-runtime | [] [] [] [] [] | -bluez-pin | [] [] [] [] [] [] [] [] [] | -cflow | [] | -clisp | [] | -console-tools | [] | -coreutils | [] [] [] [] | -cpio | [] [] [] | -cpplib | [] | -cryptonit | [] [] | -dialog | [] | -diffutils | [] [] [] [] [] [] | -doodle | [] [] | -e2fsprogs | [] [] | -enscript | [] [] [] [] [] | -fetchmail | [] [] [] | -findutils | [] [] [] | -findutils_stable | [] [] [] [] [] [] | -flex | [] [] [] [] [] | -fslint | [] | -gas | | -gawk | [] [] [] [] | -gcal | [] | -gcc | [] [] | -gettext-examples | [] [] [] [] [] [] [] [] | -gettext-runtime | [] [] [] [] [] [] [] [] | -gettext-tools | [] [] [] [] [] [] [] | -gip | [] [] [] [] | -gliv | [] [] [] [] [] [] | -glunarclock | [] [] [] [] [] [] | -gmult | [] [] [] [] | -gnubiff | () [] | -gnucash | () [] | -gnuedu | | -gnulib | [] [] [] | -gnunet | | -gnunet-gtk | [] | -gnutls | [] [] | -gpe-aerial | [] [] [] [] [] [] [] | -gpe-beam | [] [] [] [] [] [] [] | -gpe-calendar | [] [] [] [] | -gpe-clock | [] [] [] [] [] [] [] [] | -gpe-conf | [] [] [] [] [] [] [] | -gpe-contacts | [] [] [] [] [] | -gpe-edit | [] [] [] [] [] [] [] [] [] | -gpe-filemanager | [] [] | -gpe-go | [] [] [] [] [] [] [] [] | -gpe-login | [] [] [] [] [] [] [] [] | -gpe-ownerinfo | [] [] [] [] [] [] [] [] | -gpe-package | [] [] | -gpe-sketchbook | [] [] [] [] [] [] [] [] | -gpe-su | [] [] [] [] [] [] [] [] | -gpe-taskmanager | [] [] [] [] [] [] [] [] | -gpe-timesheet | [] [] [] [] [] [] [] [] | -gpe-today | [] [] [] [] [] [] [] [] | -gpe-todo | [] [] [] [] | -gphoto2 | [] [] [] [] [] [] | -gprof | [] [] [] | -gpsdrive | [] [] | -gramadoir | [] [] | -grep | [] [] [] [] | -gretl | [] [] [] | -gsasl | [] [] [] | -gss | [] [] [] [] | -gst-plugins-bad | [] [] [] | -gst-plugins-base | [] [] | -gst-plugins-good | [] [] | -gst-plugins-ugly | [] [] [] | -gstreamer | [] [] [] [] | -gtick | [] | -gtkam | [] [] [] [] [] | -gtkorphan | [] | -gtkspell | [] [] [] [] [] [] [] [] | -gutenprint | [] | -hello | [] [] [] [] [] [] [] [] | -herrie | [] [] [] | -hylafax | | -idutils | [] [] [] [] [] | -indent | [] [] [] [] [] [] [] | -iso_15924 | | -iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | -iso_3166_2 | | -iso_4217 | [] [] [] [] [] [] [] | -iso_639 | [] [] [] [] [] [] [] | -jpilot | | -jtag | [] | -jwhois | [] [] [] [] | -kbd | [] [] [] | -keytouch | [] | -keytouch-editor | [] | -keytouch-keyboa... | [] | -latrine | | -ld | [] | -leafpad | [] [] [] [] [] [] | -libc | [] [] [] [] | -libexif | [] [] | -libextractor | [] [] | -libgpewidget | [] [] [] [] [] [] [] [] | -libgpg-error | [] [] [] | -libgphoto2 | [] | -libgphoto2_port | [] [] [] | -libgsasl | [] [] [] [] | -libiconv | [] [] [] | -libidn | [] [] () | -lifelines | [] [] | -lilypond | | -lingoteach | [] | -lprng | [] | -lynx | [] [] [] | -m4 | [] [] [] [] [] | -mailfromd | [] | -mailutils | [] [] [] | -make | [] [] [] [] | -man-db | [] [] [] [] | -minicom | [] [] [] [] [] | -nano | [] [] [] [] | -opcodes | [] [] | -parted | [] | -pilot-qof | | -popt | [] [] [] [] | -psmisc | [] [] | -pwdutils | [] [] | -qof | [] [] | -radius | [] [] | -recode | [] [] [] [] [] [] [] | -rpm | [] [] [] [] | -screem | | -scrollkeeper | [] [] [] [] [] [] [] | -sed | [] [] [] [] [] [] [] [] [] | -shared-mime-info | [] [] [] [] [] [] | -sharutils | [] [] [] [] | -shishi | [] | -skencil | [] [] [] | -solfege | [] | -soundtracker | [] [] | -sp | | -system-tools-ba... | [] [] [] [] [] [] [] [] [] | -tar | [] [] [] [] | -texinfo | [] [] [] [] | -tin | () | -tuxpaint | [] [] [] [] [] [] | -unicode-han-tra... | | -unicode-transla... | | -util-linux | [] [] [] [] | -util-linux-ng | [] [] [] [] | -vorbis-tools | [] | -wastesedge | | -wdiff | [] [] [] [] [] [] [] | -wget | [] [] [] [] | -xchat | [] [] [] [] [] [] [] | -xkeyboard-config | [] [] [] | -xpad | [] [] [] | - +--------------------------------------------------+ - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3 + crh cs da de el en en_GB en_ZA eo es et eu fa + +-------------------------------------------------+ +a2ps | [] [] [] [] [] [] [] | +aegis | [] [] [] | +ant-phone | [] () | +anubis | [] [] | +aspell | [] [] [] [] [] | +bash | [] [] [] | +bfd | [] | +bibshelf | [] [] [] | +binutils | [] | +bison | [] [] | +bison-runtime | [] [] [] [] | +bluez-pin | [] [] [] [] [] [] | +bombono-dvd | [] | +buzztard | [] [] [] | +cflow | [] [] | +clisp | [] [] [] [] | +coreutils | [] [] [] [] | +cpio | | +cppi | | +cpplib | [] [] [] | +cryptsetup | [] | +dfarc | [] [] [] | +dialog | [] [] [] [] [] | +dico | | +diffutils | [] [] [] [] [] [] | +dink | [] [] [] | +doodle | [] | +e2fsprogs | [] [] [] | +enscript | [] [] [] | +exif | () [] [] | +fetchmail | [] [] () [] [] [] | +findutils | [] [] [] | +flex | [] [] | +freedink | [] [] [] | +gas | [] | +gawk | [] [] [] | +gcal | [] | +gcc | [] [] | +gettext-examples | [] [] [] [] | +gettext-runtime | [] [] [] [] | +gettext-tools | [] [] [] | +gip | [] [] [] [] | +gjay | [] | +gliv | [] [] [] | +glunarclock | [] [] | +gnubiff | () | +gnucash | [] () () () () | +gnuedu | [] [] | +gnulib | [] [] | +gnunet | | +gnunet-gtk | [] | +gnutls | [] [] | +gold | [] | +gpe-aerial | [] [] [] [] | +gpe-beam | [] [] [] [] | +gpe-bluetooth | [] [] | +gpe-calendar | [] | +gpe-clock | [] [] [] [] | +gpe-conf | [] [] [] | +gpe-contacts | [] [] [] | +gpe-edit | [] [] | +gpe-filemanager | [] [] [] | +gpe-go | [] [] [] [] | +gpe-login | [] [] | +gpe-ownerinfo | [] [] [] [] | +gpe-package | [] [] [] | +gpe-sketchbook | [] [] [] [] | +gpe-su | [] [] [] [] | +gpe-taskmanager | [] [] [] [] | +gpe-timesheet | [] [] [] [] | +gpe-today | [] [] [] [] | +gpe-todo | [] [] [] | +gphoto2 | [] [] () [] [] [] | +gprof | [] [] [] | +gpsdrive | [] [] [] | +gramadoir | [] [] [] | +grep | [] | +grub | [] [] | +gsasl | [] | +gss | | +gst-plugins-bad | [] [] [] [] [] | +gst-plugins-base | [] [] [] [] [] | +gst-plugins-good | [] [] [] [] [] [] | +gst-plugins-ugly | [] [] [] [] [] [] | +gstreamer | [] [] [] [] [] | +gtick | [] () [] | +gtkam | [] [] () [] [] | +gtkorphan | [] [] [] [] | +gtkspell | [] [] [] [] [] [] [] | +gutenprint | [] [] [] | +hello | [] [] [] [] | +help2man | [] | +hylafax | [] [] | +idutils | [] [] | +indent | [] [] [] [] [] [] [] | +iso_15924 | [] () [] [] | +iso_3166 | [] [] [] [] () [] [] [] () | +iso_3166_2 | () | +iso_4217 | [] [] [] () [] [] | +iso_639 | [] [] [] [] () [] [] | +iso_639_3 | [] | +jwhois | [] | +kbd | [] [] [] [] [] | +keytouch | [] [] | +keytouch-editor | [] [] | +keytouch-keyboa... | [] | +klavaro | [] [] [] [] | +latrine | [] () | +ld | [] [] | +leafpad | [] [] [] [] [] [] | +libc | [] [] [] [] | +libexif | [] [] () | +libextractor | | +libgnutls | [] | +libgpewidget | [] [] | +libgpg-error | [] [] | +libgphoto2 | [] () | +libgphoto2_port | [] () [] | +libgsasl | | +libiconv | [] [] [] [] [] | +libidn | [] [] [] | +lifelines | [] () | +liferea | [] [] [] [] [] | +lilypond | [] [] [] | +linkdr | [] [] [] | +lordsawar | [] | +lprng | | +lynx | [] [] [] [] | +m4 | [] [] [] [] | +mailfromd | | +mailutils | [] | +make | [] [] [] | +man-db | | +man-db-manpages | | +minicom | [] [] [] [] | +mkisofs | | +myserver | | +nano | [] [] [] | +opcodes | [] [] | +parted | [] [] | +pies | | +popt | [] [] [] [] [] | +psmisc | [] [] [] | +pspp | [] | +pwdutils | [] | +radius | [] | +recode | [] [] [] [] [] [] | +rosegarden | () () () | +rpm | [] [] [] | +rush | | +sarg | | +screem | | +scrollkeeper | [] [] [] [] [] | +sed | [] [] [] [] [] [] | +sharutils | [] [] [] [] | +shishi | | +skencil | [] () [] | +solfege | [] [] [] | +solfege-manual | [] [] | +soundtracker | [] [] [] | +sp | [] | +sysstat | [] [] [] | +tar | [] [] [] [] | +texinfo | [] [] [] | +tin | [] [] | +unicode-han-tra... | | +unicode-transla... | | +util-linux-ng | [] [] [] [] | +vice | () () | +vmm | [] | +vorbis-tools | [] [] | +wastesedge | [] | +wdiff | [] [] | +wget | [] [] [] | +wyslij-po | | +xchat | [] [] [] [] [] | +xdg-user-dirs | [] [] [] [] [] [] [] [] [] | +xkeyboard-config | [] [] [] [] [] [] | + +-------------------------------------------------+ + crh cs da de el en en_GB en_ZA eo es et eu fa + 5 64 105 117 18 1 8 0 28 89 18 19 0 +@end group + +@group + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + +----------------------------------------------------+ +a2ps | [] [] [] [] | +aegis | [] [] | +ant-phone | [] [] | +anubis | [] [] [] [] | +aspell | [] [] [] [] | +bash | [] [] [] [] | +bfd | [] [] [] | +bibshelf | [] [] [] [] [] | +binutils | [] [] [] | +bison | [] [] [] [] | +bison-runtime | [] [] [] [] [] [] | +bluez-pin | [] [] [] [] [] [] [] [] | +bombono-dvd | [] | +buzztard | [] | +cflow | [] [] [] | +clisp | [] | +coreutils | [] [] [] [] [] | +cpio | [] [] [] [] | +cppi | [] [] | +cpplib | [] [] [] | +cryptsetup | [] [] [] | +dfarc | [] [] [] | +dialog | [] [] [] [] [] [] [] | +dico | | +diffutils | [] [] [] [] [] [] [] [] [] | +dink | [] | +doodle | [] [] | +e2fsprogs | [] [] | +enscript | [] [] [] [] | +exif | [] [] [] [] [] [] | +fetchmail | [] [] [] [] | +findutils | [] [] [] [] [] [] | +flex | [] [] [] | +freedink | [] [] [] | +gas | [] [] | +gawk | [] [] [] [] () [] | +gcal | [] | +gcc | [] | +gettext-examples | [] [] [] [] [] [] [] | +gettext-runtime | [] [] [] [] [] [] | +gettext-tools | [] [] [] [] | +gip | [] [] [] [] [] [] | +gjay | [] | +gliv | [] () | +glunarclock | [] [] [] [] | +gnubiff | () [] () | +gnucash | () () () () () [] | +gnuedu | [] [] | +gnulib | [] [] [] [] [] [] | +gnunet | | +gnunet-gtk | [] | +gnutls | [] [] | +gold | [] [] | +gpe-aerial | [] [] [] | +gpe-beam | [] [] [] [] | +gpe-bluetooth | [] [] [] [] | +gpe-calendar | [] [] | +gpe-clock | [] [] [] [] [] | +gpe-conf | [] [] [] [] | +gpe-contacts | [] [] [] [] | +gpe-edit | [] [] [] | +gpe-filemanager | [] [] [] [] | +gpe-go | [] [] [] [] [] | +gpe-login | [] [] [] | +gpe-ownerinfo | [] [] [] [] [] | +gpe-package | [] [] [] | +gpe-sketchbook | [] [] [] [] | +gpe-su | [] [] [] [] [] [] | +gpe-taskmanager | [] [] [] [] [] | +gpe-timesheet | [] [] [] [] [] | +gpe-today | [] [] [] [] [] [] [] | +gpe-todo | [] [] [] | +gphoto2 | [] [] [] [] [] [] | +gprof | [] [] [] [] | +gpsdrive | [] [] [] | +gramadoir | [] [] [] | +grep | [] [] | +grub | [] [] [] [] | +gsasl | [] [] [] [] [] | +gss | [] [] [] [] [] | +gst-plugins-bad | [] [] [] [] [] [] | +gst-plugins-base | [] [] [] [] [] [] | +gst-plugins-good | [] [] [] [] [] [] | +gst-plugins-ugly | [] [] [] [] [] [] | +gstreamer | [] [] [] [] [] | +gtick | [] [] [] [] [] | +gtkam | [] [] [] [] [] | +gtkorphan | [] [] [] | +gtkspell | [] [] [] [] [] [] [] [] [] | +gutenprint | [] [] [] [] | +hello | [] [] [] | +help2man | [] [] | +hylafax | [] | +idutils | [] [] [] [] [] [] | +indent | [] [] [] [] [] [] [] [] | +iso_15924 | [] () [] [] | +iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | +iso_3166_2 | () [] [] [] | +iso_4217 | [] () [] [] [] [] | +iso_639 | [] () [] [] [] [] [] [] [] | +iso_639_3 | () [] [] | +jwhois | [] [] [] [] [] | +kbd | [] [] | +keytouch | [] [] [] [] [] [] | +keytouch-editor | [] [] [] [] [] | +keytouch-keyboa... | [] [] [] [] [] | +klavaro | [] [] | +latrine | [] [] [] | +ld | [] [] [] [] | +leafpad | [] [] [] [] [] [] [] () | +libc | [] [] [] [] [] | +libexif | [] | +libextractor | | +libgnutls | [] [] | +libgpewidget | [] [] [] [] | +libgpg-error | [] [] | +libgphoto2 | [] [] [] | +libgphoto2_port | [] [] [] | +libgsasl | [] [] [] [] [] | +libiconv | [] [] [] [] [] [] | +libidn | [] [] [] [] | +lifelines | () | +liferea | [] [] [] [] | +lilypond | [] [] | +linkdr | [] [] [] [] [] | +lordsawar | | +lprng | [] | +lynx | [] [] [] [] [] | +m4 | [] [] [] [] [] [] | +mailfromd | | +mailutils | [] [] | +make | [] [] [] [] [] [] [] [] [] | +man-db | [] [] | +man-db-manpages | [] | +minicom | [] [] [] [] [] | +mkisofs | [] [] [] [] | +myserver | | +nano | [] [] [] [] [] [] | +opcodes | [] [] [] [] | +parted | [] [] [] [] | +pies | | +popt | [] [] [] [] [] [] [] [] [] | +psmisc | [] [] [] | +pspp | | +pwdutils | [] [] | +radius | [] [] | +recode | [] [] [] [] [] [] [] [] | +rosegarden | () () () () () | +rpm | [] [] | +rush | | +sarg | [] | +screem | [] [] | +scrollkeeper | [] [] [] [] | +sed | [] [] [] [] [] [] [] [] | +sharutils | [] [] [] [] [] [] [] | +shishi | [] | +skencil | [] | +solfege | [] [] [] [] | +solfege-manual | [] [] | +soundtracker | [] [] | +sp | [] () | +sysstat | [] [] [] [] [] | +tar | [] [] [] [] [] [] [] | +texinfo | [] [] [] [] | +tin | [] | +unicode-han-tra... | | +unicode-transla... | [] [] | +util-linux-ng | [] [] [] [] [] [] | +vice | () () () | +vmm | [] | +vorbis-tools | [] | +wastesedge | () () | +wdiff | [] | +wget | [] [] [] [] [] [] [] [] | +wyslij-po | [] [] [] | +xchat | [] [] [] [] [] [] [] [] [] | +xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | +xkeyboard-config | [] [] [] [] [] | + +----------------------------------------------------+ + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 +@end group + +@group + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + +-----------------------------------------------+ +a2ps | [] | +aegis | | +ant-phone | | +anubis | [] [] | +aspell | [] | +bash | | +bfd | | +bibshelf | [] [] | +binutils | | +bison | [] | +bison-runtime | [] [] [] [] [] | +bluez-pin | [] [] [] [] [] | +bombono-dvd | | +buzztard | | +cflow | | +clisp | | +coreutils | [] | +cpio | | +cppi | | +cpplib | | +cryptsetup | | +dfarc | [] | +dialog | [] [] [] [] [] | +dico | | +diffutils | [] [] | +dink | | +doodle | | +e2fsprogs | | +enscript | | +exif | [] | +fetchmail | | +findutils | | +flex | | +freedink | [] | +gas | | +gawk | | +gcal | | +gcc | | +gettext-examples | [] [] [] [] | +gettext-runtime | [] | +gettext-tools | [] | +gip | [] [] | +gjay | | +gliv | | +glunarclock | [] | +gnubiff | | +gnucash | () () () () | +gnuedu | | +gnulib | | +gnunet | | +gnunet-gtk | | +gnutls | [] | +gold | | +gpe-aerial | [] | +gpe-beam | [] | +gpe-bluetooth | [] [] | +gpe-calendar | [] | +gpe-clock | [] [] [] [] [] | +gpe-conf | [] [] | +gpe-contacts | [] [] | +gpe-edit | [] | +gpe-filemanager | [] [] | +gpe-go | [] [] [] | +gpe-login | [] | +gpe-ownerinfo | [] [] | +gpe-package | [] [] | +gpe-sketchbook | [] [] | +gpe-su | [] [] [] [] [] [] | +gpe-taskmanager | [] [] [] [] [] [] | +gpe-timesheet | [] [] | +gpe-today | [] [] [] [] | +gpe-todo | [] [] | +gphoto2 | | +gprof | [] | +gpsdrive | | +gramadoir | | +grep | | +grub | | +gsasl | | +gss | | +gst-plugins-bad | [] [] [] [] | +gst-plugins-base | [] [] | +gst-plugins-good | [] [] | +gst-plugins-ugly | [] [] [] [] [] | +gstreamer | | +gtick | | +gtkam | [] | +gtkorphan | [] [] | +gtkspell | [] [] [] [] [] [] [] | +gutenprint | | +hello | [] [] [] | +help2man | | +hylafax | | +idutils | | +indent | | +iso_15924 | [] [] | +iso_3166 | [] [] () [] [] [] [] [] | +iso_3166_2 | | +iso_4217 | [] [] | +iso_639 | [] [] | +iso_639_3 | [] | +jwhois | [] | +kbd | | +keytouch | [] | +keytouch-editor | [] | +keytouch-keyboa... | [] | +klavaro | [] | +latrine | [] | +ld | | +leafpad | [] [] [] | +libc | [] | +libexif | | +libextractor | | +libgnutls | [] | +libgpewidget | [] [] | +libgpg-error | | +libgphoto2 | | +libgphoto2_port | | +libgsasl | | +libiconv | | +libidn | | +lifelines | | +liferea | | +lilypond | | +linkdr | | +lordsawar | | +lprng | | +lynx | | +m4 | | +mailfromd | | +mailutils | | +make | [] | +man-db | | +man-db-manpages | | +minicom | [] | +mkisofs | | +myserver | | +nano | [] [] | +opcodes | | +parted | | +pies | | +popt | [] [] [] | +psmisc | | +pspp | | +pwdutils | | +radius | | +recode | | +rosegarden | | +rpm | | +rush | | +sarg | | +screem | | +scrollkeeper | [] [] | +sed | | +sharutils | | +shishi | | +skencil | | +solfege | [] | +solfege-manual | | +soundtracker | | +sp | | +sysstat | [] | +tar | [] | +texinfo | [] | +tin | | +unicode-han-tra... | | +unicode-transla... | | +util-linux-ng | | +vice | | +vmm | | +vorbis-tools | | +wastesedge | | +wdiff | | +wget | [] | +wyslij-po | | +xchat | [] [] [] | +xdg-user-dirs | [] [] [] [] [] [] [] [] | +xkeyboard-config | [] [] [] | + +-----------------------------------------------+ + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 +@end group + +@group + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + +---------------------------------------------------+ +a2ps | [] [] [] [] [] [] [] [] | +aegis | [] [] [] | +ant-phone | [] [] | +anubis | [] [] [] | +aspell | [] [] [] [] [] | +bash | [] [] | +bfd | [] | +bibshelf | [] [] | +binutils | [] [] | +bison | [] [] [] | +bison-runtime | [] [] [] [] [] [] [] | +bluez-pin | [] [] [] [] [] [] [] [] | +bombono-dvd | [] () | +buzztard | [] [] | +cflow | [] | +clisp | [] [] | +coreutils | [] [] [] [] [] [] | +cpio | [] [] [] | +cppi | [] | +cpplib | [] | +cryptsetup | [] | +dfarc | [] | +dialog | [] [] [] [] | +dico | [] | +diffutils | [] [] [] [] [] [] | +dink | () | +doodle | [] [] | +e2fsprogs | [] [] | +enscript | [] [] [] [] [] | +exif | [] [] [] () [] | +fetchmail | [] [] [] [] | +findutils | [] [] [] [] [] | +flex | [] [] [] [] [] | +freedink | [] [] | +gas | | +gawk | [] [] [] [] | +gcal | | +gcc | [] | +gettext-examples | [] [] [] [] [] [] [] [] | +gettext-runtime | [] [] [] [] [] [] [] [] [] | +gettext-tools | [] [] [] [] [] [] | +gip | [] [] [] [] [] | +gjay | | +gliv | [] [] [] [] [] [] | +glunarclock | [] [] [] [] [] | +gnubiff | [] () | +gnucash | [] () () () | +gnuedu | [] | +gnulib | [] [] [] [] | +gnunet | | +gnunet-gtk | | +gnutls | [] [] | +gold | | +gpe-aerial | [] [] [] [] [] [] [] | +gpe-beam | [] [] [] [] [] [] [] | +gpe-bluetooth | [] [] | +gpe-calendar | [] [] [] [] | +gpe-clock | [] [] [] [] [] [] [] [] | +gpe-conf | [] [] [] [] [] [] [] | +gpe-contacts | [] [] [] [] [] | +gpe-edit | [] [] [] | +gpe-filemanager | [] [] [] | +gpe-go | [] [] [] [] [] [] [] [] | +gpe-login | [] [] | +gpe-ownerinfo | [] [] [] [] [] [] [] [] | +gpe-package | [] [] | +gpe-sketchbook | [] [] [] [] [] [] [] | +gpe-su | [] [] [] [] [] [] [] [] | +gpe-taskmanager | [] [] [] [] [] [] [] [] | +gpe-timesheet | [] [] [] [] [] [] [] [] | +gpe-today | [] [] [] [] [] [] [] [] | +gpe-todo | [] [] [] [] [] | +gphoto2 | [] [] [] [] [] [] [] [] | +gprof | [] [] [] | +gpsdrive | [] [] | +gramadoir | [] [] | +grep | [] [] [] [] | +grub | [] [] [] | +gsasl | [] [] [] [] | +gss | [] [] [] | +gst-plugins-bad | [] [] [] [] [] [] | +gst-plugins-base | [] [] [] [] [] | +gst-plugins-good | [] [] [] [] [] | +gst-plugins-ugly | [] [] [] [] [] [] | +gstreamer | [] [] [] [] [] | +gtick | [] [] [] | +gtkam | [] [] [] [] [] [] | +gtkorphan | [] | +gtkspell | [] [] [] [] [] [] [] [] [] [] | +gutenprint | [] [] | +hello | [] [] [] [] | +help2man | [] [] | +hylafax | [] | +idutils | [] [] [] [] [] | +indent | [] [] [] [] [] [] [] | +iso_15924 | [] [] [] [] | +iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | +iso_3166_2 | [] [] [] | +iso_4217 | [] [] [] [] [] [] [] [] | +iso_639 | [] [] [] [] [] [] [] [] [] | +iso_639_3 | [] [] | +jwhois | [] [] [] [] | +kbd | [] [] [] | +keytouch | [] [] [] | +keytouch-editor | [] [] [] | +keytouch-keyboa... | [] [] [] | +klavaro | [] [] | +latrine | [] [] | +ld | | +leafpad | [] [] [] [] [] [] [] [] [] | +libc | [] [] [] [] | +libexif | [] [] () [] | +libextractor | | +libgnutls | [] [] | +libgpewidget | [] [] [] | +libgpg-error | [] [] | +libgphoto2 | [] [] | +libgphoto2_port | [] [] [] [] [] | +libgsasl | [] [] [] [] [] | +libiconv | [] [] [] [] [] | +libidn | [] [] | +lifelines | [] [] | +liferea | [] [] [] [] [] () () [] | +lilypond | [] | +linkdr | [] [] [] | +lordsawar | | +lprng | [] | +lynx | [] [] [] | +m4 | [] [] [] [] [] | +mailfromd | [] | +mailutils | [] | +make | [] [] [] [] | +man-db | [] [] [] | +man-db-manpages | [] [] [] | +minicom | [] [] [] [] | +mkisofs | [] [] [] | +myserver | | +nano | [] [] [] [] | +opcodes | [] [] | +parted | [] [] [] [] | +pies | [] | +popt | [] [] [] [] | +psmisc | [] [] [] | +pspp | [] [] | +pwdutils | [] | +radius | [] [] [] | +recode | [] [] [] [] [] [] [] [] | +rosegarden | () () | +rpm | [] [] [] | +rush | [] [] | +sarg | | +screem | | +scrollkeeper | [] [] [] [] [] [] [] [] | +sed | [] [] [] [] [] [] [] [] [] | +sharutils | [] [] [] [] | +shishi | [] | +skencil | [] [] | +solfege | [] [] [] [] | +solfege-manual | [] [] [] | +soundtracker | [] | +sp | | +sysstat | [] [] [] [] | +tar | [] [] [] [] | +texinfo | [] [] [] [] | +tin | [] | +unicode-han-tra... | | +unicode-transla... | | +util-linux-ng | [] [] [] [] [] | +vice | [] | +vmm | [] | +vorbis-tools | [] [] | +wastesedge | [] | +wdiff | [] [] | +wget | [] [] [] [] [] [] [] | +wyslij-po | [] [] [] | +xchat | [] [] [] [] [] [] [] [] [] | +xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | +xkeyboard-config | [] [] [] | + +---------------------------------------------------+ + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 @end group @group - tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu + sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ -Compendium | [] [] [] [] | 19 -a2ps | [] [] [] | 19 -aegis | [] | 1 -ant-phone | [] [] | 6 -anubis | [] [] [] | 11 -ap-utils | () [] | 4 -aspell | [] [] [] | 16 -bash | [] | 6 -bfd | | 2 -bibshelf | [] | 7 -binutils | [] [] [] [] | 9 -bison | [] [] [] [] | 20 -bison-runtime | [] [] [] [] | 18 -bluez-pin | [] [] [] [] [] [] | 28 -cflow | [] [] | 5 -clisp | | 9 -console-tools | [] [] | 5 -coreutils | [] [] [] | 18 -cpio | [] [] [] [] | 11 -cpplib | [] [] [] [] [] | 12 -cryptonit | [] | 6 -dialog | [] [] [] | 9 -diffutils | [] [] [] [] [] | 29 -doodle | [] | 6 -e2fsprogs | [] [] | 10 -enscript | [] [] [] | 16 -fetchmail | [] [] | 12 -findutils | [] [] [] | 11 -findutils_stable | [] [] [] [] | 18 -flex | [] [] | 15 -fslint | [] | 2 -gas | [] | 3 -gawk | [] [] [] | 16 -gcal | [] | 5 -gcc | [] [] [] | 7 -gettext-examples | [] [] [] [] [] [] | 29 -gettext-runtime | [] [] [] [] [] [] | 28 -gettext-tools | [] [] [] [] [] | 20 -gip | [] [] | 13 -gliv | [] [] | 11 -glunarclock | [] [] [] | 15 -gmult | [] [] [] [] | 16 -gnubiff | [] | 2 -gnucash | () [] | 5 -gnuedu | [] | 2 -gnulib | [] | 10 -gnunet | | 0 -gnunet-gtk | [] [] | 3 -gnutls | | 4 -gpe-aerial | [] [] | 14 -gpe-beam | [] [] | 14 -gpe-calendar | [] [] | 7 -gpe-clock | [] [] [] [] | 21 -gpe-conf | [] [] [] | 16 -gpe-contacts | [] [] | 10 -gpe-edit | [] [] [] [] [] | 22 -gpe-filemanager | [] [] | 7 -gpe-go | [] [] [] [] | 19 -gpe-login | [] [] [] [] [] | 21 -gpe-ownerinfo | [] [] [] [] | 21 -gpe-package | [] | 6 -gpe-sketchbook | [] [] | 16 -gpe-su | [] [] [] [] | 21 -gpe-taskmanager | [] [] [] [] | 21 -gpe-timesheet | [] [] [] [] | 18 -gpe-today | [] [] [] [] [] | 21 -gpe-todo | [] [] | 8 -gphoto2 | [] [] [] [] | 21 -gprof | [] [] | 13 -gpsdrive | [] | 5 -gramadoir | [] | 7 -grep | [] | 12 -gretl | | 6 -gsasl | [] [] [] | 9 -gss | [] | 7 -gst-plugins-bad | [] [] [] | 13 -gst-plugins-base | [] [] | 11 -gst-plugins-good | [] [] [] [] [] | 16 -gst-plugins-ugly | [] [] [] | 13 -gstreamer | [] [] [] | 18 -gtick | [] [] | 7 -gtkam | [] | 16 -gtkorphan | [] | 7 -gtkspell | [] [] [] [] [] [] | 27 -gutenprint | | 4 -hello | [] [] [] [] [] | 38 -herrie | [] [] | 8 -hylafax | | 0 -idutils | [] [] | 15 -indent | [] [] [] [] [] | 28 -iso_15924 | [] [] | 4 -iso_3166 | [] [] [] [] [] [] [] [] [] | 54 -iso_3166_2 | [] [] | 4 -iso_4217 | [] [] [] [] [] | 24 -iso_639 | [] [] [] [] [] | 26 -jpilot | [] [] [] [] | 7 -jtag | [] | 3 -jwhois | [] [] [] | 13 -kbd | [] [] [] | 13 -keytouch | [] | 8 -keytouch-editor | [] | 5 -keytouch-keyboa... | [] | 5 -latrine | [] [] | 5 -ld | [] [] [] [] | 10 -leafpad | [] [] [] [] [] | 24 -libc | [] [] [] | 19 -libexif | [] | 5 -libextractor | [] | 5 -libgpewidget | [] [] [] | 20 -libgpg-error | [] | 6 -libgphoto2 | [] [] | 9 -libgphoto2_port | [] [] [] | 11 -libgsasl | [] | 8 -libiconv | [] [] | 11 -libidn | [] [] | 11 -lifelines | | 4 -lilypond | [] | 6 -lingoteach | [] | 6 -lprng | [] | 2 -lynx | [] [] [] | 15 -m4 | [] [] [] | 18 -mailfromd | [] [] | 3 -mailutils | [] [] | 8 -make | [] [] [] | 20 -man-db | [] | 9 -minicom | [] | 14 -nano | [] [] [] | 20 -opcodes | [] [] | 10 -parted | [] [] [] | 11 -pilot-qof | [] | 1 -popt | [] [] [] [] | 18 -psmisc | [] [] | 10 -pwdutils | [] | 3 -qof | [] | 4 -radius | [] [] | 7 -recode | [] [] [] | 25 -rpm | [] [] [] [] | 13 -screem | [] | 2 -scrollkeeper | [] [] [] [] | 26 -sed | [] [] [] [] | 23 -shared-mime-info | [] [] [] | 29 -sharutils | [] [] [] | 23 -shishi | [] | 3 -skencil | [] | 7 -solfege | [] | 3 -soundtracker | [] [] | 9 -sp | [] | 3 -system-tools-ba... | [] [] [] [] [] [] [] | 38 -tar | [] [] [] | 17 -texinfo | [] [] [] | 15 -tin | | 1 -tuxpaint | [] [] [] | 19 +a2ps | [] [] [] [] [] | 27 +aegis | [] | 9 +ant-phone | [] [] [] [] | 9 +anubis | [] [] [] [] | 15 +aspell | [] [] [] | 20 +bash | [] [] [] | 12 +bfd | [] | 6 +bibshelf | [] [] [] | 16 +binutils | [] [] | 8 +bison | [] [] | 12 +bison-runtime | [] [] [] [] [] [] | 29 +bluez-pin | [] [] [] [] [] [] [] [] | 37 +bombono-dvd | [] | 4 +buzztard | [] | 7 +cflow | [] [] [] | 9 +clisp | | 10 +coreutils | [] [] [] [] | 22 +cpio | [] [] [] [] [] [] | 13 +cppi | [] [] | 5 +cpplib | [] [] [] [] [] [] | 14 +cryptsetup | [] [] | 7 +dfarc | [] | 9 +dialog | [] [] [] [] [] [] [] | 30 +dico | [] | 2 +diffutils | [] [] [] [] [] [] | 30 +dink | | 4 +doodle | [] [] | 7 +e2fsprogs | [] [] [] | 11 +enscript | [] [] [] [] | 17 +exif | [] [] [] | 16 +fetchmail | [] [] [] | 17 +findutils | [] [] [] [] [] | 20 +flex | [] [] [] [] | 15 +freedink | [] | 10 +gas | [] | 4 +gawk | [] [] [] [] | 18 +gcal | [] [] | 5 +gcc | [] [] [] | 7 +gettext-examples | [] [] [] [] [] [] [] | 34 +gettext-runtime | [] [] [] [] [] [] [] | 29 +gettext-tools | [] [] [] [] [] [] | 22 +gip | [] [] [] [] | 22 +gjay | [] | 3 +gliv | [] [] [] | 14 +glunarclock | [] [] [] [] [] | 19 +gnubiff | [] [] | 4 +gnucash | () [] () [] () | 10 +gnuedu | [] [] | 7 +gnulib | [] [] [] [] | 16 +gnunet | [] | 1 +gnunet-gtk | [] [] [] | 5 +gnutls | [] [] [] | 10 +gold | [] | 4 +gpe-aerial | [] [] [] | 18 +gpe-beam | [] [] [] | 19 +gpe-bluetooth | [] [] [] | 13 +gpe-calendar | [] [] [] [] | 12 +gpe-clock | [] [] [] [] [] | 28 +gpe-conf | [] [] [] [] | 20 +gpe-contacts | [] [] [] | 17 +gpe-edit | [] [] [] | 12 +gpe-filemanager | [] [] [] [] | 16 +gpe-go | [] [] [] [] [] | 25 +gpe-login | [] [] [] | 11 +gpe-ownerinfo | [] [] [] [] [] | 25 +gpe-package | [] [] [] | 13 +gpe-sketchbook | [] [] [] | 20 +gpe-su | [] [] [] [] [] | 30 +gpe-taskmanager | [] [] [] [] [] | 29 +gpe-timesheet | [] [] [] [] [] | 25 +gpe-today | [] [] [] [] [] [] | 30 +gpe-todo | [] [] [] [] | 17 +gphoto2 | [] [] [] [] [] | 24 +gprof | [] [] [] | 15 +gpsdrive | [] [] [] | 11 +gramadoir | [] [] [] | 11 +grep | [] [] [] | 10 +grub | [] [] [] | 14 +gsasl | [] [] [] [] | 14 +gss | [] [] [] | 11 +gst-plugins-bad | [] [] [] [] | 26 +gst-plugins-base | [] [] [] [] [] | 24 +gst-plugins-good | [] [] [] [] | 24 +gst-plugins-ugly | [] [] [] [] [] | 29 +gstreamer | [] [] [] [] | 22 +gtick | [] [] [] | 13 +gtkam | [] [] [] | 20 +gtkorphan | [] [] [] | 14 +gtkspell | [] [] [] [] [] [] [] [] [] | 45 +gutenprint | [] | 10 +hello | [] [] [] [] [] [] | 21 +help2man | [] [] | 7 +hylafax | [] | 5 +idutils | [] [] [] [] | 17 +indent | [] [] [] [] [] [] | 30 +iso_15924 | () [] () [] [] | 16 +iso_3166 | [] [] () [] [] () [] [] [] () | 53 +iso_3166_2 | () [] () [] | 9 +iso_4217 | [] () [] [] () [] [] | 26 +iso_639 | [] [] [] () [] () [] [] [] [] | 38 +iso_639_3 | [] () | 8 +jwhois | [] [] [] [] [] | 16 +kbd | [] [] [] [] [] | 15 +keytouch | [] [] [] | 16 +keytouch-editor | [] [] [] | 14 +keytouch-keyboa... | [] [] [] | 14 +klavaro | [] | 11 +latrine | [] [] [] | 10 +ld | [] [] [] [] | 11 +leafpad | [] [] [] [] [] [] | 33 +libc | [] [] [] [] [] | 21 +libexif | [] () | 7 +libextractor | [] | 1 +libgnutls | [] [] [] | 9 +libgpewidget | [] [] [] | 14 +libgpg-error | [] [] [] | 9 +libgphoto2 | [] [] | 8 +libgphoto2_port | [] [] [] [] | 14 +libgsasl | [] [] [] | 13 +libiconv | [] [] [] [] | 21 +libidn | () [] [] | 11 +lifelines | [] | 4 +liferea | [] [] [] | 21 +lilypond | [] | 7 +linkdr | [] [] [] [] [] | 17 +lordsawar | | 1 +lprng | [] | 3 +lynx | [] [] [] [] | 17 +m4 | [] [] [] [] | 19 +mailfromd | [] [] | 3 +mailutils | [] | 5 +make | [] [] [] [] | 21 +man-db | [] [] [] | 8 +man-db-manpages | | 4 +minicom | [] [] | 16 +mkisofs | [] [] | 9 +myserver | | 0 +nano | [] [] [] [] | 21 +opcodes | [] [] [] | 11 +parted | [] [] [] [] [] | 15 +pies | [] [] | 3 +popt | [] [] [] [] [] [] | 27 +psmisc | [] [] | 11 +pspp | | 4 +pwdutils | [] [] | 6 +radius | [] [] | 9 +recode | [] [] [] [] | 28 +rosegarden | () | 0 +rpm | [] [] [] | 11 +rush | [] [] | 4 +sarg | | 1 +screem | [] | 3 +scrollkeeper | [] [] [] [] [] | 27 +sed | [] [] [] [] [] | 30 +sharutils | [] [] [] [] [] | 22 +shishi | [] | 3 +skencil | [] [] | 7 +solfege | [] [] [] [] | 16 +solfege-manual | [] | 8 +soundtracker | [] [] [] | 9 +sp | [] | 3 +sysstat | [] [] | 15 +tar | [] [] [] [] [] [] | 23 +texinfo | [] [] [] [] [] | 17 +tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 -util-linux | [] [] [] | 20 -util-linux-ng | [] [] [] | 20 -vorbis-tools | [] [] | 4 -wastesedge | | 1 -wdiff | [] [] | 23 -wget | [] [] [] | 20 -xchat | [] [] [] [] | 29 -xkeyboard-config | [] [] [] | 14 -xpad | [] [] [] | 15 +util-linux-ng | [] [] [] [] | 20 +vice | () () | 1 +vmm | [] | 4 +vorbis-tools | [] | 6 +wastesedge | | 2 +wdiff | [] [] | 7 +wget | [] [] [] [] [] | 26 +wyslij-po | [] [] | 8 +xchat | [] [] [] [] [] [] | 36 +xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 +xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ - 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu - 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036 + 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW + 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 @end group @end example diff -Nru gettext-0.17/gettext-runtime/doc/nls.texi gettext-0.18.1.1/gettext-runtime/doc/nls.texi --- gettext-0.17/gettext-runtime/doc/nls.texi 2007-11-02 00:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/doc/nls.texi 2010-06-06 12:49:57.000000000 +0000 @@ -1,7 +1,7 @@ @node Translation Intro @chapter Notes on the Free Translation Project -@set STATUS November 2007 +@set STATUS June 2010 Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all @@ -19,13 +19,7 @@ translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. -When reporting bugs in the @file{intl/} directory or bugs which may -be related to internationalization, you should tell about the version -of @code{gettext} which is used. The information can be found in -the @file{intl/VERSION} file, in internationalized packages. - @menu -* Configuration advice:: * INSTALL Matters:: * Using This Package:: * Translating Teams:: @@ -33,33 +27,6 @@ * Using gettext in own code:: @end menu -@node Configuration advice -@section Quick configuration advice - -If you want to exploit the full power of internationalization, you -should configure it using - -@example -./configure --with-included-gettext -@end example - -@noindent -to force usage of internationalizing routines provided within this -package, despite the existence of internationalizing capabilities in the -operating system where this package is being installed. So far, only -the @code{gettext} implementation in the GNU C library version 2 -provides as many features (such as locale alias, message inheritance, -automatic charset conversion or plural form handling) -as the implementation here. It is also not possible to offer this -additional functionality on top of a @code{catgets} implementation. -Future versions of GNU @code{gettext} will very likely convey even more -functionality. So it might be a good idea to change to GNU -@code{gettext} as soon as possible. - -So you need @emph{not} provide this option if you are using GNU libc 2 or -you have installed a recent copy of the GNU gettext package with the -included @file{libintl}. - @node INSTALL Matters @section INSTALL Matters @@ -71,42 +38,23 @@ By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already -provides the GNU @code{gettext} functions. If not, the included GNU -@code{gettext} library will be used. This library is wholly -contained within this package, usually in the @file{intl/} subdirectory, -so prior installation of the GNU @code{gettext} package is @emph{not} -required. Installers may use special options at configuration time for -changing the default behaviour. The commands: +provides the GNU @code{gettext} functions. Installers may use special +options at configuration time for changing the default behaviour. The +command: @example -./configure --with-included-gettext ./configure --disable-nls @end example @noindent -will, respectively, bypass any pre-existing @code{gettext} to use the -internationalizing routines provided within this package, or else, -@emph{totally} disable translation of messages. +will @emph{totally} disable translation of messages. When you already have GNU @code{gettext} installed on your system and run configure without an option for your new package, @code{configure} -will probably detect the previously built and installed @file{libintl.a} -file and will decide to use this. This might not be desirable. -You should use the more recent version of the GNU @code{gettext} -library. I.e.@: if the file @file{intl/VERSION} shows that the library -which comes with this package is more recent, you should use - -@example -./configure --with-included-gettext -@end example - -@noindent -to prevent auto-detection. - -The configuration process will not test for the @code{catgets} function -and therefore it will not be used. The reason is that even an -emulation of @code{gettext} on top of @code{catgets} could not provide -all the extensions of the GNU @code{gettext} library. +will probably detect the previously built and installed @file{libintl} +library and will decide to use it. If not, you may have to to use the +@samp{--with-libintl-prefix} option to tell @code{configure} where to +look for it. Internationalized packages usually have many @file{po/@var{ll}.po} files, where @var{ll} gives an @w{ISO 639} two-letter code diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/areadlink.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/areadlink.c --- gettext-0.17/gettext-runtime/gnulib-lib/areadlink.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/areadlink.c 2010-02-16 21:31:27.000000000 +0000 @@ -1,7 +1,7 @@ /* areadlink.c -- readlink wrapper to return the link name in malloc'd storage Unlike xreadlink and xreadlink_with_size, don't ever call exit. - Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,20 +24,23 @@ /* Specification. */ #include "areadlink.h" -#include #include #include -#include +#include #include +#include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif +/* The initial buffer size for the link value. A power of 2 + detects arithmetic overflow earlier, but is not required. */ +enum { + INITIAL_BUF_SIZE = 1024 +}; + /* Call readlink to get the symbolic link value of FILENAME. Return a pointer to that NUL-terminated string in malloc'd storage. If readlink fails, return NULL and set errno. @@ -47,17 +50,13 @@ char * areadlink (char const *filename) { - /* The initial buffer size for the link value. A power of 2 - detects arithmetic overflow earlier, but is not required. */ -#define INITIAL_BUF_SIZE 1024 - /* Allocate the initial buffer on the stack. This way, in the common case of a symlink of small size, we get away with a single small malloc() instead of a big malloc() followed by a shrinking realloc(). */ char initial_buf[INITIAL_BUF_SIZE]; char *buffer = initial_buf; - size_t buf_size = sizeof (initial_buf); + size_t buf_size = sizeof initial_buf; while (1) { @@ -65,56 +64,56 @@ ssize_t link_length = readlink (filename, buffer, buf_size); /* On AIX 5L v5.3 and HP-UX 11i v2 04/09, readlink returns -1 - with errno == ERANGE if the buffer is too small. */ + with errno == ERANGE if the buffer is too small. */ if (link_length < 0 && errno != ERANGE) - { - if (buffer != initial_buf) - { - int saved_errno = errno; - free (buffer); - errno = saved_errno; - } - return NULL; - } + { + if (buffer != initial_buf) + { + int saved_errno = errno; + free (buffer); + errno = saved_errno; + } + return NULL; + } if ((size_t) link_length < buf_size) - { - buffer[link_length++] = '\0'; + { + buffer[link_length++] = '\0'; - /* Return it in a chunk of memory as small as possible. */ - if (buffer == initial_buf) - { - buffer = (char *) malloc (link_length); - if (buffer == NULL) - /* errno is ENOMEM. */ - return NULL; - memcpy (buffer, initial_buf, link_length); - } - else - { - /* Shrink buffer before returning it. */ - if ((size_t) link_length < buf_size) - { - char *smaller_buffer = (char *) realloc (buffer, link_length); - - if (smaller_buffer != NULL) - buffer = smaller_buffer; - } - } - return buffer; - } + /* Return it in a chunk of memory as small as possible. */ + if (buffer == initial_buf) + { + buffer = (char *) malloc (link_length); + if (buffer == NULL) + /* errno is ENOMEM. */ + return NULL; + memcpy (buffer, initial_buf, link_length); + } + else + { + /* Shrink buffer before returning it. */ + if ((size_t) link_length < buf_size) + { + char *smaller_buffer = (char *) realloc (buffer, link_length); + + if (smaller_buffer != NULL) + buffer = smaller_buffer; + } + } + return buffer; + } if (buffer != initial_buf) - free (buffer); + free (buffer); buf_size *= 2; if (SSIZE_MAX < buf_size || (SIZE_MAX / 2 < SSIZE_MAX && buf_size == 0)) - { - errno = ENOMEM; - return NULL; - } + { + errno = ENOMEM; + return NULL; + } buffer = (char *) malloc (buf_size); if (buffer == NULL) - /* errno is ENOMEM. */ - return NULL; + /* errno is ENOMEM. */ + return NULL; } } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/areadlink.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/areadlink.h --- gettext-0.17/gettext-runtime/gnulib-lib/areadlink.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/areadlink.h 2010-02-16 21:31:27.000000000 +0000 @@ -1,6 +1,7 @@ /* Read symbolic links without size limitation. - Copyright (C) 2001, 2003, 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2004, 2007, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,3 +22,12 @@ extern char *areadlink (char const *filename); extern char *areadlink_with_size (char const *filename, size_t size_hint); + +#if GNULIB_AREADLINKAT +extern char *areadlinkat (int fd, char const *filename); +#endif + +#if GNULIB_AREADLINKAT_WITH_SIZE +extern char *areadlinkat_with_size (int fd, char const *filename, + size_t size_hint); +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/basename.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/basename.c --- gettext-0.17/gettext-runtime/gnulib-lib/basename.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/basename.c 2010-06-06 12:49:58.000000000 +0000 @@ -66,9 +66,9 @@ for (p = name; *p; p++) { if (ISSLASH (*p)) - base = p + 1; + base = p + 1; else - all_slashes = 0; + all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/canonicalize.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/canonicalize.h --- gettext-0.17/gettext-runtime/gnulib-lib/canonicalize.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/canonicalize.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* Return the canonical absolute name of a given file. - Copyright (C) 1996-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef CANONICALIZE_H_ -# define CANONICALIZE_H_ - -# if GNULIB_CANONICALIZE -enum canonicalize_mode_t - { - /* All components must exist. */ - CAN_EXISTING = 0, - - /* All components excluding last one must exist. */ - CAN_ALL_BUT_LAST = 1, - - /* No requirements on components existence. */ - CAN_MISSING = 2 - }; -typedef enum canonicalize_mode_t canonicalize_mode_t; - -/* Return a malloc'd string containing the canonical absolute name of - the named file. This acts like canonicalize_file_name, except that - whether components must exist depends on the canonicalize_mode_t - argument. */ -char *canonicalize_filename_mode (const char *, canonicalize_mode_t); -# endif - -# if HAVE_DECL_CANONICALIZE_FILE_NAME -# include -# else -/* Return a malloc'd string containing the canonical absolute name of - the named file. If any file name component does not exist or is a - symlink to a nonexistent file, return NULL. A canonical name does - not contain any `.', `..' components nor any repeated file name - separators ('/') or symlinks. */ -char *canonicalize_file_name (const char *); -# endif - -#endif /* !CANONICALIZE_H_ */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/canonicalize-lgpl.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/canonicalize-lgpl.c --- gettext-0.17/gettext-runtime/gnulib-lib/canonicalize-lgpl.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/canonicalize-lgpl.c 2010-05-09 01:36:15.000000000 +0000 @@ -1,5 +1,5 @@ /* Return the canonical absolute name of a given file. - Copyright (C) 1996-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 1996-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -15,55 +15,39 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include - -/* Avoid a clash of our rpl_realpath() function with the prototype in - on Solaris 2.5.1. */ -#undef realpath +#ifndef _LIBC +# include +#endif -#if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC +#if !HAVE_CANONICALIZE_FILE_NAME || !FUNC_REALPATH_WORKS || defined _LIBC -#include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the name == NULL test below. */ +#define _GL_ARG_NONNULL(params) /* Specification. */ -#include "canonicalize.h" - -#include #include -#include - -#if HAVE_UNISTD_H || defined _LIBC -# include -#endif +#include +#include +#include #include - #if HAVE_SYS_PARAM_H || defined _LIBC # include #endif -#ifndef MAXSYMLINKS -# define MAXSYMLINKS 20 -#endif - #include - #include -#ifndef _LIBC -# define __set_errno(e) errno = (e) -# ifndef ENAMETOOLONG -# define ENAMETOOLONG EINVAL -# endif -#endif +#include #ifdef _LIBC # include #else # define SHLIB_COMPAT(lib, introduced, obsoleted) 0 -# define versioned_symbol(lib, local, symbol, version) +# define versioned_symbol(lib, local, symbol, version) extern int dummy # define compat_symbol(lib, local, symbol, version) # define weak_alias(local, symbol) # define __canonicalize_file_name canonicalize_file_name -# define __realpath rpl_realpath +# define __realpath realpath # include "pathmax.h" # include "malloca.h" # if HAVE_GETCWD @@ -77,12 +61,21 @@ # define __getcwd(buf, max) getwd (buf) # endif # define __readlink readlink - /* On systems without symbolic links, call stat() instead of lstat(). */ -# if !defined S_ISNLK && !HAVE_READLINK -# define lstat stat +# define __set_errno(e) errno = (e) +# ifndef MAXSYMLINKS +# ifdef SYMLOOP_MAX +# define MAXSYMLINKS SYMLOOP_MAX +# else +# define MAXSYMLINKS 20 +# endif # endif #endif +#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT +# define DOUBLE_SLASH_IS_DISTINCT_ROOT 0 +#endif + +#if !FUNC_REALPATH_WORKS || defined _LIBC /* Return the canonical absolute name of file NAME. A canonical name does not contain any `.', `..' components nor any repeated path separators ('/') or symlinks. All path components must exist. If @@ -100,16 +93,14 @@ char *rpath, *dest, *extra_buf = NULL; const char *start, *end, *rpath_limit; long int path_max; -#if HAVE_READLINK int num_links = 0; -#endif if (name == NULL) { /* As per Single Unix Specification V2 we must return an error if - either parameter is a null pointer. We extend this to allow - the RESOLVED parameter to be NULL in case the we are expected to - allocate the room for the return value. */ + either parameter is a null pointer. We extend this to allow + the RESOLVED parameter to be NULL in case the we are expected to + allocate the room for the return value. */ __set_errno (EINVAL); return NULL; } @@ -117,7 +108,7 @@ if (name[0] == '\0') { /* As per Single Unix Specification V2 we must return an error if - the name argument points to an empty string. */ + the name argument points to an empty string. */ __set_errno (ENOENT); return NULL; } @@ -134,12 +125,12 @@ { rpath = malloc (path_max); if (rpath == NULL) - { - /* It's easier to set errno to ENOMEM than to rely on the - 'malloc-posix' gnulib module. */ - errno = ENOMEM; - return NULL; - } + { + /* It's easier to set errno to ENOMEM than to rely on the + 'malloc-posix' gnulib module. */ + errno = ENOMEM; + return NULL; + } } else rpath = resolved; @@ -148,16 +139,18 @@ if (name[0] != '/') { if (!__getcwd (rpath, path_max)) - { - rpath[0] = '\0'; - goto error; - } + { + rpath[0] = '\0'; + goto error; + } dest = strchr (rpath, '\0'); } else { rpath[0] = '/'; dest = rpath + 1; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/') + *dest++ = '/'; } for (start = end = name; *start; start = end) @@ -167,171 +160,187 @@ #else struct stat st; #endif + int n; /* Skip sequence of multiple path-separators. */ while (*start == '/') - ++start; + ++start; /* Find end of path component. */ for (end = start; *end && *end != '/'; ++end) - /* Nothing. */; + /* Nothing. */; if (end - start == 0) - break; + break; else if (end - start == 1 && start[0] == '.') - /* nothing */; + /* nothing */; else if (end - start == 2 && start[0] == '.' && start[1] == '.') - { - /* Back up to previous component, ignore if at root already. */ - if (dest > rpath + 1) - while ((--dest)[-1] != '/'); - } + { + /* Back up to previous component, ignore if at root already. */ + if (dest > rpath + 1) + while ((--dest)[-1] != '/'); + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 + && *dest == '/') + dest++; + } else - { - size_t new_size; + { + size_t new_size; - if (dest[-1] != '/') - *dest++ = '/'; + if (dest[-1] != '/') + *dest++ = '/'; - if (dest + (end - start) >= rpath_limit) - { - ptrdiff_t dest_offset = dest - rpath; - char *new_rpath; - - if (resolved) - { - __set_errno (ENAMETOOLONG); - if (dest > rpath + 1) - dest--; - *dest = '\0'; - goto error; - } - new_size = rpath_limit - rpath; - if (end - start + 1 > path_max) - new_size += end - start + 1; - else - new_size += path_max; - new_rpath = (char *) realloc (rpath, new_size); - if (new_rpath == NULL) - { - /* It's easier to set errno to ENOMEM than to rely on the - 'realloc-posix' gnulib module. */ - errno = ENOMEM; - goto error; - } - rpath = new_rpath; - rpath_limit = rpath + new_size; + if (dest + (end - start) >= rpath_limit) + { + ptrdiff_t dest_offset = dest - rpath; + char *new_rpath; + + if (resolved) + { + __set_errno (ENAMETOOLONG); + if (dest > rpath + 1) + dest--; + *dest = '\0'; + goto error; + } + new_size = rpath_limit - rpath; + if (end - start + 1 > path_max) + new_size += end - start + 1; + else + new_size += path_max; + new_rpath = (char *) realloc (rpath, new_size); + if (new_rpath == NULL) + { + /* It's easier to set errno to ENOMEM than to rely on the + 'realloc-posix' gnulib module. */ + errno = ENOMEM; + goto error; + } + rpath = new_rpath; + rpath_limit = rpath + new_size; - dest = rpath + dest_offset; - } + dest = rpath + dest_offset; + } #ifdef _LIBC - dest = __mempcpy (dest, start, end - start); + dest = __mempcpy (dest, start, end - start); #else - memcpy (dest, start, end - start); - dest += end - start; + memcpy (dest, start, end - start); + dest += end - start; #endif - *dest = '\0'; + *dest = '\0'; #ifdef _LIBC - if (__lxstat64 (_STAT_VER, rpath, &st) < 0) + if (__lxstat64 (_STAT_VER, rpath, &st) < 0) #else - if (lstat (rpath, &st) < 0) + if (lstat (rpath, &st) < 0) #endif - goto error; + goto error; -#if HAVE_READLINK - if (S_ISLNK (st.st_mode)) - { - char *buf; - size_t len; - int n; - - if (++num_links > MAXSYMLINKS) - { - __set_errno (ELOOP); - goto error; - } - - buf = malloca (path_max); - if (!buf) - { - errno = ENOMEM; - goto error; - } - - n = __readlink (rpath, buf, path_max); - if (n < 0) - { - int saved_errno = errno; - freea (buf); - errno = saved_errno; - goto error; - } - buf[n] = '\0'; - - if (!extra_buf) - { - extra_buf = malloca (path_max); - if (!extra_buf) - { - freea (buf); - errno = ENOMEM; - goto error; - } - } - - len = strlen (end); - if ((long int) (n + len) >= path_max) - { - freea (buf); - __set_errno (ENAMETOOLONG); - goto error; - } - - /* Careful here, end may be a pointer into extra_buf... */ - memmove (&extra_buf[n], end, len + 1); - name = end = memcpy (extra_buf, buf, n); - - if (buf[0] == '/') - dest = rpath + 1; /* It's an absolute symlink */ - else - /* Back up to previous component, ignore if at root already: */ - if (dest > rpath + 1) - while ((--dest)[-1] != '/'); - } -#endif - } + if (S_ISLNK (st.st_mode)) + { + char *buf; + size_t len; + + if (++num_links > MAXSYMLINKS) + { + __set_errno (ELOOP); + goto error; + } + + buf = malloca (path_max); + if (!buf) + { + errno = ENOMEM; + goto error; + } + + n = __readlink (rpath, buf, path_max - 1); + if (n < 0) + { + int saved_errno = errno; + freea (buf); + errno = saved_errno; + goto error; + } + buf[n] = '\0'; + + if (!extra_buf) + { + extra_buf = malloca (path_max); + if (!extra_buf) + { + freea (buf); + errno = ENOMEM; + goto error; + } + } + + len = strlen (end); + if ((long int) (n + len) >= path_max) + { + freea (buf); + __set_errno (ENAMETOOLONG); + goto error; + } + + /* Careful here, end may be a pointer into extra_buf... */ + memmove (&extra_buf[n], end, len + 1); + name = end = memcpy (extra_buf, buf, n); + + if (buf[0] == '/') + { + dest = rpath + 1; /* It's an absolute symlink */ + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/') + *dest++ = '/'; + } + else + { + /* Back up to previous component, ignore if at root + already: */ + if (dest > rpath + 1) + while ((--dest)[-1] != '/'); + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 + && *dest == '/') + dest++; + } + } + else if (!S_ISDIR (st.st_mode) && *end != '\0') + { + __set_errno (ENOTDIR); + goto error; + } + } } if (dest > rpath + 1 && dest[-1] == '/') --dest; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') + dest++; *dest = '\0'; if (extra_buf) freea (extra_buf); - return resolved ? memcpy (resolved, rpath, dest - rpath + 1) : rpath; + return rpath; error: { int saved_errno = errno; if (extra_buf) freea (extra_buf); - if (resolved) - strcpy (resolved, rpath); - else + if (resolved == NULL) free (rpath); errno = saved_errno; } return NULL; } -#ifdef _LIBC versioned_symbol (libc, __realpath, realpath, GLIBC_2_3); -#endif +#endif /* !FUNC_REALPATH_WORKS || defined _LIBC */ #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3) char * +attribute_compat_text_section __old_realpath (const char *name, char *resolved) { if (resolved == NULL) diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-ctype.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-ctype.c --- gettext-0.17/gettext-runtime/gnulib-lib/c-ctype.c 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-ctype.c 2010-02-16 21:31:27.000000000 +0000 @@ -1,10 +1,10 @@ /* Character handling in C locale. - Copyright 2000-2003, 2006 Free Software Foundation, Inc. + Copyright 2000-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-ctype.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-ctype.h --- gettext-0.17/gettext-runtime/gnulib-lib/c-ctype.h 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-ctype.h 2010-02-16 21:31:27.000000000 +0000 @@ -5,11 +5,11 @@ functions' behaviour depends on the current locale set via setlocale. - Copyright (C) 2000-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -103,6 +103,21 @@ /* Function declarations. */ +/* Unlike the functions in , which require an argument in the range + of the 'unsigned char' type, the functions here operate on values that are + in the 'unsigned char' range or in the 'char' range. In other words, + when you have a 'char' value, you need to cast it before using it as + argument to a function: + + const char *s = ...; + if (isalpha ((unsigned char) *s)) ... + + but you don't need to cast it for the functions defined in this file: + + const char *s = ...; + if (c_isalpha (*s)) ... + */ + extern bool c_isascii (int c); /* not locale dependent */ extern bool c_isalnum (int c); diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/config.charset gettext-0.18.1.1/gettext-runtime/gnulib-lib/config.charset --- gettext-0.17/gettext-runtime/gnulib-lib/config.charset 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/config.charset 2010-05-09 01:36:15.000000000 +0000 @@ -1,11 +1,11 @@ #! /bin/sh # Output a system dependent table of character encoding aliases. # -# Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, @@ -30,21 +30,21 @@ # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems -# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin -# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-3 Y glibc solaris -# ISO-8859-4 Y osf solaris freebsd netbsd darwin -# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-6 Y glibc aix hpux solaris -# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin -# ISO-8859-8 Y glibc aix hpux osf solaris -# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin -# ISO-8859-13 glibc netbsd darwin -# ISO-8859-14 glibc -# ISO-8859-15 glibc aix osf solaris freebsd darwin -# KOI8-R Y glibc solaris freebsd netbsd darwin -# KOI8-U Y glibc freebsd netbsd darwin +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-3 Y glibc solaris cygwin +# ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-6 Y glibc aix hpux solaris cygwin +# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin +# ISO-8859-8 Y glibc aix hpux osf solaris cygwin +# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin +# ISO-8859-13 glibc netbsd openbsd darwin cygwin +# ISO-8859-14 glibc cygwin +# ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin +# KOI8-R Y glibc solaris freebsd netbsd openbsd darwin +# KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos @@ -57,20 +57,21 @@ # CP862 dos # CP864 dos # CP865 dos -# CP866 freebsd netbsd darwin dos +# CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix -# CP932 aix woe32 dos +# CP932 aix cygwin woe32 dos # CP943 aix -# CP949 osf woe32 dos +# CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix +# CP1131 darwin # CP1250 woe32 -# CP1251 glibc solaris netbsd darwin woe32 +# CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 @@ -79,18 +80,20 @@ # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin +# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd -# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin -# BIG5-HKSCS glibc solaris -# GBK glibc aix osf solaris woe32 dos -# GB18030 glibc solaris netbsd +# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin +# BIG5-HKSCS glibc solaris darwin +# GBK glibc aix osf solaris darwin cygwin woe32 dos +# GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 -# TIS-620 glibc aix hpux osf solaris +# TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc -# GEORGIAN-PS glibc +# ARMSCII-8 glibc darwin +# GEORGIAN-PS glibc cygwin +# PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux @@ -99,7 +102,7 @@ # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf -# UTF-8 Y glibc aix hpux osf solaris netbsd darwin +# UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). @@ -120,520 +123,561 @@ # List of references, updated during installation: echo "# Packages using this file: " case "$os" in - linux-gnulibc1*) - # Linux libc5 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - echo "POSIX ASCII" - for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ - en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ - en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ - es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ - et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ - fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ - it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ - sv_FI sv_SE; do - echo "$l ISO-8859-1" - echo "$l.iso-8859-1 ISO-8859-1" - echo "$l.iso-8859-15 ISO-8859-15" - echo "$l.iso-8859-15@euro ISO-8859-15" - echo "$l@euro ISO-8859-15" - echo "$l.cp-437 CP437" - echo "$l.cp-850 CP850" - echo "$l.cp-1252 CP1252" - echo "$l.cp-1252@euro CP1252" - #echo "$l.atari-st ATARI-ST" # not a commonly used encoding - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ - sl_SI sr sr_CS sr_YU; do - echo "$l ISO-8859-2" - echo "$l.iso-8859-2 ISO-8859-2" - echo "$l.cp-852 CP852" - echo "$l.cp-1250 CP1250" - echo "$l.utf-8 UTF-8" - done - for l in mk mk_MK ru ru_RU; do - echo "$l ISO-8859-5" - echo "$l.iso-8859-5 ISO-8859-5" - echo "$l.koi8-r KOI8-R" - echo "$l.cp-866 CP866" - echo "$l.cp-1251 CP1251" - echo "$l.utf-8 UTF-8" - done - for l in ar ar_SA; do - echo "$l ISO-8859-6" - echo "$l.iso-8859-6 ISO-8859-6" - echo "$l.cp-864 CP864" - #echo "$l.cp-868 CP868" # not a commonly used encoding - echo "$l.cp-1256 CP1256" - echo "$l.utf-8 UTF-8" - done - for l in el el_GR gr gr_GR; do - echo "$l ISO-8859-7" - echo "$l.iso-8859-7 ISO-8859-7" - echo "$l.cp-869 CP869" - echo "$l.cp-1253 CP1253" - echo "$l.cp-1253@euro CP1253" - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in he he_IL iw iw_IL; do - echo "$l ISO-8859-8" - echo "$l.iso-8859-8 ISO-8859-8" - echo "$l.cp-862 CP862" - echo "$l.cp-1255 CP1255" - echo "$l.utf-8 UTF-8" - done - for l in tr tr_TR; do - echo "$l ISO-8859-9" - echo "$l.iso-8859-9 ISO-8859-9" - echo "$l.cp-857 CP857" - echo "$l.cp-1254 CP1254" - echo "$l.utf-8 UTF-8" - done - for l in lt lt_LT lv lv_LV; do - #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name - echo "$l ISO-8859-13" - done - for l in ru_UA uk uk_UA; do - echo "$l KOI8-U" - done - for l in zh zh_CN; do - #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name - echo "$l GB2312" - done - for l in ja ja_JP ja_JP.EUC; do - echo "$l EUC-JP" - done - for l in ko ko_KR; do - echo "$l EUC-KR" - done - for l in th th_TH; do - echo "$l TIS-620" - done - for l in fa fa_IR; do - #echo "$l ISIRI-3342" # a broken encoding - echo "$l.utf-8 UTF-8" - done - ;; - linux* | *-gnu*) - # With glibc-2.1 or newer, we don't need any canonicalization, - # because glibc has iconv and both glibc and libiconv support all - # GNU canonical names directly. Therefore, the Makefile does not - # need to install the alias file at all. - # The following applies only to glibc-2.0.x and older libcs. - echo "ISO_646.IRV:1983 ASCII" - ;; - aix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "IBM-850 CP850" - echo "IBM-856 CP856" - echo "IBM-921 ISO-8859-13" - echo "IBM-922 CP922" - echo "IBM-932 CP932" - echo "IBM-943 CP943" - echo "IBM-1046 CP1046" - echo "IBM-1124 CP1124" - echo "IBM-1129 CP1129" - echo "IBM-1252 CP1252" - echo "IBM-eucCN GB2312" - echo "IBM-eucJP EUC-JP" - echo "IBM-eucKR EUC-KR" - echo "IBM-eucTW EUC-TW" - echo "big5 BIG5" - echo "GBK GBK" - echo "TIS-620 TIS-620" - echo "UTF-8 UTF-8" - ;; - hpux*) - echo "iso88591 ISO-8859-1" - echo "iso88592 ISO-8859-2" - echo "iso88595 ISO-8859-5" - echo "iso88596 ISO-8859-6" - echo "iso88597 ISO-8859-7" - echo "iso88598 ISO-8859-8" - echo "iso88599 ISO-8859-9" - echo "iso885915 ISO-8859-15" - echo "roman8 HP-ROMAN8" - echo "arabic8 HP-ARABIC8" - echo "greek8 HP-GREEK8" - echo "hebrew8 HP-HEBREW8" - echo "turkish8 HP-TURKISH8" - echo "kana8 HP-KANA8" - echo "tis620 TIS-620" - echo "big5 BIG5" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "hp15CN GB2312" - #echo "ccdc ?" # what is this? - echo "SJIS SHIFT_JIS" - echo "utf8 UTF-8" - ;; - irix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-9 ISO-8859-9" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - ;; - osf*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "cp850 CP850" - echo "big5 BIG5" - echo "dechanyu DEC-HANYU" - echo "dechanzi GB2312" - echo "deckanji DEC-KANJI" - echo "deckorean EUC-KR" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "GBK GBK" - echo "KSC5601 CP949" - echo "sdeckanji EUC-JP" - echo "SJIS SHIFT_JIS" - echo "TACTIS TIS-620" - echo "UTF-8 UTF-8" - ;; - solaris*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-3 ISO-8859-3" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "koi8-r KOI8-R" - echo "ansi-1251 CP1251" - echo "BIG5 BIG5" - echo "Big5-HKSCS BIG5-HKSCS" - echo "gb2312 GB2312" - echo "GBK GBK" - echo "GB18030 GB18030" - echo "cns11643 EUC-TW" - echo "5601 EUC-KR" - echo "ko_KR.johap92 JOHAB" - echo "eucJP EUC-JP" - echo "PCK SHIFT_JIS" - echo "TIS620.2533 TIS-620" - #echo "sun_eu_greek ?" # what is this? - echo "UTF-8 UTF-8" - ;; - freebsd* | os2*) - # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just - # reuse FreeBSD's locale data for OS/2. - echo "C ASCII" - echo "US-ASCII ASCII" - for l in la_LN lt_LN; do - echo "$l.ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ - lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do - echo "$l.ISO_8859-1 ISO-8859-1" - echo "$l.DIS_8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do - echo "$l.ISO_8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO_8859-4 ISO-8859-4" - done - for l in ru_RU ru_SU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO_8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ja_JP.Shift_JIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - netbsd*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-13 ISO-8859-13" - echo "ISO8859-15 ISO-8859-15" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "BIG5 BIG5" - echo "SJIS SHIFT_JIS" - ;; - darwin[56]*) - # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - for l in en_AU en_CA en_GB en_US la_LN; do - echo "$l.US-ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ - nl_NL no_NO pt_PT sv_SE; do - echo "$l ISO-8859-1" - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in la_LN; do - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do - echo "$l.ISO8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO8859-4 ISO-8859-4" - done - for l in ru_RU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - for l in bg_BG; do - echo "$l.CP1251 CP1251" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - darwin*) - # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: - # - It returns the empty string when LANG is set to a locale of the - # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 - # LC_CTYPE file. - # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by - # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. - # - The documentation says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # It also says - # "An additional caveat is that string parameters for files, - # paths, and other file-system entities must be in canonical - # UTF-8. In a canonical UTF-8 Unicode string, all decomposable - # characters are decomposed ..." - # but this is not true: You can pass non-decomposed UTF-8 strings - # to file system functions, and it is the OS which will convert - # them to decomposed UTF-8 before accessing the file system. - # - The Apple Terminal application displays UTF-8 by default. - # - However, other applications are free to use different encodings: - # - xterm uses ISO-8859-1 by default. - # - TextEdit uses MacRoman by default. - # We prefer UTF-8 over decomposed UTF-8-MAC because one should - # minimize the use of decomposed Unicode. Unfortunately, through the - # Darwin file system, decomposed UTF-8 strings are leaked into user - # space nevertheless. - echo "* UTF-8" - ;; - beos*) - # BeOS has a single locale, and it has UTF-8 encoding. - echo "* UTF-8" - ;; - msdosdjgpp*) - # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "#" - echo "# The encodings given here may not all be correct." - echo "# If you find that the encoding given for your language and" - echo "# country is not the one your DOS machine actually uses, just" - echo "# correct it in this file, and send a mail to" - echo "# Juan Manuel Guerrero " - echo "# and Bruno Haible ." - echo "#" - echo "C ASCII" - # ISO-8859-1 languages - echo "ca CP850" - echo "ca_ES CP850" - echo "da CP865" # not CP850 ?? - echo "da_DK CP865" # not CP850 ?? - echo "de CP850" - echo "de_AT CP850" - echo "de_CH CP850" - echo "de_DE CP850" - echo "en CP850" - echo "en_AU CP850" # not CP437 ?? - echo "en_CA CP850" - echo "en_GB CP850" - echo "en_NZ CP437" - echo "en_US CP437" - echo "en_ZA CP850" # not CP437 ?? - echo "es CP850" - echo "es_AR CP850" - echo "es_BO CP850" - echo "es_CL CP850" - echo "es_CO CP850" - echo "es_CR CP850" - echo "es_CU CP850" - echo "es_DO CP850" - echo "es_EC CP850" - echo "es_ES CP850" - echo "es_GT CP850" - echo "es_HN CP850" - echo "es_MX CP850" - echo "es_NI CP850" - echo "es_PA CP850" - echo "es_PY CP850" - echo "es_PE CP850" - echo "es_SV CP850" - echo "es_UY CP850" - echo "es_VE CP850" - echo "et CP850" - echo "et_EE CP850" - echo "eu CP850" - echo "eu_ES CP850" - echo "fi CP850" - echo "fi_FI CP850" - echo "fr CP850" - echo "fr_BE CP850" - echo "fr_CA CP850" - echo "fr_CH CP850" - echo "fr_FR CP850" - echo "ga CP850" - echo "ga_IE CP850" - echo "gd CP850" - echo "gd_GB CP850" - echo "gl CP850" - echo "gl_ES CP850" - echo "id CP850" # not CP437 ?? - echo "id_ID CP850" # not CP437 ?? - echo "is CP861" # not CP850 ?? - echo "is_IS CP861" # not CP850 ?? - echo "it CP850" - echo "it_CH CP850" - echo "it_IT CP850" - echo "lt CP775" - echo "lt_LT CP775" - echo "lv CP775" - echo "lv_LV CP775" - echo "nb CP865" # not CP850 ?? - echo "nb_NO CP865" # not CP850 ?? - echo "nl CP850" - echo "nl_BE CP850" - echo "nl_NL CP850" - echo "nn CP865" # not CP850 ?? - echo "nn_NO CP865" # not CP850 ?? - echo "no CP865" # not CP850 ?? - echo "no_NO CP865" # not CP850 ?? - echo "pt CP850" - echo "pt_BR CP850" - echo "pt_PT CP850" - echo "sv CP850" - echo "sv_SE CP850" - # ISO-8859-2 languages - echo "cs CP852" - echo "cs_CZ CP852" - echo "hr CP852" - echo "hr_HR CP852" - echo "hu CP852" - echo "hu_HU CP852" - echo "pl CP852" - echo "pl_PL CP852" - echo "ro CP852" - echo "ro_RO CP852" - echo "sk CP852" - echo "sk_SK CP852" - echo "sl CP852" - echo "sl_SI CP852" - echo "sq CP852" - echo "sq_AL CP852" - echo "sr CP852" # CP852 or CP866 or CP855 ?? - echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? - echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? - # ISO-8859-3 languages - echo "mt CP850" - echo "mt_MT CP850" - # ISO-8859-5 languages - echo "be CP866" - echo "be_BE CP866" - echo "bg CP866" # not CP855 ?? - echo "bg_BG CP866" # not CP855 ?? - echo "mk CP866" # not CP855 ?? - echo "mk_MK CP866" # not CP855 ?? - echo "ru CP866" - echo "ru_RU CP866" - echo "uk CP1125" - echo "uk_UA CP1125" - # ISO-8859-6 languages - echo "ar CP864" - echo "ar_AE CP864" - echo "ar_DZ CP864" - echo "ar_EG CP864" - echo "ar_IQ CP864" - echo "ar_IR CP864" - echo "ar_JO CP864" - echo "ar_KW CP864" - echo "ar_MA CP864" - echo "ar_OM CP864" - echo "ar_QA CP864" - echo "ar_SA CP864" - echo "ar_SY CP864" - # ISO-8859-7 languages - echo "el CP869" - echo "el_GR CP869" - # ISO-8859-8 languages - echo "he CP862" - echo "he_IL CP862" - # ISO-8859-9 languages - echo "tr CP857" - echo "tr_TR CP857" - # Japanese - echo "ja CP932" - echo "ja_JP CP932" - # Chinese - echo "zh_CN GBK" - echo "zh_TW CP950" # not CP938 ?? - # Korean - echo "kr CP949" # not CP934 ?? - echo "kr_KR CP949" # not CP934 ?? - # Thai - echo "th CP874" - echo "th_TH CP874" - # Other - echo "eo CP850" - echo "eo_EO CP850" - ;; + linux-gnulibc1*) + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "POSIX ASCII" + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ + sv_FI sv_SE; do + echo "$l ISO-8859-1" + echo "$l.iso-8859-1 ISO-8859-1" + echo "$l.iso-8859-15 ISO-8859-15" + echo "$l.iso-8859-15@euro ISO-8859-15" + echo "$l@euro ISO-8859-15" + echo "$l.cp-437 CP437" + echo "$l.cp-850 CP850" + echo "$l.cp-1252 CP1252" + echo "$l.cp-1252@euro CP1252" + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ + sl_SI sr sr_CS sr_YU; do + echo "$l ISO-8859-2" + echo "$l.iso-8859-2 ISO-8859-2" + echo "$l.cp-852 CP852" + echo "$l.cp-1250 CP1250" + echo "$l.utf-8 UTF-8" + done + for l in mk mk_MK ru ru_RU; do + echo "$l ISO-8859-5" + echo "$l.iso-8859-5 ISO-8859-5" + echo "$l.koi8-r KOI8-R" + echo "$l.cp-866 CP866" + echo "$l.cp-1251 CP1251" + echo "$l.utf-8 UTF-8" + done + for l in ar ar_SA; do + echo "$l ISO-8859-6" + echo "$l.iso-8859-6 ISO-8859-6" + echo "$l.cp-864 CP864" + #echo "$l.cp-868 CP868" # not a commonly used encoding + echo "$l.cp-1256 CP1256" + echo "$l.utf-8 UTF-8" + done + for l in el el_GR gr gr_GR; do + echo "$l ISO-8859-7" + echo "$l.iso-8859-7 ISO-8859-7" + echo "$l.cp-869 CP869" + echo "$l.cp-1253 CP1253" + echo "$l.cp-1253@euro CP1253" + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in he he_IL iw iw_IL; do + echo "$l ISO-8859-8" + echo "$l.iso-8859-8 ISO-8859-8" + echo "$l.cp-862 CP862" + echo "$l.cp-1255 CP1255" + echo "$l.utf-8 UTF-8" + done + for l in tr tr_TR; do + echo "$l ISO-8859-9" + echo "$l.iso-8859-9 ISO-8859-9" + echo "$l.cp-857 CP857" + echo "$l.cp-1254 CP1254" + echo "$l.utf-8 UTF-8" + done + for l in lt lt_LT lv lv_LV; do + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name + echo "$l ISO-8859-13" + done + for l in ru_UA uk uk_UA; do + echo "$l KOI8-U" + done + for l in zh zh_CN; do + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name + echo "$l GB2312" + done + for l in ja ja_JP ja_JP.EUC; do + echo "$l EUC-JP" + done + for l in ko ko_KR; do + echo "$l EUC-KR" + done + for l in th th_TH; do + echo "$l TIS-620" + done + for l in fa fa_IR; do + #echo "$l ISIRI-3342" # a broken encoding + echo "$l.utf-8 UTF-8" + done + ;; + linux* | *-gnu*) + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" + ;; + aix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "IBM-850 CP850" + echo "IBM-856 CP856" + echo "IBM-921 ISO-8859-13" + echo "IBM-922 CP922" + echo "IBM-932 CP932" + echo "IBM-943 CP943" + echo "IBM-1046 CP1046" + echo "IBM-1124 CP1124" + echo "IBM-1129 CP1129" + echo "IBM-1252 CP1252" + echo "IBM-eucCN GB2312" + echo "IBM-eucJP EUC-JP" + echo "IBM-eucKR EUC-KR" + echo "IBM-eucTW EUC-TW" + echo "big5 BIG5" + echo "GBK GBK" + echo "TIS-620 TIS-620" + echo "UTF-8 UTF-8" + ;; + hpux*) + echo "iso88591 ISO-8859-1" + echo "iso88592 ISO-8859-2" + echo "iso88595 ISO-8859-5" + echo "iso88596 ISO-8859-6" + echo "iso88597 ISO-8859-7" + echo "iso88598 ISO-8859-8" + echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" + echo "roman8 HP-ROMAN8" + echo "arabic8 HP-ARABIC8" + echo "greek8 HP-GREEK8" + echo "hebrew8 HP-HEBREW8" + echo "turkish8 HP-TURKISH8" + echo "kana8 HP-KANA8" + echo "tis620 TIS-620" + echo "big5 BIG5" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "hp15CN GB2312" + #echo "ccdc ?" # what is this? + echo "SJIS SHIFT_JIS" + echo "utf8 UTF-8" + ;; + irix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + ;; + osf*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "cp850 CP850" + echo "big5 BIG5" + echo "dechanyu DEC-HANYU" + echo "dechanzi GB2312" + echo "deckanji DEC-KANJI" + echo "deckorean EUC-KR" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "GBK GBK" + echo "KSC5601 CP949" + echo "sdeckanji EUC-JP" + echo "SJIS SHIFT_JIS" + echo "TACTIS TIS-620" + echo "UTF-8 UTF-8" + ;; + solaris*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-3 ISO-8859-3" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "koi8-r KOI8-R" + echo "ansi-1251 CP1251" + echo "BIG5 BIG5" + echo "Big5-HKSCS BIG5-HKSCS" + echo "gb2312 GB2312" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "cns11643 EUC-TW" + echo "5601 EUC-KR" + echo "ko_KR.johap92 JOHAB" + echo "eucJP EUC-JP" + echo "PCK SHIFT_JIS" + echo "TIS620.2533 TIS-620" + #echo "sun_eu_greek ?" # what is this? + echo "UTF-8 UTF-8" + ;; + freebsd* | os2*) + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just + # reuse FreeBSD's locale data for OS/2. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in la_LN lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO_8859-4 ISO-8859-4" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO_8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ja_JP.Shift_JIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + netbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "BIG5 BIG5" + echo "SJIS SHIFT_JIS" + ;; + openbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + ;; + darwin[56]*) + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + for l in en_AU en_CA en_GB en_US la_LN; do + echo "$l.US-ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ + nl_NL no_NO pt_PT sv_SE; do + echo "$l ISO-8859-1" + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in la_LN; do + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do + echo "$l.ISO8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO8859-4 ISO-8859-4" + done + for l in ru_RU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + for l in bg_BG; do + echo "$l.CP1251 CP1251" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + darwin*) + # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is + # useless: + # - It returns the empty string when LANG is set to a locale of the + # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 + # LC_CTYPE file. + # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by + # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. + # - The documentation says: + # "... all code that calls BSD system routines should ensure + # that the const *char parameters of these routines are in UTF-8 + # encoding. All BSD system functions expect their string + # parameters to be in UTF-8 encoding and nothing else." + # It also says + # "An additional caveat is that string parameters for files, + # paths, and other file-system entities must be in canonical + # UTF-8. In a canonical UTF-8 Unicode string, all decomposable + # characters are decomposed ..." + # but this is not true: You can pass non-decomposed UTF-8 strings + # to file system functions, and it is the OS which will convert + # them to decomposed UTF-8 before accessing the file system. + # - The Apple Terminal application displays UTF-8 by default. + # - However, other applications are free to use different encodings: + # - xterm uses ISO-8859-1 by default. + # - TextEdit uses MacRoman by default. + # We prefer UTF-8 over decomposed UTF-8-MAC because one should + # minimize the use of decomposed Unicode. Unfortunately, through the + # Darwin file system, decomposed UTF-8 strings are leaked into user + # space nevertheless. + # Then there are also the locales with encodings other than US-ASCII + # and UTF-8. These locales can be occasionally useful to users (e.g. + # when grepping through ISO-8859-1 encoded text files), when all their + # file names are in US-ASCII. + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "KOI8-R KOI8-R" + echo "KOI8-U KOI8-U" + echo "CP866 CP866" + echo "CP949 CP949" + echo "CP1131 CP1131" + echo "CP1251 CP1251" + echo "eucCN GB2312" + echo "GB2312 GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "Big5 BIG5" + echo "Big5HKSCS BIG5-HKSCS" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "SJIS SHIFT_JIS" + echo "ARMSCII-8 ARMSCII-8" + echo "PT154 PT154" + #echo "ISCII-DEV ?" + echo "* UTF-8" + ;; + beos* | haiku*) + # BeOS and Haiku have a single locale, and it has UTF-8 encoding. + echo "* UTF-8" + ;; + msdosdjgpp*) + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "#" + echo "# The encodings given here may not all be correct." + echo "# If you find that the encoding given for your language and" + echo "# country is not the one your DOS machine actually uses, just" + echo "# correct it in this file, and send a mail to" + echo "# Juan Manuel Guerrero " + echo "# and Bruno Haible ." + echo "#" + echo "C ASCII" + # ISO-8859-1 languages + echo "ca CP850" + echo "ca_ES CP850" + echo "da CP865" # not CP850 ?? + echo "da_DK CP865" # not CP850 ?? + echo "de CP850" + echo "de_AT CP850" + echo "de_CH CP850" + echo "de_DE CP850" + echo "en CP850" + echo "en_AU CP850" # not CP437 ?? + echo "en_CA CP850" + echo "en_GB CP850" + echo "en_NZ CP437" + echo "en_US CP437" + echo "en_ZA CP850" # not CP437 ?? + echo "es CP850" + echo "es_AR CP850" + echo "es_BO CP850" + echo "es_CL CP850" + echo "es_CO CP850" + echo "es_CR CP850" + echo "es_CU CP850" + echo "es_DO CP850" + echo "es_EC CP850" + echo "es_ES CP850" + echo "es_GT CP850" + echo "es_HN CP850" + echo "es_MX CP850" + echo "es_NI CP850" + echo "es_PA CP850" + echo "es_PY CP850" + echo "es_PE CP850" + echo "es_SV CP850" + echo "es_UY CP850" + echo "es_VE CP850" + echo "et CP850" + echo "et_EE CP850" + echo "eu CP850" + echo "eu_ES CP850" + echo "fi CP850" + echo "fi_FI CP850" + echo "fr CP850" + echo "fr_BE CP850" + echo "fr_CA CP850" + echo "fr_CH CP850" + echo "fr_FR CP850" + echo "ga CP850" + echo "ga_IE CP850" + echo "gd CP850" + echo "gd_GB CP850" + echo "gl CP850" + echo "gl_ES CP850" + echo "id CP850" # not CP437 ?? + echo "id_ID CP850" # not CP437 ?? + echo "is CP861" # not CP850 ?? + echo "is_IS CP861" # not CP850 ?? + echo "it CP850" + echo "it_CH CP850" + echo "it_IT CP850" + echo "lt CP775" + echo "lt_LT CP775" + echo "lv CP775" + echo "lv_LV CP775" + echo "nb CP865" # not CP850 ?? + echo "nb_NO CP865" # not CP850 ?? + echo "nl CP850" + echo "nl_BE CP850" + echo "nl_NL CP850" + echo "nn CP865" # not CP850 ?? + echo "nn_NO CP865" # not CP850 ?? + echo "no CP865" # not CP850 ?? + echo "no_NO CP865" # not CP850 ?? + echo "pt CP850" + echo "pt_BR CP850" + echo "pt_PT CP850" + echo "sv CP850" + echo "sv_SE CP850" + # ISO-8859-2 languages + echo "cs CP852" + echo "cs_CZ CP852" + echo "hr CP852" + echo "hr_HR CP852" + echo "hu CP852" + echo "hu_HU CP852" + echo "pl CP852" + echo "pl_PL CP852" + echo "ro CP852" + echo "ro_RO CP852" + echo "sk CP852" + echo "sk_SK CP852" + echo "sl CP852" + echo "sl_SI CP852" + echo "sq CP852" + echo "sq_AL CP852" + echo "sr CP852" # CP852 or CP866 or CP855 ?? + echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? + echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? + # ISO-8859-3 languages + echo "mt CP850" + echo "mt_MT CP850" + # ISO-8859-5 languages + echo "be CP866" + echo "be_BE CP866" + echo "bg CP866" # not CP855 ?? + echo "bg_BG CP866" # not CP855 ?? + echo "mk CP866" # not CP855 ?? + echo "mk_MK CP866" # not CP855 ?? + echo "ru CP866" + echo "ru_RU CP866" + echo "uk CP1125" + echo "uk_UA CP1125" + # ISO-8859-6 languages + echo "ar CP864" + echo "ar_AE CP864" + echo "ar_DZ CP864" + echo "ar_EG CP864" + echo "ar_IQ CP864" + echo "ar_IR CP864" + echo "ar_JO CP864" + echo "ar_KW CP864" + echo "ar_MA CP864" + echo "ar_OM CP864" + echo "ar_QA CP864" + echo "ar_SA CP864" + echo "ar_SY CP864" + # ISO-8859-7 languages + echo "el CP869" + echo "el_GR CP869" + # ISO-8859-8 languages + echo "he CP862" + echo "he_IL CP862" + # ISO-8859-9 languages + echo "tr CP857" + echo "tr_TR CP857" + # Japanese + echo "ja CP932" + echo "ja_JP CP932" + # Chinese + echo "zh_CN GBK" + echo "zh_TW CP950" # not CP938 ?? + # Korean + echo "kr CP949" # not CP934 ?? + echo "kr_KR CP949" # not CP934 ?? + # Thai + echo "th CP874" + echo "th_TH CP874" + # Other + echo "eo CP850" + echo "eo_EO CP850" + ;; esac diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-strcasecmp.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strcasecmp.c --- gettext-0.17/gettext-runtime/gnulib-lib/c-strcasecmp.c 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strcasecmp.c 2010-02-16 21:31:27.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strcasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-strcase.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strcase.h --- gettext-0.17/gettext-runtime/gnulib-lib/c-strcase.h 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strcase.h 2010-02-16 21:31:27.000000000 +0000 @@ -1,9 +1,10 @@ /* Case-insensitive string comparison functions in C locale. - Copyright (C) 1995-1996, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-strncasecmp.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strncasecmp.c --- gettext-0.17/gettext-runtime/gnulib-lib/c-strncasecmp.c 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strncasecmp.c 2010-02-16 21:31:27.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strncasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (--n == 0 || c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-strstr.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strstr.c --- gettext-0.17/gettext-runtime/gnulib-lib/c-strstr.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strstr.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,213 +0,0 @@ -/* c-strstr.c -- substring search in C locale - Copyright (C) 2005-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2005, 2007. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "c-strstr.h" - -#include -#include -#include - -#include "malloca.h" - -/* Knuth-Morris-Pratt algorithm. - See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ -static bool -knuth_morris_pratt (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = (unsigned char) needle[i - 1]; - - for (;;) - { - if (b == (unsigned char) needle[j]) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if ((unsigned char) needle[j] == (unsigned char) *phaystack) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} - -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -char * -c_strstr (const char *haystack, const char *needle) -{ - /* Be careful not to look at the entire extent of haystack or needle - until needed. This is useful because of these two cases: - - haystack may be very long, and a match of needle found early, - - needle may be very long, and not even a short initial segment of - needle may be found in haystack. */ - if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the memory - allocation, we activate the Knuth-Morris-Pratt algorithm only once - the naïve algorithm has already run for some time; more precisely, - when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - unsigned char b = (unsigned char) *needle; - - needle++; - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt (haystack, needle - 1, &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if ((unsigned char) *haystack == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if ((unsigned char) *rhaystack != (unsigned char) *rneedle) - /* Nothing in this round. */ - break; - } - } - } - } - else - return (char *) haystack; -} diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/c-strstr.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strstr.h --- gettext-0.17/gettext-runtime/gnulib-lib/c-strstr.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/c-strstr.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -/* Searching in a string. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - - -/* The functions defined in this file assume a nearly ASCII compatible - character set. */ - - -#ifdef __cplusplus -extern "C" { -#endif - -/* Find the first occurrence of NEEDLE in HAYSTACK. - This function is safe to be called, even in a multibyte locale, if NEEDLE - 1. consists solely of printable ASCII characters excluding '\\' and '~' - [this restriction is needed because of Shift_JIS and JOHAB] - or of the control ASCII characters '\a' '\b' '\f' '\n' '\r' '\t' '\v' - [this restriction is needed because of VISCII], and - 2. has at least length 2 - [this restriction is needed because of BIG5, BIG5-HKSCS, GBK, GB18030, - Shift_JIS, JOHAB], and - 3. does not consist entirely of decimal digits, or has at least length 4 - [this restricion is needed because of GB18030]. - This function is also safe to be called, even in a multibyte locale, if - HAYSTACK and NEEDLE are known to both consist solely of printable ASCII - characters excluding '\\' and '~'. */ -extern char *c_strstr (const char *haystack, const char *needle); - -#ifdef __cplusplus -} -#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/errno.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/errno.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/errno.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/errno.in.h 2010-04-25 09:20:41.000000000 +0000 @@ -0,0 +1,160 @@ +/* A POSIX-like . + + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_ERRNO_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ + +#ifndef _GL_ERRNO_H +#define _GL_ERRNO_H + + +/* On native Windows platforms, many macros are not defined. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */ +# define EWOULDBLOCK EAGAIN + +/* Values >= 100 seem safe to use. */ +# define ETXTBSY 100 +# define GNULIB_defined_ETXTBSY 1 + +/* These are intentionally the same values as the WSA* error numbers, defined + in . */ +# define EINPROGRESS 10036 +# define EALREADY 10037 +# define ENOTSOCK 10038 +# define EDESTADDRREQ 10039 +# define EMSGSIZE 10040 +# define EPROTOTYPE 10041 +# define ENOPROTOOPT 10042 +# define EPROTONOSUPPORT 10043 +# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ +# define EOPNOTSUPP 10045 +# define EPFNOSUPPORT 10046 /* not required by POSIX */ +# define EAFNOSUPPORT 10047 +# define EADDRINUSE 10048 +# define EADDRNOTAVAIL 10049 +# define ENETDOWN 10050 +# define ENETUNREACH 10051 +# define ENETRESET 10052 +# define ECONNABORTED 10053 +# define ECONNRESET 10054 +# define ENOBUFS 10055 +# define EISCONN 10056 +# define ENOTCONN 10057 +# define ESHUTDOWN 10058 /* not required by POSIX */ +# define ETOOMANYREFS 10059 /* not required by POSIX */ +# define ETIMEDOUT 10060 +# define ECONNREFUSED 10061 +# define ELOOP 10062 +# define EHOSTDOWN 10064 /* not required by POSIX */ +# define EHOSTUNREACH 10065 +# define EPROCLIM 10067 /* not required by POSIX */ +# define EUSERS 10068 /* not required by POSIX */ +# define EDQUOT 10069 +# define ESTALE 10070 +# define EREMOTE 10071 /* not required by POSIX */ +# define GNULIB_defined_ESOCK 1 + +# endif + + +/* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros + EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ +# if @EMULTIHOP_HIDDEN@ +# define EMULTIHOP @EMULTIHOP_VALUE@ +# define GNULIB_defined_EMULTIHOP 1 +# endif +# if @ENOLINK_HIDDEN@ +# define ENOLINK @ENOLINK_VALUE@ +# define GNULIB_defined_ENOLINK 1 +# endif +# if @EOVERFLOW_HIDDEN@ +# define EOVERFLOW @EOVERFLOW_VALUE@ +# define GNULIB_defined_EOVERFLOW 1 +# endif + + +/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, + EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. + Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, + HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. + + Note: When one of these systems defines some of these macros some day, + binaries will have to be recompiled so that they recognizes the new + errno values from the system. */ + +# ifndef ENOMSG +# define ENOMSG 2000 +# define GNULIB_defined_ENOMSG 1 +# endif + +# ifndef EIDRM +# define EIDRM 2001 +# define GNULIB_defined_EIDRM 1 +# endif + +# ifndef ENOLINK +# define ENOLINK 2002 +# define GNULIB_defined_ENOLINK 1 +# endif + +# ifndef EPROTO +# define EPROTO 2003 +# define GNULIB_defined_EPROTO 1 +# endif + +# ifndef EMULTIHOP +# define EMULTIHOP 2004 +# define GNULIB_defined_EMULTIHOP 1 +# endif + +# ifndef EBADMSG +# define EBADMSG 2005 +# define GNULIB_defined_EBADMSG 1 +# endif + +# ifndef EOVERFLOW +# define EOVERFLOW 2006 +# define GNULIB_defined_EOVERFLOW 1 +# endif + +# ifndef ENOTSUP +# define ENOTSUP 2007 +# define GNULIB_defined_ENOTSUP 1 +# endif + +# ifndef ESTALE +# define ESTALE 2009 +# define GNULIB_defined_ESTALE 1 +# endif + +# ifndef ECANCELED +# define ECANCELED 2008 +# define GNULIB_defined_ECANCELED 1 +# endif + + +#endif /* _GL_ERRNO_H */ +#endif /* _GL_ERRNO_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/error.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/error.c --- gettext-0.17/gettext-runtime/gnulib-lib/error.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/error.c 2010-05-09 11:03:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Error handler for noninteractive utilities - Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -70,8 +70,8 @@ extern void __error (int status, int errnum, const char *message, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void __error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, - ...) + unsigned int line_number, const char *message, + ...) __attribute__ ((__format__ (__printf__, 5, 6)));; # define error __error # define error_at_line __error_at_line @@ -85,6 +85,18 @@ #else /* not _LIBC */ +# include +# include + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +# endif + +/* The gnulib override of fcntl is not needed in this file. */ +# undef fcntl + # if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" @@ -98,8 +110,52 @@ # if HAVE_STRERROR_R || defined strerror_r # define __strerror_r strerror_r -# endif /* HAVE_STRERROR_R || defined strerror_r */ -#endif /* not _LIBC */ +# endif /* HAVE_STRERROR_R || defined strerror_r */ +#endif /* not _LIBC */ + +#if !_LIBC +/* Return non-zero if FD is open. */ +static inline int +is_open (int fd) +{ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32: The initial state of unassigned standard file descriptors is + that they are open but point to an INVALID_HANDLE_VALUE. There is no + fcntl, and the gnulib replacement fcntl does not support F_GETFL. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +# else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +# endif +} +#endif + +static inline void +flush_stdout (void) +{ +#if !_LIBC + int stdout_fd; + +# if GNULIB_FREOPEN_SAFER + /* Use of gnulib's freopen-safer module normally ensures that + fileno (stdout) == 1 + whenever stdout is open. */ + stdout_fd = STDOUT_FILENO; +# else + /* POSIX states that fileno (stdout) after fclose is unspecified. But in + practice it is not a problem, because stdout is statically allocated and + the fd of a FILE stream is stored as a field in its allocated memory. */ + stdout_fd = fileno (stdout); +# endif + /* POSIX states that fflush (stdout) after fclose is unspecified; it + is safe in glibc, but not on all other platforms. fflush (NULL) + is always defined, but too draconian. */ + if (0 <= stdout_fd && is_open (stdout_fd)) +#endif + fflush (stdout); +} static void print_errno_message (int errnum) @@ -147,58 +203,58 @@ bool use_malloc = false; while (1) - { - if (__libc_use_alloca (len * sizeof (wchar_t))) - wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); - else - { - if (!use_malloc) - wmessage = NULL; - - wchar_t *p = (wchar_t *) realloc (wmessage, - len * sizeof (wchar_t)); - if (p == NULL) - { - free (wmessage); - fputws_unlocked (L"out of memory\n", stderr); - return; - } - wmessage = p; - use_malloc = true; - } - - memset (&st, '\0', sizeof (st)); - tmp = message; - - res = mbsrtowcs (wmessage, &tmp, len, &st); - if (res != len) - break; - - if (__builtin_expect (len >= SIZE_MAX / 2, 0)) - { - /* This really should not happen if everything is fine. */ - res = (size_t) -1; - break; - } + { + if (__libc_use_alloca (len * sizeof (wchar_t))) + wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); + else + { + if (!use_malloc) + wmessage = NULL; + + wchar_t *p = (wchar_t *) realloc (wmessage, + len * sizeof (wchar_t)); + if (p == NULL) + { + free (wmessage); + fputws_unlocked (L"out of memory\n", stderr); + return; + } + wmessage = p; + use_malloc = true; + } + + memset (&st, '\0', sizeof (st)); + tmp = message; + + res = mbsrtowcs (wmessage, &tmp, len, &st); + if (res != len) + break; + + if (__builtin_expect (len >= SIZE_MAX / 2, 0)) + { + /* This really should not happen if everything is fine. */ + res = (size_t) -1; + break; + } - len *= 2; - } + len *= 2; + } if (res == (size_t) -1) - { - /* The string cannot be converted. */ - if (use_malloc) - { - free (wmessage); - use_malloc = false; - } - wmessage = (wchar_t *) L"???"; - } + { + /* The string cannot be converted. */ + if (use_malloc) + { + free (wmessage); + use_malloc = false; + } + wmessage = (wchar_t *) L"???"; + } __vfwprintf (stderr, wmessage, args); if (use_malloc) - free (wmessage); + free (wmessage); } else #endif @@ -233,10 +289,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -268,7 +324,7 @@ void error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, ...) + unsigned int line_number, const char *message, ...) { va_list args; @@ -278,10 +334,10 @@ static unsigned int old_line_number; if (old_line_number == line_number - && (file_name == old_file_name - || strcmp (old_file_name, file_name) == 0)) - /* Simply return and print nothing. */ - return; + && (file_name == old_file_name + || strcmp (old_file_name, file_name) == 0)) + /* Simply return and print nothing. */ + return; old_file_name = file_name; old_line_number = line_number; @@ -292,10 +348,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -312,10 +368,10 @@ #if _LIBC __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #else fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #endif va_start (args, message); diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/error.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/error.h --- gettext-0.17/gettext-runtime/gnulib-lib/error.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/error.h 2010-02-16 21:31:27.000000000 +0000 @@ -1,5 +1,6 @@ /* Declaration for error-reporting function - Copyright (C) 1995, 1996, 1997, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 2003, 2006, 2008, 2009, 2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -19,19 +20,18 @@ #define _ERROR_H 1 #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -43,7 +43,7 @@ __attribute__ ((__format__ (__printf__, 3, 4))); extern void error_at_line (int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) + unsigned int __lineno, const char *__format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); /* If NULL, error will flush stdout, then print on stderr the program @@ -58,7 +58,7 @@ variable controls whether this mode is selected or not. */ extern DLL_VARIABLE int error_one_per_line; -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/fwriteerror.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/fwriteerror.c --- gettext-0.17/gettext-runtime/gnulib-lib/fwriteerror.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/fwriteerror.c 2010-02-16 21:31:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -32,13 +32,25 @@ if (fp == stdout) { if (stdout_closed) - return 0; + return 0; /* If we are closing stdout, don't attempt to do it later again. */ stdout_closed = true; } - /* Need to + /* This function returns an error indication if there was a previous failure + or if fclose failed, with two exceptions: + - Ignore an fclose failure if there was no previous error, no data + remains to be flushed, and fclose failed with EBADF. That can + happen when a program like cp is invoked like this `cp a b >&-' + (i.e., with standard output closed) and doesn't generate any + output (hence no previous error and nothing to be flushed). + - Ignore an fclose failure due to EPIPE. That can happen when a + program blocks or ignores SIGPIPE, and the output pipe or socket + has no readers now. The EPIPE tells us that we should stop writing + to this output. That's what we are doing anyway here. + + Need to 1. test the error indicator of the stream, 2. flush the buffers both in userland and in the kernel, through fclose, testing for error again. */ @@ -50,15 +62,15 @@ if (ferror (fp)) { if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* The stream had an error earlier, but its errno was lost. If the - error was not temporary, we can get the same errno by writing and - flushing one more byte. We can do so because at this point the - stream's contents is garbage anyway. */ + error was not temporary, we can get the same errno by writing and + flushing one more byte. We can do so because at this point the + stream's contents is garbage anyway. */ if (fputc ('\0', fp) == EOF) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* Give up on errno. */ errno = 0; goto close_preserving_errno; @@ -67,16 +79,16 @@ if (ignore_ebadf) { /* We need an explicit fflush to tell whether some output was already - done on FP. */ + done on FP. */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fclose (fp) && errno != EBADF) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } else { if (fclose (fp)) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } return 0; @@ -88,8 +100,13 @@ int saved_errno = errno; fclose (fp); errno = saved_errno; - return -1; } + got_errno: + /* There's an error. Ignore EPIPE. */ + if (errno == EPIPE) + return 0; + else + return -1; } int @@ -108,7 +125,7 @@ #if TEST /* Name of a file on which writing fails. On systems without /dev/full, - you can choose a filename on a full filesystem. */ + you can choose a filename on a full file system. */ #define UNWRITABLE_FILE "/dev/full" int @@ -130,32 +147,32 @@ size_t size = sizes[i]; for (j = 0; j < 2; j++) - { - /* Run a test depending on i and j: - Write size bytes and then calls fflush if j==1. */ - FILE *stream = fopen (UNWRITABLE_FILE, "w"); - - if (stream == NULL) - { - fprintf (stderr, "Test %u:%u: could not open file\n", i, j); - continue; - } - - fwrite (dummy, 347, 1, stream); - fwrite (dummy, size - 347, 1, stream); - if (j) - fflush (stream); - - if (fwriteerror (stream) == -1) - { - if (errno != ENOSPC) - fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", - i, j, errno); - } - else - fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", - i, j); - } + { + /* Run a test depending on i and j: + Write size bytes and then calls fflush if j==1. */ + FILE *stream = fopen (UNWRITABLE_FILE, "w"); + + if (stream == NULL) + { + fprintf (stderr, "Test %u:%u: could not open file\n", i, j); + continue; + } + + fwrite (dummy, 347, 1, stream); + fwrite (dummy, size - 347, 1, stream); + if (j) + fflush (stream); + + if (fwriteerror (stream) == -1) + { + if (errno != ENOSPC) + fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", + i, j, errno); + } + else + fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", + i, j); + } } return 0; diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/fwriteerror.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/fwriteerror.h --- gettext-0.17/gettext-runtime/gnulib-lib/fwriteerror.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/fwriteerror.h 2010-02-16 21:31:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/getopt1.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt1.c --- gettext-0.17/gettext-runtime/gnulib-lib/getopt1.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt1.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,6 +1,6 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004,2006 - Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, + 1998, 2004, 2006, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -32,25 +32,25 @@ #include #endif -#ifndef NULL +#ifndef NULL #define NULL 0 #endif int getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, - const struct option *long_options, int *opt_index) + const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, - opt_index, 0, 0); + opt_index, 0, 0); } int _getopt_long_r (int argc, char **argv, const char *options, - const struct option *long_options, int *opt_index, - struct _getopt_data *d) + const struct option *long_options, int *opt_index, + struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, - 0, 0, d); + 0, d, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. @@ -60,20 +60,20 @@ int getopt_long_only (int argc, char *__getopt_argv_const *argv, - const char *options, - const struct option *long_options, int *opt_index) + const char *options, + const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, - opt_index, 1, 0); + opt_index, 1, 0); } int _getopt_long_only_r (int argc, char **argv, const char *options, - const struct option *long_options, int *opt_index, - struct _getopt_data *d) + const struct option *long_options, int *opt_index, + struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, - 1, 0, d); + 1, d, 0); } @@ -91,76 +91,76 @@ { int this_option_optind = optind ? optind : 1; int option_index = 0; - static struct option long_options[] = + static const struct option long_options[] = { - {"add", 1, 0, 0}, - {"append", 0, 0, 0}, - {"delete", 1, 0, 0}, - {"verbose", 0, 0, 0}, - {"create", 0, 0, 0}, - {"file", 1, 0, 0}, - {0, 0, 0, 0} + {"add", 1, 0, 0}, + {"append", 0, 0, 0}, + {"delete", 1, 0, 0}, + {"verbose", 0, 0, 0}, + {"create", 0, 0, 0}, + {"file", 1, 0, 0}, + {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", - long_options, &option_index); + long_options, &option_index); if (c == -1) - break; + break; switch (c) - { - case 0: - printf ("option %s", long_options[option_index].name); - if (optarg) - printf (" with arg %s", optarg); - printf ("\n"); - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case 'd': - printf ("option d with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } + { + case 0: + printf ("option %s", long_options[option_index].name); + if (optarg) + printf (" with arg %s", optarg); + printf ("\n"); + break; + + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + if (digit_optind != 0 && digit_optind != this_option_optind) + printf ("digits occur in two different argv-elements.\n"); + digit_optind = this_option_optind; + printf ("option %c\n", c); + break; + + case 'a': + printf ("option a\n"); + break; + + case 'b': + printf ("option b\n"); + break; + + case 'c': + printf ("option c with value `%s'\n", optarg); + break; + + case 'd': + printf ("option d with value `%s'\n", optarg); + break; + + case '?': + break; + + default: + printf ("?? getopt returned character code 0%o ??\n", c); + } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) - printf ("%s ", argv[optind++]); + printf ("%s ", argv[optind++]); printf ("\n"); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/getopt.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt.c --- gettext-0.17/gettext-runtime/gnulib-lib/getopt.c 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt.c 2010-04-25 09:20:41.000000000 +0000 @@ -1,9 +1,9 @@ /* Getopt for GNU. - NOTE: getopt is now part of the C library, so if you don't know what + NOTE: getopt is part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! - Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004,2006 - Free Software Foundation, Inc. + Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -30,10 +30,6 @@ #include #include -#ifdef __VMS -# include -#endif - #ifdef _LIBC # include #else @@ -45,12 +41,9 @@ # include #endif -#ifndef attribute_hidden -# define attribute_hidden -#endif - -/* Unlike standard Unix `getopt', functions like `getopt_long' - let the user intersperse the options with the other arguments. +/* This version of `getopt' appears to the caller like standard Unix `getopt' + but it behaves differently for the user, since it allows the user + to intersperse the options with the other arguments. As `getopt_long' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus @@ -58,7 +51,7 @@ Using `getopt' or setting the environment variable POSIXLY_CORRECT disables permutation. - Then the application's behavior is completely standard. + Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ @@ -125,18 +118,18 @@ # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ - if (d->__nonoption_flags_len > 0) \ - { \ - char __tmp = __getopt_nonoption_flags[ch1]; \ - __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ - __getopt_nonoption_flags[ch2] = __tmp; \ + if (d->__nonoption_flags_len > 0) \ + { \ + char __tmp = __getopt_nonoption_flags[ch1]; \ + __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ + __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif -#else /* !_LIBC */ +#else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) -#endif /* _LIBC */ +#endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) @@ -167,57 +160,57 @@ if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and - presents new arguments. */ + presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) - d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; + d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; else - { - memset (__mempcpy (new_str, __getopt_nonoption_flags, - d->__nonoption_flags_max_len), - '\0', top + 1 - d->__nonoption_flags_max_len); - d->__nonoption_flags_max_len = top + 1; - __getopt_nonoption_flags = new_str; - } + { + memset (__mempcpy (new_str, __getopt_nonoption_flags, + d->__nonoption_flags_max_len), + '\0', top + 1 - d->__nonoption_flags_max_len); + d->__nonoption_flags_max_len = top + 1; + __getopt_nonoption_flags = new_str; + } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) - { - /* Bottom segment is the short one. */ - int len = middle - bottom; - register int i; - - /* Swap it with the top part of the top segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[top - (middle - bottom) + i]; - argv[top - (middle - bottom) + i] = tem; - SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); - } - /* Exclude the moved bottom segment from further swapping. */ - top -= len; - } + { + /* Bottom segment is the short one. */ + int len = middle - bottom; + register int i; + + /* Swap it with the top part of the top segment. */ + for (i = 0; i < len; i++) + { + tem = argv[bottom + i]; + argv[bottom + i] = argv[top - (middle - bottom) + i]; + argv[top - (middle - bottom) + i] = tem; + SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); + } + /* Exclude the moved bottom segment from further swapping. */ + top -= len; + } else - { - /* Top segment is the short one. */ - int len = top - middle; - register int i; - - /* Swap it with the bottom part of the bottom segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[middle + i]; - argv[middle + i] = tem; - SWAP_FLAGS (bottom + i, middle + i); - } - /* Exclude the moved top segment from further swapping. */ - bottom += len; - } + { + /* Top segment is the short one. */ + int len = top - middle; + register int i; + + /* Swap it with the bottom part of the bottom segment. */ + for (i = 0; i < len; i++) + { + tem = argv[bottom + i]; + argv[bottom + i] = argv[middle + i]; + argv[middle + i] = tem; + SWAP_FLAGS (bottom + i, middle + i); + } + /* Exclude the moved top segment from further swapping. */ + bottom += len; + } } /* Update records for the slots the non-options now occupy. */ @@ -229,8 +222,9 @@ /* Initialize the internal data when the first call is made. */ static const char * -_getopt_initialize (int argc, char **argv, const char *optstring, - int posixly_correct, struct _getopt_data *d) +_getopt_initialize (int argc _GL_UNUSED, + char **argv _GL_UNUSED, const char *optstring, + struct _getopt_data *d, int posixly_correct) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped @@ -264,25 +258,25 @@ && argc == __libc_argc && argv == __libc_argv) { if (d->__nonoption_flags_max_len == 0) - { - if (__getopt_nonoption_flags == NULL - || __getopt_nonoption_flags[0] == '\0') - d->__nonoption_flags_max_len = -1; - else - { - const char *orig_str = __getopt_nonoption_flags; - int len = d->__nonoption_flags_max_len = strlen (orig_str); - if (d->__nonoption_flags_max_len < argc) - d->__nonoption_flags_max_len = argc; - __getopt_nonoption_flags = - (char *) malloc (d->__nonoption_flags_max_len); - if (__getopt_nonoption_flags == NULL) - d->__nonoption_flags_max_len = -1; - else - memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), - '\0', d->__nonoption_flags_max_len - len); - } - } + { + if (__getopt_nonoption_flags == NULL + || __getopt_nonoption_flags[0] == '\0') + d->__nonoption_flags_max_len = -1; + else + { + const char *orig_str = __getopt_nonoption_flags; + int len = d->__nonoption_flags_max_len = strlen (orig_str); + if (d->__nonoption_flags_max_len < argc) + d->__nonoption_flags_max_len = argc; + __getopt_nonoption_flags = + (char *) malloc (d->__nonoption_flags_max_len); + if (__getopt_nonoption_flags == NULL) + d->__nonoption_flags_max_len = -1; + else + memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), + '\0', d->__nonoption_flags_max_len - len); + } + } d->__nonoption_flags_len = d->__nonoption_flags_max_len; } else @@ -334,6 +328,10 @@ `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. + The elements of ARGV aren't really const, because we permute them. + But we pretend they're const in the prototype to be compatible + with other systems. + LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. @@ -342,19 +340,14 @@ recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce - long-named options. - - If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT - environment variable were set. */ + long-named options. */ int _getopt_internal_r (int argc, char **argv, const char *optstring, - const struct option *longopts, int *longind, - int long_only, int posixly_correct, struct _getopt_data *d) + const struct option *longopts, int *longind, + int long_only, struct _getopt_data *d, int posixly_correct) { int print_errors = d->opterr; - if (optstring[0] == ':') - print_errors = 0; if (argc < 1) return -1; @@ -364,11 +357,15 @@ if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) - d->optind = 1; /* Don't scan ARGV[0], the program name. */ - optstring = _getopt_initialize (argc, argv, optstring, - posixly_correct, d); + d->optind = 1; /* Don't scan ARGV[0], the program name. */ + optstring = _getopt_initialize (argc, argv, optstring, d, + posixly_correct); d->__initialized = 1; } + else if (optstring[0] == '-' || optstring[0] == '+') + optstring++; + if (optstring[0] == ':') + print_errors = 0; /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag @@ -376,8 +373,8 @@ is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ - || (d->optind < d->__nonoption_flags_len \ - && __getopt_nonoption_flags[d->optind] == '1')) + || (d->optind < d->__nonoption_flags_len \ + && __getopt_nonoption_flags[d->optind] == '1')) #else # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') #endif @@ -387,78 +384,78 @@ /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been - moved back by the user (who may also have changed the arguments). */ + moved back by the user (who may also have changed the arguments). */ if (d->__last_nonopt > d->optind) - d->__last_nonopt = d->optind; + d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) - d->__first_nonopt = d->optind; + d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) - { - /* If we have just processed some options following some non-options, - exchange them so that the options come first. */ - - if (d->__first_nonopt != d->__last_nonopt - && d->__last_nonopt != d->optind) - exchange ((char **) argv, d); - else if (d->__last_nonopt != d->optind) - d->__first_nonopt = d->optind; - - /* Skip any additional non-options - and extend the range of non-options previously skipped. */ - - while (d->optind < argc && NONOPTION_P) - d->optind++; - d->__last_nonopt = d->optind; - } + { + /* If we have just processed some options following some non-options, + exchange them so that the options come first. */ + + if (d->__first_nonopt != d->__last_nonopt + && d->__last_nonopt != d->optind) + exchange ((char **) argv, d); + else if (d->__last_nonopt != d->optind) + d->__first_nonopt = d->optind; + + /* Skip any additional non-options + and extend the range of non-options previously skipped. */ + + while (d->optind < argc && NONOPTION_P) + d->optind++; + d->__last_nonopt = d->optind; + } /* The special ARGV-element `--' means premature end of options. - Skip it like a null option, - then exchange with previous non-options as if it were an option, - then skip everything else like a non-option. */ + Skip it like a null option, + then exchange with previous non-options as if it were an option, + then skip everything else like a non-option. */ if (d->optind != argc && !strcmp (argv[d->optind], "--")) - { - d->optind++; + { + d->optind++; - if (d->__first_nonopt != d->__last_nonopt - && d->__last_nonopt != d->optind) - exchange ((char **) argv, d); - else if (d->__first_nonopt == d->__last_nonopt) - d->__first_nonopt = d->optind; - d->__last_nonopt = argc; + if (d->__first_nonopt != d->__last_nonopt + && d->__last_nonopt != d->optind) + exchange ((char **) argv, d); + else if (d->__first_nonopt == d->__last_nonopt) + d->__first_nonopt = d->optind; + d->__last_nonopt = argc; - d->optind = argc; - } + d->optind = argc; + } /* If we have done all the ARGV-elements, stop the scan - and back over any non-options that we skipped and permuted. */ + and back over any non-options that we skipped and permuted. */ if (d->optind == argc) - { - /* Set the next-arg-index to point at the non-options - that we previously skipped, so the caller will digest them. */ - if (d->__first_nonopt != d->__last_nonopt) - d->optind = d->__first_nonopt; - return -1; - } + { + /* Set the next-arg-index to point at the non-options + that we previously skipped, so the caller will digest them. */ + if (d->__first_nonopt != d->__last_nonopt) + d->optind = d->__first_nonopt; + return -1; + } /* If we have come to a non-option and did not permute it, - either stop the scan or describe it to the caller and pass it by. */ + either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) - { - if (d->__ordering == REQUIRE_ORDER) - return -1; - d->optarg = argv[d->optind++]; - return 1; - } + { + if (d->__ordering == REQUIRE_ORDER) + return -1; + d->optarg = argv[d->optind++]; + return 1; + } /* We have found another option-ARGV-element. - Skip the initial punctuation. */ + Skip the initial punctuation. */ d->__nextchar = (argv[d->optind] + 1 - + (longopts != NULL && argv[d->optind][1] == '-')); + + (longopts != NULL && argv[d->optind][1] == '-')); } /* Decode the current option-ARGV-element. */ @@ -478,8 +475,8 @@ if (longopts != NULL && (argv[d->optind][1] == '-' - || (long_only && (argv[d->optind][2] - || !strchr (optstring, argv[d->optind][1]))))) + || (long_only && (argv[d->optind][2] + || !strchr (optstring, argv[d->optind][1]))))) { char *nameend; const struct option *p; @@ -490,594 +487,585 @@ int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++) - /* Do nothing. */ ; + /* Do nothing. */ ; /* Test all long options for either exact match - or abbreviated matches. */ + or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) - { - if ((unsigned int) (nameend - d->__nextchar) - == (unsigned int) strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else if (long_only - || pfound->has_arg != p->has_arg - || pfound->flag != p->flag - || pfound->val != p->val) - /* Second or later nonexact match found. */ - ambig = 1; - } + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) + { + if ((unsigned int) (nameend - d->__nextchar) + == (unsigned int) strlen (p->name)) + { + /* Exact match found. */ + pfound = p; + indfound = option_index; + exact = 1; + break; + } + else if (pfound == NULL) + { + /* First nonexact match found. */ + pfound = p; + indfound = option_index; + } + else if (long_only + || pfound->has_arg != p->has_arg + || pfound->flag != p->flag + || pfound->val != p->val) + /* Second or later nonexact match found. */ + ambig = 1; + } if (ambig && !exact) - { - if (print_errors) - { + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"), - argv[0], argv[d->optind]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("%s: option '%s' is ambiguous\n"), + argv[0], argv[d->optind]) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option `%s' is ambiguous\n"), - argv[0], argv[d->optind]); + fprintf (stderr, _("%s: option '%s' is ambiguous\n"), + argv[0], argv[d->optind]); #endif - } - d->__nextchar += strlen (d->__nextchar); - d->optind++; - d->optopt = 0; - return '?'; - } + } + d->__nextchar += strlen (d->__nextchar); + d->optind++; + d->optopt = 0; + return '?'; + } if (pfound != NULL) - { - option_index = indfound; - d->optind++; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - d->optarg = nameend + 1; - else - { - if (print_errors) - { + { + option_index = indfound; + d->optind++; + if (*nameend) + { + /* Don't test has_arg with >, because some C compilers don't + allow it to be used on enums. */ + if (pfound->has_arg) + d->optarg = nameend + 1; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (argv[d->optind - 1][1] == '-') - { - /* --option */ + if (argv[d->optind - 1][1] == '-') + { + /* --option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("\ -%s: option `--%s' doesn't allow an argument\n"), - argv[0], pfound->name); + n = __asprintf (&buf, _("\ +%s: option '--%s' doesn't allow an argument\n"), + argv[0], pfound->name); #else - fprintf (stderr, _("\ -%s: option `--%s' doesn't allow an argument\n"), - argv[0], pfound->name); -#endif - } - else - { - /* +option or -option */ + fprintf (stderr, _("\ +%s: option '--%s' doesn't allow an argument\n"), + argv[0], pfound->name); +#endif + } + else + { + /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("\ -%s: option `%c%s' doesn't allow an argument\n"), - argv[0], argv[d->optind - 1][0], - pfound->name); + n = __asprintf (&buf, _("\ +%s: option '%c%s' doesn't allow an argument\n"), + argv[0], argv[d->optind - 1][0], + pfound->name); #else - fprintf (stderr, _("\ -%s: option `%c%s' doesn't allow an argument\n"), - argv[0], argv[d->optind - 1][0], - pfound->name); + fprintf (stderr, _("\ +%s: option '%c%s' doesn't allow an argument\n"), + argv[0], argv[d->optind - 1][0], + pfound->name); #endif - } + } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); - - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; - - __fxprintf (NULL, "%s", buf); - - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); - - free (buf); - } -#endif - } - - d->__nextchar += strlen (d->__nextchar); - - d->optopt = pfound->val; - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (d->optind < argc) - d->optarg = argv[d->optind++]; - else - { - if (print_errors) - { + if (n >= 0) + { + _IO_flockfile (stderr); + + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; + + __fxprintf (NULL, "%s", buf); + + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); + + free (buf); + } +#endif + } + + d->__nextchar += strlen (d->__nextchar); + + d->optopt = pfound->val; + return '?'; + } + } + else if (pfound->has_arg == 1) + { + if (d->optind < argc) + d->optarg = argv[d->optind++]; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '--%s' requires an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]); -#endif - } - d->__nextchar += strlen (d->__nextchar); - d->optopt = pfound->val; - return optstring[0] == ':' ? ':' : '?'; - } - } - d->__nextchar += strlen (d->__nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } + fprintf (stderr, + _("%s: option '--%s' requires an argument\n"), + argv[0], pfound->name); +#endif + } + d->__nextchar += strlen (d->__nextchar); + d->optopt = pfound->val; + return optstring[0] == ':' ? ':' : '?'; + } + } + d->__nextchar += strlen (d->__nextchar); + if (longind != NULL) + *longind = option_index; + if (pfound->flag) + { + *(pfound->flag) = pfound->val; + return 0; + } + return pfound->val; + } /* Can't find it as a long option. If this is not getopt_long_only, - or the option starts with '--' or is not a valid short - option, then it's an error. - Otherwise interpret it as a short option. */ + or the option starts with '--' or is not a valid short + option, then it's an error. + Otherwise interpret it as a short option. */ if (!long_only || argv[d->optind][1] == '-' - || strchr (optstring, *d->__nextchar) == NULL) - { - if (print_errors) - { + || strchr (optstring, *d->__nextchar) == NULL) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (argv[d->optind][1] == '-') - { - /* --option */ + if (argv[d->optind][1] == '-') + { + /* --option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"), - argv[0], d->__nextchar); + n = __asprintf (&buf, _("%s: unrecognized option '--%s'\n"), + argv[0], d->__nextchar); #else - fprintf (stderr, _("%s: unrecognized option `--%s'\n"), - argv[0], d->__nextchar); + fprintf (stderr, _("%s: unrecognized option '--%s'\n"), + argv[0], d->__nextchar); #endif - } - else - { - /* +option or -option */ + } + else + { + /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"), - argv[0], argv[d->optind][0], d->__nextchar); + n = __asprintf (&buf, _("%s: unrecognized option '%c%s'\n"), + argv[0], argv[d->optind][0], d->__nextchar); #else - fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), - argv[0], argv[d->optind][0], d->__nextchar); + fprintf (stderr, _("%s: unrecognized option '%c%s'\n"), + argv[0], argv[d->optind][0], d->__nextchar); #endif - } + } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); - - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - - __fxprintf (NULL, "%s", buf); - - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); - - free (buf); - } -#endif - } - d->__nextchar = (char *) ""; - d->optind++; - d->optopt = 0; - return '?'; - } + if (n >= 0) + { + _IO_flockfile (stderr); + + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + + __fxprintf (NULL, "%s", buf); + + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); + + free (buf); + } +#endif + } + d->__nextchar = (char *) ""; + d->optind++; + d->optopt = 0; + return '?'; + } } /* Look at and handle the next short option-character. */ { char c = *d->__nextchar++; - char *temp = strchr (optstring, c); + const char *temp = strchr (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; - if (temp == NULL || c == ':') + if (temp == NULL || c == ':' || c == ';') { - if (print_errors) - { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (d->__posixly_correct) - { - /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: illegal option -- %c\n"), - argv[0], c); + n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"), + argv[0], c); #else - fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); + fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c); #endif - } - else - { -#if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: invalid option -- %c\n"), - argv[0], c); -#else - fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); -#endif - } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); + if (n >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #endif - } - d->optopt = c; - return '?'; + } + d->optopt = c; + return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { - char *nameend; - const struct option *p; - const struct option *pfound = NULL; - int exact = 0; - int ambig = 0; - int indfound = 0; - int option_index; - - /* This is an option that requires an argument. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - d->optind++; - } - else if (d->optind == argc) - { - if (print_errors) - { - /* 1003.2 specifies the format of this message. */ + char *nameend; + const struct option *p; + const struct option *pfound = NULL; + int exact = 0; + int ambig = 0; + int indfound = 0; + int option_index; + + /* This is an option that requires an argument. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + /* If we end this ARGV-element by taking the rest as an arg, + we must advance to the next element now. */ + d->optind++; + } + else if (d->optind == argc) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, - _("%s: option requires an argument -- %c\n"), - argv[0], c) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option requires an argument -- %c\n"), - argv[0], c); -#endif - } - d->optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - return c; - } - else - /* We already incremented `d->optind' once; - increment it again when taking next ARGV-elt as argument. */ - d->optarg = argv[d->optind++]; - - /* optarg is now the argument, see if it's in the - table of longopts. */ - - for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; - nameend++) - /* Do nothing. */ ; - - /* Test all long options for either exact match - or abbreviated matches. */ - for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) - { - if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else - /* Second or later nonexact match found. */ - ambig = 1; - } - if (ambig && !exact) - { - if (print_errors) - { + fprintf (stderr, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c); +#endif + } + d->optopt = c; + if (optstring[0] == ':') + c = ':'; + else + c = '?'; + return c; + } + else + /* We already incremented `d->optind' once; + increment it again when taking next ARGV-elt as argument. */ + d->optarg = argv[d->optind++]; + + /* optarg is now the argument, see if it's in the + table of longopts. */ + + for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; + nameend++) + /* Do nothing. */ ; + + /* Test all long options for either exact match + or abbreviated matches. */ + for (p = longopts, option_index = 0; p->name; p++, option_index++) + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) + { + if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) + { + /* Exact match found. */ + pfound = p; + indfound = option_index; + exact = 1; + break; + } + else if (pfound == NULL) + { + /* First nonexact match found. */ + pfound = p; + indfound = option_index; + } + else if (long_only + || pfound->has_arg != p->has_arg + || pfound->flag != p->flag + || pfound->val != p->val) + /* Second or later nonexact match found. */ + ambig = 1; + } + if (ambig && !exact) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"), - argv[0], argv[d->optind]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("%s: option '-W %s' is ambiguous\n"), + argv[0], d->optarg) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), - argv[0], argv[d->optind]); + fprintf (stderr, _("%s: option '-W %s' is ambiguous\n"), + argv[0], d->optarg); #endif - } - d->__nextchar += strlen (d->__nextchar); - d->optind++; - return '?'; - } - if (pfound != NULL) - { - option_index = indfound; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - d->optarg = nameend + 1; - else - { - if (print_errors) - { + } + d->__nextchar += strlen (d->__nextchar); + d->optind++; + return '?'; + } + if (pfound != NULL) + { + option_index = indfound; + if (*nameend) + { + /* Don't test has_arg with >, because some C compilers don't + allow it to be used on enums. */ + if (pfound->has_arg) + d->optarg = nameend + 1; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `-W %s' doesn't allow an argument\n"), - argv[0], pfound->name) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '-W %s' doesn't allow an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("\ -%s: option `-W %s' doesn't allow an argument\n"), - argv[0], pfound->name); -#endif - } - - d->__nextchar += strlen (d->__nextchar); - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (d->optind < argc) - d->optarg = argv[d->optind++]; - else - { - if (print_errors) - { + fprintf (stderr, _("\ +%s: option '-W %s' doesn't allow an argument\n"), + argv[0], pfound->name); +#endif + } + + d->__nextchar += strlen (d->__nextchar); + return '?'; + } + } + else if (pfound->has_arg == 1) + { + if (d->optind < argc) + d->optarg = argv[d->optind++]; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '-W %s' requires an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]); -#endif - } - d->__nextchar += strlen (d->__nextchar); - return optstring[0] == ':' ? ':' : '?'; - } - } - d->__nextchar += strlen (d->__nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } - d->__nextchar = NULL; - return 'W'; /* Let the application handle it. */ + fprintf (stderr, _("\ +%s: option '-W %s' requires an argument\n"), + argv[0], pfound->name); +#endif + } + d->__nextchar += strlen (d->__nextchar); + return optstring[0] == ':' ? ':' : '?'; + } + } + else + d->optarg = NULL; + d->__nextchar += strlen (d->__nextchar); + if (longind != NULL) + *longind = option_index; + if (pfound->flag) + { + *(pfound->flag) = pfound->val; + return 0; + } + return pfound->val; + } + d->__nextchar = NULL; + return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { - if (temp[2] == ':') - { - /* This is an option that accepts an argument optionally. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - d->optind++; - } - else - d->optarg = NULL; - d->__nextchar = NULL; - } - else - { - /* This is an option that requires an argument. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - d->optind++; - } - else if (d->optind == argc) - { - if (print_errors) - { - /* 1003.2 specifies the format of this message. */ + if (temp[2] == ':') + { + /* This is an option that accepts an argument optionally. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + d->optind++; + } + else + d->optarg = NULL; + d->__nextchar = NULL; + } + else + { + /* This is an option that requires an argument. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + /* If we end this ARGV-element by taking the rest as an arg, + we must advance to the next element now. */ + d->optind++; + } + else if (d->optind == argc) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option requires an argument -- %c\n"), - argv[0], c) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option requires an argument -- '%c'\n"), + argv[0], c) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option requires an argument -- %c\n"), - argv[0], c); -#endif - } - d->optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - } - else - /* We already incremented `optind' once; - increment it again when taking next ARGV-elt as argument. */ - d->optarg = argv[d->optind++]; - d->__nextchar = NULL; - } + fprintf (stderr, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c); +#endif + } + d->optopt = c; + if (optstring[0] == ':') + c = ':'; + else + c = '?'; + } + else + /* We already incremented `optind' once; + increment it again when taking next ARGV-elt as argument. */ + d->optarg = argv[d->optind++]; + d->__nextchar = NULL; + } } return c; } @@ -1085,16 +1073,17 @@ int _getopt_internal (int argc, char **argv, const char *optstring, - const struct option *longopts, int *longind, - int long_only, int posixly_correct) + const struct option *longopts, int *longind, int long_only, + int posixly_correct) { int result; getopt_data.optind = optind; getopt_data.opterr = opterr; - result = _getopt_internal_r (argc, argv, optstring, longopts, longind, - long_only, posixly_correct, &getopt_data); + result = _getopt_internal_r (argc, argv, optstring, longopts, + longind, long_only, &getopt_data, + posixly_correct); optind = getopt_data.optind; optarg = getopt_data.optarg; @@ -1114,9 +1103,22 @@ int getopt (int argc, char *const *argv, const char *optstring) { - return _getopt_internal (argc, (char **) argv, optstring, NULL, NULL, 0, - POSIXLY_CORRECT); + return _getopt_internal (argc, (char **) argv, optstring, + (const struct option *) 0, + (int *) 0, + 0, POSIXLY_CORRECT); +} + +#ifdef _LIBC +int +__posix_getopt (int argc, char *const *argv, const char *optstring) +{ + return _getopt_internal (argc, argv, optstring, + (const struct option *) 0, + (int *) 0, + 0, 1); } +#endif #ifdef TEST @@ -1136,51 +1138,51 @@ c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) - break; + break; switch (c) - { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + if (digit_optind != 0 && digit_optind != this_option_optind) + printf ("digits occur in two different argv-elements.\n"); + digit_optind = this_option_optind; + printf ("option %c\n", c); + break; + + case 'a': + printf ("option a\n"); + break; + + case 'b': + printf ("option b\n"); + break; + + case 'c': + printf ("option c with value '%s'\n", optarg); + break; + + case '?': + break; + + default: + printf ("?? getopt returned character code 0%o ??\n", c); + } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) - printf ("%s ", argv[optind++]); + printf ("%s ", argv[optind++]); printf ("\n"); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/getopt.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/getopt.in.h 2007-10-07 20:28:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt.in.h 2010-04-25 09:20:41.000000000 +0000 @@ -1,6 +1,6 @@ /* Declarations for getopt. - Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005,2006,2007 - Free Software Foundation, Inc. + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -16,10 +16,25 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef _GETOPT_H +#ifndef _GL_GETOPT_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. We must + also inform the replacement unistd.h to not recursively use + ; our definitions will be present soon enough. */ +#if @HAVE_GETOPT_H@ +# define _GL_SYSTEM_GETOPT +# @INCLUDE_NEXT@ @NEXT_GETOPT_H@ +# undef _GL_SYSTEM_GETOPT +#endif + +#ifndef _GL_GETOPT_H #ifndef __need_getopt -# define _GETOPT_H 1 +# define _GL_GETOPT_H 1 #endif /* Ensure that DLL_VARIABLE is defined. Since on OSF/1 4.0 and Irix 6.5 @@ -34,14 +49,17 @@ identifier that prefixes the external functions and variables defined in this header. When this happens, include the headers that might declare getopt so that they will not cause - confusion if included after this file. Then systematically rename + confusion if included after this file (if the system had , + we have already included it). Then systematically rename identifiers so that they do not collide with the system functions and variables. Renaming avoids problems with some compilers and linkers. */ #if defined __GETOPT_PREFIX && !defined __need_getopt -# include -# include -# include +# if !@HAVE_GETOPT_H@ +# include +# include +# include +# endif # undef __need_getopt # undef getopt # undef getopt_long @@ -50,6 +68,7 @@ # undef opterr # undef optind # undef optopt +# undef option # define __GETOPT_CONCAT(x, y) x ## y # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) @@ -60,6 +79,8 @@ # define opterr __GETOPT_ID (opterr) # define optind __GETOPT_ID (optind) # define optopt __GETOPT_ID (optopt) +# define option __GETOPT_ID (option) +# define _getopt_internal __GETOPT_ID (getopt_internal) #endif /* Standalone applications get correct prototypes for getopt_long and @@ -102,12 +123,14 @@ # define __GNUC_PREREQ(maj, min) (0) # endif # if defined __cplusplus && __GNUC_PREREQ (2,8) -# define __THROW throw () +# define __THROW throw () # else # define __THROW # endif #endif +/* The definition of _GL_ARG_NONNULL is copied here. */ + #ifdef __cplusplus extern "C" { #endif @@ -150,9 +173,9 @@ zero. The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. + no_argument (or 0) if the option does not take an argument, + required_argument (or 1) if the option requires an argument, + optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but @@ -177,10 +200,10 @@ /* Names for the values of the `has_arg' field of `struct option'. */ -# define no_argument 0 -# define required_argument 1 -# define optional_argument 2 -#endif /* need getopt */ +# define no_argument 0 +# define required_argument 1 +# define optional_argument 2 +#endif /* need getopt */ /* Get definitions and prototypes for functions to process the @@ -209,17 +232,17 @@ the environment, then do not permute arguments. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) - __THROW; + __THROW _GL_ARG_NONNULL ((2, 3)); #ifndef __need_getopt extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; + const char *__shortopts, + const struct option *__longopts, int *__longind) + __THROW _GL_ARG_NONNULL ((2, 3)); extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; + const char *__shortopts, + const struct option *__longopts, int *__longind) + __THROW _GL_ARG_NONNULL ((2, 3)); #endif @@ -231,3 +254,4 @@ #undef __need_getopt #endif /* getopt.h */ +#endif /* getopt.h */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/getopt_int.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt_int.h --- gettext-0.17/gettext-runtime/gnulib-lib/getopt_int.h 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/getopt_int.h 2010-04-25 09:20:41.000000000 +0000 @@ -1,6 +1,6 @@ /* Internal declarations for getopt. - Copyright (C) 1989-1994,1996-1999,2001,2003,2004 - Free Software Foundation, Inc. + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -17,17 +17,53 @@ along with this program. If not, see . */ #ifndef _GETOPT_INT_H -#define _GETOPT_INT_H 1 +#define _GETOPT_INT_H 1 + +#include extern int _getopt_internal (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only, int __posixly_correct); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only, int __posixly_correct); /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ +/* Describe how to deal with options that follow non-option ARGV-elements. + + If the caller did not specify anything, + the default is REQUIRE_ORDER if the environment variable + POSIXLY_CORRECT is defined, PERMUTE otherwise. + + REQUIRE_ORDER means don't recognize them as options; + stop option processing when the first non-option is seen. + This is what Unix does. + This mode of operation is selected by either setting the environment + variable POSIXLY_CORRECT, or using `+' as the first character + of the list of option characters, or by calling getopt. + + PERMUTE is the default. We permute the contents of ARGV as we + scan, so that eventually all the non-options are at the end. + This allows options to be given in any order, even with programs + that were not written to expect this. + + RETURN_IN_ORDER is an option available to programs that were + written to expect options and other ARGV-elements in any order + and that care about the ordering of the two. We describe each + non-option ARGV-element as if it were the argument of an option + with character code 1. Using `-' as the first character of the + list of option characters selects this mode of operation. + + The special argument `--' forces an end of option-scanning regardless + of the value of `ordering'. In the case of RETURN_IN_ORDER, only + `--' can cause `getopt' to return -1 with `optind' != ARGC. */ + +enum __ord + { + REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER + }; + /* Data type for reentrant functions. */ struct _getopt_data { @@ -52,39 +88,8 @@ by advancing to the next ARGV-element. */ char *__nextchar; - /* Describe how to deal with options that follow non-option ARGV-elements. - - If the caller did not specify anything, - the default is REQUIRE_ORDER if the environment variable - POSIXLY_CORRECT is defined, PERMUTE otherwise. - - REQUIRE_ORDER means don't recognize them as options; - stop option processing when the first non-option is seen. - This is what Unix does. - This mode of operation is selected by either setting the environment - variable POSIXLY_CORRECT, or using `+' as the first character - of the list of option characters, or by calling getopt. - - PERMUTE is the default. We permute the contents of ARGV as we - scan, so that eventually all the non-options are at the end. - This allows options to be given in any order, even with programs - that were not written to expect this. - - RETURN_IN_ORDER is an option available to programs that were - written to expect options and other ARGV-elements in any order - and that care about the ordering of the two. We describe each - non-option ARGV-element as if it were the argument of an option - with character code 1. Using `-' as the first character of the - list of option characters selects this mode of operation. - - The special argument `--' forces an end of option-scanning regardless - of the value of `ordering'. In the case of RETURN_IN_ORDER, only - `--' can cause `getopt' to return -1 with `optind' != ARGC. */ - - enum - { - REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER - } __ordering; + /* See __ord above. */ + enum __ord __ordering; /* If the POSIXLY_CORRECT environment variable is set or getopt was called. */ @@ -108,23 +113,23 @@ /* The initializer is necessary to set OPTIND and OPTERR to their default values and to clear the initialization flag. */ -#define _GETOPT_DATA_INITIALIZER { 1, 1 } +#define _GETOPT_DATA_INITIALIZER { 1, 1 } extern int _getopt_internal_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only, int __posixly_correct, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only, struct _getopt_data *__data, + int __posixly_correct); extern int _getopt_long_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, int *__longind, + struct _getopt_data *__data); extern int _getopt_long_only_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, - int *__longind, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, + int *__longind, + struct _getopt_data *__data); #endif /* getopt_int.h */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/gettext.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/gettext.h --- gettext-0.17/gettext-runtime/gnulib-lib/gettext.h 2007-10-31 12:35:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/gettext.h 2009-12-12 11:36:49.000000000 +0000 @@ -1,9 +1,9 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -64,21 +64,30 @@ for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ +# undef gettext # define gettext(Msgid) ((const char *) (Msgid)) +# undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) +# undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) +# undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) +# undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) +# undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) +# undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) +# undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) +# undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) @@ -132,8 +141,8 @@ #endif static const char * pgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - int category) + const char *msg_ctxt_id, const char *msgid, + int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) @@ -151,9 +160,9 @@ #endif static const char * npgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msg_ctxt_id, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); @@ -191,8 +200,8 @@ #endif static const char * dcpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - int category) + const char *msgctxt, const char *msgid, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -214,10 +223,10 @@ translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) - return translation; + return translation; } return msgid; } @@ -236,9 +245,9 @@ #endif static const char * dcnpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msgctxt, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -260,10 +269,10 @@ translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) - return translation; + return translation; } return (n == 1 ? msgid : msgid_plural); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv.in.h 2007-10-17 22:34:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv.in.h 2010-04-25 09:20:41.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,23 +18,39 @@ #ifndef _GL_ICONV_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_ICONV_H@ #ifndef _GL_ICONV_H #define _GL_ICONV_H -#ifdef __cplusplus -extern "C" { -#endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ #if @REPLACE_ICONV_OPEN@ /* An iconv_open wrapper that supports the IANA standardized encoding names ("ISO-8859-1" etc.) as far as possible. */ -# define iconv_open rpl_iconv_open -extern iconv_t iconv_open (const char *tocode, const char *fromcode); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_open rpl_iconv_open +# endif +_GL_FUNCDECL_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); +#else +_GL_CXXALIAS_SYS (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); #endif +_GL_CXXALIASWARN (iconv_open); #if @REPLACE_ICONV_UTF@ /* Special constants for supporting UTF-{16,32}{BE,LE} encodings. @@ -50,18 +66,36 @@ #endif #if @REPLACE_ICONV@ -# define iconv rpl_iconv -extern size_t iconv (iconv_t cd, - @ICONV_CONST@ char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft); -# define iconv_close rpl_iconv_close -extern int iconv_close (iconv_t cd); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv rpl_iconv +# endif +_GL_FUNCDECL_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +_GL_CXXALIAS_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +#else +_GL_CXXALIAS_SYS (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); #endif +_GL_CXXALIASWARN (iconv); - -#ifdef __cplusplus -} +#if @REPLACE_ICONV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_close rpl_iconv_close +# endif +_GL_FUNCDECL_RPL (iconv_close, int, (iconv_t cd)); +_GL_CXXALIAS_RPL (iconv_close, int, (iconv_t cd)); +#else +_GL_CXXALIAS_SYS (iconv_close, int, (iconv_t cd)); #endif +_GL_CXXALIASWARN (iconv_close); + #endif /* _GL_ICONV_H */ #endif /* _GL_ICONV_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-aix.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-aix.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-aix.h 2007-05-13 19:20:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-aix.h 2009-07-19 20:42:50.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-aix.gperf */ /* Computed positions: -k'4,$' */ @@ -229,7 +229,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open.c --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open.c 2007-10-17 22:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,9 +1,9 @@ /* Character set conversion. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -36,6 +36,7 @@ #define ICONV_FLAVOR_HPUX "iconv_open-hpux.h" #define ICONV_FLAVOR_IRIX "iconv_open-irix.h" #define ICONV_FLAVOR_OSF "iconv_open-osf.h" +#define ICONV_FLAVOR_SOLARIS "iconv_open-solaris.h" #ifdef ICONV_FLAVOR # include ICONV_FLAVOR @@ -66,33 +67,33 @@ && fromcode[3] == '-') { if (c_toupper (tocode[0]) == 'U' - && c_toupper (tocode[1]) == 'T' - && c_toupper (tocode[2]) == 'F' - && tocode[3] == '-') - { - if (strcmp (fromcode + 4, "8") == 0) - { - if (c_strcasecmp (tocode + 4, "16BE") == 0) - return _ICONV_UTF8_UTF16BE; - if (c_strcasecmp (tocode + 4, "16LE") == 0) - return _ICONV_UTF8_UTF16LE; - if (c_strcasecmp (tocode + 4, "32BE") == 0) - return _ICONV_UTF8_UTF32BE; - if (c_strcasecmp (tocode + 4, "32LE") == 0) - return _ICONV_UTF8_UTF32LE; - } - else if (strcmp (tocode + 4, "8") == 0) - { - if (c_strcasecmp (fromcode + 4, "16BE") == 0) - return _ICONV_UTF16BE_UTF8; - if (c_strcasecmp (fromcode + 4, "16LE") == 0) - return _ICONV_UTF16LE_UTF8; - if (c_strcasecmp (fromcode + 4, "32BE") == 0) - return _ICONV_UTF32BE_UTF8; - if (c_strcasecmp (fromcode + 4, "32LE") == 0) - return _ICONV_UTF32LE_UTF8; - } - } + && c_toupper (tocode[1]) == 'T' + && c_toupper (tocode[2]) == 'F' + && tocode[3] == '-') + { + if (strcmp (fromcode + 4, "8") == 0) + { + if (c_strcasecmp (tocode + 4, "16BE") == 0) + return _ICONV_UTF8_UTF16BE; + if (c_strcasecmp (tocode + 4, "16LE") == 0) + return _ICONV_UTF8_UTF16LE; + if (c_strcasecmp (tocode + 4, "32BE") == 0) + return _ICONV_UTF8_UTF32BE; + if (c_strcasecmp (tocode + 4, "32LE") == 0) + return _ICONV_UTF8_UTF32LE; + } + else if (strcmp (tocode + 4, "8") == 0) + { + if (c_strcasecmp (fromcode + 4, "16BE") == 0) + return _ICONV_UTF16BE_UTF8; + if (c_strcasecmp (fromcode + 4, "16LE") == 0) + return _ICONV_UTF16LE_UTF8; + if (c_strcasecmp (fromcode + 4, "32BE") == 0) + return _ICONV_UTF32BE_UTF8; + if (c_strcasecmp (fromcode + 4, "32LE") == 0) + return _ICONV_UTF32LE_UTF8; + } + } } #endif @@ -115,20 +116,20 @@ /* Convert the encodings to upper case, because 1. in the arguments of iconv_open() on AIX, HP-UX, and OSF/1 the case - matters, + matters, 2. it makes searching in the table faster. */ { const char *p = fromcode; char *q = fromcode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } fromcode_upper_end = q; } @@ -138,13 +139,13 @@ char *q = tocode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &tocode_upper[SIZEOF (tocode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &tocode_upper[SIZEOF (tocode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } tocode_upper_end = q; } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-hpux.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-hpux.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-hpux.h 2007-05-13 19:20:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-hpux.h 2009-07-19 20:42:50.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-hpux.gperf */ /* Computed positions: -k'4,$' */ @@ -272,7 +272,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-irix.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-irix.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-irix.h 2007-05-13 19:20:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-irix.h 2009-07-19 20:42:50.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-irix.gperf */ /* Computed positions: -k'1,$' */ @@ -172,7 +172,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-osf.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-osf.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-osf.h 2007-05-13 19:20:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-osf.h 2009-07-19 20:42:51.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-osf.gperf */ /* Computed positions: -k'4,$' */ @@ -251,7 +251,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-solaris.gperf gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-solaris.gperf --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-solaris.gperf 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-solaris.gperf 2009-08-30 14:55:06.000000000 +0000 @@ -0,0 +1,30 @@ +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; +%struct-type +%language=ANSI-C +%define slot-name standard_name +%define hash-function-name mapping_hash +%define lookup-function-name mapping_lookup +%readonly-tables +%global-table +%define word-array-name mappings +%pic +%% +# On Solaris 10, look in the "iconv -l" output. Some aliases are advertised but +# not actually supported by the iconv() function and by the 'iconv' program. +# For example: +# $ echo abc | iconv -f 646 -t ISO-8859-1 +# Not supported 646 to ISO-8859-1 +# $ echo abc | iconv -f 646 -t ISO8859-1 +$ abc +ASCII, "646" +ISO-8859-1, "ISO8859-1" +ISO-8859-2, "ISO8859-2" +ISO-8859-3, "ISO8859-3" +ISO-8859-4, "ISO8859-4" +ISO-8859-5, "ISO8859-5" +ISO-8859-6, "ISO8859-6" +ISO-8859-7, "ISO8859-7" +ISO-8859-8, "ISO8859-8" +ISO-8859-9, "ISO8859-9" +ISO-8859-15, "ISO8859-15" +CP1251, "ansi-1251" diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-solaris.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-solaris.h --- gettext-0.17/gettext-runtime/gnulib-lib/iconv_open-solaris.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/iconv_open-solaris.h 2009-08-30 15:17:44.000000000 +0000 @@ -0,0 +1,190 @@ +/* ANSI-C code produced by gperf version 3.0.4 */ +/* Command-line: gperf -m 10 ./iconv_open-solaris.gperf */ +/* Computed positions: -k'10' */ + +#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ + && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ + && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ + && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ + && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ + && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ + && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ + && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ + && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ + && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ + && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ + && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ + && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ + && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ + && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ + && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ + && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ + && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ + && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ + && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ + && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ + && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ + && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) +/* The character set is not based on ISO-646. */ +#error "gperf generated tables don't work with this execution character set. Please report a bug to ." +#endif + +#line 1 "./iconv_open-solaris.gperf" +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; + +#define TOTAL_KEYWORDS 13 +#define MIN_WORD_LENGTH 5 +#define MAX_WORD_LENGTH 11 +#define MIN_HASH_VALUE 5 +#define MAX_HASH_VALUE 19 +/* maximum key range = 15, duplicates = 0 */ + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static unsigned int +mapping_hash (register const char *str, register unsigned int len) +{ + static const unsigned char asso_values[] = + { + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, + 9, 8, 7, 6, 5, 4, 3, 2, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20 + }; + register int hval = len; + + switch (hval) + { + default: + hval += asso_values[(unsigned char)str[9]]; + /*FALLTHROUGH*/ + case 9: + case 8: + case 7: + case 6: + case 5: + break; + } + return hval; +} + +struct stringpool_t + { + char stringpool_str5[sizeof("ASCII")]; + char stringpool_str6[sizeof("CP1251")]; + char stringpool_str7[sizeof("$ abc")]; + char stringpool_str10[sizeof("ISO-8859-1")]; + char stringpool_str11[sizeof("ISO-8859-15")]; + char stringpool_str12[sizeof("ISO-8859-9")]; + char stringpool_str13[sizeof("ISO-8859-8")]; + char stringpool_str14[sizeof("ISO-8859-7")]; + char stringpool_str15[sizeof("ISO-8859-6")]; + char stringpool_str16[sizeof("ISO-8859-5")]; + char stringpool_str17[sizeof("ISO-8859-4")]; + char stringpool_str18[sizeof("ISO-8859-3")]; + char stringpool_str19[sizeof("ISO-8859-2")]; + }; +static const struct stringpool_t stringpool_contents = + { + "ASCII", + "CP1251", + "$ abc", + "ISO-8859-1", + "ISO-8859-15", + "ISO-8859-9", + "ISO-8859-8", + "ISO-8859-7", + "ISO-8859-6", + "ISO-8859-5", + "ISO-8859-4", + "ISO-8859-3", + "ISO-8859-2" + }; +#define stringpool ((const char *) &stringpool_contents) + +static const struct mapping mappings[] = + { + {-1}, {-1}, {-1}, {-1}, {-1}, +#line 19 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str5, "646"}, +#line 30 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str6, "ansi-1251"}, +#line 18 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str7}, + {-1}, {-1}, +#line 20 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str10, "ISO8859-1"}, +#line 29 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str11, "ISO8859-15"}, +#line 28 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str12, "ISO8859-9"}, +#line 27 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str13, "ISO8859-8"}, +#line 26 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str14, "ISO8859-7"}, +#line 25 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str15, "ISO8859-6"}, +#line 24 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str16, "ISO8859-5"}, +#line 23 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str17, "ISO8859-4"}, +#line 22 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str18, "ISO8859-3"}, +#line 21 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str19, "ISO8859-2"} + }; + +#ifdef __GNUC__ +__inline +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ +__attribute__ ((__gnu_inline__)) +#endif +#endif +const struct mapping * +mapping_lookup (register const char *str, register unsigned int len) +{ + if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) + { + register int key = mapping_hash (str, len); + + if (key <= MAX_HASH_VALUE && key >= 0) + { + register int o = mappings[key].standard_name; + if (o >= 0) + { + register const char *s = o + stringpool; + + if (*str == *s && !strcmp (str + 1, s + 1)) + return &mappings[key]; + } + } + } + return 0; +} diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/intprops.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/intprops.h --- gettext-0.17/gettext-runtime/gnulib-lib/intprops.h 2007-10-17 22:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/intprops.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,6 +1,7 @@ /* intprops.h -- properties of integer types - Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,40 +18,43 @@ /* Written by Paul Eggert. */ -#include +#ifndef GL_INTPROPS_H +# define GL_INTPROPS_H + +# include /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ -#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) +# define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if negative values of the signed integer type T use two's complement, ones' complement, or signed magnitude representation, respectively. Much GNU code assumes two's complement, but some people like to be portable to all possible C hosts. */ -#define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) -#define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) -#define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) +# define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) +# define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) +# define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) /* True if the arithmetic type T is signed. */ -#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) +# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The maximum and minimum values for the integer type T. These macros have undefined behavior if T is signed and has padding bits. If this is a problem for you, please let us know how to fix it for your host. */ -#define TYPE_MINIMUM(t) \ +# define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) 0 \ - : TYPE_SIGNED_MAGNITUDE (t) \ - ? ~ (t) 0 \ - : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ + ? (t) 0 \ + : TYPE_SIGNED_MAGNITUDE (t) \ + ? ~ (t) 0 \ + : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +# define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) + ? (t) -1 \ + : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) /* Return zero if T can be determined to be an unsigned type. Otherwise, return 1. @@ -58,20 +62,22 @@ tighter bound. Otherwise, it overestimates the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. The symbol signed_type_or_expr__ is private to this header file. */ -#if __GNUC__ >= 2 -# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) -#else -# define signed_type_or_expr__(t) 1 -#endif +# if __GNUC__ >= 2 +# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) +# else +# define signed_type_or_expr__(t) 1 +# endif /* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if T is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ -#define INT_STRLEN_BOUND(t) \ +# define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - signed_type_or_expr__ (t)) * 146 / 485 \ + signed_type_or_expr__ (t) + 1) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ -#define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) +# define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) + +#endif /* GL_INTPROPS_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/localcharset.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/localcharset.c --- gettext-0.17/gettext-runtime/gnulib-lib/localcharset.c 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/localcharset.c 2010-05-09 01:36:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006 Free Software Foundation, Inc. + Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,21 +23,29 @@ /* Specification. */ #include "localcharset.h" +#include #include #include #include #include +#if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET +# define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ +#endif + #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ -# define OS2 +# ifndef OS2 +# define OS2 +# endif #endif #if !defined WIN32_NATIVE +# include # if HAVE_LANGINFO_CODESET # include # else @@ -69,6 +77,11 @@ # include "configmake.h" #endif +/* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ +#ifndef O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') @@ -110,160 +123,220 @@ cp = charset_aliases; if (cp == NULL) { -#if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) - FILE *fp; +#if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is - necessary for running the testsuite before "make install". */ + necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') - dir = relocate (LIBDIR); + dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { - size_t dir_len = strlen (dir); - size_t base_len = strlen (base); - int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); - file_name = (char *) malloc (dir_len + add_slash + base_len + 1); - if (file_name != NULL) - { - memcpy (file_name, dir, dir_len); - if (add_slash) - file_name[dir_len] = DIRECTORY_SEPARATOR; - memcpy (file_name + dir_len + add_slash, base, base_len + 1); - } + size_t dir_len = strlen (dir); + size_t base_len = strlen (base); + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); + file_name = (char *) malloc (dir_len + add_slash + base_len + 1); + if (file_name != NULL) + { + memcpy (file_name, dir, dir_len); + if (add_slash) + file_name[dir_len] = DIRECTORY_SEPARATOR; + memcpy (file_name + dir_len + add_slash, base, base_len + 1); + } } - if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) - /* Out of memory or file not found, treat it as empty. */ - cp = ""; + if (file_name == NULL) + /* Out of memory. Treat the file as empty. */ + cp = ""; else - { - /* Parse the file's contents. */ - char *res_ptr = NULL; - size_t res_size = 0; - - for (;;) - { - int c; - char buf1[50+1]; - char buf2[50+1]; - size_t l1, l2; - char *old_res_ptr; - - c = getc (fp); - if (c == EOF) - break; - if (c == '\n' || c == ' ' || c == '\t') - continue; - if (c == '#') - { - /* Skip comment, to end of line. */ - do - c = getc (fp); - while (!(c == EOF || c == '\n')); - if (c == EOF) - break; - continue; - } - ungetc (c, fp); - if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) - break; - l1 = strlen (buf1); - l2 = strlen (buf2); - old_res_ptr = res_ptr; - if (res_size == 0) - { - res_size = l1 + 1 + l2 + 1; - res_ptr = (char *) malloc (res_size + 1); - } - else - { - res_size += l1 + 1 + l2 + 1; - res_ptr = (char *) realloc (res_ptr, res_size + 1); - } - if (res_ptr == NULL) - { - /* Out of memory. */ - res_size = 0; - if (old_res_ptr != NULL) - free (old_res_ptr); - break; - } - strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); - strcpy (res_ptr + res_size - (l2 + 1), buf2); - } - fclose (fp); - if (res_size == 0) - cp = ""; - else - { - *(res_ptr + res_size) = '\0'; - cp = res_ptr; - } - } + { + int fd; - if (file_name != NULL) - free (file_name); + /* Open the file. Reject symbolic links on platforms that support + O_NOFOLLOW. This is a security feature. Without it, an attacker + could retrieve parts of the contents (namely, the tail of the + first line that starts with "* ") of an arbitrary file by placing + a symbolic link to that file under the name "charset.alias" in + some writable directory and defining the environment variable + CHARSETALIASDIR to point to that directory. */ + fd = open (file_name, + O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); + if (fd < 0) + /* File not found. Treat it as empty. */ + cp = ""; + else + { + FILE *fp; + + fp = fdopen (fd, "r"); + if (fp == NULL) + { + /* Out of memory. Treat the file as empty. */ + close (fd); + cp = ""; + } + else + { + /* Parse the file's contents. */ + char *res_ptr = NULL; + size_t res_size = 0; + + for (;;) + { + int c; + char buf1[50+1]; + char buf2[50+1]; + size_t l1, l2; + char *old_res_ptr; + + c = getc (fp); + if (c == EOF) + break; + if (c == '\n' || c == ' ' || c == '\t') + continue; + if (c == '#') + { + /* Skip comment, to end of line. */ + do + c = getc (fp); + while (!(c == EOF || c == '\n')); + if (c == EOF) + break; + continue; + } + ungetc (c, fp); + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) + break; + l1 = strlen (buf1); + l2 = strlen (buf2); + old_res_ptr = res_ptr; + if (res_size == 0) + { + res_size = l1 + 1 + l2 + 1; + res_ptr = (char *) malloc (res_size + 1); + } + else + { + res_size += l1 + 1 + l2 + 1; + res_ptr = (char *) realloc (res_ptr, res_size + 1); + } + if (res_ptr == NULL) + { + /* Out of memory. */ + res_size = 0; + if (old_res_ptr != NULL) + free (old_res_ptr); + break; + } + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); + strcpy (res_ptr + res_size - (l2 + 1), buf2); + } + fclose (fp); + if (res_size == 0) + cp = ""; + else + { + *(res_ptr + res_size) = '\0'; + cp = res_ptr; + } + } + } + + free (file_name); + } #else +# if defined DARWIN7 + /* To avoid the trouble of installing a file that is shared by many + GNU packages -- many packaging systems have problems with this --, + simply inline the aliases here. */ + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-4" "\0" "ISO-8859-4" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + "ISO8859-13" "\0" "ISO-8859-13" "\0" + "ISO8859-15" "\0" "ISO-8859-15" "\0" + "KOI8-R" "\0" "KOI8-R" "\0" + "KOI8-U" "\0" "KOI8-U" "\0" + "CP866" "\0" "CP866" "\0" + "CP949" "\0" "CP949" "\0" + "CP1131" "\0" "CP1131" "\0" + "CP1251" "\0" "CP1251" "\0" + "eucCN" "\0" "GB2312" "\0" + "GB2312" "\0" "GB2312" "\0" + "eucJP" "\0" "EUC-JP" "\0" + "eucKR" "\0" "EUC-KR" "\0" + "Big5" "\0" "BIG5" "\0" + "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" + "GBK" "\0" "GBK" "\0" + "GB18030" "\0" "GB18030" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "ARMSCII-8" "\0" "ARMSCII-8" "\0" + "PT154" "\0" "PT154" "\0" + /*"ISCII-DEV" "\0" "?" "\0"*/ + "*" "\0" "UTF-8" "\0"; +# endif + # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the - sources of many GNU packages, simply inline the aliases here. */ + sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation - "Compaq C Run-Time Library Reference Manual for OpenVMS systems" - section 10.7 "Handling Different Character Sets". */ + "Compaq C Run-Time Library Reference Manual for OpenVMS systems" + section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-8" "\0" "ISO-8859-8" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - /* Japanese */ - "eucJP" "\0" "EUC-JP" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "DECKANJI" "\0" "DEC-KANJI" "\0" - "SDECKANJI" "\0" "EUC-JP" "\0" - /* Chinese */ - "eucTW" "\0" "EUC-TW" "\0" - "DECHANYU" "\0" "DEC-HANYU" "\0" - "DECHANZI" "\0" "GB2312" "\0" - /* Korean */ - "DECKOREAN" "\0" "EUC-KR" "\0"; + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-8" "\0" "ISO-8859-8" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + /* Japanese */ + "eucJP" "\0" "EUC-JP" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "DECKANJI" "\0" "DEC-KANJI" "\0" + "SDECKANJI" "\0" "EUC-JP" "\0" + /* Chinese */ + "eucTW" "\0" "EUC-TW" "\0" + "DECHANYU" "\0" "DEC-HANYU" "\0" + "DECHANZI" "\0" "GB2312" "\0" + /* Korean */ + "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ + directory as the DLL and of retrieving the DLL's directory at + runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" - "CP1361" "\0" "JOHAB" "\0" - "CP20127" "\0" "ASCII" "\0" - "CP20866" "\0" "KOI8-R" "\0" - "CP20936" "\0" "GB2312" "\0" - "CP21866" "\0" "KOI8-RU" "\0" - "CP28591" "\0" "ISO-8859-1" "\0" - "CP28592" "\0" "ISO-8859-2" "\0" - "CP28593" "\0" "ISO-8859-3" "\0" - "CP28594" "\0" "ISO-8859-4" "\0" - "CP28595" "\0" "ISO-8859-5" "\0" - "CP28596" "\0" "ISO-8859-6" "\0" - "CP28597" "\0" "ISO-8859-7" "\0" - "CP28598" "\0" "ISO-8859-8" "\0" - "CP28599" "\0" "ISO-8859-9" "\0" - "CP28605" "\0" "ISO-8859-15" "\0" - "CP38598" "\0" "ISO-8859-8" "\0" - "CP51932" "\0" "EUC-JP" "\0" - "CP51936" "\0" "GB2312" "\0" - "CP51949" "\0" "EUC-KR" "\0" - "CP51950" "\0" "EUC-TW" "\0" - "CP54936" "\0" "GB18030" "\0" - "CP65001" "\0" "UTF-8" "\0"; + "CP1361" "\0" "JOHAB" "\0" + "CP20127" "\0" "ASCII" "\0" + "CP20866" "\0" "KOI8-R" "\0" + "CP20936" "\0" "GB2312" "\0" + "CP21866" "\0" "KOI8-RU" "\0" + "CP28591" "\0" "ISO-8859-1" "\0" + "CP28592" "\0" "ISO-8859-2" "\0" + "CP28593" "\0" "ISO-8859-3" "\0" + "CP28594" "\0" "ISO-8859-4" "\0" + "CP28595" "\0" "ISO-8859-5" "\0" + "CP28596" "\0" "ISO-8859-6" "\0" + "CP28597" "\0" "ISO-8859-7" "\0" + "CP28598" "\0" "ISO-8859-8" "\0" + "CP28599" "\0" "ISO-8859-9" "\0" + "CP28605" "\0" "ISO-8859-15" "\0" + "CP38598" "\0" "ISO-8859-8" "\0" + "CP51932" "\0" "EUC-JP" "\0" + "CP51936" "\0" "GB2312" "\0" + "CP51949" "\0" "EUC-KR" "\0" + "CP51950" "\0" "EUC-TW" "\0" + "CP54936" "\0" "GB18030" "\0" + "CP65001" "\0" "UTF-8" "\0"; # endif #endif @@ -296,10 +369,9 @@ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ - /* Cygwin 2006 does not have locales. nl_langinfo (CODESET) always - returns "US-ASCII". As long as this is not fixed, return the suffix - of the locale name from the environment variables (if present) or - the codepage as a number. */ + /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always + returns "US-ASCII". Return the suffix of the locale name from the + environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; @@ -307,36 +379,46 @@ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return - it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - } - - /* Woe32 has a function returning the locale's codepage as a number. */ + { + /* If the locale name contains an encoding after the dot, return + it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + } + + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). This encoding is used by Cygwin, unless the user has set + the environment variable CYGWIN=codepage:oem (which very few people + do). + Output directed to console windows needs to be converted (to + GetOEMCP() if the console is using a raster font, or to + GetConsoleOutputCP() if it is using a TrueType font). Cygwin does + this conversion transparently (see winsup/cygwin/fhandler_console.cc), + converting to GetConsoleOutputCP(). This leads to correct results, + except when SetConsoleOutputCP has been called and a raster font is + in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } @@ -358,11 +440,11 @@ { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } } /* On some old systems, one used to set locale = "iso8859_1". On others, @@ -376,7 +458,13 @@ static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number. */ + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). + When the output goes to a console window, it needs to be provided in + GetOEMCP() encoding if the console is using a raster font, or in + GetConsoleOutputCP() encoding if it is using a TrueType font. + But in GUI programs and for output sent to files and pipes, GetACP() + encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; @@ -394,7 +482,7 @@ { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); + locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { @@ -402,21 +490,21 @@ const char *dot = strchr (locale, '.'); if (dot != NULL) - { - const char *modifier; + { + const char *modifier; - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } /* Resolve through the charset.alias file. */ codeset = locale; @@ -425,12 +513,12 @@ { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) - codeset = ""; + codeset = ""; else - { - sprintf (buf, "CP%u", cp[0]); - codeset = buf; - } + { + sprintf (buf, "CP%u", cp[0]); + codeset = buf; + } } #endif @@ -444,10 +532,10 @@ *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 - || (aliases[0] == '*' && aliases[1] == '\0')) + || (aliases[0] == '*' && aliases[1] == '\0')) { - codeset = aliases + strlen (aliases) + 1; - break; + codeset = aliases + strlen (aliases) + 1; + break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/localcharset.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/localcharset.h --- gettext-0.17/gettext-runtime/gnulib-lib/localcharset.h 2007-01-27 03:21:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/localcharset.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2003 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/lstat.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/lstat.c --- gettext-0.17/gettext-runtime/gnulib-lib/lstat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/lstat.c 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,91 @@ +/* Work around a bug of lstat on some systems + + Copyright (C) 1997-2006, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Jim Meyering */ + +#include + +#if !HAVE_LSTAT +/* On systems that lack symlinks, our replacement already + defined lstat as stat, so there is nothing further to do other than + avoid an empty file. */ +typedef int dummy; +#else /* HAVE_LSTAT */ + +/* Get the original definition of lstat. It might be defined as a macro. */ +# define __need_system_sys_stat_h +# include +# include +# undef __need_system_sys_stat_h + +static inline int +orig_lstat (const char *filename, struct stat *buf) +{ + return lstat (filename, buf); +} + +/* Specification. */ +# include + +# include +# include + +/* lstat works differently on Linux and Solaris systems. POSIX (see + `pathname resolution' in the glossary) requires that programs like + `ls' take into consideration the fact that FILE has a trailing slash + when FILE is a symbolic link. On Linux and Solaris 10 systems, the + lstat function already has the desired semantics (in treating + `lstat ("symlink/", sbuf)' just like `lstat ("symlink/.", sbuf)', + but on Solaris 9 and earlier it does not. + + If FILE has a trailing slash and specifies a symbolic link, + then use stat() to get more info on the referent of FILE. + If the referent is a non-directory, then set errno to ENOTDIR + and return -1. Otherwise, return stat's result. */ + +int +rpl_lstat (const char *file, struct stat *sbuf) +{ + size_t len; + int lstat_result = orig_lstat (file, sbuf); + + if (lstat_result != 0) + return lstat_result; + + /* This replacement file can blindly check against '/' rather than + using the ISSLASH macro, because all platforms with '\\' either + lack symlinks (mingw) or have working lstat (cygwin) and thus do + not compile this file. 0 len should have already been filtered + out above, with a failure return of ENOENT. */ + len = strlen (file); + if (file[len - 1] != '/' || S_ISDIR (sbuf->st_mode)) + return 0; + + /* At this point, a trailing slash is only permitted on + symlink-to-dir; but it should have found information on the + directory, not the symlink. Call stat() to get info about the + link's referent. Our replacement stat guarantees valid results, + even if the symlink is not pointing to a directory. */ + if (!S_ISLNK (sbuf->st_mode)) + { + errno = ENOTDIR; + return -1; + } + return stat (file, sbuf); +} + +#endif /* HAVE_LSTAT */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/Makefile.am gettext-0.18.1.1/gettext-runtime/gnulib-lib/Makefile.am --- gettext-0.17/gettext-runtime/gnulib-lib/Makefile.am 2007-11-02 00:41:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/Makefile.am 2010-06-03 21:35:21.000000000 +0000 @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -9,10 +9,11 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error exit getopt gettext-h gettext-runtime-misc java javacomp-script memmove progname propername relocatable-prog stdbool strtoul unlocked-io xalloc +# Reproduce by: gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error getopt-gnu gettext-h gettext-runtime-misc havelib java javacomp-script memmove progname propername relocatable-prog sigpipe stdbool stdio stdlib strtoul unlocked-io xalloc AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects +SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = @@ -26,6 +27,7 @@ MAINTAINERCLEANFILES = AM_CPPFLAGS = +AM_CFLAGS = noinst_LIBRARIES += libgrt.a @@ -34,15 +36,6 @@ libgrt_a_DEPENDENCIES = $(gl_LIBOBJS) EXTRA_libgrt_a_SOURCES = -## begin gnulib module absolute-header - -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) - -## end gnulib module absolute-header - ## begin gnulib module alloca-opt BUILT_SOURCES += $(ALLOCA_H) @@ -50,9 +43,10 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t @@ -68,6 +62,30 @@ ## end gnulib module areadlink +## begin gnulib module arg-nonnull + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += arg-nonnull.h +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t + +ARG_NONNULL_H=arg-nonnull.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/arg-nonnull.h + +## end gnulib module arg-nonnull + ## begin gnulib module atexit @@ -83,6 +101,30 @@ ## end gnulib module basename +## begin gnulib module c++defs + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/c++defs.h + +## end gnulib module c++defs + ## begin gnulib module c-ctype libgrt_a_SOURCES += c-ctype.h c-ctype.c @@ -95,16 +137,10 @@ ## end gnulib module c-strcase -## begin gnulib module c-strstr - -libgrt_a_SOURCES += c-strstr.h c-strstr.c - -## end gnulib module c-strstr - ## begin gnulib module canonicalize-lgpl -EXTRA_DIST += canonicalize-lgpl.c canonicalize.h +EXTRA_DIST += canonicalize-lgpl.c EXTRA_libgrt_a_SOURCES += canonicalize-lgpl.c @@ -136,7 +172,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -165,8 +201,13 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t - mv $@-t $@ + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + BUILT_SOURCES += configmake.h CLEANFILES += configmake.h configmake.h-t @@ -179,6 +220,33 @@ ## end gnulib module csharpcomp-script +## begin gnulib module errno + +BUILT_SOURCES += $(ERRNO_H) + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += errno.h errno.h-t + +EXTRA_DIST += errno.in.h + +## end gnulib module errno + ## begin gnulib module error @@ -194,16 +262,22 @@ ## end gnulib module fwriteerror -## begin gnulib module getopt +## begin gnulib module getopt-posix BUILT_SOURCES += $(GETOPT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -getopt.h: getopt.in.h +getopt.h: getopt.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/getopt.in.h; \ - } > $@-t + sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/getopt.in.h; \ + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t @@ -211,7 +285,7 @@ EXTRA_libgrt_a_SOURCES += getopt.c getopt1.c -## end gnulib module getopt +## end gnulib module getopt-posix ## begin gnulib module gettext-h @@ -231,6 +305,12 @@ ## end gnulib module gettext-runtime-misc +## begin gnulib module gperf + +GPERF = gperf + +## end gnulib module gperf + ## begin gnulib module havelib @@ -238,45 +318,57 @@ ## end gnulib module havelib -## begin gnulib module iconv_open +## begin gnulib module iconv-h BUILT_SOURCES += $(ICONV_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += iconv.h iconv.h-t -GPERF = gperf +EXTRA_DIST += iconv.in.h + +## end gnulib module iconv-h + +## begin gnulib module iconv_open + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ -BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t -MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h +BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t iconv_open-solaris.h-t +MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h -EXTRA_DIST += iconv.in.h iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c +EXTRA_DIST += iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c EXTRA_libgrt_a_SOURCES += iconv_open.c @@ -296,14 +388,6 @@ ## end gnulib module javacomp-script -## begin gnulib module link-warning - -LINK_WARNING_H=$(top_srcdir)/../build-aux/link-warning.h - -EXTRA_DIST += $(top_srcdir)/../build-aux/link-warning.h - -## end gnulib module link-warning - ## begin gnulib module localcharset libgrt_a_SOURCES += localcharset.h localcharset.c @@ -319,21 +403,37 @@ charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -346,14 +446,14 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ SUFFIXES += .sed .sin .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ CLEANFILES += charset.alias ref-add.sed ref-del.sed @@ -362,6 +462,15 @@ ## end gnulib module localcharset +## begin gnulib module lstat + + +EXTRA_DIST += lstat.c + +EXTRA_libgrt_a_SOURCES += lstat.c + +## end gnulib module lstat + ## begin gnulib module malloc-posix @@ -387,6 +496,30 @@ ## end gnulib module mbchar +## begin gnulib module mbiter + +libgrt_a_SOURCES += mbiter.h + +## end gnulib module mbiter + +## begin gnulib module mbrtowc + + +EXTRA_DIST += mbrtowc.c + +EXTRA_libgrt_a_SOURCES += mbrtowc.c + +## end gnulib module mbrtowc + +## begin gnulib module mbsinit + + +EXTRA_DIST += mbsinit.c + +EXTRA_libgrt_a_SOURCES += mbsinit.c + +## end gnulib module mbsinit + ## begin gnulib module mbslen libgrt_a_SOURCES += mbslen.c @@ -397,6 +530,8 @@ libgrt_a_SOURCES += mbsstr.c +EXTRA_DIST += str-kmp.h + ## end gnulib module mbsstr ## begin gnulib module mbuiter @@ -408,7 +543,7 @@ ## begin gnulib module memchr -EXTRA_DIST += memchr.c +EXTRA_DIST += memchr.c memchr.valgrind EXTRA_libgrt_a_SOURCES += memchr.c @@ -466,12 +601,63 @@ ## begin gnulib module relocatable-prog-wrapper -EXTRA_DIST += areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c canonicalize.h malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c setenv.h strerror.c xreadlink.c xreadlink.h +EXTRA_DIST += areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c strerror.c EXTRA_DIST += $(top_srcdir)/../build-aux/install-reloc ## end gnulib module relocatable-prog-wrapper +## begin gnulib module signal + +BUILT_SOURCES += signal.h + +# We need the following in order to create when the system +# doesn't have a complete one. +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ + -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ + -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/signal.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += signal.h signal.h-t + +EXTRA_DIST += signal.in.h + +## end gnulib module signal + +## begin gnulib module sigprocmask + + +EXTRA_DIST += sigprocmask.c + +EXTRA_libgrt_a_SOURCES += sigprocmask.c + +## end gnulib module sigprocmask + +## begin gnulib module stat + + +EXTRA_DIST += stat.c + +EXTRA_libgrt_a_SOURCES += stat.c + +## end gnulib module stat + ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) @@ -479,10 +665,10 @@ # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdbool.h stdbool.h-t @@ -490,6 +676,29 @@ ## end gnulib module stdbool +## begin gnulib module stddef + +BUILT_SOURCES += $(STDDEF_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stddef.h stddef.h-t + +EXTRA_DIST += stddef.in.h + +## end gnulib module stddef + ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) @@ -497,10 +706,11 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -508,6 +718,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -522,7 +733,7 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdint.h stdint.h-t @@ -530,34 +741,190 @@ ## end gnulib module stdint +## begin gnulib module stdio + +BUILT_SOURCES += stdio.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ + -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ + -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ + -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ + -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ + -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ + -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ + -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ + -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ + -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ + -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ + -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ + -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ + -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ + -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ + -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stdio.h stdio.h-t + +EXTRA_DIST += stdio-write.c stdio.in.h + +EXTRA_libgrt_a_SOURCES += stdio-write.c + +## end gnulib module stdio + ## begin gnulib module stdlib BUILT_SOURCES += stdlib.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t @@ -565,15 +932,6 @@ ## end gnulib module stdlib -## begin gnulib module strdup - - -EXTRA_DIST += strdup.c - -EXTRA_libgrt_a_SOURCES += strdup.c - -## end gnulib module strdup - ## begin gnulib module streq @@ -604,10 +962,11 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -623,41 +982,63 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t @@ -698,40 +1079,230 @@ ## end gnulib module strtoul +## begin gnulib module sys_stat + +BUILT_SOURCES += sys/stat.h + +# We need the following in order to create when the system +# has one that is incomplete. +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ + -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_stat.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_stat.in.h + +## end gnulib module sys_stat + +## begin gnulib module time + +BUILT_SOURCES += time.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += time.h time.h-t + +EXTRA_DIST += time.in.h + +## end gnulib module time + +## begin gnulib module trim + +libgrt_a_SOURCES += trim.c + +EXTRA_DIST += trim.h + +## end gnulib module trim + ## begin gnulib module unistd BUILT_SOURCES += unistd.h # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t @@ -741,21 +1312,41 @@ ## begin gnulib module unitypes +BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H) + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unitypes.h unitypes.h-t -EXTRA_DIST += unitypes.h +EXTRA_DIST += unitypes.in.h ## end gnulib module unitypes ## begin gnulib module uniwidth/base +BUILT_SOURCES += $(LIBUNISTRING_UNIWIDTH_H) -EXTRA_DIST += localcharset.h uniwidth.h +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniwidth.h uniwidth.h-t + +EXTRA_DIST += localcharset.h uniwidth.in.h ## end gnulib module uniwidth/base ## begin gnulib module uniwidth/width +if LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH libgrt_a_SOURCES += uniwidth/width.c +endif EXTRA_DIST += uniwidth/cjk.h @@ -768,24 +1359,84 @@ ## end gnulib module unlocked-io +## begin gnulib module verify + +libgrt_a_SOURCES += verify.h + +## end gnulib module verify + +## begin gnulib module warn-on-use + +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/warn-on-use.h + +## end gnulib module warn-on-use + ## begin gnulib module wchar -BUILT_SOURCES += $(WCHAR_H) +BUILT_SOURCES += wchar.h # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wchar.h wchar.h-t @@ -795,20 +1446,25 @@ ## begin gnulib module wctype -BUILT_SOURCES += $(WCTYPE_H) +BUILT_SOURCES += wctype.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wctype.h wctype.h-t diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/Makefile.in gettext-0.18.1.1/gettext-runtime/gnulib-lib/Makefile.in --- gettext-0.17/gettext-runtime/gnulib-lib/Makefile.in 2007-11-06 23:34:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/Makefile.in 2010-06-06 20:11:37.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,7 +15,7 @@ @SET_MAKE@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -23,14 +24,15 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error exit getopt gettext-h gettext-runtime-misc java javacomp-script memmove progname propername relocatable-prog stdbool strtoul unlocked-io xalloc +# Reproduce by: gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error getopt-gnu gettext-h gettext-runtime-misc havelib java javacomp-script memmove progname propername relocatable-prog sigpipe stdbool stdio stdlib strtoul unlocked-io xalloc VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -45,16 +47,23 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__append_1 = uniwidth/width.c subdir = gnulib-lib DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -65,44 +74,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -113,53 +143,125 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru +AM_V_AR = $(am__v_AR_$(V)) +am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY)) +am__v_AR_0 = @echo " AR " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ libgrt_a_AR = $(AR) $(ARFLAGS) am__DEPENDENCIES_1 = +am__libgrt_a_SOURCES_DIST = areadlink.c basename.h basename.c \ + c-ctype.h c-ctype.c c-strcase.h c-strcasecmp.c c-strncasecmp.c \ + closeout.h closeout.c fwriteerror.h fwriteerror.c gettext.h \ + localcharset.h localcharset.c malloca.c mbchar.c mbiter.h \ + mbslen.c mbsstr.c mbuiter.h progname.h progname.c propername.h \ + propername.c striconv.h striconv.c strnlen1.h strnlen1.c \ + trim.c uniwidth/width.c verify.h xalloc.h xmalloc.c xstrdup.c \ + xreadlink.c xstriconv.h xstriconv.c am__dirstamp = $(am__leading_dot)dirstamp +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__objects_1 = uniwidth/width.$(OBJEXT) am_libgrt_a_OBJECTS = areadlink.$(OBJEXT) basename.$(OBJEXT) \ c-ctype.$(OBJEXT) c-strcasecmp.$(OBJEXT) \ - c-strncasecmp.$(OBJEXT) c-strstr.$(OBJEXT) closeout.$(OBJEXT) \ + c-strncasecmp.$(OBJEXT) closeout.$(OBJEXT) \ fwriteerror.$(OBJEXT) localcharset.$(OBJEXT) malloca.$(OBJEXT) \ mbchar.$(OBJEXT) mbslen.$(OBJEXT) mbsstr.$(OBJEXT) \ progname.$(OBJEXT) propername.$(OBJEXT) striconv.$(OBJEXT) \ - strnlen1.$(OBJEXT) uniwidth/width.$(OBJEXT) xmalloc.$(OBJEXT) \ - xstrdup.$(OBJEXT) xreadlink.$(OBJEXT) xstriconv.$(OBJEXT) + strnlen1.$(OBJEXT) trim.$(OBJEXT) $(am__objects_1) \ + xmalloc.$(OBJEXT) xstrdup.$(OBJEXT) xreadlink.$(OBJEXT) \ + xstriconv.$(OBJEXT) libgrt_a_OBJECTS = $(am_libgrt_a_OBJECTS) LTLIBRARIES = $(noinst_LTLIBRARIES) -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(libgrt_a_SOURCES) $(EXTRA_libgrt_a_SOURCES) -DIST_SOURCES = $(libgrt_a_SOURCES) $(EXTRA_libgrt_a_SOURCES) +DIST_SOURCES = $(am__libgrt_a_SOURCES_DIST) $(EXTRA_libgrt_a_SOURCES) +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive HEADERS = $(noinst_HEADERS) +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir ETAGS = etags CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -186,22 +288,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ -DEXEEXT=\"@EXEEXT@\" DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -209,117 +316,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -330,10 +661,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -347,7 +680,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -360,59 +700,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -427,8 +891,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -448,6 +911,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -461,6 +927,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -474,84 +941,106 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects no-dependencies +SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = libgrt.a noinst_LTLIBRARIES = -EXTRA_DIST = alloca.in.h areadlink.h atexit.c canonicalize-lgpl.c \ - canonicalize.h $(top_srcdir)/../build-aux/csharpcomp.sh.in \ - error.c error.h getopt.c getopt.in.h getopt1.c getopt_int.h \ - $(top_srcdir)/../build-aux/config.rpath iconv_open-aix.h \ - iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \ - iconv.in.h iconv_open-aix.gperf iconv_open-hpux.gperf \ - iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c \ +EXTRA_DIST = alloca.in.h areadlink.h \ + $(top_srcdir)/../build-aux/arg-nonnull.h atexit.c \ + $(top_srcdir)/../build-aux/c++defs.h canonicalize-lgpl.c \ + $(top_srcdir)/../build-aux/csharpcomp.sh.in errno.in.h error.c \ + error.h getopt.c getopt.in.h getopt1.c getopt_int.h \ + $(top_srcdir)/../build-aux/config.rpath iconv.in.h \ + iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ + iconv_open-osf.h iconv_open-solaris.h iconv_open-aix.gperf \ + iconv_open-hpux.gperf iconv_open-irix.gperf \ + iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c \ intprops.h $(top_srcdir)/../build-aux/javacomp.sh.in \ - $(top_srcdir)/../build-aux/link-warning.h config.charset \ - ref-add.sin ref-del.sin malloc.c malloca.h malloca.valgrind \ - mbchar.h memchr.c memmove.c pathmax.h readlink.c progreloc.c \ - relocatable.c relocatable.h \ + config.charset ref-add.sin ref-del.sin lstat.c malloc.c \ + malloca.h malloca.valgrind mbchar.h mbrtowc.c mbsinit.c \ + str-kmp.h memchr.c memchr.valgrind memmove.c pathmax.h \ + readlink.c progreloc.c relocatable.c relocatable.h \ $(top_srcdir)/../build-aux/config.libpath \ $(top_srcdir)/../build-aux/reloc-ldflags areadlink.c \ - areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c \ - canonicalize.h malloca.c malloca.h progname.c progname.h \ - progreloc.c readlink.c relocatable.c relocatable.h \ - relocwrapper.c setenv.c setenv.h strerror.c xreadlink.c \ - xreadlink.h $(top_srcdir)/../build-aux/install-reloc \ - stdbool.in.h stdint.in.h stdlib.in.h strdup.c streq.h \ - strerror.c string.in.h strnlen.c strtol.c strtoul.c \ - unistd.in.h unitypes.h localcharset.h uniwidth.h \ - uniwidth/cjk.h unlocked-io.h wchar.in.h wctype.in.h wcwidth.c \ - xreadlink.h -BUILT_SOURCES = $(ALLOCA_H) configmake.h $(GETOPT_H) $(ICONV_H) \ - iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ - iconv_open-osf.h $(STDBOOL_H) $(STDINT_H) stdlib.h string.h \ - unistd.h $(WCHAR_H) $(WCTYPE_H) + areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c malloca.c \ + malloca.h progname.c progname.h progreloc.c readlink.c \ + relocatable.c relocatable.h relocwrapper.c setenv.c strerror.c \ + $(top_srcdir)/../build-aux/install-reloc signal.in.h \ + sigprocmask.c stat.c stdbool.in.h stddef.in.h stdint.in.h \ + stdio-write.c stdio.in.h stdlib.in.h streq.h strerror.c \ + string.in.h strnlen.c strtol.c strtoul.c sys_stat.in.h \ + time.in.h trim.h unistd.in.h unitypes.in.h localcharset.h \ + uniwidth.in.h uniwidth/cjk.h unlocked-io.h \ + $(top_srcdir)/../build-aux/warn-on-use.h wchar.in.h \ + wctype.in.h wcwidth.c xreadlink.h + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. +BUILT_SOURCES = $(ALLOCA_H) arg-nonnull.h c++defs.h configmake.h \ + $(ERRNO_H) $(GETOPT_H) $(ICONV_H) iconv_open-aix.h \ + iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \ + iconv_open-solaris.h signal.h $(STDBOOL_H) $(STDDEF_H) \ + $(STDINT_H) stdio.h stdlib.h string.h sys/stat.h time.h \ + unistd.h $(LIBUNISTRING_UNITYPES_H) $(LIBUNISTRING_UNIWIDTH_H) \ + warn-on-use.h wchar.h wctype.h SUFFIXES = .sed .sin -MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t getopt.h \ - getopt.h-t iconv.h iconv.h-t iconv_open-aix.h-t \ +MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arg-nonnull.h \ + arg-nonnull.h-t c++defs.h c++defs.h-t errno.h errno.h-t \ + getopt.h getopt.h-t iconv.h iconv.h-t iconv_open-aix.h-t \ iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t \ - stdbool.h stdbool.h-t stdint.h stdint.h-t stdlib.h stdlib.h-t \ - string.h string.h-t unistd.h unistd.h-t wchar.h wchar.h-t \ - wctype.h wctype.h-t -MOSTLYCLEANDIRS = + iconv_open-solaris.h-t signal.h signal.h-t stdbool.h \ + stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t stdio.h \ + stdio.h-t stdlib.h stdlib.h-t string.h string.h-t sys/stat.h \ + sys/stat.h-t time.h time.h-t unistd.h unistd.h-t unitypes.h \ + unitypes.h-t uniwidth.h uniwidth.h-t warn-on-use.h \ + warn-on-use.h-t wchar.h wchar.h-t wctype.h wctype.h-t +MOSTLYCLEANDIRS = sys CLEANFILES = configmake.h configmake.h-t charset.alias ref-add.sed \ ref-del.sed DISTCLEANFILES = MAINTAINERCLEANFILES = iconv_open-aix.h iconv_open-hpux.h \ - iconv_open-irix.h iconv_open-osf.h + iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h # Hmm... is this still necessary? # Parametrization of the 'relocatable' module. AM_CPPFLAGS = -I$(top_builddir)/intl -I$(top_srcdir)/intl \ -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 +AM_CFLAGS = libgrt_a_SOURCES = areadlink.c basename.h basename.c c-ctype.h \ c-ctype.c c-strcase.h c-strcasecmp.c c-strncasecmp.c \ - c-strstr.h c-strstr.c closeout.h closeout.c fwriteerror.h \ - fwriteerror.c gettext.h localcharset.h localcharset.c \ - malloca.c mbchar.c mbslen.c mbsstr.c mbuiter.h progname.h \ - progname.c propername.h propername.c striconv.h striconv.c \ - strnlen1.h strnlen1.c uniwidth/width.c xalloc.h xmalloc.c \ - xstrdup.c xreadlink.c xstriconv.h xstriconv.c + closeout.h closeout.c fwriteerror.h fwriteerror.c gettext.h \ + localcharset.h localcharset.c malloca.c mbchar.c mbiter.h \ + mbslen.c mbsstr.c mbuiter.h progname.h progname.c propername.h \ + propername.c striconv.h striconv.c strnlen1.h strnlen1.c \ + trim.c $(am__append_1) verify.h xalloc.h xmalloc.c xstrdup.c \ + xreadlink.c xstriconv.h xstriconv.c libgrt_a_LIBADD = $(gl_LIBOBJS) libgrt_a_DEPENDENCIES = $(gl_LIBOBJS) EXTRA_libgrt_a_SOURCES = atexit.c canonicalize-lgpl.c error.c getopt.c \ - getopt1.c iconv_open.c malloc.c memchr.c memmove.c readlink.c \ - progreloc.c relocatable.c strdup.c strerror.c strnlen.c \ + getopt1.c iconv_open.c lstat.c malloc.c mbrtowc.c mbsinit.c \ + memchr.c memmove.c readlink.c progreloc.c relocatable.c \ + sigprocmask.c stat.c stdio-write.c strerror.c strnlen.c \ strtol.c strtoul.c wcwidth.c - -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) +ARG_NONNULL_H = arg-nonnull.h +CXXDEFS_H = c++defs.h GPERF = gperf -LINK_WARNING_H = $(top_srcdir)/../build-aux/link-warning.h charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp +WARN_ON_USE_H = warn-on-use.h all: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) all-am + $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .sed .sin .c .lo .o .obj @@ -559,14 +1048,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits gnulib-lib/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits gnulib-lib/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits gnulib-lib/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits gnulib-lib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -584,6 +1073,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) @@ -592,9 +1082,9 @@ @: > uniwidth/$(am__dirstamp) uniwidth/width.$(OBJEXT): uniwidth/$(am__dirstamp) libgrt.a: $(libgrt_a_OBJECTS) $(libgrt_a_DEPENDENCIES) - -rm -f libgrt.a - $(libgrt_a_AR) libgrt.a $(libgrt_a_OBJECTS) $(libgrt_a_LIBADD) - $(RANLIB) libgrt.a + $(AM_V_at)-rm -f libgrt.a + $(AM_V_AR)$(libgrt_a_AR) libgrt.a $(libgrt_a_OBJECTS) $(libgrt_a_LIBADD) + $(AM_V_at)$(RANLIB) libgrt.a clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @@ -613,12 +1103,15 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c -o $@ $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: @@ -627,50 +1120,137 @@ clean-libtool: -rm -rf .libs _libs +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -691,31 +1271,64 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done check-am: all-am check: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) check-am + $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) all-local -installdirs: +installdirs: installdirs-recursive +installdirs-am: install: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am + $(MAKE) $(AM_MAKEFLAGS) install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -installcheck: installcheck-am +installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ @@ -729,6 +1342,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f uniwidth/$(am__dirstamp) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) @@ -737,68 +1351,83 @@ @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -clean: clean-am +clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ clean-noinstLTLIBRARIES mostlyclean-am -distclean: distclean-am +distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags -dvi: dvi-am +dvi: dvi-recursive dvi-am: -html: html-am +html: html-recursive + +html-am: -info: info-am +info: info-recursive info-am: install-data-am: -install-dvi: install-dvi-am +install-dvi: install-dvi-recursive + +install-dvi-am: install-exec-am: install-exec-local -install-html: install-html-am +install-html: install-html-recursive + +install-html-am: -install-info: install-info-am +install-info: install-info-recursive + +install-info-am: install-man: -install-pdf: install-pdf-am +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive -install-ps: install-ps-am +install-ps-am: installcheck-am: -maintainer-clean: maintainer-clean-am +maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic -mostlyclean: mostlyclean-am +mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool mostlyclean-local -pdf: pdf-am +pdf: pdf-recursive pdf-am: -ps: ps-am +ps: ps-recursive ps-am: uninstall-am: uninstall-local -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ - clean-generic clean-libtool clean-noinstLIBRARIES \ - clean-noinstLTLIBRARIES ctags distclean distclean-compile \ +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ + ctags-recursive install install-am install-strip \ + tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am all-local check check-am clean clean-generic \ + clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ + ctags ctags-recursive distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ @@ -806,19 +1435,36 @@ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - mostlyclean-local pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-local + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am tags \ + tags-recursive uninstall uninstall-am uninstall-local # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ # Retrieve values of the variables through 'configure' followed by # 'make', not directly through 'configure', so that a user who @@ -838,7 +1484,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -867,43 +1513,79 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -getopt.h: getopt.in.h +getopt.h: getopt.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/getopt.in.h; \ - } > $@-t + sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/getopt.in.h; \ + } > $@-t && \ mv -f $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h # We need the following in order to install a simple file in $(libdir) # which is shared with other installed packages. We use a list of referencing @@ -913,21 +1595,37 @@ # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -940,30 +1638,69 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ +# We need the following in order to create when the system +# doesn't have a complete one. +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ + -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ + -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/signal.in.h; \ + } > $@-t && \ + mv $@-t $@ + # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -971,6 +1708,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -985,41 +1723,187 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ + -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ + -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ + -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ + -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ + -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ + -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ + -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ + -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ + -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ + -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ + -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ + -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ + -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ + -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ + -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -1035,103 +1919,350 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# has one that is incomplete. +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ + -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_stat.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ + mv $@-t $@ + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ mostlyclean-local: mostlyclean-generic @@ -1141,6 +2272,7 @@ fi; \ done; \ : + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/malloca.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloca.c --- gettext-0.17/gettext-runtime/gnulib-lib/malloca.c 2007-06-19 00:25:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloca.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -74,21 +74,21 @@ char *p = (char *) malloc (nplus); if (p != NULL) - { - size_t slot; + { + size_t slot; - p += HEADER_SIZE; + p += HEADER_SIZE; - /* Put a magic number into the indicator word. */ - ((int *) p)[-1] = MAGIC_NUMBER; + /* Put a magic number into the indicator word. */ + ((int *) p)[-1] = MAGIC_NUMBER; - /* Enter p into the hash table. */ - slot = (unsigned long) p % HASH_TABLE_SIZE; - ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; - mmalloca_results[slot] = p; + /* Enter p into the hash table. */ + slot = (unsigned long) p % HASH_TABLE_SIZE; + ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; + mmalloca_results[slot] = p; - return p; - } + return p; + } } /* Out of memory. */ return NULL; @@ -109,28 +109,28 @@ if (p != NULL) { /* Attempt to quickly distinguish the mmalloca() result - which has - a magic indicator word - and the alloca() result - which has an - uninitialized indicator word. It is for this test that sa_increment - additional bytes are allocated in the alloca() case. */ + a magic indicator word - and the alloca() result - which has an + uninitialized indicator word. It is for this test that sa_increment + additional bytes are allocated in the alloca() case. */ if (((int *) p)[-1] == MAGIC_NUMBER) - { - /* Looks like a mmalloca() result. To see whether it really is one, - perform a lookup in the hash table. */ - size_t slot = (unsigned long) p % HASH_TABLE_SIZE; - void **chain = &mmalloca_results[slot]; - for (; *chain != NULL;) - { - if (*chain == p) - { - /* Found it. Remove it from the hash table and free it. */ - char *p_begin = (char *) p - HEADER_SIZE; - *chain = ((struct header *) p_begin)->next; - free (p_begin); - return; - } - chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; - } - } + { + /* Looks like a mmalloca() result. To see whether it really is one, + perform a lookup in the hash table. */ + size_t slot = (unsigned long) p % HASH_TABLE_SIZE; + void **chain = &mmalloca_results[slot]; + for (; *chain != NULL;) + { + if (*chain == p) + { + /* Found it. Remove it from the hash table and free it. */ + char *p_begin = (char *) p - HEADER_SIZE; + *chain = ((struct header *) p_begin)->next; + free (p_begin); + return; + } + chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; + } + } /* At this point, we know it was not a mmalloca() result. */ } } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/malloca.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloca.h --- gettext-0.17/gettext-runtime/gnulib-lib/malloca.h 2007-06-19 00:25:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloca.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -54,7 +54,7 @@ the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ - ((N) < 4032 - sa_increment \ + ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : mmalloca (N)) #else @@ -70,9 +70,19 @@ # define freea free #endif -/* Maybe we should also define a variant - nmalloca (size_t n, size_t s) - behaves like malloca (n * s) - If this would be useful in your application. please speak up. */ +/* nmalloca(N,S) is an overflow-safe variant of malloca (N * S). + It allocates an array of N objects, each with S bytes of memory, + on the stack. S must be positive and N must be nonnegative. + The array must be freed using freea() before the function returns. */ +#if 1 +/* Cf. the definition of xalloc_oversized. */ +# define nmalloca(n, s) \ + ((n) > (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) \ + ? NULL \ + : malloca ((n) * (s))) +#else +extern void * nmalloca (size_t n, size_t s); +#endif #ifdef __cplusplus @@ -112,10 +122,10 @@ sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) #if HAVE_LONG_LONG_INT - | (sa_alignment_longlong - 1) + | (sa_alignment_longlong - 1) #endif - | (sa_alignment_longdouble - 1) - ) + 1, + | (sa_alignment_longdouble - 1) + ) + 1, /* The increment that guarantees room for a magic word must be >= sizeof (int) and a multiple of sa_alignment_max. */ sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/malloc.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloc.c --- gettext-0.17/gettext-runtime/gnulib-lib/malloc.c 2007-09-09 17:34:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/malloc.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* malloc() function that is glibc compatible. - Copyright (C) 1997, 1998, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-1998, 2006-2007, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbchar.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbchar.c --- gettext-0.17/gettext-runtime/gnulib-lib/mbchar.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbchar.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,10 +25,10 @@ /* Bit table of characters in the ISO C "basic character set". */ const unsigned int is_basic_table [UCHAR_MAX / 32 + 1] = { - 0x00001a00, /* '\t' '\v' '\f' */ - 0xffffffef, /* ' '...'#' '%'...'?' */ - 0xfffffffe, /* 'A'...'Z' '[' '\\' ']' '^' '_' */ - 0x7ffffffe /* 'a'...'z' '{' '|' '}' '~' */ + 0x00001a00, /* '\t' '\v' '\f' */ + 0xffffffef, /* ' '...'#' '%'...'?' */ + 0xfffffffe, /* 'A'...'Z' '[' '\\' ']' '^' '_' */ + 0x7ffffffe /* 'a'...'z' '{' '|' '}' '~' */ /* The remaining bits are 0. */ }; diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbchar.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbchar.h --- gettext-0.17/gettext-runtime/gnulib-lib/mbchar.h 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbchar.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Multibyte character data type. - Copyright (C) 2001, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -114,31 +114,31 @@ Here are the function prototypes of the macros. - extern const char * mb_ptr (const mbchar_t mbc); - extern size_t mb_len (const mbchar_t mbc); - extern bool mb_iseq (const mbchar_t mbc, char sc); - extern bool mb_isnul (const mbchar_t mbc); - extern int mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2); - extern int mb_casecmp (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_equal (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_caseequal (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_isalnum (const mbchar_t mbc); - extern bool mb_isalpha (const mbchar_t mbc); - extern bool mb_isascii (const mbchar_t mbc); - extern bool mb_isblank (const mbchar_t mbc); - extern bool mb_iscntrl (const mbchar_t mbc); - extern bool mb_isdigit (const mbchar_t mbc); - extern bool mb_isgraph (const mbchar_t mbc); - extern bool mb_islower (const mbchar_t mbc); - extern bool mb_isprint (const mbchar_t mbc); - extern bool mb_ispunct (const mbchar_t mbc); - extern bool mb_isspace (const mbchar_t mbc); - extern bool mb_isupper (const mbchar_t mbc); - extern bool mb_isxdigit (const mbchar_t mbc); - extern int mb_width (const mbchar_t mbc); - extern void mb_putc (const mbchar_t mbc, FILE *stream); + extern const char * mb_ptr (const mbchar_t mbc); + extern size_t mb_len (const mbchar_t mbc); + extern bool mb_iseq (const mbchar_t mbc, char sc); + extern bool mb_isnul (const mbchar_t mbc); + extern int mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2); + extern int mb_casecmp (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_equal (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_caseequal (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_isalnum (const mbchar_t mbc); + extern bool mb_isalpha (const mbchar_t mbc); + extern bool mb_isascii (const mbchar_t mbc); + extern bool mb_isblank (const mbchar_t mbc); + extern bool mb_iscntrl (const mbchar_t mbc); + extern bool mb_isdigit (const mbchar_t mbc); + extern bool mb_isgraph (const mbchar_t mbc); + extern bool mb_islower (const mbchar_t mbc); + extern bool mb_isprint (const mbchar_t mbc); + extern bool mb_ispunct (const mbchar_t mbc); + extern bool mb_isspace (const mbchar_t mbc); + extern bool mb_isupper (const mbchar_t mbc); + extern bool mb_isxdigit (const mbchar_t mbc); + extern int mb_width (const mbchar_t mbc); + extern void mb_putc (const mbchar_t mbc, FILE *stream); extern void mb_setascii (mbchar_t *new, char sc); - extern void mb_copy (mbchar_t *new, const mbchar_t *old); + extern void mb_copy (mbchar_t *new, const mbchar_t *old); */ #ifndef _MBCHAR_H @@ -160,10 +160,10 @@ struct mbchar { - const char *ptr; /* pointer to current character */ - size_t bytes; /* number of bytes of current character, > 0 */ - bool wc_valid; /* true if wc is a valid wide character */ - wchar_t wc; /* if wc_valid: the current character */ + const char *ptr; /* pointer to current character */ + size_t bytes; /* number of bytes of current character, > 0 */ + bool wc_valid; /* true if wc is a valid wide character */ + wchar_t wc; /* if wc_valid: the current character */ char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ }; @@ -180,38 +180,38 @@ #define mb_iseq(mbc, sc) ((mbc).wc_valid && (mbc).wc == (sc)) #define mb_isnul(mbc) ((mbc).wc_valid && (mbc).wc == 0) #define mb_cmp(mbc1, mbc2) \ - ((mbc1).wc_valid \ - ? ((mbc2).wc_valid \ - ? (int) (mbc1).wc - (int) (mbc2).wc \ - : -1) \ - : ((mbc2).wc_valid \ - ? 1 \ - : (mbc1).bytes == (mbc2).bytes \ - ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ - : (mbc1).bytes < (mbc2).bytes \ + ((mbc1).wc_valid \ + ? ((mbc2).wc_valid \ + ? (int) (mbc1).wc - (int) (mbc2).wc \ + : -1) \ + : ((mbc2).wc_valid \ + ? 1 \ + : (mbc1).bytes == (mbc2).bytes \ + ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ + : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_casecmp(mbc1, mbc2) \ - ((mbc1).wc_valid \ - ? ((mbc2).wc_valid \ - ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc) \ - : -1) \ - : ((mbc2).wc_valid \ - ? 1 \ - : (mbc1).bytes == (mbc2).bytes \ - ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ - : (mbc1).bytes < (mbc2).bytes \ + ((mbc1).wc_valid \ + ? ((mbc2).wc_valid \ + ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc) \ + : -1) \ + : ((mbc2).wc_valid \ + ? 1 \ + : (mbc1).bytes == (mbc2).bytes \ + ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ + : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_equal(mbc1, mbc2) \ - ((mbc1).wc_valid && (mbc2).wc_valid \ - ? (mbc1).wc == (mbc2).wc \ - : (mbc1).bytes == (mbc2).bytes \ + ((mbc1).wc_valid && (mbc2).wc_valid \ + ? (mbc1).wc == (mbc2).wc \ + : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) #define mb_caseequal(mbc1, mbc2) \ - ((mbc1).wc_valid && (mbc2).wc_valid \ - ? towlower ((mbc1).wc) == towlower ((mbc2).wc) \ - : (mbc1).bytes == (mbc2).bytes \ + ((mbc1).wc_valid && (mbc2).wc_valid \ + ? towlower ((mbc1).wc) == towlower ((mbc2).wc) \ + : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) /* , classification. */ @@ -308,7 +308,7 @@ is_basic (char c) { return (is_basic_table [(unsigned char) c >> 5] >> ((unsigned char) c & 31)) - & 1; + & 1; } #else diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbiter.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbiter.h --- gettext-0.17/gettext-runtime/gnulib-lib/mbiter.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbiter.h 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,215 @@ +/* Iterating through multibyte strings: macros for multi-byte encodings. + Copyright (C) 2001, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +/* The macros in this file implement forward iteration through a + multi-byte string. + + With these macros, an iteration loop that looks like + + char *iter; + for (iter = buf; iter < buf + buflen; iter++) + { + do_something (*iter); + } + + becomes + + mbi_iterator_t iter; + for (mbi_init (iter, buf, buflen); mbi_avail (iter); mbi_advance (iter)) + { + do_something (mbi_cur_ptr (iter), mb_len (mbi_cur (iter))); + } + + The benefit of these macros over plain use of mbrtowc is: + - Handling of invalid multibyte sequences is possible without + making the code more complicated, while still preserving the + invalid multibyte sequences. + + mbi_iterator_t + is a type usable for variable declarations. + + mbi_init (iter, startptr, length) + initializes the iterator, starting at startptr and crossing length bytes. + + mbi_avail (iter) + returns true if there are more multibyte chracters available before + the end of string is reached. In this case, mbi_cur (iter) is + initialized to the next multibyte chracter. + + mbi_advance (iter) + advances the iterator by one multibyte character. + + mbi_cur (iter) + returns the current multibyte character, of type mbchar_t. All the + macros defined in mbchar.h can be used on it. + + mbi_cur_ptr (iter) + return a pointer to the beginning of the current multibyte character. + + mbi_reloc (iter, ptrdiff) + relocates iterator when the string is moved by ptrdiff bytes. + + mbi_copy (&destiter, &srciter) + copies srciter to destiter. + + Here are the function prototypes of the macros. + + extern void mbi_init (mbi_iterator_t iter, + const char *startptr, size_t length); + extern bool mbi_avail (mbi_iterator_t iter); + extern void mbi_advance (mbi_iterator_t iter); + extern mbchar_t mbi_cur (mbi_iterator_t iter); + extern const char * mbi_cur_ptr (mbi_iterator_t iter); + extern void mbi_reloc (mbi_iterator_t iter, ptrdiff_t ptrdiff); + extern void mbi_copy (mbi_iterator_t *new, const mbi_iterator_t *old); + */ + +#ifndef _MBITER_H +#define _MBITER_H 1 + +#include +#include +#include +#include + +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.1 has a bug: and must be included before + . */ +#include +#include +#include + +#include "mbchar.h" + +struct mbiter_multi +{ + const char *limit; /* pointer to end of string */ + bool in_shift; /* true if next byte may not be interpreted as ASCII */ + mbstate_t state; /* if in_shift: current shift state */ + bool next_done; /* true if mbi_avail has already filled the following */ + struct mbchar cur; /* the current character: + const char *cur.ptr pointer to current character + The following are only valid after mbi_avail. + size_t cur.bytes number of bytes of current character + bool cur.wc_valid true if wc is a valid wide character + wchar_t cur.wc if wc_valid: the current character + */ +}; + +static inline void +mbiter_multi_next (struct mbiter_multi *iter) +{ + if (iter->next_done) + return; + if (iter->in_shift) + goto with_shift; + /* Handle most ASCII characters quickly, without calling mbrtowc(). */ + if (is_basic (*iter->cur.ptr)) + { + /* These characters are part of the basic character set. ISO C 99 + guarantees that their wide character code is identical to their + char code. */ + iter->cur.bytes = 1; + iter->cur.wc = *iter->cur.ptr; + iter->cur.wc_valid = true; + } + else + { + assert (mbsinit (&iter->state)); + iter->in_shift = true; + with_shift: + iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, + iter->limit - iter->cur.ptr, &iter->state); + if (iter->cur.bytes == (size_t) -1) + { + /* An invalid multibyte sequence was encountered. */ + iter->cur.bytes = 1; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not very important; the string is bogus anyway. */ + } + else if (iter->cur.bytes == (size_t) -2) + { + /* An incomplete multibyte character at the end. */ + iter->cur.bytes = iter->limit - iter->cur.ptr; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not important; the string end is reached anyway. */ + } + else + { + if (iter->cur.bytes == 0) + { + /* A null wide character was encountered. */ + iter->cur.bytes = 1; + assert (*iter->cur.ptr == '\0'); + assert (iter->cur.wc == 0); + } + iter->cur.wc_valid = true; + + /* When in the initial state, we can go back treating ASCII + characters more quickly. */ + if (mbsinit (&iter->state)) + iter->in_shift = false; + } + } + iter->next_done = true; +} + +static inline void +mbiter_multi_reloc (struct mbiter_multi *iter, ptrdiff_t ptrdiff) +{ + iter->cur.ptr += ptrdiff; + iter->limit += ptrdiff; +} + +static inline void +mbiter_multi_copy (struct mbiter_multi *new_iter, const struct mbiter_multi *old_iter) +{ + new_iter->limit = old_iter->limit; + if ((new_iter->in_shift = old_iter->in_shift)) + memcpy (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); + else + memset (&new_iter->state, 0, sizeof (mbstate_t)); + new_iter->next_done = old_iter->next_done; + mb_copy (&new_iter->cur, &old_iter->cur); +} + +/* Iteration macros. */ +typedef struct mbiter_multi mbi_iterator_t; +#define mbi_init(iter, startptr, length) \ + ((iter).cur.ptr = (startptr), (iter).limit = (iter).cur.ptr + (length), \ + (iter).in_shift = false, memset (&(iter).state, '\0', sizeof (mbstate_t)), \ + (iter).next_done = false) +#define mbi_avail(iter) \ + ((iter).cur.ptr < (iter).limit && (mbiter_multi_next (&(iter)), true)) +#define mbi_advance(iter) \ + ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = false) + +/* Access to the current character. */ +#define mbi_cur(iter) (iter).cur +#define mbi_cur_ptr(iter) (iter).cur.ptr + +/* Relocation. */ +#define mbi_reloc(iter, ptrdiff) mbiter_multi_reloc (&iter, ptrdiff) + +/* Copying an iterator. */ +#define mbi_copy mbiter_multi_copy + +#endif /* _MBITER_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbrtowc.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbrtowc.c --- gettext-0.17/gettext-runtime/gnulib-lib/mbrtowc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbrtowc.c 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,386 @@ +/* Convert multibyte character to wide character. + Copyright (C) 1999-2002, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#if GNULIB_defined_mbstate_t +/* Implement mbrtowc() on top of mbtowc(). */ + +# include +# include + +# include "localcharset.h" +# include "streq.h" +# include "verify.h" + + +verify (sizeof (mbstate_t) >= 4); + +static char internal_state[4]; + +size_t +mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ + char *pstate = (char *)ps; + + if (pstate == NULL) + pstate = internal_state; + + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } + + if (n == 0) + return (size_t)(-2); + + /* Here n > 0. */ + { + size_t nstate = pstate[0]; + char buf[4]; + const char *p; + size_t m; + + switch (nstate) + { + case 0: + p = s; + m = n; + break; + case 3: + buf[2] = pstate[3]; + /*FALLTHROUGH*/ + case 2: + buf[1] = pstate[2]; + /*FALLTHROUGH*/ + case 1: + buf[0] = pstate[1]; + p = buf; + m = nstate; + buf[m++] = s[0]; + if (n >= 2 && m < 4) + { + buf[m++] = s[1]; + if (n >= 3 && m < 4) + buf[m++] = s[2]; + } + break; + default: + errno = EINVAL; + return (size_t)(-1); + } + + /* Here m > 0. */ + +# if __GLIBC__ + /* Work around bug */ + mbtowc (NULL, NULL, 0); +# endif + { + int res = mbtowc (pwc, p, m); + + if (res >= 0) + { + if (pwc != NULL && ((*pwc == 0) != (res == 0))) + abort (); + if (nstate >= (res > 0 ? res : 1)) + abort (); + res -= nstate; + pstate[0] = 0; + return res; + } + + /* mbtowc does not distinguish between invalid and incomplete multibyte + sequences. But mbrtowc needs to make this distinction. + There are two possible approaches: + - Use iconv() and its return value. + - Use built-in knowledge about the possible encodings. + Given the low quality of implementation of iconv() on the systems that + lack mbrtowc(), we use the second approach. + The possible encodings are: + - 8-bit encodings, + - EUC-JP, EUC-KR, GB2312, EUC-TW, BIG5, GB18030, SJIS, + - UTF-8. + Use specialized code for each. */ + if (m >= 4 || m >= MB_CUR_MAX) + goto invalid; + /* Here MB_CUR_MAX > 1 and 0 < m < 4. */ + { + const char *encoding = locale_charset (); + + if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + { + /* Cf. unistr/u8-mblen.c. */ + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (m == 1) + goto incomplete; + } + else if (c < 0xf0) + { + if (m == 1) + goto incomplete; + if (m == 2) + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xe1 || c2 >= 0xa0) + && (c != 0xed || c2 < 0xa0)) + goto incomplete; + } + } + else if (c <= 0xf4) + { + if (m == 1) + goto incomplete; + else /* m == 2 || m == 3 */ + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xf1 || c2 >= 0x90) + && (c < 0xf4 || (c == 0xf4 && c2 < 0x90))) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if ((c3 ^ 0x80) < 0x40) + goto incomplete; + } + } + } + } + } + goto invalid; + } + + /* As a reference for this code, you can use the GNU libiconv + implementation. Look for uses of the RET_TOOFEW macro. */ + + if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e || c == 0x8f) + goto incomplete; + } + if (m == 2) + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8f) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0xa1 && c2 < 0xff) + goto incomplete; + } + } + goto invalid; + } + if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) + || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) + || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xa1 && c < 0xff) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8e) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x90 && c <= 0xe3) || (c >= 0xf8 && c <= 0xfe)) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0x90 && c <= 0xe3) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0x30 && c2 <= 0x39) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if (c3 >= 0x81 && c3 <= 0xfe) + goto incomplete; + } + } + } + } + goto invalid; + } + if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x81 && c <= 0x9f) || (c >= 0xe0 && c <= 0xea) + || (c >= 0xf0 && c <= 0xf9)) + goto incomplete; + } + goto invalid; + } + + /* An unknown multibyte encoding. */ + goto incomplete; + } + + incomplete: + { + size_t k = nstate; + /* Here 0 <= k < m < 4. */ + pstate[++k] = s[0]; + if (k < m) + { + pstate[++k] = s[1]; + if (k < m) + pstate[++k] = s[2]; + } + if (k != m) + abort (); + } + pstate[0] = m; + return (size_t)(-2); + + invalid: + errno = EILSEQ; + /* The conversion state is undefined, says POSIX. */ + return (size_t)(-1); + } + } +} + +#else +/* Override the system's mbrtowc() function. */ + +# undef mbrtowc + +size_t +rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ +# if MBRTOWC_NULL_ARG_BUG || MBRTOWC_RETVAL_BUG + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } +# endif + +# if MBRTOWC_RETVAL_BUG + { + static mbstate_t internal_state; + + /* Override mbrtowc's internal state. We can not call mbsinit() on the + hidden internal state, but we can call it on our variable. */ + if (ps == NULL) + ps = &internal_state; + + if (!mbsinit (ps)) + { + /* Parse the rest of the multibyte character byte for byte. */ + size_t count = 0; + for (; n > 0; s++, n--) + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, 1, ps); + + if (ret == (size_t)(-1)) + return (size_t)(-1); + count++; + if (ret != (size_t)(-2)) + { + /* The multibyte character has been completed. */ + if (pwc != NULL) + *pwc = wc; + return (wc == 0 ? 0 : count); + } + } + return (size_t)(-2); + } + } +# endif + +# if MBRTOWC_NUL_RETVAL_BUG + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, n, ps); + + if (ret != (size_t)(-1) && ret != (size_t)(-2)) + { + if (pwc != NULL) + *pwc = wc; + if (wc == 0) + ret = 0; + } + return ret; + } +# else + return mbrtowc (pwc, s, n, ps); +# endif +} + +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbsinit.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbsinit.c --- gettext-0.17/gettext-runtime/gnulib-lib/mbsinit.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbsinit.c 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,47 @@ +/* Test for initial conversion state. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include "verify.h" + +/* Platforms that lack mbsinit() also lack mbrlen(), mbrtowc(), mbsrtowcs() + and wcrtomb(), wcsrtombs(). + We assume that + - sizeof (mbstate_t) >= 4, + - only stateless encodings are supported (such as UTF-8 and EUC-JP, but + not ISO-2022 variants), + - for each encoding, the number of bytes for a wide character is <= 4. + (This maximum is attained for UTF-8, GB18030, EUC-TW.) + We define the meaning of mbstate_t as follows: + - In mb -> wc direction, mbstate_t's first byte contains the number of + buffered bytes (in the range 0..3), followed by up to 3 buffered bytes. + - In wc -> mb direction, mbstate_t contains no information. In other + words, it is always in the initial state. */ + +verify (sizeof (mbstate_t) >= 4); + +int +mbsinit (const mbstate_t *ps) +{ + const char *pstate = (const char *)ps; + + return pstate[0] == 0; +} diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbslen.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbslen.c --- gettext-0.17/gettext-runtime/gnulib-lib/mbslen.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbslen.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Counting the multibyte characters in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -22,15 +22,12 @@ #include -#if HAVE_MBRTOWC -# include "mbuiter.h" -#endif +#include "mbuiter.h" /* Return the number of multibyte characters in the character string STRING. */ size_t mbslen (const char *string) { -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { size_t count; @@ -38,11 +35,10 @@ count = 0; for (mbui_init (iter, string); mbui_avail (iter); mbui_advance (iter)) - count++; + count++; return count; } else -#endif return strlen (string); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbsstr.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbsstr.c --- gettext-0.17/gettext-runtime/gnulib-lib/mbsstr.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbsstr.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -24,110 +24,27 @@ #include /* for NULL, in case a nonstandard string.h lacks it */ #include "malloca.h" -#if HAVE_MBRTOWC -# include "mbuiter.h" -#endif +#include "mbuiter.h" + +/* Knuth-Morris-Pratt algorithm. */ +#define CANON_ELEMENT(c) c +#include "str-kmp.h" /* Knuth-Morris-Pratt algorithm. See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ - -static bool -knuth_morris_pratt_unibyte (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = (unsigned char) needle[i - 1]; - - for (;;) - { - if (b == (unsigned char) needle[j]) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if ((unsigned char) needle[j] == (unsigned char) *phaystack) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} - -#if HAVE_MBRTOWC + Return a boolean indicating success: + Return true and set *RESULTP if the search was completed. + Return false if it was aborted because not enough memory was available. */ static bool knuth_morris_pratt_multibyte (const char *haystack, const char *needle, - const char **resultp) + const char **resultp) { size_t m = mbslen (needle); mbchar_t *needle_mbchars; size_t *table; /* Allocate room for needle_mbchars and the table. */ - char *memory = (char *) malloca (m * (sizeof (mbchar_t) + sizeof (size_t))); + char *memory = (char *) nmalloca (m, sizeof (mbchar_t) + sizeof (size_t)); if (memory == NULL) return false; needle_mbchars = (mbchar_t *) memory; @@ -146,34 +63,67 @@ /* Fill the table. For 0 < i < m: 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], + forall 0 < x < table[i]: needle[x..i-1] != needle[0..i-1-x], and table[i] is as large as possible with this property. + This implies: + 1) For 0 < i < m: + If table[i] < i, + needle[table[i]..i-1] = needle[0..i-1-table[i]]. + 2) For 0 < i < m: + rhaystack[0..i-1] == needle[0..i-1] + and exists h, i <= h < m: rhaystack[h] != needle[h] + implies + forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1]. table[0] remains uninitialized. */ { size_t i, j; + /* i = 1: Nothing to verify for x = 0. */ table[1] = 1; j = 0; + for (i = 2; i < m; i++) { - mbchar_t *b = &needle_mbchars[i - 1]; - - for (;;) - { - if (mb_equal (*b, needle_mbchars[j])) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } + /* Here: j = i-1 - table[i-1]. + The inequality needle[x..i-1] != needle[0..i-1-x] is known to hold + for x < table[i-1], by induction. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + mbchar_t *b = &needle_mbchars[i - 1]; + + for (;;) + { + /* Invariants: The inequality needle[x..i-1] != needle[0..i-1-x] + is known to hold for x < i-1-j. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + if (mb_equal (*b, needle_mbchars[j])) + { + /* Set table[i] := i-1-j. */ + table[i] = i - ++j; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for x = i-1-j, because + needle[i-1] != needle[j] = needle[i-1-x]. */ + if (j == 0) + { + /* The inequality holds for all possible x. */ + table[i] = i; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for i-1-j < x < i-1-j+table[j], because for these x: + needle[x..i-2] + = needle[x-(i-1-j)..j-1] + != needle[0..j-1-(x-(i-1-j))] (by definition of table[j]) + = needle[0..i-2-x], + hence needle[x..i-1] != needle[0..i-1-x]. + Furthermore + needle[i-1-j+table[j]..i-2] + = needle[table[j]..j-1] + = needle[0..j-1-table[j]] (by definition of table[j]). */ + j = j - table[j]; + } + /* Here: j = i - table[i]. */ } } @@ -190,42 +140,41 @@ /* Invariant: phaystack = rhaystack + j. */ while (mbui_avail (phaystack)) if (mb_equal (needle_mbchars[j], mbui_cur (phaystack))) - { - j++; - mbui_advance (phaystack); - if (j == m) - { - /* The entire needle has been found. */ - *resultp = mbui_cur_ptr (rhaystack); - break; - } - } + { + j++; + mbui_advance (phaystack); + if (j == m) + { + /* The entire needle has been found. */ + *resultp = mbui_cur_ptr (rhaystack); + break; + } + } else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - size_t count = table[j]; - j -= count; - for (; count > 0; count--) - { - if (!mbui_avail (rhaystack)) - abort (); - mbui_advance (rhaystack); - } - } + { + /* Found a match of needle[0..j-1], mismatch at needle[j]. */ + size_t count = table[j]; + j -= count; + for (; count > 0; count--) + { + if (!mbui_avail (rhaystack)) + abort (); + mbui_advance (rhaystack); + } + } else - { - /* Found a mismatch at needle[0] already. */ - if (!mbui_avail (rhaystack)) - abort (); - mbui_advance (rhaystack); - mbui_advance (phaystack); - } + { + /* Found a mismatch at needle[0] already. */ + if (!mbui_avail (rhaystack)) + abort (); + mbui_advance (rhaystack); + mbui_advance (phaystack); + } } freea (memory); return true; } -#endif /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. */ @@ -237,196 +186,194 @@ - haystack may be very long, and a match of needle found early, - needle may be very long, and not even a short initial segment of needle may be found in haystack. */ -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { mbui_iterator_t iter_needle; mbui_init (iter_needle, needle); if (mbui_avail (iter_needle)) - { - /* Minimizing the worst-case complexity: - Let n = mbslen(haystack), m = mbslen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the - memory allocation, we activate the Knuth-Morris-Pratt algorithm - only once the naïve algorithm has already run for some time; more - precisely, when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - mbui_iterator_t iter_needle_last_ccount; /* = needle + last_ccount */ - - mbui_iterator_t iter_haystack; - - mbui_init (iter_needle_last_ccount, needle); - mbui_init (iter_haystack, haystack); - for (;; mbui_advance (iter_haystack)) - { - if (!mbui_avail (iter_haystack)) - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - size_t count = comparison_count - last_ccount; - for (; - count > 0 && mbui_avail (iter_needle_last_ccount); - count--) - mbui_advance (iter_needle_last_ccount); - last_ccount = comparison_count; - if (!mbui_avail (iter_needle_last_ccount)) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt_multibyte (haystack, needle, - &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if (mb_equal (mbui_cur (iter_haystack), mbui_cur (iter_needle))) - /* The first character matches. */ - { - mbui_iterator_t rhaystack; - mbui_iterator_t rneedle; - - memcpy (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); - mbui_advance (rhaystack); - - mbui_init (rneedle, needle); - if (!mbui_avail (rneedle)) - abort (); - mbui_advance (rneedle); - - for (;; mbui_advance (rhaystack), mbui_advance (rneedle)) - { - if (!mbui_avail (rneedle)) - /* Found a match. */ - return (char *) mbui_cur_ptr (iter_haystack); - if (!mbui_avail (rhaystack)) - /* No match. */ - return NULL; - comparison_count++; - if (!mb_equal (mbui_cur (rhaystack), mbui_cur (rneedle))) - /* Nothing in this round. */ - break; - } - } - } - } + { + /* Minimizing the worst-case complexity: + Let n = mbslen(haystack), m = mbslen(needle). + The naïve algorithm is O(n*m) worst-case. + The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a + memory allocation. + To achieve linear complexity and yet amortize the cost of the + memory allocation, we activate the Knuth-Morris-Pratt algorithm + only once the naïve algorithm has already run for some time; more + precisely, when + - the outer loop count is >= 10, + - the average number of comparisons per outer loop is >= 5, + - the total number of comparisons is >= m. + But we try it only once. If the memory allocation attempt failed, + we don't retry it. */ + bool try_kmp = true; + size_t outer_loop_count = 0; + size_t comparison_count = 0; + size_t last_ccount = 0; /* last comparison count */ + mbui_iterator_t iter_needle_last_ccount; /* = needle + last_ccount */ + + mbui_iterator_t iter_haystack; + + mbui_init (iter_needle_last_ccount, needle); + mbui_init (iter_haystack, haystack); + for (;; mbui_advance (iter_haystack)) + { + if (!mbui_avail (iter_haystack)) + /* No match. */ + return NULL; + + /* See whether it's advisable to use an asymptotically faster + algorithm. */ + if (try_kmp + && outer_loop_count >= 10 + && comparison_count >= 5 * outer_loop_count) + { + /* See if needle + comparison_count now reaches the end of + needle. */ + size_t count = comparison_count - last_ccount; + for (; + count > 0 && mbui_avail (iter_needle_last_ccount); + count--) + mbui_advance (iter_needle_last_ccount); + last_ccount = comparison_count; + if (!mbui_avail (iter_needle_last_ccount)) + { + /* Try the Knuth-Morris-Pratt algorithm. */ + const char *result; + bool success = + knuth_morris_pratt_multibyte (haystack, needle, + &result); + if (success) + return (char *) result; + try_kmp = false; + } + } + + outer_loop_count++; + comparison_count++; + if (mb_equal (mbui_cur (iter_haystack), mbui_cur (iter_needle))) + /* The first character matches. */ + { + mbui_iterator_t rhaystack; + mbui_iterator_t rneedle; + + memcpy (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); + mbui_advance (rhaystack); + + mbui_init (rneedle, needle); + if (!mbui_avail (rneedle)) + abort (); + mbui_advance (rneedle); + + for (;; mbui_advance (rhaystack), mbui_advance (rneedle)) + { + if (!mbui_avail (rneedle)) + /* Found a match. */ + return (char *) mbui_cur_ptr (iter_haystack); + if (!mbui_avail (rhaystack)) + /* No match. */ + return NULL; + comparison_count++; + if (!mb_equal (mbui_cur (rhaystack), mbui_cur (rneedle))) + /* Nothing in this round. */ + break; + } + } + } + } else - return (char *) haystack; + return (char *) haystack; } else -#endif { if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the - memory allocation, we activate the Knuth-Morris-Pratt algorithm - only once the naïve algorithm has already run for some time; more - precisely, when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - char b = *needle++; - - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, - comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt_unibyte (haystack, needle - 1, - &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if (*haystack == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if (*rhaystack != *rneedle) - /* Nothing in this round. */ - break; - } - } - } - } + { + /* Minimizing the worst-case complexity: + Let n = strlen(haystack), m = strlen(needle). + The naïve algorithm is O(n*m) worst-case. + The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a + memory allocation. + To achieve linear complexity and yet amortize the cost of the + memory allocation, we activate the Knuth-Morris-Pratt algorithm + only once the naïve algorithm has already run for some time; more + precisely, when + - the outer loop count is >= 10, + - the average number of comparisons per outer loop is >= 5, + - the total number of comparisons is >= m. + But we try it only once. If the memory allocation attempt failed, + we don't retry it. */ + bool try_kmp = true; + size_t outer_loop_count = 0; + size_t comparison_count = 0; + size_t last_ccount = 0; /* last comparison count */ + const char *needle_last_ccount = needle; /* = needle + last_ccount */ + + /* Speed up the following searches of needle by caching its first + character. */ + char b = *needle++; + + for (;; haystack++) + { + if (*haystack == '\0') + /* No match. */ + return NULL; + + /* See whether it's advisable to use an asymptotically faster + algorithm. */ + if (try_kmp + && outer_loop_count >= 10 + && comparison_count >= 5 * outer_loop_count) + { + /* See if needle + comparison_count now reaches the end of + needle. */ + if (needle_last_ccount != NULL) + { + needle_last_ccount += + strnlen (needle_last_ccount, + comparison_count - last_ccount); + if (*needle_last_ccount == '\0') + needle_last_ccount = NULL; + last_ccount = comparison_count; + } + if (needle_last_ccount == NULL) + { + /* Try the Knuth-Morris-Pratt algorithm. */ + const char *result; + bool success = + knuth_morris_pratt_unibyte (haystack, needle - 1, + &result); + if (success) + return (char *) result; + try_kmp = false; + } + } + + outer_loop_count++; + comparison_count++; + if (*haystack == b) + /* The first character matches. */ + { + const char *rhaystack = haystack + 1; + const char *rneedle = needle; + + for (;; rhaystack++, rneedle++) + { + if (*rneedle == '\0') + /* Found a match. */ + return (char *) haystack; + if (*rhaystack == '\0') + /* No match. */ + return NULL; + comparison_count++; + if (*rhaystack != *rneedle) + /* Nothing in this round. */ + break; + } + } + } + } else - return (char *) haystack; + return (char *) haystack; } } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/mbuiter.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbuiter.h --- gettext-0.17/gettext-runtime/gnulib-lib/mbuiter.h 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/mbuiter.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Iterating through multibyte strings: macros for multi-byte encodings. - Copyright (C) 2001, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -77,13 +77,13 @@ Here are the function prototypes of the macros. - extern void mbui_init (mbui_iterator_t iter, const char *startptr); - extern bool mbui_avail (mbui_iterator_t iter); - extern void mbui_advance (mbui_iterator_t iter); - extern mbchar_t mbui_cur (mbui_iterator_t iter); - extern const char * mbui_cur_ptr (mbui_iterator_t iter); - extern void mbui_reloc (mbui_iterator_t iter, ptrdiff_t ptrdiff); - extern void mbui_copy (mbui_iterator_t *new, const mbui_iterator_t *old); + extern void mbui_init (mbui_iterator_t iter, const char *startptr); + extern bool mbui_avail (mbui_iterator_t iter); + extern void mbui_advance (mbui_iterator_t iter); + extern mbchar_t mbui_cur (mbui_iterator_t iter); + extern const char * mbui_cur_ptr (mbui_iterator_t iter); + extern void mbui_reloc (mbui_iterator_t iter, ptrdiff_t ptrdiff); + extern void mbui_copy (mbui_iterator_t *new, const mbui_iterator_t *old); */ #ifndef _MBUITER_H @@ -108,16 +108,16 @@ struct mbuiter_multi { - bool in_shift; /* true if next byte may not be interpreted as ASCII */ - mbstate_t state; /* if in_shift: current shift state */ - bool next_done; /* true if mbui_avail has already filled the following */ - struct mbchar cur; /* the current character: - const char *cur.ptr pointer to current character - The following are only valid after mbui_avail. - size_t cur.bytes number of bytes of current character - bool cur.wc_valid true if wc is a valid wide character - wchar_t cur.wc if wc_valid: the current character - */ + bool in_shift; /* true if next byte may not be interpreted as ASCII */ + mbstate_t state; /* if in_shift: current shift state */ + bool next_done; /* true if mbui_avail has already filled the following */ + struct mbchar cur; /* the current character: + const char *cur.ptr pointer to current character + The following are only valid after mbui_avail. + size_t cur.bytes number of bytes of current character + bool cur.wc_valid true if wc is a valid wide character + wchar_t cur.wc if wc_valid: the current character + */ }; static inline void @@ -131,8 +131,8 @@ if (is_basic (*iter->cur.ptr)) { /* These characters are part of the basic character set. ISO C 99 - guarantees that their wide character code is identical to their - char code. */ + guarantees that their wide character code is identical to their + char code. */ iter->cur.bytes = 1; iter->cur.wc = *iter->cur.ptr; iter->cur.wc_valid = true; @@ -143,40 +143,40 @@ iter->in_shift = true; with_shift: iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, - strnlen1 (iter->cur.ptr, MB_CUR_MAX), - &iter->state); + strnlen1 (iter->cur.ptr, MB_CUR_MAX), + &iter->state); if (iter->cur.bytes == (size_t) -1) - { - /* An invalid multibyte sequence was encountered. */ - iter->cur.bytes = 1; - iter->cur.wc_valid = false; - /* Whether to set iter->in_shift = false and reset iter->state - or not is not very important; the string is bogus anyway. */ - } + { + /* An invalid multibyte sequence was encountered. */ + iter->cur.bytes = 1; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not very important; the string is bogus anyway. */ + } else if (iter->cur.bytes == (size_t) -2) - { - /* An incomplete multibyte character at the end. */ - iter->cur.bytes = strlen (iter->cur.ptr); - iter->cur.wc_valid = false; - /* Whether to set iter->in_shift = false and reset iter->state - or not is not important; the string end is reached anyway. */ - } + { + /* An incomplete multibyte character at the end. */ + iter->cur.bytes = strlen (iter->cur.ptr); + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not important; the string end is reached anyway. */ + } else - { - if (iter->cur.bytes == 0) - { - /* A null wide character was encountered. */ - iter->cur.bytes = 1; - assert (*iter->cur.ptr == '\0'); - assert (iter->cur.wc == 0); - } - iter->cur.wc_valid = true; - - /* When in the initial state, we can go back treating ASCII - characters more quickly. */ - if (mbsinit (&iter->state)) - iter->in_shift = false; - } + { + if (iter->cur.bytes == 0) + { + /* A null wide character was encountered. */ + iter->cur.bytes = 1; + assert (*iter->cur.ptr == '\0'); + assert (iter->cur.wc == 0); + } + iter->cur.wc_valid = true; + + /* When in the initial state, we can go back treating ASCII + characters more quickly. */ + if (mbsinit (&iter->state)) + iter->in_shift = false; + } } iter->next_done = true; } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/memchr.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/memchr.c --- gettext-0.17/gettext-runtime/gnulib-lib/memchr.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/memchr.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ -/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2006 Free - Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2010 + Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and @@ -45,155 +45,127 @@ # define BP_SYM(sym) sym #endif -#undef memchr #undef __memchr +#ifdef _LIBC +# undef memchr +#endif + +#ifndef weak_alias +# define __memchr memchr +#endif /* Search no more than N bytes of S for C. */ void * __memchr (void const *s, int c_in, size_t n) { + /* On 32-bit hardware, choosing longword to be a 32-bit unsigned + long instead of a 64-bit uintmax_t tends to give better + performance. On 64-bit hardware, unsigned long is generally 64 + bits already. Change this typedef to experiment with + performance. */ + typedef unsigned long int longword; + const unsigned char *char_ptr; - const unsigned long int *longword_ptr; - unsigned long int longword, magic_bits, charmask; + const longword *longword_ptr; + longword repeated_one; + longword repeated_c; unsigned reg_char c; - int i; c = (unsigned char) c_in; - /* Handle the first few characters by reading one character at a time. + /* Handle the first few bytes by reading one byte at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; - n > 0 && (size_t) char_ptr % sizeof longword != 0; + n > 0 && (size_t) char_ptr % sizeof (longword) != 0; --n, ++char_ptr) if (*char_ptr == c) return (void *) char_ptr; + longword_ptr = (const longword *) char_ptr; + /* All these elucidatory comments refer to 4-byte longwords, but the theory applies equally well to any size longwords. */ - longword_ptr = (const unsigned long int *) char_ptr; - - /* Bits 31, 24, 16, and 8 of this number are zero. Call these bits - the "holes." Note that there is a hole just to the left of - each byte, with an extra at the end: - - bits: 01111110 11111110 11111110 11111111 - bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD - - The 1-bits make sure that carries propagate to the next 0-bit. - The 0-bits provide holes for carries to fall into. */ - - /* Set MAGIC_BITS to be this pattern of 1 and 0 bits. - Set CHARMASK to be a longword, each of whose bytes is C. */ - - magic_bits = 0xfefefefe; - charmask = c | (c << 8); - charmask |= charmask << 16; -#if 0xffffffffU < ULONG_MAX - magic_bits |= magic_bits << 32; - charmask |= charmask << 32; - if (8 < sizeof longword) - for (i = 64; i < sizeof longword * 8; i *= 2) - { - magic_bits |= magic_bits << i; - charmask |= charmask << i; - } -#endif - magic_bits = (ULONG_MAX >> 1) & (magic_bits | 1); - - /* Instead of the traditional loop which tests each character, - we will test a longword at a time. The tricky part is testing - if *any of the four* bytes in the longword in question are zero. */ - while (n >= sizeof longword) + /* Compute auxiliary longword values: + repeated_one is a value which has a 1 in every byte. + repeated_c has c in every byte. */ + repeated_one = 0x01010101; + repeated_c = c | (c << 8); + repeated_c |= repeated_c << 16; + if (0xffffffffU < (longword) -1) { - /* We tentatively exit the loop if adding MAGIC_BITS to - LONGWORD fails to change any of the hole bits of LONGWORD. + repeated_one |= repeated_one << 31 << 1; + repeated_c |= repeated_c << 31 << 1; + if (8 < sizeof (longword)) + { + size_t i; + + for (i = 64; i < sizeof (longword) * 8; i *= 2) + { + repeated_one |= repeated_one << i; + repeated_c |= repeated_c << i; + } + } + } + + /* Instead of the traditional loop which tests each byte, we will test a + longword at a time. The tricky part is testing if *any of the four* + bytes in the longword in question are equal to c. We first use an xor + with repeated_c. This reduces the task to testing whether *any of the + four* bytes in longword1 is zero. + + We compute tmp = + ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). + That is, we perform the following operations: + 1. Subtract repeated_one. + 2. & ~longword1. + 3. & a mask consisting of 0x80 in every byte. + Consider what happens in each byte: + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, + and step 3 transforms it into 0x80. A carry can also be propagated + to more significant bytes. + - If a byte of longword1 is nonzero, let its lowest 1 bit be at + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, + the byte ends in a single bit of value 0 and k bits of value 1. + After step 2, the result is just k bits of value 1: 2^k - 1. After + step 3, the result is 0. And no carry is produced. + So, if longword1 has only non-zero bytes, tmp is zero. + Whereas if longword1 has a zero byte, call j the position of the least + significant zero byte. Then the result has a zero at positions 0, ..., + j-1 and a 0x80 at position j. We cannot predict the result at the more + significant bytes (positions j+1..3), but it does not matter since we + already have a non-zero bit at position 8*j+7. - 1) Is this safe? Will it catch all the zero bytes? - Suppose there is a byte with all zeros. Any carry bits - propagating from its left will fall into the hole at its - least significant bit and stop. Since there will be no - carry from its most significant bit, the LSB of the - byte to the left will be unchanged, and the zero will be - detected. - - 2) Is this worthwhile? Will it ignore everything except - zero bytes? Suppose every byte of LONGWORD has a bit set - somewhere. There will be a carry into bit 8. If bit 8 - is set, this will carry into bit 16. If bit 8 is clear, - one of bits 9-15 must be set, so there will be a carry - into bit 16. Similarly, there will be a carry into bit - 24. If one of bits 24-30 is set, there will be a carry - into bit 31, so all of the hole bits will be changed. - - The one misfire occurs when bits 24-30 are clear and bit - 31 is set; in this case, the hole at bit 31 is not - changed. If we had access to the processor carry flag, - we could close this loophole by putting the fourth hole - at bit 32! - - So it ignores everything except 128's, when they're aligned - properly. - - 3) But wait! Aren't we looking for C, not zero? - Good point. So what we do is XOR LONGWORD with a longword, - each of whose bytes is C. This turns each byte that is C - into a zero. */ - - longword = *longword_ptr++ ^ charmask; - - /* Add MAGIC_BITS to LONGWORD. */ - if ((((longword + magic_bits) - - /* Set those bits that were unchanged by the addition. */ - ^ ~longword) - - /* Look at only the hole bits. If any of the hole bits - are unchanged, most likely one of the bytes was a - zero. */ - & ~magic_bits) != 0) - { - /* Which of the bytes was C? If none of them were, it was - a misfire; continue the search. */ - - const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); - - if (cp[0] == c) - return (void *) cp; - if (cp[1] == c) - return (void *) &cp[1]; - if (cp[2] == c) - return (void *) &cp[2]; - if (cp[3] == c) - return (void *) &cp[3]; - if (4 < sizeof longword && cp[4] == c) - return (void *) &cp[4]; - if (5 < sizeof longword && cp[5] == c) - return (void *) &cp[5]; - if (6 < sizeof longword && cp[6] == c) - return (void *) &cp[6]; - if (7 < sizeof longword && cp[7] == c) - return (void *) &cp[7]; - if (8 < sizeof longword) - for (i = 8; i < sizeof longword; i++) - if (cp[i] == c) - return (void *) &cp[i]; - } + So, the test whether any byte in longword1 is zero is equivalent to + testing whether tmp is nonzero. */ - n -= sizeof longword; + while (n >= sizeof (longword)) + { + longword longword1 = *longword_ptr ^ repeated_c; + + if ((((longword1 - repeated_one) & ~longword1) + & (repeated_one << 7)) != 0) + break; + longword_ptr++; + n -= sizeof (longword); } char_ptr = (const unsigned char *) longword_ptr; - while (n-- > 0) + /* At this point, we know that either n < sizeof (longword), or one of the + sizeof (longword) bytes starting at char_ptr is == c. On little-endian + machines, we could determine the first such byte without any further + memory accesses, just by looking at the tmp result from the last loop + iteration. But this does not work on big-endian machines. Choose code + that works in both cases. */ + + for (; n > 0; --n, ++char_ptr) { if (*char_ptr == c) - return (void *) char_ptr; - else - ++char_ptr; + return (void *) char_ptr; } - return 0; + return NULL; } #ifdef weak_alias weak_alias (__memchr, BP_SYM (memchr)) diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/memchr.valgrind gettext-0.18.1.1/gettext-runtime/gnulib-lib/memchr.valgrind --- gettext-0.17/gettext-runtime/gnulib-lib/memchr.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/memchr.valgrind 2009-07-19 20:27:20.000000000 +0000 @@ -0,0 +1,14 @@ +# Suppress a valgrind message about use of uninitialized memory in memchr(). +# POSIX states that when the character is found, memchr must not read extra +# bytes in an overestimated length (for example, where memchr is used to +# implement strnlen). However, we use a safe word read to provide a speedup. +{ + memchr-value4 + Memcheck:Value4 + fun:rpl_memchr +} +{ + memchr-value8 + Memcheck:Value8 + fun:rpl_memchr +} diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/memmove.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/memmove.c --- gettext-0.17/gettext-runtime/gnulib-lib/memmove.c 2007-01-27 03:21:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/memmove.c 2009-12-11 16:44:50.000000000 +0000 @@ -20,7 +20,7 @@ { /* Moving from hi mem to low mem; start at beginning. */ for (; length; --length) - *dest++ = *source++; + *dest++ = *source++; } return dest0; } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/pathmax.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/pathmax.h --- gettext-0.17/gettext-runtime/gnulib-lib/pathmax.h 2007-01-27 03:21:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/pathmax.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,9 +1,10 @@ /* Define PATH_MAX somehow. Requires sys/types.h. - Copyright (C) 1992, 1999, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,9 +27,9 @@ # define _POSIX_PATH_MAX 256 # endif -# if !defined PATH_MAX && defined _PC_PATH_MAX +# if !defined PATH_MAX && defined _PC_PATH_MAX && defined HAVE_PATHCONF # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ - : pathconf ("/", _PC_PATH_MAX)) + : pathconf ("/", _PC_PATH_MAX)) # endif /* Don't include sys/param.h if it already has been. */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/progname.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/progname.c --- gettext-0.17/gettext-runtime/gnulib-lib/progname.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/progname.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,9 @@ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */ #include "progname.h" +#include /* get program_invocation_name declaration */ +#include +#include #include @@ -29,21 +32,61 @@ To be initialized by main(). */ const char *program_name = NULL; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ void set_program_name (const char *argv0) { /* libtool creates a temporary executable whose name is sometimes prefixed with "lt-" (depends on the platform). It also makes argv[0] absolute. + But the name of the temporary executable is a detail that should not be + visible to the end user and to the test suite. Remove this "/.libs/" or "/.libs/lt-" prefix here. */ const char *slash; const char *base; + /* Sanity check. POSIX requires the invoking process to pass a non-NULL + argv[0]. */ + if (argv0 == NULL) + { + /* It's a bug in the invoking program. Help diagnosing it. */ + fputs ("A NULL argv[0] was passed through an exec system call.\n", + stderr); + abort (); + } + slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); - if (base - argv0 >= 7 && memcmp (base - 7, "/.libs/", 7) == 0) - argv0 = base; - if (strncmp (base, "lt-", 3) == 0) - argv0 = base + 3; + if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) + { + argv0 = base; + if (strncmp (base, "lt-", 3) == 0) + { + argv0 = base + 3; + /* On glibc systems, remove the "lt-" prefix from the variable + program_invocation_short_name. */ +#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME + program_invocation_short_name = (char *) argv0; +#endif + } + } + + /* But don't strip off a leading / in general, because when the user + runs + /some/hidden/place/bin/cp foo foo + he should get the error message + /some/hidden/place/bin/cp: `foo' and `foo' are the same file + not + cp: `foo' and `foo' are the same file + */ + program_name = argv0; + + /* On glibc systems, the error() function comes from libc and uses the + variable program_invocation_name, not program_name. So set this variable + as well. */ +#if HAVE_DECL_PROGRAM_INVOCATION_NAME + program_invocation_name = (char *) argv0; +#endif } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/progname.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/progname.h --- gettext-0.17/gettext-runtime/gnulib-lib/progname.h 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/progname.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,7 +31,9 @@ /* String containing name the program is called with. */ extern DLL_VARIABLE const char *program_name; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ extern void set_program_name (const char *argv0); #if ENABLE_RELOCATABLE @@ -39,8 +41,8 @@ /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ extern void set_program_name_and_installdir (const char *argv0, - const char *orig_installprefix, - const char *orig_installdir); + const char *orig_installprefix, + const char *orig_installdir); #undef set_program_name #define set_program_name(ARG0) \ set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR) diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/progreloc.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/progreloc.c --- gettext-0.17/gettext-runtime/gnulib-lib/progreloc.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/progreloc.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide relocatable programs. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -43,17 +43,27 @@ # include #endif -#include "xreadlink.h" -#include "canonicalize.h" #include "relocatable.h" #ifdef NO_XMALLOC +# include "areadlink.h" +# define xreadlink areadlink +#else +# include "xreadlink.h" +#endif + +#ifdef NO_XMALLOC # define xmalloc malloc # define xstrdup strdup #else # include "xalloc.h" #endif +/* Declare canonicalize_file_name. + The included above may be the system's one, not the gnulib + one. */ +extern char * canonicalize_file_name (const char *name); + /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. @@ -103,19 +113,19 @@ if (executable_fd >= 0) { /* If we already have an executable_fd, check that filename points to - the same inode. */ + the same inode. */ struct stat statexe; struct stat statfile; if (fstat (executable_fd, &statexe) >= 0) - { - if (stat (filename, &statfile) < 0) - return false; - if (!(statfile.st_dev - && statfile.st_dev == statexe.st_dev - && statfile.st_ino == statexe.st_ino)) - return false; - } + { + if (stat (filename, &statfile) < 0) + return false; + if (!(statfile.st_dev + && statfile.st_dev == statexe.st_dev + && statfile.st_ino == statexe.st_ino)) + return false; + } } #endif #endif @@ -182,18 +192,18 @@ sprintf (buf, "/proc/%d/exe", getpid ()); link = xreadlink (buf); if (link != NULL && link[0] != '[') - return link; + return link; if (executable_fd < 0) - executable_fd = open (buf, O_RDONLY, 0); + executable_fd = open (buf, O_RDONLY, 0); } } #endif #if HAVE_MACH_O_DYLD_H && HAVE__NSGETEXECUTABLEPATH /* On MacOS X 10.2 or newer, the function - int _NSGetExecutablePath (char *buf, unsigned long *bufsize); + int _NSGetExecutablePath (char *buf, uint32_t *bufsize); can be used to retrieve the executable's full path. */ char location[4096]; - unsigned long length = sizeof (location); + unsigned int length = sizeof (location); if (_NSGetExecutablePath (location, &length) == 0 && location[0] == '/') return canonicalize_file_name (location); @@ -206,57 +216,57 @@ { const char *p; for (p = argv0; *p; p++) - if (*p == '/') - { - has_slash = true; - break; - } + if (*p == '/') + { + has_slash = true; + break; + } } if (!has_slash) { - /* exec searches paths without slashes in the directory list given - by $PATH. */ - const char *path = getenv ("PATH"); - - if (path != NULL) - { - const char *p; - const char *p_next; - - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - char *concat_name; - - for (q = p; *q; q++) - if (*q == ':') - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - - /* We have a path item at p, of length p_len. - Now concatenate the path item and argv0. */ - concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); + /* exec searches paths without slashes in the directory list given + by $PATH. */ + const char *path = getenv ("PATH"); + + if (path != NULL) + { + const char *p; + const char *p_next; + + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + char *concat_name; + + for (q = p; *q; q++) + if (*q == ':') + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + + /* We have a path item at p, of length p_len. + Now concatenate the path item and argv0. */ + concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); #ifdef NO_XMALLOC - if (concat_name == NULL) - return NULL; + if (concat_name == NULL) + return NULL; #endif - if (p_len == 0) - /* An empty PATH element designates the current directory. */ - strcpy (concat_name, argv0); - else - { - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, argv0); - } - if (maybe_executable (concat_name)) - return canonicalize_file_name (concat_name); - free (concat_name); - } - } - /* Not found in the PATH, assume the current directory. */ + if (p_len == 0) + /* An empty PATH element designates the current directory. */ + strcpy (concat_name, argv0); + else + { + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, argv0); + } + if (maybe_executable (concat_name)) + return canonicalize_file_name (concat_name); + free (concat_name); + } + } + /* Not found in the PATH, assume the current directory. */ } /* exec treats paths containing slashes as relative to the current directory. */ @@ -273,27 +283,31 @@ static void prepare_relocate (const char *orig_installprefix, const char *orig_installdir, - const char *argv0) + const char *argv0) { - const char *curr_prefix; + char *curr_prefix; /* Determine the full pathname of the current executable. */ executable_fullname = find_executable (argv0); /* Determine the current installation prefix from it. */ curr_prefix = compute_curr_prefix (orig_installprefix, orig_installdir, - executable_fullname); + executable_fullname); if (curr_prefix != NULL) - /* Now pass this prefix to all copies of the relocate.c source file. */ - set_relocation_prefix (orig_installprefix, curr_prefix); + { + /* Now pass this prefix to all copies of the relocate.c source file. */ + set_relocation_prefix (orig_installprefix, curr_prefix); + + free (curr_prefix); + } } /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ void set_program_name_and_installdir (const char *argv0, - const char *orig_installprefix, - const char *orig_installdir) + const char *orig_installprefix, + const char *orig_installdir) { const char *argv0_stripped = argv0; @@ -305,42 +319,42 @@ const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); if (argv0_len > 4 + exeext_len) if (memcmp (argv0 + argv0_len - exeext_len - 4, ".bin", 4) == 0) - { - if (sizeof (EXEEXT) > sizeof ("")) - { - /* Compare using an inlined copy of c_strncasecmp(), because - the filenames may have undergone a case conversion since - they were packaged. In other words, EXEEXT may be ".exe" - on one system and ".EXE" on another. */ - static const char exeext[] = EXEEXT; - const char *s1 = argv0 + argv0_len - exeext_len; - const char *s2 = exeext; - for (; *s1 != '\0'; s1++, s2++) - { - unsigned char c1 = *s1; - unsigned char c2 = *s2; - if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1) - != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2)) - goto done_stripping; - } - } - /* Remove ".bin" before EXEEXT or its equivalent. */ - { - char *shorter = (char *) xmalloc (argv0_len - 4 + 1); + { + if (sizeof (EXEEXT) > sizeof ("")) + { + /* Compare using an inlined copy of c_strncasecmp(), because + the filenames may have undergone a case conversion since + they were packaged. In other words, EXEEXT may be ".exe" + on one system and ".EXE" on another. */ + static const char exeext[] = EXEEXT; + const char *s1 = argv0 + argv0_len - exeext_len; + const char *s2 = exeext; + for (; *s1 != '\0'; s1++, s2++) + { + unsigned char c1 = *s1; + unsigned char c2 = *s2; + if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1) + != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2)) + goto done_stripping; + } + } + /* Remove ".bin" before EXEEXT or its equivalent. */ + { + char *shorter = (char *) xmalloc (argv0_len - 4 + 1); #ifdef NO_XMALLOC - if (shorter != NULL) + if (shorter != NULL) #endif - { - memcpy (shorter, argv0, argv0_len - exeext_len - 4); - if (sizeof (EXEEXT) > sizeof ("")) - memcpy (shorter + argv0_len - exeext_len - 4, - argv0 + argv0_len - exeext_len - 4, - exeext_len); - shorter[argv0_len - 4] = '\0'; - argv0_stripped = shorter; - } - } - done_stripping: ; + { + memcpy (shorter, argv0, argv0_len - exeext_len - 4); + if (sizeof (EXEEXT) > sizeof ("")) + memcpy (shorter + argv0_len - exeext_len - 4, + argv0 + argv0_len - exeext_len - 4, + exeext_len); + shorter[argv0_len - 4] = '\0'; + argv0_stripped = shorter; + } + } + done_stripping: ; } } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/propername.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/propername.c --- gettext-0.17/gettext-runtime/gnulib-lib/propername.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/propername.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -20,6 +20,8 @@ /* Specification. */ #include "propername.h" +#include +#include #include #include #include @@ -27,14 +29,123 @@ # include #endif +#include "trim.h" +#include "mbchar.h" +#include "mbuiter.h" #include "localcharset.h" #include "c-strcase.h" #include "xstriconv.h" -#include "c-strstr.h" #include "xalloc.h" #include "gettext.h" +/* Tests whether STRING contains trim (SUB), starting and ending at word + boundaries. + Here, instead of implementing Unicode Standard Annex #29 for determining + word boundaries, we assume that trim (SUB) starts and ends with words and + only test whether the part before it ends with a non-word and the part + after it starts with a non-word. */ +static bool +mbsstr_trimmed_wordbounded (const char *string, const char *sub) +{ + char *tsub = trim (sub); + bool found = false; + + for (; *string != '\0';) + { + const char *tsub_in_string = mbsstr (string, tsub); + if (tsub_in_string == NULL) + break; + else + { + if (MB_CUR_MAX > 1) + { + mbui_iterator_t string_iter; + bool word_boundary_before; + bool word_boundary_after; + + mbui_init (string_iter, string); + word_boundary_before = true; + if (mbui_cur_ptr (string_iter) < tsub_in_string) + { + mbchar_t last_char_before_tsub; + do + { + if (!mbui_avail (string_iter)) + abort (); + last_char_before_tsub = mbui_cur (string_iter); + mbui_advance (string_iter); + } + while (mbui_cur_ptr (string_iter) < tsub_in_string); + if (mb_isalnum (last_char_before_tsub)) + word_boundary_before = false; + } + + mbui_init (string_iter, tsub_in_string); + { + mbui_iterator_t tsub_iter; + + for (mbui_init (tsub_iter, tsub); + mbui_avail (tsub_iter); + mbui_advance (tsub_iter)) + { + if (!mbui_avail (string_iter)) + abort (); + mbui_advance (string_iter); + } + } + word_boundary_after = true; + if (mbui_avail (string_iter)) + { + mbchar_t first_char_after_tsub = mbui_cur (string_iter); + if (mb_isalnum (first_char_after_tsub)) + word_boundary_after = false; + } + + if (word_boundary_before && word_boundary_after) + { + found = true; + break; + } + + mbui_init (string_iter, tsub_in_string); + if (!mbui_avail (string_iter)) + break; + string = tsub_in_string + mb_len (mbui_cur (string_iter)); + } + else + { + bool word_boundary_before; + const char *p; + bool word_boundary_after; + + word_boundary_before = true; + if (string < tsub_in_string) + if (isalnum ((unsigned char) tsub_in_string[-1])) + word_boundary_before = false; + + p = tsub_in_string + strlen (tsub); + word_boundary_after = true; + if (*p != '\0') + if (isalnum ((unsigned char) *p)) + word_boundary_after = false; + + if (word_boundary_before && word_boundary_after) + { + found = true; + break; + } + + if (*tsub_in_string == '\0') + break; + string = tsub_in_string + 1; + } + } + } + free (tsub); + return found; +} + /* Return the localization of NAME. NAME is written in ASCII. */ const char * @@ -46,17 +157,17 @@ if (translation != name) { /* See whether the translation contains the original name. */ - if (mbsstr (translation, name) != NULL) - return translation; + if (mbsstr_trimmed_wordbounded (translation, name)) + return translation; else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - return result; - } + { + /* Return "TRANSLATION (NAME)". */ + char *result = + XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); + + sprintf (result, "%s (%s)", translation, name); + return result; + } } else return name; @@ -85,20 +196,37 @@ { #if HAVE_ICONV name_converted = alloc_name_converted = - xstr_iconv (name_utf8, "UTF-8", locale_code); + xstr_iconv (name_utf8, "UTF-8", locale_code); # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ || _LIBICONV_VERSION >= 0x0105 { - size_t len = strlen (locale_code); - char *locale_code_translit = XNMALLOC (len + 10 + 1, char); - memcpy (locale_code_translit, locale_code, len); - memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1); + char *converted_translit; - name_converted_translit = alloc_name_converted_translit = - xstr_iconv (name_utf8, "UTF-8", locale_code_translit); - - free (locale_code_translit); + size_t len = strlen (locale_code); + char *locale_code_translit = XNMALLOC (len + 10 + 1, char); + memcpy (locale_code_translit, locale_code, len); + memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1); + + converted_translit = + xstr_iconv (name_utf8, "UTF-8", locale_code_translit); + + free (locale_code_translit); + + if (converted_translit != NULL) + { +# if !_LIBICONV_VERSION + /* Don't use the transliteration if it added question marks. + glibc's transliteration falls back to question marks; libiconv's + transliteration does not. + mbschr is equivalent to strchr in this case. */ + if (strchr (converted_translit, '?') != NULL) + free (converted_translit); + else +# endif + name_converted_translit = alloc_name_converted_translit = + converted_translit; + } } # endif #endif @@ -111,47 +239,73 @@ /* The name in locale encoding. */ name = (name_converted != NULL ? name_converted : - name_converted_translit != NULL ? name_converted_translit : - name_ascii); + name_converted_translit != NULL ? name_converted_translit : + name_ascii); - if (translation != name_ascii) + /* See whether we have a translation. Some translators have not understood + that they should use the UTF-8 form of the name, if possible. So if the + translator provided a no-op translation, we ignore it. */ + if (strcmp (translation, name_ascii) != 0) { - /* See whether the translation contains the original name. - The multibyte-aware mbsstr() is not absolutely necessary here. */ - if (c_strstr (translation, name_ascii) != NULL - || (name_converted != NULL - && mbsstr (translation, name_converted) != NULL) - || (name_converted_translit != NULL - && mbsstr (translation, name_converted_translit) != NULL)) - { - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return translation; - } + /* See whether the translation contains the original name. */ + if (mbsstr_trimmed_wordbounded (translation, name_ascii) + || (name_converted != NULL + && mbsstr_trimmed_wordbounded (translation, name_converted)) + || (name_converted_translit != NULL + && mbsstr_trimmed_wordbounded (translation, name_converted_translit))) + { + if (alloc_name_converted != NULL) + free (alloc_name_converted); + if (alloc_name_converted_translit != NULL) + free (alloc_name_converted_translit); + return translation; + } else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return result; - } + { + /* Return "TRANSLATION (NAME)". */ + char *result = + XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); + + sprintf (result, "%s (%s)", translation, name); + + if (alloc_name_converted != NULL) + free (alloc_name_converted); + if (alloc_name_converted_translit != NULL) + free (alloc_name_converted_translit); + return result; + } } else { if (alloc_name_converted != NULL && alloc_name_converted != name) - free (alloc_name_converted); + free (alloc_name_converted); if (alloc_name_converted_translit != NULL - && alloc_name_converted_translit != name) - free (alloc_name_converted_translit); + && alloc_name_converted_translit != name) + free (alloc_name_converted_translit); return name; } } + +#ifdef TEST1 +# include +int +main (int argc, char *argv[]) +{ + setlocale (LC_ALL, ""); + if (mbsstr_trimmed_wordbounded (argv[1], argv[2])) + printf("found\n"); + return 0; +} +#endif + +#ifdef TEST2 +# include +# include +int +main (int argc, char *argv[]) +{ + setlocale (LC_ALL, ""); + printf ("%s\n", proper_name_utf8 ("Franc,ois Pinard", "Fran\303\247ois Pinard")); + return 0; +} +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/propername.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/propername.h --- gettext-0.17/gettext-runtime/gnulib-lib/propername.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/propername.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -15,6 +15,71 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +/* INTRODUCTION + + What do + + Torbjörn Granlund (coreutils) + François Pinard (coreutils) + Danilo Šegan (gettext) + + have in common? + + A non-ASCII name. This causes trouble in the --version output. The simple + "solution", unfortunately mutilates the name. + + $ du --version| grep Granlund + Écrit par Torbjorn Granlund, David MacKenzie, Paul Eggert et Jim Meyering. + + $ ptx --version| grep Pinard + Écrit par F. Pinard. + + What is desirable, is to print the full name if the output character set + allows it, and the ASCIIfied name only as a fallback. + + $ recode-sr-latin --version + ... + Written by Danilo Šegan and Bruno Haible. + + $ LC_ALL=C recode-sr-latin --version + ... + Written by Danilo Segan and Bruno Haible. + + The 'propername' module does exactly this. Plus, for languages that use + a different writing system than the Latin alphabet, it allows a translator + to write the name using that different writing system. In that case the + output will look like this: + () + + To use the 'propername' module is done in three simple steps: + + 1) Add it to the list of gnulib modules to import, + + 2) Change the arguments of version_etc, from + + from "Paul Eggert" + to proper_name ("Paul Eggert") + + from "Torbjorn Granlund" + to proper_name_utf8 ("Torbjorn Granlund", "Torbj\303\266rn Granlund") + + from "F. Pinard" + to proper_name_utf8 ("Franc,ois Pinard", "Fran\303\247ois Pinard") + + (Optionally, here you can also add / * TRANSLATORS: ... * / comments + explaining how the name is written or pronounced.) + + 3) If you are using GNU gettext version 0.16.1 or older, in po/Makevars, + in the definition of the XGETTEXT_OPTIONS variable, add: + + --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' + --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' + + This specifies automatic comments for the translator. (Requires + xgettext >= 0.15. The double-quotes inside the quoted string are on + purpose: they are part of the --keyword argument syntax.) + */ + #ifndef _PROPERNAME_H #define _PROPERNAME_H @@ -31,7 +96,7 @@ escape sequences. NAME_ASCII is a fallback written only with ASCII characters. */ extern const char * proper_name_utf8 (const char *name_ascii, - const char *name_utf8); + const char *name_utf8); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/readlink.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/readlink.c --- gettext-0.17/gettext-runtime/gnulib-lib/readlink.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/readlink.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Stub for readlink(). - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,30 +20,55 @@ #include #include -#include +#include #include -#include #if !HAVE_READLINK /* readlink() substitute for systems that don't have a readlink() function, such as DJGPP 2.03 and mingw32. */ -/* The official POSIX return type of readlink() is ssize_t, but since here - we have no declaration in a public header file, we use 'int' as return - type. */ - -int -readlink (const char *path, char *buf, size_t bufsize) +ssize_t +readlink (const char *name, char *buf _GL_UNUSED, + size_t bufsize _GL_UNUSED) { struct stat statbuf; /* In general we should use lstat() here, not stat(). But on platforms - without symbolic links lstat() - if it exists - would be equivalent to + without symbolic links, lstat() - if it exists - would be equivalent to stat(), therefore we can use stat(). This saves us a configure check. */ - if (stat (path, &statbuf) >= 0) + if (stat (name, &statbuf) >= 0) errno = EINVAL; return -1; } -#endif +#else /* HAVE_READLINK */ + +# undef readlink + +/* readlink() wrapper that uses correct types, for systems like cygwin + 1.5.x where readlink returns int, and which rejects trailing slash, + for Solaris 9. */ + +ssize_t +rpl_readlink (const char *name, char *buf, size_t bufsize) +{ +# if READLINK_TRAILING_SLASH_BUG + size_t len = strlen (name); + if (len && name[len - 1] == '/') + { + /* Even if name without the slash is a symlink to a directory, + both lstat() and stat() must resolve the trailing slash to + the directory rather than the symlink. We can therefore + safely use stat() to distinguish between EINVAL and + ENOTDIR/ENOENT, avoiding extra overhead of rpl_lstat(). */ + struct stat st; + if (stat (name, &st) == 0) + errno = EINVAL; + return -1; + } +# endif /* READLINK_TRAILING_SLASH_BUG */ + return readlink (name, buf, bufsize); +} + +#endif /* HAVE_READLINK */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/ref-add.sin gettext-0.18.1.1/gettext-runtime/gnulib-lib/ref-add.sin --- gettext-0.17/gettext-runtime/gnulib-lib/ref-add.sin 2007-01-27 03:21:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/ref-add.sin 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ # Add this package to a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/ref-del.sin gettext-0.18.1.1/gettext-runtime/gnulib-lib/ref-del.sin --- gettext-0.17/gettext-runtime/gnulib-lib/ref-del.sin 2007-01-27 03:21:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/ref-del.sin 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ # Remove this package from a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/relocatable.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocatable.c --- gettext-0.17/gettext-runtime/gnulib-lib/relocatable.c 2007-10-31 12:35:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocatable.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -22,7 +22,7 @@ This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 +# define _GNU_SOURCE 1 #endif #include @@ -102,11 +102,11 @@ instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, - const char *curr_prefix_arg) + const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the - relocation is a nop. */ + relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ @@ -118,14 +118,14 @@ #ifdef NO_XMALLOC if (memory != NULL) #endif - { - memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); - orig_prefix = memory; - memory += orig_prefix_len + 1; - memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); - curr_prefix = memory; - return; - } + { + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); + orig_prefix = memory; + memory += orig_prefix_len + 1; + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); + curr_prefix = memory; + return; + } } orig_prefix = NULL; curr_prefix = NULL; @@ -160,17 +160,18 @@ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif -const char * +char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname) + const char *orig_installdir, + const char *curr_pathname) { - const char *curr_installdir; + char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) @@ -193,9 +194,9 @@ while (p > p_base) { - p--; - if (ISSLASH (*p)) - break; + p--; + if (ISSLASH (*p)) + break; } q = (char *) xmalloc (p - curr_pathname + 1); @@ -218,44 +219,47 @@ while (rp > rel_installdir && cp > cp_base) { - bool same = false; - const char *rpi = rp; - const char *cpi = cp; - - while (rpi > rel_installdir && cpi > cp_base) - { - rpi--; - cpi--; - if (ISSLASH (*rpi) || ISSLASH (*cpi)) - { - if (ISSLASH (*rpi) && ISSLASH (*cpi)) - same = true; - break; - } - /* Do case-insensitive comparison if the filesystem is always or - often case-insensitive. It's better to accept the comparison - if the difference is only in case, rather than to fail. */ + bool same = false; + const char *rpi = rp; + const char *cpi = cp; + + while (rpi > rel_installdir && cpi > cp_base) + { + rpi--; + cpi--; + if (ISSLASH (*rpi) || ISSLASH (*cpi)) + { + if (ISSLASH (*rpi) && ISSLASH (*cpi)) + same = true; + break; + } + /* Do case-insensitive comparison if the file system is always or + often case-insensitive. It's better to accept the comparison + if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ - if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) - != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) - break; + /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) + break; #else - if (*rpi != *cpi) - break; + if (*rpi != *cpi) + break; #endif - } - if (!same) - break; - /* The last pathname component was the same. opi and cpi now point - to the slash before it. */ - rp = rpi; - cp = cpi; + } + if (!same) + break; + /* The last pathname component was the same. opi and cpi now point + to the slash before it. */ + rp = rpi; + cp = cpi; } if (rp > rel_installdir) - /* Unexpected: The curr_installdir does not end with rel_installdir. */ - return NULL; + { + /* Unexpected: The curr_installdir does not end with rel_installdir. */ + free (curr_installdir); + return NULL; + } { size_t curr_prefix_len = cp - curr_installdir; @@ -264,11 +268,16 @@ curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) - return NULL; + { + free (curr_installdir); + return NULL; + } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; + free (curr_installdir); + return curr_prefix; } } @@ -296,30 +305,30 @@ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; if (!IS_PATH_WITH_DIR (location)) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; { #if defined __CYGWIN__ - /* On Cygwin, we need to convert paths coming from Win32 system calls - to the Unix-like slashified notation. */ - static char location_as_posix_path[2 * MAX_PATH]; - /* There's no error return defined for cygwin_conv_to_posix_path. - See cygwin-api/func-cygwin-conv-to-posix-path.html. - Does it overflow the buffer of expected size MAX_PATH or does it - truncate the path? I don't know. Let's catch both. */ - cygwin_conv_to_posix_path (location, location_as_posix_path); - location_as_posix_path[MAX_PATH - 1] = '\0'; - if (strlen (location_as_posix_path) >= MAX_PATH - 1) - /* A sign of buffer overflow or path truncation. */ - return FALSE; - shared_library_fullname = strdup (location_as_posix_path); + /* On Cygwin, we need to convert paths coming from Win32 system calls + to the Unix-like slashified notation. */ + static char location_as_posix_path[2 * MAX_PATH]; + /* There's no error return defined for cygwin_conv_to_posix_path. + See cygwin-api/func-cygwin-conv-to-posix-path.html. + Does it overflow the buffer of expected size MAX_PATH or does it + truncate the path? I don't know. Let's catch both. */ + cygwin_conv_to_posix_path (location, location_as_posix_path); + location_as_posix_path[MAX_PATH - 1] = '\0'; + if (strlen (location_as_posix_path) >= MAX_PATH - 1) + /* A sign of buffer overflow or path truncation. */ + return FALSE; + shared_library_fullname = strdup (location_as_posix_path); #else - shared_library_fullname = strdup (location); + shared_library_fullname = strdup (location); #endif } } @@ -342,37 +351,37 @@ { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) - { - unsigned long start, end; - int c; - - if (fscanf (fp, "%lx-%lx", &start, &end) != 2) - break; - if (address >= start && address <= end - 1) - { - /* Found it. Now see if this line contains a filename. */ - while (c = getc (fp), c != EOF && c != '\n' && c != '/') - continue; - if (c == '/') - { - size_t size; - int len; - - ungetc (c, fp); - shared_library_fullname = NULL; size = 0; - len = getline (&shared_library_fullname, &size, fp); - if (len >= 0) - { - /* Success: filled shared_library_fullname. */ - if (len > 0 && shared_library_fullname[len - 1] == '\n') - shared_library_fullname[len - 1] = '\0'; - } - } - break; - } - while (c = getc (fp), c != EOF && c != '\n') - continue; - } + { + unsigned long start, end; + int c; + + if (fscanf (fp, "%lx-%lx", &start, &end) != 2) + break; + if (address >= start && address <= end - 1) + { + /* Found it. Now see if this line contains a filename. */ + while (c = getc (fp), c != EOF && c != '\n' && c != '/') + continue; + if (c == '/') + { + size_t size; + int len; + + ungetc (c, fp); + shared_library_fullname = NULL; size = 0; + len = getline (&shared_library_fullname, &size, fp); + if (len >= 0) + { + /* Success: filled shared_library_fullname. */ + if (len > 0 && shared_library_fullname[len - 1] == '\n') + shared_library_fullname[len - 1] = '\0'; + } + } + break; + } + while (c = getc (fp), c != EOF && c != '\n') + continue; + } fclose (fp); } #endif @@ -400,7 +409,9 @@ #endif /* PIC */ /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { @@ -411,55 +422,69 @@ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been - set through the main program's set_program_name_and_installdir - function. This is sufficient in the case that the library has - initially been installed in the same orig_prefix. But we can do - better, to also cover the cases that 1. it has been installed - in a different prefix before being moved to orig_prefix and (later) - to curr_prefix, 2. unlike the program, it has not moved away from - orig_prefix. */ + set through the main program's set_program_name_and_installdir + function. This is sufficient in the case that the library has + initially been installed in the same orig_prefix. But we can do + better, to also cover the cases that 1. it has been installed + in a different prefix before being moved to orig_prefix and (later) + to curr_prefix, 2. unlike the program, it has not moved away from + orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; - const char *curr_prefix_better; + char *curr_prefix_better; curr_prefix_better = - compute_curr_prefix (orig_installprefix, orig_installdir, - get_shared_library_fullname ()); - if (curr_prefix_better == NULL) - curr_prefix_better = curr_prefix; + compute_curr_prefix (orig_installprefix, orig_installdir, + get_shared_library_fullname ()); - set_relocation_prefix (orig_installprefix, curr_prefix_better); + set_relocation_prefix (orig_installprefix, + curr_prefix_better != NULL + ? curr_prefix_better + : curr_prefix); + + if (curr_prefix_better != NULL) + free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, - even for DOS-like filesystems, because the pathname argument was + even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') - /* pathname equals orig_prefix. */ - return curr_prefix; - if (ISSLASH (pathname[orig_prefix_len])) - { - /* pathname starts with orig_prefix. */ - const char *pathname_tail = &pathname[orig_prefix_len]; - char *result = - (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); + { + /* pathname equals orig_prefix. */ + char *result = (char *) xmalloc (strlen (curr_prefix) + 1); + +#ifdef NO_XMALLOC + if (result != NULL) +#endif + { + strcpy (result, curr_prefix); + return result; + } + } + else if (ISSLASH (pathname[orig_prefix_len])) + { + /* pathname starts with orig_prefix. */ + const char *pathname_tail = &pathname[orig_prefix_len]; + char *result = + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC - if (result != NULL) + if (result != NULL) #endif - { - memcpy (result, curr_prefix, curr_prefix_len); - strcpy (result + curr_prefix_len, pathname_tail); - return result; - } - } + { + memcpy (result, curr_prefix, curr_prefix_len); + strcpy (result + curr_prefix_len, pathname_tail); + return result; + } + } } /* Nothing to relocate. */ return pathname; diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/relocatable.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocatable.h --- gettext-0.17/gettext-runtime/gnulib-lib/relocatable.h 2007-10-31 12:35:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocatable.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -46,23 +46,27 @@ instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); + const char *curr_prefix); /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); -/* Memory management: relocate() leaks memory, because it has to construct - a fresh pathname. If this is a problem because your program calls - relocate() frequently, think about caching the result. */ +/* Memory management: relocate() potentially allocates memory, because it has + to construct a fresh pathname. If this is a problem because your program + calls relocate() frequently, think about caching the result. Or free the + return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ -extern const char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname); + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ +extern char * compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname); #else diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/relocwrapper.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocwrapper.c --- gettext-0.17/gettext-runtime/gnulib-lib/relocwrapper.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/relocwrapper.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Relocating wrapper program. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -19,11 +19,11 @@ relocwrapper -> progname -> progreloc - -> xreadlink - -> areadlink - -> readlink + -> areadlink + -> readlink -> canonicalize-lgpl -> malloca + -> readlink -> relocatable -> setenv -> malloca @@ -53,7 +53,6 @@ #include "progname.h" #include "relocatable.h" -#include "setenv.h" #include "c-ctype.h" /* Return a copy of the filename, with an extra ".bin" at the end. @@ -67,34 +66,34 @@ if (result != NULL) { if (sizeof (EXEEXT) > sizeof ("")) - { - /* EXEEXT handling. */ - const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); - static const char exeext[] = EXEEXT; - if (filename_len > exeext_len) - { - /* Compare using an inlined copy of c_strncasecmp(), because - the filenames may have undergone a case conversion since - they were packaged. In other words, EXEEXT may be ".exe" - on one system and ".EXE" on another. */ - const char *s1 = filename + filename_len - exeext_len; - const char *s2 = exeext; - for (; *s1 != '\0'; s1++, s2++) - { - unsigned char c1 = *s1; - unsigned char c2 = *s2; - if (c_tolower (c1) != c_tolower (c2)) - goto simple_append; - } - /* Insert ".bin" before EXEEXT or its equivalent. */ - memcpy (result, filename, filename_len - exeext_len); - memcpy (result + filename_len - exeext_len, ".bin", 4); - memcpy (result + filename_len - exeext_len + 4, - filename + filename_len - exeext_len, - exeext_len + 1); - return result; - } - } + { + /* EXEEXT handling. */ + const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); + static const char exeext[] = EXEEXT; + if (filename_len > exeext_len) + { + /* Compare using an inlined copy of c_strncasecmp(), because + the filenames may have undergone a case conversion since + they were packaged. In other words, EXEEXT may be ".exe" + on one system and ".EXE" on another. */ + const char *s1 = filename + filename_len - exeext_len; + const char *s2 = exeext; + for (; *s1 != '\0'; s1++, s2++) + { + unsigned char c1 = *s1; + unsigned char c2 = *s2; + if (c_tolower (c1) != c_tolower (c2)) + goto simple_append; + } + /* Insert ".bin" before EXEEXT or its equivalent. */ + memcpy (result, filename, filename_len - exeext_len); + memcpy (result + filename_len - exeext_len, ".bin", 4); + memcpy (result + filename_len - exeext_len + 4, + filename + filename_len - exeext_len, + exeext_len + 1); + return result; + } + } simple_append: /* Simply append ".bin". */ memcpy (result, filename, filename_len); @@ -188,6 +187,6 @@ activate_libdirs (); execv (argv[0], argv); fprintf (stderr, "%s: could not execute %s: %s\n", - program_name, argv[0], strerror (errno)); + program_name, argv[0], strerror (errno)); exit (127); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/setenv.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/setenv.c --- gettext-0.17/gettext-runtime/gnulib-lib/setenv.c 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/setenv.c 2010-04-25 09:20:42.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2003,2005-2007 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995-2003, 2005-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -17,38 +17,42 @@ #if !_LIBC # include #endif + +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the name == NULL test below. */ +#define _GL_ARG_NONNULL(params) + #include +/* Specification. */ +#include + #include #ifndef __set_errno # define __set_errno(ev) ((errno) = (ev)) #endif -#include #include #if _LIBC || HAVE_UNISTD_H # include #endif -#if _LIBC || !HAVE_SETENV - #if !_LIBC # include "malloca.h" #endif +#if _LIBC || !HAVE_SETENV + #if !_LIBC -# define __environ environ -# ifndef HAVE_ENVIRON_DECL -extern char **environ; -# endif +# define __environ environ #endif #if _LIBC /* This lock protects against simultaneous modifications of `environ'. */ # include __libc_lock_define_initialized (static, envlock) -# define LOCK __libc_lock_lock (envlock) -# define UNLOCK __libc_lock_unlock (envlock) +# define LOCK __libc_lock_lock (envlock) +# define UNLOCK __libc_lock_unlock (envlock) #else # define LOCK # define UNLOCK @@ -67,8 +71,8 @@ values are from a small set. Outside glibc this will eat up all memory after a while. */ #if defined _LIBC || (defined HAVE_SEARCH_H && defined HAVE_TSEARCH \ - && defined __GNUC__) -# define USE_TSEARCH 1 + && defined __GNUC__) +# define USE_TSEARCH 1 # include typedef int (*compar_fn_t) (const void *, const void *); @@ -77,9 +81,9 @@ static void *known_values; # define KNOWN_VALUE(Str) \ - ({ \ - void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \ - value != NULL ? *(char **) value : NULL; \ + ({ \ + void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \ + value != NULL ? *(char **) value : NULL; \ }) # define STORE_VALUE(Str) \ tsearch (Str, &known_values, (compar_fn_t) strcmp) @@ -106,10 +110,10 @@ free the strings. */ int __add_to_environ (const char *name, const char *value, const char *combined, - int replace) + int replace) { - register char **ep; - register size_t size; + char **ep; + size_t size; const size_t namelen = strlen (name); const size_t vallen = value != NULL ? strlen (value) + 1 : 0; @@ -123,10 +127,10 @@ if (ep != NULL) { for (; *ep != NULL; ++ep) - if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') - break; - else - ++size; + if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') + break; + else + ++size; } if (ep == NULL || *ep == NULL) @@ -138,76 +142,76 @@ /* We allocated this space; we can extend it. */ new_environ = - (char **) (last_environ == NULL - ? malloc ((size + 2) * sizeof (char *)) - : realloc (last_environ, (size + 2) * sizeof (char *))); + (char **) (last_environ == NULL + ? malloc ((size + 2) * sizeof (char *)) + : realloc (last_environ, (size + 2) * sizeof (char *))); if (new_environ == NULL) - { - UNLOCK; - return -1; - } + { + UNLOCK; + return -1; + } /* If the whole entry is given add it. */ if (combined != NULL) - /* We must not add the string to the search tree since it belongs - to the user. */ - new_environ[size] = (char *) combined; + /* We must not add the string to the search tree since it belongs + to the user. */ + new_environ[size] = (char *) combined; else - { - /* See whether the value is already known. */ + { + /* See whether the value is already known. */ #ifdef USE_TSEARCH # ifdef _LIBC - new_value = (char *) alloca (namelen + 1 + vallen); - __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), - value, vallen); + new_value = (char *) alloca (namelen + 1 + vallen); + __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), + value, vallen); # else - new_value = (char *) malloca (namelen + 1 + vallen); - if (new_value == NULL) - { - __set_errno (ENOMEM); - UNLOCK; - return -1; - } - memcpy (new_value, name, namelen); - new_value[namelen] = '='; - memcpy (&new_value[namelen + 1], value, vallen); + new_value = (char *) malloca (namelen + 1 + vallen); + if (new_value == NULL) + { + __set_errno (ENOMEM); + UNLOCK; + return -1; + } + memcpy (new_value, name, namelen); + new_value[namelen] = '='; + memcpy (&new_value[namelen + 1], value, vallen); # endif - new_environ[size] = KNOWN_VALUE (new_value); - if (new_environ[size] == NULL) + new_environ[size] = KNOWN_VALUE (new_value); + if (new_environ[size] == NULL) #endif - { - new_environ[size] = (char *) malloc (namelen + 1 + vallen); - if (new_environ[size] == NULL) - { + { + new_environ[size] = (char *) malloc (namelen + 1 + vallen); + if (new_environ[size] == NULL) + { #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - __set_errno (ENOMEM); - UNLOCK; - return -1; - } + __set_errno (ENOMEM); + UNLOCK; + return -1; + } #ifdef USE_TSEARCH - memcpy (new_environ[size], new_value, namelen + 1 + vallen); + memcpy (new_environ[size], new_value, namelen + 1 + vallen); #else - memcpy (new_environ[size], name, namelen); - new_environ[size][namelen] = '='; - memcpy (&new_environ[size][namelen + 1], value, vallen); -#endif - /* And save the value now. We cannot do this when we remove - the string since then we cannot decide whether it is a - user string or not. */ - STORE_VALUE (new_environ[size]); - } + memcpy (new_environ[size], name, namelen); + new_environ[size][namelen] = '='; + memcpy (&new_environ[size][namelen + 1], value, vallen); +#endif + /* And save the value now. We cannot do this when we remove + the string since then we cannot decide whether it is a + user string or not. */ + STORE_VALUE (new_environ[size]); + } #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - } + } if (__environ != last_environ) - memcpy ((char *) new_environ, (char *) __environ, - size * sizeof (char *)); + memcpy ((char *) new_environ, (char *) __environ, + size * sizeof (char *)); new_environ[size + 1] = NULL; @@ -219,57 +223,57 @@ /* Use the user string if given. */ if (combined != NULL) - np = (char *) combined; + np = (char *) combined; else - { + { #ifdef USE_TSEARCH - char *new_value; + char *new_value; # ifdef _LIBC - new_value = alloca (namelen + 1 + vallen); - __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), - value, vallen); + new_value = alloca (namelen + 1 + vallen); + __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), + value, vallen); # else - new_value = malloca (namelen + 1 + vallen); - if (new_value == NULL) - { - __set_errno (ENOMEM); - UNLOCK; - return -1; - } - memcpy (new_value, name, namelen); - new_value[namelen] = '='; - memcpy (&new_value[namelen + 1], value, vallen); + new_value = malloca (namelen + 1 + vallen); + if (new_value == NULL) + { + __set_errno (ENOMEM); + UNLOCK; + return -1; + } + memcpy (new_value, name, namelen); + new_value[namelen] = '='; + memcpy (&new_value[namelen + 1], value, vallen); # endif - np = KNOWN_VALUE (new_value); - if (np == NULL) + np = KNOWN_VALUE (new_value); + if (np == NULL) #endif - { - np = malloc (namelen + 1 + vallen); - if (np == NULL) - { + { + np = (char *) malloc (namelen + 1 + vallen); + if (np == NULL) + { #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - __set_errno (ENOMEM); - UNLOCK; - return -1; - } + __set_errno (ENOMEM); + UNLOCK; + return -1; + } #ifdef USE_TSEARCH - memcpy (np, new_value, namelen + 1 + vallen); + memcpy (np, new_value, namelen + 1 + vallen); #else - memcpy (np, name, namelen); - np[namelen] = '='; - memcpy (&np[namelen + 1], value, vallen); -#endif - /* And remember the value. */ - STORE_VALUE (np); - } + memcpy (np, name, namelen); + np[namelen] = '='; + memcpy (&np[namelen + 1], value, vallen); +#endif + /* And remember the value. */ + STORE_VALUE (np); + } #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - } + } *ep = np; } @@ -282,6 +286,12 @@ int setenv (const char *name, const char *value, int replace) { + if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) + { + __set_errno (EINVAL); + return -1; + } + return __add_to_environ (name, value, NULL, replace); } @@ -329,3 +339,45 @@ #endif #endif /* _LIBC || !HAVE_SETENV */ + +/* The rest of this file is called into use when replacing an existing + but buggy setenv. Known bugs include failure to diagnose invalid + name, and consuming a leading '=' from value. */ +#if HAVE_SETENV + +# undef setenv +# define STREQ(a, b) (strcmp (a, b) == 0) + +int +rpl_setenv (const char *name, const char *value, int replace) +{ + int result; + if (!name || !*name || strchr (name, '=')) + { + errno = EINVAL; + return -1; + } + /* Call the real setenv even if replace is 0, in case implementation + has underlying data to update, such as when environ changes. */ + result = setenv (name, value, replace); + if (result == 0 && replace && *value == '=') + { + char *tmp = getenv (name); + if (!STREQ (tmp, value)) + { + int saved_errno; + size_t len = strlen (value); + tmp = malloca (len + 2); + /* Since leading '=' is eaten, double it up. */ + *tmp = '='; + memcpy (tmp + 1, value, len + 1); + result = setenv (name, tmp, replace); + saved_errno = errno; + freea (tmp); + errno = saved_errno; + } + } + return result; +} + +#endif /* HAVE_SETENV */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/setenv.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/setenv.h --- gettext-0.17/gettext-runtime/gnulib-lib/setenv.h 2007-10-07 20:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/setenv.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -/* Setting environment variables. - Copyright (C) 2001-2004, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#if HAVE_SETENV || HAVE_UNSETENV - -/* Get setenv(), unsetenv() declarations. */ -# include - -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if !HAVE_SETENV - -/* Set NAME to VALUE in the environment. - If REPLACE is nonzero, overwrite an existing value. */ -extern int setenv (const char *name, const char *value, int replace); - -#endif - -#if HAVE_UNSETENV - -# if VOID_UNSETENV -/* On some systems, unsetenv() returns void. - This is the case for FreeBSD 4.8, NetBSD 1.6, OpenBSD 3.4. */ -# define unsetenv(name) ((unsetenv)(name), 0) -# endif - -#else - -/* Remove the variable NAME from the environment. */ -extern int unsetenv (const char *name); - -#endif - -#ifdef __cplusplus -} -#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/signal.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/signal.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/signal.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/signal.in.h 2010-03-28 18:31:26.000000000 +0000 @@ -0,0 +1,329 @@ +/* A GNU-like . + + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_sig_atomic_t || defined __need_sigset_t +/* Special invocation convention inside glibc header files. */ + +# @INCLUDE_NEXT@ @NEXT_SIGNAL_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_SIGNAL_H + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_SIGNAL_H@ + +#ifndef _GL_SIGNAL_H +#define _GL_SIGNAL_H + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define pid_t, uid_t. + Also, mingw defines sigset_t not in , but in . */ +#include + +/* On AIX, sig_atomic_t already includes volatile. C99 requires that + 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. + Hence, redefine this to a non-volatile type as needed. */ +#if ! @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ +typedef int rpl_sig_atomic_t; +# undef sig_atomic_t +# define sig_atomic_t rpl_sig_atomic_t +#endif + +/* A set or mask of signals. */ +#if !@HAVE_SIGSET_T@ +typedef unsigned int sigset_t; +#endif + + +#if @GNULIB_SIGNAL_H_SIGPIPE@ +# ifndef SIGPIPE +/* Define SIGPIPE to a value that does not overlap with other signals. */ +# define SIGPIPE 13 +# define GNULIB_defined_SIGPIPE 1 +/* To actually use SIGPIPE, you also need the gnulib modules 'sigprocmask', + 'write', 'stdio'. */ +# endif +#endif + + +#if @GNULIB_SIGPROCMASK@ +# if !@HAVE_POSIX_SIGNALBLOCKING@ + +/* Maximum signal number + 1. */ +# ifndef NSIG +# define NSIG 32 +# endif + +/* This code supports only 32 signals. */ +typedef int verify_NSIG_constraint[2 * (NSIG <= 32) - 1]; + +# endif + +/* Test whether a given signal is contained in a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigismember +# endif +# else +_GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigismember); + +/* Initialize a signal set to the empty set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigemptyset +# endif +# else +_GL_FUNCDECL_SYS (sigemptyset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigemptyset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigemptyset); + +/* Add a signal to a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigaddset +# endif +# else +_GL_FUNCDECL_SYS (sigaddset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigaddset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigaddset); + +/* Remove a signal from a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigdelset +# endif +# else +_GL_FUNCDECL_SYS (sigdelset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigdelset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigdelset); + +/* Fill a signal set with all possible signals. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigfillset +# endif +# else +_GL_FUNCDECL_SYS (sigfillset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigfillset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigfillset); + +/* Return the set of those blocked signals that are pending. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ +_GL_FUNCDECL_SYS (sigpending, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigpending, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigpending); + +/* If OLD_SET is not NULL, put the current set of blocked signals in *OLD_SET. + Then, if SET is not NULL, affect the current set of blocked signals by + combining it with *SET as indicated in OPERATION. + In this implementation, you are not allowed to change a signal handler + while the signal is blocked. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */ +# define SIG_SETMASK 1 /* blocked_set = *set; */ +# define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */ +_GL_FUNCDECL_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +# endif +_GL_CXXALIAS_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +_GL_CXXALIASWARN (sigprocmask); + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +# ifdef __cplusplus +extern "C" { +# endif +typedef void (*_gl_function_taking_int_returning_void_t) (int); +# ifdef __cplusplus +} +# endif +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define signal rpl_signal +# endif +_GL_FUNCDECL_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +_GL_CXXALIAS_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# else +_GL_CXXALIAS_SYS (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# endif +_GL_CXXALIASWARN (signal); + +/* Raise signal SIG. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef raise +# define raise rpl_raise +# endif +_GL_FUNCDECL_RPL (raise, int, (int sig)); +_GL_CXXALIAS_RPL (raise, int, (int sig)); +# else +_GL_CXXALIAS_SYS (raise, int, (int sig)); +# endif +_GL_CXXALIASWARN (raise); + +#elif defined GNULIB_POSIXCHECK +# undef sigaddset +# if HAVE_RAW_DECL_SIGADDSET +_GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigdelset +# if HAVE_RAW_DECL_SIGDELSET +_GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigemptyset +# if HAVE_RAW_DECL_SIGEMPTYSET +_GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigfillset +# if HAVE_RAW_DECL_SIGFILLSET +_GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigismember +# if HAVE_RAW_DECL_SIGISMEMBER +_GL_WARN_ON_USE (sigismember, "sigismember is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigpending +# if HAVE_RAW_DECL_SIGPENDING +_GL_WARN_ON_USE (sigpending, "sigpending is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigprocmask +# if HAVE_RAW_DECL_SIGPROCMASK +_GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +#endif /* @GNULIB_SIGPROCMASK@ */ + + +#if @GNULIB_SIGACTION@ +# if !@HAVE_SIGACTION@ + +# if !@HAVE_SIGINFO_T@ +/* Present to allow compilation, but unsupported by gnulib. */ +union sigval +{ + int sival_int; + void *sival_ptr; +}; + +/* Present to allow compilation, but unsupported by gnulib. */ +struct siginfo_t +{ + int si_signo; + int si_code; + int si_errno; + pid_t si_pid; + uid_t si_uid; + void *si_addr; + int si_status; + long si_band; + union sigval si_value; +}; +typedef struct siginfo_t siginfo_t; +# endif /* !@HAVE_SIGINFO_T@ */ + +/* We assume that platforms which lack the sigaction() function also lack + the 'struct sigaction' type, and vice versa. */ + +struct sigaction +{ + union + { + void (*_sa_handler) (int); + /* Present to allow compilation, but unsupported by gnulib. POSIX + says that implementations may, but not must, make sa_sigaction + overlap with sa_handler, but we know of no implementation where + they do not overlap. */ + void (*_sa_sigaction) (int, siginfo_t *, void *); + } _sa_func; + sigset_t sa_mask; + /* Not all POSIX flags are supported. */ + int sa_flags; +}; +# define sa_handler _sa_func._sa_handler +# define sa_sigaction _sa_func._sa_sigaction +/* Unsupported flags are not present. */ +# define SA_RESETHAND 1 +# define SA_NODEFER 2 +# define SA_RESTART 4 + +_GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); + +# elif !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ + +# define sa_sigaction sa_handler + +# endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */ + +_GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); +_GL_CXXALIASWARN (sigaction); + +#elif defined GNULIB_POSIXCHECK +# undef sigaction +# if HAVE_RAW_DECL_SIGACTION +_GL_WARN_ON_USE (sigaction, "sigaction is unportable - " + "use the gnulib module sigaction for portability"); +# endif +#endif + +/* Some systems don't have SA_NODEFER. */ +#ifndef SA_NODEFER +# define SA_NODEFER 0 +#endif + + +#endif /* _GL_SIGNAL_H */ +#endif /* _GL_SIGNAL_H */ +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/sigprocmask.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/sigprocmask.c --- gettext-0.17/gettext-runtime/gnulib-lib/sigprocmask.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/sigprocmask.c 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,329 @@ +/* POSIX compatible signal blocking. + Copyright (C) 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2006. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + +/* We assume that a platform without POSIX signal blocking functions + also does not have the POSIX sigaction() function, only the + signal() function. We also assume signal() has SysV semantics, + where any handler is uninstalled prior to being invoked. This is + true for Woe32 platforms. */ + +/* We use raw signal(), but also provide a wrapper rpl_signal() so + that applications can query or change a blocked signal. */ +#undef signal + +/* Provide invalid signal numbers as fallbacks if the uncatchable + signals are not defined. */ +#ifndef SIGKILL +# define SIGKILL (-1) +#endif +#ifndef SIGSTOP +# define SIGSTOP (-1) +#endif + +/* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias + for the signal SIGABRT. Only one signal handler is stored for both + SIGABRT and SIGABRT_COMPAT. SIGABRT_COMPAT is not a signal of its own. */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# undef SIGABRT_COMPAT +# define SIGABRT_COMPAT 6 +#endif +#ifdef SIGABRT_COMPAT +# define SIGABRT_COMPAT_MASK (1U << SIGABRT_COMPAT) +#else +# define SIGABRT_COMPAT_MASK 0 +#endif + +typedef void (*handler_t) (int); + +/* Handling of gnulib defined signals. */ + +#if GNULIB_defined_SIGPIPE +static handler_t SIGPIPE_handler = SIG_DFL; +#endif + +#if GNULIB_defined_SIGPIPE +static handler_t +ext_signal (int sig, handler_t handler) +{ + switch (sig) + { + case SIGPIPE: + { + handler_t old_handler = SIGPIPE_handler; + SIGPIPE_handler = handler; + return old_handler; + } + default: /* System defined signal */ + return signal (sig, handler); + } +} +# define signal ext_signal +#endif + +int +sigismember (const sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + return (*set >> sig) & 1; + } + else + return 0; +} + +int +sigemptyset (sigset_t *set) +{ + *set = 0; + return 0; +} + +int +sigaddset (sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + *set |= 1U << sig; + return 0; + } + else + { + errno = EINVAL; + return -1; + } +} + +int +sigdelset (sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + *set &= ~(1U << sig); + return 0; + } + else + { + errno = EINVAL; + return -1; + } +} + + +int +sigfillset (sigset_t *set) +{ + *set = ((2U << (NSIG - 1)) - 1) & ~ SIGABRT_COMPAT_MASK; + return 0; +} + +/* Set of currently blocked signals. */ +static volatile sigset_t blocked_set /* = 0 */; + +/* Set of currently blocked and pending signals. */ +static volatile sig_atomic_t pending_array[NSIG] /* = { 0 } */; + +/* Signal handler that is installed for blocked signals. */ +static void +blocked_handler (int sig) +{ + /* Reinstall the handler, in case the signal occurs multiple times + while blocked. There is an inherent race where an asynchronous + signal in between when the kernel uninstalled the handler and + when we reinstall it will trigger the default handler; oh + well. */ + signal (sig, blocked_handler); + if (sig >= 0 && sig < NSIG) + pending_array[sig] = 1; +} + +int +sigpending (sigset_t *set) +{ + sigset_t pending = 0; + int sig; + + for (sig = 0; sig < NSIG; sig++) + if (pending_array[sig]) + pending |= 1U << sig; + *set = pending; + return 0; +} + +/* The previous signal handlers. + Only the array elements corresponding to blocked signals are relevant. */ +static volatile handler_t old_handlers[NSIG]; + +int +sigprocmask (int operation, const sigset_t *set, sigset_t *old_set) +{ + if (old_set != NULL) + *old_set = blocked_set; + + if (set != NULL) + { + sigset_t new_blocked_set; + sigset_t to_unblock; + sigset_t to_block; + + switch (operation) + { + case SIG_BLOCK: + new_blocked_set = blocked_set | *set; + break; + case SIG_SETMASK: + new_blocked_set = *set; + break; + case SIG_UNBLOCK: + new_blocked_set = blocked_set & ~*set; + break; + default: + errno = EINVAL; + return -1; + } + to_unblock = blocked_set & ~new_blocked_set; + to_block = new_blocked_set & ~blocked_set; + + if (to_block != 0) + { + int sig; + + for (sig = 0; sig < NSIG; sig++) + if ((to_block >> sig) & 1) + { + pending_array[sig] = 0; + if ((old_handlers[sig] = signal (sig, blocked_handler)) != SIG_ERR) + blocked_set |= 1U << sig; + } + } + + if (to_unblock != 0) + { + sig_atomic_t received[NSIG]; + int sig; + + for (sig = 0; sig < NSIG; sig++) + if ((to_unblock >> sig) & 1) + { + if (signal (sig, old_handlers[sig]) != blocked_handler) + /* The application changed a signal handler while the signal + was blocked, bypassing our rpl_signal replacement. + We don't support this. */ + abort (); + received[sig] = pending_array[sig]; + blocked_set &= ~(1U << sig); + pending_array[sig] = 0; + } + else + received[sig] = 0; + + for (sig = 0; sig < NSIG; sig++) + if (received[sig]) + raise (sig); + } + } + return 0; +} + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +handler_t +rpl_signal (int sig, handler_t handler) +{ + /* We must provide a wrapper, so that a user can query what handler + they installed even if that signal is currently blocked. */ + if (sig >= 0 && sig < NSIG && sig != SIGKILL && sig != SIGSTOP + && handler != SIG_ERR) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + if (blocked_set & (1U << sig)) + { + /* POSIX states that sigprocmask and signal are both + async-signal-safe. This is not true of our + implementation - there is a slight data race where an + asynchronous interrupt on signal A can occur after we + install blocked_handler but before we have updated + old_handlers for signal B, such that handler A can see + stale information if it calls signal(B). Oh well - + signal handlers really shouldn't try to manipulate the + installed handlers of unrelated signals. */ + handler_t result = old_handlers[sig]; + old_handlers[sig] = handler; + return result; + } + else + return signal (sig, handler); + } + else + { + errno = EINVAL; + return SIG_ERR; + } +} + +#if GNULIB_defined_SIGPIPE +/* Raise the signal SIG. */ +int +rpl_raise (int sig) +# undef raise +{ + switch (sig) + { + case SIGPIPE: + if (blocked_set & (1U << sig)) + pending_array[sig] = 1; + else + { + handler_t handler = SIGPIPE_handler; + if (handler == SIG_DFL) + exit (128 + SIGPIPE); + else if (handler != SIG_IGN) + (*handler) (sig); + } + return 0; + default: /* System defined signal */ + return raise (sig); + } +} +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stat.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/stat.c --- gettext-0.17/gettext-runtime/gnulib-lib/stat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stat.c 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,104 @@ +/* Work around platform bugs in stat. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Eric Blake */ + +#include + +/* Get the original definition of stat. It might be defined as a macro. */ +#define __need_system_sys_stat_h +#include +#include +#undef __need_system_sys_stat_h + +static inline int +orig_stat (const char *filename, struct stat *buf) +{ + return stat (filename, buf); +} + +/* Specification. */ +#include + +#include +#include +#include +#include + +/* Store information about NAME into ST. Work around bugs with + trailing slashes. Mingw has other bugs (such as st_ino always + being 0 on success) which this wrapper does not work around. But + at least this implementation provides the ability to emulate fchdir + correctly. */ + +int +rpl_stat (char const *name, struct stat *st) +{ + int result = orig_stat (name, st); +#if REPLACE_FUNC_STAT_FILE + /* Solaris 9 mistakenly succeeds when given a non-directory with a + trailing slash. */ + if (result == 0 && !S_ISDIR (st->st_mode)) + { + size_t len = strlen (name); + if (ISSLASH (name[len - 1])) + { + errno = ENOTDIR; + return -1; + } + } +#endif /* REPLACE_FUNC_STAT_FILE */ +#if REPLACE_FUNC_STAT_DIR + if (result == -1 && errno == ENOENT) + { + /* Due to mingw's oddities, there are some directories (like + c:\) where stat() only succeeds with a trailing slash, and + other directories (like c:\windows) where stat() only + succeeds without a trailing slash. But we want the two to be + synonymous, since chdir() manages either style. Likewise, Mingw also + reports ENOENT for names longer than PATH_MAX, when we want + ENAMETOOLONG, and for stat("file/"), when we want ENOTDIR. + Fortunately, mingw PATH_MAX is small enough for stack + allocation. */ + char fixed_name[PATH_MAX + 1] = {0}; + size_t len = strlen (name); + bool check_dir = false; + if (PATH_MAX <= len) + errno = ENAMETOOLONG; + else if (len) + { + strcpy (fixed_name, name); + if (ISSLASH (fixed_name[len - 1])) + { + check_dir = true; + while (len && ISSLASH (fixed_name[len - 1])) + fixed_name[--len] = '\0'; + if (!len) + fixed_name[0] = '/'; + } + else + fixed_name[len++] = '/'; + result = orig_stat (fixed_name, st); + if (result == 0 && check_dir && !S_ISDIR (st->st_mode)) + { + result = -1; + errno = ENOTDIR; + } + } + } +#endif /* REPLACE_FUNC_STAT_DIR */ + return result; +} diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stdbool.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdbool.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/stdbool.in.h 2007-10-23 00:41:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdbool.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -1,9 +1,9 @@ -/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -50,6 +50,9 @@ with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. + - C99 allows the use of (_Bool)0.0 in constant expressions, but + this substitute cannot always provide this property. + Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ @@ -58,7 +61,7 @@ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ -#ifdef __BEOS__ +#if defined __BEOS__ && !defined __HAIKU__ # include /* defines bool but not _Bool */ # undef false # undef true @@ -73,7 +76,7 @@ (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ -#if defined __cplusplus || defined __BEOS__ +#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__) /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stddef.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stddef.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/stddef.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stddef.in.h 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,86 @@ +/* A substitute for POSIX 2008 , for platforms that have issues. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake. */ + +/* + * POSIX 2008 for platforms that have issues. + * + */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_wchar_t || defined __need_size_t \ + || defined __need_ptrdiff_t || defined __need_NULL \ + || defined __need_wint_t +/* Special invocation convention inside gcc header files. In + particular, gcc provides a version of that blindly + redefines NULL even when __need_wint_t was defined, even though + wint_t is not normally provided by . Hence, we must + remember if special invocation has ever been used to obtain wint_t, + in which case we need to clean up NULL yet again. */ + +# if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) +# ifdef __need_wint_t +# undef _GL_STDDEF_H +# define _GL_STDDEF_WINT_T +# endif +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ +# endif + +#else +/* Normal invocation convention. */ + +# ifndef _GL_STDDEF_H + +/* The include_next requires a split double-inclusion guard. */ + +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ + +# ifndef _GL_STDDEF_H +# define _GL_STDDEF_H + +/* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ +#if @REPLACE_NULL@ +# undef NULL +# ifdef __cplusplus + /* ISO C++ says that the macro NULL must expand to an integer constant + expression, hence '((void *) 0)' is not allowed in C++. */ +# if __GNUG__ >= 3 + /* GNU C++ has a __null macro that behaves like an integer ('int' or + 'long') but has the same size as a pointer. Use that, to avoid + warnings. */ +# define NULL __null +# else +# define NULL 0L +# endif +# else +# define NULL ((void *) 0) +# endif +#endif + +/* Some platforms lack wchar_t. */ +#if !@HAVE_WCHAR_T@ +# define wchar_t int +#endif + +# endif /* _GL_STDDEF_H */ +# endif /* _GL_STDDEF_H */ +#endif /* __need_XXX */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stdint.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdint.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/stdint.in.h 2007-10-31 12:35:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdint.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -1,10 +1,10 @@ -/* Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2002, 2004-2010 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,6 +23,16 @@ #ifndef _GL_STDINT_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* When including a system file that in turn includes , + use the system , not our substitute. This avoids + problems with (for example) VMS, whose includes + . */ +#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H + /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef @@ -66,9 +76,7 @@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ -# define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # include -# undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H #elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ @@ -82,14 +90,7 @@ # include #endif -#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS - -/* Get WCHAR_MIN, WCHAR_MAX. */ -# if ! (defined WCHAR_MIN && defined WCHAR_MAX) -# include -# endif - -#endif +#undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* Minimum and maximum values for a integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify @@ -102,8 +103,8 @@ ((signed) \ ? ~ _STDINT_MIN (signed, bits, zero) \ : /* The expression for the unsigned case. The subtraction of (signed) \ - is a nop in the unsigned case and avoids "signed integer overflow" \ - warnings in the signed case. */ \ + is a nop in the unsigned case and avoids "signed integer overflow" \ + warnings in the signed case. */ \ ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) /* 7.18.1.1. Exact-width integer types */ @@ -113,46 +114,58 @@ #undef int8_t #undef uint8_t -#define int8_t signed char -#define uint8_t unsigned char +typedef signed char gl_int8_t; +typedef unsigned char gl_uint8_t; +#define int8_t gl_int8_t +#define uint8_t gl_uint8_t #undef int16_t #undef uint16_t -#define int16_t short int -#define uint16_t unsigned short int +typedef short int gl_int16_t; +typedef unsigned short int gl_uint16_t; +#define int16_t gl_int16_t +#define uint16_t gl_uint16_t #undef int32_t #undef uint32_t -#define int32_t int -#define uint32_t unsigned int +typedef int gl_int32_t; +typedef unsigned int gl_uint32_t; +#define int32_t gl_int32_t +#define uint32_t gl_uint32_t /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ #if LONG_MAX >> 31 >> 31 == 1 # undef int64_t -# define int64_t long int +typedef long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif defined _MSC_VER # undef int64_t -# define int64_t __int64 +typedef __int64 gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif @HAVE_LONG_LONG_INT@ # undef int64_t -# define int64_t long long int +typedef long long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #endif #if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t -# define uint64_t unsigned long int +typedef unsigned long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif defined _MSC_VER # undef uint64_t -# define uint64_t unsigned __int64 +typedef unsigned __int64 gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif @HAVE_UNSIGNED_LONG_LONG_INT@ # undef uint64_t -# define uint64_t unsigned long long int +typedef unsigned long long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #endif @@ -207,12 +220,18 @@ #undef uint_fast32_t #undef int_fast64_t #undef uint_fast64_t -#define int_fast8_t long int -#define uint_fast8_t unsigned int_fast8_t -#define int_fast16_t long int -#define uint_fast16_t unsigned int_fast16_t -#define int_fast32_t long int -#define uint_fast32_t unsigned int_fast32_t +typedef long int gl_int_fast8_t; +typedef unsigned long int gl_uint_fast8_t; +typedef long int gl_int_fast16_t; +typedef unsigned long int gl_uint_fast16_t; +typedef long int gl_int_fast32_t; +typedef unsigned long int gl_uint_fast32_t; +#define int_fast8_t gl_int_fast8_t +#define uint_fast8_t gl_uint_fast8_t +#define int_fast16_t gl_int_fast16_t +#define uint_fast16_t gl_uint_fast16_t +#define int_fast32_t gl_int_fast32_t +#define uint_fast32_t gl_uint_fast32_t #ifdef GL_INT64_T # define int_fast64_t int64_t #endif @@ -224,8 +243,10 @@ #undef intptr_t #undef uintptr_t -#define intptr_t long int -#define uintptr_t unsigned long int +typedef long int gl_intptr_t; +typedef unsigned long int gl_uintptr_t; +#define intptr_t gl_intptr_t +#define uintptr_t gl_uintptr_t /* 7.18.1.5. Greatest-width integer types */ @@ -234,20 +255,24 @@ #undef intmax_t #if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 -# define intmax_t long long int +typedef long long int gl_intmax_t; +# define intmax_t gl_intmax_t #elif defined GL_INT64_T # define intmax_t int64_t #else -# define intmax_t long int +typedef long int gl_intmax_t; +# define intmax_t gl_intmax_t #endif #undef uintmax_t #if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 -# define uintmax_t unsigned long long int +typedef unsigned long long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #elif defined GL_UINT64_T # define uintmax_t uint64_t #else -# define uintmax_t unsigned long int +typedef unsigned long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #endif /* Verify that intmax_t and uintmax_t have the same size. Too much code @@ -410,27 +435,54 @@ /* ptrdiff_t limits */ #undef PTRDIFF_MIN #undef PTRDIFF_MAX -#define PTRDIFF_MIN \ - _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) -#define PTRDIFF_MAX \ - _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l) +# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) +# else +# define PTRDIFF_MIN _STDINT_MIN (1, 32, 0) +# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) +# endif +#else +# define PTRDIFF_MIN \ + _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +# define PTRDIFF_MAX \ + _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#endif /* sig_atomic_t limits */ #undef SIG_ATOMIC_MIN #undef SIG_ATOMIC_MAX #define SIG_ATOMIC_MIN \ _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) #define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ #undef SIZE_MAX -#define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define SIZE_MAX _STDINT_MAX (0, 64, 0ul) +# else +# define SIZE_MAX _STDINT_MAX (0, 32, 0ul) +# endif +#else +# define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#endif /* wchar_t limits */ +/* Get WCHAR_MIN, WCHAR_MAX. + This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested + includes -> -> -> , and the latter includes + and assumes its types are already defined. */ +#if ! (defined WCHAR_MIN && defined WCHAR_MAX) +# define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +# include +# undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +#endif #undef WCHAR_MIN #undef WCHAR_MAX #define WCHAR_MIN \ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/stdio.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio.in.h 2010-05-17 19:56:12.000000000 +0000 @@ -0,0 +1,1071 @@ +/* A GNU-like . + + Copyright (C) 2004, 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_FILE || defined __need___FILE +/* Special invocation convention inside glibc header files. */ + +#@INCLUDE_NEXT@ @NEXT_STDIO_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_STDIO_H + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_STDIO_H@ + +#ifndef _GL_STDIO_H +#define _GL_STDIO_H + +/* Get va_list. Needed on many systems, including glibc 2.8. */ +#include + +#include + +/* Get off_t and ssize_t. Needed on many systems, including glibc 2.8. */ +#include + +#ifndef __attribute__ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __attribute__(Spec) /* empty */ +# endif +#endif + + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Macros for stringification. */ +#define _GL_STDIO_STRINGIZE(token) #token +#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) + + +#if @GNULIB_DPRINTF@ +# if @REPLACE_DPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dprintf rpl_dprintf +# endif +_GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...)); +# else +# if !@HAVE_DPRINTF@ +_GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...)); +# endif +_GL_CXXALIASWARN (dprintf); +#elif defined GNULIB_POSIXCHECK +# undef dprintf +# if HAVE_RAW_DECL_DPRINTF +_GL_WARN_ON_USE (dprintf, "dprintf is unportable - " + "use gnulib module dprintf for portability"); +# endif +#endif + +#if @GNULIB_FCLOSE@ +/* Close STREAM and its underlying file descriptor. */ +# if @REPLACE_FCLOSE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fclose rpl_fclose +# endif +_GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); +# else +_GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); +# endif +_GL_CXXALIASWARN (fclose); +#elif defined GNULIB_POSIXCHECK +# undef fclose +/* Assume fclose is always declared. */ +_GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " + "use gnulib module fclose for portable POSIX compliance"); +#endif + +#if @GNULIB_FFLUSH@ +/* Flush all pending data on STREAM according to POSIX rules. Both + output and seekable input streams are supported. + Note! LOSS OF DATA can occur if fflush is applied on an input stream + that is _not_seekable_ or on an update stream that is _not_seekable_ + and in which the most recent operation was input. Seekability can + be tested with lseek(fileno(fp),0,SEEK_CUR). */ +# if @REPLACE_FFLUSH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fflush rpl_fflush +# endif +_GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); +_GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); +# else +_GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); +# endif +_GL_CXXALIASWARN (fflush); +#elif defined GNULIB_POSIXCHECK +# undef fflush +/* Assume fflush is always declared. */ +_GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + "use gnulib module fflush for portable POSIX compliance"); +#endif + +/* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ +#undef gets +_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + +#if @GNULIB_FOPEN@ +# if @REPLACE_FOPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fopen +# define fopen rpl_fopen +# endif +_GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); +# else +_GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); +# endif +_GL_CXXALIASWARN (fopen); +#elif defined GNULIB_POSIXCHECK +# undef fopen +/* Assume fopen is always declared. */ +_GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - " + "use gnulib module fopen for portability"); +#endif + +#if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ +# if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ + || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fprintf rpl_fprintf +# endif +# define GNULIB_overrides_fprintf 1 +_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); +# endif +_GL_CXXALIASWARN (fprintf); +#endif +#if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_fprintf +# undef fprintf +# endif +/* Assume fprintf is always declared. */ +_GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " + "use gnulib module fprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_FPURGE@ +/* Discard all pending buffered I/O data on STREAM. + STREAM must not be wide-character oriented. + When discarding pending output, the file position is set back to where it + was before the write calls. When discarding pending input, the file + position is advanced to match the end of the previously read input. + Return 0 if successful. Upon error, return -1 and set errno. */ +# if @REPLACE_FPURGE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fpurge rpl_fpurge +# endif +_GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); +# else +# if !@HAVE_DECL_FPURGE@ +_GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); +# endif +_GL_CXXALIASWARN (fpurge); +#elif defined GNULIB_POSIXCHECK +# undef fpurge +# if HAVE_RAW_DECL_FPURGE +_GL_WARN_ON_USE (fpurge, "fpurge is not always present - " + "use gnulib module fpurge for portability"); +# endif +#endif + +#if @GNULIB_FPUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputc +# define fputc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); +# endif +_GL_CXXALIASWARN (fputc); +#endif + +#if @GNULIB_FPUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputs +# define fputs rpl_fputs +# endif +_GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream)); +# endif +_GL_CXXALIASWARN (fputs); +#endif + +#if @GNULIB_FREOPEN@ +# if @REPLACE_FREOPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef freopen +# define freopen rpl_freopen +# endif +_GL_FUNCDECL_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); +# else +_GL_CXXALIAS_SYS (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); +# endif +_GL_CXXALIASWARN (freopen); +#elif defined GNULIB_POSIXCHECK +# undef freopen +/* Assume freopen is always declared. */ +_GL_WARN_ON_USE (freopen, "freopen on Win32 platforms is not POSIX compatible - " + "use gnulib module freopen for portability"); +#endif + + +/* Set up the following warnings, based on which modules are in use. + GNU Coding Standards discourage the use of fseek, since it imposes + an arbitrary limitation on some 32-bit hosts. Remember that the + fseek module depends on the fseeko module, so we only have three + cases to consider: + + 1. The developer is not using either module. Issue a warning under + GNULIB_POSIXCHECK for both functions, to remind them that both + functions have bugs on some systems. _GL_NO_LARGE_FILES has no + impact on this warning. + + 2. The developer is using both modules. They may be unaware of the + arbitrary limitations of fseek, so issue a warning under + GNULIB_POSIXCHECK. On the other hand, they may be using both + modules intentionally, so the developer can define + _GL_NO_LARGE_FILES in the compilation units where the use of fseek + is safe, to silence the warning. + + 3. The developer is using the fseeko module, but not fseek. Gnulib + guarantees that fseek will still work around platform bugs in that + case, but we presume that the developer is aware of the pitfalls of + fseek and was trying to avoid it, so issue a warning even when + GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be + defined to silence the warning in particular compilation units. + In C++ compilations with GNULIB_NAMESPACE, in order to avoid that + fseek gets defined as a macro, it is recommended that the developer + uses the fseek module, even if he is not calling the fseek function. + + Most gnulib clients that perform stream operations should fall into + category 3. */ + +#if @GNULIB_FSEEK@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 2, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseek +# define fseek rpl_fseek +# endif +_GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); +# else +_GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); +# endif +_GL_CXXALIASWARN (fseek); +#endif + +#if @GNULIB_FSEEKO@ +# if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 3, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEKO@ +/* Provide an fseeko function that is aware of a preceding fflush(), and which + detects pipes. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseeko +# define fseeko rpl_fseeko +# endif +_GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); +# else +# if ! @HAVE_FSEEKO@ +_GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); +# endif +_GL_CXXALIASWARN (fseeko); +# if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ + /* Provide an fseek function that is consistent with fseeko. */ + /* In order to avoid that fseek gets defined as a macro here, the + developer can request the 'fseek' module. */ +# undef fseek +# define fseek rpl_fseek +static inline int _GL_ARG_NONNULL ((1)) +rpl_fseek (FILE *fp, long offset, int whence) +{ +# if @REPLACE_FSEEKO@ + return rpl_fseeko (fp, offset, whence); +# else + return fseeko (fp, offset, whence); +# endif +} +# endif +#elif defined GNULIB_POSIXCHECK +# define _GL_FSEEK_WARN /* Category 1, above. */ +# undef fseek +# undef fseeko +# if HAVE_RAW_DECL_FSEEKO +_GL_WARN_ON_USE (fseeko, "fseeko is unportable - " + "use gnulib module fseeko for portability"); +# endif +#endif + +#ifdef _GL_FSEEK_WARN +# undef _GL_FSEEK_WARN +/* Here, either fseek is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_fseek (declared above). */ +_GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use fseeko function for handling of large files"); +#endif + + +/* ftell, ftello. See the comments on fseek/fseeko. */ + +#if @GNULIB_FTELL@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 2, above. */ +# undef ftell +# endif +# if @REPLACE_FTELL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftell +# define ftell rpl_ftell +# endif +_GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); +# else +_GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftell); +#endif + +#if @GNULIB_FTELLO@ +# if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 3, above. */ +# undef ftell +# endif +# if @REPLACE_FTELLO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftello +# define ftello rpl_ftello +# endif +_GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); +# else +# if ! @HAVE_FTELLO@ +_GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftello); +# if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@ + /* Provide an ftell function that is consistent with ftello. */ + /* In order to avoid that ftell gets defined as a macro here, the + developer can request the 'ftell' module. */ +# undef ftell +# define ftell rpl_ftell +static inline long _GL_ARG_NONNULL ((1)) +rpl_ftell (FILE *f) +{ +# if @REPLACE_FTELLO@ + return rpl_ftello (f); +# else + return ftello (f); +# endif +} +# endif +#elif defined GNULIB_POSIXCHECK +# define _GL_FTELL_WARN /* Category 1, above. */ +# undef ftell +# undef ftello +# if HAVE_RAW_DECL_FTELLO +_GL_WARN_ON_USE (ftello, "ftello is unportable - " + "use gnulib module ftello for portability"); +# endif +#endif + +#ifdef _GL_FTELL_WARN +# undef _GL_FTELL_WARN +/* Here, either ftell is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_ftell (declared above). */ +_GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use ftello function for handling of large files"); +#endif + + +#if @GNULIB_FWRITE@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fwrite +# define fwrite rpl_fwrite +# endif +_GL_FUNCDECL_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream) + _GL_ARG_NONNULL ((1, 4))); +_GL_CXXALIAS_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); +# endif +_GL_CXXALIASWARN (fwrite); +#endif + +#if @GNULIB_GETDELIM@ +/* Read input, up to (and including) the next occurrence of DELIMITER, from + STREAM, store it in *LINEPTR (and NUL-terminate it). + *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE + bytes of space. It is realloc'd as necessary. + Return the number of bytes read and stored at *LINEPTR (not including the + NUL terminator), or -1 on error or EOF. */ +# if @REPLACE_GETDELIM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getdelim +# define getdelim rpl_getdelim +# endif +_GL_FUNCDECL_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +_GL_CXXALIAS_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); +# else +# if !@HAVE_DECL_GETDELIM@ +_GL_FUNCDECL_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +# endif +_GL_CXXALIAS_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); +# endif +_GL_CXXALIASWARN (getdelim); +#elif defined GNULIB_POSIXCHECK +# undef getdelim +# if HAVE_RAW_DECL_GETDELIM +_GL_WARN_ON_USE (getdelim, "getdelim is unportable - " + "use gnulib module getdelim for portability"); +# endif +#endif + +#if @GNULIB_GETLINE@ +/* Read a line, up to (and including) the next newline, from STREAM, store it + in *LINEPTR (and NUL-terminate it). + *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE + bytes of space. It is realloc'd as necessary. + Return the number of bytes read and stored at *LINEPTR (not including the + NUL terminator), or -1 on error or EOF. */ +# if @REPLACE_GETLINE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getline +# define getline rpl_getline +# endif +_GL_FUNCDECL_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +_GL_CXXALIAS_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# else +# if !@HAVE_DECL_GETLINE@ +_GL_FUNCDECL_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# endif +# if @HAVE_DECL_GETLINE@ +_GL_CXXALIASWARN (getline); +# endif +#elif defined GNULIB_POSIXCHECK +# undef getline +# if HAVE_RAW_DECL_GETLINE +_GL_WARN_ON_USE (getline, "getline is unportable - " + "use gnulib module getline for portability"); +# endif +#endif + +#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ +struct obstack; +/* Grow an obstack with formatted output. Return the number of + bytes added to OBS. No trailing nul byte is added, and the + object should be closed with obstack_finish before use. Upon + memory allocation error, call obstack_alloc_failed_handler. Upon + other error, return -1. */ +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_printf rpl_obstack_printf +# endif +_GL_FUNCDECL_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# endif +_GL_CXXALIASWARN (obstack_printf); +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_vprintf rpl_obstack_vprintf +# endif +_GL_FUNCDECL_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (obstack_vprintf); +#endif + +#if @GNULIB_PERROR@ +/* Print a message to standard error, describing the value of ERRNO, + (if STRING is not NULL and not empty) prefixed with STRING and ": ", + and terminated with a newline. */ +# if @REPLACE_PERROR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define perror rpl_perror +# endif +_GL_FUNCDECL_RPL (perror, void, (const char *string)); +_GL_CXXALIAS_RPL (perror, void, (const char *string)); +# else +_GL_CXXALIAS_SYS (perror, void, (const char *string)); +# endif +_GL_CXXALIASWARN (perror); +#elif defined GNULIB_POSIXCHECK +# undef perror +/* Assume perror is always declared. */ +_GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " + "use gnulib module perror for portability"); +#endif + +#if @GNULIB_POPEN@ +# if @REPLACE_POPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef popen +# define popen rpl_popen +# endif +_GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); +# else +_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); +# endif +_GL_CXXALIASWARN (popen); +#elif defined GNULIB_POSIXCHECK +# undef popen +# if HAVE_RAW_DECL_POPEN +_GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " + "use gnulib module popen or pipe for more portability"); +# endif +#endif + +#if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ +# if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ + || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if defined __GNUC__ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +/* Don't break __attribute__((format(printf,M,N))). */ +# define printf __printf__ +# endif +_GL_FUNCDECL_RPL_1 (__printf__, int, + (const char *format, ...) + __asm__ (@ASM_SYMBOL_PREFIX@ + _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); +# else +_GL_FUNCDECL_RPL (printf, int, + (const char *format, ...) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...)); +# endif +# define GNULIB_overrides_printf 1 +# else +_GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); +# endif +_GL_CXXALIASWARN (printf); +#endif +#if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_printf +# undef printf +# endif +/* Assume printf is always declared. */ +_GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " + "use gnulib module printf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_PUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putc +# define putc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); +# endif +_GL_CXXALIASWARN (putc); +#endif + +#if @GNULIB_PUTCHAR@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putchar +# define putchar rpl_putchar +# endif +_GL_FUNCDECL_RPL (putchar, int, (int c)); +_GL_CXXALIAS_RPL (putchar, int, (int c)); +# else +_GL_CXXALIAS_SYS (putchar, int, (int c)); +# endif +_GL_CXXALIASWARN (putchar); +#endif + +#if @GNULIB_PUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef puts +# define puts rpl_puts +# endif +_GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (puts, int, (const char *string)); +# else +_GL_CXXALIAS_SYS (puts, int, (const char *string)); +# endif +_GL_CXXALIASWARN (puts); +#endif + +#if @GNULIB_REMOVE@ +# if @REPLACE_REMOVE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef remove +# define remove rpl_remove +# endif +_GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (remove, int, (const char *name)); +# else +_GL_CXXALIAS_SYS (remove, int, (const char *name)); +# endif +_GL_CXXALIASWARN (remove); +#elif defined GNULIB_POSIXCHECK +# undef remove +/* Assume remove is always declared. */ +_GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " + "use gnulib module remove for more portability"); +#endif + +#if @GNULIB_RENAME@ +# if @REPLACE_RENAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef rename +# define rename rpl_rename +# endif +_GL_FUNCDECL_RPL (rename, int, + (const char *old_filename, const char *new_filename) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (rename, int, + (const char *old_filename, const char *new_filename)); +# else +_GL_CXXALIAS_SYS (rename, int, + (const char *old_filename, const char *new_filename)); +# endif +_GL_CXXALIASWARN (rename); +#elif defined GNULIB_POSIXCHECK +# undef rename +/* Assume rename is always declared. */ +_GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " + "use gnulib module rename for more portability"); +#endif + +#if @GNULIB_RENAMEAT@ +# if @REPLACE_RENAMEAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef renameat +# define renameat rpl_renameat +# endif +_GL_FUNCDECL_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# else +# if !@HAVE_RENAMEAT@ +_GL_FUNCDECL_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# endif +_GL_CXXALIASWARN (renameat); +#elif defined GNULIB_POSIXCHECK +# undef renameat +# if HAVE_RAW_DECL_RENAMEAT +_GL_WARN_ON_USE (renameat, "renameat is not portable - " + "use gnulib module renameat for portability"); +# endif +#endif + +#if @GNULIB_SNPRINTF@ +# if @REPLACE_SNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define snprintf rpl_snprintf +# endif +_GL_FUNCDECL_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# else +# if !@HAVE_DECL_SNPRINTF@ +_GL_FUNCDECL_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# endif +_GL_CXXALIASWARN (snprintf); +#elif defined GNULIB_POSIXCHECK +# undef snprintf +# if HAVE_RAW_DECL_SNPRINTF +_GL_WARN_ON_USE (snprintf, "snprintf is unportable - " + "use gnulib module snprintf for portability"); +# endif +#endif + +/* Some people would argue that sprintf should be handled like gets + (for example, OpenBSD issues a link warning for both functions), + since both can cause security holes due to buffer overruns. + However, we believe that sprintf can be used safely, and is more + efficient than snprintf in those safe cases; and as proof of our + belief, we use sprintf in several gnulib modules. So this header + intentionally avoids adding a warning to sprintf except when + GNULIB_POSIXCHECK is defined. */ + +#if @GNULIB_SPRINTF_POSIX@ +# if @REPLACE_SPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define sprintf rpl_sprintf +# endif +_GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); +# endif +_GL_CXXALIASWARN (sprintf); +#elif defined GNULIB_POSIXCHECK +# undef sprintf +/* Assume sprintf is always declared. */ +_GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " + "use gnulib module sprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_TMPFILE@ +# if @REPLACE_TMPFILE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define tmpfile rpl_tmpfile +# endif +_GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); +_GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); +# else +_GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); +# endif +_GL_CXXALIASWARN (tmpfile); +#elif defined GNULIB_POSIXCHECK +# undef tmpfile +# if HAVE_RAW_DECL_TMPFILE +_GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " + "use gnulib module tmpfile for portability"); +# endif +#endif + +#if @GNULIB_VASPRINTF@ +/* Write formatted output to a string dynamically allocated with malloc(). + If the memory allocation succeeds, store the address of the string in + *RESULT and return the number of resulting bytes, excluding the trailing + NUL. Upon memory allocation error, or some other error, return -1. */ +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define asprintf rpl_asprintf +# endif +_GL_FUNCDECL_RPL (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (asprintf, int, + (char **result, const char *format, ...)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (asprintf, int, + (char **result, const char *format, ...)); +# endif +_GL_CXXALIASWARN (asprintf); +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vasprintf rpl_vasprintf +# endif +_GL_FUNCDECL_RPL (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vasprintf, int, + (char **result, const char *format, va_list args)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (vasprintf, int, + (char **result, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vasprintf); +#endif + +#if @GNULIB_VDPRINTF@ +# if @REPLACE_VDPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vdprintf rpl_vdprintf +# endif +_GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args)); +# else +# if !@HAVE_VDPRINTF@ +_GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +# endif +/* Need to cast, because on Solaris, the third parameter will likely be + __va_list args. */ +_GL_CXXALIAS_SYS_CAST (vdprintf, int, + (int fd, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vdprintf); +#elif defined GNULIB_POSIXCHECK +# undef vdprintf +# if HAVE_RAW_DECL_VDPRINTF +_GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " + "use gnulib module vdprintf for portability"); +# endif +#endif + +#if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ +# if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ + || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vfprintf rpl_vfprintf +# endif +# define GNULIB_overrides_vfprintf 1 +_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vfprintf, int, + (FILE *fp, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vfprintf); +#endif +#if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vfprintf +# undef vfprintf +# endif +/* Assume vfprintf is always declared. */ +_GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " + "use gnulib module vfprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ +# if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ + || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vprintf rpl_vprintf +# endif +# define GNULIB_overrides_vprintf 1 +_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 1, 0))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the second parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vprintf); +#endif +#if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vprintf +# undef vprintf +# endif +/* Assume vprintf is always declared. */ +_GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " + "use gnulib module vprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VSNPRINTF@ +# if @REPLACE_VSNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsnprintf rpl_vsnprintf +# endif +_GL_FUNCDECL_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# else +# if !@HAVE_DECL_VSNPRINTF@ +_GL_FUNCDECL_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsnprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsnprintf +# if HAVE_RAW_DECL_VSNPRINTF +_GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " + "use gnulib module vsnprintf for portability"); +# endif +#endif + +#if @GNULIB_VSPRINTF_POSIX@ +# if @REPLACE_VSPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsprintf rpl_vsprintf +# endif +_GL_FUNCDECL_RPL (vsprintf, int, + (char *str, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vsprintf, int, + (char *str, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vsprintf, int, + (char *str, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsprintf +/* Assume vsprintf is always declared. */ +_GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " + "use gnulib module vsprintf-posix for portable " + "POSIX compliance"); +#endif + + +#endif /* _GL_STDIO_H */ +#endif /* _GL_STDIO_H */ +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stdio-write.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio-write.c --- gettext-0.17/gettext-runtime/gnulib-lib/stdio-write.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdio-write.c 2010-05-17 19:56:12.000000000 +0000 @@ -0,0 +1,148 @@ +/* POSIX compatible FILE stream write function. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Replace these functions only if module 'sigpipe' is requested. */ +#if GNULIB_SIGPIPE + +/* On native Windows platforms, SIGPIPE does not exist. When write() is + called on a pipe with no readers, WriteFile() fails with error + GetLastError() = ERROR_NO_DATA, and write() in consequence fails with + error EINVAL. This write() function is at the basis of the function + which flushes the buffer of a FILE stream. */ + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +# include +# include +# include + +# define WIN32_LEAN_AND_MEAN /* avoid including junk */ +# include + +# define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \ + if (ferror (stream)) \ + return (EXPRESSION); \ + else \ + { \ + RETTYPE ret; \ + SetLastError (0); \ + ret = (EXPRESSION); \ + if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream)) \ + { \ + int fd = fileno (stream); \ + if (fd >= 0 \ + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\ + { \ + /* Try to raise signal SIGPIPE. */ \ + raise (SIGPIPE); \ + /* If it is currently blocked or ignored, change errno from \ + EINVAL to EPIPE. */ \ + errno = EPIPE; \ + } \ + } \ + return ret; \ + } + +# if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */ +int +printf (const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stdout, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */ +int +fprintf (FILE *stream, const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stream, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */ +int +vprintf (const char *format, va_list args) +{ + return vfprintf (stdout, format, args); +} +# endif + +# if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */ +int +vfprintf (FILE *stream, const char *format, va_list args) +#undef vfprintf +{ + CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) +} +# endif + +int +putchar (int c) +{ + return fputc (c, stdout); +} + +int +fputc (int c, FILE *stream) +#undef fputc +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF) +} + +int +fputs (const char *string, FILE *stream) +#undef fputs +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF) +} + +int +puts (const char *string) +#undef puts +{ + FILE *stream = stdout; + CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF) +} + +size_t +fwrite (const void *ptr, size_t s, size_t n, FILE *stream) +#undef fwrite +{ + CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) +} + +# endif +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/stdlib.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdlib.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/stdlib.in.h 2007-11-02 00:41:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/stdlib.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,6 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_malloc_and_calloc /* Special invocation convention inside glibc header files. */ @@ -31,8 +35,50 @@ #ifndef _GL_STDLIB_H #define _GL_STDLIB_H +/* NetBSD 5.0 mis-defines NULL. */ +#include + +/* Solaris declares getloadavg() in . */ +#if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ +# include +#endif + +/* OSF/1 5.1 declares 'struct random_data' in , which is included + from if _REENTRANT is defined. Include it always. */ +#if @HAVE_RANDOM_H@ +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) \ + || defined GNULIB_POSIXCHECK +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ +struct random_data +{ + int32_t *fptr; /* Front pointer. */ + int32_t *rptr; /* Rear pointer. */ + int32_t *state; /* Array of state values. */ + int rand_type; /* Type of random number generator. */ + int rand_deg; /* Degree of random number generator. */ + int rand_sep; /* Distance between front and rear. */ + int32_t *end_ptr; /* Pointer behind state table. */ +}; +#endif + +#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +/* On MacOS X 10.3, only declares mkstemp. */ +/* On Cygwin 1.7.1, only declares getsubopt. */ +/* But avoid namespace pollution on glibc systems and native Windows. */ +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ @@ -49,56 +95,84 @@ #endif -#ifdef __cplusplus -extern "C" { +#if @GNULIB_ATOLL@ +/* Parse a signed decimal integer. + Returns the value of the integer. Errors are not detected. */ +# if !@HAVE_ATOLL@ +_GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (atoll, long long, (const char *string)); +_GL_CXXALIASWARN (atoll); +#elif defined GNULIB_POSIXCHECK +# undef atoll +# if HAVE_RAW_DECL_ATOLL +_GL_WARN_ON_USE (atoll, "atoll is unportable - " + "use gnulib module atoll for portability"); +# endif #endif - -#if @GNULIB_MALLOC_POSIX@ -# if !@HAVE_MALLOC_POSIX@ -# undef malloc -# define malloc rpl_malloc -extern void * malloc (size_t size); +#if @GNULIB_CALLOC_POSIX@ +# if !@HAVE_CALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef calloc +# define calloc rpl_calloc +# endif +_GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size)); +_GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); +# else +_GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); # endif +_GL_CXXALIASWARN (calloc); #elif defined GNULIB_POSIXCHECK -# undef malloc -# define malloc(s) \ - (GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \ - "use gnulib module malloc-posix for portability"), \ - malloc (s)) +# undef calloc +/* Assume calloc is always declared. */ +_GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " + "use gnulib module calloc-posix for portability"); #endif - -#if @GNULIB_REALLOC_POSIX@ -# if !@HAVE_REALLOC_POSIX@ -# undef realloc -# define realloc rpl_realloc -extern void * realloc (void *ptr, size_t size); +#if @GNULIB_CANONICALIZE_FILE_NAME@ +# if @REPLACE_CANONICALIZE_FILE_NAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define canonicalize_file_name rpl_canonicalize_file_name +# endif +_GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name)); +# else +# if !@HAVE_CANONICALIZE_FILE_NAME@ +_GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif +_GL_CXXALIASWARN (canonicalize_file_name); #elif defined GNULIB_POSIXCHECK -# undef realloc -# define realloc(p,s) \ - (GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \ - "use gnulib module realloc-posix for portability"), \ - realloc (p, s)) +# undef canonicalize_file_name +# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME +_GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - " + "use gnulib module canonicalize-lgpl for portability"); +# endif #endif - -#if @GNULIB_CALLOC_POSIX@ -# if !@HAVE_CALLOC_POSIX@ -# undef calloc -# define calloc rpl_calloc -extern void * calloc (size_t nmemb, size_t size); +#if @GNULIB_GETLOADAVG@ +/* Store max(NELEM,3) load average numbers in LOADAVG[]. + The three numbers are the load average of the last 1 minute, the last 5 + minutes, and the last 15 minutes, respectively. + LOADAVG is an array of NELEM numbers. */ +# if !@HAVE_DECL_GETLOADAVG@ +_GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem) + _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); +_GL_CXXALIASWARN (getloadavg); #elif defined GNULIB_POSIXCHECK -# undef calloc -# define calloc(n,s) \ - (GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \ - "use gnulib module calloc-posix for portability"), \ - calloc (n, s)) +# undef getloadavg +# if HAVE_RAW_DECL_GETLOADAVG +_GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " + "use gnulib module getloadavg for portability"); +# endif #endif - #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. @@ -112,37 +186,133 @@ For more details see the POSIX:2001 specification. http://www.opengroup.org/susv3xsh/getsubopt.html */ # if !@HAVE_GETSUBOPT@ -extern int getsubopt (char **optionp, char *const *tokens, char **valuep); +_GL_FUNCDECL_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep) + _GL_ARG_NONNULL ((1, 2, 3))); # endif +_GL_CXXALIAS_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep)); +_GL_CXXALIASWARN (getsubopt); #elif defined GNULIB_POSIXCHECK # undef getsubopt -# define getsubopt(o,t,v) \ - (GL_LINK_WARNING ("getsubopt is unportable - " \ - "use gnulib module getsubopt for portability"), \ - getsubopt (o, t, v)) +# if HAVE_RAW_DECL_GETSUBOPT +_GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " + "use gnulib module getsubopt for portability"); +# endif +#endif + +#if @GNULIB_GRANTPT@ +/* Change the ownership and access permission of the slave side of the + pseudo-terminal whose master side is specified by FD. */ +# if !@HAVE_GRANTPT@ +_GL_FUNCDECL_SYS (grantpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (grantpt, int, (int fd)); +_GL_CXXALIASWARN (grantpt); +#elif defined GNULIB_POSIXCHECK +# undef grantpt +# if HAVE_RAW_DECL_GRANTPT +_GL_WARN_ON_USE (ptsname, "grantpt is not portable - " + "use gnulib module grantpt for portability"); +# endif #endif +#if @GNULIB_MALLOC_POSIX@ +# if !@HAVE_MALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef malloc +# define malloc rpl_malloc +# endif +_GL_FUNCDECL_RPL (malloc, void *, (size_t size)); +_GL_CXXALIAS_RPL (malloc, void *, (size_t size)); +# else +_GL_CXXALIAS_SYS (malloc, void *, (size_t size)); +# endif +_GL_CXXALIASWARN (malloc); +#elif defined GNULIB_POSIXCHECK +# undef malloc +/* Assume malloc is always declared. */ +_GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " + "use gnulib module malloc-posix for portability"); +#endif #if @GNULIB_MKDTEMP@ -# if !@HAVE_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ -extern char * mkdtemp (char * /*template*/); +# if !@HAVE_MKDTEMP@ +_GL_FUNCDECL_SYS (mkdtemp, char *, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); +_GL_CXXALIASWARN (mkdtemp); #elif defined GNULIB_POSIXCHECK # undef mkdtemp -# define mkdtemp(t) \ - (GL_LINK_WARNING ("mkdtemp is unportable - " \ - "use gnulib module mkdtemp for portability"), \ - mkdtemp (t)) +# if HAVE_RAW_DECL_MKDTEMP +_GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " + "use gnulib module mkdtemp for portability"); +# endif +#endif + +#if @GNULIB_MKOSTEMP@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMP@ +_GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemp); +#elif defined GNULIB_POSIXCHECK +# undef mkostemp +# if HAVE_RAW_DECL_MKOSTEMP +_GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " + "use gnulib module mkostemp for portability"); +# endif #endif +#if @GNULIB_MKOSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE before a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMPS@ +_GL_FUNCDECL_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemps); +#elif defined GNULIB_POSIXCHECK +# undef mkostemps +# if HAVE_RAW_DECL_MKOSTEMPS +_GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " + "use gnulib module mkostemps for portability"); +# endif +#endif #if @GNULIB_MKSTEMP@ -# if @REPLACE_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. @@ -152,34 +322,366 @@ implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ -# define mkstemp rpl_mkstemp -extern int mkstemp (char * /*template*/); +# if @REPLACE_MKSTEMP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkstemp rpl_mkstemp +# endif +_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); # else -/* On MacOS X 10.3, only declares mkstemp. */ -# include +# if ! @HAVE_MKSTEMP@ +_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); # endif +_GL_CXXALIASWARN (mkstemp); #elif defined GNULIB_POSIXCHECK # undef mkstemp -# define mkstemp(t) \ - (GL_LINK_WARNING ("mkstemp is unportable - " \ - "use gnulib module mkstemp for portability"), \ - mkstemp (t)) +# if HAVE_RAW_DECL_MKSTEMP +_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " + "use gnulib module mkstemp for portability"); +# endif #endif +#if @GNULIB_MKSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE prior to a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The file is then created, ensuring it didn't exist before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKSTEMPS@ +_GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); +_GL_CXXALIASWARN (mkstemps); +#elif defined GNULIB_POSIXCHECK +# undef mkstemps +# if HAVE_RAW_DECL_MKSTEMPS +_GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " + "use gnulib module mkstemps for portability"); +# endif +#endif + +#if @GNULIB_PTSNAME@ +/* Return the pathname of the pseudo-terminal slave associated with + the master FD is open on, or NULL on errors. */ +# if !@HAVE_PTSNAME@ +_GL_FUNCDECL_SYS (ptsname, char *, (int fd)); +# endif +_GL_CXXALIAS_SYS (ptsname, char *, (int fd)); +_GL_CXXALIASWARN (ptsname); +#elif defined GNULIB_POSIXCHECK +# undef ptsname +# if HAVE_RAW_DECL_PTSNAME +_GL_WARN_ON_USE (ptsname, "ptsname is not portable - " + "use gnulib module ptsname for portability"); +# endif +#endif #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ -# undef putenv -# define putenv rpl_putenv -extern int putenv (char *string); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putenv +# define putenv rpl_putenv +# endif +_GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (putenv, int, (char *string)); +# else +_GL_CXXALIAS_SYS (putenv, int, (char *string)); +# endif +_GL_CXXALIASWARN (putenv); +#endif + + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +# ifndef RAND_MAX +# define RAND_MAX 2147483647 +# endif +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); +_GL_CXXALIASWARN (random_r); +#elif defined GNULIB_POSIXCHECK +# undef random_r +# if HAVE_RAW_DECL_RANDOM_R +_GL_WARN_ON_USE (random_r, "random_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state)); +_GL_CXXALIASWARN (srandom_r); +#elif defined GNULIB_POSIXCHECK +# undef srandom_r +# if HAVE_RAW_DECL_SRANDOM_R +_GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state)); +_GL_CXXALIASWARN (initstate_r); +#elif defined GNULIB_POSIXCHECK +# undef initstate_r +# if HAVE_RAW_DECL_INITSTATE_R +_GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state)); +_GL_CXXALIASWARN (setstate_r); +#elif defined GNULIB_POSIXCHECK +# undef setstate_r +# if HAVE_RAW_DECL_SETSTATE_R +_GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " + "use gnulib module random_r for portability"); # endif #endif -#ifdef __cplusplus -} +#if @GNULIB_REALLOC_POSIX@ +# if !@HAVE_REALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef realloc +# define realloc rpl_realloc +# endif +_GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size)); +_GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); +# else +_GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); +# endif +_GL_CXXALIASWARN (realloc); +#elif defined GNULIB_POSIXCHECK +# undef realloc +/* Assume realloc is always declared. */ +_GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " + "use gnulib module realloc-posix for portability"); #endif +#if @GNULIB_REALPATH@ +# if @REPLACE_REALPATH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define realpath rpl_realpath +# endif +_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); +# else +# if !@HAVE_REALPATH@ +_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); +# endif +_GL_CXXALIASWARN (realpath); +#elif defined GNULIB_POSIXCHECK +# undef realpath +# if HAVE_RAW_DECL_REALPATH +_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " + "canonicalize or canonicalize-lgpl for portability"); +# endif +#endif + +#if @GNULIB_RPMATCH@ +/* Test a user response to a question. + Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */ +# if !@HAVE_RPMATCH@ +_GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); +_GL_CXXALIASWARN (rpmatch); +#elif defined GNULIB_POSIXCHECK +# undef rpmatch +# if HAVE_RAW_DECL_RPMATCH +_GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " + "use gnulib module rpmatch for portability"); +# endif +#endif + +#if @GNULIB_SETENV@ +/* Set NAME to VALUE in the environment. + If REPLACE is nonzero, overwrite an existing value. */ +# if @REPLACE_SETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef setenv +# define setenv rpl_setenv +# endif +_GL_FUNCDECL_RPL (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (setenv, int, + (const char *name, const char *value, int replace)); +# else +# if !@HAVE_SETENV@ +_GL_FUNCDECL_SYS (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (setenv, int, + (const char *name, const char *value, int replace)); +# endif +_GL_CXXALIASWARN (setenv); +#elif defined GNULIB_POSIXCHECK +# undef setenv +# if HAVE_RAW_DECL_SETENV +_GL_WARN_ON_USE (setenv, "setenv is unportable - " + "use gnulib module setenv for portability"); +# endif +#endif + +#if @GNULIB_STRTOD@ + /* Parse a double from STRING, updating ENDP if appropriate. */ +# if @REPLACE_STRTOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strtod rpl_strtod +# endif +_GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp)); +# else +# if !@HAVE_STRTOD@ +_GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp)); +# endif +_GL_CXXALIASWARN (strtod); +#elif defined GNULIB_POSIXCHECK +# undef strtod +# if HAVE_RAW_DECL_STRTOD +_GL_WARN_ON_USE (strtod, "strtod is unportable - " + "use gnulib module strtod for portability"); +# endif +#endif + +#if @GNULIB_STRTOLL@ +/* Parse a signed integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set + to ERANGE. */ +# if !@HAVE_STRTOLL@ +_GL_FUNCDECL_SYS (strtoll, long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoll, long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoll); +#elif defined GNULIB_POSIXCHECK +# undef strtoll +# if HAVE_RAW_DECL_STRTOLL +_GL_WARN_ON_USE (strtoll, "strtoll is unportable - " + "use gnulib module strtoll for portability"); +# endif +#endif + +#if @GNULIB_STRTOULL@ +/* Parse an unsigned integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is ULLONG_MAX, and errno is set to + ERANGE. */ +# if !@HAVE_STRTOULL@ +_GL_FUNCDECL_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoull); +#elif defined GNULIB_POSIXCHECK +# undef strtoull +# if HAVE_RAW_DECL_STRTOULL +_GL_WARN_ON_USE (strtoull, "strtoull is unportable - " + "use gnulib module strtoull for portability"); +# endif +#endif + +#if @GNULIB_UNLOCKPT@ +/* Unlock the slave side of the pseudo-terminal whose master side is specified + by FD, so that it can be opened. */ +# if !@HAVE_UNLOCKPT@ +_GL_FUNCDECL_SYS (unlockpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (unlockpt, int, (int fd)); +_GL_CXXALIASWARN (unlockpt); +#elif defined GNULIB_POSIXCHECK +# undef unlockpt +# if HAVE_RAW_DECL_UNLOCKPT +_GL_WARN_ON_USE (ptsname, "unlockpt is not portable - " + "use gnulib module unlockpt for portability"); +# endif +#endif + +#if @GNULIB_UNSETENV@ +/* Remove the variable NAME from the environment. */ +# if @REPLACE_UNSETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unsetenv +# define unsetenv rpl_unsetenv +# endif +_GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unsetenv, int, (const char *name)); +# else +# if !@HAVE_UNSETENV@ +_GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); +# endif +_GL_CXXALIASWARN (unsetenv); +#elif defined GNULIB_POSIXCHECK +# undef unsetenv +# if HAVE_RAW_DECL_UNSETENV +_GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " + "use gnulib module unsetenv for portability"); +# endif +#endif + + #endif /* _GL_STDLIB_H */ #endif /* _GL_STDLIB_H */ #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strdup.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strdup.c --- gettext-0.17/gettext-runtime/gnulib-lib/strdup.c 2007-01-27 03:21:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strdup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free - Software Foundation, Inc. - - This file is part of the GNU C Library. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifndef _LIBC -# include -#endif - -/* Get specification. */ -#include - -#include - -#undef __strdup -#ifdef _LIBC -# undef strdup -#endif - -#ifndef weak_alias -# define __strdup strdup -#endif - -/* Duplicate S, returning an identical malloc'd string. */ -char * -__strdup (const char *s) -{ - size_t len = strlen (s) + 1; - void *new = malloc (len); - - if (new == NULL) - return NULL; - - return (char *) memcpy (new, s, len); -} -#ifdef libc_hidden_def -libc_hidden_def (__strdup) -#endif -#ifdef weak_alias -weak_alias (__strdup, strdup) -#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/streq.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/streq.h --- gettext-0.17/gettext-runtime/gnulib-lib/streq.h 2007-10-31 12:35:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/streq.h 2010-02-16 21:31:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Optimized string comparison. - Copyright (C) 2001-2002, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strerror.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strerror.c --- gettext-0.17/gettext-runtime/gnulib-lib/strerror.c 2007-10-27 01:22:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strerror.c 2010-02-16 21:31:28.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror.c --- POSIX compatible system error routine - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,8 +21,15 @@ #if REPLACE_STRERROR +# include # include +# if GNULIB_defined_ESOCK /* native Windows platforms */ +# if HAVE_WINSOCK2_H +# include +# endif +# endif + # include "intprops.h" # undef strerror @@ -33,17 +40,308 @@ char * rpl_strerror (int n) { - char *result = strerror (n); - - if (result == NULL || result[0] == '\0') + char const *msg = NULL; + /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ + switch (n) { - static char const fmt[] = "Unknown error (%d)"; - static char mesg[sizeof fmt + INT_STRLEN_BOUND (n)]; - sprintf (mesg, fmt, n); - return mesg; +# if GNULIB_defined_ETXTBSY + case ETXTBSY: + msg = "Text file busy"; + break; +# endif + +# if GNULIB_defined_ESOCK /* native Windows platforms */ + /* EWOULDBLOCK is the same as EAGAIN. */ + case EINPROGRESS: + msg = "Operation now in progress"; + break; + case EALREADY: + msg = "Operation already in progress"; + break; + case ENOTSOCK: + msg = "Socket operation on non-socket"; + break; + case EDESTADDRREQ: + msg = "Destination address required"; + break; + case EMSGSIZE: + msg = "Message too long"; + break; + case EPROTOTYPE: + msg = "Protocol wrong type for socket"; + break; + case ENOPROTOOPT: + msg = "Protocol not available"; + break; + case EPROTONOSUPPORT: + msg = "Protocol not supported"; + break; + case ESOCKTNOSUPPORT: + msg = "Socket type not supported"; + break; + case EOPNOTSUPP: + msg = "Operation not supported"; + break; + case EPFNOSUPPORT: + msg = "Protocol family not supported"; + break; + case EAFNOSUPPORT: + msg = "Address family not supported by protocol"; + break; + case EADDRINUSE: + msg = "Address already in use"; + break; + case EADDRNOTAVAIL: + msg = "Cannot assign requested address"; + break; + case ENETDOWN: + msg = "Network is down"; + break; + case ENETUNREACH: + msg = "Network is unreachable"; + break; + case ENETRESET: + msg = "Network dropped connection on reset"; + break; + case ECONNABORTED: + msg = "Software caused connection abort"; + break; + case ECONNRESET: + msg = "Connection reset by peer"; + break; + case ENOBUFS: + msg = "No buffer space available"; + break; + case EISCONN: + msg = "Transport endpoint is already connected"; + break; + case ENOTCONN: + msg = "Transport endpoint is not connected"; + break; + case ESHUTDOWN: + msg = "Cannot send after transport endpoint shutdown"; + break; + case ETOOMANYREFS: + msg = "Too many references: cannot splice"; + break; + case ETIMEDOUT: + msg = "Connection timed out"; + break; + case ECONNREFUSED: + msg = "Connection refused"; + break; + case ELOOP: + msg = "Too many levels of symbolic links"; + break; + case EHOSTDOWN: + msg = "Host is down"; + break; + case EHOSTUNREACH: + msg = "No route to host"; + break; + case EPROCLIM: + msg = "Too many processes"; + break; + case EUSERS: + msg = "Too many users"; + break; + case EDQUOT: + msg = "Disk quota exceeded"; + break; + case ESTALE: + msg = "Stale NFS file handle"; + break; + case EREMOTE: + msg = "Object is remote"; + break; +# if HAVE_WINSOCK2_H + /* WSA_INVALID_HANDLE maps to EBADF */ + /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ + /* WSA_INVALID_PARAMETER maps to EINVAL */ + case WSA_OPERATION_ABORTED: + msg = "Overlapped operation aborted"; + break; + case WSA_IO_INCOMPLETE: + msg = "Overlapped I/O event object not in signaled state"; + break; + case WSA_IO_PENDING: + msg = "Overlapped operations will complete later"; + break; + /* WSAEINTR maps to EINTR */ + /* WSAEBADF maps to EBADF */ + /* WSAEACCES maps to EACCES */ + /* WSAEFAULT maps to EFAULT */ + /* WSAEINVAL maps to EINVAL */ + /* WSAEMFILE maps to EMFILE */ + /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ + /* WSAEINPROGRESS is EINPROGRESS */ + /* WSAEALREADY is EALREADY */ + /* WSAENOTSOCK is ENOTSOCK */ + /* WSAEDESTADDRREQ is EDESTADDRREQ */ + /* WSAEMSGSIZE is EMSGSIZE */ + /* WSAEPROTOTYPE is EPROTOTYPE */ + /* WSAENOPROTOOPT is ENOPROTOOPT */ + /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ + /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ + /* WSAEOPNOTSUPP is EOPNOTSUPP */ + /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ + /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ + /* WSAEADDRINUSE is EADDRINUSE */ + /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ + /* WSAENETDOWN is ENETDOWN */ + /* WSAENETUNREACH is ENETUNREACH */ + /* WSAENETRESET is ENETRESET */ + /* WSAECONNABORTED is ECONNABORTED */ + /* WSAECONNRESET is ECONNRESET */ + /* WSAENOBUFS is ENOBUFS */ + /* WSAEISCONN is EISCONN */ + /* WSAENOTCONN is ENOTCONN */ + /* WSAESHUTDOWN is ESHUTDOWN */ + /* WSAETOOMANYREFS is ETOOMANYREFS */ + /* WSAETIMEDOUT is ETIMEDOUT */ + /* WSAECONNREFUSED is ECONNREFUSED */ + /* WSAELOOP is ELOOP */ + /* WSAENAMETOOLONG maps to ENAMETOOLONG */ + /* WSAEHOSTDOWN is EHOSTDOWN */ + /* WSAEHOSTUNREACH is EHOSTUNREACH */ + /* WSAENOTEMPTY maps to ENOTEMPTY */ + /* WSAEPROCLIM is EPROCLIM */ + /* WSAEUSERS is EUSERS */ + /* WSAEDQUOT is EDQUOT */ + /* WSAESTALE is ESTALE */ + /* WSAEREMOTE is EREMOTE */ + case WSASYSNOTREADY: + msg = "Network subsystem is unavailable"; + break; + case WSAVERNOTSUPPORTED: + msg = "Winsock.dll version out of range"; + break; + case WSANOTINITIALISED: + msg = "Successful WSAStartup not yet performed"; + break; + case WSAEDISCON: + msg = "Graceful shutdown in progress"; + break; + case WSAENOMORE: case WSA_E_NO_MORE: + msg = "No more results"; + break; + case WSAECANCELLED: case WSA_E_CANCELLED: + msg = "Call was canceled"; + break; + case WSAEINVALIDPROCTABLE: + msg = "Procedure call table is invalid"; + break; + case WSAEINVALIDPROVIDER: + msg = "Service provider is invalid"; + break; + case WSAEPROVIDERFAILEDINIT: + msg = "Service provider failed to initialize"; + break; + case WSASYSCALLFAILURE: + msg = "System call failure"; + break; + case WSASERVICE_NOT_FOUND: + msg = "Service not found"; + break; + case WSATYPE_NOT_FOUND: + msg = "Class type not found"; + break; + case WSAEREFUSED: + msg = "Database query was refused"; + break; + case WSAHOST_NOT_FOUND: + msg = "Host not found"; + break; + case WSATRY_AGAIN: + msg = "Nonauthoritative host not found"; + break; + case WSANO_RECOVERY: + msg = "Nonrecoverable error"; + break; + case WSANO_DATA: + msg = "Valid name, no data record of requested type"; + break; + /* WSA_QOS_* omitted */ +# endif +# endif + +# if GNULIB_defined_ENOMSG + case ENOMSG: + msg = "No message of desired type"; + break; +# endif + +# if GNULIB_defined_EIDRM + case EIDRM: + msg = "Identifier removed"; + break; +# endif + +# if GNULIB_defined_ENOLINK + case ENOLINK: + msg = "Link has been severed"; + break; +# endif + +# if GNULIB_defined_EPROTO + case EPROTO: + msg = "Protocol error"; + break; +# endif + +# if GNULIB_defined_EMULTIHOP + case EMULTIHOP: + msg = "Multihop attempted"; + break; +# endif + +# if GNULIB_defined_EBADMSG + case EBADMSG: + msg = "Bad message"; + break; +# endif + +# if GNULIB_defined_EOVERFLOW + case EOVERFLOW: + msg = "Value too large for defined data type"; + break; +# endif + +# if GNULIB_defined_ENOTSUP + case ENOTSUP: + msg = "Not supported"; + break; +# endif + +# if GNULIB_defined_ESTALE + case ESTALE: + msg = "Stale NFS file handle"; + break; +# endif + +# if GNULIB_defined_ECANCELED + case ECANCELED: + msg = "Operation canceled"; + break; +# endif } - return result; + if (msg) + return (char *) msg; + + { + char *result = strerror (n); + + if (result == NULL || result[0] == '\0') + { + static char const fmt[] = "Unknown error (%d)"; + static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; + sprintf (msg_buf, fmt, n); + return msg_buf; + } + + return result; + } } #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/striconv.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/striconv.c --- gettext-0.17/gettext-runtime/gnulib-lib/striconv.c 2007-01-27 03:21:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/striconv.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -42,7 +42,7 @@ int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { # define tmpbufsize 4096 size_t length; @@ -67,33 +67,33 @@ while (insize > 0) { - char *outptr = tmpbuf; - size_t outsize = tmpbufsize; - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - ; - else if (errno == EINVAL) - break; - else - return -1; - } + char *outptr = tmpbuf; + size_t outsize = tmpbufsize; + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + ; + else if (errno == EINVAL) + break; + else + return -1; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - return -1; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + return -1; + } # endif - count += outptr - tmpbuf; + count += outptr - tmpbuf; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ @@ -104,7 +104,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - return -1; + return -1; count += outptr - tmpbuf; } # endif @@ -123,10 +123,10 @@ { result = (char *) malloc (length); if (result == NULL) - { - errno = ENOMEM; - return -1; - } + { + errno = ENOMEM; + return -1; + } } /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ @@ -145,27 +145,27 @@ while (insize > 0) { - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else - goto fail; - } + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else + goto fail; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - goto fail; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + goto fail; + } # endif } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ @@ -175,7 +175,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - goto fail; + goto fail; } # endif if (outsize != 0) @@ -191,9 +191,9 @@ { if (result != *resultp) { - int saved_errno = errno; - free (result); - errno = saved_errno; + int saved_errno = errno; + free (result); + errno = saved_errno; } return -1; } @@ -224,7 +224,7 @@ if (retval < 0) { if (result != NULL) - abort (); + abort (); return NULL; } @@ -233,8 +233,7 @@ (result != NULL ? realloc (result, length + 1) : malloc (length + 1)); if (final_result == NULL) { - if (result != NULL) - free (result); + free (result); errno = ENOMEM; return NULL; } @@ -285,81 +284,81 @@ for (;;) { - /* Here inptr + inbytes_remaining = src + strlen (src), - outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytes_remaining, - &outptr, &outbytes_remaining); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + /* Here inptr + inbytes_remaining = src + strlen (src), + outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &inbytes_remaining, + &outptr, &outbytes_remaining); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) for (;;) { - /* Here outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); + /* Here outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } # endif @@ -375,7 +374,7 @@ char *smaller_result = (char *) realloc (result, length); if (smaller_result != NULL) - result = smaller_result; + result = smaller_result; } return result; @@ -401,7 +400,7 @@ char *result = strdup (src); if (result == NULL) - errno = ENOMEM; + errno = ENOMEM; return result; } else @@ -413,44 +412,44 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (c_strcasecmp (from_codeset, "EUC-KR") == 0 - || c_strcasecmp (to_codeset, "EUC-KR") == 0) - { - errno = EINVAL; - return NULL; - } + || c_strcasecmp (to_codeset, "EUC-KR") == 0) + { + errno = EINVAL; + return NULL; + } # endif cd = iconv_open (to_codeset, from_codeset); if (cd == (iconv_t) -1) - return NULL; + return NULL; result = str_cd_iconv (src, cd); if (result == NULL) - { - /* Close cd, but preserve the errno from str_cd_iconv. */ - int saved_errno = errno; - iconv_close (cd); - errno = saved_errno; - } + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconv_close (cd); + errno = saved_errno; + } else - { - if (iconv_close (cd) < 0) - { - /* Return NULL, but free the allocated memory, and while doing - that, preserve the errno from iconv_close. */ - int saved_errno = errno; - free (result); - errno = saved_errno; - return NULL; - } - } + { + if (iconv_close (cd) < 0) + { + /* Return NULL, but free the allocated memory, and while doing + that, preserve the errno from iconv_close. */ + int saved_errno = errno; + free (result); + errno = saved_errno; + return NULL; + } + } return result; #else /* This is a different error code than if iconv_open existed but didn't - support from_codeset and to_codeset, so that the caller can emit - an error message such as - "iconv() is not supported. Installing GNU libiconv and - then reinstalling this package would fix this." */ + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ errno = ENOSYS; return NULL; #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/striconv.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/striconv.h --- gettext-0.17/gettext-runtime/gnulib-lib/striconv.h 2007-01-27 03:21:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/striconv.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -65,7 +65,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * str_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/string.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/string.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/string.in.h 2007-10-17 22:34:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/string.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 1995-1996, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,202 +18,384 @@ #ifndef _GL_STRING_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #ifndef _GL_STRING_H #define _GL_STRING_H +/* NetBSD 5.0 mis-defines NULL. */ +#include -/* The definition of GL_LINK_WARNING is copied here. */ +/* MirBSD defines mbslen as a macro. */ +#if @GNULIB_MBSLEN@ && defined __MirBSD__ +# include +#endif + +#ifndef __attribute__ +/* This feature is available in gcc versions 2.5 and later. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) +# define __attribute__(Spec) /* empty */ +# endif +/* The attribute __pure__ was added in gcc 2.96. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) +# define __pure__ /* empty */ +# endif +#endif -#ifdef __cplusplus -extern "C" { +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Return the first instance of C within N bytes of S, or NULL. */ +#if @GNULIB_MEMCHR@ +# if @REPLACE_MEMCHR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memchr rpl_memchr +# endif +_GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); +# else +# if ! @HAVE_MEMCHR@ +_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const void * std::memchr (const void *, int, size_t); } + extern "C++" { void * std::memchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memchr, + void *, (void const *__s, int __c, size_t __n), + void const *, (void const *__s, int __c, size_t __n)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); +_GL_CXXALIASWARN1 (memchr, void const *, + (void const *__s, int __c, size_t __n)); +# else +_GL_CXXALIASWARN (memchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef memchr +/* Assume memchr is always declared. */ +_GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " + "use gnulib module memchr for portability" ); #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ -# if ! @HAVE_DECL_MEMMEM@ -extern void *memmem (void const *__haystack, size_t __haystack_len, - void const *__needle, size_t __needle_len); +# if @REPLACE_MEMMEM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memmem rpl_memmem +# endif +_GL_FUNCDECL_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +_GL_CXXALIAS_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); +# else +# if ! @HAVE_DECL_MEMMEM@ +_GL_FUNCDECL_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); # endif +_GL_CXXALIASWARN (memmem); #elif defined GNULIB_POSIXCHECK # undef memmem -# define memmem(a,al,b,bl) \ - (GL_LINK_WARNING ("memmem is unportable - " \ - "use gnulib module memmem for portability"), \ - memmem (a, al, b, bl)) +# if HAVE_RAW_DECL_MEMMEM +_GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " + "use gnulib module memmem-simple for portability, " + "and module memmem for speed" ); +# endif #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ -extern void *mempcpy (void *restrict __dest, void const *restrict __src, - size_t __n); -# endif +_GL_FUNCDECL_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n)); +_GL_CXXALIASWARN (mempcpy); #elif defined GNULIB_POSIXCHECK # undef mempcpy -# define mempcpy(a,b,n) \ - (GL_LINK_WARNING ("mempcpy is unportable - " \ - "use gnulib module mempcpy for portability"), \ - mempcpy (a, b, n)) +# if HAVE_RAW_DECL_MEMPCPY +_GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " + "use gnulib module mempcpy for portability"); +# endif #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ -extern void *memrchr (void const *, int, size_t); +_GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::memrchr (const void *, int, size_t); } + extern "C++" { void * std::memrchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memrchr, + void *, (void const *, int, size_t), + void const *, (void const *, int, size_t)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t)); +_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t)); +# else +_GL_CXXALIASWARN (memrchr); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr -# define memrchr(a,b,c) \ - (GL_LINK_WARNING ("memrchr is unportable - " \ - "use gnulib module memrchr for portability"), \ - memrchr (a, b, c)) +# if HAVE_RAW_DECL_MEMRCHR +_GL_WARN_ON_USE (memrchr, "memrchr is unportable - " + "use gnulib module memrchr for portability"); +# endif +#endif + +/* Find the first occurrence of C in S. More efficient than + memchr(S,C,N), at the expense of undefined behavior if C does not + occur within N bytes. */ +#if @GNULIB_RAWMEMCHR@ +# if ! @HAVE_RAWMEMCHR@ +_GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::rawmemchr (const void *, int); } + extern "C++" { void * std::rawmemchr (void *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (rawmemchr, + void *, (void const *__s, int __c_in), + void const *, (void const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in)); +_GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (rawmemchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef rawmemchr +# if HAVE_RAW_DECL_RAWMEMCHR +_GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " + "use gnulib module rawmemchr for portability"); +# endif #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ -extern char *stpcpy (char *restrict __dst, char const *restrict __src); -# endif +_GL_FUNCDECL_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src)); +_GL_CXXALIASWARN (stpcpy); #elif defined GNULIB_POSIXCHECK # undef stpcpy -# define stpcpy(a,b) \ - (GL_LINK_WARNING ("stpcpy is unportable - " \ - "use gnulib module stpcpy for portability"), \ - stpcpy (a, b)) +# if HAVE_RAW_DECL_STPCPY +_GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " + "use gnulib module stpcpy for portability"); +# endif #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ -# if ! @HAVE_STPNCPY@ -# define stpncpy gnu_stpncpy -extern char *stpncpy (char *restrict __dst, char const *restrict __src, - size_t __n); +# if @REPLACE_STPNCPY@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define stpncpy rpl_stpncpy +# endif +_GL_FUNCDECL_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); +# else +# if ! @HAVE_STPNCPY@ +_GL_FUNCDECL_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); # endif +_GL_CXXALIASWARN (stpncpy); #elif defined GNULIB_POSIXCHECK # undef stpncpy -# define stpncpy(a,b,n) \ - (GL_LINK_WARNING ("stpncpy is unportable - " \ - "use gnulib module stpncpy for portability"), \ - stpncpy (a, b, n)) -#endif - -/* Compare strings S1 and S2, ignoring case, returning less than, equal to or - greater than zero if S1 is lexicographically less than, equal to or greater - than S2. - Note: This function does not work in multibyte locales. */ -#if ! @HAVE_STRCASECMP@ -extern int strcasecmp (char const *s1, char const *s2); -#endif -#if defined GNULIB_POSIXCHECK -/* strcasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strcasecmp -# define strcasecmp(a,b) \ - (GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasecmp if you care about " \ - "internationalization, or use c_strcasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strcasecmp (a, b)) -#endif - -/* Compare no more than N bytes of strings S1 and S2, ignoring case, - returning less than, equal to or greater than zero if S1 is - lexicographically less than, equal to or greater than S2. - Note: This function cannot work correctly in multibyte locales. */ -#if ! @HAVE_DECL_STRNCASECMP@ -extern int strncasecmp (char const *s1, char const *s2, size_t n); -#endif -#if defined GNULIB_POSIXCHECK -/* strncasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strncasecmp -# define strncasecmp(a,b,n) \ - (GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \ - "strings in multibyte locales - " \ - "use mbsncasecmp or mbspcasecmp if you care about " \ - "internationalization, or use c_strncasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strncasecmp (a, b, n)) +# if HAVE_RAW_DECL_STPNCPY +_GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " + "use gnulib module stpncpy for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr -# define strchr(s,c) \ - (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbschr if you care about internationalization"), \ - strchr (s, c)) +/* Assume strchr is always declared. */ +_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbschr if you care about internationalization"); #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if ! @HAVE_STRCHRNUL@ -extern char *strchrnul (char const *__s, int __c_in); +_GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * std::strchrnul (const char *, int); } + extern "C++" { char * std::strchrnul (char *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (strchrnul, + char *, (char const *__s, int __c_in), + char const *, (char const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in)); +_GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (strchrnul); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul -# define strchrnul(a,b) \ - (GL_LINK_WARNING ("strchrnul is unportable - " \ - "use gnulib module strchrnul for portability"), \ - strchrnul (a, b)) +# if HAVE_RAW_DECL_STRCHRNUL +_GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " + "use gnulib module strchrnul for portability"); +# endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ -# if ! @HAVE_DECL_STRDUP@ && ! defined strdup -extern char *strdup (char const *__s); +# if @REPLACE_STRDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strdup +# define strdup rpl_strdup +# endif +_GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strdup, char *, (char const *__s)); +# else +# if !(@HAVE_DECL_STRDUP@ || defined strdup) +_GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif +_GL_CXXALIASWARN (strdup); #elif defined GNULIB_POSIXCHECK # undef strdup -# define strdup(a) \ - (GL_LINK_WARNING ("strdup is unportable - " \ - "use gnulib module strdup for portability"), \ - strdup (a)) +# if HAVE_RAW_DECL_STRDUP +_GL_WARN_ON_USE (strdup, "strdup is unportable - " + "use gnulib module strdup for portability"); +# endif +#endif + +/* Append no more than N characters from SRC onto DEST. */ +#if @GNULIB_STRNCAT@ +# if @REPLACE_STRNCAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strncat +# define strncat rpl_strncat +# endif +_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); +# else +_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); +# endif +_GL_CXXALIASWARN (strncat); +#elif defined GNULIB_POSIXCHECK +# undef strncat +# if HAVE_RAW_DECL_STRNCAT +_GL_WARN_ON_USE (strncat, "strncat is unportable - " + "use gnulib module strncat for portability"); +# endif #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ -# if ! @HAVE_STRNDUP@ -# undef strndup -# define strndup rpl_strndup -# endif -# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@ -extern char *strndup (char const *__string, size_t __n); +# if @REPLACE_STRNDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strndup +# define strndup rpl_strndup +# endif +_GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n)); +# else +# if ! @HAVE_DECL_STRNDUP@ +_GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n)); # endif +_GL_CXXALIASWARN (strndup); #elif defined GNULIB_POSIXCHECK # undef strndup -# define strndup(a,n) \ - (GL_LINK_WARNING ("strndup is unportable - " \ - "use gnulib module strndup for portability"), \ - strndup (a, n)) +# if HAVE_RAW_DECL_STRNDUP +_GL_WARN_ON_USE (strndup, "strndup is unportable - " + "use gnulib module strndup for portability"); +# endif #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ -# if ! @HAVE_DECL_STRNLEN@ -extern size_t strnlen (char const *__string, size_t __maxlen); +# if @REPLACE_STRNLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strnlen +# define strnlen rpl_strnlen +# endif +_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); +# else +# if ! @HAVE_DECL_STRNLEN@ +_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); # endif +_GL_CXXALIASWARN (strnlen); #elif defined GNULIB_POSIXCHECK # undef strnlen -# define strnlen(a,n) \ - (GL_LINK_WARNING ("strnlen is unportable - " \ - "use gnulib module strnlen for portability"), \ - strnlen (a, n)) +# if HAVE_RAW_DECL_STRNLEN +_GL_WARN_ON_USE (strnlen, "strnlen is unportable - " + "use gnulib module strnlen for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK @@ -222,17 +404,32 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn -# define strcspn(s,a) \ - (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscspn if you care about internationalization"), \ - strcspn (s, a)) +/* Assume strcspn is always declared. */ +_GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbscspn if you care about internationalization"); #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ -extern char *strpbrk (char const *__s, char const *__accept); +_GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const char * strpbrk (const char *, const char *); } + extern "C++" { char * strpbrk (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strpbrk, + char *, (char const *__s, char const *__accept), + const char *, (char const *__s, char const *__accept)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept)); +_GL_CXXALIASWARN1 (strpbrk, char const *, + (char const *__s, char const *__accept)); +# else +_GL_CXXALIASWARN (strpbrk); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. @@ -240,40 +437,36 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbspbrk if you care about internationalization"), \ - strpbrk (s, a)) +_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings " + "in multibyte locales - " + "use mbspbrk if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk is unportable - " \ - "use gnulib module strpbrk for portability"), \ - strpbrk (s, a)) +# if HAVE_RAW_DECL_STRPBRK +_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - " + "use gnulib module strpbrk for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn -# define strspn(s,a) \ - (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbsspn if you care about internationalization"), \ - strspn (s, a)) +/* Assume strspn is always declared. */ +_GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbsspn if you care about internationalization"); #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr -# define strrchr(s,c) \ - (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbsrchr if you care about internationalization"), \ - strrchr (s, c)) +/* Assume strrchr is always declared. */ +_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbsrchr if you care about internationalization"); #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. @@ -294,65 +487,122 @@ See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ -extern char *strsep (char **restrict __stringp, char const *restrict __delim); -# endif +_GL_FUNCDECL_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim)); +_GL_CXXALIASWARN (strsep); # if defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbssep if you care about internationalization"), \ - strsep (s, d)) +_GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " + "in multibyte locales - " + "use mbssep if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep is unportable - " \ - "use gnulib module strsep for portability"), \ - strsep (s, d)) +# if HAVE_RAW_DECL_STRSEP +_GL_WARN_ON_USE (strsep, "strsep is unportable - " + "use gnulib module strsep for portability"); +# endif #endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRSTR@ +# if @REPLACE_STRSTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strstr rpl_strstr +# endif +_GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); +# else + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strstr (const char *, const char *); } + extern "C++" { char * strstr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strstr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strstr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strstr); +# endif +#elif defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr -# define strstr(a,b) \ - (GL_LINK_WARNING ("strstr cannot work correctly on character strings " \ - "in most multibyte locales - " \ - "use mbsstr if you care about internationalization"), \ - strstr (a, b)) +/* Assume strstr is always declared. */ +_GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " + "work correctly on character strings in most " + "multibyte locales - " + "use mbsstr if you care about internationalization, " + "or use strstr if you care about speed"); #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ -#if ! @HAVE_STRCASESTR@ -extern char *strcasestr (const char *haystack, const char *needle); -#endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRCASESTR@ +# if @REPLACE_STRCASESTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strcasestr rpl_strcasestr +# endif +_GL_FUNCDECL_RPL (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strcasestr, char *, + (const char *haystack, const char *needle)); +# else +# if ! @HAVE_STRCASESTR@ +_GL_FUNCDECL_SYS (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strcasestr (const char *, const char *); } + extern "C++" { char * strcasestr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strcasestr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strcasestr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strcasestr); +# endif +#elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr -# define strcasestr(a,b) \ - (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasestr if you care about " \ - "internationalization, or use c-strcasestr if you want " \ - "a locale independent function"), \ - strcasestr (a, b)) +# if HAVE_RAW_DECL_STRCASESTR +_GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " + "strings in multibyte locales - " + "use mbscasestr if you care about " + "internationalization, or use c-strcasestr if you want " + "a locale independent function"); +# endif #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = strtok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = strtok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. @@ -367,24 +617,44 @@ See also strsep(). */ #if @GNULIB_STRTOK_R@ -# if ! @HAVE_DECL_STRTOK_R@ -extern char *strtok_r (char *restrict s, char const *restrict delim, - char **restrict save_ptr); +# if @REPLACE_STRTOK_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strtok_r +# define strtok_r rpl_strtok_r +# endif +_GL_FUNCDECL_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); +# else +# if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK +# undef strtok_r +# endif +# if ! @HAVE_DECL_STRTOK_R@ +_GL_FUNCDECL_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); # endif +_GL_CXXALIASWARN (strtok_r); # if defined GNULIB_POSIXCHECK -# undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbstok_r if you care about internationalization"), \ - strtok_r (s, d, p)) +_GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " + "strings in multibyte locales - " + "use mbstok_r if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r is unportable - " \ - "use gnulib module strtok_r for portability"), \ - strtok_r (s, d, p)) +# if HAVE_RAW_DECL_STRTOK_R +_GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " + "use gnulib module strtok_r for portability"); +# endif #endif @@ -394,13 +664,27 @@ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ -extern size_t mbslen (const char *string); +# ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */ +# undef mbslen +# endif +# if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbslen rpl_mbslen +# endif +_GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbslen, size_t, (const char *string)); +# else +_GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string)); +# endif +_GL_CXXALIASWARN (mbslen); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ -extern size_t mbsnlen (const char *string, size_t len); +_GL_EXTERN_C size_t mbsnlen (const char *string, size_t len) + _GL_ARG_NONNULL ((1)); #endif #if @GNULIB_MBSCHR@ @@ -408,8 +692,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ -extern char * mbschr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbschr); #endif #if @GNULIB_MBSRCHR@ @@ -417,8 +712,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ -extern char * mbsrchr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbsrchr); #endif #if @GNULIB_MBSSTR@ @@ -426,7 +732,8 @@ string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ -extern char * mbsstr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASECMP@ @@ -436,7 +743,8 @@ Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ -extern int mbscasecmp (const char *s1, const char *s2); +_GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSNCASECMP@ @@ -449,7 +757,8 @@ of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ -extern int mbsncasecmp (const char *s1, const char *s2, size_t n); +_GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPCASECMP@ @@ -462,7 +771,8 @@ smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ -extern char * mbspcasecmp (const char *string, const char *prefix); +_GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASESTR@ @@ -471,7 +781,8 @@ Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ -extern char * mbscasestr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCSPN@ @@ -480,7 +791,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ -extern size_t mbscspn (const char *string, const char *accept); +_GL_EXTERN_C size_t mbscspn (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPBRK@ @@ -488,8 +800,19 @@ in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ -# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ -extern char * mbspbrk (const char *string, const char *accept); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept)); +# else +_GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept)); +# endif +_GL_CXXALIASWARN (mbspbrk); #endif #if @GNULIB_MBSSPN@ @@ -498,7 +821,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ -extern size_t mbsspn (const char *string, const char *reject); +_GL_EXTERN_C size_t mbsspn (const char *string, const char *reject) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSSEP@ @@ -516,7 +840,8 @@ Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ -extern char * mbssep (char **stringp, const char *delim); +_GL_EXTERN_C char * mbssep (char **stringp, const char *delim) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSTOK_R@ @@ -524,40 +849,81 @@ the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = mbstok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = mbstok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ -extern char * mbstok_r (char *string, const char *delim, char **save_ptr); +_GL_EXTERN_C char * mbstok_r (char *string, const char *delim, char **save_ptr) + _GL_ARG_NONNULL ((2, 3)); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ -# undef strerror -# define strerror rpl_strerror -extern char *strerror (int); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strerror +# define strerror rpl_strerror +# endif +_GL_FUNCDECL_RPL (strerror, char *, (int)); +_GL_CXXALIAS_RPL (strerror, char *, (int)); +# else +_GL_CXXALIAS_SYS (strerror, char *, (int)); # endif +_GL_CXXALIASWARN (strerror); #elif defined GNULIB_POSIXCHECK # undef strerror -# define strerror(e) \ - (GL_LINK_WARNING ("strerror is unportable - " \ - "use gnulib module strerror to guarantee non-NULL result"), \ - strerror (e)) +/* Assume strerror is always declared. */ +_GL_WARN_ON_USE (strerror, "strerror is unportable - " + "use gnulib module strerror to guarantee non-NULL result"); +#endif + +#if @GNULIB_STRSIGNAL@ +# if @REPLACE_STRSIGNAL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strsignal rpl_strsignal +# endif +_GL_FUNCDECL_RPL (strsignal, char *, (int __sig)); +_GL_CXXALIAS_RPL (strsignal, char *, (int __sig)); +# else +# if ! @HAVE_DECL_STRSIGNAL@ +_GL_FUNCDECL_SYS (strsignal, char *, (int __sig)); +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is + 'const char *'. */ +_GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); +# endif +_GL_CXXALIASWARN (strsignal); +#elif defined GNULIB_POSIXCHECK +# undef strsignal +# if HAVE_RAW_DECL_STRSIGNAL +_GL_WARN_ON_USE (strsignal, "strsignal is unportable - " + "use gnulib module strsignal for portability"); +# endif #endif - -#ifdef __cplusplus -} +#if @GNULIB_STRVERSCMP@ +# if !@HAVE_STRVERSCMP@ +_GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); +_GL_CXXALIASWARN (strverscmp); +#elif defined GNULIB_POSIXCHECK +# undef strverscmp +# if HAVE_RAW_DECL_STRVERSCMP +_GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " + "use gnulib module strverscmp for portability"); +# endif #endif + #endif /* _GL_STRING_H */ #endif /* _GL_STRING_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/str-kmp.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/str-kmp.h --- gettext-0.17/gettext-runtime/gnulib-lib/str-kmp.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/str-kmp.h 2010-02-16 21:31:28.000000000 +0000 @@ -0,0 +1,150 @@ +/* Substring search in a NUL terminated string of 'char' elements, + using the Knuth-Morris-Pratt algorithm. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2005. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Before including this file, you need to define: + CANON_ELEMENT(c) A macro that canonicalizes an element right after + it has been fetched from one of the two strings. + The argument is an 'unsigned char'; the result + must be an 'unsigned char' as well. */ + +/* Knuth-Morris-Pratt algorithm. + See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm + Return a boolean indicating success: + Return true and set *RESULTP if the search was completed. + Return false if it was aborted because not enough memory was available. */ +static bool +knuth_morris_pratt_unibyte (const char *haystack, const char *needle, + const char **resultp) +{ + size_t m = strlen (needle); + + /* Allocate the table. */ + size_t *table = (size_t *) nmalloca (m, sizeof (size_t)); + if (table == NULL) + return false; + /* Fill the table. + For 0 < i < m: + 0 < table[i] <= i is defined such that + forall 0 < x < table[i]: needle[x..i-1] != needle[0..i-1-x], + and table[i] is as large as possible with this property. + This implies: + 1) For 0 < i < m: + If table[i] < i, + needle[table[i]..i-1] = needle[0..i-1-table[i]]. + 2) For 0 < i < m: + rhaystack[0..i-1] == needle[0..i-1] + and exists h, i <= h < m: rhaystack[h] != needle[h] + implies + forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1]. + table[0] remains uninitialized. */ + { + size_t i, j; + + /* i = 1: Nothing to verify for x = 0. */ + table[1] = 1; + j = 0; + + for (i = 2; i < m; i++) + { + /* Here: j = i-1 - table[i-1]. + The inequality needle[x..i-1] != needle[0..i-1-x] is known to hold + for x < table[i-1], by induction. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + unsigned char b = CANON_ELEMENT ((unsigned char) needle[i - 1]); + + for (;;) + { + /* Invariants: The inequality needle[x..i-1] != needle[0..i-1-x] + is known to hold for x < i-1-j. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + if (b == CANON_ELEMENT ((unsigned char) needle[j])) + { + /* Set table[i] := i-1-j. */ + table[i] = i - ++j; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for x = i-1-j, because + needle[i-1] != needle[j] = needle[i-1-x]. */ + if (j == 0) + { + /* The inequality holds for all possible x. */ + table[i] = i; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for i-1-j < x < i-1-j+table[j], because for these x: + needle[x..i-2] + = needle[x-(i-1-j)..j-1] + != needle[0..j-1-(x-(i-1-j))] (by definition of table[j]) + = needle[0..i-2-x], + hence needle[x..i-1] != needle[0..i-1-x]. + Furthermore + needle[i-1-j+table[j]..i-2] + = needle[table[j]..j-1] + = needle[0..j-1-table[j]] (by definition of table[j]). */ + j = j - table[j]; + } + /* Here: j = i - table[i]. */ + } + } + + /* Search, using the table to accelerate the processing. */ + { + size_t j; + const char *rhaystack; + const char *phaystack; + + *resultp = NULL; + j = 0; + rhaystack = haystack; + phaystack = haystack; + /* Invariant: phaystack = rhaystack + j. */ + while (*phaystack != '\0') + if (CANON_ELEMENT ((unsigned char) needle[j]) + == CANON_ELEMENT ((unsigned char) *phaystack)) + { + j++; + phaystack++; + if (j == m) + { + /* The entire needle has been found. */ + *resultp = rhaystack; + break; + } + } + else if (j > 0) + { + /* Found a match of needle[0..j-1], mismatch at needle[j]. */ + rhaystack += table[j]; + j -= table[j]; + } + else + { + /* Found a mismatch at needle[0] already. */ + rhaystack++; + phaystack++; + } + } + + freea (table); + return true; +} + +#undef CANON_ELEMENT diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strnlen1.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen1.c --- gettext-0.17/gettext-runtime/gnulib-lib/strnlen1.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen1.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strnlen1.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen1.h --- gettext-0.17/gettext-runtime/gnulib-lib/strnlen1.h 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen1.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strnlen.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen.c --- gettext-0.17/gettext-runtime/gnulib-lib/strnlen.c 2007-02-13 00:59:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strnlen.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,10 +1,10 @@ /* Find the length of STRING, but scan at most MAXLEN characters. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. Written by Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strtol.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strtol.c --- gettext-0.17/gettext-runtime/gnulib-lib/strtol.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strtol.c 2010-03-28 18:31:26.000000000 +0000 @@ -1,8 +1,7 @@ /* Convert string representation of a number into an integer value. Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003, 2005, - 2006, 2007 - Free Software Foundation, Inc. + 2006, 2007, 2009, 2010 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. @@ -115,9 +114,9 @@ operating on `long long int's. */ #ifdef QUAD # define LONG long long -# define STRTOL_LONG_MIN LONG_LONG_MIN -# define STRTOL_LONG_MAX LONG_LONG_MAX -# define STRTOL_ULONG_MAX ULONG_LONG_MAX +# define STRTOL_LONG_MIN LLONG_MIN +# define STRTOL_LONG_MAX LLONG_MAX +# define STRTOL_ULONG_MAX ULLONG_MAX /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ @@ -139,28 +138,28 @@ your host. */ # define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) 0 \ - : TYPE_SIGNED_MAGNITUDE (t) \ - ? ~ (t) 0 \ - : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) + ? (t) 0 \ + : TYPE_SIGNED_MAGNITUDE (t) \ + ? ~ (t) 0 \ + : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) # define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) + ? (t) -1 \ + : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -# ifndef ULONG_LONG_MAX -# define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long) +# ifndef ULLONG_MAX +# define ULLONG_MAX TYPE_MAXIMUM (unsigned long long) # endif -# ifndef LONG_LONG_MAX -# define LONG_LONG_MAX TYPE_MAXIMUM (long long int) +# ifndef LLONG_MAX +# define LLONG_MAX TYPE_MAXIMUM (long long int) # endif -# ifndef LONG_LONG_MIN -# define LONG_LONG_MIN TYPE_MINIMUM (long long int) +# ifndef LLONG_MIN +# define LLONG_MIN TYPE_MINIMUM (long long int) # endif # if __GNUC__ == 2 && __GNUC_MINOR__ < 7 /* Work around gcc bug with using this constant. */ - static const unsigned long long int maxquad = ULONG_LONG_MAX; + static const unsigned long long int maxquad = ULLONG_MAX; # undef STRTOL_ULONG_MAX # define STRTOL_ULONG_MAX maxquad # endif @@ -238,7 +237,7 @@ INT INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, - int base, int group LOCALE_PARAM_PROTO) + int base, int group LOCALE_PARAM_PROTO) { int negative; register unsigned LONG int cutoff; @@ -263,18 +262,18 @@ { grouping = _NL_CURRENT (LC_NUMERIC, GROUPING); if (*grouping <= 0 || *grouping == CHAR_MAX) - grouping = NULL; + grouping = NULL; else - { - /* Figure out the thousands separator character. */ + { + /* Figure out the thousands separator character. */ # if defined _LIBC || defined _HAVE_BTOWC - thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); - if (thousands == WEOF) - thousands = L'\0'; + thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); + if (thousands == WEOF) + thousands = L'\0'; # endif - if (thousands == L'\0') - grouping = NULL; - } + if (thousands == L'\0') + grouping = NULL; + } } else grouping = NULL; @@ -312,12 +311,12 @@ if (*s == L_('0')) { if ((base == 0 || base == 16) && TOUPPER (s[1]) == L_('X')) - { - s += 2; - base = 16; - } + { + s += 2; + base = 16; + } else if (base == 0) - base = 8; + base = 8; } else if (base == 0) base = 10; @@ -331,14 +330,14 @@ /* Find the end of the digit string and check its grouping. */ end = s; for (c = *end; c != L_('\0'); c = *++end) - if ((wchar_t) c != thousands - && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) - && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) - break; + if ((wchar_t) c != thousands + && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) + && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) + break; if (*s == thousands) - end = s; + end = s; else - end = correctly_grouped_prefix (s, end, thousands, grouping); + end = correctly_grouped_prefix (s, end, thousands, grouping); } else #endif @@ -352,23 +351,23 @@ for (c = *s; c != L_('\0'); c = *++s) { if (s == end) - break; + break; if (c >= L_('0') && c <= L_('9')) - c -= L_('0'); + c -= L_('0'); else if (ISALPHA (c)) - c = TOUPPER (c) - L_('A') + 10; + c = TOUPPER (c) - L_('A') + 10; else - break; + break; if ((int) c >= base) - break; + break; /* Check for overflow. */ if (i > cutoff || (i == cutoff && c > cutlim)) - overflow = 1; + overflow = 1; else - { - i *= (unsigned LONG int) base; - i += c; - } + { + i *= (unsigned LONG int) base; + i += c; + } } /* Check if anything actually happened. */ @@ -385,8 +384,8 @@ `unsigned LONG int', but outside the range of `LONG int'. */ if (overflow == 0 && i > (negative - ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 - : (unsigned LONG int) STRTOL_LONG_MAX)) + ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 + : (unsigned LONG int) STRTOL_LONG_MAX)) overflow = 1; #endif @@ -411,11 +410,11 @@ if (endptr != NULL) { if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') - && save[-2] == L_('0')) - *endptr = (STRING_TYPE *) &save[-1]; + && save[-2] == L_('0')) + *endptr = (STRING_TYPE *) &save[-1]; else - /* There was no number to convert. */ - *endptr = (STRING_TYPE *) nptr; + /* There was no number to convert. */ + *endptr = (STRING_TYPE *) nptr; } return 0L; @@ -429,7 +428,7 @@ weak_function #endif strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, - int base LOCALE_PARAM_PROTO) + int base LOCALE_PARAM_PROTO) { return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); } diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/strtoul.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/strtoul.c --- gettext-0.17/gettext-runtime/gnulib-lib/strtoul.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/strtoul.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1997, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -14,6 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define UNSIGNED 1 +#define UNSIGNED 1 #include "strtol.c" diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/sys_stat.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/sys_stat.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/sys_stat.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/sys_stat.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -0,0 +1,640 @@ +/* Provide a more complete sys/stat header file. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake, Paul Eggert, and Jim Meyering. */ + +/* This file is supposed to be used on platforms where is + incomplete. It is intended to provide definitions and prototypes + needed by an application. Start with what the system provides. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_system_sys_stat_h +/* Special invocation convention. */ + +#@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_SYS_STAT_H + +/* Get nlink_t. */ +#include + +/* Get struct timespec. */ +#include + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ + +#ifndef _GL_SYS_STAT_H +#define _GL_SYS_STAT_H + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Before doing "#define mkdir rpl_mkdir" below, we need to include all + headers that may declare mkdir(). */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include /* mingw32, mingw64 */ +# include /* mingw64 */ +#endif + +#ifndef S_IFMT +# define S_IFMT 0170000 +#endif + +#if STAT_MACROS_BROKEN +# undef S_ISBLK +# undef S_ISCHR +# undef S_ISDIR +# undef S_ISFIFO +# undef S_ISLNK +# undef S_ISNAM +# undef S_ISMPB +# undef S_ISMPC +# undef S_ISNWK +# undef S_ISREG +# undef S_ISSOCK +#endif + +#ifndef S_ISBLK +# ifdef S_IFBLK +# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) +# else +# define S_ISBLK(m) 0 +# endif +#endif + +#ifndef S_ISCHR +# ifdef S_IFCHR +# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) +# else +# define S_ISCHR(m) 0 +# endif +#endif + +#ifndef S_ISDIR +# ifdef S_IFDIR +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# else +# define S_ISDIR(m) 0 +# endif +#endif + +#ifndef S_ISDOOR /* Solaris 2.5 and up */ +# define S_ISDOOR(m) 0 +#endif + +#ifndef S_ISFIFO +# ifdef S_IFIFO +# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) +# else +# define S_ISFIFO(m) 0 +# endif +#endif + +#ifndef S_ISLNK +# ifdef S_IFLNK +# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +# else +# define S_ISLNK(m) 0 +# endif +#endif + +#ifndef S_ISMPB /* V7 */ +# ifdef S_IFMPB +# define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) +# define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) +# else +# define S_ISMPB(m) 0 +# define S_ISMPC(m) 0 +# endif +#endif + +#ifndef S_ISNAM /* Xenix */ +# ifdef S_IFNAM +# define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) +# else +# define S_ISNAM(m) 0 +# endif +#endif + +#ifndef S_ISNWK /* HP/UX */ +# ifdef S_IFNWK +# define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) +# else +# define S_ISNWK(m) 0 +# endif +#endif + +#ifndef S_ISPORT /* Solaris 10 and up */ +# define S_ISPORT(m) 0 +#endif + +#ifndef S_ISREG +# ifdef S_IFREG +# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +# else +# define S_ISREG(m) 0 +# endif +#endif + +#ifndef S_ISSOCK +# ifdef S_IFSOCK +# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) +# else +# define S_ISSOCK(m) 0 +# endif +#endif + + +#ifndef S_TYPEISMQ +# define S_TYPEISMQ(p) 0 +#endif + +#ifndef S_TYPEISTMO +# define S_TYPEISTMO(p) 0 +#endif + + +#ifndef S_TYPEISSEM +# ifdef S_INSEM +# define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) +# else +# define S_TYPEISSEM(p) 0 +# endif +#endif + +#ifndef S_TYPEISSHM +# ifdef S_INSHD +# define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD) +# else +# define S_TYPEISSHM(p) 0 +# endif +#endif + +/* high performance ("contiguous data") */ +#ifndef S_ISCTG +# define S_ISCTG(p) 0 +#endif + +/* Cray DMF (data migration facility): off line, with data */ +#ifndef S_ISOFD +# define S_ISOFD(p) 0 +#endif + +/* Cray DMF (data migration facility): off line, with no data */ +#ifndef S_ISOFL +# define S_ISOFL(p) 0 +#endif + +/* 4.4BSD whiteout */ +#ifndef S_ISWHT +# define S_ISWHT(m) 0 +#endif + +/* If any of the following are undefined, + define them to their de facto standard values. */ +#if !S_ISUID +# define S_ISUID 04000 +#endif +#if !S_ISGID +# define S_ISGID 02000 +#endif + +/* S_ISVTX is a common extension to POSIX. */ +#ifndef S_ISVTX +# define S_ISVTX 01000 +#endif + +#if !S_IRUSR && S_IREAD +# define S_IRUSR S_IREAD +#endif +#if !S_IRUSR +# define S_IRUSR 00400 +#endif +#if !S_IRGRP +# define S_IRGRP (S_IRUSR >> 3) +#endif +#if !S_IROTH +# define S_IROTH (S_IRUSR >> 6) +#endif + +#if !S_IWUSR && S_IWRITE +# define S_IWUSR S_IWRITE +#endif +#if !S_IWUSR +# define S_IWUSR 00200 +#endif +#if !S_IWGRP +# define S_IWGRP (S_IWUSR >> 3) +#endif +#if !S_IWOTH +# define S_IWOTH (S_IWUSR >> 6) +#endif + +#if !S_IXUSR && S_IEXEC +# define S_IXUSR S_IEXEC +#endif +#if !S_IXUSR +# define S_IXUSR 00100 +#endif +#if !S_IXGRP +# define S_IXGRP (S_IXUSR >> 3) +#endif +#if !S_IXOTH +# define S_IXOTH (S_IXUSR >> 6) +#endif + +#if !S_IRWXU +# define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) +#endif +#if !S_IRWXG +# define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) +#endif +#if !S_IRWXO +# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) +#endif + +/* S_IXUGO is a common extension to POSIX. */ +#if !S_IXUGO +# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) +#endif + +#ifndef S_IRWXUGO +# define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) +#endif + +/* Macros for futimens and utimensat. */ +#ifndef UTIME_NOW +# define UTIME_NOW (-1) +# define UTIME_OMIT (-2) +#endif + + +#if @GNULIB_FCHMODAT@ +# if !@HAVE_FCHMODAT@ +_GL_FUNCDECL_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag)); +_GL_CXXALIASWARN (fchmodat); +#elif defined GNULIB_POSIXCHECK +# undef fchmodat +# if HAVE_RAW_DECL_FCHMODAT +_GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @REPLACE_FSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fstat rpl_fstat +# endif +_GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); +#else +_GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); +#endif +_GL_CXXALIASWARN (fstat); + + +#if @GNULIB_FSTATAT@ +# if @REPLACE_FSTATAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fstatat +# define fstatat rpl_fstatat +# endif +_GL_FUNCDECL_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# else +# if !@HAVE_FSTATAT@ +_GL_FUNCDECL_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# endif +_GL_CXXALIASWARN (fstatat); +#elif defined GNULIB_POSIXCHECK +# undef fstatat +# if HAVE_RAW_DECL_FSTATAT +_GL_WARN_ON_USE (fstatat, "fstatat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FUTIMENS@ +# if @REPLACE_FUTIMENS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef futimens +# define futimens rpl_futimens +# endif +_GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); +_GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); +# else +# if !@HAVE_FUTIMENS@ +_GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIASWARN (futimens); +#elif defined GNULIB_POSIXCHECK +# undef futimens +# if HAVE_RAW_DECL_FUTIMENS +_GL_WARN_ON_USE (futimens, "futimens is not portable - " + "use gnulib module futimens for portability"); +# endif +#endif + + +#if @GNULIB_LCHMOD@ +/* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME + denotes a symbolic link. */ +# if !@HAVE_LCHMOD@ +/* The lchmod replacement follows symbolic links. Callers should take + this into account; lchmod should be applied only to arguments that + are known to not be symbolic links. On hosts that lack lchmod, + this can lead to race conditions between the check and the + invocation of lchmod, but we know of no workarounds that are + reliable in general. You might try requesting support for lchmod + from your operating system supplier. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lchmod chmod +# endif +/* Need to cast, because on mingw, the second parameter of chmod is + int mode. */ +_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, + (const char *filename, mode_t mode)); +# else +# if 0 /* assume already declared */ +_GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); +# endif +# if @HAVE_LCHMOD@ +_GL_CXXALIASWARN (lchmod); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lchmod +# if HAVE_RAW_DECL_LCHMOD +_GL_WARN_ON_USE (lchmod, "lchmod is unportable - " + "use gnulib module lchmod for portability"); +# endif +#endif + + +#if @GNULIB_LSTAT@ +# if ! @HAVE_LSTAT@ +/* mingw does not support symlinks, therefore it does not have lstat. But + without links, stat does just fine. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lstat stat +# endif +_GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf)); +# elif @REPLACE_LSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lstat +# define lstat rpl_lstat +# endif +_GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf)); +# else +_GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf)); +# endif +# if @HAVE_LSTAT@ +_GL_CXXALIASWARN (lstat); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lstat +# if HAVE_RAW_DECL_LSTAT +_GL_WARN_ON_USE (lstat, "lstat is unportable - " + "use gnulib module lstat for portability"); +# endif +#endif + + +#if @REPLACE_MKDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkdir +# define mkdir rpl_mkdir +# endif +_GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +#else +/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. + Additionally, it declares _mkdir (and depending on compile flags, an + alias mkdir), only in the nonstandard includes and , + which are included above. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +static inline int +rpl_mkdir (char const *name, mode_t mode) +{ + return _mkdir (name); +} + +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkdir rpl_mkdir +# endif +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +# else +_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); +# endif +#endif +_GL_CXXALIASWARN (mkdir); + + +#if @GNULIB_MKDIRAT@ +# if !@HAVE_MKDIRAT@ +_GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkdirat); +#elif defined GNULIB_POSIXCHECK +# undef mkdirat +# if HAVE_RAW_DECL_MKDIRAT +_GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFO@ +# if @REPLACE_MKFIFO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkfifo +# define mkfifo rpl_mkfifo +# endif +_GL_FUNCDECL_RPL (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkfifo, int, (char const *file, mode_t mode)); +# else +# if !@HAVE_MKFIFO@ +_GL_FUNCDECL_SYS (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); +# endif +_GL_CXXALIASWARN (mkfifo); +#elif defined GNULIB_POSIXCHECK +# undef mkfifo +# if HAVE_RAW_DECL_MKFIFO +_GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " + "use gnulib module mkfifo for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFOAT@ +# if !@HAVE_MKFIFOAT@ +_GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkfifoat); +#elif defined GNULIB_POSIXCHECK +# undef mkfifoat +# if HAVE_RAW_DECL_MKFIFOAT +_GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_MKNOD@ +# if @REPLACE_MKNOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mknod +# define mknod rpl_mknod +# endif +_GL_FUNCDECL_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# else +# if !@HAVE_MKNOD@ +_GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# endif +_GL_CXXALIASWARN (mknod); +#elif defined GNULIB_POSIXCHECK +# undef mknod +# if HAVE_RAW_DECL_MKNOD +_GL_WARN_ON_USE (mknod, "mknod is not portable - " + "use gnulib module mknod for portability"); +# endif +#endif + + +#if @GNULIB_MKNODAT@ +# if !@HAVE_MKNODAT@ +_GL_FUNCDECL_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev)); +_GL_CXXALIASWARN (mknodat); +#elif defined GNULIB_POSIXCHECK +# undef mknodat +# if HAVE_RAW_DECL_MKNODAT +_GL_WARN_ON_USE (mknodat, "mknodat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_STAT@ +# if @REPLACE_STAT@ +/* We can't use the object-like #define stat rpl_stat, because of + struct stat. This means that rpl_stat will not be used if the user + does (stat)(a,b). Oh well. */ +# undef stat +# ifdef _LARGE_FILES + /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, + so we have to replace stat64() instead of stat(). */ +# define stat stat64 +# undef stat64 +# define stat64(name, st) rpl_stat (name, st) +# else /* !_LARGE_FILES */ +# define stat(name, st) rpl_stat (name, st) +# endif /* !_LARGE_FILES */ +_GL_EXTERN_C int stat (const char *name, struct stat *buf) _GL_ARG_NONNULL ((1, 2)); +# endif +#elif defined GNULIB_POSIXCHECK +# undef stat +# if HAVE_RAW_DECL_STAT +_GL_WARN_ON_USE (stat, "stat is unportable - " + "use gnulib module stat for portability"); +# endif +#endif + + +#if @GNULIB_UTIMENSAT@ +# if @REPLACE_UTIMENSAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef utimensat +# define utimensat rpl_utimensat +# endif +_GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# else +# if !@HAVE_UTIMENSAT@ +_GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# endif +_GL_CXXALIASWARN (utimensat); +#elif defined GNULIB_POSIXCHECK +# undef utimensat +# if HAVE_RAW_DECL_UTIMENSAT +_GL_WARN_ON_USE (utimensat, "utimensat is not portable - " + "use gnulib module utimensat for portability"); +# endif +#endif + + +#endif /* _GL_SYS_STAT_H */ +#endif /* _GL_SYS_STAT_H */ +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/time.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/time.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/time.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/time.in.h 2010-06-03 21:35:16.000000000 +0000 @@ -0,0 +1,229 @@ +/* A more-standard . + + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Don't get in the way of glibc when it includes time.h merely to + declare a few standard symbols, rather than to declare all the + symbols. Also, Solaris 8 eventually includes itself + recursively; if that is happening, just include the system + without adding our own declarations. */ +#if (defined __need_time_t || defined __need_clock_t \ + || defined __need_timespec \ + || defined _GL_TIME_H) + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +#else + +# define _GL_TIME_H + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +/* NetBSD 5.0 mis-defines NULL. */ +# include + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). + Or they define it with the wrong member names or define it in + (e.g., FreeBSD circa 1997). Stock Mingw does not define it, but the + pthreads-win32 library defines it in . */ +# if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ +# if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +# include +# elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ +# include +/* The pthreads-win32 also defines a couple of broken macros. */ +# undef asctime_r +# undef ctime_r +# undef gmtime_r +# undef localtime_r +# undef rand_r +# undef strtok_r +# else + +# ifdef __cplusplus +extern "C" { +# endif + +# undef timespec +# define timespec rpl_timespec +struct timespec +{ + time_t tv_sec; + long int tv_nsec; +}; + +# ifdef __cplusplus +} +# endif + +# endif +# endif + +/* Sleep for at least RQTP seconds unless interrupted, If interrupted, + return -1 and store the remaining time into RMTP. See + . */ +# if @GNULIB_NANOSLEEP@ +# if @REPLACE_NANOSLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define nanosleep rpl_nanosleep +# endif +_GL_FUNCDECL_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# else +# if ! @HAVE_NANOSLEEP@ +_GL_FUNCDECL_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# endif +_GL_CXXALIASWARN (nanosleep); +# endif + +/* Return the 'time_t' representation of TP and normalize TP. */ +# if @GNULIB_MKTIME@ +# if @REPLACE_MKTIME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mktime rpl_mktime +# endif +_GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); +# else +_GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); +# endif +_GL_CXXALIASWARN (mktime); +# endif + +/* Convert TIMER to RESULT, assuming local time and UTC respectively. See + and + . */ +# if @GNULIB_TIME_R@ +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef localtime_r +# define localtime_r rpl_localtime_r +# endif +_GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (localtime_r); +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gmtime_r +# define gmtime_r rpl_gmtime_r +# endif +_GL_FUNCDECL_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (gmtime_r); +# endif + +/* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store + the resulting broken-down time into TM. See + . */ +# if @GNULIB_STRPTIME@ +# if ! @HAVE_STRPTIME@ +_GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm)); +_GL_CXXALIASWARN (strptime); +# endif + +/* Convert TM to a time_t value, assuming UTC. */ +# if @GNULIB_TIMEGM@ +# if @REPLACE_TIMEGM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef timegm +# define timegm rpl_timegm +# endif +_GL_FUNCDECL_RPL (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); +# else +# if ! @HAVE_TIMEGM@ +_GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); +# endif +_GL_CXXALIASWARN (timegm); +# endif + +/* Encourage applications to avoid unsafe functions that can overrun + buffers when given outlandish struct tm values. Portable + applications should use strftime (or even sprintf) instead. */ +# if defined GNULIB_POSIXCHECK +# undef asctime +_GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef asctime_r +_GL_WARN_ON_USE (asctime, "asctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime +_GL_WARN_ON_USE (asctime, "ctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime_r +_GL_WARN_ON_USE (asctime, "ctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif + +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/trim.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/trim.c --- gettext-0.17/gettext-runtime/gnulib-lib/trim.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/trim.c 2010-03-28 18:31:26.000000000 +0000 @@ -0,0 +1,133 @@ +/* Removes leading and/or trailing whitespaces + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Davide Angelocola */ + +#include + +/* Specification. */ +#include "trim.h" + +#include +#include +#include +#include + +#include "mbchar.h" +#include "mbiter.h" +#include "xalloc.h" + +/* Use this to suppress gcc's `...may be used before initialized' warnings. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +char * +trim2 (const char *s, int how) +{ + char *d; + + d = strdup (s); + + if (!d) + xalloc_die (); + + if (MB_CUR_MAX > 1) + { + mbi_iterator_t i; + + /* Trim leading whitespaces. */ + if (how != TRIM_TRAILING) + { + mbi_init (i, d, strlen (d)); + + for (; mbi_avail (i) && mb_isspace (mbi_cur (i)); mbi_advance (i)) + ; + + memmove (d, mbi_cur_ptr (i), strlen (mbi_cur_ptr (i)) + 1); + } + + /* Trim trailing whitespaces. */ + if (how != TRIM_LEADING) + { + int state = 0; + char *r IF_LINT (= NULL); /* used only while state = 2 */ + + mbi_init (i, d, strlen (d)); + + for (; mbi_avail (i); mbi_advance (i)) + { + if (state == 0 && mb_isspace (mbi_cur (i))) + { + state = 0; + continue; + } + + if (state == 0 && !mb_isspace (mbi_cur (i))) + { + state = 1; + continue; + } + + if (state == 1 && !mb_isspace (mbi_cur (i))) + { + state = 1; + continue; + } + + if (state == 1 && mb_isspace (mbi_cur (i))) + { + state = 2; + r = (char *) mbi_cur_ptr (i); + } + else if (state == 2 && mb_isspace (mbi_cur (i))) + { + state = 2; + } + else + { + state = 1; + } + } + + if (state == 2) + *r = '\0'; + } + } + else + { + char *p; + + /* Trim leading whitespaces. */ + if (how != TRIM_TRAILING) { + for (p = d; *p && isspace ((unsigned char) *p); p++) + ; + + memmove (d, p, strlen (p) + 1); + } + + /* Trim trailing whitespaces. */ + if (how != TRIM_LEADING) { + for (p = d + strlen (d) - 1; p >= d && isspace ((unsigned char) *p); p--) + *p = '\0'; + } + } + + return d; +} + diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/trim.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/trim.h --- gettext-0.17/gettext-runtime/gnulib-lib/trim.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/trim.h 2010-03-28 18:31:26.000000000 +0000 @@ -0,0 +1,33 @@ +/* Removes leading and/or trailing whitespaces + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Davide Angelocola */ + +/* Trim mode. */ +#define TRIM_TRAILING 0 +#define TRIM_LEADING 1 +#define TRIM_BOTH 2 + +/* Removes trailing and leading whitespaces. */ +#define trim(s) trim2(s, TRIM_BOTH) + +/* Removes trailing whitespaces. */ +#define trim_trailing(s) trim2(s, TRIM_TRAILING) + +/* Removes leading whitespaces. */ +#define trim_leading(s) trim2(s, TRIM_LEADING) + +char *trim2 (const char *, int); diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/unistd.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/unistd.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/unistd.in.h 2007-10-03 22:23:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/unistd.in.h 2010-05-09 11:03:17.000000000 +0000 @@ -1,9 +1,9 @@ /* Substitute for and wrapper around . - Copyright (C) 2004-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,126 +15,501 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _GL_UNISTD_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Special invocation convention: + - On mingw, several headers, including , include , + but we need to ensure that both the system and + are completely included before we replace gethostname. */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H +/* is being indirectly included for the first time from + ; avoid declaring any overrides. */ +# if @HAVE_UNISTD_H@ +# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ +# else +# error unexpected; report this to bug-gnulib@gnu.org +# endif +# define _GL_WINSOCK2_H_WITNESS + +/* Normal invocation. */ +#elif !defined _GL_UNISTD_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ #endif -#ifndef _GL_UNISTD_H +/* Get all possible declarations of gethostname(). */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_INCLUDING_WINSOCK2_H +# define _GL_INCLUDING_WINSOCK2_H +# include +# undef _GL_INCLUDING_WINSOCK2_H +#endif + +#if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H #define _GL_UNISTD_H -/* mingw doesn't define the SEEK_* macros in . */ -#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) +/* NetBSD 5.0 mis-defines NULL. Also get size_t. */ +#include + +/* mingw doesn't define the SEEK_* or *_FILENO macros in . */ +/* Cygwin 1.7.1 declares symlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ + || (@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK)) \ + && ! defined __GLIBC__ # include #endif +/* Cygwin 1.7.1 declares unlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ +# include +#endif + /* mingw fails to declare _exit in . */ -#include +/* mingw, BeOS, Haiku declare environ in , not in . */ +/* Solaris declares getcwd not only in but also in . */ +/* But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +#endif + +/* mingw declares getcwd in , not in . */ +#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ + && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) +# include +#endif + +#if (@GNULIB_WRITE@ || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \ + || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK) +/* Get ssize_t. */ +# include +#endif + +/* Get getopt(), optarg, optind, opterr, optopt. + But avoid namespace pollution on glibc systems. */ +/* Also, don't include inside libgettextpo, because we use + the getopt module only in gettext-tools/gnulib-lib/, not in + gettext-tools/libgettextpo/, but there is only a single + GNULIB_UNISTD_H_GETOPT variable for both. */ +#if @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +#if @GNULIB_GETHOSTNAME@ +/* Get all possible declarations of gethostname(). */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !defined _GL_SYS_SOCKET_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef socket +# define socket socket_used_without_including_sys_socket_h +# undef connect +# define connect connect_used_without_including_sys_socket_h +# undef accept +# define accept accept_used_without_including_sys_socket_h +# undef bind +# define bind bind_used_without_including_sys_socket_h +# undef getpeername +# define getpeername getpeername_used_without_including_sys_socket_h +# undef getsockname +# define getsockname getsockname_used_without_including_sys_socket_h +# undef getsockopt +# define getsockopt getsockopt_used_without_including_sys_socket_h +# undef listen +# define listen listen_used_without_including_sys_socket_h +# undef recv +# define recv recv_used_without_including_sys_socket_h +# undef send +# define send send_used_without_including_sys_socket_h +# undef recvfrom +# define recvfrom recvfrom_used_without_including_sys_socket_h +# undef sendto +# define sendto sendto_used_without_including_sys_socket_h +# undef setsockopt +# define setsockopt setsockopt_used_without_including_sys_socket_h +# undef shutdown +# define shutdown shutdown_used_without_including_sys_socket_h +# else + _GL_WARN_ON_USE (socket, + "socket() used without including "); + _GL_WARN_ON_USE (connect, + "connect() used without including "); + _GL_WARN_ON_USE (accept, + "accept() used without including "); + _GL_WARN_ON_USE (bind, + "bind() used without including "); + _GL_WARN_ON_USE (getpeername, + "getpeername() used without including "); + _GL_WARN_ON_USE (getsockname, + "getsockname() used without including "); + _GL_WARN_ON_USE (getsockopt, + "getsockopt() used without including "); + _GL_WARN_ON_USE (listen, + "listen() used without including "); + _GL_WARN_ON_USE (recv, + "recv() used without including "); + _GL_WARN_ON_USE (send, + "send() used without including "); + _GL_WARN_ON_USE (recvfrom, + "recvfrom() used without including "); + _GL_WARN_ON_USE (sendto, + "sendto() used without including "); + _GL_WARN_ON_USE (setsockopt, + "setsockopt() used without including "); + _GL_WARN_ON_USE (shutdown, + "shutdown() used without including "); +# endif +# endif +# if !defined _GL_SYS_SELECT_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select select_used_without_including_sys_select_h +# else + _GL_WARN_ON_USE (select, + "select() used without including "); +# endif +# endif +# endif +#endif + + +/* OS/2 EMX lacks these macros. */ +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + +/* Ensure *_OK macros exist. */ +#ifndef F_OK +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 +#endif /* Declare overridden functions. */ -#ifdef __cplusplus -extern "C" { + +#if defined GNULIB_POSIXCHECK +/* The access() function is a security risk. */ +_GL_WARN_ON_USE (access, "the access function is a security risk - " + "use the gnulib module faccessat instead"); #endif #if @GNULIB_CHOWN@ -# if @REPLACE_CHOWN@ -# ifndef REPLACE_CHOWN -# define REPLACE_CHOWN 1 -# endif -# if REPLACE_CHOWN /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ +# if @REPLACE_CHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef chown # define chown rpl_chown -extern int chown (const char *file, uid_t uid, gid_t gid); # endif +_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); +# else +# if !@HAVE_CHOWN@ +_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); # endif +_GL_CXXALIASWARN (chown); #elif defined GNULIB_POSIXCHECK # undef chown -# define chown(f,u,g) \ - (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \ - "doesn't treat a uid or gid of -1 on some systems - " \ - "use gnulib module chown for portability"), \ - chown (f, u, g)) +# if HAVE_RAW_DECL_CHOWN +_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " + "doesn't treat a uid or gid of -1 on some systems - " + "use gnulib module chown for portability"); +# endif +#endif + + +#if @GNULIB_CLOSE@ +# if @REPLACE_CLOSE@ +/* Automatically included by modules that need a replacement for close. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef close +# define close rpl_close +# endif +_GL_FUNCDECL_RPL (close, int, (int fd)); +_GL_CXXALIAS_RPL (close, int, (int fd)); +# else +_GL_CXXALIAS_SYS (close, int, (int fd)); +# endif +_GL_CXXALIASWARN (close); +#elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +# undef close +# define close close_used_without_requesting_gnulib_module_close +#elif defined GNULIB_POSIXCHECK +# undef close +/* Assume close is always declared. */ +_GL_WARN_ON_USE (close, "close does not portably work on sockets - " + "use gnulib module close for portability"); #endif +#if @REPLACE_DUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup rpl_dup +# endif +_GL_FUNCDECL_RPL (dup, int, (int oldfd)); +_GL_CXXALIAS_RPL (dup, int, (int oldfd)); +#else +_GL_CXXALIAS_SYS (dup, int, (int oldfd)); +#endif +_GL_CXXALIASWARN (dup); + + #if @GNULIB_DUP2@ -# if !@HAVE_DUP2@ /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if NEWFD = OLDFD, otherwise close NEWFD first if it is open. - Return 0 if successful, otherwise -1 and errno set. + Return newfd if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int dup2 (int oldfd, int newfd); +# if @REPLACE_DUP2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup2 rpl_dup2 +# endif +_GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); +_GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); +# else +# if !@HAVE_DUP2@ +_GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); +# endif +_GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif +_GL_CXXALIASWARN (dup2); #elif defined GNULIB_POSIXCHECK # undef dup2 -# define dup2(o,n) \ - (GL_LINK_WARNING ("dup2 is unportable - " \ - "use gnulib module dup2 for portability"), \ - dup2 (o, n)) +# if HAVE_RAW_DECL_DUP2 +_GL_WARN_ON_USE (dup2, "dup2 is unportable - " + "use gnulib module dup2 for portability"); +# endif #endif -#if @GNULIB_FCHDIR@ -# if @REPLACE_FCHDIR@ +#if @GNULIB_DUP3@ +/* Copy the file descriptor OLDFD into file descriptor NEWFD, with the + specified flags. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Close NEWFD first if it is open. + Return newfd if successful, otherwise -1 and errno set. + See the Linux man page at + . */ +# if @HAVE_DUP3@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup3 rpl_dup3 +# endif +_GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); +# else +_GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); +# endif +_GL_CXXALIASWARN (dup3); +#elif defined GNULIB_POSIXCHECK +# undef dup3 +# if HAVE_RAW_DECL_DUP3 +_GL_WARN_ON_USE (dup3, "dup3 is unportable - " + "use gnulib module dup3 for portability"); +# endif +#endif + + +#if @GNULIB_ENVIRON@ +# if !@HAVE_DECL_ENVIRON@ +/* Set of environment variables and values. An array of strings of the form + "VARIABLE=VALUE", terminated with a NULL. */ +# if defined __APPLE__ && defined __MACH__ +# include +# define environ (*_NSGetEnviron ()) +# else +# ifdef __cplusplus +extern "C" { +# endif +extern char **environ; +# ifdef __cplusplus +} +# endif +# endif +# endif +#elif defined GNULIB_POSIXCHECK +# if HAVE_RAW_DECL_ENVIRON +static inline char *** +rpl_environ (void) +{ + return &environ; +} +_GL_WARN_ON_USE (rpl_environ, "environ is unportable - " + "use gnulib module environ for portability"); +# undef environ +# define environ (*rpl_environ ()) +# endif +#endif + + +#if @GNULIB_EUIDACCESS@ +/* Like access(), except that it uses the effective user id and group id of + the current process. */ +# if !@HAVE_EUIDACCESS@ +_GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode)); +_GL_CXXALIASWARN (euidaccess); +# if defined GNULIB_POSIXCHECK +/* Like access(), this function is a security risk. */ +_GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " + "use the gnulib module faccessat instead"); +# endif +#elif defined GNULIB_POSIXCHECK +# undef euidaccess +# if HAVE_RAW_DECL_EUIDACCESS +_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " + "use gnulib module euidaccess for portability"); +# endif +#endif + + +#if @GNULIB_FACCESSAT@ +# if !@HAVE_FACCESSAT@ +_GL_FUNCDECL_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag)); +_GL_CXXALIASWARN (faccessat); +#elif defined GNULIB_POSIXCHECK +# undef faccessat +# if HAVE_RAW_DECL_FACCESSAT +_GL_WARN_ON_USE (faccessat, "faccessat is not portable - " + "use gnulib module faccessat for portability"); +# endif +#endif + +#if @GNULIB_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int fchdir (int /*fd*/); +# if ! @HAVE_FCHDIR@ +_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); -# define close rpl_close -extern int close (int); -# define dup rpl_dup -extern int dup (int); -# define dup2 rpl_dup2 -extern int dup2 (int, int); +/* Gnulib internal hooks needed to maintain the fchdir metadata. */ +_GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) + _GL_ARG_NONNULL ((2)); +_GL_EXTERN_C void _gl_unregister_fd (int fd); +_GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); +_GL_EXTERN_C const char *_gl_directory_name (int fd); # endif +_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); +_GL_CXXALIASWARN (fchdir); #elif defined GNULIB_POSIXCHECK # undef fchdir -# define fchdir(f) \ - (GL_LINK_WARNING ("fchdir is unportable - " \ - "use gnulib module fchdir for portability"), \ - fchdir (f)) +# if HAVE_RAW_DECL_FCHDIR +_GL_WARN_ON_USE (fchdir, "fchdir is unportable - " + "use gnulib module fchdir for portability"); +# endif +#endif + + +#if @GNULIB_FCHOWNAT@ +# if @REPLACE_FCHOWNAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fchownat +# define fchownat rpl_fchownat +# endif +_GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# else +# if !@HAVE_FCHOWNAT@ +_GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# endif +_GL_CXXALIASWARN (fchownat); +#elif defined GNULIB_POSIXCHECK +# undef fchownat +# if HAVE_RAW_DECL_FCHOWNAT +_GL_WARN_ON_USE (fchownat, "fchownat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FSYNC@ +/* Synchronize changes to a file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if !@HAVE_FSYNC@ +_GL_FUNCDECL_SYS (fsync, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (fsync, int, (int fd)); +_GL_CXXALIASWARN (fsync); +#elif defined GNULIB_POSIXCHECK +# undef fsync +# if HAVE_RAW_DECL_FSYNC +_GL_WARN_ON_USE (fsync, "fsync is unportable - " + "use gnulib module fsync for portability"); +# endif #endif #if @GNULIB_FTRUNCATE@ -# if !@HAVE_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int ftruncate (int fd, off_t length); +# if !@HAVE_FTRUNCATE@ +_GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif +_GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); +_GL_CXXALIASWARN (ftruncate); #elif defined GNULIB_POSIXCHECK # undef ftruncate -# define ftruncate(f,l) \ - (GL_LINK_WARNING ("ftruncate is unportable - " \ - "use gnulib module ftruncate for portability"), \ - ftruncate (f, l)) +# if HAVE_RAW_DECL_FTRUNCATE +_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " + "use gnulib module ftruncate for portability"); +# endif #endif #if @GNULIB_GETCWD@ -/* Include the headers that might declare getcwd so that they will not - cause confusion if included after this file. */ -# include -# if @REPLACE_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined @@ -145,15 +520,161 @@ extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ -# define getcwd rpl_getcwd -extern char * getcwd (char *buf, size_t size); +# if @REPLACE_GETCWD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getcwd rpl_getcwd +# endif +_GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); +_GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); +# else +/* Need to cast, because on mingw, the second parameter is + int size. */ +_GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif +_GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK # undef getcwd -# define getcwd(b,s) \ - (GL_LINK_WARNING ("getcwd is unportable - " \ - "use gnulib module getcwd for portability"), \ - getcwd (b, s)) +# if HAVE_RAW_DECL_GETCWD +_GL_WARN_ON_USE (getcwd, "getcwd is unportable - " + "use gnulib module getcwd for portability"); +# endif +#endif + + +#if @GNULIB_GETDOMAINNAME@ +/* Return the NIS domain name of the machine. + WARNING! The NIS domain name is unrelated to the fully qualified host name + of the machine. It is also unrelated to email addresses. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. + + Put up to LEN bytes of the NIS domain name into NAME. + Null terminate it if the name is shorter than LEN. + If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if !@HAVE_GETDOMAINNAME@ +_GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on MacOS X 10.5 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (getdomainname, int, (char *name, size_t len)); +_GL_CXXALIASWARN (getdomainname); +#elif defined GNULIB_POSIXCHECK +# undef getdomainname +# if HAVE_RAW_DECL_GETDOMAINNAME +_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " + "use gnulib module getdomainname for portability"); +# endif +#endif + + +#if @GNULIB_GETDTABLESIZE@ +/* Return the maximum number of file descriptors in the current process. + In POSIX, this is same as sysconf (_SC_OPEN_MAX). */ +# if !@HAVE_GETDTABLESIZE@ +_GL_FUNCDECL_SYS (getdtablesize, int, (void)); +# endif +_GL_CXXALIAS_SYS (getdtablesize, int, (void)); +_GL_CXXALIASWARN (getdtablesize); +#elif defined GNULIB_POSIXCHECK +# undef getdtablesize +# if HAVE_RAW_DECL_GETDTABLESIZE +_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " + "use gnulib module getdtablesize for portability"); +# endif +#endif + + +#if @GNULIB_GETGROUPS@ +/* Return the supplemental groups that the current process belongs to. + It is unspecified whether the effective group id is in the list. + If N is 0, return the group count; otherwise, N describes how many + entries are available in GROUPS. Return -1 and set errno if N is + not 0 and not large enough. Fails with ENOSYS on some systems. */ +# if @REPLACE_GETGROUPS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getgroups +# define getgroups rpl_getgroups +# endif +_GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups)); +_GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups)); +# else +# if !@HAVE_GETGROUPS@ +_GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIASWARN (getgroups); +#elif defined GNULIB_POSIXCHECK +# undef getgroups +# if HAVE_RAW_DECL_GETGROUPS +_GL_WARN_ON_USE (getgroups, "getgroups is unportable - " + "use gnulib module getgroups for portability"); +# endif +#endif + + +#if @GNULIB_GETHOSTNAME@ +/* Return the standard host name of the machine. + WARNING! The host name may or may not be fully qualified. + + Put up to LEN bytes of the host name into NAME. + Null terminate it if the name is shorter than LEN. + If the host name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gethostname +# define gethostname rpl_gethostname +# endif +_GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); +# else +# if !@HAVE_GETHOSTNAME@ +_GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on Solaris 10 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); +# endif +_GL_CXXALIASWARN (gethostname); +#elif @UNISTD_H_HAVE_WINSOCK2_H@ +# undef gethostname +# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname +#elif defined GNULIB_POSIXCHECK +# undef gethostname +# if HAVE_RAW_DECL_GETHOSTNAME +_GL_WARN_ON_USE (gethostname, "gethostname is unportable - " + "use gnulib module gethostname for portability"); +# endif +#endif + + +#if @GNULIB_GETLOGIN@ +/* Returns the user's login name, or NULL if it cannot be found. Upon error, + returns NULL with errno set. + + See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. + */ +# if !@HAVE_GETLOGIN@ +_GL_FUNCDECL_SYS (getlogin, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getlogin, char *, (void)); +_GL_CXXALIASWARN (getlogin); +#elif defined GNULIB_POSIXCHECK +# undef getlogin +# if HAVE_RAW_DECL_GETLOGIN +_GL_WARN_ON_USE (getlogin, "getlogin is unportable - " + "use gnulib module getlogin for portability"); +# endif #endif @@ -166,54 +687,370 @@ provided (this case is hopefully rare but is left open by the POSIX spec). See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. */ # if !@HAVE_DECL_GETLOGIN_R@ -# include -extern int getlogin_r (char *name, size_t size); +_GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size) + _GL_ARG_NONNULL ((1))); # endif +/* Need to cast, because on Solaris 10 systems, the second argument is + int size. */ +_GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); +_GL_CXXALIASWARN (getlogin_r); #elif defined GNULIB_POSIXCHECK # undef getlogin_r -# define getlogin_r(n,s) \ - (GL_LINK_WARNING ("getlogin_r is unportable - " \ - "use gnulib module getlogin_r for portability"), \ - getlogin_r (n, s)) +# if HAVE_RAW_DECL_GETLOGIN_R +_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " + "use gnulib module getlogin_r for portability"); +# endif +#endif + + +#if @GNULIB_GETPAGESIZE@ +# if @REPLACE_GETPAGESIZE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize rpl_getpagesize +# endif +_GL_FUNCDECL_RPL (getpagesize, int, (void)); +_GL_CXXALIAS_RPL (getpagesize, int, (void)); +# else +# if !@HAVE_GETPAGESIZE@ +# if !defined getpagesize +/* This is for POSIX systems. */ +# if !defined _gl_getpagesize && defined _SC_PAGESIZE +# if ! (defined __VMS && __VMS_VER < 70000000) +# define _gl_getpagesize() sysconf (_SC_PAGESIZE) +# endif +# endif +/* This is for older VMS. */ +# if !defined _gl_getpagesize && defined __VMS +# ifdef __ALPHA +# define _gl_getpagesize() 8192 +# else +# define _gl_getpagesize() 512 +# endif +# endif +/* This is for BeOS. */ +# if !defined _gl_getpagesize && @HAVE_OS_H@ +# include +# if defined B_PAGE_SIZE +# define _gl_getpagesize() B_PAGE_SIZE +# endif +# endif +/* This is for AmigaOS4.0. */ +# if !defined _gl_getpagesize && defined __amigaos4__ +# define _gl_getpagesize() 2048 +# endif +/* This is for older Unix systems. */ +# if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ +# include +# ifdef EXEC_PAGESIZE +# define _gl_getpagesize() EXEC_PAGESIZE +# else +# ifdef NBPG +# ifndef CLSIZE +# define CLSIZE 1 +# endif +# define _gl_getpagesize() (NBPG * CLSIZE) +# else +# ifdef NBPC +# define _gl_getpagesize() NBPC +# endif +# endif +# endif +# endif +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize() _gl_getpagesize () +# else +static inline int +getpagesize () +{ + return _gl_getpagesize (); +} +# endif +# endif +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is size_t. */ +_GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); +# endif +# if @HAVE_DECL_GETPAGESIZE@ +_GL_CXXALIASWARN (getpagesize); +# endif +#elif defined GNULIB_POSIXCHECK +# undef getpagesize +# if HAVE_RAW_DECL_GETPAGESIZE +_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " + "use gnulib module getpagesize for portability"); +# endif +#endif + + +#if @GNULIB_GETUSERSHELL@ +/* Return the next valid login shell on the system, or NULL when the end of + the list has been reached. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (getusershell, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getusershell, char *, (void)); +_GL_CXXALIASWARN (getusershell); +#elif defined GNULIB_POSIXCHECK +# undef getusershell +# if HAVE_RAW_DECL_GETUSERSHELL +_GL_WARN_ON_USE (getusershell, "getusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Rewind to pointer that is advanced at each getusershell() call. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (setusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (setusershell, void, (void)); +_GL_CXXALIASWARN (setusershell); +#elif defined GNULIB_POSIXCHECK +# undef setusershell +# if HAVE_RAW_DECL_SETUSERSHELL +_GL_WARN_ON_USE (setusershell, "setusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Free the pointer that is advanced at each getusershell() call and + associated resources. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (endusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (endusershell, void, (void)); +_GL_CXXALIASWARN (endusershell); +#elif defined GNULIB_POSIXCHECK +# undef endusershell +# if HAVE_RAW_DECL_ENDUSERSHELL +_GL_WARN_ON_USE (endusershell, "endusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif #endif #if @GNULIB_LCHOWN@ -# if @REPLACE_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lchown rpl_lchown -extern int lchown (char const *file, uid_t owner, gid_t group); +# if @REPLACE_LCHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lchown +# define lchown rpl_lchown +# endif +_GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)); +# else +# if !@HAVE_LCHOWN@ +_GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); # endif +_GL_CXXALIASWARN (lchown); #elif defined GNULIB_POSIXCHECK # undef lchown -# define lchown(f,u,g) \ - (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \ - "systems - use gnulib module lchown for portability"), \ - lchown (f, u, g)) +# if HAVE_RAW_DECL_LCHOWN +_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " + "use gnulib module lchown for portability"); +# endif +#endif + + +#if @GNULIB_LINK@ +/* Create a new hard link for an existing file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if @REPLACE_LINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define link rpl_link +# endif +_GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2)); +# else +# if !@HAVE_LINK@ +_GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); +# endif +_GL_CXXALIASWARN (link); +#elif defined GNULIB_POSIXCHECK +# undef link +# if HAVE_RAW_DECL_LINK +_GL_WARN_ON_USE (link, "link is unportable - " + "use gnulib module link for portability"); +# endif +#endif + + +#if @GNULIB_LINKAT@ +/* Create a new hard link for an existing file, relative to two + directories. FLAG controls whether symlinks are followed. + Return 0 if successful, otherwise -1 and errno set. */ +# if @REPLACE_LINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef linkat +# define linkat rpl_linkat +# endif +_GL_FUNCDECL_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# else +# if !@HAVE_LINKAT@ +_GL_FUNCDECL_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# endif +_GL_CXXALIASWARN (linkat); +#elif defined GNULIB_POSIXCHECK +# undef linkat +# if HAVE_RAW_DECL_LINKAT +_GL_WARN_ON_USE (linkat, "linkat is unportable - " + "use gnulib module linkat for portability"); +# endif #endif #if @GNULIB_LSEEK@ -# if @REPLACE_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lseek rpl_lseek - extern off_t lseek (int fd, off_t offset, int whence); +# if @REPLACE_LSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lseek rpl_lseek +# endif +_GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +_GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +# else +_GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif +_GL_CXXALIASWARN (lseek); #elif defined GNULIB_POSIXCHECK # undef lseek -# define lseek(f,o,w) \ - (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \ - "systems - use gnulib module lseek for portability"), \ - lseek (f, o, w)) +# if HAVE_RAW_DECL_LSEEK +_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " + "systems - use gnulib module lseek for portability"); +# endif +#endif + + +#if @GNULIB_PIPE2@ +/* Create a pipe, applying the given flags when opening the read-end of the + pipe and the write-end of the pipe. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Store the read-end as fd[0] and the write-end as fd[1]. + Return 0 upon success, or -1 with errno set upon failure. + See also the Linux man page at + . */ +# if @HAVE_PIPE2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pipe2 rpl_pipe2 +# endif +_GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); +# else +_GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); +# endif +_GL_CXXALIASWARN (pipe2); +#elif defined GNULIB_POSIXCHECK +# undef pipe2 +# if HAVE_RAW_DECL_PIPE2 +_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " + "use gnulib module pipe2 for portability"); +# endif +#endif + + +#if @GNULIB_PREAD@ +/* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. + Return the number of bytes placed into BUF if successful, otherwise + set errno and return -1. 0 indicates EOF. See the POSIX:2001 + specification . */ +# if @REPLACE_PREAD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pread rpl_pread +# endif +_GL_FUNCDECL_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PREAD@ +_GL_FUNCDECL_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pread); +#elif defined GNULIB_POSIXCHECK +# undef pread +# if HAVE_RAW_DECL_PREAD +_GL_WARN_ON_USE (pread, "pread is unportable - " + "use gnulib module pread for portability"); +# endif +#endif + + +#if @GNULIB_PWRITE@ +/* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. + Return the number of bytes written if successful, otherwise + set errno and return -1. 0 indicates nothing written. See the + POSIX:2001 specification + . */ +# if @REPLACE_PWRITE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pwrite rpl_pwrite +# endif +_GL_FUNCDECL_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PWRITE@ +_GL_FUNCDECL_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pwrite); +#elif defined GNULIB_POSIXCHECK +# undef pwrite +# if HAVE_RAW_DECL_PWRITE +_GL_WARN_ON_USE (pwrite, "pwrite is unportable - " + "use gnulib module pwrite for portability"); +# endif #endif @@ -223,16 +1060,70 @@ successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# if !@HAVE_READLINK@ -# include -extern int readlink (const char *file, char *buf, size_t bufsize); +# if @REPLACE_READLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define readlink rpl_readlink +# endif +_GL_FUNCDECL_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); +# else +# if !@HAVE_READLINK@ +_GL_FUNCDECL_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); # endif +_GL_CXXALIASWARN (readlink); #elif defined GNULIB_POSIXCHECK # undef readlink -# define readlink(f,b,s) \ - (GL_LINK_WARNING ("readlink is unportable - " \ - "use gnulib module readlink for portability"), \ - readlink (f, b, s)) +# if HAVE_RAW_DECL_READLINK +_GL_WARN_ON_USE (readlink, "readlink is unportable - " + "use gnulib module readlink for portability"); +# endif +#endif + + +#if @GNULIB_READLINKAT@ +# if !@HAVE_READLINKAT@ +_GL_FUNCDECL_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len)); +_GL_CXXALIASWARN (readlinkat); +#elif defined GNULIB_POSIXCHECK +# undef readlinkat +# if HAVE_RAW_DECL_READLINKAT +_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_RMDIR@ +/* Remove the directory DIR. */ +# if @REPLACE_RMDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define rmdir rpl_rmdir +# endif +_GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (rmdir, int, (char const *name)); +# else +_GL_CXXALIAS_SYS (rmdir, int, (char const *name)); +# endif +_GL_CXXALIASWARN (rmdir); +#elif defined GNULIB_POSIXCHECK +# undef rmdir +# if HAVE_RAW_DECL_RMDIR +_GL_WARN_ON_USE (rmdir, "rmdir is unportable - " + "use gnulib module rmdir for portability"); +# endif #endif @@ -241,20 +1132,197 @@ Returns the number of seconds left to sleep. See the POSIX:2001 specification . */ -# if !@HAVE_SLEEP@ -extern unsigned int sleep (unsigned int n); +# if @REPLACE_SLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef sleep +# define sleep rpl_sleep +# endif +_GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n)); +_GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n)); +# else +# if !@HAVE_SLEEP@ +_GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n)); +# endif +_GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); # endif +_GL_CXXALIASWARN (sleep); #elif defined GNULIB_POSIXCHECK # undef sleep -# define sleep(n) \ - (GL_LINK_WARNING ("sleep is unportable - " \ - "use gnulib module sleep for portability"), \ - sleep (n)) +# if HAVE_RAW_DECL_SLEEP +_GL_WARN_ON_USE (sleep, "sleep is unportable - " + "use gnulib module sleep for portability"); +# endif #endif -#ifdef __cplusplus -} +#if @GNULIB_SYMLINK@ +# if @REPLACE_SYMLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef symlink +# define symlink rpl_symlink +# endif +_GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file)); +# else +# if !@HAVE_SYMLINK@ +_GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file)); +# endif +_GL_CXXALIASWARN (symlink); +#elif defined GNULIB_POSIXCHECK +# undef symlink +# if HAVE_RAW_DECL_SYMLINK +_GL_WARN_ON_USE (symlink, "symlink is not portable - " + "use gnulib module symlink for portability"); +# endif +#endif + + +#if @GNULIB_SYMLINKAT@ +# if !@HAVE_SYMLINKAT@ +_GL_FUNCDECL_SYS (symlinkat, int, + (char const *contents, int fd, char const *file) + _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (symlinkat, int, + (char const *contents, int fd, char const *file)); +_GL_CXXALIASWARN (symlinkat); +#elif defined GNULIB_POSIXCHECK +# undef symlinkat +# if HAVE_RAW_DECL_SYMLINKAT +_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_TTYNAME_R@ +/* Store at most BUFLEN characters of the pathname of the terminal FD is + open on in BUF. Return 0 on success, otherwise an error number. */ +# if @REPLACE_TTYNAME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ttyname_r +# define ttyname_r rpl_ttyname_r +# endif +_GL_FUNCDECL_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# else +# if !@HAVE_TTYNAME_R@ +_GL_FUNCDECL_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# endif +_GL_CXXALIASWARN (ttyname_r); +#elif defined GNULIB_POSIXCHECK +# undef ttyname_r +# if HAVE_RAW_DECL_TTYNAME_R +_GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " + "use gnulib module ttyname_r for portability"); +# endif +#endif + + +#if @GNULIB_UNLINK@ +# if @REPLACE_UNLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlink +# define unlink rpl_unlink +# endif +_GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unlink, int, (char const *file)); +# else +_GL_CXXALIAS_SYS (unlink, int, (char const *file)); +# endif +_GL_CXXALIASWARN (unlink); +#elif defined GNULIB_POSIXCHECK +# undef unlink +# if HAVE_RAW_DECL_UNLINK +_GL_WARN_ON_USE (unlink, "unlink is not portable - " + "use gnulib module unlink for portability"); +# endif +#endif + + +#if @GNULIB_UNLINKAT@ +# if @REPLACE_UNLINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlinkat +# define unlinkat rpl_unlinkat +# endif +_GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); +# else +# if !@HAVE_UNLINKAT@ +_GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); +# endif +_GL_CXXALIASWARN (unlinkat); +#elif defined GNULIB_POSIXCHECK +# undef unlinkat +# if HAVE_RAW_DECL_UNLINKAT +_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_USLEEP@ +/* Pause the execution of the current thread for N microseconds. + Returns 0 on completion, or -1 on range error. + See the POSIX:2001 specification + . */ +# if @REPLACE_USLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef usleep +# define usleep rpl_usleep +# endif +_GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); +_GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); +# else +# if !@HAVE_USLEEP@ +_GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIASWARN (usleep); +#elif defined GNULIB_POSIXCHECK +# undef usleep +# if HAVE_RAW_DECL_USLEEP +_GL_WARN_ON_USE (usleep, "usleep is unportable - " + "use gnulib module usleep for portability"); +# endif +#endif + + +#if @GNULIB_WRITE@ +/* Write up to COUNT bytes starting at BUF to file descriptor FD. + See the POSIX:2001 specification + . */ +# if @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef write +# define write rpl_write +# endif +_GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); +# else +/* Need to cast, because on mingw, the third parameter is + unsigned int count + and the return type is 'int'. */ +_GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count)); +# endif +_GL_CXXALIASWARN (write); #endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/unitypes.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/unitypes.h --- gettext-0.17/gettext-runtime/gnulib-lib/unitypes.h 2007-10-31 12:35:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/unitypes.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -/* Elementary types for the GNU UniString library. - Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNITYPES_H -#define _UNITYPES_H - -/* Get uint8_t, uint16_t, uint32_t. */ -#include - -/* Type representing a Unicode character. */ -typedef uint32_t ucs4_t; - -#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/unitypes.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/unitypes.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/unitypes.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/unitypes.in.h 2010-05-17 19:56:12.000000000 +0000 @@ -0,0 +1,26 @@ +/* Elementary types for the GNU UniString library. + Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNITYPES_H +#define _UNITYPES_H + +/* Get uint8_t, uint16_t, uint32_t. */ +#include + +/* Type representing a Unicode character. */ +typedef uint32_t ucs4_t; + +#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/uniwidth/cjk.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth/cjk.h --- gettext-0.17/gettext-runtime/gnulib-lib/uniwidth/cjk.h 2007-10-31 12:35:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth/cjk.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for CJK encoding. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/uniwidth/width.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth/width.c --- gettext-0.17/gettext-runtime/gnulib-lib/uniwidth/width.c 2007-10-31 12:35:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth/width.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine display width of Unicode character. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -32,11 +32,11 @@ * - Zero width characters; generated from * "grep '^[^;]*;ZERO WIDTH ' UnicodeData.txt" */ -static const unsigned char nonspacing_table_data[22*64] = { +static const unsigned char nonspacing_table_data[26*64] = { /* 0x0000-0x01ff */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, /* 0x0000-0x003f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0x0040-0x007f */ - 0xff, 0xff, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, /* 0x0080-0x00bf */ + 0xff, 0xff, 0xff, 0xff, 0x00, 0x20, 0x00, 0x00, /* 0x0080-0x00bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x00c0-0x00ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0100-0x013f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0140-0x017f */ @@ -54,14 +54,14 @@ /* 0x0400-0x05ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0400-0x043f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0440-0x047f */ - 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ + 0xf8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x04c0-0x04ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0500-0x053f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0540-0x057f */ 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xbf, /* 0x0580-0x05bf */ 0xb6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x05c0-0x05ff */ /* 0x0600-0x07ff */ - 0x0f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ + 0x0f, 0x00, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ 0x00, 0xf8, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x00, /* 0x0640-0x067f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0680-0x06bf */ 0x00, 0x00, 0xc0, 0xff, 0x9f, 0x3d, 0x00, 0x00, /* 0x06c0-0x06ff */ @@ -80,20 +80,20 @@ 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x09c0-0x09ff */ /* 0x0a00-0x0bff */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a00-0x0a3f */ - 0x86, 0x39, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, /* 0x0a40-0x0a7f */ + 0x86, 0x39, 0x02, 0x00, 0x00, 0x00, 0x23, 0x00, /* 0x0a40-0x0a7f */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a80-0x0abf */ 0xbe, 0x21, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0ac0-0x0aff */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, /* 0x0b00-0x0b3f */ - 0x0e, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ + 0x1e, 0x20, 0x40, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b80-0x0bbf */ 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0bc0-0x0bff */ /* 0x0c00-0x0dff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x0c00-0x0c3f */ - 0xc1, 0x3d, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ + 0xc1, 0x3d, 0x60, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0c80-0x0cbf */ 0x00, 0x30, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0cc0-0x0cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d00-0x0d3f */ - 0x0e, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ + 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d80-0x0dbf */ 0x00, 0x04, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0dc0-0x0dff */ /* 0x0e00-0x0fff */ @@ -106,9 +106,9 @@ 0xdf, 0x00, 0xff, 0xfe, 0xff, 0xff, 0xff, 0x1f, /* 0x0f80-0x0fbf */ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0fc0-0x0fff */ /* 0x1000-0x11ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc5, 0x02, /* 0x1000-0x103f */ - 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, /* 0x1040-0x107f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xfd, 0x66, /* 0x1000-0x103f */ + 0x00, 0x00, 0x00, 0xc3, 0x01, 0x00, 0x1e, 0x00, /* 0x1040-0x107f */ + 0x64, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10c0-0x10ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1100-0x113f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1140-0x117f */ @@ -137,7 +137,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1840-0x187f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, /* 0x1880-0x18bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18c0-0x18ff */ - 0x00, 0x00, 0x00, 0x00, 0x87, 0x0f, 0x04, 0x0e, /* 0x1900-0x193f */ + 0x00, 0x00, 0x00, 0x00, 0x87, 0x01, 0x04, 0x0e, /* 0x1900-0x193f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1940-0x197f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1980-0x19bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x19c0-0x19ff */ @@ -148,26 +148,35 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1ac0-0x1aff */ 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x17, /* 0x1b00-0x1b3f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0f, 0x00, /* 0x1b40-0x1b7f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1b80-0x1bbf */ + 0x03, 0x00, 0x00, 0x00, 0x3c, 0x03, 0x00, 0x00, /* 0x1b80-0x1bbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1bc0-0x1bff */ /* 0x1c00-0x1dff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c00-0x1c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xcf, 0x00, /* 0x1c00-0x1c3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c40-0x1c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c80-0x1cbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1cc0-0x1cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d00-0x1d3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d40-0x1d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d80-0x1dbf */ - 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ + 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ /* 0x2000-0x21ff */ 0x00, 0xf8, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, /* 0x2000-0x203f */ - 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ + 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2080-0x20bf */ - 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 0x20c0-0x20ff */ + 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, /* 0x20c0-0x20ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2100-0x213f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2140-0x217f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2180-0x21bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x21c0-0x21ff */ + /* 0x2c00-0x2dff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c00-0x2c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c40-0x2c7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c80-0x2cbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2cc0-0x2cff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d00-0x2d3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d40-0x2d7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d80-0x2dbf */ + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, /* 0x2dc0-0x2dff */ /* 0x3000-0x31ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, /* 0x3000-0x303f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3040-0x307f */ @@ -177,15 +186,33 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3140-0x317f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3180-0x31bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x31c0-0x31ff */ + /* 0xa600-0xa7ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa600-0xa63f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x30, /* 0xa640-0xa67f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa680-0xa6bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa6c0-0xa6ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa700-0xa73f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa740-0xa77f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa780-0xa7bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa7c0-0xa7ff */ /* 0xa800-0xa9ff */ 0x44, 0x08, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, /* 0xa800-0xa83f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa840-0xa87f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa880-0xa8bf */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa900-0xa93f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ + 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ + 0x00, 0x00, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, /* 0xa900-0xa93f */ + 0x80, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa980-0xa9bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa9c0-0xa9ff */ + /* 0xaa00-0xabff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x66, 0x00, /* 0xaa00-0xaa3f */ + 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa40-0xaa7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa80-0xaabf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaac0-0xaaff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab00-0xab3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab40-0xab7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab80-0xabbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xabc0-0xabff */ /* 0xfa00-0xfbff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa00-0xfa3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa40-0xfa7f */ @@ -196,7 +223,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfb80-0xfbbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfbc0-0xfbff */ /* 0xfe00-0xffff */ - 0xff, 0xff, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ + 0xff, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe40-0xfe7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe80-0xfebf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0xfec0-0xfeff */ @@ -204,6 +231,15 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff40-0xff7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff80-0xffbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, /* 0xffc0-0xffff */ + /* 0x10000-0x101ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10000-0x1003f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10040-0x1007f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10080-0x100bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x100c0-0x100ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10100-0x1013f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10140-0x1017f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10180-0x101bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, /* 0x101c0-0x101ff */ /* 0x10a00-0x10bff */ 0x6e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, /* 0x10a00-0x10a3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10a40-0x10a7f */ @@ -235,21 +271,21 @@ static const signed char nonspacing_table_ind[240] = { 0, 1, 2, 3, 4, 5, 6, 7, /* 0x0000-0x0fff */ 8, 9, -1, 10, 11, 12, 13, -1, /* 0x1000-0x1fff */ - 14, -1, -1, -1, -1, -1, -1, -1, /* 0x2000-0x2fff */ - 15, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ + 14, -1, -1, -1, -1, -1, 15, -1, /* 0x2000-0x2fff */ + 16, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x4000-0x4fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x5000-0x5fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x6000-0x6fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x7000-0x7fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x8000-0x8fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x9000-0x9fff */ - -1, -1, -1, -1, 16, -1, -1, -1, /* 0xa000-0xafff */ + -1, -1, -1, 17, 18, 19, -1, -1, /* 0xa000-0xafff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xb000-0xbfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xc000-0xcfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xd000-0xdfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xe000-0xefff */ - -1, -1, -1, -1, -1, 17, -1, 18, /* 0xf000-0xffff */ - -1, -1, -1, -1, -1, 19, -1, -1, /* 0x10000-0x10fff */ + -1, -1, -1, -1, -1, 20, -1, 21, /* 0xf000-0xffff */ + 22, -1, -1, -1, -1, 23, -1, -1, /* 0x10000-0x10fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x11000-0x11fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x12000-0x12fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x13000-0x13fff */ @@ -262,7 +298,7 @@ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1a000-0x1afff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1b000-0x1bfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1c000-0x1cfff */ - 20, 21, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ + 24, 25, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ }; /* Determine number of column positions required for UC. */ @@ -274,26 +310,26 @@ { int ind = nonspacing_table_ind[uc >> 9]; if (ind >= 0) - if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) - { - if (uc > 0 && uc < 0xa0) - return -1; - else - return 0; - } + if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) + { + if (uc > 0 && uc < 0xa0) + return -1; + else + return 0; + } } else if ((uc >> 9) == (0xe0000 >> 9)) { if (uc >= 0xe0100) - { - if (uc <= 0xe01ef) - return 0; - } + { + if (uc <= 0xe01ef) + return 0; + } else - { - if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) - return 0; - } + { + if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) + return 0; + } } /* Test for double-width character. * Generated from "grep '^....;[WF]' EastAsianWidth.txt" @@ -301,17 +337,17 @@ */ if (uc >= 0x1100 && ((uc < 0x1160) /* Hangul Jamo */ - || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ - || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ - && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) - || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ - || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ - || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ - || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ - || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ - || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ - || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ - || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ + || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ + || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ + && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) + || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ + || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ + || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ + || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ + || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ + || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ + || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ + || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ ) ) return 2; /* In ancient CJK encodings, Cyrillic and most other characters are diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/uniwidth.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth.h --- gettext-0.17/gettext-runtime/gnulib-lib/uniwidth.h 2007-10-31 12:35:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -/* Display width functions. - Copyright (C) 2001-2002, 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNIWIDTH_H -#define _UNIWIDTH_H - -#include "unitypes.h" - -/* Get size_t. */ -#include - -/* Get locale_charset() declaration. */ -#include "localcharset.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Display width. */ - -/* These functions are locale dependent. The encoding argument identifies - the encoding (e.g. "ISO-8859-2" for Polish). */ - -/* Determine number of column positions required for UC. */ -extern int - uc_width (ucs4_t uc, const char *encoding); - -/* Determine number of column positions required for first N units - (or fewer if S ends before this) in S. */ -extern int - u8_width (const uint8_t *s, size_t n, const char *encoding); -extern int - u16_width (const uint16_t *s, size_t n, const char *encoding); -extern int - u32_width (const uint32_t *s, size_t n, const char *encoding); - -/* Determine number of column positions required for S. */ -extern int - u8_strwidth (const uint8_t *s, const char *encoding); -extern int - u16_strwidth (const uint16_t *s, const char *encoding); -extern int - u32_strwidth (const uint32_t *s, const char *encoding); - - -#ifdef __cplusplus -} -#endif - -#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/uniwidth.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/uniwidth.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/uniwidth.in.h 2010-05-17 19:56:12.000000000 +0000 @@ -0,0 +1,65 @@ +/* Display width functions. + Copyright (C) 2001-2002, 2005, 2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNIWIDTH_H +#define _UNIWIDTH_H + +#include "unitypes.h" + +/* Get size_t. */ +#include + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Display width. */ + +/* These functions are locale dependent. The encoding argument identifies + the encoding (e.g. "ISO-8859-2" for Polish). */ + +/* Determine number of column positions required for UC. */ +extern int + uc_width (ucs4_t uc, const char *encoding); + +/* Determine number of column positions required for first N units + (or fewer if S ends before this) in S. */ +extern int + u8_width (const uint8_t *s, size_t n, const char *encoding); +extern int + u16_width (const uint16_t *s, size_t n, const char *encoding); +extern int + u32_width (const uint32_t *s, size_t n, const char *encoding); + +/* Determine number of column positions required for S. */ +extern int + u8_strwidth (const uint8_t *s, const char *encoding); +extern int + u16_strwidth (const uint16_t *s, const char *encoding); +extern int + u32_strwidth (const uint32_t *s, const char *encoding); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/unlocked-io.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/unlocked-io.h --- gettext-0.17/gettext-runtime/gnulib-lib/unlocked-io.h 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/unlocked-io.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,6 +1,6 @@ /* Prefer faster, non-thread-safe stdio functions if available. - Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/verify.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/verify.h --- gettext-0.17/gettext-runtime/gnulib-lib/verify.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/verify.h 2010-05-09 11:03:17.000000000 +0000 @@ -0,0 +1,163 @@ +/* Compile-time assert-like macros. + + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ + +#ifndef VERIFY_H +# define VERIFY_H 1 + +/* Each of these macros verifies that its argument R is nonzero. To + be portable, R should be an integer constant expression. Unlike + assert (R), there is no run-time overhead. + + There are two macros, since no single macro can be used in all + contexts in C. verify_true (R) is for scalar contexts, including + integer constant expression contexts. verify (R) is for declaration + contexts, e.g., the top level. + + Symbols ending in "__" are private to this header. + + The code below uses several ideas. + + * The first step is ((R) ? 1 : -1). Given an expression R, of + integral or boolean or floating-point type, this yields an + expression of integral type, whose value is later verified to be + constant and nonnegative. + + * Next this expression W is wrapped in a type + struct verify_type__ { unsigned int verify_error_if_negative_size__: W; }. + If W is negative, this yields a compile-time error. No compiler can + deal with a bit-field of negative size. + + One might think that an array size check would have the same + effect, that is, that the type struct { unsigned int dummy[W]; } + would work as well. However, inside a function, some compilers + (such as C++ compilers and GNU C) allow local parameters and + variables inside array size expressions. With these compilers, + an array size check would not properly diagnose this misuse of + the verify macro: + + void function (int n) { verify (n < 0); } + + * For the verify macro, the struct verify_type__ will need to + somehow be embedded into a declaration. To be portable, this + declaration must declare an object, a constant, a function, or a + typedef name. If the declared entity uses the type directly, + such as in + + struct dummy {...}; + typedef struct {...} dummy; + extern struct {...} *dummy; + extern void dummy (struct {...} *); + extern struct {...} *dummy (void); + + two uses of the verify macro would yield colliding declarations + if the entity names are not disambiguated. A workaround is to + attach the current line number to the entity name: + + #define _GL_CONCAT0(x, y) x##y + #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) + extern struct {...} * _GL_CONCAT (dummy, __LINE__); + + But this has the problem that two invocations of verify from + within the same macro would collide, since the __LINE__ value + would be the same for both invocations. (The GCC __COUNTER__ + macro solves this problem, but is not portable.) + + A solution is to use the sizeof operator. It yields a number, + getting rid of the identity of the type. Declarations like + + extern int dummy [sizeof (struct {...})]; + extern void dummy (int [sizeof (struct {...})]); + extern int (*dummy (void)) [sizeof (struct {...})]; + + can be repeated. + + * Should the implementation use a named struct or an unnamed struct? + Which of the following alternatives can be used? + + extern int dummy [sizeof (struct {...})]; + extern int dummy [sizeof (struct verify_type__ {...})]; + extern void dummy (int [sizeof (struct {...})]); + extern void dummy (int [sizeof (struct verify_type__ {...})]); + extern int (*dummy (void)) [sizeof (struct {...})]; + extern int (*dummy (void)) [sizeof (struct verify_type__ {...})]; + + In the second and sixth case, the struct type is exported to the + outer scope; two such declarations therefore collide. GCC warns + about the first, third, and fourth cases. So the only remaining + possibility is the fifth case: + + extern int (*dummy (void)) [sizeof (struct {...})]; + + * GCC warns about duplicate declarations of the dummy function if + -Wredundant_decls is used. GCC 4.3 and later have a builtin + __COUNTER__ macro that can let us generate unique identifiers for + each dummy function, to suppress this warning. + + * This implementation exploits the fact that GCC does not warn about + the last declaration mentioned above. If a future version of GCC + introduces a warning for this, the problem could be worked around + by using code specialized to GCC, just as __COUNTER__ is already + being used if available. + + #if 4 <= __GNUC__ + # define verify(R) [another version to keep GCC happy] + #endif + + * In C++, any struct definition inside sizeof is invalid. + Use a template type to work around the problem. */ + +/* Concatenate two preprocessor tokens. */ +# define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) +# define _GL_CONCAT0(x, y) x##y + +/* _GL_COUNTER is an integer, preferably one that changes each time we + use it. Use __COUNTER__ if it works, falling back on __LINE__ + otherwise. __LINE__ isn't perfect, but it's better than a + constant. */ +# if defined __COUNTER__ && __COUNTER__ != __COUNTER__ +# define _GL_COUNTER __COUNTER__ +# else +# define _GL_COUNTER __LINE__ +# endif + +/* Generate a symbol with the given prefix, making it unique if + possible. */ +# define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER) + +/* Verify requirement R at compile-time, as an integer constant expression. + Return 1. */ + +# ifdef __cplusplus +template + struct verify_type__ { unsigned int verify_error_if_negative_size__: w; }; +# define verify_true(R) \ + (!!sizeof (verify_type__<(R) ? 1 : -1>)) +# else +# define verify_true(R) \ + (!!sizeof \ + (struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; })) +# endif + +/* Verify requirement R at compile-time, as a declaration without a + trailing ';'. */ + +# define verify(R) \ + extern int (* _GL_GENSYM (verify_function) (void)) [verify_true (R)] + +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/wchar.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h 2007-10-03 22:23:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/wchar.in.h 2010-05-09 01:36:16.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that have issues. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,15 +26,42 @@ * the declaration of wcwidth(). */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H +/* Special invocation convention: + - Inside glibc and uClibc header files. + - On HP-UX 11.00 we have a sequence of nested includes + -> -> , and the latter includes , + once indirectly -> -> -> + and once directly. In both situations 'wint_t' is not yet defined, + therefore we cannot provide the function overrides; instead include only + the system's . + - On IRIX 6.5, similarly, we have an include -> , and + the latter includes . But here, we have no way to detect whether + is completely included or is still being included. */ + +#@INCLUDE_NEXT@ @NEXT_WCHAR_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_WCHAR_H +#define _GL_ALREADY_INCLUDING_WCHAR_H + /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be - included before . */ -#include -#include -#include + included before . + But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif /* Include the original if it exists. Some builds of uClibc lack it. */ @@ -43,40 +70,359 @@ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ #endif +#undef _GL_ALREADY_INCLUDING_WCHAR_H + #ifndef _GL_WCHAR_H #define _GL_WCHAR_H -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Define wint_t and WEOF. (Also done in wctype.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif +#else +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif +#endif + + +/* Override mbstate_t if it is too small. + On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for + implementing mbrtowc for encodings like UTF-8. */ +#if !(@HAVE_MBSINIT@ && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ +typedef int rpl_mbstate_t; +# undef mbstate_t +# define mbstate_t rpl_mbstate_t +# define GNULIB_defined_mbstate_t 1 +#endif + + +/* Convert a single-byte character to a wide character. */ +#if @GNULIB_BTOWC@ +# if @REPLACE_BTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef btowc +# define btowc rpl_btowc +# endif +_GL_FUNCDECL_RPL (btowc, wint_t, (int c)); +_GL_CXXALIAS_RPL (btowc, wint_t, (int c)); +# else +# if !@HAVE_BTOWC@ +_GL_FUNCDECL_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIAS_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIASWARN (btowc); +#elif defined GNULIB_POSIXCHECK +# undef btowc +# if HAVE_RAW_DECL_BTOWC +_GL_WARN_ON_USE (btowc, "btowc is unportable - " + "use gnulib module btowc for portability"); +# endif +#endif + -#ifdef __cplusplus -extern "C" { +/* Convert a wide character to a single-byte character. */ +#if @GNULIB_WCTOB@ +# if @REPLACE_WCTOB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wctob +# define wctob rpl_wctob +# endif +_GL_FUNCDECL_RPL (wctob, int, (wint_t wc)); +_GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); +# else +# if !defined wctob && !@HAVE_DECL_WCTOB@ +/* wctob is provided by gnulib, or wctob exists but is not declared. */ +_GL_FUNCDECL_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIASWARN (wctob); +#elif defined GNULIB_POSIXCHECK +# undef wctob +# if HAVE_RAW_DECL_WCTOB +_GL_WARN_ON_USE (wctob, "wctob is unportable - " + "use gnulib module wctob for portability"); +# endif +#endif + + +/* Test whether *PS is in the initial state. */ +#if @GNULIB_MBSINIT@ +# if @REPLACE_MBSINIT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsinit +# define mbsinit rpl_mbsinit +# endif +_GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps)); +# else +# if !@HAVE_MBSINIT@ +_GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsinit); +#elif defined GNULIB_POSIXCHECK +# undef mbsinit +# if HAVE_RAW_DECL_MBSINIT +_GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - " + "use gnulib module mbsinit for portability"); +# endif +#endif + + +/* Convert a multibyte character to a wide character. */ +#if @GNULIB_MBRTOWC@ +# if @REPLACE_MBRTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrtowc +# define mbrtowc rpl_mbrtowc +# endif +_GL_FUNCDECL_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRTOWC@ +_GL_FUNCDECL_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrtowc); +#elif defined GNULIB_POSIXCHECK +# undef mbrtowc +# if HAVE_RAW_DECL_MBRTOWC +_GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - " + "use gnulib module mbrtowc for portability"); +# endif +#endif + + +/* Recognize a multibyte character. */ +#if @GNULIB_MBRLEN@ +# if @REPLACE_MBRLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrlen +# define mbrlen rpl_mbrlen +# endif +_GL_FUNCDECL_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRLEN@ +_GL_FUNCDECL_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrlen); +#elif defined GNULIB_POSIXCHECK +# undef mbrlen +# if HAVE_RAW_DECL_MBRLEN +_GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - " + "use gnulib module mbrlen for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSRTOWCS@ +# if @REPLACE_MBSRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsrtowcs +# define mbsrtowcs rpl_mbsrtowcs +# endif +_GL_FUNCDECL_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSRTOWCS@ +_GL_FUNCDECL_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsrtowcs +# if HAVE_RAW_DECL_MBSRTOWCS +_GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - " + "use gnulib module mbsrtowcs for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSNRTOWCS@ +# if @REPLACE_MBSNRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsnrtowcs +# define mbsnrtowcs rpl_mbsnrtowcs +# endif +_GL_FUNCDECL_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSNRTOWCS@ +_GL_FUNCDECL_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsnrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsnrtowcs +# if HAVE_RAW_DECL_MBSNRTOWCS +_GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - " + "use gnulib module mbsnrtowcs for portability"); +# endif +#endif + + +/* Convert a wide character to a multibyte character. */ +#if @GNULIB_WCRTOMB@ +# if @REPLACE_WCRTOMB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcrtomb +# define wcrtomb rpl_wcrtomb +# endif +_GL_FUNCDECL_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +_GL_CXXALIAS_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# else +# if !@HAVE_WCRTOMB@ +_GL_FUNCDECL_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcrtomb); +#elif defined GNULIB_POSIXCHECK +# undef wcrtomb +# if HAVE_RAW_DECL_WCRTOMB +_GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - " + "use gnulib module wcrtomb for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSRTOMBS@ +# if @REPLACE_WCSRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsrtombs +# define wcsrtombs rpl_wcsrtombs +# endif +_GL_FUNCDECL_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSRTOMBS@ +_GL_FUNCDECL_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsrtombs +# if HAVE_RAW_DECL_WCSRTOMBS +_GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - " + "use gnulib module wcsrtombs for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSNRTOMBS@ +# if @REPLACE_WCSNRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsnrtombs +# define wcsnrtombs rpl_wcsnrtombs +# endif +_GL_FUNCDECL_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSNRTOMBS@ +_GL_FUNCDECL_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsnrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsnrtombs +# if HAVE_RAW_DECL_WCSNRTOMBS +_GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - " + "use gnulib module wcsnrtombs for portability"); +# endif #endif /* Return the number of screen columns needed for WC. */ #if @GNULIB_WCWIDTH@ # if @REPLACE_WCWIDTH@ -# undef wcwidth -# define wcwidth rpl_wcwidth -extern int wcwidth (wchar_t); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcwidth +# define wcwidth rpl_wcwidth +# endif +_GL_FUNCDECL_RPL (wcwidth, int, (wchar_t)); +_GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); # else -# if !defined wcwidth && !@HAVE_DECL_WCWIDTH@ +# if !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ -extern int wcwidth (int /* actually wchar_t */); +_GL_FUNCDECL_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIASWARN (wcwidth); #elif defined GNULIB_POSIXCHECK # undef wcwidth -# define wcwidth(w) \ - (GL_LINK_WARNING ("wcwidth is unportable - " \ - "use gnulib module wcwidth for portability"), \ - wcwidth (w)) +# if HAVE_RAW_DECL_WCWIDTH +_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " + "use gnulib module wcwidth for portability"); +# endif #endif -#ifdef __cplusplus -} -#endif - #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/wctype.in.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/wctype.in.h --- gettext-0.17/gettext-runtime/gnulib-lib/wctype.in.h 2007-10-03 22:23:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/wctype.in.h 2010-04-25 09:20:42.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that lack it. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -28,6 +28,10 @@ #ifndef _GL_WCTYPE_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if @HAVE_WINT_T@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before @@ -50,112 +54,324 @@ #ifndef _GL_WCTYPE_H #define _GL_WCTYPE_H -#if @HAVE_WINT_T@ -typedef wint_t __wctype_wint_t; +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define wint_t and WEOF. (Also done in wchar.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif #else -typedef int __wctype_wint_t; +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif #endif + /* FreeBSD 4.4 to 4.11 has but lacks the functions. - Assume all 12 functions are implemented the same way, or not at all. */ -#if ! @HAVE_ISWCNTRL@ + Linux libc5 has and the functions but they are broken. + Assume all 11 functions (all isw* except iswblank) are implemented the + same way, or not at all. */ +#if ! @HAVE_ISWCNTRL@ || @REPLACE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an undefined variable _ctmp_ and to macros like _P, and they refer to system functions like _iswctype that are not in the standard C library. Rather than try to get ancient buggy implementations like this to work, just disable them. */ -# undef iswalnum -# undef iswalpha -# undef iswblank -# undef iswcntrl -# undef iswdigit -# undef iswgraph -# undef iswlower -# undef iswprint -# undef iswpunct -# undef iswspace -# undef iswupper -# undef iswxdigit - -static inline int -iswalnum (__wctype_wint_t wc) +# undef iswalnum +# undef iswalpha +# undef iswblank +# undef iswcntrl +# undef iswdigit +# undef iswgraph +# undef iswlower +# undef iswprint +# undef iswpunct +# undef iswspace +# undef iswupper +# undef iswxdigit +# undef towlower +# undef towupper + +/* Linux libc5 has and the functions but they are broken. */ +# if @REPLACE_ISWCNTRL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iswalnum rpl_iswalnum +# define iswalpha rpl_iswalpha +# define iswblank rpl_iswblank +# define iswcntrl rpl_iswcntrl +# define iswdigit rpl_iswdigit +# define iswgraph rpl_iswgraph +# define iswlower rpl_iswlower +# define iswprint rpl_iswprint +# define iswpunct rpl_iswpunct +# define iswspace rpl_iswspace +# define iswupper rpl_iswupper +# define iswxdigit rpl_iswxdigit +# define towlower rpl_towlower +# define towupper rpl_towupper +# endif +# endif + +static inline int +# if @REPLACE_ISWCNTRL@ +rpl_iswalnum +# else +iswalnum +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); } static inline int -iswalpha (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswalpha +# else +iswalpha +# endif + (wint_t wc) { return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'; } static inline int -iswblank (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswblank +# else +iswblank +# endif + (wint_t wc) { return wc == ' ' || wc == '\t'; } static inline int -iswcntrl (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswcntrl +# else +iswcntrl +# endif + (wint_t wc) { return (wc & ~0x1f) == 0 || wc == 0x7f; } static inline int -iswdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswdigit +# else +iswdigit +# endif + (wint_t wc) { return wc >= '0' && wc <= '9'; } static inline int -iswgraph (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswgraph +# else +iswgraph +# endif + (wint_t wc) { return wc >= '!' && wc <= '~'; } static inline int -iswlower (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswlower +# else +iswlower +# endif + (wint_t wc) { return wc >= 'a' && wc <= 'z'; } static inline int -iswprint (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswprint +# else +iswprint +# endif + (wint_t wc) { return wc >= ' ' && wc <= '~'; } static inline int -iswpunct (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswpunct +# else +iswpunct +# endif + (wint_t wc) { return (wc >= '!' && wc <= '~' - && !((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); + && !((wc >= '0' && wc <= '9') + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); } static inline int -iswspace (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswspace +# else +iswspace +# endif + (wint_t wc) { return (wc == ' ' || wc == '\t' - || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); + || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); } static inline int -iswupper (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswupper +# else +iswupper +# endif + (wint_t wc) { return wc >= 'A' && wc <= 'Z'; } static inline int -iswxdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswxdigit +# else +iswxdigit +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towlower +# else +towlower +# endif + (wint_t wc) +{ + return (wc >= 'A' && wc <= 'Z' ? wc - 'A' + 'a' : wc); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towupper +# else +towupper +# endif + (wint_t wc) +{ + return (wc >= 'a' && wc <= 'z' ? wc - 'a' + 'A' : wc); } -# endif /* ! HAVE_ISWCNTRL */ +#elif ! @HAVE_ISWBLANK@ +/* Only the iswblank function is missing. */ + +static inline int +iswblank (wint_t wc) +{ + return wc == ' ' || wc == '\t'; +} + +#endif + +#if defined __MINGW32__ + +/* On native Windows, wchar_t is uint16_t, and wint_t is uint32_t. + The functions towlower and towupper are implemented in the MSVCRT library + to take a wchar_t argument and return a wchar_t result. mingw declares + these functions to take a wint_t argument and return a wint_t result. + This means that: + 1. When the user passes an argument outside the range 0x0000..0xFFFF, the + function will look only at the lower 16 bits. This is allowed according + to POSIX. + 2. The return value is returned in the lower 16 bits of the result register. + The upper 16 bits are random: whatever happened to be in that part of the + result register. We need to fix this by adding a zero-extend from + wchar_t to wint_t after the call. */ + +static inline wint_t +rpl_towlower (wint_t wc) +{ + return (wint_t) (wchar_t) towlower (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towlower rpl_towlower +# endif + +static inline wint_t +rpl_towupper (wint_t wc) +{ + return (wint_t) (wchar_t) towupper (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towupper rpl_towupper +# endif + +#endif /* __MINGW32__ */ + +#if @REPLACE_ISWCNTRL@ +_GL_CXXALIAS_RPL (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswxdigit, int, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswxdigit, int, (wint_t wc)); +#endif +_GL_CXXALIASWARN (iswalnum); +_GL_CXXALIASWARN (iswalpha); +_GL_CXXALIASWARN (iswblank); +_GL_CXXALIASWARN (iswcntrl); +_GL_CXXALIASWARN (iswdigit); +_GL_CXXALIASWARN (iswgraph); +_GL_CXXALIASWARN (iswlower); +_GL_CXXALIASWARN (iswprint); +_GL_CXXALIASWARN (iswpunct); +_GL_CXXALIASWARN (iswspace); +_GL_CXXALIASWARN (iswupper); +_GL_CXXALIASWARN (iswxdigit); + +#if @REPLACE_ISWCNTRL@ || defined __MINGW32__ +_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_SYS (towupper, wint_t, (wint_t wc)); +#endif +_GL_CXXALIASWARN (towlower); +_GL_CXXALIASWARN (towupper); + #endif /* _GL_WCTYPE_H */ #endif /* _GL_WCTYPE_H */ diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/wcwidth.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/wcwidth.c --- gettext-0.17/gettext-runtime/gnulib-lib/wcwidth.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/wcwidth.c 2010-04-25 09:20:42.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a character. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,17 +26,16 @@ #include "streq.h" #include "uniwidth.h" -#undef wcwidth - int -rpl_wcwidth (wchar_t wc) +wcwidth (wchar_t wc) +#undef wcwidth { /* In UTF-8 locales, use a Unicode aware width function. */ const char *encoding = locale_charset (); if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) { /* We assume that in a UTF-8 locale, a wide character is the same as a - Unicode character. */ + Unicode character. */ return uc_width (wc, encoding); } else diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/xalloc.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/xalloc.h --- gettext-0.17/gettext-runtime/gnulib-lib/xalloc.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/xalloc.h 2010-06-06 12:49:58.000000000 +0000 @@ -84,8 +84,8 @@ known at compile-time. */ # define XNMALLOC(N,T) \ ((T *) (sizeof (T) == 1 \ - ? xmalloc (N) \ - : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) + ? xmalloc (N) \ + : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) static inline void * xnboundedmalloc (size_t n, size_t bound, size_t s) { diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/xreadlink.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/xreadlink.c --- gettext-0.17/gettext-runtime/gnulib-lib/xreadlink.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/xreadlink.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,6 +1,6 @@ /* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage - Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/xreadlink.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/xreadlink.h --- gettext-0.17/gettext-runtime/gnulib-lib/xreadlink.h 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/xreadlink.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,6 +1,7 @@ /* Reading symbolic links without size limitation. - Copyright (C) 2001, 2003, 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2004, 2007, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,3 +21,7 @@ #include extern char *xreadlink (char const *filename); + +#if GNULIB_XREADLINKAT +extern char *xreadlinkat (int fd, char const *filename); +#endif diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/xstriconv.c gettext-0.18.1.1/gettext-runtime/gnulib-lib/xstriconv.c --- gettext-0.17/gettext-runtime/gnulib-lib/xstriconv.c 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/xstriconv.c 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible. This program is free software: you can redistribute it and/or modify @@ -30,7 +30,7 @@ int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { int retval = mem_cd_iconv (src, srclen, cd, resultp, lengthp); diff -Nru gettext-0.17/gettext-runtime/gnulib-lib/xstriconv.h gettext-0.18.1.1/gettext-runtime/gnulib-lib/xstriconv.h --- gettext-0.17/gettext-runtime/gnulib-lib/xstriconv.h 2007-10-07 20:28:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-lib/xstriconv.h 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software: you can redistribute it and/or modify @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -67,7 +67,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * xstr_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/00gnulib.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/00gnulib.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/00gnulib.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/00gnulib.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,30 @@ +# 00gnulib.m4 serial 2 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This file must be named something that sorts before all other +dnl gnulib-provided .m4 files. It is needed until such time as we can +dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics. + +# AC_DEFUN_ONCE([NAME], VALUE) +# ---------------------------- +# Define NAME to expand to VALUE on the first use (whether by direct +# expansion, or by AC_REQUIRE), and to nothing on all subsequent uses. +# Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This +# definition is slower than the version in Autoconf 2.64, because it +# can only use interfaces that existed since 2.59; but it achieves the +# same effect. Quoting is necessary to avoid confusing Automake. +m4_version_prereq([2.63.263], [], +[m4_define([AC][_DEFUN_ONCE], + [AC][_DEFUN([$1], + [AC_REQUIRE([_gl_DEFUN_ONCE([$1])], + [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl +[AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])]) + +# gl_00GNULIB +# ----------- +# Witness macro that this file has been included. Needed to force +# Automake to include this file prior to all other gnulib .m4 files. +AC_DEFUN([gl_00GNULIB]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/asm-underscore.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/asm-underscore.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/asm-underscore.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/asm-underscore.m4 2010-05-17 19:56:13.000000000 +0000 @@ -0,0 +1,48 @@ +# asm-underscore.m4 serial 1 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. Based on as-underscore.m4 in GNU clisp. + +# gl_ASM_SYMBOL_PREFIX +# Tests for the prefix of C symbols at the assembly language level and the +# linker level. This prefix is either an underscore or empty. Defines the +# C macro USER_LABEL_PREFIX to this prefix, and sets ASM_SYMBOL_PREFIX to +# a stringified variant of this prefix. + +AC_DEFUN([gl_ASM_SYMBOL_PREFIX], +[ + dnl We don't use GCC's __USER_LABEL_PREFIX__ here, because + dnl 1. It works only for GCC. + dnl 2. It is incorrectly defined on some platforms, in some GCC versions. + AC_CACHE_CHECK( + [whether C symbols are prefixed with underscore at the linker level], + [gl_cv_prog_as_underscore], + [cat > conftest.c </dev/null 2>&1 + if grep _foo conftest.s >/dev/null ; then + gl_cv_prog_as_underscore=yes + else + gl_cv_prog_as_underscore=no + fi + rm -f conftest* + ]) + if test $gl_cv_prog_as_underscore = yes; then + USER_LABEL_PREFIX=_ + else + USER_LABEL_PREFIX= + fi + AC_DEFINE_UNQUOTED([USER_LABEL_PREFIX], [$USER_LABEL_PREFIX], + [Define to the prefix of C symbols at the assembler and linker level, + either an underscore or empty.]) + ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' + AC_SUBST([ASM_SYMBOL_PREFIX]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/atexit.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/atexit.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/atexit.m4 2007-01-27 03:21:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/atexit.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,12 +1,12 @@ -# atexit.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# atexit.m4 serial 3 +dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_ATEXIT], [ - AC_REPLACE_FUNCS(atexit) + AC_REPLACE_FUNCS([atexit]) if test $ac_cv_func_atexit = no; then gl_PREREQ_ATEXIT fi diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/canonicalize-lgpl.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/canonicalize-lgpl.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/canonicalize-lgpl.m4 2007-03-04 00:07:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/canonicalize-lgpl.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -# canonicalize-lgpl.m4 serial 4 -dnl Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_CANONICALIZE_LGPL], -[ - dnl Do this replacement check manually because the file name is shorter - dnl than the function name. - AC_CHECK_DECLS_ONCE(canonicalize_file_name) - AC_CHECK_FUNCS_ONCE(canonicalize_file_name) - if test $ac_cv_func_canonicalize_file_name = no; then - AC_LIBOBJ(canonicalize-lgpl) - AC_DEFINE([realpath], [rpl_realpath], - [Define to a replacement function name for realpath().]) - gl_PREREQ_CANONICALIZE_LGPL - fi -]) - -# Like gl_CANONICALIZE_LGPL, except prepare for separate compilation -# (no AC_LIBOBJ). -AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE], -[ - AC_CHECK_DECLS_ONCE(canonicalize_file_name) - AC_CHECK_FUNCS_ONCE(canonicalize_file_name) - gl_PREREQ_CANONICALIZE_LGPL -]) - -# Prerequisites of lib/canonicalize-lgpl.c. -AC_DEFUN([gl_PREREQ_CANONICALIZE_LGPL], -[ - AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h) - AC_CHECK_FUNCS_ONCE(getcwd readlink) -]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/canonicalize.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/canonicalize.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/canonicalize.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/canonicalize.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,81 @@ +# canonicalize.m4 serial 16 + +dnl Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. + +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Provides canonicalize_file_name and canonicalize_filename_mode, but does +# not provide or fix realpath. +AC_DEFUN([gl_FUNC_CANONICALIZE_FILENAME_MODE], +[ + AC_LIBOBJ([canonicalize]) + + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([canonicalize_file_name]) + AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) + AC_REQUIRE([gl_FUNC_REALPATH_WORKS]) + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_CANONICALIZE_FILE_NAME=1 + fi +]) + +# Provides canonicalize_file_name and realpath. +AC_DEFUN([gl_CANONICALIZE_LGPL], +[ + AC_REQUIRE([gl_CANONICALIZE_LGPL_SEPARATE]) + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 + AC_LIBOBJ([canonicalize-lgpl]) + if test $ac_cv_func_realpath = no; then + HAVE_REALPATH=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_REALPATH=1 + fi + elif test "$gl_cv_func_realpath_works" != yes; then + AC_LIBOBJ([canonicalize-lgpl]) + REPLACE_REALPATH=1 + REPLACE_CANONICALIZE_FILE_NAME=1 + fi +]) + +# Like gl_CANONICALIZE_LGPL, except prepare for separate compilation +# (no AC_LIBOBJ). +AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE], +[ + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([canonicalize_file_name getcwd readlink]) + AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) + AC_REQUIRE([gl_FUNC_REALPATH_WORKS]) + AC_CHECK_HEADERS_ONCE([sys/param.h]) +]) + +# Check whether realpath works. Assume that if a platform has both +# realpath and canonicalize_file_name, but the former is broken, then +# so is the latter. +AC_DEFUN([gl_FUNC_REALPATH_WORKS], +[ + AC_CHECK_FUNCS_ONCE([realpath]) + AC_CACHE_CHECK([whether realpath works], [gl_cv_func_realpath_works], [ + touch conftest.a + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([[ + #include + ]], [[ + char *name1 = realpath ("conftest.a", NULL); + char *name2 = realpath ("conftest.b/../conftest.a", NULL); + char *name3 = realpath ("conftest.a/", NULL); + return !(name1 && *name1 == '/' && !name2 && !name3); + ]]) + ], [gl_cv_func_realpath_works=yes], [gl_cv_func_realpath_works=no], + [gl_cv_func_realpath_works="guessing no"]) + ]) + if test "$gl_cv_func_realpath_works" = yes; then + AC_DEFINE([FUNC_REALPATH_WORKS], [1], [Define to 1 if realpath() + can malloc memory, always gives an absolute path, and handles + trailing slash correctly.]) + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/csharpcomp.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/csharpcomp.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/csharpcomp.m4 2007-10-28 22:52:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/csharpcomp.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# csharpcomp.m4 serial 7 -dnl Copyright (C) 2003-2005, 2007 Free Software Foundation, Inc. +# csharpcomp.m4 serial 8 +dnl Copyright (C) 2003-2005, 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -17,9 +17,9 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_CSCC_IN_PATH, cscc, yes) - AC_CHECK_PROG(HAVE_MCS_IN_PATH, mcs, yes) - AC_CHECK_PROG(HAVE_CSC_IN_PATH, csc, yes) + AC_CHECK_PROG([HAVE_CSCC_IN_PATH], [cscc], [yes]) + AC_CHECK_PROG([HAVE_MCS_IN_PATH], [mcs], [yes]) + AC_CHECK_PROG([HAVE_CSC_IN_PATH], [csc], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -67,12 +67,12 @@ esac done AC_MSG_RESULT([$ac_result]) - AC_SUBST(HAVE_CSCC) - AC_SUBST(HAVE_MCS) - AC_SUBST(HAVE_CSC) + AC_SUBST([HAVE_CSCC]) + AC_SUBST([HAVE_MCS]) + AC_SUBST([HAVE_CSC]) dnl Provide a default for CSHARPCOMPFLAGS. if test -z "${CSHARPCOMPFLAGS+set}"; then CSHARPCOMPFLAGS="-O -g" fi - AC_SUBST(CSHARPCOMPFLAGS) + AC_SUBST([CSHARPCOMPFLAGS]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/csharp.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/csharp.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/csharp.m4 2007-01-27 03:21:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/csharp.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# csharp.m4 serial 2 (gettext-0.14.2) -dnl Copyright (C) 2004-2005 Free Software Foundation, Inc. +# csharp.m4 serial 3 +dnl Copyright (C) 2004-2005, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,19 +9,19 @@ AC_DEFUN([gt_CSHARP_CHOICE], [ AC_MSG_CHECKING([for preferred C[#] implementation]) - AC_ARG_ENABLE(csharp, + AC_ARG_ENABLE([csharp], [ --enable-csharp[[=IMPL]] choose preferred C[#] implementation (pnet or mono)], [CSHARP_CHOICE="$enableval"], CSHARP_CHOICE=any) - AC_SUBST(CSHARP_CHOICE) + AC_SUBST([CSHARP_CHOICE]) AC_MSG_RESULT([$CSHARP_CHOICE]) case "$CSHARP_CHOICE" in pnet) - AC_DEFINE([CSHARP_CHOICE_PNET], 1, + AC_DEFINE([CSHARP_CHOICE_PNET], [1], [Define if pnet is the preferred C# implementation.]) ;; mono) - AC_DEFINE([CSHARP_CHOICE_MONO], 1, + AC_DEFINE([CSHARP_CHOICE_MONO], [1], [Define if mono is the preferred C# implementation.]) ;; esac diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/dos.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/dos.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/dos.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/dos.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,71 @@ +#serial 11 -*- autoconf -*- + +# Define some macros required for proper operation of code in lib/*.c +# on MSDOS/Windows systems. + +# Copyright (C) 2000-2001, 2004-2006, 2009-2010 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# From Jim Meyering. + +AC_DEFUN([gl_AC_DOS], + [ + AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ +#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ +neither MSDOS nor Windows +#endif]])], + [ac_cv_win_or_dos=yes], + [ac_cv_win_or_dos=no]) + ]) + + if test x"$ac_cv_win_or_dos" = xyes; then + ac_fs_accepts_drive_letter_prefix=1 + ac_fs_backslash_is_file_name_separator=1 + AC_CACHE_CHECK([whether drive letter can start relative path], + [ac_cv_drive_letter_can_be_relative], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ +#if defined __CYGWIN__ +drive letters are always absolute +#endif]])], + [ac_cv_drive_letter_can_be_relative=yes], + [ac_cv_drive_letter_can_be_relative=no]) + ]) + if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then + ac_fs_drive_letter_can_be_relative=1 + else + ac_fs_drive_letter_can_be_relative=0 + fi + else + ac_fs_accepts_drive_letter_prefix=0 + ac_fs_backslash_is_file_name_separator=0 + ac_fs_drive_letter_can_be_relative=0 + fi + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX], + $ac_fs_accepts_drive_letter_prefix, + [Define on systems for which file names may have a so-called + `drive letter' prefix, define this to compute the length of that + prefix, including the colon.]) + + AH_VERBATIM(ISSLASH, + [#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +#else +# define ISSLASH(C) ((C) == '/') +#endif]) + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR], + $ac_fs_backslash_is_file_name_separator, + [Define if the backslash character may also serve as a file name + component separator.]) + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE], + $ac_fs_drive_letter_can_be_relative, + [Define if a drive letter prefix denotes a relative path if it is + not followed by a file name component separator.]) + ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/double-slash-root.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/double-slash-root.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/double-slash-root.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/double-slash-root.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,38 @@ +# double-slash-root.m4 serial 4 -*- Autoconf -*- +dnl Copyright (C) 2006, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_DOUBLE_SLASH_ROOT], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CACHE_CHECK([whether // is distinct from /], [gl_cv_double_slash_root], + [ if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$[2]" = "$[4]" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi]) + if test "$gl_cv_double_slash_root" = yes; then + AC_DEFINE([DOUBLE_SLASH_IS_DISTINCT_ROOT], [1], + [Define to 1 if // is a file system root distinct from /.]) + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/eealloc.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/eealloc.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/eealloc.m4 2007-01-27 03:21:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/eealloc.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# eealloc.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# eealloc.m4 serial 2 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -16,7 +16,7 @@ _AC_FUNC_MALLOC_IF( [gl_cv_func_malloc_0_nonnull=1], [gl_cv_func_malloc_0_nonnull=0]) - AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], $gl_cv_func_malloc_0_nonnull, + AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], [If malloc(0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) @@ -26,7 +26,7 @@ _AC_FUNC_REALLOC_IF( [gl_cv_func_realloc_0_nonnull=1], [gl_cv_func_realloc_0_nonnull=0]) - AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], $gl_cv_func_realloc_0_nonnull, + AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/environ.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/environ.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/environ.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/environ.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,36 @@ +# environ.m4 serial 3 +dnl Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN_ONCE([gl_ENVIRON], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl Persuade glibc to declare environ. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + gt_CHECK_VAR_DECL([#include ], environ) + if test $gt_cv_var_environ_declaration != yes; then + HAVE_DECL_ENVIRON=0 + fi +]) + +# Check if a variable is properly declared. +# gt_CHECK_VAR_DECL(includes,variable) +AC_DEFUN([gt_CHECK_VAR_DECL], +[ + define([gt_cv_var], [gt_cv_var_]$2[_declaration]) + AC_MSG_CHECKING([if $2 is properly declared]) + AC_CACHE_VAL([gt_cv_var], [ + AC_TRY_COMPILE([$1 + extern struct { int foo; } $2;], + [$2.foo = 1;], + gt_cv_var=no, + gt_cv_var=yes)]) + AC_MSG_RESULT([$gt_cv_var]) + if test $gt_cv_var = yes; then + AC_DEFINE([HAVE_]translit($2, [a-z], [A-Z])[_DECL], 1, + [Define if you have the declaration of $2.]) + fi + undefine([gt_cv_var]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/errno_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/errno_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/errno_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/errno_h.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,115 @@ +# errno_h.m4 serial 6 +dnl Copyright (C) 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ + AC_EGREP_CPP([booboo],[ +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif + ], + [gl_cv_header_errno_h_complete=no], + [gl_cv_header_errno_h_complete=yes]) + ]) + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else + gl_CHECK_NEXT_HEADERS([errno.h]) + ERRNO_H='errno.h' + fi + AC_SUBST([ERRNO_H]) + gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) + gl_REPLACE_ERRNO_VALUE([ENOLINK]) + gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) +]) + +# Assuming $1 = EOVERFLOW. +# The EOVERFLOW errno value ought to be defined in , according to +# POSIX. But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and +# some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. +# Check for the value of EOVERFLOW. +# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. +AC_DEFUN([gl_REPLACE_ERRNO_VALUE], +[ + if test -n "$ERRNO_H"; then + AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ + AC_EGREP_CPP([yes],[ +#include +#ifdef ]$1[ +yes +#endif + ], + [gl_cv_header_errno_h_]$1[=yes], + [gl_cv_header_errno_h_]$1[=no]) + if test $gl_cv_header_errno_h_]$1[ = no; then + AC_EGREP_CPP([yes],[ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ]$1[ +yes +#endif + ], [gl_cv_header_errno_h_]$1[=hidden]) + if test $gl_cv_header_errno_h_]$1[ = hidden; then + dnl The macro exists but is hidden. + dnl Define it to the same value. + AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +]) + fi + fi + ]) + case $gl_cv_header_errno_h_]$1[ in + yes | no) + ]$1[_HIDDEN=0; ]$1[_VALUE= + ;; + *) + ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1[" + ;; + esac + AC_SUBST($1[_HIDDEN]) + AC_SUBST($1[_VALUE]) + fi +]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/error.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/error.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/error.m4 2007-01-27 03:21:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/error.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,7 +1,6 @@ -#serial 11 +#serial 12 -# Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2004 Free Software -# Foundation, Inc. +# Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -18,5 +17,6 @@ AC_DEFUN([gl_PREREQ_ERROR], [ AC_REQUIRE([AC_FUNC_STRERROR_R]) + AC_REQUIRE([AC_C_INLINE]) : ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/extensions.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/extensions.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/extensions.m4 2007-09-30 03:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/extensions.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,7 +1,7 @@ -# serial 5 -*- Autoconf -*- +# serial 9 -*- Autoconf -*- # Enable extensions on systems that normally disable them. -# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -12,6 +12,20 @@ # enough in this area it's likely we'll need to redefine # AC_USE_SYSTEM_EXTENSIONS for quite some time. +# If autoconf reports a warning +# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS +# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS +# the fix is +# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked +# but always AC_REQUIREd, +# 2) to ensure that for each occurrence of +# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +# or +# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) +# the corresponding gnulib module description has 'extensions' among +# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS +# invocation occurs in gl_EARLY, not in gl_INIT. + # AC_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, @@ -20,10 +34,12 @@ # AC_DEFINE. The goal here is to define all known feature-enabling # macros, then, if reports of conflicts are made, disable macros that # cause problems on some platforms (such as __EXTENSIONS__). -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], +AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl AC_BEFORE([$0], [AC_RUN_IFELSE])dnl + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) if test "$MINIX" = yes; then AC_DEFINE([_POSIX_SOURCE], [1], @@ -36,6 +52,16 @@ [Define to 1 if on MINIX.]) fi + dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, + dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already + dnl provided. + case "$host_os" in + hpux*) + AC_DEFINE([_XOPEN_SOURCE], [500], + [Define to 500 only on HP-UX.]) + ;; + esac + AH_VERBATIM([__EXTENSIONS__], [/* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE @@ -61,9 +87,9 @@ AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], [ac_cv_safe_to_define___extensions__], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([ -# define __EXTENSIONS__ 1 - AC_INCLUDES_DEFAULT])], + [AC_LANG_PROGRAM([[ +# define __EXTENSIONS__ 1 + ]AC_INCLUDES_DEFAULT])], [ac_cv_safe_to_define___extensions__=yes], [ac_cv_safe_to_define___extensions__=no])]) test $ac_cv_safe_to_define___extensions__ = yes && @@ -78,5 +104,15 @@ # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. -AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) +AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], +[ + dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. + dnl gnulib does not need it. But if it gets required by third-party macros + dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a + dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". + dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, + dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. + AC_REQUIRE([AC_GNU_SOURCE]) + + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/getopt.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/getopt.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/getopt.m4 2007-01-27 03:21:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/getopt.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,82 +1,305 @@ -# getopt.m4 serial 13 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# getopt.m4 serial 28 +dnl Copyright (C) 2002-2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -# The getopt module assume you want GNU getopt, with getopt_long etc, -# rather than vanilla POSIX getopt. This means your code should -# always include for the getopt prototypes. +# Request a POSIX compliant getopt function. +AC_DEFUN([gl_FUNC_GETOPT_POSIX], +[ + m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX]) + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + gl_GETOPT_IFELSE([ + gl_REPLACE_GETOPT + ], + []) +]) + +# Request a POSIX compliant getopt function with GNU extensions (such as +# options with optional arguments) and the functions getopt_long, +# getopt_long_only. +AC_DEFUN([gl_FUNC_GETOPT_GNU], +[ + m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU]) + + AC_REQUIRE([gl_FUNC_GETOPT_POSIX]) +]) -AC_DEFUN([gl_GETOPT_SUBSTITUTE], +# Request the gnulib implementation of the getopt functions unconditionally. +# argp.m4 uses this. +AC_DEFUN([gl_REPLACE_GETOPT], [ + dnl Arrange for getopt.h to be created. + gl_GETOPT_SUBSTITUTE_HEADER + dnl Arrange for unistd.h to include getopt.h. + GNULIB_UNISTD_H_GETOPT=1 + dnl Arrange to compile the getopt implementation. AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) - gl_GETOPT_SUBSTITUTE_HEADER gl_PREREQ_GETOPT ]) -AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], +# emacs' configure.in uses this. +AC_DEFUN([gl_GETOPT_IFELSE], [ - GETOPT_H=getopt.h - AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], - [Define to rpl_ if the getopt replacement functions and variables - should be used.]) - AC_SUBST([GETOPT_H]) + AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) + AS_IF([test -n "$gl_replace_getopt"], [$1], [$2]) ]) +# Determine whether to replace the entire getopt facility. AC_DEFUN([gl_GETOPT_CHECK_HEADERS], [ - if test -z "$GETOPT_H"; then - AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + + dnl Persuade Solaris to declare optarg, optind, opterr, optopt. + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + gl_CHECK_NEXT_HEADERS([getopt.h]) + AC_CHECK_HEADERS_ONCE([getopt.h]) + if test $ac_cv_header_getopt_h = yes; then + HAVE_GETOPT_H=1 + else + HAVE_GETOPT_H=0 + fi + AC_SUBST([HAVE_GETOPT_H]) + + gl_replace_getopt= + + dnl Test whether is available. + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes]) fi - if test -z "$GETOPT_H"; then - AC_CHECK_FUNCS([getopt_long_only], [], [GETOPT_H=getopt.h]) + dnl Test whether the function getopt_long is available. + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes]) fi - dnl BSD getopt_long uses an incompatible method to reset option processing, - dnl and (as of 2004-10-15) mishandles optional option-arguments. - if test -z "$GETOPT_H"; then - AC_CHECK_DECL([optreset], [GETOPT_H=getopt.h], [], [#include ]) - fi - - dnl Solaris 10 getopt doesn't handle `+' as a leading character in an - dnl option string (as of 2005-05-05). - if test -z "$GETOPT_H"; then - AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_gnu_getopt], - [AC_RUN_IFELSE( - [AC_LANG_PROGRAM([#include ], - [[ - char *myargv[3]; - myargv[0] = "conftest"; - myargv[1] = "-+"; - myargv[2] = 0; - return getopt (2, myargv, "+a") != '?'; - ]])], - [gl_cv_func_gnu_getopt=yes], - [gl_cv_func_gnu_getopt=no], - [dnl cross compiling - pessimistically guess based on decls - dnl Solaris 10 getopt doesn't handle `+' as a leading character in an - dnl option string (as of 2005-05-05). - AC_CHECK_DECL([getopt_clip], - [gl_cv_func_gnu_getopt=no], [gl_cv_func_gnu_getopt=yes], - [#include ])])]) - if test "$gl_cv_func_gnu_getopt" = "no"; then - GETOPT_H=getopt.h + dnl BSD getopt_long uses an incompatible method to reset option processing. + dnl Existence of the variable, in and of itself, is not a reason to replace + dnl getopt, but knowledge of the variable is needed to determine how to + dnl reset and whether a reset reparses the environment. + dnl Solaris supports neither optreset nor optind=0, but keeps no state that + dnl needs a reset beyond setting optind=1; detect Solaris by getopt_clip. + if test -z "$gl_replace_getopt"; then + AC_CHECK_DECLS([optreset], [], + [AC_CHECK_DECLS([getopt_clip], [], [], + [[#include ]]) + ], + [[#include ]]) + fi + + dnl mingw's getopt (in libmingwex.a) does weird things when the options + dnl strings starts with '+' and it's not the first call. Some internal state + dnl is left over from earlier calls, and neither setting optind = 0 nor + dnl setting optreset = 1 get rid of this internal state. + dnl POSIX is silent on optind vs. optreset, so we allow either behavior. + dnl POSIX 2008 does not specify leading '+' behavior, but see + dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on + dnl the next version of POSIX. For now, we only guarantee leading '+' + dnl behavior with getopt-gnu. + if test -z "$gl_replace_getopt"; then + AC_CACHE_CHECK([whether getopt is POSIX compatible], + [gl_cv_func_getopt_posix], + [ + dnl This test fails on mingw and succeeds on all other platforms. + AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include +#include +#include + +#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP +# define OPTIND_MIN 0 +#else +# define OPTIND_MIN 1 +#endif + +int +main () +{ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "ab"); + if (!(c == 'a')) + return 1; + c = getopt (argc, argv, "ab"); + if (!(c == -1)) + return 2; + if (!(optind == 2)) + return 3; + } + /* Some internal state exists at this point. */ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "+abp:q:"); + if (!(c == -1)) + return 4; + if (!(strcmp (argv[0], "program") == 0)) + return 5; + if (!(strcmp (argv[1], "donald") == 0)) + return 6; + if (!(strcmp (argv[2], "-p") == 0)) + return 7; + if (!(strcmp (argv[3], "billy") == 0)) + return 8; + if (!(strcmp (argv[4], "duck") == 0)) + return 9; + if (!(strcmp (argv[5], "-a") == 0)) + return 10; + if (!(strcmp (argv[6], "bar") == 0)) + return 11; + if (!(optind == 1)) + return 12; + } + /* Detect MacOS 10.5 bug. */ + { + char *argv[3] = { "program", "-ab", NULL }; + optind = OPTIND_MIN; + opterr = 0; + if (getopt (2, argv, "ab:") != 'a') + return 13; + if (getopt (2, argv, "ab:") != '?') + return 14; + if (optopt != 'b') + return 15; + if (optind != 2) + return 16; + } + + return 0; +} +]])], + [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no], + [case "$host_os" in + mingw*) gl_cv_func_getopt_posix="guessing no";; + darwin*) gl_cv_func_getopt_posix="guessing no";; + *) gl_cv_func_getopt_posix="guessing yes";; + esac + ]) + ]) + case "$gl_cv_func_getopt_posix" in + *no) gl_replace_getopt=yes ;; + esac + fi + + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu], + [# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the + # optstring is necessary for programs like m4 that have POSIX-mandated + # semantics for supporting options interspersed with files. + # Also, since getopt_long is a GNU extension, we require optind=0. + gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes} + POSIXLY_CORRECT=1 + export POSIXLY_CORRECT + AC_RUN_IFELSE( + [AC_LANG_PROGRAM([[#include + #include + #include + ]], [[ + /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, + and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, + OSF/1 5.1, Solaris 10. */ + { + char *myargv[3]; + myargv[0] = "conftest"; + myargv[1] = "-+"; + myargv[2] = 0; + opterr = 0; + if (getopt (2, myargv, "+a") != '?') + return 1; + } + /* This code succeeds on glibc 2.8, mingw, + and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, + IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ + { + char *argv[] = { "program", "-p", "foo", "bar", NULL }; + + optind = 1; + if (getopt (4, argv, "p::") != 'p') + return 2; + if (optarg != NULL) + return 3; + if (getopt (4, argv, "p::") != -1) + return 4; + if (optind != 2) + return 5; + } + /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ + { + char *argv[] = { "program", "foo", "-p", NULL }; + optind = 0; + if (getopt (3, argv, "-p") != 1) + return 6; + if (getopt (3, argv, "-p") != 'p') + return 7; + } + /* This code fails on glibc 2.11. */ + { + char *argv[] = { "program", "-b", "-a", NULL }; + optind = opterr = 0; + if (getopt (3, argv, "+:a:b") != 'b') + return 8; + if (getopt (3, argv, "+:a:b") != ':') + return 9; + } + return 0; + ]])], + [gl_cv_func_getopt_gnu=yes], + [gl_cv_func_getopt_gnu=no], + [dnl Cross compiling. Guess based on host and declarations. + case $host_os:$ac_cv_have_decl_optreset in + *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; + *:yes) gl_cv_func_getopt_gnu=no;; + *) gl_cv_func_getopt_gnu=yes;; + esac + ]) + if test "$gl_had_POSIXLY_CORRECT" != yes; then + AS_UNSET([POSIXLY_CORRECT]) + fi + ]) + if test "$gl_cv_func_getopt_gnu" = "no"; then + gl_replace_getopt=yes fi fi ]) -AC_DEFUN([gl_GETOPT_IFELSE], +# emacs' configure.in uses this. +AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], [ - AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) - AS_IF([test -n "$GETOPT_H"], [$1], [$2]) + GETOPT_H=getopt.h + AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], + [Define to rpl_ if the getopt replacement functions and variables + should be used.]) + AC_SUBST([GETOPT_H]) ]) -AC_DEFUN([gl_GETOPT], [gl_GETOPT_IFELSE([gl_GETOPT_SUBSTITUTE])]) - # Prerequisites of lib/getopt*. +# emacs' configure.in uses this. AC_DEFUN([gl_PREREQ_GETOPT], [ AC_CHECK_DECLS_ONCE([getenv]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/gnulib-cache.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-cache.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/gnulib-cache.m4 2007-11-06 23:29:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-cache.m4 2010-06-06 20:09:03.000000000 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -15,11 +15,34 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error exit getopt gettext-h gettext-runtime-misc java javacomp-script memmove progname propername relocatable-prog stdbool strtoul unlocked-io xalloc +# gnulib-tool --import --dir=gettext-runtime --local-dir=gnulib-local --lib=libgrt --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --no-libtool --macro-prefix=gl atexit basename closeout csharpcomp-script error getopt-gnu gettext-h gettext-runtime-misc havelib java javacomp-script memmove progname propername relocatable-prog sigpipe stdbool stdio stdlib strtoul unlocked-io xalloc # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([../gnulib-local]) -gl_MODULES([atexit basename closeout csharpcomp-script error exit getopt gettext-h gettext-runtime-misc java javacomp-script memmove progname propername relocatable-prog stdbool strtoul unlocked-io xalloc]) +gl_MODULES([ + atexit + basename + closeout + csharpcomp-script + error + getopt-gnu + gettext-h + gettext-runtime-misc + havelib + java + javacomp-script + memmove + progname + propername + relocatable-prog + sigpipe + stdbool + stdio + stdlib + strtoul + unlocked-io + xalloc +]) gl_AVOID([]) gl_SOURCE_BASE([gnulib-lib]) gl_M4_BASE([gnulib-m4]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/gnulib-common.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-common.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/gnulib-common.m4 2007-10-26 00:50:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-common.m4 2010-05-09 01:36:17.000000000 +0000 @@ -1,22 +1,134 @@ -# gnulib-common.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# gnulib-common.m4 serial 20 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +# gl_COMMON +# is expanded unconditionally through gnulib-tool magic. +AC_DEFUN([gl_COMMON], [ + dnl Use AC_REQUIRE here, so that the code is expanded once only. + AC_REQUIRE([gl_00GNULIB]) + AC_REQUIRE([gl_COMMON_BODY]) +]) +AC_DEFUN([gl_COMMON_BODY], [ + AH_VERBATIM([isoc99_inline], +[/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif]) + AH_VERBATIM([unused_parameter], +[/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED +]) + dnl Preparation for running test programs: + dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not + dnl to /dev/tty, so they can be redirected to log files. Such diagnostics + dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N. + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ +]) + +# gl_MODULE_INDICATOR_CONDITION +# expands to a C preprocessor expression that evaluates to 1 or 0, depending +# whether a gnulib module that has been requested shall be considered present +# or not. +AC_DEFUN([gl_MODULE_INDICATOR_CONDITION], [1]) + +# gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) +# sets the shell variable that indicates the presence of the given module to +# a C preprocessor expression that will evaluate to 1. +AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], +[ + GNULIB_[]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION +]) + # gl_MODULE_INDICATOR([modulename]) -# defines a C macro indicating the presence of the given module. +# defines a C macro indicating the presence of the given module +# in a location where it can be used. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 0 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ AC_DEFUN([gl_MODULE_INDICATOR], [ - AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], - [Define to 1 when using the gnulib module ]$1[.]) + AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), + [gl_MODULE_INDICATOR_CONDITION], + [Define to a C preprocessor expression that evaluates to 1 or 0, + depending whether the gnulib module $1 shall be considered present.]) ]) -# AC_PROG_MKDIR_P -# is a backport of autoconf-2.60's AC_PROG_MKDIR_P. +# gl_MODULE_INDICATOR_FOR_TESTS([modulename]) +# defines a C macro indicating the presence of the given module +# in lib or tests. This is useful to determine whether the module +# should be tested. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ +AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], +[ + AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], + [Define to 1 when the gnulib module $1 should be tested.]) +]) + +# m4_foreach_w +# is a backport of autoconf-2.59c's m4_foreach_w. # Remove this macro when we can assume autoconf >= 2.60. -m4_ifdef([AC_PROG_MKDIR_P], [], [ - AC_DEFUN([AC_PROG_MKDIR_P], +m4_ifndef([m4_foreach_w], + [m4_define([m4_foreach_w], + [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])]) + +# AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH]) +# ---------------------------------------------------- +# Backport of autoconf-2.63b's macro. +# Remove this macro when we can assume autoconf >= 2.64. +m4_ifndef([AS_VAR_IF], +[m4_define([AS_VAR_IF], +[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) + +# AC_PROG_MKDIR_P +# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix +# for interoperability with automake-1.9.6 from autoconf-2.62. +# Remove this macro when we can assume autoconf >= 2.62 or +# autoconf >= 2.60 && automake >= 1.10. +m4_ifdef([AC_PROG_MKDIR_P], [ + dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed. + m4_define([AC_PROG_MKDIR_P], + m4_defn([AC_PROG_MKDIR_P])[ + AC_SUBST([MKDIR_P])])], [ + dnl For autoconf < 2.60: Backport of AC_PROG_MKDIR_P. + AC_DEFUN_ONCE([AC_PROG_MKDIR_P], [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake MKDIR_P='$(mkdir_p)' AC_SUBST([MKDIR_P])])]) @@ -26,20 +138,21 @@ # so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ # works. # This definition can be removed once autoconf >= 2.62 can be assumed. +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[ AC_DEFUN([AC_C_RESTRICT], -[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, +[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], [ac_cv_c_restrict=no # The order here caters to the fact that C++ does not require restrict. for ac_kw in __restrict __restrict__ _Restrict restrict; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[typedef int * int_ptr; - int foo (int_ptr $ac_kw ip) { - return ip[0]; + int foo (int_ptr $ac_kw ip) { + return ip[0]; }]], [[int s[1]; - int * $ac_kw t = s; - t[0] = 0; - return foo(t)]])], + int * $ac_kw t = s; + t[0] = 0; + return foo(t)]])], [ac_cv_c_restrict=$ac_kw]) test "$ac_cv_c_restrict" != no && break done @@ -63,3 +176,26 @@ *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; esac ]) +]) + +# gl_BIGENDIAN +# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. +# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some +# macros invoke AC_C_BIGENDIAN with arguments. +AC_DEFUN([gl_BIGENDIAN], +[ + AC_C_BIGENDIAN +]) + +# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) +# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not +# output a spurious "(cached)" mark in the midst of other configure output. +# This macro should be used instead of AC_CACHE_VAL when it is not surrounded +# by an AC_MSG_CHECKING/AC_MSG_RESULT pair. +AC_DEFUN([gl_CACHE_VAL_SILENT], +[ + saved_as_echo_n="$as_echo_n" + as_echo_n=':' + AC_CACHE_VAL([$1], [$2]) + as_echo_n="$saved_as_echo_n" +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/gnulib-comp.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/gnulib-comp.m4 2007-10-31 12:35:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/gnulib-comp.m4 2010-06-03 21:35:23.000000000 +0000 @@ -1,5 +1,5 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -26,90 +26,320 @@ m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) AC_REQUIRE([AM_PROG_CC_C_O]) - AC_REQUIRE([AC_GNU_SOURCE]) + # Code from module alloca-opt: + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module atexit: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module canonicalize-lgpl: + # Code from module closeout: + # Code from module configmake: + # Code from module csharpcomp-script: + # Code from module double-slash-root: + # Code from module environ: + # Code from module errno: + # Code from module error: + # Code from module extensions: AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + # Code from module fwriteerror: + # Code from module getopt-gnu: + # Code from module getopt-posix: + # Code from module gettext-h: + # Code from module gettext-runtime-misc: + # Code from module gperf: + # Code from module havelib: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv_open: + # Code from module include_next: + # Code from module intprops: + # Code from module java: + # Code from module javacomp-script: + # Code from module localcharset: + # Code from module lstat: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module mbchar: + # Code from module mbiter: + # Code from module mbrtowc: + # Code from module mbsinit: + # Code from module mbslen: + # Code from module mbsstr: + # Code from module mbuiter: + # Code from module memchr: + # Code from module memmove: + # Code from module multiarch: + # Code from module pathmax: + # Code from module progname: + # Code from module propername: + # Code from module readlink: + # Code from module relocatable-prog: + # Code from module relocatable-prog-wrapper: + # Code from module signal: + # Code from module sigpipe: + # Code from module sigprocmask: + # Code from module ssize_t: + # Code from module stat: + # Code from module stdbool: + # Code from module stddef: + # Code from module stdint: + # Code from module stdio: + # Code from module stdlib: + # Code from module streq: + # Code from module strerror: + # Code from module striconv: + # Code from module string: + # Code from module strnlen: + # Code from module strnlen1: + # Code from module strtol: + # Code from module strtoul: + # Code from module sys_stat: + # Code from module time: + # Code from module trim: + # Code from module unistd: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module unlocked-io: + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wctype: + # Code from module wcwidth: + # Code from module xalloc: + # Code from module xreadlink: + # Code from module xstriconv: ]) # This macro should be invoked from gettext-runtime/configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gl_INIT], [ - m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) - m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) - m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) gl_cond_libtool=false gl_libdeps= gl_ltlibdeps= + gl_m4_base='gnulib-m4' + m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) + m4_pushdef([gl_LIBSOURCES_LIST], []) + m4_pushdef([gl_LIBSOURCES_DIR], []) + gl_COMMON gl_source_base='gnulib-lib' + # Code from module alloca-opt: gl_FUNC_ALLOCA + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module atexit: gl_FUNC_ATEXIT + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module canonicalize-lgpl: gl_CANONICALIZE_LGPL + gl_MODULE_INDICATOR([canonicalize-lgpl]) + gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) + gl_STDLIB_MODULE_INDICATOR([realpath]) + # Code from module closeout: + # Code from module configmake: + # Code from module csharpcomp-script: AC_REQUIRE([gt_CSHARPCOMP]) AC_CONFIG_FILES([csharpcomp.sh:../build-aux/csharpcomp.sh.in]) + # Code from module double-slash-root: + gl_DOUBLE_SLASH_ROOT + # Code from module environ: + gl_ENVIRON + gl_UNISTD_MODULE_INDICATOR([environ]) + # Code from module errno: + gl_HEADER_ERRNO_H + # Code from module error: gl_ERROR m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=error:3:c-format]) - AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) + AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) + # Code from module extensions: + # Code from module fwriteerror: gl_MODULE_INDICATOR([fwriteerror]) - gl_GETOPT + # Code from module getopt-gnu: + gl_FUNC_GETOPT_GNU + gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) + # Code from module getopt-posix: + gl_FUNC_GETOPT_POSIX + # Code from module gettext-h: AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) + # Code from module gettext-runtime-misc: + # Code from module gperf: + # Code from module havelib: + # Code from module iconv: AM_ICONV + # Code from module iconv-h: gl_ICONV_H + # Code from module iconv_open: gl_FUNC_ICONV_OPEN + # Code from module include_next: + # Code from module intprops: + # Code from module java: gt_JAVA_CHOICE + # Code from module javacomp-script: # You need to invoke gt_JAVACOMP yourself, possibly with arguments. AC_CONFIG_FILES([javacomp.sh:../build-aux/javacomp.sh.in]) + # Code from module localcharset: gl_LOCALCHARSET + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" + AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) + # Code from module lstat: + gl_FUNC_LSTAT + gl_SYS_STAT_MODULE_INDICATOR([lstat]) + # Code from module malloc-posix: gl_FUNC_MALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([malloc-posix]) + # Code from module malloca: gl_MALLOCA + # Code from module mbchar: gl_MBCHAR + # Code from module mbiter: + gl_MBITER + # Code from module mbrtowc: + gl_FUNC_MBRTOWC + gl_WCHAR_MODULE_INDICATOR([mbrtowc]) + # Code from module mbsinit: + gl_FUNC_MBSINIT + gl_WCHAR_MODULE_INDICATOR([mbsinit]) + # Code from module mbslen: gl_FUNC_MBSLEN gl_STRING_MODULE_INDICATOR([mbslen]) - gl_FUNC_MBSSTR + # Code from module mbsstr: gl_STRING_MODULE_INDICATOR([mbsstr]) + # Code from module mbuiter: gl_MBITER + # Code from module memchr: gl_FUNC_MEMCHR + gl_STRING_MODULE_INDICATOR([memchr]) + # Code from module memmove: gl_FUNC_MEMMOVE + # Code from module multiarch: + gl_MULTIARCH + # Code from module pathmax: gl_PATHMAX + # Code from module progname: + AC_CHECK_DECLS([program_invocation_name], [], [], [#include ]) + AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include ]) + # Code from module propername: + m4_ifdef([AM_XGETTEXT_OPTION], + [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"']) + AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])]) + # Code from module readlink: gl_FUNC_READLINK gl_UNISTD_MODULE_INDICATOR([readlink]) + # Code from module relocatable-prog: gl_RELOCATABLE([$gl_source_base]) + # Code from module relocatable-prog-wrapper: gl_FUNC_READLINK_SEPARATE gl_CANONICALIZE_LGPL_SEPARATE gl_MALLOCA gl_RELOCATABLE_LIBRARY_SEPARATE gl_FUNC_SETENV_SEPARATE gl_FUNC_STRERROR_SEPARATE + # Code from module signal: + gl_SIGNAL_H + # Code from module sigpipe: + gl_SIGNAL_SIGPIPE + dnl Define the C macro GNULIB_SIGPIPE to 1. + gl_MODULE_INDICATOR([sigpipe]) + dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1. + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + GNULIB_SIGNAL_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1. + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + GNULIB_STDIO_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1. + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: + gl_SIGNALBLOCKING + gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) + # Code from module ssize_t: gt_TYPE_SSIZE_T + # Code from module stat: + gl_FUNC_STAT + gl_SYS_STAT_MODULE_INDICATOR([stat]) + # Code from module stdbool: AM_STDBOOL_H + # Code from module stddef: + gl_STDDEF_H + # Code from module stdint: gl_STDINT_H + # Code from module stdio: + gl_STDIO_H + # Code from module stdlib: gl_STDLIB_H - gl_FUNC_STRDUP - gl_STRING_MODULE_INDICATOR([strdup]) + # Code from module streq: + # Code from module strerror: gl_FUNC_STRERROR gl_STRING_MODULE_INDICATOR([strerror]) + # Code from module striconv: if test $gl_cond_libtool = false; then gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" gl_libdeps="$gl_libdeps $LIBICONV" fi + # Code from module string: gl_HEADER_STRING_H + # Code from module strnlen: gl_FUNC_STRNLEN gl_STRING_MODULE_INDICATOR([strnlen]) + # Code from module strnlen1: + # Code from module strtol: gl_FUNC_STRTOL + # Code from module strtoul: gl_FUNC_STRTOUL + # Code from module sys_stat: + gl_HEADER_SYS_STAT_H + AC_PROG_MKDIR_P + # Code from module time: + gl_HEADER_TIME_H + # Code from module trim: + # Code from module unistd: gl_UNISTD_H + # Code from module unitypes: + gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) + # Code from module uniwidth/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) + # Code from module uniwidth/width: + gl_LIBUNISTRING_MODULE([0.9], [uniwidth/width]) + # Code from module unlocked-io: gl_FUNC_GLIBC_UNLOCKED_IO + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: gl_WCHAR_H + # Code from module wctype: gl_WCTYPE_H + # Code from module wcwidth: gl_FUNC_WCWIDTH gl_WCHAR_MODULE_INDICATOR([wcwidth]) - LIBGRT_LIBDEPS="$gl_libdeps" - AC_SUBST([LIBGRT_LIBDEPS]) - LIBGRT_LTLIBDEPS="$gl_ltlibdeps" - AC_SUBST([LIBGRT_LTLIBDEPS]) + # Code from module xalloc: + # Code from module xreadlink: + # Code from module xstriconv: + # End of code from modules + m4_ifval(gl_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || + for gl_file in ]gl_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gl_LIBSOURCES_DIR]) + m4_popdef([gl_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) @@ -119,7 +349,7 @@ if test -n "$gl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" done @@ -127,6 +357,56 @@ AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) + m4_pushdef([gltests_LIBSOURCES_LIST], []) + m4_pushdef([gltests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='tests' +changequote(,)dnl + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([gltests_WITNESS]) + gl_module_indicator_condition=$gltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(gltests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || + for gl_file in ]gltests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gltests_LIBSOURCES_DIR]) + m4_popdef([gltests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) + AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) + ]) + LIBGRT_LIBDEPS="$gl_libdeps" + AC_SUBST([LIBGRT_LIBDEPS]) + LIBGRT_LTLIBDEPS="$gl_ltlibdeps" + AC_SUBST([LIBGRT_LTLIBDEPS]) ]) # Like AC_LIBOBJ, except that the module name goes @@ -144,15 +424,41 @@ ]) # Like AC_LIBSOURCES, except the directory where the source file is -# expected is derived from the gnulib-tool parametrization, +# expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ - m4_syscmd([test -r gnulib-lib/]_gl_NAME[ || test ! -d gnulib-lib])dnl - m4_if(m4_sysval, [0], [], - [AC_FATAL([missing gnulib-lib/]_gl_NAME)]) + m4_define([gl_LIBSOURCES_DIR], [gnulib-lib]) + m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_LIBOBJ], [ + AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl + gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gltests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gltests_LIBSOURCES_DIR], [tests]) + m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) @@ -160,13 +466,15 @@ # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ + build-aux/arg-nonnull.h + build-aux/c++defs.h build-aux/config.libpath build-aux/config.rpath build-aux/csharpcomp.sh.in build-aux/install-reloc build-aux/javacomp.sh.in - build-aux/link-warning.h build-aux/reloc-ldflags + build-aux/warn-on-use.h doc/relocatable.texi lib/alloca.in.h lib/areadlink.c @@ -179,13 +487,11 @@ lib/c-strcase.h lib/c-strcasecmp.c lib/c-strncasecmp.c - lib/c-strstr.c - lib/c-strstr.h lib/canonicalize-lgpl.c - lib/canonicalize.h lib/closeout.c lib/closeout.h lib/config.charset + lib/errno.in.h lib/error.c lib/error.h lib/fwriteerror.c @@ -200,20 +506,26 @@ lib/iconv_open-hpux.gperf lib/iconv_open-irix.gperf lib/iconv_open-osf.gperf + lib/iconv_open-solaris.gperf lib/iconv_open.c lib/intprops.h lib/localcharset.c lib/localcharset.h + lib/lstat.c lib/malloc.c lib/malloca.c lib/malloca.h lib/malloca.valgrind lib/mbchar.c lib/mbchar.h + lib/mbiter.h + lib/mbrtowc.c + lib/mbsinit.c lib/mbslen.c lib/mbsstr.c lib/mbuiter.h lib/memchr.c + lib/memchr.valgrind lib/memmove.c lib/pathmax.h lib/progname.c @@ -228,11 +540,16 @@ lib/relocatable.h lib/relocwrapper.c lib/setenv.c - lib/setenv.h + lib/signal.in.h + lib/sigprocmask.c + lib/stat.c lib/stdbool.in.h + lib/stddef.in.h lib/stdint.in.h + lib/stdio-write.c + lib/stdio.in.h lib/stdlib.in.h - lib/strdup.c + lib/str-kmp.h lib/streq.h lib/strerror.c lib/striconv.c @@ -243,12 +560,17 @@ lib/strnlen1.h lib/strtol.c lib/strtoul.c + lib/sys_stat.in.h + lib/time.in.h + lib/trim.c + lib/trim.h lib/unistd.in.h - lib/unitypes.h - lib/uniwidth.h + lib/unitypes.in.h + lib/uniwidth.in.h lib/uniwidth/cjk.h lib/uniwidth/width.c lib/unlocked-io.h + lib/verify.h lib/wchar.in.h lib/wctype.in.h lib/wcwidth.c @@ -259,16 +581,22 @@ lib/xstrdup.c lib/xstriconv.c lib/xstriconv.h - m4/absolute-header.m4 + m4/00gnulib.m4 m4/alloca.m4 + m4/asm-underscore.m4 m4/atexit.m4 - m4/canonicalize-lgpl.m4 + m4/canonicalize.m4 m4/codeset.m4 m4/csharp.m4 m4/csharpcomp.m4 + m4/dos.m4 + m4/double-slash-root.m4 m4/eealloc.m4 + m4/environ.m4 + m4/errno_h.m4 m4/error.m4 m4/extensions.m4 + m4/fcntl-o.m4 m4/getopt.m4 m4/glibc21.m4 m4/gnulib-common.m4 @@ -281,38 +609,54 @@ m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 + m4/libunistring-base.m4 m4/localcharset.m4 + m4/locale-fr.m4 + m4/locale-ja.m4 + m4/locale-zh.m4 m4/longlong.m4 + m4/lstat.m4 m4/malloc.m4 m4/malloca.m4 m4/mbchar.m4 m4/mbiter.m4 m4/mbrtowc.m4 + m4/mbsinit.m4 m4/mbslen.m4 - m4/mbsstr.m4 + m4/mbstate_t.m4 m4/memchr.m4 m4/memmove.m4 - m4/onceonly_2_57.m4 + m4/mmap-anon.m4 + m4/multiarch.m4 + m4/onceonly.m4 m4/pathmax.m4 m4/readlink.m4 m4/relocatable-lib.m4 m4/relocatable.m4 m4/setenv.m4 + m4/signal_h.m4 + m4/signalblocking.m4 + m4/sigpipe.m4 m4/ssize_t.m4 + m4/stat.m4 m4/stdbool.m4 + m4/stddef_h.m4 m4/stdint.m4 + m4/stdio_h.m4 m4/stdlib_h.m4 - m4/strdup.m4 m4/strerror.m4 m4/string_h.m4 m4/strnlen.m4 m4/strtol.m4 m4/strtoul.m4 + m4/sys_stat_h.m4 + m4/time_h.m4 m4/unistd_h.m4 m4/unlocked-io.m4 - m4/wchar.m4 + m4/warn-on-use.m4 + m4/wchar_h.m4 m4/wchar_t.m4 - m4/wctype.m4 + m4/wctype_h.m4 m4/wcwidth.m4 m4/wint_t.m4 ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/iconv_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/iconv_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/iconv_h.m4 2007-10-17 22:34:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/iconv_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -1,5 +1,5 @@ -# iconv_h.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# iconv_h.m4 serial 6 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,16 +7,24 @@ AC_DEFUN([gl_ICONV_H], [ AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + + dnl Execute this unconditionally, because ICONV_H may be set by other + dnl modules, after this code is executed. gl_CHECK_NEXT_HEADERS([iconv.h]) - ICONV_H= - AC_SUBST([ICONV_H]) +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_ICONV_H], +[ + AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + ICONV_H='iconv.h' ]) AC_DEFUN([gl_ICONV_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_ICONV_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) AC_DEFUN([gl_ICONV_H_DEFAULTS], @@ -25,4 +33,5 @@ REPLACE_ICONV=0; AC_SUBST([REPLACE_ICONV]) REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN]) REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF]) + ICONV_H=''; AC_SUBST([ICONV_H]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/iconv_open.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/iconv_open.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/iconv_open.m4 2007-10-17 22:34:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/iconv_open.m4 2010-03-28 18:31:27.000000000 +0000 @@ -1,5 +1,5 @@ -# iconv_open.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# iconv_open.m4 serial 7 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,6 +10,8 @@ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test "$am_cv_func_iconv" = yes; then + dnl Provide the override, for the sake of the C++ aliases. + gl_REPLACE_ICONV_H dnl Test whether iconv_open accepts standardized encoding names. dnl We know that GNU libiconv and GNU libc do. AC_EGREP_CPP([gnu_iconv], [ @@ -21,10 +23,11 @@ if test $gl_func_iconv_gnu = no; then iconv_flavor= case "$host_os" in - aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; - irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; - hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; - osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; + irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; + hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; + osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; esac if test -n "$iconv_flavor"; then AC_DEFINE_UNQUOTED([ICONV_FLAVOR], [$iconv_flavor], @@ -38,9 +41,9 @@ AC_DEFUN([gl_REPLACE_ICONV_OPEN], [ + gl_REPLACE_ICONV_H REPLACE_ICONV_OPEN=1 AC_LIBOBJ([iconv_open]) - ICONV_H='iconv.h' ]) AC_DEFUN([gl_FUNC_ICONV_OPEN_UTF], @@ -89,8 +92,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -116,8 +119,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -143,8 +146,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -170,8 +173,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -198,8 +201,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -226,7 +229,7 @@ ]) if test $gl_cv_func_iconv_supports_utf = no; then REPLACE_ICONV_UTF=1 - AC_DEFINE([REPLACE_ICONV_UTF], 1, + AC_DEFINE([REPLACE_ICONV_UTF], [1], [Define if the iconv() functions are enhanced to handle the UTF-{16,32}{BE,LE} encodings.]) REPLACE_ICONV=1 gl_REPLACE_ICONV_OPEN diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/include_next.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/include_next.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/include_next.m4 2007-09-01 13:11:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/include_next.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,19 +1,47 @@ -# include_next.m4 serial 4 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# include_next.m4 serial 14 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert and Derek Price. +dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER. +dnl +dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to +dnl 'include' otherwise. +dnl +dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler +dnl supports it in the special case that it is the first include directive in +dnl the given file, or to 'include' otherwise. +dnl +dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next, +dnl so as to avoid GCC warnings when the gcc option -pedantic is used. +dnl '#pragma GCC system_header' has the same effect as if the file was found +dnl through the include search path specified with '-isystem' options (as +dnl opposed to the search path specified with '-I' options). Namely, gcc +dnl does not warn about some things, and on some systems (Solaris and Interix) +dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side +dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead +dnl of plain '__STDC__'. + AC_DEFUN([gl_INCLUDE_NEXT], [ AC_LANG_PREPROC_REQUIRE() AC_CACHE_CHECK([whether the preprocessor supports include_next], [gl_cv_have_include_next], - [rm -rf conftestd1 conftestd2 - mkdir conftestd1 conftestd2 - cat < conftestd1/conftest.h + [rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on + dnl AIX 6.1 support include_next when used as first preprocessor directive + dnl in a file, but not when preceded by another include directive. Check + dnl for this bug by including . + dnl Additionally, with this same compiler, include_next is a no-op when + dnl used in a header file that was included by specifying its absolute + dnl file name. Despite these two bugs, include_next is used in the + dnl compiler's . By virtue of the second bug, we need to use + dnl include_next as well in this case. + cat < conftestd1a/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 @@ -22,32 +50,53 @@ #error "include_next doesn't work" #endif EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" AC_COMPILE_IFELSE([#include ], [gl_cv_have_include_next=yes], - [gl_cv_have_include_next=no]) - CPPFLAGS="$save_CPPFLAGS" - rm -rf conftestd1 conftestd2 + [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + AC_COMPILE_IFELSE([#include ], + [gl_cv_have_include_next=buggy], + [gl_cv_have_include_next=no]) + ]) + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 ]) + PRAGMA_SYSTEM_HEADER= if test $gl_cv_have_include_next = yes; then - - dnl FIXME: Remove HAVE_INCLUDE_NEXT and update everything that uses it - dnl to use @INCLUDE_NEXT@ instead. - AC_DEFINE([HAVE_INCLUDE_NEXT], 1, - [Define if your compiler supports the #include_next directive.]) - INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi else - INCLUDE_NEXT=include + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi fi AC_SUBST([INCLUDE_NEXT]) + AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE]) + AC_SUBST([PRAGMA_SYSTEM_HEADER]) ]) # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...) @@ -55,53 +104,84 @@ # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be # ''; otherwise define it to be # '"///usr/include/foo.h"', or whatever other absolute file name is suitable. +# Also, if #include_next works as first preprocessing directive in a file, +# define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be ''; otherwise define it to +# be +# '"///usr/include/foo.h"', or whatever other absolute file name is suitable. # That way, a header file with the following line: -# #@INCLUDE_NEXT@ @NEXT_FOO_H@ +# #@INCLUDE_NEXT@ @NEXT_FOO_H@ +# or +# #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@ # behaves (after sed substitution) as if it contained -# #include_next +# #include_next # even if the compiler does not support include_next. # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use `""', not `<>', so that the /// cannot be confused with a C99 comment. +# Note: This macro assumes that the header file is not empty after +# preprocessing, i.e. it does not only define preprocessor macros but also +# provides some type/enum definitions or function/variable declarations. AC_DEFUN([gl_CHECK_NEXT_HEADERS], [ AC_REQUIRE([gl_INCLUDE_NEXT]) + AC_REQUIRE([AC_CANONICAL_HOST]) AC_CHECK_HEADERS_ONCE([$1]) - AC_FOREACH([gl_HEADER_NAME], [$1], + m4_foreach_w([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_next_header], - [gl_cv_next_]m4_quote(m4_defn([gl_HEADER_NAME]))) + [gl_cv_next_]m4_defn([gl_HEADER_NAME])) if test $gl_cv_have_include_next = yes; then AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) else AC_CACHE_CHECK( - [absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>], - m4_quote(m4_defn([gl_next_header])), - [AS_VAR_PUSHDEF([gl_header_exists], - [ac_cv_header_]m4_quote(m4_defn([gl_HEADER_NAME]))) - if test AS_VAR_GET(gl_header_exists) = yes; then - AC_LANG_CONFTEST( - [AC_LANG_SOURCE( - [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] - )]) - dnl eval is necessary to expand ac_cpp. - dnl Ultrix and Pyramid sh refuse to redirect output of eval, - dnl so use subshell. - AS_VAR_SET([gl_next_header], - ['"'`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | - sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{ - s#.*"\(.*/]m4_quote(m4_defn([gl_HEADER_NAME]))[\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"']) - else - AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) - fi - AS_VAR_POPDEF([gl_header_exists])]) + [absolute name of <]m4_defn([gl_HEADER_NAME])[>], + m4_defn([gl_next_header]), + [AS_VAR_PUSHDEF([gl_header_exists], + [ac_cv_header_]m4_defn([gl_HEADER_NAME])) + if test AS_VAR_GET(gl_header_exists) = yes; then + AC_LANG_CONFTEST( + [AC_LANG_SOURCE( + [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] + )]) + dnl AIX "xlc -E" and "cc -E" omit #line directives for header files + dnl that contain only a #include of other header files and no + dnl non-comment tokens of their own. This leads to a failure to + dnl detect the absolute name of , , + dnl and others. The workaround is to force preservation of comments + dnl through option -C. This ensures all necessary #line directives + dnl are present. GCC supports option -C as well. + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + dnl eval is necessary to expand gl_absname_cpp. + dnl Ultrix and Pyramid sh refuse to redirect output of eval, + dnl so use subshell. + AS_VAR_SET([gl_next_header], + ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | + sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ + s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"']) + else + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) + fi + AS_VAR_POPDEF([gl_header_exists])]) fi AC_SUBST( - AS_TR_CPP([NEXT_]m4_quote(m4_defn([gl_HEADER_NAME]))), + AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), [AS_VAR_GET([gl_next_header])]) + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'gl_HEADER_NAME'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) + fi + AC_SUBST( + AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), + [$gl_next_as_first_directive]) AS_VAR_POPDEF([gl_next_header])]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/javacomp.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/javacomp.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/javacomp.m4 2007-10-28 22:52:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/javacomp.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,6 @@ -# javacomp.m4 serial 10 -dnl Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. +# javacomp.m4 serial 12 +dnl Copyright (C) 2001-2003, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -58,7 +59,7 @@ AC_DEFUN([gt_JAVACOMP], [ ifelse([$2], [], [AC_REQUIRE([gt_JAVAEXEC])], []) - AC_EGREP_CPP(yes, [ + AC_EGREP_CPP([yes], [ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ yes #endif @@ -88,9 +89,9 @@ dnl and the long tr command in opposite direction. dnl Finally move the position corresponding to \055 to the last position, dnl to work around a coreutils-5.x bug. - echo 'xyvw!$!H!C,!)!2+!3!4*!5,!3!6,!7!8)!9)!:"!(LdhdmM"!$EFV"!%Ni_a"!1PdhaQngYakUXYfa"!%gXdh"!8EWPeXoXJfXhcJTmkdhcKFV"!,TinkZaOdfa"!2ZihbmalmoakIeXoX.!*!+)!;.!!?)!@.!A!B"!-Zihbmalmoak"!2eXoXJfXhcJRYeaZm"!2eXoXJfXhcJTplmag"!$inm"!7PeXoXJdiJSkdhmTmkaXgK"!-camSkijakmp"!DEPeXoXJfXhcJTmkdhcKFPeXoXJfXhcJTmkdhcK"!5eXoXJdiJSkdhmTmkaXg"!)jkdhmfh"!7EPeXoXJfXhcJTmkdhcKFV!C!(!)!!!!!#!"!*!+!"!,!!!?!"!"!!!&Gt!"q!!!"!-!!!(!"!!!"!+!.!/!"!,!!!E!#!"!!!.r!#4$u!%s!&q!!!"!-!!!,!#!!!$!-!%!"!0!!!#!1' \ + echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \ | tr -d '\012\015' \ - | tr '!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzH' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ + | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ > conftestver.class target_version=`{ unset JAVA_HOME @@ -404,9 +405,9 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_GCJ_IN_PATH, gcj, yes) - AC_CHECK_PROG(HAVE_JAVAC_IN_PATH, javac, yes) - AC_CHECK_PROG(HAVE_JIKES_IN_PATH, jikes, yes) + AC_CHECK_PROG([HAVE_GCJ_IN_PATH], [gcj], [yes]) + AC_CHECK_PROG([HAVE_JAVAC_IN_PATH], [javac], [yes]) + AC_CHECK_PROG([HAVE_JIKES_IN_PATH], [jikes], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -626,11 +627,11 @@ ac_result="no" fi AC_MSG_RESULT([$ac_result]) - AC_SUBST(CONF_JAVAC) - AC_SUBST(CLASSPATH) - AC_SUBST(CLASSPATH_SEPARATOR) - AC_SUBST(HAVE_JAVAC_ENVVAR) - AC_SUBST(HAVE_GCJ_C) - AC_SUBST(HAVE_JAVAC) - AC_SUBST(HAVE_JIKES) + AC_SUBST([CONF_JAVAC]) + AC_SUBST([CLASSPATH]) + AC_SUBST([CLASSPATH_SEPARATOR]) + AC_SUBST([HAVE_JAVAC_ENVVAR]) + AC_SUBST([HAVE_GCJ_C]) + AC_SUBST([HAVE_JAVAC]) + AC_SUBST([HAVE_JIKES]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/lib-ld.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-ld.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/lib-ld.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-ld.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,110 @@ +# lib-ld.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL([acl_cv_path_LD], +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT([$LD]) +else + AC_MSG_RESULT([no]) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/lib-link.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-link.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/lib-link.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-link.m4 2010-04-25 09:20:43.000000000 +0000 @@ -0,0 +1,774 @@ +# lib-link.m4 serial 21 (gettext-0.18) +dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ([2.54]) + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + popdef([NAME]) + popdef([Name]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. The missing-message +dnl defaults to 'no' and may contain additional hints for the user. +dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} +dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, + dnl because these -l options might require -L options that are present in + dnl LIBS. -l options benefit only from the -L options listed before it. + dnl Otherwise, add it to the front of LIBS, because it may be a static + dnl library that depends on another static library that is present in LIBS. + dnl Static libraries benefit only from the static libraries listed after + dnl it. + case " $LIB[]NAME" in + *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; + *) LIBS="$LIB[]NAME $LIBS" ;; + esac + AC_TRY_LINK([$3], [$4], + [ac_cv_lib[]Name=yes], + [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + LIB[]NAME[]_PREFIX= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + popdef([NAME]) + popdef([Name]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl acl_libext, +dnl acl_shlibext, +dnl acl_hardcode_libdir_flag_spec, +dnl acl_hardcode_libdir_separator, +dnl acl_hardcode_direct, +dnl acl_hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE([rpath], + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_FROMPACKAGE(name, package) +dnl declares that libname comes from the given package. The configure file +dnl will then not have a --with-libname-prefix option but a +dnl --with-package-prefix option. Several libraries can come from the same +dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar +dnl macro call that searches for libname. +AC_DEFUN([AC_LIB_FROMPACKAGE], +[ + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_frompackage_]NAME, [$2]) + popdef([NAME]) + pushdef([PACK],[$2]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_libsinpackage_]PACKUP, + m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) + popdef([PACKUP]) + popdef([PACK]) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) + dnl Autoconf >= 2.61 supports dots in --with options. + pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_ARG_WITH(P_A_C_K[-prefix], +[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib + --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + LIB[]NAME[]_PREFIX= + dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been + dnl computed. So it has to be reset here. + HAVE_LIB[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + dnl The same code as in the loop below: + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$acl_hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi + popdef([P_A_C_K]) + popdef([PACKLIBS]) + popdef([PACKUP]) + popdef([PACK]) + popdef([NAME]) +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +dnl For those cases where a variable contains several -L and -l options +dnl referring to unknown libraries and directories, this macro determines the +dnl necessary additional linker options for the runtime path. +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, +dnl otherwise linking without libtool is assumed. +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], +[ + AC_REQUIRE([AC_LIB_RPATH]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + $1= + if test "$enable_rpath" != no; then + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode directories into the resulting + dnl binary. + rpathdirs= + next= + for opt in $2; do + if test -n "$next"; then + dir="$next" + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= + else + case $opt in + -L) next=yes ;; + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= ;; + *) next= ;; + esac + fi + done + if test "X$rpathdirs" != "X"; then + if test -n ""$3""; then + dnl libtool is used for linking. Use -R options. + for dir in $rpathdirs; do + $1="${$1}${$1:+ }-R$dir" + done + else + dnl The linker is used for linking directly. + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user + dnl must pass all path elements in one option. + alldirs= + for dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="$flag" + else + dnl The -rpath options are cumulative. + for dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="${$1}${$1:+ }$flag" + done + fi + fi + fi + fi + fi + AC_SUBST([$1]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/lib-prefix.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-prefix.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/lib-prefix.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/lib-prefix.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,224 @@ +# lib-prefix.m4 serial 7 (gettext-0.18) +dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_PREPARE_MULTILIB creates +dnl - a variable acl_libdirstem, containing the basename of the libdir, either +dnl "lib" or "lib64" or "lib/64", +dnl - a variable acl_libdirstem2, as a secondary possible value for +dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or +dnl "lib/amd64". +AC_DEFUN([AC_LIB_PREPARE_MULTILIB], +[ + dnl There is no formal standard regarding lib and lib64. + dnl On glibc systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine + dnl the compiler's default mode by looking at the compiler's library search + dnl path. If at least one of its elements ends in /lib64 or points to a + dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. + dnl Otherwise we use the default, namely "lib". + dnl On Solaris systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or + dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. + AC_REQUIRE([AC_CANONICAL_HOST]) + acl_libdirstem=lib + acl_libdirstem2= + case "$host_os" in + solaris*) + dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment + dnl . + dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." + dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the + dnl symlink is missing, so we set acl_libdirstem2 too. + AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], + [AC_EGREP_CPP([sixtyfour bits], [ +#ifdef _LP64 +sixtyfour bits +#endif + ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) + ]) + if test $gl_cv_solaris_64bit = yes; then + acl_libdirstem=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/libunistring-base.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/libunistring-base.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/libunistring-base.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/libunistring-base.m4 2010-06-04 10:01:46.000000000 +0000 @@ -0,0 +1,141 @@ +# libunistring-base.m4 serial 5 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paolo Bonzini and Bruno Haible. + +dnl gl_LIBUNISTRING_MODULE([VERSION], [Module]) +dnl Declares that the source files of Module should be compiled, unless we +dnl are linking with libunistring and its version is >= the given VERSION. +dnl Defines an automake conditional LIBUNISTRING_COMPILE_$MODULE that is +dnl true if the source files of Module should be compiled. +dnl This macro is to be used for public libunistring API, not for +dnl undocumented API. +dnl +dnl You have to bump the VERSION argument to the next projected version +dnl number each time you make a change that affects the behaviour of the +dnl functions defined in Module (even if the sources of Module itself do not +dnl change). + +AC_DEFUN([gl_LIBUNISTRING_MODULE], +[ + AC_REQUIRE([gl_LIBUNISTRING_LIB_PREPARE]) + dnl Use the variables HAVE_LIBUNISTRING, LIBUNISTRING_VERSION from + dnl gl_LIBUNISTRING_CORE if that macro has been run. + AM_CONDITIONAL(AS_TR_CPP([LIBUNISTRING_COMPILE_$2]), + [gl_LIBUNISTRING_VERSION_CMP([$1])]) +]) + +dnl gl_LIBUNISTRING_LIBHEADER([VERSION], [HeaderFile]) +dnl Declares that HeaderFile should be created, unless we are linking +dnl with libunistring and its version is >= the given VERSION. +dnl HeaderFile should be relative to the lib directory and end in '.h'. +dnl Prepares for substituting LIBUNISTRING_HEADERFILE (to HeaderFile or empty). +dnl +dnl When we are linking with the already installed libunistring and its version +dnl is < VERSION, we create HeaderFile here, because we may compile functions +dnl (via gl_LIBUNISTRING_MODULE above) that are not contained in the installed +dnl version. +dnl When we are linking with the already installed libunistring and its version +dnl is > VERSION, we don't create HeaderFile here: it could cause compilation +dnl errors in other libunistring header files if some types are missing. +dnl +dnl You have to bump the VERSION argument to the next projected version +dnl number each time you make a non-comment change to the HeaderFile. + +AC_DEFUN([gl_LIBUNISTRING_LIBHEADER], +[ + AC_REQUIRE([gl_LIBUNISTRING_LIB_PREPARE]) + dnl Use the variables HAVE_LIBUNISTRING, LIBUNISTRING_VERSION from + dnl gl_LIBUNISTRING_CORE if that macro has been run. + if gl_LIBUNISTRING_VERSION_CMP([$1]); then + LIBUNISTRING_[]AS_TR_CPP([$2])='$2' + else + LIBUNISTRING_[]AS_TR_CPP([$2])= + fi + AC_SUBST([LIBUNISTRING_]AS_TR_CPP([$2])) +]) + +dnl Miscellaneous preparations/initializations. + +AC_DEFUN([gl_LIBUNISTRING_LIB_PREPARE], +[ + dnl Ensure that HAVE_LIBUNISTRING is fully determined at this point. + m4_ifdef([gl_LIBUNISTRING], [AC_REQUIRE([gl_LIBUNISTRING])]) + + AC_REQUIRE([AC_PROG_AWK]) + +dnl Sed expressions to extract the parts of a version number. +changequote(,) +gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +changequote([,]) + + if test "$HAVE_LIBUNISTRING" = yes; then + LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` + LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` + LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` + fi +]) + +dnl gl_LIBUNISTRING_VERSION_CMP([VERSION]) +dnl Expands to a shell statement that evaluates to true if LIBUNISTRING_VERSION +dnl is less than the VERSION argument. +AC_DEFUN([gl_LIBUNISTRING_VERSION_CMP], +[ { test "$HAVE_LIBUNISTRING" != yes \ + || { + dnl AS_LITERAL_IF exists and works fine since autoconf-2.59 at least. + AS_LITERAL_IF([$1], + [dnl This is the optimized variant, that assumes the argument is a literal: + m4_pushdef([requested_version_major], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^\([0-9]*\).*], [\1]), [])]) + m4_pushdef([requested_version_minor], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^[0-9]*[.]\([0-9]*\).*], [\1]), [$1])]) + m4_pushdef([requested_version_subminor], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^[0-9]*[.][0-9]*[.]\([0-9]*\).*], [\1]), [$1])]) + test $LIBUNISTRING_VERSION_MAJOR -lt requested_version_major \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq requested_version_major \ + && { test $LIBUNISTRING_VERSION_MINOR -lt requested_version_minor \ + || { test $LIBUNISTRING_VERSION_MINOR -eq requested_version_minor \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt requested_version_subminor + } + } + } + m4_popdef([requested_version_subminor]) + m4_popdef([requested_version_minor]) + m4_popdef([requested_version_major]) + ], + [dnl This is the unoptimized variant: + requested_version_major=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_major"` + requested_version_minor=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_minor"` + requested_version_subminor=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_subminor"` + test $LIBUNISTRING_VERSION_MAJOR -lt $requested_version_major \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq $requested_version_major \ + && { test $LIBUNISTRING_VERSION_MINOR -lt $requested_version_minor \ + || { test $LIBUNISTRING_VERSION_MINOR -eq $requested_version_minor \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt $requested_version_subminor + } + } + } + ]) + } + }]) + +dnl gl_LIBUNISTRING_ARG_OR_ZERO([ARG], [ORIG]) expands to ARG if it is not the +dnl same as ORIG, otherwise to 0. +m4_define([gl_LIBUNISTRING_ARG_OR_ZERO], [m4_if([$1], [$2], [0], [$1])]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/localcharset.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/localcharset.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/localcharset.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/localcharset.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# localcharset.m4 serial 5 -dnl Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc. +# localcharset.m4 serial 7 +dnl Copyright (C) 2002, 2004, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,7 +8,8 @@ [ dnl Prerequisites of lib/localcharset.c. AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CHECK_DECLS_ONCE(getc_unlocked) + AC_REQUIRE([gl_FCNTL_O_FLAGS]) + AC_CHECK_DECLS_ONCE([getc_unlocked]) dnl Prerequisites of the lib/Makefile.am snippet. AC_REQUIRE([AC_CANONICAL_HOST]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/locale-fr.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-fr.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/locale-fr.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-fr.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,185 @@ +# locale-fr.m4 serial 11 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Determine the name of a french locale with traditional encoding. +AC_DEFUN([gt_LOCALE_FR], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AM_LANGINFO_CODESET]) + AC_CACHE_CHECK([for a traditional french locale], [gt_cv_locale_fr], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +changequote(,)dnl +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only + one byte long. This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 + else + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 + else + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr + else + # None found. + gt_cv_locale_fr=none + fi + fi + fi + fi + fi + fi + rm -fr conftest* + ]) + LOCALE_FR=$gt_cv_locale_fr + AC_SUBST([LOCALE_FR]) +]) + +dnl Determine the name of a french locale with UTF-8 encoding. +AC_DEFUN([gt_LOCALE_FR_UTF8], +[ + AC_REQUIRE([AM_LANGINFO_CODESET]) + AC_CACHE_CHECK([for a french Unicode locale], [gt_cv_locale_fr_utf8], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +changequote(,)dnl +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi + fi + fi + rm -fr conftest* + ]) + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 + AC_SUBST([LOCALE_FR_UTF8]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/locale-ja.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-ja.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/locale-ja.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-ja.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,107 @@ +# locale-ja.m4 serial 7 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Determine the name of a japanese locale with EUC-JP encoding. +AC_DEFUN([gt_LOCALE_JA], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AM_LANGINFO_CODESET]) + AC_CACHE_CHECK([for a traditional japanese locale], [gt_cv_locale_ja], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +changequote(,)dnl +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + return 0; +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi + fi + fi + fi + fi + rm -fr conftest* + ]) + LOCALE_JA=$gt_cv_locale_ja + AC_SUBST([LOCALE_JA]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/locale-zh.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-zh.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/locale-zh.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/locale-zh.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,92 @@ +# locale-zh.m4 serial 6 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Determine the name of a chinese locale with GB18030 encoding. +AC_DEFUN([gt_LOCALE_ZH_CN], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AM_LANGINFO_CODESET]) + AC_CACHE_CHECK([for a transitional chinese locale], [gt_cv_locale_zh_CN], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +changequote(,)dnl +#include +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; + return 0; +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* + ]) + LOCALE_ZH_CN=$gt_cv_locale_zh_CN + AC_SUBST([LOCALE_ZH_CN]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/lstat.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/lstat.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/lstat.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/lstat.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,28 @@ +# serial 20 + +# Copyright (C) 1997-2001, 2003-2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +dnl From Jim Meyering. + +AC_DEFUN([gl_FUNC_LSTAT], +[ + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + dnl If lstat does not exist, the replacement does + dnl "#define lstat stat", and lstat.c is a no-op. + AC_CHECK_FUNCS_ONCE([lstat]) + if test $ac_cv_func_lstat = yes; then + AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) + if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then + dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]). + REPLACE_LSTAT=1 + fi + # Prerequisites of lib/lstat.c. + AC_REQUIRE([AC_C_INLINE]) + else + HAVE_LSTAT=0 + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/malloca.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/malloca.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/malloca.m4 2007-06-19 00:25:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/malloca.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,6 @@ # malloca.m4 serial 1 -dnl Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/malloc.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/malloc.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/malloc.m4 2007-09-30 03:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/malloc.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# malloc.m4 serial 8 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# malloc.m4 serial 9 +dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) if test $gl_cv_func_malloc_posix = yes; then HAVE_MALLOC_POSIX=1 - AC_DEFINE([HAVE_MALLOC_POSIX], 1, + AC_DEFINE([HAVE_MALLOC_POSIX], [1], [Define if the 'malloc' function is POSIX compliant.]) else AC_LIBOBJ([malloc]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbchar.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbchar.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbchar.m4 2007-09-30 03:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbchar.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# mbchar.m4 serial 7 -dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. +# mbchar.m4 serial 8 +dnl Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,4 +10,5 @@ AC_DEFUN([gl_MBCHAR], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_C_INLINE]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbiter.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbiter.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbiter.m4 2007-03-04 00:33:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbiter.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# mbiter.m4 serial 2 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# mbiter.m4 serial 5 +dnl Copyright (C) 2005, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,9 +9,10 @@ AC_DEFUN([gl_MBITER], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) dnl The following line is that so the user can test HAVE_MBRTOWC before - dnl #include "mbiter.h" or "mbuiter.h". - AC_REQUIRE([gl_FUNC_MBRTOWC]) + dnl #include "mbiter.h" or "mbuiter.h". It can be removed in 2010. + AC_REQUIRE([AC_FUNC_MBRTOWC]) : ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbrtowc.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbrtowc.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbrtowc.m4 2007-03-04 00:33:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbrtowc.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,15 +1,368 @@ -# mbrtowc.m4 serial 8 -dnl Copyright (C) 2001-2002, 2004-2005 Free Software Foundation, Inc. +# mbrtowc.m4 serial 17 +dnl Copyright (C) 2001-2002, 2004-2005, 2008-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +AC_DEFUN([gl_FUNC_MBRTOWC], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([mbrtowc]) + if test $ac_cv_func_mbrtowc = no; then + HAVE_MBRTOWC=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBRTOWC=1 + else + gl_MBRTOWC_NULL_ARG + gl_MBRTOWC_RETVAL + gl_MBRTOWC_NUL_RETVAL + case "$gl_cv_func_mbrtowc_null_arg" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_NULL_ARG_BUG], [1], + [Define if the mbrtowc function has the NULL string argument bug.]) + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_retval" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_RETVAL_BUG], [1], + [Define if the mbrtowc function returns a wrong return value.]) + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_nul_retval" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_NUL_RETVAL_BUG], [1], + [Define if the mbrtowc function does not return 0 for a NUL character.]) + REPLACE_MBRTOWC=1 + ;; + esac + fi + fi + if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([mbrtowc]) + gl_PREREQ_MBRTOWC + fi +]) + +dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that +dnl redefines the semantics of the given mbstate_t type. +dnl Result is REPLACE_MBSTATE_T. +dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to +dnl avoid inconsistencies. + +AC_DEFUN([gl_MBSTATE_T_BROKEN], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + AC_CHECK_FUNCS_ONCE([mbsinit]) + AC_CHECK_FUNCS_ONCE([mbrtowc]) + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + gl_MBRTOWC_INCOMPLETE_STATE + gl_MBRTOWC_SANITYCHECK + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + gl_REPLACE_WCHAR_H + fi +]) + +dnl Test whether mbrtowc puts the state into non-initial state when parsing an +dnl incomplete multibyte character. +dnl Result is gl_cv_func_mbrtowc_incomplete_state. + +AC_DEFUN([gl_MBRTOWC_INCOMPLETE_STATE], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc handles incomplete characters], + [gl_cv_func_mbrtowc_incomplete_state], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_JA != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_incomplete_state=yes], + [gl_cv_func_mbrtowc_incomplete_state=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc works not worse than mbtowc. +dnl Result is gl_cv_func_mbrtowc_sanitycheck. + +AC_DEFUN([gl_MBRTOWC_SANITYCHECK], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc works as well as mbtowc], + [gl_cv_func_mbrtowc_sanitycheck], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_sanitycheck=yes], + [gl_cv_func_mbrtowc_sanitycheck=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc supports a NULL string argument correctly. +dnl Result is gl_cv_func_mbrtowc_null_arg. + +AC_DEFUN([gl_MBRTOWC_NULL_ARG], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument], + [gl_cv_func_mbrtowc_null_arg], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on OSF/1. + osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR_UTF8 != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + mbstate_t state; + wchar_t wc; + int ret; + + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + mbrtowc (&wc, NULL, 5, &state); + /* Check that wc was not modified. */ + if (wc != (wchar_t) 0xBADFACE) + return 1; + } + return 0; +}], [gl_cv_func_mbrtowc_null_arg=yes], [gl_cv_func_mbrtowc_null_arg=no], [:]) + fi + ]) +]) + +dnl Test whether mbrtowc, when parsing the end of a multibyte character, +dnl correctly returns the number of bytes that were needed to complete the +dnl character (not the total number of bytes of the multibyte character). +dnl Result is gl_cv_func_mbrtowc_retval. + +AC_DEFUN([gl_MBRTOWC_RETVAL], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc has a correct return value], + [gl_cv_func_mbrtowc_retval], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_retval="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + /* This fails on Solaris. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 1) + return 1; + } + } + /* This fails on HP-UX 11.11. */ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 2) + return 1; + } + } + return 0; +}], + [gl_cv_func_mbrtowc_retval=yes], + [gl_cv_func_mbrtowc_retval=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc, when parsing a NUL character, correctly returns 0. +dnl Result is gl_cv_func_mbrtowc_nul_retval. + +AC_DEFUN([gl_MBRTOWC_NUL_RETVAL], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc returns 0 when parsing a NUL character], + [gl_cv_func_mbrtowc_nul_retval], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on Solaris 8 and 9. + solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + /* This fails on Solaris 8 and 9. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, "", 1, &state) != 0) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_nul_retval=yes], + [gl_cv_func_mbrtowc_nul_retval=no], + [:]) + fi + ]) +]) + +# Prerequisites of lib/mbrtowc.c. +AC_DEFUN([gl_PREREQ_MBRTOWC], [ + : +]) + + dnl From Paul Eggert -dnl This file can be removed, and gl_FUNC_MBRTOWC replaced with -dnl AC_FUNC_MBRTOWC, when autoconf 2.60 can be assumed everywhere. +dnl This override of an autoconf macro can be removed when autoconf 2.60 or +dnl newer can be assumed everywhere. -AC_DEFUN([gl_FUNC_MBRTOWC], +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.60]),[-1],[ +AC_DEFUN([AC_FUNC_MBRTOWC], [ dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60. AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared], @@ -25,7 +378,8 @@ gl_cv_func_mbrtowc=yes, gl_cv_func_mbrtowc=no)]) if test $gl_cv_func_mbrtowc = yes; then - AC_DEFINE([HAVE_MBRTOWC], 1, + AC_DEFINE([HAVE_MBRTOWC], [1], [Define to 1 if mbrtowc and mbstate_t are properly declared.]) fi ]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbsinit.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbsinit.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbsinit.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbsinit.m4 2010-04-25 09:20:43.000000000 +0000 @@ -0,0 +1,32 @@ +# mbsinit.m4 serial 4 +dnl Copyright (C) 2008, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_MBSINIT], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([mbsinit]) + if test $ac_cv_func_mbsinit = no; then + HAVE_MBSINIT=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSINIT=1 + fi + fi + if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([mbsinit]) + gl_PREREQ_MBSINIT + fi +]) + +# Prerequisites of lib/mbsinit.c. +AC_DEFUN([gl_PREREQ_MBSINIT], [ + : +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbslen.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbslen.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbslen.m4 2007-03-04 00:33:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbslen.m4 2010-03-28 18:31:27.000000000 +0000 @@ -1,16 +1,16 @@ -# mbslen.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# mbslen.m4 serial 2 +dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MBSLEN], [ - gl_PREREQ_MBSLEN -]) - -# Prerequisites of lib/mbslen.c. -AC_DEFUN([gl_PREREQ_MBSLEN], [ - AC_REQUIRE([gl_FUNC_MBRTOWC]) - : + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([mbslen]) + if test $ac_cv_func_mbslen = yes; then + HAVE_MBSLEN=1 + else + HAVE_MBSLEN=0 + fi ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbsstr.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbsstr.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbsstr.m4 2007-03-04 00:33:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbsstr.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -# mbsstr.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_MBSSTR], -[ - gl_PREREQ_MBSSTR -]) - -# Prerequisites of lib/mbsstr.c. -AC_DEFUN([gl_PREREQ_MBSSTR], [ - AC_REQUIRE([gl_FUNC_MBRTOWC]) - : -]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mbstate_t.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbstate_t.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mbstate_t.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mbstate_t.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,34 @@ +# mbstate_t.m4 serial 12 +dnl Copyright (C) 2000-2002, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# From Paul Eggert. + +# BeOS 5 has but does not define mbstate_t, +# so you can't declare an object of that type. +# Check for this incompatibility with Standard C. + +# AC_TYPE_MBSTATE_T +# ----------------- +AC_DEFUN([AC_TYPE_MBSTATE_T], +[ + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl for HP-UX 11.11 + + AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [AC_INCLUDES_DEFAULT[ +# include ]], + [[mbstate_t x; return sizeof x;]])], + [ac_cv_type_mbstate_t=yes], + [ac_cv_type_mbstate_t=no])]) + if test $ac_cv_type_mbstate_t = yes; then + AC_DEFINE([HAVE_MBSTATE_T], [1], + [Define to 1 if declares mbstate_t.]) + else + AC_DEFINE([mbstate_t], [int], + [Define to a type if does not define.]) + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/memchr.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/memchr.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/memchr.m4 2007-03-04 00:33:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/memchr.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,18 +1,85 @@ -# memchr.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +# memchr.m4 serial 8 +dnl Copyright (C) 2002-2004, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_FUNC_MEMCHR], +AC_DEFUN_ONCE([gl_FUNC_MEMCHR], [ - AC_REPLACE_FUNCS(memchr) - if test $ac_cv_func_memchr = no; then + dnl Check for prerequisites for memory fence checks. + gl_FUNC_MMAP_ANON + AC_CHECK_HEADERS_ONCE([sys/mman.h]) + AC_CHECK_FUNCS_ONCE([mprotect]) + + dnl These days, we assume memchr is present. But just in case... + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([memchr]) + if test $ac_cv_func_memchr = yes; then + # Detect platform-specific bugs in some versions of glibc: + # memchr should not dereference anything with length 0 + # http://bugzilla.redhat.com/499689 + # memchr should not dereference overestimated length after a match + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 + # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 + # Assume that memchr works on platforms that lack mprotect. + AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +#include +#if HAVE_SYS_MMAN_H +# include +# include +# include +# include +# ifndef MAP_FILE +# define MAP_FILE 0 +# endif +#endif +]], [[ + char *fence = NULL; +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# if HAVE_MAP_ANONYMOUS + const int flags = MAP_ANONYMOUS | MAP_PRIVATE; + const int fd = -1; +# else /* !HAVE_MAP_ANONYMOUS */ + const int flags = MAP_FILE | MAP_PRIVATE; + int fd = open ("/dev/zero", O_RDONLY, 0666); + if (fd >= 0) +# endif + { + int pagesize = getpagesize (); + char *two_pages = + (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, + flags, fd, 0); + if (two_pages != (char *)(-1) + && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) + fence = two_pages + pagesize; + } +#endif + if (fence) + { + if (memchr (fence, 0, 0)) + return 1; + strcpy (fence - 9, "12345678"); + if (memchr (fence - 9, 0, 79) != fence - 1) + return 2; + } + return 0; +]])], [gl_cv_func_memchr_works=yes], [gl_cv_func_memchr_works=no], + [dnl Be pessimistic for now. + gl_cv_func_memchr_works="guessing no"])]) + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_MEMCHR=1 + fi + else + HAVE_MEMCHR=0 + fi + if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then + AC_LIBOBJ([memchr]) gl_PREREQ_MEMCHR fi ]) # Prerequisites of lib/memchr.c. AC_DEFUN([gl_PREREQ_MEMCHR], [ - AC_CHECK_HEADERS(bp-sym.h) + AC_CHECK_HEADERS([bp-sym.h]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/memmove.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/memmove.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/memmove.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/memmove.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,12 +1,12 @@ -# memmove.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# memmove.m4 serial 3 +dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MEMMOVE], [ - AC_REPLACE_FUNCS(memmove) + AC_REPLACE_FUNCS([memmove]) if test $ac_cv_func_memmove = no; then gl_PREREQ_MEMMOVE fi diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/mmap-anon.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/mmap-anon.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/mmap-anon.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/mmap-anon.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,59 @@ +# mmap-anon.m4 serial 8 +dnl Copyright (C) 2005, 2007, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Detect how mmap can be used to create anonymous (not file-backed) memory +# mappings. +# - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS +# and MAP_ANON exist and have the same value. +# - On HP-UX, only MAP_ANONYMOUS exists. +# - On MacOS X, FreeBSD, NetBSD, OpenBSD, only MAP_ANON exists. +# - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be +# used. + +AC_DEFUN([gl_FUNC_MMAP_ANON], +[ + dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. + AC_REQUIRE([AC_PROG_CPP]) + AC_REQUIRE([AC_PROG_EGREP]) + + dnl Persuade glibc to define MAP_ANONYMOUS. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no]) + + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + AC_MSG_CHECKING([for MAP_ANONYMOUS]) + AC_EGREP_CPP([I cant identify this map.], [ +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. +#endif +], + [gl_have_mmap_anonymous=yes]) + if test $gl_have_mmap_anonymous != yes; then + AC_EGREP_CPP([I cant identify this map.], [ +#include +#ifdef MAP_ANON + I cant identify this map. +#endif +], + [AC_DEFINE([MAP_ANONYMOUS], [MAP_ANON], + [Define to a substitute value for mmap()'s MAP_ANONYMOUS flag.]) + gl_have_mmap_anonymous=yes]) + fi + AC_MSG_RESULT([$gl_have_mmap_anonymous]) + if test $gl_have_mmap_anonymous = yes; then + AC_DEFINE([HAVE_MAP_ANONYMOUS], [1], + [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including + config.h and .]) + fi + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/multiarch.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/multiarch.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/multiarch.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/multiarch.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,65 @@ +# multiarch.m4 serial 5 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Determine whether the compiler is or may be producing universal binaries. +# +# On MacOS X 10.5 and later systems, the user can create libraries and +# executables that work on multiple system types--known as "fat" or +# "universal" binaries--by specifying multiple '-arch' options to the +# compiler but only a single '-arch' option to the preprocessor. Like +# this: +# +# ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ +# CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ +# CPP="gcc -E" CXXCPP="g++ -E" +# +# Detect this situation and set the macro AA_APPLE_UNIVERSAL_BUILD at the +# beginning of config.h and set APPLE_UNIVERSAL_BUILD accordingly. + +AC_DEFUN_ONCE([gl_MULTIARCH], +[ + dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN. + gl_cv_c_multiarch=no + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + ]])], + [ + dnl Check for potential -arch flags. It is not universal unless + dnl there are at least two -arch flags with different values. + arch= + prev= + for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do + if test -n "$prev"; then + case $word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$arch" || test "$arch" = "$word"; then + arch="$word" + else + gl_cv_c_multiarch=yes + fi + ;; + esac + prev= + else + if test "x$word" = "x-arch"; then + prev=arch + fi + fi + done + ]) + if test $gl_cv_c_multiarch = yes; then + AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1], + [Define if the compiler is building for multiple architectures of Apple platforms at once.]) + APPLE_UNIVERSAL_BUILD=1 + else + APPLE_UNIVERSAL_BUILD=0 + fi + AC_SUBST([APPLE_UNIVERSAL_BUILD]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/onceonly_2_57.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/onceonly_2_57.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/onceonly_2_57.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/onceonly_2_57.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,86 +0,0 @@ -# onceonly_2_57.m4 serial 4 -dnl Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl This file defines some "once only" variants of standard autoconf macros. -dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS -dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS -dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS -dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL -dnl The advantage is that the check for each of the headers/functions/decls -dnl will be put only once into the 'configure' file. It keeps the size of -dnl the 'configure' file down, and avoids redundant output when 'configure' -dnl is run. -dnl The drawback is that the checks cannot be conditionalized. If you write -dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi -dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to -dnl empty, and the check will be inserted before the body of the AC_DEFUNed -dnl function. - -dnl This is like onceonly.m4, except that it uses diversions to named sections -dnl DEFAULTS and INIT_PREPARE in order to check all requested headers at once, -dnl thus reducing the size of 'configure'. Works with autoconf-2.57. The -dnl size reduction is ca. 9%. - -dnl Autoconf version 2.57 or newer is recommended. -AC_PREREQ(2.57) - -# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of -# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). -AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ - : - AC_FOREACH([gl_HEADER_NAME], [$1], [ - AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, - [./-], [___])), [ - m4_divert_text([INIT_PREPARE], - [gl_header_list="$gl_header_list gl_HEADER_NAME"]) - gl_HEADERS_EXPANSION - AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), - [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.]) - ]) - AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, - [./-], [___]))) - ]) -]) -m4_define([gl_HEADERS_EXPANSION], [ - m4_divert_text([DEFAULTS], [gl_header_list=]) - AC_CHECK_HEADERS([$gl_header_list]) - m4_define([gl_HEADERS_EXPANSION], []) -]) - -# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of -# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). -AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ - : - AC_FOREACH([gl_FUNC_NAME], [$1], [ - AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ - m4_divert_text([INIT_PREPARE], - [gl_func_list="$gl_func_list gl_FUNC_NAME"]) - gl_FUNCS_EXPANSION - AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), - [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) - ]) - AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) - ]) -]) -m4_define([gl_FUNCS_EXPANSION], [ - m4_divert_text([DEFAULTS], [gl_func_list=]) - AC_CHECK_FUNCS([$gl_func_list]) - m4_define([gl_FUNCS_EXPANSION], []) -]) - -# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of -# AC_CHECK_DECLS(DECL1, DECL2, ...). -AC_DEFUN([AC_CHECK_DECLS_ONCE], [ - : - AC_FOREACH([gl_DECL_NAME], [$1], [ - AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ - AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) - ]) - AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) - ]) -]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/onceonly.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/onceonly.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/onceonly.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/onceonly.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,91 @@ +# onceonly.m4 serial 6 +dnl Copyright (C) 2002-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl This file defines some "once only" variants of standard autoconf macros. +dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS +dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS +dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS +dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL +dnl The advantage is that the check for each of the headers/functions/decls +dnl will be put only once into the 'configure' file. It keeps the size of +dnl the 'configure' file down, and avoids redundant output when 'configure' +dnl is run. +dnl The drawback is that the checks cannot be conditionalized. If you write +dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi +dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to +dnl empty, and the check will be inserted before the body of the AC_DEFUNed +dnl function. + +dnl The original code implemented AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE +dnl in terms of AC_DEFUN and AC_REQUIRE. This implementation uses diversions to +dnl named sections DEFAULTS and INIT_PREPARE in order to check all requested +dnl headers at once, thus reducing the size of 'configure'. It is known to work +dnl with autoconf 2.57..2.62 at least . The size reduction is ca. 9%. + +dnl Autoconf version 2.59 plus gnulib is required; this file is not needed +dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of +dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first +dnl argument! +AC_PREREQ([2.59]) + +# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of +# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). +AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ + : + m4_foreach_w([gl_HEADER_NAME], [$1], [ + AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___])), [ + m4_divert_text([INIT_PREPARE], + [gl_header_list="$gl_header_list gl_HEADER_NAME"]) + gl_HEADERS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), + [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.]) + ]) + AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___]))) + ]) +]) +m4_define([gl_HEADERS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_header_list=]) + AC_CHECK_HEADERS([$gl_header_list]) + m4_define([gl_HEADERS_EXPANSION], []) +]) + +# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of +# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). +AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ + : + m4_foreach_w([gl_FUNC_NAME], [$1], [ + AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ + m4_divert_text([INIT_PREPARE], + [gl_func_list="$gl_func_list gl_FUNC_NAME"]) + gl_FUNCS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), + [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) + ]) + AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) + ]) +]) +m4_define([gl_FUNCS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_func_list=]) + AC_CHECK_FUNCS([$gl_func_list]) + m4_define([gl_FUNCS_EXPANSION], []) +]) + +# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of +# AC_CHECK_DECLS(DECL1, DECL2, ...). +AC_DEFUN([AC_CHECK_DECLS_ONCE], [ + : + m4_foreach_w([gl_DECL_NAME], [$1], [ + AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ + AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) + ]) + AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) + ]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/pathmax.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/pathmax.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/pathmax.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/pathmax.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,6 @@ -# pathmax.m4 serial 6 -dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# pathmax.m4 serial 8 +dnl Copyright (C) 2002-2003, 2005-2006, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,5 +8,6 @@ AC_DEFUN([gl_PATHMAX], [ dnl Prerequisites of lib/pathmax.h. - AC_CHECK_HEADERS_ONCE(sys/param.h) + AC_CHECK_FUNCS_ONCE([pathconf]) + AC_CHECK_HEADERS_ONCE([sys/param.h]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/readlink.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/readlink.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/readlink.m4 2007-03-04 00:07:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/readlink.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# readlink.m4 serial 4 -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. +# readlink.m4 serial 9 +dnl Copyright (C) 2003, 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,8 +10,41 @@ AC_CHECK_FUNCS_ONCE([readlink]) if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 - AC_LIBOBJ(readlink) + AC_LIBOBJ([readlink]) gl_PREREQ_READLINK + else + AC_CACHE_CHECK([whether readlink signature is correct], + [gl_cv_decl_readlink_works], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + /* Cause compilation failure if original declaration has wrong type. */ + ssize_t readlink (const char *, char *, size_t);]])], + [gl_cv_decl_readlink_works=yes], [gl_cv_decl_readlink_works=no])]) + dnl Solaris 9 ignores trailing slash. + dnl FreeBSD 7.2 dereferences only one level of links with trailing slash. + AC_CACHE_CHECK([whether readlink handles trailing slash correctly], + [gl_cv_func_readlink_works], + [# We have readlink, so assume ln -s works. + ln -s conftest.no-such conftest.link + ln -s conftest.link conftest.lnk2 + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[char buf[20]; + return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;]])], + [gl_cv_func_readlink_works=yes], [gl_cv_func_readlink_works=no], + [gl_cv_func_readlink_works="guessing no"]) + rm -f conftest.link conftest.lnk2]) + if test "$gl_cv_func_readlink_works" != yes; then + AC_DEFINE([READLINK_TRAILING_SLASH_BUG], [1], [Define to 1 if readlink + fails to recognize a trailing slash.]) + REPLACE_READLINK=1 + AC_LIBOBJ([readlink]) + elif test "$gl_cv_decl_readlink_works" != yes; then + REPLACE_READLINK=1 + AC_LIBOBJ([readlink]) + fi fi ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/relocatable-lib.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/relocatable-lib.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/relocatable-lib.m4 2007-03-04 14:13:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/relocatable-lib.m4 2010-02-16 21:31:29.000000000 +0000 @@ -1,5 +1,5 @@ -# relocatable-lib.m4 serial 3 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# relocatable-lib.m4 serial 5 +dnl Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,8 +26,9 @@ AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"], [Define to the value of ${prefix}, as a string.]) if test $RELOCATABLE = yes; then - AC_DEFINE([ENABLE_RELOCATABLE], 1, - [Define to 1 if the package shall run at any location in the filesystem.]) + AC_DEFINE([ENABLE_RELOCATABLE], [1], + [Define to 1 if the package shall run at any location in the file + system.]) fi ]) @@ -42,15 +43,16 @@ AC_DEFUN([gl_RELOCATABLE_NOP], [ AC_MSG_CHECKING([whether to activate relocatable installation]) - AC_ARG_ENABLE(relocatable, - [ --enable-relocatable install a package that can be moved in the filesystem], + AC_ARG_ENABLE([relocatable], + [AS_HELP_STRING([--enable-relocatable], + [install a package that can be moved in the file system])], [if test "$enableval" != no; then RELOCATABLE=yes else RELOCATABLE=no fi ], RELOCATABLE=no) - AC_SUBST(RELOCATABLE) + AC_SUBST([RELOCATABLE]) AC_MSG_RESULT([$RELOCATABLE]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/relocatable.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/relocatable.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/relocatable.m4 2007-03-04 16:55:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/relocatable.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,5 +1,5 @@ -# relocatable.m4 serial 11 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# relocatable.m4 serial 15 +dnl Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -62,7 +62,7 @@ dnl consisting of more than one word - libtool doesn't support this. dnl So we abuse the INSTALL_PROGRAM_ENV hook, originally meant for the dnl 'install-strip' target. - INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" + INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" AC_SUBST([INSTALL_PROGRAM_ENV]) case "$ac_aux_dir" in /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; @@ -76,9 +76,15 @@ dnl RELOCATABLE_LIBRARY_PATH can be set in configure.ac. Default is empty. AC_SUBST([RELOCATABLE_LIBRARY_PATH]) + AC_SUBST([RELOCATABLE_CONFIG_H_DIR]) AC_SUBST([RELOCATABLE_SRC_DIR]) AC_SUBST([RELOCATABLE_BUILD_DIR]) + + dnl Ensure RELOCATABLE_STRIP is defined in Makefiles (at least those + dnl generated by automake), with value ':'. + RELOCATABLE_STRIP=':' + AC_SUBST([RELOCATABLE_STRIP]) ]) dnl Determine the platform dependent parameters needed to use relocatability: @@ -88,7 +94,7 @@ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library path variable], acl_cv_libpath, [ + AC_CACHE_CHECK([for shared library path variable], [acl_cv_libpath], [ LD="$LD" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh . ./conftest.sh diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/setenv.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/setenv.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/setenv.m4 2007-03-04 00:07:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/setenv.m4 2010-03-28 18:31:27.000000000 +0000 @@ -1,33 +1,58 @@ -# setenv.m4 serial 8 -dnl Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +# setenv.m4 serial 16 +dnl Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_SETENV], [ - AC_CHECK_FUNCS_ONCE([setenv]) - if test $ac_cv_func_setenv = no; then + AC_REQUIRE([gl_FUNC_SETENV_SEPARATE]) + if test $HAVE_SETENV$REPLACE_SETENV != 10; then AC_LIBOBJ([setenv]) - gl_PREREQ_SETENV fi ]) # Like gl_FUNC_SETENV, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_SETENV_SEPARATE], [ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([setenv]) + if test $ac_cv_func_setenv = no; then + HAVE_SETENV=0 + else + AC_CACHE_CHECK([whether setenv validates arguments], + [gl_cv_func_setenv_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ + #include + #include + #include + ]], [[ + if (setenv ("", "", 0) != -1) return 1; + if (errno != EINVAL) return 2; + if (setenv ("a", "=", 1) != 0) return 3; + if (strcmp (getenv ("a"), "=") != 0) return 4; + ]])], + [gl_cv_func_setenv_works=yes], [gl_cv_func_setenv_works=no], + [gl_cv_func_setenv_works="guessing no"])]) + if test "$gl_cv_func_setenv_works" != yes; then + REPLACE_SETENV=1 + AC_LIBOBJ([setenv]) + fi + fi gl_PREREQ_SETENV ]) AC_DEFUN([gl_FUNC_UNSETENV], [ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_FUNCS([unsetenv]) if test $ac_cv_func_unsetenv = no; then + HAVE_UNSETENV=0 AC_LIBOBJ([unsetenv]) gl_PREREQ_UNSETENV else - AC_CACHE_CHECK([for unsetenv() return type], gt_cv_func_unsetenv_ret, + dnl Some BSDs return void, failing to do error checking. + AC_CACHE_CHECK([for unsetenv() return type], [gt_cv_func_unsetenv_ret], [AC_TRY_COMPILE([#include extern #ifdef __cplusplus @@ -40,27 +65,31 @@ #endif ], , gt_cv_func_unsetenv_ret='int', gt_cv_func_unsetenv_ret='void')]) if test $gt_cv_func_unsetenv_ret = 'void'; then - AC_DEFINE(VOID_UNSETENV, 1, [Define if unsetenv() returns void, not int.]) + AC_DEFINE([VOID_UNSETENV], [1], [Define to 1 if unsetenv returns void + instead of int.]) + REPLACE_UNSETENV=1 + AC_LIBOBJ([unsetenv]) fi - fi -]) -# Check if a variable is properly declared. -# gt_CHECK_VAR_DECL(includes,variable) -AC_DEFUN([gt_CHECK_VAR_DECL], -[ - define([gt_cv_var], [gt_cv_var_]$2[_declaration]) - AC_MSG_CHECKING([if $2 is properly declared]) - AC_CACHE_VAL(gt_cv_var, [ - AC_TRY_COMPILE([$1 - extern struct { int foo; } $2;], - [$2.foo = 1;], - gt_cv_var=no, - gt_cv_var=yes)]) - AC_MSG_RESULT($gt_cv_var) - if test $gt_cv_var = yes; then - AC_DEFINE([HAVE_]translit($2, [a-z], [A-Z])[_DECL], 1, - [Define if you have the declaration of $2.]) + dnl Solaris 10 unsetenv does not remove all copies of a name. + AC_CACHE_CHECK([whether unsetenv works on duplicates], + [gl_cv_func_unsetenv_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ + #include + ]], [[ + char entry[] = "b=2"; + if (putenv ((char *) "a=1")) return 1; + if (putenv (entry)) return 2; + entry[0] = 'a'; + unsetenv ("a"); + if (getenv ("a")) return 3; + ]])], + [gl_cv_func_unsetenv_works=yes], [gl_cv_func_unsetenv_works=no], + [gl_cv_func_unsetenv_works="guessing no"])]) + if test "$gl_cv_func_unsetenv_works" != yes; then + REPLACE_UNSETENV=1 + AC_LIBOBJ([unsetenv]) + fi fi ]) @@ -68,15 +97,15 @@ AC_DEFUN([gl_PREREQ_SETENV], [ AC_REQUIRE([AC_FUNC_ALLOCA]) - AC_CHECK_HEADERS_ONCE(unistd.h) - AC_CHECK_HEADERS(search.h) - AC_CHECK_FUNCS(tsearch) - gt_CHECK_VAR_DECL([#include ], environ) + AC_REQUIRE([gl_ENVIRON]) + AC_CHECK_HEADERS_ONCE([unistd.h]) + AC_CHECK_HEADERS([search.h]) + AC_CHECK_FUNCS([tsearch]) ]) # Prerequisites of lib/unsetenv.c. AC_DEFUN([gl_PREREQ_UNSETENV], [ - AC_CHECK_HEADERS_ONCE(unistd.h) - gt_CHECK_VAR_DECL([#include ], environ) + AC_REQUIRE([gl_ENVIRON]) + AC_CHECK_HEADERS_ONCE([unistd.h]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/signalblocking.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/signalblocking.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/signalblocking.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/signalblocking.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,42 @@ +# signalblocking.m4 serial 10 +dnl Copyright (C) 2001-2002, 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Determine available signal blocking primitives. Three different APIs exist: +# 1) POSIX: sigemptyset, sigaddset, sigprocmask +# 2) SYSV: sighold, sigrelse +# 3) BSD: sigblock, sigsetmask +# For simplicity, here we check only for the POSIX signal blocking. +AC_DEFUN([gl_SIGNALBLOCKING], +[ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + signals_not_posix= + AC_EGREP_HEADER([sigset_t], [signal.h], , [signals_not_posix=1]) + if test -z "$signals_not_posix"; then + AC_CHECK_FUNC([sigprocmask], [gl_cv_func_sigprocmask=1]) + fi + if test -z "$gl_cv_func_sigprocmask"; then + HAVE_POSIX_SIGNALBLOCKING=0 + AC_LIBOBJ([sigprocmask]) + gl_PREREQ_SIGPROCMASK + fi +]) + +# Prerequisites of the part of lib/signal.in.h and of lib/sigprocmask.c. +AC_DEFUN([gl_PREREQ_SIGPROCMASK], +[ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + AC_CHECK_TYPES([sigset_t], + [gl_cv_type_sigset_t=yes], [gl_cv_type_sigset_t=no], + [#include +/* Mingw defines sigset_t not in , but in . */ +#include ]) + if test $gl_cv_type_sigset_t != yes; then + HAVE_SIGSET_T=0 + fi + dnl HAVE_SIGSET_T is 1 if the system lacks the sigprocmask function but has + dnl the sigset_t type. + AC_SUBST([HAVE_SIGSET_T]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/signal_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/signal_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/signal_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/signal_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,49 @@ +# signal_h.m4 serial 11 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_SIGNAL_H], +[ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + gl_CHECK_NEXT_HEADERS([signal.h]) +# AIX declares sig_atomic_t to already include volatile, and C89 compilers +# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. + AC_CHECK_TYPE([volatile sig_atomic_t], [], + [HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0], [[ +#include + ]]) + AC_REQUIRE([AC_TYPE_UID_T]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [sigaction sigaddset sigdelset sigemptyset sigfillset sigismember + sigpending sigprocmask]) +]) + +AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SIGNAL_H_DEFAULTS], +[ + GNULIB_SIGNAL_H_SIGPIPE=0; AC_SUBST([GNULIB_SIGNAL_H_SIGPIPE]) + GNULIB_SIGPROCMASK=0; AC_SUBST([GNULIB_SIGPROCMASK]) + GNULIB_SIGACTION=0; AC_SUBST([GNULIB_SIGACTION]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING]) + HAVE_SIGSET_T=1; AC_SUBST([HAVE_SIGSET_T]) + HAVE_SIGINFO_T=1; AC_SUBST([HAVE_SIGINFO_T]) + HAVE_SIGACTION=1; AC_SUBST([HAVE_SIGACTION]) + HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; + AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION]) + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; + AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/sigpipe.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/sigpipe.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/sigpipe.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/sigpipe.m4 2010-02-16 21:31:29.000000000 +0000 @@ -0,0 +1,29 @@ +# sigpipe.m4 serial 2 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Tests whether SIGPIPE is provided by . +dnl Sets gl_cv_header_signal_h_SIGPIPE. +AC_DEFUN([gl_SIGNAL_SIGPIPE], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_SIGNAL_SIGPIPE_BODY]) +]) + +AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [ + AC_EGREP_CPP([booboo],[ +#include +#if !defined SIGPIPE +booboo +#endif + ], + [gl_cv_header_signal_h_SIGPIPE=no], + [gl_cv_header_signal_h_SIGPIPE=yes]) + ]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/ssize_t.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/ssize_t.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/ssize_t.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/ssize_t.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,5 +1,5 @@ # ssize_t.m4 serial 4 (gettext-0.15) -dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stat.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stat.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stat.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stat.m4 2010-02-16 21:31:30.000000000 +0000 @@ -0,0 +1,63 @@ +# serial 4 + +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_STAT], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_REQUIRE([gl_AC_DOS]) + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([lstat]) + dnl mingw is the only known platform where stat(".") and stat("./") differ + AC_CACHE_CHECK([whether stat handles trailing slashes on directories], + [gl_cv_func_stat_dir_slash], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[struct stat st; return stat (".", &st) != stat ("./", &st);]])], + [gl_cv_func_stat_dir_slash=yes], [gl_cv_func_stat_dir_slash=no], + [case $host_os in + mingw*) gl_cv_func_stat_dir_slash="guessing no";; + *) gl_cv_func_stat_dir_slash="guessing yes";; + esac])]) + dnl Solaris 9 mistakenly succeeds on stat("file/") + dnl FreeBSD 7.2 mistakenly succeeds on stat("link-to-file/") + AC_CACHE_CHECK([whether stat handles trailing slashes on files], + [gl_cv_func_stat_file_slash], + [touch conftest.tmp + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + ln -s conftest.tmp conftest.lnk + fi + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[struct stat st; + if (!stat ("conftest.tmp/", &st)) return 1; +#if HAVE_LSTAT + if (!stat ("conftest.lnk/", &st)) return 2; +#endif + ]])], + [gl_cv_func_stat_file_slash=yes], [gl_cv_func_stat_file_slash=no], + [gl_cv_func_stat_file_slash="guessing no"]) + rm -f conftest.tmp conftest.lnk]) + case $gl_cv_func_stat_dir_slash in + *no) REPLACE_STAT=1 + AC_DEFINE([REPLACE_FUNC_STAT_DIR], [1], [Define to 1 if stat needs + help when passed a directory name with a trailing slash]);; + esac + case $gl_cv_func_stat_file_slash in + *no) REPLACE_STAT=1 + AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs + help when passed a file name with a trailing slash]);; + esac + if test $REPLACE_STAT = 1; then + AC_LIBOBJ([stat]) + dnl Prerequisites of lib/stat.c. + AC_REQUIRE([AC_C_INLINE]) + fi +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stdbool.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdbool.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stdbool.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdbool.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,6 +1,6 @@ # Check for stdbool.h that conforms to C99. -dnl Copyright (C) 2002-2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -38,78 +38,78 @@ [AC_CACHE_CHECK([for stdbool.h that conforms to C99], [ac_cv_header_stdbool_h], [AC_TRY_COMPILE( - [ - #include - #ifndef bool - "error: bool is not defined" - #endif - #ifndef false - "error: false is not defined" - #endif - #if false - "error: false is not 0" - #endif - #ifndef true - "error: true is not defined" - #endif - #if true != 1 - "error: true is not 1" - #endif - #ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" - #endif - - struct s { _Bool s: 1; _Bool t; } s; - - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; - #if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a run-time - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); - #endif - /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html - */ - _Bool q = true; - _Bool *pq = &q; - ], - [ - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); - ], - [ac_cv_header_stdbool_h=yes], - [ac_cv_header_stdbool_h=no])]) + [ + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + #if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a run-time + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); + #endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + ], + [ + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + ], + [ac_cv_header_stdbool_h=yes], + [ac_cv_header_stdbool_h=no])]) AC_CHECK_TYPES([_Bool]) if test $ac_cv_header_stdbool_h = yes; then - AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.]) + AC_DEFINE([HAVE_STDBOOL_H], [1], [Define to 1 if stdbool.h conforms to C99.]) fi]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stddef_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stddef_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stddef_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stddef_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,45 @@ +dnl A placeholder for POSIX 2008 , for platforms that have issues. +# stddef_h.m4 serial 2 +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_STDDEF_H], +[ + AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) + AC_REQUIRE([gt_TYPE_WCHAR_T]) + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions], + [gl_cv_decl_null_works], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; +]])], + [gl_cv_decl_null_works=yes], + [gl_cv_decl_null_works=no])]) + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then + gl_CHECK_NEXT_HEADERS([stddef.h]) + fi +]) + +AC_DEFUN([gl_STDDEF_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) +]) + +AC_DEFUN([gl_STDDEF_H_DEFAULTS], +[ + dnl Assume proper GNU behavior unless another module says otherwise. + REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) + HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) + STDDEF_H=''; AC_SUBST([STDDEF_H]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stdint.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdint.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stdint.m4 2007-10-03 22:23:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdint.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,5 +1,5 @@ -# stdint.m4 serial 29 -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. +# stdint.m4 serial 34 +dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,7 +9,7 @@ AC_DEFUN([gl_STDINT_H], [ - AC_PREREQ(2.59)dnl + AC_PREREQ([2.59])dnl dnl Check for long long int and unsigned long long int. AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) @@ -201,7 +201,75 @@ int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; ]])], - [gl_cv_header_working_stdint_h=yes])]) + [dnl Determine whether the various *_MIN, *_MAX macros are usable + dnl in preprocessor expression. We could do it by compiling a test + dnl program for each of these macros. It is faster to run a program + dnl that inspects the macro expansion. + dnl This detects a bug on HP-UX 11.23/ia64. + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([[ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include +] +gl_STDINT_INCLUDES +[ +#include +#include +#define MVAL(macro) MVAL1(macro) +#define MVAL1(expression) #expression +static const char *macro_values[] = + { +#ifdef INT8_MAX + MVAL (INT8_MAX), +#endif +#ifdef INT16_MAX + MVAL (INT16_MAX), +#endif +#ifdef INT32_MAX + MVAL (INT32_MAX), +#endif +#ifdef INT64_MAX + MVAL (INT64_MAX), +#endif +#ifdef UINT8_MAX + MVAL (UINT8_MAX), +#endif +#ifdef UINT16_MAX + MVAL (UINT16_MAX), +#endif +#ifdef UINT32_MAX + MVAL (UINT32_MAX), +#endif +#ifdef UINT64_MAX + MVAL (UINT64_MAX), +#endif + NULL + }; +]], [[ + const char **mv; + for (mv = macro_values; *mv != NULL; mv++) + { + const char *value = *mv; + /* Test whether it looks like a cast expression. */ + if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 + || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 + || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 + || strncmp (value, "((int)"/*)*/, 6) == 0 + || strncmp (value, "((signed short)"/*)*/, 15) == 0 + || strncmp (value, "((signed char)"/*)*/, 14) == 0) + return 1; + } + return 0; +]])], + [gl_cv_header_working_stdint_h=yes], + [], + [dnl When cross-compiling, assume it works. + gl_cv_header_working_stdint_h=yes + ]) + ]) + ]) fi if test "$gl_cv_header_working_stdint_h" = yes; then STDINT_H= @@ -229,7 +297,7 @@ gl_STDINT_TYPE_PROPERTIES STDINT_H=stdint.h fi - AC_SUBST(STDINT_H) + AC_SUBST([STDINT_H]) ]) dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) @@ -240,7 +308,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to the number of bits in type ']gltype['.])]) for gltype in $1 ; do @@ -265,7 +333,7 @@ AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result]) eval BITSIZEOF_${GLTYPE}=\$result done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) @@ -278,7 +346,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to 1 if ']gltype[' is a signed integer type.])]) for gltype in $1 ; do @@ -292,13 +360,13 @@ eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then - AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], 1) + AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], [1]) eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) @@ -311,7 +379,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX], [Define to l, ll, u, ul, ull, etc., as suitable for constants of type ']gltype['.])]) @@ -328,18 +396,18 @@ for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; - l) gltype1='long int';; - ll) gltype1='long long int';; - i64) gltype1='__int64';; - u) gltype1='unsigned int';; - ul) gltype1='unsigned long int';; - ull) gltype1='unsigned long long int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([$2 + [AC_LANG_PROGRAM([$2[ extern $gltype foo; - extern $gltype1 foo;])], + extern $gltype1 foo;]])], [eval gl_cv_type_${gltype}_suffix=\$glsuf]) eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break @@ -348,9 +416,9 @@ eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result - AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], $result) + AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], [$result]) done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX])]) ]) @@ -373,13 +441,22 @@ dnl of interest to stdint.in.h. AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], [ - gl_STDINT_BITSIZEOF([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + AC_REQUIRE([gl_MULTIARCH]) + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_STDINT_BITSIZEOF([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no - gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stdio_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdio_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stdio_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdio_h.m4 2010-05-17 19:56:13.000000000 +0000 @@ -0,0 +1,159 @@ +# stdio_h.m4 serial 31 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_STDIO_H], +[ + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + AC_REQUIRE([AC_C_INLINE]) + AC_REQUIRE([gl_ASM_SYMBOL_PREFIX]) + gl_CHECK_NEXT_HEADERS([stdio.h]) + dnl No need to create extra modules for these functions. Everyone who uses + dnl likely needs them. + GNULIB_FPRINTF=1 + GNULIB_PRINTF=1 + GNULIB_VFPRINTF=1 + GNULIB_VPRINTF=1 + GNULIB_FPUTC=1 + GNULIB_PUTC=1 + GNULIB_PUTCHAR=1 + GNULIB_FPUTS=1 + GNULIB_PUTS=1 + GNULIB_FWRITE=1 + dnl This ifdef is just an optimization, to avoid performing a configure + dnl check whose result is not used. It does not make the test of + dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant. + m4_ifdef([gl_SIGNAL_SIGPIPE], [ + gl_SIGNAL_SIGPIPE + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_STDIO_WRITE_FUNCS=1 + AC_LIBOBJ([stdio-write]) + fi + ]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include + ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat + snprintf tmpfile vdprintf vsnprintf]) +]) + +AC_DEFUN([gl_STDIO_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_STDIO_H_DEFAULTS], +[ + GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF]) + GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE]) + GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) + GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN]) + GNULIB_FPRINTF=0; AC_SUBST([GNULIB_FPRINTF]) + GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX]) + GNULIB_FPURGE=0; AC_SUBST([GNULIB_FPURGE]) + GNULIB_FPUTC=0; AC_SUBST([GNULIB_FPUTC]) + GNULIB_FPUTS=0; AC_SUBST([GNULIB_FPUTS]) + GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN]) + GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK]) + GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO]) + GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL]) + GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO]) + GNULIB_FWRITE=0; AC_SUBST([GNULIB_FWRITE]) + GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM]) + GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE]) + GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF]) + GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX]) + GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR]) + GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN]) + GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF]) + GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX]) + GNULIB_PUTC=0; AC_SUBST([GNULIB_PUTC]) + GNULIB_PUTCHAR=0; AC_SUBST([GNULIB_PUTCHAR]) + GNULIB_PUTS=0; AC_SUBST([GNULIB_PUTS]) + GNULIB_REMOVE=0; AC_SUBST([GNULIB_REMOVE]) + GNULIB_RENAME=0; AC_SUBST([GNULIB_RENAME]) + GNULIB_RENAMEAT=0; AC_SUBST([GNULIB_RENAMEAT]) + GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF]) + GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX]) + GNULIB_STDIO_H_SIGPIPE=0; AC_SUBST([GNULIB_STDIO_H_SIGPIPE]) + GNULIB_TMPFILE=0; AC_SUBST([GNULIB_TMPFILE]) + GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF]) + GNULIB_VDPRINTF=0; AC_SUBST([GNULIB_VDPRINTF]) + GNULIB_VFPRINTF=0; AC_SUBST([GNULIB_VFPRINTF]) + GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX]) + GNULIB_VPRINTF=0; AC_SUBST([GNULIB_VPRINTF]) + GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX]) + GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF]) + GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE]) + HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM]) + HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE]) + HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF]) + HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) + HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) + HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) + HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) + HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) + HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) + HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) + HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) + REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF]) + REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE]) + REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) + REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) + REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) + REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE]) + REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) + REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) + REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) + REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL]) + REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) + REPLACE_GETDELIM=0; AC_SUBST([REPLACE_GETDELIM]) + REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE]) + REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF]) + REPLACE_PERROR=0; AC_SUBST([REPLACE_PERROR]) + REPLACE_POPEN=0; AC_SUBST([REPLACE_POPEN]) + REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF]) + REPLACE_REMOVE=0; AC_SUBST([REPLACE_REMOVE]) + REPLACE_RENAME=0; AC_SUBST([REPLACE_RENAME]) + REPLACE_RENAMEAT=0; AC_SUBST([REPLACE_RENAMEAT]) + REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF]) + REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF]) + REPLACE_STDIO_WRITE_FUNCS=0; AC_SUBST([REPLACE_STDIO_WRITE_FUNCS]) + REPLACE_TMPFILE=0; AC_SUBST([REPLACE_TMPFILE]) + REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) + REPLACE_VDPRINTF=0; AC_SUBST([REPLACE_VDPRINTF]) + REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF]) + REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF]) + REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF]) + REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF]) +]) + +dnl Code shared by fseeko and ftello. Determine if large files are supported, +dnl but stdin does not start as a large file by default. +AC_DEFUN([gl_STDIN_LARGE_OFFSET], + [ + AC_CACHE_CHECK([whether stdin defaults to large file offsets], + [gl_cv_var_stdin_large_offset], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], +[[#if defined __SL64 && defined __SCLE /* cygwin */ + /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making + fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and + it is easier to do a version check than building a runtime test. */ +# include +# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) + choke me +# endif +#endif]])], + [gl_cv_var_stdin_large_offset=yes], + [gl_cv_var_stdin_large_offset=no])]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/stdlib_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdlib_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/stdlib_h.m4 2007-11-02 00:41:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/stdlib_h.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,5 +1,5 @@ -# stdlib_h.m4 serial 4 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# stdlib_h.m4 serial 28 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,30 +8,103 @@ [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([stdlib.h]) + AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT]) + if test $ac_cv_header_random_h = yes; then + HAVE_RANDOM_H=1 + else + HAVE_RANDOM_H=0 + fi + AC_SUBST([HAVE_RANDOM_H]) + AC_CHECK_TYPES([struct random_data], + [], [HAVE_STRUCT_RANDOM_DATA=0], + [[#include + #if HAVE_RANDOM_H + # include + #endif + ]]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include +#if HAVE_SYS_LOADAVG_H +# include +#endif +#if HAVE_RANDOM_H +# include +#endif + ]], [atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp + mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r + setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt + unsetenv]) ]) AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_STDLIB_H_DEFAULTS], [ - GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) - GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) + GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL]) GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX]) + GNULIB_CANONICALIZE_FILE_NAME=0; AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME]) + GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG]) GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT]) + GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT]) + GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) + GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP]) + GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS]) GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) + GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS]) + GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME]) GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) + GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R]) + GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) + GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH]) + GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH]) + GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV]) + GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD]) + GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL]) + GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL]) + GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT]) + GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV]) dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX]) - HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) - HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) - HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) - HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) - REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) - REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) + HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL]) + HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX]) + HAVE_CANONICALIZE_FILE_NAME=1; AC_SUBST([HAVE_CANONICALIZE_FILE_NAME]) + HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG]) + HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) + HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT]) + HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) + HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) + HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP]) + HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) + HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) + HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) + HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) + HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) + HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) + HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) + HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) + HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) + HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) + HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) + HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) + HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) + HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) + HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) + HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV]) + REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) + REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) + REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) + REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) + REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) + REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD]) + REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/strdup.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/strdup.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/strdup.m4 2007-01-28 03:39:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/strdup.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -# strdup.m4 serial 9 - -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software -dnl Foundation, Inc. - -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_STRDUP], -[ - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS(strdup) - AC_CHECK_DECLS_ONCE(strdup) - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 - fi - gl_PREREQ_STRDUP -]) - -# Prerequisites of lib/strdup.c. -AC_DEFUN([gl_PREREQ_STRDUP], [:]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/strerror.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/strerror.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/strerror.m4 2007-10-17 22:34:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/strerror.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,5 +1,5 @@ -# strerror.m4 serial 6 -dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc. +# strerror.m4 serial 9 +dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,7 +7,7 @@ AC_DEFUN([gl_FUNC_STRERROR], [ AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE]) - if test $gl_cv_func_working_strerror = no; then + if test $REPLACE_STRERROR = 1; then AC_LIBOBJ([strerror]) AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR], [Define this to 1 if strerror is broken.]) @@ -17,25 +17,39 @@ # Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_STRERROR_SEPARATE], [ - AC_CACHE_CHECK([for working strerror function], - [gl_cv_func_working_strerror], - [AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [#include - ], - [return !*strerror (-2);])], - [gl_cv_func_working_strerror=yes], - [gl_cv_func_working_strerror=no], - [dnl Assume crossbuild works if it compiles. - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [#include - ], - [return !*strerror (-2);])], - [gl_cv_func_working_strerror=yes], - [gl_cv_func_working_strerror=no])])]) - if test $gl_cv_func_working_strerror = no ; then + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REQUIRE([gl_HEADER_ERRNO_H]) + if test -z "$ERRNO_H"; then + AC_CACHE_CHECK([for working strerror function], + [gl_cv_func_working_strerror], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no], + [dnl Assume crossbuild works if it compiles. + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no]) + ]) + ]) + if test $gl_cv_func_working_strerror = no; then + dnl The system's strerror() fails to return a string for out-of-range + dnl integers. Replace it. + REPLACE_STRERROR=1 + fi + else + dnl The system's strerror() cannot know about the new errno values we add + dnl to . Replace it. REPLACE_STRERROR=1 + fi + if test $REPLACE_STRERROR = 1; then gl_PREREQ_STRERROR fi ]) @@ -43,4 +57,12 @@ # Prerequisites of lib/strerror.c. AC_DEFUN([gl_PREREQ_STRERROR], [ AC_CHECK_DECLS([strerror]) + AC_CHECK_HEADERS_ONCE([sys/socket.h]) + if test $ac_cv_header_sys_socket_h != yes; then + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([winsock2.h]) + fi ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/string_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/string_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/string_h.m4 2007-09-30 03:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/string_h.m4 2010-04-25 09:20:43.000000000 +0000 @@ -1,10 +1,12 @@ # Configure a GNU-like replacement for . -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 17 + # Written by Paul Eggert. AC_DEFUN([gl_HEADER_STRING_H], @@ -19,28 +21,43 @@ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([string.h]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include + ]], + [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup + strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal + strverscmp]) ]) AC_DEFUN([gl_STRING_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], [ + GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR]) GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM]) GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY]) GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR]) + GNULIB_RAWMEMCHR=0; AC_SUBST([GNULIB_RAWMEMCHR]) GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY]) GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY]) GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL]) GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP]) + GNULIB_STRNCAT=0; AC_SUBST([GNULIB_STRNCAT]) GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP]) GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN]) GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK]) GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP]) + GNULIB_STRSTR=0; AC_SUBST([GNULIB_STRSTR]) GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR]) GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R]) GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN]) @@ -58,23 +75,38 @@ GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP]) GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R]) GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR]) + GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL]) + GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP]) + HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN]) dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) - HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) - HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) - HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) - HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) - HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP]) - HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP]) - HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) - HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) - HAVE_STRNDUP=1; AC_SUBST([HAVE_STRNDUP]) - HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) - HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) - HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) - HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) - HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) - HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) - HAVE_DECL_STRERROR=1; AC_SUBST([HAVE_DECL_STRERROR]) - REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) + HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR]) + HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) + HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) + HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) + HAVE_RAWMEMCHR=1; AC_SUBST([HAVE_RAWMEMCHR]) + HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) + HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) + HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) + HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) + HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) + HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) + HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) + HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) + HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) + HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) + HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL]) + HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP]) + REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR]) + REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM]) + REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY]) + REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP]) + REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR]) + REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR]) + REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) + REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT]) + REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP]) + REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN]) + REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL]) + REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R]) + UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/strnlen.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/strnlen.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/strnlen.m4 2007-09-30 03:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/strnlen.m4 2010-05-09 01:36:17.000000000 +0000 @@ -1,28 +1,29 @@ -# strnlen.m4 serial 9 -dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. +# strnlen.m4 serial 12 +dnl Copyright (C) 2002-2003, 2005-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRNLEN], [ + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + dnl Persuade glibc to declare strnlen(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([strnlen]) if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 + else + AC_FUNC_STRNLEN + dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). + if test $ac_cv_func_strnlen_working = no; then + REPLACE_STRNLEN=1 + fi fi - - AC_FUNC_STRNLEN - if test $ac_cv_func_strnlen_working = no; then - # This is necessary because automake-1.6.1 doesn't understand - # that the above use of AC_FUNC_STRNLEN means we may have to use - # lib/strnlen.c. - #AC_LIBOBJ(strnlen) - AC_DEFINE(strnlen, rpl_strnlen, - [Define to rpl_strnlen if the replacement function should be used.]) + if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then + AC_LIBOBJ([strnlen]) gl_PREREQ_STRNLEN fi ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/strtol.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/strtol.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/strtol.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/strtol.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,10 +1,10 @@ -# strtol.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc. +# strtol.m4 serial 5 +dnl Copyright (C) 2002, 2003, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOL], [ - AC_REPLACE_FUNCS(strtol) + AC_REPLACE_FUNCS([strtol]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/strtoul.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/strtoul.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/strtoul.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/strtoul.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,10 +1,10 @@ -# strtoul.m4 serial 3 -dnl Copyright (C) 2002, 2006 Free Software Foundation, Inc. +# strtoul.m4 serial 4 +dnl Copyright (C) 2002, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOUL], [ - AC_REPLACE_FUNCS(strtoul) + AC_REPLACE_FUNCS([strtoul]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/sys_stat_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/sys_stat_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/sys_stat_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/sys_stat_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,82 @@ +# sys_stat_h.m4 serial 24 -*- Autoconf -*- +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Eric Blake. +dnl Provide a GNU-like . + +AC_DEFUN([gl_HEADER_SYS_STAT_H], +[ + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + + dnl For the mkdir substitute. + AC_REQUIRE([AC_C_INLINE]) + + dnl Check for broken stat macros. + AC_REQUIRE([AC_HEADER_STAT]) + + gl_CHECK_NEXT_HEADERS([sys/stat.h]) + + dnl Define types that are supposed to be defined in or + dnl . + AC_CHECK_TYPE([nlink_t], [], + [AC_DEFINE([nlink_t], [int], + [Define to the type of st_nlink in struct stat, or a supertype.])], + [#include + #include ]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat + mknod mknodat stat utimensat]) +]) # gl_HEADER_SYS_STAT_H + +AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR + GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT]) + GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT]) + GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS]) + GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD]) + GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT]) + GNULIB_MKDIRAT=0; AC_SUBST([GNULIB_MKDIRAT]) + GNULIB_MKFIFO=0; AC_SUBST([GNULIB_MKFIFO]) + GNULIB_MKFIFOAT=0; AC_SUBST([GNULIB_MKFIFOAT]) + GNULIB_MKNOD=0; AC_SUBST([GNULIB_MKNOD]) + GNULIB_MKNODAT=0; AC_SUBST([GNULIB_MKNODAT]) + GNULIB_STAT=0; AC_SUBST([GNULIB_STAT]) + GNULIB_UTIMENSAT=0; AC_SUBST([GNULIB_UTIMENSAT]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT]) + HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT]) + HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS]) + HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD]) + HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT]) + HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT]) + HAVE_MKFIFO=1; AC_SUBST([HAVE_MKFIFO]) + HAVE_MKFIFOAT=1; AC_SUBST([HAVE_MKFIFOAT]) + HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD]) + HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT]) + HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT]) + REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) + REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) + REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS]) + REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT]) + REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR]) + REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO]) + REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD]) + REPLACE_STAT=0; AC_SUBST([REPLACE_STAT]) + REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/time_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/time_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/time_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/time_h.m4 2010-06-03 21:35:16.000000000 +0000 @@ -0,0 +1,109 @@ +# Configure a more-standard replacement for . + +# Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. + +# serial 2 + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Written by Paul Eggert and Jim Meyering. + +AC_DEFUN([gl_HEADER_TIME_H], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_HEADER_TIME_H_BODY]) +]) + +AC_DEFUN([gl_HEADER_TIME_H_BODY], +[ + AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) + gl_CHECK_NEXT_HEADERS([time.h]) + AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) +]) + +dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared +dnl in time.h, sys/time.h, or pthread.h. + +AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], +[ + AC_CHECK_HEADERS_ONCE([sys/time.h]) + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_time_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_time_h=yes], + [gl_cv_sys_struct_timespec_in_time_h=no])]) + + TIME_H_DEFINES_STRUCT_TIMESPEC=0 + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 + if test $gl_cv_sys_struct_timespec_in_time_h = yes; then + TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_sys_time_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_sys_time_h=yes], + [gl_cv_sys_struct_timespec_in_sys_time_h=no])]) + if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_pthread_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_pthread_h=yes], + [gl_cv_sys_struct_timespec_in_pthread_h=no])]) + if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 + fi + fi + fi + AC_SUBST([TIME_H_DEFINES_STRUCT_TIMESPEC]) + AC_SUBST([SYS_TIME_H_DEFINES_STRUCT_TIMESPEC]) + AC_SUBST([PTHREAD_H_DEFINES_STRUCT_TIMESPEC]) +]) + +AC_DEFUN([gl_TIME_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS], +[ + GNULIB_MKTIME=0; AC_SUBST([GNULIB_MKTIME]) + GNULIB_NANOSLEEP=0; AC_SUBST([GNULIB_NANOSLEEP]) + GNULIB_STRPTIME=0; AC_SUBST([GNULIB_STRPTIME]) + GNULIB_TIMEGM=0; AC_SUBST([GNULIB_TIMEGM]) + GNULIB_TIME_R=0; AC_SUBST([GNULIB_TIME_R]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_LOCALTIME_R=1; AC_SUBST([HAVE_LOCALTIME_R]) + HAVE_NANOSLEEP=1; AC_SUBST([HAVE_NANOSLEEP]) + HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME]) + HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM]) + dnl If another module says to replace or to not replace, do that. + dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK; + dnl this lets maintainers check for portability. + REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; AC_SUBST([REPLACE_LOCALTIME_R]) + REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME]) + REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP]) + REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/unistd_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/unistd_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/unistd_h.m4 2007-07-01 14:08:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/unistd_h.m4 2010-05-09 01:36:17.000000000 +0000 @@ -1,5 +1,5 @@ -# unistd_h.m4 serial 9 -dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. +# unistd_h.m4 serial 46 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,6 +11,7 @@ dnl Use AC_REQUIRE here, so that the default behavior below is expanded dnl once only, before all statements that occur in other macros. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_REQUIRE([AC_C_INLINE]) gl_CHECK_NEXT_HEADERS([unistd.h]) @@ -21,36 +22,138 @@ HAVE_UNISTD_H=0 fi AC_SUBST([HAVE_UNISTD_H]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include +/* Some systems declare various items in the wrong headers. */ +#ifndef __GLIBC__ +# include +# include +# include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif +#endif + ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat + fsync ftruncate getcwd getdomainname getdtablesize getgroups + gethostname getlogin getlogin_r getpagesize getusershell setusershell + endusershell lchown link linkat lseek pipe2 pread pwrite readlink + readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat + usleep]) ]) AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_UNISTD_H_DEFAULTS], [ - GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) - GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) - GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) - GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) - GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) - GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) - GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) - GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) - GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) - GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) + GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) + GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE]) + GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) + GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3]) + GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON]) + GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS]) + GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT]) + GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) + GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT]) + GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC]) + GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) + GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) + GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME]) + GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE]) + GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS]) + GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME]) + GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) + GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) + GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) + GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) + GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) + GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) + GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT]) + GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) + GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2]) + GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD]) + GNULIB_PWRITE=0; AC_SUBST([GNULIB_PWRITE]) + GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) + GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) + GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) + GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) + GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK]) + GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT]) + GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R]) + GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT]) + GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE]) + GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK]) + GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT]) + GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP]) + GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE]) dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN]) HAVE_DUP2=1; AC_SUBST([HAVE_DUP2]) + HAVE_DUP3=1; AC_SUBST([HAVE_DUP3]) + HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS]) + HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) + HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) + HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) + HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) + HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME]) + HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) + HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS]) + HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) + HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) + HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) + HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) + HAVE_LINK=1; AC_SUBST([HAVE_LINK]) + HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT]) + HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2]) + HAVE_PREAD=1; AC_SUBST([HAVE_PREAD]) + HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) + HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) + HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) + HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) + HAVE_TTYNAME_R=1; AC_SUBST([HAVE_TTYNAME_R]) + HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT]) + HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) + HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) + HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) + HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) + HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) + HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN]) - REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR]) + REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) + REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) + REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) + REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) + REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) + REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) + REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) + REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK]) + REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD]) + REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) + REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) + REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) + REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) + REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) + REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) + REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) + REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) + REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP]) + REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE]) + UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H]) + UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; + AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS]) ]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/unlocked-io.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/unlocked-io.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/unlocked-io.m4 2007-01-27 03:21:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/unlocked-io.m4 2010-02-16 21:31:30.000000000 +0000 @@ -1,7 +1,6 @@ -# unlocked-io.m4 serial 14 +# unlocked-io.m4 serial 15 -# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. +# Copyright (C) 1998-2006, 2009-2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -17,7 +16,7 @@ AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], [ - AC_DEFINE([USE_UNLOCKED_IO], 1, + AC_DEFINE([USE_UNLOCKED_IO], [1], [Define to 1 if you want getc etc. to use unlocked I/O if available. Unlocked I/O can improve performance in unithreaded apps, but it is not safe for multithreaded apps.]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/warn-on-use.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/warn-on-use.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/warn-on-use.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/warn-on-use.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,45 @@ +# warn-on-use.m4 serial 2 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# gl_WARN_ON_USE_PREPARE(INCLUDES, NAMES) +# --------------------------------------- +# For each whitespace-separated element in the list of NAMES, define +# HAVE_RAW_DECL_name if the function has a declaration among INCLUDES +# even after being undefined as a macro. +# +# See warn-on-use.h for some hints on how to poison function names, as +# well as ideas on poisoning global variables and macros. NAMES may +# include global variables, but remember that only functions work with +# _GL_WARN_ON_USE. Typically, INCLUDES only needs to list a single +# header, but if the replacement header pulls in other headers because +# some systems declare functions in the wrong header, then INCLUDES +# should do likewise. +# +# If you assume C89, then it is generally safe to assume declarations +# for functions declared in that standard (such as gets) without +# needing gl_WARN_ON_USE_PREPARE. +AC_DEFUN([gl_WARN_ON_USE_PREPARE], +[ + m4_foreach_w([gl_decl], [$2], + [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])), + [Define to 1 if ]m4_defn([gl_decl])[ is declared even after + undefining macros.])])dnl + for gl_func in m4_flatten([$2]); do + AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl + AC_CACHE_CHECK([whether $gl_func is declared without a macro], + gl_Symbol, + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1], +[@%:@undef $gl_func + (void) $gl_func;])], + [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])]) + AS_VAR_IF(gl_Symbol, [yes], + [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) + dnl shortcut - if the raw declaration exists, then set a cache + dnl variable to allow skipping any later AC_CHECK_DECL efforts + eval ac_cv_have_decl_$gl_func=yes]) + AS_VAR_POPDEF([gl_Symbol])dnl + done +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/wchar_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/wchar_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/wchar_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/wchar_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,152 @@ +dnl A placeholder for ISO C99 , for platforms that have issues. + +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Eric Blake. + +# wchar_h.m4 serial 33 + +AC_DEFUN([gl_WCHAR_H], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) + dnl Prepare for creating substitute . + dnl Check for (missing in Linux uClibc when built without wide + dnl character support). + dnl is always overridden, because of GNULIB_POSIXCHECK. + AC_CHECK_HEADERS_ONCE([wchar.h]) + gl_CHECK_NEXT_HEADERS([wchar.h]) + if test $ac_cv_header_wchar_h = yes; then + HAVE_WCHAR_H=1 + else + HAVE_WCHAR_H=0 + fi + AC_SUBST([HAVE_WCHAR_H]) + + AC_REQUIRE([gt_TYPE_WINT_T]) + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + AC_SUBST([HAVE_WINT_T]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require additional headers. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif +#include + ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb + wcsrtombs wcsnrtombs wcwidth]) +]) + +dnl Check whether is usable at all. +AC_DEFUN([gl_WCHAR_H_INLINE_OK], +[ + dnl Test whether suffers due to the transition from '__inline' to + dnl 'gnu_inline'. See + dnl and . In summary, + dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and + dnl the option -std=c99 or -std=gnu99, leads to a broken . + AC_CACHE_CHECK([whether uses 'inline' correctly], + [gl_cv_header_wchar_h_correct_inline], + [gl_cv_header_wchar_h_correct_inline=yes + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[#define wcstod renamed_wcstod +#include +extern int zero (void); +int main () { return zero(); } +]])]) + if AC_TRY_EVAL([ac_compile]); then + mv conftest.$ac_objext conftest1.$ac_objext + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[#define wcstod renamed_wcstod +#include +int zero (void) { return 0; } +]])]) + if AC_TRY_EVAL([ac_compile]); then + mv conftest.$ac_objext conftest2.$ac_objext + if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then + : + else + gl_cv_header_wchar_h_correct_inline=no + fi + fi + fi + rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext + ]) + if test $gl_cv_header_wchar_h_correct_inline = no; then + AC_MSG_ERROR([ cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). +This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in +C99 mode. You have four options: + - Add the flag -fgnu89-inline to CC and reconfigure, or + - Fix your include files, using parts of + , or + - Use a gcc version older than 4.3, or + - Don't use the flags -std=c99 or -std=gnu99. +Configuration aborted.]) + fi +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_WCHAR_H], +[ + dnl This is a no-op, because is always overridden. + : +]) + +AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_WCHAR_H_DEFAULTS], +[ + GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC]) + GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB]) + GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT]) + GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC]) + GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN]) + GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS]) + GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS]) + GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB]) + GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS]) + GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS]) + GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) + HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) + HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC]) + HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN]) + HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS]) + HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS]) + HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB]) + HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS]) + HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS]) + HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) + HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) + REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) + REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) + REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB]) + REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT]) + REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC]) + REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN]) + REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS]) + REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS]) + REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB]) + REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS]) + REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS]) + REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/wchar.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/wchar.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/wchar.m4 2007-09-01 13:11:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/wchar.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,54 +0,0 @@ -dnl A placeholder for ISO C99 , for platforms that have issues. - -dnl Copyright (C) 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Written by Eric Blake. - -# wchar.m4 serial 4 - -AC_DEFUN([gl_WCHAR_H], -[ - AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) - AC_CACHE_CHECK([whether is standalone], - [gl_cv_header_wchar_h_standalone], - [AC_COMPILE_IFELSE([[#include -wchar_t w;]], - [gl_cv_header_wchar_h_standalone=yes], - [gl_cv_header_wchar_h_standalone=no])]) - if test $gl_cv_header_wchar_h_standalone != yes; then - WCHAR_H=wchar.h - fi - - dnl Prepare for creating substitute . - dnl Do it always: WCHAR_H may be empty here but can be set later. - dnl Check for (missing in Linux uClibc when built without wide - dnl character support). - AC_CHECK_HEADERS_ONCE([wchar.h]) - if test $ac_cv_header_wchar_h = yes; then - HAVE_WCHAR_H=1 - else - HAVE_WCHAR_H=0 - fi - AC_SUBST([HAVE_WCHAR_H]) - gl_CHECK_NEXT_HEADERS([wchar.h]) -]) - -AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], -[ - dnl Use AC_REQUIRE here, so that the default settings are expanded once only. - AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 -]) - -AC_DEFUN([gl_WCHAR_H_DEFAULTS], -[ - GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) - dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) - REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) - WCHAR_H= - AC_SUBST([WCHAR_H]) -]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/wctype_h.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/wctype_h.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/wctype_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/wctype_h.m4 2010-03-28 18:31:27.000000000 +0000 @@ -0,0 +1,76 @@ +# wctype_h.m4 serial 6 + +dnl A placeholder for ISO C99 , for platforms that lack it. + +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Paul Eggert. + +AC_DEFUN([gl_WCTYPE_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_FUNCS_ONCE([iswcntrl]) + if test $ac_cv_func_iswcntrl = yes; then + HAVE_ISWCNTRL=1 + else + HAVE_ISWCNTRL=0 + fi + AC_SUBST([HAVE_ISWCNTRL]) + AC_CHECK_FUNCS_ONCE([iswblank]) + if test $ac_cv_func_iswblank = yes; then + HAVE_ISWBLANK=1 + else + HAVE_ISWBLANK=0 + fi + AC_SUBST([HAVE_ISWBLANK]) + AC_CHECK_HEADERS_ONCE([wctype.h]) + AC_REQUIRE([AC_C_INLINE]) + + AC_REQUIRE([gt_TYPE_WINT_T]) + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + AC_SUBST([HAVE_WINT_T]) + + if test $ac_cv_header_wctype_h = yes; then + if test $ac_cv_func_iswcntrl = yes; then + dnl Linux libc5 has an iswprint function that returns 0 for all arguments. + dnl The other functions are likely broken in the same way. + AC_CACHE_CHECK([whether iswcntrl works], [gl_cv_func_iswcntrl_works], + [ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include + #include + #include + #include + #include + int main () { return iswprint ('x') == 0; }]])], + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. + #endif]], [])], + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) + ]) + ]) + fi + gl_CHECK_NEXT_HEADERS([wctype.h]) + HAVE_WCTYPE_H=1 + else + HAVE_WCTYPE_H=0 + fi + AC_SUBST([HAVE_WCTYPE_H]) + + if test "$gl_cv_func_iswcntrl_works" = no; then + REPLACE_ISWCNTRL=1 + else + REPLACE_ISWCNTRL=0 + fi + AC_SUBST([REPLACE_ISWCNTRL]) +]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/wctype.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/wctype.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/wctype.m4 2007-07-01 14:08:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/wctype.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -dnl A placeholder for ISO C99 , for platforms that lack it. - -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Written by Paul Eggert. - -AC_DEFUN([gl_WCTYPE_H], -[ - AC_CHECK_FUNCS_ONCE([iswcntrl]) - if test $ac_cv_func_iswcntrl = yes; then - HAVE_ISWCNTRL=1 - else - HAVE_ISWCNTRL=0 - fi - AC_SUBST([HAVE_ISWCNTRL]) - AC_CHECK_HEADERS_ONCE([wctype.h]) - AC_REQUIRE([AC_C_INLINE]) - - AC_REQUIRE([gt_TYPE_WINT_T]) - if test $gt_cv_c_wint_t = yes; then - HAVE_WINT_T=1 - else - HAVE_WINT_T=0 - fi - AC_SUBST([HAVE_WINT_T]) - - WCTYPE_H=wctype.h - if test $ac_cv_header_wctype_h = yes; then - if test $ac_cv_func_iswcntrl = yes; then - WCTYPE_H= - fi - dnl Compute NEXT_WCTYPE_H even if WCTYPE_H is empty, - dnl for the benefit of builds from non-distclean directories. - gl_CHECK_NEXT_HEADERS([wctype.h]) - HAVE_WCTYPE_H=1 - else - HAVE_WCTYPE_H=0 - fi - AC_SUBST([HAVE_WCTYPE_H]) - AC_SUBST([WCTYPE_H]) -]) diff -Nru gettext-0.17/gettext-runtime/gnulib-m4/wcwidth.m4 gettext-0.18.1.1/gettext-runtime/gnulib-m4/wcwidth.m4 --- gettext-0.17/gettext-runtime/gnulib-m4/wcwidth.m4 2007-10-23 00:41:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/gnulib-m4/wcwidth.m4 2010-04-25 09:20:44.000000000 +0000 @@ -1,5 +1,5 @@ -# wcwidth.m4 serial 13 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# wcwidth.m4 serial 16 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,6 +7,7 @@ AC_DEFUN([gl_FUNC_WCWIDTH], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Persuade glibc to declare wcwidth(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) @@ -33,9 +34,7 @@ HAVE_DECL_WCWIDTH=0 fi - if test $ac_cv_func_wcwidth = no; then - REPLACE_WCWIDTH=1 - else + if test $ac_cv_func_wcwidth = yes; then dnl On MacOS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1. dnl On OSF/1 5.1, wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1. dnl This leads to bugs in 'ls' (coreutils). @@ -68,18 +67,28 @@ return 1; return 0; }], [gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=no], - [gl_cv_func_wcwidth_works="guessing no"]) + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; + esac +changequote([,])dnl + ]) ]) case "$gl_cv_func_wcwidth_works" in *yes) ;; *no) REPLACE_WCWIDTH=1 ;; esac fi - if test $REPLACE_WCWIDTH = 1; then + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then AC_LIBOBJ([wcwidth]) fi - - if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \ + || test $HAVE_DECL_WCWIDTH = 0; then + gl_REPLACE_WCHAR_H fi + dnl We don't substitute HAVE_WCWIDTH. We assume that if the system does not + dnl have the wcwidth function, then it does not declare it. ]) diff -Nru gettext-0.17/gettext-runtime/INSTALL gettext-0.18.1.1/gettext-runtime/INSTALL --- gettext-0.17/gettext-runtime/INSTALL 2006-08-23 17:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/INSTALL 2010-06-06 12:49:57.000000000 +0000 @@ -1,8 +1,15 @@ +These are generic installation instructions. + +Prerequisites +============= + + This package depends on a few other packages. They are listed in +the file `DEPENDENCIES'. It is recommended to install the listed +packages before installing this package. + Basic Installation ================== - These are generic installation instructions. - The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. @@ -76,6 +83,20 @@ one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases. You +may have to build one architecture at a time and combine the results +using the 'lipo' tool if you have problems. + Installation Names ================== @@ -99,38 +120,65 @@ with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. -Relocatable Installation -======================== +Enabling Relocatability +======================= - By default, `make install' will install a package with hardwired -file names, and the package will not work correctly when copied or -moved to a different location in the filesystem. - - Some packages pay attention to the `--enable-relocatable' option to -`configure'. This option makes the entire installed package -relocatable. This means, it can be moved or copied to a different -location on the filesystem. It is possible to make symlinks to the -installed and moved programs, and invoke them through the symlink. It -is possible to do the same thing with a hard link _only_ if the hard -linked file is in the same directory as the real program. - - For reliability it is best to give together with --enable-relocatable -a `--prefix' option pointing to an otherwise unused (and never used -again) directory, for example, `--prefix=/tmp/inst$$'. This is -recommended because on some OSes the executables remember the location -of shared libraries (and prefer them over LD_LIBRARY_PATH !), therefore -such an executable will look for its shared libraries first in the -original installation directory and only then in the current -installation directory. - - Installation with `--enable-relocatable' will not work for setuid / -setgid executables. (This is because such an executable kills its -LD_LIBRARY_PATH variable when it is launched.) - - The runtime penalty and size penalty are nearly zero on Linux 2.2 or -newer (just one system call more when an executable is launched), and -small on other systems (the wrapper program just sets an environment -variable and execs the real program). + It has been a pain for many users of GNU packages for a long time +that packages are not relocatable. It means a user cannot copy a +program, installed by another user on the same machine, to his home +directory, and have it work correctly (including i18n). So many users +need to go through `configure; make; make install' with all its +dependencies, options, and hurdles. + + Red Hat, Debian, and similar package systems solve the "ease of +installation" problem, but they hardwire path names, usually to `/usr' +or `/usr/local'. This means that users need root privileges to install +a binary package, and prevents installing two different versions of the +same binary package. + + A relocatable program can be moved or copied to a different location +on the filesystem. It is possible to make symlinks to the installed +and moved programs, and invoke them through the symlink. It is possible +to do the same thing with a hard link _only_ if the hard link file is +in the same directory as the real program. + + To configure a program to be relocatable, add `--enable-relocatable' +to the `configure' command line. + + On some OSes the executables remember the location of shared +libraries and prefer them over any other search path. Therefore, such +an executable will look for its shared libraries first in the original +installation directory and only then in the current installation +directory. Thus, for reliability, it is best to also give a `--prefix' +option pointing to a directory that does not exist now and which never +will be created, e.g. `--prefix=/nonexistent'. You may use +`DESTDIR=DEST-DIR' on the `make' command line to avoid installing into +that directory. + + We do not recommend using a prefix writable by unprivileged users +(e.g. `/tmp/inst$$') because such a directory can be recreated by an +unprivileged user after the original directory has been removed. We +also do not recommend prefixes that might be behind an automounter +(e.g. `$HOME/inst$$') because of the performance impact of directory +searching. + + Here's a sample installation run that takes into account all these +recommendations: + + ./configure --enable-relocatable --prefix=/nonexistent + make + make install DESTDIR=/tmp/inst$$ + + Installation with `--enable-relocatable' will not work for setuid or +setgid executables, because such executables search only system library +paths for security reasons. Also, installation with +`--enable-relocatable' might not work on OpenBSD, when the package +contains shared libraries and libtool versions 1.5.xx are used. + + The runtime penalty and size penalty are negligible on GNU/Linux +(just one system call more when an executable is launched), and small on +other systems (the wrapper program just sets an environment variable +and executes the real program). Optional Features ================= @@ -164,11 +212,14 @@ is not installed, it is recommended to use the following options in order to use an ANSI C compiler: - ./configure CC="cc -Ae" + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" - On OSF/1 a.k.a. Tru64, some versions of the default C compiler don't grok -its header file. The option -nodtk can be used as a workaround. -If GNU CC is not installed, it is therefore recommended to try +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try ./configure CC="cc" @@ -182,6 +233,11 @@ ./configure CC="xlc -D_ALL_SOURCE" + On Haiku, software installed for all users goes in /boot/common, not +/usr/local. It is recommended to use the following options: + + ./configure --prefix=/boot/common + On BeOS, user installed software goes in /boot/home/config, not /usr/local. It is recommended to use the following options: diff -Nru gettext-0.17/gettext-runtime/intl/bindtextdom.c gettext-0.18.1.1/gettext-runtime/intl/bindtextdom.c --- gettext-0.17/gettext-runtime/intl/bindtextdom.c 2006-11-06 12:49:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/bindtextdom.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,6 @@ /* Implementation of the bindtextdomain(3) function - Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -178,8 +179,7 @@ if (__builtin_expect (result != NULL, 1)) { - if (binding->codeset != NULL) - free (binding->codeset); + free (binding->codeset); binding->codeset = result; modified = 1; diff -Nru gettext-0.17/gettext-runtime/intl/ChangeLog gettext-0.18.1.1/gettext-runtime/intl/ChangeLog --- gettext-0.17/gettext-runtime/intl/ChangeLog 2007-11-06 23:27:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,813 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-03 Bruno Haible + + * libgnuintl.h.in (LIBINTL_VERSION): Bump to 0.18.1. + * Makefile.in (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 9:1:1. + +2010-05-20 Bruno Haible + + * gettextP.h (_nl_locale_name): Comment out declaration. + +2010-05-20 Bruno Haible + + Avoid a link error when building statically on mingw. + * gettextP.h (gl_locale_name_thread): Alias to _nl_locale_name_thread. + Reported by Rob . + +2010-05-16 Bruno Haible + + * libgnuintl.h.in (printf): Add comment. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * libgnuintl.h.in (LIBINTL_VERSION): Bump to 0.18. + * Makefile.in (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 9:0:1. + * libintl.rc: Update year. + +2010-05-09 Bruno Haible + + vasnprintf: Fix syntax errors in libintl build on mingw. + * vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine + pad_ourselves and prec_ourselves after use. + +2010-04-03 Bruno Haible + + localename: Port to MacOS X 10.6. + * localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the + memory layout of the locales in MacOS X 10.6 as well. + Reported by Panu Kekäläinen . + +2010-05-08 Bruno Haible + + * config.charset: Update comments for Cygwin 1.7. + * localcharset.c: Likewise. + +2010-04-24 Bruno Haible + + vasnprintf: Correct errno value in case of out-of-memory. + * vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF or + sprintf. Use the errno value from SNPRINTF or sprintf. + Reported by Ian Beckwith . + +2010-04-10 Bruno Haible + + vasnprintf: Correct handling of unconvertible wide string arguments. + * vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix crash in %ls directive. + * vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide + string is passed as argument to %ls, with no precision and no width. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix multiple test failures on mingw. + * vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not _snprintf, + or snwprintf, not _snwprintf. + +2010-03-25 Bruno Haible + + Minor formatting changes. + * localename.c: Insert space before sizeof's argument list. + * lock.h: Insert space before function argument list. + +2010-01-01 Bruno Haible + + localename: Avoid gcc warning. + * localename.c (gl_locale_name_thread_unsafe): Don't define this + function if it is not used. + +2010-01-01 Bruno Haible + + * vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is defined, + use wctomb instead of wcrtomb. + +2009-12-26 Bruno Haible + + * libintl.rc: Update. + +2009-12-26 Bruno Haible + + Use the thread-specific locale also on MacOS X. + * dcigettext.c (HAVE_NL_LOCALE_NAME): Remove undef. + Don't include . + (HAVE_PER_THREAD_LOCALE): Define on any platform that has 'uselocale'. + (DCIGETTEXT, guess_category_value): Use _nl_locale_name_thread_unsafe + instead of glibc specific code. + * gettextP.h (gl_locale_name_thread_unsafe): New macro. + (_nl_locale_name_thread_unsafe): New declaration. + +2009-12-26 Bruno Haible + + localename: Fix storage allocation of gl_locale_name_thread's result. + * localename.c (SIZE_BITS, string_hash, struct hash_node, + HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on + all platforms that have 'uselocale'. + (gl_locale_name_thread_unsafe): New function, extracted from + gl_locale_name_thread. + (gl_locale_name_thread): Call struniq on all platforms that have + 'uselocale'. + +2009-12-23 Bruno Haible + + localename: Make aware of thread locale. + * localename.c: Include , , , + , glthread/lock.h. + (SIZE_BITS): New macro. + (string_hash): New function. + (struct hash_node): New type. + (HASH_TABLE_SIZE): New macro. + (struniq_hash_table, struniq_lock): New variables. + (struniq): New function. + (gl_locale_name_thread): New function. + (gl_locale_name): Invoke it. + Reported by Mike Gran . + +2009-12-26 Bruno Haible + + * Makefile.in (localename.$lo): Add dependency. + +2009-12-21 Bruno Haible + + Define override of setlocale and newlocale functions. + * gettextP.h (gl_locale_name_environ): New macro. + (_nl_locale_name_environ): New declaration. + * localename.c (gl_locale_name_environ): New function, extracted from + gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin. + (gl_locale_name_posix): Invoke it. + (gl_locale_name_default): Add comments. Use Windows native API also on + Cygwin. + * libgnuintl.h.in: On MacOS X, include . + (setlocale, newlocale): New overrides. + * setlocale.c: New file. + * Makefile.in (SOURCES): Add setlocale.c. + (OBJECTS): Add setlocale.$lo. + (setlocale.lo): New rule. + (libgnuintl.h, libintl.h): Substitute also HAVE_NEWLOCALE. + (setlocale.$lo): Define dependencies. + +2009-12-21 Bruno Haible + + Update list of Win32 locale ids. + * localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE. + (LANG_SAMI): Renamed from LANG_SAAMI. + (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC, + LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN, + LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF, + LANG_DARI, LANG_SCOTTISH_GAELIC): New macros. + (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA, + SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA, + SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA, + SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE, + SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE, + SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA, + SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE, + SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK, + SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES, + SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA, + SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN, + SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS, + SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA, + SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND, + SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN, + SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY, + SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA, + SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA, + SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND, + SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA, + SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA, + SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA, + SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA, + SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY, + SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA, + SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA, + SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE, + SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL, + SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA, + SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND, + SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY, + SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND, + SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN, + SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN, + SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND, + SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA, + SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA, + SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA, + SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA, + SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN, + SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA, + SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA, + SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN, + SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY, + SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM, + SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA, + SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA, + SUBLANG_ZULU_SOUTH_AFRICA): New macros. + (gl_locale_name_from_win32_LANGID): Handle also the territory neutral + locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari, + Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk, + Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi. + Add more languages and countries for Sami, Sorbian. Add more countries + for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise + for Pashto. Change country for Syriac, Tswana. + +2009-12-13 Bruno Haible + + * localcharset.c (locale_charset): Fix comment about use of GetACP. + +2009-12-12 Bruno Haible + + * localcharset.c (locale_charset): Add comment about use of GetACP. + +2009-12-12 Bruno Haible + + * intl-compat.c: Untabify. + * intl-exports.c: Untabify. + * langprefs.c: Untabify. + * libgnuintl.h.in: Untabify. + * localcharset.c: Untabify. + * localename.c: Untabify. + * lock.c: Untabify. + * log.c: Untabify. + * os2compat.h: Untabify. + * printf-args.c: Untabify. + * printf-args.h: Untabify. + * printf-parse.c: Untabify. + * printf-parse.h: Untabify. + * printf.c: Untabify. + * relocatable.c: Untabify. + * relocatable.h: Untabify. + * threadlib.c: Untabify. + * tsearch.c: Untabify. + * tsearch.h: Untabify. + * vasnprintf.c: Untabify. + * vasnwprintf.h: Untabify. + * wprintf-parse.h: Untabify. + +2009-12-11 Bruno Haible + + * config.charset: Untabify. + +2009-11-22 Bruno Haible + + * vasnprintf.c (decimal_point_char): Choose the fast path also on + MacOS X. + +2009-11-17 Eric Blake + + * vasnprintf.c (VASNPRINTF): Avoid shadowing our own local variables. + +2009-10-10 Eric Blake + + * relocatable.c (compute_curr_prefix): Fix spelling. + +2009-10-18 Bruno Haible + + Avoid symlink attack in localcharset module. + * localcharset.c: Include , . + (O_NOFOLLOW): Define fallback. + (get_charset_aliases): Don't open the file if it is a symbolic link. + Reported by Fergal Glynn . + +2009-08-20 Eric Blake + + * vasnprintf.c (decimal_point_char): Avoid warning on old-style + declaration. + +2009-08-10 Bruno Haible + + * vasnprintf.c (DCHAR_SET): Undefine at the end. + +2009-08-09 Bruno Haible + + Fix a compilation error on non-glibc systems that have gcc visibility + support but deficient *printf functions. + * printf.c (DLL_EXPORTED): Define to non-empty also when + HAVE_VISIBILITY is true. + Reported at . + +2009-06-06 Bruno Haible + + Interoperate with automake-1.11 provided --enable-silent-rules option. + * Makefile.in (AM_V_at, AM_V_AR, AM_V_CC, AM_V_GEN, AM_V_YACC, + AM_V_lt): New variables. + (libintl.a, libintl.la, .c.o, .y.c, *.lo): Silence 'make' output if + silent rules requested. + +2009-04-26 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Update after the calling convention of + u*_conv_from_encoding and u*_conv_to_encoding changed. + +2009-03-25 Bruno Haible + + * Makefile.in (RC): New variable. + (OBJECTS_RES_yes): Add .$lo suffix. + (libintl.res.o): Renamed from libintl.res. + (libintl.res.lo): New rule. + (mostlyclean): Simplify. + +2009-03-23 Jim Meyering + + * vasnprintf.c (divide): Fix typo in comment. + +2009-02-26 Bruno Haible + + Fix *printf behaviour regarding the %ls directive. + * vasnprintf.c (local_wcslen, VASNPRINTF): Handle + NEED_PRINTF_DIRECTIVE_LS. + +2009-02-23 Bruno Haible + + Fix invalid read past end of memory block. + * vasnprintf.c (DCHAR_SET): Define. + (local_wcslen): Define only when needed. + (local_strnlen, local_wcsnlen): New functions. + (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls + directives that involve a conversion ourselves. + +2009-02-06 Bruno Haible + + * Makefile.in (libintl.res): Initialize nl without assuming GNU bash. + Reported by Marko Lindqvist . + +2009-01-25 Bruno Haible + + * threadlib.c: Include . + +2009-01-25 Bruno Haible + + * threadlib.c (dummy): New declaration. + +2009-01-25 Bruno Haible + + Don't install charset.alias on MacOS X >= 10.3. + * localcharset.c (DARWIN7): New macro. + (get_charset_aliases): Hardcode the result for Darwin7. + * Makefile.in (install-exec, installdirs): Don't install charset.alias + on MacOS X >= 10.3, if the file does not yet exist. + +2009-01-25 Bruno Haible + + Don't install charset.alias on mingw and Cygwin. + * Makefile.in (install-exec, installdirs): Don't install charset.alias + on mingw and Cygwin, if the file does not yet exist. The result for + these platforms is hardcoded in localcharset.c. + +2009-01-24 Bruno Haible + + Add support for non-UTF-8 locales on MacOS X. + * config.charset: Add CP1131, ARMSCII-8, PT154 to the list of canonical + encodings. For Darwin 7 and newer, don't map traditional encodings to + UTF-8. + Reported by Vincent Lefevre + at . + +2009-01-15 Bruno Haible + + * log.c (MSGCTXT_SEPARATOR): New macro. + (print_escaped): Add an str_end argument. + (_nl_log_untranslated_locked): If msgid1 contains the msgctxt + separator, split it into msgctxt and msgid. + Reported at . + +2008-11-10 Ingo Weinhold + + * config.charset: Treat Haiku like BeOS. + +2008-10-17 Bruno Haible + + * lock.h (gl_carray_waitqueue_t): Renamed from gl_waitqueue_t. + (gl_rwlock_t): Update. + * lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t. + +2008-09-22 Eric Blake + Bruno Haible + + vasnprintf: fix x86/glibc regression on printf("%La", 0.0L) + * vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that supply %A + but mishandle pseudo-NaN. + Reported by Simon Josefsson. + +2008-09-18 Bruno Haible + + * vasnprintf.c (VASNPRINTF): When printing ±0.0L in + NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two + digits for the exponent. + +2008-09-18 Jim Meyering + Bruno Haible + + * vasnprintf.c (decimal_point_char): Define also if + NEED_PRINTF_INFINITE_LONG_DOUBLE. + +2008-09-16 Bruno Haible + and Eric Blake + + vasnprintf: support Irix 5.3 + * vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms that + mishandle long double infinity. + Reported by Tom G. Christensen. + +2008-09-02 Eric Blake + + vasnprintf-posix: handle large precision via %.*d + * vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf + when handling it ourselves. + Reported by Alain Guibert. + +2008-07-10 Ben Pfaff + + * vasnprintf.c: Update references to renamed include files. + +2008-05-21 Bruno Haible + + Avoid one more warning from gcc. + * vasnprintf.c (IF_LINT): Update comments. + (VASNPRINTF): Use it also for the 'prefix' array initializer. + +2008-05-21 Jim Meyering + + avoid a warning from gcc + * vasnprintf.c (IF_LINT): Define. + (scale10_round_decimal_long_double): + Use it to avoid a "may be used uninitialized" warning. + (scale10_round_decimal_double): Likewise. + +2008-05-16 Jim Meyering + Bruno Haible + + Avoid some warnings from "gcc -Wshadow". + * vasnprintf.c (exp, remainder): Define to different identifiers. + +2008-04-19 Bruno Haible + + Work around snprintf bug on Linux libc5. + * vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems. + +2008-04-19 Bruno Haible + + * vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error from + 0.0058 to less than 10^-7. + +2008-04-19 Bruno Haible + + Fix rounding when a precision is given. + * vasnprintf.c (is_borderline): New function. + (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with + 9...9x. + Reported by John Darrington via + Ben Pfaff . + +2008-03-30 Bruno Haible + + Fix buffer overrun. + * vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves: + Don't consider the width for tmp_length. Check count against tmp_length + before doing the padding. Ensure enough allocation during padding. + +2008-03-30 Bruno Haible + + * vasnprintf.c (EOVERFLOW): Remove fallback. + +2008-03-30 Bruno Haible + + Fix bug introduced on 2007-06-10. + * vasnprintf.c (VASNPRINTF): When performing zero-padding, use + spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO. + +2008-02-28 Atsushi SAKAI + + * xsize.h: Fix typo in comment: s/tupe/type/. + +2008-02-07 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems. + Avoids a crash on Windows Vista. + Reported by Adam Strzelecki via + Simon Josefsson . + +2008-02-06 Bruno Haible + + Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20. + * vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST. + Reported by Peter Fales . + +2008-02-06 Bruno Haible + + Fix bug introduced on 2007-06-10. + * vasnprintf.c (VASNPRINTF): Perform zero-padding also if + !NEED_PRINTF_FLAG_ZERO. + +2008-01-29 Jim Meyering + + vasnprintf.c: Avoid warning about unused label + * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the + "overflow" label definition and associated code with the + same cpp condition that guards the sole use of that label. + +2008-01-26 Bruno Haible + + Rename isnan, applicable to 'double' only, to isnand. + * vasnprintf.c: Include isnand.h instead of isnan.h. + (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan. + +2008-01-08 Jim Meyering + Bruno Haible + + * printf-parse.c (PRINTF_PARSE): Handle a size specifier "q" on MacOS X + and a size specifier "I64" on mingw. Needed for PRIdMAX. + Reported by Peter Fales in + . + +2008-01-10 Eric Blake + + * relocatable.h: Fix a comment. + +2008-01-10 Bruno Haible + + * relocatable.h (relocate): State whether result is freshly allocated + or not. + * relocatable.c (relocate): Return a freshly allocated string instead + of a pointer to a privately held string. + Reported by Sylvain Beucler . + +2008-01-01 Sylvain Beucler + Bruno Haible + + Improve memory cleanup in 'relocatable' module. + * relocatable.h (compute_curr_prefix): Change return type to 'char *'. + * relocatable.c (compute_curr_prefix): Change return type to 'char *'. + Free curr_installdir after use. + (relocate): Free curr_prefix_better after use. + +2008-04-13 Bruno Haible + + * localcharset.c (OS2): Don't redefine if already defined. + Reported by Elbert Pol . + +2008-09-20 Bruno Haible + + * libgnuintl.h.in: Use (defined X && X) idiom to test whether a + possibly undefined macro has a certain value. Pacifies users of the + gcc option -Wundef. + Reported by Christian Weisgerber and + Ralf Wildenhues . + +2008-08-18 Bruno Haible + + * threadlib.c: Include . + +2008-08-18 Bruno Haible + + * lock.h [USE_SOLARIS_THREADS]: Fix glthread_recursive_lock_* macros. + * lock.c (glthread_recursive_lock_destroy_multithreaded): Fix syntax + error. + +2008-08-17 Bruno Haible + + * lock.h: Include always. + +2008-08-17 Bruno Haible + + * threadlib.c: New file, extracted from lock.c. + * lock.c (dummy_thread_func, glthread_in_use): Remove functions. + * Makefile.in (SOURCES): Add threadlib.c. + (OBJECTS): Add threadlib.$lo. + (threadlib.lo): New rule. + +2008-08-14 Bruno Haible + + * lock.h (glthread_lock_lock, glthread_lock_unlock, + glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock, + glthread_rwlock_unlock, glthread_rwlock_destroy, + glthread_recursive_lock_lock, glthread_recursive_lock_unlock, + glthread_recursive_lock_destroy): Define as macros always. + * lock.c (glthread_lock_lock_func): Renamed from glthread_lock_lock. + (glthread_lock_unlock_func): Renamed from glthread_lock_unlock. + (glthread_lock_destroy_func): Renamed from glthread_lock_destroy. + (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock. + (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock. + (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock. + (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy. + (glthread_recursive_lock_lock_func): Renamed from + glthread_recursive_lock_lock. + (glthread_recursive_lock_unlock_func): Renamed from + glthread_recursive_lock_unlock. + (glthread_recursive_lock_destroy_func): Renamed from + glthread_recursive_lock_destroy. + +2008-08-07 Paolo Bonzini + + * lock.c (glthread_recursive_lock_init_multithreaded) + [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo. + +2008-08-03 Bruno Haible + + Additional non-aborting API for lock. + * lock.h: Include . + (glthread_lock_init): New macro/function. + (gl_lock_init): Define as wrapper around glthread_lock_init. + (glthread_lock_lock): New macro/function. + (gl_lock_lock): Define as wrapper around glthread_lock_lock. + (glthread_lock_unlock): New macro/function. + (gl_lock_unlock): Define as wrapper around glthread_lock_unlock. + (glthread_lock_destroy): New macro/function. + (gl_lock_destroy): Define as wrapper around glthread_lock_destroy. + (glthread_rwlock_init): New macro/function. + (gl_rwlock_init): Define as wrapper around glthread_rwlock_init. + (glthread_rwlock_rdlock): New macro/function. + (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock. + (glthread_rwlock_wrlock): New macro/function. + (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock. + (glthread_rwlock_unlock): New macro/function. + (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock. + (glthread_rwlock_destroy): New macro/function. + (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy. + (glthread_recursive_lock_init): New macro/function. + (gl_recursive_lock_init): Define as wrapper around + glthread_recursive_lock_init. + (glthread_recursive_lock_lock): New macro/function. + (gl_recursive_lock_lock): Define as wrapper around + glthread_recursive_lock_lock. + (glthread_recursive_lock_unlock): New macro/function. + (gl_recursive_lock_unlock): Define as wrapper around + glthread_recursive_lock_unlock. + (glthread_recursive_lock_destroy): New macro/function. + (gl_recursive_lock_destroy): Define as wrapper around + glthread_recursive_lock_destroy. + (glthread_once): New macro/function. + (gl_once): Define as wrapper around glthread_once. + Update function declarations. + * lock.c (glthread_rwlock_init_multithreaded): Renamed from + glthread_rwlock_init. Return error code. + (glthread_rwlock_rdlock_multithreaded): Renamed from + glthread_rwlock_rdlock. Return error code. + (glthread_rwlock_wrlock_multithreaded): Renamed from + glthread_rwlock_wrlock. Return error code. + (glthread_rwlock_unlock_multithreaded): Renamed from + glthread_rwlock_unlock. Return error code. + (glthread_rwlock_destroy_multithreaded): Renamed from + glthread_rwlock_destroy. Return error code. + (glthread_recursive_lock_init_multithreaded): Renamed from + glthread_recursive_lock_init. Return error code. + (glthread_recursive_lock_lock_multithreaded): Renamed from + glthread_recursive_lock_lock. Return error code. + (glthread_recursive_lock_unlock_multithreaded): Renamed from + glthread_recursive_lock_unlock. Return error code. + (glthread_recursive_lock_destroy_multithreaded): Renamed from + glthread_recursive_lock_destroy. Return error code. + (glthread_once_call): Make static. + (glthread_once_multithreaded): Renamed from glthread_once. + Suggested by Yoann Vandoorselaere . + +2008-03-30 Ulrich Drepper + + [BZ #5443] + * dcigettext.c (__dcigettext): Get reader lock for locale data before + looking for translation. + +2008-03-30 Jakub Jelinek + + * dcigettext.c (_nl_find_msg): Reread nconversions after acquiring + wrlock. Do conv_tab allocation while holding lock. + + +2008-02-10 Jim Meyering + + * bindtextdom.c (set_binding_values): Remove useless "if" before "free". + * loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise. + +2008-05-27 Bruno Haible + + * localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for + current mingw. + Reported by Jose E. Marchesi . + +2008-04-21 Bruno Haible + + * localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN): Actually + assign a value. + +2008-04-17 Bruno Haible + + * lock.h (gl_lock_destroy, gl_rwlock_destroy, + gl_recursive_lock_destroy): Provide no-op definitions for the dummy + implementation. + Patch by Bruce Merry . + +2008-04-16 Bruno Haible + + * localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR): New + macros. + (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN, + SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC, + SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN, + SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC, + SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU, + SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US, + SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New + macros. + (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian, + Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua, + Northern Sotho, Uighur. + +2008-04-16 Bruno Haible + + * localename.c (SUBLANG_SINDHI_INDIA): New macro. + (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2. + (gl_locale_name_from_win32_LANGID): Fix code for Sindhi. + Reported by Daniel Bergström . + +2007-12-25 KJK::Hyperion + Bruno Haible + + * gettextP.h (gl_locale_name_from_win32_LANGID, + gl_locale_name_from_win32_LCID): New macros. + * localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New + function. + (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID): + New functions, mostly extracted from gl_locale_name_default. + (gl_locale_name_default): Use gl_locale_name_from_win32_LCID. + * langprefs.c [WIN32_NATIVE] (_nl_locale_name_canonicalize, + _nl_locale_name_from_win32_LANGID, _nl_locale_name_from_win32_LCID): + New declarations. + (_nl_language_preferences_win32_mui, _nl_language_preferences_win32_ME, + _nl_language_preferences_win32_95, ret_first_language, + _nl_language_preferences_win32_system): New functions. + (_nl_language_preferences_default): Use them. + +2007-11-30 Bruno Haible + + * lock.h (gl_recursive_lock_init) [PTHREAD && + PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call + glthread_recursive_lock_init. + * lock.c (glthread_recursive_lock_init) + [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function. + Reported by Yoann Vandoorselaere . + +2007-11-28 Bruno Haible + + * libgnuintl.h.in (fprintf, vfprintf, printf, vprintf, sprintf, + vsprintf, snprintf, vsnprintf, asprintf, vasprintf): Don't override + definitions made by gnulib. + Reported by Jim Meyering . + +2007-11-28 Bruno Haible + + * l10nflist.c (_nl_normalize_codeset): Change type of 'len' variable + to size_t. + Patch by Wim Lewis. + +2007-11-26 Bruno Haible + + * vasnprintf.c (decode_long_double): Don't abort if the 'long double' + type has excess precision. + Reported by Jim Meyering in + . + +2007-11-15 Bruno Haible + + Avoid crash by stack overflow when msgid is very long. + * dcigettext.c (struct known_translation_t): Turn msgid into a union. + (transcmp): Use the appropriate part of s1->msgid and s2->msgid. + (DCIGETTEXT): Change the allocation of the 'search' variable so that + it needs only fixed stack space. Delay the initialization of + msgid_len until it is needed. + Reported by Laurent Gaffié via + Ismail Dönmez . + +2007-11-14 Bruno Haible + + * config.charset: Update for OpenBSD 4.1. + Reported and helped by Ben Pfaff . + +2007-11-09 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf with a + size argument < 2. + +2007-11-09 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf buffer. + Fixes an inefficiency introduced on 2007-11-03. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/intl/config.charset gettext-0.18.1.1/gettext-runtime/intl/config.charset --- gettext-0.17/gettext-runtime/intl/config.charset 2006-06-19 10:41:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/config.charset 2010-06-06 12:49:57.000000000 +0000 @@ -1,7 +1,7 @@ #! /bin/sh # Output a system dependent table of character encoding aliases. # -# Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published @@ -31,21 +31,21 @@ # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems -# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin -# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-3 Y glibc solaris -# ISO-8859-4 Y osf solaris freebsd netbsd darwin -# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-6 Y glibc aix hpux solaris -# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin -# ISO-8859-8 Y glibc aix hpux osf solaris -# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin -# ISO-8859-13 glibc netbsd darwin -# ISO-8859-14 glibc -# ISO-8859-15 glibc aix osf solaris freebsd darwin -# KOI8-R Y glibc solaris freebsd netbsd darwin -# KOI8-U Y glibc freebsd netbsd darwin +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-3 Y glibc solaris cygwin +# ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-6 Y glibc aix hpux solaris cygwin +# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin +# ISO-8859-8 Y glibc aix hpux osf solaris cygwin +# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin +# ISO-8859-13 glibc netbsd openbsd darwin cygwin +# ISO-8859-14 glibc cygwin +# ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin +# KOI8-R Y glibc solaris freebsd netbsd openbsd darwin +# KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos @@ -58,20 +58,21 @@ # CP862 dos # CP864 dos # CP865 dos -# CP866 freebsd netbsd darwin dos +# CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix -# CP932 aix woe32 dos +# CP932 aix cygwin woe32 dos # CP943 aix -# CP949 osf woe32 dos +# CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix +# CP1131 darwin # CP1250 woe32 -# CP1251 glibc solaris netbsd darwin woe32 +# CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 @@ -80,18 +81,20 @@ # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin +# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd -# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin -# BIG5-HKSCS glibc solaris -# GBK glibc aix osf solaris woe32 dos -# GB18030 glibc solaris netbsd +# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin +# BIG5-HKSCS glibc solaris darwin +# GBK glibc aix osf solaris darwin cygwin woe32 dos +# GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 -# TIS-620 glibc aix hpux osf solaris +# TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc -# GEORGIAN-PS glibc +# ARMSCII-8 glibc darwin +# GEORGIAN-PS glibc cygwin +# PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux @@ -100,7 +103,7 @@ # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf -# UTF-8 Y glibc aix hpux osf solaris netbsd darwin +# UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). @@ -121,520 +124,561 @@ # List of references, updated during installation: echo "# Packages using this file: " case "$os" in - linux-gnulibc1*) - # Linux libc5 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - echo "POSIX ASCII" - for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ - en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ - en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ - es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ - et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ - fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ - it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ - sv_FI sv_SE; do - echo "$l ISO-8859-1" - echo "$l.iso-8859-1 ISO-8859-1" - echo "$l.iso-8859-15 ISO-8859-15" - echo "$l.iso-8859-15@euro ISO-8859-15" - echo "$l@euro ISO-8859-15" - echo "$l.cp-437 CP437" - echo "$l.cp-850 CP850" - echo "$l.cp-1252 CP1252" - echo "$l.cp-1252@euro CP1252" - #echo "$l.atari-st ATARI-ST" # not a commonly used encoding - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ - sl_SI sr sr_CS sr_YU; do - echo "$l ISO-8859-2" - echo "$l.iso-8859-2 ISO-8859-2" - echo "$l.cp-852 CP852" - echo "$l.cp-1250 CP1250" - echo "$l.utf-8 UTF-8" - done - for l in mk mk_MK ru ru_RU; do - echo "$l ISO-8859-5" - echo "$l.iso-8859-5 ISO-8859-5" - echo "$l.koi8-r KOI8-R" - echo "$l.cp-866 CP866" - echo "$l.cp-1251 CP1251" - echo "$l.utf-8 UTF-8" - done - for l in ar ar_SA; do - echo "$l ISO-8859-6" - echo "$l.iso-8859-6 ISO-8859-6" - echo "$l.cp-864 CP864" - #echo "$l.cp-868 CP868" # not a commonly used encoding - echo "$l.cp-1256 CP1256" - echo "$l.utf-8 UTF-8" - done - for l in el el_GR gr gr_GR; do - echo "$l ISO-8859-7" - echo "$l.iso-8859-7 ISO-8859-7" - echo "$l.cp-869 CP869" - echo "$l.cp-1253 CP1253" - echo "$l.cp-1253@euro CP1253" - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in he he_IL iw iw_IL; do - echo "$l ISO-8859-8" - echo "$l.iso-8859-8 ISO-8859-8" - echo "$l.cp-862 CP862" - echo "$l.cp-1255 CP1255" - echo "$l.utf-8 UTF-8" - done - for l in tr tr_TR; do - echo "$l ISO-8859-9" - echo "$l.iso-8859-9 ISO-8859-9" - echo "$l.cp-857 CP857" - echo "$l.cp-1254 CP1254" - echo "$l.utf-8 UTF-8" - done - for l in lt lt_LT lv lv_LV; do - #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name - echo "$l ISO-8859-13" - done - for l in ru_UA uk uk_UA; do - echo "$l KOI8-U" - done - for l in zh zh_CN; do - #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name - echo "$l GB2312" - done - for l in ja ja_JP ja_JP.EUC; do - echo "$l EUC-JP" - done - for l in ko ko_KR; do - echo "$l EUC-KR" - done - for l in th th_TH; do - echo "$l TIS-620" - done - for l in fa fa_IR; do - #echo "$l ISIRI-3342" # a broken encoding - echo "$l.utf-8 UTF-8" - done - ;; - linux* | *-gnu*) - # With glibc-2.1 or newer, we don't need any canonicalization, - # because glibc has iconv and both glibc and libiconv support all - # GNU canonical names directly. Therefore, the Makefile does not - # need to install the alias file at all. - # The following applies only to glibc-2.0.x and older libcs. - echo "ISO_646.IRV:1983 ASCII" - ;; - aix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "IBM-850 CP850" - echo "IBM-856 CP856" - echo "IBM-921 ISO-8859-13" - echo "IBM-922 CP922" - echo "IBM-932 CP932" - echo "IBM-943 CP943" - echo "IBM-1046 CP1046" - echo "IBM-1124 CP1124" - echo "IBM-1129 CP1129" - echo "IBM-1252 CP1252" - echo "IBM-eucCN GB2312" - echo "IBM-eucJP EUC-JP" - echo "IBM-eucKR EUC-KR" - echo "IBM-eucTW EUC-TW" - echo "big5 BIG5" - echo "GBK GBK" - echo "TIS-620 TIS-620" - echo "UTF-8 UTF-8" - ;; - hpux*) - echo "iso88591 ISO-8859-1" - echo "iso88592 ISO-8859-2" - echo "iso88595 ISO-8859-5" - echo "iso88596 ISO-8859-6" - echo "iso88597 ISO-8859-7" - echo "iso88598 ISO-8859-8" - echo "iso88599 ISO-8859-9" - echo "iso885915 ISO-8859-15" - echo "roman8 HP-ROMAN8" - echo "arabic8 HP-ARABIC8" - echo "greek8 HP-GREEK8" - echo "hebrew8 HP-HEBREW8" - echo "turkish8 HP-TURKISH8" - echo "kana8 HP-KANA8" - echo "tis620 TIS-620" - echo "big5 BIG5" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "hp15CN GB2312" - #echo "ccdc ?" # what is this? - echo "SJIS SHIFT_JIS" - echo "utf8 UTF-8" - ;; - irix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-9 ISO-8859-9" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - ;; - osf*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "cp850 CP850" - echo "big5 BIG5" - echo "dechanyu DEC-HANYU" - echo "dechanzi GB2312" - echo "deckanji DEC-KANJI" - echo "deckorean EUC-KR" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "GBK GBK" - echo "KSC5601 CP949" - echo "sdeckanji EUC-JP" - echo "SJIS SHIFT_JIS" - echo "TACTIS TIS-620" - echo "UTF-8 UTF-8" - ;; - solaris*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-3 ISO-8859-3" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "koi8-r KOI8-R" - echo "ansi-1251 CP1251" - echo "BIG5 BIG5" - echo "Big5-HKSCS BIG5-HKSCS" - echo "gb2312 GB2312" - echo "GBK GBK" - echo "GB18030 GB18030" - echo "cns11643 EUC-TW" - echo "5601 EUC-KR" - echo "ko_KR.johap92 JOHAB" - echo "eucJP EUC-JP" - echo "PCK SHIFT_JIS" - echo "TIS620.2533 TIS-620" - #echo "sun_eu_greek ?" # what is this? - echo "UTF-8 UTF-8" - ;; - freebsd* | os2*) - # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just - # reuse FreeBSD's locale data for OS/2. - echo "C ASCII" - echo "US-ASCII ASCII" - for l in la_LN lt_LN; do - echo "$l.ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ - lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do - echo "$l.ISO_8859-1 ISO-8859-1" - echo "$l.DIS_8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do - echo "$l.ISO_8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO_8859-4 ISO-8859-4" - done - for l in ru_RU ru_SU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO_8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ja_JP.Shift_JIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - netbsd*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-13 ISO-8859-13" - echo "ISO8859-15 ISO-8859-15" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "BIG5 BIG5" - echo "SJIS SHIFT_JIS" - ;; - darwin[56]*) - # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - for l in en_AU en_CA en_GB en_US la_LN; do - echo "$l.US-ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ - nl_NL no_NO pt_PT sv_SE; do - echo "$l ISO-8859-1" - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in la_LN; do - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do - echo "$l.ISO8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO8859-4 ISO-8859-4" - done - for l in ru_RU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - for l in bg_BG; do - echo "$l.CP1251 CP1251" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - darwin*) - # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: - # - It returns the empty string when LANG is set to a locale of the - # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 - # LC_CTYPE file. - # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by - # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. - # - The documentation says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # It also says - # "An additional caveat is that string parameters for files, - # paths, and other file-system entities must be in canonical - # UTF-8. In a canonical UTF-8 Unicode string, all decomposable - # characters are decomposed ..." - # but this is not true: You can pass non-decomposed UTF-8 strings - # to file system functions, and it is the OS which will convert - # them to decomposed UTF-8 before accessing the file system. - # - The Apple Terminal application displays UTF-8 by default. - # - However, other applications are free to use different encodings: - # - xterm uses ISO-8859-1 by default. - # - TextEdit uses MacRoman by default. - # We prefer UTF-8 over decomposed UTF-8-MAC because one should - # minimize the use of decomposed Unicode. Unfortunately, through the - # Darwin file system, decomposed UTF-8 strings are leaked into user - # space nevertheless. - echo "* UTF-8" - ;; - beos*) - # BeOS has a single locale, and it has UTF-8 encoding. - echo "* UTF-8" - ;; - msdosdjgpp*) - # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "#" - echo "# The encodings given here may not all be correct." - echo "# If you find that the encoding given for your language and" - echo "# country is not the one your DOS machine actually uses, just" - echo "# correct it in this file, and send a mail to" - echo "# Juan Manuel Guerrero " - echo "# and Bruno Haible ." - echo "#" - echo "C ASCII" - # ISO-8859-1 languages - echo "ca CP850" - echo "ca_ES CP850" - echo "da CP865" # not CP850 ?? - echo "da_DK CP865" # not CP850 ?? - echo "de CP850" - echo "de_AT CP850" - echo "de_CH CP850" - echo "de_DE CP850" - echo "en CP850" - echo "en_AU CP850" # not CP437 ?? - echo "en_CA CP850" - echo "en_GB CP850" - echo "en_NZ CP437" - echo "en_US CP437" - echo "en_ZA CP850" # not CP437 ?? - echo "es CP850" - echo "es_AR CP850" - echo "es_BO CP850" - echo "es_CL CP850" - echo "es_CO CP850" - echo "es_CR CP850" - echo "es_CU CP850" - echo "es_DO CP850" - echo "es_EC CP850" - echo "es_ES CP850" - echo "es_GT CP850" - echo "es_HN CP850" - echo "es_MX CP850" - echo "es_NI CP850" - echo "es_PA CP850" - echo "es_PY CP850" - echo "es_PE CP850" - echo "es_SV CP850" - echo "es_UY CP850" - echo "es_VE CP850" - echo "et CP850" - echo "et_EE CP850" - echo "eu CP850" - echo "eu_ES CP850" - echo "fi CP850" - echo "fi_FI CP850" - echo "fr CP850" - echo "fr_BE CP850" - echo "fr_CA CP850" - echo "fr_CH CP850" - echo "fr_FR CP850" - echo "ga CP850" - echo "ga_IE CP850" - echo "gd CP850" - echo "gd_GB CP850" - echo "gl CP850" - echo "gl_ES CP850" - echo "id CP850" # not CP437 ?? - echo "id_ID CP850" # not CP437 ?? - echo "is CP861" # not CP850 ?? - echo "is_IS CP861" # not CP850 ?? - echo "it CP850" - echo "it_CH CP850" - echo "it_IT CP850" - echo "lt CP775" - echo "lt_LT CP775" - echo "lv CP775" - echo "lv_LV CP775" - echo "nb CP865" # not CP850 ?? - echo "nb_NO CP865" # not CP850 ?? - echo "nl CP850" - echo "nl_BE CP850" - echo "nl_NL CP850" - echo "nn CP865" # not CP850 ?? - echo "nn_NO CP865" # not CP850 ?? - echo "no CP865" # not CP850 ?? - echo "no_NO CP865" # not CP850 ?? - echo "pt CP850" - echo "pt_BR CP850" - echo "pt_PT CP850" - echo "sv CP850" - echo "sv_SE CP850" - # ISO-8859-2 languages - echo "cs CP852" - echo "cs_CZ CP852" - echo "hr CP852" - echo "hr_HR CP852" - echo "hu CP852" - echo "hu_HU CP852" - echo "pl CP852" - echo "pl_PL CP852" - echo "ro CP852" - echo "ro_RO CP852" - echo "sk CP852" - echo "sk_SK CP852" - echo "sl CP852" - echo "sl_SI CP852" - echo "sq CP852" - echo "sq_AL CP852" - echo "sr CP852" # CP852 or CP866 or CP855 ?? - echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? - echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? - # ISO-8859-3 languages - echo "mt CP850" - echo "mt_MT CP850" - # ISO-8859-5 languages - echo "be CP866" - echo "be_BE CP866" - echo "bg CP866" # not CP855 ?? - echo "bg_BG CP866" # not CP855 ?? - echo "mk CP866" # not CP855 ?? - echo "mk_MK CP866" # not CP855 ?? - echo "ru CP866" - echo "ru_RU CP866" - echo "uk CP1125" - echo "uk_UA CP1125" - # ISO-8859-6 languages - echo "ar CP864" - echo "ar_AE CP864" - echo "ar_DZ CP864" - echo "ar_EG CP864" - echo "ar_IQ CP864" - echo "ar_IR CP864" - echo "ar_JO CP864" - echo "ar_KW CP864" - echo "ar_MA CP864" - echo "ar_OM CP864" - echo "ar_QA CP864" - echo "ar_SA CP864" - echo "ar_SY CP864" - # ISO-8859-7 languages - echo "el CP869" - echo "el_GR CP869" - # ISO-8859-8 languages - echo "he CP862" - echo "he_IL CP862" - # ISO-8859-9 languages - echo "tr CP857" - echo "tr_TR CP857" - # Japanese - echo "ja CP932" - echo "ja_JP CP932" - # Chinese - echo "zh_CN GBK" - echo "zh_TW CP950" # not CP938 ?? - # Korean - echo "kr CP949" # not CP934 ?? - echo "kr_KR CP949" # not CP934 ?? - # Thai - echo "th CP874" - echo "th_TH CP874" - # Other - echo "eo CP850" - echo "eo_EO CP850" - ;; + linux-gnulibc1*) + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "POSIX ASCII" + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ + sv_FI sv_SE; do + echo "$l ISO-8859-1" + echo "$l.iso-8859-1 ISO-8859-1" + echo "$l.iso-8859-15 ISO-8859-15" + echo "$l.iso-8859-15@euro ISO-8859-15" + echo "$l@euro ISO-8859-15" + echo "$l.cp-437 CP437" + echo "$l.cp-850 CP850" + echo "$l.cp-1252 CP1252" + echo "$l.cp-1252@euro CP1252" + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ + sl_SI sr sr_CS sr_YU; do + echo "$l ISO-8859-2" + echo "$l.iso-8859-2 ISO-8859-2" + echo "$l.cp-852 CP852" + echo "$l.cp-1250 CP1250" + echo "$l.utf-8 UTF-8" + done + for l in mk mk_MK ru ru_RU; do + echo "$l ISO-8859-5" + echo "$l.iso-8859-5 ISO-8859-5" + echo "$l.koi8-r KOI8-R" + echo "$l.cp-866 CP866" + echo "$l.cp-1251 CP1251" + echo "$l.utf-8 UTF-8" + done + for l in ar ar_SA; do + echo "$l ISO-8859-6" + echo "$l.iso-8859-6 ISO-8859-6" + echo "$l.cp-864 CP864" + #echo "$l.cp-868 CP868" # not a commonly used encoding + echo "$l.cp-1256 CP1256" + echo "$l.utf-8 UTF-8" + done + for l in el el_GR gr gr_GR; do + echo "$l ISO-8859-7" + echo "$l.iso-8859-7 ISO-8859-7" + echo "$l.cp-869 CP869" + echo "$l.cp-1253 CP1253" + echo "$l.cp-1253@euro CP1253" + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in he he_IL iw iw_IL; do + echo "$l ISO-8859-8" + echo "$l.iso-8859-8 ISO-8859-8" + echo "$l.cp-862 CP862" + echo "$l.cp-1255 CP1255" + echo "$l.utf-8 UTF-8" + done + for l in tr tr_TR; do + echo "$l ISO-8859-9" + echo "$l.iso-8859-9 ISO-8859-9" + echo "$l.cp-857 CP857" + echo "$l.cp-1254 CP1254" + echo "$l.utf-8 UTF-8" + done + for l in lt lt_LT lv lv_LV; do + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name + echo "$l ISO-8859-13" + done + for l in ru_UA uk uk_UA; do + echo "$l KOI8-U" + done + for l in zh zh_CN; do + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name + echo "$l GB2312" + done + for l in ja ja_JP ja_JP.EUC; do + echo "$l EUC-JP" + done + for l in ko ko_KR; do + echo "$l EUC-KR" + done + for l in th th_TH; do + echo "$l TIS-620" + done + for l in fa fa_IR; do + #echo "$l ISIRI-3342" # a broken encoding + echo "$l.utf-8 UTF-8" + done + ;; + linux* | *-gnu*) + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" + ;; + aix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "IBM-850 CP850" + echo "IBM-856 CP856" + echo "IBM-921 ISO-8859-13" + echo "IBM-922 CP922" + echo "IBM-932 CP932" + echo "IBM-943 CP943" + echo "IBM-1046 CP1046" + echo "IBM-1124 CP1124" + echo "IBM-1129 CP1129" + echo "IBM-1252 CP1252" + echo "IBM-eucCN GB2312" + echo "IBM-eucJP EUC-JP" + echo "IBM-eucKR EUC-KR" + echo "IBM-eucTW EUC-TW" + echo "big5 BIG5" + echo "GBK GBK" + echo "TIS-620 TIS-620" + echo "UTF-8 UTF-8" + ;; + hpux*) + echo "iso88591 ISO-8859-1" + echo "iso88592 ISO-8859-2" + echo "iso88595 ISO-8859-5" + echo "iso88596 ISO-8859-6" + echo "iso88597 ISO-8859-7" + echo "iso88598 ISO-8859-8" + echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" + echo "roman8 HP-ROMAN8" + echo "arabic8 HP-ARABIC8" + echo "greek8 HP-GREEK8" + echo "hebrew8 HP-HEBREW8" + echo "turkish8 HP-TURKISH8" + echo "kana8 HP-KANA8" + echo "tis620 TIS-620" + echo "big5 BIG5" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "hp15CN GB2312" + #echo "ccdc ?" # what is this? + echo "SJIS SHIFT_JIS" + echo "utf8 UTF-8" + ;; + irix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + ;; + osf*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "cp850 CP850" + echo "big5 BIG5" + echo "dechanyu DEC-HANYU" + echo "dechanzi GB2312" + echo "deckanji DEC-KANJI" + echo "deckorean EUC-KR" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "GBK GBK" + echo "KSC5601 CP949" + echo "sdeckanji EUC-JP" + echo "SJIS SHIFT_JIS" + echo "TACTIS TIS-620" + echo "UTF-8 UTF-8" + ;; + solaris*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-3 ISO-8859-3" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "koi8-r KOI8-R" + echo "ansi-1251 CP1251" + echo "BIG5 BIG5" + echo "Big5-HKSCS BIG5-HKSCS" + echo "gb2312 GB2312" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "cns11643 EUC-TW" + echo "5601 EUC-KR" + echo "ko_KR.johap92 JOHAB" + echo "eucJP EUC-JP" + echo "PCK SHIFT_JIS" + echo "TIS620.2533 TIS-620" + #echo "sun_eu_greek ?" # what is this? + echo "UTF-8 UTF-8" + ;; + freebsd* | os2*) + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just + # reuse FreeBSD's locale data for OS/2. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in la_LN lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO_8859-4 ISO-8859-4" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO_8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ja_JP.Shift_JIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + netbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "BIG5 BIG5" + echo "SJIS SHIFT_JIS" + ;; + openbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + ;; + darwin[56]*) + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + for l in en_AU en_CA en_GB en_US la_LN; do + echo "$l.US-ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ + nl_NL no_NO pt_PT sv_SE; do + echo "$l ISO-8859-1" + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in la_LN; do + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do + echo "$l.ISO8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO8859-4 ISO-8859-4" + done + for l in ru_RU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + for l in bg_BG; do + echo "$l.CP1251 CP1251" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + darwin*) + # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is + # useless: + # - It returns the empty string when LANG is set to a locale of the + # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 + # LC_CTYPE file. + # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by + # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. + # - The documentation says: + # "... all code that calls BSD system routines should ensure + # that the const *char parameters of these routines are in UTF-8 + # encoding. All BSD system functions expect their string + # parameters to be in UTF-8 encoding and nothing else." + # It also says + # "An additional caveat is that string parameters for files, + # paths, and other file-system entities must be in canonical + # UTF-8. In a canonical UTF-8 Unicode string, all decomposable + # characters are decomposed ..." + # but this is not true: You can pass non-decomposed UTF-8 strings + # to file system functions, and it is the OS which will convert + # them to decomposed UTF-8 before accessing the file system. + # - The Apple Terminal application displays UTF-8 by default. + # - However, other applications are free to use different encodings: + # - xterm uses ISO-8859-1 by default. + # - TextEdit uses MacRoman by default. + # We prefer UTF-8 over decomposed UTF-8-MAC because one should + # minimize the use of decomposed Unicode. Unfortunately, through the + # Darwin file system, decomposed UTF-8 strings are leaked into user + # space nevertheless. + # Then there are also the locales with encodings other than US-ASCII + # and UTF-8. These locales can be occasionally useful to users (e.g. + # when grepping through ISO-8859-1 encoded text files), when all their + # file names are in US-ASCII. + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "KOI8-R KOI8-R" + echo "KOI8-U KOI8-U" + echo "CP866 CP866" + echo "CP949 CP949" + echo "CP1131 CP1131" + echo "CP1251 CP1251" + echo "eucCN GB2312" + echo "GB2312 GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "Big5 BIG5" + echo "Big5HKSCS BIG5-HKSCS" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "SJIS SHIFT_JIS" + echo "ARMSCII-8 ARMSCII-8" + echo "PT154 PT154" + #echo "ISCII-DEV ?" + echo "* UTF-8" + ;; + beos* | haiku*) + # BeOS and Haiku have a single locale, and it has UTF-8 encoding. + echo "* UTF-8" + ;; + msdosdjgpp*) + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "#" + echo "# The encodings given here may not all be correct." + echo "# If you find that the encoding given for your language and" + echo "# country is not the one your DOS machine actually uses, just" + echo "# correct it in this file, and send a mail to" + echo "# Juan Manuel Guerrero " + echo "# and Bruno Haible ." + echo "#" + echo "C ASCII" + # ISO-8859-1 languages + echo "ca CP850" + echo "ca_ES CP850" + echo "da CP865" # not CP850 ?? + echo "da_DK CP865" # not CP850 ?? + echo "de CP850" + echo "de_AT CP850" + echo "de_CH CP850" + echo "de_DE CP850" + echo "en CP850" + echo "en_AU CP850" # not CP437 ?? + echo "en_CA CP850" + echo "en_GB CP850" + echo "en_NZ CP437" + echo "en_US CP437" + echo "en_ZA CP850" # not CP437 ?? + echo "es CP850" + echo "es_AR CP850" + echo "es_BO CP850" + echo "es_CL CP850" + echo "es_CO CP850" + echo "es_CR CP850" + echo "es_CU CP850" + echo "es_DO CP850" + echo "es_EC CP850" + echo "es_ES CP850" + echo "es_GT CP850" + echo "es_HN CP850" + echo "es_MX CP850" + echo "es_NI CP850" + echo "es_PA CP850" + echo "es_PY CP850" + echo "es_PE CP850" + echo "es_SV CP850" + echo "es_UY CP850" + echo "es_VE CP850" + echo "et CP850" + echo "et_EE CP850" + echo "eu CP850" + echo "eu_ES CP850" + echo "fi CP850" + echo "fi_FI CP850" + echo "fr CP850" + echo "fr_BE CP850" + echo "fr_CA CP850" + echo "fr_CH CP850" + echo "fr_FR CP850" + echo "ga CP850" + echo "ga_IE CP850" + echo "gd CP850" + echo "gd_GB CP850" + echo "gl CP850" + echo "gl_ES CP850" + echo "id CP850" # not CP437 ?? + echo "id_ID CP850" # not CP437 ?? + echo "is CP861" # not CP850 ?? + echo "is_IS CP861" # not CP850 ?? + echo "it CP850" + echo "it_CH CP850" + echo "it_IT CP850" + echo "lt CP775" + echo "lt_LT CP775" + echo "lv CP775" + echo "lv_LV CP775" + echo "nb CP865" # not CP850 ?? + echo "nb_NO CP865" # not CP850 ?? + echo "nl CP850" + echo "nl_BE CP850" + echo "nl_NL CP850" + echo "nn CP865" # not CP850 ?? + echo "nn_NO CP865" # not CP850 ?? + echo "no CP865" # not CP850 ?? + echo "no_NO CP865" # not CP850 ?? + echo "pt CP850" + echo "pt_BR CP850" + echo "pt_PT CP850" + echo "sv CP850" + echo "sv_SE CP850" + # ISO-8859-2 languages + echo "cs CP852" + echo "cs_CZ CP852" + echo "hr CP852" + echo "hr_HR CP852" + echo "hu CP852" + echo "hu_HU CP852" + echo "pl CP852" + echo "pl_PL CP852" + echo "ro CP852" + echo "ro_RO CP852" + echo "sk CP852" + echo "sk_SK CP852" + echo "sl CP852" + echo "sl_SI CP852" + echo "sq CP852" + echo "sq_AL CP852" + echo "sr CP852" # CP852 or CP866 or CP855 ?? + echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? + echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? + # ISO-8859-3 languages + echo "mt CP850" + echo "mt_MT CP850" + # ISO-8859-5 languages + echo "be CP866" + echo "be_BE CP866" + echo "bg CP866" # not CP855 ?? + echo "bg_BG CP866" # not CP855 ?? + echo "mk CP866" # not CP855 ?? + echo "mk_MK CP866" # not CP855 ?? + echo "ru CP866" + echo "ru_RU CP866" + echo "uk CP1125" + echo "uk_UA CP1125" + # ISO-8859-6 languages + echo "ar CP864" + echo "ar_AE CP864" + echo "ar_DZ CP864" + echo "ar_EG CP864" + echo "ar_IQ CP864" + echo "ar_IR CP864" + echo "ar_JO CP864" + echo "ar_KW CP864" + echo "ar_MA CP864" + echo "ar_OM CP864" + echo "ar_QA CP864" + echo "ar_SA CP864" + echo "ar_SY CP864" + # ISO-8859-7 languages + echo "el CP869" + echo "el_GR CP869" + # ISO-8859-8 languages + echo "he CP862" + echo "he_IL CP862" + # ISO-8859-9 languages + echo "tr CP857" + echo "tr_TR CP857" + # Japanese + echo "ja CP932" + echo "ja_JP CP932" + # Chinese + echo "zh_CN GBK" + echo "zh_TW CP950" # not CP938 ?? + # Korean + echo "kr CP949" # not CP934 ?? + echo "kr_KR CP949" # not CP934 ?? + # Thai + echo "th CP874" + echo "th_TH CP874" + # Other + echo "eo CP850" + echo "eo_EO CP850" + ;; esac diff -Nru gettext-0.17/gettext-runtime/intl/dcigettext.c gettext-0.18.1.1/gettext-runtime/intl/dcigettext.c --- gettext-0.17/gettext-runtime/intl/dcigettext.c 2007-10-21 18:41:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/dcigettext.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Implementation of the internal dcigettext function. - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -27,9 +27,6 @@ # include #endif -/* NL_LOCALE_NAME does not work in glibc-2.4. Ignore it. */ -#undef HAVE_NL_LOCALE_NAME - #include #ifdef __GNUC__ @@ -91,9 +88,6 @@ #endif #if !defined _LIBC -# if HAVE_NL_LOCALE_NAME -# include -# endif # include "localcharset.h" #endif @@ -234,7 +228,7 @@ #endif /* Whether to support different locales in different threads. */ -#if defined _LIBC || HAVE_NL_LOCALE_NAME || (HAVE_STRUCT___LOCALE_STRUCT___NAMES && defined USE_IN_GETTEXT_TESTS) || defined IN_LIBGLOCALE +#if defined _LIBC || HAVE_USELOCALE || defined IN_LIBGLOCALE # define HAVE_PER_THREAD_LOCALE #endif @@ -269,7 +263,12 @@ size_t translation_length; /* Pointer to the string in question. */ - char msgid[ZERO]; + union + { + char appended[ZERO]; /* used if domain != NULL */ + const char *ptr; /* used if domain == NULL */ + } + msgid; }; gl_rwlock_define_initialized (static, tree_lock) @@ -288,7 +287,8 @@ s1 = (const struct known_translation_t *) p1; s2 = (const struct known_translation_t *) p2; - result = strcmp (s1->msgid, s2->msgid); + result = strcmp (s1->domain != NULL ? s1->msgid.appended : s1->msgid.ptr, + s2->domain != NULL ? s2->msgid.appended : s2->msgid.ptr); if (result == 0) { result = strcmp (s1->domainname, s2->domainname); @@ -501,9 +501,8 @@ char *retval; size_t retlen; int saved_errno; - struct known_translation_t *search; + struct known_translation_t search; struct known_translation_t **foundp = NULL; - size_t msgid_len; #if defined HAVE_PER_THREAD_LOCALE && !defined IN_LIBGLOCALE const char *localename; #endif @@ -525,6 +524,11 @@ /* Preserve the `errno' value. */ saved_errno = errno; +#ifdef _LIBC + __libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden) + __libc_rwlock_rdlock (__libc_setlocale_lock); +#endif + gl_rwlock_rdlock (_nl_state_lock); /* If DOMAINNAME is NULL, we are interested in the default domain. If @@ -539,52 +543,37 @@ category = LC_MESSAGES; #endif - msgid_len = strlen (msgid1) + 1; - /* Try to find the translation among those which we found at some time. */ - search = (struct known_translation_t *) - alloca (offsetof (struct known_translation_t, msgid) + msgid_len); - memcpy (search->msgid, msgid1, msgid_len); - search->domainname = domainname; - search->category = category; + search.domain = NULL; + search.msgid.ptr = msgid1; + search.domainname = domainname; + search.category = category; #ifdef HAVE_PER_THREAD_LOCALE # ifndef IN_LIBGLOCALE # ifdef _LIBC - localename = __current_locale_name (category); + localename = _strdupa (_current_locale_name (category)); # else -# if HAVE_NL_LOCALE_NAME - /* NL_LOCALE_NAME is public glibc API introduced in glibc-2.4. */ - localename = nl_langinfo (NL_LOCALE_NAME (category)); -# else -# if HAVE_STRUCT___LOCALE_STRUCT___NAMES && defined USE_IN_GETTEXT_TESTS - /* The __names field is not public glibc API and must therefore not be used - in code that is installed in public locations. */ - { - locale_t thread_locale = uselocale (NULL); - if (thread_locale != LC_GLOBAL_LOCALE) - localename = thread_locale->__names[category]; - else - localename = ""; - } -# endif -# endif + categoryname = category_to_name (category); +# define CATEGORYNAME_INITIALIZED + localename = _nl_locale_name_thread_unsafe (category, categoryname); + if (localename == NULL) + localename = ""; # endif # endif - search->localename = localename; + search.localename = localename; # ifdef IN_LIBGLOCALE - search->encoding = encoding; + search.encoding = encoding; # endif /* Since tfind/tsearch manage a balanced tree, concurrent tfind and tsearch calls can be fatal. */ gl_rwlock_rdlock (tree_lock); - foundp = (struct known_translation_t **) tfind (search, &root, transcmp); + foundp = (struct known_translation_t **) tfind (&search, &root, transcmp); gl_rwlock_unlock (tree_lock); - freea (search); if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) { /* Now deal with plural. */ @@ -595,6 +584,9 @@ retval = (char *) (*foundp)->translation; gl_rwlock_unlock (_nl_state_lock); +# ifdef _LIBC + __libc_rwlock_unlock (__libc_setlocale_lock); +# endif __set_errno (saved_errno); return retval; } @@ -668,7 +660,9 @@ #endif /* Now determine the symbolic name of CATEGORY and its value. */ +#ifndef CATEGORYNAME_INITIALIZED categoryname = category_to_name (category); +#endif #ifdef IN_LIBGLOCALE categoryvalue = guess_category_value (category, categoryname, localename); #else @@ -773,9 +767,11 @@ if (foundp == NULL) { /* Create a new entry and add it to the search tree. */ + size_t msgid_len; size_t size; struct known_translation_t *newp; + msgid_len = strlen (msgid1) + 1; size = offsetof (struct known_translation_t, msgid) + msgid_len + domainname_len + 1; #ifdef HAVE_PER_THREAD_LOCALE @@ -790,7 +786,8 @@ #endif new_domainname = - (char *) mempcpy (newp->msgid, msgid1, msgid_len); + (char *) mempcpy (newp->msgid.appended, msgid1, + msgid_len); memcpy (new_domainname, domainname, domainname_len + 1); #ifdef HAVE_PER_THREAD_LOCALE new_localename = new_domainname + domainname_len + 1; @@ -839,6 +836,9 @@ retval = plural_lookup (domain, n, retval, retlen); gl_rwlock_unlock (_nl_state_lock); +#ifdef _LIBC + __libc_rwlock_unlock (__libc_setlocale_lock); +#endif return retval; } } @@ -848,6 +848,9 @@ /* Return the untranslated MSGID. */ FREE_BLOCKS (block_list); gl_rwlock_unlock (_nl_state_lock); +#ifdef _LIBC + __libc_rwlock_unlock (__libc_setlocale_lock); +#endif #ifndef _LIBC if (!ENABLE_SECURE) { @@ -1030,6 +1033,7 @@ { /* We have to allocate a new conversions table. */ gl_rwlock_wrlock (domain->conversions_lock); + nconversions = domain->nconversions; /* Maybe in the meantime somebody added the translation. Recheck. */ @@ -1203,13 +1207,29 @@ handle this case by converting RESULTLEN bytes, including NULs. */ - if (convd->conv_tab == NULL - && ((convd->conv_tab = + /* This lock primarily protects the memory management variables + freemem, freemem_size. It also protects write accesses to + convd->conv_tab. It's not worth using a separate lock (such + as domain->conversions_lock) for this purpose, because when + modifying convd->conv_tab, we also need to lock freemem, + freemem_size for most of the time. */ + __libc_lock_define_initialized (static, lock) + + if (__builtin_expect (convd->conv_tab == NULL, 0)) + { + __libc_lock_lock (lock); + if (convd->conv_tab == NULL) + { + convd->conv_tab = (char **) calloc (nstrings + domain->n_sysdep_strings, - sizeof (char *))) - == NULL)) - /* Mark that we didn't succeed allocating a table. */ - convd->conv_tab = (char **) -1; + sizeof (char *)); + if (convd->conv_tab != NULL) + goto not_translated_yet; + /* Mark that we didn't succeed allocating a table. */ + convd->conv_tab = (char **) -1; + } + __libc_lock_unlock (lock); + } if (__builtin_expect (convd->conv_tab == (char **) -1, 0)) /* Nothing we can do, no more memory. We cannot use the @@ -1223,7 +1243,6 @@ /* We use a bit more efficient memory handling. We allocate always larger blocks which get used over time. This is faster than many small allocations. */ - __libc_lock_define_initialized (static, lock) # define INITIAL_BLOCK_SIZE 4080 static unsigned char *freemem; static size_t freemem_size; @@ -1232,13 +1251,17 @@ unsigned char *outbuf; int malloc_count; # ifndef _LIBC - transmem_block_t *transmem_list = NULL; + transmem_block_t *transmem_list; # endif __libc_lock_lock (lock); + not_translated_yet: inbuf = (const unsigned char *) result; outbuf = freemem + sizeof (size_t); +# ifndef _LIBC + transmem_list = NULL; +# endif malloc_count = 0; while (1) @@ -1515,20 +1538,13 @@ # ifdef _LIBC locale = __current_locale_name (category); # else -# if HAVE_STRUCT___LOCALE_STRUCT___NAMES && defined USE_IN_GETTEXT_TESTS - /* The __names field is not public glibc API and must therefore not be used - in code that is installed in public locations. */ - locale_t thread_locale = uselocale (NULL); - if (thread_locale != LC_GLOBAL_LOCALE) - { - locale = thread_locale->__names[category]; - locale_defaulted = 0; - } - else + locale_defaulted = 0; +# if HAVE_USELOCALE + locale = _nl_locale_name_thread_unsafe (category, categoryname); + if (locale == NULL) # endif { locale = _nl_locale_name_posix (category, categoryname); - locale_defaulted = 0; if (locale == NULL) { locale = _nl_locale_name_default (); diff -Nru gettext-0.17/gettext-runtime/intl/gettextP.h gettext-0.18.1.1/gettext-runtime/intl/gettextP.h --- gettext-0.17/gettext-runtime/intl/gettextP.h 2007-10-13 16:18:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/gettextP.h 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Header describing internals of libintl library. - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2007, 2009-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it @@ -231,13 +231,27 @@ extern const char *_nl_language_preferences_default (void); # define gl_locale_name_canonicalize _nl_locale_name_canonicalize extern void _nl_locale_name_canonicalize (char *name); +# define gl_locale_name_from_win32_LANGID _nl_locale_name_from_win32_LANGID +/* extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); */ +# define gl_locale_name_from_win32_LCID _nl_locale_name_from_win32_LCID +/* extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); */ +# define gl_locale_name_thread_unsafe _nl_locale_name_thread_unsafe +extern const char *_nl_locale_name_thread_unsafe (int category, + const char *categoryname); +# define gl_locale_name_thread _nl_locale_name_thread +/* extern const char *_nl_locale_name_thread (int category, + const char *categoryname); */ # define gl_locale_name_posix _nl_locale_name_posix extern const char *_nl_locale_name_posix (int category, const char *categoryname); +# define gl_locale_name_environ _nl_locale_name_environ +extern const char *_nl_locale_name_environ (int category, + const char *categoryname); # define gl_locale_name_default _nl_locale_name_default extern const char *_nl_locale_name_default (void); # define gl_locale_name _nl_locale_name -extern const char *_nl_locale_name (int category, const char *categoryname); +/* extern const char *_nl_locale_name (int category, + const char *categoryname); */ #endif struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, diff -Nru gettext-0.17/gettext-runtime/intl/intl-compat.c gettext-0.18.1.1/gettext-runtime/intl/intl-compat.c --- gettext-0.17/gettext-runtime/intl/intl-compat.c 2005-08-01 11:02:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/intl-compat.c 2010-06-06 12:49:57.000000000 +0000 @@ -93,7 +93,7 @@ DLL_EXPORTED char * dngettext (const char *domainname, - const char *msgid1, const char *msgid2, unsigned long int n) + const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_dngettext (domainname, msgid1, msgid2, n); } @@ -102,8 +102,8 @@ DLL_EXPORTED char * dcngettext (const char *domainname, - const char *msgid1, const char *msgid2, unsigned long int n, - int category) + const char *msgid1, const char *msgid2, unsigned long int n, + int category) { return libintl_dcngettext (domainname, msgid1, msgid2, n, category); } diff -Nru gettext-0.17/gettext-runtime/intl/intl-exports.c gettext-0.18.1.1/gettext-runtime/intl/intl-exports.c --- gettext-0.17/gettext-runtime/intl/intl-exports.c 2006-05-11 20:46:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/intl-exports.c 2010-06-06 12:49:57.000000000 +0000 @@ -23,14 +23,14 @@ /* Ensure that the variable x is exported from the library, and that a pseudo-variable IMP(x) is available. */ #define VARIABLE(x) \ - /* Export x without redefining x. This code was found by compiling a \ - snippet: \ - extern __declspec(dllexport) int x; int x = 42; */ \ - asm (".section .drectve\n"); \ - asm (".ascii \" -export:" #x ",data\"\n"); \ - asm (".data\n"); \ - /* Allocate a pseudo-variable IMP(x). */ \ - extern int x; \ + /* Export x without redefining x. This code was found by compiling a \ + snippet: \ + extern __declspec(dllexport) int x; int x = 42; */ \ + asm (".section .drectve\n"); \ + asm (".ascii \" -export:" #x ",data\"\n"); \ + asm (".data\n"); \ + /* Allocate a pseudo-variable IMP(x). */ \ + extern int x; \ void * IMP(x) = &x; VARIABLE(libintl_version) diff -Nru gettext-0.17/gettext-runtime/intl/l10nflist.c gettext-0.18.1.1/gettext-runtime/intl/l10nflist.c --- gettext-0.17/gettext-runtime/intl/l10nflist.c 2006-06-23 16:29:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/l10nflist.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-1999, 2000-2006 Free Software Foundation, Inc. +/* Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it @@ -346,7 +346,7 @@ const char * _nl_normalize_codeset (const char *codeset, size_t name_len) { - int len = 0; + size_t len = 0; int only_digit = 1; char *retval; char *wp; diff -Nru gettext-0.17/gettext-runtime/intl/langprefs.c gettext-0.18.1.1/gettext-runtime/intl/langprefs.c --- gettext-0.17/gettext-runtime/intl/langprefs.c 2007-06-07 19:46:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/langprefs.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the user's language preferences. - Copyright (C) 2004-2006 Free Software Foundation, Inc. + Copyright (C) 2004-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -16,7 +16,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -/* Written by Bruno Haible . */ +/* Written by Bruno Haible . + Win32 code originally by Michele Cicciotti . */ #ifdef HAVE_CONFIG_H # include @@ -33,6 +34,197 @@ extern void _nl_locale_name_canonicalize (char *name); #endif +#if defined _WIN32 || defined __WIN32__ +# define WIN32_NATIVE +#endif + +#ifdef WIN32_NATIVE +# define WIN32_LEAN_AND_MEAN +# include + +# ifndef MUI_LANGUAGE_NAME +# define MUI_LANGUAGE_NAME 8 +# endif +# ifndef STATUS_BUFFER_OVERFLOW +# define STATUS_BUFFER_OVERFLOW 0x80000005 +# endif + +extern void _nl_locale_name_canonicalize (char *name); +extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); +extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); + +/* Get the preferences list through the MUI APIs. This works on Windows Vista + and newer. */ +static const char * +_nl_language_preferences_win32_mui (HMODULE kernel32) +{ + /* DWORD GetUserPreferredUILanguages (ULONG dwFlags, + PULONG pulNumLanguages, + PWSTR pwszLanguagesBuffer, + PULONG pcchLanguagesBuffer); */ + typedef DWORD (WINAPI *GetUserPreferredUILanguages_func) (ULONG, PULONG, PWSTR, PULONG); + GetUserPreferredUILanguages_func p_GetUserPreferredUILanguages; + + p_GetUserPreferredUILanguages = + (GetUserPreferredUILanguages_func) + GetProcAddress (kernel32, "GetUserPreferredUILanguages"); + if (p_GetUserPreferredUILanguages != NULL) + { + ULONG num_languages; + ULONG bufsize; + DWORD ret; + + bufsize = 0; + ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, + &num_languages, + NULL, &bufsize); + if (ret == 0 + && GetLastError () == STATUS_BUFFER_OVERFLOW + && bufsize > 0) + { + WCHAR *buffer = (WCHAR *) malloc (bufsize * sizeof (WCHAR)); + if (buffer != NULL) + { + ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, + &num_languages, + buffer, &bufsize); + if (ret) + { + /* Convert the list from NUL-delimited WCHAR[] Win32 locale + names to colon-delimited char[] Unix locale names. + We assume that all these locale names are in ASCII, + nonempty and contain no colons. */ + char *languages = + (char *) malloc (bufsize + num_languages * 10 + 1); + if (languages != NULL) + { + const WCHAR *p = buffer; + char *q = languages; + ULONG i; + for (i = 0; i < num_languages; i++) + { + char *q1; + char *q2; + + q1 = q; + if (i > 0) + *q++ = ':'; + q2 = q; + for (; *p != (WCHAR)'\0'; p++) + { + if ((unsigned char) *p != *p || *p == ':') + { + /* A non-ASCII character or a colon inside + the Win32 locale name! Punt. */ + q = q1; + break; + } + *q++ = (unsigned char) *p; + } + if (q == q1) + /* An unexpected Win32 locale name occurred. */ + break; + *q = '\0'; + _nl_locale_name_canonicalize (q2); + q = q2 + strlen (q2); + p++; + } + *q = '\0'; + if (q > languages) + { + free (buffer); + return languages; + } + free (languages); + } + } + free (buffer); + } + } + } + return NULL; +} + +/* Get a preference. This works on Windows ME and newer. */ +static const char * +_nl_language_preferences_win32_ME (HMODULE kernel32) +{ + /* LANGID GetUserDefaultUILanguage (void); */ + typedef LANGID (WINAPI *GetUserDefaultUILanguage_func) (void); + GetUserDefaultUILanguage_func p_GetUserDefaultUILanguage; + + p_GetUserDefaultUILanguage = + (GetUserDefaultUILanguage_func) + GetProcAddress (kernel32, "GetUserDefaultUILanguage"); + if (p_GetUserDefaultUILanguage != NULL) + return _nl_locale_name_from_win32_LANGID (p_GetUserDefaultUILanguage ()); + return NULL; +} + +/* Get a preference. This works on Windows 95 and newer. */ +static const char * +_nl_language_preferences_win32_95 () +{ + HKEY desktop_resource_locale_key; + + if (RegOpenKeyExA (HKEY_CURRENT_USER, + "Control Panel\\Desktop\\ResourceLocale", + 0, KEY_QUERY_VALUE, &desktop_resource_locale_key) + == NO_ERROR) + { + DWORD type; + char data[8 + 1]; + DWORD data_size = sizeof (data); + DWORD ret; + + ret = RegQueryValueExA (desktop_resource_locale_key, NULL, NULL, + &type, data, &data_size); + RegCloseKey (desktop_resource_locale_key); + + if (ret == NO_ERROR) + { + /* We expect a string, at most 8 bytes long, that parses as a + hexadecimal number. */ + if (type == REG_SZ + && data_size <= sizeof (data) + && (data_size < sizeof (data) + || data[sizeof (data) - 1] == '\0')) + { + LCID lcid; + char *endp; + /* Ensure it's NUL terminated. */ + if (data_size < sizeof (data)) + data[data_size] = '\0'; + /* Parse it as a hexadecimal number. */ + lcid = strtoul (data, &endp, 16); + if (endp > data && *endp == '\0') + return _nl_locale_name_from_win32_LCID (lcid); + } + } + } + return NULL; +} + +/* Get the system's preference. This can be used as a fallback. */ +static BOOL CALLBACK +ret_first_language (HMODULE h, LPCSTR type, LPCSTR name, WORD lang, LONG_PTR param) +{ + *(const char **)param = _nl_locale_name_from_win32_LANGID (lang); + return FALSE; +} +static const char * +_nl_language_preferences_win32_system (HMODULE kernel32) +{ + const char *languages = NULL; + /* Ignore the warning on mingw here. mingw has a wrong definition of the last + parameter type of ENUMRESLANGPROC. */ + EnumResourceLanguages (kernel32, RT_VERSION, MAKEINTRESOURCE (1), + ret_first_language, (LONG_PTR)&languages); + return languages; +} + +#endif + /* Determine the user's language preferences, as a colon separated list of locale names in XPG syntax language[_territory][.codeset][@modifier] @@ -51,75 +243,108 @@ if (!cache_initialized) { - CFTypeRef preferences = - CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), - kCFPreferencesCurrentApplication); - if (preferences != NULL - && CFGetTypeID (preferences) == CFArrayGetTypeID ()) - { - CFArrayRef prefArray = (CFArrayRef)preferences; - int n = CFArrayGetCount (prefArray); - char buf[256]; - size_t size = 0; - int i; - - for (i = 0; i < n; i++) - { - CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); - if (element != NULL - && CFGetTypeID (element) == CFStringGetTypeID () - && CFStringGetCString ((CFStringRef)element, - buf, sizeof (buf), - kCFStringEncodingASCII)) - { - _nl_locale_name_canonicalize (buf); - size += strlen (buf) + 1; - /* Most GNU programs use msgids in English and don't ship - an en.mo message catalog. Therefore when we see "en" - in the preferences list, arrange for gettext() to - return the msgid, and ignore all further elements of - the preferences list. */ - if (strcmp (buf, "en") == 0) - break; - } - else - break; - } - if (size > 0) - { - char *languages = (char *) malloc (size); - - if (languages != NULL) - { - char *p = languages; - - for (i = 0; i < n; i++) - { - CFTypeRef element = - CFArrayGetValueAtIndex (prefArray, i); - if (element != NULL - && CFGetTypeID (element) == CFStringGetTypeID () - && CFStringGetCString ((CFStringRef)element, - buf, sizeof (buf), - kCFStringEncodingASCII)) - { - _nl_locale_name_canonicalize (buf); - strcpy (p, buf); - p += strlen (buf); - *p++ = ':'; - if (strcmp (buf, "en") == 0) - break; - } - else - break; - } - *--p = '\0'; - - cached_languages = languages; - } - } - } - cache_initialized = 1; + CFTypeRef preferences = + CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), + kCFPreferencesCurrentApplication); + if (preferences != NULL + && CFGetTypeID (preferences) == CFArrayGetTypeID ()) + { + CFArrayRef prefArray = (CFArrayRef)preferences; + int n = CFArrayGetCount (prefArray); + char buf[256]; + size_t size = 0; + int i; + + for (i = 0; i < n; i++) + { + CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); + if (element != NULL + && CFGetTypeID (element) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)element, + buf, sizeof (buf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (buf); + size += strlen (buf) + 1; + /* Most GNU programs use msgids in English and don't ship + an en.mo message catalog. Therefore when we see "en" + in the preferences list, arrange for gettext() to + return the msgid, and ignore all further elements of + the preferences list. */ + if (strcmp (buf, "en") == 0) + break; + } + else + break; + } + if (size > 0) + { + char *languages = (char *) malloc (size); + + if (languages != NULL) + { + char *p = languages; + + for (i = 0; i < n; i++) + { + CFTypeRef element = + CFArrayGetValueAtIndex (prefArray, i); + if (element != NULL + && CFGetTypeID (element) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)element, + buf, sizeof (buf), + kCFStringEncodingASCII)) + { + _nl_locale_name_canonicalize (buf); + strcpy (p, buf); + p += strlen (buf); + *p++ = ':'; + if (strcmp (buf, "en") == 0) + break; + } + else + break; + } + *--p = '\0'; + + cached_languages = languages; + } + } + } + cache_initialized = 1; + } + if (cached_languages != NULL) + return cached_languages; + } +#endif + +#ifdef WIN32_NATIVE + { + /* Cache the preferences list, since computing it is expensive. */ + static const char *cached_languages; + static int cache_initialized; + + /* Activate the new code only when the GETTEXT_MUI environment variable is + set, for the time being, since the new code is not well tested. */ + if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL) + { + const char *languages = NULL; + HMODULE kernel32 = GetModuleHandle ("kernel32"); + + if (kernel32 != NULL) + languages = _nl_language_preferences_win32_mui (kernel32); + + if (languages == NULL && kernel32 != NULL) + languages = _nl_language_preferences_win32_ME (kernel32); + + if (languages == NULL) + languages = _nl_language_preferences_win32_95 (); + + if (languages == NULL && kernel32 != NULL) + languages = _nl_language_preferences_win32_system (kernel32); + + cached_languages = languages; + cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; diff -Nru gettext-0.17/gettext-runtime/intl/libgnuintl.h.in gettext-0.18.1.1/gettext-runtime/intl/libgnuintl.h.in --- gettext-0.17/gettext-runtime/intl/libgnuintl.h.in 2007-11-02 00:23:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/libgnuintl.h.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Message catalogs for internationalization. - Copyright (C) 1995-1997, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1997, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -17,9 +17,12 @@ USA. */ #ifndef _LIBINTL_H -#define _LIBINTL_H 1 +#define _LIBINTL_H 1 #include +#if (defined __APPLE__ && defined __MACH__) && @HAVE_NEWLOCALE@ +# include +#endif /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. @@ -53,7 +56,7 @@ /* Version number: (major<<16) + (minor<<8) + subminor */ -#define LIBINTL_VERSION 0x001100 +#define LIBINTL_VERSION 0x001201 extern int libintl_version; @@ -88,7 +91,7 @@ If he doesn't, we choose the method. A third possible method is _INTL_REDIRECT_ASM, supported only by GCC. */ #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) -# if __GNUC__ >= 2 && !(__APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) +# if defined __GNUC__ && __GNUC__ >= 2 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) # define _INTL_REDIRECT_ASM # else # ifdef __cplusplus @@ -110,7 +113,7 @@ /* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return its n-th argument literally. This enables GCC to warn for example about printf (gettext ("foo %y")). */ -#if __GNUC__ >= 3 && !(__APPLE_CC__ > 1 && defined __cplusplus) +#if defined __GNUC__ && __GNUC__ >= 3 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1 && defined __cplusplus) # define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__ ((__format_arg__ (n))) #else # define _INTL_MAY_RETURN_STRING_ARG(n) @@ -157,10 +160,10 @@ locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcgettext (const char *__domainname, const char *__msgid, - int __category) + int __category) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *dcgettext (const char *__domainname, const char *__msgid, - int __category) + int __category) { return libintl_dcgettext (__domainname, __msgid, __category); } @@ -169,7 +172,7 @@ # define dcgettext libintl_dcgettext #endif extern char *dcgettext (const char *__domainname, const char *__msgid, - int __category) + int __category) _INTL_ASM (libintl_dcgettext) _INTL_MAY_RETURN_STRING_ARG (2); #endif @@ -179,10 +182,10 @@ number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2, - unsigned long int __n) + unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *ngettext (const char *__msgid1, const char *__msgid2, - unsigned long int __n) + unsigned long int __n) { return libintl_ngettext (__msgid1, __msgid2, __n); } @@ -191,7 +194,7 @@ # define ngettext libintl_ngettext #endif extern char *ngettext (const char *__msgid1, const char *__msgid2, - unsigned long int __n) + unsigned long int __n) _INTL_ASM (libintl_ngettext) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); #endif @@ -200,10 +203,10 @@ number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dngettext (const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) + const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dngettext (const char *__domainname, const char *__msgid1, - const char *__msgid2, unsigned long int __n) + const char *__msgid2, unsigned long int __n) { return libintl_dngettext (__domainname, __msgid1, __msgid2, __n); } @@ -212,8 +215,8 @@ # define dngettext libintl_dngettext #endif extern char *dngettext (const char *__domainname, - const char *__msgid1, const char *__msgid2, - unsigned long int __n) + const char *__msgid1, const char *__msgid2, + unsigned long int __n) _INTL_ASM (libintl_dngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif @@ -222,12 +225,12 @@ number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcngettext (const char *__domainname, - const char *__msgid1, const char *__msgid2, - unsigned long int __n, int __category) + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dcngettext (const char *__domainname, - const char *__msgid1, const char *__msgid2, - unsigned long int __n, int __category) + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category) { return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category); } @@ -236,8 +239,8 @@ # define dcngettext libintl_dcngettext #endif extern char *dcngettext (const char *__domainname, - const char *__msgid1, const char *__msgid2, - unsigned long int __n, int __category) + const char *__msgid1, const char *__msgid2, + unsigned long int __n, int __category) _INTL_ASM (libintl_dcngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif @@ -266,9 +269,9 @@ in DIRNAME rather than in the system locale data base. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bindtextdomain (const char *__domainname, - const char *__dirname); + const char *__dirname); static inline char *bindtextdomain (const char *__domainname, - const char *__dirname) + const char *__dirname) { return libintl_bindtextdomain (__domainname, __dirname); } @@ -284,9 +287,9 @@ DOMAINNAME message catalog will be returned. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bind_textdomain_codeset (const char *__domainname, - const char *__codeset); + const char *__codeset); static inline char *bind_textdomain_codeset (const char *__domainname, - const char *__codeset) + const char *__codeset) { return libintl_bind_textdomain_codeset (__domainname, __codeset); } @@ -295,7 +298,7 @@ # define bind_textdomain_codeset libintl_bind_textdomain_codeset #endif extern char *bind_textdomain_codeset (const char *__domainname, - const char *__codeset) + const char *__codeset) _INTL_ASM (libintl_bind_textdomain_codeset); #endif @@ -316,58 +319,84 @@ #include /* Get va_list. */ -#if __STDC__ || defined __cplusplus || defined _MSC_VER +#if (defined __STDC__ && __STDC__) || defined __cplusplus || defined _MSC_VER # include #else # include #endif +#if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef fprintf #define fprintf libintl_fprintf extern int fprintf (FILE *, const char *, ...); +#endif +#if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vfprintf #define vfprintf libintl_vfprintf extern int vfprintf (FILE *, const char *, va_list); +#endif +#if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ #undef printf #if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, - mingw does not have a function __printf__. */ + mingw does not have a function __printf__. + Alternatively, we could have done this redirection only when compiling with + __GNUC__, together with a symbol redirection: + extern int printf (const char *, ...) + __asm__ (#__USER_LABEL_PREFIX__ "libintl_printf"); + But doing it now would introduce a binary incompatibility with already + distributed versions of libintl on these systems. */ # define libintl_printf __printf__ #endif #define printf libintl_printf extern int printf (const char *, ...); +#endif +#if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vprintf #define vprintf libintl_vprintf extern int vprintf (const char *, va_list); +#endif +#if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef sprintf #define sprintf libintl_sprintf extern int sprintf (char *, const char *, ...); +#endif +#if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsprintf #define vsprintf libintl_vsprintf extern int vsprintf (char *, const char *, va_list); +#endif #if @HAVE_SNPRINTF@ +#if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef snprintf #define snprintf libintl_snprintf extern int snprintf (char *, size_t, const char *, ...); +#endif +#if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsnprintf #define vsnprintf libintl_vsnprintf extern int vsnprintf (char *, size_t, const char *, va_list); +#endif #endif #if @HAVE_ASPRINTF@ +#if !(defined asprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef asprintf #define asprintf libintl_asprintf extern int asprintf (char **, const char *, ...); +#endif +#if !(defined vasprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vasprintf #define vasprintf libintl_vasprintf extern int vasprintf (char **, const char *, va_list); +#endif #endif @@ -399,6 +428,24 @@ #endif +/* Support for the locale chosen by the user. */ +#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ + +#undef setlocale +#define setlocale libintl_setlocale +extern char *setlocale (int, const char *); + +#if @HAVE_NEWLOCALE@ + +#undef newlocale +#define newlocale libintl_newlocale +extern locale_t newlocale (int, const char *, locale_t); + +#endif + +#endif + + /* Support for relocatable packages. */ /* Sets the original and the current installation prefix of the package. @@ -409,7 +456,7 @@ #define libintl_set_relocation_prefix libintl_set_relocation_prefix extern void libintl_set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); + const char *curr_prefix); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-runtime/intl/libintl.rc gettext-0.18.1.1/gettext-runtime/intl/libintl.rc --- gettext-0.17/gettext-runtime/intl/libintl.rc 2007-05-27 21:46:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/libintl.rc 2010-06-06 12:49:57.000000000 +0000 @@ -21,10 +21,10 @@ BEGIN VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\0" VALUE "CompanyName", "Free Software Foundation\0" - VALUE "FileDescription", "LGPLed libintl for Windows NT/2000/XP/Vista and Windows 95/98/ME\0" + VALUE "FileDescription", "LGPLed libintl for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0" VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" VALUE "InternalName", "intl.dll\0" - VALUE "LegalCopyright", "Copyright (C) 1995-2007\0" + VALUE "LegalCopyright", "Copyright (C) 1995-2010\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "intl.dll\0" VALUE "ProductName", "libintl: accessing NLS message catalogs\0" diff -Nru gettext-0.17/gettext-runtime/intl/loadmsgcat.c gettext-0.18.1.1/gettext-runtime/intl/loadmsgcat.c --- gettext-0.17/gettext-runtime/intl/loadmsgcat.c 2007-10-13 16:26:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/loadmsgcat.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Load needed message catalogs. - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -1259,8 +1259,7 @@ /* This is an invalid revision. */ invalid: /* This is an invalid .mo file. */ - if (domain->malloced) - free (domain->malloced); + free (domain->malloced); #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); @@ -1317,12 +1316,10 @@ if (convd->conv != (__gconv_t) -1) __gconv_close (convd->conv); } - if (domain->conversions != NULL) - free (domain->conversions); + free (domain->conversions); __libc_rwlock_fini (domain->conversions_lock); - if (domain->malloced) - free (domain->malloced); + free (domain->malloced); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) diff -Nru gettext-0.17/gettext-runtime/intl/localcharset.c gettext-0.18.1.1/gettext-runtime/intl/localcharset.c --- gettext-0.17/gettext-runtime/intl/localcharset.c 2006-10-18 11:56:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/localcharset.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006 Free Software Foundation, Inc. + Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -24,21 +24,29 @@ /* Specification. */ #include "localcharset.h" +#include #include #include #include #include +#if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET +# define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ +#endif + #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ -# define OS2 +# ifndef OS2 +# define OS2 +# endif #endif #if !defined WIN32_NATIVE +# include # if HAVE_LANGINFO_CODESET # include # else @@ -70,6 +78,11 @@ # include "configmake.h" #endif +/* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ +#ifndef O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') @@ -111,160 +124,220 @@ cp = charset_aliases; if (cp == NULL) { -#if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) - FILE *fp; +#if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is - necessary for running the testsuite before "make install". */ + necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') - dir = relocate (LIBDIR); + dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { - size_t dir_len = strlen (dir); - size_t base_len = strlen (base); - int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); - file_name = (char *) malloc (dir_len + add_slash + base_len + 1); - if (file_name != NULL) - { - memcpy (file_name, dir, dir_len); - if (add_slash) - file_name[dir_len] = DIRECTORY_SEPARATOR; - memcpy (file_name + dir_len + add_slash, base, base_len + 1); - } + size_t dir_len = strlen (dir); + size_t base_len = strlen (base); + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); + file_name = (char *) malloc (dir_len + add_slash + base_len + 1); + if (file_name != NULL) + { + memcpy (file_name, dir, dir_len); + if (add_slash) + file_name[dir_len] = DIRECTORY_SEPARATOR; + memcpy (file_name + dir_len + add_slash, base, base_len + 1); + } } - if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) - /* Out of memory or file not found, treat it as empty. */ - cp = ""; + if (file_name == NULL) + /* Out of memory. Treat the file as empty. */ + cp = ""; else - { - /* Parse the file's contents. */ - char *res_ptr = NULL; - size_t res_size = 0; - - for (;;) - { - int c; - char buf1[50+1]; - char buf2[50+1]; - size_t l1, l2; - char *old_res_ptr; - - c = getc (fp); - if (c == EOF) - break; - if (c == '\n' || c == ' ' || c == '\t') - continue; - if (c == '#') - { - /* Skip comment, to end of line. */ - do - c = getc (fp); - while (!(c == EOF || c == '\n')); - if (c == EOF) - break; - continue; - } - ungetc (c, fp); - if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) - break; - l1 = strlen (buf1); - l2 = strlen (buf2); - old_res_ptr = res_ptr; - if (res_size == 0) - { - res_size = l1 + 1 + l2 + 1; - res_ptr = (char *) malloc (res_size + 1); - } - else - { - res_size += l1 + 1 + l2 + 1; - res_ptr = (char *) realloc (res_ptr, res_size + 1); - } - if (res_ptr == NULL) - { - /* Out of memory. */ - res_size = 0; - if (old_res_ptr != NULL) - free (old_res_ptr); - break; - } - strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); - strcpy (res_ptr + res_size - (l2 + 1), buf2); - } - fclose (fp); - if (res_size == 0) - cp = ""; - else - { - *(res_ptr + res_size) = '\0'; - cp = res_ptr; - } - } + { + int fd; - if (file_name != NULL) - free (file_name); + /* Open the file. Reject symbolic links on platforms that support + O_NOFOLLOW. This is a security feature. Without it, an attacker + could retrieve parts of the contents (namely, the tail of the + first line that starts with "* ") of an arbitrary file by placing + a symbolic link to that file under the name "charset.alias" in + some writable directory and defining the environment variable + CHARSETALIASDIR to point to that directory. */ + fd = open (file_name, + O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); + if (fd < 0) + /* File not found. Treat it as empty. */ + cp = ""; + else + { + FILE *fp; + + fp = fdopen (fd, "r"); + if (fp == NULL) + { + /* Out of memory. Treat the file as empty. */ + close (fd); + cp = ""; + } + else + { + /* Parse the file's contents. */ + char *res_ptr = NULL; + size_t res_size = 0; + + for (;;) + { + int c; + char buf1[50+1]; + char buf2[50+1]; + size_t l1, l2; + char *old_res_ptr; + + c = getc (fp); + if (c == EOF) + break; + if (c == '\n' || c == ' ' || c == '\t') + continue; + if (c == '#') + { + /* Skip comment, to end of line. */ + do + c = getc (fp); + while (!(c == EOF || c == '\n')); + if (c == EOF) + break; + continue; + } + ungetc (c, fp); + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) + break; + l1 = strlen (buf1); + l2 = strlen (buf2); + old_res_ptr = res_ptr; + if (res_size == 0) + { + res_size = l1 + 1 + l2 + 1; + res_ptr = (char *) malloc (res_size + 1); + } + else + { + res_size += l1 + 1 + l2 + 1; + res_ptr = (char *) realloc (res_ptr, res_size + 1); + } + if (res_ptr == NULL) + { + /* Out of memory. */ + res_size = 0; + if (old_res_ptr != NULL) + free (old_res_ptr); + break; + } + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); + strcpy (res_ptr + res_size - (l2 + 1), buf2); + } + fclose (fp); + if (res_size == 0) + cp = ""; + else + { + *(res_ptr + res_size) = '\0'; + cp = res_ptr; + } + } + } + + free (file_name); + } #else +# if defined DARWIN7 + /* To avoid the trouble of installing a file that is shared by many + GNU packages -- many packaging systems have problems with this --, + simply inline the aliases here. */ + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-4" "\0" "ISO-8859-4" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + "ISO8859-13" "\0" "ISO-8859-13" "\0" + "ISO8859-15" "\0" "ISO-8859-15" "\0" + "KOI8-R" "\0" "KOI8-R" "\0" + "KOI8-U" "\0" "KOI8-U" "\0" + "CP866" "\0" "CP866" "\0" + "CP949" "\0" "CP949" "\0" + "CP1131" "\0" "CP1131" "\0" + "CP1251" "\0" "CP1251" "\0" + "eucCN" "\0" "GB2312" "\0" + "GB2312" "\0" "GB2312" "\0" + "eucJP" "\0" "EUC-JP" "\0" + "eucKR" "\0" "EUC-KR" "\0" + "Big5" "\0" "BIG5" "\0" + "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" + "GBK" "\0" "GBK" "\0" + "GB18030" "\0" "GB18030" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "ARMSCII-8" "\0" "ARMSCII-8" "\0" + "PT154" "\0" "PT154" "\0" + /*"ISCII-DEV" "\0" "?" "\0"*/ + "*" "\0" "UTF-8" "\0"; +# endif + # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the - sources of many GNU packages, simply inline the aliases here. */ + sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation - "Compaq C Run-Time Library Reference Manual for OpenVMS systems" - section 10.7 "Handling Different Character Sets". */ + "Compaq C Run-Time Library Reference Manual for OpenVMS systems" + section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-8" "\0" "ISO-8859-8" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - /* Japanese */ - "eucJP" "\0" "EUC-JP" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "DECKANJI" "\0" "DEC-KANJI" "\0" - "SDECKANJI" "\0" "EUC-JP" "\0" - /* Chinese */ - "eucTW" "\0" "EUC-TW" "\0" - "DECHANYU" "\0" "DEC-HANYU" "\0" - "DECHANZI" "\0" "GB2312" "\0" - /* Korean */ - "DECKOREAN" "\0" "EUC-KR" "\0"; + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-8" "\0" "ISO-8859-8" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + /* Japanese */ + "eucJP" "\0" "EUC-JP" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "DECKANJI" "\0" "DEC-KANJI" "\0" + "SDECKANJI" "\0" "EUC-JP" "\0" + /* Chinese */ + "eucTW" "\0" "EUC-TW" "\0" + "DECHANYU" "\0" "DEC-HANYU" "\0" + "DECHANZI" "\0" "GB2312" "\0" + /* Korean */ + "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ + directory as the DLL and of retrieving the DLL's directory at + runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" - "CP1361" "\0" "JOHAB" "\0" - "CP20127" "\0" "ASCII" "\0" - "CP20866" "\0" "KOI8-R" "\0" - "CP20936" "\0" "GB2312" "\0" - "CP21866" "\0" "KOI8-RU" "\0" - "CP28591" "\0" "ISO-8859-1" "\0" - "CP28592" "\0" "ISO-8859-2" "\0" - "CP28593" "\0" "ISO-8859-3" "\0" - "CP28594" "\0" "ISO-8859-4" "\0" - "CP28595" "\0" "ISO-8859-5" "\0" - "CP28596" "\0" "ISO-8859-6" "\0" - "CP28597" "\0" "ISO-8859-7" "\0" - "CP28598" "\0" "ISO-8859-8" "\0" - "CP28599" "\0" "ISO-8859-9" "\0" - "CP28605" "\0" "ISO-8859-15" "\0" - "CP38598" "\0" "ISO-8859-8" "\0" - "CP51932" "\0" "EUC-JP" "\0" - "CP51936" "\0" "GB2312" "\0" - "CP51949" "\0" "EUC-KR" "\0" - "CP51950" "\0" "EUC-TW" "\0" - "CP54936" "\0" "GB18030" "\0" - "CP65001" "\0" "UTF-8" "\0"; + "CP1361" "\0" "JOHAB" "\0" + "CP20127" "\0" "ASCII" "\0" + "CP20866" "\0" "KOI8-R" "\0" + "CP20936" "\0" "GB2312" "\0" + "CP21866" "\0" "KOI8-RU" "\0" + "CP28591" "\0" "ISO-8859-1" "\0" + "CP28592" "\0" "ISO-8859-2" "\0" + "CP28593" "\0" "ISO-8859-3" "\0" + "CP28594" "\0" "ISO-8859-4" "\0" + "CP28595" "\0" "ISO-8859-5" "\0" + "CP28596" "\0" "ISO-8859-6" "\0" + "CP28597" "\0" "ISO-8859-7" "\0" + "CP28598" "\0" "ISO-8859-8" "\0" + "CP28599" "\0" "ISO-8859-9" "\0" + "CP28605" "\0" "ISO-8859-15" "\0" + "CP38598" "\0" "ISO-8859-8" "\0" + "CP51932" "\0" "EUC-JP" "\0" + "CP51936" "\0" "GB2312" "\0" + "CP51949" "\0" "EUC-KR" "\0" + "CP51950" "\0" "EUC-TW" "\0" + "CP54936" "\0" "GB18030" "\0" + "CP65001" "\0" "UTF-8" "\0"; # endif #endif @@ -297,10 +370,9 @@ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ - /* Cygwin 2006 does not have locales. nl_langinfo (CODESET) always - returns "US-ASCII". As long as this is not fixed, return the suffix - of the locale name from the environment variables (if present) or - the codepage as a number. */ + /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always + returns "US-ASCII". Return the suffix of the locale name from the + environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; @@ -308,36 +380,46 @@ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return - it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - } - - /* Woe32 has a function returning the locale's codepage as a number. */ + { + /* If the locale name contains an encoding after the dot, return + it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + } + + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). This encoding is used by Cygwin, unless the user has set + the environment variable CYGWIN=codepage:oem (which very few people + do). + Output directed to console windows needs to be converted (to + GetOEMCP() if the console is using a raster font, or to + GetConsoleOutputCP() if it is using a TrueType font). Cygwin does + this conversion transparently (see winsup/cygwin/fhandler_console.cc), + converting to GetConsoleOutputCP(). This leads to correct results, + except when SetConsoleOutputCP has been called and a raster font is + in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } @@ -359,11 +441,11 @@ { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } } /* On some old systems, one used to set locale = "iso8859_1". On others, @@ -377,7 +459,13 @@ static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number. */ + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). + When the output goes to a console window, it needs to be provided in + GetOEMCP() encoding if the console is using a raster font, or in + GetConsoleOutputCP() encoding if it is using a TrueType font. + But in GUI programs and for output sent to files and pipes, GetACP() + encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; @@ -395,7 +483,7 @@ { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); + locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { @@ -403,21 +491,21 @@ const char *dot = strchr (locale, '.'); if (dot != NULL) - { - const char *modifier; + { + const char *modifier; - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } /* Resolve through the charset.alias file. */ codeset = locale; @@ -426,12 +514,12 @@ { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) - codeset = ""; + codeset = ""; else - { - sprintf (buf, "CP%u", cp[0]); - codeset = buf; - } + { + sprintf (buf, "CP%u", cp[0]); + codeset = buf; + } } #endif @@ -445,10 +533,10 @@ *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 - || (aliases[0] == '*' && aliases[1] == '\0')) + || (aliases[0] == '*' && aliases[1] == '\0')) { - codeset = aliases + strlen (aliases) + 1; - break; + codeset = aliases + strlen (aliases) + 1; + break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret diff -Nru gettext-0.17/gettext-runtime/intl/localename.c gettext-0.18.1.1/gettext-runtime/intl/localename.c --- gettext-0.17/gettext-runtime/intl/localename.c 2007-06-07 19:49:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/localename.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine name of the currently selected locale. - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -29,11 +29,24 @@ # include "localename.h" #endif +#include +#include #include #include +#include + +#if HAVE_USELOCALE +/* MacOS X 10.5 defines the locale_t type in . */ +# if defined __APPLE__ && defined __MACH__ +# include +# endif +# include +# if !defined IN_LIBINTL +# include "glthread/lock.h" +# endif +#endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE -# include # include # if HAVE_CFLOCALECOPYCURRENT # include @@ -46,7 +59,7 @@ # define WIN32_NATIVE #endif -#ifdef WIN32_NATIVE +#if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ # define WIN32_LEAN_AND_MEAN # include /* List of language codes, sorted by value: @@ -72,7 +85,7 @@ 0x14 LANG_NORWEGIAN 0x15 LANG_POLISH 0x16 LANG_PORTUGUESE - 0x17 LANG_RHAETO_ROMANCE + 0x17 LANG_ROMANSH 0x18 LANG_ROMANIAN 0x19 LANG_RUSSIAN 0x1a LANG_CROATIAN == LANG_SERBIAN @@ -108,7 +121,7 @@ 0x38 LANG_FAEROESE 0x39 LANG_HINDI 0x3a LANG_MALTESE - 0x3b LANG_SAAMI + 0x3b LANG_SAMI 0x3c LANG_GAELIC 0x3d LANG_YIDDISH 0x3e LANG_MALAY @@ -156,6 +169,9 @@ 0x68 LANG_HAUSA 0x69 LANG_IBIBIO 0x6a LANG_YORUBA + 0x6d LANG_BASHKIR + 0x6e LANG_LUXEMBOURGISH + 0x6f LANG_GREENLANDIC 0x70 LANG_IGBO 0x71 LANG_KANURI 0x72 LANG_OROMO @@ -166,6 +182,18 @@ 0x77 LANG_SOMALI 0x78 LANG_YI 0x79 LANG_PAPIAMENTU + 0x7a LANG_MAPUDUNGUN + 0x7c LANG_MOHAWK + 0x7e LANG_BRETON + 0x82 LANG_OCCITAN + 0x83 LANG_CORSICAN + 0x84 LANG_ALSATIAN + 0x85 LANG_YAKUT + 0x86 LANG_KICHE + 0x87 LANG_KINYARWANDA + 0x88 LANG_WOLOF + 0x8c LANG_DARI + 0x91 LANG_SCOTTISH_GAELIC */ /* Mingw headers don't have latest language and sublanguage codes. */ # ifndef LANG_AFRIKAANS @@ -174,6 +202,9 @@ # ifndef LANG_ALBANIAN # define LANG_ALBANIAN 0x1c # endif +# ifndef LANG_ALSATIAN +# define LANG_ALSATIAN 0x84 +# endif # ifndef LANG_AMHARIC # define LANG_AMHARIC 0x5e # endif @@ -189,6 +220,9 @@ # ifndef LANG_AZERI # define LANG_AZERI 0x2c # endif +# ifndef LANG_BASHKIR +# define LANG_BASHKIR 0x6d +# endif # ifndef LANG_BASQUE # define LANG_BASQUE 0x2d # endif @@ -198,6 +232,9 @@ # ifndef LANG_BENGALI # define LANG_BENGALI 0x45 # endif +# ifndef LANG_BRETON +# define LANG_BRETON 0x7e +# endif # ifndef LANG_BURMESE # define LANG_BURMESE 0x55 # endif @@ -210,6 +247,12 @@ # ifndef LANG_CHEROKEE # define LANG_CHEROKEE 0x5c # endif +# ifndef LANG_CORSICAN +# define LANG_CORSICAN 0x83 +# endif +# ifndef LANG_DARI +# define LANG_DARI 0x8c +# endif # ifndef LANG_DIVEHI # define LANG_DIVEHI 0x65 # endif @@ -240,6 +283,9 @@ # ifndef LANG_GEORGIAN # define LANG_GEORGIAN 0x37 # endif +# ifndef LANG_GREENLANDIC +# define LANG_GREENLANDIC 0x6f +# endif # ifndef LANG_GUARANI # define LANG_GUARANI 0x74 # endif @@ -282,6 +328,12 @@ # ifndef LANG_KAZAK # define LANG_KAZAK 0x3f # endif +# ifndef LANG_KICHE +# define LANG_KICHE 0x86 +# endif +# ifndef LANG_KINYARWANDA +# define LANG_KINYARWANDA 0x87 +# endif # ifndef LANG_KONKANI # define LANG_KONKANI 0x57 # endif @@ -300,6 +352,9 @@ # ifndef LANG_LITHUANIAN # define LANG_LITHUANIAN 0x27 # endif +# ifndef LANG_LUXEMBOURGISH +# define LANG_LUXEMBOURGISH 0x6e +# endif # ifndef LANG_MACEDONIAN # define LANG_MACEDONIAN 0x2f # endif @@ -315,15 +370,27 @@ # ifndef LANG_MANIPURI # define LANG_MANIPURI 0x58 # endif +# ifndef LANG_MAORI +# define LANG_MAORI 0x81 +# endif +# ifndef LANG_MAPUDUNGUN +# define LANG_MAPUDUNGUN 0x7a +# endif # ifndef LANG_MARATHI # define LANG_MARATHI 0x4e # endif +# ifndef LANG_MOHAWK +# define LANG_MOHAWK 0x7c +# endif # ifndef LANG_MONGOLIAN # define LANG_MONGOLIAN 0x50 # endif # ifndef LANG_NEPALI # define LANG_NEPALI 0x61 # endif +# ifndef LANG_OCCITAN +# define LANG_OCCITAN 0x82 +# endif # ifndef LANG_ORIYA # define LANG_ORIYA 0x48 # endif @@ -339,15 +406,21 @@ # ifndef LANG_PUNJABI # define LANG_PUNJABI 0x46 # endif -# ifndef LANG_RHAETO_ROMANCE -# define LANG_RHAETO_ROMANCE 0x17 +# ifndef LANG_QUECHUA +# define LANG_QUECHUA 0x6b +# endif +# ifndef LANG_ROMANSH +# define LANG_ROMANSH 0x17 # endif -# ifndef LANG_SAAMI -# define LANG_SAAMI 0x3b +# ifndef LANG_SAMI +# define LANG_SAMI 0x3b # endif # ifndef LANG_SANSKRIT # define LANG_SANSKRIT 0x4f # endif +# ifndef LANG_SCOTTISH_GAELIC +# define LANG_SCOTTISH_GAELIC 0x91 +# endif # ifndef LANG_SERBIAN # define LANG_SERBIAN 0x1a # endif @@ -366,6 +439,9 @@ # ifndef LANG_SORBIAN # define LANG_SORBIAN 0x2e # endif +# ifndef LANG_SOTHO +# define LANG_SOTHO 0x6c +# endif # ifndef LANG_SUTU # define LANG_SUTU 0x30 # endif @@ -411,6 +487,9 @@ # ifndef LANG_TURKMEN # define LANG_TURKMEN 0x42 # endif +# ifndef LANG_UIGHUR +# define LANG_UIGHUR 0x80 +# endif # ifndef LANG_UKRAINIAN # define LANG_UKRAINIAN 0x22 # endif @@ -429,9 +508,15 @@ # ifndef LANG_WELSH # define LANG_WELSH 0x52 # endif +# ifndef LANG_WOLOF +# define LANG_WOLOF 0x88 +# endif # ifndef LANG_XHOSA # define LANG_XHOSA 0x34 # endif +# ifndef LANG_YAKUT +# define LANG_YAKUT 0x85 +# endif # ifndef LANG_YI # define LANG_YI 0x78 # endif @@ -444,6 +529,18 @@ # ifndef LANG_ZULU # define LANG_ZULU 0x35 # endif +# ifndef SUBLANG_AFRIKAANS_SOUTH_AFRICA +# define SUBLANG_AFRIKAANS_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_ALBANIAN_ALBANIA +# define SUBLANG_ALBANIAN_ALBANIA 0x01 +# endif +# ifndef SUBLANG_ALSATIAN_FRANCE +# define SUBLANG_ALSATIAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_AMHARIC_ETHIOPIA +# define SUBLANG_AMHARIC_ETHIOPIA 0x01 +# endif # ifndef SUBLANG_ARABIC_SAUDI_ARABIA # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 # endif @@ -492,21 +589,78 @@ # ifndef SUBLANG_ARABIC_QATAR # define SUBLANG_ARABIC_QATAR 0x10 # endif +# ifndef SUBLANG_ARMENIAN_ARMENIA +# define SUBLANG_ARMENIAN_ARMENIA 0x01 +# endif +# ifndef SUBLANG_ASSAMESE_INDIA +# define SUBLANG_ASSAMESE_INDIA 0x01 +# endif # ifndef SUBLANG_AZERI_LATIN # define SUBLANG_AZERI_LATIN 0x01 # endif # ifndef SUBLANG_AZERI_CYRILLIC # define SUBLANG_AZERI_CYRILLIC 0x02 # endif +# ifndef SUBLANG_BASHKIR_RUSSIA +# define SUBLANG_BASHKIR_RUSSIA 0x01 +# endif +# ifndef SUBLANG_BASQUE_BASQUE +# define SUBLANG_BASQUE_BASQUE 0x01 +# endif +# ifndef SUBLANG_BELARUSIAN_BELARUS +# define SUBLANG_BELARUSIAN_BELARUS 0x01 +# endif # ifndef SUBLANG_BENGALI_INDIA # define SUBLANG_BENGALI_INDIA 0x01 # endif # ifndef SUBLANG_BENGALI_BANGLADESH # define SUBLANG_BENGALI_BANGLADESH 0x02 # endif +# ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN +# define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN 0x05 +# endif +# ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC +# define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x08 +# endif +# ifndef SUBLANG_BRETON_FRANCE +# define SUBLANG_BRETON_FRANCE 0x01 +# endif +# ifndef SUBLANG_BULGARIAN_BULGARIA +# define SUBLANG_BULGARIAN_BULGARIA 0x01 +# endif +# ifndef SUBLANG_CAMBODIAN_CAMBODIA +# define SUBLANG_CAMBODIAN_CAMBODIA 0x01 +# endif +# ifndef SUBLANG_CATALAN_SPAIN +# define SUBLANG_CATALAN_SPAIN 0x01 +# endif +# ifndef SUBLANG_CORSICAN_FRANCE +# define SUBLANG_CORSICAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_CROATIAN_CROATIA +# define SUBLANG_CROATIAN_CROATIA 0x01 +# endif +# ifndef SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN +# define SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN 0x04 +# endif # ifndef SUBLANG_CHINESE_MACAU # define SUBLANG_CHINESE_MACAU 0x05 # endif +# ifndef SUBLANG_CZECH_CZECH_REPUBLIC +# define SUBLANG_CZECH_CZECH_REPUBLIC 0x01 +# endif +# ifndef SUBLANG_DANISH_DENMARK +# define SUBLANG_DANISH_DENMARK 0x01 +# endif +# ifndef SUBLANG_DARI_AFGHANISTAN +# define SUBLANG_DARI_AFGHANISTAN 0x01 +# endif +# ifndef SUBLANG_DIVEHI_MALDIVES +# define SUBLANG_DIVEHI_MALDIVES 0x01 +# endif +# ifndef SUBLANG_DUTCH_SURINAM +# define SUBLANG_DUTCH_SURINAM 0x03 +# endif # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 # endif @@ -543,6 +697,18 @@ # ifndef SUBLANG_ENGLISH_SINGAPORE # define SUBLANG_ENGLISH_SINGAPORE 0x12 # endif +# ifndef SUBLANG_ESTONIAN_ESTONIA +# define SUBLANG_ESTONIAN_ESTONIA 0x01 +# endif +# ifndef SUBLANG_FAEROESE_FAROE_ISLANDS +# define SUBLANG_FAEROESE_FAROE_ISLANDS 0x01 +# endif +# ifndef SUBLANG_FARSI_IRAN +# define SUBLANG_FARSI_IRAN 0x01 +# endif +# ifndef SUBLANG_FINNISH_FINLAND +# define SUBLANG_FINNISH_FINLAND 0x01 +# endif # ifndef SUBLANG_FRENCH_LUXEMBOURG # define SUBLANG_FRENCH_LUXEMBOURG 0x05 # endif @@ -576,48 +742,231 @@ # ifndef SUBLANG_FRENCH_HAITI # define SUBLANG_FRENCH_HAITI 0x0f # endif +# ifndef SUBLANG_FRISIAN_NETHERLANDS +# define SUBLANG_FRISIAN_NETHERLANDS 0x01 +# endif +# ifndef SUBLANG_GALICIAN_SPAIN +# define SUBLANG_GALICIAN_SPAIN 0x01 +# endif +# ifndef SUBLANG_GEORGIAN_GEORGIA +# define SUBLANG_GEORGIAN_GEORGIA 0x01 +# endif # ifndef SUBLANG_GERMAN_LUXEMBOURG # define SUBLANG_GERMAN_LUXEMBOURG 0x04 # endif # ifndef SUBLANG_GERMAN_LIECHTENSTEIN # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 # endif +# ifndef SUBLANG_GREEK_GREECE +# define SUBLANG_GREEK_GREECE 0x01 +# endif +# ifndef SUBLANG_GREENLANDIC_GREENLAND +# define SUBLANG_GREENLANDIC_GREENLAND 0x01 +# endif +# ifndef SUBLANG_GUJARATI_INDIA +# define SUBLANG_GUJARATI_INDIA 0x01 +# endif +# ifndef SUBLANG_HAUSA_NIGERIA_LATIN +# define SUBLANG_HAUSA_NIGERIA_LATIN 0x01 +# endif +# ifndef SUBLANG_HEBREW_ISRAEL +# define SUBLANG_HEBREW_ISRAEL 0x01 +# endif +# ifndef SUBLANG_HINDI_INDIA +# define SUBLANG_HINDI_INDIA 0x01 +# endif +# ifndef SUBLANG_HUNGARIAN_HUNGARY +# define SUBLANG_HUNGARIAN_HUNGARY 0x01 +# endif +# ifndef SUBLANG_ICELANDIC_ICELAND +# define SUBLANG_ICELANDIC_ICELAND 0x01 +# endif +# ifndef SUBLANG_IGBO_NIGERIA +# define SUBLANG_IGBO_NIGERIA 0x01 +# endif +# ifndef SUBLANG_INDONESIAN_INDONESIA +# define SUBLANG_INDONESIAN_INDONESIA 0x01 +# endif +# ifndef SUBLANG_INUKTITUT_CANADA +# define SUBLANG_INUKTITUT_CANADA 0x01 +# endif +# undef SUBLANG_INUKTITUT_CANADA_LATIN +# define SUBLANG_INUKTITUT_CANADA_LATIN 0x02 +# undef SUBLANG_IRISH_IRELAND +# define SUBLANG_IRISH_IRELAND 0x02 +# ifndef SUBLANG_JAPANESE_JAPAN +# define SUBLANG_JAPANESE_JAPAN 0x01 +# endif +# ifndef SUBLANG_KANNADA_INDIA +# define SUBLANG_KANNADA_INDIA 0x01 +# endif # ifndef SUBLANG_KASHMIRI_INDIA # define SUBLANG_KASHMIRI_INDIA 0x02 # endif +# ifndef SUBLANG_KAZAK_KAZAKHSTAN +# define SUBLANG_KAZAK_KAZAKHSTAN 0x01 +# endif +# ifndef SUBLANG_KICHE_GUATEMALA +# define SUBLANG_KICHE_GUATEMALA 0x01 +# endif +# ifndef SUBLANG_KINYARWANDA_RWANDA +# define SUBLANG_KINYARWANDA_RWANDA 0x01 +# endif +# ifndef SUBLANG_KONKANI_INDIA +# define SUBLANG_KONKANI_INDIA 0x01 +# endif +# ifndef SUBLANG_KYRGYZ_KYRGYZSTAN +# define SUBLANG_KYRGYZ_KYRGYZSTAN 0x01 +# endif +# ifndef SUBLANG_LAO_LAOS +# define SUBLANG_LAO_LAOS 0x01 +# endif +# ifndef SUBLANG_LATVIAN_LATVIA +# define SUBLANG_LATVIAN_LATVIA 0x01 +# endif +# ifndef SUBLANG_LITHUANIAN_LITHUANIA +# define SUBLANG_LITHUANIAN_LITHUANIA 0x01 +# endif +# undef SUBLANG_LOWER_SORBIAN_GERMANY +# define SUBLANG_LOWER_SORBIAN_GERMANY 0x02 +# ifndef SUBLANG_LUXEMBOURGISH_LUXEMBOURG +# define SUBLANG_LUXEMBOURGISH_LUXEMBOURG 0x01 +# endif +# ifndef SUBLANG_MACEDONIAN_MACEDONIA +# define SUBLANG_MACEDONIAN_MACEDONIA 0x01 +# endif # ifndef SUBLANG_MALAY_MALAYSIA # define SUBLANG_MALAY_MALAYSIA 0x01 # endif # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 # endif +# ifndef SUBLANG_MALAYALAM_INDIA +# define SUBLANG_MALAYALAM_INDIA 0x01 +# endif +# ifndef SUBLANG_MALTESE_MALTA +# define SUBLANG_MALTESE_MALTA 0x01 +# endif +# ifndef SUBLANG_MAORI_NEW_ZEALAND +# define SUBLANG_MAORI_NEW_ZEALAND 0x01 +# endif +# ifndef SUBLANG_MAPUDUNGUN_CHILE +# define SUBLANG_MAPUDUNGUN_CHILE 0x01 +# endif +# ifndef SUBLANG_MARATHI_INDIA +# define SUBLANG_MARATHI_INDIA 0x01 +# endif +# ifndef SUBLANG_MOHAWK_CANADA +# define SUBLANG_MOHAWK_CANADA 0x01 +# endif +# ifndef SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA +# define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA 0x01 +# endif +# ifndef SUBLANG_MONGOLIAN_PRC +# define SUBLANG_MONGOLIAN_PRC 0x02 +# endif +# ifndef SUBLANG_NEPALI_NEPAL +# define SUBLANG_NEPALI_NEPAL 0x01 +# endif # ifndef SUBLANG_NEPALI_INDIA # define SUBLANG_NEPALI_INDIA 0x02 # endif +# ifndef SUBLANG_OCCITAN_FRANCE +# define SUBLANG_OCCITAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_ORIYA_INDIA +# define SUBLANG_ORIYA_INDIA 0x01 +# endif +# ifndef SUBLANG_PASHTO_AFGHANISTAN +# define SUBLANG_PASHTO_AFGHANISTAN 0x01 +# endif +# ifndef SUBLANG_POLISH_POLAND +# define SUBLANG_POLISH_POLAND 0x01 +# endif # ifndef SUBLANG_PUNJABI_INDIA # define SUBLANG_PUNJABI_INDIA 0x01 # endif # ifndef SUBLANG_PUNJABI_PAKISTAN # define SUBLANG_PUNJABI_PAKISTAN 0x02 # endif +# ifndef SUBLANG_QUECHUA_BOLIVIA +# define SUBLANG_QUECHUA_BOLIVIA 0x01 +# endif +# ifndef SUBLANG_QUECHUA_ECUADOR +# define SUBLANG_QUECHUA_ECUADOR 0x02 +# endif +# ifndef SUBLANG_QUECHUA_PERU +# define SUBLANG_QUECHUA_PERU 0x03 +# endif # ifndef SUBLANG_ROMANIAN_ROMANIA # define SUBLANG_ROMANIAN_ROMANIA 0x01 # endif # ifndef SUBLANG_ROMANIAN_MOLDOVA # define SUBLANG_ROMANIAN_MOLDOVA 0x02 # endif +# ifndef SUBLANG_ROMANSH_SWITZERLAND +# define SUBLANG_ROMANSH_SWITZERLAND 0x01 +# endif +# ifndef SUBLANG_RUSSIAN_RUSSIA +# define SUBLANG_RUSSIAN_RUSSIA 0x01 +# endif +# ifndef SUBLANG_RUSSIAN_MOLDAVIA +# define SUBLANG_RUSSIAN_MOLDAVIA 0x02 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_NORWAY +# define SUBLANG_SAMI_NORTHERN_NORWAY 0x01 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_SWEDEN +# define SUBLANG_SAMI_NORTHERN_SWEDEN 0x02 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_FINLAND +# define SUBLANG_SAMI_NORTHERN_FINLAND 0x03 +# endif +# ifndef SUBLANG_SAMI_LULE_NORWAY +# define SUBLANG_SAMI_LULE_NORWAY 0x04 +# endif +# ifndef SUBLANG_SAMI_LULE_SWEDEN +# define SUBLANG_SAMI_LULE_SWEDEN 0x05 +# endif +# ifndef SUBLANG_SAMI_SOUTHERN_NORWAY +# define SUBLANG_SAMI_SOUTHERN_NORWAY 0x06 +# endif +# ifndef SUBLANG_SAMI_SOUTHERN_SWEDEN +# define SUBLANG_SAMI_SOUTHERN_SWEDEN 0x07 +# endif +# undef SUBLANG_SAMI_SKOLT_FINLAND +# define SUBLANG_SAMI_SKOLT_FINLAND 0x08 +# undef SUBLANG_SAMI_INARI_FINLAND +# define SUBLANG_SAMI_INARI_FINLAND 0x09 +# ifndef SUBLANG_SANSKRIT_INDIA +# define SUBLANG_SANSKRIT_INDIA 0x01 +# endif # ifndef SUBLANG_SERBIAN_LATIN # define SUBLANG_SERBIAN_LATIN 0x02 # endif # ifndef SUBLANG_SERBIAN_CYRILLIC # define SUBLANG_SERBIAN_CYRILLIC 0x03 # endif -# ifndef SUBLANG_SINDHI_PAKISTAN -# define SUBLANG_SINDHI_PAKISTAN 0x01 +# ifndef SUBLANG_SINDHI_INDIA +# define SUBLANG_SINDHI_INDIA 0x01 # endif +# undef SUBLANG_SINDHI_PAKISTAN +# define SUBLANG_SINDHI_PAKISTAN 0x02 # ifndef SUBLANG_SINDHI_AFGHANISTAN # define SUBLANG_SINDHI_AFGHANISTAN 0x02 # endif +# ifndef SUBLANG_SINHALESE_SRI_LANKA +# define SUBLANG_SINHALESE_SRI_LANKA 0x01 +# endif +# ifndef SUBLANG_SLOVAK_SLOVAKIA +# define SUBLANG_SLOVAK_SLOVAKIA 0x01 +# endif +# ifndef SUBLANG_SLOVENIAN_SLOVENIA +# define SUBLANG_SLOVENIAN_SLOVENIA 0x01 +# endif +# ifndef SUBLANG_SOTHO_SOUTH_AFRICA +# define SUBLANG_SOTHO_SOUTH_AFRICA 0x01 +# endif # ifndef SUBLANG_SPANISH_GUATEMALA # define SUBLANG_SPANISH_GUATEMALA 0x04 # endif @@ -669,21 +1018,74 @@ # ifndef SUBLANG_SPANISH_PUERTO_RICO # define SUBLANG_SPANISH_PUERTO_RICO 0x14 # endif +# ifndef SUBLANG_SPANISH_US +# define SUBLANG_SPANISH_US 0x15 +# endif +# ifndef SUBLANG_SWAHILI_KENYA +# define SUBLANG_SWAHILI_KENYA 0x01 +# endif +# ifndef SUBLANG_SWEDISH_SWEDEN +# define SUBLANG_SWEDISH_SWEDEN 0x01 +# endif # ifndef SUBLANG_SWEDISH_FINLAND # define SUBLANG_SWEDISH_FINLAND 0x02 # endif +# ifndef SUBLANG_SYRIAC_SYRIA +# define SUBLANG_SYRIAC_SYRIA 0x01 +# endif +# ifndef SUBLANG_TAGALOG_PHILIPPINES +# define SUBLANG_TAGALOG_PHILIPPINES 0x01 +# endif +# ifndef SUBLANG_TAJIK_TAJIKISTAN +# define SUBLANG_TAJIK_TAJIKISTAN 0x01 +# endif # ifndef SUBLANG_TAMAZIGHT_ARABIC # define SUBLANG_TAMAZIGHT_ARABIC 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ALGERIA_LATIN # define SUBLANG_TAMAZIGHT_ALGERIA_LATIN 0x02 # endif +# ifndef SUBLANG_TAMIL_INDIA +# define SUBLANG_TAMIL_INDIA 0x01 +# endif +# ifndef SUBLANG_TATAR_RUSSIA +# define SUBLANG_TATAR_RUSSIA 0x01 +# endif +# ifndef SUBLANG_TELUGU_INDIA +# define SUBLANG_TELUGU_INDIA 0x01 +# endif +# ifndef SUBLANG_THAI_THAILAND +# define SUBLANG_THAI_THAILAND 0x01 +# endif +# ifndef SUBLANG_TIBETAN_PRC +# define SUBLANG_TIBETAN_PRC 0x01 +# endif +# undef SUBLANG_TIBETAN_BHUTAN +# define SUBLANG_TIBETAN_BHUTAN 0x02 # ifndef SUBLANG_TIGRINYA_ETHIOPIA # define SUBLANG_TIGRINYA_ETHIOPIA 0x01 # endif # ifndef SUBLANG_TIGRINYA_ERITREA # define SUBLANG_TIGRINYA_ERITREA 0x02 # endif +# ifndef SUBLANG_TSWANA_SOUTH_AFRICA +# define SUBLANG_TSWANA_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_TURKISH_TURKEY +# define SUBLANG_TURKISH_TURKEY 0x01 +# endif +# ifndef SUBLANG_TURKMEN_TURKMENISTAN +# define SUBLANG_TURKMEN_TURKMENISTAN 0x01 +# endif +# ifndef SUBLANG_UIGHUR_PRC +# define SUBLANG_UIGHUR_PRC 0x01 +# endif +# ifndef SUBLANG_UKRAINIAN_UKRAINE +# define SUBLANG_UKRAINIAN_UKRAINE 0x01 +# endif +# ifndef SUBLANG_UPPER_SORBIAN_GERMANY +# define SUBLANG_UPPER_SORBIAN_GERMANY 0x01 +# endif # ifndef SUBLANG_URDU_PAKISTAN # define SUBLANG_URDU_PAKISTAN 0x01 # endif @@ -696,18 +1098,47 @@ # ifndef SUBLANG_UZBEK_CYRILLIC # define SUBLANG_UZBEK_CYRILLIC 0x02 # endif +# ifndef SUBLANG_VIETNAMESE_VIETNAM +# define SUBLANG_VIETNAMESE_VIETNAM 0x01 +# endif +# ifndef SUBLANG_WELSH_UNITED_KINGDOM +# define SUBLANG_WELSH_UNITED_KINGDOM 0x01 +# endif +# ifndef SUBLANG_WOLOF_SENEGAL +# define SUBLANG_WOLOF_SENEGAL 0x01 +# endif +# ifndef SUBLANG_XHOSA_SOUTH_AFRICA +# define SUBLANG_XHOSA_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_YAKUT_RUSSIA +# define SUBLANG_YAKUT_RUSSIA 0x01 +# endif +# ifndef SUBLANG_YI_PRC +# define SUBLANG_YI_PRC 0x01 +# endif +# ifndef SUBLANG_YORUBA_NIGERIA +# define SUBLANG_YORUBA_NIGERIA 0x01 +# endif +# ifndef SUBLANG_ZULU_SOUTH_AFRICA +# define SUBLANG_ZULU_SOUTH_AFRICA 0x01 +# endif +/* GetLocaleInfoA operations. */ +# ifndef LOCALE_SNAME +# define LOCALE_SNAME 0x5c +# endif #endif -# if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE + +#if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ /* Canonicalize a MacOS X locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the MacOS X locale name. On output, it contains the Unix locale name. */ -# if !defined IN_LIBINTL +# if !defined IN_LIBINTL static -# endif +# endif void gl_locale_name_canonicalize (char *name) { @@ -721,7 +1152,7 @@ MacOS X 10.3.8 function CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ typedef struct { const char legacy[21+1]; const char unixy[5+1]; } - legacy_entry; + legacy_entry; static const legacy_entry legacy_table[] = { { "Afrikaans", "af" }, { "Albanian", "sq" }, @@ -859,7 +1290,7 @@ /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ typedef struct { const char langtag[7+1]; const char unixy[12+1]; } - langtag_entry; + langtag_entry; static const langtag_entry langtag_table[] = { /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". The default script for az on Unix is Latin. */ @@ -889,7 +1320,7 @@ /* Convert script names (ISO 15924) to Unix conventions. See http://www.unicode.org/iso15924/iso15924-codes.html */ typedef struct { const char script[4+1]; const char unixy[9+1]; } - script_entry; + script_entry; static const script_entry script_table[] = { { "Arab", "arabic" }, { "Cyrl", "cyrillic" }, @@ -903,21 +1334,21 @@ i1 = 0; i2 = sizeof (legacy_table) / sizeof (legacy_entry); while (i2 - i1 > 1) - { - /* At this point we know that if name occurs in legacy_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const legacy_entry *p = &legacy_table[i]; - if (strcmp (name, p->legacy) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if name occurs in legacy_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const legacy_entry *p = &legacy_table[i]; + if (strcmp (name, p->legacy) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name, legacy_table[i1].legacy) == 0) - { - strcpy (name, legacy_table[i1].unixy); - return; - } + { + strcpy (name, legacy_table[i1].unixy); + return; + } } /* Step 2: Convert using langtag_table and script_table. */ @@ -927,41 +1358,41 @@ i1 = 0; i2 = sizeof (langtag_table) / sizeof (langtag_entry); while (i2 - i1 > 1) - { - /* At this point we know that if name occurs in langtag_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const langtag_entry *p = &langtag_table[i]; - if (strcmp (name, p->langtag) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if name occurs in langtag_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const langtag_entry *p = &langtag_table[i]; + if (strcmp (name, p->langtag) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name, langtag_table[i1].langtag) == 0) - { - strcpy (name, langtag_table[i1].unixy); - return; - } + { + strcpy (name, langtag_table[i1].unixy); + return; + } i1 = 0; i2 = sizeof (script_table) / sizeof (script_entry); while (i2 - i1 > 1) - { - /* At this point we know that if (name + 3) occurs in script_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const script_entry *p = &script_table[i]; - if (strcmp (name + 3, p->script) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if (name + 3) occurs in script_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const script_entry *p = &script_table[i]; + if (strcmp (name + 3, p->script) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name + 3, script_table[i1].script) == 0) - { - name[2] = '@'; - strcpy (name + 3, script_table[i1].unixy); - return; - } + { + name[2] = '@'; + strcpy (name + 3, script_table[i1].unixy); + return; + } } /* Step 3: Convert new-style dash to Unix underscore. */ @@ -969,12 +1400,1371 @@ char *p; for (p = name; *p != '\0'; p++) if (*p == '-') - *p = '_'; + *p = '_'; + } +} + +#endif + + +#if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ + +/* Canonicalize a Win32 native locale name to a Unix locale name. + NAME is a sufficiently large buffer. + On input, it contains the Win32 locale name. + On output, it contains the Unix locale name. */ +# if !defined IN_LIBINTL +static +# endif +void +gl_locale_name_canonicalize (char *name) +{ + /* FIXME: This is probably incomplete: it does not handle "zh-Hans" and + "zh-Hant". */ + char *p; + + for (p = name; *p != '\0'; p++) + if (*p == '-') + { + *p = '_'; + p++; + for (; *p != '\0'; p++) + { + if (*p >= 'a' && *p <= 'z') + *p += 'A' - 'a'; + if (*p == '-') + { + *p = '\0'; + return; + } + } + return; + } +} + +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_from_win32_LANGID (LANGID langid) +{ + /* Activate the new code only when the GETTEXT_MUI environment variable is + set, for the time being, since the new code is not well tested. */ + if (getenv ("GETTEXT_MUI") != NULL) + { + static char namebuf[256]; + + /* Query the system's notion of locale name. + On Windows95/98/ME, GetLocaleInfoA returns some incorrect results. + But we don't need to support systems that are so old. */ + if (GetLocaleInfoA (MAKELCID (langid, SORT_DEFAULT), LOCALE_SNAME, + namebuf, sizeof (namebuf) - 1)) + { + /* Convert it to a Unix locale name. */ + gl_locale_name_canonicalize (namebuf); + return namebuf; + } + } + /* Internet Explorer has an LCID to RFC3066 name mapping stored in + HKEY_CLASSES_ROOT\Mime\Database\Rfc1766. But we better don't use that + since IE's i18n subsystem is known to be inconsistent with the Win32 base + (e.g. they have different character conversion facilities that produce + different results). */ + /* Use our own table. */ + { + int primary, sub; + + /* Split into language and territory part. */ + primary = PRIMARYLANGID (langid); + sub = SUBLANGID (langid); + + /* Dispatch on language. + See also http://www.unicode.org/unicode/onlinedat/languages.html . + For details about languages, see http://www.ethnologue.com/ . */ + switch (primary) + { + case LANG_AFRIKAANS: + switch (sub) + { + case SUBLANG_AFRIKAANS_SOUTH_AFRICA: return "af_ZA"; + } + return "af"; + case LANG_ALBANIAN: + switch (sub) + { + case SUBLANG_ALBANIAN_ALBANIA: return "sq_AL"; + } + return "sq"; + case LANG_ALSATIAN: + switch (sub) + { + case SUBLANG_ALSATIAN_FRANCE: return "gsw_FR"; + } + return "gsw"; + case LANG_AMHARIC: + switch (sub) + { + case SUBLANG_AMHARIC_ETHIOPIA: return "am_ET"; + } + return "am"; + case LANG_ARABIC: + switch (sub) + { + case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; + case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; + case SUBLANG_ARABIC_EGYPT: return "ar_EG"; + case SUBLANG_ARABIC_LIBYA: return "ar_LY"; + case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; + case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; + case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; + case SUBLANG_ARABIC_OMAN: return "ar_OM"; + case SUBLANG_ARABIC_YEMEN: return "ar_YE"; + case SUBLANG_ARABIC_SYRIA: return "ar_SY"; + case SUBLANG_ARABIC_JORDAN: return "ar_JO"; + case SUBLANG_ARABIC_LEBANON: return "ar_LB"; + case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; + case SUBLANG_ARABIC_UAE: return "ar_AE"; + case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; + case SUBLANG_ARABIC_QATAR: return "ar_QA"; + } + return "ar"; + case LANG_ARMENIAN: + switch (sub) + { + case SUBLANG_ARMENIAN_ARMENIA: return "hy_AM"; + } + return "hy"; + case LANG_ASSAMESE: + switch (sub) + { + case SUBLANG_ASSAMESE_INDIA: return "as_IN"; + } + return "as"; + case LANG_AZERI: + switch (sub) + { + /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ + case 0x1e: return "az@latin"; + case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; + case 0x1d: return "az@cyrillic"; + case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; + } + return "az"; + case LANG_BASHKIR: + switch (sub) + { + case SUBLANG_BASHKIR_RUSSIA: return "ba_RU"; + } + return "ba"; + case LANG_BASQUE: + switch (sub) + { + case SUBLANG_BASQUE_BASQUE: return "eu_ES"; + } + return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ + case LANG_BELARUSIAN: + switch (sub) + { + case SUBLANG_BELARUSIAN_BELARUS: return "be_BY"; + } + return "be"; + case LANG_BENGALI: + switch (sub) + { + case SUBLANG_BENGALI_INDIA: return "bn_IN"; + case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; + } + return "bn"; + case LANG_BRETON: + switch (sub) + { + case SUBLANG_BRETON_FRANCE: return "br_FR"; + } + return "br"; + case LANG_BULGARIAN: + switch (sub) + { + case SUBLANG_BULGARIAN_BULGARIA: return "bg_BG"; + } + return "bg"; + case LANG_BURMESE: + switch (sub) + { + case SUBLANG_DEFAULT: return "my_MM"; + } + return "my"; + case LANG_CAMBODIAN: + switch (sub) + { + case SUBLANG_CAMBODIAN_CAMBODIA: return "km_KH"; + } + return "km"; + case LANG_CATALAN: + switch (sub) + { + case SUBLANG_CATALAN_SPAIN: return "ca_ES"; + } + return "ca"; + case LANG_CHEROKEE: + switch (sub) + { + case SUBLANG_DEFAULT: return "chr_US"; + } + return "chr"; + case LANG_CHINESE: + switch (sub) + { + case SUBLANG_CHINESE_TRADITIONAL: case 0x1f: return "zh_TW"; + case SUBLANG_CHINESE_SIMPLIFIED: case 0x00: return "zh_CN"; + case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; /* traditional */ + case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; /* simplified */ + case SUBLANG_CHINESE_MACAU: return "zh_MO"; /* traditional */ + } + return "zh"; + case LANG_CORSICAN: + switch (sub) + { + case SUBLANG_CORSICAN_FRANCE: return "co_FR"; + } + return "co"; + case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN == LANG_BOSNIAN + * What used to be called Serbo-Croatian + * should really now be two separate + * languages because of political reasons. + * (Says tml, who knows nothing about Serbian + * or Croatian.) + * (I can feel those flames coming already.) + */ + switch (sub) + { + /* Croatian */ + case 0x00: return "hr"; + case SUBLANG_CROATIAN_CROATIA: return "hr_HR"; + case SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: return "hr_BA"; + /* Serbian */ + case 0x1f: return "sr"; + case 0x1c: return "sr"; /* latin */ + case SUBLANG_SERBIAN_LATIN: return "sr_CS"; /* latin */ + case 0x09: return "sr_RS"; /* latin */ + case 0x0b: return "sr_ME"; /* latin */ + case 0x06: return "sr_BA"; /* latin */ + case 0x1b: return "sr@cyrillic"; + case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; + case 0x0a: return "sr_RS@cyrillic"; + case 0x0c: return "sr_ME@cyrillic"; + case 0x07: return "sr_BA@cyrillic"; + /* Bosnian */ + case 0x1e: return "bs"; + case 0x1a: return "bs"; /* latin */ + case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: return "bs_BA"; /* latin */ + case 0x19: return "bs@cyrillic"; + case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: return "bs_BA@cyrillic"; + } + return "hr"; + case LANG_CZECH: + switch (sub) + { + case SUBLANG_CZECH_CZECH_REPUBLIC: return "cs_CZ"; + } + return "cs"; + case LANG_DANISH: + switch (sub) + { + case SUBLANG_DANISH_DENMARK: return "da_DK"; + } + return "da"; + case LANG_DARI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_DARI_AFGHANISTAN: return "prs_AF"; + } + return "prs"; + case LANG_DIVEHI: + switch (sub) + { + case SUBLANG_DIVEHI_MALDIVES: return "dv_MV"; + } + return "dv"; + case LANG_DUTCH: + switch (sub) + { + case SUBLANG_DUTCH: return "nl_NL"; + case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; + case SUBLANG_DUTCH_SURINAM: return "nl_SR"; + } + return "nl"; + case LANG_EDO: + switch (sub) + { + case SUBLANG_DEFAULT: return "bin_NG"; + } + return "bin"; + case LANG_ENGLISH: + switch (sub) + { + /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought + * English was the language spoken in England. + * Oh well. + */ + case SUBLANG_ENGLISH_US: return "en_US"; + case SUBLANG_ENGLISH_UK: return "en_GB"; + case SUBLANG_ENGLISH_AUS: return "en_AU"; + case SUBLANG_ENGLISH_CAN: return "en_CA"; + case SUBLANG_ENGLISH_NZ: return "en_NZ"; + case SUBLANG_ENGLISH_EIRE: return "en_IE"; + case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; + case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; + case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ + case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; + case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; + case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; + case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; + case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; + case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; + case SUBLANG_ENGLISH_INDIA: return "en_IN"; + case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; + case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; + } + return "en"; + case LANG_ESTONIAN: + switch (sub) + { + case SUBLANG_ESTONIAN_ESTONIA: return "et_EE"; + } + return "et"; + case LANG_FAEROESE: + switch (sub) + { + case SUBLANG_FAEROESE_FAROE_ISLANDS: return "fo_FO"; + } + return "fo"; + case LANG_FARSI: + switch (sub) + { + case SUBLANG_FARSI_IRAN: return "fa_IR"; + } + return "fa"; + case LANG_FINNISH: + switch (sub) + { + case SUBLANG_FINNISH_FINLAND: return "fi_FI"; + } + return "fi"; + case LANG_FRENCH: + switch (sub) + { + case SUBLANG_FRENCH: return "fr_FR"; + case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; + case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; + case SUBLANG_FRENCH_SWISS: return "fr_CH"; + case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; + case SUBLANG_FRENCH_MONACO: return "fr_MC"; + case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ + case SUBLANG_FRENCH_REUNION: return "fr_RE"; + case SUBLANG_FRENCH_CONGO: return "fr_CG"; + case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; + case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; + case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; + case SUBLANG_FRENCH_MALI: return "fr_ML"; + case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; + case SUBLANG_FRENCH_HAITI: return "fr_HT"; + } + return "fr"; + case LANG_FRISIAN: + switch (sub) + { + case SUBLANG_FRISIAN_NETHERLANDS: return "fy_NL"; + } + return "fy"; + case LANG_FULFULDE: + /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ + switch (sub) + { + case SUBLANG_DEFAULT: return "ff_NG"; + } + return "ff"; + case LANG_GAELIC: + switch (sub) + { + case 0x01: /* SCOTTISH */ + /* old, superseded by LANG_SCOTTISH_GAELIC */ + return "gd_GB"; + case SUBLANG_IRISH_IRELAND: return "ga_IE"; + } + return "ga"; + case LANG_GALICIAN: + switch (sub) + { + case SUBLANG_GALICIAN_SPAIN: return "gl_ES"; + } + return "gl"; + case LANG_GEORGIAN: + switch (sub) + { + case SUBLANG_GEORGIAN_GEORGIA: return "ka_GE"; + } + return "ka"; + case LANG_GERMAN: + switch (sub) + { + case SUBLANG_GERMAN: return "de_DE"; + case SUBLANG_GERMAN_SWISS: return "de_CH"; + case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; + case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; + case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; + } + return "de"; + case LANG_GREEK: + switch (sub) + { + case SUBLANG_GREEK_GREECE: return "el_GR"; + } + return "el"; + case LANG_GREENLANDIC: + switch (sub) + { + case SUBLANG_GREENLANDIC_GREENLAND: return "kl_GL"; + } + return "kl"; + case LANG_GUARANI: + switch (sub) + { + case SUBLANG_DEFAULT: return "gn_PY"; + } + return "gn"; + case LANG_GUJARATI: + switch (sub) + { + case SUBLANG_GUJARATI_INDIA: return "gu_IN"; + } + return "gu"; + case LANG_HAUSA: + switch (sub) + { + case 0x1f: return "ha"; + case SUBLANG_HAUSA_NIGERIA_LATIN: return "ha_NG"; + } + return "ha"; + case LANG_HAWAIIAN: + /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) + or Hawaii Creole English ("cpe_US", 600000 speakers)? */ + switch (sub) + { + case SUBLANG_DEFAULT: return "cpe_US"; + } + return "cpe"; + case LANG_HEBREW: + switch (sub) + { + case SUBLANG_HEBREW_ISRAEL: return "he_IL"; + } + return "he"; + case LANG_HINDI: + switch (sub) + { + case SUBLANG_HINDI_INDIA: return "hi_IN"; + } + return "hi"; + case LANG_HUNGARIAN: + switch (sub) + { + case SUBLANG_HUNGARIAN_HUNGARY: return "hu_HU"; + } + return "hu"; + case LANG_IBIBIO: + switch (sub) + { + case SUBLANG_DEFAULT: return "nic_NG"; + } + return "nic"; + case LANG_ICELANDIC: + switch (sub) + { + case SUBLANG_ICELANDIC_ICELAND: return "is_IS"; + } + return "is"; + case LANG_IGBO: + switch (sub) + { + case SUBLANG_IGBO_NIGERIA: return "ig_NG"; + } + return "ig"; + case LANG_INDONESIAN: + switch (sub) + { + case SUBLANG_INDONESIAN_INDONESIA: return "id_ID"; + } + return "id"; + case LANG_INUKTITUT: + switch (sub) + { + case 0x1e: return "iu"; /* syllabic */ + case SUBLANG_INUKTITUT_CANADA: return "iu_CA"; /* syllabic */ + case 0x1f: return "iu@latin"; + case SUBLANG_INUKTITUT_CANADA_LATIN: return "iu_CA@latin"; + } + return "iu"; + case LANG_ITALIAN: + switch (sub) + { + case SUBLANG_ITALIAN: return "it_IT"; + case SUBLANG_ITALIAN_SWISS: return "it_CH"; + } + return "it"; + case LANG_JAPANESE: + switch (sub) + { + case SUBLANG_JAPANESE_JAPAN: return "ja_JP"; + } + return "ja"; + case LANG_KANNADA: + switch (sub) + { + case SUBLANG_KANNADA_INDIA: return "kn_IN"; + } + return "kn"; + case LANG_KANURI: + switch (sub) + { + case SUBLANG_DEFAULT: return "kr_NG"; + } + return "kr"; + case LANG_KASHMIRI: + switch (sub) + { + case SUBLANG_DEFAULT: return "ks_PK"; + case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; + } + return "ks"; + case LANG_KAZAK: + switch (sub) + { + case SUBLANG_KAZAK_KAZAKHSTAN: return "kk_KZ"; + } + return "kk"; + case LANG_KICHE: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_KICHE_GUATEMALA: return "qut_GT"; + } + return "qut"; + case LANG_KINYARWANDA: + switch (sub) + { + case SUBLANG_KINYARWANDA_RWANDA: return "rw_RW"; + } + return "rw"; + case LANG_KONKANI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_KONKANI_INDIA: return "kok_IN"; + } + return "kok"; + case LANG_KOREAN: + switch (sub) + { + case SUBLANG_DEFAULT: return "ko_KR"; + } + return "ko"; + case LANG_KYRGYZ: + switch (sub) + { + case SUBLANG_KYRGYZ_KYRGYZSTAN: return "ky_KG"; + } + return "ky"; + case LANG_LAO: + switch (sub) + { + case SUBLANG_LAO_LAOS: return "lo_LA"; + } + return "lo"; + case LANG_LATIN: + switch (sub) + { + case SUBLANG_DEFAULT: return "la_VA"; + } + return "la"; + case LANG_LATVIAN: + switch (sub) + { + case SUBLANG_LATVIAN_LATVIA: return "lv_LV"; + } + return "lv"; + case LANG_LITHUANIAN: + switch (sub) + { + case SUBLANG_LITHUANIAN_LITHUANIA: return "lt_LT"; + } + return "lt"; + case LANG_LUXEMBOURGISH: + switch (sub) + { + case SUBLANG_LUXEMBOURGISH_LUXEMBOURG: return "lb_LU"; + } + return "lb"; + case LANG_MACEDONIAN: + switch (sub) + { + case SUBLANG_MACEDONIAN_MACEDONIA: return "mk_MK"; + } + return "mk"; + case LANG_MALAY: + switch (sub) + { + case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; + case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; + } + return "ms"; + case LANG_MALAYALAM: + switch (sub) + { + case SUBLANG_MALAYALAM_INDIA: return "ml_IN"; + } + return "ml"; + case LANG_MALTESE: + switch (sub) + { + case SUBLANG_MALTESE_MALTA: return "mt_MT"; + } + return "mt"; + case LANG_MANIPURI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_DEFAULT: return "mni_IN"; + } + return "mni"; + case LANG_MAORI: + switch (sub) + { + case SUBLANG_MAORI_NEW_ZEALAND: return "mi_NZ"; + } + return "mi"; + case LANG_MAPUDUNGUN: + switch (sub) + { + case SUBLANG_MAPUDUNGUN_CHILE: return "arn_CL"; + } + return "arn"; + case LANG_MARATHI: + switch (sub) + { + case SUBLANG_MARATHI_INDIA: return "mr_IN"; + } + return "mr"; + case LANG_MOHAWK: + switch (sub) + { + case SUBLANG_MOHAWK_CANADA: return "moh_CA"; + } + return "moh"; + case LANG_MONGOLIAN: + switch (sub) + { + case SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: case 0x1e: return "mn_MN"; + case SUBLANG_MONGOLIAN_PRC: case 0x1f: return "mn_CN"; + } + return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ + case LANG_NEPALI: + switch (sub) + { + case SUBLANG_NEPALI_NEPAL: return "ne_NP"; + case SUBLANG_NEPALI_INDIA: return "ne_IN"; + } + return "ne"; + case LANG_NORWEGIAN: + switch (sub) + { + case 0x1f: return "nb"; + case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; + case 0x1e: return "nn"; + case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; + } + return "no"; + case LANG_OCCITAN: + switch (sub) + { + case SUBLANG_OCCITAN_FRANCE: return "oc_FR"; + } + return "oc"; + case LANG_ORIYA: + switch (sub) + { + case SUBLANG_ORIYA_INDIA: return "or_IN"; + } + return "or"; + case LANG_OROMO: + switch (sub) + { + case SUBLANG_DEFAULT: return "om_ET"; + } + return "om"; + case LANG_PAPIAMENTU: + switch (sub) + { + case SUBLANG_DEFAULT: return "pap_AN"; + } + return "pap"; + case LANG_PASHTO: + switch (sub) + { + case SUBLANG_PASHTO_AFGHANISTAN: return "ps_AF"; + } + return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ + case LANG_POLISH: + switch (sub) + { + case SUBLANG_POLISH_POLAND: return "pl_PL"; + } + return "pl"; + case LANG_PORTUGUESE: + switch (sub) + { + /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. + Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ + case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; + case SUBLANG_PORTUGUESE: return "pt_PT"; + } + return "pt"; + case LANG_PUNJABI: + switch (sub) + { + case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ + case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ + } + return "pa"; + case LANG_QUECHUA: + /* Note: Microsoft uses the non-ISO language code "quz". */ + switch (sub) + { + case SUBLANG_QUECHUA_BOLIVIA: return "qu_BO"; + case SUBLANG_QUECHUA_ECUADOR: return "qu_EC"; + case SUBLANG_QUECHUA_PERU: return "qu_PE"; + } + return "qu"; + case LANG_ROMANIAN: + switch (sub) + { + case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; + case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; + } + return "ro"; + case LANG_ROMANSH: + switch (sub) + { + case SUBLANG_ROMANSH_SWITZERLAND: return "rm_CH"; + } + return "rm"; + case LANG_RUSSIAN: + switch (sub) + { + case SUBLANG_RUSSIAN_RUSSIA: return "ru_RU"; + case SUBLANG_RUSSIAN_MOLDAVIA: return "ru_MD"; + } + return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ + case LANG_SAMI: + switch (sub) + { + /* Northern Sami */ + case 0x00: return "se"; + case SUBLANG_SAMI_NORTHERN_NORWAY: return "se_NO"; + case SUBLANG_SAMI_NORTHERN_SWEDEN: return "se_SE"; + case SUBLANG_SAMI_NORTHERN_FINLAND: return "se_FI"; + /* Lule Sami */ + case 0x1f: return "smj"; + case SUBLANG_SAMI_LULE_NORWAY: return "smj_NO"; + case SUBLANG_SAMI_LULE_SWEDEN: return "smj_SE"; + /* Southern Sami */ + case 0x1e: return "sma"; + case SUBLANG_SAMI_SOUTHERN_NORWAY: return "sma_NO"; + case SUBLANG_SAMI_SOUTHERN_SWEDEN: return "sma_SE"; + /* Skolt Sami */ + case 0x1d: return "sms"; + case SUBLANG_SAMI_SKOLT_FINLAND: return "sms_FI"; + /* Inari Sami */ + case 0x1c: return "smn"; + case SUBLANG_SAMI_INARI_FINLAND: return "smn_FI"; + } + return "se"; /* or "smi"? */ + case LANG_SANSKRIT: + switch (sub) + { + case SUBLANG_SANSKRIT_INDIA: return "sa_IN"; + } + return "sa"; + case LANG_SCOTTISH_GAELIC: + switch (sub) + { + case SUBLANG_DEFAULT: return "gd_GB"; + } + return "gd"; + case LANG_SINDHI: + switch (sub) + { + case SUBLANG_SINDHI_INDIA: return "sd_IN"; + case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; + /*case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF";*/ + } + return "sd"; + case LANG_SINHALESE: + switch (sub) + { + case SUBLANG_SINHALESE_SRI_LANKA: return "si_LK"; + } + return "si"; + case LANG_SLOVAK: + switch (sub) + { + case SUBLANG_SLOVAK_SLOVAKIA: return "sk_SK"; + } + return "sk"; + case LANG_SLOVENIAN: + switch (sub) + { + case SUBLANG_SLOVENIAN_SLOVENIA: return "sl_SI"; + } + return "sl"; + case LANG_SOMALI: + switch (sub) + { + case SUBLANG_DEFAULT: return "so_SO"; + } + return "so"; + case LANG_SORBIAN: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + /* Upper Sorbian */ + case 0x00: return "hsb"; + case SUBLANG_UPPER_SORBIAN_GERMANY: return "hsb_DE"; + /* Lower Sorbian */ + case 0x1f: return "dsb"; + case SUBLANG_LOWER_SORBIAN_GERMANY: return "dsb_DE"; + } + return "wen"; + case LANG_SOTHO: + /* calls + it "Sepedi"; according to + + + it's the same as Northern Sotho. */ + switch (sub) + { + case SUBLANG_SOTHO_SOUTH_AFRICA: return "nso_ZA"; + } + return "nso"; + case LANG_SPANISH: + switch (sub) + { + case SUBLANG_SPANISH: return "es_ES"; + case SUBLANG_SPANISH_MEXICAN: return "es_MX"; + case SUBLANG_SPANISH_MODERN: + return "es_ES@modern"; /* not seen on Unix */ + case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; + case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; + case SUBLANG_SPANISH_PANAMA: return "es_PA"; + case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; + case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; + case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; + case SUBLANG_SPANISH_PERU: return "es_PE"; + case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; + case SUBLANG_SPANISH_ECUADOR: return "es_EC"; + case SUBLANG_SPANISH_CHILE: return "es_CL"; + case SUBLANG_SPANISH_URUGUAY: return "es_UY"; + case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; + case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; + case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; + case SUBLANG_SPANISH_HONDURAS: return "es_HN"; + case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; + case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; + case SUBLANG_SPANISH_US: return "es_US"; + } + return "es"; + case LANG_SUTU: + switch (sub) + { + case SUBLANG_DEFAULT: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ + } + return "bnt"; + case LANG_SWAHILI: + switch (sub) + { + case SUBLANG_SWAHILI_KENYA: return "sw_KE"; + } + return "sw"; + case LANG_SWEDISH: + switch (sub) + { + case SUBLANG_SWEDISH_SWEDEN: return "sv_SE"; + case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; + } + return "sv"; + case LANG_SYRIAC: + switch (sub) + { + case SUBLANG_SYRIAC_SYRIA: return "syr_SY"; /* An extinct language. */ + } + return "syr"; + case LANG_TAGALOG: + switch (sub) + { + case SUBLANG_TAGALOG_PHILIPPINES: return "tl_PH"; /* or "fil_PH"? */ + } + return "tl"; /* or "fil"? */ + case LANG_TAJIK: + switch (sub) + { + case 0x1f: return "tg"; + case SUBLANG_TAJIK_TAJIKISTAN: return "tg_TJ"; + } + return "tg"; + case LANG_TAMAZIGHT: + /* Note: Microsoft uses the non-ISO language code "tmz". */ + switch (sub) + { + /* FIXME: Adjust this when Tamazight locales appear on Unix. */ + case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; + case 0x1f: return "ber@latin"; + case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; + } + return "ber"; + case LANG_TAMIL: + switch (sub) + { + case SUBLANG_TAMIL_INDIA: return "ta_IN"; + } + return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ + case LANG_TATAR: + switch (sub) + { + case SUBLANG_TATAR_RUSSIA: return "tt_RU"; + } + return "tt"; + case LANG_TELUGU: + switch (sub) + { + case SUBLANG_TELUGU_INDIA: return "te_IN"; + } + return "te"; + case LANG_THAI: + switch (sub) + { + case SUBLANG_THAI_THAILAND: return "th_TH"; + } + return "th"; + case LANG_TIBETAN: + switch (sub) + { + case SUBLANG_TIBETAN_PRC: + /* Most Tibetans would not like "bo_CN". But Tibet does not yet + have a country code of its own. */ + return "bo"; + case SUBLANG_TIBETAN_BHUTAN: return "bo_BT"; + } + return "bo"; + case LANG_TIGRINYA: + switch (sub) + { + case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; + case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; + } + return "ti"; + case LANG_TSONGA: + switch (sub) + { + case SUBLANG_DEFAULT: return "ts_ZA"; + } + return "ts"; + case LANG_TSWANA: + /* Spoken in South Africa, Botswana. */ + switch (sub) + { + case SUBLANG_TSWANA_SOUTH_AFRICA: return "tn_ZA"; + } + return "tn"; + case LANG_TURKISH: + switch (sub) + { + case SUBLANG_TURKISH_TURKEY: return "tr_TR"; + } + return "tr"; + case LANG_TURKMEN: + switch (sub) + { + case SUBLANG_TURKMEN_TURKMENISTAN: return "tk_TM"; + } + return "tk"; + case LANG_UIGHUR: + switch (sub) + { + case SUBLANG_UIGHUR_PRC: return "ug_CN"; + } + return "ug"; + case LANG_UKRAINIAN: + switch (sub) + { + case SUBLANG_UKRAINIAN_UKRAINE: return "uk_UA"; + } + return "uk"; + case LANG_URDU: + switch (sub) + { + case SUBLANG_URDU_PAKISTAN: return "ur_PK"; + case SUBLANG_URDU_INDIA: return "ur_IN"; + } + return "ur"; + case LANG_UZBEK: + switch (sub) + { + case 0x1f: return "uz"; + case SUBLANG_UZBEK_LATIN: return "uz_UZ"; + case 0x1e: return "uz@cyrillic"; + case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; + } + return "uz"; + case LANG_VENDA: + switch (sub) + { + case SUBLANG_DEFAULT: return "ve_ZA"; + } + return "ve"; + case LANG_VIETNAMESE: + switch (sub) + { + case SUBLANG_VIETNAMESE_VIETNAM: return "vi_VN"; + } + return "vi"; + case LANG_WELSH: + switch (sub) + { + case SUBLANG_WELSH_UNITED_KINGDOM: return "cy_GB"; + } + return "cy"; + case LANG_WOLOF: + switch (sub) + { + case SUBLANG_WOLOF_SENEGAL: return "wo_SN"; + } + return "wo"; + case LANG_XHOSA: + switch (sub) + { + case SUBLANG_XHOSA_SOUTH_AFRICA: return "xh_ZA"; + } + return "xh"; + case LANG_YAKUT: + switch (sub) + { + case SUBLANG_YAKUT_RUSSIA: return "sah_RU"; + } + return "sah"; + case LANG_YI: + switch (sub) + { + case SUBLANG_YI_PRC: return "ii_CN"; + } + return "ii"; + case LANG_YIDDISH: + switch (sub) + { + case SUBLANG_DEFAULT: return "yi_IL"; + } + return "yi"; + case LANG_YORUBA: + switch (sub) + { + case SUBLANG_YORUBA_NIGERIA: return "yo_NG"; + } + return "yo"; + case LANG_ZULU: + switch (sub) + { + case SUBLANG_ZULU_SOUTH_AFRICA: return "zu_ZA"; + } + return "zu"; + default: return "C"; + } } } +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_from_win32_LCID (LCID lcid) +{ + LANGID langid; + + /* Strip off the sorting rules, keep only the language part. */ + langid = LANGIDFROMLCID (lcid); + + return gl_locale_name_from_win32_LANGID (langid); +} + +#endif + + +#if HAVE_USELOCALE /* glibc or MacOS X */ + +/* Simple hash set of strings. We don't want to drag in lots of hash table + code here. */ + +# define SIZE_BITS (sizeof (size_t) * CHAR_BIT) + +/* A hash function for NUL-terminated char* strings using + the method described by Bruno Haible. + See http://www.haible.de/bruno/hashfunc.html. */ +static size_t +string_hash (const void *x) +{ + const char *s = (const char *) x; + size_t h = 0; + + for (; *s; s++) + h = *s + ((h << 9) | (h >> (SIZE_BITS - 9))); + + return h; +} + +/* A hash table of fixed size. Multiple threads can access it read-only + simultaneously, but only one thread can insert into it at the same time. */ + +/* A node in a hash bucket collision list. */ +struct hash_node + { + struct hash_node * volatile next; + char contents[100]; /* has variable size */ + }; + +# define HASH_TABLE_SIZE 257 +static struct hash_node * volatile struniq_hash_table[HASH_TABLE_SIZE] + /* = { NULL, ..., NULL } */; + +/* This lock protects the struniq_hash_table against multiple simultaneous + insertions. */ +gl_lock_define_initialized(static, struniq_lock) + +/* Store a copy of the given string in a string pool with indefinite extent. + Return a pointer to this copy. */ +static const char * +struniq (const char *string) +{ + size_t hashcode = string_hash (string); + size_t slot = hashcode % HASH_TABLE_SIZE; + size_t size; + struct hash_node *new_node; + struct hash_node *p; + for (p = struniq_hash_table[slot]; p != NULL; p = p->next) + if (strcmp (p->contents, string) == 0) + return p->contents; + size = strlen (string) + 1; + new_node = + (struct hash_node *) + malloc (offsetof (struct hash_node, contents[0]) + size); + if (new_node == NULL) + /* Out of memory. Return a statically allocated string. */ + return "C"; + memcpy (new_node->contents, string, size); + /* Lock while inserting new_node. */ + gl_lock_lock (struniq_lock); + /* Check whether another thread already added the string while we were + waiting on the lock. */ + for (p = struniq_hash_table[slot]; p != NULL; p = p->next) + if (strcmp (p->contents, string) == 0) + { + free (new_node); + new_node = p; + goto done; + } + /* Really insert new_node into the hash table. Fill new_node entirely first, + because other threads may be iterating over the linked list. */ + new_node->next = struniq_hash_table[slot]; + struniq_hash_table[slot] = new_node; + done: + /* Unlock after new_node is inserted. */ + gl_lock_unlock (struniq_lock); + return new_node->contents; +} + #endif + +#if defined IN_LIBINTL || HAVE_USELOCALE + +/* Like gl_locale_name_thread, except that the result is not in storage of + indefinite extent. */ +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_thread_unsafe (int category, const char *categoryname) +{ +# if HAVE_USELOCALE + { + locale_t thread_locale = uselocale (NULL); + if (thread_locale != LC_GLOBAL_LOCALE) + { +# if __GLIBC__ >= 2 + /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in + glibc < 2.12. + See . */ + const char *name = + nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); + if (name[0] == '\0') + /* Fallback code for glibc < 2.4, which did not implement + nl_langinfo (_NL_LOCALE_NAME (category)). */ + name = thread_locale->__names[category]; + return name; +# endif +# if defined __APPLE__ && defined __MACH__ /* MacOS X */ + /* The locale name is found deep in an undocumented data structure. + Since it's stored in a buffer of size 32 and newlocale() rejects + locale names of length > 31, we can assume that it is NUL terminated + in this buffer. But we need to make a copy of the locale name, of + indefinite extent. */ + struct _xlocale_part1_v0 /* used in MacOS X 10.5 */ + { + int32_t __refcount; + void (*__free_extra)(void *); + __darwin_mbstate_t __mbs[10]; + int64_t __magic; + }; + struct _xlocale_part1_v1 /* used in MacOS X >= 10.6.0 */ + { + int32_t __refcount; + void (*__free_extra)(void *); + __darwin_mbstate_t __mbs[10]; + /*pthread_lock_t*/ int __lock; + int64_t __magic; + }; + struct _xlocale_part2 + { + int64_t __magic; + unsigned char __collate_load_error; + unsigned char __collate_substitute_nontrivial; + unsigned char _messages_using_locale; + unsigned char _monetary_using_locale; + unsigned char _numeric_using_locale; + unsigned char _time_using_locale; + unsigned char __mlocale_changed; + unsigned char __nlocale_changed; + unsigned char __numeric_fp_cvt; + struct __xlocale_st_collate *__lc_collate; + struct __xlocale_st_runelocale *__lc_ctype; + struct __xlocale_st_messages *__lc_messages; + struct __xlocale_st_monetary *__lc_monetary; + struct __xlocale_st_numeric *__lc_numeric; + struct _xlocale *__lc_numeric_loc; + struct __xlocale_st_time *__lc_time; + /* more */ + }; + struct __xlocale_st_collate + { + int32_t __refcount; + void (*__free_extra)(void *); + char __encoding[32]; + /* more */ + }; + struct __xlocale_st_runelocale + { + int32_t __refcount; + void (*__free_extra)(void *); + char __ctype_encoding[32]; + /* more */ + }; + struct __xlocale_st_messages + { + int32_t __refcount; + void (*__free_extra)(void *); + char *_messages_locale_buf; + /* more */ + }; + struct __xlocale_st_monetary + { + int32_t __refcount; + void (*__free_extra)(void *); + char *_monetary_locale_buf; + /* more */ + }; + struct __xlocale_st_numeric { + int32_t __refcount; + void (*__free_extra)(void *); + char *_numeric_locale_buf; + /* more */ + }; + struct __xlocale_st_time { + int32_t __refcount; + void (*__free_extra)(void *); + char *_time_locale_buf; + /* more */ + }; + struct _xlocale_part2 *tlp; + if (((struct _xlocale_part1_v0 *) thread_locale)->__magic + == 0x786C6F63616C6530LL) + /* MacOS X 10.5 */ + tlp = + (struct _xlocale_part2 *) + &((struct _xlocale_part1_v0 *) thread_locale)->__magic; + else if (((struct _xlocale_part1_v1 *) thread_locale)->__magic + == 0x786C6F63616C6530LL) + /* MacOS X >= 10.6.0 */ + tlp = + (struct _xlocale_part2 *) + &((struct _xlocale_part1_v1 *) thread_locale)->__magic; + else + /* Unsupported version of MacOS X: The internals of 'struct _xlocale' + have changed again. */ + return ""; + switch (category) + { + case LC_CTYPE: + return tlp->__lc_ctype->__ctype_encoding; + case LC_NUMERIC: + return tlp->_numeric_using_locale + ? tlp->__lc_numeric->_numeric_locale_buf + : "C"; + case LC_TIME: + return tlp->_time_using_locale + ? tlp->__lc_time->_time_locale_buf + : "C"; + case LC_COLLATE: + return !tlp->__collate_load_error + ? tlp->__lc_collate->__encoding + : "C"; + case LC_MONETARY: + return tlp->_monetary_using_locale + ? tlp->__lc_monetary->_monetary_locale_buf + : "C"; + case LC_MESSAGES: + return tlp->_messages_using_locale + ? tlp->__lc_messages->_messages_locale_buf + : "C"; + default: /* We shouldn't get here. */ + return ""; + } +# endif + } + } +# endif + return NULL; +} + +#endif + +const char * +gl_locale_name_thread (int category, const char *categoryname) +{ +#if HAVE_USELOCALE + const char *name = gl_locale_name_thread_unsafe (category, categoryname); + if (name != NULL) + return struniq (name); +#endif + return NULL; +} + /* XPG3 defines the result of 'setlocale (category, NULL)' as: "Directs 'setlocale()' to query 'category' and return the current setting of 'local'." @@ -985,12 +2775,6 @@ # define HAVE_LOCALE_NULL #endif -/* Determine the current locale's name, and canonicalize it into XPG syntax - language[_territory][.codeset][@modifier] - The codeset part in the result is not reliable; the locale_charset() - should be used for codeset information instead. - The result must not be freed; it is statically allocated. */ - const char * gl_locale_name_posix (int category, const char *categoryname) { @@ -999,6 +2783,30 @@ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else + /* On other systems we ignore what setlocale reports and instead look at the + environment variables directly. This is necessary + 1. on systems which have a facility for customizing the default locale + (MacOS X, native Windows, Cygwin) and where the system's setlocale() + function ignores this default locale (MacOS X, Cygwin), in two cases: + a. when the user missed to use the setlocale() override from libintl + (for example by not including ), + b. when setlocale supports only the "C" locale, such as on Cygwin + 1.5.x. In this case even the override from libintl cannot help. + 2. on all systems where setlocale supports only the "C" locale. */ + /* Strictly speaking, it is a POSIX violation to look at the environment + variables regardless whether setlocale has been called or not. POSIX + says: + "For C-language programs, the POSIX locale shall be the + default locale when the setlocale() function is not called." + But we assume that all programs that use internationalized APIs call + setlocale (LC_ALL, ""). */ + return gl_locale_name_environ (category, categoryname); +#endif +} + +const char * +gl_locale_name_environ (int category, const char *categoryname) +{ const char *retval; /* Setting of LC_ALL overrides all other. */ @@ -1012,10 +2820,21 @@ /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') - return retval; + { +#if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE + /* MacOS X 10.2 or newer. + Ignore invalid LANG value set by the Terminal application. */ + if (strcmp (retval, "UTF-8") != 0) +#endif +#if defined __CYGWIN__ + /* Cygwin. + Ignore dummy LANG value set by ~/.profile. */ + if (strcmp (retval, "C.UTF-8") != 0) +#endif + return retval; + } return NULL; -#endif } const char * @@ -1028,9 +2847,28 @@ implementation-defined locale. Some implementations may provide facilities for local installation administrators to set the default locale, customizing it for each location. POSIX:2001 does not require - such a facility. */ + such a facility. -#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined(WIN32_NATIVE)) + The systems with such a facility are MacOS X and Windows: They provide a + GUI that allows the user to choose a locale. + - On MacOS X, by default, none of LC_* or LANG are set. Starting with + MacOS X 10.4 or 10.5, LANG is set for processes launched by the + 'Terminal' application (but sometimes to an incorrect value "UTF-8"). + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C" locale. + - On native Windows, by default, none of LC_* or LANG are set. + When no environment variable is set, setlocale (LC_ALL, "") uses the + locale chosen by the user. + - On Cygwin 1.5.x, by default, none of LC_* or LANG are set. + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C" locale. + - On Cygwin 1.7, by default, LANG is set to "C.UTF-8" when the default + ~/.profile is executed. + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C.UTF-8" locale, which operates in the same way as the "C" locale. + */ + +#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined WIN32_NATIVE || defined __CYGWIN__) /* The system does not have a way of setting the locale, other than the POSIX specified environment variables. We use C as default locale. */ @@ -1051,454 +2889,68 @@ if (cached_localename == NULL) { - char namebuf[256]; + char namebuf[256]; # if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ - CFLocaleRef locale = CFLocaleCopyCurrent (); - CFStringRef name = CFLocaleGetIdentifier (locale); + CFLocaleRef locale = CFLocaleCopyCurrent (); + CFStringRef name = CFLocaleGetIdentifier (locale); - if (CFStringGetCString (name, namebuf, sizeof(namebuf), - kCFStringEncodingASCII)) - { - gl_locale_name_canonicalize (namebuf); - cached_localename = strdup (namebuf); - } - CFRelease (locale); + if (CFStringGetCString (name, namebuf, sizeof (namebuf), + kCFStringEncodingASCII)) + { + gl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } + CFRelease (locale); # elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ - CFTypeRef value = - CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), - kCFPreferencesCurrentApplication); - if (value != NULL - && CFGetTypeID (value) == CFStringGetTypeID () - && CFStringGetCString ((CFStringRef)value, namebuf, sizeof(namebuf), - kCFStringEncodingASCII)) - { - gl_locale_name_canonicalize (namebuf); - cached_localename = strdup (namebuf); - } + CFTypeRef value = + CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), + kCFPreferencesCurrentApplication); + if (value != NULL + && CFGetTypeID (value) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)value, + namebuf, sizeof (namebuf), + kCFStringEncodingASCII)) + { + gl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } # endif - if (cached_localename == NULL) - cached_localename = "C"; + if (cached_localename == NULL) + cached_localename = "C"; } return cached_localename; } # endif -# if defined(WIN32_NATIVE) /* WIN32, not Cygwin */ +# if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ { LCID lcid; - LANGID langid; - int primary, sub; /* Use native Win32 API locale ID. */ lcid = GetThreadLocale (); - /* Strip off the sorting rules, keep only the language part. */ - langid = LANGIDFROMLCID (lcid); - - /* Split into language and territory part. */ - primary = PRIMARYLANGID (langid); - sub = SUBLANGID (langid); - - /* Dispatch on language. - See also http://www.unicode.org/unicode/onlinedat/languages.html . - For details about languages, see http://www.ethnologue.com/ . */ - switch (primary) - { - case LANG_AFRIKAANS: return "af_ZA"; - case LANG_ALBANIAN: return "sq_AL"; - case LANG_AMHARIC: return "am_ET"; - case LANG_ARABIC: - switch (sub) - { - case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; - case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; - case SUBLANG_ARABIC_EGYPT: return "ar_EG"; - case SUBLANG_ARABIC_LIBYA: return "ar_LY"; - case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; - case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; - case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; - case SUBLANG_ARABIC_OMAN: return "ar_OM"; - case SUBLANG_ARABIC_YEMEN: return "ar_YE"; - case SUBLANG_ARABIC_SYRIA: return "ar_SY"; - case SUBLANG_ARABIC_JORDAN: return "ar_JO"; - case SUBLANG_ARABIC_LEBANON: return "ar_LB"; - case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; - case SUBLANG_ARABIC_UAE: return "ar_AE"; - case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; - case SUBLANG_ARABIC_QATAR: return "ar_QA"; - } - return "ar"; - case LANG_ARMENIAN: return "hy_AM"; - case LANG_ASSAMESE: return "as_IN"; - case LANG_AZERI: - switch (sub) - { - /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ - case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; - case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; - } - return "az"; - case LANG_BASQUE: - switch (sub) - { - case SUBLANG_DEFAULT: return "eu_ES"; - } - return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ - case LANG_BELARUSIAN: return "be_BY"; - case LANG_BENGALI: - switch (sub) - { - case SUBLANG_BENGALI_INDIA: return "bn_IN"; - case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; - } - return "bn"; - case LANG_BULGARIAN: return "bg_BG"; - case LANG_BURMESE: return "my_MM"; - case LANG_CAMBODIAN: return "km_KH"; - case LANG_CATALAN: return "ca_ES"; - case LANG_CHEROKEE: return "chr_US"; - case LANG_CHINESE: - switch (sub) - { - case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW"; - case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN"; - case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; - case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; - case SUBLANG_CHINESE_MACAU: return "zh_MO"; - } - return "zh"; - case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN - * What used to be called Serbo-Croatian - * should really now be two separate - * languages because of political reasons. - * (Says tml, who knows nothing about Serbian - * or Croatian.) - * (I can feel those flames coming already.) - */ - switch (sub) - { - case SUBLANG_DEFAULT: return "hr_HR"; - case SUBLANG_SERBIAN_LATIN: return "sr_CS"; - case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; - } - return "hr"; - case LANG_CZECH: return "cs_CZ"; - case LANG_DANISH: return "da_DK"; - case LANG_DIVEHI: return "dv_MV"; - case LANG_DUTCH: - switch (sub) - { - case SUBLANG_DUTCH: return "nl_NL"; - case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; - } - return "nl"; - case LANG_EDO: return "bin_NG"; - case LANG_ENGLISH: - switch (sub) - { - /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought - * English was the language spoken in England. - * Oh well. - */ - case SUBLANG_ENGLISH_US: return "en_US"; - case SUBLANG_ENGLISH_UK: return "en_GB"; - case SUBLANG_ENGLISH_AUS: return "en_AU"; - case SUBLANG_ENGLISH_CAN: return "en_CA"; - case SUBLANG_ENGLISH_NZ: return "en_NZ"; - case SUBLANG_ENGLISH_EIRE: return "en_IE"; - case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; - case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; - case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ - case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; - case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; - case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; - case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; - case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; - case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; - case SUBLANG_ENGLISH_INDIA: return "en_IN"; - case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; - case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; - } - return "en"; - case LANG_ESTONIAN: return "et_EE"; - case LANG_FAEROESE: return "fo_FO"; - case LANG_FARSI: return "fa_IR"; - case LANG_FINNISH: return "fi_FI"; - case LANG_FRENCH: - switch (sub) - { - case SUBLANG_FRENCH: return "fr_FR"; - case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; - case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; - case SUBLANG_FRENCH_SWISS: return "fr_CH"; - case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; - case SUBLANG_FRENCH_MONACO: return "fr_MC"; - case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ - case SUBLANG_FRENCH_REUNION: return "fr_RE"; - case SUBLANG_FRENCH_CONGO: return "fr_CG"; - case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; - case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; - case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; - case SUBLANG_FRENCH_MALI: return "fr_ML"; - case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; - case SUBLANG_FRENCH_HAITI: return "fr_HT"; - } - return "fr"; - case LANG_FRISIAN: return "fy_NL"; - case LANG_FULFULDE: - /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ - return "ff_NG"; - case LANG_GAELIC: - switch (sub) - { - case 0x01: /* SCOTTISH */ return "gd_GB"; - case 0x02: /* IRISH */ return "ga_IE"; - } - return "C"; - case LANG_GALICIAN: return "gl_ES"; - case LANG_GEORGIAN: return "ka_GE"; - case LANG_GERMAN: - switch (sub) - { - case SUBLANG_GERMAN: return "de_DE"; - case SUBLANG_GERMAN_SWISS: return "de_CH"; - case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; - case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; - case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; - } - return "de"; - case LANG_GREEK: return "el_GR"; - case LANG_GUARANI: return "gn_PY"; - case LANG_GUJARATI: return "gu_IN"; - case LANG_HAUSA: return "ha_NG"; - case LANG_HAWAIIAN: - /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) - or Hawaii Creole English ("cpe_US", 600000 speakers)? */ - return "cpe_US"; - case LANG_HEBREW: return "he_IL"; - case LANG_HINDI: return "hi_IN"; - case LANG_HUNGARIAN: return "hu_HU"; - case LANG_IBIBIO: return "nic_NG"; - case LANG_ICELANDIC: return "is_IS"; - case LANG_IGBO: return "ig_NG"; - case LANG_INDONESIAN: return "id_ID"; - case LANG_INUKTITUT: return "iu_CA"; - case LANG_ITALIAN: - switch (sub) - { - case SUBLANG_ITALIAN: return "it_IT"; - case SUBLANG_ITALIAN_SWISS: return "it_CH"; - } - return "it"; - case LANG_JAPANESE: return "ja_JP"; - case LANG_KANNADA: return "kn_IN"; - case LANG_KANURI: return "kr_NG"; - case LANG_KASHMIRI: - switch (sub) - { - case SUBLANG_DEFAULT: return "ks_PK"; - case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; - } - return "ks"; - case LANG_KAZAK: return "kk_KZ"; - case LANG_KONKANI: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "kok_IN"; - case LANG_KOREAN: return "ko_KR"; - case LANG_KYRGYZ: return "ky_KG"; - case LANG_LAO: return "lo_LA"; - case LANG_LATIN: return "la_VA"; - case LANG_LATVIAN: return "lv_LV"; - case LANG_LITHUANIAN: return "lt_LT"; - case LANG_MACEDONIAN: return "mk_MK"; - case LANG_MALAY: - switch (sub) - { - case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; - case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; - } - return "ms"; - case LANG_MALAYALAM: return "ml_IN"; - case LANG_MALTESE: return "mt_MT"; - case LANG_MANIPURI: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "mni_IN"; - case LANG_MARATHI: return "mr_IN"; - case LANG_MONGOLIAN: - switch (sub) - { - case SUBLANG_DEFAULT: return "mn_MN"; - } - return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ - case LANG_NEPALI: - switch (sub) - { - case SUBLANG_DEFAULT: return "ne_NP"; - case SUBLANG_NEPALI_INDIA: return "ne_IN"; - } - return "ne"; - case LANG_NORWEGIAN: - switch (sub) - { - case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; - case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; - } - return "no"; - case LANG_ORIYA: return "or_IN"; - case LANG_OROMO: return "om_ET"; - case LANG_PAPIAMENTU: return "pap_AN"; - case LANG_PASHTO: - return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ - case LANG_POLISH: return "pl_PL"; - case LANG_PORTUGUESE: - switch (sub) - { - case SUBLANG_PORTUGUESE: return "pt_PT"; - /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. - Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ - case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; - } - return "pt"; - case LANG_PUNJABI: - switch (sub) - { - case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ - case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ - } - return "pa"; - case LANG_RHAETO_ROMANCE: return "rm_CH"; - case LANG_ROMANIAN: - switch (sub) - { - case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; - case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; - } - return "ro"; - case LANG_RUSSIAN: - switch (sub) - { - case SUBLANG_DEFAULT: return "ru_RU"; - } - return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ - case LANG_SAAMI: /* actually Northern Sami */ return "se_NO"; - case LANG_SANSKRIT: return "sa_IN"; - case LANG_SINDHI: - switch (sub) - { - case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; - case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF"; - } - return "sd"; - case LANG_SINHALESE: return "si_LK"; - case LANG_SLOVAK: return "sk_SK"; - case LANG_SLOVENIAN: return "sl_SI"; - case LANG_SOMALI: return "so_SO"; - case LANG_SORBIAN: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "wen_DE"; - case LANG_SPANISH: - switch (sub) - { - case SUBLANG_SPANISH: return "es_ES"; - case SUBLANG_SPANISH_MEXICAN: return "es_MX"; - case SUBLANG_SPANISH_MODERN: - return "es_ES@modern"; /* not seen on Unix */ - case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; - case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; - case SUBLANG_SPANISH_PANAMA: return "es_PA"; - case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; - case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; - case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; - case SUBLANG_SPANISH_PERU: return "es_PE"; - case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; - case SUBLANG_SPANISH_ECUADOR: return "es_EC"; - case SUBLANG_SPANISH_CHILE: return "es_CL"; - case SUBLANG_SPANISH_URUGUAY: return "es_UY"; - case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; - case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; - case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; - case SUBLANG_SPANISH_HONDURAS: return "es_HN"; - case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; - case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; - } - return "es"; - case LANG_SUTU: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ - case LANG_SWAHILI: return "sw_KE"; - case LANG_SWEDISH: - switch (sub) - { - case SUBLANG_DEFAULT: return "sv_SE"; - case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; - } - return "sv"; - case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */ - case LANG_TAGALOG: return "tl_PH"; - case LANG_TAJIK: return "tg_TJ"; - case LANG_TAMAZIGHT: - switch (sub) - { - /* FIXME: Adjust this when Tamazight locales appear on Unix. */ - case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; - case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; - } - return "ber_MA"; - case LANG_TAMIL: - switch (sub) - { - case SUBLANG_DEFAULT: return "ta_IN"; - } - return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ - case LANG_TATAR: return "tt_RU"; - case LANG_TELUGU: return "te_IN"; - case LANG_THAI: return "th_TH"; - case LANG_TIBETAN: return "bo_CN"; - case LANG_TIGRINYA: - switch (sub) - { - case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; - case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; - } - return "ti"; - case LANG_TSONGA: return "ts_ZA"; - case LANG_TSWANA: return "tn_BW"; - case LANG_TURKISH: return "tr_TR"; - case LANG_TURKMEN: return "tk_TM"; - case LANG_UKRAINIAN: return "uk_UA"; - case LANG_URDU: - switch (sub) - { - case SUBLANG_URDU_PAKISTAN: return "ur_PK"; - case SUBLANG_URDU_INDIA: return "ur_IN"; - } - return "ur"; - case LANG_UZBEK: - switch (sub) - { - case SUBLANG_UZBEK_LATIN: return "uz_UZ"; - case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; - } - return "uz"; - case LANG_VENDA: return "ve_ZA"; - case LANG_VIETNAMESE: return "vi_VN"; - case LANG_WELSH: return "cy_GB"; - case LANG_XHOSA: return "xh_ZA"; - case LANG_YI: return "sit_CN"; - case LANG_YIDDISH: return "yi_IL"; - case LANG_YORUBA: return "yo_NG"; - case LANG_ZULU: return "zu_ZA"; - default: return "C"; - } + return gl_locale_name_from_win32_LCID (lcid); } # endif #endif } +/* Determine the current locale's name, and canonicalize it into XPG syntax + language[_territory][.codeset][@modifier] + The codeset part in the result is not reliable; the locale_charset() + should be used for codeset information instead. + The result must not be freed; it is statically allocated. */ + const char * gl_locale_name (int category, const char *categoryname) { const char *retval; + retval = gl_locale_name_thread (category, categoryname); + if (retval != NULL) + return retval; + retval = gl_locale_name_posix (category, categoryname); if (retval != NULL) return retval; diff -Nru gettext-0.17/gettext-runtime/intl/lock.c gettext-0.18.1.1/gettext-runtime/intl/lock.c --- gettext-0.17/gettext-runtime/intl/lock.c 2006-10-09 12:00:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/lock.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Locking in multithreaded situations. - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -28,45 +28,6 @@ #if USE_POSIX_THREADS -/* Use the POSIX threads library. */ - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The function to be executed by a dummy thread. */ -static void * -dummy_thread_func (void *arg) -{ - return arg; -} - -int -glthread_in_use (void) -{ - static int tested; - static int result; /* 1: linked with -lpthread, 0: only with libc */ - - if (!tested) - { - pthread_t thread; - - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) - /* Thread creation failed. */ - result = 0; - else - { - /* Thread creation works. */ - void *retval; - if (pthread_join (thread, &retval) != 0) - abort (); - result = 1; - } - tested = 1; - } - return result; -} - -# endif - /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ @@ -75,87 +36,123 @@ # if !defined PTHREAD_RWLOCK_INITIALIZER -void -glthread_rwlock_init (gl_rwlock_t *lock) +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { - if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) - abort (); + int err; + + err = pthread_rwlock_init (&lock->rwlock, NULL); + if (err != 0) + return err; lock->initialized = 1; + return 0; } -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; } - if (pthread_rwlock_rdlock (&lock->rwlock) != 0) - abort (); + return pthread_rwlock_rdlock (&lock->rwlock); } -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; } - if (pthread_rwlock_wrlock (&lock->rwlock) != 0) - abort (); + return pthread_rwlock_wrlock (&lock->rwlock); } -void -glthread_rwlock_unlock (gl_rwlock_t *lock) +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) - abort (); - if (pthread_rwlock_unlock (&lock->rwlock) != 0) - abort (); + return EINVAL; + return pthread_rwlock_unlock (&lock->rwlock); } -void -glthread_rwlock_destroy (gl_rwlock_t *lock) +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { + int err; + if (!lock->initialized) - abort (); - if (pthread_rwlock_destroy (&lock->rwlock) != 0) - abort (); + return EINVAL; + err = pthread_rwlock_destroy (&lock->rwlock); + if (err != 0) + return err; lock->initialized = 0; + return 0; } # endif # else -void -glthread_rwlock_init (gl_rwlock_t *lock) +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { - if (pthread_mutex_init (&lock->lock, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_readers, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_writers, NULL) != 0) - abort (); + int err; + + err = pthread_mutex_init (&lock->lock, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_readers, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_writers, NULL); + if (err != 0) + return err; lock->waiting_writers_count = 0; lock->runcount = 0; + return 0; } -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; /* Test whether only readers are currently running, and whether the runcount field will not overflow. */ /* POSIX says: "It is implementation-defined whether the calling thread @@ -165,84 +162,116 @@ while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) { /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ - if (pthread_cond_wait (&lock->waiting_readers, &lock->lock) != 0) - abort (); + waiting_readers. */ + err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } } lock->runcount++; - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); + return pthread_mutex_unlock (&lock->lock); } -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; /* Test whether no readers or writers are currently running. */ while (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ + waiting_writers. */ lock->waiting_writers_count++; - if (pthread_cond_wait (&lock->waiting_writers, &lock->lock) != 0) - abort (); + err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); + if (err != 0) + { + lock->waiting_writers_count--; + pthread_mutex_unlock (&lock->lock); + return err; + } lock->waiting_writers_count--; } lock->runcount--; /* runcount becomes -1 */ - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); + return pthread_mutex_unlock (&lock->lock); } -void -glthread_rwlock_unlock (gl_rwlock_t *lock) +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) - abort (); + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) - abort (); + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ + locks", to avoid "writer starvation". */ if (lock->waiting_writers_count > 0) - { - /* Wake up one of the waiting writers. */ - if (pthread_cond_signal (&lock->waiting_writers) != 0) - abort (); - } + { + /* Wake up one of the waiting writers. */ + err = pthread_cond_signal (&lock->waiting_writers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } else - { - /* Wake up all waiting readers. */ - if (pthread_cond_broadcast (&lock->waiting_readers) != 0) - abort (); - } + { + /* Wake up all waiting readers. */ + err = pthread_cond_broadcast (&lock->waiting_readers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } } - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); + return pthread_mutex_unlock (&lock->lock); } -void -glthread_rwlock_destroy (gl_rwlock_t *lock) +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { - if (pthread_mutex_destroy (&lock->lock) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_readers) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_writers) != 0) - abort (); + int err; + + err = pthread_mutex_destroy (&lock->lock); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_readers); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_writers); + if (err != 0) + return err; + return 0; } # endif @@ -251,108 +280,173 @@ # if HAVE_PTHREAD_MUTEX_RECURSIVE -# if !(defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) +# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_mutexattr_t attributes; + int err; + + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (lock, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; + return 0; +} + +# else + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { pthread_mutexattr_t attributes; + int err; - if (pthread_mutexattr_init (&attributes) != 0) - abort (); - if (pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE) != 0) - abort (); - if (pthread_mutex_init (&lock->recmutex, &attributes) != 0) - abort (); - if (pthread_mutexattr_destroy (&attributes) != 0) - abort (); + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (&lock->recmutex, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; lock->initialized = 1; + return 0; } -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; if (!lock->initialized) - glthread_recursive_lock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); + { + err = glthread_recursive_lock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; } - if (pthread_mutex_lock (&lock->recmutex) != 0) - abort (); + return pthread_mutex_lock (&lock->recmutex); } -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) - abort (); - if (pthread_mutex_unlock (&lock->recmutex) != 0) - abort (); + return EINVAL; + return pthread_mutex_unlock (&lock->recmutex); } -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { + int err; + if (!lock->initialized) - abort (); - if (pthread_mutex_destroy (&lock->recmutex) != 0) - abort (); + return EINVAL; + err = pthread_mutex_destroy (&lock->recmutex); + if (err != 0) + return err; lock->initialized = 0; + return 0; } # endif # else -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { - if (pthread_mutex_init (&lock->mutex, NULL) != 0) - abort (); + int err; + + err = pthread_mutex_init (&lock->mutex, NULL); + if (err != 0) + return err; lock->owner = (pthread_t) 0; lock->depth = 0; + return 0; } -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { pthread_t self = pthread_self (); if (lock->owner != self) { - if (pthread_mutex_lock (&lock->mutex) != 0) - abort (); + int err; + + err = pthread_mutex_lock (&lock->mutex); + if (err != 0) + return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ - abort (); + { + lock->depth--; + return EAGAIN; + } + return 0; } -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != pthread_self ()) - abort (); + return EPERM; if (lock->depth == 0) - abort (); + return EINVAL; if (--(lock->depth) == 0) { lock->owner = (pthread_t) 0; - if (pthread_mutex_unlock (&lock->mutex) != 0) - abort (); + return pthread_mutex_unlock (&lock->mutex); } + else + return 0; } -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (pthread_t) 0) - abort (); - if (pthread_mutex_destroy (&lock->mutex) != 0) - abort (); + return EBUSY; + return pthread_mutex_destroy (&lock->mutex); } # endif @@ -393,7 +487,7 @@ /* -------------------------- gl_once_t datatype -------------------------- */ -void +static void glthread_once_call (void *arg) { void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; @@ -402,6 +496,13 @@ } int +glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)) +{ + void (*temp) (void) = initfunction; + return (!pth_once (once_control, glthread_once_call, &temp) ? errno : 0); +} + +int glthread_once_singlethreaded (pth_once_t *once_control) { /* We know that pth_once_t is an integer type. */ @@ -429,72 +530,87 @@ /* --------------------- gl_recursive_lock_t datatype --------------------- */ -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { - if (mutex_init (&lock->mutex, USYNC_THREAD, NULL) != 0) - abort (); + int err; + + err = mutex_init (&lock->mutex, USYNC_THREAD, NULL); + if (err != 0) + return err; lock->owner = (thread_t) 0; lock->depth = 0; + return 0; } -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { thread_t self = thr_self (); if (lock->owner != self) { - if (mutex_lock (&lock->mutex) != 0) - abort (); + int err; + + err = mutex_lock (&lock->mutex); + if (err != 0) + return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ - abort (); + { + lock->depth--; + return EAGAIN; + } + return 0; } -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != thr_self ()) - abort (); + return EPERM; if (lock->depth == 0) - abort (); + return EINVAL; if (--(lock->depth) == 0) { lock->owner = (thread_t) 0; - if (mutex_unlock (&lock->mutex) != 0) - abort (); + return mutex_unlock (&lock->mutex); } + else + return 0; } -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (thread_t) 0) - abort (); - if (mutex_destroy (&lock->mutex) != 0) - abort (); + return EBUSY; + return mutex_destroy (&lock->mutex); } /* -------------------------- gl_once_t datatype -------------------------- */ -void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) +int +glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)) { if (!once_control->inited) { + int err; + /* Use the mutex to guarantee that if another thread is already calling - the initfunction, this thread waits until it's finished. */ - if (mutex_lock (&once_control->mutex) != 0) - abort (); + the initfunction, this thread waits until it's finished. */ + err = mutex_lock (&once_control->mutex); + if (err != 0) + return err; if (!once_control->inited) - { - once_control->inited = 1; - initfunction (); - } - if (mutex_unlock (&once_control->mutex) != 0) - abort (); + { + once_control->inited = 1; + initfunction (); + } + return mutex_unlock (&once_control->mutex); } + else + return 0; } int @@ -520,48 +636,54 @@ /* -------------------------- gl_lock_t datatype -------------------------- */ void -glthread_lock_init (gl_lock_t *lock) +glthread_lock_init_func (gl_lock_t *lock) { InitializeCriticalSection (&lock->lock); lock->guard.done = 1; } -void -glthread_lock_lock (gl_lock_t *lock) +int +glthread_lock_lock_func (gl_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_lock_init (lock); + /* This thread is the first one to need this lock. Initialize it. */ + glthread_lock_init (lock); else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); } EnterCriticalSection (&lock->lock); + return 0; } -void -glthread_lock_unlock (gl_lock_t *lock) +int +glthread_lock_unlock_func (gl_lock_t *lock) { if (!lock->guard.done) - abort (); + return EINVAL; LeaveCriticalSection (&lock->lock); + return 0; } -void -glthread_lock_destroy (gl_lock_t *lock) +int +glthread_lock_destroy_func (gl_lock_t *lock) { if (!lock->guard.done) - abort (); + return EINVAL; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; + return 0; } /* ------------------------- gl_rwlock_t datatype ------------------------- */ +/* In this file, the waitqueues are implemented as circular arrays. */ +#define gl_waitqueue_t gl_carray_waitqueue_t + static inline void gl_waitqueue_init (gl_waitqueue_t *wq) { @@ -583,31 +705,33 @@ { unsigned int new_alloc = 2 * wq->alloc + 1; HANDLE *new_array = - (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); + (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); if (new_array == NULL) - /* No more memory. */ - return INVALID_HANDLE_VALUE; + /* No more memory. */ + return INVALID_HANDLE_VALUE; /* Now is a good opportunity to rotate the array so that its contents - starts at offset 0. */ + starts at offset 0. */ if (wq->offset > 0) - { - unsigned int old_count = wq->count; - unsigned int old_alloc = wq->alloc; - unsigned int old_offset = wq->offset; - unsigned int i; - if (old_offset + old_count > old_alloc) - { - unsigned int limit = old_offset + old_count - old_alloc; - for (i = 0; i < limit; i++) - new_array[old_alloc + i] = new_array[i]; - } - for (i = 0; i < old_count; i++) - new_array[i] = new_array[old_offset + i]; - wq->offset = 0; - } + { + unsigned int old_count = wq->count; + unsigned int old_alloc = wq->alloc; + unsigned int old_offset = wq->offset; + unsigned int i; + if (old_offset + old_count > old_alloc) + { + unsigned int limit = old_offset + old_count - old_alloc; + for (i = 0; i < limit; i++) + new_array[old_alloc + i] = new_array[i]; + } + for (i = 0; i < old_count; i++) + new_array[i] = new_array[old_offset + i]; + wq->offset = 0; + } wq->array = new_array; wq->alloc = new_alloc; } + /* Whether the created event is a manual-reset one or an auto-reset one, + does not matter, since we will wait on it only once. */ event = CreateEvent (NULL, TRUE, FALSE, NULL); if (event == INVALID_HANDLE_VALUE) /* No way to allocate an event. */ @@ -641,7 +765,7 @@ { unsigned int index = wq->offset + i; if (index >= wq->alloc) - index -= wq->alloc; + index -= wq->alloc; SetEvent (wq->array[index]); } wq->count = 0; @@ -649,7 +773,7 @@ } void -glthread_rwlock_init (gl_rwlock_t *lock) +glthread_rwlock_init_func (gl_rwlock_t *lock) { InitializeCriticalSection (&lock->lock); gl_waitqueue_init (&lock->waiting_readers); @@ -658,19 +782,19 @@ lock->guard.done = 1; } -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) +int +glthread_rwlock_rdlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether only readers are currently running, and whether the runcount @@ -678,150 +802,157 @@ if (!(lock->runcount + 1 > 0)) { /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ + waiting_readers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_readers); if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_readers, incremented lock->runcount. */ - if (!(lock->runcount > 0)) - abort (); - return; - } + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_readers, incremented lock->runcount. */ + if (!(lock->runcount > 0)) + abort (); + return 0; + } else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount + 1 > 0)); - } + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount + 1 > 0)); + } } lock->runcount++; LeaveCriticalSection (&lock->lock); + return 0; } -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) +int +glthread_rwlock_wrlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether no readers or writers are currently running. */ if (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ + waiting_writers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_writers); if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_writers, set lock->runcount = -1. */ - if (!(lock->runcount == -1)) - abort (); - return; - } + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_writers, set lock->runcount = -1. */ + if (!(lock->runcount == -1)) + abort (); + return 0; + } else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount == 0)); - } + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount == 0)); + } } lock->runcount--; /* runcount becomes -1 */ LeaveCriticalSection (&lock->lock); + return 0; } -void -glthread_rwlock_unlock (gl_rwlock_t *lock) +int +glthread_rwlock_unlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) - abort (); + return EINVAL; EnterCriticalSection (&lock->lock); if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) - abort (); + abort (); lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) - abort (); + { + LeaveCriticalSection (&lock->lock); + return EPERM; + } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ + locks", to avoid "writer starvation". */ if (lock->waiting_writers.count > 0) - { - /* Wake up one of the waiting writers. */ - lock->runcount--; - gl_waitqueue_notify_first (&lock->waiting_writers); - } + { + /* Wake up one of the waiting writers. */ + lock->runcount--; + gl_waitqueue_notify_first (&lock->waiting_writers); + } else - { - /* Wake up all waiting readers. */ - lock->runcount += lock->waiting_readers.count; - gl_waitqueue_notify_all (&lock->waiting_readers); - } + { + /* Wake up all waiting readers. */ + lock->runcount += lock->waiting_readers.count; + gl_waitqueue_notify_all (&lock->waiting_readers); + } } LeaveCriticalSection (&lock->lock); + return 0; } -void -glthread_rwlock_destroy (gl_rwlock_t *lock) +int +glthread_rwlock_destroy_func (gl_rwlock_t *lock) { if (!lock->guard.done) - abort (); + return EINVAL; if (lock->runcount != 0) - abort (); + return EBUSY; DeleteCriticalSection (&lock->lock); if (lock->waiting_readers.array != NULL) free (lock->waiting_readers.array); if (lock->waiting_writers.array != NULL) free (lock->waiting_writers.array); lock->guard.done = 0; + return 0; } /* --------------------- gl_recursive_lock_t datatype --------------------- */ void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) +glthread_recursive_lock_init_func (gl_recursive_lock_t *lock) { lock->owner = 0; lock->depth = 0; @@ -829,91 +960,97 @@ lock->guard.done = 1; } -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_recursive_lock_init (lock); + /* This thread is the first one to need this lock. Initialize it. */ + glthread_recursive_lock_init (lock); else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); } { DWORD self = GetCurrentThreadId (); if (lock->owner != self) { - EnterCriticalSection (&lock->lock); - lock->owner = self; + EnterCriticalSection (&lock->lock); + lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ - abort (); + { + lock->depth--; + return EAGAIN; + } } + return 0; } -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock) { if (lock->owner != GetCurrentThreadId ()) - abort (); + return EPERM; if (lock->depth == 0) - abort (); + return EINVAL; if (--(lock->depth) == 0) { lock->owner = 0; LeaveCriticalSection (&lock->lock); } + return 0; } -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) +int +glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock) { if (lock->owner != 0) - abort (); + return EBUSY; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; + return 0; } /* -------------------------- gl_once_t datatype -------------------------- */ void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) +glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)) { if (once_control->inited <= 0) { if (InterlockedIncrement (&once_control->started) == 0) - { - /* This thread is the first one to come to this once_control. */ - InitializeCriticalSection (&once_control->lock); - EnterCriticalSection (&once_control->lock); - once_control->inited = 0; - initfunction (); - once_control->inited = 1; - LeaveCriticalSection (&once_control->lock); - } + { + /* This thread is the first one to come to this once_control. */ + InitializeCriticalSection (&once_control->lock); + EnterCriticalSection (&once_control->lock); + once_control->inited = 0; + initfunction (); + once_control->inited = 1; + LeaveCriticalSection (&once_control->lock); + } else - { - /* Undo last operation. */ - InterlockedDecrement (&once_control->started); - /* Some other thread has already started the initialization. - Yield the CPU while waiting for the other thread to finish - initializing and taking the lock. */ - while (once_control->inited < 0) - Sleep (0); - if (once_control->inited <= 0) - { - /* Take the lock. This blocks until the other thread has - finished calling the initfunction. */ - EnterCriticalSection (&once_control->lock); - LeaveCriticalSection (&once_control->lock); - if (!(once_control->inited > 0)) - abort (); - } - } + { + /* Undo last operation. */ + InterlockedDecrement (&once_control->started); + /* Some other thread has already started the initialization. + Yield the CPU while waiting for the other thread to finish + initializing and taking the lock. */ + while (once_control->inited < 0) + Sleep (0); + if (once_control->inited <= 0) + { + /* Take the lock. This blocks until the other thread has + finished calling the initfunction. */ + EnterCriticalSection (&once_control->lock); + LeaveCriticalSection (&once_control->lock); + if (!(once_control->inited > 0)) + abort (); + } + } } } diff -Nru gettext-0.17/gettext-runtime/intl/lock.h gettext-0.18.1.1/gettext-runtime/intl/lock.h --- gettext-0.17/gettext-runtime/intl/lock.h 2007-11-05 00:56:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/lock.h 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Locking in multithreaded situations. - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -32,6 +32,11 @@ Taking the lock: gl_lock_lock (name); Releasing the lock: gl_lock_unlock (name); De-initialization: gl_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_lock_init (&name); + Taking the lock: err = glthread_lock_lock (&name); + Releasing the lock: err = glthread_lock_unlock (&name); + De-initialization: err = glthread_lock_destroy (&name); Read-Write (non-recursive) locks: Type: gl_rwlock_t @@ -42,6 +47,12 @@ gl_rwlock_wrlock (name); Releasing the lock: gl_rwlock_unlock (name); De-initialization: gl_rwlock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_rwlock_init (&name); + Taking the lock: err = glthread_rwlock_rdlock (&name); + err = glthread_rwlock_wrlock (&name); + Releasing the lock: err = glthread_rwlock_unlock (&name); + De-initialization: err = glthread_rwlock_destroy (&name); Recursive locks: Type: gl_recursive_lock_t @@ -51,17 +62,27 @@ Taking the lock: gl_recursive_lock_lock (name); Releasing the lock: gl_recursive_lock_unlock (name); De-initialization: gl_recursive_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_recursive_lock_init (&name); + Taking the lock: err = glthread_recursive_lock_lock (&name); + Releasing the lock: err = glthread_recursive_lock_unlock (&name); + De-initialization: err = glthread_recursive_lock_destroy (&name); Once-only execution: Type: gl_once_t Initializer: gl_once_define(extern, name) Execution: gl_once (name, initfunction); + Equivalent functions with control of error handling: + Execution: err = glthread_once (&name, initfunction); */ #ifndef _LOCK_H #define _LOCK_H +#include +#include + /* ========================================================================= */ #if USE_POSIX_THREADS @@ -69,7 +90,6 @@ /* Use the POSIX threads library. */ # include -# include # ifdef __cplusplus extern "C" { @@ -147,34 +167,14 @@ STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTHREAD_MUTEX_INITIALIZER -# define gl_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) +# define glthread_lock_init(LOCK) \ + (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ @@ -189,41 +189,16 @@ STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTHREAD_RWLOCK_INITIALIZER -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0) # else @@ -240,46 +215,21 @@ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { 0, PTHREAD_MUTEX_INITIALIZER } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif @@ -300,46 +250,21 @@ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif @@ -361,34 +286,15 @@ # define gl_recursive_lock_initializer \ PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP # endif -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); # else @@ -405,38 +311,18 @@ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif @@ -458,38 +344,18 @@ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif @@ -498,21 +364,10 @@ typedef pthread_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_once (&NAME, INITFUNCTION) != 0) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pthread_in_use () \ + ? pthread_once (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_singlethreaded (pthread_once_t *once_control); # ifdef __cplusplus @@ -528,7 +383,6 @@ /* Use the GNU Pth threads library. */ # include -# include # ifdef __cplusplus extern "C" { @@ -564,29 +418,14 @@ STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTH_MUTEX_INIT -# define gl_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - (void)(&NAME) +# define glthread_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_lock_destroy(LOCK) \ + ((void)(LOCK), 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ @@ -597,38 +436,16 @@ STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTH_RWLOCK_INIT -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RD, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RW, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - (void)(&NAME) +# define glthread_rwlock_init(LOCK) \ + (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0) +# define glthread_rwlock_destroy(LOCK) \ + ((void)(LOCK), 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ @@ -640,52 +457,25 @@ STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ PTH_MUTEX_INIT -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - (void)(&NAME) +# define glthread_recursive_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + ((void)(LOCK), 0) /* -------------------------- gl_once_t datatype -------------------------- */ typedef pth_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - void (*gl_once_temp) (void) = INITFUNCTION; \ - if (!pth_once (&NAME, glthread_once_call, &gl_once_temp)) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once_call (void *arg); +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pth_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (pth_once_t *once_control); # ifdef __cplusplus @@ -702,7 +492,6 @@ # include # include -# include # ifdef __cplusplus extern "C" { @@ -741,34 +530,14 @@ STORAGECLASS mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ DEFAULTMUTEX -# define gl_lock_init(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) +# define glthread_lock_init(LOCK) \ + (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (thread_in_use () ? mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (thread_in_use () ? mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (thread_in_use () ? mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ @@ -779,41 +548,16 @@ STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ DEFAULTRWLOCK -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) +# define glthread_rwlock_init(LOCK) \ + (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (thread_in_use () ? rw_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (thread_in_use () ? rw_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (thread_in_use () ? rw_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (thread_in_use () ? rwlock_destroy (LOCK) : 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ @@ -833,38 +577,18 @@ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { DEFAULTMUTEX, (thread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); +# define glthread_recursive_lock_init(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ @@ -876,21 +600,11 @@ gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - glthread_once (&NAME, INITFUNCTION); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (thread_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (gl_once_t *once_control); # ifdef __cplusplus @@ -936,18 +650,18 @@ STORAGECLASS gl_lock_t NAME = gl_lock_initializer; # define gl_lock_initializer \ { { 0, -1 } } -# define gl_lock_init(NAME) \ - glthread_lock_init (&NAME) -# define gl_lock_lock(NAME) \ - glthread_lock_lock (&NAME) -# define gl_lock_unlock(NAME) \ - glthread_lock_unlock (&NAME) -# define gl_lock_destroy(NAME) \ - glthread_lock_destroy (&NAME) -extern void glthread_lock_init (gl_lock_t *lock); -extern void glthread_lock_lock (gl_lock_t *lock); -extern void glthread_lock_unlock (gl_lock_t *lock); -extern void glthread_lock_destroy (gl_lock_t *lock); +# define glthread_lock_init(LOCK) \ + (glthread_lock_init_func (LOCK), 0) +# define glthread_lock_lock(LOCK) \ + glthread_lock_lock_func (LOCK) +# define glthread_lock_unlock(LOCK) \ + glthread_lock_unlock_func (LOCK) +# define glthread_lock_destroy(LOCK) \ + glthread_lock_destroy_func (LOCK) +extern void glthread_lock_init_func (gl_lock_t *lock); +extern int glthread_lock_lock_func (gl_lock_t *lock); +extern int glthread_lock_unlock_func (gl_lock_t *lock); +extern int glthread_lock_destroy_func (gl_lock_t *lock); /* ------------------------- gl_rwlock_t datatype ------------------------- */ @@ -962,13 +676,13 @@ unsigned int alloc; /* length of allocated array */ unsigned int offset; /* index of first waiting thread in array */ } - gl_waitqueue_t; + gl_carray_waitqueue_t; typedef struct { gl_spinlock_t guard; /* protects the initialization */ CRITICAL_SECTION lock; /* protects the remaining fields */ - gl_waitqueue_t waiting_readers; /* waiting readers */ - gl_waitqueue_t waiting_writers; /* waiting writers */ + gl_carray_waitqueue_t waiting_readers; /* waiting readers */ + gl_carray_waitqueue_t waiting_writers; /* waiting writers */ int runcount; /* number of readers running, or -1 when a writer runs */ } gl_rwlock_t; @@ -978,21 +692,21 @@ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { { 0, -1 } } -# define gl_rwlock_init(NAME) \ - glthread_rwlock_init (&NAME) -# define gl_rwlock_rdlock(NAME) \ - glthread_rwlock_rdlock (&NAME) -# define gl_rwlock_wrlock(NAME) \ - glthread_rwlock_wrlock (&NAME) -# define gl_rwlock_unlock(NAME) \ - glthread_rwlock_unlock (&NAME) -# define gl_rwlock_destroy(NAME) \ - glthread_rwlock_destroy (&NAME) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); +# define glthread_rwlock_init(LOCK) \ + (glthread_rwlock_init_func (LOCK), 0) +# define glthread_rwlock_rdlock(LOCK) \ + glthread_rwlock_rdlock_func (LOCK) +# define glthread_rwlock_wrlock(LOCK) \ + glthread_rwlock_wrlock_func (LOCK) +# define glthread_rwlock_unlock(LOCK) \ + glthread_rwlock_unlock_func (LOCK) +# define glthread_rwlock_destroy(LOCK) \ + glthread_rwlock_destroy_func (LOCK) +extern void glthread_rwlock_init_func (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_func (gl_rwlock_t *lock); /* --------------------- gl_recursive_lock_t datatype --------------------- */ @@ -1014,18 +728,18 @@ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { { 0, -1 }, 0, 0 } -# define gl_recursive_lock_init(NAME) \ - glthread_recursive_lock_init (&NAME) -# define gl_recursive_lock_lock(NAME) \ - glthread_recursive_lock_lock (&NAME) -# define gl_recursive_lock_unlock(NAME) \ - glthread_recursive_lock_unlock (&NAME) -# define gl_recursive_lock_destroy(NAME) \ - glthread_recursive_lock_destroy (&NAME) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); +# define glthread_recursive_lock_init(LOCK) \ + (glthread_recursive_lock_init_func (LOCK), 0) +# define glthread_recursive_lock_lock(LOCK) \ + glthread_recursive_lock_lock_func (LOCK) +# define glthread_recursive_lock_unlock(LOCK) \ + glthread_recursive_lock_unlock_func (LOCK) +# define glthread_recursive_lock_destroy(LOCK) \ + glthread_recursive_lock_destroy_func (LOCK) +extern void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ @@ -1038,9 +752,9 @@ gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { -1, -1 }; -# define gl_once(NAME, INITFUNCTION) \ - glthread_once (&NAME, INITFUNCTION) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0) +extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)); # ifdef __cplusplus } @@ -1059,47 +773,156 @@ typedef int gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) # define gl_lock_define_initialized(STORAGECLASS, NAME) -# define gl_lock_init(NAME) -# define gl_lock_lock(NAME) -# define gl_lock_unlock(NAME) +# define glthread_lock_init(NAME) 0 +# define glthread_lock_lock(NAME) 0 +# define glthread_lock_unlock(NAME) 0 +# define glthread_lock_destroy(NAME) 0 /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef int gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) # define gl_rwlock_define_initialized(STORAGECLASS, NAME) -# define gl_rwlock_init(NAME) -# define gl_rwlock_rdlock(NAME) -# define gl_rwlock_wrlock(NAME) -# define gl_rwlock_unlock(NAME) +# define glthread_rwlock_init(NAME) 0 +# define glthread_rwlock_rdlock(NAME) 0 +# define glthread_rwlock_wrlock(NAME) 0 +# define glthread_rwlock_unlock(NAME) 0 +# define glthread_rwlock_destroy(NAME) 0 /* --------------------- gl_recursive_lock_t datatype --------------------- */ typedef int gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) -# define gl_recursive_lock_init(NAME) -# define gl_recursive_lock_lock(NAME) -# define gl_recursive_lock_unlock(NAME) +# define glthread_recursive_lock_init(NAME) 0 +# define glthread_recursive_lock_lock(NAME) 0 +# define glthread_recursive_lock_unlock(NAME) 0 +# define glthread_recursive_lock_destroy(NAME) 0 /* -------------------------- gl_once_t datatype -------------------------- */ typedef int gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = 0; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (NAME == 0) \ - { \ - NAME = ~ 0; \ - INITFUNCTION (); \ - } \ - } \ - while (0) +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0) #endif /* ========================================================================= */ +/* Macros with built-in error handling. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +#define gl_lock_init(NAME) \ + do \ + { \ + if (glthread_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_lock(NAME) \ + do \ + { \ + if (glthread_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_unlock(NAME) \ + do \ + { \ + if (glthread_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_destroy(NAME) \ + do \ + { \ + if (glthread_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +#define gl_rwlock_init(NAME) \ + do \ + { \ + if (glthread_rwlock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_rdlock(NAME) \ + do \ + { \ + if (glthread_rwlock_rdlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_wrlock(NAME) \ + do \ + { \ + if (glthread_rwlock_wrlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_unlock(NAME) \ + do \ + { \ + if (glthread_rwlock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_destroy(NAME) \ + do \ + { \ + if (glthread_rwlock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +#define gl_recursive_lock_init(NAME) \ + do \ + { \ + if (glthread_recursive_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_lock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_unlock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_destroy(NAME) \ + do \ + { \ + if (glthread_recursive_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* -------------------------- gl_once_t datatype -------------------------- */ + +#define gl_once(NAME, INITFUNCTION) \ + do \ + { \ + if (glthread_once (&NAME, INITFUNCTION)) \ + abort (); \ + } \ + while (0) + +/* ========================================================================= */ + #endif /* _LOCK_H */ diff -Nru gettext-0.17/gettext-runtime/intl/log.c gettext-0.18.1.1/gettext-runtime/intl/log.c --- gettext-0.17/gettext-runtime/intl/log.c 2005-07-18 11:28:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/log.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Log file output. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -33,24 +33,27 @@ # include "lock.h" #endif +/* Separator between msgctxt and msgid in .mo files. */ +#define MSGCTXT_SEPARATOR '\004' /* EOT */ + /* Print an ASCII string with quotes and escape sequences where needed. */ static void -print_escaped (FILE *stream, const char *str) +print_escaped (FILE *stream, const char *str, const char *str_end) { putc ('"', stream); - for (; *str != '\0'; str++) + for (; str != str_end; str++) if (*str == '\n') { - fputs ("\\n\"", stream); - if (str[1] == '\0') - return; - fputs ("\n\"", stream); + fputs ("\\n\"", stream); + if (str + 1 == str_end) + return; + fputs ("\n\"", stream); } else { - if (*str == '"' || *str == '\\') - putc ('\\', stream); - putc (*str, stream); + if (*str == '"' || *str == '\\') + putc ('\\', stream); + putc (*str, stream); } putc ('"', stream); } @@ -61,43 +64,52 @@ static inline void _nl_log_untranslated_locked (const char *logfilename, const char *domainname, - const char *msgid1, const char *msgid2, int plural) + const char *msgid1, const char *msgid2, int plural) { FILE *logfile; + const char *separator; /* Can we reuse the last opened logfile? */ if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0) { /* Close the last used logfile. */ if (last_logfilename != NULL) - { - if (last_logfile != NULL) - { - fclose (last_logfile); - last_logfile = NULL; - } - free (last_logfilename); - last_logfilename = NULL; - } + { + if (last_logfile != NULL) + { + fclose (last_logfile); + last_logfile = NULL; + } + free (last_logfilename); + last_logfilename = NULL; + } /* Open the logfile. */ last_logfilename = (char *) malloc (strlen (logfilename) + 1); if (last_logfilename == NULL) - return; + return; strcpy (last_logfilename, logfilename); last_logfile = fopen (logfilename, "a"); if (last_logfile == NULL) - return; + return; } logfile = last_logfile; fprintf (logfile, "domain "); - print_escaped (logfile, domainname); + print_escaped (logfile, domainname, domainname + strlen (domainname)); + separator = strchr (msgid1, MSGCTXT_SEPARATOR); + if (separator != NULL) + { + /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ + fprintf (logfile, "\nmsgctxt "); + print_escaped (logfile, msgid1, separator); + msgid1 = separator + 1; + } fprintf (logfile, "\nmsgid "); - print_escaped (logfile, msgid1); + print_escaped (logfile, msgid1, msgid1 + strlen (msgid1)); if (plural) { fprintf (logfile, "\nmsgid_plural "); - print_escaped (logfile, msgid2); + print_escaped (logfile, msgid2, msgid2 + strlen (msgid2)); fprintf (logfile, "\nmsgstr[0] \"\"\n"); } else @@ -108,7 +120,7 @@ /* Add to the log file an entry denoting a failed translation. */ void _nl_log_untranslated (const char *logfilename, const char *domainname, - const char *msgid1, const char *msgid2, int plural) + const char *msgid1, const char *msgid2, int plural) { __libc_lock_lock (lock); _nl_log_untranslated_locked (logfilename, domainname, msgid1, msgid2, plural); diff -Nru gettext-0.17/gettext-runtime/intl/Makefile.in gettext-0.18.1.1/gettext-runtime/intl/Makefile.in --- gettext-0.17/gettext-runtime/intl/Makefile.in 2007-11-04 21:21:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/Makefile.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ # Makefile for directory with message catalog handling library of GNU gettext -# Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +# Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published @@ -72,7 +72,30 @@ RANLIB = @RANLIB@ YACC = @INTLBISON@ -y -d YFLAGS = --name-prefix=__gettext +# Windows resource compiler (windres). Used when libtool is not used. WINDRES = @WINDRES@ +# Windows resource compiler (windres). Used via libtool. +RC = @RC@ + +# Support for silent-rules. +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_@INTL_DEFAULT_VERBOSITY@) +am__v_at_0 = @ +AM_V_AR = $(am__v_AR_$(V)) +am__v_AR_ = $(am__v_AR_@INTL_DEFAULT_VERBOSITY@) +am__v_AR_0 = @echo " AR " $@; +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_@INTL_DEFAULT_VERBOSITY@) +am__v_CC_0 = @echo " CC " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_YACC = $(am__v_YACC_$(V)) +am__v_YACC_ = $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@) +am__v_YACC_0 = @echo " YACC " $@; +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_@INTL_DEFAULT_VERBOSITY@) +am__v_lt_0 = --silent # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. @@ -127,12 +150,14 @@ plural.y \ plural-exp.c \ localcharset.c \ + threadlib.c \ lock.c \ relocatable.c \ langprefs.c \ localename.c \ log.c \ printf.c \ + setlocale.c \ version.c \ osdep.c \ os2compat.c \ @@ -157,16 +182,18 @@ plural.$lo \ plural-exp.$lo \ localcharset.$lo \ + threadlib.$lo \ lock.$lo \ relocatable.$lo \ langprefs.$lo \ localename.$lo \ log.$lo \ printf.$lo \ + setlocale.$lo \ version.$lo \ osdep.$lo \ intl-compat.$lo -OBJECTS_RES_yes = libintl.res +OBJECTS_RES_yes = libintl.res.$lo OBJECTS_RES_no = DISTFILES.common = Makefile.in \ config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \ @@ -186,12 +213,12 @@ all-no-no: libintl.a libgnuintl.a: $(OBJECTS) - rm -f $@ - $(AR) cru $@ $(OBJECTS) - $(RANLIB) $@ + $(AM_V_at)rm -f $@ + $(AM_V_AR)$(AR) cru $@ $(OBJECTS) + $(AM_V_at)$(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@) - $(LIBTOOL) --mode=link \ + $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \ $(OBJECTS_RES_@WOE32@) \ @@ -204,83 +231,86 @@ # according to the libtool documentation, section "Library interface versions". # Maintainers of other packages that include the intl directory must *not* # change these values. -LTV_CURRENT=8 -LTV_REVISION=2 -LTV_AGE=0 +LTV_CURRENT=9 +LTV_REVISION=1 +LTV_AGE=1 .SUFFIXES: .SUFFIXES: .c .y .o .lo .sin .sed .c.o: - $(COMPILE) $< + $(AM_V_CC)$(COMPILE) $< .y.c: - $(YACC) $(YFLAGS) --output $@ $< - rm -f $*.h + $(AM_V_YACC)$(YACC) $(YFLAGS) --output $@ $< + $(AM_V_at)rm -f $*.h bindtextdom.lo: $(srcdir)/bindtextdom.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c dcgettext.lo: $(srcdir)/dcgettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c dgettext.lo: $(srcdir)/dgettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c gettext.lo: $(srcdir)/gettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c finddomain.lo: $(srcdir)/finddomain.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c hash-string.lo: $(srcdir)/hash-string.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/hash-string.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c loadmsgcat.lo: $(srcdir)/loadmsgcat.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c localealias.lo: $(srcdir)/localealias.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c textdomain.lo: $(srcdir)/textdomain.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c l10nflist.lo: $(srcdir)/l10nflist.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c explodename.lo: $(srcdir)/explodename.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c dcigettext.lo: $(srcdir)/dcigettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c dcngettext.lo: $(srcdir)/dcngettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c dngettext.lo: $(srcdir)/dngettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c ngettext.lo: $(srcdir)/ngettext.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c plural.lo: $(srcdir)/plural.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c plural-exp.lo: $(srcdir)/plural-exp.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c localcharset.lo: $(srcdir)/localcharset.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c +threadlib.lo: $(srcdir)/threadlib.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/threadlib.c lock.lo: $(srcdir)/lock.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/lock.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c relocatable.lo: $(srcdir)/relocatable.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c langprefs.lo: $(srcdir)/langprefs.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c localename.lo: $(srcdir)/localename.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c log.lo: $(srcdir)/log.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c printf.lo: $(srcdir)/printf.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c +setlocale.lo: $(srcdir)/setlocale.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/setlocale.c version.lo: $(srcdir)/version.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/version.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c osdep.lo: $(srcdir)/osdep.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c intl-compat.lo: $(srcdir)/intl-compat.c - $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c # This rule is executed only on Woe32 systems. # The following sed expressions come from the windres-options script. They are # inlined here, so that they can be written in a Makefile without requiring a # temporary file. They must contain literal newlines rather than semicolons, -# so that they work with the sed-3.02 that is shipped with MSYS. We can use -# GNU bash's $'\n' syntax to obtain such a newline. -libintl.res: $(srcdir)/libintl.rc - nl=$$'\n'; \ +# so that they work with the sed-3.02 that is shipped with MSYS. +libintl.res.o: $(srcdir)/libintl.rc + nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ @@ -289,7 +319,18 @@ "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ - -i $(srcdir)/libintl.rc -o libintl.res --output-format=coff + -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff +libintl.res.lo: $(srcdir)/libintl.rc + nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ + sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ + $(LIBTOOL) --mode=compile --tag=RC $(RC) \ + "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ + "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ + "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ + "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ + -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff ref-add.sed: $(srcdir)/ref-add.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed @@ -304,6 +345,7 @@ sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ + -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in \ @@ -321,6 +363,7 @@ sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ + -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in > libintl.h @@ -367,7 +410,21 @@ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \ + if test @GLIBC21@ = no; then \ + case '@host_os@' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac; \ + else \ + need_charset_alias=false; \ + fi; \ + if $$need_charset_alias; then \ + $(mkdir_p) $(DESTDIR)$(libdir); \ + fi; \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ @@ -376,7 +433,7 @@ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ - if test @GLIBC21@ = no; then \ + if $$need_charset_alias; then \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ @@ -439,7 +496,21 @@ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ - test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \ + if test @GLIBC21@ = no; then \ + case '@host_os@' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac; \ + else \ + need_charset_alias=false; \ + fi; \ + if $$need_charset_alias; then \ + $(mkdir_p) $(DESTDIR)$(libdir); \ + fi; \ $(mkdir_p) $(DESTDIR)$(localedir); \ else \ : ; \ @@ -506,7 +577,8 @@ info dvi ps pdf html: $(OBJECTS): ../config.h libgnuintl.h -bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h +bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo setlocale.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h +localename.$lo: $(srcdir)/gettextP.h hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h @@ -538,7 +610,7 @@ mostlyclean: - rm -f *.a *.la *.o *.obj *.lo libintl.res core core.* + rm -f *.a *.la *.o *.obj *.lo core core.* rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs diff -Nru gettext-0.17/gettext-runtime/intl/os2compat.h gettext-0.18.1.1/gettext-runtime/intl/os2compat.h --- gettext-0.17/gettext-runtime/intl/os2compat.h 2005-05-20 21:05:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/os2compat.h 2010-06-06 12:49:57.000000000 +0000 @@ -21,15 +21,15 @@ #ifndef OS2_AWARE #undef LIBDIR -#define LIBDIR _nlos2_libdir +#define LIBDIR _nlos2_libdir extern char *_nlos2_libdir; #undef LOCALEDIR -#define LOCALEDIR _nlos2_localedir +#define LOCALEDIR _nlos2_localedir extern char *_nlos2_localedir; #undef LOCALE_ALIAS_PATH -#define LOCALE_ALIAS_PATH _nlos2_localealiaspath +#define LOCALE_ALIAS_PATH _nlos2_localealiaspath extern char *_nlos2_localealiaspath; #endif diff -Nru gettext-0.17/gettext-runtime/intl/printf-args.c gettext-0.18.1.1/gettext-runtime/intl/printf-args.c --- gettext-0.17/gettext-runtime/intl/printf-args.c 2007-11-04 21:28:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/printf-args.c 2010-06-06 12:49:57.000000000 +0000 @@ -43,146 +43,146 @@ switch (ap->type) { case TYPE_SCHAR: - ap->a.a_schar = va_arg (args, /*signed char*/ int); - break; + ap->a.a_schar = va_arg (args, /*signed char*/ int); + break; case TYPE_UCHAR: - ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); - break; + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); + break; case TYPE_SHORT: - ap->a.a_short = va_arg (args, /*short*/ int); - break; + ap->a.a_short = va_arg (args, /*short*/ int); + break; case TYPE_USHORT: - ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); - break; + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); + break; case TYPE_INT: - ap->a.a_int = va_arg (args, int); - break; + ap->a.a_int = va_arg (args, int); + break; case TYPE_UINT: - ap->a.a_uint = va_arg (args, unsigned int); - break; + ap->a.a_uint = va_arg (args, unsigned int); + break; case TYPE_LONGINT: - ap->a.a_longint = va_arg (args, long int); - break; + ap->a.a_longint = va_arg (args, long int); + break; case TYPE_ULONGINT: - ap->a.a_ulongint = va_arg (args, unsigned long int); - break; + ap->a.a_ulongint = va_arg (args, unsigned long int); + break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: - ap->a.a_longlongint = va_arg (args, long long int); - break; + ap->a.a_longlongint = va_arg (args, long long int); + break; case TYPE_ULONGLONGINT: - ap->a.a_ulonglongint = va_arg (args, unsigned long long int); - break; + ap->a.a_ulonglongint = va_arg (args, unsigned long long int); + break; #endif case TYPE_DOUBLE: - ap->a.a_double = va_arg (args, double); - break; + ap->a.a_double = va_arg (args, double); + break; case TYPE_LONGDOUBLE: - ap->a.a_longdouble = va_arg (args, long double); - break; + ap->a.a_longdouble = va_arg (args, long double); + break; case TYPE_CHAR: - ap->a.a_char = va_arg (args, int); - break; + ap->a.a_char = va_arg (args, int); + break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: - /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by - default argument promotions", this is not the case in mingw32, - where wint_t is 'unsigned short'. */ - ap->a.a_wide_char = - (sizeof (wint_t) < sizeof (int) - ? va_arg (args, int) - : va_arg (args, wint_t)); - break; + /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by + default argument promotions", this is not the case in mingw32, + where wint_t is 'unsigned short'. */ + ap->a.a_wide_char = + (sizeof (wint_t) < sizeof (int) + ? va_arg (args, int) + : va_arg (args, wint_t)); + break; #endif case TYPE_STRING: - ap->a.a_string = va_arg (args, const char *); - /* A null pointer is an invalid argument for "%s", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_string == NULL) - ap->a.a_string = "(NULL)"; - break; + ap->a.a_string = va_arg (args, const char *); + /* A null pointer is an invalid argument for "%s", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_string == NULL) + ap->a.a_string = "(NULL)"; + break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: - ap->a.a_wide_string = va_arg (args, const wchar_t *); - /* A null pointer is an invalid argument for "%ls", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_wide_string == NULL) - { - static const wchar_t wide_null_string[] = - { - (wchar_t)'(', - (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', - (wchar_t)')', - (wchar_t)0 - }; - ap->a.a_wide_string = wide_null_string; - } - break; + ap->a.a_wide_string = va_arg (args, const wchar_t *); + /* A null pointer is an invalid argument for "%ls", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_wide_string == NULL) + { + static const wchar_t wide_null_string[] = + { + (wchar_t)'(', + (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', + (wchar_t)')', + (wchar_t)0 + }; + ap->a.a_wide_string = wide_null_string; + } + break; #endif case TYPE_POINTER: - ap->a.a_pointer = va_arg (args, void *); - break; + ap->a.a_pointer = va_arg (args, void *); + break; case TYPE_COUNT_SCHAR_POINTER: - ap->a.a_count_schar_pointer = va_arg (args, signed char *); - break; + ap->a.a_count_schar_pointer = va_arg (args, signed char *); + break; case TYPE_COUNT_SHORT_POINTER: - ap->a.a_count_short_pointer = va_arg (args, short *); - break; + ap->a.a_count_short_pointer = va_arg (args, short *); + break; case TYPE_COUNT_INT_POINTER: - ap->a.a_count_int_pointer = va_arg (args, int *); - break; + ap->a.a_count_int_pointer = va_arg (args, int *); + break; case TYPE_COUNT_LONGINT_POINTER: - ap->a.a_count_longint_pointer = va_arg (args, long int *); - break; + ap->a.a_count_longint_pointer = va_arg (args, long int *); + break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: - ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); - break; + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); + break; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: - ap->a.a_u8_string = va_arg (args, const uint8_t *); - /* A null pointer is an invalid argument for "%U", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u8_string == NULL) - { - static const uint8_t u8_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u8_string = u8_null_string; - } - break; + ap->a.a_u8_string = va_arg (args, const uint8_t *); + /* A null pointer is an invalid argument for "%U", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u8_string == NULL) + { + static const uint8_t u8_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u8_string = u8_null_string; + } + break; case TYPE_U16_STRING: - ap->a.a_u16_string = va_arg (args, const uint16_t *); - /* A null pointer is an invalid argument for "%lU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u16_string == NULL) - { - static const uint16_t u16_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u16_string = u16_null_string; - } - break; + ap->a.a_u16_string = va_arg (args, const uint16_t *); + /* A null pointer is an invalid argument for "%lU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u16_string == NULL) + { + static const uint16_t u16_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u16_string = u16_null_string; + } + break; case TYPE_U32_STRING: - ap->a.a_u32_string = va_arg (args, const uint32_t *); - /* A null pointer is an invalid argument for "%llU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u32_string == NULL) - { - static const uint32_t u32_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u32_string = u32_null_string; - } - break; + ap->a.a_u32_string = va_arg (args, const uint32_t *); + /* A null pointer is an invalid argument for "%llU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u32_string == NULL) + { + static const uint32_t u32_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u32_string = u32_null_string; + } + break; #endif default: - /* Unknown type. */ - return -1; + /* Unknown type. */ + return -1; } return 0; } diff -Nru gettext-0.17/gettext-runtime/intl/printf-args.h gettext-0.18.1.1/gettext-runtime/intl/printf-args.h --- gettext-0.17/gettext-runtime/intl/printf-args.h 2007-11-04 21:26:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/printf-args.h 2010-06-06 12:49:57.000000000 +0000 @@ -94,42 +94,42 @@ arg_type type; union { - signed char a_schar; - unsigned char a_uchar; - short a_short; - unsigned short a_ushort; - int a_int; - unsigned int a_uint; - long int a_longint; - unsigned long int a_ulongint; + signed char a_schar; + unsigned char a_uchar; + short a_short; + unsigned short a_ushort; + int a_int; + unsigned int a_uint; + long int a_longint; + unsigned long int a_ulongint; #if HAVE_LONG_LONG_INT - long long int a_longlongint; - unsigned long long int a_ulonglongint; + long long int a_longlongint; + unsigned long long int a_ulonglongint; #endif - float a_float; - double a_double; - long double a_longdouble; - int a_char; + float a_float; + double a_double; + long double a_longdouble; + int a_char; #if HAVE_WINT_T - wint_t a_wide_char; + wint_t a_wide_char; #endif - const char* a_string; + const char* a_string; #if HAVE_WCHAR_T - const wchar_t* a_wide_string; + const wchar_t* a_wide_string; #endif - void* a_pointer; - signed char * a_count_schar_pointer; - short * a_count_short_pointer; - int * a_count_int_pointer; - long int * a_count_longint_pointer; + void* a_pointer; + signed char * a_count_schar_pointer; + short * a_count_short_pointer; + int * a_count_int_pointer; + long int * a_count_longint_pointer; #if HAVE_LONG_LONG_INT - long long int * a_count_longlongint_pointer; + long long int * a_count_longlongint_pointer; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ - const uint8_t * a_u8_string; - const uint16_t * a_u16_string; - const uint32_t * a_u32_string; + const uint8_t * a_u8_string; + const uint16_t * a_u16_string; + const uint32_t * a_u32_string; #endif } a; diff -Nru gettext-0.17/gettext-runtime/intl/printf.c gettext-0.18.1.1/gettext-runtime/intl/printf.c --- gettext-0.17/gettext-runtime/intl/printf.c 2007-06-10 00:38:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/printf.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Formatted output to strings, using POSIX/XSI format strings with positions. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it @@ -60,7 +60,9 @@ /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ -#if defined _MSC_VER && BUILDING_DLL +#if HAVE_VISIBILITY && BUILDING_DLL +# define DLL_EXPORTED __attribute__((__visibility__("default"))) +#elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED @@ -102,17 +104,17 @@ char *result = libintl_vasnprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) - { - size_t written = fwrite (result, 1, length, stream); - free (result); - if (written == length) - { - if (length > INT_MAX) - errno = EOVERFLOW; - else - retval = length; - } - } + { + size_t written = fwrite (result, 1, length, stream); + free (result); + if (written == length) + { + if (length > INT_MAX) + errno = EOVERFLOW; + else + retval = length; + } + } return retval; } } @@ -161,17 +163,17 @@ size_t length = (size_t) ~0 / (4 * sizeof (char)); char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) - { - free (result); - return -1; - } + { + free (result); + return -1; + } if (length > INT_MAX) - { - errno = EOVERFLOW; - return -1; - } + { + errno = EOVERFLOW; + return -1; + } else - return length; + return length; } } @@ -209,23 +211,23 @@ size_t maxlength = length; char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) - { - if (maxlength > 0) - { - size_t pruned_length = - (length < maxlength ? length : maxlength - 1); - memcpy (resultbuf, result, pruned_length); - resultbuf[pruned_length] = '\0'; - } - free (result); - } + { + if (maxlength > 0) + { + size_t pruned_length = + (length < maxlength ? length : maxlength - 1); + memcpy (resultbuf, result, pruned_length); + resultbuf[pruned_length] = '\0'; + } + free (result); + } if (length > INT_MAX) - { - errno = EOVERFLOW; - return -1; - } + { + errno = EOVERFLOW; + return -1; + } else - return length; + return length; } } @@ -321,20 +323,20 @@ wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) - { - size_t i; - for (i = 0; i < length; i++) - if (fputwc (result[i], stream) == WEOF) - break; - free (result); - if (i == length) - { - if (length > INT_MAX) - errno = EOVERFLOW; - else - retval = length; - } - } + { + size_t i; + for (i = 0; i < length; i++) + if (fputwc (result[i], stream) == WEOF) + break; + free (result); + if (i == length) + { + if (length > INT_MAX) + errno = EOVERFLOW; + else + retval = length; + } + } return retval; } } @@ -383,29 +385,29 @@ size_t maxlength = length; wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args); if (result != resultbuf) - { - if (maxlength > 0) - { - size_t pruned_length = - (length < maxlength ? length : maxlength - 1); - memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); - resultbuf[pruned_length] = 0; - } - free (result); - /* Unlike vsnprintf, which has to return the number of character that - would have been produced if the resultbuf had been sufficiently - large, the vswprintf function has to return a negative value if - the resultbuf was not sufficiently large. */ - if (length >= maxlength) - return -1; - } + { + if (maxlength > 0) + { + size_t pruned_length = + (length < maxlength ? length : maxlength - 1); + memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); + resultbuf[pruned_length] = 0; + } + free (result); + /* Unlike vsnprintf, which has to return the number of character that + would have been produced if the resultbuf had been sufficiently + large, the vswprintf function has to return a negative value if + the resultbuf was not sufficiently large. */ + if (length >= maxlength) + return -1; + } if (length > INT_MAX) - { - errno = EOVERFLOW; - return -1; - } + { + errno = EOVERFLOW; + return -1; + } else - return length; + return length; } } diff -Nru gettext-0.17/gettext-runtime/intl/printf-parse.c gettext-0.18.1.1/gettext-runtime/intl/printf-parse.c --- gettext-0.17/gettext-runtime/intl/printf-parse.c 2007-11-03 11:43:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/printf-parse.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Formatted output to strings. - Copyright (C) 1999-2000, 2002-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2000, 2002-2003, 2006-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -81,10 +81,10 @@ int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { - const CHAR_T *cp = format; /* pointer into format */ - size_t arg_posn = 0; /* number of regular arguments consumed */ - size_t d_allocated; /* allocated elements of d->dir */ - size_t a_allocated; /* allocated elements of a->arg */ + const CHAR_T *cp = format; /* pointer into format */ + size_t arg_posn = 0; /* number of regular arguments consumed */ + size_t d_allocated; /* allocated elements of d->dir */ + size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; @@ -100,463 +100,501 @@ a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ - { \ - size_t n = (_index_); \ - if (n >= a_allocated) \ - { \ - size_t memory_size; \ - argument *memory; \ - \ - a_allocated = xtimes (a_allocated, 2); \ - if (a_allocated <= n) \ - a_allocated = xsum (n, 1); \ - memory_size = xtimes (a_allocated, sizeof (argument)); \ - if (size_overflow_p (memory_size)) \ - /* Overflow, would lead to out of memory. */ \ - goto out_of_memory; \ - memory = (argument *) (a->arg \ - ? realloc (a->arg, memory_size) \ - : malloc (memory_size)); \ - if (memory == NULL) \ - /* Out of memory. */ \ - goto out_of_memory; \ - a->arg = memory; \ - } \ - while (a->count <= n) \ - a->arg[a->count++].type = TYPE_NONE; \ - if (a->arg[n].type == TYPE_NONE) \ - a->arg[n].type = (_type_); \ - else if (a->arg[n].type != (_type_)) \ - /* Ambiguous type for positional argument. */ \ - goto error; \ + { \ + size_t n = (_index_); \ + if (n >= a_allocated) \ + { \ + size_t memory_size; \ + argument *memory; \ + \ + a_allocated = xtimes (a_allocated, 2); \ + if (a_allocated <= n) \ + a_allocated = xsum (n, 1); \ + memory_size = xtimes (a_allocated, sizeof (argument)); \ + if (size_overflow_p (memory_size)) \ + /* Overflow, would lead to out of memory. */ \ + goto out_of_memory; \ + memory = (argument *) (a->arg \ + ? realloc (a->arg, memory_size) \ + : malloc (memory_size)); \ + if (memory == NULL) \ + /* Out of memory. */ \ + goto out_of_memory; \ + a->arg = memory; \ + } \ + while (a->count <= n) \ + a->arg[a->count++].type = TYPE_NONE; \ + if (a->arg[n].type == TYPE_NONE) \ + a->arg[n].type = (_type_); \ + else if (a->arg[n].type != (_type_)) \ + /* Ambiguous type for positional argument. */ \ + goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') - { - size_t arg_index = ARG_NONE; - DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ - - /* Initialize the next directive. */ - dp->dir_start = cp - 1; - dp->flags = 0; - dp->width_start = NULL; - dp->width_end = NULL; - dp->width_arg_index = ARG_NONE; - dp->precision_start = NULL; - dp->precision_end = NULL; - dp->precision_arg_index = ARG_NONE; - dp->arg_index = ARG_NONE; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - arg_index = n - 1; - cp = np + 1; - } - } - - /* Read the flags. */ - for (;;) - { - if (*cp == '\'') - { - dp->flags |= FLAG_GROUP; - cp++; - } - else if (*cp == '-') - { - dp->flags |= FLAG_LEFT; - cp++; - } - else if (*cp == '+') - { - dp->flags |= FLAG_SHOWSIGN; - cp++; - } - else if (*cp == ' ') - { - dp->flags |= FLAG_SPACE; - cp++; - } - else if (*cp == '#') - { - dp->flags |= FLAG_ALT; - cp++; - } - else if (*cp == '0') - { - dp->flags |= FLAG_ZERO; - cp++; - } - else - break; - } - - /* Parse the field width. */ - if (*cp == '*') - { - dp->width_start = cp; - cp++; - dp->width_end = cp; - if (max_width_length < 1) - max_width_length = 1; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - dp->width_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->width_arg_index == ARG_NONE) - { - dp->width_arg_index = arg_posn++; - if (dp->width_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->width_arg_index, TYPE_INT); - } - else if (*cp >= '0' && *cp <= '9') - { - size_t width_length; - - dp->width_start = cp; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->width_end = cp; - width_length = dp->width_end - dp->width_start; - if (max_width_length < width_length) - max_width_length = width_length; - } - - /* Parse the precision. */ - if (*cp == '.') - { - cp++; - if (*cp == '*') - { - dp->precision_start = cp - 1; - cp++; - dp->precision_end = cp; - if (max_precision_length < 2) - max_precision_length = 2; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory - later. */ - goto error; - dp->precision_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->precision_arg_index == ARG_NONE) - { - dp->precision_arg_index = arg_posn++; - if (dp->precision_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->precision_arg_index, TYPE_INT); - } - else - { - size_t precision_length; - - dp->precision_start = cp - 1; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->precision_end = cp; - precision_length = dp->precision_end - dp->precision_start; - if (max_precision_length < precision_length) - max_precision_length = precision_length; - } - } - - { - arg_type type; - - /* Parse argument type/size specifiers. */ - { - int flags = 0; - - for (;;) - { - if (*cp == 'h') - { - flags |= (1 << (flags & 1)); - cp++; - } - else if (*cp == 'L') - { - flags |= 4; - cp++; - } - else if (*cp == 'l') - { - flags += 8; - cp++; - } - else if (*cp == 'j') - { - if (sizeof (intmax_t) > sizeof (long)) - { - /* intmax_t = long long */ - flags += 16; - } - else if (sizeof (intmax_t) > sizeof (int)) - { - /* intmax_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 'z' || *cp == 'Z') - { - /* 'z' is standardized in ISO C 99, but glibc uses 'Z' - because the warning facility in gcc-2.95.2 understands - only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ - if (sizeof (size_t) > sizeof (long)) - { - /* size_t = long long */ - flags += 16; - } - else if (sizeof (size_t) > sizeof (int)) - { - /* size_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 't') - { - if (sizeof (ptrdiff_t) > sizeof (long)) - { - /* ptrdiff_t = long long */ - flags += 16; - } - else if (sizeof (ptrdiff_t) > sizeof (int)) - { - /* ptrdiff_t = long */ - flags += 8; - } - cp++; - } - else - break; - } - - /* Read the conversion character. */ - c = *cp++; - switch (c) - { - case 'd': case 'i': + { + size_t arg_index = ARG_NONE; + DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ + + /* Initialize the next directive. */ + dp->dir_start = cp - 1; + dp->flags = 0; + dp->width_start = NULL; + dp->width_end = NULL; + dp->width_arg_index = ARG_NONE; + dp->precision_start = NULL; + dp->precision_end = NULL; + dp->precision_arg_index = ARG_NONE; + dp->arg_index = ARG_NONE; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + arg_index = n - 1; + cp = np + 1; + } + } + + /* Read the flags. */ + for (;;) + { + if (*cp == '\'') + { + dp->flags |= FLAG_GROUP; + cp++; + } + else if (*cp == '-') + { + dp->flags |= FLAG_LEFT; + cp++; + } + else if (*cp == '+') + { + dp->flags |= FLAG_SHOWSIGN; + cp++; + } + else if (*cp == ' ') + { + dp->flags |= FLAG_SPACE; + cp++; + } + else if (*cp == '#') + { + dp->flags |= FLAG_ALT; + cp++; + } + else if (*cp == '0') + { + dp->flags |= FLAG_ZERO; + cp++; + } + else + break; + } + + /* Parse the field width. */ + if (*cp == '*') + { + dp->width_start = cp; + cp++; + dp->width_end = cp; + if (max_width_length < 1) + max_width_length = 1; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + dp->width_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->width_arg_index == ARG_NONE) + { + dp->width_arg_index = arg_posn++; + if (dp->width_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->width_arg_index, TYPE_INT); + } + else if (*cp >= '0' && *cp <= '9') + { + size_t width_length; + + dp->width_start = cp; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->width_end = cp; + width_length = dp->width_end - dp->width_start; + if (max_width_length < width_length) + max_width_length = width_length; + } + + /* Parse the precision. */ + if (*cp == '.') + { + cp++; + if (*cp == '*') + { + dp->precision_start = cp - 1; + cp++; + dp->precision_end = cp; + if (max_precision_length < 2) + max_precision_length = 2; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory + later. */ + goto error; + dp->precision_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->precision_arg_index == ARG_NONE) + { + dp->precision_arg_index = arg_posn++; + if (dp->precision_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->precision_arg_index, TYPE_INT); + } + else + { + size_t precision_length; + + dp->precision_start = cp - 1; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->precision_end = cp; + precision_length = dp->precision_end - dp->precision_start; + if (max_precision_length < precision_length) + max_precision_length = precision_length; + } + } + + { + arg_type type; + + /* Parse argument type/size specifiers. */ + { + int flags = 0; + + for (;;) + { + if (*cp == 'h') + { + flags |= (1 << (flags & 1)); + cp++; + } + else if (*cp == 'L') + { + flags |= 4; + cp++; + } + else if (*cp == 'l') + { + flags += 8; + cp++; + } + else if (*cp == 'j') + { + if (sizeof (intmax_t) > sizeof (long)) + { + /* intmax_t = long long */ + flags += 16; + } + else if (sizeof (intmax_t) > sizeof (int)) + { + /* intmax_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 'z' || *cp == 'Z') + { + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + if (sizeof (size_t) > sizeof (long)) + { + /* size_t = long long */ + flags += 16; + } + else if (sizeof (size_t) > sizeof (int)) + { + /* size_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 't') + { + if (sizeof (ptrdiff_t) > sizeof (long)) + { + /* ptrdiff_t = long long */ + flags += 16; + } + else if (sizeof (ptrdiff_t) > sizeof (int)) + { + /* ptrdiff_t = long */ + flags += 8; + } + cp++; + } +#if defined __APPLE__ && defined __MACH__ + /* On MacOS X 10.3, PRIdMAX is defined as "qd". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'q') + { + if (64 / 8 > sizeof (long)) + { + /* int64_t = long long */ + flags += 16; + } + else + { + /* int64_t = long */ + flags += 8; + } + cp++; + } +#endif +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On native Win32, PRIdMAX is defined as "I64d". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') + { + if (64 / 8 > sizeof (long)) + { + /* __int64 = long long */ + flags += 16; + } + else + { + /* __int64 = long */ + flags += 8; + } + cp += 3; + } +#endif + else + break; + } + + /* Read the conversion character. */ + c = *cp++; + switch (c) + { + case 'd': case 'i': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGLONGINT; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lld" into TYPE_LONGINT. */ - if (flags >= 8) - type = TYPE_LONGINT; - else if (flags & 2) - type = TYPE_SCHAR; - else if (flags & 1) - type = TYPE_SHORT; - else - type = TYPE_INT; - break; - case 'o': case 'u': case 'x': case 'X': + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGLONGINT; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lld" into TYPE_LONGINT. */ + if (flags >= 8) + type = TYPE_LONGINT; + else if (flags & 2) + type = TYPE_SCHAR; + else if (flags & 1) + type = TYPE_SHORT; + else + type = TYPE_INT; + break; + case 'o': case 'u': case 'x': case 'X': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_ULONGLONGINT; - else -#endif - /* If 'unsigned long long' exists and is the same as - 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ - if (flags >= 8) - type = TYPE_ULONGINT; - else if (flags & 2) - type = TYPE_UCHAR; - else if (flags & 1) - type = TYPE_USHORT; - else - type = TYPE_UINT; - break; - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGDOUBLE; - else - type = TYPE_DOUBLE; - break; - case 'c': - if (flags >= 8) + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_ULONGLONGINT; + else +#endif + /* If 'unsigned long long' exists and is the same as + 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ + if (flags >= 8) + type = TYPE_ULONGINT; + else if (flags & 2) + type = TYPE_UCHAR; + else if (flags & 1) + type = TYPE_USHORT; + else + type = TYPE_UINT; + break; + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGDOUBLE; + else + type = TYPE_DOUBLE; + break; + case 'c': + if (flags >= 8) #if HAVE_WINT_T - type = TYPE_WIDE_CHAR; + type = TYPE_WIDE_CHAR; #else - goto error; + goto error; #endif - else - type = TYPE_CHAR; - break; + else + type = TYPE_CHAR; + break; #if HAVE_WINT_T - case 'C': - type = TYPE_WIDE_CHAR; - c = 'c'; - break; + case 'C': + type = TYPE_WIDE_CHAR; + c = 'c'; + break; #endif - case 's': - if (flags >= 8) + case 's': + if (flags >= 8) #if HAVE_WCHAR_T - type = TYPE_WIDE_STRING; + type = TYPE_WIDE_STRING; #else - goto error; + goto error; #endif - else - type = TYPE_STRING; - break; + else + type = TYPE_STRING; + break; #if HAVE_WCHAR_T - case 'S': - type = TYPE_WIDE_STRING; - c = 's'; - break; -#endif - case 'p': - type = TYPE_POINTER; - break; - case 'n': + case 'S': + type = TYPE_WIDE_STRING; + c = 's'; + break; +#endif + case 'p': + type = TYPE_POINTER; + break; + case 'n': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_COUNT_LONGLONGINT_POINTER; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lln" into TYPE_COUNT_LONGINT_POINTER. */ - if (flags >= 8) - type = TYPE_COUNT_LONGINT_POINTER; - else if (flags & 2) - type = TYPE_COUNT_SCHAR_POINTER; - else if (flags & 1) - type = TYPE_COUNT_SHORT_POINTER; - else - type = TYPE_COUNT_INT_POINTER; - break; + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_COUNT_LONGLONGINT_POINTER; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lln" into TYPE_COUNT_LONGINT_POINTER. */ + if (flags >= 8) + type = TYPE_COUNT_LONGINT_POINTER; + else if (flags & 2) + type = TYPE_COUNT_SCHAR_POINTER; + else if (flags & 1) + type = TYPE_COUNT_SHORT_POINTER; + else + type = TYPE_COUNT_INT_POINTER; + break; #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - case 'U': - if (flags >= 16) - type = TYPE_U32_STRING; - else if (flags >= 8) - type = TYPE_U16_STRING; - else - type = TYPE_U8_STRING; - break; -#endif - case '%': - type = TYPE_NONE; - break; - default: - /* Unknown conversion character. */ - goto error; - } - } - - if (type != TYPE_NONE) - { - dp->arg_index = arg_index; - if (dp->arg_index == ARG_NONE) - { - dp->arg_index = arg_posn++; - if (dp->arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->arg_index, type); - } - dp->conversion = c; - dp->dir_end = cp; - } - - d->count++; - if (d->count >= d_allocated) - { - size_t memory_size; - DIRECTIVE *memory; - - d_allocated = xtimes (d_allocated, 2); - memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); - if (size_overflow_p (memory_size)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - memory = (DIRECTIVE *) realloc (d->dir, memory_size); - if (memory == NULL) - /* Out of memory. */ - goto out_of_memory; - d->dir = memory; - } - } + /* The unistdio extensions. */ + case 'U': + if (flags >= 16) + type = TYPE_U32_STRING; + else if (flags >= 8) + type = TYPE_U16_STRING; + else + type = TYPE_U8_STRING; + break; +#endif + case '%': + type = TYPE_NONE; + break; + default: + /* Unknown conversion character. */ + goto error; + } + } + + if (type != TYPE_NONE) + { + dp->arg_index = arg_index; + if (dp->arg_index == ARG_NONE) + { + dp->arg_index = arg_posn++; + if (dp->arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->arg_index, type); + } + dp->conversion = c; + dp->dir_end = cp; + } + + d->count++; + if (d->count >= d_allocated) + { + size_t memory_size; + DIRECTIVE *memory; + + d_allocated = xtimes (d_allocated, 2); + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); + if (size_overflow_p (memory_size)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + memory = (DIRECTIVE *) realloc (d->dir, memory_size); + if (memory == NULL) + /* Out of memory. */ + goto out_of_memory; + d->dir = memory; + } + } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) - { - /* Non-ASCII character. Not supported. */ - goto error; - } + { + /* Non-ASCII character. Not supported. */ + goto error; + } #endif } d->dir[d->count].dir_start = cp; diff -Nru gettext-0.17/gettext-runtime/intl/printf-parse.h gettext-0.18.1.1/gettext-runtime/intl/printf-parse.h --- gettext-0.17/gettext-runtime/intl/printf-parse.h 2005-05-20 21:05:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/printf-parse.h 2010-06-06 12:49:57.000000000 +0000 @@ -23,15 +23,15 @@ /* Flags */ -#define FLAG_GROUP 1 /* ' flag */ -#define FLAG_LEFT 2 /* - flag */ -#define FLAG_SHOWSIGN 4 /* + flag */ -#define FLAG_SPACE 8 /* space flag */ -#define FLAG_ALT 16 /* # flag */ -#define FLAG_ZERO 32 +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ -#define ARG_NONE (~(size_t)0) +#define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct diff -Nru gettext-0.17/gettext-runtime/intl/README.woe32 gettext-0.18.1.1/gettext-runtime/intl/README.woe32 --- gettext-0.17/gettext-runtime/intl/README.woe32 2006-07-26 12:00:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/README.woe32 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -Installation on Woe32 (WinNT/2000/XP, Win95/98/ME): +Installation on Woe32 (WinNT/2000/XP/Vista, Win95/98/ME): Building requires the mingw development environment (includes gcc). MS Visual C/C++ with "nmake" is no longer supported. diff -Nru gettext-0.17/gettext-runtime/intl/relocatable.c gettext-0.18.1.1/gettext-runtime/intl/relocatable.c --- gettext-0.17/gettext-runtime/intl/relocatable.c 2006-10-09 12:00:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/relocatable.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide relocatable packages. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 +# define _GNU_SOURCE 1 #endif #include @@ -102,11 +102,11 @@ instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, - const char *curr_prefix_arg) + const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the - relocation is a nop. */ + relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ @@ -118,14 +118,14 @@ #ifdef NO_XMALLOC if (memory != NULL) #endif - { - memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); - orig_prefix = memory; - memory += orig_prefix_len + 1; - memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); - curr_prefix = memory; - return; - } + { + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); + orig_prefix = memory; + memory += orig_prefix_len + 1; + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); + curr_prefix = memory; + return; + } } orig_prefix = NULL; curr_prefix = NULL; @@ -160,17 +160,18 @@ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif -const char * +char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname) + const char *orig_installdir, + const char *curr_pathname) { - const char *curr_installdir; + char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) @@ -193,9 +194,9 @@ while (p > p_base) { - p--; - if (ISSLASH (*p)) - break; + p--; + if (ISSLASH (*p)) + break; } q = (char *) xmalloc (p - curr_pathname + 1); @@ -218,44 +219,47 @@ while (rp > rel_installdir && cp > cp_base) { - bool same = false; - const char *rpi = rp; - const char *cpi = cp; - - while (rpi > rel_installdir && cpi > cp_base) - { - rpi--; - cpi--; - if (ISSLASH (*rpi) || ISSLASH (*cpi)) - { - if (ISSLASH (*rpi) && ISSLASH (*cpi)) - same = true; - break; - } - /* Do case-insensitive comparison if the filesystem is always or - often case-insensitive. It's better to accept the comparison - if the difference is only in case, rather than to fail. */ + bool same = false; + const char *rpi = rp; + const char *cpi = cp; + + while (rpi > rel_installdir && cpi > cp_base) + { + rpi--; + cpi--; + if (ISSLASH (*rpi) || ISSLASH (*cpi)) + { + if (ISSLASH (*rpi) && ISSLASH (*cpi)) + same = true; + break; + } + /* Do case-insensitive comparison if the file system is always or + often case-insensitive. It's better to accept the comparison + if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ - if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) - != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) - break; + /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) + break; #else - if (*rpi != *cpi) - break; + if (*rpi != *cpi) + break; #endif - } - if (!same) - break; - /* The last pathname component was the same. opi and cpi now point - to the slash before it. */ - rp = rpi; - cp = cpi; + } + if (!same) + break; + /* The last pathname component was the same. opi and cpi now point + to the slash before it. */ + rp = rpi; + cp = cpi; } if (rp > rel_installdir) - /* Unexpected: The curr_installdir does not end with rel_installdir. */ - return NULL; + { + /* Unexpected: The curr_installdir does not end with rel_installdir. */ + free (curr_installdir); + return NULL; + } { size_t curr_prefix_len = cp - curr_installdir; @@ -264,11 +268,16 @@ curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) - return NULL; + { + free (curr_installdir); + return NULL; + } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; + free (curr_installdir); + return curr_prefix; } } @@ -296,30 +305,30 @@ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; if (!IS_PATH_WITH_DIR (location)) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; { #if defined __CYGWIN__ - /* On Cygwin, we need to convert paths coming from Win32 system calls - to the Unix-like slashified notation. */ - static char location_as_posix_path[2 * MAX_PATH]; - /* There's no error return defined for cygwin_conv_to_posix_path. - See cygwin-api/func-cygwin-conv-to-posix-path.html. - Does it overflow the buffer of expected size MAX_PATH or does it - truncate the path? I don't know. Let's catch both. */ - cygwin_conv_to_posix_path (location, location_as_posix_path); - location_as_posix_path[MAX_PATH - 1] = '\0'; - if (strlen (location_as_posix_path) >= MAX_PATH - 1) - /* A sign of buffer overflow or path truncation. */ - return FALSE; - shared_library_fullname = strdup (location_as_posix_path); + /* On Cygwin, we need to convert paths coming from Win32 system calls + to the Unix-like slashified notation. */ + static char location_as_posix_path[2 * MAX_PATH]; + /* There's no error return defined for cygwin_conv_to_posix_path. + See cygwin-api/func-cygwin-conv-to-posix-path.html. + Does it overflow the buffer of expected size MAX_PATH or does it + truncate the path? I don't know. Let's catch both. */ + cygwin_conv_to_posix_path (location, location_as_posix_path); + location_as_posix_path[MAX_PATH - 1] = '\0'; + if (strlen (location_as_posix_path) >= MAX_PATH - 1) + /* A sign of buffer overflow or path truncation. */ + return FALSE; + shared_library_fullname = strdup (location_as_posix_path); #else - shared_library_fullname = strdup (location); + shared_library_fullname = strdup (location); #endif } } @@ -342,37 +351,37 @@ { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) - { - unsigned long start, end; - int c; - - if (fscanf (fp, "%lx-%lx", &start, &end) != 2) - break; - if (address >= start && address <= end - 1) - { - /* Found it. Now see if this line contains a filename. */ - while (c = getc (fp), c != EOF && c != '\n' && c != '/') - continue; - if (c == '/') - { - size_t size; - int len; - - ungetc (c, fp); - shared_library_fullname = NULL; size = 0; - len = getline (&shared_library_fullname, &size, fp); - if (len >= 0) - { - /* Success: filled shared_library_fullname. */ - if (len > 0 && shared_library_fullname[len - 1] == '\n') - shared_library_fullname[len - 1] = '\0'; - } - } - break; - } - while (c = getc (fp), c != EOF && c != '\n') - continue; - } + { + unsigned long start, end; + int c; + + if (fscanf (fp, "%lx-%lx", &start, &end) != 2) + break; + if (address >= start && address <= end - 1) + { + /* Found it. Now see if this line contains a filename. */ + while (c = getc (fp), c != EOF && c != '\n' && c != '/') + continue; + if (c == '/') + { + size_t size; + int len; + + ungetc (c, fp); + shared_library_fullname = NULL; size = 0; + len = getline (&shared_library_fullname, &size, fp); + if (len >= 0) + { + /* Success: filled shared_library_fullname. */ + if (len > 0 && shared_library_fullname[len - 1] == '\n') + shared_library_fullname[len - 1] = '\0'; + } + } + break; + } + while (c = getc (fp), c != EOF && c != '\n') + continue; + } fclose (fp); } #endif @@ -400,7 +409,9 @@ #endif /* PIC */ /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { @@ -411,55 +422,69 @@ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been - set through the main program's set_program_name_and_installdir - function. This is sufficient in the case that the library has - initially been installed in the same orig_prefix. But we can do - better, to also cover the cases that 1. it has been installed - in a different prefix before being moved to orig_prefix and (later) - to curr_prefix, 2. unlike the program, it has not moved away from - orig_prefix. */ + set through the main program's set_program_name_and_installdir + function. This is sufficient in the case that the library has + initially been installed in the same orig_prefix. But we can do + better, to also cover the cases that 1. it has been installed + in a different prefix before being moved to orig_prefix and (later) + to curr_prefix, 2. unlike the program, it has not moved away from + orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; - const char *curr_prefix_better; + char *curr_prefix_better; curr_prefix_better = - compute_curr_prefix (orig_installprefix, orig_installdir, - get_shared_library_fullname ()); - if (curr_prefix_better == NULL) - curr_prefix_better = curr_prefix; + compute_curr_prefix (orig_installprefix, orig_installdir, + get_shared_library_fullname ()); - set_relocation_prefix (orig_installprefix, curr_prefix_better); + set_relocation_prefix (orig_installprefix, + curr_prefix_better != NULL + ? curr_prefix_better + : curr_prefix); + + if (curr_prefix_better != NULL) + free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, - even for DOS-like filesystems, because the pathname argument was + even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') - /* pathname equals orig_prefix. */ - return curr_prefix; - if (ISSLASH (pathname[orig_prefix_len])) - { - /* pathname starts with orig_prefix. */ - const char *pathname_tail = &pathname[orig_prefix_len]; - char *result = - (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); + { + /* pathname equals orig_prefix. */ + char *result = (char *) xmalloc (strlen (curr_prefix) + 1); + +#ifdef NO_XMALLOC + if (result != NULL) +#endif + { + strcpy (result, curr_prefix); + return result; + } + } + else if (ISSLASH (pathname[orig_prefix_len])) + { + /* pathname starts with orig_prefix. */ + const char *pathname_tail = &pathname[orig_prefix_len]; + char *result = + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC - if (result != NULL) + if (result != NULL) #endif - { - memcpy (result, curr_prefix, curr_prefix_len); - strcpy (result + curr_prefix_len, pathname_tail); - return result; - } - } + { + memcpy (result, curr_prefix, curr_prefix_len); + strcpy (result + curr_prefix_len, pathname_tail); + return result; + } + } } /* Nothing to relocate. */ return pathname; diff -Nru gettext-0.17/gettext-runtime/intl/relocatable.h gettext-0.18.1.1/gettext-runtime/intl/relocatable.h --- gettext-0.17/gettext-runtime/intl/relocatable.h 2005-07-27 11:27:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/relocatable.h 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide relocatable packages. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it @@ -46,23 +46,27 @@ instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); + const char *curr_prefix); /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); -/* Memory management: relocate() leaks memory, because it has to construct - a fresh pathname. If this is a problem because your program calls - relocate() frequently, think about caching the result. */ +/* Memory management: relocate() potentially allocates memory, because it has + to construct a fresh pathname. If this is a problem because your program + calls relocate() frequently, think about caching the result. Or free the + return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ -extern const char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname); + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ +extern char * compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname); #else diff -Nru gettext-0.17/gettext-runtime/intl/setlocale.c gettext-0.18.1.1/gettext-runtime/intl/setlocale.c --- gettext-0.17/gettext-runtime/intl/setlocale.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/setlocale.c 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,1015 @@ +/* setlocale() function that respects the locale chosen by the user. + Copyright (C) 2009 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +/* Override setlocale() and newlocale() so that when the default locale is + requested (locale = "") and no relevant environment variable is set, the + locale chosen by the user is used. + This matters on MacOS X 10 and Windows. + See the comments in localename.c, function gl_locale_name_default. */ + +#include +#include +#include + +/* When building a DLL, we must export some functions. Note that because + the functions are only defined for binary backward compatibility, we + don't need to use __declspec(dllimport) in any case. */ +#if HAVE_VISIBILITY && BUILDING_DLL +# define DLL_EXPORTED __attribute__((__visibility__("default"))) +#elif defined _MSC_VER && BUILDING_DLL +# define DLL_EXPORTED __declspec(dllexport) +#else +# define DLL_EXPORTED +#endif + +#include "gettextP.h" + +#if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ + +# undef setlocale +# undef newlocale + +/* Return string representation of locale category CATEGORY. */ +static const char * +category_to_name (int category) +{ + const char *retval; + + switch (category) + { + case LC_COLLATE: + retval = "LC_COLLATE"; + break; + case LC_CTYPE: + retval = "LC_CTYPE"; + break; + case LC_MONETARY: + retval = "LC_MONETARY"; + break; + case LC_NUMERIC: + retval = "LC_NUMERIC"; + break; + case LC_TIME: + retval = "LC_TIME"; + break; + case LC_MESSAGES: + retval = "LC_MESSAGES"; + break; + default: + /* If you have a better idea for a default value let me know. */ + retval = "LC_XXX"; + } + + return retval; +} + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* The native Win32 setlocale() function expects locale names of the form + "German" or "German_Germany" or "DEU", but not "de" or "de_DE". We need + to convert the names from the form with ISO 639 language code and ISO 3166 + country code to the form with English names or with three-letter identifier. + The three-letter identifiers known by a Windows XP SP2 or SP3 are: + AFK Afrikaans_South Africa.1252 + ARA Arabic_Saudi Arabia.1256 + ARB Arabic_Lebanon.1256 + ARE Arabic_Egypt.1256 + ARG Arabic_Algeria.1256 + ARH Arabic_Bahrain.1256 + ARI Arabic_Iraq.1256 + ARJ Arabic_Jordan.1256 + ARK Arabic_Kuwait.1256 + ARL Arabic_Libya.1256 + ARM Arabic_Morocco.1256 + ARO Arabic_Oman.1256 + ARQ Arabic_Qatar.1256 + ARS Arabic_Syria.1256 + ART Arabic_Tunisia.1256 + ARU Arabic_U.A.E..1256 + ARY Arabic_Yemen.1256 + AZE Azeri (Latin)_Azerbaijan.1254 + BEL Belarusian_Belarus.1251 + BGR Bulgarian_Bulgaria.1251 + BSB Bosnian_Bosnia and Herzegovina.1250 + BSC Bosnian (Cyrillic)_Bosnia and Herzegovina.1250 (wrong encoding!) + CAT Catalan_Spain.1252 + CHH Chinese_Hong Kong S.A.R..950 + CHI Chinese_Singapore.936 + CHS Chinese_People's Republic of China.936 + CHT Chinese_Taiwan.950 + CSY Czech_Czech Republic.1250 + CYM Welsh_United Kingdom.1252 + DAN Danish_Denmark.1252 + DEA German_Austria.1252 + DEC German_Liechtenstein.1252 + DEL German_Luxembourg.1252 + DES German_Switzerland.1252 + DEU German_Germany.1252 + ELL Greek_Greece.1253 + ENA English_Australia.1252 + ENB English_Caribbean.1252 + ENC English_Canada.1252 + ENG English_United Kingdom.1252 + ENI English_Ireland.1252 + ENJ English_Jamaica.1252 + ENL English_Belize.1252 + ENP English_Republic of the Philippines.1252 + ENS English_South Africa.1252 + ENT English_Trinidad and Tobago.1252 + ENU English_United States.1252 + ENW English_Zimbabwe.1252 + ENZ English_New Zealand.1252 + ESA Spanish_Panama.1252 + ESB Spanish_Bolivia.1252 + ESC Spanish_Costa Rica.1252 + ESD Spanish_Dominican Republic.1252 + ESE Spanish_El Salvador.1252 + ESF Spanish_Ecuador.1252 + ESG Spanish_Guatemala.1252 + ESH Spanish_Honduras.1252 + ESI Spanish_Nicaragua.1252 + ESL Spanish_Chile.1252 + ESM Spanish_Mexico.1252 + ESN Spanish_Spain.1252 + ESO Spanish_Colombia.1252 + ESP Spanish_Spain.1252 + ESR Spanish_Peru.1252 + ESS Spanish_Argentina.1252 + ESU Spanish_Puerto Rico.1252 + ESV Spanish_Venezuela.1252 + ESY Spanish_Uruguay.1252 + ESZ Spanish_Paraguay.1252 + ETI Estonian_Estonia.1257 + EUQ Basque_Spain.1252 + FAR Farsi_Iran.1256 + FIN Finnish_Finland.1252 + FOS Faroese_Faroe Islands.1252 + FPO Filipino_Philippines.1252 + FRA French_France.1252 + FRB French_Belgium.1252 + FRC French_Canada.1252 + FRL French_Luxembourg.1252 + FRM French_Principality of Monaco.1252 + FRS French_Switzerland.1252 + FYN Frisian_Netherlands.1252 + GLC Galician_Spain.1252 + HEB Hebrew_Israel.1255 + HRB Croatian_Bosnia and Herzegovina.1250 + HRV Croatian_Croatia.1250 + HUN Hungarian_Hungary.1250 + IND Indonesian_Indonesia.1252 + IRE Irish_Ireland.1252 + ISL Icelandic_Iceland.1252 + ITA Italian_Italy.1252 + ITS Italian_Switzerland.1252 + IUK Inuktitut (Latin)_Canada.1252 + JPN Japanese_Japan.932 + KKZ Kazakh_Kazakhstan.1251 + KOR Korean_Korea.949 + KYR Kyrgyz_Kyrgyzstan.1251 + LBX Luxembourgish_Luxembourg.1252 + LTH Lithuanian_Lithuania.1257 + LVI Latvian_Latvia.1257 + MKI FYRO Macedonian_Former Yugoslav Republic of Macedonia.1251 + MON Mongolian_Mongolia.1251 + MPD Mapudungun_Chile.1252 + MSB Malay_Brunei Darussalam.1252 + MSL Malay_Malaysia.1252 + MWK Mohawk_Canada.1252 + NLB Dutch_Belgium.1252 + NLD Dutch_Netherlands.1252 + NON Norwegian-Nynorsk_Norway.1252 + NOR Norwegian (Bokmål)_Norway.1252 + NSO Northern Sotho_South Africa.1252 + PLK Polish_Poland.1250 + PTB Portuguese_Brazil.1252 + PTG Portuguese_Portugal.1252 + QUB Quechua_Bolivia.1252 + QUE Quechua_Ecuador.1252 + QUP Quechua_Peru.1252 + RMC Romansh_Switzerland.1252 + ROM Romanian_Romania.1250 + RUS Russian_Russia.1251 + SKY Slovak_Slovakia.1250 + SLV Slovenian_Slovenia.1250 + SMA Sami (Southern)_Norway.1252 + SMB Sami (Southern)_Sweden.1252 + SME Sami (Northern)_Norway.1252 + SMF Sami (Northern)_Sweden.1252 + SMG Sami (Northern)_Finland.1252 + SMJ Sami (Lule)_Norway.1252 + SMK Sami (Lule)_Sweden.1252 + SMN Sami (Inari)_Finland.1252 + SMS Sami (Skolt)_Finland.1252 + SQI Albanian_Albania.1250 + SRB Serbian (Cyrillic)_Serbia and Montenegro.1251 + SRL Serbian (Latin)_Serbia and Montenegro.1250 + SRN Serbian (Cyrillic)_Bosnia and Herzegovina.1251 + SRS Serbian (Latin)_Bosnia and Herzegovina.1250 + SVE Swedish_Sweden.1252 + SVF Swedish_Finland.1252 + SWK Swahili_Kenya.1252 + THA Thai_Thailand.874 + TRK Turkish_Turkey.1254 + TSN Tswana_South Africa.1252 + TTT Tatar_Russia.1251 + UKR Ukrainian_Ukraine.1251 + URD Urdu_Islamic Republic of Pakistan.1256 + USA English_United States.1252 + UZB Uzbek (Latin)_Uzbekistan.1254 + VIT Vietnamese_Viet Nam.1258 + XHO Xhosa_South Africa.1252 + ZHH Chinese_Hong Kong S.A.R..950 + ZHI Chinese_Singapore.936 + ZHM Chinese_Macau S.A.R..950 + ZUL Zulu_South Africa.1252 + */ + +/* Table from ISO 639 language code, optionally with country or script suffix, + to English name. + Keep in sync with the gl_locale_name_from_win32_LANGID function in + localename.c! */ +struct table_entry +{ + const char *code; + const char *english; +}; +static const struct table_entry language_table[] = + { + { "af", "Afrikaans" }, + { "am", "Amharic" }, + { "ar", "Arabic" }, + { "arn", "Mapudungun" }, + { "as", "Assamese" }, + { "az@cyrillic", "Azeri (Cyrillic)" }, + { "az@latin", "Azeri (Latin)" }, + { "ba", "Bashkir" }, + { "be", "Belarusian" }, + { "ber", "Tamazight" }, + { "ber@arabic", "Tamazight (Arabic)" }, + { "ber@latin", "Tamazight (Latin)" }, + { "bg", "Bulgarian" }, + { "bin", "Edo" }, + { "bn", "Bengali" }, + { "bn_BD", "Bengali (Bangladesh)" }, + { "bn_IN", "Bengali (India)" }, + { "bnt", "Sutu" }, + { "bo", "Tibetan" }, + { "br", "Breton" }, + { "bs", "BSB" }, /* "Bosnian (Latin)" */ + { "bs@cyrillic", "BSC" }, /* Bosnian (Cyrillic) */ + { "ca", "Catalan" }, + { "chr", "Cherokee" }, + { "co", "Corsican" }, + { "cpe", "Hawaiian" }, + { "cs", "Czech" }, + { "cy", "Welsh" }, + { "da", "Danish" }, + { "de", "German" }, + { "dsb", "Lower Sorbian" }, + { "dv", "Divehi" }, + { "el", "Greek" }, + { "en", "English" }, + { "es", "Spanish" }, + { "et", "Estonian" }, + { "eu", "Basque" }, + { "fa", "Farsi" }, + { "ff", "Fulfulde" }, + { "fi", "Finnish" }, + { "fo", "Faroese" }, /* "Faeroese" does not work */ + { "fr", "French" }, + { "fy", "Frisian" }, + { "ga", "IRE" }, /* Gaelic (Ireland) */ + { "gd", "Gaelic (Scotland)" }, + { "gd", "Scottish Gaelic" }, + { "gl", "Galician" }, + { "gn", "Guarani" }, + { "gsw", "Alsatian" }, + { "gu", "Gujarati" }, + { "ha", "Hausa" }, + { "he", "Hebrew" }, + { "hi", "Hindi" }, + { "hr", "Croatian" }, + { "hsb", "Upper Sorbian" }, + { "hu", "Hungarian" }, + { "hy", "Armenian" }, + { "id", "Indonesian" }, + { "ig", "Igbo" }, + { "ii", "Yi" }, + { "is", "Icelandic" }, + { "it", "Italian" }, + { "iu", "IUK" }, /* Inuktitut */ + { "ja", "Japanese" }, + { "ka", "Georgian" }, + { "kk", "Kazakh" }, + { "kl", "Greenlandic" }, + { "km", "Cambodian" }, + { "km", "Khmer" }, + { "kn", "Kannada" }, + { "ko", "Korean" }, + { "kok", "Konkani" }, + { "kr", "Kanuri" }, + { "ks", "Kashmiri" }, + { "ks_IN", "Kashmiri_India" }, + { "ks_PK", "Kashmiri (Arabic)_Pakistan" }, + { "ky", "Kyrgyz" }, + { "la", "Latin" }, + { "lb", "Luxembourgish" }, + { "lo", "Lao" }, + { "lt", "Lithuanian" }, + { "lv", "Latvian" }, + { "mi", "Maori" }, + { "mk", "FYRO Macedonian" }, + { "mk", "Macedonian" }, + { "ml", "Malayalam" }, + { "mn", "Mongolian" }, + { "mni", "Manipuri" }, + { "moh", "Mohawk" }, + { "mr", "Marathi" }, + { "ms", "Malay" }, + { "mt", "Maltese" }, + { "my", "Burmese" }, + { "nb", "NOR" }, /* Norwegian Bokmål */ + { "ne", "Nepali" }, + { "nic", "Ibibio" }, + { "nl", "Dutch" }, + { "nn", "NON" }, /* Norwegian Nynorsk */ + { "no", "Norwegian" }, + { "nso", "Northern Sotho" }, + { "nso", "Sepedi" }, + { "oc", "Occitan" }, + { "om", "Oromo" }, + { "or", "Oriya" }, + { "pa", "Punjabi" }, + { "pap", "Papiamentu" }, + { "pl", "Polish" }, + { "prs", "Dari" }, + { "ps", "Pashto" }, + { "pt", "Portuguese" }, + { "qu", "Quechua" }, + { "qut", "K'iche'" }, + { "rm", "Romansh" }, + { "ro", "Romanian" }, + { "ru", "Russian" }, + { "rw", "Kinyarwanda" }, + { "sa", "Sanskrit" }, + { "sah", "Yakut" }, + { "sd", "Sindhi" }, + { "se", "Sami (Northern)" }, + { "se", "Northern Sami" }, + { "si", "Sinhalese" }, + { "sk", "Slovak" }, + { "sl", "Slovenian" }, + { "sma", "Sami (Southern)" }, + { "sma", "Southern Sami" }, + { "smj", "Sami (Lule)" }, + { "smj", "Lule Sami" }, + { "smn", "Sami (Inari)" }, + { "smn", "Inari Sami" }, + { "sms", "Sami (Skolt)" }, + { "sms", "Skolt Sami" }, + { "so", "Somali" }, + { "sq", "Albanian" }, + { "sr", "Serbian (Latin)" }, + { "sr@cyrillic", "SRB" }, /* Serbian (Cyrillic) */ + { "sw", "Swahili" }, + { "syr", "Syriac" }, + { "ta", "Tamil" }, + { "te", "Telugu" }, + { "tg", "Tajik" }, + { "th", "Thai" }, + { "ti", "Tigrinya" }, + { "tk", "Turkmen" }, + { "tl", "Filipino" }, + { "tn", "Tswana" }, + { "tr", "Turkish" }, + { "ts", "Tsonga" }, + { "tt", "Tatar" }, + { "ug", "Uighur" }, + { "uk", "Ukrainian" }, + { "ur", "Urdu" }, + { "uz", "Uzbek" }, + { "uz", "Uzbek (Latin)" }, + { "uz@cyrillic", "Uzbek (Cyrillic)" }, + { "ve", "Venda" }, + { "vi", "Vietnamese" }, + { "wen", "Sorbian" }, + { "wo", "Wolof" }, + { "xh", "Xhosa" }, + { "yi", "Yiddish" }, + { "yo", "Yoruba" }, + { "zh", "Chinese" }, + { "zu", "Zulu" } + }; + +/* Table from ISO 3166 country code to English name. + Keep in sync with the gl_locale_name_from_win32_LANGID function in + localename.c! */ +static const struct table_entry country_table[] = + { + { "AE", "U.A.E." }, + { "AF", "Afghanistan" }, + { "AL", "Albania" }, + { "AM", "Armenia" }, + { "AN", "Netherlands Antilles" }, + { "AR", "Argentina" }, + { "AT", "Austria" }, + { "AU", "Australia" }, + { "AZ", "Azerbaijan" }, + { "BA", "Bosnia and Herzegovina" }, + { "BD", "Bangladesh" }, + { "BE", "Belgium" }, + { "BG", "Bulgaria" }, + { "BH", "Bahrain" }, + { "BN", "Brunei Darussalam" }, + { "BO", "Bolivia" }, + { "BR", "Brazil" }, + { "BT", "Bhutan" }, + { "BY", "Belarus" }, + { "BZ", "Belize" }, + { "CA", "Canada" }, + { "CG", "Congo" }, + { "CH", "Switzerland" }, + { "CI", "Cote d'Ivoire" }, + { "CL", "Chile" }, + { "CM", "Cameroon" }, + { "CN", "People's Republic of China" }, + { "CO", "Colombia" }, + { "CR", "Costa Rica" }, + { "CS", "Serbia and Montenegro" }, + { "CZ", "Czech Republic" }, + { "DE", "Germany" }, + { "DK", "Denmark" }, + { "DO", "Dominican Republic" }, + { "DZ", "Algeria" }, + { "EC", "Ecuador" }, + { "EE", "Estonia" }, + { "EG", "Egypt" }, + { "ER", "Eritrea" }, + { "ES", "Spain" }, + { "ET", "Ethiopia" }, + { "FI", "Finland" }, + { "FO", "Faroe Islands" }, + { "FR", "France" }, + { "GB", "United Kingdom" }, + { "GD", "Caribbean" }, + { "GE", "Georgia" }, + { "GL", "Greenland" }, + { "GR", "Greece" }, + { "GT", "Guatemala" }, + { "HK", "Hong Kong" }, + { "HK", "Hong Kong S.A.R." }, + { "HN", "Honduras" }, + { "HR", "Croatia" }, + { "HT", "Haiti" }, + { "HU", "Hungary" }, + { "ID", "Indonesia" }, + { "IE", "Ireland" }, + { "IL", "Israel" }, + { "IN", "India" }, + { "IQ", "Iraq" }, + { "IR", "Iran" }, + { "IS", "Iceland" }, + { "IT", "Italy" }, + { "JM", "Jamaica" }, + { "JO", "Jordan" }, + { "JP", "Japan" }, + { "KE", "Kenya" }, + { "KG", "Kyrgyzstan" }, + { "KH", "Cambodia" }, + { "KR", "South Korea" }, + { "KW", "Kuwait" }, + { "KZ", "Kazakhstan" }, + { "LA", "Laos" }, + { "LB", "Lebanon" }, + { "LI", "Liechtenstein" }, + { "LK", "Sri Lanka" }, + { "LT", "Lithuania" }, + { "LU", "Luxembourg" }, + { "LV", "Latvia" }, + { "LY", "Libya" }, + { "MA", "Morocco" }, + { "MC", "Principality of Monaco" }, + { "MD", "Moldava" }, + { "MD", "Moldova" }, + { "ME", "Montenegro" }, + { "MK", "Former Yugoslav Republic of Macedonia" }, + { "ML", "Mali" }, + { "MM", "Myanmar" }, + { "MN", "Mongolia" }, + { "MO", "Macau S.A.R." }, + { "MT", "Malta" }, + { "MV", "Maldives" }, + { "MX", "Mexico" }, + { "MY", "Malaysia" }, + { "NG", "Nigeria" }, + { "NI", "Nicaragua" }, + { "NL", "Netherlands" }, + { "NO", "Norway" }, + { "NP", "Nepal" }, + { "NZ", "New Zealand" }, + { "OM", "Oman" }, + { "PA", "Panama" }, + { "PE", "Peru" }, + { "PH", "Philippines" }, + { "PK", "Islamic Republic of Pakistan" }, + { "PL", "Poland" }, + { "PR", "Puerto Rico" }, + { "PT", "Portugal" }, + { "PY", "Paraguay" }, + { "QA", "Qatar" }, + { "RE", "Reunion" }, + { "RO", "Romania" }, + { "RS", "Serbia" }, + { "RU", "Russia" }, + { "RW", "Rwanda" }, + { "SA", "Saudi Arabia" }, + { "SE", "Sweden" }, + { "SG", "Singapore" }, + { "SI", "Slovenia" }, + { "SK", "Slovak" }, + { "SN", "Senegal" }, + { "SO", "Somalia" }, + { "SR", "Suriname" }, + { "SV", "El Salvador" }, + { "SY", "Syria" }, + { "TH", "Thailand" }, + { "TJ", "Tajikistan" }, + { "TM", "Turkmenistan" }, + { "TN", "Tunisia" }, + { "TR", "Turkey" }, + { "TT", "Trinidad and Tobago" }, + { "TW", "Taiwan" }, + { "TZ", "Tanzania" }, + { "UA", "Ukraine" }, + { "US", "United States" }, + { "UY", "Uruguay" }, + { "VA", "Vatican" }, + { "VE", "Venezuela" }, + { "VN", "Viet Nam" }, + { "YE", "Yemen" }, + { "ZA", "South Africa" }, + { "ZW", "Zimbabwe" } + }; + +/* Given a string STRING, find the set of indices i such that TABLE[i].code is + the given STRING. It is a range [lo,hi-1]. */ +typedef struct { size_t lo; size_t hi; } range_t; +static void +search (const struct table_entry *table, size_t table_size, const char *string, + range_t *result) +{ + /* The table is sorted. Perform a binary search. */ + size_t hi = table_size; + size_t lo = 0; + while (lo < hi) + { + /* Invariant: + for i < lo, strcmp (table[i].code, string) < 0, + for i >= hi, strcmp (table[i].code, string) > 0. */ + size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ + int cmp = strcmp (table[mid].code, string); + if (cmp < 0) + lo = mid + 1; + else if (cmp > 0) + hi = mid; + else + { + /* Found an i with + strcmp (language_table[i].code, string) == 0. + Find the entire interval of such i. */ + { + size_t i; + + for (i = mid; i > lo; ) + { + i--; + if (strcmp (table[i].code, string) < 0) + { + lo = i + 1; + break; + } + } + } + { + size_t i; + + for (i = mid; i < hi; i++) + { + if (strcmp (table[i].code, string) > 0) + { + hi = i; + break; + } + } + } + /* The set of i with + strcmp (language_table[i].code, string) == 0 + is the interval [lo, hi-1]. */ + break; + } + } + result->lo = lo; + result->hi = hi; +} + +/* Like setlocale, but accept also locale names in the form ll or ll_CC, + where ll is an ISO 639 language code and CC is an ISO 3166 country code. */ +static char * +setlocale_unixlike (int category, const char *locale) +{ + char *result; + char llCC_buf[64]; + char ll_buf[64]; + char CC_buf[64]; + + /* First, try setlocale with the original argument unchanged. */ + result = setlocale (category, locale); + if (result != NULL) + return result; + + /* Otherwise, assume the argument is in the form + language[_territory][.codeset][@modifier] + and try to map it using the tables. */ + if (strlen (locale) < sizeof (llCC_buf)) + { + /* Second try: Remove the codeset part. */ + { + const char *p = locale; + char *q = llCC_buf; + + /* Copy the part before the dot. */ + for (; *p != '\0' && *p != '.'; p++, q++) + *q = *p; + if (*p == '.') + /* Skip the part up to the '@', if any. */ + for (; *p != '\0' && *p != '@'; p++) + ; + /* Copy the part starting with '@', if any. */ + for (; *p != '\0'; p++, q++) + *q = *p; + *q = '\0'; + } + /* llCC_buf now contains + language[_territory][@modifier] + */ + if (strcmp (llCC_buf, locale) != 0) + { + result = setlocale (category, llCC_buf); + if (result != NULL) + return result; + } + /* Look it up in language_table. */ + { + range_t range; + size_t i; + + search (language_table, + sizeof (language_table) / sizeof (language_table[0]), + llCC_buf, + &range); + + for (i = range.lo; i < range.hi; i++) + { + /* Try the replacement in language_table[i]. */ + result = setlocale (category, language_table[i].english); + if (result != NULL) + return result; + } + } + /* Split language[_territory][@modifier] + into ll_buf = language[@modifier] + and CC_buf = territory + */ + { + const char *underscore = strchr (llCC_buf, '_'); + if (underscore != NULL) + { + const char *territory_start = underscore + 1; + const char *territory_end = strchr (territory_start, '@'); + if (territory_end == NULL) + territory_end = territory_start + strlen (territory_start); + + memcpy (ll_buf, llCC_buf, underscore - llCC_buf); + strcpy (ll_buf + (underscore - llCC_buf), territory_end); + + memcpy (CC_buf, territory_start, territory_end - territory_start); + CC_buf[territory_end - territory_start] = '\0'; + + { + /* Look up ll_buf in language_table + and CC_buf in country_table. */ + range_t language_range; + + search (language_table, + sizeof (language_table) / sizeof (language_table[0]), + ll_buf, + &language_range); + if (language_range.lo < language_range.hi) + { + range_t country_range; + + search (country_table, + sizeof (country_table) / sizeof (country_table[0]), + CC_buf, + &country_range); + if (country_range.lo < country_range.hi) + { + size_t i; + size_t j; + + for (i = language_range.lo; i < language_range.hi; i++) + for (j = country_range.lo; j < country_range.hi; j++) + { + /* Concatenate the replacements. */ + const char *part1 = language_table[i].english; + size_t part1_len = strlen (part1); + const char *part2 = country_table[j].english; + size_t part2_len = strlen (part2) + 1; + char buf[64+64]; + + if (!(part1_len + 1 + part2_len <= sizeof (buf))) + abort (); + memcpy (buf, part1, part1_len); + buf[part1_len] = '_'; + memcpy (buf + part1_len + 1, part2, part2_len); + + /* Try the concatenated replacements. */ + result = setlocale (category, buf); + if (result != NULL) + return result; + } + } + + /* Try omitting the country entirely. This may set a locale + corresponding to the wrong country, but is better than + failing entirely. */ + { + size_t i; + + for (i = language_range.lo; i < language_range.hi; i++) + { + /* Try only the language replacement. */ + result = + setlocale (category, language_table[i].english); + if (result != NULL) + return result; + } + } + } + } + } + } + } + + /* Failed. */ + return NULL; +} + +# else +# define setlocale_unixlike setlocale +# endif + +# if LC_MESSAGES == 1729 + +/* The system does not store an LC_MESSAGES locale category. Do it here. */ +static char lc_messages_name[64] = "C"; + +/* Like setlocale, but support also LC_MESSAGES. */ +static char * +setlocale_single (int category, const char *locale) +{ + if (category == LC_MESSAGES) + { + if (locale != NULL) + { + lc_messages_name[sizeof (lc_messages_name) - 1] = '\0'; + strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1); + } + return lc_messages_name; + } + else + return setlocale_unixlike (category, locale); +} + +# else +# define setlocale_single setlocale_unixlike +# endif + +DLL_EXPORTED +char * +libintl_setlocale (int category, const char *locale) +{ + if (locale != NULL && locale[0] == '\0') + { + /* A request to the set the current locale to the default locale. */ + if (category == LC_ALL) + { + /* Set LC_CTYPE first. Then the other categories. */ + static int const categories[] = + { + LC_NUMERIC, + LC_TIME, + LC_COLLATE, + LC_MONETARY, + LC_MESSAGES + }; + char *saved_locale; + const char *base_name; + unsigned int i; + + /* Back up the old locale, in case one of the steps fails. */ + saved_locale = setlocale (LC_ALL, NULL); + if (saved_locale == NULL) + return NULL; + saved_locale = strdup (saved_locale); + if (saved_locale == NULL) + return NULL; + + /* Set LC_CTYPE category. Set all other categories (except possibly + LC_MESSAGES) to the same value in the same call; this is likely to + save calls. */ + base_name = + gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); + if (base_name == NULL) + base_name = gl_locale_name_default (); + + if (setlocale_unixlike (LC_ALL, base_name) == NULL) + goto fail; + + for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) + { + int cat = categories[i]; + const char *name; + + name = gl_locale_name_environ (cat, category_to_name (cat)); + if (name == NULL) + name = gl_locale_name_default (); + + /* If name is the same as base_name, it has already been set + through the setlocale call before the loop. */ + if (strcmp (name, base_name) != 0 +# if LC_MESSAGES == 1729 + || cat == LC_MESSAGES +# endif + ) + if (setlocale_single (cat, name) == NULL) + goto fail; + } + + /* All steps were successful. */ + free (saved_locale); + return setlocale (LC_ALL, NULL); + + fail: + if (saved_locale[0] != '\0') /* don't risk an endless recursion */ + setlocale (LC_ALL, saved_locale); + free (saved_locale); + return NULL; + } + else + { + const char *name = + gl_locale_name_environ (category, category_to_name (category)); + if (name == NULL) + name = gl_locale_name_default (); + + return setlocale_single (category, name); + } + } + else + return setlocale_single (category, locale); +} + +# if HAVE_NEWLOCALE + +DLL_EXPORTED +locale_t +libintl_newlocale (int category_mask, const char *locale, locale_t base) +{ + if (category_mask != 0 && locale != NULL && locale[0] == '\0') + { + /* A request to construct a locale_t object that refers to the default + locale. */ + + /* Set LC_CTYPE first. Then the other categories. */ + static struct { int cat; int mask; } const categories[] = + { + { LC_CTYPE, LC_CTYPE_MASK }, + { LC_NUMERIC, LC_NUMERIC_MASK }, + { LC_TIME, LC_TIME_MASK }, + { LC_COLLATE, LC_COLLATE_MASK }, + { LC_MONETARY, LC_MONETARY_MASK }, + { LC_MESSAGES, LC_MESSAGES_MASK } + }; + + locale_t orig_base = base; + + if ((LC_ALL_MASK & ~category_mask) == 0) + { + const char *base_name; + unsigned int i; + + /* Set LC_CTYPE category. Set all other categories (except possibly + LC_MESSAGES) to the same value in the same call; this is likely to + save calls. */ + base_name = + gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); + if (base_name == NULL) + base_name = gl_locale_name_default (); + + base = newlocale (LC_ALL_MASK, base_name, base); + if (base == NULL) + return NULL; + + for (i = 1; i < sizeof (categories) / sizeof (categories[0]); i++) + { + int category = categories[i].cat; + int category_mask = categories[i].mask; + const char *name; + + name = + gl_locale_name_environ (category, category_to_name (category)); + if (name == NULL) + name = gl_locale_name_default (); + + /* If name is the same as base_name, it has already been set + through the setlocale call before the loop. */ + if (strcmp (name, base_name) != 0) + { + locale_t copy = newlocale (category_mask, name, base); + if (copy == NULL) + goto fail; + /* No need to call freelocale (base) if copy != base; the + newlocale function already takes care of doing it. */ + base = copy; + } + } + } + else + { + unsigned int i; + + for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) + { + int cat_mask = categories[i].mask; + + if ((category_mask & cat_mask) != 0) + { + int cat = categories[i].cat; + const char *name; + locale_t copy; + + name = gl_locale_name_environ (cat, category_to_name (cat)); + if (name == NULL) + name = gl_locale_name_default (); + + copy = newlocale (cat_mask, name, base); + if (copy == NULL) + goto fail; + /* No need to call freelocale (base) if copy != base; the + newlocale function already takes care of doing it. */ + base = copy; + } + } + } + + /* All steps were successful. */ + return base; + + fail: + if (base != NULL && orig_base == NULL) + { + int saved_errno = errno; + freelocale (base); + errno = saved_errno; + } + return NULL; + } + else + return newlocale (category_mask, locale, base); +} + +# endif + +#endif diff -Nru gettext-0.17/gettext-runtime/intl/threadlib.c gettext-0.18.1.1/gettext-runtime/intl/threadlib.c --- gettext-0.17/gettext-runtime/intl/threadlib.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/threadlib.c 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,75 @@ +/* Multithreading primitives. + Copyright (C) 2005-2009 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published + by the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. */ + +/* Written by Bruno Haible , 2005. */ + +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include +# include + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The function to be executed by a dummy thread. */ +static void * +dummy_thread_func (void *arg) +{ + return arg; +} + +int +glthread_in_use (void) +{ + static int tested; + static int result; /* 1: linked with -lpthread, 0: only with libc */ + + if (!tested) + { + pthread_t thread; + + if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) + /* Thread creation failed. */ + result = 0; + else + { + /* Thread creation works. */ + void *retval; + if (pthread_join (thread, &retval) != 0) + abort (); + result = 1; + } + tested = 1; + } + return result; +} + +# endif + +#endif + +/* ========================================================================= */ + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; diff -Nru gettext-0.17/gettext-runtime/intl/tsearch.c gettext-0.18.1.1/gettext-runtime/intl/tsearch.c --- gettext-0.17/gettext-runtime/intl/tsearch.c 2007-05-20 21:43:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/tsearch.c 2010-06-06 12:49:57.000000000 +0000 @@ -179,7 +179,7 @@ edges between GPARENTP and ROOTP. */ static void maybe_split_for_insert (node *rootp, node *parentp, node *gparentp, - int p_r, int gp_r, int mode) + int p_r, int gp_r, int mode) { node root = *rootp; node *rp, *lp; @@ -193,67 +193,67 @@ /* This node becomes red, its successors black. */ root->red = 1; if (*rp) - (*rp)->red = 0; + (*rp)->red = 0; if (*lp) - (*lp)->red = 0; + (*lp)->red = 0; /* If the parent of this node is also red, we have to do - rotations. */ + rotations. */ if (parentp != NULL && (*parentp)->red) - { - node gp = *gparentp; - node p = *parentp; - /* There are two main cases: - 1. The edge types (left or right) of the two red edges differ. - 2. Both red edges are of the same type. - There exist two symmetries of each case, so there is a total of - 4 cases. */ - if ((p_r > 0) != (gp_r > 0)) - { - /* Put the child at the top of the tree, with its parent - and grandparent as successors. */ - p->red = 1; - gp->red = 1; - root->red = 0; - if (p_r < 0) - { - /* Child is left of parent. */ - p->left = *rp; - *rp = p; - gp->right = *lp; - *lp = gp; - } - else - { - /* Child is right of parent. */ - p->right = *lp; - *lp = p; - gp->left = *rp; - *rp = gp; - } - *gparentp = root; - } - else - { - *gparentp = *parentp; - /* Parent becomes the top of the tree, grandparent and - child are its successors. */ - p->red = 0; - gp->red = 1; - if (p_r < 0) - { - /* Left edges. */ - gp->left = p->right; - p->right = gp; - } - else - { - /* Right edges. */ - gp->right = p->left; - p->left = gp; - } - } - } + { + node gp = *gparentp; + node p = *parentp; + /* There are two main cases: + 1. The edge types (left or right) of the two red edges differ. + 2. Both red edges are of the same type. + There exist two symmetries of each case, so there is a total of + 4 cases. */ + if ((p_r > 0) != (gp_r > 0)) + { + /* Put the child at the top of the tree, with its parent + and grandparent as successors. */ + p->red = 1; + gp->red = 1; + root->red = 0; + if (p_r < 0) + { + /* Child is left of parent. */ + p->left = *rp; + *rp = p; + gp->right = *lp; + *lp = gp; + } + else + { + /* Child is right of parent. */ + p->right = *lp; + *lp = p; + gp->left = *rp; + *rp = gp; + } + *gparentp = root; + } + else + { + *gparentp = *parentp; + /* Parent becomes the top of the tree, grandparent and + child are its successors. */ + p->red = 0; + gp->red = 1; + if (p_r < 0) + { + /* Left edges. */ + gp->left = p->right; + p->right = gp; + } + else + { + /* Right edges. */ + gp->right = p->left; + p->left = gp; + } + } + } } } @@ -284,16 +284,16 @@ node root = *rootp; r = (*compar) (key, root->key); if (r == 0) - return root; + return root; maybe_split_for_insert (rootp, parentp, gparentp, p_r, gp_r, 0); /* If that did any rotations, parentp and gparentp are now garbage. - That doesn't matter, because the values they contain are never - used again in that case. */ + That doesn't matter, because the values they contain are never + used again in that case. */ nextp = r < 0 ? &root->left : &root->right; if (*nextp == NULL) - break; + break; gparentp = parentp; parentp = rootp; @@ -306,15 +306,15 @@ q = (struct node_t *) malloc (sizeof (struct node_t)); if (q != NULL) { - *nextp = q; /* link new node to old */ - q->key = key; /* initialize new node */ + *nextp = q; /* link new node to old */ + q->key = key; /* initialize new node */ q->red = 1; q->left = q->right = NULL; if (nextp != rootp) - /* There may be two red edges in a row now, which we must avoid by - rotating the tree. */ - maybe_split_for_insert (nextp, rootp, parentp, r, p_r, 1); + /* There may be two red edges in a row now, which we must avoid by + rotating the tree. */ + maybe_split_for_insert (nextp, rootp, parentp, r, p_r, 1); } return q; @@ -347,7 +347,7 @@ r = (*compar) (key, root->key); if (r == 0) - return root; + return root; rootp = r < 0 ? &root->left : &root->right; } @@ -386,15 +386,15 @@ while ((cmp = (*compar) (key, (*rootp)->key)) != 0) { if (sp == stacksize) - abort (); + abort (); nodestack[sp++] = rootp; p = *rootp; rootp = ((cmp < 0) - ? &(*rootp)->left - : &(*rootp)->right); + ? &(*rootp)->left + : &(*rootp)->right); if (*rootp == NULL) - return NULL; + return NULL; } /* This is bogus if the node to be deleted is the root... this routine @@ -417,15 +417,15 @@ { node *parent = rootp, *up = &root->right; for (;;) - { - if (sp == stacksize) - abort (); - nodestack[sp++] = parent; - parent = up; - if ((*up)->left == NULL) - break; - up = &(*up)->left; - } + { + if (sp == stacksize) + abort (); + nodestack[sp++] = parent; + parent = up; + if ((*up)->left == NULL) + break; + up = &(*up)->left; + } unchained = *up; } @@ -440,9 +440,9 @@ { q = *nodestack[sp-1]; if (unchained == q->right) - q->right = r; + q->right = r; else - q->left = r; + q->left = r; } if (unchained != root) @@ -450,156 +450,156 @@ if (!unchained->red) { /* Now we lost a black edge, which means that the number of black - edges on every path is no longer constant. We must balance the - tree. */ + edges on every path is no longer constant. We must balance the + tree. */ /* NODESTACK now contains all parents of R. R is likely to be NULL - in the first iteration. */ + in the first iteration. */ /* NULL nodes are considered black throughout - this is necessary for - correctness. */ + correctness. */ while (sp > 0 && (r == NULL || !r->red)) - { - node *pp = nodestack[sp - 1]; - p = *pp; - /* Two symmetric cases. */ - if (r == p->left) - { - /* Q is R's brother, P is R's parent. The subtree with root - R has one black edge less than the subtree with root Q. */ - q = p->right; - if (q->red) - { - /* If Q is red, we know that P is black. We rotate P left - so that Q becomes the top node in the tree, with P below - it. P is colored red, Q is colored black. - This action does not change the black edge count for any - leaf in the tree, but we will be able to recognize one - of the following situations, which all require that Q - is black. */ - q->red = 0; - p->red = 1; - /* Left rotate p. */ - p->right = q->left; - q->left = p; - *pp = q; - /* Make sure pp is right if the case below tries to use - it. */ - nodestack[sp++] = pp = &q->left; - q = p->right; - } - /* We know that Q can't be NULL here. We also know that Q is - black. */ - if ((q->left == NULL || !q->left->red) - && (q->right == NULL || !q->right->red)) - { - /* Q has two black successors. We can simply color Q red. - The whole subtree with root P is now missing one black - edge. Note that this action can temporarily make the - tree invalid (if P is red). But we will exit the loop - in that case and set P black, which both makes the tree - valid and also makes the black edge count come out - right. If P is black, we are at least one step closer - to the root and we'll try again the next iteration. */ - q->red = 1; - r = p; - } - else - { - /* Q is black, one of Q's successors is red. We can - repair the tree with one operation and will exit the - loop afterwards. */ - if (q->right == NULL || !q->right->red) - { - /* The left one is red. We perform the same action as - in maybe_split_for_insert where two red edges are - adjacent but point in different directions: - Q's left successor (let's call it Q2) becomes the - top of the subtree we are looking at, its parent (Q) - and grandparent (P) become its successors. The former - successors of Q2 are placed below P and Q. - P becomes black, and Q2 gets the color that P had. - This changes the black edge count only for node R and - its successors. */ - node q2 = q->left; - q2->red = p->red; - p->right = q2->left; - q->left = q2->right; - q2->right = q; - q2->left = p; - *pp = q2; - p->red = 0; - } - else - { - /* It's the right one. Rotate P left. P becomes black, - and Q gets the color that P had. Q's right successor - also becomes black. This changes the black edge - count only for node R and its successors. */ - q->red = p->red; - p->red = 0; - - q->right->red = 0; - - /* left rotate p */ - p->right = q->left; - q->left = p; - *pp = q; - } - - /* We're done. */ - sp = 1; - r = NULL; - } - } - else - { - /* Comments: see above. */ - q = p->left; - if (q->red) - { - q->red = 0; - p->red = 1; - p->left = q->right; - q->right = p; - *pp = q; - nodestack[sp++] = pp = &q->right; - q = p->left; - } - if ((q->right == NULL || !q->right->red) - && (q->left == NULL || !q->left->red)) - { - q->red = 1; - r = p; - } - else - { - if (q->left == NULL || !q->left->red) - { - node q2 = q->right; - q2->red = p->red; - p->left = q2->right; - q->right = q2->left; - q2->left = q; - q2->right = p; - *pp = q2; - p->red = 0; - } - else - { - q->red = p->red; - p->red = 0; - q->left->red = 0; - p->left = q->right; - q->right = p; - *pp = q; - } - sp = 1; - r = NULL; - } - } - --sp; - } + { + node *pp = nodestack[sp - 1]; + p = *pp; + /* Two symmetric cases. */ + if (r == p->left) + { + /* Q is R's brother, P is R's parent. The subtree with root + R has one black edge less than the subtree with root Q. */ + q = p->right; + if (q->red) + { + /* If Q is red, we know that P is black. We rotate P left + so that Q becomes the top node in the tree, with P below + it. P is colored red, Q is colored black. + This action does not change the black edge count for any + leaf in the tree, but we will be able to recognize one + of the following situations, which all require that Q + is black. */ + q->red = 0; + p->red = 1; + /* Left rotate p. */ + p->right = q->left; + q->left = p; + *pp = q; + /* Make sure pp is right if the case below tries to use + it. */ + nodestack[sp++] = pp = &q->left; + q = p->right; + } + /* We know that Q can't be NULL here. We also know that Q is + black. */ + if ((q->left == NULL || !q->left->red) + && (q->right == NULL || !q->right->red)) + { + /* Q has two black successors. We can simply color Q red. + The whole subtree with root P is now missing one black + edge. Note that this action can temporarily make the + tree invalid (if P is red). But we will exit the loop + in that case and set P black, which both makes the tree + valid and also makes the black edge count come out + right. If P is black, we are at least one step closer + to the root and we'll try again the next iteration. */ + q->red = 1; + r = p; + } + else + { + /* Q is black, one of Q's successors is red. We can + repair the tree with one operation and will exit the + loop afterwards. */ + if (q->right == NULL || !q->right->red) + { + /* The left one is red. We perform the same action as + in maybe_split_for_insert where two red edges are + adjacent but point in different directions: + Q's left successor (let's call it Q2) becomes the + top of the subtree we are looking at, its parent (Q) + and grandparent (P) become its successors. The former + successors of Q2 are placed below P and Q. + P becomes black, and Q2 gets the color that P had. + This changes the black edge count only for node R and + its successors. */ + node q2 = q->left; + q2->red = p->red; + p->right = q2->left; + q->left = q2->right; + q2->right = q; + q2->left = p; + *pp = q2; + p->red = 0; + } + else + { + /* It's the right one. Rotate P left. P becomes black, + and Q gets the color that P had. Q's right successor + also becomes black. This changes the black edge + count only for node R and its successors. */ + q->red = p->red; + p->red = 0; + + q->right->red = 0; + + /* left rotate p */ + p->right = q->left; + q->left = p; + *pp = q; + } + + /* We're done. */ + sp = 1; + r = NULL; + } + } + else + { + /* Comments: see above. */ + q = p->left; + if (q->red) + { + q->red = 0; + p->red = 1; + p->left = q->right; + q->right = p; + *pp = q; + nodestack[sp++] = pp = &q->right; + q = p->left; + } + if ((q->right == NULL || !q->right->red) + && (q->left == NULL || !q->left->red)) + { + q->red = 1; + r = p; + } + else + { + if (q->left == NULL || !q->left->red) + { + node q2 = q->right; + q2->red = p->red; + p->left = q2->right; + q->right = q2->left; + q2->left = q; + q2->right = p; + *pp = q2; + p->red = 0; + } + else + { + q->red = p->red; + p->red = 0; + q->left->red = 0; + p->left = q->right; + q->right = p; + *pp = q; + } + sp = 1; + r = NULL; + } + } + --sp; + } if (r != NULL) - r->red = 0; + r->red = 0; } free (unchained); @@ -625,10 +625,10 @@ { (*action) (root, preorder, level); if (root->left != NULL) - trecurse (root->left, action, level + 1); + trecurse (root->left, action, level + 1); (*action) (root, postorder, level); if (root->right != NULL) - trecurse (root->right, action, level + 1); + trecurse (root->right, action, level + 1); (*action) (root, endorder, level); } } diff -Nru gettext-0.17/gettext-runtime/intl/tsearch.h gettext-0.18.1.1/gettext-runtime/intl/tsearch.h --- gettext-0.17/gettext-runtime/intl/tsearch.h 2007-01-27 03:17:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/tsearch.h 2010-06-06 12:49:57.000000000 +0000 @@ -47,18 +47,18 @@ If one is found, it is returned. Otherwise, a new element equal to KEY is inserted in the tree and is returned. */ extern void * tsearch (const void *key, void **vrootp, - int (*compar) (const void *, const void *)); + int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is returned. Otherwise, NULL is returned. */ extern void * tfind (const void *key, void *const *vrootp, - int (*compar) (const void *, const void *)); + int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is removed from the tree, and its parent node is returned. Otherwise, NULL is returned. */ extern void * tdelete (const void *key, void **vrootp, - int (*compar) (const void *, const void *)); + int (*compar) (const void *, const void *)); /* Perform a depth-first, left-to-right traversal of the tree VROOT. The ACTION function is called: @@ -72,7 +72,7 @@ 2. an indicator which visit of the node this is, 3. the level of the node in the tree (0 for the root). */ extern void twalk (const void *vroot, - void (*action) (const void *, VISIT, int)); + void (*action) (const void *, VISIT, int)); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-runtime/intl/vasnprintf.c gettext-0.18.1.1/gettext-runtime/intl/vasnprintf.c --- gettext-0.17/gettext-runtime/intl/vasnprintf.c 2007-11-05 23:46:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/vasnprintf.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 1999, 2002-2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -68,13 +68,13 @@ # endif #endif -#include /* localeconv() */ -#include /* snprintf(), sprintf() */ -#include /* abort(), malloc(), realloc(), free() */ -#include /* memcpy(), strlen() */ -#include /* errno */ -#include /* CHAR_BIT */ -#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ +#include /* localeconv() */ +#include /* snprintf(), sprintf() */ +#include /* abort(), malloc(), realloc(), free() */ +#include /* memcpy(), strlen() */ +#include /* errno */ +#include /* CHAR_BIT */ +#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif @@ -96,7 +96,7 @@ #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL @@ -107,7 +107,7 @@ #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" # include "printf-frexp.h" #endif @@ -118,34 +118,6 @@ # include "fpucw.h" #endif -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - -#if HAVE_WCHAR_T -# if HAVE_WCSLEN -# define local_wcslen wcslen -# else - /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid - a dependency towards this library, here is a local substitute. - Define this substitute only once, even if this file is included - twice in the same compilation unit. */ -# ifndef local_wcslen_defined -# define local_wcslen_defined 1 -static size_t -local_wcslen (const wchar_t *s) -{ - const wchar_t *ptr; - - for (ptr = s; *ptr != (wchar_t) 0; ptr++) - ; - return ptr - s; -} -# endif -# endif -#endif - /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION @@ -158,6 +130,7 @@ # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy +# define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char @@ -168,6 +141,7 @@ # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy +# define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION @@ -175,25 +149,40 @@ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than - on Unix; we use the _snwprintf() function instead. */ -# define SNPRINTF _snwprintf + on Unix; we use the function _snwprintf() or - on mingw - snwprintf() + instead. The mingw function snwprintf() has fewer bugs than the + MSVCRT function _snwprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snwprintf +# else +# define SNPRINTF _snwprintf +# endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ -# /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. + /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the - size argument is >= 0x3000000. */ -# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ + size argument is >= 0x3000000. + Also don't use it on Linux libc5, since there snprintf with size = 1 + writes any output without bounds, like sprintf. */ +# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF - /* Windows. */ -# define SNPRINTF _snprintf + /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT + function _snprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snprintf + /* Here we need to call the native snprintf, not rpl_snprintf. */ +# undef snprintf +# else +# define SNPRINTF _snprintf +# endif # else /* Unix. */ # define SNPRINTF snprintf @@ -204,19 +193,92 @@ /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf -#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +/* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" + warnings in this file. Use -Dlint to suppress them. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +/* Avoid some warnings from "gcc -Wshadow". + This file doesn't use the exp() and remainder() functions. */ +#undef exp +#define exp expo +#undef remainder +#define remainder rem + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION +# if (HAVE_STRNLEN && !defined _AIX) +# define local_strnlen strnlen +# else +# ifndef local_strnlen_defined +# define local_strnlen_defined 1 +static size_t +local_strnlen (const char *string, size_t maxlen) +{ + const char *end = memchr (string, '\0', maxlen); + return end ? (size_t) (end - string) : maxlen; +} +# endif +# endif +#endif + +#if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T +# if HAVE_WCSLEN +# define local_wcslen wcslen +# else + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid + a dependency towards this library, here is a local substitute. + Define this substitute only once, even if this file is included + twice in the same compilation unit. */ +# ifndef local_wcslen_defined +# define local_wcslen_defined 1 +static size_t +local_wcslen (const wchar_t *s) +{ + const wchar_t *ptr; + + for (ptr = s; *ptr != (wchar_t) 0; ptr++) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION +# if HAVE_WCSNLEN +# define local_wcsnlen wcsnlen +# else +# ifndef local_wcsnlen_defined +# define local_wcsnlen_defined 1 +static size_t +local_wcsnlen (const wchar_t *s, size_t maxlen) +{ + const wchar_t *ptr; + + for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char -decimal_point_char () +decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is - multithread-safe on glibc systems, but is not required to be multithread- - safe by POSIX. sprintf(), however, is multithread-safe. localeconv() - is rarely multithread-safe. */ -# if HAVE_NL_LANGINFO && __GLIBC__ + multithread-safe on glibc systems and MacOS X systems, but is not required + to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. + localeconv() is rarely multithread-safe. */ +# if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; @@ -237,18 +299,18 @@ static int is_infinite_or_zero (double x) { - return isnan (x) || x + x == x; + return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL -/* Equivalent to !isfinite(x), but does not require libm. */ +/* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int -is_infinitel (long double x) +is_infinite_or_zerol (long double x) { - return isnanl (x) || (x + x == x && x != 0.0L); + return isnanl (x) || x + x == x; } #endif @@ -316,26 +378,26 @@ dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) - return NULL; + return NULL; for (k = len2; k > 0; ) - dp[--k] = 0; + dp[--k] = 0; for (i = 0; i < len1; i++) - { - mp_limb_t digit1 = p1[i]; - mp_twolimb_t carry = 0; - for (j = 0; j < len2; j++) - { - mp_limb_t digit2 = p2[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - carry += dp[i + j]; - dp[i + j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - dp[i + len2] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = p1[i]; + mp_twolimb_t carry = 0; + for (j = 0; j < len2; j++) + { + mp_limb_t digit2 = p2[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + carry += dp[i + j]; + dp[i + j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + dp[i + len2] = (mp_limb_t) carry; + } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) - dlen--; + dlen--; dest->nlimbs = dlen; dest->limbs = dp; } @@ -365,7 +427,7 @@ Normalise [q[m-1],...,q[0]], yields q. If m>=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). - s:=intDsize-1-(hightest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} @@ -429,12 +491,12 @@ for (;;) { if (b_len == 0) - /* Division by zero. */ - abort (); + /* Division by zero. */ + abort (); if (b_ptr[b_len - 1] == 0) - b_len--; + b_len--; else - break; + break; } /* Here m = a_len >= 0 and n = b_len > 0. */ @@ -451,261 +513,261 @@ else if (b_len == 1) { /* n=1: single precision division. - beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ + beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { - mp_limb_t den = b_ptr[0]; - mp_limb_t remainder = 0; - const mp_limb_t *sourceptr = a_ptr + a_len; - mp_limb_t *destptr = q_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; - *--destptr = num / den; - remainder = num % den; - } - /* Normalise and store r. */ - if (remainder > 0) - { - r_ptr[0] = remainder; - r_len = 1; - } - else - r_len = 0; - /* Normalise q. */ - q_len = a_len; - if (q_ptr[q_len - 1] == 0) - q_len--; + mp_limb_t den = b_ptr[0]; + mp_limb_t remainder = 0; + const mp_limb_t *sourceptr = a_ptr + a_len; + mp_limb_t *destptr = q_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; + *--destptr = num / den; + remainder = num % den; + } + /* Normalise and store r. */ + if (remainder > 0) + { + r_ptr[0] = remainder; + r_len = 1; + } + else + r_len = 0; + /* Normalise q. */ + q_len = a_len; + if (q_ptr[q_len - 1] == 0) + q_len--; } } else { /* n>1: multiple precision division. - beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> - beta^(m-n-1) <= a/b < beta^(m-n+1). */ + beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> + beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { - mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ - s = 31; - if (msd >= 0x10000) - { - msd = msd >> 16; - s -= 16; - } - if (msd >= 0x100) - { - msd = msd >> 8; - s -= 8; - } - if (msd >= 0x10) - { - msd = msd >> 4; - s -= 4; - } - if (msd >= 0x4) - { - msd = msd >> 2; - s -= 2; - } - if (msd >= 0x2) - { - msd = msd >> 1; - s -= 1; - } + mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ + s = 31; + if (msd >= 0x10000) + { + msd = msd >> 16; + s -= 16; + } + if (msd >= 0x100) + { + msd = msd >> 8; + s -= 8; + } + if (msd >= 0x10) + { + msd = msd >> 4; + s -= 4; + } + if (msd >= 0x4) + { + msd = msd >> 2; + s -= 2; + } + if (msd >= 0x2) + { + msd = msd >> 1; + s -= 1; + } } /* 0 <= s < GMP_LIMB_BITS. - Copy b, shifting it left by s bits. */ + Copy b, shifting it left by s bits. */ if (s > 0) - { - tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); - if (tmp_roomptr == NULL) - { - free (roomptr); - return NULL; - } - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = tmp_roomptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - /* accu must be zero, since that was how s was determined. */ - if (accu != 0) - abort (); - } - b_ptr = tmp_roomptr; - } + { + tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); + if (tmp_roomptr == NULL) + { + free (roomptr); + return NULL; + } + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = tmp_roomptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + /* accu must be zero, since that was how s was determined. */ + if (accu != 0) + abort (); + } + b_ptr = tmp_roomptr; + } /* Copy a, shifting it left by s bits, yields r. - Memory layout: - At the beginning: r = roomptr[0..a_len], - at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ + Memory layout: + At the beginning: r = roomptr[0..a_len], + at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) - { - memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); - r_ptr[a_len] = 0; - } + { + memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); + r_ptr[a_len] = 0; + } else - { - const mp_limb_t *sourceptr = a_ptr; - mp_limb_t *destptr = r_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = a_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - *destptr++ = (mp_limb_t) accu; - } + { + const mp_limb_t *sourceptr = a_ptr; + mp_limb_t *destptr = r_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = a_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + *destptr++ = (mp_limb_t) accu; + } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { - size_t j = a_len - b_len; /* m-n */ - mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ - mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ - mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ - ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; - /* Division loop, traversed m-n+1 times. - j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ - for (;;) - { - mp_limb_t q_star; - mp_limb_t c1; - if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ - { - /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ - mp_twolimb_t num = - ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) - | r_ptr[j + b_len - 1]; - q_star = num / b_msd; - c1 = num % b_msd; - } - else - { - /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ - q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ - /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta - <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta - <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) - {<= beta !}. - If yes, jump directly to the subtraction loop. - (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta - <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ - if (r_ptr[j + b_len] > b_msd - || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) - /* r[j+n] >= b[n-1]+1 or - r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a - carry. */ - goto subtract; - } - /* q_star = q*, - c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by - b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 - this can happen only twice. */ - if (c3 > c2) - { - q_star = q_star - 1; /* q* := q* - 1 */ - if (c3 - c2 > b_msdd) - q_star = q_star - 1; /* q* := q* - 1 */ - } - } - if (q_star > 0) - subtract: - { - /* Subtract r := r - b * q* * beta^j. */ - mp_limb_t cr; - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_twolimb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - /* Here 0 <= carry <= q*. */ - carry = - carry - + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ - + (mp_limb_t) ~(*destptr); - /* Here 0 <= carry <= beta*q* + beta-1. */ - *destptr++ = ~(mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; /* <= q* */ - } - cr = (mp_limb_t) carry; - } - /* Subtract cr from r_ptr[j + b_len], then forget about - r_ptr[j + b_len]. */ - if (cr > r_ptr[j + b_len]) - { - /* Subtraction gave a carry. */ - q_star = q_star - 1; /* q* := q* - 1 */ - /* Add b back. */ - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_limb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - mp_limb_t source1 = *sourceptr++; - mp_limb_t source2 = *destptr; - *destptr++ = source1 + source2 + carry; - carry = - (carry - ? source1 >= (mp_limb_t) ~source2 - : source1 > (mp_limb_t) ~source2); - } - } - /* Forget about the carry and about r[j+n]. */ - } - } - /* q* is determined. Store it as q[j]. */ - q_ptr[j] = q_star; - if (j == 0) - break; - j--; - } + size_t j = a_len - b_len; /* m-n */ + mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ + mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ + mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ + ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; + /* Division loop, traversed m-n+1 times. + j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ + for (;;) + { + mp_limb_t q_star; + mp_limb_t c1; + if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ + { + /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ + mp_twolimb_t num = + ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) + | r_ptr[j + b_len - 1]; + q_star = num / b_msd; + c1 = num % b_msd; + } + else + { + /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ + q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ + /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta + <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta + <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) + {<= beta !}. + If yes, jump directly to the subtraction loop. + (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta + <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ + if (r_ptr[j + b_len] > b_msd + || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) + /* r[j+n] >= b[n-1]+1 or + r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a + carry. */ + goto subtract; + } + /* q_star = q*, + c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by + b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 + this can happen only twice. */ + if (c3 > c2) + { + q_star = q_star - 1; /* q* := q* - 1 */ + if (c3 - c2 > b_msdd) + q_star = q_star - 1; /* q* := q* - 1 */ + } + } + if (q_star > 0) + subtract: + { + /* Subtract r := r - b * q* * beta^j. */ + mp_limb_t cr; + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_twolimb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + /* Here 0 <= carry <= q*. */ + carry = + carry + + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + + (mp_limb_t) ~(*destptr); + /* Here 0 <= carry <= beta*q* + beta-1. */ + *destptr++ = ~(mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; /* <= q* */ + } + cr = (mp_limb_t) carry; + } + /* Subtract cr from r_ptr[j + b_len], then forget about + r_ptr[j + b_len]. */ + if (cr > r_ptr[j + b_len]) + { + /* Subtraction gave a carry. */ + q_star = q_star - 1; /* q* := q* - 1 */ + /* Add b back. */ + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_limb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + mp_limb_t source1 = *sourceptr++; + mp_limb_t source2 = *destptr; + *destptr++ = source1 + source2 + carry; + carry = + (carry + ? source1 >= (mp_limb_t) ~source2 + : source1 > (mp_limb_t) ~source2); + } + } + /* Forget about the carry and about r[j+n]. */ + } + } + /* q* is determined. Store it as q[j]. */ + q_ptr[j] = q_star; + if (j == 0) + break; + j--; + } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) - q_len--; + q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and - b is shifted left by s bits. */ + b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) - { - mp_limb_t ptr = r_ptr + r_len; - mp_twolimb_t accu = 0; - size_t count; - for (count = r_len; count > 0; count--) - { - accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; - accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); - *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); - } - } + { + mp_limb_t ptr = r_ptr + r_len; + mp_twolimb_t accu = 0; + size_t count; + for (count = r_len; count > 0; count--) + { + accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; + accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); + *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); + } + } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) - r_len--; + r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) @@ -714,17 +776,17 @@ size_t i; for (i = b_len;;) { - mp_limb_t r_i = - (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) - | (i < r_len ? r_ptr[i] << 1 : 0); - mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); - if (r_i > b_i) - goto increment_q; - if (r_i < b_i) - goto keep_q; - if (i == 0) - break; - i--; + mp_limb_t r_i = + (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) + | (i < r_len ? r_ptr[i] << 1 : 0); + mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); + if (r_i > b_i) + goto increment_q; + if (r_i < b_i) + goto keep_q; + if (i == 0) + break; + i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) @@ -733,8 +795,8 @@ { size_t i; for (i = 0; i < q_len; i++) - if (++(q_ptr[i]) != 0) - goto keep_q; + if (++(q_ptr[i]) != 0) + goto keep_q; q_ptr[q_len++] = 1; } keep_q: @@ -763,36 +825,36 @@ { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) - *d_ptr++ = '0'; + *d_ptr++ = '0'; while (a_len > 0) - { - /* Divide a by 10^9, in-place. */ - mp_limb_t remainder = 0; - mp_limb_t *ptr = a_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; - *ptr = num / 1000000000; - remainder = num % 1000000000; - } - /* Store the remainder as 9 decimal digits. */ - for (count = 9; count > 0; count--) - { - *d_ptr++ = '0' + (remainder % 10); - remainder = remainder / 10; - } - /* Normalize a. */ - if (a_ptr[a_len - 1] == 0) - a_len--; - } + { + /* Divide a by 10^9, in-place. */ + mp_limb_t remainder = 0; + mp_limb_t *ptr = a_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; + *ptr = num / 1000000000; + remainder = num % 1000000000; + } + /* Store the remainder as 9 decimal digits. */ + for (count = 9; count > 0; count--) + { + *d_ptr++ = '0' + (remainder % 10); + remainder = remainder / 10; + } + /* Normalize a. */ + if (a_ptr[a_len - 1] == 0) + a_len--; + } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') - d_ptr--; + d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) - *d_ptr++ = '0'; + *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } @@ -837,12 +899,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -852,7 +914,7 @@ d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -864,16 +926,19 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } +#if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess + precision. */ if (!(y == 0.0L)) abort (); +#endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; @@ -922,12 +987,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -937,7 +1002,7 @@ d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -949,12 +1014,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) @@ -1012,8 +1077,8 @@ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 - + abs_s / GMP_LIMB_BITS + 1) - * sizeof (mp_limb_t)); + + abs_s / GMP_LIMB_BITS + 1) + * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); @@ -1026,26 +1091,26 @@ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = - { - 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, - 48828125, 244140625, 1220703125 - }; + { + 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, + 48828125, 244140625, 1220703125 + }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) - { - mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; - size_t j; - mp_twolimb_t carry = 0; - for (j = 0; j < pow5_len; j++) - { - mp_limb_t digit2 = pow5_ptr[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - pow5_ptr[j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - if (carry > 0) - pow5_ptr[pow5_len++] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; + size_t j; + mp_twolimb_t carry = 0; + for (j = 0; j < pow5_len; j++) + { + mp_limb_t digit2 = pow5_ptr[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + pow5_ptr[j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + if (carry > 0) + pow5_ptr[pow5_len++] = (mp_limb_t) carry; + } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; @@ -1053,129 +1118,129 @@ { /* Multiply with 2^|s|. */ if (s_bits > 0) - { - mp_limb_t *ptr = pow5_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = pow5_len; count > 0; count--) - { - accu += (mp_twolimb_t) *ptr << s_bits; - *ptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - { - *ptr = (mp_limb_t) accu; - pow5_len++; - } - } + { + mp_limb_t *ptr = pow5_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = pow5_len; count > 0; count--) + { + accu += (mp_twolimb_t) *ptr << s_bits; + *ptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + { + *ptr = (mp_limb_t) accu; + pow5_len++; + } + } if (s_limbs > 0) - { - size_t count; - for (count = pow5_len; count > 0;) - { - count--; - pow5_ptr[s_limbs + count] = pow5_ptr[count]; - } - for (count = s_limbs; count > 0;) - { - count--; - pow5_ptr[count] = 0; - } - pow5_len += s_limbs; - } + { + size_t count; + for (count = pow5_len; count > 0;) + { + count--; + pow5_ptr[s_limbs + count] = pow5_ptr[count]; + } + for (count = s_limbs; count > 0;) + { + count--; + pow5_ptr[count] = 0; + } + pow5_len += s_limbs; + } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* Multiply m with pow5. No division needed. */ - z_memory = multiply (m, pow5, &z); - } + { + /* Multiply m with pow5. No division needed. */ + z_memory = multiply (m, pow5, &z); + } else - { - /* Divide m by pow5 and round. */ - z_memory = divide (m, pow5, &z); - } + { + /* Divide m by pow5 and round. */ + z_memory = divide (m, pow5, &z); + } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* n >= 0, s < 0. - Multiply m with pow5, then divide by 2^|s|. */ - mpn_t numerator; - mpn_t denominator; - void *tmp_memory; - tmp_memory = multiply (m, pow5, &numerator); - if (tmp_memory == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - /* Construct 2^|s|. */ - { - mp_limb_t *ptr = pow5_ptr + pow5_len; - size_t i; - for (i = 0; i < s_limbs; i++) - ptr[i] = 0; - ptr[s_limbs] = (mp_limb_t) 1 << s_bits; - denominator.limbs = ptr; - denominator.nlimbs = s_limbs + 1; - } - z_memory = divide (numerator, denominator, &z); - free (tmp_memory); - } + { + /* n >= 0, s < 0. + Multiply m with pow5, then divide by 2^|s|. */ + mpn_t numerator; + mpn_t denominator; + void *tmp_memory; + tmp_memory = multiply (m, pow5, &numerator); + if (tmp_memory == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + /* Construct 2^|s|. */ + { + mp_limb_t *ptr = pow5_ptr + pow5_len; + size_t i; + for (i = 0; i < s_limbs; i++) + ptr[i] = 0; + ptr[s_limbs] = (mp_limb_t) 1 << s_bits; + denominator.limbs = ptr; + denominator.nlimbs = s_limbs + 1; + } + z_memory = divide (numerator, denominator, &z); + free (tmp_memory); + } else - { - /* n < 0, s > 0. - Multiply m with 2^s, then divide by pow5. */ - mpn_t numerator; - mp_limb_t *num_ptr; - num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) - * sizeof (mp_limb_t)); - if (num_ptr == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - { - mp_limb_t *destptr = num_ptr; - { - size_t i; - for (i = 0; i < s_limbs; i++) - *destptr++ = 0; - } - if (s_bits > 0) - { - const mp_limb_t *sourceptr = m.limbs; - mp_twolimb_t accu = 0; - size_t count; - for (count = m.nlimbs; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s_bits; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - *destptr++ = (mp_limb_t) accu; - } - else - { - const mp_limb_t *sourceptr = m.limbs; - size_t count; - for (count = m.nlimbs; count > 0; count--) - *destptr++ = *sourceptr++; - } - numerator.limbs = num_ptr; - numerator.nlimbs = destptr - num_ptr; - } - z_memory = divide (numerator, pow5, &z); - free (num_ptr); - } + { + /* n < 0, s > 0. + Multiply m with 2^s, then divide by pow5. */ + mpn_t numerator; + mp_limb_t *num_ptr; + num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) + * sizeof (mp_limb_t)); + if (num_ptr == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + { + mp_limb_t *destptr = num_ptr; + { + size_t i; + for (i = 0; i < s_limbs; i++) + *destptr++ = 0; + } + if (s_bits > 0) + { + const mp_limb_t *sourceptr = m.limbs; + mp_twolimb_t accu = 0; + size_t count; + for (count = m.nlimbs; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s_bits; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + *destptr++ = (mp_limb_t) accu; + } + else + { + const mp_limb_t *sourceptr = m.limbs; + size_t count; + for (count = m.nlimbs; count > 0; count--) + *destptr++ = *sourceptr++; + } + numerator.limbs = num_ptr; + numerator.nlimbs = destptr - num_ptr; + } + z_memory = divide (numerator, pow5, &z); + free (num_ptr); + } } free (pow5_ptr); free (memory); @@ -1199,7 +1264,7 @@ static char * scale10_round_decimal_long_double (long double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1217,7 +1282,7 @@ static char * scale10_round_decimal_double (double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1247,35 +1312,35 @@ if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0L / (1 << 16))) - { - y *= 1.0L * (1 << 16); - exp -= 16; - } + { + y *= 1.0L * (1 << 16); + exp -= 16; + } if (y < (1.0L / (1 << 8))) - { - y *= 1.0L * (1 << 8); - exp -= 8; - } + { + y *= 1.0L * (1 << 8); + exp -= 8; + } if (y < (1.0L / (1 << 4))) - { - y *= 1.0L * (1 << 4); - exp -= 4; - } + { + y *= 1.0L * (1 << 4); + exp -= 4; + } if (y < (1.0L / (1 << 2))) - { - y *= 1.0L * (1 << 2); - exp -= 2; - } + { + y *= 1.0L * (1 << 2); + exp -= 2; + } if (y < (1.0L / (1 << 1))) - { - y *= 1.0L * (1 << 1); - exp -= 1; - } + { + y *= 1.0L * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5L && y < 1.0L)) abort (); @@ -1304,9 +1369,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1338,35 +1403,35 @@ if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0 / (1 << 16))) - { - y *= 1.0 * (1 << 16); - exp -= 16; - } + { + y *= 1.0 * (1 << 16); + exp -= 16; + } if (y < (1.0 / (1 << 8))) - { - y *= 1.0 * (1 << 8); - exp -= 8; - } + { + y *= 1.0 * (1 << 8); + exp -= 8; + } if (y < (1.0 / (1 << 4))) - { - y *= 1.0 * (1 << 4); - exp -= 4; - } + { + y *= 1.0 * (1 << 4); + exp -= 4; + } if (y < (1.0 / (1 << 2))) - { - y *= 1.0 * (1 << 2); - exp -= 2; - } + { + y *= 1.0 * (1 << 2); + exp -= 2; + } if (y < (1.0 / (1 << 1))) - { - y *= 1.0 * (1 << 1); - exp -= 1; - } + { + y *= 1.0 * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5 && y < 1.0)) abort (); @@ -1395,9 +1460,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1407,11 +1472,277 @@ # endif +/* Tests whether a string of digits consists of exactly PRECISION zeroes and + a single '1' digit. */ +static int +is_borderline (const char *digits, size_t precision) +{ + for (; precision > 0; precision--, digits++) + if (*digits != '0') + return 0; + if (*digits != '1') + return 0; + digits++; + return *digits == '\0'; +} + +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 + +/* Use a different function name, to make it possible that the 'wchar_t' + parametrization and the 'char' parametrization get compiled in the same + translation unit. */ +# if WIDE_CHAR_VERSION +# define MAX_ROOM_NEEDED wmax_room_needed +# else +# define MAX_ROOM_NEEDED max_room_needed +# endif + +/* Returns the number of TCHAR_T units needed as temporary space for the result + of sprintf or SNPRINTF of a single conversion directive. */ +static inline size_t +MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, + arg_type type, int flags, size_t width, int has_precision, + size_t precision, int pad_ourselves) +{ + size_t tmp_length; + + switch (conversion) + { + case 'd': case 'i': case 'u': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Multiply by 2, as an estimate for FLAG_GROUP. */ + tmp_length = xsum (tmp_length, tmp_length); + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'o': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'x': case 'X': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 2, to account for a leading sign or alternate form. */ + tmp_length = xsum (tmp_length, 2); + break; + + case 'f': case 'F': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + else + tmp_length = + (unsigned int) (DBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'e': case 'E': case 'g': case 'G': + tmp_length = + 12; /* sign, decimal point, exponent etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'a': case 'A': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (DBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + break; + + case 'c': +# if HAVE_WINT_T && !WIDE_CHAR_VERSION + if (type == TYPE_WIDE_CHAR) + tmp_length = MB_CUR_MAX; + else +# endif + tmp_length = 1; + break; + + case 's': +# if HAVE_WCHAR_T + if (type == TYPE_WIDE_STRING) + { +# if WIDE_CHAR_VERSION + /* ISO C says about %ls in fwprintf: + "If the precision is not specified or is greater than the size + of the array, the array shall contain a null wide character." + So if there is a precision, we must not use wcslen. */ + const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; + + if (has_precision) + tmp_length = local_wcsnlen (arg, precision); + else + tmp_length = local_wcslen (arg); +# else + /* ISO C says about %ls in fprintf: + "If a precision is specified, no more than that many bytes are + written (including shift sequences, if any), and the array + shall contain a null wide character if, to equal the multibyte + character sequence length given by the precision, the function + would need to access a wide character one past the end of the + array." + So if there is a precision, we must not use wcslen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# endif + } + else +# endif + { +# if WIDE_CHAR_VERSION + /* ISO C says about %s in fwprintf: + "If the precision is not specified or is greater than the size + of the converted array, the converted array shall contain a + null wide character." + So if there is a precision, we must not use strlen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# else + /* ISO C says about %s in fprintf: + "If the precision is not specified or greater than the size of + the array, the array shall contain a null character." + So if there is a precision, we must not use strlen. */ + const char *arg = ap->arg[arg_index].a.a_string; + + if (has_precision) + tmp_length = local_strnlen (arg, precision); + else + tmp_length = strlen (arg); +# endif + } + break; + + case 'p': + tmp_length = + (unsigned int) (sizeof (void *) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading 0x */ + break; + + default: + abort (); + } + + if (!pad_ourselves) + { +# if ENABLE_UNISTDIO + /* Padding considers the number of characters, therefore the number of + elements after padding may be + > max (tmp_length, width) + but is certainly + <= tmp_length + width. */ + tmp_length = xsum (tmp_length, width); +# else + /* Padding considers the number of elements, says POSIX. */ + if (tmp_length < width) + tmp_length = width; +# endif + } + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + return tmp_length; +} + #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, - const FCHAR_T *format, va_list args) + const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; @@ -1421,8 +1752,8 @@ return NULL; #define CLEANUP() \ - free (d.dir); \ - if (a.arg) \ + free (d.dir); \ + if (a.arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) @@ -1451,30 +1782,30 @@ #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { - buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); - buf_malloced = NULL; + buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); + buf_malloced = NULL; } else #endif { - size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); - if (size_overflow_p (buf_memsize)) - goto out_of_memory_1; - buf = (TCHAR_T *) malloc (buf_memsize); - if (buf == NULL) - goto out_of_memory_1; - buf_malloced = buf; + size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); + if (size_overflow_p (buf_memsize)) + goto out_of_memory_1; + buf = (TCHAR_T *) malloc (buf_memsize); + if (buf == NULL) + goto out_of_memory_1; + buf_malloced = buf; } if (resultbuf != NULL) { - result = resultbuf; - allocated = *lengthp; + result = resultbuf; + allocated = *lengthp; } else { - result = NULL; - allocated = 0; + result = NULL; + allocated = 0; } length = 0; /* Invariants: @@ -1484,3138 +1815,3694 @@ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ - if ((needed) > allocated) \ - { \ - size_t memory_size; \ - DCHAR_T *memory; \ - \ - allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ - if ((needed) > allocated) \ - allocated = (needed); \ - memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ - if (size_overflow_p (memory_size)) \ - goto out_of_memory; \ - if (result == resultbuf || result == NULL) \ - memory = (DCHAR_T *) malloc (memory_size); \ - else \ - memory = (DCHAR_T *) realloc (result, memory_size); \ - if (memory == NULL) \ - goto out_of_memory; \ - if (result == resultbuf && length > 0) \ - DCHAR_CPY (memory, result, length); \ - result = memory; \ + if ((needed) > allocated) \ + { \ + size_t memory_size; \ + DCHAR_T *memory; \ + \ + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ + if ((needed) > allocated) \ + allocated = (needed); \ + memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ + if (size_overflow_p (memory_size)) \ + goto out_of_memory; \ + if (result == resultbuf || result == NULL) \ + memory = (DCHAR_T *) malloc (memory_size); \ + else \ + memory = (DCHAR_T *) realloc (result, memory_size); \ + if (memory == NULL) \ + goto out_of_memory; \ + if (result == resultbuf && length > 0) \ + DCHAR_CPY (memory, result, length); \ + result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { - if (cp != dp->dir_start) - { - size_t n = dp->dir_start - cp; - size_t augmented_length = xsum (length, n); - - ENSURE_ALLOCATION (augmented_length); - /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we - need that the format string contains only ASCII characters - if FCHAR_T and DCHAR_T are not the same type. */ - if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) - { - DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); - length = augmented_length; - } - else - { - do - result[length++] = (unsigned char) *cp++; - while (--n > 0); - } - } - if (i == d.count) - break; - - /* Execute a single directive. */ - if (dp->conversion == '%') - { - size_t augmented_length; - - if (!(dp->arg_index == ARG_NONE)) - abort (); - augmented_length = xsum (length, 1); - ENSURE_ALLOCATION (augmented_length); - result[length] = '%'; - length = augmented_length; - } - else - { - if (!(dp->arg_index != ARG_NONE)) - abort (); - - if (dp->conversion == 'n') - { - switch (a.arg[dp->arg_index].type) - { - case TYPE_COUNT_SCHAR_POINTER: - *a.arg[dp->arg_index].a.a_count_schar_pointer = length; - break; - case TYPE_COUNT_SHORT_POINTER: - *a.arg[dp->arg_index].a.a_count_short_pointer = length; - break; - case TYPE_COUNT_INT_POINTER: - *a.arg[dp->arg_index].a.a_count_int_pointer = length; - break; - case TYPE_COUNT_LONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longint_pointer = length; - break; + if (cp != dp->dir_start) + { + size_t n = dp->dir_start - cp; + size_t augmented_length = xsum (length, n); + + ENSURE_ALLOCATION (augmented_length); + /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we + need that the format string contains only ASCII characters + if FCHAR_T and DCHAR_T are not the same type. */ + if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) + { + DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); + length = augmented_length; + } + else + { + do + result[length++] = (unsigned char) *cp++; + while (--n > 0); + } + } + if (i == d.count) + break; + + /* Execute a single directive. */ + if (dp->conversion == '%') + { + size_t augmented_length; + + if (!(dp->arg_index == ARG_NONE)) + abort (); + augmented_length = xsum (length, 1); + ENSURE_ALLOCATION (augmented_length); + result[length] = '%'; + length = augmented_length; + } + else + { + if (!(dp->arg_index != ARG_NONE)) + abort (); + + if (dp->conversion == 'n') + { + switch (a.arg[dp->arg_index].type) + { + case TYPE_COUNT_SCHAR_POINTER: + *a.arg[dp->arg_index].a.a_count_schar_pointer = length; + break; + case TYPE_COUNT_SHORT_POINTER: + *a.arg[dp->arg_index].a.a_count_short_pointer = length; + break; + case TYPE_COUNT_INT_POINTER: + *a.arg[dp->arg_index].a.a_count_int_pointer = length; + break; + case TYPE_COUNT_LONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longint_pointer = length; + break; #if HAVE_LONG_LONG_INT - case TYPE_COUNT_LONGLONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; - break; -#endif - default: - abort (); - } - } + case TYPE_COUNT_LONGLONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; + break; +#endif + default: + abort (); + } + } #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - else if (dp->conversion == 'U') - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - switch (type) - { - case TYPE_U8_STRING: - { - const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; - const uint8_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u8_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + /* The unistdio extensions. */ + else if (dp->conversion == 'U') + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + switch (type) + { + case TYPE_U8_STRING: + { + const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; + const uint8_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u8_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT8_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-8 to locale encoding. */ - if (u8_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-8 to locale encoding. */ + converted = + u8_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-8 to UTF-16/UTF-32. */ - converted = - U8_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-8 to UTF-16/UTF-32. */ + converted = + U8_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U16_STRING: - { - const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; - const uint16_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u16_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U16_STRING: + { + const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; + const uint16_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u16_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT16_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-16 to locale encoding. */ - if (u16_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-16 to locale encoding. */ + converted = + u16_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-16 to UTF-8/UTF-32. */ - converted = - U16_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-16 to UTF-8/UTF-32. */ + converted = + U16_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U32_STRING: - { - const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; - const uint32_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u32_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U32_STRING: + { + const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; + const uint32_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u32_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT32_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-32 to locale encoding. */ - if (u32_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-32 to locale encoding. */ + converted = + u32_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-32 to UTF-8/UTF-16. */ - converted = - U32_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-32 to UTF-8/UTF-16. */ + converted = + U32_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - default: - abort (); - } - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + default: + abort (); + } + } +#endif +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T + else if (dp->conversion == 's' +# if WIDE_CHAR_VERSION + && a.arg[dp->arg_index].type != TYPE_WIDE_STRING +# else + && a.arg[dp->arg_index].type == TYPE_WIDE_STRING +# endif + ) + { + /* The normal handling of the 's' directive below requires + allocating a temporary buffer. The determination of its + length (tmp_length), in the case when a precision is + specified, below requires a conversion between a char[] + string and a wchar_t[] wide string. It could be done, but + we have no guarantee that the implementation of sprintf will + use the exactly same algorithm. Without this guarantee, it + is possible to have buffer overrun bugs. In order to avoid + such bugs, we implement the entire processing of the 's' + directive ourselves. */ + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + +# if WIDE_CHAR_VERSION + /* %s in vasnwprintf. See the specification of fwprintf. */ + { + const char *arg = a.arg[dp->arg_index].a.a_string; + const char *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only as many bytes as needed to produce PRECISION + wide characters, from the left. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of wide + characters. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + + if (has_precision || has_width) + { + /* We know the number of wide characters in advance. */ + size_t remaining; +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; remaining--) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + result[length++] = wc; + arg += count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + ENSURE_ALLOCATION (xsum (length, 1)); + result[length++] = wc; + arg += count; + } + } + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# else + /* %ls in vasnprintf. See the specification of fprintf. */ + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + const wchar_t *arg_end; + size_t characters; +# if !DCHAR_IS_TCHAR + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; + TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; +# endif + size_t w; + + if (has_precision) + { + /* Use only as many wide characters as needed to produce + at most PRECISION bytes, from the left. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + while (precision > 0) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + if (precision < count) + break; + arg_end++; + characters += count; + precision -= count; + } + } +# if DCHAR_IS_TCHAR + else if (has_width) +# else + else +# endif + { + /* Use the entire string, and count the number of + bytes. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end++; + characters += count; + } + } +# if DCHAR_IS_TCHAR + else + { + /* Use the entire string. */ + arg_end = arg + local_wcslen (arg); + /* The number of bytes doesn't matter. */ + characters = 0; + } +# endif + +# if !DCHAR_IS_TCHAR + /* Convert the string into a piece of temporary memory. */ + tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); + if (tmpsrc == NULL) + goto out_of_memory; + { + TCHAR_T *tmpptr = tmpsrc; + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (tmpptr, cbuf, count); + tmpptr += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, characters, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + free (tmpsrc); + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + free (tmpsrc); +# endif + + if (has_width) + { +# if ENABLE_UNISTDIO + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, characters); +# else + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = characters; +# endif + } + else + /* w doesn't matter. */ + w = 0; + + if (has_width && width > w + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_TCHAR + if (has_precision || has_width) + { + /* We know the number of bytes in advance. */ + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (result + length, cbuf, count); + length += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, count)); + memcpy (result + length, cbuf, count); + length += count; + arg++; + } + } +# else + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + length += tmpdst_len; +# endif + + if (has_width && width > w + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# endif + } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'a' || dp->conversion == 'A') + else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) - && (0 + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif - ) + ) # endif - ) - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* Allocate a temporary buffer of sufficient size. */ - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) ((LDBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) ((DBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } - - pad_ptr = NULL; - p = tmp; - if (type == TYPE_LONGDOUBLE) - { + ) + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* Allocate a temporary buffer of sufficient size. */ + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) ((LDBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) ((DBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } + + pad_ptr = NULL; + p = tmp; + if (type == TYPE_LONGDOUBLE) + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE - long double arg = a.arg[dp->arg_index].a.a_longdouble; + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - long double mantissa; - - if (arg > 0.0L) - mantissa = printf_frexpl (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0L; - } - - if (has_precision - && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - long double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5L : tail > 0.5L) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0L; - } - if (tail != 0.0L) - for (q = precision; q > 0; q--) - tail *= 0.0625L; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0L || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0L) - { - mantissa *= 16.0L; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnanl (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + long double mantissa; + + if (arg > 0.0L) + mantissa = printf_frexpl (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0L; + } + + if (has_precision + && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + long double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5L : tail > 0.5L) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0L; + } + if (tail != 0.0L) + for (q = precision; q > 0; q--) + tail *= 0.0625L; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0L || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0L) + { + mantissa *= 16.0L; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } + END_LONG_DOUBLE_ROUNDING (); + } # else - abort (); + abort (); # endif - } - else - { + } + else + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE - double arg = a.arg[dp->arg_index].a.a_double; + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - double mantissa; - - if (arg > 0.0) - mantissa = printf_frexp (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0; - } - - if (has_precision - && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5 : tail > 0.5) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0; - } - if (tail != 0.0) - for (q = precision; q > 0; q--) - tail *= 0.0625; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0 || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0) - { - mantissa *= 16.0; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnand (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + double mantissa; + + if (arg > 0.0) + mantissa = printf_frexp (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0; + } + + if (has_precision + && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5 : tail > 0.5) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0; + } + if (tail != 0.0) + for (q = precision; q > 0; q--) + tail *= 0.0625; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0 || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0) + { + mantissa *= 16.0; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - } + } + } # else - abort (); + abort (); # endif - } - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } + } + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'f' || dp->conversion == 'F' - || dp->conversion == 'e' || dp->conversion == 'E' - || dp->conversion == 'g' || dp->conversion == 'G' - || dp->conversion == 'a' || dp->conversion == 'A') - && (0 + else if ((dp->conversion == 'f' || dp->conversion == 'F' + || dp->conversion == 'e' || dp->conversion == 'E' + || dp->conversion == 'g' || dp->conversion == 'G' + || dp->conversion == 'a' || dp->conversion == 'A') + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_DOUBLE - /* The systems (mingw) which produce wrong output - for Inf, -Inf, and NaN also do so for -0.0. - Therefore we treat this case here as well. */ - && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) + || (a.arg[dp->arg_index].type == TYPE_DOUBLE + /* The systems (mingw) which produce wrong output + for Inf, -Inf, and NaN also do so for -0.0. + Therefore we treat this case here as well. */ + && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE - /* Some systems produce wrong output for Inf, - -Inf, and NaN. */ - && is_infinitel (a.arg[dp->arg_index].a.a_longdouble)) + || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + /* Some systems produce wrong output for Inf, + -Inf, and NaN. Some systems in this category + (IRIX 5.3) also do so for -0.0. Therefore we + treat this case here as well. */ + && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif - )) - { + )) + { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) - arg_type type = a.arg[dp->arg_index].type; + arg_type type = a.arg[dp->arg_index].type; # endif - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* POSIX specifies the default precision to be 6 for %f, %F, - %e, %E, but not for %g, %G. Implementations appear to use - the same default precision also for %g, %G. */ - if (!has_precision) - precision = 6; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* POSIX specifies the default precision to be 6 for %f, %F, + %e, %E, but not for %g, %G. Implementations appear to use + the same default precision also for %g, %G. But for %a, %A, + the default precision is 0. */ + if (!has_precision) + if (!(dp->conversion == 'a' || dp->conversion == 'A')) + precision = 6; - /* Allocate a temporary buffer of sufficient size. */ + /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE - tmp_length = LDBL_DIG + 1; + tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE - tmp_length = DBL_DIG + 1; + tmp_length = DBL_DIG + 1; # else - tmp_length = 0; + tmp_length = 0; # endif - if (tmp_length < precision) - tmp_length = precision; + if (tmp_length < precision) + tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (!(isnanl (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10l (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + if (!(isnanl (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10l (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE - if (type == TYPE_DOUBLE) + if (type == TYPE_DOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - double arg = a.arg[dp->arg_index].a.a_double; - if (!(isnan (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10 (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } -# endif - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + double arg = a.arg[dp->arg_index].a.a_double; + if (!(isnand (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10 (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } +# endif + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } - pad_ptr = NULL; - p = tmp; + pad_ptr = NULL; + p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnanl (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_LONG_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_long_double (arg, precision); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0L) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0L. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)precision - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_long_double (arg, precision); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0L) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0L. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)precision - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0L) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0L. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0L) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0L. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - abort (); + /* arg is finite. */ + if (!(arg == 0.0L)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else if (dp->conversion == 'a' || dp->conversion == 'A') + { + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion - 'A' + 'P'; + *p++ = '+'; + *p++ = '0'; + } + else + abort (); # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } - } + END_LONG_DOUBLE_ROUNDING (); + } + } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - else + else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - { - double arg = a.arg[dp->arg_index].a.a_double; + { + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnand (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_double (arg, precision); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)precision - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_double (arg, precision); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)precision - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - if (!(arg == 0.0)) - abort (); - - pad_ptr = p; - - if (dp->conversion == 'f' || dp->conversion == 'F') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - *p++ = dp->conversion; /* 'e' or 'E' */ - *p++ = '+'; - /* Produce the same number of exponent digits as - the native printf implementation. */ + /* arg is finite. */ + if (!(arg == 0.0)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + /* Produce the same number of exponent digits as + the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *p++ = '0'; + *p++ = '0'; # endif - *p++ = '0'; - *p++ = '0'; - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - *p++ = '0'; - if (flags & FLAG_ALT) - { - size_t ndigits = - (precision > 0 ? precision - 1 : 0); - *p++ = decimal_point_char (); - for (; ndigits > 0; --ndigits) - *p++ = '0'; - } - } - else - abort (); + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else + abort (); # endif - } - } - } -# endif - - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } -#endif - else - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int has_width; - size_t width; -#endif -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - int has_precision; - size_t precision; + } + } + } +# endif + + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } +#endif + else + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int has_width; + size_t width; +#endif +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + int has_precision; + size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - int prec_ourselves; + int prec_ourselves; #else -# define prec_ourselves 0 +# define prec_ourselves 0 #endif -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int pad_ourselves; +#if NEED_PRINTF_FLAG_LEFTADJUST +# define pad_ourselves 1 +#elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int pad_ourselves; #else -# define pad_ourselves 0 +# define pad_ourselves 0 #endif - TCHAR_T *fbp; - unsigned int prefix_count; - int prefixes[2]; + TCHAR_T *fbp; + unsigned int prefix_count; + int prefixes[2] IF_LINT (= { 0 }); #if !USE_SNPRINTF - size_t tmp_length; - TCHAR_T tmpbuf[700]; - TCHAR_T *tmp; -#endif - -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } -#endif - -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - has_precision = 0; - precision = 6; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } + size_t tmp_length; + TCHAR_T tmpbuf[700]; + TCHAR_T *tmp; +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } #endif -#if !USE_SNPRINTF - /* Allocate a temporary buffer of sufficient size for calling - sprintf. */ - { - switch (dp->conversion) - { - - case 'd': case 'i': case 'u': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Multiply by 2, as an estimate for FLAG_GROUP. */ - tmp_length = xsum (tmp_length, tmp_length); - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'o': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'x': case 'X': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 2, to account for a leading sign or alternate form. */ - tmp_length = xsum (tmp_length, 2); - break; - - case 'f': case 'F': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - else - tmp_length = - (unsigned int) (DBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'e': case 'E': case 'g': case 'G': - tmp_length = - 12; /* sign, decimal point, exponent etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'a': case 'A': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (DBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - break; - - case 'c': -# if HAVE_WINT_T && !WIDE_CHAR_VERSION - if (type == TYPE_WIDE_CHAR) - tmp_length = MB_CUR_MAX; - else -# endif - tmp_length = 1; - break; - - case 's': -# if HAVE_WCHAR_T - if (type == TYPE_WIDE_STRING) - { - tmp_length = - local_wcslen (a.arg[dp->arg_index].a.a_wide_string); - -# if !WIDE_CHAR_VERSION - tmp_length = xtimes (tmp_length, MB_CUR_MAX); -# endif - } - else -# endif - tmp_length = strlen (a.arg[dp->arg_index].a.a_string); - break; - - case 'p': - tmp_length = - (unsigned int) (sizeof (void *) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1 /* turn floor into ceil */ - + 2; /* account for leading 0x */ - break; - - default: - abort (); - } - -# if ENABLE_UNISTDIO - /* Padding considers the number of characters, therefore the - number of elements after padding may be - > max (tmp_length, width) - but is certainly - <= tmp_length + width. */ - tmp_length = xsum (tmp_length, width); -# else - /* Padding considers the number of elements, says POSIX. */ - if (tmp_length < width) - tmp_length = width; -# endif - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - } - - if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (TCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } -#endif - - /* Decide whether to handle the precision ourselves. */ + /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { - case 'd': case 'i': case 'u': - case 'o': - case 'x': case 'X': case 'p': - prec_ourselves = has_precision && (precision > 0); - break; - default: - prec_ourselves = 0; - break; - } -#endif - - /* Decide whether to perform the padding ourselves. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { + switch (dp->conversion) + { + case 'd': case 'i': case 'u': + case 'o': + case 'x': case 'X': case 'p': + prec_ourselves = has_precision && (precision > 0); + break; + default: + prec_ourselves = 0; + break; + } +#endif + + /* Decide whether to perform the padding ourselves. */ +#if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) + switch (dp->conversion) + { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO - /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need - to perform the padding after this conversion. Functions - with unistdio extensions perform the padding based on - character count rather than element count. */ - case 'c': case 's': + /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need + to perform the padding after this conversion. Functions + with unistdio extensions perform the padding based on + character count rather than element count. */ + case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': # endif - pad_ourselves = 1; - break; - default: - pad_ourselves = prec_ourselves; - break; - } + pad_ourselves = 1; + break; + default: + pad_ourselves = prec_ourselves; + break; + } #endif - /* Construct the format string for calling snprintf or - sprintf. */ - fbp = buf; - *fbp++ = '%'; +#if !USE_SNPRINTF + /* Allocate a temporary buffer of sufficient size for calling + sprintf. */ + tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, + flags, width, has_precision, precision, + pad_ourselves); + + if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (TCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } +#endif + + /* Construct the format string for calling snprintf or + sprintf. */ + fbp = buf; + *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING - /* The underlying implementation doesn't support the ' flag. - Produce no grouping characters in this case; this is - acceptable because the grouping is locale dependent. */ + /* The underlying implementation doesn't support the ' flag. + Produce no grouping characters in this case; this is + acceptable because the grouping is locale dependent. */ #else - if (flags & FLAG_GROUP) - *fbp++ = '\''; + if (flags & FLAG_GROUP) + *fbp++ = '\''; #endif - if (flags & FLAG_LEFT) - *fbp++ = '-'; - if (flags & FLAG_SHOWSIGN) - *fbp++ = '+'; - if (flags & FLAG_SPACE) - *fbp++ = ' '; - if (flags & FLAG_ALT) - *fbp++ = '#'; - if (!pad_ourselves) - { - if (flags & FLAG_ZERO) - *fbp++ = '0'; - if (dp->width_start != dp->width_end) - { - size_t n = dp->width_end - dp->width_start; - /* The width specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->width_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } - if (!prec_ourselves) - { - if (dp->precision_start != dp->precision_end) - { - size_t n = dp->precision_end - dp->precision_start; - /* The precision specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->precision_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } + if (flags & FLAG_LEFT) + *fbp++ = '-'; + if (flags & FLAG_SHOWSIGN) + *fbp++ = '+'; + if (flags & FLAG_SPACE) + *fbp++ = ' '; + if (flags & FLAG_ALT) + *fbp++ = '#'; + if (!pad_ourselves) + { + if (flags & FLAG_ZERO) + *fbp++ = '0'; + if (dp->width_start != dp->width_end) + { + size_t n = dp->width_end - dp->width_start; + /* The width specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->width_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } + if (!prec_ourselves) + { + if (dp->precision_start != dp->precision_end) + { + size_t n = dp->precision_end - dp->precision_start; + /* The precision specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->precision_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } - switch (type) - { + switch (type) + { #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - case TYPE_ULONGLONGINT: + case TYPE_LONGLONGINT: + case TYPE_ULONGLONGINT: # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *fbp++ = 'I'; - *fbp++ = '6'; - *fbp++ = '4'; - break; + *fbp++ = 'I'; + *fbp++ = '6'; + *fbp++ = '4'; + break; # else - *fbp++ = 'l'; - /*FALLTHROUGH*/ + *fbp++ = 'l'; + /*FALLTHROUGH*/ # endif #endif - case TYPE_LONGINT: - case TYPE_ULONGINT: + case TYPE_LONGINT: + case TYPE_ULONGINT: #if HAVE_WINT_T - case TYPE_WIDE_CHAR: + case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: + case TYPE_WIDE_STRING: #endif - *fbp++ = 'l'; - break; - case TYPE_LONGDOUBLE: - *fbp++ = 'L'; - break; - default: - break; - } + *fbp++ = 'l'; + break; + case TYPE_LONGDOUBLE: + *fbp++ = 'L'; + break; + default: + break; + } #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - *fbp = 'f'; - else + if (dp->conversion == 'F') + *fbp = 'f'; + else #endif - *fbp = dp->conversion; + *fbp = dp->conversion; #if USE_SNPRINTF -# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) - fbp[1] = '%'; - fbp[2] = 'n'; - fbp[3] = '\0'; +# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0'; # else - /* On glibc2 systems from glibc >= 2.3 - probably also older - ones - we know that snprintf's returns value conforms to - ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. - Therefore we can avoid using %n in this situation. - On glibc2 systems from 2004-10-18 or newer, the use of %n - in format strings in writable memory may crash the program - (if compiled with _FORTIFY_SOURCE=2), so we should avoid it - in this situation. */ - fbp[1] = '\0'; + /* On glibc2 systems from glibc >= 2.3 - probably also older + ones - we know that snprintf's returns value conforms to + ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. + Therefore we can avoid using %n in this situation. + On glibc2 systems from 2004-10-18 or newer, the use of %n + in format strings in writable memory may crash the program + (if compiled with _FORTIFY_SOURCE=2), so we should avoid it + in this situation. */ + /* On native Win32 systems (such as mingw), we can avoid using + %n because: + - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, + snprintf does not write more than the specified number + of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes + '4', '5', '6' into buf, not '4', '5', '\0'.) + - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf + allows us to recognize the case of an insufficient + buffer size: it returns -1 in this case. + On native Win32 systems (such as mingw) where the OS is + Windows Vista, the use of %n in format strings by default + crashes the program. See + and + + So we should avoid %n in this situation. */ + fbp[1] = '\0'; # endif #else - fbp[1] = '\0'; + fbp[1] = '\0'; #endif - /* Construct the arguments for calling snprintf or sprintf. */ - prefix_count = 0; - if (!pad_ourselves && dp->width_arg_index != ARG_NONE) - { - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; - } - if (dp->precision_arg_index != ARG_NONE) - { - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; - } + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; + if (!pad_ourselves && dp->width_arg_index != ARG_NONE) + { + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; + } + if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) + { + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; + } #if USE_SNPRINTF - /* The SNPRINTF result is appended after result[0..length]. - The latter is an array of DCHAR_T; SNPRINTF appends an - array of TCHAR_T to it. This is possible because - sizeof (TCHAR_T) divides sizeof (DCHAR_T) and - alignof (TCHAR_T) <= alignof (DCHAR_T). */ + /* The SNPRINTF result is appended after result[0..length]. + The latter is an array of DCHAR_T; SNPRINTF appends an + array of TCHAR_T to it. This is possible because + sizeof (TCHAR_T) divides sizeof (DCHAR_T) and + alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) - /* Prepare checking whether snprintf returns the count - via %n. */ - ENSURE_ALLOCATION (xsum (length, 1)); - *(TCHAR_T *) (result + length) = '\0'; + /* Ensure that maxlen below will be >= 2. Needed on BeOS, + where an snprintf() with maxlen==1 acts like sprintf(). */ + ENSURE_ALLOCATION (xsum (length, + (2 + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR)); + /* Prepare checking whether snprintf returns the count + via %n. */ + *(TCHAR_T *) (result + length) = '\0'; #endif - for (;;) - { - int count = -1; + for (;;) + { + int count = -1; #if USE_SNPRINTF - int retcount = 0; - size_t maxlen = allocated - length; - /* SNPRINTF can fail if its second argument is - > INT_MAX. */ - if (maxlen > INT_MAX / TCHARS_PER_DCHAR) - maxlen = INT_MAX / TCHARS_PER_DCHAR; - maxlen = maxlen * TCHARS_PER_DCHAR; + int retcount = 0; + size_t maxlen = allocated - length; + /* SNPRINTF can fail if its second argument is + > INT_MAX. */ + if (maxlen > INT_MAX / TCHARS_PER_DCHAR) + maxlen = INT_MAX / TCHARS_PER_DCHAR; + maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - arg, &count); \ - break; \ - case 1: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], arg, &count); \ - break; \ - case 2: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], prefixes[1], arg, \ - &count); \ - break; \ - default: \ - abort (); \ - } + switch (prefix_count) \ + { \ + case 0: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + arg, &count); \ + break; \ + case 1: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], arg, &count); \ + break; \ + case 2: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], prefixes[1], arg, \ + &count); \ + break; \ + default: \ + abort (); \ + } #else # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - count = sprintf (tmp, buf, arg); \ - break; \ - case 1: \ - count = sprintf (tmp, buf, prefixes[0], arg); \ - break; \ - case 2: \ - count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ - arg); \ - break; \ - default: \ - abort (); \ - } -#endif - - switch (type) - { - case TYPE_SCHAR: - { - int arg = a.arg[dp->arg_index].a.a_schar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UCHAR: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uchar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_SHORT: - { - int arg = a.arg[dp->arg_index].a.a_short; - SNPRINTF_BUF (arg); - } - break; - case TYPE_USHORT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_ushort; - SNPRINTF_BUF (arg); - } - break; - case TYPE_INT: - { - int arg = a.arg[dp->arg_index].a.a_int; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UINT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGINT: - { - long int arg = a.arg[dp->arg_index].a.a_longint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGINT: - { - unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; - SNPRINTF_BUF (arg); - } - break; + switch (prefix_count) \ + { \ + case 0: \ + count = sprintf (tmp, buf, arg); \ + break; \ + case 1: \ + count = sprintf (tmp, buf, prefixes[0], arg); \ + break; \ + case 2: \ + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ + arg); \ + break; \ + default: \ + abort (); \ + } +#endif + + errno = 0; + switch (type) + { + case TYPE_SCHAR: + { + int arg = a.arg[dp->arg_index].a.a_schar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UCHAR: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uchar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_SHORT: + { + int arg = a.arg[dp->arg_index].a.a_short; + SNPRINTF_BUF (arg); + } + break; + case TYPE_USHORT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_ushort; + SNPRINTF_BUF (arg); + } + break; + case TYPE_INT: + { + int arg = a.arg[dp->arg_index].a.a_int; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UINT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGINT: + { + long int arg = a.arg[dp->arg_index].a.a_longint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGINT: + { + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; + SNPRINTF_BUF (arg); + } + break; #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - { - long long int arg = a.arg[dp->arg_index].a.a_longlongint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGLONGINT: - { - unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_DOUBLE: - { - double arg = a.arg[dp->arg_index].a.a_double; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGDOUBLE: - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - SNPRINTF_BUF (arg); - } - break; - case TYPE_CHAR: - { - int arg = a.arg[dp->arg_index].a.a_char; - SNPRINTF_BUF (arg); - } - break; + case TYPE_LONGLONGINT: + { + long long int arg = a.arg[dp->arg_index].a.a_longlongint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGLONGINT: + { + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_DOUBLE: + { + double arg = a.arg[dp->arg_index].a.a_double; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGDOUBLE: + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + SNPRINTF_BUF (arg); + } + break; + case TYPE_CHAR: + { + int arg = a.arg[dp->arg_index].a.a_char; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WINT_T - case TYPE_WIDE_CHAR: - { - wint_t arg = a.arg[dp->arg_index].a.a_wide_char; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_STRING: - { - const char *arg = a.arg[dp->arg_index].a.a_string; - SNPRINTF_BUF (arg); - } - break; + case TYPE_WIDE_CHAR: + { + wint_t arg = a.arg[dp->arg_index].a.a_wide_char; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_STRING: + { + const char *arg = a.arg[dp->arg_index].a.a_string; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: - { - const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_POINTER: - { - void *arg = a.arg[dp->arg_index].a.a_pointer; - SNPRINTF_BUF (arg); - } - break; - default: - abort (); - } + case TYPE_WIDE_STRING: + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_POINTER: + { + void *arg = a.arg[dp->arg_index].a.a_pointer; + SNPRINTF_BUF (arg); + } + break; + default: + abort (); + } #if USE_SNPRINTF - /* Portability: Not all implementations of snprintf() - are ISO C 99 compliant. Determine the number of - bytes that snprintf() has produced or would have - produced. */ - if (count >= 0) - { - /* Verify that snprintf() has NUL-terminated its - result. */ - if (count < maxlen - && ((TCHAR_T *) (result + length)) [count] != '\0') - abort (); - /* Portability hack. */ - if (retcount > count) - count = retcount; - } - else - { - /* snprintf() doesn't understand the '%n' - directive. */ - if (fbp[1] != '\0') - { - /* Don't use the '%n' directive; instead, look - at the snprintf() return value. */ - fbp[1] = '\0'; - continue; - } - else - { - /* Look at the snprintf() return value. */ - if (retcount < 0) - { - /* HP-UX 10.20 snprintf() is doubly deficient: - It doesn't understand the '%n' directive, - *and* it returns -1 (rather than the length - that would have been required) when the - buffer is too small. */ - size_t bigger_need = - xsum (xtimes (allocated, 2), 12); - ENSURE_ALLOCATION (bigger_need); - continue; - } - else - count = retcount; - } - } -#endif - - /* Attempt to handle failure. */ - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EINVAL; - return NULL; - } + /* Portability: Not all implementations of snprintf() + are ISO C 99 compliant. Determine the number of + bytes that snprintf() has produced or would have + produced. */ + if (count >= 0) + { + /* Verify that snprintf() has NUL-terminated its + result. */ + if (count < maxlen + && ((TCHAR_T *) (result + length)) [count] != '\0') + abort (); + /* Portability hack. */ + if (retcount > count) + count = retcount; + } + else + { + /* snprintf() doesn't understand the '%n' + directive. */ + if (fbp[1] != '\0') + { + /* Don't use the '%n' directive; instead, look + at the snprintf() return value. */ + fbp[1] = '\0'; + continue; + } + else + { + /* Look at the snprintf() return value. */ + if (retcount < 0) + { +# if !HAVE_SNPRINTF_RETVAL_C99 + /* HP-UX 10.20 snprintf() is doubly deficient: + It doesn't understand the '%n' directive, + *and* it returns -1 (rather than the length + that would have been required) when the + buffer is too small. + But a failure at this point can also come + from other reasons than a too small buffer, + such as an invalid wide string argument to + the %ls directive, or possibly an invalid + floating-point argument. */ + size_t tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, + dp->conversion, type, flags, + width, has_precision, + precision, pad_ourselves); + + if (maxlen < tmp_length) + { + /* Make more room. But try to do through + this reallocation only once. */ + size_t bigger_need = + xsum (length, + xsum (tmp_length, + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + /* And always grow proportionally. + (There may be several arguments, each + needing a little more room than the + previous one.) */ + size_t bigger_need2 = + xsum (xtimes (allocated, 2), 12); + if (bigger_need < bigger_need2) + bigger_need = bigger_need2; + ENSURE_ALLOCATION (bigger_need); + continue; + } +# endif + } + else + count = retcount; + } + } +#endif + + /* Attempt to handle failure. */ + if (count < 0) + { + /* SNPRINTF or sprintf failed. Save and use the errno + that it has set, if any. */ + int saved_errno = errno; + + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = + (saved_errno != 0 + ? saved_errno + : (dp->conversion == 'c' || dp->conversion == 's' + ? EILSEQ + : EINVAL)); + return NULL; + } #if USE_SNPRINTF - /* Handle overflow of the allocated buffer. - If such an overflow occurs, a C99 compliant snprintf() - returns a count >= maxlen. However, a non-compliant - snprintf() function returns only count = maxlen - 1. To - cover both cases, test whether count >= maxlen - 1. */ - if ((unsigned int) count + 1 >= maxlen) - { - /* If maxlen already has attained its allowed maximum, - allocating more memory will not increase maxlen. - Instead of looping, bail out. */ - if (maxlen == INT_MAX / TCHARS_PER_DCHAR) - goto overflow; - else - { - /* Need at least count * sizeof (TCHAR_T) bytes. - But allocate proportionally, to avoid looping - eternally if snprintf() reports a too small - count. */ - size_t n = - xmax (xsum (length, - (count + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR), - xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - continue; - } - } + /* Handle overflow of the allocated buffer. + If such an overflow occurs, a C99 compliant snprintf() + returns a count >= maxlen. However, a non-compliant + snprintf() function returns only count = maxlen - 1. To + cover both cases, test whether count >= maxlen - 1. */ + if ((unsigned int) count + 1 >= maxlen) + { + /* If maxlen already has attained its allowed maximum, + allocating more memory will not increase maxlen. + Instead of looping, bail out. */ + if (maxlen == INT_MAX / TCHARS_PER_DCHAR) + goto overflow; + else + { + /* Need at least (count + 1) * sizeof (TCHAR_T) + bytes. (The +1 is for the trailing NUL.) + But ask for (count + 2) * sizeof (TCHAR_T) + bytes, so that in the next round, we likely get + maxlen > (unsigned int) count + 1 + and so we don't get here again. + And allocate proportionally, to avoid looping + eternally if snprintf() reports a too small + count. */ + size_t n = + xmax (xsum (length, + ((unsigned int) count + 2 + + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR), + xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + continue; + } + } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - if (prec_ourselves) - { - /* Handle the precision. */ - TCHAR_T *prec_ptr = + if (prec_ourselves) + { + /* Handle the precision. */ + TCHAR_T *prec_ptr = # if USE_SNPRINTF - (TCHAR_T *) (result + length); + (TCHAR_T *) (result + length); # else - tmp; + tmp; # endif - size_t prefix_count; - size_t move; + size_t prefix_count; + size_t move; - prefix_count = 0; - /* Put the additional zeroes after the sign. */ - if (count >= 1 - && (*prec_ptr == '-' || *prec_ptr == '+' - || *prec_ptr == ' ')) - prefix_count = 1; - /* Put the additional zeroes after the 0x prefix if - (flags & FLAG_ALT) || (dp->conversion == 'p'). */ - else if (count >= 2 - && prec_ptr[0] == '0' - && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) - prefix_count = 2; - - move = count - prefix_count; - if (precision > move) - { - /* Insert zeroes. */ - size_t insert = precision - move; - TCHAR_T *prec_end; + prefix_count = 0; + /* Put the additional zeroes after the sign. */ + if (count >= 1 + && (*prec_ptr == '-' || *prec_ptr == '+' + || *prec_ptr == ' ')) + prefix_count = 1; + /* Put the additional zeroes after the 0x prefix if + (flags & FLAG_ALT) || (dp->conversion == 'p'). */ + else if (count >= 2 + && prec_ptr[0] == '0' + && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) + prefix_count = 2; + + move = count - prefix_count; + if (precision > move) + { + /* Insert zeroes. */ + size_t insert = precision - move; + TCHAR_T *prec_end; # if USE_SNPRINTF - size_t n = - xsum (length, - (count + insert + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR); - length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - ENSURE_ALLOCATION (n); - length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - prec_ptr = (TCHAR_T *) (result + length); -# endif - - prec_end = prec_ptr + count; - prec_ptr += prefix_count; - - while (prec_end > prec_ptr) - { - prec_end--; - prec_end[insert] = prec_end[0]; - } - - prec_end += insert; - do - *--prec_end = '0'; - while (prec_end > prec_ptr); - - count += insert; - } - } + size_t n = + xsum (length, + (count + insert + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + ENSURE_ALLOCATION (n); + length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + prec_ptr = (TCHAR_T *) (result + length); +# endif + + prec_end = prec_ptr + count; + prec_ptr += prefix_count; + + while (prec_end > prec_ptr) + { + prec_end--; + prec_end[insert] = prec_end[0]; + } + + prec_end += insert; + do + *--prec_end = '0'; + while (prec_end > prec_ptr); + + count += insert; + } + } +#endif + +#if !USE_SNPRINTF + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); #endif #if !DCHAR_IS_TCHAR -# if !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); -# endif - - /* Convert from TCHAR_T[] to DCHAR_T[]. */ - if (dp->conversion == 'c' || dp->conversion == 's') - { - /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING - TYPE_WIDE_STRING. - The result string is not certainly ASCII. */ - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t tmpdst_len; - /* This code assumes that TCHAR_T is 'char'. */ - typedef int TCHAR_T_verify - [2 * (sizeof (TCHAR_T) == 1) - 1]; + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + if (dp->conversion == 'c' || dp->conversion == 's') + { + /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING + TYPE_WIDE_STRING. + The result string is not certainly ASCII. */ + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify + [2 * (sizeof (TCHAR_T) == 1) - 1]; # if USE_SNPRINTF - tmpsrc = (TCHAR_T *) (result + length); + tmpsrc = (TCHAR_T *) (result + length); # else - tmpsrc = tmp; + tmpsrc = tmp; # endif - tmpdst = NULL; - tmpdst_len = 0; - if (DCHAR_CONV_FROM_ENCODING (locale_charset (), - iconveh_question_mark, - tmpsrc, count, - NULL, - &tmpdst, &tmpdst_len) - < 0) - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - ENSURE_ALLOCATION (xsum (length, tmpdst_len)); - DCHAR_CPY (result + length, tmpdst, tmpdst_len); - free (tmpdst); - count = tmpdst_len; - } - else - { - /* The result string is ASCII. - Simple 1:1 conversion. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, count, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + count = tmpdst_len; + } + else + { + /* The result string is ASCII. + Simple 1:1 conversion. */ # if USE_SNPRINTF - /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a - no-op conversion, in-place on the array starting - at (result + length). */ - if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) -# endif - { - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t n; + /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a + no-op conversion, in-place on the array starting + at (result + length). */ + if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) +# endif + { + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t n; # if USE_SNPRINTF - if (result == resultbuf) - { - tmpsrc = (TCHAR_T *) (result + length); - /* ENSURE_ALLOCATION will not move tmpsrc - (because it's part of resultbuf). */ - ENSURE_ALLOCATION (xsum (length, count)); - } - else - { - /* ENSURE_ALLOCATION will move the array - (because it uses realloc(). */ - ENSURE_ALLOCATION (xsum (length, count)); - tmpsrc = (TCHAR_T *) (result + length); - } + if (result == resultbuf) + { + tmpsrc = (TCHAR_T *) (result + length); + /* ENSURE_ALLOCATION will not move tmpsrc + (because it's part of resultbuf). */ + ENSURE_ALLOCATION (xsum (length, count)); + } + else + { + /* ENSURE_ALLOCATION will move the array + (because it uses realloc(). */ + ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = (TCHAR_T *) (result + length); + } # else - tmpsrc = tmp; - ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = tmp; + ENSURE_ALLOCATION (xsum (length, count)); # endif - tmpdst = result + length; - /* Copy backwards, because of overlapping. */ - tmpsrc += count; - tmpdst += count; - for (n = count; n > 0; n--) - *--tmpdst = (unsigned char) *--tmpsrc; - } - } + tmpdst = result + length; + /* Copy backwards, because of overlapping. */ + tmpsrc += count; + tmpdst += count; + for (n = count; n > 0; n--) + *--tmpdst = (unsigned char) *--tmpsrc; + } + } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF - /* Make room for the result. */ - if (count > allocated - length) - { - /* Need at least count elements. But allocate - proportionally. */ - size_t n = - xmax (xsum (length, count), xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - } -#endif - - /* Here count <= allocated - length. */ - - /* Perform padding. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - if (pad_ourselves && has_width) - { - size_t w; + /* Make room for the result. */ + if (count > allocated - length) + { + /* Need at least count elements. But allocate + proportionally. */ + size_t n = + xmax (xsum (length, count), xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + } +#endif + + /* Here count <= allocated - length. */ + + /* Perform padding. */ +#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + if (pad_ourselves && has_width) + { + size_t w; # if ENABLE_UNISTDIO - /* Outside POSIX, it's preferrable to compare the width - against the number of _characters_ of the converted - value. */ - w = DCHAR_MBSNLEN (result + length, count); + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, count); # else - /* The width is compared against the number of _bytes_ - of the converted value, says POSIX. */ - w = count; -# endif - if (w < width) - { - size_t pad = width - w; + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = count; +# endif + if (w < width) + { + size_t pad = width - w; + + /* Make room for the result. */ + if (xsum (count, pad) > allocated - length) + { + /* Need at least count + pad elements. But + allocate proportionally. */ + size_t n = + xmax (xsum3 (length, count, pad), + xtimes (allocated, 2)); + # if USE_SNPRINTF - /* Make room for the result. */ - if (xsum (count, pad) > allocated - length) - { - /* Need at least count + pad elements. But - allocate proportionally. */ - size_t n = - xmax (xsum3 (length, count, pad), - xtimes (allocated, 2)); - - length += count; - ENSURE_ALLOCATION (n); - length -= count; - } - /* Here count + pad <= allocated - length. */ + length += count; + ENSURE_ALLOCATION (n); + length -= count; +# else + ENSURE_ALLOCATION (n); # endif - { + } + /* Here count + pad <= allocated - length. */ + + { # if !DCHAR_IS_TCHAR || USE_SNPRINTF - DCHAR_T * const rp = result + length; + DCHAR_T * const rp = result + length; # else - DCHAR_T * const rp = tmp; + DCHAR_T * const rp = tmp; # endif - DCHAR_T *p = rp + count; - DCHAR_T *end = p + pad; -# if NEED_PRINTF_FLAG_ZERO - DCHAR_T *pad_ptr; -# if !DCHAR_IS_TCHAR - if (dp->conversion == 'c' - || dp->conversion == 's') - /* No zero-padding for string directives. */ - pad_ptr = NULL; - else -# endif - { - pad_ptr = (*rp == '-' ? rp + 1 : rp); - /* No zero-padding of "inf" and "nan". */ - if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') - || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) - pad_ptr = NULL; - } -# endif - /* The generated string now extends from rp to p, - with the zero padding insertion point being at - pad_ptr. */ - - count = count + pad; /* = end - rp */ - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } -# if NEED_PRINTF_FLAG_ZERO - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } -# endif - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > rp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - } - } - } -#endif - -#if DCHAR_IS_TCHAR && !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); + DCHAR_T *p = rp + count; + DCHAR_T *end = p + pad; + DCHAR_T *pad_ptr; +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO + if (dp->conversion == 'c' + || dp->conversion == 's') + /* No zero-padding for string directives. */ + pad_ptr = NULL; + else +# endif + { + pad_ptr = (*rp == '-' ? rp + 1 : rp); + /* No zero-padding of "inf" and "nan". */ + if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') + || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) + pad_ptr = NULL; + } + /* The generated string now extends from rp to p, + with the zero padding insertion point being at + pad_ptr. */ + + count = count + pad; /* = end - rp */ + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > rp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + } + } + } #endif - /* Here still count <= allocated - length. */ + /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF - /* The snprintf() result did fit. */ + /* The snprintf() result did fit. */ #else - /* Append the sprintf() result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + /* Append the sprintf() result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF - if (tmp != tmpbuf) - free (tmp); + if (tmp != tmpbuf) + free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - { - /* Convert the %f result to upper case for %F. */ - DCHAR_T *rp = result + length; - size_t rc; - for (rc = count; rc > 0; rc--, rp++) - if (*rp >= 'a' && *rp <= 'z') - *rp = *rp - 'a' + 'A'; - } -#endif - - length += count; - break; - } - } - } + if (dp->conversion == 'F') + { + /* Convert the %f result to upper case for %F. */ + DCHAR_T *rp = result + length; + size_t rc; + for (rc = count; rc > 0; rc--, rp++) + if (*rp >= 'a' && *rp <= 'z') + *rp = *rp - 'a' + 'A'; + } +#endif + + length += count; + break; + } +#undef pad_ourselves +#undef prec_ourselves + } + } } /* Add the final NUL. */ @@ -4624,12 +5511,12 @@ if (result != resultbuf && length + 1 < allocated) { - /* Shrink the allocated memory if possible. */ - DCHAR_T *memory; + /* Shrink the allocated memory if possible. */ + DCHAR_T *memory; - memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); - if (memory != NULL) - result = memory; + memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); + if (memory != NULL) + result = memory; } if (buf_malloced != NULL) @@ -4642,6 +5529,7 @@ not have this limitation. */ return result; +#if USE_SNPRINTF overflow: if (!(result == resultbuf || result == NULL)) free (result); @@ -4650,6 +5538,7 @@ CLEANUP (); errno = EOVERFLOW; return NULL; +#endif out_of_memory: if (!(result == resultbuf || result == NULL)) @@ -4663,9 +5552,11 @@ } } +#undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF +#undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES diff -Nru gettext-0.17/gettext-runtime/intl/vasnwprintf.h gettext-0.18.1.1/gettext-runtime/intl/vasnwprintf.h --- gettext-0.17/gettext-runtime/intl/vasnwprintf.h 2005-05-20 21:05:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/vasnwprintf.h 2010-06-06 12:49:57.000000000 +0000 @@ -25,7 +25,7 @@ /* Get wchar_t, size_t. */ #include -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -39,7 +39,7 @@ extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...); extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args); -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-runtime/intl/wprintf-parse.h gettext-0.18.1.1/gettext-runtime/intl/wprintf-parse.h --- gettext-0.17/gettext-runtime/intl/wprintf-parse.h 2005-05-20 21:05:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/wprintf-parse.h 2010-06-06 12:49:57.000000000 +0000 @@ -23,15 +23,15 @@ /* Flags */ -#define FLAG_GROUP 1 /* ' flag */ -#define FLAG_LEFT 2 /* - flag */ -#define FLAG_SHOWSIGN 4 /* + flag */ -#define FLAG_SPACE 8 /* space flag */ -#define FLAG_ALT 16 /* # flag */ -#define FLAG_ZERO 32 +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ -#define ARG_NONE (~(size_t)0) +#define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct diff -Nru gettext-0.17/gettext-runtime/intl/xsize.h gettext-0.18.1.1/gettext-runtime/intl/xsize.h --- gettext-0.17/gettext-runtime/intl/xsize.h 2005-05-20 21:05:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl/xsize.h 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ /* xsize.h -- Checked size_t computations. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -95,7 +95,7 @@ /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff -Nru gettext-0.17/gettext-runtime/intl-csharp/ChangeLog gettext-0.18.1.1/gettext-runtime/intl-csharp/ChangeLog --- gettext-0.17/gettext-runtime/intl-csharp/ChangeLog 2007-11-06 23:27:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl-csharp/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,11 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/intl-csharp/Makefile.in gettext-0.18.1.1/gettext-runtime/intl-csharp/Makefile.in --- gettext-0.17/gettext-runtime/intl-csharp/Makefile.in 2007-11-06 23:34:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl-csharp/Makefile.in 2010-06-06 20:11:37.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -34,12 +36,18 @@ subdir = intl-csharp DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -50,44 +58,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -98,14 +127,22 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -113,8 +150,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -141,22 +181,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -164,117 +209,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -285,10 +554,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -302,7 +573,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -315,59 +593,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -382,8 +784,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -403,6 +804,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -416,6 +820,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -429,6 +834,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -451,14 +857,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits intl-csharp/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits intl-csharp/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits intl-csharp/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits intl-csharp/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -476,6 +882,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -505,13 +912,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -540,6 +951,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -558,6 +970,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -566,18 +980,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -669,6 +1093,7 @@ echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \ $(RM) $(DESTDIR)$(htmldir)/$$f; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/intl-java/ChangeLog gettext-0.18.1.1/gettext-runtime/intl-java/ChangeLog --- gettext-0.17/gettext-runtime/intl-java/ChangeLog 2007-11-06 23:27:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl-java/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,11 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/intl-java/Makefile.in gettext-0.18.1.1/gettext-runtime/intl-java/Makefile.in --- gettext-0.17/gettext-runtime/intl-java/Makefile.in 2007-11-06 23:34:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/intl-java/Makefile.in 2010-06-06 20:11:37.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -34,12 +36,18 @@ subdir = intl-java DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -50,44 +58,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -98,14 +127,22 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -113,8 +150,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -141,22 +181,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -164,117 +209,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -285,10 +554,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -302,7 +573,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -315,59 +593,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -382,8 +784,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -403,6 +804,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -416,6 +820,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -429,6 +834,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -461,14 +867,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits intl-java/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits intl-java/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits intl-java/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits intl-java/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -486,6 +892,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -515,13 +922,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -550,6 +961,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -568,6 +980,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -576,18 +990,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -678,6 +1102,7 @@ echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \ $(RM) $(DESTDIR)$(htmldir)/$$f; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/libasprintf/aclocal.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/aclocal.m4 --- gettext-0.17/gettext-runtime/libasprintf/aclocal.m4 2007-11-06 23:34:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/aclocal.m4 2010-06-06 20:11:09.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,138 +11,6646 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -# longdouble.m4 serial 2 (gettext-0.15) -dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. -dnl Test whether the compiler supports the 'long double' type. -dnl Prerequisite: AC_PROG_CC +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -dnl This file is only needed in autoconf <= 2.59. Newer versions of autoconf -dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics. +# serial 52 AC_PROG_LIBTOOL -AC_DEFUN([gt_TYPE_LONGDOUBLE], + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +_LT_REQUIRED_DARWIN_CHECKS + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# -------------------------- +# Check for some things on darwin +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + case $host_os in + rhapsody* | darwin1.[[0123]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac +]) + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# ------------------ +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# --------------------------------------------------------------------- +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + + +# AC_LIBTOOL_DLOPEN_SELF +# ---------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + + +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) +# --------------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* +]) +])# AC_LIBTOOL_PROG_CC_C_O + + +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- +# Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + +hard_links="nottested" +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS + + +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- +# Check hardcoding attributes. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_AC_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP + + +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- +# PORTME Fill in your ld.so characteristics +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +m4_if($1,[],[ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 DLLs +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +# set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognize shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognize a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' +# (note the single quotes!). If your package is not flat and you're not +# using automake, define top_builddir and top_srcdir appropriately in +# the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# and an installed libltdl is not found, it is assumed to be `libltdl'. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and top_srcdir +# appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + +# _LT_AC_PROG_CXXCPP +# ------------------ +AC_DEFUN([_LT_AC_PROG_CXXCPP], +[ +AC_REQUIRE([AC_PROG_CXX]) +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +fi +])# _LT_AC_PROG_CXXCPP + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# ------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF + +# Report which library types will actually be built +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + $as_unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + $as_unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) +case " $_LT_AC_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac +])# AC_LIBTOOL_POSTDEP_PREDEP + +# AC_LIBTOOL_LANG_F77_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) +AC_DEFUN([_LT_AC_LANG_F77_CONFIG], +[AC_REQUIRE([AC_PROG_F77]) +AC_LANG_PUSH(Fortran 77) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="\ + subroutine t + return + end +" + +# Code to be used in simple link tests +lt_simple_link_test_code="\ + program t + end +" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${F77-"f77"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +_LT_AC_TAGVAR(GCC, $1)="$G77" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_F77_CONFIG + + +# AC_LIBTOOL_LANG_GCJ_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], +[AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_GCJ_CONFIG + + +# AC_LIBTOOL_LANG_RC_CONFIG +# ------------------------- +# Ensure that the configuration vars for the Windows resource compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) +AC_DEFUN([_LT_AC_LANG_RC_CONFIG], +[AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_RC_CONFIG + + +# AC_LIBTOOL_CONFIG([TAGNAME]) +# ---------------------------- +# If TAGNAME is not passed, then create an initial libtool script +# with a default configuration from the untagged config vars. Otherwise +# add code to config.status for appending the configuration named by +# TAGNAME from the matching tagged config vars. +AC_DEFUN([AC_LIBTOOL_CONFIG], +[# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + _LT_AC_TAGVAR(compiler, $1) \ + _LT_AC_TAGVAR(CC, $1) \ + _LT_AC_TAGVAR(LD, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ + _LT_AC_TAGVAR(old_archive_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ + _LT_AC_TAGVAR(predep_objects, $1) \ + _LT_AC_TAGVAR(postdep_objects, $1) \ + _LT_AC_TAGVAR(predeps, $1) \ + _LT_AC_TAGVAR(postdeps, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ + _LT_AC_TAGVAR(archive_cmds, $1) \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ + _LT_AC_TAGVAR(postinstall_cmds, $1) \ + _LT_AC_TAGVAR(postuninstall_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ + _LT_AC_TAGVAR(allow_undefined_flag, $1) \ + _LT_AC_TAGVAR(no_undefined_flag, $1) \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ + _LT_AC_TAGVAR(hardcode_automatic, $1) \ + _LT_AC_TAGVAR(module_cmds, $1) \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) \ + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ + _LT_AC_TAGVAR(fix_srcfile_path, $1) \ + _LT_AC_TAGVAR(exclude_expsyms, $1) \ + _LT_AC_TAGVAR(include_expsyms, $1); do + + case $var in + _LT_AC_TAGVAR(old_archive_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ + _LT_AC_TAGVAR(archive_cmds, $1) | \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(module_cmds, $1) | \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\[$]0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` + ;; + esac + +ifelse([$1], [], + [cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + AC_MSG_NOTICE([creating $ofile])], + [cfgfile="$ofile"]) + + cat <<__EOF__ >> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) + +# Is the compiler the GNU C compiler? +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + +# Commands used to build and install a shared archive. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + +# The commands to list exported symbols. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + +# Symbols that must always be exported. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) + +__EOF__ + +ifelse([$1],[], [ + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([LT_AC_PROG_SED]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ - AC_CACHE_CHECK([for long double], gt_cv_c_long_double, - [if test "$GCC" = yes; then - gt_cv_c_long_double=yes - else - AC_TRY_COMPILE([ - /* The Stardent Vistra knows sizeof(long double), but does not support it. */ - long double foo = 0.0; - /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ - int array [2*(sizeof(long double) >= sizeof(double)) - 1]; - ], , - gt_cv_c_long_double=yes, gt_cv_c_long_double=no) - fi]) - if test $gt_cv_c_long_double = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac fi ]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) +]) -# longlong.m4 serial 12 -dnl Copyright (C) 1999-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Paul Eggert. - -# Define HAVE_LONG_LONG_INT if 'long long int' works. -# This fixes a bug in Autoconf 2.61, but can be removed once we -# assume 2.62 everywhere. - -# Note: If the type 'long long int' exists but is only 32 bits large -# (as on some very old compilers), HAVE_LONG_LONG_INT will not be -# defined. In this case you can treat 'long long int' like 'long int'. -AC_DEFUN([AC_TYPE_LONG_LONG_INT], -[ - AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], - [AC_LINK_IFELSE( - [_AC_TYPE_LONG_LONG_SNIPPET], - [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. - dnl If cross compiling, assume the bug isn't important, since - dnl nobody cross compiles for this platform as far as we know. - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[@%:@include - @%:@ifndef LLONG_MAX - @%:@ define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - @%:@ define LLONG_MAX (HALF - 1 + HALF) - @%:@endif]], - [[long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0;]])], - [ac_cv_type_long_long_int=yes], - [ac_cv_type_long_long_int=no], - [ac_cv_type_long_long_int=yes])], - [ac_cv_type_long_long_int=no])]) - if test $ac_cv_type_long_long_int = yes; then - AC_DEFINE([HAVE_LONG_LONG_INT], 1, - [Define to 1 if the system has the type `long long int'.]) +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + _LT_CC_BASENAME([$compiler]) + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi[[45]]*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac fi ]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no -# Expands to a C program that can be used to test for simultaneous support -# of 'long long' and 'unsigned long long'. We don't want to say that -# 'long long' is available if 'unsigned long long' is not, or vice versa, -# because too many programs rely on the symmetry between signed and unsigned -# integer types (excluding 'bool'). -AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], -[ - AC_LANG_PROGRAM( - [[/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63;]], - [[/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull));]]) +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ +])# _LT_AC_FILE_LTDLL_C + + +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) + + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) ]) -# This macro is obsolescent and should go away soon. -AC_DEFUN([gl_AC_TYPE_LONG_LONG], -[ - AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) - ac_cv_type_long_long=$ac_cv_type_long_long_int - if test $ac_cv_type_long_long = yes; then - AC_DEFINE(HAVE_LONG_LONG, 1, - [Define if you have the 'long long' type.]) +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + + +# Cheap backport of AS_EXECUTABLE_P and required macros +# from Autoconf 2.59; we should not use $as_executable_p directly. + +# _AS_TEST_PREPARE +# ---------------- +m4_ifndef([_AS_TEST_PREPARE], +[m4_defun([_AS_TEST_PREPARE], +[if test -x / >/dev/null 2>&1; then + as_executable_p='test -x' +else + as_executable_p='test -f' +fi +])])# _AS_TEST_PREPARE + +# AS_EXECUTABLE_P +# --------------- +# Check whether a file is executable. +m4_ifndef([AS_EXECUTABLE_P], +[m4_defun([AS_EXECUTABLE_P], +[AS_REQUIRE([_AS_TEST_PREPARE])dnl +$as_executable_p $1[]dnl +])])# AS_EXECUTABLE_P + +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) ]) -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -154,10 +6662,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' +[am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -171,10 +6679,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -231,14 +6741,14 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 8 +# serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- @@ -251,6 +6761,7 @@ AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' @@ -264,14 +6775,14 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 9 +# serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, @@ -328,6 +6839,16 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and @@ -345,7 +6866,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -355,19 +6886,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; none) break ;; esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message @@ -424,57 +6959,68 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -#serial 3 +#serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done done -done +} ])# _AM_OUTPUT_DEPENDENCY_COMMANDS @@ -506,13 +7052,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 +# serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. @@ -529,7 +7075,7 @@ # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl +[AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -580,8 +7126,8 @@ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -589,24 +7135,37 @@ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -617,18 +7176,19 @@ # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $1 | $1:* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -639,7 +7199,14 @@ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -665,13 +7232,13 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # AM_MAKE_INCLUDE() # ----------------- @@ -680,7 +7247,7 @@ [am_make=${MAKE-make} cat > confinc << 'END' am__doit: - @echo done + @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. @@ -690,24 +7257,24 @@ _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) @@ -717,14 +7284,14 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -741,7 +7308,14 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -779,13 +7353,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -802,7 +7376,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -812,14 +7386,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -828,16 +7402,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -862,6 +7449,33 @@ fi AC_MSG_RESULT(yes)]) +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -890,18 +7504,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 2 + # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. @@ -998,6 +7619,13 @@ AC_SUBST([am__untar]) ]) # _AM_PROG_TAR +m4_include([gnulib-m4/00gnulib.m4]) +m4_include([gnulib-m4/alloca.m4]) +m4_include([gnulib-m4/errno_h.m4]) +m4_include([gnulib-m4/gnulib-common.m4]) +m4_include([gnulib-m4/gnulib-comp.m4]) +m4_include([gnulib-m4/include_next.m4]) +m4_include([gnulib-m4/onceonly.m4]) m4_include([../m4/intmax.m4]) m4_include([../m4/inttypes_h.m4]) m4_include([../m4/longlong.m4]) @@ -1007,6 +7635,9 @@ m4_include([../m4/wchar_t.m4]) m4_include([../m4/wint_t.m4]) m4_include([../m4/xsize.m4]) -m4_include([../../m4/fixautomake.m4]) m4_include([../../m4/libtool.m4]) +m4_include([../../m4/ltoptions.m4]) +m4_include([../../m4/ltsugar.m4]) +m4_include([../../m4/ltversion.m4]) +m4_include([../../m4/lt~obsolete.m4]) m4_include([../../m4/woe32-dll.m4]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/alloca.c gettext-0.18.1.1/gettext-runtime/libasprintf/alloca.c --- gettext-0.17/gettext-runtime/libasprintf/alloca.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/alloca.c 2009-12-11 16:44:57.000000000 +0000 @@ -0,0 +1,489 @@ +/* alloca.c -- allocate automatically reclaimed memory + (Mostly) portable public-domain implementation -- D A Gwyn + + This implementation of the PWB library alloca function, + which is used to allocate space off the run-time stack so + that it is automatically reclaimed upon procedure exit, + was inspired by discussions with J. Q. Johnson of Cornell. + J.Otto Tennant contributed the Cray support. + + There are some preprocessor constants that can + be defined when compiling for your specific system, for + improved efficiency; however, the defaults should be okay. + + The general concept of this implementation is to keep + track of all alloca-allocated blocks, and reclaim any + that are found to be deeper in the stack than the current + invocation. This heuristic does not reclaim storage as + soon as it becomes invalid, but it will do so eventually. + + As a special case, alloca(0) reclaims storage without + allocating any. It is a good idea to use alloca(0) in + your main control loop, etc. to force garbage collection. */ + +#include + +#include + +#include +#include + +#ifdef emacs +# include "lisp.h" +# include "blockinput.h" +# ifdef EMACS_FREE +# undef free +# define free EMACS_FREE +# endif +#else +# define memory_full() abort () +#endif + +/* If compiling with GCC 2, this file's not needed. */ +#if !defined (__GNUC__) || __GNUC__ < 2 + +/* If someone has defined alloca as a macro, + there must be some other way alloca is supposed to work. */ +# ifndef alloca + +# ifdef emacs +# ifdef static +/* actually, only want this if static is defined as "" + -- this is for usg, in which emacs must undefine static + in order to make unexec workable + */ +# ifndef STACK_DIRECTION +you +lose +-- must know STACK_DIRECTION at compile-time +/* Using #error here is not wise since this file should work for + old and obscure compilers. */ +# endif /* STACK_DIRECTION undefined */ +# endif /* static */ +# endif /* emacs */ + +/* If your stack is a linked list of frames, you have to + provide an "address metric" ADDRESS_FUNCTION macro. */ + +# if defined (CRAY) && defined (CRAY_STACKSEG_END) +long i00afunc (); +# define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg)) +# else +# define ADDRESS_FUNCTION(arg) &(arg) +# endif + +/* Define STACK_DIRECTION if you know the direction of stack + growth for your system; otherwise it will be automatically + deduced at run-time. + + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ + +# ifndef STACK_DIRECTION +# define STACK_DIRECTION 0 /* Direction unknown. */ +# endif + +# if STACK_DIRECTION != 0 + +# define STACK_DIR STACK_DIRECTION /* Known at compile-time. */ + +# else /* STACK_DIRECTION == 0; need run-time code. */ + +static int stack_dir; /* 1 or -1 once known. */ +# define STACK_DIR stack_dir + +static void +find_stack_direction (void) +{ + static char *addr = NULL; /* Address of first `dummy', once known. */ + auto char dummy; /* To get stack address. */ + + if (addr == NULL) + { /* Initial entry. */ + addr = ADDRESS_FUNCTION (dummy); + + find_stack_direction (); /* Recurse once. */ + } + else + { + /* Second entry. */ + if (ADDRESS_FUNCTION (dummy) > addr) + stack_dir = 1; /* Stack grew upward. */ + else + stack_dir = -1; /* Stack grew downward. */ + } +} + +# endif /* STACK_DIRECTION == 0 */ + +/* An "alloca header" is used to: + (a) chain together all alloca'ed blocks; + (b) keep track of stack depth. + + It is very important that sizeof(header) agree with malloc + alignment chunk size. The following default should work okay. */ + +# ifndef ALIGN_SIZE +# define ALIGN_SIZE sizeof(double) +# endif + +typedef union hdr +{ + char align[ALIGN_SIZE]; /* To force sizeof(header). */ + struct + { + union hdr *next; /* For chaining headers. */ + char *deep; /* For stack depth measure. */ + } h; +} header; + +static header *last_alloca_header = NULL; /* -> last alloca header. */ + +/* Return a pointer to at least SIZE bytes of storage, + which will be automatically reclaimed upon exit from + the procedure that called alloca. Originally, this space + was supposed to be taken from the current stack frame of the + caller, but that method cannot be made to work for some + implementations of C, for example under Gould's UTX/32. */ + +void * +alloca (size_t size) +{ + auto char probe; /* Probes stack depth: */ + register char *depth = ADDRESS_FUNCTION (probe); + +# if STACK_DIRECTION == 0 + if (STACK_DIR == 0) /* Unknown growth direction. */ + find_stack_direction (); +# endif + + /* Reclaim garbage, defined as all alloca'd storage that + was allocated from deeper in the stack than currently. */ + + { + register header *hp; /* Traverses linked list. */ + +# ifdef emacs + BLOCK_INPUT; +# endif + + for (hp = last_alloca_header; hp != NULL;) + if ((STACK_DIR > 0 && hp->h.deep > depth) + || (STACK_DIR < 0 && hp->h.deep < depth)) + { + register header *np = hp->h.next; + + free (hp); /* Collect garbage. */ + + hp = np; /* -> next header. */ + } + else + break; /* Rest are not deeper. */ + + last_alloca_header = hp; /* -> last valid storage. */ + +# ifdef emacs + UNBLOCK_INPUT; +# endif + } + + if (size == 0) + return NULL; /* No allocation required. */ + + /* Allocate combined header + user data storage. */ + + { + /* Address of header. */ + register header *new; + + size_t combined_size = sizeof (header) + size; + if (combined_size < sizeof (header)) + memory_full (); + + new = malloc (combined_size); + + if (! new) + memory_full (); + + new->h.next = last_alloca_header; + new->h.deep = depth; + + last_alloca_header = new; + + /* User storage begins just after header. */ + + return (void *) (new + 1); + } +} + +# if defined (CRAY) && defined (CRAY_STACKSEG_END) + +# ifdef DEBUG_I00AFUNC +# include +# endif + +# ifndef CRAY_STACK +# define CRAY_STACK +# ifndef CRAY2 +/* Stack structures for CRAY-1, CRAY X-MP, and CRAY Y-MP */ +struct stack_control_header + { + long shgrow:32; /* Number of times stack has grown. */ + long shaseg:32; /* Size of increments to stack. */ + long shhwm:32; /* High water mark of stack. */ + long shsize:32; /* Current size of stack (all segments). */ + }; + +/* The stack segment linkage control information occurs at + the high-address end of a stack segment. (The stack + grows from low addresses to high addresses.) The initial + part of the stack segment linkage control information is + 0200 (octal) words. This provides for register storage + for the routine which overflows the stack. */ + +struct stack_segment_linkage + { + long ss[0200]; /* 0200 overflow words. */ + long sssize:32; /* Number of words in this segment. */ + long ssbase:32; /* Offset to stack base. */ + long:32; + long sspseg:32; /* Offset to linkage control of previous + segment of stack. */ + long:32; + long sstcpt:32; /* Pointer to task common address block. */ + long sscsnm; /* Private control structure number for + microtasking. */ + long ssusr1; /* Reserved for user. */ + long ssusr2; /* Reserved for user. */ + long sstpid; /* Process ID for pid based multi-tasking. */ + long ssgvup; /* Pointer to multitasking thread giveup. */ + long sscray[7]; /* Reserved for Cray Research. */ + long ssa0; + long ssa1; + long ssa2; + long ssa3; + long ssa4; + long ssa5; + long ssa6; + long ssa7; + long sss0; + long sss1; + long sss2; + long sss3; + long sss4; + long sss5; + long sss6; + long sss7; + }; + +# else /* CRAY2 */ +/* The following structure defines the vector of words + returned by the STKSTAT library routine. */ +struct stk_stat + { + long now; /* Current total stack size. */ + long maxc; /* Amount of contiguous space which would + be required to satisfy the maximum + stack demand to date. */ + long high_water; /* Stack high-water mark. */ + long overflows; /* Number of stack overflow ($STKOFEN) calls. */ + long hits; /* Number of internal buffer hits. */ + long extends; /* Number of block extensions. */ + long stko_mallocs; /* Block allocations by $STKOFEN. */ + long underflows; /* Number of stack underflow calls ($STKRETN). */ + long stko_free; /* Number of deallocations by $STKRETN. */ + long stkm_free; /* Number of deallocations by $STKMRET. */ + long segments; /* Current number of stack segments. */ + long maxs; /* Maximum number of stack segments so far. */ + long pad_size; /* Stack pad size. */ + long current_address; /* Current stack segment address. */ + long current_size; /* Current stack segment size. This + number is actually corrupted by STKSTAT to + include the fifteen word trailer area. */ + long initial_address; /* Address of initial segment. */ + long initial_size; /* Size of initial segment. */ + }; + +/* The following structure describes the data structure which trails + any stack segment. I think that the description in 'asdef' is + out of date. I only describe the parts that I am sure about. */ + +struct stk_trailer + { + long this_address; /* Address of this block. */ + long this_size; /* Size of this block (does not include + this trailer). */ + long unknown2; + long unknown3; + long link; /* Address of trailer block of previous + segment. */ + long unknown5; + long unknown6; + long unknown7; + long unknown8; + long unknown9; + long unknown10; + long unknown11; + long unknown12; + long unknown13; + long unknown14; + }; + +# endif /* CRAY2 */ +# endif /* not CRAY_STACK */ + +# ifdef CRAY2 +/* Determine a "stack measure" for an arbitrary ADDRESS. + I doubt that "lint" will like this much. */ + +static long +i00afunc (long *address) +{ + struct stk_stat status; + struct stk_trailer *trailer; + long *block, size; + long result = 0; + + /* We want to iterate through all of the segments. The first + step is to get the stack status structure. We could do this + more quickly and more directly, perhaps, by referencing the + $LM00 common block, but I know that this works. */ + + STKSTAT (&status); + + /* Set up the iteration. */ + + trailer = (struct stk_trailer *) (status.current_address + + status.current_size + - 15); + + /* There must be at least one stack segment. Therefore it is + a fatal error if "trailer" is null. */ + + if (trailer == 0) + abort (); + + /* Discard segments that do not contain our argument address. */ + + while (trailer != 0) + { + block = (long *) trailer->this_address; + size = trailer->this_size; + if (block == 0 || size == 0) + abort (); + trailer = (struct stk_trailer *) trailer->link; + if ((block <= address) && (address < (block + size))) + break; + } + + /* Set the result to the offset in this segment and add the sizes + of all predecessor segments. */ + + result = address - block; + + if (trailer == 0) + { + return result; + } + + do + { + if (trailer->this_size <= 0) + abort (); + result += trailer->this_size; + trailer = (struct stk_trailer *) trailer->link; + } + while (trailer != 0); + + /* We are done. Note that if you present a bogus address (one + not in any segment), you will get a different number back, formed + from subtracting the address of the first block. This is probably + not what you want. */ + + return (result); +} + +# else /* not CRAY2 */ +/* Stack address function for a CRAY-1, CRAY X-MP, or CRAY Y-MP. + Determine the number of the cell within the stack, + given the address of the cell. The purpose of this + routine is to linearize, in some sense, stack addresses + for alloca. */ + +static long +i00afunc (long address) +{ + long stkl = 0; + + long size, pseg, this_segment, stack; + long result = 0; + + struct stack_segment_linkage *ssptr; + + /* Register B67 contains the address of the end of the + current stack segment. If you (as a subprogram) store + your registers on the stack and find that you are past + the contents of B67, you have overflowed the segment. + + B67 also points to the stack segment linkage control + area, which is what we are really interested in. */ + + stkl = CRAY_STACKSEG_END (); + ssptr = (struct stack_segment_linkage *) stkl; + + /* If one subtracts 'size' from the end of the segment, + one has the address of the first word of the segment. + + If this is not the first segment, 'pseg' will be + nonzero. */ + + pseg = ssptr->sspseg; + size = ssptr->sssize; + + this_segment = stkl - size; + + /* It is possible that calling this routine itself caused + a stack overflow. Discard stack segments which do not + contain the target address. */ + + while (!(this_segment <= address && address <= stkl)) + { +# ifdef DEBUG_I00AFUNC + fprintf (stderr, "%011o %011o %011o\n", this_segment, address, stkl); +# endif + if (pseg == 0) + break; + stkl = stkl - pseg; + ssptr = (struct stack_segment_linkage *) stkl; + size = ssptr->sssize; + pseg = ssptr->sspseg; + this_segment = stkl - size; + } + + result = address - this_segment; + + /* If you subtract pseg from the current end of the stack, + you get the address of the previous stack segment's end. + This seems a little convoluted to me, but I'll bet you save + a cycle somewhere. */ + + while (pseg != 0) + { +# ifdef DEBUG_I00AFUNC + fprintf (stderr, "%011o %011o\n", pseg, size); +# endif + stkl = stkl - pseg; + ssptr = (struct stack_segment_linkage *) stkl; + size = ssptr->sssize; + pseg = ssptr->sspseg; + result += size; + } + return (result); +} + +# endif /* not CRAY2 */ +# endif /* CRAY */ + +# endif /* no alloca */ +#endif /* not GCC version 2.1 */ diff -Nru gettext-0.17/gettext-runtime/libasprintf/alloca.in.h gettext-0.18.1.1/gettext-runtime/libasprintf/alloca.in.h --- gettext-0.17/gettext-runtime/libasprintf/alloca.in.h 2007-10-04 22:20:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/alloca.in.h 2009-08-15 15:26:57.000000000 +0000 @@ -1,20 +1,18 @@ /* Memory allocation on the stack. Copyright (C) 1995, 1999, 2001-2007 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU Library General Public License as published - by the Free Software Foundation; either version 2, or (at your option) - any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. - You should have received a copy of the GNU Library General Public - License along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, - USA. */ + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ /* When this file is included, it may be preceded only by preprocessor declarations. Thanks to AIX. Therefore we include it right after diff -Nru gettext-0.17/gettext-runtime/libasprintf/autosprintf.info gettext-0.18.1.1/gettext-runtime/libasprintf/autosprintf.info --- gettext-0.17/gettext-runtime/libasprintf/autosprintf.info 2007-09-01 14:57:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/autosprintf.info 2010-06-06 18:36:23.000000000 +0000 @@ -1,4 +1,4 @@ -This is autosprintf.info, produced by makeinfo version 4.9 from +This is autosprintf.info, produced by makeinfo version 4.13 from autosprintf.texi. INFO-DIR-SECTION C++ libraries @@ -126,9 +126,9 @@  Tag Table: -Node: Top1347 -Node: Introduction1707 -Node: Class autosprintf2858 -Node: Using autosprintf3868 +Node: Top1348 +Node: Introduction1708 +Node: Class autosprintf2859 +Node: Using autosprintf3869  End Tag Table diff -Nru gettext-0.17/gettext-runtime/libasprintf/ChangeLog gettext-0.18.1.1/gettext-runtime/libasprintf/ChangeLog --- gettext-0.17/gettext-runtime/libasprintf/ChangeLog 2007-11-06 23:27:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,311 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + vasnprintf: Fix syntax errors in libintl build on mingw. + * vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine + pad_ourselves and prec_ourselves after use. + +2010-04-24 Bruno Haible + + vasnprintf: Correct errno value in case of out-of-memory. + * vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF or + sprintf. Use the errno value from SNPRINTF or sprintf. + Reported by Ian Beckwith . + +2010-04-10 Bruno Haible + + vasnprintf: Correct handling of unconvertible wide string arguments. + * vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix crash in %ls directive. + * vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide + string is passed as argument to %ls, with no precision and no width. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix multiple test failures on mingw. + * vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not _snprintf, + or snwprintf, not _snwprintf. + +2010-01-01 Bruno Haible + + * vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is defined, + use wctomb instead of wcrtomb. + +2009-12-12 Bruno Haible + + * *.h, *.c: Untabify. + +2009-11-22 Bruno Haible + + * vasnprintf.c (decimal_point_char): Choose the fast path also on + MacOS X. + +2009-11-17 Eric Blake + + * vasnprintf.c (VASNPRINTF): Avoid shadowing our own local variables. + +2009-08-20 Eric Blake + + * vasnprintf.c (decimal_point_char): Avoid warning on old-style + declaration. + +2009-08-14 Bruno Haible + + Use the gnulib module 'errno'. + * Makefile.am: Include Makefile.gnulib. + (ACLOCAL_AMFLAGS): Add -I gnulib-m4. + (EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4. + (BUILT_SOURCES, noinst_LTLIBRARIES): New variables. + * configure.ac (AC_PREREQ): Require autoconf 2.59 or newer. + Invoke gl_EARLY, gl_INIT. Don't invoke gl_EOVERFLOW. Remove the alloca + tests. + +2009-08-10 Bruno Haible + + * vasnprintf.c (DCHAR_SET): Undefine at the end. + +2009-06-06 Bruno Haible + + * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. + * Makefile.am (libasprintf.la): Silence 'make' output if silent-rules. + +2009-06-06 Bruno Haible + + * configure.ac: Pass package and version to AC_INIT instead of + AM_INIT_AUTOMAKE. + +2009-05-21 Bruno Haible + + Assume automake >= 1.10.2. + * configure.ac (AC_CONFIG_FILES): Remove FIX_MAKEFILE_COMPILE, + FIX_MAKEFILE_INFO invocations. + +2009-04-26 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Update after the calling convention of + u*_conv_from_encoding and u*_conv_to_encoding changed. + +2009-04-08 Bruno Haible + + * Makefile.am (SUFFIXES, CLEANFILES): Remove variables. Not needed any + more. + +2009-03-23 Jim Meyering + + * vasnprintf.c (divide): Fix typo in comment. + +2009-02-26 Bruno Haible + + Fix *printf behaviour regarding the %ls directive. + * vasnprintf.c (local_wcslen, VASNPRINTF): Handle + NEED_PRINTF_DIRECTIVE_LS. + +2009-02-23 Bruno Haible + + Fix invalid read past end of memory block. + * vasnprintf.c (DCHAR_SET): Define. + (local_wcslen): Define only when needed. + (local_strnlen, local_wcsnlen): New functions. + (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls + directives that involve a conversion ourselves. + * configure.ac: Also check for strnlen, wcsnlen, mbrtowc, wcrtomb. + +2009-01-14 Bruno Haible + + * configure.ac: More consistent m4 quoting. + +2008-09-22 Eric Blake + Bruno Haible + + vasnprintf: fix x86/glibc regression on printf("%La", 0.0L) + * vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that supply %A + but mishandle pseudo-NaN. + Reported by Simon Josefsson. + +2008-09-18 Bruno Haible + + * vasnprintf.c (VASNPRINTF): When printing ±0.0L in + NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two + digits for the exponent. + +2008-09-18 Jim Meyering + Bruno Haible + + * vasnprintf.c (decimal_point_char): Define also if + NEED_PRINTF_INFINITE_LONG_DOUBLE. + +2008-09-16 Bruno Haible + and Eric Blake + + vasnprintf: support Irix 5.3 + * vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms that + mishandle long double infinity. + Reported by Tom G. Christensen. + +2008-09-02 Eric Blake + + vasnprintf-posix: handle large precision via %.*d + * vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf + when handling it ourselves. + Reported by Alain Guibert. + +2008-07-10 Ben Pfaff + + * vasnprintf.c: Update references to renamed include files. + +2008-05-21 Bruno Haible + + Avoid one more warning from gcc. + * vasnprintf.c (IF_LINT): Update comments. + (VASNPRINTF): Use it also for the 'prefix' array initializer. + +2008-05-21 Jim Meyering + + avoid a warning from gcc + * vasnprintf.c (IF_LINT): Define. + (scale10_round_decimal_long_double): + Use it to avoid a "may be used uninitialized" warning. + (scale10_round_decimal_double): Likewise. + +2008-05-16 Jim Meyering + Bruno Haible + + Avoid some warnings from "gcc -Wshadow". + * vasnprintf.c (exp, remainder): Define to different identifiers. + +2008-04-19 Bruno Haible + + Work around snprintf bug on Linux libc5. + * vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems. + +2008-04-19 Bruno Haible + + * vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error from + 0.0058 to less than 10^-7. + +2008-04-19 Bruno Haible + + Fix rounding when a precision is given. + * vasnprintf.c (is_borderline): New function. + (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with + 9...9x. + Reported by John Darrington via + Ben Pfaff . + +2008-03-30 Bruno Haible + + Fix buffer overrun. + * vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves: + Don't consider the width for tmp_length. Check count against tmp_length + before doing the padding. Ensure enough allocation during padding. + +2008-03-30 Bruno Haible + + * vasnprintf.c (EOVERFLOW): Remove fallback. + +2008-03-30 Bruno Haible + + Fix bug introduced on 2007-06-10. + * vasnprintf.c (VASNPRINTF): When performing zero-padding, use + spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO. + +2008-02-28 Atsushi SAKAI + + * xsize.h: Fix typo in comment: s/tupe/type/. + +2008-02-07 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems. + Avoids a crash on Windows Vista. + Reported by Adam Strzelecki via + Simon Josefsson . + +2008-02-06 Bruno Haible + + Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20. + * vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST. + Reported by Peter Fales . + +2008-02-06 Bruno Haible + + Fix bug introduced on 2007-06-10. + * vasnprintf.c (VASNPRINTF): Perform zero-padding also if + !NEED_PRINTF_FLAG_ZERO. + +2008-01-29 Jim Meyering + + vasnprintf.c: Avoid warning about unused label + * vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the + "overflow" label definition and associated code with the + same cpp condition that guards the sole use of that label. + +2008-01-26 Bruno Haible + + Rename isnan, applicable to 'double' only, to isnand. + * vasnprintf.c: Include isnand.h instead of isnan.h. + (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan. + +2008-01-08 Jim Meyering + Bruno Haible + + * printf-parse.c (PRINTF_PARSE): Handle a size specifier "q" on MacOS X + and a size specifier "I64" on mingw. Needed for PRIdMAX. + Reported by Peter Fales in + . + +2008-04-20 Bruno Haible + + * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL. + +2007-11-26 Bruno Haible + + * vasnprintf.c (decode_long_double): Don't abort if the 'long double' + type has excess precision. + Reported by Jim Meyering in + . + +2007-11-10 Bruno Haible + + * configure.ac: Do _snprintf check like gnulib's vasnprintf.m4 does. + +2007-11-10 Bruno Haible + + * configure.ac: Invoke AC_TYPE_LONG_LONG_INT instead of + gl_AC_TYPE_LONG_LONG. Don't invoke gt_TYPE_LONGDOUBLE. + Report and patch by Kacper. + +2007-11-10 Bruno Haible + + * configure.ac: Invoke gl_EOVERFLOW. + +2007-11-09 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf with a + size argument < 2. + +2007-11-09 Bruno Haible + + * vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf buffer. + Fixes an inefficiency introduced on 2007-11-03. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/libasprintf/config.h.in gettext-0.18.1.1/gettext-runtime/libasprintf/config.h.in --- gettext-0.17/gettext-runtime/libasprintf/config.h.in 2007-11-06 23:35:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/config.h.in 2010-06-06 20:11:11.000000000 +0000 @@ -22,6 +22,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T @@ -32,15 +35,12 @@ declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX -/* Define if you have the 'long double' type. */ -#undef HAVE_LONG_DOUBLE - -/* Define if you have the 'long long' type. */ -#undef HAVE_LONG_LONG - /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT +/* Define to 1 if you have the `mbrtowc' function. */ +#undef HAVE_MBRTOWC + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H @@ -66,6 +66,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H @@ -81,12 +84,22 @@ /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T +/* Define to 1 if you have the `wcrtomb' function. */ +#undef HAVE_WCRTOMB + /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN +/* Define to 1 if you have the `wcsnlen' function. */ +#undef HAVE_WCSNLEN + /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + /* Name of package */ #undef PACKAGE @@ -102,12 +115,17 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ -#undef SIZE_MAX +#ifndef SIZE_MAX +# undef SIZE_MAX +#endif /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be @@ -129,9 +147,32 @@ #undef inline #endif +/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif + /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t /* Define to `unsigned int' if does not define. */ #undef size_t + +/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED + diff -Nru gettext-0.17/gettext-runtime/libasprintf/configure gettext-0.18.1.1/gettext-runtime/libasprintf/configure --- gettext-0.17/gettext-runtime/libasprintf/configure 2007-11-06 23:35:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/configure 2010-06-06 20:11:10.000000000 +0000 @@ -1,60 +1,83 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.65 for libasprintf 1.0. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -63,20 +86,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -87,32 +108,270 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -126,13 +385,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -147,428 +410,142 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit } -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -if as_func_ret_success; then - : +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi else - exitcode=1 - echo as_func_ret_success failed. + as_ln_s='cp -p' fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' else - exitcode=1 - echo positional parameters were not saved. + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' fi +as_executable_p=$as_test_x -test \$exitcode = 0) || { (exit 1); exit 1; } +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : -else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - case $as_dir in - /*) - for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" - done;; - esac -done -IFS=$as_save_IFS +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac -fi +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} +case X$lt_ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - - - -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : -else - exitcode=1 - echo positional parameters were not saved. -fi - -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - - -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} - -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} +ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! : else # Restart under the correct shell. @@ -578,9 +555,9 @@ if test "X$1" = X--fallback-echo; then # used as fallback echo shift - cat </dev/null 2>&1 && unset CDPATH -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done + fi -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else - # maybe with a smaller string... - prev=: + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi fi fi fi fi -fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -721,14 +694,14 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. -PACKAGE_NAME= -PACKAGE_TARNAME= -PACKAGE_VERSION= -PACKAGE_STRING= -PACKAGE_BUGREPORT= +PACKAGE_NAME='libasprintf' +PACKAGE_TARNAME='libasprintf' +PACKAGE_VERSION='1.0' +PACKAGE_STRING='libasprintf 1.0' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' ac_unique_file="vasprintf.c" # Factoring default headers for most tests. @@ -767,120 +740,165 @@ # include #endif" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -SED -GREP -EGREP -LN_S -ECHO +gl_header_list= +ac_subst_vars='gltests_LTLIBOBJS +gltests_LIBOBJS +gl_LTLIBOBJS +gl_LIBOBJS +am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +PERL +TEXI2PDF +DVIPS +gltests_WITNESS +EOVERFLOW_VALUE +EOVERFLOW_HIDDEN +ENOLINK_VALUE +ENOLINK_HIDDEN +EMULTIHOP_VALUE +EMULTIHOP_HIDDEN +ERRNO_H +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H +NEXT_ERRNO_H +PRAGMA_SYSTEM_HEADER +INCLUDE_NEXT_AS_FIRST_DIRECTIVE +INCLUDE_NEXT +ALLOCA_H +ALLOCA +LTALLOCA +GL_COND_LIBTOOL_FALSE +GL_COND_LIBTOOL_TRUE +LTNOUNDEF +CXXCPP +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +lt_ECHO AR -RANLIB +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +LIBTOOL +OBJDUMP DLLTOOL AS -OBJDUMP -CPP -CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -LTNOUNDEF -ALLOCA -ALLOCA_H -DVIPS -TEXI2PDF -PERL -LIBOBJS -LTLIBOBJS' +RANLIB +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +enable_libtool_lock +' ac_precious_vars='build_alias host_alias target_alias @@ -893,14 +911,14 @@ CXXFLAGS CCC CPP -CXXCPP -F77 -FFLAGS' +CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -934,7 +952,7 @@ localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' @@ -999,13 +1017,20 @@ datarootdir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; @@ -1018,13 +1043,20 @@ dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -1215,22 +1247,36 @@ ac_init_version=: ;; -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. @@ -1250,25 +1296,25 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; @@ -1277,23 +1323,36 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac fi -# Be sure to have absolute directory names. +# Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1307,7 +1366,7 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes @@ -1323,23 +1382,21 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1366,13 +1423,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1398,7 +1453,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. +\`configure' configures libasprintf 1.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1420,9 +1475,9 @@ Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -1432,25 +1487,25 @@ For better control, use the options below. Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/libasprintf] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -1467,12 +1522,17 @@ fi if test -n "$ac_init_help"; then - + case $ac_init_help in + short | recursive ) echo "Configuration of libasprintf 1.0:";; + esac cat <<\_ACEOF Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] @@ -1484,10 +1544,9 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] - --with-tags[=TAGS] include additional configurations [automatic] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] Some influential environment variables: CC C compiler command @@ -1495,18 +1554,17 @@ LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. +Report bugs to the package provider. _ACEOF ac_status=$? fi @@ -1514,15 +1572,17 @@ if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1558,7 +1618,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1567,1001 +1627,1776 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 +libasprintf configure 1.0 +generated by GNU Autoconf 2.65 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - $ $0 $@ + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## +} # ac_fn_c_try_compile -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +} # ac_fn_cxx_try_compile -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo +} # ac_fn_c_try_cpp - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ -# Predefined preprocessor variables. +#ifdef __STDC__ +# include +#else +# include +#endif -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +#undef $2 +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +int +main () +{ +return $2 (); + ; + return 0; +} _ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_func -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval +} # ac_fn_cxx_try_cpp -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" + eval "$3=yes" fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_type + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 +$as_echo_n "checking whether $2 is declared... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $2 + (void) $2; +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} +} # ac_fn_c_check_decl +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +It was created by libasprintf $as_me 1.0, which was +generated by GNU Autoconf 2.65. Invocation command line was + $ $0 $@ +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` -ac_aux_dir= -for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` -am__api_version='1.10' +_ASUNAME -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS +} >&5 -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +cat >&5 <<_ACEOF -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi +## ----------- ## +## Core tests. ## +## ----------- ## - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done done -IFS=$as_save_IFS +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} -fi - - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi -fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi - test -n "$AWK" && break + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done +ac_signal=0 -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi +$as_echo "/* confdefs.h */" > confdefs.h -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi +# Predefined preprocessor variables. +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF -# Define the identity of the package. - PACKAGE=libasprintf - VERSION=1.0 +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" +#define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" +#define PACKAGE_URL "$PACKAGE_URL" _ACEOF -# Some tools Automake needs. -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} +gl_header_list="$gl_header_list stdlib.h" +gl_header_list="$gl_header_list string.h" +gl_header_list="$gl_header_list errno.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} +ac_aux_dir= +for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5 +fi +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +am__api_version='1.11' -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done IFS=$as_save_IFS -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +rm -rf conftest.one conftest.two conftest.dir - if test "x$ac_ct_STRIP" = x; then - STRIP=":" +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh fi -else - STRIP="$ac_cv_prog_STRIP" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -AMTAR=${AMTAR-"${am_missing_run}tar"} +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` -ac_config_headers="$ac_config_headers config.h" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - if test "x$ac_ct_CC" = x; then - CC="" + if test "x$ac_ct_STRIP" = x; then + STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - CC=$ac_ct_CC + STRIP=$ac_ct_STRIP fi else - CC="$ac_cv_prog_CC" + STRIP="$ac_cv_prog_STRIP" fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=1;; +esac +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='libasprintf' + VERSION='1.0' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + +ac_config_headers="$ac_config_headers config.h" + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2572,18 +3407,18 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then @@ -2602,11 +3437,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -2617,10 +3452,10 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2630,25 +3465,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -2661,10 +3496,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. @@ -2674,25 +3509,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -2704,12 +3539,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -2719,51 +3550,37 @@ fi -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } # Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2775,42 +3592,38 @@ } _ACEOF ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + ac_rmfiles= for ac_file in $ac_files do case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles -if { (ac_try="$ac_link_default" +if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -2820,14 +3633,14 @@ do test -f "$ac_file" || continue case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -2846,78 +3659,42 @@ else ac_file='' fi - -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -2925,37 +3702,90 @@ for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2967,51 +3797,46 @@ } _ACEOF rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" +if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else - echo "$as_me: failed program was:" >&5 + $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } fi - rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3025,54 +3850,34 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + ac_compiler_gnu=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3083,34 +3888,11 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3121,35 +3903,12 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : - ac_c_werror_flag=$ac_save_c_werror_flag +else + ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3160,42 +3919,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then @@ -3211,18 +3946,14 @@ CFLAGS= fi fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -3279,31 +4010,9 @@ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then + if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done @@ -3314,17 +4023,19 @@ # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac +if test "x$ac_cv_prog_cc_c89" != xno; then : +fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -3339,44 +4050,44 @@ am_make=${MAKE-make} cat > confinc << 'END' am__doit: - @echo done + @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then +if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi @@ -3396,10 +4107,10 @@ depcc="$CC" am_compiler_list= -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up @@ -3424,6 +4135,11 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and @@ -3441,7 +4157,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -3451,19 +4177,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; none) break ;; esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message @@ -3487,8 +4217,8 @@ fi fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if @@ -3516,10 +4246,10 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. @@ -3529,25 +4259,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -3560,10 +4290,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. @@ -3573,25 +4303,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -3603,12 +4333,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -3618,49 +4344,36 @@ fi fi # Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3674,54 +4387,34 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + ac_compiler_gnu=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3732,34 +4425,11 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3770,35 +4440,12 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3809,42 +4456,18 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then @@ -3868,10 +4491,10 @@ depcc="$CXX" am_compiler_list= -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up @@ -3896,6 +4519,11 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and @@ -3913,7 +4541,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -3923,19 +4561,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; none) break ;; esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message @@ -3959,8 +4601,8 @@ fi fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if @@ -3974,118 +4616,31 @@ fi -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' @@ -4101,28 +4656,24 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' @@ -4142,24 +4693,120 @@ +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + + + + # Code from module alloca: + # Code from module alloca-opt: + # Code from module errno: + # Code from module include_next: + + case "$host_os" in mingw* | cygwin*) - { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 -echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } - if test "${gl_cv_ld_autoimport+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5 +$as_echo_n "checking for auto-import of symbols... " >&6; } + if test "${gl_cv_ld_autoimport+set}" = set; then : + $as_echo_n "(cached) " >&6 else gl_save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4170,217 +4817,165 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : gl_cv_ld_autoimport=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_ld_autoimport=no + gl_cv_ld_autoimport=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LDFLAGS="$gl_save_LDFLAGS" fi - { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 -echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5 +$as_echo "$gl_cv_ld_autoimport" >&6; } if test $gl_cv_ld_autoimport = yes; then LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" fi ;; esac +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi +macro_version='2.2.6' +macro_revision='1.3012' -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_fast_install=yes -fi -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if test "${ac_cv_path_SED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do + for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 done done -done + done IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break + if test -z "$ac_cv_path_SED"; then + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done +else + ac_cv_path_SED=$SED +fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + -SED=$lt_cv_path_SED -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 else + if test -z "$GREP"; then ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" + $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" @@ -4392,77 +4987,61 @@ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - - $ac_path_GREP_found && break 3 + $ac_path_GREP_found && break 3 + done + done done -done - -done IFS=$as_save_IFS - - -fi - -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else ac_cv_path_GREP=$GREP fi - fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + if test -z "$EGREP"; then ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" + $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` + as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" @@ -4474,39 +5053,114 @@ rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_found && break 3 + done + done done -done - -done IFS=$as_save_IFS - - -fi - -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi - + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else ac_cv_path_EGREP=$EGREP fi - fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if test "${ac_cv_path_FGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then +if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no @@ -4515,8 +5169,8 @@ ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -4529,9 +5183,9 @@ [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; @@ -4545,14 +5199,14 @@ ;; esac elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test "${lt_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR @@ -4582,19 +5236,17 @@ LD="$lt_cv_path_LD" if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test "${lt_cv_path_NM+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do @@ -4682,637 +5319,406 @@ done IFS="$lt_save_ifs" done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm + : ${lt_cv_path_NM=no} fi fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -beos*) - lt_cv_deplibs_check_method=pass_all - ;; +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; + test -n "$ac_ct_DUMPBIN" && break +done -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; +fi -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: ;; esac - else - lt_cv_deplibs_check_method=pass_all fi - ;; -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if test "${lt_cv_nm_interface+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:5462: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:5465: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:5468: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" fi - ;; + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if test "${lt_cv_sys_max_cmd_len+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; - ncr) - lt_cv_deplibs_check_method=pass_all + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 ;; - siemens) - lt_cv_deplibs_check_method=pass_all + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi ;; - pc) - lt_cv_deplibs_check_method=pass_all + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi ;; esac - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac +fi +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown +max_cmd_len=$lt_cv_sys_max_cmd_len -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false fi -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4936 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' ;; +esac -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - lt_cv_cc_needs_belf=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -*-*-cygwin* | *-*-mingw* | *-*-pw32*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if test "${lt_cv_ld_reload_flag+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 -echo "${ECHO_T}$DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - + lt_cv_ld_reload_flag='-r' fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AS="${ac_tool_prefix}as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { echo "$as_me:$LINENO: result: $AS" >&5 -echo "${ECHO_T}$AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AS="as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -echo "${ECHO_T}$ac_ct_AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - if test -n "$ac_tool_prefix"; then +if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. @@ -5322,25 +5728,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 -echo "${ECHO_T}$OBJDUMP" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -5349,10 +5755,10 @@ ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. @@ -5362,25 +5768,25 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -5388,12 +5794,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -5402,419 +5804,217 @@ OBJDUMP="$ac_cv_prog_OBJDUMP" fi - ;; - -esac +test -z "$OBJDUMP" && OBJDUMP=objdump -need_locks="$enable_libtool_lock" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if test "${lt_cv_deplibs_check_method+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. -rm -f conftest.err conftest.$ac_ext +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi +beos*) + lt_cv_deplibs_check_method=pass_all + ;; - done - ac_cv_prog_CPP=$CPP +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; - # Broken: fails on valid input. -continue -fi +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; -rm -f conftest.err conftest.$ac_ext +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; - # Passes both tests. -ac_preproc_ok=: -break -fi +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; -rm -f conftest.err conftest.$ac_ext +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; -int -main () -{ +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; - ac_cv_header_stdc=no -fi +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; -fi +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; -fi +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF -fi -# On IRIX 5.3, sys/types and inttypes.h are conflicting. @@ -5824,832 +6024,374 @@ -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - eval "$as_ac_Header=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -done - - -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_header_compiler=no +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes + AR=$ac_ct_AR + fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + AR="$ac_cv_prog_AR" fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # Broken: fails on valid input. -continue +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break fi - -rm -f conftest.err conftest.$ac_ext - +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CXXCPP=$CXXCPP + done +IFS=$as_save_IFS fi - CXXCPP=$ac_cv_prog_CXXCPP -else - ac_cv_prog_CXXCPP=$CXXCPP fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue + STRIP=$ac_ct_STRIP + fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break + STRIP="$ac_cv_prog_STRIP" fi -rm -f conftest.err conftest.$ac_ext +test -z "$STRIP" && STRIP=: + -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -fi -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - test -n "$F77" && break - done fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - F77=$ac_ct_F77 + RANLIB=$ac_ct_RANLIB fi +else + RANLIB="$ac_cv_prog_RANLIB" fi +test -z "$RANLIB" && RANLIB=: -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - end -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= - ac_cv_prog_f77_g=no +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi -else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi -fi -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -fi -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } -else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + # Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : + $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. @@ -6661,33 +6403,18 @@ # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; -cygwin* | mingw* | pw32*) +cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; -hpux*) # Its linker distinguishes data from code symbols +hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' @@ -6712,57 +6439,85 @@ ;; esac +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. +# Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* - cat > conftest.$ac_ext < conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; -void nm_test_func(){} +void nm_test_func(void); +void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} -EOF +_LT_EOF - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" @@ -6771,53 +6526,55 @@ fi # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif -EOF +_LT_EOF # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif + cat <<_LT_EOF >> conftest.$ac_ext -/* The mapping between symbol names and symbols. */ +/* The mapping between symbol names and symbols. */ const struct { const char *name; - lt_ptr_t address; + void *address; } -lt_preloaded_symbols[] = +lt__PROGRAM__LTX_preloaded_symbols[] = { -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} }; +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + #ifdef __cplusplus } #endif -EOF +_LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" @@ -6835,7 +6592,7 @@ echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi - rm -f conftest* conftst* + rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then @@ -6851,4558 +6608,3421 @@ lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } fi -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -# Constants: -rm="rm -f" -# Global variables: -default_ofile=libtool -can_build_shared=yes -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -else - AR="$ac_cv_prog_AR" + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 6670 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if test "${lt_cv_cc_needs_belf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - RANLIB=$ac_ct_RANLIB + DSYMUTIL=$ac_ct_DSYMUTIL fi else - RANLIB="$ac_cv_prog_RANLIB" + DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - if test "x$ac_ct_STRIP" = x; then - STRIP=":" + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - STRIP=$ac_ct_STRIP + NMEDIT=$ac_ct_NMEDIT fi else - STRIP="$ac_cv_prog_STRIP" + NMEDIT="$ac_cv_prog_NMEDIT" fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi - -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + done +IFS=$as_save_IFS +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 + LIPO="$ac_cv_prog_LIPO" +fi -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -EOF - fi ;; - esac - fi - break - fi +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + OTOOL="$ac_cv_prog_OTOOL" fi -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" else - MAGIC_CMD=: + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 fi +else + OTOOL64="$ac_cv_prog_OTOOL64" fi - fi - ;; -esac -enable_dlopen=no -enable_win32_dll=yes -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi -test -z "$pic_mode" && pic_mode=default -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Source file extension for C test sources. -ac_ext=c -# Object file extension for compiled C test sources. -objext=o -objext=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -lt_prog_compiler_no_builtin_flag= -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if test "${lt_cv_apple_cc_single_mod+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7495: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7499: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes else - : + lt_cv_ld_exported_symbols_list=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - ;; + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; + done + ac_cv_prog_CPP=$CPP - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; +int +main () +{ - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; +else + ac_cv_header_stdc=no +fi +rm -f conftest* - rdos*) - lt_prog_compiler_static='-non_shared' - ;; +fi - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; +else + ac_cv_header_stdc=no +fi +rm -f conftest* - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; +fi - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } +$as_echo "#define STDC_HEADERS 1" >>confdefs.h -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then +fi -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7788: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:7792: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi +done -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= -fi +done -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7892: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:7896: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } else - need_locks=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac + test -n "$ac_ct_CXX" && break done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +int +main () +{ +#ifndef __GNUC__ + choke me +#endif -EOF - fi - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; +int +main () +{ - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' +int +main () +{ - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 +int +main () +{ -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; +depcc="$CXX" am_compiler_list= - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue else - ld_shlibs=no + break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; esac - - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break fi - ;; + fi + done - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_cxx_try_cpp "$LINENO"; then : -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + done + ac_cv_prog_CXXCPP=$CXXCPP - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : -int -main () -{ +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext - ; - return 0; -} + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +_lt_caught_CXX_error=yes; } +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +else + _lt_caught_CXX_error=yes fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; +# Set options +enable_win32_dll=yes - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - freebsd1*) - ld_shlibs=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; + ;; +esac - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; +test -z "$AS" && AS=as - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; +test -z "$DLLTOOL" && DLLTOOL=dlltool - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' +test -z "$OBJDUMP" && OBJDUMP=objdump + + + - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; + + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; *) - ld_shlibs=no + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" ;; esac - fi +else + enable_shared=yes +fi -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" ;; esac - fi - ;; -esac +else + enable_static=yes +fi -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + pic_mode=default fi -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH +test -z "$pic_mode" && pic_mode=default - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" ;; esac - ;; +else + enable_fast_install=yes +fi - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes +# Always use our own libtool. +LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; -rdos*) - dynamic_linker=no - ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac -fi -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; +test -z "$LN_S" && LN_S="ln -s" - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes -fi - ;; - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef shl_load -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_shl_load=no +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if test "${lt_cv_objdir+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dld_shl_load=no + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rmdir .libs 2>/dev/null fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef dlopen -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me -#endif -int -main () -{ -return dlopen (); - ; - return 0; -} +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_dl_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_svld_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_dld_dld_link=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi -fi -fi -fi +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -fi +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -fi +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - ;; - esac +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi +# Global variables: +ofile=libtool +can_build_shared=yes - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" +with_gnu_ld="$lt_cv_prog_gnu_ld" - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" +old_CC="$CC" +old_CFLAGS="$CFLAGS" - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 -#if HAVE_DLFCN_H -#include -#endif +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org -#include +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif -#ifdef __cplusplus -extern "C" void exit (int); -#endif -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -#include -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif + else + MAGIC_CMD=: + fi +fi -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif + fi + ;; +esac -#ifdef __cplusplus -extern "C" void exit (int); -#endif +# Use C for the default configuration in the libtool script -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi +# Source file extension for C test sources. +ac_ext=c -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no +# Object file extension for compiled C test sources. +objext=o +objext=$objext -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - cat <<__EOF__ >> "$cfgfile" -#! $SHELL -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. -# A sed program that does not truncate output. -SED=$lt_SED -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# The names of the tagged configurations supported by this script. -available_tags= +# Allow CC to be a program name with arguments. +compiler=$CC -# ### BEGIN LIBTOOL CONFIG +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc +lt_prog_compiler_no_builtin_flag= -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9025: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:9029: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi -# An echo program that does not interpret backslashes. -echo=$lt_echo +fi -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler -# Is the compiler the GNU C compiler? -with_gcc=$GCC -# An ERE matcher. -EGREP=$lt_EGREP + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= -# The linker used to build libraries. -LD=$lt_LD +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -# Whether we need hard or soft links. -LN_S=$lt_LN_S + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' -# A BSD-compatible nm program. -NM=$lt_NM + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; -# A symbol stripping program -STRIP=$lt_STRIP + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; -# Used on cygwin: assembler. -AS="$AS" + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; -# The name of the directory that contains temporary libtool files. -objdir=$objdir + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; -# Object file suffix (normally "o"). -objext="$ac_objext" + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; -# Must we lock files when doing compilation? -need_locks=$lt_need_locks + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; -# Do we need a version for libraries? -need_version=$need_version + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; -# Whether dlopen is supported. -dlopen_support=$enable_dlopen + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static + rdos*) + lt_prog_compiler_static='-non_shared' + ;; -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; -# Library versioning type. -version_type=$version_type + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; -# Format of library name prefix. -libname_spec=$lt_libname_spec + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9364: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:9368: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps +fi -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9469: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:9473: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9524: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:9528: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms -# ### END LIBTOOL CONFIG -__EOF__ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" - -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no ;; esac - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +_LT_EOF + fi + ;; -CC="$lt_save_CC" + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" -fi - - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi - - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag= + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. -# Source file extension for C++ test sources. -ac_ext=cpp +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; -# ltmain only uses $CC for tagged configurations so make sure $CC is set. + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; -# Allow CC to be a program name with arguments. -compiler=$CC + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi - -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - -else - GXX=no - with_gnu_ld=no - wlarc= -fi - -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then # We have reworked collect2 : - else + else # We have old collect2 - hardcode_direct_CXX=unsupported + hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then + else + # not using gcc + if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' + shared_flag='-G' else - shared_flag='${wl}-bM:SRE' + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi fi fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -11413,24 +10033,7 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -11444,32 +10047,22 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -11480,24 +10073,7 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -11511,5115 +10087,2109 @@ if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi fi - fi - ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; + ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes ;; + esac + ;; - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi ;; - esac - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes ;; esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + ;; - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo(void) {} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + *nto* | *qnx*) + ;; - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + else + ld_shlibs=no + fi + ;; - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; - output_verbose_link_cmd='echo' + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no + esac + fi + fi -GCC_CXX="$GXX" -LD_CXX="$LD" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... +with_gnu_ld=$with_gnu_ld -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - for p in `eval $output_verbose_link_cmd`; do - case $p in - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - *) ;; # Ignore the rest. - esac - done - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi -$rm -f confest.$objext -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } ;; esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac + fi ;; esac -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12765: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:12769: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac -else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no -fi -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12869: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:12873: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; -rdos*) - dynamic_linker=no - ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then - - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } - -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_CXX -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_CXX -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX -# ### END LIBTOOL TAG CONFIG: $tagname -__EOF__ -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld - - else - tagname="" - fi - ;; - - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" - -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* - - -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - - -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. case $host_os in aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= - -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no fi ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; - - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - - *) - lt_prog_compiler_pic_F77='-fPIC' + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; + ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; +freebsd1*) + dynamic_linker=no + ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; *) - lt_prog_compiler_can_build_shared_F77=no - ;; + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; esac - fi - -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then - -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14434: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:14438: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + shlibpath_overrides_runpath=yes fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } - -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14538: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:14542: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* - -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' fi -else - need_locks=no -fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 +rdos*) + dynamic_linker=no + ;; -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; -EOF - fi - ;; +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH ;; - - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; + esac + ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - freebsd1*) - ld_shlibs_F77=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; +fi -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; + ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if test "${ac_cv_lib_dld_shl_load+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; - -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if test "${ac_cv_lib_svld_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if test "${ac_cv_lib_dld_dld_link+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; +fi -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless + fi -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done +fi - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac -cfgfile="$ofile" + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 11898 "configure" +#include "confdefs.h" -# Whether or not to build static libraries. -build_old_libs=$enable_static +#if HAVE_DLFCN_H +#include +#endif -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 +#include -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); -# An echo program that does not interpret backslashes. -echo=$lt_echo + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self_static+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 11994 "configure" +#include "confdefs.h" -# A language-specific compiler. -CC=$lt_compiler_F77 +#if HAVE_DLFCN_H +#include +#endif -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 +#include -# An ERE matcher. -EGREP=$lt_EGREP +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif -# The linker used to build libraries. -LD=$lt_LD_F77 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif -# Whether we need hard or soft links. -LN_S=$lt_LN_S +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; -# A BSD-compatible nm program. -NM=$lt_NM + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); -# A symbol stripping program -STRIP=$lt_STRIP + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac -# Used on cygwin: assembler. -AS="$AS" + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac -# The name of the directory that contains temporary libtool files. -objdir=$objdir + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 - -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 - -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# This is the shared library runtime path variable. -runpath_var=$runpath_var - -# This is the shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 - -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 - -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } -# ### END LIBTOOL TAG CONFIG: $tagname -__EOF__ -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi fi - - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -16628,29 +12198,60 @@ CC="$lt_save_CC" - else - tagname="" - fi - ;; - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no -# Source file extension for Java test sources. -ac_ext=java +# Source file extension for C++ test sources. +ac_ext=cpp -# Object file extension for compiled Java test sources. +# Object file extension for compiled C++ test sources. objext=o -objext_GCJ=$objext +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' -# ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} @@ -16662,26 +12263,42 @@ compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* +$RM conftest* -ac_outfile=conftest.$ac_objext + ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` -$rm conftest* +$RM -r conftest* -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; @@ -16689,1486 +12306,1901 @@ *) break;; esac done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no - -old_archive_cmds_GCJ=$old_archive_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi -lt_prog_compiler_no_builtin_flag_GCJ= + if test "$GXX" = yes; then + # Set up default GNU C++ configuration -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16729: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:16733: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* - + with_gnu_ld=no fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } else - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; + else + GXX=no + with_gnu_ld=no + wlarc= + fi - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; +int +main () +{ - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; +int +main () +{ - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } + ;; -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17022: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:17026: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac + gnu*) + ;; -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17126: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:17130: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5]* | *pgcpp\ [1-5]*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 will use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + xl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=echo + else + ld_shlibs_CXX=no + fi + ;; -EOF - fi - ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; + hardcode_libdir_separator_CXX=: - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; - - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. + output_verbose_link_cmd='echo' -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' -_LT_EOF - ;; + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; esac ;; - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; esac + ;; - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= -int -main () +cat > conftest.$ac_ext <<_LT_EOF +class Foo { +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + for p in `eval "$output_verbose_link_cmd"`; do + case $p in -fi + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + else + prev= + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC*) + # IBM XL 8.0 on PPC + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:13950: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:13954: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; - - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; - - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - - freebsd1*) - ld_shlibs_GCJ=no - ;; +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; +fi - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14049: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:14053: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14101: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:14105: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # -case "x$archive_cmds_need_lc_GCJ" in +case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes + archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in + case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; @@ -18176,54 +14208,118 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } then - archive_cmds_need_lc_GCJ=no + archive_cmds_need_lc_CXX=no else - archive_cmds_need_lc_GCJ=yes + archive_cmds_need_lc_CXX=yes fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } + $RM conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + library_names_spec= libname_spec='lib$name' soname_spec= @@ -18237,7 +14333,6 @@ version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" - need_lib_prefix=unknown hardcode_into_libs=no @@ -18255,7 +14350,7 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; -aix4* | aix5*) +aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no @@ -18274,7 +14369,7 @@ aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no @@ -18300,9 +14395,18 @@ ;; amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac ;; beos*) @@ -18325,25 +14429,28 @@ # libtool to hard-code these into programs ;; -cygwin* | mingw* | pw32*) +cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ - $rm \$dlpath' + $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in @@ -18352,20 +14459,20 @@ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; - mingw*) + mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) @@ -18389,7 +14496,7 @@ version_type=darwin need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH @@ -18487,18 +14594,18 @@ fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH @@ -18507,8 +14614,10 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 ;; interix[3-9]*) @@ -18575,6 +14684,32 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. @@ -18582,7 +14717,7 @@ # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi @@ -18599,7 +14734,7 @@ version_type=sunos need_lib_prefix=no need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' @@ -18620,14 +14755,16 @@ shlibpath_overrides_runpath=yes ;; -nto-qnx*) - version_type=linux +*nto* | *qnx*) + version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' ;; openbsd*) @@ -18636,13 +14773,13 @@ need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no @@ -18714,7 +14851,6 @@ sni) shlibpath_overrides_runpath=no need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) @@ -18745,13 +14881,12 @@ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" @@ -18761,6 +14896,17 @@ sys_lib_dlsearch_path_spec='/usr/lib' ;; +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -18772,8 +14918,8 @@ dynamic_linker=no ;; esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -18781,35 +14927,80 @@ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink + hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate + hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. - hardcode_action_GCJ=unsupported + hardcode_action_CXX=unsupported fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } -if test "$hardcode_action_GCJ" = relink; then +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || @@ -18819,4880 +15010,4101 @@ fi -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="$ofile" - - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ + fi # test -n "$compiler" -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install + CC=$lt_save_CC + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_GCJ -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_GCJ -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + ac_config_commands="$ac_config_commands libtool" -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir +# Only expand once: -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ +case "$host_os" in + # On Cygwin, without -no-undefined, a warning is emitted and only a static + # library is built. + beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;; + *) LTNOUNDEF='' ;; +esac -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac -# Must we lock files when doing compilation? -need_locks=$lt_need_locks +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix +else -# Do we need a version for libraries? -need_version=$need_version +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF -# Whether dlopen is supported. -dlopen_support=$enable_dlopen +fi -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +$as_echo_n "checking for long long int... " >&6; } +if test "${ac_cv_type_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; +int +main () +{ +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); + ; + return 0; +} -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_type_long_long_int=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifndef LLONG_MAX + # define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + # define LLONG_MAX (HALF - 1 + HALF) + #endif +int +main () +{ +long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_type_long_long_int=yes +else + ac_cv_type_long_long_int=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ +else + ac_cv_type_long_long_int=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: $ac_cv_type_long_long_int" >&5 +$as_echo "$ac_cv_type_long_long_int" >&6; } + if test $ac_cv_type_long_long_int = yes; then -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ + fi -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +$as_echo_n "checking for wchar_t... " >&6; } +if test "${gt_cv_c_wchar_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + wchar_t foo = (wchar_t)'\0'; +int +main () +{ -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wchar_t=yes +else + gt_cv_c_wchar_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +$as_echo "$gt_cv_c_wchar_t" >&6; } + if test $gt_cv_c_wchar_t = yes; then -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec +$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds + fi -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +$as_echo_n "checking for wint_t... " >&6; } +if test "${gt_cv_c_wint_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + wint_t foo = (wchar_t)'\0'; +int +main () +{ -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wint_t=yes +else + gt_cv_c_wint_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +$as_echo "$gt_cv_c_wint_t" >&6; } + if test $gt_cv_c_wint_t = yes; then -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib +$as_echo "#define HAVE_WINT_T 1" >>confdefs.h -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ + fi -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ +ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method +else -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd +$as_echo "#define ptrdiff_t long" >>confdefs.h -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ +fi -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 +$as_echo_n "checking for inttypes.h... " >&6; } +if test "${gl_cv_header_inttypes_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; return !i; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_inttypes_h=yes +else + gl_cv_header_inttypes_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 +$as_echo "$gl_cv_header_inttypes_h" >&6; } + if test $gl_cv_header_inttypes_h = yes; then -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 +_ACEOF -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + fi -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 +$as_echo_n "checking for stdint.h... " >&6; } +if test "${gl_cv_header_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; return !i; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_stdint_h=yes +else + gl_cv_header_stdint_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 +$as_echo "$gl_cv_header_stdint_h" >&6; } + if test $gl_cv_header_stdint_h = yes; then -# This is the shared library path variable. -shlibpath_var=$shlibpath_var +cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H_WITH_UINTMAX 1 +_ACEOF -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath + fi -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +$as_echo_n "checking for intmax_t... " >&6; } +if test "${gt_cv_c_intmax_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ +int +main () +{ +intmax_t x = -1; + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_intmax_t=yes +else + gt_cv_c_intmax_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +$as_echo "$gt_cv_c_intmax_t" >&6; } + if test $gt_cv_c_intmax_t = yes; then -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec +$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + fi -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 +_ACEOF -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ +fi -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds +done -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +$as_echo_n "checking for SIZE_MAX... " >&6; } +if test "${gl_cv_size_max+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ + gl_cv_size_max= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# ### END LIBTOOL TAG CONFIG: $tagname +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif -__EOF__ +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then : + gl_cv_size_max=yes +fi +rm -f conftest* + if test -z "$gl_cv_size_max"; then + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include +#include "; then : else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + size_t_bits_minus_1= fi + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC="$lt_save_CC" - - else - tagname="" - fi - ;; +else + fits_in_uint= +fi - RC) + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + extern size_t foo; + extern unsigned long foo; +int +main () +{ -# Source file extension for RC test sources. -ac_ext=rc + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + fits_in_uint=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi + else + gl_cv_size_max='((size_t)~(size_t)0)' + fi + fi -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +$as_echo "$gl_cv_size_max" >&6; } + if test "$gl_cv_size_max" != yes; then -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $gl_cv_size_max +_ACEOF -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" + fi -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 +_ACEOF -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* +fi -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* +done -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -lt_cv_prog_compiler_c_o_RC=yes -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="$ofile" - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if test "${ac_cv_working_alloca_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes +else + ac_cv_working_alloca_h=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: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h -# Whether or not to build static libraries. -build_old_libs=$enable_static +fi -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if test "${ac_cv_func_alloca_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes +else + ac_cv_func_alloca_works=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: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install +if test $ac_cv_func_alloca_works = yes; then -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_RC +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC +$as_echo "#define C_ALLOCA 1" >>confdefs.h -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_RC +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if test "${ac_cv_os_cray+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif -# Whether we need hard or soft links. -LN_S=$lt_LN_S +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes +else + ac_cv_os_cray=no +fi +rm -f conftest* -# A BSD-compatible nm program. -NM=$lt_NM +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : -# A symbol stripping program -STRIP=$lt_STRIP +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func +_ACEOF -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + break +fi -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" + done +fi -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if test "${ac_cv_c_stack_direction+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} -# Used on cygwin: assembler. -AS="$AS" +int +main () +{ + return find_stack_direction () < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 +else + ac_cv_c_stack_direction=-1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -# The name of the directory that contains temporary libtool files. -objdir=$objdir +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC +fi -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode + for ac_header in $gl_header_list +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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len +fi -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC +done -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC -# Library versioning type. -version_type=$version_type + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 +$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } +if test "${gl_cv_have_include_next+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + cat < conftestd1a/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd2/conftest.h +#ifndef DEFINED_IN_CONFTESTD1 +#error "include_next test doesn't work" +#endif +#define DEFINED_IN_CONFTESTD2 +EOF + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=yes +else + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=buggy +else + gl_cv_have_include_next=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Format of library name prefix. -libname_spec=$lt_libname_spec +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 +$as_echo "$gl_cv_have_include_next" >&6; } + PRAGMA_SYSTEM_HEADER= + if test $gl_cv_have_include_next = yes; then + INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi + else + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi + fi -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 +$as_echo_n "checking for complete errno.h... " >&6; } +if test "${gl_cv_header_errno_h_complete+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "booboo" >/dev/null 2>&1; then : + gl_cv_header_errno_h_complete=no +else + gl_cv_header_errno_h_complete=yes +fi +rm -f conftest* -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 +$as_echo "$gl_cv_header_errno_h_complete" >&6; } + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var + : -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC + if test $gl_cv_have_include_next = yes; then + gl_cv_next_errno_h='<'errno.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_errno_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + if test $ac_cv_header_errno_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/errno.h#{ + s#.*"\(.*/errno.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_errno_h='<'errno.h'>' + fi -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 +$as_echo "$gl_cv_next_errno_h" >&6; } + fi + NEXT_ERRNO_H=$gl_cv_next_errno_h -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'errno.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_errno_h + fi + NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC + ERRNO_H='errno.h' + fi -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC -# ### END LIBTOOL TAG CONFIG: $tagname + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 +$as_echo_n "checking for EMULTIHOP value... " >&6; } +if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -__EOF__ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef EMULTIHOP +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=yes else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + gl_cv_header_errno_h_EMULTIHOP=no fi +rm -f conftest* + if test $gl_cv_header_errno_h_EMULTIHOP = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EMULTIHOP +yes +#endif -CC="$lt_save_CC" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=hidden +fi +rm -f conftest* - ;; + if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then + if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : + +fi + + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 +$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } + case $gl_cv_header_errno_h_EMULTIHOP in + yes | no) + EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= + ;; *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac + EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" + ;; + esac - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } fi -fi + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 +$as_echo_n "checking for ENOLINK value... " >&6; } +if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +#include +#ifdef ENOLINK +yes +#endif -# Prevent multiple expansion +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=yes +else + gl_cv_header_errno_h_ENOLINK=no +fi +rm -f conftest* + if test $gl_cv_header_errno_h_ENOLINK = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ENOLINK +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=hidden +fi +rm -f conftest* + if test $gl_cv_header_errno_h_ENOLINK = hidden; then + if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : +fi + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 +$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } + case $gl_cv_header_errno_h_ENOLINK in + yes | no) + ENOLINK_HIDDEN=0; ENOLINK_VALUE= + ;; + *) + ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" + ;; + esac + fi + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 +$as_echo_n "checking for EOVERFLOW value... " >&6; } +if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef EOVERFLOW +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=yes +else + gl_cv_header_errno_h_EOVERFLOW=no +fi +rm -f conftest* + if test $gl_cv_header_errno_h_EOVERFLOW = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EOVERFLOW +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=hidden +fi +rm -f conftest* + if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then + if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : +fi -case "$host_os" in - # On Cygwin, without -no-undefined, a warning is emitted and only a static - # library is built. - beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;; - *) LTNOUNDEF='' ;; -esac + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 +$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } + case $gl_cv_header_errno_h_EOVERFLOW in + yes | no) + EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= + ;; + *) + EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" + ;; + esac + fi -{ echo "$as_me:$LINENO: checking for inline" >&5 -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } -if test "${ac_cv_c_inline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_inline=$ac_kw + + if true; then + GL_COND_LIBTOOL_TRUE= + GL_COND_LIBTOOL_FALSE='#' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + GL_COND_LIBTOOL_TRUE='#' + GL_COND_LIBTOOL_FALSE= +fi + gl_cond_libtool=true + gl_m4_base='gnulib-m4' -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -echo "${ECHO_T}$ac_cv_c_inline" >&6; } -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_size_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF + gl_source_base='.' + # Code from module alloca: +LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` + + # Code from module alloca-opt: -fi - { echo "$as_me:$LINENO: checking for long long int" >&5 -echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } -if test "${ac_cv_type_long_long_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; -int -main () -{ -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - if test "$cross_compiling" = yes; then - ac_cv_type_long_long_int=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #ifndef LLONG_MAX - # define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - # define LLONG_MAX (HALF - 1 + HALF) - #endif -int -main () -{ -long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_long_long_int=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_type_long_long_int=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + if test $ac_cv_func_alloca_works = no; then -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - ac_cv_type_long_long_int=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 -echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } - if test $ac_cv_type_long_long_int = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_LONG_INT 1 -_ACEOF - fi - ac_cv_type_long_long=$ac_cv_type_long_long_int - if test $ac_cv_type_long_long = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_LONG 1 -_ACEOF + : fi + # Define an additional variable used in the Makefile substitution. - { echo "$as_me:$LINENO: checking for long double" >&5 -echo $ECHO_N "checking for long double... $ECHO_C" >&6; } -if test "${gt_cv_c_long_double+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$GCC" = yes; then - gt_cv_c_long_double=yes - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - /* The Stardent Vistra knows sizeof(long double), but does not support it. */ - long double foo = 0.0; - /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ - int array [2*(sizeof(long double) >= sizeof(double)) - 1]; - -int -main () -{ +#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H + Need own alloca +#endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_long_double=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Need own alloca" >/dev/null 2>&1; then : + ALLOCA_H=alloca.h else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_long_double=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi + ALLOCA_H= fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 -echo "${ECHO_T}$gt_cv_c_long_double" >&6; } - if test $gt_cv_c_long_double = yes; then +rm -f conftest* -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_DOUBLE 1 -_ACEOF - fi + # Code from module errno: - { echo "$as_me:$LINENO: checking for wchar_t" >&5 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wchar_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - wchar_t foo = (wchar_t)'\0'; -int -main () -{ + # Code from module include_next: + # Code from module dummy: + # End of code from modules - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wchar_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_c_wchar_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 -echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } - if test $gt_cv_c_wchar_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WCHAR_T 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for wint_t" >&5 -echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wint_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + gltests_libdeps= + gltests_ltlibdeps= -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include - wint_t foo = (wchar_t)'\0'; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wint_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_c_wint_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 -echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } - if test $gt_cv_c_wint_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WINT_T 1 -_ACEOF - fi -{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef ptrdiff_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_ptrdiff_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then - : -else + gl_source_base='tests' + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS -cat >>confdefs.h <<\_ACEOF -#define ptrdiff_t long -_ACEOF + gl_module_indicator_condition=$gltests_WITNESS -fi - { echo "$as_me:$LINENO: checking for inttypes.h" >&5 -echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } -if test "${gl_cv_header_inttypes_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -uintmax_t i = (uintmax_t) -1; return !i; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_inttypes_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_header_inttypes_h=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 -echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } - if test $gl_cv_header_inttypes_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for stdint.h" >&5 -echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } -if test "${gl_cv_header_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -uintmax_t i = (uintmax_t) -1; return !i; - ; - return 0; -} +for ac_func in snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_stdint_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_header_stdint_h=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include +" +if test "x$ac_cv_have_decl__snprintf" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } - if test $gl_cv_header_stdint_h = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H_WITH_UINTMAX 1 +#define HAVE_DECL__SNPRINTF $ac_have_decl _ACEOF - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 +$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } +if test "${gt_cv_func_printf_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : - { echo "$as_me:$LINENO: checking for intmax_t" >&5 -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } -if test "${gt_cv_c_intmax_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#if HAVE_STDINT_H_WITH_UINTMAX -#include -#endif -#if HAVE_INTTYPES_H_WITH_UINTMAX -#include +#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix #endif -int -main () +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "notposix" >/dev/null 2>&1; then : + gt_cv_func_printf_posix="guessing no" +else + gt_cv_func_printf_posix="guessing yes" +fi +rm -f conftest* + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () { -intmax_t x = -1; - return !x; - ; - return 0; + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_intmax_t=yes +if ac_fn_c_try_run "$LINENO"; then : + gt_cv_func_printf_posix=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_intmax_t=no + gt_cv_func_printf_posix=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 -echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } - if test $gt_cv_c_intmax_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_INTMAX_T 1 -_ACEOF +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 +$as_echo "$gt_cv_func_printf_posix" >&6; } + case $gt_cv_func_printf_posix in + *yes) - fi +$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h + ;; + esac -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +ac_aux_dir_abs=`cd $ac_aux_dir && pwd` +# Extract the first word of "dvips", so it can be a program name with args. +set dummy dvips; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_DVIPS+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + case $DVIPS in + [\\/]* | ?:[\\/]*) + ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips" + ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +fi +DVIPS=$ac_cv_path_DVIPS +if test -n "$DVIPS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 +$as_echo "$DVIPS" >&6; } else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +# Extract the first word of "texi2pdf", so it can be a program name with args. +set dummy texi2pdf; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_TEXI2PDF+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case $TEXI2PDF in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_header_preproc=no + test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf" + ;; +esac +fi +TEXI2PDF=$ac_cv_path_TEXI2PDF +if test -n "$TEXI2PDF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5 +$as_echo "$TEXI2PDF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PERL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ;; + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" + ;; esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -done - - { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } - if test "${gl_cv_size_max+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_size_max= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#if HAVE_STDINT_H -#include -#endif -#ifdef SIZE_MAX -Found it -#endif +ac_config_files="$ac_config_files Makefile" -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then - gl_cv_size_max=yes -fi -rm -f conftest* - if test -z "$gl_cv_size_max"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; -test_array [0] = 0 +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi fi +rm -f confcache -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; -test_array [0] = 0 +DEFS=-DHAVE_CONFIG_H - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; -test_array [0] = 0 +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +LTLIBOBJS=$ac_ltlibobjs - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then + as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + gl_libobjs= + gl_ltlibobjs= + if test -n "$gl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gl_libobjs="$gl_libobjs $i.$ac_objext" + gl_ltlibobjs="$gl_ltlibobjs $i.lo" + done + fi + gl_LIBOBJS=$gl_libobjs -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 + gl_LTLIBOBJS=$gl_ltlibobjs - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) size_t_bits_minus_1=$ac_lo;; -'') size_t_bits_minus_1= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } -static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } -#include -#include -int -main () -{ + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + gltests_LIBOBJS=$gltests_libobjs - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) * CHAR_BIT - 1) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; + gltests_LTLIBOBJS=$gltests_ltlibobjs - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - size_t_bits_minus_1=`cat conftest.val` + + +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi -( exit $ac_status ) -size_t_bits_minus_1= + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi -rm -f conftest.val - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () { -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; -test_array [0] = 0 + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () { -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; -test_array [0] = 0 + return $1 +} # as_fn_set_status - ; - return 0; +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} } -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + as_expr=false +fi - ac_lo= ac_hi= +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) fits_in_uint=$ac_lo;; -'') fits_in_uint= ;; -esac +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } -static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } -#include -#include -int -main () + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () { - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%ld\n", i); - } + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by libasprintf $as_me 1.0, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" - ; - return 0; -} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - fits_in_uint=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -fits_in_uint= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then - if test $fits_in_uint = 1; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - extern size_t foo; - extern unsigned long foo; -int -main () -{ +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - fits_in_uint=0 -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -fi +Usage: $0 [OPTION]... [TAG]... -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $fits_in_uint = 1; then - gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" - else - gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" - fi - else - gl_cv_size_max='((size_t)~(size_t)0)' - fi - fi + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE -fi +Configuration files: +$config_files - { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 -echo "${ECHO_T}$gl_cv_size_max" >&6; } - if test "$gl_cv_size_max" != yes; then +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max _ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +libasprintf config.status 1.0 +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" - fi +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + esac + shift +done -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +ac_configure_extra_args= - ac_header_compiler=no +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "X$install_override_mode" | $Xsed -e "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +AR \ +AR_FLAGS \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +SHELL \ +ECHO \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_wl \ +lt_prog_compiler_pic \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +fix_srcfile_path \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_flag_spec_ld_CXX \ +hardcode_libdir_separator_CXX \ +fix_srcfile_path_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done - ;; +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` + ;; esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST fi -done + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || { -char *p = (char *) alloca (2 * sizeof (int)); - if (p) return 0; - ; - return 0; + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_working_alloca_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Create a (secure) tmp directory for tmp files. - ac_cv_working_alloca_h=no -fi +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } -if test $ac_cv_working_alloca_h = yes; then +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' fi - -{ echo "$as_me:$LINENO: checking for alloca" >&5 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif + ac_cs_awk_cr=$ac_cr +fi -int -main () -{ -char *p = (char *) alloca (1); - if (p) return 0; - ; - return 0; -} +echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_alloca_works=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_func_alloca_works=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 -if test $ac_cv_func_alloca_works = yes; then + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA 1 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" -else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext + print line +} -cat >>confdefs.h <<\_ACEOF -#define C_ALLOCA 1 +_ACAWK _ACEOF - - -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } -if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes -else - ac_cv_os_cray=no +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 -echo "${ECHO_T}$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF -#ifdef __STDC__ -# include -#else -# include -#endif +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. -#undef $ac_func +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. -int -main () -{ -return $ac_func (); - ; - return 0; +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } } +{ print } +_ACAWK _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - break -fi - done -fi + case $ac_mode in + :F) + # + # CONFIG_FILE + # -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} -int -main () -{ - return find_stack_direction () < 0; +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q } +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_stack_direction=1 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_c_stack_direction=-1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } - -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF - -fi - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 -#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H - Need own alloca -#endif +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Need own alloca" >/dev/null 2>&1; then - ALLOCA_H=alloca.h -else - ALLOCA_H= -fi -rm -f conftest* + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" -for ac_func in snprintf vasprintf wcslen -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func +# The names of the tagged configurations supported by this script. +available_tags="CXX " -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +# ### BEGIN LIBTOOL CONFIG -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision - eval "$as_ac_var=no" -fi +# Assembler program. +AS=$AS -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +# DLL creation program. +DLLTOOL=$DLLTOOL -fi -done +# Object dumper program. +OBJDUMP=$OBJDUMP -{ echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 -echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef _snprintf - (void) _snprintf; -#endif +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snprintf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# Whether or not to build static libraries. +build_old_libs=$enable_static - ac_cv_have_decl__snprintf=no -fi +# What type of objects to build. +pic_mode=$pic_mode -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } -if test $ac_cv_have_decl__snprintf = yes; then +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF 1 -_ACEOF +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF 0 -_ACEOF +# A sed program that does not truncate output. +SED=$lt_SED +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" -fi +# A grep program that handles long lines. +GREP=$lt_GREP +# An ERE matcher. +EGREP=$lt_EGREP +# A literal string matcher. +FGREP=$lt_FGREP +# A BSD- or MS-compatible name lister. +NM=$lt_NM - { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 -echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } -if test "${gt_cv_func_printf_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +# Whether we need soft or hard links. +LN_S=$lt_LN_S - if test "$cross_compiling" = yes; then +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# Object file suffix (normally "o"). +objext=$ac_objext -#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ - notposix -#endif +# Executable file suffix (normally ""). +exeext=$exeext -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "notposix" >/dev/null 2>&1; then - gt_cv_func_printf_posix="guessing no" -else - gt_cv_func_printf_posix="guessing yes" -fi -rm -f conftest* +# whether the shell understands "unset". +lt_unset=$lt_unset +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP -#include -#include -/* The string "%2$d %1$d", with dollar characters protected from the shell's - dollar expansion (possibly an autoconf bug). */ -static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; -static char buf[100]; -int main () -{ - sprintf (buf, format, 33, 55); - return (strcmp (buf, "55 33") != 0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gt_cv_func_printf_posix=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds -( exit $ac_status ) -gt_cv_func_printf_posix=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd=$lt_file_magic_cmd +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS -fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 -echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } - case $gt_cv_func_printf_posix in - *yes) +# A symbol stripping program. +STRIP=$lt_STRIP -cat >>confdefs.h <<\_ACEOF -#define HAVE_POSIX_PRINTF 1 -_ACEOF +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds - ;; - esac +# A C compiler. +LTCC=$lt_CC +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS -ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -# Extract the first word of "dvips", so it can be a program name with args. -set dummy dvips; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_DVIPS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $DVIPS in - [\\/]* | ?:[\\/]*) - ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips" - ;; -esac -fi -DVIPS=$ac_cv_path_DVIPS -if test -n "$DVIPS"; then - { echo "$as_me:$LINENO: result: $DVIPS" >&5 -echo "${ECHO_T}$DVIPS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# Extract the first word of "texi2pdf", so it can be a program name with args. -set dummy texi2pdf; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_TEXI2PDF+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $TEXI2PDF in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf" - ;; -esac -fi -TEXI2PDF=$ac_cv_path_TEXI2PDF -if test -n "$TEXI2PDF"; then - { echo "$as_me:$LINENO: result: $TEXI2PDF" >&5 -echo "${ECHO_T}$TEXI2PDF" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# The name of the directory that contains temporary libtool files. +objdir=$objdir +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# An echo program that does not interpret backslashes. +ECHO=$lt_ECHO - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" - ;; -esac -fi -PERL=$ac_cv_path_PERL -if test -n "$PERL"; then - { echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD +# Must we lock files when doing compilation? +need_locks=$lt_need_locks +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL -ac_config_files="$ac_config_files Makefile" +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL -_ACEOF +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done +# Old archive suffix (normally "a"). +libext=$libext - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds -DEFS=-DHAVE_CONFIG_H +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix -LTLIBOBJS=$ac_ltlibobjs +# Do we need a version for libraries? +need_version=$need_version +# Library versioning type. +version_type=$version_type -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +# Shared library runtime path variable. +runpath_var=$runpath_var -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. +# Shared library path variable. +shlibpath_var=$shlibpath_var -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +# Format of library name prefix. +libname_spec=$lt_libname_spec -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec -fi +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS +# Whether dlopen is supported. +dlopen_support=$enable_dlopen - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi +# The linker used to build libraries. +LD=$lt_LD +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc -# CDPATH. -$as_unset CDPATH +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; -esac +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct -exec 6>&1 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic -_ACEOF +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs -_ACEOF +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols -Usage: $0 [OPTIONS] [FILE]... +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms -Configuration files: -$config_files +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms -Configuration headers: -$config_headers +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds -Configuration commands: -$config_commands +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec -Report bugs to ." +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF ;; esac - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - { echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; +ltmain="$ac_aux_dir/ltmain.sh" - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; esac - shift -done +} -ac_configure_extra_args= +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () { - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; +# sed scripts: +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[^=]*=//' - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` +} -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || +# func_arith arithmetic-term... +func_arith () { - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + func_arith_result=`expr "$@"` } -# Create a (secure) tmp directory for tmp files. +# func_len string +# STRING may not start with a hyphen. +func_len () { - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` +} + +_LT_EOF +esac + +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () { - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || + eval "$1+=\$2" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () { - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } + eval "$1=\$$1\$2" } -# -# Set up the sed scripts for CONFIG_FILES section. -# +_LT_EOF + ;; + esac -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then -_ACEOF + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -SED!$SED$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -RANLIB!$RANLIB$ac_delim -DLLTOOL!$DLLTOOL$ac_delim -_ACEOF + cat <<_LT_EOF >> "$ofile" - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# ### BEGIN LIBTOOL TAG CONFIG: CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# The linker used to build libraries. +LD=$lt_LD_CXX -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX +# A language specific compiler. +CC=$lt_compiler_CXX -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -AS!$AS$ac_delim -OBJDUMP!$OBJDUMP$ac_delim -CPP!$CPP$ac_delim -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -LTNOUNDEF!$LTNOUNDEF$ac_delim -ALLOCA!$ALLOCA$ac_delim -ALLOCA_H!$ALLOCA_H$ac_delim -DVIPS!$DVIPS$ac_delim -TEXI2PDF!$TEXI2PDF$ac_delim -PERL!$PERL$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - case $ac_mode in - :F) - # - # CONFIG_FILE - # +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - :H) - # - # CONFIG_HEADER - # -_ACEOF +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX -# Transform confdefs.h into a sed script `conftest.defines', that -# substitutes the proper values into config.h.in to produce config.h. -rm -f conftest.defines conftest.tail -# First, append a space to every undef/define line, to ease matching. -echo 's/$/ /' >conftest.defines -# Then, protect against being on the right side of a sed subst, or in -# an unquoted here document, in config.status. If some macros were -# called several times there might be several #defines for the same -# symbol, which is useless. But do not sort them, since the last -# AC_DEFINE must be honored. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where -# NAME is the cpp macro being defined, VALUE is the value it is being given. -# PARAMS is the parameter list in the macro definition--in most cases, it's -# just an empty string. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' -ac_dB='\\)[ (].*,\\1define\\2' -ac_dC=' ' -ac_dD=' ,' +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX -uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - -# Remove the space that was appended to ease matching. -# Then replace #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -# (The regexp can be short, since the line contains either #define or #undef.) -echo 's/ $// -s,^[ #]*u.*,/* & */,' >>conftest.defines - -# Break up conftest.defines: -ac_max_sed_lines=50 - -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" -# et cetera. -ac_in='$ac_file_inputs' -ac_out='"$tmp/out1"' -ac_nxt='"$tmp/out2"' +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_CXX -while : -do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def -b -:def -_ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines conftest.tail +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX -echo "ac_result=$ac_in" >>$CONFIG_STATUS -cat >>$CONFIG_STATUS <<\_ACEOF - if test x"$ac_file" != x-; then - echo "/* $configure_input */" >"$tmp/config.h" - cat "$ac_result" >>"$tmp/config.h" - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f $ac_file - mv "$tmp/config.h" $ac_file - fi - else - echo "/* $configure_input */" - cat "$ac_result" - fi - rm -f "$tmp/out12" -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| . 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - "Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF - sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file ;; esac done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -23712,6 +19124,10 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi diff -Nru gettext-0.17/gettext-runtime/libasprintf/configure.ac gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac --- gettext-0.17/gettext-runtime/libasprintf/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ dnl Configuration for the GNU libasprintf library -dnl Copyright (C) 2002-2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2009 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -16,12 +16,12 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.52) -AC_INIT -AC_CONFIG_SRCDIR(vasprintf.c) -AC_CONFIG_AUX_DIR(../../build-aux) -AM_INIT_AUTOMAKE(libasprintf, 1.0) -AM_CONFIG_HEADER(config.h) +AC_PREREQ([2.59]) +AC_INIT([libasprintf], [1.0]) +AC_CONFIG_SRCDIR([vasprintf.c]) +AC_CONFIG_AUX_DIR([../../build-aux]) +AM_INIT_AUTOMAKE([silent-rules]) +AM_CONFIG_HEADER([config.h]) dnl Checks for programs. AC_PROG_CC @@ -35,10 +35,12 @@ AC_OBJEXT AC_EXEEXT +dnl Early checks, assembled by gnulib. +gl_EARLY + dnl Check for build configuration. gl_WOE32_DLL -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL +LT_INIT([win32-dll]) case "$host_os" in # On Cygwin, without -no-undefined, a warning is emitted and only a static # library is built. @@ -54,8 +56,7 @@ dnl Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_SIZE_T -gl_AC_TYPE_LONG_LONG -gt_TYPE_LONGDOUBLE +AC_TYPE_LONG_LONG_INT gt_TYPE_WCHAR_T gt_TYPE_WINT_T AC_CHECK_TYPE([ptrdiff_t], , @@ -67,29 +68,19 @@ dnl Checks for library functions. -AC_FUNC_ALLOCA -dnl Define an additional variable used in the Makefile substitution. -AC_EGREP_CPP([Need own alloca], [ -#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H - Need own alloca -#endif - ], - ALLOCA_H=alloca.h, - ALLOCA_H=) -AC_SUBST([ALLOCA_H]) - -AC_CHECK_FUNCS([snprintf vasprintf wcslen]) -AC_CHECK_DECLS([_snprintf]) +gl_INIT +AC_CHECK_FUNCS([snprintf vasprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) +dnl Use the _snprintf function only if it is declared (because on NetBSD it +dnl is defined as a weak alias of snprintf; we prefer to use the latter). +AC_CHECK_DECLS([_snprintf], , , [#include ]) gt_PRINTF_POSIX dnl Check for tools needed for formatting the documentation. ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips) -AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf) -AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl) - -AC_CONFIG_FILES([Makefile], - [FIX_MAKEFILE_COMPILE - FIX_MAKEFILE_INFO]) +AC_PATH_PROG([DVIPS], [dvips], [$ac_aux_dir_abs/missing dvips]) +AC_PATH_PROG([TEXI2PDF], [texi2pdf], [$ac_aux_dir_abs/missing texi2pdf]) +AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl]) + +AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff -Nru gettext-0.17/gettext-runtime/libasprintf/dummy.c gettext-0.18.1.1/gettext-runtime/libasprintf/dummy.c --- gettext-0.17/gettext-runtime/libasprintf/dummy.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/dummy.c 2010-02-16 21:31:38.000000000 +0000 @@ -0,0 +1,42 @@ +/* A dummy file, to prevent empty libraries from breaking builds. + Copyright (C) 2004, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ + +/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create + libraries without any object files. You might get an error like: + + > ar cru .libs/libgl.a + > ar: no archive members specified + + Compiling this file, and adding its object file to the library, will + prevent the library from being empty. */ + +/* Some systems, such as Solaris with cc 5.0, refuse to work with libraries + that don't export any symbol. You might get an error like: + + > cc ... libgnu.a + > ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a + + Compiling this file, and adding its object file to the library, will + prevent the library from exporting no symbols. */ + +#ifdef __sun +/* This declaration ensures that the library will export at least 1 symbol. */ +int gl_dummy_symbol; +#else +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; +#endif diff -Nru gettext-0.17/gettext-runtime/libasprintf/errno.in.h gettext-0.18.1.1/gettext-runtime/libasprintf/errno.in.h --- gettext-0.17/gettext-runtime/libasprintf/errno.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/errno.in.h 2010-04-25 09:20:53.000000000 +0000 @@ -0,0 +1,160 @@ +/* A POSIX-like . + + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_ERRNO_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ + +#ifndef _GL_ERRNO_H +#define _GL_ERRNO_H + + +/* On native Windows platforms, many macros are not defined. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */ +# define EWOULDBLOCK EAGAIN + +/* Values >= 100 seem safe to use. */ +# define ETXTBSY 100 +# define GNULIB_defined_ETXTBSY 1 + +/* These are intentionally the same values as the WSA* error numbers, defined + in . */ +# define EINPROGRESS 10036 +# define EALREADY 10037 +# define ENOTSOCK 10038 +# define EDESTADDRREQ 10039 +# define EMSGSIZE 10040 +# define EPROTOTYPE 10041 +# define ENOPROTOOPT 10042 +# define EPROTONOSUPPORT 10043 +# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ +# define EOPNOTSUPP 10045 +# define EPFNOSUPPORT 10046 /* not required by POSIX */ +# define EAFNOSUPPORT 10047 +# define EADDRINUSE 10048 +# define EADDRNOTAVAIL 10049 +# define ENETDOWN 10050 +# define ENETUNREACH 10051 +# define ENETRESET 10052 +# define ECONNABORTED 10053 +# define ECONNRESET 10054 +# define ENOBUFS 10055 +# define EISCONN 10056 +# define ENOTCONN 10057 +# define ESHUTDOWN 10058 /* not required by POSIX */ +# define ETOOMANYREFS 10059 /* not required by POSIX */ +# define ETIMEDOUT 10060 +# define ECONNREFUSED 10061 +# define ELOOP 10062 +# define EHOSTDOWN 10064 /* not required by POSIX */ +# define EHOSTUNREACH 10065 +# define EPROCLIM 10067 /* not required by POSIX */ +# define EUSERS 10068 /* not required by POSIX */ +# define EDQUOT 10069 +# define ESTALE 10070 +# define EREMOTE 10071 /* not required by POSIX */ +# define GNULIB_defined_ESOCK 1 + +# endif + + +/* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros + EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ +# if @EMULTIHOP_HIDDEN@ +# define EMULTIHOP @EMULTIHOP_VALUE@ +# define GNULIB_defined_EMULTIHOP 1 +# endif +# if @ENOLINK_HIDDEN@ +# define ENOLINK @ENOLINK_VALUE@ +# define GNULIB_defined_ENOLINK 1 +# endif +# if @EOVERFLOW_HIDDEN@ +# define EOVERFLOW @EOVERFLOW_VALUE@ +# define GNULIB_defined_EOVERFLOW 1 +# endif + + +/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, + EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. + Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, + HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. + + Note: When one of these systems defines some of these macros some day, + binaries will have to be recompiled so that they recognizes the new + errno values from the system. */ + +# ifndef ENOMSG +# define ENOMSG 2000 +# define GNULIB_defined_ENOMSG 1 +# endif + +# ifndef EIDRM +# define EIDRM 2001 +# define GNULIB_defined_EIDRM 1 +# endif + +# ifndef ENOLINK +# define ENOLINK 2002 +# define GNULIB_defined_ENOLINK 1 +# endif + +# ifndef EPROTO +# define EPROTO 2003 +# define GNULIB_defined_EPROTO 1 +# endif + +# ifndef EMULTIHOP +# define EMULTIHOP 2004 +# define GNULIB_defined_EMULTIHOP 1 +# endif + +# ifndef EBADMSG +# define EBADMSG 2005 +# define GNULIB_defined_EBADMSG 1 +# endif + +# ifndef EOVERFLOW +# define EOVERFLOW 2006 +# define GNULIB_defined_EOVERFLOW 1 +# endif + +# ifndef ENOTSUP +# define ENOTSUP 2007 +# define GNULIB_defined_ENOTSUP 1 +# endif + +# ifndef ESTALE +# define ESTALE 2009 +# define GNULIB_defined_ESTALE 1 +# endif + +# ifndef ECANCELED +# define ECANCELED 2008 +# define GNULIB_defined_ECANCELED 1 +# endif + + +#endif /* _GL_ERRNO_H */ +#endif /* _GL_ERRNO_H */ diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/00gnulib.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/00gnulib.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/00gnulib.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/00gnulib.m4 2010-02-16 21:31:38.000000000 +0000 @@ -0,0 +1,30 @@ +# 00gnulib.m4 serial 2 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This file must be named something that sorts before all other +dnl gnulib-provided .m4 files. It is needed until such time as we can +dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics. + +# AC_DEFUN_ONCE([NAME], VALUE) +# ---------------------------- +# Define NAME to expand to VALUE on the first use (whether by direct +# expansion, or by AC_REQUIRE), and to nothing on all subsequent uses. +# Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This +# definition is slower than the version in Autoconf 2.64, because it +# can only use interfaces that existed since 2.59; but it achieves the +# same effect. Quoting is necessary to avoid confusing Automake. +m4_version_prereq([2.63.263], [], +[m4_define([AC][_DEFUN_ONCE], + [AC][_DEFUN([$1], + [AC_REQUIRE([_gl_DEFUN_ONCE([$1])], + [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl +[AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])]) + +# gl_00GNULIB +# ----------- +# Witness macro that this file has been included. Needed to force +# Automake to include this file prior to all other gnulib .m4 files. +AC_DEFUN([gl_00GNULIB]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/alloca.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/alloca.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/alloca.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/alloca.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,35 @@ +# alloca.m4 serial 3 (gettext-0.16) +dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_ALLOCA], +[ + dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. + AC_REQUIRE([AC_PROG_CPP]) + AC_REQUIRE([AC_PROG_EGREP]) + + AC_REQUIRE([AC_FUNC_ALLOCA]) + if test $ac_cv_func_alloca_works = no; then + gl_PREREQ_ALLOCA + fi + + # Define an additional variable used in the Makefile substitution. + + AC_EGREP_CPP([Need own alloca], [ +#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H + Need own alloca +#endif + ], + ALLOCA_H=alloca.h, + ALLOCA_H=) + AC_SUBST([ALLOCA_H]) +]) + +# Prerequisites of lib/alloca.c. +# STACK_DIRECTION is already handled by AC_FUNC_ALLOCA. +AC_DEFUN([gl_PREREQ_ALLOCA], [ + AC_CHECK_HEADERS_ONCE(stdlib.h string.h) + : +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/errno_h.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/errno_h.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/errno_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/errno_h.m4 2010-02-16 21:31:38.000000000 +0000 @@ -0,0 +1,115 @@ +# errno_h.m4 serial 6 +dnl Copyright (C) 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ + AC_EGREP_CPP([booboo],[ +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif + ], + [gl_cv_header_errno_h_complete=no], + [gl_cv_header_errno_h_complete=yes]) + ]) + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else + gl_CHECK_NEXT_HEADERS([errno.h]) + ERRNO_H='errno.h' + fi + AC_SUBST([ERRNO_H]) + gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) + gl_REPLACE_ERRNO_VALUE([ENOLINK]) + gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) +]) + +# Assuming $1 = EOVERFLOW. +# The EOVERFLOW errno value ought to be defined in , according to +# POSIX. But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and +# some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. +# Check for the value of EOVERFLOW. +# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. +AC_DEFUN([gl_REPLACE_ERRNO_VALUE], +[ + if test -n "$ERRNO_H"; then + AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ + AC_EGREP_CPP([yes],[ +#include +#ifdef ]$1[ +yes +#endif + ], + [gl_cv_header_errno_h_]$1[=yes], + [gl_cv_header_errno_h_]$1[=no]) + if test $gl_cv_header_errno_h_]$1[ = no; then + AC_EGREP_CPP([yes],[ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ]$1[ +yes +#endif + ], [gl_cv_header_errno_h_]$1[=hidden]) + if test $gl_cv_header_errno_h_]$1[ = hidden; then + dnl The macro exists but is hidden. + dnl Define it to the same value. + AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +]) + fi + fi + ]) + case $gl_cv_header_errno_h_]$1[ in + yes | no) + ]$1[_HIDDEN=0; ]$1[_VALUE= + ;; + *) + ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1[" + ;; + esac + AC_SUBST($1[_HIDDEN]) + AC_SUBST($1[_VALUE]) + fi +]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-cache.m4 2010-06-06 20:09:07.000000000 +0000 @@ -0,0 +1,37 @@ +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the specification of how gnulib-tool is used. +# It acts as a cache: It is written and read by gnulib-tool. +# In projects using CVS, this file is meant to be stored in CVS, +# like the configure.ac and various Makefile.am files. + + +# Specification in the form of a command-line invocation: +# gnulib-tool --import --dir=gettext-runtime/libasprintf --local-dir=gnulib-local --lib=libgnu --source-base=. --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../../build-aux --lgpl=2 --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca errno + +# Specification in the form of a few gnulib-tool.m4 macro invocations: +gl_LOCAL_DIR([../../gnulib-local]) +gl_MODULES([ + alloca + errno +]) +gl_AVOID([]) +gl_SOURCE_BASE([.]) +gl_M4_BASE([gnulib-m4]) +gl_PO_BASE([]) +gl_DOC_BASE([doc]) +gl_TESTS_BASE([tests]) +gl_LIB([libgnu]) +gl_LGPL([2]) +gl_MAKEFILE_NAME([Makefile.gnulib]) +gl_LIBTOOL +gl_MACRO_PREFIX([gl]) +gl_PO_DOMAIN([]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-common.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-common.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-common.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-common.m4 2010-05-09 01:36:25.000000000 +0000 @@ -0,0 +1,201 @@ +# gnulib-common.m4 serial 20 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# gl_COMMON +# is expanded unconditionally through gnulib-tool magic. +AC_DEFUN([gl_COMMON], [ + dnl Use AC_REQUIRE here, so that the code is expanded once only. + AC_REQUIRE([gl_00GNULIB]) + AC_REQUIRE([gl_COMMON_BODY]) +]) +AC_DEFUN([gl_COMMON_BODY], [ + AH_VERBATIM([isoc99_inline], +[/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif]) + AH_VERBATIM([unused_parameter], +[/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED +]) + dnl Preparation for running test programs: + dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not + dnl to /dev/tty, so they can be redirected to log files. Such diagnostics + dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N. + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ +]) + +# gl_MODULE_INDICATOR_CONDITION +# expands to a C preprocessor expression that evaluates to 1 or 0, depending +# whether a gnulib module that has been requested shall be considered present +# or not. +AC_DEFUN([gl_MODULE_INDICATOR_CONDITION], [1]) + +# gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) +# sets the shell variable that indicates the presence of the given module to +# a C preprocessor expression that will evaluate to 1. +AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], +[ + GNULIB_[]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION +]) + +# gl_MODULE_INDICATOR([modulename]) +# defines a C macro indicating the presence of the given module +# in a location where it can be used. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 0 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ +AC_DEFUN([gl_MODULE_INDICATOR], +[ + AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), + [gl_MODULE_INDICATOR_CONDITION], + [Define to a C preprocessor expression that evaluates to 1 or 0, + depending whether the gnulib module $1 shall be considered present.]) +]) + +# gl_MODULE_INDICATOR_FOR_TESTS([modulename]) +# defines a C macro indicating the presence of the given module +# in lib or tests. This is useful to determine whether the module +# should be tested. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ +AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], +[ + AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], + [Define to 1 when the gnulib module $1 should be tested.]) +]) + +# m4_foreach_w +# is a backport of autoconf-2.59c's m4_foreach_w. +# Remove this macro when we can assume autoconf >= 2.60. +m4_ifndef([m4_foreach_w], + [m4_define([m4_foreach_w], + [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])]) + +# AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH]) +# ---------------------------------------------------- +# Backport of autoconf-2.63b's macro. +# Remove this macro when we can assume autoconf >= 2.64. +m4_ifndef([AS_VAR_IF], +[m4_define([AS_VAR_IF], +[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) + +# AC_PROG_MKDIR_P +# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix +# for interoperability with automake-1.9.6 from autoconf-2.62. +# Remove this macro when we can assume autoconf >= 2.62 or +# autoconf >= 2.60 && automake >= 1.10. +m4_ifdef([AC_PROG_MKDIR_P], [ + dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed. + m4_define([AC_PROG_MKDIR_P], + m4_defn([AC_PROG_MKDIR_P])[ + AC_SUBST([MKDIR_P])])], [ + dnl For autoconf < 2.60: Backport of AC_PROG_MKDIR_P. + AC_DEFUN_ONCE([AC_PROG_MKDIR_P], + [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake + MKDIR_P='$(mkdir_p)' + AC_SUBST([MKDIR_P])])]) + +# AC_C_RESTRICT +# This definition overrides the AC_C_RESTRICT macro from autoconf 2.60..2.61, +# so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ +# works. +# This definition can be removed once autoconf >= 2.62 can be assumed. +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[ +AC_DEFUN([AC_C_RESTRICT], +[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], + [ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [[typedef int * int_ptr; + int foo (int_ptr $ac_kw ip) { + return ip[0]; + }]], + [[int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t)]])], + [ac_cv_c_restrict=$ac_kw]) + test "$ac_cv_c_restrict" != no && break + done + ]) + AH_VERBATIM([restrict], +[/* Define to the equivalent of the C99 'restrict' keyword, or to + nothing if this is not supported. Do not define if restrict is + supported directly. */ +#undef restrict +/* Work around a bug in Sun C++: it does not support _Restrict, even + though the corresponding Sun C compiler does, which causes + "#define restrict _Restrict" in the previous line. Perhaps some future + version of Sun C++ will work with _Restrict; if so, it'll probably + define __RESTRICT, just as Sun C does. */ +#if defined __SUNPRO_CC && !defined __RESTRICT +# define _Restrict +#endif]) + case $ac_cv_c_restrict in + restrict) ;; + no) AC_DEFINE([restrict], []) ;; + *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; + esac +]) +]) + +# gl_BIGENDIAN +# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. +# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some +# macros invoke AC_C_BIGENDIAN with arguments. +AC_DEFUN([gl_BIGENDIAN], +[ + AC_C_BIGENDIAN +]) + +# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) +# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not +# output a spurious "(cached)" mark in the midst of other configure output. +# This macro should be used instead of AC_CACHE_VAL when it is not surrounded +# by an AC_MSG_CHECKING/AC_MSG_RESULT pair. +AC_DEFUN([gl_CACHE_VAL_SILENT], +[ + saved_as_echo_n="$as_echo_n" + as_echo_n=':' + AC_CACHE_VAL([$1], [$2]) + as_echo_n="$saved_as_echo_n" +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-comp.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-comp.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/gnulib-comp.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/gnulib-comp.m4 2010-04-25 09:20:53.000000000 +0000 @@ -0,0 +1,205 @@ +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the compiled summary of the specification in +# gnulib-cache.m4. It lists the computed macro invocations that need +# to be invoked from configure.ac. +# In projects using CVS, this file can be treated like other built files. + + +# This macro should be invoked from gettext-runtime/libasprintf/configure.ac, in the section +# "Checks for programs", right after AC_PROG_CC, and certainly before +# any checks for libraries, header files, types and library functions. +AC_DEFUN([gl_EARLY], +[ + m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace + m4_pattern_allow([^gl_ES$])dnl a valid locale name + m4_pattern_allow([^gl_LIBOBJS$])dnl a variable + m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable + AC_REQUIRE([AC_PROG_RANLIB]) + # Code from module alloca: + # Code from module alloca-opt: + # Code from module errno: + # Code from module include_next: +]) + +# This macro should be invoked from gettext-runtime/libasprintf/configure.ac, in the section +# "Check for header files, types and library functions". +AC_DEFUN([gl_INIT], +[ + AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) + gl_cond_libtool=true + gl_m4_base='gnulib-m4' + m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) + m4_pushdef([gl_LIBSOURCES_LIST], []) + m4_pushdef([gl_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='.' + # Code from module alloca: +changequote(,)dnl +LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` +changequote([, ])dnl +AC_SUBST([LTALLOCA]) + # Code from module alloca-opt: + gl_FUNC_ALLOCA + # Code from module errno: + gl_HEADER_ERRNO_H + # Code from module include_next: + # Code from module dummy: + # End of code from modules + m4_ifval(gl_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || + for gl_file in ]gl_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gl_LIBSOURCES_DIR]) + m4_popdef([gl_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gl_libobjs= + gl_ltlibobjs= + if test -n "$gl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gl_libobjs="$gl_libobjs $i.$ac_objext" + gl_ltlibobjs="$gl_ltlibobjs $i.lo" + done + fi + AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) + AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) + ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) + m4_pushdef([gltests_LIBSOURCES_LIST], []) + m4_pushdef([gltests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='tests' +changequote(,)dnl + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([gltests_WITNESS]) + gl_module_indicator_condition=$gltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(gltests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || + for gl_file in ]gltests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gltests_LIBSOURCES_DIR]) + m4_popdef([gltests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) + AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gl_LIBOBJ], [ + AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl + gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gl_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gl_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gl_LIBSOURCES_DIR], [.]) + m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_LIBOBJ], [ + AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl + gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gltests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gltests_LIBSOURCES_DIR], [tests]) + m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# This macro records the list of files which have been installed by +# gnulib-tool and may be removed by future gnulib-tool invocations. +AC_DEFUN([gl_FILE_LIST], [ + lib/alloca.c + lib/alloca.in.h + lib/dummy.c + lib/errno.in.h + m4/00gnulib.m4 + m4/alloca.m4 + m4/errno_h.m4 + m4/gnulib-common.m4 + m4/include_next.m4 + m4/onceonly.m4 +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/include_next.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/include_next.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/include_next.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/include_next.m4 2010-02-16 21:31:38.000000000 +0000 @@ -0,0 +1,187 @@ +# include_next.m4 serial 14 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert and Derek Price. + +dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER. +dnl +dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to +dnl 'include' otherwise. +dnl +dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler +dnl supports it in the special case that it is the first include directive in +dnl the given file, or to 'include' otherwise. +dnl +dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next, +dnl so as to avoid GCC warnings when the gcc option -pedantic is used. +dnl '#pragma GCC system_header' has the same effect as if the file was found +dnl through the include search path specified with '-isystem' options (as +dnl opposed to the search path specified with '-I' options). Namely, gcc +dnl does not warn about some things, and on some systems (Solaris and Interix) +dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side +dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead +dnl of plain '__STDC__'. + +AC_DEFUN([gl_INCLUDE_NEXT], +[ + AC_LANG_PREPROC_REQUIRE() + AC_CACHE_CHECK([whether the preprocessor supports include_next], + [gl_cv_have_include_next], + [rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on + dnl AIX 6.1 support include_next when used as first preprocessor directive + dnl in a file, but not when preceded by another include directive. Check + dnl for this bug by including . + dnl Additionally, with this same compiler, include_next is a no-op when + dnl used in a header file that was included by specifying its absolute + dnl file name. Despite these two bugs, include_next is used in the + dnl compiler's . By virtue of the second bug, we need to use + dnl include_next as well in this case. + cat < conftestd1a/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd2/conftest.h +#ifndef DEFINED_IN_CONFTESTD1 +#error "include_next test doesn't work" +#endif +#define DEFINED_IN_CONFTESTD2 +EOF + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" + AC_COMPILE_IFELSE([#include ], + [gl_cv_have_include_next=yes], + [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + AC_COMPILE_IFELSE([#include ], + [gl_cv_have_include_next=buggy], + [gl_cv_have_include_next=no]) + ]) + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 + ]) + PRAGMA_SYSTEM_HEADER= + if test $gl_cv_have_include_next = yes; then + INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi + else + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi + fi + AC_SUBST([INCLUDE_NEXT]) + AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE]) + AC_SUBST([PRAGMA_SYSTEM_HEADER]) +]) + +# gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...) +# ------------------------------------------ +# For each arg foo.h, if #include_next works, define NEXT_FOO_H to be +# ''; otherwise define it to be +# '"///usr/include/foo.h"', or whatever other absolute file name is suitable. +# Also, if #include_next works as first preprocessing directive in a file, +# define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be ''; otherwise define it to +# be +# '"///usr/include/foo.h"', or whatever other absolute file name is suitable. +# That way, a header file with the following line: +# #@INCLUDE_NEXT@ @NEXT_FOO_H@ +# or +# #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@ +# behaves (after sed substitution) as if it contained +# #include_next +# even if the compiler does not support include_next. +# The three "///" are to pacify Sun C 5.8, which otherwise would say +# "warning: #include of /usr/include/... may be non-portable". +# Use `""', not `<>', so that the /// cannot be confused with a C99 comment. +# Note: This macro assumes that the header file is not empty after +# preprocessing, i.e. it does not only define preprocessor macros but also +# provides some type/enum definitions or function/variable declarations. +AC_DEFUN([gl_CHECK_NEXT_HEADERS], +[ + AC_REQUIRE([gl_INCLUDE_NEXT]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_HEADERS_ONCE([$1]) + + m4_foreach_w([gl_HEADER_NAME], [$1], + [AS_VAR_PUSHDEF([gl_next_header], + [gl_cv_next_]m4_defn([gl_HEADER_NAME])) + if test $gl_cv_have_include_next = yes; then + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) + else + AC_CACHE_CHECK( + [absolute name of <]m4_defn([gl_HEADER_NAME])[>], + m4_defn([gl_next_header]), + [AS_VAR_PUSHDEF([gl_header_exists], + [ac_cv_header_]m4_defn([gl_HEADER_NAME])) + if test AS_VAR_GET(gl_header_exists) = yes; then + AC_LANG_CONFTEST( + [AC_LANG_SOURCE( + [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] + )]) + dnl AIX "xlc -E" and "cc -E" omit #line directives for header files + dnl that contain only a #include of other header files and no + dnl non-comment tokens of their own. This leads to a failure to + dnl detect the absolute name of , , + dnl and others. The workaround is to force preservation of comments + dnl through option -C. This ensures all necessary #line directives + dnl are present. GCC supports option -C as well. + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + dnl eval is necessary to expand gl_absname_cpp. + dnl Ultrix and Pyramid sh refuse to redirect output of eval, + dnl so use subshell. + AS_VAR_SET([gl_next_header], + ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | + sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ + s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"']) + else + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) + fi + AS_VAR_POPDEF([gl_header_exists])]) + fi + AC_SUBST( + AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), + [AS_VAR_GET([gl_next_header])]) + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'gl_HEADER_NAME'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) + fi + AC_SUBST( + AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), + [$gl_next_as_first_directive]) + AS_VAR_POPDEF([gl_next_header])]) +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/onceonly.m4 gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/onceonly.m4 --- gettext-0.17/gettext-runtime/libasprintf/gnulib-m4/onceonly.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/gnulib-m4/onceonly.m4 2010-02-16 21:31:38.000000000 +0000 @@ -0,0 +1,91 @@ +# onceonly.m4 serial 6 +dnl Copyright (C) 2002-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl This file defines some "once only" variants of standard autoconf macros. +dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS +dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS +dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS +dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL +dnl The advantage is that the check for each of the headers/functions/decls +dnl will be put only once into the 'configure' file. It keeps the size of +dnl the 'configure' file down, and avoids redundant output when 'configure' +dnl is run. +dnl The drawback is that the checks cannot be conditionalized. If you write +dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi +dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to +dnl empty, and the check will be inserted before the body of the AC_DEFUNed +dnl function. + +dnl The original code implemented AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE +dnl in terms of AC_DEFUN and AC_REQUIRE. This implementation uses diversions to +dnl named sections DEFAULTS and INIT_PREPARE in order to check all requested +dnl headers at once, thus reducing the size of 'configure'. It is known to work +dnl with autoconf 2.57..2.62 at least . The size reduction is ca. 9%. + +dnl Autoconf version 2.59 plus gnulib is required; this file is not needed +dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of +dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first +dnl argument! +AC_PREREQ([2.59]) + +# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of +# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). +AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ + : + m4_foreach_w([gl_HEADER_NAME], [$1], [ + AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___])), [ + m4_divert_text([INIT_PREPARE], + [gl_header_list="$gl_header_list gl_HEADER_NAME"]) + gl_HEADERS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), + [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.]) + ]) + AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___]))) + ]) +]) +m4_define([gl_HEADERS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_header_list=]) + AC_CHECK_HEADERS([$gl_header_list]) + m4_define([gl_HEADERS_EXPANSION], []) +]) + +# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of +# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). +AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ + : + m4_foreach_w([gl_FUNC_NAME], [$1], [ + AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ + m4_divert_text([INIT_PREPARE], + [gl_func_list="$gl_func_list gl_FUNC_NAME"]) + gl_FUNCS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), + [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) + ]) + AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) + ]) +]) +m4_define([gl_FUNCS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_func_list=]) + AC_CHECK_FUNCS([$gl_func_list]) + m4_define([gl_FUNCS_EXPANSION], []) +]) + +# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of +# AC_CHECK_DECLS(DECL1, DECL2, ...). +AC_DEFUN([AC_CHECK_DECLS_ONCE], [ + : + m4_foreach_w([gl_DECL_NAME], [$1], [ + AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ + AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) + ]) + AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) + ]) +]) diff -Nru gettext-0.17/gettext-runtime/libasprintf/INSTALL gettext-0.18.1.1/gettext-runtime/libasprintf/INSTALL --- gettext-0.17/gettext-runtime/libasprintf/INSTALL 2006-08-23 17:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/INSTALL 2010-06-06 12:49:57.000000000 +0000 @@ -1,8 +1,15 @@ +These are generic installation instructions. + +Prerequisites +============= + + This package depends on a few other packages. They are listed in +the file `DEPENDENCIES'. It is recommended to install the listed +packages before installing this package. + Basic Installation ================== - These are generic installation instructions. - The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. @@ -76,6 +83,20 @@ one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases. You +may have to build one architecture at a time and combine the results +using the 'lipo' tool if you have problems. + Installation Names ================== @@ -99,38 +120,65 @@ with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. -Relocatable Installation -======================== +Enabling Relocatability +======================= - By default, `make install' will install a package with hardwired -file names, and the package will not work correctly when copied or -moved to a different location in the filesystem. - - Some packages pay attention to the `--enable-relocatable' option to -`configure'. This option makes the entire installed package -relocatable. This means, it can be moved or copied to a different -location on the filesystem. It is possible to make symlinks to the -installed and moved programs, and invoke them through the symlink. It -is possible to do the same thing with a hard link _only_ if the hard -linked file is in the same directory as the real program. - - For reliability it is best to give together with --enable-relocatable -a `--prefix' option pointing to an otherwise unused (and never used -again) directory, for example, `--prefix=/tmp/inst$$'. This is -recommended because on some OSes the executables remember the location -of shared libraries (and prefer them over LD_LIBRARY_PATH !), therefore -such an executable will look for its shared libraries first in the -original installation directory and only then in the current -installation directory. - - Installation with `--enable-relocatable' will not work for setuid / -setgid executables. (This is because such an executable kills its -LD_LIBRARY_PATH variable when it is launched.) - - The runtime penalty and size penalty are nearly zero on Linux 2.2 or -newer (just one system call more when an executable is launched), and -small on other systems (the wrapper program just sets an environment -variable and execs the real program). + It has been a pain for many users of GNU packages for a long time +that packages are not relocatable. It means a user cannot copy a +program, installed by another user on the same machine, to his home +directory, and have it work correctly (including i18n). So many users +need to go through `configure; make; make install' with all its +dependencies, options, and hurdles. + + Red Hat, Debian, and similar package systems solve the "ease of +installation" problem, but they hardwire path names, usually to `/usr' +or `/usr/local'. This means that users need root privileges to install +a binary package, and prevents installing two different versions of the +same binary package. + + A relocatable program can be moved or copied to a different location +on the filesystem. It is possible to make symlinks to the installed +and moved programs, and invoke them through the symlink. It is possible +to do the same thing with a hard link _only_ if the hard link file is +in the same directory as the real program. + + To configure a program to be relocatable, add `--enable-relocatable' +to the `configure' command line. + + On some OSes the executables remember the location of shared +libraries and prefer them over any other search path. Therefore, such +an executable will look for its shared libraries first in the original +installation directory and only then in the current installation +directory. Thus, for reliability, it is best to also give a `--prefix' +option pointing to a directory that does not exist now and which never +will be created, e.g. `--prefix=/nonexistent'. You may use +`DESTDIR=DEST-DIR' on the `make' command line to avoid installing into +that directory. + + We do not recommend using a prefix writable by unprivileged users +(e.g. `/tmp/inst$$') because such a directory can be recreated by an +unprivileged user after the original directory has been removed. We +also do not recommend prefixes that might be behind an automounter +(e.g. `$HOME/inst$$') because of the performance impact of directory +searching. + + Here's a sample installation run that takes into account all these +recommendations: + + ./configure --enable-relocatable --prefix=/nonexistent + make + make install DESTDIR=/tmp/inst$$ + + Installation with `--enable-relocatable' will not work for setuid or +setgid executables, because such executables search only system library +paths for security reasons. Also, installation with +`--enable-relocatable' might not work on OpenBSD, when the package +contains shared libraries and libtool versions 1.5.xx are used. + + The runtime penalty and size penalty are negligible on GNU/Linux +(just one system call more when an executable is launched), and small on +other systems (the wrapper program just sets an environment variable +and executes the real program). Optional Features ================= @@ -164,11 +212,14 @@ is not installed, it is recommended to use the following options in order to use an ANSI C compiler: - ./configure CC="cc -Ae" + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" - On OSF/1 a.k.a. Tru64, some versions of the default C compiler don't grok -its header file. The option -nodtk can be used as a workaround. -If GNU CC is not installed, it is therefore recommended to try +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try ./configure CC="cc" @@ -182,6 +233,11 @@ ./configure CC="xlc -D_ALL_SOURCE" + On Haiku, software installed for all users goes in /boot/common, not +/usr/local. It is recommended to use the following options: + + ./configure --prefix=/boot/common + On BeOS, user installed software goes in /boot/home/config, not /usr/local. It is recommended to use the following options: diff -Nru gettext-0.17/gettext-runtime/libasprintf/Makefile.am gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.am --- gettext-0.17/gettext-runtime/libasprintf/Makefile.am 2007-10-04 22:44:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-runtime/libasprintf subdirectory of GNU gettext -## Copyright (C) 2002-2007 Free Software Foundation, Inc. +## Copyright (C) 2002-2007, 2009 Free Software Foundation, Inc. ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU Library General Public License as published @@ -20,8 +20,9 @@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@ -ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4 +ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4 -I gnulib-m4 EXTRA_DIST = +BUILT_SOURCES = MOSTLYCLEANFILES = RM = rm -f @@ -47,6 +48,8 @@ lib_LTLIBRARIES = libasprintf.la +noinst_LTLIBRARIES = + libasprintf_la_SOURCES = \ lib-asprintf.h lib-asprintf.c \ autosprintf.h autosprintf.cc @@ -67,20 +70,15 @@ # to create a shared library, however "libtool --tag=CC" succeeds. libasprintf_la_LDFLAGS = @LTNOUNDEF@ libasprintf.la: $(libasprintf_la_OBJECTS) $(libasprintf_la_DEPENDENCIES) - $(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \ + $(AM_V_GEN)$(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \ $(LINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) -# >>> gnulib module alloca. -EXTRA_DIST += alloca.in.h +# A small set of gnulib modules is needed here as well. +include Makefile.gnulib -# The following is needed in order to create an when the system -# doesn't have one that works with the given compiler. -all-local $(libasprintf_la_OBJECTS): @ALLOCA_H@ -alloca.h: alloca.in.h - cp $(srcdir)/alloca.in.h alloca.h -MOSTLYCLEANFILES += alloca.h -# <<< gnulib module alloca. +# Allow users to use "gnulib-tool --update". +EXTRA_DIST += gnulib-m4/gnulib-cache.m4 # Clean up after Solaris cc. @@ -105,8 +103,7 @@ installdirs-local: installdirs-html uninstall-local: uninstall-html -CLEANFILES = autosprintf.pdf -# autosprintf.dvi and autosprintf.ps are already known to automake. +# CLEANFILES: autosprintf.{dvi,ps,pdf,html} are already known to automake. # Documentation in DVI format. @@ -143,8 +140,6 @@ # Documentation in Portable Document Format. -SUFFIXES = .pdf - # The install-pdf target is already defined by automake. installdirs-pdf: diff -Nru gettext-0.17/gettext-runtime/libasprintf/Makefile.gnulib gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.gnulib --- gettext-0.17/gettext-runtime/libasprintf/Makefile.gnulib 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.gnulib 2010-02-16 21:31:39.000000000 +0000 @@ -0,0 +1,94 @@ +## DO NOT EDIT! GENERATED AUTOMATICALLY! +## Process this file with automake to produce Makefile.in. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# Reproduce by: gnulib-tool --import --dir=gettext-runtime/libasprintf --local-dir=gnulib-local --lib=libgnu --source-base=. --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../../build-aux --lgpl=2 --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca errno + + +MOSTLYCLEANFILES += core *.stackdump + +noinst_LTLIBRARIES += libgnu.la + +libgnu_la_SOURCES = +libgnu_la_LIBADD = $(gl_LTLIBOBJS) +libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) +EXTRA_libgnu_la_SOURCES = +libgnu_la_LDFLAGS = $(AM_LDFLAGS) + +## begin gnulib module alloca + + +EXTRA_DIST += alloca.c + +EXTRA_libgnu_la_SOURCES += alloca.c + +libgnu_la_LIBADD += @LTALLOCA@ +libgnu_la_DEPENDENCIES += @LTALLOCA@ +## end gnulib module alloca + +## begin gnulib module alloca-opt + +BUILT_SOURCES += $(ALLOCA_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/alloca.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t + +EXTRA_DIST += alloca.in.h + +## end gnulib module alloca-opt + +## begin gnulib module errno + +BUILT_SOURCES += $(ERRNO_H) + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += errno.h errno.h-t + +EXTRA_DIST += errno.in.h + +## end gnulib module errno + +## begin gnulib module dummy + +libgnu_la_SOURCES += dummy.c + +## end gnulib module dummy + + +mostlyclean-local: mostlyclean-generic + @for dir in '' $(MOSTLYCLEANDIRS); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + : diff -Nru gettext-0.17/gettext-runtime/libasprintf/Makefile.in gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.in --- gettext-0.17/gettext-runtime/libasprintf/Makefile.in 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/Makefile.in 2010-06-06 20:11:13.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,11 +15,23 @@ @SET_MAKE@ +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# Reproduce by: gnulib-tool --import --dir=gettext-runtime/libasprintf --local-dir=gnulib-local --lib=libgnu --source-base=. --m4-base=gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../../build-aux --lgpl=2 --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca errno + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -33,7 +46,6 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -subdir = . DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \ $(srcdir)/../../build-aux/config.guess \ $(srcdir)/../../build-aux/config.sub \ @@ -42,25 +54,37 @@ $(srcdir)/../../build-aux/missing \ $(srcdir)/../../build-aux/mkinstalldirs \ $(srcdir)/../../build-aux/texinfo.tex $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/configure ../../build-aux/compile \ - ../../build-aux/config.guess ../../build-aux/config.rpath \ - ../../build-aux/config.sub ../../build-aux/depcomp \ - ../../build-aux/elisp-comp ../../build-aux/install-sh \ - ../../build-aux/ltmain.sh ../../build-aux/mdate-sh \ - ../../build-aux/missing ../../build-aux/mkinstalldirs \ - ../../build-aux/texinfo.tex ../../build-aux/ylwrap AUTHORS \ - COPYING COPYING.LIB ChangeLog INSTALL NEWS + $(srcdir)/Makefile.gnulib $(srcdir)/Makefile.in \ + $(srcdir)/config.h.in $(top_srcdir)/configure \ + ../../build-aux/compile ../../build-aux/config.guess \ + ../../build-aux/config.rpath ../../build-aux/config.sub \ + ../../build-aux/depcomp ../../build-aux/elisp-comp \ + ../../build-aux/install-sh ../../build-aux/ltmain.sh \ + ../../build-aux/mdate-sh ../../build-aux/missing \ + ../../build-aux/mkinstalldirs ../../build-aux/texinfo.tex \ + ../../build-aux/ylwrap AUTHORS COPYING COPYING.LIB ChangeLog \ + INSTALL NEWS alloca.c +subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../m4/intmax.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ + $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ + $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/gnulib-m4/include_next.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ + $(top_srcdir)/../m4/intmax.m4 \ $(top_srcdir)/../m4/inttypes_h.m4 \ $(top_srcdir)/../m4/longlong.m4 \ $(top_srcdir)/../m4/printf-posix.m4 \ $(top_srcdir)/../m4/size_max.m4 \ $(top_srcdir)/../m4/stdint_h.m4 $(top_srcdir)/../m4/wchar_t.m4 \ $(top_srcdir)/../m4/wint_t.m4 $(top_srcdir)/../m4/xsize.m4 \ - $(top_srcdir)/../../m4/fixautomake.m4 \ $(top_srcdir)/../../m4/libtool.m4 \ + $(top_srcdir)/../../m4/ltoptions.m4 \ + $(top_srcdir)/../../m4/ltsugar.m4 \ + $(top_srcdir)/../../m4/ltversion.m4 \ + $(top_srcdir)/../../m4/lt~obsolete.m4 \ $(top_srcdir)/../../m4/woe32-dll.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) @@ -69,45 +93,92 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../../build-aux/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(infodir)" \ "$(DESTDIR)$(includedir)" -libLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(lib_LTLIBRARIES) +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) libasprintf_la_LIBADD = am_libasprintf_la_OBJECTS = lib-asprintf.lo autosprintf.lo libasprintf_la_OBJECTS = $(am_libasprintf_la_OBJECTS) -libasprintf_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ - $(CXXFLAGS) $(libasprintf_la_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +libasprintf_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ + $(AM_CXXFLAGS) $(CXXFLAGS) $(libasprintf_la_LDFLAGS) \ + $(LDFLAGS) -o $@ +am__DEPENDENCIES_1 = +am_libgnu_la_OBJECTS = dummy.lo +libgnu_la_OBJECTS = $(am_libgnu_la_OBJECTS) +libgnu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(libgnu_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_$(V)) +am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) +am__v_CXX_0 = @echo " CXX " $@; CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(libasprintf_la_SOURCES) -DIST_SOURCES = $(libasprintf_la_SOURCES) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_$(V)) +am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CXXLD_0 = @echo " CXXLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +SOURCES = $(libasprintf_la_SOURCES) $(libgnu_la_SOURCES) \ + $(EXTRA_libgnu_la_SOURCES) +DIST_SOURCES = $(libasprintf_la_SOURCES) $(libgnu_la_SOURCES) \ + $(EXTRA_libgnu_la_SOURCES) INFO_DEPS = $(srcdir)/autosprintf.info TEXINFO_TEX = $(top_srcdir)/../../build-aux/texinfo.tex am__TEXINFO_TEX_DIR = $(top_srcdir)/../../build-aux @@ -118,7 +189,6 @@ TEXI2DVI = texi2dvi MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) -includeHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(include_HEADERS) ETAGS = etags CTAGS = ctags @@ -126,9 +196,9 @@ distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print @@ -137,6 +207,7 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ @@ -156,47 +227,67 @@ DEFS = -DIN_LIBASPRINTF @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ # Documentation in Postscript format. # Override of automake's definition: #DVIPS = @DVIPS@ DVIPS = @DVIPS@ -D600 -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GREP = @GREP@ +INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LTALLOCA = @LTALLOCA@ LTLIBOBJS = @LTLIBOBJS@ LTNOUNDEF = @LTNOUNDEF@ # Documentation. MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@ MKDIR_P = @MKDIR_P@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ @@ -210,7 +301,7 @@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -228,6 +319,11 @@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ +gl_LIBOBJS = @gl_LIBOBJS@ +gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -241,6 +337,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -253,19 +350,25 @@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4 +ACLOCAL_AMFLAGS = -I ../../m4 -I ../m4 -I gnulib-m4 + +# A small set of gnulib modules is needed here as well. -# >>> gnulib module alloca. +# Allow users to use "gnulib-tool --update". # Woe32 support. -EXTRA_DIST = autosprintf.h.in $(lib_asprintf_EXTRASOURCES) alloca.in.h \ - texi2html autosprintf_all.html README.woe32 +EXTRA_DIST = autosprintf.h.in $(lib_asprintf_EXTRASOURCES) alloca.c \ + alloca.in.h errno.in.h gnulib-m4/gnulib-cache.m4 texi2html \ + autosprintf_all.html README.woe32 +BUILT_SOURCES = $(ALLOCA_H) $(ERRNO_H) # Temporary index files. automake removes only the predefined ones by itself. -MOSTLYCLEANFILES = autosprintf.h alloca.h +MOSTLYCLEANFILES = autosprintf.h core *.stackdump alloca.h alloca.h-t \ + errno.h errno.h-t RM = rm -f # Library include file. @@ -273,6 +376,7 @@ # Library code. lib_LTLIBRARIES = libasprintf.la +noinst_LTLIBRARIES = libgnu.la libasprintf_la_SOURCES = \ lib-asprintf.h lib-asprintf.c \ autosprintf.h autosprintf.cc @@ -291,36 +395,37 @@ # With libtool 1.5.14, on some platforms, like BeOS, "libtool --tag=CXX" fails # to create a shared library, however "libtool --tag=CC" succeeds. libasprintf_la_LDFLAGS = @LTNOUNDEF@ +libgnu_la_SOURCES = dummy.c +libgnu_la_LIBADD = $(gl_LTLIBOBJS) @LTALLOCA@ +libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) @LTALLOCA@ +EXTRA_libgnu_la_SOURCES = alloca.c +libgnu_la_LDFLAGS = $(AM_LDFLAGS) MAKEINFOFLAGS = --no-split info_TEXINFOS = autosprintf.texi -CLEANFILES = autosprintf.pdf - -# Documentation in Portable Document Format. -SUFFIXES = .pdf # Documentation in HTML format. TEXI2HTML = @PERL@ $(srcdir)/texi2html HTMLS = autosprintf_all.html -all: config.h +all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: -.SUFFIXES: .pdf .c .cc .dvi .html .info .lo .o .obj .ps .texi +.SUFFIXES: .c .cc .dvi .html .info .lo .o .obj .pdf .ps .texi am--refresh: @: -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/Makefile.gnulib $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -336,9 +441,10 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ @@ -350,7 +456,7 @@ @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ @@ -359,20 +465,24 @@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + list2="$$list2 $$p"; \ else :; fi; \ - done + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: @@ -384,6 +494,17 @@ rm -f "$${dir}/so_locations"; \ done +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libgnu.la: $(libgnu_la_OBJECTS) $(libgnu_la_DEPENDENCIES) + $(AM_V_CCLD)$(libgnu_la_LINK) $(libgnu_la_OBJECTS) $(libgnu_la_LIBADD) $(LIBS) + mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -391,21 +512,27 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< .cc.o: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: + $(AM_V_CXX) @AM_BACKSLASH@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: @@ -415,11 +542,11 @@ -rm -rf .libs _libs distclean-libtool: - -rm -f libtool + -rm -f libtool config.lt .texi.info: restore=: && backupdir="$(am__leading_dot)am$$$$" && \ - am__cwd=`pwd` && cd $(srcdir) && \ + am__cwd=`pwd` && $(am__cd) $(srcdir) && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ @@ -431,10 +558,10 @@ -o $@ $<; \ then \ rc=0; \ - cd $(srcdir); \ + $(am__cd) $(srcdir); \ else \ rc=$$?; \ - cd $(srcdir) && \ + $(am__cd) $(srcdir) && \ $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ fi; \ rm -rf $$backupdir; exit $$rc @@ -472,16 +599,18 @@ uninstall-dvi-am: @$(NORMAL_UNINSTALL) - @list='$(DVIS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ rm -f "$(DESTDIR)$(dvidir)/$$f"; \ done uninstall-html-am: @$(NORMAL_UNINSTALL) - @list='$(HTMLS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ done @@ -495,7 +624,8 @@ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ - install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ + if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ + then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \ done; \ else :; fi @$(NORMAL_UNINSTALL) @@ -511,16 +641,18 @@ uninstall-pdf-am: @$(NORMAL_UNINSTALL) - @list='$(PDFS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ done uninstall-ps-am: @$(NORMAL_UNINSTALL) - @list='$(PSS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ rm -f "$(DESTDIR)$(psdir)/$$f"; \ done @@ -537,8 +669,8 @@ for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ if test -f $$file; then \ relfile=`expr "$$file" : "$$d/\(.*\)"`; \ - test -f $(distdir)/$$relfile || \ - cp -p $$file $(distdir)/$$relfile; \ + test -f "$(distdir)/$$relfile" || \ + cp -p $$file "$(distdir)/$$relfile"; \ else :; fi; \ done; \ done @@ -548,9 +680,11 @@ autosprintf.fns autosprintf.ky autosprintf.kys \ autosprintf.log autosprintf.pg autosprintf.pgs \ autosprintf.tmp autosprintf.toc autosprintf.tp \ - autosprintf.tps autosprintf.vr autosprintf.vrs \ - autosprintf.dvi autosprintf.pdf autosprintf.ps \ - autosprintf.html + autosprintf.tps autosprintf.vr autosprintf.vrs + +clean-aminfo: + -test -z "autosprintf.dvi autosprintf.pdf autosprintf.ps autosprintf.html" \ + || rm -rf autosprintf.dvi autosprintf.pdf autosprintf.ps autosprintf.html maintainer-clean-aminfo: @list='$(INFO_DEPS)'; for i in $$list; do \ @@ -561,72 +695,79 @@ install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" - @list='$(include_HEADERS)'; for p in $$list; do \ + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) - @list='$(include_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \ - rm -f "$(DESTDIR)$(includedir)/$$f"; \ - done + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -642,24 +783,30 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-info dist-hook - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -668,6 +815,14 @@ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -691,13 +846,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -705,9 +864,11 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ @@ -729,13 +890,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -753,14 +916,16 @@ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am -check: check-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) $(HEADERS) config.h \ all-local installdirs: installdirs-local for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done -install: install-am +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am @@ -778,17 +943,19 @@ -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ +clean-am: clean-aminfo clean-generic clean-libLTLIBRARIES \ + clean-libtool clean-local clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am @@ -817,11 +984,14 @@ install-dvi-am: $(DVIS) @$(NORMAL_INSTALL) test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)" - @list='$(DVIS)'; for p in $$list; do \ + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \ done install-exec-am: install-libLTLIBRARIES @@ -830,26 +1000,31 @@ install-html-am: $(HTMLS) @$(NORMAL_INSTALL) test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" - @list='$(HTMLS)'; for p in $$list; do \ + @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ + $(am__strip_dir) \ if test -d "$$d$$p"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \ else \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + list2="$$list2 $$d$$p"; \ fi; \ - done + done; \ + test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ + done; } install-info: install-info-am install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)" @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - list='$(INFO_DEPS)'; \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ @@ -857,17 +1032,19 @@ if test -f $$file; then d=.; else d=$(srcdir); fi; \ file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ - $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ + $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ if test -f $$ifile; then \ - relfile=`echo "$$ifile" | sed 's|^.*/||'`; \ - echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \ - $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \ + echo "$$ifile"; \ else : ; fi; \ done; \ - done + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done @$(POST_INSTALL) - @if false; then \ - list='$(INFO_DEPS)'; \ + @if (install-info --version && \ + install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ @@ -881,23 +1058,27 @@ install-pdf-am: $(PDFS) @$(NORMAL_INSTALL) test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)" - @list='$(PDFS)'; for p in $$list; do \ + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ - done + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done install-ps: install-ps-am install-ps-am: $(PSS) @$(NORMAL_INSTALL) test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)" - @list='$(PSS)'; for p in $$list; do \ + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \ - done + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done installcheck-am: maintainer-clean: maintainer-clean-am @@ -910,7 +1091,7 @@ mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool + mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf: pdf-am @@ -925,12 +1106,13 @@ uninstall-libLTLIBRARIES uninstall-local uninstall-pdf-am \ uninstall-ps-am -.MAKE: install-am install-strip +.MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \ - clean clean-generic clean-libLTLIBRARIES clean-libtool \ - clean-local ctags dist dist-all dist-bzip2 dist-gzip dist-hook \ - dist-info dist-shar dist-tarZ dist-zip distcheck distclean \ + clean clean-aminfo clean-generic clean-libLTLIBRARIES \ + clean-libtool clean-local clean-noinstLTLIBRARIES ctags dist \ + dist-all dist-bzip2 dist-gzip dist-hook dist-info dist-lzma \ + dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-compile distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am html-local info \ @@ -943,8 +1125,8 @@ installcheck-am installdirs installdirs-local maintainer-clean \ maintainer-clean-aminfo maintainer-clean-generic mostlyclean \ mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-dvi-am uninstall-html-am \ + mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am tags \ + uninstall uninstall-am uninstall-dvi-am uninstall-html-am \ uninstall-includeHEADERS uninstall-info-am \ uninstall-libLTLIBRARIES uninstall-local uninstall-pdf-am \ uninstall-ps-am @@ -958,15 +1140,43 @@ rm -f $(distdir)/autosprintf.h lib-asprintf.lo: $(lib_asprintf_EXTRASOURCES) libasprintf.la: $(libasprintf_la_OBJECTS) $(libasprintf_la_DEPENDENCIES) - $(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \ + $(AM_V_GEN)$(CXXLINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) || \ $(LINK) -rpath $(libdir) $(libasprintf_la_LDFLAGS) $(libasprintf_la_OBJECTS) $(libasprintf_la_LIBADD) $(LIBS) -# The following is needed in order to create an when the system +# We need the following in order to create when the system # doesn't have one that works with the given compiler. -all-local $(libasprintf_la_OBJECTS): @ALLOCA_H@ alloca.h: alloca.in.h - cp $(srcdir)/alloca.in.h alloca.h -# <<< gnulib module alloca. + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/alloca.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ + +mostlyclean-local: mostlyclean-generic + @for dir in '' $(MOSTLYCLEANDIRS); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + : # Clean up after Solaris cc. clean-local: @@ -981,7 +1191,8 @@ install-data-local: install-html installdirs-local: installdirs-html uninstall-local: uninstall-html -# autosprintf.dvi and autosprintf.ps are already known to automake. + +# CLEANFILES: autosprintf.{dvi,ps,pdf,html} are already known to automake. # Documentation in DVI format. @@ -1004,6 +1215,8 @@ uninstall-ps: $(RM) $(DESTDIR)$(psdir)/autosprintf.ps +# Documentation in Portable Document Format. + # The install-pdf target is already defined by automake. installdirs-pdf: @@ -1027,6 +1240,7 @@ uninstall-html: $(RM) $(DESTDIR)$(htmldir)/autosprintf.html + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/libasprintf/printf-args.c gettext-0.18.1.1/gettext-runtime/libasprintf/printf-args.c --- gettext-0.17/gettext-runtime/libasprintf/printf-args.c 2007-11-04 21:32:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/printf-args.c 2010-06-06 12:49:57.000000000 +0000 @@ -43,146 +43,146 @@ switch (ap->type) { case TYPE_SCHAR: - ap->a.a_schar = va_arg (args, /*signed char*/ int); - break; + ap->a.a_schar = va_arg (args, /*signed char*/ int); + break; case TYPE_UCHAR: - ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); - break; + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); + break; case TYPE_SHORT: - ap->a.a_short = va_arg (args, /*short*/ int); - break; + ap->a.a_short = va_arg (args, /*short*/ int); + break; case TYPE_USHORT: - ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); - break; + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); + break; case TYPE_INT: - ap->a.a_int = va_arg (args, int); - break; + ap->a.a_int = va_arg (args, int); + break; case TYPE_UINT: - ap->a.a_uint = va_arg (args, unsigned int); - break; + ap->a.a_uint = va_arg (args, unsigned int); + break; case TYPE_LONGINT: - ap->a.a_longint = va_arg (args, long int); - break; + ap->a.a_longint = va_arg (args, long int); + break; case TYPE_ULONGINT: - ap->a.a_ulongint = va_arg (args, unsigned long int); - break; + ap->a.a_ulongint = va_arg (args, unsigned long int); + break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: - ap->a.a_longlongint = va_arg (args, long long int); - break; + ap->a.a_longlongint = va_arg (args, long long int); + break; case TYPE_ULONGLONGINT: - ap->a.a_ulonglongint = va_arg (args, unsigned long long int); - break; + ap->a.a_ulonglongint = va_arg (args, unsigned long long int); + break; #endif case TYPE_DOUBLE: - ap->a.a_double = va_arg (args, double); - break; + ap->a.a_double = va_arg (args, double); + break; case TYPE_LONGDOUBLE: - ap->a.a_longdouble = va_arg (args, long double); - break; + ap->a.a_longdouble = va_arg (args, long double); + break; case TYPE_CHAR: - ap->a.a_char = va_arg (args, int); - break; + ap->a.a_char = va_arg (args, int); + break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: - /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by - default argument promotions", this is not the case in mingw32, - where wint_t is 'unsigned short'. */ - ap->a.a_wide_char = - (sizeof (wint_t) < sizeof (int) - ? va_arg (args, int) - : va_arg (args, wint_t)); - break; + /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by + default argument promotions", this is not the case in mingw32, + where wint_t is 'unsigned short'. */ + ap->a.a_wide_char = + (sizeof (wint_t) < sizeof (int) + ? va_arg (args, int) + : va_arg (args, wint_t)); + break; #endif case TYPE_STRING: - ap->a.a_string = va_arg (args, const char *); - /* A null pointer is an invalid argument for "%s", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_string == NULL) - ap->a.a_string = "(NULL)"; - break; + ap->a.a_string = va_arg (args, const char *); + /* A null pointer is an invalid argument for "%s", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_string == NULL) + ap->a.a_string = "(NULL)"; + break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: - ap->a.a_wide_string = va_arg (args, const wchar_t *); - /* A null pointer is an invalid argument for "%ls", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_wide_string == NULL) - { - static const wchar_t wide_null_string[] = - { - (wchar_t)'(', - (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', - (wchar_t)')', - (wchar_t)0 - }; - ap->a.a_wide_string = wide_null_string; - } - break; + ap->a.a_wide_string = va_arg (args, const wchar_t *); + /* A null pointer is an invalid argument for "%ls", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_wide_string == NULL) + { + static const wchar_t wide_null_string[] = + { + (wchar_t)'(', + (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', + (wchar_t)')', + (wchar_t)0 + }; + ap->a.a_wide_string = wide_null_string; + } + break; #endif case TYPE_POINTER: - ap->a.a_pointer = va_arg (args, void *); - break; + ap->a.a_pointer = va_arg (args, void *); + break; case TYPE_COUNT_SCHAR_POINTER: - ap->a.a_count_schar_pointer = va_arg (args, signed char *); - break; + ap->a.a_count_schar_pointer = va_arg (args, signed char *); + break; case TYPE_COUNT_SHORT_POINTER: - ap->a.a_count_short_pointer = va_arg (args, short *); - break; + ap->a.a_count_short_pointer = va_arg (args, short *); + break; case TYPE_COUNT_INT_POINTER: - ap->a.a_count_int_pointer = va_arg (args, int *); - break; + ap->a.a_count_int_pointer = va_arg (args, int *); + break; case TYPE_COUNT_LONGINT_POINTER: - ap->a.a_count_longint_pointer = va_arg (args, long int *); - break; + ap->a.a_count_longint_pointer = va_arg (args, long int *); + break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: - ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); - break; + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); + break; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: - ap->a.a_u8_string = va_arg (args, const uint8_t *); - /* A null pointer is an invalid argument for "%U", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u8_string == NULL) - { - static const uint8_t u8_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u8_string = u8_null_string; - } - break; + ap->a.a_u8_string = va_arg (args, const uint8_t *); + /* A null pointer is an invalid argument for "%U", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u8_string == NULL) + { + static const uint8_t u8_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u8_string = u8_null_string; + } + break; case TYPE_U16_STRING: - ap->a.a_u16_string = va_arg (args, const uint16_t *); - /* A null pointer is an invalid argument for "%lU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u16_string == NULL) - { - static const uint16_t u16_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u16_string = u16_null_string; - } - break; + ap->a.a_u16_string = va_arg (args, const uint16_t *); + /* A null pointer is an invalid argument for "%lU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u16_string == NULL) + { + static const uint16_t u16_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u16_string = u16_null_string; + } + break; case TYPE_U32_STRING: - ap->a.a_u32_string = va_arg (args, const uint32_t *); - /* A null pointer is an invalid argument for "%llU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u32_string == NULL) - { - static const uint32_t u32_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u32_string = u32_null_string; - } - break; + ap->a.a_u32_string = va_arg (args, const uint32_t *); + /* A null pointer is an invalid argument for "%llU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u32_string == NULL) + { + static const uint32_t u32_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u32_string = u32_null_string; + } + break; #endif default: - /* Unknown type. */ - return -1; + /* Unknown type. */ + return -1; } return 0; } diff -Nru gettext-0.17/gettext-runtime/libasprintf/printf-args.h gettext-0.18.1.1/gettext-runtime/libasprintf/printf-args.h --- gettext-0.17/gettext-runtime/libasprintf/printf-args.h 2007-11-04 21:32:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/printf-args.h 2010-06-06 12:49:57.000000000 +0000 @@ -94,42 +94,42 @@ arg_type type; union { - signed char a_schar; - unsigned char a_uchar; - short a_short; - unsigned short a_ushort; - int a_int; - unsigned int a_uint; - long int a_longint; - unsigned long int a_ulongint; + signed char a_schar; + unsigned char a_uchar; + short a_short; + unsigned short a_ushort; + int a_int; + unsigned int a_uint; + long int a_longint; + unsigned long int a_ulongint; #if HAVE_LONG_LONG_INT - long long int a_longlongint; - unsigned long long int a_ulonglongint; + long long int a_longlongint; + unsigned long long int a_ulonglongint; #endif - float a_float; - double a_double; - long double a_longdouble; - int a_char; + float a_float; + double a_double; + long double a_longdouble; + int a_char; #if HAVE_WINT_T - wint_t a_wide_char; + wint_t a_wide_char; #endif - const char* a_string; + const char* a_string; #if HAVE_WCHAR_T - const wchar_t* a_wide_string; + const wchar_t* a_wide_string; #endif - void* a_pointer; - signed char * a_count_schar_pointer; - short * a_count_short_pointer; - int * a_count_int_pointer; - long int * a_count_longint_pointer; + void* a_pointer; + signed char * a_count_schar_pointer; + short * a_count_short_pointer; + int * a_count_int_pointer; + long int * a_count_longint_pointer; #if HAVE_LONG_LONG_INT - long long int * a_count_longlongint_pointer; + long long int * a_count_longlongint_pointer; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ - const uint8_t * a_u8_string; - const uint16_t * a_u16_string; - const uint32_t * a_u32_string; + const uint8_t * a_u8_string; + const uint16_t * a_u16_string; + const uint32_t * a_u32_string; #endif } a; diff -Nru gettext-0.17/gettext-runtime/libasprintf/printf-parse.c gettext-0.18.1.1/gettext-runtime/libasprintf/printf-parse.c --- gettext-0.17/gettext-runtime/libasprintf/printf-parse.c 2007-11-03 11:44:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/printf-parse.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Formatted output to strings. - Copyright (C) 1999-2000, 2002-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2000, 2002-2003, 2006-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -81,10 +81,10 @@ int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { - const CHAR_T *cp = format; /* pointer into format */ - size_t arg_posn = 0; /* number of regular arguments consumed */ - size_t d_allocated; /* allocated elements of d->dir */ - size_t a_allocated; /* allocated elements of a->arg */ + const CHAR_T *cp = format; /* pointer into format */ + size_t arg_posn = 0; /* number of regular arguments consumed */ + size_t d_allocated; /* allocated elements of d->dir */ + size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; @@ -100,463 +100,501 @@ a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ - { \ - size_t n = (_index_); \ - if (n >= a_allocated) \ - { \ - size_t memory_size; \ - argument *memory; \ - \ - a_allocated = xtimes (a_allocated, 2); \ - if (a_allocated <= n) \ - a_allocated = xsum (n, 1); \ - memory_size = xtimes (a_allocated, sizeof (argument)); \ - if (size_overflow_p (memory_size)) \ - /* Overflow, would lead to out of memory. */ \ - goto out_of_memory; \ - memory = (argument *) (a->arg \ - ? realloc (a->arg, memory_size) \ - : malloc (memory_size)); \ - if (memory == NULL) \ - /* Out of memory. */ \ - goto out_of_memory; \ - a->arg = memory; \ - } \ - while (a->count <= n) \ - a->arg[a->count++].type = TYPE_NONE; \ - if (a->arg[n].type == TYPE_NONE) \ - a->arg[n].type = (_type_); \ - else if (a->arg[n].type != (_type_)) \ - /* Ambiguous type for positional argument. */ \ - goto error; \ + { \ + size_t n = (_index_); \ + if (n >= a_allocated) \ + { \ + size_t memory_size; \ + argument *memory; \ + \ + a_allocated = xtimes (a_allocated, 2); \ + if (a_allocated <= n) \ + a_allocated = xsum (n, 1); \ + memory_size = xtimes (a_allocated, sizeof (argument)); \ + if (size_overflow_p (memory_size)) \ + /* Overflow, would lead to out of memory. */ \ + goto out_of_memory; \ + memory = (argument *) (a->arg \ + ? realloc (a->arg, memory_size) \ + : malloc (memory_size)); \ + if (memory == NULL) \ + /* Out of memory. */ \ + goto out_of_memory; \ + a->arg = memory; \ + } \ + while (a->count <= n) \ + a->arg[a->count++].type = TYPE_NONE; \ + if (a->arg[n].type == TYPE_NONE) \ + a->arg[n].type = (_type_); \ + else if (a->arg[n].type != (_type_)) \ + /* Ambiguous type for positional argument. */ \ + goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') - { - size_t arg_index = ARG_NONE; - DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ - - /* Initialize the next directive. */ - dp->dir_start = cp - 1; - dp->flags = 0; - dp->width_start = NULL; - dp->width_end = NULL; - dp->width_arg_index = ARG_NONE; - dp->precision_start = NULL; - dp->precision_end = NULL; - dp->precision_arg_index = ARG_NONE; - dp->arg_index = ARG_NONE; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - arg_index = n - 1; - cp = np + 1; - } - } - - /* Read the flags. */ - for (;;) - { - if (*cp == '\'') - { - dp->flags |= FLAG_GROUP; - cp++; - } - else if (*cp == '-') - { - dp->flags |= FLAG_LEFT; - cp++; - } - else if (*cp == '+') - { - dp->flags |= FLAG_SHOWSIGN; - cp++; - } - else if (*cp == ' ') - { - dp->flags |= FLAG_SPACE; - cp++; - } - else if (*cp == '#') - { - dp->flags |= FLAG_ALT; - cp++; - } - else if (*cp == '0') - { - dp->flags |= FLAG_ZERO; - cp++; - } - else - break; - } - - /* Parse the field width. */ - if (*cp == '*') - { - dp->width_start = cp; - cp++; - dp->width_end = cp; - if (max_width_length < 1) - max_width_length = 1; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - dp->width_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->width_arg_index == ARG_NONE) - { - dp->width_arg_index = arg_posn++; - if (dp->width_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->width_arg_index, TYPE_INT); - } - else if (*cp >= '0' && *cp <= '9') - { - size_t width_length; - - dp->width_start = cp; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->width_end = cp; - width_length = dp->width_end - dp->width_start; - if (max_width_length < width_length) - max_width_length = width_length; - } - - /* Parse the precision. */ - if (*cp == '.') - { - cp++; - if (*cp == '*') - { - dp->precision_start = cp - 1; - cp++; - dp->precision_end = cp; - if (max_precision_length < 2) - max_precision_length = 2; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory - later. */ - goto error; - dp->precision_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->precision_arg_index == ARG_NONE) - { - dp->precision_arg_index = arg_posn++; - if (dp->precision_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->precision_arg_index, TYPE_INT); - } - else - { - size_t precision_length; - - dp->precision_start = cp - 1; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->precision_end = cp; - precision_length = dp->precision_end - dp->precision_start; - if (max_precision_length < precision_length) - max_precision_length = precision_length; - } - } - - { - arg_type type; - - /* Parse argument type/size specifiers. */ - { - int flags = 0; - - for (;;) - { - if (*cp == 'h') - { - flags |= (1 << (flags & 1)); - cp++; - } - else if (*cp == 'L') - { - flags |= 4; - cp++; - } - else if (*cp == 'l') - { - flags += 8; - cp++; - } - else if (*cp == 'j') - { - if (sizeof (intmax_t) > sizeof (long)) - { - /* intmax_t = long long */ - flags += 16; - } - else if (sizeof (intmax_t) > sizeof (int)) - { - /* intmax_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 'z' || *cp == 'Z') - { - /* 'z' is standardized in ISO C 99, but glibc uses 'Z' - because the warning facility in gcc-2.95.2 understands - only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ - if (sizeof (size_t) > sizeof (long)) - { - /* size_t = long long */ - flags += 16; - } - else if (sizeof (size_t) > sizeof (int)) - { - /* size_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 't') - { - if (sizeof (ptrdiff_t) > sizeof (long)) - { - /* ptrdiff_t = long long */ - flags += 16; - } - else if (sizeof (ptrdiff_t) > sizeof (int)) - { - /* ptrdiff_t = long */ - flags += 8; - } - cp++; - } - else - break; - } - - /* Read the conversion character. */ - c = *cp++; - switch (c) - { - case 'd': case 'i': + { + size_t arg_index = ARG_NONE; + DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ + + /* Initialize the next directive. */ + dp->dir_start = cp - 1; + dp->flags = 0; + dp->width_start = NULL; + dp->width_end = NULL; + dp->width_arg_index = ARG_NONE; + dp->precision_start = NULL; + dp->precision_end = NULL; + dp->precision_arg_index = ARG_NONE; + dp->arg_index = ARG_NONE; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + arg_index = n - 1; + cp = np + 1; + } + } + + /* Read the flags. */ + for (;;) + { + if (*cp == '\'') + { + dp->flags |= FLAG_GROUP; + cp++; + } + else if (*cp == '-') + { + dp->flags |= FLAG_LEFT; + cp++; + } + else if (*cp == '+') + { + dp->flags |= FLAG_SHOWSIGN; + cp++; + } + else if (*cp == ' ') + { + dp->flags |= FLAG_SPACE; + cp++; + } + else if (*cp == '#') + { + dp->flags |= FLAG_ALT; + cp++; + } + else if (*cp == '0') + { + dp->flags |= FLAG_ZERO; + cp++; + } + else + break; + } + + /* Parse the field width. */ + if (*cp == '*') + { + dp->width_start = cp; + cp++; + dp->width_end = cp; + if (max_width_length < 1) + max_width_length = 1; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + dp->width_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->width_arg_index == ARG_NONE) + { + dp->width_arg_index = arg_posn++; + if (dp->width_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->width_arg_index, TYPE_INT); + } + else if (*cp >= '0' && *cp <= '9') + { + size_t width_length; + + dp->width_start = cp; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->width_end = cp; + width_length = dp->width_end - dp->width_start; + if (max_width_length < width_length) + max_width_length = width_length; + } + + /* Parse the precision. */ + if (*cp == '.') + { + cp++; + if (*cp == '*') + { + dp->precision_start = cp - 1; + cp++; + dp->precision_end = cp; + if (max_precision_length < 2) + max_precision_length = 2; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory + later. */ + goto error; + dp->precision_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->precision_arg_index == ARG_NONE) + { + dp->precision_arg_index = arg_posn++; + if (dp->precision_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->precision_arg_index, TYPE_INT); + } + else + { + size_t precision_length; + + dp->precision_start = cp - 1; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->precision_end = cp; + precision_length = dp->precision_end - dp->precision_start; + if (max_precision_length < precision_length) + max_precision_length = precision_length; + } + } + + { + arg_type type; + + /* Parse argument type/size specifiers. */ + { + int flags = 0; + + for (;;) + { + if (*cp == 'h') + { + flags |= (1 << (flags & 1)); + cp++; + } + else if (*cp == 'L') + { + flags |= 4; + cp++; + } + else if (*cp == 'l') + { + flags += 8; + cp++; + } + else if (*cp == 'j') + { + if (sizeof (intmax_t) > sizeof (long)) + { + /* intmax_t = long long */ + flags += 16; + } + else if (sizeof (intmax_t) > sizeof (int)) + { + /* intmax_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 'z' || *cp == 'Z') + { + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + if (sizeof (size_t) > sizeof (long)) + { + /* size_t = long long */ + flags += 16; + } + else if (sizeof (size_t) > sizeof (int)) + { + /* size_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 't') + { + if (sizeof (ptrdiff_t) > sizeof (long)) + { + /* ptrdiff_t = long long */ + flags += 16; + } + else if (sizeof (ptrdiff_t) > sizeof (int)) + { + /* ptrdiff_t = long */ + flags += 8; + } + cp++; + } +#if defined __APPLE__ && defined __MACH__ + /* On MacOS X 10.3, PRIdMAX is defined as "qd". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'q') + { + if (64 / 8 > sizeof (long)) + { + /* int64_t = long long */ + flags += 16; + } + else + { + /* int64_t = long */ + flags += 8; + } + cp++; + } +#endif +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On native Win32, PRIdMAX is defined as "I64d". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') + { + if (64 / 8 > sizeof (long)) + { + /* __int64 = long long */ + flags += 16; + } + else + { + /* __int64 = long */ + flags += 8; + } + cp += 3; + } +#endif + else + break; + } + + /* Read the conversion character. */ + c = *cp++; + switch (c) + { + case 'd': case 'i': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGLONGINT; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lld" into TYPE_LONGINT. */ - if (flags >= 8) - type = TYPE_LONGINT; - else if (flags & 2) - type = TYPE_SCHAR; - else if (flags & 1) - type = TYPE_SHORT; - else - type = TYPE_INT; - break; - case 'o': case 'u': case 'x': case 'X': + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGLONGINT; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lld" into TYPE_LONGINT. */ + if (flags >= 8) + type = TYPE_LONGINT; + else if (flags & 2) + type = TYPE_SCHAR; + else if (flags & 1) + type = TYPE_SHORT; + else + type = TYPE_INT; + break; + case 'o': case 'u': case 'x': case 'X': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_ULONGLONGINT; - else -#endif - /* If 'unsigned long long' exists and is the same as - 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ - if (flags >= 8) - type = TYPE_ULONGINT; - else if (flags & 2) - type = TYPE_UCHAR; - else if (flags & 1) - type = TYPE_USHORT; - else - type = TYPE_UINT; - break; - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGDOUBLE; - else - type = TYPE_DOUBLE; - break; - case 'c': - if (flags >= 8) + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_ULONGLONGINT; + else +#endif + /* If 'unsigned long long' exists and is the same as + 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ + if (flags >= 8) + type = TYPE_ULONGINT; + else if (flags & 2) + type = TYPE_UCHAR; + else if (flags & 1) + type = TYPE_USHORT; + else + type = TYPE_UINT; + break; + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGDOUBLE; + else + type = TYPE_DOUBLE; + break; + case 'c': + if (flags >= 8) #if HAVE_WINT_T - type = TYPE_WIDE_CHAR; + type = TYPE_WIDE_CHAR; #else - goto error; + goto error; #endif - else - type = TYPE_CHAR; - break; + else + type = TYPE_CHAR; + break; #if HAVE_WINT_T - case 'C': - type = TYPE_WIDE_CHAR; - c = 'c'; - break; + case 'C': + type = TYPE_WIDE_CHAR; + c = 'c'; + break; #endif - case 's': - if (flags >= 8) + case 's': + if (flags >= 8) #if HAVE_WCHAR_T - type = TYPE_WIDE_STRING; + type = TYPE_WIDE_STRING; #else - goto error; + goto error; #endif - else - type = TYPE_STRING; - break; + else + type = TYPE_STRING; + break; #if HAVE_WCHAR_T - case 'S': - type = TYPE_WIDE_STRING; - c = 's'; - break; -#endif - case 'p': - type = TYPE_POINTER; - break; - case 'n': + case 'S': + type = TYPE_WIDE_STRING; + c = 's'; + break; +#endif + case 'p': + type = TYPE_POINTER; + break; + case 'n': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_COUNT_LONGLONGINT_POINTER; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lln" into TYPE_COUNT_LONGINT_POINTER. */ - if (flags >= 8) - type = TYPE_COUNT_LONGINT_POINTER; - else if (flags & 2) - type = TYPE_COUNT_SCHAR_POINTER; - else if (flags & 1) - type = TYPE_COUNT_SHORT_POINTER; - else - type = TYPE_COUNT_INT_POINTER; - break; + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_COUNT_LONGLONGINT_POINTER; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lln" into TYPE_COUNT_LONGINT_POINTER. */ + if (flags >= 8) + type = TYPE_COUNT_LONGINT_POINTER; + else if (flags & 2) + type = TYPE_COUNT_SCHAR_POINTER; + else if (flags & 1) + type = TYPE_COUNT_SHORT_POINTER; + else + type = TYPE_COUNT_INT_POINTER; + break; #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - case 'U': - if (flags >= 16) - type = TYPE_U32_STRING; - else if (flags >= 8) - type = TYPE_U16_STRING; - else - type = TYPE_U8_STRING; - break; -#endif - case '%': - type = TYPE_NONE; - break; - default: - /* Unknown conversion character. */ - goto error; - } - } - - if (type != TYPE_NONE) - { - dp->arg_index = arg_index; - if (dp->arg_index == ARG_NONE) - { - dp->arg_index = arg_posn++; - if (dp->arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->arg_index, type); - } - dp->conversion = c; - dp->dir_end = cp; - } - - d->count++; - if (d->count >= d_allocated) - { - size_t memory_size; - DIRECTIVE *memory; - - d_allocated = xtimes (d_allocated, 2); - memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); - if (size_overflow_p (memory_size)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - memory = (DIRECTIVE *) realloc (d->dir, memory_size); - if (memory == NULL) - /* Out of memory. */ - goto out_of_memory; - d->dir = memory; - } - } + /* The unistdio extensions. */ + case 'U': + if (flags >= 16) + type = TYPE_U32_STRING; + else if (flags >= 8) + type = TYPE_U16_STRING; + else + type = TYPE_U8_STRING; + break; +#endif + case '%': + type = TYPE_NONE; + break; + default: + /* Unknown conversion character. */ + goto error; + } + } + + if (type != TYPE_NONE) + { + dp->arg_index = arg_index; + if (dp->arg_index == ARG_NONE) + { + dp->arg_index = arg_posn++; + if (dp->arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->arg_index, type); + } + dp->conversion = c; + dp->dir_end = cp; + } + + d->count++; + if (d->count >= d_allocated) + { + size_t memory_size; + DIRECTIVE *memory; + + d_allocated = xtimes (d_allocated, 2); + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); + if (size_overflow_p (memory_size)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + memory = (DIRECTIVE *) realloc (d->dir, memory_size); + if (memory == NULL) + /* Out of memory. */ + goto out_of_memory; + d->dir = memory; + } + } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) - { - /* Non-ASCII character. Not supported. */ - goto error; - } + { + /* Non-ASCII character. Not supported. */ + goto error; + } #endif } d->dir[d->count].dir_start = cp; diff -Nru gettext-0.17/gettext-runtime/libasprintf/printf-parse.h gettext-0.18.1.1/gettext-runtime/libasprintf/printf-parse.h --- gettext-0.17/gettext-runtime/libasprintf/printf-parse.h 2005-05-20 21:06:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/printf-parse.h 2010-06-06 12:49:57.000000000 +0000 @@ -23,15 +23,15 @@ /* Flags */ -#define FLAG_GROUP 1 /* ' flag */ -#define FLAG_LEFT 2 /* - flag */ -#define FLAG_SHOWSIGN 4 /* + flag */ -#define FLAG_SPACE 8 /* space flag */ -#define FLAG_ALT 16 /* # flag */ -#define FLAG_ZERO 32 +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ -#define ARG_NONE (~(size_t)0) +#define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct diff -Nru gettext-0.17/gettext-runtime/libasprintf/README.woe32 gettext-0.18.1.1/gettext-runtime/libasprintf/README.woe32 --- gettext-0.17/gettext-runtime/libasprintf/README.woe32 2006-07-26 12:00:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/README.woe32 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -Installation on Woe32 (WinNT/2000/XP, Win95/98/ME): +Installation on Woe32 (WinNT/2000/XP/Vista, Win95/98/ME): Building requires the mingw development environment (includes gcc). MS Visual C/C++ with "nmake" is no longer supported. diff -Nru gettext-0.17/gettext-runtime/libasprintf/vasnprintf.c gettext-0.18.1.1/gettext-runtime/libasprintf/vasnprintf.c --- gettext-0.17/gettext-runtime/libasprintf/vasnprintf.c 2007-11-05 23:47:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/vasnprintf.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 1999, 2002-2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -68,13 +68,13 @@ # endif #endif -#include /* localeconv() */ -#include /* snprintf(), sprintf() */ -#include /* abort(), malloc(), realloc(), free() */ -#include /* memcpy(), strlen() */ -#include /* errno */ -#include /* CHAR_BIT */ -#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ +#include /* localeconv() */ +#include /* snprintf(), sprintf() */ +#include /* abort(), malloc(), realloc(), free() */ +#include /* memcpy(), strlen() */ +#include /* errno */ +#include /* CHAR_BIT */ +#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif @@ -96,7 +96,7 @@ #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL @@ -107,7 +107,7 @@ #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" # include "printf-frexp.h" #endif @@ -118,34 +118,6 @@ # include "fpucw.h" #endif -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - -#if HAVE_WCHAR_T -# if HAVE_WCSLEN -# define local_wcslen wcslen -# else - /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid - a dependency towards this library, here is a local substitute. - Define this substitute only once, even if this file is included - twice in the same compilation unit. */ -# ifndef local_wcslen_defined -# define local_wcslen_defined 1 -static size_t -local_wcslen (const wchar_t *s) -{ - const wchar_t *ptr; - - for (ptr = s; *ptr != (wchar_t) 0; ptr++) - ; - return ptr - s; -} -# endif -# endif -#endif - /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION @@ -158,6 +130,7 @@ # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy +# define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char @@ -168,6 +141,7 @@ # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy +# define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION @@ -175,25 +149,40 @@ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than - on Unix; we use the _snwprintf() function instead. */ -# define SNPRINTF _snwprintf + on Unix; we use the function _snwprintf() or - on mingw - snwprintf() + instead. The mingw function snwprintf() has fewer bugs than the + MSVCRT function _snwprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snwprintf +# else +# define SNPRINTF _snwprintf +# endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ -# /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. + /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the - size argument is >= 0x3000000. */ -# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ + size argument is >= 0x3000000. + Also don't use it on Linux libc5, since there snprintf with size = 1 + writes any output without bounds, like sprintf. */ +# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF - /* Windows. */ -# define SNPRINTF _snprintf + /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT + function _snprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snprintf + /* Here we need to call the native snprintf, not rpl_snprintf. */ +# undef snprintf +# else +# define SNPRINTF _snprintf +# endif # else /* Unix. */ # define SNPRINTF snprintf @@ -204,19 +193,92 @@ /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf -#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +/* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" + warnings in this file. Use -Dlint to suppress them. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +/* Avoid some warnings from "gcc -Wshadow". + This file doesn't use the exp() and remainder() functions. */ +#undef exp +#define exp expo +#undef remainder +#define remainder rem + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION +# if (HAVE_STRNLEN && !defined _AIX) +# define local_strnlen strnlen +# else +# ifndef local_strnlen_defined +# define local_strnlen_defined 1 +static size_t +local_strnlen (const char *string, size_t maxlen) +{ + const char *end = memchr (string, '\0', maxlen); + return end ? (size_t) (end - string) : maxlen; +} +# endif +# endif +#endif + +#if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T +# if HAVE_WCSLEN +# define local_wcslen wcslen +# else + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid + a dependency towards this library, here is a local substitute. + Define this substitute only once, even if this file is included + twice in the same compilation unit. */ +# ifndef local_wcslen_defined +# define local_wcslen_defined 1 +static size_t +local_wcslen (const wchar_t *s) +{ + const wchar_t *ptr; + + for (ptr = s; *ptr != (wchar_t) 0; ptr++) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION +# if HAVE_WCSNLEN +# define local_wcsnlen wcsnlen +# else +# ifndef local_wcsnlen_defined +# define local_wcsnlen_defined 1 +static size_t +local_wcsnlen (const wchar_t *s, size_t maxlen) +{ + const wchar_t *ptr; + + for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char -decimal_point_char () +decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is - multithread-safe on glibc systems, but is not required to be multithread- - safe by POSIX. sprintf(), however, is multithread-safe. localeconv() - is rarely multithread-safe. */ -# if HAVE_NL_LANGINFO && __GLIBC__ + multithread-safe on glibc systems and MacOS X systems, but is not required + to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. + localeconv() is rarely multithread-safe. */ +# if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; @@ -237,18 +299,18 @@ static int is_infinite_or_zero (double x) { - return isnan (x) || x + x == x; + return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL -/* Equivalent to !isfinite(x), but does not require libm. */ +/* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int -is_infinitel (long double x) +is_infinite_or_zerol (long double x) { - return isnanl (x) || (x + x == x && x != 0.0L); + return isnanl (x) || x + x == x; } #endif @@ -316,26 +378,26 @@ dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) - return NULL; + return NULL; for (k = len2; k > 0; ) - dp[--k] = 0; + dp[--k] = 0; for (i = 0; i < len1; i++) - { - mp_limb_t digit1 = p1[i]; - mp_twolimb_t carry = 0; - for (j = 0; j < len2; j++) - { - mp_limb_t digit2 = p2[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - carry += dp[i + j]; - dp[i + j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - dp[i + len2] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = p1[i]; + mp_twolimb_t carry = 0; + for (j = 0; j < len2; j++) + { + mp_limb_t digit2 = p2[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + carry += dp[i + j]; + dp[i + j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + dp[i + len2] = (mp_limb_t) carry; + } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) - dlen--; + dlen--; dest->nlimbs = dlen; dest->limbs = dp; } @@ -365,7 +427,7 @@ Normalise [q[m-1],...,q[0]], yields q. If m>=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). - s:=intDsize-1-(hightest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} @@ -429,12 +491,12 @@ for (;;) { if (b_len == 0) - /* Division by zero. */ - abort (); + /* Division by zero. */ + abort (); if (b_ptr[b_len - 1] == 0) - b_len--; + b_len--; else - break; + break; } /* Here m = a_len >= 0 and n = b_len > 0. */ @@ -451,261 +513,261 @@ else if (b_len == 1) { /* n=1: single precision division. - beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ + beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { - mp_limb_t den = b_ptr[0]; - mp_limb_t remainder = 0; - const mp_limb_t *sourceptr = a_ptr + a_len; - mp_limb_t *destptr = q_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; - *--destptr = num / den; - remainder = num % den; - } - /* Normalise and store r. */ - if (remainder > 0) - { - r_ptr[0] = remainder; - r_len = 1; - } - else - r_len = 0; - /* Normalise q. */ - q_len = a_len; - if (q_ptr[q_len - 1] == 0) - q_len--; + mp_limb_t den = b_ptr[0]; + mp_limb_t remainder = 0; + const mp_limb_t *sourceptr = a_ptr + a_len; + mp_limb_t *destptr = q_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; + *--destptr = num / den; + remainder = num % den; + } + /* Normalise and store r. */ + if (remainder > 0) + { + r_ptr[0] = remainder; + r_len = 1; + } + else + r_len = 0; + /* Normalise q. */ + q_len = a_len; + if (q_ptr[q_len - 1] == 0) + q_len--; } } else { /* n>1: multiple precision division. - beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> - beta^(m-n-1) <= a/b < beta^(m-n+1). */ + beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> + beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { - mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ - s = 31; - if (msd >= 0x10000) - { - msd = msd >> 16; - s -= 16; - } - if (msd >= 0x100) - { - msd = msd >> 8; - s -= 8; - } - if (msd >= 0x10) - { - msd = msd >> 4; - s -= 4; - } - if (msd >= 0x4) - { - msd = msd >> 2; - s -= 2; - } - if (msd >= 0x2) - { - msd = msd >> 1; - s -= 1; - } + mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ + s = 31; + if (msd >= 0x10000) + { + msd = msd >> 16; + s -= 16; + } + if (msd >= 0x100) + { + msd = msd >> 8; + s -= 8; + } + if (msd >= 0x10) + { + msd = msd >> 4; + s -= 4; + } + if (msd >= 0x4) + { + msd = msd >> 2; + s -= 2; + } + if (msd >= 0x2) + { + msd = msd >> 1; + s -= 1; + } } /* 0 <= s < GMP_LIMB_BITS. - Copy b, shifting it left by s bits. */ + Copy b, shifting it left by s bits. */ if (s > 0) - { - tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); - if (tmp_roomptr == NULL) - { - free (roomptr); - return NULL; - } - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = tmp_roomptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - /* accu must be zero, since that was how s was determined. */ - if (accu != 0) - abort (); - } - b_ptr = tmp_roomptr; - } + { + tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); + if (tmp_roomptr == NULL) + { + free (roomptr); + return NULL; + } + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = tmp_roomptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + /* accu must be zero, since that was how s was determined. */ + if (accu != 0) + abort (); + } + b_ptr = tmp_roomptr; + } /* Copy a, shifting it left by s bits, yields r. - Memory layout: - At the beginning: r = roomptr[0..a_len], - at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ + Memory layout: + At the beginning: r = roomptr[0..a_len], + at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) - { - memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); - r_ptr[a_len] = 0; - } + { + memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); + r_ptr[a_len] = 0; + } else - { - const mp_limb_t *sourceptr = a_ptr; - mp_limb_t *destptr = r_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = a_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - *destptr++ = (mp_limb_t) accu; - } + { + const mp_limb_t *sourceptr = a_ptr; + mp_limb_t *destptr = r_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = a_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + *destptr++ = (mp_limb_t) accu; + } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { - size_t j = a_len - b_len; /* m-n */ - mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ - mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ - mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ - ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; - /* Division loop, traversed m-n+1 times. - j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ - for (;;) - { - mp_limb_t q_star; - mp_limb_t c1; - if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ - { - /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ - mp_twolimb_t num = - ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) - | r_ptr[j + b_len - 1]; - q_star = num / b_msd; - c1 = num % b_msd; - } - else - { - /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ - q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ - /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta - <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta - <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) - {<= beta !}. - If yes, jump directly to the subtraction loop. - (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta - <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ - if (r_ptr[j + b_len] > b_msd - || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) - /* r[j+n] >= b[n-1]+1 or - r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a - carry. */ - goto subtract; - } - /* q_star = q*, - c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by - b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 - this can happen only twice. */ - if (c3 > c2) - { - q_star = q_star - 1; /* q* := q* - 1 */ - if (c3 - c2 > b_msdd) - q_star = q_star - 1; /* q* := q* - 1 */ - } - } - if (q_star > 0) - subtract: - { - /* Subtract r := r - b * q* * beta^j. */ - mp_limb_t cr; - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_twolimb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - /* Here 0 <= carry <= q*. */ - carry = - carry - + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ - + (mp_limb_t) ~(*destptr); - /* Here 0 <= carry <= beta*q* + beta-1. */ - *destptr++ = ~(mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; /* <= q* */ - } - cr = (mp_limb_t) carry; - } - /* Subtract cr from r_ptr[j + b_len], then forget about - r_ptr[j + b_len]. */ - if (cr > r_ptr[j + b_len]) - { - /* Subtraction gave a carry. */ - q_star = q_star - 1; /* q* := q* - 1 */ - /* Add b back. */ - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_limb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - mp_limb_t source1 = *sourceptr++; - mp_limb_t source2 = *destptr; - *destptr++ = source1 + source2 + carry; - carry = - (carry - ? source1 >= (mp_limb_t) ~source2 - : source1 > (mp_limb_t) ~source2); - } - } - /* Forget about the carry and about r[j+n]. */ - } - } - /* q* is determined. Store it as q[j]. */ - q_ptr[j] = q_star; - if (j == 0) - break; - j--; - } + size_t j = a_len - b_len; /* m-n */ + mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ + mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ + mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ + ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; + /* Division loop, traversed m-n+1 times. + j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ + for (;;) + { + mp_limb_t q_star; + mp_limb_t c1; + if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ + { + /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ + mp_twolimb_t num = + ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) + | r_ptr[j + b_len - 1]; + q_star = num / b_msd; + c1 = num % b_msd; + } + else + { + /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ + q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ + /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta + <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta + <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) + {<= beta !}. + If yes, jump directly to the subtraction loop. + (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta + <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ + if (r_ptr[j + b_len] > b_msd + || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) + /* r[j+n] >= b[n-1]+1 or + r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a + carry. */ + goto subtract; + } + /* q_star = q*, + c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by + b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 + this can happen only twice. */ + if (c3 > c2) + { + q_star = q_star - 1; /* q* := q* - 1 */ + if (c3 - c2 > b_msdd) + q_star = q_star - 1; /* q* := q* - 1 */ + } + } + if (q_star > 0) + subtract: + { + /* Subtract r := r - b * q* * beta^j. */ + mp_limb_t cr; + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_twolimb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + /* Here 0 <= carry <= q*. */ + carry = + carry + + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + + (mp_limb_t) ~(*destptr); + /* Here 0 <= carry <= beta*q* + beta-1. */ + *destptr++ = ~(mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; /* <= q* */ + } + cr = (mp_limb_t) carry; + } + /* Subtract cr from r_ptr[j + b_len], then forget about + r_ptr[j + b_len]. */ + if (cr > r_ptr[j + b_len]) + { + /* Subtraction gave a carry. */ + q_star = q_star - 1; /* q* := q* - 1 */ + /* Add b back. */ + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_limb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + mp_limb_t source1 = *sourceptr++; + mp_limb_t source2 = *destptr; + *destptr++ = source1 + source2 + carry; + carry = + (carry + ? source1 >= (mp_limb_t) ~source2 + : source1 > (mp_limb_t) ~source2); + } + } + /* Forget about the carry and about r[j+n]. */ + } + } + /* q* is determined. Store it as q[j]. */ + q_ptr[j] = q_star; + if (j == 0) + break; + j--; + } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) - q_len--; + q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and - b is shifted left by s bits. */ + b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) - { - mp_limb_t ptr = r_ptr + r_len; - mp_twolimb_t accu = 0; - size_t count; - for (count = r_len; count > 0; count--) - { - accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; - accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); - *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); - } - } + { + mp_limb_t ptr = r_ptr + r_len; + mp_twolimb_t accu = 0; + size_t count; + for (count = r_len; count > 0; count--) + { + accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; + accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); + *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); + } + } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) - r_len--; + r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) @@ -714,17 +776,17 @@ size_t i; for (i = b_len;;) { - mp_limb_t r_i = - (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) - | (i < r_len ? r_ptr[i] << 1 : 0); - mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); - if (r_i > b_i) - goto increment_q; - if (r_i < b_i) - goto keep_q; - if (i == 0) - break; - i--; + mp_limb_t r_i = + (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) + | (i < r_len ? r_ptr[i] << 1 : 0); + mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); + if (r_i > b_i) + goto increment_q; + if (r_i < b_i) + goto keep_q; + if (i == 0) + break; + i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) @@ -733,8 +795,8 @@ { size_t i; for (i = 0; i < q_len; i++) - if (++(q_ptr[i]) != 0) - goto keep_q; + if (++(q_ptr[i]) != 0) + goto keep_q; q_ptr[q_len++] = 1; } keep_q: @@ -763,36 +825,36 @@ { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) - *d_ptr++ = '0'; + *d_ptr++ = '0'; while (a_len > 0) - { - /* Divide a by 10^9, in-place. */ - mp_limb_t remainder = 0; - mp_limb_t *ptr = a_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; - *ptr = num / 1000000000; - remainder = num % 1000000000; - } - /* Store the remainder as 9 decimal digits. */ - for (count = 9; count > 0; count--) - { - *d_ptr++ = '0' + (remainder % 10); - remainder = remainder / 10; - } - /* Normalize a. */ - if (a_ptr[a_len - 1] == 0) - a_len--; - } + { + /* Divide a by 10^9, in-place. */ + mp_limb_t remainder = 0; + mp_limb_t *ptr = a_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; + *ptr = num / 1000000000; + remainder = num % 1000000000; + } + /* Store the remainder as 9 decimal digits. */ + for (count = 9; count > 0; count--) + { + *d_ptr++ = '0' + (remainder % 10); + remainder = remainder / 10; + } + /* Normalize a. */ + if (a_ptr[a_len - 1] == 0) + a_len--; + } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') - d_ptr--; + d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) - *d_ptr++ = '0'; + *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } @@ -837,12 +899,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -852,7 +914,7 @@ d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -864,16 +926,19 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } +#if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess + precision. */ if (!(y == 0.0L)) abort (); +#endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; @@ -922,12 +987,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -937,7 +1002,7 @@ d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -949,12 +1014,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) @@ -1012,8 +1077,8 @@ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 - + abs_s / GMP_LIMB_BITS + 1) - * sizeof (mp_limb_t)); + + abs_s / GMP_LIMB_BITS + 1) + * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); @@ -1026,26 +1091,26 @@ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = - { - 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, - 48828125, 244140625, 1220703125 - }; + { + 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, + 48828125, 244140625, 1220703125 + }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) - { - mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; - size_t j; - mp_twolimb_t carry = 0; - for (j = 0; j < pow5_len; j++) - { - mp_limb_t digit2 = pow5_ptr[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - pow5_ptr[j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - if (carry > 0) - pow5_ptr[pow5_len++] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; + size_t j; + mp_twolimb_t carry = 0; + for (j = 0; j < pow5_len; j++) + { + mp_limb_t digit2 = pow5_ptr[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + pow5_ptr[j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + if (carry > 0) + pow5_ptr[pow5_len++] = (mp_limb_t) carry; + } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; @@ -1053,129 +1118,129 @@ { /* Multiply with 2^|s|. */ if (s_bits > 0) - { - mp_limb_t *ptr = pow5_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = pow5_len; count > 0; count--) - { - accu += (mp_twolimb_t) *ptr << s_bits; - *ptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - { - *ptr = (mp_limb_t) accu; - pow5_len++; - } - } + { + mp_limb_t *ptr = pow5_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = pow5_len; count > 0; count--) + { + accu += (mp_twolimb_t) *ptr << s_bits; + *ptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + { + *ptr = (mp_limb_t) accu; + pow5_len++; + } + } if (s_limbs > 0) - { - size_t count; - for (count = pow5_len; count > 0;) - { - count--; - pow5_ptr[s_limbs + count] = pow5_ptr[count]; - } - for (count = s_limbs; count > 0;) - { - count--; - pow5_ptr[count] = 0; - } - pow5_len += s_limbs; - } + { + size_t count; + for (count = pow5_len; count > 0;) + { + count--; + pow5_ptr[s_limbs + count] = pow5_ptr[count]; + } + for (count = s_limbs; count > 0;) + { + count--; + pow5_ptr[count] = 0; + } + pow5_len += s_limbs; + } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* Multiply m with pow5. No division needed. */ - z_memory = multiply (m, pow5, &z); - } + { + /* Multiply m with pow5. No division needed. */ + z_memory = multiply (m, pow5, &z); + } else - { - /* Divide m by pow5 and round. */ - z_memory = divide (m, pow5, &z); - } + { + /* Divide m by pow5 and round. */ + z_memory = divide (m, pow5, &z); + } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* n >= 0, s < 0. - Multiply m with pow5, then divide by 2^|s|. */ - mpn_t numerator; - mpn_t denominator; - void *tmp_memory; - tmp_memory = multiply (m, pow5, &numerator); - if (tmp_memory == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - /* Construct 2^|s|. */ - { - mp_limb_t *ptr = pow5_ptr + pow5_len; - size_t i; - for (i = 0; i < s_limbs; i++) - ptr[i] = 0; - ptr[s_limbs] = (mp_limb_t) 1 << s_bits; - denominator.limbs = ptr; - denominator.nlimbs = s_limbs + 1; - } - z_memory = divide (numerator, denominator, &z); - free (tmp_memory); - } + { + /* n >= 0, s < 0. + Multiply m with pow5, then divide by 2^|s|. */ + mpn_t numerator; + mpn_t denominator; + void *tmp_memory; + tmp_memory = multiply (m, pow5, &numerator); + if (tmp_memory == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + /* Construct 2^|s|. */ + { + mp_limb_t *ptr = pow5_ptr + pow5_len; + size_t i; + for (i = 0; i < s_limbs; i++) + ptr[i] = 0; + ptr[s_limbs] = (mp_limb_t) 1 << s_bits; + denominator.limbs = ptr; + denominator.nlimbs = s_limbs + 1; + } + z_memory = divide (numerator, denominator, &z); + free (tmp_memory); + } else - { - /* n < 0, s > 0. - Multiply m with 2^s, then divide by pow5. */ - mpn_t numerator; - mp_limb_t *num_ptr; - num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) - * sizeof (mp_limb_t)); - if (num_ptr == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - { - mp_limb_t *destptr = num_ptr; - { - size_t i; - for (i = 0; i < s_limbs; i++) - *destptr++ = 0; - } - if (s_bits > 0) - { - const mp_limb_t *sourceptr = m.limbs; - mp_twolimb_t accu = 0; - size_t count; - for (count = m.nlimbs; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s_bits; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - *destptr++ = (mp_limb_t) accu; - } - else - { - const mp_limb_t *sourceptr = m.limbs; - size_t count; - for (count = m.nlimbs; count > 0; count--) - *destptr++ = *sourceptr++; - } - numerator.limbs = num_ptr; - numerator.nlimbs = destptr - num_ptr; - } - z_memory = divide (numerator, pow5, &z); - free (num_ptr); - } + { + /* n < 0, s > 0. + Multiply m with 2^s, then divide by pow5. */ + mpn_t numerator; + mp_limb_t *num_ptr; + num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) + * sizeof (mp_limb_t)); + if (num_ptr == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + { + mp_limb_t *destptr = num_ptr; + { + size_t i; + for (i = 0; i < s_limbs; i++) + *destptr++ = 0; + } + if (s_bits > 0) + { + const mp_limb_t *sourceptr = m.limbs; + mp_twolimb_t accu = 0; + size_t count; + for (count = m.nlimbs; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s_bits; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + *destptr++ = (mp_limb_t) accu; + } + else + { + const mp_limb_t *sourceptr = m.limbs; + size_t count; + for (count = m.nlimbs; count > 0; count--) + *destptr++ = *sourceptr++; + } + numerator.limbs = num_ptr; + numerator.nlimbs = destptr - num_ptr; + } + z_memory = divide (numerator, pow5, &z); + free (num_ptr); + } } free (pow5_ptr); free (memory); @@ -1199,7 +1264,7 @@ static char * scale10_round_decimal_long_double (long double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1217,7 +1282,7 @@ static char * scale10_round_decimal_double (double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1247,35 +1312,35 @@ if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0L / (1 << 16))) - { - y *= 1.0L * (1 << 16); - exp -= 16; - } + { + y *= 1.0L * (1 << 16); + exp -= 16; + } if (y < (1.0L / (1 << 8))) - { - y *= 1.0L * (1 << 8); - exp -= 8; - } + { + y *= 1.0L * (1 << 8); + exp -= 8; + } if (y < (1.0L / (1 << 4))) - { - y *= 1.0L * (1 << 4); - exp -= 4; - } + { + y *= 1.0L * (1 << 4); + exp -= 4; + } if (y < (1.0L / (1 << 2))) - { - y *= 1.0L * (1 << 2); - exp -= 2; - } + { + y *= 1.0L * (1 << 2); + exp -= 2; + } if (y < (1.0L / (1 << 1))) - { - y *= 1.0L * (1 << 1); - exp -= 1; - } + { + y *= 1.0L * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5L && y < 1.0L)) abort (); @@ -1304,9 +1369,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1338,35 +1403,35 @@ if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0 / (1 << 16))) - { - y *= 1.0 * (1 << 16); - exp -= 16; - } + { + y *= 1.0 * (1 << 16); + exp -= 16; + } if (y < (1.0 / (1 << 8))) - { - y *= 1.0 * (1 << 8); - exp -= 8; - } + { + y *= 1.0 * (1 << 8); + exp -= 8; + } if (y < (1.0 / (1 << 4))) - { - y *= 1.0 * (1 << 4); - exp -= 4; - } + { + y *= 1.0 * (1 << 4); + exp -= 4; + } if (y < (1.0 / (1 << 2))) - { - y *= 1.0 * (1 << 2); - exp -= 2; - } + { + y *= 1.0 * (1 << 2); + exp -= 2; + } if (y < (1.0 / (1 << 1))) - { - y *= 1.0 * (1 << 1); - exp -= 1; - } + { + y *= 1.0 * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5 && y < 1.0)) abort (); @@ -1395,9 +1460,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1407,11 +1472,277 @@ # endif +/* Tests whether a string of digits consists of exactly PRECISION zeroes and + a single '1' digit. */ +static int +is_borderline (const char *digits, size_t precision) +{ + for (; precision > 0; precision--, digits++) + if (*digits != '0') + return 0; + if (*digits != '1') + return 0; + digits++; + return *digits == '\0'; +} + +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 + +/* Use a different function name, to make it possible that the 'wchar_t' + parametrization and the 'char' parametrization get compiled in the same + translation unit. */ +# if WIDE_CHAR_VERSION +# define MAX_ROOM_NEEDED wmax_room_needed +# else +# define MAX_ROOM_NEEDED max_room_needed +# endif + +/* Returns the number of TCHAR_T units needed as temporary space for the result + of sprintf or SNPRINTF of a single conversion directive. */ +static inline size_t +MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, + arg_type type, int flags, size_t width, int has_precision, + size_t precision, int pad_ourselves) +{ + size_t tmp_length; + + switch (conversion) + { + case 'd': case 'i': case 'u': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Multiply by 2, as an estimate for FLAG_GROUP. */ + tmp_length = xsum (tmp_length, tmp_length); + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'o': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'x': case 'X': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 2, to account for a leading sign or alternate form. */ + tmp_length = xsum (tmp_length, 2); + break; + + case 'f': case 'F': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + else + tmp_length = + (unsigned int) (DBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'e': case 'E': case 'g': case 'G': + tmp_length = + 12; /* sign, decimal point, exponent etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'a': case 'A': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (DBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + break; + + case 'c': +# if HAVE_WINT_T && !WIDE_CHAR_VERSION + if (type == TYPE_WIDE_CHAR) + tmp_length = MB_CUR_MAX; + else +# endif + tmp_length = 1; + break; + + case 's': +# if HAVE_WCHAR_T + if (type == TYPE_WIDE_STRING) + { +# if WIDE_CHAR_VERSION + /* ISO C says about %ls in fwprintf: + "If the precision is not specified or is greater than the size + of the array, the array shall contain a null wide character." + So if there is a precision, we must not use wcslen. */ + const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; + + if (has_precision) + tmp_length = local_wcsnlen (arg, precision); + else + tmp_length = local_wcslen (arg); +# else + /* ISO C says about %ls in fprintf: + "If a precision is specified, no more than that many bytes are + written (including shift sequences, if any), and the array + shall contain a null wide character if, to equal the multibyte + character sequence length given by the precision, the function + would need to access a wide character one past the end of the + array." + So if there is a precision, we must not use wcslen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# endif + } + else +# endif + { +# if WIDE_CHAR_VERSION + /* ISO C says about %s in fwprintf: + "If the precision is not specified or is greater than the size + of the converted array, the converted array shall contain a + null wide character." + So if there is a precision, we must not use strlen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# else + /* ISO C says about %s in fprintf: + "If the precision is not specified or greater than the size of + the array, the array shall contain a null character." + So if there is a precision, we must not use strlen. */ + const char *arg = ap->arg[arg_index].a.a_string; + + if (has_precision) + tmp_length = local_strnlen (arg, precision); + else + tmp_length = strlen (arg); +# endif + } + break; + + case 'p': + tmp_length = + (unsigned int) (sizeof (void *) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading 0x */ + break; + + default: + abort (); + } + + if (!pad_ourselves) + { +# if ENABLE_UNISTDIO + /* Padding considers the number of characters, therefore the number of + elements after padding may be + > max (tmp_length, width) + but is certainly + <= tmp_length + width. */ + tmp_length = xsum (tmp_length, width); +# else + /* Padding considers the number of elements, says POSIX. */ + if (tmp_length < width) + tmp_length = width; +# endif + } + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + return tmp_length; +} + #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, - const FCHAR_T *format, va_list args) + const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; @@ -1421,8 +1752,8 @@ return NULL; #define CLEANUP() \ - free (d.dir); \ - if (a.arg) \ + free (d.dir); \ + if (a.arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) @@ -1451,30 +1782,30 @@ #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { - buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); - buf_malloced = NULL; + buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); + buf_malloced = NULL; } else #endif { - size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); - if (size_overflow_p (buf_memsize)) - goto out_of_memory_1; - buf = (TCHAR_T *) malloc (buf_memsize); - if (buf == NULL) - goto out_of_memory_1; - buf_malloced = buf; + size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); + if (size_overflow_p (buf_memsize)) + goto out_of_memory_1; + buf = (TCHAR_T *) malloc (buf_memsize); + if (buf == NULL) + goto out_of_memory_1; + buf_malloced = buf; } if (resultbuf != NULL) { - result = resultbuf; - allocated = *lengthp; + result = resultbuf; + allocated = *lengthp; } else { - result = NULL; - allocated = 0; + result = NULL; + allocated = 0; } length = 0; /* Invariants: @@ -1484,3138 +1815,3694 @@ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ - if ((needed) > allocated) \ - { \ - size_t memory_size; \ - DCHAR_T *memory; \ - \ - allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ - if ((needed) > allocated) \ - allocated = (needed); \ - memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ - if (size_overflow_p (memory_size)) \ - goto out_of_memory; \ - if (result == resultbuf || result == NULL) \ - memory = (DCHAR_T *) malloc (memory_size); \ - else \ - memory = (DCHAR_T *) realloc (result, memory_size); \ - if (memory == NULL) \ - goto out_of_memory; \ - if (result == resultbuf && length > 0) \ - DCHAR_CPY (memory, result, length); \ - result = memory; \ + if ((needed) > allocated) \ + { \ + size_t memory_size; \ + DCHAR_T *memory; \ + \ + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ + if ((needed) > allocated) \ + allocated = (needed); \ + memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ + if (size_overflow_p (memory_size)) \ + goto out_of_memory; \ + if (result == resultbuf || result == NULL) \ + memory = (DCHAR_T *) malloc (memory_size); \ + else \ + memory = (DCHAR_T *) realloc (result, memory_size); \ + if (memory == NULL) \ + goto out_of_memory; \ + if (result == resultbuf && length > 0) \ + DCHAR_CPY (memory, result, length); \ + result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { - if (cp != dp->dir_start) - { - size_t n = dp->dir_start - cp; - size_t augmented_length = xsum (length, n); - - ENSURE_ALLOCATION (augmented_length); - /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we - need that the format string contains only ASCII characters - if FCHAR_T and DCHAR_T are not the same type. */ - if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) - { - DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); - length = augmented_length; - } - else - { - do - result[length++] = (unsigned char) *cp++; - while (--n > 0); - } - } - if (i == d.count) - break; - - /* Execute a single directive. */ - if (dp->conversion == '%') - { - size_t augmented_length; - - if (!(dp->arg_index == ARG_NONE)) - abort (); - augmented_length = xsum (length, 1); - ENSURE_ALLOCATION (augmented_length); - result[length] = '%'; - length = augmented_length; - } - else - { - if (!(dp->arg_index != ARG_NONE)) - abort (); - - if (dp->conversion == 'n') - { - switch (a.arg[dp->arg_index].type) - { - case TYPE_COUNT_SCHAR_POINTER: - *a.arg[dp->arg_index].a.a_count_schar_pointer = length; - break; - case TYPE_COUNT_SHORT_POINTER: - *a.arg[dp->arg_index].a.a_count_short_pointer = length; - break; - case TYPE_COUNT_INT_POINTER: - *a.arg[dp->arg_index].a.a_count_int_pointer = length; - break; - case TYPE_COUNT_LONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longint_pointer = length; - break; + if (cp != dp->dir_start) + { + size_t n = dp->dir_start - cp; + size_t augmented_length = xsum (length, n); + + ENSURE_ALLOCATION (augmented_length); + /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we + need that the format string contains only ASCII characters + if FCHAR_T and DCHAR_T are not the same type. */ + if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) + { + DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); + length = augmented_length; + } + else + { + do + result[length++] = (unsigned char) *cp++; + while (--n > 0); + } + } + if (i == d.count) + break; + + /* Execute a single directive. */ + if (dp->conversion == '%') + { + size_t augmented_length; + + if (!(dp->arg_index == ARG_NONE)) + abort (); + augmented_length = xsum (length, 1); + ENSURE_ALLOCATION (augmented_length); + result[length] = '%'; + length = augmented_length; + } + else + { + if (!(dp->arg_index != ARG_NONE)) + abort (); + + if (dp->conversion == 'n') + { + switch (a.arg[dp->arg_index].type) + { + case TYPE_COUNT_SCHAR_POINTER: + *a.arg[dp->arg_index].a.a_count_schar_pointer = length; + break; + case TYPE_COUNT_SHORT_POINTER: + *a.arg[dp->arg_index].a.a_count_short_pointer = length; + break; + case TYPE_COUNT_INT_POINTER: + *a.arg[dp->arg_index].a.a_count_int_pointer = length; + break; + case TYPE_COUNT_LONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longint_pointer = length; + break; #if HAVE_LONG_LONG_INT - case TYPE_COUNT_LONGLONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; - break; -#endif - default: - abort (); - } - } + case TYPE_COUNT_LONGLONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; + break; +#endif + default: + abort (); + } + } #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - else if (dp->conversion == 'U') - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - switch (type) - { - case TYPE_U8_STRING: - { - const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; - const uint8_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u8_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + /* The unistdio extensions. */ + else if (dp->conversion == 'U') + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + switch (type) + { + case TYPE_U8_STRING: + { + const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; + const uint8_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u8_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT8_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-8 to locale encoding. */ - if (u8_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-8 to locale encoding. */ + converted = + u8_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-8 to UTF-16/UTF-32. */ - converted = - U8_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-8 to UTF-16/UTF-32. */ + converted = + U8_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U16_STRING: - { - const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; - const uint16_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u16_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U16_STRING: + { + const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; + const uint16_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u16_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT16_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-16 to locale encoding. */ - if (u16_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-16 to locale encoding. */ + converted = + u16_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-16 to UTF-8/UTF-32. */ - converted = - U16_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-16 to UTF-8/UTF-32. */ + converted = + U16_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U32_STRING: - { - const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; - const uint32_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u32_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U32_STRING: + { + const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; + const uint32_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u32_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT32_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-32 to locale encoding. */ - if (u32_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-32 to locale encoding. */ + converted = + u32_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-32 to UTF-8/UTF-16. */ - converted = - U32_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-32 to UTF-8/UTF-16. */ + converted = + U32_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - default: - abort (); - } - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + default: + abort (); + } + } +#endif +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T + else if (dp->conversion == 's' +# if WIDE_CHAR_VERSION + && a.arg[dp->arg_index].type != TYPE_WIDE_STRING +# else + && a.arg[dp->arg_index].type == TYPE_WIDE_STRING +# endif + ) + { + /* The normal handling of the 's' directive below requires + allocating a temporary buffer. The determination of its + length (tmp_length), in the case when a precision is + specified, below requires a conversion between a char[] + string and a wchar_t[] wide string. It could be done, but + we have no guarantee that the implementation of sprintf will + use the exactly same algorithm. Without this guarantee, it + is possible to have buffer overrun bugs. In order to avoid + such bugs, we implement the entire processing of the 's' + directive ourselves. */ + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + +# if WIDE_CHAR_VERSION + /* %s in vasnwprintf. See the specification of fwprintf. */ + { + const char *arg = a.arg[dp->arg_index].a.a_string; + const char *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only as many bytes as needed to produce PRECISION + wide characters, from the left. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of wide + characters. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + + if (has_precision || has_width) + { + /* We know the number of wide characters in advance. */ + size_t remaining; +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; remaining--) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + result[length++] = wc; + arg += count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + ENSURE_ALLOCATION (xsum (length, 1)); + result[length++] = wc; + arg += count; + } + } + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# else + /* %ls in vasnprintf. See the specification of fprintf. */ + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + const wchar_t *arg_end; + size_t characters; +# if !DCHAR_IS_TCHAR + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; + TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; +# endif + size_t w; + + if (has_precision) + { + /* Use only as many wide characters as needed to produce + at most PRECISION bytes, from the left. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + while (precision > 0) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + if (precision < count) + break; + arg_end++; + characters += count; + precision -= count; + } + } +# if DCHAR_IS_TCHAR + else if (has_width) +# else + else +# endif + { + /* Use the entire string, and count the number of + bytes. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end++; + characters += count; + } + } +# if DCHAR_IS_TCHAR + else + { + /* Use the entire string. */ + arg_end = arg + local_wcslen (arg); + /* The number of bytes doesn't matter. */ + characters = 0; + } +# endif + +# if !DCHAR_IS_TCHAR + /* Convert the string into a piece of temporary memory. */ + tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); + if (tmpsrc == NULL) + goto out_of_memory; + { + TCHAR_T *tmpptr = tmpsrc; + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (tmpptr, cbuf, count); + tmpptr += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, characters, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + free (tmpsrc); + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + free (tmpsrc); +# endif + + if (has_width) + { +# if ENABLE_UNISTDIO + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, characters); +# else + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = characters; +# endif + } + else + /* w doesn't matter. */ + w = 0; + + if (has_width && width > w + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_TCHAR + if (has_precision || has_width) + { + /* We know the number of bytes in advance. */ + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (result + length, cbuf, count); + length += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, count)); + memcpy (result + length, cbuf, count); + length += count; + arg++; + } + } +# else + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + length += tmpdst_len; +# endif + + if (has_width && width > w + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# endif + } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'a' || dp->conversion == 'A') + else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) - && (0 + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif - ) + ) # endif - ) - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* Allocate a temporary buffer of sufficient size. */ - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) ((LDBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) ((DBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } - - pad_ptr = NULL; - p = tmp; - if (type == TYPE_LONGDOUBLE) - { + ) + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* Allocate a temporary buffer of sufficient size. */ + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) ((LDBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) ((DBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } + + pad_ptr = NULL; + p = tmp; + if (type == TYPE_LONGDOUBLE) + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE - long double arg = a.arg[dp->arg_index].a.a_longdouble; + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - long double mantissa; - - if (arg > 0.0L) - mantissa = printf_frexpl (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0L; - } - - if (has_precision - && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - long double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5L : tail > 0.5L) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0L; - } - if (tail != 0.0L) - for (q = precision; q > 0; q--) - tail *= 0.0625L; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0L || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0L) - { - mantissa *= 16.0L; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnanl (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + long double mantissa; + + if (arg > 0.0L) + mantissa = printf_frexpl (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0L; + } + + if (has_precision + && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + long double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5L : tail > 0.5L) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0L; + } + if (tail != 0.0L) + for (q = precision; q > 0; q--) + tail *= 0.0625L; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0L || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0L) + { + mantissa *= 16.0L; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } + END_LONG_DOUBLE_ROUNDING (); + } # else - abort (); + abort (); # endif - } - else - { + } + else + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE - double arg = a.arg[dp->arg_index].a.a_double; + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - double mantissa; - - if (arg > 0.0) - mantissa = printf_frexp (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0; - } - - if (has_precision - && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5 : tail > 0.5) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0; - } - if (tail != 0.0) - for (q = precision; q > 0; q--) - tail *= 0.0625; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0 || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0) - { - mantissa *= 16.0; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnand (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + double mantissa; + + if (arg > 0.0) + mantissa = printf_frexp (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0; + } + + if (has_precision + && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5 : tail > 0.5) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0; + } + if (tail != 0.0) + for (q = precision; q > 0; q--) + tail *= 0.0625; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0 || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0) + { + mantissa *= 16.0; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - } + } + } # else - abort (); + abort (); # endif - } - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } + } + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'f' || dp->conversion == 'F' - || dp->conversion == 'e' || dp->conversion == 'E' - || dp->conversion == 'g' || dp->conversion == 'G' - || dp->conversion == 'a' || dp->conversion == 'A') - && (0 + else if ((dp->conversion == 'f' || dp->conversion == 'F' + || dp->conversion == 'e' || dp->conversion == 'E' + || dp->conversion == 'g' || dp->conversion == 'G' + || dp->conversion == 'a' || dp->conversion == 'A') + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_DOUBLE - /* The systems (mingw) which produce wrong output - for Inf, -Inf, and NaN also do so for -0.0. - Therefore we treat this case here as well. */ - && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) + || (a.arg[dp->arg_index].type == TYPE_DOUBLE + /* The systems (mingw) which produce wrong output + for Inf, -Inf, and NaN also do so for -0.0. + Therefore we treat this case here as well. */ + && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE - /* Some systems produce wrong output for Inf, - -Inf, and NaN. */ - && is_infinitel (a.arg[dp->arg_index].a.a_longdouble)) + || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + /* Some systems produce wrong output for Inf, + -Inf, and NaN. Some systems in this category + (IRIX 5.3) also do so for -0.0. Therefore we + treat this case here as well. */ + && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif - )) - { + )) + { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) - arg_type type = a.arg[dp->arg_index].type; + arg_type type = a.arg[dp->arg_index].type; # endif - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* POSIX specifies the default precision to be 6 for %f, %F, - %e, %E, but not for %g, %G. Implementations appear to use - the same default precision also for %g, %G. */ - if (!has_precision) - precision = 6; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* POSIX specifies the default precision to be 6 for %f, %F, + %e, %E, but not for %g, %G. Implementations appear to use + the same default precision also for %g, %G. But for %a, %A, + the default precision is 0. */ + if (!has_precision) + if (!(dp->conversion == 'a' || dp->conversion == 'A')) + precision = 6; - /* Allocate a temporary buffer of sufficient size. */ + /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE - tmp_length = LDBL_DIG + 1; + tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE - tmp_length = DBL_DIG + 1; + tmp_length = DBL_DIG + 1; # else - tmp_length = 0; + tmp_length = 0; # endif - if (tmp_length < precision) - tmp_length = precision; + if (tmp_length < precision) + tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (!(isnanl (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10l (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + if (!(isnanl (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10l (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE - if (type == TYPE_DOUBLE) + if (type == TYPE_DOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - double arg = a.arg[dp->arg_index].a.a_double; - if (!(isnan (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10 (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } -# endif - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + double arg = a.arg[dp->arg_index].a.a_double; + if (!(isnand (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10 (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } +# endif + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } - pad_ptr = NULL; - p = tmp; + pad_ptr = NULL; + p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnanl (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_LONG_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_long_double (arg, precision); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0L) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0L. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)precision - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_long_double (arg, precision); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0L) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0L. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)precision - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0L) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0L. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0L) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0L. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - abort (); + /* arg is finite. */ + if (!(arg == 0.0L)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else if (dp->conversion == 'a' || dp->conversion == 'A') + { + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion - 'A' + 'P'; + *p++ = '+'; + *p++ = '0'; + } + else + abort (); # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } - } + END_LONG_DOUBLE_ROUNDING (); + } + } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - else + else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - { - double arg = a.arg[dp->arg_index].a.a_double; + { + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnand (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_double (arg, precision); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)precision - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_double (arg, precision); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)precision - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - if (!(arg == 0.0)) - abort (); - - pad_ptr = p; - - if (dp->conversion == 'f' || dp->conversion == 'F') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - *p++ = dp->conversion; /* 'e' or 'E' */ - *p++ = '+'; - /* Produce the same number of exponent digits as - the native printf implementation. */ + /* arg is finite. */ + if (!(arg == 0.0)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + /* Produce the same number of exponent digits as + the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *p++ = '0'; + *p++ = '0'; # endif - *p++ = '0'; - *p++ = '0'; - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - *p++ = '0'; - if (flags & FLAG_ALT) - { - size_t ndigits = - (precision > 0 ? precision - 1 : 0); - *p++ = decimal_point_char (); - for (; ndigits > 0; --ndigits) - *p++ = '0'; - } - } - else - abort (); + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else + abort (); # endif - } - } - } -# endif - - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } -#endif - else - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int has_width; - size_t width; -#endif -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - int has_precision; - size_t precision; + } + } + } +# endif + + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } +#endif + else + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int has_width; + size_t width; +#endif +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + int has_precision; + size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - int prec_ourselves; + int prec_ourselves; #else -# define prec_ourselves 0 +# define prec_ourselves 0 #endif -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int pad_ourselves; +#if NEED_PRINTF_FLAG_LEFTADJUST +# define pad_ourselves 1 +#elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int pad_ourselves; #else -# define pad_ourselves 0 +# define pad_ourselves 0 #endif - TCHAR_T *fbp; - unsigned int prefix_count; - int prefixes[2]; + TCHAR_T *fbp; + unsigned int prefix_count; + int prefixes[2] IF_LINT (= { 0 }); #if !USE_SNPRINTF - size_t tmp_length; - TCHAR_T tmpbuf[700]; - TCHAR_T *tmp; -#endif - -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } -#endif - -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - has_precision = 0; - precision = 6; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } + size_t tmp_length; + TCHAR_T tmpbuf[700]; + TCHAR_T *tmp; +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } #endif -#if !USE_SNPRINTF - /* Allocate a temporary buffer of sufficient size for calling - sprintf. */ - { - switch (dp->conversion) - { - - case 'd': case 'i': case 'u': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Multiply by 2, as an estimate for FLAG_GROUP. */ - tmp_length = xsum (tmp_length, tmp_length); - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'o': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'x': case 'X': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 2, to account for a leading sign or alternate form. */ - tmp_length = xsum (tmp_length, 2); - break; - - case 'f': case 'F': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - else - tmp_length = - (unsigned int) (DBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'e': case 'E': case 'g': case 'G': - tmp_length = - 12; /* sign, decimal point, exponent etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'a': case 'A': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (DBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - break; - - case 'c': -# if HAVE_WINT_T && !WIDE_CHAR_VERSION - if (type == TYPE_WIDE_CHAR) - tmp_length = MB_CUR_MAX; - else -# endif - tmp_length = 1; - break; - - case 's': -# if HAVE_WCHAR_T - if (type == TYPE_WIDE_STRING) - { - tmp_length = - local_wcslen (a.arg[dp->arg_index].a.a_wide_string); - -# if !WIDE_CHAR_VERSION - tmp_length = xtimes (tmp_length, MB_CUR_MAX); -# endif - } - else -# endif - tmp_length = strlen (a.arg[dp->arg_index].a.a_string); - break; - - case 'p': - tmp_length = - (unsigned int) (sizeof (void *) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1 /* turn floor into ceil */ - + 2; /* account for leading 0x */ - break; - - default: - abort (); - } - -# if ENABLE_UNISTDIO - /* Padding considers the number of characters, therefore the - number of elements after padding may be - > max (tmp_length, width) - but is certainly - <= tmp_length + width. */ - tmp_length = xsum (tmp_length, width); -# else - /* Padding considers the number of elements, says POSIX. */ - if (tmp_length < width) - tmp_length = width; -# endif - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - } - - if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (TCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } -#endif - - /* Decide whether to handle the precision ourselves. */ + /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { - case 'd': case 'i': case 'u': - case 'o': - case 'x': case 'X': case 'p': - prec_ourselves = has_precision && (precision > 0); - break; - default: - prec_ourselves = 0; - break; - } -#endif - - /* Decide whether to perform the padding ourselves. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { + switch (dp->conversion) + { + case 'd': case 'i': case 'u': + case 'o': + case 'x': case 'X': case 'p': + prec_ourselves = has_precision && (precision > 0); + break; + default: + prec_ourselves = 0; + break; + } +#endif + + /* Decide whether to perform the padding ourselves. */ +#if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) + switch (dp->conversion) + { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO - /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need - to perform the padding after this conversion. Functions - with unistdio extensions perform the padding based on - character count rather than element count. */ - case 'c': case 's': + /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need + to perform the padding after this conversion. Functions + with unistdio extensions perform the padding based on + character count rather than element count. */ + case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': # endif - pad_ourselves = 1; - break; - default: - pad_ourselves = prec_ourselves; - break; - } + pad_ourselves = 1; + break; + default: + pad_ourselves = prec_ourselves; + break; + } #endif - /* Construct the format string for calling snprintf or - sprintf. */ - fbp = buf; - *fbp++ = '%'; +#if !USE_SNPRINTF + /* Allocate a temporary buffer of sufficient size for calling + sprintf. */ + tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, + flags, width, has_precision, precision, + pad_ourselves); + + if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (TCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } +#endif + + /* Construct the format string for calling snprintf or + sprintf. */ + fbp = buf; + *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING - /* The underlying implementation doesn't support the ' flag. - Produce no grouping characters in this case; this is - acceptable because the grouping is locale dependent. */ + /* The underlying implementation doesn't support the ' flag. + Produce no grouping characters in this case; this is + acceptable because the grouping is locale dependent. */ #else - if (flags & FLAG_GROUP) - *fbp++ = '\''; + if (flags & FLAG_GROUP) + *fbp++ = '\''; #endif - if (flags & FLAG_LEFT) - *fbp++ = '-'; - if (flags & FLAG_SHOWSIGN) - *fbp++ = '+'; - if (flags & FLAG_SPACE) - *fbp++ = ' '; - if (flags & FLAG_ALT) - *fbp++ = '#'; - if (!pad_ourselves) - { - if (flags & FLAG_ZERO) - *fbp++ = '0'; - if (dp->width_start != dp->width_end) - { - size_t n = dp->width_end - dp->width_start; - /* The width specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->width_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } - if (!prec_ourselves) - { - if (dp->precision_start != dp->precision_end) - { - size_t n = dp->precision_end - dp->precision_start; - /* The precision specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->precision_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } + if (flags & FLAG_LEFT) + *fbp++ = '-'; + if (flags & FLAG_SHOWSIGN) + *fbp++ = '+'; + if (flags & FLAG_SPACE) + *fbp++ = ' '; + if (flags & FLAG_ALT) + *fbp++ = '#'; + if (!pad_ourselves) + { + if (flags & FLAG_ZERO) + *fbp++ = '0'; + if (dp->width_start != dp->width_end) + { + size_t n = dp->width_end - dp->width_start; + /* The width specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->width_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } + if (!prec_ourselves) + { + if (dp->precision_start != dp->precision_end) + { + size_t n = dp->precision_end - dp->precision_start; + /* The precision specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->precision_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } - switch (type) - { + switch (type) + { #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - case TYPE_ULONGLONGINT: + case TYPE_LONGLONGINT: + case TYPE_ULONGLONGINT: # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *fbp++ = 'I'; - *fbp++ = '6'; - *fbp++ = '4'; - break; + *fbp++ = 'I'; + *fbp++ = '6'; + *fbp++ = '4'; + break; # else - *fbp++ = 'l'; - /*FALLTHROUGH*/ + *fbp++ = 'l'; + /*FALLTHROUGH*/ # endif #endif - case TYPE_LONGINT: - case TYPE_ULONGINT: + case TYPE_LONGINT: + case TYPE_ULONGINT: #if HAVE_WINT_T - case TYPE_WIDE_CHAR: + case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: + case TYPE_WIDE_STRING: #endif - *fbp++ = 'l'; - break; - case TYPE_LONGDOUBLE: - *fbp++ = 'L'; - break; - default: - break; - } + *fbp++ = 'l'; + break; + case TYPE_LONGDOUBLE: + *fbp++ = 'L'; + break; + default: + break; + } #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - *fbp = 'f'; - else + if (dp->conversion == 'F') + *fbp = 'f'; + else #endif - *fbp = dp->conversion; + *fbp = dp->conversion; #if USE_SNPRINTF -# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) - fbp[1] = '%'; - fbp[2] = 'n'; - fbp[3] = '\0'; +# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0'; # else - /* On glibc2 systems from glibc >= 2.3 - probably also older - ones - we know that snprintf's returns value conforms to - ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. - Therefore we can avoid using %n in this situation. - On glibc2 systems from 2004-10-18 or newer, the use of %n - in format strings in writable memory may crash the program - (if compiled with _FORTIFY_SOURCE=2), so we should avoid it - in this situation. */ - fbp[1] = '\0'; + /* On glibc2 systems from glibc >= 2.3 - probably also older + ones - we know that snprintf's returns value conforms to + ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. + Therefore we can avoid using %n in this situation. + On glibc2 systems from 2004-10-18 or newer, the use of %n + in format strings in writable memory may crash the program + (if compiled with _FORTIFY_SOURCE=2), so we should avoid it + in this situation. */ + /* On native Win32 systems (such as mingw), we can avoid using + %n because: + - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, + snprintf does not write more than the specified number + of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes + '4', '5', '6' into buf, not '4', '5', '\0'.) + - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf + allows us to recognize the case of an insufficient + buffer size: it returns -1 in this case. + On native Win32 systems (such as mingw) where the OS is + Windows Vista, the use of %n in format strings by default + crashes the program. See + and + + So we should avoid %n in this situation. */ + fbp[1] = '\0'; # endif #else - fbp[1] = '\0'; + fbp[1] = '\0'; #endif - /* Construct the arguments for calling snprintf or sprintf. */ - prefix_count = 0; - if (!pad_ourselves && dp->width_arg_index != ARG_NONE) - { - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; - } - if (dp->precision_arg_index != ARG_NONE) - { - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; - } + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; + if (!pad_ourselves && dp->width_arg_index != ARG_NONE) + { + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; + } + if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) + { + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; + } #if USE_SNPRINTF - /* The SNPRINTF result is appended after result[0..length]. - The latter is an array of DCHAR_T; SNPRINTF appends an - array of TCHAR_T to it. This is possible because - sizeof (TCHAR_T) divides sizeof (DCHAR_T) and - alignof (TCHAR_T) <= alignof (DCHAR_T). */ + /* The SNPRINTF result is appended after result[0..length]. + The latter is an array of DCHAR_T; SNPRINTF appends an + array of TCHAR_T to it. This is possible because + sizeof (TCHAR_T) divides sizeof (DCHAR_T) and + alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) - /* Prepare checking whether snprintf returns the count - via %n. */ - ENSURE_ALLOCATION (xsum (length, 1)); - *(TCHAR_T *) (result + length) = '\0'; + /* Ensure that maxlen below will be >= 2. Needed on BeOS, + where an snprintf() with maxlen==1 acts like sprintf(). */ + ENSURE_ALLOCATION (xsum (length, + (2 + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR)); + /* Prepare checking whether snprintf returns the count + via %n. */ + *(TCHAR_T *) (result + length) = '\0'; #endif - for (;;) - { - int count = -1; + for (;;) + { + int count = -1; #if USE_SNPRINTF - int retcount = 0; - size_t maxlen = allocated - length; - /* SNPRINTF can fail if its second argument is - > INT_MAX. */ - if (maxlen > INT_MAX / TCHARS_PER_DCHAR) - maxlen = INT_MAX / TCHARS_PER_DCHAR; - maxlen = maxlen * TCHARS_PER_DCHAR; + int retcount = 0; + size_t maxlen = allocated - length; + /* SNPRINTF can fail if its second argument is + > INT_MAX. */ + if (maxlen > INT_MAX / TCHARS_PER_DCHAR) + maxlen = INT_MAX / TCHARS_PER_DCHAR; + maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - arg, &count); \ - break; \ - case 1: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], arg, &count); \ - break; \ - case 2: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], prefixes[1], arg, \ - &count); \ - break; \ - default: \ - abort (); \ - } + switch (prefix_count) \ + { \ + case 0: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + arg, &count); \ + break; \ + case 1: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], arg, &count); \ + break; \ + case 2: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], prefixes[1], arg, \ + &count); \ + break; \ + default: \ + abort (); \ + } #else # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - count = sprintf (tmp, buf, arg); \ - break; \ - case 1: \ - count = sprintf (tmp, buf, prefixes[0], arg); \ - break; \ - case 2: \ - count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ - arg); \ - break; \ - default: \ - abort (); \ - } -#endif - - switch (type) - { - case TYPE_SCHAR: - { - int arg = a.arg[dp->arg_index].a.a_schar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UCHAR: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uchar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_SHORT: - { - int arg = a.arg[dp->arg_index].a.a_short; - SNPRINTF_BUF (arg); - } - break; - case TYPE_USHORT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_ushort; - SNPRINTF_BUF (arg); - } - break; - case TYPE_INT: - { - int arg = a.arg[dp->arg_index].a.a_int; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UINT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGINT: - { - long int arg = a.arg[dp->arg_index].a.a_longint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGINT: - { - unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; - SNPRINTF_BUF (arg); - } - break; + switch (prefix_count) \ + { \ + case 0: \ + count = sprintf (tmp, buf, arg); \ + break; \ + case 1: \ + count = sprintf (tmp, buf, prefixes[0], arg); \ + break; \ + case 2: \ + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ + arg); \ + break; \ + default: \ + abort (); \ + } +#endif + + errno = 0; + switch (type) + { + case TYPE_SCHAR: + { + int arg = a.arg[dp->arg_index].a.a_schar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UCHAR: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uchar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_SHORT: + { + int arg = a.arg[dp->arg_index].a.a_short; + SNPRINTF_BUF (arg); + } + break; + case TYPE_USHORT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_ushort; + SNPRINTF_BUF (arg); + } + break; + case TYPE_INT: + { + int arg = a.arg[dp->arg_index].a.a_int; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UINT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGINT: + { + long int arg = a.arg[dp->arg_index].a.a_longint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGINT: + { + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; + SNPRINTF_BUF (arg); + } + break; #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - { - long long int arg = a.arg[dp->arg_index].a.a_longlongint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGLONGINT: - { - unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_DOUBLE: - { - double arg = a.arg[dp->arg_index].a.a_double; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGDOUBLE: - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - SNPRINTF_BUF (arg); - } - break; - case TYPE_CHAR: - { - int arg = a.arg[dp->arg_index].a.a_char; - SNPRINTF_BUF (arg); - } - break; + case TYPE_LONGLONGINT: + { + long long int arg = a.arg[dp->arg_index].a.a_longlongint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGLONGINT: + { + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_DOUBLE: + { + double arg = a.arg[dp->arg_index].a.a_double; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGDOUBLE: + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + SNPRINTF_BUF (arg); + } + break; + case TYPE_CHAR: + { + int arg = a.arg[dp->arg_index].a.a_char; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WINT_T - case TYPE_WIDE_CHAR: - { - wint_t arg = a.arg[dp->arg_index].a.a_wide_char; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_STRING: - { - const char *arg = a.arg[dp->arg_index].a.a_string; - SNPRINTF_BUF (arg); - } - break; + case TYPE_WIDE_CHAR: + { + wint_t arg = a.arg[dp->arg_index].a.a_wide_char; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_STRING: + { + const char *arg = a.arg[dp->arg_index].a.a_string; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: - { - const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_POINTER: - { - void *arg = a.arg[dp->arg_index].a.a_pointer; - SNPRINTF_BUF (arg); - } - break; - default: - abort (); - } + case TYPE_WIDE_STRING: + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_POINTER: + { + void *arg = a.arg[dp->arg_index].a.a_pointer; + SNPRINTF_BUF (arg); + } + break; + default: + abort (); + } #if USE_SNPRINTF - /* Portability: Not all implementations of snprintf() - are ISO C 99 compliant. Determine the number of - bytes that snprintf() has produced or would have - produced. */ - if (count >= 0) - { - /* Verify that snprintf() has NUL-terminated its - result. */ - if (count < maxlen - && ((TCHAR_T *) (result + length)) [count] != '\0') - abort (); - /* Portability hack. */ - if (retcount > count) - count = retcount; - } - else - { - /* snprintf() doesn't understand the '%n' - directive. */ - if (fbp[1] != '\0') - { - /* Don't use the '%n' directive; instead, look - at the snprintf() return value. */ - fbp[1] = '\0'; - continue; - } - else - { - /* Look at the snprintf() return value. */ - if (retcount < 0) - { - /* HP-UX 10.20 snprintf() is doubly deficient: - It doesn't understand the '%n' directive, - *and* it returns -1 (rather than the length - that would have been required) when the - buffer is too small. */ - size_t bigger_need = - xsum (xtimes (allocated, 2), 12); - ENSURE_ALLOCATION (bigger_need); - continue; - } - else - count = retcount; - } - } -#endif - - /* Attempt to handle failure. */ - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EINVAL; - return NULL; - } + /* Portability: Not all implementations of snprintf() + are ISO C 99 compliant. Determine the number of + bytes that snprintf() has produced or would have + produced. */ + if (count >= 0) + { + /* Verify that snprintf() has NUL-terminated its + result. */ + if (count < maxlen + && ((TCHAR_T *) (result + length)) [count] != '\0') + abort (); + /* Portability hack. */ + if (retcount > count) + count = retcount; + } + else + { + /* snprintf() doesn't understand the '%n' + directive. */ + if (fbp[1] != '\0') + { + /* Don't use the '%n' directive; instead, look + at the snprintf() return value. */ + fbp[1] = '\0'; + continue; + } + else + { + /* Look at the snprintf() return value. */ + if (retcount < 0) + { +# if !HAVE_SNPRINTF_RETVAL_C99 + /* HP-UX 10.20 snprintf() is doubly deficient: + It doesn't understand the '%n' directive, + *and* it returns -1 (rather than the length + that would have been required) when the + buffer is too small. + But a failure at this point can also come + from other reasons than a too small buffer, + such as an invalid wide string argument to + the %ls directive, or possibly an invalid + floating-point argument. */ + size_t tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, + dp->conversion, type, flags, + width, has_precision, + precision, pad_ourselves); + + if (maxlen < tmp_length) + { + /* Make more room. But try to do through + this reallocation only once. */ + size_t bigger_need = + xsum (length, + xsum (tmp_length, + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + /* And always grow proportionally. + (There may be several arguments, each + needing a little more room than the + previous one.) */ + size_t bigger_need2 = + xsum (xtimes (allocated, 2), 12); + if (bigger_need < bigger_need2) + bigger_need = bigger_need2; + ENSURE_ALLOCATION (bigger_need); + continue; + } +# endif + } + else + count = retcount; + } + } +#endif + + /* Attempt to handle failure. */ + if (count < 0) + { + /* SNPRINTF or sprintf failed. Save and use the errno + that it has set, if any. */ + int saved_errno = errno; + + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = + (saved_errno != 0 + ? saved_errno + : (dp->conversion == 'c' || dp->conversion == 's' + ? EILSEQ + : EINVAL)); + return NULL; + } #if USE_SNPRINTF - /* Handle overflow of the allocated buffer. - If such an overflow occurs, a C99 compliant snprintf() - returns a count >= maxlen. However, a non-compliant - snprintf() function returns only count = maxlen - 1. To - cover both cases, test whether count >= maxlen - 1. */ - if ((unsigned int) count + 1 >= maxlen) - { - /* If maxlen already has attained its allowed maximum, - allocating more memory will not increase maxlen. - Instead of looping, bail out. */ - if (maxlen == INT_MAX / TCHARS_PER_DCHAR) - goto overflow; - else - { - /* Need at least count * sizeof (TCHAR_T) bytes. - But allocate proportionally, to avoid looping - eternally if snprintf() reports a too small - count. */ - size_t n = - xmax (xsum (length, - (count + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR), - xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - continue; - } - } + /* Handle overflow of the allocated buffer. + If such an overflow occurs, a C99 compliant snprintf() + returns a count >= maxlen. However, a non-compliant + snprintf() function returns only count = maxlen - 1. To + cover both cases, test whether count >= maxlen - 1. */ + if ((unsigned int) count + 1 >= maxlen) + { + /* If maxlen already has attained its allowed maximum, + allocating more memory will not increase maxlen. + Instead of looping, bail out. */ + if (maxlen == INT_MAX / TCHARS_PER_DCHAR) + goto overflow; + else + { + /* Need at least (count + 1) * sizeof (TCHAR_T) + bytes. (The +1 is for the trailing NUL.) + But ask for (count + 2) * sizeof (TCHAR_T) + bytes, so that in the next round, we likely get + maxlen > (unsigned int) count + 1 + and so we don't get here again. + And allocate proportionally, to avoid looping + eternally if snprintf() reports a too small + count. */ + size_t n = + xmax (xsum (length, + ((unsigned int) count + 2 + + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR), + xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + continue; + } + } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - if (prec_ourselves) - { - /* Handle the precision. */ - TCHAR_T *prec_ptr = + if (prec_ourselves) + { + /* Handle the precision. */ + TCHAR_T *prec_ptr = # if USE_SNPRINTF - (TCHAR_T *) (result + length); + (TCHAR_T *) (result + length); # else - tmp; + tmp; # endif - size_t prefix_count; - size_t move; + size_t prefix_count; + size_t move; - prefix_count = 0; - /* Put the additional zeroes after the sign. */ - if (count >= 1 - && (*prec_ptr == '-' || *prec_ptr == '+' - || *prec_ptr == ' ')) - prefix_count = 1; - /* Put the additional zeroes after the 0x prefix if - (flags & FLAG_ALT) || (dp->conversion == 'p'). */ - else if (count >= 2 - && prec_ptr[0] == '0' - && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) - prefix_count = 2; - - move = count - prefix_count; - if (precision > move) - { - /* Insert zeroes. */ - size_t insert = precision - move; - TCHAR_T *prec_end; + prefix_count = 0; + /* Put the additional zeroes after the sign. */ + if (count >= 1 + && (*prec_ptr == '-' || *prec_ptr == '+' + || *prec_ptr == ' ')) + prefix_count = 1; + /* Put the additional zeroes after the 0x prefix if + (flags & FLAG_ALT) || (dp->conversion == 'p'). */ + else if (count >= 2 + && prec_ptr[0] == '0' + && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) + prefix_count = 2; + + move = count - prefix_count; + if (precision > move) + { + /* Insert zeroes. */ + size_t insert = precision - move; + TCHAR_T *prec_end; # if USE_SNPRINTF - size_t n = - xsum (length, - (count + insert + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR); - length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - ENSURE_ALLOCATION (n); - length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - prec_ptr = (TCHAR_T *) (result + length); -# endif - - prec_end = prec_ptr + count; - prec_ptr += prefix_count; - - while (prec_end > prec_ptr) - { - prec_end--; - prec_end[insert] = prec_end[0]; - } - - prec_end += insert; - do - *--prec_end = '0'; - while (prec_end > prec_ptr); - - count += insert; - } - } + size_t n = + xsum (length, + (count + insert + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + ENSURE_ALLOCATION (n); + length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + prec_ptr = (TCHAR_T *) (result + length); +# endif + + prec_end = prec_ptr + count; + prec_ptr += prefix_count; + + while (prec_end > prec_ptr) + { + prec_end--; + prec_end[insert] = prec_end[0]; + } + + prec_end += insert; + do + *--prec_end = '0'; + while (prec_end > prec_ptr); + + count += insert; + } + } +#endif + +#if !USE_SNPRINTF + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); #endif #if !DCHAR_IS_TCHAR -# if !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); -# endif - - /* Convert from TCHAR_T[] to DCHAR_T[]. */ - if (dp->conversion == 'c' || dp->conversion == 's') - { - /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING - TYPE_WIDE_STRING. - The result string is not certainly ASCII. */ - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t tmpdst_len; - /* This code assumes that TCHAR_T is 'char'. */ - typedef int TCHAR_T_verify - [2 * (sizeof (TCHAR_T) == 1) - 1]; + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + if (dp->conversion == 'c' || dp->conversion == 's') + { + /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING + TYPE_WIDE_STRING. + The result string is not certainly ASCII. */ + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify + [2 * (sizeof (TCHAR_T) == 1) - 1]; # if USE_SNPRINTF - tmpsrc = (TCHAR_T *) (result + length); + tmpsrc = (TCHAR_T *) (result + length); # else - tmpsrc = tmp; + tmpsrc = tmp; # endif - tmpdst = NULL; - tmpdst_len = 0; - if (DCHAR_CONV_FROM_ENCODING (locale_charset (), - iconveh_question_mark, - tmpsrc, count, - NULL, - &tmpdst, &tmpdst_len) - < 0) - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - ENSURE_ALLOCATION (xsum (length, tmpdst_len)); - DCHAR_CPY (result + length, tmpdst, tmpdst_len); - free (tmpdst); - count = tmpdst_len; - } - else - { - /* The result string is ASCII. - Simple 1:1 conversion. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, count, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + count = tmpdst_len; + } + else + { + /* The result string is ASCII. + Simple 1:1 conversion. */ # if USE_SNPRINTF - /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a - no-op conversion, in-place on the array starting - at (result + length). */ - if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) -# endif - { - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t n; + /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a + no-op conversion, in-place on the array starting + at (result + length). */ + if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) +# endif + { + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t n; # if USE_SNPRINTF - if (result == resultbuf) - { - tmpsrc = (TCHAR_T *) (result + length); - /* ENSURE_ALLOCATION will not move tmpsrc - (because it's part of resultbuf). */ - ENSURE_ALLOCATION (xsum (length, count)); - } - else - { - /* ENSURE_ALLOCATION will move the array - (because it uses realloc(). */ - ENSURE_ALLOCATION (xsum (length, count)); - tmpsrc = (TCHAR_T *) (result + length); - } + if (result == resultbuf) + { + tmpsrc = (TCHAR_T *) (result + length); + /* ENSURE_ALLOCATION will not move tmpsrc + (because it's part of resultbuf). */ + ENSURE_ALLOCATION (xsum (length, count)); + } + else + { + /* ENSURE_ALLOCATION will move the array + (because it uses realloc(). */ + ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = (TCHAR_T *) (result + length); + } # else - tmpsrc = tmp; - ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = tmp; + ENSURE_ALLOCATION (xsum (length, count)); # endif - tmpdst = result + length; - /* Copy backwards, because of overlapping. */ - tmpsrc += count; - tmpdst += count; - for (n = count; n > 0; n--) - *--tmpdst = (unsigned char) *--tmpsrc; - } - } + tmpdst = result + length; + /* Copy backwards, because of overlapping. */ + tmpsrc += count; + tmpdst += count; + for (n = count; n > 0; n--) + *--tmpdst = (unsigned char) *--tmpsrc; + } + } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF - /* Make room for the result. */ - if (count > allocated - length) - { - /* Need at least count elements. But allocate - proportionally. */ - size_t n = - xmax (xsum (length, count), xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - } -#endif - - /* Here count <= allocated - length. */ - - /* Perform padding. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - if (pad_ourselves && has_width) - { - size_t w; + /* Make room for the result. */ + if (count > allocated - length) + { + /* Need at least count elements. But allocate + proportionally. */ + size_t n = + xmax (xsum (length, count), xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + } +#endif + + /* Here count <= allocated - length. */ + + /* Perform padding. */ +#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + if (pad_ourselves && has_width) + { + size_t w; # if ENABLE_UNISTDIO - /* Outside POSIX, it's preferrable to compare the width - against the number of _characters_ of the converted - value. */ - w = DCHAR_MBSNLEN (result + length, count); + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, count); # else - /* The width is compared against the number of _bytes_ - of the converted value, says POSIX. */ - w = count; -# endif - if (w < width) - { - size_t pad = width - w; + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = count; +# endif + if (w < width) + { + size_t pad = width - w; + + /* Make room for the result. */ + if (xsum (count, pad) > allocated - length) + { + /* Need at least count + pad elements. But + allocate proportionally. */ + size_t n = + xmax (xsum3 (length, count, pad), + xtimes (allocated, 2)); + # if USE_SNPRINTF - /* Make room for the result. */ - if (xsum (count, pad) > allocated - length) - { - /* Need at least count + pad elements. But - allocate proportionally. */ - size_t n = - xmax (xsum3 (length, count, pad), - xtimes (allocated, 2)); - - length += count; - ENSURE_ALLOCATION (n); - length -= count; - } - /* Here count + pad <= allocated - length. */ + length += count; + ENSURE_ALLOCATION (n); + length -= count; +# else + ENSURE_ALLOCATION (n); # endif - { + } + /* Here count + pad <= allocated - length. */ + + { # if !DCHAR_IS_TCHAR || USE_SNPRINTF - DCHAR_T * const rp = result + length; + DCHAR_T * const rp = result + length; # else - DCHAR_T * const rp = tmp; + DCHAR_T * const rp = tmp; # endif - DCHAR_T *p = rp + count; - DCHAR_T *end = p + pad; -# if NEED_PRINTF_FLAG_ZERO - DCHAR_T *pad_ptr; -# if !DCHAR_IS_TCHAR - if (dp->conversion == 'c' - || dp->conversion == 's') - /* No zero-padding for string directives. */ - pad_ptr = NULL; - else -# endif - { - pad_ptr = (*rp == '-' ? rp + 1 : rp); - /* No zero-padding of "inf" and "nan". */ - if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') - || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) - pad_ptr = NULL; - } -# endif - /* The generated string now extends from rp to p, - with the zero padding insertion point being at - pad_ptr. */ - - count = count + pad; /* = end - rp */ - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } -# if NEED_PRINTF_FLAG_ZERO - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } -# endif - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > rp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - } - } - } -#endif - -#if DCHAR_IS_TCHAR && !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); + DCHAR_T *p = rp + count; + DCHAR_T *end = p + pad; + DCHAR_T *pad_ptr; +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO + if (dp->conversion == 'c' + || dp->conversion == 's') + /* No zero-padding for string directives. */ + pad_ptr = NULL; + else +# endif + { + pad_ptr = (*rp == '-' ? rp + 1 : rp); + /* No zero-padding of "inf" and "nan". */ + if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') + || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) + pad_ptr = NULL; + } + /* The generated string now extends from rp to p, + with the zero padding insertion point being at + pad_ptr. */ + + count = count + pad; /* = end - rp */ + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > rp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + } + } + } #endif - /* Here still count <= allocated - length. */ + /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF - /* The snprintf() result did fit. */ + /* The snprintf() result did fit. */ #else - /* Append the sprintf() result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + /* Append the sprintf() result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF - if (tmp != tmpbuf) - free (tmp); + if (tmp != tmpbuf) + free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - { - /* Convert the %f result to upper case for %F. */ - DCHAR_T *rp = result + length; - size_t rc; - for (rc = count; rc > 0; rc--, rp++) - if (*rp >= 'a' && *rp <= 'z') - *rp = *rp - 'a' + 'A'; - } -#endif - - length += count; - break; - } - } - } + if (dp->conversion == 'F') + { + /* Convert the %f result to upper case for %F. */ + DCHAR_T *rp = result + length; + size_t rc; + for (rc = count; rc > 0; rc--, rp++) + if (*rp >= 'a' && *rp <= 'z') + *rp = *rp - 'a' + 'A'; + } +#endif + + length += count; + break; + } +#undef pad_ourselves +#undef prec_ourselves + } + } } /* Add the final NUL. */ @@ -4624,12 +5511,12 @@ if (result != resultbuf && length + 1 < allocated) { - /* Shrink the allocated memory if possible. */ - DCHAR_T *memory; + /* Shrink the allocated memory if possible. */ + DCHAR_T *memory; - memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); - if (memory != NULL) - result = memory; + memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); + if (memory != NULL) + result = memory; } if (buf_malloced != NULL) @@ -4642,6 +5529,7 @@ not have this limitation. */ return result; +#if USE_SNPRINTF overflow: if (!(result == resultbuf || result == NULL)) free (result); @@ -4650,6 +5538,7 @@ CLEANUP (); errno = EOVERFLOW; return NULL; +#endif out_of_memory: if (!(result == resultbuf || result == NULL)) @@ -4663,9 +5552,11 @@ } } +#undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF +#undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES diff -Nru gettext-0.17/gettext-runtime/libasprintf/vasprintf.h gettext-0.18.1.1/gettext-runtime/libasprintf/vasprintf.h --- gettext-0.17/gettext-runtime/libasprintf/vasprintf.h 2005-05-20 21:06:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/vasprintf.h 2010-06-06 12:49:57.000000000 +0000 @@ -35,7 +35,7 @@ # endif #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -48,7 +48,7 @@ extern int vasprintf (char **result, const char *format, va_list args) __attribute__ ((__format__ (__printf__, 2, 0))); -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-runtime/libasprintf/xsize.h gettext-0.18.1.1/gettext-runtime/libasprintf/xsize.h --- gettext-0.17/gettext-runtime/libasprintf/xsize.h 2005-05-20 21:06:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/libasprintf/xsize.h 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ /* xsize.h -- Checked size_t computations. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -95,7 +95,7 @@ /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff -Nru gettext-0.17/gettext-runtime/m4/ChangeLog gettext-0.18.1.1/gettext-runtime/m4/ChangeLog --- gettext-0.17/gettext-runtime/m4/ChangeLog 2007-11-06 23:27:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,215 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-03 Bruno Haible + + Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands. + * iconv.m4 (gl_iconv_AC_DEFUN): New macro. + (AM_ICONV): Define it through gl_iconv_AC_DEFUN. + Reported by Ludovic Courtès . + +2010-05-16 Bruno Haible + + Avoid autoconf warnings about AM_ICONV. + * iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >= 2.64. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * po.m4 (AM_PO_SUBDIRS): Set GETTEXT_MACRO_VERSION to 0.18. + +2010-04-20 Simon Josefsson + Bruno Haible + + visibility: Don't use -fvisibility if it leads to a warning. + * visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If + yes, don't pretend that visibility works if it leads to a warning. + Reported by Mike Gran . + +2010-04-05 Bruno Haible + + Make the multithread modules work on Cygwin 1.7.2. + * threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether imported + symbols can be declared weak, so that it returns "no" on Cygwin 1.7.2. + +2010-03-28 Bruno Haible + + * gettext.m4 (AM_GNU_GETTEXT): Emit a warning if the first argument is + empty or 'no-libtool'. + +2010-01-01 Bruno Haible + + * iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug. + +2009-12-26 Bruno Haible + + * intl.m4 (gt_INTL_SUBDIR_CORE): Don't check for NL_LOCALE_NAME macro. + +2009-12-26 Bruno Haible + + * intl.m4 (gt_INTL_SUBDIR_CORE): Check also for uselocale. + +2009-12-25 Bruno Haible + + * fcntl-o.m4: New file, from gnulib. + * fcntl_h.m4: Remove file. + * Makefile.am (EXTRA_DIST): Add fcntl-o.m4. Remove fcntl_h.m4. + +2009-12-21 Bruno Haible + + Define override of setlocale and newlocale functions. + * intl.m4 (AM_INTL_SUBDIR): Check also for newlocale. Set + HAVE_NEWLOCALE. + +2009-12-12 Bruno Haible + + * fcntl_h.m4: Untabify. + * glibc2.m4: Untabify. + * glibc21.m4: Untabify. + * longlong.m4: Untabify. + +2009-10-18 Bruno Haible + + * fcntl_h.m4: New file, from gnulib. + * intl.m4 (AM_INTL_SUBDIR): Require gl_FCNTL_O_FLAGS. + * Makefile.am (EXTRA_DIST): Add fcntl_h.m4. + +2009-08-14 Bruno Haible + + * eoverflow.m4: Remove file. Obsoleted by gnulib's 'errno' module. + * Makefile.am (EXTRA_DIST): Remove it. + +2009-08-14 Bruno Haible + + Disable multithread support by default on Cygwin 1.5.x for real. + * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit. + +2009-08-12 Bruno Haible + + Disable multithread support by default on Cygwin 1.5.x. + * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older, + set gl_use_threads=no if not specified otherwise. + +2009-08-03 Bruno Haible + + * iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64. + +2009-06-06 Bruno Haible + + Interoperate with automake-1.11 provided --enable-silent-rules option. + * intl.m4 (AM_INTL_SUBDIR): Set INTL_DEFAULT_VERBOSITY. + +2009-05-21 Bruno Haible + + Avoid redefinition warnings for SIZE_MAX. + * size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h. + Reported by Simon Josefsson. + +2009-05-21 Bruno Haible + + * size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of + AC_CACHE_VAL. + +2009-02-23 Bruno Haible + + * intl.m4 (AM_INTL_SUBDIR): Also check for strnlen, wcsnlen, mbrtowc, + wcrtomb. + +2009-01-14 Bruno Haible + + * intl.m4: More consistent m4 quoting. + +2009-01-14 Jim Meyering + + * codeset.m4: More consistent m4 quoting. + * gettext.m4: Likewise. + * iconv.m4: Likewise. + * intldir.m4: Likewise. + * intlmacosx.m4: Likewise. + * intmax.m4: Likewise. + * inttypes_h.m4: Likewise. + * inttypes-pri.m4: Likewise. + * lcmessage.m4: Likewise. + * lock.m4: Likewise. + * longlong.m4: Likewise. + * nls.m4: Likewise. + * po.m4: Likewise. + * printf-posix.m4: Likewise. + * progtest.m4: Likewise. + * stdint_h.m4: Likewise. + * threadlib.m4: Likewise. + * uintmax_t.m4: Likewise. + * wchar_t.m4: Likewise. + * wint_t.m4: Likewise. + +2008-12-29 Bruno Haible + + * codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument + quoting. + * gettext.m4 (AM_GNU_GETTEXT): Likewise. + * glibc2.m4 (gt_GLIBC2): Likewise. + * glibc21.m4 (gl_GLIBC21): Likewise. + * iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise. + * intdiv0.m4 (gt_INTDIV0): Likewise. + * intl.m4 (gt_INTL_SUBDIR_CORE, gt_CHECK_DECL): Likewise. + * intlmacosx.m4 (gt_INTL_MACOSX): Likewise. + * intmax.m4 (gt_TYPE_INTMAX_T): Likewise. + * inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise. + * inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise. + * lcmessage.m4 (gt_LC_MESSAGES): Likewise. + * nls.m4 (AM_NLS): Likewise. + * po.m4 (AM_PO_SUBDIRS): Likewise. + * printf-posix.m4 (gt_PRINTF_POSIX): Likewise. + * progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise. + * size_max.m4 (gl_SIZE_MAX): Likewise. + * stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise. + * threadlib.m4 (gl_THREADLIB_BODY): Likewise. + * uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise. + * visibility.m4 (gl_VISIBILITY): Likewise. + * wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise. + * wint_t.m4 (gt_TYPE_WINT_T): Likewise. + * xsize.m4 (gl_XSIZE): Likewise. + +2007-11-12 Paul Eggert + + Don't insist on 'long long int' support in the preprocessor. It + breaks too many things. For example, PRIdMAX still uses a 'long + long int' format with the latest Sun compiler, even though + HAVE_LONG_LONG_INT isn't defined due to that compiler's + preprocessor problem. This causes the latest coreutils to dump + core on Solaris 10 sparc with the Sun C compiler. + Instead, fix the 2007-10-16 problem in a different way, by evaluating + the troublesome expressions at configure-time, not at #if-time. + * longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the + preprocessor. + +2008-08-17 Bruno Haible + + * threadlib.m4: New file, from gnulib. + * lock.m4: Update from gnulib. + * Makefile.am (EXTRA_DIST): Add threadlib.m4. + +2008-08-14 Bruno Haible + + * intl.m4 (AM_INTL_SUBDIR): Update after changes to lock.h. + +2008-06-17 Bruno Haible + + New macro gl_DISABLE_THREADS. + * lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default + if the user did not pass --enable-threads or --disable-threads option. + (gl_DISABLE_THREADS): New macro. + Reported by Eric Blake . + +2007-11-10 Bruno Haible + + * eoverflow.m4: New file, from gnulib. + * Makefile.am (EXTRA_DIST): Add it. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/m4/codeset.m4 gettext-0.18.1.1/gettext-runtime/m4/codeset.m4 --- gettext-0.17/gettext-runtime/m4/codeset.m4 2006-10-24 20:59:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/codeset.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# codeset.m4 serial 2 (gettext-0.16) -dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. +# codeset.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,14 +8,14 @@ AC_DEFUN([AM_LANGINFO_CODESET], [ - AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, + AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET); return !cs;], - am_cv_langinfo_codeset=yes, - am_cv_langinfo_codeset=no) + [am_cv_langinfo_codeset=yes], + [am_cv_langinfo_codeset=no]) ]) if test $am_cv_langinfo_codeset = yes; then - AC_DEFINE(HAVE_LANGINFO_CODESET, 1, + AC_DEFINE([HAVE_LANGINFO_CODESET], [1], [Define if you have and nl_langinfo(CODESET).]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/fcntl-o.m4 gettext-0.18.1.1/gettext-runtime/m4/fcntl-o.m4 --- gettext-0.17/gettext-runtime/m4/fcntl-o.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/fcntl-o.m4 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,81 @@ +# fcntl-o.m4 serial 1 +dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Paul Eggert. + +# Test whether the flags O_NOATIME and O_NOFOLLOW actually work. +# Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise. +# Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise. +AC_DEFUN([gl_FCNTL_O_FLAGS], +[ + dnl Persuade glibc to define O_NOATIME and O_NOFOLLOW. + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #include + #include + #include + #ifndef O_NOATIME + #define O_NOATIME 0 + #endif + #ifndef O_NOFOLLOW + #define O_NOFOLLOW 0 + #endif + static int const constants[] = + { + O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, + O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY + }; + ]], + [[ + int status = !constants; + { + static char const sym[] = "conftest.sym"; + if (symlink (".", sym) != 0 + || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) + status |= 32; + unlink (sym); + } + { + static char const file[] = "confdefs.h"; + int fd = open (file, O_RDONLY | O_NOATIME); + char c; + struct stat st0, st1; + if (fd < 0 + || fstat (fd, &st0) != 0 + || sleep (1) != 0 + || read (fd, &c, 1) != 1 + || close (fd) != 0 + || stat (file, &st1) != 0 + || st0.st_atime != st1.st_atime) + status |= 64; + } + return status;]])], + [gl_cv_header_working_fcntl_h=yes], + [case $? in #( + 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( + 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( + 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( + *) gl_cv_header_working_fcntl_h='no';; + esac], + [gl_cv_header_working_fcntl_h=cross-compiling])]) + + case $gl_cv_header_working_fcntl_h in #( + *O_NOATIME* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac + AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], + [Define to 1 if O_NOATIME works.]) + + case $gl_cv_header_working_fcntl_h in #( + *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac + AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], + [Define to 1 if O_NOFOLLOW works.]) +]) diff -Nru gettext-0.17/gettext-runtime/m4/gettext.m4 gettext-0.18.1.1/gettext-runtime/m4/gettext.m4 --- gettext-0.17/gettext-runtime/m4/gettext.m4 2007-10-28 16:20:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/gettext.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# gettext.m4 serial 60 (gettext-0.17) -dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +# gettext.m4 serial 63 (gettext-0.18) +dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -15,7 +15,7 @@ dnl Authors: dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2006. +dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. @@ -60,6 +60,8 @@ ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) + ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], + [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) @@ -123,11 +125,11 @@ gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) - AC_ARG_WITH(included-gettext, + AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) - AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) + AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then @@ -267,7 +269,7 @@ if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then - AC_DEFINE(ENABLE_NLS, 1, + AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else @@ -301,9 +303,9 @@ fi dnl For backward compatibility. Some packages may be using this. - AC_DEFINE(HAVE_GETTEXT, 1, + AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) - AC_DEFINE(HAVE_DCGETTEXT, 1, + AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi @@ -319,9 +321,9 @@ fi dnl Make all variables we use known to autoconf. - AC_SUBST(BUILD_INCLUDED_LIBINTL) - AC_SUBST(USE_INCLUDED_LIBINTL) - AC_SUBST(CATOBJEXT) + AC_SUBST([BUILD_INCLUDED_LIBINTL]) + AC_SUBST([USE_INCLUDED_LIBINTL]) + AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= @@ -329,36 +331,36 @@ dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share - AC_SUBST(DATADIRNAME) + AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo - AC_SUBST(INSTOBJEXT) + AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat - AC_SUBST(GENCAT) + AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi - AC_SUBST(INTLOBJS) + AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix - AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) + AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" - AC_SUBST(INTLLIBS) + AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. - AC_SUBST(LIBINTL) - AC_SUBST(LTLIBINTL) - AC_SUBST(POSUB) + AC_SUBST([LIBINTL]) + AC_SUBST([LTLIBINTL]) + AC_SUBST([POSUB]) ]) diff -Nru gettext-0.17/gettext-runtime/m4/glibc21.m4 gettext-0.18.1.1/gettext-runtime/m4/glibc21.m4 --- gettext-0.17/gettext-runtime/m4/glibc21.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/glibc21.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# glibc21.m4 serial 3 -dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. +# glibc21.m4 serial 4 +dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,22 +9,22 @@ AC_DEFUN([gl_GLIBC21], [ - AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, - ac_cv_gnu_library_2_1, + AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer], + [ac_cv_gnu_library_2_1], [AC_EGREP_CPP([Lucky GNU user], - [ + [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif - ], - ac_cv_gnu_library_2_1=yes, - ac_cv_gnu_library_2_1=no) + ], + [ac_cv_gnu_library_2_1=yes], + [ac_cv_gnu_library_2_1=no]) ] ) - AC_SUBST(GLIBC21) + AC_SUBST([GLIBC21]) GLIBC21="$ac_cv_gnu_library_2_1" ] ) diff -Nru gettext-0.17/gettext-runtime/m4/glibc2.m4 gettext-0.18.1.1/gettext-runtime/m4/glibc2.m4 --- gettext-0.17/gettext-runtime/m4/glibc2.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/glibc2.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# glibc2.m4 serial 1 -dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. +# glibc2.m4 serial 2 +dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,22 +9,22 @@ AC_DEFUN([gt_GLIBC2], [ - AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, - ac_cv_gnu_library_2, + AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], + [ac_cv_gnu_library_2], [AC_EGREP_CPP([Lucky GNU user], - [ + [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif - ], - ac_cv_gnu_library_2=yes, - ac_cv_gnu_library_2=no) + ], + [ac_cv_gnu_library_2=yes], + [ac_cv_gnu_library_2=no]) ] ) - AC_SUBST(GLIBC2) + AC_SUBST([GLIBC2]) GLIBC2="$ac_cv_gnu_library_2" ] ) diff -Nru gettext-0.17/gettext-runtime/m4/iconv.m4 gettext-0.18.1.1/gettext-runtime/m4/iconv.m4 --- gettext-0.17/gettext-runtime/m4/iconv.m4 2007-10-28 16:20:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/iconv.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# iconv.m4 serial AM6 (gettext-0.17) -dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc. +# iconv.m4 serial 11 (gettext-0.18.1) +dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -34,7 +34,7 @@ am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) - AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [ + AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include @@ -42,7 +42,7 @@ [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], - am_cv_func_iconv=yes) + [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" @@ -51,14 +51,14 @@ [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], - am_cv_lib_iconv=yes - am_cv_func_iconv=yes) + [am_cv_lib_iconv=yes] + [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then - AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [ - dnl This tests against bugs in AIX 5.1 and HP-UX 11.11. + AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ + dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" @@ -87,6 +87,25 @@ return 1; } } + /* Test against Solaris 10 bug: Failures are not distinguishable from + successful returns. */ + { + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); + if (cd_ascii_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\263"; + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_ascii_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { @@ -134,7 +153,7 @@ am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then - AC_DEFINE(HAVE_ICONV, 1, + AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then @@ -147,16 +166,31 @@ LIBICONV= LTLIBICONV= fi - AC_SUBST(LIBICONV) - AC_SUBST(LTLIBICONV) + AC_SUBST([LIBICONV]) + AC_SUBST([LTLIBICONV]) ]) -AC_DEFUN([AM_ICONV], +dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to +dnl avoid warnings like +dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". +dnl This is tricky because of the way 'aclocal' is implemented: +dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. +dnl Otherwise aclocal's initial scan pass would miss the macro definition. +dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. +dnl Otherwise aclocal would emit many "Use of uninitialized value $1" +dnl warnings. +m4_define([gl_iconv_AC_DEFUN], + m4_version_prereq([2.64], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])) +gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) - AC_CACHE_VAL(am_cv_proto_iconv, [ + AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include @@ -169,12 +203,12 @@ #else size_t iconv(); #endif -], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") +], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - AC_MSG_RESULT([$]{ac_t:- - }[$]am_cv_proto_iconv) - AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, + AC_MSG_RESULT([ + $am_cv_proto_iconv]) + AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/intdiv0.m4 gettext-0.18.1.1/gettext-runtime/m4/intdiv0.m4 --- gettext-0.17/gettext-runtime/m4/intdiv0.m4 2007-10-28 16:20:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/intdiv0.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# intdiv0.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc. +# intdiv0.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -61,7 +61,7 @@ nan = y / y; exit (1); } -], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, +], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no], [ # Guess based on the CPU. changequote(,)dnl @@ -79,6 +79,6 @@ *yes) value=1;; *) value=0;; esac - AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, + AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], [Define if integer division by zero raises signal SIGFPE.]) ]) diff -Nru gettext-0.17/gettext-runtime/m4/intldir.m4 gettext-0.18.1.1/gettext-runtime/m4/intldir.m4 --- gettext-0.17/gettext-runtime/m4/intldir.m4 2006-10-24 20:59:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/intldir.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# intldir.m4 serial 1 (gettext-0.16) -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# intldir.m4 serial 2 (gettext-0.18) +dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. -AC_PREREQ(2.52) +AC_PREREQ([2.52]) dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) diff -Nru gettext-0.17/gettext-runtime/m4/intl.m4 gettext-0.18.1.1/gettext-runtime/m4/intl.m4 --- gettext-0.17/gettext-runtime/m4/intl.m4 2007-10-28 16:20:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/intl.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# intl.m4 serial 8 (gettext-0.17) -dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +# intl.m4 serial 17 (gettext-0.18) +dnl Copyright (C) 1995-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -15,9 +15,9 @@ dnl Authors: dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2006. +dnl Bruno Haible , 2000-2009. -AC_PREREQ(2.52) +AC_PREREQ([2.52]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, @@ -40,14 +40,24 @@ AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl + AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl + dnl Support for automake's --enable-silent-rules. + case "$enable_silent_rules" in + yes) INTL_DEFAULT_VERBOSITY=0;; + no) INTL_DEFAULT_VERBOSITY=1;; + *) INTL_DEFAULT_VERBOSITY=1;; + esac + AC_SUBST([INTL_DEFAULT_VERBOSITY]) + AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) - AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) + AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \ + snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). @@ -78,6 +88,12 @@ HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) + if test "$ac_cv_func_newlocale" = yes; then + HAVE_NEWLOCALE=1 + else + HAVE_NEWLOCALE=0 + fi + AC_SUBST([HAVE_NEWLOCALE]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else @@ -146,22 +162,31 @@ #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use -#define glthread_lock_init libintl_lock_init -#define glthread_lock_lock libintl_lock_lock -#define glthread_lock_unlock libintl_lock_unlock -#define glthread_lock_destroy libintl_lock_destroy -#define glthread_rwlock_init libintl_rwlock_init -#define glthread_rwlock_rdlock libintl_rwlock_rdlock -#define glthread_rwlock_wrlock libintl_rwlock_wrlock -#define glthread_rwlock_unlock libintl_rwlock_unlock -#define glthread_rwlock_destroy libintl_rwlock_destroy -#define glthread_recursive_lock_init libintl_recursive_lock_init -#define glthread_recursive_lock_lock libintl_recursive_lock_lock -#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock -#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy -#define glthread_once libintl_once -#define glthread_once_call libintl_once_call +#define glthread_lock_init_func libintl_lock_init_func +#define glthread_lock_lock_func libintl_lock_lock_func +#define glthread_lock_unlock_func libintl_lock_unlock_func +#define glthread_lock_destroy_func libintl_lock_destroy_func +#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded +#define glthread_rwlock_init_func libintl_rwlock_init_func +#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded +#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func +#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded +#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func +#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded +#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func +#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded +#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func +#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded +#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func +#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded +#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func +#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded +#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func +#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded +#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func +#define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded +#define glthread_once_multithreaded libintl_once_multithreaded ]) ]) @@ -198,40 +223,24 @@ AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], - [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, + [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ - stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ - argz_next __fsetlocking]) + stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ + argz_stringify argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. - gt_CHECK_DECL(feof_unlocked, [#include ]) - gt_CHECK_DECL(fgets_unlocked, [#include ]) + gt_CHECK_DECL([feof_unlocked], [#include ]) + gt_CHECK_DECL([fgets_unlocked], [#include ]) AM_ICONV - dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, - dnl and a _NL_LOCALE_NAME macro always. - AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, - [AC_TRY_LINK([#include -#include ], - [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); - return !cs; - ], - gt_cv_nl_locale_name=yes, - gt_cv_nl_locale_name=no) - ]) - if test $gt_cv_nl_locale_name = yes; then - AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, - [Define if you have and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) - fi - dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't @@ -269,7 +278,7 @@ dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ - AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, + AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1], [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; diff -Nru gettext-0.17/gettext-runtime/m4/intlmacosx.m4 gettext-0.18.1.1/gettext-runtime/m4/intlmacosx.m4 --- gettext-0.17/gettext-runtime/m4/intlmacosx.m4 2007-10-28 16:20:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/intlmacosx.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# intlmacosx.m4 serial 1 (gettext-0.17) -dnl Copyright (C) 2004-2007 Free Software Foundation, Inc. +# intlmacosx.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -19,7 +19,7 @@ [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], - gt_cv_func_CFPreferencesCopyAppValue, + [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], @@ -28,11 +28,11 @@ [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, + AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], @@ -40,7 +40,7 @@ [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, + AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= diff -Nru gettext-0.17/gettext-runtime/m4/intmax.m4 gettext-0.18.1.1/gettext-runtime/m4/intmax.m4 --- gettext-0.17/gettext-runtime/m4/intmax.m4 2006-10-24 20:59:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/intmax.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# intmax.m4 serial 3 (gettext-0.16) -dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. +# intmax.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 2002-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -12,7 +12,7 @@ [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) - AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, + AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_TRY_COMPILE([ #include #include @@ -24,10 +24,10 @@ #endif ], [intmax_t x = -1; return !x;], - gt_cv_c_intmax_t=yes, - gt_cv_c_intmax_t=no)]) + [gt_cv_c_intmax_t=yes], + [gt_cv_c_intmax_t=no])]) if test $gt_cv_c_intmax_t = yes; then - AC_DEFINE(HAVE_INTMAX_T, 1, + AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/inttypes_h.m4 gettext-0.18.1.1/gettext-runtime/m4/inttypes_h.m4 --- gettext-0.17/gettext-runtime/m4/inttypes_h.m4 2006-08-28 13:12:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/inttypes_h.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# inttypes_h.m4 serial 7 -dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. +# inttypes_h.m4 serial 9 +dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,15 +11,15 @@ AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ - AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, + AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], - gl_cv_header_inttypes_h=yes, - gl_cv_header_inttypes_h=no)]) + [gl_cv_header_inttypes_h=yes], + [gl_cv_header_inttypes_h=no])]) if test $gl_cv_header_inttypes_h = yes; then - AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, + AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi diff -Nru gettext-0.17/gettext-runtime/m4/inttypes-pri.m4 gettext-0.18.1.1/gettext-runtime/m4/inttypes-pri.m4 --- gettext-0.17/gettext-runtime/m4/inttypes-pri.m4 2006-10-24 20:59:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/inttypes-pri.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,12 +1,12 @@ -# inttypes-pri.m4 serial 4 (gettext-0.16) -dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. +# inttypes-pri.m4 serial 6 (gettext-0.18) +dnl Copyright (C) 1997-2002, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. -AC_PREREQ(2.52) +AC_PREREQ([2.52]) # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. @@ -16,17 +16,17 @@ AC_CHECK_HEADERS([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], - gt_cv_inttypes_pri_broken, + [gt_cv_inttypes_pri_broken], [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif -], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) +], [], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then - AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, + AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], [Define if exists and defines unusable PRI* macros.]) PRI_MACROS_BROKEN=1 else diff -Nru gettext-0.17/gettext-runtime/m4/lcmessage.m4 gettext-0.18.1.1/gettext-runtime/m4/lcmessage.m4 --- gettext-0.17/gettext-runtime/m4/lcmessage.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/lcmessage.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,6 @@ -# lcmessage.m4 serial 4 (gettext-0.14.2) -dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. +# lcmessage.m4 serial 6 (gettext-0.18) +dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -20,11 +21,11 @@ AC_DEFUN([gt_LC_MESSAGES], [ - AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, + AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], [AC_TRY_LINK([#include ], [return LC_MESSAGES], - gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) + [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])]) if test $gt_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES, 1, + AC_DEFINE([HAVE_LC_MESSAGES], [1], [Define if your file defines LC_MESSAGES.]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/lock.m4 gettext-0.18.1.1/gettext-runtime/m4/lock.m4 --- gettext-0.17/gettext-runtime/m4/lock.m4 2007-10-28 16:20:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/lock.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,259 +1,33 @@ -# lock.m4 serial 7 (gettext-0.17) -dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. +# lock.m4 serial 10 (gettext-0.18) +dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. -dnl Tests for a multithreading library to be used. -dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, -dnl USE_PTH_THREADS, USE_WIN32_THREADS -dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use -dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with -dnl libtool). -dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for -dnl programs that really need multithread functionality. The difference -dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak -dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". -dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for -dnl multithread-safe programs. - -AC_DEFUN([gl_LOCK_EARLY], -[ - AC_REQUIRE([gl_LOCK_EARLY_BODY]) -]) - -dnl The guts of gl_LOCK_EARLY. Needs to be expanded only once. - -AC_DEFUN([gl_LOCK_EARLY_BODY], -[ - dnl Ordering constraints: This macro modifies CPPFLAGS in a way that - dnl influences the result of the autoconf tests that test for *_unlocked - dnl declarations, on AIX 5 at least. Therefore it must come early. - AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl - AC_BEFORE([$0], [gl_ARGP])dnl - - AC_REQUIRE([AC_CANONICAL_HOST]) - dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. - dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes - dnl AC_GNU_SOURCE. - m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], - [AC_REQUIRE([AC_GNU_SOURCE])]) - dnl Check for multithreading. - AC_ARG_ENABLE(threads, -AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) -AC_HELP_STRING([--disable-threads], [build without multithread safety]), - [gl_use_threads=$enableval], - [case "$host_os" in - dnl Disable multithreading by default on OSF/1, because it interferes - dnl with fork()/exec(): When msgexec is linked with -lpthread, its child - dnl process gets an endless segmentation fault inside execvp(). - osf*) gl_use_threads=no ;; - *) gl_use_threads=yes ;; - esac - ]) - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # For using : - case "$host_os" in - osf*) - # On OSF/1, the compiler needs the flag -D_REENTRANT so that it - # groks . cc also understands the flag -pthread, but - # we don't use it because 1. gcc-2.95 doesn't understand -pthread, - # 2. putting a flag into CPPFLAGS that has an effect on the linker - # causes the AC_TRY_LINK test below to succeed unexpectedly, - # leading to wrong values of LIBTHREAD and LTLIBTHREAD. - CPPFLAGS="$CPPFLAGS -D_REENTRANT" - ;; - esac - # Some systems optimize for single-threaded programs by default, and - # need special flags to disable these optimizations. For example, the - # definition of 'errno' in . - case "$host_os" in - aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; - solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; - esac - fi -]) - -dnl The guts of gl_LOCK. Needs to be expanded only once. - -AC_DEFUN([gl_LOCK_BODY], +AC_DEFUN([gl_LOCK], [ - AC_REQUIRE([gl_LOCK_EARLY_BODY]) - gl_threads_api=none - LIBTHREAD= - LTLIBTHREAD= - LIBMULTITHREAD= - LTLIBMULTITHREAD= - if test "$gl_use_threads" != no; then - dnl Check whether the compiler and linker support weak declarations. - AC_MSG_CHECKING([whether imported symbols can be declared weak]) - gl_have_weak=no - AC_TRY_LINK([extern void xyzzy (); -#pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes]) - AC_MSG_RESULT([$gl_have_weak]) - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that - # it groks . It's added above, in gl_LOCK_EARLY_BODY. - AC_CHECK_HEADER(pthread.h, gl_have_pthread_h=yes, gl_have_pthread_h=no) - if test "$gl_have_pthread_h" = yes; then - # Other possible tests: - # -lpthreads (FSU threads, PCthreads) - # -lgthreads - gl_have_pthread= - # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist - # in libc. IRIX 6.5 has the first one in both libc and libpthread, but - # the second one only in libpthread, and lock.c needs it. - AC_TRY_LINK([#include ], - [pthread_mutex_lock((pthread_mutex_t*)0); - pthread_mutexattr_init((pthread_mutexattr_t*)0);], - [gl_have_pthread=yes]) - # Test for libpthread by looking for pthread_kill. (Not pthread_self, - # since it is defined as a macro on OSF/1.) - if test -n "$gl_have_pthread"; then - # The program links fine without libpthread. But it may actually - # need to link with libpthread in order to create multiple threads. - AC_CHECK_LIB(pthread, pthread_kill, - [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread - # On Solaris and HP-UX, most pthread functions exist also in libc. - # Therefore pthread_in_use() needs to actually try to create a - # thread: pthread_create from libc will fail, whereas - # pthread_create will actually create a thread. - case "$host_os" in - solaris* | hpux*) - AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1, - [Define if the pthread_in_use() detection is hard.]) - esac - ]) - else - # Some library is needed. Try libpthread and libc_r. - AC_CHECK_LIB(pthread, pthread_kill, - [gl_have_pthread=yes - LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) - if test -z "$gl_have_pthread"; then - # For FreeBSD 4. - AC_CHECK_LIB(c_r, pthread_kill, - [gl_have_pthread=yes - LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r - LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) - fi - fi - if test -n "$gl_have_pthread"; then - gl_threads_api=posix - AC_DEFINE([USE_POSIX_THREADS], 1, - [Define if the POSIX multithreading library can be used.]) - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then - AC_DEFINE([USE_POSIX_THREADS_WEAK], 1, - [Define if references to the POSIX multithreading library should be made weak.]) - LIBTHREAD= - LTLIBTHREAD= - fi - fi - # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the - # pthread_rwlock_* functions. - AC_CHECK_TYPE([pthread_rwlock_t], - [AC_DEFINE([HAVE_PTHREAD_RWLOCK], 1, - [Define if the POSIX multithreading library has read/write locks.])], - [], - [#include ]) - # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. - AC_TRY_COMPILE([#include ], - [#if __FreeBSD__ == 4 + AC_REQUIRE([gl_THREADLIB]) + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + AC_CHECK_TYPE([pthread_rwlock_t], + [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], + [Define if the POSIX multithreading library has read/write locks.])], + [], + [#include ]) + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + AC_TRY_COMPILE([#include ], + [#if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif], - [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1, - [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) - fi - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then - gl_have_solaristhread= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lthread" - AC_TRY_LINK([#include -#include ], - [thr_self();], - [gl_have_solaristhread=yes]) - LIBS="$gl_save_LIBS" - if test -n "$gl_have_solaristhread"; then - gl_threads_api=solaris - LIBTHREAD=-lthread - LTLIBTHREAD=-lthread - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" - AC_DEFINE([USE_SOLARIS_THREADS], 1, - [Define if the old Solaris multithreading library can be used.]) - if test $gl_have_weak = yes; then - AC_DEFINE([USE_SOLARIS_THREADS_WEAK], 1, - [Define if references to the old Solaris multithreading library should be made weak.]) - LIBTHREAD= - LTLIBTHREAD= - fi - fi - fi - fi - if test "$gl_use_threads" = pth; then - gl_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_LINKFLAGS(pth) - gl_have_pth= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lpth" - AC_TRY_LINK([#include ], [pth_self();], gl_have_pth=yes) - LIBS="$gl_save_LIBS" - if test -n "$gl_have_pth"; then - gl_threads_api=pth - LIBTHREAD="$LIBPTH" - LTLIBTHREAD="$LTLIBPTH" - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" - AC_DEFINE([USE_PTH_THREADS], 1, - [Define if the GNU Pth multithreading library can be used.]) - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then - AC_DEFINE([USE_PTH_THREADS_WEAK], 1, - [Define if references to the GNU Pth multithreading library should be made weak.]) - LIBTHREAD= - LTLIBTHREAD= - fi - fi - else - CPPFLAGS="$gl_save_CPPFLAGS" - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then - if { case "$host_os" in - mingw*) true;; - *) false;; - esac - }; then - gl_threads_api=win32 - AC_DEFINE([USE_WIN32_THREADS], 1, - [Define if the Win32 multithreading API can be used.]) - fi - fi - fi + [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1], + [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) fi - AC_MSG_CHECKING([for multithread API to use]) - AC_MSG_RESULT([$gl_threads_api]) - AC_SUBST(LIBTHREAD) - AC_SUBST(LTLIBTHREAD) - AC_SUBST(LIBMULTITHREAD) - AC_SUBST(LTLIBMULTITHREAD) -]) - -AC_DEFUN([gl_LOCK], -[ - AC_REQUIRE([gl_LOCK_EARLY]) - AC_REQUIRE([gl_LOCK_BODY]) gl_PREREQ_LOCK ]) @@ -261,56 +35,3 @@ AC_DEFUN([gl_PREREQ_LOCK], [ AC_REQUIRE([AC_C_INLINE]) ]) - -dnl Survey of platforms: -dnl -dnl Platform Available Compiler Supports test-lock -dnl flavours option weak result -dnl --------------- --------- --------- -------- --------- -dnl Linux 2.4/glibc posix -lpthread Y OK -dnl -dnl GNU Hurd/glibc posix -dnl -dnl FreeBSD 5.3 posix -lc_r Y -dnl posix -lkse ? Y -dnl posix -lpthread ? Y -dnl posix -lthr Y -dnl -dnl FreeBSD 5.2 posix -lc_r Y -dnl posix -lkse Y -dnl posix -lthr Y -dnl -dnl FreeBSD 4.0,4.10 posix -lc_r Y OK -dnl -dnl NetBSD 1.6 -- -dnl -dnl OpenBSD 3.4 posix -lpthread Y OK -dnl -dnl MacOS X 10.[123] posix -lpthread Y OK -dnl -dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK -dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK -dnl -dnl HP-UX 11 posix -lpthread N (cc) OK -dnl Y (gcc) -dnl -dnl IRIX 6.5 posix -lpthread Y 0.5 -dnl -dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK -dnl -dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK -dnl -lpthread (gcc) Y -dnl -dnl Cygwin posix -lpthread Y OK -dnl -dnl Any of the above pth -lpth 0.0 -dnl -dnl Mingw win32 N OK -dnl -dnl BeOS 5 -- -dnl -dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is -dnl turned off: -dnl OK if all three tests terminate OK, -dnl 0.5 if the first test terminates OK but the second one loops endlessly, -dnl 0.0 if the first test already loops endlessly. diff -Nru gettext-0.17/gettext-runtime/m4/longlong.m4 gettext-0.18.1.1/gettext-runtime/m4/longlong.m4 --- gettext-0.17/gettext-runtime/m4/longlong.m4 2007-10-31 12:01:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/longlong.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# longlong.m4 serial 13 -dnl Copyright (C) 1999-2007 Free Software Foundation, Inc. +# longlong.m4 serial 14 +dnl Copyright (C) 1999-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -20,33 +20,33 @@ [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. - dnl If cross compiling, assume the bug isn't important, since - dnl nobody cross compiles for this platform as far as we know. - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[@%:@include - @%:@ifndef LLONG_MAX - @%:@ define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - @%:@ define LLONG_MAX (HALF - 1 + HALF) - @%:@endif]], - [[long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0;]])], - [ac_cv_type_long_long_int=yes], - [ac_cv_type_long_long_int=no], - [ac_cv_type_long_long_int=yes])], + dnl If cross compiling, assume the bug isn't important, since + dnl nobody cross compiles for this platform as far as we know. + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include + @%:@ifndef LLONG_MAX + @%:@ define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + @%:@ define LLONG_MAX (HALF - 1 + HALF) + @%:@endif]], + [[long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0;]])], + [ac_cv_type_long_long_int=yes], + [ac_cv_type_long_long_int=no], + [ac_cv_type_long_long_int=yes])], [ac_cv_type_long_long_int=no])]) if test $ac_cv_type_long_long_int = yes; then - AC_DEFINE([HAVE_LONG_LONG_INT], 1, + AC_DEFINE([HAVE_LONG_LONG_INT], [1], [Define to 1 if the system has the type `long long int'.]) fi ]) @@ -69,7 +69,7 @@ [ac_cv_type_unsigned_long_long_int=yes], [ac_cv_type_unsigned_long_long_int=no])]) if test $ac_cv_type_unsigned_long_long_int = yes; then - AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, + AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], [Define to 1 if the system has the type `unsigned long long int'.]) fi ]) @@ -82,28 +82,25 @@ AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [ AC_LANG_PROGRAM( - [[/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif + [[/* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; + ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; + ? 1 : -1)]; int i = 63;]], [[/* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull));]]) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull));]]) ]) diff -Nru gettext-0.17/gettext-runtime/m4/Makefile.am gettext-0.18.1.1/gettext-runtime/m4/Makefile.am --- gettext-0.17/gettext-runtime/m4/Makefile.am 2007-10-31 12:34:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -5,6 +5,7 @@ EXTRA_DIST = README \ ansi-c++.m4 \ codeset.m4 \ +fcntl-o.m4 \ gettext.m4 \ glibc2.m4 \ glibc21.m4 \ @@ -25,6 +26,7 @@ progtest.m4 \ size_max.m4 \ stdint_h.m4 \ +threadlib.m4 \ uintmax_t.m4 \ visibility.m4 \ wchar_t.m4 \ diff -Nru gettext-0.17/gettext-runtime/m4/Makefile.in gettext-0.18.1.1/gettext-runtime/m4/Makefile.in --- gettext-0.17/gettext-runtime/m4/Makefile.in 2007-11-06 23:34:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/Makefile.in 2010-06-06 20:11:38.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,12 +37,18 @@ DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -51,44 +59,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -99,14 +128,22 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -114,8 +151,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -142,22 +182,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -165,117 +210,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -286,10 +555,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -303,7 +574,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -316,59 +594,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -383,8 +785,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -404,6 +805,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -417,6 +821,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -430,6 +835,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @@ -438,6 +844,7 @@ EXTRA_DIST = README \ ansi-c++.m4 \ codeset.m4 \ +fcntl-o.m4 \ gettext.m4 \ glibc2.m4 \ glibc21.m4 \ @@ -458,6 +865,7 @@ progtest.m4 \ size_max.m4 \ stdint_h.m4 \ +threadlib.m4 \ uintmax_t.m4 \ visibility.m4 \ wchar_t.m4 \ @@ -471,14 +879,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu m4/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -496,6 +904,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -525,13 +934,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -559,6 +972,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -577,6 +991,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -585,18 +1001,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -630,6 +1056,7 @@ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/m4/nls.m4 gettext-0.18.1.1/gettext-runtime/m4/nls.m4 --- gettext-0.17/gettext-runtime/m4/nls.m4 2006-04-22 14:16:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/nls.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,6 @@ -# nls.m4 serial 3 (gettext-0.15) -dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. +# nls.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -17,15 +18,15 @@ dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. -AC_PREREQ(2.50) +AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS - AC_ARG_ENABLE(nls, + AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT($USE_NLS) - AC_SUBST(USE_NLS) + AC_MSG_RESULT([$USE_NLS]) + AC_SUBST([USE_NLS]) ]) diff -Nru gettext-0.17/gettext-runtime/m4/po.m4 gettext-0.18.1.1/gettext-runtime/m4/po.m4 --- gettext-0.17/gettext-runtime/m4/po.m4 2007-10-28 18:29:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/po.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# po.m4 serial 15 (gettext-0.17) -dnl Copyright (C) 1995-2007 Free Software Foundation, Inc. +# po.m4 serial 17 (gettext-0.18) +dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -17,7 +17,7 @@ dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. -AC_PREREQ(2.50) +AC_PREREQ([2.50]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], @@ -29,7 +29,7 @@ dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. - AC_SUBST([GETTEXT_MACRO_VERSION], [0.17]) + AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. @@ -41,7 +41,7 @@ [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl diff -Nru gettext-0.17/gettext-runtime/m4/printf-posix.m4 gettext-0.18.1.1/gettext-runtime/m4/printf-posix.m4 --- gettext-0.17/gettext-runtime/m4/printf-posix.m4 2007-10-28 16:20:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/printf-posix.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# printf-posix.m4 serial 3 (gettext-0.17) -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. +# printf-posix.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 2003, 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -27,17 +27,18 @@ return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ - AC_EGREP_CPP(notposix, [ + AC_EGREP_CPP([notposix], [ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif - ], gt_cv_func_printf_posix="guessing no", - gt_cv_func_printf_posix="guessing yes") + ], + [gt_cv_func_printf_posix="guessing no"], + [gt_cv_func_printf_posix="guessing yes"]) ]) ]) case $gt_cv_func_printf_posix in *yes) - AC_DEFINE(HAVE_POSIX_PRINTF, 1, + AC_DEFINE([HAVE_POSIX_PRINTF], [1], [Define if your printf() function supports format strings with positions.]) ;; esac diff -Nru gettext-0.17/gettext-runtime/m4/progtest.m4 gettext-0.18.1.1/gettext-runtime/m4/progtest.m4 --- gettext-0.17/gettext-runtime/m4/progtest.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/progtest.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# progtest.m4 serial 4 (gettext-0.14.2) -dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. +# progtest.m4 serial 6 (gettext-0.18) +dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -16,7 +16,7 @@ dnl Authors: dnl Ulrich Drepper , 1996. -AC_PREREQ(2.50) +AC_PREREQ([2.50]) # Search path for a program which passes the given test. @@ -55,7 +55,7 @@ # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, +AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. @@ -84,9 +84,9 @@ esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$]$1) + AC_MSG_RESULT([$][$1]) else - AC_MSG_RESULT(no) + AC_MSG_RESULT([no]) fi -AC_SUBST($1)dnl +AC_SUBST([$1])dnl ]) diff -Nru gettext-0.17/gettext-runtime/m4/size_max.m4 gettext-0.18.1.1/gettext-runtime/m4/size_max.m4 --- gettext-0.17/gettext-runtime/m4/size_max.m4 2006-12-12 12:35:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/size_max.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# size_max.m4 serial 6 -dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. +# size_max.m4 serial 9 +dnl Copyright (C) 2003, 2005-2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,10 +8,9 @@ AC_DEFUN([gl_SIZE_MAX], [ - AC_CHECK_HEADERS(stdint.h) + AC_CHECK_HEADERS([stdint.h]) dnl First test whether the system already has SIZE_MAX. - AC_MSG_CHECKING([for SIZE_MAX]) - AC_CACHE_VAL([gl_cv_size_max], [ + AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ gl_cv_size_max= AC_EGREP_CPP([Found it], [ #include @@ -21,16 +20,16 @@ #ifdef SIZE_MAX Found it #endif -], gl_cv_size_max=yes) +], [gl_cv_size_max=yes]) if test -z "$gl_cv_size_max"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include -#include ], size_t_bits_minus_1=) +#include ], [size_t_bits_minus_1=]) AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], - [#include ], fits_in_uint=) + [#include ], [fits_in_uint=]) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type @@ -38,7 +37,7 @@ AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; - ], [], fits_in_uint=0) + ], [], [fits_in_uint=0]) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we @@ -54,11 +53,19 @@ fi fi ]) - AC_MSG_RESULT([$gl_cv_size_max]) if test "$gl_cv_size_max" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi + dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after + dnl . Remember that the #undef in AH_VERBATIM gets replaced with + dnl #define by AC_DEFINE_UNQUOTED. + AH_VERBATIM([SIZE_MAX], +[/* Define as the maximum value of type 'size_t', if the system doesn't define + it. */ +#ifndef SIZE_MAX +# undef SIZE_MAX +#endif]) ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. diff -Nru gettext-0.17/gettext-runtime/m4/stdint_h.m4 gettext-0.18.1.1/gettext-runtime/m4/stdint_h.m4 --- gettext-0.17/gettext-runtime/m4/stdint_h.m4 2006-08-28 13:12:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/stdint_h.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# stdint_h.m4 serial 6 -dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. +# stdint_h.m4 serial 8 +dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,15 +11,15 @@ AC_DEFUN([gl_AC_HEADER_STDINT_H], [ - AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, + AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], - gl_cv_header_stdint_h=yes, - gl_cv_header_stdint_h=no)]) + [gl_cv_header_stdint_h=yes], + [gl_cv_header_stdint_h=no])]) if test $gl_cv_header_stdint_h = yes; then - AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, + AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi diff -Nru gettext-0.17/gettext-runtime/m4/threadlib.m4 gettext-0.18.1.1/gettext-runtime/m4/threadlib.m4 --- gettext-0.17/gettext-runtime/m4/threadlib.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/threadlib.m4 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,347 @@ +# threadlib.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl gl_THREADLIB +dnl ------------ +dnl Tests for a multithreading library to be used. +dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, +dnl USE_PTH_THREADS, USE_WIN32_THREADS +dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use +dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with +dnl libtool). +dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for +dnl programs that really need multithread functionality. The difference +dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak +dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". +dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for +dnl multithread-safe programs. + +AC_DEFUN([gl_THREADLIB_EARLY], +[ + AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) +]) + +dnl The guts of gl_THREADLIB_EARLY. Needs to be expanded only once. + +AC_DEFUN([gl_THREADLIB_EARLY_BODY], +[ + dnl Ordering constraints: This macro modifies CPPFLAGS in a way that + dnl influences the result of the autoconf tests that test for *_unlocked + dnl declarations, on AIX 5 at least. Therefore it must come early. + AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl + AC_BEFORE([$0], [gl_ARGP])dnl + + AC_REQUIRE([AC_CANONICAL_HOST]) + dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. + dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes + dnl AC_GNU_SOURCE. + m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], + [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], + [AC_REQUIRE([AC_GNU_SOURCE])]) + dnl Check for multithreading. + m4_divert_text([DEFAULTS], [gl_use_threads_default=]) + AC_ARG_ENABLE([threads], +AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) +AC_HELP_STRING([--disable-threads], [build without multithread safety]), + [gl_use_threads=$enableval], + [if test -n "$gl_use_threads_default"; then + gl_use_threads="$gl_use_threads_default" + else +changequote(,)dnl + case "$host_os" in + dnl Disable multithreading by default on OSF/1, because it interferes + dnl with fork()/exec(): When msgexec is linked with -lpthread, its + dnl child process gets an endless segmentation fault inside execvp(). + dnl Disable multithreading by default on Cygwin 1.5.x, because it has + dnl bugs that lead to endless loops or crashes. See + dnl . + osf*) gl_use_threads=no ;; + cygwin*) + case `uname -r` in + 1.[0-5].*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ;; + *) gl_use_threads=yes ;; + esac +changequote([,])dnl + fi + ]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # For using : + case "$host_os" in + osf*) + # On OSF/1, the compiler needs the flag -D_REENTRANT so that it + # groks . cc also understands the flag -pthread, but + # we don't use it because 1. gcc-2.95 doesn't understand -pthread, + # 2. putting a flag into CPPFLAGS that has an effect on the linker + # causes the AC_TRY_LINK test below to succeed unexpectedly, + # leading to wrong values of LIBTHREAD and LTLIBTHREAD. + CPPFLAGS="$CPPFLAGS -D_REENTRANT" + ;; + esac + # Some systems optimize for single-threaded programs by default, and + # need special flags to disable these optimizations. For example, the + # definition of 'errno' in . + case "$host_os" in + aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; + solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; + esac + fi +]) + +dnl The guts of gl_THREADLIB. Needs to be expanded only once. + +AC_DEFUN([gl_THREADLIB_BODY], +[ + AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) + gl_threads_api=none + LIBTHREAD= + LTLIBTHREAD= + LIBMULTITHREAD= + LTLIBMULTITHREAD= + if test "$gl_use_threads" != no; then + dnl Check whether the compiler and linker support weak declarations. + AC_CACHE_CHECK([whether imported symbols can be declared weak], + [gl_cv_have_weak], + [gl_cv_have_weak=no + dnl First, test whether the compiler accepts it syntactically. + AC_TRY_LINK([extern void xyzzy (); +#pragma weak xyzzy], [xyzzy();], [gl_cv_have_weak=maybe]) + if test $gl_cv_have_weak = maybe; then + dnl Second, test whether it actually works. On Cygwin 1.7.2, with + dnl gcc 4.3, symbols declared weak always evaluate to the address 0. + AC_TRY_RUN([ +#include +#pragma weak fputs +int main () +{ + return (fputs == NULL); +}], [gl_cv_have_weak=yes], [gl_cv_have_weak=no], + [dnl When cross-compiling, assume that only ELF platforms support + dnl weak symbols. + AC_EGREP_CPP([Extensible Linking Format], + [#ifdef __ELF__ + Extensible Linking Format + #endif + ], + [gl_cv_have_weak="guessing yes"], + [gl_cv_have_weak="guessing no"]) + ]) + fi + ]) + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that + # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. + AC_CHECK_HEADER([pthread.h], + [gl_have_pthread_h=yes], [gl_have_pthread_h=no]) + if test "$gl_have_pthread_h" = yes; then + # Other possible tests: + # -lpthreads (FSU threads, PCthreads) + # -lgthreads + gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. + AC_TRY_LINK([#include ], + [pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0);], + [gl_have_pthread=yes]) + # Test for libpthread by looking for pthread_kill. (Not pthread_self, + # since it is defined as a macro on OSF/1.) + if test -n "$gl_have_pthread"; then + # The program links fine without libpthread. But it may actually + # need to link with libpthread in order to create multiple threads. + AC_CHECK_LIB([pthread], [pthread_kill], + [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + # On Solaris and HP-UX, most pthread functions exist also in libc. + # Therefore pthread_in_use() needs to actually try to create a + # thread: pthread_create from libc will fail, whereas + # pthread_create will actually create a thread. + case "$host_os" in + solaris* | hpux*) + AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1], + [Define if the pthread_in_use() detection is hard.]) + esac + ]) + else + # Some library is needed. Try libpthread and libc_r. + AC_CHECK_LIB([pthread], [pthread_kill], + [gl_have_pthread=yes + LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) + if test -z "$gl_have_pthread"; then + # For FreeBSD 4. + AC_CHECK_LIB([c_r], [pthread_kill], + [gl_have_pthread=yes + LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r + LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) + fi + fi + if test -n "$gl_have_pthread"; then + gl_threads_api=posix + AC_DEFINE([USE_POSIX_THREADS], [1], + [Define if the POSIX multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_POSIX_THREADS_WEAK], [1], + [Define if references to the POSIX multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then + gl_have_solaristhread= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lthread" + AC_TRY_LINK([#include +#include ], + [thr_self();], + [gl_have_solaristhread=yes]) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_solaristhread"; then + gl_threads_api=solaris + LIBTHREAD=-lthread + LTLIBTHREAD=-lthread + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_SOLARIS_THREADS], [1], + [Define if the old Solaris multithreading library can be used.]) + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1], + [Define if references to the old Solaris multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + if test "$gl_use_threads" = pth; then + gl_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_LINKFLAGS([pth]) + gl_have_pth= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lpth" + AC_TRY_LINK([#include ], [pth_self();], [gl_have_pth=yes]) + LIBS="$gl_save_LIBS" + if test -n "$gl_have_pth"; then + gl_threads_api=pth + LIBTHREAD="$LIBPTH" + LTLIBTHREAD="$LTLIBPTH" + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" + AC_DEFINE([USE_PTH_THREADS], [1], + [Define if the GNU Pth multithreading library can be used.]) + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then + AC_DEFINE([USE_PTH_THREADS_WEAK], [1], + [Define if references to the GNU Pth multithreading library should be made weak.]) + LIBTHREAD= + LTLIBTHREAD= + fi + fi + else + CPPFLAGS="$gl_save_CPPFLAGS" + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then + if { case "$host_os" in + mingw*) true;; + *) false;; + esac + }; then + gl_threads_api=win32 + AC_DEFINE([USE_WIN32_THREADS], [1], + [Define if the Win32 multithreading API can be used.]) + fi + fi + fi + fi + AC_MSG_CHECKING([for multithread API to use]) + AC_MSG_RESULT([$gl_threads_api]) + AC_SUBST([LIBTHREAD]) + AC_SUBST([LTLIBTHREAD]) + AC_SUBST([LIBMULTITHREAD]) + AC_SUBST([LTLIBMULTITHREAD]) +]) + +AC_DEFUN([gl_THREADLIB], +[ + AC_REQUIRE([gl_THREADLIB_EARLY]) + AC_REQUIRE([gl_THREADLIB_BODY]) +]) + + +dnl gl_DISABLE_THREADS +dnl ------------------ +dnl Sets the gl_THREADLIB default so that threads are not used by default. +dnl The user can still override it at installation time, by using the +dnl configure option '--enable-threads'. + +AC_DEFUN([gl_DISABLE_THREADS], [ + m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no]) +]) + + +dnl Survey of platforms: +dnl +dnl Platform Available Compiler Supports test-lock +dnl flavours option weak result +dnl --------------- --------- --------- -------- --------- +dnl Linux 2.4/glibc posix -lpthread Y OK +dnl +dnl GNU Hurd/glibc posix +dnl +dnl FreeBSD 5.3 posix -lc_r Y +dnl posix -lkse ? Y +dnl posix -lpthread ? Y +dnl posix -lthr Y +dnl +dnl FreeBSD 5.2 posix -lc_r Y +dnl posix -lkse Y +dnl posix -lthr Y +dnl +dnl FreeBSD 4.0,4.10 posix -lc_r Y OK +dnl +dnl NetBSD 1.6 -- +dnl +dnl OpenBSD 3.4 posix -lpthread Y OK +dnl +dnl MacOS X 10.[123] posix -lpthread Y OK +dnl +dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK +dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK +dnl +dnl HP-UX 11 posix -lpthread N (cc) OK +dnl Y (gcc) +dnl +dnl IRIX 6.5 posix -lpthread Y 0.5 +dnl +dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK +dnl +dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK +dnl -lpthread (gcc) Y +dnl +dnl Cygwin posix -lpthread Y OK +dnl +dnl Any of the above pth -lpth 0.0 +dnl +dnl Mingw win32 N OK +dnl +dnl BeOS 5 -- +dnl +dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is +dnl turned off: +dnl OK if all three tests terminate OK, +dnl 0.5 if the first test terminates OK but the second one loops endlessly, +dnl 0.0 if the first test already loops endlessly. diff -Nru gettext-0.17/gettext-runtime/m4/uintmax_t.m4 gettext-0.18.1.1/gettext-runtime/m4/uintmax_t.m4 --- gettext-0.17/gettext-runtime/m4/uintmax_t.m4 2007-10-31 11:59:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/uintmax_t.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,12 +1,12 @@ -# uintmax_t.m4 serial 10 -dnl Copyright (C) 1997-2004, 2007 Free Software Foundation, Inc. +# uintmax_t.m4 serial 12 +dnl Copyright (C) 1997-2004, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. -AC_PREREQ(2.13) +AC_PREREQ([2.13]) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . @@ -20,11 +20,11 @@ test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' - AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, + AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], [Define to unsigned long or unsigned long long if and don't define.]) else - AC_DEFINE(HAVE_UINTMAX_T, 1, + AC_DEFINE([HAVE_UINTMAX_T], [1], [Define if you have the 'uintmax_t' type in or .]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/visibility.m4 gettext-0.18.1.1/gettext-runtime/m4/visibility.m4 --- gettext-0.17/gettext-runtime/m4/visibility.m4 2005-07-27 11:23:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/visibility.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# visibility.m4 serial 1 (gettext-0.15) -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# visibility.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,18 +26,40 @@ CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then + dnl First, check whether -Werror can be added to the command line, or + dnl whether it leads to an error because of some other option that the + dnl user has put into $CC $CFLAGS $CPPFLAGS. + AC_MSG_CHECKING([whether the -Werror option is usable]) + AC_CACHE_VAL([gl_cv_cc_vis_werror], [ + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Werror" + AC_TRY_COMPILE([], [], + [gl_cv_cc_vis_werror=yes], + [gl_cv_cc_vis_werror=no]) + CFLAGS="$gl_save_CFLAGS"]) + AC_MSG_RESULT([$gl_cv_cc_vis_werror]) + dnl Now check whether visibility declarations are supported. AC_MSG_CHECKING([for simple visibility declarations]) - AC_CACHE_VAL(gl_cv_cc_visibility, [ + AC_CACHE_VAL([gl_cv_cc_visibility], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" + dnl We use the option -Werror and a function dummyfunc, because on some + dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning + dnl "visibility attribute not supported in this configuration; ignored" + dnl at the first function definition in every compilation unit, and we + dnl don't want to use the option in this case. + if test $gl_cv_cc_vis_werror = yes; then + CFLAGS="$CFLAGS -Werror" + fi AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); - extern __attribute__((__visibility__("default"))) int exportedfunc (void);], + extern __attribute__((__visibility__("default"))) int exportedfunc (void); + void dummyfunc (void) {}], [], - gl_cv_cc_visibility=yes, - gl_cv_cc_visibility=no) + [gl_cv_cc_visibility=yes], + [gl_cv_cc_visibility=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then diff -Nru gettext-0.17/gettext-runtime/m4/wchar_t.m4 gettext-0.18.1.1/gettext-runtime/m4/wchar_t.m4 --- gettext-0.17/gettext-runtime/m4/wchar_t.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/wchar_t.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# wchar_t.m4 serial 1 (gettext-0.12) -dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +# wchar_t.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2002-2003, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,11 +10,11 @@ AC_DEFUN([gt_TYPE_WCHAR_T], [ - AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, + AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , - gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) + [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])]) if test $gt_cv_c_wchar_t = yes; then - AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) + AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/wint_t.m4 gettext-0.18.1.1/gettext-runtime/m4/wint_t.m4 --- gettext-0.17/gettext-runtime/m4/wint_t.m4 2007-10-28 16:20:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/wint_t.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# wint_t.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. +# wint_t.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,7 +10,7 @@ AC_DEFUN([gt_TYPE_WINT_T], [ - AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, + AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], [AC_TRY_COMPILE([ /* Tru64 with Desktop Toolkit C has a bug: must be included before . @@ -21,8 +21,8 @@ #include #include wint_t foo = (wchar_t)'\0';], , - gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) + [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])]) if test $gt_cv_c_wint_t = yes; then - AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) + AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) fi ]) diff -Nru gettext-0.17/gettext-runtime/m4/xsize.m4 gettext-0.18.1.1/gettext-runtime/m4/xsize.m4 --- gettext-0.17/gettext-runtime/m4/xsize.m4 2005-01-19 14:12:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/m4/xsize.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# xsize.m4 serial 3 -dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. +# xsize.m4 serial 4 +dnl Copyright (C) 2003-2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,5 +9,5 @@ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) - AC_CHECK_HEADERS(stdint.h) + AC_CHECK_HEADERS([stdint.h]) ]) diff -Nru gettext-0.17/gettext-runtime/Makefile.am gettext-0.18.1.1/gettext-runtime/Makefile.am --- gettext-0.17/gettext-runtime/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-runtime directory of GNU gettext -## Copyright (C) 1995-1999, 2000-2006 Free Software Foundation, Inc. +## Copyright (C) 1995-1999, 2000-2006, 2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies ACLOCAL = ../build-aux/fixaclocal @ACLOCAL@ -ACLOCAL_AMFLAGS = -I m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 +ACLOCAL_AMFLAGS = -I m4 -I ../m4 -I gnulib-m4 MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@ diff -Nru gettext-0.17/gettext-runtime/Makefile.in gettext-0.18.1.1/gettext-runtime/Makefile.in --- gettext-0.17/gettext-runtime/Makefile.in 2007-11-06 23:34:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/Makefile.in 2010-06-06 20:11:38.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,8 +17,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -55,12 +57,18 @@ ../build-aux/ylwrap ABOUT-NLS AUTHORS COPYING ChangeLog \ INSTALL NEWS ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -71,44 +79,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -119,9 +148,10 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ @@ -129,8 +159,15 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = csharpcomp.sh javacomp.sh intl/Makefile +CONFIG_CLEAN_VPATH_FILES = depcomp = am__depfiles_maybe = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -145,12 +182,29 @@ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(gettextsrcdir)" -gettextsrcDATA_INSTALL = $(INSTALL_DATA) DATA = $(gettextsrc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = doc intl intl-java intl-csharp gnulib-lib libasprintf \ @@ -159,9 +213,34 @@ distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print @@ -170,8 +249,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -198,22 +280,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -221,117 +308,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -342,10 +653,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -359,7 +672,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -372,59 +692,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -439,8 +883,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -460,6 +903,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -473,6 +919,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -486,10 +933,11 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -ACLOCAL_AMFLAGS = -I m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 +ACLOCAL_AMFLAGS = -I m4 -I ../m4 -I gnulib-m4 @ENABLE_LIBASPRINTF_FALSE@SUBDIR_libasprintf = # The list of subdirectories depends on whether --disable-libasprintf was @@ -515,15 +963,15 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -539,9 +987,10 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ @@ -553,7 +1002,7 @@ @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ @@ -573,24 +1022,27 @@ -rm -rf .libs _libs distclean-libtool: - -rm -f libtool + -rm -f libtool config.lt install-gettextsrcDATA: $(gettextsrc_DATA) @$(NORMAL_INSTALL) test -z "$(gettextsrcdir)" || $(MKDIR_P) "$(DESTDIR)$(gettextsrcdir)" - @list='$(gettextsrc_DATA)'; for p in $$list; do \ + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(gettextsrcDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - $(gettextsrcDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gettextsrcdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gettextsrcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gettextsrcdir)" || exit $$?; \ done uninstall-gettextsrcDATA: @$(NORMAL_UNINSTALL) - @list='$(gettextsrc_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - rm -f "$(DESTDIR)$(gettextsrcdir)/$$f"; \ - done + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(gettextsrcdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(gettextsrcdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -599,7 +1051,7 @@ # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -616,7 +1068,7 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ @@ -624,7 +1076,7 @@ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -650,16 +1102,16 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) @@ -667,14 +1119,14 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -686,46 +1138,50 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -741,38 +1197,55 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -781,6 +1254,14 @@ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -804,13 +1285,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -818,9 +1303,11 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ --with-included-gettext \ $(DISTCHECK_CONFIGURE_FLAGS) \ @@ -843,13 +1330,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -894,6 +1383,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -914,6 +1404,8 @@ html: html-recursive +html-am: + info: info-recursive info-am: @@ -922,18 +1414,28 @@ install-dvi: install-dvi-recursive +install-dvi-am: + install-exec-am: install-html: install-html-recursive +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: install-pdf: install-pdf-recursive +install-pdf-am: + install-ps: install-ps-recursive +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -956,18 +1458,18 @@ uninstall-am: uninstall-gettextsrcDATA -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ + ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am all-local am--refresh check check-am clean \ clean-generic clean-libtool ctags ctags-recursive dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-generic distclean-hdr \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am \ + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ install-gettextsrcDATA install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ @@ -984,6 +1486,7 @@ rm -f $(srcdir)/ABOUT-NLS \ && $(MAKEINFO) --output=$(srcdir)/ABOUT-NLS --no-header \ -I $(srcdir)/doc --no-validate nls.texi + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/man/bindtextdomain.3 gettext-0.18.1.1/gettext-runtime/man/bindtextdomain.3 --- gettext-0.17/gettext-runtime/man/bindtextdomain.3 2007-11-07 00:19:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/bindtextdomain.3 2010-06-06 18:36:26.000000000 +0000 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH BINDTEXTDOMAIN 3 "May 2001" "GNU gettext 0.17" +.TH BINDTEXTDOMAIN 3 "May 2001" "GNU gettext 0.18.1" .SH NAME bindtextdomain \- set directory containing message catalogs .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/bindtextdomain.3.html gettext-0.18.1.1/gettext-runtime/man/bindtextdomain.3.html --- gettext-0.17/gettext-runtime/man/bindtextdomain.3.html 2003-02-17 21:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/bindtextdomain.3.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,137 +17,144 @@ SEE ALSO

-

NAME

+ -
-bindtextdomain - set directory containing message catalogs
+ + +

bindtextdomain − set directory containing message +catalogs

+ +

SYNOPSIS

- + - +
+
#include <libintl.h>
 
 char * bindtextdomain (const char * domainname, const char * dirname);
-
+ + +

DESCRIPTION

+ -
-The bindtextdomain function sets the base directory -of the hierarchy containing message catalogs for a given -message domain.
- - - - +
-A message domain is a set of translatable msgid + +

The bindtextdomain function sets the base +directory of the hierarchy containing message catalogs for a +given message domain.

+ +

A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The need for calling bindtextdomain arises because packages are not always installed with the same prefix as the <libintl.h> header and the -libc/libintl libraries.

- - - -
-Message catalogs will be expected at the pathnames +libc/libintl libraries.

+ +

Message catalogs will be expected at the pathnames dirname/locale/category/domainname.mo, where locale is a locale name and category is -a locale facet such as LC_MESSAGES.

- - - -
-domainname must be a non-empty string.
- - - -
-If dirname is not NULL, the base directory for +a locale facet such as LC_MESSAGES.

+ +

domainname must be a non-empty string.

+ +

If dirname is not NULL, the base directory for message catalogs belonging to domain domainname is set to dirname. The function makes copies of the argument strings as needed. If the program wishes to call the chdir function, it is important that dirname be an absolute pathname; otherwise it cannot -be guaranteed that the message catalogs will be -found.

- - - -
-If dirname is NULL, the function returns the +be guaranteed that the message catalogs will be found.

+ +

If dirname is NULL, the function returns the previously set base directory for domain -domainname.

+domainname.

+ +

RETURN VALUE

- + - +
-If successful, the bindtextdomain function returns + +

If successful, the bindtextdomain function returns the current base directory for domain domainname, after possibly changing it. The resulting string is valid until the next bindtextdomain call for the same domainname and must not be modified or freed. If a memory allocation failure occurs, it sets errno to -ENOMEM and returns NULL.

+ENOMEM and returns NULL.

+ +

ERRORS

- + -
-The following error can occur, among others:
- + + +

The following error can occur, among others:

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
-ENOMEM
+ + - - -
-Not enough memory available.
+

ENOMEM

+ + + + +

Not enough memory available.

+ + + +

BUGS

- + - +
-The return type ought to be const char *, but is + +

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI -C.

+C.

+ +

SEE ALSO

- + -
-gettext(3), dgettext(3), dcgettext(3), -ngettext(3), dngettext(3), -dcngettext(3), textdomain(3), -realpath(3)
+ + +

gettext(3), dgettext(3), +dcgettext(3), ngettext(3), +dngettext(3), dcngettext(3), +textdomain(3), realpath(3)

+ +
diff -Nru gettext-0.17/gettext-runtime/man/bind_textdomain_codeset.3 gettext-0.18.1.1/gettext-runtime/man/bind_textdomain_codeset.3 --- gettext-0.17/gettext-runtime/man/bind_textdomain_codeset.3 2007-11-07 00:19:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/bind_textdomain_codeset.3 2010-06-06 18:36:26.000000000 +0000 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext 0.17" +.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext 0.18.1" .SH NAME bind_textdomain_codeset \- set encoding of message translations .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/bind_textdomain_codeset.3.html gettext-0.18.1.1/gettext-runtime/man/bind_textdomain_codeset.3.html --- gettext-0.17/gettext-runtime/man/bind_textdomain_codeset.3.html 2003-02-17 21:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/bind_textdomain_codeset.3.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,138 +17,149 @@ SEE ALSO

-

NAME

+ -
-bind_textdomain_codeset - set encoding of message translations
+ + +

bind_textdomain_codeset − set encoding of message +translations

+ +

SYNOPSIS

- + - +
+
#include <libintl.h>
 
 char * bind_textdomain_codeset (const char * domainname,
                                 const char * codeset);
-
+ + +

DESCRIPTION

+ -
-The bind_textdomain_codeset function sets the output -codeset for message catalogs for domain -domainname.
- - - - +
-A message domain is a set of translatable msgid + +

The bind_textdomain_codeset function sets the +output codeset for message catalogs for domain +domainname.

+ +

A message domain is a set of translatable msgid messages. Usually, every software package has its own -message domain.

- - - -
-By default, the gettext family of functions returns -translated messages in the locale's character encoding, -which can be retrieved as nl_langinfo(CODESET). The -need for calling bind_textdomain_codeset arises for -programs which store strings in a locale independent way -(e.g. UTF-8) and want to avoid an extra character set -conversion on the returned translated messages.
- - - -
-domainname must be a non-empty string.
- - - -
-If codeset is not NULL, it must be a valid encoding -name which can be used for the iconv_open function. -The bind_textdomain_codeset function sets the output -codeset for message catalogs belonging to domain +message domain.

+ +

By default, the gettext family of functions +returns translated messages in the locale’s character +encoding, which can be retrieved as +nl_langinfo(CODESET). The need for calling +bind_textdomain_codeset arises for programs which +store strings in a locale independent way (e.g. UTF-8) and +want to avoid an extra character set conversion on the +returned translated messages.

+ +

domainname must be a non-empty string.

+ +

If codeset is not NULL, it must be a valid +encoding name which can be used for the iconv_open +function. The bind_textdomain_codeset function sets +the output codeset for message catalogs belonging to domain domainname to codeset. The function makes -copies of the argument strings as needed.

- - - -
-If codeset is NULL, the function returns the +copies of the argument strings as needed.

+ +

If codeset is NULL, the function returns the previously set codeset for domain domainname. The -default is NULL, denoting the locale's character -encoding.

+default is NULL, denoting the locale’s character +encoding.

+ +

RETURN VALUE

- + - +
-If successful, the bind_textdomain_codeset function -returns the current codeset for domain domainname, -after possibly changing it. The resulting string is valid -until the next bind_textdomain_codeset call for the -same domainname and must not be modified or freed. If -a memory allocation failure occurs, it sets errno to + +

If successful, the bind_textdomain_codeset +function returns the current codeset for domain +domainname, after possibly changing it. The resulting +string is valid until the next +bind_textdomain_codeset call for the same +domainname and must not be modified or freed. If a +memory allocation failure occurs, it sets errno to ENOMEM and returns NULL. If no codeset has been set -for domain domainname, it returns NULL.

+for domain domainname, it returns NULL.

+ +

ERRORS

- + -
-The following error can occur, among others:
- + + +

The following error can occur, among others:

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
-ENOMEM
+ + - - -
-Not enough memory available.
+

ENOMEM

+ + + + +

Not enough memory available.

+ + + +

BUGS

- + - +
-The return type ought to be const char *, but is + +

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI -C.

+C.

+ +

SEE ALSO

- + -
-gettext(3), dgettext(3), dcgettext(3), -ngettext(3), dngettext(3), -dcngettext(3), textdomain(3), -nl_langinfo(3), iconv_open(3)
+ + +

gettext(3), dgettext(3), +dcgettext(3), ngettext(3), +dngettext(3), dcngettext(3), +textdomain(3), nl_langinfo(3), +iconv_open(3)

+ +
diff -Nru gettext-0.17/gettext-runtime/man/ChangeLog gettext-0.18.1.1/gettext-runtime/man/ChangeLog --- gettext-0.17/gettext-runtime/man/ChangeLog 2007-11-06 23:27:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,19 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2009-05-21 Bruno Haible + + Fix installation name of manual pages when --program-prefix is used. + * Makefile.am (AUTOMAKE_OPTIONS): Add 1.11. + (man_MANS): Remove manual pages for functions. + (notrans_man_MANS): New variable. + Reported at . + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/man/envsubst.1 gettext-0.18.1.1/gettext-runtime/man/envsubst.1 --- gettext-0.17/gettext-runtime/man/envsubst.1 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/envsubst.1 2010-06-06 18:36:26.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH ENVSUBST "1" "November 2007" "GNU gettext-runtime 0.17" GNU +.TH ENVSUBST "1" "June 2010" "GNU gettext-runtime 0.18.1" GNU .SH NAME envsubst \- substitutes environment variables in shell format strings .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/envsubst.1.html gettext-0.18.1.1/gettext-runtime/man/envsubst.1.html --- gettext-0.17/gettext-runtime/man/envsubst.1.html 2007-11-07 00:19:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/envsubst.1.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,153 +17,197 @@ SEE ALSO

-

NAME

+ -
-envsubst - substitutes environment variables in shell format strings
+ + +

envsubst − substitutes environment variables in +shell format strings

+ +

SYNOPSIS

- + -
-envsubst [OPTION] -[SHELL-FORMAT]
+ + +

envsubst [OPTION] [SHELL-FORMAT]

+ +

DESCRIPTION

- + -
-Substitutes the values of environment -variables.
- + + +

Substitutes the values of environment variables.

+ + + -
-Operation mode:
- + + +

Operation mode:

+ + -
--v, --variables
- + + +

−v, −−variables

+ + -
-output the variables occurring in SHELL-FORMAT
- + + +

output the variables occurring in SHELL-FORMAT

+ + + -
-Informative output:
- + + +

Informative output:

+ + -
--h, --help
- + + +

−h, −−help

+ + -
-display this help and exit
- + + +

display this help and exit

+ + + -
--V, --version
- + + +

−V, −−version

+ + -
-output version information and exit
- + + +

output version information and exit

+ + + - +
-In normal operation mode, standard input is copied to + +

In normal operation mode, standard input is copied to standard output, with references to environment variables of the form $VARIABLE or ${VARIABLE} being replaced with the corresponding values. If a SHELL-FORMAT is given, only those environment variables that are referenced in SHELL-FORMAT are substituted; otherwise all environment variables -references occurring in standard input are -substituted.

- - - -
-When --variables is used, standard input is ignored, -and the output consists of the environment variables that -are referenced in SHELL-FORMAT, one per line.
+references occurring in standard input are substituted.

+ +

When −−variables is used, standard +input is ignored, and the output consists of the environment +variables that are referenced in SHELL-FORMAT, one per +line.

+ +

AUTHOR

- + -
-Written by Bruno Haible.
+ + +

Written by Bruno Haible.

+ +

REPORTING BUGS

- + -
-Report bugs to <bug-gnu-gettext@gnu.org>.
+ + +

Report bugs to <bug-gnu-gettext@gnu.org>.

+ +

COPYRIGHT

- + - +
-Copyright 2003-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

Copyright © 2003-2007 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

+permitted by law.

+ +

SEE ALSO

- + - +
-The full documentation for envsubst is maintained as -a Texinfo manual. If the info and envsubst + +

The full documentation for envsubst is maintained +as a Texinfo manual. If the info and envsubst programs are properly installed at your site, the -command

- +command

+ + + -
-info envsubst
- + + +

info envsubst

+ + + -
-should give you access to the complete manual.
+ + +

should give you access to the complete manual.

+ +
diff -Nru gettext-0.17/gettext-runtime/man/gettext.1.html.in gettext-0.18.1.1/gettext-runtime/man/gettext.1.html.in --- gettext-0.17/gettext-runtime/man/gettext.1.html.in 2007-11-07 00:19:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/gettext.1.html.in 2010-06-06 18:36:26.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,193 +17,250 @@ SEE ALSO

-

NAME

+ -
-gettext - translate message
+ + +

gettext − translate message

+ +

SYNOPSIS

- + - +
-gettext [OPTION] [[TEXTDOMAIN] + +

gettext [OPTION] [[TEXTDOMAIN] MSGID]
-gettext
[OPTION] -s -[MSGID]...

+gettext [OPTION] -s [MSGID]...

+ +

DESCRIPTION

- + -
-The gettext program translates a natural language -message into the user's language, by looking up the -translation in a message catalog.
- + + +

The gettext program translates a natural language +message into the user’s language, by looking up the +translation in a message catalog.

+ +

Display native language translation of a textual +message.

+ + + -
-Display native language translation of a textual -message.
- + + +

−d, +−−domain=TEXTDOMAIN

+ + -
--d, --domain=TEXTDOMAIN
- + + +

retrieve translated messages from TEXTDOMAIN

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
-retrieve translated messages from TEXTDOMAIN
+ + - - -
--e
+

−e

+ + + - - -
-enable expansion of some escape sequences
- - +

enable expansion of some escape sequences

+ + -
+
--E
+ + - - -
-(ignored for compatibility)
+

−E

+ + + +

(ignored for compatibility)

+ + + + + -
--h, --help
- + + +

−h, −−help

+ + -
-display this help and exit
- + + +

display this help and exit

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
--n
+ + - - -
-suppress trailing newline
+

−n

+ + + +

suppress trailing newline

+ + + + + -
--V, --version
- + + +

−V, −−version

+ + -
-display version information and exit
- + + +

display version information and exit

+ + + -
-[TEXTDOMAIN] MSGID
- + + +

[TEXTDOMAIN] MSGID

+ + -
-retrieve translated message corresponding to MSGID from -TEXTDOMAIN
- + + +

retrieve translated message corresponding to MSGID from +TEXTDOMAIN

+ + + - +
-If the TEXTDOMAIN parameter is not given, the domain is + +

If the TEXTDOMAIN parameter is not given, the domain is determined from the environment variable TEXTDOMAIN. If the message catalog is not found in the regular directory, another location can be specified with the environment -variable TEXTDOMAINDIR. When used with the -s option -the program behaves like the `echo' command. But it does not -simply copy its arguments to stdout. Instead those messages -found in the selected catalog are translated. Standard -search directory: @localedir@

+variable TEXTDOMAINDIR. When used with the −s +option the program behaves like the ‘echo’ +command. But it does not simply copy its arguments to +stdout. Instead those messages found in the selected catalog +are translated. Standard search directory: @localedir@

+ +

AUTHOR

- + -
-Written by Ulrich Drepper.
+ + +

Written by Ulrich Drepper.

+ +

REPORTING BUGS

- + -
-Report bugs to <bug-gnu-gettext@gnu.org>.
+ + +

Report bugs to <bug-gnu-gettext@gnu.org>.

+ +

COPYRIGHT

- + - +
-Copyright 1995-1997, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

Copyright © 1995-1997, 2000-2007 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

+permitted by law.

+ +

SEE ALSO

- + - +
-The full documentation for gettext is maintained as a -Texinfo manual. If the info and gettext + +

The full documentation for gettext is maintained +as a Texinfo manual. If the info and gettext programs are properly installed at your site, the -command

- +command

+ + + -
-info gettext
- + + +

info gettext

+ + + -
-should give you access to the complete manual.
+ + +

should give you access to the complete manual.

+ +
diff -Nru gettext-0.17/gettext-runtime/man/gettext.1.in gettext-0.18.1.1/gettext-runtime/man/gettext.1.in --- gettext-0.17/gettext-runtime/man/gettext.1.in 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/gettext.1.in 2010-06-06 18:36:26.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH GETTEXT "1" "November 2007" "GNU gettext-runtime 0.17" GNU +.TH GETTEXT "1" "June 2010" "GNU gettext-runtime 0.18.1" GNU .SH NAME gettext \- translate message .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/gettext.3 gettext-0.18.1.1/gettext-runtime/man/gettext.3 --- gettext-0.17/gettext-runtime/man/gettext.3 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/gettext.3 2010-06-06 18:36:26.000000000 +0000 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH GETTEXT 3 "May 2001" "GNU gettext 0.17" +.TH GETTEXT 3 "May 2001" "GNU gettext 0.18.1" .SH NAME gettext, dgettext, dcgettext \- translate message .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/gettext.3.html gettext-0.18.1.1/gettext-runtime/man/gettext.3.html --- gettext-0.17/gettext-runtime/man/gettext.3.html 2003-02-17 21:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/gettext.3.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,58 +17,58 @@ SEE ALSO

-

NAME

+ -
-gettext, dgettext, dcgettext - translate message
+ + +

gettext, dgettext, dcgettext − translate +message

+ +

SYNOPSIS

- + - +
+
#include <libintl.h>
 
 char * gettext (const char * msgid);
 char * dgettext (const char * domainname, const char * msgid);
 char * dcgettext (const char * domainname, const char * msgid,
                   int category);
-
+ + +

DESCRIPTION

+ -
-The gettext, dgettext and dcgettext -functions attempt to translate a text string into the user's -native language, by looking up the translation in a message -catalog.
- - - - +
-The msgid argument identifies the message to be + +

The gettext, dgettext and dcgettext +functions attempt to translate a text string into the +user’s native language, by looking up the translation +in a message catalog.

+ +

The msgid argument identifies the message to be translated. By convention, it is the English version of the message, with non-ASCII characters replaced by ASCII approximations. This choice allows the translators to work with message catalogs, called PO files, that contain both the English and the translated versions of each message, and -can be installed using the msgfmt -utility.

- - - -
-A message domain is a set of translatable msgid +can be installed using the msgfmt utility.

+ +

A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The domain name is used to determine the message catalog where the translation is looked up; it must @@ -76,13 +77,9 @@ the dgettext and dcgettext functions, it is passed as the domainname argument; if this argument is NULL, the domain name specified through a preceding -textdomain call is used instead.

- - - -
-Translation lookup operates in the context of the current +textdomain call is used instead.

+ +

Translation lookup operates in the context of the current locale. For the gettext and dgettext functions, the LC_MESSAGES locale facet is used. It is determined by a preceding call to the setlocale @@ -96,15 +93,12 @@ <locale.h> header, excluding LC_ALL. In both cases, the functions also use the LC_CTYPE locale facet in order to convert the translated message from the -translator's codeset to the current locale's codeset, unless -overridden by a prior call to the -bind_textdomain_codeset function.

- - - -
-The message catalog used by the functions is at the pathname +translator’s codeset to the current locale’s +codeset, unless overridden by a prior call to the +bind_textdomain_codeset function.

+ +

The message catalog used by the functions is at the +pathname dirname/locale/category/domainname.mo. Here dirname is the directory specified through bindtextdomain. Its default is system and @@ -116,76 +110,77 @@ without the territory name. category is LC_MESSAGES for the gettext and dgettext functions, or the argument passed to the -dcgettext function.

- - - -
-If the LANGUAGE environment variable is set to a +dcgettext function.

+ +

If the LANGUAGE environment variable is set to a nonempty value, and the locale is not the "C" locale, the value of LANGUAGE is assumed to contain a colon separated list of locale names. The functions will attempt to look up a translation of msgid in each of -the locales in turn. This is a GNU extension.

- - - -
-In the "C" locale, or if none of the used catalogs -contain a translation for msgid, the gettext, -dgettext and dcgettext functions return -msgid.
+the locales in turn. This is a GNU extension.

+ +

In the "C" locale, or if none of the used +catalogs contain a translation for msgid, the +gettext, dgettext and dcgettext +functions return msgid.

+ +

RETURN VALUE

- + -
-If a translation was found in one of the specified catalogs, -it is converted to the locale's codeset and returned. The -resulting string is statically allocated and must not be -modified or freed. Otherwise msgid is -returned.
+ + +

If a translation was found in one of the specified +catalogs, it is converted to the locale’s codeset and +returned. The resulting string is statically allocated and +must not be modified or freed. Otherwise msgid is +returned.

+ +

ERRORS

- + -
-errno is not modified.
+ + +

errno is not modified.

+ +

BUGS

- + - +
-The return type ought to be const char *, but is + +

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI -C.

- - - -
-When an empty string is used for msgid, the functions -may return a nonempty string.
+C.

+ +

When an empty string is used for msgid, the +functions may return a nonempty string.

+ +

SEE ALSO

- + - +
-ngettext(3), dngettext(3), + +

ngettext(3), dngettext(3), dcngettext(3), setlocale(3), textdomain(3), bindtextdomain(3), -bind_textdomain_codeset(3), -msgfmt(1)

+bind_textdomain_codeset(3), msgfmt(1)

+ +
diff -Nru gettext-0.17/gettext-runtime/man/Makefile.am gettext-0.18.1.1/gettext-runtime/man/Makefile.am --- gettext-0.17/gettext-runtime/man/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-runtime/man subdirectory of GNU gettext -## Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +## Copyright (C) 2001-2003, 2006, 2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ VERSION = @VERSION@ -AUTOMAKE_OPTIONS = 1.2 gnits +AUTOMAKE_OPTIONS = 1.11 gnits EXTRA_DIST = # A manual page for each of the bin_PROGRAMS in src/Makefile.am. @@ -36,7 +36,8 @@ man_MAN3IN = gettext.3.in ngettext.3.in \ textdomain.3.in bindtextdomain.3.in bind_textdomain_codeset.3.in man_MAN3LINK = dgettext.3 dcgettext.3 dngettext.3 dcngettext.3 -man_MANS = $(man_MAN1) $(man_MAN3) $(man_MAN3LINK) +man_MANS = $(man_MAN1) +notrans_man_MANS = $(man_MAN3) $(man_MAN3LINK) man_HTMLGEN = gettext.1.html ngettext.1.html man_HTMLIN = gettext.1.html.in ngettext.1.html.in diff -Nru gettext-0.17/gettext-runtime/man/Makefile.in gettext-0.18.1.1/gettext-runtime/man/Makefile.in --- gettext-0.17/gettext-runtime/man/Makefile.in 2007-11-06 23:34:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/Makefile.in 2010-06-06 20:11:38.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,12 +37,18 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/x-to-1.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -51,44 +59,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -99,28 +128,60 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = x-to-1 +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" man3dir = $(mandir)/man3 NROFF = nroff -MANS = $(man_MANS) +MANS = $(man_MANS) $(notrans_man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -147,22 +208,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -170,117 +236,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -291,10 +581,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -308,7 +600,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -321,59 +620,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -388,8 +811,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -409,6 +831,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -422,6 +847,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -435,9 +861,10 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.2 gnits +AUTOMAKE_OPTIONS = 1.11 gnits EXTRA_DIST = help2man $(man_aux) $(man_MAN1IN) $(man_MAN1OTHER) \ $(man_MAN3) $(man_MAN3IN) $(man_MAN3LINK) $(man_HTMLIN) \ $(man_HTMLOTHER) @@ -457,7 +884,8 @@ textdomain.3.in bindtextdomain.3.in bind_textdomain_codeset.3.in man_MAN3LINK = dgettext.3 dcgettext.3 dngettext.3 dcngettext.3 -man_MANS = $(man_MAN1) $(man_MAN3) $(man_MAN3LINK) +man_MANS = $(man_MAN1) +notrans_man_MANS = $(man_MAN3) $(man_MAN3LINK) man_HTMLGEN = gettext.1.html ngettext.1.html man_HTMLIN = gettext.1.html.in ngettext.1.html.in man_HTMLOTHER = \ @@ -486,14 +914,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits man/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits man/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits man/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits man/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -511,6 +939,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): x-to-1: $(top_builddir)/config.status $(srcdir)/x-to-1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ @@ -519,96 +948,142 @@ clean-libtool: -rm -rf .libs _libs -install-man1: $(man1_MANS) $(man_MANS) +install-man1: $(man_MANS) $(notrans_man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(notrans_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed 'n;s,.*/,,;p;s,\.[^1][0-9a-z]*$$,.1,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ done; \ - for i in $$list; do \ - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ - done + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + uninstall-man1: @$(NORMAL_UNINSTALL) - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ - done -install-man3: $(man3_MANS) $(man_MANS) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(notrans_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed 's,.*/,,;s,\.[^1][0-9a-z]*$$,.1,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } +install-man3: $(man_MANS) $(notrans_man_MANS) @$(NORMAL_INSTALL) test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)" - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.3*) list="$$list $$i" ;; \ - esac; \ + @list=''; test -n "$(man3dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(notrans_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.3[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed 'n;s,.*/,,;p;s,\.[^3][0-9a-z]*$$,.3,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ + fi; \ done; \ - for i in $$list; do \ - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 3*) ;; \ - *) ext='3' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \ - done + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ + done; } + @list=''; test -n "$(man3dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.3[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ + done; } + uninstall-man3: @$(NORMAL_UNINSTALL) - @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.3*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 3*) ;; \ - *) ext='3' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \ - rm -f "$(DESTDIR)$(man3dir)/$$inst"; \ - done + @list=''; test -n "$(man3dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(notrans_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.3[a-z]*$$/p'; \ + } | sed 's,.*/,,;s,\.[^3][0-9a-z]*$$,.3,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; } + @list=''; test -n "$(man3dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.3[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man3dir)" && rm -f $$files; } tags: TAGS TAGS: @@ -617,6 +1092,19 @@ distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -632,13 +1120,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -670,6 +1162,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -699,6 +1192,8 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am @@ -707,12 +1202,18 @@ install-info: install-info-am +install-info-am: + install-man: install-man1 install-man3 install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -858,6 +1359,7 @@ for file in $(man_HTML); do \ $(RM) $(DESTDIR)$(htmldir)/$$file; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/man/ngettext.1.html.in gettext-0.18.1.1/gettext-runtime/man/ngettext.1.html.in --- gettext-0.17/gettext-runtime/man/ngettext.1.html.in 2007-11-07 00:19:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/ngettext.1.html.in 2010-06-06 18:36:26.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,203 +17,264 @@ SEE ALSO

-

NAME

+ -
-ngettext - translate message and choose plural form
+ + +

ngettext − translate message and choose plural +form

+ +

SYNOPSIS

- + -
-ngettext [OPTION] [TEXTDOMAIN] MSGID -MSGID-PLURAL COUNT
+ + +

ngettext [OPTION] [TEXTDOMAIN] +MSGID MSGID-PLURAL COUNT

+ +

DESCRIPTION

- + - +
-The ngettext program translates a natural language -message into the user's language, by looking up the + +

The ngettext program translates a natural language +message into the user’s language, by looking up the translation in a message catalog, and chooses the appropriate plural form, which depends on the number COUNT and the language of the message catalog where -the translation was found.

- +the translation was found.

+ +

Display native language translation of a textual message +whose grammatical form depends on a number.

+ + + -
-Display native language translation of a textual message -whose grammatical form depends on a number.
- + + +

−d, +−−domain=TEXTDOMAIN

+ + -
--d, --domain=TEXTDOMAIN
- - - -
-retrieve translated message from TEXTDOMAIN
- + + +

retrieve translated message from TEXTDOMAIN

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
--e
+ + - - -
-enable expansion of some escape sequences
+

−e

+ + + - +

enable expansion of some escape sequences

+ + -
+
--E
+ + - - -
-(ignored for compatibility)
+

−E

+ + + +

(ignored for compatibility)

+ + + + + -
--h, --help
- + + +

−h, −−help

+ + -
-display this help and exit
- + + +

display this help and exit

+ + + -
--V, --version
- + + +

−V, −−version

+ + -
-display version information and exit
- + + +

display version information and exit

+ + + -
-[TEXTDOMAIN]
- + + +

[TEXTDOMAIN]

+ + -
-retrieve translated message from TEXTDOMAIN
- + + +

retrieve translated message from TEXTDOMAIN

+ + + -
-MSGID MSGID-PLURAL
- + + +

MSGID MSGID-PLURAL

+ + -
-translate MSGID (singular) / MSGID-PLURAL -(plural)
- + + +

translate MSGID (singular) / MSGID-PLURAL (plural)

+ + + + cols="4" cellspacing="0" cellpadding="0"> -
-COUNT
+ + - - -
-choose singular/plural form based on this value
+

COUNT

+ + + +

choose singular/plural form based on this value

+ + + - +
-If the TEXTDOMAIN parameter is not given, the domain is + +

If the TEXTDOMAIN parameter is not given, the domain is determined from the environment variable TEXTDOMAIN. If the message catalog is not found in the regular directory, another location can be specified with the environment variable TEXTDOMAINDIR. Standard search directory: -@localedir@

+@localedir@

+ +

AUTHOR

- + -
-Written by Ulrich Drepper.
+ + +

Written by Ulrich Drepper.

+ +

REPORTING BUGS

- + -
-Report bugs to <bug-gnu-gettext@gnu.org>.
+ + +

Report bugs to <bug-gnu-gettext@gnu.org>.

+ +

COPYRIGHT

- + - +
-Copyright 1995-1997, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

Copyright © 1995-1997, 2000-2007 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

+permitted by law.

+ +

SEE ALSO

- + - +
-The full documentation for ngettext is maintained as -a Texinfo manual. If the info and ngettext + +

The full documentation for ngettext is maintained +as a Texinfo manual. If the info and ngettext programs are properly installed at your site, the -command

- +command

+ + + -
-info ngettext
- + + +

info ngettext

+ + + -
-should give you access to the complete manual.
+ + +

should give you access to the complete manual.

+ +
diff -Nru gettext-0.17/gettext-runtime/man/ngettext.1.in gettext-0.18.1.1/gettext-runtime/man/ngettext.1.in --- gettext-0.17/gettext-runtime/man/ngettext.1.in 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/ngettext.1.in 2010-06-06 18:36:26.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH NGETTEXT "1" "November 2007" "GNU gettext-runtime 0.17" GNU +.TH NGETTEXT "1" "June 2010" "GNU gettext-runtime 0.18.1" GNU .SH NAME ngettext \- translate message and choose plural form .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/ngettext.3 gettext-0.18.1.1/gettext-runtime/man/ngettext.3 --- gettext-0.17/gettext-runtime/man/ngettext.3 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/ngettext.3 2010-06-06 18:36:26.000000000 +0000 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH NGETTEXT 3 "May 2001" "GNU gettext 0.17" +.TH NGETTEXT 3 "May 2001" "GNU gettext 0.18.1" .SH NAME ngettext, dngettext, dcngettext \- translate message and choose plural form .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/ngettext.3.html gettext-0.18.1.1/gettext-runtime/man/ngettext.3.html --- gettext-0.17/gettext-runtime/man/ngettext.3.html 2003-02-17 21:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/ngettext.3.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,21 +17,26 @@ SEE ALSO

-

NAME

+ -
-ngettext, dngettext, dcngettext - translate message and choose plural form
+ + +

ngettext, dngettext, dcngettext − translate message +and choose plural form

+ +

SYNOPSIS

- + - +
+
#include <libintl.h>
 
 char * ngettext (const char * msgid, const char * msgid_plural,
@@ -41,89 +47,97 @@
 char * dcngettext (const char * domainname,
                    const char * msgid, const char * msgid_plural,
                    unsigned long int n, int category);
-
+ + +

DESCRIPTION

+ -
-The ngettext, dngettext and dcngettext -functions attempt to translate a text string into the user's -native language, by looking up the appropriate plural form -of the translation in a message catalog.
- - - - +
-Plural forms are grammatical variants depending on the a + +

The ngettext, dngettext and +dcngettext functions attempt to translate a text +string into the user’s native language, by looking up +the appropriate plural form of the translation in a message +catalog.

+ +

Plural forms are grammatical variants depending on the a number. Some languages have two forms, called singular and plural. Other languages have three forms, called singular, dual and plural. There are also languages with four -forms.

- - - -
-The ngettext, dngettext and dcngettext -functions work like the gettext, dgettext and -dcgettext functions, respectively. Additionally, they -choose the appropriate plural form, which depends on the -number n and the language of the message catalog -where the translation was found.
- - - -
-In the "C" locale, or if none of the used catalogs -contain a translation for msgid, the ngettext, -dngettext and dcngettext functions return -msgid if n == 1, or msgid_plural if -n != 1.
+forms.

+ +

The ngettext, dngettext and +dcngettext functions work like the gettext, +dgettext and dcgettext functions, +respectively. Additionally, they choose the appropriate +plural form, which depends on the number n and the +language of the message catalog where the translation was +found.

+ +

In the "C" locale, or if none of the used +catalogs contain a translation for msgid, the +ngettext, dngettext and dcngettext +functions return msgid if n == 1, or +msgid_plural if n != 1.

+ +

RETURN VALUE

- + -
-If a translation was found in one of the specified catalogs, -the appropriate plural form is converted to the locale's -codeset and returned. The resulting string is statically -allocated and must not be modified or freed. Otherwise -msgid or msgid_plural is returned, as -described above.
+ + +

If a translation was found in one of the specified +catalogs, the appropriate plural form is converted to the +locale’s codeset and returned. The resulting string is +statically allocated and must not be modified or freed. +Otherwise msgid or msgid_plural is returned, +as described above.

+ +

ERRORS

- + -
-errno is not modified.
+ + +

errno is not modified.

+ +

BUGS

- + - +
-The return type ought to be const char *, but is + +

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI -C.

+C.

+ +

SEE ALSO

- + -
-gettext(3), dgettext(3), -dcgettext(3)
+ + +

gettext(3), dgettext(3), +dcgettext(3)

+ +
diff -Nru gettext-0.17/gettext-runtime/man/textdomain.3 gettext-0.18.1.1/gettext-runtime/man/textdomain.3 --- gettext-0.17/gettext-runtime/man/textdomain.3 2007-11-07 00:19:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/textdomain.3 2010-06-06 18:36:26.000000000 +0000 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH TEXTDOMAIN 3 "May 2001" "GNU gettext 0.17" +.TH TEXTDOMAIN 3 "May 2001" "GNU gettext 0.18.1" .SH NAME textdomain \- set domain for future gettext() calls .SH SYNOPSIS diff -Nru gettext-0.17/gettext-runtime/man/textdomain.3.html gettext-0.18.1.1/gettext-runtime/man/textdomain.3.html --- gettext-0.17/gettext-runtime/man/textdomain.3.html 2003-02-17 21:28:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/man/textdomain.3.html 2010-06-06 18:36:27.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,123 +17,134 @@ SEE ALSO

-

NAME

+ -
-textdomain - set domain for future gettext() calls
+ + +

textdomain − set domain for future gettext() +calls

+ +

SYNOPSIS

- + - +
+
#include <libintl.h>
 
 char * textdomain (const char * domainname);
-
+ + +

DESCRIPTION

+ -
-The textdomain function sets or retrieves the current -message domain.
- - - - +
-A message domain is a set of translatable msgid + +

The textdomain function sets or retrieves the +current message domain.

+ +

A message domain is a set of translatable msgid messages. Usually, every software package has its own message domain. The domain name is used to determine the message catalog where a translation is looked up; it must be -a non-empty string.

- - - -
-The current message domain is used by the gettext, +a non-empty string.

+ +

The current message domain is used by the gettext, ngettext functions, and by the dgettext, dcgettext, dngettext and dcngettext -functions when called with a NULL domainname -argument.

- - - -
-If domainname is not NULL, the current message domain -is set to domainname. The string the function stores -internally is a copy of the domainname -argument.
- - - -
-If domainname is NULL, the function returns the -current message domain.
+functions when called with a NULL domainname argument.

+ +

If domainname is not NULL, the current message +domain is set to domainname. The string the function +stores internally is a copy of the domainname +argument.

+ +

If domainname is NULL, the function returns the +current message domain.

+ +

RETURN VALUE

- + - +
-If successful, the textdomain function returns the + +

If successful, the textdomain function returns the current message domain, after possibly changing it. The resulting string is valid until the next textdomain call and must not be modified or freed. If a memory allocation failure occurs, it sets errno to -ENOMEM and returns NULL.

+ENOMEM and returns NULL.

+ +

ERRORS

- + -
-The following error can occur, among others:
- + + +

The following error can occur, among others:

+ + + + cols="5" cellspacing="0" cellpadding="0"> -
-ENOMEM
+ + - - -
-Not enough memory available.
+

ENOMEM

+ + + + +

Not enough memory available.

+ + + +

BUGS

- + - +
-The return type ought to be const char *, but is + +

The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI -C.

+C.

+ +

SEE ALSO

- + - +
-gettext(3), ngettext(3), + +

gettext(3), ngettext(3), bindtextdomain(3), -bind_textdomain_codeset(3)

+bind_textdomain_codeset(3)

+ +
diff -Nru gettext-0.17/gettext-runtime/NEWS gettext-0.18.1.1/gettext-runtime/NEWS --- gettext-0.17/gettext-runtime/NEWS 2006-12-18 23:27:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/NEWS 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,12 @@ +Version 0.18 - May 2010 + +* On MacOS X and Windows systems, now extends setlocale() and + newlocale() so that their determination of the default locale considers + the choice the user has made in the system control panels. + +* On MacOS X systems, the gettext()/dgettext()/... functions now respect the + locale of the current thread, if a thread-specific locale has been set. + Version 0.16.1 - November 2006 * Bug fix in the gettext.m4 autoconf macros. Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/be.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/be.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/be.po gettext-0.18.1.1/gettext-runtime/po/be.po --- gettext-0.17/gettext-runtime/po/be.po 2007-11-02 02:22:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/be.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,81 +6,81 @@ msgstr "" "Project-Id-Version: gettext 0.11.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2002-09-04 18:51+0300\n" "Last-Translator: Ales Nyakhaychyk \n" "Language-Team: Belarusian \n" +"Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Невядомая сістэмная памылка" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: выбар `%s' неадназначны\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: выбар `--%s' не патрабуе аргумэнтаў\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: выбар `%c%s' не патрабуе аргумэнтаў\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: выбар `%s' патрабуе аргумэнт\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: нераспазнаны выбар `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: нераспазнаны выбар `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: несапраўдны выбар -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: нерэчаісны выбар -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: выбар патрабуе аргумэнт -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: выбар `-W %s' неадназначны\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: выбар `-W %s' не патрабуе аргумэнтаў\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: выбар `%s' патрабуе аргумэнт\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -304,6 +304,9 @@ "асяроддзя TEXTDOMAINDIR.\n" "Стандартная дырэкторыя для пошуку: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: несапраўдны выбар -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -986,13 +989,13 @@ #~ msgid "" #~ "A special builtin command called '0' outputs the translation, followed by " #~ "a\n" -#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -" -#~ "0\".\n" +#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs " +#~ "-0\".\n" #~ msgstr "" #~ "Асабісты ўбудаваны загад, завецца '0', выводзіць пераклад й нулявы байт " #~ "за ім.\n" -#~ "Вывад каманды \"msgexec 0\" падыходзіць для ўваходу каманды \"xargs -0" -#~ "\".\n" +#~ "Вывад каманды \"msgexec 0\" падыходзіць для ўваходу каманды \"xargs " +#~ "-0\".\n" #~ msgid "" #~ "Input file location:\n" @@ -1271,8 +1274,8 @@ #~ msgid "" #~ "Output details:\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " --no-hash binary file will not include the hash " #~ "table\n" #~ msgstr "" @@ -1300,8 +1303,8 @@ #~ msgid "" #~ "nplurals = %lu but plural expression can produce values as large as %lu" #~ msgstr "" -#~ "nplurals = %lu але выраз множнага ліку можа ўтвараць значэньні такія як %" -#~ "lu" +#~ "nplurals = %lu але выраз множнага ліку можа ўтвараць значэньні такія як " +#~ "%lu" #~ msgid "plural expression can produce division by zero" #~ msgstr "выраз множнага ліку можа ўтвараць дзяленьне на нуль" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/bg.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/bg.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/bg.po gettext-0.18.1.1/gettext-runtime/po/bg.po --- gettext-0.17/gettext-runtime/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/bg.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,313 @@ +# Bulgarian translations for gettext-runtime package. +# Copyright (C) 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU gettext-runtime 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: gnulib-lib/closeout.c:66 +msgid "write error" +msgstr "грешка при запис" + +#: gnulib-lib/error.c:181 +msgid "Unknown system error" +msgstr "Неизвестна системна грешка" + +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: двусмислена опция '%s'\n" + +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: опцията '--%s' е без аргументи\n" + +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: опцията '%c%s' е без аргумент\n" + +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: опцията '--%s' изисква аргумент\n" + +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, c-format +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: неразпозната опция '--%s'\n" + +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, c-format +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: неразпозната опция '%c%s'\n" + +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: неправилна опция -- '%c'\n" + +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, c-format +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: опцията изисква аргумент -- '%c'\n" + +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: двусмислена опция '-W %s'\n" + +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: опцията '-W %s' е без аргументи\n" + +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: опцията '-W %s' изисква аргумент\n" + +#: gnulib-lib/xmalloc.c:37 +#, c-format +msgid "memory exhausted" +msgstr "паметта е изчерпана" + +#: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 +#, c-format, no-wrap +msgid "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" +msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"Лицензия GPLv3+: GNU GPL версия 3 или следваща \n" +"Това е свободен програмен продукт: свободни сте да го променяте и разпространя-\n" +"вате. Не се дават НИКАКВИ ГАРАНЦИИ до степента позволена от закона.\n" + +#: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 +#, c-format +msgid "Written by %s.\n" +msgstr "Създадена от %s.\n" + +#. This is a proper name. See the gettext manual, section Names. +#: src/envsubst.c:118 +msgid "Bruno Haible" +msgstr "Бруно Хаибле" + +#: src/envsubst.c:127 src/gettext.c:157 src/ngettext.c:141 +#, c-format +msgid "too many arguments" +msgstr "твърде много аргументи" + +#: src/envsubst.c:138 src/gettext.c:167 src/ngettext.c:153 +#, c-format +msgid "missing arguments" +msgstr "липсващи аргументи" + +#: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 +#, c-format +msgid "Try `%s --help' for more information.\n" +msgstr "За повече информация, опитайте '%s --help'\n" + +#: src/envsubst.c:176 +#, c-format, no-wrap +msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" +msgstr "Употреба: %s [ОПЦИЯ] [ОБВИВКА-ФОРМА]\n" + +#: src/envsubst.c:181 +#, c-format, no-wrap +msgid "Substitutes the values of environment variables.\n" +msgstr "Замества стойностите на променливите от обкръжението.\n" + +#: src/envsubst.c:185 +#, c-format, no-wrap +msgid "Operation mode:\n" +msgstr "Режим на работа:\n" + +#: src/envsubst.c:188 +#, c-format, no-wrap +msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" +msgstr " -v, --variables извежда променливите намерени в ОБВИВКА-ФОРМА\n" + +#: src/envsubst.c:192 +#, c-format, no-wrap +msgid "Informative output:\n" +msgstr "Осведомително извеждане:\n" + +#: src/envsubst.c:195 +#, c-format, no-wrap +msgid " -h, --help display this help and exit\n" +msgstr " -h, --help извеждане на тази помощ и изход\n" + +#: src/envsubst.c:198 +#, c-format, no-wrap +msgid " -V, --version output version information and exit\n" +msgstr " -V, --version извеждане на информация за версия и изход\n" + +#: src/envsubst.c:202 +#, c-format, no-wrap +msgid "" +"In normal operation mode, standard input is copied to standard output,\n" +"with references to environment variables of the form $VARIABLE or ${VARIABLE}\n" +"being replaced with the corresponding values. If a SHELL-FORMAT is given,\n" +"only those environment variables that are referenced in SHELL-FORMAT are\n" +"substituted; otherwise all environment variables references occurring in\n" +"standard input are substituted.\n" +msgstr "" +"При нормален режим на работа, стандартния вход се копира на стандартния изход,\n" +"като указаните променливи от обкръжението в формат $ПРОМЕНЛИВА или ${ПРОМЕНЛИВА}\n" +"се заместват със съответните им стойности. Ако е зададена ОБВИВКА-ФОРМА, се\n" +"заместват само променливите от обкръжението указани от ОБВИВКА-ФОРМА, иначе\n" +"се заместват всички указани променливите от обкръжението намерени в стандартния\n" +"вход.\n" + +#: src/envsubst.c:211 +#, c-format, no-wrap +msgid "" +"When --variables is used, standard input is ignored, and the output consists\n" +"of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" +msgstr "" +"Ако се използва --variables, стандартния изход се пренебрегва и изведеното се\n" +"състои от променливите на обкръжението указани от ОБВИВКА-ФОРМА, по една на ред.\n" + +#. TRANSLATORS: The placeholder indicates the bug-reporting address +#. for this package. Please add _another line_ saying +#. "Report translation bugs to <...>\n" with the address for translation +#. bugs (typically your translation team's web or email address). +#: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 +msgid "Report bugs to .\n" +msgstr "" +"Подавайте доклади за грешки на ,\n" +"а за грешки в превода на .\n" + +#: src/envsubst.c:442 +#, c-format +msgid "error while reading \"%s\"" +msgstr "грешка при четене \"%s\"" + +#: src/envsubst.c:443 +msgid "standard input" +msgstr "стандартен вход" + +#. This is a proper name. See the gettext manual, section Names. +#: src/gettext.c:139 src/ngettext.c:129 +msgid "Ulrich Drepper" +msgstr "Улрих Дрепер" + +#: src/gettext.c:243 +#, c-format, no-wrap +msgid "" +"Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" +"or: %s [OPTION] -s [MSGID]...\n" +msgstr "" +"Употреба: %s [ОПЦИЯ] [[ОБЛАСТТЕКСТ] КЛЮЧ]\n" +"или: %s [ОПЦИЯ] -s [КЛЮЧ]...\n" + +#: src/gettext.c:249 +#, c-format, no-wrap +msgid "Display native language translation of a textual message.\n" +msgstr "Извежда преведено текстово съобщение.\n" + +#: src/gettext.c:253 +#, c-format, no-wrap +msgid "" +" -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" +" -e enable expansion of some escape sequences\n" +" -E (ignored for compatibility)\n" +" -h, --help display this help and exit\n" +" -n suppress trailing newline\n" +" -V, --version display version information and exit\n" +" [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" +" to MSGID from TEXTDOMAIN\n" +msgstr "" +" -d, --domain=ОБЛАСТТЕКСТ намиране на преведените съобщения от ОБЛАСТТЕКСТ\n" +" -e разрешава разгъване на някой \"заместващи последователности\"\n" +" -E (игнорира се за съвместимост)\n" +" -h, --help извеждане на тази помощ и изход\n" +" -n потискам на завършващ \"нов ред\"\n" +" -V, --version извеждане на информация за версия и изход\n" +" [ОБЛАСТТЕКСТ] КЛЮЧ намиране на преведените съобщения съответни\n" +" на КЛЮЧ от ОБЛАСТТЕКСТ\n" + +#: src/gettext.c:264 +#, c-format, no-wrap +msgid "" +"If the TEXTDOMAIN parameter is not given, the domain is determined from the\n" +"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" +"regular directory, another location can be specified with the environment\n" +"variable TEXTDOMAINDIR.\n" +"When used with the -s option the program behaves like the `echo' command.\n" +"But it does not simply copy its arguments to stdout. Instead those messages\n" +"found in the selected catalog are translated.\n" +"Standard search directory: %s\n" +msgstr "" +"Ако не е зададен параметър ОБЛАСТТЕКСТ, областта се определя от променливата\n" +"от обкръжението TEXTDOMAIN. Ако каталога със съобщенията не е намерен в \n" +"обичайната директория, друго местоположение може да се зададе с променливата\n" +"от обкръжението TEXTDOMAINDIR.\n" +"Ако се използва заедно с опцията -s програмата се държи като командата 'echo',\n" +"но без просто да копира аргументите си на стандартния изход. Вместо това\n" +"съобщенията, намерените в избрания каталог, се превеждат.\n" +"Директория за търсене: %s\n" + +#: src/ngettext.c:212 +#, c-format, no-wrap +msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" +msgstr "Употреба: %s [ОПЦИЯ] [ОБЛАСТТЕКСТ] КЛЮЧ КЛЮЧ-МН.Ч. БРОЙ\n" + +#: src/ngettext.c:217 +#, c-format, no-wrap +msgid "" +"Display native language translation of a textual message whose grammatical\n" +"form depends on a number.\n" +msgstr "Извежда превода на текстово съобщение, чиято граматична форма зависи от броя.\n" + +#: src/ngettext.c:222 +#, c-format, no-wrap +msgid "" +" -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" +" -e enable expansion of some escape sequences\n" +" -E (ignored for compatibility)\n" +" -h, --help display this help and exit\n" +" -V, --version display version information and exit\n" +" [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" +" MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" +" COUNT choose singular/plural form based on this value\n" +msgstr "" +" -d, --domain=ОБЛАСТТЕКСТ намиране на преведените съобщения от ОБЛАСТТЕКСТ\n" +" -e разрешава разгъване на някой \"заместващи последователности\"\n" +" -E (игнорира се за съвместимост)\n" +" -h, --help извеждане на тази помощ и изход\n" +" -V, --version извеждане на информация за версия и изход\n" +" [ОБЛАСТТЕКСТ] намиране на преведените съобщения от ОБЛАСТТЕКСТ\n" +" КЛЮЧ КЛЮЧ-МН.Ч. превежда КЛЮЧ (ед.ч.) / КЛЮЧ-МН.Ч (мн.ч.)\n" +" БРОЙ на базата на тази стойност избира формата за ед/мн.ч.\n" + +#: src/ngettext.c:233 +#, c-format, no-wrap +msgid "" +"If the TEXTDOMAIN parameter is not given, the domain is determined from the\n" +"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" +"regular directory, another location can be specified with the environment\n" +"variable TEXTDOMAINDIR.\n" +"Standard search directory: %s\n" +msgstr "" +"Ако не е зададен параметър ОБЛАСТТЕКСТ, областта се определя от променливата\n" +"от обкръжението TEXTDOMAIN. Ако каталога със съобщенията не е намерен в \n" +"обичайната директория, друго местоположение може да се зададе с променливата\n" +"от обкръжението TEXTDOMAINDIR.\n" +"Директория за търсене: %s\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ca.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ca.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/ca.po gettext-0.18.1.1/gettext-runtime/po/ca.po --- gettext-0.17/gettext-runtime/po/ca.po 2007-11-02 02:22:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ca.po 2010-06-06 12:49:57.000000000 +0000 @@ -50,10 +50,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-28 18:06+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -64,67 +65,66 @@ msgstr "error d’escriptura" # Amb el mateix format que els errors de la libc. ivb -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Error desconegut del sistema" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: l’opció «%s» és ambígua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: l’opció «--%s» no admet arguments\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: l’opció «%c%s» no admet arguments\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: l’opció «%s» necessita un argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: l’opció «--%s» no és reconeguda\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: l’opció «%c%s» no és reconeguda\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: no es permet l’opció «%c»\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: l’opció «%c» no és vàlida\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: l’opció «%c» necessita un argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: l’opció «-W %s» és ambígua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: l’opció «-W %s» no admet arguments\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: l’opció «%s» necessita un argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -363,3 +363,6 @@ "troba al directori habitual, es pot especificar una altra ubicació amb la\n" "variable d’entorn TEXTDOMAINDIR.\n" "Directori estàndard de cerca: %s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: no es permet l’opció «%c»\n" diff -Nru gettext-0.17/gettext-runtime/po/ChangeLog gettext-0.18.1.1/gettext-runtime/po/ChangeLog --- gettext-0.17/gettext-runtime/po/ChangeLog 2007-11-06 23:27:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,107 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-24 Bruno Haible + + * bg.po: Update from Roumen Petrov . + * id.po: Update from Arif E. Nugroho . + * ja.po: Update from Masahito Yamaga . + * ko.po: Update from Changwoo Ryu . + * pl.po: Update from Rafał Maszkowski . + * sk.po: Update from Marcel Telka . + * sv.po: Update from Jan Djärv . + * vi.po: Update from Clytie Siddall . + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * Makefile.in.in (GETTEXT_MACRO_VERSION): Bump to 0.18. + +2010-02-07 Bruno Haible + + * bg.po: New file, from Roumen Petrov . + * LINGUAS: Add bg. + +2009-12-19 Bruno Haible + + * ko.po: Update from Changwoo Ryu . + +2009-08-16 Bruno Haible + + * Makevars (MSGMERGE_OPTIONS): New variable. + * Makefile.in.in ($(POFILES), .nop.po-update): Use it when invoking + msgmerge. + Suggested by Guillem Jover . + +2009-07-25 Bruno Haible + + * de.po: Update from Karl Eichwalder . + +2009-06-08 Bruno Haible + + * Makefile.in.in (install-data-yes, installdirs-data-yes): Remove + unnecessary mkdir of $(datadir). + Reported by Serge Pavlovsky . + +2009-02-27 Bruno Haible + + * Makefile.in.in (Makefile): Use @SHELL@, not $(SHELL). + Reported by Scott James Remnant . + +2009-01-18 Bruno Haible + + * Makefile.in.in (.po.gmo): Pass --verbose to msgfmt when producing + statistics. + Suggested by Vincent Lefevre . + +2009-01-18 Bruno Haible + + * id.po: Update from Arif E. Nugroho . + * nn.po: Update from Eirik U. Birkeland . + * zh_CN.po: Update from Li Daobing . + +2008-09-28 Bruno Haible + + * Rules-quot (.insert-header.po-update-en): Pass the locale name with + suffix to msginit. Needed for the "Language:" field in the header + entry. + +2008-05-19 Bruno Haible + + * Makevars (XGETTEXT_OPTIONS): Remove the options for proper_name and + proper_name_utf8, now collected automatically through + AM_XGETTEXT_OPTION. + +2008-05-08 Bruno Haible + + * sk.po: Update from Marcel Telka . + * sv.po: Update from Jan Djärv . + +2008-01-10 Bruno Haible + + * pt.po: Update from Helder Correia . + +2007-12-24 Bruno Haible + + * Makefile.in.in ($(POFILES), .nop.po-update): When using msgmerge + 0.18 or newer, pass a --lang option. + +2007-12-24 Bruno Haible + + * Makefile.in.in (.nop.po-update): Put all non-option arguments after + all option arguments, so that the commands work 1. when POSIXLY_CORRECT + is set, 2. on platforms whose getopt facility is POSIX compliant but + not GNU libc compatible, such as Cygwin. + +2007-11-07 Bruno Haible + + * zh_CN.po: Restore the accidentally emptied translations. + Reported by Benno Schulenberg . + 2007-11-07 Bruno Haible * gettext-0.17 released. Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/cs.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/cs.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/cs.po gettext-0.18.1.1/gettext-runtime/po/cs.po --- gettext-0.17/gettext-runtime/po/cs.po 2007-11-02 02:22:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/cs.po 2010-06-06 12:49:57.000000000 +0000 @@ -13,93 +13,93 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.38\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-08-18 15:22+0200\n" "Last-Translator: Vladimir Michl \n" "Language-Team: Czech \n" +"Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "" # lib/error.c:91 -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznm systmov chyba" # lib/getopt.c:628 -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: pepna `%s' nen jednoznan\n" # lib/getopt.c:652 -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: pepna `--%s' mus bt zadn bez argumentu\n" # lib/getopt.c:657 -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: pepna `%c%s' mus bt zadn bez argumentu\n" # lib/getopt.c:674 lib/getopt.c:847 -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: pepna `%s' vyaduje argument\n" # lib/getopt.c:703 -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: neznm pepna `--%s'\n" # lib/getopt.c:707 -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: neznm pepna `%c%s'\n" -# lib/getopt.c:733 -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: neznm pepna -- %c\n" - # lib/getopt.c:736 -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: neznm pepna -- %c\n" # lib/getopt.c:766 lib/getopt.c:896 -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: pepna vyaduje argument -- %c\n" # lib/getopt.c:813 -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: pepna `-W %s' nen jednoznan\n" # lib/getopt.c:831 -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: pepna ` -W %s' mus bt zadn bez argumentu\n" +# lib/getopt.c:674 lib/getopt.c:847 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: pepna `%s' vyaduje argument\n" + # lib/xmalloc.c:82 #: gnulib-lib/xmalloc.c:37 #, c-format @@ -343,6 +343,10 @@ "v promnn prosted TEXTDOMAINDIR.\n" " Adres, ve kterm se hled: %s\n" +# lib/getopt.c:733 +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: neznm pepna -- %c\n" + # src/gettextp.c:134 src/msgcmp.c:144 src/msgfmt.c:257 src/msgmerge.c:251 # src/msgunfmt.c:175 src/xgettext.c:394 #~ msgid "" @@ -1614,8 +1618,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -1640,8 +1644,8 @@ #~ "odpovdajc\n" #~ "krtk formy.\n" #~ "\n" -#~ " -a, --alignment=SLO zarovn etzce do SLO bajt (implicitn: %" -#~ "d)\n" +#~ " -a, --alignment=SLO zarovn etzce do SLO bajt (implicitn: " +#~ "%d)\n" #~ " -c, --check vykon jazykov zvisl kontroly etzc\n" #~ " -D, --directory=ADRES pid ADRES do seznamu adres pro hledn\n" #~ " vstupnch soubor\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/da.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/da.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/da.po gettext-0.18.1.1/gettext-runtime/po/da.po --- gettext-0.17/gettext-runtime/po/da.po 2007-11-02 02:22:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/da.po 2010-06-06 12:49:57.000000000 +0000 @@ -9,10 +9,11 @@ msgstr "" "Project-Id-Version: gettext 0.11.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2002-09-07 19:32+0200\n" "Last-Translator: Keld Simonsen \n" "Language-Team: Danish \n" +"Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" @@ -22,67 +23,66 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Ukendt systemfejl" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: tilvalget '%s' kan betyde flere ting\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: tilvalget '--%s' tillader ikke et argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: tilvalget `%c%s' tillader ikke et argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: tilvalget `%s' krver et argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: ukendt tilvalg `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: ukendt tilvalg `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovligt tilvalg -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ugyldigt tilvalg -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: tilvalget '%c' krver et argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: tilvalget '-W %s' er flertydigt\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: tilvalget '-W %s' tillader ikke et argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: tilvalget `%s' krver et argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -305,6 +305,9 @@ "TEXTDOMAINDIR.\n" "Standard-filkataloget for sgning er: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ulovligt tilvalg -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -984,8 +987,8 @@ #~ msgid "" #~ "A special builtin command called '0' outputs the translation, followed by " #~ "a\n" -#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -" -#~ "0\".\n" +#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs " +#~ "-0\".\n" #~ msgstr "" #~ "En speciel indbygget kommando som heder \"0\" skriver ud beskeden fulgt\n" #~ "af et nultegn. Uddata for \"msgexec 0\" er brugbart som inddata for\n" @@ -1243,8 +1246,8 @@ #~ msgid "" #~ "Output details:\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " --no-hash binary file will not include the hash " #~ "table\n" #~ msgstr "" @@ -1849,8 +1852,8 @@ #~ "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " #~ "obsolete %ld.\n" #~ msgstr "" -#~ "%sLste %ld gamle + %ld reference, flettede %ld, uafklarede %ld, mangler %" -#~ "ld, forldede %ld.\n" +#~ "%sLste %ld gamle + %ld reference, flettede %ld, uafklarede %ld, mangler " +#~ "%ld, forldede %ld.\n" #~ msgid " done.\n" #~ msgstr " afsluttet.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/de.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/de.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/de.po gettext-0.18.1.1/gettext-runtime/po/de.po --- gettext-0.17/gettext-runtime/po/de.po 2007-11-02 02:22:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/de.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,7 @@ # German translations for GNU gettext-runtime package. -# Copyright © 1995, 1996, 1997, 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc. -# Karl Eichwalder , 2001, 2002, 2003, 2004, 2006. +# Copyright © 1995, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Karl Eichwalder , 2001, 2002, 2003, 2004, 2005, 2006, 2009. # Ulrich Drepper , 1995-1997. # # Wörterbuch: @@ -74,12 +75,13 @@ # msgid "" msgstr "" -"Project-Id-Version: gettext-runtime 0.15-pre5\n" +"Project-Id-Version: gettext-runtime 0.17\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2006-07-06 10:40+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-07-24 10:30+0200\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -89,67 +91,66 @@ msgid "write error" msgstr "Fehler beim Schreiben" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unbekannter Systemfehler" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: Option »%s« ist mehrdeutig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: Option »--%s« erwartet kein Argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: Option »%c%s« erwartet kein Argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: Option »%s« erwartet ein Argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unbekannte Option »--%s«\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unbekannte Option »%c%s«\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: unzulässige Option -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ungültige Option -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: Option erwartet ein Argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: Option »-W %s« ist mehrdeutig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: Option »-W %s« erwartet kein Argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: Option »%s« erwartet ein Argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -163,6 +164,12 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Copyright © %s Free Software Foundation, Inc.\n" +"Lizenz GPLv3: GNU GPL Version 3 oder später \n" +"\n" +"Dies ist freie Software; es steht Ihnen frei, sie zu verändern und\n" +"weiterzugeben.\n" +"Es gibt KEINE GARANTIE, soweit als vom Gesetz erlaubt.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format @@ -260,7 +267,8 @@ msgstr "" "Fehler bitte auf Englisch an melden.\n" "\n" -"Für die deutsche Übersetzung ist die Mailingliste zuständig.\n" +"Für die deutsche Übersetzung sind die Übersetzer der Mailingliste\n" +" zuständig.\n" #: src/envsubst.c:442 #, c-format @@ -389,15 +397,5 @@ "\n" "Standardverzeichnis: %s\n" -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright © %s Free Software Foundation, Inc.\n" -#~ "Dies ist freie Software; in den Quellen befindet sich die " -#~ "Lizenzbedingung.\n" -#~ "Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder\n" -#~ "die VERWENDBARKEIT ZU EINEN ANGEGEBENEN ZWECK.\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: unzulässige Option -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/el.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/el.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/el.po gettext-0.18.1.1/gettext-runtime/po/el.po --- gettext-0.17/gettext-runtime/po/el.po 2007-11-02 02:22:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/el.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.34\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 1998-05-17 13:12+0200\n" "Last-Translator: Simos KSenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-7\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,79 +21,78 @@ msgstr "" # -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr " " # -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s' \n" # -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' \n" # -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' \n" # -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' \n" # -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s'\n" # -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s'\n" # -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: -- %c\n" - -# -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: -- %c\n" # -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: -- %c\n" # -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s' \n" # -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' \n" # +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' \n" + +# #: gnulib-lib/xmalloc.c:37 #, fuzzy, c-format msgid "memory exhausted" @@ -329,6 +329,10 @@ " : %s\n" # +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: -- %c\n" + +# #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -1566,8 +1570,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/en@boldquot.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/en@boldquot.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/en@boldquot.po gettext-0.18.1.1/gettext-runtime/po/en@boldquot.po --- gettext-0.17/gettext-runtime/po/en@boldquot.po 2007-11-02 02:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/en@boldquot.po 2010-06-03 23:57:18.000000000 +0000 @@ -1,7 +1,7 @@ # English translations for GNU gettext-runtime package. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the GNU gettext-runtime package. -# Automatically generated, 2007. +# Automatically generated, 2010. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation @@ -30,12 +30,13 @@ # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.17\n" +"Project-Id-Version: GNU gettext-runtime 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-06-04 01:57+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" +"Language: en@boldquot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -45,67 +46,66 @@ msgid "write error" msgstr "write error" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unknown system error" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: option ‘%s’ is ambiguous\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: option ‘--%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: option ‘%c%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: option ‘%s’ requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: option ‘--%s’ requires an argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unrecognized option ‘--%s’\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unrecognized option ‘%c%s’\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: invalid option -- ‘%c’\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: option requires an argument -- ‘%c’\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: option requires an argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: option ‘-W %s’ is ambiguous\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: option ‘-W %s’ doesn't allow an argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: option ‘-W %s’ requires an argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/en@quot.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/en@quot.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/en@quot.po gettext-0.18.1.1/gettext-runtime/po/en@quot.po --- gettext-0.17/gettext-runtime/po/en@quot.po 2007-11-02 02:22:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/en@quot.po 2010-06-03 23:57:18.000000000 +0000 @@ -1,7 +1,7 @@ # English translations for GNU gettext-runtime package. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the GNU gettext-runtime package. -# Automatically generated, 2007. +# Automatically generated, 2010. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation @@ -27,12 +27,13 @@ # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.17\n" +"Project-Id-Version: GNU gettext-runtime 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-06-04 01:57+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" +"Language: en@quot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,67 +43,66 @@ msgid "write error" msgstr "write error" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unknown system error" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: option ‘%s’ is ambiguous\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: option ‘--%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: option ‘%c%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: option ‘%s’ requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: option ‘--%s’ requires an argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unrecognized option ‘--%s’\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unrecognized option ‘%c%s’\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: invalid option -- ‘%c’\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: option requires an argument -- ‘%c’\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: option requires an argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: option ‘-W %s’ is ambiguous\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: option ‘-W %s’ doesn't allow an argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: option ‘-W %s’ requires an argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/eo.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/eo.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/eo.po gettext-0.18.1.1/gettext-runtime/po/eo.po --- gettext-0.17/gettext-runtime/po/eo.po 2007-11-02 02:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/eo.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-16 10:18+0100\n" "Last-Translator: D. Dale Gulledge \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,67 +21,66 @@ msgid "write error" msgstr "skriberaro" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Nekonata sistemeraro" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: la opcio '%s' estas dubasenca\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: la opcio '--%s' ne prenas argumenton\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: la opcio '%c%s' ne prenas argumenton\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: la opcio '%s' bezonas argumenton\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: nerekonata opcio '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: nerekonata opcio '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: nepermesata opcio -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: nevalida opcio -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opcio bezonas argumenton -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: la opcio '-W %s' estas dubasenca\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: la opcio '-W %s' ne prenas argumenton\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: la opcio '%s' bezonas argumenton\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -312,6 +312,9 @@ "alia dosierujo povas esti specifita per la media variablo TEXTDOMAINDIR.\n" "Normala serĉdosierujo: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: nepermesata opcio -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/es.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/es.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/es.po gettext-0.18.1.1/gettext-runtime/po/es.po --- gettext-0.17/gettext-runtime/po/es.po 2007-11-02 02:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/es.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext-runtime 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2005-06-22 19:36-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -21,69 +22,66 @@ # Nota: El error es del sistema, pero no se sabe cul es el error, # por eso es (adems) desconocido. -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Hay un error del sistema desconocido" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: la opcin `%s' es ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: la opcin `--%s' no admite ningn argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: la opcin `%c%s' no admite ningn argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: la opcin `%s' requiere un argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opcin no reconocida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opcin no reconocida `%c%s'\n" -# acepto la sugerencia de em en cuanto a que invlida parece crcel -# o intil pero mejor puse invlida -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opcin invlida -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opcin invlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: la opcin requiere un argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: la opcin `-W %s' es ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: la opcin `-W %s' no admite ningn argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: la opcin `%s' requiere un argumento\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -351,6 +349,11 @@ "puede especificar otro lugar.\n" "Directorio de bsqueda estndar: %s\n" +# acepto la sugerencia de em en cuanto a que invlida parece crcel +# o intil pero mejor puse invlida +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opcin invlida -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/et.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/et.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/et.po gettext-0.18.1.1/gettext-runtime/po/et.po --- gettext-0.17/gettext-runtime/po/et.po 2007-11-02 02:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/et.po 2010-06-06 12:49:57.000000000 +0000 @@ -5,10 +5,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.37\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-04-30 16:25+0200\n" "Last-Translator: Ivar Smolin \n" "Language-Team: Estonian \n" +"Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" @@ -18,67 +19,66 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Tundmatu ssteemne viga" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: vti `%s' on mitmethenduslik\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: vtmel `--%s' ei tohi olla argumente\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: vtmel `%c%s' ei tohi olla argumente\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: vtme `%s' jrel peab olema argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: tundmatu vti `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: tundmatu vti `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: lubamatu vti -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: vigane vti -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: vtme jrel peab olema argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: vti `-W %s' on mitmethenduslik\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: vtmel `-W %s' ei tohi olla argumente\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: vtme `%s' jrel peab olema argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -308,6 +308,9 @@ "lugeda keskkonnamuutujast TEXTDOMAINDIR.\n" "Standardne otsinukataloog: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: lubamatu vti -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -1086,8 +1089,8 @@ #~ "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " #~ "obsolete %ld.\n" #~ msgstr "" -#~ "%sLoetud %ld vana + %ld viidet, hendatud %ld, kahtlaseid %ld, puuduvaid %" -#~ "ld, vananenuid %ld.\n" +#~ "%sLoetud %ld vana + %ld viidet, hendatud %ld, kahtlaseid %ld, puuduvaid " +#~ "%ld, vananenuid %ld.\n" #~ msgid " done.\n" #~ msgstr " valmis.\n" @@ -1453,8 +1456,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/fi.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/fi.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/fi.po gettext-0.18.1.1/gettext-runtime/po/fi.po --- gettext-0.17/gettext-runtime/po/fi.po 2007-11-02 02:22:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/fi.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-21 00:28+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,67 +20,66 @@ msgid "write error" msgstr "virhe kirjoitettaessa" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Tuntematon järjestelmän virhe" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: valitsin ”%s” on moniselitteinen\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: valitsin ”--%s” ei salli argumenttia\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: valitsin ”%c%s” ei salli argumenttia\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: valitsin ”%s” vaatii argumentin\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: tuntematon valitsin ”--%s”\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: tuntematon valitsin ”%c%s”\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: virheellinen valitsin -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: virheellinen valitsin -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: valitsin vaatii argumentin -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: valitsin ”-W %s” on moniselitteinen\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: valitsin ”-W %s” ei salli argumenttia\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: valitsin ”%s” vaatii argumentin\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -319,3 +319,6 @@ "hakemistossa, vaihtoehtoinen sijainti voidaan määritellä ympäristömuuttu-\n" "jalla TEXTDOMAINDIR.\n" "Perushakemisto, josta haku suoritetaan: %s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: virheellinen valitsin -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/fr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/fr.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/fr.po gettext-0.18.1.1/gettext-runtime/po/fr.po --- gettext-0.17/gettext-runtime/po/fr.po 2007-11-02 02:22:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/fr.po 2010-06-06 12:49:57.000000000 +0000 @@ -10,10 +10,11 @@ msgstr "" "Project-Id-Version: GNU gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-27 13:43+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,67 +24,66 @@ msgid "write error" msgstr "erreur d'écriture" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erreur système non identifiée" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s : l'option « %s » est ambiguë\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s : l'option « --%s » ne tolère pas d'argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s : l'option « %c%s » ne tolère pas d'argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s : l'option « %s » exige un argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s : l'option « --%s » n'est pas connue\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s : l'option « %c%s » n'est pas connue\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s : l'option « --%c » n'est pas permise\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s : l'option « --%c » n'est pas valide\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s : l'option « --%c » exige un argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s : l'option « -W %s » est ambiguë\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s : l'option « -W %s » ne tolère pas d'argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s : l'option « %s » exige un argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -316,6 +316,9 @@ "dossier.\n" "Répertoire standard de recherche : %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s : l'option « --%c » n'est pas permise\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -383,8 +386,8 @@ #~ msgid "" #~ "format specifications in 'msgid' and '%s' for argument %u are not the same" #~ msgstr "" -#~ "spécifications de format entre « msgid » et « %s » de l'argument %u ne " -#~ "sont pas identiques" +#~ "spécifications de format entre « msgid » et « %s » de l'argument %u " +#~ "ne sont pas identiques" #~ msgid "" #~ "a format specification for argument %u, as in '%s', doesn't exist in " @@ -394,14 +397,15 @@ #~ "n'existe pas dans « msgid »" #~ msgid "a format specification for argument %u doesn't exist in '%s'" -#~ msgstr "spécification de format de l'argument %u n'existe pas dans « %s »" +#~ msgstr "" +#~ "spécification de format de l'argument %u n'existe pas dans « %s »" #~ msgid "" #~ "a format specification for argument {%u}, as in '%s', doesn't exist in " #~ "'msgid'" #~ msgstr "" -#~ "spécification de format de l'argument {%u}, comme dans « %s », n'existe " -#~ "pas dans « msgid »" +#~ "spécification de format de l'argument {%u}, comme dans « %s », " +#~ "n'existe pas dans « msgid »" #~ msgid "a format specification for argument {%u} doesn't exist in '%s'" #~ msgstr "" @@ -411,8 +415,8 @@ #~ "format specifications in 'msgid' and '%s' for argument {%u} are not the " #~ "same" #~ msgstr "" -#~ "spécifications de format de « msgid » et « %s » de l'argument {%u} ne " -#~ "sont pas les mêmes" +#~ "spécifications de format de « msgid » et « %s » de l'argument {%u} " +#~ "ne sont pas les mêmes" #~ msgid "format specifications in 'msgid' and '%s' are not equivalent" #~ msgstr "" @@ -428,15 +432,15 @@ #~ "format specifications in 'msgid' expect a mapping, those in '%s' expect a " #~ "tuple" #~ msgstr "" -#~ "spécifications de format de « msgid » requièrent un mapping, celles de " -#~ "« %s » requièrent un tuple" +#~ "spécifications de format de « msgid » requièrent un mapping, celles " +#~ "de « %s » requièrent un tuple" #~ msgid "" #~ "format specifications in 'msgid' expect a tuple, those in '%s' expect a " #~ "mapping" #~ msgstr "" -#~ "spécifications de format de « msgid » requièrent un tuple, celles de « " -#~ "%s » requièrent un mapping" +#~ "spécifications de format de « msgid » requièrent un tuple, celles de " +#~ "« %s » requièrent un mapping" #~ msgid "" #~ "a format specification for argument '%s', as in '%s', doesn't exist in " @@ -446,14 +450,15 @@ #~ "n'existe pas dans « msgid »" #~ msgid "a format specification for argument '%s' doesn't exist in '%s'" -#~ msgstr "spécification de format de l'argument « %s » n'existe pas « %s »" +#~ msgstr "" +#~ "spécification de format de l'argument « %s » n'existe pas « %s »" #~ msgid "" #~ "format specifications in 'msgid' and '%s' for argument '%s' are not the " #~ "same" #~ msgstr "" -#~ "spécifications de format de « msgid » et de « %s » de l'argument « %s " -#~ "» ne sont pas les mêmes" +#~ "spécifications de format de « msgid » et de « %s » de l'argument « " +#~ "%s » ne sont pas les mêmes" #~ msgid "Usage: %s [OPTION]\n" #~ msgstr "Usage: %s [OPTION]\n" @@ -546,7 +551,8 @@ #~ " --untranslated conserver les non traduits, enlever ceux " #~ "traduits\n" #~ " --no-fuzzy enlever les messages marqués « fuzzy »\n" -#~ " --only-fuzzy conserver les messages marqués « fuzzy »\n" +#~ " --only-fuzzy conserver les messages marqués « fuzzy " +#~ "»\n" #~ " --no-obsolete enlever les messages obsolètes #~\n" #~ " --only-obsolete conserver les messages obsolètes #~\n" @@ -561,9 +567,10 @@ #~ "obsolete\n" #~ msgstr "" #~ "Manipulation des attributs:\n" -#~ " --set-fuzzy marquer tous les messages comme « fuzzy »\n" -#~ " --clear-fuzzy marquer tous les messages comme non-« fuzzy " +#~ " --set-fuzzy marquer tous les messages comme « fuzzy " #~ "»\n" +#~ " --clear-fuzzy marquer tous les messages comme non-« " +#~ "fuzzy »\n" #~ " --set-obsolete marquer tous les messages comme obsolètes\n" #~ " --clear-obsolete marquer tous les messages comme non-" #~ "obsolètes\n" @@ -598,8 +605,8 @@ #~ " -i, --indent sortie en style indenté\n" #~ " --no-location ne pas produire les lignes « #: fichier:" #~ "ligne »\n" -#~ " -n, --add-location générer les lignes de format « #: fichier:" -#~ "ligne » (par défaut)\n" +#~ " -n, --add-location générer les lignes de format « #: " +#~ "fichier:ligne » (par défaut)\n" #~ " --strict générer un fichier .po avec conformité " #~ "stricte Uniforum\n" #~ " -w, --width=COLONNES limiter le nombre de COLONNES en sortie\n" @@ -685,7 +692,8 @@ #~ "fois\n" #~ " (sans limite par défaut i.e. = à " #~ "zéro)\n" -#~ " -u, --unique identique à « -< 2 ou --less-than=2 »\n" +#~ " -u, --unique identique à « -< 2 ou --less-than=2 " +#~ "»\n" #~ msgid "" #~ "Output details:\n" @@ -727,8 +735,8 @@ #~ " -i, --indent sortie en style indenté\n" #~ " --no-location ne pas produire les lignes « #: fichier:" #~ "ligne »\n" -#~ " -n, --add-location générer les lignes de format « #: fichier:" -#~ "ligne » (par défaut)\n" +#~ " -n, --add-location générer les lignes de format « #: " +#~ "fichier:ligne » (par défaut)\n" #~ " --strict générer un fichier .po avec conformité " #~ "stricte Uniforum\n" #~ " -w, --width=COLONNES limiter le nombre de COLONNES en sortie\n" @@ -767,8 +775,8 @@ #~ msgstr "" #~ "Comparer deux fichiers .po style Uniforum et vérifier qu'ils " #~ "contiennent\n" -#~ "le même ensemble de chaînes « msgid ». Le fichier def.po contient les " -#~ "vieilles\n" +#~ "le même ensemble de chaînes « msgid ». Le fichier def.po contient " +#~ "les vieilles\n" #~ "traductions. Le fichier ref.pot est le dernier fichier PO récemment " #~ "créé ou un \n" #~ "fichier patron PO (souvent créé par xgettext).\n" @@ -864,7 +872,8 @@ #~ "fois\n" #~ " (sans limite par défaut i.e. = à " #~ "zéro)\n" -#~ " -u, --unique identique à « -< 2 ou --less-than=2 »\n" +#~ " -u, --unique identique à « -< 2 ou --less-than=2 " +#~ "»\n" #~ msgid "" #~ "Output details:\n" @@ -898,15 +907,16 @@ #~ " -i, --indent sortie en style indenté\n" #~ " --no-location ne pas produire les lignes « #: fichier:" #~ "ligne »\n" -#~ " -n, --add-location générer les lignes de format « #: fichier:" -#~ "ligne » (par défaut)\n" +#~ " -n, --add-location générer les lignes de format « #: " +#~ "fichier:ligne » (par défaut)\n" #~ " --strict générer un fichier .po avec conformité " #~ "stricte Uniforum\n" #~ " -w, --width=COLONNES limiter le nombre de COLONNES en sortie\n" #~ " -s, --sort-output générer une sortie triée\n" #~ " -F, --sort-by-file trier la sortie selon la localisation des " #~ "fichiers\n" -#~ " --omit-header omettre les en-têtes pour « msgid \"\" »\n" +#~ " --omit-header omettre les en-têtes pour « msgid \"\" " +#~ "»\n" #~ msgid "Converts a translation catalog to a different character encoding.\n" #~ msgstr "" @@ -1019,8 +1029,8 @@ #~ msgid "" #~ "A special builtin command called '0' outputs the translation, followed by " #~ "a\n" -#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -" -#~ "0\".\n" +#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs " +#~ "-0\".\n" #~ msgstr "" #~ "Une commande spéciale interne appelée sorties « 0 » de traduction, " #~ "suivi par un\n" @@ -1302,8 +1312,8 @@ #~ msgid "" #~ "Output details:\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " --no-hash binary file will not include the hash " #~ "table\n" #~ msgstr "" @@ -1354,7 +1364,8 @@ #~ "le catalogue de messages contient des formes de traduction au pluriel..." #~ msgid "...but header entry lacks a \"plural=EXPRESSION\" attribute" -#~ msgstr "...mais l'attribut « plural=EXPRESSION » est absente de l'en-tête" +#~ msgstr "" +#~ "...mais l'attribut « plural=EXPRESSION » est absente de l'en-tête" #~ msgid "...but header entry lacks a \"nplurals=INTEGER\" attribute" #~ msgstr "...mais l'attribut « nplurals=ENTIER » est absent de l'en-tête" @@ -1393,11 +1404,13 @@ #~ msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" #~ msgstr "" -#~ "les chaînes « msgid » et « msgid_plural » ne débutent pas par « \\n »" +#~ "les chaînes « msgid » et « msgid_plural » ne débutent pas par « " +#~ "\\n »" #~ msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" #~ msgstr "" -#~ "les chaînes « msgid » et « msgstr[%u] » ne débutent pas par « \\n »" +#~ "les chaînes « msgid » et « msgstr[%u] » ne débutent pas par « \\n " +#~ "»" #~ msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" #~ msgstr "" @@ -1410,8 +1423,8 @@ #~ msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" #~ msgstr "" -#~ "les chaînes « msgid » et « msgstr[%u] » ne se terminent pas par « \\n " -#~ "»" +#~ "les chaînes « msgid » et « msgstr[%u] » ne se terminent pas par « " +#~ "\\n »" #~ msgid "`msgid' and `msgstr' entries do not both end with '\\n'" #~ msgstr "" @@ -1424,8 +1437,8 @@ #~ msgid "'%s' is not a valid %s format string, unlike 'msgid'" #~ msgstr "" -#~ "« %s » n'a pas une chaîne de format %s valide, contrairement à « msgid " -#~ "»" +#~ "« %s » n'a pas une chaîne de format %s valide, contrairement à « " +#~ "msgid »" #~ msgid "msgstr lacks the keyboard accelerator mark '%c'" #~ msgstr "« msgstr » n'a pas de raccourci clavier pour la marque « %c »" @@ -1437,7 +1450,8 @@ #~ msgstr "Le champ en-tête « %s » est absent de l'en-tête\n" #~ msgid "header field `%s' should start at beginning of line\n" -#~ msgstr "Le champ en-tête « %s » devrait s'appuyer au début de la ligne\n" +#~ msgstr "" +#~ "Le champ en-tête « %s » devrait s'appuyer au début de la ligne\n" #~ msgid "some header fields still have the initial default value\n" #~ msgstr "" @@ -1746,8 +1760,8 @@ #~ "domain \"%s\" in input file `%s' doesn't contain a header entry with a " #~ "charset specification" #~ msgstr "" -#~ "Le domaine « %s » dans le fichier d'entrée « %s » ne contient pas d'en-" -#~ "tête avec la spécification d'un charset" +#~ "Le domaine « %s » dans le fichier d'entrée « %s » ne contient pas " +#~ "d'en-tête avec la spécification d'un charset" #~ msgid "target charset \"%s\" is not a portable encoding name." #~ msgstr "Le charset cible « %s » n'a pas un nom d'encodage portable." @@ -1769,8 +1783,8 @@ #~ "Converting the output to UTF-8.\n" #~ "To select a different output encoding, use the --to-code option.\n" #~ msgstr "" -#~ "Les fichiers d'entrée contiennent des messages encodés différemment, %" -#~ "s et %s entre autres.\n" +#~ "Les fichiers d'entrée contiennent des messages encodés différemment, " +#~ "%s et %s entre autres.\n" #~ "Conversion de la sortie en format UTF-8.\n" #~ "Pour sélectionner un encodage différent de sortie, utiliser l'option --" #~ "to-code.\n" @@ -1833,15 +1847,15 @@ #~ "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() " #~ "does not support this conversion." #~ msgstr "" -#~ "Ne peut convertir de « %s » vers « %s ». %s s'appuie sur iconv() qui ne " -#~ "supporte pas cette conversion." +#~ "Ne peut convertir de « %s » vers « %s ». %s s'appuie sur iconv() qui " +#~ "ne supporte pas cette conversion." #~ msgid "" #~ "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version " #~ "was built without iconv()." #~ msgstr "" -#~ "Ne peut convertir de « %s » vers « %s ». %s s'appuie sur iconv(). Cette " -#~ "version a été compilée sans iconv()." +#~ "Ne peut convertir de « %s » vers « %s ». %s s'appuie sur iconv(). " +#~ "Cette version a été compilée sans iconv()." #~ msgid "backup type" #~ msgstr "type d'archive" @@ -2287,8 +2301,8 @@ #~ msgid "" #~ "internationalized messages should not contain the `\\%c' escape sequence" #~ msgstr "" -#~ "un message à traduire ne doit pas contenir la séquence d'échappement « " -#~ "\\%c »" +#~ "un message à traduire ne doit pas contenir la séquence d'échappement " +#~ "« \\%c »" #~ msgid "" #~ "The following msgid contains non-ASCII characters.\n" @@ -2524,8 +2538,8 @@ #~ msgid "a format specification for argument '%s' doesn't exist in 'msgstr'" #~ msgstr "" -#~ "les spécifications de format de l'argument «%s» n'existent pas « msgstr " -#~ "»" +#~ "les spécifications de format de l'argument «%s» n'existent pas « " +#~ "msgstr »" #~ msgid "a format specification for argument %u doesn't exist in 'msgstr'" #~ msgstr "" @@ -2617,8 +2631,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -2665,7 +2679,8 @@ #~ " -V, --version identifier le programme, puis terminer\n" #~ "\n" #~ "La répétition de l'option « -v » augment le niveau de verbosité.\n" -#~ "Si FICHIER vaut « - », lit l'entrée standard. Si SORTIE vaut « - »,\n" +#~ "Si FICHIER vaut « - », lit l'entrée standard. Si SORTIE vaut « - " +#~ "»,\n" #~ "écrit sur la sortie standard.\n" #~ msgid "while creating hash table" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ga.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ga.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/ga.po gettext-0.18.1.1/gettext-runtime/po/ga.po --- gettext-0.17/gettext-runtime/po/ga.po 2007-11-02 02:22:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ga.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-14 12:15-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -18,67 +19,66 @@ msgid "write error" msgstr "earrid sa scrobh" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Earrid chrais anaithnid" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: T an rogha `%s' dbhroch\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: n cheadatear argint i ndiaidh na rogha `--%s'\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: n cheadatear argint i ndiaidh na rogha `%c%s'\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: t argint de dhth i ndiaidh na rogha `%s'\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: rogha anaithnid `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: rogha anaithnid `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: rogha neamhcheadaithe -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: rogha neamhbhail -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: t argint de dhth i ndiaidh na rogha -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: T an rogha `-W %s' dbhroch\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: n cheadatear argint i ndiaidh na rogha `-W %s'\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: t argint de dhth i ndiaidh na rogha `%s'\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -311,6 +311,9 @@ "tr sid na hathrige timpeallachta TEXTDOMAINDIR.\n" "Gnthchomhadlann chuardaigh: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: rogha neamhcheadaithe -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " diff -Nru gettext-0.17/gettext-runtime/po/gettext-runtime.pot gettext-0.18.1.1/gettext-runtime/po/gettext-runtime.pot --- gettext-0.17/gettext-runtime/po/gettext-runtime.pot 2007-11-02 02:22:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/gettext-runtime.pot 2010-06-06 12:49:57.000000000 +0000 @@ -6,12 +6,13 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.17\n" +"Project-Id-Version: GNU gettext-runtime 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,65 +21,64 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" msgstr "" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" msgstr "" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" msgstr "" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' requires an argument\n" msgstr "" #: gnulib-lib/xmalloc.c:37 Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/gl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/gl.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/gl.po gettext-0.18.1.1/gettext-runtime/po/gl.po --- gettext-0.17/gettext-runtime/po/gl.po 2007-11-02 02:22:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/gl.po 2010-06-06 12:49:57.000000000 +0000 @@ -11,10 +11,11 @@ msgstr "" "Project-Id-Version: gettext 0.10.39\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-07-28 17:00+0200\n" "Last-Translator: Jess Bravo lvarez \n" "Language-Team: Galician \n" +"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,67 +25,66 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro de sistema descoecido" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: a opcin `%s' ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: a opcin `--%s' non permite ningn argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: a opcin `%c%s' non permite ningn argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: a opcin `%s' require un argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opcin `--%s' descoecida\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opcin `%c%s' descoecida\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opcin ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opcin non vlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: a opcin require un argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: a opcin `-W %s' ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: a opcin `-W %s' non permite ningn argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: a opcin `%s' require un argumento\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -304,6 +304,9 @@ "pdese especificar outro mediante a variable TEXTDOMAINDIR.\n" "Directorio estndar de busca: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opcin ilegal -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -1484,8 +1487,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -1511,8 +1514,8 @@ #~ "Os argumentos obrigatorios para as opcins longas son tamn obrigatorios " #~ "para\n" #~ "as opcins curtas.\n" -#~ " -a, --alignment=NMERO alia-las cadeas a NMERO bytes (defecto: %" -#~ "d)\n" +#~ " -a, --alignment=NMERO alia-las cadeas a NMERO bytes (defecto: " +#~ "%d)\n" #~ " -c, --check facer comprobacins dependentes da " #~ "linguaxe\n" #~ " nas cadeas\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/id.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/id.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/id.po gettext-0.18.1.1/gettext-runtime/po/id.po --- gettext-0.17/gettext-runtime/po/id.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/id.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,91 +1,92 @@ -# translation of gettext-runtime-0.15-pre5.po to Indonesian +# Pesan bahasa indonesia untuk gettext-runtime. # GNU gettext-runtime-0.14.1 (Indonesian) # Copyright (C) 1999, 2003, 2004, 2006 Free Software Foundation, Inc. # +# This file is distributed under the same license as the gettext package. # Tedi Heriyanto , 1999, 2003, 2004. # Tedi Heriyanto , 2006. +# Arif E. Nugroho , 2008, 2010. msgid "" msgstr "" -"Project-Id-Version: gettext-runtime-0.15-pre5\n" +"Project-Id-Version: gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2006-09-27 20:10+0700\n" -"Last-Translator: Tedi Heriyanto \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-24 13:00+0700\n" +"Last-Translator: Arif E. Nugroho \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: KBabel 1.11.2\n" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "kesalahan penulisan" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Kesalahan sistem tak dikenal" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: pilihan `%s' rancu\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: pilihan '%s' rancu\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: pilihan `--%s' tidak membolehkan argumen\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: pilihan '--%s' tidak membolehkan argumen\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: pilihan `%c%s' tidak membolehkan argumen\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: pilihan '%c%s' tidak membolehkan argumen\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "pilihan %s: `%s' memerlukan sebuah argumen\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: pilihan '--%s' memerlukan sebuah argumen\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: pilihan tak dikenal `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: pilihan tak dikenal '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: pilihan tak dikenal `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: pilihan tak dikenal '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: pilihan ilegal -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: pilihan tidak valid -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: pilihan tidak valid -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: pilihan membutuhkan sebuah argumen -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: pilihan membutuhkan sebuah argumen -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: pilihan '-W %s' rancu\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: pilihan `-W %s' rancu\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: pilihan '-W %s' tidak membolehkan sebuah argumen\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: pilihan `-W %s' tidak membolehkan sebuah argumen\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: pilihan '-W %s' memerlukan sebuah argumen\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "Memori habis" +msgstr "kehabisan memori" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -95,6 +96,10 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Hak Cipta (C) %s Free Software Foundation, Inc.\n" +"Lisensi GPLv3+: GNU GPL versi 3 atau selanjutnya \n" +"Ini adalah piranti lunak bebas: anda bebas untuk mengubah dan meredistribusikannya.\n" +"TIDAK ADA GARANSI, sampai batas yang diijinkan oleh hukum yang berlaku.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format @@ -124,7 +129,7 @@ #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr "Penggunaan: %s [OPTION] [SHELL-FORMAT]\n" +msgstr "Penggunaan: %s [PILIHAN] [SHELL-FORMAT]\n" #: src/envsubst.c:181 #, c-format, no-wrap @@ -211,8 +216,8 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" -"Pemakaian: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" -"atau: %s [OPTION] -s [MSGID]...\n" +"Pemakaian: %s [PILIHAN] [[TEXTDOMAIN] ID-PESAN]\n" +"atau: %s [PILIHAN] -s [ID-PESAN]...\n" #: src/gettext.c:249 #, c-format, no-wrap @@ -237,8 +242,8 @@ " -h, --help tampilkan bantuan ini dan keluar\n" " -n hilangkan newline yang mengekor\n" " -V, --version tampilkan informasi versi dan keluar\n" -" [TEXTDOMAIN] MSGID mengambil pesan terjemahan yang sesuai\n" -" untuk MSGID dari TEXTDOMAIN\n" +" [TEXTDOMAIN] ID-PESAN mengambil pesan terjemahan yang sesuai\n" +" untuk ID-PESAN dari TEXTDOMAIN\n" #: src/gettext.c:264 #, c-format, no-wrap @@ -264,7 +269,7 @@ #: src/ngettext.c:212 #, c-format, no-wrap msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr "Pemakaian: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" +msgstr "Pemakaian: %s [PILIHAN] [TEXTDOMAIN] ID-PESAN ID-PESAN-PLURAL JUMLAH\n" #: src/ngettext.c:217 #, c-format, no-wrap @@ -293,9 +298,9 @@ " -h, --help tampilkan bantuan ini dan keluar\n" " -n hilangkan newline yang mengekor\n" " -V, --version tampilkan informasi versi dan keluar\n" -" [TEXTDOMAIN] mengambil pesan terjemahan dari TEXTDOMAIN\n" -" MSGID MSGID-PLURAL terjemahkan MSGID (tunggal) / MSGID-PLURAL (plural)\n" -" COUNT pilih bentuk tunggal/plural berdasarkan nilai ini\n" +" [TEXTDOMAIN] mengambil pesan terjemahan dari TEXTDOMAIN\n" +" ID-PESAN ID-PESAN-PLURAL terjemahkan ID-PESAN (tunggal) / ID-PESAN-PLURAL (plural)\n" +" JUMLAH pilih bentuk tunggal/plural berdasarkan nilai ini\n" #: src/ngettext.c:233 #, c-format, no-wrap @@ -312,6 +317,9 @@ "lingkungan TEXTDOMAINDIR.\n" "Direktori pencarian standar: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: pilihan ilegal -- %c\n" + # ) #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/it.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/it.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/it.po gettext-0.18.1.1/gettext-runtime/po/it.po --- gettext-0.17/gettext-runtime/po/it.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/it.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-30 17:39+0000\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" @@ -20,67 +21,66 @@ msgid "write error" msgstr "errore di scrittura" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Errore di sistema sconosciuto" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: l'opzione '%s' è ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: l'opzione '--%s' non accetta argomenti\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: l'opzione '%c%s' non accetta argomenti\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: l'opzione '%s' richiede un argomento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opzione '--%s' non riconosciuta\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opzione '%c%s' non riconosciuta\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opzione illecita -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opzione non valida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: l'opzione richiede un argomento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: l'opzione '-W %s' è ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: l'opzione '-W %s' non accetta argomenti\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: l'opzione '%s' richiede un argomento\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -316,3 +316,6 @@ "nella directory solita, può essere specificata un'altra posizione con la\n" "variabile d'ambiente TEXTDOMAINDIR.\n" "Directory di ricerca standard: %s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opzione illecita -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ja.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ja.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/ja.po gettext-0.18.1.1/gettext-runtime/po/ja.po --- gettext-0.17/gettext-runtime/po/ja.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ja.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,15 +1,17 @@ # Translation of `gettext-runtime' messages to Japanese. -# Copyright (C) 1999, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. -# Masahito Yamaga , 2007. +# Copyright (C) 1999, 2002, 2003, 2006, 2007, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Masahito Yamaga , 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.16.2-pre5\n" +"Project-Id-Version: GNU gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-10-16 10:29+0900\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 19:02+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,66 +21,65 @@ msgid "write error" msgstr "񤭹ߥ顼" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "̤ΤΥƥ२顼" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: ץ `%s' ۣǤ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: ץ '%s' ۣǤ\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: ץ `--%s' ˤϰϤޤ\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: ץ '--%s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: ץ `%c%s' ˤϰϤޤ\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: ץ '%c%s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: ץ `%s' ˤϰɬפǤ\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: ץ '--%s' ˤϰɬפǤ\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ץ `--%s' ǧޤ\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: ץ '--%s' Բ\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ץ `%c%s' ǧޤ\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: ץ '%c%s' Բ\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ʥץ -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: ̵ʥץ -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ̵ʥץ -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: ɬפʥץ -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: ɬפʥץ -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: ץ '-W %s' ۣǤ\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: ץ `-W %s' ۣǤ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: ץ '-W %s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: ץ `-W %s' ˤϰϤޤ\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: ץ '-W %s' ˤϰɬפǤ\n" #: gnulib-lib/xmalloc.c:37 #, c-format @@ -311,3 +312,6 @@ "ɥᥤ󤬷ޤޤ. ⤷ɸΥǥ쥯ȥ˥å\n" "Ĥʤ, Ķѿ TEXTDOMAINDIR ǻꤵ줿꤫õޤ.\n" "ɸθǥ쥯ȥ: %s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ʥץ -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ko.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ko.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/ko.po gettext-0.18.1.1/gettext-runtime/po/ko.po --- gettext-0.17/gettext-runtime/po/ko.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ko.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,90 +1,92 @@ -# GNU gettext-runtime ѱ ޽ -# Copyright (C) 1996, 1997, 2001, 2002, 2003 Free Software Foundation, Inc. +# GNU gettext-runtime의 한국어 메시지 +# Copyright (C) 1996, 1997, 2001, 2002, 2003, 2006, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# # Bang Jun-Young , 1995-1997. -# Changwoo Ryu , 2001-2006. +# Changwoo Ryu , 2001-2006, 2009, 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.15-pre5\n" +"Project-Id-Version: GNU gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2006-07-02 00:43+0900\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-15 23:27+0900\n" "Last-Translator: Changwoo Ryu \n" "Language-Team: Korean \n" +"Language: ko\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=EUC-KR\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr " " +msgstr "쓰기 오류" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr " ý " +msgstr "알 수 없는 시스템 오류" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: `%s'() ȣ ɼԴϴ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: '%s' 옵션은 모호한 옵션입니다\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: `--%s' ɼ μ ʽϴ\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: '--%s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: `%c%s' ɼ μ ʽϴ\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: '%c%s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: `%s' ɼ μ ʿմϴ\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: '--%s' 옵션은 인수가 필요합니다\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ν ɼ `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: 인식할 수 없는 옵션 '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ν ɼ `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: 인식할 수 없는 옵션 '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ߸ ɼ -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: 잘못된 옵션 -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ɼ -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: 이 옵션은 인수가 필요합니다 -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: ɼ μ ʿմϴ -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: '-W %s' 옵션은 모호한 옵션입니다\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: `-W %s'() ȣ ɼԴϴ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: '-W %s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: `-W %s' ɼ μ ʽϴ\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: '-W %s' 옵션은 인수가 필요합니다\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "޸𸮰 ٴڳϴ" +msgstr "메모리가 바닥났습니다" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -94,11 +96,15 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format msgid "Written by %s.\n" -msgstr "%s() ϴ.\n" +msgstr "%s이(가) 만들었습니다.\n" #. This is a proper name. See the gettext manual, section Names. #: src/envsubst.c:118 @@ -108,52 +114,52 @@ #: src/envsubst.c:127 src/gettext.c:157 src/ngettext.c:141 #, c-format msgid "too many arguments" -msgstr "μ ʹ " +msgstr "인수가 너무 많음" #: src/envsubst.c:138 src/gettext.c:167 src/ngettext.c:153 #, c-format msgid "missing arguments" -msgstr "μ " +msgstr "인수가 빠졌음" #: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr " `%s --help' Ͻʽÿ\n" +msgstr "더 많은 정보를 보려면 `%s --help' 하십시오.\n" #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr ": %s [<ɼ>] [<->]\n" +msgstr "사용법: %s [<옵션>] [<쉘-형식>]\n" #: src/envsubst.c:181 #, c-format, no-wrap msgid "Substitutes the values of environment variables.\n" -msgstr "ȯ ġȯմϴ.\n" +msgstr "환경 변수 값을 치환합니다.\n" #: src/envsubst.c:185 #, c-format, no-wrap msgid "Operation mode:\n" -msgstr " :\n" +msgstr "동작 모드:\n" #: src/envsubst.c:188 #, c-format, no-wrap msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" -msgstr " -v, --variables <-> մϴ\n" +msgstr " -v, --variables <쉘-형식>에 나오는 변수를 출력합니다\n" #: src/envsubst.c:192 #, c-format, no-wrap msgid "Informative output:\n" -msgstr " :\n" +msgstr "정보 출력:\n" #: src/envsubst.c:195 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr " -h, --help ǥϰ ϴ\n" +msgstr " -h, --help 이 도움말을 표시하고 끝납니다\n" #: src/envsubst.c:198 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr " -V, --version ǥϰ ϴ\n" +msgstr " -V, --version 버전 정보를 표시하고 끝납니다\n" #: src/envsubst.c:202 #, c-format, no-wrap @@ -165,10 +171,10 @@ "substituted; otherwise all environment variables references occurring in\n" "standard input are substituted.\n" msgstr "" -"Ϲ 忡, ǥ Է ǥ մϴ. , $ Ȥ\n" -"${} ȯ شǴ ȯ ġȯմϴ. \n" -"<-> , <-> ȯ ġȯմϴ; <->\n" -" ǥ Է ȯ ġȯմϴ.\n" +"일반 동작 모드에서는, 표준 입력을 표준 출력으로 복사합니다. 이 때, $변수 혹은\n" +"${변수} 형식의 환경 변수는 해당되는 환경 변수 값으로 치환합니다. 만약\n" +"<쉘-형식>을 쓰면, <쉘-형식>에서 사용한 환경 변수만 치환합니다; <쉘-형식>을\n" +"쓰지 않으면 표준 입력의 모든 환경 변수를 치환합니다.\n" #: src/envsubst.c:211 #, c-format, no-wrap @@ -176,8 +182,8 @@ "When --variables is used, standard input is ignored, and the output consists\n" "of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" msgstr "" -"--variables ɼ ϸ, ǥ Է ϰ, <-> ȯ \n" -" ٿ ϳ մϴ.\n" +"--variables 옵션을 사용하면, 표준 입력을 무시하고, <쉘-형식>에 참조된 환경 변수를\n" +"한 줄에 하나씩 출력합니다.\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying @@ -185,16 +191,16 @@ #. bugs (typically your translation team's web or email address). #: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 msgid "Report bugs to .\n" -msgstr " ˷ ֽʽÿ.\n" +msgstr "로 문제점을 알려 주십시오.\n" #: src/envsubst.c:442 #, c-format msgid "error while reading \"%s\"" -msgstr "\"%s\"() д ߻" +msgstr "\"%s\"을(를) 읽는 동안 오류 발생" #: src/envsubst.c:443 msgid "standard input" -msgstr "ǥ Է" +msgstr "표준 입력" #. This is a proper name. See the gettext manual, section Names. #: src/gettext.c:139 src/ngettext.c:129 @@ -207,13 +213,13 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" -": %s [<ɼ>] [[] ]\n" -"Ȥ: %s [<ɼ>] -s []...\n" +"사용법: %s [<옵션>] [[] ]\n" +"혹은: %s [<옵션>] -s []...\n" #: src/gettext.c:249 #, c-format, no-wrap msgid "Display native language translation of a textual message.\n" -msgstr "־ ޼ ǥմϴ.\n" +msgstr "주어진 메시지에 대한 고유어 번역문을 표시합니다.\n" #: src/gettext.c:253 #, c-format, no-wrap @@ -227,14 +233,14 @@ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" " to MSGID from TEXTDOMAIN\n" msgstr "" -" -d, --domain= ޽ ҷɴϴ\n" -" -e ̽ ڿ Ȯ մϴ\n" -" -E (ȣȯ õ)\n" -" -h, --help ְ մϴ\n" -" -n ٴ ٹٲ ڸ մϴ\n" -" -V, --version ǥϰ մϴ\n" -" [] ϴ ޽ \n" -" ҷɴϴ\n" +" -d, --domain= 번역된 메시지를 에서 불러옵니다\n" +" -e 몇몇 이스케이프 문자열의 확장을 가능케 합니다\n" +" -E (호환성을 위해 무시됨)\n" +" -h, --help 이 도움말을 보여주고 종료합니다\n" +" -n 따라붙는 줄바꿈 문자를 제거합니다\n" +" -V, --version 버전 정보를 표시하고 종료합니다\n" +" [] 에 대응하는 번역된 메시지를 에서\n" +" 불러옵니다\n" #: src/gettext.c:264 #, c-format, no-wrap @@ -248,19 +254,19 @@ "found in the selected catalog are translated.\n" "Standard search directory: %s\n" msgstr "" -" ڰ ־ , TEXTDOMAIN \n" -"ȯ ˴ϴ. ޽ Ϲ 丮 \n" -"ٸ, ȯ TEXTDOMAINDIR ٸ ġ \n" -"ֽϴ.\n" -"-s ɼ ̸ α׷ `echo' ó մϴ. ׷ \n" -"ܼ μ ǥ¿ ʽϴ. ſ \n" -"Ͽ Ǿ ִ ޽ µ˴ϴ.\n" -"⺻ Ž 丮: %s\n" +" 인자가 주어지지 않으면, 도메인은 TEXTDOMAIN \n" +"환경 변수로 결정됩니다. 메시지 목록이 일반적인 디렉터리에 \n" +"없다면, 환경 변수 TEXTDOMAINDIR로 다른 위치를 지정할 수 \n" +"있습니다.\n" +"-s 옵션이 쓰이면 프로그램은 `echo' 명령처럼 동작합니다. 그러나 \n" +"단순히 인수를 표준출력에 복사하지는 않습니다. 대신에 지정한 \n" +"목록에서 번역되어 있는 메시지만이 출력됩니다.\n" +"기본 탐색 디렉터리: %s\n" #: src/ngettext.c:212 #, c-format, no-wrap msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr ": %s [<ɼ>] [] <>\n" +msgstr "사용법: %s [<옵션>] [] <개수>\n" #: src/ngettext.c:217 #, c-format, no-wrap @@ -268,8 +274,8 @@ "Display native language translation of a textual message whose grammatical\n" "form depends on a number.\n" msgstr "" -"ڿ ޶, ־ ޼ \n" -"ǥմϴ.\n" +"숫자에 따라 문법이 달라지는, 주어진 메시지에 대한 고유어 번역문을\n" +"표시합니다.\n" #: src/ngettext.c:222 #, c-format, no-wrap @@ -283,14 +289,14 @@ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" " COUNT choose singular/plural form based on this value\n" msgstr "" -" -d, --domain=TEXTDOMAIN ޽ TEXTDOMAIN ҷɴϴ\n" -" -e ̽ ڿ Ȯ մϴ\n" -" -E (ȣȯ õ)\n" -" -h, --help ְ ϴ\n" -" -V, --version ǥϰ ϴ\n" -" [TEXTDOMAIN] ޽ TEXTDOMAIN ҷɴϴ\n" -" MSGID MSGID- MSGID(ܼ) / MSGID-() մϴ\n" -" ܼ/ մϴ\n" +" -d, --domain=TEXTDOMAIN 번역된 메시지를 TEXTDOMAIN에서 불러옵니다\n" +" -e 몇몇 이스케이프 문자열의 확장을 가능케 합니다\n" +" -E (호환성을 위해 무시됨)\n" +" -h, --help 이 도움말을 보여주고 끝납니다\n" +" -V, --version 버전 정보를 표시하고 끝납니다\n" +" [TEXTDOMAIN] 번역된 메시지를 TEXTDOMAIN에서 불러옵니다\n" +" MSGID MSGID-복수형 MSGID(단수) / MSGID-복수형(복수)을 번역합니다\n" +" 개수 이 값에 따라 단수/복수를 결정합니다\n" #: src/ngettext.c:233 #, c-format, no-wrap @@ -301,20 +307,8 @@ "variable TEXTDOMAINDIR.\n" "Standard search directory: %s\n" msgstr "" -"TEXTDOMAIN Ű ־ TEXTDOMAIN ȯ κ\n" -"˴ϴ. ޽ Ϲ 丮 ȯ \n" -"TEXTDOMAINDIR ٸ ġ ֽϴ.\n" +"TEXTDOMAIN 매개변수가 주어지지 않으면 도메인은 TEXTDOMAIN 환경 변수로부터\n" +"결정됩니다. 메시지 목록이 일반적인 디렉터리에 있지 않으면 환경 변수\n" +"TEXTDOMAINDIR로 다른 위치를 지정할 수 있습니다.\n" "\n" -"ǥ Ž 丮: %s\n" - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ " α׷ ƮԴϴ. ҽ Ͻʽÿ. " -#~ "ǰ\n" -#~ "̳ Ư ռ Ͽ,  ʽϴ.\n" +"표준 탐색 디렉터리: %s\n" diff -Nru gettext-0.17/gettext-runtime/po/LINGUAS gettext-0.18.1.1/gettext-runtime/po/LINGUAS --- gettext-0.17/gettext-runtime/po/LINGUAS 2007-10-30 23:33:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -1,2 +1,2 @@ # Set of available languages. -be ca cs da de el en@quot en@boldquot eo es et fi fr ga gl id it ja ko nb nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +be bg ca cs da de el en@quot en@boldquot eo es et fi fr ga gl id it ja ko nb nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-runtime/po/Makefile.in.in gettext-0.18.1.1/gettext-runtime/po/Makefile.in.in --- gettext-0.17/gettext-runtime/po/Makefile.in.in 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/Makefile.in.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ # Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper +# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public @@ -8,8 +8,8 @@ # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # -# Origin: gettext-0.17 -GETTEXT_MACRO_VERSION = 0.17 +# Origin: gettext-0.18 +GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ @@ -88,8 +88,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -193,8 +193,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -217,7 +224,6 @@ fi install-data-no: all install-data-yes: all - $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ @@ -269,7 +275,6 @@ fi installdirs-data-no: installdirs-data-yes: - $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ @@ -395,9 +400,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-runtime/po/Makevars gettext-0.18.1.1/gettext-runtime/po/Makevars --- gettext-0.17/gettext-runtime/po/Makevars 2006-04-03 11:34:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -11,8 +11,6 @@ XGETTEXT_OPTIONS = \ --keyword=_ --flag=_:1:pass-c-format \ --keyword=N_ --flag=N_:1:pass-c-format \ - --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' \ - --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' \ --flag=error:3:c-format --flag=error_at_line:5:c-format # This is the copyright holder that gets inserted into the header of the @@ -50,3 +48,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/nb.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/nb.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/nb.po gettext-0.18.1.1/gettext-runtime/po/nb.po --- gettext-0.17/gettext-runtime/po/nb.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/nb.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.37\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-05-09 02:08+02:00\n" "Last-Translator: Trond Endrestl \n" "Language-Team: Norwegian-bokml \n" +"Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,67 +20,66 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Ukjent systemfeil" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: flagget %s er flertydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: flagget --%s tillater ikke argumenter\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: flagget %c%s tillater ikke argumenter\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: flagget %s krever et argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: ukjent flagg --%s\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: ukjent flagg %c%s\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovlig flagg -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ugyldig flagg -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: flagg krever et argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: flagg -W %s er flertydig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: flagg -W %s tillater ikke et argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: flagget %s krever et argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -301,6 +301,9 @@ "miljvariabelen TEXTDOMAINDIR.\n" "Standard skekatalog er: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ulovlig flagg -- %c\n" + # Hva skal MERCHANTABILITY og FITNESS FOR PARTICULAR PURPOSE oversettes med? # Er denne oversettelsen grei nok? #~ msgid "" @@ -1395,8 +1398,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/nl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/nl.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/nl.po gettext-0.18.1.1/gettext-runtime/po/nl.po --- gettext-0.17/gettext-runtime/po/nl.po 2007-11-02 02:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/nl.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-runtime-0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -21,67 +22,66 @@ msgid "write error" msgstr "schrijffout" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Onbekende systeemfout" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: optie '%s' is niet eenduidig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: optie '--%s' staat geen argument toe\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: optie '%c%s' staat geen argument toe\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: optie '%s' vereist een argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: onbekende optie '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: onbekende optie '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ongeldige optie -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ongeldige optie -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: optie vereist een argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: optie '-W %s' is niet eenduidig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: optie '-W %s' staat geen argument toe\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: optie '%s' vereist een argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -317,3 +317,6 @@ "wordt in de gewone map, kan een andere locatie worden opgegeven via de\n" "omgevingsvariabele TEXTDOMAINDIR.\n" "Standaard zoekmap: %s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ongeldige optie -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/nn.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/nn.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/nn.po gettext-0.18.1.1/gettext-runtime/po/nn.po --- gettext-0.17/gettext-runtime/po/nn.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/nn.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,89 +1,92 @@ -# Norwegian messages for GNU gettext. (nynorsk dialect) +# Norwegian Nynorsk translation of GNU gettext-runtime # Copyright (C) 1996 Free Software Foundation, Inc. -# Karl Anders ygard , 1996. +# This file is distributed under the same license as the gettext package. # +# Karl Anders Øygard , 1996. +# Eirik U. Birkeland , 2008. msgid "" msgstr "" -"Project-Id-Version: GNU gettext 0.10.12\n" +"Project-Id-Version: gettext-runtime-0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 1996-03-21 08:46 EST\n" -"Last-Translator: Karl Anders ygard \n" -"Language-Team: Norwegian-nynorsk \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2008-08-13 18:40+0200\n" +"Last-Translator: Eirik U. Birkeland \n" +"Language-Team: Norwegian Nynorsk \n" +"Language: nn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Content-Transfer-Encoding: 8-bit\n" +"X-Generator: Lokalize 0.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "" +msgstr "skrivefeil" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "" +msgstr "Ukjend systemfeil" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: flagg %s er fleirtydig\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: Valet «%s» er fleirtydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: flagg --%s tek ikkje argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: Valet «--%s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: flagg %c%s tek ikkje argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: Valet «%c%s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: flagg %s treng eit argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: Valet «%s» treng eit argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, fuzzy, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: Ukjent val – «--%s»\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, fuzzy, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: Ukjent val – «%c%s»\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovleg flagg -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: Ugyldig val – %c\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, fuzzy, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: Valet treng eit argument – %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: flagg treng eit argument -- %c\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: Valet «-W %s» er fleirtydig\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, fuzzy, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: flagg %s er fleirtydig\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: Valet «-W %s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, fuzzy, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: flagg --%s tek ikkje argument\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: Valet «%s» treng eit argument\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "" +msgstr "gjekk tom for minne" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -93,21 +96,25 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"© %s Free Software Foundation, Inc.\n" +"Lisens: GPLv3+ (GNU GPL versjon 3 eller seinare, )\n" +"Dette er fri programvare. Du kan fritt endra og distribuera henne vidare.\n" +"Det er INGEN GARANTI for dette produktet utover det som står i lova.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format msgid "Written by %s.\n" -msgstr "" +msgstr "Skrive av %s.\n" #. This is a proper name. See the gettext manual, section Names. #: src/envsubst.c:118 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" #: src/envsubst.c:127 src/gettext.c:157 src/ngettext.c:141 -#, fuzzy, c-format +#, c-format msgid "too many arguments" -msgstr "manglar argument" +msgstr "for mange argument" #: src/envsubst.c:138 src/gettext.c:167 src/ngettext.c:153 #, c-format @@ -115,44 +122,44 @@ msgstr "manglar argument" #: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 -#, fuzzy, c-format +#, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Prv %s --help for meir informasjon\n" +msgstr "Prøv «%s --help» for meir informasjon.\n" #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr "" +msgstr "Bruk: %s [VAL] [SKALTYPE]\n" #: src/envsubst.c:181 #, c-format, no-wrap msgid "Substitutes the values of environment variables.\n" -msgstr "" +msgstr "Erstattar verdiane i miljøvariablar.\n" #: src/envsubst.c:185 #, c-format, no-wrap msgid "Operation mode:\n" -msgstr "" +msgstr "Handlingsmodus:\n" #: src/envsubst.c:188 #, c-format, no-wrap msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" -msgstr "" +msgstr " -v, --variables vis variablane i SKALTYPE\n" #: src/envsubst.c:192 #, c-format, no-wrap msgid "Informative output:\n" -msgstr "" +msgstr "Informativ vising:\n" #: src/envsubst.c:195 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr "" +msgstr " -h, --help vis denne hjelpa og avslutt\n" #: src/envsubst.c:198 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr "" +msgstr " -V, --version vis informasjon om versjon og avslutt\n" #: src/envsubst.c:202 #, c-format, no-wrap @@ -164,6 +171,11 @@ "substituted; otherwise all environment variables references occurring in\n" "standard input are substituted.\n" msgstr "" +"I normal handlingsmodus vert standard inndata kopierte til standard utdata, og\n" +"referansar til miljøvariablar på forma $VARIABLE eller ${VARIABLE} vert erstatta\n" +"med dei tilsvarande verdiane. Dersom «SKALTYPE» er oppgjeve, vert berre dei\n" +"miljøvariablane det er referert til i «SKALTYPE» erstatta. Elles vil alle referansar\n" +"til miljøvariablar som førekjem i standard inndata verta erstatta.\n" #: src/envsubst.c:211 #, c-format, no-wrap @@ -171,6 +183,8 @@ "When --variables is used, standard input is ignored, and the output consists\n" "of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" msgstr "" +"Når «--variables» er brukt, vert standard inndata ignorerte og utadataa inneheld\n" +"dei miljøvariablane det er referert til i «SKALTYPE», éin per linje.\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying @@ -178,21 +192,21 @@ #. bugs (typically your translation team's web or email address). #: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 msgid "Report bugs to .\n" -msgstr "" +msgstr "Rapporter feil til .\n" #: src/envsubst.c:442 -#, fuzzy, c-format +#, c-format msgid "error while reading \"%s\"" -msgstr "feil under skriving av fila \"%s\"" +msgstr "feil ved lesing av «%s»" #: src/envsubst.c:443 msgid "standard input" -msgstr "" +msgstr "standard inndata" #. This is a proper name. See the gettext manual, section Names. #: src/gettext.c:139 src/ngettext.c:129 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" #: src/gettext.c:243 #, c-format, no-wrap @@ -200,14 +214,16 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" +"Bruk: %s [VAL] [[TEKSTOMRÅDE] MSGID]\n" +"eller: %s [VAL] -s [MSGID] …\n" #: src/gettext.c:249 #, c-format, no-wrap msgid "Display native language translation of a textual message.\n" -msgstr "" +msgstr "Vis omsetjinga av ein tekststreng.\n" #: src/gettext.c:253 -#, fuzzy, c-format, no-wrap +#, c-format, no-wrap msgid "" " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" " -e enable expansion of some escape sequences\n" @@ -218,729 +234,163 @@ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" " to MSGID from TEXTDOMAIN\n" msgstr "" -"Bruk: %s [FLAGG] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -" -d, --domain=TEXTDOMAIN hent oversette meldingar fr TEXTDOMAIN\n" -" -e sl p ekspandering av nokre escape-sekvensar\n" -" -E (tillete av kompatibilitetsomsyn)\n" -" -h, --help vis denne hjelpeteksta og avslutt\n" -" -n undertrykk etterflgjande linjeskift\n" -" -v, --version vis programversjon og avslutt\n" -" [TEXTDOMAIN] MSGID hent oversett melding som stemmer overeins med\n" -" MSGID fr TEXTDOMAIN\n" +" -d, --domain=TEKSTOMRÅDE hent omsette meldingar frå TEKSTOMRÅDE\n" +" -e slå på utviding av nokre escape-sekvensar\n" +" -E (ignorert grunna kompatibilitetsomsyn)\n" +" -h, --help vis denne hjelpa og avslutt\n" +" -n undertrykk etterfølgjande linjeskift\n" +" -V, --version vis informasjon om versjon og avslutt\n" +" [TEKSTOMRÅDE] MSGID hent omsett melding som stemmer overeins med\n" +" MSGID frå «TEXTDOMAIN»\n" #: src/gettext.c:264 -#, fuzzy, c-format, no-wrap -msgid "" -"If the TEXTDOMAIN parameter is not given, the domain is determined from the\n" -"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" -"regular directory, another location can be specified with the environment\n" -"variable TEXTDOMAINDIR.\n" -"When used with the -s option the program behaves like the `echo' command.\n" -"But it does not simply copy its arguments to stdout. Instead those messages\n" -"found in the selected catalog are translated.\n" -"Standard search directory: %s\n" -msgstr "" -"\n" -"Dersom TEXTDOMAIN-parameteren ikkje er gjeven, vert domenet valgt fr\n" -"miljvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikkje finst i den\n" -"vanlege filkatalogen, kan ein annan filkatalog spesifiserast ved hjelp av\n" -"miljvariabelen TEXTDOMAIN.\n" -"Nr flagget -s vert brukt, oppfrer programmet seg som kommandoen echo,\n" -"men gjer ikkje ein enkel kopiering av argumenta sine til standard ut. I\n" -"staden vert meldingar som er funne i den valgte katalogen oversatt.\n" -"Standard skekatalog er: %s\n" - -#: src/ngettext.c:212 -#, c-format, no-wrap -msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr "" - -#: src/ngettext.c:217 #, c-format, no-wrap msgid "" -"Display native language translation of a textual message whose grammatical\n" -"form depends on a number.\n" -msgstr "" - -#: src/ngettext.c:222 -#, fuzzy, c-format, no-wrap -msgid "" -" -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" -" -e enable expansion of some escape sequences\n" -" -E (ignored for compatibility)\n" -" -h, --help display this help and exit\n" -" -V, --version display version information and exit\n" -" [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" -" MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" -" COUNT choose singular/plural form based on this value\n" -msgstr "" -"Bruk: %s [FLAGG] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -" -d, --domain=TEXTDOMAIN hent oversette meldingar fr TEXTDOMAIN\n" -" -e sl p ekspandering av nokre escape-sekvensar\n" -" -E (tillete av kompatibilitetsomsyn)\n" -" -h, --help vis denne hjelpeteksta og avslutt\n" -" -n undertrykk etterflgjande linjeskift\n" -" -v, --version vis programversjon og avslutt\n" -" [TEXTDOMAIN] MSGID hent oversett melding som stemmer overeins med\n" -" MSGID fr TEXTDOMAIN\n" - -#: src/ngettext.c:233 -#, fuzzy, c-format, no-wrap -msgid "" "If the TEXTDOMAIN parameter is not given, the domain is determined from the\n" -"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" -"regular directory, another location can be specified with the environment\n" -"variable TEXTDOMAINDIR.\n" -"Standard search directory: %s\n" -msgstr "" -"\n" -"Dersom TEXTDOMAIN-parameteren ikkje er gjeven, vert domenet valgt fr\n" -"miljvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikkje finst i den\n" -"vanlege filkatalogen, kan ein annan filkatalog spesifiserast ved hjelp av\n" -"miljvariabelen TEXTDOMAIN.\n" -"Nr flagget -s vert brukt, oppfrer programmet seg som kommandoen echo,\n" -"men gjer ikkje ein enkel kopiering av argumenta sine til standard ut. I\n" -"staden vert meldingar som er funne i den valgte katalogen oversatt.\n" -"Standard skekatalog er: %s\n" - -#, fuzzy -#~ msgid "error while opening \"%s\" for reading" -#~ msgstr "feil under skriving av fila \"%s\"" - -#, fuzzy -#~ msgid "cannot open backup file \"%s\" for writing" -#~ msgstr "feil under skriving av fila \"%s\"" - -#, fuzzy -#~ msgid "error reading \"%s\"" -#~ msgstr "feil under skriving av fila \"%s\"" - -#, fuzzy -#~ msgid "error writing \"%s\"" -#~ msgstr "feil under skriving av fila \"%s\"" - -#, fuzzy -#~ msgid "error after reading \"%s\"" -#~ msgstr "feil under skriving av fila \"%s\"" - -#, fuzzy -#~ msgid "cannot create pipe" -#~ msgstr "kan ikkje opprette utfila \"%s\"" - -#, fuzzy -#~ msgid "number of format specifications in 'msgid' and '%s' does not match" -#~ msgstr "" -#~ "antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" - -#, fuzzy -#~ msgid "" -#~ "format specifications in 'msgid' and '%s' for argument %u are not the same" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "" -#~ "a format specification for argument %u, as in '%s', doesn't exist in " -#~ "'msgid'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "a format specification for argument %u doesn't exist in '%s'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "" -#~ "a format specification for argument {%u}, as in '%s', doesn't exist in " -#~ "'msgid'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "a format specification for argument {%u} doesn't exist in '%s'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "" -#~ "format specifications in 'msgid' and '%s' for argument {%u} are not the " -#~ "same" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "format specifications in 'msgid' and '%s' are not equivalent" -#~ msgstr "" -#~ "antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" - -#, fuzzy -#~ msgid "format specifications in '%s' are not a subset of those in 'msgid'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "" -#~ "format specifications in 'msgid' expect a mapping, those in '%s' expect a " -#~ "tuple" -#~ msgstr "" -#~ "antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" - -#, fuzzy -#~ msgid "" -#~ "format specifications in 'msgid' expect a tuple, those in '%s' expect a " -#~ "mapping" -#~ msgstr "" -#~ "antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" - -#, fuzzy -#~ msgid "" -#~ "a format specification for argument '%s', as in '%s', doesn't exist in " -#~ "'msgid'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "a format specification for argument '%s' doesn't exist in '%s'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "" -#~ "format specifications in 'msgid' and '%s' for argument '%s' are not the " -#~ "same" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#~ msgid "%s and %s are mutually exclusive" -#~ msgstr "%s og %s utelukker kvarandre" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -t, --to-code=NAME encoding for output\n" -#~ " --use-first use first available translation for " -#~ "each\n" -#~ " message, don't merge several " -#~ "translations\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "no input files given" -#~ msgstr "inga innfil spesifisert" - -#~ msgid "exactly 2 input files required" -#~ msgstr "treng nyaktig to innfiler" - -#, fuzzy -#~ msgid "" -#~ "Compare two Uniforum style .po files to check that both contain the same\n" -#~ "set of msgid strings. The def.po file is an existing PO file with the\n" -#~ "translations. The ref.pot file is the last created PO file, or a PO " -#~ "Template\n" -#~ "file (generally created by xgettext). This is useful for checking that\n" -#~ "you have translated each and every message in your program. Where an " -#~ "exact\n" -#~ "match cannot be found, fuzzy matching is used to produce better " -#~ "diagnostics.\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] def.po ref.po\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -V, --version vis programversjon og avslutt\n" -#~ "\n" -#~ "Samanliknar to Uniforum .po-filer for sjekke at begge inneheld det " -#~ "samme\n" -#~ "settet msgid-strengar. def.po-filen er ein eksisterende PO-fil med dei\n" -#~ "gamle oversetjingane. ref.po-filen er den sist genererte PO-fila\n" -#~ "(vanligvis generert med xgettext). Dette er nyttig for sjekke at du " -#~ "har\n" -#~ "oversett alle meldingar i programmet. Der samsvar ikkje kan finnast, " -#~ "vert\n" -#~ "fuzzy samanlikning brukt for f betre diagnostikk.\n" - -#~ msgid "this message is used but not defined..." -#~ msgstr "denne meldinga er brukt, men ikkje definert..." - -#~ msgid "...but this definition is similar" -#~ msgstr "... men denne definisjonen liknar" - -#~ msgid "this message is used but not defined in %s" -#~ msgstr "denne meldinga er brukt, men ikkje definert i %s" - -#~ msgid "warning: this message is not used" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" - -#, fuzzy -#~ msgid "found %d fatal error" -#~ msgid_plural "found %d fatal errors" -#~ msgstr[0] "fann %d fatale feil" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ " --omit-header don't write header with `msgid \"\"' " -#~ "entry\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent indented output style\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#~ msgid "no input file given" -#~ msgstr "inga innfil spesifisert" - -#, fuzzy -#~ msgid "exactly one input file required" -#~ msgstr "treng nyaktig to innfiler" - -#, fuzzy -#~ msgid "missing command name" -#~ msgstr "manglar argument" - -#, fuzzy -#~ msgid "missing filter name" -#~ msgstr "manglar argument" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" -#~ " --keep-header keep header entry unmodified, don't filter " -#~ "it\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "...but some messages have only one plural form" -#~ msgid_plural "...but some messages have only %lu plural forms" -#~ msgstr[0] "denne meldinga er brukt, men ikkje definert i %s" -#~ msgstr[1] "denne meldinga er brukt, men ikkje definert i %s" - -#, fuzzy -#~ msgid "...but some messages have one plural form" -#~ msgid_plural "...but some messages have %lu plural forms" -#~ msgstr[0] "denne meldinga er brukt, men ikkje definert i %s" -#~ msgstr[1] "denne meldinga er brukt, men ikkje definert i %s" - -#, fuzzy -#~ msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" - -#, fuzzy -#~ msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" - -#, fuzzy -#~ msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" - -#, fuzzy -#~ msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" - -#, fuzzy -#~ msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" - -#, fuzzy -#~ msgid "`msgid' and `msgstr' entries do not both end with '\\n'" -#~ msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" - -#, fuzzy -#~ msgid "headerfield `%s' missing in header\n" -#~ msgstr "filhovud-feltet %s manglar i filhovud" - -#, fuzzy -#~ msgid "header field `%s' should start at beginning of line\n" -#~ msgstr "filhovud-feltet %s skulle ha starta p byrjinga av linja" - -#, fuzzy -#~ msgid "some header fields still have the initial default value\n" -#~ msgstr "nokre filhovud-felt har framleis sin initielle verdi" - -#, fuzzy -#~ msgid "field `%s' still has initial default value\n" -#~ msgstr "feltet %s har framleis sin forvalgte verdi" - -#~ msgid "domain name \"%s\" not suitable as file name" -#~ msgstr "domenenamnet \"%s\" passar ikkje som filnavn" - -#~ msgid "domain name \"%s\" not suitable as file name: will use prefix" -#~ msgstr "domenenamnet \"%s\" passar ikkje som filnavn: brukar prefiks" - -#, fuzzy -#~ msgid "...this is the location of the first definition" -#~ msgstr "den frste definisjonen finst her" - -#, fuzzy -#~ msgid "%s: warning: source file contains fuzzy translation" -#~ msgstr "ADVARSEL: kildefila har fuzzy oversetjingar" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " --sort-output generate sorted output\n" -#~ " --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Merges two Uniforum style .po files together. The def.po file is an\n" -#~ "existing PO file with translations which will be taken over to the newly\n" -#~ "created file as long as they still match; comments will be preserved,\n" -#~ "but extracted comments and file positions will be discarded. The ref." -#~ "pot\n" -#~ "file is the last created PO file with up-to-date source references but\n" -#~ "old translations, or a PO Template file (generally created by xgettext);\n" -#~ "any translations or comments in the file will be discarded, however dot\n" -#~ "comments and file positions will be preserved. Where an exact match\n" -#~ "cannot be found, fuzzy matching is used to produce better results.\n" -#~ msgstr "" -#~ "\n" -#~ "Fletter saman to Uniforum .po-filer. def.po-filen er ei eksisterande\n" -#~ "PO-fil med gamle oversetjingar, som vil verte overfrt til den nye fila\n" -#~ "dersom dei framleis stemmer. Kommentarar vert teke med, men kommentarer " -#~ "om\n" -#~ "sjlve ekstraheringa og fil-posisjoner vert sletta. ref.po-filen er den\n" -#~ "sist genererte PO-fila (vanlegvis generert med xgettext). Oversetjingar\n" -#~ "eller kommentarer i denne fila vert sletta, men punktum-kommentarer og\n" -#~ "fil-posisjonar vert teke vare p. Der det ikkje er mogleg finne ei\n" -#~ "eksakt overeinsstemming, vert fuzzy samanlikning brukt for f betre\n" -#~ "resultat. Resultatet vert skrive til standard ut, med mindre ei utfil " -#~ "er\n" -#~ "spesifisert.\n" - -#, fuzzy -#~ msgid "this message should define plural forms" -#~ msgstr "denne meldinga er brukt, men ikkje definert i %s" - -#, fuzzy -#~ msgid "this message should not define plural forms" -#~ msgstr "denne meldinga er brukt, men ikkje definert i %s" - -#, fuzzy -#~ msgid "" -#~ "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " -#~ "obsolete %ld.\n" -#~ msgstr "" -#~ "%sLeste %d gamle + %d referansar, fletta inn %d, fuzzya %d, manglar %d,\n" -#~ "utdaterte %d.\n" - -#, fuzzy -#~ msgid "%s and explicit file names are mutually exclusive" -#~ msgstr "%s og %s utelukker kvarandre" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write indented output style\n" -#~ " --strict write strict uniforum style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ msgstr "" -#~ "Usage: %s [OPTION] [FILE]...\n" -#~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " -h, --help display this help and exit\n" -#~ " -i, --indent write indented output style\n" -#~ " -o, --output-file=FILE write output into FILE instead of standard " -#~ "output\n" -#~ " --strict write strict uniforum style\n" -#~ " -V, --version output version information and exit\n" - -#, fuzzy -#~ msgid "missing `msgstr[]' section" -#~ msgstr "manglar msgstr-seksjon" - -#, fuzzy -#~ msgid "missing `msgid_plural' section" -#~ msgstr "manglar msgstr-seksjon" - -#~ msgid "missing `msgstr' section" -#~ msgstr "manglar msgstr-seksjon" - -#, fuzzy -#~ msgid "too many errors, aborting" -#~ msgstr "for mange feil, avsluttar" - -#, fuzzy -#~ msgid "file \"%s\" is truncated" -#~ msgstr "filen \"%s\" er avkutta" - -#, fuzzy -#~ msgid "file \"%s\" contains a not NUL terminated string" -#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" - -#~ msgid "file \"%s\" is not in GNU .mo format" -#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" - -#, fuzzy -#~ msgid "file \"%s\" contains a not NUL terminated string, at %s" -#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" +"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" +"regular directory, another location can be specified with the environment\n" +"variable TEXTDOMAINDIR.\n" +"When used with the -s option the program behaves like the `echo' command.\n" +"But it does not simply copy its arguments to stdout. Instead those messages\n" +"found in the selected catalog are translated.\n" +"Standard search directory: %s\n" +msgstr "" +"Dersom TEKSTOMRÅDE-parameteren ikkje er oppgjeven, vert området valt frå\n" +"miljøvariabelen «TEXTDOMAIN». Dersom meldingskatalogen ikkje finst i den\n" +"vanlege filmappa, kan ei anna filmappe oppgjevast med miljøvariabelen\n" +"«TEXTDOMAIN».\n" +"Når valet «-s» vert brukt, oppfører programmet seg som kommandoen «echo»,\n" +"men gjer ikkje enkel kopiering av argumenta sine til standard ut. I staden vert\n" +"meldingar som er funne i den valde katalogen omsette.\n" +"Standard søkjekatalog er: %s\n" -#, fuzzy -#~ msgid "expected two arguments" -#~ msgstr "manglar argument" +#: src/ngettext.c:212 +#, c-format, no-wrap +msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" +msgstr "Bruk: %s [VAL] [TEKSTOMRDE] MSGID MSGID-PLURAL TAL\n" -#, fuzzy -#~ msgid "error writing stdout" -#~ msgstr "feil under skriving av fila \"%s\"" +#: src/ngettext.c:217 +#, c-format, no-wrap +msgid "" +"Display native language translation of a textual message whose grammatical\n" +"form depends on a number.\n" +msgstr "Vis omsetjinga av ein tekststreng som har ei grammatisk form som er avhengig av eit tal.\n" -#, fuzzy -#~ msgid "cannot create a temporary directory using template \"%s\"" -#~ msgstr "kan ikkje skifte tilbake til filkatalog \"%s\"" +#: src/ngettext.c:222 +#, c-format, no-wrap +msgid "" +" -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" +" -e enable expansion of some escape sequences\n" +" -E (ignored for compatibility)\n" +" -h, --help display this help and exit\n" +" -V, --version display version information and exit\n" +" [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" +" MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" +" COUNT choose singular/plural form based on this value\n" +msgstr "" +" -d, --domain=TEKSTOMRÅDE hent omsette meldingar frå TEKSTOMRÅDE\n" +" -e slå på utviding av nokre escape-sekvensar\n" +" -E (ignorert grunna kompatibilitetsomsyn)\n" +" -h, --help vis denne hjelpa og avslutt\n" +" -n undertrykk etterfølgjande linjeskift\n" +" -V, --version vis informasjon om versjon og avslutt\n" +" [TEKSTOMRÅDE] hent omsett melding frå «TEXTDOMAIN»\n" +" MSGID MSGID-PLURAL omset MSGID (eintal) / MSGID-PLURAL (fleirtal)\n" +" TAL vel eintal-/fleirtalsform basert på denne verdien\n" -#~ msgid "error while writing \"%s\" file" -#~ msgstr "feil under skriving av fila \"%s\"" +#: src/ngettext.c:233 +#, c-format, no-wrap +msgid "" +"If the TEXTDOMAIN parameter is not given, the domain is determined from the\n" +"environment variable TEXTDOMAIN. If the message catalog is not found in the\n" +"regular directory, another location can be specified with the environment\n" +"variable TEXTDOMAINDIR.\n" +"Standard search directory: %s\n" +msgstr "" +"Dersom TEKSTOMRÅDE-parameteren ikkje er oppgjeven, vert området valt frå\n" +"miljøvariabelen «TEXTDOMAIN». Dersom meldingskatalogen ikkje finst i den\n" +"vanlege filmappa, kan ei anna filmappe oppgjevast med miljøvariabelen\n" +"«TEXTDOMAIN».\n" +"Standard søkjekatalog er: %s\n" -#, fuzzy -#~ msgid "error while opening \"%s\" for writing" -#~ msgstr "feil under skriving av fila \"%s\"" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: Ulovleg val – %c\n" #~ msgid "" #~ "internationalized messages should not contain the `\\%c' escape sequence" #~ msgstr "" -#~ "internasjonaliserte meldingar skal ikkje innehalde escape-sekvensen \\%c" +#~ "internasjonaliserte meldingar skal ikkje innehalde escape-sekvensen «\\" +#~ "%c»" #~ msgid "cannot create output file \"%s\"" #~ msgstr "kan ikkje opprette utfila \"%s\"" -#~ msgid "this file may not contain domain directives" -#~ msgstr "denne fila kan ikkje innehalde domene-nkkelord" +#~ msgid "error while writing \"%s\" file" +#~ msgstr "feil under skriving av fila \"%s\"" -#~ msgid "--join-existing cannot be used when output is written to stdout" -#~ msgstr "" -#~ "--join-existing kan ikkje brukast nr utdata vert skrive til standard ut" +#, fuzzy +#~ msgid "no input files given" +#~ msgstr "inga innfil spesifisert" + +#~ msgid "exactly 2 input files required" +#~ msgstr "treng nøyaktig to innfiler" #, fuzzy #~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ " --omit-header don't write header with `msgid \"\"' " -#~ "entry\n" -#~ " --copyright-holder=STRING set copyright holder in output\n" -#~ " --foreign-user omit FSF copyright in output for foreign " -#~ "user\n" -#~ " -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -#~ "entries\n" -#~ " -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -#~ "entries\n" +#~ "Usage: %s [OPTION] def.po ref.po\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -h, --help display this help and exit\n" +#~ " -V, --version output version information and exit\n" +#~ "\n" +#~ "Compare two Uniforum style .po files to check that both contain the same\n" +#~ "set of msgid strings. The def.po file is an existing PO file with the\n" +#~ "old translations. The ref.po file is the last created PO file\n" +#~ "(generally by xgettext). This is useful for checking that you have\n" +#~ "translated each and every message in your program. Where an exact match\n" +#~ "cannot be found, fuzzy matching is used to produce better diagnostics.\n" #~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " +#~ "Bruk: %s [FLAGG] def.po ref.po\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " #~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" #~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" #~ " -V, --version vis programversjon og avslutt\n" +#~ "\n" +#~ "Samanliknar to Uniforum .po-filer for å sjekke at begge inneheld det " +#~ "samme\n" +#~ "settet msgid-strengar. def.po-filen er ein eksisterende PO-fil med dei\n" +#~ "gamle oversetjingane. ref.po-filen er den sist genererte PO-fila\n" +#~ "(vanligvis generert med xgettext). Dette er nyttig for å sjekke at du " +#~ "har\n" +#~ "oversett alle meldingar i programmet. Der samsvar ikkje kan finnast, " +#~ "vert\n" +#~ "«fuzzy» samanlikning brukt for å få betre diagnostikk.\n" -#, fuzzy -#~ msgid "file \"%s\" contains a not NUL terminated sysdep segment" -#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" +#~ msgid "this message is used but not defined..." +#~ msgstr "denne meldinga er brukt, men ikkje definert..." -#~ msgid "seek \"%s\" offset %ld failed" -#~ msgstr "seek \"%s\" posisjon %ld feila" +#~ msgid "...but this definition is similar" +#~ msgstr "... men denne definisjonen liknar" -#, fuzzy -#~ msgid "a format specification for argument {%u} doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" +#~ msgid "this message is used but not defined in %s" +#~ msgstr "denne meldinga er brukt, men ikkje definert i %s" -#, fuzzy -#~ msgid "a format specification for argument '%s' doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" +#~ msgid "warning: this message is not used" +#~ msgstr "advarsel: denne meldinga er ikkje brukt" #, fuzzy -#~ msgid "a format specification for argument %u doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" +#~ msgid "...this is the location of the first definition" +#~ msgstr "den første definisjonen finst her" -#~ msgid "while creating hash table" -#~ msgstr "mens hash-tabellen vart laga" +#~ msgid "this message has no definition in the \"%s\" domain" +#~ msgstr "denne meldinga har ingen definisjon i \"%s\"-domenet" #~ msgid "while preparing output" #~ msgstr "under klargjering av utdata" -#~ msgid "this message has no definition in the \"%s\" domain" -#~ msgstr "denne meldinga har ingen definisjon i \"%s\"-domenet" +#~ msgid "%s and %s are mutually exclusive" +#~ msgstr "%s og %s utelukker kvarandre" #, fuzzy #~ msgid "" @@ -960,21 +410,21 @@ #~ " -h, --help display this help and exit\n" #~ msgstr "" #~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " #~ "flagg.\n" -#~ " -a, --extract-all ekstrahr alle strengar\n" +#~ " -a, --extract-all ekstrahér alle strengar\n" #~ " -c, --add-comments[=TAG] lagre kommentarblokker med TAG (eller\n" #~ " kommentarar i linjer som kjem foran\n" -#~ " nkkelord) i utfila\n" +#~ " nøkkelord) i utfila\n" #~ " -C, --c++ kjenn igjen C++-kommentarar\n" #~ " -d, --default-domain=NAVN lagre utdata i NAVN.po (i staden for\n" #~ " messages.po)\n" -#~ " -D, --directory=FILKATALOG skift til FILKATALOG fr prosessering\n" +#~ " -D, --directory=FILKATALOG skift til FILKATALOG før prosessering\n" #~ " -e, --no-escape ikkje bruk C-escapekoder i utdata " #~ "(forvalgt)\n" #~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " #~ "teikn\n" -#~ " -f, --files-from=FIL hent liste av innfiler fr FIL\n" +#~ " -f, --files-from=FIL hent liste av innfiler frå FIL\n" #~ " -F, --sort-by-file sorter utdata etter fil-lokasjon\n" #, fuzzy @@ -996,16 +446,32 @@ #~ " -u, --unique shorthand for --less-than=2, requests\n" #~ " that only unique messages be printed\n" #~ msgstr "" -#~ " -n, --add-location lag #: filenavn:linje-linjer (forvalgt)\n" -#~ " --omit-header ikkje lag startseksjon med msgid \"\"\n" -#~ " -p, --output-dir=KAT plassr utfiler i filkatalogen KAT\n" -#~ " -s, --sort-output sortr utdata og ta bort duplikat\n" +#~ " -n, --add-location lag «#: filenavn:linje»-linjer " +#~ "(forvalgt)\n" +#~ " --omit-header ikkje lag startseksjon med «msgid " +#~ "\"\"»\n" +#~ " -p, --output-dir=KAT plassér utfiler i filkatalogen KAT\n" +#~ " -s, --sort-output sortér utdata og ta bort duplikat\n" #~ " --strict lag strengt Uniforum-konform .po-fil\n" -#~ " -T, --trigraphs forst ANSI C trigraphs i inndata\n" +#~ " -T, --trigraphs forstå ANSI C trigraphs i inndata\n" #~ " -V, --version vis programversjon og avslutt\n" -#~ " -x, --exclude-file=FIL innslag fr FIL vert ikkje ekstrahert\n" +#~ " -x, --exclude-file=FIL innslag frå FIL vert ikkje ekstrahert\n" #~ "\n" -#~ "Dersom INNFIL er -, vil det verte lese fr standard inn.\n" +#~ "Dersom INNFIL er -, vil det verte lese frå standard inn.\n" + +#, fuzzy +#~ msgid "error while opening \"%s\" for reading" +#~ msgstr "feil under skriving av fila \"%s\"" + +#~ msgid "this file may not contain domain directives" +#~ msgstr "denne fila kan ikkje innehalde domene-nøkkelord" + +#~ msgid "no input file given" +#~ msgstr "inga innfil spesifisert" + +#, fuzzy +#~ msgid "error while opening \"%s\" for writing" +#~ msgstr "feil under skriving av fila \"%s\"" #, fuzzy #~ msgid "" @@ -1013,8 +479,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -1035,21 +501,135 @@ #~ "output is written to standard output.\n" #~ msgstr "" #~ "Bruk: %s [FLAGG] filnavn.po ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " #~ "flagg.\n" -#~ " -a, --alignment=ANTALL justr strengar til ANTALL bytes (forvalgt: %" -#~ "d)\n" +#~ " -a, --alignment=ANTALL justér strengar til ANTALL bytes (forvalgt: " +#~ "%d)\n" #~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " --no-hash binrfil skal ikkje innehalde hash-tabell\n" +#~ " --no-hash binærfil skal ikkje innehalde hash-tabell\n" #~ " -o, --output-file=FILNAVN sett utfil til FILNAVN\n" #~ " --strict lag strengt Uniforum-konform .po-fil\n" #~ " -v, --verbose list alle avvik i innfil\n" #~ " -V, --version vis programversjon og avslutt\n" #~ "\n" -#~ "Dersom innfil er -, vil inndata verte lest fr standard inn. Dersom " +#~ "Dersom innfil er -, vil inndata verte lest frå standard inn. Dersom " #~ "utfil\n" #~ "er -, vil utdata verte skrive til standard ut.\n" +#~ msgid "while creating hash table" +#~ msgstr "mens hash-tabellen vart laga" + +#, fuzzy +#~ msgid "%s: warning: no header entry found" +#~ msgstr "advarsel: denne meldinga er ikkje brukt" + +#~ msgid "domain name \"%s\" not suitable as file name" +#~ msgstr "domenenamnet \"%s\" passar ikkje som filnavn" + +#~ msgid "domain name \"%s\" not suitable as file name: will use prefix" +#~ msgstr "domenenamnet \"%s\" passar ikkje som filnavn: brukar prefiks" + +#~ msgid "headerfield `%s' missing in header" +#~ msgstr "filhovud-feltet «%s» manglar i filhovud" + +#~ msgid "header field `%s' should start at beginning of line" +#~ msgstr "filhovud-feltet «%s» skulle ha starta på byrjinga av linja" + +#~ msgid "some header fields still have the initial default value" +#~ msgstr "nokre filhovud-felt har framleis sin initielle verdi" + +#~ msgid "field `%s' still has initial default value" +#~ msgstr "feltet «%s» har framleis sin forvalgte verdi" + +#, fuzzy +#~ msgid "%s: warning: source file contains fuzzy translation" +#~ msgstr "ADVARSEL: kildefila har «fuzzy» oversetjingar" + +#, fuzzy +#~ msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" +#~ msgstr "«msgid»- og «msgstr»-verdiane byrjarr ikkje båe med '\\n'" + +#, fuzzy +#~ msgid "`msgid' and `msgstr' entries do not both end with '\\n'" +#~ msgstr "«msgid»- og «msgstr»-verdiane sluttar ikkje båe med '\\n'" + +#~ msgid "" +#~ "number of format specifications in `msgid' and `msgstr' does not match" +#~ msgstr "" +#~ "antall format-spesifiseringar i «msgid» og «msgstr» stemmer ikkje " +#~ "overeins" + +#~ msgid "format specifications for argument %u are not the same" +#~ msgstr "format-spesifiseringane for argument %u er ulike" + +#, fuzzy +#~ msgid "" +#~ "Usage: %s [OPTION] def.po ref.po\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output (default)\n" +#~ " -E, --escape use C escapes in output, no extended chars\n" +#~ " --force-po write PO file even if empty\n" +#~ " -h, --help display this help and exit\n" +#~ " -i, --indent indented output style\n" +#~ " -o, --output-file=FILE result will be written to FILE\n" +#~ " --no-location suppress '#: filename:line' lines\n" +#~ " --add-location preserve '#: filename:line' lines " +#~ "(default)\n" +#~ " --strict strict Uniforum output style\n" +#~ " -v, --verbose increase verbosity level\n" +#~ " -V, --version output version information and exit\n" +#~ " -w, --width=NUMBER set output page width\n" +#~ msgstr "" +#~ "Bruk: %s [FLAGG] INNFIL ...\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " +#~ "flagg.\n" +#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" +#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " +#~ "teikn\n" +#~ " -h, --help vis denne hjelpeteksta og avslutt\n" +#~ " -i, --indent indentert utdata\n" +#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" +#~ " --strict lag strengt Uniforum-konformt utdata\n" +#~ " -V, --version vis programversjon og avslutt\n" + +#~ msgid "" +#~ "\n" +#~ "Merges two Uniforum style .po files together. The def.po file is an\n" +#~ "existing PO file with the old translations which will be taken over to\n" +#~ "the newly created file as long as they still match; comments will be\n" +#~ "preserved, but extract comments and file positions will be discarded.\n" +#~ "The ref.po file is the last created PO file (generally by xgettext), any\n" +#~ "translations or comments in the file will be discarded, however dot\n" +#~ "comments and file positions will be preserved. Where an exact match\n" +#~ "cannot be found, fuzzy matching is used to produce better results. The\n" +#~ "results are written to stdout unless an output file is specified.\n" +#~ msgstr "" +#~ "\n" +#~ "Fletter saman to Uniforum .po-filer. def.po-filen er ei eksisterande\n" +#~ "PO-fil med gamle oversetjingar, som vil verte overført til den nye fila\n" +#~ "dersom dei framleis stemmer. Kommentarar vert teke med, men kommentarer " +#~ "om\n" +#~ "sjølve ekstraheringa og fil-posisjoner vert sletta. ref.po-filen er " +#~ "den\n" +#~ "sist genererte PO-fila (vanlegvis generert med xgettext). Oversetjingar\n" +#~ "eller kommentarer i denne fila vert sletta, men punktum-kommentarer og\n" +#~ "fil-posisjonar vert teke vare på. Der det ikkje er mogleg å finne ei\n" +#~ "eksakt overeinsstemming, vert «fuzzy» samanlikning brukt for å få " +#~ "betre\n" +#~ "resultat. Resultatet vert skrive til standard ut, med mindre ei utfil " +#~ "er\n" +#~ "spesifisert.\n" + +#~ msgid "" +#~ "%sRead %d old + %d reference, merged %d, fuzzied %d, missing %d, obsolete " +#~ "%d.\n" +#~ msgstr "" +#~ "%sLeste %d gamle + %d referansar, fletta inn %d, «fuzzya» %d, manglar " +#~ "%d,\n" +#~ "utdaterte %d.\n" + #, fuzzy #~ msgid "" #~ "Usage: %s [OPTION] [FILE]...\n" @@ -1085,11 +665,36 @@ #~ "By default the output is written to standard output.\n" #~ msgstr "" #~ "\n" -#~ "Konverter binre .mo-filer til Uniforum .po-filer. Bde little-endian " -#~ "og\n" -#~ "big-endian .mo filer vert hndtert. Dersom innfil er -, blir standard\n" +#~ "Konverter binære .mo-filer til Uniforum .po-filer. Både «little-" +#~ "endian» og\n" +#~ "«big-endian» .mo filer vert håndtert. Dersom innfil er -, blir " +#~ "standard\n" #~ "inn lest. Dersom utfil er -, vert det skrive til standard ut.\n" +#~ msgid "file \"%s\" truncated" +#~ msgstr "filen \"%s\" er avkutta" + +#~ msgid "seek \"%s\" offset %ld failed" +#~ msgstr "«seek» \"%s\" posisjon %ld feila" + +#~ msgid "file \"%s\" is not in GNU .mo format" +#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" + +#~ msgid "missing `msgstr' section" +#~ msgstr "manglar «msgstr»-seksjon" + +#, fuzzy +#~ msgid "found %d fatal errors" +#~ msgstr "fann %d fatale feil" + +#, fuzzy +#~ msgid "too many errors, aborting" +#~ msgstr "for mange feil, avsluttar" + +#~ msgid "--join-existing cannot be used when output is written to stdout" +#~ msgstr "" +#~ "--join-existing kan ikkje brukast når utdata vert skrive til standard ut" + #, fuzzy #~ msgid "" #~ "Usage: %s [OPTION] INPUTFILE ...\n" @@ -1117,21 +722,21 @@ #~ " -F, --sort-by-file sort output by file location\n" #~ msgstr "" #~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " #~ "flagg.\n" -#~ " -a, --extract-all ekstrahr alle strengar\n" +#~ " -a, --extract-all ekstrahér alle strengar\n" #~ " -c, --add-comments[=TAG] lagre kommentarblokker med TAG (eller\n" #~ " kommentarar i linjer som kjem foran\n" -#~ " nkkelord) i utfila\n" +#~ " nøkkelord) i utfila\n" #~ " -C, --c++ kjenn igjen C++-kommentarar\n" #~ " -d, --default-domain=NAVN lagre utdata i NAVN.po (i staden for\n" #~ " messages.po)\n" -#~ " -D, --directory=FILKATALOG skift til FILKATALOG fr prosessering\n" +#~ " -D, --directory=FILKATALOG skift til FILKATALOG før prosessering\n" #~ " -e, --no-escape ikkje bruk C-escapekoder i utdata " #~ "(forvalgt)\n" #~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " #~ "teikn\n" -#~ " -f, --files-from=FIL hent liste av innfiler fr FIL\n" +#~ " -f, --files-from=FIL hent liste av innfiler frå FIL\n" #~ " -F, --sort-by-file sorter utdata etter fil-lokasjon\n" #, fuzzy @@ -1142,6 +747,8 @@ #~ " -k, --keyword[=WORD] additonal keyword to be looked for " #~ "(without\n" #~ " WORD means not to use default keywords)\n" +#~ " -l, --string-limit=NUMBER set string length limit to NUMBER " +#~ "instead %u\n" #~ " -L, --language=NAME recognise the specified language (C, C+" #~ "+, PO),\n" #~ " otherwise is guessed from file " @@ -1156,17 +763,17 @@ #~ " -i, --indent lag indentert utdata\n" #~ " -j, --join-existing flett saman meldingar med eksisterande " #~ "fil\n" -#~ " -k, --keyword[=ORD] sj ogs etter nkkelordet ORD (manglar " -#~ "ORD,\n" -#~ " skal ikkje dei vanlege nkkelorda " +#~ " -k, --keyword[=ORD] sjå også etter nøkkelordet ORD " +#~ "(manglar ORD,\n" +#~ " skal ikkje dei vanlege nøkkelorda " #~ "nyttast)\n" -#~ " -l, --string-limit=NUMMER sett strste streng-lengde til NUMMER\n" +#~ " -l, --string-limit=NUMMER sett største streng-lengde til NUMMER\n" #~ " i staden for %u\n" #~ " -m, --msgstr-prefix[=STRENG] bruk STRENG eller \"\" som prefiks for\n" #~ " msgstr-verdiar\n" #~ " -M, --msgstr-suffix[=STRENG] bruk STRENG eller \"\" som suffiks for\n" #~ " msgstr-verdiar\n" -#~ " --no-location ikkje lag #: filnavn:linje-linjer\n" +#~ " --no-location ikkje lag «#: filnavn:linje»-linjer\n" #, fuzzy #~ msgid "" @@ -1188,42 +795,21 @@ #~ "\n" #~ "If INPUTFILE is -, standard input is read.\n" #~ msgstr "" -#~ " -n, --add-location lag #: filenavn:linje-linjer (forvalgt)\n" -#~ " --omit-header ikkje lag startseksjon med msgid \"\"\n" -#~ " -p, --output-dir=KAT plassr utfiler i filkatalogen KAT\n" -#~ " -s, --sort-output sortr utdata og ta bort duplikat\n" +#~ " -n, --add-location lag «#: filenavn:linje»-linjer " +#~ "(forvalgt)\n" +#~ " --omit-header ikkje lag startseksjon med «msgid " +#~ "\"\"»\n" +#~ " -p, --output-dir=KAT plassér utfiler i filkatalogen KAT\n" +#~ " -s, --sort-output sortér utdata og ta bort duplikat\n" #~ " --strict lag strengt Uniforum-konform .po-fil\n" -#~ " -T, --trigraphs forst ANSI C trigraphs i inndata\n" +#~ " -T, --trigraphs forstå ANSI C trigraphs i inndata\n" #~ " -V, --version vis programversjon og avslutt\n" -#~ " -x, --exclude-file=FIL innslag fr FIL vert ikkje ekstrahert\n" +#~ " -x, --exclude-file=FIL innslag frå FIL vert ikkje ekstrahert\n" #~ "\n" -#~ "Dersom INNFIL er -, vil det verte lese fr standard inn.\n" - -#, fuzzy -#~ msgid "" -#~ "%s: warning: charset \"%s\" is not supported by iconv%s\n" -#~ "%*s warning: consider installing GNU libiconv and then\n" -#~ "%*s reinstalling GNU gettext" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" - -#, fuzzy -#~ msgid "" -#~ "%s: warning: charset \"%s\" is not supported without iconv%s\n" -#~ "%*s warning: consider installing GNU libiconv and then\n" -#~ "%*s reinstalling GNU gettext" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" - -#, fuzzy -#~ msgid "this is the location of the first definition" -#~ msgstr "den frste definisjonen finst her" +#~ "Dersom INNFIL er -, vil det verte lese frå standard inn.\n" #~ msgid "cannot change to directory \"%s\"" #~ msgstr "kan ikkje skifte til filkatalog \"%s\"" -#, fuzzy -#~ msgid "found %d errors" -#~ msgstr "fann %d fatale feil" - -#, fuzzy -#~ msgid "%s: warning: no header entry found" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" +#~ msgid "cannot change back to directory \"%s\"" +#~ msgstr "kan ikkje skifte tilbake til filkatalog \"%s\"" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/pl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/pl.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/pl.po gettext-0.18.1.1/gettext-runtime/po/pl.po --- gettext-0.17/gettext-runtime/po/pl.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/pl.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,89 +1,91 @@ # Polish translations for the GNU gettext messages, gettext-runtime domain -# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2006 Free Software Foundation, Inc. -# Rafa Maszkowski , 1995-1999, 2001, 2003, 2006 +# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2006, 2007, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 1995-1999, 2001, 2003, 2006, 2007, 2010 „” # Piotr Pogorzelski , 1995 -# msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.16.2-pre5\n" +"Project-Id-Version: GNU gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-10-16 16:00+0200\n" -"Last-Translator: Rafa Maszkowski \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-13 22:00+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "bd zapisu" +msgstr "błąd zapisu" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "Nieznany bd systemu" +msgstr "Nieznany błąd systemu" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: opcja: `%s' jest niejednoznaczna\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: opcja '%s' jest niejednoznaczna\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: opcja `--%s' nie moe mie argumentu\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: opcja '--%s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: opcja `%c%s' nie moe mie argumentu\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: opcja '%c%s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: opcja `%s' wymaga argumentu\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: opcja '--%s' wymaga argumentu\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: nierozpoznana opcja `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: nierozpoznana opcja '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: nierozpoznana opcja `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: nierozpoznana opcja '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: niedozwolona opcja -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: błędna opcja -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: bdna opcja -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: opcja wymaga argumentu -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: opcja wymaga argumentu -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: opcja '-W %s' jest niejednoznaczna\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: opcja `-W %s' jest niejednoznaczna\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: opcja '-W %s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: opcja `-W %s' nie moe mie argumentu\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opcja '-W %s' wymaga argumentu\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "pami wyczerpana" +msgstr "pamięć wyczerpana" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -95,8 +97,8 @@ msgstr "" "Copyright (C) %s Free Software Foundation, Inc.\n" "Licencja GPLv3+: GNU GPL, wersja 3 lub nowsza \n" -"To jest wolne oprogramowanie: moesz je modyfikowa i rozpowszechnia.\n" -"Autorzy NIE DAJ GWARANCJI, na ile pozwala na to prawo.\n" +"To jest wolne oprogramowanie: możesz je modyfikować i rozpowszechniać.\n" +"Autorzy NIE DAJĄ GWARANCJI, na ile pozwala na to prawo.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format @@ -111,37 +113,37 @@ #: src/envsubst.c:127 src/gettext.c:157 src/ngettext.c:141 #, c-format msgid "too many arguments" -msgstr "za duo argumentw" +msgstr "za dużo argumentów" #: src/envsubst.c:138 src/gettext.c:167 src/ngettext.c:153 #, c-format msgid "missing arguments" -msgstr "brakujce argumenty" +msgstr "brakujące argumenty" #: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Sprbuj `%s --help' eby otrzyma wicej informacji.\n" +msgstr "Spróbuj `%s --help' żeby otrzymać więcej informacji.\n" #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr "Skadnia: %s [OPCJA] [FORMAT-POWOKI]\n" +msgstr "Składnia: %s [OPCJA] [FORMAT-POWŁOKI]\n" #: src/envsubst.c:181 #, c-format, no-wrap msgid "Substitutes the values of environment variables.\n" -msgstr "Podstawia wartoci zmiennych powoki.\n" +msgstr "Podstawia wartości zmiennych powłoki.\n" #: src/envsubst.c:185 #, c-format, no-wrap msgid "Operation mode:\n" -msgstr "Tryb dziaania:\n" +msgstr "Tryb działania:\n" #: src/envsubst.c:188 #, c-format, no-wrap msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" -msgstr " -v, --variables wypisanie zmiennich z FORMATU-POWOKI\n" +msgstr " -v, --variables wypisanie zmiennich z FORMATU-POWŁOKI\n" #: src/envsubst.c:192 #, c-format, no-wrap @@ -151,12 +153,12 @@ #: src/envsubst.c:195 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr " -h, --help wywietlenie tego opisu i zakoczenie\n" +msgstr " -h, --help wyświetlenie tego opisu i zakończenie\n" #: src/envsubst.c:198 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr " -V, --version wywietlenie informacji o wersji i zakoczenie\n" +msgstr " -V, --version wyświetlenie informacji o wersji i zakończenie\n" #: src/envsubst.c:202 #, c-format, no-wrap @@ -168,11 +170,11 @@ "substituted; otherwise all environment variables references occurring in\n" "standard input are substituted.\n" msgstr "" -"W zwykym trybie dziaania standardowe wejcie jest kopiowane do standardowego\n" -"wyjcia. Odniesienia do zmiennych rodowiska w rodzaju $ZMIENNA i ${ZMIENNA}\n" -"s zastpowane wartociami zmiennych. Jeeli jest podany FORMAT-POWOKI,\n" -"zastepowane s tylko zmienne tam wymienione. W przeciwnym wypadku podstawiane\n" -"s wartoci wszystkich zmiennych rodowiska podanych na standardowym wejciu.\n" +"W zwykłym trybie działania standardowe wejście jest kopiowane do standardowego\n" +"wyjścia. Odniesienia do zmiennych środowiska w rodzaju $ZMIENNA i ${ZMIENNA}\n" +"są zastępowane wartościami zmiennych. Jeżeli jest podany FORMAT-POWŁOKI,\n" +"zastepowane są tylko zmienne tam wymienione. W przeciwnym wypadku podstawiane\n" +"są wartości wszystkich zmiennych środowiska podanych na standardowym wejściu.\n" #: src/envsubst.c:211 #, c-format, no-wrap @@ -180,8 +182,8 @@ "When --variables is used, standard input is ignored, and the output consists\n" "of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" msgstr "" -"Kiedy podana jest opcja --variables, standardowe wejcie jest ignorowane, a\n" -"wynik skada si ze zmiennych rodowiska podanych w FORMACIE-POWOKI, kada w\n" +"Kiedy podana jest opcja --variables, standardowe wejście jest ignorowane, a\n" +"wynik składa się ze zmiennych środowiska podanych w FORMACIE-POWŁOKI, każda w\n" "osobnej linii.\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address @@ -190,16 +192,16 @@ #. bugs (typically your translation team's web or email address). #: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 msgid "Report bugs to .\n" -msgstr "Raporty o bdach wysyaj do bug-gnu-gettext@gnu.org\n" +msgstr "Raporty o błędach wysyłaj do bug-gnu-gettext@gnu.org\n" #: src/envsubst.c:442 #, c-format msgid "error while reading \"%s\"" -msgstr "bd podczas czytania \"%s\"" +msgstr "błąd podczas czytania \"%s\"" #: src/envsubst.c:443 msgid "standard input" -msgstr "standardowe wejcie" +msgstr "standardowe wejście" #. This is a proper name. See the gettext manual, section Names. #: src/gettext.c:139 src/ngettext.c:129 @@ -212,13 +214,13 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" -"Skadnia: %s [OPCJA] [[DOMENA] MSGID]\n" +"Składnia: %s [OPCJA] [[DOMENA] MSGID]\n" " albo: %s [OPCJA] -s [MSGID]...\n" #: src/gettext.c:249 #, c-format, no-wrap msgid "Display native language translation of a textual message.\n" -msgstr "Wywietla tumaczenie komunikatu.\n" +msgstr "Wyświetla tłumaczenie komunikatu.\n" #: src/gettext.c:253 #, c-format, no-wrap @@ -232,14 +234,14 @@ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" " to MSGID from TEXTDOMAIN\n" msgstr "" -" -d, --domain=DOMENA wydobycie przetumaczonych komunikatw z DOMENY\n" -" -e rozwijanie niektrych sekwencji escape\n" -" -E (ignorowane, dla kompatybilnoci)\n" -" -h, --help wywietlenie tego opisu i zakoczenie\n" -" -n wyczenie kocowego znaku nowej linii\n" -" -V, --version wywietlenie informacji o wersji i zakoczenie\n" -" [DOMENA] MSGID wydobycie z DOMENY przetumaczonego komunikatu\n" -" odpowiadajcego MSGID\n" +" -d, --domain=DOMENA wydobycie przetłumaczonych komunikatów z DOMENY\n" +" -e rozwijanie niektórych sekwencji escape\n" +" -E (ignorowane, dla kompatybilności)\n" +" -h, --help wyświetlenie tego opisu i zakończenie\n" +" -n wyłączenie końcowego znaku nowej linii\n" +" -V, --version wyświetlenie informacji o wersji i zakończenie\n" +" [DOMENA] MSGID wydobycie z DOMENY przetłumaczonego komunikatu\n" +" odpowiadającego MSGID\n" #: src/gettext.c:264 #, c-format, no-wrap @@ -253,26 +255,26 @@ "found in the selected catalog are translated.\n" "Standard search directory: %s\n" msgstr "" -"Jeeli parametr DOMENA nie jest podany, domena (nazwa pakietu) jest wyznaczana\n" -"ze zmiennej rodowiskowej TEXTDOMAIN. Jeeli katalog komunikatw nie zostanie\n" -"znaleziony w domylnym katalogu, inna lokalizacja moe by podana przez\n" -"zmienn rodowiskow TEXTDOMAINDIR.\n" -"Jeeli uyty z opcj -s, program zachowuje si jak komenda `echo', ale zamiast\n" -"kopiowa argumenty na standardowe wyjcie tumaczy komunikaty znalezione w\n" +"Jeżeli parametr DOMENA nie jest podany, domena (nazwa pakietu) jest wyznaczana\n" +"ze zmiennej środowiskowej TEXTDOMAIN. Jeżeli katalog komunikatów nie zostanie\n" +"znaleziony w domyślnym katalogu, inna lokalizacja może być podana przez\n" +"zmienną środowiskową TEXTDOMAINDIR.\n" +"Jeżeli użyty z opcją -s, program zachowuje się jak komenda `echo', ale zamiast\n" +"kopiować argumenty na standardowe wyjście tłumaczy komunikaty znalezione w\n" "wybranym katalogu.\n" -"Domylnie przeszukiwany katalog: %s\n" +"Domyślnie przeszukiwany katalog: %s\n" #: src/ngettext.c:212 #, c-format, no-wrap msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr "Skadnia: %s [OPCJA] [DOMENA] MSGID MSGID-MNOGA ILO\n" +msgstr "Składnia: %s [OPCJA] [DOMENA] MSGID MSGID-MNOGA ILOŚĆ\n" #: src/ngettext.c:217 #, c-format, no-wrap msgid "" "Display native language translation of a textual message whose grammatical\n" "form depends on a number.\n" -msgstr "Wywietlenie tumaczenia komunikatu, ktrego forma gramatyczna zaley od liczby\n" +msgstr "Wyświetlenie tłumaczenia komunikatu, którego forma gramatyczna zależy od liczby\n" #: src/ngettext.c:222 #, c-format, no-wrap @@ -286,15 +288,15 @@ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" " COUNT choose singular/plural form based on this value\n" msgstr "" -" -d, --domain=DOMENA wydobycie przetumaczonych komunikatw z DOMENY\n" -" -e wczenie rozwijania niektrych sekwencji escape\n" -" -E (ignorowane, dla kompatybilnoci)\n" -" -h, --help wywietlenie tego opisu i zakoczenie\n" -" -n wyczenie kocowego znaku nowej linii\n" -" -V, --version wywietlenie informacji o wersji i zakoczenie\n" -" [DOMENA] wydobycie z DOMENA przetumaczonego komunikatu\n" -" MSGID MSGID-MNOGA przetumaczenie MSGID (pojed.) / MSGID-MNOGA (mn.)\n" -" LICZBA wybranie formy pojed./mn. w oparciu o LICZB\n" +" -d, --domain=DOMENA wydobycie przetłumaczonych komunikatów z DOMENY\n" +" -e włączenie rozwijania niektórych sekwencji escape\n" +" -E (ignorowane, dla kompatybilności)\n" +" -h, --help wyświetlenie tego opisu i zakończenie\n" +" -n wyłączenie końcowego znaku nowej linii\n" +" -V, --version wyświetlenie informacji o wersji i zakończenie\n" +" [DOMENA] wydobycie z DOMENA przetłumaczonego komunikatu\n" +" MSGID MSGID-MNOGA przetłumaczenie MSGID (pojed.) / MSGID-MNOGA (mn.)\n" +" LICZBA wybranie formy pojed./mn. w oparciu o LICZBĘ\n" #: src/ngettext.c:233 #, c-format, no-wrap @@ -305,8 +307,8 @@ "variable TEXTDOMAINDIR.\n" "Standard search directory: %s\n" msgstr "" -"Jeeli parametr DOMENA nie jest podany, domena (nazwa pakietu) jest wyznaczana\n" -"ze zmiennej rodowiskowej TEXTDOMAIN. Jeeli katalog komunikatw nie zostanie\n" -"znaleziony w domylnym katalogu, inna lokalizacja moe by podana przez\n" -"zmienn rodowiskow TEXTDOMAINDIR.\n" -"Domylnie przeszukiwany katalog: %s\n" +"Jeżeli parametr DOMENA nie jest podany, domena (nazwa pakietu) jest wyznaczana\n" +"ze zmiennej środowiskowej TEXTDOMAIN. Jeżeli katalog komunikatów nie zostanie\n" +"znaleziony w domyślnym katalogu, inna lokalizacja może być podana przez\n" +"zmienną środowiskową TEXTDOMAINDIR.\n" +"Domyślnie przeszukiwany katalog: %s\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/pt_BR.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/pt_BR.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/pt_BR.po gettext-0.18.1.1/gettext-runtime/po/pt_BR.po --- gettext-0.17/gettext-runtime/po/pt_BR.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/pt_BR.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.36\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-04-03 08:25+02:00\n" "Last-Translator: Flvio Bruno Leitner \n" "Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -21,67 +22,66 @@ msgid "write error" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro de sistema desconhecido" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: opo `%s' ambgua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: opo `--%s' no aceita parmetros\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: opo `%c%s' no aceita parmetros\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: opo `%s' requer um argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opo no reconhecida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opo no reconhecida `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opo ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opo invlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opo requer um argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: opo `-W %s' ambgua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: opo `-W %s' no aceita parmetros\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opo `%s' requer um argumento\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -306,6 +306,9 @@ "mensagens encontradas no catlogo selecionado\n" "Diretrio de pesquisa padro: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opo ilegal -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -1150,8 +1153,8 @@ #~ msgid "" #~ "internationalized messages should not contain the `\\%c' escape sequence" #~ msgstr "" -#~ "mensagens internacionalizadas no devem conter o caractere de escape `\\%" -#~ "c'" +#~ "mensagens internacionalizadas no devem conter o caractere de escape `\\" +#~ "%c'" #~ msgid "cannot create output file \"%s\"" #~ msgstr "no foi possvel criar o arquivo de sada \"%s\"" @@ -1334,8 +1337,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -1361,8 +1364,8 @@ #~ "\n" #~ "Parmetros obrigatrios para opes longas so tambm obrigatrios\n" #~ "para as opes curtas\n" -#~ " -a, --alignment=NMERO alinha strings em um NMERO de bytes (padro: %" -#~ "d)\n" +#~ " -a, --alignment=NMERO alinha strings em um NMERO de bytes (padro: " +#~ "%d)\n" #~ " -c, --check executa conferncias dependentes de linguagem " #~ "em strings\n" #~ " -D, --directory=DIR adiciona DIR para a lista de pesquisa de " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/pt.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/pt.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/pt.po gettext-0.18.1.1/gettext-runtime/po/pt.po --- gettext-0.17/gettext-runtime/po/pt.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/pt.po 2010-06-06 12:49:57.000000000 +0000 @@ -5,12 +5,13 @@ # msgid "" msgstr "" -"Project-Id-Version: gettext-runtime 0.15-pre5\n" +"Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-05-18 01:13+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2007-12-09 18:24+0100\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,67 +20,66 @@ msgid "write error" msgstr "erro de escrita" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro desconhecido do sistema" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: a opção `%s' é ambígua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: a opção `--%s' não permite um argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: a opção `%c%s' não permite um argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: a opção `%s' requere um argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opção não reconhecida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opção não reconhecida `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opção ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opção ilegal -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opção requere um argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: a opção '-W %s' é ambígua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: a opção '-W %s' não permite um argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: a opção `%s' requere um argumento\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -93,6 +93,10 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"Licança GPLv3+: GNU GPL versão 3 ou posterior \n" +"Este software é livre: pode alterá-lo e redistribuí-lo.\n" +"NÃO HÁ QUALQUER GARANTIA, até onde a lei o permite.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format @@ -313,15 +317,5 @@ "são traduzidas.\n" "Pasta padrão de pesquisa: %s\n" -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "Este programa é livre; veja o código fonte para condições de cópia. NÃO " -#~ "há qualquer\n" -#~ "garantia; nem mesmo para COMERCIALIZAÇÃO ou UTILIDADE PARA UM PROPÓSITO " -#~ "PARTICULAR.\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opção ilegal -- %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ro.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ro.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/ro.po gettext-0.18.1.1/gettext-runtime/po/ro.po --- gettext-0.17/gettext-runtime/po/ro.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ro.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.13-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2003-11-23 09:19+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,67 +20,66 @@ msgid "write error" msgstr "eroare de scriere" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Eroare de sistem necunoscut" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: opiunea `%s' este ambigu\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: opiunea `--%s' nu permite parametri\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: opiunea `%c%s' nu permite parametri\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: opiunea `%s' necesit un parametru\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opiune necunoscut `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opiune necunoscut `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opiune ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opiune invalid -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opiunea necesit un parametru -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: opiunea `-W %s' este ambigu\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: opiunea `-W %s' nu permite parametri\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opiunea `%s' necesit un parametru\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -310,6 +310,9 @@ "mediu TEXTDOMAINDIR.\n" "Directorul de cutare standard: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opiune ilegal -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/ru.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/ru.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/Rules-quot gettext-0.18.1.1/gettext-runtime/po/Rules-quot --- gettext-0.17/gettext-runtime/po/Rules-quot 2004-01-16 15:46:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/Rules-quot 2010-06-06 12:49:57.000000000 +0000 @@ -20,7 +20,7 @@ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ - if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ + if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-runtime/po/ru.po gettext-0.18.1.1/gettext-runtime/po/ru.po --- gettext-0.17/gettext-runtime/po/ru.po 2007-11-02 02:23:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/ru.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,81 +6,81 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-06-14 09:43+0400\n" "Last-Translator: Oleg S. Tihonov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=koi8-r\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr " " -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr " " -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s'\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' \n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' \n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' c \n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: %c c \n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s'\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' \n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' c \n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -311,6 +311,9 @@ " TEXTDOMAINDIR.\n" " : %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/sk.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/sk.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/sk.po gettext-0.18.1.1/gettext-runtime/po/sk.po --- gettext-0.17/gettext-runtime/po/sk.po 2007-11-02 02:23:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/sk.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,16 +1,18 @@ # Slovak translations for GNU gettext-runtime package. -# Copyright (C) 1999, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc. -# Marcel Telka , 2001, 2002, 2003, 2004, 2007. +# Copyright (C) 1999, 2001, 2002, 2003, 2004, 2007, 2008, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. # Štefan Ondrejička , 1999. +# Marcel Telka , 2001, 2002, 2003, 2004, 2007, 2008, 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime 0.16\n" +"Project-Id-Version: GNU gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-06-24 20:09+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 14:03+0200\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,66 +22,65 @@ msgid "write error" msgstr "chyba zápisu" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznáma systémová chyba" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: voľba `%s' nie je jednoznačná\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: voľba '%s' nie je jednoznačná\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: voľba `--%s' nepovoľuje parameter\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: voľba '--%s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: voľba `%c%s' nepovoľuje parameter\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: voľba '%c%s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: voľba `%s' vyžaduje parameter\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: voľba '--%s' vyžaduje parameter\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: neznáma voľba `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: neznáma voľba '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: neznáma voľba `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: neznáma voľba '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: neprípustná voľba -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: neplatná voľba -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: neplatná voľba -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: voľba vyžaduje parameter -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: voľba vyžaduje parameter -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: voľba '-W %s' nie je jednoznačná\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: voľba `-W %s' nie je jednoznačná\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: voľba '-W %s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: voľba `-W %s' nedovoľuje použitie parametra\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: voľba '-W %s' vyžaduje parameter\n" #: gnulib-lib/xmalloc.c:37 #, c-format @@ -94,6 +95,10 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Autorské práva (C) %s Free Software Foundation, Inc.\n" +"Licencia GPLv3+: GNU GPL verzia 3 alebo novšia \n" +"Toto je voľne šíriteľný softvér: môžete ho voľne meniť a ďalej šíriť.\n" +"Neposkytuje sa ŽIADNA ZÁRUKA, v rozsahu povolenom zákonmi.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format @@ -313,17 +318,3 @@ "TEXTDOMAIN. Ak sa katalóg správ nenachádza v obvyklom adresári, iné umiestnenie\n" "môže byť určené obsahom premennej prostredia TEXTDOMAINDIR.\n" "Štandardný adresár, v ktorom sa budú hľadať katalógy: %s\n" - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Autorské práva (C) %s Free Software Foundation, Inc.\n" -#~ "Toto je voľne šíriteľný softvér; pre podmienky kopírovania pozri zdrojový " -#~ "kód.\n" -#~ "Neposkytuje sa ŽIADNA záruka; ani čo sa týka OBCHODOVATEĽNOSTI alebo " -#~ "VHODNOSTI\n" -#~ "NA KONKRÉTNY ÚČEL.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/sl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/sl.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/sl.po gettext-0.18.1.1/gettext-runtime/po/sl.po --- gettext-0.17/gettext-runtime/po/sl.po 2007-11-02 02:23:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/sl.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: GNU gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-16 09:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" @@ -22,67 +23,66 @@ msgid "write error" msgstr "napaka pri pisanju" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznana sistemska napaka" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: izbira »%s« je dvoumna\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: izbira »--%s« ne dovoljuje argumenta\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: izbira »%c%s« ne dovoljuje argumenta\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: izbira »%s« zahteva argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: neprepoznana izbira »--%s«\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: neprepoznana izbira »%c%s«\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: nedovoljena izbira -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: neveljavna izbira -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: izbira zahteva argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: izbira »-W %s« je dvoumna\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: izbira »-W %s« ne dovoljuje argumenta\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: izbira »%s« zahteva argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -311,6 +311,9 @@ "določimo alternativno lokacijo s spremenljivko TEXTDOMAINDIR.\n" "Privzet imenik s katalogom sporočil: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: nedovoljena izbira -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -976,8 +979,8 @@ #~ msgid "" #~ "A special builtin command called '0' outputs the translation, followed by " #~ "a\n" -#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -" -#~ "0\".\n" +#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs " +#~ "-0\".\n" #~ msgstr "" #~ "Poseben vgrajen ukaz ,0` izpiše prevod in izpis zaključi z znakom s kodo " #~ "nič.\n" @@ -1243,8 +1246,8 @@ #~ msgid "" #~ "Output details:\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " --no-hash binary file will not include the hash " #~ "table\n" #~ msgstr "" @@ -2473,8 +2476,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/sr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/sr.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/sr.po gettext-0.18.1.1/gettext-runtime/po/sr.po --- gettext-0.17/gettext-runtime/po/sr.po 2007-11-02 02:23:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/sr.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.13-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2003-11-18 23:48+0100\n" "Last-Translator: Danilo Segan \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,67 +21,66 @@ msgid "write error" msgstr "грешка при упису" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Непозната системска грешка" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: опција „%s“ није једнозначна\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: опција „--%s“ не дозвољава аргументе\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: опција „%c%s“ не дозвољава аргументе\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: опција „%s“ захтева аргумент\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: непозната опција „--%s“\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: непозната опција „%c%s“\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: неисправна опција %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: неисправна опција -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: опција захтева аргумент -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: опција „-W %s“ није једнозначна\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: опција „-W %s“ не дозвољава аргумент\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: опција „%s“ захтева аргумент\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -309,6 +309,9 @@ "променљиве окружења TEXTDOMAINDIR.\n" "Уобичајени директоријум за тражење: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: неисправна опција %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/sv.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/sv.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/sv.po gettext-0.18.1.1/gettext-runtime/po/sv.po --- gettext-0.17/gettext-runtime/po/sv.po 2007-11-02 02:23:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/sv.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,16 +1,18 @@ # Swedish messages for gettext -# Copyright © 1996, 1997, 1998, 2001, 2002, 2003 Free Software Foundation, Inc. -# Jan Djärv , 1998, 2001, 2002, 2003, 2006, 2007 -# Revision: 1.8 +# Copyright © 1996, 1997, 1998, 2001, 2002, 2003, 2007, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Jan Djärv , 1998, 2001, 2002, 2003, 2006, 2007, 2010 +# Revision: 1.14 # msgid "" msgstr "" -"Project-Id-Version: gettext-runtime 0.16.2-pre5\n" +"Project-Id-Version: gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-10-17 17:51+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-14 12:44+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,67 +22,66 @@ msgid "write error" msgstr "skrivfel" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Okänt systemfel" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: flaggan \"%s\" är tvetydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: flaggan \"--%s\" tar inget argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: flaggan \"%c%s\" tar inget argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: flaggan \"%s\" kräver ett argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: okänd flagga \"--%s\"\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: okänd flagga \"%c%s\"\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: otillåten flagga -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: ogiltig flagga -- \"%c\"\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ogiltig flagga -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: flaggan kräver ett argument -- \"%c\"\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: flaggan kräver ett argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: flaggan \"-W %s\" är tvetydig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: flaggan \"-W %s\" tar inget argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: flaggan \"-W %s\" kräver ett argument\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -96,7 +97,7 @@ msgstr "" "Copyright © %s Free Software Foundation, Inc.\n" "Licens GPLv3+: GNU GPL version 3 eller senare \n" -"Detta program är fri programvara. Du kan modifiera och distribuera det.\n" +"Detta program är fri programvara. Du kan modifiera och distribuera den.\n" "Det finns inte NÅGON SOM HELST GARANTI, till den grad som lagen tillåter.\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/tr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/tr.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/tr.po gettext-0.18.1.1/gettext-runtime/po/tr.po --- gettext-0.17/gettext-runtime/po/tr.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/tr.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2006-07-01 08:58+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -20,67 +21,66 @@ msgid "write error" msgstr "yazma hatası" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Bilinmeyen sistem hatası" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s' seçeneği belirsiz\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' seçeneği argümansız kullanılır\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' seçeneği argümansız kullanılır\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' seçeneği bir argümanla kullanılır\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s' seçeneği bilinmiyor\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s' seçeneği bilinmiyor\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: kuraldışı seçenek -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: geçersiz seçenek -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: seçenek için bir argüman gerekli -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s' seçeneği belirsiz\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' seçeneği bir argümanla kullanılmaz\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' seçeneği bir argümanla kullanılır\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -306,6 +306,9 @@ "TEXTDOMAINDIR çevre değişkeni ile belirtilebilir.\n" "Standart arama dizini: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: kuraldışı seçenek -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -993,8 +996,8 @@ #~ msgid "" #~ "A special builtin command called '0' outputs the translation, followed by " #~ "a\n" -#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -" -#~ "0\".\n" +#~ "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs " +#~ "-0\".\n" #~ msgstr "" #~ "'0' özel bir yerleşik komuttur ve bir null bayt ile sonlanan çeviri\n" #~ "çıktılar. \"msgexec 0\"ın çıktısı \"xargs -0\"a girdi olarak " @@ -1252,14 +1255,14 @@ #~ msgid "" #~ "Output details:\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " --no-hash binary file will not include the hash " #~ "table\n" #~ msgstr "" #~ "Çıktı ayrıntıları:\n" -#~ " -a, --alignment=SAYI dizgeleri SAYI bayta ayarlar (öntanımlı: %" -#~ "d)\n" +#~ " -a, --alignment=SAYI dizgeleri SAYI bayta ayarlar (öntanımlı: " +#~ "%d)\n" #~ " --no-hash ikilik dosya saçılma tablosunu içermeyecek\n" #~ msgid "" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/uk.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/uk.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/uk.po gettext-0.18.1.1/gettext-runtime/po/uk.po --- gettext-0.17/gettext-runtime/po/uk.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/uk.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-07-05 17:30+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,67 +20,66 @@ msgid "write error" msgstr "помилка запису" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Невідома системна помилка" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: неоднозначний параметр `%s'\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: параметр `--%s' має використовуватись без аргументів\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: параметр `%c%s' має використовуватись без аргументів\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: параметр `%s' має використовуватись з аргументом\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: нерозпізнаний параметр `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: нерозпізнаний параметр `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: неправильний параметр -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: неправильний параметр -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: параметр %c має використовуватись з аргументом\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: неоднозначний параметр `-W %s'\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: параметр `-W %s' має використовуватись без аргументів\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: параметр `%s' має використовуватись з аргументом\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -309,6 +309,9 @@ "змінної оточення TEXTDOMAINDIR.\n" "Стандартний каталог пошуку: %s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: неправильний параметр -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/vi.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/vi.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/vi.po gettext-0.18.1.1/gettext-runtime/po/vi.po --- gettext-0.17/gettext-runtime/po/vi.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/vi.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,90 +1,91 @@ # Vietnamese Translation for Gettext Runtime. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: gettext-runtime 0.16.2-pre5\n" +"Project-Id-Version: gettext-runtime 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-10-17 16:23+0930\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-13 18:48+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "lỗi ghi" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Lỗi hệ thống không rõ" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: tùy chọn « %s » là mơ hồ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: tùy chọn « %s » còn mơ hồ\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: tùy chọn « --%s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: tùy chọn « %c%s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: tùy chọn « %s » cần đến đối số\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: tùy chọn « --%s » yêu cầu một đối số\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: không nhận diện tùy chọn « --%s »\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: không nhận ra tùy chọn « --%s »\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: không nhận diện tùy chọn « %c%s »\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: không nhận ra tùy chọn « %c%s »\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: không cho phép tùy chọn « -- %c »\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: tùy chọn không hợp lệ -- « %c »\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: tùy chọn không hợp lệ « -- %c »\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: tùy chọn yêu cầu một đối số -- « %c »\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: tùy chọn cần đến đối số « -- %c »\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: tùy chọn « -W %s » còn mơ hồ\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: tùy chọn « -W %s » là mơ hồ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: tùy chọn « -W %s » yêu cầu một đối số\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "hết bộ nhớ rồi" +msgstr "cạn bộ nhớ" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -123,12 +124,12 @@ #: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Thử lệnh « %s --help » để xem thông tin thêm.\n" +msgstr "Hãy thử chạy câu lệnh « %s --help » để xem thêm thông tin.\n" #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] [ĐỊNH_DẠNG_TRÌNH_BAO)]\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] [ĐỊNH_DẠNG_TRÌNH_BAO)]\n" #: src/envsubst.c:181 #, c-format, no-wrap @@ -143,9 +144,7 @@ #: src/envsubst.c:188 #, c-format, no-wrap msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" -msgstr "" -" -v, --variables\n" -"\txuất những _biến_ xảy ra theo ĐỊNH DẠNG TRÌNH BAO\n" +msgstr " -v, --variables xuất những biến xảy ra theo ĐỊNH DẠNG TRÌNH BAO\n" #: src/envsubst.c:192 #, c-format, no-wrap @@ -155,14 +154,13 @@ #: src/envsubst.c:195 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr " -h, --help hiện _trợ giúp_ này rồi thoát\n" +msgstr " -h, --help hiện trợ giúp này, sau đó thoát\n" #: src/envsubst.c:198 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr " -V, --version xuất thông tin _phiên bản_ rồi thoát\n" +msgstr " -V, --version xuất thông tin về phiên bản, sau đó thoát\n" -# Câu có đúng không? Câu dài, phúc tạp. #: src/envsubst.c:202 #, c-format, no-wrap msgid "" @@ -173,12 +171,12 @@ "substituted; otherwise all environment variables references occurring in\n" "standard input are substituted.\n" msgstr "" -"Trong chế độ thao tác bình thường, thiết bị nhập chuẩn được sao chép\n" -"sang thiết bị xuất chuẩn; mỗi tham chiếu đến biến môi trường có dạng\n" -"$BIẾN hay ${BIẾN} được thay thế bằng giá trị tương ứng. ĐỊNH DẠNG\n" -"TRÌNH BAO đưa ra thì chỉ những biến môi trường đã tham chiếu trong\n" -"ĐỊNH DẠNG TRÌNH BAO được thay thế; không thì mọi tham chiếu biến\n" -"môi trường xảy ra trong thiết bị nhập chuẩn được thay thế.\n" +"Trong chế độ thao tác bình thường, đầu vào tiêu chuẩn được sao chép\n" +"vào đầu ra tiêu chuẩn, với tham chiếu đến biến môi trường\n" +"có dạng « $BIẾN » hay « ${BIẾN} » được thay thế bằng giá trị tương ứng.\n" +"Nếu đưa ra ĐỊNH DẠNG TRÌNH BAO thì chỉ thay thế những biến môi trường\n" +"được tham chiếu theo định dạng trình bao đó, không thì thay thế tất cả các\n" +"tham chiếu biến môi trường xảy ra trong đầu vào tiêu chuẩn.\n" #: src/envsubst.c:211 #, c-format, no-wrap @@ -186,9 +184,9 @@ "When --variables is used, standard input is ignored, and the output consists\n" "of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" msgstr "" -"Khi tùy chọn « --variables » (biến) được dùng, thiết bị nhập chuẩn bị bỏ qua,\n" -"và kết xuất gồm có những biến môi trường được tham chiếu trong ĐỊNH DẠNG\n" -"TRÌNH BAO, một điều trên mỗi dòng.\n" +"Lập tuỳ chọn « --variables » (biến) thì bỏ qua đầu vào tiêu chuẩn,\n" +"và kết xuất là những biến môi trường được tham chiếu theo ĐỊNH DẠNG TRÌNH BAO\n" +"(mỗi dòng một biến).\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying @@ -196,7 +194,7 @@ #. bugs (typically your translation team's web or email address). #: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 msgid "Report bugs to .\n" -msgstr "Hãy thông báo lỗi cho .\n" +msgstr "Hãy thông báo lỗi nào cho .\n" #: src/envsubst.c:442 #, c-format @@ -205,7 +203,7 @@ #: src/envsubst.c:443 msgid "standard input" -msgstr "thiết bị nhập chuẩn" +msgstr "đầu vào tiêu chuẩn" # Name: don't translate / Tên: đừng dịch #. This is a proper name. See the gettext manual, section Names. @@ -219,14 +217,14 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" -"Cách sử dụng: %s [TÙY_CHỌN] [[MIỀN_VĂN_BẢN] MSGID]\n" +"Sử dụng: %s [TÙY_CHỌN] [[MIỀN_VĂN_BẢN] MSGID]\n" "hay: %s [TÙY_CHỌN] -s [MSGID]...\n" # Trong văn cảnh này, ngôn ngữ "native" của ai? #: src/gettext.c:249 #, c-format, no-wrap msgid "Display native language translation of a textual message.\n" -msgstr "Hiển thị bản dịch ngôn ngữ mẹ đẻ của thông điệp thuộc văn bản.\n" +msgstr "Hiển thị bản dịch ngôn ngữ mẹ đẻ của một thông điệp thuộc văn bản.\n" #: src/gettext.c:253 #, c-format, no-wrap @@ -267,14 +265,14 @@ "xác định bằng biến môi trường TEXTDOMAINDIR (thư mục của miền văn bản).\n" "Khi dùng với tùy chọn « -s », chương trình này ứng xử giống như\n" "lệnh « echo ». Nhưng mà nó không phải đơn giản sao chép các đối số của nó\n" -"sang thiết bị xuất chuẩn. Thay thế những thông điệp đã tìm trong phân loại\n" +"sang đầu ra tiêu chuẩn. Thay thế những thông điệp đã tìm trong phân loại\n" "được chọn có được dịch.\n" "Thư mục tìm kiếm chuẩn: %s\n" #: src/ngettext.c:212 #, c-format, no-wrap msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] [MIỀN_VAN_BẢN] MSGID MSGID-NHIỀU SỐ_ĐẾM\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] [MIỀN_VAN_BẢN] MSGID MSGID-NHIỀU SỐ_ĐẾM\n" #: src/ngettext.c:217 #, c-format, no-wrap @@ -320,15 +318,3 @@ "phân loại thông điệp trong thư mục bình thường, vị trí khác có thể được\n" "xác định bằng biến môi trường TEXTDOMAINDIR (thư mục của miền văn bản).\n" "Thư mục tìm kiếm chuẩn: %s\n" - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Tác quyền © %s của Tổ chức Phần mềm Tự do.\n" -#~ "Đây là phần mềm này tự do ; xem mã nguồn để tìm điều kiện sao chép.\n" -#~ "KHÔNG CÓ BẢO HÀNH GÌ CẢ, THẬM CHÍ KHÔNG CÓ BẢO ĐẢM ĐƯỢC NGỤ Ý\n" -#~ "KHẢ NĂNG BÁN HAY KHẢ NĂNG LÀM ĐƯỢC VIỆC DỨT KHOÁT.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/zh_CN.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/zh_CN.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/zh_CN.po gettext-0.18.1.1/gettext-runtime/po/zh_CN.po --- gettext-0.17/gettext-runtime/po/zh_CN.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/zh_CN.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,90 +1,95 @@ -# Chinese translations for GNU gettext-runtime package. -# Copyright (C) 2007 Free Software Foundation, Inc. -# This file is distributed under the same license as the GNU gettext-runtime package. -# Bruno Haible , 2007. +# Simplified Chinese translation for gettext. +# Copyright (C) 1998, 2001, 2002, 2008 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Yuan-Chung Cheng , 1998. +# Pofeng Lee , 2001-2002. +# Abel Cheung , 2002. +# Liu Songhe , 2003. +# LI Daobing , 2008. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-runtime\n" +"Project-Id-Version: gettext-runtime 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" -"PO-Revision-Date: 2007-06-28 13:08+0200\n" -"Last-Translator: Bruno Haible \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2008-08-09 20:25+0800\n" +"Last-Translator: LI Daobing \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "" +msgstr "写错误" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "" - -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "" - -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "" - -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "" - -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "" +msgstr "未知的系统错误" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "" - -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "" - -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" -msgstr "" - -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "" - -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s:选项“%s”是不明确的\n" + +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s:选项“--%s”不允许有参数\n" + +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s:选项“%c%s”不允许有参数\n" + +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s:选项“%s”需要一个参数\n" + +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s:无法识别的选项“--%s”\n" + +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s:无法识别的选项“%c%s”\n" + +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s:无效选项 ─ %c\n" + +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s:选项需要一个参数 ─ %c\n" + +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s:选项“-W %s”是不明确的\n" + +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s:选项“-W %s”不允许有参数\n" + +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s:选项“%s”需要一个参数\n" #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" -msgstr "" +msgstr "内存耗尽" #: src/envsubst.c:112 src/gettext.c:133 src/ngettext.c:123 #, c-format, no-wrap @@ -94,66 +99,70 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"版权所有 (C) %s Free Software Foundation, Inc.\n" +"授权协议 GPLv3+: GNU GPL 版本 3 或之后版本 \n" +"这是自由软件: 你有修改和再发布的自由。\n" +"本软件在法律允许的范围内不提供任何担保。\n" #: src/envsubst.c:118 src/gettext.c:139 src/ngettext.c:129 #, c-format msgid "Written by %s.\n" -msgstr "" +msgstr "由 %s 编写。\n" #. This is a proper name. See the gettext manual, section Names. #: src/envsubst.c:118 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" #: src/envsubst.c:127 src/gettext.c:157 src/ngettext.c:141 #, c-format msgid "too many arguments" -msgstr "" +msgstr "参数过多" #: src/envsubst.c:138 src/gettext.c:167 src/ngettext.c:153 #, c-format msgid "missing arguments" -msgstr "" +msgstr "缺少了参数" #: src/envsubst.c:171 src/gettext.c:238 src/ngettext.c:207 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr "" +msgstr "试试“%s --help”来获取更多信息。\n" #: src/envsubst.c:176 #, c-format, no-wrap msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" -msgstr "" +msgstr "用法:%s [选项] [SHELL格式]\n" #: src/envsubst.c:181 #, c-format, no-wrap msgid "Substitutes the values of environment variables.\n" -msgstr "" +msgstr "替换环境变量的值。\n" #: src/envsubst.c:185 #, c-format, no-wrap msgid "Operation mode:\n" -msgstr "" +msgstr "操作模式:\n" #: src/envsubst.c:188 #, c-format, no-wrap msgid " -v, --variables output the variables occurring in SHELL-FORMAT\n" -msgstr "" +msgstr " -v, --variables 输出 SHELL格式 中出现的变量\n" #: src/envsubst.c:192 #, c-format, no-wrap msgid "Informative output:\n" -msgstr "" +msgstr "信息性输出:\n" #: src/envsubst.c:195 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr "" +msgstr " -h, --help 显示此帮助并退出\n" #: src/envsubst.c:198 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr "" +msgstr " -V, --version 输出版本信息并退出\n" #: src/envsubst.c:202 #, c-format, no-wrap @@ -165,6 +174,9 @@ "substituted; otherwise all environment variables references occurring in\n" "standard input are substituted.\n" msgstr "" +"在普通操作模式下,会将标准输入复制到标准输出中,而以 $VARIABLE 或 ${VARIABLE}\n" +"格式给出的环境变量引用会被替换成相应的值。如果给出了 SHELL格式,则只有在该格式\n" +"中引用的环境变量会被替换;否则,标准输入中出现的全部环境变量引用都将被替换。\n" #: src/envsubst.c:211 #, c-format, no-wrap @@ -172,6 +184,8 @@ "When --variables is used, standard input is ignored, and the output consists\n" "of the environment variables that are referenced in SHELL-FORMAT, one per line.\n" msgstr "" +"若使用了 --variables,则会忽略标准输入,而输出由 SHELL格式 引用的环境变量组成,\n" +"每行出现一个环境变量。\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying @@ -179,21 +193,21 @@ #. bugs (typically your translation team's web or email address). #: src/envsubst.c:219 src/gettext.c:279 src/ngettext.c:245 msgid "Report bugs to .\n" -msgstr "" +msgstr "将错误报告至 。\n" #: src/envsubst.c:442 #, c-format msgid "error while reading \"%s\"" -msgstr "" +msgstr "读取“%s”时出错" #: src/envsubst.c:443 msgid "standard input" -msgstr "" +msgstr "标准输入" #. This is a proper name. See the gettext manual, section Names. #: src/gettext.c:139 src/ngettext.c:129 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" #: src/gettext.c:243 #, c-format, no-wrap @@ -201,11 +215,13 @@ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" "or: %s [OPTION] -s [MSGID]...\n" msgstr "" +"用法:%s [选项] [[文本域] MSGID]\n" +"或: %s [选项] -s [MSGID]...\n" #: src/gettext.c:249 #, c-format, no-wrap msgid "Display native language translation of a textual message.\n" -msgstr "" +msgstr "显示某原文消息的本地语言翻译。\n" #: src/gettext.c:253 #, c-format, no-wrap @@ -219,6 +235,13 @@ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" " to MSGID from TEXTDOMAIN\n" msgstr "" +" -d, --domain=文本域 由<文本域>读取翻译后的消息\n" +" -e 允许展开某些转义字符\n" +" -E (为了兼容性存在的选项,不会造成任何影响)\n" +" -h, --help 显示此段说明消息并退出\n" +" -n 禁用尾随的换行符\n" +" -V, --version 显示版本信息并退出\n" +" [文本域] MSGID 由<文本域>读取相应于 MSGID 的翻译消息\n" #: src/gettext.c:264 #, c-format, no-wrap @@ -232,18 +255,24 @@ "found in the selected catalog are translated.\n" "Standard search directory: %s\n" msgstr "" +"假如没有指定<文本域>参数,程序会根据 TEXTDOMAIN 环境变量来设定<文本域>。\n" +"假如消息一览表文件不在正常的目录下,可以用环境变量 TEXTDOMAINDIR 指定\n" +"消息一览表文件所在的位置。\n" +"使用选项“-s”时此程序和“echo”命令类似。但它不是直接把参数复制至标准\n" +"输出,而是寻找消息一览表文件里翻译过的消息。\n" +"标准的搜索目录为:%s\n" #: src/ngettext.c:212 #, c-format, no-wrap msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" -msgstr "" +msgstr "用法:%s [选项] [文本域] MSGID 复数-MSGID 数字\n" #: src/ngettext.c:217 #, c-format, no-wrap msgid "" "Display native language translation of a textual message whose grammatical\n" "form depends on a number.\n" -msgstr "" +msgstr "显示某原文消息的本地语言翻译,而翻译的语法和数字有关。\n" #: src/ngettext.c:222 #, c-format, no-wrap @@ -257,6 +286,14 @@ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n" " COUNT choose singular/plural form based on this value\n" msgstr "" +" -d, --domain=文本域 由<文本域>读取翻译后的消息。\n" +" -e 允许展开某些转义字符\n" +" -E (为了兼容性存在的选项,不会造成任何影响)\n" +" -h, --help 显示此段说明并退出\n" +" -V, --version 显示版本信息并退出\n" +" [文本域] 由<文本域>读取翻译消息\n" +" MSGID 复数-MSGID 翻译 MSGID (单数) / 复数-MSGID (复数)\n" +" 数字 根据<数字>来选择单数或复数型态\n" #: src/ngettext.c:233 #, c-format, no-wrap @@ -267,3 +304,10 @@ "variable TEXTDOMAINDIR.\n" "Standard search directory: %s\n" msgstr "" +"假如没有指定<文本域>参数,程序会根据 TEXTDOMAIN 环境变量来设定文本域。\n" +"假如消息一览表文件不在正常的目录下,可以用环境变量 TEXTDOMAINDIR 指定\n" +"消息一览表文件所在的位置。\n" +"标准的搜索目录为:%s\n" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s:非法选项 ─ %c\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/zh_HK.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/zh_HK.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/zh_HK.po gettext-0.18.1.1/gettext-runtime/po/zh_HK.po --- gettext-0.17/gettext-runtime/po/zh_HK.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/zh_HK.po 2010-06-06 12:49:57.000000000 +0000 @@ -10,10 +10,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2006-07-05 17:16+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,67 +24,66 @@ msgid "write error" msgstr "寫入時發生錯誤" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "不明的系統錯誤" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s:選項「%s」不明確\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s:選項「--%s」不允許有參數\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s:選項「%c%s」不允許有參數\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s:選項「%s」需要參數\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s:無法識別選項「--%s」\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s:無法識別選項「%c%s」\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s:選項不合法 -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s:選項無效 -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s:選項需要參數 -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s:選項「-W %s」不明確\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s:選項「-W %s」不允許有參數\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s:選項「%s」需要參數\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -303,6 +303,9 @@ "的所在的位置。\n" "標準的搜尋目錄為:%s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s:選項不合法 -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-runtime/po/zh_TW.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-runtime/po/zh_TW.gmo differ diff -Nru gettext-0.17/gettext-runtime/po/zh_TW.po gettext-0.18.1.1/gettext-runtime/po/zh_TW.po --- gettext-0.17/gettext-runtime/po/zh_TW.po 2007-11-02 02:23:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/po/zh_TW.po 2010-06-06 12:49:57.000000000 +0000 @@ -10,10 +10,11 @@ msgstr "" "Project-Id-Version: gettext-runtime 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:22+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2006-07-05 17:21+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -23,67 +24,66 @@ msgid "write error" msgstr "寫入時發生錯誤" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "不明的系統錯誤" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s:選項「%s」不明確\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s:選項「--%s」不允許有參數\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s:選項「%c%s」不允許有參數\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s:選項「%s」需要參數\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s:無法識別選項「--%s」\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s:無法識別選項「%c%s」\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s:選項不合法 -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s:選項無效 -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s:選項需要參數 -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s:選項「-W %s」不明確\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s:選項「-W %s」不允許有參數\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s:選項「%s」需要參數\n" + #: gnulib-lib/xmalloc.c:37 #, c-format msgid "memory exhausted" @@ -303,6 +303,9 @@ "的所在的位置。\n" "標準的搜尋目錄為:%s\n" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s:選項不合法 -- %c\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " diff -Nru gettext-0.17/gettext-runtime/README.woe32 gettext-0.18.1.1/gettext-runtime/README.woe32 --- gettext-0.17/gettext-runtime/README.woe32 2006-07-26 12:00:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/README.woe32 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -Installation on Woe32 (WinNT/2000/XP, Win95/98/ME): +Installation on Woe32 (WinNT/2000/XP/Vista, Win95/98/ME): Building requires the mingw development environment (includes gcc). MS Visual C/C++ with "nmake" is no longer supported. diff -Nru gettext-0.17/gettext-runtime/src/ChangeLog gettext-0.18.1.1/gettext-runtime/src/ChangeLog --- gettext-0.17/gettext-runtime/src/ChangeLog 2007-11-06 23:27:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,20 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2009-12-12 Bruno Haible + + * *.c: Untabify. + +2009-01-17 Bruno Haible + + Update after gnulib changed. + * Makefile.am (RELOCATABLE_STRIP): New variable. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/src/envsubst.c gettext-0.18.1.1/gettext-runtime/src/envsubst.c --- gettext-0.17/gettext-runtime/src/envsubst.c 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/envsubst.c 2010-06-06 12:49:57.000000000 +0000 @@ -89,7 +89,7 @@ while ((opt = getopt_long (argc, argv, "hvV", long_options, NULL)) != EOF) switch (opt) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'h': do_help = true; @@ -114,7 +114,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2003-2007"); + "2003-2007"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -131,31 +131,31 @@ { /* Output only the variables. */ switch (argc - optind) - { - case 1: - break; - case 0: - error (EXIT_FAILURE, 0, _("missing arguments")); - default: - abort (); - } + { + case 1: + break; + case 0: + error (EXIT_FAILURE, 0, _("missing arguments")); + default: + abort (); + } print_variables (argv[optind++]); } else { /* Actually perform the substitutions. */ switch (argc - optind) - { - case 1: - all_variables = false; - note_variables (argv[optind++]); - break; - case 0: - all_variables = true; - break; - default: - abort (); - } + { + case 1: + all_variables = false; + note_variables (argv[optind++]); + break; + case 0: + all_variables = true; + break; + default: + abort (); + } subst_from_stdin (); } @@ -169,7 +169,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -234,45 +234,45 @@ encodings. */ static void find_variables (const char *string, - void (*callback) (const char *var_ptr, size_t var_len)) + void (*callback) (const char *var_ptr, size_t var_len)) { for (; *string != '\0';) if (*string++ == '$') { - const char *variable_start; - const char *variable_end; - bool valid; - char c; - - if (*string == '{') - string++; - - variable_start = string; - c = *string; - if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') - { - do - c = *++string; - while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9') || c == '_'); - variable_end = string; - - if (variable_start[-1] == '{') - { - if (*string == '}') - { - string++; - valid = true; - } - else - valid = false; - } - else - valid = true; - - if (valid) - callback (variable_start, variable_end - variable_start); - } + const char *variable_start; + const char *variable_end; + bool valid; + char c; + + if (*string == '{') + string++; + + variable_start = string; + c = *string; + if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') + { + do + c = *++string; + while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9') || c == '_'); + variable_end = string; + + if (variable_start[-1] == '{') + { + if (*string == '}') + { + string++; + valid = true; + } + else + valid = false; + } + else + valid = true; + + if (valid) + callback (variable_start, variable_end - variable_start); + } } } @@ -373,22 +373,22 @@ { /* Binary search. */ while (j2 - j1 > 1) - { - /* Here we know that if s is in the list, it is at an index j - with j1 <= j < j2. */ - size_t j = (j1 + j2) >> 1; - int result = strcmp (slp->item[j], s); - - if (result > 0) - j2 = j; - else if (result == 0) - return 1; - else - j1 = j + 1; - } + { + /* Here we know that if s is in the list, it is at an index j + with j1 <= j < j2. */ + size_t j = (j1 + j2) >> 1; + int result = strcmp (slp->item[j], s); + + if (result > 0) + j2 = j; + else if (result == 0) + return 1; + else + j1 = j + 1; + } if (j2 > j1) - if (strcmp (slp->item[j1], s) == 0) - return 1; + if (strcmp (slp->item[j1], s) == 0) + return 1; } return 0; } @@ -439,7 +439,7 @@ if (c == EOF) { if (ferror (stdin)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), _("standard input")); } @@ -466,104 +466,104 @@ { c = do_getc (); if (c == EOF) - break; + break; /* Look for $VARIABLE or ${VARIABLE}. */ if (c == '$') - { - bool opening_brace = false; - bool closing_brace = false; - - c = do_getc (); - if (c == '{') - { - opening_brace = true; - c = do_getc (); - } - if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') - { - bool valid; - - /* Accumulate the VARIABLE in buffer. */ - buflen = 0; - do - { - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - - c = do_getc (); - } - while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9') || c == '_'); - - if (opening_brace) - { - if (c == '}') - { - closing_brace = true; - valid = true; - } - else - { - valid = false; - do_ungetc (c); - } - } - else - { - valid = true; - do_ungetc (c); - } - - if (valid) - { - /* Terminate the variable in the buffer. */ - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen] = '\0'; - - /* Test whether the variable shall be substituted. */ - if (!all_variables - && !sorted_string_list_member (&variables_set, buffer)) - valid = false; - } - - if (valid) - { - /* Substitute the variable's value from the environment. */ - const char *env_value = getenv (buffer); - - if (env_value != NULL) - fputs (env_value, stdout); - } - else - { - /* Perform no substitution at all. Since the buffered input - contains no other '$' than at the start, we can just - output all the buffered contents. */ - putchar ('$'); - if (opening_brace) - putchar ('{'); - fwrite (buffer, buflen, 1, stdout); - if (closing_brace) - putchar ('}'); - } - } - else - { - do_ungetc (c); - putchar ('$'); - if (opening_brace) - putchar ('{'); - } - } + { + bool opening_brace = false; + bool closing_brace = false; + + c = do_getc (); + if (c == '{') + { + opening_brace = true; + c = do_getc (); + } + if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') + { + bool valid; + + /* Accumulate the VARIABLE in buffer. */ + buflen = 0; + do + { + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + + c = do_getc (); + } + while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9') || c == '_'); + + if (opening_brace) + { + if (c == '}') + { + closing_brace = true; + valid = true; + } + else + { + valid = false; + do_ungetc (c); + } + } + else + { + valid = true; + do_ungetc (c); + } + + if (valid) + { + /* Terminate the variable in the buffer. */ + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen] = '\0'; + + /* Test whether the variable shall be substituted. */ + if (!all_variables + && !sorted_string_list_member (&variables_set, buffer)) + valid = false; + } + + if (valid) + { + /* Substitute the variable's value from the environment. */ + const char *env_value = getenv (buffer); + + if (env_value != NULL) + fputs (env_value, stdout); + } + else + { + /* Perform no substitution at all. Since the buffered input + contains no other '$' than at the start, we can just + output all the buffered contents. */ + putchar ('$'); + if (opening_brace) + putchar ('{'); + fwrite (buffer, buflen, 1, stdout); + if (closing_brace) + putchar ('}'); + } + } + else + { + do_ungetc (c); + putchar ('$'); + if (opening_brace) + putchar ('{'); + } + } else - putchar (c); + putchar (c); } } diff -Nru gettext-0.17/gettext-runtime/src/gettext.c gettext-0.18.1.1/gettext-runtime/src/gettext.c --- gettext-0.17/gettext-runtime/src/gettext.c 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/gettext.c 2010-06-06 12:49:57.000000000 +0000 @@ -95,10 +95,10 @@ /* Parse command line options. */ while ((optchar = getopt_long (argc, argv, "+d:eEhnsV", long_options, NULL)) - != EOF) + != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'd': domain = optarg; @@ -135,7 +135,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1997, 2000-2007"); + "1995-1997, 2000-2007"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -152,78 +152,78 @@ /* Get arguments. */ switch (argc - optind) - { - default: - error (EXIT_FAILURE, 0, _("too many arguments")); - - case 2: - domain = argv[optind++]; - /* FALLTHROUGH */ - - case 1: - break; - - case 0: - error (EXIT_FAILURE, 0, _("missing arguments")); - } + { + default: + error (EXIT_FAILURE, 0, _("too many arguments")); + + case 2: + domain = argv[optind++]; + /* FALLTHROUGH */ + + case 1: + break; + + case 0: + error (EXIT_FAILURE, 0, _("missing arguments")); + } msgid = argv[optind++]; /* Expand escape sequences if enabled. */ if (do_expand) - msgid = expand_escape (msgid); + msgid = expand_escape (msgid); /* If no domain name is given we don't translate. */ if (domain == NULL || domain[0] == '\0') - { - fputs (msgid, stdout); - } + { + fputs (msgid, stdout); + } else - { - /* Bind domain to appropriate directory. */ - if (domaindir != NULL && domaindir[0] != '\0') - bindtextdomain (domain, domaindir); - - /* Write out the result. */ - fputs (dgettext (domain, msgid), stdout); - } + { + /* Bind domain to appropriate directory. */ + if (domaindir != NULL && domaindir[0] != '\0') + bindtextdomain (domain, domaindir); + + /* Write out the result. */ + fputs (dgettext (domain, msgid), stdout); + } } else { if (optind < argc) - { - /* If no domain name is given we print the original string. - We mark this assigning NULL to domain. */ - if (domain == NULL || domain[0] == '\0') - domain = NULL; - else - /* Bind domain to appropriate directory. */ - if (domaindir != NULL && domaindir[0] != '\0') - bindtextdomain (domain, domaindir); - - /* We have to simulate `echo'. All arguments are strings. */ - do - { - msgid = argv[optind++]; - - /* Expand escape sequences if enabled. */ - if (do_expand) - msgid = expand_escape (msgid); - - /* Write out the result. */ - fputs (domain == NULL ? msgid : dgettext (domain, msgid), - stdout); - - /* We separate the arguments by a single ' '. */ - if (optind < argc) - fputc (' ', stdout); - } - while (optind < argc); - } + { + /* If no domain name is given we print the original string. + We mark this assigning NULL to domain. */ + if (domain == NULL || domain[0] == '\0') + domain = NULL; + else + /* Bind domain to appropriate directory. */ + if (domaindir != NULL && domaindir[0] != '\0') + bindtextdomain (domain, domaindir); + + /* We have to simulate `echo'. All arguments are strings. */ + do + { + msgid = argv[optind++]; + + /* Expand escape sequences if enabled. */ + if (do_expand) + msgid = expand_escape (msgid); + + /* Write out the result. */ + fputs (domain == NULL ? msgid : dgettext (domain, msgid), + stdout); + + /* We separate the arguments by a single ' '. */ + if (optind < argc) + fputc (' ', stdout); + } + while (optind < argc); + } /* If not otherwise told: add trailing newline. */ if (add_newline) - fputc ('\n', stdout); + fputc ('\n', stdout); } exit (EXIT_SUCCESS); @@ -236,7 +236,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -270,7 +270,7 @@ But it does not simply copy its arguments to stdout. Instead those messages\n\ found in the selected catalog are translated.\n\ Standard search directory: %s\n"), - getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); + getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); printf ("\n"); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying @@ -293,14 +293,14 @@ for (;;) { while (cp[0] != '\0' && cp[0] != '\\') - ++cp; + ++cp; if (cp[0] == '\0') - return str; + return str; /* Found a backslash. */ if (cp[1] == '\0') - return str; + return str; if (strchr ("abcfnrtv\\01234567", cp[1]) != NULL) - break; + break; ++cp; } @@ -313,69 +313,69 @@ { /* Here cp[0] == '\\'. */ switch (*++cp) - { - case 'a': /* alert */ - *rp++ = '\a'; - ++cp; - break; - case 'b': /* backspace */ - *rp++ = '\b'; - ++cp; - break; - case 'c': /* suppress trailing newline */ - add_newline = false; - ++cp; - break; - case 'f': /* form feed */ - *rp++ = '\f'; - ++cp; - break; - case 'n': /* new line */ - *rp++ = '\n'; - ++cp; - break; - case 'r': /* carriage return */ - *rp++ = '\r'; - ++cp; - break; - case 't': /* horizontal tab */ - *rp++ = '\t'; - ++cp; - break; - case 'v': /* vertical tab */ - *rp++ = '\v'; - ++cp; - break; - case '\\': - *rp = '\\'; - ++cp; - break; - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - int ch = *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - } - } - *rp = ch; - } - break; - default: - *rp = '\\'; - break; - } + { + case 'a': /* alert */ + *rp++ = '\a'; + ++cp; + break; + case 'b': /* backspace */ + *rp++ = '\b'; + ++cp; + break; + case 'c': /* suppress trailing newline */ + add_newline = false; + ++cp; + break; + case 'f': /* form feed */ + *rp++ = '\f'; + ++cp; + break; + case 'n': /* new line */ + *rp++ = '\n'; + ++cp; + break; + case 'r': /* carriage return */ + *rp++ = '\r'; + ++cp; + break; + case 't': /* horizontal tab */ + *rp++ = '\t'; + ++cp; + break; + case 'v': /* vertical tab */ + *rp++ = '\v'; + ++cp; + break; + case '\\': + *rp = '\\'; + ++cp; + break; + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + int ch = *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + } + } + *rp = ch; + } + break; + default: + *rp = '\\'; + break; + } while (cp[0] != '\0' && cp[0] != '\\') - *rp++ = *cp++; + *rp++ = *cp++; } while (cp[0] != '\0'); diff -Nru gettext-0.17/gettext-runtime/src/Makefile.am gettext-0.18.1.1/gettext-runtime/src/Makefile.am --- gettext-0.17/gettext-runtime/src/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-runtime/src subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2007, 2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -61,6 +61,7 @@ RELOCATABLE_SRC_DIR = $(top_srcdir)/gnulib-lib RELOCATABLE_BUILD_DIR = ../gnulib-lib RELOCATABLE_CONFIG_H_DIR = .. +RELOCATABLE_STRIP = : # Version information according to Woe32 conventions. if WOE32 diff -Nru gettext-0.17/gettext-runtime/src/Makefile.in gettext-0.18.1.1/gettext-runtime/src/Makefile.in --- gettext-0.17/gettext-runtime/src/Makefile.in 2007-11-06 23:34:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/Makefile.in 2010-06-06 20:11:38.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -17,8 +18,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -39,12 +41,18 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/gettext.sh.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -55,44 +63,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -103,53 +132,90 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = gettext.sh +CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_envsubst_OBJECTS = envsubst-envsubst.$(OBJEXT) envsubst_OBJECTS = $(am_envsubst_OBJECTS) envsubst_LDADD = $(LDADD) @WOE32_TRUE@am__DEPENDENCIES_1 = gettext.res envsubst_DEPENDENCIES = ../gnulib-lib/libgrt.a $(am__DEPENDENCIES_1) -envsubst_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(envsubst_CFLAGS) $(CFLAGS) \ - $(envsubst_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +envsubst_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(envsubst_CFLAGS) \ + $(CFLAGS) $(envsubst_LDFLAGS) $(LDFLAGS) -o $@ am_gettext_OBJECTS = gettext-gettext.$(OBJEXT) gettext_OBJECTS = $(am_gettext_OBJECTS) gettext_LDADD = $(LDADD) gettext_DEPENDENCIES = ../gnulib-lib/libgrt.a $(am__DEPENDENCIES_1) -gettext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(gettext_CFLAGS) $(CFLAGS) \ - $(gettext_LDFLAGS) $(LDFLAGS) -o $@ +gettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(gettext_CFLAGS) \ + $(CFLAGS) $(gettext_LDFLAGS) $(LDFLAGS) -o $@ am_ngettext_OBJECTS = ngettext-ngettext.$(OBJEXT) ngettext_OBJECTS = $(am_ngettext_OBJECTS) ngettext_LDADD = $(LDADD) ngettext_DEPENDENCIES = ../gnulib-lib/libgrt.a $(am__DEPENDENCIES_1) -ngettext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(ngettext_CFLAGS) $(CFLAGS) \ - $(ngettext_LDFLAGS) $(LDFLAGS) -o $@ -binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +ngettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(ngettext_CFLAGS) \ + $(CFLAGS) $(ngettext_LDFLAGS) $(LDFLAGS) -o $@ +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' SCRIPTS = $(bin_SCRIPTS) -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(envsubst_SOURCES) $(gettext_SOURCES) $(ngettext_SOURCES) DIST_SOURCES = $(envsubst_SOURCES) $(gettext_SOURCES) \ $(ngettext_SOURCES) @@ -160,8 +226,11 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -188,22 +257,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -211,117 +285,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -332,10 +630,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -349,7 +649,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -362,27 +669,56 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = ../gnulib-lib RELOCATABLE_CONFIG_H_DIR = .. @@ -391,32 +727,127 @@ # Support for relocatability. RELOCATABLE_LIBRARY_PATH = $(libdir) RELOCATABLE_SRC_DIR = $(top_srcdir)/gnulib-lib +RELOCATABLE_STRIP = : +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -431,8 +862,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -452,6 +882,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -465,6 +898,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -478,6 +912,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies @@ -524,14 +959,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits src/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -549,36 +984,52 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): gettext.sh: $(top_builddir)/config.status $(srcdir)/gettext.sh.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - || test -f $$p1 \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list installcheck-binPROGRAMS: $(bin_PROGRAMS) bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \ @@ -597,32 +1048,47 @@ done; rm -f c$${pid}_.???; exit $$bad envsubst$(EXEEXT): $(envsubst_OBJECTS) $(envsubst_DEPENDENCIES) @rm -f envsubst$(EXEEXT) - $(envsubst_LINK) $(envsubst_OBJECTS) $(envsubst_LDADD) $(LIBS) + $(AM_V_CCLD)$(envsubst_LINK) $(envsubst_OBJECTS) $(envsubst_LDADD) $(LIBS) gettext$(EXEEXT): $(gettext_OBJECTS) $(gettext_DEPENDENCIES) @rm -f gettext$(EXEEXT) - $(gettext_LINK) $(gettext_OBJECTS) $(gettext_LDADD) $(LIBS) + $(AM_V_CCLD)$(gettext_LINK) $(gettext_OBJECTS) $(gettext_LDADD) $(LIBS) ngettext$(EXEEXT): $(ngettext_OBJECTS) $(ngettext_DEPENDENCIES) @rm -f ngettext$(EXEEXT) - $(ngettext_LINK) $(ngettext_OBJECTS) $(ngettext_LDADD) $(LIBS) + $(AM_V_CCLD)$(ngettext_LINK) $(ngettext_OBJECTS) $(ngettext_LDADD) $(LIBS) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_SCRIPTS)'; for p in $$list; do \ + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ - else :; fi; \ - done + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) - @list='$(bin_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files installcheck-binSCRIPTS: $(bin_SCRIPTS) bad=0; pid=$$$$; list="$(bin_SCRIPTS)"; for p in $$list; do \ @@ -646,30 +1112,39 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< envsubst-envsubst.o: envsubst.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(envsubst_CFLAGS) $(CFLAGS) -c -o envsubst-envsubst.o `test -f 'envsubst.c' || echo '$(srcdir)/'`envsubst.c envsubst-envsubst.obj: envsubst.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(envsubst_CFLAGS) $(CFLAGS) -c -o envsubst-envsubst.obj `if test -f 'envsubst.c'; then $(CYGPATH_W) 'envsubst.c'; else $(CYGPATH_W) '$(srcdir)/envsubst.c'; fi` gettext-gettext.o: gettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_CFLAGS) $(CFLAGS) -c -o gettext-gettext.o `test -f 'gettext.c' || echo '$(srcdir)/'`gettext.c gettext-gettext.obj: gettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_CFLAGS) $(CFLAGS) -c -o gettext-gettext.obj `if test -f 'gettext.c'; then $(CYGPATH_W) 'gettext.c'; else $(CYGPATH_W) '$(srcdir)/gettext.c'; fi` ngettext-ngettext.o: ngettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ngettext_CFLAGS) $(CFLAGS) -c -o ngettext-ngettext.o `test -f 'ngettext.c' || echo '$(srcdir)/'`ngettext.c ngettext-ngettext.obj: ngettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ngettext_CFLAGS) $(CFLAGS) -c -o ngettext-ngettext.obj `if test -f 'ngettext.c'; then $(CYGPATH_W) 'ngettext.c'; else $(CYGPATH_W) '$(srcdir)/ngettext.c'; fi` mostlyclean-libtool: @@ -683,45 +1158,49 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -742,13 +1221,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -781,6 +1264,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -801,6 +1285,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -809,18 +1295,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-binPROGRAMS install-binSCRIPTS install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: installcheck-binPROGRAMS installcheck-binSCRIPTS maintainer-clean: maintainer-clean-am @@ -862,6 +1358,7 @@ @WOE32_TRUE@gettext.res : $(top_srcdir)/../windows/gettext.rc @WOE32_TRUE@ $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(top_srcdir)/../windows/gettext.rc -o gettext.res --output-format=coff + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/src/ngettext.c gettext-0.18.1.1/gettext-runtime/src/ngettext.c --- gettext-0.17/gettext-runtime/src/ngettext.c 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/src/ngettext.c 2010-06-06 12:49:57.000000000 +0000 @@ -91,10 +91,10 @@ /* Parse command line options. */ while ((optchar = getopt_long (argc, argv, "+d:eEhV", long_options, NULL)) - != EOF) + != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'd': domain = optarg; @@ -125,7 +125,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1997, 2000-2007"); + "1995-1997, 2000-2007"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -189,7 +189,7 @@ { /* Bind domain to appropriate directory. */ if (domaindir != NULL && domaindir[0] != '\0') - bindtextdomain (domain, domaindir); + bindtextdomain (domain, domaindir); /* Write out the result. */ fputs (dngettext (domain, msgid, msgid_plural, n), stdout); @@ -205,7 +205,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -236,7 +236,7 @@ regular directory, another location can be specified with the environment\n\ variable TEXTDOMAINDIR.\n\ Standard search directory: %s\n"), - getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); + getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); printf ("\n"); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying @@ -259,14 +259,14 @@ for (;;) { while (cp[0] != '\0' && cp[0] != '\\') - ++cp; + ++cp; if (cp[0] == '\0') - return str; + return str; /* Found a backslash. */ if (cp[1] == '\0') - return str; + return str; if (strchr ("abcfnrtv\\01234567", cp[1]) != NULL) - break; + break; ++cp; } @@ -279,65 +279,65 @@ { /* Here cp[0] == '\\'. */ switch (*++cp) - { - case 'a': /* alert */ - *rp++ = '\a'; - ++cp; - break; - case 'b': /* backspace */ - *rp++ = '\b'; - ++cp; - break; - case 'f': /* form feed */ - *rp++ = '\f'; - ++cp; - break; - case 'n': /* new line */ - *rp++ = '\n'; - ++cp; - break; - case 'r': /* carriage return */ - *rp++ = '\r'; - ++cp; - break; - case 't': /* horizontal tab */ - *rp++ = '\t'; - ++cp; - break; - case 'v': /* vertical tab */ - *rp++ = '\v'; - ++cp; - break; - case '\\': - *rp = '\\'; - ++cp; - break; - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - int ch = *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - } - } - *rp = ch; - } - break; - default: - *rp = '\\'; - break; - } + { + case 'a': /* alert */ + *rp++ = '\a'; + ++cp; + break; + case 'b': /* backspace */ + *rp++ = '\b'; + ++cp; + break; + case 'f': /* form feed */ + *rp++ = '\f'; + ++cp; + break; + case 'n': /* new line */ + *rp++ = '\n'; + ++cp; + break; + case 'r': /* carriage return */ + *rp++ = '\r'; + ++cp; + break; + case 't': /* horizontal tab */ + *rp++ = '\t'; + ++cp; + break; + case 'v': /* vertical tab */ + *rp++ = '\v'; + ++cp; + break; + case '\\': + *rp = '\\'; + ++cp; + break; + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + int ch = *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + } + } + *rp = ch; + } + break; + default: + *rp = '\\'; + break; + } while (cp[0] != '\0' && cp[0] != '\\') - *rp++ = *cp++; + *rp++ = *cp++; } while (cp[0] != '\0'); diff -Nru gettext-0.17/gettext-runtime/tests/ChangeLog gettext-0.18.1.1/gettext-runtime/tests/ChangeLog --- gettext-0.17/gettext-runtime/tests/ChangeLog 2007-11-06 23:27:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/tests/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,23 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2009-12-12 Bruno Haible + + * test-lock.c: Untabify. + +2009-05-21 Bruno Haible + + * Makefile.am (AUTOMAKE_OPTIONS): Add 1.11 and color-tests. + +2008-09-28 Bruno Haible + + * Makefile.am (test_lock_SOURCES): Add threadlib.c. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-runtime/tests/Makefile.am gettext-0.18.1.1/gettext-runtime/tests/Makefile.am --- gettext-0.17/gettext-runtime/tests/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/tests/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-runtime/tests subdirectory of GNU gettext -## Copyright (C) 2005-2006 Free Software Foundation, Inc. +## Copyright (C) 2005-2006, 2008-2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ ## Process this file with automake to produce Makefile.in. -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies +AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests EXTRA_DIST = TESTS = test-lock @@ -26,7 +26,7 @@ -I$(srcdir)/../intl noinst_PROGRAMS = test-lock -test_lock_SOURCES = test-lock.c ../intl/lock.c +test_lock_SOURCES = test-lock.c ../intl/lock.c ../intl/threadlib.c test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ # Clean up after Solaris cc. diff -Nru gettext-0.17/gettext-runtime/tests/Makefile.in gettext-0.18.1.1/gettext-runtime/tests/Makefile.in --- gettext-0.17/gettext-runtime/tests/Makefile.in 2007-11-06 23:34:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/tests/Makefile.in 2010-06-06 20:11:38.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,8 +17,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -37,12 +39,18 @@ subdir = tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/alloca.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/gnulib-m4/00gnulib.m4 \ + $(top_srcdir)/gnulib-m4/alloca.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ @@ -53,44 +61,65 @@ $(top_srcdir)/gnulib-m4/include_next.m4 \ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ + $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ + $(top_srcdir)/gnulib-m4/locale-zh.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ $(top_srcdir)/gnulib-m4/memmove.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ + $(top_srcdir)/gnulib-m4/signal_h.m4 \ + $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ + $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ - $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/ansi-c++.m4 $(top_srcdir)/m4/codeset.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ + $(top_srcdir)/../m4/woe32-dll.m4 $(top_srcdir)/m4/ansi-c++.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/fcntl-o.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intl.m4 \ @@ -101,41 +130,78 @@ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/printf-posix.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/stdint_h.m4 \ - $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/visibility.m4 \ - $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ - $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/threadlib.m4 $(top_srcdir)/m4/uintmax_t.m4 \ + $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ + $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) -am_test_lock_OBJECTS = test-lock.$(OBJEXT) lock.$(OBJEXT) +am_test_lock_OBJECTS = test-lock.$(OBJEXT) lock.$(OBJEXT) \ + threadlib.$(OBJEXT) test_lock_OBJECTS = $(am_test_lock_OBJECTS) test_lock_DEPENDENCIES = -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(test_lock_SOURCES) DIST_SOURCES = $(test_lock_SOURCES) ETAGS = etags CTAGS = ctags +# If stdout is a non-dumb tty, use colors. If test -t is not supported, +# then this fails; a conservative approach. Of course do not redirect +# stdout here, just stderr. +am__tty_colors = \ +red=; grn=; lgn=; blu=; std=; \ +test "X$(AM_COLOR_TESTS)" != Xno \ +&& test "X$$TERM" != Xdumb \ +&& { test "X$(AM_COLOR_TESTS)" = Xalways || test -t 1 2>/dev/null; } \ +&& { \ + red=''; \ + grn=''; \ + lgn=''; \ + blu=''; \ + std=''; \ +} DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -162,22 +228,27 @@ CSHARPCOMPFLAGS = @CSHARPCOMPFLAGS@ CSHARP_CHOICE = @CSHARP_CHOICE@ CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ @@ -185,117 +256,341 @@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FFLUSH = @GNULIB_FFLUSH@ +GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ +GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ +GNULIB_FREOPEN = @GNULIB_FREOPEN@ +GNULIB_FSEEK = @GNULIB_FSEEK@ +GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ +GNULIB_FTELL = @GNULIB_FTELL@ +GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ +GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ +GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ +GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ +GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ +GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ +GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ +GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ +GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ +GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ +GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ +HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ +HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ +HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ +HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ +HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVAC = @HAVE_JAVAC@ HAVE_JAVAC_ENVVAR = @HAVE_JAVAC_ENVVAR@ HAVE_JAVAC_IN_PATH = @HAVE_JAVAC_IN_PATH@ HAVE_JIKES = @HAVE_JIKES@ HAVE_JIKES_IN_PATH = @HAVE_JIKES_IN_PATH@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ +HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ +HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ +HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ +HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -306,10 +601,12 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGRT_LIBDEPS = @LIBGRT_LIBDEPS@ LIBGRT_LTLIBDEPS = @LIBGRT_LTLIBDEPS@ @@ -323,7 +620,14 @@ LIBSCHED = @LIBSCHED@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ +LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ +LOCALE_JA = @LOCALE_JA@ +LOCALE_ZH_CN = @LOCALE_ZH_CN@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ @@ -336,59 +640,183 @@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ +NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ +NM = @NM@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FFLUSH = @REPLACE_FFLUSH@ +REPLACE_FOPEN = @REPLACE_FOPEN@ +REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ +REPLACE_FREOPEN = @REPLACE_FREOPEN@ +REPLACE_FSEEK = @REPLACE_FSEEK@ +REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ +REPLACE_FTELL = @REPLACE_FTELL@ +REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ +REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_PREAD = @REPLACE_PREAD@ +REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ +REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ +REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ +REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ +REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ +REPLACE_VPRINTF = @REPLACE_VPRINTF@ +REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ +REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -403,8 +831,7 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -424,6 +851,9 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -437,6 +867,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -450,15 +881,16 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies +AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests EXTRA_DIST = AM_CPPFLAGS = \ -I.. \ -I$(srcdir)/../intl -test_lock_SOURCES = test-lock.c ../intl/lock.c +test_lock_SOURCES = test-lock.c ../intl/lock.c ../intl/threadlib.c test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ all: all-am @@ -468,14 +900,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits tests/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -493,16 +925,19 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list test-lock$(EXEEXT): $(test_lock_OBJECTS) $(test_lock_DEPENDENCIES) @rm -f test-lock$(EXEEXT) - $(LINK) $(test_lock_OBJECTS) $(test_lock_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_lock_OBJECTS) $(test_lock_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -511,20 +946,33 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< lock.o: ../intl/lock.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lock.o `test -f '../intl/lock.c' || echo '$(srcdir)/'`../intl/lock.c lock.obj: ../intl/lock.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lock.obj `if test -f '../intl/lock.c'; then $(CYGPATH_W) '../intl/lock.c'; else $(CYGPATH_W) '$(srcdir)/../intl/lock.c'; fi` +threadlib.o: ../intl/threadlib.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o threadlib.o `test -f '../intl/threadlib.c' || echo '$(srcdir)/'`../intl/threadlib.c + +threadlib.obj: ../intl/threadlib.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o threadlib.obj `if test -f '../intl/threadlib.c'; then $(CYGPATH_W) '../intl/threadlib.c'; else $(CYGPATH_W) '$(srcdir)/../intl/threadlib.c'; fi` + mostlyclean-libtool: -rm -f *.lo @@ -536,53 +984,58 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ + $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ @@ -591,49 +1044,63 @@ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ + col=$$red; res=XPASS; \ ;; \ *) \ - echo "PASS: $$tst"; \ + col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ + col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ + col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ - echo "SKIP: $$tst"; \ + col=$$blu; res=SKIP; \ fi; \ + echo "$${col}$$res$${std}: $$tst"; \ done; \ + if test "$$all" -eq 1; then \ + tests="test"; \ + All=""; \ + else \ + tests="tests"; \ + All="All "; \ + fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ + banner="$$All$$all $$tests passed"; \ else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ + banner="$$failed of $$all $$tests failed"; \ else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ - skipped="($$skip tests were not run)"; \ + if test "$$skip" -eq 1; then \ + skipped="($$skip test was not run)"; \ + else \ + skipped="($$skip tests were not run)"; \ + fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ @@ -644,11 +1111,15 @@ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ - echo "$$dashes"; \ + if test "$$failed" -eq 0; then \ + echo "$$grn$$dashes"; \ + else \ + echo "$$red$$dashes"; \ + fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ - echo "$$dashes"; \ + echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi @@ -668,13 +1139,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -703,6 +1178,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -723,6 +1199,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -731,18 +1209,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -764,7 +1252,7 @@ uninstall-am: -.MAKE: install-am install-strip +.MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-local clean-noinstPROGRAMS \ @@ -784,6 +1272,7 @@ # Clean up after Solaris cc. clean-local: rm -rf SunWS_cache + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-runtime/tests/test-lock.c gettext-0.18.1.1/gettext-runtime/tests/test-lock.c --- gettext-0.17/gettext-runtime/tests/test-lock.c 2005-07-18 11:37:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-runtime/tests/test-lock.c 2010-06-06 12:49:57.000000000 +0000 @@ -537,10 +537,10 @@ gl_lock_unlock (ready_lock[id]); if (repeat == REPEAT_COUNT) - break; + break; dbgprintf ("Contender %p waiting for signal for round %d\n", - gl_thread_self (), repeat); + gl_thread_self (), repeat); #if ENABLE_LOCKING /* Wait for the signal to go. */ gl_rwlock_rdlock (fire_signal[repeat]); @@ -549,10 +549,10 @@ #else /* Wait for the signal to go. */ while (fire_signal_state <= repeat) - yield (); + yield (); #endif dbgprintf ("Contender %p got the signal for round %d\n", - gl_thread_self (), repeat); + gl_thread_self (), repeat); /* Contend for execution. */ gl_once (once_control, once_execute); @@ -593,30 +593,30 @@ /* Wait until every thread is ready. */ dbgprintf ("Main thread before synchonizing for round %d\n", repeat); for (;;) - { - int ready_count = 0; - for (i = 0; i < THREAD_COUNT; i++) - { - gl_lock_lock (ready_lock[i]); - ready_count += ready[i]; - gl_lock_unlock (ready_lock[i]); - } - if (ready_count == THREAD_COUNT) - break; - yield (); - } + { + int ready_count = 0; + for (i = 0; i < THREAD_COUNT; i++) + { + gl_lock_lock (ready_lock[i]); + ready_count += ready[i]; + gl_lock_unlock (ready_lock[i]); + } + if (ready_count == THREAD_COUNT) + break; + yield (); + } dbgprintf ("Main thread after synchonizing for round %d\n", repeat); if (repeat > 0) - { - /* Check that exactly one thread executed the once_execute() - function. */ - if (performed != 1) - abort (); - } + { + /* Check that exactly one thread executed the once_execute() + function. */ + if (performed != 1) + abort (); + } if (repeat == REPEAT_COUNT) - break; + break; /* Preparation for the next round: Initialize once_control. */ memcpy (&once_control, &fresh_once, sizeof (gl_once_t)); @@ -626,11 +626,11 @@ /* Preparation for the next round: Reset the ready flags. */ for (i = 0; i < THREAD_COUNT; i++) - { - gl_lock_lock (ready_lock[i]); - ready[i] = 0; - gl_lock_unlock (ready_lock[i]); - } + { + gl_lock_lock (ready_lock[i]); + ready[i] = 0; + gl_lock_unlock (ready_lock[i]); + } /* Signal all threads simultaneously. */ dbgprintf ("Main thread giving signal for round %d\n", repeat); diff -Nru gettext-0.17/gettext-tools/ABOUT-NLS gettext-0.18.1.1/gettext-tools/ABOUT-NLS --- gettext-0.17/gettext-tools/ABOUT-NLS 2007-11-02 02:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/ABOUT-NLS 2010-06-06 12:49:57.000000000 +0000 @@ -18,35 +18,7 @@ available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. - When reporting bugs in the `intl/' directory or bugs which may be -related to internationalization, you should tell about the version of -`gettext' which is used. The information can be found in the -`intl/VERSION' file, in internationalized packages. - -1.1 Quick configuration advice -============================== - -If you want to exploit the full power of internationalization, you -should configure it using - - ./configure --with-included-gettext - -to force usage of internationalizing routines provided within this -package, despite the existence of internationalizing capabilities in the -operating system where this package is being installed. So far, only -the `gettext' implementation in the GNU C library version 2 provides as -many features (such as locale alias, message inheritance, automatic -charset conversion or plural form handling) as the implementation here. -It is also not possible to offer this additional functionality on top -of a `catgets' implementation. Future versions of GNU `gettext' will -very likely convey even more functionality. So it might be a good idea -to change to GNU `gettext' as soon as possible. - - So you need _not_ provide this option if you are using GNU libc 2 or -you have installed a recent copy of the GNU gettext package with the -included `libintl'. - -1.2 INSTALL Matters +1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs @@ -56,36 +28,19 @@ By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already -provides the GNU `gettext' functions. If not, the included GNU -`gettext' library will be used. This library is wholly contained -within this package, usually in the `intl/' subdirectory, so prior -installation of the GNU `gettext' package is _not_ required. -Installers may use special options at configuration time for changing -the default behaviour. The commands: +provides the GNU `gettext' functions. Installers may use special +options at configuration time for changing the default behaviour. The +command: - ./configure --with-included-gettext ./configure --disable-nls -will, respectively, bypass any pre-existing `gettext' to use the -internationalizing routines provided within this package, or else, -_totally_ disable translation of messages. +will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will -probably detect the previously built and installed `libintl.a' file and -will decide to use this. This might not be desirable. You should use -the more recent version of the GNU `gettext' library. I.e. if the file -`intl/VERSION' shows that the library which comes with this package is -more recent, you should use - - ./configure --with-included-gettext - -to prevent auto-detection. - - The configuration process will not test for the `catgets' function -and therefore it will not be used. The reason is that even an -emulation of `gettext' on top of `catgets' could not provide all the -extensions of the GNU `gettext' library. +probably detect the previously built and installed `libintl' library +and will decide to use it. If not, you may have to to use the +`--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless @@ -96,7 +51,7 @@ `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. -1.3 Using This Package +1.2 Using This Package ====================== As a user, if your language has been installed for this package, you @@ -148,7 +103,7 @@ to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. -1.4 Translating Teams +1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested @@ -177,859 +132,1118 @@ the terminology in use. Proven linguistic skills are praised more than programming skills, here. -1.5 Available Packages +1.4 Available Packages ====================== Languages are not equally supported in all packages. The following -matrix shows the current state of internationalization, as of November -2007. The matrix shows, in regard of each package, for which languages +matrix shows the current state of internationalization, as of June +2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. - Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo - +----------------------------------------------------+ - Compendium | [] [] [] [] | - a2ps | [] [] [] [] [] | - aegis | () | - ant-phone | () | - anubis | [] | - ap-utils | | - aspell | [] [] [] [] [] | - bash | [] | - bfd | | - bibshelf | [] | - binutils | | - bison | [] [] | - bison-runtime | [] | - bluez-pin | [] [] [] [] [] | - cflow | [] | - clisp | [] [] [] | - console-tools | [] [] | - coreutils | [] [] [] [] | - cpio | | - cpplib | [] [] [] | - cryptonit | [] | - dialog | | - diffutils | [] [] [] [] [] [] | - doodle | [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] | - fetchmail | [] [] () [] [] | - findutils | [] | - findutils_stable | [] [] [] | - flex | [] [] [] | - fslint | | - gas | | - gawk | [] [] [] | - gcal | [] | - gcc | [] | - gettext-examples | [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] | - gettext-tools | [] [] | - gip | [] | - gliv | [] [] | - glunarclock | [] | - gmult | [] [] | - gnubiff | () | - gnucash | [] [] () () [] | - gnuedu | | - gnulib | [] | - gnunet | | - gnunet-gtk | | - gnutls | [] | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | | - gpe-clock | [] [] | - gpe-conf | [] [] | - gpe-contacts | | - gpe-edit | [] | - gpe-filemanager | | - gpe-go | [] | - gpe-login | [] [] | - gpe-ownerinfo | [] [] | - gpe-package | | - gpe-sketchbook | [] [] | - gpe-su | [] [] | - gpe-taskmanager | [] [] | - gpe-timesheet | [] | - gpe-today | [] [] | - gpe-todo | | - gphoto2 | [] [] [] [] | - gprof | [] [] | - gpsdrive | | - gramadoir | [] [] | - grep | [] [] | - gretl | () | - gsasl | | - gss | | - gst-plugins-bad | [] [] | - gst-plugins-base | [] [] | - gst-plugins-good | [] [] [] | - gst-plugins-ugly | [] [] | - gstreamer | [] [] [] [] [] [] [] | - gtick | () | - gtkam | [] [] [] [] | - gtkorphan | [] [] | - gtkspell | [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] | - herrie | [] | - hylafax | | - idutils | [] [] | - indent | [] [] [] [] | - iso_15924 | | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] [] [] | - iso_639 | [] [] [] [] | - jpilot | [] | - jtag | | - jwhois | | - kbd | [] [] [] [] | - keytouch | [] [] | - keytouch-editor | [] | - keytouch-keyboa... | [] | - latrine | () | - ld | [] | - leafpad | [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] | - libextractor | [] | - libgpewidget | [] [] [] | - libgpg-error | [] | - libgphoto2 | [] [] | - libgphoto2_port | [] [] | - libgsasl | | - libiconv | [] [] | - libidn | [] [] [] | - lifelines | [] () | - lilypond | [] | - lingoteach | | - lprng | | - lynx | [] [] [] [] | - m4 | [] [] [] [] | - mailfromd | | - mailutils | [] | - make | [] [] | - man-db | [] [] [] | - minicom | [] [] [] | - nano | [] [] [] | - opcodes | [] | - parted | [] [] | - pilot-qof | | - popt | [] [] [] | - psmisc | [] | - pwdutils | | - qof | | - radius | [] | - recode | [] [] [] [] [] [] | - rpm | [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] [] | - sed | [] [] [] | - shared-mime-info | [] [] [] [] () [] [] [] | - sharutils | [] [] [] [] [] [] | - shishi | | - skencil | [] () | - solfege | | - soundtracker | [] [] | - sp | [] | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] | - texinfo | [] [] [] | - tin | () () | - tuxpaint | [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] [] | - util-linux-ng | [] [] [] [] | - vorbis-tools | [] | - wastesedge | () | - wdiff | [] [] [] [] | - wget | [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] | - xpad | [] [] [] | - +----------------------------------------------------+ - af am ar az be bg bs ca cs cy da de el en en_GB eo - 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18 - - es et eu fa fi fr ga gl gu he hi hr hu id is it + Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ - Compendium | [] [] [] [] [] | - a2ps | [] [] [] () | + a2ps | [] [] | aegis | | - ant-phone | [] | - anubis | [] | - ap-utils | [] [] | - aspell | [] [] [] | - bash | [] | - bfd | [] [] | - bibshelf | [] [] [] | - binutils | [] [] [] | - bison | [] [] [] [] [] [] | - bison-runtime | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] | - cflow | [] | - clisp | [] [] | - console-tools | | - coreutils | [] [] [] [] [] [] | - cpio | [] [] [] | - cpplib | [] [] | - cryptonit | [] | - dialog | [] [] [] | - diffutils | [] [] [] [] [] [] [] [] [] | - doodle | [] [] | - e2fsprogs | [] [] [] | - enscript | [] [] [] | - fetchmail | [] | - findutils | [] [] [] | - findutils_stable | [] [] [] [] | - flex | [] [] [] | - fslint | | - gas | [] [] | - gawk | [] [] [] [] () | - gcal | [] [] | - gcc | [] | - gettext-examples | [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] [] | - gip | [] [] [] [] | - gliv | () | - glunarclock | [] [] [] | - gmult | [] [] [] | - gnubiff | () () | - gnucash | () () () | - gnuedu | [] | - gnulib | [] [] [] | - gnunet | | - gnunet-gtk | | - gnutls | | - gpe-aerial | [] [] | - gpe-beam | [] [] | - gpe-calendar | | - gpe-clock | [] [] [] [] | - gpe-conf | [] | - gpe-contacts | [] [] | - gpe-edit | [] [] [] [] | - gpe-filemanager | [] | - gpe-go | [] [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] [] [] [] | - gpe-package | [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] [] | - gpe-taskmanager | [] [] [] | - gpe-timesheet | [] [] [] [] | - gpe-today | [] [] [] [] | - gpe-todo | [] | - gphoto2 | [] [] [] [] [] | - gprof | [] [] [] [] [] | - gpsdrive | [] | - gramadoir | [] [] | - grep | [] [] [] | - gretl | [] [] [] () | - gsasl | [] [] | - gss | [] [] | - gst-plugins-bad | [] [] [] [] | - gst-plugins-base | [] [] [] [] | - gst-plugins-good | [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] | - gstreamer | [] [] [] | - gtick | [] [] [] | - gtkam | [] [] [] [] | - gtkorphan | [] [] | - gtkspell | [] [] [] [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | - herrie | [] | - hylafax | | - idutils | [] [] [] [] [] | - indent | [] [] [] [] [] [] [] [] [] [] | - iso_15924 | [] | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | [] | - iso_4217 | [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] | - jpilot | [] [] | - jtag | [] | - jwhois | [] [] [] [] [] | - kbd | [] [] | - keytouch | [] [] [] | - keytouch-editor | [] | - keytouch-keyboa... | [] [] | - latrine | [] [] | - ld | [] [] [] [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] [] | - libexif | [] | - libextractor | [] | - libgpewidget | [] [] [] [] [] | - libgpg-error | [] | - libgphoto2 | [] [] [] | - libgphoto2_port | [] [] | - libgsasl | [] [] | - libiconv | [] [] [] | - libidn | [] [] | - lifelines | () | - lilypond | [] [] [] | - lingoteach | [] [] [] | - lprng | | - lynx | [] [] [] | - m4 | [] [] [] [] | - mailfromd | | - mailutils | [] [] | - make | [] [] [] [] [] [] [] [] | - man-db | [] | - minicom | [] [] [] [] | - nano | [] [] [] [] [] [] [] | - opcodes | [] [] [] [] | - parted | [] [] [] | - pilot-qof | | - popt | [] [] [] [] | - psmisc | [] [] | - pwdutils | | - qof | [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] [] | - rpm | [] [] | - screem | | - scrollkeeper | [] [] [] | - sed | [] [] [] [] [] | - shared-mime-info | [] [] [] [] [] [] | - sharutils | [] [] [] [] [] [] [] [] | - shishi | [] | - skencil | [] [] | - solfege | [] | - soundtracker | [] [] [] | - sp | [] | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] [] [] [] | - texinfo | [] [] [] | - tin | [] () | - tuxpaint | [] [] | - unicode-han-tra... | | - unicode-transla... | [] [] | - util-linux | [] [] [] [] [] [] [] | - util-linux-ng | [] [] [] [] [] [] [] | - vorbis-tools | | - wastesedge | () | - wdiff | [] [] [] [] [] [] [] [] | - wget | [] [] [] [] [] [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] | - xpad | [] [] [] | - +--------------------------------------------------+ - es et eu fa fi fr ga gl gu he hi hr hu id is it - 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52 - - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - +--------------------------------------------------+ - Compendium | [] | - a2ps | () [] [] | - aegis | () | - ant-phone | [] | - anubis | [] [] [] | - ap-utils | [] | - aspell | [] [] | - bash | [] | + ant-phone | | + anubis | | + aspell | [] [] | + bash | | bfd | | - bibshelf | [] | + bibshelf | [] | binutils | | - bison | [] [] [] | - bison-runtime | [] [] [] | - bluez-pin | [] [] [] | + bison | | + bison-runtime | [] | + bluez-pin | [] [] | + bombono-dvd | | + buzztard | | cflow | | - clisp | [] | - console-tools | | - coreutils | [] | - cpio | [] | - cpplib | [] | - cryptonit | [] | - dialog | [] [] | - diffutils | [] [] [] | + clisp | | + coreutils | [] [] | + cpio | | + cppi | | + cpplib | [] | + cryptsetup | | + dfarc | | + dialog | [] [] | + dico | | + diffutils | [] | + dink | | doodle | | - e2fsprogs | [] | - enscript | [] | - fetchmail | [] [] | - findutils | [] | - findutils_stable | [] | - flex | [] [] | - fslint | | + e2fsprogs | [] | + enscript | [] | + exif | | + fetchmail | [] | + findutils | [] | + flex | [] | + freedink | | gas | | - gawk | [] [] | - gcal | | + gawk | [] [] | + gcal | [] | gcc | | - gettext-examples | [] [] [] | - gettext-runtime | [] [] [] | - gettext-tools | [] [] | - gip | [] [] | - gliv | [] | - glunarclock | [] [] | - gmult | [] [] [] | + gettext-examples | [] [] [] [] | + gettext-runtime | [] [] | + gettext-tools | [] [] | + gip | [] | + gjay | | + gliv | [] | + glunarclock | [] [] | gnubiff | | - gnucash | () () () | + gnucash | [] | gnuedu | | - gnulib | [] [] | + gnulib | | gnunet | | gnunet-gtk | | - gnutls | [] | - gpe-aerial | [] | - gpe-beam | [] | - gpe-calendar | [] | - gpe-clock | [] [] [] | - gpe-conf | [] [] [] | - gpe-contacts | [] | - gpe-edit | [] [] [] | - gpe-filemanager | [] [] | - gpe-go | [] [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] | - gpe-taskmanager | [] [] [] [] | - gpe-timesheet | [] | - gpe-today | [] [] | - gpe-todo | [] | - gphoto2 | [] [] | - gprof | [] | - gpsdrive | [] | - gramadoir | () | - grep | [] [] | - gretl | | - gsasl | [] | + gnutls | | + gold | | + gpe-aerial | | + gpe-beam | | + gpe-bluetooth | | + gpe-calendar | | + gpe-clock | [] | + gpe-conf | | + gpe-contacts | | + gpe-edit | | + gpe-filemanager | | + gpe-go | | + gpe-login | | + gpe-ownerinfo | [] | + gpe-package | | + gpe-sketchbook | | + gpe-su | [] | + gpe-taskmanager | [] | + gpe-timesheet | [] | + gpe-today | [] | + gpe-todo | | + gphoto2 | | + gprof | [] | + gpsdrive | | + gramadoir | | + grep | | + grub | [] [] | + gsasl | | gss | | - gst-plugins-bad | [] | - gst-plugins-base | [] | - gst-plugins-good | [] | - gst-plugins-ugly | [] | - gstreamer | [] | - gtick | [] | - gtkam | [] [] | - gtkorphan | [] | - gtkspell | [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] | - herrie | [] | + gst-plugins-bad | [] | + gst-plugins-base | [] | + gst-plugins-good | [] | + gst-plugins-ugly | [] | + gstreamer | [] [] [] | + gtick | | + gtkam | [] | + gtkorphan | [] | + gtkspell | [] [] [] | + gutenprint | | + hello | [] | + help2man | | hylafax | | - idutils | [] | - indent | [] [] | - iso_15924 | [] | - iso_3166 | [] [] [] [] [] [] [] [] | - iso_3166_2 | [] | - iso_4217 | [] [] [] | - iso_639 | [] [] [] [] | - jpilot | () () | - jtag | | - jwhois | [] | - kbd | [] | - keytouch | [] | - keytouch-editor | [] | - keytouch-keyboa... | | - latrine | [] | - ld | | - leafpad | [] [] | - libc | [] [] [] | - libexif | | + idutils | | + indent | [] [] | + iso_15924 | | + iso_3166 | [] [] [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | | + iso_639 | [] [] [] [] | + iso_639_3 | | + jwhois | | + kbd | | + keytouch | [] | + keytouch-editor | | + keytouch-keyboa... | [] | + klavaro | [] | + latrine | | + ld | [] | + leafpad | [] [] | + libc | [] [] | + libexif | () | libextractor | | - libgpewidget | [] | + libgnutls | | + libgpewidget | | libgpg-error | | - libgphoto2 | [] | - libgphoto2_port | [] | - libgsasl | [] | - libiconv | [] | - libidn | [] [] | - lifelines | [] | - lilypond | [] | - lingoteach | [] | + libgphoto2 | | + libgphoto2_port | | + libgsasl | | + libiconv | [] | + libidn | | + lifelines | | + liferea | [] [] | + lilypond | | + linkdr | [] | + lordsawar | | lprng | | - lynx | [] [] | - m4 | [] [] | + lynx | [] | + m4 | | mailfromd | | mailutils | | - make | [] [] [] | + make | | man-db | | - minicom | [] | - nano | [] [] [] | - opcodes | [] | - parted | [] [] | - pilot-qof | | - popt | [] [] [] | - psmisc | [] [] [] | + man-db-manpages | | + minicom | | + mkisofs | | + myserver | | + nano | [] [] | + opcodes | | + parted | | + pies | | + popt | | + psmisc | | + pspp | [] | pwdutils | | - qof | | - radius | | - recode | [] | - rpm | [] [] | - screem | [] | - scrollkeeper | [] [] [] [] | - sed | [] [] | - shared-mime-info | [] [] [] [] [] [] [] | - sharutils | [] [] | + radius | [] | + recode | [] [] | + rosegarden | | + rpm | | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] [] | + sed | [] [] | + sharutils | [] [] | shishi | | skencil | | - solfege | () () | + solfege | | + solfege-manual | | soundtracker | | - sp | () | - system-tools-ba... | [] [] [] [] | - tar | [] [] [] | - texinfo | [] [] | + sp | | + sysstat | | + tar | [] | + texinfo | | tin | | - tuxpaint | () [] [] | unicode-han-tra... | | unicode-transla... | | - util-linux | [] [] | - util-linux-ng | [] [] | + util-linux-ng | [] | + vice | | + vmm | | vorbis-tools | | - wastesedge | [] | - wdiff | [] [] | - wget | [] [] | - xchat | [] [] [] [] | - xkeyboard-config | [] [] [] | - xpad | [] [] [] | - +--------------------------------------------------+ - ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn - 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6 - - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - +--------------------------------------------------+ - Compendium | [] [] [] [] [] | - a2ps | () [] [] [] [] [] [] | - aegis | () () | - ant-phone | [] [] | - anubis | [] [] [] | - ap-utils | () | - aspell | [] [] [] | - bash | [] [] | - bfd | | - bibshelf | [] | - binutils | [] [] | - bison | [] [] [] [] [] | - bison-runtime | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] [] [] [] | - cflow | [] | - clisp | [] | - console-tools | [] | - coreutils | [] [] [] [] | - cpio | [] [] [] | - cpplib | [] | - cryptonit | [] [] | - dialog | [] | - diffutils | [] [] [] [] [] [] | - doodle | [] [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] [] | - fetchmail | [] [] [] | - findutils | [] [] [] | - findutils_stable | [] [] [] [] [] [] | - flex | [] [] [] [] [] | - fslint | [] | - gas | | - gawk | [] [] [] [] | - gcal | [] | - gcc | [] [] | - gettext-examples | [] [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] [] [] | - gip | [] [] [] [] | - gliv | [] [] [] [] [] [] | - glunarclock | [] [] [] [] [] [] | - gmult | [] [] [] [] | - gnubiff | () [] | - gnucash | () [] | - gnuedu | | - gnulib | [] [] [] | - gnunet | | - gnunet-gtk | [] | - gnutls | [] [] | - gpe-aerial | [] [] [] [] [] [] [] | - gpe-beam | [] [] [] [] [] [] [] | - gpe-calendar | [] [] [] [] | - gpe-clock | [] [] [] [] [] [] [] [] | - gpe-conf | [] [] [] [] [] [] [] | - gpe-contacts | [] [] [] [] [] | - gpe-edit | [] [] [] [] [] [] [] [] [] | - gpe-filemanager | [] [] | - gpe-go | [] [] [] [] [] [] [] [] | - gpe-login | [] [] [] [] [] [] [] [] | - gpe-ownerinfo | [] [] [] [] [] [] [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] [] [] [] [] [] [] | - gpe-su | [] [] [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] [] [] [] | - gpe-timesheet | [] [] [] [] [] [] [] [] | - gpe-today | [] [] [] [] [] [] [] [] | - gpe-todo | [] [] [] [] | - gphoto2 | [] [] [] [] [] [] | - gprof | [] [] [] | - gpsdrive | [] [] | - gramadoir | [] [] | - grep | [] [] [] [] | - gretl | [] [] [] | - gsasl | [] [] [] | - gss | [] [] [] [] | - gst-plugins-bad | [] [] [] | - gst-plugins-base | [] [] | - gst-plugins-good | [] [] | - gst-plugins-ugly | [] [] [] | - gstreamer | [] [] [] [] | - gtick | [] | - gtkam | [] [] [] [] [] | - gtkorphan | [] | - gtkspell | [] [] [] [] [] [] [] [] | - gutenprint | [] | - hello | [] [] [] [] [] [] [] [] | - herrie | [] [] [] | - hylafax | | - idutils | [] [] [] [] [] | - indent | [] [] [] [] [] [] [] | - iso_15924 | | - iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] [] | - jpilot | | - jtag | [] | - jwhois | [] [] [] [] | - kbd | [] [] [] | - keytouch | [] | - keytouch-editor | [] | - keytouch-keyboa... | [] | - latrine | | - ld | [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] [] | - libextractor | [] [] | - libgpewidget | [] [] [] [] [] [] [] [] | - libgpg-error | [] [] [] | - libgphoto2 | [] | - libgphoto2_port | [] [] [] | - libgsasl | [] [] [] [] | - libiconv | [] [] [] | - libidn | [] [] () | - lifelines | [] [] | - lilypond | | - lingoteach | [] | - lprng | [] | - lynx | [] [] [] | - m4 | [] [] [] [] [] | - mailfromd | [] | - mailutils | [] [] [] | - make | [] [] [] [] | - man-db | [] [] [] [] | - minicom | [] [] [] [] [] | - nano | [] [] [] [] | - opcodes | [] [] | - parted | [] | - pilot-qof | | - popt | [] [] [] [] | - psmisc | [] [] | - pwdutils | [] [] | - qof | [] [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] | - rpm | [] [] [] [] | - screem | | - scrollkeeper | [] [] [] [] [] [] [] | - sed | [] [] [] [] [] [] [] [] [] | - shared-mime-info | [] [] [] [] [] [] | - sharutils | [] [] [] [] | - shishi | [] | - skencil | [] [] [] | - solfege | [] | - soundtracker | [] [] | - sp | | - system-tools-ba... | [] [] [] [] [] [] [] [] [] | - tar | [] [] [] [] | - texinfo | [] [] [] [] | - tin | () | - tuxpaint | [] [] [] [] [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux | [] [] [] [] | - util-linux-ng | [] [] [] [] | - vorbis-tools | [] | wastesedge | | - wdiff | [] [] [] [] [] [] [] | - wget | [] [] [] [] | - xchat | [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - xpad | [] [] [] | + wdiff | | + wget | [] [] | + wyslij-po | | + xchat | [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] | +--------------------------------------------------+ - or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta - 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3 + af am an ar as ast az be be@latin bg bn_IN bs ca + 6 0 1 2 3 19 1 10 3 28 3 1 38 + + crh cs da de el en en_GB en_ZA eo es et eu fa + +-------------------------------------------------+ + a2ps | [] [] [] [] [] [] [] | + aegis | [] [] [] | + ant-phone | [] () | + anubis | [] [] | + aspell | [] [] [] [] [] | + bash | [] [] [] | + bfd | [] | + bibshelf | [] [] [] | + binutils | [] | + bison | [] [] | + bison-runtime | [] [] [] [] | + bluez-pin | [] [] [] [] [] [] | + bombono-dvd | [] | + buzztard | [] [] [] | + cflow | [] [] | + clisp | [] [] [] [] | + coreutils | [] [] [] [] | + cpio | | + cppi | | + cpplib | [] [] [] | + cryptsetup | [] | + dfarc | [] [] [] | + dialog | [] [] [] [] [] | + dico | | + diffutils | [] [] [] [] [] [] | + dink | [] [] [] | + doodle | [] | + e2fsprogs | [] [] [] | + enscript | [] [] [] | + exif | () [] [] | + fetchmail | [] [] () [] [] [] | + findutils | [] [] [] | + flex | [] [] | + freedink | [] [] [] | + gas | [] | + gawk | [] [] [] | + gcal | [] | + gcc | [] [] | + gettext-examples | [] [] [] [] | + gettext-runtime | [] [] [] [] | + gettext-tools | [] [] [] | + gip | [] [] [] [] | + gjay | [] | + gliv | [] [] [] | + glunarclock | [] [] | + gnubiff | () | + gnucash | [] () () () () | + gnuedu | [] [] | + gnulib | [] [] | + gnunet | | + gnunet-gtk | [] | + gnutls | [] [] | + gold | [] | + gpe-aerial | [] [] [] [] | + gpe-beam | [] [] [] [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] | + gpe-clock | [] [] [] [] | + gpe-conf | [] [] [] | + gpe-contacts | [] [] [] | + gpe-edit | [] [] | + gpe-filemanager | [] [] [] | + gpe-go | [] [] [] [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] [] [] | + gpe-package | [] [] [] | + gpe-sketchbook | [] [] [] [] | + gpe-su | [] [] [] [] | + gpe-taskmanager | [] [] [] [] | + gpe-timesheet | [] [] [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] [] [] | + gphoto2 | [] [] () [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] [] | + gramadoir | [] [] [] | + grep | [] | + grub | [] [] | + gsasl | [] | + gss | | + gst-plugins-bad | [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] () [] | + gtkam | [] [] () [] [] | + gtkorphan | [] [] [] [] | + gtkspell | [] [] [] [] [] [] [] | + gutenprint | [] [] [] | + hello | [] [] [] [] | + help2man | [] | + hylafax | [] [] | + idutils | [] [] | + indent | [] [] [] [] [] [] [] | + iso_15924 | [] () [] [] | + iso_3166 | [] [] [] [] () [] [] [] () | + iso_3166_2 | () | + iso_4217 | [] [] [] () [] [] | + iso_639 | [] [] [] [] () [] [] | + iso_639_3 | [] | + jwhois | [] | + kbd | [] [] [] [] [] | + keytouch | [] [] | + keytouch-editor | [] [] | + keytouch-keyboa... | [] | + klavaro | [] [] [] [] | + latrine | [] () | + ld | [] [] | + leafpad | [] [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] [] () | + libextractor | | + libgnutls | [] | + libgpewidget | [] [] | + libgpg-error | [] [] | + libgphoto2 | [] () | + libgphoto2_port | [] () [] | + libgsasl | | + libiconv | [] [] [] [] [] | + libidn | [] [] [] | + lifelines | [] () | + liferea | [] [] [] [] [] | + lilypond | [] [] [] | + linkdr | [] [] [] | + lordsawar | [] | + lprng | | + lynx | [] [] [] [] | + m4 | [] [] [] [] | + mailfromd | | + mailutils | [] | + make | [] [] [] | + man-db | | + man-db-manpages | | + minicom | [] [] [] [] | + mkisofs | | + myserver | | + nano | [] [] [] | + opcodes | [] [] | + parted | [] [] | + pies | | + popt | [] [] [] [] [] | + psmisc | [] [] [] | + pspp | [] | + pwdutils | [] | + radius | [] | + recode | [] [] [] [] [] [] | + rosegarden | () () () | + rpm | [] [] [] | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] [] [] [] | + sed | [] [] [] [] [] [] | + sharutils | [] [] [] [] | + shishi | | + skencil | [] () [] | + solfege | [] [] [] | + solfege-manual | [] [] | + soundtracker | [] [] [] | + sp | [] | + sysstat | [] [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] | + tin | [] [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | [] [] [] [] | + vice | () () | + vmm | [] | + vorbis-tools | [] [] | + wastesedge | [] | + wdiff | [] [] | + wget | [] [] [] | + wyslij-po | | + xchat | [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] [] [] [] | + +-------------------------------------------------+ + crh cs da de el en en_GB en_ZA eo es et eu fa + 5 64 105 117 18 1 8 0 28 89 18 19 0 + + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + +----------------------------------------------------+ + a2ps | [] [] [] [] | + aegis | [] [] | + ant-phone | [] [] | + anubis | [] [] [] [] | + aspell | [] [] [] [] | + bash | [] [] [] [] | + bfd | [] [] [] | + bibshelf | [] [] [] [] [] | + binutils | [] [] [] | + bison | [] [] [] [] | + bison-runtime | [] [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] | + bombono-dvd | [] | + buzztard | [] | + cflow | [] [] [] | + clisp | [] | + coreutils | [] [] [] [] [] | + cpio | [] [] [] [] | + cppi | [] [] | + cpplib | [] [] [] | + cryptsetup | [] [] [] | + dfarc | [] [] [] | + dialog | [] [] [] [] [] [] [] | + dico | | + diffutils | [] [] [] [] [] [] [] [] [] | + dink | [] | + doodle | [] [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] | + exif | [] [] [] [] [] [] | + fetchmail | [] [] [] [] | + findutils | [] [] [] [] [] [] | + flex | [] [] [] | + freedink | [] [] [] | + gas | [] [] | + gawk | [] [] [] [] () [] | + gcal | [] | + gcc | [] | + gettext-examples | [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] | + gettext-tools | [] [] [] [] | + gip | [] [] [] [] [] [] | + gjay | [] | + gliv | [] () | + glunarclock | [] [] [] [] | + gnubiff | () [] () | + gnucash | () () () () () [] | + gnuedu | [] [] | + gnulib | [] [] [] [] [] [] | + gnunet | | + gnunet-gtk | [] | + gnutls | [] [] | + gold | [] [] | + gpe-aerial | [] [] [] | + gpe-beam | [] [] [] [] | + gpe-bluetooth | [] [] [] [] | + gpe-calendar | [] [] | + gpe-clock | [] [] [] [] [] | + gpe-conf | [] [] [] [] | + gpe-contacts | [] [] [] [] | + gpe-edit | [] [] [] | + gpe-filemanager | [] [] [] [] | + gpe-go | [] [] [] [] [] | + gpe-login | [] [] [] | + gpe-ownerinfo | [] [] [] [] [] | + gpe-package | [] [] [] | + gpe-sketchbook | [] [] [] [] | + gpe-su | [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] | + gpe-todo | [] [] [] | + gphoto2 | [] [] [] [] [] [] | + gprof | [] [] [] [] | + gpsdrive | [] [] [] | + gramadoir | [] [] [] | + grep | [] [] | + grub | [] [] [] [] | + gsasl | [] [] [] [] [] | + gss | [] [] [] [] [] | + gst-plugins-bad | [] [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] [] [] [] [] | + gtkam | [] [] [] [] [] | + gtkorphan | [] [] [] | + gtkspell | [] [] [] [] [] [] [] [] [] | + gutenprint | [] [] [] [] | + hello | [] [] [] | + help2man | [] [] | + hylafax | [] | + idutils | [] [] [] [] [] [] | + indent | [] [] [] [] [] [] [] [] | + iso_15924 | [] () [] [] | + iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | + iso_3166_2 | () [] [] [] | + iso_4217 | [] () [] [] [] [] | + iso_639 | [] () [] [] [] [] [] [] [] | + iso_639_3 | () [] [] | + jwhois | [] [] [] [] [] | + kbd | [] [] | + keytouch | [] [] [] [] [] [] | + keytouch-editor | [] [] [] [] [] | + keytouch-keyboa... | [] [] [] [] [] | + klavaro | [] [] | + latrine | [] [] [] | + ld | [] [] [] [] | + leafpad | [] [] [] [] [] [] [] () | + libc | [] [] [] [] [] | + libexif | [] | + libextractor | | + libgnutls | [] [] | + libgpewidget | [] [] [] [] | + libgpg-error | [] [] | + libgphoto2 | [] [] [] | + libgphoto2_port | [] [] [] | + libgsasl | [] [] [] [] [] | + libiconv | [] [] [] [] [] [] | + libidn | [] [] [] [] | + lifelines | () | + liferea | [] [] [] [] | + lilypond | [] [] | + linkdr | [] [] [] [] [] | + lordsawar | | + lprng | [] | + lynx | [] [] [] [] [] | + m4 | [] [] [] [] [] [] | + mailfromd | | + mailutils | [] [] | + make | [] [] [] [] [] [] [] [] [] | + man-db | [] [] | + man-db-manpages | [] | + minicom | [] [] [] [] [] | + mkisofs | [] [] [] [] | + myserver | | + nano | [] [] [] [] [] [] | + opcodes | [] [] [] [] | + parted | [] [] [] [] | + pies | | + popt | [] [] [] [] [] [] [] [] [] | + psmisc | [] [] [] | + pspp | | + pwdutils | [] [] | + radius | [] [] | + recode | [] [] [] [] [] [] [] [] | + rosegarden | () () () () () | + rpm | [] [] | + rush | | + sarg | [] | + screem | [] [] | + scrollkeeper | [] [] [] [] | + sed | [] [] [] [] [] [] [] [] | + sharutils | [] [] [] [] [] [] [] | + shishi | [] | + skencil | [] | + solfege | [] [] [] [] | + solfege-manual | [] [] | + soundtracker | [] [] | + sp | [] () | + sysstat | [] [] [] [] [] | + tar | [] [] [] [] [] [] [] | + texinfo | [] [] [] [] | + tin | [] | + unicode-han-tra... | | + unicode-transla... | [] [] | + util-linux-ng | [] [] [] [] [] [] | + vice | () () () | + vmm | [] | + vorbis-tools | [] | + wastesedge | () () | + wdiff | [] | + wget | [] [] [] [] [] [] [] [] | + wyslij-po | [] [] [] | + xchat | [] [] [] [] [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] [] [] | + +----------------------------------------------------+ + fi fr ga gl gu he hi hr hu hy id is it ja ka kn + 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 + + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + +-----------------------------------------------+ + a2ps | [] | + aegis | | + ant-phone | | + anubis | [] [] | + aspell | [] | + bash | | + bfd | | + bibshelf | [] [] | + binutils | | + bison | [] | + bison-runtime | [] [] [] [] [] | + bluez-pin | [] [] [] [] [] | + bombono-dvd | | + buzztard | | + cflow | | + clisp | | + coreutils | [] | + cpio | | + cppi | | + cpplib | | + cryptsetup | | + dfarc | [] | + dialog | [] [] [] [] [] | + dico | | + diffutils | [] [] | + dink | | + doodle | | + e2fsprogs | | + enscript | | + exif | [] | + fetchmail | | + findutils | | + flex | | + freedink | [] | + gas | | + gawk | | + gcal | | + gcc | | + gettext-examples | [] [] [] [] | + gettext-runtime | [] | + gettext-tools | [] | + gip | [] [] | + gjay | | + gliv | | + glunarclock | [] | + gnubiff | | + gnucash | () () () () | + gnuedu | | + gnulib | | + gnunet | | + gnunet-gtk | | + gnutls | [] | + gold | | + gpe-aerial | [] | + gpe-beam | [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] | + gpe-clock | [] [] [] [] [] | + gpe-conf | [] [] | + gpe-contacts | [] [] | + gpe-edit | [] | + gpe-filemanager | [] [] | + gpe-go | [] [] [] | + gpe-login | [] | + gpe-ownerinfo | [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] | + gpe-su | [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] | + gpe-timesheet | [] [] | + gpe-today | [] [] [] [] | + gpe-todo | [] [] | + gphoto2 | | + gprof | [] | + gpsdrive | | + gramadoir | | + grep | | + grub | | + gsasl | | + gss | | + gst-plugins-bad | [] [] [] [] | + gst-plugins-base | [] [] | + gst-plugins-good | [] [] | + gst-plugins-ugly | [] [] [] [] [] | + gstreamer | | + gtick | | + gtkam | [] | + gtkorphan | [] [] | + gtkspell | [] [] [] [] [] [] [] | + gutenprint | | + hello | [] [] [] | + help2man | | + hylafax | | + idutils | | + indent | | + iso_15924 | [] [] | + iso_3166 | [] [] () [] [] [] [] [] | + iso_3166_2 | | + iso_4217 | [] [] | + iso_639 | [] [] | + iso_639_3 | [] | + jwhois | [] | + kbd | | + keytouch | [] | + keytouch-editor | [] | + keytouch-keyboa... | [] | + klavaro | [] | + latrine | [] | + ld | | + leafpad | [] [] [] | + libc | [] | + libexif | | + libextractor | | + libgnutls | [] | + libgpewidget | [] [] | + libgpg-error | | + libgphoto2 | | + libgphoto2_port | | + libgsasl | | + libiconv | | + libidn | | + lifelines | | + liferea | | + lilypond | | + linkdr | | + lordsawar | | + lprng | | + lynx | | + m4 | | + mailfromd | | + mailutils | | + make | [] | + man-db | | + man-db-manpages | | + minicom | [] | + mkisofs | | + myserver | | + nano | [] [] | + opcodes | | + parted | | + pies | | + popt | [] [] [] | + psmisc | | + pspp | | + pwdutils | | + radius | | + recode | | + rosegarden | | + rpm | | + rush | | + sarg | | + screem | | + scrollkeeper | [] [] | + sed | | + sharutils | | + shishi | | + skencil | | + solfege | [] | + solfege-manual | | + soundtracker | | + sp | | + sysstat | [] | + tar | [] | + texinfo | [] | + tin | | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | | + vice | | + vmm | | + vorbis-tools | | + wastesedge | | + wdiff | | + wget | [] | + wyslij-po | | + xchat | [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] | + +-----------------------------------------------+ + ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne + 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 + + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + +---------------------------------------------------+ + a2ps | [] [] [] [] [] [] [] [] | + aegis | [] [] [] | + ant-phone | [] [] | + anubis | [] [] [] | + aspell | [] [] [] [] [] | + bash | [] [] | + bfd | [] | + bibshelf | [] [] | + binutils | [] [] | + bison | [] [] [] | + bison-runtime | [] [] [] [] [] [] [] | + bluez-pin | [] [] [] [] [] [] [] [] | + bombono-dvd | [] () | + buzztard | [] [] | + cflow | [] | + clisp | [] [] | + coreutils | [] [] [] [] [] [] | + cpio | [] [] [] | + cppi | [] | + cpplib | [] | + cryptsetup | [] | + dfarc | [] | + dialog | [] [] [] [] | + dico | [] | + diffutils | [] [] [] [] [] [] | + dink | () | + doodle | [] [] | + e2fsprogs | [] [] | + enscript | [] [] [] [] [] | + exif | [] [] [] () [] | + fetchmail | [] [] [] [] | + findutils | [] [] [] [] [] | + flex | [] [] [] [] [] | + freedink | [] [] | + gas | | + gawk | [] [] [] [] | + gcal | | + gcc | [] | + gettext-examples | [] [] [] [] [] [] [] [] | + gettext-runtime | [] [] [] [] [] [] [] [] [] | + gettext-tools | [] [] [] [] [] [] | + gip | [] [] [] [] [] | + gjay | | + gliv | [] [] [] [] [] [] | + glunarclock | [] [] [] [] [] | + gnubiff | [] () | + gnucash | [] () () () | + gnuedu | [] | + gnulib | [] [] [] [] | + gnunet | | + gnunet-gtk | | + gnutls | [] [] | + gold | | + gpe-aerial | [] [] [] [] [] [] [] | + gpe-beam | [] [] [] [] [] [] [] | + gpe-bluetooth | [] [] | + gpe-calendar | [] [] [] [] | + gpe-clock | [] [] [] [] [] [] [] [] | + gpe-conf | [] [] [] [] [] [] [] | + gpe-contacts | [] [] [] [] [] | + gpe-edit | [] [] [] | + gpe-filemanager | [] [] [] | + gpe-go | [] [] [] [] [] [] [] [] | + gpe-login | [] [] | + gpe-ownerinfo | [] [] [] [] [] [] [] [] | + gpe-package | [] [] | + gpe-sketchbook | [] [] [] [] [] [] [] | + gpe-su | [] [] [] [] [] [] [] [] | + gpe-taskmanager | [] [] [] [] [] [] [] [] | + gpe-timesheet | [] [] [] [] [] [] [] [] | + gpe-today | [] [] [] [] [] [] [] [] | + gpe-todo | [] [] [] [] [] | + gphoto2 | [] [] [] [] [] [] [] [] | + gprof | [] [] [] | + gpsdrive | [] [] | + gramadoir | [] [] | + grep | [] [] [] [] | + grub | [] [] [] | + gsasl | [] [] [] [] | + gss | [] [] [] | + gst-plugins-bad | [] [] [] [] [] [] | + gst-plugins-base | [] [] [] [] [] | + gst-plugins-good | [] [] [] [] [] | + gst-plugins-ugly | [] [] [] [] [] [] | + gstreamer | [] [] [] [] [] | + gtick | [] [] [] | + gtkam | [] [] [] [] [] [] | + gtkorphan | [] | + gtkspell | [] [] [] [] [] [] [] [] [] [] | + gutenprint | [] [] | + hello | [] [] [] [] | + help2man | [] [] | + hylafax | [] | + idutils | [] [] [] [] [] | + indent | [] [] [] [] [] [] [] | + iso_15924 | [] [] [] [] | + iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | + iso_3166_2 | [] [] [] | + iso_4217 | [] [] [] [] [] [] [] [] | + iso_639 | [] [] [] [] [] [] [] [] [] | + iso_639_3 | [] [] | + jwhois | [] [] [] [] | + kbd | [] [] [] | + keytouch | [] [] [] | + keytouch-editor | [] [] [] | + keytouch-keyboa... | [] [] [] | + klavaro | [] [] | + latrine | [] [] | + ld | | + leafpad | [] [] [] [] [] [] [] [] [] | + libc | [] [] [] [] | + libexif | [] [] () [] | + libextractor | | + libgnutls | [] [] | + libgpewidget | [] [] [] | + libgpg-error | [] [] | + libgphoto2 | [] [] | + libgphoto2_port | [] [] [] [] [] | + libgsasl | [] [] [] [] [] | + libiconv | [] [] [] [] [] | + libidn | [] [] | + lifelines | [] [] | + liferea | [] [] [] [] [] () () [] | + lilypond | [] | + linkdr | [] [] [] | + lordsawar | | + lprng | [] | + lynx | [] [] [] | + m4 | [] [] [] [] [] | + mailfromd | [] | + mailutils | [] | + make | [] [] [] [] | + man-db | [] [] [] | + man-db-manpages | [] [] [] | + minicom | [] [] [] [] | + mkisofs | [] [] [] | + myserver | | + nano | [] [] [] [] | + opcodes | [] [] | + parted | [] [] [] [] | + pies | [] | + popt | [] [] [] [] | + psmisc | [] [] [] | + pspp | [] [] | + pwdutils | [] | + radius | [] [] [] | + recode | [] [] [] [] [] [] [] [] | + rosegarden | () () | + rpm | [] [] [] | + rush | [] [] | + sarg | | + screem | | + scrollkeeper | [] [] [] [] [] [] [] [] | + sed | [] [] [] [] [] [] [] [] [] | + sharutils | [] [] [] [] | + shishi | [] | + skencil | [] [] | + solfege | [] [] [] [] | + solfege-manual | [] [] [] | + soundtracker | [] | + sp | | + sysstat | [] [] [] [] | + tar | [] [] [] [] | + texinfo | [] [] [] [] | + tin | [] | + unicode-han-tra... | | + unicode-transla... | | + util-linux-ng | [] [] [] [] [] | + vice | [] | + vmm | [] | + vorbis-tools | [] [] | + wastesedge | [] | + wdiff | [] [] | + wget | [] [] [] [] [] [] [] | + wyslij-po | [] [] [] | + xchat | [] [] [] [] [] [] [] [] [] | + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | + xkeyboard-config | [] [] [] | + +---------------------------------------------------+ + nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr + 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 - tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu + sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ - Compendium | [] [] [] [] | 19 - a2ps | [] [] [] | 19 - aegis | [] | 1 - ant-phone | [] [] | 6 - anubis | [] [] [] | 11 - ap-utils | () [] | 4 - aspell | [] [] [] | 16 - bash | [] | 6 - bfd | | 2 - bibshelf | [] | 7 - binutils | [] [] [] [] | 9 - bison | [] [] [] [] | 20 - bison-runtime | [] [] [] [] | 18 - bluez-pin | [] [] [] [] [] [] | 28 - cflow | [] [] | 5 - clisp | | 9 - console-tools | [] [] | 5 - coreutils | [] [] [] | 18 - cpio | [] [] [] [] | 11 - cpplib | [] [] [] [] [] | 12 - cryptonit | [] | 6 - dialog | [] [] [] | 9 - diffutils | [] [] [] [] [] | 29 - doodle | [] | 6 - e2fsprogs | [] [] | 10 - enscript | [] [] [] | 16 - fetchmail | [] [] | 12 - findutils | [] [] [] | 11 - findutils_stable | [] [] [] [] | 18 - flex | [] [] | 15 - fslint | [] | 2 - gas | [] | 3 - gawk | [] [] [] | 16 - gcal | [] | 5 - gcc | [] [] [] | 7 - gettext-examples | [] [] [] [] [] [] | 29 - gettext-runtime | [] [] [] [] [] [] | 28 - gettext-tools | [] [] [] [] [] | 20 - gip | [] [] | 13 - gliv | [] [] | 11 - glunarclock | [] [] [] | 15 - gmult | [] [] [] [] | 16 - gnubiff | [] | 2 - gnucash | () [] | 5 - gnuedu | [] | 2 - gnulib | [] | 10 - gnunet | | 0 - gnunet-gtk | [] [] | 3 - gnutls | | 4 - gpe-aerial | [] [] | 14 - gpe-beam | [] [] | 14 - gpe-calendar | [] [] | 7 - gpe-clock | [] [] [] [] | 21 - gpe-conf | [] [] [] | 16 - gpe-contacts | [] [] | 10 - gpe-edit | [] [] [] [] [] | 22 - gpe-filemanager | [] [] | 7 - gpe-go | [] [] [] [] | 19 - gpe-login | [] [] [] [] [] | 21 - gpe-ownerinfo | [] [] [] [] | 21 - gpe-package | [] | 6 - gpe-sketchbook | [] [] | 16 - gpe-su | [] [] [] [] | 21 - gpe-taskmanager | [] [] [] [] | 21 - gpe-timesheet | [] [] [] [] | 18 - gpe-today | [] [] [] [] [] | 21 - gpe-todo | [] [] | 8 - gphoto2 | [] [] [] [] | 21 - gprof | [] [] | 13 - gpsdrive | [] | 5 - gramadoir | [] | 7 - grep | [] | 12 - gretl | | 6 - gsasl | [] [] [] | 9 - gss | [] | 7 - gst-plugins-bad | [] [] [] | 13 - gst-plugins-base | [] [] | 11 - gst-plugins-good | [] [] [] [] [] | 16 - gst-plugins-ugly | [] [] [] | 13 - gstreamer | [] [] [] | 18 - gtick | [] [] | 7 - gtkam | [] | 16 - gtkorphan | [] | 7 - gtkspell | [] [] [] [] [] [] | 27 - gutenprint | | 4 - hello | [] [] [] [] [] | 38 - herrie | [] [] | 8 - hylafax | | 0 - idutils | [] [] | 15 - indent | [] [] [] [] [] | 28 - iso_15924 | [] [] | 4 - iso_3166 | [] [] [] [] [] [] [] [] [] | 54 - iso_3166_2 | [] [] | 4 - iso_4217 | [] [] [] [] [] | 24 - iso_639 | [] [] [] [] [] | 26 - jpilot | [] [] [] [] | 7 - jtag | [] | 3 - jwhois | [] [] [] | 13 - kbd | [] [] [] | 13 - keytouch | [] | 8 - keytouch-editor | [] | 5 - keytouch-keyboa... | [] | 5 - latrine | [] [] | 5 - ld | [] [] [] [] | 10 - leafpad | [] [] [] [] [] | 24 - libc | [] [] [] | 19 - libexif | [] | 5 - libextractor | [] | 5 - libgpewidget | [] [] [] | 20 - libgpg-error | [] | 6 - libgphoto2 | [] [] | 9 - libgphoto2_port | [] [] [] | 11 - libgsasl | [] | 8 - libiconv | [] [] | 11 - libidn | [] [] | 11 - lifelines | | 4 - lilypond | [] | 6 - lingoteach | [] | 6 - lprng | [] | 2 - lynx | [] [] [] | 15 - m4 | [] [] [] | 18 - mailfromd | [] [] | 3 - mailutils | [] [] | 8 - make | [] [] [] | 20 - man-db | [] | 9 - minicom | [] | 14 - nano | [] [] [] | 20 - opcodes | [] [] | 10 - parted | [] [] [] | 11 - pilot-qof | [] | 1 - popt | [] [] [] [] | 18 - psmisc | [] [] | 10 - pwdutils | [] | 3 - qof | [] | 4 - radius | [] [] | 7 - recode | [] [] [] | 25 - rpm | [] [] [] [] | 13 - screem | [] | 2 - scrollkeeper | [] [] [] [] | 26 - sed | [] [] [] [] | 23 - shared-mime-info | [] [] [] | 29 - sharutils | [] [] [] | 23 - shishi | [] | 3 - skencil | [] | 7 - solfege | [] | 3 - soundtracker | [] [] | 9 - sp | [] | 3 - system-tools-ba... | [] [] [] [] [] [] [] | 38 - tar | [] [] [] | 17 - texinfo | [] [] [] | 15 - tin | | 1 - tuxpaint | [] [] [] | 19 + a2ps | [] [] [] [] [] | 27 + aegis | [] | 9 + ant-phone | [] [] [] [] | 9 + anubis | [] [] [] [] | 15 + aspell | [] [] [] | 20 + bash | [] [] [] | 12 + bfd | [] | 6 + bibshelf | [] [] [] | 16 + binutils | [] [] | 8 + bison | [] [] | 12 + bison-runtime | [] [] [] [] [] [] | 29 + bluez-pin | [] [] [] [] [] [] [] [] | 37 + bombono-dvd | [] | 4 + buzztard | [] | 7 + cflow | [] [] [] | 9 + clisp | | 10 + coreutils | [] [] [] [] | 22 + cpio | [] [] [] [] [] [] | 13 + cppi | [] [] | 5 + cpplib | [] [] [] [] [] [] | 14 + cryptsetup | [] [] | 7 + dfarc | [] | 9 + dialog | [] [] [] [] [] [] [] | 30 + dico | [] | 2 + diffutils | [] [] [] [] [] [] | 30 + dink | | 4 + doodle | [] [] | 7 + e2fsprogs | [] [] [] | 11 + enscript | [] [] [] [] | 17 + exif | [] [] [] | 16 + fetchmail | [] [] [] | 17 + findutils | [] [] [] [] [] | 20 + flex | [] [] [] [] | 15 + freedink | [] | 10 + gas | [] | 4 + gawk | [] [] [] [] | 18 + gcal | [] [] | 5 + gcc | [] [] [] | 7 + gettext-examples | [] [] [] [] [] [] [] | 34 + gettext-runtime | [] [] [] [] [] [] [] | 29 + gettext-tools | [] [] [] [] [] [] | 22 + gip | [] [] [] [] | 22 + gjay | [] | 3 + gliv | [] [] [] | 14 + glunarclock | [] [] [] [] [] | 19 + gnubiff | [] [] | 4 + gnucash | () [] () [] () | 10 + gnuedu | [] [] | 7 + gnulib | [] [] [] [] | 16 + gnunet | [] | 1 + gnunet-gtk | [] [] [] | 5 + gnutls | [] [] [] | 10 + gold | [] | 4 + gpe-aerial | [] [] [] | 18 + gpe-beam | [] [] [] | 19 + gpe-bluetooth | [] [] [] | 13 + gpe-calendar | [] [] [] [] | 12 + gpe-clock | [] [] [] [] [] | 28 + gpe-conf | [] [] [] [] | 20 + gpe-contacts | [] [] [] | 17 + gpe-edit | [] [] [] | 12 + gpe-filemanager | [] [] [] [] | 16 + gpe-go | [] [] [] [] [] | 25 + gpe-login | [] [] [] | 11 + gpe-ownerinfo | [] [] [] [] [] | 25 + gpe-package | [] [] [] | 13 + gpe-sketchbook | [] [] [] | 20 + gpe-su | [] [] [] [] [] | 30 + gpe-taskmanager | [] [] [] [] [] | 29 + gpe-timesheet | [] [] [] [] [] | 25 + gpe-today | [] [] [] [] [] [] | 30 + gpe-todo | [] [] [] [] | 17 + gphoto2 | [] [] [] [] [] | 24 + gprof | [] [] [] | 15 + gpsdrive | [] [] [] | 11 + gramadoir | [] [] [] | 11 + grep | [] [] [] | 10 + grub | [] [] [] | 14 + gsasl | [] [] [] [] | 14 + gss | [] [] [] | 11 + gst-plugins-bad | [] [] [] [] | 26 + gst-plugins-base | [] [] [] [] [] | 24 + gst-plugins-good | [] [] [] [] | 24 + gst-plugins-ugly | [] [] [] [] [] | 29 + gstreamer | [] [] [] [] | 22 + gtick | [] [] [] | 13 + gtkam | [] [] [] | 20 + gtkorphan | [] [] [] | 14 + gtkspell | [] [] [] [] [] [] [] [] [] | 45 + gutenprint | [] | 10 + hello | [] [] [] [] [] [] | 21 + help2man | [] [] | 7 + hylafax | [] | 5 + idutils | [] [] [] [] | 17 + indent | [] [] [] [] [] [] | 30 + iso_15924 | () [] () [] [] | 16 + iso_3166 | [] [] () [] [] () [] [] [] () | 53 + iso_3166_2 | () [] () [] | 9 + iso_4217 | [] () [] [] () [] [] | 26 + iso_639 | [] [] [] () [] () [] [] [] [] | 38 + iso_639_3 | [] () | 8 + jwhois | [] [] [] [] [] | 16 + kbd | [] [] [] [] [] | 15 + keytouch | [] [] [] | 16 + keytouch-editor | [] [] [] | 14 + keytouch-keyboa... | [] [] [] | 14 + klavaro | [] | 11 + latrine | [] [] [] | 10 + ld | [] [] [] [] | 11 + leafpad | [] [] [] [] [] [] | 33 + libc | [] [] [] [] [] | 21 + libexif | [] () | 7 + libextractor | [] | 1 + libgnutls | [] [] [] | 9 + libgpewidget | [] [] [] | 14 + libgpg-error | [] [] [] | 9 + libgphoto2 | [] [] | 8 + libgphoto2_port | [] [] [] [] | 14 + libgsasl | [] [] [] | 13 + libiconv | [] [] [] [] | 21 + libidn | () [] [] | 11 + lifelines | [] | 4 + liferea | [] [] [] | 21 + lilypond | [] | 7 + linkdr | [] [] [] [] [] | 17 + lordsawar | | 1 + lprng | [] | 3 + lynx | [] [] [] [] | 17 + m4 | [] [] [] [] | 19 + mailfromd | [] [] | 3 + mailutils | [] | 5 + make | [] [] [] [] | 21 + man-db | [] [] [] | 8 + man-db-manpages | | 4 + minicom | [] [] | 16 + mkisofs | [] [] | 9 + myserver | | 0 + nano | [] [] [] [] | 21 + opcodes | [] [] [] | 11 + parted | [] [] [] [] [] | 15 + pies | [] [] | 3 + popt | [] [] [] [] [] [] | 27 + psmisc | [] [] | 11 + pspp | | 4 + pwdutils | [] [] | 6 + radius | [] [] | 9 + recode | [] [] [] [] | 28 + rosegarden | () | 0 + rpm | [] [] [] | 11 + rush | [] [] | 4 + sarg | | 1 + screem | [] | 3 + scrollkeeper | [] [] [] [] [] | 27 + sed | [] [] [] [] [] | 30 + sharutils | [] [] [] [] [] | 22 + shishi | [] | 3 + skencil | [] [] | 7 + solfege | [] [] [] [] | 16 + solfege-manual | [] | 8 + soundtracker | [] [] [] | 9 + sp | [] | 3 + sysstat | [] [] | 15 + tar | [] [] [] [] [] [] | 23 + texinfo | [] [] [] [] [] | 17 + tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 - util-linux | [] [] [] | 20 - util-linux-ng | [] [] [] | 20 - vorbis-tools | [] [] | 4 - wastesedge | | 1 - wdiff | [] [] | 23 - wget | [] [] [] | 20 - xchat | [] [] [] [] | 29 - xkeyboard-config | [] [] [] | 14 - xpad | [] [] [] | 15 + util-linux-ng | [] [] [] [] | 20 + vice | () () | 1 + vmm | [] | 4 + vorbis-tools | [] | 6 + wastesedge | | 2 + wdiff | [] [] | 7 + wget | [] [] [] [] [] | 26 + wyslij-po | [] [] | 8 + xchat | [] [] [] [] [] [] | 36 + xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 + xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ - 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu - 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036 + 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW + 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are @@ -1042,12 +1256,12 @@ lag between the mere existence a PO file and its wide availability in a distribution. - If November 2007 seems to be old, you may fetch a more recent copy -of this `ABOUT-NLS' file on most GNU archive sites. The most -up-to-date matrix with full percentage details can be found at + If June 2010 seems to be old, you may fetch a more recent copy of +this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date +matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. -1.6 Using `gettext' in new packages +1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to diff -Nru gettext-0.17/gettext-tools/aclocal.m4 gettext-0.18.1.1/gettext-tools/aclocal.m4 --- gettext-0.17/gettext-tools/aclocal.m4 2007-11-06 23:36:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/aclocal.m4 2010-06-06 20:12:15.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,8 +11,6646 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- + +# serial 52 AC_PROG_LIBTOOL + + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) + + +# AC_PROG_LIBTOOL +# --------------- +AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Prevent multiple expansion +define([AC_PROG_LIBTOOL], []) +])# _AC_PROG_LIBTOOL + + +# AC_LIBTOOL_SETUP +# ---------------- +AC_DEFUN([AC_LIBTOOL_SETUP], +[AC_PREREQ(2.50)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl +AC_REQUIRE([AC_PROG_NM])dnl + +AC_REQUIRE([AC_PROG_LN_S])dnl +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! +AC_REQUIRE([AC_OBJEXT])dnl +AC_REQUIRE([AC_EXEEXT])dnl +dnl +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +_LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + AC_PATH_MAGIC + fi + ;; +esac + +_LT_REQUIRED_DARWIN_CHECKS + +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +enable_win32_dll=yes, enable_win32_dll=no) + +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default + +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP + + +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# -------------------------- +# Check for some things on darwin +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + echo "int foo(void){return 1;}" > conftest.c + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib ${wl}-single_module conftest.c + if test -f libconftest.dylib; then + lt_cv_apple_cc_single_mod=yes + rm -rf libconftest.dylib* + fi + rm conftest.c + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + case $host_os in + rhapsody* | darwin1.[[0123]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil="~$DSYMUTIL \$lib || :" + else + _lt_dsymutil= + fi + ;; + esac +]) + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + + +# _LT_AC_PROG_ECHO_BACKSLASH +# -------------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], +[_LT_AC_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +echo=${ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then + # Yippee, $echo works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1 && unset CDPATH + +if test -z "$ECHO"; then +if test "X${echo_test_string+set}" != Xset; then +# find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if (echo_test_string=`eval $cmd`) 2>/dev/null && + echo_test_string=`eval $cmd` && + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null + then + break + fi + done +fi + +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : +else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$echo" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + echo='print -r' + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + echo='printf %s\n' + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + echo="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + echo="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + echo=echo + fi + fi + fi + fi +fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +ECHO=$echo +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(ECHO) +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# ------------------ +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + + +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# --------------------------------------------------------------------- +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + exit (status); +}] +EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_AC_TRY_DLOPEN_SELF + + +# AC_LIBTOOL_DLOPEN_SELF +# ---------------------- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_AC_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +])# AC_LIBTOOL_DLOPEN_SELF + + +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) +# --------------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* +]) +])# AC_LIBTOOL_PROG_CC_C_O + + +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- +# Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + +hard_links="nottested" +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS + + +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- +# Check hardcoding attributes. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_AC_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) +fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP + + +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- +# PORTME Fill in your ld.so characteristics +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +m4_if($1,[],[ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`echo $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + shlibpath_overrides_runpath=no + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + shlibpath_overrides_runpath=yes + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + if test -z "$LTCFLAGS"; then + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 DLLs +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +# set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognize shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognize a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' +# (note the single quotes!). If your package is not flat and you're not +# using automake, define top_builddir and top_srcdir appropriately in +# the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, +# and an installed libltdl is not found, it is assumed to be `libltdl'. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and top_srcdir +# appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + +# _LT_AC_PROG_CXXCPP +# ------------------ +AC_DEFUN([_LT_AC_PROG_CXXCPP], +[ +AC_REQUIRE([AC_PROG_CXX]) +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +fi +])# _LT_AC_PROG_CXXCPP + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# ------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF + +# Report which library types will actually be built +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + $as_unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + $as_unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + if test "$GXX" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) ;; + *) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + # So that behaviour is only enabled if SCOABSPATH is set to a + # non-empty value in the environment. Most likely only useful for + # creating official distributions of packages. + # This is a hack until libtool officially supports absolute path + # names for shared libraries. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + # + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) +case " $_LT_AC_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac +])# AC_LIBTOOL_POSTDEP_PREDEP + +# AC_LIBTOOL_LANG_F77_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) +AC_DEFUN([_LT_AC_LANG_F77_CONFIG], +[AC_REQUIRE([AC_PROG_F77]) +AC_LANG_PUSH(Fortran 77) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="\ + subroutine t + return + end +" + +# Code to be used in simple link tests +lt_simple_link_test_code="\ + program t + end +" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${F77-"f77"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +AC_MSG_CHECKING([if libtool supports shared libraries]) +AC_MSG_RESULT([$can_build_shared]) + +AC_MSG_CHECKING([whether to build shared libraries]) +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case $host_os in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; +aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +_LT_AC_TAGVAR(GCC, $1)="$G77" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_F77_CONFIG + + +# AC_LIBTOOL_LANG_GCJ_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], +[AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_GCJ_CONFIG + + +# AC_LIBTOOL_LANG_RC_CONFIG +# ------------------------- +# Ensure that the configuration vars for the Windows resource compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) +AC_DEFUN([_LT_AC_LANG_RC_CONFIG], +[AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_RC_CONFIG + + +# AC_LIBTOOL_CONFIG([TAGNAME]) +# ---------------------------- +# If TAGNAME is not passed, then create an initial libtool script +# with a default configuration from the untagged config vars. Otherwise +# add code to config.status for appending the configuration named by +# TAGNAME from the matching tagged config vars. +AC_DEFUN([AC_LIBTOOL_CONFIG], +[# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + _LT_AC_TAGVAR(compiler, $1) \ + _LT_AC_TAGVAR(CC, $1) \ + _LT_AC_TAGVAR(LD, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ + _LT_AC_TAGVAR(old_archive_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ + _LT_AC_TAGVAR(predep_objects, $1) \ + _LT_AC_TAGVAR(postdep_objects, $1) \ + _LT_AC_TAGVAR(predeps, $1) \ + _LT_AC_TAGVAR(postdeps, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ + _LT_AC_TAGVAR(archive_cmds, $1) \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ + _LT_AC_TAGVAR(postinstall_cmds, $1) \ + _LT_AC_TAGVAR(postuninstall_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ + _LT_AC_TAGVAR(allow_undefined_flag, $1) \ + _LT_AC_TAGVAR(no_undefined_flag, $1) \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ + _LT_AC_TAGVAR(hardcode_automatic, $1) \ + _LT_AC_TAGVAR(module_cmds, $1) \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) \ + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ + _LT_AC_TAGVAR(fix_srcfile_path, $1) \ + _LT_AC_TAGVAR(exclude_expsyms, $1) \ + _LT_AC_TAGVAR(include_expsyms, $1); do + + case $var in + _LT_AC_TAGVAR(old_archive_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ + _LT_AC_TAGVAR(archive_cmds, $1) | \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(module_cmds, $1) | \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\[$]0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` + ;; + esac + +ifelse([$1], [], + [cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + AC_MSG_NOTICE([creating $ofile])], + [cfgfile="$ofile"]) + + cat <<__EOF__ >> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: +# Originally by Gordon Matzigkeit , 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# LTCC compiler flags. +LTCFLAGS=$lt_LTCFLAGS + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) + +# Is the compiler the GNU C compiler? +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + +# Commands used to build and install a shared archive. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The directories searched by this compiler when creating a shared +# library +compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to yes if exported symbols are required. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + +# The commands to list exported symbols. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + +# Symbols that must always be exported. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) + +__EOF__ + +ifelse([$1],[], [ + case $host_os in + aix3*) + cat <<\EOF >> "$cfgfile" + +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +EOF + ;; + esac + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([LT_AC_PROG_SED]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + + mingw* | cygwin* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + esac + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +# +# Check to make sure the static flag actually works. +# +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) +]) + + +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + _LT_CC_BASENAME([$compiler]) + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + interix[[3-9]]*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | k*bsd*-gnu) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + *) + tmp_sharedflag='-shared' ;; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi[[45]]*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + case $host_os in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include +# #undef WIN32_LEAN_AND_MEAN +# #include +# +# #ifndef __CYGWIN__ +# # ifdef __CYGWIN32__ +# # define __CYGWIN__ __CYGWIN32__ +# # endif +# #endif +# +# #ifdef __cplusplus +# extern "C" { +# #endif +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# #ifdef __cplusplus +# } +# #endif +# +# #ifdef __CYGWIN__ +# #include +# DECLARE_CYGWIN_DLL( DllMain ); +# #endif +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ +])# _LT_AC_FILE_LTDLL_C + + +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) + + +# old names +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) + +# This is just to silence aclocal about the macro not being used +ifelse([AC_DISABLE_FAST_INSTALL]) + +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) +]) + +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + + +# Cheap backport of AS_EXECUTABLE_P and required macros +# from Autoconf 2.59; we should not use $as_executable_p directly. + +# _AS_TEST_PREPARE +# ---------------- +m4_ifndef([_AS_TEST_PREPARE], +[m4_defun([_AS_TEST_PREPARE], +[if test -x / >/dev/null 2>&1; then + as_executable_p='test -x' +else + as_executable_p='test -f' +fi +])])# _AS_TEST_PREPARE + +# AS_EXECUTABLE_P +# --------------- +# Check whether a file is executable. +m4_ifndef([AS_EXECUTABLE_P], +[m4_defun([AS_EXECUTABLE_P], +[AS_REQUIRE([_AS_TEST_PREPARE])dnl +$as_executable_p $1[]dnl +])])# AS_EXECUTABLE_P + +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # +# LT_AC_PROG_SED +# -------------- +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +AC_DEFUN([LT_AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -24,10 +6662,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' +[am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -41,10 +6679,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -101,14 +6741,14 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 8 +# serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- @@ -121,6 +6761,7 @@ AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' @@ -134,14 +6775,14 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 9 +# serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, @@ -198,6 +6839,16 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and @@ -215,7 +6866,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -225,19 +6886,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; none) break ;; esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message @@ -294,57 +6959,68 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -#serial 3 +#serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done done -done +} ])# _AM_OUTPUT_DEPENDENCY_COMMANDS @@ -376,13 +7052,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 +# serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. @@ -399,7 +7075,7 @@ # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl +[AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -450,8 +7126,8 @@ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -459,24 +7135,37 @@ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -487,18 +7176,19 @@ # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $1 | $1:* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -509,7 +7199,14 @@ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -586,13 +7283,13 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # AM_MAKE_INCLUDE() # ----------------- @@ -601,7 +7298,7 @@ [am_make=${MAKE-make} cat > confinc << 'END' am__doit: - @echo done + @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. @@ -611,24 +7308,24 @@ _am_result=none # First try GNU make style include. echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) @@ -636,14 +7333,14 @@ rm -f confinc confmf ]) -# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_PROG_CC_C_O # -------------- @@ -655,8 +7352,9 @@ # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC -ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. @@ -672,14 +7370,14 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -696,7 +7394,14 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -734,13 +7439,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -757,7 +7462,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -767,14 +7472,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -783,16 +7488,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -817,6 +7535,33 @@ fi AC_MSG_RESULT(yes)]) +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -845,18 +7590,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 2 + # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. @@ -954,28 +7706,41 @@ ]) # _AM_PROG_TAR m4_include([libgettextpo/gnulib-m4/gnulib-comp.m4]) -m4_include([libgettextpo/gnulib-m4/ulonglong.m4]) +m4_include([libgrep/gnulib-m4/btowc.m4]) +m4_include([libgrep/gnulib-m4/gnulib-comp.m4]) +m4_include([libgrep/gnulib-m4/langinfo_h.m4]) +m4_include([libgrep/gnulib-m4/nl_langinfo.m4]) +m4_include([libgrep/gnulib-m4/regex.m4]) +m4_include([libgrep/gnulib-m4/wcrtomb.m4]) +m4_include([gnulib-m4/00gnulib.m4]) m4_include([gnulib-m4/absolute-header.m4]) m4_include([gnulib-m4/acl.m4]) m4_include([gnulib-m4/alloca.m4]) m4_include([gnulib-m4/argmatch.m4]) +m4_include([gnulib-m4/asm-underscore.m4]) m4_include([gnulib-m4/atexit.m4]) m4_include([gnulib-m4/backupfile.m4]) m4_include([gnulib-m4/bison-i18n.m4]) m4_include([gnulib-m4/byteswap.m4]) -m4_include([gnulib-m4/canonicalize-lgpl.m4]) +m4_include([gnulib-m4/canonicalize.m4]) +m4_include([gnulib-m4/cloexec.m4]) m4_include([gnulib-m4/copy-file.m4]) m4_include([gnulib-m4/csharp.m4]) m4_include([gnulib-m4/csharpcomp.m4]) m4_include([gnulib-m4/csharpexec.m4]) +m4_include([gnulib-m4/curses.m4]) +m4_include([gnulib-m4/dos.m4]) +m4_include([gnulib-m4/double-slash-root.m4]) +m4_include([gnulib-m4/dup2.m4]) m4_include([gnulib-m4/eaccess.m4]) m4_include([gnulib-m4/eealloc.m4]) -m4_include([gnulib-m4/eoverflow.m4]) +m4_include([gnulib-m4/environ.m4]) +m4_include([gnulib-m4/errno_h.m4]) m4_include([gnulib-m4/error.m4]) m4_include([gnulib-m4/execute.m4]) -m4_include([gnulib-m4/exitfail.m4]) m4_include([gnulib-m4/extensions.m4]) m4_include([gnulib-m4/fatal-signal.m4]) +m4_include([gnulib-m4/fcntl.m4]) m4_include([gnulib-m4/fcntl_h.m4]) m4_include([gnulib-m4/findprog.m4]) m4_include([gnulib-m4/float_h.m4]) @@ -983,13 +7748,14 @@ m4_include([gnulib-m4/fopen.m4]) m4_include([gnulib-m4/gcj.m4]) m4_include([gnulib-m4/getdelim.m4]) +m4_include([gnulib-m4/getdtablesize.m4]) m4_include([gnulib-m4/getline.m4]) m4_include([gnulib-m4/getopt.m4]) +m4_include([gnulib-m4/getpagesize.m4]) m4_include([gnulib-m4/gettimeofday.m4]) m4_include([gnulib-m4/gl_list.m4]) m4_include([gnulib-m4/gnulib-common.m4]) m4_include([gnulib-m4/gnulib-comp.m4]) -m4_include([gnulib-m4/hard-locale.m4]) m4_include([gnulib-m4/iconv_h.m4]) m4_include([gnulib-m4/iconv_open.m4]) m4_include([gnulib-m4/include_next.m4]) @@ -998,23 +7764,31 @@ m4_include([gnulib-m4/java.m4]) m4_include([gnulib-m4/javacomp.m4]) m4_include([gnulib-m4/javaexec.m4]) +m4_include([gnulib-m4/lib-ld.m4]) +m4_include([gnulib-m4/lib-link.m4]) +m4_include([gnulib-m4/lib-prefix.m4]) m4_include([gnulib-m4/libcroco.m4]) m4_include([gnulib-m4/libglib.m4]) +m4_include([gnulib-m4/libunistring-base.m4]) +m4_include([gnulib-m4/libunistring-optional.m4]) +m4_include([gnulib-m4/libunistring.m4]) m4_include([gnulib-m4/libxml.m4]) -m4_include([gnulib-m4/linebreak.m4]) m4_include([gnulib-m4/localcharset.m4]) m4_include([gnulib-m4/locale-fr.m4]) +m4_include([gnulib-m4/locale-ja.m4]) m4_include([gnulib-m4/locale-tr.m4]) m4_include([gnulib-m4/locale-zh.m4]) m4_include([gnulib-m4/locale_h.m4]) m4_include([gnulib-m4/localename.m4]) +m4_include([gnulib-m4/lstat.m4]) m4_include([gnulib-m4/malloc.m4]) m4_include([gnulib-m4/malloca.m4]) m4_include([gnulib-m4/mbchar.m4]) m4_include([gnulib-m4/mbiter.m4]) m4_include([gnulib-m4/mbrtowc.m4]) +m4_include([gnulib-m4/mbsinit.m4]) m4_include([gnulib-m4/mbslen.m4]) -m4_include([gnulib-m4/mbsstr.m4]) +m4_include([gnulib-m4/mbsrtowcs.m4]) m4_include([gnulib-m4/mbstate_t.m4]) m4_include([gnulib-m4/mbswidth.m4]) m4_include([gnulib-m4/memchr.m4]) @@ -1022,68 +7796,98 @@ m4_include([gnulib-m4/memset.m4]) m4_include([gnulib-m4/minmax.m4]) m4_include([gnulib-m4/mkdtemp.m4]) +m4_include([gnulib-m4/mmap-anon.m4]) +m4_include([gnulib-m4/mode_t.m4]) m4_include([gnulib-m4/moo.m4]) +m4_include([gnulib-m4/multiarch.m4]) m4_include([gnulib-m4/no-c++.m4]) -m4_include([gnulib-m4/onceonly_2_57.m4]) +m4_include([gnulib-m4/onceonly.m4]) m4_include([gnulib-m4/open.m4]) -m4_include([gnulib-m4/openmp.m4]) m4_include([gnulib-m4/pathmax.m4]) m4_include([gnulib-m4/pipe.m4]) +m4_include([gnulib-m4/pipe2.m4]) +m4_include([gnulib-m4/posix_spawn.m4]) +m4_include([gnulib-m4/printf.m4]) +m4_include([gnulib-m4/putenv.m4]) m4_include([gnulib-m4/quote.m4]) m4_include([gnulib-m4/quotearg.m4]) +m4_include([gnulib-m4/rawmemchr.m4]) +m4_include([gnulib-m4/read-file.m4]) m4_include([gnulib-m4/readlink.m4]) m4_include([gnulib-m4/realloc.m4]) m4_include([gnulib-m4/relocatable-lib.m4]) m4_include([gnulib-m4/relocatable.m4]) +m4_include([gnulib-m4/rmdir.m4]) m4_include([gnulib-m4/safe-read.m4]) m4_include([gnulib-m4/safe-write.m4]) +m4_include([gnulib-m4/sched_h.m4]) m4_include([gnulib-m4/setenv.m4]) m4_include([gnulib-m4/sig_atomic_t.m4]) +m4_include([gnulib-m4/sigaction.m4]) m4_include([gnulib-m4/signal_h.m4]) m4_include([gnulib-m4/signalblocking.m4]) +m4_include([gnulib-m4/sigpipe.m4]) m4_include([gnulib-m4/snprintf.m4]) +m4_include([gnulib-m4/spawn_h.m4]) m4_include([gnulib-m4/ssize_t.m4]) +m4_include([gnulib-m4/stat.m4]) m4_include([gnulib-m4/stdarg.m4]) m4_include([gnulib-m4/stdbool.m4]) +m4_include([gnulib-m4/stddef_h.m4]) m4_include([gnulib-m4/stdint.m4]) m4_include([gnulib-m4/stdio_h.m4]) m4_include([gnulib-m4/stdlib_h.m4]) m4_include([gnulib-m4/stpcpy.m4]) m4_include([gnulib-m4/stpncpy.m4]) +m4_include([gnulib-m4/strchrnul.m4]) m4_include([gnulib-m4/strcspn.m4]) -m4_include([gnulib-m4/strdup.m4]) m4_include([gnulib-m4/strerror.m4]) m4_include([gnulib-m4/string_h.m4]) m4_include([gnulib-m4/strnlen.m4]) m4_include([gnulib-m4/strpbrk.m4]) +m4_include([gnulib-m4/strstr.m4]) m4_include([gnulib-m4/strtol.m4]) m4_include([gnulib-m4/strtoul.m4]) +m4_include([gnulib-m4/symlink.m4]) +m4_include([gnulib-m4/sys_select_h.m4]) +m4_include([gnulib-m4/sys_socket_h.m4]) m4_include([gnulib-m4/sys_stat_h.m4]) m4_include([gnulib-m4/sys_time_h.m4]) +m4_include([gnulib-m4/sys_wait_h.m4]) m4_include([gnulib-m4/tempname.m4]) m4_include([gnulib-m4/term-ostream.m4]) m4_include([gnulib-m4/terminfo.m4]) +m4_include([gnulib-m4/thread.m4]) +m4_include([gnulib-m4/time_h.m4]) m4_include([gnulib-m4/tls.m4]) m4_include([gnulib-m4/tmpdir.m4]) m4_include([gnulib-m4/unionwait.m4]) +m4_include([gnulib-m4/unistd-safer.m4]) m4_include([gnulib-m4/unistd_h.m4]) m4_include([gnulib-m4/unlocked-io.m4]) m4_include([gnulib-m4/vasnprintf.m4]) m4_include([gnulib-m4/vasprintf.m4]) m4_include([gnulib-m4/vsnprintf.m4]) m4_include([gnulib-m4/wait-process.m4]) -m4_include([gnulib-m4/wchar.m4]) -m4_include([gnulib-m4/wctype.m4]) +m4_include([gnulib-m4/warn-on-use.m4]) +m4_include([gnulib-m4/wchar_h.m4]) +m4_include([gnulib-m4/wctob.m4]) +m4_include([gnulib-m4/wctype_h.m4]) m4_include([gnulib-m4/wcwidth.m4]) +m4_include([gnulib-m4/write.m4]) m4_include([gnulib-m4/xvasprintf.m4]) +m4_include([gnulib-m4/yield.m4]) m4_include([../m4/fixautomake.m4]) +m4_include([../m4/init-package-version.m4]) m4_include([../m4/libtool.m4]) +m4_include([../m4/ltoptions.m4]) +m4_include([../m4/ltsugar.m4]) +m4_include([../m4/ltversion.m4]) +m4_include([../m4/lt~obsolete.m4]) m4_include([../m4/woe32-dll.m4]) -m4_include([../autoconf-lib-link/m4/lib-ld.m4]) -m4_include([../autoconf-lib-link/m4/lib-link.m4]) -m4_include([../autoconf-lib-link/m4/lib-prefix.m4]) m4_include([../gettext-runtime/m4/ansi-c++.m4]) m4_include([../gettext-runtime/m4/codeset.m4]) +m4_include([../gettext-runtime/m4/fcntl-o.m4]) m4_include([../gettext-runtime/m4/gettext.m4]) m4_include([../gettext-runtime/m4/glibc2.m4]) m4_include([../gettext-runtime/m4/glibc21.m4]) @@ -1103,14 +7907,13 @@ m4_include([../gettext-runtime/m4/progtest.m4]) m4_include([../gettext-runtime/m4/size_max.m4]) m4_include([../gettext-runtime/m4/stdint_h.m4]) +m4_include([../gettext-runtime/m4/threadlib.m4]) m4_include([../gettext-runtime/m4/uintmax_t.m4]) m4_include([../gettext-runtime/m4/visibility.m4]) m4_include([../gettext-runtime/m4/wchar_t.m4]) m4_include([../gettext-runtime/m4/wint_t.m4]) m4_include([../gettext-runtime/m4/xsize.m4]) +m4_include([m4/exported.m4]) m4_include([m4/hostname.m4]) -m4_include([m4/libgrep.m4]) -m4_include([m4/locale-ja.m4]) -m4_include([m4/regex.m4]) m4_include([m4/setlocale.m4]) m4_include([m4/siginfo.m4]) diff -Nru gettext-0.17/gettext-tools/ChangeLog gettext-0.18.1.1/gettext-tools/ChangeLog --- gettext-0.17/gettext-tools/ChangeLog 2007-11-06 23:27:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/ChangeLog 2010-06-06 12:56:52.000000000 +0000 @@ -1,3 +1,125 @@ +2010-06-06 Bruno Haible + + * configure.ac (ARCHIVE_FORMAT): If neither --with-git nor --with-cvs + is specified, don't use the git format if the 'git' program if older + than version 1.6. + Suggested by Karl Berry . + +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-04 Bruno Haible + + * configure.ac (ARCHIVE_FORMAT): If neither --with-git nor --with-cvs + is specified, use the git format only if the 'git' program exists. + +2010-06-03 Bruno Haible + + Deprecate the --with-cvs option. + * configure.ac: Document options --without-git, --with-cvs. + (ARCHIVE_FORMAT): Use cvs only when explicitly asked for. + +2010-05-24 Bruno Haible + + Use the newest regex module from gnulib. + * configure.ac: Invoke grgl_EARLY and grgl_INIT. Don't invoke + gt_LIBGREP. + * Makefile.am (ACLOCAL_AMFLAGS): Add -I libgrep/gnulib-m4. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + Export rpl_optind, rpl_optarg from DLL depending on platform. + * configure.ac (GETTEXTLIB_EXPORTS_FLAGS): New substituted variable. + * woe32dll/gettextlib-exports.c (rpl_optarg, rpl_optind): Export only + if GNULIB_DEFINED_GETOPT is set. + +2010-04-02 Bruno Haible + + * Makefile.am (ACLOCAL_AMFLAGS): Remove "-I ../autoconf-lib-link/m4" + option. + (gettextsrc_SCRIPTS): Update. + +2009-12-26 Bruno Haible + + * configure.ac: Don't define USE_IN_GETTEXT_TESTS. Test for uselocale. + +2009-12-12 Bruno Haible + + * woe32dll/export.h: Untabify. + +2009-09-27 Bruno Haible + + * configure.ac: Accept --without-cvs, --with-git options. Substitute + ARCHIVE_FORMAT. + (AC_CONFIG_FILES): Add misc/convert-archive. + +2009-08-10 Bruno Haible + + * woe32dll/gettextsrc-exports.c: Export formatstring_gfc_internal, + formatstring_qt_plural. + +2009-05-31 Bruno Haible + + * configure.ac (doc/Makefile.am): Don't invoke FIX_MAKEFILE_DISTRIB. + +2009-05-29 Bruno Haible + + Avoid lang-c++ test failure. + * configure.ac: Invoke LT_LANG also for C++. + +2009-05-23 Bruno Haible + + * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. + * gnulib-lib/Makefile.am (libgettextlib_la_LINK): Add $(AM_V_lt) flag. + +2009-05-23 Bruno Haible + + * configure.ac: Invoke gl_INIT_PACKAGE. Use the preferred form of + AM_INIT_AUTOMAKE. + +2009-05-21 Bruno Haible + + Assume automake >= 1.10.2. + * configure.ac (AC_CONFIG_FILES): Remove FIX_MAKEFILE_COMPILE, + FIX_MAKEFILE_INFO invocations. + +2009-04-11 Bruno Haible + + * configure.ac (gt_GLOBAL_SYMBOL_PIPE): Remove macro, moved to + m4/exported.m4. + +2009-03-25 Bruno Haible + + Fix the handling of Windows resources in shared libraries. + * configure.ac: Invoke LT_LANG for 'Windows Resource'. + +2009-01-14 Bruno Haible + + * configure.ac: More consistent m4 quoting. + +2008-09-14 Ralf Wildenhues + + * configure.ac: Use AC_TYPE_UNSIGNED_LONG_LONG_INT instead of + gl_AC_TYPE_UNSIGNED_LONG_LONG. + +2008-08-17 Bruno Haible + + * configure.ac: Adapt AC_C_BIGENDIAN invocation to autoconf 2.62: make + it work for universal binary builds on MacOS X. + +2008-04-20 Bruno Haible + + * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL. + +2007-11-15 Bruno Haible + + * configure.ac: Check for getrlimit and setrlimit. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/config.h.in gettext-0.18.1.1/gettext-tools/config.h.in --- gettext-0.17/gettext-tools/config.h.in 2007-11-06 23:38:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/config.h.in 2010-06-06 20:12:24.000000000 +0000 @@ -5,10 +5,17 @@ #define DEFAULT_OUTPUT_ALIGNMENT 1 +/* Define if the compiler is building for multiple architectures of Apple + platforms at once. */ +#undef AA_APPLE_UNIVERSAL_BUILD + /* Define this to an absolute name of . */ #undef ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H +/* Define this to an absolute name of . */ +#undef ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H + /* Define this to an absolute name of . */ #undef ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H @@ -41,6 +48,9 @@ /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA +/* Define to 1 if // is a file system root distinct from /. */ +#undef DOUBLE_SLASH_IS_DISTINCT_ROOT + /* Define to 1 if libexpat shall be dynamically loaded via dlopen(). */ #undef DYNLOAD_LIBEXPAT @@ -48,55 +58,313 @@ language is requested. */ #undef ENABLE_NLS -/* Define to 1 if the package shall run at any location in the filesystem. */ +/* Define to 1 if the package shall run at any location in the file system. */ #undef ENABLE_RELOCATABLE /* Define according to the byte order of the target machine: 1 for big endian, 0 for little endian. */ #undef ENDIANNESS -/* Define as good substitute value for EOVERFLOW. */ -#undef EOVERFLOW +/* Define this to 1 if F_DUPFD behavior does not match POSIX */ +#undef FCNTL_DUPFD_BUGGY + +/* Define on systems for which file names may have a so-called `drive letter' + prefix, define this to compute the length of that prefix, including the + colon. */ +#undef FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX + +/* Define if the backslash character may also serve as a file name component + separator. */ +#undef FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR + +/* Define if a drive letter prefix denotes a relative path if it is not + followed by a file name component separator. */ +#undef FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE + +/* Define to 1 if fopen() fails to recognize a trailing slash. */ +#undef FOPEN_TRAILING_SLASH_BUG + +/* Define to 1 if realpath() can malloc memory, always gives an absolute path, + and handles trailing slash correctly. */ +#undef FUNC_REALPATH_WORKS /* Define if gettimeofday clobbers the localtime buffer. */ #undef GETTIMEOFDAY_CLOBBERS_LOCALTIME -/* Define to 1 when using the gnulib module fwriteerror. */ +/* Define this to 'void' or 'struct timezone' to match the system's + declaration of the second argument to gettimeofday. */ +#undef GETTIMEOFDAY_TIMEZONE + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module canonicalize-lgpl shall be considered present. */ +#undef GNULIB_CANONICALIZE_LGPL + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module fd-safer-flag shall be considered present. */ +#undef GNULIB_FD_SAFER_FLAG + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module fwriteerror shall be considered present. */ #undef GNULIB_FWRITEERROR -/* Define to 1 when using the gnulib module open. */ -#undef GNULIB_OPEN +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module pipe2-safer shall be considered present. */ +#undef GNULIB_PIPE2_SAFER + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module sigpipe shall be considered present. */ +#undef GNULIB_SIGPIPE -/* Define to 1 when using the gnulib module unistr/u16-mbtouc. */ -#undef GNULIB_UNISTR_U16_MBTOUC +/* Define to 1 when the gnulib module btowc should be tested. */ +#undef GNULIB_TEST_BTOWC + +/* Define to 1 when the gnulib module canonicalize_file_name should be tested. + */ +#undef GNULIB_TEST_CANONICALIZE_FILE_NAME + +/* Define to 1 when the gnulib module cloexec should be tested. */ +#undef GNULIB_TEST_CLOEXEC + +/* Define to 1 when the gnulib module dup2 should be tested. */ +#undef GNULIB_TEST_DUP2 + +/* Define to 1 when the gnulib module environ should be tested. */ +#undef GNULIB_TEST_ENVIRON + +/* Define to 1 when the gnulib module fcntl should be tested. */ +#undef GNULIB_TEST_FCNTL + +/* Define to 1 when the gnulib module fopen should be tested. */ +#undef GNULIB_TEST_FOPEN + +/* Define to 1 when the gnulib module getdelim should be tested. */ +#undef GNULIB_TEST_GETDELIM + +/* Define to 1 when the gnulib module getdtablesize should be tested. */ +#undef GNULIB_TEST_GETDTABLESIZE + +/* Define to 1 when the gnulib module getline should be tested. */ +#undef GNULIB_TEST_GETLINE + +/* Define to 1 when the gnulib module getopt-gnu should be tested. */ +#undef GNULIB_TEST_GETOPT_GNU + +/* Define to 1 when the gnulib module getpagesize should be tested. */ +#undef GNULIB_TEST_GETPAGESIZE + +/* Define to 1 when the gnulib module gettimeofday should be tested. */ +#undef GNULIB_TEST_GETTIMEOFDAY + +/* Define to 1 when the gnulib module lstat should be tested. */ +#undef GNULIB_TEST_LSTAT + +/* Define to 1 when the gnulib module malloc-posix should be tested. */ +#undef GNULIB_TEST_MALLOC_POSIX + +/* Define to 1 when the gnulib module mbrtowc should be tested. */ +#undef GNULIB_TEST_MBRTOWC + +/* Define to 1 when the gnulib module mbsinit should be tested. */ +#undef GNULIB_TEST_MBSINIT + +/* Define to 1 when the gnulib module mbslen should be tested. */ +#undef GNULIB_TEST_MBSLEN + +/* Define to 1 when the gnulib module mbsrtowcs should be tested. */ +#undef GNULIB_TEST_MBSRTOWCS + +/* Define to 1 when the gnulib module mbsstr should be tested. */ +#undef GNULIB_TEST_MBSSTR + +/* Define to 1 when the gnulib module memchr should be tested. */ +#undef GNULIB_TEST_MEMCHR + +/* Define to 1 when the gnulib module mkdtemp should be tested. */ +#undef GNULIB_TEST_MKDTEMP + +/* Define to 1 when the gnulib module nl_langinfo should be tested. */ +#undef GNULIB_TEST_NL_LANGINFO + +/* Define to 1 when the gnulib module open should be tested. */ +#undef GNULIB_TEST_OPEN + +/* Define to 1 when the gnulib module pipe2 should be tested. */ +#undef GNULIB_TEST_PIPE2 + +/* Define to 1 when the gnulib module posix_spawnattr_destroy should be + tested. */ +#undef GNULIB_TEST_POSIX_SPAWNATTR_DESTROY + +/* Define to 1 when the gnulib module posix_spawnattr_init should be tested. + */ +#undef GNULIB_TEST_POSIX_SPAWNATTR_INIT + +/* Define to 1 when the gnulib module posix_spawnattr_setflags should be + tested. */ +#undef GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS + +/* Define to 1 when the gnulib module posix_spawnattr_setsigmask should be + tested. */ +#undef GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK + +/* Define to 1 when the gnulib module posix_spawnp should be tested. */ +#undef GNULIB_TEST_POSIX_SPAWNP + +/* Define to 1 when the gnulib module posix_spawn_file_actions_addclose should + be tested. */ +#undef GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE + +/* Define to 1 when the gnulib module posix_spawn_file_actions_adddup2 should + be tested. */ +#undef GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 + +/* Define to 1 when the gnulib module posix_spawn_file_actions_addopen should + be tested. */ +#undef GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN + +/* Define to 1 when the gnulib module posix_spawn_file_actions_destroy should + be tested. */ +#undef GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY + +/* Define to 1 when the gnulib module posix_spawn_file_actions_init should be + tested. */ +#undef GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT + +/* Define to 1 when the gnulib module putenv should be tested. */ +#undef GNULIB_TEST_PUTENV + +/* Define to 1 when the gnulib module rawmemchr should be tested. */ +#undef GNULIB_TEST_RAWMEMCHR + +/* Define to 1 when the gnulib module readlink should be tested. */ +#undef GNULIB_TEST_READLINK + +/* Define to 1 when the gnulib module realloc-posix should be tested. */ +#undef GNULIB_TEST_REALLOC_POSIX -/* Define to 1 when using the gnulib module unistr/u16-mbtouc-unsafe. */ -#undef GNULIB_UNISTR_U16_MBTOUC_UNSAFE +/* Define to 1 when the gnulib module realpath should be tested. */ +#undef GNULIB_TEST_REALPATH -/* Define to 1 when using the gnulib module unistr/u8-mbtouc. */ +/* Define to 1 when the gnulib module rmdir should be tested. */ +#undef GNULIB_TEST_RMDIR + +/* Define to 1 when the gnulib module setenv should be tested. */ +#undef GNULIB_TEST_SETENV + +/* Define to 1 when the gnulib module sigaction should be tested. */ +#undef GNULIB_TEST_SIGACTION + +/* Define to 1 when the gnulib module sigprocmask should be tested. */ +#undef GNULIB_TEST_SIGPROCMASK + +/* Define to 1 when the gnulib module snprintf should be tested. */ +#undef GNULIB_TEST_SNPRINTF + +/* Define to 1 when the gnulib module stat should be tested. */ +#undef GNULIB_TEST_STAT + +/* Define to 1 when the gnulib module stpcpy should be tested. */ +#undef GNULIB_TEST_STPCPY + +/* Define to 1 when the gnulib module stpncpy should be tested. */ +#undef GNULIB_TEST_STPNCPY + +/* Define to 1 when the gnulib module strchrnul should be tested. */ +#undef GNULIB_TEST_STRCHRNUL + +/* Define to 1 when the gnulib module strerror should be tested. */ +#undef GNULIB_TEST_STRERROR + +/* Define to 1 when the gnulib module strnlen should be tested. */ +#undef GNULIB_TEST_STRNLEN + +/* Define to 1 when the gnulib module strpbrk should be tested. */ +#undef GNULIB_TEST_STRPBRK + +/* Define to 1 when the gnulib module strstr should be tested. */ +#undef GNULIB_TEST_STRSTR + +/* Define to 1 when the gnulib module symlink should be tested. */ +#undef GNULIB_TEST_SYMLINK + +/* Define to 1 when the gnulib module unsetenv should be tested. */ +#undef GNULIB_TEST_UNSETENV + +/* Define to 1 when the gnulib module vasprintf should be tested. */ +#undef GNULIB_TEST_VASPRINTF + +/* Define to 1 when the gnulib module vsnprintf should be tested. */ +#undef GNULIB_TEST_VSNPRINTF + +/* Define to 1 when the gnulib module wcrtomb should be tested. */ +#undef GNULIB_TEST_WCRTOMB + +/* Define to 1 when the gnulib module wctob should be tested. */ +#undef GNULIB_TEST_WCTOB + +/* Define to 1 when the gnulib module wcwidth should be tested. */ +#undef GNULIB_TEST_WCWIDTH + +/* Define to 1 when the gnulib module write should be tested. */ +#undef GNULIB_TEST_WRITE + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module unistr/u16-mbtouc shall be considered present. */ +#undef GNULIB_UNISTR_U16_MBTOUC + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module unistr/u8-mbtouc shall be considered present. */ #undef GNULIB_UNISTR_U8_MBTOUC -/* Define to 1 when using the gnulib module unistr/u8-mbtouc-unsafe. */ +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module unistr/u8-mbtoucr shall be considered present. */ +#undef GNULIB_UNISTR_U8_MBTOUCR + +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module unistr/u8-mbtouc-unsafe shall be considered + present. */ #undef GNULIB_UNISTR_U8_MBTOUC_UNSAFE -/* Define to 1 when using the gnulib module unistr/u8-uctomb. */ +/* Define to a C preprocessor expression that evaluates to 1 or 0, depending + whether the gnulib module unistr/u8-uctomb shall be considered present. */ #undef GNULIB_UNISTR_U8_UCTOMB /* Define to 1 if you have the `acl' function. */ #undef HAVE_ACL +/* Define to 1 if you have the `aclx_get' function. */ +#undef HAVE_ACLX_GET + +/* Define to 1 if you have the `acl_copy_ext_native' function. */ +#undef HAVE_ACL_COPY_EXT_NATIVE + +/* Define to 1 if you have the `acl_create_entry_np' function. */ +#undef HAVE_ACL_CREATE_ENTRY_NP + /* Define to 1 if you have the `acl_delete_def_file' function. */ #undef HAVE_ACL_DELETE_DEF_FILE +/* Define to 1 if you have the `acl_delete_fd_np' function. */ +#undef HAVE_ACL_DELETE_FD_NP + +/* Define to 1 if you have the `acl_delete_file_np' function. */ +#undef HAVE_ACL_DELETE_FILE_NP + /* Define to 1 if you have the `acl_entries' function. */ #undef HAVE_ACL_ENTRIES /* Define to 1 if you have the `acl_extended_file' function. */ #undef HAVE_ACL_EXTENDED_FILE +/* Define to 1 if the constant ACL_FIRST_ENTRY exists. */ +#undef HAVE_ACL_FIRST_ENTRY + /* Define to 1 if you have the `acl_free' function. */ #undef HAVE_ACL_FREE +/* Define to 1 if you have the `acl_free_text' function. */ +#undef HAVE_ACL_FREE_TEXT + /* Define to 1 if you have the `acl_from_mode' function. */ #undef HAVE_ACL_FROM_MODE @@ -118,9 +386,15 @@ /* Define to 1 if you have the `acl_set_file' function. */ #undef HAVE_ACL_SET_FILE +/* Define to 1 if you have the `acl_to_short_text' function. */ +#undef HAVE_ACL_TO_SHORT_TEXT + /* Define to 1 if you have the `acl_trivial' function. */ #undef HAVE_ACL_TRIVIAL +/* Define to 1 if the ACL type ACL_TYPE_EXTENDED exists. */ +#undef HAVE_ACL_TYPE_EXTENDED + /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA @@ -178,6 +452,9 @@ /* Define to 1 if you have the `chown' function. */ #undef HAVE_CHOWN +/* Define to 1 if you have the `confstr' function. */ +#undef HAVE_CONFSTR + /* Define to 1 if you have the header file. */ #undef HAVE_CTYPE_H @@ -185,9 +462,9 @@ */ #undef HAVE_DCGETTEXT -/* Define to 1 if you have the declaration of `canonicalize_file_name', and to - 0 if you don't. */ -#undef HAVE_DECL_CANONICALIZE_FILE_NAME +/* Define to 1 if you have the declaration of `alarm', and to 0 if you don't. + */ +#undef HAVE_DECL_ALARM /* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if you don't. */ @@ -245,6 +522,10 @@ don't. */ #undef HAVE_DECL_GETLINE +/* Define to 1 if you have the declaration of `getopt_clip', and to 0 if you + don't. */ +#undef HAVE_DECL_GETOPT_CLIP + /* Define to 1 if you have the declaration of `isblank', and to 0 if you don't. */ #undef HAVE_DECL_ISBLANK @@ -253,9 +534,17 @@ otherwise. */ #undef HAVE_DECL_MBSWIDTH_IN_WCHAR_H -/* Define to 1 if you have the declaration of `mkdir', and to 0 if you don't. - */ -#undef HAVE_DECL_MKDIR +/* Define to 1 if you have the declaration of `optreset', and to 0 if you + don't. */ +#undef HAVE_DECL_OPTRESET + +/* Define to 1 if you have the declaration of `program_invocation_name', and + to 0 if you don't. */ +#undef HAVE_DECL_PROGRAM_INVOCATION_NAME + +/* Define to 1 if you have the declaration of `program_invocation_short_name', + and to 0 if you don't. */ +#undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME /* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if you don't. */ @@ -269,10 +558,6 @@ don't. */ #undef HAVE_DECL_SNPRINTF -/* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. - */ -#undef HAVE_DECL_STRDUP - /* Define to 1 if you have the declaration of `strerror', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR @@ -289,6 +574,10 @@ don't. */ #undef HAVE_DECL_VSNPRINTF +/* Define to 1 if you have the declaration of `wctob', and to 0 if you don't. + */ +#undef HAVE_DECL_WCTOB + /* Define to 1 if you have the declaration of `wcwidth', and to 0 if you don't. */ #undef HAVE_DECL_WCWIDTH @@ -313,12 +602,18 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DL_H +/* Define to 1 if you have the `dup2' function. */ +#undef HAVE_DUP2 + /* Define if you have the declaration of environ. */ #undef HAVE_ENVIRON_DECL /* Define to 1 if you have the header file. */ #undef HAVE_ERRNO_H +/* Define to 1 if you have the `fcntl' function. */ +#undef HAVE_FCNTL + /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H @@ -337,6 +632,9 @@ /* Define to 1 if you have the `fwprintf' function. */ #undef HAVE_FWPRINTF +/* Define to 1 if you have the `getacl' function. */ +#undef HAVE_GETACL + /* Define to 1 if you have the `getaddrinfo' function. */ #undef HAVE_GETADDRINFO @@ -346,6 +644,9 @@ /* Define to 1 if you have the `getdelim' function. */ #undef HAVE_GETDELIM +/* Define to 1 if you have the `getdtablesize' function. */ +#undef HAVE_GETDTABLESIZE + /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID @@ -370,6 +671,9 @@ /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE +/* Define to 1 if you have the `getrlimit' function. */ +#undef HAVE_GETRLIMIT + /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT @@ -385,9 +689,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ICONV_H -/* Define if your compiler supports the #include_next directive. */ -#undef HAVE_INCLUDE_NEXT - /* Define to 1 if you have the `inet_ntop' function. */ #undef HAVE_INET_NTOP @@ -406,9 +707,6 @@ declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX -/* Define to 1 if you have the header file. */ -#undef HAVE_IO_H - /* Define if defines AF_INET6. */ #undef HAVE_IPV6 @@ -418,6 +716,9 @@ /* Define to 1 if you have the `isblank' function. */ #undef HAVE_ISBLANK +/* Define to 1 if you have the `iswblank' function. */ +#undef HAVE_ISWBLANK + /* Define to 1 if you have the `iswcntrl' function. */ #undef HAVE_ISWCNTRL @@ -427,6 +728,9 @@ /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET +/* Define to 1 if you have the header file. */ +#undef HAVE_LANGINFO_H + /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES @@ -434,9 +738,18 @@ header file. */ #undef HAVE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H -/* Define if you have the expat library. */ +/* Define if you have the libexpat library. */ #undef HAVE_LIBEXPAT +/* Define to 1 if you have the header file. */ +#undef HAVE_LIBINTL_H + +/* Define if you have the libunistring library. */ +#undef HAVE_LIBUNISTRING + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIBXML2_LIBXML_XMLEXPORTS_H + /* Define to 1 if you have the header file. */ #undef HAVE_LIBXML2_LIBXML_XMLVERSION_H @@ -467,15 +780,22 @@ /* Define if the 'malloc' function is POSIX compliant. */ #undef HAVE_MALLOC_POSIX +/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including + config.h and . */ +#undef HAVE_MAP_ANONYMOUS + /* Define to 1 if you have the header file. */ #undef HAVE_MATH_H -/* Define to 1 if mbrtowc and mbstate_t are properly declared. */ +/* Define to 1 if you have the `mbrtowc' function. */ #undef HAVE_MBRTOWC /* Define to 1 if you have the `mbsinit' function. */ #undef HAVE_MBSINIT +/* Define to 1 if you have the `mbslen' function. */ +#undef HAVE_MBSLEN + /* Define to 1 if you have the `mbsrtowcs' function. */ #undef HAVE_MBSRTOWCS @@ -509,6 +829,9 @@ /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP +/* Define to 1 if you have the `mprotect' function. */ +#undef HAVE_MPROTECT + /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP @@ -518,22 +841,45 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H -/* Define if you have and it defines the NL_LOCALE_NAME macro if - _GNU_SOURCE is defined. */ -#undef HAVE_NL_LOCALE_NAME +/* Define to 1 if you have the `newlocale' function. */ +#undef HAVE_NEWLOCALE + +/* Define to 1 if you have the `nl_langinfo' function. */ +#undef HAVE_NL_LANGINFO /* Define to 1 if libc includes obstacks. */ #undef HAVE_OBSTACK +/* Define to 1 if you have the header file. */ +#undef HAVE_OS_H + /* Define to 1 if you have the `pathconf' function. */ #undef HAVE_PATHCONF +/* Define to 1 if you have the header file. */ +#undef HAVE_PATHS_H + +/* Define to 1 if you have the `pipe' function. */ +#undef HAVE_PIPE + +/* Define to 1 if you have the `pipe2' function. */ +#undef HAVE_PIPE2 + /* Define if your printf() function supports format strings with positions. */ #undef HAVE_POSIX_PRINTF /* Define to 1 if you have the `posix_spawn' function. */ #undef HAVE_POSIX_SPAWN +/* Define to 1 if the system has the type `posix_spawnattr_t'. */ +#undef HAVE_POSIX_SPAWNATTR_T + +/* Define to 1 if the system has the type `posix_spawn_file_actions_t'. */ +#undef HAVE_POSIX_SPAWN_FILE_ACTIONS_T + +/* Define to 1 if you have the `pthread_atfork' function. */ +#undef HAVE_PTHREAD_ATFORK + /* Define if the defines PTHREAD_MUTEX_RECURSIVE. */ #undef HAVE_PTHREAD_MUTEX_RECURSIVE @@ -549,8 +895,520 @@ /* Define to 1 if you have the header file. */ #undef HAVE_PWD_H -/* Define to 1 if you have the `raise' function. */ -#undef HAVE_RAISE +/* Define to 1 if you have the header file. */ +#undef HAVE_RANDOM_H + +/* Define to 1 if you have the `rawmemchr' function. */ +#undef HAVE_RAWMEMCHR + +/* Define to 1 if accept is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ACCEPT + +/* Define to 1 if accept4 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ACCEPT4 + +/* Define to 1 if atoll is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ATOLL + +/* Define to 1 if bind is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_BIND + +/* Define to 1 if btowc is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_BTOWC + +/* Define to 1 if canonicalize_file_name is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_CANONICALIZE_FILE_NAME + +/* Define to 1 if chown is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_CHOWN + +/* Define to 1 if connect is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_CONNECT + +/* Define to 1 if dprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DPRINTF + +/* Define to 1 if dup2 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUP2 + +/* Define to 1 if dup3 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUP3 + +/* Define to 1 if duplocale is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_DUPLOCALE + +/* Define to 1 if endusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ENDUSERSHELL + +/* Define to 1 if environ is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_ENVIRON + +/* Define to 1 if euidaccess is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_EUIDACCESS + +/* Define to 1 if faccessat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FACCESSAT + +/* Define to 1 if fchdir is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHDIR + +/* Define to 1 if fchmodat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHMODAT + +/* Define to 1 if fchownat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCHOWNAT + +/* Define to 1 if fcntl is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FCNTL + +/* Define to 1 if fpurge is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FPURGE + +/* Define to 1 if fseeko is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSEEKO + +/* Define to 1 if fstatat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSTATAT + +/* Define to 1 if fsync is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FSYNC + +/* Define to 1 if ftello is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FTELLO + +/* Define to 1 if ftruncate is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FTRUNCATE + +/* Define to 1 if futimens is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_FUTIMENS + +/* Define to 1 if getcwd is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETCWD + +/* Define to 1 if getdelim is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDELIM + +/* Define to 1 if getdomainname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDOMAINNAME + +/* Define to 1 if getdtablesize is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETDTABLESIZE + +/* Define to 1 if getgroups is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETGROUPS + +/* Define to 1 if gethostname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETHOSTNAME + +/* Define to 1 if getline is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLINE + +/* Define to 1 if getloadavg is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOADAVG + +/* Define to 1 if getlogin is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOGIN + +/* Define to 1 if getlogin_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETLOGIN_R + +/* Define to 1 if getpagesize is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETPAGESIZE + +/* Define to 1 if getpeername is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETPEERNAME + +/* Define to 1 if getsockname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETSOCKNAME + +/* Define to 1 if getsockopt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETSOCKOPT + +/* Define to 1 if getsubopt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETSUBOPT + +/* Define to 1 if gettimeofday is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETTIMEOFDAY + +/* Define to 1 if getusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GETUSERSHELL + +/* Define to 1 if grantpt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_GRANTPT + +/* Define to 1 if initstat_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_INITSTAT_R + +/* Define to 1 if lchmod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LCHMOD + +/* Define to 1 if lchown is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LCHOWN + +/* Define to 1 if link is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LINK + +/* Define to 1 if linkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LINKAT + +/* Define to 1 if listen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LISTEN + +/* Define to 1 if lseek is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LSEEK + +/* Define to 1 if lstat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_LSTAT + +/* Define to 1 if mbrlen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBRLEN + +/* Define to 1 if mbrtowc is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBRTOWC + +/* Define to 1 if mbsinit is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSINIT + +/* Define to 1 if mbsnrtowcs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSNRTOWCS + +/* Define to 1 if mbsrtowcs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MBSRTOWCS + +/* Define to 1 if memmem is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMMEM + +/* Define to 1 if mempcpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMPCPY + +/* Define to 1 if memrchr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MEMRCHR + +/* Define to 1 if mkdirat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKDIRAT + +/* Define to 1 if mkdtemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKDTEMP + +/* Define to 1 if mkfifo is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKFIFO + +/* Define to 1 if mkfifoat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKFIFOAT + +/* Define to 1 if mknod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKNOD + +/* Define to 1 if mknodat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKNODAT + +/* Define to 1 if mkostemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKOSTEMP + +/* Define to 1 if mkostemps is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKOSTEMPS + +/* Define to 1 if mkstemp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKSTEMP + +/* Define to 1 if mkstemps is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_MKSTEMPS + +/* Define to 1 if nl_langinfo is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_NL_LANGINFO + +/* Define to 1 if openat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_OPENAT + +/* Define to 1 if pipe2 is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PIPE2 + +/* Define to 1 if popen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_POPEN + +/* Define to 1 if posix_spawn is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN + +/* Define to 1 if posix_spawnattr_destroy is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_DESTROY + +/* Define to 1 if posix_spawnattr_getflags is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETFLAGS + +/* Define to 1 if posix_spawnattr_getpgroup is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETPGROUP + +/* Define to 1 if posix_spawnattr_getschedparam is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPARAM + +/* Define to 1 if posix_spawnattr_getschedpolicy is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPOLICY + +/* Define to 1 if posix_spawnattr_getsigdefault is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGDEFAULT + +/* Define to 1 if posix_spawnattr_getsigmask is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGMASK + +/* Define to 1 if posix_spawnattr_init is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_INIT + +/* Define to 1 if posix_spawnattr_setflags is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETFLAGS + +/* Define to 1 if posix_spawnattr_setpgroup is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETPGROUP + +/* Define to 1 if posix_spawnattr_setschedparam is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPARAM + +/* Define to 1 if posix_spawnattr_setschedpolicy is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPOLICY + +/* Define to 1 if posix_spawnattr_setsigdefault is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGDEFAULT + +/* Define to 1 if posix_spawnattr_setsigmask is declared even after undefining + macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGMASK + +/* Define to 1 if posix_spawnp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWNP + +/* Define to 1 if posix_spawn_file_actions_addclose is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE + +/* Define to 1 if posix_spawn_file_actions_adddup2 is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 + +/* Define to 1 if posix_spawn_file_actions_addopen is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN + +/* Define to 1 if posix_spawn_file_actions_destroy is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_DESTROY + +/* Define to 1 if posix_spawn_file_actions_init is declared even after + undefining macros. */ +#undef HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_INIT + +/* Define to 1 if pread is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PREAD + +/* Define to 1 if ptsname is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PTSNAME + +/* Define to 1 if pwrite is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_PWRITE + +/* Define to 1 if random_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RANDOM_R + +/* Define to 1 if rawmemchr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RAWMEMCHR + +/* Define to 1 if readlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_READLINK + +/* Define to 1 if readlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_READLINKAT + +/* Define to 1 if realpath is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_REALPATH + +/* Define to 1 if recv is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RECV + +/* Define to 1 if recvfrom is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RECVFROM + +/* Define to 1 if renameat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RENAMEAT + +/* Define to 1 if rmdir is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RMDIR + +/* Define to 1 if rpmatch is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_RPMATCH + +/* Define to 1 if select is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SELECT + +/* Define to 1 if send is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SEND + +/* Define to 1 if sendto is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SENDTO + +/* Define to 1 if setenv is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETENV + +/* Define to 1 if setsockopt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETSOCKOPT + +/* Define to 1 if setstate_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETSTATE_R + +/* Define to 1 if setusershell is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SETUSERSHELL + +/* Define to 1 if shutdown is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SHUTDOWN + +/* Define to 1 if sigaction is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGACTION + +/* Define to 1 if sigaddset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGADDSET + +/* Define to 1 if sigdelset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGDELSET + +/* Define to 1 if sigemptyset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGEMPTYSET + +/* Define to 1 if sigfillset is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGFILLSET + +/* Define to 1 if sigismember is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGISMEMBER + +/* Define to 1 if sigpending is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGPENDING + +/* Define to 1 if sigprocmask is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SIGPROCMASK + +/* Define to 1 if sleep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SLEEP + +/* Define to 1 if snprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SNPRINTF + +/* Define to 1 if socket is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SOCKET + +/* Define to 1 if srandom_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SRANDOM_R + +/* Define to 1 if stat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STAT + +/* Define to 1 if stpcpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STPCPY + +/* Define to 1 if stpncpy is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STPNCPY + +/* Define to 1 if strcasestr is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRCASESTR + +/* Define to 1 if strchrnul is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRCHRNUL + +/* Define to 1 if strdup is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRDUP + +/* Define to 1 if strncat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNCAT + +/* Define to 1 if strndup is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNDUP + +/* Define to 1 if strnlen is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRNLEN + +/* Define to 1 if strpbrk is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRPBRK + +/* Define to 1 if strsep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRSEP + +/* Define to 1 if strsignal is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRSIGNAL + +/* Define to 1 if strtod is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOD + +/* Define to 1 if strtok_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOK_R + +/* Define to 1 if strtoll is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOLL + +/* Define to 1 if strtoull is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRTOULL + +/* Define to 1 if strverscmp is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_STRVERSCMP + +/* Define to 1 if symlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SYMLINK + +/* Define to 1 if symlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_SYMLINKAT + +/* Define to 1 if tmpfile is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_TMPFILE + +/* Define to 1 if ttyname_r is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_TTYNAME_R + +/* Define to 1 if unlink is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLINK + +/* Define to 1 if unlinkat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLINKAT + +/* Define to 1 if unlockpt is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNLOCKPT + +/* Define to 1 if unsetenv is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UNSETENV + +/* Define to 1 if usleep is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_USLEEP + +/* Define to 1 if utimensat is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_UTIMENSAT + +/* Define to 1 if vdprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_VDPRINTF + +/* Define to 1 if vsnprintf is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_VSNPRINTF + +/* Define to 1 if wcrtomb is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCRTOMB + +/* Define to 1 if wcsnrtombs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCSNRTOMBS + +/* Define to 1 if wcsrtombs is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCSRTOMBS + +/* Define to 1 if wctob is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCTOB + +/* Define to 1 if wcwidth is declared even after undefining macros. */ +#undef HAVE_RAW_DECL_WCWIDTH /* Define to 1 if you have the `readlink' function. */ #undef HAVE_READLINK @@ -558,31 +1416,67 @@ /* Define if the 'realloc' function is POSIX compliant. */ #undef HAVE_REALLOC_POSIX +/* Define to 1 if you have the `realpath' function. */ +#undef HAVE_REALPATH + /* Define to 1 if you have the header file. */ #undef HAVE_RESOLV_H +/* Define to 1 if the system has the type `sa_family_t'. */ +#undef HAVE_SA_FAMILY_T + +/* Define to 1 if you have the header file. */ +#undef HAVE_SCHED_H + +/* Define to 1 if you have the `sched_setparam' function. */ +#undef HAVE_SCHED_SETPARAM + +/* Define to 1 if you have the `sched_setscheduler' function. */ +#undef HAVE_SCHED_SETSCHEDULER + /* Define to 1 if you have the header file. */ #undef HAVE_SEARCH_H /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT +/* Define to 1 if you have the `setegid' function. */ +#undef HAVE_SETEGID + /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV +/* Define to 1 if you have the `seteuid' function. */ +#undef HAVE_SETEUID + /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE +/* Define to 1 if you have the `setrlimit' function. */ +#undef HAVE_SETRLIMIT + /* Define to 1 if you have the `shlload' function. */ #undef HAVE_SHLLOAD +/* Define to 1 if you have the `shutdown' function. */ +#undef HAVE_SHUTDOWN + /* Define to 1 if you have the `sigaction' function. */ #undef HAVE_SIGACTION +/* Define to 1 if you have the `sigaltstack' function. */ +#undef HAVE_SIGALTSTACK + /* Define to 1 if defines the siginfo_t type, and struct sigaction has the sa_sigaction member and the SA_SIGINFO flag. */ #undef HAVE_SIGINFO +/* Define to 1 if the system has the type `siginfo_t'. */ +#undef HAVE_SIGINFO_T + +/* Define to 1 if you have the `siginterrupt' function. */ +#undef HAVE_SIGINTERRUPT + /* Define to 1 if you have the header file. */ #undef HAVE_SIGNAL_H @@ -604,9 +1498,23 @@ /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF +/* Define if the return value of the snprintf function is the number of of + bytes (excluding the terminating NUL) that would have been produced if the + buffer had been large enough. */ +#undef HAVE_SNPRINTF_RETVAL_C99 + +/* Define to 1 if you have the header file. */ +#undef HAVE_SPAWN_H + /* Define to 1 if you have the `stat' function. */ #undef HAVE_STAT +/* Define to 1 if you have the `statacl' function. */ +#undef HAVE_STATACL + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDARG_H + /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H @@ -635,6 +1543,9 @@ /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP +/* Define to 1 if you have the `strchrnul' function. */ +#undef HAVE_STRCHRNUL + /* Define to 1 if you have the `strcspn' function. */ #undef HAVE_STRCSPN @@ -653,6 +1564,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + /* Define to 1 if you have the `strpbrk' function. */ #undef HAVE_STRPBRK @@ -662,9 +1576,21 @@ /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL -/* Define to 1 if `__names' is member of `struct __locale_struct'. */ +/* Define to 1 if the system has the type `struct random_data'. */ +#undef HAVE_STRUCT_RANDOM_DATA + +/* Define to 1 if `sa_sigaction' is a member of `struct sigaction'. */ +#undef HAVE_STRUCT_SIGACTION_SA_SIGACTION + +/* Define to 1 if the system has the type `struct sockaddr_storage'. */ +#undef HAVE_STRUCT_SOCKADDR_STORAGE + +/* Define to 1 if `__names' is a member of `struct __locale_struct'. */ #undef HAVE_STRUCT___LOCALE_STRUCT___NAMES +/* Define to 1 if you have the `symlink' function. */ +#undef HAVE_SYMLINK + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_ACL_H @@ -674,6 +1600,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MMAN_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H @@ -695,6 +1624,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_WAIT_H + /* Define if tgetent(), tgetnum(), tgetstr(), tgetflag() are among the termcap library functions. */ #undef HAVE_TERMCAP @@ -724,12 +1656,12 @@ /* Define to 1 if you have the `unsetenv' function. */ #undef HAVE_UNSETENV -/* Define if you have the 'unsigned long long' type. */ -#undef HAVE_UNSIGNED_LONG_LONG - /* Define to 1 if the system has the type `unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT +/* Define to 1 if you have the `uselocale' function. */ +#undef HAVE_USELOCALE + /* Define to 1 if you have the `utime' function. */ #undef HAVE_UTIME @@ -770,15 +1702,30 @@ /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T +/* Define to 1 if you have the `wcrtomb' function. */ +#undef HAVE_WCRTOMB + +/* Define to 1 if you have the `wcscoll' function. */ +#undef HAVE_WCSCOLL + /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN +/* Define to 1 if you have the `wcsnlen' function. */ +#undef HAVE_WCSNLEN + +/* Define to 1 if you have the `wctob' function. */ +#undef HAVE_WCTOB + /* Define to 1 if you have the header file. */ #undef HAVE_WCTYPE_H /* Define to 1 if you have the `wcwidth' function. */ #undef HAVE_WCWIDTH +/* Define to 1 if you have the header file. */ +#undef HAVE_WINSOCK2_H + /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T @@ -803,6 +1750,12 @@ /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK +/* Define to 1 if you have the header file. */ +#undef HAVE_WS2TCPIP_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_XLOCALE_H + /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL @@ -834,15 +1787,44 @@ /* Define if integer division by zero raises signal SIGFPE. */ #undef INTDIV0_RAISES_SIGFPE +#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +#else +# define ISSLASH(C) ((C) == '/') +#endif + /* Define to 1 if the C compiler is actually a C++ compiler. */ #undef IS_CPLUSPLUS +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#undef LSTAT_FOLLOWS_SLASHED_SYMLINK + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ #undef MALLOC_0_IS_NONNULL +/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ +#undef MAP_ANONYMOUS + +/* Define if the mbrtowc function has the NULL string argument bug. */ +#undef MBRTOWC_NULL_ARG_BUG + +/* Define if the mbrtowc function does not return 0 for a NUL character. */ +#undef MBRTOWC_NUL_RETVAL_BUG + +/* Define if the mbrtowc function returns a wrong return value. */ +#undef MBRTOWC_RETVAL_BUG + /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O +/* Define to 1 if open() fails to recognize a trailing slash. */ +#undef OPEN_TRAILING_SLASH_BUG + /* Name of package */ #undef PACKAGE @@ -858,12 +1840,19 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define if exists and defines unusable PRI* macros. */ #undef PRI_MACROS_BROKEN +/* Define to the type that is the result of default argument promotions of + type mode_t. */ +#undef PROMOTED_MODE_T + /* Define if the pthread_in_use() detection is hard. */ #undef PTHREAD_IN_USE_DETECTION_HARD @@ -871,6 +1860,20 @@ 'ptrdiff_t'. */ #undef PTRDIFF_T_SUFFIX +/* Define to 1 if readlink fails to recognize a trailing slash. */ +#undef READLINK_TRAILING_SLASH_BUG + +/* Define to 1 if stat needs help when passed a directory name with a trailing + slash */ +#undef REPLACE_FUNC_STAT_DIR + +/* Define to 1 if stat needs help when passed a file name with a trailing + slash */ +#undef REPLACE_FUNC_STAT_FILE + +/* Define if nl_langinfo exists but is overridden by gnulib. */ +#undef REPLACE_NL_LANGINFO + /* Define this to 1 if strerror is broken. */ #undef REPLACE_STRERROR @@ -889,7 +1892,9 @@ /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ -#undef SIZE_MAX +#ifndef SIZE_MAX +# undef SIZE_MAX +#endif /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'size_t'. */ @@ -912,7 +1917,11 @@ /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P -/* Define if you want access control list support. */ +/* Define to the prefix of C symbols at the assembler and linker level, either + an underscore or empty. */ +#undef USER_LABEL_PREFIX + +/* Define to nonzero if you want access control list support. */ #undef USE_ACL /* Define if the POSIX multithreading library can be used. */ @@ -950,7 +1959,7 @@ /* Version number of package */ #undef VERSION -/* Define if unsetenv() returns void, not int. */ +/* Define to 1 if unsetenv returns void instead of int. */ #undef VOID_UNSETENV /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type @@ -964,17 +1973,24 @@ /* Define when --enable-shared is used on mingw or Cygwin. */ #undef WOE32DLL +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + /* Define to 1 to internationalize bison runtime messages. */ #undef YYENABLE_NLS /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif - /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES @@ -988,6 +2004,12 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE +/* Define if you want regoff_t to be at least as wide POSIX requires. */ +#undef _REGEX_LARGE_OFFSETS + +/* Define to 500 only on HP-UX. */ +#undef _XOPEN_SOURCE + /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE @@ -1020,6 +2042,9 @@ /* Define to a replacement function name for fnmatch(). */ #undef fnmatch +/* Define to `int' if doesn't define. */ +#undef gid_t + /* A replacement for va_copy, if needed. */ #define gl_va_copy(a,b) ((a) = (b)) @@ -1035,6 +2060,16 @@ /* Define to long or long long if and don't define. */ #undef intmax_t +/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif + /* Define to rpl_localtime if the replacement function should be used. */ #undef localtime @@ -1044,6 +2079,9 @@ /* Define to `int' if does not define. */ #undef mode_t +/* Define to the type of st_nlink in struct stat, or a supertype. */ +#undef nlink_t + /* Define to `int' if does not define. */ #undef pid_t @@ -1051,20 +2089,63 @@ doesn't define it. */ #undef ptrdiff_t -/* Define to a replacement function name for realpath(). */ -#undef realpath +/* Define to rpl_re_comp if the replacement should be used. */ +#undef re_comp + +/* Define to rpl_re_compile_fastmap if the replacement should be used. */ +#undef re_compile_fastmap + +/* Define to rpl_re_compile_pattern if the replacement should be used. */ +#undef re_compile_pattern + +/* Define to rpl_re_exec if the replacement should be used. */ +#undef re_exec + +/* Define to rpl_re_match if the replacement should be used. */ +#undef re_match + +/* Define to rpl_re_match_2 if the replacement should be used. */ +#undef re_match_2 + +/* Define to rpl_re_search if the replacement should be used. */ +#undef re_search + +/* Define to rpl_re_search_2 if the replacement should be used. */ +#undef re_search_2 + +/* Define to rpl_re_set_registers if the replacement should be used. */ +#undef re_set_registers + +/* Define to rpl_re_set_syntax if the replacement should be used. */ +#undef re_set_syntax + +/* Define to rpl_re_syntax_options if the replacement should be used. */ +#undef re_syntax_options + +/* Define to rpl_regcomp if the replacement should be used. */ +#undef regcomp + +/* Define to rpl_regerror if the replacement should be used. */ +#undef regerror + +/* Define to rpl_regexec if the replacement should be used. */ +#undef regexec + +/* Define to rpl_regfree if the replacement should be used. */ +#undef regfree /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. */ #undef restrict -/* Work around a bug in Sun C++: it does not support _Restrict, even - though the corresponding Sun C compiler does, which causes - "#define restrict _Restrict" in the previous line. Perhaps some future - version of Sun C++ will work with _Restrict; if so, it'll probably - define __RESTRICT, just as Sun C does. */ +/* Work around a bug in Sun C++: it does not support _Restrict or + __restrict__, even though the corresponding Sun C compiler ends up with + "#define restrict _Restrict" or "#define restrict __restrict__" in the + previous line. Perhaps some future version of Sun C++ will work with + restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT # define _Restrict +# define __restrict__ #endif /* Define as an integer type suitable for memory locations that can be @@ -1077,22 +2158,32 @@ /* Define as a signed type of the same size as size_t. */ #undef ssize_t -/* Define to rpl_strnlen if the replacement function should be used. */ -#undef strnlen +/* Define to `int' if doesn't define. */ +#undef uid_t /* Define to unsigned long or unsigned long long if and don't define. */ #undef uintmax_t +/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED + + /* Define as a macro for copying va_list variables. */ #undef va_copy /* Define as `fork' if `vfork' does not work. */ #undef vfork -/* Define to wcscmp if the function wcscoll does not exist. */ -#undef wcscoll - #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define @@ -1107,27 +2198,44 @@ #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use -#define glthread_lock_init libintl_lock_init -#define glthread_lock_lock libintl_lock_lock -#define glthread_lock_unlock libintl_lock_unlock -#define glthread_lock_destroy libintl_lock_destroy -#define glthread_rwlock_init libintl_rwlock_init -#define glthread_rwlock_rdlock libintl_rwlock_rdlock -#define glthread_rwlock_wrlock libintl_rwlock_wrlock -#define glthread_rwlock_unlock libintl_rwlock_unlock -#define glthread_rwlock_destroy libintl_rwlock_destroy -#define glthread_recursive_lock_init libintl_recursive_lock_init -#define glthread_recursive_lock_lock libintl_recursive_lock_lock -#define glthread_recursive_lock_unlock libintl_recursive_lock_unlock -#define glthread_recursive_lock_destroy libintl_recursive_lock_destroy -#define glthread_once libintl_once -#define glthread_once_call libintl_once_call +#define glthread_lock_init_func libintl_lock_init_func +#define glthread_lock_lock_func libintl_lock_lock_func +#define glthread_lock_unlock_func libintl_lock_unlock_func +#define glthread_lock_destroy_func libintl_lock_destroy_func +#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded +#define glthread_rwlock_init_func libintl_rwlock_init_func +#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded +#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func +#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded +#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func +#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded +#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func +#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded +#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func +#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded +#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func +#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded +#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func +#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded +#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func +#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded +#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func +#define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded +#define glthread_once_multithreaded libintl_once_multithreaded + +#ifndef ENDIANNESS +# if defined __BIG_ENDIAN__ +# define ENDIANNESS 1 +# endif +# if defined __LITTLE_ENDIAN__ +# define ENDIANNESS 0 +# endif +#endif + -/* Indicator for intl/ that it is compiled for testing purposes only. */ -#define USE_IN_GETTEXT_TESTS /* A file name cannot consist of any character possible. INVALID_PATH_CHAR contains the characters not allowed. */ diff -Nru gettext-0.17/gettext-tools/configure gettext-0.18.1.1/gettext-tools/configure --- gettext-0.17/gettext-tools/configure 2007-11-06 23:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/configure 2010-06-06 20:12:20.000000000 +0000 @@ -1,60 +1,83 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.65. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -63,20 +86,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -87,354 +108,321 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE # CDPATH. -$as_unset CDPATH - +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST else - as_have_required=no + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes else - exitcode=1 - echo positional parameters were not saved. + as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - case $as_dir in + as_found=: + case $as_dir in #( /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi done;; esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } IFS=$as_save_IFS - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - -fi - - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 fi - fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" -fi -fi +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error -exitcode=0 -if as_func_success; then - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + as_expr=false fi -if as_func_ret_success; then - : +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + as_basename=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname else - exitcode=1 - echo positional parameters were not saved. + as_dirname=false fi -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} - +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= @@ -451,8 +439,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the @@ -462,49 +449,40 @@ exit } - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi @@ -512,7 +490,7 @@ rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -529,12 +507,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -549,26 +527,25 @@ - # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} -case X$ECHO in +case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac -echo=${ECHO-echo} +ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! : else # Restart under the correct shell. @@ -578,9 +555,9 @@ if test "X$1" = X--fallback-echo; then # used as fallback echo shift - cat </dev/null 2>&1 && unset CDPATH -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done + fi -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else - # maybe with a smaller string... - prev=: + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi fi fi fi fi -fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi -tagnames=${tagnames+${tagnames},}CXX - -tagnames=${tagnames+${tagnames},}F77 - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -721,7 +694,6 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= @@ -729,6 +701,7 @@ PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= +PACKAGE_URL= ac_unique_file="src/msgfmt.c" # Factoring default headers for most tests. @@ -767,505 +740,1013 @@ # include #endif" +gl_use_threads_default= gt_needs= gl_header_list= gl_func_list= -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -CC -CFLAGS -LDFLAGS -CPPFLAGS -ac_ct_CC -EXEEXT -OBJEXT -DEPDIR -am__include -am__quote -AMDEP_TRUE -AMDEP_FALSE -AMDEPBACKSLASH -CCDEPMODE -am__fastdepCC_TRUE -am__fastdepCC_FALSE -YACC -YFLAGS -JAVA_CHOICE -GCJ -GCJFLAGS -HAVE_GCJ -BUILDJAVAEXE -CPP -GREP -EGREP -HAVE_GIJ_IN_PATH -HAVE_JAVA_IN_PATH -HAVE_JRE_IN_PATH -HAVE_JVIEW_IN_PATH -CONF_JAVA -CLASSPATH -CLASSPATH_SEPARATOR -HAVE_JAVA_ENVVAR -HAVE_GIJ -HAVE_JAVA -HAVE_JRE -HAVE_JVIEW -HAVE_GCJ_IN_PATH -HAVE_JAVAC_IN_PATH -HAVE_JIKES_IN_PATH -CONF_JAVAC -HAVE_JAVAC_ENVVAR -HAVE_GCJ_C -HAVE_JAVAC -HAVE_JIKES -JAR -BUILDJAVA -TESTJAVA -CSHARP_CHOICE -HAVE_CSCC_IN_PATH -HAVE_MCS_IN_PATH -HAVE_CSC_IN_PATH -HAVE_CSCC -HAVE_MCS -HAVE_CSC -CSHARPCOMPFLAGS -BUILDCSHARP -HAVE_ILRUN_IN_PATH -HAVE_MONO_IN_PATH -HAVE_CLIX_IN_PATH -MONO_PATH -MONO_PATH_SEPARATOR -CLIX_PATH_VAR -CLIX_PATH -HAVE_ILRUN -HAVE_MONO -HAVE_CLIX -TESTCSHARP -build -build_cpu -build_vendor -build_os -host -host_cpu -host_vendor -host_os -RANLIB -SED -LN_S -ECHO -AR -DLLTOOL -AS -OBJDUMP -CXX -CXXFLAGS -ac_ct_CXX -CXXDEPMODE -am__fastdepCXX_TRUE -am__fastdepCXX_FALSE +gl_fnmatch_required=POSIX +gl_getopt_required=POSIX +gl_getopt_required=POSIX +enable_option_checking=no +ac_subst_vars='gtpotests_LTLIBOBJS +gtpotests_LIBOBJS +gtpo_LTLIBOBJS +gtpo_LIBOBJS +grgltests_LTLIBOBJS +grgltests_LIBOBJS +grgl_LTLIBOBJS +grgl_LIBOBJS +gltests_LTLIBOBJS +gltests_LIBOBJS +gl_LTLIBOBJS +gl_LIBOBJS +am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +subdirs +TESTLIBASPRINTF CXXCPP -F77 -FFLAGS -ac_ct_F77 -LIBTOOL -LTNOUNDEF -WOE32_TRUE -WOE32_FALSE -USE_NLS -GETTEXT_MACRO_VERSION -MSGFMT -GMSGFMT -MSGFMT_015 -GMSGFMT_015 -XGETTEXT -XGETTEXT_015 -MSGMERGE -XGETTEXT_EXTRA_OPTIONS -GLIBC2 -CFLAG_VISIBILITY -HAVE_VISIBILITY -ALLOCA -PRI_MACROS_BROKEN -LIBPTH -LTLIBPTH -LIBPTH_PREFIX -LIBTHREAD -LTLIBTHREAD -LIBMULTITHREAD -LTLIBMULTITHREAD -LIBICONV -LTLIBICONV -INTLBISON -GLIBC21 -INTL_MACOSX_LIBS -HAVE_POSIX_PRINTF -HAVE_ASPRINTF -HAVE_SNPRINTF -HAVE_WPRINTF -WOE32DLL -WOE32 -WINDRES -LTLIBC -BUILD_INCLUDED_LIBINTL -USE_INCLUDED_LIBINTL -CATOBJEXT -DATADIRNAME -INSTOBJEXT -GENCAT -INTLOBJS -INTL_LIBTOOL_SUFFIX_PREFIX -INTLLIBS -LIBINTL -LTLIBINTL -POSUB -BISON_LOCALEDIR -MSGMERGE_LIBM -GL_COND_LIBTOOL_TRUE -GL_COND_LIBTOOL_FALSE -LIB_ACL -LIB_ACL_TRIVIAL -ALLOCA_H -BYTESWAP_H -LOCALE_FR +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +CROSS_COMPILING +PERL +TEXI2PDF +DVIPS +ARCHIVE_FORMAT +aclocaldir +lispdir +EMACSLOADPATH +EMACS +HAVE_GLOBAL_SYMBOL_PIPE +GLOBAL_SYMBOL_PIPE +LIBEXPAT_PREFIX +HAVE_LIBEXPAT +LTLIBEXPAT +LIBEXPAT +GETTEXTLIB_EXPORTS_FLAGS +WOE32DLL_FALSE +WOE32DLL_TRUE +gtpotests_WITNESS +LIBGREP_LTLIBDEPS +LIBGREP_LIBDEPS +grgltests_WITNESS +HAVE_LANGINFO_ERA +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_H +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H +NEXT_LANGINFO_H +REPLACE_NL_LANGINFO +HAVE_NL_LANGINFO +GNULIB_NL_LANGINFO +LIBTESTS_LIBDEPS +YIELD_LIB +LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE +POSIX_SPAWN_PORTED_FALSE +POSIX_SPAWN_PORTED_TRUE LOCALE_TR_UTF8 -GNULIB_OPEN -REPLACE_OPEN -INCLUDE_NEXT -NEXT_FCNTL_H -FCNTL_H -NEXT_FLOAT_H -FLOAT_H -FNMATCH_H -GNULIB_FPRINTF_POSIX -GNULIB_PRINTF_POSIX -GNULIB_SNPRINTF -GNULIB_SPRINTF_POSIX -GNULIB_VFPRINTF_POSIX -GNULIB_VPRINTF_POSIX -GNULIB_VSNPRINTF -GNULIB_VSPRINTF_POSIX -GNULIB_VASPRINTF -GNULIB_FOPEN -GNULIB_FREOPEN -GNULIB_FSEEK -GNULIB_FSEEKO -GNULIB_FTELL -GNULIB_FTELLO -GNULIB_FFLUSH -GNULIB_GETDELIM -GNULIB_GETLINE -REPLACE_FPRINTF -REPLACE_VFPRINTF -REPLACE_PRINTF -REPLACE_VPRINTF -REPLACE_SNPRINTF -HAVE_DECL_SNPRINTF -REPLACE_VSNPRINTF -HAVE_DECL_VSNPRINTF -REPLACE_SPRINTF +LOCALE_FR +gltests_WITNESS +REPLACE_ISWCNTRL +HAVE_WCTYPE_H +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H +NEXT_WCTYPE_H +HAVE_ISWBLANK +HAVE_ISWCNTRL +HAVE_WINT_T +HAVE_WCHAR_H +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H +NEXT_WCHAR_H +LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE +LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE +LIBUNISTRING_UNIWIDTH_H +LIBUNISTRING_UNITYPES_H +LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE +LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE +LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE +LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE +LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE +LIBUNISTRING_UNISTR_H +HAVE_UNISTD_H +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H +NEXT_UNISTD_H +LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE +LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE +LIBUNISTRING_UNINAME_H +LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE +LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE +LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE +LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE +LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE +LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE +LIBUNISTRING_UNILBRK_H +LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE +LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE +LIBUNISTRING_UNICONV_H +PTHREAD_H_DEFINES_STRUCT_TIMESPEC +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC +TIME_H_DEFINES_STRUCT_TIMESPEC +NEXT_AS_FIRST_DIRECTIVE_TIME_H +NEXT_TIME_H +REPLACE_TIMEGM +REPLACE_NANOSLEEP +REPLACE_MKTIME +REPLACE_LOCALTIME_R +HAVE_TIMEGM +HAVE_STRPTIME +HAVE_NANOSLEEP +HAVE_LOCALTIME_R +GNULIB_TIME_R +GNULIB_TIMEGM +GNULIB_STRPTIME +GNULIB_NANOSLEEP +GNULIB_MKTIME +INCTERMINFO +LTLIBTERMINFO +LIBTERMINFO +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H +NEXT_SYS_WAIT_H +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H +NEXT_SYS_STAT_H +HAVE_SYS_SELECT_H +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H +NEXT_SYS_SELECT_H +REPLACE_SELECT +GNULIB_SELECT +HAVE_WINSOCK2_H +HAVE_WS2TCPIP_H +HAVE_SYS_SOCKET_H +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H +NEXT_SYS_SOCKET_H +HAVE_ACCEPT4 +HAVE_SA_FAMILY_T +HAVE_STRUCT_SOCKADDR_STORAGE +GNULIB_ACCEPT4 +GNULIB_SHUTDOWN +GNULIB_SETSOCKOPT +GNULIB_SENDTO +GNULIB_RECVFROM +GNULIB_SEND +GNULIB_RECV +GNULIB_LISTEN +GNULIB_GETSOCKOPT +GNULIB_GETSOCKNAME +GNULIB_GETPEERNAME +GNULIB_BIND +GNULIB_ACCEPT +GNULIB_CONNECT +GNULIB_SOCKET +NEXT_AS_FIRST_DIRECTIVE_STRING_H +NEXT_STRING_H +HAVE_RANDOM_H +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H +NEXT_STDLIB_H +NEXT_AS_FIRST_DIRECTIVE_STDIO_H +NEXT_STDIO_H +ASM_SYMBOL_PREFIX +STDINT_H +WINT_T_SUFFIX +WCHAR_T_SUFFIX +SIG_ATOMIC_T_SUFFIX +SIZE_T_SUFFIX +PTRDIFF_T_SUFFIX +HAVE_SIGNED_WINT_T +HAVE_SIGNED_WCHAR_T +HAVE_SIGNED_SIG_ATOMIC_T +BITSIZEOF_WINT_T +BITSIZEOF_WCHAR_T +BITSIZEOF_SIG_ATOMIC_T +BITSIZEOF_SIZE_T +BITSIZEOF_PTRDIFF_T +HAVE_SYS_BITYPES_H +HAVE_SYS_INTTYPES_H +HAVE_STDINT_H +NEXT_AS_FIRST_DIRECTIVE_STDINT_H +NEXT_STDINT_H +HAVE_SYS_TYPES_H +HAVE_INTTYPES_H +HAVE_UNSIGNED_LONG_LONG_INT +HAVE_LONG_LONG_INT +HAVE__BOOL +STDBOOL_H +NEXT_AS_FIRST_DIRECTIVE_STDARG_H +NEXT_STDARG_H +STDARG_H +HAVE_SPAWN_H +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H +NEXT_SPAWN_H +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H +NEXT_SIGNAL_H +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T +HAVE_STRUCT_SIGACTION_SA_SIGACTION +HAVE_SIGACTION +HAVE_SIGINFO_T +HAVE_SIGSET_T +HAVE_POSIX_SIGNALBLOCKING +GNULIB_SIGACTION +GNULIB_SIGPROCMASK +GNULIB_SIGNAL_H_SIGPIPE +SCHED_H +HAVE_STRUCT_SCHED_PARAM +HAVE_SCHED_H +NEXT_AS_FIRST_DIRECTIVE_SCHED_H +NEXT_SCHED_H +RELOCATABLE_STRIP +RELOCATABLE_BUILD_DIR +RELOCATABLE_SRC_DIR +RELOCATABLE_CONFIG_H_DIR +RELOCATABLE_LIBRARY_PATH +RELOCATABLE_VIA_LD_FALSE +RELOCATABLE_VIA_LD_TRUE +INSTALL_PROGRAM_ENV +RELOCATABLE_LDFLAGS +RELOCATABLE +REPLACE_POSIX_SPAWN +HAVE_POSIX_SPAWN_FILE_ACTIONS_T +HAVE_POSIX_SPAWNATTR_T +HAVE_POSIX_SPAWN +GNULIB_POSIX_SPAWNATTR_DESTROY +GNULIB_POSIX_SPAWNATTR_SETSIGMASK +GNULIB_POSIX_SPAWNATTR_GETSIGMASK +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM +GNULIB_POSIX_SPAWNATTR_SETPGROUP +GNULIB_POSIX_SPAWNATTR_GETPGROUP +GNULIB_POSIX_SPAWNATTR_SETFLAGS +GNULIB_POSIX_SPAWNATTR_GETFLAGS +GNULIB_POSIX_SPAWNATTR_INIT +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT +GNULIB_POSIX_SPAWNP +GNULIB_POSIX_SPAWN +OPENMP_CFLAGS +NO_CXX +APPLE_UNIVERSAL_BUILD +UNDEFINE_STRTOK_R +REPLACE_STRTOK_R +REPLACE_STRSIGNAL +REPLACE_STRNLEN +REPLACE_STRNDUP +REPLACE_STRNCAT +REPLACE_STRERROR +REPLACE_STRCASESTR +REPLACE_STRSTR +REPLACE_STRDUP +REPLACE_STPNCPY +REPLACE_MEMMEM +REPLACE_MEMCHR +HAVE_STRVERSCMP +HAVE_DECL_STRSIGNAL +HAVE_DECL_STRTOK_R +HAVE_STRCASESTR +HAVE_STRSEP +HAVE_STRPBRK +HAVE_DECL_STRNLEN +HAVE_DECL_STRNDUP +HAVE_DECL_STRDUP +HAVE_STRCHRNUL +HAVE_STPNCPY +HAVE_STPCPY +HAVE_RAWMEMCHR +HAVE_DECL_MEMRCHR +HAVE_MEMPCPY +HAVE_DECL_MEMMEM +HAVE_MEMCHR +HAVE_MBSLEN +GNULIB_STRVERSCMP +GNULIB_STRSIGNAL +GNULIB_STRERROR +GNULIB_MBSTOK_R +GNULIB_MBSSEP +GNULIB_MBSSPN +GNULIB_MBSPBRK +GNULIB_MBSCSPN +GNULIB_MBSCASESTR +GNULIB_MBSPCASECMP +GNULIB_MBSNCASECMP +GNULIB_MBSCASECMP +GNULIB_MBSSTR +GNULIB_MBSRCHR +GNULIB_MBSCHR +GNULIB_MBSNLEN +GNULIB_MBSLEN +GNULIB_STRTOK_R +GNULIB_STRCASESTR +GNULIB_STRSTR +GNULIB_STRSEP +GNULIB_STRPBRK +GNULIB_STRNLEN +GNULIB_STRNDUP +GNULIB_STRNCAT +GNULIB_STRDUP +GNULIB_STRCHRNUL +GNULIB_STPNCPY +GNULIB_STPCPY +GNULIB_RAWMEMCHR +GNULIB_MEMRCHR +GNULIB_MEMPCPY +GNULIB_MEMMEM +GNULIB_MEMCHR +LOCALE_FR_UTF8 +LOCALE_ZH_CN +LOCALE_JA +REPLACE_WCWIDTH +REPLACE_WCSNRTOMBS +REPLACE_WCSRTOMBS +REPLACE_WCRTOMB +REPLACE_MBSNRTOWCS +REPLACE_MBSRTOWCS +REPLACE_MBRLEN +REPLACE_MBRTOWC +REPLACE_MBSINIT +REPLACE_WCTOB +REPLACE_BTOWC +REPLACE_MBSTATE_T +HAVE_DECL_WCWIDTH +HAVE_DECL_WCTOB +HAVE_WCSNRTOMBS +HAVE_WCSRTOMBS +HAVE_WCRTOMB +HAVE_MBSNRTOWCS +HAVE_MBSRTOWCS +HAVE_MBRLEN +HAVE_MBRTOWC +HAVE_MBSINIT +HAVE_BTOWC +GNULIB_WCWIDTH +GNULIB_WCSNRTOMBS +GNULIB_WCSRTOMBS +GNULIB_WCRTOMB +GNULIB_MBSNRTOWCS +GNULIB_MBSRTOWCS +GNULIB_MBRLEN +GNULIB_MBRTOWC +GNULIB_MBSINIT +GNULIB_WCTOB +GNULIB_BTOWC +REPLACE_UTIMENSAT +REPLACE_STAT +REPLACE_MKNOD +REPLACE_MKFIFO +REPLACE_MKDIR +REPLACE_LSTAT +REPLACE_FUTIMENS +REPLACE_FSTATAT +REPLACE_FSTAT +HAVE_UTIMENSAT +HAVE_MKNODAT +HAVE_MKNOD +HAVE_MKFIFOAT +HAVE_MKFIFO +HAVE_MKDIRAT +HAVE_LSTAT +HAVE_LCHMOD +HAVE_FUTIMENS +HAVE_FSTATAT +HAVE_FCHMODAT +GNULIB_UTIMENSAT +GNULIB_STAT +GNULIB_MKNODAT +GNULIB_MKNOD +GNULIB_MKFIFOAT +GNULIB_MKFIFO +GNULIB_MKDIRAT +GNULIB_LSTAT +GNULIB_LCHMOD +GNULIB_FUTIMENS +GNULIB_FSTATAT +GNULIB_FCHMODAT +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H +NEXT_LOCALE_H +HAVE_XLOCALE_H +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H +NEXT_STDDEF_H +STDDEF_H +HAVE_WCHAR_T +REPLACE_NULL +REPLACE_DUPLOCALE +HAVE_DUPLOCALE +GNULIB_DUPLOCALE +LOCALCHARSET_TESTS_ENVIRONMENT +INCLUDED_LIBXML_FALSE +INCLUDED_LIBXML_TRUE +LIBXML_H +INCXML +LTLIBXML +LIBXML +LIBUNISTRING_PREFIX +LTLIBUNISTRING +LIBUNISTRING +HAVE_LIBUNISTRING +INCLUDED_LIBCROCO_FALSE +INCLUDED_LIBCROCO_TRUE +INCCROCO +LTLIBCROCO +LIBCROCO +INCLUDED_LIBGLIB_FALSE +INCLUDED_LIBGLIB_TRUE +LIBGLIB_H +INCGLIB +LTLIBGLIB +LIBGLIB +NEXT_AS_FIRST_DIRECTIVE_ICONV_H +NEXT_ICONV_H +ICONV_H +REPLACE_ICONV_UTF +REPLACE_ICONV_OPEN +REPLACE_ICONV +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H +NEXT_SYS_TIME_H +REPLACE_GETTIMEOFDAY +HAVE_SYS_TIME_H +HAVE_STRUCT_TIMEVAL +HAVE_GETTIMEOFDAY +GNULIB_GETTIMEOFDAY +GETOPT_H +HAVE_GETOPT_H +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H +NEXT_GETOPT_H REPLACE_VSPRINTF -HAVE_VASPRINTF +REPLACE_VSNPRINTF +REPLACE_VPRINTF +REPLACE_VFPRINTF +REPLACE_VDPRINTF REPLACE_VASPRINTF -REPLACE_FOPEN -REPLACE_FREOPEN -HAVE_FSEEKO -REPLACE_FSEEKO -REPLACE_FSEEK -HAVE_FTELLO +REPLACE_TMPFILE +REPLACE_STDIO_WRITE_FUNCS +REPLACE_SPRINTF +REPLACE_SNPRINTF +REPLACE_RENAMEAT +REPLACE_RENAME +REPLACE_REMOVE +REPLACE_PRINTF +REPLACE_POPEN +REPLACE_PERROR +REPLACE_OBSTACK_PRINTF +REPLACE_GETLINE +REPLACE_GETDELIM REPLACE_FTELLO REPLACE_FTELL +REPLACE_FSEEKO +REPLACE_FSEEK +REPLACE_FREOPEN +REPLACE_FPURGE +REPLACE_FPRINTF +REPLACE_FOPEN REPLACE_FFLUSH -HAVE_DECL_GETDELIM +REPLACE_FCLOSE +REPLACE_DPRINTF +HAVE_VDPRINTF +HAVE_VASPRINTF +HAVE_RENAMEAT +HAVE_FTELLO +HAVE_FSEEKO +HAVE_DPRINTF +HAVE_DECL_VSNPRINTF +HAVE_DECL_SNPRINTF +HAVE_DECL_OBSTACK_PRINTF HAVE_DECL_GETLINE -REPLACE_GETLINE -GETOPT_H -NEXT_SYS_TIME_H -HAVE_SYS_TIME_H -HAVE_STRUCT_TIMEVAL -REPLACE_GETTIMEOFDAY -SYS_TIME_H -REPLACE_ICONV -REPLACE_ICONV_OPEN -REPLACE_ICONV_UTF -NEXT_ICONV_H -ICONV_H -LIBGLIB -LTLIBGLIB -INCGLIB -LIBGLIB_H -INCLUDED_LIBGLIB_TRUE -INCLUDED_LIBGLIB_FALSE -LIBCROCO -LTLIBCROCO -INCCROCO -INCLUDED_LIBCROCO_TRUE -INCLUDED_LIBCROCO_FALSE -LIBXML -LTLIBXML -INCXML -LIBXML_H -INCLUDED_LIBXML_TRUE -INCLUDED_LIBXML_FALSE -NEXT_LOCALE_H -LOCALE_H -LIBSCHED +HAVE_DECL_GETDELIM +HAVE_DECL_FPURGE +GNULIB_VSPRINTF_POSIX +GNULIB_VSNPRINTF +GNULIB_VPRINTF_POSIX +GNULIB_VPRINTF +GNULIB_VFPRINTF_POSIX +GNULIB_VFPRINTF +GNULIB_VDPRINTF +GNULIB_VASPRINTF +GNULIB_TMPFILE +GNULIB_STDIO_H_SIGPIPE +GNULIB_SPRINTF_POSIX +GNULIB_SNPRINTF +GNULIB_RENAMEAT +GNULIB_RENAME +GNULIB_REMOVE +GNULIB_PUTS +GNULIB_PUTCHAR +GNULIB_PUTC +GNULIB_PRINTF_POSIX +GNULIB_PRINTF +GNULIB_POPEN +GNULIB_PERROR +GNULIB_OBSTACK_PRINTF_POSIX +GNULIB_OBSTACK_PRINTF +GNULIB_GETLINE +GNULIB_GETDELIM +GNULIB_FWRITE +GNULIB_FTELLO +GNULIB_FTELL +GNULIB_FSEEKO +GNULIB_FSEEK +GNULIB_FREOPEN +GNULIB_FPUTS +GNULIB_FPUTC +GNULIB_FPURGE +GNULIB_FPRINTF_POSIX +GNULIB_FPRINTF +GNULIB_FOPEN +GNULIB_FFLUSH +GNULIB_FCLOSE +GNULIB_DPRINTF +FNMATCH_H +FLOAT_H +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H +NEXT_FLOAT_H +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H +NEXT_FCNTL_H +REPLACE_OPENAT +REPLACE_OPEN +REPLACE_FCNTL +HAVE_OPENAT +HAVE_FCNTL +GNULIB_OPENAT +GNULIB_OPEN +GNULIB_FCNTL +EOVERFLOW_VALUE +EOVERFLOW_HIDDEN +ENOLINK_VALUE +ENOLINK_HIDDEN +EMULTIHOP_VALUE +EMULTIHOP_HIDDEN +ERRNO_H +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H +NEXT_ERRNO_H +PRAGMA_SYSTEM_HEADER +INCLUDE_NEXT_AS_FIRST_DIRECTIVE +INCLUDE_NEXT +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS +UNISTD_H_HAVE_WINSOCK2_H +REPLACE_WRITE +REPLACE_USLEEP +REPLACE_UNLINKAT +REPLACE_UNLINK +REPLACE_TTYNAME_R +REPLACE_SYMLINK +REPLACE_SLEEP +REPLACE_RMDIR +REPLACE_READLINK +REPLACE_PWRITE +REPLACE_PREAD +REPLACE_LSEEK +REPLACE_LINKAT +REPLACE_LINK +REPLACE_LCHOWN +REPLACE_GETPAGESIZE +REPLACE_GETGROUPS +REPLACE_GETCWD +REPLACE_FCHOWNAT +REPLACE_DUP2 +REPLACE_DUP +REPLACE_CLOSE +REPLACE_CHOWN +HAVE_SYS_PARAM_H +HAVE_OS_H +HAVE_DECL_GETUSERSHELL +HAVE_DECL_GETPAGESIZE +HAVE_DECL_GETLOGIN_R +HAVE_DECL_ENVIRON +HAVE_USLEEP +HAVE_UNLINKAT +HAVE_TTYNAME_R +HAVE_SYMLINKAT +HAVE_SYMLINK +HAVE_SLEEP +HAVE_READLINKAT +HAVE_READLINK +HAVE_PWRITE +HAVE_PREAD +HAVE_PIPE2 +HAVE_LINKAT +HAVE_LINK +HAVE_LCHOWN +HAVE_GETPAGESIZE +HAVE_GETLOGIN +HAVE_GETHOSTNAME +HAVE_GETGROUPS +HAVE_GETDTABLESIZE +HAVE_GETDOMAINNAME +HAVE_FTRUNCATE +HAVE_FSYNC +HAVE_FCHOWNAT +HAVE_FCHDIR +HAVE_FACCESSAT +HAVE_EUIDACCESS +HAVE_DUP3 +HAVE_DUP2 +HAVE_CHOWN +GNULIB_WRITE +GNULIB_USLEEP +GNULIB_UNLINKAT +GNULIB_UNLINK +GNULIB_UNISTD_H_SIGPIPE +GNULIB_UNISTD_H_GETOPT +GNULIB_TTYNAME_R +GNULIB_SYMLINKAT +GNULIB_SYMLINK +GNULIB_SLEEP +GNULIB_RMDIR +GNULIB_READLINKAT +GNULIB_READLINK +GNULIB_PWRITE +GNULIB_PREAD +GNULIB_PIPE2 +GNULIB_LSEEK +GNULIB_LINKAT +GNULIB_LINK +GNULIB_LCHOWN +GNULIB_GETUSERSHELL +GNULIB_GETPAGESIZE +GNULIB_GETLOGIN_R +GNULIB_GETLOGIN +GNULIB_GETHOSTNAME +GNULIB_GETGROUPS +GNULIB_GETDTABLESIZE +GNULIB_GETDOMAINNAME +GNULIB_GETCWD +GNULIB_FTRUNCATE +GNULIB_FSYNC +GNULIB_FCHOWNAT +GNULIB_FCHDIR +GNULIB_FACCESSAT +GNULIB_EUIDACCESS +GNULIB_ENVIRON +GNULIB_DUP3 +GNULIB_DUP2 +GNULIB_CLOSE +GNULIB_CHOWN +REPLACE_UNSETENV +REPLACE_STRTOD +REPLACE_SETENV +REPLACE_REALPATH +REPLACE_PUTENV +REPLACE_MKSTEMP +REPLACE_CANONICALIZE_FILE_NAME +HAVE_UNSETENV +HAVE_UNLOCKPT +HAVE_SYS_LOADAVG_H +HAVE_STRUCT_RANDOM_DATA +HAVE_STRTOULL +HAVE_STRTOLL +HAVE_STRTOD +HAVE_SETENV +HAVE_RPMATCH +HAVE_REALPATH +HAVE_REALLOC_POSIX +HAVE_RANDOM_R +HAVE_PTSNAME +HAVE_MKSTEMPS +HAVE_MKSTEMP +HAVE_MKOSTEMPS +HAVE_MKOSTEMP +HAVE_MKDTEMP HAVE_MALLOC_POSIX -GNULIB_MALLOC_POSIX +HAVE_GRANTPT +HAVE_GETSUBOPT +HAVE_DECL_GETLOADAVG +HAVE_CANONICALIZE_FILE_NAME +HAVE_CALLOC_POSIX +HAVE_ATOLL +GNULIB_UNSETENV +GNULIB_UNLOCKPT +GNULIB_STRTOULL +GNULIB_STRTOLL +GNULIB_STRTOD +GNULIB_SETENV +GNULIB_RPMATCH +GNULIB_REALPATH GNULIB_REALLOC_POSIX -GNULIB_CALLOC_POSIX -GNULIB_GETSUBOPT -GNULIB_MKDTEMP -GNULIB_MKSTEMP +GNULIB_RANDOM_R GNULIB_PUTENV -HAVE_CALLOC_POSIX -HAVE_GETSUBOPT -HAVE_MKDTEMP -HAVE_REALLOC_POSIX -REPLACE_MKSTEMP -REPLACE_PUTENV -GNULIB_MEMMEM -GNULIB_MEMPCPY -GNULIB_MEMRCHR -GNULIB_STPCPY -GNULIB_STPNCPY -GNULIB_STRCHRNUL -GNULIB_STRDUP -GNULIB_STRNDUP -GNULIB_STRNLEN -GNULIB_STRPBRK -GNULIB_STRSEP -GNULIB_STRCASESTR -GNULIB_STRTOK_R -GNULIB_MBSLEN -GNULIB_MBSNLEN -GNULIB_MBSCHR -GNULIB_MBSRCHR -GNULIB_MBSSTR -GNULIB_MBSCASECMP -GNULIB_MBSNCASECMP -GNULIB_MBSPCASECMP -GNULIB_MBSCASESTR -GNULIB_MBSCSPN -GNULIB_MBSPBRK -GNULIB_MBSSPN -GNULIB_MBSSEP -GNULIB_MBSTOK_R -GNULIB_STRERROR -HAVE_DECL_MEMMEM -HAVE_MEMPCPY -HAVE_DECL_MEMRCHR -HAVE_STPCPY -HAVE_STPNCPY -HAVE_STRCASECMP -HAVE_DECL_STRNCASECMP -HAVE_STRCHRNUL -HAVE_DECL_STRDUP -HAVE_STRNDUP -HAVE_DECL_STRNDUP -HAVE_DECL_STRNLEN -HAVE_STRPBRK -HAVE_STRSEP -HAVE_STRCASESTR -HAVE_DECL_STRTOK_R -HAVE_DECL_STRERROR -REPLACE_STRERROR -LOCALE_FR_UTF8 -LOCALE_ZH_CN -NO_CXX -OPENMP_CFLAGS -GNULIB_CHOWN -GNULIB_DUP2 -GNULIB_FCHDIR -GNULIB_FTRUNCATE -GNULIB_GETCWD -GNULIB_GETLOGIN_R -GNULIB_LCHOWN -GNULIB_LSEEK -GNULIB_READLINK -GNULIB_SLEEP -HAVE_DUP2 -HAVE_FTRUNCATE -HAVE_READLINK -HAVE_SLEEP -HAVE_DECL_GETLOGIN_R -REPLACE_CHOWN -REPLACE_FCHDIR -REPLACE_GETCWD -REPLACE_LCHOWN -REPLACE_LSEEK -RELOCATABLE -RELOCATABLE_LDFLAGS -INSTALL_PROGRAM_ENV -RELOCATABLE_VIA_LD_TRUE -RELOCATABLE_VIA_LD_FALSE -RELOCATABLE_LIBRARY_PATH -RELOCATABLE_CONFIG_H_DIR -RELOCATABLE_SRC_DIR -RELOCATABLE_BUILD_DIR -GNULIB_SIGPROCMASK -HAVE_POSIX_SIGNALBLOCKING -HAVE_SIGSET_T -NEXT_SIGNAL_H -STDBOOL_H -HAVE__BOOL -HAVE_LONG_LONG_INT -HAVE_UNSIGNED_LONG_LONG_INT -HAVE_INTTYPES_H -HAVE_SYS_TYPES_H -NEXT_STDINT_H -HAVE_STDINT_H -HAVE_SYS_INTTYPES_H -HAVE_SYS_BITYPES_H -BITSIZEOF_PTRDIFF_T -BITSIZEOF_SIG_ATOMIC_T -BITSIZEOF_SIZE_T -BITSIZEOF_WCHAR_T -BITSIZEOF_WINT_T -HAVE_SIGNED_SIG_ATOMIC_T -HAVE_SIGNED_WCHAR_T -HAVE_SIGNED_WINT_T -PTRDIFF_T_SUFFIX -SIG_ATOMIC_T_SUFFIX -SIZE_T_SUFFIX -WCHAR_T_SUFFIX -WINT_T_SUFFIX -STDINT_H -NEXT_STDIO_H -NEXT_STDLIB_H -NEXT_STRING_H -HAVE_LSTAT -HAVE_DECL_MKDIR -HAVE_IO_H -NEXT_SYS_STAT_H -SYS_STAT_H -LIBTERMINFO -LTLIBTERMINFO -INCTERMINFO -NEXT_UNISTD_H -HAVE_UNISTD_H -EOVERFLOW -GNULIB_WCWIDTH -HAVE_DECL_WCWIDTH -REPLACE_WCWIDTH -WCHAR_H -HAVE_WCHAR_H -NEXT_WCHAR_H -HAVE_ISWCNTRL -HAVE_WINT_T -NEXT_WCTYPE_H -HAVE_WCTYPE_H -WCTYPE_H -LIBGREPOBJS -WOE32DLL_TRUE -WOE32DLL_FALSE -LIBEXPAT -LTLIBEXPAT -HAVE_LIBEXPAT -LIBEXPAT_PREFIX -NM -GLOBAL_SYMBOL_PIPE -HAVE_GLOBAL_SYMBOL_PIPE -EMACS -EMACSLOADPATH -lispdir -aclocaldir -DVIPS -TEXI2PDF -PERL -CROSS_COMPILING -LOCALE_JA -TESTLIBASPRINTF -subdirs -LIBOBJS -LTLIBOBJS -gl_LIBOBJS -gl_LTLIBOBJS -gtpo_LIBOBJS -gtpo_LTLIBOBJS' -ac_subst_files='relocatable_sh' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -YACC -YFLAGS -GCJ -GCJFLAGS -CPP -CXX -CXXFLAGS -CCC -CXXCPP -F77 -FFLAGS -EMACS -EMACSLOADPATH' -ac_subdirs_all='examples' - -# Initialize some variables set by options. +GNULIB_PTSNAME +GNULIB_MKSTEMPS +GNULIB_MKSTEMP +GNULIB_MKOSTEMPS +GNULIB_MKOSTEMP +GNULIB_MKDTEMP +GNULIB_MALLOC_POSIX +GNULIB_GRANTPT +GNULIB_GETSUBOPT +GNULIB_GETLOADAVG +GNULIB_CANONICALIZE_FILE_NAME +GNULIB_CALLOC_POSIX +GNULIB_ATOLL +BYTESWAP_H +ALLOCA_H +USE_ACL +LIB_ACL +GL_COND_LIBTOOL_FALSE +GL_COND_LIBTOOL_TRUE +MSGMERGE_LIBM +BISON_LOCALEDIR +POSUB +LTLIBINTL +LIBINTL +INTLLIBS +INTL_LIBTOOL_SUFFIX_PREFIX +INTLOBJS +GENCAT +INSTOBJEXT +DATADIRNAME +CATOBJEXT +USE_INCLUDED_LIBINTL +BUILD_INCLUDED_LIBINTL +LTLIBC +WINDRES +WOE32 +WOE32DLL +HAVE_WPRINTF +HAVE_NEWLOCALE +HAVE_SNPRINTF +HAVE_ASPRINTF +HAVE_POSIX_PRINTF +INTL_DEFAULT_VERBOSITY +INTL_MACOSX_LIBS +GLIBC21 +INTLBISON +LTLIBICONV +LIBICONV +LTLIBMULTITHREAD +LIBMULTITHREAD +LTLIBTHREAD +LIBTHREAD +LIBPTH_PREFIX +LTLIBPTH +LIBPTH +PRI_MACROS_BROKEN +ALLOCA +HAVE_VISIBILITY +CFLAG_VISIBILITY +GLIBC2 +XGETTEXT_EXTRA_OPTIONS +MSGMERGE +XGETTEXT_015 +XGETTEXT +GMSGFMT_015 +MSGFMT_015 +GMSGFMT +MSGFMT +GETTEXT_MACRO_VERSION +USE_NLS +WOE32_FALSE +WOE32_TRUE +LTNOUNDEF +RC +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +lt_ECHO +AR +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +LIBTOOL +OBJDUMP +DLLTOOL +AS +RANLIB +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +TESTCSHARP +HAVE_CLIX +HAVE_MONO +HAVE_ILRUN +CLIX_PATH +CLIX_PATH_VAR +MONO_PATH_SEPARATOR +MONO_PATH +HAVE_CLIX_IN_PATH +HAVE_MONO_IN_PATH +HAVE_ILRUN_IN_PATH +BUILDCSHARP +CSHARPCOMPFLAGS +HAVE_CSC +HAVE_MCS +HAVE_CSCC +HAVE_CSC_IN_PATH +HAVE_MCS_IN_PATH +HAVE_CSCC_IN_PATH +CSHARP_CHOICE +TESTJAVA +BUILDJAVA +JAR +HAVE_JIKES +HAVE_JAVAC +HAVE_GCJ_C +HAVE_JAVAC_ENVVAR +CONF_JAVAC +HAVE_JIKES_IN_PATH +HAVE_JAVAC_IN_PATH +HAVE_GCJ_IN_PATH +HAVE_JVIEW +HAVE_JRE +HAVE_JAVA +HAVE_GIJ +HAVE_JAVA_ENVVAR +CLASSPATH_SEPARATOR +CLASSPATH +CONF_JAVA +HAVE_JVIEW_IN_PATH +HAVE_JRE_IN_PATH +HAVE_JAVA_IN_PATH +HAVE_GIJ_IN_PATH +EGREP +GREP +CPP +BUILDJAVAEXE +HAVE_GCJ +GCJFLAGS +GCJ +JAVA_CHOICE +YFLAGS +YACC +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='relocatable_sh' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_dependency_tracking +enable_java +enable_native_java +enable_csharp +enable_threads +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +enable_libtool_lock +enable_nls +enable_rpath +with_libpth_prefix +with_libiconv_prefix +with_included_gettext +with_libintl_prefix +enable_acl +with_included_glib +with_libglib_20_prefix +with_included_libcroco +with_libcroco_06_prefix +with_included_libunistring +with_libunistring_prefix +with_included_libxml +with_libxml2_prefix +enable_openmp +enable_relocatable +enable_largefile +enable_curses +with_libncurses_prefix +with_libtermcap_prefix +with_libxcurses_prefix +with_libcurses_prefix +with_included_regex +with_libexpat_prefix +with_lispdir +with_emacs +with_git +with_cvs +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +YACC +YFLAGS +GCJ +GCJFLAGS +CPP +EMACS +EMACSLOADPATH +CXX +CXXFLAGS +CCC +CXXCPP' +ac_subdirs_all='examples' + +# Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -1283,1947 +1764,10921 @@ x_includes=NONE x_libraries=NONE -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-java do not build Java sources + --disable-native-java do not compile Java to native executables + --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) + --enable-threads={posix|solaris|pth|win32} + specify multithreading API + --disable-threads build without multithread safety + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --disable-nls do not use Native Language Support + --disable-rpath do not hardcode runtime library paths + --disable-acl do not support ACLs + --disable-openmp do not use OpenMP + --enable-relocatable install a package that can be moved in the file + system + --disable-largefile omit support for large files + --disable-curses do not use libncurses, libtermcap even if they exist + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib + --without-libpth-prefix don't search for libpth in includedir and libdir + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib + --without-libiconv-prefix don't search for libiconv in includedir and libdir + --with-included-gettext use the GNU gettext library included here + --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib + --without-libintl-prefix don't search for libintl in includedir and libdir + --with-included-glib use the glib2 included here + --with-libglib-2.0-prefix[=DIR] search for libglib-2.0 in DIR/include and DIR/lib + --without-libglib-2.0-prefix don't search for libglib-2.0 in includedir and libdir + --with-included-libcroco use the libcroco included here + --with-libcroco-0.6-prefix[=DIR] search for libcroco-0.6 in DIR/include and DIR/lib + --without-libcroco-0.6-prefix don't search for libcroco-0.6 in includedir and libdir + --with-included-libunistring use the libunistring parts included here + --with-libunistring-prefix[=DIR] search for libunistring in DIR/include and DIR/lib + --without-libunistring-prefix don't search for libunistring in includedir and libdir + --with-included-libxml use the libxml2 included here + --with-libxml2-prefix[=DIR] search for libxml2 in DIR/include and DIR/lib + --without-libxml2-prefix don't search for libxml2 in includedir and libdir + --with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib + --without-libncurses-prefix don't search for libncurses in includedir and libdir + --with-libtermcap-prefix[=DIR] search for libtermcap in DIR/include and DIR/lib + --without-libtermcap-prefix don't search for libtermcap in includedir and libdir + --with-libxcurses-prefix[=DIR] search for libxcurses in DIR/include and DIR/lib + --without-libxcurses-prefix don't search for libxcurses in includedir and libdir + --with-libcurses-prefix[=DIR] search for libcurses in DIR/include and DIR/lib + --without-libcurses-prefix don't search for libcurses in includedir and libdir + --without-included-regex + don't compile regex; this is the default on systems + with recent-enough versions of the GNU C Library + (use with caution on other systems). + --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib + --without-libexpat-prefix don't search for libexpat in includedir and libdir + --with-lispdir override the default lisp directory + --without-emacs do not use Emacs, don't install po-mode + --without-git don't use git to compress the infrastructure archive + --with-cvs use cvs to compress the infrastructure archive + (deprecated) + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + YACC The `Yet Another C Compiler' implementation to use. Defaults to + the first program found out of: `bison -y', `byacc', `yacc'. + YFLAGS The list of arguments that will be passed by default to $YACC. + This script will default YFLAGS to the empty string to avoid a + default value of `-d' given by some make applications. + GCJ Java native code compiler command + GCJFLAGS Java native code compiler flags + CPP C preprocessor + EMACS the Emacs editor command + EMACSLOADPATH + the Emacs library search path + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +configure +generated by GNU Autoconf 2.65 + +Copyright (C) 2009 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_func + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_type + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if test "$cross_compiling" = yes; then + # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=0 ac_mid=0 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid; break +else + as_fn_arith $ac_mid + 1 && ac_lo=$as_val + if test $ac_lo -le $ac_mid; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=-1 ac_mid=-1 + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_lo=$ac_mid; break +else + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val + if test $ac_mid -le $ac_hi; then + ac_lo= ac_hi= + break + fi + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + done +else + ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_hi=$ac_mid +else + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include +#include +int +main () +{ + + FILE *f = fopen ("conftest.val", "w"); + if (! f) + return 1; + if (($2) < 0) + { + long int i = longval (); + if (i != ($2)) + return 1; + fprintf (f, "%ld", i); + } + else + { + unsigned long int i = ulongval (); + if (i != ($2)) + return 1; + fprintf (f, "%lu", i); + } + /* Do not output a trailing newline, as this causes \r\n confusion + on some platforms. */ + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + echo >>conftest.val; read $3 &5 +$as_echo_n "checking whether $2 is declared... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +#ifndef $2 + (void) $2; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_decl + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$4=yes" +else + eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_member + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +gt_needs="$gt_needs need-ngettext" +gl_header_list="$gl_header_list stdlib.h" +gl_header_list="$gl_header_list unistd.h" +gl_header_list="$gl_header_list sys/param.h" +gl_header_list="$gl_header_list string.h" +gl_func_list="$gl_func_list canonicalize_file_name" +gl_func_list="$gl_func_list getcwd" +gl_func_list="$gl_func_list readlink" +gl_func_list="$gl_func_list realpath" +gl_header_list="$gl_header_list utime.h" +gl_func_list="$gl_func_list dup2" +gl_header_list="$gl_header_list errno.h" +gl_func_list="$gl_func_list fcntl" +gl_header_list="$gl_header_list fcntl.h" +gl_header_list="$gl_header_list float.h" +gl_func_list="$gl_func_list btowc" +gl_func_list="$gl_func_list isblank" +gl_func_list="$gl_func_list iswctype" +gl_func_list="$gl_func_list mbsrtowcs" +gl_func_list="$gl_func_list mempcpy" +gl_func_list="$gl_func_list wmemchr" +gl_func_list="$gl_func_list wmemcpy" +gl_func_list="$gl_func_list wmempcpy" +gl_header_list="$gl_header_list wctype.h" +gl_func_list="$gl_func_list getdelim" +gl_func_list="$gl_func_list getdtablesize" +gl_getopt_required=GNU +gl_header_list="$gl_header_list getopt.h" +gl_header_list="$gl_header_list sys/time.h" +gl_func_list="$gl_func_list gettimeofday" +gl_header_list="$gl_header_list iconv.h" +gl_header_list="$gl_header_list libcroco-0.6/libcroco/libcroco-config.h" +gl_header_list="$gl_header_list libxml2/libxml/xmlexports.h" +gl_header_list="$gl_header_list libxml2/libxml/xmlversion.h" +gl_header_list="$gl_header_list stddef.h" +gl_header_list="$gl_header_list xlocale.h" +gl_header_list="$gl_header_list locale.h" +gl_func_list="$gl_func_list lstat" +gl_func_list="$gl_func_list mbsinit" +gl_func_list="$gl_func_list mbrtowc" +gl_func_list="$gl_func_list mbslen" +gl_header_list="$gl_header_list wchar.h" +gl_func_list="$gl_func_list isascii" +gl_header_list="$gl_header_list sys/mman.h" +gl_func_list="$gl_func_list mprotect" +gl_func_list="$gl_func_list memchr" +gl_func_list="$gl_func_list pathconf" +gl_func_list="$gl_func_list select" +gl_func_list="$gl_func_list pipe2" +gl_func_list="$gl_func_list posix_spawn" +gl_func_list="$gl_func_list setenv" +gl_header_list="$gl_header_list sys/socket.h" +gl_header_list="$gl_header_list sched.h" +gl_func_list="$gl_func_list sigaction" +gl_func_list="$gl_func_list sigaltstack" +gl_func_list="$gl_func_list siginterrupt" +gl_header_list="$gl_header_list signal.h" +gl_header_list="$gl_header_list spawn.h" +gl_header_list="$gl_header_list stdarg.h" +gl_header_list="$gl_header_list stdint.h" +gl_header_list="$gl_header_list stdio.h" +gl_func_list="$gl_func_list stpncpy" +gl_header_list="$gl_header_list sys/select.h" +gl_header_list="$gl_header_list sys/stat.h" +gl_header_list="$gl_header_list sys/wait.h" +gl_header_list="$gl_header_list time.h" +gl_func_list="$gl_func_list pipe" +gl_func_list="$gl_func_list vasnprintf" +gl_func_list="$gl_func_list iswcntrl" +gl_func_list="$gl_func_list iswblank" +gl_func_list="$gl_func_list wcwidth" +gl_func_list="$gl_func_list newlocale" +gl_func_list="$gl_func_list symlink" +gl_func_list="$gl_func_list shutdown" +gl_func_list="$gl_func_list wctob" +gl_header_list="$gl_header_list langinfo.h" +gl_func_list="$gl_func_list nl_langinfo" +gl_func_list="$gl_func_list wcscoll" +gl_func_list="$gl_func_list wcrtomb" +gl_func_list="$gl_func_list getrlimit" +gl_func_list="$gl_func_list setrlimit" +gl_func_list="$gl_func_list uselocale" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_aux_dir= +for ac_dir in ../build-aux "$srcdir"/../build-aux; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +. $srcdir/../version.sh + + + + + + +am__api_version='1.11' + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=1;; +esac +AM_BACKSLASH='\' + + + + if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='' + VERSION='' + + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + PACKAGE=gettext-tools + + VERSION=$VERSION_NUMBER + + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + + + +ac_config_headers="$ac_config_headers config.h" + + +test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +for ac_prog in 'bison -y' byacc +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_YACC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_YACC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +YACC=$ac_cv_prog_YACC +if test -n "$YACC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 +$as_echo "$YACC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 +$as_echo_n "checking whether to use Java... " >&6; } + # Check whether --enable-java was given. +if test "${enable_java+set}" = set; then : + enableval=$enable_java; JAVA_CHOICE="$enableval" +else + JAVA_CHOICE=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 +$as_echo "$JAVA_CHOICE" >&6; } + if test "$JAVA_CHOICE" = yes; then + # Check whether --enable-native-java was given. +if test "${enable_native_java+set}" = set; then : + enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode +fi + + fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5 +$as_echo_n "checking for Java to native code compiler... " >&6; } + # Search for the gcj command or use the one provided by the user. + if test -z "$GCJ"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcj; ac_word=$2 +: +if test "${ac_cv_prog_GCJ+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$GCJ"; then + ac_cv_prog_GCJ="$GCJ" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_GCJ="${ac_tool_prefix}gcj" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +GCJ=$ac_cv_prog_GCJ +if test -n "$GCJ"; then + : +else + : +fi + + +fi +if test -z "$ac_cv_prog_GCJ"; then + ac_ct_GCJ=$GCJ + # Extract the first word of "gcj", so it can be a program name with args. +set dummy gcj; ac_word=$2 +: +if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_GCJ"; then + ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_GCJ="gcj" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ +if test -n "$ac_ct_GCJ"; then + : +else + : +fi + + if test "x$ac_ct_GCJ" = x; then + GCJ="none" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + GCJ=$ac_ct_GCJ + fi +else + GCJ="$ac_cv_prog_GCJ" +fi + + fi + # Choose GCJFLAGS or use the one provided by the user. + if test "$GCJ" != none; then + test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g" + fi + # Check whether the version is ok and it can create executables. + ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext" + if test "$GCJ" != none \ + && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \ + && ( + # See if libgcj.so is well installed and if exception handling works. + cat > conftest.java <&5 + (eval $ac_gcj_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + error=$? + if test $error = 0 && test "$cross_compiling" != yes; then + # Run conftest and catch its exit status, but silently. + error=`./conftest >/dev/null 2>&1; echo $?` + test $error = 0 || error=1 + rm -f core conftest.core + fi + rm -f conftest.java conftest$ac_exeext + exit $error + ); then + : + else + GCJ=none + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 +$as_echo "$GCJ" >&6; } + if test "$GCJ" != none; then + HAVE_GCJ=1 + else + HAVE_GCJ= + fi + + + + +if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then + BUILDJAVAEXE=yes +else + BUILDJAVAEXE=no +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java virtual machine" >&5 +$as_echo_n "checking for Java virtual machine... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + CLASSPATH_SEPARATOR=';' +else + CLASSPATH_SEPARATOR=':' +fi +rm -f conftest* + + CONF_JAVA= + HAVE_JAVA_ENVVAR= + HAVE_GIJ= + HAVE_JAVA= + HAVE_JRE= + HAVE_JVIEW= + HAVE_JAVAEXEC=1 + if test -n "$JAVA"; then + HAVE_JAVA_ENVVAR=1 + CONF_JAVA="$JAVA" + else + # Extract the first word of "gij", so it can be a program name with args. +set dummy gij; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_GIJ_IN_PATH"; then + ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_GIJ_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH +if test -n "$HAVE_GIJ_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "java", so it can be a program name with args. +set dummy java; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JAVA_IN_PATH"; then + ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JAVA_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH +if test -n "$HAVE_JAVA_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "jre", so it can be a program name with args. +set dummy jre; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JRE_IN_PATH"; then + ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JRE_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH +if test -n "$HAVE_JRE_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "jview", so it can be a program name with args. +set dummy jview; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JVIEW_IN_PATH"; then + ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JVIEW_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH +if test -n "$HAVE_JVIEW_IN_PATH"; then + : +else + : +fi + + + + export CLASSPATH + if test -n "$HAVE_GIJ_IN_PATH" \ + && gij --version >/dev/null 2>/dev/null \ + ; then + HAVE_GIJ=1 + CONF_JAVA="gij" + else + if test -n "$HAVE_JAVA_IN_PATH" \ + && java -version >/dev/null 2>/dev/null \ + ; then + HAVE_JAVA=1 + CONF_JAVA="java" + else + if test -n "$HAVE_JRE_IN_PATH" \ + && (jre >/dev/null 2>/dev/null || test $? = 1) \ + ; then + HAVE_JRE=1 + CONF_JAVA="jre" + else + if test -n "$HAVE_JVIEW_IN_PATH" \ + && (jview -? >/dev/null 2>/dev/null || test $? = 1) \ + ; then + HAVE_JVIEW=1 + CONF_JAVA="jview" + else + HAVE_JAVAEXEC= + fi + fi + fi + fi + + fi + if test -n "$HAVE_JAVAEXEC"; then + ac_result="$CONF_JAVA" + else + ac_result="no" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } + + + + + + + + + + + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + CLASSPATH_SEPARATOR=';' +else + CLASSPATH_SEPARATOR=':' +fi +rm -f conftest* + + source_version=1.3 + test -n "$source_version" || { + as_fn_error "missing source-version argument to gt_JAVACOMP" "$LINENO" 5 + } + if test -n "$HAVE_JAVAEXEC"; then + cat > conftestver.java <"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \ + | tr -d '\012\015' \ + | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ + > conftestver.class + target_version=`{ + unset JAVA_HOME + echo "$as_me:6019: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5 + CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5 + }` + case "$target_version" in + 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;; + null) + target_version=1.1 ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5 +$as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;} + target_version=1.1 ;; + esac + else + target_version="1.1" + fi + + case "$source_version" in + 1.3) goodcode='class conftest {}' + failcode='class conftestfail { static { assert(true); } }' ;; + 1.4) goodcode='class conftest { static { assert(true); } }' + failcode='class conftestfail { T foo() { return null; } }' ;; + 1.5) goodcode='class conftest { T foo() { return null; } }' + failcode='class conftestfail syntax error' ;; + *) as_fn_error "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;; + esac + case "$target_version" in + 1.1) cfversion=45 ;; + 1.2) cfversion=46 ;; + 1.3) cfversion=47 ;; + 1.4) cfversion=48 ;; + 1.5) cfversion=49 ;; + 1.6) cfversion=50 ;; + *) as_fn_error "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;; + esac + # Function to output the classfile version of a file (8th byte) in decimal. + if od -A x < /dev/null >/dev/null 2>/dev/null; then + # Use POSIX od. + func_classfile_version () + { + od -A n -t d1 -j 7 -N 1 "$1" + } + else + # Use BSD hexdump. + func_classfile_version () + { + dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' + echo + } + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5 +$as_echo_n "checking for Java compiler... " >&6; } + CONF_JAVAC= + HAVE_JAVAC_ENVVAR= + HAVE_GCJ_C= + HAVE_JAVAC= + HAVE_JIKES= + HAVE_JAVACOMP= + cat > conftestlib.java < conftest.java + echo "$failcode" > conftestfail.java + if test -n "$JAVAC"; then + if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then + if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then + rm -f conftest.class + if { echo "$as_me:6087: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6094: $JAVAC -fsource=$source_version -d . conftest.java" >&5 + $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6099: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6103: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5 + $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -fsource=$source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6117: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 + $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.4; then + rm -f conftest.class + if { echo "$as_me:6130: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.3; then + javac_works= + rm -f conftest.class + if { echo "$as_me:6142: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + javac_works=1 + fi + javac_noassert_works= + rm -f conftest.class + if { echo "$as_me:6150: $JAVAC -fno-assert -d . conftest.java" >&5 + $JAVAC -fno-assert -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + javac_noassert_works=1 + fi + if test -n "$javac_works" && test -n "$javac_noassert_works"; then + rm -f conftestfail.class + if { echo "$as_me:6158: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6162: $JAVAC -fno-assert -d . conftestfail.java" >&5 + $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 + }; then + javac_works= + fi + fi + if test -n "$javac_works"; then + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + if test -n "$javac_noassert_works"; then + CONF_JAVAC="$JAVAC -fno-assert" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + else + rm -f conftest.class + if { echo "$as_me:6184: $JAVAC -d . conftest.java" >&5 + $JAVAC -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6191: $JAVAC -source $source_version -d . conftest.java" >&5 + $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6196: $JAVAC -d . conftestfail.java" >&5 + $JAVAC -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6200: $JAVAC -source $source_version -d . conftestfail.java" >&5 + $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:6213: $JAVAC -target $target_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6220: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6225: $JAVAC -target $target_version -d . conftestfail.java" >&5 + $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6229: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="$JAVAC -target $target_version -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="$JAVAC -target $target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:6242: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 + $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="$JAVAC -target $target_version -source $source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP"; then + # Extract the first word of "gcj", so it can be a program name with args. +set dummy gcj; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_GCJ_IN_PATH"; then + ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_GCJ_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH +if test -n "$HAVE_GCJ_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "javac", so it can be a program name with args. +set dummy javac; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JAVAC_IN_PATH"; then + ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH +if test -n "$HAVE_JAVAC_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "jikes", so it can be a program name with args. +set dummy jikes; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_JIKES_IN_PATH"; then + ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_JIKES_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH +if test -n "$HAVE_JIKES_IN_PATH"; then + : +else + : +fi + + + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then + if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then + if { echo "$as_me:6360: gcj -C -d . conftestlib.java" >&5 + gcj -C -d . conftestlib.java >&5 2>&1 + }; then + if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then + rm -f conftest.class + if { echo "$as_me:6365: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6372: gcj -C -fsource=$source_version -d . conftest.java" >&5 + gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6377: gcj -C -d . conftestfail.java" >&5 + gcj -C -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6381: gcj -C -fsource=$source_version -d . conftestfail.java" >&5 + gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="gcj -C -fsource=$source_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="gcj -C" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6395: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 + gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version" + HAVE_JAVAC_ENVVAR=1 + HAVE_JAVACOMP=1 + fi + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.4; then + rm -f conftest.class + if { echo "$as_me:6408: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + fi + else + if test "$target_version" = 1.4 && test "$source_version" = 1.3; then + rm -f conftest.class + if { echo "$as_me:6419: gcj -C -fno-assert -d . conftest.java" >&5 + gcj -C -fno-assert -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C -fno-assert" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + else + rm -f conftest.class + if { echo "$as_me:6428: gcj -C -d . conftest.java" >&5 + gcj -C -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class; then + CONF_JAVAC="gcj -C" + HAVE_GCJ_C=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then + if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ + && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then + rm -f conftest.class + if { echo "$as_me:6447: javac -d . conftest.java" >&5 + javac -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6454: javac -source $source_version -d . conftest.java" >&5 + javac -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6459: javac -d . conftestfail.java" >&5 + javac -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6463: javac -source $source_version -d . conftestfail.java" >&5 + javac -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="javac -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="javac" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:6476: javac -target $target_version -d . conftest.java" >&5 + javac -target "$target_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + rm -f conftest.class + rm -f conftestfail.class + if { echo "$as_me:6483: javac -target $target_version -source $source_version -d . conftest.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ + && { echo "$as_me:6488: javac -target $target_version -d . conftestfail.java" >&5 + javac -target "$target_version" -d . conftestfail.java >&5 2>&1 + } \ + && test -f conftestfail.class \ + && ! { echo "$as_me:6492: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 + }; then + CONF_JAVAC="javac -target $target_version -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + else + CONF_JAVAC="javac -target $target_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + else + rm -f conftest.class + if { echo "$as_me:6505: javac -target $target_version -source $source_version -d . conftest.java" >&5 + javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 + } \ + && test -f conftest.class \ + && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then + CONF_JAVAC="javac -target $target_version -source $source_version" + HAVE_JAVAC=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + fi + if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then + if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ + && ( + # See if the existing CLASSPATH is sufficient to make jikes work. + unset JAVA_HOME + jikes conftestlib.java >&5 2>&1 + error=$? + rm -f conftestlib.class + exit $error + ); then + if test "$source_version" = 1.3; then + CONF_JAVAC="jikes" + HAVE_JIKES=1 + HAVE_JAVACOMP=1 + fi + fi + fi + fi + rm -f conftest*.java conftest*.class + if test -n "$HAVE_JAVACOMP"; then + ac_result="$CONF_JAVAC" + else + ac_result="no" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } + + + + + + + + +# Extract the first word of "jar", so it can be a program name with args. +set dummy jar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_JAR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$JAR"; then + ac_cv_prog_JAR="$JAR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_JAR="jar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +JAR=$ac_cv_prog_JAR +if test -n "$JAR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 +$as_echo "$JAR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then + BUILDJAVA=yes +else + BUILDJAVA=no +fi + +if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then + TESTJAVA=yes +else + TESTJAVA=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5 +$as_echo_n "checking for preferred C# implementation... " >&6; } + # Check whether --enable-csharp was given. +if test "${enable_csharp+set}" = set; then : + enableval=$enable_csharp; CSHARP_CHOICE="$enableval" +else + CSHARP_CHOICE=any +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5 +$as_echo "$CSHARP_CHOICE" >&6; } + case "$CSHARP_CHOICE" in + pnet) + +$as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h + + ;; + mono) + +$as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h + + ;; + esac + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5 +$as_echo_n "checking for C# compiler... " >&6; } + HAVE_CSHARPCOMP=1 + # Extract the first word of "cscc", so it can be a program name with args. +set dummy cscc; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CSCC_IN_PATH"; then + ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_CSCC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH +if test -n "$HAVE_CSCC_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "mcs", so it can be a program name with args. +set dummy mcs; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_MCS_IN_PATH"; then + ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_MCS_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH +if test -n "$HAVE_MCS_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "csc", so it can be a program name with args. +set dummy csc; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CSC_IN_PATH"; then + ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_CSC_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH +if test -n "$HAVE_CSC_IN_PATH"; then + : +else + : +fi + + + for impl in "$CSHARP_CHOICE" pnet mono sscli no; do + case "$impl" in + pnet) + if test -n "$HAVE_CSCC_IN_PATH" \ + && cscc --version >/dev/null 2>/dev/null \ + && ( + # See if pnetlib is well installed. + echo 'class ConfTest { static void Main() { } }' > conftest.cs + cscc -o conftest.exe conftest.cs 2>/dev/null + error=$? + rm -f conftest.cs conftest.exe + exit $error + ); then + HAVE_CSCC=1 + ac_result="cscc" + break + fi + ;; + mono) + if test -n "$HAVE_MCS_IN_PATH" \ + && mcs --version >/dev/null 2>/dev/null \ + && mcs --version 2>/dev/null | grep Mono >/dev/null; then + HAVE_MCS=1 + ac_result="mcs" + break + fi + ;; + sscli) + if test -n "$HAVE_CSC_IN_PATH" \ + && csc -help >/dev/null 2>/dev/null \ + && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then + HAVE_CSC=1 + ac_result="csc" + break + fi + ;; + no) + HAVE_CSHARPCOMP= + ac_result="no" + break + ;; + esac + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } + + + + if test -z "${CSHARPCOMPFLAGS+set}"; then + CSHARPCOMPFLAGS="-O -g" + fi + + +if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then + BUILDCSHARP=yes +else + BUILDCSHARP=no +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5 +$as_echo_n "checking for C# program execution engine... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ + yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + MONO_PATH_SEPARATOR=';' +else + MONO_PATH_SEPARATOR=':' +fi +rm -f conftest* + + HAVE_CSHARPEXEC=1 + # Extract the first word of "ilrun", so it can be a program name with args. +set dummy ilrun; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_ILRUN_IN_PATH"; then + ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_ILRUN_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH +if test -n "$HAVE_ILRUN_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "mono", so it can be a program name with args. +set dummy mono; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_MONO_IN_PATH"; then + ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_MONO_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH +if test -n "$HAVE_MONO_IN_PATH"; then + : +else + : +fi + + + # Extract the first word of "clix", so it can be a program name with args. +set dummy clix; ac_word=$2 +: +if test "${ac_cv_prog_HAVE_CLIX_IN_PATH+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CLIX_IN_PATH"; then + ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAVE_CLIX_IN_PATH="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH +if test -n "$HAVE_CLIX_IN_PATH"; then + : +else + : +fi + + + for impl in "$CSHARP_CHOICE" pnet mono no; do + case "$impl" in + pnet) + if test -n "$HAVE_ILRUN_IN_PATH" \ + && ilrun --version >/dev/null 2>/dev/null \ + && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then + HAVE_ILRUN=1 + ac_result="ilrun" + break + fi + ;; + mono) + if test -n "$HAVE_MONO_IN_PATH" \ + && mono --version >/dev/null 2>/dev/null \ + && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then + HAVE_MONO=1 + ac_result="mono" + break + fi + ;; + sscli) + if test -n "$HAVE_CLIX_IN_PATH" \ + && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then + HAVE_CLIX=1 + case $host_os in + cygwin* | mingw* | pw32*) + CLIX_PATH_VAR=PATH + ;; + darwin* | rhapsody*) + CLIX_PATH_VAR=DYLD_LIBRARY_PATH + ;; + *) + CLIX_PATH_VAR=LD_LIBRARY_PATH + ;; + esac + eval CLIX_PATH=\"\$CLIX_PATH_VAR\" + ac_result="clix" + break + fi + ;; + no) + HAVE_CSHARPEXEC= + ac_result="no" + break + ;; + esac + done + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 +$as_echo "$ac_result" >&6; } + + + + + + + + +if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then + TESTCSHARP=yes +else + TESTCSHARP=no +fi + + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h + +fi + +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + + + + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = x""yes; then : + MINIX=yes +else + MINIX= +fi + + + if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + + fi + + case "$host_os" in + hpux*) + +$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h + + ;; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_safe_to_define___extensions__=yes +else + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } + test $ac_cv_safe_to_define___extensions__ = yes && + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + + + + + + + + case $ac_cv_prog_cc_stdc in #( + no) : + ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( + *) : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 +$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } +if test "${ac_cv_prog_cc_c99+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +#include + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +#define debug(...) fprintf (stderr, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + your preprocessor is broken; +#endif +#if BIG_OK +#else + your preprocessor is broken; +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\0'; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static void +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str; + int number; + float fnumber; + + while (*format) + { + switch (*format++) + { + case 's': // string + str = va_arg (args_copy, const char *); + break; + case 'd': // int + number = va_arg (args_copy, int); + break; + case 'f': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); +} + +int +main () +{ + + // Check bool. + _Bool success = false; + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + test_varargs ("s, d' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' + || dynamic_array[ni.number - 1] != 543); + + ; + return 0; +} +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c99" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c99" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c99" != xno; then : + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 +else + ac_cv_prog_cc_stdc=no +fi + +fi + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 +$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } + if test "${ac_cv_prog_cc_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +fi + + case $ac_cv_prog_cc_stdc in #( + no) : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; #( + '') : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; #( + *) : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 +$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; +esac + + + + + + + # Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; gl_use_threads=$enableval +else + if test -n "$gl_use_threads_default"; then + gl_use_threads="$gl_use_threads_default" + else + case "$host_os" in + osf*) gl_use_threads=no ;; + cygwin*) + case `uname -r` in + 1.[0-5].*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ;; + *) gl_use_threads=yes ;; + esac + fi + +fi + + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # For using : + case "$host_os" in + osf*) + # On OSF/1, the compiler needs the flag -D_REENTRANT so that it + # groks . cc also understands the flag -pthread, but + # we don't use it because 1. gcc-2.95 doesn't understand -pthread, + # 2. putting a flag into CPPFLAGS that has an effect on the linker + # causes the AC_TRY_LINK test below to succeed unexpectedly, + # leading to wrong values of LIBTHREAD and LTLIBTHREAD. + CPPFLAGS="$CPPFLAGS -D_REENTRANT" + ;; + esac + # Some systems optimize for single-threaded programs by default, and + # need special flags to disable these optimizations. For example, the + # definition of 'errno' in . + case "$host_os" in + aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; + solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; + esac + fi + + + + + # Code from module acl: + # Code from module acl-tests: + # Code from module alignof: + # Code from module alignof-tests: + # Code from module alloca-opt: + # Code from module alloca-opt-tests: + # Code from module areadlink: + # Code from module areadlink-tests: + # Code from module arg-nonnull: + # Code from module argmatch: + # Code from module argmatch-tests: + # Code from module array-list: + # Code from module array-list-tests: + # Code from module atexit: + # Code from module atexit-tests: + # Code from module backupfile: + # Code from module basename: + # Code from module binary-io: + # Code from module binary-io-tests: + # Code from module bison-i18n: + # Code from module byteswap: + # Code from module byteswap-tests: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-ctype-tests: + # Code from module c-strcase: + # Code from module c-strcase-tests: + # Code from module c-strcaseeq: + # Code from module c-strcasestr: + # Code from module c-strcasestr-tests: + # Code from module c-strstr: + # Code from module c-strstr-tests: + # Code from module canonicalize-lgpl: + # Code from module canonicalize-lgpl-tests: + # Code from module classpath: + # Code from module clean-temp: + # Code from module cloexec: + # Code from module cloexec-tests: + # Code from module closeout: + # Code from module concat-filename: + # Code from module configmake: + # Code from module copy-file: + # Code from module copy-file-tests: + # Code from module csharpcomp: + # Code from module csharpcomp-script: + # Code from module csharpexec: + # Code from module csharpexec-script: + # Code from module diffseq: + # Code from module double-slash-root: + # Code from module dup2: + # Code from module dup2-tests: + # Code from module environ: + # Code from module environ-tests: + # Code from module errno: + # Code from module errno-tests: + # Code from module error: + # Code from module error-progname: + # Code from module execute: + # Code from module exitfail: + # Code from module extensions: + + # Code from module fatal-signal: + # Code from module fcntl: + # Code from module fcntl-h: + # Code from module fcntl-h-tests: + # Code from module fcntl-tests: + # Code from module fd-ostream: + # Code from module fd-safer-flag: + # Code from module file-ostream: + # Code from module filename: + # Code from module findprog: + # Code from module float: + # Code from module fnmatch: + # Code from module fnmatch-tests: + # Code from module fopen: + # Code from module fopen-tests: + # Code from module fstrcmp: + # Code from module fstrcmp-tests: + # Code from module full-write: + # Code from module fwriteerror: + # Code from module gcd: + # Code from module gcj: + # Code from module getdelim: + # Code from module getdelim-tests: + # Code from module getdtablesize: + # Code from module getdtablesize-tests: + # Code from module getline: + # Code from module getline-tests: + # Code from module getopt-gnu: + # Code from module getopt-posix: + # Code from module getopt-posix-tests: + # Code from module getpagesize: + # Code from module gettext: + # Code from module gettext-h: + # Code from module gettext-tools-misc: + # Code from module gettimeofday: + # Code from module gettimeofday-tests: + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module html-ostream: + # Code from module html-styled-ostream: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv-h-tests: + # Code from module iconv-tests: + # Code from module iconv_open: + # Code from module ignore-value: + # Code from module include_next: + # Code from module inline: + # Code from module intprops: + # Code from module java: + # Code from module javacomp: + # Code from module javacomp-script: + # Code from module javaexec: + # Code from module javaexec-script: + # Code from module javaversion: + # Code from module libcroco: + # Code from module libglib: + # Code from module libunistring-optional: + # Code from module libxml: + # Code from module linkedhash-list: + # Code from module linkedhash-list-tests: + # Code from module list: + # Code from module localcharset: + # Code from module locale: + # Code from module locale-tests: + # Code from module localename: + # Code from module localename-tests: + # Code from module lock: + # Code from module lock-tests: + # Code from module lstat: + # Code from module lstat-tests: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module malloca-tests: + # Code from module mbchar: + # Code from module mbiter: + # Code from module mbrtowc: + # Code from module mbrtowc-tests: + # Code from module mbsinit: + # Code from module mbsinit-tests: + # Code from module mbslen: + # Code from module mbsrtowcs: + # Code from module mbsrtowcs-tests: + # Code from module mbsstr: + # Code from module mbsstr-tests: + # Code from module mbswidth: + # Code from module mbuiter: + # Code from module memchr: + # Code from module memchr-tests: + # Code from module memmove: + # Code from module memset: + # Code from module minmax: + # Code from module mkdtemp: + # Code from module moo: + # Code from module moo-tests: + # Code from module multiarch: + # Code from module no-c++: + # Code from module obstack: + # Code from module open: + # Code from module open-tests: + # Code from module openmp: + # Code from module ostream: + # Code from module pathmax: + # Code from module pipe: + # Code from module pipe-filter-ii: + # Code from module pipe-filter-ii-tests: + # Code from module pipe-tests: + # Code from module pipe2: + # Code from module pipe2-safer: + # Code from module pipe2-tests: + # Code from module posix_spawn-internal: + # Code from module posix_spawn_file_actions_addclose: + # Code from module posix_spawn_file_actions_adddup2: + # Code from module posix_spawn_file_actions_addopen: + # Code from module posix_spawn_file_actions_destroy: + # Code from module posix_spawn_file_actions_init: + # Code from module posix_spawnattr_destroy: + # Code from module posix_spawnattr_init: + # Code from module posix_spawnattr_setflags: + # Code from module posix_spawnattr_setsigmask: + # Code from module posix_spawnp: + # Code from module posix_spawnp-tests: + # Code from module progname: + # Code from module propername: + # Code from module putenv: + # Code from module quote: + # Code from module quotearg: + # Code from module quotearg-simple: + # Code from module quotearg-simple-tests: + # Code from module rawmemchr: + # Code from module rawmemchr-tests: + # Code from module read-file: + # Code from module read-file-tests: + # Code from module readlink: + # Code from module readlink-tests: + # Code from module realloc-posix: + # Code from module relocatable-prog: + # Code from module relocatable-prog-wrapper: + # Code from module relocatable-script: + # Code from module rmdir: + # Code from module rmdir-tests: + # Code from module safe-read: + # Code from module safe-write: + # Code from module same-inode: + # Code from module sched: + # Code from module sched-tests: + # Code from module setenv: + # Code from module setenv-tests: + # Code from module sh-quote: + # Code from module sigaction: + # Code from module sigaction-tests: + # Code from module signal: + # Code from module signal-tests: + # Code from module sigpipe: + # Code from module sigpipe-tests: + # Code from module sigprocmask: + # Code from module size_max: + # Code from module snprintf: + # Code from module snprintf-tests: + # Code from module spawn: + # Code from module spawn-tests: + # Code from module ssize_t: + # Code from module stat: + # Code from module stat-tests: + # Code from module stdarg: + + # Code from module stdbool: + # Code from module stdbool-tests: + # Code from module stddef: + # Code from module stddef-tests: + # Code from module stdint: + # Code from module stdint-tests: + # Code from module stdio: + # Code from module stdio-tests: + # Code from module stdlib: + # Code from module stdlib-tests: + # Code from module stpcpy: + # Code from module stpncpy: + # Code from module strchrnul: + # Code from module strchrnul-tests: + # Code from module strcspn: + # Code from module streq: + # Code from module strerror: + # Code from module strerror-tests: + # Code from module striconv: + # Code from module striconv-tests: + # Code from module striconveh: + # Code from module striconveh-tests: + # Code from module striconveha: + # Code from module striconveha-tests: + # Code from module string: + # Code from module string-tests: + # Code from module strnlen: + # Code from module strnlen1: + # Code from module strpbrk: + # Code from module strstr: + # Code from module strstr-simple: + # Code from module strstr-tests: + # Code from module strtol: + # Code from module strtoul: + # Code from module styled-ostream: + # Code from module symlink: + # Code from module symlink-tests: + # Code from module sys_select: + # Code from module sys_select-tests: + # Code from module sys_socket: + # Code from module sys_socket-tests: + # Code from module sys_stat: + # Code from module sys_stat-tests: + # Code from module sys_time: + # Code from module sys_time-tests: + # Code from module sys_wait: + # Code from module sys_wait-tests: + # Code from module tempname: + # Code from module term-ostream: + # Code from module term-ostream-tests: + # Code from module term-styled-ostream: + # Code from module terminfo: + # Code from module terminfo-h: + # Code from module thread: + # Code from module threadlib: + + + + # Code from module time: + # Code from module time-tests: + # Code from module tls: + # Code from module tls-tests: + # Code from module tmpdir: + # Code from module trim: + # Code from module uniconv/base: + # Code from module uniconv/u8-conv-from-enc: + # Code from module uniconv/u8-conv-from-enc-tests: + # Code from module unilbrk/base: + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: + # Code from module unilbrk/u8-possible-linebreaks-tests: + # Code from module unilbrk/u8-width-linebreaks: + # Code from module unilbrk/u8-width-linebreaks-tests: + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + # Code from module unilbrk/ulc-width-linebreaks-tests: + # Code from module uniname/base: + # Code from module uniname/uniname: + # Code from module uniname/uniname-tests: + # Code from module unistd: + # Code from module unistd-safer: + # Code from module unistd-safer-tests: + # Code from module unistd-tests: + # Code from module unistr/base: + # Code from module unistr/u16-mbtouc: + # Code from module unistr/u16-mbtouc-tests: + # Code from module unistr/u8-check: + # Code from module unistr/u8-check-tests: + # Code from module unistr/u8-cmp: + # Code from module unistr/u8-cmp-tests: + # Code from module unistr/u8-mblen: + # Code from module unistr/u8-mblen-tests: + # Code from module unistr/u8-mbtouc: + # Code from module unistr/u8-mbtouc-tests: + # Code from module unistr/u8-mbtouc-unsafe: + # Code from module unistr/u8-mbtouc-unsafe-tests: + # Code from module unistr/u8-mbtoucr: + # Code from module unistr/u8-mbtoucr-tests: + # Code from module unistr/u8-prev: + # Code from module unistr/u8-prev-tests: + # Code from module unistr/u8-strlen: + # Code from module unistr/u8-strlen-tests: + # Code from module unistr/u8-uctomb: + # Code from module unistr/u8-uctomb-tests: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module uniwidth/width-tests: + # Code from module unlocked-io: + # Code from module unsetenv: + # Code from module unsetenv-tests: + # Code from module unused-parameter: + # Code from module vasnprintf: + # Code from module vasnprintf-tests: + # Code from module vasprintf: + # Code from module vasprintf-tests: + # Code from module verify: + # Code from module verify-tests: + # Code from module vsnprintf: + # Code from module vsnprintf-tests: + # Code from module wait-process: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wchar-tests: + # Code from module wctob: + # Code from module wctype: + # Code from module wctype-tests: + # Code from module wcwidth: + # Code from module wcwidth-tests: + # Code from module write: + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xalloc-die-tests: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xlist: + # Code from module xmalloca: + # Code from module xreadlink: + # Code from module xsetenv: + # Code from module xsize: + # Code from module xstriconv: + # Code from module xstriconveh: + # Code from module xvasprintf: + # Code from module xvasprintf-tests: + # Code from module yield: + + + + # Code from module btowc: + # Code from module c++defs: + # Code from module langinfo: + # Code from module nl_langinfo: + # Code from module regex: + # Code from module warn-on-use: + # Code from module wcrtomb: + + + + + # Code from module alloca-opt: + # Code from module arg-nonnull: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strstr: + # Code from module concat-filename: + # Code from module configmake: + # Code from module diffseq: + # Code from module errno: + # Code from module error: + # Code from module error-progname: + # Code from module exitfail: + # Code from module extensions: + + # Code from module fcntl-h: + # Code from module file-ostream: + # Code from module filename: + # Code from module float: + # Code from module fopen: + # Code from module fstrcmp: + # Code from module fwriteerror: + # Code from module gcd: + # Code from module getdelim: + # Code from module getline: + # Code from module gettext-h: + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv_open: + # Code from module include_next: + # Code from module inline: + # Code from module intprops: + # Code from module libunistring-optional: + # Code from module localcharset: + # Code from module lock: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module mbrtowc: + # Code from module mbsinit: + # Code from module mbswidth: + # Code from module memchr: + # Code from module minmax: + # Code from module moo: + # Code from module multiarch: + # Code from module obstack: + # Code from module open: + # Code from module ostream: + # Code from module progname: + # Code from module realloc-posix: + # Code from module relocatable-lib: + # Code from module signal: + # Code from module sigpipe: + # Code from module sigprocmask: + # Code from module size_max: + # Code from module stat: + # Code from module stdarg: + + # Code from module stdbool: + # Code from module stddef: + # Code from module stdint: + # Code from module stdio: + # Code from module stdlib: + # Code from module stpcpy: + # Code from module streq: + # Code from module strerror: + # Code from module striconv: + # Code from module striconveh: + # Code from module striconveha: + # Code from module string: + # Code from module strstr: + # Code from module strstr-simple: + # Code from module sys_stat: + # Code from module threadlib: + + + + # Code from module time: + # Code from module tls: + # Code from module uniconv/base: + # Code from module uniconv/u8-conv-from-enc: + # Code from module unilbrk/base: + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: + # Code from module unilbrk/u8-width-linebreaks: + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + # Code from module unistd: + # Code from module unistr/base: + # Code from module unistr/u16-mbtouc: + # Code from module unistr/u8-check: + # Code from module unistr/u8-mblen: + # Code from module unistr/u8-mbtouc: + # Code from module unistr/u8-mbtouc-unsafe: + # Code from module unistr/u8-mbtoucr: + # Code from module unistr/u8-prev: + # Code from module unistr/u8-uctomb: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module unlocked-io: + # Code from module unused-parameter: + # Code from module vasnprintf: + # Code from module vasprintf: + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wctype: + # Code from module wcwidth: + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xmalloca: + # Code from module xsize: + # Code from module xstriconv: + # Code from module xvasprintf: + + + + + + case "$host_os" in + mingw* | cygwin*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5 +$as_echo_n "checking for auto-import of symbols... " >&6; } + if test "${gl_cv_ld_autoimport+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gl_save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_ld_autoimport=yes +else + gl_cv_ld_autoimport=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$gl_save_LDFLAGS" +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5 +$as_echo "$gl_cv_ld_autoimport" >&6; } + if test $gl_cv_ld_autoimport = yes; then + LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" + fi + ;; + esac + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.2.6' +macro_revision='1.3012' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if test "${ac_cv_path_SED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if test "${ac_cv_path_FGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test "${lt_cv_path_NM+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if test "${lt_cv_nm_interface+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:8873: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:8876: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:8879: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if test "${lt_cv_sys_max_cmd_len+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if test "${lt_cv_ld_reload_flag+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if test "${lt_cv_deplibs_check_method+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + + + + + + + + + + + + + + + + + + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 10081 "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if test "${lt_cv_cc_needs_belf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -ac_prev= -ac_dashdash= -for ac_option + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi - case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if test "${lt_cv_apple_cc_single_mod+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; +fi - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; +done + + + +# Set options +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AS="${ac_tool_prefix}as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +$as_echo "$AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AS="as" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +$as_echo "$ac_ct_AS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + enable_dlopen=no + + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - --config-cache | -C) - cache_file=config.cache ;; - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; +test -z "$LN_S" && LN_S="ln -s" - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if test "${lt_cv_objdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; - --x) - # Obsolete; use --with-x. - with_x=yes ;; - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - esac -done -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi -# Be sure to have absolute directory names. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } -done -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- -test "$silent" = yes && exec 6>/dev/null -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures this package to adapt to many kinds of systems. -Usage: $0 [OPTION]... [VAR=VALUE]... -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac -Defaults for the options are specified in brackets. +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' -For better control, use the options below. +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF +# Global variables: +ofile=libtool +can_build_shared=yes - cat <<\_ACEOF +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names +with_gnu_ld="$lt_cv_prog_gnu_ld" -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi +old_CC="$CC" +old_CFLAGS="$CFLAGS" -if test -n "$ac_init_help"; then +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o - cat <<\_ACEOF +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --disable-java do not build Java sources - --disable-native-java do not compile Java to native executables - --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) - --enable-threads={posix|solaris|pth|win32} - specify multithreading API - --disable-threads build without multithread safety - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-nls do not use Native Language Support - --disable-rpath do not hardcode runtime library paths - --disable-openmp do not use OpenMP - --enable-relocatable install a package that can be moved in the filesystem - --disable-largefile omit support for large files -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-pic try to use only PIC/non-PIC objects [default=use - both] - --with-tags[=TAGS] include additional configurations [automatic] - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib - --without-libpth-prefix don't search for libpth in includedir and libdir - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir - --with-included-gettext use the GNU gettext library included here - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir - --with-included-glib use the glib2 included here - --with-libglib-2.0-prefix[=DIR] search for libglib-2.0 in DIR/include and DIR/lib - --without-libglib-2.0-prefix don't search for libglib-2.0 in includedir and libdir - --with-included-libcroco use the libcroco included here - --with-libcroco-0.6-prefix[=DIR] search for libcroco-0.6 in DIR/include and DIR/lib - --without-libcroco-0.6-prefix don't search for libcroco-0.6 in includedir and libdir - --with-included-libxml use the libxml2 included here - --with-libxml2-prefix[=DIR] search for libxml2 in DIR/include and DIR/lib - --without-libxml2-prefix don't search for libxml2 in includedir and libdir - --with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib - --without-libncurses-prefix don't search for libncurses in includedir and libdir - --with-libtermcap-prefix[=DIR] search for libtermcap in DIR/include and DIR/lib - --without-libtermcap-prefix don't search for libtermcap in includedir and libdir - --with-libxcurses-prefix[=DIR] search for libxcurses in DIR/include and DIR/lib - --without-libxcurses-prefix don't search for libxcurses in includedir and libdir - --with-libcurses-prefix[=DIR] search for libcurses in DIR/include and DIR/lib - --without-libcurses-prefix don't search for libcurses in includedir and libdir - --without-included-regex don't compile regex; this is the default on - systems with version 2 of the GNU C library - (use with caution on other system) - --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib - --without-libexpat-prefix don't search for libexpat in includedir and libdir - --with-lispdir override the default lisp directory - --without-emacs do not use Emacs, don't install po-mode +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - YACC The `Yet Another C Compiler' implementation to use. Defaults to - the first program found out of: `bison -y', `byacc', `yacc'. - YFLAGS The list of arguments that will be passed by default to $YACC. - This script will default YFLAGS to the empty string to avoid a - default value of `-d' given by some make applications. - GCJ Java native code compiler command - GCJFLAGS Java native code compiler flags - CPP C preprocessor - CXX C++ compiler command - CXXFLAGS C++ compiler flags - CXXCPP C++ preprocessor - F77 Fortran 77 compiler command - FFLAGS Fortran 77 compiler flags - EMACS the Emacs editor command - EMACSLOADPATH - the Emacs library search path +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi -_ACEOF -ac_status=$? +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue - ac_builddir=. -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } +_LT_EOF + fi ;; + esac + fi + break + fi done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac fi -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -configure -generated by GNU Autoconf 2.61 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit + + else + MAGIC_CMD=: + fi fi -cat >config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was + fi + ;; +esac - $ $0 $@ +# Use C for the default configuration in the libtool script -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` +# Source file extension for C test sources. +ac_ext=c -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +# Object file extension for compiled C test sources. +objext=o +objext=$objext -_ASUNAME +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done -IFS=$as_save_IFS +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' -} >&5 -cat >&5 <<_ACEOF -## ----------- ## -## Core tests. ## -## ----------- ## -_ACEOF -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo +# Allow CC to be a program name with arguments. +compiler=$CC - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## -## File substitutions. ## -## ------------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h -# Predefined preprocessor variables. +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +lt_prog_compiler_no_builtin_flag= +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11641: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:11645: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" -else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" -fi -shift -for ac_site_file -do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -gt_needs="$gt_needs need-ngettext" -gl_header_list="$gl_header_list stdlib.h" -gl_header_list="$gl_header_list string.h" -gl_func_list="$gl_func_list canonicalize_file_name" -gl_header_list="$gl_header_list sys/param.h" -gl_header_list="$gl_header_list unistd.h" -gl_func_list="$gl_func_list getcwd" -gl_func_list="$gl_func_list readlink" -gl_header_list="$gl_header_list utime.h" -gl_func_list="$gl_func_list raise" -gl_header_list="$gl_header_list fcntl.h" -gl_header_list="$gl_header_list float.h" -gl_func_list="$gl_func_list btowc" -gl_func_list="$gl_func_list isblank" -gl_func_list="$gl_func_list iswctype" -gl_func_list="$gl_func_list mbsrtowcs" -gl_func_list="$gl_func_list mempcpy" -gl_func_list="$gl_func_list wmemchr" -gl_func_list="$gl_func_list wmemcpy" -gl_func_list="$gl_func_list wmempcpy" -gl_header_list="$gl_header_list wctype.h" -gl_header_list="$gl_header_list sys/time.h" -gl_func_list="$gl_func_list gettimeofday" -gl_header_list="$gl_header_list iconv.h" -gl_header_list="$gl_header_list libcroco-0.6/libcroco/libcroco-config.h" -gl_header_list="$gl_header_list libxml2/libxml/xmlversion.h" -gl_header_list="$gl_header_list locale.h" -gl_header_list="$gl_header_list wchar.h" -gl_func_list="$gl_func_list isascii" -gl_func_list="$gl_func_list mbsinit" -gl_func_list="$gl_func_list setenv" -gl_header_list="$gl_header_list signal.h" -gl_header_list="$gl_header_list stdint.h" -gl_header_list="$gl_header_list stdio.h" -gl_func_list="$gl_func_list lstat" -gl_header_list="$gl_header_list sys/stat.h" -gl_func_list="$gl_func_list vasnprintf" -gl_func_list="$gl_func_list iswcntrl" -gl_func_list="$gl_func_list wcwidth" -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; -ac_aux_dir= -for ac_dir in ../build-aux "$srcdir"/../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} - { (exit 1); exit 1; }; } -fi + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; -. $srcdir/../version.sh -am__api_version='1.10' + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac -done -IFS=$as_save_IFS - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - test "$2" = conftest.file - ) -then - # Ok. - : +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11980: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:11984: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS - + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no fi - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - test -n "$AWK" && break -done -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - SET_MAKE= +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : else - am__leading_dot=_ + lt_prog_compiler_static= fi -rmdir .tst 2>/dev/null -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } - fi -fi -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -# Define the identity of the package. - PACKAGE=gettext-tools - VERSION=$VERSION_NUMBER -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:12085: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:12089: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* -# Some tools Automake needs. +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:12140: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:12144: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + need_locks=no fi -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } -AMTAR=${AMTAR-"${am_missing_run}tar"} + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. -ac_config_headers="$ac_config_headers config.h" +_LT_EOF + fi + ;; + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; -test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag= + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - test -n "$ac_ct_CC" && break -done + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi -fi + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3234,877 +12689,644 @@ return 0; } _ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -# -# List of possible output files, starting from the most likely. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) -# only as a last resort. b.out is created by i960 compilers. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' -# -# The IRIX 6 linker writes into existing files which may not be -# executable, retaining their permissions. Remove them first so a -# subsequent execution test works. -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles +if ac_fn_c_try_link "$LINENO"; then : -if { (ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= + fi + ;; -else - ac_file='' -fi + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; -{ echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6; } -if test -z "$ac_file"; then - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; -ac_exeext=$ac_cv_exeext + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi + ld_shlibs=no fi -fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6; } - -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi + ;; -rm -f conftest$ac_cv_exeext -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6; } + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + freebsd1*) + ld_shlibs=no + ;; -int -main () -{ + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes -int -main () -{ -#ifndef __GNUC__ - choke me -#endif + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; - ; - return 0; -} + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo(void) {} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; - ac_compiler_gnu=no -fi + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu + *nto* | *qnx*) + ;; -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; -int -main () -{ + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' -int -main () -{ + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; -int -main () -{ + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; -fi + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + *) + ld_shlibs=no + ;; + esac -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no -fi +with_gnu_ld=$with_gnu_ld -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" -ac_config_commands="$ac_config_commands depfiles" -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -{ echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6; } -rm -f confinc confmf -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval=$enable_dependency_tracking; -fi -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi -depcc="$CC" am_compiler_list= -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break + cat conftest.err 1>&5 fi - fi - done + $RM conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi -fi -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done -IFS=$as_save_IFS -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -for ac_prog in 'bison -y' byacc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_YACC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$YACC"; then - ac_cv_prog_YACC="$YACC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_YACC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -YACC=$ac_cv_prog_YACC -if test -n "$YACC"; then - { echo "$as_me:$LINENO: result: $YACC" >&5 -echo "${ECHO_T}$YACC" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - test -n "$YACC" && break -done -test -n "$YACC" || YACC="yacc" - { echo "$as_me:$LINENO: checking whether to use Java" >&5 -echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } - # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then - enableval=$enable_java; JAVA_CHOICE="$enableval" -else - JAVA_CHOICE=yes -fi - { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 -echo "${ECHO_T}$JAVA_CHOICE" >&6; } - if test "$JAVA_CHOICE" = yes; then - # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then - enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode -fi - fi @@ -4112,763 +13334,76 @@ - { echo "$as_me:$LINENO: checking for Java to native code compiler" >&5 -echo $ECHO_N "checking for Java to native code compiler... $ECHO_C" >&6; } - # Search for the gcj command or use the one provided by the user. - if test -z "$GCJ"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcj; ac_word=$2 -: -if test "${ac_cv_prog_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$GCJ"; then - ac_cv_prog_GCJ="$GCJ" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_GCJ="${ac_tool_prefix}gcj" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -GCJ=$ac_cv_prog_GCJ -if test -n "$GCJ"; then - : -else - : -fi -fi -if test -z "$ac_cv_prog_GCJ"; then - ac_ct_GCJ=$GCJ - # Extract the first word of "gcj", so it can be a program name with args. -set dummy gcj; ac_word=$2 -: -if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_GCJ"; then - ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_GCJ="gcj" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ -if test -n "$ac_ct_GCJ"; then - : -else - : -fi - if test "x$ac_ct_GCJ" = x; then - GCJ="none" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - GCJ=$ac_ct_GCJ - fi -else - GCJ="$ac_cv_prog_GCJ" -fi - fi - # Choose GCJFLAGS or use the one provided by the user. - if test "$GCJ" != none; then - test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g" - fi - # Check whether the version is ok and it can create executables. - ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext" - if test "$GCJ" != none \ - && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \ - && ( - # See if libgcj.so is well installed and if exception handling works. - cat > conftest.java <&5 - (eval $ac_gcj_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - error=$? - if test $error = 0 && test "$cross_compiling" != yes; then - # Run conftest and catch its exit status, but silently. - error=`./conftest >/dev/null 2>&1; echo $?` - test $error = 0 || error=1 - rm -f core conftest.core - fi - rm -f conftest.java conftest$ac_exeext - exit $error - ); then - : - else - GCJ=none - fi - { echo "$as_me:$LINENO: result: $GCJ" >&5 -echo "${ECHO_T}$GCJ" >&6; } - if test "$GCJ" != none; then - HAVE_GCJ=1 - else - HAVE_GCJ= - fi -if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then - BUILDJAVAEXE=yes -else - BUILDJAVAEXE=no -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - done - ac_cv_prog_CPP=$CPP -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 -echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Extract the first word of "grep ggrep" to use in msg output -if test -z "$GREP"; then -set dummy grep ggrep; ac_prog_name=$2 -if test "${ac_cv_path_GREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_GREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue - # Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - $ac_path_GREP_found && break 3 - done -done -done -IFS=$as_save_IFS -fi -GREP="$ac_cv_path_GREP" -if test -z "$GREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi -else - ac_cv_path_GREP=$GREP -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 -echo "${ECHO_T}$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" -{ echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - # Extract the first word of "egrep" to use in msg output -if test -z "$EGREP"; then -set dummy egrep; ac_prog_name=$2 -if test "${ac_cv_path_EGREP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_path_EGREP_found=false -# Loop through the user's path and test for each of PROGNAME-LIST -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue - # Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - ac_count=`expr $ac_count + 1` - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - $ac_path_EGREP_found && break 3 - done -done -done -IFS=$as_save_IFS -fi -EGREP="$ac_cv_path_EGREP" -if test -z "$EGREP"; then - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } -fi -else - ac_cv_path_EGREP=$EGREP -fi - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 -echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - { echo "$as_me:$LINENO: checking for Java virtual machine" >&5 -echo $ECHO_N "checking for Java virtual machine... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - yes -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - CLASSPATH_SEPARATOR=';' -else - CLASSPATH_SEPARATOR=':' -fi -rm -f conftest* - CONF_JAVA= - HAVE_JAVA_ENVVAR= - HAVE_GIJ= - HAVE_JAVA= - HAVE_JRE= - HAVE_JVIEW= - HAVE_JAVAEXEC=1 - if test -n "$JAVA"; then - HAVE_JAVA_ENVVAR=1 - CONF_JAVA="$JAVA" - else - # Extract the first word of "gij", so it can be a program name with args. -set dummy gij; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_GIJ_IN_PATH"; then - ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_GIJ_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH -if test -n "$HAVE_GIJ_IN_PATH"; then - : -else - : -fi - # Extract the first word of "java", so it can be a program name with args. -set dummy java; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JAVA_IN_PATH"; then - ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JAVA_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH -if test -n "$HAVE_JAVA_IN_PATH"; then - : -else - : -fi - # Extract the first word of "jre", so it can be a program name with args. -set dummy jre; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JRE_IN_PATH"; then - ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JRE_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH -if test -n "$HAVE_JRE_IN_PATH"; then - : -else - : -fi - # Extract the first word of "jview", so it can be a program name with args. -set dummy jview; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JVIEW_IN_PATH"; then - ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JVIEW_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH -if test -n "$HAVE_JVIEW_IN_PATH"; then - : -else - : -fi - export CLASSPATH - if test -n "$HAVE_GIJ_IN_PATH" \ - && gij --version >/dev/null 2>/dev/null \ - ; then - HAVE_GIJ=1 - CONF_JAVA="gij" - else - if test -n "$HAVE_JAVA_IN_PATH" \ - && java -version >/dev/null 2>/dev/null \ - ; then - HAVE_JAVA=1 - CONF_JAVA="java" - else - if test -n "$HAVE_JRE_IN_PATH" \ - && (jre >/dev/null 2>/dev/null || test $? = 1) \ - ; then - HAVE_JRE=1 - CONF_JAVA="jre" - else - if test -n "$HAVE_JVIEW_IN_PATH" \ - && (jview -? >/dev/null 2>/dev/null || test $? = 1) \ - ; then - HAVE_JVIEW=1 - CONF_JAVA="jview" - else - HAVE_JAVAEXEC= - fi - fi - fi - fi - fi - if test -n "$HAVE_JAVAEXEC"; then - ac_result="$CONF_JAVA" - else - ac_result="no" - fi - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } @@ -4880,1006 +13415,718 @@ - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - yes -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - CLASSPATH_SEPARATOR=';' -else - CLASSPATH_SEPARATOR=':' -fi -rm -f conftest* - source_version=1.3 - test -n "$source_version" || { - { { echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5 -echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;} - { (exit 1); exit 1; }; } - } - if test -n "$HAVE_JAVAEXEC"; then - cat > conftestver.java <?@ABCDEFGIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzH' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ - > conftestver.class - target_version=`{ - unset JAVA_HOME - echo "$as_me:4923: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5 - CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5 - }` - case "$target_version" in - 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;; - null) - target_version=1.1 ;; - *) { echo "$as_me:$LINENO: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5 -echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;} - target_version=1.1 ;; - esac - else - target_version="1.1" - fi - case "$source_version" in - 1.3) goodcode='class conftest {}' - failcode='class conftestfail { static { assert(true); } }' ;; - 1.4) goodcode='class conftest { static { assert(true); } }' - failcode='class conftestfail { T foo() { return null; } }' ;; - 1.5) goodcode='class conftest { T foo() { return null; } }' - failcode='class conftestfail syntax error' ;; - *) { { echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5 -echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;} - { (exit 1); exit 1; }; } ;; - esac - case "$target_version" in - 1.1) cfversion=45 ;; - 1.2) cfversion=46 ;; - 1.3) cfversion=47 ;; - 1.4) cfversion=48 ;; - 1.5) cfversion=49 ;; - 1.6) cfversion=50 ;; - *) { { echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5 -echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;} - { (exit 1); exit 1; }; } ;; + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; esac - # Function to output the classfile version of a file (8th byte) in decimal. - if od -A x < /dev/null >/dev/null 2>/dev/null; then - # Use POSIX od. - func_classfile_version () - { - od -A n -t d1 -j 7 -N 1 "$1" - } + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else - # Use BSD hexdump. - func_classfile_version () - { - dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "' - echo - } + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi - { echo "$as_me:$LINENO: checking for Java compiler" >&5 -echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6; } - CONF_JAVAC= - HAVE_JAVAC_ENVVAR= - HAVE_GCJ_C= - HAVE_JAVAC= - HAVE_JIKES= - HAVE_JAVACOMP= - cat > conftestlib.java </dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } } -} -EOF - echo "$goodcode" > conftest.java - echo "$failcode" > conftestfail.java - if test -n "$JAVAC"; then - if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then - if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then - rm -f conftest.class - if { echo "$as_me:4995: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5002: $JAVAC -fsource=$source_version -d . conftest.java" >&5 - $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5007: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5011: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5 - $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -fsource=$source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5025: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 - $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : else - if test "$target_version" = 1.4 && test "$source_version" = 1.4; then - rm -f conftest.class - if { echo "$as_me:5038: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.3; then - javac_works= - rm -f conftest.class - if { echo "$as_me:5050: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - javac_works=1 - fi - javac_noassert_works= - rm -f conftest.class - if { echo "$as_me:5058: $JAVAC -fno-assert -d . conftest.java" >&5 - $JAVAC -fno-assert -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - javac_noassert_works=1 - fi - if test -n "$javac_works" && test -n "$javac_noassert_works"; then - rm -f conftestfail.class - if { echo "$as_me:5066: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5070: $JAVAC -fno-assert -d . conftestfail.java" >&5 - $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1 - }; then - javac_works= - fi - fi - if test -n "$javac_works"; then - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - if test -n "$javac_noassert_works"; then - CONF_JAVAC="$JAVAC -fno-assert" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi + can_build_shared=no fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else - rm -f conftest.class - if { echo "$as_me:5092: $JAVAC -d . conftest.java" >&5 - $JAVAC -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5099: $JAVAC -source $source_version -d . conftest.java" >&5 - $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5104: $JAVAC -d . conftestfail.java" >&5 - $JAVAC -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5108: $JAVAC -source $source_version -d . conftestfail.java" >&5 - $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:5121: $JAVAC -target $target_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5128: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5133: $JAVAC -target $target_version -d . conftestfail.java" >&5 - $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5137: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="$JAVAC -target $target_version -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="$JAVAC -target $target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:5150: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5 - $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="$JAVAC -target $target_version -source $source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - fi + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' fi + shlibpath_var=LIBPATH fi - if test -z "$HAVE_JAVACOMP"; then - # Extract the first word of "gcj", so it can be a program name with args. -set dummy gcj; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_GCJ_IN_PATH"; then - ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_GCJ_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + ;; -fi -fi -HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH -if test -n "$HAVE_GCJ_IN_PATH"; then - : -else - : -fi +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; - # Extract the first word of "javac", so it can be a program name with args. -set dummy javac; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JAVAC_IN_PATH"; then - ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JAVAC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; -fi -fi -HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH -if test -n "$HAVE_JAVAC_IN_PATH"; then - : -else - : -fi +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes - # Extract the first word of "jikes", so it can be a program name with args. -set dummy jikes; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_JIKES_IN_PATH"; then - ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_JIKES_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; -fi -fi -HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH -if test -n "$HAVE_JIKES_IN_PATH"; then - : -else - : -fi + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then - if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then - if { echo "$as_me:5268: gcj -C -d . conftestlib.java" >&5 - gcj -C -d . conftestlib.java >&5 2>&1 - }; then - if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then - rm -f conftest.class - if { echo "$as_me:5273: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5280: gcj -C -fsource=$source_version -d . conftest.java" >&5 - gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5285: gcj -C -d . conftestfail.java" >&5 - gcj -C -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5289: gcj -C -fsource=$source_version -d . conftestfail.java" >&5 - gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="gcj -C -fsource=$source_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="gcj -C" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5303: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5 - gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version" - HAVE_JAVAC_ENVVAR=1 - HAVE_JAVACOMP=1 - fi - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.4; then - rm -f conftest.class - if { echo "$as_me:5316: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - fi - else - if test "$target_version" = 1.4 && test "$source_version" = 1.3; then - rm -f conftest.class - if { echo "$as_me:5327: gcj -C -fno-assert -d . conftest.java" >&5 - gcj -C -fno-assert -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C -fno-assert" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - else - rm -f conftest.class - if { echo "$as_me:5336: gcj -C -d . conftest.java" >&5 - gcj -C -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class; then - CONF_JAVAC="gcj -C" - HAVE_GCJ_C=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - fi - fi - fi - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then - if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \ - && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then - rm -f conftest.class - if { echo "$as_me:5355: javac -d . conftest.java" >&5 - javac -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5362: javac -source $source_version -d . conftest.java" >&5 - javac -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5367: javac -d . conftestfail.java" >&5 - javac -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5371: javac -source $source_version -d . conftestfail.java" >&5 - javac -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="javac -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="javac" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:5384: javac -target $target_version -d . conftest.java" >&5 - javac -target "$target_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - rm -f conftest.class - rm -f conftestfail.class - if { echo "$as_me:5391: javac -target $target_version -source $source_version -d . conftest.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \ - && { echo "$as_me:5396: javac -target $target_version -d . conftestfail.java" >&5 - javac -target "$target_version" -d . conftestfail.java >&5 2>&1 - } \ - && test -f conftestfail.class \ - && ! { echo "$as_me:5400: javac -target $target_version -source $source_version -d . conftestfail.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1 - }; then - CONF_JAVAC="javac -target $target_version -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - else - CONF_JAVAC="javac -target $target_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - else - rm -f conftest.class - if { echo "$as_me:5413: javac -target $target_version -source $source_version -d . conftest.java" >&5 - javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1 - } \ - && test -f conftest.class \ - && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then - CONF_JAVAC="javac -target $target_version -source $source_version" - HAVE_JAVAC=1 - HAVE_JAVACOMP=1 - fi - fi - fi - fi - fi - if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then - if { jikes >/dev/null 2>/dev/null || test $? = 1; } \ - && ( - # See if the existing CLASSPATH is sufficient to make jikes work. - unset JAVA_HOME - jikes conftestlib.java >&5 2>&1 - error=$? - rm -f conftestlib.class - exit $error - ); then - if test "$source_version" = 1.3; then - CONF_JAVAC="jikes" - HAVE_JIKES=1 - HAVE_JAVACOMP=1 - fi - fi + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi - rm -f conftest*.java conftest*.class - if test -n "$HAVE_JAVACOMP"; then - ac_result="$CONF_JAVAC" + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' else - ac_result="no" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' fi - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; +rdos*) + dynamic_linker=no + ;; +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; -# Extract the first word of "jar", so it can be a program name with args. -set dummy jar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_JAR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$JAR"; then - ac_cv_prog_JAR="$JAR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_JAR="jar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no fi -done -done -IFS=$as_save_IFS + need_version=yes + ;; -fi -fi -JAR=$ac_cv_prog_JAR -if test -n "$JAR"; then - { echo "$as_me:$LINENO: result: $JAR" >&5 -echo "${ECHO_T}$JAR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; -if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then - BUILDJAVA=yes -else - BUILDJAVA=no -fi +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then - TESTJAVA=yes -else - TESTJAVA=no -fi +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no - { echo "$as_me:$LINENO: checking for preferred C# implementation" >&5 -echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6; } - # Check whether --enable-csharp was given. -if test "${enable_csharp+set}" = set; then - enableval=$enable_csharp; CSHARP_CHOICE="$enableval" -else - CSHARP_CHOICE=any +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi - { echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5 -echo "${ECHO_T}$CSHARP_CHOICE" >&6; } - case "$CSHARP_CHOICE" in - pnet) -cat >>confdefs.h <<\_ACEOF -#define CSHARP_CHOICE_PNET 1 -_ACEOF - ;; - mono) -cat >>confdefs.h <<\_ACEOF -#define CSHARP_CHOICE_MONO 1 -_ACEOF - ;; - esac - { echo "$as_me:$LINENO: checking for C# compiler" >&5 -echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6; } - HAVE_CSHARPCOMP=1 - # Extract the first word of "cscc", so it can be a program name with args. -set dummy cscc; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_CSCC_IN_PATH"; then - ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_CSCC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH -if test -n "$HAVE_CSCC_IN_PATH"; then - : -else - : -fi - # Extract the first word of "mcs", so it can be a program name with args. -set dummy mcs; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_MCS_IN_PATH"; then - ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_MCS_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH -if test -n "$HAVE_MCS_IN_PATH"; then - : -else - : -fi - # Extract the first word of "csc", so it can be a program name with args. -set dummy csc; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_CSC_IN_PATH"; then - ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_CSC_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH -if test -n "$HAVE_CSC_IN_PATH"; then - : -else - : -fi - for impl in "$CSHARP_CHOICE" pnet mono sscli no; do - case "$impl" in - pnet) - if test -n "$HAVE_CSCC_IN_PATH" \ - && cscc --version >/dev/null 2>/dev/null \ - && ( - # See if pnetlib is well installed. - echo 'class ConfTest { static void Main() { } }' > conftest.cs - cscc -o conftest.exe conftest.cs 2>/dev/null - error=$? - rm -f conftest.cs conftest.exe - exit $error - ); then - HAVE_CSCC=1 - ac_result="cscc" - break - fi - ;; - mono) - if test -n "$HAVE_MCS_IN_PATH" \ - && mcs --version >/dev/null 2>/dev/null \ - && mcs --version 2>/dev/null | grep Mono >/dev/null; then - HAVE_MCS=1 - ac_result="mcs" - break - fi - ;; - sscli) - if test -n "$HAVE_CSC_IN_PATH" \ - && csc -help >/dev/null 2>/dev/null \ - && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then - HAVE_CSC=1 - ac_result="csc" - break - fi - ;; - no) - HAVE_CSHARPCOMP= - ac_result="no" - break - ;; - esac - done - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } - if test -z "${CSHARPCOMPFLAGS+set}"; then - CSHARPCOMPFLAGS="-O -g" - fi -if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then - BUILDCSHARP=yes -else - BUILDCSHARP=no -fi - { echo "$as_me:$LINENO: checking for C# program execution engine" >&5 -echo $ECHO_N "checking for C# program execution engine... $ECHO_C" >&6; } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ - yes -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - MONO_PATH_SEPARATOR=';' -else - MONO_PATH_SEPARATOR=':' -fi -rm -f conftest* - HAVE_CSHARPEXEC=1 - # Extract the first word of "ilrun", so it can be a program name with args. -set dummy ilrun; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_ILRUN_IN_PATH"; then - ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_ILRUN_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH -if test -n "$HAVE_ILRUN_IN_PATH"; then - : -else - : -fi - # Extract the first word of "mono", so it can be a program name with args. -set dummy mono; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_MONO_IN_PATH"; then - ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_MONO_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH -if test -n "$HAVE_MONO_IN_PATH"; then - : -else - : -fi - # Extract the first word of "clix", so it can be a program name with args. -set dummy clix; ac_word=$2 -: -if test "${ac_cv_prog_HAVE_CLIX_IN_PATH+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$HAVE_CLIX_IN_PATH"; then - ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_HAVE_CLIX_IN_PATH="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH -if test -n "$HAVE_CLIX_IN_PATH"; then - : -else - : -fi - for impl in "$CSHARP_CHOICE" pnet mono no; do - case "$impl" in - pnet) - if test -n "$HAVE_ILRUN_IN_PATH" \ - && ilrun --version >/dev/null 2>/dev/null \ - && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then - HAVE_ILRUN=1 - ac_result="ilrun" - break - fi - ;; - mono) - if test -n "$HAVE_MONO_IN_PATH" \ - && mono --version >/dev/null 2>/dev/null \ - && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then - HAVE_MONO=1 - ac_result="mono" - break - fi - ;; - sscli) - if test -n "$HAVE_CLIX_IN_PATH" \ - && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then - HAVE_CLIX=1 - case $host_os in - cygwin* | mingw* | pw32*) - CLIX_PATH_VAR=PATH - ;; - darwin* | rhapsody*) - CLIX_PATH_VAR=DYLD_LIBRARY_PATH - ;; - *) - CLIX_PATH_VAR=LD_LIBRARY_PATH - ;; - esac - eval CLIX_PATH=\"\$CLIX_PATH_VAR\" - ac_result="clix" - break - fi - ;; - no) - HAVE_CSHARPEXEC= - ac_result="no" - break - ;; - esac - done - { echo "$as_me:$LINENO: result: $ac_result" >&5 -echo "${ECHO_T}$ac_result" >&6; } @@ -5888,1935 +14135,1251 @@ -if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then - TESTCSHARP=yes -else - TESTCSHARP=no -fi -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} - { (exit 1); exit 1; }; } - -{ echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; } -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 -echo "$as_me: error: invalid value of canonical build" >&2;} - { (exit 1); exit 1; }; };; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; } -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} - { (exit 1); exit 1; }; } -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 -echo "$as_me: error: invalid value of canonical host" >&2;} - { (exit 1); exit 1; }; };; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi -if test "x$CC" != xcc; then - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } -fi -set dummy $CC; ac_cc=`echo $2 | - sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ - ; - return 0; -} -_ACEOF -# Make sure it works both with $CC and with simple cc. -# We do the test twice because some compilers refuse to overwrite an -# existing .o file with -o, though they will create one. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' -rm -f conftest2.* -if { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - test -f conftest2.$ac_objext && { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; -then - eval ac_cv_prog_cc_${ac_cc}_c_o=yes - if test "x$CC" != xcc; then - # Test first that cc exists at all. - if { ac_try='cc -c conftest.$ac_ext >&5' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' - rm -f conftest2.* - if { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - test -f conftest2.$ac_objext && { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; - then - # cc works too. - : - else - # cc exists but doesn't like -o. - eval ac_cv_prog_cc_${ac_cc}_c_o=no - fi - fi - fi -else - eval ac_cv_prog_cc_${ac_cc}_c_o=no -fi -rm -f core conftest* -fi -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -cat >>confdefs.h <<\_ACEOF -#define NO_MINUS_C_MINUS_O 1 -_ACEOF -fi -# FIXME: we rely on the cache variable name because -# there is no other way. -set dummy $CC -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* -fi -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* -fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless fi -# On IRIX 5.3, sys/types and inttypes.h are conflicting. + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" + ac_cv_lib_dl_dlopen=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else -fi + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes -done +fi + ;; + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if test "${ac_cv_lib_dld_shl_load+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "${ac_cv_header_minix_config_h+set}" = set; then - { echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 -echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + ac_cv_lib_dl_dlopen=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if test "${ac_cv_lib_svld_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5 -echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if test "${ac_cv_lib_dld_dld_link+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 -echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } -if test "${ac_cv_header_minix_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_minix_config_h=$ac_header_preproc fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 -echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } -fi -if test $ac_cv_header_minix_config_h = yes; then - MINIX=yes -else - MINIX= + fi - if test "$MINIX" = yes; then +fi -cat >>confdefs.h <<\_ACEOF -#define _POSIX_SOURCE 1 -_ACEOF +fi -cat >>confdefs.h <<\_ACEOF -#define _POSIX_1_SOURCE 2 -_ACEOF +fi -cat >>confdefs.h <<\_ACEOF -#define _MINIX 1 -_ACEOF + ;; + esac + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no fi + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" - { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 -echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 14514 "configure" +#include "confdefs.h" -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +void fnord() { int i=42;} +int main () { + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; - ; - return 0; + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; } -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_safe_to_define___extensions__=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_safe_to_define___extensions__=no + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi fi +rm -fr conftest* + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 -echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - cat >>confdefs.h <<\_ACEOF -#define __EXTENSIONS__ 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } - cat >>confdefs.h <<\_ACEOF -#define _ALL_SOURCE 1 -_ACEOF + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self_static+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 14610 "configure" +#include "confdefs.h" - cat >>confdefs.h <<\_ACEOF -#define _GNU_SOURCE 1 -_ACEOF +#if HAVE_DLFCN_H +#include +#endif - cat >>confdefs.h <<\_ACEOF -#define _POSIX_PTHREAD_SEMANTICS 1 -_ACEOF +#include - cat >>confdefs.h <<\_ACEOF -#define _TANDEM_SOURCE 1 -_ACEOF +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac - # Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then - enableval=$enable_threads; gl_use_threads=$enableval -else - case "$host_os" in - osf*) gl_use_threads=no ;; - *) gl_use_threads=yes ;; - esac + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac fi - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # For using : - case "$host_os" in - osf*) - # On OSF/1, the compiler needs the flag -D_REENTRANT so that it - # groks . cc also understands the flag -pthread, but - # we don't use it because 1. gcc-2.95 doesn't understand -pthread, - # 2. putting a flag into CPPFLAGS that has an effect on the linker - # causes the AC_TRY_LINK test below to succeed unexpectedly, - # leading to wrong values of LIBTHREAD and LTLIBTHREAD. - CPPFLAGS="$CPPFLAGS -D_REENTRANT" - ;; - esac - # Some systems optimize for single-threaded programs by default, and - # need special flags to disable these optimizations. For example, the - # definition of 'errno' in . - case "$host_os" in - aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; - solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; - esac - fi - case $ac_cv_prog_cc_stdc in - no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; - *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c99+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -#include -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; -struct incomplete_array -{ - int datasize; - double data[]; -}; -struct named_init { - int number; - const wchar_t *name; - double average; -}; -typedef const char *ccp; -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} -// Check varargs and va_copy. -static void -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - const char *str; - int number; - float fnumber; - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); -} -int -main () -{ - // Check bool. - _Bool success = false; - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi - // Check varargs. - test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - ni.number = 58; - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c99=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c99" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 -else - { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cc_c89=$ac_arg -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +CC="$lt_save_CC" -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RC"; then + ac_cv_prog_RC="$RC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RC="${ac_tool_prefix}windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done -rm -f conftest.$ac_ext -CC=$ac_save_CC + done +IFS=$as_save_IFS fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - xno) - { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 +fi +RC=$ac_cv_prog_RC +if test -n "$RC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 +$as_echo "$RC" >&6; } else - ac_cv_prog_cc_stdc=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi fi +if test -z "$ac_cv_prog_RC"; then + ac_ct_RC=$RC + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RC"; then + ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RC="windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ;; -esac - { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 -echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; } - if test "${ac_cv_prog_cc_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +fi +ac_ct_RC=$ac_cv_prog_ac_ct_RC +if test -n "$ac_ct_RC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 +$as_echo "$ac_ct_RC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - case $ac_cv_prog_cc_stdc in - no) { echo "$as_me:$LINENO: result: unsupported" >&5 -echo "${ECHO_T}unsupported" >&6; } ;; - '') { echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6; } ;; - *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;; + if test "x$ac_ct_RC" = x; then + RC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac + RC=$ac_ct_RC + fi +else + RC="$ac_cv_prog_RC" +fi +# Source file extension for RC test sources. +ac_ext=rc +# Object file extension for compiled RC test sources. +objext=o +objext_RC=$objext +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} +# Allow CC to be a program name with arguments. +compiler=$CC +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +compiler=$CC +compiler_RC=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - case "$host_os" in - mingw* | cygwin*) - { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 -echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } - if test "${gl_cv_ld_autoimport+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +lt_cv_prog_compiler_c_o_RC=yes - gl_save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +if test -n "$compiler"; then + : -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_ld_autoimport=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_ld_autoimport=no fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$gl_save_LDFLAGS" -fi +GCC=$lt_save_GCC +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 -echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } - if test $gl_cv_ld_autoimport = yes; then - LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" - fi - ;; - esac +CC="$lt_save_CC" +case "$host_os" in + # On Cygwin, without -no-undefined, a warning is emitted and only a static + # library is built. + beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;; + *) LTNOUNDEF='' ;; +esac -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac + +case "$host_os" in + mingw* | cygwin*) is_woe32=yes ;; + *) is_woe32=no ;; +esac + if test $is_woe32 = yes; then + WOE32_TRUE= + WOE32_FALSE='#' else - enable_shared=yes + WOE32_TRUE='#' + WOE32_FALSE= fi -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval else - enable_fast_install=yes + USE_NLS=yes fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } -{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -fi -SED=$lt_cv_path_SED -{ echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6; } + GETTEXT_MACRO_VERSION=0.18 -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" else - lt_cv_ld_reload_flag='-r' + ac_executable_p="test -f" fi -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac +rm -f conf$$.file -{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" + case "$MSGFMT" in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && + (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi + IFS="$ac_save_IFS" + test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" + ;; +esac fi -{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -echo "${ECHO_T}$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" - -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } +MSGFMT="$ac_cv_path_MSGFMT" +if test "$MSGFMT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } else - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + # Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -beos*) - lt_cv_deplibs_check_method=pass_all + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; + case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; + *) MSGFMT_015=$MSGFMT ;; + esac + + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; + *) GMSGFMT_015=$GMSGFMT ;; + esac -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' else - lt_cv_deplibs_check_method=pass_all + PATH_SEPARATOR=: fi - ;; + rm -f conf$$.sh +fi -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$XGETTEXT" in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && + (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" + test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; - esac - ;; +esac +fi +XGETTEXT="$ac_cv_path_XGETTEXT" +if test "$XGETTEXT" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; + rm -f messages.po -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; + case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; + *) XGETTEXT_015=$XGETTEXT ;; esac - lt_cv_deplibs_check_method=pass_all - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all - ;; -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + PATH_SEPARATOR=: fi - ;; + rm -f conf$$.sh +fi -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; +# Find out how to test for executable files. Don't use a zero-byte file, +# as systems may use methods other than mode bits to determine executability. +cat >conf$$.file <<_ASEOF +#! /bin/sh +exit 0 +_ASEOF +chmod +x conf$$.file +if test -x conf$$.file >/dev/null 2>&1; then + ac_executable_p="test -x" +else + ac_executable_p="test -f" +fi +rm -f conf$$.file -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGMERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$MSGMERGE" in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$ac_save_IFS" + test -z "$ac_dir" && ac_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then + echo "$as_me: trying $ac_dir/$ac_word..." >&5 + if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then + ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" + break 2 + fi + fi + done + done + IFS="$ac_save_IFS" + test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" + ;; +esac +fi +MSGMERGE="$ac_cv_path_MSGMERGE" +if test "$MSGMERGE" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; + test -n "$localedir" || localedir='${datadir}/locale' -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; + test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac + ac_config_commands="$ac_config_commands po-directories" -fi -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } +if test "${ac_cv_gnu_library_2+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + ac_cv_gnu_library_2=yes +else + ac_cv_gnu_library_2=no +fi +rm -f conftest* -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 +$as_echo "$ac_cv_gnu_library_2" >&6; } -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + GLIBC2="$ac_cv_gnu_library_2" -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 7712 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + CFLAG_VISIBILITY= + HAVE_VISIBILITY=0 + if test -n "$GCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 +$as_echo_n "checking whether the -Werror option is usable... " >&6; } + if test "${gl_cv_cc_vis_werror+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Werror" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -7827,3310 +15390,3070 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - lt_cv_cc_needs_belf=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_cc_vis_werror=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_cc_needs_belf=no + gl_cv_cc_vis_werror=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$gl_save_CFLAGS" fi -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -*-*-cygwin* | *-*-mingw* | *-*-pw32*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 +$as_echo "$gl_cv_cc_vis_werror" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 +$as_echo_n "checking for simple visibility declarations... " >&6; } + if test "${gl_cv_cc_visibility+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 -echo "${ECHO_T}$DLLTOOL" >&6; } + gl_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fvisibility=hidden" + if test $gl_cv_cc_vis_werror = yes; then + CFLAGS="$CFLAGS -Werror" + fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern __attribute__((__visibility__("hidden"))) int hiddenvar; + extern __attribute__((__visibility__("default"))) int exportedvar; + extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); + extern __attribute__((__visibility__("default"))) int exportedfunc (void); + void dummyfunc (void) {} +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_cc_visibility=yes else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + gl_cv_cc_visibility=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS="$gl_save_CFLAGS" fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 +$as_echo "$gl_cv_cc_visibility" >&6; } + if test $gl_cv_cc_visibility = yes; then + CFLAG_VISIBILITY="-fvisibility=hidden" + HAVE_VISIBILITY=1 + fi + fi + -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. + +cat >>confdefs.h <<_ACEOF +#define HAVE_VISIBILITY $HAVE_VISIBILITY +_ACEOF + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 -echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AS="${ac_tool_prefix}as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { echo "$as_me:$LINENO: result: $AS" >&5 -echo "${ECHO_T}$AS" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + fi -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 +$as_echo_n "checking for stdint.h... " >&6; } +if test "${gl_cv_header_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +uintmax_t i = (uintmax_t) -1; return !i; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_stdint_h=yes else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AS="as" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - + gl_cv_header_stdint_h=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -echo "${ECHO_T}$ac_ct_AS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 +$as_echo "$gl_cv_header_stdint_h" >&6; } + if test $gl_cv_header_stdint_h = yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H_WITH_UINTMAX 1 +_ACEOF - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS fi -else - AS="$ac_cv_prog_AS" -fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 +$as_echo_n "checking for working alloca.h... " >&6; } +if test "${ac_cv_working_alloca_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char *p = (char *) alloca (2 * sizeof (int)); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_working_alloca_h=yes else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi + ac_cv_working_alloca_h=no fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 -echo "${ECHO_T}$OBJDUMP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 +$as_echo "$ac_cv_working_alloca_h" >&6; } +if test $ac_cv_working_alloca_h = yes; then +$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 +$as_echo_n "checking for alloca... " >&6; } +if test "${ac_cv_func_alloca_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include +# define alloca _alloca +# else +# ifdef HAVE_ALLOCA_H +# include +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi +int +main () +{ +char *p = (char *) alloca (1); + if (p) return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_alloca_works=yes else - OBJDUMP="$ac_cv_prog_OBJDUMP" + ac_cv_func_alloca_works=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: $ac_cv_func_alloca_works" >&5 +$as_echo "$ac_cv_func_alloca_works" >&6; } - ;; +if test $ac_cv_func_alloca_works = yes; then -esac +$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h -need_locks="$enable_libtool_lock" +else + # The SVR3 libPW and SVR4 libucb both contain incompatible functions +# that cause trouble. Some versions do not even contain alloca or +# contain a buggy version. If you still want to use their alloca, +# use ar to extract alloca.o from them instead of compiling alloca.c. +ALLOCA=\${LIBOBJDIR}alloca.$ac_objext +$as_echo "#define C_ALLOCA 1" >>confdefs.h -for ac_header in dlfcn.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 +$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } +if test "${ac_cv_os_cray+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#if defined CRAY && ! defined CRAY2 +webecray +#else +wenotbecray +#endif + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "webecray" >/dev/null 2>&1; then : + ac_cv_os_cray=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + ac_cv_os_cray=no fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 +$as_echo "$ac_cv_os_cray" >&6; } +if test $ac_cv_os_cray = yes; then + for ac_func in _getb67 GETB67 getb67; do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> +cat >>confdefs.h <<_ACEOF +#define CRAY_STACKSEG_END $ac_func _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no + break fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + done +fi -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 +$as_echo_n "checking stack direction for C alloca... " >&6; } +if test "${ac_cv_c_stack_direction+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_c_stack_direction=0 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +int +main () +{ + return find_stack_direction () < 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_stack_direction=1 else - eval "$as_ac_Header=\$ac_header_preproc" + ac_cv_c_stack_direction=-1 fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 +$as_echo "$ac_cv_c_stack_direction" >&6; } +cat >>confdefs.h <<_ACEOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +_ACEOF + fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then + + + + + + for ac_header in $gl_header_list +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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC - else - if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - test -n "$CXX" && break - done + + + + + + + + + + + + + : + + + + + + + + + + + +for ac_func in getpagesize +do : + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + fi -if test -z "$CXX"; then - ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_CXX"; then - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc -fi -fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 -echo "${ECHO_T}$ac_ct_CXX" >&6; } +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include +#include + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + data2 = ""; + if (write (fd2, data2, 1) != 1) + return 5; + data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then - test -n "$ac_ct_CXX" && break -done +$as_echo "#define HAVE_MMAP 1" >>confdefs.h - if test "x$ac_ct_CXX" = x; then - CXX="g++" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX - fi fi +rm -f conftest.mmap conftest.txt - fi -fi -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 +$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } +if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gt_cv_int_divbyzero_sigfpe= + case "$host_os" in + macos* | darwin[6-9]* | darwin[1-9][0-9]*) + # On MacOS X 10.2 or newer, just assume the same as when cross- + # compiling. If we were to perform the real test, 1 Crash Report + # dialog window would pop up. + case "$host_cpu" in + i[34567]86 | x86_64) + gt_cv_int_divbyzero_sigfpe="guessing yes" ;; + esac + ;; + esac + if test -z "$gt_cv_int_divbyzero_sigfpe"; then + if test "$cross_compiling" = yes; then : + + # Guess based on the CPU. + case "$host_cpu" in + alpha* | i[34567]86 | x86_64 | m68k | s390*) + gt_cv_int_divbyzero_sigfpe="guessing yes";; + *) + gt_cv_int_divbyzero_sigfpe="guessing no";; + esac + else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -int -main () +#include +#include + +static void +sigfpe_handler (int sig) { -#ifndef __GNUC__ - choke me + /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ + exit (sig != SIGFPE); +} + +int x = 1; +int y = 0; +int z; +int nan; + +int main () +{ + signal (SIGFPE, sigfpe_handler); +/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ +#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) + signal (SIGTRAP, sigfpe_handler); +#endif +/* Linux/SPARC yields signal SIGILL. */ +#if defined (__sparc__) && defined (__linux__) + signal (SIGILL, sigfpe_handler); #endif - ; - return 0; + z = x / y; + nan = y / y; + exit (1); } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes +if ac_fn_c_try_run "$LINENO"; then : + gt_cv_int_divbyzero_sigfpe=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + gt_cv_int_divbyzero_sigfpe=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } -GXX=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 +$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } + case "$gt_cv_int_divbyzero_sigfpe" in + *yes) value=1;; + *) value=0;; + esac + +cat >>confdefs.h <<_ACEOF +#define INTDIV0_RAISES_SIGFPE $value _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 +$as_echo_n "checking for inttypes.h... " >&6; } +if test "${gl_cv_header_inttypes_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +#include +#include int main () { - +uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_inttypes_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_header_inttypes_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 +$as_echo "$gl_cv_header_inttypes_h" >&6; } + if test $gl_cv_header_inttypes_h = yes; then - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H_WITH_UINTMAX 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 +$as_echo_n "checking for unsigned long long int... " >&6; } +if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; int main () { - +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); ; return 0; } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_cxx_g=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_type_unsigned_long_long_int=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + ac_cv_type_unsigned_long_long_int=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 +$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } + if test $ac_cv_type_unsigned_long_long_int = yes; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi +$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= fi -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -depcc="$CXX" am_compiler_list= -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CXX_dependencies_compiler_type=$depmode - break - fi - fi - done + if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi + test $ac_cv_type_unsigned_long_long_int = yes \ + && ac_type='unsigned long long' \ + || ac_type='unsigned long' -fi -{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type +cat >>confdefs.h <<_ACEOF +#define uintmax_t $ac_type +_ACEOF - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' -else - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= -fi + else +$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h + fi -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error + for ac_header in inttypes.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_INTTYPES_H 1 _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue fi -rm -f conftest.err conftest.$ac_ext +done - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_inttypes_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 +$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } +if test "${gt_cv_inttypes_pri_broken+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#ifdef PRId32 +char *p = PRId32; +#endif + +int +main () +{ + + ; + return 0; +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_inttypes_pri_broken=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_inttypes_pri_broken=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - # Passes both tests. -ac_preproc_ok=: -break fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 +$as_echo "$gt_cv_inttypes_pri_broken" >&6; } + fi + if test "$gt_cv_inttypes_pri_broken" = yes; then -rm -f conftest.err conftest.$ac_ext +cat >>confdefs.h <<_ACEOF +#define PRI_MACROS_BROKEN 1 +_ACEOF -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi + PRI_MACROS_BROKEN=1 + else + PRI_MACROS_BROKEN=0 + fi - done - ac_cv_prog_CXXCPP=$CXXCPP -fi - CXXCPP=$ac_cv_prog_CXXCPP + + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else - ac_cv_prog_CXXCPP=$CXXCPP + with_gnu_ld=no fi -{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 -echo "${ECHO_T}$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue +# Prepare PATH_SEPARATOR. +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh fi - -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || - test ! -s conftest.err - }; then - # Broken: success on invalid input. -continue +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 +$as_echo_n "checking for ld used by GCC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${acl_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : +LD="$acl_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${acl_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$acl_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$acl_cv_prog_gnu_ld -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -fi -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$F77"; then - ac_cv_prog_F77="$F77" # Let the user override the test. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +$as_echo_n "checking for shared library run path origin... " >&6; } +if test "${acl_cv_rpath+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_F77="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done fi -fi -F77=$ac_cv_prog_F77 -if test -n "$F77"; then - { echo "$as_me:$LINENO: result: $F77" >&5 -echo "${ECHO_T}$F77" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +$as_echo "$acl_cv_rpath" >&6; } + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + # Check whether --enable-rpath was given. +if test "${enable_rpath+set}" = set; then : + enableval=$enable_rpath; : else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + enable_rpath=yes fi - test -n "$F77" && break - done -fi -if test -z "$F77"; then - ac_ct_F77=$F77 - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_F77"; then - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. + + + acl_libdirstem=lib + acl_libdirstem2= + case "$host_os" in + solaris*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 +$as_echo_n "checking for 64-bit host... " >&6; } +if test "${gl_cv_solaris_64bit+set}" = set; then : + $as_echo_n "(cached) " >&6 else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_F77="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -fi -fi -ac_ct_F77=$ac_cv_prog_ac_ct_F77 -if test -n "$ac_ct_F77"; then - { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 -echo "${ECHO_T}$ac_ct_F77" >&6; } +#ifdef _LP64 +sixtyfour bits +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sixtyfour bits" >/dev/null 2>&1; then : + gl_cv_solaris_64bit=yes else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + gl_cv_solaris_64bit=no fi +rm -f conftest* - test -n "$ac_ct_F77" && break -done - - if test "x$ac_ct_F77" = x; then - F77="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - F77=$ac_ct_F77 - fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 +$as_echo "$gl_cv_solaris_64bit" >&6; } + if test $gl_cv_solaris_64bit = yes; then + acl_libdirstem=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" -# Provide some information about the compiler. -echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compiler -V >&5") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } -if test "${ac_cv_f77_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + gl_threads_api=none + LIBTHREAD= + LTLIBTHREAD= + LIBMULTITHREAD= + LTLIBMULTITHREAD= + if test "$gl_use_threads" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 +$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } +if test "${gl_cv_have_weak+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif + gl_cv_have_weak=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern void xyzzy (); +#pragma weak xyzzy +int +main () +{ +xyzzy(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_have_weak=maybe +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $gl_cv_have_weak = maybe; then + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __ELF__ + Extensible Linking Format + #endif - end _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_compiler_gnu=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : + gl_cv_have_weak="guessing yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + gl_cv_have_weak="guessing no" fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_f77_compiler_gnu=$ac_compiler_gnu -fi -{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FFLAGS+set} -ac_save_FFLAGS=$FFLAGS -FFLAGS= -{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } -if test "${ac_cv_prog_f77_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - end +#include +#pragma weak fputs +int main () +{ + return (fputs == NULL); +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_prog_f77_g=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_have_weak=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_prog_f77_g=no + gl_cv_have_weak=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } -if test "$ac_test_FFLAGS" = set; then - FFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_f77_g = yes; then - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-g -O2" - else - FFLAGS="-g" - fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 +$as_echo "$gl_cv_have_weak" >&6; } + if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then + # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that + # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. + ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = x""yes; then : + gl_have_pthread_h=yes else - if test "x$ac_cv_f77_compiler_gnu" = xyes; then - FFLAGS="-O2" - else - FFLAGS= - fi + gl_have_pthread_h=no fi -G77=`test $ac_compiler_gnu = yes && echo yes` -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test "$gl_have_pthread_h" = yes; then + # Other possible tests: + # -lpthreads (FSU threads, PCthreads) + # -lgthreads + gl_have_pthread= + # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist + # in libc. IRIX 6.5 has the first one in both libc and libpthread, but + # the second one only in libpthread, and lock.c needs it. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +pthread_mutex_lock((pthread_mutex_t*)0); + pthread_mutexattr_init((pthread_mutexattr_t*)0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_have_pthread=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + # Test for libpthread by looking for pthread_kill. (Not pthread_self, + # since it is defined as a macro on OSF/1.) + if test -n "$gl_have_pthread"; then + # The program links fine without libpthread. But it may actually + # need to link with libpthread in order to create multiple threads. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } +if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); +int +main () +{ +return pthread_kill (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_kill=yes +else + ac_cv_lib_pthread_pthread_kill=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread + # On Solaris and HP-UX, most pthread functions exist also in libc. + # Therefore pthread_in_use() needs to actually try to create a + # thread: pthread_create from libc will fail, whereas + # pthread_create will actually create a thread. + case "$host_os" in + solaris* | hpux*) - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; +$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac + esac fi -if test -n $lt_cv_sys_max_cmd_len ; then - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } + else + # Some library is needed. Try libpthread and libc_r. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 +$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } +if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6; } -fi - - + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); +int +main () +{ +return pthread_kill (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_kill=yes +else + ac_cv_lib_pthread_pthread_kill=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } +if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : + gl_have_pthread=yes + LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread + LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread +fi + if test -z "$gl_have_pthread"; then + # For FreeBSD 4. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 +$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } +if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc_r $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_kill (); +int +main () +{ +return pthread_kill (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_r_pthread_kill=yes else + ac_cv_lib_c_r_pthread_kill=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 +$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } +if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : + gl_have_pthread=yes + LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r + LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r +fi -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] + fi + fi + if test -n "$gl_have_pthread"; then + gl_threads_api=posix -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' +$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" +$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then + gl_have_solaristhread= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lthread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +thr_self(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_have_solaristhread=yes +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test -n "$gl_have_solaristhread"; then + gl_threads_api=solaris + LIBTHREAD=-lthread + LTLIBTHREAD=-lthread + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[ABCDEGRST]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac +$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac +$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do + LIBTHREAD= + LTLIBTHREAD= + fi + fi + fi + fi + if test "$gl_use_threads" = pth; then + gl_save_CPPFLAGS="$CPPFLAGS" - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - # Check to see that the pipe works correctly. - pipe_works=no - rm -f conftest* - cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 +$as_echo_n "checking how to link with libpth... " >&6; } +if test "${ac_cv_libpth_libs+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -fi -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6; } -else - { echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6; } -fi + use_additional=yes -{ echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } -if test "${lt_cv_objdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -echo "${ECHO_T}$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +# Check whether --with-libpth-prefix was given. +if test "${with_libpth_prefix+set}" = set; then : + withval=$with_libpth_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' +fi + + LIBPTH= + LTLIBPTH= + INCPTH= + LIBPTH_PREFIX= + HAVE_LIBPTH= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='pth ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBPTH; do -# Constants: -rm="rm -f" + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Global variables: -default_ofile=libtool -can_build_shared=yes + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBPTH; do -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'pth'; then + LIBPTH_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'pth'; then + LIBPTH_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCPTH; do -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBPTH; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBPTH; do -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" + ;; + esac + done + fi + else + LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" + done + fi fi -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" + done fi -done -done -IFS=$as_save_IFS -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + ac_cv_libpth_libs="$LIBPTH" + ac_cv_libpth_ltlibs="$LTLIBPTH" + ac_cv_libpth_cppflags="$INCPTH" + ac_cv_libpth_prefix="$LIBPTH_PREFIX" fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 +$as_echo "$ac_cv_libpth_libs" >&6; } + LIBPTH="$ac_cv_libpth_libs" + LTLIBPTH="$ac_cv_libpth_ltlibs" + INCPTH="$ac_cv_libpth_cppflags" + LIBPTH_PREFIX="$ac_cv_libpth_prefix" + for element in $INCPTH; do + haveit= + for x in $CPPFLAGS; do -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi -old_CC="$CC" -old_CFLAGS="$CFLAGS" -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o + HAVE_LIBPTH=yes -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" + + gl_have_pth= + gl_save_LIBS="$LIBS" + LIBS="$LIBS -lpth" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +pth_self(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_have_pth=yes fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test -n "$gl_have_pth"; then + gl_threads_api=pth + LIBTHREAD="$LIBPTH" + LTLIBTHREAD="$LTLIBPTH" + LIBMULTITHREAD="$LIBTHREAD" + LTLIBMULTITHREAD="$LTLIBTHREAD" -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h + if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then + if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 +$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org + LIBTHREAD= + LTLIBTHREAD= + fi + fi + else + CPPFLAGS="$gl_save_CPPFLAGS" + fi + fi + if test -z "$gl_have_pthread"; then + if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then + if { case "$host_os" in + mingw*) true;; + *) false;; + esac + }; then + gl_threads_api=win32 -EOF - fi ;; - esac +$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h + + fi fi - break fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 +$as_echo_n "checking for multithread API to use... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 +$as_echo "$gl_threads_api" >&6; } -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac -fi -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - else - MAGIC_CMD=: - fi -fi - fi - ;; -esac -enable_dlopen=no -enable_win32_dll=yes -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval=$enable_libtool_lock; -fi -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include +" +if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi +$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h -test -z "$pic_mode" && pic_mode=default +fi -# Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#if __FreeBSD__ == 4 +error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#else +int x = (int)PTHREAD_MUTEX_RECURSIVE; +return !x; +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h -# Source file extension for C test sources. -ac_ext=c +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -# Object file extension for compiled C test sources. -objext=o -objext=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -lt_prog_compiler_no_builtin_flag= -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' + use_additional=yes -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10269: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:10273: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= +# Check whether --with-libiconv-prefix was given. +if test "${with_libiconv_prefix+set}" = set; then : + withval=$with_libiconv_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - if test "$GCC" = yes; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi fi - ;; + fi - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; +fi - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; + LIBICONV= + LTLIBICONV= + INCICONV= + LIBICONV_PREFIX= + HAVE_LIBICONV= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='iconv ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBICONV; do - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBICONV; do - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'iconv'; then + LIBICONV_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'iconv'; then + LIBICONV_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCICONV; do - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBICONV; do - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - ;; + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBICONV; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" + ;; + esac + done + fi + else + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" + done + fi - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='${wl}-a ${wl}archive' - ;; - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - como) - lt_prog_compiler_wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; + am_save_CPPFLAGS="$CPPFLAGS" - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; + for element in $INCICONV; do + haveit= + for x in $CPPFLAGS; do - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +$as_echo_n "checking for iconv... " >&6; } +if test "${am_cv_func_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10562: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:10566: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works=yes - fi - fi - $rm conftest* + am_cv_func_iconv="no, consider installing GNU libiconv" + am_cv_lib_iconv=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_func_iconv=yes fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } - -if test x"$lt_prog_compiler_pic_works" = xyes; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main () +{ +iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_lib_iconv=yes + am_cv_func_iconv=yes fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$am_save_LIBS" + fi fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +$as_echo "$am_cv_func_iconv" >&6; } + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +$as_echo_n "checking for working iconv... " >&6; } +if test "${am_cv_func_iconv_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + am_save_LIBS="$LIBS" + if test $am_cv_lib_iconv = yes; then + LIBS="$LIBS $LIBICONV" + fi + if test "$cross_compiling" = yes; then : + case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac else - lt_prog_compiler_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works=yes - fi - else - lt_prog_compiler_static_works=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int main () +{ + /* Test against AIX 5.1 bug: Failures are not distinguishable from successful + returns. */ + { + iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); + if (cd_utf8_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\342\202\254"; /* EURO SIGN */ + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_utf8_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } + /* Test against Solaris 10 bug: Failures are not distinguishable from + successful returns. */ + { + iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); + if (cd_ascii_to_88591 != (iconv_t)(-1)) + { + static const char input[] = "\263"; + char buf[10]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_ascii_to_88591, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res == 0) + return 1; + } + } +#if 0 /* This bug could be worked around by the caller. */ + /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char buf[50]; + const char *inptr = input; + size_t inbytesleft = strlen (input); + char *outptr = buf; + size_t outbytesleft = sizeof (buf); + size_t res = iconv (cd_88591_to_utf8, + (char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); + if ((int)res > 0) + return 1; + } + } +#endif + /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is + provided. */ + if (/* Try standardized names. */ + iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) + /* Try IRIX, OSF/1 names. */ + && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) + /* Try AIX names. */ + && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) + /* Try HP-UX names. */ + && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + am_cv_func_iconv_works=yes +else + am_cv_func_iconv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } -if test x"$lt_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= + LIBS="$am_save_LIBS" + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +$as_echo "$am_cv_func_iconv_works" >&6; } + case "$am_cv_func_iconv_works" in + *no) am_func_iconv=no am_cv_lib_iconv=no ;; + *) am_func_iconv=yes ;; + esac + else + am_func_iconv=no am_cv_lib_iconv=no + fi + if test "$am_func_iconv" = yes; then +$as_echo "#define HAVE_ICONV 1" >>confdefs.h -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + fi + if test "$am_cv_lib_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +$as_echo_n "checking how to link with libiconv... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +$as_echo "$LIBICONV" >&6; } + else + CPPFLAGS="$am_save_CPPFLAGS" + LIBICONV= + LTLIBICONV= + fi + + + + if test "$am_cv_func_iconv" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 +$as_echo_n "checking for iconv declaration... " >&6; } + if test "${am_cv_proto_iconv+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10666: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:10670: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); +#else +size_t iconv(); +#endif +int +main () +{ -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + am_cv_proto_iconv_arg1="" else - need_locks=no + am_cv_proto_iconv_arg1="const" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: + $am_cv_proto_iconv" >&5 +$as_echo " + $am_cv_proto_iconv" >&6; } - runpath_var= - allow_undefined_flag= - enable_shared_with_static_runtimes=no - archive_cmds= - archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= - export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= - hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= - hardcode_libdir_separator= - hardcode_direct=no - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - link_all_deplibs=unknown - hardcode_automatic=no - module_cmds= - module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +cat >>confdefs.h <<_ACEOF +#define ICONV_CONST $am_cv_proto_iconv_arg1 +_ACEOF - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac + fi + + + + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + for ac_header in argz.h inttypes.h limits.h unistd.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' +fi - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac +done - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs=no - cat <&2 + for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ + stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ + argz_stringify argz_next __fsetlocking +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +fi +done -EOF - fi - ;; - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 +$as_echo_n "checking whether feof_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; +#ifndef feof_unlocked + char *p = (char *) feof_unlocked; +#endif - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_feof_unlocked=yes +else + ac_cv_have_decl_feof_unlocked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 +$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } + if test $ac_cv_have_decl_feof_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FEOF_UNLOCKED $gt_value +_ACEOF - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs=no - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 +$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; +#ifndef fgets_unlocked + char *p = (char *) fgets_unlocked; +#endif - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_fgets_unlocked=yes +else + ac_cv_have_decl_fgets_unlocked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 +$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } + if test $ac_cv_have_decl_fgets_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FGETS_UNLOCKED $gt_value +_ACEOF -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; + for ac_prog in bison +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_INTLBISON+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$INTLBISON"; then + ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_INTLBISON="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac +fi +fi +INTLBISON=$ac_cv_prog_INTLBISON +if test -n "$INTLBISON"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 +$as_echo "$INTLBISON" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - if test "$ld_shlibs" = no; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi + + test -n "$INTLBISON" && break +done + + if test -z "$INTLBISON"; then + ac_verc_fail=yes else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 +$as_echo_n "checking version of bison... " >&6; } + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; + 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) + ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; + *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 +$as_echo "$ac_prog_version" >&6; } + fi + if test $ac_verc_fail = yes; then + INTLBISON=: + fi - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +$as_echo_n "checking for long long int... " >&6; } +if test "${ac_cv_type_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; +int +main () +{ +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); + ; + return 0; +} - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test "$cross_compiling" = yes; then : + ac_cv_type_long_long_int=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #ifndef LLONG_MAX + # define HALF \ + (1LL << (sizeof (long long int) * CHAR_BIT - 2)) + # define LLONG_MAX (HALF - 1 + HALF) + #endif +int +main () +{ +long long int n = 1; + int i; + for (i = 0; ; i++) + { + long long int m = n << i; + if (m >> i != n) + return 1; + if (LLONG_MAX / 2 < m) + break; + } + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_type_long_long_int=yes +else + ac_cv_type_long_long_int=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - archive_cmds='' - hardcode_direct=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes +else + ac_cv_type_long_long_int=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: $ac_cv_type_long_long_int" >&5 +$as_echo "$ac_cv_type_long_long_int" >&6; } + if test $ac_cv_type_long_long_int = yes; then - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +$as_echo_n "checking for wchar_t... " >&6; } +if test "${gt_cv_c_wchar_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + wchar_t foo = (wchar_t)'\0'; +int +main () +{ + + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wchar_t=yes +else + gt_cv_c_wchar_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +$as_echo "$gt_cv_c_wchar_t" >&6; } + if test $gt_cv_c_wchar_t = yes; then + +$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h + + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +$as_echo_n "checking for wint_t... " >&6; } +if test "${gt_cv_c_wint_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + wint_t foo = (wchar_t)'\0'; int main () { @@ -11139,11401 +18462,8388 @@ return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wint_t=yes +else + gt_cv_c_wint_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +$as_echo "$gt_cv_c_wint_t" >&6; } + if test $gt_cv_c_wint_t = yes; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +$as_echo "#define HAVE_WINT_T 1" >>confdefs.h + + fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +$as_echo_n "checking for intmax_t... " >&6; } +if test "${gt_cv_c_intmax_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif + +int +main () +{ +intmax_t x = -1; + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_intmax_t=yes +else + gt_cv_c_intmax_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +$as_echo "$gt_cv_c_intmax_t" >&6; } + if test $gt_cv_c_intmax_t = yes; then + +$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 +$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } +if test "${gt_cv_func_printf_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ + notposix +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "notposix" >/dev/null 2>&1; then : + gt_cv_func_printf_posix="guessing no" +else + gt_cv_func_printf_posix="guessing yes" fi +rm -f conftest* + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gt_cv_func_printf_posix=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_func_printf_posix=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 +$as_echo "$gt_cv_func_printf_posix" >&6; } + case $gt_cv_func_printf_posix in + *yes) -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ;; + esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } +if test "${ac_cv_gnu_library_2_1+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -int -main () -{ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + ac_cv_gnu_library_2_1=yes +else + ac_cv_gnu_library_2_1=no +fi +rm -f conftest* + + -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 +$as_echo "$ac_cv_gnu_library_2_1" >&6; } + + GLIBC21="$ac_cv_gnu_library_2_1" + + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 +_ACEOF + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +done - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' ${wl}-bernotok' - allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - archive_cmds_need_lc=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +$as_echo_n "checking for SIZE_MAX... " >&6; } +if test "${gl_cv_size_max+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; + gl_cv_size_max= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes - ;; +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then : + gl_cv_size_max=yes +fi +rm -f conftest* - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi - ;; + if test -z "$gl_cv_size_max"; then + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include +#include "; then : - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; +else + size_t_bits_minus_1= +fi - freebsd1*) - ld_shlibs=no - ;; + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +else + fits_in_uint= +fi - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + extern size_t foo; + extern unsigned long foo; - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +int +main () +{ - hpux9*) - if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + fits_in_uint=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + gl_cv_size_max='((size_t)~(size_t)0)' fi - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes + fi - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='${wl}-E' - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +$as_echo "$gl_cv_size_max" >&6; } + if test "$gl_cv_size_max" != yes; then - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $gl_cv_size_max +_ACEOF - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' + fi - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - export_dynamic_flag_spec='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 +_ACEOF - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; +fi - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; +done - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs=no - fi - ;; - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 +$as_echo_n "checking for working fcntl.h... " >&6; } +if test "${gl_cv_header_working_fcntl_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_header_working_fcntl_h=cross-compiling +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include + #include + #ifndef O_NOATIME + #define O_NOATIME 0 + #endif + #ifndef O_NOFOLLOW + #define O_NOFOLLOW 0 + #endif + static int const constants[] = + { + O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, + O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY + }; - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; +int +main () +{ - solaris*) - no_undefined_flag=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; + int status = !constants; + { + static char const sym[] = "conftest.sym"; + if (symlink (".", sym) != 0 + || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) + status |= 32; + unlink (sym); + } + { + static char const file[] = "confdefs.h"; + int fd = open (file, O_RDONLY | O_NOATIME); + char c; + struct stat st0, st1; + if (fd < 0 + || fstat (fd, &st0) != 0 + || sleep (1) != 0 + || read (fd, &c, 1) != 1 + || close (fd) != 0 + || stat (file, &st1) != 0 + || st0.st_atime != st1.st_atime) + status |= 64; + } + return status; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_header_working_fcntl_h=yes +else + case $? in #( + 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( + 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( + 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( + *) gl_cv_header_working_fcntl_h='no';; + esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 +$as_echo "$gl_cv_header_working_fcntl_h" >&6; } - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; + case $gl_cv_header_working_fcntl_h in #( + *O_NOATIME* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_WORKING_O_NOATIME $ac_val +_ACEOF - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='${wl}-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' + case $gl_cv_header_working_fcntl_h in #( + *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( + *) ac_val=1;; + esac - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_WORKING_O_NOFOLLOW $ac_val +_ACEOF - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='${wl}-z,text' - allow_undefined_flag='${wl}-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFPreferencesCopyAppValue=yes +else + gt_cv_func_CFPreferencesCopyAppValue=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h - *) - ld_shlibs=no - ;; - esac fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +CFLocaleCopyCurrent(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFLocaleCopyCurrent=yes +else + gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -echo "${ECHO_T}$ld_shlibs" >&6; } -test "$ld_shlibs" = no && can_build_shared=no +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -echo "${ECHO_T}$archive_cmds_need_lc" >&6; } - ;; - esac - fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; + + + + case "$enable_silent_rules" in + yes) INTL_DEFAULT_VERBOSITY=0;; + no) INTL_DEFAULT_VERBOSITY=1;; + *) INTL_DEFAULT_VERBOSITY=1;; esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` + + + ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : + else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +$as_echo "#define ptrdiff_t long" >>confdefs.h + + fi -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown + for ac_header in stddef.h stdlib.h string.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH +fi - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; +done -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; + for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ + snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; +fi +done -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 +$as_echo_n "checking whether _snprintf is declared... " >&6; } +if test "${ac_cv_have_decl__snprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes +#ifndef _snprintf + char *p = (char *) _snprintf; +#endif - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl__snprintf=yes +else + ac_cv_have_decl__snprintf=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 +$as_echo "$ac_cv_have_decl__snprintf" >&6; } + if test $ac_cv_have_decl__snprintf = yes; then + gt_value=1 + else + gt_value=0 + fi - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNPRINTF $gt_value +_ACEOF -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 +$as_echo_n "checking whether _snwprintf is declared... " >&6; } +if test "${ac_cv_have_decl__snwprintf+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ -freebsd1*) - dynamic_linker=no - ;; +#ifndef _snwprintf + char *p = (char *) _snwprintf; +#endif -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl__snwprintf=yes +else + ac_cv_have_decl__snwprintf=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 +$as_echo "$ac_cv_have_decl__snwprintf" >&6; } + if test $ac_cv_have_decl__snwprintf = yes; then + gt_value=1 else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac + gt_value=0 fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNWPRINTF $gt_value +_ACEOF -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 +$as_echo_n "checking whether getc_unlocked is declared... " >&6; } +if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + +#ifndef getc_unlocked + char *p = (char *) getc_unlocked; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_getc_unlocked=yes +else + ac_cv_have_decl_getc_unlocked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 +$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } + if test $ac_cv_have_decl_getc_unlocked = yes; then + gt_value=1 + else + gt_value=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $gt_value +_ACEOF -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; + case $gt_cv_func_printf_posix in + *yes) HAVE_POSIX_PRINTF=1 ;; + *) HAVE_POSIX_PRINTF=0 ;; + esac -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' + if test "$ac_cv_func_asprintf" = yes; then + HAVE_ASPRINTF=1 else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' + HAVE_ASPRINTF=0 fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; + if test "$ac_cv_func_snprintf" = yes; then + HAVE_SNPRINTF=1 + else + HAVE_SNPRINTF=0 + fi -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; + if test "$ac_cv_func_newlocale" = yes; then + HAVE_NEWLOCALE=1 + else + HAVE_NEWLOCALE=0 + fi -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac + if test "$ac_cv_func_wprintf" = yes; then + HAVE_WPRINTF=1 else - shlibpath_overrides_runpath=yes + HAVE_WPRINTF=0 fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; -rdos*) - dynamic_linker=no - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } +if test "${am_cv_langinfo_codeset+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +char* cs = nl_langinfo(CODESET); return !cs; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_langinfo_codeset=yes +else + am_cv_langinfo_codeset=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 +$as_echo "$am_cv_langinfo_codeset" >&6; } + if test $am_cv_langinfo_codeset = yes; then + +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +$as_echo_n "checking for LC_MESSAGES... " >&6; } +if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +return LC_MESSAGES + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_val_LC_MESSAGES=yes +else + gt_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: $gt_cv_val_LC_MESSAGES" >&5 +$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } + if test $gt_cv_val_LC_MESSAGES = yes; then + +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h + fi - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; + + if test "$enable_shared" = yes; then + case "$host_os" in + mingw* | cygwin*) is_woe32dll=yes ;; + *) is_woe32dll=no ;; esac + else + is_woe32dll=no fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; + WOE32DLL=$is_woe32dll -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no + case "$host_os" in + mingw* | cygwin*) is_woe32=yes ;; + *) is_woe32=no ;; + esac + WOE32=$is_woe32 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" + if test $WOE32 = yes; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_WINDRES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_WINDRES="${ac_tool_prefix}windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +WINDRES=$ac_cv_prog_WINDRES +if test -n "$WINDRES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 +$as_echo "$WINDRES" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ - test "X$hardcode_automatic" = "Xyes" ; then - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate +fi +if test -z "$ac_cv_prog_WINDRES"; then + ac_ct_WINDRES=$WINDRES + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_WINDRES"; then + ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_WINDRES="windres" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES +if test -n "$ac_ct_WINDRES"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 +$as_echo "$ac_ct_WINDRES" >&6; } else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6; } -if test "$hardcode_action" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless + if test "x$ac_ct_WINDRES" = x; then + WINDRES="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + WINDRES=$ac_ct_WINDRES + fi +else + WINDRES="$ac_cv_prog_WINDRES" fi -striplib= -old_striplib= -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } + fi + + case "$host_os" in + hpux*) LTLIBC="" ;; + *) LTLIBC="-lc" ;; + esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } +if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : + $as_echo_n "(cached) " >&6 else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } - else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +CFPreferencesCopyAppValue(NULL, NULL) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFPreferencesCopyAppValue=yes +else + gt_cv_func_CFPreferencesCopyAppValue=no fi - ;; - *) - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } - ;; - esac +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown +$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 +$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } +if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_dlopen=no - lt_cv_dlopen_libs= + gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +CFLocaleCopyCurrent(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_func_CFLocaleCopyCurrent=yes +else + gt_cv_func_CFLocaleCopyCurrent=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gt_save_LIBS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 +$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } + if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; +$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; - darwin*) - # if libdl is installed we need to link against it - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + BUILD_INCLUDED_LIBINTL=no + USE_INCLUDED_LIBINTL=no + + LIBINTL= + LTLIBINTL= + POSUB= + + case " $gt_needs " in + *" need-formatstring-macros "*) gt_api_version=3 ;; + *" need-ngettext "*) gt_api_version=2 ;; + *) gt_api_version=1 ;; + esac + gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" + gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" + + if test "$USE_NLS" = "yes"; then + gt_use_preinstalled_gnugettext=no + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 +$as_echo_n "checking whether included gettext is requested... " >&6; } + +# Check whether --with-included-gettext was given. +if test "${with_included_gettext+set}" = set; then : + withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + nls_cv_force_use_gnu_gettext=no +fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 +$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } + + nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" + if test "$nls_cv_force_use_gnu_gettext" != "yes"; then + + + if test $gt_api_version -ge 3; then + gt_revision_test_code=' +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION +#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif -char dlopen (); +typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; +' + else + gt_revision_test_code= + fi + if test $gt_api_version -ge 2; then + gt_expression_test_code=' + * ngettext ("", "", 0)' + else + gt_expression_test_code= + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +$as_echo_n "checking for GNU gettext in libc... " >&6; } +if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern int *_nl_domain_bindings; int main () { -return dlopen (); +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$gt_func_gnugettext_libc=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_dl_dlopen=no + eval "$gt_func_gnugettext_libc=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else +eval ac_res=\$$gt_func_gnugettext_libc + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then -fi - ;; - *) - { echo "$as_me:$LINENO: checking for shl_load" >&5 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } -if test "${ac_cv_func_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define shl_load to an innocuous variant, in case declares shl_load. - For example, HP-UX 11i declares gettimeofday. */ -#define shl_load innocuous_shl_load -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char shl_load (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef shl_load -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_shl_load || defined __stub___shl_load -choke me -#endif -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + use_additional=yes - ac_cv_func_shl_load=no -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libintl-prefix was given. +if test "${with_libintl_prefix+set}" = set; then : + withval=$with_libintl_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } -if test $ac_cv_func_shl_load = yes; then - lt_cv_dlopen="shl_load" -else - { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_shl_load=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + LIBINTL= + LTLIBINTL= + INCINTL= + LIBINTL_PREFIX= + HAVE_LIBINTL= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='intl ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'intl'; then + LIBINTL_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'intl'; then + LIBINTL_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBINTL; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" + ;; + esac + done + fi + else + LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" + done + fi - ac_cv_lib_dld_shl_load=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } -if test $ac_cv_lib_dld_shl_load = yes; then - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" -else - { echo "$as_me:$LINENO: checking for dlopen" >&5 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } -if test "${ac_cv_func_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define dlopen to an innocuous variant, in case declares dlopen. - For example, HP-UX 11i declares gettimeofday. */ -#define dlopen innocuous_dlopen -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char dlopen (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef dlopen -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +$as_echo_n "checking for GNU gettext in libintl... " >&6; } +if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + gt_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCINTL" + gt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBINTL" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern #ifdef __cplusplus -extern "C" -#endif -char dlopen (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_dlopen || defined __stub___dlopen -choke me +"C" #endif - +const char *_nl_expand_alias (const char *); int main () { -return dlopen (); +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_dlopen=yes +if ac_fn_c_try_link "$LINENO"; then : + eval "$gt_func_gnugettext_libintl=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_dlopen=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + eval "$gt_func_gnugettext_libintl=no" fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } -if test $ac_cv_func_dlopen = yes; then - lt_cv_dlopen="dlopen" -else - { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then + LIBS="$LIBS $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ +#include +$gt_revision_test_code +extern int _nl_msg_cat_cntr; +extern #ifdef __cplusplus -extern "C" +"C" #endif -char dlopen (); +const char *_nl_expand_alias (const char *); int main () { -return dlopen (); +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dl_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" - ac_cv_lib_dl_dlopen=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + CPPFLAGS="$gt_save_CPPFLAGS" + LIBS="$gt_save_LIBS" fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } -if test $ac_cv_lib_dl_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -else - { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +eval ac_res=\$$gt_func_gnugettext_libintl + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_svld_dlopen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ + || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ + && test "$PACKAGE" != gettext-runtime \ + && test "$PACKAGE" != gettext-tools; }; then + gt_use_preinstalled_gnugettext=yes + else + LIBINTL= + LTLIBINTL= + INCINTL= + fi - ac_cv_lib_svld_dlopen=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } -if test $ac_cv_lib_svld_dlopen = yes; then - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -else - { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test "$gt_use_preinstalled_gnugettext" != "yes"; then + nls_cv_use_gnu_gettext=yes + fi + fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_dld_dld_link=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "$nls_cv_use_gnu_gettext" = "yes"; then + BUILD_INCLUDED_LIBINTL=yes + USE_INCLUDED_LIBINTL=yes + LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" + LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" + LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` + fi - ac_cv_lib_dld_dld_link=no -fi + CATOBJEXT= + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + CATOBJEXT=.gmo + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } -if test $ac_cv_lib_dld_dld_link = yes; then - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" -fi + if test -n "$INTL_MACOSX_LIBS"; then + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then + LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" + LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" + fi + fi -fi + if test "$gt_use_preinstalled_gnugettext" = "yes" \ + || test "$nls_cv_use_gnu_gettext" = "yes"; then +$as_echo "#define ENABLE_NLS 1" >>confdefs.h -fi + else + USE_NLS=no + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +$as_echo_n "checking whether to use NLS... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + if test "$USE_NLS" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +$as_echo_n "checking where the gettext function comes from... " >&6; } + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + gt_source="external libintl" + else + gt_source="libc" + fi + else + gt_source="included intl directory" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +$as_echo "$gt_source" >&6; } + fi -fi + if test "$USE_NLS" = "yes"; then + if test "$gt_use_preinstalled_gnugettext" = "yes"; then + if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +$as_echo_n "checking how to link with libintl... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +$as_echo "$LIBINTL" >&6; } -fi + for element in $INCINTL; do + haveit= + for x in $CPPFLAGS; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - ;; - esac + fi - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no + +$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h + + +$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h + + fi + + POSUB=po fi - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then + BUILD_INCLUDED_LIBINTL=yes + fi - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" - { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif -#include -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif + nls_cv_header_intl= + nls_cv_header_libgt= -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif + DATADIRNAME=share -#ifdef __cplusplus -extern "C" void exit (int); -#endif -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; + INSTOBJEXT=.mo - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* + GENCAT=gencat -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } + INTLOBJS= + if test "$USE_INCLUDED_LIBINTL" = yes; then + INTLOBJS="\$(GETTOBJS)" + fi - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif + INTL_LIBTOOL_SUFFIX_PREFIX=l -#include -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif + INTLLIBS="$LIBINTL" -#ifdef __cplusplus -extern "C" void exit (int); -#endif -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - exit (status); -} -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no + + + + + if test -z "$USE_NLS"; then + echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2 + exit 1 + fi + BISON_LOCALEDIR= + BISON_USE_NLS=no + if test "$USE_NLS" = yes; then + if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then + BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir` + fi + + if test -n "$BISON_LOCALEDIR"; then + USER_LINGUAS="${LINGUAS-%UNSET%}" + if test -n "$USER_LINGUAS"; then + BISON_USE_NLS=yes + fi + fi + fi + if test $BISON_USE_NLS = yes; then + +$as_echo "#define YYENABLE_NLS 1" >>confdefs.h + fi + + +MSGMERGE_LIBM=? +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #ifndef __NO_MATH_INLINES + # define __NO_MATH_INLINES 1 /* for glibc */ + #endif + #include + double x; +int +main () +{ +x = ceil(x); x = sqrt(x); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + MSGMERGE_LIBM= fi -rm -fr conftest* +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test "$MSGMERGE_LIBM" = "?"; then + save_LIBS="$LIBS" + LIBS="$LIBS -lm" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #ifndef __NO_MATH_INLINES + # define __NO_MATH_INLINES 1 /* for glibc */ + #endif + #include + double x; +int +main () +{ +x = ceil(x); x = sqrt(x); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + MSGMERGE_LIBM="-lm" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$save_LIBS" +fi +if test "$MSGMERGE_LIBM" = "?"; then + MSGMERGE_LIBM= +fi + + + + + + + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ + + -fi -{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } - fi - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac + + + + for ac_func in $gl_func_list +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + fi +done -# Report which library types will actually be built -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } - -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { echo "$as_me:$LINENO: creating $ofile" >&5 -echo "$as_me: creating $ofile" >&6;} - cat <<__EOF__ >> "$cfgfile" -#! $SHELL -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. -# A sed program that does not truncate output. -SED=$lt_SED -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# The names of the tagged configurations supported by this script. -available_tags= -# ### BEGIN LIBTOOL CONFIG -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 +$as_echo_n "checking whether // is distinct from /... " >&6; } +if test "${gl_cv_double_slash_root+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 +$as_echo "$gl_cv_double_slash_root" >&6; } + if test "$gl_cv_double_slash_root" = yes; then -# Whether or not to build static libraries. -build_old_libs=$enable_static +$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc + fi -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS + : -# A language-specific compiler. -CC=$lt_compiler -# Is the compiler the GNU C compiler? -with_gcc=$GCC -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD -# Whether we need hard or soft links. -LN_S=$lt_LN_S + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5 +$as_echo_n "checking whether realpath works... " >&6; } +if test "${gl_cv_func_realpath_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# A BSD-compatible nm program. -NM=$lt_NM + touch conftest.a + if test "$cross_compiling" = yes; then : + gl_cv_func_realpath_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + #include -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +int +main () +{ -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" + char *name1 = realpath ("conftest.a", NULL); + char *name2 = realpath ("conftest.b/../conftest.a", NULL); + char *name3 = realpath ("conftest.a/", NULL); + return !(name1 && *name1 == '/' && !name2 && !name3); -# Used on cygwin: assembler. -AS="$AS" + ; + return 0; +} -# The name of the directory that contains temporary libtool files. -objdir=$objdir +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_realpath_works=yes +else + gl_cv_func_realpath_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5 +$as_echo "$gl_cv_func_realpath_works" >&6; } + if test "$gl_cv_func_realpath_works" = yes; then -# Object file suffix (normally "o"). -objext="$ac_objext" +$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h -# Old archive suffix (normally "a"). -libext="$libext" + fi -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len + : -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec + : -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds + GNULIB_ATOLL=0; + GNULIB_CALLOC_POSIX=0; + GNULIB_CANONICALIZE_FILE_NAME=0; + GNULIB_GETLOADAVG=0; + GNULIB_GETSUBOPT=0; + GNULIB_GRANTPT=0; + GNULIB_MALLOC_POSIX=0; + GNULIB_MKDTEMP=0; + GNULIB_MKOSTEMP=0; + GNULIB_MKOSTEMPS=0; + GNULIB_MKSTEMP=0; + GNULIB_MKSTEMPS=0; + GNULIB_PTSNAME=0; + GNULIB_PUTENV=0; + GNULIB_RANDOM_R=0; + GNULIB_REALLOC_POSIX=0; + GNULIB_REALPATH=0; + GNULIB_RPMATCH=0; + GNULIB_SETENV=0; + GNULIB_STRTOD=0; + GNULIB_STRTOLL=0; + GNULIB_STRTOULL=0; + GNULIB_UNLOCKPT=0; + GNULIB_UNSETENV=0; + HAVE_ATOLL=1; + HAVE_CALLOC_POSIX=1; + HAVE_CANONICALIZE_FILE_NAME=1; + HAVE_DECL_GETLOADAVG=1; + HAVE_GETSUBOPT=1; + HAVE_GRANTPT=1; + HAVE_MALLOC_POSIX=1; + HAVE_MKDTEMP=1; + HAVE_MKOSTEMP=1; + HAVE_MKOSTEMPS=1; + HAVE_MKSTEMP=1; + HAVE_MKSTEMPS=1; + HAVE_PTSNAME=1; + HAVE_RANDOM_R=1; + HAVE_REALLOC_POSIX=1; + HAVE_REALPATH=1; + HAVE_RPMATCH=1; + HAVE_SETENV=1; + HAVE_STRTOD=1; + HAVE_STRTOLL=1; + HAVE_STRTOULL=1; + HAVE_STRUCT_RANDOM_DATA=1; + HAVE_SYS_LOADAVG_H=0; + HAVE_UNLOCKPT=1; + HAVE_UNSETENV=1; + REPLACE_CANONICALIZE_FILE_NAME=0; + REPLACE_MKSTEMP=0; + REPLACE_PUTENV=0; + REPLACE_REALPATH=0; + REPLACE_SETENV=0; + REPLACE_STRTOD=0; + REPLACE_UNSETENV=0; -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method + GNULIB_CHOWN=0; + GNULIB_CLOSE=0; + GNULIB_DUP2=0; + GNULIB_DUP3=0; + GNULIB_ENVIRON=0; + GNULIB_EUIDACCESS=0; + GNULIB_FACCESSAT=0; + GNULIB_FCHDIR=0; + GNULIB_FCHOWNAT=0; + GNULIB_FSYNC=0; + GNULIB_FTRUNCATE=0; + GNULIB_GETCWD=0; + GNULIB_GETDOMAINNAME=0; + GNULIB_GETDTABLESIZE=0; + GNULIB_GETGROUPS=0; + GNULIB_GETHOSTNAME=0; + GNULIB_GETLOGIN=0; + GNULIB_GETLOGIN_R=0; + GNULIB_GETPAGESIZE=0; + GNULIB_GETUSERSHELL=0; + GNULIB_LCHOWN=0; + GNULIB_LINK=0; + GNULIB_LINKAT=0; + GNULIB_LSEEK=0; + GNULIB_PIPE2=0; + GNULIB_PREAD=0; + GNULIB_PWRITE=0; + GNULIB_READLINK=0; + GNULIB_READLINKAT=0; + GNULIB_RMDIR=0; + GNULIB_SLEEP=0; + GNULIB_SYMLINK=0; + GNULIB_SYMLINKAT=0; + GNULIB_TTYNAME_R=0; + GNULIB_UNISTD_H_GETOPT=0; + GNULIB_UNISTD_H_SIGPIPE=0; + GNULIB_UNLINK=0; + GNULIB_UNLINKAT=0; + GNULIB_USLEEP=0; + GNULIB_WRITE=0; + HAVE_CHOWN=1; + HAVE_DUP2=1; + HAVE_DUP3=1; + HAVE_EUIDACCESS=1; + HAVE_FACCESSAT=1; + HAVE_FCHDIR=1; + HAVE_FCHOWNAT=1; + HAVE_FSYNC=1; + HAVE_FTRUNCATE=1; + HAVE_GETDOMAINNAME=1; + HAVE_GETDTABLESIZE=1; + HAVE_GETGROUPS=1; + HAVE_GETHOSTNAME=1; + HAVE_GETLOGIN=1; + HAVE_GETPAGESIZE=1; + HAVE_LCHOWN=1; + HAVE_LINK=1; + HAVE_LINKAT=1; + HAVE_PIPE2=1; + HAVE_PREAD=1; + HAVE_PWRITE=1; + HAVE_READLINK=1; + HAVE_READLINKAT=1; + HAVE_SLEEP=1; + HAVE_SYMLINK=1; + HAVE_SYMLINKAT=1; + HAVE_TTYNAME_R=1; + HAVE_UNLINKAT=1; + HAVE_USLEEP=1; + HAVE_DECL_ENVIRON=1; + HAVE_DECL_GETLOGIN_R=1; + HAVE_DECL_GETPAGESIZE=1; + HAVE_DECL_GETUSERSHELL=1; + HAVE_OS_H=0; + HAVE_SYS_PARAM_H=0; + REPLACE_CHOWN=0; + REPLACE_CLOSE=0; + REPLACE_DUP=0; + REPLACE_DUP2=0; + REPLACE_FCHOWNAT=0; + REPLACE_GETCWD=0; + REPLACE_GETGROUPS=0; + REPLACE_GETPAGESIZE=0; + REPLACE_LCHOWN=0; + REPLACE_LINK=0; + REPLACE_LINKAT=0; + REPLACE_LSEEK=0; + REPLACE_PREAD=0; + REPLACE_PWRITE=0; + REPLACE_READLINK=0; + REPLACE_RMDIR=0; + REPLACE_SLEEP=0; + REPLACE_SYMLINK=0; + REPLACE_TTYNAME_R=0; + REPLACE_UNLINK=0; + REPLACE_UNLINKAT=0; + REPLACE_USLEEP=0; + REPLACE_WRITE=0; + UNISTD_H_HAVE_WINSOCK2_H=0; + UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 +$as_echo_n "checking if environ is properly declared... " >&6; } + if test "${gt_cv_var_environ_declaration+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + extern struct { int foo; } environ; +int +main () +{ +environ.foo = 1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_var_environ_declaration=no +else + gt_cv_var_environ_declaration=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 +$as_echo "$gt_cv_var_environ_declaration" >&6; } + if test $gt_cv_var_environ_declaration = yes; then -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld +$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator + fi -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L + if test $gt_cv_var_environ_declaration != yes; then + HAVE_DECL_ENVIRON=0 + fi -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 +$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } +if test "${gl_cv_have_include_next+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + cat < conftestd1a/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat < conftestd2/conftest.h +#ifndef DEFINED_IN_CONFTESTD1 +#error "include_next test doesn't work" +#endif +#define DEFINED_IN_CONFTESTD2 +EOF + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=yes +else + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_have_include_next=buggy +else + gl_cv_have_include_next=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 +$as_echo "$gl_cv_have_include_next" >&6; } + PRAGMA_SYSTEM_HEADER= + if test $gl_cv_have_include_next = yes; then + INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi + else + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi + fi -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms -# ### END LIBTOOL CONFIG -__EOF__ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 +$as_echo_n "checking for complete errno.h... " >&6; } +if test "${gl_cv_header_errno_h_complete+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "booboo" >/dev/null 2>&1; then : + gl_cv_header_errno_h_complete=no +else + gl_cv_header_errno_h_complete=yes fi -EOF - ;; - esac +rm -f conftest* - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 +$as_echo "$gl_cv_header_errno_h_complete" >&6; } + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_errno_h='<'errno.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_errno_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" + + if test $ac_cv_header_errno_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/errno.h#{ + s#.*"\(.*/errno.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_errno_h='<'errno.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 +$as_echo "$gl_cv_next_errno_h" >&6; } + fi + NEXT_ERRNO_H=$gl_cv_next_errno_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'errno.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_errno_h + fi + NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive + + + + ERRNO_H='errno.h' fi + + + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 +$as_echo_n "checking for EMULTIHOP value... " >&6; } +if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef EMULTIHOP +yes +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=yes +else + gl_cv_header_errno_h_EMULTIHOP=no fi +rm -f conftest* + if test $gl_cv_header_errno_h_EMULTIHOP = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EMULTIHOP +yes +#endif -CC="$lt_save_CC" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EMULTIHOP=hidden +fi +rm -f conftest* + if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then + if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then - withval=$with_tags; tagnames="$withval" fi + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 +$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } + case $gl_cv_header_errno_h_EMULTIHOP in + yes | no) + EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= + ;; + *) + EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" + ;; + esac -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 -echo "$as_me: error: invalid tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 +$as_echo_n "checking for ENOLINK value... " >&6; } +if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} - { (exit 1); exit 1; }; } - fi - - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef ENOLINK +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=yes +else + gl_cv_header_errno_h_ENOLINK=no +fi +rm -f conftest* + if test $gl_cv_header_errno_h_ENOLINK = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -archive_cmds_need_lc_CXX=no -allow_undefined_flag_CXX= -always_export_symbols_CXX=no -archive_expsym_cmds_CXX= -export_dynamic_flag_spec_CXX= -hardcode_direct_CXX=no -hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= -hardcode_libdir_separator_CXX= -hardcode_minus_L_CXX=no -hardcode_shlibpath_var_CXX=unsupported -hardcode_automatic_CXX=no -module_cmds_CXX= -module_expsym_cmds_CXX= -link_all_deplibs_CXX=unknown -old_archive_cmds_CXX=$old_archive_cmds -no_undefined_flag_CXX= -whole_archive_flag_spec_CXX= -enable_shared_with_static_runtimes_CXX=no +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ENOLINK +yes +#endif -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_ENOLINK=hidden +fi +rm -f conftest* -# Source file extension for C++ test sources. -ac_ext=cpp + if test $gl_cv_header_errno_h_ENOLINK = hidden; then + if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : -# Object file extension for compiled C++ test sources. -objext=o -objext_CXX=$objext +fi + + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 +$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } + case $gl_cv_header_errno_h_ENOLINK in + yes | no) + ENOLINK_HIDDEN=0; ENOLINK_VALUE= + ;; + *) + ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" + ;; + esac -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + fi -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} + if test -n "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 +$as_echo_n "checking for EOVERFLOW value... " >&6; } +if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Allow CC to be a program name with arguments. -compiler=$CC +#include +#ifdef EOVERFLOW +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=yes +else + gl_cv_header_errno_h_EOVERFLOW=no +fi +rm -f conftest* -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* + if test $gl_cv_header_errno_h_EOVERFLOW = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef EOVERFLOW +yes +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "yes" >/dev/null 2>&1; then : + gl_cv_header_errno_h_EOVERFLOW=hidden +fi +rm -f conftest* + + if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then + if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +"; then : -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD + + fi + fi + fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 +$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } + case $gl_cv_header_errno_h_EOVERFLOW in + yes | no) + EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= + ;; + *) + EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" + ;; + esac + + + fi -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" +if test "x$ac_cv_have_decl_strerror_r" = x""yes; then : + ac_have_decl=1 else - lt_prog_compiler_no_builtin_flag_CXX= + ac_have_decl=0 fi -if test "$GXX" = yes; then - # Set up default GNU C++ configuration +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRERROR_R $ac_have_decl +_ACEOF +for ac_func in strerror_r +do : + ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" +if test "x$ac_cv_func_strerror_r" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRERROR_R 1 +_ACEOF -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no fi +done -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 +$as_echo_n "checking whether strerror_r returns char *... " >&6; } +if test "${ac_cv_func_strerror_r_char_p+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } + + ac_cv_func_strerror_r_char_p=no + if test $ac_cv_have_decl_strerror_r = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ + + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + char *p = strerror_r (0, buf, sizeof buf); + return !p || x; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_func_strerror_r_char_p=yes fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + extern char *strerror_r (); +int +main () +{ +char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + return ! isalpha (x); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_strerror_r_char_p=yes fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -LD="$lt_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + fi + fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 +$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } +if test $ac_cv_func_strerror_r_char_p = yes; then + +$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h + fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld + XGETTEXT_EXTRA_OPTIONS= - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" +if test "x$ac_cv_type_mode_t" = x""yes; then : - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' +else - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' +cat >>confdefs.h <<_ACEOF +#define mode_t int +_ACEOF - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= +fi - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include +" +if test "x$ac_cv_type_sig_atomic_t" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SIG_ATOMIC_T 1 +_ACEOF + else - GXX=no - with_gnu_ld=no - wlarc= + +$as_echo "#define sig_atomic_t int" >>confdefs.h + fi -# PORTME: fill in a description of your system's C++ link characteristics -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - ;; - esac - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + GNULIB_FCNTL=0; + GNULIB_OPEN=0; + GNULIB_OPENAT=0; + HAVE_FCNTL=1; + HAVE_OPENAT=1; + REPLACE_FCNTL=0; + REPLACE_OPEN=0; + REPLACE_OPENAT=0; - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi + + + + + + + ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess" +if test "x$ac_cv_func_eaccess" = x""yes; then : + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define eaccess access" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if test "${ac_cv_type_mbstate_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +# include int main () { - +mbstate_t x; return sizeof x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_mbstate_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_type_mbstate_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } + if test $ac_cv_type_mbstate_t = yes; then +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + + else + +$as_echo "#define mbstate_t int" >>confdefs.h + + fi -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi - ;; - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no - fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' - ;; - esac - link_all_deplibs_CXX=yes - output_verbose_link_cmd='echo' - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no -GCC_CXX="$GXX" -LD_CXX="$LD" -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -cat > conftest.$ac_ext <&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - for p in `eval $output_verbose_link_cmd`; do - case $p in - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then - prev=$p - continue - else - prev= - fi - if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$compiler_lib_search_path_CXX"; then - compiler_lib_search_path_CXX="${prev}${p}" - else - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$postdeps_CXX"; then - postdeps_CXX="${prev}${p}" - else - postdeps_CXX="${postdeps_CXX} ${prev}${p}" - fi - fi - ;; - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - if test "$pre_test_object_deps_done" = no; then - if test -z "$predep_objects_CXX"; then - predep_objects_CXX="$p" - else - predep_objects_CXX="$predep_objects_CXX $p" - fi - else - if test -z "$postdep_objects_CXX"; then - postdep_objects_CXX="$p" - else - postdep_objects_CXX="$postdep_objects_CXX $p" - fi - fi - ;; - *) ;; # Ignore the rest. - esac - done - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling CXX test program" -fi -$rm -f confest.$objext -# PORTME: override above test on systems where it is broken -case $host_os in -interix[3-9]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - predep_objects_CXX= - postdep_objects_CXX= - postdeps_CXX= - ;; -linux*) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; + GNULIB_DPRINTF=0; + GNULIB_FCLOSE=0; + GNULIB_FFLUSH=0; + GNULIB_FOPEN=0; + GNULIB_FPRINTF=0; + GNULIB_FPRINTF_POSIX=0; + GNULIB_FPURGE=0; + GNULIB_FPUTC=0; + GNULIB_FPUTS=0; + GNULIB_FREOPEN=0; + GNULIB_FSEEK=0; + GNULIB_FSEEKO=0; + GNULIB_FTELL=0; + GNULIB_FTELLO=0; + GNULIB_FWRITE=0; + GNULIB_GETDELIM=0; + GNULIB_GETLINE=0; + GNULIB_OBSTACK_PRINTF=0; + GNULIB_OBSTACK_PRINTF_POSIX=0; + GNULIB_PERROR=0; + GNULIB_POPEN=0; + GNULIB_PRINTF=0; + GNULIB_PRINTF_POSIX=0; + GNULIB_PUTC=0; + GNULIB_PUTCHAR=0; + GNULIB_PUTS=0; + GNULIB_REMOVE=0; + GNULIB_RENAME=0; + GNULIB_RENAMEAT=0; + GNULIB_SNPRINTF=0; + GNULIB_SPRINTF_POSIX=0; + GNULIB_STDIO_H_SIGPIPE=0; + GNULIB_TMPFILE=0; + GNULIB_VASPRINTF=0; + GNULIB_VDPRINTF=0; + GNULIB_VFPRINTF=0; + GNULIB_VFPRINTF_POSIX=0; + GNULIB_VPRINTF=0; + GNULIB_VPRINTF_POSIX=0; + GNULIB_VSNPRINTF=0; + GNULIB_VSPRINTF_POSIX=0; + HAVE_DECL_FPURGE=1; + HAVE_DECL_GETDELIM=1; + HAVE_DECL_GETLINE=1; + HAVE_DECL_OBSTACK_PRINTF=1; + HAVE_DECL_SNPRINTF=1; + HAVE_DECL_VSNPRINTF=1; + HAVE_DPRINTF=1; + HAVE_FSEEKO=1; + HAVE_FTELLO=1; + HAVE_RENAMEAT=1; + HAVE_VASPRINTF=1; + HAVE_VDPRINTF=1; + REPLACE_DPRINTF=0; + REPLACE_FCLOSE=0; + REPLACE_FFLUSH=0; + REPLACE_FOPEN=0; + REPLACE_FPRINTF=0; + REPLACE_FPURGE=0; + REPLACE_FREOPEN=0; + REPLACE_FSEEK=0; + REPLACE_FSEEKO=0; + REPLACE_FTELL=0; + REPLACE_FTELLO=0; + REPLACE_GETDELIM=0; + REPLACE_GETLINE=0; + REPLACE_OBSTACK_PRINTF=0; + REPLACE_PERROR=0; + REPLACE_POPEN=0; + REPLACE_PRINTF=0; + REPLACE_REMOVE=0; + REPLACE_RENAME=0; + REPLACE_RENAMEAT=0; + REPLACE_SNPRINTF=0; + REPLACE_SPRINTF=0; + REPLACE_STDIO_WRITE_FUNCS=0; + REPLACE_TMPFILE=0; + REPLACE_VASPRINTF=0; + REPLACE_VDPRINTF=0; + REPLACE_VFPRINTF=0; + REPLACE_VPRINTF=0; + REPLACE_VSNPRINTF=0; + REPLACE_VSPRINTF=0; -solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - postdeps_CXX='-library=Cstd -library=Crun' - fi - ;; - esac - ;; -esac + ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" +if test "x$ac_cv_have_decl_getdelim" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETDELIM $ac_have_decl +_ACEOF -case " $postdeps_CXX " in -*" -lc "*) archive_cmds_need_lc_CXX=no ;; -esac -lt_prog_compiler_wl_CXX= -lt_prog_compiler_pic_CXX= -lt_prog_compiler_static_CXX= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-static' - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_CXX='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - lt_prog_compiler_pic_CXX= - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_CXX=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_CXX='-fPIC' - ;; - esac - else - case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_CXX='-Bstatic' - else - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_CXX='-qnocommon' - lt_prog_compiler_wl_CXX='-Wl,' - ;; - esac - ;; - dgux*) - case $cc_basename in - ec++*) - lt_prog_compiler_pic_CXX='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - lt_prog_compiler_pic_CXX='+Z' - fi - ;; - aCC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_CXX='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_static_CXX='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - lt_prog_compiler_wl_CXX='--backend -Wl,' - lt_prog_compiler_pic_CXX='-fPIC' - ;; - icpc* | ecpc*) - # Intel C++ - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-fpic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - lt_prog_compiler_pic_CXX='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - lt_prog_compiler_wl_CXX='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - lt_prog_compiler_pic_CXX='-pic' - ;; - cxx*) - # Digital/Compaq C++ - lt_prog_compiler_wl_CXX='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - lt_prog_compiler_pic_CXX= - lt_prog_compiler_static_CXX='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - lt_prog_compiler_wl_CXX='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - lt_prog_compiler_pic_CXX='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - lt_prog_compiler_pic_CXX='-pic' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - lcc*) - # Lucid - lt_prog_compiler_pic_CXX='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - lt_prog_compiler_pic_CXX='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - lt_prog_compiler_wl_CXX='-Wl,' - lt_prog_compiler_pic_CXX='-KPIC' - lt_prog_compiler_static_CXX='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - lt_prog_compiler_can_build_shared_CXX=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_CXX"; then -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_CXX=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15539: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:15543: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_CXX=yes - fi - fi - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then - case $lt_prog_compiler_pic_CXX in - "" | " "*) ;; - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; - esac + + + + ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" +if test "x$ac_cv_have_decl_getline" = x""yes; then : + ac_have_decl=1 else - lt_prog_compiler_pic_CXX= - lt_prog_compiler_can_build_shared_CXX=no + ac_have_decl=0 fi -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_CXX= - ;; - *) - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" - ;; -esac +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETLINE $ac_have_decl +_ACEOF -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_CXX=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_CXX=yes - fi - else - lt_prog_compiler_static_works_CXX=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } -if test x"$lt_prog_compiler_static_works_CXX" = xyes; then - : -else - lt_prog_compiler_static_CXX= -fi -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_CXX=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15643: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:15647: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_CXX=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - export_symbols_cmds_CXX="$ltdll_cmds" - ;; - cygwin* | mingw*) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - ;; - *) - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 -echo "${ECHO_T}$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_CXX" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_CXX=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_CXX in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_CXX - pic_flag=$lt_prog_compiler_pic_CXX - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX - allow_undefined_flag_CXX= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_CXX=no - else - archive_cmds_need_lc_CXX=yes - fi - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } - ;; - esac - fi - ;; -esac + : -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; + if test $gl_cv_have_include_next = yes; then + gl_cv_next_getopt_h='<'getopt.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_getopt_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; + if test $ac_cv_header_getopt_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/getopt.h#{ + s#.*"\(.*/getopt.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_getopt_h='<'getopt.h'>' + fi -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 +$as_echo "$gl_cv_next_getopt_h" >&6; } + fi + NEXT_GETOPT_H=$gl_cv_next_getopt_h - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'getopt.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_getopt_h + fi + NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; + : -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; + if test $ac_cv_header_getopt_h = yes; then + HAVE_GETOPT_H=1 + else + HAVE_GETOPT_H=0 + fi -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; + gl_replace_getopt= -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + for ac_header in getopt.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" +if test "x$ac_cv_header_getopt_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_H 1 +_ACEOF -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes +else + gl_replace_getopt=yes +fi + +done - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + for ac_func in getopt_long_only +do : + ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" +if test "x$ac_cv_func_getopt_long_only" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETOPT_LONG_ONLY 1 +_ACEOF + +else + gl_replace_getopt=yes +fi +done -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; + if test -z "$gl_replace_getopt"; then + ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include +" +if test "x$ac_cv_have_decl_optreset" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_OPTRESET $ac_have_decl +_ACEOF +if test $ac_have_decl = 1; then : + +else + ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include +" +if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETOPT_CLIP $ac_have_decl +_ACEOF + + +fi -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; + if test -z "$gl_replace_getopt"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 +$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } +if test "${gl_cv_func_getopt_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; + if test "$cross_compiling" = yes; then : + case "$host_os" in + mingw*) gl_cv_func_getopt_posix="guessing no";; + darwin*) gl_cv_func_getopt_posix="guessing no";; + *) gl_cv_func_getopt_posix="guessing yes";; + esac -rdos*) - dynamic_linker=no - ;; +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; +#include +#include +#include -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; +#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP +# define OPTIND_MIN 0 +#else +# define OPTIND_MIN 1 +#endif -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; +int +main () +{ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; + c = getopt (argc, argv, "ab"); + if (!(c == 'a')) + return 1; + c = getopt (argc, argv, "ab"); + if (!(c == -1)) + return 2; + if (!(optind == 2)) + return 3; + } + /* Some internal state exists at this point. */ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "+abp:q:"); + if (!(c == -1)) + return 4; + if (!(strcmp (argv[0], "program") == 0)) + return 5; + if (!(strcmp (argv[1], "donald") == 0)) + return 6; + if (!(strcmp (argv[2], "-p") == 0)) + return 7; + if (!(strcmp (argv[3], "billy") == 0)) + return 8; + if (!(strcmp (argv[4], "duck") == 0)) + return 9; + if (!(strcmp (argv[5], "-a") == 0)) + return 10; + if (!(strcmp (argv[6], "bar") == 0)) + return 11; + if (!(optind == 1)) + return 12; + } + /* Detect MacOS 10.5 bug. */ + { + char *argv[3] = { "program", "-ab", NULL }; + optind = OPTIND_MIN; + opterr = 0; + if (getopt (2, argv, "ab:") != 'a') + return 13; + if (getopt (2, argv, "ab:") != '?') + return 14; + if (optopt != 'b') + return 15; + if (optind != 2) + return 16; + } -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; + return 0; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_getopt_posix=yes +else + gl_cv_func_getopt_posix=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 +$as_echo "$gl_cv_func_getopt_posix" >&6; } + case "$gl_cv_func_getopt_posix" in + *no) gl_replace_getopt=yes ;; esac fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 +$as_echo_n "checking for working GNU getopt function... " >&6; } +if test "${gl_cv_func_getopt_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the + # optstring is necessary for programs like m4 that have POSIX-mandated + # semantics for supporting options interspersed with files. + # Also, since getopt_long is a GNU extension, we require optind=0. + gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes} + POSIXLY_CORRECT=1 + export POSIXLY_CORRECT + if test "$cross_compiling" = yes; then : + case $host_os:$ac_cv_have_decl_optreset in + *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; + *:yes) gl_cv_func_getopt_gnu=no;; + *) gl_cv_func_getopt_gnu=yes;; + esac -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +int +main () +{ + + /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, + and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, + OSF/1 5.1, Solaris 10. */ + { + char *myargv[3]; + myargv[0] = "conftest"; + myargv[1] = "-+"; + myargv[2] = 0; + opterr = 0; + if (getopt (2, myargv, "+a") != '?') + return 1; + } + /* This code succeeds on glibc 2.8, mingw, + and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, + IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ + { + char *argv[] = { "program", "-p", "foo", "bar", NULL }; + + optind = 1; + if (getopt (4, argv, "p::") != 'p') + return 2; + if (optarg != NULL) + return 3; + if (getopt (4, argv, "p::") != -1) + return 4; + if (optind != 2) + return 5; + } + /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ + { + char *argv[] = { "program", "foo", "-p", NULL }; + optind = 0; + if (getopt (3, argv, "-p") != 1) + return 6; + if (getopt (3, argv, "-p") != 'p') + return 7; + } + /* This code fails on glibc 2.11. */ + { + char *argv[] = { "program", "-b", "-a", NULL }; + optind = opterr = 0; + if (getopt (3, argv, "+:a:b") != 'b') + return 8; + if (getopt (3, argv, "+:a:b") != ':') + return 9; + } + return 0; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_getopt_gnu=yes +else + gl_cv_func_getopt_gnu=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_CXX= -if test -n "$hardcode_libdir_flag_spec_CXX" || \ - test -n "$runpath_var_CXX" || \ - test "X$hardcode_automatic_CXX" = "Xyes" ; then + if test "$gl_had_POSIXLY_CORRECT" != yes; then + { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} + fi - # We can hardcode non-existant directories. - if test "$hardcode_direct_CXX" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && - test "$hardcode_minus_L_CXX" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_CXX=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_CXX=immediate +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 +$as_echo "$gl_cv_func_getopt_gnu" >&6; } + if test "$gl_cv_func_getopt_gnu" = "no"; then + gl_replace_getopt=yes + fi fi + + + ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" +if test "x$ac_cv_have_decl_getenv" = x""yes; then : + ac_have_decl=1 else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_CXX=unsupported + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 -echo "${ECHO_T}$hardcode_action_CXX" >&6; } -if test "$hardcode_action_CXX" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETENV $ac_have_decl +_ACEOF + + + + + + + + if test -n "$gl_replace_getopt"; then : + + + + GETOPT_H=getopt.h + +$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h + + + + GNULIB_UNISTD_H_GETOPT=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" + + + + : + + + + + + + + fi -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_CXX \ - CC_CXX \ - LD_CXX \ - lt_prog_compiler_wl_CXX \ - lt_prog_compiler_pic_CXX \ - lt_prog_compiler_static_CXX \ - lt_prog_compiler_no_builtin_flag_CXX \ - export_dynamic_flag_spec_CXX \ - thread_safe_flag_spec_CXX \ - whole_archive_flag_spec_CXX \ - enable_shared_with_static_runtimes_CXX \ - old_archive_cmds_CXX \ - old_archive_from_new_cmds_CXX \ - predep_objects_CXX \ - postdep_objects_CXX \ - predeps_CXX \ - postdeps_CXX \ - compiler_lib_search_path_CXX \ - archive_cmds_CXX \ - archive_expsym_cmds_CXX \ - postinstall_cmds_CXX \ - postuninstall_cmds_CXX \ - old_archive_from_expsyms_cmds_CXX \ - allow_undefined_flag_CXX \ - no_undefined_flag_CXX \ - export_symbols_cmds_CXX \ - hardcode_libdir_flag_spec_CXX \ - hardcode_libdir_flag_spec_ld_CXX \ - hardcode_libdir_separator_CXX \ - hardcode_automatic_CXX \ - module_cmds_CXX \ - module_expsym_cmds_CXX \ - lt_cv_prog_compiler_c_o_CXX \ - fix_srcfile_path_CXX \ - exclude_expsyms_CXX \ - include_expsyms_CXX; do - - case $var in - old_archive_cmds_CXX | \ - old_archive_from_new_cmds_CXX | \ - archive_cmds_CXX | \ - archive_expsym_cmds_CXX | \ - module_cmds_CXX | \ - module_expsym_cmds_CXX | \ - old_archive_from_expsyms_cmds_CXX | \ - export_symbols_cmds_CXX | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 +$as_echo_n "checking for C/C++ restrict keyword... " >&6; } +if test "${ac_cv_c_restrict+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_restrict=no + # The order here caters to the fact that C++ does not require restrict. + for ac_kw in __restrict __restrict__ _Restrict restrict; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +typedef int * int_ptr; + int foo (int_ptr $ac_kw ip) { + return ip[0]; + } +int +main () +{ +int s[1]; + int * $ac_kw t = s; + t[0] = 0; + return foo(t) + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_restrict=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_restrict" != no && break + done - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 +$as_echo "$ac_cv_c_restrict" >&6; } -cfgfile="$ofile" + case $ac_cv_c_restrict in + restrict) ;; + no) $as_echo "#define restrict /**/" >>confdefs.h + ;; + *) cat >>confdefs.h <<_ACEOF +#define restrict $ac_cv_c_restrict +_ACEOF + ;; + esac - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + GNULIB_GETTIMEOFDAY=0; + HAVE_GETTIMEOFDAY=1; + HAVE_STRUCT_TIMEVAL=1; + HAVE_SYS_TIME_H=1; + REPLACE_GETTIMEOFDAY=0; -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_CXX -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS + : -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_CXX -# Is the compiler the GNU C compiler? -with_gcc=$GCC_CXX -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_CXX -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP + : -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_CXX + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_time_h='<'sys/time.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Object file suffix (normally "o"). -objext="$ac_objext" + if test $ac_cv_header_sys_time_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -# Old archive suffix (normally "a"). -libext="$libext" +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/time.h#{ + s#.*"\(.*/sys/time.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_time_h='<'sys/time.h'>' + fi -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 +$as_echo "$gl_cv_next_sys_time_h" >&6; } + fi + NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h -# Executable file suffix (normally ""). -exeext="$exeext" + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/time.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_time_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_CXX -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX -# Must we lock files when doing compilation? -need_locks=$lt_need_locks + if test $ac_cv_header_sys_time_h != yes; then + HAVE_SYS_TIME_H=0 + fi -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 +$as_echo_n "checking for struct timeval... " >&6; } +if test "${gl_cv_sys_struct_timeval+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if HAVE_SYS_TIME_H + #include + #endif + #include -# Do we need a version for libraries? -need_version=$need_version +int +main () +{ +static struct timeval x; x.tv_sec = x.tv_usec; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timeval=yes +else + gl_cv_sys_struct_timeval=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 +$as_echo "$gl_cv_sys_struct_timeval" >&6; } + if test $gl_cv_sys_struct_timeval != yes; then + HAVE_STRUCT_TIMEVAL=0 + fi -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self + for gl_func in gettimeofday; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static +#if HAVE_SYS_TIME_H +# include +#endif +#include -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_CXX +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" +else + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + eval ac_cv_have_decl_$gl_func=yes +fi + done -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_CXX -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_CXX -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds + REPLACE_ICONV=0; + REPLACE_ICONV_OPEN=0; + REPLACE_ICONV_UTF=0; + ICONV_H=''; + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5 +$as_echo_n "checking whether included glib is requested... " >&6; } -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_CXX -module_expsym_cmds=$lt_module_expsym_cmds_CXX +# Check whether --with-included-glib was given. +if test "${with_included_glib+set}" = set; then : + withval=$with_included_glib; gl_cv_libglib_force_included=$withval +else + gl_cv_libglib_force_included=no +fi -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5 +$as_echo "$gl_cv_libglib_force_included" >&6; } -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_CXX + gl_cv_libglib_use_included="$gl_cv_libglib_force_included" + LIBGLIB= + LTLIBGLIB= + INCGLIB= + if test "$gl_cv_libglib_use_included" != yes; then + if test "${gl_cv_libglib+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_CXX + gl_cv_libglib=no + gl_cv_LIBGLIB= + gl_cv_LTLIBGLIB= + gl_cv_INCGLIB= + gl_save_LIBS="$LIBS" -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_CXX -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_CXX -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_CXX -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_CXX + use_additional=yes -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address +# Check whether --with-libglib-2.0-prefix was given. +if test "${with_libglib_20_prefix+set}" = set; then : + withval=$with_libglib_20_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -# This is the shared library runtime path variable. -runpath_var=$runpath_var + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -# This is the shared library path variable. -shlibpath_var=$shlibpath_var + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_CXX + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs +fi -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + LIBGLIB_2_0= + LTLIBGLIB_2_0= + INCGLIB_2_0= + LIBGLIB_2_0_PREFIX= + HAVE_LIBGLIB_2_0= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='glib-2.0 ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBGLIB_2_0; do -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBGLIB_2_0; do -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_CXX + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_CXX + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a" + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'glib-2.0'; then + LIBGLIB_2_0_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'glib-2.0'; then + LIBGLIB_2_0_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCGLIB_2_0; do -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_CXX + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBGLIB_2_0; do -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_CXX + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBGLIB_2_0; do -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep" + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep" + ;; + esac + done + fi + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir" + done + fi -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_CXX -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_CXX -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_CXX -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_CXX + LIBS="$gl_save_LIBS $LIBGLIB_2_0" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif -# ### END LIBTOOL TAG CONFIG: $tagname +int +main () +{ +g_string_new ("foo"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" -__EOF__ +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libglib" != yes; then + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +int +main () +{ +g_string_new ("foo"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" + gl_cv_INCGLIB="$INCGLIB_2_0" -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libglib" != yes; then + if test -n "$LIBGLIB_2_0_PREFIX"; then + CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +int +main () +{ +g_string_new ("foo"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" + gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + fi + CPPFLAGS="$gl_save_CPPFLAGS" + fi + LIBS="$gl_save_LIBS" -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi - else - tagname="" - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5 +$as_echo_n "checking for glib... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5 +$as_echo "$gl_cv_libglib" >&6; } + if test $gl_cv_libglib = yes; then + LIBGLIB="$gl_cv_LIBGLIB" + LTLIBGLIB="$gl_cv_LTLIBGLIB" + INCGLIB="$gl_cv_INCGLIB" + else + gl_cv_libglib_use_included=yes + fi + fi - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then -ac_ext=f -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_f77_compiler_gnu - - -archive_cmds_need_lc_F77=no -allow_undefined_flag_F77= -always_export_symbols_F77=no -archive_expsym_cmds_F77= -export_dynamic_flag_spec_F77= -hardcode_direct_F77=no -hardcode_libdir_flag_spec_F77= -hardcode_libdir_flag_spec_ld_F77= -hardcode_libdir_separator_F77= -hardcode_minus_L_F77=no -hardcode_automatic_F77=no -module_cmds_F77= -module_expsym_cmds_F77= -link_all_deplibs_F77=unknown -old_archive_cmds_F77=$old_archive_cmds -no_undefined_flag_F77= -whole_archive_flag_spec_F77= -enable_shared_with_static_runtimes_F77=no -# Source file extension for f77 test sources. -ac_ext=f + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5 +$as_echo_n "checking whether to use the included glib... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5 +$as_echo "$gl_cv_libglib_use_included" >&6; } -# Object file extension for compiled f77 test sources. -objext=o -objext_F77=$objext + if test "$gl_cv_libglib_use_included" = yes; then + LIBGLIB_H= + LIBGLIB_H="$LIBGLIB_H glib.h" + LIBGLIB_H="$LIBGLIB_H glibconfig.h" + LIBGLIB_H="$LIBGLIB_H glib/ghash.h" + LIBGLIB_H="$LIBGLIB_H glib/glist.h" + LIBGLIB_H="$LIBGLIB_H glib/gprimes.h" + LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h" + LIBGLIB_H="$LIBGLIB_H glib/gstring.h" + LIBGLIB_H="$LIBGLIB_H glib/gtypes.h" -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" + for ac_header in unistd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UNISTD_H 1 +_ACEOF -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" +fi -# ltmain only uses $CC for tagged configurations so make sure $CC is set. +done -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} + else + LIBGLIB_H= + fi -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC + if test "$gl_cv_libglib_use_included" = yes; then + INCLUDED_LIBGLIB_TRUE= + INCLUDED_LIBGLIB_FALSE='#' +else + INCLUDED_LIBGLIB_TRUE='#' + INCLUDED_LIBGLIB_FALSE= +fi -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -compiler_F77=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } -{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6; } -{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } -test "$can_build_shared" = "no" && enable_shared=no -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6; } -{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6; } - -GCC_F77="$G77" -LD_F77="$LD" - -lt_prog_compiler_wl_F77= -lt_prog_compiler_pic_F77= -lt_prog_compiler_static_F77= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } - if test "$GCC" = yes; then - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_static_F77='-static' - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libunistring is requested" >&5 +$as_echo_n "checking whether included libunistring is requested... " >&6; } - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' - ;; +# Check whether --with-included-libunistring was given. +if test "${with_included_libunistring+set}" = set; then : + withval=$with_included_libunistring; gl_libunistring_force_included=$withval +else + gl_libunistring_force_included=no +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_force_included" >&5 +$as_echo "$gl_libunistring_force_included" >&6; } + gl_libunistring_use_included="$gl_libunistring_force_included" + if test "$gl_libunistring_use_included" = yes; then + if test -z "$HAVE_LIBUNISTRING"; then + HAVE_LIBUNISTRING=no + fi + LIBUNISTRING= + LTLIBUNISTRING= + else - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; + if test -n "$LIBICONV"; then - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_F77='-fno-common' - ;; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_F77=no - enable_shared=no - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_F77=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_F77='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_F77='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_F77='-Bstatic' - else - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_F77='-qnocommon' - lt_prog_compiler_wl_F77='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_F77='-DDLL_EXPORT' - ;; - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_F77='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_F77='${wl}-a ${wl}archive' - ;; - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_F77='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_F77='-non_shared' - ;; - newsos6) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-fpic' - lt_prog_compiler_static_F77='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_F77='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - como) - lt_prog_compiler_wl_F77='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - lt_prog_compiler_wl_F77='' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_F77='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_F77='-non_shared' - ;; - rdos*) - lt_prog_compiler_static_F77='-non_shared' - ;; + use_additional=yes - solaris*) - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_F77='-Qoption ld ';; - *) - lt_prog_compiler_wl_F77='-Wl,';; - esac - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - sunos4*) - lt_prog_compiler_wl_F77='-Qoption ld ' - lt_prog_compiler_pic_F77='-PIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_F77='-Kconform_pic' - lt_prog_compiler_static_F77='-Bstatic' - fi - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_pic_F77='-KPIC' - lt_prog_compiler_static_F77='-Bstatic' - ;; +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then - unicos*) - lt_prog_compiler_wl_F77='-Wl,' - lt_prog_compiler_can_build_shared_F77=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - uts4*) - lt_prog_compiler_pic_F77='-pic' - lt_prog_compiler_static_F77='-Bstatic' - ;; + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - *) - lt_prog_compiler_can_build_shared_F77=no - ;; - esac - fi + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_F77"; then +fi -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_F77=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_F77" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17208: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:17212: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_F77=yes - fi - fi - $rm conftest* + LIBUNISTRING= + LTLIBUNISTRING= + INCUNISTRING= + LIBUNISTRING_PREFIX= + HAVE_LIBUNISTRING= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='unistring ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBUNISTRING; do -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then - case $lt_prog_compiler_pic_F77 in - "" | " "*) ;; - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; - esac -else - lt_prog_compiler_pic_F77= - lt_prog_compiler_can_build_shared_F77=no -fi + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBUNISTRING; do -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_F77= - ;; - *) - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" - ;; -esac + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_F77=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_F77=yes - fi - else - lt_prog_compiler_static_works_F77=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCUNISTRING; do -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -if test x"$lt_prog_compiler_static_works_F77" = xyes; then - : -else - lt_prog_compiler_static_F77= -fi + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBUNISTRING; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_F77=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBUNISTRING; do - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17312: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:17316: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_F77=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep" + ;; + esac + done + fi + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir" + done + fi -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - runpath_var= - allow_undefined_flag_F77= - enable_shared_with_static_runtimes_F77=no - archive_cmds_F77= - archive_expsym_cmds_F77= - old_archive_From_new_cmds_F77= - old_archive_from_expsyms_cmds_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - thread_safe_flag_spec_F77= - hardcode_libdir_flag_spec_F77= - hardcode_libdir_flag_spec_ld_F77= - hardcode_libdir_separator_F77= - hardcode_direct_F77=no - hardcode_minus_L_F77=no - hardcode_shlibpath_var_F77=unsupported - link_all_deplibs_F77=unknown - hardcode_automatic_F77=no - module_cmds_F77= - module_expsym_cmds_F77= - always_export_symbols_F77=no - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_F77= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac - ld_shlibs_F77=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_F77='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_F77= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac + ac_save_CPPFLAGS="$CPPFLAGS" - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_F77=no - cat <&2 + for element in $INCUNISTRING; do + haveit= + for x in $CPPFLAGS; do -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -EOF + if test "X$x" = "X$element"; then + haveit=yes + break fi - ;; + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_F77=no - ;; - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_F77=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_F77=no - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5 +$as_echo_n "checking for libunistring... " >&6; } +if test "${ac_cv_libunistring+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_F77='-L$libdir' - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=no - enable_shared_with_static_runtimes_F77=yes - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + ac_save_LIBS="$LIBS" + case " $LIBUNISTRING" in + *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;; + *) LIBS="$LIBUNISTRING $LIBS" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +u8_strconv_from_locale((char*)0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_libunistring=yes +else + ac_cv_libunistring='no, trying again together with libiconv' +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_save_LIBS" - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_F77=no - fi - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5 +$as_echo "$ac_cv_libunistring" >&6; } + if test "$ac_cv_libunistring" = yes; then + HAVE_LIBUNISTRING=yes + +$as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5 +$as_echo_n "checking how to link with libunistring... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5 +$as_echo "$LIBUNISTRING" >&6; } + else + HAVE_LIBUNISTRING=no + CPPFLAGS="$ac_save_CPPFLAGS" + LIBUNISTRING= + LTLIBUNISTRING= + LIBUNISTRING_PREFIX= + fi - interix[3-9]*) - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_F77=no - fi - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_F77=no - cat <&2 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; + if test "$ac_cv_libunistring" != yes; then + unset ac_cv_libunistring + glus_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_F77=no - cat <<_LT_EOF 1>&2 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - ;; - sunos4*) - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_F77=no - fi - ;; - esac - if test "$ld_shlibs_F77" = no; then - runpath_var= - hardcode_libdir_flag_spec_F77= - export_dynamic_flag_spec_F77= - whole_archive_flag_spec_F77= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_F77=unsupported - always_export_symbols_F77=yes - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_F77=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_F77=unsupported - fi - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - archive_cmds_F77='' - hardcode_direct_F77=yes - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_F77=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_F77=yes - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_libdir_separator_F77= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_F77=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_F77='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main + use_additional=yes - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_F77="-z nodefs" - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF - program main + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - end -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_f77_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_F77=' ${wl}-bernotok' - allow_undefined_flag_F77=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_F77='$convenience' - archive_cmds_need_lc_F77=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; + LIBUNISTRING= + LTLIBUNISTRING= + INCUNISTRING= + LIBUNISTRING_PREFIX= + HAVE_LIBUNISTRING= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='unistring ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBUNISTRING; do - amigaos*) - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_F77=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - bsdi[45]*) - export_dynamic_flag_spec_F77=-rdynamic - ;; + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBUNISTRING; do - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_F77=' ' - allow_undefined_flag_F77=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_F77='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_F77='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_F77=yes - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_F77=no - hardcode_direct_F77=no - hardcode_automatic_F77=yes - hardcode_shlibpath_var_F77=unsupported - whole_archive_flag_spec_F77='' - link_all_deplibs_F77=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi - ;; + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCUNISTRING; do - dgux*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - freebsd1*) - ld_shlibs_F77=no - ;; + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBUNISTRING; do - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBUNISTRING; do - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - hpux9*) - if test "$GCC" = yes; then - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep" + ;; + esac + done + fi + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name" + fi + fi fi - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir" + done + fi - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - ;; - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_F77=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_F77='+b $libdir' - hardcode_direct_F77=no - hardcode_shlibpath_var_F77=no - ;; - *) - hardcode_direct_F77=yes - export_dynamic_flag_spec_F77='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_F77=yes - ;; - esac - fi - ;; + ac_save_CPPFLAGS="$CPPFLAGS" - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - link_all_deplibs_F77=yes - ;; + for element in $INCUNISTRING; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + if test "X$x" = "X$element"; then + haveit=yes + break fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - ;; + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - newsos6) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - hardcode_shlibpath_var_F77=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_F77=yes - hardcode_shlibpath_var_F77=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - export_dynamic_flag_spec_F77='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-R$libdir' - ;; - *) - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_F77=no - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5 +$as_echo_n "checking for libunistring... " >&6; } +if test "${ac_cv_libunistring+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - os2*) - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_minus_L_F77=yes - allow_undefined_flag_F77=unsupported - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; + ac_save_LIBS="$LIBS" + case " $LIBUNISTRING" in + *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;; + *) LIBS="$LIBUNISTRING $LIBS" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +u8_strconv_from_locale((char*)0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_libunistring=yes +else + ac_cv_libunistring='no, consider installing GNU libunistring' +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_save_LIBS" - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_F77=: - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5 +$as_echo "$ac_cv_libunistring" >&6; } + if test "$ac_cv_libunistring" = yes; then + HAVE_LIBUNISTRING=yes + +$as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5 +$as_echo_n "checking how to link with libunistring... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5 +$as_echo "$LIBUNISTRING" >&6; } + else + HAVE_LIBUNISTRING=no + CPPFLAGS="$ac_save_CPPFLAGS" + LIBUNISTRING= + LTLIBUNISTRING= + LIBUNISTRING_PREFIX= + fi - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_F77=' -expect_unresolved \*' - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_F77='-rpath $libdir' - fi - hardcode_libdir_separator_F77=: - ;; - solaris*) - no_undefined_flag_F77=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_F77='-R$libdir' - hardcode_shlibpath_var_F77=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_F77=yes - ;; - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_direct_F77=yes - hardcode_minus_L_F77=yes - hardcode_shlibpath_var_F77=no - ;; - sysv4) - case $host_vendor in - sni) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_F77='$CC -r -o $output$reload_objs' - hardcode_direct_F77=no - ;; - motorola) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_F77=no - ;; - sysv4.3*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - export_dynamic_flag_spec_F77='-Bexport' - ;; - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_F77=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_F77=yes + if test -n "$LIBUNISTRING"; then + LIBUNISTRING="$LIBUNISTRING $LIBICONV" + LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV" fi - ;; + LIBS="$glus_save_LIBS" + fi + else - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_F77='${wl}-z,text' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_F77='${wl}-z,text' - allow_undefined_flag_F77='${wl}-z,nodefs' - archive_cmds_need_lc_F77=no - hardcode_shlibpath_var_F77=no - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_F77=':' - link_all_deplibs_F77=yes - export_dynamic_flag_spec_F77='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - uts4*) - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_F77='-L$libdir' - hardcode_shlibpath_var_F77=no - ;; - *) - ld_shlibs_F77=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 -echo "${ECHO_T}$ld_shlibs_F77" >&6; } -test "$ld_shlibs_F77" = no && can_build_shared=no -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_F77" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_F77=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_F77 in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_F77 - pic_flag=$lt_prog_compiler_pic_F77 - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_F77 - allow_undefined_flag_F77= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_F77=no - else - archive_cmds_need_lc_F77=yes - fi - allow_undefined_flag_F77=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } - ;; - esac - fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown + use_additional=yes -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; +# Check whether --with-libunistring-prefix was given. +if test "${with_libunistring_prefix+set}" = set; then : + withval=$with_libunistring_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; + fi - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; +fi -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + LIBUNISTRING= + LTLIBUNISTRING= + INCUNISTRING= + LIBUNISTRING_PREFIX= + HAVE_LIBUNISTRING= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='unistring ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBUNISTRING; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBUNISTRING; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_so" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$found_a" + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'unistring'; then + LIBUNISTRING_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCUNISTRING; do - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCUNISTRING="${INCUNISTRING}${INCUNISTRING:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBUNISTRING; do -freebsd1*) - dynamic_linker=no - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBUNISTRING; do -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$dep" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }$dep" + ;; + esac + done + fi + else + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }-l$name" + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBUNISTRING="${LIBUNISTRING}${LIBUNISTRING:+ }$flag" + done fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; - -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBUNISTRING="${LTLIBUNISTRING}${LTLIBUNISTRING:+ }-R$found_dir" + done fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; + ac_save_CPPFLAGS="$CPPFLAGS" -rdos*) - dynamic_linker=no - ;; + for element in $INCUNISTRING; do + haveit= + for x in $CPPFLAGS; do -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring" >&5 +$as_echo_n "checking for libunistring... " >&6; } +if test "${ac_cv_libunistring+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; + ac_save_LIBS="$LIBS" + case " $LIBUNISTRING" in + *" -l"*) LIBS="$LIBS $LIBUNISTRING" ;; + *) LIBS="$LIBUNISTRING $LIBS" ;; esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +u8_strconv_from_locale((char*)0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_libunistring=yes +else + ac_cv_libunistring='no, consider installing GNU libunistring' +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_save_LIBS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libunistring" >&5 +$as_echo "$ac_cv_libunistring" >&6; } + if test "$ac_cv_libunistring" = yes; then + HAVE_LIBUNISTRING=yes + +$as_echo "#define HAVE_LIBUNISTRING 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libunistring" >&5 +$as_echo_n "checking how to link with libunistring... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUNISTRING" >&5 +$as_echo "$LIBUNISTRING" >&6; } + else + HAVE_LIBUNISTRING=no + CPPFLAGS="$ac_save_CPPFLAGS" + LIBUNISTRING= + LTLIBUNISTRING= + LIBUNISTRING_PREFIX= fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_F77= -if test -n "$hardcode_libdir_flag_spec_F77" || \ - test -n "$runpath_var_F77" || \ - test "X$hardcode_automatic_F77" = "Xyes" ; then - # We can hardcode non-existant directories. - if test "$hardcode_direct_F77" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && - test "$hardcode_minus_L_F77" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_F77=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_F77=immediate + + fi + if test $HAVE_LIBUNISTRING = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunistring version" >&5 +$as_echo_n "checking for libunistring version... " >&6; } +if test "${gl_cv_libunistring_version+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_F77=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 -echo "${ECHO_T}$hardcode_action_F77" >&6; } + if ac_fn_c_compute_int "$LINENO" "_LIBUNISTRING_VERSION" "gl_libunistring_hexversion" "#include "; then : -if test "$hardcode_action_F77" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless fi + if test $gl_libunistring_hexversion = 9; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_F77 \ - CC_F77 \ - LD_F77 \ - lt_prog_compiler_wl_F77 \ - lt_prog_compiler_pic_F77 \ - lt_prog_compiler_static_F77 \ - lt_prog_compiler_no_builtin_flag_F77 \ - export_dynamic_flag_spec_F77 \ - thread_safe_flag_spec_F77 \ - whole_archive_flag_spec_F77 \ - enable_shared_with_static_runtimes_F77 \ - old_archive_cmds_F77 \ - old_archive_from_new_cmds_F77 \ - predep_objects_F77 \ - postdep_objects_F77 \ - predeps_F77 \ - postdeps_F77 \ - compiler_lib_search_path_F77 \ - archive_cmds_F77 \ - archive_expsym_cmds_F77 \ - postinstall_cmds_F77 \ - postuninstall_cmds_F77 \ - old_archive_from_expsyms_cmds_F77 \ - allow_undefined_flag_F77 \ - no_undefined_flag_F77 \ - export_symbols_cmds_F77 \ - hardcode_libdir_flag_spec_F77 \ - hardcode_libdir_flag_spec_ld_F77 \ - hardcode_libdir_separator_F77 \ - hardcode_automatic_F77 \ - module_cmds_F77 \ - module_expsym_cmds_F77 \ - lt_cv_prog_compiler_c_o_F77 \ - fix_srcfile_path_F77 \ - exclude_expsyms_F77 \ - include_expsyms_F77; do - - case $var in - old_archive_cmds_F77 | \ - old_archive_from_new_cmds_F77 | \ - archive_cmds_F77 | \ - archive_expsym_cmds_F77 | \ - module_cmds_F77 | \ - module_expsym_cmds_F77 | \ - old_archive_from_expsyms_cmds_F77 | \ - export_symbols_cmds_F77 | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_libunistring_version092=true +else + gl_cv_libunistring_version092=false +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; + if $gl_cv_libunistring_version092; then - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; esac + gl_cv_absolute_unistr_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | +sed -n '\#/unistr.h#{ + s#.*"\(.*/unistr.h\)".*#\1# + s#^/[^/]#//&# + p + q +}'` -cfgfile="$ofile" + if test -n "$gl_cv_absolute_unistr_h" \ + && grep 'Copy no more than N units of SRC to DEST. Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then + gl_libunistring_hexversion=2307 + else + gl_libunistring_hexversion=2306 + fi + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + casing_suffix_context_t ct; +int +main () +{ - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_libunistring_version091=true +else + gl_cv_libunistring_version091=false +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if $gl_cv_libunistring_version091; then + gl_libunistring_hexversion=2305 + else + gl_libunistring_hexversion=2304 + fi + fi + fi + gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536` + gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256` + gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256` + gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor" -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libunistring_version" >&5 +$as_echo "$gl_cv_libunistring_version" >&6; } + LIBUNISTRING_VERSION="$gl_cv_libunistring_version" + fi -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL + if test $HAVE_LIBUNISTRING = no; then + gl_libunistring_use_included=yes + LIBUNISTRING= + LTLIBUNISTRING= + fi + fi -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_F77 -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os -# An echo program that does not interpret backslashes. -echo=$lt_echo -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_F77 -# Is the compiler the GNU C compiler? -with_gcc=$GCC_F77 + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -# An ERE matcher. -EGREP=$lt_EGREP +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl +_ACEOF -# The linker used to build libraries. -LD=$lt_LD_F77 -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM + GNULIB_DUPLOCALE=0; + HAVE_DUPLOCALE=1; + REPLACE_DUPLOCALE=0; -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD + REPLACE_NULL=0; + HAVE_WCHAR_T=1; + STDDEF_H=''; -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_F77 -# Object file suffix (normally "o"). -objext="$ac_objext" -# Old archive suffix (normally "a"). -libext="$libext" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 +$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } +if test "${gl_cv_decl_null_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; -# Executable file suffix (normally ""). -exeext="$exeext" +int +main () +{ -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_F77 -pic_mode=$pic_mode + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_null_works=yes +else + gl_cv_decl_null_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 +$as_echo "$gl_cv_decl_null_works" >&6; } + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix + : -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_F77 -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stddef_h='<'stddef.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stddef_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 + if test $ac_cv_header_stddef_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stddef.h#{ + s#.*"\(.*/stddef.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stddef_h='<'stddef.h'>' + fi -# Library versioning type. -version_type=$version_type +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 +$as_echo "$gl_cv_next_stddef_h" >&6; } + fi + NEXT_STDDEF_H=$gl_cv_next_stddef_h -# Format of library name prefix. -libname_spec=$lt_libname_spec + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stddef.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stddef_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_F77 -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds + fi -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_F77 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77 -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_F77 -module_expsym_cmds=$lt_module_expsym_cmds_F77 -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_F77 - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_F77 - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_F77 -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77 -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_F77 -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_F77 -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds + GNULIB_FCHMODAT=0; + GNULIB_FSTATAT=0; + GNULIB_FUTIMENS=0; + GNULIB_LCHMOD=0; + GNULIB_LSTAT=0; + GNULIB_MKDIRAT=0; + GNULIB_MKFIFO=0; + GNULIB_MKFIFOAT=0; + GNULIB_MKNOD=0; + GNULIB_MKNODAT=0; + GNULIB_STAT=0; + GNULIB_UTIMENSAT=0; + HAVE_FCHMODAT=1; + HAVE_FSTATAT=1; + HAVE_FUTIMENS=1; + HAVE_LCHMOD=1; + HAVE_LSTAT=1; + HAVE_MKDIRAT=1; + HAVE_MKFIFO=1; + HAVE_MKFIFOAT=1; + HAVE_MKNOD=1; + HAVE_MKNODAT=1; + HAVE_UTIMENSAT=1; + REPLACE_FSTAT=0; + REPLACE_FSTATAT=0; + REPLACE_FUTIMENS=0; + REPLACE_LSTAT=0; + REPLACE_MKDIR=0; + REPLACE_MKFIFO=0; + REPLACE_MKNOD=0; + REPLACE_STAT=0; + REPLACE_UTIMENSAT=0; -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + rm -f conftest.sym conftest.file +echo >conftest.file +if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then + if test "$cross_compiling" = yes; then : + ac_cv_func_lstat_dereferences_slashed_symlink=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +struct stat sbuf; + /* Linux will dereference the symlink and fail, as required by POSIX. + That is better in the sense that it means we will not + have to compile and use the lstat wrapper. */ + return lstat ("conftest.sym/", &sbuf) == 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_lstat_dereferences_slashed_symlink=yes +else + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath +else + # If the `ln -s' command failed, then we probably don't even + # have an lstat function. + ac_cv_func_lstat_dereferences_slashed_symlink=no +fi +rm -f conftest.sym conftest.file -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_F77 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs +test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 +cat >>confdefs.h <<_ACEOF +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +_ACEOF -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_F77 - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_F77 - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_F77 -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_F77 -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_F77 -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_F77 -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_F77 + gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 +$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } +if test "${gl_cv_func_malloc_posix+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + choke me + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_malloc_posix=yes +else + gl_cv_func_malloc_posix=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 +$as_echo "$gl_cv_func_malloc_posix" >&6; } -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_F77 -# ### END LIBTOOL TAG CONFIG: $tagname + for ac_header in stdlib.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDLIB_H 1 +_ACEOF -__EOF__ +fi +done +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + if test "$cross_compiling" = yes; then : + ac_cv_func_malloc_0_nonnull=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined STDC_HEADERS || defined HAVE_STDLIB_H +# include +#else +char *malloc (); +#endif + +int +main () +{ +return ! malloc (0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_malloc_0_nonnull=yes +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : + gl_cv_func_malloc_0_nonnull=1 +else + gl_cv_func_malloc_0_nonnull=0 fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +cat >>confdefs.h <<_ACEOF +#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull +_ACEOF -CC="$lt_save_CC" - else - tagname="" - fi - ;; - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 +$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } +if test "${ac_cv_func_mbrtowc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +wchar_t wc; + char const s[] = ""; + size_t n = 1; + mbstate_t state; + return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_mbrtowc=yes +else + ac_cv_func_mbrtowc=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: $ac_cv_func_mbrtowc" >&5 +$as_echo "$ac_cv_func_mbrtowc" >&6; } + if test $ac_cv_func_mbrtowc = yes; then +$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h -# Source file extension for Java test sources. -ac_ext=java + fi -# Object file extension for compiled Java test sources. -objext=o -objext_GCJ=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" + GNULIB_BTOWC=0; + GNULIB_WCTOB=0; + GNULIB_MBSINIT=0; + GNULIB_MBRTOWC=0; + GNULIB_MBRLEN=0; + GNULIB_MBSRTOWCS=0; + GNULIB_MBSNRTOWCS=0; + GNULIB_WCRTOMB=0; + GNULIB_WCSRTOMBS=0; + GNULIB_WCSNRTOMBS=0; + GNULIB_WCWIDTH=0; + HAVE_BTOWC=1; + HAVE_MBSINIT=1; + HAVE_MBRTOWC=1; + HAVE_MBRLEN=1; + HAVE_MBSRTOWCS=1; + HAVE_MBSNRTOWCS=1; + HAVE_WCRTOMB=1; + HAVE_WCSRTOMBS=1; + HAVE_WCSNRTOMBS=1; + HAVE_DECL_WCTOB=1; + HAVE_DECL_WCWIDTH=1; + REPLACE_MBSTATE_T=0; + REPLACE_BTOWC=0; + REPLACE_WCTOB=0; + REPLACE_MBSINIT=0; + REPLACE_MBRTOWC=0; + REPLACE_MBRLEN=0; + REPLACE_MBSRTOWCS=0; + REPLACE_MBSNRTOWCS=0; + REPLACE_WCRTOMB=0; + REPLACE_WCSRTOMBS=0; + REPLACE_WCSNRTOMBS=0; + REPLACE_WCWIDTH=0; -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -compiler_GCJ=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -# GCJ did not exist at the time GCC didn't implicitly link libc in. -archive_cmds_need_lc_GCJ=no -old_archive_cmds_GCJ=$old_archive_cmds -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +$as_echo_n "checking for a traditional japanese locale... " >&6; } +if test "${gt_cv_locale_ja+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi + fi + fi + fi + fi + rm -fr conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +$as_echo "$gt_cv_locale_ja" >&6; } + LOCALE_JA=$gt_cv_locale_ja + -lt_prog_compiler_no_builtin_flag_GCJ= -if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' -{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +$as_echo_n "checking for a transitional chinese locale... " >&6; } +if test "${gt_cv_locale_zh_CN+set}" = set; then : + $as_echo_n "(cached) " >&6 else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19503: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:19507: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $rm conftest* + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +$as_echo "$gt_cv_locale_zh_CN" >&6; } + LOCALE_ZH_CN=$gt_cv_locale_zh_CN -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" -else - : -fi -fi -lt_prog_compiler_wl_GCJ= -lt_prog_compiler_pic_GCJ= -lt_prog_compiler_static_GCJ= -{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - if test "$GCC" = yes; then - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_static_GCJ='-static' + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi fi - ;; + fi + rm -fr conftest* - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' - ;; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic_GCJ='-fno-common' - ;; + GNULIB_MEMCHR=0; + GNULIB_MEMMEM=0; + GNULIB_MEMPCPY=0; + GNULIB_MEMRCHR=0; + GNULIB_RAWMEMCHR=0; + GNULIB_STPCPY=0; + GNULIB_STPNCPY=0; + GNULIB_STRCHRNUL=0; + GNULIB_STRDUP=0; + GNULIB_STRNCAT=0; + GNULIB_STRNDUP=0; + GNULIB_STRNLEN=0; + GNULIB_STRPBRK=0; + GNULIB_STRSEP=0; + GNULIB_STRSTR=0; + GNULIB_STRCASESTR=0; + GNULIB_STRTOK_R=0; + GNULIB_MBSLEN=0; + GNULIB_MBSNLEN=0; + GNULIB_MBSCHR=0; + GNULIB_MBSRCHR=0; + GNULIB_MBSSTR=0; + GNULIB_MBSCASECMP=0; + GNULIB_MBSNCASECMP=0; + GNULIB_MBSPCASECMP=0; + GNULIB_MBSCASESTR=0; + GNULIB_MBSCSPN=0; + GNULIB_MBSPBRK=0; + GNULIB_MBSSPN=0; + GNULIB_MBSSEP=0; + GNULIB_MBSTOK_R=0; + GNULIB_STRERROR=0; + GNULIB_STRSIGNAL=0; + GNULIB_STRVERSCMP=0; + HAVE_MBSLEN=0; + HAVE_MEMCHR=1; + HAVE_DECL_MEMMEM=1; + HAVE_MEMPCPY=1; + HAVE_DECL_MEMRCHR=1; + HAVE_RAWMEMCHR=1; + HAVE_STPCPY=1; + HAVE_STPNCPY=1; + HAVE_STRCHRNUL=1; + HAVE_DECL_STRDUP=1; + HAVE_DECL_STRNDUP=1; + HAVE_DECL_STRNLEN=1; + HAVE_STRPBRK=1; + HAVE_STRSEP=1; + HAVE_STRCASESTR=1; + HAVE_DECL_STRTOK_R=1; + HAVE_DECL_STRSIGNAL=1; + HAVE_STRVERSCMP=1; + REPLACE_MEMCHR=0; + REPLACE_MEMMEM=0; + REPLACE_STPNCPY=0; + REPLACE_STRDUP=0; + REPLACE_STRSTR=0; + REPLACE_STRCASESTR=0; + REPLACE_STRERROR=0; + REPLACE_STRNCAT=0; + REPLACE_STRNDUP=0; + REPLACE_STRNLEN=0; + REPLACE_STRSIGNAL=0; + REPLACE_STRTOK_R=0; + UNDEFINE_STRTOK_R=0; - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared_GCJ=no - enable_shared=no - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic_GCJ=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - ;; - *) - lt_prog_compiler_pic_GCJ='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl_GCJ='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static_GCJ='-Bstatic' - else - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic_GCJ='-qnocommon' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' - ;; - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic_GCJ='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' - ;; - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl_GCJ='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - newsos6) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-fpic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - como) - lt_prog_compiler_wl_GCJ='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='-Wl,' - ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - lt_prog_compiler_wl_GCJ='' - ;; - esac - ;; - esac - ;; - osf3* | osf4* | osf5*) - lt_prog_compiler_wl_GCJ='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static_GCJ='-non_shared' - ;; - rdos*) - lt_prog_compiler_static_GCJ='-non_shared' - ;; - solaris*) - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - lt_prog_compiler_wl_GCJ='-Qoption ld ';; - *) - lt_prog_compiler_wl_GCJ='-Wl,';; - esac - ;; - sunos4*) - lt_prog_compiler_wl_GCJ='-Qoption ld ' - lt_prog_compiler_pic_GCJ='-PIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - sysv4*MP*) - if test -d /usr/nec ;then - lt_prog_compiler_pic_GCJ='-Kconform_pic' - lt_prog_compiler_static_GCJ='-Bstatic' - fi - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_pic_GCJ='-KPIC' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - unicos*) - lt_prog_compiler_wl_GCJ='-Wl,' - lt_prog_compiler_can_build_shared_GCJ=no - ;; - uts4*) - lt_prog_compiler_pic_GCJ='-pic' - lt_prog_compiler_static_GCJ='-Bstatic' - ;; - *) - lt_prog_compiler_can_build_shared_GCJ=no - ;; - esac - fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic_GCJ"; then -{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_pic_works_GCJ=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic_GCJ" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19796: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:19800: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_pic_works_GCJ=yes - fi - fi - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then - case $lt_prog_compiler_pic_GCJ in - "" | " "*) ;; - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; - esac -else - lt_prog_compiler_pic_GCJ= - lt_prog_compiler_can_build_shared_GCJ=no -fi -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic_GCJ= - ;; - *) - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" - ;; -esac -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" -{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } -if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_prog_compiler_static_works_GCJ=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_prog_compiler_static_works_GCJ=yes - fi - else - lt_prog_compiler_static_works_GCJ=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -fi -{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 -echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } -if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then - : -else - lt_prog_compiler_static_GCJ= -fi -{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_compiler_c_o_GCJ=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19900: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:19904: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o_GCJ=yes - fi - fi - chmod u+w . 2>&5 - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -fi -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } -hard_links="nottested" -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { echo "$as_me:$LINENO: result: $hard_links" >&5 -echo "${ECHO_T}$hard_links" >&6; } - if test "$hard_links" = no; then - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} - need_locks=warn - fi + + + + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" +if test "x$ac_cv_func_mmap" = x""yes; then : + gl_have_mmap=yes else - need_locks=no + gl_have_mmap=no fi -{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } - runpath_var= - allow_undefined_flag_GCJ= - enable_shared_with_static_runtimes_GCJ=no - archive_cmds_GCJ= - archive_expsym_cmds_GCJ= - old_archive_From_new_cmds_GCJ= - old_archive_from_expsyms_cmds_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - thread_safe_flag_spec_GCJ= - hardcode_libdir_flag_spec_GCJ= - hardcode_libdir_flag_spec_ld_GCJ= - hardcode_libdir_separator_GCJ= - hardcode_direct_GCJ=no - hardcode_minus_L_GCJ=no - hardcode_shlibpath_var_GCJ=unsupported - link_all_deplibs_GCJ=unknown - hardcode_automatic_GCJ=no - module_cmds_GCJ= - module_expsym_cmds_GCJ= - always_export_symbols_GCJ=no - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms_GCJ= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 +$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. +#endif - ld_shlibs_GCJ=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : + gl_have_mmap_anonymous=yes +fi +rm -f conftest* - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_GCJ= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac + if test $gl_have_mmap_anonymous != yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - ld_shlibs_GCJ=no - cat <&2 +#include +#ifdef MAP_ANON + I cant identify this map. +#endif -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : -EOF - fi - ;; +$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs_GCJ=no - ;; + gl_have_mmap_anonymous=yes +fi +rm -f conftest* - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_GCJ=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 +$as_echo "$gl_have_mmap_anonymous" >&6; } + if test $gl_have_mmap_anonymous = yes; then - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_GCJ='-L$libdir' - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=no - enable_shared_with_static_runtimes_GCJ=yes - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' +$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_GCJ=no - fi - ;; + fi + fi - interix[3-9]*) - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + : - if test $supports_anon_versioning = yes; then - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - ld_shlibs_GCJ=no - fi - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - ld_shlibs_GCJ=no - cat <&2 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs_GCJ=no - cat <<_LT_EOF 1>&2 + : -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - ;; - sunos4*) - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs_GCJ=no - fi - ;; - esac - if test "$ld_shlibs_GCJ" = no; then - runpath_var= - hardcode_libdir_flag_spec_GCJ= - export_dynamic_flag_spec_GCJ= - whole_archive_flag_spec_GCJ= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag_GCJ=unsupported - always_export_symbols_GCJ=yes - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L_GCJ=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct_GCJ=unsupported - fi - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + : - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - archive_cmds_GCJ='' - hardcode_direct_GCJ=yes - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_GCJ=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_GCJ=yes - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_libdir_separator_GCJ= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_GCJ=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_GCJ='-berok' - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_func_memchr = yes; then + # Detect platform-specific bugs in some versions of glibc: + # memchr should not dereference anything with length 0 + # http://bugzilla.redhat.com/499689 + # memchr should not dereference overestimated length after a match + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 + # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 + # Assume that memchr works on platforms that lack mprotect. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 +$as_echo_n "checking whether memchr works... " >&6; } +if test "${gl_cv_func_memchr_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_memchr_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +#if HAVE_SYS_MMAN_H +# include +# include +# include +# include +# ifndef MAP_FILE +# define MAP_FILE 0 +# endif +#endif + int main () { + char *fence = NULL; +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# if HAVE_MAP_ANONYMOUS + const int flags = MAP_ANONYMOUS | MAP_PRIVATE; + const int fd = -1; +# else /* !HAVE_MAP_ANONYMOUS */ + const int flags = MAP_FILE | MAP_PRIVATE; + int fd = open ("/dev/zero", O_RDONLY, 0666); + if (fd >= 0) +# endif + { + int pagesize = getpagesize (); + char *two_pages = + (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, + flags, fd, 0); + if (two_pages != (char *)(-1) + && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) + fence = two_pages + pagesize; + } +#endif + if (fence) + { + if (memchr (fence, 0, 0)) + return 1; + strcpy (fence - 9, "12345678"); + if (memchr (fence - 9, 0, 79) != fence - 1) + return 2; + } + return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_memchr_works=yes +else + gl_cv_func_memchr_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 +$as_echo "$gl_cv_func_memchr_works" >&6; } + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_MEMCHR=1 + fi + else + HAVE_MEMCHR=0 + fi + if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_GCJ="-z nodefs" - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + for ac_header in bp-sym.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" +if test "x$ac_cv_header_bp_sym_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_BP_SYM_H 1 +_ACEOF - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_GCJ=' ${wl}-bernotok' - allow_undefined_flag_GCJ=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_GCJ='$convenience' - archive_cmds_need_lc_GCJ=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; +fi - amigaos*) - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - # see comment about different semantics on the GNU ld section - ld_shlibs_GCJ=no - ;; +done - bsdi[45]*) - export_dynamic_flag_spec_GCJ=-rdynamic - ;; - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec_GCJ=' ' - allow_undefined_flag_GCJ=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds_GCJ='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes_GCJ=yes - ;; + fi - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc_GCJ=no - hardcode_direct_GCJ=no - hardcode_automatic_GCJ=yes - hardcode_shlibpath_var_GCJ=unsupported - whole_archive_flag_spec_GCJ='' - link_all_deplibs_GCJ=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_GCJ=no - ;; - esac - fi - ;; - dgux*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; - freebsd1*) - ld_shlibs_GCJ=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 +$as_echo_n "checking whether defines MIN and MAX... " >&6; } +if test "${gl_cv_minmax_in_limits_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int x = MIN (42, 17); +int +main () +{ - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_minmax_in_limits_h=yes +else + gl_cv_minmax_in_limits_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 +$as_echo "$gl_cv_minmax_in_limits_h" >&6; } + if test $gl_cv_minmax_in_limits_h = yes; then - hpux9*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes +$as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - ;; + fi - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - fi - ;; - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - case $host_cpu in - hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' - hardcode_direct_GCJ=no - hardcode_shlibpath_var_GCJ=no - ;; - *) - hardcode_direct_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L_GCJ=yes - ;; - esac - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 +$as_echo_n "checking whether defines MIN and MAX... " >&6; } +if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int x = MIN (42, 17); +int +main () +{ - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - link_all_deplibs_GCJ=yes - ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_minmax_in_sys_param_h=yes +else + gl_cv_minmax_in_sys_param_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 +$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; } + if test $gl_cv_minmax_in_sys_param_h = yes; then - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; +$as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h - newsos6) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - hardcode_shlibpath_var_GCJ=no - ;; + fi - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_GCJ=yes - hardcode_shlibpath_var_GCJ=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - export_dynamic_flag_spec_GCJ='${wl}-E' - else - case $host_os in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-R$libdir' - ;; - *) - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' - ;; - esac - fi - else - ld_shlibs_GCJ=no - fi - ;; - os2*) - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_minus_L_GCJ=yes - allow_undefined_flag_GCJ=unsupported - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_GCJ=: - ;; - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag_GCJ=' -expect_unresolved \*' - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec_GCJ='-rpath $libdir' - fi - hardcode_libdir_separator_GCJ=: - ;; + gl_cv_c_multiarch=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; - solaris*) - no_undefined_flag_GCJ=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - hardcode_libdir_flag_spec_GCJ='-R$libdir' - hardcode_shlibpath_var_GCJ=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs_GCJ=yes - ;; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_direct_GCJ=yes - hardcode_minus_L_GCJ=yes - hardcode_shlibpath_var_GCJ=no - ;; + arch= + prev= + for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do + if test -n "$prev"; then + case $word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$arch" || test "$arch" = "$word"; then + arch="$word" + else + gl_cv_c_multiarch=yes + fi + ;; + esac + prev= + else + if test "x$word" = "x-arch"; then + prev=arch + fi + fi + done - sysv4) - case $host_vendor in - sni) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds_GCJ='$CC -r -o $output$reload_objs' - hardcode_direct_GCJ=no - ;; - motorola) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var_GCJ=no - ;; +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $gl_cv_c_multiarch = yes; then - sysv4.3*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - export_dynamic_flag_spec_GCJ='-Bexport' - ;; +$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var_GCJ=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs_GCJ=yes - fi - ;; + APPLE_UNIVERSAL_BUILD=1 + else + APPLE_UNIVERSAL_BUILD=0 + fi - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_GCJ='${wl}-z,text' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag_GCJ='${wl}-z,text' - allow_undefined_flag_GCJ='${wl}-z,nodefs' - archive_cmds_need_lc_GCJ=no - hardcode_shlibpath_var_GCJ=no - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_GCJ=':' - link_all_deplibs_GCJ=yes - export_dynamic_flag_spec_GCJ='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - if test "$GCC" = yes; then - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 +$as_echo_n "checking for promoted mode_t type... " >&6; } +if test "${gl_cv_promoted_mode_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - uts4*) - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec_GCJ='-L$libdir' - hardcode_shlibpath_var_GCJ=no - ;; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_promoted_mode_t='int' +else + gl_cv_promoted_mode_t='mode_t' +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - *) - ld_shlibs_GCJ=no - ;; - esac - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 +$as_echo "$gl_cv_promoted_mode_t" >&6; } -{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } -test "$ld_shlibs_GCJ" = no && can_build_shared=no +cat >>confdefs.h <<_ACEOF +#define PROMOTED_MODE_T $gl_cv_promoted_mode_t +_ACEOF -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc_GCJ" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc_GCJ=yes - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds_GCJ in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl_GCJ - pic_flag=$lt_prog_compiler_pic_GCJ - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ - allow_undefined_flag_GCJ= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - archive_cmds_need_lc_GCJ=no - else - archive_cmds_need_lc_GCJ=yes - fi - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } - ;; - esac - fi - ;; -esac -{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' - fi - shlibpath_var=LIBPATH - fi - ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; -bsdi[45]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - ;; - esac - ;; - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; + GNULIB_POSIX_SPAWN=0; + GNULIB_POSIX_SPAWNP=0; + GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0; + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0; + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0; + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0; + GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0; + GNULIB_POSIX_SPAWNATTR_INIT=0; + GNULIB_POSIX_SPAWNATTR_GETFLAGS=0; + GNULIB_POSIX_SPAWNATTR_SETFLAGS=0; + GNULIB_POSIX_SPAWNATTR_GETPGROUP=0; + GNULIB_POSIX_SPAWNATTR_SETPGROUP=0; + GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0; + GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0; + GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0; + GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0; + GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0; + GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0; + GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0; + GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0; + GNULIB_POSIX_SPAWNATTR_DESTROY=0; + HAVE_POSIX_SPAWN=1; + HAVE_POSIX_SPAWNATTR_T=1; + HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1; -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; + REPLACE_POSIX_SPAWN=0; -freebsd1*) - dynamic_linker=no - ;; -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[123]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; -interix[3-9]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; + : -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes + + if test $ac_cv_func_posix_spawn != yes; then + HAVE_POSIX_SPAWN=0 fi - ;; -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; -rdos*) - dynamic_linker=no - ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; + if test $ac_cv_func_posix_spawn = yes; then -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawn works" >&5 +$as_echo_n "checking whether posix_spawn works... " >&6; } +if test "${gl_cv_func_posix_spawn_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $cross_compiling = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; +extern char **environ; -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif -*) - dynamic_linker=no - ;; -esac -{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -echo "${ECHO_T}$dynamic_linker" >&6; } -test "$dynamic_linker" = no && can_build_shared=no +#ifndef WTERMSIG +# define WTERMSIG(x) ((x) & 0x7f) +#endif +#ifndef WIFEXITED +# define WIFEXITED(x) (WTERMSIG (x) == 0) +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) +#endif -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi +#define CHILD_PROGRAM_FILENAME "/non/exist/ent" -{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } -hardcode_action_GCJ= -if test -n "$hardcode_libdir_flag_spec_GCJ" || \ - test -n "$runpath_var_GCJ" || \ - test "X$hardcode_automatic_GCJ" = "Xyes" ; then +static int +fd_safer (int fd) +{ + if (0 <= fd && fd <= 2) + { + int f = fd_safer (dup (fd)); + int e = errno; + close (fd); + errno = e; + fd = f; + } - # We can hardcode non-existant directories. - if test "$hardcode_direct_GCJ" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && - test "$hardcode_minus_L_GCJ" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action_GCJ=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action_GCJ=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action_GCJ=unsupported -fi -{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 -echo "${ECHO_T}$hardcode_action_GCJ" >&6; } + return fd; +} + +int +main () +{ + char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL }; + int ofd[2]; + sigset_t blocked_signals; + sigset_t fatal_signal_set; + posix_spawn_file_actions_t actions; + bool actions_allocated; + posix_spawnattr_t attrs; + bool attrs_allocated; + int err; + pid_t child; + int status; + int exitstatus; + + setvbuf (stdout, NULL, _IOFBF, 0); + puts ("This should be seen only once."); + if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0) + { + perror ("cannot create pipe"); + exit (1); + } + sigprocmask (SIG_SETMASK, NULL, &blocked_signals); + sigemptyset (&fatal_signal_set); + sigaddset (&fatal_signal_set, SIGINT); + sigaddset (&fatal_signal_set, SIGTERM); + sigaddset (&fatal_signal_set, SIGHUP); + sigaddset (&fatal_signal_set, SIGPIPE); + sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL); + actions_allocated = false; + attrs_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0 + || (err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0 + || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0) + || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + if (attrs_allocated) + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + if (err == ENOENT) + return 0; + else + { + errno = err; + perror ("subprocess failed"); + exit (1); + } + } + posix_spawn_file_actions_destroy (&actions); + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + close (ofd[0]); + close (ofd[1]); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + exit (1); + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 127) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + exit (1); + } + return 0; +} -if test "$hardcode_action_GCJ" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if test -s conftest$ac_exeext \ + && ./conftest$ac_exeext > conftest.out \ + && echo 'This should be seen only once.' > conftest.ok \ + && cmp conftest.out conftest.ok > /dev/null; then + gl_cv_func_posix_spawn_works=yes + else + gl_cv_func_posix_spawn_works=no + fi +else + gl_cv_func_posix_spawn_works=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $gl_cv_func_posix_spawn_works = yes; then + if test "$cross_compiling" = yes; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run test program while cross compiling +See \`config.log' for more details." "$LINENO" 5; } +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Test whether posix_spawn_file_actions_addopen supports filename arguments + that contain special characters such as '*'. */ -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_GCJ \ - CC_GCJ \ - LD_GCJ \ - lt_prog_compiler_wl_GCJ \ - lt_prog_compiler_pic_GCJ \ - lt_prog_compiler_static_GCJ \ - lt_prog_compiler_no_builtin_flag_GCJ \ - export_dynamic_flag_spec_GCJ \ - thread_safe_flag_spec_GCJ \ - whole_archive_flag_spec_GCJ \ - enable_shared_with_static_runtimes_GCJ \ - old_archive_cmds_GCJ \ - old_archive_from_new_cmds_GCJ \ - predep_objects_GCJ \ - postdep_objects_GCJ \ - predeps_GCJ \ - postdeps_GCJ \ - compiler_lib_search_path_GCJ \ - archive_cmds_GCJ \ - archive_expsym_cmds_GCJ \ - postinstall_cmds_GCJ \ - postuninstall_cmds_GCJ \ - old_archive_from_expsyms_cmds_GCJ \ - allow_undefined_flag_GCJ \ - no_undefined_flag_GCJ \ - export_symbols_cmds_GCJ \ - hardcode_libdir_flag_spec_GCJ \ - hardcode_libdir_flag_spec_ld_GCJ \ - hardcode_libdir_separator_GCJ \ - hardcode_automatic_GCJ \ - module_cmds_GCJ \ - module_expsym_cmds_GCJ \ - lt_cv_prog_compiler_c_o_GCJ \ - fix_srcfile_path_GCJ \ - exclude_expsyms_GCJ \ - include_expsyms_GCJ; do - - case $var in - old_archive_cmds_GCJ | \ - old_archive_from_new_cmds_GCJ | \ - archive_cmds_GCJ | \ - archive_expsym_cmds_GCJ | \ - module_cmds_GCJ | \ - module_expsym_cmds_GCJ | \ - old_archive_from_expsyms_cmds_GCJ | \ - export_symbols_cmds_GCJ | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac +extern char **environ; -cfgfile="$ofile" +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname +#ifndef WTERMSIG +# define WTERMSIG(x) ((x) & 0x7f) +#endif +#ifndef WIFEXITED +# define WIFEXITED(x) (WTERMSIG (x) == 0) +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) +#endif -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +#define CHILD_PROGRAM_FILENAME "conftest" +#define DATA_FILENAME "conftest%=*#?" -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL +static int +parent_main (void) +{ + FILE *fp; + char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL }; + posix_spawn_file_actions_t actions; + bool actions_allocated; + int err; + pid_t child; + int status; + int exitstatus; -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared + /* Create a data file with specific contents. */ + fp = fopen (DATA_FILENAME, "wb"); + if (fp == NULL) + { + perror ("cannot create data file"); + return 1; + } + fwrite ("Halle Potta", 1, 11, fp); + if (fflush (fp) || fclose (fp)) + { + perror ("cannot prepare data file"); + return 1; + } -# Whether or not to build static libraries. -build_old_libs=$enable_static + /* Avoid reading from our stdin, as it could block. */ + freopen ("/dev/null", "rb", stdin); -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ + /* Test whether posix_spawn_file_actions_addopen with this file name + actually works, but spawning a child that reads from this file. */ + actions_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0 + || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + errno = err; + perror ("subprocess failed"); + return 1; + } + posix_spawn_file_actions_destroy (&actions); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + return 1; + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 0) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + return 1; + } + return 0; +} -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ +static int +child_main (void) +{ + char buf[1024]; -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install + /* See if reading from STDIN_FILENO yields the expected contents. */ + if (fread (buf, 1, sizeof (buf), stdin) == 11 + && memcmp (buf, "Halle Potta", 11) == 0) + return 0; + else + return 2; +} -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os +static void +cleanup_then_die (int sig) +{ + /* Clean up data file. */ + unlink (DATA_FILENAME); -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os + /* Re-raise the signal and die from it. */ + signal (sig, SIG_DFL); + raise (sig); +} -# An echo program that does not interpret backslashes. -echo=$lt_echo +int +main (int argc, char *argv[]) +{ + int exitstatus; -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS + if (!(argc > 1 && strcmp (argv[1], "-child") == 0)) + { + /* This is the parent process. */ + signal (SIGINT, cleanup_then_die); + signal (SIGTERM, cleanup_then_die); + #ifdef SIGHUP + signal (SIGHUP, cleanup_then_die); + #endif -# A C compiler. -LTCC=$lt_LTCC + exitstatus = parent_main (); + } + else + { + /* This is the child process. */ -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS + exitstatus = child_main (); + } + unlink (DATA_FILENAME); + return exitstatus; +} -# A language-specific compiler. -CC=$lt_compiler_GCJ +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : -# Is the compiler the GNU C compiler? -with_gcc=$GCC_GCJ +else + gl_cv_func_posix_spawn_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi -# An ERE matcher. -EGREP=$lt_EGREP + fi + else + case "$host_os" in + aix*) gl_cv_func_posix_spawn_works="guessing no";; + *) gl_cv_func_posix_spawn_works="guessing yes";; + esac + fi -# The linker used to build libraries. -LD=$lt_LD_GCJ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_posix_spawn_works" >&5 +$as_echo "$gl_cv_func_posix_spawn_works" >&6; } -# Whether we need hard or soft links. -LN_S=$lt_LN_S + case "$gl_cv_func_posix_spawn_works" in + *yes) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedpolicy is supported" >&5 +$as_echo_n "checking whether posix_spawnattr_setschedpolicy is supported... " >&6; } +if test "${gl_cv_func_spawnattr_setschedpolicy+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#if POSIX_SPAWN_SETSCHEDULER + POSIX scheduling supported +#endif -# A BSD-compatible nm program. -NM=$lt_NM +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then : + gl_cv_func_spawnattr_setschedpolicy=yes +else + gl_cv_func_spawnattr_setschedpolicy=no +fi +rm -f conftest* -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedpolicy" >&5 +$as_echo "$gl_cv_func_spawnattr_setschedpolicy" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_spawnattr_setschedparam is supported" >&5 +$as_echo_n "checking whether posix_spawnattr_setschedparam is supported... " >&6; } +if test "${gl_cv_func_spawnattr_setschedparam+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" +#include +#if POSIX_SPAWN_SETSCHEDPARAM + POSIX scheduling supported +#endif -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "POSIX scheduling supported" >/dev/null 2>&1; then : + gl_cv_func_spawnattr_setschedparam=yes +else + gl_cv_func_spawnattr_setschedparam=no +fi +rm -f conftest* -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_spawnattr_setschedparam" >&5 +$as_echo "$gl_cv_func_spawnattr_setschedparam" >&6; } + ;; + *) REPLACE_POSIX_SPAWN=1 ;; + esac + fi -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_GCJ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5 +$as_echo_n "checking for shared library path variable... " >&6; } +if test "${acl_cv_libpath+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Object file suffix (normally "o"). -objext="$ac_objext" + LD="$LD" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_libpath=${acl_cv_shlibpath_var:-none} -# Old archive suffix (normally "a"). -libext="$libext" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5 +$as_echo "$acl_cv_libpath" >&6; } + shlibpath_var="$acl_cv_shlibpath_var" -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' -# Executable file suffix (normally ""). -exeext="$exeext" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5 +$as_echo_n "checking whether to activate relocatable installation... " >&6; } + # Check whether --enable-relocatable was given. +if test "${enable_relocatable+set}" = set; then : + enableval=$enable_relocatable; if test "$enableval" != no; then + RELOCATABLE=yes + else + RELOCATABLE=no + fi -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_GCJ -pic_mode=$pic_mode +else + RELOCATABLE=no +fi -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5 +$as_echo "$RELOCATABLE" >&6; } -# Must we lock files when doing compilation? -need_locks=$lt_need_locks -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix -# Do we need a version for libraries? -need_version=$need_version + if test "X$prefix" = "XNONE"; then + reloc_final_prefix="$ac_default_prefix" + else + reloc_final_prefix="$prefix" + fi -# Whether dlopen is supported. -dlopen_support=$enable_dlopen +cat >>confdefs.h <<_ACEOF +#define INSTALLPREFIX "${reloc_final_prefix}" +_ACEOF -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self + if test $RELOCATABLE = yes; then -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static +$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_GCJ + fi -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec + is_noop=no + use_elf_origin_trick=no + if test $RELOCATABLE = yes; then + # --enable-relocatable implies --disable-rpath + enable_rpath=no + for ac_header in mach-o/dyld.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" +if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MACH_O_DYLD_H 1 +_ACEOF -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec +fi -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec +done -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_GCJ -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds + for ac_func in _NSGetExecutablePath +do : + ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath" +if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE__NSGETEXECUTABLEPATH 1 +_ACEOF -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ +fi +done -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ + case "$host_os" in + mingw*) is_noop=yes ;; + linux*) use_elf_origin_trick=yes ;; + esac + if test $is_noop = yes; then + RELOCATABLE_LDFLAGS=: -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_GCJ -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds + else + if test $use_elf_origin_trick = yes; then + case "$ac_aux_dir" in + /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; + *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; + esac + RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_GCJ -module_expsym_cmds=$lt_module_expsym_cmds_GCJ + else + INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib + case "$ac_aux_dir" in + /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; + *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; + esac + fi + fi + fi + if test $is_noop = yes || test $use_elf_origin_trick = yes; then + RELOCATABLE_VIA_LD_TRUE= + RELOCATABLE_VIA_LD_FALSE='#' +else + RELOCATABLE_VIA_LD_TRUE='#' + RELOCATABLE_VIA_LD_FALSE= +fi -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_GCJ - -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_GCJ - -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_GCJ -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_GCJ -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + RELOCATABLE_STRIP=':' -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_GCJ -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ - -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ - -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_GCJ - -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_GCJ - -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ - -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_GCJ -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_GCJ -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5 +$as_echo_n "checking whether system is Windows or MSDOS... " >&6; } +if test "${ac_cv_win_or_dos+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path +int +main () +{ -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_GCJ +#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ +neither MSDOS nor Windows +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_win_or_dos=yes +else + ac_cv_win_or_dos=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5 +$as_echo "$ac_cv_win_or_dos" >&6; } -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds + if test x"$ac_cv_win_or_dos" = xyes; then + ac_fs_accepts_drive_letter_prefix=1 + ac_fs_backslash_is_file_name_separator=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5 +$as_echo_n "checking whether drive letter can start relative path... " >&6; } +if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_GCJ + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_GCJ +int +main () +{ -# ### END LIBTOOL TAG CONFIG: $tagname +#if defined __CYGWIN__ +drive letters are always absolute +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_drive_letter_can_be_relative=yes +else + ac_cv_drive_letter_can_be_relative=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -__EOF__ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5 +$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; } + if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then + ac_fs_drive_letter_can_be_relative=1 + else + ac_fs_drive_letter_can_be_relative=0 + fi + else + ac_fs_accepts_drive_letter_prefix=0 + ac_fs_backslash_is_file_name_separator=0 + ac_fs_drive_letter_can_be_relative=0 + fi -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix +_ACEOF -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -CC="$lt_save_CC" - else - tagname="" - fi - ;; - RC) +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator +_ACEOF -# Source file extension for RC test sources. -ac_ext=rc -# Object file extension for compiled RC test sources. -objext=o -objext_RC=$objext +cat >>confdefs.h <<_ACEOF +#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative +_ACEOF -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" -# ltmain only uses $CC for tagged configurations so make sure $CC is set. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +$as_echo_n "checking for ssize_t... " >&6; } +if test "${gt_cv_ssize_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_ssize_t=yes +else + gt_cv_ssize_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +$as_echo "$gt_cv_ssize_t" >&6; } + if test $gt_cv_ssize_t = no; then -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} +$as_echo "#define ssize_t int" >>confdefs.h -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + fi -# Allow CC to be a program name with arguments. -compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -compiler_RC=$CC -for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -lt_cv_prog_compiler_c_o_RC=yes + GNULIB_SIGNAL_H_SIGPIPE=0; + GNULIB_SIGPROCMASK=0; + GNULIB_SIGACTION=0; + HAVE_POSIX_SIGNALBLOCKING=1; + HAVE_SIGSET_T=1; + HAVE_SIGINFO_T=1; + HAVE_SIGACTION=1; + HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler_RC \ - CC_RC \ - LD_RC \ - lt_prog_compiler_wl_RC \ - lt_prog_compiler_pic_RC \ - lt_prog_compiler_static_RC \ - lt_prog_compiler_no_builtin_flag_RC \ - export_dynamic_flag_spec_RC \ - thread_safe_flag_spec_RC \ - whole_archive_flag_spec_RC \ - enable_shared_with_static_runtimes_RC \ - old_archive_cmds_RC \ - old_archive_from_new_cmds_RC \ - predep_objects_RC \ - postdep_objects_RC \ - predeps_RC \ - postdeps_RC \ - compiler_lib_search_path_RC \ - archive_cmds_RC \ - archive_expsym_cmds_RC \ - postinstall_cmds_RC \ - postuninstall_cmds_RC \ - old_archive_from_expsyms_cmds_RC \ - allow_undefined_flag_RC \ - no_undefined_flag_RC \ - export_symbols_cmds_RC \ - hardcode_libdir_flag_spec_RC \ - hardcode_libdir_flag_spec_ld_RC \ - hardcode_libdir_separator_RC \ - hardcode_automatic_RC \ - module_cmds_RC \ - module_expsym_cmds_RC \ - lt_cv_prog_compiler_c_o_RC \ - fix_srcfile_path_RC \ - exclude_expsyms_RC \ - include_expsyms_RC; do - - case $var in - old_archive_cmds_RC | \ - old_archive_from_new_cmds_RC | \ - archive_cmds_RC | \ - archive_expsym_cmds_RC | \ - module_cmds_RC | \ - module_expsym_cmds_RC | \ - old_archive_from_expsyms_cmds_RC | \ - export_symbols_cmds_RC | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac -cfgfile="$ofile" - cat <<__EOF__ >> "$cfgfile" -# ### BEGIN LIBTOOL TAG CONFIG: $tagname -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared -# Whether or not to build static libraries. -build_old_libs=$enable_static +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +$as_echo_n "checking for uid_t in sys/types.h... " >&6; } +if test "${ac_cv_type_uid_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc_RC +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1; then : + ac_cv_type_uid_t=yes +else + ac_cv_type_uid_t=no +fi +rm -f conftest* -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +$as_echo "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install +$as_echo "#define uid_t int" >>confdefs.h -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os +$as_echo "#define gid_t int" >>confdefs.h -# An echo program that does not interpret backslashes. -echo=$lt_echo +fi -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS -# A C compiler. -LTCC=$lt_LTCC -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS -# A language-specific compiler. -CC=$lt_compiler_RC -# Is the compiler the GNU C compiler? -with_gcc=$GCC_RC -# An ERE matcher. -EGREP=$lt_EGREP -# The linker used to build libraries. -LD=$lt_LD_RC -# Whether we need hard or soft links. -LN_S=$lt_LN_S -# A BSD-compatible nm program. -NM=$lt_NM -# A symbol stripping program -STRIP=$lt_STRIP -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl_RC -# Object file suffix (normally "o"). -objext="$ac_objext" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5 +$as_echo_n "checking for SIGPIPE... " >&6; } +if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Old archive suffix (normally "a"). -libext="$libext" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' +#include +#if !defined SIGPIPE +booboo +#endif -# Executable file suffix (normally ""). -exeext="$exeext" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "booboo" >/dev/null 2>&1; then : + gl_cv_header_signal_h_SIGPIPE=no +else + gl_cv_header_signal_h_SIGPIPE=yes +fi +rm -f conftest* -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic_RC -pic_mode=$pic_mode -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5 +$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; } -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC -# Must we lock files when doing compilation? -need_locks=$lt_need_locks + ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_snprintf" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_SNPRINTF $ac_have_decl +_ACEOF -# Do we need a version for libraries? -need_version=$need_version -# Whether dlopen is supported. -dlopen_support=$enable_dlopen -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static_RC -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC -# Library versioning type. -version_type=$version_type -# Format of library name prefix. -libname_spec=$lt_libname_spec -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if test "${ac_cv_header_stdbool_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds_RC -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds + struct s { _Bool s: 1; _Bool t; } s; -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + #if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a run-time + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); + #endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC +int +main () +{ -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds_RC -archive_expsym_cmds=$lt_archive_expsym_cmds_RC -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds_RC -module_expsym_cmds=$lt_module_expsym_cmds_RC + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } + ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = x""yes; then : -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects_RC -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects_RC +fi -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps_RC + if test $ac_cv_header_stdbool_h = yes; then -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps_RC +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC + fi -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag_RC -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag_RC -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5 +$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; } +if test "${gl_cv_prog_as_underscore+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat > conftest.c <&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } >/dev/null 2>&1 + if grep _foo conftest.s >/dev/null ; then + gl_cv_prog_as_underscore=yes + else + gl_cv_prog_as_underscore=no + fi + rm -f conftest* -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5 +$as_echo "$gl_cv_prog_as_underscore" >&6; } + if test $gl_cv_prog_as_underscore = yes; then + USER_LABEL_PREFIX=_ + else + USER_LABEL_PREFIX= + fi -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl +cat >>confdefs.h <<_ACEOF +#define USER_LABEL_PREFIX $USER_LABEL_PREFIX +_ACEOF -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action_RC -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct_RC -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L_RC -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic_RC -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs_RC -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols_RC -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds_RC + : -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms_RC -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms_RC -# ### END LIBTOOL TAG CONFIG: $tagname -__EOF__ + if test $gl_cv_have_include_next = yes; then + gl_cv_next_string_h='<'string.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_string_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi + + if test $ac_cv_header_string_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/string.h#{ + s#.*"\(.*/string.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_string_h='<'string.h'>' + fi + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 +$as_echo "$gl_cv_next_string_h" >&6; } + fi + NEXT_STRING_H=$gl_cv_next_string_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'string.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_string_h + fi + NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -CC="$lt_save_CC" - ;; - *) - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;} - { (exit 1); exit 1; }; } - ;; - esac - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" + for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" - else - rm -f "${ofile}T" - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;} - { (exit 1); exit 1; }; } - fi +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" +else + eval "$as_gl_Symbol=no" fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + eval ac_cv_have_decl_$gl_func=yes +fi + done -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' + ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" +if test "x$ac_cv_have_decl_strnlen" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -# Prevent multiple expansion +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_STRNLEN $ac_have_decl +_ACEOF + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_STRSTR=1 @@ -22542,3366 +26852,3775 @@ + gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" + fi + GNULIB_SOCKET=0; + GNULIB_CONNECT=0; + GNULIB_ACCEPT=0; + GNULIB_BIND=0; + GNULIB_GETPEERNAME=0; + GNULIB_GETSOCKNAME=0; + GNULIB_GETSOCKOPT=0; + GNULIB_LISTEN=0; + GNULIB_RECV=0; + GNULIB_SEND=0; + GNULIB_RECVFROM=0; + GNULIB_SENDTO=0; + GNULIB_SETSOCKOPT=0; + GNULIB_SHUTDOWN=0; + GNULIB_ACCEPT4=0; + HAVE_STRUCT_SOCKADDR_STORAGE=1; + HAVE_SA_FAMILY_T=1; + HAVE_ACCEPT4=1; -case "$host_os" in - # On Cygwin, without -no-undefined, a warning is emitted and only a static - # library is built. - beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;; - *) LTNOUNDEF='' ;; -esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 +$as_echo_n "checking whether is self-contained... " >&6; } +if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -case "$host_os" in - mingw* | cygwin*) is_woe32=yes ;; - *) is_woe32=no ;; -esac - if test $is_woe32 = yes; then - WOE32_TRUE= - WOE32_FALSE='#' + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_sys_socket_h_selfcontained=yes else - WOE32_TRUE='#' - WOE32_FALSE= + gl_cv_header_sys_socket_h_selfcontained=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 +$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; } + if test $gl_cv_header_sys_socket_h_selfcontained = yes; then + for ac_func in shutdown +do : + ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" +if test "x$ac_cv_func_shutdown" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SHUTDOWN 1 +_ACEOF +fi +done + if test $ac_cv_func_shutdown = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines the SHUT_* macros" >&5 +$as_echo_n "checking whether defines the SHUT_* macros... " >&6; } +if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } - # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then - enableval=$enable_nls; USE_NLS=$enableval + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_sys_socket_h_shut=yes else - USE_NLS=yes + gl_cv_header_sys_socket_h_shut=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $USE_NLS" >&5 -echo "${ECHO_T}$USE_NLS" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 +$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } + if test $gl_cv_header_sys_socket_h_shut = no; then + SYS_SOCKET_H='sys/socket.h' + fi + fi + fi + # We need to check for ws2tcpip.h now. - GETTEXT_MACRO_VERSION=0.17 + : -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" -fi -rm -f conf$$.file -# Extract the first word of "msgfmt", so it can be a program name with args. -set dummy msgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case "$MSGFMT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" - ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { echo "$as_me:$LINENO: result: $MSGFMT" >&5 -echo "${ECHO_T}$MSGFMT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_GMSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $GMSGFMT in - [\\/]* | ?:[\\/]*) - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" - ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 -echo "${ECHO_T}$GMSGFMT" >&6; } + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_socket_h='<'sys/socket.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_socket_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + if test $ac_cv_header_sys_socket_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/socket.h#{ + s#.*"\(.*/sys/socket.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_socket_h='<'sys/socket.h'>' + fi - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 +$as_echo "$gl_cv_next_sys_socket_h" >&6; } + fi + NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; - *) GMSGFMT_015=$GMSGFMT ;; - esac + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/socket.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_socket_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' + if test $ac_cv_header_sys_socket_h = yes; then + HAVE_SYS_SOCKET_H=1 + HAVE_WS2TCPIP_H=0 else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi + HAVE_SYS_SOCKET_H=0 + for ac_header in ws2tcpip.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" +if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WS2TCPIP_H 1 +_ACEOF -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" fi -rm -f conf$$.file -# Extract the first word of "xgettext", so it can be a program name with args. -set dummy xgettext; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_XGETTEXT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case "$XGETTEXT" in - [\\/]* | ?:[\\/]*) - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" - ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 -echo "${ECHO_T}$XGETTEXT" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +done - rm -f messages.po + if test $ac_cv_header_ws2tcpip_h = yes; then + HAVE_WS2TCPIP_H=1 + else + HAVE_WS2TCPIP_H=0 + fi + fi - case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; - *) XGETTEXT_015=$XGETTEXT ;; - esac + ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif + +" +if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_SOCKADDR_STORAGE 1 +_ACEOF -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conf$$.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conf$$.file -if test -x conf$$.file >/dev/null 2>&1; then - ac_executable_p="test -x" -else - ac_executable_p="test -f" fi -rm -f conf$$.file +ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif -# Extract the first word of "msgmerge", so it can be a program name with args. -set dummy msgmerge; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGMERGE+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case "$MSGMERGE" in - [\\/]* | ?:[\\/]*) - ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. - ;; - *) - ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$ac_save_IFS" - test -z "$ac_dir" && ac_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&5 - if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then - ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" - break 2 - fi - fi - done - done - IFS="$ac_save_IFS" - test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" - ;; -esac -fi -MSGMERGE="$ac_cv_path_MSGMERGE" -if test "$MSGMERGE" != ":"; then - { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 -echo "${ECHO_T}$MSGMERGE" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +" +if test "x$ac_cv_type_sa_family_t" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_SA_FAMILY_T 1 +_ACEOF - test -n "$localedir" || localedir='${datadir}/locale' +fi - test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= + if test $ac_cv_type_struct_sockaddr_storage = no; then + HAVE_STRUCT_SOCKADDR_STORAGE=0 + fi + if test $ac_cv_type_sa_family_t = no; then + HAVE_SA_FAMILY_T=0 + fi - ac_config_commands="$ac_config_commands po-directories" + : - { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 -echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } -if test "${ac_cv_gnu_library_2+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ >= 2) - Lucky GNU user - #endif -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - ac_cv_gnu_library_2=yes -else - ac_cv_gnu_library_2=no -fi -rm -f conftest* + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 +_ACEOF fi -{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 -echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } - GLIBC2="$ac_cv_gnu_library_2" +done + + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi - CFLAG_VISIBILITY= - HAVE_VISIBILITY=0 - if test -n "$GCC"; then - { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5 -echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; } - if test "${gl_cv_cc_visibility+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - - gl_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fvisibility=hidden" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern __attribute__((__visibility__("hidden"))) int hiddenvar; - extern __attribute__((__visibility__("default"))) int exportedvar; - extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); - extern __attribute__((__visibility__("default"))) int exportedfunc (void); + +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include +#endif +#include + int main () { - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_cc_visibility=yes +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_cc_visibility=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$gl_save_CFLAGS" fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + + eval ac_cv_have_decl_$gl_func=yes +fi + done + + + + GNULIB_SELECT=0; + REPLACE_SELECT=0; - { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5 -echo "${ECHO_T}$gl_cv_cc_visibility" >&6; } - if test $gl_cv_cc_visibility = yes; then - CFLAG_VISIBILITY="-fvisibility=hidden" - HAVE_VISIBILITY=1 - fi - fi -cat >>confdefs.h <<_ACEOF -#define HAVE_VISIBILITY $HAVE_VISIBILITY -_ACEOF -{ echo "$as_me:$LINENO: checking for inline" >&5 -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } -if test "${ac_cv_c_inline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 +$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } +if test "${ac_cv_header_stat_broken+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } +#include +#include + +#if defined S_ISBLK && defined S_IFDIR +extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; +#endif + +#if defined S_ISBLK && defined S_IFCHR +extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; +#endif + +#if defined S_ISLNK && defined S_IFREG +extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; +#endif + +#if defined S_ISSOCK && defined S_IFREG +extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; #endif _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_inline=$ac_kw +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stat_broken=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_header_stat_broken=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 +$as_echo "$ac_cv_header_stat_broken" >&6; } +if test $ac_cv_header_stat_broken = yes; then +$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -echo "${ECHO_T}$ac_cv_c_inline" >&6; } -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : + enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if test "${ac_cv_sys_largefile_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_sys_largefile_CC=no + if test "$GCC" != yes; then + ac_save_CC=$CC + while :; do + # IRIX 6.2 and later do not support large files by default, + # so use the C compiler's -n32 option if that helps. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=no + if ac_fn_c_try_compile "$LINENO"; then : + break fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext + CC="$CC -n32" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_largefile_CC=' -n32'; break fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - +rm -f core conftest.err conftest.$ac_objext + break + done + CC=$ac_save_CC + rm -f conftest.$ac_ext + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } + if test "$ac_cv_sys_largefile_CC" != no; then + CC=$CC$ac_cv_sys_largefile_CC + fi - - { echo "$as_me:$LINENO: checking for stdint.h" >&5 -echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } -if test "${gl_cv_header_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if test "${ac_cv_sys_file_offset_bits+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; int main () { -uintmax_t i = (uintmax_t) -1; return !i; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_stdint_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_header_stdint_h=no +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=no; break fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define _FILE_OFFSET_BITS 64 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_file_offset_bits=64; break +fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_file_offset_bits=unknown + break +done fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } - if test $gl_cv_header_stdint_h = yes; then - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( + no | unknown) ;; + *) cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H_WITH_UINTMAX 1 +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF - - fi - -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works -# for constant arguments. Useless! -{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +;; +esac +rm -rf conftest* + if test $ac_cv_sys_file_offset_bits = unknown; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if test "${ac_cv_sys_large_files+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + while :; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; int main () { -char *p = (char *) alloca (2 * sizeof (int)); - if (p) return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_working_alloca_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_working_alloca_h=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } -if test $ac_cv_working_alloca_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF - +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=no; break fi - -{ echo "$as_me:$LINENO: checking for alloca" >&5 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# ifdef HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif - +#define _LARGE_FILES 1 +#include + /* Check that off_t can represent 2**63 - 1 correctly. + We can't simply define LARGE_OFF_T to be 9223372036854775807, + since some C++ compilers masquerading as C compilers + incorrectly reject 9223372036854775807. */ +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 + && LARGE_OFF_T % 2147483647 == 1) + ? 1 : -1]; int main () { -char *p = (char *) alloca (1); - if (p) return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cv_sys_large_files=unknown + break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( + no | unknown) ;; + *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_alloca_works=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_alloca_works=no +rm -rf conftest* + fi fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curses libraries may be used" >&5 +$as_echo_n "checking whether curses libraries may be used... " >&6; } + # Check whether --enable-curses was given. +if test "${enable_curses+set}" = set; then : + enableval=$enable_curses; gl_curses_allowed="$enableval" +else + gl_curses_allowed=yes fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } -if test $ac_cv_func_alloca_works = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_curses_allowed" >&5 +$as_echo "$gl_curses_allowed" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_ALLOCA 1 -_ACEOF -else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. -ALLOCA=\${LIBOBJDIR}alloca.$ac_objext -cat >>confdefs.h <<\_ACEOF -#define C_ALLOCA 1 -_ACEOF -{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } -if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined CRAY && ! defined CRAY2 -webecray -#else -wenotbecray -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 -echo "${ECHO_T}$ac_cv_os_cray" >&6; } -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + if test "$gl_curses_allowed" != no; then -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then -cat >>confdefs.h <<_ACEOF -#define CRAY_STACKSEG_END $ac_func -_ACEOF + use_additional=yes - break -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - done -fi + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -int -main () -{ - return find_stack_direction () < 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_stack_direction=1 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_c_stack_direction=-1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +# Check whether --with-libncurses-prefix was given. +if test "${with_libncurses_prefix+set}" = set; then : + withval=$with_libncurses_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -cat >>confdefs.h <<_ACEOF -#define STACK_DIRECTION $ac_cv_c_stack_direction -_ACEOF + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi fi + LIBNCURSES= + LTLIBNCURSES= + INCNCURSES= + LIBNCURSES_PREFIX= + HAVE_LIBNCURSES= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='ncurses ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBNCURSES; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBNCURSES; do -for ac_header in stdlib.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - ac_header_compiler=no -fi + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" + else + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a" + else + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'ncurses'; then + LIBNCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'ncurses'; then + LIBNCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCNCURSES; do -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBNCURSES; do - ac_header_preproc=no -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBNCURSES; do -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep" + LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep" + ;; + esac + done + fi + else + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name" + LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir" + done + fi -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -for ac_func in getpagesize -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done -{ echo "$as_me:$LINENO: checking for working mmap" >&5 -echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } -if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_mmap_fixed_mapped=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -/* malloc might have been renamed as rpl_malloc. */ -#undef malloc + use_additional=yes -/* Thanks to Mike Haertel and Jim Avera for this test. - Here is a matrix of mmap possibilities: - mmap private not fixed - mmap private fixed at somewhere currently unmapped - mmap private fixed at somewhere already mapped - mmap shared not fixed - mmap shared fixed at somewhere currently unmapped - mmap shared fixed at somewhere already mapped - For private mappings, we should verify that changes cannot be read() - back from the file, nor mmap's back from the file at a different - address. (There have been systems where private was not correctly - implemented like the infamous i386 svr4.0, and systems where the - VM page cache was not coherent with the file system buffer cache - like early versions of FreeBSD and possibly contemporary NetBSD.) - For shared mappings, we should conversely verify that changes get - propagated back to all the places they're supposed to be. + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - Grep wants private fixed already mapped. - The main things grep needs to know about mmap are: - * does it exist and is it safe to write into the mmap'd area - * how to use it (BSD variants) */ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -#include -#include + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H -char *malloc (); -#endif -/* This mess was copied from the GNU getpagesize.h. */ -#ifndef HAVE_GETPAGESIZE -/* Assume that all systems that can run configure have sys/param.h. */ -# ifndef HAVE_SYS_PARAM_H -# define HAVE_SYS_PARAM_H 1 -# endif +# Check whether --with-libtermcap-prefix was given. +if test "${with_libtermcap_prefix+set}" = set; then : + withval=$with_libtermcap_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -# ifdef _SC_PAGESIZE -# define getpagesize() sysconf(_SC_PAGESIZE) -# else /* no _SC_PAGESIZE */ -# ifdef HAVE_SYS_PARAM_H -# include -# ifdef EXEC_PAGESIZE -# define getpagesize() EXEC_PAGESIZE -# else /* no EXEC_PAGESIZE */ -# ifdef NBPG -# define getpagesize() NBPG * CLSIZE -# ifndef CLSIZE -# define CLSIZE 1 -# endif /* no CLSIZE */ -# else /* no NBPG */ -# ifdef NBPC -# define getpagesize() NBPC -# else /* no NBPC */ -# ifdef PAGESIZE -# define getpagesize() PAGESIZE -# endif /* PAGESIZE */ -# endif /* no NBPC */ -# endif /* no NBPG */ -# endif /* no EXEC_PAGESIZE */ -# else /* no HAVE_SYS_PARAM_H */ -# define getpagesize() 8192 /* punt totally */ -# endif /* no HAVE_SYS_PARAM_H */ -# endif /* no _SC_PAGESIZE */ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -#endif /* no HAVE_GETPAGESIZE */ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -int -main () -{ - char *data, *data2, *data3; - int i, pagesize; - int fd; + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - pagesize = getpagesize (); + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi - /* First, make a file with some known garbage in it. */ - data = (char *) malloc (pagesize); - if (!data) - return 1; - for (i = 0; i < pagesize; ++i) - *(data + i) = rand (); - umask (0); - fd = creat ("conftest.mmap", 0600); - if (fd < 0) - return 1; - if (write (fd, data, pagesize) != pagesize) - return 1; - close (fd); +fi - /* Next, try to mmap the file at a fixed address which already has - something else allocated at it. If we can, also make sure that - we see the same garbage. */ - fd = open ("conftest.mmap", O_RDWR); - if (fd < 0) - return 1; - data2 = (char *) malloc (2 * pagesize); - if (!data2) - return 1; - data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data2 + i)) - return 1; + LIBTERMCAP= + LTLIBTERMCAP= + INCTERMCAP= + LIBTERMCAP_PREFIX= + HAVE_LIBTERMCAP= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='termcap ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBTERMCAP; do - /* Finally, make sure that changes to the mapped area do not - percolate back to the file as seen by read(). (This is a bug on - some variants of i386 svr4.0.) */ - for (i = 0; i < pagesize; ++i) - *(data2 + i) = *(data2 + i) + 1; - data3 = (char *) malloc (pagesize); - if (!data3) - return 1; - if (read (fd, data3, pagesize) != pagesize) - return 1; - for (i = 0; i < pagesize; ++i) - if (*(data + i) != *(data3 + i)) - return 1; - close (fd); - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_mmap_fixed_mapped=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -( exit $ac_status ) -ac_cv_func_mmap_fixed_mapped=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBTERMCAP; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" + else + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a" + else + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'termcap'; then + LIBTERMCAP_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'termcap'; then + LIBTERMCAP_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCTERMCAP; do -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } -if test $ac_cv_func_mmap_fixed_mapped = yes; then + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -cat >>confdefs.h <<\_ACEOF -#define HAVE_MMAP 1 -_ACEOF + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBTERMCAP; do -fi -rm -f conftest.mmap + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBTERMCAP; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 -echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } -if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep" + LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep" + ;; + esac + done + fi + else + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name" + LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir" + done + fi - gt_cv_int_divbyzero_sigfpe= - case "$host_os" in - macos* | darwin[6-9]* | darwin[1-9][0-9]*) - # On MacOS X 10.2 or newer, just assume the same as when cross- - # compiling. If we were to perform the real test, 1 Crash Report - # dialog window would pop up. - case "$host_cpu" in - i[34567]86 | x86_64) - gt_cv_int_divbyzero_sigfpe="guessing yes" ;; - esac - ;; - esac - if test -z "$gt_cv_int_divbyzero_sigfpe"; then - if test "$cross_compiling" = yes; then - # Guess based on the CPU. - case "$host_cpu" in - alpha* | i[34567]86 | x86_64 | m68k | s390*) - gt_cv_int_divbyzero_sigfpe="guessing yes";; - *) - gt_cv_int_divbyzero_sigfpe="guessing no";; - esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static void -sigfpe_handler (int sig) -{ - /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ - exit (sig != SIGFPE); -} -int x = 1; -int y = 0; -int z; -int nan; -int main () -{ - signal (SIGFPE, sigfpe_handler); -/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ -#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) - signal (SIGTRAP, sigfpe_handler); -#endif -/* Linux/SPARC yields signal SIGILL. */ -#if defined (__sparc__) && defined (__linux__) - signal (SIGILL, sigfpe_handler); -#endif - z = x / y; - nan = y / y; - exit (1); -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gt_cv_int_divbyzero_sigfpe=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gt_cv_int_divbyzero_sigfpe=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - fi -fi -{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 -echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } - case "$gt_cv_int_divbyzero_sigfpe" in - *yes) value=1;; - *) value=0;; - esac -cat >>confdefs.h <<_ACEOF -#define INTDIV0_RAISES_SIGFPE $value -_ACEOF + use_additional=yes + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - { echo "$as_me:$LINENO: checking for inttypes.h" >&5 -echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } -if test "${gl_cv_header_inttypes_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -uintmax_t i = (uintmax_t) -1; return !i; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_inttypes_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - gl_cv_header_inttypes_h=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Check whether --with-libxcurses-prefix was given. +if test "${with_libxcurses_prefix+set}" = set; then : + withval=$with_libxcurses_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi + fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 -echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } - if test $gl_cv_header_inttypes_h = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_INTTYPES_H_WITH_UINTMAX 1 -_ACEOF + LIBXCURSES= + LTLIBXCURSES= + INCXCURSES= + LIBXCURSES_PREFIX= + HAVE_LIBXCURSES= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='xcurses ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBXCURSES; do - fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBXCURSES; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - { echo "$as_me:$LINENO: checking for unsigned long long int" >&5 -echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; } -if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" + else + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a" + else + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'xcurses'; then + LIBXCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'xcurses'; then + LIBXCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCXCURSES; do - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; -int -main () -{ -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); - ; - return 0; -} + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_type_unsigned_long_long_int=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBXCURSES; do - ac_cv_type_unsigned_long_long_int=no -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5 -echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; } - if test $ac_cv_type_unsigned_long_long_int = yes; then + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBXCURSES; do -cat >>confdefs.h <<\_ACEOF -#define HAVE_UNSIGNED_LONG_LONG_INT 1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep" + LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep" + ;; + esac + done + fi + else + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name" + LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir" + done fi - if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then - test $ac_cv_type_unsigned_long_long_int = yes \ - && ac_type='unsigned long long' \ - || ac_type='unsigned long' -cat >>confdefs.h <<_ACEOF -#define uintmax_t $ac_type -_ACEOF - else -cat >>confdefs.h <<\_ACEOF -#define HAVE_UINTMAX_T 1 -_ACEOF - fi -for ac_header in inttypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + use_additional=yes -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - ac_header_preproc=no -fi + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +# Check whether --with-libcurses-prefix was given. +if test "${with_libcurses_prefix+set}" = set; then : + withval=$with_libcurses_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -fi + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" -done + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - if test $ac_cv_header_inttypes_h = yes; then - { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 -echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } -if test "${gt_cv_inttypes_pri_broken+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef PRId32 -char *p = PRId32; -#endif +fi -int -main () -{ + LIBCURSES= + LTLIBCURSES= + INCCURSES= + LIBCURSES_PREFIX= + HAVE_LIBCURSES= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='curses ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBCURSES; do - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_inttypes_pri_broken=no -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - gt_cv_inttypes_pri_broken=yes -fi + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBCURSES; do -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 -echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } - fi - if test "$gt_cv_inttypes_pri_broken" = yes; then + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" + else + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a" + else + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'curses'; then + LIBCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'curses'; then + LIBCURSES_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCCURSES; do -cat >>confdefs.h <<_ACEOF -#define PRI_MACROS_BROKEN 1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - PRI_MACROS_BROKEN=1 - else - PRI_MACROS_BROKEN=0 - fi + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBCURSES; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBCURSES; do + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep" + LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep" + ;; + esac + done + fi + else + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name" + LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag" + done + fi fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir" + done fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } -else - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } -fi -if test "${acl_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } -if test "${acl_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 &5 -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } -if test "${acl_cv_rpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + else - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done + LIBNCURSES= + LTLIBNCURSES= + INCNCURSES= -fi -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 -echo "${ECHO_T}$acl_cv_rpath" >&6; } - wl="$acl_cv_wl" - acl_libext="$acl_cv_libext" - acl_shlibext="$acl_cv_shlibext" - acl_libname_spec="$acl_cv_libname_spec" - acl_library_names_spec="$acl_cv_library_names_spec" - acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - acl_hardcode_direct="$acl_cv_hardcode_direct" - acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" - # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then - enableval=$enable_rpath; : -else - enable_rpath=yes -fi + LIBTERMCAP= + LTLIBTERMCAP= + INCTERMCAP= + LIBXCURSES= + LTLIBXCURSES= + INCXCURSES= + LIBCURSES= + LTLIBCURSES= + INCCURSES= - acl_libdirstem=lib - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where terminfo library functions come from" >&5 +$as_echo_n "checking where terminfo library functions come from... " >&6; } +if test "${gl_cv_terminfo+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - - gl_threads_api=none - LIBTHREAD= - LTLIBTHREAD= - LIBMULTITHREAD= - LTLIBMULTITHREAD= - if test "$gl_use_threads" != no; then - { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5 -echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; } - gl_have_weak=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + gl_cv_terminfo="not found, consider installing GNU ncurses" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern void xyzzy (); -#pragma weak xyzzy +extern + #ifdef __cplusplus + "C" + #endif + int setupterm (const char *, int, int *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetnum (const char *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetflag (const char *); + extern + #ifdef __cplusplus + "C" + #endif + const char * tigetstr (const char *); + int main () { -xyzzy(); +return setupterm ("xterm", 0, (int *)0) + + tigetnum ("colors") + + tigetflag ("hc") + * tigetstr("oc"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_weak=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo=libc fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_terminfo" != libc; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBNCURSES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + int setupterm (const char *, int, int *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetnum (const char *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetflag (const char *); + extern + #ifdef __cplusplus + "C" + #endif + const char * tigetstr (const char *); -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - { echo "$as_me:$LINENO: result: $gl_have_weak" >&5 -echo "${ECHO_T}$gl_have_weak" >&6; } - if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then - # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that - # it groks . It's added above, in gl_LOCK_EARLY_BODY. - if test "${ac_cv_header_pthread_h+set}" = set; then - { echo "$as_me:$LINENO: checking for pthread.h" >&5 -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking pthread.h usability" >&5 -echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +int +main () +{ +return setupterm ("xterm", 0, (int *)0) + + tigetnum ("colors") + + tigetflag ("hc") + * tigetstr("oc"); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo=libncurses +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test "$gl_cv_terminfo" != libncurses; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBTERMCAP" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +extern + #ifdef __cplusplus + "C" + #endif + int setupterm (const char *, int, int *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetnum (const char *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetflag (const char *); + extern + #ifdef __cplusplus + "C" + #endif + const char * tigetstr (const char *); - ac_header_compiler=no +int +main () +{ +return setupterm ("xterm", 0, (int *)0) + + tigetnum ("colors") + + tigetflag ("hc") + * tigetstr("oc"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo=libtermcap fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test "$gl_cv_terminfo" != libtermcap; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBXCURSES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + int setupterm (const char *, int, int *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetnum (const char *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetflag (const char *); + extern + #ifdef __cplusplus + "C" + #endif + const char * tigetstr (const char *); -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking pthread.h presence" >&5 -echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +int +main () +{ +return setupterm ("xterm", 0, (int *)0) + + tigetnum ("colors") + + tigetflag ("hc") + * tigetstr("oc"); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo=libxcurses +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test "$gl_cv_terminfo" != libxcurses; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBCURSES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +extern + #ifdef __cplusplus + "C" + #endif + int setupterm (const char *, int, int *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetnum (const char *); + extern + #ifdef __cplusplus + "C" + #endif + int tigetflag (const char *); + extern + #ifdef __cplusplus + "C" + #endif + const char * tigetstr (const char *); - ac_header_preproc=no +int +main () +{ +return setupterm ("xterm", 0, (int *)0) + + tigetnum ("colors") + + tigetflag ("hc") + * tigetstr("oc"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo=libcurses fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + fi + fi + fi + fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 -echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for pthread.h" >&5 -echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } -if test "${ac_cv_header_pthread_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_header_pthread_h=$ac_header_preproc fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 -echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo" >&5 +$as_echo "$gl_cv_terminfo" >&6; } + case "$gl_cv_terminfo" in + libc) + LIBTERMINFO= + LTLIBTERMINFO= + INCTERMINFO= + ;; + libncurses) + LIBTERMINFO="$LIBNCURSES" + LTLIBTERMINFO="$LTLIBNCURSES" + INCTERMINFO="$INCNCURSES" + ;; + libtermcap) + LIBTERMINFO="$LIBTERMCAP" + LTLIBTERMINFO="$LTLIBTERMCAP" + INCTERMINFO="$INCTERMCAP" + ;; + libxcurses) + LIBTERMINFO="$LIBXCURSES" + LTLIBTERMINFO="$LTLIBXCURSES" + INCTERMINFO="$INCXCURSES" + ;; + libcurses) + LIBTERMINFO="$LIBCURSES" + LTLIBTERMINFO="$LTLIBCURSES" + INCTERMINFO="$INCCURSES" + ;; + esac + case "$gl_cv_terminfo" in + libc | libncurses | libtermcap | libxcurses | libcurses) -fi -if test $ac_cv_header_pthread_h = yes; then - gl_have_pthread_h=yes -else - gl_have_pthread_h=no -fi +$as_echo "#define HAVE_TERMINFO 1" >>confdefs.h + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where termcap library functions come from" >&5 +$as_echo_n "checking where termcap library functions come from... " >&6; } +if test "${gl_cv_termcap+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - if test "$gl_have_pthread_h" = yes; then - # Other possible tests: - # -lpthreads (FSU threads, PCthreads) - # -lgthreads - gl_have_pthread= - # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist - # in libc. IRIX 6.5 has the first one in both libc and libpthread, but - # the second one only in libpthread, and lock.c needs it. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + gl_cv_termcap="not found, consider installing GNU ncurses" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +extern + #ifdef __cplusplus + "C" + #endif + int tgetent (char *, const char *); + int main () { -pthread_mutex_lock((pthread_mutex_t*)0); - pthread_mutexattr_init((pthread_mutexattr_t*)0); +return tgetent ((char *) 0, "xterm"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_pthread=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_termcap=libc fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_termcap" != libc; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBNCURSES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + int tgetent (char *, const char *); -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - # Test for libpthread by looking for pthread_kill. (Not pthread_self, - # since it is defined as a macro on OSF/1.) - if test -n "$gl_have_pthread"; then - # The program links fine without libpthread. But it may actually - # need to link with libpthread in order to create multiple threads. - { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } -if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +int +main () +{ +return tgetent ((char *) 0, "xterm"); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_termcap=libncurses +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + if test "$gl_cv_termcap" != libncurses; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBTERMCAP" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + int tgetent (char *, const char *); -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); int main () { -return pthread_kill (); +return tgetent ((char *) 0, "xterm"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pthread_pthread_kill=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_termcap=libtermcap +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$gl_save_LIBS" + fi + fi - ac_cv_lib_pthread_pthread_kill=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_termcap" >&5 +$as_echo "$gl_cv_termcap" >&6; } + case "$gl_cv_termcap" in + libc) + LIBTERMINFO= + LTLIBTERMINFO= + INCTERMINFO= + ;; + libncurses) + LIBTERMINFO="$LIBNCURSES" + LTLIBTERMINFO="$LTLIBNCURSES" + INCTERMINFO="$INCNCURSES" + ;; + libtermcap) + LIBTERMINFO="$LIBTERMCAP" + LTLIBTERMINFO="$LTLIBTERMCAP" + INCTERMINFO="$INCTERMCAP" + ;; + esac + case "$gl_cv_termcap" in + libc | libncurses | libtermcap) + +$as_echo "#define HAVE_TERMCAP 1" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } -if test $ac_cv_lib_pthread_pthread_kill = yes; then - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread - # On Solaris and HP-UX, most pthread functions exist also in libc. - # Therefore pthread_in_use() needs to actually try to create a - # thread: pthread_create from libc will fail, whereas - # pthread_create will actually create a thread. - case "$host_os" in - solaris* | hpux*) + ;; + esac + ;; + esac -cat >>confdefs.h <<\_ACEOF -#define PTHREAD_IN_USE_DETECTION_HARD 1 -_ACEOF - esac -fi - else - # Some library is needed. Try libpthread and libc_r. - { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5 -echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; } -if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparam" >&5 +$as_echo_n "checking for tparam... " >&6; } +if test "${gl_cv_terminfo_tparam+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBTERMINFO" + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCTERMINFO" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + char * tparam (const char *, void *, int, ...); + char buf; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); int main () { -return pthread_kill (); +return tparam ("\033\133%dm", &buf, 1, 8); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_pthread_pthread_kill=yes +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo_tparam=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_pthread_pthread_kill=no + gl_cv_terminfo_tparam=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gl_save_CPPFLAGS" + LIBS="$gl_save_LIBS" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; } -if test $ac_cv_lib_pthread_pthread_kill = yes; then - gl_have_pthread=yes - LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread - LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparam" >&5 +$as_echo "$gl_cv_terminfo_tparam" >&6; } + if test $gl_cv_terminfo_tparam = yes; then - if test -z "$gl_have_pthread"; then - # For FreeBSD 4. - { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5 -echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; } -if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +$as_echo "#define HAVE_TPARAM 1" >>confdefs.h + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm" >&5 +$as_echo_n "checking for tparm... " >&6; } +if test "${gl_cv_terminfo_tparm+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lc_r $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBTERMINFO" + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCTERMINFO" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +extern + #ifdef __cplusplus + "C" + #endif + char * tparm (const char *, ...); -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char pthread_kill (); int main () { -return pthread_kill (); +return tparm ("\033\133%dm", 8); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_c_r_pthread_kill=yes +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_terminfo_tparm=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_c_r_pthread_kill=no + gl_cv_terminfo_tparm=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CPPFLAGS="$gl_save_CPPFLAGS" + LIBS="$gl_save_LIBS" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5 -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; } -if test $ac_cv_lib_c_r_pthread_kill = yes; then - gl_have_pthread=yes - LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r - LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_terminfo_tparm" >&5 +$as_echo "$gl_cv_terminfo_tparm" >&6; } + fi - fi - fi - if test -n "$gl_have_pthread"; then - gl_threads_api=posix -cat >>confdefs.h <<\_ACEOF -#define USE_POSIX_THREADS 1 -_ACEOF + GNULIB_MKTIME=0; + GNULIB_NANOSLEEP=0; + GNULIB_STRPTIME=0; + GNULIB_TIMEGM=0; + GNULIB_TIME_R=0; + HAVE_LOCALTIME_R=1; + HAVE_NANOSLEEP=1; + HAVE_STRPTIME=1; + HAVE_TIMEGM=1; + REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; + REPLACE_MKTIME=GNULIB_PORTCHECK; + REPLACE_NANOSLEEP=GNULIB_PORTCHECK; + REPLACE_TIMEGM=GNULIB_PORTCHECK; - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_POSIX_THREADS_WEAK 1 -_ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the - # pthread_rwlock_* functions. - { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 -echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } -if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + : + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include -typedef pthread_rwlock_t ac__type_new_; int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_pthread_rwlock_t=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_time_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_pthread_rwlock_t=no + gl_cv_sys_struct_timespec_in_time_h=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 -echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } -if test $ac_cv_type_pthread_rwlock_t = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_RWLOCK 1 -_ACEOF - -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } - # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + TIME_H_DEFINES_STRUCT_TIMESPEC=0 + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 + if test $gl_cv_sys_struct_timespec_in_time_h = yes; then + TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + int main () { -#if __FreeBSD__ == 4 -error "No, in FreeBSD 4.0 recursive mutexes actually don't work." -#else -int x = (int)PTHREAD_MUTEX_RECURSIVE; -return !x; -#endif +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_PTHREAD_MUTEX_RECURSIVE 1 -_ACEOF - +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_sys_time_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gl_cv_sys_struct_timespec_in_sys_time_h=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then - gl_have_solaristhread= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lthread" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } + if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 +$as_echo_n "checking for struct timespec in ... " >&6; } +if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include + int main () { -thr_self(); +static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_solaristhread=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_sys_struct_timespec_in_pthread_h=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_sys_struct_timespec_in_pthread_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 +$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } + if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 + fi + fi + fi + + + + + + + -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test -n "$gl_have_solaristhread"; then - gl_threads_api=solaris - LIBTHREAD=-lthread - LTLIBTHREAD=-lthread - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" -cat >>confdefs.h <<\_ACEOF -#define USE_SOLARIS_THREADS 1 + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_time_h='<'time.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_time_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_time_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/time.h#{ + s#.*"\(.*/time.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_time_h='<'time.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 +$as_echo "$gl_cv_next_time_h" >&6; } + fi + NEXT_TIME_H=$gl_cv_next_time_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'time.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_time_h + fi + NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive + + + + + + + + - if test $gl_have_weak = yes; then -cat >>confdefs.h <<\_ACEOF -#define USE_SOLARIS_THREADS_WEAK 1 + +gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' + + + if test "$HAVE_LIBUNISTRING" = yes; then + LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` + LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` + LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` + fi + + + + + + + + ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl _ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - fi - fi - if test "$gl_use_threads" = pth; then - gl_save_CPPFLAGS="$CPPFLAGS" + ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl +_ACEOF - { echo "$as_me:$LINENO: checking how to link with libpth" >&5 -echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; } -if test "${ac_cv_libpth_libs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then : + ac_have_decl=1 else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl +_ACEOF + ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - use_additional=yes +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl +_ACEOF - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl +_ACEOF -# Check whether --with-libpth-prefix was given. -if test "${with_libpth_prefix+set}" = set; then - withval=$with_libpth_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl +_ACEOF - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi + + ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi - LIBPTH= - LTLIBPTH= - INCPTH= - LIBPTH_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='pth ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBPTH; do +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl +_ACEOF - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBPTH; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl +_ACEOF + - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" - else - LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" - else - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBPTH_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCPTH; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBPTH; do +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl +_ACEOF - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBPTH; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl +_ACEOF - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" - ;; - esac - done - fi - else - LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" - done - fi - ac_cv_libpth_libs="$LIBPTH" - ac_cv_libpth_ltlibs="$LTLIBPTH" - ac_cv_libpth_cppflags="$INCPTH" - ac_cv_libpth_prefix="$LIBPTH_PREFIX" + ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5 -echo "${ECHO_T}$ac_cv_libpth_libs" >&6; } - LIBPTH="$ac_cv_libpth_libs" - LTLIBPTH="$ac_cv_libpth_ltlibs" - INCPTH="$ac_cv_libpth_cppflags" - LIBPTH_PREFIX="$ac_cv_libpth_prefix" - for element in $INCPTH; do - haveit= - for x in $CPPFLAGS; do +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl +_ACEOF - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done + ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl +_ACEOF - HAVE_LIBPTH=yes - gl_have_pth= - gl_save_LIBS="$LIBS" - LIBS="$LIBS -lpth" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 +$as_echo_n "checking for intmax_t... " >&6; } +if test "${gt_cv_c_intmax_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +#include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +#include +#endif + int main () { -pth_self(); +intmax_t x = -1; return !x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_have_pth=yes +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_intmax_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_c_intmax_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 +$as_echo "$gt_cv_c_intmax_t" >&6; } + if test $gt_cv_c_intmax_t = yes; then + +$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h + + else + test $ac_cv_type_long_long_int = yes \ + && ac_type='long long' \ + || ac_type='long' + +cat >>confdefs.h <<_ACEOF +#define intmax_t $ac_type +_ACEOF + + fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 +$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; } +if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; + darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on OpenBSD >= 3.9. + openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) + gl_cv_func_snprintf_retval_c99="guessing no";; + openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on Solaris >= 2.6. + solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";; + solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on AIX >= 4. + aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; + aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_snprintf_retval_c99="guessing no";; + netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_snprintf_retval_c99="guessing no";; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +static char buf[100]; +int main () +{ + strcpy (buf, "ABCDEF"); + if (snprintf (buf, 3, "%d %d", 4567, 89) != 7) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_snprintf_retval_c99=yes +else + gl_cv_func_snprintf_retval_c99=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test -n "$gl_have_pth"; then - gl_threads_api=pth - LIBTHREAD="$LIBPTH" - LTLIBTHREAD="$LTLIBPTH" - LIBMULTITHREAD="$LIBTHREAD" - LTLIBMULTITHREAD="$LTLIBTHREAD" -cat >>confdefs.h <<\_ACEOF -#define USE_PTH_THREADS 1 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 +$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; } + + + + + + + + for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then - if test $gl_have_weak = yes; then +fi +done + + ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include +" +if test "x$ac_cv_have_decl__snprintf" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi -cat >>confdefs.h <<\_ACEOF -#define USE_PTH_THREADS_WEAK 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL__SNPRINTF $ac_have_decl _ACEOF - LIBTHREAD= - LTLIBTHREAD= - fi - fi - else - CPPFLAGS="$gl_save_CPPFLAGS" - fi - fi - if test -z "$gl_have_pthread"; then - if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then - if { case "$host_os" in - mingw*) true;; - *) false;; - esac - }; then - gl_threads_api=win32 -cat >>confdefs.h <<\_ACEOF -#define USE_WIN32_THREADS 1 + case "$gl_cv_func_snprintf_retval_c99" in + *yes) + +$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h + + ;; + esac + + + ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_VSNPRINTF $ac_have_decl +_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uses 'inline' correctly" >&5 +$as_echo_n "checking whether uses 'inline' correctly... " >&6; } +if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_header_wchar_h_correct_inline=yes + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define wcstod renamed_wcstod +#include +extern int zero (void); +int main () { return zero(); } + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + mv conftest.$ac_objext conftest1.$ac_objext + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define wcstod renamed_wcstod +#include +int zero (void) { return 0; } + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + mv conftest.$ac_objext conftest2.$ac_objext + if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then + : + else + gl_cv_header_wchar_h_correct_inline=no + fi + fi + fi + rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 +$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } + if test $gl_cv_header_wchar_h_correct_inline = no; then + as_fn_error " cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). +This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in +C99 mode. You have four options: + - Add the flag -fgnu89-inline to CC and reconfigure, or + - Fix your include files, using parts of + , or + - Use a gcc version older than 4.3, or + - Don't use the flags -std=c99 or -std=gnu99. +Configuration aborted." "$LINENO" 5 + fi + + + + + + + + + + + + + + + + + + ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" +if test "x$ac_cv_have_decl_alarm" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ALARM $ac_have_decl +_ACEOF + + + + + + + + + + + + + + + + + + + + + + + + if true; then + GL_COND_LIBTOOL_TRUE= + GL_COND_LIBTOOL_FALSE='#' +else + GL_COND_LIBTOOL_TRUE='#' + GL_COND_LIBTOOL_FALSE= +fi + + gl_cond_libtool=true + gl_m4_base='gnulib-m4' + + + + + + + + + + gl_source_base='gnulib-lib' + # Code from module acl: + + # Check whether --enable-acl was given. +if test "${enable_acl+set}" = set; then : + enableval=$enable_acl; +else + enable_acl=auto +fi + + + LIB_ACL= + use_acl=0 + + if test "x$enable_acl" != "xno"; then + for ac_header in sys/acl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_acl_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_ACL_H 1 +_ACEOF + +fi + +done + + if test $ac_cv_header_sys_acl_h = yes; then + ac_save_LIBS=$LIBS + + if test $use_acl = 0; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5 +$as_echo_n "checking for library containing acl_get_file... " >&6; } +if test "${ac_cv_search_acl_get_file+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char acl_get_file (); +int +main () +{ +return acl_get_file (); + ; + return 0; +} +_ACEOF +for ac_lib in '' acl pacl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_acl_get_file=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_acl_get_file+set}" = set; then : + break +fi +done +if test "${ac_cv_search_acl_get_file+set}" = set; then : + +else + ac_cv_search_acl_get_file=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5 +$as_echo "$ac_cv_search_acl_get_file" >&6; } +ac_res=$ac_cv_search_acl_get_file +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + if test "$ac_cv_search_acl_get_file" != "none required"; then + LIB_ACL=$ac_cv_search_acl_get_file + fi + for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \ + acl_free acl_from_mode acl_from_text \ + acl_delete_def_file acl_extended_file \ + acl_delete_fd_np acl_delete_file_np \ + acl_copy_ext_native acl_create_entry_np \ + acl_to_short_text acl_free_text +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF - fi - fi - fi - fi - { echo "$as_me:$LINENO: checking for multithread API to use" >&5 -echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_threads_api" >&5 -echo "${ECHO_T}$gl_threads_api" >&6; } - +fi +done + # If the acl_get_file bug is detected, don't enable the ACL support. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5 +$as_echo_n "checking for working acl_get_file... " >&6; } +if test "${gl_cv_func_working_acl_get_file+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_working_acl_get_file=cross-compiling +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + #include +int +main () +{ +return !! (!acl_get_file (".", ACL_TYPE_ACCESS) + && errno == ENOENT); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_acl_get_file=yes +else + gl_cv_func_working_acl_get_file=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5 +$as_echo "$gl_cv_func_working_acl_get_file" >&6; } + if test $gl_cv_func_working_acl_get_file = yes; then : + use_acl=1 +fi + if test $use_acl = 1; then + for ac_header in acl/libacl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default" +if test "x$ac_cv_header_acl_libacl_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ACL_LIBACL_H 1 +_ACEOF +fi +done @@ -25911,636 +30630,284 @@ + for ac_func in acl_entries +do : + ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries" +if test "x$ac_cv_func_acl_entries" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ACL_ENTRIES 1 +_ACEOF +else - use_additional=yes + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" +fi +done - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5 +$as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; } +if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int type = ACL_FIRST_ENTRY; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_acl_ACL_FIRST_ENTRY=yes +else + gl_cv_acl_ACL_FIRST_ENTRY=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5 +$as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; } + if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then +$as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h -# Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then - withval=$with_libiconv_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5 +$as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; } +if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int type = ACL_TYPE_EXTENDED; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_acl_ACL_TYPE_EXTENDED=yes +else + gl_cv_acl_ACL_TYPE_EXTENDED=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5 +$as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; } + if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" +$as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + fi + else + LIB_ACL= + fi - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +fi - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" fi - fi + + if test $use_acl = 0; then + for ac_func in acl +do : + ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl" +if test "x$ac_cv_func_acl" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ACL 1 +_ACEOF fi +done - LIBICONV= - LTLIBICONV= - INCICONV= - LIBICONV_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='iconv ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBICONV; do + if test $ac_cv_func_acl = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5 +$as_echo_n "checking for library containing acl_trivial... " >&6; } +if test "${ac_cv_search_acl_trivial+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char acl_trivial (); +int +main () +{ +return acl_trivial (); + ; + return 0; +} +_ACEOF +for ac_lib in '' sec; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_acl_trivial=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if test "${ac_cv_search_acl_trivial+set}" = set; then : + break +fi +done +if test "${ac_cv_search_acl_trivial+set}" = set; then : - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBICONV; do +else + ac_cv_search_acl_trivial=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5 +$as_echo "$ac_cv_search_acl_trivial" >&6; } +ac_res=$ac_cv_search_acl_trivial +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + if test "$ac_cv_search_acl_trivial" != "none required"; then + LIB_ACL=$ac_cv_search_acl_trivial + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +fi - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBICONV_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCICONV; do + for ac_func in acl_trivial +do : + ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial" +if test "x$ac_cv_func_acl_trivial" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ACL_TRIVIAL 1 +_ACEOF - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +fi +done - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBICONV; do + use_acl=1 + fi + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then + for ac_func in getacl +do : + ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl" +if test "x$ac_cv_func_getacl" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETACL 1 +_ACEOF - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBICONV; do +fi +done - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + if test $ac_cv_func_getacl = yes; then + use_acl=1 + fi + fi - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" - ;; - esac - done - fi - else - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" - fi + if test $use_acl = 0; then + for ac_func in aclx_get +do : + ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get" +if test "x$ac_cv_func_aclx_get" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ACLX_GET 1 +_ACEOF + +fi +done + + if test $ac_cv_func_aclx_get = yes; then + use_acl=1 fi fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" - done + + if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then + for ac_func in statacl +do : + ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl" +if test "x$ac_cv_func_statacl" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STATACL 1 +_ACEOF + +fi +done + + if test $ac_cv_func_statacl = yes; then + use_acl=1 + fi + fi + + LIBS=$ac_save_LIBS + fi + if test "x$enable_acl$use_acl" = "xyes0"; then + as_fn_error "ACLs enabled but support not detected" "$LINENO" 5 + elif test "x$enable_acl$use_acl" = "xauto0"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5 +$as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gettext-tools will be built without ACL support." >&5 +$as_echo "$as_me: WARNING: gettext-tools will be built without ACL support." >&2;} fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" - done fi +cat >>confdefs.h <<_ACEOF +#define USE_ACL $use_acl +_ACEOF + USE_ACL=$use_acl - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } -int -main () -{ + # Code from module alignof: + # Code from module alloca-opt: - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_BUILTIN_EXPECT 1 -_ACEOF -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi + if test $ac_cv_func_alloca_works = no; then -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + : -for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - ac_header_preproc=no -fi + fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + # Define an additional variable used in the Makefile substitution. -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H + Need own alloca +#endif -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF - +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Need own alloca" >/dev/null 2>&1; then : + ALLOCA_H=alloca.h +else + ALLOCA_H= fi +rm -f conftest* -done + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module argmatch: @@ -26550,3386 +30917,2408 @@ + gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext" + # Code from module array-list: + # Code from module atexit: -for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ - stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ - argz_next __fsetlocking -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} + for ac_func in atexit +do : + ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" +if test "x$ac_cv_func_atexit" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ATEXIT 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +done + + + if test $ac_cv_func_atexit = no; then + + : + + fi + + # Code from module backupfile: + + for ac_header in dirent.h string.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 +$as_echo_n "checking for long file names... " >&6; } +if test "${ac_cv_sys_long_file_names+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_sys_long_file_names=yes +# Test for long file names in all the places we know might matter: +# . the current directory, where building will happen +# $prefix/lib where we will be installing things +# $exec_prefix/lib likewise +# $TMPDIR if set, where it might want to write temporary files +# /tmp where it might want to write temporary files +# /var/tmp likewise +# /usr/tmp likewise +for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do + # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib + # in the usual case where exec_prefix is '${prefix}'. + case $ac_dir in #( + . | /* | ?:[\\/]*) ;; #( + *) continue;; + esac + test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. + ac_xdir=$ac_dir/cf$$ + (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue + ac_tf1=$ac_xdir/conftest9012345 + ac_tf2=$ac_xdir/conftest9012346 + touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || + ac_cv_sys_long_file_names=no + rm -f -r "$ac_xdir" 2>/dev/null + test $ac_cv_sys_long_file_names = no && break done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 +$as_echo "$ac_cv_sys_long_file_names" >&6; } +if test $ac_cv_sys_long_file_names = yes; then +$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h +fi - { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 -echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_func in pathconf +do : + ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" +if test "x$ac_cv_func_pathconf" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PATHCONF 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef feof_unlocked - char *p = (char *) feof_unlocked; -#endif +fi +done - ; - return 0; -} + for ac_header in string.h unistd.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_feof_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_feof_unlocked=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } - if test $ac_cv_have_decl_feof_unlocked = yes; then - gt_value=1 - else - gt_value=0 +done + + + # Code from module basename: + # Code from module binary-io: + # Code from module bison-i18n: + + if test -z "$USE_NLS"; then + echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2 + exit 1 fi + BISON_LOCALEDIR= + BISON_USE_NLS=no + if test "$USE_NLS" = yes; then + if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then + BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir` + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED $gt_value -_ACEOF + if test -n "$BISON_LOCALEDIR"; then + USER_LINGUAS="${LINGUAS-%UNSET%}" + if test -n "$USER_LINGUAS"; then + BISON_USE_NLS=yes + fi + fi + fi + if test $BISON_USE_NLS = yes; then + +$as_echo "#define YYENABLE_NLS 1" >>confdefs.h + fi + # Code from module byteswap: - { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 -echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + for ac_header in byteswap.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_BYTESWAP_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef fgets_unlocked - char *p = (char *) fgets_unlocked; -#endif + BYTESWAP_H='' - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fgets_unlocked=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_fgets_unlocked=no -fi + BYTESWAP_H='byteswap.h' -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } - if test $ac_cv_have_decl_fgets_unlocked = yes; then - gt_value=1 - else - gt_value=0 + +done + + + + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strcasestr: + # Code from module c-strstr: + # Code from module canonicalize-lgpl: + + + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" + + if test $ac_cv_func_realpath = no; then + HAVE_REALPATH=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_REALPATH=1 + fi + elif test "$gl_cv_func_realpath_works" != yes; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" + + REPLACE_REALPATH=1 + REPLACE_CANONICALIZE_FILE_NAME=1 fi + + cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED $gt_value +#define GNULIB_CANONICALIZE_LGPL 1 _ACEOF + GNULIB_CANONICALIZE_FILE_NAME=1 - am_save_CPPFLAGS="$CPPFLAGS" +$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - { echo "$as_me:$LINENO: checking for iconv" >&5 -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + GNULIB_REALPATH=1 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi + # Code from module classpath: + # Code from module clean-temp: -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -echo "${ECHO_T}$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for working iconv" >&5 -echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +$as_echo "#define SIGNAL_SAFE_LIST 1" >>confdefs.h - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - if test "$cross_compiling" = yes; then - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module cloexec: -#include -#include -int main () -{ - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static const char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - return 1; - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - return 1; - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; - return 0; -} + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext" + + + + +$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h + + + # Code from module closeout: + # Code from module concat-filename: + # Code from module configmake: + # Code from module copy-file: + + + : + + + + + + + + + for ac_func in chown utime utimes +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_iconv_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -am_cv_func_iconv_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +done + + + # Code from module csharpcomp: + # Code from module csharpcomp-script: + + ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" + + # Code from module csharpexec: + # Code from module csharpexec-script: + # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments. + ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in" + # Code from module diffseq: + # Code from module double-slash-root: - LIBS="$am_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 +$as_echo_n "checking whether // is distinct from /... " >&6; } +if test "${gl_cv_double_slash_root+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 -echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 +$as_echo "$gl_cv_double_slash_root" >&6; } + if test "$gl_cv_double_slash_root" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF +$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h fi - if test "$am_cv_lib_iconv" = yes; then - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBICONV" >&5 -echo "${ECHO_T}$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi + + # Code from module dup2: + + + + + : + + + + + + if test $ac_cv_func_dup2 = no; then + HAVE_DUP2=0 - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for iconv declaration" >&5 -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } - if test "${am_cv_proto_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif + + + gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 +$as_echo_n "checking whether dup2 works... " >&6; } +if test "${gl_cv_func_dup2_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + case "$host_os" in + mingw*) # on this platform, dup2 always returns 0 for success + gl_cv_func_dup2_works=no;; + cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 + gl_cv_func_dup2_works=no;; + linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a + # closed fd may yield -EBADF instead of -1 / errno=EBADF. + gl_cv_func_dup2_works=no;; + freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. + gl_cv_func_dup2_works=no;; + *) gl_cv_func_dup2_works=yes;; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include +#include int main () { +if (dup2 (1, 1) == 0) + return 1; + close (0); + if (dup2 (0, 0) != -1) + return 2; + /* Many gnulib modules require POSIX conformance of EBADF. */ + if (dup2 (1, 1000000) == -1 && errno != EBADF) + return 3; + return 0; ; return 0; } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_dup2_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - am_cv_proto_iconv_arg1="const" + gl_cv_func_dup2_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 +$as_echo "$gl_cv_func_dup2_works" >&6; } + if test "$gl_cv_func_dup2_works" = no; then - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -echo "${ECHO_T}${ac_t:- - }$am_cv_proto_iconv" >&6; } -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF + if test $ac_cv_func_dup2 = yes; then + REPLACE_DUP2=1 + fi + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" + + + fi fi - { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5 -echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; } -if test "${gt_cv_nl_locale_name+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + GNULIB_DUP2=1 + + + +$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h + + + + # Code from module environ: + + + + + GNULIB_ENVIRON=1 + + + +$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h + + + + # Code from module errno: + + # Code from module error: + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if test "${ac_cv_lib_error_at_line+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include int main () { -char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); - return !cs; - +error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_nl_locale_name=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_nl_locale_name=no + ac_cv_lib_error_at_line=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: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then + + + -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + + + + + gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" fi -{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5 -echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; } - if test $gt_cv_nl_locale_name = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_NL_LOCALE_NAME 1 -_ACEOF + + + : + + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" + + # Code from module error-progname: + # Code from module execute: + + + + + # Code from module exitfail: + # Code from module extensions: + # Code from module fatal-signal: + + + + + : + + + + + + + + + + # Code from module fcntl: + + + + + + : + + + + + + if test $ac_cv_func_fcntl = no; then + + + + : + + + + + + if test $ac_cv_func_fcntl = no; then + HAVE_FCNTL=0 + else + REPLACE_FCNTL=1 fi - for ac_prog in bison -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_INTLBISON+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 +$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } +if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test -n "$INTLBISON"; then - ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. + if test "$cross_compiling" = yes; then : + # Guess that it works on glibc systems + case $host_os in #(( + *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";; + *) gl_cv_func_fcntl_f_dupfd_works="guessing no";; + esac else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_INTLBISON="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +return fcntl (0, F_DUPFD, -1) != -1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_fcntl_f_dupfd_works=yes +else + gl_cv_func_fcntl_f_dupfd_works=no fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -INTLBISON=$ac_cv_prog_INTLBISON -if test -n "$INTLBISON"; then - { echo "$as_me:$LINENO: result: $INTLBISON" >&5 -echo "${ECHO_T}$INTLBISON" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 +$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } + case $gl_cv_func_fcntl_f_dupfd_works in + *yes) ;; + *) - test -n "$INTLBISON" && break -done + : - if test -z "$INTLBISON"; then - ac_verc_fail=yes + + + + + if test $ac_cv_func_fcntl = no; then + HAVE_FCNTL=0 else - { echo "$as_me:$LINENO: checking version of bison" >&5 -echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` - case $ac_prog_version in - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; - esac - { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 -echo "${ECHO_T}$ac_prog_version" >&6; } - fi - if test $ac_verc_fail = yes; then - INTLBISON=: + REPLACE_FCNTL=1 fi - { echo "$as_me:$LINENO: checking for long long int" >&5 -echo $ECHO_N "checking for long long int... $ECHO_C" >&6; } -if test "${ac_cv_type_long_long_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" + + + +$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 +$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } +if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Test preprocessor. */ - #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - error in preprocessor; - #endif - #if ! (18446744073709551615ULL <= -1ull) - error in preprocessor; - #endif - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; + +#include +#ifndef F_DUPFD_CLOEXEC +choke me +#endif + int main () { -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); + ; return 0; } - -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - if test "$cross_compiling" = yes; then - ac_cv_type_long_long_int=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #ifndef LLONG_MAX - # define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - # define LLONG_MAX (HALF - 1 + HALF) - #endif + +#ifdef __linux__ +/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace + it to support the semantics on older kernels that failed with EINVAL. */ +choke me +#endif + int main () { -long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0; + ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_long_long_int=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_fcntl_f_dupfd_cloexec=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_type_long_long_int=no + gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + gl_cv_func_fcntl_f_dupfd_cloexec=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 +$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } + if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_long_long_int=no -fi + : -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5 -echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; } - if test $ac_cv_type_long_long_int = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_LONG_INT 1 -_ACEOF + + + if test $ac_cv_func_fcntl = no; then + HAVE_FCNTL=0 + else + REPLACE_FCNTL=1 + fi + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" + + + fi fi - { echo "$as_me:$LINENO: checking for wchar_t" >&5 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wchar_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + GNULIB_FCNTL=1 + + + +$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h + + + + # Code from module fcntl-h: + + + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_fcntl_h='<'fcntl.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_fcntl_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_fcntl_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - wchar_t foo = (wchar_t)'\0'; -int -main () -{ +#include - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wchar_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/fcntl.h#{ + s#.*"\(.*/fcntl.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_fcntl_h='<'fcntl.h'>' + fi - gt_cv_c_wchar_t=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 +$as_echo "$gl_cv_next_fcntl_h" >&6; } + fi + NEXT_FCNTL_H=$gl_cv_next_fcntl_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'fcntl.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_fcntl_h + fi + NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 -echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } - if test $gt_cv_c_wchar_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WCHAR_T 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for wint_t" >&5 -echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wint_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in fcntl openat; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include - wint_t foo = (wchar_t)'\0'; int main () { - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wint_t=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_wint_t=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 -echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } - if test $gt_cv_c_wint_t = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + + eval ac_cv_have_decl_$gl_func=yes +fi + done + + + # Code from module fd-ostream: + # Code from module fd-safer-flag: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_FD_SAFER_FLAG 1 +_ACEOF + + + # Code from module file-ostream: + # Code from module filename: + # Code from module findprog: + + + : + + + + + + + + # Code from module float: + + + + FLOAT_H= + case "$host_os" in + beos* | openbsd*) + FLOAT_H=float.h + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_float_h='<'float.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_float_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_float_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -cat >>confdefs.h <<\_ACEOF -#define HAVE_WINT_T 1 _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/float.h#{ + s#.*"\(.*/float.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_float_h='<'float.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 +$as_echo "$gl_cv_next_float_h" >&6; } + fi + NEXT_FLOAT_H=$gl_cv_next_float_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'float.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_float_h + fi + NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive + + + + ;; + esac + + + # Code from module fnmatch: - fi - { echo "$as_me:$LINENO: checking for intmax_t" >&5 -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } -if test "${gt_cv_c_intmax_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + FNMATCH_H= + gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'` + gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5 +$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; } +if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if test $gl_fnmatch_required = GNU; then + gl_fnmatch_gnu_start= + gl_fnmatch_gnu_end= + else + gl_fnmatch_gnu_start='#if 0' + gl_fnmatch_gnu_end='#endif' + fi + if test "$cross_compiling" = yes; then : + eval "$gl_fnmatch_cache_var=\"guessing no\"" else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include -#include -#if HAVE_STDINT_H_WITH_UINTMAX -#include -#endif -#if HAVE_INTTYPES_H_WITH_UINTMAX -#include -#endif +#include + static int + y (char const *pattern, char const *string, int flags) + { + return fnmatch (pattern, string, flags) == 0; + } + static int + n (char const *pattern, char const *string, int flags) + { + return fnmatch (pattern, string, flags) == FNM_NOMATCH; + } int main () { -intmax_t x = -1; - return !x; +char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; + char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; + static char const A_1[] = { 'A' - 1, 0 }; + static char const A01[] = { 'A' + 1, 0 }; + static char const a_1[] = { 'a' - 1, 0 }; + static char const a01[] = { 'a' + 1, 0 }; + static char const bs_1[] = { '\\\\' - 1, 0 }; + static char const bs01[] = { '\\\\' + 1, 0 }; + return + !(n ("a*", "", 0) + && y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && y (Apat, "\\\\", 0) && y (Apat, "A", 0) + && y (apat, "\\\\", 0) && y (apat, "a", 0) + && n (Apat, A_1, 0) == ('A' < '\\\\') + && n (apat, a_1, 0) == ('a' < '\\\\') + && y (Apat, A01, 0) == ('A' < '\\\\') + && y (apat, a01, 0) == ('a' < '\\\\') + && y (Apat, bs_1, 0) == ('A' < '\\\\') + && y (apat, bs_1, 0) == ('a' < '\\\\') + && n (Apat, bs01, 0) == ('A' < '\\\\') + && n (apat, bs01, 0) == ('a' < '\\\\') + $gl_fnmatch_gnu_start + && y ("xxXX", "xXxX", FNM_CASEFOLD) + && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) + && n ("d*/*1", "d/s/1", FNM_FILE_NAME) + && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) + && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) + && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) + $gl_fnmatch_gnu_end + ); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_intmax_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_intmax_t=no +if ac_fn_c_try_run "$LINENO"; then : + eval "$gl_fnmatch_cache_var=yes" +else + eval "$gl_fnmatch_cache_var=no" +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 -echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } - if test $gt_cv_c_intmax_t = yes; then +eval ac_res=\$$gl_fnmatch_cache_var + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\"" + if test "$gl_fnmatch_result" = yes; then + rm -f "$gl_source_base/fnmatch.h" + else + FNMATCH_H=fnmatch.h -cat >>confdefs.h <<\_ACEOF -#define HAVE_INTMAX_T 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 -echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } -if test "${gt_cv_func_printf_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ - notposix -#endif + gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" + +cat >>confdefs.h <<_ACEOF +#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "notposix" >/dev/null 2>&1; then - gt_cv_func_printf_posix="guessing no" + + + ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include +" +if test "x$ac_cv_have_decl_isblank" = x""yes; then : + ac_have_decl=1 else - gt_cv_func_printf_posix="guessing yes" + ac_have_decl=0 fi -rm -f conftest* + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISBLANK $ac_have_decl +_ACEOF + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + : + + + + + + fi + + + # Code from module fopen: + + + + case "$host_os" in + mingw* | pw*) + REPLACE_FOPEN=1 + gl_cv_func_fopen_slash="guessing no" + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 +$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; } +if test "${gl_cv_func_fopen_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test "$cross_compiling" = yes; then : + + case "$host_os" in + solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;; + hpux*) gl_cv_func_fopen_slash="guessing no" ;; + *) gl_cv_func_fopen_slash="guessing yes" ;; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include #include -#include -/* The string "%2$d %1$d", with dollar characters protected from the shell's - dollar expansion (possibly an autoconf bug). */ -static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; -static char buf[100]; int main () { - sprintf (buf, format, 33, 55); - return (strcmp (buf, "55 33") != 0); + return fopen ("conftest.sl/", "w") != NULL; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gt_cv_func_printf_posix=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_fopen_slash=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gt_cv_func_printf_posix=no + gl_cv_func_fopen_slash=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - + rm -f conftest.sl fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 -echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } - case $gt_cv_func_printf_posix in - *yes) +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 +$as_echo "$gl_cv_func_fopen_slash" >&6; } + ;; + esac + case "$gl_cv_func_fopen_slash" in + *no) -cat >>confdefs.h <<\_ACEOF -#define HAVE_POSIX_PRINTF 1 -_ACEOF +$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h + REPLACE_FOPEN=1 ;; esac + if test $REPLACE_FOPEN = 1; then - { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 -echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } -if test "${ac_cv_gnu_library_2_1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - ac_cv_gnu_library_2_1=yes -else - ac_cv_gnu_library_2_1=no -fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 -echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } - GLIBC21="$ac_cv_gnu_library_2_1" + gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext" -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + fi - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi + GNULIB_FOPEN=1 -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done + # Code from module fstrcmp: + # Code from module full-write: + # Code from module fwriteerror: - { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } - if test "${gl_cv_size_max+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_size_max= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define GNULIB_FWRITEERROR 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#if HAVE_STDINT_H -#include -#endif -#ifdef SIZE_MAX -Found it -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then - gl_cv_size_max=yes -fi -rm -f conftest* + # Code from module gcd: + # Code from module gcj: - if test -z "$gl_cv_size_max"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java to native code compiler" >&5 +$as_echo_n "checking for Java to native code compiler... " >&6; } + # Search for the gcj command or use the one provided by the user. + if test -z "$GCJ"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcj; ac_word=$2 +: +if test "${ac_cv_prog_GCJ+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -n "$GCJ"; then + ac_cv_prog_GCJ="$GCJ" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_GCJ="${ac_tool_prefix}gcj" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done +fi +GCJ=$ac_cv_prog_GCJ +if test -n "$GCJ"; then + : else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; -test_array [0] = 0 + : +fi - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done +if test -z "$ac_cv_prog_GCJ"; then + ac_ct_GCJ=$GCJ + # Extract the first word of "gcj", so it can be a program name with args. +set dummy gcj; ac_word=$2 +: +if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test -n "$ac_ct_GCJ"; then + ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_GCJ="gcj" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_lo= ac_hi= fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid +ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ +if test -n "$ac_ct_GCJ"; then + : else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` + : fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) size_t_bits_minus_1=$ac_lo;; -'') size_t_bits_minus_1= ;; + if test "x$ac_ct_GCJ" = x; then + GCJ="none" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac + GCJ=$ac_ct_GCJ + fi else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } -static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } -#include -#include -int -main () -{ + GCJ="$ac_cv_prog_GCJ" +fi - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) * CHAR_BIT - 1) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%lu\n", i); + fi + # Choose GCJFLAGS or use the one provided by the user. + if test "$GCJ" != none; then + test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g" + fi + # Check whether the version is ok and it can create executables. + ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext" + if test "$GCJ" != none \ + && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \ + && ( + # See if libgcj.so is well installed and if exception handling works. + cat > conftest.java <&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 +EOF + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_gcj_link\""; } >&5 + (eval $ac_gcj_link) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - size_t_bits_minus_1=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + error=$? + if test $error = 0 && test "$cross_compiling" != yes; then + # Run conftest and catch its exit status, but silently. + error=`./conftest >/dev/null 2>&1; echo $?` + test $error = 0 || error=1 + rm -f core conftest.core + fi + rm -f conftest.java conftest$ac_exeext + exit $error + ); then + : + else + GCJ=none + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 +$as_echo "$GCJ" >&6; } + if test "$GCJ" != none; then + HAVE_GCJ=1 + else + HAVE_GCJ= + fi + + + + + # Code from module getdelim: + + -( exit $ac_status ) -size_t_bits_minus_1= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + if test $ac_cv_func_getdelim = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 +$as_echo_n "checking for working getdelim function... " >&6; } +if test "${gl_cv_func_working_getdelim+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + gl_cv_func_working_getdelim=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr '(' $ac_mid ')' + 1` + gl_cv_func_working_getdelim=no fi +rm -f conftest* + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) fits_in_uint=$ac_lo;; -'') fits_in_uint= ;; -esac else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } -static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%ld\n", i); - } - else +# include +# include +# include + int main () { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%lu\n", i); + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getdelim (&line, &siz, '\n', in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getdelim (&line, &siz, '\n', in) == -1) + return 1; + } + return 0; } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - fits_in_uint=`cat conftest.val` +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_getdelim=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -fits_in_uint= + gl_cv_func_working_getdelim=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f conftest.val - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then - if test $fits_in_uint = 1; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - extern size_t foo; - extern unsigned long foo; -int -main () -{ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 +$as_echo "$gl_cv_func_working_getdelim" >&6; } + else + gl_cv_func_working_getdelim=no + fi + + if test $ac_cv_have_decl_getdelim = no; then + HAVE_DECL_GETDELIM=0 + fi + + if test $gl_cv_func_working_getdelim = no; then + if test $ac_cv_func_getdelim = yes; then + REPLACE_GETDELIM=1 + fi + + + - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - fits_in_uint=0 -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $fits_in_uint = 1; then - gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" - else - gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" - fi - else - gl_cv_size_max='((size_t)~(size_t)0)' - fi - fi + + gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext" + + + for ac_func in flockfile funlockfile +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF fi +done - { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 -echo "${ECHO_T}$gl_cv_size_max" >&6; } - if test "$gl_cv_size_max" != yes; then + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl _ACEOF + fi + GNULIB_GETDELIM=1 + -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + +$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h + + + + # Code from module getdtablesize: + + + + : + + + + + + if test $ac_cv_func_getdtablesize != yes; then + HAVE_GETDTABLESIZE=0 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" + + fi + + + + + GNULIB_GETDTABLESIZE=1 + + + +$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h + + + + # Code from module getline: + + + + + + + : + + + + + + + gl_getline_needs_run_time_check=no + ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" +if test "x$ac_cv_func_getline" = x""yes; then : + gl_getline_needs_run_time_check=yes else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + am_cv_func_working_getline=no +fi + + if test $gl_getline_needs_run_time_check = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 +$as_echo_n "checking for working getline function... " >&6; } +if test "${am_cv_func_working_getline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + am_cv_func_working_getline=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + am_cv_func_working_getline=no fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> + +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getline (&line, &siz, in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getline (&line, &siz, in) == -1) + return 1; + } + return 0; + } + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_run "$LINENO"; then : + am_cv_func_working_getline=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am_cv_func_working_getline=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 +$as_echo "$am_cv_func_working_getline" >&6; } + fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + if test $ac_cv_have_decl_getline = no; then + HAVE_DECL_GETLINE=0 + fi -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + if test $am_cv_func_working_getline = no; then + REPLACE_GETLINE=1 - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" + + + + + + + + + + : + + + + + + + + : + + + + + + if test $ac_cv_func_getdelim = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 +$as_echo_n "checking for working getdelim function... " >&6; } +if test "${gl_cv_func_working_getdelim+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFPreferencesCopyAppValue=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_func_CFPreferencesCopyAppValue=no -fi +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + gl_cv_func_working_getdelim=yes +else + gl_cv_func_working_getdelim=no fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then +rm -f conftest* -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -CFLocaleCopyCurrent(); - ; - return 0; -} + +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getdelim (&line, &siz, '\n', in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getdelim (&line, &siz, '\n', in) == -1) + return 1; + } + return 0; + } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFLocaleCopyCurrent=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_getdelim=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_working_getdelim=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 +$as_echo "$gl_cv_func_working_getdelim" >&6; } + else + gl_cv_func_working_getdelim=no + fi + + if test $ac_cv_have_decl_getdelim = no; then + HAVE_DECL_GETDELIM=0 + fi + + if test $gl_cv_func_working_getdelim = no; then + if test $ac_cv_func_getdelim = yes; then + REPLACE_GETDELIM=1 + fi + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext" + + + for ac_func in flockfile funlockfile +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF - gt_cv_func_CFLocaleCopyCurrent=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFLOCALECOPYCURRENT 1 +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl _ACEOF + fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + + fi + GNULIB_GETLINE=1 - { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef ptrdiff_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h + + + + # Code from module getopt-gnu: + + + + + + + +$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h + + + # Code from module getopt-posix: + + + + + + if test -n "$gl_replace_getopt"; then : + + + + GETOPT_H=getopt.h + +$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h + + + + GNULIB_UNISTD_H_GETOPT=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" + - ac_cv_type_ptrdiff_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then : -else -cat >>confdefs.h <<\_ACEOF -#define ptrdiff_t long -_ACEOF -fi -for ac_header in stddef.h stdlib.h string.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module gettext: - ac_header_preproc=no -fi + # Code from module gettext-h: -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + # Code from module gettext-tools-misc: + # Code from module gettimeofday: - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done + : + gl_gettimeofday_timezone=void + if test $ac_cv_func_gettimeofday != yes; then + HAVE_GETTIMEOFDAY=0 -for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} + + + gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" + + + for ac_header in sys/timeb.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_TIMEB_H 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +done + + for ac_func in _ftime +do : + ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" +if test "x$ac_cv_func__ftime" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE__FTIME 1 _ACEOF fi done + else + - { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 -echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 +$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } +if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + gl_cv_func_gettimeofday_clobber=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + #include + #include + #include + int main () { -#ifndef _snprintf - char *p = (char *) _snprintf; -#endif + time_t t = 0; + struct tm *lt; + struct tm saved_lt; + struct timeval tv; + lt = localtime (&t); + saved_lt = *lt; + gettimeofday (&tv, NULL); + return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snprintf=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_gettimeofday_clobber=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl__snprintf=no + gl_cv_func_gettimeofday_clobber=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } - if test $ac_cv_have_decl__snprintf = yes; then - gt_value=1 - else - gt_value=0 - fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 +$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF $gt_value -_ACEOF + if test $gl_cv_func_gettimeofday_clobber = yes; then + REPLACE_GETTIMEOFDAY=1 - { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 -echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snwprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef _snwprintf - char *p = (char *) _snwprintf; -#endif - ; - return 0; -} + + + + + gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" + + + for ac_header in sys/timeb.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_TIMEB_H 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snwprintf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl__snwprintf=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } - if test $ac_cv_have_decl__snwprintf = yes; then - gt_value=1 - else - gt_value=0 - fi +done -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNWPRINTF $gt_value + for ac_func in _ftime +do : + ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" +if test "x$ac_cv_func__ftime" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE__FTIME 1 _ACEOF +fi +done + + + +$as_echo "#define gmtime rpl_gmtime" >>confdefs.h + + +$as_echo "#define localtime rpl_localtime" >>confdefs.h + + +$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h + fi - { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 +$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } +if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + struct timeval c; + int gettimeofday (struct timeval *restrict, void *restrict); + int main () { - -#ifndef getc_unlocked - char *p = (char *) getc_unlocked; -#endif +/* glibc uses struct timezone * rather than the POSIX void * + if _GNU_SOURCE is defined. However, since the only portable + use of gettimeofday uses NULL as the second parameter, and + since the glibc definition is actually more typesafe, it is + not worth wrapping this to get a compliant signature. */ + int (*f) (struct timeval *restrict, void *restrict) + = gettimeofday; + int x = f (&c, 0); + return !(x | c.tv_sec | c.tv_usec); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getc_unlocked=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_gettimeofday_posix_signature=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int gettimeofday (struct timeval *restrict, struct timezone *restrict); - ac_cv_have_decl_getc_unlocked=no -fi +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_gettimeofday_posix_signature=almost +else + gl_cv_func_gettimeofday_posix_signature=no +fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } - if test $ac_cv_have_decl_getc_unlocked = yes; then - gt_value=1 - else - gt_value=0 - fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 +$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } + if test $gl_cv_func_gettimeofday_posix_signature = almost; then + gl_gettimeofday_timezone='struct timezone' + elif test $gl_cv_func_gettimeofday_posix_signature != yes; then + REPLACE_GETTIMEOFDAY=1 -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED $gt_value -_ACEOF - case $gt_cv_func_printf_posix in - *yes) HAVE_POSIX_PRINTF=1 ;; - *) HAVE_POSIX_PRINTF=0 ;; - esac - if test "$ac_cv_func_asprintf" = yes; then - HAVE_ASPRINTF=1 - else - HAVE_ASPRINTF=0 - fi - if test "$ac_cv_func_snprintf" = yes; then - HAVE_SNPRINTF=1 - else - HAVE_SNPRINTF=0 - fi - if test "$ac_cv_func_wprintf" = yes; then - HAVE_WPRINTF=1 - else - HAVE_WPRINTF=0 - fi + gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" - { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 -echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } -if test "${am_cv_langinfo_codeset+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -char* cs = nl_langinfo(CODESET); return !cs; - ; - return 0; -} + for ac_header in sys/timeb.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_TIMEB_H 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_langinfo_codeset=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - am_cv_langinfo_codeset=no fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +done + + for ac_func in _ftime +do : + ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" +if test "x$ac_cv_func__ftime" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE__FTIME 1 +_ACEOF fi -{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 -echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } - if test $am_cv_langinfo_codeset = yes; then +done -cat >>confdefs.h <<\_ACEOF -#define HAVE_LANGINFO_CODESET 1 -_ACEOF + fi fi - - { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 -echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } -if test "${gt_cv_val_LC_MESSAGES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -return LC_MESSAGES - ; - return 0; -} +cat >>confdefs.h <<_ACEOF +#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_val_LC_MESSAGES=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_val_LC_MESSAGES=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 -echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } - if test $gt_cv_val_LC_MESSAGES = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_LC_MESSAGES 1 -_ACEOF - fi + GNULIB_GETTIMEOFDAY=1 - if test "$enable_shared" = yes; then - case "$host_os" in - mingw* | cygwin*) is_woe32dll=yes ;; - *) is_woe32dll=no ;; - esac - else - is_woe32dll=no - fi - WOE32DLL=$is_woe32dll - case "$host_os" in - mingw* | cygwin*) is_woe32=yes ;; - *) is_woe32=no ;; - esac - WOE32=$is_woe32 +$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h - if test $WOE32 = yes; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. -set dummy ${ac_tool_prefix}windres; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_WINDRES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$WINDRES"; then - ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_WINDRES="${ac_tool_prefix}windres" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -WINDRES=$ac_cv_prog_WINDRES -if test -n "$WINDRES"; then - { echo "$as_me:$LINENO: result: $WINDRES" >&5 -echo "${ECHO_T}$WINDRES" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module html-ostream: + # Code from module html-styled-ostream: + # Code from module iconv: -fi -if test -z "$ac_cv_prog_WINDRES"; then - ac_ct_WINDRES=$WINDRES - # Extract the first word of "windres", so it can be a program name with args. -set dummy windres; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_WINDRES"; then - ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_WINDRES="windres" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + # Code from module iconv-h: -fi -fi -ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES -if test -n "$ac_ct_WINDRES"; then - { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 -echo "${ECHO_T}$ac_ct_WINDRES" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - if test "x$ac_ct_WINDRES" = x; then - WINDRES="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - WINDRES=$ac_ct_WINDRES - fi + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_iconv_h='<'iconv.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_iconv_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - WINDRES="$ac_cv_prog_WINDRES" -fi - fi + if test $ac_cv_header_iconv_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - case "$host_os" in - hpux*) LTLIBC="" ;; - *) LTLIBC="-lc" ;; - esac +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/iconv.h#{ + s#.*"\(.*/iconv.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_iconv_h='<'iconv.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 +$as_echo "$gl_cv_next_iconv_h" >&6; } + fi + NEXT_ICONV_H=$gl_cv_next_iconv_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'iconv.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_iconv_h + fi + NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive + # Code from module iconv_open: + if test "$am_cv_func_iconv" = yes; then + ICONV_H='iconv.h' + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include + #if defined _LIBICONV_VERSION || defined __GLIBC__ + gnu_iconv + #endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "gnu_iconv" >/dev/null 2>&1; then : + gl_func_iconv_gnu=yes +else + gl_func_iconv_gnu=no +fi +rm -f conftest* + if test $gl_func_iconv_gnu = no; then + iconv_flavor= + case "$host_os" in + aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; + irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; + hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; + osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; + esac + if test -n "$iconv_flavor"; then +cat >>confdefs.h <<_ACEOF +#define ICONV_FLAVOR $iconv_flavor +_ACEOF + ICONV_H='iconv.h' + REPLACE_ICONV_OPEN=1 - { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 -echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } -if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFPreferencesCopyAppValue=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_func_CFPreferencesCopyAppValue=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" -fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 -_ACEOF + fi + fi fi - { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 -echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } -if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + # Code from module include_next: + # Code from module inline: + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 +$as_echo_n "checking whether the compiler generally respects inline... " >&6; } +if test "${gl_cv_c_inline_effective+set}" = set; then : + $as_echo_n "(cached) " >&6 else - gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_c_inline = no; then + gl_cv_c_inline_effective=no + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + int main () { -CFLocaleCopyCurrent(); +#ifdef __NO_INLINE__ + #error "inline is not effective" + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_func_CFLocaleCopyCurrent=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_c_inline_effective=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_func_CFLocaleCopyCurrent=no + gl_cv_c_inline_effective=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 +$as_echo "$gl_cv_c_inline_effective" >&6; } + if test $gl_cv_c_inline_effective = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_CFLOCALECOPYCURRENT 1 -_ACEOF +$as_echo "#define HAVE_INLINE 1" >>confdefs.h fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi + # Code from module intprops: + # Code from module java: + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5 +$as_echo_n "checking whether to use Java... " >&6; } + # Check whether --enable-java was given. +if test "${enable_java+set}" = set; then : + enableval=$enable_java; JAVA_CHOICE="$enableval" +else + JAVA_CHOICE=yes +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5 +$as_echo "$JAVA_CHOICE" >&6; } + if test "$JAVA_CHOICE" = yes; then + # Check whether --enable-native-java was given. +if test "${enable_native_java+set}" = set; then : + enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode +fi + fi + # Code from module javacomp: + # Code from module javacomp-script: + # You need to invoke gt_JAVACOMP yourself, possibly with arguments. + ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no + # Code from module javaexec: + # Code from module javaexec-script: + # You need to invoke gt_JAVAEXEC yourself, possibly with arguments. + ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in" - LIBINTL= - LTLIBINTL= - POSUB= + # Code from module javaversion: + # Code from module libcroco: - case " $gt_needs " in - *" need-formatstring-macros "*) gt_api_version=3 ;; - *" need-ngettext "*) gt_api_version=2 ;; - *) gt_api_version=1 ;; - esac - gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" - gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 -echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libcroco is requested" >&5 +$as_echo_n "checking whether included libcroco is requested... " >&6; } -# Check whether --with-included-gettext was given. -if test "${with_included_gettext+set}" = set; then - withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval +# Check whether --with-included-libcroco was given. +if test "${with_included_libcroco+set}" = set; then : + withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval else - nls_cv_force_use_gnu_gettext=no + gl_cv_libcroco_force_included=no fi - { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 -echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } - - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then - - - if test $gt_api_version -ge 3; then - gt_revision_test_code=' -#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -' - else - gt_revision_test_code= - fi - if test $gt_api_version -ge 2; then - gt_expression_test_code=' + * ngettext ("", "", 0)' - else - gt_expression_test_code= - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_force_included" >&5 +$as_echo "$gl_cv_libcroco_force_included" >&6; } - { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 -echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } -if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings; -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$gt_func_gnugettext_libc=yes" + gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included" + LIBCROCO= + LTLIBCROCO= + INCCROCO= + if test "$gl_cv_libcroco_use_included" != yes; then + if test "${gl_cv_libcroco+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$gt_func_gnugettext_libc=no" -fi + gl_cv_libcroco=no + gl_cv_LIBCROCO= + gl_cv_LTLIBCROCO= + gl_cv_INCCROCO= + gl_save_LIBS="$LIBS" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then @@ -29949,9 +33338,9 @@ prefix="$acl_save_prefix" -# Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then - withval=$with_libintl_prefix; +# Check whether --with-libcroco-0.6-prefix was given. +if test "${with_libcroco_06_prefix+set}" = set; then : + withval=$with_libcroco_06_prefix; if test "X$withval" = "Xno"; then use_additional=no else @@ -29971,19 +33360,24 @@ else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi fi fi fi - LIBINTL= - LTLIBINTL= - INCINTL= - LIBINTL_PREFIX= + LIBCROCO_0_6= + LTLIBCROCO_0_6= + INCCROCO_0_6= + LIBCROCO_0_6_PREFIX= + HAVE_LIBCROCO_0_6= rpathdirs= ltrpathdirs= names_already_handled= - names_next_round='intl ' + names_next_round='croco-0.6 glib-2.0' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= @@ -30002,9 +33396,9 @@ if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" - test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" + test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value" eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" + test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value" else : fi @@ -30061,7 +33455,7 @@ fi fi if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBINTL; do + for x in $LDFLAGS $LTLIBCROCO_0_6; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -30120,10 +33514,12 @@ done fi if test "X$found_dir" != "X"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" + LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" else haveit= for x in $ltrpathdirs; do @@ -30136,10 +33532,10 @@ ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then @@ -30152,7 +33548,7 @@ fi else haveit= - for x in $LDFLAGS $LIBINTL; do + for x in $LDFLAGS $LIBCROCO_0_6; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -30168,28 +33564,37 @@ fi done if test -z "$haveit"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a" else - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBINTL_PREFIX="$basedir" + if test "$name" = 'croco-0.6'; then + LIBCROCO_0_6_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'croco-0.6'; then + LIBCROCO_0_6_PREFIX="$basedir" + fi additional_includedir="$basedir/include" ;; esac @@ -30204,7 +33609,7 @@ fi fi if test -z "$haveit"; then - for x in $CPPFLAGS $INCINTL; do + for x in $CPPFLAGS $INCCROCO_0_6; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -30221,7 +33626,7 @@ done if test -z "$haveit"; then if test -d "$additional_includedir"; then - INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" + INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir" fi fi fi @@ -30238,9 +33643,11 @@ case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; @@ -30249,7 +33656,7 @@ fi if test -z "$haveit"; then haveit= - for x in $LDFLAGS $LIBINTL; do + for x in $LDFLAGS $LIBCROCO_0_6; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -30266,11 +33673,11 @@ done if test -z "$haveit"; then if test -d "$additional_libdir"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir" fi fi haveit= - for x in $LDFLAGS $LTLIBINTL; do + for x in $LDFLAGS $LTLIBCROCO_0_6; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" @@ -30287,7 +33694,7 @@ done if test -z "$haveit"; then if test -d "$additional_libdir"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir" fi fi fi @@ -30325,15 +33732,15 @@ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) - LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep" + LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep" ;; esac done fi else - LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name" + LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name" fi fi fi @@ -30348,782 +33755,201 @@ acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" - done - fi - - { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 -echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } -if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$gt_func_gnugettext_libintl=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$gt_func_gnugettext_libintl=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -$gt_revision_test_code -extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias (const char *); -int -main () -{ -bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS" -fi -ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - fi - - if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ - || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ - && test "$PACKAGE" != gettext-runtime \ - && test "$PACKAGE" != gettext-tools; }; then - gt_use_preinstalled_gnugettext=yes - else - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - - if test "$gt_use_preinstalled_gnugettext" != "yes"; then - nls_cv_use_gnu_gettext=yes - fi - fi - - if test "$nls_cv_use_gnu_gettext" = "yes"; then - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD" - LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi - - CATOBJEXT= - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - CATOBJEXT=.gmo - fi - - - if test -n "$INTL_MACOSX_LIBS"; then - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" - LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" - fi - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - -cat >>confdefs.h <<\_ACEOF -#define ENABLE_NLS 1 -_ACEOF - - else - USE_NLS=no - fi - fi - - { echo "$as_me:$LINENO: checking whether to use NLS" >&5 -echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $USE_NLS" >&5 -echo "${ECHO_T}$USE_NLS" >&6; } - if test "$USE_NLS" = "yes"; then - { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 -echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - gt_source="external libintl" - else - gt_source="libc" - fi - else - gt_source="included intl directory" - fi - { echo "$as_me:$LINENO: result: $gt_source" >&5 -echo "${ECHO_T}$gt_source" >&6; } - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { echo "$as_me:$LINENO: checking how to link with libintl" >&5 -echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBINTL" >&5 -echo "${ECHO_T}$LIBINTL" >&6; } - - for element in $INCINTL; do - haveit= - for x in $CPPFLAGS; do - - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done - - fi - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_GETTEXT 1 -_ACEOF - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_DCGETTEXT 1 -_ACEOF - - fi - - POSUB=po - fi - - - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then - BUILD_INCLUDED_LIBINTL=yes - fi - - - - - - nls_cv_header_intl= - nls_cv_header_libgt= - - DATADIRNAME=share - - - INSTOBJEXT=.mo - - - GENCAT=gencat - - - INTLOBJS= - if test "$USE_INCLUDED_LIBINTL" = yes; then - INTLOBJS="\$(GETTOBJS)" - fi - - - INTL_LIBTOOL_SUFFIX_PREFIX=l - - - - INTLLIBS="$LIBINTL" - - - - - - - - - if test -z "$USE_NLS"; then - echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2 - exit 1 - fi - BISON_LOCALEDIR= - BISON_USE_NLS=no - if test "$USE_NLS" = yes; then - if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then - BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir` - fi - - if test -n "$BISON_LOCALEDIR"; then - USER_LINGUAS="${LINGUAS-%UNSET%}" - if test -n "$USER_LINGUAS"; then - BISON_USE_NLS=yes - fi + libdir="$acl_save_libdir" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag" + done fi fi - if test $BISON_USE_NLS = yes; then + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir" + done + fi -cat >>confdefs.h <<\_ACEOF -#define YYENABLE_NLS 1 -_ACEOF - fi -MSGMERGE_LIBM=? -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #ifndef __NO_MATH_INLINES - # define __NO_MATH_INLINES 1 /* for glibc */ - #endif - #include - double x; + + LIBS="$gl_save_LIBS $LIBCROCO_0_6" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -x = ceil(x); x = sqrt(x); +const char *version = LIBCROCO_VERSION; return !version; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - MSGMERGE_LIBM= -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libcroco=yes + gl_cv_LIBCROCO="$LIBCROCO_0_6" + gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -if test "$MSGMERGE_LIBM" = "?"; then - save_LIBS="$LIBS" - LIBS="$LIBS -lm" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libcroco" != yes; then + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCCROCO_0_6" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - #ifndef __NO_MATH_INLINES - # define __NO_MATH_INLINES 1 /* for glibc */ - #endif - #include - double x; +#include int main () { -x = ceil(x); x = sqrt(x); +const char *version = LIBCROCO_VERSION; return !version; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - MSGMERGE_LIBM="-lm" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$save_LIBS" -fi -if test "$MSGMERGE_LIBM" = "?"; then - MSGMERGE_LIBM= -fi - - - - - - - -for ac_header in $gl_header_list -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libcroco=yes + gl_cv_LIBCROCO="$LIBCROCO_0_6" + gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" + gl_cv_INCCROCO="$INCCROCO_0_6" fi - -done - - - - - - - - - - - - - - { echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5 -echo $ECHO_N "checking whether canonicalize_file_name is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libcroco" != yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include int main () { -#ifndef canonicalize_file_name - (void) canonicalize_file_name; -#endif - +const char *version = LIBCROCO_VERSION; return !version; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_canonicalize_file_name=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_canonicalize_file_name=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5 -echo "${ECHO_T}$ac_cv_have_decl_canonicalize_file_name" >&6; } -if test $ac_cv_have_decl_canonicalize_file_name = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CANONICALIZE_FILE_NAME 1 -_ACEOF - +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CANONICALIZE_FILE_NAME 0 -_ACEOF - - -fi - - + : + if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then -for ac_func in $gl_func_list -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} +#include _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | +sed -n '\#/libcroco-0.6/libcroco/libcroco-config.h#{ + s#.*"\(.*/libcroco-0.6/libcroco/libcroco-config.h\)".*#\1# + s#^/[^/]#//&# + p + q +}'` - eval "$as_ac_var=no" -fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5 +$as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; } +cat >>confdefs.h <<_ACEOF +#define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" _ACEOF -fi -done - - + libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'` + if test -d "$libcroco_include_dir"; then + gl_cv_libcroco=yes + gl_cv_LIBCROCO="$LIBCROCO_0_6" + gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" + gl_cv_INCCROCO="-I$libcroco_include_dir" + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + CPPFLAGS="$gl_save_CPPFLAGS" + fi + LIBS="$gl_save_LIBS" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcroco" >&5 +$as_echo_n "checking for libcroco... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco" >&5 +$as_echo "$gl_cv_libcroco" >&6; } + if test $gl_cv_libcroco = yes; then + LIBCROCO="$gl_cv_LIBCROCO" + LTLIBCROCO="$gl_cv_LTLIBCROCO" + INCCROCO="$gl_cv_INCCROCO" + else + gl_cv_libcroco_use_included=yes + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libcroco" >&5 +$as_echo_n "checking whether to use the included libcroco... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libcroco_use_included" >&5 +$as_echo "$gl_cv_libcroco_use_included" >&6; } + if test "$gl_cv_libcroco_use_included" = yes; then + INCLUDED_LIBCROCO_TRUE= + INCLUDED_LIBCROCO_FALSE='#' +else + INCLUDED_LIBCROCO_TRUE='#' + INCLUDED_LIBCROCO_FALSE= +fi + # Code from module libglib: + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included glib is requested" >&5 +$as_echo_n "checking whether included glib is requested... " >&6; } +# Check whether --with-included-glib was given. +if test "${with_included_glib+set}" = set; then : + withval=$with_included_glib; gl_cv_libglib_force_included=$withval +else + gl_cv_libglib_force_included=no +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_force_included" >&5 +$as_echo "$gl_cv_libglib_force_included" >&6; } + gl_cv_libglib_use_included="$gl_cv_libglib_force_included" + LIBGLIB= + LTLIBGLIB= + INCGLIB= + if test "$gl_cv_libglib_use_included" != yes; then + if test "${gl_cv_libglib+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_libglib=no + gl_cv_LIBGLIB= + gl_cv_LTLIBGLIB= + gl_cv_INCGLIB= + gl_save_LIBS="$LIBS" @@ -31131,3101 +33957,2446 @@ + use_additional=yes + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +# Check whether --with-libglib-2.0-prefix was given. +if test "${with_libglib_20_prefix+set}" = set; then : + withval=$with_libglib_20_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi +fi + LIBGLIB_2_0= + LTLIBGLIB_2_0= + INCGLIB_2_0= + LIBGLIB_2_0_PREFIX= + HAVE_LIBGLIB_2_0= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='glib-2.0 ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBGLIB_2_0; do -{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 -echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strerror_r+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strerror_r - (void) strerror_r; -#endif + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strerror_r=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBGLIB_2_0; do - ac_cv_have_decl_strerror_r=no -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; } -if test $ac_cv_have_decl_strerror_r = yes; then + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a" + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'glib-2.0'; then + LIBGLIB_2_0_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'glib-2.0'; then + LIBGLIB_2_0_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCGLIB_2_0; do -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R 1 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBGLIB_2_0; do -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R 0 -_ACEOF + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBGLIB_2_0; do -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep" + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep" + ;; + esac + done + fi + else + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir" + done + fi -for ac_func in strerror_r -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me + LIBS="$gl_save_LIBS $LIBGLIB_2_0" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x #endif int main () { -return $ac_func (); +g_string_new ("foo"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" fi -done - -{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5 -echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; } -if test "${ac_cv_func_strerror_r_char_p+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - ac_cv_func_strerror_r_char_p=no - if test $ac_cv_have_decl_strerror_r = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libglib" != yes; then + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - char *p = strerror_r (0, buf, sizeof buf); - return !p || x; - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_func_strerror_r_char_p=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); int main () { -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); +g_string_new ("foo"); ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_strerror_r_char_p=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - fi - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5 -echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; } -if test $ac_cv_func_strerror_r_char_p = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STRERROR_R_CHAR_P 1 -_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" + gl_cv_INCGLIB="$INCGLIB_2_0" fi - - - XGETTEXT_EXTRA_OPTIONS= - -{ echo "$as_me:$LINENO: checking for mode_t" >&5 -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mode_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libglib" != yes; then + if test -n "$LIBGLIB_2_0_PREFIX"; then + CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -typedef mode_t ac__type_new_; +#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif + int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; +g_string_new ("foo"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mode_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libglib=yes + gl_cv_LIBGLIB="$LIBGLIB_2_0" + gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" + gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - ac_cv_type_mode_t=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + fi + CPPFLAGS="$gl_save_CPPFLAGS" + fi + LIBS="$gl_save_LIBS" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 -echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } -if test $ac_cv_type_mode_t = yes; then - : -else -cat >>confdefs.h <<_ACEOF -#define mode_t int -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5 +$as_echo_n "checking for glib... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib" >&5 +$as_echo "$gl_cv_libglib" >&6; } + if test $gl_cv_libglib = yes; then + LIBGLIB="$gl_cv_LIBGLIB" + LTLIBGLIB="$gl_cv_LTLIBGLIB" + INCGLIB="$gl_cv_INCGLIB" + else + gl_cv_libglib_use_included=yes + fi + fi -fi -{ echo "$as_me:$LINENO: checking for pid_t" >&5 -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } -if test "${ac_cv_type_pid_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef pid_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_pid_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_pid_t=no -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included glib" >&5 +$as_echo_n "checking whether to use the included glib... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libglib_use_included" >&5 +$as_echo "$gl_cv_libglib_use_included" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } -if test $ac_cv_type_pid_t = yes; then - : -else + if test "$gl_cv_libglib_use_included" = yes; then + LIBGLIB_H= + LIBGLIB_H="$LIBGLIB_H glib.h" + LIBGLIB_H="$LIBGLIB_H glibconfig.h" + LIBGLIB_H="$LIBGLIB_H glib/ghash.h" + LIBGLIB_H="$LIBGLIB_H glib/glist.h" + LIBGLIB_H="$LIBGLIB_H glib/gprimes.h" + LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h" + LIBGLIB_H="$LIBGLIB_H glib/gstring.h" + LIBGLIB_H="$LIBGLIB_H glib/gtypes.h" -cat >>confdefs.h <<_ACEOF -#define pid_t int + for ac_header in unistd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UNISTD_H 1 _ACEOF fi +done -for ac_header in vfork.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi + else + LIBGLIB_H= + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes + if test "$gl_cv_libglib_use_included" = yes; then + INCLUDED_LIBGLIB_TRUE= + INCLUDED_LIBGLIB_FALSE='#' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + INCLUDED_LIBGLIB_TRUE='#' + INCLUDED_LIBGLIB_FALSE= fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + # Code from module libunistring-optional: - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5 +$as_echo_n "checking whether to use the included libunistring... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5 +$as_echo "$gl_libunistring_use_included" >&6; } -done + # Code from module libxml: -for ac_func in fork vfork -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included libxml is requested" >&5 +$as_echo_n "checking whether included libxml is requested... " >&6; } + +# Check whether --with-included-libxml was given. +if test "${with_included_libxml+set}" = set; then : + withval=$with_included_libxml; gl_cv_libxml_force_included=$withval else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + gl_cv_libxml_force_included=no +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_force_included" >&5 +$as_echo "$gl_cv_libxml_force_included" >&6; } -#ifdef __STDC__ -# include -#else -# include -#endif + gl_cv_libxml_use_included="$gl_cv_libxml_force_included" + LIBXML= + LTLIBXML= + INCXML= + if test "$gl_cv_libxml_use_included" != yes; then + if test "${gl_cv_libxml+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -#undef $ac_func + gl_cv_libxml=no + gl_cv_LIBXML= + gl_cv_LTLIBXML= + gl_cv_INCXML= + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done -if test "x$ac_cv_func_fork" = xyes; then - { echo "$as_me:$LINENO: checking for working fork" >&5 -echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } -if test "${ac_cv_func_fork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_fork_works=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - /* By Ruediger Kuhlmann. */ - return fork () < 0; + use_additional=yes - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_fork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" -( exit $ac_status ) -ac_cv_func_fork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 -echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } -else - ac_cv_func_fork_works=$ac_cv_func_fork -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp*) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - { echo "$as_me:$LINENO: checking for working vfork" >&5 -echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } -if test "${ac_cv_func_vfork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_vfork_works=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Thanks to Paul Eggert for this test. */ -$ac_includes_default -#include -#ifdef HAVE_VFORK_H -# include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. The compiler - is told about this with #include , but some compilers - (e.g. gcc -O) don't grok . Test for this by using a - static variable whose address is put into a register that is - clobbered by the vfork. */ -static void -#ifdef __cplusplus -sparc_address_test (int arg) -# else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} +# Check whether --with-libxml2-prefix was given. +if test "${with_libxml2_prefix+set}" = set; then : + withval=$with_libxml2_prefix; + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then -int -main () -{ - pid_t parent = getpid (); - pid_t child; + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" - sparc_address_test (0); + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" - child = vfork (); + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - if (child == 0) { - /* Here is another test for sparc vfork register problems. This - test uses lots of local variables, at least as many local - variables as main has allocated so far including compiler - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should - reuse the register of parent for one of the local variables, - since it will think that parent can't possibly be used any more - in this routine. Assigning to the local variable will thus - munge parent in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent - from child file descriptors. If the child closes a descriptor - before it execs or exits, this munges the parent's descriptor - as well. Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; +fi - while (wait(&status) != child) - ; - return ( - /* Was there some problem with vforking? */ - child < 0 + LIBXML2= + LTLIBXML2= + INCXML2= + LIBXML2_PREFIX= + HAVE_LIBXML2= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='xml2 ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBXML2; do - /* Did the child fail? (This shouldn't happen.) */ - || status + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" - /* Did the vfork/compiler bug occur? */ - || parent != getpid() + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBXML2; do - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_vfork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" + else + LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a" + else + LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'xml2'; then + LIBXML2_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'xml2'; then + LIBXML2_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCXML2; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBXML2; do -( exit $ac_status ) -ac_cv_func_vfork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBXML2; do -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 -echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=$ac_cv_func_vfork - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} -fi + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBXML2="${LIBXML2}${LIBXML2:+ }$dep" + LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep" + ;; + esac + done + fi + else + LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name" + LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBXML2="${LIBXML2}${LIBXML2:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBXML2="${LIBXML2}${LIBXML2:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir" + done + fi -if test "x$ac_cv_func_vfork_works" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_VFORK 1 -_ACEOF -else -cat >>confdefs.h <<\_ACEOF -#define vfork fork -_ACEOF -fi -if test "x$ac_cv_func_fork_works" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_FORK 1 + LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +xmlCheckVersion (0); + ; + return 0; +} _ACEOF +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libxml=yes + gl_cv_LIBXML="$LIBXML2 $LIBICONV" + gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" fi - - - { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 -echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } -if test "${ac_cv_type_sig_atomic_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libxml" != yes; then + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCXML2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - -typedef sig_atomic_t ac__type_new_; +#include int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; +xmlCheckVersion (0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_sig_atomic_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_sig_atomic_t=no -fi +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libxml=yes + gl_cv_LIBXML="$LIBXML2 $LIBICONV" + gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" + gl_cv_INCXML="$INCXML2" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 -echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } -if test $ac_cv_type_sig_atomic_t = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_SIG_ATOMIC_T 1 +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test "$gl_cv_libxml" != yes; then + libxml2_include_dir= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_absolute_libxml2_libxml_xmlexports_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else -cat >>confdefs.h <<\_ACEOF -#define sig_atomic_t int -_ACEOF - -fi - - - - - - - + : - GNULIB_OPEN=0; - REPLACE_OPEN=0; + if test $ac_cv_header_libxml2_libxml_xmlexports_h = yes; then - { echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5 -echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6; } -if test "${gl_cv_have_include_next+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - rm -rf conftestd1 conftestd2 - mkdir conftestd1 conftestd2 - cat < conftestd1/conftest.h -#define DEFINED_IN_CONFTESTD1 -#include_next -#ifdef DEFINED_IN_CONFTESTD2 -int foo; -#else -#error "include_next doesn't work" -#endif -EOF - cat < conftestd2/conftest.h -#ifndef DEFINED_IN_CONFTESTD1 -#error "include_next test doesn't work" -#endif -#define DEFINED_IN_CONFTESTD2 -EOF - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" - cat >conftest.$ac_ext <<_ACEOF -#include + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_have_include_next=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_have_include_next=no -fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_absolute_libxml2_libxml_xmlexports_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | +sed -n '\#/libxml2/libxml/xmlexports.h#{ + s#.*"\(.*/libxml2/libxml/xmlexports.h\)".*#\1# + s#^/[^/]#//&# + p + q +}'` -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CPPFLAGS="$save_CPPFLAGS" - rm -rf conftestd1 conftestd2 + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5 -echo "${ECHO_T}$gl_cv_have_include_next" >&6; } - if test $gl_cv_have_include_next = yes; then - - -cat >>confdefs.h <<\_ACEOF -#define HAVE_INCLUDE_NEXT 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlexports_h" >&5 +$as_echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" >&6; } +cat >>confdefs.h <<_ACEOF +#define ABSOLUTE_LIBXML2_LIBXML_XMLEXPORTS_H "$gl_cv_absolute_libxml2_libxml_xmlexports_h" _ACEOF - INCLUDE_NEXT=include_next - else - INCLUDE_NEXT=include - fi - + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'` +fi +rm -f conftest.err conftest.$ac_ext + if test -z "$libxml2_include_dir"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_absolute_libxml2_libxml_xmlversion_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + : + if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then - { echo "$as_me:$LINENO: checking for eaccess" >&5 -echo $ECHO_N "checking for eaccess... $ECHO_C" >&6; } -if test "${ac_cv_func_eaccess+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define eaccess to an innocuous variant, in case declares eaccess. - For example, HP-UX 11i declares gettimeofday. */ -#define eaccess innocuous_eaccess - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char eaccess (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef eaccess - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char eaccess (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_eaccess || defined __stub___eaccess -choke me -#endif - -int -main () -{ -return eaccess (); - ; - return 0; -} +#include _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_eaccess=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | +sed -n '\#/libxml2/libxml/xmlversion.h#{ + s#.*"\(.*/libxml2/libxml/xmlversion.h\)".*#\1# + s#^/[^/]#//&# + p + q +}'` - ac_cv_func_eaccess=no -fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_eaccess" >&5 -echo "${ECHO_T}$ac_cv_func_eaccess" >&6; } -if test $ac_cv_func_eaccess = yes; then - : -else - -cat >>confdefs.h <<\_ACEOF -#define eaccess access +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5 +$as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; } +cat >>confdefs.h <<_ACEOF +#define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h" _ACEOF -fi - - - - - + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` - -{ echo "$as_me:$LINENO: checking for mbstate_t" >&5 -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +fi +rm -f conftest.err conftest.$ac_ext + fi + if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then + CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -# include +#include int main () { -mbstate_t x; return sizeof x; +xmlCheckVersion (0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mbstate_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_link "$LINENO"; then : + gl_cv_libxml=yes + gl_cv_LIBXML="$LIBXML2 $LIBICONV" + gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" + gl_cv_INCXML="-I$libxml2_include_dir" - ac_cv_type_mbstate_t=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + fi + fi + CPPFLAGS="$gl_save_CPPFLAGS" + fi + LIBS="$gl_save_LIBS" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } - if test $ac_cv_type_mbstate_t = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - - else - -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF - - fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml" >&5 +$as_echo_n "checking for libxml... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml" >&5 +$as_echo "$gl_cv_libxml" >&6; } + if test $gl_cv_libxml = yes; then + LIBXML="$gl_cv_LIBXML" + LTLIBXML="$gl_cv_LTLIBXML" + INCXML="$gl_cv_INCXML" + else + gl_cv_libxml_use_included=yes + fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libxml" >&5 +$as_echo_n "checking whether to use the included libxml... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_libxml_use_included" >&5 +$as_echo "$gl_cv_libxml_use_included" >&6; } + if test "$gl_cv_libxml_use_included" = yes; then + LIBXML_H= + LIBXML_H="$LIBXML_H libxml/DOCBparser.h" + LIBXML_H="$LIBXML_H libxml/HTMLparser.h" + LIBXML_H="$LIBXML_H libxml/HTMLtree.h" + LIBXML_H="$LIBXML_H libxml/SAX2.h" + LIBXML_H="$LIBXML_H libxml/SAX.h" + LIBXML_H="$LIBXML_H libxml/c14n.h" + LIBXML_H="$LIBXML_H libxml/catalog.h" + LIBXML_H="$LIBXML_H libxml/chvalid.h" + LIBXML_H="$LIBXML_H libxml/debugXML.h" + LIBXML_H="$LIBXML_H libxml/dict.h" + LIBXML_H="$LIBXML_H libxml/encoding.h" + LIBXML_H="$LIBXML_H libxml/entities.h" + LIBXML_H="$LIBXML_H libxml/globals.h" + LIBXML_H="$LIBXML_H libxml/hash.h" + LIBXML_H="$LIBXML_H libxml/list.h" + LIBXML_H="$LIBXML_H libxml/nanoftp.h" + LIBXML_H="$LIBXML_H libxml/nanohttp.h" + LIBXML_H="$LIBXML_H libxml/parser.h" + LIBXML_H="$LIBXML_H libxml/parserInternals.h" + LIBXML_H="$LIBXML_H libxml/pattern.h" + LIBXML_H="$LIBXML_H libxml/relaxng.h" + LIBXML_H="$LIBXML_H libxml/schemasInternals.h" + LIBXML_H="$LIBXML_H libxml/schematron.h" + LIBXML_H="$LIBXML_H libxml/threads.h" + LIBXML_H="$LIBXML_H libxml/tree.h" + LIBXML_H="$LIBXML_H libxml/uri.h" + LIBXML_H="$LIBXML_H libxml/valid.h" + LIBXML_H="$LIBXML_H libxml/xinclude.h" + LIBXML_H="$LIBXML_H libxml/xlink.h" + LIBXML_H="$LIBXML_H libxml/xmlIO.h" + LIBXML_H="$LIBXML_H libxml/xmlautomata.h" + LIBXML_H="$LIBXML_H libxml/xmlerror.h" + LIBXML_H="$LIBXML_H libxml/xmlexports.h" + LIBXML_H="$LIBXML_H libxml/xmlmemory.h" + LIBXML_H="$LIBXML_H libxml/xmlmodule.h" + LIBXML_H="$LIBXML_H libxml/xmlreader.h" + LIBXML_H="$LIBXML_H libxml/xmlregexp.h" + LIBXML_H="$LIBXML_H libxml/xmlsave.h" + LIBXML_H="$LIBXML_H libxml/xmlschemas.h" + LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h" + LIBXML_H="$LIBXML_H libxml/xmlstring.h" + LIBXML_H="$LIBXML_H libxml/xmlunicode.h" + LIBXML_H="$LIBXML_H libxml/xmlversion.h" + LIBXML_H="$LIBXML_H libxml/xmlwriter.h" + LIBXML_H="$LIBXML_H libxml/xpath.h" + LIBXML_H="$LIBXML_H libxml/xpathInternals.h" + LIBXML_H="$LIBXML_H libxml/xpointer.h" + for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \ + fcntl.h float.h limits.h malloc.h math.h netdb.h \ + netinet/in.h signal.h stdlib.h string.h \ + strings.h sys/select.h sys/socket.h sys/stat.h \ + sys/time.h sys/types.h time.h unistd.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF +fi +done + for ac_header in arpa/nameser.h +do : + ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" " + #if HAVE_SYS_TYPES_H + # include + #endif +" +if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ARPA_NAMESER_H 1 +_ACEOF +fi +done + for ac_header in resolv.h +do : + ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " + #if HAVE_SYS_TYPES_H + # include + #endif + #if HAVE_NETINET_IN_H + # include + #endif + #if HAVE_ARPA_NAMESER_H + # include + #endif +" +if test "x$ac_cv_header_resolv_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RESOLV_H 1 +_ACEOF +fi +done + for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done + + +$as_echo "#define VA_COPY va_copy" >>confdefs.h + + else + LIBXML_H= + fi + + + if test "$gl_cv_libxml_use_included" = yes; then + INCLUDED_LIBXML_TRUE= + INCLUDED_LIBXML_FALSE='#' +else + INCLUDED_LIBXML_TRUE='#' + INCLUDED_LIBXML_FALSE= +fi + + + # Code from module linkedhash-list: + # Code from module list: + + + + # Code from module localcharset: + + + + + : + + + + + + + + + + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" + + # Code from module locale: - GNULIB_FPRINTF_POSIX=0; - GNULIB_PRINTF_POSIX=0; - GNULIB_SNPRINTF=0; - GNULIB_SPRINTF_POSIX=0; - GNULIB_VFPRINTF_POSIX=0; - GNULIB_VPRINTF_POSIX=0; - GNULIB_VSNPRINTF=0; - GNULIB_VSPRINTF_POSIX=0; - GNULIB_VASPRINTF=0; - GNULIB_FOPEN=0; - GNULIB_FREOPEN=0; - GNULIB_FSEEK=0; - GNULIB_FSEEKO=0; - GNULIB_FTELL=0; - GNULIB_FTELLO=0; - GNULIB_FFLUSH=0; - GNULIB_GETDELIM=0; - GNULIB_GETLINE=0; - REPLACE_FPRINTF=0; - REPLACE_VFPRINTF=0; - REPLACE_PRINTF=0; - REPLACE_VPRINTF=0; - REPLACE_SNPRINTF=0; - HAVE_DECL_SNPRINTF=1; - REPLACE_VSNPRINTF=0; - HAVE_DECL_VSNPRINTF=1; - REPLACE_SPRINTF=0; - REPLACE_VSPRINTF=0; - HAVE_VASPRINTF=1; - REPLACE_VASPRINTF=0; - REPLACE_FOPEN=0; - REPLACE_FREOPEN=0; - HAVE_FSEEKO=1; - REPLACE_FSEEKO=0; - REPLACE_FSEEK=0; - HAVE_FTELLO=1; - REPLACE_FTELLO=0; - REPLACE_FTELL=0; - REPLACE_FFLUSH=0; - HAVE_DECL_GETDELIM=1; - HAVE_DECL_GETLINE=1; - REPLACE_GETLINE=0; - { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5 -echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getdelim+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 +$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; } +if test "${gl_cv_header_locale_h_posix2001+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include +int x = LC_MESSAGES; int main () { -#ifndef getdelim - (void) getdelim; -#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getdelim=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_locale_h_posix2001=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_getdelim=no + gl_cv_header_locale_h_posix2001=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; } -if test $ac_cv_have_decl_getdelim = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 +$as_echo "$gl_cv_header_locale_h_posix2001" >&6; } -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETDELIM 1 -_ACEOF - - -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETDELIM 0 -_ACEOF + : -fi - { echo "$as_me:$LINENO: checking whether getline is declared" >&5 -echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $ac_cv_header_xlocale_h = yes; then + HAVE_XLOCALE_H=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 +$as_echo_n "checking whether locale.h defines locale_t... " >&6; } +if test "${gl_cv_header_locale_has_locale_t+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include +locale_t x; int main () { -#ifndef getline - (void) getline; -#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getline=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_locale_has_locale_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_getline=no + gl_cv_header_locale_has_locale_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; } -if test $ac_cv_have_decl_getline = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 +$as_echo "$gl_cv_header_locale_has_locale_t" >&6; } + if test $gl_cv_header_locale_has_locale_t = yes; then + gl_cv_header_locale_h_needs_xlocale_h=no + else + gl_cv_header_locale_h_needs_xlocale_h=yes + fi + else + HAVE_XLOCALE_H=0 + gl_cv_header_locale_h_needs_xlocale_h=no + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETLINE 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETLINE 0 -_ACEOF -fi + : - if test -z "$GETOPT_H"; then -for ac_header in getopt.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $gl_cv_have_include_next = yes; then + gl_cv_next_locale_h='<'locale.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_locale_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_locale_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> +#include + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/locale.h#{ + s#.*"\(.*/locale.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_locale_h='<'locale.h'>' + fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 +$as_echo "$gl_cv_next_locale_h" >&6; } + fi + NEXT_LOCALE_H=$gl_cv_next_locale_h -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'locale.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_locale_h + fi + NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -else - GETOPT_H=getopt.h -fi + if test -n "$STDDEF_H" \ + || test $gl_cv_header_locale_h_posix2001 = no \ + || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then -done + : fi - if test -z "$GETOPT_H"; then -for ac_func in getopt_long_only -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in duplocale; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +/* Some systems provide declarations in a non-standard header. */ +#if HAVE_XLOCALE_H +# include #endif int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF -else - GETOPT_H=getopt.h + eval ac_cv_have_decl_$gl_func=yes fi -done + done - fi - if test -z "$GETOPT_H"; then - { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 -echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_optreset+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + # Code from module localename: -int -main () -{ -#ifndef optreset - (void) optreset; -#endif - ; - return 0; -} + + for ac_func in setlocale uselocale +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_optreset=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_optreset=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 -echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } -if test $ac_cv_have_decl_optreset = yes; then - GETOPT_H=getopt.h -fi - fi + # Code from module lock: - if test -z "$GETOPT_H"; then - { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 -echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } -if test "${gl_cv_func_gnu_getopt+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 -echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getopt_clip+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include +" +if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : + +$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h + +fi + + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -#ifndef getopt_clip - (void) getopt_clip; +#if __FreeBSD__ == 4 +error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#else +int x = (int)PTHREAD_MUTEX_RECURSIVE; +return !x; #endif - ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getopt_clip=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_have_decl_getopt_clip=no -fi +$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } -if test $ac_cv_have_decl_getopt_clip = yes; then - gl_cv_func_gnu_getopt=no -else - gl_cv_func_gnu_getopt=yes fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ - char *myargv[3]; - myargv[0] = "conftest"; - myargv[1] = "-+"; - myargv[2] = 0; - return getopt (2, myargv, "+a") != '?'; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_gnu_getopt=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gl_cv_func_gnu_getopt=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + # Code from module lstat: -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 -echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } - if test "$gl_cv_func_gnu_getopt" = "no"; then - GETOPT_H=getopt.h + + : + + + + + + if test $ac_cv_func_lstat = yes; then + + if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then + REPLACE_LSTAT=1 fi + # Prerequisites of lib/lstat.c. + + else + HAVE_LSTAT=0 fi - { echo "$as_me:$LINENO: checking whether getenv is declared" >&5 -echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getenv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getenv - (void) getenv; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getenv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_getenv=no -fi + GNULIB_LSTAT=1 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; } -if test $ac_cv_have_decl_getenv = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETENV 1 -_ACEOF +$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETENV 0 -_ACEOF -fi + # Code from module malloc-posix: + if test $gl_cv_func_malloc_posix = yes; then + HAVE_MALLOC_POSIX=1 -{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 -echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } -if test "${ac_cv_c_restrict+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_restrict=no - # The order here caters to the fact that C++ does not require restrict. - for ac_kw in __restrict __restrict__ _Restrict restrict; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -typedef int * int_ptr; - int foo (int_ptr $ac_kw ip) { - return ip[0]; - } -int -main () -{ -int s[1]; - int * $ac_kw t = s; - t[0] = 0; - return foo(t) - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_restrict=$ac_kw -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h + else -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_restrict" != no && break - done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 -echo "${ECHO_T}$ac_cv_c_restrict" >&6; } - case $ac_cv_c_restrict in - restrict) ;; - no) cat >>confdefs.h <<\_ACEOF -#define restrict -_ACEOF - ;; - *) cat >>confdefs.h <<_ACEOF -#define restrict $ac_cv_c_restrict -_ACEOF - ;; - esac + gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" + + HAVE_MALLOC_POSIX=0 + fi + + + + + + GNULIB_MALLOC_POSIX=1 + + + +$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h + + + + # Code from module malloca: + + # Code from module mbchar: + # Code from module mbiter: + + : + # Code from module mbrtowc: - if test $gl_cv_have_include_next = yes; then - gl_cv_next_sys_time_h='<'sys/time.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_sys_time_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + : + + + + + + + : + + + + + + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_sys_time_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } + return 0; +} _ACEOF - gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/sys/time.h#{ - s#.*"\(.*/sys/time.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_sys_time_h='<'sys/time.h'>' - fi +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes +else + gl_cv_func_mbrtowc_incomplete_state=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5 -echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; } - fi - NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes +else + gl_cv_func_mbrtowc_sanitycheck=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } - if test $ac_cv_header_sys_time_h = yes; then - HAVE_SYS_TIME_H=1 + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac else - HAVE_SYS_TIME_H=0 + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + + : + fi - { echo "$as_me:$LINENO: checking for struct timeval" >&5 -echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } -if test "${gl_cv_sys_struct_timeval+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + : + + + + + + if test $ac_cv_func_mbrtowc = no; then + HAVE_MBRTOWC=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBRTOWC=1 + else + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 +$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } +if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on OSF/1. + osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if HAVE_SYS_TIME_H - #include - #endif - #include -int -main () +#include +#include +#include +int main () { -static struct timeval x; x.tv_sec = x.tv_usec; - ; + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + mbstate_t state; + wchar_t wc; + int ret; + + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + mbrtowc (&wc, NULL, 5, &state); + /* Check that wc was not modified. */ + if (wc != (wchar_t) 0xBADFACE) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_sys_struct_timeval=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_null_arg=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_sys_struct_timeval=no + gl_cv_func_mbrtowc_null_arg=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5 -echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; } - if test $gl_cv_sys_struct_timeval = yes; then - HAVE_STRUCT_TIMEVAL=1 - else - HAVE_STRUCT_TIMEVAL=0 - fi - - REPLACE_GETTIMEOFDAY=0 + fi - if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then - SYS_TIME_H=sys/time.h - else - SYS_TIME_H= - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5 +$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 +$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } +if test "${gl_cv_func_mbrtowc_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_retval="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int main () +{ + /* This fails on Solaris. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 1) + return 1; + } + } + /* This fails on HP-UX 11.11. */ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 2) + return 1; + } + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_retval=yes +else + gl_cv_func_mbrtowc_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } - REPLACE_ICONV=0; - REPLACE_ICONV_OPEN=0; - REPLACE_ICONV_UTF=0; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 +$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } +if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$host_os" in + # Guess no on Solaris 8 and 9. + solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int main () +{ + /* This fails on Solaris 8 and 9. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + mbstate_t state; + wchar_t wc; + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, "", 1, &state) != 0) + return 1; + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_nul_retval=yes +else + gl_cv_func_mbrtowc_nul_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } + case "$gl_cv_func_mbrtowc_null_arg" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h - { echo "$as_me:$LINENO: checking whether included glib is requested" >&5 -echo $ECHO_N "checking whether included glib is requested... $ECHO_C" >&6; } + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h -# Check whether --with-included-glib was given. -if test "${with_included_glib+set}" = set; then - withval=$with_included_glib; gl_cv_libglib_force_included=$withval -else - gl_cv_libglib_force_included=no -fi + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_nul_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h - { echo "$as_me:$LINENO: result: $gl_cv_libglib_force_included" >&5 -echo "${ECHO_T}$gl_cv_libglib_force_included" >&6; } + REPLACE_MBRTOWC=1 + ;; + esac + fi + fi + if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then - gl_cv_libglib_use_included="$gl_cv_libglib_force_included" - LIBGLIB= - LTLIBGLIB= - INCGLIB= - if test "$gl_cv_libglib_use_included" != yes; then - if test "${gl_cv_libglib+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + : - gl_cv_libglib=no - gl_cv_LIBGLIB= - gl_cv_LTLIBGLIB= - gl_cv_INCGLIB= - gl_save_LIBS="$LIBS" - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" -# Check whether --with-libglib-2.0-prefix was given. -if test "${with_libglib_2_0_prefix+set}" = set; then - withval=$with_libglib_2_0_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + : - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + fi - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBGLIB_2_0= - LTLIBGLIB_2_0= - INCGLIB_2_0= - LIBGLIB_2_0_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='glib-2.0 ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBGLIB_2_0; do + GNULIB_MBRTOWC=1 - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a" - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBGLIB_2_0_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBGLIB_2_0; do + # Code from module mbsinit: - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep" - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep" - ;; - esac - done - fi - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir" - done - fi - LIBS="$gl_save_LIBS $LIBGLIB_2_0" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -g_string_new ("foo"); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libglib" != yes; then - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + : + + + + + + + : + + + + + + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () + +#include +#include +#include +int main () { -g_string_new ("foo"); - ; + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" - gl_cv_INCGLIB="$INCGLIB_2_0" - +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_mbrtowc_incomplete_state=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libglib" != yes; then - if test -n "$LIBGLIB_2_0_PREFIX"; then - CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () + +#include +#include +#include +#include +int main () { -g_string_new ("foo"); - ; + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" - gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gl_cv_func_mbrtowc_sanitycheck=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - fi - CPPFLAGS="$gl_save_CPPFLAGS" fi - LIBS="$gl_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } - { echo "$as_me:$LINENO: checking for glib" >&5 -echo $ECHO_N "checking for glib... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libglib" >&5 -echo "${ECHO_T}$gl_cv_libglib" >&6; } - if test $gl_cv_libglib = yes; then - LIBGLIB="$gl_cv_LIBGLIB" - LTLIBGLIB="$gl_cv_LTLIBGLIB" - INCGLIB="$gl_cv_INCGLIB" - else - gl_cv_libglib_use_included=yes - fi + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 fi + if test $REPLACE_MBSTATE_T = 1; then + : + fi - { echo "$as_me:$LINENO: checking whether to use the included glib" >&5 -echo $ECHO_N "checking whether to use the included glib... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libglib_use_included" >&5 -echo "${ECHO_T}$gl_cv_libglib_use_included" >&6; } - if test "$gl_cv_libglib_use_included" = yes; then - LIBGLIB_H= - LIBGLIB_H="$LIBGLIB_H glib.h" - LIBGLIB_H="$LIBGLIB_H glibconfig.h" - LIBGLIB_H="$LIBGLIB_H glib/ghash.h" - LIBGLIB_H="$LIBGLIB_H glib/glist.h" - LIBGLIB_H="$LIBGLIB_H glib/gprimes.h" - LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h" - LIBGLIB_H="$LIBGLIB_H glib/gstring.h" - LIBGLIB_H="$LIBGLIB_H glib/gtypes.h" + : -for ac_header in unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi + if test $ac_cv_func_mbsinit = no; then + HAVE_MBSINIT=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSINIT=1 + fi + fi + if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + : -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done - else - LIBGLIB_H= + + + + gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" + + + : + fi - if test "$gl_cv_libglib_use_included" = yes; then - INCLUDED_LIBGLIB_TRUE= - INCLUDED_LIBGLIB_FALSE='#' -else - INCLUDED_LIBGLIB_TRUE='#' - INCLUDED_LIBGLIB_FALSE= -fi + GNULIB_MBSINIT=1 +$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h + # Code from module mbslen: + : - { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 -echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getc_unlocked - (void) getc_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getc_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_func_mbslen = yes; then + HAVE_MBSLEN=1 + else + HAVE_MBSLEN=0 + fi - ac_cv_have_decl_getc_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } -if test $ac_cv_have_decl_getc_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED 1 -_ACEOF + GNULIB_MBSLEN=1 -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETC_UNLOCKED 0 -_ACEOF -fi +$as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h + # Code from module mbsrtowcs: @@ -34233,406 +36404,271 @@ - { echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5 -echo $ECHO_N "checking whether malloc, realloc, calloc are POSIX compliant... $ECHO_C" >&6; } -if test "${gl_cv_func_malloc_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ -#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - choke me - #endif + : - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_malloc_posix=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_func_malloc_posix=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5 -echo "${ECHO_T}$gl_cv_func_malloc_posix" >&6; } - GNULIB_MALLOC_POSIX=0; - GNULIB_REALLOC_POSIX=0; - GNULIB_CALLOC_POSIX=0; - GNULIB_GETSUBOPT=0; - GNULIB_MKDTEMP=0; - GNULIB_MKSTEMP=0; - GNULIB_PUTENV=0; - HAVE_CALLOC_POSIX=1; - HAVE_GETSUBOPT=1; - HAVE_MALLOC_POSIX=1; - HAVE_MKDTEMP=1; - HAVE_REALLOC_POSIX=1; - REPLACE_MKSTEMP=0; - REPLACE_PUTENV=0; + : -for ac_header in stdlib.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - eval "$as_ac_Header=\$ac_header_preproc" + gl_cv_func_mbrtowc_incomplete_state=no fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } + -done -{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 -echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - ac_cv_func_malloc_0_nonnull=no + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if defined STDC_HEADERS || defined HAVE_STDLIB_H -# include -#else -char *malloc (); -#endif -int -main () +#include +#include +#include +#include +int main () { -return ! malloc (0); - ; + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_malloc_0_nonnull=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_malloc_0_nonnull=no + gl_cv_func_mbrtowc_sanitycheck=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi + fi fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 -echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then - gl_cv_func_malloc_0_nonnull=1 -else - gl_cv_func_malloc_0_nonnull=0 -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } + + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : + fi -cat >>confdefs.h <<_ACEOF -#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull -_ACEOF + : + + + + + + if test $ac_cv_func_mbsrtowcs = no; then + HAVE_MBSRTOWCS=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSRTOWCS=1 + else - { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 -echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } -if test "${gl_cv_func_mbrtowc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5 +$as_echo_n "checking whether mbsrtowcs works... " >&6; } +if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbsrtowcs_works="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + +#include +#include #include -int -main () +int main () { -wchar_t wc; - char const s[] = ""; - size_t n = 1; - mbstate_t state; - return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); - ; + /* Test whether the function works when started with a conversion state + in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + const char input[] = "B\303\274\303\237er"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 2; + if (mbsrtowcs (NULL, &src, 10, &state) != 4) + return 1; + } + } + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "<\306\374\313\334\270\354>"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 4; + if (mbsrtowcs (NULL, &src, 10, &state) != 3) + return 1; + } + } + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + const char input[] = "B\250\271\201\060\211\070er"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 2; + if (mbsrtowcs (NULL, &src, 10, &state) != 4) + return 1; + } + } return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_func_mbrtowc=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbsrtowcs_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func_mbrtowc=no + gl_cv_func_mbsrtowcs_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 -echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } - if test $gl_cv_func_mbrtowc = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBRTOWC 1 -_ACEOF + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5 +$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; } + case "$gl_cv_func_mbsrtowcs_works" in + *yes) ;; + *) REPLACE_MBSRTOWCS=1 ;; + esac + fi fi + if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then + : - GNULIB_MEMMEM=0; - GNULIB_MEMPCPY=0; - GNULIB_MEMRCHR=0; - GNULIB_STPCPY=0; - GNULIB_STPNCPY=0; - GNULIB_STRCHRNUL=0; - GNULIB_STRDUP=0; - GNULIB_STRNDUP=0; - GNULIB_STRNLEN=0; - GNULIB_STRPBRK=0; - GNULIB_STRSEP=0; - GNULIB_STRCASESTR=0; - GNULIB_STRTOK_R=0; - GNULIB_MBSLEN=0; - GNULIB_MBSNLEN=0; - GNULIB_MBSCHR=0; - GNULIB_MBSRCHR=0; - GNULIB_MBSSTR=0; - GNULIB_MBSCASECMP=0; - GNULIB_MBSNCASECMP=0; - GNULIB_MBSPCASECMP=0; - GNULIB_MBSCASESTR=0; - GNULIB_MBSCSPN=0; - GNULIB_MBSPBRK=0; - GNULIB_MBSSPN=0; - GNULIB_MBSSEP=0; - GNULIB_MBSTOK_R=0; - GNULIB_STRERROR=0; - HAVE_DECL_MEMMEM=1; - HAVE_MEMPCPY=1; - HAVE_DECL_MEMRCHR=1; - HAVE_STPCPY=1; - HAVE_STPNCPY=1; - HAVE_STRCASECMP=1; - HAVE_DECL_STRNCASECMP=1; - HAVE_STRCHRNUL=1; - HAVE_DECL_STRDUP=1; - HAVE_STRNDUP=1; - HAVE_DECL_STRNDUP=1; - HAVE_DECL_STRNLEN=1; - HAVE_STRPBRK=1; - HAVE_STRSEP=1; - HAVE_STRCASESTR=1; - HAVE_DECL_STRTOK_R=1; - HAVE_DECL_STRERROR=1; - REPLACE_STRERROR=0; @@ -34641,12 +36677,57 @@ + gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext" + + + : + + fi + + + + + GNULIB_MBSRTOWCS=1 + + + +$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h + + + + # Code from module mbsstr: + + + + GNULIB_MBSSTR=1 + + + +$as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h + + + + # Code from module mbswidth: + + + : + : @@ -34656,489 +36737,182 @@ - { echo "$as_me:$LINENO: checking whether defines MIN and MAX" >&5 -echo $ECHO_N "checking whether defines MIN and MAX... $ECHO_C" >&6; } -if test "${gl_cv_minmax_in_limits_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in " >&5 +$as_echo_n "checking whether mbswidth is declared in ... " >&6; } +if test "${ac_cv_have_decl_mbswidth+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int x = MIN (42, 17); + +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + int main () { + char *p = (char *) mbswidth; + return !p; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_minmax_in_limits_h=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_mbswidth=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_minmax_in_limits_h=no + ac_cv_have_decl_mbswidth=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_minmax_in_limits_h" >&5 -echo "${ECHO_T}$gl_cv_minmax_in_limits_h" >&6; } - if test $gl_cv_minmax_in_limits_h = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MINMAX_IN_LIMITS_H 1 -_ACEOF - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5 +$as_echo "$ac_cv_have_decl_mbswidth" >&6; } + if test $ac_cv_have_decl_mbswidth = yes; then + ac_val=1 + else + ac_val=0 fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val +_ACEOF - - { echo "$as_me:$LINENO: checking whether defines MIN and MAX" >&5 -echo $ECHO_N "checking whether defines MIN and MAX... $ECHO_C" >&6; } -if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if test "${ac_cv_type_mbstate_t+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int x = MIN (42, 17); +$ac_includes_default +# include int main () { - +mbstate_t x; return sizeof x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_minmax_in_sys_param_h=yes +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_mbstate_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_minmax_in_sys_param_h=no + ac_cv_type_mbstate_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_minmax_in_sys_param_h" >&5 -echo "${ECHO_T}$gl_cv_minmax_in_sys_param_h" >&6; } - if test $gl_cv_minmax_in_sys_param_h = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } + if test $ac_cv_type_mbstate_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MINMAX_IN_SYS_PARAM_H 1 -_ACEOF +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h - fi + else +$as_echo "#define mbstate_t int" >>confdefs.h + fi + # Code from module mbuiter: - GNULIB_CHOWN=0; - GNULIB_DUP2=0; - GNULIB_FCHDIR=0; - GNULIB_FTRUNCATE=0; - GNULIB_GETCWD=0; - GNULIB_GETLOGIN_R=0; - GNULIB_LCHOWN=0; - GNULIB_LSEEK=0; - GNULIB_READLINK=0; - GNULIB_SLEEP=0; - HAVE_DUP2=1; - HAVE_FTRUNCATE=1; - HAVE_READLINK=1; - HAVE_SLEEP=1; - HAVE_DECL_GETLOGIN_R=1; - REPLACE_CHOWN=0; - REPLACE_FCHDIR=0; - REPLACE_GETCWD=0; - REPLACE_LCHOWN=0; - REPLACE_LSEEK=0; - { echo "$as_me:$LINENO: checking for shared library path variable" >&5 -echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6; } -if test "${acl_cv_libpath+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - LD="$LD" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_libpath=${acl_cv_shlibpath_var:-none} + : -fi -{ echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5 -echo "${ECHO_T}$acl_cv_libpath" >&6; } - shlibpath_var="$acl_cv_shlibpath_var" + # Code from module memchr: - { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5 -echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; } - # Check whether --enable-relocatable was given. -if test "${enable_relocatable+set}" = set; then - enableval=$enable_relocatable; if test "$enableval" != no; then - RELOCATABLE=yes - else - RELOCATABLE=no - fi -else - RELOCATABLE=no -fi + GNULIB_MEMCHR=1 - { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5 -echo "${ECHO_T}$RELOCATABLE" >&6; } +$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h - if test "X$prefix" = "XNONE"; then - reloc_final_prefix="$ac_default_prefix" - else - reloc_final_prefix="$prefix" - fi -cat >>confdefs.h <<_ACEOF -#define INSTALLPREFIX "${reloc_final_prefix}" -_ACEOF - if test $RELOCATABLE = yes; then + # Code from module memmove: -cat >>confdefs.h <<\_ACEOF -#define ENABLE_RELOCATABLE 1 -_ACEOF - fi - is_noop=no - use_elf_origin_trick=no - if test $RELOCATABLE = yes; then - # --enable-relocatable implies --disable-rpath - enable_rpath=no -for ac_header in mach-o/dyld.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + for ac_func in memmove +do : + ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" +if test "x$ac_cv_func_memmove" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MEMMOVE 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +fi +done -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test $ac_cv_func_memmove = no; then -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + : -fi + fi -done + # Code from module memset: -for ac_func in _NSGetExecutablePath -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then + for ac_func in memset +do : + ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" +if test "x$ac_cv_func_memset" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_MEMSET 1 _ACEOF +else + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + fi done - case "$host_os" in - mingw*) is_noop=yes ;; - linux*) use_elf_origin_trick=yes ;; - esac - if test $is_noop = yes; then - RELOCATABLE_LDFLAGS=: - else - if test $use_elf_origin_trick = yes; then - case "$ac_aux_dir" in - /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; - *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; - esac - RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" + if test $ac_cv_func_memset = no; then - else - INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" + : - case "$ac_aux_dir" in - /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; - *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; - esac - fi - fi fi - if test $is_noop = yes || test $use_elf_origin_trick = yes; then - RELOCATABLE_VIA_LD_TRUE= - RELOCATABLE_VIA_LD_FALSE='#' -else - RELOCATABLE_VIA_LD_TRUE='#' - RELOCATABLE_VIA_LD_FALSE= -fi + # Code from module minmax: + # Code from module mkdtemp: @@ -35149,5548 +36923,2301 @@ - { echo "$as_me:$LINENO: checking for ssize_t" >&5 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } -if test "${gt_cv_ssize_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int x = sizeof (ssize_t *) + sizeof (ssize_t); - return !x; - ; - return 0; -} + for ac_func in mkdtemp +do : + ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" +if test "x$ac_cv_func_mkdtemp" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MKDTEMP 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_ssize_t=yes + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_ssize_t=no -fi + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 -echo "${ECHO_T}$gt_cv_ssize_t" >&6; } - if test $gt_cv_ssize_t = no; then +done -cat >>confdefs.h <<\_ACEOF -#define ssize_t int -_ACEOF + + if test $ac_cv_func_mkdtemp = no; then + HAVE_MKDTEMP=0 + : fi - GNULIB_SIGPROCMASK=0; - HAVE_POSIX_SIGNALBLOCKING=1; - HAVE_SIGSET_T=1; + GNULIB_MKDTEMP=1 + +$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h + # Code from module moo: - { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 -echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_snprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5 +$as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; } +if test "${gl_cv_c_cplusplus+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef snprintf - (void) snprintf; + +#ifdef __cplusplus + Is c++ #endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_snprintf=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Is c++" >/dev/null 2>&1; then : + gl_cv_c_cplusplus=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_snprintf=no + gl_cv_c_cplusplus=no fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; } -if test $ac_cv_have_decl_snprintf = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5 +$as_echo "$gl_cv_c_cplusplus" >&6; } + if test $gl_cv_c_cplusplus = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SNPRINTF 1 -_ACEOF +$as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h + fi -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_SNPRINTF 0 -_ACEOF + # Code from module multiarch: + # Code from module no-c++: + NO_CXX= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if defined __GNUC__ && defined __cplusplus + Is g++ +#endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Is g++" >/dev/null 2>&1; then : + NO_CXX="-x c" fi +rm -f conftest* -{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 -echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } -if test "${ac_cv_header_stdbool_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - #include - #ifndef bool - "error: bool is not defined" - #endif - #ifndef false - "error: false is not defined" - #endif - #if false - "error: false is not 0" - #endif - #ifndef true - "error: true is not defined" - #endif - #if true != 1 - "error: true is not 1" - #endif - #ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" - #endif - - struct s { _Bool s: 1; _Bool t; } s; - - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; - #if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a run-time - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); - #endif - /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html - */ - _Bool q = true; - _Bool *pq = &q; + # Code from module obstack: -int -main () -{ - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stdbool_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_header_stdbool_h=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 -echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } - { echo "$as_me:$LINENO: checking for _Bool" >&5 -echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } -if test "${ac_cv_type__Bool+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 +$as_echo_n "checking for obstacks... " >&6; } +if test "${ac_cv_func_obstack+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default -typedef _Bool ac__type_new_; + #include "obstack.h" int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; +struct obstack mem; + #define obstack_chunk_alloc malloc + #define obstack_chunk_free free + obstack_init (&mem); + obstack_free (&mem, 0); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type__Bool=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_obstack=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type__Bool=no + ac_cv_func_obstack=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -echo "${ECHO_T}$ac_cv_type__Bool" >&6; } -if test $ac_cv_type__Bool = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5 +$as_echo "$ac_cv_func_obstack" >&6; } +if test $ac_cv_func_obstack = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE__BOOL 1 -_ACEOF +$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h +else -fi - if test $ac_cv_header_stdbool_h = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_STDBOOL_H 1 -_ACEOF - fi + gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext" +fi + # Code from module open: + case "$host_os" in + mingw* | pw*) + REPLACE_OPEN=1 - { echo "$as_me:$LINENO: checking whether strdup is declared" >&5 -echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strdup+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strdup - (void) strdup; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strdup=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_strdup=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; } -if test $ac_cv_have_decl_strdup = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRDUP 1 -_ACEOF + gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRDUP 0 -_ACEOF -fi + : + ;; + *) + : - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 +$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } +if test "${gl_cv_func_open_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + touch conftest.tmp + ln -s conftest.tmp conftest.lnk + fi + if test "$cross_compiling" = yes; then : + case "$host_os" in + freebsd*) gl_cv_func_open_slash="guessing no" ;; + solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;; + hpux*) gl_cv_func_open_slash="guessing no" ;; + *) gl_cv_func_open_slash="guessing yes" ;; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if HAVE_UNISTD_H +# include +#endif +int main () +{ +#if HAVE_LSTAT + if (open ("conftest.lnk/", O_RDONLY) != -1) return 2; +#endif + return open ("conftest.sl/", O_CREAT, 0600) >= 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_open_slash=yes +else + gl_cv_func_open_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + rm -f conftest.sl conftest.tmp conftest.lnk +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 +$as_echo "$gl_cv_func_open_slash" >&6; } + case "$gl_cv_func_open_slash" in + *no) +$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h - if test $gl_cv_have_include_next = yes; then - gl_cv_next_string_h='<'string.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_string_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_string_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/string.h#{ - s#.*"\(.*/string.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_string_h='<'string.h'>' - fi + REPLACE_OPEN=1 -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5 -echo "${ECHO_T}$gl_cv_next_string_h" >&6; } - fi - NEXT_STRING_H=$gl_cv_next_string_h - { echo "$as_me:$LINENO: checking whether strnlen is declared" >&5 -echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strnlen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef strnlen - (void) strnlen; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strnlen=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_strnlen=no -fi + gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" + + + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6; } -if test $ac_cv_have_decl_strnlen = yes; then + : -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNLEN 1 -_ACEOF + ;; + esac + ;; + esac -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRNLEN 0 -_ACEOF -fi + GNULIB_OPEN=1 +$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h + # Code from module openmp: + OPENMP_CFLAGS= + # Check whether --enable-openmp was given. +if test "${enable_openmp+set}" = set; then : + enableval=$enable_openmp; +fi -{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 -echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } -if test "${ac_cv_header_stat_broken+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test "$enable_openmp" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 +$as_echo_n "checking for $CC option to support OpenMP... " >&6; } +if test "${ac_cv_prog_c_openmp+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include - -#if defined S_ISBLK && defined S_IFDIR -extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; -#endif -#if defined S_ISBLK && defined S_IFCHR -extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; +#ifndef _OPENMP + choke me #endif +#include +int main () { return omp_get_num_threads (); } -#if defined S_ISLNK && defined S_IFREG -extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; -#endif +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_prog_c_openmp='none needed' +else + ac_cv_prog_c_openmp='unsupported' + for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do + ac_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS $ac_option" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -#if defined S_ISSOCK && defined S_IFREG -extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; +#ifndef _OPENMP + choke me #endif +#include +int main () { return omp_get_num_threads (); } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_header_stat_broken=no -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stat_broken=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_prog_c_openmp=$ac_option fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS=$ac_save_CFLAGS + if test "$ac_cv_prog_c_openmp" != unsupported; then + break + fi + done fi -{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 -echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } -if test $ac_cv_header_stat_broken = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STAT_MACROS_BROKEN 1 -_ACEOF - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 +$as_echo "$ac_cv_prog_c_openmp" >&6; } + case $ac_cv_prog_c_openmp in #( + "none needed" | unsupported) + ;; #( + *) + OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; + esac + fi + # Code from module ostream: + # Code from module pathmax: + : -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then - enableval=$enable_largefile; -fi -if test "$enable_largefile" != no; then - { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 -echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_largefile_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - ; - return 0; -} -_ACEOF - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : -fi -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_largefile_CC=' -n32'; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 -echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi + # Code from module pipe: - { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_file_offset_bits+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi + # Code from module pipe-filter-ii: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_file_offset_bits=64; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 -echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -f conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 -echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } -if test "${ac_cv_sys_large_files+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=no; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module pipe2: -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_sys_large_files=1; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 -echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -f conftest* - fi -fi + : + if test $ac_cv_func_pipe2 != yes; then + HAVE_PIPE2=0 + fi + GNULIB_PIPE2=1 - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" +$as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -# Check whether --with-libncurses-prefix was given. -if test "${with_libncurses_prefix+set}" = set; then - withval=$with_libncurses_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then + # Code from module pipe2-safer: - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" +cat >>confdefs.h <<_ACEOF +#define GNULIB_PIPE2_SAFER 1 +_ACEOF - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi + # Code from module posix_spawn-internal: + # Code from module posix_spawn_file_actions_addclose: -fi - LIBNCURSES= - LTLIBNCURSES= - INCNCURSES= - LIBNCURSES_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='ncurses ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBNCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBNCURSES; do + : - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so" - else - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a" - else - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBNCURSES_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCNCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBNCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBNCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep" - LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep" - ;; - esac - done - fi - else - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name" - LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir" - done + + gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addclose.$ac_objext" + fi + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=1 - use_additional=yes +$as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE 1" >>confdefs.h - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + # Code from module posix_spawn_file_actions_adddup2: -# Check whether --with-libtermcap-prefix was given. -if test "${with_libtermcap_prefix+set}" = set; then - withval=$with_libtermcap_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + : - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBTERMCAP= - LTLIBTERMCAP= - INCTERMCAP= - LIBTERMCAP_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='termcap ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBTERMCAP; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBTERMCAP; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so" - else - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a" - else - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBTERMCAP_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCTERMCAP; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + gl_LIBOBJS="$gl_LIBOBJS spawn_faction_adddup2.$ac_objext" + + fi + + + + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h + + + + # Code from module posix_spawn_file_actions_addopen: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBTERMCAP; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBTERMCAP; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep" - LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep" - ;; - esac - done - fi - else - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name" - LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir" - done - fi + gl_LIBOBJS="$gl_LIBOBJS spawn_faction_addopen.$ac_objext" + fi - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -# Check whether --with-libxcurses-prefix was given. -if test "${with_libxcurses_prefix+set}" = set; then - withval=$with_libxcurses_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then +$as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN 1" >>confdefs.h - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + # Code from module posix_spawn_file_actions_destroy: - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBXCURSES= - LTLIBXCURSES= - INCXCURSES= - LIBXCURSES_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='xcurses ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBXCURSES; do + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + : - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBXCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so" - else - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a" - else - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBXCURSES_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCXCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBXCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBXCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep" - LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep" - ;; - esac - done - fi - else - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name" - LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag" - done - fi + gl_LIBOBJS="$gl_LIBOBJS spawn_faction_destroy.$ac_objext" + fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir" - done + + + + GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_DESTROY 1" >>confdefs.h + + + + # Code from module posix_spawn_file_actions_init: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS spawn_faction_init.$ac_objext" + fi + GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=1 - use_additional=yes +$as_echo "#define GNULIB_TEST_POSIX_SPAWN_FILE_ACTIONS_INIT 1" >>confdefs.h - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + # Code from module posix_spawnattr_destroy: -# Check whether --with-libcurses-prefix was given. -if test "${with_libcurses_prefix+set}" = set; then - withval=$with_libcurses_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + : - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBCURSES= - LTLIBCURSES= - INCCURSES= - LIBCURSES_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='curses ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so" - else - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a" - else - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBCURSES_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + gl_LIBOBJS="$gl_LIBOBJS spawnattr_destroy.$ac_objext" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBCURSES; do + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBCURSES; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + GNULIB_POSIX_SPAWNATTR_DESTROY=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_DESTROY 1" >>confdefs.h + + + + # Code from module posix_spawnattr_init: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS spawnattr_init.$ac_objext" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep" - LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep" - ;; - esac - done - fi - else - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name" - LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag" - done - fi fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir" - done + + + + GNULIB_POSIX_SPAWNATTR_INIT=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_INIT 1" >>confdefs.h + + + + # Code from module posix_spawnattr_setflags: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS spawnattr_setflags.$ac_objext" + + fi + + + + GNULIB_POSIX_SPAWNATTR_SETFLAGS=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h + + + + # Code from module posix_spawnattr_setsigmask: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS spawnattr_setsigmask.$ac_objext" + fi - { echo "$as_me:$LINENO: checking where terminfo library functions come from" >&5 -echo $ECHO_N "checking where terminfo library functions come from... $ECHO_C" >&6; } -if test "${gl_cv_terminfo+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_terminfo="not found, consider installing GNU ncurses" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int setupterm (const char *, int, int *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetnum (const char *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetflag (const char *); - extern - #ifdef __cplusplus - "C" - #endif - const char * tigetstr (const char *); + GNULIB_POSIX_SPAWNATTR_SETSIGMASK=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h + + + + # Code from module posix_spawnp: + + + + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + + : + -int -main () -{ -return setupterm ("xterm", 0, (int *)0) - + tigetnum ("colors") - + tigetflag ("hc") + * tigetstr("oc"); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo=libc -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_terminfo" != libc; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBNCURSES" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + + + + gl_LIBOBJS="$gl_LIBOBJS spawnp.$ac_objext" + + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS spawni.$ac_objext" + + for ac_header in paths.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" +if test "x$ac_cv_header_paths_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PATHS_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int setupterm (const char *, int, int *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetnum (const char *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetflag (const char *); - extern - #ifdef __cplusplus - "C" - #endif - const char * tigetstr (const char *); -int -main () -{ -return setupterm ("xterm", 0, (int *)0) - + tigetnum ("colors") - + tigetflag ("hc") + * tigetstr("oc"); - ; - return 0; -} +fi + +done + + for ac_func in confstr sched_setparam sched_setscheduler setegid seteuid vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo=libncurses + +fi +done + + + fi + + + + GNULIB_POSIX_SPAWNP=1 + + + +$as_echo "#define GNULIB_TEST_POSIX_SPAWNP 1" >>confdefs.h + + + + # Code from module progname: + ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then : + ac_have_decl=1 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_have_decl=0 +fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl +_ACEOF + ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test "$gl_cv_terminfo" != libncurses; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBTERMCAP" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int setupterm (const char *, int, int *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetnum (const char *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetflag (const char *); - extern - #ifdef __cplusplus - "C" - #endif - const char * tigetstr (const char *); -int -main () -{ -return setupterm ("xterm", 0, (int *)0) - + tigetnum ("colors") - + tigetflag ("hc") + * tigetstr("oc"); - ; - return 0; -} + # Code from module propername: + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'" + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'" + + # Code from module quote: + + + # Code from module quotearg: + + + # Code from module quotearg-simple: + # Code from module rawmemchr: + + + + + + + + + + + + + for ac_func in rawmemchr +do : + ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr" +if test "x$ac_cv_func_rawmemchr" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RAWMEMCHR 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo=libtermcap + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi +done + + + if test $ac_cv_func_rawmemchr = no; then + HAVE_RAWMEMCHR=0 + : + fi + + + + + GNULIB_RAWMEMCHR=1 + + + +$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h + + + + # Code from module readlink: + + + + : + + + + + + if test $ac_cv_func_readlink = no; then + HAVE_READLINK=0 + + -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test "$gl_cv_terminfo" != libtermcap; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBXCURSES" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int setupterm (const char *, int, int *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetnum (const char *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetflag (const char *); - extern - #ifdef __cplusplus - "C" - #endif - const char * tigetstr (const char *); + + + + + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" + + + : + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 +$as_echo_n "checking whether readlink signature is correct... " >&6; } +if test "${gl_cv_decl_readlink_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + /* Cause compilation failure if original declaration has wrong type. */ + ssize_t readlink (const char *, char *, size_t); int main () { -return setupterm ("xterm", 0, (int *)0) - + tigetnum ("colors") - + tigetflag ("hc") + * tigetstr("oc"); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo=libxcurses +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_readlink_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + gl_cv_decl_readlink_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test "$gl_cv_terminfo" != libxcurses; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBCURSES" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 +$as_echo "$gl_cv_decl_readlink_works" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 +$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } +if test "${gl_cv_func_readlink_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # We have readlink, so assume ln -s works. + ln -s conftest.no-such conftest.link + ln -s conftest.link conftest.lnk2 + if test "$cross_compiling" = yes; then : + gl_cv_func_readlink_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int setupterm (const char *, int, int *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetnum (const char *); - extern - #ifdef __cplusplus - "C" - #endif - int tigetflag (const char *); - extern - #ifdef __cplusplus - "C" - #endif - const char * tigetstr (const char *); +#include int main () { -return setupterm ("xterm", 0, (int *)0) - + tigetnum ("colors") - + tigetflag ("hc") + * tigetstr("oc"); +char buf[20]; + return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo=libcurses +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_readlink_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + gl_cv_func_readlink_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + rm -f conftest.link conftest.lnk2 fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 +$as_echo "$gl_cv_func_readlink_works" >&6; } + if test "$gl_cv_func_readlink_works" != yes; then + +$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h + + REPLACE_READLINK=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" + + elif test "$gl_cv_decl_readlink_works" != yes; then + REPLACE_READLINK=1 + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - fi - fi - fi fi + fi + + + + + GNULIB_READLINK=1 + + + +$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h + + + + # Code from module realloc-posix: + + + if test $gl_cv_func_malloc_posix = yes; then + HAVE_REALLOC_POSIX=1 + +$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h + + else + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" + + HAVE_REALLOC_POSIX=0 + fi + + + + + + GNULIB_REALLOC_POSIX=1 + + + +$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h + + + + # Code from module relocatable-prog: + + + + + if test $RELOCATABLE = yes; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" + + fi + + if test $RELOCATABLE = yes; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" + + fi + : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} + RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" + RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" + + # Code from module relocatable-prog-wrapper: + + + : + + + + + + + : + + + + + + : + + + + + + + + + + + + + + + : + + + + + + + + + + + + + + + + + : + -fi -{ echo "$as_me:$LINENO: result: $gl_cv_terminfo" >&5 -echo "${ECHO_T}$gl_cv_terminfo" >&6; } - case "$gl_cv_terminfo" in - libc) - LIBTERMINFO= - LTLIBTERMINFO= - INCTERMINFO= - ;; - libncurses) - LIBTERMINFO="$LIBNCURSES" - LTLIBTERMINFO="$LTLIBNCURSES" - INCTERMINFO="$INCNCURSES" - ;; - libtermcap) - LIBTERMINFO="$LIBTERMCAP" - LTLIBTERMINFO="$LTLIBTERMCAP" - INCTERMINFO="$INCTERMCAP" - ;; - libxcurses) - LIBTERMINFO="$LIBXCURSES" - LTLIBTERMINFO="$LTLIBXCURSES" - INCTERMINFO="$INCXCURSES" - ;; - libcurses) - LIBTERMINFO="$LIBCURSES" - LTLIBTERMINFO="$LTLIBCURSES" - INCTERMINFO="$INCCURSES" - ;; - esac - case "$gl_cv_terminfo" in - libc | libncurses | libtermcap | libxcurses | libcurses) -cat >>confdefs.h <<\_ACEOF -#define HAVE_TERMINFO 1 -_ACEOF - ;; - *) - { echo "$as_me:$LINENO: checking where termcap library functions come from" >&5 -echo $ECHO_N "checking where termcap library functions come from... $ECHO_C" >&6; } -if test "${gl_cv_termcap+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_termcap="not found, consider installing GNU ncurses" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_func_setenv = no; then + HAVE_SETENV=0 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 +$as_echo_n "checking whether setenv validates arguments... " >&6; } +if test "${gl_cv_func_setenv_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_setenv_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int tgetent (char *, const char *); + + #include + #include + #include int main () { -return tgetent ((char *) 0, "xterm"); + + if (setenv ("", "", 0) != -1) return 1; + if (errno != EINVAL) return 2; + if (setenv ("a", "=", 1) != 0) return 3; + if (strcmp (getenv ("a"), "=") != 0) return 4; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_termcap=libc +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_setenv_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + gl_cv_func_setenv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 +$as_echo "$gl_cv_func_setenv_works" >&6; } + if test "$gl_cv_func_setenv_works" != yes; then + REPLACE_SETENV=1 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_termcap" != libc; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBNCURSES" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int tgetent (char *, const char *); -int -main () -{ -return tgetent ((char *) 0, "xterm"); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_termcap=libncurses -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - if test "$gl_cv_termcap" != libncurses; then - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBTERMCAP" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - int tgetent (char *, const char *); -int -main () -{ -return tgetent ((char *) 0, "xterm"); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_termcap=libtermcap -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi + gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gl_save_LIBS" - fi - fi + fi + fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_termcap" >&5 -echo "${ECHO_T}$gl_cv_termcap" >&6; } - case "$gl_cv_termcap" in - libc) - LIBTERMINFO= - LTLIBTERMINFO= - INCTERMINFO= - ;; - libncurses) - LIBTERMINFO="$LIBNCURSES" - LTLIBTERMINFO="$LTLIBNCURSES" - INCTERMINFO="$INCNCURSES" - ;; - libtermcap) - LIBTERMINFO="$LIBTERMCAP" - LTLIBTERMINFO="$LTLIBTERMCAP" - INCTERMINFO="$INCTERMCAP" - ;; - esac - case "$gl_cv_termcap" in - libc | libncurses | libtermcap) -cat >>confdefs.h <<\_ACEOF -#define HAVE_TERMCAP 1 -_ACEOF - ;; - esac - ;; - esac + : - { echo "$as_me:$LINENO: checking for tparam" >&5 -echo $ECHO_N "checking for tparam... $ECHO_C" >&6; } -if test "${gl_cv_terminfo_tparam+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBTERMINFO" - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCTERMINFO" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - char * tparam (const char *, void *, int, ...); - char buf; -int -main () -{ -return tparam ("\033\133%dm", &buf, 1, 8); - ; - return 0; -} + for ac_header in search.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" +if test "x$ac_cv_header_search_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SEARCH_H 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo_tparam=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_terminfo_tparam=no fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - CPPFLAGS="$gl_save_CPPFLAGS" - LIBS="$gl_save_LIBS" +done + + for ac_func in tsearch +do : + ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" +if test "x$ac_cv_func_tsearch" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_TSEARCH 1 +_ACEOF fi -{ echo "$as_me:$LINENO: result: $gl_cv_terminfo_tparam" >&5 -echo "${ECHO_T}$gl_cv_terminfo_tparam" >&6; } - if test $gl_cv_terminfo_tparam = yes; then +done -cat >>confdefs.h <<\_ACEOF -#define HAVE_TPARAM 1 -_ACEOF - else - { echo "$as_me:$LINENO: checking for tparm" >&5 -echo $ECHO_N "checking for tparm... $ECHO_C" >&6; } -if test "${gl_cv_terminfo_tparm+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBTERMINFO" - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCTERMINFO" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + if test -z "$ERRNO_H"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 +$as_echo_n "checking for working strerror function... " >&6; } +if test "${gl_cv_func_working_strerror+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -extern - #ifdef __cplusplus - "C" - #endif - char * tparm (const char *, ...); +#include int main () { -return tparm ("\033\133%dm", 8); +return !*strerror (-2); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_terminfo_tparm=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_working_strerror=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_terminfo_tparm=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - CPPFLAGS="$gl_save_CPPFLAGS" - LIBS="$gl_save_LIBS" - + gl_cv_func_working_strerror=no fi -{ echo "$as_me:$LINENO: result: $gl_cv_terminfo_tparm" >&5 -echo "${ECHO_T}$gl_cv_terminfo_tparm" >&6; } - fi - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 -echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + int main () { -#ifndef clearerr_unlocked - (void) clearerr_unlocked; -#endif - +return !*strerror (-2); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_clearerr_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_strerror=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_working_strerror=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + - ac_cv_have_decl_clearerr_unlocked=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 +$as_echo "$gl_cv_func_working_strerror" >&6; } + if test $gl_cv_func_working_strerror = no; then + REPLACE_STRERROR=1 + fi + else + REPLACE_STRERROR=1 + fi + if test $REPLACE_STRERROR = 1; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" +if test "x$ac_cv_have_decl_strerror" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; } -if test $ac_cv_have_decl_clearerr_unlocked = yes; then cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLEARERR_UNLOCKED 1 +#define HAVE_DECL_STRERROR $ac_have_decl _ACEOF -else + : + + + + + + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_CLEARERR_UNLOCKED 0 +#define HAVE_WINSOCK2_H 1 _ACEOF - fi +done + + fi + + fi + + # Code from module relocatable-script: + relocatable_sh=$ac_aux_dir/relocatable.sh.in + + # Code from module rmdir: - { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 -echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5 +$as_echo_n "checking whether rmdir works... " >&6; } +if test "${gl_cv_func_rmdir_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + mkdir conftest.dir + touch conftest.file + if test "$cross_compiling" = yes; then : + gl_cv_func_rmdir_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + #include + #include + int main () { -#ifndef feof_unlocked - (void) feof_unlocked; -#endif - +return !rmdir ("conftest.file/") || errno != ENOTDIR + || !rmdir ("conftest.dir/./"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_feof_unlocked=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_rmdir_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_feof_unlocked=no + gl_cv_func_rmdir_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + rm -rf conftest.dir conftest.file fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } -if test $ac_cv_have_decl_feof_unlocked = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5 +$as_echo "$gl_cv_func_rmdir_works" >&6; } + if test x"$gl_cv_func_rmdir_works" != xyes; then + REPLACE_RMDIR=1 -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FEOF_UNLOCKED 0 -_ACEOF -fi + gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext" - { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 -echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef ferror_unlocked - (void) ferror_unlocked; -#endif + fi - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_ferror_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_ferror_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; } -if test $ac_cv_have_decl_ferror_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FERROR_UNLOCKED 1 -_ACEOF + GNULIB_RMDIR=1 -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FERROR_UNLOCKED 0 -_ACEOF +$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h -fi + # Code from module safe-read: - { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 -echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fflush_unlocked - (void) fflush_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fflush_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_fflush_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; } -if test $ac_cv_have_decl_fflush_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FFLUSH_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FFLUSH_UNLOCKED 0 -_ACEOF + gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext" -fi - { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 -echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fgets_unlocked - (void) fgets_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fgets_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module safe-write: - ac_cv_have_decl_fgets_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } -if test $ac_cv_have_decl_fgets_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FGETS_UNLOCKED 0 -_ACEOF -fi + gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext" - { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 -echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + + # Code from module sched: + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + + #include + struct sched_param a; + int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; + int main () { -#ifndef fputc_unlocked - (void) fputc_unlocked; -#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fputc_unlocked=yes +if ac_fn_c_try_compile "$LINENO"; then : + SCHED_H='' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + SCHED_H='sched.h' - ac_cv_have_decl_fputc_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; } -if test $ac_cv_have_decl_fputc_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTC_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTC_UNLOCKED 0 -_ACEOF + : + -fi - { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 -echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sched_h='<'sched.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sched_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_sched_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fputs_unlocked - (void) fputs_unlocked; -#endif +#include - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fputs_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sched.h#{ + s#.*"\(.*/sched.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sched_h='<'sched.h'>' + fi - ac_cv_have_decl_fputs_unlocked=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5 +$as_echo "$gl_cv_next_sched_h" >&6; } + fi + NEXT_SCHED_H=$gl_cv_next_sched_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; } -if test $ac_cv_have_decl_fputs_unlocked = yes; then + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sched.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sched_h + fi + NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTS_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FPUTS_UNLOCKED 0 -_ACEOF -fi + : - { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 -echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fread_unlocked - (void) fread_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fread_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_header_sched_h = yes; then + HAVE_SCHED_H=1 + else + HAVE_SCHED_H=0 + fi + - ac_cv_have_decl_fread_unlocked=no + ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include +" +if test "x$ac_cv_type_struct_sched_param" = x""yes; then : + HAVE_STRUCT_SCHED_PARAM=1 +else + HAVE_STRUCT_SCHED_PARAM=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; } -if test $ac_cv_have_decl_fread_unlocked = yes; then +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREAD_UNLOCKED 1 -_ACEOF + # Code from module setenv: -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FREAD_UNLOCKED 0 + + if test $HAVE_SETENV$REPLACE_SETENV != 10; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext" + + fi + + + + + GNULIB_SETENV=1 + + + +$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h + + + + # Code from module sh-quote: + # Code from module sigaction: + + + + : + + + + + + if test $ac_cv_func_sigaction = yes; then + ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include +" +if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1 _ACEOF fi + if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then + HAVE_STRUCT_SIGACTION_SA_SIGACTION=0 + fi + else + HAVE_SIGACTION=0 - { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 -echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef fwrite_unlocked - (void) fwrite_unlocked; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_fwrite_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_fwrite_unlocked=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; } -if test $ac_cv_have_decl_fwrite_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FWRITE_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_FWRITE_UNLOCKED 0 -_ACEOF + gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext" -fi - { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 -echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef getchar_unlocked - (void) getchar_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_getchar_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_getchar_unlocked=no -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; } -if test $ac_cv_have_decl_getchar_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETCHAR_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_GETCHAR_UNLOCKED 0 -_ACEOF -fi + ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" " +#include +" +if test "x$ac_cv_type_siginfo_t" = x""yes; then : - { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 -echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_SIGINFO_T 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef putc_unlocked - (void) putc_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_putc_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_putc_unlocked=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; } -if test $ac_cv_have_decl_putc_unlocked = yes; then + if test $ac_cv_type_siginfo_t = no; then + HAVE_SIGINFO_T=0 + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTC_UNLOCKED 1 -_ACEOF + fi -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTC_UNLOCKED 0 -_ACEOF -fi + GNULIB_SIGACTION=1 +$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h - { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 -echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -#ifndef putchar_unlocked - (void) putchar_unlocked; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_putchar_unlocked=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_have_decl_putchar_unlocked=no -fi + # Code from module signal: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 -echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; } -if test $ac_cv_have_decl_putchar_unlocked = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTCHAR_UNLOCKED 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_PUTCHAR_UNLOCKED 0 -_ACEOF -fi + : + - { echo "$as_me:$LINENO: checking for EOVERFLOW" >&5 -echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6; } -if test "${ac_cv_decl_EOVERFLOW+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_signal_h='<'signal.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_signal_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_signal_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#include -#ifdef EOVERFLOW -yes -#endif +#include _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - have_eoverflow=1 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/signal.h#{ + s#.*"\(.*/signal.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_signal_h='<'signal.h'>' + fi + fi -rm -f conftest* +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 +$as_echo "$gl_cv_next_signal_h" >&6; } + fi + NEXT_SIGNAL_H=$gl_cv_next_signal_h - if test -n "$have_eoverflow"; then - ac_cv_decl_EOVERFLOW=yes - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'signal.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_signal_h + fi + NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive -#define _XOPEN_SOURCE_EXTENDED 1 -#include -#ifdef EOVERFLOW -yes -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1; then - have_eoverflow=1 + +# AIX declares sig_atomic_t to already include volatile, and C89 compilers +# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. + ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " +#include + +" +if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : + +else + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 fi -rm -f conftest* - if test -n "$have_eoverflow"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((EOVERFLOW) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include +#include int main () { -static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; -test_array [0] = 0 - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include + eval ac_cv_have_decl_$gl_func=yes +fi + done -int -main () -{ -static int test_array [1 - 2 * !((EOVERFLOW) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module sigpipe: -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_SIGPIPE 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= -fi + GNULIB_SIGNAL_H_SIGPIPE=1 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + GNULIB_STDIO_H_SIGPIPE=1 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)]; -test_array [0] = 0 + signals_not_posix= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sigset_t" >/dev/null 2>&1; then : + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + signals_not_posix=1 +fi +rm -f conftest* - ac_lo=`expr '(' $ac_mid ')' + 1` + if test -z "$signals_not_posix"; then + ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = x""yes; then : + gl_cv_func_sigprocmask=1 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_decl_EOVERFLOW=$ac_lo;; -'') ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + fi + if test -z "$gl_cv_func_sigprocmask"; then + HAVE_POSIX_SIGNALBLOCKING=0 -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -static long int longval () { return EOVERFLOW; } -static unsigned long int ulongval () { return EOVERFLOW; } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((EOVERFLOW) < 0) - { - long int i = longval (); - if (i != (EOVERFLOW)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (EOVERFLOW)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_decl_EOVERFLOW=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - else - ac_cv_decl_EOVERFLOW=E2BIG - fi - fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5 -echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6; } - if test "$ac_cv_decl_EOVERFLOW" != yes; then + + + gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext" + + + + ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include +/* Mingw defines sigset_t not in , but in . */ +#include +" +if test "x$ac_cv_type_sigset_t" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define EOVERFLOW $ac_cv_decl_EOVERFLOW +#define HAVE_SIGSET_T 1 _ACEOF - EOVERFLOW="$ac_cv_decl_EOVERFLOW" +gl_cv_type_sigset_t=yes +else + gl_cv_type_sigset_t=no +fi + if test $gl_cv_type_sigset_t != yes; then + HAVE_SIGSET_T=0 fi + fi + GNULIB_SIGPROCMASK=1 +$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h - { echo "$as_me:$LINENO: checking for intmax_t" >&5 -echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } -if test "${gt_cv_c_intmax_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if HAVE_STDINT_H_WITH_UINTMAX -#include -#endif -#if HAVE_INTTYPES_H_WITH_UINTMAX -#include -#endif -int -main () -{ -intmax_t x = -1; return !x; - ; - return 0; -} + # Code from module size_max: + + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_intmax_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_c_intmax_t=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 -echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } - if test $gt_cv_c_intmax_t = yes; then +done -cat >>confdefs.h <<\_ACEOF -#define HAVE_INTMAX_T 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +$as_echo_n "checking for SIZE_MAX... " >&6; } +if test "${gl_cv_size_max+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - else + gl_cv_size_max= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - test $ac_cv_type_long_long_int = yes \ - && ac_type='long long' \ - || ac_type='long' +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it +#endif -cat >>confdefs.h <<_ACEOF -#define intmax_t $ac_type _ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then : + gl_cv_size_max=yes +fi +rm -f conftest* - fi + if test -z "$gl_cv_size_max"; then + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include +#include "; then : + +else + size_t_bits_minus_1= +fi + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : - { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 -echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_vsnprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + fits_in_uint= +fi + + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + extern size_t foo; + extern unsigned long foo; + int main () { -#ifndef vsnprintf - (void) vsnprintf; -#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_vsnprintf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : + fits_in_uint=0 +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi + else + gl_cv_size_max='((size_t)~(size_t)0)' + fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +$as_echo "$gl_cv_size_max" >&6; } + if test "$gl_cv_size_max" != yes; then + +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $gl_cv_size_max +_ACEOF + + fi + - ac_cv_have_decl_vsnprintf=no -fi + # Code from module snprintf: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; } -if test $ac_cv_have_decl_vsnprintf = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_VSNPRINTF 1 + gl_cv_func_snprintf_usable=no + for ac_func in snprintf +do : + ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SNPRINTF 1 _ACEOF +fi +done + + if test $ac_cv_func_snprintf = yes; then + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 +$as_echo_n "checking whether snprintf respects a size of 1... " >&6; } +if test "${gl_cv_func_snprintf_size1+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_VSNPRINTF 0 + + if test "$cross_compiling" = yes; then : + gl_cv_func_snprintf_size1="guessing yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main() +{ + static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; + snprintf (buf, 1, "%d", 12345); + return buf[1] != 'E'; +} _ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_snprintf_size1=yes +else + gl_cv_func_snprintf_size1=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 +$as_echo "$gl_cv_func_snprintf_size1" >&6; } + + case "$gl_cv_func_snprintf_size1" in + *yes) + gl_cv_func_snprintf_usable=yes + ;; + esac + fi + if test $gl_cv_func_snprintf_usable = no; then - GNULIB_WCWIDTH=0; - HAVE_DECL_WCWIDTH=1; - REPLACE_WCWIDTH=0; - WCHAR_H= + gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext" + if test $ac_cv_func_snprintf = yes; then + REPLACE_SNPRINTF=1 + fi + : + fi + : + if test $ac_cv_have_decl_snprintf = no; then + HAVE_DECL_SNPRINTF=0 + fi - if true; then - GL_COND_LIBTOOL_TRUE= - GL_COND_LIBTOOL_FALSE='#' -else - GL_COND_LIBTOOL_TRUE='#' - GL_COND_LIBTOOL_FALSE= -fi + GNULIB_SNPRINTF=1 - gl_cond_libtool=true - gl_source_base='gnulib-lib' +$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h + # Code from module spawn: - gl_LIBOBJS="$gl_LIBOBJS acl.$ac_objext" + : - gl_LIBOBJS="$gl_LIBOBJS file-has-acl.$ac_objext" -for ac_header in sys/acl.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test $gl_cv_have_include_next = yes; then + gl_cv_next_spawn_h='<'spawn.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_spawn_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_spawn_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/spawn.h#{ + s#.*"\(.*/spawn.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_spawn_h='<'spawn.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_spawn_h" >&5 +$as_echo "$gl_cv_next_spawn_h" >&6; } + fi + NEXT_SPAWN_H=$gl_cv_next_spawn_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'spawn.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_spawn_h + fi + NEXT_AS_FIRST_DIRECTIVE_SPAWN_H=$gl_next_as_first_directive -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + : + + + + + + if test $ac_cv_header_spawn_h = yes; then + HAVE_SPAWN_H=1 + ac_fn_c_check_type "$LINENO" "posix_spawnattr_t" "ac_cv_type_posix_spawnattr_t" " +#include + +" +if test "x$ac_cv_type_posix_spawnattr_t" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_POSIX_SPAWNATTR_T 1 +_ACEOF + + else - eval "$as_ac_Header=\$ac_header_preproc" + HAVE_POSIX_SPAWNATTR_T=0 fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + ac_fn_c_check_type "$LINENO" "posix_spawn_file_actions_t" "ac_cv_type_posix_spawn_file_actions_t" " +#include + +" +if test "x$ac_cv_type_posix_spawn_file_actions_t" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_POSIX_SPAWN_FILE_ACTIONS_T 1 _ACEOF + +else + HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0 fi -done + else + HAVE_SPAWN_H=0 + HAVE_POSIX_SPAWNATTR_T=0 + HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0 + : -for ac_func in acl -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + + + + for gl_func in posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault posix_spawnattr_getsigmask posix_spawnattr_setsigmask posix_spawnattr_getflags posix_spawnattr_setflags posix_spawnattr_getpgroup posix_spawnattr_setpgroup posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy posix_spawnattr_getschedparam posix_spawnattr_setschedparam posix_spawn_file_actions_init posix_spawn_file_actions_destroy posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose posix_spawn_file_actions_adddup2; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done + done + + + # Code from module ssize_t: - ac_save_LIBS="$LIBS" - { echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5 -echo $ECHO_N "checking for library containing acl_get_file... $ECHO_C" >&6; } -if test "${ac_cv_search_acl_get_file+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +$as_echo_n "checking for ssize_t... " >&6; } +if test "${gt_cv_ssize_t+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char acl_get_file (); +#include int main () { -return acl_get_file (); +int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x; ; return 0; } _ACEOF -for ac_lib in '' acl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_acl_get_file=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_acl_get_file+set}" = set; then - break -fi -done -if test "${ac_cv_search_acl_get_file+set}" = set; then - : -else - ac_cv_search_acl_get_file=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5 -echo "${ECHO_T}$ac_cv_search_acl_get_file" >&6; } -ac_res=$ac_cv_search_acl_get_file -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - test "$ac_cv_search_acl_get_file" = "none required" || - LIB_ACL=$ac_cv_search_acl_get_file -fi - - - -for ac_header in acl/libacl.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_ssize_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no + gt_cv_ssize_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +$as_echo "$gt_cv_ssize_t" >&6; } + if test $gt_cv_ssize_t = no; then -fi +$as_echo "#define ssize_t int" >>confdefs.h -done + fi + # Code from module stat: + : -for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \ - acl_free acl_from_mode acl_from_text \ - acl_delete_def_file acl_extended_file -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 +$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } +if test "${gl_cv_func_stat_dir_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + case $host_os in + mingw*) gl_cv_func_stat_dir_slash="guessing no";; + *) gl_cv_func_stat_dir_slash="guessing yes";; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +#include int main () { -return $ac_func (); +struct stat st; return stat (".", &st) != stat ("./", &st); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_dir_slash=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_stat_dir_slash=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi -done - - if test $ac_cv_header_sys_acl_h = yes; then - use_acl=1 - if test $ac_cv_func_acl_get_file = yes; then - # If we detect the acl_get_file bug, disable ACL support altogether. - - { echo "$as_me:$LINENO: checking for working acl_get_file" >&5 -echo $ECHO_N "checking for working acl_get_file... $ECHO_C" >&6; } -if test "${gl_cv_func_working_acl_get_file+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 +$as_echo "$gl_cv_func_stat_dir_slash" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 +$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } +if test "${gl_cv_func_stat_file_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - gl_cv_func_working_acl_get_file=cross-compiling + touch conftest.tmp + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + ln -s conftest.tmp conftest.lnk + fi + if test "$cross_compiling" = yes; then : + gl_cv_func_stat_file_slash="guessing no" else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - #include +#include int main () { -return !! (!acl_get_file (".", ACL_TYPE_ACCESS) - && errno == ENOENT); +struct stat st; + if (!stat ("conftest.tmp/", &st)) return 1; +#if HAVE_LSTAT + if (!stat ("conftest.lnk/", &st)) return 2; +#endif + ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_working_acl_get_file=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_file_slash=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gl_cv_func_working_acl_get_file=no + gl_cv_func_stat_file_slash=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - + rm -f conftest.tmp conftest.lnk fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5 -echo "${ECHO_T}$gl_cv_func_working_acl_get_file" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 +$as_echo "$gl_cv_func_stat_file_slash" >&6; } + case $gl_cv_func_stat_dir_slash in + *no) REPLACE_STAT=1 - if test $gl_cv_func_working_acl_get_file = yes; then - : -else - use_acl=0 -fi +$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h +;; + esac + case $gl_cv_func_stat_file_slash in + *no) REPLACE_STAT=1 +$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h +;; + esac + if test $REPLACE_STAT = 1; then - fi - else - use_acl=0 - fi - if test $use_acl = 1 && - test $ac_cv_func_acl_get_file = yes && - test $ac_cv_func_acl_free = yes; then @@ -40698,1249 +39225,1008 @@ + gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" -for ac_func in acl_entries -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + fi -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + GNULIB_STAT=1 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else +$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + # Code from module stdarg: - fi - LIBS="$ac_save_LIBS" - if test $use_acl = 1; then - ac_save_LIBS="$LIBS" - { echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5 -echo $ECHO_N "checking for library containing acl_trivial... $ECHO_C" >&6; } -if test "${ac_cv_search_acl_trivial+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + STDARG_H=''; + NEXT_STDARG_H=''; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 +$as_echo_n "checking for va_copy... " >&6; } + if test "${gl_cv_func_va_copy+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_func_search_save_LIBS=$LIBS -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char acl_trivial (); + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return acl_trivial (); + +#ifndef va_copy +void (*func) (va_list, va_list) = va_copy; +#endif + ; return 0; } _ACEOF -for ac_lib in '' sec; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_search_acl_trivial=$ac_res -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext - if test "${ac_cv_search_acl_trivial+set}" = set; then - break -fi -done -if test "${ac_cv_search_acl_trivial+set}" = set; then - : +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_va_copy=yes else - ac_cv_search_acl_trivial=no + gl_cv_func_va_copy=no fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5 -echo "${ECHO_T}$ac_cv_search_acl_trivial" >&6; } -ac_res=$ac_cv_search_acl_trivial -if test "$ac_res" != no; then - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -cat >>confdefs.h <<\_ACEOF -#define HAVE_ACL_TRIVIAL 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 +$as_echo "$gl_cv_func_va_copy" >&6; } + if test $gl_cv_func_va_copy = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined _AIX && !defined __GNUC__ + AIX vaccine + #endif - test "$ac_cv_search_acl_trivial" = "none required" || - LIB_ACL_TRIVIAL="$ac_cv_search_acl_trivial" +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "vaccine" >/dev/null 2>&1; then : + gl_aixcc=yes +else + gl_aixcc=no fi +rm -f conftest* - - LIBS="$ac_save_LIBS" - fi - -cat >>confdefs.h <<_ACEOF -#define USE_ACL $use_acl -_ACEOF + if test $gl_aixcc = yes; then + STDARG_H=stdarg.h + : - if test $ac_cv_func_alloca_works = no; then - : + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdarg_h='<'stdarg.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdarg_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stdarg_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdarg.h#{ + s#.*"\(.*/stdarg.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdarg_h='<'stdarg.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 +$as_echo "$gl_cv_next_stdarg_h" >&6; } + fi + NEXT_STDARG_H=$gl_cv_next_stdarg_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdarg.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdarg_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive - : - fi + if test "$gl_cv_next_stdarg_h" = '""'; then + gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' + NEXT_STDARG_H="$gl_cv_next_stdarg_h" + fi + else - # Define an additional variable used in the Makefile substitution. + saved_as_echo_n="$as_echo_n" + as_echo_n=':' + if test "${gl_cv_func___va_copy+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +int +main () +{ -#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H - Need own alloca +#ifndef __va_copy +error, bail out #endif + ; + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Need own alloca" >/dev/null 2>&1; then - ALLOCA_H=alloca.h +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func___va_copy=yes else - ALLOCA_H= + gl_cv_func___va_copy=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -rm -f conftest* - - - + as_echo_n="$saved_as_echo_n" + if test $gl_cv_func___va_copy = yes; then +$as_echo "#define va_copy __va_copy" >>confdefs.h + else +$as_echo "#define va_copy gl_va_copy" >>confdefs.h + fi + fi + fi - gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext" + # Code from module stdbool: + # Define two additional variables used in the Makefile substitution. + if test "$ac_cv_header_stdbool_h" = yes; then + STDBOOL_H='' + else + STDBOOL_H='stdbool.h' + fi + if test "$ac_cv_type__Bool" = yes; then + HAVE__BOOL=1 + else + HAVE__BOOL=0 + fi + # Code from module stddef: -for ac_func in atexit -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 +$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } +if test "${gl_cv_decl_null_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_null_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_decl_null_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 +$as_echo "$gl_cv_decl_null_works" >&6; } + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then -fi -done - if test $ac_cv_func_atexit = no; then : - fi -for ac_header in dirent.h string.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stddef_h='<'stddef.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stddef_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_stddef_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> +#include + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stddef.h#{ + s#.*"\(.*/stddef.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stddef_h='<'stddef.h'>' + fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 +$as_echo "$gl_cv_next_stddef_h" >&6; } + fi + NEXT_STDDEF_H=$gl_cv_next_stddef_h -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stddef.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stddef_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done + fi - { echo "$as_me:$LINENO: checking for long file names" >&5 -echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } -if test "${ac_cv_sys_long_file_names+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_sys_long_file_names=yes -# Test for long file names in all the places we know might matter: -# . the current directory, where building will happen -# $prefix/lib where we will be installing things -# $exec_prefix/lib likewise -# $TMPDIR if set, where it might want to write temporary files -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise -for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do - # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib - # in the usual case where exec_prefix is '${prefix}'. - case $ac_dir in #( - . | /* | ?:[\\/]*) ;; #( - *) continue;; - esac - test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. - ac_xdir=$ac_dir/cf$$ - (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue - ac_tf1=$ac_xdir/conftest9012345 - ac_tf2=$ac_xdir/conftest9012346 - touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || - ac_cv_sys_long_file_names=no - rm -f -r "$ac_xdir" 2>/dev/null - test $ac_cv_sys_long_file_names = no && break -done -fi -{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 -echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } -if test $ac_cv_sys_long_file_names = yes; then + # Code from module stdint: -cat >>confdefs.h <<\_ACEOF -#define HAVE_LONG_FILE_NAMES 1 -_ACEOF -fi + if test $ac_cv_type_long_long_int = yes; then + HAVE_LONG_LONG_INT=1 + else + HAVE_LONG_LONG_INT=0 + fi -for ac_func in pathconf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + if test $ac_cv_type_unsigned_long_long_int = yes; then + HAVE_UNSIGNED_LONG_LONG_INT=1 + else + HAVE_UNSIGNED_LONG_LONG_INT=0 + fi -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + if test $ac_cv_header_inttypes_h = yes; then + HAVE_INTTYPES_H=1 + else + HAVE_INTTYPES_H=0 + fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_header_sys_types_h = yes; then + HAVE_SYS_TYPES_H=1 + else + HAVE_SYS_TYPES_H=0 + fi - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done -for ac_header in string.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdint_h='<'stdint.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + if test $ac_cv_header_stdint_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdint.h#{ + s#.*"\(.*/stdint.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdint_h='<'stdint.h'>' + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 +$as_echo "$gl_cv_next_stdint_h" >&6; } + fi + NEXT_STDINT_H=$gl_cv_next_stdint_h -done - + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdint.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdint_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive - if test -z "$USE_NLS"; then - echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2 - exit 1 - fi - BISON_LOCALEDIR= - BISON_USE_NLS=no - if test "$USE_NLS" = yes; then - if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then - BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir` - fi - if test -n "$BISON_LOCALEDIR"; then - USER_LINGUAS="${LINGUAS-%UNSET%}" - if test -n "$USER_LINGUAS"; then - BISON_USE_NLS=yes - fi - fi + if test $ac_cv_header_stdint_h = yes; then + HAVE_STDINT_H=1 + else + HAVE_STDINT_H=0 fi - if test $BISON_USE_NLS = yes; then -cat >>confdefs.h <<\_ACEOF -#define YYENABLE_NLS 1 -_ACEOF - fi + if test $ac_cv_header_stdint_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 +$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } +if test "${gl_cv_header_working_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_header_working_stdint_h=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include +/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ +#if !(defined WCHAR_MIN && defined WCHAR_MAX) +#error "WCHAR_MIN, WCHAR_MAX not defined in " +#endif -for ac_header in byteswap.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +#ifdef INT8_MAX +int8_t a1 = INT8_MAX; +int8_t a1min = INT8_MIN; +#endif +#ifdef INT16_MAX +int16_t a2 = INT16_MAX; +int16_t a2min = INT16_MIN; +#endif +#ifdef INT32_MAX +int32_t a3 = INT32_MAX; +int32_t a3min = INT32_MIN; +#endif +#ifdef INT64_MAX +int64_t a4 = INT64_MAX; +int64_t a4min = INT64_MIN; +#endif +#ifdef UINT8_MAX +uint8_t b1 = UINT8_MAX; +#else +typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; +#endif +#ifdef UINT16_MAX +uint16_t b2 = UINT16_MAX; +#endif +#ifdef UINT32_MAX +uint32_t b3 = UINT32_MAX; +#endif +#ifdef UINT64_MAX +uint64_t b4 = UINT64_MAX; +#endif +int_least8_t c1 = INT8_C (0x7f); +int_least8_t c1max = INT_LEAST8_MAX; +int_least8_t c1min = INT_LEAST8_MIN; +int_least16_t c2 = INT16_C (0x7fff); +int_least16_t c2max = INT_LEAST16_MAX; +int_least16_t c2min = INT_LEAST16_MIN; +int_least32_t c3 = INT32_C (0x7fffffff); +int_least32_t c3max = INT_LEAST32_MAX; +int_least32_t c3min = INT_LEAST32_MIN; +int_least64_t c4 = INT64_C (0x7fffffffffffffff); +int_least64_t c4max = INT_LEAST64_MAX; +int_least64_t c4min = INT_LEAST64_MIN; +uint_least8_t d1 = UINT8_C (0xff); +uint_least8_t d1max = UINT_LEAST8_MAX; +uint_least16_t d2 = UINT16_C (0xffff); +uint_least16_t d2max = UINT_LEAST16_MAX; +uint_least32_t d3 = UINT32_C (0xffffffff); +uint_least32_t d3max = UINT_LEAST32_MAX; +uint_least64_t d4 = UINT64_C (0xffffffffffffffff); +uint_least64_t d4max = UINT_LEAST64_MAX; +int_fast8_t e1 = INT_FAST8_MAX; +int_fast8_t e1min = INT_FAST8_MIN; +int_fast16_t e2 = INT_FAST16_MAX; +int_fast16_t e2min = INT_FAST16_MIN; +int_fast32_t e3 = INT_FAST32_MAX; +int_fast32_t e3min = INT_FAST32_MIN; +int_fast64_t e4 = INT_FAST64_MAX; +int_fast64_t e4min = INT_FAST64_MIN; +uint_fast8_t f1 = UINT_FAST8_MAX; +uint_fast16_t f2 = UINT_FAST16_MAX; +uint_fast32_t f3 = UINT_FAST32_MAX; +uint_fast64_t f4 = UINT_FAST64_MAX; +#ifdef INTPTR_MAX +intptr_t g = INTPTR_MAX; +intptr_t gmin = INTPTR_MIN; +#endif +#ifdef UINTPTR_MAX +uintptr_t h = UINTPTR_MAX; +#endif +intmax_t i = INTMAX_MAX; +uintmax_t j = UINTMAX_MAX; - ac_header_preproc=no -fi +#include /* for CHAR_BIT */ +#define TYPE_MINIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +#define TYPE_MAXIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) +struct s { + int check_PTRDIFF: + PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) + && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) + ? 1 : -1; + /* Detect bug in FreeBSD 6.0 / ia64. */ + int check_SIG_ATOMIC: + SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) + && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) + ? 1 : -1; + int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; + int check_WCHAR: + WCHAR_MIN == TYPE_MINIMUM (wchar_t) + && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) + ? 1 : -1; + /* Detect bug in mingw. */ + int check_WINT: + WINT_MIN == TYPE_MINIMUM (wint_t) + && WINT_MAX == TYPE_MAXIMUM (wint_t) + ? 1 : -1; -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ + int check_UINT8_C: + (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; + int check_UINT16_C: + (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + /* Detect bugs in OpenBSD 3.9 stdint.h. */ +#ifdef UINT8_MAX + int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; +#endif +#ifdef UINT16_MAX + int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; +#endif +#ifdef UINT32_MAX + int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; +#endif +#ifdef UINT64_MAX + int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; +#endif + int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; + int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; + int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; + int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; + int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; + int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; + int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; + int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; + int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; + int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; + int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; +}; - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +int +main () +{ -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 + ; + return 0; +} _ACEOF - - BYTESWAP_H='' +if ac_fn_c_try_compile "$LINENO"; then : + if test "$cross_compiling" = yes; then : + gl_cv_header_working_stdint_h=yes else - - BYTESWAP_H='byteswap.h' - -fi - -done - - + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include - { echo "$as_me:$LINENO: checking for a traditional french locale" >&5 -echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_fr+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif - macosx= - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_fr=none - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include +#include #include -struct tm t; -char buf[16]; -int main () { - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -#if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; +#define MVAL(macro) MVAL1(macro) +#define MVAL1(expression) #expression +static const char *macro_values[] = + { +#ifdef INT8_MAX + MVAL (INT8_MAX), #endif -#ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#ifdef INT16_MAX + MVAL (INT16_MAX), #endif - /* Check whether in the abbreviation of the second month, the second - character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only - one byte long. This excludes the UTF-8 encoding. */ - t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; - if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; - /* Check whether the decimal separator is a comma. - On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point - are nl_langinfo(RADIXCHAR) are both ".". */ - if (localeconv () ->decimal_point[0] != ',') return 1; +#ifdef INT32_MAX + MVAL (INT32_MAX), +#endif +#ifdef INT64_MAX + MVAL (INT64_MAX), +#endif +#ifdef UINT8_MAX + MVAL (UINT8_MAX), +#endif +#ifdef UINT16_MAX + MVAL (UINT16_MAX), +#endif +#ifdef UINT32_MAX + MVAL (UINT32_MAX), +#endif +#ifdef UINT64_MAX + MVAL (UINT64_MAX), +#endif + NULL + }; + +int +main () +{ + + const char **mv; + for (mv = macro_values; *mv != NULL; mv++) + { + const char *value = *mv; + /* Test whether it looks like a cast expression. */ + if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 + || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 + || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 + || strncmp (value, "((int)"/*)*/, 6) == 0 + || strncmp (value, "((signed short)"/*)*/, 15) == 0 + || strncmp (value, "((signed char)"/*)*/, 14) == 0) + return 1; + } return 0; -} + ; + return 0; +} _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the usual locale name. - if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO-8859-1 - else - # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. - if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO8859-1 - else - # Test for the HP-UX locale name. - if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.iso88591 - else - # Test for the Solaris 7 locale name. - if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr - else - # None found. - gt_cv_locale_fr=none - fi - fi - fi - fi - fi - fi - rm -fr conftest* - fi - +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_header_working_stdint_h=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5 -echo "${ECHO_T}$gt_cv_locale_fr" >&6; } - LOCALE_FR=$gt_cv_locale_fr +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 +$as_echo "$gl_cv_header_working_stdint_h" >&6; } + fi + if test "$gl_cv_header_working_stdint_h" = yes; then + STDINT_H= + else + for ac_header in sys/inttypes.h sys/bitypes.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF - { echo "$as_me:$LINENO: checking for a turkish Unicode locale" >&5 -echo $ECHO_N "checking for a turkish Unicode locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_tr_utf8+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +fi - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +done -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include -#include -struct tm t; -char buf[16]; -int main () { - /* On BeOS, locales are not implemented in libc. Rather, libintl - imitates locale dependent behaviour by looking at the environment - variables, and all locales use the UTF-8 encoding. */ -#if !defined(__BEOS__) - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -# if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -# endif -# ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -# endif - /* Check whether in the abbreviation of the eighth month, the second - character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is - two bytes long, with UTF-8 encoding. */ - t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19; - if (strftime (buf, sizeof (buf), "%b", &t) < 4 - || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f) - return 1; - /* Check whether the upper-/lowercase mappings are as expected for - Turkish. */ - if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' - || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) - return 1; -#endif - return 0; -} + if test $ac_cv_header_sys_inttypes_h = yes; then + HAVE_SYS_INTTYPES_H=1 + else + HAVE_SYS_INTTYPES_H=0 + fi -_ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the usual locale name. - if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_tr_utf8=tr_TR - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_tr_utf8=tr_TR.UTF-8 - else - # Test for the Solaris 7 locale name. - if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_tr_utf8=tr.UTF-8 - else - # None found. - gt_cv_locale_tr_utf8=none - fi - fi - fi + if test $ac_cv_header_sys_bitypes_h = yes; then + HAVE_SYS_BITYPES_H=1 else - gt_cv_locale_tr_utf8=none + HAVE_SYS_BITYPES_H=0 fi - rm -fr conftest* -fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_tr_utf8" >&5 -echo "${ECHO_T}$gt_cv_locale_tr_utf8" >&6; } - LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8 + : - : - : + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#include "; then : +else + result=unknown +fi - if test $ac_cv_func_canonicalize_file_name = no; then + eval gl_cv_bitsizeof_${gltype}=\$result +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF + eval BITSIZEOF_${GLTYPE}=\$result + done + fi + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif - gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext" +#include "; then : +else + result=unknown +fi -cat >>confdefs.h <<\_ACEOF -#define realpath rpl_realpath -_ACEOF + eval gl_cv_bitsizeof_${gltype}=\$result +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF + eval BITSIZEOF_${GLTYPE}=\$result + done - : + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 +$as_echo_n "checking whether $gltype is signed... " >&6; } +if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + result=yes +else + result=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval gl_cv_type_${gltype}_signed=\$result +fi +eval ac_res=\$gl_cv_type_${gltype}_signed + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_type_${gltype}_signed + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + if test "$result" = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGNED_${GLTYPE} 1 +_ACEOF + eval HAVE_SIGNED_${GLTYPE}=1 + else + eval HAVE_SIGNED_${GLTYPE}=0 + fi + done - : + gl_cv_type_ptrdiff_t_signed=yes + gl_cv_type_size_t_signed=no + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + extern $gltype foo; + extern $gltype1 foo; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done +fi +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result +_ACEOF + done fi -cat >>confdefs.h <<\_ACEOF -#define SIGNAL_SAFE_LIST 1 + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + + extern $gltype foo; + extern $gltype1 foo; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done +fi +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result _ACEOF + done - : + STDINT_H=stdint.h + fi + # Code from module stdio: @@ -41949,107 +40235,77 @@ -for ac_func in chown utime utimes -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + : -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdio_h='<'stdio.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdio_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi + if test $ac_cv_header_stdio_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdio.h#{ + s#.*"\(.*/stdio.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdio_h='<'stdio.h'>' + fi fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 +$as_echo "$gl_cv_next_stdio_h" >&6; } + fi + NEXT_STDIO_H=$gl_cv_next_stdio_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdio.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdio_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive - ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in" - # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments. - ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in" + GNULIB_FPRINTF=1 + GNULIB_PRINTF=1 + GNULIB_VFPRINTF=1 + GNULIB_VPRINTF=1 + GNULIB_FPUTC=1 + GNULIB_PUTC=1 + GNULIB_PUTCHAR=1 + GNULIB_FPUTS=1 + GNULIB_PUTS=1 + GNULIB_FWRITE=1 + + + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_STDIO_WRITE_FUNCS=1 @@ -42058,725 +40314,456 @@ + gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext" + + fi -{ echo "$as_me:$LINENO: checking for error_at_line" >&5 -echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } -if test "${ac_cv_lib_error_at_line+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + int main () { -error_at_line (0, 0, "", 0, "an error occurred"); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_error_at_line=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_error_at_line=no + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + eval ac_cv_have_decl_$gl_func=yes fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 -echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } -if test $ac_cv_lib_error_at_line = no; then + done + # Code from module stdlib: - gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" -fi + : - : - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdlib_h='<'stdlib.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdlib_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stdlib_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdlib.h#{ + s#.*"\(.*/stdlib.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdlib_h='<'stdlib.h'>' + fi - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 +$as_echo "$gl_cv_next_stdlib_h" >&6; } + fi + NEXT_STDLIB_H=$gl_cv_next_stdlib_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdlib.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdlib_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive + for ac_header in random.h +do : + ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default +" +if test "x$ac_cv_header_random_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RANDOM_H 1 +_ACEOF - : +fi +done + if test $ac_cv_header_random_h = yes; then + HAVE_RANDOM_H=1 + else + HAVE_RANDOM_H=0 + fi + ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include + #if HAVE_RANDOM_H + # include + #endif +" +if test "x$ac_cv_type_struct_random_data" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_RANDOM_DATA 1 +_ACEOF -for ac_func in posix_spawn -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + HAVE_STRUCT_RANDOM_DATA=0 +fi -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if HAVE_SYS_LOADAVG_H +# include #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#if HAVE_RANDOM_H +# include #endif int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + eval ac_cv_have_decl_$gl_func=yes fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then + done + + + # Code from module stpcpy: + + + + + + + + + + + + + + + for ac_func in stpcpy +do : + ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" +if test "x$ac_cv_func_stpcpy" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_STPCPY 1 _ACEOF +else + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + fi done + if test $ac_cv_func_stpcpy = no; then + HAVE_STPCPY=0 - : + : + fi - : + GNULIB_STPCPY=1 +$as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h - : + # Code from module stpncpy: -for ac_func in sigaction -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + : -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + if test $ac_cv_func_stpncpy = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stpncpy" >&5 +$as_echo_n "checking for working stpncpy... " >&6; } +if test "${gl_cv_func_stpncpy+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef __GNU_LIBRARY__ + Thanks for using GNU +#endif - { echo "$as_me:$LINENO: checking for working fcntl.h" >&5 -echo $ECHO_N "checking for working fcntl.h... $ECHO_C" >&6; } -if test "${gl_cv_header_working_fcntl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Thanks for using GNU" >/dev/null 2>&1; then : + gl_cv_func_stpncpy=yes else - if test "$cross_compiling" = yes; then - gl_cv_header_working_fcntl_h=cross-compiling + gl_cv_func_stpncpy=no +fi +rm -f conftest* + + else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - #include - #include - #ifndef O_NOATIME - #define O_NOATIME 0 - #endif - #ifndef O_NOFOLLOW - #define O_NOFOLLOW 0 - #endif - static int const constants[] = - { - O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, - O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY - }; - -int -main () -{ - int status = !constants; - { - static char const sym[] = "conftest.sym"; - if (symlink (".", sym) != 0 - || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) - status |= 32; - } - { - static char const file[] = "confdefs.h"; - int fd = open (file, O_RDONLY | O_NOATIME); - char c; - struct stat st0, st1; - if (fd < 0 - || fstat (fd, &st0) != 0 - || sleep (1) != 0 - || read (fd, &c, 1) != 1 - || close (fd) != 0 - || stat (file, &st1) != 0 - || st0.st_atime != st1.st_atime) - status |= 64; - } - return status; - ; - return 0; +#include +#include /* for strcpy */ +/* The stpncpy prototype is missing in on AIX 4. */ +extern char *stpncpy (char *dest, const char *src, size_t n); +int main () { + const char *src = "Hello"; + char dest[10]; + /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here. */ + strcpy (dest, "\377\377\377\377\377\377"); + if (stpncpy (dest, src, 2) != dest + 2) exit(1); + /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here. */ + strcpy (dest, "\377\377\377\377\377\377"); + if (stpncpy (dest, src, 5) != dest + 5) exit(1); + /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here. */ + strcpy (dest, "\377\377\377\377\377\377"); + if (stpncpy (dest, src, 7) != dest + 5) exit(1); + exit(0); } + _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_header_working_fcntl_h=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stpncpy=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -case $? in #( - 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( - 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( - 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( - *) gl_cv_header_working_fcntl_h='no';; - esac + gl_cv_func_stpncpy=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5 -echo "${ECHO_T}$gl_cv_header_working_fcntl_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stpncpy" >&5 +$as_echo "$gl_cv_func_stpncpy" >&6; } + if test $gl_cv_func_stpncpy = yes; then - case $gl_cv_header_working_fcntl_h in #( - *O_NOATIME* | no | cross-compiling) ac_val=0;; #( - *) ac_val=1;; - esac +$as_echo "#define HAVE_STPNCPY 1" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define HAVE_WORKING_O_NOATIME $ac_val -_ACEOF + else + REPLACE_STPNCPY=1 - case $gl_cv_header_working_fcntl_h in #( - *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( - *) ac_val=1;; - esac -cat >>confdefs.h <<_ACEOF -#define HAVE_WORKING_O_NOFOLLOW $ac_val -_ACEOF - : + gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext" + : + fi + else + HAVE_STPNCPY=0 - if test $gl_cv_have_include_next = yes; then - gl_cv_next_fcntl_h='<'fcntl.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_fcntl_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_fcntl_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/fcntl.h#{ - s#.*"\(.*/fcntl.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_fcntl_h='<'fcntl.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5 -echo "${ECHO_T}$gl_cv_next_fcntl_h" >&6; } - fi - NEXT_FCNTL_H=$gl_cv_next_fcntl_h + gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext" - FCNTL_H='fcntl.h' + : + fi - : + GNULIB_STPNCPY=1 +$as_echo "#define GNULIB_TEST_STPNCPY 1" >>confdefs.h + # Code from module strchrnul: - FLOAT_H= - case "$host_os" in - beos*) - FLOAT_H=float.h - : + for ac_func in strchrnul +do : + ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" +if test "x$ac_cv_func_strchrnul" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRCHRNUL 1 +_ACEOF - if test $gl_cv_have_include_next = yes; then - gl_cv_next_float_h='<'float.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_float_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test $ac_cv_header_float_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/float.h#{ - s#.*"\(.*/float.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_float_h='<'float.h'>' - fi + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5 -echo "${ECHO_T}$gl_cv_next_float_h" >&6; } - fi - NEXT_FLOAT_H=$gl_cv_next_float_h +done + if test $ac_cv_func_strchrnul = no; then + HAVE_STRCHRNUL=0 + : + fi - ;; - esac - # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. - FNMATCH_H= - { echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5 -echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6; } -if test "${ac_cv_func_fnmatch_posix+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_fnmatch_posix=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - static int - y (char const *pattern, char const *string, int flags) - { - return fnmatch (pattern, string, flags) == 0; - } - static int - n (char const *pattern, char const *string, int flags) - { - return fnmatch (pattern, string, flags) == FNM_NOMATCH; - } + GNULIB_STRCHRNUL=1 -int -main () -{ -char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; - char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; - static char const A_1[] = { 'A' - 1, 0 }; - static char const A01[] = { 'A' + 1, 0 }; - static char const a_1[] = { 'a' - 1, 0 }; - static char const a01[] = { 'a' + 1, 0 }; - static char const bs_1[] = { '\\\\' - 1, 0 }; - static char const bs01[] = { '\\\\' + 1, 0 }; - return - !(n ("a*", "", 0) - && y ("a*", "abc", 0) - && n ("d*/*1", "d/s/1", FNM_PATHNAME) - && y ("a\\\\bc", "abc", 0) - && n ("a\\\\bc", "abc", FNM_NOESCAPE) - && y ("*x", ".x", 0) - && n ("*x", ".x", FNM_PERIOD) - && y (Apat, "\\\\", 0) && y (Apat, "A", 0) - && y (apat, "\\\\", 0) && y (apat, "a", 0) - && n (Apat, A_1, 0) == ('A' < '\\\\') - && n (apat, a_1, 0) == ('a' < '\\\\') - && y (Apat, A01, 0) == ('A' < '\\\\') - && y (apat, a01, 0) == ('a' < '\\\\') - && y (Apat, bs_1, 0) == ('A' < '\\\\') - && y (apat, bs_1, 0) == ('a' < '\\\\') - && n (Apat, bs01, 0) == ('A' < '\\\\') - && n (apat, bs01, 0) == ('a' < '\\\\') - && 1); - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_fnmatch_posix=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_func_fnmatch_posix=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5 -echo "${ECHO_T}$ac_cv_func_fnmatch_posix" >&6; } -if test $ac_cv_func_fnmatch_posix = yes; then - rm -f lib/fnmatch.h -else - { echo "$as_me:$LINENO: checking whether isblank is declared" >&5 -echo $ECHO_N "checking whether isblank is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_isblank+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef isblank - (void) isblank; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_isblank=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module strcspn: - ac_cv_have_decl_isblank=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5 -echo "${ECHO_T}$ac_cv_have_decl_isblank" >&6; } -if test $ac_cv_have_decl_isblank = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISBLANK 1 -_ACEOF -else + + + + + for ac_func in strcspn +do : + ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn" +if test "x$ac_cv_func_strcspn" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISBLANK 0 +#define HAVE_STRCSPN 1 _ACEOF +else + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi +done + if test $ac_cv_func_strcspn = no; then + : + fi - : + # Code from module streq: + # Code from module strerror: + if test $REPLACE_STRERROR = 1; then @@ -42785,1093 +40772,905 @@ + gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" +cat >>confdefs.h <<_ACEOF +#define REPLACE_STRERROR $REPLACE_STRERROR +_ACEOF + fi + GNULIB_STRERROR=1 +$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h + # Code from module striconv: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveh: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveha: + # Code from module string: + # Code from module strnlen: - : + : + if test $ac_cv_have_decl_strnlen = no; then + HAVE_DECL_STRNLEN=0 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 +$as_echo_n "checking for working strnlen... " >&6; } +if test "${ac_cv_func_strnlen_working+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_strnlen_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +#define S "foobar" +#define S_LEN (sizeof S - 1) - gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" + /* At least one implementation is buggy: that of AIX 4.3 would + give strnlen (S, 1) == 3. */ -FNMATCH_H=fnmatch.h + int i; + for (i = 0; i < S_LEN + 1; ++i) + { + int expected = i <= S_LEN ? i : S_LEN; + if (strnlen (S, i) != expected) + return 1; + } + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_strnlen_working=yes +else + ac_cv_func_strnlen_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 +$as_echo "$ac_cv_func_strnlen_working" >&6; } +test $ac_cv_func_strnlen_working = no && - if test $ac_cv_func_fnmatch_posix != yes; then -cat >>confdefs.h <<\_ACEOF -#define fnmatch posix_fnmatch -_ACEOF - fi + gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" - case "$host_os" in - mingw* | pw*) - REPLACE_FOPEN=1 + if test $ac_cv_func_strnlen_working = no; then + REPLACE_STRNLEN=1 + fi + fi + if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then - gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext" - ;; - esac + gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" + : + fi - GNULIB_FOPEN=1 -cat >>confdefs.h <<\_ACEOF -#define GNULIB_FWRITEERROR 1 -_ACEOF + GNULIB_STRNLEN=1 +$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h - { echo "$as_me:$LINENO: checking for Java to native code compiler" >&5 -echo $ECHO_N "checking for Java to native code compiler... $ECHO_C" >&6; } - # Search for the gcj command or use the one provided by the user. - if test -z "$GCJ"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcj; ac_word=$2 -: -if test "${ac_cv_prog_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$GCJ"; then - ac_cv_prog_GCJ="$GCJ" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_GCJ="${ac_tool_prefix}gcj" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS + # Code from module strnlen1: + # Code from module strpbrk: -fi -fi -GCJ=$ac_cv_prog_GCJ -if test -n "$GCJ"; then - : -else - : -fi -fi -if test -z "$ac_cv_prog_GCJ"; then - ac_ct_GCJ=$GCJ - # Extract the first word of "gcj", so it can be a program name with args. -set dummy gcj; ac_word=$2 -: -if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_GCJ"; then - ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_GCJ="gcj" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS -fi -fi -ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ -if test -n "$ac_ct_GCJ"; then - : -else - : -fi - if test "x$ac_ct_GCJ" = x; then - GCJ="none" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - GCJ=$ac_ct_GCJ - fi -else - GCJ="$ac_cv_prog_GCJ" -fi - fi - # Choose GCJFLAGS or use the one provided by the user. - if test "$GCJ" != none; then - test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g" - fi - # Check whether the version is ok and it can create executables. - ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext" - if test "$GCJ" != none \ - && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \ - && ( - # See if libgcj.so is well installed and if exception handling works. - cat > conftest.java <&5 - (eval $ac_gcj_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - error=$? - if test $error = 0 && test "$cross_compiling" != yes; then - # Run conftest and catch its exit status, but silently. - error=`./conftest >/dev/null 2>&1; echo $?` - test $error = 0 || error=1 - rm -f core conftest.core - fi - rm -f conftest.java conftest$ac_exeext - exit $error - ); then - : - else - GCJ=none - fi - { echo "$as_me:$LINENO: result: $GCJ" >&5 -echo "${ECHO_T}$GCJ" >&6; } - if test "$GCJ" != none; then - HAVE_GCJ=1 - else - HAVE_GCJ= - fi + for ac_func in strpbrk +do : + ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" +if test "x$ac_cv_func_strpbrk" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRPBRK 1 +_ACEOF + +else + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + +fi +done + + if test $ac_cv_func_strpbrk = no; then + HAVE_STRPBRK=0 + : + fi + GNULIB_STRPBRK=1 +$as_echo "#define GNULIB_TEST_STRPBRK 1" >>confdefs.h + # Code from module strstr: -for ac_func in getdelim -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $REPLACE_STRSTR = 0; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5 +$as_echo_n "checking whether strstr works in linear time... " >&6; } +if test "${gl_cv_func_strstr_linear+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2) + Lucky user + #endif +#endif +#ifdef __CYGWIN__ + #include + #if CYGWIN_VERSION_DLL_MAJOR >= 1007 + Lucky user + #endif #endif -#undef $ac_func +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky user" >/dev/null 2>&1; then : + gl_cv_func_strstr_linear=yes +else + gl_cv_func_strstr_linear="guessing no" +fi +rm -f conftest* + -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include /* for signal */ +#include /* for memmem */ +#include /* for malloc */ +#include /* for alarm */ int main () { -return $ac_func (); +size_t m = 1000000; + char *haystack = (char *) malloc (2 * m + 2); + char *needle = (char *) malloc (m + 2); + void *result = 0; + /* Failure to compile this test due to missing alarm is okay, + since all such platforms (mingw) also have quadratic strstr. */ + signal (SIGALRM, SIG_DFL); + alarm (5); + /* Check for quadratic performance. */ + if (haystack && needle) + { + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = 0; + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = 0; + result = strstr (haystack, needle); + } + return !result; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_strstr_linear=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_strstr_linear=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5 +$as_echo "$gl_cv_func_strstr_linear" >&6; } + if test "$gl_cv_func_strstr_linear" != yes; then + REPLACE_STRSTR=1 + fi + fi + if test $REPLACE_STRSTR = 1; then - : + gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" - if test $ac_cv_func_getdelim = no; then + fi + # Code from module strstr-simple: -for ac_func in flockfile funlockfile -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_STRSTR=1 -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext" fi - if test $ac_cv_have_decl_getdelim = no; then - HAVE_DECL_GETDELIM=0 - fi - GNULIB_GETDELIM=1 + GNULIB_STRSTR=1 +$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h + # Code from module strtol: - : - gl_getline_needs_run_time_check=no - { echo "$as_me:$LINENO: checking for getline" >&5 -echo $ECHO_N "checking for getline... $ECHO_C" >&6; } -if test "${ac_cv_func_getline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + for ac_func in strtol +do : + ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" +if test "x$ac_cv_func_strtol" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRTOL 1 +_ACEOF + else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + +fi +done + + + + # Code from module strtoul: + + + + + + + + + + for ac_func in strtoul +do : + ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" +if test "x$ac_cv_func_strtoul" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STRTOUL 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define getline to an innocuous variant, in case declares getline. - For example, HP-UX 11i declares gettimeofday. */ -#define getline innocuous_getline -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getline (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +else -#ifdef __STDC__ -# include -#else -# include -#endif + gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + +fi +done + + + + # Code from module styled-ostream: + # Code from module sys_select: -#undef getline -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char getline (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_getline || defined __stub___getline -choke me -#endif + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 +$as_echo_n "checking whether is self-contained... " >&6; } +if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return getline (); +struct timeval b; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_getline=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_getline=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 -echo "${ECHO_T}$ac_cv_func_getline" >&6; } -if test $ac_cv_func_getline = yes; then - gl_getline_needs_run_time_check=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_sys_select_h_selfcontained=yes else - am_cv_func_working_getline=no + gl_cv_header_sys_select_h_selfcontained=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $gl_cv_header_sys_select_h_selfcontained = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int memset; int bzero; + ; + return 0; +} - if test $gl_getline_needs_run_time_check = yes; then - { echo "$as_me:$LINENO: checking for working getline function" >&5 -echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; } -if test "${am_cv_func_working_getline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - echo fooN |tr -d '\012'|tr N '\012' > conftest.data - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include +int +main () +{ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ >= 2) - Lucky GNU user - #endif -#endif + #undef memset + #define memset nonexistent_memset + extern void *memset (void *, int, unsigned long); + #undef bzero + #define bzero nonexistent_bzero + extern void bzero (void *, unsigned long); + fd_set fds; + FD_ZERO (&fds); + + ; + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - am_cv_func_working_getline=yes +if ac_fn_c_try_link "$LINENO"; then : + else - am_cv_func_working_getline=no + gl_cv_header_sys_select_h_selfcontained=no fi -rm -f conftest* +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 +$as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } -# include -# include -# include - int main () - { /* Based on a test program from Karl Heuer. */ - char *line = NULL; - size_t siz = 0; - int len; - FILE *in = fopen ("./conftest.data", "r"); - if (!in) - return 1; - len = getline (&line, &siz, in); - exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); - } + : -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_working_getline=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -am_cv_func_working_getline=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5 -echo "${ECHO_T}$am_cv_func_working_getline" >&6; } - fi - if test $ac_cv_have_decl_getline = no; then - HAVE_DECL_GETLINE=0 - fi - if test $am_cv_func_working_getline = no; then - REPLACE_GETLINE=1 + : + + - gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_select_h='<'sys/select.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_select_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_sys_select_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/select.h#{ + s#.*"\(.*/sys/select.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_select_h='<'sys/select.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 +$as_echo "$gl_cv_next_sys_select_h" >&6; } + fi + NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/select.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_select_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive + if test $ac_cv_header_sys_select_h = yes; then + HAVE_SYS_SELECT_H=1 + else + HAVE_SYS_SELECT_H=0 + fi + : -for ac_func in getdelim -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +fi -#ifdef __STDC__ -# include -#else -# include -#endif +done -#undef $ac_func + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me + + + + for gl_func in select; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include #endif +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" - + eval ac_cv_have_decl_$gl_func=yes fi -done - - - - : - - + done + # Code from module sys_socket: - if test $ac_cv_func_getdelim = no; then -for ac_func in flockfile funlockfile -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 +$as_echo_n "checking whether is self-contained... " >&6; } +if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_sys_socket_h_selfcontained=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_header_sys_socket_h_selfcontained=no fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 +$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; } + if test $gl_cv_header_sys_socket_h_selfcontained = yes; then + for ac_func in shutdown +do : + ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" +if test "x$ac_cv_func_shutdown" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_SHUTDOWN 1 _ACEOF fi done + if test $ac_cv_func_shutdown = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines the SHUT_* macros" >&5 +$as_echo_n "checking whether defines the SHUT_* macros... " >&6; } +if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_sys_socket_h_shut=yes +else + gl_cv_header_sys_socket_h_shut=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_have_decl_getdelim = no; then - HAVE_DECL_GETDELIM=0 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 +$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } + if test $gl_cv_header_sys_socket_h_shut = no; then + SYS_SOCKET_H='sys/socket.h' + fi + fi fi + # We need to check for ws2tcpip.h now. - fi - GNULIB_GETLINE=1 + : - if test -n "$GETOPT_H"; then + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_socket_h='<'sys/socket.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_socket_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_sys_socket_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/socket.h#{ + s#.*"\(.*/sys/socket.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_socket_h='<'sys/socket.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 +$as_echo "$gl_cv_next_sys_socket_h" >&6; } + fi + NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h - gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/socket.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_socket_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive + if test $ac_cv_header_sys_socket_h = yes; then + HAVE_SYS_SOCKET_H=1 + HAVE_WS2TCPIP_H=0 + else + HAVE_SYS_SOCKET_H=0 + for ac_header in ws2tcpip.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" +if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WS2TCPIP_H 1 +_ACEOF +fi +done + if test $ac_cv_header_ws2tcpip_h = yes; then + HAVE_WS2TCPIP_H=1 + else + HAVE_WS2TCPIP_H=0 + fi + fi - gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" + ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif - GETOPT_H=getopt.h +" +if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then : -cat >>confdefs.h <<\_ACEOF -#define __GETOPT_PREFIX rpl_ +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_SOCKADDR_STORAGE 1 _ACEOF +fi +ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif +" +if test "x$ac_cv_type_sa_family_t" = x""yes; then : - - : - - - +cat >>confdefs.h <<_ACEOF +#define HAVE_SA_FAMILY_T 1 +_ACEOF +fi + if test $ac_cv_type_struct_sockaddr_storage = no; then + HAVE_STRUCT_SOCKADDR_STORAGE=0 + fi + if test $ac_cv_type_sa_family_t = no; then + HAVE_SA_FAMILY_T=0 + fi -fi + : + if test $ac_cv_header_sys_socket_h != yes; then + for ac_header in winsock2.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" +if test "x$ac_cv_header_winsock2_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WINSOCK2_H 1 +_ACEOF - : +fi +done + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi - { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5 -echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; } -if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - struct timeval c; + +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include +#endif +#include int main () { - - int (*f) (struct timeval *restrict, void *restrict) = gettimeofday; - int x = f (&c, 0); - return !(x | c.tv_sec | c.tv_usec); - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_gettimeofday_posix_signature=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func_gettimeofday_posix_signature=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5 -echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; } - - - - - { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5 -echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; } -if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - gl_cv_func_gettimeofday_clobber=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - #include - #include - #include -int -main () -{ + eval ac_cv_have_decl_$gl_func=yes +fi + done - time_t t = 0; - struct tm *lt; - struct tm saved_lt; - struct timeval tv; - lt = localtime (&t); - saved_lt = *lt; - gettimeofday (&tv, NULL); - return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_gettimeofday_clobber=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -gl_cv_func_gettimeofday_clobber=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + # Code from module sys_stat: -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5 -echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; } - if test $gl_cv_func_gettimeofday_clobber = yes; then - REPLACE_GETTIMEOFDAY=1 - SYS_TIME_H=sys/time.h @@ -43880,3310 +41679,2125 @@ - gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" + : -for ac_header in sys/timeb.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_stat_h='<'sys/stat.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_stat_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_sys_stat_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/stat.h#{ + s#.*"\(.*/sys/stat.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_stat_h='<'sys/stat.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 +$as_echo "$gl_cv_next_sys_stat_h" >&6; } + fi + NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/stat.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_stat_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include + #include +" +if test "x$ac_cv_type_nlink_t" = x""yes; then : - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +$as_echo "#define nlink_t int" >>confdefs.h fi -done -for ac_func in _ftime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done + done -cat >>confdefs.h <<\_ACEOF -#define gmtime rpl_gmtime -_ACEOF + # Code from module sys_time: -cat >>confdefs.h <<\_ACEOF -#define localtime rpl_localtime -_ACEOF + # Code from module sys_wait: -cat >>confdefs.h <<\_ACEOF -#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1 -_ACEOF - fi - if test $gl_cv_func_gettimeofday_posix_signature != yes; then - REPLACE_GETTIMEOFDAY=1 - SYS_TIME_H=sys/time.h - if test $gl_cv_func_gettimeofday_clobber != yes; then + : - gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" -for ac_header in sys/timeb.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test $gl_cv_have_include_next = yes; then + gl_cv_next_sys_wait_h='<'sys/wait.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_wait_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_sys_wait_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> +#include + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/wait.h#{ + s#.*"\(.*/sys/wait.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_wait_h='<'sys/wait.h'>' + fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5 +$as_echo "$gl_cv_next_sys_wait_h" >&6; } + fi + NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/wait.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_wait_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + # Code from module tempname: -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -for ac_func in _ftime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi + gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext" -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + : - fi + # Code from module term-ostream: + + + + # Code from module term-styled-ostream: + # Code from module terminfo: + + + if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext" + fi + case "$gl_cv_terminfo" in + no*) + case "$gl_cv_termcap" in + no*) - am_save_CPPFLAGS="$CPPFLAGS" - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done + ;; + esac + ;; + esac + # Code from module terminfo-h: + # Code from module threadlib: - { echo "$as_me:$LINENO: checking for iconv" >&5 -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi + # Code from module time: -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi + # Code from module tls: -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -echo "${ECHO_T}$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for working iconv" >&5 -echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - if test "$cross_compiling" = yes; then - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module tmpdir: -#include -#include -int main () -{ - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static const char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - return 1; - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - return 1; - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; - return 0; -} + for ac_func in __secure_getenv +do : + ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" +if test "x$ac_cv_func___secure_getenv" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE___SECURE_GETENV 1 _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_iconv_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -am_cv_func_iconv_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi +done - LIBS="$am_save_LIBS" + # Code from module trim: + # Code from module uniconv/base: -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 -echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - fi - if test "$am_cv_lib_iconv" = yes; then - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBICONV" >&5 -echo "${ECHO_T}$LIBICONV" >&6; } + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_UNICONV_H='uniconv.h' else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= + LIBUNISTRING_UNICONV_H= fi + # Code from module uniconv/u8-conv-from-enc: - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for iconv declaration" >&5 -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } - if test "${am_cv_proto_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if { test "$HAVE_LIBUNISTRING" != yes \ + || { -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - am_cv_proto_iconv_arg1="const" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" + + + } + }; then + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE= + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#' +else + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#' + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE= fi - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -echo "${ECHO_T}${ac_t:- - }$am_cv_proto_iconv" >&6; } -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF + # Code from module unilbrk/base: - fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - : + } + }; then + LIBUNISTRING_UNILBRK_H='unilbrk.h' + else + LIBUNISTRING_UNILBRK_H= + fi + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: - if test $gl_cv_have_include_next = yes; then - gl_cv_next_iconv_h='<'iconv.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_iconv_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test $ac_cv_header_iconv_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/iconv.h#{ - s#.*"\(.*/iconv.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_iconv_h='<'iconv.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5 -echo "${ECHO_T}$gl_cv_next_iconv_h" >&6; } - fi - NEXT_ICONV_H=$gl_cv_next_iconv_h + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + - ICONV_H= + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#' +else + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE= +fi + # Code from module unilbrk/u8-width-linebreaks: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test "$am_cv_func_iconv" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include - #if defined _LIBICONV_VERSION || defined __GLIBC__ - gnu_iconv - #endif + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "gnu_iconv" >/dev/null 2>&1; then - gl_func_iconv_gnu=yes + + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#' else - gl_func_iconv_gnu=no + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE= fi -rm -f conftest* - if test $gl_func_iconv_gnu = no; then - iconv_flavor= - case "$host_os" in - aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; - irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; - hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; - osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; - esac - if test -n "$iconv_flavor"; then -cat >>confdefs.h <<_ACEOF -#define ICONV_FLAVOR $iconv_flavor -_ACEOF + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: - REPLACE_ICONV_OPEN=1 + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#' +else + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE= +fi - ICONV_H='iconv.h' - fi - fi - fi + # Code from module uniname/base: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5 -echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; } -if test "${gl_cv_c_inline_effective+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_c_inline = no; then - gl_cv_c_inline_effective=no - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -int -main () -{ -#ifdef __NO_INLINE__ - #error "inline is not effective" - #endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_c_inline_effective=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_c_inline_effective=no -fi + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5 -echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; } - if test $gl_cv_c_inline_effective = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_INLINE 1 -_ACEOF + } + }; then + LIBUNISTRING_UNINAME_H='uniname.h' + else + LIBUNISTRING_UNINAME_H= fi - { echo "$as_me:$LINENO: checking whether to use Java" >&5 -echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; } - # Check whether --enable-java was given. -if test "${enable_java+set}" = set; then - enableval=$enable_java; JAVA_CHOICE="$enableval" -else - JAVA_CHOICE=yes -fi - - { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5 -echo "${ECHO_T}$JAVA_CHOICE" >&6; } - if test "$JAVA_CHOICE" = yes; then - # Check whether --enable-native-java was given. -if test "${enable_native_java+set}" = set; then - enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode -fi + # Code from module uniname/uniname: - fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - # You need to invoke gt_JAVACOMP yourself, possibly with arguments. - ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in" - # You need to invoke gt_JAVAEXEC yourself, possibly with arguments. - ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in" + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - { echo "$as_me:$LINENO: checking whether included libcroco is requested" >&5 -echo $ECHO_N "checking whether included libcroco is requested... $ECHO_C" >&6; } -# Check whether --with-included-libcroco was given. -if test "${with_included_libcroco+set}" = set; then - withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval + } + }; then + LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE= + LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE='#' else - gl_cv_libcroco_force_included=no + LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE='#' + LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE= fi - { echo "$as_me:$LINENO: result: $gl_cv_libcroco_force_included" >&5 -echo "${ECHO_T}$gl_cv_libcroco_force_included" >&6; } - gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included" - LIBCROCO= - LTLIBCROCO= - INCCROCO= - if test "$gl_cv_libcroco_use_included" != yes; then - if test "${gl_cv_libcroco+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + # Code from module unistd: - gl_cv_libcroco=no - gl_cv_LIBCROCO= - gl_cv_LTLIBCROCO= - gl_cv_INCCROCO= - gl_save_LIBS="$LIBS" - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + : -# Check whether --with-libcroco-0.6-prefix was given. -if test "${with_libcroco_0_6_prefix+set}" = set; then - withval=$with_libcroco_0_6_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi + if test $gl_cv_have_include_next = yes; then + gl_cv_next_unistd_h='<'unistd.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_unistd_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - LIBCROCO_0_6= - LTLIBCROCO_0_6= - INCCROCO_0_6= - LIBCROCO_0_6_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='croco-0.6 glib-2.0' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so + if test $ac_cv_header_unistd_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/unistd.h#{ + s#.*"\(.*/unistd.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi + gl_cv_next_unistd_h='<'unistd.h'>' fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBCROCO_0_6; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 +$as_echo "$gl_cv_next_unistd_h" >&6; } + fi + NEXT_UNISTD_H=$gl_cv_next_unistd_h - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBCROCO_0_6; do + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'unistd.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_unistd_h + fi + NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so" - else - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a" - else - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBCROCO_0_6_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCCROCO_0_6; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBCROCO_0_6; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + : - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBCROCO_0_6; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep" - LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep" - ;; - esac - done - fi - else - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name" - LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir" - done + + + if test $ac_cv_header_unistd_h = yes; then + HAVE_UNISTD_H=1 + else + HAVE_UNISTD_H=0 fi - LIBS="$gl_save_LIBS $LIBCROCO_0_6" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +/* Some systems declare various items in the wrong headers. */ +#ifndef __GLIBC__ +# include +# include +# include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif +#endif + int main () { -const char *version = LIBCROCO_VERSION; return !version; +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libcroco=yes - gl_cv_LIBCROCO="$LIBCROCO_0_6" - gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" - +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + eval ac_cv_have_decl_$gl_func=yes fi + done -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libcroco" != yes; then - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCCROCO_0_6" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -const char *version = LIBCROCO_VERSION; return !version; - ; - return 0; -} + + # Code from module unistd-safer: + + + : + + + + + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext" + + + # Code from module unistr/base: + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2 + } + } + } + + + + + } + }; then + LIBUNISTRING_UNISTR_H='unistr.h' + else + LIBUNISTRING_UNISTR_H= + fi + + + # Code from module unistr/u16-mbtouc: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U16_MBTOUC 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libcroco=yes - gl_cv_LIBCROCO="$LIBCROCO_0_6" - gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" - gl_cv_INCCROCO="$INCCROCO_0_6" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libcroco" != yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -const char *version = LIBCROCO_VERSION; return !version; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + # Code from module unistr/u8-check: + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#' else + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE= +fi - : + # Code from module unistr/u8-mblen: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | -sed -n '\#/libcroco-0.6/libcroco/libcroco-config.h#{ - s#.*"\(.*/libcroco-0.6/libcroco/libcroco-config.h\)".*#\1# - s#^/[^/]#//&# - p - q -}'` - fi + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE= fi -{ echo "$as_me:$LINENO: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5 -echo "${ECHO_T}$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; } + + + # Code from module unistr/u8-mbtouc: + + cat >>confdefs.h <<_ACEOF -#define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" +#define GNULIB_UNISTR_U8_MBTOUC 1 _ACEOF - libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'` - if test -d "$libcroco_include_dir"; then - gl_cv_libcroco=yes - gl_cv_LIBCROCO="$LIBCROCO_0_6" - gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6" - gl_cv_INCCROCO="-I$libcroco_include_dir" - fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gl_save_CPPFLAGS" - fi - LIBS="$gl_save_LIBS" + # Code from module unistr/u8-mbtouc-unsafe: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1 +_ACEOF + + + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE= fi - { echo "$as_me:$LINENO: checking for libcroco" >&5 -echo $ECHO_N "checking for libcroco... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libcroco" >&5 -echo "${ECHO_T}$gl_cv_libcroco" >&6; } - if test $gl_cv_libcroco = yes; then - LIBCROCO="$gl_cv_LIBCROCO" - LTLIBCROCO="$gl_cv_LTLIBCROCO" - INCCROCO="$gl_cv_INCCROCO" - else - gl_cv_libcroco_use_included=yes - fi - fi + # Code from module unistr/u8-mbtoucr: - { echo "$as_me:$LINENO: checking whether to use the included libcroco" >&5 -echo $ECHO_N "checking whether to use the included libcroco... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libcroco_use_included" >&5 -echo "${ECHO_T}$gl_cv_libcroco_use_included" >&6; } +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_MBTOUCR 1 +_ACEOF - if test "$gl_cv_libcroco_use_included" = yes; then - INCLUDED_LIBCROCO_TRUE= - INCLUDED_LIBCROCO_FALSE='#' + + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#' else - INCLUDED_LIBCROCO_TRUE='#' - INCLUDED_LIBCROCO_FALSE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE= fi + # Code from module unistr/u8-prev: - { echo "$as_me:$LINENO: checking whether included glib is requested" >&5 -echo $ECHO_N "checking whether included glib is requested... $ECHO_C" >&6; } -# Check whether --with-included-glib was given. -if test "${with_included_glib+set}" = set; then - withval=$with_included_glib; gl_cv_libglib_force_included=$withval + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#' else - gl_cv_libglib_force_included=no + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE= fi - { echo "$as_me:$LINENO: result: $gl_cv_libglib_force_included" >&5 -echo "${ECHO_T}$gl_cv_libglib_force_included" >&6; } - gl_cv_libglib_use_included="$gl_cv_libglib_force_included" - LIBGLIB= - LTLIBGLIB= - INCGLIB= - if test "$gl_cv_libglib_use_included" != yes; then - if test "${gl_cv_libglib+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + # Code from module unistr/u8-uctomb: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_UCTOMB 1 +_ACEOF + + + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#' else + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE= +fi - gl_cv_libglib=no - gl_cv_LIBGLIB= - gl_cv_LTLIBGLIB= - gl_cv_INCGLIB= - gl_save_LIBS="$LIBS" + # Code from module unitypes: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -# Check whether --with-libglib-2.0-prefix was given. -if test "${with_libglib_2_0_prefix+set}" = set; then - withval=$with_libglib_2_0_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" + } + }; then + LIBUNISTRING_UNITYPES_H='unitypes.h' + else + LIBUNISTRING_UNITYPES_H= + fi - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + # Code from module uniwidth/base: + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi + + + } + }; then + LIBUNISTRING_UNIWIDTH_H='uniwidth.h' + else + LIBUNISTRING_UNIWIDTH_H= + fi + + + # Code from module uniwidth/width: + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' +else + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= fi - LIBGLIB_2_0= - LTLIBGLIB_2_0= - INCGLIB_2_0= - LIBGLIB_2_0_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='glib-2.0 ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + # Code from module unlocked-io: + + +$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + + + + + : + + + - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so" - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a" - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBGLIB_2_0_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCGLIB_2_0; do + : - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBGLIB_2_0; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep" - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep" - ;; - esac - done - fi - else - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name" - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir" - done - fi + # Code from module unsetenv: - LIBS="$gl_save_LIBS $LIBGLIB_2_0" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -g_string_new ("foo"); - ; - return 0; -} + + for ac_func in unsetenv +do : + ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" +if test "x$ac_cv_func_unsetenv" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UNSETENV 1 _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +fi +done + if test $ac_cv_func_unsetenv = no; then + HAVE_UNSETENV=0 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libglib" != yes; then - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + + gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext" + + + + + : + + + + + + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 +$as_echo_n "checking for unsetenv() return type... " >&6; } +if test "${gt_cv_func_unsetenv_ret+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +int unsetenv (const char *name); +#else +int unsetenv(); +#endif + int main () { -g_string_new ("foo"); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" - gl_cv_INCGLIB="$INCGLIB_2_0" - +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_func_unsetenv_ret='int' else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_func_unsetenv_ret='void' +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 +$as_echo "$gt_cv_func_unsetenv_ret" >&6; } + if test $gt_cv_func_unsetenv_ret = 'void'; then +$as_echo "#define VOID_UNSETENV 1" >>confdefs.h -fi + REPLACE_UNSETENV=1 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libglib" != yes; then - if test -n "$LIBGLIB_2_0_PREFIX"; then - CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext" + + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv works on duplicates" >&5 +$as_echo_n "checking whether unsetenv works on duplicates... " >&6; } +if test "${gl_cv_func_unsetenv_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_unsetenv_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + + #include + int main () { -g_string_new ("foo"); + + char entry[] = "b=2"; + if (putenv ((char *) "a=1")) return 1; + if (putenv (entry)) return 2; + entry[0] = 'a'; + unsetenv ("a"); + if (getenv ("a")) return 3; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libglib=yes - gl_cv_LIBGLIB="$LIBGLIB_2_0" - gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0" - gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_unsetenv_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + gl_cv_func_unsetenv_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 +$as_echo "$gl_cv_func_unsetenv_works" >&6; } + if test "$gl_cv_func_unsetenv_works" != yes; then + REPLACE_UNSETENV=1 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - fi - CPPFLAGS="$gl_save_CPPFLAGS" - fi - LIBS="$gl_save_LIBS" -fi - { echo "$as_me:$LINENO: checking for glib" >&5 -echo $ECHO_N "checking for glib... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libglib" >&5 -echo "${ECHO_T}$gl_cv_libglib" >&6; } - if test $gl_cv_libglib = yes; then - LIBGLIB="$gl_cv_LIBGLIB" - LTLIBGLIB="$gl_cv_LTLIBGLIB" - INCGLIB="$gl_cv_INCGLIB" - else - gl_cv_libglib_use_included=yes + + + + + + gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext" + fi fi - { echo "$as_me:$LINENO: checking whether to use the included glib" >&5 -echo $ECHO_N "checking whether to use the included glib... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libglib_use_included" >&5 -echo "${ECHO_T}$gl_cv_libglib_use_included" >&6; } - if test "$gl_cv_libglib_use_included" = yes; then - LIBGLIB_H= - LIBGLIB_H="$LIBGLIB_H glib.h" - LIBGLIB_H="$LIBGLIB_H glibconfig.h" - LIBGLIB_H="$LIBGLIB_H glib/ghash.h" - LIBGLIB_H="$LIBGLIB_H glib/glist.h" - LIBGLIB_H="$LIBGLIB_H glib/gprimes.h" - LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h" - LIBGLIB_H="$LIBGLIB_H glib/gstring.h" - LIBGLIB_H="$LIBGLIB_H glib/gtypes.h" + GNULIB_UNSETENV=1 + + + +$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h + + + + # Code from module unused-parameter: + # Code from module vasnprintf: + + + : + + + + + + if test $ac_cv_func_vasnprintf = no; then + + + : + + + + + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" + + if test $ac_cv_func_vasnprintf = yes; then + +$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h + + fi + + + + + + + + -for ac_header in unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes + ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : + else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no +$as_echo "#define ptrdiff_t long" >>confdefs.h + + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then + fi + + # Code from module vasprintf: + + for ac_func in vasprintf +do : + ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" +if test "x$ac_cv_func_vasprintf" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_VASPRINTF 1 _ACEOF fi - done - else - LIBGLIB_H= - fi + if test $ac_cv_func_vasprintf = no; then - if test "$gl_cv_libglib_use_included" = yes; then - INCLUDED_LIBGLIB_TRUE= - INCLUDED_LIBGLIB_FALSE='#' -else - INCLUDED_LIBGLIB_TRUE='#' - INCLUDED_LIBGLIB_FALSE= -fi - { echo "$as_me:$LINENO: checking whether included libxml is requested" >&5 -echo $ECHO_N "checking whether included libxml is requested... $ECHO_C" >&6; } -# Check whether --with-included-libxml was given. -if test "${with_included_libxml+set}" = set; then - withval=$with_included_libxml; gl_cv_libxml_force_included=$withval -else - gl_cv_libxml_force_included=no -fi - { echo "$as_me:$LINENO: result: $gl_cv_libxml_force_included" >&5 -echo "${ECHO_T}$gl_cv_libxml_force_included" >&6; } + gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext" - gl_cv_libxml_use_included="$gl_cv_libxml_force_included" - LIBXML= - LTLIBXML= - INCXML= - if test "$gl_cv_libxml_use_included" != yes; then - if test "${gl_cv_libxml+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_libxml=no - gl_cv_LIBXML= - gl_cv_LTLIBXML= - gl_cv_INCXML= - gl_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" + gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext" -# Check whether --with-libxml2-prefix was given. -if test "${with_libxml2_prefix+set}" = set; then - withval=$with_libxml2_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then + if test $ac_cv_func_vasprintf = yes; then + REPLACE_VASPRINTF=1 + else + HAVE_VASPRINTF=0 + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -fi - LIBXML2= - LTLIBXML2= - INCXML2= - LIBXML2_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='xml2 ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBXML2; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBXML2; do + fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so" - else - LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a" - else - LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBXML2_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCXML2; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBXML2; do + GNULIB_VASPRINTF=1 - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBXML2; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBXML2="${LIBXML2}${LIBXML2:+ }$dep" - LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep" - ;; - esac - done - fi - else - LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name" - LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBXML2="${LIBXML2}${LIBXML2:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBXML2="${LIBXML2}${LIBXML2:+ }$flag" - done - fi + + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" + + + + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" + + # Code from module verify: + # Code from module vsnprintf: + + + gl_cv_func_vsnprintf_usable=no + for ac_func in vsnprintf +do : + ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" +if test "x$ac_cv_func_vsnprintf" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VSNPRINTF 1 +_ACEOF + +fi +done + + if test $ac_cv_func_vsnprintf = yes; then + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 +$as_echo_n "checking whether snprintf respects a size of 1... " >&6; } +if test "${gl_cv_func_snprintf_size1+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + gl_cv_func_snprintf_size1="guessing yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +int main() +{ + static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; + snprintf (buf, 1, "%d", 12345); + return buf[1] != 'E'; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_snprintf_size1=yes +else + gl_cv_func_snprintf_size1=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 +$as_echo "$gl_cv_func_snprintf_size1" >&6; } + + case "$gl_cv_func_snprintf_size1" in + *yes) + gl_cv_func_vsnprintf_usable=yes + ;; + esac fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir" - done + if test $gl_cv_func_vsnprintf_usable = no; then + + + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext" + + if test $ac_cv_func_vsnprintf = yes; then + REPLACE_VSNPRINTF=1 fi + : - LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + fi + + : + + + + + + if test $ac_cv_have_decl_vsnprintf = no; then + HAVE_DECL_VSNPRINTF=0 + fi + + + + + GNULIB_VSNPRINTF=1 + + + +$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h + + + + # Code from module wait-process: + + + + for ac_func in waitid +do : + ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid" +if test "x$ac_cv_func_waitid" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITID 1 +_ACEOF + +fi +done + + + +for ac_func in waitpid +do : + ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" +if test "x$ac_cv_func_waitpid" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_WAITPID 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5 +$as_echo_n "checking for union wait... " >&6; } +if test "${gt_cv_union_wait+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include int main () { -xmlCheckVersion (0); +union wait status; int pid; pid = wait (&status); +#ifdef WEXITSTATUS +/* Some POSIXoid systems have both the new-style macros and the old + union wait type, and they do not work together. If union wait + conflicts with WEXITSTATUS et al, we don't want to use it at all. */ +if (WEXITSTATUS (status) != 0) pid = -1; +#ifdef WTERMSIG +/* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ +-- blow chunks here -- +#endif +#endif +#ifdef HAVE_WAITPID +/* Make sure union wait works with waitpid. */ +pid = waitpid (-1, &status, 0); +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libxml=yes - gl_cv_LIBXML="$LIBXML2 $LIBICONV" - gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" - +if ac_fn_c_try_link "$LINENO"; then : + gt_cv_union_wait=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gt_cv_union_wait=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + +if test "$gt_cv_union_wait" = yes; then +$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_union_wait" >&5 +$as_echo "$gt_cv_union_wait" >&6; } + + # Code from module warn-on-use: + # Code from module wchar: + + + + + : + + + + + + + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_wchar_h='<'wchar.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wchar_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_wchar_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libxml" != yes; then - gl_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCXML2" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wchar.h#{ + s#.*"\(.*/wchar.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wchar_h='<'wchar.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 +$as_echo "$gl_cv_next_wchar_h" >&6; } + fi + NEXT_WCHAR_H=$gl_cv_next_wchar_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wchar.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wchar_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive + + + + if test $ac_cv_header_wchar_h = yes; then + HAVE_WCHAR_H=1 + else + HAVE_WCHAR_H=0 + fi + + + + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + + + + for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +/* Some systems require additional headers. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif +#include + int main () { -xmlCheckVersion (0); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_libxml=yes - gl_cv_LIBXML="$LIBXML2 $LIBICONV" - gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" - gl_cv_INCXML="$INCXML2" - +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + eval ac_cv_have_decl_$gl_func=yes fi + done -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$gl_cv_libxml" != yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + # Code from module wctype: + + + + + : + + + + + + if test $ac_cv_func_iswcntrl = yes; then + HAVE_ISWCNTRL=1 + else + HAVE_ISWCNTRL=0 + fi + + + : + + + + + + if test $ac_cv_func_iswblank = yes; then + HAVE_ISWBLANK=1 + else + HAVE_ISWBLANK=0 + fi + + + : + + + + + + + + + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + + + if test $ac_cv_header_wctype_h = yes; then + if test $ac_cv_func_iswcntrl = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 +$as_echo_n "checking whether iswcntrl works... " >&6; } +if test "${gl_cv_func_iswcntrl_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. + #endif int main () { -xmlCheckVersion (0); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_absolute_libxml2_libxml_xmlversion_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes +else + gl_cv_func_iswcntrl_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #include + #include + #include + #include + int main () { return iswprint ('x') == 0; } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes else + gl_cv_func_iswcntrl_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 +$as_echo "$gl_cv_func_iswcntrl_works" >&6; } + fi + + + : - if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_wctype_h='<'wctype.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wctype_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_wctype_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + _ACEOF - gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | -sed -n '\#/libxml2/libxml/xmlversion.h#{ - s#.*"\(.*/libxml2/libxml/xmlversion.h\)".*#\1# - s#^/[^/]#//&# - p - q -}'` - fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wctype.h#{ + s#.*"\(.*/wctype.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wctype_h='<'wctype.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 +$as_echo "$gl_cv_next_wctype_h" >&6; } + fi + NEXT_WCTYPE_H=$gl_cv_next_wctype_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wctype.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wctype_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive + + + + HAVE_WCTYPE_H=1 + else + HAVE_WCTYPE_H=0 + fi + + + if test "$gl_cv_func_iswcntrl_works" = no; then + REPLACE_ISWCNTRL=1 + else + REPLACE_ISWCNTRL=0 + fi + + + # Code from module wcwidth: + + + + + + + + + + : + + + + + + + : + + + + + + ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + +" +if test "x$ac_cv_have_decl_wcwidth" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -{ echo "$as_me:$LINENO: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5 -echo "${ECHO_T}$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; } + cat >>confdefs.h <<_ACEOF -#define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h" +#define HAVE_DECL_WCWIDTH $ac_have_decl _ACEOF + if test $ac_cv_have_decl_wcwidth != yes; then + HAVE_DECL_WCWIDTH=0 + fi - libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` - if test -d "$libxml2_include_dir"; then - gl_cv_libxml=yes - gl_cv_LIBXML="$LIBXML2 $LIBICONV" - gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" - gl_cv_INCXML="-I$libxml2_include_dir" - fi - + if test $ac_cv_func_wcwidth = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 +$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } +if test "${gl_cv_func_wcwidth_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "$cross_compiling" = yes; then : + + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; + esac + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +#if !HAVE_DECL_WCWIDTH +extern +# ifdef __cplusplus +"C" +# endif +int wcwidth (int); +#endif +int main () +{ + if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) + if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_wcwidth_works=yes +else + gl_cv_func_wcwidth_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gl_save_CPPFLAGS" - fi - LIBS="$gl_save_LIBS" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5 +$as_echo "$gl_cv_func_wcwidth_works" >&6; } + case "$gl_cv_func_wcwidth_works" in + *yes) ;; + *no) REPLACE_WCWIDTH=1 ;; + esac + fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then + + + + + + + + + gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" - { echo "$as_me:$LINENO: checking for libxml" >&5 -echo $ECHO_N "checking for libxml... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libxml" >&5 -echo "${ECHO_T}$gl_cv_libxml" >&6; } - if test $gl_cv_libxml = yes; then - LIBXML="$gl_cv_LIBXML" - LTLIBXML="$gl_cv_LTLIBXML" - INCXML="$gl_cv_INCXML" - else - gl_cv_libxml_use_included=yes - fi fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \ + || test $HAVE_DECL_WCWIDTH = 0; then + : + fi - { echo "$as_me:$LINENO: checking whether to use the included libxml" >&5 -echo $ECHO_N "checking whether to use the included libxml... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gl_cv_libxml_use_included" >&5 -echo "${ECHO_T}$gl_cv_libxml_use_included" >&6; } - if test "$gl_cv_libxml_use_included" = yes; then - LIBXML_H= - LIBXML_H="$LIBXML_H libxml/DOCBparser.h" - LIBXML_H="$LIBXML_H libxml/HTMLparser.h" - LIBXML_H="$LIBXML_H libxml/HTMLtree.h" - LIBXML_H="$LIBXML_H libxml/SAX2.h" - LIBXML_H="$LIBXML_H libxml/SAX.h" - LIBXML_H="$LIBXML_H libxml/c14n.h" - LIBXML_H="$LIBXML_H libxml/catalog.h" - LIBXML_H="$LIBXML_H libxml/chvalid.h" - LIBXML_H="$LIBXML_H libxml/debugXML.h" - LIBXML_H="$LIBXML_H libxml/dict.h" - LIBXML_H="$LIBXML_H libxml/encoding.h" - LIBXML_H="$LIBXML_H libxml/entities.h" - LIBXML_H="$LIBXML_H libxml/globals.h" - LIBXML_H="$LIBXML_H libxml/hash.h" - LIBXML_H="$LIBXML_H libxml/list.h" - LIBXML_H="$LIBXML_H libxml/nanoftp.h" - LIBXML_H="$LIBXML_H libxml/nanohttp.h" - LIBXML_H="$LIBXML_H libxml/parser.h" - LIBXML_H="$LIBXML_H libxml/parserInternals.h" - LIBXML_H="$LIBXML_H libxml/pattern.h" - LIBXML_H="$LIBXML_H libxml/relaxng.h" - LIBXML_H="$LIBXML_H libxml/schemasInternals.h" - LIBXML_H="$LIBXML_H libxml/schematron.h" - LIBXML_H="$LIBXML_H libxml/threads.h" - LIBXML_H="$LIBXML_H libxml/tree.h" - LIBXML_H="$LIBXML_H libxml/uri.h" - LIBXML_H="$LIBXML_H libxml/valid.h" - LIBXML_H="$LIBXML_H libxml/xinclude.h" - LIBXML_H="$LIBXML_H libxml/xlink.h" - LIBXML_H="$LIBXML_H libxml/xmlIO.h" - LIBXML_H="$LIBXML_H libxml/xmlautomata.h" - LIBXML_H="$LIBXML_H libxml/xmlerror.h" - LIBXML_H="$LIBXML_H libxml/xmlexports.h" - LIBXML_H="$LIBXML_H libxml/xmlmemory.h" - LIBXML_H="$LIBXML_H libxml/xmlmodule.h" - LIBXML_H="$LIBXML_H libxml/xmlreader.h" - LIBXML_H="$LIBXML_H libxml/xmlregexp.h" - LIBXML_H="$LIBXML_H libxml/xmlsave.h" - LIBXML_H="$LIBXML_H libxml/xmlschemas.h" - LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h" - LIBXML_H="$LIBXML_H libxml/xmlstring.h" - LIBXML_H="$LIBXML_H libxml/xmlunicode.h" - LIBXML_H="$LIBXML_H libxml/xmlversion.h" - LIBXML_H="$LIBXML_H libxml/xmlwriter.h" - LIBXML_H="$LIBXML_H libxml/xpath.h" - LIBXML_H="$LIBXML_H libxml/xpathInternals.h" - LIBXML_H="$LIBXML_H libxml/xpointer.h" + GNULIB_WCWIDTH=1 +$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h + # Code from module write: + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_WRITE=1 @@ -47192,144 +43806,43 @@ + gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext" + + fi + + -for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \ - fcntl.h float.h limits.h malloc.h math.h netdb.h \ - netinet/in.h signal.h stdlib.h string.h \ - strings.h sys/select.h sys/socket.h sys/stat.h \ - sys/time.h sys/types.h time.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + GNULIB_WRITE=1 -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +$as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xlist: + + + + # Code from module xmalloca: + # Code from module xreadlink: + # Code from module xsetenv: + # Code from module xsize: + + + + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_STDINT_H 1 _ACEOF fi @@ -47337,134 +43850,29 @@ done -for ac_header in arpa/nameser.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module xstriconv: + # Code from module xstriconveh: + # Code from module xvasprintf: - #if HAVE_SYS_TYPES_H - # include - #endif -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" -fi + # End of code from modules -done -for ac_header in resolv.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #if HAVE_SYS_TYPES_H - # include - #endif - #if HAVE_NETINET_IN_H - # include - #endif - #if HAVE_ARPA_NAMESER_H - # include - #endif -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + gltests_libdeps= + gltests_ltlibdeps= -done @@ -47473,130 +43881,269 @@ -for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + gl_source_base='gnulib-tests' + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + gl_module_indicator_condition=$gltests_WITNESS -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + : -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 +$as_echo_n "checking for a traditional french locale... " >&6; } +if test "${gt_cv_locale_fr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +#include +struct tm t; +char buf[16]; +int main () { + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } #endif - -int -main () -{ -return $ac_func (); - ; +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only + one byte long. This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 + else + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 + else + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr + else + # None found. + gt_cv_locale_fr=none + fi + fi + fi + fi + fi + fi + rm -fr conftest* - eval "$as_ac_var=no" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 +$as_echo "$gt_cv_locale_fr" >&6; } + LOCALE_FR=$gt_cv_locale_fr -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done -cat >>confdefs.h <<\_ACEOF -#define VA_COPY va_copy -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5 +$as_echo_n "checking for a turkish Unicode locale... " >&6; } +if test "${gt_cv_locale_tr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - else - LIBXML_H= - fi + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. But BeOS does not + implement the Turkish upper-/lowercase mappings. Therefore, let this + program return 1 on BeOS. */ + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the eighth month, the second + character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f) + return 1; + /* Check whether the upper-/lowercase mappings are as expected for + Turkish. */ + if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' + || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) + return 1; + return 0; +} + +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_tr_utf8=tr_TR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_tr_utf8=tr_TR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_tr_utf8=tr.UTF-8 + else + # None found. + gt_cv_locale_tr_utf8=none + fi + fi + fi + else + gt_cv_locale_tr_utf8=none + fi + rm -fr conftest* - if test "$gl_cv_libxml_use_included" = yes; then - INCLUDED_LIBXML_TRUE= - INCLUDED_LIBXML_FALSE='#' -else - INCLUDED_LIBXML_TRUE='#' - INCLUDED_LIBXML_FALSE= fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5 +$as_echo "$gt_cv_locale_tr_utf8" >&6; } + LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8 + for ac_func in getpagesize +do : + ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF +fi +done + if test $ac_cv_func_getpagesize = no; then + HAVE_GETPAGESIZE=0 + for ac_header in OS.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" +if test "x$ac_cv_header_OS_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_OS_H 1 +_ACEOF +fi +done + if test $ac_cv_header_OS_h = yes; then + HAVE_OS_H=1 + fi + for ac_header in sys/param.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_param_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_PARAM_H 1 +_ACEOF - : +fi +done + if test $ac_cv_header_sys_param_h = yes; then + HAVE_SYS_PARAM_H=1 + fi + fi + case "$host_os" in + mingw*) + REPLACE_GETPAGESIZE=1 @@ -47605,419 +44152,654 @@ - { echo "$as_me:$LINENO: checking whether locale.h conforms to POSIX" >&5 -echo $ECHO_N "checking whether locale.h conforms to POSIX... $ECHO_C" >&6; } -if test "${gl_cv_header_working_locale_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int x = LC_MESSAGES; -int -main () -{ + gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_working_locale_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ;; + esac + ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" +if test "x$ac_cv_have_decl_getpagesize" = x""yes; then : - gl_cv_header_working_locale_h=no +else + HAVE_DECL_GETPAGESIZE=0 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_working_locale_h" >&5 -echo "${ECHO_T}$gl_cv_header_working_locale_h" >&6; } - if test $gl_cv_header_working_locale_h = yes; then - LOCALE_H= - else - : + GNULIB_GETPAGESIZE=$gl_module_indicator_condition +$as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h - if test $gl_cv_have_include_next = yes; then - gl_cv_next_locale_h='<'locale.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_locale_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_locale_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_locale_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/locale.h#{ - s#.*"\(.*/locale.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_locale_h='<'locale.h'>' - fi + : -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_locale_h" >&5 -echo "${ECHO_T}$gl_cv_next_locale_h" >&6; } - fi - NEXT_LOCALE_H=$gl_cv_next_locale_h - LOCALE_H=locale.h - fi + : -for ac_func in setlocale -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 +$as_echo_n "checking for a traditional french locale... " >&6; } +if test "${gt_cv_locale_fr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +#include +struct tm t; +char buf[16]; +int main () { + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } #endif - -int -main () -{ -return $ac_func (); - ; +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only + one byte long. This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 + else + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 + else + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr + else + # None found. + gt_cv_locale_fr=none + fi + fi + fi + fi + fi + fi + rm -fr conftest* - eval "$as_ac_var=no" fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 +$as_echo "$gt_cv_locale_fr" >&6; } + LOCALE_FR=$gt_cv_locale_fr -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi + fi + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - LIBSCHED= - if test $gl_threads_api = posix; then - { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 -echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; } -if test "${ac_cv_lib_rt_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +$as_echo_n "checking for a traditional japanese locale... " >&6; } +if test "${gt_cv_locale_ja+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lrt $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" +#include +#include +#if HAVE_LANGINFO_CODESET +# include #endif -char sched_yield (); -int -main () +#include +#include +struct tm t; +char buf[16]; +int main () { -return sched_yield (); - ; + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_rt_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi + fi + fi + fi + fi + rm -fr conftest* - ac_cv_lib_rt_sched_yield=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +$as_echo "$gt_cv_locale_ja" >&6; } + LOCALE_JA=$gt_cv_locale_ja -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; } -if test $ac_cv_lib_rt_sched_yield = yes; then - LIBSCHED=-lrt -else - { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 -echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; } -if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +$as_echo_n "checking for a transitional chinese locale... " >&6; } +if test "${gt_cv_locale_zh_CN+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lposix4 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" +#include +#include +#include +#if HAVE_LANGINFO_CODESET +# include #endif -char sched_yield (); -int -main () +#include +#include +struct tm t; +char buf[16]; +int main () { -return sched_yield (); - ; + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_posix4_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* - ac_cv_lib_posix4_sched_yield=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +$as_echo "$gt_cv_locale_zh_CN" >&6; } + LOCALE_ZH_CN=$gt_cv_locale_zh_CN -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; } -if test $ac_cv_lib_posix4_sched_yield = yes; then - LIBSCHED=-lposix4 -fi -fi - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test $gl_cv_func_malloc_posix = yes; then - HAVE_MALLOC_POSIX=1 +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} -cat >>confdefs.h <<\_ACEOF -#define HAVE_MALLOC_POSIX 1 _ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi + fi + fi + rm -fr conftest* - else - - - - - - - - gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" - - HAVE_MALLOC_POSIX=0 - fi - - - - - GNULIB_MALLOC_POSIX=1 - - - - - - - - - - - - : - - +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - GNULIB_MBSLEN=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 +$as_echo_n "checking for a traditional french locale... " >&6; } +if test "${gt_cv_locale_fr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only + one byte long. This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 + else + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 + else + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr + else + # None found. + gt_cv_locale_fr=none + fi + fi + fi + fi + fi + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 +$as_echo "$gt_cv_locale_fr" >&6; } + LOCALE_FR=$gt_cv_locale_fr - GNULIB_MBSSTR=1 - { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5 -echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_fr_utf8+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -48030,17 +44812,24 @@ struct tm t; char buf[16]; int main () { - /* On BeOS, locales are not implemented in libc. Rather, libintl + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl imitates locale dependent behaviour by looking at the environment variables, and all locales use the UTF-8 encoding. */ -#if !defined(__BEOS__) +#if !(defined __BEOS__ || defined __HAIKU__) /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ # if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } # endif # ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the @@ -48064,11 +44853,11 @@ } _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the # configure script would override the LC_ALL setting. Likewise for @@ -48094,45 +44883,24 @@ rm -fr conftest* fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5 -echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - { echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5 -echo $ECHO_N "checking for a transitional chinese locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_zh_CN+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +$as_echo_n "checking for a traditional japanese locale... " >&6; } +if test "${gt_cv_locale_ja+set}" = set; then : + $as_echo_n "(cached) " >&6 else - macosx= - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_zh_CN=none - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -#include #include #if HAVE_LANGINFO_CODESET # include @@ -48146,11 +44914,18 @@ const char *p; /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ #if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } #endif #ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the @@ -48158,6 +44933,10 @@ LC_ALL is set on the command line. */ if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; #endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. This excludes the UTF-8 encoding. */ t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; @@ -48165,524 +44944,441 @@ for (p = buf; *p != '\0'; p++) if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) return 1; - /* Check whether a typical GB18030 multibyte sequence is recognized as a - single wide character. This excludes the GB2312 and GBK encodings. */ - if (mblen ("\203\062\332\066", 5) != 4) - return 1; return 0; } _ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the locale name without encoding suffix. - if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_zh_CN=zh_CN + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_zh_CN=zh_CN.GB18030 + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP else - # None found. - gt_cv_locale_zh_CN=none + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi fi fi - else - # If there was a link error, due to mblen(), the system is so old that - # it certainly doesn't have a chinese locale. - gt_cv_locale_zh_CN=none fi - rm -fr conftest* fi + rm -fr conftest* fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5 -echo "${ECHO_T}$gt_cv_locale_zh_CN" >&6; } - LOCALE_ZH_CN=$gt_cv_locale_zh_CN - - - - - : - - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +$as_echo "$gt_cv_locale_ja" >&6; } + LOCALE_JA=$gt_cv_locale_ja - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +$as_echo_n "checking for a transitional chinese locale... " >&6; } +if test "${gt_cv_locale_zh_CN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; + return 0; +} +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +$as_echo "$gt_cv_locale_zh_CN" >&6; } + LOCALE_ZH_CN=$gt_cv_locale_zh_CN - { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 -echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } -if test "${gl_cv_func_mbrtowc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ -wchar_t wc; - char const s[] = ""; - size_t n = 1; - mbstate_t state; - return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); - ; + +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_func_mbrtowc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi + fi + fi + rm -fr conftest* - gl_cv_func_mbrtowc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 -echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } - if test $gl_cv_func_mbrtowc = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBRTOWC 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking whether mbswidth is declared in " >&5 -echo $ECHO_N "checking whether mbswidth is declared in ... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_mbswidth+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 +$as_echo_n "checking for a transitional chinese locale... " >&6; } +if test "${gt_cv_locale_zh_CN+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include +#include +#include #include -#include - -int -main () +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { - - char *p = (char *) mbswidth; - return !p; - - ; + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + /* Check whether a typical GB18030 multibyte sequence is recognized as a + single wide character. This excludes the GB2312 and GBK encodings. */ + if (mblen ("\203\062\332\066", 5) != 4) + return 1; return 0; } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_mbswidth=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_mbswidth=no -fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 + else + # None found. + gt_cv_locale_zh_CN=none + fi + fi + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none + fi + rm -fr conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5 -echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; } - if test $ac_cv_have_decl_mbswidth = yes; then - ac_val=1 - else - ac_val=0 - fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 +$as_echo "$gt_cv_locale_zh_CN" >&6; } + LOCALE_ZH_CN=$gt_cv_locale_zh_CN - { echo "$as_me:$LINENO: checking for mbstate_t" >&5 -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -# include -int -main () -{ -mbstate_t x; return sizeof x; - ; - return 0; -} +[ + #if defined _MSC_VER || defined __MINGW32__ + notposix + #endif + ] _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mbstate_t=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "notposix" >/dev/null 2>&1; then : + posix_spawn_ported=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_mbstate_t=no + posix_spawn_ported=yes fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $posix_spawn_ported = yes; then + POSIX_SPAWN_PORTED_TRUE= + POSIX_SPAWN_PORTED_FALSE='#' +else + POSIX_SPAWN_PORTED_TRUE='#' + POSIX_SPAWN_PORTED_FALSE= fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } - if test $ac_cv_type_mbstate_t = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - - else - -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF - - fi - - - - - : - - - - - - - -for ac_func in memchr -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5 +$as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; } +if test "${gl_cv_func_svid_putenv+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + gl_cv_func_svid_putenv=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +$ac_includes_default +int +main () +{ -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + /* Put it in env. */ + if (putenv ("CONFTEST_putenv=val")) + return 1; -#ifdef __STDC__ -# include -#else -# include -#endif + /* Try to remove it. */ + if (putenv ("CONFTEST_putenv")) + return 1; -#undef $ac_func + /* Make sure it was deleted. */ + if (getenv ("CONFTEST_putenv") != 0) + return 1; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + return 0; -int -main () -{ -return $ac_func (); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_svid_putenv=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_svid_putenv=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5 +$as_echo "$gl_cv_func_svid_putenv" >&6; } + if test $gl_cv_func_svid_putenv = no; then + REPLACE_PUTENV=1 - if test $ac_cv_func_memchr = no; then -for ac_header in bp-sym.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi + gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext" -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + fi -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + GNULIB_PUTENV=$gl_module_indicator_condition -done - fi +$as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h @@ -48693,224 +45389,89 @@ -for ac_func in memmove -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + gltests_LIBOBJS="$gltests_LIBOBJS read-file.$ac_objext" -#undef $ac_func + : -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 +$as_echo_n "checking for wchar_t... " >&6; } +if test "${gt_cv_c_wchar_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + wchar_t foo = (wchar_t)'\0'; int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wchar_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gt_cv_c_wchar_t=no fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" - +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -done - - - if test $ac_cv_func_memmove = no; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 +$as_echo "$gt_cv_c_wchar_t" >&6; } + if test $gt_cv_c_wchar_t = yes; then - : +$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h fi - - - - - - - - -for ac_func in memset -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 +$as_echo_n "checking for wint_t... " >&6; } +if test "${gt_cv_c_wint_t+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + wint_t foo = (wchar_t)'\0'; int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_c_wint_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gt_cv_c_wint_t=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 +$as_echo "$gt_cv_c_wint_t" >&6; } + if test $gt_cv_c_wint_t = yes; then -fi -done +$as_echo "#define HAVE_WINT_T 1" >>confdefs.h + fi - if test $ac_cv_func_memset = no; then : - fi - - @@ -48921,177 +45482,91 @@ + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" +if test "x$ac_cv_func_mmap" = x""yes; then : + gl_have_mmap=yes +else + gl_have_mmap=no +fi -for ac_func in mkdtemp -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 +$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. #endif -#undef $ac_func +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : + gl_have_mmap_anonymous=yes +fi +rm -f conftest* + + if test $gl_have_mmap_anonymous != yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +#ifdef MAP_ANON + I cant identify this map. #endif -int -main () -{ -return $ac_func (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : - eval "$as_ac_var=no" -fi +$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gl_have_mmap_anonymous=yes fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else +rm -f conftest* - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 +$as_echo "$gl_have_mmap_anonymous" >&6; } + if test $gl_have_mmap_anonymous = yes; then -fi -done +$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h + fi + fi - if test $ac_cv_func_mkdtemp = no; then - HAVE_MKDTEMP=0 - : - fi + : - GNULIB_MKDTEMP=1 - { echo "$as_me:$LINENO: checking whether the C compiler is actually a C++ compiler" >&5 -echo $ECHO_N "checking whether the C compiler is actually a C++ compiler... $ECHO_C" >&6; } -if test "${gl_cv_c_cplusplus+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + : -#ifdef __cplusplus - Is c++ -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Is c++" >/dev/null 2>&1; then - gl_cv_c_cplusplus=yes -else - gl_cv_c_cplusplus=no -fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $gl_cv_c_cplusplus" >&5 -echo "${ECHO_T}$gl_cv_c_cplusplus" >&6; } - if test $gl_cv_c_cplusplus = yes; then -cat >>confdefs.h <<\_ACEOF -#define IS_CPLUSPLUS 1 -_ACEOF - fi - NO_CXX= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined __GNUC__ && defined __cplusplus - Is g++ -#endif + : -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Is g++" >/dev/null 2>&1; then - NO_CXX="-x c" -fi -rm -f conftest* + if test $ac_cv_func_symlink = no; then + HAVE_SYMLINK=0 @@ -49100,543 +45575,524 @@ + gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext" -{ echo "$as_me:$LINENO: checking for obstacks" >&5 -echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; } -if test "${ac_cv_func_obstack+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 +$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } +if test "${gl_cv_func_symlink_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + gl_cv_func_symlink_works="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default - #include "obstack.h" +#include + int main () { -struct obstack mem; - #define obstack_chunk_alloc malloc - #define obstack_chunk_free free - obstack_init (&mem); - obstack_free (&mem, 0); +if (!symlink ("a", "conftest.link/")) return 1; + if (symlink ("conftest.f", "conftest.lnk2")) return 2; + if (!symlink ("a", "conftest.lnk2/")) return 3; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_obstack=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_symlink_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_symlink_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_cv_func_obstack=no + rm -f conftest.f conftest.link conftest.lnk2 fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 +$as_echo "$gl_cv_func_symlink_works" >&6; } + if test "$gl_cv_func_symlink_works" != yes; then + REPLACE_SYMLINK=1 + + + + + + + + + gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext" + + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 -echo "${ECHO_T}$ac_cv_func_obstack" >&6; } -if test $ac_cv_func_obstack = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_OBSTACK 1 -_ACEOF -else + GNULIB_SYMLINK=$gl_module_indicator_condition +$as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h - gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext" -fi + : - case "$host_os" in - mingw* | pw*) - REPLACE_OPEN=1 + if test $gl_threads_api = posix; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBMULTITHREAD" + for ac_func in pthread_atfork +do : + ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" +if test "x$ac_cv_func_pthread_atfork" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PTHREAD_ATFORK 1 +_ACEOF +fi +done - gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" + LIBS="$gl_save_LIBS" + fi - ;; - esac + if { test "$HAVE_LIBUNISTRING" != yes \ + || { -cat >>confdefs.h <<\_ACEOF -#define GNULIB_OPEN 1 -_ACEOF + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - GNULIB_OPEN=1 - OPENMP_CFLAGS= - # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then - enableval=$enable_openmp; + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE= fi - if test "$enable_openmp" != no; then - { echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5 -echo $ECHO_N "checking for $CC option to support OpenMP... $ECHO_C" >&6; } -if test "${ac_cv_prog_c_openmp+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + + + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" +if test "x$ac_cv_func_mmap" = x""yes; then : + gl_have_mmap=yes else - cat >conftest.$ac_ext <<_ACEOF + gl_have_mmap=no +fi -#ifndef _OPENMP - choke me + + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 +$as_echo_n "checking for MAP_ANONYMOUS... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. #endif -#include -int main () { return omp_get_num_threads (); } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_prog_c_openmp='none needed' -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : + gl_have_mmap_anonymous=yes +fi +rm -f conftest* - ac_cv_prog_c_openmp='unsupported' - for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do - ac_save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $ac_option" - cat >conftest.$ac_ext <<_ACEOF + if test $gl_have_mmap_anonymous != yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -#ifndef _OPENMP - choke me +#include +#ifdef MAP_ANON + I cant identify this map. #endif -#include -int main () { return omp_get_num_threads (); } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_prog_c_openmp=$ac_option -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "I cant identify this map." >/dev/null 2>&1; then : +$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h + gl_have_mmap_anonymous=yes fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS=$ac_save_CFLAGS - if test "$ac_cv_prog_c_openmp" != unsupported; then - break - fi - done -fi + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 +$as_echo "$gl_have_mmap_anonymous" >&6; } + if test $gl_have_mmap_anonymous = yes; then -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5 -echo "${ECHO_T}$ac_cv_prog_c_openmp" >&6; } - case $ac_cv_prog_c_openmp in #( - "none needed" | unsupported) - ;; #( - *) - OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; - esac +$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h + + fi fi + : + - : + : - : + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -for ac_func in posix_spawn -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE='#' else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE= +fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi + : + + + + + + if test $ac_cv_func_wctob = no; then + HAVE_DECL_WCTOB=0 + + : -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + + gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext" + + : + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5 +$as_echo_n "checking whether wctob works... " >&6; } +if test "${gl_cv_func_wctob_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - { echo "$as_me:$LINENO: checking for mbstate_t" >&5 -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + case "$host_os" in + # Guess no on Solaris <= 9 and Cygwin. + solaris2.[1-9] | solaris2.[1-9].* | cygwin*) + gl_cv_func_wctob_works="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_wctob_works="guessing yes" ;; + esac + case "$host_os" in + cygwin*) + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -# include -int -main () + +#include +#include + +register long global __asm__ ("%ebx"); + +int main () { -mbstate_t x; return sizeof x; - ; + setlocale (LC_ALL, "en_US.UTF-8"); + + global = 0x12345678; + if (wctob (0x00FC) != -1) + return 1; + if (global != 0x12345678) + return 2; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mbstate_t=yes +if ac_fn_c_try_run "$LINENO"; then : + : else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_mbstate_t=no + gl_cv_func_wctob_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } - if test $ac_cv_type_mbstate_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - - else - -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF - - fi - - { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 -echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } -if test "${gl_cv_func_mbrtowc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + ;; + esac + if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + +#include +#include #include -int -main () +int main () { -wchar_t wc; - char const s[] = ""; - size_t n = 1; - mbstate_t state; - return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); - ; + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + wchar_t wc; + + if (mbtowc (&wc, "\374", 1) == 1) + if (wctob (wc) != (unsigned char) '\374') + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_func_mbrtowc=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_wctob_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func_mbrtowc=no + gl_cv_func_wctob_works=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 -echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } - if test $gl_cv_func_mbrtowc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBRTOWC 1 -_ACEOF - fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5 +$as_echo "$gl_cv_func_wctob_works" >&6; } + case "$gl_cv_func_wctob_works" in + *yes) ;; + *) REPLACE_WCTOB=1 ;; + esac + if test $REPLACE_WCTOB = 1; then + : - : - if test $ac_cv_func_readlink = no; then - HAVE_READLINK=0 + gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext" + : + else + ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" " +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +" +if test "x$ac_cv_have_decl_wctob" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_WCTOB $ac_have_decl +_ACEOF + if test $ac_cv_have_decl_wctob != yes; then + HAVE_DECL_WCTOB=0 - : + : + fi + fi fi - GNULIB_READLINK=1 + GNULIB_WCTOB=$gl_module_indicator_condition - if test $gl_cv_func_malloc_posix = yes; then - HAVE_REALLOC_POSIX=1 -cat >>confdefs.h <<\_ACEOF -#define HAVE_REALLOC_POSIX 1 -_ACEOF +$as_echo "#define GNULIB_TEST_WCTOB 1" >>confdefs.h - else + YIELD_LIB= + if test $gl_threads_api = posix; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 +$as_echo_n "checking for sched_yield in -lrt... " >&6; } +if test "${ac_cv_lib_rt_sched_yield+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sched_yield (); +int +main () +{ +return sched_yield (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_sched_yield=yes +else + ac_cv_lib_rt_sched_yield=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 +$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } +if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then : + YIELD_LIB=-lrt +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 +$as_echo_n "checking for sched_yield in -lposix4... " >&6; } +if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix4 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char sched_yield (); +int +main () +{ +return sched_yield (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_posix4_sched_yield=yes +else + ac_cv_lib_posix4_sched_yield=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 +$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } +if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then : + YIELD_LIB=-lposix4 +fi - gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext" +fi - HAVE_REALLOC_POSIX=0 fi - GNULIB_REALLOC_POSIX=1 - - - if test $RELOCATABLE = yes; then + LIBTESTS_LIBDEPS="$gltests_libdeps" - gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext" - fi + GNULIB_NL_LANGINFO=0; + HAVE_NL_LANGINFO=1; + REPLACE_NL_LANGINFO=0; - if test $RELOCATABLE = yes; then @@ -49644,577 +46100,413 @@ - gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext" - fi - : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'} - RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base" - RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base" - : - : - : + if false; then + GL_COND_LIBTOOL_TRUE= + GL_COND_LIBTOOL_FALSE='#' +else + GL_COND_LIBTOOL_TRUE='#' + GL_COND_LIBTOOL_FALSE= +fi + gl_cond_libtool=false + gl_libdeps= + gl_ltlibdeps= + gl_m4_base='libgrep/gnulib-m4' - : + gl_source_base='libgrep' + # Code from module btowc: - : + : + if test $ac_cv_func_btowc = no; then + HAVE_BTOWC=0 + else - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 +$as_echo_n "checking whether btowc(0) is correct... " >&6; } +if test "${gl_cv_func_btowc_nul+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + case "$host_os" in + # Guess no on Cygwin. + cygwin*) gl_cv_func_btowc_nul="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_btowc_nul="guessing yes" ;; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int main () +{ + if (btowc ('\0') != 0) + return 1; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_btowc_nul=yes +else + gl_cv_func_btowc_nul=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 +$as_echo "$gl_cv_func_btowc_nul" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 +$as_echo_n "checking whether btowc(EOF) is correct... " >&6; } +if test "${gl_cv_func_btowc_eof+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$host_os" in + # Guess no on IRIX. + irix*) gl_cv_func_btowc_eof="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_btowc_eof="guessing yes" ;; + esac + if test $LOCALE_FR != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + if (btowc (EOF) != WEOF) + return 1; + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_btowc_eof=yes +else + gl_cv_func_btowc_eof=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 +$as_echo "$gl_cv_func_btowc_eof" >&6; } + case "$gl_cv_func_btowc_nul" in + *yes) ;; + *) REPLACE_BTOWC=1 ;; + esac + case "$gl_cv_func_btowc_eof" in + *yes) ;; + *) REPLACE_BTOWC=1 ;; + esac + fi + if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then + : - : + grgl_LIBOBJS="$grgl_LIBOBJS btowc.$ac_objext" : + fi + GNULIB_BTOWC=1 -for ac_header in search.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } - -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + # Code from module c++defs: + # Code from module langinfo: -done -for ac_func in tsearch -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi + : -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 -echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } - if test "${gt_cv_var_environ_declaration+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - extern struct { int foo; } environ; -int -main () -{ -environ.foo = 1; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_var_environ_declaration=no + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_langinfo_h='<'langinfo.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_langinfo_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_var_environ_declaration=yes -fi + if test $ac_cv_header_langinfo_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/langinfo.h#{ + s#.*"\(.*/langinfo.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_langinfo_h='<'langinfo.h'>' + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 +$as_echo "$gl_cv_next_langinfo_h" >&6; } + fi + NEXT_LANGINFO_H=$gl_cv_next_langinfo_h - { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 -echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } - if test $gt_cv_var_environ_declaration = yes; then + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'langinfo.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_langinfo_h + fi + NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive -cat >>confdefs.h <<\_ACEOF -#define HAVE_ENVIRON_DECL 1 -_ACEOF - fi + + + HAVE_LANGINFO_CODESET=0 + HAVE_LANGINFO_ERA=0 + + : + - { echo "$as_me:$LINENO: checking for working strerror function" >&5 -echo $ECHO_N "checking for working strerror function... $ECHO_C" >&6; } -if test "${gl_cv_func_working_strerror+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $ac_cv_header_langinfo_h = yes; then + HAVE_LANGINFO_H=1 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 +$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } +if test "${gl_cv_header_langinfo_codeset+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +int a = CODESET; int main () { -return !*strerror (-2); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_working_strerror=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_langinfo_codeset=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func_working_strerror=no + gl_cv_header_langinfo_codeset=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 +$as_echo "$gl_cv_header_langinfo_codeset" >&6; } + if test $gl_cv_header_langinfo_codeset = yes; then + HAVE_LANGINFO_CODESET=1 + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 +$as_echo_n "checking whether langinfo.h defines ERA... " >&6; } +if test "${gl_cv_header_langinfo_era+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +int a = ERA; int main () { -return !*strerror (-2); + ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_working_strerror=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_header_langinfo_era=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gl_cv_func_working_strerror=no + gl_cv_header_langinfo_era=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 +$as_echo "$gl_cv_header_langinfo_era" >&6; } + if test $gl_cv_header_langinfo_era = yes; then + HAVE_LANGINFO_ERA=1 + fi + else + HAVE_LANGINFO_H=0 + fi + + -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5 -echo "${ECHO_T}$gl_cv_func_working_strerror" >&6; } - if test $gl_cv_func_working_strerror = no ; then - REPLACE_STRERROR=1 - { echo "$as_me:$LINENO: checking whether strerror is declared" >&5 -echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_strerror+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in nl_langinfo; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default +#include + int main () { -#ifndef strerror - (void) strerror; -#endif - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_strerror=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_strerror=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; } -if test $ac_cv_have_decl_strerror = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR 1 +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes +fi + done -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR 0 -_ACEOF + # Code from module nl_langinfo: -fi - fi + : + - relocatable_sh=$ac_aux_dir/relocatable.sh.in + if test $ac_cv_func_nl_langinfo = yes; then + if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then + : + else + REPLACE_NL_LANGINFO=1 +$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h - gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext" + grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext" + fi + else + HAVE_NL_LANGINFO=0 @@ -50223,18 +46515,23 @@ + grgl_LIBOBJS="$grgl_LIBOBJS nl_langinfo.$ac_objext" + fi - gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext" + GNULIB_NL_LANGINFO=1 +$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h + # Code from module regex: + : @@ -50242,428 +46539,311 @@ - if test $ac_cv_func_setenv = no; then +# Check whether --with-included-regex was given. +if test "${with_included_regex+set}" = set; then : + withval=$with_included_regex; +fi + case $with_included_regex in #( + yes|no) ac_use_included_regex=$with_included_regex + ;; + '') + # If the system regex support is good enough that it passes the + # following run test, then default to *not* using the included regex.c. + # If cross compiling, assume the test would fail and use the included + # regex.c. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5 +$as_echo_n "checking for working re_compile_pattern... " >&6; } +if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + gl_cv_func_re_compile_pattern_working=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + #if HAVE_LOCALE_H + #include + #endif + #include + #include +int +main () +{ +static struct re_pattern_buffer regex; + unsigned char folded_chars[UCHAR_MAX + 1]; + int i; + const char *s; + struct re_registers regs; + + #if HAVE_LOCALE_H + /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html + This test needs valgrind to catch the bug on Debian + GNU/Linux 3.1 x86, but it might catch the bug better + on other platforms and it shouldn't hurt to try the + test here. */ + if (setlocale (LC_ALL, "en_US.UTF-8")) + { + static char const pat[] = "insert into"; + static char const data[] = + "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; + re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE + | RE_ICASE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern (pat, sizeof pat - 1, ®ex); + if (s) + return 1; + if (re_search (®ex, data, sizeof data - 1, + 0, sizeof data - 1, ®s) + != -1) + return 1; + if (! setlocale (LC_ALL, "C")) + return 1; + } + #endif + /* This test is from glibc bug 3957, reported by Andrew Mackey. */ + re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("a[^x]b", 6, ®ex); + if (s) + return 1; + + /* This should fail, but succeeds for glibc-2.5. */ + if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) + return 1; + + /* This regular expression is from Spencer ere test number 75 + in grep-2.3. */ + re_set_syntax (RE_SYNTAX_POSIX_EGREP); + memset (®ex, 0, sizeof regex); + for (i = 0; i <= UCHAR_MAX; i++) + folded_chars[i] = i; + regex.translate = folded_chars; + s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex); + /* This should fail with _Invalid character class name_ error. */ + if (!s) + return 1; + + /* Ensure that [b-a] is diagnosed as invalid, when + using RE_NO_EMPTY_RANGES. */ + re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("a[b-a]", 6, ®ex); + if (s == 0) + return 1; + + /* This should succeed, but does not for glibc-2.1.3. */ + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("{1", 2, ®ex); - gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext" + if (s) + return 1; + /* The following example is derived from a problem report + against gawk from Jorge Stolfi . */ + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("[an\371]*n", 7, ®ex); + if (s) + return 1; + /* This should match, but does not for glibc-2.2.1. */ + if (re_match (®ex, "an", 2, 0, ®s) != 2) + return 1; + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("x", 1, ®ex); + if (s) + return 1; - : + /* glibc-2.2.93 does not work with a negative RANGE argument. */ + if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) + return 1; + /* The version of regex.c in older versions of gnulib + ignored RE_ICASE. Detect that problem too. */ + re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("x", 1, ®ex); + if (s) + return 1; + if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) + return 1; + /* Catch a bug reported by Vin Shelton in + http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html + */ + re_set_syntax (RE_SYNTAX_POSIX_BASIC + & ~RE_CONTEXT_INVALID_DUP + & ~RE_NO_EMPTY_RANGES); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex); + if (s) + return 1; + /* REG_STARTEND was added to glibc on 2004-01-15. + Reject older versions. */ + if (! REG_STARTEND) + return 1; + /* Reject hosts whose regoff_t values are too narrow. + These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t + and 32-bit int. */ + if (sizeof (regoff_t) < sizeof (ptrdiff_t) + || sizeof (regoff_t) < sizeof (ssize_t)) + return 1; -for ac_header in search.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + return 0; + ; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_re_compile_pattern_working=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_re_compile_pattern_working=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5 +$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; } + case $gl_cv_func_re_compile_pattern_working in #( + yes) ac_use_included_regex=no;; #( + no) ac_use_included_regex=yes;; + esac + ;; + *) as_fn_error "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5 + ;; + esac -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $ac_use_included_regex = yes; then -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi +$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h -done +$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h -for ac_func in tsearch -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +$as_echo "#define re_search rpl_re_search" >>confdefs.h -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func +$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define re_match rpl_re_match" >>confdefs.h - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h -fi -done +$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h - { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 -echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } - if test "${gt_cv_var_environ_declaration+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +$as_echo "#define re_comp rpl_re_comp" >>confdefs.h - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - extern struct { int foo; } environ; -int -main () -{ -environ.foo = 1; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_var_environ_declaration=no -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_var_environ_declaration=yes -fi +$as_echo "#define re_exec rpl_re_exec" >>confdefs.h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 -echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } - if test $gt_cv_var_environ_declaration = yes; then +$as_echo "#define regcomp rpl_regcomp" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define HAVE_ENVIRON_DECL 1 -_ACEOF - fi +$as_echo "#define regexec rpl_regexec" >>confdefs.h - fi +$as_echo "#define regerror rpl_regerror" >>confdefs.h +$as_echo "#define regfree rpl_regfree" >>confdefs.h -for ac_func in unsetenv -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then + + grgl_LIBOBJS="$grgl_LIBOBJS regex.$ac_objext" + + + + + + + for ac_header in libintl.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" +if test "x$ac_cv_header_libintl_h" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_LIBINTL_H 1 _ACEOF fi + done - if test $ac_cv_func_unsetenv = no; then + : - gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext" + + + + + + ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include +" +if test "x$ac_cv_have_decl_isblank" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_ISBLANK $ac_have_decl +_ACEOF + + + fi + + # Code from module warn-on-use: + # Code from module wcrtomb: + + + + + + + + + + : + + + @@ -50673,140 +46853,140 @@ + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then - { echo "$as_me:$LINENO: checking if environ is properly declared" >&5 -echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; } - if test "${gt_cv_var_environ_declaration+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - extern struct { int foo; } environ; -int -main () + +#include +#include +#include +int main () { -environ.foo = 1; - ; + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_var_environ_declaration=no +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_var_environ_declaration=yes + gl_cv_func_mbrtowc_incomplete_state=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } - { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5 -echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; } - if test $gt_cv_var_environ_declaration = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ENVIRON_DECL 1 -_ACEOF - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - else - { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5 -echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; } -if test "${gt_cv_func_unsetenv_ret+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -int unsetenv (const char *name); -#else -int unsetenv(); -#endif -int -main () +#include +#include +#include +#include +int main () { - - ; + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_func_unsetenv_ret='int' +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_func_unsetenv_ret='void' + gl_cv_func_mbrtowc_sanitycheck=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5 -echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; } - if test $gt_cv_func_unsetenv_ret = 'void'; then -cat >>confdefs.h <<\_ACEOF -#define VOID_UNSETENV 1 -_ACEOF + fi - fi - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : + fi @@ -50816,1478 +46996,577 @@ - - - if test $gl_cv_have_include_next = yes; then - gl_cv_next_signal_h='<'signal.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_signal_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test $ac_cv_header_signal_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_signal_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/signal.h#{ - s#.*"\(.*/signal.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_signal_h='<'signal.h'>' - fi - -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_signal_h" >&5 -echo "${ECHO_T}$gl_cv_next_signal_h" >&6; } - fi - NEXT_SIGNAL_H=$gl_cv_next_signal_h - - + if test $ac_cv_func_wcrtomb = no; then + HAVE_WCRTOMB=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_WCRTOMB=1 + else - signals_not_posix= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sigset_t" >/dev/null 2>&1; then - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 +$as_echo_n "checking whether wcrtomb return value is correct... " >&6; } +if test "${gl_cv_func_wcrtomb_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 else - signals_not_posix=1 -fi -rm -f conftest* - if test -z "$signals_not_posix"; then - { echo "$as_me:$LINENO: checking for sigprocmask" >&5 -echo $ECHO_N "checking for sigprocmask... $ECHO_C" >&6; } -if test "${ac_cv_func_sigprocmask+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + case "$host_os" in + # Guess no on AIX 4, OSF/1 and Solaris. + aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_wcrtomb_retval="guessing yes" ;; + esac + if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define sigprocmask to an innocuous variant, in case declares sigprocmask. - For example, HP-UX 11i declares gettimeofday. */ -#define sigprocmask innocuous_sigprocmask - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char sigprocmask (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef sigprocmask - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sigprocmask (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_sigprocmask || defined __stub___sigprocmask -choke me -#endif -int -main () +#include +#include +#include +#include +int main () { -return sigprocmask (); - ; + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_sigprocmask=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_wcrtomb_retval=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_func_sigprocmask=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gl_cv_func_wcrtomb_retval=no fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5 -echo "${ECHO_T}$ac_cv_func_sigprocmask" >&6; } -if test $ac_cv_func_sigprocmask = yes; then - gl_cv_func_sigprocmask=1 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 +$as_echo "$gl_cv_func_wcrtomb_retval" >&6; } + case "$gl_cv_func_wcrtomb_retval" in + *yes) ;; + *) REPLACE_WCRTOMB=1 ;; + esac + fi fi - if test -z "$gl_cv_func_sigprocmask"; then - HAVE_POSIX_SIGNALBLOCKING=0 + if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then + : - gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext" - { echo "$as_me:$LINENO: checking for sigset_t" >&5 -echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } -if test "${ac_cv_type_sigset_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -/* Mingw defines sigset_t not in , but in . */ -#include + grgl_LIBOBJS="$grgl_LIBOBJS wcrtomb.$ac_objext" -typedef sigset_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_sigset_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_sigset_t=no -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 -echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } -if test $ac_cv_type_sigset_t = yes; then + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_SIGSET_T 1 -_ACEOF -gl_cv_type_sigset_t=yes -else - gl_cv_type_sigset_t=no -fi - if test $gl_cv_type_sigset_t != yes; then - HAVE_SIGSET_T=0 - fi + GNULIB_WCRTOMB=1 - : +$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h + # Code from module dummy: + # End of code from modules - fi - GNULIB_SIGPROCMASK=1 -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + gltests_libdeps= + gltests_ltlibdeps= -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } - if test "${gl_cv_size_max+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + gl_source_base='tests' + grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS - gl_cv_size_max= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + gl_module_indicator_condition=$grgltests_WITNESS -#include -#if HAVE_STDINT_H -#include -#endif -#ifdef SIZE_MAX -Found it -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then - gl_cv_size_max=yes -fi -rm -f conftest* - if test -z "$gl_cv_size_max"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; -test_array [0] = 0 + LIBGREP_LIBDEPS="$gl_libdeps" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + LIBGREP_LTLIBDEPS="$gl_ltlibdeps" - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= + if true; then + GL_COND_LIBTOOL_TRUE= + GL_COND_LIBTOOL_FALSE='#' +else + GL_COND_LIBTOOL_TRUE='#' + GL_COND_LIBTOOL_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + gl_cond_libtool=true + gl_m4_base='libgettextpo/gnulib-m4' -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) size_t_bits_minus_1=$ac_lo;; -'') size_t_bits_minus_1= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } -static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) * CHAR_BIT - 1) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - size_t_bits_minus_1=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -size_t_bits_minus_1= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_source_base='libgettextpo' + # Code from module alloca-opt: - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_func_alloca_works = no; then - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) fits_in_uint=$ac_lo;; -'') fits_in_uint= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } -static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - fits_in_uint=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + : -( exit $ac_status ) -fits_in_uint= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then - if test $fits_in_uint = 1; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + fi + + # Define an additional variable used in the Makefile substitution. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - extern size_t foo; - extern unsigned long foo; -int -main () -{ +#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H + Need own alloca +#endif - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - fits_in_uint=0 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Need own alloca" >/dev/null 2>&1; then : + ALLOCA_H=alloca.h else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ALLOCA_H= +fi +rm -f conftest* -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $fits_in_uint = 1; then - gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" - else - gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" - fi - else - gl_cv_size_max='((size_t)~(size_t)0)' - fi - fi + # Code from module arg-nonnull: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strstr: + # Code from module concat-filename: + # Code from module configmake: + # Code from module diffseq: + # Code from module errno: + + # Code from module error: -fi - { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 -echo "${ECHO_T}$gl_cv_size_max" >&6; } - if test "$gl_cv_size_max" != yes; then -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max -_ACEOF - fi -for ac_func in snprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 +$as_echo_n "checking for error_at_line... " >&6; } +if test "${ac_cv_lib_error_at_line+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_error_at_line=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_lib_error_at_line=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 +$as_echo "$ac_cv_lib_error_at_line" >&6; } +if test $ac_cv_lib_error_at_line = no; then -fi -done - if test $ac_cv_func_snprintf = no; then + gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext" + +fi - gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext" - if test $ac_cv_func_snprintf = yes; then - REPLACE_SNPRINTF=1 - fi : - fi - : + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" - if test $ac_cv_have_decl_snprintf = no; then - HAVE_DECL_SNPRINTF=0 - fi + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" + # Code from module error-progname: + # Code from module exitfail: + # Code from module extensions: + # Code from module fcntl-h: - GNULIB_SNPRINTF=1 - { echo "$as_me:$LINENO: checking for ssize_t" >&5 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } -if test "${gt_cv_ssize_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + : + + + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_fcntl_h='<'fcntl.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_fcntl_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + if test $ac_cv_header_fcntl_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/fcntl.h#{ + s#.*"\(.*/fcntl.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_fcntl_h='<'fcntl.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 +$as_echo "$gl_cv_next_fcntl_h" >&6; } + fi + NEXT_FCNTL_H=$gl_cv_next_fcntl_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'fcntl.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_fcntl_h + fi + NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive + + + + + + for gl_func in fcntl openat; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + int main () { -int x = sizeof (ssize_t *) + sizeof (ssize_t); - return !x; +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_ssize_t=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_ssize_t=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 -echo "${ECHO_T}$gt_cv_ssize_t" >&6; } - if test $gt_cv_ssize_t = no; then - -cat >>confdefs.h <<\_ACEOF -#define ssize_t int +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF - fi + eval ac_cv_have_decl_$gl_func=yes +fi + done + + + # Code from module file-ostream: + # Code from module filename: + # Code from module float: + + + + FLOAT_H= + case "$host_os" in + beos* | openbsd*) + FLOAT_H=float.h + + + + + : - { echo "$as_me:$LINENO: checking for va_copy" >&5 -echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } - if test "${gl_cv_func_va_copy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_float_h='<'float.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_float_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_float_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -int -main () -{ - -#ifndef va_copy -void (*func) (va_list, va_list) = va_copy; -#endif +#include - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_va_copy=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/float.h#{ + s#.*"\(.*/float.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_float_h='<'float.h'>' + fi - gl_cv_func_va_copy=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 +$as_echo "$gl_cv_next_float_h" >&6; } + fi + NEXT_FLOAT_H=$gl_cv_next_float_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'float.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_float_h + fi + NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive - { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5 -echo "${ECHO_T}$gl_cv_func_va_copy" >&6; } - if test $gl_cv_func_va_copy = no; then - # Provide a substitute, either __va_copy or as a simple assignment. - if test "${gl_cv_func___va_copy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + ;; + esac + + + # Code from module fopen: + + + + case "$host_os" in + mingw* | pw*) + REPLACE_FOPEN=1 + gl_cv_func_fopen_slash="guessing no" + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 +$as_echo_n "checking whether fopen recognizes a trailing slash... " >&6; } +if test "${gl_cv_func_fopen_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ + if test "$cross_compiling" = yes; then : -#ifndef __va_copy -error, bail out -#endif + case "$host_os" in + solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;; + hpux*) gl_cv_func_fopen_slash="guessing no" ;; + *) gl_cv_func_fopen_slash="guessing yes" ;; + esac - ; - return 0; +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +int main () +{ + return fopen ("conftest.sl/", "w") != NULL; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func___va_copy=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_fopen_slash=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func___va_copy=no + gl_cv_func_fopen_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + rm -f conftest.sl + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 +$as_echo "$gl_cv_func_fopen_slash" >&6; } + ;; + esac + case "$gl_cv_func_fopen_slash" in + *no) - if test $gl_cv_func___va_copy = yes; then +$as_echo "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define va_copy __va_copy -_ACEOF + REPLACE_FOPEN=1 + ;; + esac + if test $REPLACE_FOPEN = 1; then - else -cat >>confdefs.h <<\_ACEOF -#define va_copy gl_va_copy -_ACEOF - fi - fi + gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext" - # Define two additional variables used in the Makefile substitution. - if test "$ac_cv_header_stdbool_h" = yes; then - STDBOOL_H='' - else - STDBOOL_H='stdbool.h' - fi - if test "$ac_cv_type__Bool" = yes; then - HAVE__BOOL=1 - else - HAVE__BOOL=0 fi + GNULIB_FOPEN=1 - if test $ac_cv_type_long_long_int = yes; then - HAVE_LONG_LONG_INT=1 - else - HAVE_LONG_LONG_INT=0 - fi - if test $ac_cv_type_unsigned_long_long_int = yes; then - HAVE_UNSIGNED_LONG_LONG_INT=1 - else - HAVE_UNSIGNED_LONG_LONG_INT=0 - fi +$as_echo "#define GNULIB_TEST_FOPEN 1" >>confdefs.h - if test $ac_cv_header_inttypes_h = yes; then - HAVE_INTTYPES_H=1 - else - HAVE_INTTYPES_H=0 - fi + # Code from module fstrcmp: + # Code from module fwriteerror: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_FWRITEERROR 1 +_ACEOF + + + # Code from module gcd: + # Code from module getdelim: - if test $ac_cv_header_sys_types_h = yes; then - HAVE_SYS_TYPES_H=1 - else - HAVE_SYS_TYPES_H=0 - fi @@ -52301,1148 +47580,860 @@ - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdint_h='<'stdint.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + : + + + + + + if test $ac_cv_func_getdelim = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 +$as_echo_n "checking for working getdelim function... " >&6; } +if test "${gl_cv_func_working_getdelim+set}" = set; then : + $as_echo_n "(cached) " >&6 else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif - if test $ac_cv_header_stdint_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + gl_cv_func_working_getdelim=yes +else + gl_cv_func_working_getdelim=no +fi +rm -f conftest* + + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getdelim (&line, &siz, '\n', in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getdelim (&line, &siz, '\n', in) == -1) + return 1; + } + return 0; + } _ACEOF - gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdint.h#{ - s#.*"\(.*/stdint.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdint_h='<'stdint.h'>' - fi +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_getdelim=yes +else + gl_cv_func_working_getdelim=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; } - fi - NEXT_STDINT_H=$gl_cv_next_stdint_h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 +$as_echo "$gl_cv_func_working_getdelim" >&6; } + else + gl_cv_func_working_getdelim=no + fi + if test $ac_cv_have_decl_getdelim = no; then + HAVE_DECL_GETDELIM=0 + fi + if test $gl_cv_func_working_getdelim = no; then + if test $ac_cv_func_getdelim = yes; then + REPLACE_GETDELIM=1 + fi - if test $ac_cv_header_stdint_h = yes; then - HAVE_STDINT_H=1 - else - HAVE_STDINT_H=0 - fi - if test $ac_cv_header_stdint_h = yes; then - { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 -echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; } -if test "${gl_cv_header_working_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + + + + gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext" + + + for ac_func in flockfile funlockfile +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 else - gl_cv_header_working_stdint_h=no - cat >conftest.$ac_ext <<_ACEOF + ac_have_decl=0 +fi - /* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ -#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ -#include -/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ -#if !(defined WCHAR_MIN && defined WCHAR_MAX) -#error "WCHAR_MIN, WCHAR_MAX not defined in " -#endif + fi - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#ifdef INT8_MAX -int8_t a1 = INT8_MAX; -int8_t a1min = INT8_MIN; -#endif -#ifdef INT16_MAX -int16_t a2 = INT16_MAX; -int16_t a2min = INT16_MIN; -#endif -#ifdef INT32_MAX -int32_t a3 = INT32_MAX; -int32_t a3min = INT32_MIN; -#endif -#ifdef INT64_MAX -int64_t a4 = INT64_MAX; -int64_t a4min = INT64_MIN; -#endif -#ifdef UINT8_MAX -uint8_t b1 = UINT8_MAX; -#else -typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; -#endif -#ifdef UINT16_MAX -uint16_t b2 = UINT16_MAX; -#endif -#ifdef UINT32_MAX -uint32_t b3 = UINT32_MAX; -#endif -#ifdef UINT64_MAX -uint64_t b4 = UINT64_MAX; -#endif -int_least8_t c1 = INT8_C (0x7f); -int_least8_t c1max = INT_LEAST8_MAX; -int_least8_t c1min = INT_LEAST8_MIN; -int_least16_t c2 = INT16_C (0x7fff); -int_least16_t c2max = INT_LEAST16_MAX; -int_least16_t c2min = INT_LEAST16_MIN; -int_least32_t c3 = INT32_C (0x7fffffff); -int_least32_t c3max = INT_LEAST32_MAX; -int_least32_t c3min = INT_LEAST32_MIN; -int_least64_t c4 = INT64_C (0x7fffffffffffffff); -int_least64_t c4max = INT_LEAST64_MAX; -int_least64_t c4min = INT_LEAST64_MIN; -uint_least8_t d1 = UINT8_C (0xff); -uint_least8_t d1max = UINT_LEAST8_MAX; -uint_least16_t d2 = UINT16_C (0xffff); -uint_least16_t d2max = UINT_LEAST16_MAX; -uint_least32_t d3 = UINT32_C (0xffffffff); -uint_least32_t d3max = UINT_LEAST32_MAX; -uint_least64_t d4 = UINT64_C (0xffffffffffffffff); -uint_least64_t d4max = UINT_LEAST64_MAX; -int_fast8_t e1 = INT_FAST8_MAX; -int_fast8_t e1min = INT_FAST8_MIN; -int_fast16_t e2 = INT_FAST16_MAX; -int_fast16_t e2min = INT_FAST16_MIN; -int_fast32_t e3 = INT_FAST32_MAX; -int_fast32_t e3min = INT_FAST32_MIN; -int_fast64_t e4 = INT_FAST64_MAX; -int_fast64_t e4min = INT_FAST64_MIN; -uint_fast8_t f1 = UINT_FAST8_MAX; -uint_fast16_t f2 = UINT_FAST16_MAX; -uint_fast32_t f3 = UINT_FAST32_MAX; -uint_fast64_t f4 = UINT_FAST64_MAX; -#ifdef INTPTR_MAX -intptr_t g = INTPTR_MAX; -intptr_t gmin = INTPTR_MIN; -#endif -#ifdef UINTPTR_MAX -uintptr_t h = UINTPTR_MAX; -#endif -intmax_t i = INTMAX_MAX; -uintmax_t j = UINTMAX_MAX; -#include /* for CHAR_BIT */ -#define TYPE_MINIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -struct s { - int check_PTRDIFF: - PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) - && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) - ? 1 : -1; - /* Detect bug in FreeBSD 6.0 / ia64. */ - int check_SIG_ATOMIC: - SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) - && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) - ? 1 : -1; - int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; - int check_WCHAR: - WCHAR_MIN == TYPE_MINIMUM (wchar_t) - && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) - ? 1 : -1; - /* Detect bug in mingw. */ - int check_WINT: - WINT_MIN == TYPE_MINIMUM (wint_t) - && WINT_MAX == TYPE_MAXIMUM (wint_t) - ? 1 : -1; + GNULIB_GETDELIM=1 + + + +$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h + + + + # Code from module getline: + + + + + + + : + + - /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ - int check_UINT8_C: - (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; - int check_UINT16_C: - (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; - /* Detect bugs in OpenBSD 3.9 stdint.h. */ -#ifdef UINT8_MAX - int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; -#endif -#ifdef UINT16_MAX - int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; -#endif -#ifdef UINT32_MAX - int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; -#endif -#ifdef UINT64_MAX - int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; -#endif - int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; - int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; - int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; - int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; - int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; - int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; - int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; - int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; - int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; - int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; - int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; -}; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_working_stdint_h=yes + gl_getline_needs_run_time_check=no + ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" +if test "x$ac_cv_func_getline" = x""yes; then : + gl_getline_needs_run_time_check=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am_cv_func_working_getline=no +fi + if test $gl_getline_needs_run_time_check = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 +$as_echo_n "checking for working getline function... " >&6; } +if test "${am_cv_func_working_getline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -fi +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + am_cv_func_working_getline=yes +else + am_cv_func_working_getline=no fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; } - fi - if test "$gl_cv_header_working_stdint_h" = yes; then - STDINT_H= - else +rm -f conftest* -for ac_header in sys/inttypes.h sys/bitypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getline (&line, &siz, in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getline (&line, &siz, in) == -1) + return 1; + } + return 0; + } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_run "$LINENO"; then : + am_cv_func_working_getline=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + am_cv_func_working_getline=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 +$as_echo "$am_cv_func_working_getline" >&6; } + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + if test $ac_cv_have_decl_getline = no; then + HAVE_DECL_GETLINE=0 + fi -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $am_cv_func_working_getline = no; then + REPLACE_GETLINE=1 + + + + + + + + + gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext" + + + + + + + + + + : + + + + + + + + : + + + + + + if test $ac_cv_func_getdelim = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 +$as_echo_n "checking for working getdelim function... " >&6; } +if test "${gl_cv_func_working_getdelim+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include <$ac_header> + +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + gl_cv_func_working_getdelim=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no + gl_cv_func_working_getdelim=no fi +rm -f conftest* -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getdelim (&line, &siz, '\n', in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getdelim (&line, &siz, '\n', in) == -1) + return 1; + } + return 0; + } + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_working_getdelim=yes else - eval "$as_ac_Header=\$ac_header_preproc" + gl_cv_func_working_getdelim=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 +$as_echo "$gl_cv_func_working_getdelim" >&6; } + else + gl_cv_func_working_getdelim=no + fi + + if test $ac_cv_have_decl_getdelim = no; then + HAVE_DECL_GETDELIM=0 + fi + + if test $gl_cv_func_working_getdelim = no; then + if test $ac_cv_func_getdelim = yes; then + REPLACE_GETDELIM=1 + fi + + + + + + + + + gtpo_LIBOBJS="$gtpo_LIBOBJS getdelim.$ac_objext" + + + for ac_func in flockfile funlockfile +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi - done - if test $ac_cv_header_sys_inttypes_h = yes; then - HAVE_SYS_INTTYPES_H=1 - else - HAVE_SYS_INTTYPES_H=0 - fi + ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" +if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi - if test $ac_cv_header_sys_bitypes_h = yes; then - HAVE_SYS_BITYPES_H=1 - else - HAVE_SYS_BITYPES_H=0 - fi +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl +_ACEOF + fi - : + fi + GNULIB_GETLINE=1 +$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h + # Code from module gettext-h: + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module iconv: - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 -echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; } -if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module iconv-h: - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi + : -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; -test_array [0] = 0 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_iconv_h='<'iconv.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_iconv_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_iconv_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/iconv.h#{ + s#.*"\(.*/iconv.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_iconv_h='<'iconv.h'>' + fi - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 +$as_echo "$gl_cv_next_iconv_h" >&6; } + fi + NEXT_ICONV_H=$gl_cv_next_iconv_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'iconv.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_iconv_h + fi + NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + # Code from module iconv_open: -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) result=$ac_lo;; -'') result=unknown ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + if test "$am_cv_func_iconv" = yes; then - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif -#include -static long int longval () { return sizeof ($gltype) * CHAR_BIT; } -static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } -#include -#include -int -main () -{ + ICONV_H='iconv.h' - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof ($gltype) * CHAR_BIT) < 0) - { - long int i = longval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + #if defined _LIBICONV_VERSION || defined __GLIBC__ + gnu_iconv + #endif - ; - return 0; -} _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - result=`cat conftest.val` +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "gnu_iconv" >/dev/null 2>&1; then : + gl_func_iconv_gnu=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -result=unknown -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + gl_func_iconv_gnu=no fi -rm -f conftest.val - eval gl_cv_bitsizeof_${gltype}=\$result +rm -f conftest* -fi -ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_bitsizeof_${gltype} - if test $result = unknown; then - result=0 - fi - GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - cat >>confdefs.h <<_ACEOF -#define BITSIZEOF_${GLTYPE} $result + if test $gl_func_iconv_gnu = no; then + iconv_flavor= + case "$host_os" in + aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; + irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; + hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; + osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; + esac + if test -n "$iconv_flavor"; then + +cat >>confdefs.h <<_ACEOF +#define ICONV_FLAVOR $iconv_flavor _ACEOF - eval BITSIZEOF_${GLTYPE}=\$result - done + + + + ICONV_H='iconv.h' + + REPLACE_ICONV_OPEN=1 + + + + gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext" - for gltype in sig_atomic_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 -echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + fi + fi + fi + + # Code from module include_next: + # Code from module inline: + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 +$as_echo_n "checking whether the compiler generally respects inline... " >&6; } +if test "${gl_cv_c_inline_effective+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_c_inline = no; then + gl_cv_c_inline_effective=no + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - - int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; int main () { - +#ifdef __NO_INLINE__ + #error "inline is not effective" + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - result=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_c_inline_effective=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - result=no + gl_cv_c_inline_effective=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval gl_cv_type_${gltype}_signed=\$result + fi fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_type_${gltype}_signed - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - if test "$result" = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGNED_${GLTYPE} 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 +$as_echo "$gl_cv_c_inline_effective" >&6; } + if test $gl_cv_c_inline_effective = yes; then - eval HAVE_SIGNED_${GLTYPE}=1 - else - eval HAVE_SIGNED_${GLTYPE}=0 - fi - done +$as_echo "#define HAVE_INLINE 1" >>confdefs.h + fi - gl_cv_type_ptrdiff_t_signed=yes - gl_cv_type_size_t_signed=no + # Code from module intprops: + # Code from module libunistring-optional: + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included libunistring" >&5 +$as_echo_n "checking whether to use the included libunistring... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_libunistring_use_included" >&5 +$as_echo "$gl_libunistring_use_included" >&6; } + # Code from module localcharset: - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 -echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval gl_cv_type_${gltype}_suffix=no - eval result=\$gl_cv_type_${gltype}_signed - if test "$result" = yes; then - glsufu= - else - glsufu=u - fi - for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do - case $glsuf in - '') gltype1='int';; - l) gltype1='long int';; - ll) gltype1='long long int';; - i64) gltype1='__int64';; - u) gltype1='unsigned int';; - ul) gltype1='unsigned long int';; - ull) gltype1='unsigned long long int';; - ui64)gltype1='unsigned __int64';; - esac - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + : - extern $gltype foo; - extern $gltype1 foo; + + + + + + + + + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" + + # Code from module lock: + + + if test "$gl_threads_api" = posix; then + # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the + # pthread_rwlock_* functions. + ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include +" +if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : + +$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h + +fi + + # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { - +#if __FreeBSD__ == 4 +error "No, in FreeBSD 4.0 recursive mutexes actually don't work." +#else +int x = (int)PTHREAD_MUTEX_RECURSIVE; +return !x; +#endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval gl_cv_type_${gltype}_suffix=\$glsuf -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : +$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" != no && break - done -fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" = no && result= - eval ${GLTYPE}_SUFFIX=\$result - cat >>confdefs.h <<_ACEOF -#define ${GLTYPE}_SUFFIX $result -_ACEOF + fi - done - STDINT_H=stdint.h + # Code from module malloc-posix: + + + if test $gl_cv_func_malloc_posix = yes; then + HAVE_MALLOC_POSIX=1 + +$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h + + else + + + + + + + + + gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext" + + HAVE_MALLOC_POSIX=0 fi - { echo "$as_me:$LINENO: checking for wchar_t" >&5 -echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wchar_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + GNULIB_MALLOC_POSIX=1 + + + +$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h + + + + # Code from module malloca: + + + + + # Code from module mbrtowc: + + + + + + + + + + : + + + + + + + : + + + + + + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - wchar_t foo = (wchar_t)'\0'; -int -main () -{ - ; +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wchar_t=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_wchar_t=no + gl_cv_func_mbrtowc_incomplete_state=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 -echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } - if test $gt_cv_c_wchar_t = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } -cat >>confdefs.h <<\_ACEOF -#define HAVE_WCHAR_T 1 -_ACEOF - fi - { echo "$as_me:$LINENO: checking for wint_t" >&5 -echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } -if test "${gt_cv_c_wint_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include +#include +#include +#include #include - wint_t foo = (wchar_t)'\0'; -int -main () +int main () { - - ; + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_c_wint_t=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_c_wint_t=no + gl_cv_func_mbrtowc_sanitycheck=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 -echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } - if test $gt_cv_c_wint_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WINT_T 1 -_ACEOF + fi - fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : + fi @@ -53452,100 +48443,230 @@ + if test $ac_cv_func_mbrtowc = no; then + HAVE_MBRTOWC=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBRTOWC=1 + else + - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdio_h='<'stdio.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdio_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 +$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; } +if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_stdio_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + # Guess no on OSF/1. + osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + mbstate_t state; + wchar_t wc; + int ret; + + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + mbrtowc (&wc, NULL, 5, &state); + /* Check that wc was not modified. */ + if (wc != (wchar_t) 0xBADFACE) + return 1; + } + return 0; +} _ACEOF - gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdio.h#{ - s#.*"\(.*/stdio.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdio_h='<'stdio.h'>' - fi - +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_null_arg=yes +else + gl_cv_func_mbrtowc_null_arg=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; } - fi - NEXT_STDIO_H=$gl_cv_next_stdio_h - + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5 +$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 +$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; } +if test "${gl_cv_func_mbrtowc_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_retval="guessing yes" ;; + esac + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +int main () +{ + /* This fails on Solaris. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 1) + return 1; + } + } + /* This fails on HP-UX 11.11. */ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 2) + return 1; + } + } + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_retval=yes +else + gl_cv_func_mbrtowc_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_retval" >&6; } - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdlib_h='<'stdlib.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 +$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } +if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_stdlib_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + # Guess no on Solaris 8 and 9. + solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8 and 9. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, "", 1, &state) != 0) + return 1; + } + return 0; +} _ACEOF - gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdlib.h#{ - s#.*"\(.*/stdlib.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdlib_h='<'stdlib.h'>' - fi +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_nul_retval=yes +else + gl_cv_func_mbrtowc_nul_retval=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; } - fi - NEXT_STDLIB_H=$gl_cv_next_stdlib_h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 +$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } + case "$gl_cv_func_mbrtowc_null_arg" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_nul_retval" in + *yes) ;; + *) +$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h + REPLACE_MBRTOWC=1 + ;; + esac + fi + fi + if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then + : @@ -53555,245 +48676,202 @@ + gtpo_LIBOBJS="$gtpo_LIBOBJS mbrtowc.$ac_objext" + : + fi -for ac_func in stpcpy -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + GNULIB_MBRTOWC=1 -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi +$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h + + + + # Code from module mbsinit: + + -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done - if test $ac_cv_func_stpcpy = no; then - HAVE_STPCPY=0 : - fi - GNULIB_STPCPY=1 + : + + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then - { echo "$as_me:$LINENO: checking for working stpncpy" >&5 -echo $ECHO_N "checking for working stpncpy... $ECHO_C" >&6; } -if test "${gl_cv_func_stpncpy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 +$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } +if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac + if test $LOCALE_JA != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#ifdef __GNU_LIBRARY__ - Thanks for using GNU -#endif - +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } + return 0; +} _ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Thanks for using GNU" >/dev/null 2>&1; then - gl_cv_func_stpncpy=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_incomplete_state=yes else - gl_cv_func_stpncpy=no + gl_cv_func_mbrtowc_incomplete_state=no fi -rm -f conftest* +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 +$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; } + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 +$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; } +if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac + if test $LOCALE_ZH_CN != none; then + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include #include -#include /* for strcpy */ -/* The stpncpy prototype is missing in on AIX 4. */ -extern char *stpncpy (char *dest, const char *src, size_t n); -int main () { - const char *src = "Hello"; - char dest[10]; - /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here. */ - strcpy (dest, "\377\377\377\377\377\377"); - if (stpncpy (dest, src, 2) != dest + 2) exit(1); - /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here. */ - strcpy (dest, "\377\377\377\377\377\377"); - if (stpncpy (dest, src, 5) != dest + 5) exit(1); - /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here. */ - strcpy (dest, "\377\377\377\377\377\377"); - if (stpncpy (dest, src, 7) != dest + 5) exit(1); - exit(0); +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } + return 0; } - _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_stpncpy=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_mbrtowc_sanitycheck=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gl_cv_func_stpncpy=no + gl_cv_func_mbrtowc_sanitycheck=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_stpncpy" >&5 -echo "${ECHO_T}$gl_cv_func_stpncpy" >&6; } - - if test $gl_cv_func_stpncpy = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_STPNCPY 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 +$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; } + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac else - HAVE_STPNCPY=0 + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + : + fi + : - gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext" - : + if test $ac_cv_func_mbsinit = no; then + HAVE_MBSINIT=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSINIT=1 + fi fi + if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then + : - GNULIB_STPNCPY=1 @@ -53801,380 +48879,232 @@ + gtpo_LIBOBJS="$gtpo_LIBOBJS mbsinit.$ac_objext" + : -for ac_func in strcspn -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + fi -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + GNULIB_MBSINIT=1 -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + # Code from module mbswidth: - if test $ac_cv_func_strcspn = no; then - : - fi + : + : -for ac_func in strdup -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in " >&5 +$as_echo_n "checking whether mbswidth is declared in ... " >&6; } +if test "${ac_cv_have_decl_mbswidth+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include int main () { -return $ac_func (); + + char *p = (char *) mbswidth; + return !p; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_have_decl_mbswidth=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_have_decl_mbswidth=no fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5 +$as_echo "$ac_cv_have_decl_mbswidth" >&6; } + if test $ac_cv_have_decl_mbswidth = yes; then + ac_val=1 + else + ac_val=0 + fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val _ACEOF -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 +$as_echo_n "checking for mbstate_t... " >&6; } +if test "${ac_cv_type_mbstate_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +# include +int +main () +{ +mbstate_t x; return sizeof x; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_mbstate_t=yes +else + ac_cv_type_mbstate_t=no fi -done +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 +$as_echo "$ac_cv_type_mbstate_t" >&6; } + if test $ac_cv_type_mbstate_t = yes; then +$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h + else - : +$as_echo "#define mbstate_t int" >>confdefs.h + fi + # Code from module memchr: - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 - fi - : + GNULIB_MEMCHR=1 - GNULIB_STRDUP=1 +$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h - if test $gl_cv_func_working_strerror = no; then + # Code from module minmax: + # Code from module moo: - gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler is actually a C++ compiler" >&5 +$as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; } +if test "${gl_cv_c_cplusplus+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __cplusplus + Is c++ +#endif -cat >>confdefs.h <<_ACEOF -#define REPLACE_STRERROR $REPLACE_STRERROR _ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Is c++" >/dev/null 2>&1; then : + gl_cv_c_cplusplus=yes +else + gl_cv_c_cplusplus=no +fi +rm -f conftest* - fi - - +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_cplusplus" >&5 +$as_echo "$gl_cv_c_cplusplus" >&6; } + if test $gl_cv_c_cplusplus = yes; then - GNULIB_STRERROR=1 +$as_echo "#define IS_CPLUSPLUS 1" >>confdefs.h - if test $gl_cond_libtool = false; then - gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" - gl_libdeps="$gl_libdeps $LIBICONV" fi + # Code from module multiarch: + # Code from module obstack: - : - if test $ac_cv_have_decl_strnlen = no; then - HAVE_DECL_STRNLEN=0 - fi - { echo "$as_me:$LINENO: checking for working strnlen" >&5 -echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; } -if test "${ac_cv_func_strnlen_working+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strnlen_working=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5 +$as_echo_n "checking for obstacks... " >&6; } +if test "${ac_cv_func_obstack+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default + #include "obstack.h" int main () { - -#define S "foobar" -#define S_LEN (sizeof S - 1) - - /* At least one implementation is buggy: that of AIX 4.3 would - give strnlen (S, 1) == 3. */ - - int i; - for (i = 0; i < S_LEN + 1; ++i) - { - int expected = i <= S_LEN ? i : S_LEN; - if (strnlen (S, i) != expected) - return 1; - } - return 0; - +struct obstack mem; + #define obstack_chunk_alloc malloc + #define obstack_chunk_free free + obstack_init (&mem); + obstack_free (&mem, 0); ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_strnlen_working=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_func_obstack=yes else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_func_strnlen_working=no + ac_cv_func_obstack=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 -echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; } -test $ac_cv_func_strnlen_working = no && - - - - - - - gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext" - - - if test $ac_cv_func_strnlen_working = no; then - # This is necessary because automake-1.6.1 doesn't understand - # that the above use of AC_FUNC_STRNLEN means we may have to use - # lib/strnlen.c. - #AC_LIBOBJ(strnlen) - -cat >>confdefs.h <<\_ACEOF -#define strnlen rpl_strnlen -_ACEOF - - : - fi - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5 +$as_echo "$ac_cv_func_obstack" >&6; } +if test $ac_cv_func_obstack = yes; then +$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h - GNULIB_STRNLEN=1 +else @@ -54183,222 +49113,100 @@ + gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext" +fi + # Code from module open: -for ac_func in strpbrk -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + case "$host_os" in + mingw* | pw*) -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + REPLACE_OPEN=1 -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -else - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext" - if test $ac_cv_func_strpbrk = no; then - HAVE_STRPBRK=0 - : - fi - GNULIB_STRPBRK=1 + : + ;; + *) + : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 +$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } +if test "${gl_cv_func_open_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + touch conftest.tmp + ln -s conftest.tmp conftest.lnk + fi + if test "$cross_compiling" = yes; then : + case "$host_os" in + freebsd*) gl_cv_func_open_slash="guessing no" ;; + solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;; + hpux*) gl_cv_func_open_slash="guessing no" ;; + *) gl_cv_func_open_slash="guessing yes" ;; + esac -for ac_func in strtol -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#include +#if HAVE_UNISTD_H +# include #endif - -int -main () +int main () { -return $ac_func (); - ; - return 0; +#if HAVE_LSTAT + if (open ("conftest.lnk/", O_RDONLY) != -1) return 2; +#endif + return open ("conftest.sl/", O_CREAT, 0600) >= 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_open_slash=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_open_slash=no fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + rm -f conftest.sl conftest.tmp conftest.lnk -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 +$as_echo "$gl_cv_func_open_slash" >&6; } + case "$gl_cv_func_open_slash" in + *no) -else +$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" -fi -done + REPLACE_OPEN=1 @@ -54407,344 +49215,107 @@ + gtpo_LIBOBJS="$gtpo_LIBOBJS open.$ac_objext" -for ac_func in strtoul -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + : -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + ;; + esac + ;; + esac -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + GNULIB_OPEN=1 + + + +$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h + + + # Code from module ostream: + # Code from module progname: + ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then : + ac_have_decl=1 else + ac_have_decl=0 +fi - gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext" +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl +_ACEOF + ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include +" +if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 fi -done +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl +_ACEOF + # Code from module realloc-posix: + if test $gl_cv_func_malloc_posix = yes; then + HAVE_REALLOC_POSIX=1 - : +$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h + else - if test $ac_cv_func_lstat = yes; then - HAVE_LSTAT=1 - else - HAVE_LSTAT=0 - fi - { echo "$as_me:$LINENO: checking whether mkdir is declared" >&5 -echo $ECHO_N "checking whether mkdir is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef mkdir - (void) mkdir; -#endif - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_mkdir=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext" - ac_cv_have_decl_mkdir=no -fi + HAVE_REALLOC_POSIX=0 + fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5 -echo "${ECHO_T}$ac_cv_have_decl_mkdir" >&6; } -if test $ac_cv_have_decl_mkdir = yes; then -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MKDIR 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MKDIR 0 -_ACEOF + GNULIB_REALLOC_POSIX=1 -for ac_header in io.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + # Code from module relocatable-lib: -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } + if test $RELOCATABLE = yes; then + -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -fi - if test $ac_cv_have_decl_mkdir = yes; then - HAVE_DECL_MKDIR=1 - else - HAVE_DECL_MKDIR=0 - fi - if test "$ac_cv_header_io_h" = yes; then - HAVE_IO_H=1 - else - HAVE_IO_H=0 - fi + gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext" + fi + # Code from module signal: @@ -54760,467 +49331,471 @@ if test $gl_cv_have_include_next = yes; then - gl_cv_next_sys_stat_h='<'sys/stat.h'>' + gl_cv_next_signal_h='<'signal.h'>' else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_sys_stat_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_signal_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_sys_stat_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_signal_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include _ACEOF - gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/sys/stat.h#{ - s#.*"\(.*/sys/stat.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_sys_stat_h='<'sys/stat.h'>' - fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/signal.h#{ + s#.*"\(.*/signal.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_signal_h='<'signal.h'>' + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5 -echo "${ECHO_T}$gl_cv_next_sys_stat_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 +$as_echo "$gl_cv_next_signal_h" >&6; } fi - NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h - + NEXT_SIGNAL_H=$gl_cv_next_signal_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'signal.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_signal_h + fi + NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive - SYS_STAT_H='sys/stat.h' - { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS +# AIX declares sig_atomic_t to already include volatile, and C89 compilers +# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. + ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " +#include -fi +" +if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi +else + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } - { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } -if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done -done -IFS=$as_save_IFS + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#undef $gl_func + (void) $gl_func; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" +else + eval "$as_gl_Symbol=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version - MKDIR_P="$ac_install_sh -d" - fi + eval ac_cv_have_decl_$gl_func=yes fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } + done + # Code from module sigpipe: +cat >>confdefs.h <<_ACEOF +#define GNULIB_SIGPIPE 1 +_ACEOF + GNULIB_SIGNAL_H_SIGPIPE=1 - gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext" + GNULIB_STDIO_H_SIGPIPE=1 + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: - : + signals_not_posix= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "sigset_t" >/dev/null 2>&1; then : + +else + signals_not_posix=1 +fi +rm -f conftest* + + if test -z "$signals_not_posix"; then + ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" +if test "x$ac_cv_func_sigprocmask" = x""yes; then : + gl_cv_func_sigprocmask=1 +fi + + fi + if test -z "$gl_cv_func_sigprocmask"; then + HAVE_POSIX_SIGNALBLOCKING=0 - if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then + gtpo_LIBOBJS="$gtpo_LIBOBJS sigprocmask.$ac_objext" + ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include +/* Mingw defines sigset_t not in , but in . */ +#include +" +if test "x$ac_cv_type_sigset_t" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_SIGSET_T 1 +_ACEOF - gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext" +gl_cv_type_sigset_t=yes +else + gl_cv_type_sigset_t=no +fi + if test $gl_cv_type_sigset_t != yes; then + HAVE_SIGSET_T=0 fi - case "$gl_cv_terminfo" in - no*) - case "$gl_cv_termcap" in - no*) + fi + GNULIB_SIGPROCMASK=1 - gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext" - ;; - esac - ;; - esac +$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h - LIBSCHED= - if test $gl_threads_api = posix; then - { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 -echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; } -if test "${ac_cv_lib_rt_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lrt $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + # Code from module size_max: + + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STDINT_H 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + +fi + +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 +$as_echo_n "checking for SIZE_MAX... " >&6; } +if test "${gl_cv_size_max+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + gl_cv_size_max= + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" +#include +#if HAVE_STDINT_H +#include +#endif +#ifdef SIZE_MAX +Found it #endif -char sched_yield (); -int -main () -{ -return sched_yield (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_rt_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_lib_rt_sched_yield=no +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Found it" >/dev/null 2>&1; then : + gl_cv_size_max=yes fi +rm -f conftest* -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + if test -z "$gl_cv_size_max"; then + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include +#include "; then : + +else + size_t_bits_minus_1= fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; } -if test $ac_cv_lib_rt_sched_yield = yes; then - LIBSCHED=-lrt -else - { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 -echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; } -if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : + else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lposix4 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + fits_in_uint= +fi + + if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then + if test $fits_in_uint = 1; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include + extern size_t foo; + extern unsigned long foo; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char sched_yield (); int main () { -return sched_yield (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_posix4_sched_yield=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_posix4_sched_yield=no +if ac_fn_c_try_compile "$LINENO"; then : + fits_in_uint=0 fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $fits_in_uint = 1; then + gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" + else + gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" + fi + else + gl_cv_size_max='((size_t)~(size_t)0)' + fi + fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 -echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; } -if test $ac_cv_lib_posix4_sched_yield = yes; then - LIBSCHED=-lposix4 fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 +$as_echo "$gl_cv_size_max" >&6; } + if test "$gl_cv_size_max" != yes; then -fi +cat >>confdefs.h <<_ACEOF +#define SIZE_MAX $gl_cv_size_max +_ACEOF fi + # Code from module stat: -for ac_func in __secure_getenv -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + : + -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 +$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } +if test "${gl_cv_func_stat_dir_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + case $host_os in + mingw*) gl_cv_func_stat_dir_slash="guessing no";; + *) gl_cv_func_stat_dir_slash="guessing yes";; + esac +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +struct stat st; return stat (".", &st) != stat ("./", &st); ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_dir_slash=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + gl_cv_func_stat_dir_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 +$as_echo "$gl_cv_func_stat_dir_slash" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 +$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } +if test "${gl_cv_func_stat_file_slash+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + touch conftest.tmp + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + ln -s conftest.tmp conftest.lnk + fi + if test "$cross_compiling" = yes; then : + gl_cv_func_stat_file_slash="guessing no" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main () +{ +struct stat st; + if (!stat ("conftest.tmp/", &st)) return 1; +#if HAVE_LSTAT + if (!stat ("conftest.lnk/", &st)) return 2; +#endif + + ; + return 0; +} _ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_stat_file_slash=yes +else + gl_cv_func_stat_file_slash=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + rm -f conftest.tmp conftest.lnk fi -done +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 +$as_echo "$gl_cv_func_stat_file_slash" >&6; } + case $gl_cv_func_stat_dir_slash in + *no) REPLACE_STAT=1 +$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h +;; + esac + case $gl_cv_func_stat_file_slash in + *no) REPLACE_STAT=1 +$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h +;; + esac + if test $REPLACE_STAT = 1; then - : + gtpo_LIBOBJS="$gtpo_LIBOBJS stat.$ac_objext" + fi - if test $gl_cv_have_include_next = yes; then - gl_cv_next_unistd_h='<'unistd.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_unistd_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + GNULIB_STAT=1 + + + +$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h + + + + # Code from module stdarg: + + STDARG_H=''; + NEXT_STDARG_H=''; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 +$as_echo_n "checking for va_copy... " >&6; } + if test "${gl_cv_func_va_copy+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_unistd_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +int +main () +{ + +#ifndef va_copy +void (*func) (va_list, va_list) = va_copy; +#endif + ; + return 0; +} _ACEOF - gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/unistd.h#{ - s#.*"\(.*/unistd.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_unistd_h='<'unistd.h'>' - fi +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_va_copy=yes +else + gl_cv_func_va_copy=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 +$as_echo "$gl_cv_func_va_copy" >&6; } + if test $gl_cv_func_va_copy = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined _AIX && !defined __GNUC__ + AIX vaccine + #endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "vaccine" >/dev/null 2>&1; then : + gl_aixcc=yes +else + gl_aixcc=no fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5 -echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; } - fi - NEXT_UNISTD_H=$gl_cv_next_unistd_h +rm -f conftest* + if test $gl_aixcc = yes; then + STDARG_H=stdarg.h @@ -55231,68 +49806,165 @@ - if test $ac_cv_header_unistd_h = yes; then - HAVE_UNISTD_H=1 - else - HAVE_UNISTD_H=0 - fi + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdarg_h='<'stdarg.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdarg_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stdarg_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U16_MBTOUC 1 _ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdarg.h#{ + s#.*"\(.*/stdarg.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdarg_h='<'stdarg.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 +$as_echo "$gl_cv_next_stdarg_h" >&6; } + fi + NEXT_STDARG_H=$gl_cv_next_stdarg_h - - -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1 -_ACEOF - + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdarg.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdarg_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_MBTOUC 1 -_ACEOF + if test "$gl_cv_next_stdarg_h" = '""'; then + gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' + NEXT_STDARG_H="$gl_cv_next_stdarg_h" + fi + else + saved_as_echo_n="$as_echo_n" + as_echo_n=':' + if test "${gl_cv_func___va_copy+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +#ifndef __va_copy +error, bail out +#endif -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1 + ; + return 0; +} _ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func___va_copy=yes +else + gl_cv_func___va_copy=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + as_echo_n="$saved_as_echo_n" + if test $gl_cv_func___va_copy = yes; then +$as_echo "#define va_copy __va_copy" >>confdefs.h -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_UCTOMB 1 -_ACEOF + else +$as_echo "#define va_copy gl_va_copy" >>confdefs.h + fi + fi + fi -cat >>confdefs.h <<\_ACEOF -#define USE_UNLOCKED_IO 1 -_ACEOF + # Code from module stdbool: + # Define two additional variables used in the Makefile substitution. + if test "$ac_cv_header_stdbool_h" = yes; then + STDBOOL_H='' + else + STDBOOL_H='stdbool.h' + fi - : + if test "$ac_cv_type__Bool" = yes; then + HAVE__BOOL=1 + else + HAVE__BOOL=0 + fi + # Code from module stddef: - : + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 +$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } +if test "${gl_cv_decl_null_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_decl_null_works=yes +else + gl_cv_decl_null_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 +$as_echo "$gl_cv_decl_null_works" >&6; } + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then @@ -55304,28 +49976,86 @@ - : + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stddef_h='<'stddef.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stddef_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stddef_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stddef.h#{ + s#.*"\(.*/stddef.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stddef_h='<'stddef.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 +$as_echo "$gl_cv_next_stddef_h" >&6; } + fi + NEXT_STDDEF_H=$gl_cv_next_stddef_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stddef.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stddef_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive - : + fi + # Code from module stdint: - : + if test $ac_cv_type_long_long_int = yes; then + HAVE_LONG_LONG_INT=1 + else + HAVE_LONG_LONG_INT=0 + fi + if test $ac_cv_type_unsigned_long_long_int = yes; then + HAVE_UNSIGNED_LONG_LONG_INT=1 + else + HAVE_UNSIGNED_LONG_LONG_INT=0 + fi + if test $ac_cv_header_inttypes_h = yes; then + HAVE_INTTYPES_H=1 + else + HAVE_INTTYPES_H=0 + fi - : + if test $ac_cv_header_sys_types_h = yes; then + HAVE_SYS_TYPES_H=1 + else + HAVE_SYS_TYPES_H=0 + fi @@ -55339,51 +50069,357 @@ - : + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdint_h='<'stdint.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_stdint_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdint.h#{ + s#.*"\(.*/stdint.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdint_h='<'stdint.h'>' + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 +$as_echo "$gl_cv_next_stdint_h" >&6; } + fi + NEXT_STDINT_H=$gl_cv_next_stdint_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdint.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdint_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive - : + if test $ac_cv_header_stdint_h = yes; then + HAVE_STDINT_H=1 + else + HAVE_STDINT_H=0 + fi + if test $ac_cv_header_stdint_h = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 +$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } +if test "${gl_cv_header_working_stdint_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gl_cv_header_working_stdint_h=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include +/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ +#if !(defined WCHAR_MIN && defined WCHAR_MAX) +#error "WCHAR_MIN, WCHAR_MAX not defined in " +#endif - : + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#ifdef INT8_MAX +int8_t a1 = INT8_MAX; +int8_t a1min = INT8_MIN; +#endif +#ifdef INT16_MAX +int16_t a2 = INT16_MAX; +int16_t a2min = INT16_MIN; +#endif +#ifdef INT32_MAX +int32_t a3 = INT32_MAX; +int32_t a3min = INT32_MIN; +#endif +#ifdef INT64_MAX +int64_t a4 = INT64_MAX; +int64_t a4min = INT64_MIN; +#endif +#ifdef UINT8_MAX +uint8_t b1 = UINT8_MAX; +#else +typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; +#endif +#ifdef UINT16_MAX +uint16_t b2 = UINT16_MAX; +#endif +#ifdef UINT32_MAX +uint32_t b3 = UINT32_MAX; +#endif +#ifdef UINT64_MAX +uint64_t b4 = UINT64_MAX; +#endif +int_least8_t c1 = INT8_C (0x7f); +int_least8_t c1max = INT_LEAST8_MAX; +int_least8_t c1min = INT_LEAST8_MIN; +int_least16_t c2 = INT16_C (0x7fff); +int_least16_t c2max = INT_LEAST16_MAX; +int_least16_t c2min = INT_LEAST16_MIN; +int_least32_t c3 = INT32_C (0x7fffffff); +int_least32_t c3max = INT_LEAST32_MAX; +int_least32_t c3min = INT_LEAST32_MIN; +int_least64_t c4 = INT64_C (0x7fffffffffffffff); +int_least64_t c4max = INT_LEAST64_MAX; +int_least64_t c4min = INT_LEAST64_MIN; +uint_least8_t d1 = UINT8_C (0xff); +uint_least8_t d1max = UINT_LEAST8_MAX; +uint_least16_t d2 = UINT16_C (0xffff); +uint_least16_t d2max = UINT_LEAST16_MAX; +uint_least32_t d3 = UINT32_C (0xffffffff); +uint_least32_t d3max = UINT_LEAST32_MAX; +uint_least64_t d4 = UINT64_C (0xffffffffffffffff); +uint_least64_t d4max = UINT_LEAST64_MAX; +int_fast8_t e1 = INT_FAST8_MAX; +int_fast8_t e1min = INT_FAST8_MIN; +int_fast16_t e2 = INT_FAST16_MAX; +int_fast16_t e2min = INT_FAST16_MIN; +int_fast32_t e3 = INT_FAST32_MAX; +int_fast32_t e3min = INT_FAST32_MIN; +int_fast64_t e4 = INT_FAST64_MAX; +int_fast64_t e4min = INT_FAST64_MIN; +uint_fast8_t f1 = UINT_FAST8_MAX; +uint_fast16_t f2 = UINT_FAST16_MAX; +uint_fast32_t f3 = UINT_FAST32_MAX; +uint_fast64_t f4 = UINT_FAST64_MAX; +#ifdef INTPTR_MAX +intptr_t g = INTPTR_MAX; +intptr_t gmin = INTPTR_MIN; +#endif +#ifdef UINTPTR_MAX +uintptr_t h = UINTPTR_MAX; +#endif +intmax_t i = INTMAX_MAX; +uintmax_t j = UINTMAX_MAX; +#include /* for CHAR_BIT */ +#define TYPE_MINIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +#define TYPE_MAXIMUM(t) \ + ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) +struct s { + int check_PTRDIFF: + PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) + && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) + ? 1 : -1; + /* Detect bug in FreeBSD 6.0 / ia64. */ + int check_SIG_ATOMIC: + SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) + && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) + ? 1 : -1; + int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; + int check_WCHAR: + WCHAR_MIN == TYPE_MINIMUM (wchar_t) + && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) + ? 1 : -1; + /* Detect bug in mingw. */ + int check_WINT: + WINT_MIN == TYPE_MINIMUM (wint_t) + && WINT_MAX == TYPE_MAXIMUM (wint_t) + ? 1 : -1; + /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ + int check_UINT8_C: + (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; + int check_UINT16_C: + (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; - : + /* Detect bugs in OpenBSD 3.9 stdint.h. */ +#ifdef UINT8_MAX + int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; +#endif +#ifdef UINT16_MAX + int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; +#endif +#ifdef UINT32_MAX + int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; +#endif +#ifdef UINT64_MAX + int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; +#endif + int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; + int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; + int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; + int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; + int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; + int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; + int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; + int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; + int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; + int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; + int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; +}; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if test "$cross_compiling" = yes; then : + gl_cv_header_working_stdint_h=yes +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include - : + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#include +#include +#define MVAL(macro) MVAL1(macro) +#define MVAL1(expression) #expression +static const char *macro_values[] = + { +#ifdef INT8_MAX + MVAL (INT8_MAX), +#endif +#ifdef INT16_MAX + MVAL (INT16_MAX), +#endif +#ifdef INT32_MAX + MVAL (INT32_MAX), +#endif +#ifdef INT64_MAX + MVAL (INT64_MAX), +#endif +#ifdef UINT8_MAX + MVAL (UINT8_MAX), +#endif +#ifdef UINT16_MAX + MVAL (UINT16_MAX), +#endif +#ifdef UINT32_MAX + MVAL (UINT32_MAX), +#endif +#ifdef UINT64_MAX + MVAL (UINT64_MAX), +#endif + NULL + }; +int +main () +{ + const char **mv; + for (mv = macro_values; *mv != NULL; mv++) + { + const char *value = *mv; + /* Test whether it looks like a cast expression. */ + if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 + || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 + || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 + || strncmp (value, "((int)"/*)*/, 6) == 0 + || strncmp (value, "((signed short)"/*)*/, 15) == 0 + || strncmp (value, "((signed char)"/*)*/, 14) == 0) + return 1; + } + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_header_working_stdint_h=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - : +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 +$as_echo "$gl_cv_header_working_stdint_h" >&6; } + fi + if test "$gl_cv_header_working_stdint_h" = yes; then + STDINT_H= + else + for ac_header in sys/inttypes.h sys/bitypes.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" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF +fi +done + if test $ac_cv_header_sys_inttypes_h = yes; then + HAVE_SYS_INTTYPES_H=1 + else + HAVE_SYS_INTTYPES_H=0 + fi + if test $ac_cv_header_sys_bitypes_h = yes; then + HAVE_SYS_BITYPES_H=1 + else + HAVE_SYS_BITYPES_H=0 + fi - if test $ac_cv_func_vasnprintf = no; then : @@ -55395,523 +50431,586 @@ + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#include "; then : - gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" - - - - +else + result=unknown +fi + eval gl_cv_bitsizeof_${gltype}=\$result +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF + eval BITSIZEOF_${GLTYPE}=\$result + done - gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" + fi + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 +$as_echo_n "checking for bit size of $gltype... " >&6; } +if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif +#include "; then : +else + result=unknown +fi + eval gl_cv_bitsizeof_${gltype}=\$result +fi +eval ac_res=\$gl_cv_bitsizeof_${gltype} + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_bitsizeof_${gltype} + if test $result = unknown; then + result=0 + fi + GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + cat >>confdefs.h <<_ACEOF +#define BITSIZEOF_${GLTYPE} $result +_ACEOF - gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" + eval BITSIZEOF_${GLTYPE}=\$result + done + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 +$as_echo_n "checking whether $gltype is signed... " >&6; } +if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + result=yes +else + result=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval gl_cv_type_${gltype}_signed=\$result - gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" +fi +eval ac_res=\$gl_cv_type_${gltype}_signed + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval result=\$gl_cv_type_${gltype}_signed + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + if test "$result" = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_SIGNED_${GLTYPE} 1 +_ACEOF - if test $ac_cv_func_vasnprintf = yes; then + eval HAVE_SIGNED_${GLTYPE}=1 + else + eval HAVE_SIGNED_${GLTYPE}=0 + fi + done -cat >>confdefs.h <<\_ACEOF -#define REPLACE_VASNPRINTF 1 -_ACEOF - fi + gl_cv_type_ptrdiff_t_signed=yes + gl_cv_type_size_t_signed=no + if test $APPLE_UNIVERSAL_BUILD = 0; then + for gltype in ptrdiff_t size_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + extern $gltype foo; + extern $gltype1 foo; +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done +fi +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result +_ACEOF + done + fi - { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gltype in sig_atomic_t wchar_t wint_t ; do + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 +$as_echo_n "checking for $gltype integer literal suffix... " >&6; } +if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + eval gl_cv_type_${gltype}_suffix=no + eval result=\$gl_cv_type_${gltype}_signed + if test "$result" = yes; then + glsufu= + else + glsufu=u + fi + for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do + case $glsuf in + '') gltype1='int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; + ui64)gltype1='unsigned __int64';; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -typedef ptrdiff_t ac__type_new_; + + /* BSD/OS 4.0.1 has a bug: , and must be + included before . */ + #include + #include + #if HAVE_WCHAR_H + # include + # include + # include + #endif + + extern $gltype foo; + extern $gltype1 foo; int main () { -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_ptrdiff_t=no +if ac_fn_c_try_compile "$LINENO"; then : + eval gl_cv_type_${gltype}_suffix=\$glsuf fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" != no && break + done fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PTRDIFF_T 1 +eval ac_res=\$gl_cv_type_${gltype}_suffix + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` + eval result=\$gl_cv_type_${gltype}_suffix + test "$result" = no && result= + eval ${GLTYPE}_SUFFIX=\$result + cat >>confdefs.h <<_ACEOF +#define ${GLTYPE}_SUFFIX $result _ACEOF + done -fi + STDINT_H=stdint.h + fi + # Code from module stdio: -for ac_func in snprintf wcslen -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + : -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done - { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 -echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl__snprintf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdio_h='<'stdio.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdio_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_stdio_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -int -main () -{ -#ifndef _snprintf - (void) _snprintf; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl__snprintf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdio.h#{ + s#.*"\(.*/stdio.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdio_h='<'stdio.h'>' + fi - ac_cv_have_decl__snprintf=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 +$as_echo "$gl_cv_next_stdio_h" >&6; } + fi + NEXT_STDIO_H=$gl_cv_next_stdio_h -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 -echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } -if test $ac_cv_have_decl__snprintf = yes; then + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdio.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdio_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF 1 -_ACEOF -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL__SNPRINTF 0 -_ACEOF + GNULIB_FPRINTF=1 + GNULIB_PRINTF=1 + GNULIB_VFPRINTF=1 + GNULIB_VPRINTF=1 + GNULIB_FPUTC=1 + GNULIB_PUTC=1 + GNULIB_PUTCHAR=1 + GNULIB_FPUTS=1 + GNULIB_PUTS=1 + GNULIB_FWRITE=1 -fi + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_STDIO_WRITE_FUNCS=1 - fi -for ac_func in vasprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + gtpo_LIBOBJS="$gtpo_LIBOBJS stdio-write.$ac_objext" -#ifdef __STDC__ -# include -#else -# include -#endif + fi -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + + for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done + done - if test $ac_cv_func_vasprintf = no; then + # Code from module stdlib: + : - gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext" - if test $ac_cv_func_vasprintf = yes; then - REPLACE_VASPRINTF=1 - else - HAVE_VASPRINTF=0 - fi - fi + if test $gl_cv_have_include_next = yes; then + gl_cv_next_stdlib_h='<'stdlib.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_stdlib_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test $ac_cv_header_stdlib_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/stdlib.h#{ + s#.*"\(.*/stdlib.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_stdlib_h='<'stdlib.h'>' + fi - GNULIB_VASPRINTF=1 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 +$as_echo "$gl_cv_next_stdlib_h" >&6; } + fi + NEXT_STDLIB_H=$gl_cv_next_stdlib_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'stdlib.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_stdlib_h + fi + NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" + for ac_header in random.h +do : + ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default +" +if test "x$ac_cv_header_random_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_RANDOM_H 1 +_ACEOF +fi - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" +done + if test $ac_cv_header_random_h = yes; then + HAVE_RANDOM_H=1 + else + HAVE_RANDOM_H=0 + fi + ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include + #if HAVE_RANDOM_H + # include + #endif +" +if test "x$ac_cv_type_struct_random_data" = x""yes; then : -for ac_func in vsnprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_RANDOM_DATA 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif +else + HAVE_STRUCT_RANDOM_DATA=0 +fi -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" + + for gl_func in atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if HAVE_SYS_LOADAVG_H +# include #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#if HAVE_RANDOM_H +# include #endif int main () { -return $ac_func (); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes fi -done + done - if test $ac_cv_func_vsnprintf = no; then + # Code from module stpcpy: @@ -55920,32 +51019,51 @@ - gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext" - if test $ac_cv_func_vsnprintf = yes; then - REPLACE_VSNPRINTF=1 - fi + + + + + + for ac_func in stpcpy +do : + ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" +if test "x$ac_cv_func_stpcpy" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_STPCPY 1 +_ACEOF + +else + + gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext" + +fi +done + + + if test $ac_cv_func_stpcpy = no; then + HAVE_STPCPY=0 + : fi - : + GNULIB_STPCPY=1 - if test $ac_cv_have_decl_vsnprintf = no; then - HAVE_DECL_VSNPRINTF=0 - fi +$as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h - GNULIB_VSNPRINTF=1 + # Code from module streq: + # Code from module strerror: - : + if test $REPLACE_STRERROR = 1; then @@ -55953,414 +51071,182 @@ -for ac_func in waitid -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext" + + +cat >>confdefs.h <<_ACEOF +#define REPLACE_STRERROR $REPLACE_STRERROR _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + fi -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + GNULIB_STRERROR=1 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done +$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h + # Code from module striconv: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveh: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveha: + # Code from module string: + -for ac_func in waitpid -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + # Code from module strstr: -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + if test $REPLACE_STRSTR = 0; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5 +$as_echo_n "checking whether strstr works in linear time... " >&6; } +if test "${gl_cv_func_strstr_linear+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2) + Lucky user + #endif #endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me +#ifdef __CYGWIN__ + #include + #if CYGWIN_VERSION_DLL_MAJOR >= 1007 + Lucky user + #endif #endif -int -main () -{ -return $ac_func (); - ; - return 0; -} _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky user" >/dev/null 2>&1; then : + gl_cv_func_strstr_linear=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gl_cv_func_strstr_linear="guessing no" fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +rm -f conftest* -fi -done -{ echo "$as_me:$LINENO: checking for union wait" >&5 -echo $ECHO_N "checking for union wait... $ECHO_C" >&6; } -if test "${gt_cv_union_wait+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include + +#include /* for signal */ +#include /* for memmem */ +#include /* for malloc */ +#include /* for alarm */ + int main () { -union wait status; int pid; pid = wait (&status); -#ifdef WEXITSTATUS -/* Some POSIXoid systems have both the new-style macros and the old - union wait type, and they do not work together. If union wait - conflicts with WEXITSTATUS et al, we don't want to use it at all. */ -if (WEXITSTATUS (status) != 0) pid = -1; -#ifdef WTERMSIG -/* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ --- blow chunks here -- -#endif -#endif -#ifdef HAVE_WAITPID -/* Make sure union wait works with waitpid. */ -pid = waitpid (-1, &status, 0); -#endif - +size_t m = 1000000; + char *haystack = (char *) malloc (2 * m + 2); + char *needle = (char *) malloc (m + 2); + void *result = 0; + /* Failure to compile this test due to missing alarm is okay, + since all such platforms (mingw) also have quadratic strstr. */ + signal (SIGALRM, SIG_DFL); + alarm (5); + /* Check for quadratic performance. */ + if (haystack && needle) + { + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = 0; + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = 0; + result = strstr (haystack, needle); + } + return !result; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gt_cv_union_wait=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_strstr_linear=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_union_wait=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + gl_cv_func_strstr_linear=no fi - -if test "$gt_cv_union_wait" = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_UNION_WAIT 1 -_ACEOF - +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_union_wait" >&5 -echo "${ECHO_T}$gt_cv_union_wait" >&6; } - - - - { echo "$as_me:$LINENO: checking whether is standalone" >&5 -echo $ECHO_N "checking whether is standalone... $ECHO_C" >&6; } -if test "${gl_cv_header_wchar_h_standalone+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#include -wchar_t w; -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_wchar_h_standalone=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_header_wchar_h_standalone=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 -echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; } - if test $gl_cv_header_wchar_h_standalone != yes; then - WCHAR_H=wchar.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5 +$as_echo "$gl_cv_func_strstr_linear" >&6; } + if test "$gl_cv_func_strstr_linear" != yes; then + REPLACE_STRSTR=1 + fi fi - - - : + if test $REPLACE_STRSTR = 1; then - if test $ac_cv_header_wchar_h = yes; then - HAVE_WCHAR_H=1 - else - HAVE_WCHAR_H=0 - fi - - - : + gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext" + fi + # Code from module strstr-simple: + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_STRSTR=1 - if test $gl_cv_have_include_next = yes; then - gl_cv_next_wchar_h='<'wchar.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wchar_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_wchar_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wchar.h#{ - s#.*"\(.*/wchar.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wchar_h='<'wchar.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 -echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; } - fi - NEXT_WCHAR_H=$gl_cv_next_wchar_h + gtpo_LIBOBJS="$gtpo_LIBOBJS strstr.$ac_objext" + fi - : + GNULIB_STRSTR=1 - if test $ac_cv_func_iswcntrl = yes; then - HAVE_ISWCNTRL=1 - else - HAVE_ISWCNTRL=0 - fi +$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h - : + # Code from module sys_stat: - if test $gt_cv_c_wint_t = yes; then - HAVE_WINT_T=1 - else - HAVE_WINT_T=0 - fi - WCTYPE_H=wctype.h - if test $ac_cv_header_wctype_h = yes; then - if test $ac_cv_func_iswcntrl = yes; then - WCTYPE_H= - fi @@ -56373,478 +51259,301 @@ if test $gl_cv_have_include_next = yes; then - gl_cv_next_wctype_h='<'wctype.h'>' + gl_cv_next_sys_stat_h='<'sys/stat.h'>' else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wctype_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_sys_stat_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test $ac_cv_header_wctype_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test $ac_cv_header_sys_stat_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include _ACEOF - gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wctype.h#{ - s#.*"\(.*/wctype.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wctype_h='<'wctype.h'>' - fi + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/sys/stat.h#{ + s#.*"\(.*/sys/stat.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_sys_stat_h='<'sys/stat.h'>' + fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5 -echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 +$as_echo "$gl_cv_next_sys_stat_h" >&6; } fi - NEXT_WCTYPE_H=$gl_cv_next_wctype_h - - - - HAVE_WCTYPE_H=1 - else - HAVE_WCTYPE_H=0 - fi - - - - - - - - - - - - - : - + NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'sys/stat.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_sys_stat_h + fi + NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive - : + ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include + #include +" +if test "x$ac_cv_type_nlink_t" = x""yes; then : +else +$as_echo "#define nlink_t int" >>confdefs.h +fi - { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5 -echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_wcwidth+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include - +#include int main () { -#ifndef wcwidth - (void) wcwidth; -#endif - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_wcwidth=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_wcwidth=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5 -echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; } -if test $ac_cv_have_decl_wcwidth = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 1 -_ACEOF - - -else +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 0 +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF - + eval ac_cv_have_decl_$gl_func=yes fi + done - if test $ac_cv_have_decl_wcwidth != yes; then - HAVE_DECL_WCWIDTH=0 - fi - - if test $ac_cv_func_wcwidth = no; then - REPLACE_WCWIDTH=1 - else - { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5 -echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; } -if test "${gl_cv_func_wcwidth_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test "$cross_compiling" = yes; then - gl_cv_func_wcwidth_works="guessing no" -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -#include -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include -#if !HAVE_DECL_WCWIDTH -extern -# ifdef __cplusplus -"C" -# endif -int wcwidth (int); -#endif -int main () -{ - if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) - if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) - return 1; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_wcwidth_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -gl_cv_func_wcwidth_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + # Code from module threadlib: -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5 -echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; } - case "$gl_cv_func_wcwidth_works" in - *yes) ;; - *no) REPLACE_WCWIDTH=1 ;; - esac - fi - if test $REPLACE_WCWIDTH = 1; then + # Code from module time: + # Code from module tls: - gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" - fi + # Code from module uniconv/base: - if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h - fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - GNULIB_WCWIDTH=1 + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + } + }; then + LIBUNISTRING_UNICONV_H='uniconv.h' + else + LIBUNISTRING_UNICONV_H= + fi - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + # Code from module uniconv/u8-conv-from-enc: -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE= + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE='#' else - eval "$as_ac_Header=\$ac_header_preproc" + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE='#' + LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE= fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi + # Code from module unilbrk/base: -done + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" + + } + }; then + LIBUNISTRING_UNILBRK_H='unilbrk.h' + else + LIBUNISTRING_UNILBRK_H= + fi + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - if true; then - GL_COND_LIBTOOL_TRUE= - GL_COND_LIBTOOL_FALSE='#' + + + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE='#' else - GL_COND_LIBTOOL_TRUE='#' - GL_COND_LIBTOOL_FALSE= + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE= fi - gl_cond_libtool=true - gl_source_base='libgettextpo' + # Code from module unilbrk/u8-width-linebreaks: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test $ac_cv_func_alloca_works = no; then + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - : + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE='#' +else + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE= +fi + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - : - fi - # Define an additional variable used in the Makefile substitution. + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H - Need own alloca -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Need own alloca" >/dev/null 2>&1; then - ALLOCA_H=alloca.h + + } + }; then + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE= + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE='#' else - ALLOCA_H= + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE='#' + LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE= fi -rm -f conftest* + # Code from module unistd: @@ -56853,666 +51562,571 @@ + : + + + -{ echo "$as_me:$LINENO: checking for error_at_line" >&5 -echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } -if test "${ac_cv_lib_error_at_line+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_unistd_h='<'unistd.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_unistd_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + if test $ac_cv_header_unistd_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/unistd.h#{ + s#.*"\(.*/unistd.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_unistd_h='<'unistd.h'>' + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 +$as_echo "$gl_cv_next_unistd_h" >&6; } + fi + NEXT_UNISTD_H=$gl_cv_next_unistd_h + + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'unistd.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_unistd_h + fi + NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive + + + + + + : + + + + + + if test $ac_cv_header_unistd_h = yes; then + HAVE_UNISTD_H=1 + else + HAVE_UNISTD_H=0 + fi + + + + for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +/* Some systems declare various items in the wrong headers. */ +#ifndef __GLIBC__ +# include +# include +# include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif +#endif + int main () { -error_at_line (0, 0, "", 0, "an error occurred"); +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_lib_error_at_line=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_error_at_line=no + eval "$as_gl_Symbol=no" fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 -echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } -if test $ac_cv_lib_error_at_line = no; then +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 +_ACEOF + eval ac_cv_have_decl_$gl_func=yes +fi + done + # Code from module unistr/base: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext" -fi + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2 + } + } + } - : + } + }; then + LIBUNISTRING_UNISTR_H='unistr.h' + else + LIBUNISTRING_UNISTR_H= + fi + # Code from module unistr/u16-mbtouc: - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U16_MBTOUC 1 +_ACEOF - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" - : + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - case "$host_os" in - mingw* | pw*) - REPLACE_FOPEN=1 + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE= +fi + # Code from module unistr/u8-check: - gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext" + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - ;; - esac + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - GNULIB_FOPEN=1 -cat >>confdefs.h <<\_ACEOF -#define GNULIB_FWRITEERROR 1 -_ACEOF + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE= +fi + # Code from module unistr/u8-mblen: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE= +fi + # Code from module unistr/u8-mbtouc: -for ac_func in getdelim -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_MBTOUC 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + if { test "$HAVE_LIBUNISTRING" != yes \ + || { -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -else - gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext" + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE= fi -done + # Code from module unistr/u8-mbtouc-unsafe: - : + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1 +_ACEOF + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test $ac_cv_func_getdelim = no; then + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -for ac_func in flockfile funlockfile -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE='#' else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE= +fi + + + # Code from module unistr/u8-mbtoucr: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_MBTOUCR 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + + # Code from module unistr/u8-prev: + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE= fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + + + # Code from module unistr/u8-uctomb: + + +cat >>confdefs.h <<_ACEOF +#define GNULIB_UNISTR_U8_UCTOMB 1 _ACEOF + + + + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + + + + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE= + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#' +else + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#' + LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE= fi -done - fi + # Code from module unitypes: - if test $ac_cv_have_decl_getdelim = no; then - HAVE_DECL_GETDELIM=0 - fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - GNULIB_GETDELIM=1 + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + } + }; then + LIBUNISTRING_UNITYPES_H='unitypes.h' + else + LIBUNISTRING_UNITYPES_H= + fi - : + # Code from module uniwidth/base: + if { test "$HAVE_LIBUNISTRING" != yes \ + || { + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } - gl_getline_needs_run_time_check=no - { echo "$as_me:$LINENO: checking for getline" >&5 -echo $ECHO_N "checking for getline... $ECHO_C" >&6; } -if test "${ac_cv_func_getline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define getline to an innocuous variant, in case declares getline. - For example, HP-UX 11i declares gettimeofday. */ -#define getline innocuous_getline -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char getline (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef getline + } + }; then + LIBUNISTRING_UNIWIDTH_H='uniwidth.h' + else + LIBUNISTRING_UNIWIDTH_H= + fi -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char getline (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_getline || defined __stub___getline -choke me -#endif -int -main () -{ -return getline (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_getline=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code from module uniwidth/width: - ac_cv_func_getline=no -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5 -echo "${ECHO_T}$ac_cv_func_getline" >&6; } -if test $ac_cv_func_getline = yes; then - gl_getline_needs_run_time_check=yes -else - am_cv_func_working_getline=no -fi + if { test "$HAVE_LIBUNISTRING" != yes \ + || { - if test $gl_getline_needs_run_time_check = yes; then - { echo "$as_me:$LINENO: checking for working getline function" >&5 -echo $ECHO_N "checking for working getline function... $ECHO_C" >&6; } -if test "${am_cv_func_working_getline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - echo fooN |tr -d '\012'|tr N '\012' > conftest.data - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ >= 2) - Lucky GNU user - #endif -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - am_cv_func_working_getline=yes + test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ + && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ + || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 + } + } + } + + + + + } + }; then + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' else - am_cv_func_working_getline=no + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' + LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= fi -rm -f conftest* -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module unlocked-io: -# include -# include -# include - int main () - { /* Based on a test program from Karl Heuer. */ - char *line = NULL; - size_t siz = 0; - int len; - FILE *in = fopen ("./conftest.data", "r"); - if (!in) - return 1; - len = getline (&line, &siz, in); - exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); - } -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_working_getline=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h -( exit $ac_status ) -am_cv_func_working_getline=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5 -echo "${ECHO_T}$am_cv_func_working_getline" >&6; } - fi - if test $ac_cv_have_decl_getline = no; then - HAVE_DECL_GETLINE=0 - fi - if test $am_cv_func_working_getline = no; then - REPLACE_GETLINE=1 + : + : - gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext" + : + : -for ac_func in getdelim -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + : -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + : + + + + + + + : -else - gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext" -fi -done @@ -57523,656 +52137,149 @@ - if test $ac_cv_func_getdelim = no; then + : -for ac_func in flockfile funlockfile -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func + : -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + : - fi - if test $ac_cv_have_decl_getdelim = no; then - HAVE_DECL_GETDELIM=0 - fi - fi + : - GNULIB_GETLINE=1 + : - am_save_CPPFLAGS="$CPPFLAGS" - for element in $INCICONV; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done + # Code from module unused-parameter: + # Code from module vasnprintf: - { echo "$as_me:$LINENO: checking for iconv" >&5 -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + : - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - am_cv_lib_iconv=yes - am_cv_func_iconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test $ac_cv_func_vasnprintf = no; then -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi + : -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 -echo "${ECHO_T}$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for working iconv" >&5 -echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; } -if test "${am_cv_func_iconv_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - if test "$cross_compiling" = yes; then - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int main () -{ - /* Test against AIX 5.1 bug: Failures are not distinguishable from successful - returns. */ - { - iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); - if (cd_utf8_to_88591 != (iconv_t)(-1)) - { - static const char input[] = "\342\202\254"; /* EURO SIGN */ - char buf[10]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res == 0) - return 1; - } - } -#if 0 /* This bug could be worked around by the caller. */ - /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; - char buf[50]; - const char *inptr = input; - size_t inbytesleft = strlen (input); - char *outptr = buf; - size_t outbytesleft = sizeof (buf); - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if ((int)res > 0) - return 1; - } - } -#endif - /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is - provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - am_cv_func_iconv_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -am_cv_func_iconv_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - LIBS="$am_save_LIBS" -fi -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5 -echo "${ECHO_T}$am_cv_func_iconv_works" >&6; } - case "$am_cv_func_iconv_works" in - *no) am_func_iconv=no am_cv_lib_iconv=no ;; - *) am_func_iconv=yes ;; - esac - else - am_func_iconv=no am_cv_lib_iconv=no - fi - if test "$am_func_iconv" = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_ICONV 1 -_ACEOF - fi - if test "$am_cv_lib_iconv" = yes; then - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBICONV" >&5 -echo "${ECHO_T}$LIBICONV" >&6; } - else - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - if test "$am_cv_func_iconv" = yes; then - { echo "$as_me:$LINENO: checking for iconv declaration" >&5 -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } - if test "${am_cv_proto_iconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + gtpo_LIBOBJS="$gtpo_LIBOBJS vasnprintf.$ac_objext" -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - am_cv_proto_iconv_arg1="" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - am_cv_proto_iconv_arg1="const" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" -fi - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - { echo "$as_me:$LINENO: result: ${ac_t:- - }$am_cv_proto_iconv" >&5 -echo "${ECHO_T}${ac_t:- - }$am_cv_proto_iconv" >&6; } -cat >>confdefs.h <<_ACEOF -#define ICONV_CONST $am_cv_proto_iconv_arg1 -_ACEOF - fi + gtpo_LIBOBJS="$gtpo_LIBOBJS printf-args.$ac_objext" - : + gtpo_LIBOBJS="$gtpo_LIBOBJS printf-parse.$ac_objext" - if test $gl_cv_have_include_next = yes; then - gl_cv_next_iconv_h='<'iconv.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_iconv_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_header_iconv_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -_ACEOF - gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/iconv.h#{ - s#.*"\(.*/iconv.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_iconv_h='<'iconv.h'>' - fi -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5 -echo "${ECHO_T}$gl_cv_next_iconv_h" >&6; } - fi - NEXT_ICONV_H=$gl_cv_next_iconv_h - ICONV_H= + gtpo_LIBOBJS="$gtpo_LIBOBJS asnprintf.$ac_objext" + if test $ac_cv_func_vasnprintf = yes; then +$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h + fi - if test "$am_cv_func_iconv" = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - #include - #if defined _LIBICONV_VERSION || defined __GLIBC__ - gnu_iconv - #endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "gnu_iconv" >/dev/null 2>&1; then - gl_func_iconv_gnu=yes -else - gl_func_iconv_gnu=no -fi -rm -f conftest* - if test $gl_func_iconv_gnu = no; then - iconv_flavor= - case "$host_os" in - aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; - irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; - hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; - osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; - esac - if test -n "$iconv_flavor"; then -cat >>confdefs.h <<_ACEOF -#define ICONV_FLAVOR $iconv_flavor -_ACEOF - REPLACE_ICONV_OPEN=1 + ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : +else +$as_echo "#define ptrdiff_t long" >>confdefs.h +fi - gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext" - ICONV_H='iconv.h' - fi - fi - fi - { echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5 -echo $ECHO_N "checking whether the compiler generally respects inline... $ECHO_C" >&6; } -if test "${gl_cv_c_inline_effective+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test $ac_cv_c_inline = no; then - gl_cv_c_inline_effective=no - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + fi -int -main () -{ -#ifdef __NO_INLINE__ - #error "inline is not effective" - #endif - ; - return 0; -} + # Code from module vasprintf: + + for ac_func in vasprintf +do : + ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" +if test "x$ac_cv_func_vasprintf" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VASPRINTF 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_c_inline_effective=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_c_inline_effective=no fi +done -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - -fi -{ echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5 -echo "${ECHO_T}$gl_cv_c_inline_effective" >&6; } - if test $gl_cv_c_inline_effective = yes; then + if test $ac_cv_func_vasprintf = no; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_INLINE 1 -_ACEOF - fi @@ -58180,7 +52287,7 @@ - : + gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext" @@ -58190,8 +52297,14 @@ + gtpo_LIBOBJS="$gtpo_LIBOBJS asprintf.$ac_objext" + if test $ac_cv_func_vasprintf = yes; then + REPLACE_VASPRINTF=1 + else + HAVE_VASPRINTF=0 + fi @@ -58199,33 +52312,31 @@ - if test $gl_cv_func_malloc_posix = yes; then - HAVE_MALLOC_POSIX=1 -cat >>confdefs.h <<\_ACEOF -#define HAVE_MALLOC_POSIX 1 -_ACEOF + fi - else + GNULIB_VASPRINTF=1 +$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h - gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext" - HAVE_MALLOC_POSIX=0 - fi + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" - GNULIB_MALLOC_POSIX=1 + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: @@ -58237,258 +52348,161 @@ - : + : + - { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 -echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } -if test "${gl_cv_func_mbrtowc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $gl_cv_have_include_next = yes; then + gl_cv_next_wchar_h='<'wchar.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wchar_h+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test $ac_cv_header_wchar_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include -int -main () -{ -wchar_t wc; - char const s[] = ""; - size_t n = 1; - mbstate_t state; - return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); - ; - return 0; -} + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - gl_cv_func_mbrtowc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wchar.h#{ + s#.*"\(.*/wchar.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wchar_h='<'wchar.h'>' + fi - gl_cv_func_mbrtowc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 +$as_echo "$gl_cv_next_wchar_h" >&6; } + fi + NEXT_WCHAR_H=$gl_cv_next_wchar_h -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5 -echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; } - if test $gl_cv_func_mbrtowc = yes; then + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wchar.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wchar_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBRTOWC 1 -_ACEOF + + if test $ac_cv_header_wchar_h = yes; then + HAVE_WCHAR_H=1 + else + HAVE_WCHAR_H=0 + fi + + + + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 fi - { echo "$as_me:$LINENO: checking whether mbswidth is declared in " >&5 -echo $ECHO_N "checking whether mbswidth is declared in ... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_mbswidth+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + + for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do + as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 +$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } +if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include +/* Some systems require additional headers. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif #include int main () { - - char *p = (char *) mbswidth; - return !p; - +#undef $gl_func + (void) $gl_func; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_mbswidth=yes +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_gl_Symbol=yes" else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_have_decl_mbswidth=no + eval "$as_gl_Symbol=no" fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5 -echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6; } - if test $ac_cv_have_decl_mbswidth = yes; then - ac_val=1 - else - ac_val=0 - fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val +eval ac_res=\$$as_gl_Symbol + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval as_val=\$$as_gl_Symbol + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 _ACEOF + eval ac_cv_have_decl_$gl_func=yes +fi + done - { echo "$as_me:$LINENO: checking for mbstate_t" >&5 -echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -# include -int -main () -{ -mbstate_t x; return sizeof x; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_mbstate_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_type_mbstate_t=no -fi + # Code from module wctype: -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 -echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } - if test $ac_cv_type_mbstate_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_MBSTATE_T 1 -_ACEOF - else -cat >>confdefs.h <<\_ACEOF -#define mbstate_t int -_ACEOF + : - fi + if test $ac_cv_func_iswcntrl = yes; then + HAVE_ISWCNTRL=1 + else + HAVE_ISWCNTRL=0 + fi - { echo "$as_me:$LINENO: checking whether the C compiler is actually a C++ compiler" >&5 -echo $ECHO_N "checking whether the C compiler is actually a C++ compiler... $ECHO_C" >&6; } -if test "${gl_cv_c_cplusplus+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + : -#ifdef __cplusplus - Is c++ -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Is c++" >/dev/null 2>&1; then - gl_cv_c_cplusplus=yes -else - gl_cv_c_cplusplus=no -fi -rm -f conftest* -fi -{ echo "$as_me:$LINENO: result: $gl_cv_c_cplusplus" >&5 -echo "${ECHO_T}$gl_cv_c_cplusplus" >&6; } - if test $gl_cv_c_cplusplus = yes; then -cat >>confdefs.h <<\_ACEOF -#define IS_CPLUSPLUS 1 -_ACEOF + if test $ac_cv_func_iswblank = yes; then + HAVE_ISWBLANK=1 + else + HAVE_ISWBLANK=0 fi + : + @@ -58496,2185 +52510,1768 @@ + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi -{ echo "$as_me:$LINENO: checking for obstacks" >&5 -echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; } -if test "${ac_cv_func_obstack+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test $ac_cv_header_wctype_h = yes; then + if test $ac_cv_func_iswcntrl = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 +$as_echo_n "checking whether iswcntrl works... " >&6; } +if test "${gl_cv_func_iswcntrl_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + + if test "$cross_compiling" = yes; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default - #include "obstack.h" +#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. + #endif int main () { -struct obstack mem; - #define obstack_chunk_alloc malloc - #define obstack_chunk_free free - obstack_init (&mem); - obstack_free (&mem, 0); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_obstack=yes +if ac_fn_c_try_compile "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_iswcntrl_works=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - ac_cv_func_obstack=no + #include + #include + #include + #include + #include + int main () { return iswprint ('x') == 0; } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_iswcntrl_works=yes +else + gl_cv_func_iswcntrl_works=no fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 -echo "${ECHO_T}$ac_cv_func_obstack" >&6; } -if test $ac_cv_func_obstack = yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 +$as_echo "$gl_cv_func_iswcntrl_works" >&6; } + fi -cat >>confdefs.h <<\_ACEOF -#define HAVE_OBSTACK 1 -_ACEOF -else + : - gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext" + + + if test $gl_cv_have_include_next = yes; then + gl_cv_next_wctype_h='<'wctype.h'>' + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 +$as_echo_n "checking absolute name of ... " >&6; } +if test "${gl_cv_next_wctype_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + if test $ac_cv_header_wctype_h = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | + sed -n '\#/wctype.h#{ + s#.*"\(.*/wctype.h\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"' + else + gl_cv_next_wctype_h='<'wctype.h'>' + fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 +$as_echo "$gl_cv_next_wctype_h" >&6; } + fi + NEXT_WCTYPE_H=$gl_cv_next_wctype_h + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'wctype.h'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=$gl_cv_next_wctype_h + fi + NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive - if test $gl_cv_func_malloc_posix = yes; then - HAVE_REALLOC_POSIX=1 -cat >>confdefs.h <<\_ACEOF -#define HAVE_REALLOC_POSIX 1 -_ACEOF + HAVE_WCTYPE_H=1 + else + HAVE_WCTYPE_H=0 + fi + + if test "$gl_cv_func_iswcntrl_works" = no; then + REPLACE_ISWCNTRL=1 else + REPLACE_ISWCNTRL=0 + fi + # Code from module wcwidth: - gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext" - HAVE_REALLOC_POSIX=0 - fi + : + - GNULIB_REALLOC_POSIX=1 - if test $RELOCATABLE = yes; then + : - gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext" + ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include + +" +if test "x$ac_cv_have_decl_wcwidth" = x""yes; then : + ac_have_decl=1 +else + ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_WCWIDTH $ac_have_decl +_ACEOF + if test $ac_cv_have_decl_wcwidth != yes; then + HAVE_DECL_WCWIDTH=0 fi + if test $ac_cv_func_wcwidth = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5 +$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } +if test "${gl_cv_func_wcwidth_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; + esac -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> + +#include +/* AIX 3.2.5 declares wcwidth in . */ +#include +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +#if !HAVE_DECL_WCWIDTH +extern +# ifdef __cplusplus +"C" +# endif +int wcwidth (int); +#endif +int main () +{ + if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) + if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) + return 1; + return 0; +} _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes +if ac_fn_c_try_run "$LINENO"; then : + gl_cv_func_wcwidth_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + gl_cv_func_wcwidth_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + - ac_header_compiler=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5 +$as_echo "$gl_cv_func_wcwidth_works" >&6; } + case "$gl_cv_func_wcwidth_works" in + *yes) ;; + *no) REPLACE_WCWIDTH=1 ;; + esac + fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then + + gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext" + + fi + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \ + || test $HAVE_DECL_WCWIDTH = 0; then + + : + + fi + + + + + GNULIB_WCWIDTH=1 + + + +$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h + + + + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xmalloca: + # Code from module xsize: + + + + for ac_header in stdint.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = x""yes; then : cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_STDINT_H 1 _ACEOF fi done - { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 -echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } - if test "${gl_cv_size_max+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - gl_cv_size_max= - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + # Code from module xstriconv: + # Code from module xvasprintf: -#include -#if HAVE_STDINT_H -#include -#endif -#ifdef SIZE_MAX -Found it -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Found it" >/dev/null 2>&1; then - gl_cv_size_max=yes -fi -rm -f conftest* - if test -z "$gl_cv_size_max"; then - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi + # End of code from modules -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)]; -test_array [0] = 0 + gltests_libdeps= + gltests_ltlibdeps= - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) size_t_bits_minus_1=$ac_lo;; -'') size_t_bits_minus_1= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; } -static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) * CHAR_BIT - 1) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) * CHAR_BIT - 1)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - size_t_bits_minus_1=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -size_t_bits_minus_1= -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.val - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi + gl_source_base='tests' + gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS + + gl_module_indicator_condition=$gtpotests_WITNESS + -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; -test_array [0] = 0 - ; - return 0; -} +for ac_header in pwd.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" +if test "x$ac_cv_header_pwd_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PWD_H 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_lo=`expr '(' $ac_mid ')' + 1` fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done -case $ac_lo in -?*) fits_in_uint=$ac_lo;; -'') fits_in_uint= ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } -static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } -#include -#include -int -main () -{ - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) - { - long int i = longval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof (size_t) <= sizeof (unsigned int))) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - fits_in_uint=`cat conftest.val` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif -( exit $ac_status ) -fits_in_uint= +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + fi -rm -f conftest.val - if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then - if test $fits_in_uint = 1; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ;; +esac + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 +$as_echo_n "checking for unsigned long long int... " >&6; } +if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - extern size_t foo; - extern unsigned long foo; + /* For now, do not test the preprocessor; as of 2007 there are too many + implementations with broken preprocessors. Perhaps this can + be revisited in 2012. In the meantime, code should not expect + #if to work with literals wider than 32 bits. */ + /* Test literals. */ + long long int ll = 9223372036854775807ll; + long long int nll = -9223372036854775807LL; + unsigned long long int ull = 18446744073709551615ULL; + /* Test constant expressions. */ + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) + ? 1 : -1)]; + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 + ? 1 : -1)]; + int i = 63; int main () { - +/* Test availability of runtime routines for shift and division. */ + long long int llmax = 9223372036854775807ll; + unsigned long long int ullmax = 18446744073709551615ull; + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) + | (llmax / ll) | (llmax % ll) + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) + | (ullmax / ull) | (ullmax % ull)); ; return 0; } + _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - fits_in_uint=0 +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_type_unsigned_long_long_int=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + ac_cv_type_unsigned_long_long_int=no fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $fits_in_uint = 1; then - gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" - else - gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" - fi - else - gl_cv_size_max='((size_t)~(size_t)0)' - fi - fi - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 +$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } + if test $ac_cv_type_unsigned_long_long_int = yes; then - { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5 -echo "${ECHO_T}$gl_cv_size_max" >&6; } - if test "$gl_cv_size_max" != yes; then - -cat >>confdefs.h <<_ACEOF -#define SIZE_MAX $gl_cv_size_max -_ACEOF +$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h fi +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : - { echo "$as_me:$LINENO: checking for va_copy" >&5 -echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } - if test "${gl_cv_func_va_copy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -#ifndef va_copy -void (*func) (va_list, va_list) = va_copy; -#endif +fi - ; - return 0; -} +ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" +if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_PTRDIFF_T 1 _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func_va_copy=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gl_cv_func_va_copy=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi - { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5 -echo "${ECHO_T}$gl_cv_func_va_copy" >&6; } - if test $gl_cv_func_va_copy = no; then - # Provide a substitute, either __va_copy or as a simple assignment. - if test "${gl_cv_func___va_copy+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 +$as_echo_n "checking for ssize_t... " >&6; } +if test "${gt_cv_ssize_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include int main () { - -#ifndef __va_copy -error, bail out -#endif - +int x = sizeof (ssize_t *) + sizeof (ssize_t); + return !x; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_func___va_copy=yes +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_ssize_t=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gl_cv_func___va_copy=no + gt_cv_ssize_t=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 +$as_echo "$gt_cv_ssize_t" >&6; } + if test $gt_cv_ssize_t = no; then - if test $gl_cv_func___va_copy = yes; then - -cat >>confdefs.h <<\_ACEOF -#define va_copy __va_copy -_ACEOF - - else - - - -cat >>confdefs.h <<\_ACEOF -#define va_copy gl_va_copy -_ACEOF - - fi - fi - - - - - # Define two additional variables used in the Makefile substitution. - - if test "$ac_cv_header_stdbool_h" = yes; then - STDBOOL_H='' - else - STDBOOL_H='stdbool.h' - fi - - - if test "$ac_cv_type__Bool" = yes; then - HAVE__BOOL=1 - else - HAVE__BOOL=0 - fi - - - - +$as_echo "#define ssize_t int" >>confdefs.h - if test $ac_cv_type_long_long_int = yes; then - HAVE_LONG_LONG_INT=1 - else - HAVE_LONG_LONG_INT=0 fi +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" +if test "x$ac_cv_type_pid_t" = x""yes; then : - if test $ac_cv_type_unsigned_long_long_int = yes; then - HAVE_UNSIGNED_LONG_LONG_INT=1 - else - HAVE_UNSIGNED_LONG_LONG_INT=0 - fi +else +cat >>confdefs.h <<_ACEOF +#define pid_t int +_ACEOF - if test $ac_cv_header_inttypes_h = yes; then - HAVE_INTTYPES_H=1 - else - HAVE_INTTYPES_H=0 - fi +fi - if test $ac_cv_header_sys_types_h = yes; then - HAVE_SYS_TYPES_H=1 - else - HAVE_SYS_TYPES_H=0 - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 +$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } +if test "${ac_cv_gnu_library_2_1+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) + Lucky GNU user + #endif +#endif +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "Lucky GNU user" >/dev/null 2>&1; then : + ac_cv_gnu_library_2_1=yes +else + ac_cv_gnu_library_2_1=no +fi +rm -f conftest* - : +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 +$as_echo "$ac_cv_gnu_library_2_1" >&6; } + GLIBC21="$ac_cv_gnu_library_2_1" +if test $GLIBC21 = yes; then + ac_fn_c_check_member "$LINENO" "struct __locale_struct" "__names" "ac_cv_member_struct___locale_struct___names" "#include +" +if test "x$ac_cv_member_struct___locale_struct___names" = x""yes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1 +_ACEOF +fi - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdint_h='<'stdint.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +fi - if test $ac_cv_header_stdint_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +for ac_func in select +do : + ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" +if test "x$ac_cv_func_select" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SELECT 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include +fi +done + +for ac_header in vfork.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" +if test "x$ac_cv_header_vfork_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_VFORK_H 1 _ACEOF - gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdint.h#{ - s#.*"\(.*/stdint.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdint_h='<'stdint.h'>' - fi fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdint_h" >&6; } - fi - NEXT_STDINT_H=$gl_cv_next_stdint_h - +done - if test $ac_cv_header_stdint_h = yes; then - HAVE_STDINT_H=1 - else - HAVE_STDINT_H=0 - fi +for ac_func in fork vfork +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done - if test $ac_cv_header_stdint_h = yes; then - { echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5 -echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; } -if test "${gl_cv_header_working_stdint_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test "x$ac_cv_func_fork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 +$as_echo_n "checking for working fork... " >&6; } +if test "${ac_cv_func_fork_works+set}" = set; then : + $as_echo_n "(cached) " >&6 else - gl_cv_header_working_stdint_h=no - cat >conftest.$ac_ext <<_ACEOF - - /* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + if test "$cross_compiling" = yes; then : + ac_cv_func_fork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +$ac_includes_default +int +main () +{ -#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ -#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ -#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ -#include -/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ -#if !(defined WCHAR_MIN && defined WCHAR_MAX) -#error "WCHAR_MIN, WCHAR_MAX not defined in " -#endif - - - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - - -#ifdef INT8_MAX -int8_t a1 = INT8_MAX; -int8_t a1min = INT8_MIN; -#endif -#ifdef INT16_MAX -int16_t a2 = INT16_MAX; -int16_t a2min = INT16_MIN; -#endif -#ifdef INT32_MAX -int32_t a3 = INT32_MAX; -int32_t a3min = INT32_MIN; -#endif -#ifdef INT64_MAX -int64_t a4 = INT64_MAX; -int64_t a4min = INT64_MIN; -#endif -#ifdef UINT8_MAX -uint8_t b1 = UINT8_MAX; -#else -typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; -#endif -#ifdef UINT16_MAX -uint16_t b2 = UINT16_MAX; -#endif -#ifdef UINT32_MAX -uint32_t b3 = UINT32_MAX; -#endif -#ifdef UINT64_MAX -uint64_t b4 = UINT64_MAX; -#endif -int_least8_t c1 = INT8_C (0x7f); -int_least8_t c1max = INT_LEAST8_MAX; -int_least8_t c1min = INT_LEAST8_MIN; -int_least16_t c2 = INT16_C (0x7fff); -int_least16_t c2max = INT_LEAST16_MAX; -int_least16_t c2min = INT_LEAST16_MIN; -int_least32_t c3 = INT32_C (0x7fffffff); -int_least32_t c3max = INT_LEAST32_MAX; -int_least32_t c3min = INT_LEAST32_MIN; -int_least64_t c4 = INT64_C (0x7fffffffffffffff); -int_least64_t c4max = INT_LEAST64_MAX; -int_least64_t c4min = INT_LEAST64_MIN; -uint_least8_t d1 = UINT8_C (0xff); -uint_least8_t d1max = UINT_LEAST8_MAX; -uint_least16_t d2 = UINT16_C (0xffff); -uint_least16_t d2max = UINT_LEAST16_MAX; -uint_least32_t d3 = UINT32_C (0xffffffff); -uint_least32_t d3max = UINT_LEAST32_MAX; -uint_least64_t d4 = UINT64_C (0xffffffffffffffff); -uint_least64_t d4max = UINT_LEAST64_MAX; -int_fast8_t e1 = INT_FAST8_MAX; -int_fast8_t e1min = INT_FAST8_MIN; -int_fast16_t e2 = INT_FAST16_MAX; -int_fast16_t e2min = INT_FAST16_MIN; -int_fast32_t e3 = INT_FAST32_MAX; -int_fast32_t e3min = INT_FAST32_MIN; -int_fast64_t e4 = INT_FAST64_MAX; -int_fast64_t e4min = INT_FAST64_MIN; -uint_fast8_t f1 = UINT_FAST8_MAX; -uint_fast16_t f2 = UINT_FAST16_MAX; -uint_fast32_t f3 = UINT_FAST32_MAX; -uint_fast64_t f4 = UINT_FAST64_MAX; -#ifdef INTPTR_MAX -intptr_t g = INTPTR_MAX; -intptr_t gmin = INTPTR_MIN; -#endif -#ifdef UINTPTR_MAX -uintptr_t h = UINTPTR_MAX; -#endif -intmax_t i = INTMAX_MAX; -uintmax_t j = UINTMAX_MAX; + /* By Ruediger Kuhlmann. */ + return fork () < 0; -#include /* for CHAR_BIT */ -#define TYPE_MINIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ - ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -struct s { - int check_PTRDIFF: - PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) - && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) - ? 1 : -1; - /* Detect bug in FreeBSD 6.0 / ia64. */ - int check_SIG_ATOMIC: - SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) - && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) - ? 1 : -1; - int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; - int check_WCHAR: - WCHAR_MIN == TYPE_MINIMUM (wchar_t) - && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) - ? 1 : -1; - /* Detect bug in mingw. */ - int check_WINT: - WINT_MIN == TYPE_MINIMUM (wint_t) - && WINT_MAX == TYPE_MAXIMUM (wint_t) - ? 1 : -1; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_fork_works=yes +else + ac_cv_func_fork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ - int check_UINT8_C: - (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; - int check_UINT16_C: - (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 +$as_echo "$ac_cv_func_fork_works" >&6; } - /* Detect bugs in OpenBSD 3.9 stdint.h. */ -#ifdef UINT8_MAX - int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; -#endif -#ifdef UINT16_MAX - int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; -#endif -#ifdef UINT32_MAX - int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; +else + ac_cv_func_fork_works=$ac_cv_func_fork +fi +if test "x$ac_cv_func_fork_works" = xcross; then + case $host in + *-*-amigaos* | *-*-msdosdjgpp*) + # Override, as these systems have only a dummy fork() stub + ac_cv_func_fork_works=no + ;; + *) + ac_cv_func_fork_works=yes + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} +fi +ac_cv_func_vfork_works=$ac_cv_func_vfork +if test "x$ac_cv_func_vfork" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 +$as_echo_n "checking for working vfork... " >&6; } +if test "${ac_cv_func_vfork_works+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_vfork_works=cross +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Thanks to Paul Eggert for this test. */ +$ac_includes_default +#include +#ifdef HAVE_VFORK_H +# include #endif -#ifdef UINT64_MAX - int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. The compiler + is told about this with #include , but some compilers + (e.g. gcc -O) don't grok . Test for this by using a + static variable whose address is put into a register that is + clobbered by the vfork. */ +static void +#ifdef __cplusplus +sparc_address_test (int arg) +# else +sparc_address_test (arg) int arg; #endif - int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; - int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; - int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; - int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; - int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; - int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; - int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; - int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; - int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; - int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; - int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; -}; +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} int main () { + pid_t parent = getpid (); + pid_t child; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_working_stdint_h=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - + sparc_address_test (0); -fi + child = vfork (); -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5 -echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; } - fi - if test "$gl_cv_header_working_stdint_h" = yes; then - STDINT_H= - else + if (child == 0) { + /* Here is another test for sparc vfork register problems. This + test uses lots of local variables, at least as many local + variables as main has allocated so far including compiler + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should + reuse the register of parent for one of the local variables, + since it will think that parent can't possibly be used any more + in this routine. Assigning to the local variable will thus + munge parent in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent + from child file descriptors. If the child closes a descriptor + before it execs or exits, this munges the parent's descriptor + as well. Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; -for ac_header in sys/inttypes.h sys/bitypes.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + while (wait(&status) != child) + ; + return ( + /* Was there some problem with vforking? */ + child < 0 - ac_header_compiler=no -fi + /* Did the child fail? (This shouldn't happen.) */ + || status -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + /* Did the vfork/compiler bug occur? */ + || parent != getpid() -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} _ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_func_vfork_works=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_func_vfork_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 +$as_echo "$ac_cv_func_vfork_works" >&6; } -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +fi; +if test "x$ac_cv_func_fork_works" = xcross; then + ac_cv_func_vfork_works=$ac_cv_func_vfork + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} +fi -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +if test "x$ac_cv_func_vfork_works" = xyes; then + +$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +$as_echo "#define vfork fork" >>confdefs.h fi +if test "x$ac_cv_func_fork_works" = xyes; then -done +$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h - if test $ac_cv_header_sys_inttypes_h = yes; then - HAVE_SYS_INTTYPES_H=1 - else - HAVE_SYS_INTTYPES_H=0 - fi +fi - if test $ac_cv_header_sys_bitypes_h = yes; then - HAVE_SYS_BITYPES_H=1 - else - HAVE_SYS_BITYPES_H=0 - fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal handlers with siginfo_t" >&5 +$as_echo_n "checking for signal handlers with siginfo_t... " >&6; } +if test "${gt_cv_siginfo_t+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ - : +struct sigaction action; +siginfo_t info; +action.sa_flags = SA_SIGINFO; +action.sa_sigaction = (void *) 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_siginfo_t=yes +else + gt_cv_siginfo_t=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_siginfo_t" >&5 +$as_echo "$gt_cv_siginfo_t" >&6; } + if test $gt_cv_siginfo_t = yes; then +$as_echo "#define HAVE_SIGINFO 1" >>confdefs.h + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale declaration" >&5 +$as_echo_n "checking for setlocale declaration... " >&6; } +if test "${gt_cv_proto_setlocale+set}" = set; then : + $as_echo_n "(cached) " >&6 +else +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +extern +#ifdef __cplusplus +"C" +#endif +#if defined(__STDC__) || defined(__cplusplus) +char *setlocale (int category, char *locale); +#else +char *setlocale(); +#endif +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_proto_setlocale_arg1="" +else + gt_cv_proto_setlocale_arg1="const" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);" +fi +gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'` +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: + $gt_cv_proto_setlocale" >&5 +$as_echo " + $gt_cv_proto_setlocale" >&6; } +cat >>confdefs.h <<_ACEOF +#define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1 +_ACEOF - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for bit size of $gltype" >&5 -echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; } -if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +$as_echo_n "checking whether byte ordering is bigendian... " >&6; } +if test "${ac_cv_c_bigendian+set}" = set; then : + $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - -#include int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)]; -test_array [0] = 0 +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include + #include - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - -#include int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid; break +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` + ac_cv_c_bigendian=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - #include + int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)]; -test_array [0] = 0 +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - #include + int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)]; -test_array [0] = 0 +#ifndef _BIG_ENDIAN + not big endian + #endif ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_lo=$ac_mid; break +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_bigendian=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` + ac_cv_c_bigendian=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_lo= ac_hi= fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes; then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +int +main () +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - -#include +$ac_includes_default int main () { -static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)]; -test_array [0] = 0 + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_hi=$ac_mid +if ac_fn_c_try_run "$LINENO"; then : + ac_cv_c_bigendian=no else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +$as_echo "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + endianness=1;; #( + no) + endianness=0 ;; #( + universal) + endianness=universal + ;; #( + *) + echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2 + echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2 + exit 1 ;; + esac + +if test $endianness != universal; then + +cat >>confdefs.h <<_ACEOF +#define ENDIANNESS $endianness +_ACEOF + +fi + + + + for ac_header in arpa/inet.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" +if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_ARPA_INET_H 1 +_ACEOF - ac_lo=`expr '(' $ac_mid ')' + 1` fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done -case $ac_lo in -?*) result=$ac_lo;; -'') result=unknown ;; -esac -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ + + for ac_func in gethostname gethostbyname inet_ntop +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif +fi +done -#include -static long int longval () { return sizeof ($gltype) * CHAR_BIT; } -static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; } -#include -#include + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 +$as_echo_n "checking for IPv6 sockets... " >&6; } + if test "${gt_cv_socket_ipv6+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include int main () { - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if ((sizeof ($gltype) * CHAR_BIT) < 0) - { - long int i = longval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%ld\n", i); - } - else - { - unsigned long int i = ulongval (); - if (i != (sizeof ($gltype) * CHAR_BIT)) - return 1; - fprintf (f, "%lu\n", i); - } - return ferror (f) || fclose (f) != 0; - +int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; ; return 0; } _ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - result=`cat conftest.val` +if ac_fn_c_try_compile "$LINENO"; then : + gt_cv_socket_ipv6=yes +else + gt_cv_socket_ipv6=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_socket_ipv6" >&5 +$as_echo "$gt_cv_socket_ipv6" >&6; } + if test $gt_cv_socket_ipv6 = yes; then + +$as_echo "#define HAVE_IPV6 1" >>confdefs.h + + fi + + +if test "$enable_shared" = yes; then + case "$host_os" in + mingw* | cygwin*) is_woe32dll=yes ;; + *) is_woe32dll=no ;; + esac +else + is_woe32dll=no +fi + if test $is_woe32dll = yes; then + WOE32DLL_TRUE= + WOE32DLL_FALSE='#' else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -result=unknown + WOE32DLL_TRUE='#' + WOE32DLL_FALSE= fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + +if test $is_woe32dll = yes; then + +$as_echo "#define WOE32DLL 1" >>confdefs.h + fi -rm -f conftest.val - eval gl_cv_bitsizeof_${gltype}=\$result +if test -n "$GETOPT_H"; then + GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT" +else + GETTEXTLIB_EXPORTS_FLAGS= fi -ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_bitsizeof_${gltype} - if test $result = unknown; then - result=0 - fi - GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - cat >>confdefs.h <<_ACEOF -#define BITSIZEOF_${GLTYPE} $result -_ACEOF - eval BITSIZEOF_${GLTYPE}=\$result - done +case "$host_os" in + linux*) +$as_echo "#define DYNLOAD_LIBEXPAT 1" >>confdefs.h + LIBEXPAT="-ldl" + LTLIBEXPAT="-ldl" - for gltype in sig_atomic_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking whether $gltype is signed" >&5 -echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif + ;; + *) - int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - result=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - result=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval gl_cv_type_${gltype}_signed=\$result -fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - eval result=\$gl_cv_type_${gltype}_signed - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - if test "$result" = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_SIGNED_${GLTYPE} 1 -_ACEOF - eval HAVE_SIGNED_${GLTYPE}=1 + + + + + + + + use_additional=yes + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + +# Check whether --with-libexpat-prefix was given. +if test "${with_libexpat_prefix+set}" = set; then : + withval=$with_libexpat_prefix; + if test "X$withval" = "Xno"; then + use_additional=no else - eval HAVE_SIGNED_${GLTYPE}=0 + if test "X$withval" = "X"; then + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi fi + +fi + + LIBEXPAT= + LTLIBEXPAT= + INCEXPAT= + LIBEXPAT_PREFIX= + HAVE_LIBEXPAT= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='expat ' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" + else + : + fi + else + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIBEXPAT; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" + else + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + if test "$acl_hardcode_direct" = yes; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + haveit= + for x in $LDFLAGS $LIBEXPAT; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" + else + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" + else + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" + fi + fi + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = 'expat'; then + LIBEXPAT_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = 'expat'; then + LIBEXPAT_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INCEXPAT; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + if test -n "$found_la"; then + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIBEXPAT; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIBEXPAT; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" + LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" + ;; + esac + done + fi + else + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" + LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" + fi + fi + fi + done done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" + else + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + for found_dir in $ltrpathdirs; do + LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" + done + fi - gl_cv_type_ptrdiff_t_signed=yes - gl_cv_type_size_t_signed=no + ac_save_CPPFLAGS="$CPPFLAGS" + + for element in $INCEXPAT; do + haveit= + for x in $CPPFLAGS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" + fi + done - for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do - { echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5 -echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; } -if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 +$as_echo_n "checking for libexpat... " >&6; } +if test "${ac_cv_libexpat+set}" = set; then : + $as_echo_n "(cached) " >&6 else - eval gl_cv_type_${gltype}_suffix=no - eval result=\$gl_cv_type_${gltype}_signed - if test "$result" = yes; then - glsufu= - else - glsufu=u - fi - for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do - case $glsuf in - '') gltype1='int';; - l) gltype1='long int';; - ll) gltype1='long long int';; - i64) gltype1='__int64';; - u) gltype1='unsigned int';; - ul) gltype1='unsigned long int';; - ull) gltype1='unsigned long long int';; - ui64)gltype1='unsigned __int64';; - esac - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - /* BSD/OS 4.0.1 has a bug: , and must be - included before . */ - #include - #include - #if HAVE_WCHAR_H - # include - # include - # include - #endif - extern $gltype foo; - extern $gltype1 foo; + ac_save_LIBS="$LIBS" + case " $LIBEXPAT" in + *" -l"*) LIBS="$LIBS $LIBEXPAT" ;; + *) LIBS="$LIBEXPAT $LIBS" ;; + esac + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int main () { - +XML_ExpatVersion(); ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval gl_cv_type_${gltype}_suffix=\$glsuf +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_libexpat=yes else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - + ac_cv_libexpat='no' fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_save_LIBS" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" != no && break - done fi -ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` - eval result=\$gl_cv_type_${gltype}_suffix - test "$result" = no && result= - eval ${GLTYPE}_SUFFIX=\$result - cat >>confdefs.h <<_ACEOF -#define ${GLTYPE}_SUFFIX $result -_ACEOF - - done - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5 +$as_echo "$ac_cv_libexpat" >&6; } + if test "$ac_cv_libexpat" = yes; then + HAVE_LIBEXPAT=yes +$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h - STDINT_H=stdint.h + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5 +$as_echo_n "checking how to link with libexpat... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5 +$as_echo "$LIBEXPAT" >&6; } + else + HAVE_LIBEXPAT=no + CPPFLAGS="$ac_save_CPPFLAGS" + LIBEXPAT= + LTLIBEXPAT= + LIBEXPAT_PREFIX= fi @@ -60683,649 +54280,1241 @@ - : - - - - - - + ;; +esac - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdio_h='<'stdio.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdio_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test "${lt_cv_path_NM+set}" = set; then : + $as_echo_n "(cached) " >&6 else - - if test $ac_cv_header_stdio_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdio.h#{ - s#.*"\(.*/stdio.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdio_h='<'stdio.h'>' - fi - + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdio_h" >&6; } - fi - NEXT_STDIO_H=$gl_cv_next_stdio_h - - - - - - - - - - : - - - - - - - - if test $gl_cv_have_include_next = yes; then - gl_cv_next_stdlib_h='<'stdlib.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_stdlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" else - - if test $ac_cv_header_stdlib_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/stdlib.h#{ - s#.*"\(.*/stdlib.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_stdlib_h='<'stdlib.h'>' - fi + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5 -echo "${ECHO_T}$gl_cv_next_stdlib_h" >&6; } - fi - NEXT_STDLIB_H=$gl_cv_next_stdlib_h - - - - - - +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + test -n "$ac_ct_DUMPBIN" && break +done + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if test "${lt_cv_nm_interface+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:54472: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:54475: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:54478: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } -for ac_func in stpcpy +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if test "${ac_cv_path_SED+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed -else - - gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext" -fi -done - if test $ac_cv_func_stpcpy = no; then - HAVE_STPCPY=0 - : +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - fi +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - GNULIB_STPCPY=1 +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux* | k*bsd*-gnu) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + # Check to see that the pipe works correctly. + pipe_works=no + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi -for ac_func in strdup -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' -#ifdef __STDC__ -# include + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * #else -# include +# define lt_ptr_t char * +# define const #endif -#undef $ac_func +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ #ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* - eval "$as_ac_var=no" -fi + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } else - - gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext" - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } fi -done - - - - : - + GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 + if test -n "$GLOBAL_SYMBOL_PIPE"; then + HAVE_GLOBAL_SYMBOL_PIPE=1 + else + HAVE_GLOBAL_SYMBOL_PIPE= fi - : - - GNULIB_STRDUP=1 + # If set to t, that means we are running in a shell under Emacs. + # If you have an Emacs named "t", then use the full path. + test x"$EMACS" = xt && EMACS= + for ac_prog in emacs xemacs +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_EMACS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$EMACS"; then + ac_cv_prog_EMACS="$EMACS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_EMACS="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +EMACS=$ac_cv_prog_EMACS +if test -n "$EMACS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5 +$as_echo "$EMACS" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - if test $gl_cv_func_working_strerror = no; then + test -n "$EMACS" && break +done +test -n "$EMACS" || EMACS="no" +# Check whether --with-lispdir was given. +if test "${with_lispdir+set}" = set; then : + withval=$with_lispdir; lispdir="$withval" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 +$as_echo_n "checking where .elc files should go... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5 +$as_echo "$lispdir" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 +$as_echo_n "checking where .elc files should go... " >&6; } +if test "${am_cv_lispdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else - gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext" + if test $EMACS != "no"; then + if test x${lispdir+set} != xset; then + # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly + # Some emacsen will start up in interactive mode, requiring C-x C-c to exit, + # which is non-obvious for non-emacs users. + # Redirecting /dev/null should help a bit; pity we can't detect "broken" + # emacsen earlier and avoid running this altogether. + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' conftest.out"; } >&5 + ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' conftest.out) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + am_cv_lispdir=`sed -n \ + -e 's,/$,,' \ + -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \ + -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \ + conftest.out` + rm conftest.out + fi + fi + test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5 +$as_echo "$am_cv_lispdir" >&6; } + lispdir="$am_cv_lispdir" -cat >>confdefs.h <<_ACEOF -#define REPLACE_STRERROR $REPLACE_STRERROR -_ACEOF +fi - fi - GNULIB_STRERROR=1 +# Check whether --with-emacs was given. +if test "${with_emacs+set}" = set; then : + withval=$with_emacs; gt_use_emacs=$withval +else + gt_use_emacs=yes +fi - if test $gl_cond_libtool = false; then - gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" - gl_libdeps="$gl_libdeps $LIBICONV" +if test "$EMACS" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Emacs support is requested" >&5 +$as_echo_n "checking whether Emacs support is requested... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_use_emacs" >&5 +$as_echo "$gt_use_emacs" >&6; } + if test "$gt_use_emacs" = no; then + EMACS=no fi +fi +aclocaldir='${datadir}/aclocal' +# Check whether --with-git was given. +if test "${with_git+set}" = set; then : + withval=$with_git; gt_use_git=$withval +else + gt_use_git=maybe +fi +# Check whether --with-cvs was given. +if test "${with_cvs+set}" = set; then : + withval=$with_cvs; gt_use_cvs=$withval +else + gt_use_cvs=no +fi - - : - - - +# The CVS format is deprecated, because "cvs init" does not work in all +# circumstances +# (see ) +# and we are not allowed to distribute the cvs infrastructure files ourselves +# (see ). +if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then + # --with-git is specified. Even if --with-cvs is also specified, we use the + # git format. + ARCHIVE_FORMAT=git +else + if test "$gt_use_cvs" != no; then + # --with-cvs is specified. + ARCHIVE_FORMAT=cvs + else + # Neither --with-git nor --with-cvs is specified. + if test "$gt_use_git" != no \ + && (git --version) >/dev/null 2>&1 \ + && { case `git --version | sed -e 's/^[^0-9]*//'` in + 0.* | 1.[0-5].*) false ;; + *) true ;; + esac + }; then + # --without-git is not specified, and the git program exists + # in version 1.6 or newer. Use git format. + ARCHIVE_FORMAT=git + else + # --without-git is specified, or the git program is missing. + ARCHIVE_FORMAT=dir + fi + fi +fi - if test $ac_cv_have_decl_strnlen = no; then - HAVE_DECL_STRNLEN=0 +ac_aux_dir_abs=`cd $ac_aux_dir && pwd` +# Extract the first word of "dvips", so it can be a program name with args. +set dummy dvips; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_DVIPS+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $DVIPS in + [\\/]* | ?:[\\/]*) + ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS - { echo "$as_me:$LINENO: checking for working strnlen" >&5 -echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; } -if test "${ac_cv_func_strnlen_working+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_strnlen_working=no + test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips" + ;; +esac +fi +DVIPS=$ac_cv_path_DVIPS +if test -n "$DVIPS"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 +$as_echo "$DVIPS" >&6; } else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - -#define S "foobar" -#define S_LEN (sizeof S - 1) - - /* At least one implementation is buggy: that of AIX 4.3 would - give strnlen (S, 1) == 3. */ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - int i; - for (i = 0; i < S_LEN + 1; ++i) - { - int expected = i <= S_LEN ? i : S_LEN; - if (strnlen (S, i) != expected) - return 1; - } - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_strnlen_working=yes +# Extract the first word of "texi2pdf", so it can be a program name with args. +set dummy texi2pdf; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_TEXI2PDF+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case $TEXI2PDF in + [\\/]* | ?:[\\/]*) + ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -( exit $ac_status ) -ac_cv_func_strnlen_working=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext + test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf" + ;; +esac fi - - +TEXI2PDF=$ac_cv_path_TEXI2PDF +if test -n "$TEXI2PDF"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5 +$as_echo "$TEXI2PDF" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5 -echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; } -test $ac_cv_func_strnlen_working = no && - - - - - - gtpo_LIBOBJS="$gtpo_LIBOBJS strnlen.$ac_objext" - - if test $ac_cv_func_strnlen_working = no; then - # This is necessary because automake-1.6.1 doesn't understand - # that the above use of AC_FUNC_STRNLEN means we may have to use - # lib/strnlen.c. - #AC_LIBOBJ(strnlen) - -cat >>confdefs.h <<\_ACEOF -#define strnlen rpl_strnlen -_ACEOF - - : +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PERL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS - - - GNULIB_STRNLEN=1 - - - - - - - - - - - : - + test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" + ;; +esac +fi +PERL=$ac_cv_path_PERL +if test -n "$PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +$as_echo "$PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +CROSS_COMPILING=$cross_compiling - if test $gl_cv_have_include_next = yes; then - gl_cv_next_unistd_h='<'unistd.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_unistd_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - - if test $ac_cv_header_unistd_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/unistd.h#{ - s#.*"\(.*/unistd.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_unistd_h='<'unistd.h'>' - fi + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5 -echo "${ECHO_T}$gl_cv_next_unistd_h" >&6; } - fi - NEXT_UNISTD_H=$gl_cv_next_unistd_h - - - - +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - : + test -n "$CXX" && break +done +test -n "$CXX" || CXX=":" +if test "$CXX" != ":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - if test $ac_cv_header_unistd_h = yes; then - HAVE_UNISTD_H=1 + echo 'int main () { return 0; }' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + ac_cv_prog_cxx_works=yes + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cxx_cross=no + else + ac_cv_prog_cxx_cross=yes + fi else - HAVE_UNISTD_H=0 + ac_cv_prog_cxx_works=no fi + rm -fr conftest* + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_works" >&5 +$as_echo "$ac_cv_prog_cxx_works" >&6; } + if test $ac_cv_prog_cxx_works = no; then + CXX=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5 +$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; } + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + cat < conftest.$ac_ext +#include +namespace test { using namespace std; } +std::ostream* ptr; +int main () { return 0; } +EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + gt_cv_prog_cxx_namespaces=yes + else + gt_cv_prog_cxx_namespaces=no + fi + rm -fr conftest* + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U16_MBTOUC 1 -_ACEOF - - - - -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1 -_ACEOF - - - - -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_MBTOUC 1 -_ACEOF - - - - -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1 -_ACEOF - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_prog_cxx_namespaces" >&5 +$as_echo "$gt_cv_prog_cxx_namespaces" >&6; } + if test $gt_cv_prog_cxx_namespaces = no; then + CXX=: + fi + fi +fi -cat >>confdefs.h <<\_ACEOF -#define GNULIB_UNISTR_U8_UCTOMB 1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 +$as_echo_n "checking for a traditional french locale... " >&6; } +if test "${gt_cv_locale_fr+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only + one byte long. This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} -cat >>confdefs.h <<\_ACEOF -#define USE_UNLOCKED_IO 1 _ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 + else + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 + else + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr + else + # None found. + gt_cv_locale_fr=none + fi + fi + fi + fi + fi + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 +$as_echo "$gt_cv_locale_fr" >&6; } + LOCALE_FR=$gt_cv_locale_fr - : - - - - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 +$as_echo_n "checking for a french Unicode locale... " >&6; } +if test "${gt_cv_locale_fr_utf8+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - : +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () { + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl + imitates locale dependent behaviour by looking at the environment + variables, and all locales use the UTF-8 encoding. */ +#if !(defined __BEOS__ || defined __HAIKU__) + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +# if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +# endif +# ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +# endif + /* Check whether in the abbreviation of the second month, the second + character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is + two bytes long, with UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%b", &t) < 4 + || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') + return 1; +#endif + /* Check whether the decimal separator is a comma. + On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point + are nl_langinfo(RADIXCHAR) are both ".". */ + if (localeconv () ->decimal_point[0] != ',') return 1; + return 0; +} +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr_FR.UTF-8 + else + # Test for the Solaris 7 locale name. + if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr_utf8=fr.UTF-8 + else + # None found. + gt_cv_locale_fr_utf8=none + fi + fi + fi + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 +$as_echo "$gt_cv_locale_fr_utf8" >&6; } + LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 +$as_echo_n "checking for a traditional japanese locale... " >&6; } +if test "${gt_cv_locale_ja+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + return 0; +} +_ACEOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi + fi + fi + fi + fi + rm -fr conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 +$as_echo "$gt_cv_locale_ja" >&6; } + LOCALE_JA=$gt_cv_locale_ja - : - : - : @@ -61339,733 +55528,1924 @@ - : - - : +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - : + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + test -n "$ac_ct_CXX" && break +done + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done - : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - : +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +depcc="$CXX" am_compiler_list= - : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi -for ac_func in vasprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then : + $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - #ifdef __STDC__ # include #else # include #endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : -#undef $ac_func - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext -int -main () -{ -return $ac_func (); - ; - return 0; -} + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext - eval "$as_ac_var=no" +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + done + ac_cv_prog_CXXCPP=$CXXCPP + fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error _ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : +else + # Broken: fails on valid input. +continue fi -done - - if test $ac_cv_func_vasprintf = no; then - - - - - - - - - gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext" - - - if test $ac_cv_func_vasprintf = yes; then - REPLACE_VASPRINTF=1 - else - HAVE_VASPRINTF=0 - fi - - +rm -f conftest.err conftest.$ac_ext + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext - fi +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +_lt_caught_CXX_error=yes; } +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - GNULIB_VASPRINTF=1 +else + _lt_caught_CXX_error=yes +fi - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" +# Source file extension for C++ test sources. +ac_ext=cpp +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" - { echo "$as_me:$LINENO: checking whether is standalone" >&5 -echo $ECHO_N "checking whether is standalone... $ECHO_C" >&6; } -if test "${gl_cv_header_wchar_h_standalone+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#include -wchar_t w; -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gl_cv_header_wchar_h_standalone=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' - gl_cv_header_wchar_h_standalone=no -fi + # ltmain only uses $CC for tagged configurations so make sure $CC is set. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5 -echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6; } - if test $gl_cv_header_wchar_h_standalone != yes; then - WCHAR_H=wchar.h - fi - : +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - if test $ac_cv_header_wchar_h = yes; then - HAVE_WCHAR_H=1 - else - HAVE_WCHAR_H=0 - fi +# Allow CC to be a program name with arguments. +compiler=$CC + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* - : + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + if test "$GXX" = yes; then + # Set up default GNU C++ configuration - if test $gl_cv_have_include_next = yes; then - gl_cv_next_wchar_h='<'wchar.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wchar_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else - - if test $ac_cv_header_wchar_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include - -_ACEOF - gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wchar.h#{ - s#.*"\(.*/wchar.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wchar_h='<'wchar.h'>' - fi - + with_gnu_ld=no fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5 -echo "${ECHO_T}$gl_cv_next_wchar_h" >&6; } - fi - NEXT_WCHAR_H=$gl_cv_next_wchar_h - - +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld - : - if test $ac_cv_func_iswcntrl = yes; then - HAVE_ISWCNTRL=1 - else - HAVE_ISWCNTRL=0 - fi + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi - : + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + GXX=no + with_gnu_ld=no + wlarc= + fi + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ - if test $gt_cv_c_wint_t = yes; then - HAVE_WINT_T=1 - else - HAVE_WINT_T=0 - fi + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - WCTYPE_H=wctype.h - if test $ac_cv_header_wctype_h = yes; then - if test $ac_cv_func_iswcntrl = yes; then - WCTYPE_H= - fi + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main () +{ - : + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) - if test $gl_cv_have_include_next = yes; then - gl_cv_next_wctype_h='<'wctype.h'>' - else - { echo "$as_me:$LINENO: checking absolute name of " >&5 -echo $ECHO_N "checking absolute name of ... $ECHO_C" >&6; } -if test "${gl_cv_next_wctype_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi - if test $ac_cv_header_wctype_h = yes; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include + else + ld_shlibs_CXX=no + fi -_ACEOF - gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | - sed -n '\#/wctype.h#{ - s#.*"\(.*/wctype.h\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"' - else - gl_cv_next_wctype_h='<'wctype.h'>' - fi + ;; -fi -{ echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5 -echo "${ECHO_T}$gl_cv_next_wctype_h" >&6; } - fi - NEXT_WCTYPE_H=$gl_cv_next_wctype_h + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; - HAVE_WCTYPE_H=1 - else - HAVE_WCTYPE_H=0 - fi + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5]* | *pgcpp\ [1-5]*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 will use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + xl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - : + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=echo + else + ld_shlibs_CXX=no + fi + ;; - : + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + hardcode_libdir_separator_CXX=: + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes - { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5 -echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; } -if test "${ac_cv_have_decl_wcwidth+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + output_verbose_link_cmd='echo' -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; -int -main () -{ -#ifndef wcwidth - (void) wcwidth; -#endif + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_have_decl_wcwidth=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; - ac_cv_have_decl_wcwidth=no -fi + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5 -echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; } -if test $ac_cv_have_decl_wcwidth = yes; then + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 1 -_ACEOF + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; -else - cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_WCWIDTH 0 -_ACEOF + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= -fi +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. - if test $ac_cv_have_decl_wcwidth != yes; then - HAVE_DECL_WCWIDTH=0 - fi + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no - if test $ac_cv_func_wcwidth = no; then - REPLACE_WCWIDTH=1 - else - { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5 -echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; } -if test "${gl_cv_func_wcwidth_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + for p in `eval "$output_verbose_link_cmd"`; do + case $p in - if test "$cross_compiling" = yes; then - gl_cv_func_wcwidth_works="guessing no" -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + else + prev= + fi -#include -/* AIX 3.2.5 declares wcwidth in . */ -#include -/* Tru64 with Desktop Toolkit C has a bug: must be included before - . - BSD/OS 4.0.1 has a bug: , and must be included - before . */ -#include -#include -#include -#include -#if !HAVE_DECL_WCWIDTH -extern -# ifdef __cplusplus -"C" -# endif -int wcwidth (int); -#endif -int main () -{ - if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) - if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0) - return 1; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - gl_cv_func_wcwidth_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; -( exit $ac_status ) -gl_cv_func_wcwidth_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + *) ;; # Ignore the rest. -fi -{ echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5 -echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; } - case "$gl_cv_func_wcwidth_works" in - *yes) ;; - *no) REPLACE_WCWIDTH=1 ;; esac - fi - if test $REPLACE_WCWIDTH = 1; then - - + done + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi +$RM -f confest.$objext +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 - gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext" + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac - fi + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; - if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h - fi +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac - GNULIB_WCWIDTH=1 +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi -for ac_header in stdint.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done @@ -62073,7 +57453,6 @@ - XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" @@ -62082,1913 +57461,1362 @@ -for ac_header in pwd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_compiler=no -fi + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' - ac_header_preproc=no -fi + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC*) + # IBM XL 8.0 on PPC + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - -{ echo "$as_me:$LINENO: checking for inline" >&5 -echo $ECHO_N "checking for inline... $ECHO_C" >&6; } -if test "${ac_cv_c_inline+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_inline=$ac_kw -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 -echo "${ECHO_T}$ac_cv_c_inline" >&6; } - - -case $ac_cv_c_inline in - inline | yes) ;; *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } - ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int - if test $ac_cv_type_unsigned_long_long = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_UNSIGNED_LONG_LONG 1 -_ACEOF - - fi - -{ echo "$as_me:$LINENO: checking for size_t" >&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef size_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_size_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6; } -if test $ac_cv_type_size_t = yes; then - : -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 -echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } -if test "${ac_cv_type_ptrdiff_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef ptrdiff_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_ptrdiff_t=yes +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type_ptrdiff_t=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 -echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } -if test $ac_cv_type_ptrdiff_t = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_PTRDIFF_T 1 -_ACEOF - + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:57813: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:57817: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } - - { echo "$as_me:$LINENO: checking for ssize_t" >&5 -echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } -if test "${gt_cv_ssize_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -int x = sizeof (ssize_t *) + sizeof (ssize_t); - return !x; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_ssize_t=yes +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - gt_cv_ssize_t=no + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5 -echo "${ECHO_T}$gt_cv_ssize_t" >&6; } - if test $gt_cv_ssize_t = no; then -cat >>confdefs.h <<\_ACEOF -#define ssize_t int -_ACEOF - fi -{ echo "$as_me:$LINENO: checking for pid_t" >&5 -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } -if test "${ac_cv_type_pid_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -typedef pid_t ac__type_new_; -int -main () -{ -if ((ac__type_new_ *) 0) - return 0; -if (sizeof (ac__type_new_)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_type_pid_t=yes +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" - ac_cv_type_pid_t=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 -echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } -if test $ac_cv_type_pid_t = yes; then - : +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : else - -cat >>confdefs.h <<_ACEOF -#define pid_t int -_ACEOF - + lt_prog_compiler_static_CXX= fi - { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 -echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } -if test "${ac_cv_gnu_library_2_1+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "Lucky GNU user" >/dev/null 2>&1; then - ac_cv_gnu_library_2_1=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - ac_cv_gnu_library_2_1=no -fi -rm -f conftest* - + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:57912: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:57916: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* fi -{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 -echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } - - GLIBC21="$ac_cv_gnu_library_2_1" - - -if test $GLIBC21 = yes; then - { echo "$as_me:$LINENO: checking for struct __locale_struct.__names" >&5 -echo $ECHO_N "checking for struct __locale_struct.__names... $ECHO_C" >&6; } -if test "${ac_cv_member_struct___locale_struct___names+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } -int -main () -{ -static struct __locale_struct ac_aggr; -if (ac_aggr.__names) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_struct___locale_struct___names=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -static struct __locale_struct ac_aggr; -if (sizeof ac_aggr.__names) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_member_struct___locale_struct___names=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : + $as_echo_n "(cached) " >&6 else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_member_struct___locale_struct___names=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___locale_struct___names" >&5 -echo "${ECHO_T}$ac_cv_member_struct___locale_struct___names" >&6; } -if test $ac_cv_member_struct___locale_struct___names = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1 -_ACEOF - + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -fi + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:57964: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:57968: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } -for ac_func in select -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + need_locks=no fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } -for ac_header in vfork.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - ac_header_compiler=no -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +with_gnu_ld_CXX=$with_gnu_ld -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi -done -for ac_func in fork vfork -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - eval "$as_ac_var=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done -if test "x$ac_cv_func_fork" = xyes; then - { echo "$as_me:$LINENO: checking for working fork" >&5 -echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } -if test "${ac_cv_func_fork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_fork_works=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - /* By Ruediger Kuhlmann. */ - return fork () < 0; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_fork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_func_fork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 -echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } -else - ac_cv_func_fork_works=$ac_cv_func_fork -fi -if test "x$ac_cv_func_fork_works" = xcross; then - case $host in - *-*-amigaos* | *-*-msdosdjgpp*) - # Override, as these systems have only a dummy fork() stub - ac_cv_func_fork_works=no - ;; - *) - ac_cv_func_fork_works=yes - ;; - esac - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} -fi -ac_cv_func_vfork_works=$ac_cv_func_vfork -if test "x$ac_cv_func_vfork" = xyes; then - { echo "$as_me:$LINENO: checking for working vfork" >&5 -echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } -if test "${ac_cv_func_vfork_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_func_vfork_works=cross -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Thanks to Paul Eggert for this test. */ -$ac_includes_default -#include -#ifdef HAVE_VFORK_H -# include -#endif -/* On some sparc systems, changes by the child to local and incoming - argument registers are propagated back to the parent. The compiler - is told about this with #include , but some compilers - (e.g. gcc -O) don't grok . Test for this by using a - static variable whose address is put into a register that is - clobbered by the vfork. */ -static void -#ifdef __cplusplus -sparc_address_test (int arg) -# else -sparc_address_test (arg) int arg; -#endif -{ - static pid_t child; - if (!child) { - child = vfork (); - if (child < 0) { - perror ("vfork"); - _exit(2); - } - if (!child) { - arg = getpid(); - write(-1, "", 0); - _exit (arg); - } - } -} -int -main () -{ - pid_t parent = getpid (); - pid_t child; - sparc_address_test (0); - child = vfork (); - if (child == 0) { - /* Here is another test for sparc vfork register problems. This - test uses lots of local variables, at least as many local - variables as main has allocated so far including compiler - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should - reuse the register of parent for one of the local variables, - since it will think that parent can't possibly be used any more - in this routine. Assigning to the local variable will thus - munge parent in the parent process. */ - pid_t - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); - /* Convince the compiler that p..p7 are live; otherwise, it might - use the same hardware register for all 8 local variables. */ - if (p != p1 || p != p2 || p != p3 || p != p4 - || p != p5 || p != p6 || p != p7) - _exit(1); - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent - from child file descriptors. If the child closes a descriptor - before it execs or exits, this munges the parent's descriptor - as well. Test for this by closing stdout in the child. */ - _exit(close(fileno(stdout)) != 0); - } else { - int status; - struct stat st; - while (wait(&status) != child) - ; - return ( - /* Was there some problem with vforking? */ - child < 0 - /* Did the child fail? (This shouldn't happen.) */ - || status - /* Did the vfork/compiler bug occur? */ - || parent != getpid() - /* Did the file descriptor bug occur? */ - || fstat(fileno(stdout), &st) != 0 - ); - } -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_vfork_works=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -ac_cv_func_vfork_works=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 -echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } -fi; -if test "x$ac_cv_func_fork_works" = xcross; then - ac_cv_func_vfork_works=$ac_cv_func_vfork - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 -echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} -fi -if test "x$ac_cv_func_vfork_works" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_VFORK 1 -_ACEOF -else -cat >>confdefs.h <<\_ACEOF -#define vfork fork -_ACEOF -fi -if test "x$ac_cv_func_fork_works" = xyes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_WORKING_FORK 1 -_ACEOF -fi - { echo "$as_me:$LINENO: checking for signal handlers with siginfo_t" >&5 -echo $ECHO_N "checking for signal handlers with siginfo_t... $ECHO_C" >&6; } -if test "${gt_cv_siginfo_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () -{ -struct sigaction action; -siginfo_t info; -action.sa_flags = SA_SIGINFO; -action.sa_sigaction = (void *) 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_siginfo_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_siginfo_t=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $gt_cv_siginfo_t" >&5 -echo "${ECHO_T}$gt_cv_siginfo_t" >&6; } - if test $gt_cv_siginfo_t = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_SIGINFO 1 -_ACEOF - fi -{ echo "$as_me:$LINENO: checking for setlocale declaration" >&5 -echo $ECHO_N "checking for setlocale declaration... $ECHO_C" >&6; } -if test "${gt_cv_proto_setlocale+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -char *setlocale (int category, char *locale); -#else -char *setlocale(); -#endif -int -main () -{ - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_proto_setlocale_arg1="" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - gt_cv_proto_setlocale_arg1="const" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);" -fi -gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'` -{ echo "$as_me:$LINENO: result: ${ac_t:- - }$gt_cv_proto_setlocale" >&5 -echo "${ECHO_T}${ac_t:- - }$gt_cv_proto_setlocale" >&6; } -cat >>confdefs.h <<_ACEOF -#define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1 -_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } - { echo "$as_me:$LINENO: checking for wcscoll" >&5 -echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6; } -if test "${ac_cv_func_wcscoll+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define wcscoll to an innocuous variant, in case declares wcscoll. - For example, HP-UX 11i declares gettimeofday. */ -#define wcscoll innocuous_wcscoll +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char wcscoll (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown -#ifdef __STDC__ -# include -#else -# include -#endif +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; -#undef wcscoll +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char wcscoll (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_wcscoll || defined __stub___wcscoll -choke me -#endif +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no -int -main () -{ -return wcscoll (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_func_wcscoll=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes - ac_cv_func_wcscoll=no -fi + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 -echo "${ECHO_T}$ac_cv_func_wcscoll" >&6; } -if test $ac_cv_func_wcscoll = yes; then - : -else + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; -cat >>confdefs.h <<\_ACEOF -#define wcscoll wcscmp -_ACEOF +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; +freebsd1*) + dynamic_linker=no + ;; - : +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; -for ac_func in memchr -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; -#ifdef __STDC__ -# include -#else -# include -#endif +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; -#undef $ac_func +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ int main () { -return $ac_func (); + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + shlibpath_overrides_runpath=yes fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext" fi -done - - if test $ac_cv_func_memchr = no; then - - -for ac_header in bp-sym.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir - ac_header_compiler=no -fi + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; - ac_header_preproc=no -fi +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; -fi +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; -done +rdos*) + dynamic_linker=no + ;; +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no fi + need_version=yes + ;; +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; -for ac_func in strdup -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +*) + dynamic_linker=no + ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no - eval "$as_ac_var=no" +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -else - LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext" +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi -done - - - : - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 - fi - : - # Assume we'll default to using the included regex.c. - ac_use_included_regex=yes - # However, if the system regex support is good enough that it passes the - # the following run test, then default to *not* using the included regex.c. - # If cross compiling, assume the test would fail and use the included - # regex.c. The first failing regular expression is from `Spencer ere - # test #75' in grep-2.3. - { echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5 -echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6; } -if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - jm_cv_func_working_re_compile_pattern=no -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -#include - int - main () - { - static struct re_pattern_buffer regex; - const char *s; - struct re_registers regs; - re_set_syntax (RE_SYNTAX_POSIX_EGREP); - memset (®ex, 0, sizeof (regex)); - [s = re_compile_pattern ("a[[:]:]]b\n", 9, ®ex);] - /* This should fail with _Invalid character class name_ error. */ - if (!s) - exit (1); - - /* This should succeed, but doesn't for e.g. glibc-2.1.3. */ - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("{1", 2, ®ex); - if (s) - exit (1); - /* The following example is derived from a problem report - against gawk from Jorge Stolfi . */ - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("[[an\371]]*n", 7, ®ex); - if (s) - exit (1); - - /* This should match, but doesn't for e.g. glibc-2.2.1. */ - if (re_match (®ex, "an", 2, 0, ®s) != 2) - exit (1); - - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("x", 1, ®ex); - if (s) - exit (1); - - /* The version of regex.c in e.g. GNU libc-2.2.93 didn't - work with a negative RANGE argument. */ - if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) - exit (1); - exit (0); - } -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - jm_cv_func_working_re_compile_pattern=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -jm_cv_func_working_re_compile_pattern=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -{ echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5 -echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6; } - if test $jm_cv_func_working_re_compile_pattern = yes; then - ac_use_included_regex=no - fi - test -n "libgrep/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5 -echo "$as_me: error: missing argument" >&2;} - { (exit 1); exit 1; }; } -# Check whether --with-included-regex was given. -if test "${with_included_regex+set}" = set; then - withval=$with_included_regex; jm_with_regex=$withval -else - jm_with_regex=$ac_use_included_regex -fi - if test "$jm_with_regex" = yes; then - LIBGREPOBJS="$LIBGREPOBJS regex.$ac_objext" @@ -63997,7 +58825,6 @@ - : @@ -64007,9 +58834,43 @@ - : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi @@ -64017,4011 +58878,3237 @@ -for ac_func in btowc -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func + fi # test -n "$compiler" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ + CC=$lt_save_CC + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes -#ifdef __STDC__ -# include -#else -# include -#endif +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu -#undef $ac_func -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" +if test "${enable_libasprintf+set}" = set; then + if test "$enable_libasprintf" != no; then + TESTLIBASPRINTF=yes + else + TESTLIBASPRINTF=no + fi else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + TESTLIBASPRINTF=yes fi - -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +if test "$CXX" = ":"; then + TESTLIBASPRINTF=no fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done +test -d intl || mkdir intl +echo "GNU gettext library from gettext-$VERSION" > intl/VERSION +cat > intl/ChangeLog.inst < - fi + * Version $VERSION released. +EOF +subdirs="$subdirs examples" +ac_config_files="$ac_config_files Makefile" -{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } -if test "${ac_cv_c_bigendian+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # See if sys/param.h defines the BYTE_ORDER macro. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ - && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) - bogus endian macros -#endif +ac_config_files="$ac_config_files doc/Makefile" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - # It does; now see whether it defined to BIG_ENDIAN or not. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif +ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in" - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_cv_c_bigendian=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_c_bigendian=no -fi +ac_config_files="$ac_config_files gnulib-lib/Makefile" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # It does not; compile a test program. -if test "$cross_compiling" = yes; then - # try to guess the endianness by grepping values into an object file - ac_cv_c_bigendian=unknown - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; -short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } -short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; -short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } -int -main () -{ - _ascii (); _ebcdic (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then - ac_cv_c_bigendian=yes -fi -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +ac_config_files="$ac_config_files libgrep/Makefile" -fi +ac_config_files="$ac_config_files src/Makefile" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ +ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in" - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_bigendian=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +ac_config_files="$ac_config_files libgettextpo/Makefile" -( exit $ac_status ) -ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +ac_config_files="$ac_config_files libgettextpo/exported.sh" -fi +ac_config_files="$ac_config_files po/Makefile.in" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 -echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } -case $ac_cv_c_bigendian in - yes) - endianness=1 ;; - no) - endianness=0 ;; - *) - echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2 - echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2 - exit 1 ;; -esac +ac_config_files="$ac_config_files projects/Makefile" -cat >>confdefs.h <<_ACEOF -#define ENDIANNESS $endianness -_ACEOF +ac_config_files="$ac_config_files styles/Makefile" +ac_config_files="$ac_config_files misc/Makefile" -for ac_header in arpa/inet.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -else - # Is the header compilable? -{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +ac_config_files="$ac_config_files misc/gettextize" - ac_header_compiler=no -fi +ac_config_files="$ac_config_files misc/autopoint" -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6; } +ac_config_files="$ac_config_files misc/convert-archive" -# Is the header present? -{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_header_preproc=no -fi +ac_config_files="$ac_config_files man/Makefile" -rm -f conftest.err conftest.$ac_ext -{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6; } +ac_config_files="$ac_config_files man/x-to-1" -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ;; -esac -{ echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval echo '${'$as_ac_Header'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } +ac_config_files="$ac_config_files m4/Makefile" -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF -fi +ac_config_files="$ac_config_files tests/Makefile" -done +ac_config_files="$ac_config_files gnulib-tests/Makefile" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. -for ac_func in gethostname gethostbyname inet_ntop -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done -#ifdef __STDC__ -# include -#else -# include -#endif + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache -#undef $ac_func +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$ac_func || defined __stub___$ac_func -choke me -#endif +DEFS=-DHAVE_CONFIG_H -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs - eval "$as_ac_var=no" -fi +LTLIBOBJS=$ac_ltlibobjs -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= fi -ac_res=`eval echo '${'$as_ac_var'}'` - { echo "$as_me:$LINENO: result: $ac_res" >&5 -echo "${ECHO_T}$ac_res" >&6; } -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then + as_fn_error "conditional \"WOE32\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then + as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then + as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then + as_fn_error "conditional \"INCLUDED_LIBCROCO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then + as_fn_error "conditional \"INCLUDED_LIBGLIB\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then + as_fn_error "conditional \"INCLUDED_LIBXML\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then + as_fn_error "conditional \"RELOCATABLE_VIA_LD\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNINAME_UNINAME_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNINAME_UNINAME\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -done + gl_libobjs= + gl_ltlibobjs= + if test -n "$gl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gl_libobjs="$gl_libobjs $i.$ac_objext" + gl_ltlibobjs="$gl_ltlibobjs $i.lo" + done + fi + gl_LIBOBJS=$gl_libobjs - { echo "$as_me:$LINENO: checking for IPv6 sockets" >&5 -echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6; } - if test "${gt_cv_socket_ipv6+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + gl_LTLIBOBJS=$gl_ltlibobjs - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -#include -#include -int -main () -{ -int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - gt_cv_socket_ipv6=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if test -z "${POSIX_SPAWN_PORTED_TRUE}" && test -z "${POSIX_SPAWN_PORTED_FALSE}"; then + as_fn_error "conditional \"POSIX_SPAWN_PORTED\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CMP_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + gltests_LIBOBJS=$gltests_libobjs - gt_cv_socket_ipv6=no -fi + gltests_LTLIBOBJS=$gltests_ltlibobjs -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then + as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi - { echo "$as_me:$LINENO: result: $gt_cv_socket_ipv6" >&5 -echo "${ECHO_T}$gt_cv_socket_ipv6" >&6; } - if test $gt_cv_socket_ipv6 = yes; then + grgl_libobjs= + grgl_ltlibobjs= + if test -n "$grgl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + grgl_libobjs="$grgl_libobjs $i.$ac_objext" + grgl_ltlibobjs="$grgl_ltlibobjs $i.lo" + done + fi + grgl_LIBOBJS=$grgl_libobjs -cat >>confdefs.h <<\_ACEOF -#define HAVE_IPV6 1 -_ACEOF + grgl_LTLIBOBJS=$grgl_ltlibobjs - fi -if test "$enable_shared" = yes; then - case "$host_os" in - mingw* | cygwin*) is_woe32dll=yes ;; - *) is_woe32dll=no ;; - esac -else - is_woe32dll=no + grgltests_libobjs= + grgltests_ltlibobjs= + if test -n "$grgltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + grgltests_libobjs="$grgltests_libobjs $i.$ac_objext" + grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo" + done + fi + grgltests_LIBOBJS=$grgltests_libobjs + + grgltests_LTLIBOBJS=$grgltests_ltlibobjs + + +if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then + as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi - if test $is_woe32dll = yes; then - WOE32DLL_TRUE= - WOE32DLL_FALSE='#' -else - WOE32DLL_TRUE='#' - WOE32DLL_FALSE= +if test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_PREV_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_PREV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then + as_fn_error "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -if test $is_woe32dll = yes; then + gtpo_libobjs= + gtpo_ltlibobjs= + if test -n "$gtpo_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gtpo_libobjs="$gtpo_libobjs $i.$ac_objext" + gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo" + done + fi + gtpo_LIBOBJS=$gtpo_libobjs -cat >>confdefs.h <<\_ACEOF -#define WOE32DLL 1 -_ACEOF + gtpo_LTLIBOBJS=$gtpo_ltlibobjs -fi + gtpotests_libobjs= + gtpotests_ltlibobjs= + if test -n "$gtpotests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext" + gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo" + done + fi + gtpotests_LIBOBJS=$gtpotests_libobjs + gtpotests_LTLIBOBJS=$gtpotests_ltlibobjs +if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then + as_fn_error "conditional \"WOE32DLL\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi -case "$host_os" in - linux*) +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. -cat >>confdefs.h <<\_ACEOF -#define DYNLOAD_LIBEXPAT 1 -_ACEOF +debug=false +ac_cs_recheck=false +ac_cs_silent=false - LIBEXPAT="-ldl" - LTLIBEXPAT="-ldl" +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi - ;; - *) +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - use_additional=yes - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi -# Check whether --with-libexpat-prefix was given. -if test "${with_libexpat_prefix+set}" = set; then - withval=$with_libexpat_prefix; - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null - LIBEXPAT= - LTLIBEXPAT= - INCEXPAT= - LIBEXPAT_PREFIX= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='expat ' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" - else - : - fi - else - found_dir= - found_la= - found_so= - found_a= - eval libname=\"$acl_libname_spec\" # typically: libname=lib$name - if test -n "$acl_shlibext"; then - shrext=".$acl_shlibext" # typically: shrext=.so - else - shrext= - fi - if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIBEXPAT; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" - fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then - found_dir="$dir" - found_so="$dir/$f" - break - fi - done - fi - fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" - else - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - if test "$acl_hardcode_direct" = yes; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" - else - if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - haveit= - for x in $LDFLAGS $LIBEXPAT; do + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" - fi - if test "$acl_hardcode_minus_L" != no; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" - else - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" - else - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" - fi - fi - additional_includedir= - case "$found_dir" in - */$acl_libdirstem | */$acl_libdirstem/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` - LIBEXPAT_PREFIX="$basedir" - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INCEXPAT; do +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - if test -n "$found_la"; then - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIBEXPAT; do +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by gettext-tools $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIBEXPAT; do + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" - LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" - ;; - esac - done - fi - else - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" - LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$acl_hardcode_libdir_separator"; then - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" - done - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" - else - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$acl_hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - for found_dir in $ltrpathdirs; do - LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" - done - fi +_ACEOF +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac - ac_save_CPPFLAGS="$CPPFLAGS" +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac - for element in $INCEXPAT; do - haveit= - for x in $CPPFLAGS; do - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - eval x=\"$x\" - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" - fi - done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. - { echo "$as_me:$LINENO: checking for libexpat" >&5 -echo $ECHO_N "checking for libexpat... $ECHO_C" >&6; } -if test "${ac_cv_libexpat+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIBEXPAT" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ _ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include -int -main () +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +gettext-tools config.status +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log { -XML_ExpatVersion(); - ; - return 0; -} + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "X$install_override_mode" | $Xsed -e "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' +LD_RC='`$ECHO "X$LD_RC" | $Xsed -e "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds_RC='`$ECHO "X$old_archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_RC='`$ECHO "X$compiler_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' +GCC_RC='`$ECHO "X$GCC_RC" | $Xsed -e "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_RC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl_RC='`$ECHO "X$lt_prog_compiler_wl_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic_RC='`$ECHO "X$lt_prog_compiler_pic_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static_RC='`$ECHO "X$lt_prog_compiler_static_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_RC='`$ECHO "X$lt_cv_prog_compiler_c_o_RC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc_RC='`$ECHO "X$archive_cmds_need_lc_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_RC='`$ECHO "X$enable_shared_with_static_runtimes_RC" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec_RC='`$ECHO "X$export_dynamic_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec_RC='`$ECHO "X$whole_archive_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object_RC='`$ECHO "X$compiler_needs_object_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds_RC='`$ECHO "X$old_archive_from_new_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_RC='`$ECHO "X$old_archive_from_expsyms_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_RC='`$ECHO "X$archive_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds_RC='`$ECHO "X$archive_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds_RC='`$ECHO "X$module_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds_RC='`$ECHO "X$module_expsym_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld_RC='`$ECHO "X$with_gnu_ld_RC" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag_RC='`$ECHO "X$allow_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag_RC='`$ECHO "X$no_undefined_flag_RC" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_RC='`$ECHO "X$hardcode_libdir_flag_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_RC='`$ECHO "X$hardcode_libdir_flag_spec_ld_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator_RC='`$ECHO "X$hardcode_libdir_separator_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_RC='`$ECHO "X$hardcode_direct_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute_RC='`$ECHO "X$hardcode_direct_absolute_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L_RC='`$ECHO "X$hardcode_minus_L_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var_RC='`$ECHO "X$hardcode_shlibpath_var_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic_RC='`$ECHO "X$hardcode_automatic_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath_RC='`$ECHO "X$inherit_rpath_RC" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs_RC='`$ECHO "X$link_all_deplibs_RC" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path_RC='`$ECHO "X$fix_srcfile_path_RC" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols_RC='`$ECHO "X$always_export_symbols_RC" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds_RC='`$ECHO "X$export_symbols_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms_RC='`$ECHO "X$exclude_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms_RC='`$ECHO "X$include_expsyms_RC" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds_RC='`$ECHO "X$prelink_cmds_RC" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec_RC='`$ECHO "X$file_list_spec_RC" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action_RC='`$ECHO "X$hardcode_action_RC" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs_RC='`$ECHO "X$compiler_lib_search_dirs_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects_RC='`$ECHO "X$predep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects_RC='`$ECHO "X$postdep_objects_RC" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predeps_RC='`$ECHO "X$predeps_RC" | $Xsed -e "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdeps_RC='`$ECHO "X$postdeps_RC" | $Xsed -e "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path_RC='`$ECHO "X$compiler_lib_search_path_RC" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +deplibs_check_method \ +file_magic_cmd \ +AR \ +AR_FLAGS \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +SHELL \ +ECHO \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_wl \ +lt_prog_compiler_pic \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +fix_srcfile_path \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_RC \ +LD_CXX \ +compiler_RC \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_RC \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_wl_RC \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_pic_RC \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_static_RC \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_RC \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_RC \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_RC \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_RC \ +compiler_needs_object_CXX \ +with_gnu_ld_RC \ +with_gnu_ld_CXX \ +allow_undefined_flag_RC \ +allow_undefined_flag_CXX \ +no_undefined_flag_RC \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_RC \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_flag_spec_ld_RC \ +hardcode_libdir_flag_spec_ld_CXX \ +hardcode_libdir_separator_RC \ +hardcode_libdir_separator_CXX \ +fix_srcfile_path_RC \ +fix_srcfile_path_CXX \ +exclude_expsyms_RC \ +exclude_expsyms_CXX \ +include_expsyms_RC \ +include_expsyms_CXX \ +file_list_spec_RC \ +file_list_spec_CXX \ +compiler_lib_search_dirs_RC \ +compiler_lib_search_dirs_CXX \ +predep_objects_RC \ +predep_objects_CXX \ +postdep_objects_RC \ +postdep_objects_CXX \ +predeps_RC \ +predeps_CXX \ +postdeps_RC \ +postdeps_CXX \ +compiler_lib_search_path_RC \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +old_archive_cmds_RC \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_RC \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_RC \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_RC \ +archive_cmds_CXX \ +archive_expsym_cmds_RC \ +archive_expsym_cmds_CXX \ +module_cmds_RC \ +module_cmds_CXX \ +module_expsym_cmds_RC \ +module_expsym_cmds_CXX \ +export_symbols_cmds_RC \ +export_symbols_cmds_CXX \ +prelink_cmds_RC \ +prelink_cmds_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` + ;; esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && - $as_test_x conftest$ac_exeext; then - ac_cv_libexpat=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - ac_cv_libexpat=no +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST fi -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$ac_save_LIBS" + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + + +# Capture the value of obsolete ALL_LINGUAS because we need it to compute + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it + # from automake < 1.5. + eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # Capture the value of LINGUAS because we need it to compute CATALOGS. + LINGUAS="${LINGUAS-%UNSET%}" + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; + "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; + "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;; + "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; + "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; + "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;; + "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; + "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;; + "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;; + "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;; + "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;; + "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; + "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;; + "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;; + "misc/convert-archive") CONFIG_FILES="$CONFIG_FILES misc/convert-archive" ;; + "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; + "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; + "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + +if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then + ac_cs_awk_getline=: + ac_cs_awk_pipe_init= + ac_cs_awk_read_file=' + while ((getline aline < (F[key])) > 0) + print(aline) + close(F[key])' + ac_cs_awk_pipe_fini= +else + ac_cs_awk_getline=false + ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" + ac_cs_awk_read_file=' + print "|#_!!_#|" + print "cat " F[key] " &&" + '$ac_cs_awk_pipe_init + # The final `:' finishes the AND list. + ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' +fi +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF + +# Create commands to substitute file output variables. +{ + echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && + echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && + echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && + echo "_ACAWK" && + echo "_ACEOF" +} >conf$$files.sh && +. ./conf$$files.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +rm -f conf$$files.sh + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + \$ac_cs_awk_pipe_init +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + if (nfields == 3 && !substed) { + key = field[2] + if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { + \$ac_cs_awk_read_file + next + } + } + print line +} +\$ac_cs_awk_pipe_fini +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' fi -{ echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 -echo "${ECHO_T}$ac_cv_libexpat" >&6; } - if test "$ac_cv_libexpat" = yes; then - HAVE_LIBEXPAT=yes -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBEXPAT 1 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { _ACEOF - { echo "$as_me:$LINENO: checking how to link with libexpat" >&5 -echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 -echo "${ECHO_T}$LIBEXPAT" >&6; } +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 else - HAVE_LIBEXPAT=no - CPPFLAGS="$ac_save_CPPFLAGS" - LIBEXPAT= - LTLIBEXPAT= - LIBEXPAT_PREFIX= + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi +done +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac ;; -esac - + esac + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix - GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - if test -n "$GLOBAL_SYMBOL_PIPE"; then - HAVE_GLOBAL_SYMBOL_PIPE=1 - else - HAVE_GLOBAL_SYMBOL_PIPE= - fi + case $ac_mode in + :F) + # + # CONFIG_FILE + # + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF - # If set to t, that means we are running in a shell under Emacs. - # If you have an Emacs named "t", then use the full path. - test x"$EMACS" = xt && EMACS= - for ac_prog in emacs xemacs -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_EMACS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$EMACS"; then - ac_cv_prog_EMACS="$EMACS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_EMACS="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF -fi -fi -EMACS=$ac_cv_prog_EMACS -if test -n "$EMACS"; then - { echo "$as_me:$LINENO: result: $EMACS" >&5 -echo "${ECHO_T}$EMACS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | +if $ac_cs_awk_getline; then + $AWK -f "$tmp/subs.awk" +else + $AWK -f "$tmp/subs.awk" | $SHELL +fi >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} - test -n "$EMACS" && break + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac done -test -n "$EMACS" || EMACS="no" - - - - -# Check whether --with-lispdir was given. -if test "${with_lispdir+set}" = set; then - withval=$with_lispdir; lispdir="$withval" - { echo "$as_me:$LINENO: checking where .elc files should go" >&5 -echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $lispdir" >&5 -echo "${ECHO_T}$lispdir" >&6; } -else +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; - { echo "$as_me:$LINENO: checking where .elc files should go" >&5 -echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6; } -if test "${am_cv_lispdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac - if test $EMACS != "no"; then - if test x${lispdir+set} != xset; then - # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly - # Some emacsen will start up in interactive mode, requiring C-x C-c to exit, - # which is non-obvious for non-emacs users. - # Redirecting /dev/null should help a bit; pity we can't detect "broken" - # emacsen earlier and avoid running this altogether. - { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' conftest.out") >&5 - ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' conftest.out) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - am_cv_lispdir=`sed -n \ - -e 's,/$,,' \ - -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \ - -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \ - conftest.out` - rm conftest.out - fi - fi - test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp' -fi -{ echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5 -echo "${ECHO_T}$am_cv_lispdir" >&6; } - lispdir="$am_cv_lispdir" + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) -fi + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# Check whether --with-emacs was given. -if test "${with_emacs+set}" = set; then - withval=$with_emacs; gt_use_emacs=$withval -else - gt_use_emacs=yes -fi -if test "$EMACS" != no; then - { echo "$as_me:$LINENO: checking whether Emacs support is requested" >&5 -echo $ECHO_N "checking whether Emacs support is requested... $ECHO_C" >&6; } - { echo "$as_me:$LINENO: result: $gt_use_emacs" >&5 -echo "${ECHO_T}$gt_use_emacs" >&6; } - if test "$gt_use_emacs" = no; then - EMACS=no - fi -fi +# The names of the tagged configurations supported by this script. +available_tags="RC CXX " -aclocaldir='${datadir}/aclocal' +# ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision -ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -# Extract the first word of "dvips", so it can be a program name with args. -set dummy dvips; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_DVIPS+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $DVIPS in - [\\/]* | ?:[\\/]*) - ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# Assembler program. +AS=$AS - test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips" - ;; -esac -fi -DVIPS=$ac_cv_path_DVIPS -if test -n "$DVIPS"; then - { echo "$as_me:$LINENO: result: $DVIPS" >&5 -echo "${ECHO_T}$DVIPS" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# DLL creation program. +DLLTOOL=$DLLTOOL +# Object dumper program. +OBJDUMP=$OBJDUMP -# Extract the first word of "texi2pdf", so it can be a program name with args. -set dummy texi2pdf; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_TEXI2PDF+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $TEXI2PDF in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared - test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf" - ;; -esac -fi -TEXI2PDF=$ac_cv_path_TEXI2PDF -if test -n "$TEXI2PDF"; then - { echo "$as_me:$LINENO: result: $TEXI2PDF" >&5 -echo "${ECHO_T}$TEXI2PDF" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# Whether or not to build static libraries. +build_old_libs=$enable_static +# What type of objects to build. +pic_mode=$pic_mode -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl" - ;; -esac -fi -PERL=$ac_cv_path_PERL -if test -n "$PERL"; then - { echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os +# A sed program that does not truncate output. +SED=$lt_SED -CROSS_COMPILING=$cross_compiling +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" +# A grep program that handles long lines. +GREP=$lt_GREP +# An ERE matcher. +EGREP=$lt_EGREP -for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_CXX="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS +# A literal string matcher. +FGREP=$lt_FGREP -fi -fi -CXX=$ac_cv_prog_CXX -if test -n "$CXX"; then - { echo "$as_me:$LINENO: result: $CXX" >&5 -echo "${ECHO_T}$CXX" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +# A BSD- or MS-compatible name lister. +NM=$lt_NM +# Whether we need soft or hard links. +LN_S=$lt_LN_S - test -n "$CXX" && break -done -test -n "$CXX" || CXX=":" +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len -if test "$CXX" != ":"; then - { echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 -echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +# Object file suffix (normally "o"). +objext=$ac_objext +# Executable file suffix (normally ""). +exeext=$exeext +# whether the shell understands "unset". +lt_unset=$lt_unset - echo 'int main () { return 0; }' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - ac_cv_prog_cxx_works=yes - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi - else - ac_cv_prog_cxx_works=no - fi - rm -fr conftest* - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL - { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5 -echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6; } - if test $ac_cv_prog_cxx_works = no; then - CXX=: - else - { echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5 -echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP - cat < conftest.$ac_ext -#include -namespace test { using namespace std; } -std::ostream* ptr; -int main () { return 0; } -EOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - gt_cv_prog_cxx_namespaces=yes - else - gt_cv_prog_cxx_namespaces=no - fi - rm -fr conftest* - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds - { echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5 -echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6; } - if test $gt_cv_prog_cxx_namespaces = no; then - CXX=: - fi - fi -fi +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd=$lt_file_magic_cmd +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS +# A symbol stripping program. +STRIP=$lt_STRIP - { echo "$as_me:$LINENO: checking for a traditional french locale" >&5 -echo $ECHO_N "checking for a traditional french locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_fr+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds - macosx= - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_fr=none - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# A C compiler. +LTCC=$lt_CC -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include -#include -struct tm t; -char buf[16]; -int main () { - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -#if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -#endif -#ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -#endif - /* Check whether in the abbreviation of the second month, the second - character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only - one byte long. This excludes the UTF-8 encoding. */ - t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; - if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; - /* Check whether the decimal separator is a comma. - On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point - are nl_langinfo(RADIXCHAR) are both ".". */ - if (localeconv () ->decimal_point[0] != ',') return 1; - return 0; -} +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS -_ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the usual locale name. - if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO-8859-1 - else - # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. - if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO8859-1 - else - # Test for the HP-UX locale name. - if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.iso88591 - else - # Test for the Solaris 7 locale name. - if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr - else - # None found. - gt_cv_locale_fr=none - fi - fi - fi - fi - fi - fi - rm -fr conftest* - fi +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5 -echo "${ECHO_T}$gt_cv_locale_fr" >&6; } - LOCALE_FR=$gt_cv_locale_fr +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix +# The name of the directory that contains temporary libtool files. +objdir=$objdir - { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5 -echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_fr_utf8+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# An echo program that does not interpret backslashes. +ECHO=$lt_ECHO -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include -#include -struct tm t; -char buf[16]; -int main () { - /* On BeOS, locales are not implemented in libc. Rather, libintl - imitates locale dependent behaviour by looking at the environment - variables, and all locales use the UTF-8 encoding. */ -#if !defined(__BEOS__) - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -# if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -# endif -# ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -# endif - /* Check whether in the abbreviation of the second month, the second - character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is - two bytes long, with UTF-8 encoding. */ - t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; - if (strftime (buf, sizeof (buf), "%b", &t) < 4 - || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') - return 1; -#endif - /* Check whether the decimal separator is a comma. - On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point - are nl_langinfo(RADIXCHAR) are both ".". */ - if (localeconv () ->decimal_point[0] != ',') return 1; - return 0; -} +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD -_ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the usual locale name. - if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr_utf8=fr_FR - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr_utf8=fr_FR.UTF-8 - else - # Test for the Solaris 7 locale name. - if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr_utf8=fr.UTF-8 - else - # None found. - gt_cv_locale_fr_utf8=none - fi - fi - fi - fi - rm -fr conftest* +# Must we lock files when doing compilation? +need_locks=$lt_need_locks -fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5 -echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; } - LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 - { echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5 -echo $ECHO_N "checking for a traditional japanese locale... $ECHO_C" >&6; } -if test "${gt_cv_locale_ja+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else +# Old archive suffix (normally "a"). +libext=$libext - macosx= - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_ja=none - else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include -#include -struct tm t; -char buf[16]; -int main () -{ - const char *p; - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -#if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -#endif -#ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -#endif - /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. - This excludes the UTF-8 encoding. */ - t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; - if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; - for (p = buf; *p != '\0'; p++) - if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) - return 1; - return 0; -} +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds -_ACEOF - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the AIX locale name. - if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.EUC-JP - else - # Test for the HP-UX, OSF/1, NetBSD locale name. - if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.eucJP - else - # Test for the IRIX, FreeBSD locale name. - if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.EUC - else - # Test for the Solaris 7 locale name. - if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja - else - # Special test for NetBSD 1.6. - if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then - gt_cv_locale_ja=ja_JP.eucJP - else - # None found. - gt_cv_locale_ja=none - fi - fi - fi - fi - fi - fi - fi - rm -fr conftest* - fi +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink -fi -{ echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5 -echo "${ECHO_T}$gt_cv_locale_ja" >&6; } - LOCALE_JA=$gt_cv_locale_ja +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix +# Do we need a version for libraries? +need_version=$need_version +# Library versioning type. +version_type=$version_type -if test "${enable_libasprintf+set}" = set; then - if test "$enable_libasprintf" != no; then - TESTLIBASPRINTF=yes - else - TESTLIBASPRINTF=no - fi -else - TESTLIBASPRINTF=yes -fi -if test "$CXX" = ":"; then - TESTLIBASPRINTF=no -fi +# Shared library runtime path variable. +runpath_var=$runpath_var +# Shared library path variable. +shlibpath_var=$shlibpath_var -test -d intl || mkdir intl -echo "GNU gettext library from gettext-$VERSION" > intl/VERSION -cat > intl/ChangeLog.inst < +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath - * Version $VERSION released. +# Format of library name prefix. +libname_spec=$lt_libname_spec -EOF +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec -subdirs="$subdirs examples" +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode -ac_config_files="$ac_config_files Makefile" +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds -ac_config_files="$ac_config_files doc/Makefile" +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval -ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in" +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -ac_config_files="$ac_config_files gnulib-lib/Makefile" +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec +# Whether dlopen is supported. +dlopen_support=$enable_dlopen -ac_config_files="$ac_config_files libgrep/Makefile" +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static -ac_config_files="$ac_config_files src/Makefile" +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib -ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in" +# The linker used to build libraries. +LD=$lt_LD -ac_config_files="$ac_config_files libgettextpo/Makefile" +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds -ac_config_files="$ac_config_files libgettextpo/exported.sh" +# A language specific compiler. +CC=$lt_compiler +# Is the compiler the GNU compiler? +with_gcc=$GCC -ac_config_files="$ac_config_files po/Makefile.in" +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl -ac_config_files="$ac_config_files projects/Makefile" +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static -ac_config_files="$ac_config_files styles/Makefile" +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc -ac_config_files="$ac_config_files misc/Makefile" +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes -ac_config_files="$ac_config_files misc/gettextize" +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec -ac_config_files="$ac_config_files misc/autopoint" +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object -ac_config_files="$ac_config_files man/Makefile" +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds -ac_config_files="$ac_config_files man/x-to-1" +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds -ac_config_files="$ac_config_files m4/Makefile" +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld -ac_config_files="$ac_config_files tests/Makefile" +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag -ac_config_files="$ac_config_files gnulib-tests/Makefile" +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator -_ACEOF +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; - esac ;; - esac - done +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} - cat confcache >$cache_file - else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var -DEFS=-DHAVE_CONFIG_H +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath -LTLIBOBJS=$ac_ltlibobjs +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"WOE32\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"WOE32\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBGLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"INCLUDED_LIBGLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBCROCO\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"INCLUDED_LIBCROCO\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBGLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"INCLUDED_LIBGLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBXML\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"INCLUDED_LIBXML\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols - gl_libobjs= - gl_ltlibobjs= - if test -n "$gl_LIBOBJS"; then - # Remove the extension. - sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do - gl_libobjs="$gl_libobjs $i.$ac_objext" - gl_ltlibobjs="$gl_ltlibobjs $i.lo" - done - fi - gl_LIBOBJS=$gl_libobjs +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds - gl_LTLIBOBJS=$gl_ltlibobjs +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms -if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds - gtpo_libobjs= - gtpo_ltlibobjs= - if test -n "$gtpo_LIBOBJS"; then - # Remove the extension. - sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do - gtpo_libobjs="$gtpo_libobjs $i.$ac_objext" - gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo" - done - fi - gtpo_LIBOBJS=$gtpo_libobjs +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps - gtpo_LTLIBOBJS=$gtpo_ltlibobjs +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path +# ### END LIBTOOL CONFIG -if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"WOE32DLL\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"WOE32DLL\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi +_LT_EOF -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +ltmain="$ac_aux_dir/ltmain.sh" -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac -fi + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -as_nl=' -' -IFS=" "" $as_nl" +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} -# Find who we are. Look in the path if we contain no directory separator. -case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -IFS=$as_save_IFS +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } -fi +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -done -PS1='$ ' -PS2='> ' -PS4='+ ' +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + func_dirname_result="$func_dirname_result${2}" fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi +} +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` -# CDPATH. -$as_unset CDPATH +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} +# sed scripts: +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[^=]*=//' +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$@"` +} -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` +} -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in --n*) - case `echo 'x\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; - esac;; -*) - ECHO_N='-n';; +_LT_EOF esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir -fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1+=\$2" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1=\$$1\$2" +} -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x +_LT_EOF + ;; + esac -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" -exec 6>&1 -# Save the log message, to keep $[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was + cat <<_LT_EOF >> "$ofile" - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ +# ### BEGIN LIBTOOL TAG CONFIG: RC -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" +# The linker used to build libraries. +LD=$lt_LD_RC -_ACEOF +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_RC -cat >>$CONFIG_STATUS <<_ACEOF -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" -config_commands="$ac_config_commands" +# A language specific compiler. +CC=$lt_compiler_RC -_ACEOF +# Is the compiler the GNU compiler? +with_gcc=$GCC_RC -cat >>$CONFIG_STATUS <<\_ACEOF -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC -Usage: $0 [OPTIONS] [FILE]... +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_RC - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_RC -Configuration files: -$config_files +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_RC -Configuration headers: -$config_headers +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC -Configuration commands: -$config_commands +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_RC -Report bugs to ." +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC -Copyright (C) 2006 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -MKDIR_P='$MKDIR_P' -_ACEOF +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_RC -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - { echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC - # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_RC +archive_expsym_cmds=$lt_archive_expsym_cmds_RC - *) ac_config_targets="$ac_config_targets $1" - ac_need_defaults=false ;; +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_RC +module_expsym_cmds=$lt_module_expsym_cmds_RC - esac - shift -done +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_RC -ac_configure_extra_args= +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_RC -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_RC -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL - export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - echo "$ac_log" -} >&5 +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" -# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_RC -_ACEOF +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_RC -cat >>$CONFIG_STATUS <<\_ACEOF +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_RC -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; - "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;; - "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;; - "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;; - "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;; - "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;; - "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;; - "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;; - "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;; - "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;; - "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; - "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;; - "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;; - "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; - "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;; - "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; - "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;; +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_RC +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_RC -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_RC -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= - trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status -' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_RC -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_RC -# -# Set up the sed scripts for CONFIG_FILES section. -# +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_RC -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "$CONFIG_FILES"; then +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_RC -_ACEOF +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_RC -# Create sed commands to just substitute file output variables. +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_RC -# Remaining file output variables are in a fragment that also has non-file -# output varibles. +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_RC +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_RC +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -CC!$CC$ac_delim -CFLAGS!$CFLAGS$ac_delim -LDFLAGS!$LDFLAGS$ac_delim -CPPFLAGS!$CPPFLAGS$ac_delim -ac_ct_CC!$ac_ct_CC$ac_delim -EXEEXT!$EXEEXT$ac_delim -OBJEXT!$OBJEXT$ac_delim -DEPDIR!$DEPDIR$ac_delim -am__include!$am__include$ac_delim -am__quote!$am__quote$ac_delim -AMDEP_TRUE!$AMDEP_TRUE$ac_delim -AMDEP_FALSE!$AMDEP_FALSE$ac_delim -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim -CCDEPMODE!$CCDEPMODE$ac_delim -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim -YACC!$YACC$ac_delim -YFLAGS!$YFLAGS$ac_delim -JAVA_CHOICE!$JAVA_CHOICE$ac_delim -GCJ!$GCJ$ac_delim -GCJFLAGS!$GCJFLAGS$ac_delim -HAVE_GCJ!$HAVE_GCJ$ac_delim -BUILDJAVAEXE!$BUILDJAVAEXE$ac_delim -CPP!$CPP$ac_delim -GREP!$GREP$ac_delim -EGREP!$EGREP$ac_delim -HAVE_GIJ_IN_PATH!$HAVE_GIJ_IN_PATH$ac_delim -HAVE_JAVA_IN_PATH!$HAVE_JAVA_IN_PATH$ac_delim -HAVE_JRE_IN_PATH!$HAVE_JRE_IN_PATH$ac_delim -HAVE_JVIEW_IN_PATH!$HAVE_JVIEW_IN_PATH$ac_delim -CONF_JAVA!$CONF_JAVA$ac_delim -CLASSPATH!$CLASSPATH$ac_delim -CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim -HAVE_JAVA_ENVVAR!$HAVE_JAVA_ENVVAR$ac_delim -HAVE_GIJ!$HAVE_GIJ$ac_delim -_ACEOF +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_RC +postdep_objects=$lt_postdep_objects_RC +predeps=$lt_predeps_RC +postdeps=$lt_postdeps_RC - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# ### END LIBTOOL TAG CONFIG: RC +_LT_EOF -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -/^[ ]*@relocatable_sh@[ ]*$/{ -r $relocatable_sh -d -} -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF + cat <<_LT_EOF >> "$ofile" -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -HAVE_JAVA!$HAVE_JAVA$ac_delim -HAVE_JRE!$HAVE_JRE$ac_delim -HAVE_JVIEW!$HAVE_JVIEW$ac_delim -HAVE_GCJ_IN_PATH!$HAVE_GCJ_IN_PATH$ac_delim -HAVE_JAVAC_IN_PATH!$HAVE_JAVAC_IN_PATH$ac_delim -HAVE_JIKES_IN_PATH!$HAVE_JIKES_IN_PATH$ac_delim -CONF_JAVAC!$CONF_JAVAC$ac_delim -HAVE_JAVAC_ENVVAR!$HAVE_JAVAC_ENVVAR$ac_delim -HAVE_GCJ_C!$HAVE_GCJ_C$ac_delim -HAVE_JAVAC!$HAVE_JAVAC$ac_delim -HAVE_JIKES!$HAVE_JIKES$ac_delim -JAR!$JAR$ac_delim -BUILDJAVA!$BUILDJAVA$ac_delim -TESTJAVA!$TESTJAVA$ac_delim -CSHARP_CHOICE!$CSHARP_CHOICE$ac_delim -HAVE_CSCC_IN_PATH!$HAVE_CSCC_IN_PATH$ac_delim -HAVE_MCS_IN_PATH!$HAVE_MCS_IN_PATH$ac_delim -HAVE_CSC_IN_PATH!$HAVE_CSC_IN_PATH$ac_delim -HAVE_CSCC!$HAVE_CSCC$ac_delim -HAVE_MCS!$HAVE_MCS$ac_delim -HAVE_CSC!$HAVE_CSC$ac_delim -CSHARPCOMPFLAGS!$CSHARPCOMPFLAGS$ac_delim -BUILDCSHARP!$BUILDCSHARP$ac_delim -HAVE_ILRUN_IN_PATH!$HAVE_ILRUN_IN_PATH$ac_delim -HAVE_MONO_IN_PATH!$HAVE_MONO_IN_PATH$ac_delim -HAVE_CLIX_IN_PATH!$HAVE_CLIX_IN_PATH$ac_delim -MONO_PATH!$MONO_PATH$ac_delim -MONO_PATH_SEPARATOR!$MONO_PATH_SEPARATOR$ac_delim -CLIX_PATH_VAR!$CLIX_PATH_VAR$ac_delim -CLIX_PATH!$CLIX_PATH$ac_delim -HAVE_ILRUN!$HAVE_ILRUN$ac_delim -HAVE_MONO!$HAVE_MONO$ac_delim -HAVE_CLIX!$HAVE_CLIX$ac_delim -TESTCSHARP!$TESTCSHARP$ac_delim -build!$build$ac_delim -build_cpu!$build_cpu$ac_delim -build_vendor!$build_vendor$ac_delim -build_os!$build_os$ac_delim -host!$host$ac_delim -host_cpu!$host_cpu$ac_delim -host_vendor!$host_vendor$ac_delim -host_os!$host_os$ac_delim -RANLIB!$RANLIB$ac_delim -SED!$SED$ac_delim -LN_S!$LN_S$ac_delim -ECHO!$ECHO$ac_delim -AR!$AR$ac_delim -DLLTOOL!$DLLTOOL$ac_delim -AS!$AS$ac_delim -OBJDUMP!$OBJDUMP$ac_delim -CXX!$CXX$ac_delim -CXXFLAGS!$CXXFLAGS$ac_delim -ac_ct_CXX!$ac_ct_CXX$ac_delim -CXXDEPMODE!$CXXDEPMODE$ac_delim -am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim -am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim -CXXCPP!$CXXCPP$ac_delim -F77!$F77$ac_delim -FFLAGS!$FFLAGS$ac_delim -ac_ct_F77!$ac_ct_F77$ac_delim -LIBTOOL!$LIBTOOL$ac_delim -LTNOUNDEF!$LTNOUNDEF$ac_delim -WOE32_TRUE!$WOE32_TRUE$ac_delim -WOE32_FALSE!$WOE32_FALSE$ac_delim -USE_NLS!$USE_NLS$ac_delim -GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim -MSGFMT!$MSGFMT$ac_delim -GMSGFMT!$GMSGFMT$ac_delim -MSGFMT_015!$MSGFMT_015$ac_delim -GMSGFMT_015!$GMSGFMT_015$ac_delim -XGETTEXT!$XGETTEXT$ac_delim -XGETTEXT_015!$XGETTEXT_015$ac_delim -MSGMERGE!$MSGMERGE$ac_delim -XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim -GLIBC2!$GLIBC2$ac_delim -CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim -HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim -ALLOCA!$ALLOCA$ac_delim -PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim -LIBPTH!$LIBPTH$ac_delim -LTLIBPTH!$LTLIBPTH$ac_delim -LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim -LIBTHREAD!$LIBTHREAD$ac_delim -LTLIBTHREAD!$LTLIBTHREAD$ac_delim -LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim -LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim -LIBICONV!$LIBICONV$ac_delim -LTLIBICONV!$LTLIBICONV$ac_delim -INTLBISON!$INTLBISON$ac_delim -GLIBC21!$GLIBC21$ac_delim -INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim -HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim -HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim -HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim -HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim -WOE32DLL!$WOE32DLL$ac_delim -WOE32!$WOE32$ac_delim -_ACEOF +# ### BEGIN LIBTOOL TAG CONFIG: CXX - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# The linker used to build libraries. +LD=$lt_LD_CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# A language specific compiler. +CC=$lt_compiler_CXX +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -WINDRES!$WINDRES$ac_delim -LTLIBC!$LTLIBC$ac_delim -BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim -USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim -CATOBJEXT!$CATOBJEXT$ac_delim -DATADIRNAME!$DATADIRNAME$ac_delim -INSTOBJEXT!$INSTOBJEXT$ac_delim -GENCAT!$GENCAT$ac_delim -INTLOBJS!$INTLOBJS$ac_delim -INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim -INTLLIBS!$INTLLIBS$ac_delim -LIBINTL!$LIBINTL$ac_delim -LTLIBINTL!$LTLIBINTL$ac_delim -POSUB!$POSUB$ac_delim -BISON_LOCALEDIR!$BISON_LOCALEDIR$ac_delim -MSGMERGE_LIBM!$MSGMERGE_LIBM$ac_delim -GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim -GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim -LIB_ACL!$LIB_ACL$ac_delim -LIB_ACL_TRIVIAL!$LIB_ACL_TRIVIAL$ac_delim -ALLOCA_H!$ALLOCA_H$ac_delim -BYTESWAP_H!$BYTESWAP_H$ac_delim -LOCALE_FR!$LOCALE_FR$ac_delim -LOCALE_TR_UTF8!$LOCALE_TR_UTF8$ac_delim -GNULIB_OPEN!$GNULIB_OPEN$ac_delim -REPLACE_OPEN!$REPLACE_OPEN$ac_delim -INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim -NEXT_FCNTL_H!$NEXT_FCNTL_H$ac_delim -FCNTL_H!$FCNTL_H$ac_delim -NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim -FLOAT_H!$FLOAT_H$ac_delim -FNMATCH_H!$FNMATCH_H$ac_delim -GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim -GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim -GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim -GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim -GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim -GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim -GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim -GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim -GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim -GNULIB_FOPEN!$GNULIB_FOPEN$ac_delim -GNULIB_FREOPEN!$GNULIB_FREOPEN$ac_delim -GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim -GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim -GNULIB_FTELL!$GNULIB_FTELL$ac_delim -GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim -GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim -GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim -GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim -REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim -REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim -REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim -REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim -REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim -HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim -REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim -HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim -REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim -REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim -HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim -REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim -REPLACE_FOPEN!$REPLACE_FOPEN$ac_delim -REPLACE_FREOPEN!$REPLACE_FREOPEN$ac_delim -HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim -REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim -REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim -HAVE_FTELLO!$HAVE_FTELLO$ac_delim -REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim -REPLACE_FTELL!$REPLACE_FTELL$ac_delim -REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim -HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim -HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim -REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim -GETOPT_H!$GETOPT_H$ac_delim -NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim -HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim -HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim -REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim -SYS_TIME_H!$SYS_TIME_H$ac_delim -REPLACE_ICONV!$REPLACE_ICONV$ac_delim -REPLACE_ICONV_OPEN!$REPLACE_ICONV_OPEN$ac_delim -REPLACE_ICONV_UTF!$REPLACE_ICONV_UTF$ac_delim -NEXT_ICONV_H!$NEXT_ICONV_H$ac_delim -ICONV_H!$ICONV_H$ac_delim -LIBGLIB!$LIBGLIB$ac_delim -LTLIBGLIB!$LTLIBGLIB$ac_delim -INCGLIB!$INCGLIB$ac_delim -LIBGLIB_H!$LIBGLIB_H$ac_delim -INCLUDED_LIBGLIB_TRUE!$INCLUDED_LIBGLIB_TRUE$ac_delim -INCLUDED_LIBGLIB_FALSE!$INCLUDED_LIBGLIB_FALSE$ac_delim -LIBCROCO!$LIBCROCO$ac_delim -LTLIBCROCO!$LTLIBCROCO$ac_delim -INCCROCO!$INCCROCO$ac_delim -INCLUDED_LIBCROCO_TRUE!$INCLUDED_LIBCROCO_TRUE$ac_delim -INCLUDED_LIBCROCO_FALSE!$INCLUDED_LIBCROCO_FALSE$ac_delim -LIBXML!$LIBXML$ac_delim -_ACEOF +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -LTLIBXML!$LTLIBXML$ac_delim -INCXML!$INCXML$ac_delim -LIBXML_H!$LIBXML_H$ac_delim -INCLUDED_LIBXML_TRUE!$INCLUDED_LIBXML_TRUE$ac_delim -INCLUDED_LIBXML_FALSE!$INCLUDED_LIBXML_FALSE$ac_delim -NEXT_LOCALE_H!$NEXT_LOCALE_H$ac_delim -LOCALE_H!$LOCALE_H$ac_delim -LIBSCHED!$LIBSCHED$ac_delim -HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim -GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim -GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim -GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim -GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim -GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim -GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim -GNULIB_PUTENV!$GNULIB_PUTENV$ac_delim -HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim -HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim -HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim -HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim -REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim -REPLACE_PUTENV!$REPLACE_PUTENV$ac_delim -GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim -GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim -GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim -GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim -GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim -GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim -GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim -GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim -GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim -GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim -GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim -GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim -GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim -GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim -GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim -GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim -GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim -GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim -GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim -GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim -GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim -GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim -GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim -GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim -GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim -GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim -GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim -GNULIB_STRERROR!$GNULIB_STRERROR$ac_delim -HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim -HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim -HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim -HAVE_STPCPY!$HAVE_STPCPY$ac_delim -HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim -HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim -HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim -HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim -HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim -HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim -HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim -HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim -HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim -HAVE_STRSEP!$HAVE_STRSEP$ac_delim -HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim -HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim -HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim -REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim -LOCALE_FR_UTF8!$LOCALE_FR_UTF8$ac_delim -LOCALE_ZH_CN!$LOCALE_ZH_CN$ac_delim -NO_CXX!$NO_CXX$ac_delim -OPENMP_CFLAGS!$OPENMP_CFLAGS$ac_delim -GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim -GNULIB_DUP2!$GNULIB_DUP2$ac_delim -GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim -GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim -GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim -GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim -GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim -GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim -GNULIB_READLINK!$GNULIB_READLINK$ac_delim -GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim -HAVE_DUP2!$HAVE_DUP2$ac_delim -HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim -HAVE_READLINK!$HAVE_READLINK$ac_delim -HAVE_SLEEP!$HAVE_SLEEP$ac_delim -HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim -REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim -REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim -REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim -REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim -REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim -RELOCATABLE!$RELOCATABLE$ac_delim -RELOCATABLE_LDFLAGS!$RELOCATABLE_LDFLAGS$ac_delim -INSTALL_PROGRAM_ENV!$INSTALL_PROGRAM_ENV$ac_delim -RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim -RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim -_ACEOF +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof -_ACEOF +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -RELOCATABLE_LIBRARY_PATH!$RELOCATABLE_LIBRARY_PATH$ac_delim -RELOCATABLE_CONFIG_H_DIR!$RELOCATABLE_CONFIG_H_DIR$ac_delim -RELOCATABLE_SRC_DIR!$RELOCATABLE_SRC_DIR$ac_delim -RELOCATABLE_BUILD_DIR!$RELOCATABLE_BUILD_DIR$ac_delim -GNULIB_SIGPROCMASK!$GNULIB_SIGPROCMASK$ac_delim -HAVE_POSIX_SIGNALBLOCKING!$HAVE_POSIX_SIGNALBLOCKING$ac_delim -HAVE_SIGSET_T!$HAVE_SIGSET_T$ac_delim -NEXT_SIGNAL_H!$NEXT_SIGNAL_H$ac_delim -STDBOOL_H!$STDBOOL_H$ac_delim -HAVE__BOOL!$HAVE__BOOL$ac_delim -HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim -HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim -HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim -HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim -NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim -HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim -HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim -HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim -BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim -BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim -BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim -BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim -BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim -HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim -HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim -HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim -PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim -SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim -SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim -WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim -WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim -STDINT_H!$STDINT_H$ac_delim -NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim -NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim -NEXT_STRING_H!$NEXT_STRING_H$ac_delim -HAVE_LSTAT!$HAVE_LSTAT$ac_delim -HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim -HAVE_IO_H!$HAVE_IO_H$ac_delim -NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim -SYS_STAT_H!$SYS_STAT_H$ac_delim -LIBTERMINFO!$LIBTERMINFO$ac_delim -LTLIBTERMINFO!$LTLIBTERMINFO$ac_delim -INCTERMINFO!$INCTERMINFO$ac_delim -NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim -HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim -EOVERFLOW!$EOVERFLOW$ac_delim -GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim -HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim -REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim -WCHAR_H!$WCHAR_H$ac_delim -HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim -NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim -HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim -HAVE_WINT_T!$HAVE_WINT_T$ac_delim -NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim -HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim -WCTYPE_H!$WCTYPE_H$ac_delim -LIBGREPOBJS!$LIBGREPOBJS$ac_delim -WOE32DLL_TRUE!$WOE32DLL_TRUE$ac_delim -WOE32DLL_FALSE!$WOE32DLL_FALSE$ac_delim -LIBEXPAT!$LIBEXPAT$ac_delim -LTLIBEXPAT!$LTLIBEXPAT$ac_delim -HAVE_LIBEXPAT!$HAVE_LIBEXPAT$ac_delim -LIBEXPAT_PREFIX!$LIBEXPAT_PREFIX$ac_delim -NM!$NM$ac_delim -GLOBAL_SYMBOL_PIPE!$GLOBAL_SYMBOL_PIPE$ac_delim -HAVE_GLOBAL_SYMBOL_PIPE!$HAVE_GLOBAL_SYMBOL_PIPE$ac_delim -EMACS!$EMACS$ac_delim -EMACSLOADPATH!$EMACSLOADPATH$ac_delim -lispdir!$lispdir$ac_delim -aclocaldir!$aclocaldir$ac_delim -DVIPS!$DVIPS$ac_delim -TEXI2PDF!$TEXI2PDF$ac_delim -PERL!$PERL$ac_delim -CROSS_COMPILING!$CROSS_COMPILING$ac_delim -LOCALE_JA!$LOCALE_JA$ac_delim -TESTLIBASPRINTF!$TESTLIBASPRINTF$ac_delim -subdirs!$subdirs$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -gl_LIBOBJS!$gl_LIBOBJS$ac_delim -gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim -gtpo_LIBOBJS!$gtpo_LIBOBJS$ac_delim -gtpo_LTLIBOBJS!$gtpo_LTLIBOBJS$ac_delim -_ACEOF +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then - break - elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof -_ACEOF +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ -s/:*$// -s/^[^=]*=[ ]*$// -}' -fi +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX -cat >>$CONFIG_STATUS <<\_ACEOF -fi # test -n "$CONFIG_FILES" +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; - esac - ac_file_inputs="$ac_file_inputs $ac_f" - done +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - fi +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX - case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; - esac - ;; - esac +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - ac_builddir=. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX - case $ac_mode in - :F) - # - # CONFIG_FILE - # +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac - ac_MKDIR_P=$MKDIR_P - case $MKDIR_P in - [\\/$]* | ?:[\\/]* ) ;; - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; - esac -_ACEOF +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX -cat >>$CONFIG_STATUS <<\_ACEOF -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_CXX -case `sed -n '/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p -' $ac_file_inputs` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -s&@MKDIR_P@&$ac_MKDIR_P&;t t -$ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&2;} +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX - rm -f "$tmp/stdin" - case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac - ;; - :H) - # - # CONFIG_HEADER - # -_ACEOF +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX -# Transform confdefs.h into a sed script `conftest.defines', that -# substitutes the proper values into config.h.in to produce config.h. -rm -f conftest.defines conftest.tail -# First, append a space to every undef/define line, to ease matching. -echo 's/$/ /' >conftest.defines -# Then, protect against being on the right side of a sed subst, or in -# an unquoted here document, in config.status. If some macros were -# called several times there might be several #defines for the same -# symbol, which is useless. But do not sort them, since the last -# AC_DEFINE must be honored. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where -# NAME is the cpp macro being defined, VALUE is the value it is being given. -# PARAMS is the parameter list in the macro definition--in most cases, it's -# just an empty string. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' -ac_dB='\\)[ (].*,\\1define\\2' -ac_dC=' ' -ac_dD=' ,' +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX -uniq confdefs.h | - sed -n ' - t rset - :rset - s/^[ ]*#[ ]*define[ ][ ]*// - t ok - d - :ok - s/[\\&,]/\\&/g - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p - ' >>conftest.defines - -# Remove the space that was appended to ease matching. -# Then replace #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -# (The regexp can be short, since the line contains either #define or #undef.) -echo 's/ $// -s,^[ #]*u.*,/* & */,' >>conftest.defines - -# Break up conftest.defines: -ac_max_sed_lines=50 - -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" -# et cetera. -ac_in='$ac_file_inputs' -ac_out='"$tmp/out1"' -ac_nxt='"$tmp/out2"' +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX -while : -do - # Write a here document: - cat >>$CONFIG_STATUS <<_ACEOF - # First, check the format of the line: - cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def -b -:def -_ACEOF - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail - grep . conftest.tail >/dev/null || break - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines conftest.tail +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX -echo "ac_result=$ac_in" >>$CONFIG_STATUS -cat >>$CONFIG_STATUS <<\_ACEOF - if test x"$ac_file" != x-; then - echo "/* $configure_input */" >"$tmp/config.h" - cat "$ac_result" >>"$tmp/config.h" - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f $ac_file - mv "$tmp/config.h" $ac_file - fi - else - echo "/* $configure_input */" - cat "$ac_result" - fi - rm -f "$tmp/out12" -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| . 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'`/stamp-h$_am_stamp_count - ;; +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} - ;; - esac +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF - case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir=$dirpart/$fdir - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done ;; "po-directories":C) for ac_file in $CONFIG_FILES; do @@ -68136,18 +62223,6 @@ ;; esac done ;; - "doc/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - - - sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - - - sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; "intl/Makefile":F) # Change srcdir variable so that it points to ../gettext-runtime/intl. sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \ @@ -68155,46 +62230,25 @@ < intl/Makefile > intl/Makefile.tmp mv intl/Makefile.tmp intl/Makefile ;; - "gnulib-lib/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - "libgrep/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - "src/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - "libgettextpo/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; "misc/gettextize":F) chmod a+x misc/gettextize ;; "misc/autopoint":F) chmod a+x misc/autopoint ;; + "misc/convert-archive":F) chmod a+x misc/convert-archive ;; "man/Makefile":F) sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp mv $ac_file.tmp $ac_file ;; - "tests/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; - "gnulib-tests/Makefile":F) - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file - ;; esac done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -68214,7 +62268,7 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? fi # @@ -68222,7 +62276,8 @@ # if test "$no_recursion" != yes; then - # Remove --cache-file and --srcdir arguments so they do not pile up. + # Remove --cache-file, --srcdir, and --disable-option-checking arguments + # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" @@ -68251,11 +62306,13 @@ ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; + --disable-option-checking) + ;; *) case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac - ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; + as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done @@ -68263,7 +62320,7 @@ # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in - *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" @@ -68272,6 +62329,10 @@ ac_sub_configure_args="--silent $ac_sub_configure_args" fi + # Always prepend --disable-option-checking to silence warnings, since + # different subdirs can have different --enable and --with options. + ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" + ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue @@ -68280,57 +62341,17 @@ test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - echo "$as_me:$LINENO: $ac_msg" >&5 - echo "$ac_msg" >&6 - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + $as_echo "$ac_msg" >&6 + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -68369,8 +62390,8 @@ # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else - { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 -echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -68383,17 +62404,19 @@ ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 -echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi diff -Nru gettext-0.17/gettext-tools/configure.ac gettext-0.18.1.1/gettext-tools/configure.ac --- gettext-0.17/gettext-tools/configure.ac 2007-10-28 15:22:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/configure.ac 2010-06-06 20:04:04.000000000 +0000 @@ -1,5 +1,5 @@ dnl Configuration for the gettext-tools directory of GNU gettext -dnl Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. +dnl Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -18,11 +18,12 @@ AC_PREREQ([2.59]) AC_INIT -AC_CONFIG_SRCDIR(src/msgfmt.c) -AC_CONFIG_AUX_DIR(../build-aux) +AC_CONFIG_SRCDIR([src/msgfmt.c]) +AC_CONFIG_AUX_DIR([../build-aux]) . $srcdir/../version.sh -AM_INIT_AUTOMAKE(gettext-tools, $VERSION_NUMBER) -AM_CONFIG_HEADER(config.h) +gl_INIT_PACKAGE([gettext-tools], [$VERSION_NUMBER]) +AM_INIT_AUTOMAKE([silent-rules]) +AM_CONFIG_HEADER([config.h]) dnl Installation directories. test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' @@ -40,23 +41,23 @@ else BUILDJAVAEXE=no fi -AC_SUBST(BUILDJAVAEXE) +AC_SUBST([BUILDJAVAEXE]) gt_JAVAEXEC gt_JAVACOMP([1.3]) -AC_CHECK_PROG(JAR, jar, jar) +AC_CHECK_PROG([JAR], [jar], [jar]) if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then BUILDJAVA=yes else BUILDJAVA=no fi -AC_SUBST(BUILDJAVA) +AC_SUBST([BUILDJAVA]) if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then TESTJAVA=yes else TESTJAVA=no fi -AC_SUBST(TESTJAVA) +AC_SUBST([TESTJAVA]) gt_CSHARPCOMP if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then @@ -64,7 +65,7 @@ else BUILDCSHARP=no fi -AC_SUBST(BUILDCSHARP) +AC_SUBST([BUILDCSHARP]) gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4]) if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then @@ -72,7 +73,7 @@ else TESTCSHARP=no fi -AC_SUBST(TESTCSHARP) +AC_SUBST([TESTCSHARP]) dnl Check for host type. AC_CANONICAL_HOST @@ -83,13 +84,19 @@ dnl Make sure we see all GNU and Solaris extensions. gl_EARLY +grgl_EARLY gtpo_EARLY dnl Check for build configuration. gl_WOE32_DLL -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL + +LT_INIT([win32-dll]) + +dnl Prepares the libtool configuration for handling of Windows resources, and +dnl sets the RC variable to a program that compiles Windows resource files. +LT_LANG([Windows Resource]) + case "$host_os" in # On Cygwin, without -no-undefined, a warning is emitted and only a static # library is built. @@ -110,7 +117,7 @@ dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.) -AM_GNU_GETTEXT(use-libtool, need-ngettext) +AM_GNU_GETTEXT([use-libtool], [need-ngettext]) dnl This line internationalizes the bison generated parsers. BISON_I18N @@ -147,16 +154,17 @@ dnl Checks for header files, functions and declarations. gl_INIT +grgl_INIT gtpo_INIT dnl Checks for header files. -AC_CHECK_HEADERS(pwd.h) +AC_CHECK_HEADERS([pwd.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE -gl_AC_TYPE_UNSIGNED_LONG_LONG +AC_TYPE_UNSIGNED_LONG_LONG_INT AC_TYPE_SIZE_T -AC_CHECK_TYPES(ptrdiff_t) +AC_CHECK_TYPES([ptrdiff_t]) gt_TYPE_SSIZE_T AC_TYPE_PID_T gl_GLIBC21 @@ -169,13 +177,28 @@ AC_FUNC_VFORK gt_SIGINFO gt_SETLOCALE -gt_LIBGREP + AC_C_BIGENDIAN([endianness=1], [endianness=0], [echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2 echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2 - exit 1]) -AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness], - [Define according to the byte order of the target machine: 1 for big endian, 0 for little endian.]) + exit 1], + [endianness=universal]) +if test $endianness != universal; then + AC_DEFINE_UNQUOTED([ENDIANNESS], [$endianness], + [Define according to the byte order of the target machine: 1 for big endian, 0 for little endian.]) +fi +dnl For possibly universal binaries, it's not possible to determine the +dnl endianness at configure time. So determine it at compile time. +AH_BOTTOM([ +#ifndef ENDIANNESS +# if defined __BIG_ENDIAN__ +# define ENDIANNESS 1 +# endif +# if defined __LITTLE_ENDIAN__ +# define ENDIANNESS 0 +# endif +#endif +]) gt_PREREQ_HOSTNAME @@ -196,19 +219,26 @@ fi AM_CONDITIONAL([WOE32DLL], [test $is_woe32dll = yes]) if test $is_woe32dll = yes; then - AC_DEFINE([WOE32DLL], 1, + AC_DEFINE([WOE32DLL], [1], [Define when --enable-shared is used on mingw or Cygwin.]) fi +dnl woe32dll/gettextlib-exports.c needs to know whether the getopt facility +dnl is replaced by gnulib. GETOPT_H is set by gl_FUNC_GETOPT_POSIX, inside +dnl gl_INIT. +if test -n "$GETOPT_H"; then + GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_GETOPT" +else + GETTEXTLIB_EXPORTS_FLAGS= +fi +AC_SUBST([GETTEXTLIB_EXPORTS_FLAGS]) + dnl Put some default definitions into config.h. AH_TOP([ /* Default value for alignment of strings in .mo file. */ #define DEFAULT_OUTPUT_ALIGNMENT 1 ]) AH_BOTTOM([ -/* Indicator for intl/ that it is compiled for testing purposes only. */ -#define USE_IN_GETTEXT_TESTS - /* A file name cannot consist of any character possible. INVALID_PATH_CHAR contains the characters not allowed. */ #if defined _MSC_VER || defined __MINGW32__ @@ -249,12 +279,12 @@ dnl dependency from gettext to expat. case "$host_os" in linux*) - AC_DEFINE([DYNLOAD_LIBEXPAT], 1, + AC_DEFINE([DYNLOAD_LIBEXPAT], [1], [Define to 1 if libexpat shall be dynamically loaded via dlopen().]) LIBEXPAT="-ldl" LTLIBEXPAT="-ldl" - AC_SUBST(LIBEXPAT) - AC_SUBST(LTLIBEXPAT) + AC_SUBST([LIBEXPAT]) + AC_SUBST([LTLIBEXPAT]) ;; *) AC_LIB_HAVE_LINKFLAGS([expat], [], @@ -263,19 +293,6 @@ esac dnl Check for nm output filter that yields the exported symbols. -AC_DEFUN([gt_GLOBAL_SYMBOL_PIPE], [ - AC_REQUIRE([AC_PROG_NM]) dnl provided by libtool.m4 - AC_SUBST([NM]) - AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) dnl provided by libtool.m4 - GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe - AC_SUBST([GLOBAL_SYMBOL_PIPE]) - if test -n "$GLOBAL_SYMBOL_PIPE"; then - HAVE_GLOBAL_SYMBOL_PIPE=1 - else - HAVE_GLOBAL_SYMBOL_PIPE= - fi - AC_SUBST([HAVE_GLOBAL_SYMBOL_PIPE]) -]) gt_GLOBAL_SYMBOL_PIPE dnl Check for Emacs and where to install .elc files. @@ -294,17 +311,62 @@ fi aclocaldir='${datadir}/aclocal' -AC_SUBST(aclocaldir) +AC_SUBST([aclocaldir]) + +dnl Check how to install the set of previous versions, for autopoint. +AC_ARG_WITH([git], + [ --without-git don't use git to compress the infrastructure archive], + [gt_use_git=$withval], + [gt_use_git=maybe]) +AC_ARG_WITH([cvs], + [ --with-cvs use cvs to compress the infrastructure archive + (deprecated)], + [gt_use_cvs=$withval], + [gt_use_cvs=no]) +# The CVS format is deprecated, because "cvs init" does not work in all +# circumstances +# (see ) +# and we are not allowed to distribute the cvs infrastructure files ourselves +# (see ). +if test "$gt_use_git" != no && test "$gt_use_git" != maybe; then + # --with-git is specified. Even if --with-cvs is also specified, we use the + # git format. + ARCHIVE_FORMAT=git +else + if test "$gt_use_cvs" != no; then + # --with-cvs is specified. + ARCHIVE_FORMAT=cvs + else + # Neither --with-git nor --with-cvs is specified. +changequote(,)dnl + if test "$gt_use_git" != no \ + && (git --version) >/dev/null 2>&1 \ + && { case `git --version | sed -e 's/^[^0-9]*//'` in + 0.* | 1.[0-5].*) false ;; + *) true ;; + esac + }; then +changequote([,])dnl + # --without-git is not specified, and the git program exists + # in version 1.6 or newer. Use git format. + ARCHIVE_FORMAT=git + else + # --without-git is specified, or the git program is missing. + ARCHIVE_FORMAT=dir + fi + fi +fi +AC_SUBST([ARCHIVE_FORMAT]) dnl Check for tools needed for formatting the documentation. ac_aux_dir_abs=`cd $ac_aux_dir && pwd` -AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips) -AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf) -AC_PATH_PROG(PERL, perl, $ac_aux_dir_abs/missing perl) +AC_PATH_PROG([DVIPS], [dvips], [$ac_aux_dir_abs/missing dvips]) +AC_PATH_PROG([TEXI2PDF], [texi2pdf], [$ac_aux_dir_abs/missing texi2pdf]) +AC_PATH_PROG([PERL], [perl], [$ac_aux_dir_abs/missing perl]) dnl Check for tools needed for formatting man pages. CROSS_COMPILING=$cross_compiling -AC_SUBST(CROSS_COMPILING) +AC_SUBST([CROSS_COMPILING]) dnl Checks for optional programs for the tests/lang-*, tests/recode-* tests. gt_PROG_ANSI_CXX @@ -312,6 +374,12 @@ gt_LOCALE_FR_UTF8 gt_LOCALE_JA +dnl Checks for functions for the tests/*.c tests. +AC_CHECK_FUNCS_ONCE([getrlimit setrlimit uselocale]) + +dnl Prepares the libtool configuration for languages used by the tests. +LT_LANG([C++]) + dnl Check whether to execute tests that rely on libasprintf. dnl This test must be consistent with gettext-runtime/configure.ac. if test "${enable_libasprintf+set}" = set; then @@ -326,7 +394,7 @@ if test "$CXX" = ":"; then TESTLIBASPRINTF=no fi -AC_SUBST(TESTLIBASPRINTF) +AC_SUBST([TESTLIBASPRINTF]) dnl Generate the version information file in the intl/ directory. test -d intl || mkdir intl @@ -338,14 +406,11 @@ EOF -AC_CONFIG_SUBDIRS(examples) +AC_CONFIG_SUBDIRS([examples]) AC_CONFIG_FILES([Makefile]) -AC_CONFIG_FILES([doc/Makefile], - [FIX_MAKEFILE_COMPILE - FIX_MAKEFILE_DISTRIB - FIX_MAKEFILE_INFO]) +AC_CONFIG_FILES([doc/Makefile]) AC_CONFIG_FILES([intl/Makefile:../gettext-runtime/intl/Makefile.in], [ # Change srcdir variable so that it points to ../gettext-runtime/intl. @@ -355,18 +420,14 @@ mv intl/Makefile.tmp intl/Makefile ]) -AC_CONFIG_FILES([gnulib-lib/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([gnulib-lib/Makefile]) -AC_CONFIG_FILES([libgrep/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([libgrep/Makefile]) -AC_CONFIG_FILES([src/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([src/Makefile]) AC_CONFIG_FILES([src/user-email:src/user-email.sh.in]) -AC_CONFIG_FILES([libgettextpo/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([libgettextpo/Makefile]) AC_CONFIG_FILES([libgettextpo/exported.sh]) AC_CONFIG_FILES([po/Makefile.in]) @@ -378,6 +439,7 @@ AC_CONFIG_FILES([misc/Makefile]) AC_CONFIG_FILES([misc/gettextize], [chmod a+x misc/gettextize]) AC_CONFIG_FILES([misc/autopoint], [chmod a+x misc/autopoint]) +AC_CONFIG_FILES([misc/convert-archive], [chmod a+x misc/convert-archive]) AC_CONFIG_FILES([man/Makefile], [FIX_MAKEFILE_DISTRIB]) @@ -385,10 +447,8 @@ AC_CONFIG_FILES([m4/Makefile]) -AC_CONFIG_FILES([tests/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([tests/Makefile]) -AC_CONFIG_FILES([gnulib-tests/Makefile], - [FIX_MAKEFILE_COMPILE]) +AC_CONFIG_FILES([gnulib-tests/Makefile]) AC_OUTPUT diff -Nru gettext-0.17/gettext-tools/doc/ChangeLog gettext-0.18.1.1/gettext-tools/doc/ChangeLog --- gettext-0.17/gettext-tools/doc/ChangeLog 2007-11-06 23:27:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,224 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-20 Bruno Haible + + * gettext.texi (objc-format): Fix typo. + Reported by Kalle Olavi Niemitalo . + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-04-25 Bruno Haible + + * gettext.texi (object-pascal-format): Add reference to Free Pascal + documentation. + Information provided by Marco van de Voort . + +2010-04-02 Bruno Haible + + * FAQ.html (building_rpath_check): Remove section. + +2010-03-31 Guido Flohr + + More explanations about how xgettext handles Perl syntax ambiguities. + * gettext.texi (General Problems): Explain how xgettext disambiguates + conditional operator vs. regular expression. + +2010-03-13 Bruno Haible + + New options --color, --style for many programs. + * msgattrib.texi: Document the options --color and --style. + * msgcomm.texi: Likewise. + * msgconv.texi: Likewise. + * msgen.texi: Likewise. + * msgfilter.texi: Likewise. + * msggrep.texi: Likewise. + * msginit.texi: Likewise. + * msgmerge.texi: Likewise. + * msgunfmt.texi: Likewise. + * msguniq.texi: Likewise. + * xgettext.texi: Likewise. + Reported by Kalle Olavi Niemitalo + via Santiago Vila . + +2010-02-20 Bruno Haible + + * gettext.texi (Plural forms): Add Bulgarian. + Reported by Roumen Petrov . + +2010-02-20 Bruno Haible + + * gettext.texi (Plural forms): Sort language lists by number of + speakers, not alphabetically. + +2009-12-25 Bruno Haible + + * gettext.texi (aclocal): Add fcntl-o.m4 instead of fcntl_h.m4 to the + file list. + +2009-10-18 Bruno Haible + + * gettext.texi (aclocal): Add fcntl_h.m4 to the file list. + +2009-09-20 Bruno Haible + + * gettext.texi (src/Makefile): Update recommendations for autoconf + versions >= 2.60. + Reported by Sylvain Beucler + at . + +2009-08-16 Bruno Haible + + * Makefile.am (dist-html-split): Depend on gettext_toc.html. + +2009-06-11 Bruno Haible + + * gettext.texi (Mark Keywords): Add cross-section references. + Reported by David Bruce . + +2009-05-31 Bruno Haible + + * Makefile.am: Use dist-hook instead of old distdir hack. + +2009-05-01 Bruno Haible + + Undo 2005-02-23 change. + * gettext.texi: Put the table of contents back to the start. + +2009-04-08 Bruno Haible + + * Makefile.am (CLEANFILES): Remove variable. Not needed any more + +2009-04-07 Bruno Haible + + * Makefile.am (SUFFIXES): Remove variable. Not needed any more since + automake-1.7. + +2009-03-29 Bruno Haible + + * gettext.texi (PO Files): Mention gfc-internal-format. + (gfc-internal-format): New subsection. + +2009-02-15 Bruno Haible + + * gettext.texi (MO Files): Update w.r.t. the maximum revision in use. + Reported by Dwayne Bailey . + +2009-01-27 Bruno Haible + + * gettext.texi (PO Files): Mention qt-plural-format. + (qt-plural-format): New subsection. + +2009-01-25 Bruno Haible + + * gettext.texi (Translating plural forms): New section. + (Header Entry, Plural forms): Refer to it. + Reported by Yan Kerb . + +2009-01-18 Bruno Haible + + * msgfmt.texi: Describe the effect of combining --statistics with + --verbose. + +2008-11-14 Bruno Haible + + * msgfilter.texi: Document the environment variables MSGFILTER_MSGCTXT, + MSGFILTER_MSGID, MSGFILTER_LOCATION. + +2008-10-10 Noritada Kobayashi + + * gettext.texi (PO Mode): Update remaining obsolete key bindings used + in the version 0.10.x era. + +2008-10-04 Bruno Haible + + * gettext.texi (PO Files): Mention the 'range:' flag syntax. + (Plural forms): Document how to produce 'range:' flags. + +2008-09-27 Bruno Haible + + * ISO_639-2: Update entry about Tamashek. + +2008-09-15 Bruno Haible + + * msgcmp.texi: Document option -N/--no-fuzzy-matching. + +2008-08-17 Bruno Haible + + * gettext.texi (aclocal): Add threadlib.m4 to the file list. + +2008-08-15 Bruno Haible + + * gettext.texi (Python): Recommend format strings with named arguments. + Reported by Alexander Dupuy + in . + +2008-06-18 Ralf Wildenhues + + * msggrep.texi: Drop leading whitespace. + +2008-05-18 Bruno Haible + + * gettext.texi (Names): Recommend the gnulib module 'propername'. + Don't mention the translation project's whoiswho.pot any more. Don't + say that Emacs does not support UTF-8 well. + Reported by Brian Kemp . + +2008-05-06 Bruno Haible + + * gettext.texi (Plural forms): Explain why the number argument must be + the last. + Reported by Benjamin Geer . + +2008-04-25 Bruno Haible + + * ISO_639: Remove Adangme. Update Belarusian, Scottish Gaelic, + Interlingue, Sichuan Yi, Central Khmer, Pashto, Romansh. + * ISO_639-2: Add Adangme, Classical Syriac, Blissymbols. Update + Aramaic, Mapudungun, Asturian, Banda, Beja, Bini, Batak, Carib, + Chipewyan, Dayak, Swiss German, Ijo, Kachin, Karen, Kru, Miscellaneous, + Nahuatl, Pampanga, Rarotongan, Songhai, Sranan Tongo, Zande, + No linguistic content. + * iso-639.texi: Regenerate. + * iso-639-2.texi: Regenerate. + * gettext.texi (Header Entry): Update name of Belarusian. + +2008-04-20 Bruno Haible + + * xgettext.texi: Clarify single-letter options that take an optional + argument: -c, -k, -m, -M. + +2008-03-10 Bruno Haible + + * gettext.texi (gettext Invocation): Mention that xgettext does not + support the various options. + (ngettext Invocation): Likewise. + Reported by Aurélio A. Heckert . + +2008-02-02 Benno Schulenberg + + * gettext.texi (PO Files): Stylistic improvements. + +2008-01-12 Bruno Haible + + * msgfilter.texi: Fix last example. + Reported by Benno Schulenberg . + +2007-12-24 Bruno Haible + + * gettext.texi (Header Entry): Document the 'Language' field. + * msgcat.texi: Document the --lang option. + * msgen.texi: Likewise. + * msgmerge.texi: Likewise. + +2007-12-02 Bruno Haible + + * gettext.texi (Plural Forms): Put Turkish under nplurals=2. + Reported by Sertaç Ö. Yıldız . + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/doc/FAQ.html gettext-0.18.1.1/gettext-tools/doc/FAQ.html --- gettext-0.17/gettext-tools/doc/FAQ.html 2007-06-30 17:48:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/FAQ.html 2010-06-06 12:49:57.000000000 +0000 @@ -21,10 +21,6 @@
  • On Solaris, I get a build error “text relocations remain” in the libasprintf subdirectory
  • -
  • During “make check”, some tests -named rpath-Nxyz -fail: “ld: fatal error ... -lrpathz”
  • “make install” fails
  • Problems integrating GNU gettext

    @@ -145,23 +141,6 @@ at the time the gettext release waas made) doesn't support linking C++ libraries with some versions of GCC. As a workaround, you can configure gettext with the option --disable-libasprintf.
    -

    During “make check”, some tests -named rpath-Nxyz -fail: “ld: fatal error ... -lrpathz”

    -If only a few among the many rpath tests fail, you can probably ignore -the problem. The rpath tests are sensitive to incomplete shared library -support in the system, and to bugs in libtool that creates the shared -libraries. Some known failures are listed in autoconf-lib-link/tests/rpath.README.
    -
    -To ignore the problem, just proceed with
    -
    -
    cd gettext-tools
    -make check
    -cd ..
    -
    -

    “make install” fails

    make install DESTDIR=/some/tempdir” can fail with @@ -565,7 +544,7 @@

    GNU gettext on Windows

    What does Woe32 mean?

    “Woe32” denotes the Windows 32-bit operating systems for x86: Windows -NT/2000/XP and Windows 95/98/ME. Microsoft uses the term “Win32” to +NT/2000/XP/Vista and Windows 95/98/ME. Microsoft uses the term “Win32” to denote these; this is a psychological trick in order to make everyone believe that these OSes are a “win” for the user. However, for most users and developers, they are a source of woes, which is why I call diff -Nru gettext-0.17/gettext-tools/doc/gettext_10.html gettext-0.18.1.1/gettext-tools/doc/gettext_10.html --- gettext-0.17/gettext-tools/doc/gettext_10.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_10.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 10 Producing Binary MO Files @@ -18,15 +18,15 @@

    10.1 Invoking the msgfmt Program

    - - + +

     msgfmt [option] filename.po ...
     

    - + The msgfmt programs generates a binary message catalog from a textual translation description. @@ -43,8 +43,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -65,39 +65,39 @@
    ‘--java’
    - - - + + + Java mode: generate a Java ResourceBundle class.
    ‘--java2’
    - + Like --java, and assume Java2 (JDK 1.2 or higher).
    ‘--csharp’
    - - + + C# mode: generate a .NET .dll file containing a subclass of GettextResourceSet.
    ‘--csharp-resources’
    - - + + C# resources mode: generate a .NET ‘.resources’ file.
    ‘--tcl’
    - - + + Tcl mode: generate a tcl/msgcat ‘.msg’ file.
    ‘--qt’
    - - + + Qt mode: generate a Qt ‘.qm’ file. @@ -112,13 +112,13 @@
    ‘--output-file=file
    - - + + Write output to specified file.
    ‘--strict’
    - + Direct the program to work strictly following the Uniforum/Sun implementation. Currently this only affects the naming of the output file. If this option is not given the name of the output file is the @@ -145,22 +145,22 @@
    ‘--resource=resource
    - - + + Specify the resource name.
    ‘-l locale
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC.
    ‘-d directory
    - + Specify the base directory of classes directory hierarchy. @@ -181,22 +181,22 @@
    ‘--resource=resource
    - - + + Specify the resource name.
    ‘-l locale
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC.
    ‘-d directory
    - + Specify the base directory for locale dependent ‘.dll’ files. @@ -217,14 +217,14 @@
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC.
    ‘-d directory
    - + Specify the base directory of ‘.msg’ message catalogs. @@ -244,14 +244,14 @@
    ‘--properties-input’
    - - + + Assume the input files are Java ResourceBundles in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input files are NeXTstep/GNUstep localized resource files in .strings syntax, not in PO file syntax. @@ -267,15 +267,15 @@
    ‘--check’
    - - + + Perform all the checks implied by --check-format, --check-header, --check-domain.
    ‘--check-format’
    - - + + Check language dependent format strings. If the string represents a format string used in a @@ -294,19 +294,19 @@ errors where there are none. To solve this problem the programmer can dictate the decision to the -xgettext program (see section 15.3.1 C Format Strings). The translator should not +xgettext program (see section 15.3.1 C Format Strings). The translator should not consider removing the flag from the #, line. This "fix" would be reversed again as soon as msgmerge is called the next time.
    ‘--check-header’
    - + Verify presence and contents of the header entry. See section 6.2 Filling in the Header Entry, for a description of the various fields in the header entry.
    ‘--check-domain’
    - + Check for conflicts between domain directives and the --output-file option @@ -314,18 +314,18 @@
    ‘--check-compatibility’
    - - - + + + Check that GNU msgfmt behaves like X/Open msgfmt. This will give an error when attempting to use the GNU extensions.
    ‘--check-accelerators[=char]’
    - - - - + + + + Check presence of keyboard accelerators for menu items. This is based on the convention used in some GUIs that a keyboard accelerator in a menu item string is designated by an immediately preceding ‘&’ character. @@ -340,9 +340,9 @@
    ‘--use-fuzzy’
    - - - + + + Use fuzzy entries in output. Note that using this option is usually wrong, because fuzzy messages are exactly those which have not been validated by a human translator. @@ -359,13 +359,13 @@
    ‘--alignment=number
    - - + + Align strings to number bytes (default: 1).
    ‘--no-hash’
    - + Don't include a hash table in the binary file. Lookup will be more expensive at run time (binary search instead of hash table lookup). @@ -381,29 +381,31 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit.
    ‘--statistics’
    - -Print statistics about translations. + +Print statistics about translations. When the option --verbose is used +in combination with --statistics, the input file name is printed in +front of the statistics line.
    ‘-v’
    ‘--verbose’
    - - + + Increase verbosity level. @@ -413,15 +415,15 @@

    10.2 Invoking the msgunfmt Program

    - - + +

     msgunfmt [option] [file]...
     

    - + The msgunfmt program converts a binary message catalog to a Uniforum style .po file. @@ -436,28 +438,28 @@

    ‘--java’
    - - - + + + Java mode: input is a Java ResourceBundle class.
    ‘--csharp’
    - - + + C# mode: input is a .NET .dll file containing a subclass of GettextResourceSet.
    ‘--csharp-resources’
    - - + + C# resources mode: input is a .NET ‘.resources’ file.
    ‘--tcl’
    - - + + Tcl mode: input is a tcl/msgcat ‘.msg’ file. @@ -488,16 +490,16 @@
    ‘--resource=resource
    - - + + Specify the resource name.
    ‘-l locale
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC. @@ -518,22 +520,22 @@
    ‘--resource=resource
    - - + + Specify the resource name.
    ‘-l locale
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC.
    ‘-d directory
    - + Specify the base directory for locale dependent ‘.dll’ files. @@ -554,14 +556,14 @@
    ‘--locale=locale
    - - + + Specify the locale name, either a language specification of the form ll or a combined language and country specification of the form ll_CC.
    ‘-d directory
    - + Specify the base directory of ‘.msg’ message catalogs. @@ -581,8 +583,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -598,22 +600,36 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -622,15 +638,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -638,15 +654,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -655,9 +671,9 @@
    ‘--sort-output’
    - - - + + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -673,24 +689,24 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit.
    ‘-v’
    ‘--verbose’
    - - + + Increase verbosity level.
    @@ -699,8 +715,8 @@

    10.3 The Format of GNU MO Files

    - - + +

    @@ -709,19 +725,31 @@

    - + The first two words serve the identification of the file. The magic number will always signal GNU MO files. The number is stored in the byte order of the generating machine, so the magic number really is -two numbers: 0x950412de and 0xde120495. The second -word describes the current revision of the file format. For now the -revision is 0. This might change in future versions, and ensures -that the readers of MO files can distinguish new formats from old -ones, so that both can be handled correctly. The version is kept +two numbers: 0x950412de and 0xde120495. + +

    +

    +The second word describes the current revision of the file format, +composed of a major and a minor revision number. The revision numbers +ensure that the readers of MO files can distinguish new formats from +old ones and handle their contents, as far as possible. For now the +major revision is 0 or 1, and the minor revision is also 0 or 1. More +revisions might be added in the future. A program seeing an unexpected +major revision number should stop reading the MO file entirely; whereas +an unexpected minor revision number means that the file can be read but +will not reveal its full contents, when parsed by a program that +supports only smaller minor revision numbers. + +

    +

    +The version is kept separate from the magic number, instead of using different magic numbers for different formats, mainly because ‘/etc/magic’ is -not updated often. It might be better to have magic separated from -internal format version identification. +not updated often.

    @@ -757,7 +785,7 @@

    - + The size S of the hash table can be zero. In this case, the hash table itself is not contained in the MO file. Some people might prefer this because a precomputed hashing table takes disk space, and @@ -778,13 +806,13 @@

    - + Contexts are stored by storing the concatenation of the context, a EOT byte, and the original string, instead of the original string.

    - + Plural forms are stored by letting the plural of the original string follow the singular of the original string, separated through a NUL byte. The length which appears in the string descriptor diff -Nru gettext-0.17/gettext-tools/doc/gettext_11.html gettext-0.18.1.1/gettext-tools/doc/gettext_11.html --- gettext-0.17/gettext-tools/doc/gettext_11.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_11.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 11 The Programmer's View @@ -31,7 +31,7 @@

    11.1 About catgets

    - +

    @@ -66,7 +66,7 @@

    11.1.1 The Interface

    - +

    @@ -79,7 +79,7 @@

    - + catopen is used like in this:

    @@ -98,7 +98,7 @@

    - + This handle is of course used in the catgets function which can be used like this: @@ -130,7 +130,7 @@

    - + The last of these functions is used and behaves as expected:

    @@ -147,7 +147,7 @@

    11.1.2 Problems with the catgets Interface?!

    - +

    @@ -168,7 +168,7 @@

    11.2 About gettext

    - +

    @@ -199,7 +199,7 @@

    11.2.1 The Interface

    - +

    @@ -270,9 +270,9 @@

    11.2.2 Solving Ambiguities

    - - - + + +

    @@ -348,7 +348,7 @@

    11.2.3 Locating Message Catalog Files

    - +

    @@ -389,8 +389,8 @@

    11.2.4 How to specify the output character set gettext uses

    - - + +

    @@ -422,7 +422,7 @@

    Function: char * bind_textdomain_codeset (const char *domainname, const char *codeset) -
    +
    The bind_textdomain_codeset function can be used to specify the output character set for message catalogs for domain domainname. The codeset argument must be a valid codeset name which can be used @@ -456,10 +456,10 @@

    11.2.5 Using contexts for solving ambiguities

    - - - - + + + +

    @@ -497,7 +497,7 @@

    - +

     const char *pgettext (const char *msgctxt, const char *msgid);
    @@ -532,8 +532,8 @@
     
     

    - - + +

     const char *dpgettext (const char *domain_name,
    @@ -618,9 +618,9 @@
     
     

    - - - + + +

     const char *pgettext_expr (const char *msgctxt, const char *msgid);
    @@ -642,7 +642,7 @@
     
     

    11.2.6 Additional functions for plural forms

    - +

    @@ -765,7 +765,7 @@

    Function: char * ngettext (const char *msgid1, const char *msgid2, unsigned long int n) -
    +
    The ngettext function is similar to the gettext function as it finds the message catalogs in the same way. But it takes two extra arguments. The msgid1 parameter must contain the singular @@ -807,6 +807,55 @@

    +If this function is meant to yield a format string that takes two or more +arguments, you can not use it like this: + +

    + +
    +printf (ngettext ("%d file removed from directory %s",
    +                  "%d files removed from directory %s",
    +                  n, dir),
    +        n);
    +
    + +

    +because in many languages the translators want to replace the ‘%d’ +with an explicit word in the singular case, just like “one” in English, +and C format strings cannot consume the second argument but skip the first +argument. Instead, you have to reorder the arguments so that ‘n’ +comes last: + +

    + +
    +printf (ngettext ("%$2d file removed from directory %$1s",
    +                  "%$2d files removed from directory %$1s",
    +                  dir, n),
    +        n);
    +
    + +

    +See section 15.3.1 C Format Strings for details about this argument reordering syntax. + +

    +

    +When you know that the value of n is within a given range, you can +specify it as a comment directed to the xgettext tool. This +information may help translators to use more adequate translations. Like +this: + +

    + +
    +if (days > 7 && days < 14)
    +  /* xgettext: range: 1..6 */
    +  printf (ngettext ("one week and one day", "one week and %d days",
    +                    days - 7),
    +          days - 7);
    +
    + +

    It is also possible to use this function when the strings don't contain a cardinal number: @@ -826,7 +875,7 @@

    Function: char * dngettext (const char *domain, const char *msgid1, const char *msgid2, unsigned long int n) -
    +
    The dngettext is similar to the dgettext function in the way the message catalog is selected. The difference is that it takes two extra parameter to provide the correct plural form. These two @@ -837,7 +886,7 @@

    Function: char * dcngettext (const char *domain, const char *msgid1, const char *msgid2, unsigned long int n, int category) -
    +
    The dcngettext is similar to the dcgettext function in the way the message catalog is selected. The difference is that it takes two extra parameter to provide the correct plural form. These two @@ -862,9 +911,9 @@

    - - - + + + The information about the plural form selection has to be stored in the header entry of the PO file (the one with the empty msgid string). The plural form information looks like this: @@ -892,7 +941,7 @@

    - + The following rules are known at this point. The language with families are listed. But this does not necessarily mean the information can be generalized for the whole family (as can be easily seen in the table @@ -918,10 +967,9 @@

    Asian family
    -Japanese, Korean, Vietnamese -
    Turkic/Altaic family -
    -Turkish +Japanese, +Vietnamese, +Korean
    Two forms, singular used for one only @@ -943,31 +991,44 @@
    Germanic family
    -Danish, Dutch, English, Faroese, German, Norwegian, Swedish -
    Finno-Ugric family +English, +German, +Dutch, +Swedish, +Danish, +Norwegian, +Faroese +
    Romanic family
    -Estonian, Finnish +Spanish, +Portuguese, +Italian, +Bulgarian
    Latin/Greek family
    -Greek -
    Semitic family +Greek +
    Finno-Ugric family
    -Hebrew -
    Romanic family +Finnish, +Estonian +
    Semitic family
    -Italian, Portuguese, Spanish +Hebrew
    Artificial
    -Esperanto +Esperanto
    -Another language using the same header entry is: +Other languages using the same header entry are:
    Finno-Ugric family
    -Hungarian +Hungarian +
    Turkic/Altaic family +
    +Turkish
    Hungarian does not appear to have a plural if you look at sentences involving @@ -977,6 +1038,11 @@ “az alm'{a}k”. Since ngettext has to support both types of sentences, it is classified here, under “two forms”. +The same holds for Turkish: “1 apple” is “1 elma”, and “123 apples” is +“123 elma”. But when the number is omitted, the distinction between singular +and plural exists: “the apple” is “elma”, and “the apples” is +“elmalar”. +
    Two forms, singular used for zero and one
    Exceptional case in the language family. The header entry would be: @@ -992,7 +1058,8 @@
    Romanic family
    -French, Brazilian Portuguese +Brazilian Portuguese, +French
    Three forms, special case for zero @@ -1010,7 +1077,7 @@
    Baltic family
    -Latvian +Latvian
    Three forms, special cases for one and two @@ -1028,7 +1095,7 @@
    Celtic
    -Gaeilge (Irish) +Gaeilge (Irish)
    Three forms, special case for numbers ending in 00 or [2-9][0-9] @@ -1047,7 +1114,7 @@
    Romanic family
    -Romanian +Romanian
    Three forms, special case for numbers ending in 1[2-9] @@ -1067,7 +1134,7 @@
    Baltic family
    -Lithuanian +Lithuanian
    Three forms, special cases for numbers ending in 1 and 2, 3, 4, except those ending in 1[1-4] @@ -1087,7 +1154,10 @@
    Slavic family
    -Croatian, Serbian, Russian, Ukrainian +Russian, +Ukrainian, +Serbian, +Croatian
    Three forms, special cases for 1 and 2, 3, 4 @@ -1106,7 +1176,8 @@
    Slavic family
    -Slovak, Czech +Czech, +Slovak
    Three forms, special case for one and some numbers ending in 2, 3, or 4 @@ -1126,7 +1197,7 @@
    Slavic family
    -Polish +Polish
    Four forms, special case for one and all numbers ending in 02, 03, or 04 @@ -1145,7 +1216,7 @@
    Slavic family
    -Slovenian +Slovenian @@ -1205,11 +1276,16 @@ is acceptable in English, and similarly for other languages.

    +

    +The translators' perspective regarding plural forms is explained in +section 12.6 Translating plural forms. + +

    11.2.7 Optimization of the *gettext functions

    - +

    @@ -1264,8 +1340,8 @@

    11.3 Comparing the Two Interfaces

    - - + +

    @@ -1315,7 +1391,7 @@

    - +

     #include <libintl.h>
    @@ -1330,7 +1406,7 @@
     
     

    - + The same procedure can be done for the gettext_noop invocations (see section 4.7 Special Cases of Translatable Strings). One usually defines gettext_noop as a no-op macro. So you should consider the following code for your project: @@ -1443,7 +1519,7 @@

    • Changing the language at runtime - + For interactive programs it might be useful to offer a selection of the used language at runtime. To understand how to do this one need to know @@ -1460,20 +1536,20 @@
      1. LANGUAGE - + - +
      2. LC_ALL - - - - - - + + + + + +
      3. LC_xxx, according to selected locale category - +
      4. LANG
      @@ -1507,7 +1583,7 @@ }
    - + The variable _nl_msg_cat_cntr is defined in ‘loadmsgcat.c’. You don't need to know what this is for. But it can be used to detect whether a gettext implementation is GNU gettext and not non-GNU diff -Nru gettext-0.17/gettext-tools/doc/gettext_12.html gettext-0.18.1.1/gettext-tools/doc/gettext_12.html --- gettext-0.17/gettext-tools/doc/gettext_12.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_12.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 12 The Translator's View @@ -540,7 +540,131 @@

    -

    12.6 Prioritizing messages: How to determine which messages to translate first

    +

    12.6 Translating plural forms

    + +

    + +Suppose you are translating a PO file, and it contains an entry like this: + +

    + +
    +#, c-format
    +msgid "One file removed"
    +msgid_plural "%d files removed"
    +msgstr[0] ""
    +msgstr[1] ""
    +
    + +

    +What does this mean? How do you fill it in? + +

    +

    +Such an entry denotes a message with plural forms, that is, a message where +the text depends on a cardinal number. The general form of the message, +in English, is the msgid_plural line. The msgid line is the +English singular form, that is, the form for when the number is equal to 1. +More details about plural forms are explained in section 11.2.6 Additional functions for plural forms. + +

    +

    +The first thing you need to look at is the Plural-Forms line in the +header entry of the PO file. It contains the number of plural forms and a +formula. If the PO file does not yet have such a line, you have to add it. +It only depends on the language into which you are translating. You can +get this info by using the msginit command (see section 6 Creating a New PO File) -- +it contains a database of known plural formulas -- or by asking other +members of your translation team. + +

    +

    +Suppose the line looks as follows: + +

    + +
    +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
    +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
    +
    + +

    +It's logically one line; recall that the PO file formatting is allowed to +break long lines so that each physical line fits in 80 monospaced columns. + +

    +

    +The value of nplurals here tells you that there are three plural +forms. The first thing you need to do is to ensure that the entry contains +an msgstr line for each of the forms: + +

    + +
    +#, c-format
    +msgid "One file removed"
    +msgid_plural "%d files removed"
    +msgstr[0] ""
    +msgstr[1] ""
    +msgstr[2] ""
    +
    + +

    +Then translate the msgid_plural line and fill it in into each +msgstr line: + +

    + +
    +#, c-format
    +msgid "One file removed"
    +msgid_plural "%d files removed"
    +msgstr[0] "%d slika uklonjenih"
    +msgstr[1] "%d slika uklonjenih"
    +msgstr[2] "%d slika uklonjenih"
    +
    + +

    +Now you can refine the translation so that it matches the plural form. +According to the formula above, msgstr[0] is used when the number +ends in 1 but does not end in 11; msgstr[1] is used when the number +ends in 2, 3, 4, but not in 12, 13, 14; and msgstr[2] is used in +all other cases. With this knowledge, you can refine the translations: + +

    + +
    +#, c-format
    +msgid "One file removed"
    +msgid_plural "%d files removed"
    +msgstr[0] "%d slika je uklonjena"
    +msgstr[1] "%d datoteke uklonjenih"
    +msgstr[2] "%d slika uklonjenih"
    +
    + +

    +You noticed that in the English singular form (msgid) the number +placeholder could be omitted and replaced by the numeral word “one”. +Can you do this in your translation as well? + +

    + +
    +msgstr[0] "jednom datotekom je uklonjen"
    +
    + +

    +Well, it depends on whether msgstr[0] applies only to the number 1, +or to other numbers as well. If, according to the plural formula, +msgstr[0] applies only to n == 1, then you can use the +specialized translation without the number placeholder. In our case, +however, msgstr[0] also applies to the numbers 21, 31, 41, etc., +and therefore you cannot omit the placeholder. + +

    + + +

    12.7 Prioritizing messages: How to determine which messages to translate first

    A translator sometimes has only a limited amount of time per week to @@ -564,7 +688,7 @@

    - + Here a more details. The GNU libintl library (but not the corresponding functions in GNU libc) supports an environment variable GETTEXT_LOG_UNTRANSLATED. The GNU libintl library will diff -Nru gettext-0.17/gettext-tools/doc/gettext_13.html gettext-0.18.1.1/gettext-tools/doc/gettext_13.html --- gettext-0.17/gettext-tools/doc/gettext_13.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_13.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 13 The Maintainer's View @@ -11,9 +11,9 @@


    -

    13 The Maintainer's View

    +

    13 The Maintainer's View

    - +

    @@ -53,7 +53,7 @@ -

    13.1 Flat or Non-Flat Directory Structures

    +

    13.1 Flat or Non-Flat Directory Structures

    Some free software packages are distributed as tar files which unpack @@ -86,11 +86,11 @@

    -

    13.2 Prerequisite Works

    +

    13.2 Prerequisite Works

    - - - + + +

    @@ -187,7 +187,7 @@

    -

    13.3 Invoking the gettextize Program

    +

    13.3 Invoking the gettextize Program

    The gettextize program is an interactive tool that helps the @@ -222,7 +222,7 @@

  • It performs as many of the tasks mentioned in the next section -section 13.4 Files You Must Create or Alter as can be performed automatically. +section 13.4 Files You Must Create or Alter as can be performed automatically.
  • It removes obsolete files and idioms used for previous GNU @@ -239,8 +239,8 @@

    - - + +

     gettextize [ option... ] [ directory ]
    @@ -256,13 +256,13 @@
     
    ‘--force’
    - - + + Force replacement of files which already exist.
    ‘--intl’
    - + Install the libintl sources in a subdirectory named ‘intl/’. This libintl will be used to provide internationalization on systems that don't have GNU libintl installed. If this option is omitted, @@ -272,7 +272,7 @@
    ‘--po-dir=dir
    - + Specify a directory containing PO files. Such a directory contains the translations into various languages of a particular POT file. This option can be specified multiple times, once for each translation domain. @@ -280,14 +280,14 @@
    ‘--no-changelog’
    - + Don't update or create ChangeLog files. By default, gettextize logs all changes (file additions, modifications and removals) in a file called ‘ChangeLog’ in each affected directory.
    ‘--symlink’
    - + Make symbolic links instead of copying the needed files. This can be useful to save a few kilobytes of disk space, but it requires extra effort to create self-contained tarballs, it may disturb some mechanism @@ -298,20 +298,20 @@
    ‘--dry-run’
    - - + + Print modifications but don't perform them. All actions that gettextize would normally execute are inhibited and instead only listed on standard output.
    ‘--help’
    - + Display this help and exit.
    ‘--version’
    - + Output version information and exit. @@ -417,14 +417,14 @@ entire job of adapting a package for using GNU gettext. The amount of remaining work depends on whether the package uses GNU automake or not. But in any case, the maintainer should still -read the section section 13.4 Files You Must Create or Alter after invoking gettextize. +read the section section 13.4 Files You Must Create or Alter after invoking gettextize.

    In particular, if after using ‘gettexize’, you get an error ‘AC_COMPILE_IFELSE was called before AC_GNU_SOURCE’ or ‘AC_RUN_IFELSE was called before AC_GNU_SOURCE’, you can fix it -by modifying ‘configure.ac’, as described in section 13.4.5 ‘configure.ac’ at top level. +by modifying ‘configure.ac’, as described in section 13.4.5 ‘configure.ac’ at top level.

    @@ -432,14 +432,14 @@ of the GNU build system, in the sense that it should not be invoked automatically, and not be invoked by someone who doesn't assume the responsibilities of a package maintainer. For the latter purpose, a -separate tool is provided, see section 13.6.3 Invoking the autopoint Program. +separate tool is provided, see section 13.6.3 Invoking the autopoint Program.

    -

    13.4 Files You Must Create or Alter

    +

    13.4 Files You Must Create or Alter

    - +

    @@ -454,7 +454,7 @@

    So, here comes a list of files, each one followed by a description of all alterations it needs. Many examples are taken out from the GNU -gettext 0.17 distribution itself, or from the GNU +gettext 0.18.1 distribution itself, or from the GNU hello distribution (http://www.franken.de/users/gnu/ke/hello or http://www.gnu.franken.de/ke/hello/) You may indeed refer to the source code of the GNU gettext and GNU hello @@ -465,9 +465,9 @@ -

    13.4.1 ‘POTFILES.in’ in ‘po/’

    +

    13.4.1 ‘POTFILES.in’ in ‘po/’

    - +

    @@ -511,9 +511,9 @@

    -

    13.4.2 ‘LINGUAS’ in ‘po/’

    +

    13.4.2 ‘LINGUAS’ in ‘po/’

    - +

    @@ -535,7 +535,7 @@ want to further restrict, at installation time, the set of installed languages, this should not be done by modifying the ‘LINGUAS’ file, but rather by using the LINGUAS environment variable -(see section 14 The Installer's and Distributor's View). +(see section 14 The Installer's and Distributor's View).

    @@ -560,9 +560,9 @@

    -

    13.4.3 ‘Makevars’ in ‘po/’

    +

    13.4.3 ‘Makevars’ in ‘po/’

    - +

    @@ -584,14 +584,14 @@

    As an alternative to the XGETTEXT_OPTIONS variables, it is also possible to specify xgettext options through the -AM_XGETTEXT_OPTION autoconf macro. See section 13.5.6 AM_XGETTEXT_OPTION in ‘po.m4’. +AM_XGETTEXT_OPTION autoconf macro. See section 13.5.6 AM_XGETTEXT_OPTION in ‘po.m4’.

    -

    13.4.4 Extending ‘Makefile’ in ‘po/’

    +

    13.4.4 Extending ‘Makefile’ in ‘po/’

    - +

    @@ -602,8 +602,8 @@

    - - + + GNU gettext comes with a ‘Rules-quot’ file, containing rules for building catalogs ‘en@quot.po’ and ‘en@boldquot.po’. The effect of ‘en@quot.po’ is that people who set their LANGUAGE @@ -628,7 +628,7 @@

    -

    13.4.5 ‘configure.ac’ at top level

    +

    13.4.5 ‘configure.ac’ at top level

    ‘configure.ac’ or ‘configure.in’ - this is the source from which @@ -639,14 +639,14 @@

    1. Declare the package and version. - + This is done by a set of lines like these:
       PACKAGE=gettext
      -VERSION=0.17
      +VERSION=0.18.1
       AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
       AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
       AC_SUBST(PACKAGE)
      @@ -657,13 +657,13 @@
       
       
       
      -AM_INIT_AUTOMAKE(gettext, 0.17)
      +AM_INIT_AUTOMAKE(gettext, 0.18.1)
       
      Of course, you replace ‘gettext’ with the name of your package, -and ‘0.17’ by its version numbers, exactly as they +and ‘0.18.1’ by its version numbers, exactly as they should appear in the packaged tar file name of your distribution -(‘gettext-0.17.tar.gz’, here). +(‘gettext-0.18.1.tar.gz’, here).
    2. Check for internationalization support. @@ -736,7 +736,7 @@

      -

      13.4.6 ‘config.guess’, ‘config.sub’ at top level

      +

      13.4.6 ‘config.guess’, ‘config.sub’ at top level

      If you haven't suppressed the ‘intl/’ subdirectory, @@ -777,9 +777,9 @@ -

      13.4.7 ‘mkinstalldirs’ at top level

      +

      13.4.7 ‘mkinstalldirs’ at top level

      - +

      @@ -791,22 +791,22 @@

      -

      13.4.8 ‘aclocal.m4’ at top level

      +

      13.4.8 ‘aclocal.m4’ at top level

      - +

      If you do not have an ‘aclocal.m4’ file in your distribution, -the simplest is to concatenate the files ‘codeset.m4’, +the simplest is to concatenate the files ‘codeset.m4’, ‘fcntl-o.m4’, ‘gettext.m4’, ‘glibc2.m4’, ‘glibc21.m4’, ‘iconv.m4’, ‘intdiv0.m4’, ‘intl.m4’, ‘intldir.m4’, ‘intlmacosx.m4’, ‘intmax.m4’, ‘inttypes_h.m4’, ‘inttypes-pri.m4’, ‘lcmessage.m4’, ‘lib-ld.m4’, ‘lib-link.m4’, ‘lib-prefix.m4’, ‘lock.m4’, ‘longlong.m4’, ‘nls.m4’, ‘po.m4’, ‘printf-posix.m4’, ‘progtest.m4’, ‘size_max.m4’, -‘stdint_h.m4’, ‘uintmax_t.m4’, ‘visibility.m4’, -‘wchar_t.m4’, ‘wint_t.m4’, ‘xsize.m4’ +‘stdint_h.m4’, ‘threadlib.m4’, ‘uintmax_t.m4’, +‘visibility.m4’, ‘wchar_t.m4’, ‘wint_t.m4’, ‘xsize.m4’ from GNU gettext's ‘m4/’ directory into a single file. If you have suppressed the ‘intl/’ directory, only ‘gettext.m4’, ‘iconv.m4’, @@ -855,9 +855,9 @@

      -

      13.4.9 ‘acconfig.h’ at top level

      +

      13.4.9 ‘acconfig.h’ at top level

      - +

      @@ -871,9 +871,9 @@

      -

      13.4.10 ‘config.h.in’ at top level

      +

      13.4.10 ‘config.h.in’ at top level

      - +

      @@ -920,7 +920,7 @@ -

      13.4.11 ‘Makefile.in’ at top level

      +

      13.4.11 ‘Makefile.in’ at top level

      Here are a few modifications you need to make to your main, top-level @@ -1007,7 +1007,7 @@

      -

      13.4.12 ‘Makefile.in’ in ‘src/’

      +

      13.4.12 ‘Makefile.in’ in ‘src/’

      Some of the modifications made in the main ‘Makefile.in’ will @@ -1064,7 +1064,17 @@

    3. To make LOCALEDIR known to the program, add the following lines to -‘Makefile.in’: +‘Makefile.in’ if you are using Autoconf version 2.60 or newer: + + +
      +datadir = @datadir@
      +datarootdir= @datarootdir@
      +localedir = @localedir@
      +DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
      +
      + +or these lines if your version of Autoconf is older than 2.60:
      @@ -1152,8 +1162,9 @@
       AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
       
      -for all modules and compilation units together. Furthermore, add this -line to define ‘localedir’: +for all modules and compilation units together. Furthermore, if you are +using an Autoconf version older then 2.60, add this line to define +‘localedir’:
      @@ -1198,11 +1209,11 @@
       
       
       
      -

      13.4.13 ‘gettext.h’ in ‘lib/’

      +

      13.4.13 ‘gettext.h’ in ‘lib/’

      - - - + + +

      @@ -1239,7 +1250,7 @@

      - + ‘gettext.h’ is a convenience header file for conditional use of ‘<libintl.h>’, depending on the ENABLE_NLS macro. If ENABLE_NLS is set, it includes ‘<libintl.h>’; otherwise it @@ -1278,9 +1289,9 @@

      -

      13.5 Autoconf macros for use in ‘configure.ac’

      +

      13.5 Autoconf macros for use in ‘configure.ac’

      - +

      @@ -1293,10 +1304,10 @@ -

      13.5.1 AM_GNU_GETTEXT in ‘gettext.m4’

      +

      13.5.1 AM_GNU_GETTEXT in ‘gettext.m4’

      - + The AM_GNU_GETTEXT macro tests for the presence of the GNU gettext function family in either the C library or a separate libintl library (shared or static libraries are both supported) or in the package's @@ -1366,7 +1377,7 @@

    @@ -1927,9 +2003,9 @@

    -

    15.5.12 C#

    +

    15.5.12 C#

    - +

    @@ -2168,7 +2244,7 @@ specific to a particular context, with plural handling, like the npgettext function in C. - + To use this API, one needs the GNU.Gettext.dll file which is part of the GNU gettext package and distributed under the LGPL. @@ -2253,10 +2329,10 @@

    -

    15.5.13 GNU awk

    +

    15.5.13 GNU awk

    - - + +

    @@ -2326,11 +2402,11 @@

    -

    15.5.14 Pascal - Free Pascal Compiler

    +

    15.5.14 Pascal - Free Pascal Compiler

    - - - + + +

    @@ -2407,9 +2483,9 @@

    -

    15.5.15 wxWidgets library

    +

    15.5.15 wxWidgets library

    - +

    @@ -2475,10 +2551,10 @@ -

    15.5.16 YCP - YaST2 scripting language

    +

    15.5.16 YCP - YaST2 scripting language

    - - + +

    @@ -2546,10 +2622,10 @@

    -

    15.5.17 Tcl - Tk's scripting language

    +

    15.5.17 Tcl - Tk's scripting language

    - - + +

    @@ -2632,9 +2708,9 @@

    -

    15.5.18 Perl

    +

    15.5.18 Perl

    - +

    @@ -2747,7 +2823,7 @@

    - +

    @@ -2762,7 +2838,7 @@ -

    15.5.18.1 General Problems Parsing Perl Code

    +

    15.5.18.1 General Problems Parsing Perl Code

    It is often heard that only Perl can parse Perl. This is not true. @@ -2886,6 +2962,61 @@

    +There are certain cases, where the ambiguity cannot be resolved at all: + +

    + +
    +$x = wantarray ? 1 : 0;
    +
    + +

    +The Perl built-in function wantarray does not accept any arguments. +The Perl parser therefore knows that the question mark does not start +a regular expression but is the ternary conditional operator. + +

    + +
    +sub wantarrays {}
    +$x = wantarrays ? 1 : 0;
    +
    + +

    +Now the situation is different. The function wantarrays takes +a variable number of arguments (like any non-prototyped Perl function). +The question mark is now the delimiter of a pattern match, and hence +the piece of code does not compile. + +

    + +
    +sub wantarrays() {}
    +$x = wantarrays ? 1 : 0;
    +
    + +

    +Now the function is prototyped, Perl knows that it does not accept any +arguments, and the question mark is therefore interpreted as the +ternaray operator again. But that unfortunately outsmarts xgettext. + +

    +

    +The Perl parser in xgettext cannot know whether a function has +a prototype and what that prototype would look like. It therefore makes +an educated guess. If a function is known to be a Perl built-in and +this function does not accept any arguments, a following question mark +or slash is treated as an operator, otherwise as the delimiter of a +following regular expression. The Perl built-ins that do not accept +arguments are wantarray, fork, time, times, +getlogin, getppid, getpwent, getgrent, +gethostent, getnetent, getprotoent, getservent, +setpwent, setgrent, endpwent, endgrent, +endhostent, endnetent, endprotoent, and +endservent. + +

    +

    If you find that xgettext fails to extract strings from portions of your sources, you should therefore look out for slashes and/or question marks preceding these sections. You may have come @@ -2894,11 +3025,27 @@ reformulate your code in a manner less challenging to xgettext.

    +

    +In particular, if the parser is too dumb to see that a function +does not accept arguments, use parentheses: + +

    +
    +$x = somefunc() ? 1 : 0;
    +$y = (somefunc) ? 1 : 0;
    +
    -

    15.5.18.2 Which keywords will xgettext look for?

    - +In fact the Perl parser itself has similar problems and warns you +about such constructs. + +

    + + +

    15.5.18.2 Which keywords will xgettext look for?

    +

    +

    @@ -2945,9 +3092,9 @@ -

    15.5.18.3 How to Extract Hash Keys

    +

    15.5.18.3 How to Extract Hash Keys

    - +

    @@ -3000,9 +3147,9 @@

    -

    15.5.18.4 What are Strings And Quote-like Expressions?

    +

    15.5.18.4 What are Strings And Quote-like Expressions?

    - +

    @@ -3100,9 +3247,9 @@ -

    15.5.18.5 Invalid Uses Of String Interpolation

    +

    15.5.18.5 Invalid Uses Of String Interpolation

    - +

    @@ -3238,9 +3385,9 @@

    -

    15.5.18.6 Valid Uses Of String Interpolation

    +

    15.5.18.6 Valid Uses Of String Interpolation

    - +

    @@ -3326,9 +3473,9 @@ -

    15.5.18.7 When To Use Parentheses

    +

    15.5.18.7 When To Use Parentheses

    - +

    @@ -3372,9 +3519,9 @@ -

    15.5.18.8 How To Grok with Long Lines

    +

    15.5.18.8 How To Grok with Long Lines

    - +

    @@ -3446,9 +3593,9 @@

    -

    15.5.18.9 Bugs, Pitfalls, And Things That Do Not Work

    +

    15.5.18.9 Bugs, Pitfalls, And Things That Do Not Work

    - +

    @@ -3598,9 +3745,9 @@

    -

    15.5.19 PHP Hypertext Preprocessor

    +

    15.5.19 PHP Hypertext Preprocessor

    - +

    @@ -3669,9 +3816,9 @@

    -

    15.5.20 Pike

    +

    15.5.20 Pike

    - +

    @@ -3735,9 +3882,9 @@ -

    15.5.21 GNU Compiler Collection sources

    +

    15.5.21 GNU Compiler Collection sources

    - +

    @@ -3802,7 +3949,7 @@ -

    15.6 Internationalizable Data

    +

    15.6 Internationalizable Data

    Here is a list of other data formats which can be internationalized @@ -3812,7 +3959,7 @@ -

    15.6.1 POT - Portable Object Template

    +

    15.6.1 POT - Portable Object Template

    @@ -3831,9 +3978,9 @@ -

    15.6.2 Resource String Table

    +

    15.6.2 Resource String Table

    - +

    @@ -3853,7 +4000,7 @@ -

    15.6.3 Glade - GNOME user interface description

    +

    15.6.3 Glade - GNOME user interface description

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_16.html gettext-0.18.1.1/gettext-tools/doc/gettext_16.html --- gettext-0.17/gettext-tools/doc/gettext_16.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_16.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 16 Concluding Remarks @@ -11,7 +11,7 @@


    -

    16 Concluding Remarks

    +

    16 Concluding Remarks

    We would like to conclude this GNU gettext manual by presenting @@ -23,9 +23,9 @@ -

    16.1 History of GNU gettext

    +

    16.1 History of GNU gettext

    - +

    @@ -125,10 +125,10 @@

    -

    16.2 Related Readings

    +

    16.2 Related Readings

    - - + +

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_17.html gettext-0.18.1.1/gettext-tools/doc/gettext_17.html --- gettext-0.17/gettext-tools/doc/gettext_17.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_17.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - A Language Codes @@ -11,10 +11,10 @@


    -

    A Language Codes

    +

    A Language Codes

    - - + +

    @@ -27,7 +27,7 @@ -

    A.1 Usual Language Codes

    +

    A.1 Usual Language Codes

    For the commonly used languages, the ISO 639-1 standard defines two-letter @@ -42,9 +42,6 @@

    ‘ab’
    Abkhazian. -
    ‘ad’ -
    -Adangme.
    ‘ae’
    Avestan. @@ -80,7 +77,7 @@ Bashkir.
    ‘be’
    -Byelorussian; Belarusian. +Belarusian.
    ‘bg’
    Bulgarian. @@ -191,7 +188,7 @@ Irish.
    ‘gd’
    -Scots; Gaelic. +Scottish Gaelic.
    ‘gl’
    Galician. @@ -239,13 +236,13 @@ Indonesian (formerly in).
    ‘ie’
    -Interlingue. +Interlingue; Occidental.
    ‘ig’
    Igbo.
    ‘ii’
    -Sichuan Yi. +Sichuan Yi; Nuosu.
    ‘ik’
    Inupiak; Inupiaq. @@ -287,7 +284,7 @@ Kalaallisut; Greenlandic.
    ‘km’
    -Khmer; Cambodian. +Central Khmer; Cambodian.
    ‘kn’
    Kannada. @@ -431,7 +428,7 @@ Polish.
    ‘ps’
    -Pashto, Pushto. +Pashto; Pushto.
    ‘pt’
    Portuguese. @@ -440,7 +437,7 @@ Quechua.
    ‘rm’
    -Rhaeto-Romance. +Romansh.
    ‘rn’
    Rundi; Kirundi. @@ -598,7 +595,7 @@ -

    A.2 Rare Language Codes

    +

    A.2 Rare Language Codes

    For rarely used languages, the ISO 639-2 standard defines three-letter @@ -614,15 +611,15 @@

    ‘awa’
    Awadhi. -
    ‘bad’ -
    -Banda.
    ‘bal’
    Baluchi.
    ‘ban’
    Balinese. +
    ‘bej’ +
    +Beja; Bedawiyet.
    ‘bem’
    Bemba. @@ -634,10 +631,7 @@ Bikol.
    ‘bin’
    -Bini. -
    ‘btk’ -
    -Batak (Indonesia). +Bini; Edo.
    ‘bug’
    Buginese. @@ -661,7 +655,7 @@ Gondi.
    ‘gsw’
    -Alemani; Swiss German. +Swiss German; Alemannic; Alsatian.
    ‘hil’
    Hiligaynon. @@ -742,7 +736,7 @@ Pangasinan.
    ‘pam’
    -Pampanga. +Pampanga; Kapampangan.
    ‘raj’
    Rajasthani. diff -Nru gettext-0.17/gettext-tools/doc/gettext_18.html gettext-0.18.1.1/gettext-tools/doc/gettext_18.html --- gettext-0.17/gettext-tools/doc/gettext_18.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_18.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - B Country Codes @@ -11,10 +11,10 @@


    -

    B Country Codes

    +

    B Country Codes

    - - + +

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_19.html gettext-0.18.1.1/gettext-tools/doc/gettext_19.html --- gettext-0.17/gettext-tools/doc/gettext_19.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_19.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - C Licenses @@ -11,9 +11,9 @@


    -

    C Licenses

    +

    C Licenses

    - +

    @@ -27,13 +27,13 @@ The libintl and libasprintf libraries are covered by the GNU Library General Public License (LGPL). -A copy of the license is included in section C.2 GNU LESSER GENERAL PUBLIC LICENSE. +A copy of the license is included in section C.2 GNU LESSER GENERAL PUBLIC LICENSE.

  • The executable programs of this package and the libgettextpo library are covered by the GNU General Public License (GPL). -A copy of the license is included in section C.1 GNU GENERAL PUBLIC LICENSE. +A copy of the license is included in section C.1 GNU GENERAL PUBLIC LICENSE.
  • @@ -47,21 +47,21 @@ License, or (at your option) any later version published by the Free Software Foundation (FSF); with no Invariant Sections, with no Front-Cover Text, and with no Back-Cover Texts. -A copy of the license is included in section C.3 GNU Free Documentation License. +A copy of the license is included in section C.3 GNU Free Documentation License.
    This manual is covered by the GNU GPL. You can redistribute it and/or modify it under the terms of the GNU General Public License (GPL), either version 2 of the License, or (at your option) any later version published by the Free Software Foundation (FSF). -A copy of the license is included in section C.1 GNU GENERAL PUBLIC LICENSE. +A copy of the license is included in section C.1 GNU GENERAL PUBLIC LICENSE. -

    C.1 GNU GENERAL PUBLIC LICENSE

    +

    C.1 GNU GENERAL PUBLIC LICENSE

    - - + + Version 2, June 1991

    @@ -77,7 +77,7 @@ -

    Preamble

    +

    Preamble

    The licenses for most software are designed to take away your @@ -409,7 +409,7 @@ -

    Appendix: How to Apply These Terms to Your New Programs

    +

    Appendix: How to Apply These Terms to Your New Programs

    If you develop a new program, and you want it to be of the greatest @@ -492,10 +492,10 @@ Public License instead of this License. -

    C.2 GNU LESSER GENERAL PUBLIC LICENSE

    +

    C.2 GNU LESSER GENERAL PUBLIC LICENSE

    - - + + Version 2.1, February 1999

    @@ -514,7 +514,7 @@ -

    Preamble

    +

    Preamble

    The licenses for most software are designed to take away your @@ -1055,7 +1055,7 @@ -

    How to Apply These Terms to Your New Libraries

    +

    How to Apply These Terms to Your New Libraries

    If you develop a new library, and you want it to be of the greatest @@ -1116,10 +1116,10 @@ That's all there is to it! -

    C.3 GNU Free Documentation License

    +

    C.3 GNU Free Documentation License

    - - + + Version 1.2, November 2002

    @@ -1556,7 +1556,7 @@ -

    ADDENDUM: How to use this License for your documents

    +

    ADDENDUM: How to use this License for your documents

    To use this License in a document you have written, include a copy of diff -Nru gettext-0.17/gettext-tools/doc/gettext_1.html gettext-0.18.1.1/gettext-tools/doc/gettext_1.html --- gettext-0.17/gettext-tools/doc/gettext_1.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_1.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 1 Introduction @@ -559,7 +559,7 @@ See section 5.1 Invoking the xgettext Program, for more details about how one calls the xgettext program. If you are really lazy, you might be interested at working a lot more right away, and preparing the -whole distribution setup (see section 13 The Maintainer's View). By doing so, you +whole distribution setup (see section 13 The Maintainer's View). By doing so, you spare yourself typing the xgettext command, as make should now generate the proper things automatically for you! diff -Nru gettext-0.17/gettext-tools/doc/gettext_20.html gettext-0.18.1.1/gettext-tools/doc/gettext_20.html --- gettext-0.17/gettext-tools/doc/gettext_20.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_20.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Program Index @@ -11,7 +11,7 @@


    -

    Program Index

    +

    Program Index

    Jump to: @@ -31,45 +31,45 @@

    a

    -
  • autopoint +
  • autopoint
  • e

    -
  • envsubst +
  • envsubst
  • g

    -
  • gettext, gettext -
  • gettextize +
  • gettext, gettext +
  • gettextize
  • m

    -
  • msgattrib -
  • msgcat -
  • msgcmp -
  • msgcomm -
  • msgconv -
  • msgen -
  • msgexec -
  • msgfilter -
  • msgfmt -
  • msggrep -
  • msginit -
  • msgmerge -
  • msgunfmt -
  • msguniq +
  • msgattrib +
  • msgcat +
  • msgcmp +
  • msgcomm +
  • msgconv +
  • msgen +
  • msgexec +
  • msgfilter +
  • msgfmt +
  • msggrep +
  • msginit +
  • msgmerge +
  • msgunfmt +
  • msguniq
  • n

    -
  • ngettext, ngettext +
  • ngettext, ngettext
  • r

    -
  • recode-sr-latin +
  • recode-sr-latin
  • x

    -
  • xgettext +
  • xgettext
  • diff -Nru gettext-0.17/gettext-tools/doc/gettext_21.html gettext-0.18.1.1/gettext-tools/doc/gettext_21.html --- gettext-0.17/gettext-tools/doc/gettext_21.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_21.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Option Index @@ -11,7 +11,7 @@


    -

    Option Index

    +

    Option Index

    Jump to: @@ -19,562 +19,587 @@

    -

    -
  • --add-comments, xgettext option -
  • --add-location, msgattrib option -
  • --add-location, msgcat option -
  • --add-location, msgcomm option -
  • --add-location, msgconv option -
  • --add-location, msgen option -
  • --add-location, msgfilter option -
  • --add-location, msggrep option -
  • --add-location, msgmerge option -
  • --add-location, msguniq option -
  • --add-location, xgettext option -
  • --alignment, msgfmt option -
  • --backup, msgmerge option -
  • --boost, xgettext option -
  • --c++, xgettext option -
  • --check, msgfmt option -
  • --check-accelerators, msgfmt option -
  • --check-compatibility, msgfmt option -
  • --check-domain, msgfmt option -
  • --check-format, msgfmt option -
  • --check-header, msgfmt option -
  • --clear-fuzzy, msgattrib option -
  • --clear-obsolete, msgattrib option -
  • --clear-previous, msgattrib option -
  • --color, msgcat option, --color, msgcat option -
  • --comment, msggrep option -
  • --compendium, msgmerge option -
  • --copyright-holder, xgettext option -
  • --csharp, msgfmt option -
  • --csharp, msgunfmt option -
  • --csharp-resources, msgfmt option -
  • --csharp-resources, msgunfmt option -
  • --debug, xgettext option -
  • --default-domain, xgettext option -
  • --directory, msgattrib option -
  • --directory, msgcat option -
  • --directory, msgcmp option -
  • --directory, msgcomm option -
  • --directory, msgconv option -
  • --directory, msgen option -
  • --directory, msgexec option -
  • --directory, msgfilter option -
  • --directory, msgfmt option -
  • --directory, msggrep option -
  • --directory, msgmerge option -
  • --directory, msguniq option -
  • --directory, xgettext option -
  • --domain, gettext option -
  • --domain, msggrep option -
  • --domain, ngettext option -
  • --dry-run, autopoint option -
  • --dry-run, gettextize option -
  • --exclude-file, xgettext option -
  • --expression, msgfilter option -
  • --extended-regexp, msggrep option -
  • --extract-all, xgettext option -
  • --extracted-comment, msggrep option -
  • --file, msgfilter option -
  • --file, msggrep option -
  • --files-from, msgcat option -
  • --files-from, msgcomm option -
  • --files-from, xgettext option -
  • --fixed-strings, msggrep option -
  • --flag, xgettext option -
  • --force, autopoint option -
  • --force, gettextize option -
  • --force-po, msgattrib option -
  • --force-po, msgcat option -
  • --force-po, msgcomm option -
  • --force-po, msgconv option -
  • --force-po, msgen option -
  • --force-po, msgfilter option -
  • --force-po, msggrep option -
  • --force-po, msgmerge option -
  • --force-po, msgunfmt option -
  • --force-po, msguniq option -
  • --force-po, xgettext option -
  • --foreign-user, xgettext option -
  • --from-code, xgettext option -
  • --fuzzy, msgattrib option -
  • --help, autopoint option -
  • --help, envsubst option -
  • --help, gettext option -
  • --help, gettextize option -
  • --help, msgattrib option -
  • --help, msgcat option -
  • --help, msgcmp option -
  • --help, msgcomm option -
  • --help, msgconv option -
  • --help, msgen option -
  • --help, msgexec option -
  • --help, msgfilter option -
  • --help, msgfmt option -
  • --help, msggrep option -
  • --help, msginit option -
  • --help, msgmerge option -
  • --help, msgunfmt option -
  • --help, msguniq option -
  • --help, ngettext option -
  • --help, xgettext option -
  • --ignore-case, msggrep option -
  • --ignore-file, msgattrib option -
  • --indent, msgattrib option -
  • --indent, msgcat option -
  • --indent, msgcomm option -
  • --indent, msgconv option -
  • --indent, msgen option -
  • --indent, msgfilter option -
  • --indent, msggrep option -
  • --indent, msgmerge option -
  • --indent, msgunfmt option -
  • --indent, msguniq option -
  • --indent, xgettext option -
  • --input, msgexec option -
  • --input, msgfilter option -
  • --input, msginit option -
  • --intl, gettextize option -
  • --invert-match, msggrep option -
  • --java, msgfmt option -
  • --java, msgunfmt option -
  • --java2, msgfmt option -
  • --join-existing, xgettext option -
  • --kde, xgettext option -
  • --keep-header, msgfilter option -
  • --keyword, xgettext option -
  • --language, xgettext option -
  • --less-than, msgcat option -
  • --less-than, msgcomm option -
  • --locale, msgfmt option, --locale, msgfmt option, --locale, msgfmt option -
  • --locale, msginit option -
  • --locale, msgunfmt option, --locale, msgunfmt option, --locale, msgunfmt option -
  • --location, msggrep option -
  • --more-than, msgcat option -
  • --more-than, msgcomm option -
  • --msgctxt, msggrep option -
  • --msgid, msggrep option -
  • --msgid-bugs-address, xgettext option -
  • --msgstr, msggrep option -
  • --msgstr-prefix, xgettext option -
  • --msgstr-suffix, xgettext option -
  • --multi-domain, msgcmp option -
  • --multi-domain, msgmerge option -
  • --no-changelog, gettextize option -
  • --no-fuzzy, msgattrib option -
  • --no-fuzzy-matching, msgmerge option -
  • --no-hash, msgfmt option -
  • --no-location, msgattrib option -
  • --no-location, msgcat option -
  • --no-location, msgcomm option -
  • --no-location, msgconv option -
  • --no-location, msgen option -
  • --no-location, msgfilter option -
  • --no-location, msggrep option -
  • --no-location, msgmerge option -
  • --no-location, msguniq option -
  • --no-location, xgettext option -
  • --no-obsolete, msgattrib option -
  • --no-translator, msginit option -
  • --no-wrap, msgattrib option -
  • --no-wrap, msgcat option -
  • --no-wrap, msgcomm option -
  • --no-wrap, msgconv option -
  • --no-wrap, msgen option -
  • --no-wrap, msgfilter option -
  • --no-wrap, msggrep option -
  • --no-wrap, msginit option -
  • --no-wrap, msgmerge option -
  • --no-wrap, msgunfmt option -
  • --no-wrap, msguniq option -
  • --no-wrap, xgettext option -
  • --obsolete, msgattrib option -
  • --omit-header, msgcomm option -
  • --omit-header, xgettext option -
  • --only-file, msgattrib option -
  • --only-fuzzy, msgattrib option -
  • --only-obsolete, msgattrib option -
  • --output, xgettext option -
  • --output-dir, xgettext option -
  • --output-file, msgattrib option -
  • --output-file, msgcat option -
  • --output-file, msgcomm option -
  • --output-file, msgconv option -
  • --output-file, msgen option -
  • --output-file, msgfilter option -
  • --output-file, msgfmt option -
  • --output-file, msggrep option -
  • --output-file, msginit option -
  • --output-file, msgmerge option -
  • --output-file, msgunfmt option -
  • --output-file, msguniq option -
  • --package-name, xgettext option -
  • --package-version, xgettext option -
  • --po-dir, gettextize option -
  • --previous, msgmerge option -
  • --properties-input, msgattrib option -
  • --properties-input, msgcat option -
  • --properties-input, msgcmp option -
  • --properties-input, msgcomm option -
  • --properties-input, msgconv option -
  • --properties-input, msgen option -
  • --properties-input, msgexec option -
  • --properties-input, msgfilter option -
  • --properties-input, msgfmt option -
  • --properties-input, msggrep option -
  • --properties-input, msginit option -
  • --properties-input, msgmerge option -
  • --properties-input, msguniq option -
  • --properties-output, msgattrib option -
  • --properties-output, msgcat option -
  • --properties-output, msgcomm option -
  • --properties-output, msgconv option -
  • --properties-output, msgen option -
  • --properties-output, msgfilter option -
  • --properties-output, msggrep option -
  • --properties-output, msginit option -
  • --properties-output, msgmerge option -
  • --properties-output, msgunfmt option -
  • --properties-output, msguniq option -
  • --properties-output, xgettext option -
  • --qt, msgfmt option -
  • --qt, xgettext option -
  • --quiet, msgfilter option -
  • --quiet, msgmerge option -
  • --regexp=, msggrep option -
  • --repeated, msguniq option -
  • --resource, msgfmt option, --resource, msgfmt option -
  • --resource, msgunfmt option, --resource, msgunfmt option -
  • --set-fuzzy, msgattrib option -
  • --set-obsolete, msgattrib option -
  • --silent, msgfilter option -
  • --silent, msgmerge option -
  • --sort-by-file, msgattrib option -
  • --sort-by-file, msgcat option -
  • --sort-by-file, msgcomm option -
  • --sort-by-file, msgconv option -
  • --sort-by-file, msgen option -
  • --sort-by-file, msgfilter option -
  • --sort-by-file, msggrep option -
  • --sort-by-file, msgmerge option -
  • --sort-by-file, msguniq option -
  • --sort-by-file, xgettext option -
  • --sort-output, msgattrib option -
  • --sort-output, msgcat option -
  • --sort-output, msgcomm option -
  • --sort-output, msgconv option -
  • --sort-output, msgen option -
  • --sort-output, msgfilter option -
  • --sort-output, msggrep option -
  • --sort-output, msgmerge option -
  • --sort-output, msgunfmt option -
  • --sort-output, msguniq option -
  • --sort-output, xgettext option -
  • --statistics, msgfmt option -
  • --strict, msgattrib option -
  • --strict, msgcat option -
  • --strict, msgcomm option -
  • --strict, msgconv option -
  • --strict, msgen option -
  • --strict, msgfilter option -
  • --strict, msgfmt option -
  • --strict, msggrep option -
  • --strict, msgmerge option -
  • --strict, msgunfmt option -
  • --strict, msguniq option -
  • --strict, xgettext option -
  • --stringtable-input, msgattrib option -
  • --stringtable-input, msgcat option -
  • --stringtable-input, msgcmp option -
  • --stringtable-input, msgcomm option -
  • --stringtable-input, msgen option -
  • --stringtable-input, msgexec option -
  • --stringtable-input, msgfilter option -
  • --stringtable-input, msgfmt option -
  • --stringtable-input, msggrep option -
  • --stringtable-input, msginit option -
  • --stringtable-input, msgmerge option -
  • --stringtable-input, msgonv option -
  • --stringtable-input, msguniq option -
  • --stringtable-output, msgattrib option -
  • --stringtable-output, msgcat option -
  • --stringtable-output, msgcomm option -
  • --stringtable-output, msgconv option -
  • --stringtable-output, msgen option -
  • --stringtable-output, msgfilter option -
  • --stringtable-output, msggrep option -
  • --stringtable-output, msginit option -
  • --stringtable-output, msgmerge option -
  • --stringtable-output, msgunfmt option -
  • --stringtable-output, msguniq option -
  • --stringtable-output, xgettext option -
  • --style, msgcat option, --style, msgcat option -
  • --suffix, msgmerge option -
  • --symlink, gettextize option -
  • --tcl, msgfmt option -
  • --tcl, msgunfmt option -
  • --to-code, msgcat option -
  • --to-code, msgconv option -
  • --to-code, msguniq option -
  • --translated, msgattrib option -
  • --trigraphs, xgettext option -
  • --unique, msgcat option -
  • --unique, msgcomm option -
  • --unique, msguniq option -
  • --untranslated, msgattrib option -
  • --update, msgmerge option -
  • --use-first, msgcat option -
  • --use-first, msguniq option -
  • --use-fuzzy, msgcmp option -
  • --use-fuzzy, msgfmt option -
  • --use-untranslated, msgcmp option -
  • --variables, envsubst option -
  • --verbose, msgfmt option -
  • --verbose, msgmerge option -
  • --verbose, msgunfmt option -
  • --version, autopoint option -
  • --version, envsubst option -
  • --version, gettext option -
  • --version, gettextize option -
  • --version, msgattrib option -
  • --version, msgcat option -
  • --version, msgcmp option -
  • --version, msgcomm option -
  • --version, msgconv option -
  • --version, msgen option -
  • --version, msgexec option -
  • --version, msgfilter option -
  • --version, msgfmt option -
  • --version, msggrep option -
  • --version, msginit option -
  • --version, msgmerge option -
  • --version, msgunfmt option -
  • --version, msguniq option -
  • --version, ngettext option -
  • --version, xgettext option -
  • --width, msgattrib option -
  • --width, msgcat option -
  • --width, msgcomm option -
  • --width, msgconv option -
  • --width, msgen option -
  • --width, msgfilter option -
  • --width, msggrep option -
  • --width, msginit option -
  • --width, msgmerge option -
  • --width, msgunfmt option -
  • --width, msguniq option -
  • --width, xgettext option -
  • -<, msgcat option -
  • -<, msgcomm option -
  • ->, msgcat option -
  • ->, msgcomm option -
  • -a, msgfmt option -
  • -a, xgettext option -
  • -C, msgfmt option -
  • -c, msgfmt option -
  • -C, msggrep option -
  • -C, msgmerge option -
  • -C, xgettext option -
  • -c, xgettext option -
  • -d, autopoint option -
  • -d, gettext option -
  • -d, gettextize option -
  • -D, msgattrib option -
  • -D, msgcat option -
  • -D, msgcmp option -
  • -D, msgcomm option -
  • -D, msgconv option -
  • -D, msgen option -
  • -D, msgexec option -
  • -D, msgfilter option -
  • -d, msgfmt option, -d, msgfmt option, -d, msgfmt option -
  • -D, msgfmt option -
  • -D, msggrep option -
  • -D, msgmerge option -
  • -d, msgunfmt option, -d, msgunfmt option -
  • -d, msguniq option -
  • -D, msguniq option -
  • -d, ngettext option -
  • -d, xgettext option -
  • -D, xgettext option -
  • -e, gettext option -
  • -E, gettext option -
  • -e, msgfilter option -
  • -e, msggrep option -
  • -E, msggrep option -
  • -e, ngettext option -
  • -E, ngettext option -
  • -f, autopoint option -
  • -f, gettextize option -
  • -F, msgattrib option -
  • -f, msgcat option -
  • -F, msgcat option -
  • -F, msgcomm option -
  • -f, msgcomm option -
  • -F, msgconv option -
  • -F, msgen option -
  • -F, msgfilter option -
  • -f, msgfilter option -
  • -f, msgfmt option -
  • -f, msggrep option -
  • -F, msggrep option -
  • -F, msgmerge option -
  • -F, msguniq option -
  • -F, xgettext option -
  • -f, xgettext option -
  • -h, envsubst option -
  • -h, gettext option -
  • -h, msgattrib option -
  • -h, msgcat option -
  • -h, msgcmp option -
  • -h, msgcomm option -
  • -h, msgconv option -
  • -h, msgen option -
  • -h, msgexec option -
  • -h, msgfilter option -
  • -h, msgfmt option -
  • -h, msggrep option -
  • -h, msginit option -
  • -h, msgmerge option -
  • -h, msgunfmt option -
  • -h, msguniq option -
  • -h, ngettext option -
  • -h, xgettext option -
  • -i, msgattrib option -
  • -i, msgcat option -
  • -i, msgcomm option -
  • -i, msgconv option -
  • -i, msgen option -
  • -i, msgexec option -
  • -i, msgfilter option -
  • -i, msggrep option -
  • -i, msginit option -
  • -i, msgmerge option -
  • -i, msgunfmt option -
  • -i, msguniq option -
  • -i, xgettext option -
  • -j, msgfmt option -
  • -J, msggrep option -
  • -j, msgunfmt option -
  • -j, xgettext option -
  • -K, msggrep option -
  • -k, xgettext option -
  • -l, msgfmt option, -l, msgfmt option, -l, msgfmt option -
  • -l, msginit option -
  • -l, msgunfmt option, -l, msgunfmt option, -l, msgunfmt option -
  • -L, xgettext option -
  • -m, msgcmp option -
  • -M, msggrep option -
  • -m, msgmerge option -
  • -M, xgettext option -
  • -m, xgettext option -
  • -n, gettext option -
  • -n, msgattrib option -
  • -n, msgcat option -
  • -n, msgcomm option -
  • -n, msgfilter option -
  • -N, msggrep option -
  • -N, msgmerge option -
  • -n, msguniq option -
  • -n, xgettext option -
  • -o, msgattrib option -
  • -o, msgcat option -
  • -o, msgcomm option -
  • -o, msgconv option -
  • -o, msgen option -
  • -o, msgfilter option -
  • -o, msgfmt option -
  • -o, msggrep option -
  • -o, msginit option -
  • -o, msgmerge option -
  • -o, msgunfmt option -
  • -o, msguniq option -
  • -o, xgettext option -
  • -p, msgattrib option -
  • -P, msgattrib option -
  • -p, msgcat option -
  • -P, msgcat option -
  • -P, msgcmp option -
  • -p, msgcomm option -
  • -P, msgcomm option -
  • -p, msgconv option -
  • -P, msgconv option -
  • -p, msgen option -
  • -P, msgen option -
  • -P, msgexec option -
  • -P, msgfilter option -
  • -p, msgfilter option -
  • -P, msgfmt option -
  • -P, msggrep option -
  • -p, msggrep option -
  • -p, msginit option -
  • -P, msginit option -
  • -p, msgmerge option -
  • -P, msgmerge option -
  • -p, msgunfmt option -
  • -p, msguniq option -
  • -P, msguniq option -
  • -p, xgettext option -
  • -q, msgmerge option -
  • -r, msgfmt option, -r, msgfmt option -
  • -r, msgunfmt option, -r, msgunfmt option -
  • -s, msgattrib option -
  • -s, msgcat option -
  • -s, msgcomm option -
  • -s, msgconv option -
  • -s, msgen option -
  • -s, msgfilter option -
  • -s, msgmerge option -
  • -s, msgunfmt option -
  • -s, msguniq option -
  • -s, xgettext option -
  • -t, msgcat option -
  • -t, msgconv option -
  • -T, msggrep option -
  • -t, msguniq option -
  • -T, xgettext option -
  • -u, msgcat option -
  • -u, msgcomm option -
  • -U, msgmerge option -
  • -u, msguniq option -
  • -v, envsubst option -
  • -V, envsubst option -
  • -V, gettext option -
  • -V, msgattrib option -
  • -V, msgcat option -
  • -V, msgcmp option -
  • -V, msgcomm option -
  • -V, msgconv option -
  • -V, msgen option -
  • -V, msgexec option -
  • -V, msgfilter option -
  • -v, msgfmt option -
  • -V, msgfmt option -
  • -V, msggrep option -
  • -v, msggrep option -
  • -V, msginit option -
  • -V, msgmerge option -
  • -v, msgmerge option -
  • -v, msgunfmt option -
  • -V, msgunfmt option -
  • -V, msguniq option -
  • -V, ngettext option -
  • -V, xgettext option -
  • -w, msgattrib option -
  • -w, msgcat option -
  • -w, msgcomm option -
  • -w, msgconv option -
  • -w, msgen option -
  • -w, msgfilter option -
  • -w, msggrep option -
  • -w, msginit option -
  • -w, msgmerge option -
  • -w, msgunfmt option -
  • -w, msguniq option -
  • -w, xgettext option -
  • -X, msggrep option -
  • -x, xgettext option +
  • --add-comments, xgettext option +
  • --add-location, msgattrib option +
  • --add-location, msgcat option +
  • --add-location, msgcomm option +
  • --add-location, msgconv option +
  • --add-location, msgen option +
  • --add-location, msgfilter option +
  • --add-location, msggrep option +
  • --add-location, msgmerge option +
  • --add-location, msguniq option +
  • --add-location, xgettext option +
  • --alignment, msgfmt option +
  • --backup, msgmerge option +
  • --boost, xgettext option +
  • --c++, xgettext option +
  • --check, msgfmt option +
  • --check-accelerators, msgfmt option +
  • --check-compatibility, msgfmt option +
  • --check-domain, msgfmt option +
  • --check-format, msgfmt option +
  • --check-header, msgfmt option +
  • --clear-fuzzy, msgattrib option +
  • --clear-obsolete, msgattrib option +
  • --clear-previous, msgattrib option +
  • --color, msgattrib option +
  • --color, msgcat option, --color, msgcat option +
  • --color, msgcomm option +
  • --color, msgconv option +
  • --color, msgen option +
  • --color, msgfilter option +
  • --color, msggrep option +
  • --color, msginit option +
  • --color, msgmerge option +
  • --color, msgunfmt option +
  • --color, msguniq option +
  • --color, xgettext option +
  • --comment, msggrep option +
  • --compendium, msgmerge option +
  • --copyright-holder, xgettext option +
  • --csharp, msgfmt option +
  • --csharp, msgunfmt option +
  • --csharp-resources, msgfmt option +
  • --csharp-resources, msgunfmt option +
  • --debug, xgettext option +
  • --default-domain, xgettext option +
  • --directory, msgattrib option +
  • --directory, msgcat option +
  • --directory, msgcmp option +
  • --directory, msgcomm option +
  • --directory, msgconv option +
  • --directory, msgen option +
  • --directory, msgexec option +
  • --directory, msgfilter option +
  • --directory, msgfmt option +
  • --directory, msggrep option +
  • --directory, msgmerge option +
  • --directory, msguniq option +
  • --directory, xgettext option +
  • --domain, gettext option +
  • --domain, msggrep option +
  • --domain, ngettext option +
  • --dry-run, autopoint option +
  • --dry-run, gettextize option +
  • --exclude-file, xgettext option +
  • --expression, msgfilter option +
  • --extended-regexp, msggrep option +
  • --extract-all, xgettext option +
  • --extracted-comment, msggrep option +
  • --file, msgfilter option +
  • --file, msggrep option +
  • --files-from, msgcat option +
  • --files-from, msgcomm option +
  • --files-from, xgettext option +
  • --fixed-strings, msggrep option +
  • --flag, xgettext option +
  • --force, autopoint option +
  • --force, gettextize option +
  • --force-po, msgattrib option +
  • --force-po, msgcat option +
  • --force-po, msgcomm option +
  • --force-po, msgconv option +
  • --force-po, msgen option +
  • --force-po, msgfilter option +
  • --force-po, msggrep option +
  • --force-po, msgmerge option +
  • --force-po, msgunfmt option +
  • --force-po, msguniq option +
  • --force-po, xgettext option +
  • --foreign-user, xgettext option +
  • --from-code, xgettext option +
  • --fuzzy, msgattrib option +
  • --help, autopoint option +
  • --help, envsubst option +
  • --help, gettext option +
  • --help, gettextize option +
  • --help, msgattrib option +
  • --help, msgcat option +
  • --help, msgcmp option +
  • --help, msgcomm option +
  • --help, msgconv option +
  • --help, msgen option +
  • --help, msgexec option +
  • --help, msgfilter option +
  • --help, msgfmt option +
  • --help, msggrep option +
  • --help, msginit option +
  • --help, msgmerge option +
  • --help, msgunfmt option +
  • --help, msguniq option +
  • --help, ngettext option +
  • --help, xgettext option +
  • --ignore-case, msggrep option +
  • --ignore-file, msgattrib option +
  • --indent, msgattrib option +
  • --indent, msgcat option +
  • --indent, msgcomm option +
  • --indent, msgconv option +
  • --indent, msgen option +
  • --indent, msgfilter option +
  • --indent, msggrep option +
  • --indent, msgmerge option +
  • --indent, msgunfmt option +
  • --indent, msguniq option +
  • --indent, xgettext option +
  • --input, msgexec option +
  • --input, msgfilter option +
  • --input, msginit option +
  • --intl, gettextize option +
  • --invert-match, msggrep option +
  • --java, msgfmt option +
  • --java, msgunfmt option +
  • --java2, msgfmt option +
  • --join-existing, xgettext option +
  • --kde, xgettext option +
  • --keep-header, msgfilter option +
  • --keyword, xgettext option +
  • --lang, msgcat option, --lang, msgcat option, --lang, msgcat option +
  • --language, xgettext option +
  • --less-than, msgcat option +
  • --less-than, msgcomm option +
  • --locale, msgfmt option, --locale, msgfmt option, --locale, msgfmt option +
  • --locale, msginit option +
  • --locale, msgunfmt option, --locale, msgunfmt option, --locale, msgunfmt option +
  • --location, msggrep option +
  • --more-than, msgcat option +
  • --more-than, msgcomm option +
  • --msgctxt, msggrep option +
  • --msgid, msggrep option +
  • --msgid-bugs-address, xgettext option +
  • --msgstr, msggrep option +
  • --msgstr-prefix, xgettext option +
  • --msgstr-suffix, xgettext option +
  • --multi-domain, msgcmp option +
  • --multi-domain, msgmerge option +
  • --no-changelog, gettextize option +
  • --no-fuzzy, msgattrib option +
  • --no-fuzzy-matching, msgcmp option +
  • --no-fuzzy-matching, msgmerge option +
  • --no-hash, msgfmt option +
  • --no-location, msgattrib option +
  • --no-location, msgcat option +
  • --no-location, msgcomm option +
  • --no-location, msgconv option +
  • --no-location, msgen option +
  • --no-location, msgfilter option +
  • --no-location, msggrep option +
  • --no-location, msgmerge option +
  • --no-location, msguniq option +
  • --no-location, xgettext option +
  • --no-obsolete, msgattrib option +
  • --no-translator, msginit option +
  • --no-wrap, msgattrib option +
  • --no-wrap, msgcat option +
  • --no-wrap, msgcomm option +
  • --no-wrap, msgconv option +
  • --no-wrap, msgen option +
  • --no-wrap, msgfilter option +
  • --no-wrap, msggrep option +
  • --no-wrap, msginit option +
  • --no-wrap, msgmerge option +
  • --no-wrap, msgunfmt option +
  • --no-wrap, msguniq option +
  • --no-wrap, xgettext option +
  • --obsolete, msgattrib option +
  • --omit-header, msgcomm option +
  • --omit-header, xgettext option +
  • --only-file, msgattrib option +
  • --only-fuzzy, msgattrib option +
  • --only-obsolete, msgattrib option +
  • --output, xgettext option +
  • --output-dir, xgettext option +
  • --output-file, msgattrib option +
  • --output-file, msgcat option +
  • --output-file, msgcomm option +
  • --output-file, msgconv option +
  • --output-file, msgen option +
  • --output-file, msgfilter option +
  • --output-file, msgfmt option +
  • --output-file, msggrep option +
  • --output-file, msginit option +
  • --output-file, msgmerge option +
  • --output-file, msgunfmt option +
  • --output-file, msguniq option +
  • --package-name, xgettext option +
  • --package-version, xgettext option +
  • --po-dir, gettextize option +
  • --previous, msgmerge option +
  • --properties-input, msgattrib option +
  • --properties-input, msgcat option +
  • --properties-input, msgcmp option +
  • --properties-input, msgcomm option +
  • --properties-input, msgconv option +
  • --properties-input, msgen option +
  • --properties-input, msgexec option +
  • --properties-input, msgfilter option +
  • --properties-input, msgfmt option +
  • --properties-input, msggrep option +
  • --properties-input, msginit option +
  • --properties-input, msgmerge option +
  • --properties-input, msguniq option +
  • --properties-output, msgattrib option +
  • --properties-output, msgcat option +
  • --properties-output, msgcomm option +
  • --properties-output, msgconv option +
  • --properties-output, msgen option +
  • --properties-output, msgfilter option +
  • --properties-output, msggrep option +
  • --properties-output, msginit option +
  • --properties-output, msgmerge option +
  • --properties-output, msgunfmt option +
  • --properties-output, msguniq option +
  • --properties-output, xgettext option +
  • --qt, msgfmt option +
  • --qt, xgettext option +
  • --quiet, msgfilter option +
  • --quiet, msgmerge option +
  • --regexp=, msggrep option +
  • --repeated, msguniq option +
  • --resource, msgfmt option, --resource, msgfmt option +
  • --resource, msgunfmt option, --resource, msgunfmt option +
  • --set-fuzzy, msgattrib option +
  • --set-obsolete, msgattrib option +
  • --silent, msgfilter option +
  • --silent, msgmerge option +
  • --sort-by-file, msgattrib option +
  • --sort-by-file, msgcat option +
  • --sort-by-file, msgcomm option +
  • --sort-by-file, msgconv option +
  • --sort-by-file, msgen option +
  • --sort-by-file, msgfilter option +
  • --sort-by-file, msggrep option +
  • --sort-by-file, msgmerge option +
  • --sort-by-file, msguniq option +
  • --sort-by-file, xgettext option +
  • --sort-output, msgattrib option +
  • --sort-output, msgcat option +
  • --sort-output, msgcomm option +
  • --sort-output, msgconv option +
  • --sort-output, msgen option +
  • --sort-output, msgfilter option +
  • --sort-output, msggrep option +
  • --sort-output, msgmerge option +
  • --sort-output, msgunfmt option +
  • --sort-output, msguniq option +
  • --sort-output, xgettext option +
  • --statistics, msgfmt option +
  • --strict, msgattrib option +
  • --strict, msgcat option +
  • --strict, msgcomm option +
  • --strict, msgconv option +
  • --strict, msgen option +
  • --strict, msgfilter option +
  • --strict, msgfmt option +
  • --strict, msggrep option +
  • --strict, msgmerge option +
  • --strict, msgunfmt option +
  • --strict, msguniq option +
  • --strict, xgettext option +
  • --stringtable-input, msgattrib option +
  • --stringtable-input, msgcat option +
  • --stringtable-input, msgcmp option +
  • --stringtable-input, msgcomm option +
  • --stringtable-input, msgen option +
  • --stringtable-input, msgexec option +
  • --stringtable-input, msgfilter option +
  • --stringtable-input, msgfmt option +
  • --stringtable-input, msggrep option +
  • --stringtable-input, msginit option +
  • --stringtable-input, msgmerge option +
  • --stringtable-input, msgonv option +
  • --stringtable-input, msguniq option +
  • --stringtable-output, msgattrib option +
  • --stringtable-output, msgcat option +
  • --stringtable-output, msgcomm option +
  • --stringtable-output, msgconv option +
  • --stringtable-output, msgen option +
  • --stringtable-output, msgfilter option +
  • --stringtable-output, msggrep option +
  • --stringtable-output, msginit option +
  • --stringtable-output, msgmerge option +
  • --stringtable-output, msgunfmt option +
  • --stringtable-output, msguniq option +
  • --stringtable-output, xgettext option +
  • --style, msgattrib option +
  • --style, msgcat option, --style, msgcat option +
  • --style, msgcomm option +
  • --style, msgconv option +
  • --style, msgen option +
  • --style, msgfilter option +
  • --style, msggrep option +
  • --style, msginit option +
  • --style, msgmerge option +
  • --style, msgunfmt option +
  • --style, msguniq option +
  • --style, xgettext option +
  • --suffix, msgmerge option +
  • --symlink, gettextize option +
  • --tcl, msgfmt option +
  • --tcl, msgunfmt option +
  • --to-code, msgcat option +
  • --to-code, msgconv option +
  • --to-code, msguniq option +
  • --translated, msgattrib option +
  • --trigraphs, xgettext option +
  • --unique, msgcat option +
  • --unique, msgcomm option +
  • --unique, msguniq option +
  • --untranslated, msgattrib option +
  • --update, msgmerge option +
  • --use-first, msgcat option +
  • --use-first, msguniq option +
  • --use-fuzzy, msgcmp option +
  • --use-fuzzy, msgfmt option +
  • --use-untranslated, msgcmp option +
  • --variables, envsubst option +
  • --verbose, msgfmt option +
  • --verbose, msgmerge option +
  • --verbose, msgunfmt option +
  • --version, autopoint option +
  • --version, envsubst option +
  • --version, gettext option +
  • --version, gettextize option +
  • --version, msgattrib option +
  • --version, msgcat option +
  • --version, msgcmp option +
  • --version, msgcomm option +
  • --version, msgconv option +
  • --version, msgen option +
  • --version, msgexec option +
  • --version, msgfilter option +
  • --version, msgfmt option +
  • --version, msggrep option +
  • --version, msginit option +
  • --version, msgmerge option +
  • --version, msgunfmt option +
  • --version, msguniq option +
  • --version, ngettext option +
  • --version, xgettext option +
  • --width, msgattrib option +
  • --width, msgcat option +
  • --width, msgcomm option +
  • --width, msgconv option +
  • --width, msgen option +
  • --width, msgfilter option +
  • --width, msggrep option +
  • --width, msginit option +
  • --width, msgmerge option +
  • --width, msgunfmt option +
  • --width, msguniq option +
  • --width, xgettext option +
  • -<, msgcat option +
  • -<, msgcomm option +
  • ->, msgcat option +
  • ->, msgcomm option +
  • -a, msgfmt option +
  • -a, xgettext option +
  • -C, msgfmt option +
  • -c, msgfmt option +
  • -C, msggrep option +
  • -C, msgmerge option +
  • -C, xgettext option +
  • -c, xgettext option +
  • -d, autopoint option +
  • -d, gettext option +
  • -d, gettextize option +
  • -D, msgattrib option +
  • -D, msgcat option +
  • -D, msgcmp option +
  • -D, msgcomm option +
  • -D, msgconv option +
  • -D, msgen option +
  • -D, msgexec option +
  • -D, msgfilter option +
  • -d, msgfmt option, -d, msgfmt option, -d, msgfmt option +
  • -D, msgfmt option +
  • -D, msggrep option +
  • -D, msgmerge option +
  • -d, msgunfmt option, -d, msgunfmt option +
  • -D, msguniq option +
  • -d, msguniq option +
  • -d, ngettext option +
  • -D, xgettext option +
  • -d, xgettext option +
  • -e, gettext option +
  • -E, gettext option +
  • -e, msgfilter option +
  • -E, msggrep option +
  • -e, msggrep option +
  • -e, ngettext option +
  • -E, ngettext option +
  • -f, autopoint option +
  • -f, gettextize option +
  • -F, msgattrib option +
  • -f, msgcat option +
  • -F, msgcat option +
  • -F, msgcomm option +
  • -f, msgcomm option +
  • -F, msgconv option +
  • -F, msgen option +
  • -F, msgfilter option +
  • -f, msgfilter option +
  • -f, msgfmt option +
  • -f, msggrep option +
  • -F, msggrep option +
  • -F, msgmerge option +
  • -F, msguniq option +
  • -F, xgettext option +
  • -f, xgettext option +
  • -h, envsubst option +
  • -h, gettext option +
  • -h, msgattrib option +
  • -h, msgcat option +
  • -h, msgcmp option +
  • -h, msgcomm option +
  • -h, msgconv option +
  • -h, msgen option +
  • -h, msgexec option +
  • -h, msgfilter option +
  • -h, msgfmt option +
  • -h, msggrep option +
  • -h, msginit option +
  • -h, msgmerge option +
  • -h, msgunfmt option +
  • -h, msguniq option +
  • -h, ngettext option +
  • -h, xgettext option +
  • -i, msgattrib option +
  • -i, msgcat option +
  • -i, msgcomm option +
  • -i, msgconv option +
  • -i, msgen option +
  • -i, msgexec option +
  • -i, msgfilter option +
  • -i, msggrep option +
  • -i, msginit option +
  • -i, msgmerge option +
  • -i, msgunfmt option +
  • -i, msguniq option +
  • -i, xgettext option +
  • -j, msgfmt option +
  • -J, msggrep option +
  • -j, msgunfmt option +
  • -j, xgettext option +
  • -K, msggrep option +
  • -k, xgettext option +
  • -l, msgfmt option, -l, msgfmt option, -l, msgfmt option +
  • -l, msginit option +
  • -l, msgunfmt option, -l, msgunfmt option, -l, msgunfmt option +
  • -L, xgettext option +
  • -m, msgcmp option +
  • -M, msggrep option +
  • -m, msgmerge option +
  • -M, xgettext option +
  • -m, xgettext option +
  • -n, gettext option +
  • -n, msgattrib option +
  • -n, msgcat option +
  • -N, msgcmp option +
  • -n, msgcomm option +
  • -n, msgfilter option +
  • -N, msggrep option +
  • -N, msgmerge option +
  • -n, msguniq option +
  • -n, xgettext option +
  • -o, msgattrib option +
  • -o, msgcat option +
  • -o, msgcomm option +
  • -o, msgconv option +
  • -o, msgen option +
  • -o, msgfilter option +
  • -o, msgfmt option +
  • -o, msggrep option +
  • -o, msginit option +
  • -o, msgmerge option +
  • -o, msgunfmt option +
  • -o, msguniq option +
  • -o, xgettext option +
  • -P, msgattrib option +
  • -p, msgattrib option +
  • -P, msgcat option +
  • -p, msgcat option +
  • -P, msgcmp option +
  • -P, msgcomm option +
  • -p, msgcomm option +
  • -P, msgconv option +
  • -p, msgconv option +
  • -P, msgen option +
  • -p, msgen option +
  • -P, msgexec option +
  • -P, msgfilter option +
  • -p, msgfilter option +
  • -P, msgfmt option +
  • -p, msggrep option +
  • -P, msggrep option +
  • -P, msginit option +
  • -p, msginit option +
  • -p, msgmerge option +
  • -P, msgmerge option +
  • -p, msgunfmt option +
  • -p, msguniq option +
  • -P, msguniq option +
  • -p, xgettext option +
  • -q, msgmerge option +
  • -r, msgfmt option, -r, msgfmt option +
  • -r, msgunfmt option, -r, msgunfmt option +
  • -s, msgattrib option +
  • -s, msgcat option +
  • -s, msgcomm option +
  • -s, msgconv option +
  • -s, msgen option +
  • -s, msgfilter option +
  • -s, msgmerge option +
  • -s, msgunfmt option +
  • -s, msguniq option +
  • -s, xgettext option +
  • -t, msgcat option +
  • -t, msgconv option +
  • -T, msggrep option +
  • -t, msguniq option +
  • -T, xgettext option +
  • -u, msgcat option +
  • -u, msgcomm option +
  • -U, msgmerge option +
  • -u, msguniq option +
  • -v, envsubst option +
  • -V, envsubst option +
  • -V, gettext option +
  • -V, msgattrib option +
  • -V, msgcat option +
  • -V, msgcmp option +
  • -V, msgcomm option +
  • -V, msgconv option +
  • -V, msgen option +
  • -V, msgexec option +
  • -V, msgfilter option +
  • -V, msgfmt option +
  • -v, msgfmt option +
  • -V, msggrep option +
  • -v, msggrep option +
  • -V, msginit option +
  • -v, msgmerge option +
  • -V, msgmerge option +
  • -v, msgunfmt option +
  • -V, msgunfmt option +
  • -V, msguniq option +
  • -V, ngettext option +
  • -V, xgettext option +
  • -w, msgattrib option +
  • -w, msgcat option +
  • -w, msgcomm option +
  • -w, msgconv option +
  • -w, msgen option +
  • -w, msgfilter option +
  • -w, msggrep option +
  • -w, msginit option +
  • -w, msgmerge option +
  • -w, msgunfmt option +
  • -w, msguniq option +
  • -w, xgettext option +
  • -X, msggrep option +
  • -x, xgettext option
  • diff -Nru gettext-0.17/gettext-tools/doc/gettext_22.html gettext-0.18.1.1/gettext-tools/doc/gettext_22.html --- gettext-0.17/gettext-tools/doc/gettext_22.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_22.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Variable Index @@ -11,7 +11,7 @@


    -

    Variable Index

    +

    Variable Index

    Jump to: @@ -27,36 +27,39 @@

    g

    -
  • GETTEXT_LOG_UNTRANSLATED, environment variable +
  • GETTEXT_LOG_UNTRANSLATED, environment variable
  • l

    -
  • LANG, environment variable, LANG, environment variable -
  • LANGUAGE, environment variable, LANGUAGE, environment variable, LANGUAGE, environment variable -
  • LC_ALL, environment variable, LC_ALL, environment variable -
  • LC_COLLATE, environment variable, LC_COLLATE, environment variable -
  • LC_CTYPE, environment variable, LC_CTYPE, environment variable -
  • LC_MESSAGES, environment variable, LC_MESSAGES, environment variable -
  • LC_MONETARY, environment variable, LC_MONETARY, environment variable -
  • LC_NUMERIC, environment variable, LC_NUMERIC, environment variable -
  • LC_TIME, environment variable, LC_TIME, environment variable -
  • LINGUAS, environment variable +
  • LANG, environment variable, LANG, environment variable +
  • LANGUAGE, environment variable, LANGUAGE, environment variable, LANGUAGE, environment variable +
  • LC_ALL, environment variable, LC_ALL, environment variable +
  • LC_COLLATE, environment variable, LC_COLLATE, environment variable +
  • LC_CTYPE, environment variable, LC_CTYPE, environment variable +
  • LC_MESSAGES, environment variable, LC_MESSAGES, environment variable +
  • LC_MONETARY, environment variable, LC_MONETARY, environment variable +
  • LC_NUMERIC, environment variable, LC_NUMERIC, environment variable +
  • LC_TIME, environment variable, LC_TIME, environment variable +
  • LINGUAS, environment variable
  • m

    -
  • MSGEXEC_LOCATION, environment variable -
  • MSGEXEC_MSGCTXT, environment variable -
  • MSGEXEC_MSGID, environment variable +
  • MSGEXEC_LOCATION, environment variable +
  • MSGEXEC_MSGCTXT, environment variable +
  • MSGEXEC_MSGID, environment variable +
  • MSGFILTER_LOCATION, environment variable +
  • MSGFILTER_MSGCTXT, environment variable +
  • MSGFILTER_MSGID, environment variable
  • p

    -
  • PO_STYLE, environment variable +
  • PO_STYLE, environment variable
  • t

    -
  • TERM, environment variable -
  • TEXTDOMAIN, environment variable -
  • TEXTDOMAINDIR, environment variable +
  • TERM, environment variable +
  • TEXTDOMAIN, environment variable +
  • TEXTDOMAINDIR, environment variable
  • diff -Nru gettext-0.17/gettext-tools/doc/gettext_23.html gettext-0.18.1.1/gettext-tools/doc/gettext_23.html --- gettext-0.17/gettext-tools/doc/gettext_23.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_23.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - PO Mode Index @@ -11,7 +11,7 @@


    -

    PO Mode Index

    +

    PO Mode Index

    Jump to: @@ -41,70 +41,70 @@

    &

    -
  • ‘.emacs’ customizations -
  • ‘TAGS’, and marking translatable strings +
  • ‘.emacs’ customizations +
  • ‘TAGS’, and marking translatable strings
  • a

    -
  • auxiliary PO file +
  • auxiliary PO file
  • c

    -
  • commands -
  • comment out PO file entry -
  • consulting program sources -
  • consulting translations to other languages -
  • current entry of a PO file -
  • cut and paste for translated strings +
  • commands +
  • comment out PO file entry +
  • consulting program sources +
  • consulting translations to other languages +
  • current entry of a PO file +
  • cut and paste for translated strings
  • e

    -
  • editing comments -
  • editing multiple entries -
  • editing translations -
  • etags, using for marking strings -
  • exiting PO subedit +
  • editing comments +
  • editing multiple entries +
  • editing translations +
  • etags, using for marking strings +
  • exiting PO subedit
  • f

    -
  • find source fragment for a PO file entry +
  • find source fragment for a PO file entry
  • i

    -
  • installing PO mode +
  • installing PO mode
  • l

    -
  • looking at the source to aid translation +
  • looking at the source to aid translation
  • m

    -
  • marking strings for translation -
  • moving by fuzzy entries -
  • moving by obsolete entries -
  • moving by translated entries -
  • moving by untranslated entries -
  • moving through a PO file +
  • marking strings for translation +
  • moving by fuzzy entries +
  • moving by obsolete entries +
  • moving by translated entries +
  • moving by untranslated entries +
  • moving through a PO file
  • o

    -
  • obsolete active entry +
  • obsolete active entry
  • p

    -
  • pending subedits +
  • pending subedits
  • s

    -
  • starting a string translation -
  • string normalization in entries -
  • subedit minor mode +
  • starting a string translation +
  • string normalization in entries +
  • subedit minor mode
  • u

    -
  • use the source, Luke -
  • using obsolete translations to make new entries -
  • using translation compendia +
  • use the source, Luke +
  • using obsolete translations to make new entries +
  • using translation compendia
  • diff -Nru gettext-0.17/gettext-tools/doc/gettext_24.html gettext-0.18.1.1/gettext-tools/doc/gettext_24.html --- gettext-0.17/gettext-tools/doc/gettext_24.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_24.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Autoconf Macro Index @@ -11,7 +11,7 @@


    -

    Autoconf Macro Index

    +

    Autoconf Macro Index

    Jump to: @@ -19,13 +19,13 @@

    a

    -
  • AM_GNU_GETTEXT -
  • AM_GNU_GETTEXT_INTL_SUBDIR -
  • AM_GNU_GETTEXT_NEED -
  • AM_GNU_GETTEXT_VERSION -
  • AM_ICONV -
  • AM_PO_SUBDIRS -
  • AM_XGETTEXT_OPTION +
  • AM_GNU_GETTEXT +
  • AM_GNU_GETTEXT_INTL_SUBDIR +
  • AM_GNU_GETTEXT_NEED +
  • AM_GNU_GETTEXT_VERSION +
  • AM_ICONV +
  • AM_PO_SUBDIRS +
  • AM_XGETTEXT_OPTION
  • diff -Nru gettext-0.17/gettext-tools/doc/gettext_25.html gettext-0.18.1.1/gettext-tools/doc/gettext_25.html --- gettext-0.17/gettext-tools/doc/gettext_25.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_25.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - General Index @@ -11,7 +11,7 @@


    -

    General Index

    +

    General Index

    Jump to: @@ -72,432 +72,432 @@

    &

  • ‘ABOUT-NLS’ file -
  • ‘acconfig.h’ file -
  • ‘aclocal.m4’ file -
  • ‘config.h.in’ file -
  • ‘gettext.h’ file -
  • ‘LINGUAS’ file -
  • ‘Makefile.in.in’ extensions -
  • ‘Makevars’ file -
  • ‘mkinstalldirs’ file -
  • ‘POTFILES.in’ file +
  • ‘acconfig.h’ file +
  • ‘aclocal.m4’ file +
  • ‘config.h.in’ file +
  • ‘gettext.h’ file +
  • ‘LINGUAS’ file +
  • ‘Makefile.in.in’ extensions +
  • ‘Makevars’ file +
  • ‘mkinstalldirs’ file +
  • ‘POTFILES.in’ file
  • _

    -
  • _, a macro to mark strings for translation -
  • _nl_msg_cat_cntr +
  • _, a macro to mark strings for translation +
  • _nl_msg_cat_cntr
  • a

    -
  • accumulating translations -
  • adding keywords, xgettext -
  • ambiguities -
  • apply a filter to translations -
  • apply command to all translations in a catalog -
  • Arabic digits -
  • attribute manipulation -
  • attribute, fuzzy -
  • attributes of a PO file entry -
  • attributes, manipulating -
  • autoconf macros for gettext -
  • autopoint program, usage -
  • auxiliary PO file +
  • accumulating translations +
  • adding keywords, xgettext +
  • ambiguities +
  • apply a filter to translations +
  • apply command to all translations in a catalog +
  • Arabic digits +
  • attribute manipulation +
  • attribute, fuzzy +
  • attributes of a PO file entry +
  • attributes, manipulating +
  • autoconf macros for gettext +
  • autopoint program, usage +
  • auxiliary PO file
  • available translations -
  • awk +
  • awk
  • b

    -
  • backup old file, and msgmerge program -
  • bash -
  • bibliography +
  • backup old file, and msgmerge program +
  • bash +
  • bibliography
  • big picture -
  • bind_textdomain_codeset -
  • Boost format strings +
  • bind_textdomain_codeset +
  • Boost format strings
  • bug report address
  • c

    -
  • C and C-like languages -
  • C trigraphs -
  • C# -
  • C# mode, and msgfmt program -
  • C# mode, and msgunfmt program -
  • C# resources mode, and msgfmt program -
  • C# resources mode, and msgunfmt program -
  • C#, string concatenation -
  • catalog encoding and msgexec output -
  • catclose, a catgets function -
  • catgets, X/Open specification -
  • catgets, a catgets function -
  • catopen, a catgets function +
  • C and C-like languages +
  • C trigraphs +
  • C# +
  • C# mode, and msgfmt program +
  • C# mode, and msgunfmt program +
  • C# resources mode, and msgfmt program +
  • C# resources mode, and msgunfmt program +
  • C#, string concatenation +
  • catalog encoding and msgexec output +
  • catclose, a catgets function +
  • catgets, X/Open specification +
  • catgets, a catgets function +
  • catopen, a catgets function
  • character encoding -
  • charset conversion at runtime -
  • charset of PO files -
  • check format strings -
  • checking of translations -
  • clisp -
  • clisp C sources +
  • charset conversion at runtime +
  • charset of PO files +
  • check format strings +
  • checking of translations +
  • clisp +
  • clisp C sources
  • codeset -
  • comments in PO files +
  • comments in PO files
  • comments, automatic
  • comments, extracted
  • comments, translator -
  • Common Lisp -
  • compare PO files -
  • comparison of interfaces -
  • compatibility with X/Open msgfmt -
  • compendium -
  • compendium, creating -
  • concatenate PO files -
  • concatenating PO files into a compendium -
  • concatenation of strings -
  • context -
  • context, argument specification in xgettext -
  • context, in MO files -
  • context, in PO files -
  • control characters -
  • convert binary message catalog into PO file -
  • convert translations to a different encoding -
  • converting a package to use gettext -
  • country codes -
  • create new PO file -
  • creating a new PO file -
  • creating compendia +
  • Common Lisp +
  • compare PO files +
  • comparison of interfaces +
  • compatibility with X/Open msgfmt +
  • compendium +
  • compendium, creating +
  • concatenate PO files +
  • concatenating PO files into a compendium +
  • concatenation of strings +
  • context +
  • context, argument specification in xgettext +
  • context, in MO files +
  • context, in PO files +
  • control characters +
  • convert binary message catalog into PO file +
  • convert translations to a different encoding +
  • converting a package to use gettext +
  • country codes +
  • create new PO file +
  • creating a new PO file +
  • creating compendia
  • currency symbols
  • d

  • date format -
  • dcngettext -
  • dcpgettext -
  • dcpgettext_expr -
  • debugging messages marked as format strings -
  • dialect -
  • disabling NLS -
  • distribution tarball -
  • dngettext -
  • dollar substitution -
  • domain ambiguities -
  • dpgettext -
  • dpgettext_expr -
  • duplicate elimination -
  • duplicate removal +
  • dcngettext +
  • dcpgettext +
  • dcpgettext_expr +
  • debugging messages marked as format strings +
  • dialect +
  • disabling NLS +
  • distribution tarball +
  • dngettext +
  • dollar substitution +
  • domain ambiguities +
  • dpgettext +
  • dpgettext_expr +
  • duplicate elimination +
  • duplicate removal
  • e

    -
  • editing comments in PO files -
  • Editing PO Files -
  • editing translations -
  • Emacs Lisp -
  • Emacs PO Mode +
  • editing comments in PO files +
  • Editing PO Files +
  • editing translations +
  • Emacs Lisp +
  • Emacs PO Mode
  • encoding -
  • encoding conversion -
  • encoding conversion at runtime -
  • encoding for your language -
  • encoding list -
  • encoding of PO files -
  • environment variables -
  • envsubst program, usage -
  • eval_gettext function, usage -
  • eval_ngettext function, usage +
  • encoding conversion +
  • encoding conversion at runtime +
  • encoding for your language +
  • encoding list +
  • encoding of PO files +
  • environment variables +
  • envsubst program, usage +
  • eval_gettext function, usage +
  • eval_ngettext function, usage
  • evolution of packages -
  • extracting parts of a PO file into a compendium +
  • extracting parts of a PO file into a compendium
  • f

    -
  • FDL, GNU Free Documentation License -
  • file format, ‘.mo’ +
  • FDL, GNU Free Documentation License +
  • file format, ‘.mo’
  • file format, ‘.po’
  • files, ‘.po’ and ‘.mo’
  • files, ‘.pot’ -
  • filter messages according to attributes -
  • find common messages -
  • force use of fuzzy entries -
  • format strings -
  • Free Pascal -
  • function attribute, __format__ -
  • function attribute, __format_arg__ -
  • fuzzy entries +
  • filter messages according to attributes +
  • find common messages +
  • force use of fuzzy entries +
  • format strings +
  • Free Pascal +
  • function attribute, __format__ +
  • function attribute, __format_arg__ +
  • fuzzy entries
  • g

    -
  • gawk -
  • GCC-source -
  • generate binary message catalog from PO file -
  • generate translation catalog in English -
  • gettext files -
  • gettext installation -
  • gettext interface -
  • gettext program, usage -
  • gettext, a programmer's view -
  • gettext vs catgets -
  • gettextize program, usage -
  • GNOME PO file editor -
  • GPL, GNU General Public License -
  • GUI programs -
  • guile +
  • gawk +
  • GCC-source +
  • generate binary message catalog from PO file +
  • generate translation catalog in English +
  • gettext files +
  • gettext installation +
  • gettext interface +
  • gettext program, usage +
  • gettext, a programmer's view +
  • gettext vs catgets +
  • gettextize program, usage +
  • GNOME PO file editor +
  • GPL, GNU General Public License +
  • GUI programs +
  • guile
  • h

    -
  • hash table, inside MO files +
  • hash table, inside MO files
  • he, she, and they -
  • header entry of a PO file -
  • help option -
  • history of GNU gettext +
  • header entry of a PO file +
  • help option +
  • history of GNU gettext
  • i

  • i18n -
  • importing PO files -
  • include file ‘libintl.h’, include file ‘libintl.h’, include file ‘libintl.h’, include file ‘libintl.h’ -
  • initialization -
  • initialize new PO file -
  • initialize translations from a compendium -
  • installing gettext -
  • interface to catgets +
  • importing PO files +
  • include file ‘libintl.h’, include file ‘libintl.h’, include file ‘libintl.h’, include file ‘libintl.h’ +
  • initialization +
  • initialize new PO file +
  • initialize translations from a compendium +
  • installing gettext +
  • interface to catgets
  • internationalization -
  • inttypes.h -
  • ISO 3166 -
  • ISO 639 +
  • inttypes.h +
  • ISO 3166 +
  • ISO 639
  • j

    -
  • Java -
  • Java mode, and msgfmt program -
  • Java mode, and msgunfmt program -
  • Java, string concatenation +
  • Java +
  • Java mode, and msgfmt program +
  • Java mode, and msgunfmt program +
  • Java, string concatenation
  • k

    -
  • KDE format strings -
  • KDE PO file editor -
  • keyboard accelerator checking +
  • KDE format strings +
  • KDE PO file editor +
  • keyboard accelerator checking
  • l

  • l10n -
  • language codes +
  • language codes
  • language selection -
  • language selection at runtime -
  • large package -
  • LGPL, GNU Lesser General Public License -
  • libiconv library -
  • libintl for C# -
  • libintl for Java -
  • libintl library -
  • librep Lisp -
  • License, GNU FDL -
  • License, GNU GPL -
  • License, GNU LGPL -
  • Licenses +
  • language selection at runtime +
  • large package +
  • LGPL, GNU Lesser General Public License +
  • libiconv library +
  • libintl for C# +
  • libintl for Java +
  • libintl library +
  • librep Lisp +
  • License, GNU FDL +
  • License, GNU GPL +
  • License, GNU LGPL +
  • Licenses
  • link with ‘libintl’ -
  • Linux, Linux, Linux -
  • Lisp -
  • list of translation teams, where to find +
  • Linux, Linux, Linux +
  • Lisp +
  • list of translation teams, where to find
  • locale categories, locale categories -
  • locale category, LC_ALL -
  • locale category, LC_COLLATE -
  • locale category, LC_CTYPE, locale category, LC_CTYPE, locale category, LC_CTYPE -
  • locale category, LC_MESSAGES, locale category, LC_MESSAGES -
  • locale category, LC_MONETARY, locale category, LC_MONETARY -
  • locale category, LC_NUMERIC, locale category, LC_NUMERIC -
  • locale category, LC_RESPONSES -
  • locale category, LC_TIME, locale category, LC_TIME -
  • locale program +
  • locale category, LC_ALL +
  • locale category, LC_COLLATE +
  • locale category, LC_CTYPE, locale category, LC_CTYPE, locale category, LC_CTYPE +
  • locale category, LC_MESSAGES, locale category, LC_MESSAGES +
  • locale category, LC_MONETARY, locale category, LC_MONETARY +
  • locale category, LC_NUMERIC, locale category, LC_NUMERIC +
  • locale category, LC_RESPONSES +
  • locale category, LC_TIME, locale category, LC_TIME +
  • locale program
  • localization -
  • lookup message translation, lookup message translation -
  • lookup plural message translation, lookup plural message translation +
  • lookup message translation, lookup message translation +
  • lookup plural message translation, lookup plural message translation
  • m

    -
  • magic signature of MO files -
  • manipulating PO files -
  • marking Perl sources -
  • marking string initializers -
  • marking strings that require translation -
  • marking strings, preparations +
  • magic signature of MO files +
  • manipulating PO files +
  • marking Perl sources +
  • marking string initializers +
  • marking strings that require translation +
  • marking strings, preparations
  • marking translatable strings -
  • markup -
  • menu entries -
  • menu, keyboard accelerator support -
  • merge PO files -
  • merging two PO files -
  • message catalog files location +
  • markup +
  • menu entries +
  • menu, keyboard accelerator support +
  • merge PO files +
  • merging two PO files +
  • message catalog files location
  • messages -
  • migration from earlier versions of gettext -
  • mnemonics of menu entries -
  • MO file's format -
  • modify message attributes -
  • msgattrib program, usage -
  • msgcat program, usage -
  • msgcmp program, usage -
  • msgcomm program, usage -
  • msgconv program, usage -
  • msgen program, usage -
  • msgexec program, usage -
  • msgfilter filter and catalog encoding -
  • msgfilter program, usage -
  • msgfmt program, usage -
  • msggrep program, usage -
  • msginit program, usage -
  • msgmerge program, usage -
  • msgunfmt program, usage -
  • msguniq program, usage -
  • multi-line strings +
  • migration from earlier versions of gettext +
  • mnemonics of menu entries +
  • MO file's format +
  • modify message attributes +
  • msgattrib program, usage +
  • msgcat program, usage +
  • msgcmp program, usage +
  • msgcomm program, usage +
  • msgconv program, usage +
  • msgen program, usage +
  • msgexec program, usage +
  • msgfilter filter and catalog encoding +
  • msgfilter program, usage +
  • msgfmt program, usage +
  • msggrep program, usage +
  • msginit program, usage +
  • msgmerge program, usage +
  • msgunfmt program, usage +
  • msguniq program, usage +
  • multi-line strings
  • n

    -
  • N_, a convenience macro +
  • N_, a convenience macro
  • Native Language Support
  • Natural Language Support -
  • newlines in PO files -
  • ngettext -
  • ngettext program, usage +
  • newlines in PO files +
  • ngettext +
  • ngettext program, usage
  • NLS
  • number format
  • o

    -
  • Object Pascal -
  • obsolete entries -
  • optimization of gettext functions -
  • orthography -
  • outdigits -
  • output to stdout, xgettext +
  • Object Pascal +
  • obsolete entries +
  • optimization of gettext functions +
  • orthography +
  • outdigits +
  • output to stdout, xgettext
  • overview of gettext
  • p

    -
  • package and version declaration in ‘configure.ac’ -
  • package build and installation options -
  • package distributor's view of gettext -
  • package installer's view of gettext -
  • package maintainer's view of gettext -
  • paragraphs -
  • Pascal -
  • Perl -
  • Perl default keywords -
  • Perl invalid string interpolation -
  • Perl long lines -
  • Perl parentheses -
  • Perl pitfalls -
  • Perl quote-like expressions -
  • Perl special keywords for hash-lookups -
  • Perl valid string interpolation -
  • pgettext -
  • pgettext_expr -
  • PHP -
  • Pike -
  • plural form formulas -
  • plural forms -
  • plural forms, in MO files -
  • plural forms, in PO files +
  • package and version declaration in ‘configure.ac’ +
  • package build and installation options +
  • package distributor's view of gettext +
  • package installer's view of gettext +
  • package maintainer's view of gettext +
  • paragraphs +
  • Pascal +
  • Perl +
  • Perl default keywords +
  • Perl invalid string interpolation +
  • Perl long lines +
  • Perl parentheses +
  • Perl pitfalls +
  • Perl quote-like expressions +
  • Perl special keywords for hash-lookups +
  • Perl valid string interpolation +
  • pgettext +
  • pgettext_expr +
  • PHP +
  • Pike +
  • plural form formulas +
  • plural forms +
  • plural forms, in MO files +
  • plural forms, in PO files +
  • plural forms, translating
  • PO files' format -
  • PO mode (Emacs) commands -
  • PO template file -
  • po_file_domains -
  • po_file_free -
  • po_file_read -
  • po_message_iterator -
  • po_message_iterator_free -
  • po_message_msgid -
  • po_message_msgid_plural -
  • po_message_msgstr -
  • po_message_msgstr_plural -
  • po_next_message -
  • portability problems with sed -
  • preparing programs for translation -
  • preparing shell scripts for translation -
  • problems with catgets interface -
  • programming languages -
  • Python +
  • PO mode (Emacs) commands +
  • PO template file +
  • po_file_domains +
  • po_file_free +
  • po_file_read +
  • po_message_iterator +
  • po_message_iterator_free +
  • po_message_msgid +
  • po_message_msgid_plural +
  • po_message_msgstr +
  • po_message_msgstr_plural +
  • po_next_message +
  • portability problems with sed +
  • preparing programs for translation +
  • preparing shell scripts for translation +
  • problems with catgets interface +
  • programming languages +
  • Python
  • q

    -
  • Qt format strings -
  • Qt mode, and msgfmt program -
  • quotation marks, quotation marks -
  • quote characters, use in PO files +
  • Qt format strings +
  • Qt mode, and msgfmt program +
  • quotation marks, quotation marks +
  • quote characters, use in PO files
  • r

    -
  • recode-sr-latin program -
  • related reading -
  • release -
  • RST +
  • recode-sr-latin program +
  • related reading +
  • release +
  • RST
  • s

    -
  • Scheme -
  • scripting languages -
  • search messages in a catalog +
  • Scheme +
  • scripting languages +
  • search messages in a catalog
  • selecting message language -
  • sentences -
  • setting up gettext at build time +
  • sentences +
  • setting up gettext at build time
  • setting up gettext at run time -
  • several domains +
  • several domains
  • sex
  • she, he, and they -
  • shell format string -
  • shell scripts -
  • Smalltalk -
  • sorting msgcat output -
  • sorting msgmerge output -
  • sorting msgunfmt output -
  • sorting output of xgettext -
  • specifying plural form in a PO file -
  • standard output, and msgcat -
  • standard output, and msgmerge program -
  • string concatenation -
  • string normalization in entries -
  • style -
  • supported languages, xgettext +
  • shell format string +
  • shell scripts +
  • Smalltalk +
  • sorting msgcat output +
  • sorting msgmerge output +
  • sorting msgunfmt output +
  • sorting output of xgettext +
  • specifying plural form in a PO file +
  • standard output, and msgcat +
  • standard output, and msgmerge program +
  • string concatenation +
  • string normalization in entries +
  • style +
  • supported languages, xgettext
  • t

    -
  • Tcl -
  • Tcl mode, and msgfmt program -
  • Tcl mode, and msgunfmt program +
  • Tcl +
  • Tcl mode, and msgfmt program +
  • Tcl mode, and msgunfmt program
  • template PO file -
  • testing ‘.po’ files for equivalence -
  • Tk's scripting language -
  • translated entries -
  • translating menu entries +
  • testing ‘.po’ files for equivalence +
  • Tk's scripting language +
  • translated entries +
  • translating menu entries
  • translation aspects
  • Translation Matrix
  • Translation Project -
  • turning off NLS support +
  • turning off NLS support
  • tutorial of gettext usage
  • u

    -
  • unify duplicate translations -
  • untranslated entries -
  • update translations from a compendium -
  • upgrading to new versions of gettext +
  • unify duplicate translations +
  • untranslated entries +
  • update translations from a compendium +
  • upgrading to new versions of gettext
  • v

    -
  • version control for backup files, msgmerge +
  • version control for backup files, msgmerge
  • w

    -
  • wxWidgets library +
  • wxWidgets library
  • x

    -
  • xargs, and output from msgexec -
  • xgettext program, usage -
  • xmodmap program, and typing quotation marks +
  • xargs, and output from msgexec +
  • xgettext program, usage +
  • xmodmap program, and typing quotation marks
  • y

    -
  • YaST2 scripting language -
  • YCP +
  • YaST2 scripting language +
  • YCP
  • -


    Go to the first, previous, next, last section, table of contents. diff -Nru gettext-0.17/gettext-tools/doc/gettext_2.html gettext-0.18.1.1/gettext-tools/doc/gettext_2.html --- gettext-0.17/gettext-tools/doc/gettext_2.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_2.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 2 The User's View @@ -126,8 +126,8 @@ ll is an ISO 639 two-letter language code, and CC is an ISO 3166 two-letter country code. For example, for German in Germany, ll is de, and CC is DE. -You find a list of the language codes in appendix section A Language Codes and -a list of the country codes in appendix section B Country Codes. +You find a list of the language codes in appendix section A Language Codes and +a list of the country codes in appendix section B Country Codes.

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_3.html gettext-0.18.1.1/gettext-tools/doc/gettext_3.html --- gettext-0.17/gettext-tools/doc/gettext_3.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_3.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 3 The Format of PO Files @@ -143,17 +143,17 @@ These flags should not be added by a human. Instead only the xgettext program adds them. In an automated PO file processing -system as proposed here the user changes would be thrown away again as +system as proposed here, the user's changes would be thrown away again as soon as the xgettext program generates a new template file. -The c-format flag tells that the untranslated string and the +The c-format flag indicates that the untranslated string and the translation are supposed to be C format strings. The no-c-format -flag tells that they are not C format strings, even though the untranslated +flag indicates that they are not C format strings, even though the untranslated string happens to look like a C format string (with ‘%’ directives). -In case the c-format flag is given for a string the msgfmt -does some more tests to check to validity of the translation. -See section 10.1 Invoking the msgfmt Program, section 4.6 Special Comments preceding Keywords and section 15.3.1 C Format Strings. +When the c-format flag is given for a string the msgfmt +program does some more tests to check the validity of the translation. +See section 10.1 Invoking the msgfmt Program, section 4.6 Special Comments preceding Keywords and section 15.3.1 C Format Strings.

    objc-format
    @@ -161,7 +161,7 @@
    no-objc-format
    -Likewise for Objective C, see section 15.3.2 Objective C Format Strings. +Likewise for Objective C, see section 15.3.2 Objective C Format Strings.
    sh-format
    @@ -169,7 +169,7 @@
    no-sh-format
    -Likewise for Shell, see section 15.3.3 Shell Format Strings. +Likewise for Shell, see section 15.3.3 Shell Format Strings.
    python-format
    @@ -177,7 +177,7 @@
    no-python-format
    -Likewise for Python, see section 15.3.4 Python Format Strings. +Likewise for Python, see section 15.3.4 Python Format Strings.
    lisp-format
    @@ -185,7 +185,7 @@
    no-lisp-format
    -Likewise for Lisp, see section 15.3.5 Lisp Format Strings. +Likewise for Lisp, see section 15.3.5 Lisp Format Strings.
    elisp-format
    @@ -193,7 +193,7 @@
    no-elisp-format
    -Likewise for Emacs Lisp, see section 15.3.6 Emacs Lisp Format Strings. +Likewise for Emacs Lisp, see section 15.3.6 Emacs Lisp Format Strings.
    librep-format
    @@ -201,7 +201,7 @@
    no-librep-format
    -Likewise for librep, see section 15.3.7 librep Format Strings. +Likewise for librep, see section 15.3.7 librep Format Strings.
    scheme-format
    @@ -209,7 +209,7 @@
    no-scheme-format
    -Likewise for Scheme, see section 15.3.8 Scheme Format Strings. +Likewise for Scheme, see section 15.3.8 Scheme Format Strings.
    smalltalk-format
    @@ -217,7 +217,7 @@
    no-smalltalk-format
    -Likewise for Smalltalk, see section 15.3.9 Smalltalk Format Strings. +Likewise for Smalltalk, see section 15.3.9 Smalltalk Format Strings.
    java-format
    @@ -225,7 +225,7 @@
    no-java-format
    -Likewise for Java, see section 15.3.10 Java Format Strings. +Likewise for Java, see section 15.3.10 Java Format Strings.
    csharp-format
    @@ -233,7 +233,7 @@
    no-csharp-format
    -Likewise for C#, see section 15.3.11 C# Format Strings. +Likewise for C#, see section 15.3.11 C# Format Strings.
    awk-format
    @@ -241,7 +241,7 @@
    no-awk-format
    -Likewise for awk, see section 15.3.12 awk Format Strings. +Likewise for awk, see section 15.3.12 awk Format Strings.
    object-pascal-format
    @@ -249,7 +249,7 @@
    no-object-pascal-format
    -Likewise for Object Pascal, see section 15.3.13 Object Pascal Format Strings. +Likewise for Object Pascal, see section 15.3.13 Object Pascal Format Strings.
    ycp-format
    @@ -257,7 +257,7 @@
    no-ycp-format
    -Likewise for YCP, see section 15.3.14 YCP Format Strings. +Likewise for YCP, see section 15.3.14 YCP Format Strings.
    tcl-format
    @@ -265,7 +265,7 @@
    no-tcl-format
    -Likewise for Tcl, see section 15.3.15 Tcl Format Strings. +Likewise for Tcl, see section 15.3.15 Tcl Format Strings.
    perl-format
    @@ -273,7 +273,7 @@
    no-perl-format
    -Likewise for Perl, see section 15.3.16 Perl Format Strings. +Likewise for Perl, see section 15.3.16 Perl Format Strings.
    perl-brace-format
    @@ -281,7 +281,7 @@
    no-perl-brace-format
    -Likewise for Perl brace, see section 15.3.16 Perl Format Strings. +Likewise for Perl brace, see section 15.3.16 Perl Format Strings.
    php-format
    @@ -289,7 +289,7 @@
    no-php-format
    -Likewise for PHP, see section 15.3.17 PHP Format Strings. +Likewise for PHP, see section 15.3.17 PHP Format Strings.
    gcc-internal-format
    @@ -297,37 +297,53 @@
    no-gcc-internal-format
    -Likewise for the GCC sources, see section 15.3.18 GCC internal Format Strings. +Likewise for the GCC sources, see section 15.3.18 GCC internal Format Strings. -
    qt-format +
    gfc-internal-format
    -
    no-qt-format +
    no-gfc-internal-format
    -Likewise for Qt, see section 15.3.19 Qt Format Strings. +Likewise for the GNU Fortran Compiler sources, see section 15.3.19 GFC internal Format Strings. -
    kde-format +
    qt-format
    -
    no-kde-format +
    no-qt-format
    -Likewise for KDE, see section 15.3.20 KDE Format Strings. +Likewise for Qt, see section 15.3.20 Qt Format Strings. -
    boost-format +
    qt-plural-format
    -
    no-boost-format +
    no-qt-plural-format
    -Likewise for Boost, see section 15.3.21 Boost Format Strings. +Likewise for Qt plural forms, see section 15.3.21 Qt Format Strings. + +
    kde-format +
    + +
    no-kde-format +
    + +Likewise for KDE, see section 15.3.22 KDE Format Strings. + +
    boost-format +
    + +
    no-boost-format +
    + +Likewise for Boost, see section 15.3.23 Boost Format Strings.
  • - - + + It is also possible to have entries with a context specifier. They look like this: @@ -355,8 +371,8 @@

    - - + + A different kind of entries is used for translations which involve plural forms. @@ -397,6 +413,22 @@

    +Here, additional kinds of flags can be used: + +

    +
    + +
    range: +
    + +This flag is followed by a range of non-negative numbers, using the syntax +range: minimum-value..maximum-value. It designates the +possible values that the numeric parameter of the message can take. In some +languages, translators may produce slightly better translations if they know +that the value can only take on values between 0 and 10, for example. +
    + +

    The previous-untranslated-string is optionally inserted by the msgmerge program, at the same time when it marks a message fuzzy. It helps the translator to see which changes were done by the developers @@ -452,7 +484,7 @@

    - + One should carefully distinguish between end of lines marked as ‘\n’ inside quotes, which are part of the represented string, and end of lines in the PO file itself, outside string quotes, @@ -460,7 +492,7 @@

    - + Outside strings, white lines and comments may be used freely. Comments start at the beginning of a line with ‘#’ and extend until the end of the PO file line. Comments written by translators diff -Nru gettext-0.17/gettext-tools/doc/gettext_4.html gettext-0.18.1.1/gettext-tools/doc/gettext_4.html --- gettext-0.17/gettext-tools/doc/gettext_4.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_4.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 4 Preparing Program Sources @@ -13,7 +13,7 @@

    4 Preparing Program Sources

    - +

    @@ -35,12 +35,12 @@

    Presuming that your set of programs, or package, has been adjusted so all needed GNU gettext files are available, and your -‘Makefile’ files are adjusted (see section 13 The Maintainer's View), each C module +‘Makefile’ files are adjusted (see section 13 The Maintainer's View), each C module having translated C strings should contain the line:

    - +

     #include <libintl.h>
    @@ -62,7 +62,7 @@
     

    4.2 Triggering gettext Operations

    - + The initialization of locale data should be done with more or less the same code in every program, as demonstrated below: @@ -87,8 +87,8 @@

    - - + + The use of LC_ALL might not be appropriate for you. LC_ALL includes all locale categories and especially LC_CTYPE. This latter category is responsible for determining @@ -129,13 +129,13 @@

    - - - - - + + + + + On all POSIX conformant systems the locale categories LC_CTYPE, LC_MESSAGES, LC_COLLATE, LC_MONETARY, LC_NUMERIC, and LC_TIME are available. On some systems @@ -170,7 +170,7 @@

    4.3 Preparing Translatable Strings

    - + Before strings can be marked for translations, they sometimes need to be adjusted. Usually preparing a string for translation is done right before marking it, during the marking phase which is described in the @@ -206,7 +206,7 @@

    - + Translatable strings should be in good English style. If slang language with abbreviations and shortcuts is used, often translators will not understand the message and will produce very inappropriate translations. @@ -235,13 +235,13 @@

    - + In both cases, adding more words to the message will help both the translator and the English speaking user.

    - + Translatable strings should be entire sentences. It is often not possible to translate single verbs or adjectives in a substitutable way. @@ -327,7 +327,7 @@

    - + Translatable strings should be limited to one paragraph; don't let a single message be longer than ten lines. The reason is that when the translatable string changes, the translator is faced with the task of @@ -338,7 +338,7 @@

    - + Many GNU programs have a ‘--help’ output that extends over several screen pages. It is a courtesy towards the translators to split such a message into several ones of five to ten lines each. While doing that, @@ -349,8 +349,8 @@

    - - + + Hardcoded string concatenation is sometimes used to construct English strings: @@ -377,7 +377,7 @@

    - + A similar case is compile time concatenation of strings. The ISO C 99 include file <inttypes.h> contains a macro PRId64 that can be used as a formatting directive for outputting an ‘int64_t’ @@ -431,8 +431,8 @@

    - - + + All this applies to other programming languages as well. For example, in Java and C#, string concatenation is very frequently used, because it is a compiler built-in operator. Like in C, in Java, you would change @@ -474,8 +474,8 @@

    - - + + Unusual markup or control characters should not be used in translatable strings. Translators will likely not understand the particular meaning of the markup or control characters. @@ -511,7 +511,7 @@

    4.4 How Marks Appear in Sources

    - +

    @@ -562,7 +562,7 @@

    - + Many packages use ‘_’ (a simple underline) as a keyword, and write ‘_("Translatable string")’ instead of ‘gettext ("Translatable string")’. Further, the coding rule, from GNU standards, @@ -592,7 +592,9 @@ that take it at another argument position. It is even possible to make the marked argument position depend on the total number of arguments of the function call; this is useful in C++. All this is achieved using -xgettext's ‘--keyword’ option. +xgettext's ‘--keyword’ option. How to pass such an option +to xgettext, assuming that gettextize is used, is described +in section 13.4.3 ‘Makevars’ in ‘po/’ and section 13.5.6 AM_XGETTEXT_OPTION in ‘po.m4’.

    @@ -616,7 +618,7 @@

    4.5 Marking Translatable Strings

    - +

    @@ -633,7 +635,7 @@

    - + The set of program sources, targeted by the PO mode commands describe here, should have an Emacs tags table constructed for your project, prior to using these PO file commands. This is easy to do. In any @@ -655,7 +657,7 @@

    - + For packages following the GNU coding standards, there is a make goal tags or TAGS which constructs the tag files in all directories and for all files containing source code. @@ -675,18 +677,18 @@

    ,
    - + Search through program sources for a string which looks like a candidate for translation (po-tags-search).
    M-,
    - + Mark the last string found with ‘_()’ (po-mark-translatable).
    M-.
    - + Mark the last string found with a keyword taken from a set of possible keywords. This command with a prefix allows some management of these keywords (po-select-mark-and-mark). @@ -694,7 +696,7 @@

    - + The , (po-tags-search) command searches for the next occurrence of a string which looks like a possible candidate for translation, and displays the program source in another Emacs window, @@ -746,8 +748,8 @@

    - - + + The M-, (po-mark-translatable) command will mark the recently found string with the ‘_’ keyword. The M-. (po-select-mark-and-mark) command will request that you type @@ -808,7 +810,7 @@

    4.6 Special Comments preceding Keywords

    - + In C programs strings are often used within calls of functions from the printf family. The special thing about these format strings is that they can contain format specifiers introduced with %. Assume @@ -876,8 +878,8 @@

    - - + + The careful reader now might say that this again can cause problems. The heuristic might guess it wrong. This is true and therefore xgettext knows about a special kind of comment which lets @@ -923,7 +925,7 @@

    4.7 Special Cases of Translatable Strings

    - + The attentive reader might now point out that it is not always possible to mark translatable string with gettext or something like this. Consider the following case: @@ -1106,7 +1108,8 @@

    As a programmer, you should therefore make sure that names are marked for translation, with a special comment telling the translators that it -is a proper name and how to pronounce it. Like this: +is a proper name and how to pronounce it. In its simple form, it looks +like this:

    @@ -1121,16 +1124,51 @@

    +The GNU gnulib library offers a module ‘propername’ +(http://www.gnu.org/software/gnulib/MODULES.html#module=propername) +which takes care to automatically append the original name, in parentheses, +to the translated name. For names that cannot be written in ASCII, it +also frees the translator from the task of entering the appropriate non-ASCII +characters if no script change is needed. In this more comfortable form, +it looks like this: + +

    + +
    +printf (_("Written by %s and %s.\n"),
    +        proper_name ("Ulrich Drepper"),
    +        /* TRANSLATORS: This is a proper name.  See the gettext
    +           manual, section Names.  Note this is actually a non-ASCII
    +           name: The first name is (with Unicode escapes)
    +           "Fran\u00e7ois" or (with HTML entities) "Fran&ccedil;ois".
    +           Pronunciation is like "fraa-swa pee-nar".  */
    +        proper_name_utf8 ("Francois Pinard", "Fran\303\247ois Pinard"));
    +
    + +

    +You can also write the original name directly in Unicode (rather than with +Unicode escapes or HTML entities) and denote the pronunciation using the +International Phonetic Alphabet (see +http://www.wikipedia.org/wiki/International_Phonetic_Alphabet). + +

    +

    As a translator, you should use some care when translating names, because -it is frustrating if people see their names mutilated or distorted. If -your language uses the Latin script, all you need to do is to reproduce +it is frustrating if people see their names mutilated or distorted. + +

    +

    +If your language uses the Latin script, all you need to do is to reproduce the name as perfectly as you can within the usual character set of your language. In this particular case, this means to provide a translation containing the c-cedilla character. If your language uses a different script and the people speaking it don't usually read Latin words, it means -transliteration; but you should still give, in parentheses, the original -writing of the name -- for the sake of the people that do read the Latin -script. Here is an example, using Greek as the target script: +transliteration. If the programmer used the simple case, you should still +give, in parentheses, the original writing of the name -- for the sake of +the people that do read the Latin script. If the programmer used the +‘propername’ module mentioned above, you don't need to give the original +writing of the name in parentheses, because the program will already do so. +Here is an example, using Greek as the target script:

    @@ -1150,23 +1188,6 @@ idea to test your translation before submitting it.

    -

    -The translation project http://sourceforge.net/projects/translation -has set up a POT file and translation domain consisting of program author -names, with better facilities for the translator than those presented here. -Namely, there the original name is written directly in Unicode (rather -than with Unicode escapes or HTML entities), and the pronunciation is -denoted using the International Phonetic Alphabet (see -http://www.wikipedia.org/wiki/International_Phonetic_Alphabet). - -

    -

    -However, we don't recommend this approach for all POT files in all packages, -because this would force translators to use PO files in UTF-8 encoding, -which is - in the current state of software (as of 2003) - a major hassle -for translators using GNU Emacs or XEmacs with po-mode. - -

    4.10 Preparing Library Sources

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_5.html gettext-0.18.1.1/gettext-tools/doc/gettext_5.html --- gettext-0.17/gettext-tools/doc/gettext_5.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_5.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 5 Making the PO Template File @@ -13,7 +13,7 @@

    5 Making the PO Template File

    - +

    @@ -36,8 +36,8 @@

    5.1 Invoking the xgettext Program

    - - + +

     xgettext [option] [inputfile] ...
    @@ -62,8 +62,8 @@
     
    ‘--files-from=file
    - - + + Read the names of the input files from file instead of getting them from the command line. @@ -71,8 +71,8 @@
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -93,16 +93,16 @@
    ‘--default-domain=name
    - - + + Use name.po’ for output (instead of ‘messages.po’).
    ‘-o file
    ‘--output=file
    - - + + Write output to specified file (instead of name.po’ or ‘messages.po’). @@ -110,14 +110,14 @@
    ‘--output-dir=dir
    - - + + Output files will be placed in directory dir.

    - + If the output file is ‘-’ or ‘/dev/stdout’, the output is written to standard output. @@ -132,9 +132,9 @@

    ‘--language=name
    - - - + + + Specifies the language of the input files. The supported languages are C, C++, ObjectiveC, PO, Python, Lisp, EmacsLisp, librep, Scheme, Smalltalk, @@ -146,8 +146,8 @@
    ‘--c++’
    - - + + This is a shorthand for --language=C++. @@ -165,7 +165,7 @@
    ‘--from-code=name
    - + Specifies the encoding of the input files. This option is needed only if some untranslated message strings or their corresponding comments contain non-ASCII characters. Note that Tcl and Glade input files are @@ -187,27 +187,28 @@
    ‘--join-existing’
    - - + + Join messages with existing file.
    ‘-x file
    ‘--exclude-file=file
    - - + + Entries from file are not extracted. file should be a PO or POT file. -
    ‘-c [tag]’ +
    ‘-c[tag]’
    ‘--add-comments[=tag]’
    - - -Place comment block with tag (or those preceding keyword lines) -in output file. + + +Place comment blocks starting with tag and preceding keyword lines +in the output file. Without a tag, the option means to put all +comment blocks preceding keyword lines in the output file. @@ -221,25 +222,25 @@
    ‘--extract-all’
    - - + + Extract all strings. This option has an effect with most languages, namely C, C++, ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade. -
    ‘-k keywordspec +
    ‘-k[keywordspec]’
    ‘--keyword[=keywordspec]’
    - - -Additional keyword to be looked for (without keywordspec means not to -use default keywords). + + +Specify keywordspec as an additional keyword to be looked for. +Without a keywordspec, the option means to not use default keywords. - - + + If keywordspec is a C identifier id, xgettext looks for strings in the first argument of each call to the function or macro id. If keywordspec is of the form @@ -361,13 +362,13 @@
    ‘--flag=word:arg:flag
    - + Specifies additional flags for strings occurring as part of the argth argument of the function word. The possible flags are the possible format string indicators, such as ‘c-format’, and their negations, such as ‘no-c-format’, possibly prefixed with ‘pass-’.
    - + The meaning of --flag=function:arg:lang-format is that in language lang, the specified function expects as argth argument a format string. (For those of you familiar with @@ -385,7 +386,7 @@ translators cannot accidentally use format string directives that would lead to a crash at runtime.
    - + The meaning of --flag=function:arg:pass-lang-format is that in language lang, if the function call occurs in a position that must yield a format string, then its argth argument @@ -412,41 +413,41 @@
    ‘--trigraphs’
    - - - + + + Understand ANSI C trigraphs for input.
    This option has an effect only with the languages C, C++, ObjectiveC.
    ‘--qt’
    - - + + Recognize Qt format strings.
    This option has an effect only with the language C++.
    ‘--kde’
    - - + + Recognize KDE 4 format strings.
    This option has an effect only with the language C++.
    ‘--boost’
    - - + + Recognize Boost format strings.
    This option has an effect only with the language C++.
    ‘--debug’
    - - + + Use the flags c-format and possible-c-format to show who was responsible for marking a message as a format string. The latter form is used if the xgettext program decided, the format form is used if @@ -469,22 +470,36 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if no message is defined.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines. Note that using this option makes it harder for technically skilled translators to understand each message's context. @@ -493,27 +508,27 @@
    ‘--add-location’
    - - + + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions.
    ‘--properties-output’
    - + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -521,15 +536,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -538,9 +553,9 @@
    ‘--sort-output’
    - - - + + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -548,16 +563,16 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    ‘--omit-header’
    - + Don't write header with ‘msgid ""’ entry. - + This is useful for testing purposes because it eliminates a source of variance for generated .gmo files. With --omit-header, two invocations of xgettext on the same files with the same @@ -568,7 +583,7 @@
    ‘--copyright-holder=string
    - + Set the copyright holder in the output. string should be the copyright holder of the surrounding package. (Note that the msgstr strings, extracted from the package's sources, belong to the copyright @@ -584,25 +599,25 @@
    ‘--foreign-user’
    - + Omit FSF copyright in output. This option is equivalent to ‘--copyright-holder=”’. It can be useful for packages outside the GNU project that want their translations to be in the public domain.
    ‘--package-name=package
    - + Set the package name in the header of the output.
    ‘--package-version=version
    - + Set the package version in the header of the output. This option has an effect only if the ‘--package-name’ option is also used.
    ‘--msgid-bugs-address=email@address
    - + Set the reporting address for msgid bugs. This is the email address or URL to which the translators shall report bugs in the untranslated strings: @@ -632,21 +647,21 @@ The default value is empty, which means that translators will be clueless! Don't forget to specify this option. -
    ‘-m [string]’ +
    ‘-m[string]’
    ‘--msgstr-prefix[=string]’
    - - -Use string (or "" if not specified) as prefix for msgstr entries. + + +Use string (or "" if not specified) as prefix for msgstr values. -
    ‘-M [string]’ +
    ‘-M[string]’
    ‘--msgstr-suffix[=string]’
    - - -Use string (or "" if not specified) as suffix for msgstr entries. + + +Use string (or "" if not specified) as suffix for msgstr values.
    @@ -660,16 +675,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. diff -Nru gettext-0.17/gettext-tools/doc/gettext_6.html gettext-0.18.1.1/gettext-tools/doc/gettext_6.html --- gettext-0.17/gettext-tools/doc/gettext_6.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_6.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 6 Creating a New PO File @@ -13,7 +13,7 @@

    6 Creating a New PO File

    - +

    @@ -48,16 +48,16 @@

    6.1 Invoking the msginit Program

    - - + +

     msginit [option]
     

    - - + + The msginit program creates a new PO file, initializing the meta information with values from the user's environment. @@ -72,8 +72,8 @@

    ‘--input=inputfile
    - - + + Input POT file. @@ -93,8 +93,8 @@
    ‘--output-file=file
    - - + + Write output to specified PO file. @@ -115,14 +115,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -138,31 +138,45 @@
    ‘--locale=ll_CC
    - - + + Set target locale. ll should be a language code, and CC should be a country code. The command ‘locale -a’ can be used to output a list of all installed locales. The default is the user's locale setting.
    ‘--no-translator’
    - + Declares that the PO file will not have a human translator and is instead automatically generated. +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘-p’
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -170,15 +184,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -195,16 +209,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -213,7 +227,7 @@

    6.2 Filling in the Header Entry

    - +

    @@ -283,22 +297,79 @@ your translation team, not only to make sure you don't do duplicated work, but also to coordinate difficult linguistic issues. - + In the Free Translation Project, each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, http://translationproject.org/, in the "Teams" area. +

    Language +
    +Fill in the language code of the language. This can be in one of three +forms: + + +
      +
    • + +ll, an ISO 639 two-letter language code (lowercase). +See section A Language Codes for the list of codes. + +
    • + +ll_CC, where ll is an ISO 639 two-letter +language code (lowercase) and CC is an ISO 3166 two-letter +country code (uppercase). The country code specification is not redundant: +Some languages have dialects in different countries. For example, +‘de_AT’ is used for Austria, and ‘pt_BR’ for Brazil. The country +code serves to distinguish the dialects. See section A Language Codes and +section B Country Codes for the lists of codes. + +
    • + +ll_CC@variant, where ll is an +ISO 639 two-letter language code (lowercase), CC is an +ISO 3166 two-letter country code (uppercase), and variant is +a variant designator. The variant designator (lowercase) can be a script +designator, such as ‘latin’ or ‘cyrillic’. +
    + +The naming convention ll_CC is also the way locales are +named on systems based on GNU libc. But there are three important differences: + + +
      +
    • + +In this PO file field, but not in locale names, ll_CC +combinations denoting a language's main dialect are abbreviated as +ll. For example, ‘de’ is equivalent to ‘de_DE’ +(German as spoken in Germany), and ‘pt’ to ‘pt_PT’ (Portuguese as +spoken in Portugal) in this context. + +
    • + +In this PO file field, suffixes like ‘.encoding are not used. + +
    • + +In this PO file field, variant designators that are not relevant to message +translation, such as ‘@euro’, are not used. +
    + +So, if your locale name is ‘de_DE.UTF-8’, the language specification in +PO files is just ‘de’. +
    Content-Type
    - - + + Replace ‘CHARSET’ with the character encoding used for your language, in your locale, or UTF-8. This field is needed for correct operation of the msgmerge and msgfmt programs, as well as for users whose locale's character encoding differs from yours (see section 11.2.4 How to specify the output character set gettext uses). - + You get the character encoding of your locale by running the shell command ‘locale charmap’. If the result is ‘C’ or ‘ANSI_X3.4-1968’, which is equivalent to ‘ASCII’ (= ‘US-ASCII’), it means that your @@ -306,7 +377,7 @@ team which charset to use. ‘ASCII’ is not usable for any language except Latin. - + Because the PO files must be portable to operating systems with less advanced internationalization facilities, the character encodings that can be used are limited to those supported by both GNU libc and GNU @@ -323,11 +394,11 @@ BIG5, BIG5-HKSCS, GBK, GB18030, SHIFT_JIS, JOHAB, TIS-620, VISCII, GEORGIAN-PS, UTF-8. - + In the GNU system, the following encodings are frequently used for the corresponding languages. - +
    • ISO-8859-1 for @@ -367,7 +438,7 @@
    • KOI8-T for Tajik, -
    • CP1251 for Bulgarian, Byelorussian, +
    • CP1251 for Bulgarian, Belarusian,
    • GB2312, GBK, GB18030 @@ -387,8 +458,8 @@
    - - + + When single quote characters or double quote characters are used in translations for your language, and your locale's encoding is one of the ISO-8859-* charsets, it is best if you create your PO files in UTF-8 @@ -400,7 +471,7 @@ vertical apostrophe and the vertical double quote instead (because that's what the character set conversion will transliterate them to). - + To enter such quote characters under X11, you can change your keyboard mapping using the xmodmap program. The X11 names of the quote characters are "leftsinglequotemark", "rightsinglequotemark", @@ -422,7 +493,8 @@
    This field is optional. It is only needed if the PO file has plural forms. You can find them by searching for the ‘msgid_plural’ keyword. The -format of the plural forms field is described in section 11.2.6 Additional functions for plural forms. +format of the plural forms field is described in section 11.2.6 Additional functions for plural forms and +section 12.6 Translating plural forms.


    diff -Nru gettext-0.17/gettext-tools/doc/gettext_7.html gettext-0.18.1.1/gettext-tools/doc/gettext_7.html --- gettext-0.17/gettext-tools/doc/gettext_7.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_7.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 7 Updating Existing PO Files @@ -18,8 +18,8 @@

    7.1 Invoking the msgmerge Program

    - - + +

     msgmerge [option] def.po ref.pot
    @@ -56,8 +56,8 @@
     
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -66,8 +66,8 @@
    ‘--compendium=file
    - - + + Specify an additional library of message translations. See section 8.4 Using Translation Compendia. This option may be specified more than once. @@ -83,8 +83,8 @@
    ‘--update’
    - - + + Update def.po. Do nothing if def.po is already up to date. @@ -99,14 +99,14 @@
    ‘--output-file=file
    - - + + Write output to specified file.

    - + The results are written to standard output if no output file is specified or if it is ‘-’. @@ -123,19 +123,19 @@

    ‘--backup=control
    - - + + Make a backup of def.po
    ‘--suffix=suffix
    - + Override the usual backup suffix.

    - + The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values: @@ -185,22 +185,22 @@

    ‘--multi-domain’
    - - + + Apply ref.pot to each of the domains in def.po.
    ‘-N’
    ‘--no-fuzzy-matching’
    - - + + Do not use fuzzy matching when an exact match is not found. This may speed up the operation considerably.
    ‘--previous’
    - + Keep the previous msgids of translated messages, marked with ‘#|’, when adding the fuzzy marker to such messages. @@ -215,14 +215,14 @@
    ‘--properties-input’
    - - + + Assume the input files are Java ResourceBundles in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input files are NeXTstep/GNUstep localized resource files in .strings syntax, not in PO file syntax. @@ -234,32 +234,55 @@
    +
    ‘--lang=catalogname +
    + +Specify the ‘Language’ field to be used in the header entry. See +section 6.2 Filling in the Header Entry for the meaning of this field. Note: The +‘Language-Team’ and ‘Plural-Forms’ fields are left unchanged. +If this option is not specified, the ‘Language’ field is inferred, as +best as possible, from the ‘Language-Team’ field. + +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘--add-location’
    - + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -268,15 +291,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -284,15 +307,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -301,9 +324,9 @@
    ‘--sort-output’
    - - - + + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -311,8 +334,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    @@ -327,24 +350,24 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit.
    ‘-v’
    ‘--verbose’
    - - + + Increase verbosity level.
    ‘-q’ @@ -353,9 +376,9 @@
    ‘--silent’
    - - - + + + Suppress progress indicators. diff -Nru gettext-0.17/gettext-tools/doc/gettext_8.html gettext-0.18.1.1/gettext-tools/doc/gettext_8.html --- gettext-0.17/gettext-tools/doc/gettext_8.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_8.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 8 Editing PO Files @@ -13,7 +13,7 @@

    8 Editing PO Files

    - +

    @@ -21,21 +21,21 @@

    8.1 KDE's PO File Editor

    - +

    8.2 GNOME's PO File Editor

    - +

    8.3 Emacs's PO File Editor

    - +

    @@ -64,8 +64,8 @@

    8.3.1 Completing GNU gettext Installation

    - - + + Once you have received, unpacked, configured and compiled the GNU gettext distribution, the ‘make install’ command puts in place the programs xgettext, msgfmt, gettext, and @@ -75,8 +75,8 @@

    - - + + During the installation of the PO mode, you might want to modify your file ‘.emacs’, once and for all, so it contains a few lines looking like: @@ -126,8 +126,8 @@

    8.3.2 Main PO mode Commands

    - - + + After setting up Emacs with something similar to the lines in section 8.3.1 Completing GNU gettext Installation, PO mode is activated for a window when Emacs finds a PO file in that window. This puts the window read-only and establishes a @@ -159,49 +159,49 @@

    _
    - + Undo last modification to the PO file (po-undo).
    Q
    - + Quit processing and save the PO file (po-quit).
    q
    - + Quit processing, possibly after confirmation (po-confirm-and-quit).
    0
    - + Temporary leave the PO file window (po-other-window).
    ?
    h
    - - + + Show help about PO mode (po-help).
    =
    - + Give some PO file statistics (po-statistics).
    V
    - + Batch validate the format of the whole PO file (po-validate).

    - - + + The command _ (po-undo) interfaces to the Emacs -undo facility. See section ‘Undoing Changes’ in The Emacs Editor. Each time U is typed, modifications which the translator +undo facility. See section ‘Undoing Changes’ in The Emacs Editor. Each time _ is typed, modifications which the translator did to the PO file are undone a little more. For the purpose of undoing, each PO mode command is atomic. This is especially true for the RET command: the whole edition made by using a single @@ -211,10 +211,10 @@

    - - - - + + + + The commands Q (po-quit) and q (po-confirm-and-quit) are used when the translator is done with the PO file. The former is a bit less verbose than the latter. If the file @@ -227,8 +227,8 @@

    - - + + The command 0 (po-other-window) is another, softer way, to leave PO mode, temporarily. It just moves the cursor to some other Emacs window, and pops one if necessary. For example, if the translator @@ -242,9 +242,9 @@

    - - - + + + The command h (po-help) displays a summary of all available PO mode commands. The translator should then type any character to resume normal PO mode operations. The command ? has the same effect @@ -252,8 +252,8 @@

    - - + + The command = (po-statistics) computes the total number of entries in the PO file, the ordinal of the current entry (counted from 1), the number of untranslated entries, the number of obsolete entries, @@ -261,8 +261,8 @@

    - - + + The command V (po-validate) launches msgfmt in checking and verbose mode over the current PO file. This command first offers to save the @@ -273,7 +273,7 @@

    - + The program msgfmt runs asynchronously with Emacs, so the translator regains control immediately while her PO file is being studied. Error output is collected in the Emacs ‘*compilation*’ buffer, @@ -289,7 +289,7 @@

    8.3.3 Entry Positioning

    - + The cursor in a PO file window is almost always part of an entry. The only exceptions are the special case when the cursor is after the last entry in the file, or when the PO file is @@ -300,7 +300,7 @@

    - + Some PO mode commands alter the position of the cursor in a specialized way. A few of those special purpose positioning are described here, the others are described in following sections (for a complete list try @@ -311,51 +311,51 @@

    .
    - + Redisplay the current entry (po-current-entry).
    n
    - + Select the entry after the current one (po-next-entry).
    p
    - + Select the entry before the current one (po-previous-entry).
    <
    - + Select the first entry in the PO file (po-first-entry).
    >
    - + Select the last entry in the PO file (po-last-entry).
    m
    - + Record the location of the current entry for later use (po-push-location).
    r
    - + Return to a previously saved entry location (po-pop-location).
    x
    - + Exchange the current entry location with the previously saved one (po-exchange-location).

    - - + + Any Emacs command able to reposition the cursor may be used to select the current entry in PO mode, including commands which move by characters, lines, paragraphs, screens or pages, and search @@ -384,10 +384,10 @@

    - - - - + + + + The commands n (po-next-entry) and p (po-previous-entry) move the cursor the entry following, or preceding, the current one. If n is given while the @@ -396,10 +396,10 @@

    - - - - + + + + The commands < (po-first-entry) and > (po-last-entry) move the cursor to the first entry, or last entry, of the PO file. When the cursor is located past the last @@ -422,10 +422,10 @@

    - - - - + + + + PO mode offers another approach, by which cursor locations may be saved onto a special stack. The command m (po-push-location) merely adds the location of current entry to the stack, pushing @@ -445,8 +445,8 @@

    - - + + The command x (po-exchange-location) simultaneously repositions the cursor to the entry associated with the top element of the stack of saved locations, and replaces that top element with the @@ -461,7 +461,7 @@

    8.3.4 Normalizing Strings in Entries

    - +

    @@ -495,12 +495,12 @@

    - +

    M-x po-normalize
    - + Tidy the whole PO file by making entries more uniform.
    @@ -532,7 +532,7 @@

    - + Having such an explicit normalizing command allows for importing PO files from other sources, but also eases the evolution of the current convention, evolution driven mostly by aesthetic concerns, as of now. @@ -545,7 +545,7 @@

    - + Right now, in PO mode, strings are single line or multi-line. A string goes multi-line if and only if it has embedded newlines, that is, if it matches ‘[^\n]\n+[^\n]’. So, we would have: @@ -598,7 +598,7 @@

    8.3.5 Translated Entries

    - +

    @@ -610,7 +610,7 @@

    - + Some commands are more specifically related to translated entry processing.

    @@ -618,21 +618,21 @@
    t
    - + Find the next translated entry (po-next-translated-entry).
    T
    - + Find the previous translated entry (po-previous-translated-entry).

    - - - - + + + + The commands t (po-next-translated-entry) and T (po-previous-translated-entry) move forwards or backwards, chasing for an translated entry. If none is found, the search is extended and @@ -640,7 +640,7 @@

    - + Translated entries usually result from the translator having edited in a translation for them, section 8.3.9 Modifying Translations. However, if the variable po-auto-fuzzy-on-edit is not nil, the entry having @@ -653,12 +653,12 @@

    8.3.6 Fuzzy Entries

    - +

    - - + + Each PO file entry may have a set of attributes, which are qualities given a name and explicitly associated with the translation, using a special system comment. One of these attributes @@ -681,7 +681,7 @@

    - + Also, the translator may decide herself to mark an entry as fuzzy for her own convenience, when she wants to remember that the entry has to be later revisited. So, some commands are more specifically @@ -690,38 +690,38 @@

    -
    z +
    f
    - + Find the next fuzzy entry (po-next-fuzzy-entry). -
    Z +
    F
    - + Find the previous fuzzy entry (po-previous-fuzzy-entry).
    TAB
    - + Remove the fuzzy attribute of the current entry (po-unfuzzy).

    - - - - -The commands z (po-next-fuzzy-entry) and Z + + + + +The commands f (po-next-fuzzy-entry) and F (po-previous-fuzzy-entry) move forwards or backwards, chasing for a fuzzy entry. If none is found, the search is extended and wraps around in the PO file buffer.

    - - - + + + The command TAB (po-unfuzzy) removes the fuzzy attribute associated with an entry, usually leaving it translated. Further, if the variable po-auto-select-on-unfuzzy has not @@ -743,8 +743,8 @@

    - - + + The translator may also use the DEL command (po-fade-out-entry) over any translated entry to mark it as being fuzzy, when she wants to easily leave a trace she wants to later return @@ -761,7 +761,7 @@

    8.3.7 Untranslated Entries

    - +

    @@ -781,7 +781,7 @@

    - + The work of the translator might be (quite naively) seen as the process of seeking for an untranslated entry, editing a translation for it, and repeating these actions until no untranslated entries remain. @@ -793,26 +793,26 @@

    u
    - + Find the next untranslated entry (po-next-untranslated-entry).
    U
    - + Find the previous untranslated entry (po-previous-untransted-entry).
    k
    - + Turn the current entry into an untranslated one (po-kill-msgstr).

    - - - - + + + + The commands u (po-next-untranslated-entry) and U (po-previous-untransted-entry) move forwards or backwards, chasing for an untranslated entry. If none is found, the search is @@ -820,8 +820,8 @@

    - - + + An entry can be turned back into an untranslated entry by merely emptying its translation, using the command k (po-kill-msgstr). See section 8.3.9 Modifying Translations. @@ -837,7 +837,7 @@

    8.3.8 Obsolete Entries

    - +

    @@ -863,7 +863,7 @@

    - + Moreover, some commands are more specifically related to obsolete entry processing. @@ -872,27 +872,27 @@

    o
    - + Find the next obsolete entry (po-next-obsolete-entry).
    O
    - + Find the previous obsolete entry (po-previous-obsolete-entry).
    DEL
    - + Make an active entry obsolete, or zap out an obsolete entry (po-fade-out-entry).

    - - - - + + + + The commands o (po-next-obsolete-entry) and O (po-previous-obsolete-entry) move forwards or backwards, chasing for an obsolete entry. If none is found, the search is @@ -908,10 +908,10 @@

    - - - - + + + + However, it is possible to comment out an active entry, so making it obsolete. GNU gettext utilities will later react to the disappearance of a translation by using the untranslated string. @@ -941,8 +941,8 @@

    8.3.9 Modifying Translations

    - - + +

    @@ -968,40 +968,40 @@

    RET
    - + Interactively edit the translation (po-edit-msgstr).
    LFD
    C-j
    - - + + Reinitialize the translation with the original, untranslated string (po-msgid-to-msgstr).
    k
    - + Save the translation on the kill ring, and delete it (po-kill-msgstr).
    w
    - + Save the translation on the kill ring, without deleting it (po-kill-ring-save-msgstr).
    y
    - + Replace the translation, taking the new from the kill ring (po-yank-msgstr).

    - - + + The command RET (po-edit-msgstr) opens a new Emacs window meant to edit in a new translation, or to modify an already existing translation. The new window contains a copy of the translation taken from @@ -1014,9 +1014,9 @@

    - - - + + + The command LFD (po-msgid-to-msgstr) initializes, or reinitializes the translation with the original string. This command is normally used when the translator wants to redo a fresh translation of @@ -1024,7 +1024,7 @@

    - + It is possible to arrange so, whenever editing an untranslated entry, the LFD command be automatically executed. If you set po-auto-edit-with-msgid to t, the translation gets @@ -1033,7 +1033,7 @@

    - + In fact, whether it is best to start a translation with an empty string, or rather with a copy of the original string, is a matter of taste or habit. Sometimes, the source language and the @@ -1047,11 +1047,11 @@

    - - - - - + + + + + The command k (po-kill-msgstr) merely empties the translation string, so turning the entry into an untranslated one. But while doing so, its previous contents is put apart in @@ -1083,8 +1083,8 @@

    - - + + The command y (po-yank-msgstr) completely replaces the translation of the current entry by a string taken from the kill ring. Following Emacs terminology, we then say that the replacement @@ -1118,7 +1118,7 @@

    - + To better illustrate the operation of killing and yanking, let's use an actual example, taken from a common situation. When the programmer slightly modifies some string right in the program, his @@ -1158,8 +1158,8 @@

    8.3.10 Modifying Comments

    - - + +

    @@ -1188,24 +1188,24 @@

    #
    - + Interactively edit the translator comments (po-edit-comment).
    K
    - + Save the translator comments on the kill ring, and delete it (po-kill-comment).
    W
    - + Save the translator comments on the kill ring, without deleting it (po-kill-ring-save-comment).
    Y
    - + Replace the translator comments, taking the new from the kill ring (po-yank-comment). @@ -1221,8 +1221,8 @@

    - - + + The command # (po-edit-comment) opens a new Emacs window containing a copy of the translator comments on the current PO file entry. If there are no such comments, PO mode understands that the translator wants @@ -1236,18 +1236,18 @@

    - + Functions found on po-subedit-mode-hook, if any, are executed after the string has been inserted in the edit buffer.

    - - - - - - + + + + + + The command K (po-kill-comment) gets rid of all translator comments, while saving those comments on the kill ring. The command W (po-kill-ring-save-comment) takes @@ -1288,7 +1288,7 @@

    8.3.11 Details of Sub Edition

    - +

    @@ -1301,25 +1301,25 @@

    C-c C-c
    - + Complete edition (po-subedit-exit).
    C-c C-k
    - + Abort edition (po-subedit-abort).
    C-c C-a
    - + Consult auxiliary PO files (po-subedit-cycle-auxiliary).

    - - - + + + The window's contents represents a translation for a given message, or a translator comment. The translator may modify this window to her heart's content. Once this is done, the command C-c C-c @@ -1329,8 +1329,8 @@

    - - + + If the translator becomes unsatisfied with her translation or comment, to the extent she prefers keeping what was existent prior to the RET or # command, she may use the command C-c C-k @@ -1341,8 +1341,8 @@

    - - + + The command C-c C-a (po-subedit-cycle-auxiliary) allows for glancing through translations already achieved in other languages, directly while editing the current @@ -1376,7 +1376,7 @@

    - + When a translation (or a comment) is being edited, the translator may move the cursor back into the PO file buffer and freely move to other entries, browsing at will. If, with an edition pending, the translator wanders in the @@ -1389,7 +1389,7 @@

    - + Pending subedits may be completed or aborted in any order, regardless of how or when they were started. When many subedits are pending and the translator asks for quitting the PO file (with the q command), subedits @@ -1400,9 +1400,9 @@

    8.3.12 C Sources Context

    - - - + + +

    @@ -1439,7 +1439,7 @@

    - + The following commands are meant to help the translator at getting program source context for a PO file entry. @@ -1448,35 +1448,35 @@

    s
    - + Resume the display of a program source context, or cycle through them (po-cycle-source-reference).
    M-s
    - + Display of a program source context selected by menu (po-select-source-reference).
    S
    - + Add a directory to the search path for source files (po-consider-source-path).
    M-S
    - + Delete a directory from the search path for source files (po-ignore-source-path).

    - - - - + + + + The commands s (po-cycle-source-reference) and M-s (po-select-source-reference) both open another window displaying some source program file, and already positioned in such a way that @@ -1521,10 +1521,10 @@

    - - - - + + + + Program source files are usually found relative to where the PO file stands. As a special provision, when this fails, the file is also looked for, but relative to the directory immediately above it. @@ -1544,7 +1544,7 @@

    8.3.13 Consulting Auxiliary PO Files

    - +

    @@ -1557,8 +1557,8 @@

    - - + + An auxiliary PO file is an existing PO file meant for the same package the translator is working on, but targeted to a different mother tongue language. Commands exist for declaring and handling auxiliary @@ -1573,41 +1573,41 @@

    a
    - + Seek auxiliary files for another translation for the same entry (po-cycle-auxiliary).
    C-c C-a
    - + Switch to a particular auxiliary file (po-select-auxiliary).
    A
    - + Declare this PO file as an auxiliary file (po-consider-as-auxiliary).
    M-A
    - + Remove this PO file from the list of auxiliary files (po-ignore-as-auxiliary).

    - - - - + + + + Command A (po-consider-as-auxiliary) adds the current PO file to the list of auxiliary files, while command M-A (po-ignore-as-auxiliary just removes it.

    - - + + The command a (po-cycle-auxiliary) seeks all auxiliary PO files, round-robin, searching for a translated entry in some other language having an msgid field identical as the one for the current entry. @@ -1619,8 +1619,8 @@

    - - + + The command C-c C-a (po-select-auxiliary) asks the translator for her choice of a particular auxiliary file, with completion, and then switches to that selected PO file. The command also checks if @@ -1640,7 +1640,7 @@

    - + However, PO files initially created by PO mode itself, while marking strings in source files, are normalised differently. So are PO files resulting of the ‘M-x normalize’ command. Until these @@ -1652,11 +1652,11 @@

    8.4 Using Translation Compendia

    - +

    - + A compendium is a special PO file containing a set of translations recurring in many different packages. The translator can use gettext tools to build a new compendium, to add entries to her @@ -1669,8 +1669,8 @@

    8.4.1 Creating Compendia

    - - + +

    @@ -1685,8 +1685,8 @@

    8.4.1.1 Concatenate PO Files

    - - + + To concatenate several valid PO files into one compendium file you can use ‘msgcomm’ or ‘msgcat’ (the latter preferred): @@ -1767,7 +1767,7 @@

    8.4.1.2 Extract a Message Subset from a PO File

    - +

    @@ -1798,7 +1798,7 @@

    8.4.2.1 Initialize a New Translation File

    - +

    @@ -1815,7 +1815,7 @@

    8.4.2.2 Update an Existing Translation File

    - +

    diff -Nru gettext-0.17/gettext-tools/doc/gettext_9.html gettext-0.18.1.1/gettext-tools/doc/gettext_9.html --- gettext-0.17/gettext-tools/doc/gettext_9.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_9.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,7 +1,7 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - 9 Manipulating PO Files @@ -13,7 +13,7 @@

    9 Manipulating PO Files

    - +

    @@ -23,7 +23,7 @@

    - + When merging two packages into a single package, the resulting POT file will be the concatenation of the two packages' POT files. Thus the maintainer must concatenate the two existing package translations into @@ -33,7 +33,7 @@

    - + When a translator takes over the translation job from another translator, but she uses a different character encoding in her locale, she will convert the catalog to her character encoding. This is best done through @@ -49,8 +49,8 @@

    - - + + When a translator wants to adjust some translation catalog for a special dialect or orthography -- for example, German as written in Switzerland versus German as written in Germany -- she needs to apply some text @@ -67,14 +67,14 @@

    - + When a translator wants to check her translations, for example according to orthography rules or using a non-interactive spell checker, she can do so using the ‘msgexec’ program.

    - + When third party tools create PO or POT files, sometimes duplicates cannot be avoided. But the GNU gettext tools give an error when they encounter duplicate msgids in the same file and in the same domain. @@ -92,7 +92,7 @@

    - + ‘msgattrib’ can be used to select and extract only the fuzzy or untranslated messages of a translation catalog. @@ -114,16 +114,16 @@

    9.1 Invoking the msgcat Program

    - - + +

     msgcat [option] [inputfile]...
     

    - - + + The msgcat program concatenates and merges the specified PO files. It finds messages which are common to two or more of the specified PO files. By using the --more-than option, greater commonality may be requested @@ -149,8 +149,8 @@

    ‘--files-from=file
    - - + + Read the names of the input files from file instead of getting them from the command line. @@ -158,8 +158,8 @@
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -180,14 +180,14 @@
    ‘--output-file=file
    - - + + Write output to specified file.

    - + The results are written to standard output if no output file is specified or if it is ‘-’. @@ -202,8 +202,8 @@

    ‘--less-than=number
    - - + + Print messages with less than number definitions, defaults to infinite if not set. @@ -211,8 +211,8 @@
    ‘--more-than=number
    - - + + Print messages with more than number definitions, defaults to 0 if not set. @@ -220,8 +220,8 @@
    ‘--unique’
    - - + + Shorthand for ‘--less-than=2’. Requests that only unique messages be printed. @@ -237,14 +237,14 @@
    ‘--properties-input’
    - - + + Assume the input files are Java ResourceBundles in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input files are NeXTstep/GNUstep localized resource files in .strings syntax, not in PO file syntax. @@ -260,59 +260,66 @@
    ‘--to-code=name
    - - + + Specify encoding for output.
    ‘--use-first’
    - + Use first available translation for each message. Don't merge several translations into one. +
    ‘--lang=catalogname +
    + +Specify the ‘Language’ field to be used in the header entry. See +section 6.2 Filling in the Header Entry for the meaning of this field. Note: The +‘Language-Team’ and ‘Plural-Forms’ fields are left unchanged. +
    ‘--color’
    ‘--color=when
    - + Specify whether or when to use colors and other text attributes. See section 9.11.1 The --color option for details.
    ‘--style=style_file
    - + Specify the CSS style rule file to use for --color. See section 9.11.3 The --style option for details.
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘-n’
    ‘--add-location’
    - - + + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -321,15 +328,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -337,15 +344,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -354,9 +361,9 @@
    ‘--sort-output’
    - - - + + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -364,8 +371,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location. @@ -380,16 +387,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -399,15 +406,15 @@

    9.2 Invoking the msgconv Program

    - - + +

     msgconv [option] [inputfile]
     

    - + The msgconv program converts a translation catalog to a different character encoding. @@ -426,8 +433,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -448,8 +455,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -469,8 +476,8 @@
    ‘--to-code=name
    - - + + Specify encoding for output. @@ -489,14 +496,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -508,32 +515,46 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘--add-location’
    - + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -542,15 +563,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -558,15 +579,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -575,8 +596,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -584,8 +605,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    @@ -600,16 +621,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -619,15 +640,15 @@

    9.3 Invoking the msggrep Program

    - - + +

     msggrep [option] [inputfile]
     

    - + The msggrep program extracts all messages of a translation catalog that match a given pattern or belong to some given source files. @@ -646,8 +667,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -668,8 +689,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -700,16 +721,16 @@
  • or if ‘-J’ is given and its context (msgctxt) matches - msgctxt-pattern, +msgctxt-pattern,
  • or if ‘-K’ is given and its key (msgid or msgid_plural) matches - msgid-pattern, +msgid-pattern,
  • or if ‘-T’ is given and its translation (msgstr) matches - msgstr-pattern, +msgstr-pattern,
  • or if ‘-C’ is given and the translator's comment matches - comment-pattern. +comment-pattern.

    @@ -735,8 +756,8 @@

    ‘--location=sourcefile
    - - + + Select messages extracted from sourcefile. sourcefile can be either a literal file name or a wildcard pattern. @@ -744,96 +765,96 @@
    ‘--domain=domainname
    - - + + Select messages belonging to domain domainname.
    ‘-J’
    ‘--msgctxt’
    - - + + Start of patterns for the msgctxt.
    ‘-K’
    ‘--msgid’
    - - + + Start of patterns for the msgid.
    ‘-T’
    ‘--msgstr’
    - - + + Start of patterns for the msgstr.
    ‘-C’
    ‘--comment’
    - - + + Start of patterns for the translator's comment.
    ‘-X’
    ‘--extracted-comment’
    - - + + Start of patterns for the extracted comments.
    ‘-E’
    ‘--extended-regexp’
    - - + + Specify that pattern is an extended regular expression.
    ‘-F’
    ‘--fixed-strings’
    - - + + Specify that pattern is a set of newline-separated strings.
    ‘-e pattern
    ‘--regexp=pattern
    - - + + Use pattern as a regular expression.
    ‘-f file
    ‘--file=file
    - - + + Obtain pattern from file.
    ‘-i’
    ‘--ignore-case’
    - - + + Ignore case distinctions.
    ‘-v’
    ‘--invert-match’
    - - + + Output only the messages that do not match any selection criterion, instead of the messages that match a selection criterion. @@ -849,14 +870,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -868,29 +889,43 @@
    -
    ‘--force-po’ +
    ‘--color’
    - -Always write an output file even if it contains no message. - +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. + +
    ‘--force-po’ +
    + +Always write an output file even if it contains no message. +
    ‘--indent’
    - + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘--add-location’
    - + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -899,15 +934,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -915,28 +950,28 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split.
    ‘--sort-output’
    - + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context.
    ‘--sort-by-file’
    - + Sort output by file location.
    @@ -951,16 +986,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -1014,19 +1049,31 @@

    9.4 Invoking the msgfilter Program

    - - + +

     msgfilter [option] filter [filter-option]
     

    - + The msgfilter program applies a filter to all translations of a translation catalog.

    +

    + + + +During each filter invocation, the environment variable +MSGFILTER_MSGID is bound to the message's msgid, and the environment +variable MSGFILTER_LOCATION is bound to the location in the PO file +of the message. If the message has a context, the environment variable +MSGFILTER_MSGCTXT is bound to the message's msgctxt, otherwise it is +unbound. + +

    9.4.1 Input file location

    @@ -1037,16 +1084,16 @@
    ‘--input=inputfile
    - - + + Input PO file.
    ‘-D directory
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -1067,8 +1114,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -1090,7 +1137,7 @@

    - + Note: If the filter is not a built-in filter, you have to care about encodings: It is your responsibility to ensure that the filter can cope with input encoded in the translation catalog's encoding. If the @@ -1104,7 +1151,7 @@

    - + Note: Most translations in a translation catalog don't end with a newline character. For this reason, it is important that the filter recognizes its last input line even if it ends without a newline, and that @@ -1124,16 +1171,16 @@

    ‘--expression=script
    - - + + Add script to the commands to be executed.
    ‘-f scriptfile
    ‘--file=scriptfile
    - - + + Add the contents of scriptfile to the commands to be executed.
    ‘-n’ @@ -1142,9 +1189,9 @@
    ‘--silent’
    - - - + + + Suppress automatic printing of pattern space. @@ -1154,8 +1201,8 @@

    9.4.5 Built-in filters

    - - + + The filter ‘recode-sr-latin’ is recognized as a built-in filter. The command ‘recode-sr-latin’ converts Serbian text, written in the Cyrillic script, to the Latin script. @@ -1180,14 +1227,14 @@

    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -1199,36 +1246,50 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘--indent’
    - + Write the .po file using indented style.
    ‘--keep-header’
    - + Keep the header entry, i.e. the message with ‘msgid ""’, unmodified, instead of filtering it. By default, the header entry is subject to filtering like any other message.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘--add-location’
    - + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -1237,15 +1298,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -1253,15 +1314,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -1270,8 +1331,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -1279,8 +1340,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    @@ -1295,16 +1356,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -1328,7 +1389,7 @@

    -msgfilter recode-sr-latin sr.po
    +msgfilter recode-sr-latin < sr.po
     
    @@ -1336,16 +1397,16 @@

    9.5 Invoking the msguniq Program

    - - + +

     msguniq [option] [inputfile]
     

    - - + + The msguniq program unifies duplicate translations in a translation catalog. It finds duplicate translations of the same message ID. Such duplicates are invalid input for other programs like msgfmt, @@ -1372,8 +1433,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -1394,8 +1455,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -1415,16 +1476,16 @@
    ‘--repeated’
    - - + + Print only duplicates.
    ‘-u’
    ‘--unique’
    - - + + Print only unique messages, discard duplicates. @@ -1439,14 +1500,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -1462,45 +1523,59 @@
    ‘--to-code=name
    - - + + Specify encoding for output.
    ‘--use-first’
    - + Use first available translation for each message. Don't merge several translations into one. +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘-n’
    ‘--add-location’
    - - + + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -1509,15 +1584,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -1525,15 +1600,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -1542,8 +1617,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -1551,8 +1626,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location. @@ -1567,16 +1642,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -1586,15 +1661,15 @@

    9.6 Invoking the msgcomm Program

    - - + +

     msgcomm [option] [inputfile]...
     

    - + The msgcomm program finds messages which are common to two or more of the specified PO files. By using the --more-than option, greater commonality may be requested @@ -1620,8 +1695,8 @@

    ‘--files-from=file
    - - + + Read the names of the input files from file instead of getting them from the command line. @@ -1629,8 +1704,8 @@
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -1651,8 +1726,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -1672,8 +1747,8 @@
    ‘--less-than=number
    - - + + Print messages with less than number definitions, defaults to infinite if not set. @@ -1681,8 +1756,8 @@
    ‘--more-than=number
    - - + + Print messages with more than number definitions, defaults to 1 if not set. @@ -1690,8 +1765,8 @@
    ‘--unique’
    - - + + Shorthand for ‘--less-than=2’. Requests that only unique messages be printed. @@ -1707,14 +1782,14 @@
    ‘--properties-input’
    - - + + Assume the input files are Java ResourceBundles in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input files are NeXTstep/GNUstep localized resource files in .strings syntax, not in PO file syntax. @@ -1726,35 +1801,49 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘-n’
    ‘--add-location’
    - - + + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -1763,15 +1852,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -1779,15 +1868,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -1796,8 +1885,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -1805,13 +1894,13 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    ‘--omit-header’
    - + Don't write header with ‘msgid ""’ entry.
    @@ -1826,16 +1915,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -1845,15 +1934,15 @@

    9.7 Invoking the msgcmp Program

    - - + +

     msgcmp [option] def.po ref.pot
     

    - + The msgcmp program compares two Uniforum style .po files to check that both contain the same set of msgid strings. The def.po file is an existing PO file with the translations. The ref.pot file is the last @@ -1881,8 +1970,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. @@ -1898,20 +1987,29 @@
    ‘--multi-domain’
    - - + + Apply ref.pot to each of the domains in def.po. +
    ‘-N’ +
    +
    ‘--no-fuzzy-matching’ +
    + + +Do not use fuzzy matching when an exact match is not found. This may speed +up the operation considerably. +
    ‘--use-fuzzy’
    - + Consider fuzzy messages in the def.po file like translated messages. Note that using this option is usually wrong, because fuzzy messages are exactly those which have not been validated by a human translator.
    ‘--use-untranslated’
    - + Consider untranslated messages in the def.po file like translated messages. Note that using this option is usually wrong. @@ -1927,14 +2025,14 @@
    ‘--properties-input’
    - - + + Assume the input files are Java ResourceBundles in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input files are NeXTstep/GNUstep localized resource files in .strings syntax, not in PO file syntax. @@ -1950,16 +2048,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -1969,16 +2067,16 @@

    9.8 Invoking the msgattrib Program

    - - + +

     msgattrib [option] [inputfile]
     

    - - + + The msgattrib program filters the messages of a translation catalog according to their attributes, and manipulates the attributes. @@ -1997,8 +2095,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -2019,8 +2117,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -2038,36 +2136,36 @@
    ‘--translated’
    - + Keep translated messages, remove untranslated messages.
    ‘--untranslated’
    - + Keep untranslated messages, remove translated messages.
    ‘--no-fuzzy’
    - + Remove ‘fuzzy’ marked messages.
    ‘--only-fuzzy’
    - + Keep ‘fuzzy’ marked messages, remove all other messages.
    ‘--no-obsolete’
    - + Remove obsolete #~ messages.
    ‘--only-obsolete’
    - + Keep obsolete #~ messages, remove all other messages. @@ -2077,7 +2175,7 @@

    9.8.4 Attribute manipulation

    - + Attributes are modified after the message selection/removal has been performed. If the ‘--only-file’ or ‘--ignore-file’ option is specified, the attribute modification is applied only to those messages @@ -2089,46 +2187,46 @@

    ‘--set-fuzzy’
    - + Set all messages ‘fuzzy’.
    ‘--clear-fuzzy’
    - + Set all messages non-‘fuzzy’.
    ‘--set-obsolete’
    - + Set all messages obsolete.
    ‘--clear-obsolete’
    - + Set all messages non-obsolete.
    ‘--clear-previous’
    - + Remove the “previous msgid” (‘#|’) comments from all messages.
    ‘--only-file=file
    - + Limit the attribute changes to entries that are listed in file. file should be a PO or POT file.
    ‘--ignore-file=file
    - + Limit the attribute changes to entries that are not listed in file. file should be a PO or POT file.
    ‘--fuzzy’
    - + Synonym for ‘--only-fuzzy --clear-fuzzy’: It keeps only the fuzzy messages and removes their ‘fuzzy’ @@ -2136,7 +2234,7 @@
    ‘--obsolete’
    - + Synonym for ‘--only-obsolete --clear-obsolete’: It keeps only the obsolete messages and makes them non-obsolete. @@ -2152,14 +2250,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -2171,35 +2269,49 @@
    +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘-n’
    ‘--add-location’
    - - + + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -2208,15 +2320,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -2224,15 +2336,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -2241,8 +2353,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -2250,8 +2362,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    @@ -2266,16 +2378,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -2285,15 +2397,15 @@

    9.9 Invoking the msgen Program

    - - + +

     msgen [option] inputfile
     

    - + The msgen program creates an English translation catalog. The input file is the last created English PO file, or a PO Template file (generally created by xgettext). Untranslated entries are assigned a @@ -2320,8 +2432,8 @@

    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -2342,8 +2454,8 @@
    ‘--output-file=file
    - - + + Write output to specified file. @@ -2363,14 +2475,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -2382,32 +2494,54 @@
    +
    ‘--lang=catalogname +
    + +Specify the ‘Language’ field to be used in the header entry. See +section 6.2 Filling in the Header Entry for the meaning of this field. Note: The +‘Language-Team’ and ‘Plural-Forms’ fields are not set by this +option. + +
    ‘--color’ +
    +
    ‘--color=when +
    + +Specify whether or when to use colors and other text attributes. +See section 9.11.1 The --color option for details. + +
    ‘--style=style_file +
    + +Specify the CSS style rule file to use for --color. +See section 9.11.3 The --style option for details. +
    ‘--force-po’
    - + Always write an output file even if it contains no message.
    ‘-i’
    ‘--indent’
    - - + + Write the .po file using indented style.
    ‘--no-location’
    - + Do not write ‘#: filename:line lines.
    ‘--add-location’
    - + Generate ‘#: filename:line lines (default).
    ‘--strict’
    - + Write out a strict Uniforum conforming PO file. Note that this Uniforum format should be avoided because it doesn't support the GNU extensions. @@ -2416,15 +2550,15 @@
    ‘--properties-output’
    - - + + Write out a Java ResourceBundle in Java .properties syntax. Note that this file format doesn't support plural forms and silently drops obsolete messages.
    ‘--stringtable-output’
    - + Write out a NeXTstep/GNUstep localized resource file in .strings syntax. Note that this file format doesn't support plural forms. @@ -2432,15 +2566,15 @@
    ‘--width=number
    - - + + Set the output page width. Long strings in the output files will be split across multiple lines in order to ensure that each line's width (= number of screen columns) is less or equal to the given number.
    ‘--no-wrap’
    - + Do not break long message lines. Message lines whose width exceeds the output page width will not be split into several lines. Only file reference lines which are wider than the output page width will be split. @@ -2449,8 +2583,8 @@
    ‘--sort-output’
    - - + + Generate sorted output. Note that using this option makes it much harder for the translator to understand each message's context. @@ -2458,8 +2592,8 @@
    ‘--sort-by-file’
    - - + + Sort output by file location.
    @@ -2474,16 +2608,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -2493,15 +2627,15 @@

    9.10 Invoking the msgexec Program

    - - + +

     msgexec [option] command [command-option]
     

    - + The msgexec program applies a command to all translations of a translation catalog. The command can be any program that reads a translation from standard @@ -2511,16 +2645,16 @@

    - + A special builtin command called ‘0’ outputs the translation, followed by a null byte. The output of ‘msgexec 0’ is suitable as input for ‘xargs -0’.

    - - - + + + During each command invocation, the environment variable MSGEXEC_MSGID is bound to the message's msgid, and the environment variable MSGEXEC_LOCATION is bound to the location in the PO file @@ -2530,7 +2664,7 @@

    - + Note: It is your responsibility to ensure that the command can cope with input encoded in the translation catalog's encoding. If the command wants input in a particular encoding, you can in a first step @@ -2552,16 +2686,16 @@

    ‘--input=inputfile
    - - + + Input PO file.
    ‘-D directory
    ‘--directory=directory
    - - + + Add directory to the list of directories. Source files are searched relative to this list of directories. The resulting ‘.po’ file will be written relative to the current directory, though. @@ -2582,14 +2716,14 @@
    ‘--properties-input’
    - - + + Assume the input file is a Java ResourceBundle in Java .properties syntax, not in PO file syntax.
    ‘--stringtable-input’
    - + Assume the input file is a NeXTstep/GNUstep localized resource file in .strings syntax, not in PO file syntax. @@ -2605,16 +2739,16 @@
    ‘--help’
    - - + + Display this help and exit.
    ‘-V’
    ‘--version’
    - - + + Output version information and exit. @@ -2643,7 +2777,7 @@

    9.11.1 The --color option

    - + The ‘--color=when option specifies under which conditions colorized output should be generated. The when part can be one of the following: @@ -2709,7 +2843,7 @@

    9.11.2 The environment variable TERM

    - + The environment variable TERM contains a identifier for the text window's capabilities. You can get a detailed list of these cababilities by using the ‘infocmp’ command, using ‘man 5 terminfo’ as a @@ -2756,14 +2890,14 @@

    9.11.3 The --style option

    - + The ‘--style=style_file option specifies the style file to use when colorizing. It has an effect only when the --color option is effective.

    - + If the --style option is not specified, the environment variable PO_STYLE is considered. It is meant to point to the user's preferred style for PO files. @@ -3159,7 +3293,7 @@

    Data Type: po_file_t -
    +
    This is a pointer type that refers to the contents of a PO file, after it has been read into memory.
    @@ -3168,7 +3302,7 @@

    Data Type: po_message_iterator_t -
    +
    This is a pointer type that refers to an iterator that produces a sequence of messages.
    @@ -3177,7 +3311,7 @@

    Data Type: po_message_t -
    +
    This is a pointer type that refers to a message of a PO file, including its translation.
    @@ -3186,7 +3320,7 @@

    Function: po_file_t po_file_read (const char *filename) -
    +
    The po_file_read function reads a PO file into memory. The file name is given as argument. The return value is a handle to the PO file's contents, valid until po_file_free is called on it. In case of error, the return @@ -3197,7 +3331,7 @@

    Function: void po_file_free (po_file_t file) -
    +
    The po_file_free function frees a PO file's contents from memory, including all messages that are only implicitly accessible through iterators.
    @@ -3206,7 +3340,7 @@

    Function: const char * const * po_file_domains (po_file_t file) -
    +
    The po_file_domains function returns the domains for which the given PO file has messages. The return value is a NULL terminated array which is valid as long as the file handle is valid. For PO files which @@ -3218,7 +3352,7 @@

    Function: po_message_iterator_t po_message_iterator (po_file_t file, const char *domain) -
    +
    The po_message_iterator returns an iterator that will produce the messages of file that belong to the given domain. If domain is NULL, the default domain is used instead. To list the messages, @@ -3229,7 +3363,7 @@

    Function: void po_message_iterator_free (po_message_iterator_t iterator) -
    +
    The po_message_iterator_free function frees an iterator previously allocated through the po_message_iterator function.
    @@ -3238,7 +3372,7 @@

    Function: po_message_t po_next_message (po_message_iterator_t iterator) -
    +
    The po_next_message function returns the next message from iterator and advances the iterator. It returns NULL when the iterator has reached the end of its message list. @@ -3253,7 +3387,7 @@

    Function: const char * po_message_msgid (po_message_t message) -
    +
    The po_message_msgid function returns the msgid (untranslated English string) of a message. This is guaranteed to be non-NULL.
    @@ -3262,7 +3396,7 @@

    Function: const char * po_message_msgid_plural (po_message_t message) -
    +
    The po_message_msgid_plural function returns the msgid_plural (untranslated English plural string) of a message with plurals, or NULL for a message without plural. @@ -3272,7 +3406,7 @@

    Function: const char * po_message_msgstr (po_message_t message) -
    +
    The po_message_msgstr function returns the msgstr (translation) of a message. For an untranslated message, the return value is an empty string. @@ -3282,7 +3416,7 @@

    Function: const char * po_message_msgstr_plural (po_message_t message, int index) -
    +
    The po_message_msgstr_plural function returns the msgstr[index] of a message with plurals, or NULL when the index is out of range or for a message without plural. diff -Nru gettext-0.17/gettext-tools/doc/gettext_foot.html gettext-0.18.1.1/gettext-tools/doc/gettext_foot.html --- gettext-0.17/gettext-tools/doc/gettext_foot.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_foot.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,15 +1,15 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Footnotes -

    GNU gettext tools, version 0.17

    +

    GNU gettext tools, version 0.18.1

    Native Language Support Library and Tools

    -

    Edition 0.17, 31 October 2007

    +

    Edition 0.18.1, 6 June 2010

    Ulrich Drepper
    Jim Meyering
    François Pinard
    @@ -37,7 +37,7 @@

    Additions are welcome. Send appropriate information to bug-gnu-gettext@gnu.org and bug-glibc-manual@gnu.org.


    -This document was generated on 4 November 2007 using the +This document was generated on 6 June 2010 using the texi2html translator version 1.52b.

    diff -Nru gettext-0.17/gettext-tools/doc/gettext.info gettext-0.18.1.1/gettext-tools/doc/gettext.info --- gettext-0.17/gettext-tools/doc/gettext.info 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext.info 2010-06-06 18:36:28.000000000 +0000 @@ -1,4 +1,4 @@ -This is gettext.info, produced by makeinfo version 4.11 from +This is gettext.info, produced by makeinfo version 4.13 from gettext.texi. INFO-DIR-SECTION GNU Gettext Utilities @@ -57,7 +57,7 @@ *********************** This manual documents the GNU gettext tools and the GNU libintl -library, version 0.17. +library, version 0.18.1. * Menu: @@ -233,6 +233,7 @@ * Discussions:: Discussions * Organization:: Organization * Information Flow:: Information Flow +* Translating plural forms:: How to fill in `msgstr[0]', `msgstr[1]' * Prioritizing messages:: How to find which messages to translate first Organization @@ -316,7 +317,9 @@ * perl-format:: Perl Format Strings * php-format:: PHP Format Strings * gcc-internal-format:: GCC internal Format Strings +* gfc-internal-format:: GFC internal Format Strings * qt-format:: Qt Format Strings +* qt-plural-format:: Qt Plural Format Strings * kde-format:: KDE Format Strings * boost-format:: Boost Format Strings @@ -1274,20 +1277,20 @@ `no-c-format' These flags should not be added by a human. Instead only the `xgettext' program adds them. In an automated PO file processing - system as proposed here the user changes would be thrown away + system as proposed here, the user's changes would be thrown away again as soon as the `xgettext' program generates a new template file. - The `c-format' flag tells that the untranslated string and the + The `c-format' flag indicates that the untranslated string and the translation are supposed to be C format strings. The `no-c-format' - flag tells that they are not C format strings, even though the + flag indicates that they are not C format strings, even though the untranslated string happens to look like a C format string (with `%' directives). - In case the `c-format' flag is given for a string the `msgfmt' - does some more tests to check to validity of the translation. - *Note msgfmt Invocation::, *note c-format Flag:: and *note - c-format::. + When the `c-format' flag is given for a string the `msgfmt' + program does some more tests to check the validity of the + translation. *Note msgfmt Invocation::, *note c-format Flag:: and + *note c-format::. `objc-format' `no-objc-format' @@ -1361,10 +1364,19 @@ `no-gcc-internal-format' Likewise for the GCC sources, see *note gcc-internal-format::. +`gfc-internal-format' +`no-gfc-internal-format' + Likewise for the GNU Fortran Compiler sources, see *note + gfc-internal-format::. + `qt-format' `no-qt-format' Likewise for Qt, see *note qt-format::. +`qt-plural-format' +`no-qt-plural-format' + Likewise for Qt plural forms, see *note qt-plural-format::. + `kde-format' `no-kde-format' Likewise for KDE, see *note kde-format::. @@ -1422,6 +1434,16 @@ Here also, a `msgctxt' context can be specified before `msgid', like above. + Here, additional kinds of flags can be used: + +`range:' + This flag is followed by a range of non-negative numbers, using + the syntax `range: MINIMUM-VALUE..MAXIMUM-VALUE'. It designates + the possible values that the numeric parameter of the message can + take. In some languages, translators may produce slightly better + translations if they know that the value can only take on values + between 0 and 10, for example. + The PREVIOUS-UNTRANSLATED-STRING is optionally inserted by the `msgmerge' program, at the same time when it marks a message fuzzy. It helps the translator to see which changes were done by the developers @@ -1882,7 +1904,9 @@ take it at another argument position. It is even possible to make the marked argument position depend on the total number of arguments of the function call; this is useful in C++. All this is achieved using -`xgettext''s `--keyword' option. +`xgettext''s `--keyword' option. How to pass such an option to +`xgettext', assuming that `gettextize' is used, is described in *note +po/Makevars:: and *note AM_XGETTEXT_OPTION::. Note also that long strings can be split across lines, into multiple adjacent string tokens. Automatic string concatenation is performed at @@ -2271,7 +2295,8 @@ As a programmer, you should therefore make sure that names are marked for translation, with a special comment telling the translators that it -is a proper name and how to pronounce it. Like this: +is a proper name and how to pronounce it. In its simple form, it looks +like this: printf (_("Written by %s.\n"), /* TRANSLATORS: This is a proper name. See the gettext @@ -2281,17 +2306,44 @@ Pronunciation is like "fraa-swa pee-nar". */ _("Francois Pinard")); +The GNU gnulib library offers a module `propername' +(`http://www.gnu.org/software/gnulib/MODULES.html#module=propername') +which takes care to automatically append the original name, in +parentheses, to the translated name. For names that cannot be written +in ASCII, it also frees the translator from the task of entering the +appropriate non-ASCII characters if no script change is needed. In +this more comfortable form, it looks like this: + + printf (_("Written by %s and %s.\n"), + proper_name ("Ulrich Drepper"), + /* TRANSLATORS: This is a proper name. See the gettext + manual, section Names. Note this is actually a non-ASCII + name: The first name is (with Unicode escapes) + "Fran\u00e7ois" or (with HTML entities) "François". + Pronunciation is like "fraa-swa pee-nar". */ + proper_name_utf8 ("Francois Pinard", "Fran\303\247ois Pinard")); + +You can also write the original name directly in Unicode (rather than +with Unicode escapes or HTML entities) and denote the pronunciation +using the International Phonetic Alphabet (see +`http://www.wikipedia.org/wiki/International_Phonetic_Alphabet'). + As a translator, you should use some care when translating names, because it is frustrating if people see their names mutilated or -distorted. If your language uses the Latin script, all you need to do -is to reproduce the name as perfectly as you can within the usual -character set of your language. In this particular case, this means to -provide a translation containing the c-cedilla character. If your -language uses a different script and the people speaking it don't -usually read Latin words, it means transliteration; but you should -still give, in parentheses, the original writing of the name - for the -sake of the people that do read the Latin script. Here is an example, -using Greek as the target script: +distorted. + + If your language uses the Latin script, all you need to do is to +reproduce the name as perfectly as you can within the usual character +set of your language. In this particular case, this means to provide a +translation containing the c-cedilla character. If your language uses +a different script and the people speaking it don't usually read Latin +words, it means transliteration. If the programmer used the simple +case, you should still give, in parentheses, the original writing of +the name - for the sake of the people that do read the Latin script. +If the programmer used the `propername' module mentioned above, you +don't need to give the original writing of the name in parentheses, +because the program will already do so. Here is an example, using +Greek as the target script: #. This is a proper name. See the gettext #. manual, section Names. Note this is actually a non-ASCII @@ -2305,19 +2357,6 @@ Because translation of names is such a sensitive domain, it is a good idea to test your translation before submitting it. - The translation project `http://sourceforge.net/projects/translation' -has set up a POT file and translation domain consisting of program -author names, with better facilities for the translator than those -presented here. Namely, there the original name is written directly in -Unicode (rather than with Unicode escapes or HTML entities), and the -pronunciation is denoted using the International Phonetic Alphabet (see -`http://www.wikipedia.org/wiki/International_Phonetic_Alphabet'). - - However, we don't recommend this approach for all POT files in all -packages, because this would force translators to use PO files in UTF-8 -encoding, which is - in the current state of software (as of 2003) - a -major hassle for translators using GNU Emacs or XEmacs with po-mode. -  File: gettext.info, Node: Libraries, Prev: Names, Up: Sources @@ -2516,10 +2555,11 @@ Entries from FILE are not extracted. FILE should be a PO or POT file. -`-c [TAG]' +`-c[TAG]' `--add-comments[=TAG]' - Place comment block with TAG (or those preceding keyword lines) in - output file. + Place comment blocks starting with TAG and preceding keyword lines + in the output file. Without a TAG, the option means to put _all_ + comment blocks preceding keyword lines in the output file. 5.1.6 Language specific options @@ -2533,10 +2573,11 @@ ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade. -`-k KEYWORDSPEC' +`-k[KEYWORDSPEC]' `--keyword[=KEYWORDSPEC]' - Additional keyword to be looked for (without KEYWORDSPEC means not - to use default keywords). + Specify KEYWORDSPEC as an additional keyword to be looked for. + Without a KEYWORDSPEC, the option means to not use default + keywords. If KEYWORDSPEC is a C identifier ID, `xgettext' looks for strings in the first argument of each call to the function or macro ID. @@ -2693,6 +2734,15 @@ 5.1.7 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if no message is defined. @@ -2811,13 +2861,13 @@ The default value is empty, which means that translators will be clueless! Don't forget to specify this option. -`-m [STRING]' +`-m[STRING]' `--msgstr-prefix[=STRING]' - Use STRING (or "" if not specified) as prefix for msgstr entries. + Use STRING (or "" if not specified) as prefix for msgstr values. -`-M [STRING]' +`-M[STRING]' `--msgstr-suffix[=STRING]' - Use STRING (or "" if not specified) as suffix for msgstr entries. + Use STRING (or "" if not specified) as suffix for msgstr values. 5.1.8 Informative output @@ -2921,6 +2971,15 @@ Declares that the PO file will not have a human translator and is instead automatically generated. +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `-p' `--properties-output' Write out a Java ResourceBundle in Java `.properties' syntax. Note @@ -3021,6 +3080,47 @@ Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. +Language + Fill in the language code of the language. This can be in one of + three forms: + + - `LL', an ISO 639 two-letter language code (lowercase). See + *note Language Codes:: for the list of codes. + + - `LL_CC', where `LL' is an ISO 639 two-letter language code + (lowercase) and `CC' is an ISO 3166 two-letter country code + (uppercase). The country code specification is not redundant: + Some languages have dialects in different countries. For + example, `de_AT' is used for Austria, and `pt_BR' for Brazil. + The country code serves to distinguish the dialects. See + *note Language Codes:: and *note Country Codes:: for the + lists of codes. + + - `LL_CC@VARIANT', where `LL' is an ISO 639 two-letter language + code (lowercase), `CC' is an ISO 3166 two-letter country code + (uppercase), and `VARIANT' is a variant designator. The + variant designator (lowercase) can be a script designator, + such as `latin' or `cyrillic'. + + The naming convention `LL_CC' is also the way locales are named on + systems based on GNU libc. But there are three important + differences: + + * In this PO file field, but not in locale names, `LL_CC' + combinations denoting a language's main dialect are + abbreviated as `LL'. For example, `de' is equivalent to + `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' + (Portuguese as spoken in Portugal) in this context. + + * In this PO file field, suffixes like `.ENCODING' are not used. + + * In this PO file field, variant designators that are not + relevant to message translation, such as `@euro', are not + used. + + So, if your locale name is `de_DE.UTF-8', the language + specification in PO files is just `de'. + Content-Type Replace `CHARSET' with the character encoding used for your language, in your locale, or UTF-8. This field is needed for @@ -3086,7 +3186,7 @@ * `KOI8-T' for Tajik, - * `CP1251' for Bulgarian, Byelorussian, + * `CP1251' for Bulgarian, Belarusian, * `GB2312', `GBK', `GB18030' for simplified writing of Chinese, @@ -3134,7 +3234,8 @@ This field is optional. It is only needed if the PO file has plural forms. You can find them by searching for the `msgid_plural' keyword. The format of the plural forms field is - described in *note Plural forms::. + described in *note Plural forms:: and *note Translating plural + forms::.  File: gettext.info, Node: Updating, Next: Editing, Prev: Creating, Up: Top @@ -3274,6 +3375,22 @@ 7.1.7 Output details -------------------- +`--lang=CATALOGNAME' + Specify the `Language' field to be used in the header entry. See + *note Header Entry:: for the meaning of this field. Note: The + `Language-Team' and `Plural-Forms' fields are left unchanged. If + this option is not specified, the `Language' field is inferred, as + best as possible, from the `Language-Team' field. + +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -3505,7 +3622,7 @@ The command `_' (`po-undo') interfaces to the Emacs _undo_ facility. -*Note Undoing Changes: (emacs)Undo. Each time `U' is typed, +*Note Undoing Changes: (emacs)Undo. Each time `_' is typed, modifications which the translator did to the PO file are undone a little more. For the purpose of undoing, each PO mode command is atomic. This is especially true for the `' command: the whole @@ -3835,17 +3952,17 @@ to be later revisited. So, some commands are more specifically related to fuzzy entry processing. -`z' +`f' Find the next fuzzy entry (`po-next-fuzzy-entry'). -`Z' +`F' Find the previous fuzzy entry (`po-previous-fuzzy-entry'). `' Remove the fuzzy attribute of the current entry (`po-unfuzzy'). - The commands `z' (`po-next-fuzzy-entry') and `Z' + The commands `f' (`po-next-fuzzy-entry') and `F' (`po-previous-fuzzy-entry') move forwards or backwards, chasing for a fuzzy entry. If none is found, the search is extended and wraps around in the PO file buffer. @@ -4779,6 +4896,11 @@ Use first available translation for each message. Don't merge several translations into one. +`--lang=CATALOGNAME' + Specify the `Language' field to be used in the header entry. See + *note Header Entry:: for the meaning of this field. Note: The + `Language-Team' and `Plural-Forms' fields are left unchanged. + `--color' `--color=WHEN' Specify whether or when to use colors and other text attributes. @@ -4915,6 +5037,15 @@ 9.2.5 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -5031,7 +5162,7 @@ MSGCTXT-PATTERN, * or if `-K' is given and its key (msgid or msgid_plural) matches - MSGID-PATTERN, + MSGID-PATTERN, * or if `-T' is given and its translation (msgstr) matches MSGSTR-PATTERN, @@ -5120,6 +5251,15 @@ 9.3.5 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -5214,6 +5354,13 @@ The `msgfilter' program applies a filter to all translations of a translation catalog. + During each FILTER invocation, the environment variable +`MSGFILTER_MSGID' is bound to the message's msgid, and the environment +variable `MSGFILTER_LOCATION' is bound to the location in the PO file +of the message. If the message has a context, the environment variable +`MSGFILTER_MSGCTXT' is bound to the message's msgctxt, otherwise it is +unbound. + 9.4.1 Input file location ------------------------- @@ -5316,6 +5463,15 @@ 9.4.7 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -5393,7 +5549,7 @@ To convert Serbian translations in Cyrillic script to Latin script: - msgfilter recode-sr-latin sr.po + msgfilter recode-sr-latin < sr.po  File: gettext.info, Node: msguniq Invocation, Next: msgcomm Invocation, Prev: msgfilter Invocation, Up: Manipulating @@ -5475,6 +5631,15 @@ Use first available translation for each message. Don't merge several translations into one. +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -5622,6 +5787,15 @@ 9.6.5 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -5727,6 +5901,11 @@ `--multi-domain' Apply REF.pot to each of the domains in DEF.po. +`-N' +`--no-fuzzy-matching' + Do not use fuzzy matching when an exact match is not found. This + may speed up the operation considerably. + `--use-fuzzy' Consider fuzzy messages in the DEF.po file like translated messages. Note that using this option is usually wrong, because @@ -5878,6 +6057,15 @@ 9.8.6 Output details -------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -6001,6 +6189,21 @@ 9.9.4 Output details -------------------- +`--lang=CATALOGNAME' + Specify the `Language' field to be used in the header entry. See + *note Header Entry:: for the meaning of this field. Note: The + `Language-Team' and `Plural-Forms' fields are not set by this + option. + +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -6885,7 +7088,9 @@ Output version information and exit. `--statistics' - Print statistics about translations. + Print statistics about translations. When the option `--verbose' + is used in combination with `--statistics', the input file name is + printed in front of the statistics line. `-v' `--verbose' @@ -6999,6 +7204,15 @@ 10.2.7 Output details --------------------- +`--color' +`--color=WHEN' + Specify whether or when to use colors and other text attributes. + See *note The --color option:: for details. + +`--style=STYLE_FILE' + Specify the CSS style rule file to use for `--color'. See *note + The --style option:: for details. + `--force-po' Always write an output file even if it contains no message. @@ -7068,14 +7282,22 @@ The first two words serve the identification of the file. The magic number will always signal GNU MO files. The number is stored in the byte order of the generating machine, so the magic number really is two -numbers: `0x950412de' and `0xde120495'. The second word describes the -current revision of the file format. For now the revision is 0. This -might change in future versions, and ensures that the readers of MO -files can distinguish new formats from old ones, so that both can be -handled correctly. The version is kept separate from the magic number, -instead of using different magic numbers for different formats, mainly -because `/etc/magic' is not updated often. It might be better to have -magic separated from internal format version identification. +numbers: `0x950412de' and `0xde120495'. + + The second word describes the current revision of the file format, +composed of a major and a minor revision number. The revision numbers +ensure that the readers of MO files can distinguish new formats from +old ones and handle their contents, as far as possible. For now the +major revision is 0 or 1, and the minor revision is also 0 or 1. More +revisions might be added in the future. A program seeing an unexpected +major revision number should stop reading the MO file entirely; whereas +an unexpected minor revision number means that the file can be read but +will not reveal its full contents, when parsed by a program that +supports only smaller minor revision numbers. + + The version is kept separate from the magic number, instead of using +different magic numbers for different formats, mainly because +`/etc/magic' is not updated often. Follow a number of pointers to later tables in the file, allowing for the extension of the prefix part of MO files without having to @@ -7779,6 +8001,39 @@ This works because the `printf' function discards excess arguments that are not consumed by the format string. + If this function is meant to yield a format string that takes two + or more arguments, you can not use it like this: + + printf (ngettext ("%d file removed from directory %s", + "%d files removed from directory %s", + n, dir), + n); + + because in many languages the translators want to replace the `%d' + with an explicit word in the singular case, just like "one" in + English, and C format strings cannot consume the second argument + but skip the first argument. Instead, you have to reorder the + arguments so that `n' comes last: + + printf (ngettext ("%$2d file removed from directory %$1s", + "%$2d files removed from directory %$1s", + dir, n), + n); + + See *note c-format:: for details about this argument reordering + syntax. + + When you know that the value of `n' is within a given range, you + can specify it as a comment directed to the `xgettext' tool. This + information may help translators to use more adequate + translations. Like this: + + if (days > 7 && days < 14) + /* xgettext: range: 1..6 */ + printf (ngettext ("one week and one day", "one week and %d days", + days - 7), + days - 7); + It is also possible to use this function when the strings don't contain a cardinal number: @@ -7850,10 +8105,7 @@ Languages with this property include: Asian family - Japanese, Korean, Vietnamese - - Turkic/Altaic family - Turkish + Japanese, Vietnamese, Korean Two forms, singular used for one only This is the form used in most existing programs since it is what @@ -7867,28 +8119,31 @@ Languages with this property include: Germanic family - Danish, Dutch, English, Faroese, German, Norwegian, Swedish + English, German, Dutch, Swedish, Danish, Norwegian, Faroese - Finno-Ugric family - Estonian, Finnish + Romanic family + Spanish, Portuguese, Italian, Bulgarian Latin/Greek family Greek + Finno-Ugric family + Finnish, Estonian + Semitic family Hebrew - Romanic family - Italian, Portuguese, Spanish - Artificial Esperanto - Another language using the same header entry is: + Other languages using the same header entry are: Finno-Ugric family Hungarian + Turkic/Altaic family + Turkish + Hungarian does not appear to have a plural if you look at sentences involving cardinal numbers. For example, "1 apple" is "1 alma", and "123 apples" is "123 alma". But when the number is @@ -7897,6 +8152,11 @@ `ngettext' has to support both types of sentences, it is classified here, under "two forms". + The same holds for Turkish: "1 apple" is "1 elma", and "123 + apples" is "123 elma". But when the number is omitted, the + distinction between singular and plural exists: "the apple" is + "elma", and "the apples" is "elmalar". + Two forms, singular used for zero and one Exceptional case in the language family. The header entry would be: @@ -7906,7 +8166,7 @@ Languages with this property include: Romanic family - French, Brazilian Portuguese + Brazilian Portuguese, French Three forms, special case for zero The header entry would be: @@ -7961,7 +8221,7 @@ Languages with this property include: Slavic family - Croatian, Serbian, Russian, Ukrainian + Russian, Ukrainian, Serbian, Croatian Three forms, special cases for 1 and 2, 3, 4 The header entry would look like this: @@ -7972,7 +8232,7 @@ Languages with this property include: Slavic family - Slovak, Czech + Czech, Slovak Three forms, special case for one and some numbers ending in 2, 3, or 4 The header entry would look like this: @@ -8034,6 +8294,9 @@ Time elapsed: 1.000 seconds is acceptable in English, and similarly for other languages. + The translators' perspective regarding plural forms is explained in +*note Translating plural forms::. + ---------- Footnotes ---------- (1) Additions are welcome. Send appropriate information to @@ -8398,6 +8661,7 @@ * Discussions:: Discussions * Organization:: Organization * Information Flow:: Information Flow +* Translating plural forms:: How to fill in `msgstr[0]', `msgstr[1]' * Prioritizing messages:: How to find which messages to translate first  @@ -8793,7 +9057,7 @@ they see fit, as long as each team is represented in it.  -File: gettext.info, Node: Information Flow, Next: Prioritizing messages, Prev: Organization, Up: Translators +File: gettext.info, Node: Information Flow, Next: Translating plural forms, Prev: Organization, Up: Translators 12.5 Information Flow ===================== @@ -8837,9 +9101,98 @@ have more information about this.  -File: gettext.info, Node: Prioritizing messages, Prev: Information Flow, Up: Translators +File: gettext.info, Node: Translating plural forms, Next: Prioritizing messages, Prev: Information Flow, Up: Translators -12.6 Prioritizing messages: How to determine which messages to translate first +12.6 Translating plural forms +============================= + + Suppose you are translating a PO file, and it contains an entry like +this: + + #, c-format + msgid "One file removed" + msgid_plural "%d files removed" + msgstr[0] "" + msgstr[1] "" + +What does this mean? How do you fill it in? + + Such an entry denotes a message with plural forms, that is, a +message where the text depends on a cardinal number. The general form +of the message, in English, is the `msgid_plural' line. The `msgid' +line is the English singular form, that is, the form for when the +number is equal to 1. More details about plural forms are explained in +*note Plural forms::. + + The first thing you need to look at is the `Plural-Forms' line in the +header entry of the PO file. It contains the number of plural forms +and a formula. If the PO file does not yet have such a line, you have +to add it. It only depends on the language into which you are +translating. You can get this info by using the `msginit' command (see +*note Creating::) - it contains a database of known plural formulas - +or by asking other members of your translation team. + + Suppose the line looks as follows: + + "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" + "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + + It's logically one line; recall that the PO file formatting is +allowed to break long lines so that each physical line fits in 80 +monospaced columns. + + The value of `nplurals' here tells you that there are three plural +forms. The first thing you need to do is to ensure that the entry +contains an `msgstr' line for each of the forms: + + #, c-format + msgid "One file removed" + msgid_plural "%d files removed" + msgstr[0] "" + msgstr[1] "" + msgstr[2] "" + + Then translate the `msgid_plural' line and fill it in into each +`msgstr' line: + + #, c-format + msgid "One file removed" + msgid_plural "%d files removed" + msgstr[0] "%d slika uklonjenih" + msgstr[1] "%d slika uklonjenih" + msgstr[2] "%d slika uklonjenih" + + Now you can refine the translation so that it matches the plural +form. According to the formula above, `msgstr[0]' is used when the +number ends in 1 but does not end in 11; `msgstr[1]' is used when the +number ends in 2, 3, 4, but not in 12, 13, 14; and `msgstr[2]' is used +in all other cases. With this knowledge, you can refine the +translations: + + #, c-format + msgid "One file removed" + msgid_plural "%d files removed" + msgstr[0] "%d slika je uklonjena" + msgstr[1] "%d datoteke uklonjenih" + msgstr[2] "%d slika uklonjenih" + + You noticed that in the English singular form (`msgid') the number +placeholder could be omitted and replaced by the numeral word "one". +Can you do this in your translation as well? + + msgstr[0] "jednom datotekom je uklonjen" + +Well, it depends on whether `msgstr[0]' applies only to the number 1, +or to other numbers as well. If, according to the plural formula, +`msgstr[0]' applies only to `n == 1', then you can use the specialized +translation without the number placeholder. In our case, however, +`msgstr[0]' also applies to the numbers 21, 31, 41, etc., and therefore +you cannot omit the placeholder. + + +File: gettext.info, Node: Prioritizing messages, Prev: Translating plural forms, Up: Translators + +12.7 Prioritizing messages: How to determine which messages to translate first ============================================================================== A translator sometimes has only a limited amount of time per week to @@ -9266,7 +9619,7 @@ So, here comes a list of files, each one followed by a description of all alterations it needs. Many examples are taken out from the GNU -`gettext' 0.17 distribution itself, or from the GNU `hello' +`gettext' 0.18.1 distribution itself, or from the GNU `hello' distribution (`http://www.franken.de/users/gnu/ke/hello' or `http://www.gnu.franken.de/ke/hello/') You may indeed refer to the source code of the GNU `gettext' and GNU `hello' packages, as they are @@ -9423,7 +9776,7 @@ This is done by a set of lines like these: PACKAGE=gettext - VERSION=0.17 + VERSION=0.18.1 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PACKAGE) @@ -9431,12 +9784,12 @@ or, if you are using GNU `automake', by a line like this: - AM_INIT_AUTOMAKE(gettext, 0.17) + AM_INIT_AUTOMAKE(gettext, 0.18.1) Of course, you replace `gettext' with the name of your package, - and `0.17' by its version numbers, exactly as they should appear + and `0.18.1' by its version numbers, exactly as they should appear in the packaged `tar' file name of your distribution - (`gettext-0.17.tar.gz', here). + (`gettext-0.18.1.tar.gz', here). 2. Check for internationalization support. @@ -9536,17 +9889,17 @@ -------------------------------- If you do not have an `aclocal.m4' file in your distribution, the -simplest is to concatenate the files `codeset.m4', `gettext.m4', -`glibc2.m4', `glibc21.m4', `iconv.m4', `intdiv0.m4', `intl.m4', -`intldir.m4', `intlmacosx.m4', `intmax.m4', `inttypes_h.m4', +simplest is to concatenate the files `codeset.m4', `fcntl-o.m4', +`gettext.m4', `glibc2.m4', `glibc21.m4', `iconv.m4', `intdiv0.m4', +`intl.m4', `intldir.m4', `intlmacosx.m4', `intmax.m4', `inttypes_h.m4', `inttypes-pri.m4', `lcmessage.m4', `lib-ld.m4', `lib-link.m4', `lib-prefix.m4', `lock.m4', `longlong.m4', `nls.m4', `po.m4', `printf-posix.m4', `progtest.m4', `size_max.m4', `stdint_h.m4', -`uintmax_t.m4', `visibility.m4', `wchar_t.m4', `wint_t.m4', `xsize.m4' -from GNU `gettext''s `m4/' directory into a single file. If you have -suppressed the `intl/' directory, only `gettext.m4', `iconv.m4', -`lib-ld.m4', `lib-link.m4', `lib-prefix.m4', `nls.m4', `po.m4', -`progtest.m4' need to be concatenated. +`threadlib.m4', `uintmax_t.m4', `visibility.m4', `wchar_t.m4', +`wint_t.m4', `xsize.m4' from GNU `gettext''s `m4/' directory into a +single file. If you have suppressed the `intl/' directory, only +`gettext.m4', `iconv.m4', `lib-ld.m4', `lib-link.m4', `lib-prefix.m4', +`nls.m4', `po.m4', `progtest.m4' need to be concatenated. If you are not using GNU `automake' 1.8 or newer, you will need to add a file `mkdirp.m4' from a newer automake distribution to the list @@ -9721,7 +10074,14 @@ textdomain (PACKAGE); To make LOCALEDIR known to the program, add the following lines to - `Makefile.in': + `Makefile.in' if you are using Autoconf version 2.60 or newer: + + datadir = @datadir@ + datarootdir= @datarootdir@ + localedir = @localedir@ + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + + or these lines if your version of Autoconf is older than 2.60: datadir = @datadir@ localedir = $(datadir)/locale @@ -9778,8 +10138,9 @@ AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" - for all modules and compilation units together. Furthermore, add - this line to define `localedir': + for all modules and compilation units together. Furthermore, if + you are using an Autoconf version older then 2.60, add this line + to define `localedir': localedir = $(datadir)/locale @@ -10194,7 +10555,7 @@ Instead, he adds to the `configure.ac' or `configure.in' a line of the form - AM_GNU_GETTEXT_VERSION(0.17) + AM_GNU_GETTEXT_VERSION(0.18.1) and adds to the package's pre-build script an invocation of `autopoint'. For everyone who checks out the CVS, this `autopoint' @@ -10253,8 +10614,8 @@ `autopoint' supports the GNU `gettext' versions from 0.10.35 to the -current one, 0.17. In order to apply `autopoint' to a package using a -`gettext' version newer than 0.17, you need to install this same +current one, 0.18.1. In order to apply `autopoint' to a package using +a `gettext' version newer than 0.18.1, you need to install this same version of GNU `gettext' at least. In packages using GNU `automake', an invocation of `autopoint' @@ -10467,7 +10828,9 @@ * perl-format:: Perl Format Strings * php-format:: PHP Format Strings * gcc-internal-format:: GCC internal Format Strings +* gfc-internal-format:: GFC internal Format Strings * qt-format:: Qt Format Strings +* qt-plural-format:: Qt Plural Format Strings * kde-format:: KDE Format Strings * boost-format:: Boost Format Strings @@ -10519,7 +10882,7 @@ --------------------------------- Objective C format strings are like C format strings. They support -an additional format directive: "$@", which when executed consumes an +an additional format directive: "%@", which when executed consumes an argument of type `Object *'.  @@ -10642,7 +11005,9 @@ 15.3.13 Object Pascal Format Strings ------------------------------------ - Where is this documented? + Object Pascal format strings are described in the documentation of +the Free Pascal runtime library, section Format, +`http://www.freepascal.org/docs-html/rtl/sysutils/format.html'.  File: gettext.info, Node: ycp-format, Next: tcl-format, Prev: object-pascal-format, Up: Translators for other Languages @@ -10694,7 +11059,7 @@ `http://www.php.net/manual/en/function.sprintf.php'.  -File: gettext.info, Node: gcc-internal-format, Next: qt-format, Prev: php-format, Up: Translators for other Languages +File: gettext.info, Node: gcc-internal-format, Next: gfc-internal-format, Prev: php-format, Up: Translators for other Languages 15.3.18 GCC internal Format Strings ----------------------------------- @@ -10714,9 +11079,24 @@ const/volatile qualifier.  -File: gettext.info, Node: qt-format, Next: kde-format, Prev: gcc-internal-format, Up: Translators for other Languages +File: gettext.info, Node: gfc-internal-format, Next: qt-format, Prev: gcc-internal-format, Up: Translators for other Languages + +15.3.19 GFC internal Format Strings +----------------------------------- + + These format strings are used inside the GNU Fortran Compiler +sources, that is, the Fortran frontend in the GCC sources. In such a +format string, a directive starts with `%' and is finished by a +specifier: `%' denotes a literal percent sign, `C' denotes the current +source location, `L' denotes a source location, `c' denotes a +character, `s' denotes a string, `i' and `d' denote an integer, `u' +denotes an unsigned integer. `i', `d', and `u' may be preceded by a +size specifier `l'. + + +File: gettext.info, Node: qt-format, Next: qt-plural-format, Prev: gfc-internal-format, Up: Translators for other Languages -15.3.19 Qt Format Strings +15.3.20 Qt Format Strings ------------------------- Qt format strings are described in the documentation of the QString @@ -10725,9 +11105,19 @@ cannot occur more than once in a format string.  -File: gettext.info, Node: kde-format, Next: boost-format, Prev: qt-format, Up: Translators for other Languages +File: gettext.info, Node: qt-plural-format, Next: kde-format, Prev: qt-format, Up: Translators for other Languages + +15.3.21 Qt Format Strings +------------------------- + + Qt format strings are described in the documentation of the +QObject::tr method `file:/usr/lib/qt-4.3.0/doc/html/qobject.html'. In +summary, the only allowed directive is `%n'. + + +File: gettext.info, Node: kde-format, Next: boost-format, Prev: qt-plural-format, Up: Translators for other Languages -15.3.20 KDE Format Strings +15.3.22 KDE Format Strings -------------------------- KDE 4 format strings are defined as follows: A directive consists of @@ -10738,7 +11128,7 @@  File: gettext.info, Node: boost-format, Prev: kde-format, Up: Translators for other Languages -15.3.21 Boost Format Strings +15.3.23 Boost Format Strings ---------------------------- Boost format strings are described in the documentation of the @@ -11092,6 +11482,10 @@ command. But it does not simply copy its arguments to stdout. Instead those messages found in the selected catalog are translated. + Note: `xgettext' supports only the one-argument form of the +`gettext' invocation, where no options are present and the TEXTDOMAIN +is implicit, from the environment. +  File: gettext.info, Node: ngettext Invocation, Next: envsubst Invocation, Prev: gettext Invocation, Up: sh @@ -11144,6 +11538,10 @@ not found in the regular directory, another location can be specified with the environment variable `TEXTDOMAINDIR'. + Note: `xgettext' supports only the three-arguments form of the +`ngettext' invocation, where no options are present and the TEXTDOMAIN +is implicit, from the environment. +  File: gettext.info, Node: envsubst Invocation, Next: eval_gettext Invocation, Prev: ngettext Invocation, Up: sh @@ -11314,6 +11712,29 @@ An example is available in the `examples' directory: `hello-python'. + A note about format strings: Python supports format strings with +unnamed arguments, such as `'...%d...'', and format strings with named +arguments, such as `'...%(ident)d...''. The latter are preferable for +internationalized programs, for two reasons: + + * When a format string takes more than one argument, the translator + can provide a translation that uses the arguments in a different + order, if the format string uses named arguments. For example, + the translator can reformulate + "'%(volume)s' has only %(freespace)d bytes free." + to + "Only %(freespace)d bytes free on '%(volume)s'." + Additionally, the identifiers also provide some context to the + translator. + + * In the context of plural forms, the format string used for the + singular form does not use the numeric argument in many languages. + Even in English, one prefers to write `"one hour"' instead of `"1 + hour"'. Omitting individual arguments from format strings like + this is only possible with the named argument syntax. (With + unnamed arguments, Python - unlike C - verifies that the format + string uses all supplied arguments.) +  File: gettext.info, Node: Common Lisp, Next: clisp C, Prev: Python, Up: List of Programming Languages @@ -12484,6 +12905,41 @@ If a slash is really a division sign but mis-interpreted as a pattern match, the rest of the input file is most probably parsed incorrectly. + There are certain cases, where the ambiguity cannot be resolved at +all: + + $x = wantarray ? 1 : 0; + + The Perl built-in function `wantarray' does not accept any arguments. +The Perl parser therefore knows that the question mark does not start a +regular expression but is the ternary conditional operator. + + sub wantarrays {} + $x = wantarrays ? 1 : 0; + + Now the situation is different. The function `wantarrays' takes a +variable number of arguments (like any non-prototyped Perl function). +The question mark is now the delimiter of a pattern match, and hence +the piece of code does not compile. + + sub wantarrays() {} + $x = wantarrays ? 1 : 0; + + Now the function is prototyped, Perl knows that it does not accept +any arguments, and the question mark is therefore interpreted as the +ternaray operator again. But that unfortunately outsmarts `xgettext'. + + The Perl parser in `xgettext' cannot know whether a function has a +prototype and what that prototype would look like. It therefore makes +an educated guess. If a function is known to be a Perl built-in and +this function does not accept any arguments, a following question mark +or slash is treated as an operator, otherwise as the delimiter of a +following regular expression. The Perl built-ins that do not accept +arguments are `wantarray', `fork', `time', `times', `getlogin', +`getppid', `getpwent', `getgrent', `gethostent', `getnetent', +`getprotoent', `getservent', `setpwent', `setgrent', `endpwent', +`endgrent', `endhostent', `endnetent', `endprotoent', and `endservent'. + If you find that `xgettext' fails to extract strings from portions of your sources, you should therefore look out for slashes and/or question marks preceding these sections. You may have come across a @@ -12491,6 +12947,15 @@ bug). In the meantime you should consider to reformulate your code in a manner less challenging to `xgettext'. + In particular, if the parser is too dumb to see that a function does +not accept arguments, use parentheses: + + $x = somefunc() ? 1 : 0; + $y = (somefunc) ? 1 : 0; + + In fact the Perl parser itself has similar problems and warns you +about such constructs. +  File: gettext.info, Node: Default Keywords, Next: Special Keywords, Prev: General Problems, Up: Perl @@ -13350,9 +13815,6 @@ `ab' Abkhazian. -`ad' - Adangme. - `ae' Avestan. @@ -13387,7 +13849,7 @@ Bashkir. `be' - Byelorussian; Belarusian. + Belarusian. `bg' Bulgarian. @@ -13498,7 +13960,7 @@ Irish. `gd' - Scots; Gaelic. + Scottish Gaelic. `gl' Galician. @@ -13546,13 +14008,13 @@ Indonesian (formerly in). `ie' - Interlingue. + Interlingue; Occidental. `ig' Igbo. `ii' - Sichuan Yi. + Sichuan Yi; Nuosu. `ik' Inupiak; Inupiaq. @@ -13594,7 +14056,7 @@ Kalaallisut; Greenlandic. `km' - Khmer; Cambodian. + Central Khmer; Cambodian. `kn' Kannada. @@ -13738,7 +14200,7 @@ Polish. `ps' - Pashto, Pushto. + Pashto; Pushto. `pt' Portuguese. @@ -13747,7 +14209,7 @@ Quechua. `rm' - Rhaeto-Romance. + Romansh. `rn' Rundi; Kirundi. @@ -13918,15 +14380,15 @@ `awa' Awadhi. -`bad' - Banda. - `bal' Baluchi. `ban' Balinese. +`bej' + Beja; Bedawiyet. + `bem' Bemba. @@ -13937,10 +14399,7 @@ Bikol. `bin' - Bini. - -`btk' - Batak (Indonesia). + Bini; Edo. `bug' Buginese. @@ -13964,7 +14423,7 @@ Gondi. `gsw' - Alemani; Swiss German. + Swiss German; Alemannic; Alsatian. `hil' Hiligaynon. @@ -14045,7 +14504,7 @@ Pangasinan. `pam' - Pampanga. + Pampanga; Kapampangan. `raj' Rajasthani. @@ -16228,7 +16687,7 @@ * msguniq: msguniq Invocation. (line 6) * ngettext <1>: ngettext Invocation. (line 6) * ngettext: sh. (line 19) -* recode-sr-latin: msgfilter Invocation. (line 85) +* recode-sr-latin: msgfilter Invocation. (line 92) * xgettext: xgettext Invocation. (line 6)  @@ -16242,20 +16701,20 @@ * --add-comments, xgettext option: xgettext Invocation. (line 97) * --add-location, msgattrib option: msgattrib Invocation. - (line 127) -* --add-location, msgcat option: msgcat Invocation. (line 114) -* --add-location, msgcomm option: msgcomm Invocation. (line 95) -* --add-location, msgconv option: msgconv Invocation. (line 74) -* --add-location, msgen option: msgen Invocation. (line 70) + (line 136) +* --add-location, msgcat option: msgcat Invocation. (line 119) +* --add-location, msgcomm option: msgcomm Invocation. (line 104) +* --add-location, msgconv option: msgconv Invocation. (line 83) +* --add-location, msgen option: msgen Invocation. (line 85) * --add-location, msgfilter option: msgfilter Invocation. - (line 128) -* --add-location, msggrep option: msggrep Invocation. (line 152) -* --add-location, msgmerge option: msgmerge Invocation. (line 139) -* --add-location, msguniq option: msguniq Invocation. (line 92) -* --add-location, xgettext option: xgettext Invocation. (line 286) + (line 144) +* --add-location, msggrep option: msggrep Invocation. (line 161) +* --add-location, msgmerge option: msgmerge Invocation. (line 155) +* --add-location, msguniq option: msguniq Invocation. (line 101) +* --add-location, xgettext option: xgettext Invocation. (line 297) * --alignment, msgfmt option: msgfmt Invocation. (line 209) * --backup, msgmerge option: msgmerge Invocation. (line 65) -* --boost, xgettext option: xgettext Invocation. (line 252) +* --boost, xgettext option: xgettext Invocation. (line 254) * --c++, xgettext option: xgettext Invocation. (line 64) * --check, msgfmt option: msgfmt Invocation. (line 146) * --check-accelerators, msgfmt option: msgfmt Invocation. (line 187) @@ -16269,16 +16728,29 @@ (line 77) * --clear-previous, msgattrib option: msgattrib Invocation. (line 80) +* --color, msgattrib option: msgattrib Invocation. + (line 117) * --color, msgcat option <1>: The --color option. (line 6) -* --color, msgcat option: msgcat Invocation. (line 95) +* --color, msgcat option: msgcat Invocation. (line 100) +* --color, msgcomm option: msgcomm Invocation. (line 85) +* --color, msgconv option: msgconv Invocation. (line 65) +* --color, msgen option: msgen Invocation. (line 67) +* --color, msgfilter option: msgfilter Invocation. + (line 122) +* --color, msggrep option: msggrep Invocation. (line 144) +* --color, msginit option: msginit Invocation. (line 63) +* --color, msgmerge option: msgmerge Invocation. (line 137) +* --color, msgunfmt option: msgunfmt Invocation. (line 109) +* --color, msguniq option: msguniq Invocation. (line 82) +* --color, xgettext option: xgettext Invocation. (line 276) * --comment, msggrep option: msggrep Invocation. (line 93) * --compendium, msgmerge option: msgmerge Invocation. (line 36) -* --copyright-holder, xgettext option: xgettext Invocation. (line 336) +* --copyright-holder, xgettext option: xgettext Invocation. (line 347) * --csharp, msgfmt option: msgfmt Invocation. (line 36) * --csharp, msgunfmt option: msgunfmt Invocation. (line 19) * --csharp-resources, msgfmt option: msgfmt Invocation. (line 40) * --csharp-resources, msgunfmt option: msgunfmt Invocation. (line 23) -* --debug, xgettext option: xgettext Invocation. (line 256) +* --debug, xgettext option: xgettext Invocation. (line 258) * --default-domain, xgettext option: xgettext Invocation. (line 36) * --directory, msgattrib option: msgattrib Invocation. (line 19) @@ -16289,7 +16761,7 @@ * --directory, msgen option: msgen Invocation. (line 25) * --directory, msgexec option: msgexec Invocation. (line 44) * --directory, msgfilter option: msgfilter Invocation. - (line 20) + (line 27) * --directory, msgfmt option: msgfmt Invocation. (line 18) * --directory, msggrep option: msggrep Invocation. (line 19) * --directory, msgmerge option: msgmerge Invocation. (line 30) @@ -16304,36 +16776,36 @@ (line 72) * --exclude-file, xgettext option: xgettext Invocation. (line 92) * --expression, msgfilter option: msgfilter Invocation. - (line 70) + (line 77) * --extended-regexp, msggrep option: msggrep Invocation. (line 101) -* --extract-all, xgettext option: xgettext Invocation. (line 106) +* --extract-all, xgettext option: xgettext Invocation. (line 107) * --extracted-comment, msggrep option: msggrep Invocation. (line 97) * --file, msgfilter option: msgfilter Invocation. - (line 74) + (line 81) * --file, msggrep option: msggrep Invocation. (line 113) * --files-from, msgcat option: msgcat Invocation. (line 27) * --files-from, msgcomm option: msgcomm Invocation. (line 25) * --files-from, xgettext option: xgettext Invocation. (line 19) * --fixed-strings, msggrep option: msggrep Invocation. (line 105) -* --flag, xgettext option: xgettext Invocation. (line 199) +* --flag, xgettext option: xgettext Invocation. (line 201) * --force, autopoint option: autopoint Invocation. (line 20) * --force, gettextize option: gettextize Invocation. (line 40) * --force-po, msgattrib option: msgattrib Invocation. - (line 116) -* --force-po, msgcat option: msgcat Invocation. (line 103) -* --force-po, msgcomm option: msgcomm Invocation. (line 84) -* --force-po, msgconv option: msgconv Invocation. (line 64) -* --force-po, msgen option: msgen Invocation. (line 60) + (line 125) +* --force-po, msgcat option: msgcat Invocation. (line 108) +* --force-po, msgcomm option: msgcomm Invocation. (line 93) +* --force-po, msgconv option: msgconv Invocation. (line 73) +* --force-po, msgen option: msgen Invocation. (line 75) * --force-po, msgfilter option: msgfilter Invocation. - (line 114) -* --force-po, msggrep option: msggrep Invocation. (line 143) -* --force-po, msgmerge option: msgmerge Invocation. (line 129) -* --force-po, msgunfmt option: msgunfmt Invocation. (line 108) -* --force-po, msguniq option: msguniq Invocation. (line 81) -* --force-po, xgettext option: xgettext Invocation. (line 273) -* --foreign-user, xgettext option: xgettext Invocation. (line 351) + (line 130) +* --force-po, msggrep option: msggrep Invocation. (line 152) +* --force-po, msgmerge option: msgmerge Invocation. (line 145) +* --force-po, msgunfmt option: msgunfmt Invocation. (line 117) +* --force-po, msguniq option: msguniq Invocation. (line 90) +* --force-po, xgettext option: xgettext Invocation. (line 284) +* --foreign-user, xgettext option: xgettext Invocation. (line 362) * --from-code, xgettext option: xgettext Invocation. (line 74) * --fuzzy, msgattrib option: msgattrib Invocation. (line 91) @@ -16344,42 +16816,42 @@ * --help, gettextize option: gettextize Invocation. (line 77) * --help, msgattrib option: msgattrib Invocation. - (line 172) -* --help, msgcat option: msgcat Invocation. (line 159) -* --help, msgcmp option: msgcmp Invocation. (line 67) -* --help, msgcomm option: msgcomm Invocation. (line 143) -* --help, msgconv option: msgconv Invocation. (line 119) -* --help, msgen option: msgen Invocation. (line 115) + (line 181) +* --help, msgcat option: msgcat Invocation. (line 164) +* --help, msgcmp option: msgcmp Invocation. (line 72) +* --help, msgcomm option: msgcomm Invocation. (line 152) +* --help, msgconv option: msgconv Invocation. (line 128) +* --help, msgen option: msgen Invocation. (line 130) * --help, msgexec option: msgexec Invocation. (line 69) * --help, msgfilter option: msgfilter Invocation. - (line 173) + (line 189) * --help, msgfmt option: msgfmt Invocation. (line 222) -* --help, msggrep option: msggrep Invocation. (line 195) -* --help, msginit option: msginit Invocation. (line 90) -* --help, msgmerge option: msgmerge Invocation. (line 184) -* --help, msgunfmt option: msgunfmt Invocation. (line 153) -* --help, msguniq option: msguniq Invocation. (line 137) +* --help, msggrep option: msggrep Invocation. (line 204) +* --help, msginit option: msginit Invocation. (line 99) +* --help, msgmerge option: msgmerge Invocation. (line 200) +* --help, msgunfmt option: msgunfmt Invocation. (line 162) +* --help, msguniq option: msguniq Invocation. (line 146) * --help, ngettext option: ngettext Invocation. (line 31) -* --help, xgettext option: xgettext Invocation. (line 404) +* --help, xgettext option: xgettext Invocation. (line 415) * --ignore-case, msggrep option: msggrep Invocation. (line 117) * --ignore-file, msgattrib option: msgattrib Invocation. (line 87) * --indent, msgattrib option: msgattrib Invocation. - (line 120) -* --indent, msgcat option: msgcat Invocation. (line 107) -* --indent, msgcomm option: msgcomm Invocation. (line 88) -* --indent, msgconv option: msgconv Invocation. (line 68) -* --indent, msgen option: msgen Invocation. (line 64) + (line 129) +* --indent, msgcat option: msgcat Invocation. (line 112) +* --indent, msgcomm option: msgcomm Invocation. (line 97) +* --indent, msgconv option: msgconv Invocation. (line 77) +* --indent, msgen option: msgen Invocation. (line 79) * --indent, msgfilter option: msgfilter Invocation. - (line 117) -* --indent, msggrep option: msggrep Invocation. (line 146) -* --indent, msgmerge option: msgmerge Invocation. (line 133) -* --indent, msgunfmt option: msgunfmt Invocation. (line 112) -* --indent, msguniq option: msguniq Invocation. (line 85) -* --indent, xgettext option: xgettext Invocation. (line 277) + (line 133) +* --indent, msggrep option: msggrep Invocation. (line 155) +* --indent, msgmerge option: msgmerge Invocation. (line 149) +* --indent, msgunfmt option: msgunfmt Invocation. (line 121) +* --indent, msguniq option: msguniq Invocation. (line 94) +* --indent, xgettext option: xgettext Invocation. (line 288) * --input, msgexec option: msgexec Invocation. (line 40) * --input, msgfilter option: msgfilter Invocation. - (line 16) + (line 23) * --input, msginit option: msginit Invocation. (line 16) * --intl, gettextize option: gettextize Invocation. (line 43) @@ -16388,10 +16860,13 @@ * --java, msgunfmt option: msgunfmt Invocation. (line 16) * --java2, msgfmt option: msgfmt Invocation. (line 33) * --join-existing, xgettext option: xgettext Invocation. (line 88) -* --kde, xgettext option: xgettext Invocation. (line 248) +* --kde, xgettext option: xgettext Invocation. (line 250) * --keep-header, msgfilter option: msgfilter Invocation. - (line 120) -* --keyword, xgettext option: xgettext Invocation. (line 114) + (line 136) +* --keyword, xgettext option: xgettext Invocation. (line 115) +* --lang, msgcat option <1>: msgen Invocation. (line 60) +* --lang, msgcat option <2>: msgcat Invocation. (line 94) +* --lang, msgcat option: msgmerge Invocation. (line 129) * --language, xgettext option: xgettext Invocation. (line 56) * --less-than, msgcat option: msgcat Invocation. (line 55) * --less-than, msgcomm option: msgcomm Invocation. (line 53) @@ -16403,51 +16878,52 @@ * --more-than, msgcomm option: msgcomm Invocation. (line 58) * --msgctxt, msggrep option: msggrep Invocation. (line 81) * --msgid, msggrep option: msggrep Invocation. (line 85) -* --msgid-bugs-address, xgettext option: xgettext Invocation. (line 364) +* --msgid-bugs-address, xgettext option: xgettext Invocation. (line 375) * --msgstr, msggrep option: msggrep Invocation. (line 89) -* --msgstr-prefix, xgettext option: xgettext Invocation. (line 392) -* --msgstr-suffix, xgettext option: xgettext Invocation. (line 396) +* --msgstr-prefix, xgettext option: xgettext Invocation. (line 403) +* --msgstr-suffix, xgettext option: xgettext Invocation. (line 407) * --multi-domain, msgcmp option: msgcmp Invocation. (line 36) * --multi-domain, msgmerge option: msgmerge Invocation. (line 101) * --no-changelog, gettextize option: gettextize Invocation. (line 58) * --no-fuzzy, msgattrib option: msgattrib Invocation. (line 47) +* --no-fuzzy-matching, msgcmp option: msgcmp Invocation. (line 40) * --no-fuzzy-matching, msgmerge option: msgmerge Invocation. (line 105) * --no-hash, msgfmt option: msgfmt Invocation. (line 212) * --no-location, msgattrib option: msgattrib Invocation. - (line 123) -* --no-location, msgcat option: msgcat Invocation. (line 110) -* --no-location, msgcomm option: msgcomm Invocation. (line 91) -* --no-location, msgconv option: msgconv Invocation. (line 71) -* --no-location, msgen option: msgen Invocation. (line 67) + (line 132) +* --no-location, msgcat option: msgcat Invocation. (line 115) +* --no-location, msgcomm option: msgcomm Invocation. (line 100) +* --no-location, msgconv option: msgconv Invocation. (line 80) +* --no-location, msgen option: msgen Invocation. (line 82) * --no-location, msgfilter option: msgfilter Invocation. - (line 125) -* --no-location, msggrep option: msggrep Invocation. (line 149) -* --no-location, msgmerge option: msgmerge Invocation. (line 136) -* --no-location, msguniq option: msguniq Invocation. (line 88) -* --no-location, xgettext option: xgettext Invocation. (line 280) + (line 141) +* --no-location, msggrep option: msggrep Invocation. (line 158) +* --no-location, msgmerge option: msgmerge Invocation. (line 152) +* --no-location, msguniq option: msguniq Invocation. (line 97) +* --no-location, xgettext option: xgettext Invocation. (line 291) * --no-obsolete, msgattrib option: msgattrib Invocation. (line 53) * --no-translator, msginit option: msginit Invocation. (line 58) * --no-wrap, msgattrib option: msgattrib Invocation. - (line 152) -* --no-wrap, msgcat option: msgcat Invocation. (line 139) -* --no-wrap, msgcomm option: msgcomm Invocation. (line 120) -* --no-wrap, msgconv option: msgconv Invocation. (line 99) -* --no-wrap, msgen option: msgen Invocation. (line 95) + (line 161) +* --no-wrap, msgcat option: msgcat Invocation. (line 144) +* --no-wrap, msgcomm option: msgcomm Invocation. (line 129) +* --no-wrap, msgconv option: msgconv Invocation. (line 108) +* --no-wrap, msgen option: msgen Invocation. (line 110) * --no-wrap, msgfilter option: msgfilter Invocation. - (line 153) -* --no-wrap, msggrep option: msggrep Invocation. (line 177) -* --no-wrap, msginit option: msginit Invocation. (line 79) -* --no-wrap, msgmerge option: msgmerge Invocation. (line 164) -* --no-wrap, msgunfmt option: msgunfmt Invocation. (line 137) -* --no-wrap, msguniq option: msguniq Invocation. (line 117) -* --no-wrap, xgettext option: xgettext Invocation. (line 310) + (line 169) +* --no-wrap, msggrep option: msggrep Invocation. (line 186) +* --no-wrap, msginit option: msginit Invocation. (line 88) +* --no-wrap, msgmerge option: msgmerge Invocation. (line 180) +* --no-wrap, msgunfmt option: msgunfmt Invocation. (line 146) +* --no-wrap, msguniq option: msguniq Invocation. (line 126) +* --no-wrap, xgettext option: xgettext Invocation. (line 321) * --obsolete, msgattrib option: msgattrib Invocation. (line 95) -* --omit-header, msgcomm option: msgcomm Invocation. (line 135) -* --omit-header, xgettext option: xgettext Invocation. (line 325) +* --omit-header, msgcomm option: msgcomm Invocation. (line 144) +* --omit-header, xgettext option: xgettext Invocation. (line 336) * --only-file, msgattrib option: msgattrib Invocation. (line 83) * --only-fuzzy, msgattrib option: msgattrib Invocation. @@ -16463,52 +16939,52 @@ * --output-file, msgconv option: msgconv Invocation. (line 31) * --output-file, msgen option: msgen Invocation. (line 37) * --output-file, msgfilter option: msgfilter Invocation. - (line 32) + (line 39) * --output-file, msgfmt option: msgfmt Invocation. (line 54) * --output-file, msggrep option: msggrep Invocation. (line 31) * --output-file, msginit option: msginit Invocation. (line 27) * --output-file, msgmerge option: msgmerge Invocation. (line 53) * --output-file, msgunfmt option: msgunfmt Invocation. (line 98) * --output-file, msguniq option: msguniq Invocation. (line 38) -* --package-name, xgettext option: xgettext Invocation. (line 357) -* --package-version, xgettext option: xgettext Invocation. (line 360) +* --package-name, xgettext option: xgettext Invocation. (line 368) +* --package-version, xgettext option: xgettext Invocation. (line 371) * --po-dir, gettextize option: gettextize Invocation. (line 51) * --previous, msgmerge option: msgmerge Invocation. (line 109) * --properties-input, msgattrib option: msgattrib Invocation. (line 104) * --properties-input, msgcat option: msgcat Invocation. (line 74) -* --properties-input, msgcmp option: msgcmp Invocation. (line 54) +* --properties-input, msgcmp option: msgcmp Invocation. (line 59) * --properties-input, msgcomm option: msgcomm Invocation. (line 72) * --properties-input, msgconv option: msgconv Invocation. (line 52) * --properties-input, msgen option: msgen Invocation. (line 48) * --properties-input, msgexec option: msgexec Invocation. (line 56) * --properties-input, msgfilter option: msgfilter Invocation. - (line 102) + (line 109) * --properties-input, msgfmt option: msgfmt Invocation. (line 133) * --properties-input, msggrep option: msggrep Invocation. (line 131) * --properties-input, msginit option: msginit Invocation. (line 39) * --properties-input, msgmerge option: msgmerge Invocation. (line 117) * --properties-input, msguniq option: msguniq Invocation. (line 61) * --properties-output, msgattrib option: msgattrib Invocation. - (line 136) -* --properties-output, msgcat option: msgcat Invocation. (line 123) -* --properties-output, msgcomm option: msgcomm Invocation. (line 104) -* --properties-output, msgconv option: msgconv Invocation. (line 83) -* --properties-output, msgen option: msgen Invocation. (line 79) + (line 145) +* --properties-output, msgcat option: msgcat Invocation. (line 128) +* --properties-output, msgcomm option: msgcomm Invocation. (line 113) +* --properties-output, msgconv option: msgconv Invocation. (line 92) +* --properties-output, msgen option: msgen Invocation. (line 94) * --properties-output, msgfilter option: msgfilter Invocation. - (line 137) -* --properties-output, msggrep option: msggrep Invocation. (line 161) -* --properties-output, msginit option: msginit Invocation. (line 63) -* --properties-output, msgmerge option: msgmerge Invocation. (line 148) -* --properties-output, msgunfmt option: msgunfmt Invocation. (line 121) -* --properties-output, msguniq option: msguniq Invocation. (line 101) -* --properties-output, xgettext option: xgettext Invocation. (line 294) + (line 153) +* --properties-output, msggrep option: msggrep Invocation. (line 170) +* --properties-output, msginit option: msginit Invocation. (line 72) +* --properties-output, msgmerge option: msgmerge Invocation. (line 164) +* --properties-output, msgunfmt option: msgunfmt Invocation. (line 130) +* --properties-output, msguniq option: msguniq Invocation. (line 110) +* --properties-output, xgettext option: xgettext Invocation. (line 305) * --qt, msgfmt option: msgfmt Invocation. (line 46) -* --qt, xgettext option: xgettext Invocation. (line 244) +* --qt, xgettext option: xgettext Invocation. (line 246) * --quiet, msgfilter option: msgfilter Invocation. - (line 79) -* --quiet, msgmerge option: msgmerge Invocation. (line 197) + (line 86) +* --quiet, msgmerge option: msgmerge Invocation. (line 213) * --regexp=, msggrep option: msggrep Invocation. (line 109) * --repeated, msguniq option: msguniq Invocation. (line 49) * --resource, msgfmt option: msgfmt Invocation. (line 75) @@ -16518,57 +16994,57 @@ * --set-obsolete, msgattrib option: msgattrib Invocation. (line 74) * --silent, msgfilter option: msgfilter Invocation. - (line 79) -* --silent, msgmerge option: msgmerge Invocation. (line 197) + (line 86) +* --silent, msgmerge option: msgmerge Invocation. (line 213) * --sort-by-file, msgattrib option: msgattrib Invocation. - (line 164) -* --sort-by-file, msgcat option: msgcat Invocation. (line 151) -* --sort-by-file, msgcomm option: msgcomm Invocation. (line 132) -* --sort-by-file, msgconv option: msgconv Invocation. (line 111) -* --sort-by-file, msgen option: msgen Invocation. (line 107) + (line 173) +* --sort-by-file, msgcat option: msgcat Invocation. (line 156) +* --sort-by-file, msgcomm option: msgcomm Invocation. (line 141) +* --sort-by-file, msgconv option: msgconv Invocation. (line 120) +* --sort-by-file, msgen option: msgen Invocation. (line 122) * --sort-by-file, msgfilter option: msgfilter Invocation. - (line 165) -* --sort-by-file, msggrep option: msggrep Invocation. (line 187) -* --sort-by-file, msgmerge option: msgmerge Invocation. (line 176) -* --sort-by-file, msguniq option: msguniq Invocation. (line 129) -* --sort-by-file, xgettext option: xgettext Invocation. (line 322) + (line 181) +* --sort-by-file, msggrep option: msggrep Invocation. (line 196) +* --sort-by-file, msgmerge option: msgmerge Invocation. (line 192) +* --sort-by-file, msguniq option: msguniq Invocation. (line 138) +* --sort-by-file, xgettext option: xgettext Invocation. (line 333) * --sort-output, msgattrib option: msgattrib Invocation. - (line 159) -* --sort-output, msgcat option: msgcat Invocation. (line 146) -* --sort-output, msgcomm option: msgcomm Invocation. (line 127) -* --sort-output, msgconv option: msgconv Invocation. (line 106) -* --sort-output, msgen option: msgen Invocation. (line 102) + (line 168) +* --sort-output, msgcat option: msgcat Invocation. (line 151) +* --sort-output, msgcomm option: msgcomm Invocation. (line 136) +* --sort-output, msgconv option: msgconv Invocation. (line 115) +* --sort-output, msgen option: msgen Invocation. (line 117) * --sort-output, msgfilter option: msgfilter Invocation. - (line 160) -* --sort-output, msggrep option: msggrep Invocation. (line 183) -* --sort-output, msgmerge option: msgmerge Invocation. (line 171) -* --sort-output, msgunfmt option: msgunfmt Invocation. (line 144) -* --sort-output, msguniq option: msguniq Invocation. (line 124) -* --sort-output, xgettext option: xgettext Invocation. (line 317) + (line 176) +* --sort-output, msggrep option: msggrep Invocation. (line 192) +* --sort-output, msgmerge option: msgmerge Invocation. (line 187) +* --sort-output, msgunfmt option: msgunfmt Invocation. (line 153) +* --sort-output, msguniq option: msguniq Invocation. (line 133) +* --sort-output, xgettext option: xgettext Invocation. (line 328) * --statistics, msgfmt option: msgfmt Invocation. (line 229) * --strict, msgattrib option: msgattrib Invocation. - (line 130) -* --strict, msgcat option: msgcat Invocation. (line 117) -* --strict, msgcomm option: msgcomm Invocation. (line 98) -* --strict, msgconv option: msgconv Invocation. (line 77) -* --strict, msgen option: msgen Invocation. (line 73) + (line 139) +* --strict, msgcat option: msgcat Invocation. (line 122) +* --strict, msgcomm option: msgcomm Invocation. (line 107) +* --strict, msgconv option: msgconv Invocation. (line 86) +* --strict, msgen option: msgen Invocation. (line 88) * --strict, msgfilter option: msgfilter Invocation. - (line 131) + (line 147) * --strict, msgfmt option: msgfmt Invocation. (line 57) -* --strict, msggrep option: msggrep Invocation. (line 155) -* --strict, msgmerge option: msgmerge Invocation. (line 142) -* --strict, msgunfmt option: msgunfmt Invocation. (line 115) -* --strict, msguniq option: msguniq Invocation. (line 95) -* --strict, xgettext option: xgettext Invocation. (line 289) +* --strict, msggrep option: msggrep Invocation. (line 164) +* --strict, msgmerge option: msgmerge Invocation. (line 158) +* --strict, msgunfmt option: msgunfmt Invocation. (line 124) +* --strict, msguniq option: msguniq Invocation. (line 104) +* --strict, xgettext option: xgettext Invocation. (line 300) * --stringtable-input, msgattrib option: msgattrib Invocation. (line 108) * --stringtable-input, msgcat option: msgcat Invocation. (line 78) -* --stringtable-input, msgcmp option: msgcmp Invocation. (line 58) +* --stringtable-input, msgcmp option: msgcmp Invocation. (line 63) * --stringtable-input, msgcomm option: msgcomm Invocation. (line 76) * --stringtable-input, msgen option: msgen Invocation. (line 52) * --stringtable-input, msgexec option: msgexec Invocation. (line 60) * --stringtable-input, msgfilter option: msgfilter Invocation. - (line 106) + (line 113) * --stringtable-input, msgfmt option: msgfmt Invocation. (line 137) * --stringtable-input, msggrep option: msggrep Invocation. (line 135) * --stringtable-input, msginit option: msginit Invocation. (line 43) @@ -16576,21 +17052,34 @@ * --stringtable-input, msgonv option: msgconv Invocation. (line 56) * --stringtable-input, msguniq option: msguniq Invocation. (line 65) * --stringtable-output, msgattrib option: msgattrib Invocation. - (line 141) -* --stringtable-output, msgcat option: msgcat Invocation. (line 128) -* --stringtable-output, msgcomm option: msgcomm Invocation. (line 109) -* --stringtable-output, msgconv option: msgconv Invocation. (line 88) -* --stringtable-output, msgen option: msgen Invocation. (line 84) + (line 150) +* --stringtable-output, msgcat option: msgcat Invocation. (line 133) +* --stringtable-output, msgcomm option: msgcomm Invocation. (line 118) +* --stringtable-output, msgconv option: msgconv Invocation. (line 97) +* --stringtable-output, msgen option: msgen Invocation. (line 99) * --stringtable-output, msgfilter option: msgfilter Invocation. - (line 142) -* --stringtable-output, msggrep option: msggrep Invocation. (line 166) -* --stringtable-output, msginit option: msginit Invocation. (line 68) -* --stringtable-output, msgmerge option: msgmerge Invocation. (line 153) -* --stringtable-output, msgunfmt option: msgunfmt Invocation. (line 126) -* --stringtable-output, msguniq option: msguniq Invocation. (line 106) -* --stringtable-output, xgettext option: xgettext Invocation. (line 299) + (line 158) +* --stringtable-output, msggrep option: msggrep Invocation. (line 175) +* --stringtable-output, msginit option: msginit Invocation. (line 77) +* --stringtable-output, msgmerge option: msgmerge Invocation. (line 169) +* --stringtable-output, msgunfmt option: msgunfmt Invocation. (line 135) +* --stringtable-output, msguniq option: msguniq Invocation. (line 115) +* --stringtable-output, xgettext option: xgettext Invocation. (line 310) +* --style, msgattrib option: msgattrib Invocation. + (line 121) * --style, msgcat option <1>: The --style option. (line 6) -* --style, msgcat option: msgcat Invocation. (line 99) +* --style, msgcat option: msgcat Invocation. (line 104) +* --style, msgcomm option: msgcomm Invocation. (line 89) +* --style, msgconv option: msgconv Invocation. (line 69) +* --style, msgen option: msgen Invocation. (line 71) +* --style, msgfilter option: msgfilter Invocation. + (line 126) +* --style, msggrep option: msggrep Invocation. (line 148) +* --style, msginit option: msginit Invocation. (line 67) +* --style, msgmerge option: msgmerge Invocation. (line 141) +* --style, msgunfmt option: msgunfmt Invocation. (line 113) +* --style, msguniq option: msguniq Invocation. (line 86) +* --style, xgettext option: xgettext Invocation. (line 280) * --suffix, msgmerge option: msgmerge Invocation. (line 68) * --symlink, gettextize option: gettextize Invocation. (line 63) @@ -16601,7 +17090,7 @@ * --to-code, msguniq option: msguniq Invocation. (line 74) * --translated, msgattrib option: msgattrib Invocation. (line 41) -* --trigraphs, xgettext option: xgettext Invocation. (line 239) +* --trigraphs, xgettext option: xgettext Invocation. (line 241) * --unique, msgcat option: msgcat Invocation. (line 65) * --unique, msgcomm option: msgcomm Invocation. (line 63) * --unique, msguniq option: msguniq Invocation. (line 53) @@ -16610,13 +17099,13 @@ * --update, msgmerge option: msgmerge Invocation. (line 45) * --use-first, msgcat option: msgcat Invocation. (line 90) * --use-first, msguniq option: msguniq Invocation. (line 77) -* --use-fuzzy, msgcmp option: msgcmp Invocation. (line 39) +* --use-fuzzy, msgcmp option: msgcmp Invocation. (line 44) * --use-fuzzy, msgfmt option: msgfmt Invocation. (line 199) -* --use-untranslated, msgcmp option: msgcmp Invocation. (line 45) +* --use-untranslated, msgcmp option: msgcmp Invocation. (line 50) * --variables, envsubst option: envsubst Invocation. (line 15) -* --verbose, msgfmt option: msgfmt Invocation. (line 233) -* --verbose, msgmerge option: msgmerge Invocation. (line 192) -* --verbose, msgunfmt option: msgunfmt Invocation. (line 161) +* --verbose, msgfmt option: msgfmt Invocation. (line 235) +* --verbose, msgmerge option: msgmerge Invocation. (line 208) +* --verbose, msgunfmt option: msgunfmt Invocation. (line 170) * --version, autopoint option: autopoint Invocation. (line 36) * --version, envsubst option: envsubst Invocation. (line 26) @@ -16624,43 +17113,43 @@ * --version, gettextize option: gettextize Invocation. (line 80) * --version, msgattrib option: msgattrib Invocation. - (line 176) -* --version, msgcat option: msgcat Invocation. (line 163) -* --version, msgcmp option: msgcmp Invocation. (line 71) -* --version, msgcomm option: msgcomm Invocation. (line 147) -* --version, msgconv option: msgconv Invocation. (line 123) -* --version, msgen option: msgen Invocation. (line 119) + (line 185) +* --version, msgcat option: msgcat Invocation. (line 168) +* --version, msgcmp option: msgcmp Invocation. (line 76) +* --version, msgcomm option: msgcomm Invocation. (line 156) +* --version, msgconv option: msgconv Invocation. (line 132) +* --version, msgen option: msgen Invocation. (line 134) * --version, msgexec option: msgexec Invocation. (line 73) * --version, msgfilter option: msgfilter Invocation. - (line 177) + (line 193) * --version, msgfmt option: msgfmt Invocation. (line 226) -* --version, msggrep option: msggrep Invocation. (line 199) -* --version, msginit option: msginit Invocation. (line 94) -* --version, msgmerge option: msgmerge Invocation. (line 188) -* --version, msgunfmt option: msgunfmt Invocation. (line 157) -* --version, msguniq option: msguniq Invocation. (line 141) +* --version, msggrep option: msggrep Invocation. (line 208) +* --version, msginit option: msginit Invocation. (line 103) +* --version, msgmerge option: msgmerge Invocation. (line 204) +* --version, msgunfmt option: msgunfmt Invocation. (line 166) +* --version, msguniq option: msguniq Invocation. (line 150) * --version, ngettext option: ngettext Invocation. (line 35) -* --version, xgettext option: xgettext Invocation. (line 408) +* --version, xgettext option: xgettext Invocation. (line 419) * --width, msgattrib option: msgattrib Invocation. - (line 146) -* --width, msgcat option: msgcat Invocation. (line 133) -* --width, msgcomm option: msgcomm Invocation. (line 114) -* --width, msgconv option: msgconv Invocation. (line 93) -* --width, msgen option: msgen Invocation. (line 89) + (line 155) +* --width, msgcat option: msgcat Invocation. (line 138) +* --width, msgcomm option: msgcomm Invocation. (line 123) +* --width, msgconv option: msgconv Invocation. (line 102) +* --width, msgen option: msgen Invocation. (line 104) * --width, msgfilter option: msgfilter Invocation. - (line 147) -* --width, msggrep option: msggrep Invocation. (line 171) -* --width, msginit option: msginit Invocation. (line 73) -* --width, msgmerge option: msgmerge Invocation. (line 158) -* --width, msgunfmt option: msgunfmt Invocation. (line 131) -* --width, msguniq option: msguniq Invocation. (line 111) -* --width, xgettext option: xgettext Invocation. (line 304) + (line 163) +* --width, msggrep option: msggrep Invocation. (line 180) +* --width, msginit option: msginit Invocation. (line 82) +* --width, msgmerge option: msgmerge Invocation. (line 174) +* --width, msgunfmt option: msgunfmt Invocation. (line 140) +* --width, msguniq option: msguniq Invocation. (line 120) +* --width, xgettext option: xgettext Invocation. (line 315) * -<, msgcat option: msgcat Invocation. (line 55) * -<, msgcomm option: msgcomm Invocation. (line 53) * ->, msgcat option: msgcat Invocation. (line 60) * ->, msgcomm option: msgcomm Invocation. (line 58) * -a, msgfmt option: msgfmt Invocation. (line 209) -* -a, xgettext option: xgettext Invocation. (line 106) +* -a, xgettext option: xgettext Invocation. (line 107) * -C, msgfmt option: msgfmt Invocation. (line 183) * -c, msgfmt option: msgfmt Invocation. (line 146) * -C, msggrep option: msggrep Invocation. (line 93) @@ -16681,7 +17170,7 @@ * -D, msgen option: msgen Invocation. (line 25) * -D, msgexec option: msgexec Invocation. (line 44) * -D, msgfilter option: msgfilter Invocation. - (line 20) + (line 27) * -d, msgfmt option: msgfmt Invocation. (line 84) * -D, msgfmt option: msgfmt Invocation. (line 18) * -D, msggrep option: msggrep Invocation. (line 19) @@ -16695,7 +17184,7 @@ * -E, gettext option: gettext Invocation. (line 27) * -e, gettext option: gettext Invocation. (line 20) * -e, msgfilter option: msgfilter Invocation. - (line 70) + (line 77) * -e, msggrep option: msggrep Invocation. (line 109) * -E, msggrep option: msggrep Invocation. (line 101) * -E, ngettext option: ngettext Invocation. (line 26) @@ -16705,65 +17194,65 @@ * -f, gettextize option: gettextize Invocation. (line 40) * -F, msgattrib option: msgattrib Invocation. - (line 164) -* -F, msgcat option: msgcat Invocation. (line 151) + (line 173) +* -F, msgcat option: msgcat Invocation. (line 156) * -f, msgcat option: msgcat Invocation. (line 27) -* -F, msgcomm option: msgcomm Invocation. (line 132) +* -F, msgcomm option: msgcomm Invocation. (line 141) * -f, msgcomm option: msgcomm Invocation. (line 25) -* -F, msgconv option: msgconv Invocation. (line 111) -* -F, msgen option: msgen Invocation. (line 107) +* -F, msgconv option: msgconv Invocation. (line 120) +* -F, msgen option: msgen Invocation. (line 122) * -F, msgfilter option: msgfilter Invocation. - (line 165) + (line 181) * -f, msgfilter option: msgfilter Invocation. - (line 74) + (line 81) * -f, msgfmt option: msgfmt Invocation. (line 199) * -f, msggrep option: msggrep Invocation. (line 113) * -F, msggrep option: msggrep Invocation. (line 105) -* -F, msgmerge option: msgmerge Invocation. (line 176) -* -F, msguniq option: msguniq Invocation. (line 129) -* -F, xgettext option: xgettext Invocation. (line 322) +* -F, msgmerge option: msgmerge Invocation. (line 192) +* -F, msguniq option: msguniq Invocation. (line 138) +* -F, xgettext option: xgettext Invocation. (line 333) * -f, xgettext option: xgettext Invocation. (line 19) * -h, envsubst option: envsubst Invocation. (line 22) * -h, gettext option: gettext Invocation. (line 32) * -h, msgattrib option: msgattrib Invocation. - (line 172) -* -h, msgcat option: msgcat Invocation. (line 159) -* -h, msgcmp option: msgcmp Invocation. (line 67) -* -h, msgcomm option: msgcomm Invocation. (line 143) -* -h, msgconv option: msgconv Invocation. (line 119) -* -h, msgen option: msgen Invocation. (line 115) + (line 181) +* -h, msgcat option: msgcat Invocation. (line 164) +* -h, msgcmp option: msgcmp Invocation. (line 72) +* -h, msgcomm option: msgcomm Invocation. (line 152) +* -h, msgconv option: msgconv Invocation. (line 128) +* -h, msgen option: msgen Invocation. (line 130) * -h, msgexec option: msgexec Invocation. (line 69) * -h, msgfilter option: msgfilter Invocation. - (line 173) + (line 189) * -h, msgfmt option: msgfmt Invocation. (line 222) -* -h, msggrep option: msggrep Invocation. (line 195) -* -h, msginit option: msginit Invocation. (line 90) -* -h, msgmerge option: msgmerge Invocation. (line 184) -* -h, msgunfmt option: msgunfmt Invocation. (line 153) -* -h, msguniq option: msguniq Invocation. (line 137) +* -h, msggrep option: msggrep Invocation. (line 204) +* -h, msginit option: msginit Invocation. (line 99) +* -h, msgmerge option: msgmerge Invocation. (line 200) +* -h, msgunfmt option: msgunfmt Invocation. (line 162) +* -h, msguniq option: msguniq Invocation. (line 146) * -h, ngettext option: ngettext Invocation. (line 31) -* -h, xgettext option: xgettext Invocation. (line 404) +* -h, xgettext option: xgettext Invocation. (line 415) * -i, msgattrib option: msgattrib Invocation. - (line 120) -* -i, msgcat option: msgcat Invocation. (line 107) -* -i, msgcomm option: msgcomm Invocation. (line 88) -* -i, msgconv option: msgconv Invocation. (line 68) -* -i, msgen option: msgen Invocation. (line 64) + (line 129) +* -i, msgcat option: msgcat Invocation. (line 112) +* -i, msgcomm option: msgcomm Invocation. (line 97) +* -i, msgconv option: msgconv Invocation. (line 77) +* -i, msgen option: msgen Invocation. (line 79) * -i, msgexec option: msgexec Invocation. (line 40) * -i, msgfilter option: msgfilter Invocation. - (line 16) + (line 23) * -i, msggrep option: msggrep Invocation. (line 117) * -i, msginit option: msginit Invocation. (line 16) -* -i, msgmerge option: msgmerge Invocation. (line 133) -* -i, msgunfmt option: msgunfmt Invocation. (line 112) -* -i, msguniq option: msguniq Invocation. (line 85) -* -i, xgettext option: xgettext Invocation. (line 277) +* -i, msgmerge option: msgmerge Invocation. (line 149) +* -i, msgunfmt option: msgunfmt Invocation. (line 121) +* -i, msguniq option: msguniq Invocation. (line 94) +* -i, xgettext option: xgettext Invocation. (line 288) * -j, msgfmt option: msgfmt Invocation. (line 30) * -J, msggrep option: msggrep Invocation. (line 81) * -j, msgunfmt option: msgunfmt Invocation. (line 16) * -j, xgettext option: xgettext Invocation. (line 88) * -K, msggrep option: msggrep Invocation. (line 85) -* -k, xgettext option: xgettext Invocation. (line 114) +* -k, xgettext option: xgettext Invocation. (line 115) * -l, msgfmt option: msgfmt Invocation. (line 79) * -l, msginit option: msginit Invocation. (line 52) * -l, msgunfmt option: msgunfmt Invocation. (line 47) @@ -16771,19 +17260,20 @@ * -m, msgcmp option: msgcmp Invocation. (line 36) * -M, msggrep option: msggrep Invocation. (line 77) * -m, msgmerge option: msgmerge Invocation. (line 101) -* -M, xgettext option: xgettext Invocation. (line 396) -* -m, xgettext option: xgettext Invocation. (line 392) +* -M, xgettext option: xgettext Invocation. (line 407) +* -m, xgettext option: xgettext Invocation. (line 403) * -n, gettext option: gettext Invocation. (line 35) * -n, msgattrib option: msgattrib Invocation. - (line 127) -* -n, msgcat option: msgcat Invocation. (line 114) -* -n, msgcomm option: msgcomm Invocation. (line 95) + (line 136) +* -n, msgcat option: msgcat Invocation. (line 119) +* -N, msgcmp option: msgcmp Invocation. (line 40) +* -n, msgcomm option: msgcomm Invocation. (line 104) * -n, msgfilter option: msgfilter Invocation. - (line 79) + (line 86) * -N, msggrep option: msggrep Invocation. (line 72) * -N, msgmerge option: msgmerge Invocation. (line 105) -* -n, msguniq option: msguniq Invocation. (line 92) -* -n, xgettext option: xgettext Invocation. (line 286) +* -n, msguniq option: msguniq Invocation. (line 101) +* -n, xgettext option: xgettext Invocation. (line 297) * -o, msgattrib option: msgattrib Invocation. (line 31) * -o, msgcat option: msgcat Invocation. (line 44) @@ -16791,7 +17281,7 @@ * -o, msgconv option: msgconv Invocation. (line 31) * -o, msgen option: msgen Invocation. (line 37) * -o, msgfilter option: msgfilter Invocation. - (line 32) + (line 39) * -o, msgfmt option: msgfmt Invocation. (line 54) * -o, msggrep option: msggrep Invocation. (line 31) * -o, msginit option: msginit Invocation. (line 27) @@ -16800,54 +17290,54 @@ * -o, msguniq option: msguniq Invocation. (line 38) * -o, xgettext option: xgettext Invocation. (line 40) * -p, msgattrib option: msgattrib Invocation. - (line 136) + (line 145) * -P, msgattrib option: msgattrib Invocation. (line 104) -* -p, msgcat option: msgcat Invocation. (line 123) +* -p, msgcat option: msgcat Invocation. (line 128) * -P, msgcat option: msgcat Invocation. (line 74) -* -P, msgcmp option: msgcmp Invocation. (line 54) -* -p, msgcomm option: msgcomm Invocation. (line 104) +* -P, msgcmp option: msgcmp Invocation. (line 59) +* -p, msgcomm option: msgcomm Invocation. (line 113) * -P, msgcomm option: msgcomm Invocation. (line 72) -* -p, msgconv option: msgconv Invocation. (line 83) +* -p, msgconv option: msgconv Invocation. (line 92) * -P, msgconv option: msgconv Invocation. (line 52) -* -p, msgen option: msgen Invocation. (line 79) +* -p, msgen option: msgen Invocation. (line 94) * -P, msgen option: msgen Invocation. (line 48) * -P, msgexec option: msgexec Invocation. (line 56) * -p, msgfilter option: msgfilter Invocation. - (line 137) + (line 153) * -P, msgfilter option: msgfilter Invocation. - (line 102) + (line 109) * -P, msgfmt option: msgfmt Invocation. (line 133) -* -p, msggrep option: msggrep Invocation. (line 161) +* -p, msggrep option: msggrep Invocation. (line 170) * -P, msggrep option: msggrep Invocation. (line 131) -* -p, msginit option: msginit Invocation. (line 63) +* -p, msginit option: msginit Invocation. (line 72) * -P, msginit option: msginit Invocation. (line 39) -* -p, msgmerge option: msgmerge Invocation. (line 148) +* -p, msgmerge option: msgmerge Invocation. (line 164) * -P, msgmerge option: msgmerge Invocation. (line 117) -* -p, msgunfmt option: msgunfmt Invocation. (line 121) -* -p, msguniq option: msguniq Invocation. (line 101) +* -p, msgunfmt option: msgunfmt Invocation. (line 130) +* -p, msguniq option: msguniq Invocation. (line 110) * -P, msguniq option: msguniq Invocation. (line 61) * -p, xgettext option: xgettext Invocation. (line 45) -* -q, msgmerge option: msgmerge Invocation. (line 197) +* -q, msgmerge option: msgmerge Invocation. (line 213) * -r, msgfmt option: msgfmt Invocation. (line 75) * -r, msgunfmt option: msgunfmt Invocation. (line 43) * -s, msgattrib option: msgattrib Invocation. - (line 159) -* -s, msgcat option: msgcat Invocation. (line 146) -* -s, msgcomm option: msgcomm Invocation. (line 127) -* -s, msgconv option: msgconv Invocation. (line 106) -* -s, msgen option: msgen Invocation. (line 102) + (line 168) +* -s, msgcat option: msgcat Invocation. (line 151) +* -s, msgcomm option: msgcomm Invocation. (line 136) +* -s, msgconv option: msgconv Invocation. (line 115) +* -s, msgen option: msgen Invocation. (line 117) * -s, msgfilter option: msgfilter Invocation. - (line 160) -* -s, msgmerge option: msgmerge Invocation. (line 171) -* -s, msgunfmt option: msgunfmt Invocation. (line 144) -* -s, msguniq option: msguniq Invocation. (line 124) -* -s, xgettext option: xgettext Invocation. (line 317) + (line 176) +* -s, msgmerge option: msgmerge Invocation. (line 187) +* -s, msgunfmt option: msgunfmt Invocation. (line 153) +* -s, msguniq option: msguniq Invocation. (line 133) +* -s, xgettext option: xgettext Invocation. (line 328) * -t, msgcat option: msgcat Invocation. (line 87) * -t, msgconv option: msgconv Invocation. (line 42) * -T, msggrep option: msggrep Invocation. (line 89) * -t, msguniq option: msguniq Invocation. (line 74) -* -T, xgettext option: xgettext Invocation. (line 239) +* -T, xgettext option: xgettext Invocation. (line 241) * -u, msgcat option: msgcat Invocation. (line 65) * -u, msgcomm option: msgcomm Invocation. (line 63) * -U, msgmerge option: msgmerge Invocation. (line 45) @@ -16856,41 +17346,41 @@ * -v, envsubst option: envsubst Invocation. (line 15) * -V, gettext option: gettext Invocation. (line 40) * -V, msgattrib option: msgattrib Invocation. - (line 176) -* -V, msgcat option: msgcat Invocation. (line 163) -* -V, msgcmp option: msgcmp Invocation. (line 71) -* -V, msgcomm option: msgcomm Invocation. (line 147) -* -V, msgconv option: msgconv Invocation. (line 123) -* -V, msgen option: msgen Invocation. (line 119) + (line 185) +* -V, msgcat option: msgcat Invocation. (line 168) +* -V, msgcmp option: msgcmp Invocation. (line 76) +* -V, msgcomm option: msgcomm Invocation. (line 156) +* -V, msgconv option: msgconv Invocation. (line 132) +* -V, msgen option: msgen Invocation. (line 134) * -V, msgexec option: msgexec Invocation. (line 73) * -V, msgfilter option: msgfilter Invocation. - (line 177) -* -v, msgfmt option: msgfmt Invocation. (line 233) + (line 193) +* -v, msgfmt option: msgfmt Invocation. (line 235) * -V, msgfmt option: msgfmt Invocation. (line 226) -* -V, msggrep option: msggrep Invocation. (line 199) +* -V, msggrep option: msggrep Invocation. (line 208) * -v, msggrep option: msggrep Invocation. (line 121) -* -V, msginit option: msginit Invocation. (line 94) -* -v, msgmerge option: msgmerge Invocation. (line 192) -* -V, msgmerge option: msgmerge Invocation. (line 188) -* -v, msgunfmt option: msgunfmt Invocation. (line 161) -* -V, msgunfmt option: msgunfmt Invocation. (line 157) -* -V, msguniq option: msguniq Invocation. (line 141) +* -V, msginit option: msginit Invocation. (line 103) +* -v, msgmerge option: msgmerge Invocation. (line 208) +* -V, msgmerge option: msgmerge Invocation. (line 204) +* -v, msgunfmt option: msgunfmt Invocation. (line 170) +* -V, msgunfmt option: msgunfmt Invocation. (line 166) +* -V, msguniq option: msguniq Invocation. (line 150) * -V, ngettext option: ngettext Invocation. (line 35) -* -V, xgettext option: xgettext Invocation. (line 408) +* -V, xgettext option: xgettext Invocation. (line 419) * -w, msgattrib option: msgattrib Invocation. - (line 146) -* -w, msgcat option: msgcat Invocation. (line 133) -* -w, msgcomm option: msgcomm Invocation. (line 114) -* -w, msgconv option: msgconv Invocation. (line 93) -* -w, msgen option: msgen Invocation. (line 89) + (line 155) +* -w, msgcat option: msgcat Invocation. (line 138) +* -w, msgcomm option: msgcomm Invocation. (line 123) +* -w, msgconv option: msgconv Invocation. (line 102) +* -w, msgen option: msgen Invocation. (line 104) * -w, msgfilter option: msgfilter Invocation. - (line 147) -* -w, msggrep option: msggrep Invocation. (line 171) -* -w, msginit option: msginit Invocation. (line 73) -* -w, msgmerge option: msgmerge Invocation. (line 158) -* -w, msgunfmt option: msgunfmt Invocation. (line 131) -* -w, msguniq option: msguniq Invocation. (line 111) -* -w, xgettext option: xgettext Invocation. (line 304) + (line 163) +* -w, msggrep option: msggrep Invocation. (line 180) +* -w, msginit option: msginit Invocation. (line 82) +* -w, msgmerge option: msgmerge Invocation. (line 174) +* -w, msgunfmt option: msgunfmt Invocation. (line 140) +* -w, msguniq option: msguniq Invocation. (line 120) +* -w, xgettext option: xgettext Invocation. (line 315) * -X, msggrep option: msggrep Invocation. (line 97) * -x, xgettext option: xgettext Invocation. (line 92) @@ -16937,6 +17427,11 @@ * MSGEXEC_LOCATION, environment variable: msgexec Invocation. (line 18) * MSGEXEC_MSGCTXT, environment variable: msgexec Invocation. (line 18) * MSGEXEC_MSGID, environment variable: msgexec Invocation. (line 18) +* MSGFILTER_LOCATION, environment variable: msgfilter Invocation. + (line 11) +* MSGFILTER_MSGCTXT, environment variable: msgfilter Invocation. + (line 11) +* MSGFILTER_MSGID, environment variable: msgfilter Invocation. (line 11) * PO_STYLE, environment variable: The --style option. (line 10) * TERM, environment variable: The TERM variable. (line 6) * TEXTDOMAIN, environment variable: sh. (line 23) @@ -16986,6 +17481,10 @@ (line 6) * etags, using for marking strings: Marking. (line 17) * exiting PO subedit: Subedit. (line 20) +* F, PO Mode command: Fuzzy Entries. (line 39) +* f, PO Mode command: Fuzzy Entries. (line 39) +* F, PO Mode command: Fuzzy Entries. (line 33) +* f, PO Mode command: Fuzzy Entries. (line 30) * find source fragment for a PO file entry: C Sources Context. (line 33) * h, PO Mode command: Main PO Commands. (line 44) @@ -17138,10 +17637,6 @@ * Y, PO Mode command: Modifying Comments. (line 35) * y, PO Mode command: Modifying Translations. (line 38) -* Z, PO Mode command: Fuzzy Entries. (line 39) -* z, PO Mode command: Fuzzy Entries. (line 39) -* Z, PO Mode command: Fuzzy Entries. (line 33) -* z, PO Mode command: Fuzzy Entries. (line 30)  File: gettext.info, Node: Autoconf Macro Index, Next: Index, Prev: PO Mode Index, Up: Top @@ -17178,7 +17673,7 @@ * acconfig.h file: acconfig. (line 6) * accumulating translations: Creating Compendia. (line 14) * aclocal.m4 file: aclocal. (line 6) -* adding keywords, xgettext: xgettext Invocation. (line 117) +* adding keywords, xgettext: xgettext Invocation. (line 119) * ambiguities: Preparing Strings. (line 41) * apply a filter to translations: msgfilter Invocation. (line 8) @@ -17203,11 +17698,11 @@ * bibliography: References. (line 6) * big picture: Overview. (line 6) * bind_textdomain_codeset: Charset conversion. (line 28) -* Boost format strings: xgettext Invocation. (line 252) -* boost-format flag: PO Files. (line 189) +* Boost format strings: xgettext Invocation. (line 254) +* boost-format flag: PO Files. (line 198) * bug report address: Introduction. (line 24) * C and C-like languages: C. (line 6) -* C trigraphs: xgettext Invocation. (line 239) +* C trigraphs: xgettext Invocation. (line 241) * C#: C#. (line 6) * C# mode, and msgfmt program: msgfmt Invocation. (line 36) * C# mode, and msgunfmt program: msgunfmt Invocation. (line 19) @@ -17227,13 +17722,13 @@ (line 13) * character encoding: Aspects. (line 67) * charset conversion at runtime: Charset conversion. (line 6) -* charset of PO files: Header Entry. (line 65) +* charset of PO files: Header Entry. (line 106) * check format strings: msgfmt Invocation. (line 150) * checking of translations: Manipulating. (line 41) * clisp: Common Lisp. (line 6) * clisp C sources: clisp C. (line 6) * codeset: Aspects. (line 67) -* comments in PO files: PO Files. (line 288) +* comments in PO files: PO Files. (line 307) * comments, automatic: PO Files. (line 36) * comments, extracted: PO Files. (line 36) * comments, translator: PO Files. (line 36) @@ -17250,9 +17745,9 @@ * config.h.in file: config.h.in. (line 6) * context: Contexts. (line 6) * context, argument specification in xgettext: xgettext Invocation. - (line 117) -* context, in MO files: MO Files. (line 63) -* context, in PO files: PO Files. (line 193) + (line 119) +* context, in MO files: MO Files. (line 71) +* context, in PO files: PO Files. (line 202) * control characters: Preparing Strings. (line 190) * convert binary message catalog into PO file: msgunfmt Invocation. (line 8) @@ -17266,15 +17761,15 @@ * csharp-format flag: PO Files. (line 145) * currency symbols: Aspects. (line 79) * date format: Aspects. (line 84) -* dcngettext: Plural forms. (line 128) +* dcngettext: Plural forms. (line 161) * dcpgettext: Contexts. (line 56) * dcpgettext_expr: Contexts. (line 112) * debugging messages marked as format strings: xgettext Invocation. - (line 256) + (line 258) * dialect: Manipulating. (line 28) * disabling NLS: lib/gettext.h. (line 6) * distribution tarball: Release Management. (line 6) -* dngettext: Plural forms. (line 120) +* dngettext: Plural forms. (line 153) * dollar substitution: envsubst Invocation. (line 8) * domain ambiguities: Ambiguities. (line 6) * dpgettext: Contexts. (line 56) @@ -17291,9 +17786,9 @@ * encoding: Aspects. (line 67) * encoding conversion: Manipulating. (line 17) * encoding conversion at runtime: Charset conversion. (line 6) -* encoding for your language: Header Entry. (line 94) -* encoding list: Header Entry. (line 78) -* encoding of PO files: Header Entry. (line 65) +* encoding for your language: Header Entry. (line 135) +* encoding list: Header Entry. (line 119) +* encoding of PO files: Header Entry. (line 106) * environment variables: envsubst Invocation. (line 8) * envsubst program, usage: envsubst Invocation. (line 6) * eval_gettext function, usage: eval_gettext Invocation. @@ -17314,8 +17809,8 @@ * force use of fuzzy entries: msgfmt Invocation. (line 199) * format strings: c-format Flag. (line 6) * Free Pascal: Pascal. (line 6) -* function attribute, __format__: xgettext Invocation. (line 203) -* function attribute, __format_arg__: xgettext Invocation. (line 217) +* function attribute, __format__: xgettext Invocation. (line 205) +* function attribute, __format_arg__: xgettext Invocation. (line 219) * fuzzy entries: Fuzzy Entries. (line 6) * fuzzy flag: PO Files. (line 80) * gawk: gawk. (line 6) @@ -17334,11 +17829,12 @@ * gettext.h file: lib/gettext.h. (line 6) * gettextize program, usage: gettextize Invocation. (line 34) +* gfc-internal-format flag: PO Files. (line 181) * GNOME PO file editor: Gtranslator. (line 6) * GPL, GNU General Public License: GNU GPL. (line 6) * GUI programs: Contexts. (line 6) * guile: Scheme. (line 6) -* hash table, inside MO files: MO Files. (line 47) +* hash table, inside MO files: MO Files. (line 55) * he, she, and they: Introduction. (line 15) * header entry of a PO file: Header Entry. (line 6) * help option: Preparing Strings. (line 109) @@ -17364,9 +17860,9 @@ * Java mode, and msgunfmt program: msgunfmt Invocation. (line 16) * Java, string concatenation: Preparing Strings. (line 168) * java-format flag: PO Files. (line 141) -* KDE format strings: xgettext Invocation. (line 248) +* KDE format strings: xgettext Invocation. (line 250) * KDE PO file editor: KBabel. (line 6) -* kde-format flag: PO Files. (line 185) +* kde-format flag: PO Files. (line 194) * keyboard accelerator checking: msgfmt Invocation. (line 187) * l10n: Concepts. (line 6) * language codes: Language Codes. (line 6) @@ -17387,7 +17883,7 @@ * Licenses: Licenses. (line 6) * LINGUAS file: po/LINGUAS. (line 6) * link with libintl: Overview. (line 62) -* Linux <1>: Header Entry. (line 91) +* Linux <1>: Header Entry. (line 132) * Linux <2>: Overview. (line 62) * Linux: Aspects. (line 125) * Lisp: Common Lisp. (line 6) @@ -17407,7 +17903,7 @@ * locale category, LC_RESPONSES: Triggering. (line 53) * locale category, LC_TIME <1>: Triggering. (line 53) * locale category, LC_TIME: Aspects. (line 84) -* locale program: Header Entry. (line 71) +* locale program: Header Entry. (line 112) * localization: Concepts. (line 26) * lookup message translation <1>: eval_gettext Invocation. (line 8) @@ -17443,17 +17939,17 @@ * msgcmp program, usage: msgcmp Invocation. (line 6) * msgcomm program, usage: msgcomm Invocation. (line 6) * msgconv program, usage: msgconv Invocation. (line 6) -* msgctxt: PO Files. (line 193) +* msgctxt: PO Files. (line 202) * msgen program, usage: msgen Invocation. (line 6) * msgexec program, usage: msgexec Invocation. (line 6) * msgfilter filter and catalog encoding: msgfilter Invocation. - (line 46) + (line 53) * msgfilter program, usage: msgfilter Invocation. (line 6) * msgfmt program, usage: msgfmt Invocation. (line 6) * msggrep program, usage: msggrep Invocation. (line 6) * msgid: PO Files. (line 56) -* msgid_plural: PO Files. (line 213) +* msgid_plural: PO Files. (line 222) * msginit program, usage: msginit Invocation. (line 6) * msgmerge program, usage: msgmerge Invocation. (line 6) * msgstr: PO Files. (line 56) @@ -17463,19 +17959,20 @@ * N_, a convenience macro: Comparison. (line 41) * Native Language Support: Concepts. (line 51) * Natural Language Support: Concepts. (line 51) -* newlines in PO files: PO Files. (line 283) +* newlines in PO files: PO Files. (line 302) * ngettext: Plural forms. (line 84) * ngettext program, usage: ngettext Invocation. (line 6) * NLS: Concepts. (line 51) * no-awk-format flag: PO Files. (line 150) -* no-boost-format flag: PO Files. (line 190) +* no-boost-format flag: PO Files. (line 199) * no-c-format flag: PO Files. (line 91) * no-c-format, and xgettext: c-format Flag. (line 48) * no-csharp-format flag: PO Files. (line 146) * no-elisp-format flag: PO Files. (line 126) * no-gcc-internal-format flag: PO Files. (line 178) +* no-gfc-internal-format flag: PO Files. (line 182) * no-java-format flag: PO Files. (line 142) -* no-kde-format flag: PO Files. (line 186) +* no-kde-format flag: PO Files. (line 195) * no-librep-format flag: PO Files. (line 130) * no-lisp-format flag: PO Files. (line 122) * no-objc-format flag: PO Files. (line 110) @@ -17484,13 +17981,14 @@ * no-perl-format flag: PO Files. (line 166) * no-php-format flag: PO Files. (line 174) * no-python-format flag: PO Files. (line 118) -* no-qt-format flag: PO Files. (line 182) +* no-qt-format flag: PO Files. (line 187) +* no-qt-plural-format flag: PO Files. (line 191) * no-scheme-format flag: PO Files. (line 134) * no-sh-format flag: PO Files. (line 114) * no-smalltalk-format flag: PO Files. (line 138) * no-tcl-format flag: PO Files. (line 162) * no-ycp-format flag: PO Files. (line 158) -* nplurals, in a PO file header: Plural forms. (line 145) +* nplurals, in a PO file header: Plural forms. (line 178) * number format: Aspects. (line 94) * objc-format flag: PO Files. (line 109) * Object Pascal: Pascal. (line 6) @@ -17526,11 +18024,13 @@ * PHP: PHP. (line 6) * php-format flag: PO Files. (line 173) * Pike: Pike. (line 6) -* plural form formulas: Plural forms. (line 165) +* plural form formulas: Plural forms. (line 198) * plural forms: Plural forms. (line 6) -* plural forms, in MO files: MO Files. (line 66) -* plural forms, in PO files: PO Files. (line 213) -* plural, in a PO file header: Plural forms. (line 145) +* plural forms, in MO files: MO Files. (line 74) +* plural forms, in PO files: PO Files. (line 222) +* plural forms, translating: Translating plural forms. + (line 6) +* plural, in a PO file header: Plural forms. (line 178) * PO files' format: PO Files. (line 6) * PO mode (Emacs) commands: Main PO Commands. (line 6) * PO template file: Template. (line 6) @@ -17545,7 +18045,7 @@ * po_message_msgstr_plural: libgettextpo. (line 86) * po_next_message: libgettextpo. (line 62) * portability problems with sed: msgfilter Invocation. - (line 57) + (line 64) * POTFILES.in file: po/POTFILES.in. (line 6) * preparing programs for translation: Sources. (line 6) * preparing shell scripts for translation: Preparing Shell Scripts. @@ -17556,14 +18056,16 @@ (line 6) * Python: Python. (line 6) * python-format flag: PO Files. (line 117) -* Qt format strings: xgettext Invocation. (line 244) +* Qt format strings: xgettext Invocation. (line 246) * Qt mode, and msgfmt program: msgfmt Invocation. (line 46) -* qt-format flag: PO Files. (line 181) +* qt-format flag: PO Files. (line 186) +* qt-plural-format flag: PO Files. (line 190) * quotation marks <1>: po/Rules-*. (line 11) -* quotation marks: Header Entry. (line 145) -* quote characters, use in PO files: Header Entry. (line 145) +* quotation marks: Header Entry. (line 186) +* quote characters, use in PO files: Header Entry. (line 186) +* range: flag: PO Files. (line 253) * recode-sr-latin program: msgfilter Invocation. - (line 85) + (line 92) * related reading: References. (line 6) * release: Release Management. (line 6) * RST: RST. (line 6) @@ -17586,11 +18088,11 @@ * shell scripts: sh. (line 6) * Smalltalk: Smalltalk. (line 6) * smalltalk-format flag: PO Files. (line 137) -* sorting msgcat output: msgcat Invocation. (line 146) -* sorting msgmerge output: msgmerge Invocation. (line 171) -* sorting msgunfmt output: msgunfmt Invocation. (line 144) -* sorting output of xgettext: xgettext Invocation. (line 317) -* specifying plural form in a PO file: Plural forms. (line 145) +* sorting msgcat output: msgcat Invocation. (line 151) +* sorting msgmerge output: msgmerge Invocation. (line 187) +* sorting msgunfmt output: msgunfmt Invocation. (line 153) +* sorting output of xgettext: xgettext Invocation. (line 328) +* specifying plural form in a PO file: Plural forms. (line 178) * standard output, and msgcat: msgcat Invocation. (line 47) * standard output, and msgmerge program: msgmerge Invocation. (line 56) * string concatenation: Preparing Strings. (line 117) @@ -17602,7 +18104,7 @@ * Tcl mode, and msgunfmt program: msgunfmt Invocation. (line 26) * tcl-format flag: PO Files. (line 161) * template PO file: Overview. (line 67) -* testing .po files for equivalence: xgettext Invocation. (line 327) +* testing .po files for equivalence: xgettext Invocation. (line 338) * Tk's scripting language: Tcl. (line 6) * translated entries: Translated Entries. (line 6) * translating menu entries: Contexts. (line 6) @@ -17622,7 +18124,7 @@ * wxWidgets library: wxWidgets. (line 6) * xargs, and output from msgexec: msgexec Invocation. (line 14) * xgettext program, usage: xgettext Invocation. (line 6) -* xmodmap program, and typing quotation marks: Header Entry. (line 157) +* xmodmap program, and typing quotation marks: Header Entry. (line 198) * YaST2 scripting language: YCP. (line 6) * YCP: YCP. (line 6) * ycp-format flag: PO Files. (line 157) @@ -17631,235 +18133,238 @@  Tag Table: Node: Top2956 -Node: Introduction17210 -Node: Why18833 -Ref: Why-Footnote-122047 -Node: Concepts22203 -Node: Aspects25624 -Node: Files32158 -Node: Overview34067 -Node: Users44003 -Node: System Installation44914 -Node: Setting the GUI Locale46606 -Node: Setting the POSIX Locale47982 -Node: Locale Names48921 -Node: Locale Environment Variables51326 -Node: The LANGUAGE variable53539 -Node: Installing Localizations55439 -Node: PO Files56794 -Ref: PO Files-Footnote-168222 -Node: Sources68349 -Node: Importing69575 -Node: Triggering70258 -Node: Preparing Strings73458 -Node: Mark Keywords82501 -Node: Marking86814 -Node: c-format Flag94544 -Node: Special cases98463 -Node: Bug Report Address101206 -Node: Names103171 -Node: Libraries106777 -Node: Template109814 -Node: xgettext Invocation110539 -Node: Creating125664 -Node: msginit Invocation126549 -Node: Header Entry129175 -Node: Updating136226 -Node: msgmerge Invocation136441 -Node: Editing141596 -Node: KBabel141954 -Node: Gtranslator142092 -Node: PO Mode142234 -Node: Installation143888 -Node: Main PO Commands145852 -Node: Entry Positioning150940 -Node: Normalizing156408 -Node: Translated Entries160902 -Node: Fuzzy Entries162260 -Node: Untranslated Entries165441 -Node: Obsolete Entries167373 -Node: Modifying Translations170598 -Node: Modifying Comments178567 -Node: Subedit182994 -Node: C Sources Context186890 -Node: Auxiliary192014 -Node: Compendium195230 -Node: Creating Compendia195845 -Node: Using Compendia198329 -Node: Manipulating199269 -Node: msgcat Invocation203097 -Node: msgconv Invocation207623 -Node: msggrep Invocation210802 -Node: msgfilter Invocation216686 -Node: msguniq Invocation222594 -Node: msgcomm Invocation226483 -Node: msgcmp Invocation230528 -Node: msgattrib Invocation232540 -Node: msgen Invocation237225 -Node: msgexec Invocation240560 -Node: Colorizing243139 -Node: The --color option244168 -Node: The TERM variable245800 -Node: The --style option247252 -Node: Style rules248560 -Node: Customizing less255302 -Node: libgettextpo256705 -Node: Binaries261821 -Node: msgfmt Invocation262165 -Node: msgunfmt Invocation269170 -Node: MO Files273332 -Node: Programmers281576 -Node: catgets282758 -Node: Interface to catgets284172 -Node: Problems with catgets286181 -Node: gettext287096 -Node: Interface to gettext288599 -Node: Ambiguities290929 -Node: Locating Catalogs293644 -Ref: Locating Catalogs-Footnote-1294874 -Ref: Locating Catalogs-Footnote-2295100 -Node: Charset conversion295249 -Node: Contexts297703 -Node: Plural forms303209 -Ref: Plural forms-Footnote-1317408 -Node: Optimized gettext317530 -Node: Comparison318869 -Node: Using libintl.a323139 -Node: gettext grok323582 -Node: Temp Programmers326223 -Node: Temp Implementations326751 -Node: Temp catgets328131 -Node: Temp WSI329832 -Node: Temp Notes331834 -Node: Translators332337 -Node: Trans Intro 0332800 -Node: Trans Intro 1335549 -Node: Discussions337513 -Node: Organization341171 -Node: Central Coordination343247 -Node: National Teams344390 -Node: Sub-Cultures346917 -Node: Organizational Ideas347854 -Node: Mailing Lists348875 -Node: Information Flow350698 -Node: Prioritizing messages352949 -Node: Maintainers357248 -Node: Flat and Non-Flat359204 -Node: Prerequisites360697 -Node: gettextize Invocation364854 -Node: Adjusting Files372263 -Node: po/POTFILES.in374050 -Node: po/LINGUAS375299 -Node: po/Makevars376991 -Node: po/Rules-*377933 -Node: configure.ac379404 -Node: config.guess382418 -Node: mkinstalldirs383773 -Node: aclocal384178 -Node: acconfig386162 -Node: config.h.in386662 -Node: Makefile388130 -Node: src/Makefile390727 -Node: lib/gettext.h395117 -Node: autoconf macros397365 -Node: AM_GNU_GETTEXT398207 -Node: AM_GNU_GETTEXT_VERSION402172 -Node: AM_GNU_GETTEXT_NEED402627 -Node: AM_GNU_GETTEXT_INTL_SUBDIR403520 -Node: AM_PO_SUBDIRS404175 -Node: AM_XGETTEXT_OPTION404970 -Node: AM_ICONV405840 -Node: CVS Issues408055 -Node: Distributed CVS408646 -Node: Files under CVS410574 -Node: autopoint Invocation413848 -Node: Release Management415688 -Node: Installers416201 -Node: Programming Languages417428 -Node: Language Implementors418254 -Node: Programmers for other Languages423082 -Node: Translators for other Languages423666 -Node: c-format425246 -Node: objc-format426965 -Node: sh-format427320 -Node: python-format428125 -Node: lisp-format428566 -Node: elisp-format428895 -Node: librep-format429388 -Node: scheme-format429791 -Node: smalltalk-format430070 -Node: java-format430573 -Node: csharp-format431024 -Node: awk-format431402 -Node: object-pascal-format431730 -Node: ycp-format431962 -Node: tcl-format432364 -Node: perl-format432662 -Node: php-format433410 -Node: gcc-internal-format433778 -Node: qt-format434823 -Node: kde-format435258 -Node: boost-format435664 -Node: Maintainers for other Languages436212 -Node: List of Programming Languages437450 -Node: C438733 -Node: sh440033 -Node: Preparing Shell Scripts441307 -Node: gettext.sh444699 -Node: gettext Invocation445249 -Node: ngettext Invocation447004 -Node: envsubst Invocation448592 -Node: eval_gettext Invocation450013 -Node: eval_ngettext Invocation450474 -Node: bash450988 -Node: Python452967 -Node: Common Lisp454117 -Node: clisp C454917 -Node: Emacs Lisp455632 -Node: librep456358 -Node: Scheme457093 -Node: Smalltalk457877 -Node: Java458911 -Node: C#464707 -Node: gawk473933 -Node: Pascal474845 -Node: wxWidgets476153 -Node: YCP477060 -Node: Tcl477799 -Node: Perl479209 -Node: General Problems482217 -Node: Default Keywords485878 -Node: Special Keywords486833 -Node: Quote-like Expressions488349 -Node: Interpolation I490627 -Node: Interpolation II494420 -Node: Parentheses496788 -Node: Long Lines498309 -Node: Perl Pitfalls500157 -Node: PHP504402 -Node: Pike505333 -Node: GCC-source505994 -Node: List of Data Formats506741 -Node: POT507210 -Node: RST507468 -Node: Glade507694 -Node: Conclusion508054 -Node: History508560 -Node: References512830 -Node: Language Codes514477 -Node: Usual Language Codes514992 -Node: Rare Language Codes519366 -Node: Country Codes521026 -Node: Licenses526915 -Node: GNU GPL528760 -Node: GNU LGPL547943 -Node: GNU FDL576082 -Node: Program Index598471 -Node: Option Index600357 -Node: Variable Index647235 -Node: PO Mode Index650142 -Node: Autoconf Macro Index663978 -Node: Index664785 +Node: Introduction17401 +Node: Why19024 +Ref: Why-Footnote-122238 +Node: Concepts22394 +Node: Aspects25815 +Node: Files32349 +Node: Overview34258 +Node: Users44194 +Node: System Installation45105 +Node: Setting the GUI Locale46797 +Node: Setting the POSIX Locale48173 +Node: Locale Names49112 +Node: Locale Environment Variables51517 +Node: The LANGUAGE variable53730 +Node: Installing Localizations55630 +Node: PO Files56985 +Ref: PO Files-Footnote-169122 +Node: Sources69249 +Node: Importing70475 +Node: Triggering71158 +Node: Preparing Strings74358 +Node: Mark Keywords83401 +Node: Marking87861 +Node: c-format Flag95591 +Node: Special cases99510 +Node: Bug Report Address102253 +Node: Names104218 +Node: Libraries108503 +Node: Template111540 +Node: xgettext Invocation112265 +Node: Creating127823 +Node: msginit Invocation128708 +Node: Header Entry131610 +Node: Updating140573 +Node: msgmerge Invocation140788 +Node: Editing146578 +Node: KBabel146936 +Node: Gtranslator147074 +Node: PO Mode147216 +Node: Installation148870 +Node: Main PO Commands150834 +Node: Entry Positioning155922 +Node: Normalizing161390 +Node: Translated Entries165884 +Node: Fuzzy Entries167242 +Node: Untranslated Entries170423 +Node: Obsolete Entries172355 +Node: Modifying Translations175580 +Node: Modifying Comments183549 +Node: Subedit187976 +Node: C Sources Context191872 +Node: Auxiliary196996 +Node: Compendium200212 +Node: Creating Compendia200827 +Node: Using Compendia203311 +Node: Manipulating204251 +Node: msgcat Invocation208079 +Node: msgconv Invocation212833 +Node: msggrep Invocation216288 +Node: msgfilter Invocation222446 +Node: msguniq Invocation228985 +Node: msgcomm Invocation233150 +Node: msgcmp Invocation237471 +Node: msgattrib Invocation239628 +Node: msgen Invocation244589 +Node: msgexec Invocation248441 +Node: Colorizing251020 +Node: The --color option252049 +Node: The TERM variable253681 +Node: The --style option255133 +Node: Style rules256441 +Node: Customizing less263183 +Node: libgettextpo264586 +Node: Binaries269702 +Node: msgfmt Invocation270046 +Node: msgunfmt Invocation277198 +Node: MO Files281636 +Node: Programmers290214 +Node: catgets291396 +Node: Interface to catgets292810 +Node: Problems with catgets294819 +Node: gettext295734 +Node: Interface to gettext297237 +Node: Ambiguities299567 +Node: Locating Catalogs302282 +Ref: Locating Catalogs-Footnote-1303512 +Ref: Locating Catalogs-Footnote-2303738 +Node: Charset conversion303887 +Node: Contexts306341 +Node: Plural forms311847 +Ref: Plural forms-Footnote-1327784 +Node: Optimized gettext327906 +Node: Comparison329245 +Node: Using libintl.a333515 +Node: gettext grok333958 +Node: Temp Programmers336599 +Node: Temp Implementations337127 +Node: Temp catgets338507 +Node: Temp WSI340208 +Node: Temp Notes342210 +Node: Translators342713 +Node: Trans Intro 0343248 +Node: Trans Intro 1345997 +Node: Discussions347961 +Node: Organization351619 +Node: Central Coordination353695 +Node: National Teams354838 +Node: Sub-Cultures357365 +Node: Organizational Ideas358302 +Node: Mailing Lists359323 +Node: Information Flow361146 +Node: Translating plural forms363400 +Node: Prioritizing messages366769 +Node: Maintainers371076 +Node: Flat and Non-Flat373032 +Node: Prerequisites374525 +Node: gettextize Invocation378682 +Node: Adjusting Files386091 +Node: po/POTFILES.in387880 +Node: po/LINGUAS389129 +Node: po/Makevars390821 +Node: po/Rules-*391763 +Node: configure.ac393234 +Node: config.guess396256 +Node: mkinstalldirs397611 +Node: aclocal398016 +Node: acconfig400030 +Node: config.h.in400530 +Node: Makefile401998 +Node: src/Makefile404595 +Node: lib/gettext.h409316 +Node: autoconf macros411564 +Node: AM_GNU_GETTEXT412406 +Node: AM_GNU_GETTEXT_VERSION416371 +Node: AM_GNU_GETTEXT_NEED416826 +Node: AM_GNU_GETTEXT_INTL_SUBDIR417719 +Node: AM_PO_SUBDIRS418374 +Node: AM_XGETTEXT_OPTION419169 +Node: AM_ICONV420039 +Node: CVS Issues422254 +Node: Distributed CVS422845 +Node: Files under CVS424773 +Node: autopoint Invocation428049 +Node: Release Management429893 +Node: Installers430406 +Node: Programming Languages431633 +Node: Language Implementors432459 +Node: Programmers for other Languages437287 +Node: Translators for other Languages437871 +Node: c-format439568 +Node: objc-format441287 +Node: sh-format441642 +Node: python-format442447 +Node: lisp-format442888 +Node: elisp-format443217 +Node: librep-format443710 +Node: scheme-format444113 +Node: smalltalk-format444392 +Node: java-format444895 +Node: csharp-format445346 +Node: awk-format445724 +Node: object-pascal-format446052 +Node: ycp-format446438 +Node: tcl-format446840 +Node: perl-format447138 +Node: php-format447886 +Node: gcc-internal-format448254 +Node: gfc-internal-format449309 +Node: qt-format450006 +Node: qt-plural-format450447 +Node: kde-format450802 +Node: boost-format451215 +Node: Maintainers for other Languages451763 +Node: List of Programming Languages453001 +Node: C454284 +Node: sh455584 +Node: Preparing Shell Scripts456858 +Node: gettext.sh460250 +Node: gettext Invocation460800 +Node: ngettext Invocation462724 +Node: envsubst Invocation464485 +Node: eval_gettext Invocation465906 +Node: eval_ngettext Invocation466367 +Node: bash466881 +Node: Python468860 +Node: Common Lisp471183 +Node: clisp C471983 +Node: Emacs Lisp472698 +Node: librep473424 +Node: Scheme474159 +Node: Smalltalk474943 +Node: Java475977 +Node: C#481773 +Node: gawk490999 +Node: Pascal491911 +Node: wxWidgets493219 +Node: YCP494126 +Node: Tcl494865 +Node: Perl496275 +Node: General Problems499283 +Node: Default Keywords504771 +Node: Special Keywords505726 +Node: Quote-like Expressions507242 +Node: Interpolation I509520 +Node: Interpolation II513313 +Node: Parentheses515681 +Node: Long Lines517202 +Node: Perl Pitfalls519050 +Node: PHP523295 +Node: Pike524226 +Node: GCC-source524887 +Node: List of Data Formats525634 +Node: POT526103 +Node: RST526361 +Node: Glade526587 +Node: Conclusion526947 +Node: History527453 +Node: References531723 +Node: Language Codes533370 +Node: Usual Language Codes533885 +Node: Rare Language Codes538247 +Node: Country Codes539916 +Node: Licenses545805 +Node: GNU GPL547650 +Node: GNU LGPL566833 +Node: GNU FDL594972 +Node: Program Index617361 +Node: Option Index619247 +Node: Variable Index668348 +Node: PO Mode Index671605 +Node: Autoconf Macro Index685441 +Node: Index686248  End Tag Table diff -Nru gettext-0.17/gettext-tools/doc/gettext.texi gettext-0.18.1.1/gettext-tools/doc/gettext.texi --- gettext-0.17/gettext-tools/doc/gettext.texi 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext.texi 2010-06-06 12:49:57.000000000 +0000 @@ -136,10 +136,8 @@ @end ifnothtml @end titlepage -@ifnottex @c Table of Contents @contents -@end ifnottex @ifset makeinfo @node Top, Introduction, (dir), (dir) @@ -322,6 +320,7 @@ * Discussions:: Discussions * Organization:: Organization * Information Flow:: Information Flow +* Translating plural forms:: How to fill in @code{msgstr[0]}, @code{msgstr[1]} * Prioritizing messages:: How to find which messages to translate first Organization @@ -405,7 +404,9 @@ * perl-format:: Perl Format Strings * php-format:: PHP Format Strings * gcc-internal-format:: GCC internal Format Strings +* gfc-internal-format:: GFC internal Format Strings * qt-format:: Qt Format Strings +* qt-plural-format:: Qt Plural Format Strings * kde-format:: KDE Format Strings * boost-format:: Boost Format Strings @@ -1472,16 +1473,16 @@ @kwindex no-c-format@r{ flag} These flags should not be added by a human. Instead only the @code{xgettext} program adds them. In an automated PO file processing -system as proposed here the user changes would be thrown away again as +system as proposed here, the user's changes would be thrown away again as soon as the @code{xgettext} program generates a new template file. -The @code{c-format} flag tells that the untranslated string and the +The @code{c-format} flag indicates that the untranslated string and the translation are supposed to be C format strings. The @code{no-c-format} -flag tells that they are not C format strings, even though the untranslated +flag indicates that they are not C format strings, even though the untranslated string happens to look like a C format string (with @samp{%} directives). -In case the @code{c-format} flag is given for a string the @code{msgfmt} -does some more tests to check to validity of the translation. +When the @code{c-format} flag is given for a string the @code{msgfmt} +program does some more tests to check the validity of the translation. @xref{msgfmt Invocation}, @ref{c-format Flag} and @ref{c-format}. @item objc-format @@ -1592,12 +1593,24 @@ @kwindex no-gcc-internal-format@r{ flag} Likewise for the GCC sources, see @ref{gcc-internal-format}. +@item gfc-internal-format +@kwindex gfc-internal-format@r{ flag} +@itemx no-gfc-internal-format +@kwindex no-gfc-internal-format@r{ flag} +Likewise for the GNU Fortran Compiler sources, see @ref{gfc-internal-format}. + @item qt-format @kwindex qt-format@r{ flag} @itemx no-qt-format @kwindex no-qt-format@r{ flag} Likewise for Qt, see @ref{qt-format}. +@item qt-plural-format +@kwindex qt-plural-format@r{ flag} +@itemx no-qt-plural-format +@kwindex no-qt-plural-format@r{ flag} +Likewise for Qt plural forms, see @ref{qt-plural-format}. + @item kde-format @kwindex kde-format@r{ flag} @itemx no-kde-format @@ -1670,6 +1683,18 @@ Here also, a @code{msgctxt} context can be specified before @code{msgid}, like above. +Here, additional kinds of flags can be used: + +@table @code +@item range: +@kwindex range:@r{ flag} +This flag is followed by a range of non-negative numbers, using the syntax +@code{range: @var{minimum-value}..@var{maximum-value}}. It designates the +possible values that the numeric parameter of the message can take. In some +languages, translators may produce slightly better translations if they know +that the value can only take on values between 0 and 10, for example. +@end table + The @var{previous-untranslated-string} is optionally inserted by the @code{msgmerge} program, at the same time when it marks a message fuzzy. It helps the translator to see which changes were done by the developers @@ -2214,7 +2239,9 @@ that take it at another argument position. It is even possible to make the marked argument position depend on the total number of arguments of the function call; this is useful in C++. All this is achieved using -@code{xgettext}'s @samp{--keyword} option. +@code{xgettext}'s @samp{--keyword} option. How to pass such an option +to @code{xgettext}, assuming that @code{gettextize} is used, is described +in @ref{po/Makevars} and @ref{AM_XGETTEXT_OPTION}. Note also that long strings can be split across lines, into multiple adjacent string tokens. Automatic string concatenation is performed @@ -2642,7 +2669,8 @@ As a programmer, you should therefore make sure that names are marked for translation, with a special comment telling the translators that it -is a proper name and how to pronounce it. Like this: +is a proper name and how to pronounce it. In its simple form, it looks +like this: @example @group @@ -2656,16 +2684,48 @@ @end group @end example +@noindent +The GNU gnulib library offers a module @samp{propername} +(@url{http://www.gnu.org/software/gnulib/MODULES.html#module=propername}) +which takes care to automatically append the original name, in parentheses, +to the translated name. For names that cannot be written in ASCII, it +also frees the translator from the task of entering the appropriate non-ASCII +characters if no script change is needed. In this more comfortable form, +it looks like this: + +@example +@group +printf (_("Written by %s and %s.\n"), + proper_name ("Ulrich Drepper"), + /* TRANSLATORS: This is a proper name. See the gettext + manual, section Names. Note this is actually a non-ASCII + name: The first name is (with Unicode escapes) + "Fran\u00e7ois" or (with HTML entities) "François". + Pronunciation is like "fraa-swa pee-nar". */ + proper_name_utf8 ("Francois Pinard", "Fran\303\247ois Pinard")); +@end group +@end example + +@noindent +You can also write the original name directly in Unicode (rather than with +Unicode escapes or HTML entities) and denote the pronunciation using the +International Phonetic Alphabet (see +@url{http://www.wikipedia.org/wiki/International_Phonetic_Alphabet}). + As a translator, you should use some care when translating names, because -it is frustrating if people see their names mutilated or distorted. If -your language uses the Latin script, all you need to do is to reproduce +it is frustrating if people see their names mutilated or distorted. + +If your language uses the Latin script, all you need to do is to reproduce the name as perfectly as you can within the usual character set of your language. In this particular case, this means to provide a translation containing the c-cedilla character. If your language uses a different script and the people speaking it don't usually read Latin words, it means -transliteration; but you should still give, in parentheses, the original -writing of the name -- for the sake of the people that do read the Latin -script. Here is an example, using Greek as the target script: +transliteration. If the programmer used the simple case, you should still +give, in parentheses, the original writing of the name -- for the sake of +the people that do read the Latin script. If the programmer used the +@samp{propername} module mentioned above, you don't need to give the original +writing of the name in parentheses, because the program will already do so. +Here is an example, using Greek as the target script: @example @group @@ -2683,19 +2743,6 @@ Because translation of names is such a sensitive domain, it is a good idea to test your translation before submitting it. -The translation project @url{http://sourceforge.net/projects/translation} -has set up a POT file and translation domain consisting of program author -names, with better facilities for the translator than those presented here. -Namely, there the original name is written directly in Unicode (rather -than with Unicode escapes or HTML entities), and the pronunciation is -denoted using the International Phonetic Alphabet (see -@url{http://www.wikipedia.org/wiki/International_Phonetic_Alphabet}). - -However, we don't recommend this approach for all POT files in all packages, -because this would force translators to use PO files in UTF-8 encoding, -which is - in the current state of software (as of 2003) - a major hassle -for translators using GNU Emacs or XEmacs with po-mode. - @node Libraries, , Names, Sources @section Preparing Library Sources @@ -2913,6 +2960,58 @@ Project's homepage, @uref{http://translationproject.org/}, in the "Teams" area. +@item Language +@c The purpose of this field is to make it possible to automatically +@c - convert PO files to translation memory, +@c - initialize a spell checker based on the PO file, +@c - perform language specific checks. +Fill in the language code of the language. This can be in one of three +forms: + +@itemize - +@item +@samp{@var{ll}}, an @w{ISO 639} two-letter language code (lowercase). +See @ref{Language Codes} for the list of codes. + +@item +@samp{@var{ll}_@var{CC}}, where @samp{@var{ll}} is an @w{ISO 639} two-letter +language code (lowercase) and @samp{@var{CC}} is an @w{ISO 3166} two-letter +country code (uppercase). The country code specification is not redundant: +Some languages have dialects in different countries. For example, +@samp{de_AT} is used for Austria, and @samp{pt_BR} for Brazil. The country +code serves to distinguish the dialects. See @ref{Language Codes} and +@ref{Country Codes} for the lists of codes. + +@item +@samp{@var{ll}_@var{CC}@@@var{variant}}, where @samp{@var{ll}} is an +@w{ISO 639} two-letter language code (lowercase), @samp{@var{CC}} is an +@w{ISO 3166} two-letter country code (uppercase), and @samp{@var{variant}} is +a variant designator. The variant designator (lowercase) can be a script +designator, such as @samp{latin} or @samp{cyrillic}. +@end itemize + +The naming convention @samp{@var{ll}_@var{CC}} is also the way locales are +named on systems based on GNU libc. But there are three important differences: + +@itemize @bullet +@item +In this PO file field, but not in locale names, @samp{@var{ll}_@var{CC}} +combinations denoting a language's main dialect are abbreviated as +@samp{@var{ll}}. For example, @samp{de} is equivalent to @samp{de_DE} +(German as spoken in Germany), and @samp{pt} to @samp{pt_PT} (Portuguese as +spoken in Portugal) in this context. + +@item +In this PO file field, suffixes like @samp{.@var{encoding}} are not used. + +@item +In this PO file field, variant designators that are not relevant to message +translation, such as @samp{@@euro}, are not used. +@end itemize + +So, if your locale name is @samp{de_DE.UTF-8}, the language specification in +PO files is just @samp{de}. + @item Content-Type @cindex encoding of PO files @cindex charset of PO files @@ -2976,7 +3075,7 @@ @item @code{KOI8-R} for Russian, @item @code{KOI8-U} for Ukrainian, @item @code{KOI8-T} for Tajik, -@item @code{CP1251} for Bulgarian, Byelorussian, +@item @code{CP1251} for Bulgarian, Belarusian, @item @code{GB2312}, @code{GBK}, @code{GB18030} for simplified writing of Chinese, @item @code{BIG5}, @code{BIG5-HKSCS} @@ -3021,7 +3120,8 @@ @item Plural-Forms This field is optional. It is only needed if the PO file has plural forms. You can find them by searching for the @samp{msgid_plural} keyword. The -format of the plural forms field is described in @ref{Plural forms}. +format of the plural forms field is described in @ref{Plural forms} and +@ref{Translating plural forms}. @end table @node Updating, Editing, Creating, Top @@ -3207,7 +3307,7 @@ @efindex po-undo@r{, PO Mode command} The command @kbd{_} (@code{po-undo}) interfaces to the Emacs @emph{undo} facility. @xref{Undo, , Undoing Changes, emacs, The Emacs -Editor}. Each time @kbd{U} is typed, modifications which the translator +Editor}. Each time @kbd{_} is typed, modifications which the translator did to the PO file are undone a little more. For the purpose of undoing, each PO mode command is atomic. This is especially true for the @kbd{@key{RET}} command: the whole edition made by using a single @@ -3601,13 +3701,13 @@ related to fuzzy entry processing. @table @kbd -@item z -@efindex z@r{, PO Mode command} +@item f +@efindex f@r{, PO Mode command} @c better append "-entry" all the time. -ke- Find the next fuzzy entry (@code{po-next-fuzzy-entry}). -@item Z -@efindex Z@r{, PO Mode command} +@item F +@efindex F@r{, PO Mode command} Find the previous fuzzy entry (@code{po-previous-fuzzy-entry}). @item @key{TAB} @@ -3616,11 +3716,11 @@ @end table -@efindex z@r{, PO Mode command} +@efindex f@r{, PO Mode command} @efindex po-next-fuzzy-entry@r{, PO Mode command} -@efindex Z@r{, PO Mode command} +@efindex F@r{, PO Mode command} @efindex po-previous-fuzzy-entry@r{, PO Mode command} -The commands @kbd{z} (@code{po-next-fuzzy-entry}) and @kbd{Z} +The commands @kbd{f} (@code{po-next-fuzzy-entry}) and @kbd{F} (@code{po-previous-fuzzy-entry}) move forwards or backwards, chasing for a fuzzy entry. If none is found, the search is extended and wraps around in the PO file buffer. @@ -5192,15 +5292,23 @@ The first two words serve the identification of the file. The magic number will always signal GNU MO files. The number is stored in the byte order of the generating machine, so the magic number really is -two numbers: @code{0x950412de} and @code{0xde120495}. The second -word describes the current revision of the file format. For now the -revision is 0. This might change in future versions, and ensures -that the readers of MO files can distinguish new formats from old -ones, so that both can be handled correctly. The version is kept +two numbers: @code{0x950412de} and @code{0xde120495}. + +The second word describes the current revision of the file format, +composed of a major and a minor revision number. The revision numbers +ensure that the readers of MO files can distinguish new formats from +old ones and handle their contents, as far as possible. For now the +major revision is 0 or 1, and the minor revision is also 0 or 1. More +revisions might be added in the future. A program seeing an unexpected +major revision number should stop reading the MO file entirely; whereas +an unexpected minor revision number means that the file can be read but +will not reveal its full contents, when parsed by a program that +supports only smaller minor revision numbers. + +The version is kept separate from the magic number, instead of using different magic numbers for different formats, mainly because @file{/etc/magic} is -not updated often. It might be better to have magic separated from -internal format version identification. +not updated often. Follow a number of pointers to later tables in the file, allowing for the extension of the prefix part of MO files without having to @@ -5973,6 +6081,46 @@ This works because the @samp{printf} function discards excess arguments that are not consumed by the format string. +If this function is meant to yield a format string that takes two or more +arguments, you can not use it like this: + +@smallexample +printf (ngettext ("%d file removed from directory %s", + "%d files removed from directory %s", + n, dir), + n); +@end smallexample + +@noindent +because in many languages the translators want to replace the @samp{%d} +with an explicit word in the singular case, just like ``one'' in English, +and C format strings cannot consume the second argument but skip the first +argument. Instead, you have to reorder the arguments so that @samp{n} +comes last: + +@smallexample +printf (ngettext ("%$2d file removed from directory %$1s", + "%$2d files removed from directory %$1s", + dir, n), + n); +@end smallexample + +@noindent +See @ref{c-format} for details about this argument reordering syntax. + +When you know that the value of @code{n} is within a given range, you can +specify it as a comment directed to the @code{xgettext} tool. This +information may help translators to use more adequate translations. Like +this: + +@smallexample +if (days > 7 && days < 14) + /* xgettext: range: 1..6 */ + printf (ngettext ("one week and one day", "one week and %d days", + days - 7), + days - 7); +@end smallexample + It is also possible to use this function when the strings don't contain a cardinal number: @@ -6059,9 +6207,9 @@ @table @asis @item Asian family -Japanese, Korean, Vietnamese -@item Turkic/Altaic family -Turkish +Japanese, @c 122.1 million speakers +Vietnamese, @c 68.6 million speakers +Korean @c 66.3 million speakers @end table @item Two forms, singular used for one only @@ -6080,25 +6228,37 @@ @table @asis @item Germanic family -Danish, Dutch, English, Faroese, German, Norwegian, Swedish -@item Finno-Ugric family -Estonian, Finnish +English, @c 328.0 million speakers +German, @c 96.9 million speakers +Dutch, @c 21.7 million speakers +Swedish, @c 8.3 million speakers +Danish, @c 5.6 million speakers +Norwegian, @c 4.6 million speakers +Faroese @c 0.05 million speakers +@item Romanic family +Spanish, @c 328.5 million speakers +Portuguese, @c 178.0 million speakers - 163 million Brazilian Portuguese +Italian, @c 61.7 million speakers +Bulgarian @c 9.1 million speakers @item Latin/Greek family -Greek +Greek @c 13.1 million speakers +@item Finno-Ugric family +Finnish, @c 5.0 million speakers +Estonian @c 1.0 million speakers @item Semitic family -Hebrew -@item Romanic family -Italian, Portuguese, Spanish +Hebrew @c 5.3 million speakers @item Artificial -Esperanto +Esperanto @c 2 million speakers @end table @noindent -Another language using the same header entry is: +Other languages using the same header entry are: @table @asis @item Finno-Ugric family -Hungarian +Hungarian @c 12.5 million speakers +@item Turkic/Altaic family +Turkish @c 50.8 million speakers @end table Hungarian does not appear to have a plural if you look at sentences involving @@ -6108,6 +6268,11 @@ ``az alm@'{a}k''. Since @code{ngettext} has to support both types of sentences, it is classified here, under ``two forms''. +The same holds for Turkish: ``1 apple'' is ``1 elma'', and ``123 apples'' is +``123 elma''. But when the number is omitted, the distinction between singular +and plural exists: ``the apple'' is ``elma'', and ``the apples'' is +``elmalar''. + @item Two forms, singular used for zero and one Exceptional case in the language family. The header entry would be: @@ -6120,7 +6285,8 @@ @table @asis @item Romanic family -French, Brazilian Portuguese +Brazilian Portuguese, @c 163 million speakers +French @c 67.8 million speakers @end table @item Three forms, special case for zero @@ -6135,7 +6301,7 @@ @table @asis @item Baltic family -Latvian +Latvian @c 1.5 million speakers @end table @item Three forms, special cases for one and two @@ -6150,7 +6316,7 @@ @table @asis @item Celtic -Gaeilge (Irish) +Gaeilge (Irish) @c 0.4 million speakers @end table @item Three forms, special case for numbers ending in 00 or [2-9][0-9] @@ -6166,7 +6332,7 @@ @table @asis @item Romanic family -Romanian +Romanian @c 23.4 million speakers @end table @item Three forms, special case for numbers ending in 1[2-9] @@ -6183,7 +6349,7 @@ @table @asis @item Baltic family -Lithuanian +Lithuanian @c 3.2 million speakers @end table @item Three forms, special cases for numbers ending in 1 and 2, 3, 4, except those ending in 1[1-4] @@ -6200,7 +6366,10 @@ @table @asis @item Slavic family -Croatian, Serbian, Russian, Ukrainian +Russian, @c 143.6 million speakers +Ukrainian, @c 37.0 million speakers +Serbian, @c 7.0 million speakers +Croatian @c 5.5 million speakers @end table @item Three forms, special cases for 1 and 2, 3, 4 @@ -6216,7 +6385,8 @@ @table @asis @item Slavic family -Slovak, Czech +Czech, @c 9.5 million speakers +Slovak @c 5.0 million speakers @end table @item Three forms, special case for one and some numbers ending in 2, 3, or 4 @@ -6233,7 +6403,7 @@ @table @asis @item Slavic family -Polish +Polish @c 40.0 million speakers @end table @item Four forms, special case for one and all numbers ending in 02, 03, or 04 @@ -6249,7 +6419,7 @@ @table @asis @item Slavic family -Slovenian +Slovenian @c 1.9 million speakers @end table @end table @@ -6298,6 +6468,9 @@ @noindent is acceptable in English, and similarly for other languages. +The translators' perspective regarding plural forms is explained in +@ref{Translating plural forms}. + @node Optimized gettext, , Plural forms, gettext @subsection Optimization of the *gettext functions @cindex optimization of @code{gettext} functions @@ -6680,6 +6853,7 @@ * Discussions:: Discussions * Organization:: Organization * Information Flow:: Information Flow +* Translating plural forms:: How to fill in @code{msgstr[0]}, @code{msgstr[1]} * Prioritizing messages:: How to find which messages to translate first @end menu @@ -7065,7 +7239,7 @@ There also should be some central list to which all teams could subscribe as they see fit, as long as each team is represented in it. -@node Information Flow, Prioritizing messages, Organization, Translators +@node Information Flow, Translating plural forms, Organization, Translators @section Information Flow @strong{ NOTE: } This documentation section is outdated and needs to be @@ -7106,7 +7280,104 @@ receiving acceptance yet by the GNU deciders. I'll tell you when I have more information about this. -@node Prioritizing messages, , Information Flow, Translators +@node Translating plural forms, Prioritizing messages, Information Flow, Translators +@section Translating plural forms + +@cindex plural forms, translating +Suppose you are translating a PO file, and it contains an entry like this: + +@smallexample +#, c-format +msgid "One file removed" +msgid_plural "%d files removed" +msgstr[0] "" +msgstr[1] "" +@end smallexample + +@noindent +What does this mean? How do you fill it in? + +Such an entry denotes a message with plural forms, that is, a message where +the text depends on a cardinal number. The general form of the message, +in English, is the @code{msgid_plural} line. The @code{msgid} line is the +English singular form, that is, the form for when the number is equal to 1. +More details about plural forms are explained in @ref{Plural forms}. + +The first thing you need to look at is the @code{Plural-Forms} line in the +header entry of the PO file. It contains the number of plural forms and a +formula. If the PO file does not yet have such a line, you have to add it. +It only depends on the language into which you are translating. You can +get this info by using the @code{msginit} command (see @ref{Creating}) -- +it contains a database of known plural formulas -- or by asking other +members of your translation team. + +Suppose the line looks as follows: + +@smallexample +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +@end smallexample + +It's logically one line; recall that the PO file formatting is allowed to +break long lines so that each physical line fits in 80 monospaced columns. + +The value of @code{nplurals} here tells you that there are three plural +forms. The first thing you need to do is to ensure that the entry contains +an @code{msgstr} line for each of the forms: + +@smallexample +#, c-format +msgid "One file removed" +msgid_plural "%d files removed" +msgstr[0] "" +msgstr[1] "" +msgstr[2] "" +@end smallexample + +Then translate the @code{msgid_plural} line and fill it in into each +@code{msgstr} line: + +@smallexample +#, c-format +msgid "One file removed" +msgid_plural "%d files removed" +msgstr[0] "%d slika uklonjenih" +msgstr[1] "%d slika uklonjenih" +msgstr[2] "%d slika uklonjenih" +@end smallexample + +Now you can refine the translation so that it matches the plural form. +According to the formula above, @code{msgstr[0]} is used when the number +ends in 1 but does not end in 11; @code{msgstr[1]} is used when the number +ends in 2, 3, 4, but not in 12, 13, 14; and @code{msgstr[2]} is used in +all other cases. With this knowledge, you can refine the translations: + +@smallexample +#, c-format +msgid "One file removed" +msgid_plural "%d files removed" +msgstr[0] "%d slika je uklonjena" +msgstr[1] "%d datoteke uklonjenih" +msgstr[2] "%d slika uklonjenih" +@end smallexample + +You noticed that in the English singular form (@code{msgid}) the number +placeholder could be omitted and replaced by the numeral word ``one''. +Can you do this in your translation as well? + +@smallexample +msgstr[0] "jednom datotekom je uklonjen" +@end smallexample + +@noindent +Well, it depends on whether @code{msgstr[0]} applies only to the number 1, +or to other numbers as well. If, according to the plural formula, +@code{msgstr[0]} applies only to @code{n == 1}, then you can use the +specialized translation without the number placeholder. In our case, +however, @code{msgstr[0]} also applies to the numbers 21, 31, 41, etc., +and therefore you cannot omit the placeholder. + +@node Prioritizing messages, , Translating plural forms, Translators @section Prioritizing messages: How to determine which messages to translate first A translator sometimes has only a limited amount of time per week to @@ -7680,15 +7951,15 @@ @cindex @file{aclocal.m4} file If you do not have an @file{aclocal.m4} file in your distribution, -the simplest is to concatenate the files @file{codeset.m4}, +the simplest is to concatenate the files @file{codeset.m4}, @file{fcntl-o.m4}, @file{gettext.m4}, @file{glibc2.m4}, @file{glibc21.m4}, @file{iconv.m4}, @file{intdiv0.m4}, @file{intl.m4}, @file{intldir.m4}, @file{intlmacosx.m4}, @file{intmax.m4}, @file{inttypes_h.m4}, @file{inttypes-pri.m4}, @file{lcmessage.m4}, @file{lib-ld.m4}, @file{lib-link.m4}, @file{lib-prefix.m4}, @file{lock.m4}, @file{longlong.m4}, @file{nls.m4}, @file{po.m4}, @file{printf-posix.m4}, @file{progtest.m4}, @file{size_max.m4}, -@file{stdint_h.m4}, @file{uintmax_t.m4}, @file{visibility.m4}, -@file{wchar_t.m4}, @file{wint_t.m4}, @file{xsize.m4} +@file{stdint_h.m4}, @file{threadlib.m4}, @file{uintmax_t.m4}, +@file{visibility.m4}, @file{wchar_t.m4}, @file{wint_t.m4}, @file{xsize.m4} from GNU @code{gettext}'s @file{m4/} directory into a single file. If you have suppressed the @file{intl/} directory, only @file{gettext.m4}, @file{iconv.m4}, @@ -7891,7 +8162,16 @@ @end example To make LOCALEDIR known to the program, add the following lines to -@file{Makefile.in}: +@file{Makefile.in} if you are using Autoconf version 2.60 or newer: + +@example +datadir = @@datadir@@ +datarootdir= @@datarootdir@@ +localedir = @@localedir@@ +DEFS = -DLOCALEDIR=\"$(localedir)\" @@DEFS@@ +@end example + +or these lines if your version of Autoconf is older than 2.60: @example datadir = @@datadir@@ @@ -7967,8 +8247,9 @@ AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" @end example -for all modules and compilation units together. Furthermore, add this -line to define @samp{localedir}: +for all modules and compilation units together. Furthermore, if you are +using an Autoconf version older then 2.60, add this line to define +@samp{localedir}: @example localedir = $(datadir)/locale @@ -8660,7 +8941,9 @@ * perl-format:: Perl Format Strings * php-format:: PHP Format Strings * gcc-internal-format:: GCC internal Format Strings +* gfc-internal-format:: GFC internal Format Strings * qt-format:: Qt Format Strings +* qt-plural-format:: Qt Plural Format Strings * kde-format:: KDE Format Strings * boost-format:: Boost Format Strings @end menu @@ -8714,7 +8997,7 @@ @subsection Objective C Format Strings Objective C format strings are like C format strings. They support an -additional format directive: "$@@", which when executed consumes an argument +additional format directive: "%@@", which when executed consumes an argument of type @code{Object *}. @node sh-format, python-format, objc-format, Translators for other Languages @@ -8813,7 +9096,9 @@ @node object-pascal-format, ycp-format, awk-format, Translators for other Languages @subsection Object Pascal Format Strings -Where is this documented? +Object Pascal format strings are described in the documentation of the +Free Pascal runtime library, section Format, +@uref{http://www.freepascal.org/docs-html/rtl/sysutils/format.html}. @node ycp-format, tcl-format, object-pascal-format, Translators for other Languages @subsection YCP Format Strings @@ -8853,7 +9138,7 @@ @code{sprintf}, in @file{phpdoc/manual/function.sprintf.html} or @uref{http://www.php.net/manual/en/function.sprintf.php}. -@node gcc-internal-format, qt-format, php-format, Translators for other Languages +@node gcc-internal-format, gfc-internal-format, php-format, Translators for other Languages @subsection GCC internal Format Strings These format strings are used inside the GCC sources. In such a format @@ -8871,7 +9156,19 @@ @samp{P} denotes a function parameter, @samp{Q} denotes an assignment operator, @samp{V} denotes a const/volatile qualifier. -@node qt-format, kde-format, gcc-internal-format, Translators for other Languages +@node gfc-internal-format, qt-format, gcc-internal-format, Translators for other Languages +@subsection GFC internal Format Strings + +These format strings are used inside the GNU Fortran Compiler sources, +that is, the Fortran frontend in the GCC sources. In such a format +string, a directive starts with @samp{%} and is finished by a +specifier: @samp{%} denotes a literal percent sign, @samp{C} denotes the +current source location, @samp{L} denotes a source location, @samp{c} +denotes a character, @samp{s} denotes a string, @samp{i} and @samp{d} +denote an integer, @samp{u} denotes an unsigned integer. @samp{i}, +@samp{d}, and @samp{u} may be preceded by a size specifier @samp{l}. + +@node qt-format, qt-plural-format, gfc-internal-format, Translators for other Languages @subsection Qt Format Strings Qt format strings are described in the documentation of the QString class @@ -8879,7 +9176,14 @@ In summary, a directive consists of a @samp{%} followed by a digit. The same directive cannot occur more than once in a format string. -@node kde-format, boost-format, qt-format, Translators for other Languages +@node qt-plural-format, kde-format, qt-format, Translators for other Languages +@subsection Qt Format Strings + +Qt format strings are described in the documentation of the QObject::tr method +@uref{file:/usr/lib/qt-4.3.0/doc/html/qobject.html}. +In summary, the only allowed directive is @samp{%n}. + +@node kde-format, boost-format, qt-plural-format, Translators for other Languages @subsection KDE Format Strings KDE 4 format strings are defined as follows: @@ -9268,11 +9572,19 @@ @include rt-gettext.texi +Note: @code{xgettext} supports only the one-argument form of the +@code{gettext} invocation, where no options are present and the +@var{textdomain} is implicit, from the environment. + @node ngettext Invocation, envsubst Invocation, gettext Invocation, sh @subsubsection Invoking the @code{ngettext} program @include rt-ngettext.texi +Note: @code{xgettext} supports only the three-arguments form of the +@code{ngettext} invocation, where no options are present and the +@var{textdomain} is implicit, from the environment. + @node envsubst Invocation, eval_gettext Invocation, ngettext Invocation, sh @subsubsection Invoking the @code{envsubst} program @@ -9401,6 +9713,36 @@ An example is available in the @file{examples} directory: @code{hello-python}. +A note about format strings: Python supports format strings with unnamed +arguments, such as @code{'...%d...'}, and format strings with named arguments, +such as @code{'...%(ident)d...'}. The latter are preferable for +internationalized programs, for two reasons: + +@itemize @bullet +@item +When a format string takes more than one argument, the translator can provide +a translation that uses the arguments in a different order, if the format +string uses named arguments. For example, the translator can reformulate +@smallexample +"'%(volume)s' has only %(freespace)d bytes free." +@end smallexample +@noindent +to +@smallexample +"Only %(freespace)d bytes free on '%(volume)s'." +@end smallexample +@noindent +Additionally, the identifiers also provide some context to the translator. + +@item +In the context of plural forms, the format string used for the singular form +does not use the numeric argument in many languages. Even in English, one +prefers to write @code{"one hour"} instead of @code{"1 hour"}. Omitting +individual arguments from format strings like this is only possible with +the named argument syntax. (With unnamed arguments, Python -- unlike C -- +verifies that the format string uses all supplied arguments.) +@end itemize + @node Common Lisp, clisp C, Python, List of Programming Languages @subsection GNU clisp - Common Lisp @cindex Common Lisp @@ -10657,6 +10999,48 @@ mis-interpreted as a pattern match, the rest of the input file is most probably parsed incorrectly. +There are certain cases, where the ambiguity cannot be resolved at all: + +@example +$x = wantarray ? 1 : 0; +@end example + +The Perl built-in function @code{wantarray} does not accept any arguments. +The Perl parser therefore knows that the question mark does not start +a regular expression but is the ternary conditional operator. + +@example +sub wantarrays @{@} +$x = wantarrays ? 1 : 0; +@end example + +Now the situation is different. The function @code{wantarrays} takes +a variable number of arguments (like any non-prototyped Perl function). +The question mark is now the delimiter of a pattern match, and hence +the piece of code does not compile. + +@example +sub wantarrays() @{@} +$x = wantarrays ? 1 : 0; +@end example + +Now the function is prototyped, Perl knows that it does not accept any +arguments, and the question mark is therefore interpreted as the +ternaray operator again. But that unfortunately outsmarts @code{xgettext}. + +The Perl parser in @code{xgettext} cannot know whether a function has +a prototype and what that prototype would look like. It therefore makes +an educated guess. If a function is known to be a Perl built-in and +this function does not accept any arguments, a following question mark +or slash is treated as an operator, otherwise as the delimiter of a +following regular expression. The Perl built-ins that do not accept +arguments are @code{wantarray}, @code{fork}, @code{time}, @code{times}, +@code{getlogin}, @code{getppid}, @code{getpwent}, @code{getgrent}, +@code{gethostent}, @code{getnetent}, @code{getprotoent}, @code{getservent}, +@code{setpwent}, @code{setgrent}, @code{endpwent}, @code{endgrent}, +@code{endhostent}, @code{endnetent}, @code{endprotoent}, and +@code{endservent}. + If you find that @code{xgettext} fails to extract strings from portions of your sources, you should therefore look out for slashes and/or question marks preceding these sections. You may have come @@ -10664,6 +11048,17 @@ should report that bug). In the meantime you should consider to reformulate your code in a manner less challenging to @code{xgettext}. +In particular, if the parser is too dumb to see that a function +does not accept arguments, use parentheses: + +@example +$x = somefunc() ? 1 : 0; +$y = (somefunc) ? 1 : 0; +@end example + +In fact the Perl parser itself has similar problems and warns you +about such constructs. + @node Default Keywords, Special Keywords, General Problems, Perl @subsubsection Which keywords will xgettext look for? @cindex Perl default keywords @@ -11750,11 +12145,6 @@ @printindex cp -@iftex -@c Table of Contents -@contents -@end iftex - @bye @c Local variables: diff -Nru gettext-0.17/gettext-tools/doc/gettext_toc.html gettext-0.18.1.1/gettext-tools/doc/gettext_toc.html --- gettext-0.17/gettext-tools/doc/gettext_toc.html 2007-11-04 18:25:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/gettext_toc.html 2010-06-06 18:36:29.000000000 +0000 @@ -1,15 +1,15 @@ + from gettext.texi on 6 June 2010 --> GNU gettext utilities - Table of Contents -

    GNU gettext tools, version 0.17

    +

    GNU gettext tools, version 0.18.1

    Native Language Support Library and Tools

    -

    Edition 0.17, 31 October 2007

    +

    Edition 0.18.1, 6 June 2010

    Ulrich Drepper
    Jim Meyering
    François Pinard
    @@ -298,169 +298,172 @@
  • 12.4.3 Mailing Lists
  • 12.5 Information Flow -
  • 12.6 Prioritizing messages: How to determine which messages to translate first +
  • 12.6 Translating plural forms +
  • 12.7 Prioritizing messages: How to determine which messages to translate first -
  • 13 The Maintainer's View +
  • 13 The Maintainer's View -
  • 14 The Installer's and Distributor's View -
  • 15 Other Programming Languages - -
  • 16 Concluding Remarks - -
  • A Language Codes - -
  • B Country Codes -
  • C Licenses +
  • 13.1 Flat or Non-Flat Directory Structures +
  • 13.2 Prerequisite Works +
  • 13.3 Invoking the gettextize Program +
  • 13.4 Files You Must Create or Alter + +
  • 13.5 Autoconf macros for use in ‘configure.ac’ + +
  • 13.6 Integrating with CVS + +
  • 13.7 Creating a Distribution Tarball + +
  • 14 The Installer's and Distributor's View +
  • 15 Other Programming Languages + +
  • 16 Concluding Remarks + +
  • A Language Codes


    -This document was generated on 4 November 2007 using the +This document was generated on 6 June 2010 using the texi2html translator version 1.52b.

    diff -Nru gettext-0.17/gettext-tools/doc/ISO_639 gettext-0.18.1.1/gettext-tools/doc/ISO_639 --- gettext-0.17/gettext-tools/doc/ISO_639 2006-10-07 14:29:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/ISO_639 2010-06-06 12:49:57.000000000 +0000 @@ -12,7 +12,7 @@ Updated from http://lcweb.loc.gov/standards/iso639-2/codechanges.html, 2004-01-18 by Bruno Haible Updated from http://www.loc.gov/standards/iso639-2/index.html -2006-10-05 by Bruno Haible +2008-04-25 by Bruno Haible Two-letter lower-case symbols are used. The Registration Authority for ISO 639 is Infoterm, Osterreichisches @@ -20,7 +20,6 @@ aa Afar ab Abkhazian -ad Adangme ae Avestan af Afrikaans ak Akan @@ -33,7 +32,7 @@ az Azerbaijani ba Bashkir -be Byelorussian; Belarusian +be Belarusian bg Bulgarian bh Bihari bi Bislama @@ -75,7 +74,7 @@ fy Western Frisian ga Irish -gd Scots; Gaelic +gd Scottish Gaelic gl Galician gn Guarani gu Gujarati @@ -93,9 +92,9 @@ ia Interlingua id Indonesian (formerly in) -ie Interlingue +ie Interlingue; Occidental ig Igbo -ii Sichuan Yi +ii Sichuan Yi; Nuosu ik Inupiak; Inupiaq io Ido is Icelandic @@ -111,7 +110,7 @@ kj Kuanyama; Kwanyama kk Kazakh kl Kalaallisut; Greenlandic -km Khmer; Cambodian +km Central Khmer; Cambodian kn Kannada ko Korean kr Kanuri @@ -164,12 +163,12 @@ pa Panjabi; Punjabi pi Pali pl Polish -ps Pashto, Pushto +ps Pashto; Pushto pt Portuguese qu Quechua -rm Rhaeto-Romance +rm Romansh rn Rundi; Kirundi ro Romanian ru Russian diff -Nru gettext-0.17/gettext-tools/doc/ISO_639-2 gettext-0.18.1.1/gettext-tools/doc/ISO_639-2 --- gettext-0.17/gettext-tools/doc/ISO_639-2 2006-10-19 11:46:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/ISO_639-2 2010-06-06 12:49:57.000000000 +0000 @@ -1,12 +1,12 @@ Technical contents of ISO 639-2 Updated from http://www.loc.gov/standards/iso639-2/code_list.html -2006-10-05 by Bruno Haible +2008-04-25 by Bruno Haible First column: ISO 639-2 code. Second column: ISO 639-2 English name. The remaining columns are not from ISO. They are mostly from -www.ethnologue.com. +www.ethnologue.com in 2006. Third column: Categorization F = Family of languages S = Synthetic / Artificial language @@ -18,6 +18,7 @@ ace Achinese 3000000 Indonesia ach Acoli 750000 Uganda +ada Adangme 800000 Ghana ady Adyghe; Adygei 500000 Russia afa Afro-Asiatic (Other) F afh Afrihili S @@ -29,37 +30,37 @@ ang English, Old (ca.450-1100) X anp Angika 740000 India apa Apache languages F -arc Aramaic U few Syria, Turkey, Iraq, Iran -arn Araucanian 300000 Chile +arc Official Aramaic; Imperial Aramaic X few Syria, Turkey, Iraq, Iran +arn Mapudungun; Mapuche 300000 Chile arp Arapaho 1000 United States art Artificial (Other) S arw Arawak 2500 Suriname -ast Asturian; Bable 125000 Spain +ast Asturian; Bable; Leonese; Asturleonese 125000 Spain ath Athapascan languages F aus Australian languages F awa Awadhi 20000000 India -bad Banda U 1100000 Central African Republic, Dem. Rep. Congo +bad Banda languages F 1100000 Central African Republic, Dem. Rep. Congo bai Bamileke languages F bal Baluchi U 5000000 Pakistan, Iran, Afghanistan ban Balinese 3900000 Indonesia bas Basa 230000 Cameroon bat Baltic (Other) F -bej Beja 950000 Sudan +bej Beja; Bedawiyet 1178000 Sudan bem Bemba 3600000 Zambia ber Berber (Other) F bho Bhojpuri 26600000 India bik Bikol U 3500000 Philippines -bin Bini 1000000 Nigeria +bin Bini; Edo 1000000 Nigeria bla Siksika 5000 Canada bnt Bantu (Other) F bra Braj 44000 India -btk Batak (Indonesia) U 6230000 Indonesia +btk Batak languages (Indonesia) F 6230000 Indonesia bua Buriat U 450000 Russia bug Buginese 3500000 Indonesia byn Blin; Bilin 70000 Eritrea cad Caddo 25 United States cai Central American Indian (Other) F -car Carib 10000 Venezuela +car Galibi Carib 10000 Venezuela cau Caucasian (Other) F ceb Cebuano 20000000 Philippines cel Celtic (Other) F @@ -69,7 +70,7 @@ chm Mari U 590000 Russia chn Chinook jargon 100 Canada cho Choctaw 9000 United States -chp Chipewyan 4000 Canada +chp Chipewyan; Dene Suline 4000 Canada chr Cherokee 20000 United States chy Cheyenne 2000 United States cmc Chamic languages F @@ -83,7 +84,7 @@ cus Cushitic (Other) F dak Dakota 15000 United States dar Dargwa 370000 Russia -day Dayak U Malaysia, Indonesia +day Land Dayak languages F Malaysia, Indonesia del Delaware U 7 United States den Slave (Athapascan) U United States, Canada dgr Dogrib 2000 Dogrib @@ -123,7 +124,7 @@ got Gothic X grb Grebo U 220000 Liberia grc Greek, Ancient (to 1453) X -gsw Alemani; Swiss German 6000000 Switzerland +gsw Swiss German; Alemannic; Alsatian 6000000 Switzerland gwi Gwich´in 700 Canada hai Haida U 3000 Canada, United States haw Hawaiian 1000 United States @@ -134,7 +135,7 @@ hsb Upper Sorbian 15000 Germany hup Hupa 8 United States iba Iban 400000 Malaysia -ijo Ijo U +ijo Ijo languages F ilo Iloko 8000000 Philippines inc Indic (Other) F ine Indo-European (Other) F @@ -146,9 +147,9 @@ jrb Judeo-Arabic U kaa Kara-Kalpak 410000 Uzbekistan kab Kabyle 3100000 Algeria -kac Kachin 940000 Myanmar +kac Kachin; Jingpho 940000 Myanmar kam Kamba 2400000 Kenya -kar Karen U Myanmar +kar Karen languages F Myanmar kaw Kawi U kbd Kabardian 1000000 Turkey, Russia kha Khasi 865000 India @@ -160,7 +161,7 @@ kpe Kpelle U Liberia krc Karachay-Balkar 240000 Russia krl Karelian 128000 Russia -kro Kru U Côte d'Ivoire +kro Kru languages F Côte d'Ivoire kru Kurukh 2000000 India kum Kumyk 280000 Russia kut Kutenai 6 Canada @@ -188,7 +189,7 @@ mga Irish, Middle (900-1200) X mic Mi'kmaq; Micmac 8500 Canada min Minangkabau 8500000 Indonesia -mis Miscellaneous languages F +mis Uncoded languages F mkh Mon-Khmer (Other) F mnc Manchu 60 China mni Manipuri 1260000 India @@ -202,7 +203,7 @@ mwr Marwari U millions India myn Mayan languages F myv Erzya 520000 Russia -nah Nahuatl X +nah Nahuatl languages FX nai North American Indian F nap Neapolitan 7000000 Italy nds Low German; Low Saxon; German, Low; Saxon, Low 1000 Germany @@ -226,7 +227,7 @@ paa Papuan (Other) F pag Pangasinan 1160000 Philippines pal Pahlavi X -pam Pampanga 1900000 Philippines +pam Pampanga; Kapampangan 1900000 Philippines pap Papiamento 320000 Netherlands Antilles pau Palauan 15000 Palau peo Persian, Old (ca.600-400 B.C.) X @@ -238,7 +239,7 @@ qaa-qtz Reserved for local use Z raj Rajasthani U millions India rap Rapanui 3400 Chile -rar Rarotongan 17000 Cook Islands +rar Rarotongan; Cook Islands Maori 17000 Cook Islands roa Romance (Other) F rom Romany U Czech, Slovakia, ... rup Aromanian; Arumanian; Macedo-Romanian 300000 Greece @@ -267,13 +268,14 @@ sms Skolt Sami 300 Finland snk Soninke 700000 Mali sog Sogdian X -son Songhai U Niger -srn Sranan Togo 120000 Suriname +son Songhai languages F Niger +srn Sranan Tongo 120000 Suriname srr Serer 1200000 Senegal ssa Nilo-Saharan (Other) F suk Sukuma 3200000 Tanzania sus Susu 1000000 Guinea sux Sumerian X +syc Classical Syriac X syr Syriac X tai Tai (Other) F tem Timne 1200000 Sierra Leone @@ -284,7 +286,7 @@ tkl Tokelau 3200 Tokelau tlh Klingon; tlhIngan-Hol S tli Tlingit 800 United States -tmh Tamashek U +tmh Tamashek F Niger, Mali tog Tonga (Nyasa) 170000 Malawi tpi Tok Pisin 120000 Papua New Guinea tsi Tsimshian 800 Canada @@ -309,8 +311,9 @@ yap Yapese 6600 Micronesia ypk Yupik languages F zap Zapotec X +zbl Blissymbols S zen Zenaga 200 Mauritania -znd Zande U +znd Zande languages F zun Zuni 9700 United States -zxx No linguistic content Z +zxx No linguistic content; Not applicable Z zza Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki U diff -Nru gettext-0.17/gettext-tools/doc/iso-639-2.texi gettext-0.18.1.1/gettext-tools/doc/iso-639-2.texi --- gettext-0.17/gettext-tools/doc/iso-639-2.texi 2006-10-27 11:45:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/iso-639-2.texi 2010-06-06 12:49:57.000000000 +0000 @@ -2,12 +2,12 @@ Achinese. @item awa Awadhi. -@item bad -Banda. @item bal Baluchi. @item ban Balinese. +@item bej +Beja; Bedawiyet. @item bem Bemba. @item bho @@ -15,9 +15,7 @@ @item bik Bikol. @item bin -Bini. -@item btk -Batak (Indonesia). +Bini; Edo. @item bug Buginese. @item ceb @@ -33,7 +31,7 @@ @item gon Gondi. @item gsw -Alemani; Swiss German. +Swiss German; Alemannic; Alsatian. @item hil Hiligaynon. @item hmn @@ -87,7 +85,7 @@ @item pag Pangasinan. @item pam -Pampanga. +Pampanga; Kapampangan. @item raj Rajasthani. @item sas diff -Nru gettext-0.17/gettext-tools/doc/iso-639.texi gettext-0.18.1.1/gettext-tools/doc/iso-639.texi --- gettext-0.17/gettext-tools/doc/iso-639.texi 2006-10-27 12:02:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/iso-639.texi 2010-06-06 12:49:57.000000000 +0000 @@ -2,8 +2,6 @@ Afar. @item ab Abkhazian. -@item ad -Adangme. @item ae Avestan. @item af @@ -27,7 +25,7 @@ @item ba Bashkir. @item be -Byelorussian; Belarusian. +Belarusian. @item bg Bulgarian. @item bh @@ -101,7 +99,7 @@ @item ga Irish. @item gd -Scots; Gaelic. +Scottish Gaelic. @item gl Galician. @item gn @@ -133,11 +131,11 @@ @item id Indonesian (formerly in). @item ie -Interlingue. +Interlingue; Occidental. @item ig Igbo. @item ii -Sichuan Yi. +Sichuan Yi; Nuosu. @item ik Inupiak; Inupiaq. @item io @@ -165,7 +163,7 @@ @item kl Kalaallisut; Greenlandic. @item km -Khmer; Cambodian. +Central Khmer; Cambodian. @item kn Kannada. @item ko @@ -261,13 +259,13 @@ @item pl Polish. @item ps -Pashto, Pushto. +Pashto; Pushto. @item pt Portuguese. @item qu Quechua. @item rm -Rhaeto-Romance. +Romansh. @item rn Rundi; Kirundi. @item ro diff -Nru gettext-0.17/gettext-tools/doc/Makefile.am gettext-0.18.1.1/gettext-tools/doc/Makefile.am --- gettext-0.17/gettext-tools/doc/Makefile.am 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/doc subdirectory of GNU gettext -## Copyright (C) 1995-1997, 2001-2006 Free Software Foundation, Inc. +## Copyright (C) 1995-1997, 2001-2007, 2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -19,6 +19,9 @@ AUTOMAKE_OPTIONS = 1.2 gnits EXTRA_DIST = MOSTLYCLEANFILES = + +# List of -I options referring to directories that contain texinfo +# sources used by this directory. TEXINCLUDES = -I $(top_srcdir)/../gettext-runtime/doc SED = sed @@ -91,8 +94,7 @@ install-data-local: install-html installdirs-local: installdirs-html uninstall-local: uninstall-html -# Hidden from automake, but really activated. Works around an automake-1.5 bug. -#distdir: dist-html +dist-hook: dist-html html-local: html-split # Override of automake's definition. The HTML files we want to distribute are @@ -103,8 +105,7 @@ uninstall-html: uninstall-html-split dist-html: dist-html-split -CLEANFILES = gettext.pdf gettext.html -# gettext.dvi and gettext.ps are already known to automake. +# CLEANFILES: gettext.{dvi,ps,pdf,html} are already known to automake. MAINTAINERCLEANFILES = gettext_*.html @@ -159,7 +160,6 @@ # Override of automake's definition: #TEXI2PDF = @TEXI2PDF@ TEXI2PDF = @TEXI2PDF@ $(TEXINCLUDES) -SUFFIXES = .pdf # The install-pdf target is already defined by automake. @@ -217,7 +217,7 @@ cp -p $$d/$$file $(distdir)/$$file || exit 1 # We would like to put gettext_*.html into EXTRA_DIST, but it doesn't work. -dist-html-split: +dist-html-split: gettext_toc.html $(mkdir_p) $(distdir)/ file=gettext_toc.html; \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ diff -Nru gettext-0.17/gettext-tools/doc/Makefile.in gettext-0.18.1.1/gettext-tools/doc/Makefile.in --- gettext-0.17/gettext-tools/doc/Makefile.in 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/Makefile.in 2010-06-06 20:12:28.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,8 +17,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -39,28 +41,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -68,13 +83,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -83,23 +99,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -107,68 +131,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -188,13 +242,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -202,6 +256,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = INFO_DEPS = $(srcdir)/gettext.info @@ -220,16 +281,34 @@ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -docDATA_INSTALL = $(INSTALL_DATA) +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' DATA = $(doc_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -270,141 +349,325 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ # Documentation in Postscript format. # Override of automake's definition: #DVIPS = @DVIPS@ DVIPS = @DVIPS@ -D600 -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -418,53 +681,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -477,17 +820,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -495,18 +841,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -521,6 +875,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@ @@ -531,84 +886,209 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = sed SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ @@ -618,12 +1098,15 @@ # Override of automake's definition: #TEXI2PDF = @TEXI2PDF@ TEXI2PDF = @TEXI2PDF@ $(TEXINCLUDES) +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -633,13 +1116,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -660,8 +1144,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -676,6 +1171,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -689,6 +1185,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -701,6 +1198,9 @@ gettext.evs gettext.fn gettext.fns gettext.kw gettext.kws \ gettext.op gettext.ops gettext.pg gettext.pgs gettext.vr \ gettext.vrs + +# List of -I options referring to directories that contain texinfo +# sources used by this directory. TEXINCLUDES = -I $(top_srcdir)/../gettext-runtime/doc RM = rm -f MAKEINFOFLAGS = $(TEXINCLUDES) --no-split @@ -720,8 +1220,8 @@ # The FAQ. To be edited with Mozilla. # The tutorial. To be edited by hand. doc_DATA = FAQ.html tutorial.html -CLEANFILES = gettext.pdf gettext.html -# gettext.dvi and gettext.ps are already known to automake. + +# CLEANFILES: gettext.{dvi,ps,pdf,html} are already known to automake. MAINTAINERCLEANFILES = gettext_*.html # Documentation in DVI format. @@ -729,26 +1229,25 @@ # Override of automake's definition: #TEXI2DVI = texi2dvi TEXI2DVI = texi2dvi $(TEXINCLUDES) -SUFFIXES = .pdf # Documentation in HTML format. TEXI2HTML = @PERL@ $(srcdir)/texi2html all: all-am .SUFFIXES: -.SUFFIXES: .pdf .dvi .html .info .ps .texi +.SUFFIXES: .dvi .html .info .pdf .ps .texi $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits doc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits doc/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits doc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -766,6 +1265,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -775,7 +1275,7 @@ .texi.info: restore=: && backupdir="$(am__leading_dot)am$$$$" && \ - am__cwd=`pwd` && cd $(srcdir) && \ + am__cwd=`pwd` && $(am__cd) $(srcdir) && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ @@ -787,10 +1287,10 @@ -o $@ $<; \ then \ rc=0; \ - cd $(srcdir); \ + $(am__cd) $(srcdir); \ else \ rc=$$?; \ - cd $(srcdir) && \ + $(am__cd) $(srcdir) && \ $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ fi; \ rm -rf $$backupdir; exit $$rc @@ -834,16 +1334,18 @@ uninstall-dvi-am: @$(NORMAL_UNINSTALL) - @list='$(DVIS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ rm -f "$(DESTDIR)$(dvidir)/$$f"; \ done uninstall-html-am: @$(NORMAL_UNINSTALL) - @list='$(HTMLS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ done @@ -857,7 +1359,8 @@ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ - install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ + if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ + then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \ done; \ else :; fi @$(NORMAL_UNINSTALL) @@ -873,16 +1376,18 @@ uninstall-pdf-am: @$(NORMAL_UNINSTALL) - @list='$(PDFS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ done uninstall-ps-am: @$(NORMAL_UNINSTALL) - @list='$(PSS)'; for p in $$list; do \ - f=$(am__strip_dir) \ + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ rm -f "$(DESTDIR)$(psdir)/$$f"; \ done @@ -899,19 +1404,22 @@ for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ if test -f $$file; then \ relfile=`expr "$$file" : "$$d/\(.*\)"`; \ - test -f $(distdir)/$$relfile || \ - cp -p $$file $(distdir)/$$relfile; \ + test -f "$(distdir)/$$relfile" || \ + cp -p $$file "$(distdir)/$$relfile"; \ else :; fi; \ done; \ done mostlyclean-aminfo: - -rm -rf gettext.am gettext.ams gettext.aux gettext.cp gettext.cps gettext.ef \ - gettext.em gettext.ems gettext.ev gettext.fn gettext.kw \ - gettext.ky gettext.kys gettext.log gettext.op gettext.ops \ - gettext.pg gettext.pgs gettext.tmp gettext.toc gettext.tp \ - gettext.tps gettext.vr gettext.vrs gettext.dvi gettext.pdf \ - gettext.ps gettext.html + -rm -rf gettext.am gettext.ams gettext.aux gettext.cp gettext.cps \ + gettext.ef gettext.em gettext.ems gettext.ev gettext.fn \ + gettext.kw gettext.ky gettext.kys gettext.log gettext.op \ + gettext.ops gettext.pg gettext.pgs gettext.tmp gettext.toc \ + gettext.tp gettext.tps gettext.vr gettext.vrs + +clean-aminfo: + -test -z "gettext.dvi gettext.pdf gettext.ps gettext.html" \ + || rm -rf gettext.dvi gettext.pdf gettext.ps gettext.html maintainer-clean-aminfo: @list='$(INFO_DEPS)'; for i in $$list; do \ @@ -922,20 +1430,23 @@ install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" - @list='$(doc_DATA)'; for p in $$list; do \ + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) - @list='$(doc_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ - rm -f "$(DESTDIR)$(docdir)/$$f"; \ - done + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(docdir)" && rm -f $$files tags: TAGS TAGS: @@ -959,19 +1470,23 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-info + dist-info dist-hook check-am: all-am check: check-am all-am: Makefile $(INFO_DEPS) $(DATA) all-local @@ -997,10 +1512,10 @@ -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -1008,7 +1523,7 @@ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am -clean-am: clean-generic clean-libtool mostlyclean-am +clean-am: clean-aminfo clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile @@ -1033,37 +1548,45 @@ install-dvi-am: $(DVIS) @$(NORMAL_INSTALL) test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)" - @list='$(DVIS)'; for p in $$list; do \ + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \ done install-exec-am: install-html-am: $(HTMLS) @$(NORMAL_INSTALL) test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" - @list='$(HTMLS)'; for p in $$list; do \ + @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ + $(am__strip_dir) \ if test -d "$$d$$p"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \ else \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + list2="$$list2 $$d$$p"; \ fi; \ - done + done; \ + test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ + done; } install-info: install-info-am install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)" @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - list='$(INFO_DEPS)'; \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ @@ -1071,17 +1594,19 @@ if test -f $$file; then d=.; else d=$(srcdir); fi; \ file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ - $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ + $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ if test -f $$ifile; then \ - relfile=`echo "$$ifile" | sed 's|^.*/||'`; \ - echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \ - $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \ + echo "$$ifile"; \ else : ; fi; \ done; \ - done + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done @$(POST_INSTALL) - @if false; then \ - list='$(INFO_DEPS)'; \ + @if (install-info --version && \ + install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ @@ -1095,23 +1620,27 @@ install-pdf-am: $(PDFS) @$(NORMAL_INSTALL) test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)" - @list='$(PDFS)'; for p in $$list; do \ + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ - done + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done install-ps: install-ps-am install-ps-am: $(PSS) @$(NORMAL_INSTALL) test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)" - @list='$(PSS)'; for p in $$list; do \ + @list='$(PSS)'; test -n "$(psdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \ - done + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done installcheck-am: maintainer-clean: maintainer-clean-am @@ -1138,22 +1667,22 @@ .MAKE: install-am install-strip -.PHONY: all all-am all-local check check-am clean clean-generic \ - clean-libtool dist-info distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am html-local \ - info info-am install install-am install-data install-data-am \ - install-data-local install-docDATA install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-local \ - maintainer-clean maintainer-clean-aminfo \ - maintainer-clean-generic maintainer-clean-vti mostlyclean \ - mostlyclean-aminfo mostlyclean-generic mostlyclean-libtool \ - mostlyclean-vti pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-docDATA uninstall-dvi-am uninstall-html-am \ - uninstall-info-am uninstall-local uninstall-pdf-am \ - uninstall-ps-am +.PHONY: all all-am all-local check check-am clean clean-aminfo \ + clean-generic clean-libtool dist-hook dist-info distclean \ + distclean-generic distclean-libtool distdir dvi dvi-am html \ + html-am html-local info info-am install install-am \ + install-data install-data-am install-data-local \ + install-docDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-local maintainer-clean \ + maintainer-clean-aminfo maintainer-clean-generic \ + maintainer-clean-vti mostlyclean mostlyclean-aminfo \ + mostlyclean-generic mostlyclean-libtool mostlyclean-vti pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-docDATA \ + uninstall-dvi-am uninstall-html-am uninstall-info-am \ + uninstall-local uninstall-pdf-am uninstall-ps-am iso-639.texi: ISO_639 iso-639.sed @@ -1197,8 +1726,7 @@ install-data-local: install-html installdirs-local: installdirs-html uninstall-local: uninstall-html -# Hidden from automake, but really activated. Works around an automake-1.5 bug. -#distdir: dist-html +dist-hook: dist-html html-local: html-split # Override of automake's definition. The HTML files we want to distribute are @@ -1279,13 +1807,14 @@ cp -p $$d/$$file $(distdir)/$$file || exit 1 # We would like to put gettext_*.html into EXTRA_DIST, but it doesn't work. -dist-html-split: +dist-html-split: gettext_toc.html $(mkdir_p) $(distdir)/ file=gettext_toc.html; \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ for file in `cd $$d && echo gettext_*.html`; do \ cp -p $$d/$$file $(distdir)/$$file || exit 1; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/doc/msgattrib.texi gettext-0.18.1.1/gettext-tools/doc/msgattrib.texi --- gettext-0.17/gettext-tools/doc/msgattrib.texi 2006-10-05 11:24:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgattrib.texi 2010-06-06 12:49:57.000000000 +0000 @@ -177,6 +177,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgattrib} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgattrib} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgattrib} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msgcat.texi gettext-0.18.1.1/gettext-tools/doc/msgcat.texi --- gettext-0.17/gettext-tools/doc/msgcat.texi 2006-12-15 12:59:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgcat.texi 2010-06-06 12:49:57.000000000 +0000 @@ -115,6 +115,12 @@ Use first available translation for each message. Don't merge several translations into one. +@item --lang=@var{catalogname} +@opindex --lang@r{, @code{msgcat} option} +Specify the @samp{Language} field to be used in the header entry. See +@ref{Header Entry} for the meaning of this field. Note: The +@samp{Language-Team} and @samp{Plural-Forms} fields are left unchanged. + @item --color @itemx --color=@var{when} @opindex --color@r{, @code{msgcat} option} diff -Nru gettext-0.17/gettext-tools/doc/msgcmp.texi gettext-0.18.1.1/gettext-tools/doc/msgcmp.texi --- gettext-0.17/gettext-tools/doc/msgcmp.texi 2006-10-04 16:42:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgcmp.texi 2010-06-06 12:49:57.000000000 +0000 @@ -40,6 +40,13 @@ @opindex --multi-domain@r{, @code{msgcmp} option} Apply @var{ref}.pot to each of the domains in @var{def}.po. +@item -N +@itemx --no-fuzzy-matching +@opindex -N@r{, @code{msgcmp} option} +@opindex --no-fuzzy-matching@r{, @code{msgcmp} option} +Do not use fuzzy matching when an exact match is not found. This may speed +up the operation considerably. + @item --use-fuzzy @opindex --use-fuzzy@r{, @code{msgcmp} option} Consider fuzzy messages in the @var{def}.po file like translated messages. diff -Nru gettext-0.17/gettext-tools/doc/msgcomm.texi gettext-0.18.1.1/gettext-tools/doc/msgcomm.texi --- gettext-0.17/gettext-tools/doc/msgcomm.texi 2006-08-08 20:53:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgcomm.texi 2010-06-06 12:49:57.000000000 +0000 @@ -102,6 +102,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgcomm} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgcomm} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgcomm} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msgconv.texi gettext-0.18.1.1/gettext-tools/doc/msgconv.texi --- gettext-0.17/gettext-tools/doc/msgconv.texi 2003-10-22 10:49:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgconv.texi 2010-06-06 12:49:57.000000000 +0000 @@ -75,6 +75,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgconv} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgconv} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgconv} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msgen.texi gettext-0.18.1.1/gettext-tools/doc/msgen.texi --- gettext-0.17/gettext-tools/doc/msgen.texi 2003-10-22 10:49:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgen.texi 2010-06-06 12:49:57.000000000 +0000 @@ -68,6 +68,24 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --lang=@var{catalogname} +@opindex --lang@r{, @code{msgcat} option} +Specify the @samp{Language} field to be used in the header entry. See +@ref{Header Entry} for the meaning of this field. Note: The +@samp{Language-Team} and @samp{Plural-Forms} fields are not set by this +option. + +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgen} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgen} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgen} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msgfilter.texi gettext-0.18.1.1/gettext-tools/doc/msgfilter.texi --- gettext-0.17/gettext-tools/doc/msgfilter.texi 2007-09-02 10:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgfilter.texi 2010-06-06 12:49:57.000000000 +0000 @@ -8,6 +8,16 @@ The @code{msgfilter} program applies a filter to all translations of a translation catalog. +@vindex MSGFILTER_MSGCTXT@r{, environment variable} +@vindex MSGFILTER_MSGID@r{, environment variable} +@vindex MSGFILTER_LOCATION@r{, environment variable} +During each @var{filter} invocation, the environment variable +@code{MSGFILTER_MSGID} is bound to the message's msgid, and the environment +variable @code{MSGFILTER_LOCATION} is bound to the location in the PO file +of the message. If the message has a context, the environment variable +@code{MSGFILTER_MSGCTXT} is bound to the message's msgctxt, otherwise it is +unbound. + @subsection Input file location @table @samp @@ -133,6 +143,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgfilter} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgfilter} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgfilter} option} Always write an output file even if it contains no message. @@ -231,5 +252,5 @@ To convert Serbian translations in Cyrillic script to Latin script: @smallexample -msgfilter recode-sr-latin sr.po +msgfilter recode-sr-latin < sr.po @end smallexample diff -Nru gettext-0.17/gettext-tools/doc/msgfmt.texi gettext-0.18.1.1/gettext-tools/doc/msgfmt.texi --- gettext-0.17/gettext-tools/doc/msgfmt.texi 2004-02-22 11:50:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgfmt.texi 2010-06-06 12:49:57.000000000 +0000 @@ -289,7 +289,9 @@ @item --statistics @opindex --statistics@r{, @code{msgfmt} option} -Print statistics about translations. +Print statistics about translations. When the option @code{--verbose} is used +in combination with @code{--statistics}, the input file name is printed in +front of the statistics line. @item -v @itemx --verbose diff -Nru gettext-0.17/gettext-tools/doc/msggrep.texi gettext-0.18.1.1/gettext-tools/doc/msggrep.texi --- gettext-0.17/gettext-tools/doc/msggrep.texi 2007-09-02 10:39:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msggrep.texi 2010-06-06 12:49:57.000000000 +0000 @@ -53,13 +53,13 @@ @item it comes from one of the specified source files, @item or if it comes from one of the specified domains, @item or if @samp{-J} is given and its context (msgctxt) matches - @var{msgctxt-pattern}, +@var{msgctxt-pattern}, @item or if @samp{-K} is given and its key (msgid or msgid_plural) matches - @var{msgid-pattern}, +@var{msgid-pattern}, @item or if @samp{-T} is given and its translation (msgstr) matches - @var{msgstr-pattern}, +@var{msgstr-pattern}, @item or if @samp{-C} is given and the translator's comment matches - @var{comment-pattern}. +@var{comment-pattern}. @end itemize When more than one selection criterion is specified, the set of selected @@ -177,6 +177,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msggrep} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msggrep} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msggrep} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msginit.texi gettext-0.18.1.1/gettext-tools/doc/msginit.texi --- gettext-0.17/gettext-tools/doc/msginit.texi 2003-10-22 10:49:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msginit.texi 2010-06-06 12:49:57.000000000 +0000 @@ -71,6 +71,17 @@ Declares that the PO file will not have a human translator and is instead automatically generated. +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msginit} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msginit} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item -p @itemx --properties-output @opindex -p@r{, @code{msginit} option} diff -Nru gettext-0.17/gettext-tools/doc/msgmerge.texi gettext-0.18.1.1/gettext-tools/doc/msgmerge.texi --- gettext-0.17/gettext-tools/doc/msgmerge.texi 2006-10-05 11:24:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgmerge.texi 2010-06-06 12:49:57.000000000 +0000 @@ -155,6 +155,25 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --lang=@var{catalogname} +@opindex --lang@r{, @code{msgcat} option} +Specify the @samp{Language} field to be used in the header entry. See +@ref{Header Entry} for the meaning of this field. Note: The +@samp{Language-Team} and @samp{Plural-Forms} fields are left unchanged. +If this option is not specified, the @samp{Language} field is inferred, as +best as possible, from the @samp{Language-Team} field. + +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgmerge} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgmerge} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgmerge} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msgunfmt.texi gettext-0.18.1.1/gettext-tools/doc/msgunfmt.texi --- gettext-0.17/gettext-tools/doc/msgunfmt.texi 2004-01-09 11:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msgunfmt.texi 2010-06-06 12:49:57.000000000 +0000 @@ -131,6 +131,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msgunfmt} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msgunfmt} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msgunfmt} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/msguniq.texi gettext-0.18.1.1/gettext-tools/doc/msguniq.texi --- gettext-0.17/gettext-tools/doc/msguniq.texi 2003-10-22 10:49:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/msguniq.texi 2010-06-06 12:49:57.000000000 +0000 @@ -99,6 +99,17 @@ Use first available translation for each message. Don't merge several translations into one. +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{msguniq} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{msguniq} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{msguniq} option} Always write an output file even if it contains no message. diff -Nru gettext-0.17/gettext-tools/doc/stamp-vti gettext-0.18.1.1/gettext-tools/doc/stamp-vti --- gettext-0.17/gettext-tools/doc/stamp-vti 2007-11-07 00:19:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/stamp-vti 2010-06-06 18:36:27.000000000 +0000 @@ -1,4 +1,4 @@ -@set UPDATED 31 October 2007 -@set UPDATED-MONTH October 2007 -@set EDITION 0.17 -@set VERSION 0.17 +@set UPDATED 6 June 2010 +@set UPDATED-MONTH June 2010 +@set EDITION 0.18.1 +@set VERSION 0.18.1 diff -Nru gettext-0.17/gettext-tools/doc/version.texi gettext-0.18.1.1/gettext-tools/doc/version.texi --- gettext-0.17/gettext-tools/doc/version.texi 2007-11-02 02:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/version.texi 2010-06-06 18:36:27.000000000 +0000 @@ -1,4 +1,4 @@ -@set UPDATED 31 October 2007 -@set UPDATED-MONTH October 2007 -@set EDITION 0.17 -@set VERSION 0.17 +@set UPDATED 6 June 2010 +@set UPDATED-MONTH June 2010 +@set EDITION 0.18.1 +@set VERSION 0.18.1 diff -Nru gettext-0.17/gettext-tools/doc/xgettext.texi gettext-0.18.1.1/gettext-tools/doc/xgettext.texi --- gettext-0.17/gettext-tools/doc/xgettext.texi 2007-10-01 00:42:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/doc/xgettext.texi 2010-06-06 12:49:57.000000000 +0000 @@ -116,12 +116,13 @@ Entries from @var{file} are not extracted. @var{file} should be a PO or POT file. -@item -c [@var{tag}] +@item -c[@var{tag}] @itemx --add-comments[=@var{tag}] @opindex -c@r{, @code{xgettext} option} @opindex --add-comments@r{, @code{xgettext} option} -Place comment block with @var{tag} (or those preceding keyword lines) -in output file. +Place comment blocks starting with @var{tag} and preceding keyword lines +in the output file. Without a @var{tag}, the option means to put @emph{all} +comment blocks preceding keyword lines in the output file. @end table @@ -138,12 +139,12 @@ Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade. -@item -k @var{keywordspec} +@item -k[@var{keywordspec}] @itemx --keyword[=@var{keywordspec}] @opindex -k@r{, @code{xgettext} option} @opindex --keyword@r{, @code{xgettext} option} -Additional keyword to be looked for (without @var{keywordspec} means not to -use default keywords). +Specify @var{keywordspec} as an additional keyword to be looked for. +Without a @var{keywordspec}, the option means to not use default keywords. @cindex adding keywords, @code{xgettext} @cindex context, argument specification in @code{xgettext} @@ -350,6 +351,17 @@ @c --no-escape and --escape omitted on purpose. They are not useful. @table @samp +@item --color +@itemx --color=@var{when} +@opindex --color@r{, @code{xgettext} option} +Specify whether or when to use colors and other text attributes. +See @ref{The --color option} for details. + +@item --style=@var{style_file} +@opindex --style@r{, @code{xgettext} option} +Specify the CSS style rule file to use for @code{--color}. +See @ref{The --style option} for details. + @item --force-po @opindex --force-po@r{, @code{xgettext} option} Always write an output file even if no message is defined. @@ -484,17 +496,17 @@ The default value is empty, which means that translators will be clueless! Don't forget to specify this option. -@item -m [@var{string}] +@item -m[@var{string}] @itemx --msgstr-prefix[=@var{string}] @opindex -m@r{, @code{xgettext} option} @opindex --msgstr-prefix@r{, @code{xgettext} option} -Use @var{string} (or "" if not specified) as prefix for msgstr entries. +Use @var{string} (or "" if not specified) as prefix for msgstr values. -@item -M [@var{string}] +@item -M[@var{string}] @itemx --msgstr-suffix[=@var{string}] @opindex -M@r{, @code{xgettext} option} @opindex --msgstr-suffix@r{, @code{xgettext} option} -Use @var{string} (or "" if not specified) as suffix for msgstr entries. +Use @var{string} (or "" if not specified) as suffix for msgstr values. @end table diff -Nru gettext-0.17/gettext-tools/examples/aclocal.m4 gettext-0.18.1.1/gettext-tools/examples/aclocal.m4 --- gettext-0.17/gettext-tools/examples/aclocal.m4 2007-11-06 23:40:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/aclocal.m4 2010-06-06 20:11:40.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,8 +11,10 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -24,10 +26,10 @@ # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.10' +[am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -41,10 +43,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10])dnl -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -102,13 +106,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 12 +# serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. @@ -125,7 +129,7 @@ # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.60])dnl +[AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -176,8 +180,8 @@ AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -185,24 +189,37 @@ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -213,18 +230,19 @@ # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. +_am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in - $1 | $1:* ) + $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -235,7 +253,14 @@ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -261,14 +286,14 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 5 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -285,7 +310,14 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -323,13 +355,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -346,7 +378,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -356,14 +388,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 4 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -372,16 +404,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -406,6 +451,33 @@ fi AC_MSG_RESULT(yes)]) +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -434,18 +506,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 2 + # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- -# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. @@ -543,6 +622,7 @@ ]) # _AM_PROG_TAR m4_include([../../m4/fixautomake.m4]) +m4_include([../../m4/init-package-version.m4]) m4_include([../../gettext-runtime/m4/nls.m4]) m4_include([../../gettext-runtime/m4/po.m4]) m4_include([../../gettext-runtime/m4/progtest.m4]) diff -Nru gettext-0.17/gettext-tools/examples/ChangeLog gettext-0.18.1.1/gettext-tools/examples/ChangeLog --- gettext-0.17/gettext-tools/examples/ChangeLog 2007-11-06 23:27:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,181 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-04-25 Bruno Haible + + Update hello-pascal example. + * hello-pascal/INSTALL: Require fpc 2.0 or newer. + * hello-pascal/hello.pas: Use GetProcessID from the system unit, + instead of getpid from the oldlinux unit or fpgetpid from the baseunix + unit. + Reported by Marco van de Voort . + +2010-04-02 Bruno Haible + + * hello-c++-wxwidgets/autogen.sh: Update origin of lib-*.m4 and + config.rpath files. + +2010-03-09 Bruno Haible + + * po/ast.po: Update. + +2010-01-31 Bruno Haible + + * po/bg.po: New file, from Roumen Petrov . + * po/LINGUAS: Add bg. + * hello-*/po/LINGUAS: Update. + * Makefile.am (EXAMPLESPOFILES): Add the new message catalogs. + +2009-12-19 Bruno Haible + + * po/ast.po: New file, from + Marcos Alvarez Costales . + * po/LINGUAS: Add ast. + * hello-*/po/LINGUAS: Update. + * Makefile.am (EXAMPLESPOFILES): Add the new message catalogs. + +2009-08-16 Bruno Haible + + Silence the msgmerge invocations. + * hello-c/po/Makevars (MSGMERGE_OPTIONS): New variable. + * hello-c-gnome/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * hello-c++/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * hello-c++-kde/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * hello-c++-gnome/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * hello-objc/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * hello-objc-gnome/po/Makevars (MSGMERGE_OPTIONS): Likewise. + * po/Makefile.am (MSGMERGE_OPTIONS): New variable. + ($(POFILES), .nop.po-update): Use it. + * hello-c++-qt/po/Makefile.am: Likewise. + * hello-c++-wxwidgets/po/Makefile.am: Likewise. + * hello-sh/po/Makefile.am: Likewise. + * hello-python/po/Makefile.am: Likewise. + * hello-clisp/po/Makefile.am: Likewise. + * hello-librep/po/Makefile.am: Likewise. + * hello-guile/po/Makefile.am: Likewise. + * hello-smalltalk/po/Makefile.am: Likewise. + * hello-java/po/Makefile.am: Likewise. + * hello-java-awt/po/Makefile.am: Likewise. + * hello-java-swing/po/Makefile.am: Likewise. + * hello-java-qtjambi/po/Makefile.am: Likewise. + * hello-csharp/po/Makefile.am: Likewise. + * hello-csharp-forms/po/Makefile.am: Likewise. + * hello-gawk/po/Makefile.am: Likewise. + * hello-pascal/po/Makefile.am: Likewise. + * hello-ycp/po/Makefile.am: Likewise. + * hello-tcl/po/Makefile.am: Likewise. + * hello-tcl-tk/po/Makefile.am: Likewise. + * hello-perl/po/Makefile.am: Likewise. + * hello-php/po/Makefile.am: Likewise. + * hello-objc-gnustep/po/GNUmakefile: Likewise. + * po/mmsmallpo.sh: Pass option --quiet to msgmerge. + +2009-08-16 Bruno Haible + + * hello-objc-gnustep/po/GNUmakefile: Apply 2007-10-18 changes to + hello-*/po/Makefile.am. + +2009-08-16 Bruno Haible + + * hello-objc-gnustep/po/GNUmakefile: Apply 2007-10-17 changes to + hello-*/po/Makefile.am. + (PACKAGE_NAME, PACKAGE_VERSION): New variables. + +2009-08-16 Bruno Haible + + * hello-objc-gnustep/po/GNUmakefile: Apply part of 2005-02-07 changes + to hello-*/po/Makefile.am.. + +2009-08-16 Bruno Haible + + * hello-objc-gnustep/po/GNUmakefile: Apply 2004-01-17 changes to + hello-*/po/Makefile.am. + +2009-07-29 Bruno Haible + + * po/lv.po: New file, from Rihards Priedītis . + * po/LINGUAS: Add lv. + * hello-*/po/LINGUAS: Update. + * Makefile.am (EXAMPLESPOFILES): Add the new message catalogs. + +2009-05-23 Bruno Haible + + * configure.ac (AM_INIT_AUTOMAKE): Add 'silent-rules' option. + +2009-05-23 Bruno Haible + + * configure.ac: Invoke gl_INIT_PACKAGE. Use the preferred form of + AM_INIT_AUTOMAKE. + +2009-01-27 Bruno Haible + + * hello-c++-qt/po/Makefile.am (XGETTEXT_OPTIONS): Add more options for + the tr function, for compatibility with Qt 4. + +2009-01-18 Bruno Haible + + * hello-c++-qt/po/Makefile.am (.po.gmo): Pass --verbose to msgfmt when + producing statistics. + * hello-c++-wxwidgets/po/Makefile.am (.po.gmo): Likewise. + * hello-clisp/po/Makefile.am (.po.gmo): Likewise. + * hello-gawk/po/Makefile.am (.po.gmo): Likewise. + * hello-guile/po/Makefile.am (.po.gmo): Likewise. + * hello-librep/po/Makefile.am (.po.gmo): Likewise. + * hello-pascal/po/Makefile.am (.po.gmo): Likewise. + * hello-perl/po/Makefile.am (.po.gmo): Likewise. + * hello-php/po/Makefile.am (.po.gmo): Likewise. + * hello-python/po/Makefile.am (.po.gmo): Likewise. + * hello-sh/po/Makefile.am (.po.gmo): Likewise. + * hello-smalltalk/po/Makefile.am (.po.gmo): Likewise. + * hello-ycp/po/Makefile.am (.po.gmo): Likewise. + * hello-java/po/Makefile.am (update-properties, update-classes): + Likewise. + * hello-java-awt/po/Makefile.am (update-properties, update-classes): + Likewise. + * hello-java-swing/po/Makefile.am (update-properties, update-classes): + Likewise. + * hello-java-qtjambi/po/Makefile.am (update-properties, + update-classes): Likewise. + Suggested by Vincent Lefevre . + +2009-01-18 Bruno Haible + + * po/mt.po: New file, from Clyde Meli . + * po/LINGUAS: Add mt. + * hello-*/po/LINGUAS: Update. + * Makefile.am (EXAMPLESPOFILES): Add the new message catalogs. + +2009-01-14 Bruno Haible + + * configure.ac: More consistent m4 quoting. + +2007-12-24 Bruno Haible + + * hello-*/po/Makefile.am ($(POFILES), .nop.po-update): When using + msgmerge 0.18 or newer, pass a --lang option. + * hello-objc-gnustep/po/GNUmakefile ($(POFILES), .nop.po-update): + Likewise. + +2007-12-24 Bruno Haible + + * hello-*/po/Makefile.am (.nop.po-update): Put all non-option arguments + after all option arguments, so that the commands work 1. when + POSIXLY_CORRECT is set, 2. on platforms whose getopt facility is POSIX + compliant but not GNU libc compatible, such as Cygwin. + * hello-objc-gnustep/po/GNUmakefile (.nop.po-update): Likewise. + +2007-11-13 Bruno Haible + + * po/ky.po: New file, from Ilyas Bakirov . + * po/LINGUAS: Add ky. + * hello-*/po/LINGUAS: Update. + * Makefile.am (EXAMPLESPOFILES): Add the new message catalogs. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/examples/configure gettext-0.18.1.1/gettext-tools/examples/configure --- gettext-0.17/gettext-tools/examples/configure 2007-11-06 23:40:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/configure 2010-06-06 20:11:40.000000000 +0000 @@ -1,60 +1,83 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. +# Generated by GNU Autoconf 2.65. +# # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -63,20 +86,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -87,354 +108,320 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE # CDPATH. -$as_unset CDPATH - +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST else - as_have_required=no + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes else - exitcode=1 - echo positional parameters were not saved. + as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - case $as_dir in + as_found=: + case $as_dir in #( /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi done;; esac + as_found=false done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } IFS=$as_save_IFS - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 fi - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; -esac - fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS - -: -(as_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} } +as_unset=as_fn_unset -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi -if ( set x; as_func_ret_success y && test x = "$1" ); then - : +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' else - exitcode=1 - echo positional parameters were not saved. -fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break -fi - -fi - - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi - - - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi - - -fi - -fi - + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error -exitcode=0 -if as_func_success; then - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + as_expr=false fi -if as_func_ret_success; then - : +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + as_basename=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname else - exitcode=1 - echo positional parameters were not saved. + as_dirname=false fi -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell autoconf@gnu.org about your system, - echo including any error possibly output before this - echo message -} +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= @@ -451,8 +438,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the @@ -462,49 +448,40 @@ exit } - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi @@ -512,7 +489,7 @@ rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -529,12 +506,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -548,8 +525,8 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, @@ -567,7 +544,6 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= @@ -575,81 +551,91 @@ PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= +PACKAGE_URL= ac_unique_file="installpaths.in" -ac_subst_vars='SHELL -PATH_SEPARATOR -PACKAGE_NAME -PACKAGE_TARNAME -PACKAGE_VERSION -PACKAGE_STRING -PACKAGE_BUGREPORT -exec_prefix -prefix -program_transform_name -bindir -sbindir -libexecdir -datarootdir -datadir -sysconfdir -sharedstatedir -localstatedir -includedir -oldincludedir -docdir -infodir -htmldir -dvidir -pdfdir -psdir -libdir -localedir -mandir -DEFS -ECHO_C -ECHO_N -ECHO_T -LIBS -build_alias -host_alias -target_alias -INSTALL_PROGRAM -INSTALL_SCRIPT -INSTALL_DATA -am__isrc -CYGPATH_W -PACKAGE -VERSION -ACLOCAL -AUTOCONF -AUTOMAKE -AUTOHEADER -MAKEINFO -install_sh -STRIP -INSTALL_STRIP_PROGRAM -mkdir_p -AWK -SET_MAKE -am__leading_dot -AMTAR -am__tar -am__untar -USE_NLS -GETTEXT_MACRO_VERSION -MSGFMT -GMSGFMT -MSGFMT_015 -GMSGFMT_015 -XGETTEXT -XGETTEXT_015 -MSGMERGE -XGETTEXT_EXTRA_OPTIONS -aclocaldir +ac_subst_vars='LTLIBOBJS LIBOBJS -LTLIBOBJS' +aclocaldir +XGETTEXT_EXTRA_OPTIONS +MSGMERGE +XGETTEXT_015 +XGETTEXT +GMSGFMT_015 +MSGFMT_015 +GMSGFMT +MSGFMT +GETTEXT_MACRO_VERSION +USE_NLS +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_nls +' ac_precious_vars='build_alias host_alias target_alias' @@ -658,6 +644,8 @@ # Initialize some variables set by options. ac_init_help= ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null @@ -756,13 +744,20 @@ datarootdir=$ac_optarg ;; -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; @@ -775,13 +770,20 @@ dvidir=$ac_optarg ;; -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` - eval enable_$ac_feature=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ @@ -972,22 +974,36 @@ ac_init_version=: ;; -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=\$ac_optarg ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` - eval with_$ac_package=no ;; + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed -e 's/[+]/x/g' -e 's/[-.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. @@ -1007,25 +1023,25 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; @@ -1034,23 +1050,36 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac fi -# Be sure to have absolute directory names. +# Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1064,7 +1093,7 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes @@ -1080,23 +1109,21 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { echo "$as_me: error: Working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$0" || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X"$0" | + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1123,13 +1150,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1177,9 +1202,9 @@ Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -1189,25 +1214,25 @@ For better control, use the options below. Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF @@ -1224,10 +1249,14 @@ cat <<\_ACEOF Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0') --disable-nls do not use Native Language Support +Report bugs to the package provider. _ACEOF ac_status=$? fi @@ -1235,15 +1264,17 @@ if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1279,7 +1310,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1289,21 +1320,24 @@ if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.61 +generated by GNU Autoconf 2.65 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -1339,8 +1373,8 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS } >&5 @@ -1374,12 +1408,12 @@ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else @@ -1395,13 +1429,13 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args '$ac_arg'" + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there @@ -1426,12 +1460,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -1460,9 +1495,9 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - echo "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo @@ -1477,9 +1512,9 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - echo "$ac_var='\''$ac_val'\''" + $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi @@ -1495,83 +1530,88 @@ echo fi test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h +$as_echo "/* confdefs.h */" > confdefs.h + # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF - cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + # Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - set x "$CONFIG_SITE" + ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then - set x "$prefix/share/config.site" "$prefix/etc/config.site" + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site else - set x "$ac_default_prefix/share/config.site" \ - "$ac_default_prefix/etc/config.site" + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site fi -shift -for ac_site_file +for ac_site_file in "$ac_site_file1" "$ac_site_file2" do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -1585,60 +1625,56 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - - - - - - - - - - - - - - - - + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -1650,24 +1686,16 @@ ac_aux_dir= for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done done if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&5 -echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -1680,7 +1708,13 @@ . $srcdir/../../version.sh -am__api_version='1.10' + + + + + + +am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1695,22 +1729,23 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. -{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. @@ -1728,17 +1763,29 @@ # program-specific install script used by HP pwplus--don't use. : else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi fi fi done done ;; esac -done + + done IFS=$as_save_IFS +rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then @@ -1751,8 +1798,8 @@ INSTALL=$ac_install_sh fi fi -{ echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -1762,21 +1809,34 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ @@ -1786,11 +1846,8 @@ # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file @@ -1799,52 +1856,162 @@ # Ok. : else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 fi -{ echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. +# Double any \ or $. # By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm -f conftest.sed +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 -echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if test "${ac_cv_path_mkdir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do + for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( @@ -1856,11 +2023,12 @@ esac done done -done + done IFS=$as_save_IFS fi + test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else @@ -1868,12 +2036,11 @@ # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi -{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 -echo "${ECHO_T}$MKDIR_P" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in @@ -1885,10 +2052,10 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. @@ -1898,36 +2065,37 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi test -n "$AWK" && break done -{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } -set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh @@ -1944,12 +2112,12 @@ rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } SET_MAKE= else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -1962,15 +2130,27 @@ fi rmdir .tst 2>/dev/null -if test "`cd $srcdir && pwd`" != "`pwd`"; then +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : + enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=1;; +esac +AM_BACKSLASH='\' + + + + if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi @@ -1985,18 +2165,9 @@ # Define the identity of the package. - PACKAGE=gettext-examples - VERSION=$VERSION_NUMBER - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - + PACKAGE='' + VERSION='' -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF # Some tools Automake needs. @@ -2009,116 +2180,10 @@ AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6; } -else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } -fi +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&5 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools -whose name does not start with the host triplet. If you think this -configuration is useful to you, please write to autoconf@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -2132,26 +2197,43 @@ + PACKAGE=gettext-examples + + VERSION=$VERSION_NUMBER + + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + + + test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' - { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 -echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then +if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi - { echo "$as_me:$LINENO: result: $USE_NLS" >&5 -echo "${ECHO_T}$USE_NLS" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } - GETTEXT_MACRO_VERSION=0.17 + GETTEXT_MACRO_VERSION=0.18 @@ -2186,10 +2268,10 @@ # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) @@ -2218,19 +2300,19 @@ fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then - { echo "$as_me:$LINENO: result: $MSGFMT" >&5 -echo "${ECHO_T}$MSGFMT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_GMSGFMT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) @@ -2242,14 +2324,14 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" @@ -2258,11 +2340,11 @@ fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 -echo "${ECHO_T}$GMSGFMT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -2309,10 +2391,10 @@ # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_XGETTEXT+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) @@ -2341,11 +2423,11 @@ fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then - { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 -echo "${ECHO_T}$XGETTEXT" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi rm -f messages.po @@ -2387,10 +2469,10 @@ # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } -if test "${ac_cv_path_MSGMERGE+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGMERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) @@ -2418,11 +2500,11 @@ fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then - { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 -echo "${ECHO_T}$MSGMERGE" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi @@ -2473,12 +2555,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -2486,8 +2569,8 @@ (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" @@ -2510,12 +2593,12 @@ if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 -echo "$as_me: updating cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -2532,6 +2615,12 @@ # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' +:mline +/\\$/{ + N + s,\\\n,, + b mline +} t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g @@ -2561,11 +2650,11 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`echo "$ac_i" | sed "$ac_script"` + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs @@ -2573,12 +2662,15 @@ + : ${CONFIG_STATUS=./config.status} +ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -2588,59 +2680,79 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -2649,20 +2761,18 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) -as_nl=' -' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -2673,32 +2783,111 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - fi -done +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -2712,13 +2901,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -echo X/"$0" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -2733,104 +2926,103 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir - mkdir conf$$.dir + mkdir conf$$.dir 2>/dev/null fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -2847,12 +3039,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -2867,13 +3059,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by $as_me, which was -generated by GNU Autoconf 2.61. Invocation command line was +This file was extended by gettext-examples $as_me, which was +generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -2886,27 +3084,36 @@ _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTIONS] [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE Configuration files: $config_files @@ -2914,16 +3121,17 @@ Configuration commands: $config_commands -Report bugs to ." +Report bugs to the package provider." _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -config.status -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +gettext-examples config.status +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" -Copyright (C) 2006 Free Software Foundation, Inc. +Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -2931,11 +3139,12 @@ srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do @@ -2957,25 +3166,29 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; + $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. - -*) { echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -2990,27 +3203,29 @@ fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - CONFIG_SHELL=$SHELL + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + exec "\$@" fi _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - echo "$ac_log" + $as_echo "$ac_log" } >&5 _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # @@ -3024,7 +3239,7 @@ _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets @@ -3035,9 +3250,7 @@ "installpaths") CONFIG_FILES="$CONFIG_FILES installpaths" ;; "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -3063,7 +3276,7 @@ trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. @@ -3074,138 +3287,139 @@ { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 -# -# Set up the sed scripts for CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then -_ACEOF +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do - cat >conf$$subs.sed <<_ACEOF -SHELL!$SHELL$ac_delim -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim -PACKAGE_NAME!$PACKAGE_NAME$ac_delim -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim -PACKAGE_STRING!$PACKAGE_STRING$ac_delim -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim -exec_prefix!$exec_prefix$ac_delim -prefix!$prefix$ac_delim -program_transform_name!$program_transform_name$ac_delim -bindir!$bindir$ac_delim -sbindir!$sbindir$ac_delim -libexecdir!$libexecdir$ac_delim -datarootdir!$datarootdir$ac_delim -datadir!$datadir$ac_delim -sysconfdir!$sysconfdir$ac_delim -sharedstatedir!$sharedstatedir$ac_delim -localstatedir!$localstatedir$ac_delim -includedir!$includedir$ac_delim -oldincludedir!$oldincludedir$ac_delim -docdir!$docdir$ac_delim -infodir!$infodir$ac_delim -htmldir!$htmldir$ac_delim -dvidir!$dvidir$ac_delim -pdfdir!$pdfdir$ac_delim -psdir!$psdir$ac_delim -libdir!$libdir$ac_delim -localedir!$localedir$ac_delim -mandir!$mandir$ac_delim -DEFS!$DEFS$ac_delim -ECHO_C!$ECHO_C$ac_delim -ECHO_N!$ECHO_N$ac_delim -ECHO_T!$ECHO_T$ac_delim -LIBS!$LIBS$ac_delim -build_alias!$build_alias$ac_delim -host_alias!$host_alias$ac_delim -target_alias!$target_alias$ac_delim -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim -INSTALL_DATA!$INSTALL_DATA$ac_delim -am__isrc!$am__isrc$ac_delim -CYGPATH_W!$CYGPATH_W$ac_delim -PACKAGE!$PACKAGE$ac_delim -VERSION!$VERSION$ac_delim -ACLOCAL!$ACLOCAL$ac_delim -AUTOCONF!$AUTOCONF$ac_delim -AUTOMAKE!$AUTOMAKE$ac_delim -AUTOHEADER!$AUTOHEADER$ac_delim -MAKEINFO!$MAKEINFO$ac_delim -install_sh!$install_sh$ac_delim -STRIP!$STRIP$ac_delim -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim -mkdir_p!$mkdir_p$ac_delim -AWK!$AWK$ac_delim -SET_MAKE!$SET_MAKE$ac_delim -am__leading_dot!$am__leading_dot$ac_delim -AMTAR!$AMTAR$ac_delim -am__tar!$am__tar$ac_delim -am__untar!$am__untar$ac_delim -USE_NLS!$USE_NLS$ac_delim -GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim -MSGFMT!$MSGFMT$ac_delim -GMSGFMT!$GMSGFMT$ac_delim -MSGFMT_015!$MSGFMT_015$ac_delim -GMSGFMT_015!$GMSGFMT_015$ac_delim -XGETTEXT!$XGETTEXT$ac_delim -XGETTEXT_015!$XGETTEXT_015$ac_delim -MSGMERGE!$MSGMERGE$ac_delim -XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim -aclocaldir!$aclocaldir$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 72; then + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done +rm -f conf$$subs.sh -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi - -cat >>$CONFIG_STATUS <<_ACEOF -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end -_ACEOF -sed ' -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g -s/^/s,@/; s/!/@,|#_!!_#|/ -:n -t n -s/'"$ac_delim"'$/,g/; t -s/$/\\/; p -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n -' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and @@ -3222,20 +3436,20 @@ }' fi -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" -for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS +eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" +shift +for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 -echo "$as_me: error: Invalid tag $ac_tag." >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -3263,26 +3477,34 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - ac_file_inputs="$ac_file_inputs $ac_f" + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ - configure_input="Generated from "`IFS=: - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -3292,42 +3514,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -echo X"$as_dir" | +$as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -3345,20 +3532,15 @@ q } s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -3403,12 +3585,12 @@ esac _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= - -case `sed -n '/datarootdir/ { +ac_sed_dataroot=' +/datarootdir/ { p q } @@ -3416,36 +3598,37 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' $ac_file_inputs` in +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t +s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t @@ -3456,26 +3639,29 @@ s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 -echo "$as_me: executing $ac_file commands" >&6;} + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -3595,7 +3781,7 @@ esac done ;; "Makefile":F) - sed_script='/mkdir \$(distdir)$/{a\ + sed_script='/mkdir "*\$(distdir)"*$/{a\ \ $(MAKE) distdir1 }' sed -e "$sed_script" < $ac_file > $ac_file.tmp @@ -3822,11 +4008,13 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -3846,6 +4034,10 @@ exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit $? +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi diff -Nru gettext-0.17/gettext-tools/examples/configure.ac gettext-0.18.1.1/gettext-tools/examples/configure.ac --- gettext-0.17/gettext-tools/examples/configure.ac 2007-10-07 19:37:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/configure.ac 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ dnl Configuration for the gettext-tools/examples directory of GNU gettext -dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -16,12 +16,13 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.57) +AC_PREREQ([2.57]) AC_INIT -AC_CONFIG_SRCDIR(installpaths.in) -AC_CONFIG_AUX_DIR(../../build-aux) +AC_CONFIG_SRCDIR([installpaths.in]) +AC_CONFIG_AUX_DIR([../../build-aux]) . $srcdir/../../version.sh -AM_INIT_AUTOMAKE(gettext-examples, $VERSION_NUMBER) +gl_INIT_PACKAGE([gettext-examples], [$VERSION_NUMBER]) +AM_INIT_AUTOMAKE([silent-rules]) dnl Installation directories. test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext' @@ -29,7 +30,7 @@ AM_PO_SUBDIRS aclocaldir='${datadir}/aclocal' -AC_SUBST(aclocaldir) +AC_SUBST([aclocaldir]) AC_CONFIG_FILES([Makefile], [FIX_MAKEFILE_TOPDIR_DISTRIB]) diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/af.po 2010-06-06 21:15:58.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.c:30 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.c:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.c:30 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.c:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c/po/el.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c/po/eo.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c/po/es.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c/po/fr.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ga.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c/po/hu.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.c:30 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.c:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/lv.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.c:30 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.c:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-c/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-c/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -47,3 +47,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ms.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.c:30 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.c:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c/po/nl.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c/po/pl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c-0.13.1\n" +"Project-Id-Version: hello-c-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.c:30 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.c:31 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c/po/sl.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c/po/uk.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c/po/vi.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c 0.16.2-pre5\n" +"Project-Id-Version: hello-c 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.c:30 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c/po/zh_TW.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/af.po 2010-06-06 21:15:58.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cc:39 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cc:40 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c++ package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c++ 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:39 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cc:40 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/el.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/es.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/fr.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ga.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c++' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++ 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cc:39 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cc:40 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c++/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/lv.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c++ +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cc:39 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cc:40 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-c++/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -48,3 +48,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ms.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c++-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++ 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:39 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cc:40 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/nl.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c++ domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c++-0.13.1\n" +"Project-Id-Version: hello-c++-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cc:39 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cc:40 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/sl.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/uk.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/vi.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c++ 0.16.2-pre5\n" +"Project-Id-Version: hello-c++ 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cc:39 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c++/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/af.po 2010-06-06 21:15:58.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.c:46 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.c:51 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c-gnome package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c-gnome 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.c:46 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.c:51 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/el.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/eo.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/es.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/fr.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ga.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c-gnome' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.c:46 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.c:51 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/lv.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c-gnome +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.c:46 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.c:51 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -59,3 +59,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ms.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c-gnome-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.c:46 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.c:51 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/nl.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c-gnome domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c-gnome-0.13.1\n" +"Project-Id-Version: hello-c-gnome-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.c:46 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.c:51 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sl.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/uk.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/vi.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c-gnome 0.16.2-pre5\n" +"Project-Id-Version: hello-c-gnome 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.c:46 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c-gnome/po/zh_TW.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c-gnome/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cc:50 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cc:55 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c++-gnome package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c++-gnome 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:50 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cc:55 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c++-gnome' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cc:50 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cc:55 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c++-gnome +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cc:50 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cc:55 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -59,3 +59,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c++-gnome-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:50 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cc:55 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c++-gnome domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c++-gnome-0.13.1\n" +"Project-Id-Version: hello-c++-gnome-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cc:50 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cc:55 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c++-gnome 0.16.2-pre5\n" +"Project-Id-Version: hello-c++-gnome 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cc:50 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c++-gnome/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-gnome/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/admin/config.guess gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/admin/config.guess --- gettext-0.17/gettext-tools/examples/hello-c++-kde/admin/config.guess 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/admin/config.guess 2010-06-06 12:49:57.000000000 +0000 @@ -1,10 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. +# 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2009-06-10' +timestamp='2002-10-21' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -18,15 +17,13 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. - # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. @@ -56,8 +53,8 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -69,11 +66,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; + echo "$timestamp" ; exit 0 ;; --version | -v ) - echo "$version" ; exit ;; + echo "$version" ; exit 0 ;; --help | --h* | -h ) - echo "$usage"; exit ;; + echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -101,18 +98,14 @@ # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. -# Portable tmp directory creation inspired by the Autoconf team. +# This shell variable is my proudest work .. or something. --bje -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; +(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) + || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; +dummy=$tmpdir/dummy ; +files="$dummy.c $dummy.o $dummy.rel $dummy" ; +trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do @@ -120,13 +113,15 @@ CC_FOR_BUILD="$c"; break ; fi ; done ; + rm -f $files ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' +esac ; +unset files' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) @@ -161,7 +156,6 @@ arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched @@ -170,7 +164,7 @@ arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ELF__ + | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? @@ -184,128 +178,144 @@ ;; esac # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit ;; + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mipseb-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - *:SolidBSD:*:*) - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerpc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) + if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. + fi # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; + eval $set_cc_for_build + cat <$dummy.s + .data +\$Lformat: + .byte 37,100,45,37,120,10,0 # "%d-%x\n" + + .text + .globl main + .align 4 + .ent main +main: + .frame \$30,16,\$26,0 + ldgp \$29,0(\$27) + .prologue 1 + .long 0x47e03d80 # implver \$0 + lda \$2,-1 + .long 0x47e20c21 # amask \$2,\$1 + lda \$16,\$Lformat + mov \$0,\$17 + not \$1,\$18 + jsr \$26,printf + ldgp \$29,0(\$26) + mov 0,\$16 + jsr \$26,exit + .end main +EOF + $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null + if test "$?" = 0 ; then + case `$dummy` in + 0-0) + UNAME_MACHINE="alpha" + ;; + 1-0) + UNAME_MACHINE="alphaev5" + ;; + 1-1) + UNAME_MACHINE="alphaev56" + ;; + 1-101) + UNAME_MACHINE="alphapca56" + ;; + 2-303) + UNAME_MACHINE="alphaev6" + ;; + 2-307) + UNAME_MACHINE="alphaev67" + ;; + 2-1307) + UNAME_MACHINE="alphaev68" + ;; + 3-1307) + UNAME_MACHINE="alphaev7" + ;; + esac + fi + rm -f $dummy.s $dummy && rmdir $tmpdir + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix - exit ;; + exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 - exit ;; + exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 - exit ;; + exit 0;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; + exit 0 ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos - exit ;; + exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; + exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; + exit 0;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp - exit ;; + exit 0;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then @@ -313,48 +323,29 @@ else echo pyramid-pyramid-bsd fi - exit ;; + exit 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + exit 0 ;; + DRS?6000:UNIX_SV:4.2*:7*) case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; + sparc) echo sparc-icl-nx7 && exit 0 ;; esac ;; - s390x:SunOS:*:*) - echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; + exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - eval $set_cc_for_build - SUN_ARCH="i386" - # If there is a compiler, see if it is configured for 64-bit objects. - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. - # This test works for both compilers. - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH="x86_64" - fi - fi - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; + exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) @@ -363,10 +354,10 @@ esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; + exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; + exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 @@ -378,10 +369,10 @@ echo sparc-sun-sunos${UNAME_RELEASE} ;; esac - exit ;; + exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; + exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor @@ -392,40 +383,37 @@ # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit ;; + exit 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit ;; + exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit ;; + exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} - exit ;; + exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} - exit ;; + exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; + exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; + exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 - exit ;; + exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; + exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; + exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; + exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -449,33 +437,33 @@ exit (-1); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } + $CC_FOR_BUILD -o $dummy $dummy.c \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir echo mips-mips-riscos${UNAME_RELEASE} - exit ;; + exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax - exit ;; + exit 0 ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS) echo powerpc-harris-powermax - exit ;; + exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix - exit ;; + exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 - exit ;; + exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 - exit ;; + exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 - exit ;; + exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` @@ -491,29 +479,29 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit ;; + exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 - exit ;; + exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 - exit ;; + exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 - exit ;; + exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd - exit ;; + exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; + exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix - exit ;; + exit 0 ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` @@ -521,7 +509,7 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; + exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build @@ -536,19 +524,16 @@ exit(0); } EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir + echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi - exit ;; - *:AIX:*:[456]) + exit 0 ;; + *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 @@ -561,28 +546,28 @@ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; + exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix - exit ;; + exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 - exit ;; + exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 + exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx - exit ;; + exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 - exit ;; + exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd - exit ;; + exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 - exit ;; + exit 0 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in @@ -639,36 +624,16 @@ } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa + if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi + rm -f $dummy.c $dummy && rmdir $tmpdir fi ;; esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep -q __LP64__ - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; + exit 0 ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} - exit ;; + exit 0 ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c @@ -696,227 +661,172 @@ exit (0); } EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir echo unknown-hitachi-hiuxwe2 - exit ;; + exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd - exit ;; + exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd - exit ;; + exit 0 ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix - exit ;; + exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf - exit ;; + exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf - exit ;; + exit 0 ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi - exit ;; + exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites - exit ;; + exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit ;; + exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit ;; + exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit ;; + exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit ;; + exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit ;; + exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; + exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' - exit ;; + exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; + exit 0 ;; + CRAY*T3D:*:*:*) + echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; + exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; + exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; + exit 0 ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; + exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; + exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; + exit 0 ;; *:FreeBSD:*:*) - case ${UNAME_MACHINE} in - pc98) - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - amd64) - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - *) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - esac - exit ;; + # Determine whether the default compiler uses glibc. + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #if __GLIBC__ >= 2 + LIBC=gnu + #else + LIBC= + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + rm -f $dummy.c && rmdir $tmpdir + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} + exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - *:MINGW*:*) + exit 0 ;; + i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; + exit 0 ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - *:Interix*:[3456]*) - case ${UNAME_MACHINE} in - x86) - echo i586-pc-interix${UNAME_RELEASE} - exit ;; - EM64T | authenticamd | genuineintel) - echo x86_64-unknown-interix${UNAME_RELEASE} - exit ;; - IA64) - echo ia64-unknown-interix${UNAME_RELEASE} - exit ;; - esac ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - 8664:Windows_NT:*) - echo x86_64-pc-mks - exit ;; + exit 0 ;; + x86:Interix*:3*) + echo i386-pc-interix3 + exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; + echo i386-pc-interix + exit 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; + exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin - exit ;; + exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; + exit 0 ;; *:GNU:*:*) - # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; + exit 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix - exit ;; + exit 0 ;; arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - echo ${UNAME_MACHINE}-unknown-linux-gnu - else - echo ${UNAME_MACHINE}-unknown-linux-gnueabi - fi - exit ;; - avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo frv-unknown-linux-gnu - exit ;; + exit 0 ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; + exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:* | mips64:Linux:*:*) + exit 0 ;; + mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU - #undef ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el + #undef mips + #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=${UNAME_MACHINE}el + CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} + CPU=mips #else CPU= #endif #endif EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^CPU/{ - s: ::g - p - }'`" - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + rm -f $dummy.c && rmdir $tmpdir + test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 ;; - or32:Linux:*:*) - echo or32-unknown-linux-gnu - exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu - exit ;; + exit 0 ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu - exit ;; + exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; @@ -927,13 +837,10 @@ EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac - objdump --private-headers /bin/sh | grep -q ld.so.1 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - padre:Linux:*:*) - echo sparc-unknown-linux-gnu - exit ;; + exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in @@ -941,31 +848,22 @@ PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac - exit ;; + exit 0 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu - exit ;; + exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; + exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; + exit 0 ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu - exit ;; + exit 0 ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu - exit ;; - xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; + exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent @@ -981,6 +879,17 @@ elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build @@ -997,33 +906,24 @@ LIBC=gnulibc1 # endif #else - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) + #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif EOF - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' - /^LIBC/{ - s: ::g - p - }'`" - test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit - } - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + rm -f $dummy.c && rmdir $tmpdir + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 - exit ;; + exit 0 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... @@ -1031,27 +931,7 @@ # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; + exit 0 ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then @@ -1059,16 +939,15 @@ else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. + exit 0 ;; + i*86:*:5:[78]*) case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; + exit 0 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi - exit ;; + exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv - exit ;; + exit 0 ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - NCR*:*:4.2:* | MPRAS*:*:4.2:*) - OS_REL='.3' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; + exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 - exit ;; + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; + exit 0 ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + exit 0 ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; + exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} - exit ;; + exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 - exit ;; + exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 - exit ;; + exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` @@ -1173,84 +1042,64 @@ else echo ns32k-sni-sysv fi - exit ;; + exit 0 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 - exit ;; + exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 - exit ;; + exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; + exit 0 ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos - exit ;; + exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} - exit ;; + exit 0 ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 - exit ;; + exit 0 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi - exit ;; + exit 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos - exit ;; + exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos - exit ;; + exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos - exit ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - echo i586-pc-haiku - exit ;; + exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} - exit ;; + exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} - exit ;; + exit 0 ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - SX-7:SUPER-UX:*:*) - echo sx7-nec-superux${UNAME_RELEASE} - exit ;; - SX-8:SUPER-UX:*:*) - echo sx8-nec-superux${UNAME_RELEASE} - exit ;; - SX-8R:SUPER-UX:*:*) - echo sx8r-nec-superux${UNAME_RELEASE} - exit ;; + exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; + exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; + exit 0 ;; *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; + echo `uname -p`-apple-darwin${UNAME_RELEASE} + exit 0 ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then @@ -1258,25 +1107,22 @@ UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; + exit 0 ;; *:QNX:*:4*) echo i386-pc-qnx - exit ;; - NSE-?:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) + exit 0 ;; + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; + exit 0 ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux - exit ;; + exit 0 ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv - exit ;; + exit 0 ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; + exit 0 ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 @@ -1287,50 +1133,36 @@ UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; + exit 0 ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 - exit ;; + exit 0 ;; *:TENEX:*:*) echo pdp10-unknown-tenex - exit ;; + exit 0 ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 - exit ;; + exit 0 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 - exit ;; + exit 0 ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 - exit ;; + exit 0 ;; *:ITS:*:*) echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; - i*86:rdos:*:*) - echo ${UNAME_MACHINE}-pc-rdos - exit ;; - i*86:AROS:*:*) - echo ${UNAME_MACHINE}-pc-aros - exit ;; + exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 @@ -1362,7 +1194,7 @@ #endif #if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); + printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) @@ -1451,12 +1283,12 @@ } EOF -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +rm -f $dummy.c $dummy && rmdir $tmpdir # Apollos put the system type in the environment. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) @@ -1465,22 +1297,22 @@ case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd - exit ;; + exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit ;; + exit 0 ;; c34*) echo c34-convex-bsd - exit ;; + exit 0 ;; c38*) echo c38-convex-bsd - exit ;; + exit 0 ;; c4*) echo c4-convex-bsd - exit ;; + exit 0 ;; esac fi @@ -1491,9 +1323,7 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD -and - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + ftp://ftp.gnu.org/pub/gnu/config/ If the version you run ($0) is already up to date, please send the following data and any information you think might be diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/admin/config.sub gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/admin/config.sub --- gettext-0.17/gettext-tools/examples/hello-c++-kde/admin/config.sub 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/admin/config.sub 2010-06-06 12:49:57.000000000 +0000 @@ -1,10 +1,9 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. +# 2000, 2001, 2002 Free Software Foundation, Inc. -timestamp='2009-06-11' +timestamp='2002-09-05' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -22,15 +21,14 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. - # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -72,8 +70,8 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -85,11 +83,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; + echo "$timestamp" ; exit 0 ;; --version | -v ) - echo "$version" ; exit ;; + echo "$version" ; exit 0 ;; --help | --h* | -h ) - echo "$usage"; exit ;; + echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -101,7 +99,7 @@ *local*) # First pass through any local machine types. echo $1 - exit ;; + exit 0;; * ) break ;; @@ -120,10 +118,7 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ - kopensolaris*-gnu* | \ - storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -149,13 +144,10 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) + -apple | -axis) os= basic_machine=$1 ;; - -bluegene*) - os=-cnk - ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 @@ -177,10 +169,6 @@ -hiux*) os=-hiuxwe2 ;; - -sco6) - os=-sco5v6 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -197,10 +185,6 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; - -sco5v6*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -244,57 +228,42 @@ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | bfin \ - | c4x | clipper \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fido | fr30 | frv \ + | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | lm32 \ - | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ + | ip2k \ + | m32r | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ - | moxie \ - | mt \ - | msp430 \ - | nios | nios2 \ | ns16k | ns32k \ - | or32 \ + | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | score \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ - | z8k | z80) + | x86 | xscale | xstormy16 | xtensa \ + | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) @@ -304,9 +273,6 @@ ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; - ms1) - basic_machine=mt-unknown - ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -326,67 +292,50 @@ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* | avr32-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | craynv-* | cydra-* \ + | avr-* \ + | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ + | clipper-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | lm32-* \ - | m32c-* | m32r-* | m32rle-* \ + | ip2k-* \ + | m32r-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | m88110-* | m88k-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ - | mips64octeon-* | mips64octeonel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ - | nios-* | nios2-* \ + | mipstx39 | mipstx39el \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ + | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ - | tron-* \ + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ - | xstormy16-* | xtensa*-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ + | xtensa-* \ | ymp-* \ - | z8k-* | z80-*) - ;; - # Recognize the basic CPU types without company name, with glob match. - xtensa*) - basic_machine=$basic_machine-unknown + | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. @@ -404,9 +353,6 @@ basic_machine=a29k-amd os=-udi ;; - abacus) - basic_machine=abacus-unknown - ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -421,12 +367,6 @@ basic_machine=a29k-none os=-bsd ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; amdahl) basic_machine=580-amdahl os=-sysv @@ -450,10 +390,6 @@ basic_machine=m68k-apollo os=-bsd ;; - aros) - basic_machine=i386-pc - os=-aros - ;; aux) basic_machine=m68k-apple os=-aux @@ -462,26 +398,10 @@ basic_machine=ns32k-sequent os=-dynix ;; - blackfin) - basic_machine=bfin-unknown - os=-linux - ;; - blackfin-*) - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; - bluegene*) - basic_machine=powerpc-ibm - os=-cnk - ;; c90) basic_machine=c90-cray os=-unicos ;; - cegcc) - basic_machine=arm-unknown - os=-cegcc - ;; convex-c1) basic_machine=c1-convex os=-bsd @@ -506,27 +426,12 @@ basic_machine=j90-cray os=-unicos ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16) - basic_machine=cr16-unknown - os=-elf - ;; crds | unos) basic_machine=m68k-crds ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; da30 | da30-*) basic_machine=m68k-da30 ;; @@ -549,14 +454,6 @@ basic_machine=m88k-motorola os=-sysv3 ;; - dicos) - basic_machine=i686-pc - os=-dicos - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -707,14 +604,6 @@ basic_machine=m68k-isi os=-sysv ;; - m68knommu) - basic_machine=m68k-unknown - os=-linux - ;; - m68knommu-*) - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; m88k-omron*) basic_machine=m88k-omron ;; @@ -730,10 +619,6 @@ basic_machine=i386-pc os=-mingw32 ;; - mingw32ce) - basic_machine=arm-unknown - os=-mingw32ce - ;; miniframe) basic_machine=m68000-convergent ;; @@ -747,6 +632,10 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; + mmix*) + basic_machine=mmix-knuth + os=-mmixware + ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -759,9 +648,6 @@ basic_machine=i386-pc os=-msdos ;; - ms1-*) - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - ;; mvs) basic_machine=i370-ibm os=-mvs @@ -837,12 +723,9 @@ basic_machine=hppa1.1-oki os=-proelf ;; - openrisc | openrisc-*) + or32 | or32-*) basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 + os=-coff ;; OSE68000 | ose68000) basic_machine=m68000-ericsson @@ -860,14 +743,6 @@ basic_machine=i860-intel os=-osf ;; - parisc) - basic_machine=hppa-unknown - os=-linux - ;; - parisc-*) - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` - os=-linux - ;; pbd) basic_machine=sparc-tti ;; @@ -877,36 +752,24 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; - pc98) - basic_machine=i386-pc - ;; - pc98-*) - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; - pentiumii | pentium2 | pentiumiii | pentium3) + pentiumii | pentium2) basic_machine=i686-pc ;; - pentium4) - basic_machine=i786-pc - ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + pentiumii-* | pentium2-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; pn) basic_machine=pn-gould ;; @@ -939,10 +802,6 @@ basic_machine=i586-unknown os=-pw32 ;; - rdos) - basic_machine=i386-pc - os=-rdos - ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -969,14 +828,6 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; - sde) - basic_machine=mipsisa32-sde - os=-elf - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; sequent) basic_machine=i386-sequent ;; @@ -984,12 +835,6 @@ basic_machine=sh-hitachi os=-hms ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks @@ -1056,6 +901,10 @@ basic_machine=i386-sequent os=-dynix ;; + t3d) + basic_machine=alpha-cray + os=-unicos + ;; t3e) basic_machine=alphaev5-cray os=-unicos @@ -1064,22 +913,14 @@ basic_machine=t90-cray os=-unicos ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown + tic4x | c4x*) + basic_machine=tic4x-unknown os=-coff ;; - tic6x | c6x*) - basic_machine=tic6x-unknown + tic54x | c54x*) + basic_machine=tic54x-unknown os=-coff ;; - tile*) - basic_machine=tile-unknown - os=-linux-gnu - ;; tx39) basic_machine=mipstx39-unknown ;; @@ -1093,10 +934,6 @@ tower | tower-32) basic_machine=m68k-ncr ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; udi29k) basic_machine=a29k-amd os=-udi @@ -1140,9 +977,9 @@ basic_machine=hppa1.1-winbond os=-proelf ;; - xbox) - basic_machine=i686-pc - os=-mingw32 + windows32) + basic_machine=i386-pc + os=-windows32-msvcrt ;; xps | xps100) basic_machine=xps100-honeywell @@ -1155,10 +992,6 @@ basic_machine=z8k-unknown os=-sim ;; - z80-*-coff) - basic_machine=z80-unknown - os=-sim - ;; none) basic_machine=none-none os=-none @@ -1178,9 +1011,6 @@ romp) basic_machine=romp-ibm ;; - mmix) - basic_machine=mmix-knuth - ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1197,10 +1027,13 @@ we32k) basic_machine=we32k-att ;; - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) + sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) basic_machine=sh-unknown ;; - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) + sh64) + basic_machine=sh64-unknown + ;; + sparc | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) @@ -1267,30 +1100,24 @@ # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* | -aros* \ + | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -openbsd* | -solidbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* | -cegcc* \ + | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ - | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1302,21 +1129,16 @@ ;; esac ;; - -nto-qnx*) - ;; -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` + os=-nto-qnx ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; @@ -1329,9 +1151,6 @@ -opened*) os=-openedition ;; - -os400*) - os=-os400 - ;; -wince*) os=-wince ;; @@ -1353,9 +1172,6 @@ -atheos*) os=-atheos ;; - -syllable*) - os=-syllable - ;; -386bsd) os=-bsd ;; @@ -1378,9 +1194,6 @@ -sinix*) os=-sysv4 ;; - -tpf*) - os=-tpf - ;; -triton*) os=-sysv3 ;; @@ -1411,18 +1224,6 @@ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -dicos*) - os=-dicos - ;; -none) ;; *) @@ -1445,12 +1246,6 @@ # system, and we'll never get to this point. case $basic_machine in - score-*) - os=-elf - ;; - spu-*) - os=-elf - ;; *-acorn) os=-riscix1.2 ;; @@ -1460,9 +1255,6 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1488,9 +1280,6 @@ m68*-cisco) os=-aout ;; - mep-*) - os=-elf - ;; mips*-cisco) os=-elf ;; @@ -1509,15 +1298,9 @@ *-be) os=-beos ;; - *-haiku) - os=-haiku - ;; *-ibm) os=-aix ;; - *-knuth) - os=-mmixware - ;; *-wec) os=-proelf ;; @@ -1620,7 +1403,7 @@ -sunos*) vendor=sun ;; - -cnk*|-aix*) + -aix*) vendor=ibm ;; -beos*) @@ -1650,15 +1433,9 @@ -mvs* | -opened*) vendor=ibm ;; - -os400*) - vendor=ibm - ;; -ptx*) vendor=sequent ;; - -tpf*) - vendor=ibm - ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; @@ -1683,7 +1460,7 @@ esac echo $basic_machine$os -exit +exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,34 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-kde-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cc:46 +msgid "Hello example" +msgstr "Hola exemplu" + +#: hello.cc:48 +msgid "Hello world example" +msgstr "Exemplu de hola mundu" + +#: hellowindow.cc:42 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hellowindow.cc:49 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Esti programa ta corriendo como'l procesu nmberu %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,33 @@ +# Bulgarian translations for hello-c++-kde package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c++-kde 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:46 +msgid "Hello example" +msgstr "Пример: Здравейте" + +#: hello.cc:48 +msgid "Hello world example" +msgstr "Пример: Здравейте на всички" + +#: hellowindow.cc:42 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hellowindow.cc:49 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Програмата е запусната под процес номер %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/el.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/fr.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,35 @@ +# Translation of 'hello-c++-kde' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-kde 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cc:46 +msgid "Hello example" +msgstr "Салам мисалы" + +#: hello.cc:48 +msgid "Hello world example" +msgstr "Салам дүйнө мисалы" + +#: hellowindow.cc:42 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hellowindow.cc:49 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Бул программа %1 процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,37 @@ +# Latvian translation of hello-c++-kde +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-kde-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cc:46 +msgid "Hello example" +msgstr "Sveiki paraugs" + +#: hello.cc:48 +msgid "Hello world example" +msgstr "Sveika pasaule paraugs" + +#: hellowindow.cc:42 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hellowindow.cc:49 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Šī programma darbojas kā process ar numuru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -55,3 +55,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,33 @@ +# hello-c++-kde-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-kde 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:46 +msgid "Hello example" +msgstr "Eżempju tal-Hello" + +#: hello.cc:48 +msgid "Hello world example" +msgstr "Eżempju ta' Hello lil kulħadd" + +#: hellowindow.cc:42 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hellowindow.cc:49 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,32 +1,35 @@ # Polish translations for the GNU gettext messages, hello-c++-kde domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c++-kde-0.13.1\n" +"Project-Id-Version: hello-c++-kde-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cc:46 msgid "Hello example" -msgstr "Przykadowy program witajcy" +msgstr "Przykładowy program witający" #: hello.cc:48 msgid "Hello world example" -msgstr "Przykadowy program witajcy wiat" +msgstr "Przykładowy program witający świat" #: hellowindow.cc:42 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hellowindow.cc:49 #, qt-format msgid "This program is running as process number %1." -msgstr "Ten program dziaa jako proces o numerze %1." +msgstr "Ten program działa jako proces o numerze %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/uk.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c++-kde 0.16.2-pre5\n" +"Project-Id-Version: hello-c++-kde 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cc:46 msgid "Hello example" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c++-kde/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-kde/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/af.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-clisp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.lisp.in:11 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.lisp.in:13 +#, lisp-format +msgid "This program is running as process number ~D." +msgstr "Esti programa ta corriendo como'l procesu nmberu ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-clisp package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-clisp 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.lisp.in:11 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.lisp.in:13 +#, lisp-format +msgid "This program is running as process number ~D." +msgstr "Програмата е запусната под процес номер ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/de.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/el.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/es.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/id.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/it.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-clisp' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-clisp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.lisp.in:11 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.lisp.in:13 +#, lisp-format +msgid "This program is running as process number ~D." +msgstr "Бул программа ~D процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-clisp/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-clisp +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-clisp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.lisp.in:11 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.lisp.in:13 +#, lisp-format +msgid "This program is running as process number ~D." +msgstr "Šī programma darbojas kā process ar numuru ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-clisp/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-clisp-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-clisp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.lisp.in:11 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.lisp.in:13 +#, lisp-format +msgid "This program is running as process number ~D." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-clisp domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-clisp-0.13.1\n" +"Project-Id-Version: hello-clisp-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.lisp.in:11 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.lisp.in:13 #, lisp-format msgid "This program is running as process number ~D." -msgstr "Ten program dziaa jako proces o numerze ~D." +msgstr "Ten program działa jako proces o numerze ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-clisp 0.16.2-pre5\n" +"Project-Id-Version: hello-clisp 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.lisp.in:11 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-clisp/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-clisp/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-qt-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cc:45 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cc:52 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Esti programa ta corriendo como'l procesu nmberu %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c++-qt package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c++-qt 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:45 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cc:52 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Програмата е запусната под процес номер %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/de.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/el.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/es.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/fr.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ja.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c++-qt' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-qt 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cc:45 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cc:52 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Бул программа %1 процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c++-qt +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-qt-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cc:45 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cc:52 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Šī programma darbojas kā process ar numuru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -13,7 +13,7 @@ # These options get passed to xgettext. XGETTEXT_OPTIONS = \ --qt \ - --keyword=tr --flag=tr:1:pass-c-format --flag=tr:1:pass-qt-format \ + --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t --flag=tr:1:pass-c-format --flag=tr:1:pass-qt-format \ --keyword=translate:2 --flag=translate:2:pass-c-format --flag=translate:2:pass-qt-format \ --keyword=QT_TR_NOOP --flag=QT_TR_NOOP:1:pass-c-format --flag=QT_TR_NOOP:1:pass-qt-format \ --keyword=QT_TRANSLATE_NOOP:2 --flag=QT_TRANSLATE_NOOP:2:pass-c-format --flag=QT_TRANSLATE_NOOP:2:pass-qt-format \ @@ -46,6 +46,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -73,8 +79,8 @@ .po.qm: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.qm && $(GMSGFMT) -c --qt --statistics -o $${lang}.qm $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.qm && $(GMSGFMT) -c --qt --statistics -o t-$${lang}.qm $${lang}.po && mv t-$${lang}.qm $${lang}.qm + echo "$${cdcmd}rm -f $${lang}.qm && $(GMSGFMT) -c --qt --statistics --verbose -o $${lang}.qm $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.qm && $(GMSGFMT) -c --qt --statistics --verbose -o t-$${lang}.qm $${lang}.po && mv t-$${lang}.qm $${lang}.qm .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -171,8 +177,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -246,9 +259,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ms.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c++-qt-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-qt 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:45 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cc:52 +#, qt-format +msgid "This program is running as process number %1." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c++-qt domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c++-qt-0.13.1\n" +"Project-Id-Version: hello-c++-qt-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cc:45 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cc:52 #, qt-format msgid "This program is running as process number %1." -msgstr "Ten program dziaa jako proces o numerze %1." +msgstr "Ten program działa jako proces o numerze %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/uk.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/uk.po 2010-06-06 21:16:11.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c++-qt 0.16.2-pre5\n" +"Project-Id-Version: hello-c++-qt 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cc:45 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c++-qt/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-qt/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/af.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cs:14 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cs:17 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-csharp package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-csharp 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cs:14 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cs:17 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/de.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/el.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/es.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/id.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/it.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-csharp' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cs:14 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cs:17 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-csharp/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-csharp +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cs:14 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cs:17 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-csharp/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + pkglibdir = $(libdir)/$(PACKAGE) MSGMERGE = msgmerge @@ -160,8 +166,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -237,9 +250,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-csharp-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cs:14 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cs:17 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-csharp domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-csharp-0.13.1\n" +"Project-Id-Version: hello-csharp-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cs:14 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cs:17 #, csharp-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-csharp 0.16.2-pre5\n" +"Project-Id-Version: hello-csharp 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cs:14 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-csharp/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/af.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-forms-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cs:29 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-csharp-forms package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-csharp-forms 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cs:29 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/de.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/el.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/es.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/id.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/it.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-csharp-forms' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-forms 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cs:29 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-csharp-forms +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-forms-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cs:29 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + pkglibdir = $(libdir)/$(PACKAGE) MSGMERGE = msgmerge @@ -160,8 +166,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -237,9 +250,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-csharp-forms-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-csharp-forms 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cs:29 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-csharp-forms domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-csharp-forms-0.13.1\n" +"Project-Id-Version: hello-csharp-forms-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cs:29 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cs:36 #, csharp-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-csharp-forms 0.16.2-pre5\n" +"Project-Id-Version: hello-csharp-forms 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cs:29 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-csharp-forms/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-csharp-forms/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/autogen.sh gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/autogen.sh --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/autogen.sh 2007-03-21 01:45:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/autogen.sh 2010-06-06 12:49:57.000000000 +0000 @@ -26,10 +26,10 @@ cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/nls.m4 m4/nls.m4 cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/po.m4 m4/po.m4 cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/m4}/progtest.m4 m4/progtest.m4 -cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/autoconf-lib-link/m4}/lib-ld.m4 m4/lib-ld.m4 -cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/autoconf-lib-link/m4}/lib-link.m4 m4/lib-link.m4 -cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/autoconf-lib-link/m4}/lib-prefix.m4 m4/lib-prefix.m4 -cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/autoconf-lib-link}/config.rpath config.rpath +cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/gnulib-m4}/lib-ld.m4 m4/lib-ld.m4 +cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/gnulib-m4}/lib-link.m4 m4/lib-link.m4 +cp -p ${ACLOCALDIR-$GETTEXT_TOPSRCDIR/gettext-runtime/gnulib-m4}/lib-prefix.m4 m4/lib-prefix.m4 +cp -p ${GETTEXTSRCDIR-$GETTEXT_TOPSRCDIR/build-aux}/config.rpath config.rpath cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.sin po/remove-potcdate.sin aclocal -I m4 diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/af.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-wxwidgets-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.cc:68 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.cc:71 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-c++-wxwidgets package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-c++-wxwidgets 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:68 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.cc:71 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ca.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/de.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/el.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/es.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/fi.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/id.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/it.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-c++-wxwidgets' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-wxwidgets 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.cc:68 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.cc:71 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-c++-wxwidgets +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-wxwidgets-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.cc:68 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.cc:71 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -49,6 +49,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -80,8 +86,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -178,8 +184,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -319,9 +332,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/mt.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-c++-wxwidgets-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-c++-wxwidgets 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.cc:68 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.cc:71 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-c++-wxwidgets domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-c++-wxwidgets-0.13.1\n" +"Project-Id-Version: hello-c++-wxwidgets-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.cc:68 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.cc:71 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-c++-wxwidgets 0.16.2-pre5\n" +"Project-Id-Version: hello-c++-wxwidgets 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.cc:68 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-c++-wxwidgets/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-c++-wxwidgets/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/af.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-gawk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.awk:11 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.awk:12 +#, awk-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-gawk package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-gawk 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.awk:11 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.awk:12 +#, awk-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/de.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/el.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/es.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/id.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/it.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-gawk' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-gawk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.awk:11 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.awk:12 +#, awk-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-gawk/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-gawk +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-gawk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.awk:11 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.awk:12 +#, awk-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-gawk/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-gawk-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-gawk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.awk:11 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.awk:12 +#, awk-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-gawk domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-gawk-0.13.1\n" +"Project-Id-Version: hello-gawk-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.awk:11 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.awk:12 #, awk-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-gawk 0.16.2-pre5\n" +"Project-Id-Version: hello-gawk 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.awk:11 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-gawk/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-gawk/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/af.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-guile-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.scm:15 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Esti programa ta corriendo como'l procesu nmberu ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-guile package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-guile 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.scm:15 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Програмата е запусната под процес номер ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/de.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/el.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/es.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/id.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/it.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-guile' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-guile 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.scm:15 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Бул программа ~D процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-guile/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-guile +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-guile-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.scm:15 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Šī programma darbojas kā process ar numuru ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-guile/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-guile-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-guile 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.scm:15 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-guile domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-guile-0.13.1\n" +"Project-Id-Version: hello-guile-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.scm:15 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.scm:17 #, scheme-format msgid "This program is running as process number ~D." -msgstr "Ten program dziaa jako proces o numerze ~D." +msgstr "Ten program działa jako proces o numerze ~D." diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-guile 0.16.2-pre5\n" +"Project-Id-Version: hello-guile 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.scm:15 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-guile/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-guile/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-guile/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/af.po --- gettext-0.17/gettext-tools/examples/hello-java/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-java-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: Hello.java:14 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: Hello.java:18 +#, fuzzy, java-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-java/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-java package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-java 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:14 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: Hello.java:18 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/de.po --- gettext-0.17/gettext-tools/examples/hello-java/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/el.po --- gettext-0.17/gettext-tools/examples/hello-java/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-java/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/es.po --- gettext-0.17/gettext-tools/examples/hello-java/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-java/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-java/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-java/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/id.po --- gettext-0.17/gettext-tools/examples/hello-java/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/it.po --- gettext-0.17/gettext-tools/examples/hello-java/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-java' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: Hello.java:14 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: Hello.java:18 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-java/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-java/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-java/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-java +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: Hello.java:14 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: Hello.java:18 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-java/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-java/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGCAT = msgcat @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -206,9 +219,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ @@ -231,8 +250,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ echo "$(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties $(srcdir)/$${lang}.po"; \ $(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(srcdir)/$${lang}.po || exit 1; \ mv $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(top_srcdir)/$(DOMAIN)_$$lang.properties || exit 1; \ @@ -244,8 +263,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ done echo-catalogs: diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-java/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-java-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:14 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: Hello.java:18 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-java/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-java/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-java domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-java-0.13.1\n" +"Project-Id-Version: hello-java-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: Hello.java:14 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: Hello.java:18 #, java-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-java/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-java/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-java/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-java/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-java/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-java/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-java/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-java/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-java/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-java 0.16.2-pre5\n" +"Project-Id-Version: hello-java 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: Hello.java:14 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-java/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-java/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-java/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/af.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-java-awt-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: Hello.java:23 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: Hello.java:28 +#, fuzzy, java-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-java-awt package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-java-awt 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:23 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: Hello.java:28 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/de.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/el.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/es.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/id.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/it.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-java-awt' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-awt 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: Hello.java:23 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: Hello.java:28 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-java-awt +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-awt-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: Hello.java:23 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: Hello.java:28 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGCAT = msgcat @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -206,9 +219,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ @@ -231,8 +250,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ echo "$(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties $(srcdir)/$${lang}.po"; \ $(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(srcdir)/$${lang}.po || exit 1; \ mv $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(top_srcdir)/$(DOMAIN)_$$lang.properties || exit 1; \ @@ -244,8 +263,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ done echo-catalogs: diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-java-awt-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-awt 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:23 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: Hello.java:28 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-java-awt domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-java-awt-0.13.1\n" +"Project-Id-Version: hello-java-awt-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: Hello.java:23 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: Hello.java:28 #, java-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-java-awt 0.16.2-pre5\n" +"Project-Id-Version: hello-java-awt 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: Hello.java:23 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-java-awt/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-awt/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/af.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-java-qtjambi-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: Hello.java:27 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: Hello.java:34 +#, fuzzy, java-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-java-qtjambi package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-java-qtjambi 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:27 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: Hello.java:34 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/de.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/el.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/es.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/id.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/it.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-java-qtjambi' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-qtjambi 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: Hello.java:27 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: Hello.java:34 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-java-qtjambi +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-qtjambi-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: Hello.java:27 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: Hello.java:34 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGCAT = msgcat @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -206,9 +219,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ @@ -231,8 +250,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ echo "$(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties $(srcdir)/$${lang}.po"; \ $(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(srcdir)/$${lang}.po || exit 1; \ mv $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(top_srcdir)/$(DOMAIN)_$$lang.properties || exit 1; \ @@ -244,8 +263,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ done echo-catalogs: diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-java-qtjambi-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-qtjambi 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:27 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: Hello.java:34 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-java-qtjambi domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-java-qtjambi-0.13.1\n" +"Project-Id-Version: hello-java-qtjambi-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: Hello.java:27 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: Hello.java:34 #, java-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-java-qtjambi 0.16.2-pre5\n" +"Project-Id-Version: hello-java-qtjambi 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: Hello.java:27 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-java-qtjambi/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-qtjambi/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/af.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-java-swing-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: Hello.java:20 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: Hello.java:25 +#, fuzzy, java-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-java-swing package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-java-swing 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:20 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: Hello.java:25 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/de.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/el.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/es.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/id.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/it.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-java-swing' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-swing 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: Hello.java:20 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: Hello.java:25 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-java-swing +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-swing-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: Hello.java:20 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: Hello.java:25 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGCAT = msgcat @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -206,9 +219,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ @@ -231,8 +250,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -o /dev/null $(srcdir)/$${lang}.po || exit 1; \ echo "$(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties $(srcdir)/$${lang}.po"; \ $(MSGCAT) --properties-output -o $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(srcdir)/$${lang}.po || exit 1; \ mv $(top_srcdir)/$(DOMAIN)_$$lang.properties.tmp $(top_srcdir)/$(DOMAIN)_$$lang.properties || exit 1; \ @@ -244,8 +263,8 @@ $(MSGINIT) -i $(DOMAIN).pot --no-translator -l en --properties-output -o $(top_srcdir)/$(DOMAIN).properties || { rm -f $(top_srcdir)/$(DOMAIN).properties; exit 1; } @for f in $(POFILES); do \ lang=`echo $$f | sed -e 's,.*/,,' -e 's,\.po$$,,'`; \ - echo "$(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ - $(GMSGFMT) -c --statistics -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ + echo "$(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po"; \ + $(GMSGFMT) -c --statistics --verbose -j -d $(top_srcdir) -r $(DOMAIN) -l $${lang} $(srcdir)/$${lang}.po || exit 1; \ done echo-catalogs: diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-java-swing-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-java-swing 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.java:20 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: Hello.java:25 +#, java-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-java-swing domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-java-swing-0.13.1\n" +"Project-Id-Version: hello-java-swing-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: Hello.java:20 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: Hello.java:25 #, java-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-java-swing 0.16.2-pre5\n" +"Project-Id-Version: hello-java-swing 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: Hello.java:20 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-java-swing/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-java-swing/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/af.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-librep-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.jl.in:12 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.jl.in:14 +#, librep-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-librep package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-librep 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.jl.in:12 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.jl.in:14 +#, librep-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/de.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/el.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/es.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/id.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/it.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-librep' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-librep 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.jl.in:12 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.jl.in:14 +#, librep-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-librep/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-librep +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-librep-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.jl.in:12 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.jl.in:14 +#, librep-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-librep/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-librep-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-librep 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.jl.in:12 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.jl.in:14 +#, librep-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-librep domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-librep-0.13.1\n" +"Project-Id-Version: hello-librep-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.jl.in:12 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.jl.in:14 #, librep-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-librep 0.16.2-pre5\n" +"Project-Id-Version: hello-librep 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.jl.in:12 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-librep/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-librep/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-librep/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/af.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.m:30 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.m:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-objc package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-objc 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.m:30 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.m:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/de.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/el.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/es.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/id.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/it.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-objc' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.m:30 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.m:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-objc/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-objc +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.m:30 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.m:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-objc/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -47,3 +47,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-objc-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.m:30 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.m:31 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-objc domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-objc-0.13.1\n" +"Project-Id-Version: hello-objc-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.m:30 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.m:31 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-objc 0.16.2-pre5\n" +"Project-Id-Version: hello-objc 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.m:30 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-objc/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/af.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.m:47 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.m:52 +#, c-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-objc-gnome package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-objc-gnome 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.m:47 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.m:52 +#, c-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/de.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/el.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/es.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/id.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/it.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-objc-gnome' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.m:47 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.m:52 +#, c-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-objc-gnome +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnome-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.m:47 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.m:52 +#, c-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/Makevars gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/Makevars --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/Makevars 2005-10-20 17:55:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -59,3 +59,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-objc-gnome-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnome 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.m:47 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.m:52 +#, c-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-objc-gnome domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-objc-gnome-0.13.1\n" +"Project-Id-Version: hello-objc-gnome-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.m:47 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.m:52 #, c-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-objc-gnome 0.16.2-pre5\n" +"Project-Id-Version: hello-objc-gnome 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.m:47 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnome/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnome/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/af.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/af.po 2007-11-07 01:04:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnustep-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: Hello.m:49 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: Hello.m:58 +#, objc-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-objc-gnustep package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-objc-gnustep 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.m:49 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: Hello.m:58 +#, objc-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/de.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/el.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/es.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/fr.po 2010-06-06 21:16:02.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile 2007-03-21 01:45:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile 2010-06-06 12:49:57.000000000 +0000 @@ -42,8 +42,18 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + -include $(GNUSTEP_MAKEFILES)/rules.make +# Main application +PACKAGE_NAME = Hello +PACKAGE_VERSION = 0 + XGETTEXT = xgettext MSGMERGE = msgmerge MSGMERGE_UPDATE = msgmerge --update @@ -68,7 +78,7 @@ ENSTRINGSFILES = $(foreach lang, $(ENLINGUAS), $(top_srcdir)/$(NSLOCALE_$(lang)).lproj/Localizable.strings) CATALOGS = $(STRINGSFILES) $(ENSTRINGSFILES) -.SUFFIXES: .po .mo .sed .sin .nop .po-update +.SUFFIXES: .po .mo .sed .sin .nop .po-create .po-update .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -87,11 +97,30 @@ # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES_DEPS) remove-potcdate.sed - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \ - $(POTFILES) + if LC_ALL=C grep 'GNU $(PACKAGE_NAME)' ../* 2>/dev/null >/dev/null; then \ + package_gnu='GNU '; \ + else \ + package_gnu=''; \ + fi; \ + msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ + case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ + $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ + --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ + --copyright-holder='$(COPYRIGHT_HOLDER)' \ + --msgid-bugs-address="$$msgid_bugs_address" \ + $(POTFILES) \ + ;; \ + *) \ + $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ + --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ + --copyright-holder='$(COPYRIGHT_HOLDER)' \ + --package-name="$${package_gnu}$(PACKAGE_NAME)" \ + --package-version='$(VERSION)' \ + --msgid-bugs-address="$$msgid_bugs_address" \ + $(POTFILES) \ + ;; \ + esac test ! -f $(DOMAIN).po || { \ if test -f $(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(DOMAIN).pot > $(DOMAIN).1po && \ @@ -117,22 +146,44 @@ # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ - echo "$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot + if test -f $${lang}.po; then \ + echo "$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + else \ + $(MAKE) $${lang}.po-create; \ + fi update-po: $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-strings +# General rule for creating PO files. + +.nop.po-create: + @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ + echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ + exit 1 + # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ tmpdir=`pwd`; \ echo "$$lang:"; \ - echo "$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + echo "$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/id.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/it.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-objc-gnustep' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnustep 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: Hello.m:49 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: Hello.m:58 +#, objc-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-objc-gnustep +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnustep-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: Hello.m:49 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: Hello.m:58 +#, objc-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-objc-gnustep-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-objc-gnustep 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: Hello.m:49 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: Hello.m:58 +#, objc-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-objc-gnustep domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-objc-gnustep-0.13.1\n" +"Project-Id-Version: hello-objc-gnustep-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: Hello.m:49 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: Hello.m:58 #, objc-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sk.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/tr.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-objc-gnustep 0.16.2-pre5\n" +"Project-Id-Version: hello-objc-gnustep 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: Hello.m:49 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-objc-gnustep/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-objc-gnustep/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/hello.pas gettext-0.18.1.1/gettext-tools/examples/hello-pascal/hello.pas --- gettext-0.17/gettext-tools/examples/hello-pascal/hello.pas 2007-03-21 01:45:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/hello.pas 2010-06-06 12:49:57.000000000 +0000 @@ -7,7 +7,6 @@ {$mode delphi} uses gettext, { translateresourcestrings } - linux, { getpid } sysutils; { format } resourcestring @@ -17,5 +16,5 @@ begin translateresourcestrings({$i %LOCALEDIR%}+'/%s/LC_MESSAGES/hello-pascal.mo'); writeln(hello_world); - writeln(format(running_as,[getpid])); + writeln(format(running_as,[GetProcessID])); end. diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/INSTALL gettext-0.18.1.1/gettext-tools/examples/hello-pascal/INSTALL --- gettext-0.17/gettext-tools/examples/hello-pascal/INSTALL 2003-12-07 12:46:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/INSTALL 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ This example relies on: - - Free Pascal (ppc386) + - Free Pascal 2.0 or newer (ppc386) Installation: ./autogen.sh diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/af.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-pascal-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.hello_world +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.running_as +#, object-pascal-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-pascal package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-pascal 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.hello_world +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.running_as +#, object-pascal-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/de.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/el.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/es.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/id.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/it.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-pascal' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-pascal 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.hello_world +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.running_as +#, object-pascal-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-pascal/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-pascal +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-pascal-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.hello_world +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.running_as +#, object-pascal-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-pascal/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-pascal-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-pascal 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.hello_world +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.running_as +#, object-pascal-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-pascal domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-pascal-0.13.1\n" +"Project-Id-Version: hello-pascal-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.hello_world msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.running_as #, object-pascal-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-pascal 0.16.2-pre5\n" +"Project-Id-Version: hello-pascal 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.hello_world msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-pascal/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-pascal/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/af.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/af.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,31 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-perl-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello-1.pl.in:17 hello-2.pl.in:12 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello-1.pl.in:19 +#, perl-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." + +#: hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {pid}." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,30 @@ +# Bulgarian translations for hello-perl package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-perl 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello-1.pl.in:17 hello-2.pl.in:12 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello-1.pl.in:19 +#, perl-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." + +#: hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Програмата е запусната под процес номер {pid}." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/de.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/el.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/eo.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/es.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/es.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/id.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/it.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/it.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,32 @@ +# Translation of 'hello-perl' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-perl 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello-1.pl.in:17 hello-2.pl.in:12 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello-1.pl.in:19 +#, perl-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." + +#: hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Бул программа {pid} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-perl/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,34 @@ +# Latvian translation of hello-perl +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-perl-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello-1.pl.in:17 hello-2.pl.in:12 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello-1.pl.in:19 +#, perl-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." + +#: hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Šī programma darbojas kā process ar numuru {pid}." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-perl/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -53,6 +53,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -84,8 +90,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -182,8 +188,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -323,9 +336,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,30 @@ +# hello-perl-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-perl 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello-1.pl.in:17 hello-2.pl.in:12 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello-1.pl.in:19 +#, perl-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." + +#: hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {pid}." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,29 +1,32 @@ # Polish translations for the GNU gettext messages, hello-perl domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-perl-0.13.1\n" +"Project-Id-Version: hello-perl-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello-1.pl.in:17 hello-2.pl.in:12 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello-1.pl.in:19 #, perl-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." #: hello-2.pl.in:14 #, perl-brace-format msgid "This program is running as process number {pid}." -msgstr "Ten program dziaa jako proces o numerze {pid}." +msgstr "Ten program działa jako proces o numerze {pid}." diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ro.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/ru.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/sk.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sk.po 2010-06-06 21:16:10.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/sv.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-perl 0.16.2-pre5\n" +"Project-Id-Version: hello-perl 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello-1.pl.in:17 hello-2.pl.in:12 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-perl/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-perl/po/zh_TW.po 2007-11-07 01:05:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-perl/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/af.po --- gettext-0.17/gettext-tools/examples/hello-php/po/af.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-php-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.php:12 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-php/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-php package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-php 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.php:12 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/de.po --- gettext-0.17/gettext-tools/examples/hello-php/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/el.po --- gettext-0.17/gettext-tools/examples/hello-php/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-php/po/eo.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/es.po --- gettext-0.17/gettext-tools/examples/hello-php/po/es.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-php/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-php/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-php/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/id.po --- gettext-0.17/gettext-tools/examples/hello-php/po/id.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/it.po --- gettext-0.17/gettext-tools/examples/hello-php/po/it.po 2007-11-07 01:04:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/it.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-php' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-php 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.php:12 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-php/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-php/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-php/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-php +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-php-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.php:12 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-php/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-php/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-php/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-php-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-php 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.php:12 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-php/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-php/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-php domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-php-0.13.1\n" +"Project-Id-Version: hello-php-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.php:12 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.php:14 #, php-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-php/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ro.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-php/po/ru.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-php/po/sk.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sk.po 2010-06-06 21:16:10.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-php/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-php/po/sr.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-php/po/sv.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-php/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-php/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-php/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-php 0.16.2-pre5\n" +"Project-Id-Version: hello-php 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.php:12 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-php/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-php/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-php/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-php/po/zh_TW.po 2007-11-07 01:05:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-php/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/af.po --- gettext-0.17/gettext-tools/examples/hello-python/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-python-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.py.in:12 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %(pid)d." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-python/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-python package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-python 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.py.in:12 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Програмата е запусната под процес номер %(pid)d." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/de.po --- gettext-0.17/gettext-tools/examples/hello-python/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/el.po --- gettext-0.17/gettext-tools/examples/hello-python/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-python/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/es.po --- gettext-0.17/gettext-tools/examples/hello-python/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-python/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-python/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-python/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/id.po --- gettext-0.17/gettext-tools/examples/hello-python/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/it.po --- gettext-0.17/gettext-tools/examples/hello-python/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-python' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-python 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.py.in:12 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Бул программа %(pid)d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-python/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-python/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-python/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-python +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-python-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.py.in:12 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Šī programma darbojas kā process ar numuru %(pid)d." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-python/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-python/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-python/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-python-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-python 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.py.in:12 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %(pid)d." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-python/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-python/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-python domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-python-0.13.1\n" +"Project-Id-Version: hello-python-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.py.in:12 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.py.in:13 #, python-format msgid "This program is running as process number %(pid)d." -msgstr "Ten program dziaa jako proces o numerze %(pid)d." +msgstr "Ten program działa jako proces o numerze %(pid)d." diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-python/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-python/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-python/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-python/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-python/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-python/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-python/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-python/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-python/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-python 0.16.2-pre5\n" +"Project-Id-Version: hello-python 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.py.in:12 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-python/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-python/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-python/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-python/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-python/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/af.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-sh-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.sh:14 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Esti programa ta corriendo como'l procesu nmberu $pid." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/bg.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-sh package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-sh 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.sh:14 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Програмата е запусната под процес номер $pid." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/de.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/el.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/es.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/es.po 2007-11-07 01:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/hu.po 2007-11-07 01:04:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/id.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/id.po 2007-11-07 01:04:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/it.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/it.po 2007-11-07 01:04:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-sh' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-sh 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.sh:14 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Бул программа $pid процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-sh/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-sh +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-sh-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.sh:14 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Šī programma darbojas kā process ar numuru $pid." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-sh/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-sh-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-sh 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.sh:14 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru $pid." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/pl.po 2010-06-06 21:16:07.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-sh domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-sh-0.13.1\n" +"Project-Id-Version: hello-sh-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.sh:14 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.sh:17 #, sh-format msgid "This program is running as process number $pid." -msgstr "Ten program dziaa jako proces o numerze $pid." +msgstr "Ten program działa jako proces o numerze $pid." diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/pt.po 2007-11-07 01:04:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ro.po 2007-11-07 01:04:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/ru.po 2007-11-07 01:04:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/sr.po 2007-11-07 01:04:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/sv.po 2007-11-07 01:04:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-sh 0.16.2-pre5\n" +"Project-Id-Version: hello-sh 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.sh:14 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/zh_CN.po 2007-11-07 01:05:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_CN.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/zh_HK.po 2007-11-07 01:05:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-sh/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-sh/po/zh_TW.po 2007-11-07 01:05:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-sh/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/af.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/af.po 2007-11-07 01:04:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-smalltalk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.st.in:31 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.st.in:32 +#, smalltalk-format +msgid "This program is running as process number %1." +msgstr "Esti programa ta corriendo como'l procesu nmberu %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-smalltalk package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-smalltalk 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.st.in:31 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.st.in:32 +#, smalltalk-format +msgid "This program is running as process number %1." +msgstr "Програмата е запусната под процес номер %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ca.po 2007-11-07 01:04:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/de.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/de.po 2007-11-07 01:04:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/de.po 2010-06-06 21:16:00.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/el.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/el.po 2007-11-07 01:04:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/eo.po 2007-11-07 01:04:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/es.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/fi.po 2007-11-07 01:04:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/fr.po 2007-11-07 01:04:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ga.po 2007-11-07 01:04:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/hu.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/id.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/it.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ja.po 2007-11-07 01:04:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-smalltalk' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-smalltalk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.st.in:31 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.st.in:32 +#, smalltalk-format +msgid "This program is running as process number %1." +msgstr "Бул программа %1 процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-smalltalk +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-smalltalk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.st.in:31 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.st.in:32 +#, smalltalk-format +msgid "This program is running as process number %1." +msgstr "Šī programma darbojas kā process ar numuru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ms.po 2007-11-07 01:04:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-smalltalk-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-smalltalk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.st.in:31 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.st.in:32 +#, smalltalk-format +msgid "This program is running as process number %1." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/nl.po 2007-11-07 01:04:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/pl.po 2007-11-07 01:04:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-smalltalk domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-smalltalk-0.13.1\n" +"Project-Id-Version: hello-smalltalk-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.st.in:31 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.st.in:32 #, smalltalk-format msgid "This program is running as process number %1." -msgstr "Ten program dziaa jako proces o numerze %1." +msgstr "Ten program działa jako proces o numerze %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ro.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sk.po 2007-11-07 01:04:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sl.po 2007-11-07 01:04:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/tr.po 2007-11-07 01:04:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/uk.po 2007-11-07 01:04:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/vi.po 2007-11-07 01:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-smalltalk 0.16.2-pre5\n" +"Project-Id-Version: hello-smalltalk 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.st.in:31 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_HK.po 2007-11-07 01:05:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-smalltalk/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-smalltalk/po/zh_TW.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/af.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/af.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.tcl:11 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.tcl:12 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-tcl package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-tcl 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.tcl:11 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.tcl:12 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/de.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/el.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/es.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/es.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/id.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/it.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-tcl' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.tcl:11 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.tcl:12 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-tcl/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-tcl +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.tcl:11 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.tcl:12 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-tcl/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -233,9 +246,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-tcl-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.tcl:11 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.tcl:12 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-tcl domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-tcl-0.13.1\n" +"Project-Id-Version: hello-tcl-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.tcl:11 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.tcl:12 #, tcl-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/ru.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/sk.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sk.po 2010-06-06 21:16:10.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/sv.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-tcl 0.16.2-pre5\n" +"Project-Id-Version: hello-tcl 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.tcl:11 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-tcl/po/zh_TW.po 2007-11-07 01:05:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/af.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/af.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-tk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.tcl:13 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.tcl:16 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-tcl-tk package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-tcl-tk 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.tcl:13 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.tcl:16 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/de.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/el.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/eo.po 2007-11-07 01:04:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/es.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/es.po 2007-11-07 01:04:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/id.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/it.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/it.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-tcl-tk' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-tk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.tcl:13 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.tcl:16 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-tcl-tk +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-tk-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.tcl:13 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.tcl:16 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -39,6 +39,12 @@ # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -158,8 +164,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -233,9 +246,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-tcl-tk-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-tcl-tk 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.tcl:13 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.tcl:16 +#, tcl-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-tcl-tk domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-tcl-tk-0.13.1\n" +"Project-Id-Version: hello-tcl-tk-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.tcl:13 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.tcl:16 #, tcl-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/ru.po 2007-11-07 01:04:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sk.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sk.po 2010-06-06 21:16:10.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/sv.po 2007-11-07 01:04:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-tcl-tk 0.16.2-pre5\n" +"Project-Id-Version: hello-tcl-tk 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.tcl:13 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-tcl-tk/po/zh_TW.po 2007-11-07 01:05:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-tcl-tk/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/af.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/af.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/af.po 2007-11-07 01:04:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/af.po 2010-06-06 21:15:59.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ast.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ast.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ast.po 2010-06-06 21:15:59.000000000 +0000 @@ -0,0 +1,26 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: hello-ycp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello.ycp:15 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Esti programa ta corriendo como'l procesu nmberu %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/bg.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/bg.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/bg.po 2010-06-06 21:16:00.000000000 +0000 @@ -0,0 +1,25 @@ +# Bulgarian translations for hello-ycp package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU hello-ycp 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.ycp:15 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Програмата е запусната под процес номер %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ca.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ca.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ca.po 2007-11-07 01:04:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ca.po 2010-06-06 21:16:00.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/de.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/de.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/de.po 2007-11-07 01:04:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/de.po 2010-06-06 21:16:01.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/el.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/el.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/el.po 2007-11-07 01:04:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/el.po 2010-06-06 21:16:01.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/eo.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/eo.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/eo.po 2007-11-07 01:04:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/eo.po 2010-06-06 21:16:01.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/es.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/es.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/es.po 2007-11-07 01:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/es.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/fi.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/fi.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/fi.po 2007-11-07 01:04:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/fi.po 2010-06-06 21:16:02.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/fr.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/fr.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/fr.po 2007-11-07 01:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/fr.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ga.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ga.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ga.po 2007-11-07 01:04:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ga.po 2010-06-06 21:16:03.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/hu.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/hu.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/hu.po 2007-11-07 01:04:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/hu.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/id.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/id.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/id.po 2007-11-07 01:04:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/id.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/it.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/it.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/it.po 2007-11-07 01:04:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/it.po 2010-06-06 21:16:04.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ja.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ja.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ja.po 2007-11-07 01:04:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ja.po 2010-06-06 21:16:05.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ky.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ky.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ky.po 2010-06-06 21:16:05.000000000 +0000 @@ -0,0 +1,27 @@ +# Translation of 'hello-ycp' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-ycp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello.ycp:15 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Бул программа %1 процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/LINGUAS --- gettext-0.17/gettext-tools/examples/hello-ycp/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/lv.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/lv.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/lv.po 2010-06-06 21:16:06.000000000 +0000 @@ -0,0 +1,29 @@ +# Latvian translation of hello-ycp +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-ycp-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello.ycp:15 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Šī programma darbojas kā process ar numuru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/Makefile.am --- gettext-0.17/gettext-tools/examples/hello-ycp/po/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -43,6 +43,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -74,8 +80,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -172,8 +178,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -313,9 +326,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ms.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ms.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ms.po 2007-11-07 01:04:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ms.po 2010-06-06 21:16:06.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/mt.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/mt.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/mt.po 2010-06-06 21:16:07.000000000 +0000 @@ -0,0 +1,25 @@ +# hello-ycp-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: hello-ycp 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello.ycp:15 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/nl.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/nl.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/nl.po 2007-11-07 01:04:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/nl.po 2010-06-06 21:16:07.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/pl.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/pl.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/pl.po 2007-11-07 01:04:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/pl.po 2010-06-06 21:16:08.000000000 +0000 @@ -1,24 +1,27 @@ # Polish translations for the GNU gettext messages, hello-ycp domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: hello-ycp-0.13.1\n" +"Project-Id-Version: hello-ycp-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello.ycp:15 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello.ycp:19 #, ycp-format msgid "This program is running as process number %1." -msgstr "Ten program dziaa jako proces o numerze %1." +msgstr "Ten program działa jako proces o numerze %1." diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/pt.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/pt.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/pt.po 2007-11-07 01:04:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/pt.po 2010-06-06 21:16:08.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ro.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ro.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ro.po 2007-11-07 01:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ro.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/ru.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ru.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/ru.po 2007-11-07 01:04:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/ru.po 2010-06-06 21:16:09.000000000 +0000 @@ -11,6 +11,7 @@ "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/sk.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sk.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/sk.po 2007-11-07 01:04:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sk.po 2010-06-06 21:16:09.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/sl.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sl.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/sl.po 2007-11-07 01:04:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sl.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/sr.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sr.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/sr.po 2007-11-07 01:04:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sr.po 2010-06-06 21:16:10.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/sv.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sv.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/sv.po 2007-11-07 01:04:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/sv.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/tr.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/tr.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/tr.po 2007-11-07 01:04:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/tr.po 2010-06-06 21:16:11.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/uk.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/uk.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/uk.po 2007-11-07 01:04:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/uk.po 2010-06-06 21:16:12.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/vi.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/vi.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/vi.po 2007-11-07 01:05:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/vi.po 2010-06-06 21:16:12.000000000 +0000 @@ -1,20 +1,22 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: hello-ycp 0.16.2-pre5\n" +"Project-Id-Version: hello-ycp 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello.ycp:15 msgid "Hello, world!" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_CN.po 2007-11-07 01:05:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_CN.po 2010-06-06 21:16:13.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_HK.po 2007-11-07 01:05:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_HK.po 2010-06-06 21:16:13.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/hello-ycp/po/zh_TW.po 2007-11-07 01:05:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/hello-ycp/po/zh_TW.po 2010-06-06 21:16:14.000000000 +0000 @@ -9,6 +9,7 @@ "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/Makefile.am gettext-0.18.1.1/gettext-tools/examples/Makefile.am --- gettext-0.17/gettext-tools/examples/Makefile.am 2007-10-27 01:12:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/examples subdirectory of GNU gettext -## Copyright (C) 2001-2007 Free Software Foundation, Inc. +## Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -394,6 +394,8 @@ EXAMPLESPOFILES = \ LINGUAS \ af.po \ + ast.po \ + bg.po \ ca.po \ de.po \ el.po \ @@ -406,7 +408,10 @@ id.po \ it.po \ ja.po \ + ky.po \ + lv.po \ ms.po \ + mt.po \ nl.po \ pl.po \ pt.po \ diff -Nru gettext-0.17/gettext-tools/examples/Makefile.in gettext-0.18.1.1/gettext-tools/examples/Makefile.in --- gettext-0.17/gettext-tools/examples/Makefile.in 2007-11-06 23:40:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/Makefile.in 2010-06-06 20:11:41.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,8 +17,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -45,6 +47,7 @@ ../../build-aux/texinfo.tex ../../build-aux/ylwrap ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../../m4/fixautomake.m4 \ + $(top_srcdir)/../../m4/init-package-version.m4 \ $(top_srcdir)/../../gettext-runtime/m4/nls.m4 \ $(top_srcdir)/../../gettext-runtime/m4/po.m4 \ $(top_srcdir)/../../gettext-runtime/m4/progtest.m4 \ @@ -55,6 +58,13 @@ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/../../build-aux/mkinstalldirs CONFIG_CLEAN_FILES = installpaths +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -69,12 +79,29 @@ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(examplesdir)" -examplesDATA_INSTALL = $(INSTALL_DATA) DATA = $(examples_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -82,15 +109,41 @@ distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = ../../build-aux/fixaclocal @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -121,6 +174,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ @@ -168,6 +222,7 @@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 foreign @@ -547,6 +602,8 @@ EXAMPLESPOFILES = \ LINGUAS \ af.po \ + ast.po \ + bg.po \ ca.po \ de.po \ el.po \ @@ -559,7 +616,10 @@ id.po \ it.po \ ja.po \ + ky.po \ + lv.po \ ms.po \ + mt.po \ nl.po \ pl.po \ pt.po \ @@ -588,15 +648,15 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -612,28 +672,32 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): installpaths: $(top_builddir)/config.status $(srcdir)/installpaths.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-examplesDATA: $(examples_DATA) @$(NORMAL_INSTALL) test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)" - @list='$(examples_DATA)'; for p in $$list; do \ + @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(examplesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(examplesdir)/$$f'"; \ - $(examplesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(examplesdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesdir)" || exit $$?; \ done uninstall-examplesDATA: @$(NORMAL_UNINSTALL) - @list='$(examples_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(examplesdir)/$$f'"; \ - rm -f "$(DESTDIR)$(examplesdir)/$$f"; \ - done + @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(examplesdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(examplesdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -642,7 +706,7 @@ # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -659,7 +723,7 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ @@ -667,7 +731,7 @@ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -693,16 +757,16 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) @@ -710,14 +774,14 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -729,46 +793,50 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -784,38 +852,55 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -824,6 +909,14 @@ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -847,13 +940,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -861,9 +958,11 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ @@ -885,13 +984,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -937,6 +1038,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -956,6 +1058,8 @@ html: html-recursive +html-am: + info: info-recursive info-am: @@ -964,18 +1068,28 @@ install-dvi: install-dvi-recursive +install-dvi-am: + install-exec-am: install-html: install-html-recursive +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: install-pdf: install-pdf-recursive +install-pdf-am: + install-ps: install-ps-recursive +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -998,16 +1112,16 @@ uninstall-am: uninstall-examplesDATA uninstall-local -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am \ + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ + distclean distclean-generic distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am \ install-examplesDATA install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ @@ -1091,6 +1205,7 @@ cp -p $$d/$$file $(distdir)/$$file || exit 1; \ done; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/examples/po/af.po gettext-0.18.1.1/gettext-tools/examples/po/af.po --- gettext-0.17/gettext-tools/examples/po/af.po 2007-10-18 01:08:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/af.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples-0.13.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2003-12-31 10:30+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" +"Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ast.po gettext-0.18.1.1/gettext-tools/examples/po/ast.po --- gettext-0.17/gettext-tools/examples/po/ast.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ast.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,88 @@ +# Mensajes en asturianu para GNU gettext. +# This file is distributed under the same license as the gettext package. +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# Copyright (C) 2009 Free Software Foundation, Inc. +# Marquinos , 2009. +msgid "" +msgstr "" +"Project-Id-Version: gettext-examples-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2009-12-15 12:16+0100\n" +"Last-Translator: Marquinos \n" +"Language-Team: Asturian \n" +"Language: ast\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 +#: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 +#: hello-c++-gnome/hello.cc:50 hello-c++-wxwidgets/hello.cc:68 +#: hello-objc/hello.m:30 hello-objc-gnustep/Hello.m:49 +#: hello-objc-gnome/hello.m:47 hello-sh/hello.sh:14 +#: hello-python/hello.py.in:12 hello-clisp/hello.lisp.in:11 +#: hello-librep/hello.jl.in:12 hello-guile/hello.scm:15 +#: hello-smalltalk/hello.st.in:31 hello-java/Hello.java:14 +#: hello-java-awt/Hello.java:23 hello-java-swing/Hello.java:20 +#: hello-java-qtjambi/Hello.java:27 hello-csharp/hello.cs:14 +#: hello-csharp-forms/hello.cs:29 hello-gawk/hello.awk:11 +#: hello-pascal/hello.hello_world hello-ycp/hello.ycp:15 +#: hello-tcl/hello.tcl:11 hello-tcl-tk/hello.tcl:13 +#: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 +#: hello-php/hello.php:12 +msgid "Hello, world!" +msgstr "Hola, mundu!" + +#: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 +#: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 +#: hello-objc/hello.m:31 hello-objc-gnustep/Hello.m:58 +#: hello-objc-gnome/hello.m:52 hello-librep/hello.jl.in:14 +#: hello-gawk/hello.awk:12 hello-pascal/hello.running_as +#: hello-tcl/hello.tcl:12 hello-tcl-tk/hello.tcl:16 +#: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %d." + +#: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 +#: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Esti programa ta corriendo como'l procesu nmberu %1." + +#: hello-c++-kde/hello.cc:46 +msgid "Hello example" +msgstr "Hola exemplu" + +#: hello-c++-kde/hello.cc:48 +msgid "Hello world example" +msgstr "Exemplu de hola mundu" + +#: hello-sh/hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Esti programa ta corriendo como'l procesu nmberu $pid." + +#: hello-python/hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Esti programa ta corriendo como'l procesu nmberu %(pid)d." + +#: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Esti programa ta corriendo como'l procesu nmberu ~D." + +#: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 +#: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 +#: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {0}." + +#: hello-perl/hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Esti programa ta corriendo como'l procesu nmberu {pid}." diff -Nru gettext-0.17/gettext-tools/examples/po/bg.po gettext-0.18.1.1/gettext-tools/examples/po/bg.po --- gettext-0.17/gettext-tools/examples/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/bg.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,87 @@ +# Bulgarian translations for gettext-examples package. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU gettext-examples 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2010-05-10 13:49+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 +#: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 +#: hello-c++-gnome/hello.cc:50 hello-c++-wxwidgets/hello.cc:68 +#: hello-objc/hello.m:30 hello-objc-gnustep/Hello.m:49 +#: hello-objc-gnome/hello.m:47 hello-sh/hello.sh:14 +#: hello-python/hello.py.in:12 hello-clisp/hello.lisp.in:11 +#: hello-librep/hello.jl.in:12 hello-guile/hello.scm:15 +#: hello-smalltalk/hello.st.in:31 hello-java/Hello.java:14 +#: hello-java-awt/Hello.java:23 hello-java-swing/Hello.java:20 +#: hello-java-qtjambi/Hello.java:27 hello-csharp/hello.cs:14 +#: hello-csharp-forms/hello.cs:29 hello-gawk/hello.awk:11 +#: hello-pascal/hello.hello_world hello-ycp/hello.ycp:15 +#: hello-tcl/hello.tcl:11 hello-tcl-tk/hello.tcl:13 +#: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 +#: hello-php/hello.php:12 +msgid "Hello, world!" +msgstr "Здравейте на всички !" + +#: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 +#: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 +#: hello-objc/hello.m:31 hello-objc-gnustep/Hello.m:58 +#: hello-objc-gnome/hello.m:52 hello-librep/hello.jl.in:14 +#: hello-gawk/hello.awk:12 hello-pascal/hello.running_as +#: hello-tcl/hello.tcl:12 hello-tcl-tk/hello.tcl:16 +#: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Програмата е запусната под процес номер %d." + +#: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 +#: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Програмата е запусната под процес номер %1." + +#: hello-c++-kde/hello.cc:46 +msgid "Hello example" +msgstr "Пример: Здравейте" + +#: hello-c++-kde/hello.cc:48 +msgid "Hello world example" +msgstr "Пример: Здравейте на всички" + +#: hello-sh/hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Програмата е запусната под процес номер $pid." + +#: hello-python/hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Програмата е запусната под процес номер %(pid)d." + +#: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Програмата е запусната под процес номер ~D." + +#: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 +#: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 +#: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Програмата е запусната под процес номер {0}." + +#: hello-perl/hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Програмата е запусната под процес номер {pid}." diff -Nru gettext-0.17/gettext-tools/examples/po/ca.po gettext-0.18.1.1/gettext-tools/examples/po/ca.po --- gettext-0.17/gettext-tools/examples/po/ca.po 2007-10-18 01:08:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ca.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.13.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2003-12-18 10:41+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/de.po gettext-0.18.1.1/gettext-tools/examples/po/de.po --- gettext-0.17/gettext-tools/examples/po/de.po 2007-10-18 01:08:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/de.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.13.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2003-12-18 10:09+0100\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/el.po gettext-0.18.1.1/gettext-tools/examples/po/el.po --- gettext-0.17/gettext-tools/examples/po/el.po 2007-10-18 01:08:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/el.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-01-06 18:50+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/eo.po gettext-0.18.1.1/gettext-tools/examples/po/eo.po --- gettext-0.17/gettext-tools/examples/po/eo.po 2007-10-18 01:08:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/eo.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-07-02 19:24+0100\n" "Last-Translator: Edmund GRIMLEY EVANS \n" "Language-Team: Esperanto \n" +"Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/es.po gettext-0.18.1.1/gettext-tools/examples/po/es.po --- gettext-0.17/gettext-tools/examples/po/es.po 2007-10-18 01:08:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/es.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples-0.14\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2004-01-29 13:59-0600\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/fi.po gettext-0.18.1.1/gettext-tools/examples/po/fi.po --- gettext-0.17/gettext-tools/examples/po/fi.po 2007-10-27 01:08:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/fi.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2007-10-20 23:42+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/fr.po gettext-0.18.1.1/gettext-tools/examples/po/fr.po --- gettext-0.17/gettext-tools/examples/po/fr.po 2007-10-31 12:55:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/fr.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: GNU gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-10-01 02:29+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ga.po gettext-0.18.1.1/gettext-tools/examples/po/ga.po --- gettext-0.17/gettext-tools/examples/po/ga.po 2007-10-18 01:08:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ga.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-02-07 12:09-0500\n" "Last-Translator: Kevin Patrick Scannell \n" "Language-Team: Irish \n" +"Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/gettext-examples.pot gettext-0.18.1.1/gettext-tools/examples/po/gettext-examples.pot --- gettext-0.17/gettext-tools/examples/po/gettext-examples.pot 2007-10-18 01:08:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/gettext-examples.pot 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/hu.po gettext-0.18.1.1/gettext-tools/examples/po/hu.po --- gettext-0.17/gettext-tools/examples/po/hu.po 2007-10-18 01:08:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/hu.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-08-28 03:21+0200\n" "Last-Translator: Kiss Tams \n" "Language-Team: Hungarian \n" +"Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/id.po gettext-0.18.1.1/gettext-tools/examples/po/id.po --- gettext-0.17/gettext-tools/examples/po/id.po 2007-10-18 01:08:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/id.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples-0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-09-27 20:19+0700\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/it.po gettext-0.18.1.1/gettext-tools/examples/po/it.po --- gettext-0.17/gettext-tools/examples/po/it.po 2007-10-18 01:08:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/it.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-07-01 10:46+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ja.po gettext-0.18.1.1/gettext-tools/examples/po/ja.po --- gettext-0.17/gettext-tools/examples/po/ja.po 2007-10-27 01:08:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ja.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: GNU gettext-examples 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2007-10-16 10:31+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ky.po gettext-0.18.1.1/gettext-tools/examples/po/ky.po --- gettext-0.17/gettext-tools/examples/po/ky.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ky.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,89 @@ +# Translation of 'gettext-examples' messages to Kirghiz. +# Copyright (C) 2006 Yoyodyne, Inc. +# This file is distributed under the same license as the silky package. +# Ilyas Bakirov , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: gettext-examples 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2007-11-13 16:02+0600\n" +"Last-Translator: Ilyas Bakirov \n" +"Language-Team: Kirghiz \n" +"Language: ky\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Kyrgyz\n" +"X-Poedit-Country: KYRGYZSTAN\n" + +#: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 +#: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 +#: hello-c++-gnome/hello.cc:50 hello-c++-wxwidgets/hello.cc:68 +#: hello-objc/hello.m:30 hello-objc-gnustep/Hello.m:49 +#: hello-objc-gnome/hello.m:47 hello-sh/hello.sh:14 +#: hello-python/hello.py.in:12 hello-clisp/hello.lisp.in:11 +#: hello-librep/hello.jl.in:12 hello-guile/hello.scm:15 +#: hello-smalltalk/hello.st.in:31 hello-java/Hello.java:14 +#: hello-java-awt/Hello.java:23 hello-java-swing/Hello.java:20 +#: hello-java-qtjambi/Hello.java:27 hello-csharp/hello.cs:14 +#: hello-csharp-forms/hello.cs:29 hello-gawk/hello.awk:11 +#: hello-pascal/hello.hello_world hello-ycp/hello.ycp:15 +#: hello-tcl/hello.tcl:11 hello-tcl-tk/hello.tcl:13 +#: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 +#: hello-php/hello.php:12 +msgid "Hello, world!" +msgstr "Салам дүйнө!" + +#: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 +#: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 +#: hello-objc/hello.m:31 hello-objc-gnustep/Hello.m:58 +#: hello-objc-gnome/hello.m:52 hello-librep/hello.jl.in:14 +#: hello-gawk/hello.awk:12 hello-pascal/hello.running_as +#: hello-tcl/hello.tcl:12 hello-tcl-tk/hello.tcl:16 +#: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Бул программа %d процесс номери катары иштеп жатат." + +#: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 +#: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Бул программа %1 процесс номери катары иштеп жатат." + +#: hello-c++-kde/hello.cc:46 +msgid "Hello example" +msgstr "Салам мисалы" + +#: hello-c++-kde/hello.cc:48 +msgid "Hello world example" +msgstr "Салам дүйнө мисалы" + +#: hello-sh/hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Бул программа $pid процесс номери катары иштеп жатат." + +#: hello-python/hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Бул программа %(pid)d процесс номери катары иштеп жатат." + +#: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Бул программа ~D процесс номери катары иштеп жатат." + +#: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 +#: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 +#: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Бул программа {0} процесс номери катары иштеп жатат." + +#: hello-perl/hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Бул программа {pid} процесс номери катары иштеп жатат." diff -Nru gettext-0.17/gettext-tools/examples/po/LINGUAS gettext-0.18.1.1/gettext-tools/examples/po/LINGUAS --- gettext-0.17/gettext-tools/examples/po/LINGUAS 2007-10-27 01:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -2,4 +2,4 @@ # This file is in the public domain. # # Set of available languages. -af ca de el eo es fi fr ga hu id it ja ms nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW +af ast bg ca de el eo es fi fr ga hu id it ja ky lv ms mt nl pl pt ro ru sk sl sr sv tr uk vi zh_CN zh_HK zh_TW diff -Nru gettext-0.17/gettext-tools/examples/po/lv.po gettext-0.18.1.1/gettext-tools/examples/po/lv.po --- gettext-0.17/gettext-tools/examples/po/lv.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/lv.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,91 @@ +# Latvian translation of gettext-examples +# Copyright (C) 2009 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Arvis Lācis , 2009. +# +msgid "" +msgstr "" +"Project-Id-Version: gettext-examples-0.17\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2009-07-28 21:26+0100\n" +"Last-Translator: Rihards Priedītis \n" +"Language-Team: Latvian \n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Latvian\n" +"X-Poedit-Country: LATVIA\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 +#: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 +#: hello-c++-gnome/hello.cc:50 hello-c++-wxwidgets/hello.cc:68 +#: hello-objc/hello.m:30 hello-objc-gnustep/Hello.m:49 +#: hello-objc-gnome/hello.m:47 hello-sh/hello.sh:14 +#: hello-python/hello.py.in:12 hello-clisp/hello.lisp.in:11 +#: hello-librep/hello.jl.in:12 hello-guile/hello.scm:15 +#: hello-smalltalk/hello.st.in:31 hello-java/Hello.java:14 +#: hello-java-awt/Hello.java:23 hello-java-swing/Hello.java:20 +#: hello-java-qtjambi/Hello.java:27 hello-csharp/hello.cs:14 +#: hello-csharp-forms/hello.cs:29 hello-gawk/hello.awk:11 +#: hello-pascal/hello.hello_world hello-ycp/hello.ycp:15 +#: hello-tcl/hello.tcl:11 hello-tcl-tk/hello.tcl:13 +#: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 +#: hello-php/hello.php:12 +msgid "Hello, world!" +msgstr "Sveika, pasaule!" + +#: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 +#: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 +#: hello-objc/hello.m:31 hello-objc-gnustep/Hello.m:58 +#: hello-objc-gnome/hello.m:52 hello-librep/hello.jl.in:14 +#: hello-gawk/hello.awk:12 hello-pascal/hello.running_as +#: hello-tcl/hello.tcl:12 hello-tcl-tk/hello.tcl:16 +#: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Šī programma darbojas kā process ar numuru %d." + +#: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 +#: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Šī programma darbojas kā process ar numuru %1." + +#: hello-c++-kde/hello.cc:46 +msgid "Hello example" +msgstr "Sveiki paraugs" + +#: hello-c++-kde/hello.cc:48 +msgid "Hello world example" +msgstr "Sveika pasaule paraugs" + +#: hello-sh/hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Šī programma darbojas kā process ar numuru $pid." + +#: hello-python/hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Šī programma darbojas kā process ar numuru %(pid)d." + +#: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Šī programma darbojas kā process ar numuru ~D." + +#: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 +#: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 +#: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Šī programma darbojas kā process ar numuru {0}." + +#: hello-perl/hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Šī programma darbojas kā process ar numuru {pid}." diff -Nru gettext-0.17/gettext-tools/examples/po/Makefile.am gettext-0.18.1.1/gettext-tools/examples/po/Makefile.am --- gettext-0.17/gettext-tools/examples/po/Makefile.am 2007-10-17 23:39:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/examples/po subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2007, 2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -122,6 +122,12 @@ # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet + MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit @@ -303,8 +309,8 @@ $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) && $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot html ID: @@ -344,9 +350,9 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if $(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/examples/po/Makefile.in gettext-0.18.1.1/gettext-tools/examples/po/Makefile.in --- gettext-0.17/gettext-tools/examples/po/Makefile.in 2007-11-06 23:40:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/Makefile.in 2010-06-06 20:11:41.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -33,6 +35,7 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../../m4/fixautomake.m4 \ + $(top_srcdir)/../../m4/init-package-version.m4 \ $(top_srcdir)/../../gettext-runtime/m4/nls.m4 \ $(top_srcdir)/../../gettext-runtime/m4/po.m4 \ $(top_srcdir)/../../gettext-runtime/m4/progtest.m4 \ @@ -41,11 +44,19 @@ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../../build-aux/mkinstalldirs CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -76,6 +87,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ @@ -123,6 +135,7 @@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits @@ -232,6 +245,12 @@ # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = --quiet MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv @@ -297,14 +316,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits po/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits po/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits po/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits po/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -322,6 +341,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): tags: TAGS TAGS: @@ -345,13 +365,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -380,6 +404,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -400,6 +425,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -408,18 +435,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -614,8 +651,8 @@ $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) && $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot html ID: @@ -641,9 +678,9 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if $(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ @@ -748,6 +785,7 @@ ../hello-php/po/$(LL).po: hello-php.pot $(LL).po $(SHELL) mmsmallpo.sh hello-php $(LL) + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/examples/po/mmsmallpo.sh gettext-0.18.1.1/gettext-tools/examples/po/mmsmallpo.sh --- gettext-0.17/gettext-tools/examples/po/mmsmallpo.sh 2004-01-17 17:07:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/mmsmallpo.sh 2010-06-06 12:49:57.000000000 +0000 @@ -7,7 +7,7 @@ directory=$1 language=$2 -msgmerge --force-po $language.po $directory.pot -o - | \ +msgmerge --quiet --force-po $language.po $directory.pot -o - | \ msgattrib --no-obsolete | \ sed -e "s, $directory/, ,g" | sed -e "s,gettext-examples,$directory," | \ sed -e '/^"POT-Creation-Date: .*"$/{ diff -Nru gettext-0.17/gettext-tools/examples/po/ms.po gettext-0.18.1.1/gettext-tools/examples/po/ms.po --- gettext-0.17/gettext-tools/examples/po/ms.po 2007-10-18 01:09:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ms.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-12-22 21:36+0800\n" "Last-Translator: Sharuzzaman Ahmat Raslan \n" "Language-Team: Malay \n" +"Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/mt.po gettext-0.18.1.1/gettext-tools/examples/po/mt.po --- gettext-0.17/gettext-tools/examples/po/mt.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/mt.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,87 @@ +# gettext-examples-0.16.2-pre5. +# Copyright (C) 2008 Yoyodyne, Inc. (msgids) +# This file is distributed under the same license as the gettext package. +# Clyde Meli , 2001-2008. +# +msgid "" +msgstr "" +"Project-Id-Version: gettext-examples 0.16.2-pre5\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2008-11-18 17:27+0100\n" +"Last-Translator: Clyde Meli \n" +"Language-Team: Maltese \n" +"Language: mt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-3\n" +"Content-Transfer-Encoding: 8bit\n" + +#: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 +#: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 +#: hello-c++-gnome/hello.cc:50 hello-c++-wxwidgets/hello.cc:68 +#: hello-objc/hello.m:30 hello-objc-gnustep/Hello.m:49 +#: hello-objc-gnome/hello.m:47 hello-sh/hello.sh:14 +#: hello-python/hello.py.in:12 hello-clisp/hello.lisp.in:11 +#: hello-librep/hello.jl.in:12 hello-guile/hello.scm:15 +#: hello-smalltalk/hello.st.in:31 hello-java/Hello.java:14 +#: hello-java-awt/Hello.java:23 hello-java-swing/Hello.java:20 +#: hello-java-qtjambi/Hello.java:27 hello-csharp/hello.cs:14 +#: hello-csharp-forms/hello.cs:29 hello-gawk/hello.awk:11 +#: hello-pascal/hello.hello_world hello-ycp/hello.ycp:15 +#: hello-tcl/hello.tcl:11 hello-tcl-tk/hello.tcl:13 +#: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 +#: hello-php/hello.php:12 +msgid "Hello, world!" +msgstr "Hello, lil kulħadd!" + +#: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 +#: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 +#: hello-objc/hello.m:31 hello-objc-gnustep/Hello.m:58 +#: hello-objc-gnome/hello.m:52 hello-librep/hello.jl.in:14 +#: hello-gawk/hello.awk:12 hello-pascal/hello.running_as +#: hello-tcl/hello.tcl:12 hello-tcl-tk/hello.tcl:16 +#: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 +#, php-format +msgid "This program is running as process number %d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %d." + +#: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 +#: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 +#, ycp-format +msgid "This program is running as process number %1." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %1." + +#: hello-c++-kde/hello.cc:46 +msgid "Hello example" +msgstr "Eżempju tal-Hello" + +#: hello-c++-kde/hello.cc:48 +msgid "Hello world example" +msgstr "Eżempju ta' Hello lil kulħadd" + +#: hello-sh/hello.sh:17 +#, sh-format +msgid "This program is running as process number $pid." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru $pid." + +#: hello-python/hello.py.in:13 +#, python-format +msgid "This program is running as process number %(pid)d." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru %(pid)d." + +#: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 +#, scheme-format +msgid "This program is running as process number ~D." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru ~D." + +#: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 +#: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 +#: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 +#, csharp-format +msgid "This program is running as process number {0}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {0}." + +#: hello-perl/hello-2.pl.in:14 +#, perl-brace-format +msgid "This program is running as process number {pid}." +msgstr "Dal-programm qed jaħdem taħt il-proċess numru {pid}." diff -Nru gettext-0.17/gettext-tools/examples/po/nl.po gettext-0.18.1.1/gettext-tools/examples/po/nl.po --- gettext-0.17/gettext-tools/examples/po/nl.po 2007-10-27 01:08:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/nl.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-examples-0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2007-10-16 18:51+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/pl.po gettext-0.18.1.1/gettext-tools/examples/po/pl.po --- gettext-0.17/gettext-tools/examples/po/pl.po 2007-10-18 01:09:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/pl.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,19 +1,22 @@ # Polish translations for the GNU gettext messages, gettext-examples domain -# Copyright (C) 2003 Free Software Foundation, Inc. +# Copyright (C) 2010 Yoyodyne, Inc. (msgids) # This file is distributed under the same license as the gettext package. -# Rafa Maszkowski , 2003 -# +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 2003, 2010 „” msgid "" msgstr "" -"Project-Id-Version: gettext-examples-0.13.1\n" +"Project-Id-Version: gettext-examples-0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" -"PO-Revision-Date: 2003-12-18 12:00+0100\n" -"Last-Translator: Rafa Maszkowski \n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" #: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 #: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 @@ -31,7 +34,7 @@ #: hello-perl/hello-1.pl.in:17 hello-perl/hello-2.pl.in:12 #: hello-php/hello.php:12 msgid "Hello, world!" -msgstr "Witaj wiecie!" +msgstr "Witaj świecie!" #: hello-c/hello.c:31 hello-c-gnome/hello.c:51 hello-c++/hello.cc:40 #: hello-c++-gnome/hello.cc:55 hello-c++-wxwidgets/hello.cc:71 @@ -42,45 +45,45 @@ #: hello-perl/hello-1.pl.in:19 hello-php/hello.php:14 #, php-format msgid "This program is running as process number %d." -msgstr "Ten program dziaa jako proces o numerze %d." +msgstr "Ten program działa jako proces o numerze %d." #: hello-c++-qt/hello.cc:52 hello-c++-kde/hellowindow.cc:49 #: hello-smalltalk/hello.st.in:32 hello-ycp/hello.ycp:19 #, ycp-format msgid "This program is running as process number %1." -msgstr "Ten program dziaa jako proces o numerze %1." +msgstr "Ten program działa jako proces o numerze %1." #: hello-c++-kde/hello.cc:46 msgid "Hello example" -msgstr "Przykadowy program witajcy" +msgstr "Przykładowy program witający" #: hello-c++-kde/hello.cc:48 msgid "Hello world example" -msgstr "Przykadowy program witajcy wiat" +msgstr "Przykładowy program witający świat" #: hello-sh/hello.sh:17 #, sh-format msgid "This program is running as process number $pid." -msgstr "Ten program dziaa jako proces o numerze $pid." +msgstr "Ten program działa jako proces o numerze $pid." #: hello-python/hello.py.in:13 #, python-format msgid "This program is running as process number %(pid)d." -msgstr "Ten program dziaa jako proces o numerze %(pid)d." +msgstr "Ten program działa jako proces o numerze %(pid)d." #: hello-clisp/hello.lisp.in:13 hello-guile/hello.scm:17 #, scheme-format msgid "This program is running as process number ~D." -msgstr "Ten program dziaa jako proces o numerze ~D." +msgstr "Ten program działa jako proces o numerze ~D." #: hello-java/Hello.java:18 hello-java-awt/Hello.java:28 #: hello-java-swing/Hello.java:25 hello-java-qtjambi/Hello.java:34 #: hello-csharp/hello.cs:17 hello-csharp-forms/hello.cs:36 #, csharp-format msgid "This program is running as process number {0}." -msgstr "Ten program dziaa jako proces o numerze {0}." +msgstr "Ten program działa jako proces o numerze {0}." #: hello-perl/hello-2.pl.in:14 #, perl-brace-format msgid "This program is running as process number {pid}." -msgstr "Ten program dziaa jako proces o numerze {pid}." +msgstr "Ten program działa jako proces o numerze {pid}." diff -Nru gettext-0.17/gettext-tools/examples/po/pt.po gettext-0.18.1.1/gettext-tools/examples/po/pt.po --- gettext-0.17/gettext-tools/examples/po/pt.po 2007-10-18 01:09:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/pt.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-11-19 23:08+0000\n" "Last-Translator: Helder Correia \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ro.po gettext-0.18.1.1/gettext-tools/examples/po/ro.po --- gettext-0.17/gettext-tools/examples/po/ro.po 2007-10-18 01:09:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ro.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.13-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2003-11-22 11:15+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/ru.po gettext-0.18.1.1/gettext-tools/examples/po/ru.po --- gettext-0.17/gettext-tools/examples/po/ru.po 2007-10-18 01:09:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/ru.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2004-11-17 10:08+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/sk.po gettext-0.18.1.1/gettext-tools/examples/po/sk.po --- gettext-0.17/gettext-tools/examples/po/sk.po 2007-10-18 01:09:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/sk.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: GNU gettext-examples 0.14-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2004-01-22 00:19+0100\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/sl.po gettext-0.18.1.1/gettext-tools/examples/po/sl.po --- gettext-0.17/gettext-tools/examples/po/sl.po 2007-11-07 00:46:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/sl.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-09-29 13:38+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/sr.po gettext-0.18.1.1/gettext-tools/examples/po/sr.po --- gettext-0.17/gettext-tools/examples/po/sr.po 2007-10-18 01:09:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/sr.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2004-01-31 00:47-0500\n" "Last-Translator: Aleksandar Jelenak \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/sv.po gettext-0.18.1.1/gettext-tools/examples/po/sv.po --- gettext-0.17/gettext-tools/examples/po/sv.po 2007-10-18 01:09:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/sv.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-07-04 12:39+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/tr.po gettext-0.18.1.1/gettext-tools/examples/po/tr.po --- gettext-0.17/gettext-tools/examples/po/tr.po 2007-10-18 01:09:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/tr.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2004-01-21 06:17+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/uk.po gettext-0.18.1.1/gettext-tools/examples/po/uk.po --- gettext-0.17/gettext-tools/examples/po/uk.po 2007-10-18 01:09:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/uk.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2007-07-05 20:24+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/vi.po gettext-0.18.1.1/gettext-tools/examples/po/vi.po --- gettext-0.17/gettext-tools/examples/po/vi.po 2007-10-31 12:56:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/vi.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,21 +1,23 @@ # Vietnamese Translation for Gettext Examples. -# Copyright © 2005 Yoyodyne, Inc. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Yoyodyne, Inc. (msgids) +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: gettext-examples 0.16.2-pre5\n" +"Project-Id-Version: gettext-examples 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" -"PO-Revision-Date: 2007-10-17 16:27+0930\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" +"PO-Revision-Date: 2010-05-13 17:32+0930\n" "Last-Translator: Clytie Siddall \n" -"Language-Team: Vietnamese \n" +"Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: hello-c/hello.c:30 hello-c-gnome/hello.c:46 hello-c++/hello.cc:39 #: hello-c++-qt/hello.cc:45 hello-c++-kde/hellowindow.cc:42 diff -Nru gettext-0.17/gettext-tools/examples/po/zh_CN.po gettext-0.18.1.1/gettext-tools/examples/po/zh_CN.po --- gettext-0.17/gettext-tools/examples/po/zh_CN.po 2007-10-18 01:09:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/zh_CN.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.13.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2003-12-18 19:07+0800\n" "Last-Translator: Funda Wang \n" "Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/zh_HK.po gettext-0.18.1.1/gettext-tools/examples/po/zh_HK.po --- gettext-0.17/gettext-tools/examples/po/zh_HK.po 2007-10-18 01:09:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/zh_HK.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.15-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2006-07-05 15:40+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (Hong Kong) \n" +"Language: zh_HK\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/examples/po/zh_TW.po gettext-0.18.1.1/gettext-tools/examples/po/zh_TW.po --- gettext-0.17/gettext-tools/examples/po/zh_TW.po 2007-10-18 01:09:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/examples/po/zh_TW.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-examples 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-10-18 03:08+0200\n" +"POT-Creation-Date: 2009-08-16 12:22+0200\n" "PO-Revision-Date: 2005-08-10 12:25+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/gnulib-lib/acl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/acl.c --- gettext-0.17/gettext-tools/gnulib-lib/acl.c 2007-10-23 00:42:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/acl.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,260 +0,0 @@ -/* acl.c - access control lists - - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - Written by Paul Eggert and Andreas Gruenbacher. */ - -#include - -#include "acl.h" - -#include "acl-internal.h" - -/* If DESC is a valid file descriptor use fchmod to change the - file's mode to MODE on systems that have fchown. On systems - that don't have fchown and if DESC is invalid, use chown on - NAME instead. */ - -int -chmod_or_fchmod (const char *name, int desc, mode_t mode) -{ - if (HAVE_FCHMOD && desc != -1) - return fchmod (desc, mode); - else - return chmod (name, mode); -} - -/* Copy access control lists from one file to another. If SOURCE_DESC is - a valid file descriptor, use file descriptor operations, else use - filename based operations on SRC_NAME. Likewise for DEST_DESC and - DEST_NAME. - If access control lists are not available, fchmod the target file to - MODE. Also sets the non-permission bits of the destination file - (S_ISUID, S_ISGID, S_ISVTX) to those from MODE if any are set. - System call return value semantics. */ - -int -copy_acl (const char *src_name, int source_desc, const char *dst_name, - int dest_desc, mode_t mode) -{ - int ret; - -#if USE_ACL && HAVE_ACL_GET_FILE && HAVE_ACL_SET_FILE && HAVE_ACL_FREE - /* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ - - acl_t acl; - if (HAVE_ACL_GET_FD && source_desc != -1) - acl = acl_get_fd (source_desc); - else - acl = acl_get_file (src_name, ACL_TYPE_ACCESS); - if (acl == NULL) - { - if (ACL_NOT_WELL_SUPPORTED (errno)) - return set_acl (dst_name, dest_desc, mode); - else - { - error (0, errno, "%s", quote (src_name)); - return -1; - } - } - - if (HAVE_ACL_SET_FD && dest_desc != -1) - ret = acl_set_fd (dest_desc, acl); - else - ret = acl_set_file (dst_name, ACL_TYPE_ACCESS, acl); - if (ret != 0) - { - int saved_errno = errno; - - if (ACL_NOT_WELL_SUPPORTED (errno)) - { - int n = acl_entries (acl); - - acl_free (acl); - /* On most hosts an ACL is trivial if n == 3, and it cannot be - less than 3. On IRIX 6.5 it is also trivial if n == -1. - For simplicity and safety, assume the ACL is trivial if n <= 3. - Also see file-has-acl.c for some of the other possibilities; - it's not clear whether that complexity is needed here. */ - if (n <= 3) - { - if (chmod_or_fchmod (dst_name, dest_desc, mode) != 0) - saved_errno = errno; - else - return 0; - } - else - chmod_or_fchmod (dst_name, dest_desc, mode); - } - else - { - acl_free (acl); - chmod_or_fchmod (dst_name, dest_desc, mode); - } - error (0, saved_errno, _("preserving permissions for %s"), - quote (dst_name)); - return -1; - } - else - acl_free (acl); - - if (mode & (S_ISUID | S_ISGID | S_ISVTX)) - { - /* We did not call chmod so far, so the special bits have not yet - been set. */ - - if (chmod_or_fchmod (dst_name, dest_desc, mode) != 0) - { - error (0, errno, _("preserving permissions for %s"), - quote (dst_name)); - return -1; - } - } - - if (S_ISDIR (mode)) - { - acl = acl_get_file (src_name, ACL_TYPE_DEFAULT); - if (acl == NULL) - { - error (0, errno, "%s", quote (src_name)); - return -1; - } - - if (acl_set_file (dst_name, ACL_TYPE_DEFAULT, acl)) - { - error (0, errno, _("preserving permissions for %s"), - quote (dst_name)); - acl_free (acl); - return -1; - } - else - acl_free (acl); - } - return 0; -#else - ret = chmod_or_fchmod (dst_name, dest_desc, mode); - if (ret != 0) - error (0, errno, _("preserving permissions for %s"), quote (dst_name)); - return ret; -#endif -} - -/* Set the access control lists of a file. If DESC is a valid file - descriptor, use file descriptor operations where available, else use - filename based operations on NAME. If access control lists are not - available, fchmod the target file to MODE. Also sets the - non-permission bits of the destination file (S_ISUID, S_ISGID, S_ISVTX) - to those from MODE if any are set. System call return value - semantics. */ - -int -set_acl (char const *name, int desc, mode_t mode) -{ -#if USE_ACL && HAVE_ACL_SET_FILE && HAVE_ACL_FREE - /* POSIX 1003.1e draft 17 (abandoned) specific version. */ - - /* We must also have have_acl_from_text and acl_delete_def_file. - (acl_delete_def_file could be emulated with acl_init followed - by acl_set_file, but acl_set_file with an empty acl is - unspecified.) */ - -# ifndef HAVE_ACL_FROM_TEXT -# error Must have acl_from_text (see POSIX 1003.1e draft 17). -# endif -# ifndef HAVE_ACL_DELETE_DEF_FILE -# error Must have acl_delete_def_file (see POSIX 1003.1e draft 17). -# endif - - acl_t acl; - int ret; - - if (HAVE_ACL_FROM_MODE) - { - acl = acl_from_mode (mode); - if (!acl) - { - error (0, errno, "%s", quote (name)); - return -1; - } - } - else - { - char acl_text[] = "u::---,g::---,o::---"; - - if (mode & S_IRUSR) acl_text[ 3] = 'r'; - if (mode & S_IWUSR) acl_text[ 4] = 'w'; - if (mode & S_IXUSR) acl_text[ 5] = 'x'; - if (mode & S_IRGRP) acl_text[10] = 'r'; - if (mode & S_IWGRP) acl_text[11] = 'w'; - if (mode & S_IXGRP) acl_text[12] = 'x'; - if (mode & S_IROTH) acl_text[17] = 'r'; - if (mode & S_IWOTH) acl_text[18] = 'w'; - if (mode & S_IXOTH) acl_text[19] = 'x'; - - acl = acl_from_text (acl_text); - if (!acl) - { - error (0, errno, "%s", quote (name)); - return -1; - } - } - if (HAVE_ACL_SET_FD && desc != -1) - ret = acl_set_fd (desc, acl); - else - ret = acl_set_file (name, ACL_TYPE_ACCESS, acl); - if (ret != 0) - { - int saved_errno = errno; - acl_free (acl); - - if (ACL_NOT_WELL_SUPPORTED (errno)) - { - if (chmod_or_fchmod (name, desc, mode) != 0) - saved_errno = errno; - else - return 0; - } - error (0, saved_errno, _("setting permissions for %s"), quote (name)); - return -1; - } - else - acl_free (acl); - - if (S_ISDIR (mode) && acl_delete_def_file (name)) - { - error (0, errno, _("setting permissions for %s"), quote (name)); - return -1; - } - - if (mode & (S_ISUID | S_ISGID | S_ISVTX)) - { - /* We did not call chmod so far, so the special bits have not yet - been set. */ - - if (chmod_or_fchmod (name, desc, mode)) - { - error (0, errno, _("preserving permissions for %s"), quote (name)); - return -1; - } - } - return 0; -#else - int ret = chmod_or_fchmod (name, desc, mode); - if (ret) - error (0, errno, _("setting permissions for %s"), quote (name)); - return ret; -#endif -} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/acl_entries.c gettext-0.18.1.1/gettext-tools/gnulib-lib/acl_entries.c --- gettext-0.17/gettext-tools/gnulib-lib/acl_entries.c 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/acl_entries.c 2010-05-24 09:42:35.000000000 +0000 @@ -1,6 +1,6 @@ /* Return the number of entries in an ACL. - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,18 +21,55 @@ #include "acl-internal.h" -/* Return the number of entries in ACL. */ +/* This file assumes POSIX-draft like ACLs + (Linux, FreeBSD, MacOS X, IRIX, Tru64). */ + +/* Return the number of entries in ACL. + Return -1 and set errno upon failure to determine it. */ int acl_entries (acl_t acl) { - char *t; - int entries = 0; - char *text = acl_to_text (acl, NULL); - if (! text) - return -1; - for (t = text; *t; t++) - entries += (*t == '\n'); - acl_free (text); - return entries; + int count = 0; + + if (acl != NULL) + { +#if HAVE_ACL_FIRST_ENTRY /* Linux, FreeBSD, MacOS X */ +# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */ + /* acl_get_entry returns 0 when it successfully fetches an entry, + and -1/EINVAL at the end. */ + acl_entry_t ace; + int got_one; + + for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); + got_one >= 0; + got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) + count++; +# else /* Linux, FreeBSD */ + /* acl_get_entry returns 1 when it successfully fetches an entry, + and 0 at the end. */ + acl_entry_t ace; + int got_one; + + for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); + got_one > 0; + got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) + count++; + if (got_one < 0) + return -1; +# endif +#else /* IRIX, Tru64 */ +# if HAVE_ACL_TO_SHORT_TEXT /* IRIX */ + /* Don't use acl_get_entry: it is undocumented. */ + count = acl->acl_cnt; +# endif +# if HAVE_ACL_FREE_TEXT /* Tru64 */ + /* Don't use acl_get_entry: it takes only one argument and does not + work. */ + count = acl->acl_num; +# endif +#endif + } + + return count; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/acl.h gettext-0.18.1.1/gettext-tools/gnulib-lib/acl.h --- gettext-0.17/gettext-tools/gnulib-lib/acl.h 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/acl.h 2010-05-24 09:42:35.000000000 +0000 @@ -1,6 +1,6 @@ /* acl.c - access control lists - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2008-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,17 +18,10 @@ Written by Paul Eggert. */ #include - -#if HAVE_SYS_ACL_H -# include -#endif -#if defined HAVE_ACL && ! defined GETACLCNT && defined ACL_CNT -# define GETACLCNT ACL_CNT -#endif - #include int file_has_acl (char const *, struct stat const *); int copy_acl (char const *, int, char const *, int, mode_t); int set_acl (char const *, int, mode_t); +int qset_acl (char const *, int, mode_t); int chmod_or_fchmod (char const *, int, mode_t); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/acl-internal.h gettext-0.18.1.1/gettext-tools/gnulib-lib/acl-internal.h --- gettext-0.17/gettext-tools/gnulib-lib/acl-internal.h 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/acl-internal.h 2010-05-24 09:42:35.000000000 +0000 @@ -1,6 +1,6 @@ /* Internal implementation of access control lists. - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,13 +15,22 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Written by Paul Eggert and Andreas Gruenbacher. */ + Written by Paul Eggert, Andreas Grünbacher, and Bruno Haible. */ #include "acl.h" #include #include +/* All systems define the ACL related API in . */ +#if HAVE_SYS_ACL_H +# include +#endif +#if defined HAVE_ACL && ! defined GETACLCNT && defined ACL_CNT +# define GETACLCNT ACL_CNT +#endif + +/* On Linux, additional ACL related API is available in . */ #ifdef HAVE_ACL_LIBACL_H # include #endif @@ -37,49 +46,175 @@ # define ENOTSUP (-1) #endif -#include "gettext.h" -#define _(msgid) gettext (msgid) - #ifndef HAVE_FCHMOD # define HAVE_FCHMOD false # define fchmod(fd, mode) (-1) #endif -#ifndef MIN_ACL_ENTRIES -# define MIN_ACL_ENTRIES 4 -#endif + +#if USE_ACL + +# if HAVE_ACL_GET_FILE +/* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ +/* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ + +# ifndef MIN_ACL_ENTRIES +# define MIN_ACL_ENTRIES 4 +# endif /* POSIX 1003.1e (draft 17) */ -#ifndef HAVE_ACL_GET_FD -# define HAVE_ACL_GET_FD false -# undef acl_get_fd -# define acl_get_fd(fd) (NULL) -#endif +# ifdef HAVE_ACL_GET_FD +/* Most platforms have a 1-argument acl_get_fd, only OSF/1 has a 2-argument + macro(!). */ +# if HAVE_ACL_FREE_TEXT /* OSF/1 */ +static inline acl_t +rpl_acl_get_fd (int fd) +{ + return acl_get_fd (fd, ACL_TYPE_ACCESS); +} +# undef acl_get_fd +# define acl_get_fd rpl_acl_get_fd +# endif +# else +# define HAVE_ACL_GET_FD false +# undef acl_get_fd +# define acl_get_fd(fd) (NULL) +# endif /* POSIX 1003.1e (draft 17) */ -#ifndef HAVE_ACL_SET_FD -# define HAVE_ACL_SET_FD false -# undef acl_set_fd -# define acl_set_fd(fd, acl) (-1) -#endif +# ifdef HAVE_ACL_SET_FD +/* Most platforms have a 2-argument acl_set_fd, only OSF/1 has a 3-argument + macro(!). */ +# if HAVE_ACL_FREE_TEXT /* OSF/1 */ +static inline int +rpl_acl_set_fd (int fd, acl_t acl) +{ + return acl_set_fd (fd, ACL_TYPE_ACCESS, acl); +} +# undef acl_set_fd +# define acl_set_fd rpl_acl_set_fd +# endif +# else +# define HAVE_ACL_SET_FD false +# undef acl_set_fd +# define acl_set_fd(fd, acl) (-1) +# endif + +/* POSIX 1003.1e (draft 13) */ +# if ! HAVE_ACL_FREE_TEXT +# define acl_free_text(buf) acl_free (buf) +# endif /* Linux-specific */ -#ifndef HAVE_ACL_EXTENDED_FILE -# define HAVE_ACL_EXTENDED_FILE false -# define acl_extended_file(name) (-1) -#endif +# ifndef HAVE_ACL_EXTENDED_FILE +# define HAVE_ACL_EXTENDED_FILE false +# define acl_extended_file(name) (-1) +# endif /* Linux-specific */ -#ifndef HAVE_ACL_FROM_MODE -# define HAVE_ACL_FROM_MODE false -# define acl_from_mode(mode) (NULL) -#endif +# ifndef HAVE_ACL_FROM_MODE +# define HAVE_ACL_FROM_MODE false +# define acl_from_mode(mode) (NULL) +# endif + +/* Set to 1 if a file's mode is implicit by the ACL. + Set to 0 if a file's mode is stored independently from the ACL. */ +# if HAVE_ACL_COPY_EXT_NATIVE && HAVE_ACL_CREATE_ENTRY_NP /* MacOS X */ +# define MODE_INSIDE_ACL 0 +# else +# define MODE_INSIDE_ACL 1 +# endif + +# if defined __APPLE__ && defined __MACH__ /* MacOS X */ +# define ACL_NOT_WELL_SUPPORTED(Err) \ + ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == ENOENT) +# elif defined EOPNOTSUPP /* Tru64 NFS */ +# define ACL_NOT_WELL_SUPPORTED(Err) \ + ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == EOPNOTSUPP) +# else +# define ACL_NOT_WELL_SUPPORTED(Err) \ + ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY) +# endif + +/* Return the number of entries in ACL. + Return -1 and set errno upon failure to determine it. */ +/* Define a replacement for acl_entries if needed. (Only Linux has it.) */ +# if !HAVE_ACL_ENTRIES +# define acl_entries rpl_acl_entries +extern int acl_entries (acl_t); +# endif + +# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */ +/* ACL is an ACL, from a file, stored as type ACL_TYPE_EXTENDED. + Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial. */ +extern int acl_extended_nontrivial (acl_t); +# else +/* ACL is an ACL, from a file, stored as type ACL_TYPE_ACCESS. + Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. + Return -1 and set errno upon failure to determine it. */ +extern int acl_access_nontrivial (acl_t); +# endif + +# elif HAVE_ACL && defined GETACL /* Solaris, Cygwin, not HP-UX */ + +/* Set to 1 if a file's mode is implicit by the ACL. + Set to 0 if a file's mode is stored independently from the ACL. */ +# if defined __CYGWIN__ /* Cygwin */ +# define MODE_INSIDE_ACL 0 +# else /* Solaris */ +# define MODE_INSIDE_ACL 1 +# endif + +# if !defined ACL_NO_TRIVIAL /* Solaris <= 10, Cygwin */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +extern int acl_nontrivial (int count, aclent_t *entries); + +# ifdef ACE_GETACL /* Solaris 10 */ + +/* Test an ACL retrieved with ACE_GETACL. + Return 1 if the given ACL, consisting of COUNT entries, is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +extern int acl_ace_nontrivial (int count, ace_t *entries); + +/* Definitions for when the built executable is executed on Solaris 10 + (newer version) or Solaris 11. */ +/* For a_type. */ +# define ACE_ACCESS_ALLOWED_ACE_TYPE 0 /* replaces ALLOW */ +# define ACE_ACCESS_DENIED_ACE_TYPE 1 /* replaces DENY */ +/* For a_flags. */ +# define NEW_ACE_OWNER 0x1000 +# define NEW_ACE_GROUP 0x2000 +# define NEW_ACE_IDENTIFIER_GROUP 0x0040 +# define ACE_EVERYONE 0x4000 +/* For a_access_mask. */ +# define NEW_ACE_READ_DATA 0x001 /* corresponds to 'r' */ +# define NEW_ACE_WRITE_DATA 0x002 /* corresponds to 'w' */ +# define NEW_ACE_EXECUTE 0x004 /* corresponds to 'x' */ + +# endif + +# endif + +# elif HAVE_GETACL /* HP-UX */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +extern int acl_nontrivial (int count, struct acl_entry *entries, struct stat *sb); + +# elif HAVE_ACLX_GET && 0 /* AIX */ + +/* TODO */ + +# elif HAVE_STATACL /* older AIX */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +extern int acl_nontrivial (struct acl *a); + +# endif -#define ACL_NOT_WELL_SUPPORTED(Err) \ - ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY) - -/* Define a replacement for acl_entries if needed. */ -#if USE_ACL && HAVE_ACL_GET_FILE && HAVE_ACL_FREE && !HAVE_ACL_ENTRIES -# define acl_entries rpl_acl_entries -int acl_entries (acl_t); #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/addext.c gettext-0.18.1.1/gettext-tools/gnulib-lib/addext.c --- gettext-0.17/gettext-tools/gnulib-lib/addext.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/addext.c 2010-06-06 12:49:58.000000000 +0000 @@ -75,13 +75,13 @@ /* Live within DOS's 8.3 limit. */ char *dot = strchr (s, '.'); if (dot) - { - slen -= dot + 1 - s; - s = dot + 1; - slen_max = 3; - } + { + slen -= dot + 1 - s; + s = dot + 1; + slen_max = 3; + } else - slen_max = 8; + slen_max = 8; extlen = 9; /* Don't use EXT. */ } @@ -90,7 +90,7 @@ else { if (slen_max <= slen) - slen = slen_max - 1; + slen = slen_max - 1; s[slen] = e; s[slen + 1] = 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/alignof.h gettext-0.18.1.1/gettext-tools/gnulib-lib/alignof.h --- gettext-0.17/gettext-tools/gnulib-lib/alignof.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/alignof.h 2010-05-24 09:42:35.000000000 +0000 @@ -0,0 +1,53 @@ +/* Determine alignment of types. + Copyright (C) 2003-2004, 2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _ALIGNOF_H +#define _ALIGNOF_H + +#include + +/* Determine the alignment of a structure slot (field) of a given type, + at compile time. Note that the result depends on the ABI. + Note: The result cannot be used as a value for an 'enum' constant, + due to bugs in HP-UX 10.20 cc and AIX 3.2.5 xlc. */ +#if defined __cplusplus + template struct alignof_helper { char __slot1; type __slot2; }; +# define alignof_slot(type) offsetof (alignof_helper, __slot2) +#else +# define alignof_slot(type) offsetof (struct { char __slot1; type __slot2; }, __slot2) +#endif + +/* Determine the good alignment of a object of the given type at compile time. + Note that this is not necessarily the same as alignof_slot(type). + For example, with GNU C on x86 platforms: alignof_type(double) = 8, but + - when -malign-double is not specified: alignof_slot(double) = 4, + - when -malign-double is specified: alignof_slot(double) = 8. + Note: The result cannot be used as a value for an 'enum' constant, + due to bugs in HP-UX 10.20 cc and AIX 3.2.5 xlc. */ +#if defined __GNUC__ +# define alignof_type __alignof__ +#else +# define alignof_type alignof_slot +#endif + +/* alignof is an alias for alignof_slot semantics, since that's what most + callers need. + Note: The result cannot be used as a value for an 'enum' constant, + due to bugs in HP-UX 10.20 cc and AIX 3.2.5 xlc. */ +#define alignof alignof_slot + +#endif /* _ALIGNOF_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/areadlink.c gettext-0.18.1.1/gettext-tools/gnulib-lib/areadlink.c --- gettext-0.17/gettext-tools/gnulib-lib/areadlink.c 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/areadlink.c 2010-05-24 09:42:35.000000000 +0000 @@ -1,7 +1,7 @@ /* areadlink.c -- readlink wrapper to return the link name in malloc'd storage Unlike xreadlink and xreadlink_with_size, don't ever call exit. - Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,20 +24,23 @@ /* Specification. */ #include "areadlink.h" -#include #include #include -#include +#include #include +#include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif +/* The initial buffer size for the link value. A power of 2 + detects arithmetic overflow earlier, but is not required. */ +enum { + INITIAL_BUF_SIZE = 1024 +}; + /* Call readlink to get the symbolic link value of FILENAME. Return a pointer to that NUL-terminated string in malloc'd storage. If readlink fails, return NULL and set errno. @@ -47,17 +50,13 @@ char * areadlink (char const *filename) { - /* The initial buffer size for the link value. A power of 2 - detects arithmetic overflow earlier, but is not required. */ -#define INITIAL_BUF_SIZE 1024 - /* Allocate the initial buffer on the stack. This way, in the common case of a symlink of small size, we get away with a single small malloc() instead of a big malloc() followed by a shrinking realloc(). */ char initial_buf[INITIAL_BUF_SIZE]; char *buffer = initial_buf; - size_t buf_size = sizeof (initial_buf); + size_t buf_size = sizeof initial_buf; while (1) { @@ -65,56 +64,56 @@ ssize_t link_length = readlink (filename, buffer, buf_size); /* On AIX 5L v5.3 and HP-UX 11i v2 04/09, readlink returns -1 - with errno == ERANGE if the buffer is too small. */ + with errno == ERANGE if the buffer is too small. */ if (link_length < 0 && errno != ERANGE) - { - if (buffer != initial_buf) - { - int saved_errno = errno; - free (buffer); - errno = saved_errno; - } - return NULL; - } + { + if (buffer != initial_buf) + { + int saved_errno = errno; + free (buffer); + errno = saved_errno; + } + return NULL; + } if ((size_t) link_length < buf_size) - { - buffer[link_length++] = '\0'; + { + buffer[link_length++] = '\0'; - /* Return it in a chunk of memory as small as possible. */ - if (buffer == initial_buf) - { - buffer = (char *) malloc (link_length); - if (buffer == NULL) - /* errno is ENOMEM. */ - return NULL; - memcpy (buffer, initial_buf, link_length); - } - else - { - /* Shrink buffer before returning it. */ - if ((size_t) link_length < buf_size) - { - char *smaller_buffer = (char *) realloc (buffer, link_length); - - if (smaller_buffer != NULL) - buffer = smaller_buffer; - } - } - return buffer; - } + /* Return it in a chunk of memory as small as possible. */ + if (buffer == initial_buf) + { + buffer = (char *) malloc (link_length); + if (buffer == NULL) + /* errno is ENOMEM. */ + return NULL; + memcpy (buffer, initial_buf, link_length); + } + else + { + /* Shrink buffer before returning it. */ + if ((size_t) link_length < buf_size) + { + char *smaller_buffer = (char *) realloc (buffer, link_length); + + if (smaller_buffer != NULL) + buffer = smaller_buffer; + } + } + return buffer; + } if (buffer != initial_buf) - free (buffer); + free (buffer); buf_size *= 2; if (SSIZE_MAX < buf_size || (SIZE_MAX / 2 < SSIZE_MAX && buf_size == 0)) - { - errno = ENOMEM; - return NULL; - } + { + errno = ENOMEM; + return NULL; + } buffer = (char *) malloc (buf_size); if (buffer == NULL) - /* errno is ENOMEM. */ - return NULL; + /* errno is ENOMEM. */ + return NULL; } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/areadlink.h gettext-0.18.1.1/gettext-tools/gnulib-lib/areadlink.h --- gettext-0.17/gettext-tools/gnulib-lib/areadlink.h 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/areadlink.h 2010-05-24 09:42:35.000000000 +0000 @@ -1,6 +1,7 @@ /* Read symbolic links without size limitation. - Copyright (C) 2001, 2003, 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2004, 2007, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,3 +22,12 @@ extern char *areadlink (char const *filename); extern char *areadlink_with_size (char const *filename, size_t size_hint); + +#if GNULIB_AREADLINKAT +extern char *areadlinkat (int fd, char const *filename); +#endif + +#if GNULIB_AREADLINKAT_WITH_SIZE +extern char *areadlinkat_with_size (int fd, char const *filename, + size_t size_hint); +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/argmatch.c gettext-0.18.1.1/gettext-tools/gnulib-lib/argmatch.c --- gettext-0.17/gettext-tools/gnulib-lib/argmatch.c 2007-10-07 20:29:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/argmatch.c 2010-05-24 09:42:35.000000000 +0000 @@ -1,7 +1,7 @@ /* argmatch.c -- find a match for a string in an array - Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007 - Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, + 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -81,12 +81,12 @@ ptrdiff_t argmatch (const char *arg, const char *const *arglist, - const char *vallist, size_t valsize) + const char *vallist, size_t valsize) { - size_t i; /* Temporary index in ARGLIST. */ - size_t arglen; /* Length of ARG. */ - ptrdiff_t matchind = -1; /* Index of first nonexact match. */ - bool ambiguous = false; /* If true, multiple nonexact match(es). */ + size_t i; /* Temporary index in ARGLIST. */ + size_t arglen; /* Length of ARG. */ + ptrdiff_t matchind = -1; /* Index of first nonexact match. */ + bool ambiguous = false; /* If true, multiple nonexact match(es). */ arglen = strlen (arg); @@ -94,26 +94,26 @@ for (i = 0; arglist[i]; i++) { if (!strncmp (arglist[i], arg, arglen)) - { - if (strlen (arglist[i]) == arglen) - /* Exact match found. */ - return i; - else if (matchind == -1) - /* First nonexact match found. */ - matchind = i; - else - { - /* Second nonexact match found. */ - if (vallist == NULL - || memcmp (vallist + valsize * matchind, - vallist + valsize * i, valsize)) - { - /* There is a real ambiguity, or we could not - disambiguate. */ - ambiguous = true; - } - } - } + { + if (strlen (arglist[i]) == arglen) + /* Exact match found. */ + return i; + else if (matchind == -1) + /* First nonexact match found. */ + matchind = i; + else + { + /* Second nonexact match found. */ + if (vallist == NULL + || memcmp (vallist + valsize * matchind, + vallist + valsize * i, valsize)) + { + /* There is a real ambiguity, or we could not + disambiguate. */ + ambiguous = true; + } + } + } } if (ambiguous) return -2; @@ -130,11 +130,11 @@ argmatch_invalid (const char *context, const char *value, ptrdiff_t problem) { char const *format = (problem == -1 - ? _("invalid argument %s for %s") - : _("ambiguous argument %s for %s")); + ? _("invalid argument %s for %s") + : _("ambiguous argument %s for %s")); error (0, 0, format, quotearg_n_style (0, ARGMATCH_QUOTING_STYLE, value), - quote_n (1, context)); + quote_n (1, context)); } /* List the valid arguments for argmatch. @@ -143,7 +143,7 @@ VALSIZE is the size of the elements of VALLIST */ void argmatch_valid (const char *const *arglist, - const char *vallist, size_t valsize) + const char *vallist, size_t valsize) { size_t i; const char *last_val = NULL; @@ -153,14 +153,14 @@ fprintf (stderr, _("Valid arguments are:")); for (i = 0; arglist[i]; i++) if ((i == 0) - || memcmp (last_val, vallist + valsize * i, valsize)) + || memcmp (last_val, vallist + valsize * i, valsize)) { - fprintf (stderr, "\n - `%s'", arglist[i]); - last_val = vallist + valsize * i; + fprintf (stderr, "\n - `%s'", arglist[i]); + last_val = vallist + valsize * i; } else { - fprintf (stderr, ", `%s'", arglist[i]); + fprintf (stderr, ", `%s'", arglist[i]); } putc ('\n', stderr); } @@ -173,9 +173,9 @@ ptrdiff_t __xargmatch_internal (const char *context, - const char *arg, const char *const *arglist, - const char *vallist, size_t valsize, - argmatch_exit_fn exit_fn) + const char *arg, const char *const *arglist, + const char *vallist, size_t valsize, + argmatch_exit_fn exit_fn) { ptrdiff_t res = argmatch (arg, arglist, vallist, valsize); if (res >= 0) @@ -194,8 +194,8 @@ return the first corresponding argument in ARGLIST */ const char * argmatch_to_argument (const char *value, - const char *const *arglist, - const char *vallist, size_t valsize) + const char *const *arglist, + const char *vallist, size_t valsize) { size_t i; @@ -263,14 +263,14 @@ if ((cp = getenv ("VERSION_CONTROL"))) backup_type = XARGMATCH ("$VERSION_CONTROL", cp, - backup_args, backup_vals); + backup_args, backup_vals); if (argc == 2) backup_type = XARGMATCH (program_name, argv[1], - backup_args, backup_vals); + backup_args, backup_vals); printf ("The version control is `%s'\n", - ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals)); + ARGMATCH_TO_ARGUMENT (backup_type, backup_args, backup_vals)); return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/argmatch.h gettext-0.18.1.1/gettext-tools/gnulib-lib/argmatch.h --- gettext-0.17/gettext-tools/gnulib-lib/argmatch.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/argmatch.h 2010-05-24 09:42:35.000000000 +0000 @@ -1,7 +1,7 @@ /* argmatch.h -- definitions and prototypes for argmatch.c - Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004, 2005, 2009, 2010 Free + Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,7 +40,7 @@ to the same values in VALLIST). */ ptrdiff_t argmatch (char const *arg, char const *const *arglist, - char const *vallist, size_t valsize); + char const *vallist, size_t valsize); # define ARGMATCH(Arg, Arglist, Vallist) \ argmatch (Arg, Arglist, (char const *) (Vallist), sizeof *(Vallist)) @@ -54,7 +54,7 @@ /* Report on stderr why argmatch failed. Report correct values. */ void argmatch_invalid (char const *context, char const *value, - ptrdiff_t problem); + ptrdiff_t problem); /* Left for compatibility with the old name invalid_arg */ @@ -66,7 +66,7 @@ /* Report on stderr the list of possible arguments. */ void argmatch_valid (char const *const *arglist, - char const *vallist, size_t valsize); + char const *vallist, size_t valsize); # define ARGMATCH_VALID(Arglist, Vallist) \ argmatch_valid (Arglist, (char const *) (Vallist), sizeof *(Vallist)) @@ -77,26 +77,26 @@ failure, and exits using the function EXIT_FN. */ ptrdiff_t __xargmatch_internal (char const *context, - char const *arg, char const *const *arglist, - char const *vallist, size_t valsize, - argmatch_exit_fn exit_fn); + char const *arg, char const *const *arglist, + char const *vallist, size_t valsize, + argmatch_exit_fn exit_fn); /* Programmer friendly interface to __xargmatch_internal. */ -# define XARGMATCH(Context, Arg, Arglist, Vallist) \ - ((Vallist) [__xargmatch_internal (Context, Arg, Arglist, \ - (char const *) (Vallist), \ - sizeof *(Vallist), \ - argmatch_die)]) +# define XARGMATCH(Context, Arg, Arglist, Vallist) \ + ((Vallist) [__xargmatch_internal (Context, Arg, Arglist, \ + (char const *) (Vallist), \ + sizeof *(Vallist), \ + argmatch_die)]) /* Convert a value into a corresponding argument. */ char const *argmatch_to_argument (char const *value, - char const *const *arglist, - char const *vallist, size_t valsize); + char const *const *arglist, + char const *vallist, size_t valsize); -# define ARGMATCH_TO_ARGUMENT(Value, Arglist, Vallist) \ - argmatch_to_argument (Value, Arglist, \ - (char const *) (Vallist), sizeof *(Vallist)) +# define ARGMATCH_TO_ARGUMENT(Value, Arglist, Vallist) \ + argmatch_to_argument (Value, Arglist, \ + (char const *) (Vallist), sizeof *(Vallist)) #endif /* ARGMATCH_H_ */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/asnprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/asnprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/asnprintf.c 2007-10-26 00:52:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/asnprintf.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,9 +1,9 @@ /* Formatted output to strings. - Copyright (C) 1999, 2002, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/asprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/asprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/asprintf.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/asprintf.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,40 @@ +/* Formatted output to strings. + Copyright (C) 1999, 2002, 2006-2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#ifdef IN_LIBASPRINTF +# include "vasprintf.h" +#else +# include +#endif + +#include + +int +asprintf (char **resultp, const char *format, ...) +{ + va_list args; + int result; + + va_start (args, format); + result = vasprintf (resultp, format, args); + va_end (args); + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/backupfile.c gettext-0.18.1.1/gettext-tools/gnulib-lib/backupfile.c --- gettext-0.17/gettext-tools/gnulib-lib/backupfile.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/backupfile.c 2010-06-06 12:49:58.000000000 +0000 @@ -96,27 +96,27 @@ backup_suffix_size_max = numbered_suffix_size_max; s = (char *) malloc (file_len + backup_suffix_size_max - + numbered_suffix_size_max); + + numbered_suffix_size_max); if (s) { strcpy (s, file); #if HAVE_DIR if (backup_type != simple) - { - int highest_backup; - size_t dir_len = basename (s) - s; - - strcpy (s + dir_len, "."); - highest_backup = max_backup_version (file + dir_len, s); - if (! (backup_type == numbered_existing && highest_backup == 0)) - { - char *numbered_suffix = s + (file_len + backup_suffix_size_max); - sprintf (numbered_suffix, ".~%d~", highest_backup + 1); - suffix = numbered_suffix; - } - strcpy (s, file); - } + { + int highest_backup; + size_t dir_len = basename (s) - s; + + strcpy (s + dir_len, "."); + highest_backup = max_backup_version (file + dir_len, s); + if (! (backup_type == numbered_existing && highest_backup == 0)) + { + char *numbered_suffix = s + (file_len + backup_suffix_size_max); + sprintf (numbered_suffix, ".~%d~", highest_backup + 1); + suffix = numbered_suffix; + } + strcpy (s, file); + } #endif /* HAVE_DIR */ addext (s, suffix, '~'); @@ -150,11 +150,11 @@ while ((dp = readdir (dirp)) != 0) { if (!REAL_DIR_ENTRY (dp) || strlen (dp->d_name) < file_name_length + 4) - continue; + continue; this_version = version_number (file, dp->d_name, file_name_length); if (this_version > highest_version) - highest_version = this_version; + highest_version = this_version; } if (closedir (dirp)) return 0; @@ -177,9 +177,9 @@ && backup[base_length + 1] == '~') { for (p = &backup[base_length + 2]; ISDIGIT (*p); ++p) - version = version * 10 + *p - '0'; + version = version * 10 + *p - '0'; if (p[0] != '~' || p[1]) - version = 0; + version = 0; } return version; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/backupfile.h gettext-0.18.1.1/gettext-tools/gnulib-lib/backupfile.h --- gettext-0.17/gettext-tools/gnulib-lib/backupfile.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/backupfile.h 2010-06-06 12:49:58.000000000 +0000 @@ -39,16 +39,16 @@ numbered }; -# define VALID_BACKUP_TYPE(Type) \ - ((Type) == none \ - || (Type) == simple \ - || (Type) == numbered_existing \ +# define VALID_BACKUP_TYPE(Type) \ + ((Type) == none \ + || (Type) == simple \ + || (Type) == numbered_existing \ || (Type) == numbered) extern DLL_VARIABLE char const *simple_backup_suffix; extern char *find_backup_file_name (char const *file, - enum backup_type backup_type); + enum backup_type backup_type); extern enum backup_type get_version (char const *context, char const *arg); extern enum backup_type xget_version (char const *context, char const *arg); extern void addext (char *filename, char const *ext, char e); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/basename.c gettext-0.18.1.1/gettext-tools/gnulib-lib/basename.c --- gettext-0.17/gettext-tools/gnulib-lib/basename.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/basename.c 2010-06-06 12:49:58.000000000 +0000 @@ -66,9 +66,9 @@ for (p = name; *p; p++) { if (ISSLASH (*p)) - base = p + 1; + base = p + 1; else - all_slashes = 0; + all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/binary-io.h gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h --- gettext-0.17/gettext-tools/gnulib-lib/binary-io.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,6 @@ /* Binary mode I/O. - Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2005, 2008, 2009, 2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,34 +31,36 @@ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif -#ifdef __BEOS__ - /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ +#if defined __BEOS__ || defined __HAIKU__ + /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif + +/* SET_BINARY (fd); + changes the file descriptor fd to perform binary I/O. */ #if O_BINARY -# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__) +# if defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__ +# include /* declares setmode() */ +# else # define setmode _setmode # undef fileno # define fileno _fileno # endif -# if defined __DJGPP__ || defined __CYGWIN__ -# include /* declares setmode() */ -# endif # ifdef __DJGPP__ # include /* declares isatty() */ -# /* Avoid putting stdin/stdout in binary mode if it is connected to the -# console, because that would make it impossible for the user to -# interrupt the program through Ctrl-C or Ctrl-Break. */ -# define SET_BINARY(fd) (!isatty (fd) ? (setmode (fd, O_BINARY), 0) : 0) + /* Avoid putting stdin/stdout in binary mode if it is connected to + the console, because that would make it impossible for the user + to interrupt the program through Ctrl-C or Ctrl-Break. */ +# define SET_BINARY(fd) ((void) (!isatty (fd) ? (setmode (fd, O_BINARY), 0) : 0)) # else -# define SET_BINARY(fd) setmode (fd, O_BINARY) +# define SET_BINARY(fd) ((void) setmode (fd, O_BINARY)) # endif #else /* On reasonable systems, binary I/O is the default. */ # undef O_BINARY # define O_BINARY 0 -# define SET_BINARY(fd) /* nothing */ +# define SET_BINARY(fd) /* do nothing */ ((void) 0) #endif #endif /* _BINARY_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/byteswap.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/byteswap.in.h --- gettext-0.17/gettext-tools/gnulib-lib/byteswap.in.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/byteswap.in.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* byteswap.h - Byte swapping - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. Written by Oskar Liljeblad , 2005. This program is free software: you can redistribute it and/or modify @@ -21,24 +21,24 @@ /* Given an unsigned 16-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_16(x) ((((x) & 0x00FF) << 8) | \ - (((x) & 0xFF00) >> 8)) + (((x) & 0xFF00) >> 8)) /* Given an unsigned 32-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_32(x) ((((x) & 0x000000FF) << 24) | \ - (((x) & 0x0000FF00) << 8) | \ - (((x) & 0x00FF0000) >> 8) | \ - (((x) & 0xFF000000) >> 24)) + (((x) & 0x0000FF00) << 8) | \ + (((x) & 0x00FF0000) >> 8) | \ + (((x) & 0xFF000000) >> 24)) /* Given an unsigned 64-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_64(x) ((((x) & 0x00000000000000FFULL) << 56) | \ - (((x) & 0x000000000000FF00ULL) << 40) | \ - (((x) & 0x0000000000FF0000ULL) << 24) | \ - (((x) & 0x00000000FF000000ULL) << 8) | \ - (((x) & 0x000000FF00000000ULL) >> 8) | \ - (((x) & 0x0000FF0000000000ULL) >> 24) | \ - (((x) & 0x00FF000000000000ULL) >> 40) | \ - (((x) & 0xFF00000000000000ULL) >> 56)) + (((x) & 0x000000000000FF00ULL) << 40) | \ + (((x) & 0x0000000000FF0000ULL) << 24) | \ + (((x) & 0x00000000FF000000ULL) << 8) | \ + (((x) & 0x000000FF00000000ULL) >> 8) | \ + (((x) & 0x0000FF0000000000ULL) >> 24) | \ + (((x) & 0x00FF000000000000ULL) >> 40) | \ + (((x) & 0xFF00000000000000ULL) >> 56)) #endif /* _GL_BYTESWAP_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/canonicalize.h gettext-0.18.1.1/gettext-tools/gnulib-lib/canonicalize.h --- gettext-0.17/gettext-tools/gnulib-lib/canonicalize.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/canonicalize.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,52 +0,0 @@ -/* Return the canonical absolute name of a given file. - Copyright (C) 1996-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef CANONICALIZE_H_ -# define CANONICALIZE_H_ - -# if GNULIB_CANONICALIZE -enum canonicalize_mode_t - { - /* All components must exist. */ - CAN_EXISTING = 0, - - /* All components excluding last one must exist. */ - CAN_ALL_BUT_LAST = 1, - - /* No requirements on components existence. */ - CAN_MISSING = 2 - }; -typedef enum canonicalize_mode_t canonicalize_mode_t; - -/* Return a malloc'd string containing the canonical absolute name of - the named file. This acts like canonicalize_file_name, except that - whether components must exist depends on the canonicalize_mode_t - argument. */ -char *canonicalize_filename_mode (const char *, canonicalize_mode_t); -# endif - -# if HAVE_DECL_CANONICALIZE_FILE_NAME -# include -# else -/* Return a malloc'd string containing the canonical absolute name of - the named file. If any file name component does not exist or is a - symlink to a nonexistent file, return NULL. A canonical name does - not contain any `.', `..' components nor any repeated file name - separators ('/') or symlinks. */ -char *canonicalize_file_name (const char *); -# endif - -#endif /* !CANONICALIZE_H_ */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/canonicalize-lgpl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/canonicalize-lgpl.c --- gettext-0.17/gettext-tools/gnulib-lib/canonicalize-lgpl.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/canonicalize-lgpl.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Return the canonical absolute name of a given file. - Copyright (C) 1996-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 1996-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -15,55 +15,39 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include - -/* Avoid a clash of our rpl_realpath() function with the prototype in - on Solaris 2.5.1. */ -#undef realpath +#ifndef _LIBC +# include +#endif -#if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC +#if !HAVE_CANONICALIZE_FILE_NAME || !FUNC_REALPATH_WORKS || defined _LIBC -#include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the name == NULL test below. */ +#define _GL_ARG_NONNULL(params) /* Specification. */ -#include "canonicalize.h" - -#include #include -#include - -#if HAVE_UNISTD_H || defined _LIBC -# include -#endif +#include +#include +#include #include - #if HAVE_SYS_PARAM_H || defined _LIBC # include #endif -#ifndef MAXSYMLINKS -# define MAXSYMLINKS 20 -#endif - #include - #include -#ifndef _LIBC -# define __set_errno(e) errno = (e) -# ifndef ENAMETOOLONG -# define ENAMETOOLONG EINVAL -# endif -#endif +#include #ifdef _LIBC # include #else # define SHLIB_COMPAT(lib, introduced, obsoleted) 0 -# define versioned_symbol(lib, local, symbol, version) +# define versioned_symbol(lib, local, symbol, version) extern int dummy # define compat_symbol(lib, local, symbol, version) # define weak_alias(local, symbol) # define __canonicalize_file_name canonicalize_file_name -# define __realpath rpl_realpath +# define __realpath realpath # include "pathmax.h" # include "malloca.h" # if HAVE_GETCWD @@ -77,12 +61,21 @@ # define __getcwd(buf, max) getwd (buf) # endif # define __readlink readlink - /* On systems without symbolic links, call stat() instead of lstat(). */ -# if !defined S_ISNLK && !HAVE_READLINK -# define lstat stat +# define __set_errno(e) errno = (e) +# ifndef MAXSYMLINKS +# ifdef SYMLOOP_MAX +# define MAXSYMLINKS SYMLOOP_MAX +# else +# define MAXSYMLINKS 20 +# endif # endif #endif +#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT +# define DOUBLE_SLASH_IS_DISTINCT_ROOT 0 +#endif + +#if !FUNC_REALPATH_WORKS || defined _LIBC /* Return the canonical absolute name of file NAME. A canonical name does not contain any `.', `..' components nor any repeated path separators ('/') or symlinks. All path components must exist. If @@ -100,16 +93,14 @@ char *rpath, *dest, *extra_buf = NULL; const char *start, *end, *rpath_limit; long int path_max; -#if HAVE_READLINK int num_links = 0; -#endif if (name == NULL) { /* As per Single Unix Specification V2 we must return an error if - either parameter is a null pointer. We extend this to allow - the RESOLVED parameter to be NULL in case the we are expected to - allocate the room for the return value. */ + either parameter is a null pointer. We extend this to allow + the RESOLVED parameter to be NULL in case the we are expected to + allocate the room for the return value. */ __set_errno (EINVAL); return NULL; } @@ -117,7 +108,7 @@ if (name[0] == '\0') { /* As per Single Unix Specification V2 we must return an error if - the name argument points to an empty string. */ + the name argument points to an empty string. */ __set_errno (ENOENT); return NULL; } @@ -134,12 +125,12 @@ { rpath = malloc (path_max); if (rpath == NULL) - { - /* It's easier to set errno to ENOMEM than to rely on the - 'malloc-posix' gnulib module. */ - errno = ENOMEM; - return NULL; - } + { + /* It's easier to set errno to ENOMEM than to rely on the + 'malloc-posix' gnulib module. */ + errno = ENOMEM; + return NULL; + } } else rpath = resolved; @@ -148,16 +139,18 @@ if (name[0] != '/') { if (!__getcwd (rpath, path_max)) - { - rpath[0] = '\0'; - goto error; - } + { + rpath[0] = '\0'; + goto error; + } dest = strchr (rpath, '\0'); } else { rpath[0] = '/'; dest = rpath + 1; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/') + *dest++ = '/'; } for (start = end = name; *start; start = end) @@ -167,171 +160,187 @@ #else struct stat st; #endif + int n; /* Skip sequence of multiple path-separators. */ while (*start == '/') - ++start; + ++start; /* Find end of path component. */ for (end = start; *end && *end != '/'; ++end) - /* Nothing. */; + /* Nothing. */; if (end - start == 0) - break; + break; else if (end - start == 1 && start[0] == '.') - /* nothing */; + /* nothing */; else if (end - start == 2 && start[0] == '.' && start[1] == '.') - { - /* Back up to previous component, ignore if at root already. */ - if (dest > rpath + 1) - while ((--dest)[-1] != '/'); - } + { + /* Back up to previous component, ignore if at root already. */ + if (dest > rpath + 1) + while ((--dest)[-1] != '/'); + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 + && *dest == '/') + dest++; + } else - { - size_t new_size; + { + size_t new_size; - if (dest[-1] != '/') - *dest++ = '/'; + if (dest[-1] != '/') + *dest++ = '/'; - if (dest + (end - start) >= rpath_limit) - { - ptrdiff_t dest_offset = dest - rpath; - char *new_rpath; - - if (resolved) - { - __set_errno (ENAMETOOLONG); - if (dest > rpath + 1) - dest--; - *dest = '\0'; - goto error; - } - new_size = rpath_limit - rpath; - if (end - start + 1 > path_max) - new_size += end - start + 1; - else - new_size += path_max; - new_rpath = (char *) realloc (rpath, new_size); - if (new_rpath == NULL) - { - /* It's easier to set errno to ENOMEM than to rely on the - 'realloc-posix' gnulib module. */ - errno = ENOMEM; - goto error; - } - rpath = new_rpath; - rpath_limit = rpath + new_size; + if (dest + (end - start) >= rpath_limit) + { + ptrdiff_t dest_offset = dest - rpath; + char *new_rpath; + + if (resolved) + { + __set_errno (ENAMETOOLONG); + if (dest > rpath + 1) + dest--; + *dest = '\0'; + goto error; + } + new_size = rpath_limit - rpath; + if (end - start + 1 > path_max) + new_size += end - start + 1; + else + new_size += path_max; + new_rpath = (char *) realloc (rpath, new_size); + if (new_rpath == NULL) + { + /* It's easier to set errno to ENOMEM than to rely on the + 'realloc-posix' gnulib module. */ + errno = ENOMEM; + goto error; + } + rpath = new_rpath; + rpath_limit = rpath + new_size; - dest = rpath + dest_offset; - } + dest = rpath + dest_offset; + } #ifdef _LIBC - dest = __mempcpy (dest, start, end - start); + dest = __mempcpy (dest, start, end - start); #else - memcpy (dest, start, end - start); - dest += end - start; + memcpy (dest, start, end - start); + dest += end - start; #endif - *dest = '\0'; + *dest = '\0'; #ifdef _LIBC - if (__lxstat64 (_STAT_VER, rpath, &st) < 0) + if (__lxstat64 (_STAT_VER, rpath, &st) < 0) #else - if (lstat (rpath, &st) < 0) + if (lstat (rpath, &st) < 0) #endif - goto error; + goto error; -#if HAVE_READLINK - if (S_ISLNK (st.st_mode)) - { - char *buf; - size_t len; - int n; - - if (++num_links > MAXSYMLINKS) - { - __set_errno (ELOOP); - goto error; - } - - buf = malloca (path_max); - if (!buf) - { - errno = ENOMEM; - goto error; - } - - n = __readlink (rpath, buf, path_max); - if (n < 0) - { - int saved_errno = errno; - freea (buf); - errno = saved_errno; - goto error; - } - buf[n] = '\0'; - - if (!extra_buf) - { - extra_buf = malloca (path_max); - if (!extra_buf) - { - freea (buf); - errno = ENOMEM; - goto error; - } - } - - len = strlen (end); - if ((long int) (n + len) >= path_max) - { - freea (buf); - __set_errno (ENAMETOOLONG); - goto error; - } - - /* Careful here, end may be a pointer into extra_buf... */ - memmove (&extra_buf[n], end, len + 1); - name = end = memcpy (extra_buf, buf, n); - - if (buf[0] == '/') - dest = rpath + 1; /* It's an absolute symlink */ - else - /* Back up to previous component, ignore if at root already: */ - if (dest > rpath + 1) - while ((--dest)[-1] != '/'); - } -#endif - } + if (S_ISLNK (st.st_mode)) + { + char *buf; + size_t len; + + if (++num_links > MAXSYMLINKS) + { + __set_errno (ELOOP); + goto error; + } + + buf = malloca (path_max); + if (!buf) + { + errno = ENOMEM; + goto error; + } + + n = __readlink (rpath, buf, path_max - 1); + if (n < 0) + { + int saved_errno = errno; + freea (buf); + errno = saved_errno; + goto error; + } + buf[n] = '\0'; + + if (!extra_buf) + { + extra_buf = malloca (path_max); + if (!extra_buf) + { + freea (buf); + errno = ENOMEM; + goto error; + } + } + + len = strlen (end); + if ((long int) (n + len) >= path_max) + { + freea (buf); + __set_errno (ENAMETOOLONG); + goto error; + } + + /* Careful here, end may be a pointer into extra_buf... */ + memmove (&extra_buf[n], end, len + 1); + name = end = memcpy (extra_buf, buf, n); + + if (buf[0] == '/') + { + dest = rpath + 1; /* It's an absolute symlink */ + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/') + *dest++ = '/'; + } + else + { + /* Back up to previous component, ignore if at root + already: */ + if (dest > rpath + 1) + while ((--dest)[-1] != '/'); + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 + && *dest == '/') + dest++; + } + } + else if (!S_ISDIR (st.st_mode) && *end != '\0') + { + __set_errno (ENOTDIR); + goto error; + } + } } if (dest > rpath + 1 && dest[-1] == '/') --dest; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') + dest++; *dest = '\0'; if (extra_buf) freea (extra_buf); - return resolved ? memcpy (resolved, rpath, dest - rpath + 1) : rpath; + return rpath; error: { int saved_errno = errno; if (extra_buf) freea (extra_buf); - if (resolved) - strcpy (resolved, rpath); - else + if (resolved == NULL) free (rpath); errno = saved_errno; } return NULL; } -#ifdef _LIBC versioned_symbol (libc, __realpath, realpath, GLIBC_2_3); -#endif +#endif /* !FUNC_REALPATH_WORKS || defined _LIBC */ #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3) char * +attribute_compat_text_section __old_realpath (const char *name, char *resolved) { if (resolved == NULL) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-ctype.c gettext-0.18.1.1/gettext-tools/gnulib-lib/c-ctype.c --- gettext-0.17/gettext-tools/gnulib-lib/c-ctype.c 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-ctype.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,10 +1,10 @@ /* Character handling in C locale. - Copyright 2000-2003, 2006 Free Software Foundation, Inc. + Copyright 2000-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-ctype.h gettext-0.18.1.1/gettext-tools/gnulib-lib/c-ctype.h --- gettext-0.17/gettext-tools/gnulib-lib/c-ctype.h 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-ctype.h 2010-05-24 09:42:36.000000000 +0000 @@ -5,11 +5,11 @@ functions' behaviour depends on the current locale set via setlocale. - Copyright (C) 2000-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -103,6 +103,21 @@ /* Function declarations. */ +/* Unlike the functions in , which require an argument in the range + of the 'unsigned char' type, the functions here operate on values that are + in the 'unsigned char' range or in the 'char' range. In other words, + when you have a 'char' value, you need to cast it before using it as + argument to a function: + + const char *s = ...; + if (isalpha ((unsigned char) *s)) ... + + but you don't need to cast it for the functions defined in this file: + + const char *s = ...; + if (c_isalpha (*s)) ... + */ + extern bool c_isascii (int c); /* not locale dependent */ extern bool c_isalnum (int c); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/classpath.c gettext-0.18.1.1/gettext-tools/gnulib-lib/classpath.c --- gettext-0.17/gettext-tools/gnulib-lib/classpath.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/classpath.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Java CLASSPATH handling. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -46,7 +46,7 @@ CLASSPATH is ignored. */ char * new_classpath (const char * const *classpaths, unsigned int classpaths_count, - bool use_minimal_classpath) + bool use_minimal_classpath) { const char *old_classpath; unsigned int length; @@ -81,7 +81,7 @@ else { if (classpaths_count > 0) - p--; + p--; } *p = '\0'; @@ -91,7 +91,7 @@ /* Set CLASSPATH and returns a safe copy of its old value. */ char * set_classpath (const char * const *classpaths, unsigned int classpaths_count, - bool use_minimal_classpath, bool verbose) + bool use_minimal_classpath, bool verbose) { const char *old_CLASSPATH = getenv (CLASSPATHVAR); char *result = (old_CLASSPATH != NULL ? xstrdup (old_CLASSPATH) : NULL); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/classpath.h gettext-0.18.1.1/gettext-tools/gnulib-lib/classpath.h --- gettext-0.17/gettext-tools/gnulib-lib/classpath.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/classpath.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Java CLASSPATH handling. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -21,13 +21,13 @@ the current CLASSPATH value. If use_minimal_classpath, the current CLASSPATH is ignored. */ extern char * new_classpath (const char * const *classpaths, - unsigned int classpaths_count, - bool use_minimal_classpath); + unsigned int classpaths_count, + bool use_minimal_classpath); /* Set CLASSPATH and returns a safe copy of its old value. */ extern char * set_classpath (const char * const *classpaths, - unsigned int classpaths_count, - bool use_minimal_classpath, bool verbose); + unsigned int classpaths_count, + bool use_minimal_classpath, bool verbose); /* Restore CLASSPATH to its previous value. */ extern void reset_classpath (char *old_classpath); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/clean-temp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/clean-temp.c --- gettext-0.17/gettext-tools/gnulib-lib/clean-temp.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/clean-temp.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,6 @@ /* Temporary directories and temporary files with automatic cleanup. - Copyright (C) 2001, 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2006-2007, 2009-2010 Free Software Foundation, + Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -40,6 +41,7 @@ #include "tmpdir.h" #include "xalloc.h" #include "xmalloca.h" +#include "gl_xlist.h" #include "gl_linkedhash_list.h" #include "gettext.h" #if GNULIB_FWRITEERROR @@ -199,16 +201,16 @@ if (fds != NULL) { - gl_list_iterator_t iter; - const void *element; + gl_list_iterator_t iter; + const void *element; - iter = gl_list_iterator (fds); - while (gl_list_iterator_next (&iter, &element, NULL)) - { - int fd = (int) (uintptr_t) element; - close (fd); - } - gl_list_iterator_free (&iter); + iter = gl_list_iterator (fds); + while (gl_list_iterator_next (&iter, &element, NULL)) + { + int fd = (int) (uintptr_t) element; + close (fd); + } + gl_list_iterator_free (&iter); } } @@ -217,31 +219,31 @@ struct tempdir *dir = cleanup_list.tempdir_list[i]; if (dir != NULL) - { - gl_list_iterator_t iter; - const void *element; - - /* First cleanup the files in the subdirectories. */ - iter = gl_list_iterator (dir->files); - while (gl_list_iterator_next (&iter, &element, NULL)) - { - const char *file = (const char *) element; - unlink (file); - } - gl_list_iterator_free (&iter); - - /* Then cleanup the subdirectories. */ - iter = gl_list_iterator (dir->subdirs); - while (gl_list_iterator_next (&iter, &element, NULL)) - { - const char *subdir = (const char *) element; - rmdir (subdir); - } - gl_list_iterator_free (&iter); - - /* Then cleanup the temporary directory itself. */ - rmdir (dir->dirname); - } + { + gl_list_iterator_t iter; + const void *element; + + /* First cleanup the files in the subdirectories. */ + iter = gl_list_iterator (dir->files); + while (gl_list_iterator_next (&iter, &element, NULL)) + { + const char *file = (const char *) element; + unlink (file); + } + gl_list_iterator_free (&iter); + + /* Then cleanup the subdirectories. */ + iter = gl_list_iterator (dir->subdirs); + while (gl_list_iterator_next (&iter, &element, NULL)) + { + const char *subdir = (const char *) element; + rmdir (subdir); + } + gl_list_iterator_free (&iter); + + /* Then cleanup the temporary directory itself. */ + rmdir (dir->dirname); + } } } @@ -256,7 +258,7 @@ is shown and NULL is returned. */ struct temp_dir * create_temp_dir (const char *prefix, const char *parentdir, - bool cleanup_verbose) + bool cleanup_verbose) { struct tempdir * volatile *tmpdirp = NULL; struct tempdir *tmpdir; @@ -269,47 +271,47 @@ for (i = 0; i < cleanup_list.tempdir_count; i++) if (cleanup_list.tempdir_list[i] == NULL) { - tmpdirp = &cleanup_list.tempdir_list[i]; - break; + tmpdirp = &cleanup_list.tempdir_list[i]; + break; } if (tmpdirp == NULL) { /* See whether the array needs to be extended. */ if (cleanup_list.tempdir_count == cleanup_list.tempdir_allocated) - { - /* Note that we cannot use xrealloc(), because then the cleanup() - function could access an already deallocated array. */ - struct tempdir * volatile *old_array = cleanup_list.tempdir_list; - size_t old_allocated = cleanup_list.tempdir_allocated; - size_t new_allocated = 2 * cleanup_list.tempdir_allocated + 1; - struct tempdir * volatile *new_array = - XNMALLOC (new_allocated, struct tempdir * volatile); - - if (old_allocated == 0) - /* First use of this facility. Register the cleanup handler. */ - at_fatal_signal (&cleanup); - else - { - /* Don't use memcpy() here, because memcpy takes non-volatile - arguments and is therefore not guaranteed to complete all - memory stores before the next statement. */ - size_t k; - - for (k = 0; k < old_allocated; k++) - new_array[k] = old_array[k]; - } - - cleanup_list.tempdir_list = new_array; - cleanup_list.tempdir_allocated = new_allocated; - - /* Now we can free the old array. */ - if (old_array != NULL) - free ((struct tempdir **) old_array); - } + { + /* Note that we cannot use xrealloc(), because then the cleanup() + function could access an already deallocated array. */ + struct tempdir * volatile *old_array = cleanup_list.tempdir_list; + size_t old_allocated = cleanup_list.tempdir_allocated; + size_t new_allocated = 2 * cleanup_list.tempdir_allocated + 1; + struct tempdir * volatile *new_array = + XNMALLOC (new_allocated, struct tempdir * volatile); + + if (old_allocated == 0) + /* First use of this facility. Register the cleanup handler. */ + at_fatal_signal (&cleanup); + else + { + /* Don't use memcpy() here, because memcpy takes non-volatile + arguments and is therefore not guaranteed to complete all + memory stores before the next statement. */ + size_t k; + + for (k = 0; k < old_allocated; k++) + new_array[k] = old_array[k]; + } + + cleanup_list.tempdir_list = new_array; + cleanup_list.tempdir_allocated = new_allocated; + + /* Now we can free the old array. */ + if (old_array != NULL) + free ((struct tempdir **) old_array); + } tmpdirp = &cleanup_list.tempdir_list[cleanup_list.tempdir_count]; /* Initialize *tmpdirp before incrementing tempdir_count, so that - cleanup() will skip this entry before it is fully initialized. */ + cleanup() will skip this entry before it is fully initialized. */ *tmpdirp = NULL; cleanup_list.tempdir_count++; } @@ -319,18 +321,18 @@ tmpdir->dirname = NULL; tmpdir->cleanup_verbose = cleanup_verbose; tmpdir->subdirs = gl_list_create_empty (GL_LINKEDHASH_LIST, - string_equals, string_hash, NULL, - false); + string_equals, string_hash, NULL, + false); tmpdir->files = gl_list_create_empty (GL_LINKEDHASH_LIST, - string_equals, string_hash, NULL, - false); + string_equals, string_hash, NULL, + false); /* Create the temporary directory. */ xtemplate = (char *) xmalloca (PATH_MAX); if (path_search (xtemplate, PATH_MAX, parentdir, prefix, parentdir == NULL)) { error (0, errno, - _("cannot find a temporary directory, try setting $TMPDIR")); + _("cannot find a temporary directory, try setting $TMPDIR")); goto quit; } block_fatal_signals (); @@ -344,8 +346,8 @@ if (tmpdirname == NULL) { error (0, errno, - _("cannot create a temporary directory using template \"%s\""), - xtemplate); + _("cannot create a temporary directory using template \"%s\""), + xtemplate); goto quit; } /* Replace tmpdir->dirname with a copy that has indefinite extent. @@ -366,7 +368,7 @@ Should be called before the file ABSOLUTE_FILE_NAME is created. */ void register_temp_file (struct temp_dir *dir, - const char *absolute_file_name) + const char *absolute_file_name) { struct tempdir *tmpdir = (struct tempdir *)dir; @@ -380,7 +382,7 @@ Should be called when the file ABSOLUTE_FILE_NAME could not be created. */ void unregister_temp_file (struct temp_dir *dir, - const char *absolute_file_name) + const char *absolute_file_name) { struct tempdir *tmpdir = (struct tempdir *)dir; gl_list_t list = tmpdir->files; @@ -401,7 +403,7 @@ Should be called before the subdirectory ABSOLUTE_DIR_NAME is created. */ void register_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name) + const char *absolute_dir_name) { struct tempdir *tmpdir = (struct tempdir *)dir; @@ -416,7 +418,7 @@ created. */ void unregister_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name) + const char *absolute_dir_name) { struct tempdir *tmpdir = (struct tempdir *)dir; gl_list_t list = tmpdir->subdirs; @@ -455,7 +457,7 @@ && errno != ENOENT) { error (0, errno, - _("cannot remove temporary directory %s"), absolute_dir_name); + _("cannot remove temporary directory %s"), absolute_dir_name); return -1; } return 0; @@ -465,7 +467,7 @@ Return 0 upon success, or -1 if there was some problem. */ int cleanup_temp_file (struct temp_dir *dir, - const char *absolute_file_name) + const char *absolute_file_name) { int err; @@ -479,7 +481,7 @@ Return 0 upon success, or -1 if there was some problem. */ int cleanup_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name) + const char *absolute_dir_name) { int err; @@ -548,19 +550,19 @@ for (i = 0; i < cleanup_list.tempdir_count; i++) if (cleanup_list.tempdir_list[i] == tmpdir) { - /* Remove cleanup_list.tempdir_list[i]. */ - if (i + 1 == cleanup_list.tempdir_count) - { - while (i > 0 && cleanup_list.tempdir_list[i - 1] == NULL) - i--; - cleanup_list.tempdir_count = i; - } - else - cleanup_list.tempdir_list[i] = NULL; - /* Now only we can free the tmpdir->dirname and tmpdir itself. */ - free (tmpdir->dirname); - free (tmpdir); - return err; + /* Remove cleanup_list.tempdir_list[i]. */ + if (i + 1 == cleanup_list.tempdir_count) + { + while (i > 0 && cleanup_list.tempdir_list[i - 1] == NULL) + i--; + cleanup_list.tempdir_count = i; + } + else + cleanup_list.tempdir_list[i] = NULL; + /* Now only we can free the tmpdir->dirname and tmpdir itself. */ + free (tmpdir->dirname); + free (tmpdir); + return err; } /* The user passed an invalid DIR argument. */ @@ -585,9 +587,9 @@ OSVERSIONINFO v; if (GetVersionEx (&v)) - known = (v.dwPlatformId == VER_PLATFORM_WIN32_NT ? 1 : -1); + known = (v.dwPlatformId == VER_PLATFORM_WIN32_NT ? 1 : -1); else - known = -1; + known = -1; } return (known > 0); } @@ -601,7 +603,7 @@ { if (descriptors == NULL) descriptors = gl_list_create_empty (GL_LINKEDHASH_LIST, NULL, NULL, NULL, - false); + false); gl_list_add_first (descriptors, (void *) (uintptr_t) fd); } @@ -682,11 +684,11 @@ if (fp != NULL) { /* It is sufficient to register fileno (fp) instead of the entire fp, - because at cleanup time there is no need to do an fflush (fp); a - close (fileno (fp)) will be enough. */ + because at cleanup time there is no need to do an fflush (fp); a + close (fileno (fp)) will be enough. */ int fd = fileno (fp); if (!(fd >= 0)) - abort (); + abort (); register_fd (fd); } unblock_fatal_signals (); @@ -702,12 +704,12 @@ if (fd >= 0) { /* No blocking of signals is needed here, since a double close of a - file descriptor is harmless. */ + file descriptor is harmless. */ int result = close (fd); int saved_errno = errno; /* No race condition here: we assume a single-threaded program, hence - fd cannot be re-opened here. */ + fd cannot be re-opened here. */ unregister_fd (fd); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/clean-temp.h gettext-0.18.1.1/gettext-tools/gnulib-lib/clean-temp.h --- gettext-0.17/gettext-tools/gnulib-lib/clean-temp.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/clean-temp.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Temporary directories and temporary files with automatic cleanup. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -60,43 +60,43 @@ Return a fresh 'struct temp_dir' on success. Upon error, an error message is shown and NULL is returned. */ extern struct temp_dir * create_temp_dir (const char *prefix, - const char *parentdir, - bool cleanup_verbose); + const char *parentdir, + bool cleanup_verbose); /* Register the given ABSOLUTE_FILE_NAME as being a file inside DIR, that needs to be removed before DIR can be removed. Should be called before the file ABSOLUTE_FILE_NAME is created. */ extern void register_temp_file (struct temp_dir *dir, - const char *absolute_file_name); + const char *absolute_file_name); /* Unregister the given ABSOLUTE_FILE_NAME as being a file inside DIR, that needs to be removed before DIR can be removed. Should be called when the file ABSOLUTE_FILE_NAME could not be created. */ extern void unregister_temp_file (struct temp_dir *dir, - const char *absolute_file_name); + const char *absolute_file_name); /* Register the given ABSOLUTE_DIR_NAME as being a subdirectory inside DIR, that needs to be removed before DIR can be removed. Should be called before the subdirectory ABSOLUTE_DIR_NAME is created. */ extern void register_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name); + const char *absolute_dir_name); /* Unregister the given ABSOLUTE_DIR_NAME as being a subdirectory inside DIR, that needs to be removed before DIR can be removed. Should be called when the subdirectory ABSOLUTE_DIR_NAME could not be created. */ extern void unregister_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name); + const char *absolute_dir_name); /* Remove the given ABSOLUTE_FILE_NAME and unregister it. Return 0 upon success, or -1 if there was some problem. */ extern int cleanup_temp_file (struct temp_dir *dir, - const char *absolute_file_name); + const char *absolute_file_name); /* Remove the given ABSOLUTE_DIR_NAME and unregister it. Return 0 upon success, or -1 if there was some problem. */ extern int cleanup_temp_subdir (struct temp_dir *dir, - const char *absolute_dir_name); + const char *absolute_dir_name); /* Remove all registered files and subdirectories inside DIR. Return 0 upon success, or -1 if there was some problem. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/cloexec.c gettext-0.18.1.1/gettext-tools/gnulib-lib/cloexec.c --- gettext-0.17/gettext-tools/gnulib-lib/cloexec.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/cloexec.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,83 @@ +/* closexec.c - set or clear the close-on-exec descriptor flag + + Copyright (C) 1991, 2004-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + The code is taken from glibc/manual/llio.texi */ + +#include + +#include "cloexec.h" + +#include +#include +#include + +/* Set the `FD_CLOEXEC' flag of DESC if VALUE is true, + or clear the flag if VALUE is false. + Return 0 on success, or -1 on error with `errno' set. + + Note that on MingW, this function does NOT protect DESC from being + inherited into spawned children. Instead, either use dup_cloexec + followed by closing the original DESC, or use interfaces such as + open or pipe2 that accept flags like O_CLOEXEC to create DESC + non-inheritable in the first place. */ + +int +set_cloexec_flag (int desc, bool value) +{ +#ifdef F_SETFD + + int flags = fcntl (desc, F_GETFD, 0); + + if (0 <= flags) + { + int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); + + if (flags == newflags + || fcntl (desc, F_SETFD, newflags) != -1) + return 0; + } + + return -1; + +#else /* !F_SETFD */ + + /* Use dup2 to reject invalid file descriptors; the cloexec flag + will be unaffected. */ + if (desc < 0) + { + errno = EBADF; + return -1; + } + if (dup2 (desc, desc) < 0) + /* errno is EBADF here. */ + return -1; + + /* There is nothing we can do on this kind of platform. Punt. */ + return 0; +#endif /* !F_SETFD */ +} + + +/* Duplicates a file handle FD, while marking the copy to be closed + prior to exec or spawn. Returns -1 and sets errno if FD could not + be duplicated. */ + +int +dup_cloexec (int fd) +{ + return fcntl (fd, F_DUPFD_CLOEXEC, 0); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/cloexec.h gettext-0.18.1.1/gettext-tools/gnulib-lib/cloexec.h --- gettext-0.17/gettext-tools/gnulib-lib/cloexec.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/cloexec.h 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,38 @@ +/* closexec.c - set or clear the close-on-exec descriptor flag + + Copyright (C) 2004, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +*/ + +#include + +/* Set the `FD_CLOEXEC' flag of DESC if VALUE is true, + or clear the flag if VALUE is false. + Return 0 on success, or -1 on error with `errno' set. + + Note that on MingW, this function does NOT protect DESC from being + inherited into spawned children. Instead, either use dup_cloexec + followed by closing the original DESC, or use interfaces such as + open or pipe2 that accept flags like O_CLOEXEC to create DESC + non-inheritable in the first place. */ + +int set_cloexec_flag (int desc, bool value); + +/* Duplicates a file handle FD, while marking the copy to be closed + prior to exec or spawn. Returns -1 and sets errno if FD could not + be duplicated. */ + +int dup_cloexec (int fd); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/concat-filename.c gettext-0.18.1.1/gettext-tools/gnulib-lib/concat-filename.c --- gettext-0.17/gettext-tools/gnulib-lib/concat-filename.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/concat-filename.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ -/* Construct a full pathname from a directory and a filename. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -19,19 +19,22 @@ #include /* Specification. */ -#include "filename.h" +#include "concat-filename.h" +#include +#include #include -#include "xalloc.h" +#include "filename.h" /* Concatenate a directory filename, a relative filename and an optional suffix. The directory may end with the directory separator. The second argument may not start with the directory separator (it is relative). - Return a freshly allocated filename. */ + Return a freshly allocated filename. Return NULL and set errno + upon memory allocation failure. */ char * concatenated_filename (const char *directory, const char *filename, - const char *suffix) + const char *suffix) { char *result; char *p; @@ -39,27 +42,29 @@ if (strcmp (directory, ".") == 0) { /* No need to prepend the directory. */ - result = XNMALLOC (strlen (filename) - + (suffix != NULL ? strlen (suffix) : 0) - + 1, - char); + result = (char *) malloc (strlen (filename) + + (suffix != NULL ? strlen (suffix) : 0) + + 1); + if (result == NULL) + return NULL; /* errno is set here */ p = result; } else { size_t directory_len = strlen (directory); int need_slash = - (directory_len > FILE_SYSTEM_PREFIX_LEN (directory) - && !ISSLASH (directory[directory_len - 1])); - result = XNMALLOC (directory_len + need_slash - + strlen (filename) - + (suffix != NULL ? strlen (suffix) : 0) - + 1, - char); + (directory_len > FILE_SYSTEM_PREFIX_LEN (directory) + && !ISSLASH (directory[directory_len - 1])); + result = (char *) malloc (directory_len + need_slash + + strlen (filename) + + (suffix != NULL ? strlen (suffix) : 0) + + 1); + if (result == NULL) + return NULL; /* errno is set here */ memcpy (result, directory, directory_len); p = result + directory_len; if (need_slash) - *p++ = '/'; + *p++ = '/'; } p = stpcpy (p, filename); if (suffix != NULL) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/concat-filename.h gettext-0.18.1.1/gettext-tools/gnulib-lib/concat-filename.h --- gettext-0.17/gettext-tools/gnulib-lib/concat-filename.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/concat-filename.h 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,41 @@ +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _CONCAT_FILENAME_H +#define _CONCAT_FILENAME_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Concatenate a directory filename, a relative filename and an optional + suffix. Return a freshly allocated filename. Return NULL and set errno + upon memory allocation failure. */ +extern char *concatenated_filename (const char *directory, + const char *filename, const char *suffix); + +/* Concatenate a directory filename, a relative filename and an optional + suffix. Return a freshly allocated filename. */ +extern char *xconcatenated_filename (const char *directory, + const char *filename, const char *suffix); + + +#ifdef __cplusplus +} +#endif + +#endif /* _CONCAT_FILENAME_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/config.charset gettext-0.18.1.1/gettext-tools/gnulib-lib/config.charset --- gettext-0.17/gettext-tools/gnulib-lib/config.charset 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/config.charset 2010-05-24 10:59:04.000000000 +0000 @@ -1,11 +1,11 @@ #! /bin/sh # Output a system dependent table of character encoding aliases. # -# Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, @@ -30,21 +30,21 @@ # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems -# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin -# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-3 Y glibc solaris -# ISO-8859-4 Y osf solaris freebsd netbsd darwin -# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-6 Y glibc aix hpux solaris -# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin -# ISO-8859-8 Y glibc aix hpux osf solaris -# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin -# ISO-8859-13 glibc netbsd darwin -# ISO-8859-14 glibc -# ISO-8859-15 glibc aix osf solaris freebsd darwin -# KOI8-R Y glibc solaris freebsd netbsd darwin -# KOI8-U Y glibc freebsd netbsd darwin +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-3 Y glibc solaris cygwin +# ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-6 Y glibc aix hpux solaris cygwin +# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin +# ISO-8859-8 Y glibc aix hpux osf solaris cygwin +# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin +# ISO-8859-13 glibc netbsd openbsd darwin cygwin +# ISO-8859-14 glibc cygwin +# ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin +# KOI8-R Y glibc solaris freebsd netbsd openbsd darwin +# KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos @@ -57,20 +57,21 @@ # CP862 dos # CP864 dos # CP865 dos -# CP866 freebsd netbsd darwin dos +# CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix -# CP932 aix woe32 dos +# CP932 aix cygwin woe32 dos # CP943 aix -# CP949 osf woe32 dos +# CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix +# CP1131 darwin # CP1250 woe32 -# CP1251 glibc solaris netbsd darwin woe32 +# CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 @@ -79,18 +80,20 @@ # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin +# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd -# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin -# BIG5-HKSCS glibc solaris -# GBK glibc aix osf solaris woe32 dos -# GB18030 glibc solaris netbsd +# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin +# BIG5-HKSCS glibc solaris darwin +# GBK glibc aix osf solaris darwin cygwin woe32 dos +# GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 -# TIS-620 glibc aix hpux osf solaris +# TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc -# GEORGIAN-PS glibc +# ARMSCII-8 glibc darwin +# GEORGIAN-PS glibc cygwin +# PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux @@ -99,7 +102,7 @@ # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf -# UTF-8 Y glibc aix hpux osf solaris netbsd darwin +# UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). @@ -120,520 +123,561 @@ # List of references, updated during installation: echo "# Packages using this file: " case "$os" in - linux-gnulibc1*) - # Linux libc5 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - echo "POSIX ASCII" - for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ - en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ - en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ - es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ - et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ - fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ - it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ - sv_FI sv_SE; do - echo "$l ISO-8859-1" - echo "$l.iso-8859-1 ISO-8859-1" - echo "$l.iso-8859-15 ISO-8859-15" - echo "$l.iso-8859-15@euro ISO-8859-15" - echo "$l@euro ISO-8859-15" - echo "$l.cp-437 CP437" - echo "$l.cp-850 CP850" - echo "$l.cp-1252 CP1252" - echo "$l.cp-1252@euro CP1252" - #echo "$l.atari-st ATARI-ST" # not a commonly used encoding - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ - sl_SI sr sr_CS sr_YU; do - echo "$l ISO-8859-2" - echo "$l.iso-8859-2 ISO-8859-2" - echo "$l.cp-852 CP852" - echo "$l.cp-1250 CP1250" - echo "$l.utf-8 UTF-8" - done - for l in mk mk_MK ru ru_RU; do - echo "$l ISO-8859-5" - echo "$l.iso-8859-5 ISO-8859-5" - echo "$l.koi8-r KOI8-R" - echo "$l.cp-866 CP866" - echo "$l.cp-1251 CP1251" - echo "$l.utf-8 UTF-8" - done - for l in ar ar_SA; do - echo "$l ISO-8859-6" - echo "$l.iso-8859-6 ISO-8859-6" - echo "$l.cp-864 CP864" - #echo "$l.cp-868 CP868" # not a commonly used encoding - echo "$l.cp-1256 CP1256" - echo "$l.utf-8 UTF-8" - done - for l in el el_GR gr gr_GR; do - echo "$l ISO-8859-7" - echo "$l.iso-8859-7 ISO-8859-7" - echo "$l.cp-869 CP869" - echo "$l.cp-1253 CP1253" - echo "$l.cp-1253@euro CP1253" - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in he he_IL iw iw_IL; do - echo "$l ISO-8859-8" - echo "$l.iso-8859-8 ISO-8859-8" - echo "$l.cp-862 CP862" - echo "$l.cp-1255 CP1255" - echo "$l.utf-8 UTF-8" - done - for l in tr tr_TR; do - echo "$l ISO-8859-9" - echo "$l.iso-8859-9 ISO-8859-9" - echo "$l.cp-857 CP857" - echo "$l.cp-1254 CP1254" - echo "$l.utf-8 UTF-8" - done - for l in lt lt_LT lv lv_LV; do - #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name - echo "$l ISO-8859-13" - done - for l in ru_UA uk uk_UA; do - echo "$l KOI8-U" - done - for l in zh zh_CN; do - #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name - echo "$l GB2312" - done - for l in ja ja_JP ja_JP.EUC; do - echo "$l EUC-JP" - done - for l in ko ko_KR; do - echo "$l EUC-KR" - done - for l in th th_TH; do - echo "$l TIS-620" - done - for l in fa fa_IR; do - #echo "$l ISIRI-3342" # a broken encoding - echo "$l.utf-8 UTF-8" - done - ;; - linux* | *-gnu*) - # With glibc-2.1 or newer, we don't need any canonicalization, - # because glibc has iconv and both glibc and libiconv support all - # GNU canonical names directly. Therefore, the Makefile does not - # need to install the alias file at all. - # The following applies only to glibc-2.0.x and older libcs. - echo "ISO_646.IRV:1983 ASCII" - ;; - aix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "IBM-850 CP850" - echo "IBM-856 CP856" - echo "IBM-921 ISO-8859-13" - echo "IBM-922 CP922" - echo "IBM-932 CP932" - echo "IBM-943 CP943" - echo "IBM-1046 CP1046" - echo "IBM-1124 CP1124" - echo "IBM-1129 CP1129" - echo "IBM-1252 CP1252" - echo "IBM-eucCN GB2312" - echo "IBM-eucJP EUC-JP" - echo "IBM-eucKR EUC-KR" - echo "IBM-eucTW EUC-TW" - echo "big5 BIG5" - echo "GBK GBK" - echo "TIS-620 TIS-620" - echo "UTF-8 UTF-8" - ;; - hpux*) - echo "iso88591 ISO-8859-1" - echo "iso88592 ISO-8859-2" - echo "iso88595 ISO-8859-5" - echo "iso88596 ISO-8859-6" - echo "iso88597 ISO-8859-7" - echo "iso88598 ISO-8859-8" - echo "iso88599 ISO-8859-9" - echo "iso885915 ISO-8859-15" - echo "roman8 HP-ROMAN8" - echo "arabic8 HP-ARABIC8" - echo "greek8 HP-GREEK8" - echo "hebrew8 HP-HEBREW8" - echo "turkish8 HP-TURKISH8" - echo "kana8 HP-KANA8" - echo "tis620 TIS-620" - echo "big5 BIG5" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "hp15CN GB2312" - #echo "ccdc ?" # what is this? - echo "SJIS SHIFT_JIS" - echo "utf8 UTF-8" - ;; - irix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-9 ISO-8859-9" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - ;; - osf*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "cp850 CP850" - echo "big5 BIG5" - echo "dechanyu DEC-HANYU" - echo "dechanzi GB2312" - echo "deckanji DEC-KANJI" - echo "deckorean EUC-KR" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "GBK GBK" - echo "KSC5601 CP949" - echo "sdeckanji EUC-JP" - echo "SJIS SHIFT_JIS" - echo "TACTIS TIS-620" - echo "UTF-8 UTF-8" - ;; - solaris*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-3 ISO-8859-3" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "koi8-r KOI8-R" - echo "ansi-1251 CP1251" - echo "BIG5 BIG5" - echo "Big5-HKSCS BIG5-HKSCS" - echo "gb2312 GB2312" - echo "GBK GBK" - echo "GB18030 GB18030" - echo "cns11643 EUC-TW" - echo "5601 EUC-KR" - echo "ko_KR.johap92 JOHAB" - echo "eucJP EUC-JP" - echo "PCK SHIFT_JIS" - echo "TIS620.2533 TIS-620" - #echo "sun_eu_greek ?" # what is this? - echo "UTF-8 UTF-8" - ;; - freebsd* | os2*) - # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just - # reuse FreeBSD's locale data for OS/2. - echo "C ASCII" - echo "US-ASCII ASCII" - for l in la_LN lt_LN; do - echo "$l.ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ - lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do - echo "$l.ISO_8859-1 ISO-8859-1" - echo "$l.DIS_8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do - echo "$l.ISO_8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO_8859-4 ISO-8859-4" - done - for l in ru_RU ru_SU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO_8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ja_JP.Shift_JIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - netbsd*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-13 ISO-8859-13" - echo "ISO8859-15 ISO-8859-15" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "BIG5 BIG5" - echo "SJIS SHIFT_JIS" - ;; - darwin[56]*) - # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - for l in en_AU en_CA en_GB en_US la_LN; do - echo "$l.US-ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ - nl_NL no_NO pt_PT sv_SE; do - echo "$l ISO-8859-1" - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in la_LN; do - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do - echo "$l.ISO8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO8859-4 ISO-8859-4" - done - for l in ru_RU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - for l in bg_BG; do - echo "$l.CP1251 CP1251" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - darwin*) - # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: - # - It returns the empty string when LANG is set to a locale of the - # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 - # LC_CTYPE file. - # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by - # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. - # - The documentation says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # It also says - # "An additional caveat is that string parameters for files, - # paths, and other file-system entities must be in canonical - # UTF-8. In a canonical UTF-8 Unicode string, all decomposable - # characters are decomposed ..." - # but this is not true: You can pass non-decomposed UTF-8 strings - # to file system functions, and it is the OS which will convert - # them to decomposed UTF-8 before accessing the file system. - # - The Apple Terminal application displays UTF-8 by default. - # - However, other applications are free to use different encodings: - # - xterm uses ISO-8859-1 by default. - # - TextEdit uses MacRoman by default. - # We prefer UTF-8 over decomposed UTF-8-MAC because one should - # minimize the use of decomposed Unicode. Unfortunately, through the - # Darwin file system, decomposed UTF-8 strings are leaked into user - # space nevertheless. - echo "* UTF-8" - ;; - beos*) - # BeOS has a single locale, and it has UTF-8 encoding. - echo "* UTF-8" - ;; - msdosdjgpp*) - # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "#" - echo "# The encodings given here may not all be correct." - echo "# If you find that the encoding given for your language and" - echo "# country is not the one your DOS machine actually uses, just" - echo "# correct it in this file, and send a mail to" - echo "# Juan Manuel Guerrero " - echo "# and Bruno Haible ." - echo "#" - echo "C ASCII" - # ISO-8859-1 languages - echo "ca CP850" - echo "ca_ES CP850" - echo "da CP865" # not CP850 ?? - echo "da_DK CP865" # not CP850 ?? - echo "de CP850" - echo "de_AT CP850" - echo "de_CH CP850" - echo "de_DE CP850" - echo "en CP850" - echo "en_AU CP850" # not CP437 ?? - echo "en_CA CP850" - echo "en_GB CP850" - echo "en_NZ CP437" - echo "en_US CP437" - echo "en_ZA CP850" # not CP437 ?? - echo "es CP850" - echo "es_AR CP850" - echo "es_BO CP850" - echo "es_CL CP850" - echo "es_CO CP850" - echo "es_CR CP850" - echo "es_CU CP850" - echo "es_DO CP850" - echo "es_EC CP850" - echo "es_ES CP850" - echo "es_GT CP850" - echo "es_HN CP850" - echo "es_MX CP850" - echo "es_NI CP850" - echo "es_PA CP850" - echo "es_PY CP850" - echo "es_PE CP850" - echo "es_SV CP850" - echo "es_UY CP850" - echo "es_VE CP850" - echo "et CP850" - echo "et_EE CP850" - echo "eu CP850" - echo "eu_ES CP850" - echo "fi CP850" - echo "fi_FI CP850" - echo "fr CP850" - echo "fr_BE CP850" - echo "fr_CA CP850" - echo "fr_CH CP850" - echo "fr_FR CP850" - echo "ga CP850" - echo "ga_IE CP850" - echo "gd CP850" - echo "gd_GB CP850" - echo "gl CP850" - echo "gl_ES CP850" - echo "id CP850" # not CP437 ?? - echo "id_ID CP850" # not CP437 ?? - echo "is CP861" # not CP850 ?? - echo "is_IS CP861" # not CP850 ?? - echo "it CP850" - echo "it_CH CP850" - echo "it_IT CP850" - echo "lt CP775" - echo "lt_LT CP775" - echo "lv CP775" - echo "lv_LV CP775" - echo "nb CP865" # not CP850 ?? - echo "nb_NO CP865" # not CP850 ?? - echo "nl CP850" - echo "nl_BE CP850" - echo "nl_NL CP850" - echo "nn CP865" # not CP850 ?? - echo "nn_NO CP865" # not CP850 ?? - echo "no CP865" # not CP850 ?? - echo "no_NO CP865" # not CP850 ?? - echo "pt CP850" - echo "pt_BR CP850" - echo "pt_PT CP850" - echo "sv CP850" - echo "sv_SE CP850" - # ISO-8859-2 languages - echo "cs CP852" - echo "cs_CZ CP852" - echo "hr CP852" - echo "hr_HR CP852" - echo "hu CP852" - echo "hu_HU CP852" - echo "pl CP852" - echo "pl_PL CP852" - echo "ro CP852" - echo "ro_RO CP852" - echo "sk CP852" - echo "sk_SK CP852" - echo "sl CP852" - echo "sl_SI CP852" - echo "sq CP852" - echo "sq_AL CP852" - echo "sr CP852" # CP852 or CP866 or CP855 ?? - echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? - echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? - # ISO-8859-3 languages - echo "mt CP850" - echo "mt_MT CP850" - # ISO-8859-5 languages - echo "be CP866" - echo "be_BE CP866" - echo "bg CP866" # not CP855 ?? - echo "bg_BG CP866" # not CP855 ?? - echo "mk CP866" # not CP855 ?? - echo "mk_MK CP866" # not CP855 ?? - echo "ru CP866" - echo "ru_RU CP866" - echo "uk CP1125" - echo "uk_UA CP1125" - # ISO-8859-6 languages - echo "ar CP864" - echo "ar_AE CP864" - echo "ar_DZ CP864" - echo "ar_EG CP864" - echo "ar_IQ CP864" - echo "ar_IR CP864" - echo "ar_JO CP864" - echo "ar_KW CP864" - echo "ar_MA CP864" - echo "ar_OM CP864" - echo "ar_QA CP864" - echo "ar_SA CP864" - echo "ar_SY CP864" - # ISO-8859-7 languages - echo "el CP869" - echo "el_GR CP869" - # ISO-8859-8 languages - echo "he CP862" - echo "he_IL CP862" - # ISO-8859-9 languages - echo "tr CP857" - echo "tr_TR CP857" - # Japanese - echo "ja CP932" - echo "ja_JP CP932" - # Chinese - echo "zh_CN GBK" - echo "zh_TW CP950" # not CP938 ?? - # Korean - echo "kr CP949" # not CP934 ?? - echo "kr_KR CP949" # not CP934 ?? - # Thai - echo "th CP874" - echo "th_TH CP874" - # Other - echo "eo CP850" - echo "eo_EO CP850" - ;; + linux-gnulibc1*) + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "POSIX ASCII" + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ + sv_FI sv_SE; do + echo "$l ISO-8859-1" + echo "$l.iso-8859-1 ISO-8859-1" + echo "$l.iso-8859-15 ISO-8859-15" + echo "$l.iso-8859-15@euro ISO-8859-15" + echo "$l@euro ISO-8859-15" + echo "$l.cp-437 CP437" + echo "$l.cp-850 CP850" + echo "$l.cp-1252 CP1252" + echo "$l.cp-1252@euro CP1252" + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ + sl_SI sr sr_CS sr_YU; do + echo "$l ISO-8859-2" + echo "$l.iso-8859-2 ISO-8859-2" + echo "$l.cp-852 CP852" + echo "$l.cp-1250 CP1250" + echo "$l.utf-8 UTF-8" + done + for l in mk mk_MK ru ru_RU; do + echo "$l ISO-8859-5" + echo "$l.iso-8859-5 ISO-8859-5" + echo "$l.koi8-r KOI8-R" + echo "$l.cp-866 CP866" + echo "$l.cp-1251 CP1251" + echo "$l.utf-8 UTF-8" + done + for l in ar ar_SA; do + echo "$l ISO-8859-6" + echo "$l.iso-8859-6 ISO-8859-6" + echo "$l.cp-864 CP864" + #echo "$l.cp-868 CP868" # not a commonly used encoding + echo "$l.cp-1256 CP1256" + echo "$l.utf-8 UTF-8" + done + for l in el el_GR gr gr_GR; do + echo "$l ISO-8859-7" + echo "$l.iso-8859-7 ISO-8859-7" + echo "$l.cp-869 CP869" + echo "$l.cp-1253 CP1253" + echo "$l.cp-1253@euro CP1253" + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in he he_IL iw iw_IL; do + echo "$l ISO-8859-8" + echo "$l.iso-8859-8 ISO-8859-8" + echo "$l.cp-862 CP862" + echo "$l.cp-1255 CP1255" + echo "$l.utf-8 UTF-8" + done + for l in tr tr_TR; do + echo "$l ISO-8859-9" + echo "$l.iso-8859-9 ISO-8859-9" + echo "$l.cp-857 CP857" + echo "$l.cp-1254 CP1254" + echo "$l.utf-8 UTF-8" + done + for l in lt lt_LT lv lv_LV; do + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name + echo "$l ISO-8859-13" + done + for l in ru_UA uk uk_UA; do + echo "$l KOI8-U" + done + for l in zh zh_CN; do + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name + echo "$l GB2312" + done + for l in ja ja_JP ja_JP.EUC; do + echo "$l EUC-JP" + done + for l in ko ko_KR; do + echo "$l EUC-KR" + done + for l in th th_TH; do + echo "$l TIS-620" + done + for l in fa fa_IR; do + #echo "$l ISIRI-3342" # a broken encoding + echo "$l.utf-8 UTF-8" + done + ;; + linux* | *-gnu*) + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" + ;; + aix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "IBM-850 CP850" + echo "IBM-856 CP856" + echo "IBM-921 ISO-8859-13" + echo "IBM-922 CP922" + echo "IBM-932 CP932" + echo "IBM-943 CP943" + echo "IBM-1046 CP1046" + echo "IBM-1124 CP1124" + echo "IBM-1129 CP1129" + echo "IBM-1252 CP1252" + echo "IBM-eucCN GB2312" + echo "IBM-eucJP EUC-JP" + echo "IBM-eucKR EUC-KR" + echo "IBM-eucTW EUC-TW" + echo "big5 BIG5" + echo "GBK GBK" + echo "TIS-620 TIS-620" + echo "UTF-8 UTF-8" + ;; + hpux*) + echo "iso88591 ISO-8859-1" + echo "iso88592 ISO-8859-2" + echo "iso88595 ISO-8859-5" + echo "iso88596 ISO-8859-6" + echo "iso88597 ISO-8859-7" + echo "iso88598 ISO-8859-8" + echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" + echo "roman8 HP-ROMAN8" + echo "arabic8 HP-ARABIC8" + echo "greek8 HP-GREEK8" + echo "hebrew8 HP-HEBREW8" + echo "turkish8 HP-TURKISH8" + echo "kana8 HP-KANA8" + echo "tis620 TIS-620" + echo "big5 BIG5" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "hp15CN GB2312" + #echo "ccdc ?" # what is this? + echo "SJIS SHIFT_JIS" + echo "utf8 UTF-8" + ;; + irix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + ;; + osf*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "cp850 CP850" + echo "big5 BIG5" + echo "dechanyu DEC-HANYU" + echo "dechanzi GB2312" + echo "deckanji DEC-KANJI" + echo "deckorean EUC-KR" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "GBK GBK" + echo "KSC5601 CP949" + echo "sdeckanji EUC-JP" + echo "SJIS SHIFT_JIS" + echo "TACTIS TIS-620" + echo "UTF-8 UTF-8" + ;; + solaris*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-3 ISO-8859-3" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "koi8-r KOI8-R" + echo "ansi-1251 CP1251" + echo "BIG5 BIG5" + echo "Big5-HKSCS BIG5-HKSCS" + echo "gb2312 GB2312" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "cns11643 EUC-TW" + echo "5601 EUC-KR" + echo "ko_KR.johap92 JOHAB" + echo "eucJP EUC-JP" + echo "PCK SHIFT_JIS" + echo "TIS620.2533 TIS-620" + #echo "sun_eu_greek ?" # what is this? + echo "UTF-8 UTF-8" + ;; + freebsd* | os2*) + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just + # reuse FreeBSD's locale data for OS/2. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in la_LN lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO_8859-4 ISO-8859-4" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO_8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ja_JP.Shift_JIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + netbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "BIG5 BIG5" + echo "SJIS SHIFT_JIS" + ;; + openbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + ;; + darwin[56]*) + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + for l in en_AU en_CA en_GB en_US la_LN; do + echo "$l.US-ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ + nl_NL no_NO pt_PT sv_SE; do + echo "$l ISO-8859-1" + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in la_LN; do + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do + echo "$l.ISO8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO8859-4 ISO-8859-4" + done + for l in ru_RU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + for l in bg_BG; do + echo "$l.CP1251 CP1251" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + darwin*) + # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is + # useless: + # - It returns the empty string when LANG is set to a locale of the + # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 + # LC_CTYPE file. + # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by + # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. + # - The documentation says: + # "... all code that calls BSD system routines should ensure + # that the const *char parameters of these routines are in UTF-8 + # encoding. All BSD system functions expect their string + # parameters to be in UTF-8 encoding and nothing else." + # It also says + # "An additional caveat is that string parameters for files, + # paths, and other file-system entities must be in canonical + # UTF-8. In a canonical UTF-8 Unicode string, all decomposable + # characters are decomposed ..." + # but this is not true: You can pass non-decomposed UTF-8 strings + # to file system functions, and it is the OS which will convert + # them to decomposed UTF-8 before accessing the file system. + # - The Apple Terminal application displays UTF-8 by default. + # - However, other applications are free to use different encodings: + # - xterm uses ISO-8859-1 by default. + # - TextEdit uses MacRoman by default. + # We prefer UTF-8 over decomposed UTF-8-MAC because one should + # minimize the use of decomposed Unicode. Unfortunately, through the + # Darwin file system, decomposed UTF-8 strings are leaked into user + # space nevertheless. + # Then there are also the locales with encodings other than US-ASCII + # and UTF-8. These locales can be occasionally useful to users (e.g. + # when grepping through ISO-8859-1 encoded text files), when all their + # file names are in US-ASCII. + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "KOI8-R KOI8-R" + echo "KOI8-U KOI8-U" + echo "CP866 CP866" + echo "CP949 CP949" + echo "CP1131 CP1131" + echo "CP1251 CP1251" + echo "eucCN GB2312" + echo "GB2312 GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "Big5 BIG5" + echo "Big5HKSCS BIG5-HKSCS" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "SJIS SHIFT_JIS" + echo "ARMSCII-8 ARMSCII-8" + echo "PT154 PT154" + #echo "ISCII-DEV ?" + echo "* UTF-8" + ;; + beos* | haiku*) + # BeOS and Haiku have a single locale, and it has UTF-8 encoding. + echo "* UTF-8" + ;; + msdosdjgpp*) + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "#" + echo "# The encodings given here may not all be correct." + echo "# If you find that the encoding given for your language and" + echo "# country is not the one your DOS machine actually uses, just" + echo "# correct it in this file, and send a mail to" + echo "# Juan Manuel Guerrero " + echo "# and Bruno Haible ." + echo "#" + echo "C ASCII" + # ISO-8859-1 languages + echo "ca CP850" + echo "ca_ES CP850" + echo "da CP865" # not CP850 ?? + echo "da_DK CP865" # not CP850 ?? + echo "de CP850" + echo "de_AT CP850" + echo "de_CH CP850" + echo "de_DE CP850" + echo "en CP850" + echo "en_AU CP850" # not CP437 ?? + echo "en_CA CP850" + echo "en_GB CP850" + echo "en_NZ CP437" + echo "en_US CP437" + echo "en_ZA CP850" # not CP437 ?? + echo "es CP850" + echo "es_AR CP850" + echo "es_BO CP850" + echo "es_CL CP850" + echo "es_CO CP850" + echo "es_CR CP850" + echo "es_CU CP850" + echo "es_DO CP850" + echo "es_EC CP850" + echo "es_ES CP850" + echo "es_GT CP850" + echo "es_HN CP850" + echo "es_MX CP850" + echo "es_NI CP850" + echo "es_PA CP850" + echo "es_PY CP850" + echo "es_PE CP850" + echo "es_SV CP850" + echo "es_UY CP850" + echo "es_VE CP850" + echo "et CP850" + echo "et_EE CP850" + echo "eu CP850" + echo "eu_ES CP850" + echo "fi CP850" + echo "fi_FI CP850" + echo "fr CP850" + echo "fr_BE CP850" + echo "fr_CA CP850" + echo "fr_CH CP850" + echo "fr_FR CP850" + echo "ga CP850" + echo "ga_IE CP850" + echo "gd CP850" + echo "gd_GB CP850" + echo "gl CP850" + echo "gl_ES CP850" + echo "id CP850" # not CP437 ?? + echo "id_ID CP850" # not CP437 ?? + echo "is CP861" # not CP850 ?? + echo "is_IS CP861" # not CP850 ?? + echo "it CP850" + echo "it_CH CP850" + echo "it_IT CP850" + echo "lt CP775" + echo "lt_LT CP775" + echo "lv CP775" + echo "lv_LV CP775" + echo "nb CP865" # not CP850 ?? + echo "nb_NO CP865" # not CP850 ?? + echo "nl CP850" + echo "nl_BE CP850" + echo "nl_NL CP850" + echo "nn CP865" # not CP850 ?? + echo "nn_NO CP865" # not CP850 ?? + echo "no CP865" # not CP850 ?? + echo "no_NO CP865" # not CP850 ?? + echo "pt CP850" + echo "pt_BR CP850" + echo "pt_PT CP850" + echo "sv CP850" + echo "sv_SE CP850" + # ISO-8859-2 languages + echo "cs CP852" + echo "cs_CZ CP852" + echo "hr CP852" + echo "hr_HR CP852" + echo "hu CP852" + echo "hu_HU CP852" + echo "pl CP852" + echo "pl_PL CP852" + echo "ro CP852" + echo "ro_RO CP852" + echo "sk CP852" + echo "sk_SK CP852" + echo "sl CP852" + echo "sl_SI CP852" + echo "sq CP852" + echo "sq_AL CP852" + echo "sr CP852" # CP852 or CP866 or CP855 ?? + echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? + echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? + # ISO-8859-3 languages + echo "mt CP850" + echo "mt_MT CP850" + # ISO-8859-5 languages + echo "be CP866" + echo "be_BE CP866" + echo "bg CP866" # not CP855 ?? + echo "bg_BG CP866" # not CP855 ?? + echo "mk CP866" # not CP855 ?? + echo "mk_MK CP866" # not CP855 ?? + echo "ru CP866" + echo "ru_RU CP866" + echo "uk CP1125" + echo "uk_UA CP1125" + # ISO-8859-6 languages + echo "ar CP864" + echo "ar_AE CP864" + echo "ar_DZ CP864" + echo "ar_EG CP864" + echo "ar_IQ CP864" + echo "ar_IR CP864" + echo "ar_JO CP864" + echo "ar_KW CP864" + echo "ar_MA CP864" + echo "ar_OM CP864" + echo "ar_QA CP864" + echo "ar_SA CP864" + echo "ar_SY CP864" + # ISO-8859-7 languages + echo "el CP869" + echo "el_GR CP869" + # ISO-8859-8 languages + echo "he CP862" + echo "he_IL CP862" + # ISO-8859-9 languages + echo "tr CP857" + echo "tr_TR CP857" + # Japanese + echo "ja CP932" + echo "ja_JP CP932" + # Chinese + echo "zh_CN GBK" + echo "zh_TW CP950" # not CP938 ?? + # Korean + echo "kr CP949" # not CP934 ?? + echo "kr_KR CP949" # not CP934 ?? + # Thai + echo "th CP874" + echo "th_TH CP874" + # Other + echo "eo CP850" + echo "eo_EO CP850" + ;; esac diff -Nru gettext-0.17/gettext-tools/gnulib-lib/copy-acl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-acl.c --- gettext-0.17/gettext-tools/gnulib-lib/copy-acl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-acl.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,554 @@ +/* copy-acl.c - copy access control list from one file to another file + + Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + Written by Paul Eggert, Andreas Grünbacher, and Bruno Haible. */ + +#include + +#include "acl.h" + +#include "acl-internal.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) + + +/* Copy access control lists from one file to another. If SOURCE_DESC is + a valid file descriptor, use file descriptor operations, else use + filename based operations on SRC_NAME. Likewise for DEST_DESC and + DST_NAME. + If access control lists are not available, fchmod the target file to + MODE. Also sets the non-permission bits of the destination file + (S_ISUID, S_ISGID, S_ISVTX) to those from MODE if any are set. + Return 0 if successful. + Return -2 and set errno for an error relating to the source file. + Return -1 and set errno for an error relating to the destination file. */ + +static int +qcopy_acl (const char *src_name, int source_desc, const char *dst_name, + int dest_desc, mode_t mode) +{ +#if USE_ACL && HAVE_ACL_GET_FILE + /* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ + /* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ +# if MODE_INSIDE_ACL + /* Linux, FreeBSD, IRIX, Tru64 */ + + acl_t acl; + int ret; + + if (HAVE_ACL_GET_FD && source_desc != -1) + acl = acl_get_fd (source_desc); + else + acl = acl_get_file (src_name, ACL_TYPE_ACCESS); + if (acl == NULL) + { + if (ACL_NOT_WELL_SUPPORTED (errno)) + return qset_acl (dst_name, dest_desc, mode); + else + return -2; + } + + if (HAVE_ACL_SET_FD && dest_desc != -1) + ret = acl_set_fd (dest_desc, acl); + else + ret = acl_set_file (dst_name, ACL_TYPE_ACCESS, acl); + if (ret != 0) + { + int saved_errno = errno; + + if (ACL_NOT_WELL_SUPPORTED (errno) && !acl_access_nontrivial (acl)) + { + acl_free (acl); + return chmod_or_fchmod (dst_name, dest_desc, mode); + } + else + { + acl_free (acl); + chmod_or_fchmod (dst_name, dest_desc, mode); + errno = saved_errno; + return -1; + } + } + else + acl_free (acl); + + if (mode & (S_ISUID | S_ISGID | S_ISVTX)) + { + /* We did not call chmod so far, and either the mode and the ACL are + separate or special bits are to be set which don't fit into ACLs. */ + + if (chmod_or_fchmod (dst_name, dest_desc, mode) != 0) + return -1; + } + + if (S_ISDIR (mode)) + { + acl = acl_get_file (src_name, ACL_TYPE_DEFAULT); + if (acl == NULL) + return -2; + + if (acl_set_file (dst_name, ACL_TYPE_DEFAULT, acl)) + { + int saved_errno = errno; + + acl_free (acl); + errno = saved_errno; + return -1; + } + else + acl_free (acl); + } + return 0; + +# else /* !MODE_INSIDE_ACL */ + /* MacOS X */ + +# if !HAVE_ACL_TYPE_EXTENDED +# error Must have ACL_TYPE_EXTENDED +# endif + + /* On MacOS X, acl_get_file (name, ACL_TYPE_ACCESS) + and acl_get_file (name, ACL_TYPE_DEFAULT) + always return NULL / EINVAL. You have to use + acl_get_file (name, ACL_TYPE_EXTENDED) + or acl_get_fd (open (name, ...)) + to retrieve an ACL. + On the other hand, + acl_set_file (name, ACL_TYPE_ACCESS, acl) + and acl_set_file (name, ACL_TYPE_DEFAULT, acl) + have the same effect as + acl_set_file (name, ACL_TYPE_EXTENDED, acl): + Each of these calls sets the file's ACL. */ + + acl_t acl; + int ret; + + if (HAVE_ACL_GET_FD && source_desc != -1) + acl = acl_get_fd (source_desc); + else + acl = acl_get_file (src_name, ACL_TYPE_EXTENDED); + if (acl == NULL) + { + if (ACL_NOT_WELL_SUPPORTED (errno)) + return qset_acl (dst_name, dest_desc, mode); + else + return -2; + } + + if (HAVE_ACL_SET_FD && dest_desc != -1) + ret = acl_set_fd (dest_desc, acl); + else + ret = acl_set_file (dst_name, ACL_TYPE_EXTENDED, acl); + if (ret != 0) + { + int saved_errno = errno; + + if (ACL_NOT_WELL_SUPPORTED (errno) && !acl_extended_nontrivial (acl)) + { + acl_free (acl); + return chmod_or_fchmod (dst_name, dest_desc, mode); + } + else + { + acl_free (acl); + chmod_or_fchmod (dst_name, dest_desc, mode); + errno = saved_errno; + return -1; + } + } + else + acl_free (acl); + + /* Since !MODE_INSIDE_ACL, we have to call chmod explicitly. */ + return chmod_or_fchmod (dst_name, dest_desc, mode); + +# endif + +#elif USE_ACL && defined GETACL /* Solaris, Cygwin, not HP-UX */ + +# if defined ACL_NO_TRIVIAL + /* Solaris 10 (newer version), which has additional API declared in + (acl_t) and implemented in libsec (acl_set, acl_trivial, + acl_fromtext, ...). */ + + int ret; + acl_t *aclp = NULL; + ret = (source_desc < 0 + ? acl_get (src_name, ACL_NO_TRIVIAL, &aclp) + : facl_get (source_desc, ACL_NO_TRIVIAL, &aclp)); + if (ret != 0 && errno != ENOSYS) + return -2; + + ret = qset_acl (dst_name, dest_desc, mode); + if (ret != 0) + return -1; + + if (aclp) + { + ret = (dest_desc < 0 + ? acl_set (dst_name, aclp) + : facl_set (dest_desc, aclp)); + if (ret != 0) + { + int saved_errno = errno; + + acl_free (aclp); + errno = saved_errno; + return -1; + } + acl_free (aclp); + } + + return 0; + +# else /* Solaris, Cygwin, general case */ + + /* Solaris 2.5 through Solaris 10, Cygwin, and contemporaneous versions + of Unixware. The acl() call returns the access and default ACL both + at once. */ +# ifdef ACE_GETACL + int ace_count; + ace_t *ace_entries; +# endif + int count; + aclent_t *entries; + int did_chmod; + int saved_errno; + int ret; + +# ifdef ACE_GETACL + /* Solaris also has a different variant of ACLs, used in ZFS and NFSv4 + file systems (whereas the other ones are used in UFS file systems). + There is an API + pathconf (name, _PC_ACL_ENABLED) + fpathconf (desc, _PC_ACL_ENABLED) + that allows to determine which of the two kinds of ACLs is supported + for the given file. But some file systems may implement this call + incorrectly, so better not use it. + When fetching the source ACL, we simply fetch both ACL types. + When setting the destination ACL, we try either ACL types, assuming + that the kernel will translate the ACL from one form to the other. + (See in + the description of ENOTSUP.) */ + for (;;) + { + ace_count = (source_desc != -1 + ? facl (source_desc, ACE_GETACLCNT, 0, NULL) + : acl (src_name, ACE_GETACLCNT, 0, NULL)); + + if (ace_count < 0) + { + if (errno == ENOSYS || errno == EINVAL) + { + ace_count = 0; + ace_entries = NULL; + break; + } + else + return -2; + } + + if (ace_count == 0) + { + ace_entries = NULL; + break; + } + + ace_entries = (ace_t *) malloc (ace_count * sizeof (ace_t)); + if (ace_entries == NULL) + { + errno = ENOMEM; + return -2; + } + + if ((source_desc != -1 + ? facl (source_desc, ACE_GETACL, ace_count, ace_entries) + : acl (src_name, ACE_GETACL, ace_count, ace_entries)) + == ace_count) + break; + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + } +# endif + + for (;;) + { + count = (source_desc != -1 + ? facl (source_desc, GETACLCNT, 0, NULL) + : acl (src_name, GETACLCNT, 0, NULL)); + + if (count < 0) + { + if (errno == ENOSYS || errno == ENOTSUP || errno == EOPNOTSUPP) + { + count = 0; + entries = NULL; + break; + } + else + return -2; + } + + if (count == 0) + { + entries = NULL; + break; + } + + entries = (aclent_t *) malloc (count * sizeof (aclent_t)); + if (entries == NULL) + { + errno = ENOMEM; + return -2; + } + + if ((source_desc != -1 + ? facl (source_desc, GETACL, count, entries) + : acl (src_name, GETACL, count, entries)) + == count) + break; + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + } + + /* Is there an ACL of either kind? */ +# ifdef ACE_GETACL + if (ace_count == 0) +# endif + if (count == 0) + return qset_acl (dst_name, dest_desc, mode); + + did_chmod = 0; /* set to 1 once the mode bits in 0777 have been set */ + saved_errno = 0; /* the first non-ignorable error code */ + + if (!MODE_INSIDE_ACL) + { + /* On Cygwin, it is necessary to call chmod before acl, because + chmod can change the contents of the ACL (in ways that don't + change the allowed accesses, but still visible). */ + if (chmod_or_fchmod (dst_name, dest_desc, mode) != 0) + saved_errno = errno; + did_chmod = 1; + } + + /* If both ace_entries and entries are available, try SETACL before + ACE_SETACL, because SETACL cannot fail with ENOTSUP whereas ACE_SETACL + can. */ + + if (count > 0) + { + ret = (dest_desc != -1 + ? facl (dest_desc, SETACL, count, entries) + : acl (dst_name, SETACL, count, entries)); + if (ret < 0 && saved_errno == 0) + { + saved_errno = errno; + if ((errno == ENOSYS || errno == EOPNOTSUPP) + && !acl_nontrivial (count, entries)) + saved_errno = 0; + } + else + did_chmod = 1; + } + free (entries); + +# ifdef ACE_GETACL + if (ace_count > 0) + { + ret = (dest_desc != -1 + ? facl (dest_desc, ACE_SETACL, ace_count, ace_entries) + : acl (dst_name, ACE_SETACL, ace_count, ace_entries)); + if (ret < 0 && saved_errno == 0) + { + saved_errno = errno; + if ((errno == ENOSYS || errno == EINVAL || errno == ENOTSUP) + && !acl_ace_nontrivial (ace_count, ace_entries)) + saved_errno = 0; + } + } + free (ace_entries); +# endif + + if (MODE_INSIDE_ACL + && did_chmod <= ((mode & (S_ISUID | S_ISGID | S_ISVTX)) ? 1 : 0)) + { + /* We did not call chmod so far, and either the mode and the ACL are + separate or special bits are to be set which don't fit into ACLs. */ + + if (chmod_or_fchmod (dst_name, dest_desc, mode) != 0) + { + if (saved_errno == 0) + saved_errno = errno; + } + } + + if (saved_errno) + { + errno = saved_errno; + return -1; + } + return 0; + +# endif + +#elif USE_ACL && HAVE_GETACL /* HP-UX */ + + int count; + struct acl_entry entries[NACLENTRIES]; + int ret; + + for (;;) + { + count = (source_desc != -1 + ? fgetacl (source_desc, 0, NULL) + : getacl (src_name, 0, NULL)); + + if (count < 0) + { + if (errno == ENOSYS || errno == EOPNOTSUPP) + { + count = 0; + break; + } + else + return -2; + } + + if (count == 0) + break; + + if (count > NACLENTRIES) + /* If NACLENTRIES cannot be trusted, use dynamic memory allocation. */ + abort (); + + if ((source_desc != -1 + ? fgetacl (source_desc, count, entries) + : getacl (src_name, count, entries)) + == count) + break; + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + } + + if (count == 0) + return qset_acl (dst_name, dest_desc, mode); + + ret = (dest_desc != -1 + ? fsetacl (dest_desc, count, entries) + : setacl (dst_name, count, entries)); + if (ret < 0) + { + int saved_errno = errno; + + if (errno == ENOSYS || errno == EOPNOTSUPP) + { + struct stat source_statbuf; + + if ((source_desc != -1 + ? fstat (source_desc, &source_statbuf) + : stat (src_name, &source_statbuf)) == 0) + { + if (!acl_nontrivial (count, entries, &source_statbuf)) + return chmod_or_fchmod (dst_name, dest_desc, mode); + } + else + saved_errno = errno; + } + + chmod_or_fchmod (dst_name, dest_desc, mode); + errno = saved_errno; + return -1; + } + + if (mode & (S_ISUID | S_ISGID | S_ISVTX)) + { + /* We did not call chmod so far, and either the mode and the ACL are + separate or special bits are to be set which don't fit into ACLs. */ + + return chmod_or_fchmod (dst_name, dest_desc, mode); + } + return 0; + +#elif USE_ACL && HAVE_ACLX_GET && 0 /* AIX */ + + /* TODO */ + +#elif USE_ACL && HAVE_STATACL /* older AIX */ + + union { struct acl a; char room[4096]; } u; + int ret; + + if ((source_desc != -1 + ? fstatacl (source_desc, STX_NORMAL, &u.a, sizeof (u)) + : statacl (src_name, STX_NORMAL, &u.a, sizeof (u))) + < 0) + return -2; + + ret = (dest_desc != -1 + ? fchacl (dest_desc, &u.a, u.a.acl_len) + : chacl (dst_name, &u.a, u.a.acl_len)); + if (ret < 0) + { + int saved_errno = errno; + + chmod_or_fchmod (dst_name, dest_desc, mode); + errno = saved_errno; + return -1; + } + + /* No need to call chmod_or_fchmod at this point, since the mode bits + S_ISUID, S_ISGID, S_ISVTX are also stored in the ACL. */ + + return 0; + +#else + + return qset_acl (dst_name, dest_desc, mode); + +#endif +} + + +/* Copy access control lists from one file to another. If SOURCE_DESC is + a valid file descriptor, use file descriptor operations, else use + filename based operations on SRC_NAME. Likewise for DEST_DESC and + DST_NAME. + If access control lists are not available, fchmod the target file to + MODE. Also sets the non-permission bits of the destination file + (S_ISUID, S_ISGID, S_ISVTX) to those from MODE if any are set. + Return 0 if successful, otherwise output a diagnostic and return -1. */ + +int +copy_acl (const char *src_name, int source_desc, const char *dst_name, + int dest_desc, mode_t mode) +{ + int ret = qcopy_acl (src_name, source_desc, dst_name, dest_desc, mode); + switch (ret) + { + case -2: + error (0, errno, "%s", quote (src_name)); + return -1; + + case -1: + error (0, errno, _("preserving permissions for %s"), quote (dst_name)); + return -1; + + default: + return 0; + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/copy-file.c gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-file.c --- gettext-0.17/gettext-tools/gnulib-lib/copy-file.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-file.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Copying of files. - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -42,6 +42,7 @@ #include "acl.h" #include "binary-io.h" #include "gettext.h" +#include "xalloc.h" #define _(str) gettext (str) @@ -50,6 +51,7 @@ #undef open #undef close +enum { IO_SIZE = 32 * 1024 }; void copy_file_preserving (const char *src_filename, const char *dest_filename) @@ -58,34 +60,35 @@ struct stat statbuf; int mode; int dest_fd; - char buf[4096]; - const size_t buf_size = sizeof (buf); + char *buf = xmalloc (IO_SIZE); src_fd = open (src_filename, O_RDONLY | O_BINARY); if (src_fd < 0 || fstat (src_fd, &statbuf) < 0) error (EXIT_FAILURE, errno, _("error while opening \"%s\" for reading"), - src_filename); + src_filename); mode = statbuf.st_mode & 07777; dest_fd = open (dest_filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0600); if (dest_fd < 0) error (EXIT_FAILURE, errno, _("cannot open backup file \"%s\" for writing"), - dest_filename); + dest_filename); /* Copy the file contents. */ for (;;) { - size_t n_read = safe_read (src_fd, buf, buf_size); + size_t n_read = safe_read (src_fd, buf, IO_SIZE); if (n_read == SAFE_READ_ERROR) - error (EXIT_FAILURE, errno, _("error reading \"%s\""), src_filename); + error (EXIT_FAILURE, errno, _("error reading \"%s\""), src_filename); if (n_read == 0) - break; + break; if (full_write (dest_fd, buf, n_read) < n_read) - error (EXIT_FAILURE, errno, _("error writing \"%s\""), dest_filename); + error (EXIT_FAILURE, errno, _("error writing \"%s\""), dest_filename); } + free (buf); + #if !USE_ACL if (close (dest_fd) < 0) error (EXIT_FAILURE, errno, _("error writing \"%s\""), dest_filename); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/copy-file.h gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-file.h --- gettext-0.17/gettext-tools/gnulib-lib/copy-file.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/copy-file.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Copying of files. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/csharpcomp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpcomp.c --- gettext-0.17/gettext-tools/gnulib-lib/csharpcomp.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpcomp.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Compile a C# program. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -60,14 +60,14 @@ static int compile_csharp_using_pnet (const char * const *sources, - unsigned int sources_count, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *libraries, - unsigned int libraries_count, - const char *output_file, bool output_is_library, - bool optimize, bool debug, - bool verbose) + unsigned int sources_count, + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *libraries, + unsigned int libraries_count, + const char *output_file, bool output_is_library, + bool optimize, bool debug, + bool verbose) { static bool cscc_tested; static bool cscc_present; @@ -75,7 +75,7 @@ if (!cscc_tested) { /* Test for presence of cscc: - "cscc --version >/dev/null 2>/dev/null" */ + "cscc --version >/dev/null 2>/dev/null" */ char *argv[3]; int exitstatus; @@ -83,7 +83,7 @@ argv[1] = "--version"; argv[2] = NULL; exitstatus = execute ("cscc", "cscc", argv, false, false, true, true, - true, false); + true, false, NULL); cscc_present = (exitstatus == 0); cscc_tested = true; } @@ -97,65 +97,65 @@ unsigned int i; argc = - 1 + (output_is_library ? 1 : 0) + 2 + 2 * libdirs_count - + 2 * libraries_count + (optimize ? 1 : 0) + (debug ? 1 : 0) - + sources_count; + 1 + (output_is_library ? 1 : 0) + 2 + 2 * libdirs_count + + 2 * libraries_count + (optimize ? 1 : 0) + (debug ? 1 : 0) + + sources_count; argv = (char **) xmalloca ((argc + 1) * sizeof (char *)); argp = argv; *argp++ = "cscc"; if (output_is_library) - *argp++ = "-shared"; + *argp++ = "-shared"; *argp++ = "-o"; *argp++ = (char *) output_file; for (i = 0; i < libdirs_count; i++) - { - *argp++ = "-L"; - *argp++ = (char *) libdirs[i]; - } + { + *argp++ = "-L"; + *argp++ = (char *) libdirs[i]; + } for (i = 0; i < libraries_count; i++) - { - *argp++ = "-l"; - *argp++ = (char *) libraries[i]; - } + { + *argp++ = "-l"; + *argp++ = (char *) libraries[i]; + } if (optimize) - *argp++ = "-O"; + *argp++ = "-O"; if (debug) - *argp++ = "-g"; + *argp++ = "-g"; for (i = 0; i < sources_count; i++) - { - const char *source_file = sources[i]; - if (strlen (source_file) >= 10 - && memcmp (source_file + strlen (source_file) - 10, ".resources", - 10) == 0) - { - char *option = (char *) xmalloca (12 + strlen (source_file) + 1); - - memcpy (option, "-fresources=", 12); - strcpy (option + 12, source_file); - *argp++ = option; - } - else - *argp++ = (char *) source_file; - } + { + const char *source_file = sources[i]; + if (strlen (source_file) >= 10 + && memcmp (source_file + strlen (source_file) - 10, ".resources", + 10) == 0) + { + char *option = (char *) xmalloca (12 + strlen (source_file) + 1); + + memcpy (option, "-fresources=", 12); + strcpy (option + 12, source_file); + *argp++ = option; + } + else + *argp++ = (char *) source_file; + } *argp = NULL; /* Ensure argv length was correctly calculated. */ if (argp - argv != argc) - abort (); + abort (); if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } exitstatus = execute ("cscc", "cscc", argv, false, false, false, false, - true, true); + true, true, NULL); for (i = 0; i < sources_count; i++) - if (argv[argc - sources_count + i] != sources[i]) - freea (argv[argc - sources_count + i]); + if (argv[argc - sources_count + i] != sources[i]) + freea (argv[argc - sources_count + i]); freea (argv); return (exitstatus != 0); @@ -166,14 +166,14 @@ static int compile_csharp_using_mono (const char * const *sources, - unsigned int sources_count, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *libraries, - unsigned int libraries_count, - const char *output_file, bool output_is_library, - bool optimize, bool debug, - bool verbose) + unsigned int sources_count, + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *libraries, + unsigned int libraries_count, + const char *output_file, bool output_is_library, + bool optimize, bool debug, + bool verbose) { static bool mcs_tested; static bool mcs_present; @@ -181,9 +181,9 @@ if (!mcs_tested) { /* Test for presence of mcs: - "mcs --version >/dev/null 2>/dev/null" - and (to exclude an unrelated 'mcs' program on QNX 6) - "mcs --version 2>/dev/null | grep Mono >/dev/null" */ + "mcs --version >/dev/null 2>/dev/null" + and (to exclude an unrelated 'mcs' program on QNX 6) + "mcs --version 2>/dev/null | grep Mono >/dev/null" */ char *argv[3]; pid_t child; int fd[1]; @@ -193,36 +193,36 @@ argv[1] = "--version"; argv[2] = NULL; child = create_pipe_in ("mcs", "mcs", argv, DEV_NULL, true, true, false, - fd); + fd); mcs_present = false; if (child != -1) - { - /* Read the subprocess output, and test whether it contains the - string "Mono". */ - char c[4]; - size_t count = 0; - - while (safe_read (fd[0], &c[count], 1) > 0) - { - count++; - if (count == 4) - { - if (memcmp (c, "Mono", 4) == 0) - mcs_present = true; - c[0] = c[1]; c[1] = c[2]; c[2] = c[3]; - count--; - } - } - - close (fd[0]); - - /* Remove zombie process from process list, and retrieve exit - status. */ - exitstatus = - wait_subprocess (child, "mcs", false, true, true, false); - if (exitstatus != 0) - mcs_present = false; - } + { + /* Read the subprocess output, and test whether it contains the + string "Mono". */ + char c[4]; + size_t count = 0; + + while (safe_read (fd[0], &c[count], 1) > 0) + { + count++; + if (count == 4) + { + if (memcmp (c, "Mono", 4) == 0) + mcs_present = true; + c[0] = c[1]; c[1] = c[2]; c[2] = c[3]; + count--; + } + } + + close (fd[0]); + + /* Remove zombie process from process list, and retrieve exit + status. */ + exitstatus = + wait_subprocess (child, "mcs", false, true, true, false, NULL); + if (exitstatus != 0) + mcs_present = false; + } mcs_tested = true; } @@ -242,106 +242,107 @@ unsigned int i; argc = - 1 + (output_is_library ? 1 : 0) + 1 + libdirs_count + libraries_count - + (debug ? 1 : 0) + sources_count; + 1 + (output_is_library ? 1 : 0) + 1 + libdirs_count + libraries_count + + (debug ? 1 : 0) + sources_count; argv = (char **) xmalloca ((argc + 1) * sizeof (char *)); argp = argv; *argp++ = "mcs"; if (output_is_library) - *argp++ = "-target:library"; + *argp++ = "-target:library"; { - char *option = (char *) xmalloca (5 + strlen (output_file) + 1); - memcpy (option, "-out:", 5); - strcpy (option + 5, output_file); - *argp++ = option; + char *option = (char *) xmalloca (5 + strlen (output_file) + 1); + memcpy (option, "-out:", 5); + strcpy (option + 5, output_file); + *argp++ = option; } for (i = 0; i < libdirs_count; i++) - { - char *option = (char *) xmalloca (5 + strlen (libdirs[i]) + 1); - memcpy (option, "-lib:", 5); - strcpy (option + 5, libdirs[i]); - *argp++ = option; - } + { + char *option = (char *) xmalloca (5 + strlen (libdirs[i]) + 1); + memcpy (option, "-lib:", 5); + strcpy (option + 5, libdirs[i]); + *argp++ = option; + } for (i = 0; i < libraries_count; i++) - { - char *option = (char *) xmalloca (11 + strlen (libraries[i]) + 4 + 1); - memcpy (option, "-reference:", 11); - memcpy (option + 11, libraries[i], strlen (libraries[i])); - strcpy (option + 11 + strlen (libraries[i]), ".dll"); - *argp++ = option; - } + { + char *option = (char *) xmalloca (11 + strlen (libraries[i]) + 4 + 1); + memcpy (option, "-reference:", 11); + memcpy (option + 11, libraries[i], strlen (libraries[i])); + strcpy (option + 11 + strlen (libraries[i]), ".dll"); + *argp++ = option; + } if (debug) - *argp++ = "-debug"; + *argp++ = "-debug"; for (i = 0; i < sources_count; i++) - { - const char *source_file = sources[i]; - if (strlen (source_file) >= 10 - && memcmp (source_file + strlen (source_file) - 10, ".resources", - 10) == 0) - { - char *option = (char *) xmalloca (10 + strlen (source_file) + 1); - - memcpy (option, "-resource:", 10); - strcpy (option + 10, source_file); - *argp++ = option; - } - else - *argp++ = (char *) source_file; - } + { + const char *source_file = sources[i]; + if (strlen (source_file) >= 10 + && memcmp (source_file + strlen (source_file) - 10, ".resources", + 10) == 0) + { + char *option = (char *) xmalloca (10 + strlen (source_file) + 1); + + memcpy (option, "-resource:", 10); + strcpy (option + 10, source_file); + *argp++ = option; + } + else + *argp++ = (char *) source_file; + } *argp = NULL; /* Ensure argv length was correctly calculated. */ if (argp - argv != argc) - abort (); + abort (); if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } child = create_pipe_in ("mcs", "mcs", argv, NULL, false, true, true, fd); /* Read the subprocess output, copying it to stderr. Drop the last - line if it starts with "Compilation succeeded". */ + line if it starts with "Compilation succeeded". */ fp = fdopen (fd[0], "r"); if (fp == NULL) - error (EXIT_FAILURE, errno, _("fdopen() failed")); + error (EXIT_FAILURE, errno, _("fdopen() failed")); line[0] = NULL; linesize[0] = 0; line[1] = NULL; linesize[1] = 0; l = 0; for (;;) - { - linelen[l] = getline (&line[l], &linesize[l], fp); - if (linelen[l] == (size_t)(-1)) - break; - l = (l + 1) % 2; - if (line[l] != NULL) - fwrite (line[l], 1, linelen[l], stderr); - } + { + linelen[l] = getline (&line[l], &linesize[l], fp); + if (linelen[l] == (size_t)(-1)) + break; + l = (l + 1) % 2; + if (line[l] != NULL) + fwrite (line[l], 1, linelen[l], stderr); + } l = (l + 1) % 2; if (line[l] != NULL - && !(linelen[l] >= 21 - && memcmp (line[l], "Compilation succeeded", 21) == 0)) - fwrite (line[l], 1, linelen[l], stderr); + && !(linelen[l] >= 21 + && memcmp (line[l], "Compilation succeeded", 21) == 0)) + fwrite (line[l], 1, linelen[l], stderr); if (line[0] != NULL) - free (line[0]); + free (line[0]); if (line[1] != NULL) - free (line[1]); + free (line[1]); fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, "mcs", false, false, true, true); + exitstatus = + wait_subprocess (child, "mcs", false, false, true, true, NULL); for (i = 1 + (output_is_library ? 1 : 0); - i < 1 + (output_is_library ? 1 : 0) - + 1 + libdirs_count + libraries_count; - i++) - freea (argv[i]); + i < 1 + (output_is_library ? 1 : 0) + + 1 + libdirs_count + libraries_count; + i++) + freea (argv[i]); for (i = 0; i < sources_count; i++) - if (argv[argc - sources_count + i] != sources[i]) - freea (argv[argc - sources_count + i]); + if (argv[argc - sources_count + i] != sources[i]) + freea (argv[argc - sources_count + i]); freea (argv); return (exitstatus != 0); @@ -352,14 +353,14 @@ static int compile_csharp_using_sscli (const char * const *sources, - unsigned int sources_count, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *libraries, - unsigned int libraries_count, - const char *output_file, bool output_is_library, - bool optimize, bool debug, - bool verbose) + unsigned int sources_count, + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *libraries, + unsigned int libraries_count, + const char *output_file, bool output_is_library, + bool optimize, bool debug, + bool verbose) { static bool csc_tested; static bool csc_present; @@ -367,8 +368,8 @@ if (!csc_tested) { /* Test for presence of csc: - "csc -help >/dev/null 2>/dev/null \ - && ! { csc -help 2>/dev/null | grep -i chicken > /dev/null; }" */ + "csc -help >/dev/null 2>/dev/null \ + && ! { csc -help 2>/dev/null | grep -i chicken > /dev/null; }" */ char *argv[3]; pid_t child; int fd[1]; @@ -378,40 +379,40 @@ argv[1] = "-help"; argv[2] = NULL; child = create_pipe_in ("csc", "csc", argv, DEV_NULL, true, true, false, - fd); + fd); csc_present = false; if (child != -1) - { - /* Read the subprocess output, and test whether it contains the - string "chicken". */ - char c[7]; - size_t count = 0; - - csc_present = true; - while (safe_read (fd[0], &c[count], 1) > 0) - { - if (c[count] >= 'A' && c[count] <= 'Z') - c[count] += 'a' - 'A'; - count++; - if (count == 7) - { - if (memcmp (c, "chicken", 7) == 0) - csc_present = false; - c[0] = c[1]; c[1] = c[2]; c[2] = c[3]; - c[3] = c[4]; c[4] = c[5]; c[5] = c[6]; - count--; - } - } - - close (fd[0]); - - /* Remove zombie process from process list, and retrieve exit - status. */ - exitstatus = - wait_subprocess (child, "csc", false, true, true, false); - if (exitstatus != 0) - csc_present = false; - } + { + /* Read the subprocess output, and test whether it contains the + string "chicken". */ + char c[7]; + size_t count = 0; + + csc_present = true; + while (safe_read (fd[0], &c[count], 1) > 0) + { + if (c[count] >= 'A' && c[count] <= 'Z') + c[count] += 'a' - 'A'; + count++; + if (count == 7) + { + if (memcmp (c, "chicken", 7) == 0) + csc_present = false; + c[0] = c[1]; c[1] = c[2]; c[2] = c[3]; + c[3] = c[4]; c[4] = c[5]; c[5] = c[6]; + count--; + } + } + + close (fd[0]); + + /* Remove zombie process from process list, and retrieve exit + status. */ + exitstatus = + wait_subprocess (child, "csc", false, true, true, false, NULL); + if (exitstatus != 0) + csc_present = false; + } csc_tested = true; } @@ -424,75 +425,75 @@ unsigned int i; argc = - 1 + 1 + 1 + libdirs_count + libraries_count - + (optimize ? 1 : 0) + (debug ? 1 : 0) + sources_count; + 1 + 1 + 1 + libdirs_count + libraries_count + + (optimize ? 1 : 0) + (debug ? 1 : 0) + sources_count; argv = (char **) xmalloca ((argc + 1) * sizeof (char *)); argp = argv; *argp++ = "csc"; *argp++ = - (char *) (output_is_library ? "-target:library" : "-target:exe"); + (char *) (output_is_library ? "-target:library" : "-target:exe"); { - char *option = (char *) xmalloca (5 + strlen (output_file) + 1); - memcpy (option, "-out:", 5); - strcpy (option + 5, output_file); - *argp++ = option; + char *option = (char *) xmalloca (5 + strlen (output_file) + 1); + memcpy (option, "-out:", 5); + strcpy (option + 5, output_file); + *argp++ = option; } for (i = 0; i < libdirs_count; i++) - { - char *option = (char *) xmalloca (5 + strlen (libdirs[i]) + 1); - memcpy (option, "-lib:", 5); - strcpy (option + 5, libdirs[i]); - *argp++ = option; - } + { + char *option = (char *) xmalloca (5 + strlen (libdirs[i]) + 1); + memcpy (option, "-lib:", 5); + strcpy (option + 5, libdirs[i]); + *argp++ = option; + } for (i = 0; i < libraries_count; i++) - { - char *option = (char *) xmalloca (11 + strlen (libraries[i]) + 4 + 1); - memcpy (option, "-reference:", 11); - memcpy (option + 11, libraries[i], strlen (libraries[i])); - strcpy (option + 11 + strlen (libraries[i]), ".dll"); - *argp++ = option; - } + { + char *option = (char *) xmalloca (11 + strlen (libraries[i]) + 4 + 1); + memcpy (option, "-reference:", 11); + memcpy (option + 11, libraries[i], strlen (libraries[i])); + strcpy (option + 11 + strlen (libraries[i]), ".dll"); + *argp++ = option; + } if (optimize) - *argp++ = "-optimize+"; + *argp++ = "-optimize+"; if (debug) - *argp++ = "-debug+"; + *argp++ = "-debug+"; for (i = 0; i < sources_count; i++) - { - const char *source_file = sources[i]; - if (strlen (source_file) >= 10 - && memcmp (source_file + strlen (source_file) - 10, ".resources", - 10) == 0) - { - char *option = (char *) xmalloca (10 + strlen (source_file) + 1); - - memcpy (option, "-resource:", 10); - strcpy (option + 10, source_file); - *argp++ = option; - } - else - *argp++ = (char *) source_file; - } + { + const char *source_file = sources[i]; + if (strlen (source_file) >= 10 + && memcmp (source_file + strlen (source_file) - 10, ".resources", + 10) == 0) + { + char *option = (char *) xmalloca (10 + strlen (source_file) + 1); + + memcpy (option, "-resource:", 10); + strcpy (option + 10, source_file); + *argp++ = option; + } + else + *argp++ = (char *) source_file; + } *argp = NULL; /* Ensure argv length was correctly calculated. */ if (argp - argv != argc) - abort (); + abort (); if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } exitstatus = execute ("csc", "csc", argv, false, false, false, false, - true, true); + true, true, NULL); for (i = 2; i < 3 + libdirs_count + libraries_count; i++) - freea (argv[i]); + freea (argv[i]); for (i = 0; i < sources_count; i++) - if (argv[argc - sources_count + i] != sources[i]) - freea (argv[argc - sources_count + i]); + if (argv[argc - sources_count + i] != sources[i]) + freea (argv[argc - sources_count + i]); freea (argv); return (exitstatus != 0); @@ -503,14 +504,14 @@ bool compile_csharp_class (const char * const *sources, - unsigned int sources_count, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *libraries, - unsigned int libraries_count, - const char *output_file, - bool optimize, bool debug, - bool verbose) + unsigned int sources_count, + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *libraries, + unsigned int libraries_count, + const char *output_file, + bool optimize, bool debug, + bool verbose) { bool output_is_library = (strlen (output_file) >= 4 @@ -520,20 +521,20 @@ /* First try the C# implementation specified through --enable-csharp. */ #if CSHARP_CHOICE_PNET result = compile_csharp_using_pnet (sources, sources_count, - libdirs, libdirs_count, - libraries, libraries_count, - output_file, output_is_library, - optimize, debug, verbose); + libdirs, libdirs_count, + libraries, libraries_count, + output_file, output_is_library, + optimize, debug, verbose); if (result >= 0) return (bool) result; #endif #if CSHARP_CHOICE_MONO result = compile_csharp_using_mono (sources, sources_count, - libdirs, libdirs_count, - libraries, libraries_count, - output_file, output_is_library, - optimize, debug, verbose); + libdirs, libdirs_count, + libraries, libraries_count, + output_file, output_is_library, + optimize, debug, verbose); if (result >= 0) return (bool) result; #endif @@ -541,29 +542,29 @@ /* Then try the remaining C# implementations in our standard order. */ #if !CSHARP_CHOICE_PNET result = compile_csharp_using_pnet (sources, sources_count, - libdirs, libdirs_count, - libraries, libraries_count, - output_file, output_is_library, - optimize, debug, verbose); + libdirs, libdirs_count, + libraries, libraries_count, + output_file, output_is_library, + optimize, debug, verbose); if (result >= 0) return (bool) result; #endif #if !CSHARP_CHOICE_MONO result = compile_csharp_using_mono (sources, sources_count, - libdirs, libdirs_count, - libraries, libraries_count, - output_file, output_is_library, - optimize, debug, verbose); + libdirs, libdirs_count, + libraries, libraries_count, + output_file, output_is_library, + optimize, debug, verbose); if (result >= 0) return (bool) result; #endif result = compile_csharp_using_sscli (sources, sources_count, - libdirs, libdirs_count, - libraries, libraries_count, - output_file, output_is_library, - optimize, debug, verbose); + libdirs, libdirs_count, + libraries, libraries_count, + output_file, output_is_library, + optimize, debug, verbose); if (result >= 0) return (bool) result; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/csharpcomp.h gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpcomp.h --- gettext-0.17/gettext-tools/gnulib-lib/csharpcomp.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpcomp.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Compile a C# program. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -28,13 +28,13 @@ If verbose, the command to be executed will be printed. Return false if OK, true on error. */ extern bool compile_csharp_class (const char * const *sources, - unsigned int sources_count, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *libraries, - unsigned int libraries_count, - const char *output_file, - bool optimize, bool debug, - bool verbose); + unsigned int sources_count, + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *libraries, + unsigned int libraries_count, + const char *output_file, + bool optimize, bool debug, + bool verbose); #endif /* _CSHARPCOMP_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/csharpexec.c gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpexec.c --- gettext-0.17/gettext-tools/gnulib-lib/csharpexec.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpexec.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Execute a C# program. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -89,11 +89,11 @@ static int execute_csharp_using_pnet (const char *assembly_path, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *args, unsigned int nargs, - bool verbose, bool quiet, - execute_fn *executer, void *private_data) + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *args, unsigned int nargs, + bool verbose, bool quiet, + execute_fn *executer, void *private_data) { static bool ilrun_tested; static bool ilrun_present; @@ -101,7 +101,7 @@ if (!ilrun_tested) { /* Test for presence of ilrun: - "ilrun --version >/dev/null 2>/dev/null" */ + "ilrun --version >/dev/null 2>/dev/null" */ char *argv[3]; int exitstatus; @@ -109,7 +109,7 @@ argv[1] = "--version"; argv[2] = NULL; exitstatus = execute ("ilrun", "ilrun", argv, false, false, true, true, - true, false); + true, false, NULL); ilrun_present = (exitstatus == 0); ilrun_tested = true; } @@ -128,24 +128,24 @@ argp = argv; *argp++ = "ilrun"; for (i = 0; i < libdirs_count; i++) - { - *argp++ = "-L"; - *argp++ = (char *) libdirs[i]; - } + { + *argp++ = "-L"; + *argp++ = (char *) libdirs[i]; + } *argp++ = (char *) assembly_path; for (i = 0; i < nargs; i++) - *argp++ = (char *) args[i]; + *argp++ = (char *) args[i]; *argp = NULL; /* Ensure argv length was correctly calculated. */ if (argp - argv != argc) - abort (); + abort (); if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } err = executer ("ilrun", "ilrun", argv, private_data); @@ -159,11 +159,11 @@ static int execute_csharp_using_mono (const char *assembly_path, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *args, unsigned int nargs, - bool verbose, bool quiet, - execute_fn *executer, void *private_data) + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *args, unsigned int nargs, + bool verbose, bool quiet, + execute_fn *executer, void *private_data) { static bool mono_tested; static bool mono_present; @@ -171,7 +171,7 @@ if (!mono_tested) { /* Test for presence of mono: - "mono --version >/dev/null 2>/dev/null" */ + "mono --version >/dev/null 2>/dev/null" */ char *argv[3]; int exitstatus; @@ -179,7 +179,7 @@ argv[1] = "--version"; argv[2] = NULL; exitstatus = execute ("mono", "mono", argv, false, false, true, true, - true, false); + true, false, NULL); mono_present = (exitstatus == 0); mono_tested = true; } @@ -197,14 +197,14 @@ argv[0] = "mono"; argv[1] = (char *) assembly_path; for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; + argv[2 + i] = (char *) args[i]; if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } err = executer ("mono", "mono", argv, private_data); @@ -221,11 +221,11 @@ static int execute_csharp_using_sscli (const char *assembly_path, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *args, unsigned int nargs, - bool verbose, bool quiet, - execute_fn *executer, void *private_data) + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *args, unsigned int nargs, + bool verbose, bool quiet, + execute_fn *executer, void *private_data) { static bool clix_tested; static bool clix_present; @@ -233,14 +233,14 @@ if (!clix_tested) { /* Test for presence of clix: - "clix >/dev/null 2>/dev/null ; test $? = 1" */ + "clix >/dev/null 2>/dev/null ; test $? = 1" */ char *argv[2]; int exitstatus; argv[0] = "clix"; argv[1] = NULL; exitstatus = execute ("clix", "clix", argv, false, false, true, true, - true, false); + true, false, NULL); clix_present = (exitstatus == 0 || exitstatus == 1); clix_tested = true; } @@ -258,14 +258,14 @@ argv[0] = "clix"; argv[1] = (char *) assembly_path; for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; + argv[2 + i] = (char *) args[i]; if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } err = executer ("clix", "clix", argv, private_data); @@ -282,11 +282,11 @@ bool execute_csharp_program (const char *assembly_path, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *args, - bool verbose, bool quiet, - execute_fn *executer, void *private_data) + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *args, + bool verbose, bool quiet, + execute_fn *executer, void *private_data) { unsigned int nargs; int result; @@ -302,16 +302,16 @@ /* First try the C# implementation specified through --enable-csharp. */ #if CSHARP_CHOICE_PNET result = execute_csharp_using_pnet (assembly_path, libdirs, libdirs_count, - args, nargs, verbose, quiet, - executer, private_data); + args, nargs, verbose, quiet, + executer, private_data); if (result >= 0) return (bool) result; #endif #if CSHARP_CHOICE_MONO result = execute_csharp_using_mono (assembly_path, libdirs, libdirs_count, - args, nargs, verbose, quiet, - executer, private_data); + args, nargs, verbose, quiet, + executer, private_data); if (result >= 0) return (bool) result; #endif @@ -319,23 +319,23 @@ /* Then try the remaining C# implementations in our standard order. */ #if !CSHARP_CHOICE_PNET result = execute_csharp_using_pnet (assembly_path, libdirs, libdirs_count, - args, nargs, verbose, quiet, - executer, private_data); + args, nargs, verbose, quiet, + executer, private_data); if (result >= 0) return (bool) result; #endif #if !CSHARP_CHOICE_MONO result = execute_csharp_using_mono (assembly_path, libdirs, libdirs_count, - args, nargs, verbose, quiet, - executer, private_data); + args, nargs, verbose, quiet, + executer, private_data); if (result >= 0) return (bool) result; #endif result = execute_csharp_using_sscli (assembly_path, libdirs, libdirs_count, - args, nargs, verbose, quiet, - executer, private_data); + args, nargs, verbose, quiet, + executer, private_data); if (result >= 0) return (bool) result; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/csharpexec.h gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpexec.h --- gettext-0.17/gettext-tools/gnulib-lib/csharpexec.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/csharpexec.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Execute a C# program. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -21,8 +21,8 @@ #include typedef bool execute_fn (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data); + const char *prog_path, char **prog_argv, + void *private_data); /* Execute a C# program. assembly_path is the assembly's pathname (= program name with .exe). @@ -34,10 +34,10 @@ Return false if OK, true on error. If quiet, error messages will not be printed. */ extern bool execute_csharp_program (const char *assembly_path, - const char * const *libdirs, - unsigned int libdirs_count, - const char * const *args, - bool verbose, bool quiet, - execute_fn *executer, void *private_data); + const char * const *libdirs, + unsigned int libdirs_count, + const char * const *args, + bool verbose, bool quiet, + execute_fn *executer, void *private_data); #endif /* _CSHARPEXEC_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strcasecmp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasecmp.c --- gettext-0.17/gettext-tools/gnulib-lib/c-strcasecmp.c 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasecmp.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strcasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strcaseeq.h gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcaseeq.h --- gettext-0.17/gettext-tools/gnulib-lib/c-strcaseeq.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcaseeq.h 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,184 @@ +/* Optimized case-insensitive string comparison in C locale. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include "c-strcase.h" +#include "c-ctype.h" + +/* STRCASEEQ allows to optimize string comparison with a small literal string. + STRCASEEQ (s, "UTF-8", 'U','T','F','-','8',0,0,0,0) + is semantically equivalent to + c_strcasecmp (s, "UTF-8") == 0 + just faster. */ + +/* Help GCC to generate good code for string comparisons with + immediate strings. */ +#if defined (__GNUC__) && defined (__OPTIMIZE__) + +/* Case insensitive comparison of ASCII characters. */ +# if C_CTYPE_ASCII +# define CASEEQ(other,upper) \ + (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper)) +# elif C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE +# define CASEEQ(other,upper) \ + (c_isupper (upper) ? (other) == (upper) || (other) == (upper) - 'A' + 'a' : (other) == (upper)) +# else +# define CASEEQ(other,upper) \ + (c_toupper (other) == (upper)) +# endif + +static inline int +strcaseeq9 (const char *s1, const char *s2) +{ + return c_strcasecmp (s1 + 9, s2 + 9) == 0; +} + +static inline int +strcaseeq8 (const char *s1, const char *s2, char s28) +{ + if (CASEEQ (s1[8], s28)) + { + if (s28 == 0) + return 1; + else + return strcaseeq9 (s1, s2); + } + else + return 0; +} + +static inline int +strcaseeq7 (const char *s1, const char *s2, char s27, char s28) +{ + if (CASEEQ (s1[7], s27)) + { + if (s27 == 0) + return 1; + else + return strcaseeq8 (s1, s2, s28); + } + else + return 0; +} + +static inline int +strcaseeq6 (const char *s1, const char *s2, char s26, char s27, char s28) +{ + if (CASEEQ (s1[6], s26)) + { + if (s26 == 0) + return 1; + else + return strcaseeq7 (s1, s2, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[5], s25)) + { + if (s25 == 0) + return 1; + else + return strcaseeq6 (s1, s2, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq4 (const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[4], s24)) + { + if (s24 == 0) + return 1; + else + return strcaseeq5 (s1, s2, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq3 (const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[3], s23)) + { + if (s23 == 0) + return 1; + else + return strcaseeq4 (s1, s2, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq2 (const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[2], s22)) + { + if (s22 == 0) + return 1; + else + return strcaseeq3 (s1, s2, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq1 (const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[1], s21)) + { + if (s21 == 0) + return 1; + else + return strcaseeq2 (s1, s2, s22, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq0 (const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[0], s20)) + { + if (s20 == 0) + return 1; + else + return strcaseeq1 (s1, s2, s21, s22, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +#define STRCASEEQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ + strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28) + +#else + +#define STRCASEEQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ + (c_strcasecmp (s1, s2) == 0) + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strcase.h gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcase.h --- gettext-0.17/gettext-tools/gnulib-lib/c-strcase.h 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcase.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,9 +1,10 @@ /* Case-insensitive string comparison functions in C locale. - Copyright (C) 1995-1996, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strcasestr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasestr.c --- gettext-0.17/gettext-tools/gnulib-lib/c-strcasestr.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasestr.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* c-strcasestr.c -- case insensitive substring search in C locale - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -21,199 +21,57 @@ #include "c-strcasestr.h" #include -#include #include -#include "malloca.h" #include "c-ctype.h" +#include "c-strcase.h" -/* Knuth-Morris-Pratt algorithm. - See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ -static bool -knuth_morris_pratt (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = c_tolower ((unsigned char) needle[i - 1]); - - for (;;) - { - if (b == c_tolower ((unsigned char) needle[j])) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if (c_tolower ((unsigned char) needle[j]) - == c_tolower ((unsigned char) *phaystack)) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} +/* Two-Way algorithm. */ +#define RETURN_TYPE char * +#define AVAILABLE(h, h_l, j, n_l) \ + (!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \ + && ((h_l) = (j) + (n_l))) +#define CANON_ELEMENT c_tolower +#define CMP_FUNC(p1, p2, l) \ + c_strncasecmp ((const char *) (p1), (const char *) (p2), l) +#include "str-two-way.h" /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive - comparison. - Note: This function may, in multibyte locales, return success even if - strlen (haystack) < strlen (needle) ! */ + comparison from the C locale, regardless of the current locale. */ char * -c_strcasestr (const char *haystack, const char *needle) +c_strcasestr (const char *haystack_start, const char *needle_start) { - /* Be careful not to look at the entire extent of haystack or needle - until needed. This is useful because of these two cases: - - haystack may be very long, and a match of needle found early, - - needle may be very long, and not even a short initial segment of - needle may be found in haystack. */ - if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the memory - allocation, we activate the Knuth-Morris-Pratt algorithm only once - the naïve algorithm has already run for some time; more precisely, - when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - unsigned char b = c_tolower ((unsigned char) *needle); - - needle++; - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt (haystack, needle - 1, &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if (c_tolower ((unsigned char) *haystack) == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if (c_tolower ((unsigned char) *rhaystack) - != c_tolower ((unsigned char) *rneedle)) - /* Nothing in this round. */ - break; - } - } - } - } - else - return (char *) haystack; + const char *haystack = haystack_start; + const char *needle = needle_start; + size_t needle_len; /* Length of NEEDLE. */ + size_t haystack_len; /* Known minimum length of HAYSTACK. */ + bool ok = true; /* True if NEEDLE is prefix of HAYSTACK. */ + + /* Determine length of NEEDLE, and in the process, make sure + HAYSTACK is at least as long (no point processing all of a long + NEEDLE if HAYSTACK is too short). */ + while (*haystack && *needle) + ok &= (c_tolower ((unsigned char) *haystack++) + == c_tolower ((unsigned char) *needle++)); + if (*needle) + return NULL; + if (ok) + return (char *) haystack_start; + needle_len = needle - needle_start; + haystack = haystack_start + 1; + haystack_len = needle_len - 1; + + /* Perform the search. Abstract memory is considered to be an array + of 'unsigned char' values, not an array of 'char' values. See + ISO C 99 section 6.2.6.1. */ + if (needle_len < LONG_NEEDLE_THRESHOLD) + return two_way_short_needle ((const unsigned char *) haystack, + haystack_len, + (const unsigned char *) needle_start, + needle_len); + return two_way_long_needle ((const unsigned char *) haystack, haystack_len, + (const unsigned char *) needle_start, + needle_len); } + +#undef LONG_NEEDLE_THRESHOLD diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strcasestr.h gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasestr.h --- gettext-0.17/gettext-tools/gnulib-lib/c-strcasestr.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strcasestr.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Case-insensitive searching in a string in C locale. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strncasecmp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strncasecmp.c --- gettext-0.17/gettext-tools/gnulib-lib/c-strncasecmp.c 2007-01-27 03:22:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strncasecmp.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strncasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (--n == 0 || c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strstr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strstr.c --- gettext-0.17/gettext-tools/gnulib-lib/c-strstr.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strstr.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* c-strstr.c -- substring search in C locale - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2005, 2007. This program is free software: you can redistribute it and/or modify @@ -20,194 +20,13 @@ /* Specification. */ #include "c-strstr.h" -#include -#include #include -#include "malloca.h" - -/* Knuth-Morris-Pratt algorithm. - See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ -static bool -knuth_morris_pratt (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = (unsigned char) needle[i - 1]; - - for (;;) - { - if (b == (unsigned char) needle[j]) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if ((unsigned char) needle[j] == (unsigned char) *phaystack) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} - /* Find the first occurrence of NEEDLE in HAYSTACK. */ char * c_strstr (const char *haystack, const char *needle) { - /* Be careful not to look at the entire extent of haystack or needle - until needed. This is useful because of these two cases: - - haystack may be very long, and a match of needle found early, - - needle may be very long, and not even a short initial segment of - needle may be found in haystack. */ - if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the memory - allocation, we activate the Knuth-Morris-Pratt algorithm only once - the naïve algorithm has already run for some time; more precisely, - when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - unsigned char b = (unsigned char) *needle; - - needle++; - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt (haystack, needle - 1, &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if ((unsigned char) *haystack == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if ((unsigned char) *rhaystack != (unsigned char) *rneedle) - /* Nothing in this round. */ - break; - } - } - } - } - else - return (char *) haystack; + /* POSIX says that strstr() interprets the strings as byte sequences, not + as character sequences in the current locale. */ + return strstr (haystack, needle); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/c-strstr.h gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strstr.h --- gettext-0.17/gettext-tools/gnulib-lib/c-strstr.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/c-strstr.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/diffseq.h gettext-0.18.1.1/gettext-tools/gnulib-lib/diffseq.h --- gettext-0.17/gettext-tools/gnulib-lib/diffseq.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/diffseq.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,7 +1,7 @@ /* Analyze differences between two vectors. - Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006, 2007 Free - Software Foundation, Inc. + Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,14 +49,35 @@ EXTRA_CONTEXT_FIELDS Declarations of fields for 'struct context'. NOTE_DELETE(ctxt, xoff) Record the removal of the object xvec[xoff]. NOTE_INSERT(ctxt, yoff) Record the insertion of the object yvec[yoff]. + EARLY_ABORT(ctxt) (Optional) A boolean expression that triggers an + early abort of the computation. USE_HEURISTIC (Optional) Define if you want to support the - heuristic for large vectors. */ + heuristic for large vectors. + It is also possible to use this file with abstract arrays. In this case, + xvec and yvec are not represented in memory. They only exist conceptually. + In this case, the list of defines above is amended as follows: + ELEMENT Undefined. + EQUAL Undefined. + XVECREF_YVECREF_EQUAL(ctxt, xoff, yoff) + A three-argument macro: References xvec[xoff] and + yvec[yoff] and tests these elements for equality. + Before including this file, you also need to include: + #include + #include + #include "minmax.h" + */ /* Maximum value of type OFFSET. */ #define OFFSET_MAX \ ((((OFFSET)1 << (sizeof (OFFSET) * CHAR_BIT - 2)) - 1) * 2 + 1) -/* Use this to suppress gcc's `...may be used before initialized' warnings. */ +/* Default to no early abort. */ +#ifndef EARLY_ABORT +# define EARLY_ABORT(ctxt) false +#endif + +/* Use this to suppress gcc's `...may be used before initialized' warnings. + Beware: The Code argument must not contain commas. */ #ifndef IF_LINT # ifdef lint # define IF_LINT(Code) Code @@ -65,14 +86,25 @@ # endif #endif +/* As above, but when Code must contain one comma. */ +#ifndef IF_LINT2 +# ifdef lint +# define IF_LINT2(Code1, Code2) Code1, Code2 +# else +# define IF_LINT2(Code1, Code2) /* empty */ +# endif +#endif + /* * Context of comparison operation. */ struct context { + #ifdef ELEMENT /* Vectors being compared. */ - const ELEMENT *xvec; - const ELEMENT *yvec; + ELEMENT const *xvec; + ELEMENT const *yvec; + #endif /* Extra fields. */ EXTRA_CONTEXT_FIELDS @@ -146,248 +178,259 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim, bool find_minimal, struct partition *part, struct context *ctxt) { - OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ - OFFSET *const bd = ctxt->bdiag; /* Additional help for the compiler. */ - const ELEMENT *const xv = ctxt->xvec; /* Still more help for the compiler. */ - const ELEMENT *const yv = ctxt->yvec; /* And more and more . . . */ - const OFFSET dmin = xoff - ylim; /* Minimum valid diagonal. */ - const OFFSET dmax = xlim - yoff; /* Maximum valid diagonal. */ - const OFFSET fmid = xoff - yoff; /* Center diagonal of top-down search. */ - const OFFSET bmid = xlim - ylim; /* Center diagonal of bottom-up search. */ + OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ + OFFSET *const bd = ctxt->bdiag; /* Additional help for the compiler. */ +#ifdef ELEMENT + ELEMENT const *const xv = ctxt->xvec; /* Still more help for the compiler. */ + ELEMENT const *const yv = ctxt->yvec; /* And more and more . . . */ + #define XREF_YREF_EQUAL(x,y) EQUAL (xv[x], yv[y]) +#else + #define XREF_YREF_EQUAL(x,y) XVECREF_YVECREF_EQUAL (ctxt, x, y) +#endif + const OFFSET dmin = xoff - ylim; /* Minimum valid diagonal. */ + const OFFSET dmax = xlim - yoff; /* Maximum valid diagonal. */ + const OFFSET fmid = xoff - yoff; /* Center diagonal of top-down search. */ + const OFFSET bmid = xlim - ylim; /* Center diagonal of bottom-up search. */ OFFSET fmin = fmid; - OFFSET fmax = fmid; /* Limits of top-down search. */ + OFFSET fmax = fmid; /* Limits of top-down search. */ OFFSET bmin = bmid; - OFFSET bmax = bmid; /* Limits of bottom-up search. */ - OFFSET c; /* Cost. */ - bool odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd - diagonal with respect to the northwest. */ + OFFSET bmax = bmid; /* Limits of bottom-up search. */ + OFFSET c; /* Cost. */ + bool odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd + diagonal with respect to the northwest. */ fd[fmid] = xoff; bd[bmid] = xlim; for (c = 1;; ++c) { - OFFSET d; /* Active diagonal. */ + OFFSET d; /* Active diagonal. */ bool big_snake = false; /* Extend the top-down search by an edit step in each diagonal. */ if (fmin > dmin) - fd[--fmin - 1] = -1; + fd[--fmin - 1] = -1; else - ++fmin; + ++fmin; if (fmax < dmax) - fd[++fmax + 1] = -1; + fd[++fmax + 1] = -1; else - --fmax; + --fmax; for (d = fmax; d >= fmin; d -= 2) - { - OFFSET x; - OFFSET y; - OFFSET tlo = fd[d - 1]; - OFFSET thi = fd[d + 1]; - OFFSET x0 = tlo < thi ? thi : tlo + 1; - - for (x = x0, y = x0 - d; - x < xlim && y < ylim && EQUAL (xv[x], yv[y]); - x++, y++) - continue; - if (x - x0 > SNAKE_LIMIT) - big_snake = true; - fd[d] = x; - if (odd && bmin <= d && d <= bmax && bd[d] <= x) - { - part->xmid = x; - part->ymid = y; - part->lo_minimal = part->hi_minimal = true; - return; - } - } + { + OFFSET x; + OFFSET y; + OFFSET tlo = fd[d - 1]; + OFFSET thi = fd[d + 1]; + OFFSET x0 = tlo < thi ? thi : tlo + 1; + + for (x = x0, y = x0 - d; + x < xlim && y < ylim && XREF_YREF_EQUAL (x, y); + x++, y++) + continue; + if (x - x0 > SNAKE_LIMIT) + big_snake = true; + fd[d] = x; + if (odd && bmin <= d && d <= bmax && bd[d] <= x) + { + part->xmid = x; + part->ymid = y; + part->lo_minimal = part->hi_minimal = true; + return; + } + } /* Similarly extend the bottom-up search. */ if (bmin > dmin) - bd[--bmin - 1] = OFFSET_MAX; + bd[--bmin - 1] = OFFSET_MAX; else - ++bmin; + ++bmin; if (bmax < dmax) - bd[++bmax + 1] = OFFSET_MAX; + bd[++bmax + 1] = OFFSET_MAX; else - --bmax; + --bmax; for (d = bmax; d >= bmin; d -= 2) - { - OFFSET x; - OFFSET y; - OFFSET tlo = bd[d - 1]; - OFFSET thi = bd[d + 1]; - OFFSET x0 = tlo < thi ? tlo : thi - 1; - - for (x = x0, y = x0 - d; - xoff < x && yoff < y && EQUAL (xv[x - 1], yv[y - 1]); - x--, y--) - continue; - if (x0 - x > SNAKE_LIMIT) - big_snake = true; - bd[d] = x; - if (!odd && fmin <= d && d <= fmax && x <= fd[d]) - { - part->xmid = x; - part->ymid = y; - part->lo_minimal = part->hi_minimal = true; - return; - } - } + { + OFFSET x; + OFFSET y; + OFFSET tlo = bd[d - 1]; + OFFSET thi = bd[d + 1]; + OFFSET x0 = tlo < thi ? tlo : thi - 1; + + for (x = x0, y = x0 - d; + xoff < x && yoff < y && XREF_YREF_EQUAL (x - 1, y - 1); + x--, y--) + continue; + if (x0 - x > SNAKE_LIMIT) + big_snake = true; + bd[d] = x; + if (!odd && fmin <= d && d <= fmax && x <= fd[d]) + { + part->xmid = x; + part->ymid = y; + part->lo_minimal = part->hi_minimal = true; + return; + } + } if (find_minimal) - continue; + continue; #ifdef USE_HEURISTIC /* Heuristic: check occasionally for a diagonal that has made lots - of progress compared with the edit distance. If we have any - such, find the one that has made the most progress and return it - as if it had succeeded. + of progress compared with the edit distance. If we have any + such, find the one that has made the most progress and return it + as if it had succeeded. - With this heuristic, for vectors with a constant small density - of changes, the algorithm is linear in the vector size. */ + With this heuristic, for vectors with a constant small density + of changes, the algorithm is linear in the vector size. */ if (200 < c && big_snake && ctxt->heuristic) - { - OFFSET best = 0; - - for (d = fmax; d >= fmin; d -= 2) - { - OFFSET dd = d - fmid; - OFFSET x = fd[d]; - OFFSET y = x - d; - OFFSET v = (x - xoff) * 2 - dd; - - if (v > 12 * (c + (dd < 0 ? -dd : dd))) - { - if (v > best - && xoff + SNAKE_LIMIT <= x && x < xlim - && yoff + SNAKE_LIMIT <= y && y < ylim) - { - /* We have a good enough best diagonal; now insist - that it end with a significant snake. */ - int k; - - for (k = 1; EQUAL (xv[x - k], yv[y - k]); k++) - if (k == SNAKE_LIMIT) - { - best = v; - part->xmid = x; - part->ymid = y; - break; - } - } - } - } - if (best > 0) - { - part->lo_minimal = true; - part->hi_minimal = false; - return; - } - - best = 0; - for (d = bmax; d >= bmin; d -= 2) - { - OFFSET dd = d - bmid; - OFFSET x = bd[d]; - OFFSET y = x - d; - OFFSET v = (xlim - x) * 2 + dd; - - if (v > 12 * (c + (dd < 0 ? -dd : dd))) - { - if (v > best - && xoff < x && x <= xlim - SNAKE_LIMIT - && yoff < y && y <= ylim - SNAKE_LIMIT) - { - /* We have a good enough best diagonal; now insist - that it end with a significant snake. */ - int k; - - for (k = 0; EQUAL (xv[x + k], yv[y + k]); k++) - if (k == SNAKE_LIMIT - 1) - { - best = v; - part->xmid = x; - part->ymid = y; - break; - } - } - } - } - if (best > 0) - { - part->lo_minimal = false; - part->hi_minimal = true; - return; - } - } + { + { + OFFSET best = 0; + + for (d = fmax; d >= fmin; d -= 2) + { + OFFSET dd = d - fmid; + OFFSET x = fd[d]; + OFFSET y = x - d; + OFFSET v = (x - xoff) * 2 - dd; + + if (v > 12 * (c + (dd < 0 ? -dd : dd))) + { + if (v > best + && xoff + SNAKE_LIMIT <= x && x < xlim + && yoff + SNAKE_LIMIT <= y && y < ylim) + { + /* We have a good enough best diagonal; now insist + that it end with a significant snake. */ + int k; + + for (k = 1; XREF_YREF_EQUAL (x - k, y - k); k++) + if (k == SNAKE_LIMIT) + { + best = v; + part->xmid = x; + part->ymid = y; + break; + } + } + } + } + if (best > 0) + { + part->lo_minimal = true; + part->hi_minimal = false; + return; + } + } + + { + OFFSET best = 0; + + for (d = bmax; d >= bmin; d -= 2) + { + OFFSET dd = d - bmid; + OFFSET x = bd[d]; + OFFSET y = x - d; + OFFSET v = (xlim - x) * 2 + dd; + + if (v > 12 * (c + (dd < 0 ? -dd : dd))) + { + if (v > best + && xoff < x && x <= xlim - SNAKE_LIMIT + && yoff < y && y <= ylim - SNAKE_LIMIT) + { + /* We have a good enough best diagonal; now insist + that it end with a significant snake. */ + int k; + + for (k = 0; XREF_YREF_EQUAL (x + k, y + k); k++) + if (k == SNAKE_LIMIT - 1) + { + best = v; + part->xmid = x; + part->ymid = y; + break; + } + } + } + } + if (best > 0) + { + part->lo_minimal = false; + part->hi_minimal = true; + return; + } + } + } #endif /* USE_HEURISTIC */ /* Heuristic: if we've gone well beyond the call of duty, give up - and report halfway between our best results so far. */ + and report halfway between our best results so far. */ if (c >= ctxt->too_expensive) - { - OFFSET fxybest; - OFFSET fxbest IF_LINT (= 0); - OFFSET bxybest; - OFFSET bxbest IF_LINT (= 0); - - /* Find forward diagonal that maximizes X + Y. */ - fxybest = -1; - for (d = fmax; d >= fmin; d -= 2) - { - OFFSET x = MIN (fd[d], xlim); - OFFSET y = x - d; - if (ylim < y) - { - x = ylim + d; - y = ylim; - } - if (fxybest < x + y) - { - fxybest = x + y; - fxbest = x; - } - } - - /* Find backward diagonal that minimizes X + Y. */ - bxybest = OFFSET_MAX; - for (d = bmax; d >= bmin; d -= 2) - { - OFFSET x = MAX (xoff, bd[d]); - OFFSET y = x - d; - if (y < yoff) - { - x = yoff + d; - y = yoff; - } - if (x + y < bxybest) - { - bxybest = x + y; - bxbest = x; - } - } - - /* Use the better of the two diagonals. */ - if ((xlim + ylim) - bxybest < fxybest - (xoff + yoff)) - { - part->xmid = fxbest; - part->ymid = fxybest - fxbest; - part->lo_minimal = true; - part->hi_minimal = false; - } - else - { - part->xmid = bxbest; - part->ymid = bxybest - bxbest; - part->lo_minimal = false; - part->hi_minimal = true; - } - return; - } + { + OFFSET fxybest; + OFFSET fxbest IF_LINT (= 0); + OFFSET bxybest; + OFFSET bxbest IF_LINT (= 0); + + /* Find forward diagonal that maximizes X + Y. */ + fxybest = -1; + for (d = fmax; d >= fmin; d -= 2) + { + OFFSET x = MIN (fd[d], xlim); + OFFSET y = x - d; + if (ylim < y) + { + x = ylim + d; + y = ylim; + } + if (fxybest < x + y) + { + fxybest = x + y; + fxbest = x; + } + } + + /* Find backward diagonal that minimizes X + Y. */ + bxybest = OFFSET_MAX; + for (d = bmax; d >= bmin; d -= 2) + { + OFFSET x = MAX (xoff, bd[d]); + OFFSET y = x - d; + if (y < yoff) + { + x = yoff + d; + y = yoff; + } + if (x + y < bxybest) + { + bxybest = x + y; + bxbest = x; + } + } + + /* Use the better of the two diagonals. */ + if ((xlim + ylim) - bxybest < fxybest - (xoff + yoff)) + { + part->xmid = fxbest; + part->ymid = fxybest - fxbest; + part->lo_minimal = true; + part->hi_minimal = false; + } + else + { + part->xmid = bxbest; + part->ymid = bxybest - bxbest; + part->lo_minimal = false; + part->hi_minimal = true; + } + return; + } } + #undef XREF_YREF_EQUAL } @@ -402,24 +445,32 @@ If FIND_MINIMAL, find a minimal difference no matter how expensive it is. - The results are recorded by invoking NOTE_DELETE and NOTE_INSERT. */ + The results are recorded by invoking NOTE_DELETE and NOTE_INSERT. -static void + Return false if terminated normally, or true if terminated through early + abort. */ + +static bool compareseq (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim, - bool find_minimal, struct context *ctxt) + bool find_minimal, struct context *ctxt) { +#ifdef ELEMENT ELEMENT const *xv = ctxt->xvec; /* Help the compiler. */ ELEMENT const *yv = ctxt->yvec; + #define XREF_YREF_EQUAL(x,y) EQUAL (xv[x], yv[y]) +#else + #define XREF_YREF_EQUAL(x,y) XVECREF_YVECREF_EQUAL (ctxt, x, y) +#endif /* Slide down the bottom initial diagonal. */ - while (xoff < xlim && yoff < ylim && EQUAL (xv[xoff], yv[yoff])) + while (xoff < xlim && yoff < ylim && XREF_YREF_EQUAL (xoff, yoff)) { xoff++; yoff++; } /* Slide up the top initial diagonal. */ - while (xoff < xlim && yoff < ylim && EQUAL (xv[xlim - 1], yv[ylim - 1])) + while (xoff < xlim && yoff < ylim && XREF_YREF_EQUAL (xlim - 1, ylim - 1)) { xlim--; ylim--; @@ -429,26 +480,35 @@ if (xoff == xlim) while (yoff < ylim) { - NOTE_INSERT (ctxt, yoff); - yoff++; + NOTE_INSERT (ctxt, yoff); + if (EARLY_ABORT (ctxt)) + return true; + yoff++; } else if (yoff == ylim) while (xoff < xlim) { - NOTE_DELETE (ctxt, xoff); - xoff++; + NOTE_DELETE (ctxt, xoff); + if (EARLY_ABORT (ctxt)) + return true; + xoff++; } else { - struct partition part; + struct partition part IF_LINT2 (= { .xmid = 0, .ymid = 0 }); /* Find a point of correspondence in the middle of the vectors. */ diag (xoff, xlim, yoff, ylim, find_minimal, &part, ctxt); /* Use the partitions to split this problem into subproblems. */ - compareseq (xoff, part.xmid, yoff, part.ymid, part.lo_minimal, ctxt); - compareseq (part.xmid, xlim, part.ymid, ylim, part.hi_minimal, ctxt); + if (compareseq (xoff, part.xmid, yoff, part.ymid, part.lo_minimal, ctxt)) + return true; + if (compareseq (part.xmid, xlim, part.ymid, ylim, part.hi_minimal, ctxt)) + return true; } + + return false; + #undef XREF_YREF_EQUAL } #undef ELEMENT @@ -457,5 +517,7 @@ #undef EXTRA_CONTEXT_FIELDS #undef NOTE_DELETE #undef NOTE_INSERT +#undef EARLY_ABORT #undef USE_HEURISTIC +#undef XVECREF_YVECREF_EQUAL #undef OFFSET_MAX diff -Nru gettext-0.17/gettext-tools/gnulib-lib/dup2.c gettext-0.18.1.1/gettext-tools/gnulib-lib/dup2.c --- gettext-0.17/gettext-tools/gnulib-lib/dup2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/dup2.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,128 @@ +/* Duplicate an open file descriptor to a specified file descriptor. + + Copyright (C) 1999, 2004-2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Paul Eggert */ + +#include + +/* Specification. */ +#include + +#include +#include + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#if HAVE_DUP2 + +# undef dup2 + +int +rpl_dup2 (int fd, int desired_fd) +{ + int result; +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, + dup2 (fd, fd) returns 0, but all further attempts to use fd in + future dup2 calls will hang. */ + if (fd == desired_fd) + { + if ((HANDLE) _get_osfhandle (fd) == INVALID_HANDLE_VALUE) + { + errno = EBADF; + return -1; + } + return fd; + } + /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: + http://bugs.winehq.org/show_bug.cgi?id=21289 */ + if (desired_fd < 0) + { + errno = EBADF; + return -1; + } +# endif + result = dup2 (fd, desired_fd); +# ifdef __linux__ + /* Correct a Linux return value. + + */ + if (fd == desired_fd && result == (unsigned int) -EBADF) + { + errno = EBADF; + result = -1; + } +# endif + if (result == 0) + result = desired_fd; + /* Correct a cygwin 1.5.x errno value. */ + else if (result == -1 && errno == EMFILE) + errno = EBADF; +# if REPLACE_FCHDIR + if (fd != desired_fd && result != -1) + result = _gl_register_dup (fd, result); +# endif + return result; +} + +#else /* !HAVE_DUP2 */ + +/* On older platforms, dup2 did not exist. */ + +# ifndef F_DUPFD +static int +dupfd (int fd, int desired_fd) +{ + int duplicated_fd = dup (fd); + if (duplicated_fd < 0 || duplicated_fd == desired_fd) + return duplicated_fd; + else + { + int r = dupfd (fd, desired_fd); + int e = errno; + close (duplicated_fd); + errno = e; + return r; + } +} +# endif + +int +dup2 (int fd, int desired_fd) +{ + int result = fcntl (fd, F_GETFL) < 0 ? -1 : fd; + if (result == -1 || fd == desired_fd) + return result; + close (desired_fd); +# ifdef F_DUPFD + result = fcntl (fd, F_DUPFD, desired_fd); +# if REPLACE_FCHDIR + if (0 <= result) + result = _gl_register_dup (fd, result); +# endif +# else + result = dupfd (fd, desired_fd); +# endif + if (result == -1 && (errno == EMFILE || errno == EINVAL)) + errno = EBADF; + return result; +} +#endif /* !HAVE_DUP2 */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/dup-safer.c gettext-0.18.1.1/gettext-tools/gnulib-lib/dup-safer.c --- gettext-0.17/gettext-tools/gnulib-lib/dup-safer.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/dup-safer.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,34 @@ +/* Invoke dup, but avoid some glitches. + + Copyright (C) 2001, 2004-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert. */ + +#include + +#include "unistd-safer.h" + +#include +#include + +/* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or + STDERR_FILENO. */ + +int +dup_safer (int fd) +{ + return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/dup-safer-flag.c gettext-0.18.1.1/gettext-tools/gnulib-lib/dup-safer-flag.c --- gettext-0.17/gettext-tools/gnulib-lib/dup-safer-flag.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/dup-safer-flag.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,44 @@ +/* Duplicate a file descriptor result, avoiding clobbering + STD{IN,OUT,ERR}_FILENO, with specific flags. + + Copyright (C) 2001, 2004-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert and Eric Blake. */ + +#include + +/* Specification. */ +#include "unistd-safer.h" + +#include +#include + +#include "cloexec.h" + +#ifndef O_CLOEXEC +# define O_CLOEXEC 0 +#endif + +/* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or + STDERR_FILENO. If FLAG contains O_CLOEXEC, behave like + fcntl(F_DUPFD_CLOEXEC) rather than fcntl(F_DUPFD). */ + +int +dup_safer_flag (int fd, int flag) +{ + return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD, + STDERR_FILENO + 1); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/errno.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/errno.in.h --- gettext-0.17/gettext-tools/gnulib-lib/errno.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/errno.in.h 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,160 @@ +/* A POSIX-like . + + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_ERRNO_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ + +#ifndef _GL_ERRNO_H +#define _GL_ERRNO_H + + +/* On native Windows platforms, many macros are not defined. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */ +# define EWOULDBLOCK EAGAIN + +/* Values >= 100 seem safe to use. */ +# define ETXTBSY 100 +# define GNULIB_defined_ETXTBSY 1 + +/* These are intentionally the same values as the WSA* error numbers, defined + in . */ +# define EINPROGRESS 10036 +# define EALREADY 10037 +# define ENOTSOCK 10038 +# define EDESTADDRREQ 10039 +# define EMSGSIZE 10040 +# define EPROTOTYPE 10041 +# define ENOPROTOOPT 10042 +# define EPROTONOSUPPORT 10043 +# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ +# define EOPNOTSUPP 10045 +# define EPFNOSUPPORT 10046 /* not required by POSIX */ +# define EAFNOSUPPORT 10047 +# define EADDRINUSE 10048 +# define EADDRNOTAVAIL 10049 +# define ENETDOWN 10050 +# define ENETUNREACH 10051 +# define ENETRESET 10052 +# define ECONNABORTED 10053 +# define ECONNRESET 10054 +# define ENOBUFS 10055 +# define EISCONN 10056 +# define ENOTCONN 10057 +# define ESHUTDOWN 10058 /* not required by POSIX */ +# define ETOOMANYREFS 10059 /* not required by POSIX */ +# define ETIMEDOUT 10060 +# define ECONNREFUSED 10061 +# define ELOOP 10062 +# define EHOSTDOWN 10064 /* not required by POSIX */ +# define EHOSTUNREACH 10065 +# define EPROCLIM 10067 /* not required by POSIX */ +# define EUSERS 10068 /* not required by POSIX */ +# define EDQUOT 10069 +# define ESTALE 10070 +# define EREMOTE 10071 /* not required by POSIX */ +# define GNULIB_defined_ESOCK 1 + +# endif + + +/* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros + EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ +# if @EMULTIHOP_HIDDEN@ +# define EMULTIHOP @EMULTIHOP_VALUE@ +# define GNULIB_defined_EMULTIHOP 1 +# endif +# if @ENOLINK_HIDDEN@ +# define ENOLINK @ENOLINK_VALUE@ +# define GNULIB_defined_ENOLINK 1 +# endif +# if @EOVERFLOW_HIDDEN@ +# define EOVERFLOW @EOVERFLOW_VALUE@ +# define GNULIB_defined_EOVERFLOW 1 +# endif + + +/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, + EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. + Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, + HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. + + Note: When one of these systems defines some of these macros some day, + binaries will have to be recompiled so that they recognizes the new + errno values from the system. */ + +# ifndef ENOMSG +# define ENOMSG 2000 +# define GNULIB_defined_ENOMSG 1 +# endif + +# ifndef EIDRM +# define EIDRM 2001 +# define GNULIB_defined_EIDRM 1 +# endif + +# ifndef ENOLINK +# define ENOLINK 2002 +# define GNULIB_defined_ENOLINK 1 +# endif + +# ifndef EPROTO +# define EPROTO 2003 +# define GNULIB_defined_EPROTO 1 +# endif + +# ifndef EMULTIHOP +# define EMULTIHOP 2004 +# define GNULIB_defined_EMULTIHOP 1 +# endif + +# ifndef EBADMSG +# define EBADMSG 2005 +# define GNULIB_defined_EBADMSG 1 +# endif + +# ifndef EOVERFLOW +# define EOVERFLOW 2006 +# define GNULIB_defined_EOVERFLOW 1 +# endif + +# ifndef ENOTSUP +# define ENOTSUP 2007 +# define GNULIB_defined_ENOTSUP 1 +# endif + +# ifndef ESTALE +# define ESTALE 2009 +# define GNULIB_defined_ESTALE 1 +# endif + +# ifndef ECANCELED +# define ECANCELED 2008 +# define GNULIB_defined_ECANCELED 1 +# endif + + +#endif /* _GL_ERRNO_H */ +#endif /* _GL_ERRNO_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/error.c gettext-0.18.1.1/gettext-tools/gnulib-lib/error.c --- gettext-0.17/gettext-tools/gnulib-lib/error.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/error.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Error handler for noninteractive utilities - Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -70,8 +70,8 @@ extern void __error (int status, int errnum, const char *message, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void __error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, - ...) + unsigned int line_number, const char *message, + ...) __attribute__ ((__format__ (__printf__, 5, 6)));; # define error __error # define error_at_line __error_at_line @@ -85,6 +85,18 @@ #else /* not _LIBC */ +# include +# include + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +# endif + +/* The gnulib override of fcntl is not needed in this file. */ +# undef fcntl + # if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" @@ -98,8 +110,52 @@ # if HAVE_STRERROR_R || defined strerror_r # define __strerror_r strerror_r -# endif /* HAVE_STRERROR_R || defined strerror_r */ -#endif /* not _LIBC */ +# endif /* HAVE_STRERROR_R || defined strerror_r */ +#endif /* not _LIBC */ + +#if !_LIBC +/* Return non-zero if FD is open. */ +static inline int +is_open (int fd) +{ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32: The initial state of unassigned standard file descriptors is + that they are open but point to an INVALID_HANDLE_VALUE. There is no + fcntl, and the gnulib replacement fcntl does not support F_GETFL. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +# else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +# endif +} +#endif + +static inline void +flush_stdout (void) +{ +#if !_LIBC + int stdout_fd; + +# if GNULIB_FREOPEN_SAFER + /* Use of gnulib's freopen-safer module normally ensures that + fileno (stdout) == 1 + whenever stdout is open. */ + stdout_fd = STDOUT_FILENO; +# else + /* POSIX states that fileno (stdout) after fclose is unspecified. But in + practice it is not a problem, because stdout is statically allocated and + the fd of a FILE stream is stored as a field in its allocated memory. */ + stdout_fd = fileno (stdout); +# endif + /* POSIX states that fflush (stdout) after fclose is unspecified; it + is safe in glibc, but not on all other platforms. fflush (NULL) + is always defined, but too draconian. */ + if (0 <= stdout_fd && is_open (stdout_fd)) +#endif + fflush (stdout); +} static void print_errno_message (int errnum) @@ -147,58 +203,58 @@ bool use_malloc = false; while (1) - { - if (__libc_use_alloca (len * sizeof (wchar_t))) - wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); - else - { - if (!use_malloc) - wmessage = NULL; - - wchar_t *p = (wchar_t *) realloc (wmessage, - len * sizeof (wchar_t)); - if (p == NULL) - { - free (wmessage); - fputws_unlocked (L"out of memory\n", stderr); - return; - } - wmessage = p; - use_malloc = true; - } - - memset (&st, '\0', sizeof (st)); - tmp = message; - - res = mbsrtowcs (wmessage, &tmp, len, &st); - if (res != len) - break; - - if (__builtin_expect (len >= SIZE_MAX / 2, 0)) - { - /* This really should not happen if everything is fine. */ - res = (size_t) -1; - break; - } + { + if (__libc_use_alloca (len * sizeof (wchar_t))) + wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); + else + { + if (!use_malloc) + wmessage = NULL; + + wchar_t *p = (wchar_t *) realloc (wmessage, + len * sizeof (wchar_t)); + if (p == NULL) + { + free (wmessage); + fputws_unlocked (L"out of memory\n", stderr); + return; + } + wmessage = p; + use_malloc = true; + } + + memset (&st, '\0', sizeof (st)); + tmp = message; + + res = mbsrtowcs (wmessage, &tmp, len, &st); + if (res != len) + break; + + if (__builtin_expect (len >= SIZE_MAX / 2, 0)) + { + /* This really should not happen if everything is fine. */ + res = (size_t) -1; + break; + } - len *= 2; - } + len *= 2; + } if (res == (size_t) -1) - { - /* The string cannot be converted. */ - if (use_malloc) - { - free (wmessage); - use_malloc = false; - } - wmessage = (wchar_t *) L"???"; - } + { + /* The string cannot be converted. */ + if (use_malloc) + { + free (wmessage); + use_malloc = false; + } + wmessage = (wchar_t *) L"???"; + } __vfwprintf (stderr, wmessage, args); if (use_malloc) - free (wmessage); + free (wmessage); } else #endif @@ -233,10 +289,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -268,7 +324,7 @@ void error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, ...) + unsigned int line_number, const char *message, ...) { va_list args; @@ -278,10 +334,10 @@ static unsigned int old_line_number; if (old_line_number == line_number - && (file_name == old_file_name - || strcmp (old_file_name, file_name) == 0)) - /* Simply return and print nothing. */ - return; + && (file_name == old_file_name + || strcmp (old_file_name, file_name) == 0)) + /* Simply return and print nothing. */ + return; old_file_name = file_name; old_line_number = line_number; @@ -292,10 +348,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -312,10 +368,10 @@ #if _LIBC __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #else fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #endif va_start (args, message); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/error.h gettext-0.18.1.1/gettext-tools/gnulib-lib/error.h --- gettext-0.17/gettext-tools/gnulib-lib/error.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/error.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,6 @@ /* Declaration for error-reporting function - Copyright (C) 1995, 1996, 1997, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 2003, 2006, 2008, 2009, 2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -19,19 +20,18 @@ #define _ERROR_H 1 #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -43,7 +43,7 @@ __attribute__ ((__format__ (__printf__, 3, 4))); extern void error_at_line (int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) + unsigned int __lineno, const char *__format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); /* If NULL, error will flush stdout, then print on stderr the program @@ -58,7 +58,7 @@ variable controls whether this mode is selected or not. */ extern DLL_VARIABLE int error_one_per_line; -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/execute.c gettext-0.18.1.1/gettext-tools/gnulib-lib/execute.c --- gettext-0.17/gettext-tools/gnulib-lib/execute.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/execute.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Creation of autonomous subprocesses. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -35,7 +35,7 @@ #define _(str) gettext (str) -#if defined _MSC_VER || defined __MINGW32__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Woe32 API. */ # include @@ -44,30 +44,10 @@ #else /* Unix API. */ -# if HAVE_POSIX_SPAWN -# include -# else -# if HAVE_VFORK_H -# include -# endif -# endif +# include #endif -#if ! HAVE_ENVIRON_DECL -extern char **environ; -#endif - -#ifndef STDIN_FILENO -# define STDIN_FILENO 0 -#endif -#ifndef STDOUT_FILENO -# define STDOUT_FILENO 1 -#endif -#ifndef STDERR_FILENO -# define STDERR_FILENO 2 -#endif - /* The results of open() in this file are not used with fchdir, therefore save some unnecessary work in fchdir.c. */ #undef open @@ -118,12 +98,13 @@ creator receives a catchable fatal signal. */ int execute (const char *progname, - const char *prog_path, char **prog_argv, - bool ignore_sigpipe, - bool null_stdin, bool null_stdout, bool null_stderr, - bool slave_process, bool exit_on_error) + const char *prog_path, char **prog_argv, + bool ignore_sigpipe, + bool null_stdin, bool null_stdout, bool null_stderr, + bool slave_process, bool exit_on_error, + int *termsigp) { -#if defined _MSC_VER || defined __MINGW32__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Woe32 API. */ int orig_stdin; @@ -133,15 +114,16 @@ int nullinfd; int nulloutfd; + /* FIXME: Need to free memory allocated by prepare_spawn. */ prog_argv = prepare_spawn (prog_argv); /* Save standard file handles of parent process. */ if (null_stdin) - orig_stdin = dup_noinherit (STDIN_FILENO); + orig_stdin = dup_safer_noinherit (STDIN_FILENO); if (null_stdout) - orig_stdout = dup_noinherit (STDOUT_FILENO); + orig_stdout = dup_safer_noinherit (STDOUT_FILENO); if (null_stderr) - orig_stderr = dup_noinherit (STDERR_FILENO); + orig_stderr = dup_safer_noinherit (STDERR_FILENO); exitcode = -1; /* Create standard file handles of child process. */ @@ -149,21 +131,41 @@ nulloutfd = -1; if ((!null_stdin || ((nullinfd = open ("NUL", O_RDONLY, 0)) >= 0 - && (nullinfd == STDIN_FILENO - || (dup2 (nullinfd, STDIN_FILENO) >= 0 - && close (nullinfd) >= 0)))) + && (nullinfd == STDIN_FILENO + || (dup2 (nullinfd, STDIN_FILENO) >= 0 + && close (nullinfd) >= 0)))) && (!(null_stdout || null_stderr) - || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0 - && (!null_stdout - || nulloutfd == STDOUT_FILENO - || dup2 (nulloutfd, STDOUT_FILENO) >= 0) - && (!null_stderr - || nulloutfd == STDERR_FILENO - || dup2 (nulloutfd, STDERR_FILENO) >= 0) - && ((null_stdout && nulloutfd == STDOUT_FILENO) - || (null_stderr && nulloutfd == STDERR_FILENO) - || close (nulloutfd) >= 0)))) - exitcode = spawnvp (P_WAIT, prog_path, prog_argv); + || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0 + && (!null_stdout + || nulloutfd == STDOUT_FILENO + || dup2 (nulloutfd, STDOUT_FILENO) >= 0) + && (!null_stderr + || nulloutfd == STDERR_FILENO + || dup2 (nulloutfd, STDERR_FILENO) >= 0) + && ((null_stdout && nulloutfd == STDOUT_FILENO) + || (null_stderr && nulloutfd == STDERR_FILENO) + || close (nulloutfd) >= 0)))) + /* Use spawnvpe and pass the environment explicitly. This is needed if + the program has modified the environment using putenv() or [un]setenv(). + On Windows, programs have two environments, one in the "environment + block" of the process and managed through SetEnvironmentVariable(), and + one inside the process, in the location retrieved by the 'environ' + macro. When using spawnvp() without 'e', the child process inherits a + copy of the environment block - ignoring the effects of putenv() and + [un]setenv(). */ + { + exitcode = spawnvpe (P_WAIT, prog_path, (const char **) prog_argv, + (const char **) environ); + if (exitcode < 0 && errno == ENOEXEC) + { + /* prog is not an native executable. Try to execute it as a + shell script. Note that prepare_spawn() has already prepended + a hidden element "sh.exe" to prog_argv. */ + --prog_argv; + exitcode = spawnvpe (P_WAIT, prog_argv[0], (const char **) prog_argv, + (const char **) environ); + } + } if (nulloutfd >= 0) close (nulloutfd); if (nullinfd >= 0) @@ -171,17 +173,20 @@ /* Restore standard file handles of parent process. */ if (null_stderr) - dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr); + undup_safer_noinherit (orig_stderr, STDERR_FILENO); if (null_stdout) - dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout); + undup_safer_noinherit (orig_stdout, STDOUT_FILENO); if (null_stdin) - dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin); + undup_safer_noinherit (orig_stdin, STDIN_FILENO); + + if (termsigp != NULL) + *termsigp = 0; if (exitcode == -1) { if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess failed"), progname); + error (exit_on_error ? EXIT_FAILURE : 0, errno, + _("%s subprocess failed"), progname); return 127; } @@ -195,7 +200,6 @@ subprocess to exit with return code 127. It is implementation dependent which error is reported which way. We treat both cases as equivalent. */ -#if HAVE_POSIX_SPAWN sigset_t blocked_signals; posix_spawn_file_actions_t actions; bool actions_allocated; @@ -203,11 +207,7 @@ bool attrs_allocated; int err; pid_t child; -#else - int child; -#endif -#if HAVE_POSIX_SPAWN if (slave_process) { sigprocmask (SIG_SETMASK, NULL, &blocked_signals); @@ -217,92 +217,54 @@ attrs_allocated = false; if ((err = posix_spawn_file_actions_init (&actions)) != 0 || (actions_allocated = true, - (null_stdin - && (err = posix_spawn_file_actions_addopen (&actions, - STDIN_FILENO, - "/dev/null", O_RDONLY, - 0)) - != 0) - || (null_stdout - && (err = posix_spawn_file_actions_addopen (&actions, - STDOUT_FILENO, - "/dev/null", O_RDWR, - 0)) - != 0) - || (null_stderr - && (err = posix_spawn_file_actions_addopen (&actions, - STDERR_FILENO, - "/dev/null", O_RDWR, - 0)) - != 0) - || (slave_process - && ((err = posix_spawnattr_init (&attrs)) != 0 - || (attrs_allocated = true, - (err = posix_spawnattr_setsigmask (&attrs, - &blocked_signals)) - != 0 - || (err = posix_spawnattr_setflags (&attrs, - POSIX_SPAWN_SETSIGMASK)) - != 0))) - || (err = posix_spawnp (&child, prog_path, &actions, - attrs_allocated ? &attrs : NULL, prog_argv, - environ)) - != 0)) + (null_stdin + && (err = posix_spawn_file_actions_addopen (&actions, + STDIN_FILENO, + "/dev/null", O_RDONLY, + 0)) + != 0) + || (null_stdout + && (err = posix_spawn_file_actions_addopen (&actions, + STDOUT_FILENO, + "/dev/null", O_RDWR, + 0)) + != 0) + || (null_stderr + && (err = posix_spawn_file_actions_addopen (&actions, + STDERR_FILENO, + "/dev/null", O_RDWR, + 0)) + != 0) + || (slave_process + && ((err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, + &blocked_signals)) + != 0 + || (err = posix_spawnattr_setflags (&attrs, + POSIX_SPAWN_SETSIGMASK)) + != 0))) + || (err = posix_spawnp (&child, prog_path, &actions, + attrs_allocated ? &attrs : NULL, prog_argv, + environ)) + != 0)) { if (actions_allocated) - posix_spawn_file_actions_destroy (&actions); + posix_spawn_file_actions_destroy (&actions); if (attrs_allocated) - posix_spawnattr_destroy (&attrs); + posix_spawnattr_destroy (&attrs); if (slave_process) - unblock_fatal_signals (); + unblock_fatal_signals (); + if (termsigp != NULL) + *termsigp = 0; if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, err, - _("%s subprocess failed"), progname); + error (exit_on_error ? EXIT_FAILURE : 0, err, + _("%s subprocess failed"), progname); return 127; } posix_spawn_file_actions_destroy (&actions); if (attrs_allocated) posix_spawnattr_destroy (&attrs); -#else - if (slave_process) - block_fatal_signals (); - /* Use vfork() instead of fork() for efficiency. */ - if ((child = vfork ()) == 0) - { - /* Child process code. */ - int nullinfd; - int nulloutfd; - - if ((!null_stdin - || ((nullinfd = open ("/dev/null", O_RDONLY, 0)) >= 0 - && (nullinfd == STDIN_FILENO - || (dup2 (nullinfd, STDIN_FILENO) >= 0 - && close (nullinfd) >= 0)))) - && (!(null_stdout || null_stderr) - || ((nulloutfd = open ("/dev/null", O_RDWR, 0)) >= 0 - && (!null_stdout - || nulloutfd == STDOUT_FILENO - || dup2 (nulloutfd, STDOUT_FILENO) >= 0) - && (!null_stderr - || nulloutfd == STDERR_FILENO - || dup2 (nulloutfd, STDERR_FILENO) >= 0) - && ((null_stdout && nulloutfd == STDOUT_FILENO) - || (null_stderr && nulloutfd == STDERR_FILENO) - || close (nulloutfd) >= 0))) - && (!slave_process || (unblock_fatal_signals (), true))) - execvp (prog_path, prog_argv); - _exit (127); - } - if (child == -1) - { - if (slave_process) - unblock_fatal_signals (); - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess failed"), progname); - return 127; - } -#endif if (slave_process) { register_slave_subprocess (child); @@ -310,7 +272,7 @@ } return wait_subprocess (child, progname, ignore_sigpipe, null_stderr, - slave_process, exit_on_error); + slave_process, exit_on_error, termsigp); #endif } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/execute.h gettext-0.18.1.1/gettext-tools/gnulib-lib/execute.h --- gettext-0.17/gettext-tools/gnulib-lib/execute.h 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/execute.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Creation of autonomous subprocesses. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -29,12 +29,16 @@ purpose is to write to standard output. If slave_process is true, the child process will be terminated when its creator receives a catchable fatal signal. + If termsigp is not NULL, *termsig will be set to the signal that terminated + the subprocess (if supported by the platform: not on native Windows + platforms), otherwise 0. It is recommended that no signal is blocked or ignored while execute() is called. See pipe.h for the reason. */ extern int execute (const char *progname, - const char *prog_path, char **prog_argv, - bool ignore_sigpipe, - bool null_stdin, bool null_stdout, bool null_stderr, - bool slave_process, bool exit_on_error); + const char *prog_path, char **prog_argv, + bool ignore_sigpipe, + bool null_stdin, bool null_stdout, bool null_stderr, + bool slave_process, bool exit_on_error, + int *termsigp); #endif /* _EXECUTE_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/exitfail.c gettext-0.18.1.1/gettext-tools/gnulib-lib/exitfail.c --- gettext-0.17/gettext-tools/gnulib-lib/exitfail.c 2007-10-07 20:29:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/exitfail.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,6 +1,7 @@ /* Failure exit status - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006, 2007, 2009, 2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/exitfail.h gettext-0.18.1.1/gettext-tools/gnulib-lib/exitfail.h --- gettext-0.17/gettext-tools/gnulib-lib/exitfail.h 2007-10-07 20:29:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/exitfail.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fatal-signal.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fatal-signal.c --- gettext-0.17/gettext-tools/gnulib-lib/fatal-signal.c 2007-10-07 20:29:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fatal-signal.c 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Emergency actions in case of a fatal signal. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -26,11 +26,11 @@ #include #include +#include "sig-handler.h" #include "xalloc.h" #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) - /* ========================================================================= */ @@ -88,18 +88,16 @@ static bool fatal_signals_initialized = false; if (!fatal_signals_initialized) { -#if HAVE_SIGACTION size_t i; for (i = 0; i < num_fatal_signals; i++) - { - struct sigaction action; + { + struct sigaction action; - if (sigaction (fatal_signals[i], NULL, &action) >= 0 - && action.sa_handler == SIG_IGN) - fatal_signals[i] = -1; - } -#endif + if (sigaction (fatal_signals[i], NULL, &action) >= 0 + && get_handler (&action) == SIG_IGN) + fatal_signals[i] = -1; + } fatal_signals_initialized = true; } @@ -127,6 +125,11 @@ static size_t actions_allocated = SIZEOF (static_actions); +/* The saved signal handlers. + Size 32 would not be sufficient: On HP-UX, SIGXCPU = 33, SIGXFSZ = 34. */ +static struct sigaction saved_sigactions[64]; + + /* Uninstall the handlers. */ static inline void uninstall_handlers () @@ -135,7 +138,12 @@ for (i = 0; i < num_fatal_signals; i++) if (fatal_signals[i] >= 0) - signal (fatal_signals[i], SIG_DFL); + { + int sig = fatal_signals[i]; + if (saved_sigactions[sig].sa_handler == SIG_IGN) + saved_sigactions[sig].sa_handler = SIG_DFL; + sigaction (sig, &saved_sigactions[sig], NULL); + } } @@ -149,7 +157,7 @@ action_t action; size_t n = actions_count; if (n == 0) - break; + break; n--; actions_count = n; action = actions[n].action; @@ -158,15 +166,12 @@ } /* Now execute the signal's default action. - If signal() blocks the signal being delivered for the duration of the - signal handler's execution, the re-raised signal is delivered when this - handler returns; otherwise it is delivered already during raise(). */ + If the signal being delivered was blocked, the re-raised signal would be + delivered when this handler returns. But the way we install this handler, + no signal is blocked, and the re-raised signal is delivered already + during raise(). */ uninstall_handlers (); -#if HAVE_RAISE raise (sig); -#else - kill (getpid (), sig); -#endif } @@ -175,10 +180,23 @@ install_handlers () { size_t i; + struct sigaction action; + action.sa_handler = &fatal_signal_handler; + /* If we get a fatal signal while executing fatal_signal_handler, enter + fatal_signal_handler recursively, since it is reentrant. Hence no + SA_RESETHAND. */ + action.sa_flags = SA_NODEFER; + sigemptyset (&action.sa_mask); for (i = 0; i < num_fatal_signals; i++) if (fatal_signals[i] >= 0) - signal (fatal_signals[i], &fatal_signal_handler); + { + int sig = fatal_signals[i]; + + if (!(sig < sizeof (saved_sigactions) / sizeof (saved_sigactions[0]))) + abort (); + sigaction (sig, &action, &saved_sigactions[sig]); + } } @@ -198,25 +216,25 @@ if (actions_count == actions_allocated) { /* Extend the actions array. Note that we cannot use xrealloc(), - because then the cleanup() function could access an already - deallocated array. */ + because then the cleanup() function could access an already + deallocated array. */ actions_entry_t *old_actions = actions; size_t old_actions_allocated = actions_allocated; size_t new_actions_allocated = 2 * actions_allocated; actions_entry_t *new_actions = - XNMALLOC (new_actions_allocated, actions_entry_t); + XNMALLOC (new_actions_allocated, actions_entry_t); size_t k; /* Don't use memcpy() here, because memcpy takes non-volatile arguments - and is therefore not guaranteed to complete all memory stores before - the next statement. */ + and is therefore not guaranteed to complete all memory stores before + the next statement. */ for (k = 0; k < old_actions_allocated; k++) - new_actions[k] = old_actions[k]; + new_actions[k] = old_actions[k]; actions = new_actions; actions_allocated = new_actions_allocated; /* Now we can free the old actions array. */ if (old_actions != static_actions) - free (old_actions); + free (old_actions); } /* The two uses of 'volatile' in the types above (and ISO C 99 section 5.1.2.3.(5)) ensure that we increment the actions_count only after @@ -244,8 +262,8 @@ sigemptyset (&fatal_signal_set); for (i = 0; i < num_fatal_signals; i++) - if (fatal_signals[i] >= 0) - sigaddset (&fatal_signal_set, fatal_signals[i]); + if (fatal_signals[i] >= 0) + sigaddset (&fatal_signal_set, fatal_signals[i]); fatal_signal_set_initialized = true; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fatal-signal.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fatal-signal.h --- gettext-0.17/gettext-tools/gnulib-lib/fatal-signal.h 2007-10-07 20:29:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fatal-signal.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,5 +1,5 @@ /* Emergency actions in case of a fatal signal. - Copyright (C) 2003-2004 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fcntl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fcntl.c --- gettext-0.17/gettext-tools/gnulib-lib/fcntl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fcntl.c 2010-05-24 09:42:36.000000000 +0000 @@ -0,0 +1,294 @@ +/* Provide file descriptor control. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include +#include + +#if !HAVE_FCNTL +# define rpl_fcntl fcntl +#endif +#undef fcntl + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include + +/* Upper bound on getdtablesize(). See lib/getdtablesize.c. */ +# define OPEN_MAX_MAX 0x10000 + +/* Duplicate OLDFD into the first available slot of at least NEWFD, + which must be positive, with FLAGS determining whether the duplicate + will be inheritable. */ +static int +dupfd (int oldfd, int newfd, int flags) +{ + /* Mingw has no way to create an arbitrary fd. Iterate until all + file descriptors less than newfd are filled up. */ + HANDLE curr_process = GetCurrentProcess (); + HANDLE old_handle = (HANDLE) _get_osfhandle (oldfd); + unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; + unsigned int fds_to_close_bound = 0; + int result; + BOOL inherit = flags & O_CLOEXEC ? FALSE : TRUE; + int mode; + + if (newfd < 0 || getdtablesize () <= newfd) + { + errno = EINVAL; + return -1; + } + if (old_handle == INVALID_HANDLE_VALUE + || (mode = setmode (oldfd, O_BINARY)) == -1) + { + /* oldfd is not open, or is an unassigned standard file + descriptor. */ + errno = EBADF; + return -1; + } + setmode (oldfd, mode); + flags |= mode; + + for (;;) + { + HANDLE new_handle; + int duplicated_fd; + unsigned int index; + + if (!DuplicateHandle (curr_process, /* SourceProcessHandle */ + old_handle, /* SourceHandle */ + curr_process, /* TargetProcessHandle */ + (PHANDLE) &new_handle, /* TargetHandle */ + (DWORD) 0, /* DesiredAccess */ + inherit, /* InheritHandle */ + DUPLICATE_SAME_ACCESS)) /* Options */ + { + /* TODO: Translate GetLastError () into errno. */ + errno = EMFILE; + result = -1; + break; + } + duplicated_fd = _open_osfhandle ((long) new_handle, flags); + if (duplicated_fd < 0) + { + CloseHandle (new_handle); + errno = EMFILE; + result = -1; + break; + } + if (newfd <= duplicated_fd) + { + result = duplicated_fd; + break; + } + + /* Set the bit duplicated_fd in fds_to_close[]. */ + index = (unsigned int) duplicated_fd / CHAR_BIT; + if (fds_to_close_bound <= index) + { + if (sizeof fds_to_close <= index) + /* Need to increase OPEN_MAX_MAX. */ + abort (); + memset (fds_to_close + fds_to_close_bound, '\0', + index + 1 - fds_to_close_bound); + fds_to_close_bound = index + 1; + } + fds_to_close[index] |= 1 << ((unsigned int) duplicated_fd % CHAR_BIT); + } + + /* Close the previous fds that turned out to be too small. */ + { + int saved_errno = errno; + unsigned int duplicated_fd; + + for (duplicated_fd = 0; + duplicated_fd < fds_to_close_bound * CHAR_BIT; + duplicated_fd++) + if ((fds_to_close[duplicated_fd / CHAR_BIT] + >> (duplicated_fd % CHAR_BIT)) + & 1) + close (duplicated_fd); + + errno = saved_errno; + } + +# if REPLACE_FCHDIR + if (0 <= result) + result = _gl_register_dup (oldfd, result); +# endif + return result; +} +#endif /* W32 */ + +/* Perform the specified ACTION on the file descriptor FD, possibly + using the argument ARG further described below. This replacement + handles the following actions, and forwards all others on to the + native fcntl. An unrecognized ACTION returns -1 with errno set to + EINVAL. + + F_DUPFD - duplicate FD, with int ARG being the minimum target fd. + If successful, return the duplicate, which will be inheritable; + otherwise return -1 and set errno. + + F_DUPFD_CLOEXEC - duplicate FD, with int ARG being the minimum + target fd. If successful, return the duplicate, which will not be + inheritable; otherwise return -1 and set errno. + + F_GETFD - ARG need not be present. If successful, return a + non-negative value containing the descriptor flags of FD (only + FD_CLOEXEC is portable, but other flags may be present); otherwise + return -1 and set errno. */ + +int +rpl_fcntl (int fd, int action, /* arg */...) +{ + va_list arg; + int result = -1; + va_start (arg, action); + switch (action) + { + +#if !HAVE_FCNTL + case F_DUPFD: + { + int target = va_arg (arg, int); + result = dupfd (fd, target, 0); + break; + } +#elif FCNTL_DUPFD_BUGGY || REPLACE_FCHDIR + case F_DUPFD: + { + int target = va_arg (arg, int); + /* Detect invalid target; needed for cygwin 1.5.x. */ + if (target < 0 || getdtablesize () <= target) + errno = EINVAL; + else + { + result = fcntl (fd, action, target); +# if REPLACE_FCHDIR + if (0 <= result) + result = _gl_register_dup (fd, result); +# endif + } + break; + } /* F_DUPFD */ +#endif /* FCNTL_DUPFD_BUGGY || REPLACE_FCHDIR */ + + case F_DUPFD_CLOEXEC: + { + int target = va_arg (arg, int); + +#if !HAVE_FCNTL + result = dupfd (fd, target, O_CLOEXEC); + break; +#else /* HAVE_FCNTL */ + /* Try the system call first, if the headers claim it exists + (that is, if GNULIB_defined_F_DUPFD_CLOEXEC is 0), since we + may be running with a glibc that has the macro but with an + older kernel that does not support it. Cache the + information on whether the system call really works, but + avoid caching failure if the corresponding F_DUPFD fails + for any reason. 0 = unknown, 1 = yes, -1 = no. */ + static int have_dupfd_cloexec = GNULIB_defined_F_DUPFD_CLOEXEC ? -1 : 0; + if (0 <= have_dupfd_cloexec) + { + result = fcntl (fd, action, target); + if (0 <= result || errno != EINVAL) + { + have_dupfd_cloexec = 1; +# if REPLACE_FCHDIR + if (0 <= result) + result = _gl_register_dup (fd, result); +# endif + } + else + { + result = rpl_fcntl (fd, F_DUPFD, target); + if (result < 0) + break; + have_dupfd_cloexec = -1; + } + } + else + result = rpl_fcntl (fd, F_DUPFD, target); + if (0 <= result && have_dupfd_cloexec == -1) + { + int flags = fcntl (result, F_GETFD); + if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) + { + int saved_errno = errno; + close (result); + errno = saved_errno; + result = -1; + } + } + break; +#endif /* HAVE_FCNTL */ + } /* F_DUPFD_CLOEXEC */ + +#if !HAVE_FCNTL + case F_GETFD: + { +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + HANDLE handle = (HANDLE) _get_osfhandle (fd); + DWORD flags; + if (handle == INVALID_HANDLE_VALUE + || GetHandleInformation (handle, &flags) == 0) + errno = EBADF; + else + result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; +# else /* !W32 */ + /* Use dup2 to reject invalid file descriptors. No way to + access this information, so punt. */ + if (0 <= dup2 (fd, fd)) + result = 0; +# endif /* !W32 */ + break; + } /* F_GETFD */ +#endif /* !HAVE_FCNTL */ + + /* Implementing F_SETFD on mingw is not trivial - there is no + API for changing the O_NOINHERIT bit on an fd, and merely + changing the HANDLE_FLAG_INHERIT bit on the underlying handle + can lead to odd state. It may be possible by duplicating the + handle, using _open_osfhandle with the right flags, then + using dup2 to move the duplicate onto the original, but that + is not supported for now. */ + + default: + { +#if HAVE_FCNTL + void *p = va_arg (arg, void *); + result = fcntl (fd, action, p); +#else + errno = EINVAL; +#endif + break; + } + } + va_end (arg); + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fcntl.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fcntl.in.h --- gettext-0.17/gettext-tools/gnulib-lib/fcntl.in.h 2007-10-07 20:29:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fcntl.in.h 2010-05-24 09:42:36.000000000 +0000 @@ -1,6 +1,6 @@ /* Like , but with non-working flags defined to 0. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,34 +17,146 @@ /* written by Paul Eggert */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_system_fcntl_h +/* Special invocation convention. */ + +#include +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif +#@INCLUDE_NEXT@ @NEXT_FCNTL_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_FCNTL_H #include -#include -#include +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ #ifndef _GL_FCNTL_H #define _GL_FCNTL_H +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif + + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + /* Declare overridden functions. */ -#ifdef __cplusplus -extern "C" { +#if @GNULIB_FCNTL@ +# if @REPLACE_FCNTL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fcntl +# define fcntl rpl_fcntl +# endif +_GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); +_GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); +# else +# if !@HAVE_FCNTL@ +_GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); +# endif +_GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); +# endif +_GL_CXXALIASWARN (fcntl); +#elif defined GNULIB_POSIXCHECK +# undef fcntl +# if HAVE_RAW_DECL_FCNTL +_GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " + "use gnulib module fcntl for portability"); +# endif +#endif + +#if @GNULIB_OPEN@ +# if @REPLACE_OPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef open +# define open rpl_open +# endif +_GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); +# else +_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); +# endif +_GL_CXXALIASWARN (open); +#elif defined GNULIB_POSIXCHECK +# undef open +/* Assume open is always declared. */ +_GL_WARN_ON_USE (open, "open is not always POSIX compliant - " + "use gnulib module open for portability"); +#endif + +#if @GNULIB_OPENAT@ +# if @REPLACE_OPENAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef openat +# define openat rpl_openat +# endif +_GL_FUNCDECL_RPL (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...)); +# else +# if !@HAVE_OPENAT@ +_GL_FUNCDECL_SYS (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...)); +# endif +_GL_CXXALIASWARN (openat); +#elif defined GNULIB_POSIXCHECK +# undef openat +# if HAVE_RAW_DECL_OPENAT +_GL_WARN_ON_USE (openat, "openat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +/* Fix up the FD_* macros, only known to be missing on mingw. */ + +#ifndef FD_CLOEXEC +# define FD_CLOEXEC 1 +#endif + +/* Fix up the supported F_* macros. Intentionally leave other F_* + macros undefined. Only known to be missing on mingw. */ + +#ifndef F_DUPFD_CLOEXEC +# define F_DUPFD_CLOEXEC 0x40000000 +/* Witness variable: 1 if gnulib defined F_DUPFD_CLOEXEC, 0 otherwise. */ +# define GNULIB_defined_F_DUPFD_CLOEXEC 1 +#else +# define GNULIB_defined_F_DUPFD_CLOEXEC 0 #endif -#if (@GNULIB_OPEN@ && @REPLACE_OPEN@) || defined FCHDIR_REPLACEMENT -# define open rpl_open -extern int open (const char *filename, int flags, ...); +#ifndef F_DUPFD +# define F_DUPFD 1 #endif -#ifdef __cplusplus -} +#ifndef F_GETFD +# define F_GETFD 2 #endif - /* Fix up the O_* macros. */ #if !defined O_DIRECT && defined O_DIRECTIO @@ -52,6 +164,12 @@ # define O_DIRECT O_DIRECTIO #endif +#if !defined O_CLOEXEC && defined O_NOINHERIT +/* Mingw spells it `O_NOINHERIT'. Intentionally leave it + undefined if not available. */ +# define O_CLOEXEC O_NOINHERIT +#endif + #ifndef O_DIRECT # define O_DIRECT 0 #endif @@ -96,6 +214,10 @@ # define O_SYNC 0 #endif +#ifndef O_TTY_INIT +# define O_TTY_INIT 0 +#endif + /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in fcntl.h */ #if !defined O_BINARY && defined _O_BINARY @@ -104,8 +226,8 @@ # define O_TEXT _O_TEXT #endif -#ifdef __BEOS__ - /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ +#if defined __BEOS__ || defined __HAIKU__ + /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif @@ -115,6 +237,43 @@ # define O_TEXT 0 #endif +/* Fix up the AT_* macros. */ + +/* Work around a bug in Solaris 9 and 10: AT_FDCWD is positive. Its + value exceeds INT_MAX, so its use as an int doesn't conform to the + C standard, and GCC and Sun C complain in some cases. If the bug + is present, undef AT_FDCWD here, so it can be redefined below. */ +#if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553 +# undef AT_FDCWD +#endif + +/* Use the same bit pattern as Solaris 9, but with the proper + signedness. The bit pattern is important, in case this actually is + Solaris with the above workaround. */ +#ifndef AT_FDCWD +# define AT_FDCWD (-3041965) +#endif + +/* Use the same values as Solaris 9. This shouldn't matter, but + there's no real reason to differ. */ +#ifndef AT_SYMLINK_NOFOLLOW +# define AT_SYMLINK_NOFOLLOW 4096 +#endif + +#ifndef AT_REMOVEDIR +# define AT_REMOVEDIR 1 +#endif + +/* Solaris 9 lacks these two, so just pick unique values. */ +#ifndef AT_SYMLINK_FOLLOW +# define AT_SYMLINK_FOLLOW 2 +#endif + +#ifndef AT_EACCESS +# define AT_EACCESS 4 +#endif + #endif /* _GL_FCNTL_H */ #endif /* _GL_FCNTL_H */ +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.c 2007-10-07 20:55:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.c 2010-06-06 18:36:34.000000000 +0000 @@ -60,74 +60,74 @@ if (len > 0) { if (stream->buffer != NULL) - { - /* Buffered. */ - assert (stream->avail > 0); - #if 0 /* unoptimized */ - do - { - size_t n = (len <= stream->avail ? len : stream->avail); - if (n > 0) - { - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - stream->avail -= n; - len -= n; - } - if (stream->avail == 0) - { - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - stream->avail = BUFSIZE; - } - } - while (len > 0); - #else /* optimized */ - if (len < stream->avail) - { - /* Move the data into the buffer. */ - memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); - stream->avail -= len; - } - else - { - /* Split the data into: - - a first chunk, which is added to the buffer and output, - - a series of chunks of size BUFSIZE, which can be output - directly, without going through the buffer, and - - a last chunk, which is copied to the buffer. */ - size_t n = stream->avail; - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - len -= n; - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - - while (len >= BUFSIZE) - { - if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - data = (char *) data + BUFSIZE; - len -= BUFSIZE; - } - - if (len > 0) - memcpy (stream->buffer, data, len); - stream->avail = BUFSIZE - len; - } - #endif - assert (stream->avail > 0); - } + { + /* Buffered. */ + assert (stream->avail > 0); + #if 0 /* unoptimized */ + do + { + size_t n = (len <= stream->avail ? len : stream->avail); + if (n > 0) + { + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + stream->avail -= n; + len -= n; + } + if (stream->avail == 0) + { + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + stream->avail = BUFSIZE; + } + } + while (len > 0); + #else /* optimized */ + if (len < stream->avail) + { + /* Move the data into the buffer. */ + memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); + stream->avail -= len; + } + else + { + /* Split the data into: + - a first chunk, which is added to the buffer and output, + - a series of chunks of size BUFSIZE, which can be output + directly, without going through the buffer, and + - a last chunk, which is copied to the buffer. */ + size_t n = stream->avail; + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + len -= n; + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + + while (len >= BUFSIZE) + { + if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + data = (char *) data + BUFSIZE; + len -= BUFSIZE; + } + + if (len > 0) + memcpy (stream->buffer, data, len); + stream->avail = BUFSIZE - len; + } + #endif + assert (stream->avail > 0); + } else - { - /* Unbuffered. */ - if (full_write (stream->fd, data, len) < len) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - } + { + /* Unbuffered. */ + if (full_write (stream->fd, data, len) < len) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + } } } @@ -138,7 +138,7 @@ { size_t filled = BUFSIZE - stream->avail; if (full_write (stream->fd, stream->buffer, filled) < filled) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); stream->avail = BUFSIZE; } } @@ -159,7 +159,7 @@ fd_ostream_t stream = (struct fd_ostream_representation *) xmalloc (sizeof (struct fd_ostream_representation) - + (buffered ? BUFSIZE : 0)); + + (buffered ? BUFSIZE : 0)); stream->base.vtable = &fd_ostream_vtable; stream->fd = fd; @@ -167,7 +167,7 @@ if (buffered) { stream->buffer = - (char *) (void *) stream + sizeof (struct fd_ostream_representation); + (char *) (void *) stream + sizeof (struct fd_ostream_representation); stream->avail = BUFSIZE; } else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.h --- gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.h 2007-10-07 20:55:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.h 2010-06-06 18:36:34.000000000 +0000 @@ -127,7 +127,7 @@ FILENAME is used only for error messages. Note that the resulting stream must be closed before FD can be closed. */ extern fd_ostream_t fd_ostream_create (int fd, const char *filename, - bool buffered); + bool buffered); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.oo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.oo.c --- gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -37,8 +37,8 @@ fields: int fd; char *filename; - char *buffer; /* A buffer, or NULL. */ - size_t avail; /* Number of bytes available in the buffer. */ + char *buffer; /* A buffer, or NULL. */ + size_t avail; /* Number of bytes available in the buffer. */ }; #define BUFSIZE 4096 @@ -51,74 +51,74 @@ if (len > 0) { if (stream->buffer != NULL) - { - /* Buffered. */ - assert (stream->avail > 0); - #if 0 /* unoptimized */ - do - { - size_t n = (len <= stream->avail ? len : stream->avail); - if (n > 0) - { - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - stream->avail -= n; - len -= n; - } - if (stream->avail == 0) - { - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - stream->avail = BUFSIZE; - } - } - while (len > 0); - #else /* optimized */ - if (len < stream->avail) - { - /* Move the data into the buffer. */ - memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); - stream->avail -= len; - } - else - { - /* Split the data into: - - a first chunk, which is added to the buffer and output, - - a series of chunks of size BUFSIZE, which can be output - directly, without going through the buffer, and - - a last chunk, which is copied to the buffer. */ - size_t n = stream->avail; - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - len -= n; - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - - while (len >= BUFSIZE) - { - if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - data = (char *) data + BUFSIZE; - len -= BUFSIZE; - } - - if (len > 0) - memcpy (stream->buffer, data, len); - stream->avail = BUFSIZE - len; - } - #endif - assert (stream->avail > 0); - } + { + /* Buffered. */ + assert (stream->avail > 0); + #if 0 /* unoptimized */ + do + { + size_t n = (len <= stream->avail ? len : stream->avail); + if (n > 0) + { + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + stream->avail -= n; + len -= n; + } + if (stream->avail == 0) + { + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + stream->avail = BUFSIZE; + } + } + while (len > 0); + #else /* optimized */ + if (len < stream->avail) + { + /* Move the data into the buffer. */ + memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); + stream->avail -= len; + } + else + { + /* Split the data into: + - a first chunk, which is added to the buffer and output, + - a series of chunks of size BUFSIZE, which can be output + directly, without going through the buffer, and + - a last chunk, which is copied to the buffer. */ + size_t n = stream->avail; + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + len -= n; + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + + while (len >= BUFSIZE) + { + if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + data = (char *) data + BUFSIZE; + len -= BUFSIZE; + } + + if (len > 0) + memcpy (stream->buffer, data, len); + stream->avail = BUFSIZE - len; + } + #endif + assert (stream->avail > 0); + } else - { - /* Unbuffered. */ - if (full_write (stream->fd, data, len) < len) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - } + { + /* Unbuffered. */ + if (full_write (stream->fd, data, len) < len) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + } } } @@ -129,7 +129,7 @@ { size_t filled = BUFSIZE - stream->avail; if (full_write (stream->fd, stream->buffer, filled) < filled) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); stream->avail = BUFSIZE; } } @@ -150,7 +150,7 @@ fd_ostream_t stream = (struct fd_ostream_representation *) xmalloc (sizeof (struct fd_ostream_representation) - + (buffered ? BUFSIZE : 0)); + + (buffered ? BUFSIZE : 0)); stream->base.vtable = &fd_ostream_vtable; stream->fd = fd; @@ -158,7 +158,7 @@ if (buffered) { stream->buffer = - (char *) (void *) stream + sizeof (struct fd_ostream_representation); + (char *) (void *) stream + sizeof (struct fd_ostream_representation); stream->avail = BUFSIZE; } else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.oo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.oo.h --- gettext-0.17/gettext-tools/gnulib-lib/fd-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -38,7 +38,7 @@ FILENAME is used only for error messages. Note that the resulting stream must be closed before FD can be closed. */ extern fd_ostream_t fd_ostream_create (int fd, const char *filename, - bool buffered); + bool buffered); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd_ostream.priv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fd_ostream.priv.h --- gettext-0.17/gettext-tools/gnulib-lib/fd_ostream.priv.h 2007-10-07 20:55:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd_ostream.priv.h 2010-06-06 18:36:34.000000000 +0000 @@ -9,6 +9,6 @@ struct ostream_representation base; int fd; char *filename; - char *buffer; - size_t avail; + char *buffer; + size_t avail; }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-safer.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-safer.c --- gettext-0.17/gettext-tools/gnulib-lib/fd-safer.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-safer.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,49 @@ +/* Return a safer copy of a file descriptor. + + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert. */ + +#include + +#include "unistd-safer.h" + +#include +#include + +/* Return FD, unless FD would be a copy of standard input, output, or + error; in that case, return a duplicate of FD, closing FD. On + failure to duplicate, close FD, set errno, and return -1. Preserve + errno if FD is negative, so that the caller can always inspect + errno when the returned value is negative. + + This function is usefully wrapped around functions that return file + descriptors, e.g., fd_safer (open ("file", O_RDONLY)). */ + +int +fd_safer (int fd) +{ + if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) + { + int f = dup_safer (fd); + int e = errno; + close (fd); + errno = e; + fd = f; + } + + return fd; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fd-safer-flag.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-safer-flag.c --- gettext-0.17/gettext-tools/gnulib-lib/fd-safer-flag.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fd-safer-flag.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,52 @@ +/* Adjust a file descriptor result so that it avoids clobbering + STD{IN,OUT,ERR}_FILENO, with specific flags. + + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert and Eric Blake. */ + +#include + +/* Specification. */ +#include "unistd-safer.h" + +#include +#include + +/* Return FD, unless FD would be a copy of standard input, output, or + error; in that case, return a duplicate of FD, closing FD. If FLAG + contains O_CLOEXEC, the returned FD will have close-on-exec + semantics. On failure to duplicate, close FD, set errno, and + return -1. Preserve errno if FD is negative, so that the caller + can always inspect errno when the returned value is negative. + + This function is usefully wrapped around functions that return file + descriptors, e.g., fd_safer_flag (open ("file", O_RDONLY | flag), flag). */ + +int +fd_safer_flag (int fd, int flag) +{ + if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) + { + int f = dup_safer_flag (fd, flag); + int e = errno; + close (fd); + errno = e; + fd = f; + } + + return fd; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/file-has-acl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/file-has-acl.c --- gettext-0.17/gettext-tools/gnulib-lib/file-has-acl.c 2007-10-07 20:29:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/file-has-acl.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* Test whether a file has a nontrivial access control list. - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Written by Paul Eggert and Andreas Gruenbacher. */ + Written by Paul Eggert, Andreas Grünbacher, and Bruno Haible. */ #include @@ -23,6 +23,280 @@ #include "acl-internal.h" + +#if USE_ACL && HAVE_ACL_GET_FILE + +# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */ + +/* ACL is an ACL, from a file, stored as type ACL_TYPE_EXTENDED. + Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial. */ +int +acl_extended_nontrivial (acl_t acl) +{ + /* acl is non-trivial if it is non-empty. */ + return (acl_entries (acl) > 0); +} + +# else /* Linux, FreeBSD, IRIX, Tru64 */ + +/* ACL is an ACL, from a file, stored as type ACL_TYPE_ACCESS. + Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. + Return -1 and set errno upon failure to determine it. */ +int +acl_access_nontrivial (acl_t acl) +{ + /* acl is non-trivial if it has some entries other than for "user::", + "group::", and "other::". Normally these three should be present + at least, allowing us to write + return (3 < acl_entries (acl)); + but the following code is more robust. */ +# if HAVE_ACL_FIRST_ENTRY /* Linux, FreeBSD */ + + acl_entry_t ace; + int got_one; + + for (got_one = acl_get_entry (acl, ACL_FIRST_ENTRY, &ace); + got_one > 0; + got_one = acl_get_entry (acl, ACL_NEXT_ENTRY, &ace)) + { + acl_tag_t tag; + if (acl_get_tag_type (ace, &tag) < 0) + return -1; + if (!(tag == ACL_USER_OBJ || tag == ACL_GROUP_OBJ || tag == ACL_OTHER)) + return 1; + } + return got_one; + +# else /* IRIX, Tru64 */ +# if HAVE_ACL_TO_SHORT_TEXT /* IRIX */ + /* Don't use acl_get_entry: it is undocumented. */ + + int count = acl->acl_cnt; + int i; + + for (i = 0; i < count; i++) + { + acl_entry_t ace = &acl->acl_entry[i]; + acl_tag_t tag = ace->ae_tag; + + if (!(tag == ACL_USER_OBJ || tag == ACL_GROUP_OBJ + || tag == ACL_OTHER_OBJ)) + return 1; + } + return 0; + +# endif +# if HAVE_ACL_FREE_TEXT /* Tru64 */ + /* Don't use acl_get_entry: it takes only one argument and does not work. */ + + int count = acl->acl_num; + acl_entry_t ace; + + for (ace = acl->acl_first; count > 0; ace = ace->next, count--) + { + acl_tag_t tag; + acl_perm_t perm; + + tag = ace->entry->acl_type; + if (!(tag == ACL_USER_OBJ || tag == ACL_GROUP_OBJ || tag == ACL_OTHER)) + return 1; + + perm = ace->entry->acl_perm; + /* On Tru64, perm can also contain non-standard bits such as + PERM_INSERT, PERM_DELETE, PERM_MODIFY, PERM_LOOKUP, ... */ + if ((perm & ~(ACL_READ | ACL_WRITE | ACL_EXECUTE)) != 0) + return 1; + } + return 0; + +# endif +# endif +} + +# endif + + +#elif USE_ACL && HAVE_ACL && defined GETACL /* Solaris, Cygwin, not HP-UX */ + +# if !defined ACL_NO_TRIVIAL /* Solaris <= 10, Cygwin */ + +/* Test an ACL retrieved with GETACL. + Return 1 if the given ACL, consisting of COUNT entries, is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +int +acl_nontrivial (int count, aclent_t *entries) +{ + int i; + + for (i = 0; i < count; i++) + { + aclent_t *ace = &entries[i]; + + /* Note: If ace->a_type = USER_OBJ, ace->a_id is the st_uid from stat(). + If ace->a_type = GROUP_OBJ, ace->a_id is the st_gid from stat(). + We don't need to check ace->a_id in these cases. */ + if (!(ace->a_type == USER_OBJ + || ace->a_type == GROUP_OBJ + || ace->a_type == OTHER_OBJ + /* Note: Cygwin does not return a CLASS_OBJ ("mask:") entry + sometimes. */ + || ace->a_type == CLASS_OBJ)) + return 1; + } + return 0; +} + +# ifdef ACE_GETACL + +/* Test an ACL retrieved with ACE_GETACL. + Return 1 if the given ACL, consisting of COUNT entries, is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +int +acl_ace_nontrivial (int count, ace_t *entries) +{ + int i; + + /* The flags in the ace_t structure changed in a binary incompatible way + when ACL_NO_TRIVIAL etc. were introduced in version 1.15. + How to distinguish the two conventions at runtime? + In the old convention, usually three ACEs have a_flags = ACE_OWNER / + ACE_GROUP / ACE_OTHER, in the range 0x0100..0x0400. In the new + convention, these values are not used. */ + int old_convention = 0; + + for (i = 0; i < count; i++) + if (entries[i].a_flags & (ACE_OWNER | ACE_GROUP | ACE_OTHER)) + { + old_convention = 1; + break; + } + + if (old_convention) + /* Running on Solaris 10. */ + for (i = 0; i < count; i++) + { + ace_t *ace = &entries[i]; + + /* Note: + If ace->a_flags = ACE_OWNER, ace->a_who is the st_uid from stat(). + If ace->a_flags = ACE_GROUP, ace->a_who is the st_gid from stat(). + We don't need to check ace->a_who in these cases. */ + if (!(ace->a_type == ALLOW + && (ace->a_flags == ACE_OWNER + || ace->a_flags == ACE_GROUP + || ace->a_flags == ACE_OTHER))) + return 1; + } + else + /* Running on Solaris 10 (newer version) or Solaris 11. */ + for (i = 0; i < count; i++) + { + ace_t *ace = &entries[i]; + + if (!(ace->a_type == ACE_ACCESS_ALLOWED_ACE_TYPE + && (ace->a_flags == NEW_ACE_OWNER + || ace->a_flags + == (NEW_ACE_GROUP | NEW_ACE_IDENTIFIER_GROUP) + || ace->a_flags == ACE_EVERYONE) + && (ace->a_access_mask + & ~(NEW_ACE_READ_DATA | NEW_ACE_WRITE_DATA | NEW_ACE_EXECUTE)) + == 0)) + return 1; + } + + return 0; +} + +# endif + +# endif + +#elif USE_ACL && HAVE_GETACL /* HP-UX */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +int +acl_nontrivial (int count, struct acl_entry *entries, struct stat *sb) +{ + int i; + + for (i = 0; i < count; i++) + { + struct acl_entry *ace = &entries[i]; + + if (!((ace->uid == sb->st_uid && ace->gid == ACL_NSGROUP) + || (ace->uid == ACL_NSUSER && ace->gid == sb->st_gid) + || (ace->uid == ACL_NSUSER && ace->gid == ACL_NSGROUP))) + return 1; + } + return 0; +} + +#elif USE_ACL && (HAVE_ACLX_GET || HAVE_STATACL) /* AIX */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +int +acl_nontrivial (struct acl *a) +{ + /* The normal way to iterate through an ACL is like this: + struct acl_entry *ace; + for (ace = a->acl_ext; ace != acl_last (a); ace = acl_nxt (ace)) + { + struct ace_id *aei; + switch (ace->ace_type) + { + case ACC_PERMIT: + case ACC_DENY: + case ACC_SPECIFY: + ...; + } + for (aei = ace->ace_id; aei != id_last (ace); aei = id_nxt (aei)) + ... + } + */ + return (acl_last (a) != a->acl_ext ? 1 : 0); +} + +# if HAVE_ACLX_GET && defined ACL_AIX_WIP /* newer AIX */ + +/* Return 1 if the given ACL is non-trivial. + Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */ +int +acl_nfs4_nontrivial (nfs4_acl_int_t *a) +{ +# if 1 /* let's try this first */ + return (a->aclEntryN > 0 ? 1 : 0); +# else + int count = a->aclEntryN; + int i; + + for (i = 0; i < count; i++) + { + nfs4_ace_int_t *ace = &a->aclEntry[i]; + + if (!((ace->flags & ACE4_ID_SPECIAL) != 0 + && (ace->aceWho.special_whoid == ACE4_WHO_OWNER + || ace->aceWho.special_whoid == ACE4_WHO_GROUP + || ace->aceWho.special_whoid == ACE4_WHO_EVERYONE) + && ace->aceType == ACE4_ACCESS_ALLOWED_ACE_TYPE + && ace->aceFlags == 0 + && (ace->aceMask & ~(ACE4_READ_DATA | ACE4_LIST_DIRECTORY + | ACE4_WRITE_DATA | ACE4_ADD_FILE + | ACE4_EXECUTE)) == 0)) + return 1; + } + return 0; +# endif +} + +# endif + +#endif + + /* Return 1 if NAME has a nontrivial access control list, 0 if NAME only has no or a base access control list, and -1 (setting errno) on error. SB must be set to the stat buffer of FILE. */ @@ -30,57 +304,303 @@ int file_has_acl (char const *name, struct stat const *sb) { +#if USE_ACL if (! S_ISLNK (sb->st_mode)) { -#if USE_ACL && HAVE_ACL_TRIVIAL +# if HAVE_ACL_GET_FILE - /* Solaris 10, which also has NFSv4 and ZFS style ACLs. */ - return acl_trivial (name); + /* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ + /* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ + int ret; -#elif USE_ACL && HAVE_ACL && defined GETACLCNT + if (HAVE_ACL_EXTENDED_FILE) /* Linux */ + { + /* On Linux, acl_extended_file is an optimized function: It only + makes two calls to getxattr(), one for ACL_TYPE_ACCESS, one for + ACL_TYPE_DEFAULT. */ + ret = acl_extended_file (name); + } + else /* FreeBSD, MacOS X, IRIX, Tru64 */ + { +# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */ + /* On MacOS X, acl_get_file (name, ACL_TYPE_ACCESS) + and acl_get_file (name, ACL_TYPE_DEFAULT) + always return NULL / EINVAL. There is no point in making + these two useless calls. The real ACL is retrieved through + acl_get_file (name, ACL_TYPE_EXTENDED). */ + acl_t acl = acl_get_file (name, ACL_TYPE_EXTENDED); + if (acl) + { + ret = acl_extended_nontrivial (acl); + acl_free (acl); + } + else + ret = -1; +# else /* FreeBSD, IRIX, Tru64 */ + acl_t acl = acl_get_file (name, ACL_TYPE_ACCESS); + if (acl) + { + int saved_errno; + + ret = acl_access_nontrivial (acl); + saved_errno = errno; + acl_free (acl); + errno = saved_errno; +# if HAVE_ACL_FREE_TEXT /* Tru64 */ + /* On OSF/1, acl_get_file (name, ACL_TYPE_DEFAULT) always + returns NULL with errno not set. There is no point in + making this call. */ +# else /* FreeBSD, IRIX */ + /* On Linux, FreeBSD, IRIX, acl_get_file (name, ACL_TYPE_ACCESS) + and acl_get_file (name, ACL_TYPE_DEFAULT) on a directory + either both succeed or both fail; it depends on the + file system. Therefore there is no point in making the second + call if the first one already failed. */ + if (ret == 0 && S_ISDIR (sb->st_mode)) + { + acl = acl_get_file (name, ACL_TYPE_DEFAULT); + if (acl) + { + ret = (0 < acl_entries (acl)); + acl_free (acl); + } + else + ret = -1; + } +# endif + } + else + ret = -1; +# endif + } + if (ret < 0) + return ACL_NOT_WELL_SUPPORTED (errno) ? 0 : -1; + return ret; - /* Solaris 2.5 through Solaris 9, and contemporaneous versions of - HP-UX and Unixware. */ - int n = acl (name, GETACLCNT, 0, NULL); - return n < 0 ? (errno == ENOSYS ? 0 : -1) : (MIN_ACL_ENTRIES < n); +# elif HAVE_ACL && defined GETACLCNT /* Solaris, Cygwin, not HP-UX */ -#elif USE_ACL && HAVE_ACL_GET_FILE && HAVE_ACL_FREE +# if defined ACL_NO_TRIVIAL - /* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ - int ret; + /* Solaris 10 (newer version), which has additional API declared in + (acl_t) and implemented in libsec (acl_set, acl_trivial, + acl_fromtext, ...). */ + return acl_trivial (name); + +# else /* Solaris, Cygwin, general case */ - if (HAVE_ACL_EXTENDED_FILE) - ret = acl_extended_file (name); + /* Solaris 2.5 through Solaris 10, Cygwin, and contemporaneous versions + of Unixware. The acl() call returns the access and default ACL both + at once. */ + int count; + { + aclent_t *entries; + + for (;;) + { + count = acl (name, GETACLCNT, 0, NULL); + + if (count < 0) + { + if (errno == ENOSYS || errno == ENOTSUP) + break; + else + return -1; + } + + if (count == 0) + break; + + /* Don't use MIN_ACL_ENTRIES: It's set to 4 on Cygwin, but Cygwin + returns only 3 entries for files with no ACL. But this is safe: + If there are more than 4 entries, there cannot be only the + "user::", "group::", "other:", and "mask:" entries. */ + if (count > 4) + return 1; + + entries = (aclent_t *) malloc (count * sizeof (aclent_t)); + if (entries == NULL) + { + errno = ENOMEM; + return -1; + } + if (acl (name, GETACL, count, entries) == count) + { + if (acl_nontrivial (count, entries)) + { + free (entries); + return 1; + } + free (entries); + break; + } + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + free (entries); + } + } + +# ifdef ACE_GETACL + /* Solaris also has a different variant of ACLs, used in ZFS and NFSv4 + file systems (whereas the other ones are used in UFS file systems). */ + { + ace_t *entries; + + for (;;) + { + count = acl (name, ACE_GETACLCNT, 0, NULL); + + if (count < 0) + { + if (errno == ENOSYS || errno == EINVAL) + break; + else + return -1; + } + + if (count == 0) + break; + + /* If there are more than 3 entries, there cannot be only the + ACE_OWNER, ACE_GROUP, ACE_OTHER entries. */ + if (count > 3) + return 1; + + entries = (ace_t *) malloc (count * sizeof (ace_t)); + if (entries == NULL) + { + errno = ENOMEM; + return -1; + } + if (acl (name, ACE_GETACL, count, entries) == count) + { + if (acl_ace_nontrivial (count, entries)) + { + free (entries); + return 1; + } + free (entries); + break; + } + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + free (entries); + } + } +# endif + + return 0; +# endif + +# elif HAVE_GETACL /* HP-UX */ + + int count; + struct acl_entry entries[NACLENTRIES]; + + for (;;) + { + count = getacl (name, 0, NULL); + + if (count < 0) + return (errno == ENOSYS || errno == EOPNOTSUPP ? 0 : -1); + + if (count == 0) + return 0; + + if (count > NACLENTRIES) + /* If NACLENTRIES cannot be trusted, use dynamic memory + allocation. */ + abort (); + + /* If there are more than 3 entries, there cannot be only the + (uid,%), (%,gid), (%,%) entries. */ + if (count > 3) + return 1; + + if (getacl (name, count, entries) == count) + { + struct stat statbuf; + + if (stat (name, &statbuf) < 0) + return -1; + + return acl_nontrivial (count, entries, &statbuf); + } + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + } + +# elif HAVE_ACLX_GET && defined ACL_AIX_WIP /* AIX */ + + acl_type_t type; + char aclbuf[1024]; + void *acl = aclbuf; + size_t aclsize = sizeof (aclbuf); + mode_t mode; + + for (;;) + { + /* The docs say that type being 0 is equivalent to ACL_ANY, but it + is not true, in AIX 5.3. */ + type.u64 = ACL_ANY; + if (aclx_get (name, 0, &type, aclbuf, &aclsize, &mode) >= 0) + break; + if (errno != ENOSPC) + { + if (acl != aclbuf) + { + int saved_errno = errno; + free (acl); + errno = saved_errno; + } + return -1; + } + aclsize = 2 * aclsize; + if (acl != aclbuf) + free (acl); + acl = malloc (aclsize); + if (acl == NULL) + { + errno = ENOMEM; + return -1; + } + } + + if (type.u64 == ACL_AIXC) + { + int result = acl_nontrivial ((struct acl *) acl); + if (acl != aclbuf) + free (acl); + return result; + } + else if (type.u64 == ACL_NFS4) + { + int result = acl_nfs4_nontrivial ((nfs4_acl_int_t *) acl); + if (acl != aclbuf) + free (acl); + return result; + } else - { - acl_t acl = acl_get_file (name, ACL_TYPE_ACCESS); - if (acl) - { - ret = (3 < acl_entries (acl)); - acl_free (acl); - if (ret == 0 && S_ISDIR (sb->st_mode)) - { - acl = acl_get_file (name, ACL_TYPE_DEFAULT); - if (acl) - { - ret = (0 < acl_entries (acl)); - acl_free (acl); - } - else - ret = -1; - } - } - else - ret = -1; - } - if (ret < 0) - return ACL_NOT_WELL_SUPPORTED (errno) ? 0 : -1; - return ret; -#endif - } + { + /* A newer type of ACL has been introduced in the system. + We should better support it. */ + if (acl != aclbuf) + free (acl); + errno = EINVAL; + return -1; + } - /* FIXME: Add support for AIX, Irix, and Tru64. Please see Samba's - source/lib/sysacls.c file for fix-related ideas. */ +# elif HAVE_STATACL /* older AIX */ + + union { struct acl a; char room[4096]; } u; + + if (statacl (name, STX_NORMAL, &u.a, sizeof (u)) < 0) + return -1; + + return acl_nontrivial (&u.a); + +# endif + } +#endif return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/filename.h gettext-0.18.1.1/gettext-tools/gnulib-lib/filename.h --- gettext-0.17/gettext-tools/gnulib-lib/filename.h 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/filename.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ -/* Pathname support. - Copyright (C) 2001-2004, 2007 Free Software Foundation, Inc. +/* Basic filename support macros. + Copyright (C) 2001-2004, 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,10 +46,6 @@ # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif -/* Concatenate a directory filename, a relative filename and an optional - suffix. Return a freshly allocated filename. */ -extern char *concatenated_filename (const char *directory, - const char *filename, const char *suffix); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/findprog.c gettext-0.18.1.1/gettext-tools/gnulib-lib/findprog.c --- gettext-0.17/gettext-tools/gnulib-lib/findprog.c 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/findprog.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Locating a program in PATH. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -26,8 +26,13 @@ #include #include -#include "xalloc.h" -#include "filename.h" +/* Avoid collision between findprog.c and findprog-lgpl.c. */ +#if IN_FINDPROG_LGPL || ! GNULIB_FINDPROG_LGPL + +#if !IN_FINDPROG_LGPL +# include "xalloc.h" +#endif +#include "concat-filename.h" const char * @@ -56,7 +61,14 @@ return progname; /* Make a copy, to prepare for destructive modifications. */ +# if !IN_FINDPROG_LGPL path = xstrdup (path); +# else + path = strdup (path); + if (path == NULL) + /* Out of memory. */ + return progname; +# endif for (path_rest = path; ; path_rest = cp + 1) { const char *dir; @@ -66,45 +78,55 @@ /* Extract next directory in PATH. */ dir = path_rest; for (cp = path_rest; *cp != '\0' && *cp != ':'; cp++) - ; + ; last = (*cp == '\0'); *cp = '\0'; /* Empty PATH components designate the current directory. */ if (dir == cp) - dir = "."; + dir = "."; /* Concatenate dir and progname. */ +# if !IN_FINDPROG_LGPL + progpathname = xconcatenated_filename (dir, progname, NULL); +# else progpathname = concatenated_filename (dir, progname, NULL); + if (progpathname == NULL) + { + /* Out of memory. */ + free (path); + return progname; + } +# endif /* On systems which have the eaccess() system call, let's use it. - On other systems, let's hope that this program is not installed - setuid or setgid, so that it is ok to call access() despite its - design flaw. */ + On other systems, let's hope that this program is not installed + setuid or setgid, so that it is ok to call access() despite its + design flaw. */ if (eaccess (progpathname, X_OK) == 0) - { - /* Found! */ - if (strcmp (progpathname, progname) == 0) - { - free (progpathname); - - /* Add the "./" prefix for real, that concatenated_filename() - optimized away. This avoids a second PATH search when the - caller uses execlp/execvp. */ - progpathname = XNMALLOC (2 + strlen (progname) + 1, char); - progpathname[0] = '.'; - progpathname[1] = '/'; - memcpy (progpathname + 2, progname, strlen (progname) + 1); - } - - free (path); - return progpathname; - } + { + /* Found! */ + if (strcmp (progpathname, progname) == 0) + { + free (progpathname); + + /* Add the "./" prefix for real, that xconcatenated_filename() + optimized away. This avoids a second PATH search when the + caller uses execlp/execvp. */ + progpathname = XNMALLOC (2 + strlen (progname) + 1, char); + progpathname[0] = '.'; + progpathname[1] = '/'; + memcpy (progpathname + 2, progname, strlen (progname) + 1); + } + + free (path); + return progpathname; + } free (progpathname); if (last) - break; + break; } /* Not found in PATH. An error will be signalled at the first call. */ @@ -112,3 +134,5 @@ return progname; #endif } + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/findprog.h gettext-0.18.1.1/gettext-tools/gnulib-lib/findprog.h --- gettext-0.17/gettext-tools/gnulib-lib/findprog.h 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/findprog.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Locating a program in PATH. - Copyright (C) 2001-2003 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/float+.h gettext-0.18.1.1/gettext-tools/gnulib-lib/float+.h --- gettext-0.17/gettext-tools/gnulib-lib/float+.h 2007-10-26 00:52:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/float+.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,10 +1,10 @@ /* Supplemental information about the floating-point formats. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/float.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/float.in.h --- gettext-0.17/gettext-tools/gnulib-lib/float.in.h 2007-10-26 00:52:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/float.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* A correct . - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,6 +17,10 @@ #ifndef _GL_FLOAT_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FLOAT_H@ @@ -24,7 +28,7 @@ #define _GL_FLOAT_H /* 'long double' properties. */ -#if defined __i386__ && defined __BEOS__ +#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__) /* Number of mantissa units, in base FLT_RADIX. */ # undef LDBL_MANT_DIG # define LDBL_MANT_DIG 64 diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fnmatch.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch.c --- gettext-0.17/gettext-tools/gnulib-lib/fnmatch.c 2007-06-08 10:34:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,9 +1,9 @@ -/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007 - Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002, + 2003, 2004, 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -21,7 +21,7 @@ /* Enable GNU extensions in fnmatch.h. */ #ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 +# define _GNU_SOURCE 1 #endif #if ! defined __builtin_expect && __GNUC__ < 3 @@ -89,7 +89,7 @@ # define isblank(c) ((c) == ' ' || (c) == '\t') # endif -# define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) +# define STREQ(s1, s2) (strcmp (s1, s2) == 0) # if defined _LIBC || WIDE_CHAR_SUPPORT /* The GNU C library provides support for user-defined character classes @@ -109,25 +109,25 @@ # endif # ifdef _LIBC -# define ISWCTYPE(WC, WT) __iswctype (WC, WT) +# define ISWCTYPE(WC, WT) __iswctype (WC, WT) # else -# define ISWCTYPE(WC, WT) iswctype (WC, WT) +# define ISWCTYPE(WC, WT) iswctype (WC, WT) # endif # if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || _LIBC /* In this case we are implementing the multibyte character handling. */ -# define HANDLE_MULTIBYTE 1 +# define HANDLE_MULTIBYTE 1 # endif # else # define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */ -# define IS_CHAR_CLASS(string) \ - (STREQ (string, "alpha") || STREQ (string, "upper") \ - || STREQ (string, "lower") || STREQ (string, "digit") \ - || STREQ (string, "alnum") || STREQ (string, "xdigit") \ - || STREQ (string, "space") || STREQ (string, "print") \ - || STREQ (string, "punct") || STREQ (string, "graph") \ +# define IS_CHAR_CLASS(string) \ + (STREQ (string, "alpha") || STREQ (string, "upper") \ + || STREQ (string, "lower") || STREQ (string, "digit") \ + || STREQ (string, "alnum") || STREQ (string, "xdigit") \ + || STREQ (string, "space") || STREQ (string, "print") \ + || STREQ (string, "punct") || STREQ (string, "graph") \ || STREQ (string, "cntrl") || STREQ (string, "blank")) # endif @@ -145,17 +145,17 @@ /* Note that this evaluates C many times. */ # define FOLD(c) ((flags & FNM_CASEFOLD) ? tolower (c) : (c)) -# define CHAR char -# define UCHAR unsigned char -# define INT int -# define FCT internal_fnmatch -# define EXT ext_match -# define END end_pattern -# define L_(CS) CS +# define CHAR char +# define UCHAR unsigned char +# define INT int +# define FCT internal_fnmatch +# define EXT ext_match +# define END end_pattern +# define L_(CS) CS # ifdef _LIBC -# define BTOWC(C) __btowc (C) +# define BTOWC(C) __btowc (C) # else -# define BTOWC(C) btowc (C) +# define BTOWC(C) btowc (C) # endif # define STRLEN(S) strlen (S) # define STRCAT(D, S) strcat (D, S) @@ -175,14 +175,14 @@ # if HANDLE_MULTIBYTE # define FOLD(c) ((flags & FNM_CASEFOLD) ? towlower (c) : (c)) -# define CHAR wchar_t -# define UCHAR wint_t -# define INT wint_t -# define FCT internal_fnwmatch -# define EXT ext_wmatch -# define END end_wpattern -# define L_(CS) L##CS -# define BTOWC(C) (C) +# define CHAR wchar_t +# define UCHAR wint_t +# define INT wint_t +# define FCT internal_fnwmatch +# define EXT ext_wmatch +# define END end_wpattern +# define L_(CS) L##CS +# define BTOWC(C) (C) # ifdef _LIBC # define STRLEN(S) __wcslen (S) # define STRCAT(D, S) __wcscat (D, S) @@ -218,40 +218,40 @@ /* Test for a printable character from the portable character set. */ # ifdef _LIBC if (*wcs < 0x20 || *wcs > 0x7e - || *wcs == 0x24 || *wcs == 0x40 || *wcs == 0x60) - return (wctype_t) 0; + || *wcs == 0x24 || *wcs == 0x40 || *wcs == 0x60) + return (wctype_t) 0; # else switch (*wcs) - { - case L' ': case L'!': case L'"': case L'#': case L'%': - case L'&': case L'\'': case L'(': case L')': case L'*': - case L'+': case L',': case L'-': case L'.': case L'/': - case L'0': case L'1': case L'2': case L'3': case L'4': - case L'5': case L'6': case L'7': case L'8': case L'9': - case L':': case L';': case L'<': case L'=': case L'>': - case L'?': - case L'A': case L'B': case L'C': case L'D': case L'E': - case L'F': case L'G': case L'H': case L'I': case L'J': - case L'K': case L'L': case L'M': case L'N': case L'O': - case L'P': case L'Q': case L'R': case L'S': case L'T': - case L'U': case L'V': case L'W': case L'X': case L'Y': - case L'Z': - case L'[': case L'\\': case L']': case L'^': case L'_': - case L'a': case L'b': case L'c': case L'd': case L'e': - case L'f': case L'g': case L'h': case L'i': case L'j': - case L'k': case L'l': case L'm': case L'n': case L'o': - case L'p': case L'q': case L'r': case L's': case L't': - case L'u': case L'v': case L'w': case L'x': case L'y': - case L'z': case L'{': case L'|': case L'}': case L'~': - break; - default: - return (wctype_t) 0; - } + { + case L' ': case L'!': case L'"': case L'#': case L'%': + case L'&': case L'\'': case L'(': case L')': case L'*': + case L'+': case L',': case L'-': case L'.': case L'/': + case L'0': case L'1': case L'2': case L'3': case L'4': + case L'5': case L'6': case L'7': case L'8': case L'9': + case L':': case L';': case L'<': case L'=': case L'>': + case L'?': + case L'A': case L'B': case L'C': case L'D': case L'E': + case L'F': case L'G': case L'H': case L'I': case L'J': + case L'K': case L'L': case L'M': case L'N': case L'O': + case L'P': case L'Q': case L'R': case L'S': case L'T': + case L'U': case L'V': case L'W': case L'X': case L'Y': + case L'Z': + case L'[': case L'\\': case L']': case L'^': case L'_': + case L'a': case L'b': case L'c': case L'd': case L'e': + case L'f': case L'g': case L'h': case L'i': case L'j': + case L'k': case L'l': case L'm': case L'n': case L'o': + case L'p': case L'q': case L'r': case L's': case L't': + case L'u': case L'v': case L'w': case L'x': case L'y': + case L'z': case L'{': case L'|': case L'}': case L'~': + break; + default: + return (wctype_t) 0; + } # endif /* Avoid overrunning the buffer. */ if (cp == s + CHAR_CLASS_MAX_LENGTH) - return (wctype_t) 0; + return (wctype_t) 0; *cp++ = (char) *wcs++; } @@ -291,58 +291,58 @@ int res; /* Calculate the size needed to convert the strings to - wide characters. */ + wide characters. */ memset (&ps, '\0', sizeof (ps)); patsize = mbsrtowcs (NULL, &pattern, 0, &ps) + 1; if (__builtin_expect (patsize != 0, 1)) - { - assert (mbsinit (&ps)); - strsize = mbsrtowcs (NULL, &string, 0, &ps) + 1; - if (__builtin_expect (strsize != 0, 1)) - { - assert (mbsinit (&ps)); - totsize = patsize + strsize; - if (__builtin_expect (! (patsize <= totsize - && totsize <= SIZE_MAX / sizeof (wchar_t)), - 0)) - { - errno = ENOMEM; - return -1; - } - - /* Allocate room for the wide characters. */ - if (__builtin_expect (totsize < ALLOCA_LIMIT, 1)) - wpattern = (wchar_t *) alloca (totsize * sizeof (wchar_t)); - else - { - wpattern = malloc (totsize * sizeof (wchar_t)); - if (__builtin_expect (! wpattern, 0)) - { - errno = ENOMEM; - return -1; - } - } - wstring = wpattern + patsize; - - /* Convert the strings into wide characters. */ - mbsrtowcs (wpattern, &pattern, patsize, &ps); - assert (mbsinit (&ps)); - mbsrtowcs (wstring, &string, strsize, &ps); - - res = internal_fnwmatch (wpattern, wstring, wstring + strsize - 1, - flags & FNM_PERIOD, flags); - - if (__builtin_expect (! (totsize < ALLOCA_LIMIT), 0)) - free (wpattern); - return res; - } - } + { + assert (mbsinit (&ps)); + strsize = mbsrtowcs (NULL, &string, 0, &ps) + 1; + if (__builtin_expect (strsize != 0, 1)) + { + assert (mbsinit (&ps)); + totsize = patsize + strsize; + if (__builtin_expect (! (patsize <= totsize + && totsize <= SIZE_MAX / sizeof (wchar_t)), + 0)) + { + errno = ENOMEM; + return -1; + } + + /* Allocate room for the wide characters. */ + if (__builtin_expect (totsize < ALLOCA_LIMIT, 1)) + wpattern = (wchar_t *) alloca (totsize * sizeof (wchar_t)); + else + { + wpattern = malloc (totsize * sizeof (wchar_t)); + if (__builtin_expect (! wpattern, 0)) + { + errno = ENOMEM; + return -1; + } + } + wstring = wpattern + patsize; + + /* Convert the strings into wide characters. */ + mbsrtowcs (wpattern, &pattern, patsize, &ps); + assert (mbsinit (&ps)); + mbsrtowcs (wstring, &string, strsize, &ps); + + res = internal_fnwmatch (wpattern, wstring, wstring + strsize - 1, + flags & FNM_PERIOD, flags); + + if (__builtin_expect (! (totsize < ALLOCA_LIMIT), 0)) + free (wpattern); + return res; + } + } } # endif /* HANDLE_MULTIBYTE */ return internal_fnmatch (pattern, string, string + strlen (string), - flags & FNM_PERIOD, flags); + flags & FNM_PERIOD, flags); } # ifdef _LIBC @@ -355,4 +355,4 @@ libc_hidden_ver (__fnmatch, fnmatch) # endif -#endif /* _LIBC or not __GNU_LIBRARY__. */ +#endif /* _LIBC or not __GNU_LIBRARY__. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fnmatch.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch.in.h --- gettext-0.17/gettext-tools/gnulib-lib/fnmatch.in.h 2007-10-03 22:24:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,11 +1,11 @@ /* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2001, 2002, 2003, - 2005, 2007 Free Software Foundation, Inc. + 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -17,8 +17,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _FNMATCH_H -#define _FNMATCH_H 1 +#ifndef _FNMATCH_H +#define _FNMATCH_H 1 + +/* The definition of _GL_ARG_NONNULL is copied here. */ #ifdef __cplusplus extern "C" { @@ -26,37 +28,38 @@ /* We #undef these before defining them because some losing systems (HP-UX A.08.07 for example) define these in . */ -#undef FNM_PATHNAME -#undef FNM_NOESCAPE -#undef FNM_PERIOD +#undef FNM_PATHNAME +#undef FNM_NOESCAPE +#undef FNM_PERIOD /* Bits set in the FLAGS argument to `fnmatch'. */ -#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ -#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ -#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ +#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ +#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ +#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE -# define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ -# define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ -# define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ -# define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ +# define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ +# define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ +# define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ +# define FNM_EXTMATCH (1 << 5) /* Use ksh-like extended matching. */ #endif /* Value returned by `fnmatch' if STRING does not match PATTERN. */ -#define FNM_NOMATCH 1 +#define FNM_NOMATCH 1 /* This value is returned if the implementation does not support `fnmatch'. Since this is not the case here it will never be returned but the conformance test suites still require the symbol to be defined. */ #ifdef _XOPEN_SOURCE -# define FNM_NOSYS (-1) +# define FNM_NOSYS (-1) #endif /* Match NAME against the file name pattern PATTERN, returning zero if it matches, FNM_NOMATCH if not. */ extern int fnmatch (const char *__pattern, const char *__name, - int __flags); + int __flags) + _GL_ARG_NONNULL ((1, 2)); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fnmatch_loop.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch_loop.c --- gettext-0.17/gettext-tools/gnulib-lib/fnmatch_loop.c 2007-01-27 03:22:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fnmatch_loop.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,10 +1,10 @@ -/* Copyright (C) 1991,1992,1993,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006 - Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002, + 2003, 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -19,7 +19,7 @@ /* Match STRING against the file name pattern PATTERN, returning zero if it matches, nonzero if not. */ static int EXT (INT opt, const CHAR *pattern, const CHAR *string, - const CHAR *string_end, bool no_leading_period, int flags) + const CHAR *string_end, bool no_leading_period, int flags) internal_function; static const CHAR *END (const CHAR *patternp) internal_function; @@ -46,310 +46,310 @@ c = FOLD (c); switch (c) - { - case L_('?'): - if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') - { - int res; - - res = EXT (c, p, n, string_end, no_leading_period, - flags); - if (res != -1) - return res; - } - - if (n == string_end) - return FNM_NOMATCH; - else if (*n == L_('/') && (flags & FNM_FILE_NAME)) - return FNM_NOMATCH; - else if (*n == L_('.') && no_leading_period) - return FNM_NOMATCH; - break; - - case L_('\\'): - if (!(flags & FNM_NOESCAPE)) - { - c = *p++; - if (c == L_('\0')) - /* Trailing \ loses. */ - return FNM_NOMATCH; - c = FOLD (c); - } - if (n == string_end || FOLD ((UCHAR) *n) != c) - return FNM_NOMATCH; - break; - - case L_('*'): - if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') - { - int res; - - res = EXT (c, p, n, string_end, no_leading_period, - flags); - if (res != -1) - return res; - } - - if (n != string_end && *n == L_('.') && no_leading_period) - return FNM_NOMATCH; - - for (c = *p++; c == L_('?') || c == L_('*'); c = *p++) - { - if (*p == L_('(') && (flags & FNM_EXTMATCH) != 0) - { - const CHAR *endp = END (p); - if (endp != p) - { - /* This is a pattern. Skip over it. */ - p = endp; - continue; - } - } - - if (c == L_('?')) - { - /* A ? needs to match one character. */ - if (n == string_end) - /* There isn't another character; no match. */ - return FNM_NOMATCH; - else if (*n == L_('/') - && __builtin_expect (flags & FNM_FILE_NAME, 0)) - /* A slash does not match a wildcard under - FNM_FILE_NAME. */ - return FNM_NOMATCH; - else - /* One character of the string is consumed in matching - this ? wildcard, so *??? won't match if there are - less than three characters. */ - ++n; - } - } - - if (c == L_('\0')) - /* The wildcard(s) is/are the last element of the pattern. - If the name is a file name and contains another slash - this means it cannot match, unless the FNM_LEADING_DIR - flag is set. */ - { - int result = (flags & FNM_FILE_NAME) == 0 ? 0 : FNM_NOMATCH; - - if (flags & FNM_FILE_NAME) - { - if (flags & FNM_LEADING_DIR) - result = 0; - else - { - if (MEMCHR (n, L_('/'), string_end - n) == NULL) - result = 0; - } - } - - return result; - } - else - { - const CHAR *endp; - - endp = MEMCHR (n, (flags & FNM_FILE_NAME) ? L_('/') : L_('\0'), - string_end - n); - if (endp == NULL) - endp = string_end; - - if (c == L_('[') - || (__builtin_expect (flags & FNM_EXTMATCH, 0) != 0 - && (c == L_('@') || c == L_('+') || c == L_('!')) - && *p == L_('('))) - { - int flags2 = ((flags & FNM_FILE_NAME) - ? flags : (flags & ~FNM_PERIOD)); - bool no_leading_period2 = no_leading_period; - - for (--p; n < endp; ++n, no_leading_period2 = false) - if (FCT (p, n, string_end, no_leading_period2, flags2) - == 0) - return 0; - } - else if (c == L_('/') && (flags & FNM_FILE_NAME)) - { - while (n < string_end && *n != L_('/')) - ++n; - if (n < string_end && *n == L_('/') - && (FCT (p, n + 1, string_end, flags & FNM_PERIOD, flags) - == 0)) - return 0; - } - else - { - int flags2 = ((flags & FNM_FILE_NAME) - ? flags : (flags & ~FNM_PERIOD)); - int no_leading_period2 = no_leading_period; - - if (c == L_('\\') && !(flags & FNM_NOESCAPE)) - c = *p; - c = FOLD (c); - for (--p; n < endp; ++n, no_leading_period2 = false) - if (FOLD ((UCHAR) *n) == c - && (FCT (p, n, string_end, no_leading_period2, flags2) - == 0)) - return 0; - } - } - - /* If we come here no match is possible with the wildcard. */ - return FNM_NOMATCH; - - case L_('['): - { - /* Nonzero if the sense of the character class is inverted. */ - register bool not; - CHAR cold; - UCHAR fn; - - if (posixly_correct == 0) - posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; - - if (n == string_end) - return FNM_NOMATCH; - - if (*n == L_('.') && no_leading_period) - return FNM_NOMATCH; - - if (*n == L_('/') && (flags & FNM_FILE_NAME)) - /* `/' cannot be matched. */ - return FNM_NOMATCH; - - not = (*p == L_('!') || (posixly_correct < 0 && *p == L_('^'))); - if (not) - ++p; - - fn = FOLD ((UCHAR) *n); - - c = *p++; - for (;;) - { - if (!(flags & FNM_NOESCAPE) && c == L_('\\')) - { - if (*p == L_('\0')) - return FNM_NOMATCH; - c = FOLD ((UCHAR) *p); - ++p; - - goto normal_bracket; - } - else if (c == L_('[') && *p == L_(':')) - { - /* Leave room for the null. */ - CHAR str[CHAR_CLASS_MAX_LENGTH + 1]; - size_t c1 = 0; + { + case L_('?'): + if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') + { + int res; + + res = EXT (c, p, n, string_end, no_leading_period, + flags); + if (res != -1) + return res; + } + + if (n == string_end) + return FNM_NOMATCH; + else if (*n == L_('/') && (flags & FNM_FILE_NAME)) + return FNM_NOMATCH; + else if (*n == L_('.') && no_leading_period) + return FNM_NOMATCH; + break; + + case L_('\\'): + if (!(flags & FNM_NOESCAPE)) + { + c = *p++; + if (c == L_('\0')) + /* Trailing \ loses. */ + return FNM_NOMATCH; + c = FOLD (c); + } + if (n == string_end || FOLD ((UCHAR) *n) != c) + return FNM_NOMATCH; + break; + + case L_('*'): + if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') + { + int res; + + res = EXT (c, p, n, string_end, no_leading_period, + flags); + if (res != -1) + return res; + } + + if (n != string_end && *n == L_('.') && no_leading_period) + return FNM_NOMATCH; + + for (c = *p++; c == L_('?') || c == L_('*'); c = *p++) + { + if (*p == L_('(') && (flags & FNM_EXTMATCH) != 0) + { + const CHAR *endp = END (p); + if (endp != p) + { + /* This is a pattern. Skip over it. */ + p = endp; + continue; + } + } + + if (c == L_('?')) + { + /* A ? needs to match one character. */ + if (n == string_end) + /* There isn't another character; no match. */ + return FNM_NOMATCH; + else if (*n == L_('/') + && __builtin_expect (flags & FNM_FILE_NAME, 0)) + /* A slash does not match a wildcard under + FNM_FILE_NAME. */ + return FNM_NOMATCH; + else + /* One character of the string is consumed in matching + this ? wildcard, so *??? won't match if there are + less than three characters. */ + ++n; + } + } + + if (c == L_('\0')) + /* The wildcard(s) is/are the last element of the pattern. + If the name is a file name and contains another slash + this means it cannot match, unless the FNM_LEADING_DIR + flag is set. */ + { + int result = (flags & FNM_FILE_NAME) == 0 ? 0 : FNM_NOMATCH; + + if (flags & FNM_FILE_NAME) + { + if (flags & FNM_LEADING_DIR) + result = 0; + else + { + if (MEMCHR (n, L_('/'), string_end - n) == NULL) + result = 0; + } + } + + return result; + } + else + { + const CHAR *endp; + + endp = MEMCHR (n, (flags & FNM_FILE_NAME) ? L_('/') : L_('\0'), + string_end - n); + if (endp == NULL) + endp = string_end; + + if (c == L_('[') + || (__builtin_expect (flags & FNM_EXTMATCH, 0) != 0 + && (c == L_('@') || c == L_('+') || c == L_('!')) + && *p == L_('('))) + { + int flags2 = ((flags & FNM_FILE_NAME) + ? flags : (flags & ~FNM_PERIOD)); + bool no_leading_period2 = no_leading_period; + + for (--p; n < endp; ++n, no_leading_period2 = false) + if (FCT (p, n, string_end, no_leading_period2, flags2) + == 0) + return 0; + } + else if (c == L_('/') && (flags & FNM_FILE_NAME)) + { + while (n < string_end && *n != L_('/')) + ++n; + if (n < string_end && *n == L_('/') + && (FCT (p, n + 1, string_end, flags & FNM_PERIOD, flags) + == 0)) + return 0; + } + else + { + int flags2 = ((flags & FNM_FILE_NAME) + ? flags : (flags & ~FNM_PERIOD)); + int no_leading_period2 = no_leading_period; + + if (c == L_('\\') && !(flags & FNM_NOESCAPE)) + c = *p; + c = FOLD (c); + for (--p; n < endp; ++n, no_leading_period2 = false) + if (FOLD ((UCHAR) *n) == c + && (FCT (p, n, string_end, no_leading_period2, flags2) + == 0)) + return 0; + } + } + + /* If we come here no match is possible with the wildcard. */ + return FNM_NOMATCH; + + case L_('['): + { + /* Nonzero if the sense of the character class is inverted. */ + register bool not; + CHAR cold; + UCHAR fn; + + if (posixly_correct == 0) + posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; + + if (n == string_end) + return FNM_NOMATCH; + + if (*n == L_('.') && no_leading_period) + return FNM_NOMATCH; + + if (*n == L_('/') && (flags & FNM_FILE_NAME)) + /* `/' cannot be matched. */ + return FNM_NOMATCH; + + not = (*p == L_('!') || (posixly_correct < 0 && *p == L_('^'))); + if (not) + ++p; + + fn = FOLD ((UCHAR) *n); + + c = *p++; + for (;;) + { + if (!(flags & FNM_NOESCAPE) && c == L_('\\')) + { + if (*p == L_('\0')) + return FNM_NOMATCH; + c = FOLD ((UCHAR) *p); + ++p; + + goto normal_bracket; + } + else if (c == L_('[') && *p == L_(':')) + { + /* Leave room for the null. */ + CHAR str[CHAR_CLASS_MAX_LENGTH + 1]; + size_t c1 = 0; #if defined _LIBC || WIDE_CHAR_SUPPORT - wctype_t wt; + wctype_t wt; #endif - const CHAR *startp = p; + const CHAR *startp = p; - for (;;) - { - if (c1 == CHAR_CLASS_MAX_LENGTH) - /* The name is too long and therefore the pattern - is ill-formed. */ - return FNM_NOMATCH; - - c = *++p; - if (c == L_(':') && p[1] == L_(']')) - { - p += 2; - break; - } - if (c < L_('a') || c >= L_('z')) - { - /* This cannot possibly be a character class name. - Match it as a normal range. */ - p = startp; - c = L_('['); - goto normal_bracket; - } - str[c1++] = c; - } - str[c1] = L_('\0'); + for (;;) + { + if (c1 == CHAR_CLASS_MAX_LENGTH) + /* The name is too long and therefore the pattern + is ill-formed. */ + return FNM_NOMATCH; + + c = *++p; + if (c == L_(':') && p[1] == L_(']')) + { + p += 2; + break; + } + if (c < L_('a') || c >= L_('z')) + { + /* This cannot possibly be a character class name. + Match it as a normal range. */ + p = startp; + c = L_('['); + goto normal_bracket; + } + str[c1++] = c; + } + str[c1] = L_('\0'); #if defined _LIBC || WIDE_CHAR_SUPPORT - wt = IS_CHAR_CLASS (str); - if (wt == 0) - /* Invalid character class name. */ - return FNM_NOMATCH; + wt = IS_CHAR_CLASS (str); + if (wt == 0) + /* Invalid character class name. */ + return FNM_NOMATCH; # if defined _LIBC && ! WIDE_CHAR_VERSION - /* The following code is glibc specific but does - there a good job in speeding up the code since - we can avoid the btowc() call. */ - if (_ISCTYPE ((UCHAR) *n, wt)) - goto matched; + /* The following code is glibc specific but does + there a good job in speeding up the code since + we can avoid the btowc() call. */ + if (_ISCTYPE ((UCHAR) *n, wt)) + goto matched; # else - if (ISWCTYPE (BTOWC ((UCHAR) *n), wt)) - goto matched; + if (ISWCTYPE (BTOWC ((UCHAR) *n), wt)) + goto matched; # endif #else - if ((STREQ (str, L_("alnum")) && isalnum ((UCHAR) *n)) - || (STREQ (str, L_("alpha")) && isalpha ((UCHAR) *n)) - || (STREQ (str, L_("blank")) && isblank ((UCHAR) *n)) - || (STREQ (str, L_("cntrl")) && iscntrl ((UCHAR) *n)) - || (STREQ (str, L_("digit")) && isdigit ((UCHAR) *n)) - || (STREQ (str, L_("graph")) && isgraph ((UCHAR) *n)) - || (STREQ (str, L_("lower")) && islower ((UCHAR) *n)) - || (STREQ (str, L_("print")) && isprint ((UCHAR) *n)) - || (STREQ (str, L_("punct")) && ispunct ((UCHAR) *n)) - || (STREQ (str, L_("space")) && isspace ((UCHAR) *n)) - || (STREQ (str, L_("upper")) && isupper ((UCHAR) *n)) - || (STREQ (str, L_("xdigit")) && isxdigit ((UCHAR) *n))) - goto matched; + if ((STREQ (str, L_("alnum")) && isalnum ((UCHAR) *n)) + || (STREQ (str, L_("alpha")) && isalpha ((UCHAR) *n)) + || (STREQ (str, L_("blank")) && isblank ((UCHAR) *n)) + || (STREQ (str, L_("cntrl")) && iscntrl ((UCHAR) *n)) + || (STREQ (str, L_("digit")) && isdigit ((UCHAR) *n)) + || (STREQ (str, L_("graph")) && isgraph ((UCHAR) *n)) + || (STREQ (str, L_("lower")) && islower ((UCHAR) *n)) + || (STREQ (str, L_("print")) && isprint ((UCHAR) *n)) + || (STREQ (str, L_("punct")) && ispunct ((UCHAR) *n)) + || (STREQ (str, L_("space")) && isspace ((UCHAR) *n)) + || (STREQ (str, L_("upper")) && isupper ((UCHAR) *n)) + || (STREQ (str, L_("xdigit")) && isxdigit ((UCHAR) *n))) + goto matched; #endif - c = *p++; - } + c = *p++; + } #ifdef _LIBC - else if (c == L_('[') && *p == L_('=')) - { - UCHAR str[1]; - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); - const CHAR *startp = p; - - c = *++p; - if (c == L_('\0')) - { - p = startp; - c = L_('['); - goto normal_bracket; - } - str[0] = c; - - c = *++p; - if (c != L_('=') || p[1] != L_(']')) - { - p = startp; - c = L_('['); - goto normal_bracket; - } - p += 2; - - if (nrules == 0) - { - if ((UCHAR) *n == str[0]) - goto matched; - } - else - { - const int32_t *table; + else if (c == L_('[') && *p == L_('=')) + { + UCHAR str[1]; + uint32_t nrules = + _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + const CHAR *startp = p; + + c = *++p; + if (c == L_('\0')) + { + p = startp; + c = L_('['); + goto normal_bracket; + } + str[0] = c; + + c = *++p; + if (c != L_('=') || p[1] != L_(']')) + { + p = startp; + c = L_('['); + goto normal_bracket; + } + p += 2; + + if (nrules == 0) + { + if ((UCHAR) *n == str[0]) + goto matched; + } + else + { + const int32_t *table; # if WIDE_CHAR_VERSION - const int32_t *weights; - const int32_t *extra; + const int32_t *weights; + const int32_t *extra; # else - const unsigned char *weights; - const unsigned char *extra; + const unsigned char *weights; + const unsigned char *extra; # endif - const int32_t *indirect; - int32_t idx; - const UCHAR *cp = (const UCHAR *) str; + const int32_t *indirect; + int32_t idx; + const UCHAR *cp = (const UCHAR *) str; - /* This #include defines a local function! */ + /* This #include defines a local function! */ # if WIDE_CHAR_VERSION # include # else @@ -357,605 +357,610 @@ # endif # if WIDE_CHAR_VERSION - table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEWC); - weights = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTWC); - extra = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAWC); - indirect = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTWC); + table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEWC); + weights = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTWC); + extra = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAWC); + indirect = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTWC); # else - table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); - weights = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); - indirect = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB); + table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); + weights = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTMB); + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); + indirect = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB); # endif - idx = findidx (&cp); - if (idx != 0) - { - /* We found a table entry. Now see whether the - character we are currently at has the same - equivalance class value. */ - int len = weights[idx]; - int32_t idx2; - const UCHAR *np = (const UCHAR *) n; - - idx2 = findidx (&np); - if (idx2 != 0 && len == weights[idx2]) - { - int cnt = 0; - - while (cnt < len - && (weights[idx + 1 + cnt] - == weights[idx2 + 1 + cnt])) - ++cnt; - - if (cnt == len) - goto matched; - } - } - } + idx = findidx (&cp); + if (idx != 0) + { + /* We found a table entry. Now see whether the + character we are currently at has the same + equivalance class value. */ + int len = weights[idx & 0xffffff]; + int32_t idx2; + const UCHAR *np = (const UCHAR *) n; + + idx2 = findidx (&np); + if (idx2 != 0 + && (idx >> 24) == (idx2 >> 24) + && len == weights[idx2 & 0xffffff]) + { + int cnt = 0; + + idx &= 0xffffff; + idx2 &= 0xffffff; + + while (cnt < len + && (weights[idx + 1 + cnt] + == weights[idx2 + 1 + cnt])) + ++cnt; + + if (cnt == len) + goto matched; + } + } + } - c = *p++; - } + c = *p++; + } #endif - else if (c == L_('\0')) - /* [ (unterminated) loses. */ - return FNM_NOMATCH; - else - { - bool is_range = false; + else if (c == L_('\0')) + /* [ (unterminated) loses. */ + return FNM_NOMATCH; + else + { + bool is_range = false; #ifdef _LIBC - bool is_seqval = false; + bool is_seqval = false; - if (c == L_('[') && *p == L_('.')) - { - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); - const CHAR *startp = p; - size_t c1 = 0; - - while (1) - { - c = *++p; - if (c == L_('.') && p[1] == L_(']')) - { - p += 2; - break; - } - if (c == '\0') - return FNM_NOMATCH; - ++c1; - } - - /* We have to handling the symbols differently in - ranges since then the collation sequence is - important. */ - is_range = *p == L_('-') && p[1] != L_('\0'); - - if (nrules == 0) - { - /* There are no names defined in the collation - data. Therefore we only accept the trivial - names consisting of the character itself. */ - if (c1 != 1) - return FNM_NOMATCH; - - if (!is_range && *n == startp[1]) - goto matched; - - cold = startp[1]; - c = *p++; - } - else - { - int32_t table_size; - const int32_t *symb_table; + if (c == L_('[') && *p == L_('.')) + { + uint32_t nrules = + _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + const CHAR *startp = p; + size_t c1 = 0; + + while (1) + { + c = *++p; + if (c == L_('.') && p[1] == L_(']')) + { + p += 2; + break; + } + if (c == '\0') + return FNM_NOMATCH; + ++c1; + } + + /* We have to handling the symbols differently in + ranges since then the collation sequence is + important. */ + is_range = *p == L_('-') && p[1] != L_('\0'); + + if (nrules == 0) + { + /* There are no names defined in the collation + data. Therefore we only accept the trivial + names consisting of the character itself. */ + if (c1 != 1) + return FNM_NOMATCH; + + if (!is_range && *n == startp[1]) + goto matched; + + cold = startp[1]; + c = *p++; + } + else + { + int32_t table_size; + const int32_t *symb_table; # ifdef WIDE_CHAR_VERSION - char str[c1]; - size_t strcnt; + char str[c1]; + size_t strcnt; # else # define str (startp + 1) # endif - const unsigned char *extra; - int32_t idx; - int32_t elem; - int32_t second; - int32_t hash; + const unsigned char *extra; + int32_t idx; + int32_t elem; + int32_t second; + int32_t hash; # ifdef WIDE_CHAR_VERSION - /* We have to convert the name to a single-byte - string. This is possible since the names - consist of ASCII characters and the internal - representation is UCS4. */ - for (strcnt = 0; strcnt < c1; ++strcnt) - str[strcnt] = startp[1 + strcnt]; + /* We have to convert the name to a single-byte + string. This is possible since the names + consist of ASCII characters and the internal + representation is UCS4. */ + for (strcnt = 0; strcnt < c1; ++strcnt) + str[strcnt] = startp[1 + strcnt]; # endif - table_size = - _NL_CURRENT_WORD (LC_COLLATE, - _NL_COLLATE_SYMB_HASH_SIZEMB); - symb_table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_TABLEMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_EXTRAMB); - - /* Locate the character in the hashing table. */ - hash = elem_hash (str, c1); - - idx = 0; - elem = hash % table_size; - if (symb_table[2 * elem] != 0) - { - second = hash % (table_size - 2) + 1; - - do - { - /* First compare the hashing value. */ - if (symb_table[2 * elem] == hash - && (c1 - == extra[symb_table[2 * elem + 1]]) - && memcmp (str, - &extra[symb_table[2 * elem - + 1] - + 1], c1) == 0) - { - /* Yep, this is the entry. */ - idx = symb_table[2 * elem + 1]; - idx += 1 + extra[idx]; - break; - } - - /* Next entry. */ - elem += second; - } - while (symb_table[2 * elem] != 0); - } - - if (symb_table[2 * elem] != 0) - { - /* Compare the byte sequence but only if - this is not part of a range. */ + table_size = + _NL_CURRENT_WORD (LC_COLLATE, + _NL_COLLATE_SYMB_HASH_SIZEMB); + symb_table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_TABLEMB); + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_EXTRAMB); + + /* Locate the character in the hashing table. */ + hash = elem_hash (str, c1); + + idx = 0; + elem = hash % table_size; + if (symb_table[2 * elem] != 0) + { + second = hash % (table_size - 2) + 1; + + do + { + /* First compare the hashing value. */ + if (symb_table[2 * elem] == hash + && (c1 + == extra[symb_table[2 * elem + 1]]) + && memcmp (str, + &extra[symb_table[2 * elem + + 1] + + 1], c1) == 0) + { + /* Yep, this is the entry. */ + idx = symb_table[2 * elem + 1]; + idx += 1 + extra[idx]; + break; + } + + /* Next entry. */ + elem += second; + } + while (symb_table[2 * elem] != 0); + } + + if (symb_table[2 * elem] != 0) + { + /* Compare the byte sequence but only if + this is not part of a range. */ # ifdef WIDE_CHAR_VERSION - int32_t *wextra; + int32_t *wextra; - idx += 1 + extra[idx]; - /* Adjust for the alignment. */ - idx = (idx + 3) & ~3; + idx += 1 + extra[idx]; + /* Adjust for the alignment. */ + idx = (idx + 3) & ~3; - wextra = (int32_t *) &extra[idx + 4]; + wextra = (int32_t *) &extra[idx + 4]; # endif - if (! is_range) - { + if (! is_range) + { # ifdef WIDE_CHAR_VERSION - for (c1 = 0; - (int32_t) c1 < wextra[idx]; - ++c1) - if (n[c1] != wextra[1 + c1]) - break; + for (c1 = 0; + (int32_t) c1 < wextra[idx]; + ++c1) + if (n[c1] != wextra[1 + c1]) + break; - if ((int32_t) c1 == wextra[idx]) - goto matched; + if ((int32_t) c1 == wextra[idx]) + goto matched; # else - for (c1 = 0; c1 < extra[idx]; ++c1) - if (n[c1] != extra[1 + c1]) - break; + for (c1 = 0; c1 < extra[idx]; ++c1) + if (n[c1] != extra[1 + c1]) + break; - if (c1 == extra[idx]) - goto matched; + if (c1 == extra[idx]) + goto matched; # endif - } + } - /* Get the collation sequence value. */ - is_seqval = true; + /* Get the collation sequence value. */ + is_seqval = true; # ifdef WIDE_CHAR_VERSION - cold = wextra[1 + wextra[idx]]; + cold = wextra[1 + wextra[idx]]; # else - /* Adjust for the alignment. */ - idx += 1 + extra[idx]; - idx = (idx + 3) & ~4; - cold = *((int32_t *) &extra[idx]); + /* Adjust for the alignment. */ + idx += 1 + extra[idx]; + idx = (idx + 3) & ~4; + cold = *((int32_t *) &extra[idx]); # endif - c = *p++; - } - else if (c1 == 1) - { - /* No valid character. Match it as a - single byte. */ - if (!is_range && *n == str[0]) - goto matched; - - cold = str[0]; - c = *p++; - } - else - return FNM_NOMATCH; - } - } - else + c = *p++; + } + else if (c1 == 1) + { + /* No valid character. Match it as a + single byte. */ + if (!is_range && *n == str[0]) + goto matched; + + cold = str[0]; + c = *p++; + } + else + return FNM_NOMATCH; + } + } + else # undef str #endif - { - c = FOLD (c); - normal_bracket: - - /* We have to handling the symbols differently in - ranges since then the collation sequence is - important. */ - is_range = (*p == L_('-') && p[1] != L_('\0') - && p[1] != L_(']')); + { + c = FOLD (c); + normal_bracket: + + /* We have to handling the symbols differently in + ranges since then the collation sequence is + important. */ + is_range = (*p == L_('-') && p[1] != L_('\0') + && p[1] != L_(']')); - if (!is_range && c == fn) - goto matched; + if (!is_range && c == fn) + goto matched; #if _LIBC - /* This is needed if we goto normal_bracket; from - outside of is_seqval's scope. */ - is_seqval = false; + /* This is needed if we goto normal_bracket; from + outside of is_seqval's scope. */ + is_seqval = false; #endif - cold = c; - c = *p++; - } + cold = c; + c = *p++; + } - if (c == L_('-') && *p != L_(']')) - { + if (c == L_('-') && *p != L_(']')) + { #if _LIBC - /* We have to find the collation sequence - value for C. Collation sequence is nothing - we can regularly access. The sequence - value is defined by the order in which the - definitions of the collation values for the - various characters appear in the source - file. A strange concept, nowhere - documented. */ - uint32_t fcollseq; - uint32_t lcollseq; - UCHAR cend = *p++; + /* We have to find the collation sequence + value for C. Collation sequence is nothing + we can regularly access. The sequence + value is defined by the order in which the + definitions of the collation values for the + various characters appear in the source + file. A strange concept, nowhere + documented. */ + uint32_t fcollseq; + uint32_t lcollseq; + UCHAR cend = *p++; # ifdef WIDE_CHAR_VERSION - /* Search in the `names' array for the characters. */ - fcollseq = __collseq_table_lookup (collseq, fn); - if (fcollseq == ~((uint32_t) 0)) - /* XXX We don't know anything about the character - we are supposed to match. This means we are - failing. */ - goto range_not_matched; - - if (is_seqval) - lcollseq = cold; - else - lcollseq = __collseq_table_lookup (collseq, cold); + /* Search in the `names' array for the characters. */ + fcollseq = __collseq_table_lookup (collseq, fn); + if (fcollseq == ~((uint32_t) 0)) + /* XXX We don't know anything about the character + we are supposed to match. This means we are + failing. */ + goto range_not_matched; + + if (is_seqval) + lcollseq = cold; + else + lcollseq = __collseq_table_lookup (collseq, cold); # else - fcollseq = collseq[fn]; - lcollseq = is_seqval ? cold : collseq[(UCHAR) cold]; + fcollseq = collseq[fn]; + lcollseq = is_seqval ? cold : collseq[(UCHAR) cold]; # endif - is_seqval = false; - if (cend == L_('[') && *p == L_('.')) - { - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, - _NL_COLLATE_NRULES); - const CHAR *startp = p; - size_t c1 = 0; - - while (1) - { - c = *++p; - if (c == L_('.') && p[1] == L_(']')) - { - p += 2; - break; - } - if (c == '\0') - return FNM_NOMATCH; - ++c1; - } - - if (nrules == 0) - { - /* There are no names defined in the - collation data. Therefore we only - accept the trivial names consisting - of the character itself. */ - if (c1 != 1) - return FNM_NOMATCH; - - cend = startp[1]; - } - else - { - int32_t table_size; - const int32_t *symb_table; + is_seqval = false; + if (cend == L_('[') && *p == L_('.')) + { + uint32_t nrules = + _NL_CURRENT_WORD (LC_COLLATE, + _NL_COLLATE_NRULES); + const CHAR *startp = p; + size_t c1 = 0; + + while (1) + { + c = *++p; + if (c == L_('.') && p[1] == L_(']')) + { + p += 2; + break; + } + if (c == '\0') + return FNM_NOMATCH; + ++c1; + } + + if (nrules == 0) + { + /* There are no names defined in the + collation data. Therefore we only + accept the trivial names consisting + of the character itself. */ + if (c1 != 1) + return FNM_NOMATCH; + + cend = startp[1]; + } + else + { + int32_t table_size; + const int32_t *symb_table; # ifdef WIDE_CHAR_VERSION - char str[c1]; - size_t strcnt; + char str[c1]; + size_t strcnt; # else # define str (startp + 1) # endif - const unsigned char *extra; - int32_t idx; - int32_t elem; - int32_t second; - int32_t hash; + const unsigned char *extra; + int32_t idx; + int32_t elem; + int32_t second; + int32_t hash; # ifdef WIDE_CHAR_VERSION - /* We have to convert the name to a single-byte - string. This is possible since the names - consist of ASCII characters and the internal - representation is UCS4. */ - for (strcnt = 0; strcnt < c1; ++strcnt) - str[strcnt] = startp[1 + strcnt]; + /* We have to convert the name to a single-byte + string. This is possible since the names + consist of ASCII characters and the internal + representation is UCS4. */ + for (strcnt = 0; strcnt < c1; ++strcnt) + str[strcnt] = startp[1 + strcnt]; # endif - table_size = - _NL_CURRENT_WORD (LC_COLLATE, - _NL_COLLATE_SYMB_HASH_SIZEMB); - symb_table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_TABLEMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_EXTRAMB); + table_size = + _NL_CURRENT_WORD (LC_COLLATE, + _NL_COLLATE_SYMB_HASH_SIZEMB); + symb_table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_TABLEMB); + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_EXTRAMB); - /* Locate the character in the hashing + /* Locate the character in the hashing table. */ - hash = elem_hash (str, c1); + hash = elem_hash (str, c1); - idx = 0; - elem = hash % table_size; - if (symb_table[2 * elem] != 0) - { - second = hash % (table_size - 2) + 1; - - do - { - /* First compare the hashing value. */ - if (symb_table[2 * elem] == hash - && (c1 - == extra[symb_table[2 * elem + 1]]) - && memcmp (str, - &extra[symb_table[2 * elem + 1] - + 1], c1) == 0) - { - /* Yep, this is the entry. */ - idx = symb_table[2 * elem + 1]; - idx += 1 + extra[idx]; - break; - } - - /* Next entry. */ - elem += second; - } - while (symb_table[2 * elem] != 0); - } - - if (symb_table[2 * elem] != 0) - { - /* Compare the byte sequence but only if - this is not part of a range. */ + idx = 0; + elem = hash % table_size; + if (symb_table[2 * elem] != 0) + { + second = hash % (table_size - 2) + 1; + + do + { + /* First compare the hashing value. */ + if (symb_table[2 * elem] == hash + && (c1 + == extra[symb_table[2 * elem + 1]]) + && memcmp (str, + &extra[symb_table[2 * elem + 1] + + 1], c1) == 0) + { + /* Yep, this is the entry. */ + idx = symb_table[2 * elem + 1]; + idx += 1 + extra[idx]; + break; + } + + /* Next entry. */ + elem += second; + } + while (symb_table[2 * elem] != 0); + } + + if (symb_table[2 * elem] != 0) + { + /* Compare the byte sequence but only if + this is not part of a range. */ # ifdef WIDE_CHAR_VERSION - int32_t *wextra; + int32_t *wextra; - idx += 1 + extra[idx]; - /* Adjust for the alignment. */ - idx = (idx + 3) & ~4; + idx += 1 + extra[idx]; + /* Adjust for the alignment. */ + idx = (idx + 3) & ~4; - wextra = (int32_t *) &extra[idx + 4]; + wextra = (int32_t *) &extra[idx + 4]; # endif - /* Get the collation sequence value. */ - is_seqval = true; + /* Get the collation sequence value. */ + is_seqval = true; # ifdef WIDE_CHAR_VERSION - cend = wextra[1 + wextra[idx]]; + cend = wextra[1 + wextra[idx]]; # else - /* Adjust for the alignment. */ - idx += 1 + extra[idx]; - idx = (idx + 3) & ~4; - cend = *((int32_t *) &extra[idx]); + /* Adjust for the alignment. */ + idx += 1 + extra[idx]; + idx = (idx + 3) & ~4; + cend = *((int32_t *) &extra[idx]); # endif - } - else if (symb_table[2 * elem] != 0 && c1 == 1) - { - cend = str[0]; - c = *p++; - } - else - return FNM_NOMATCH; - } + } + else if (symb_table[2 * elem] != 0 && c1 == 1) + { + cend = str[0]; + c = *p++; + } + else + return FNM_NOMATCH; + } # undef str - } - else - { - if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) - cend = *p++; - if (cend == L_('\0')) - return FNM_NOMATCH; - cend = FOLD (cend); - } - - /* XXX It is not entirely clear to me how to handle - characters which are not mentioned in the - collation specification. */ - if ( + } + else + { + if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) + cend = *p++; + if (cend == L_('\0')) + return FNM_NOMATCH; + cend = FOLD (cend); + } + + /* XXX It is not entirely clear to me how to handle + characters which are not mentioned in the + collation specification. */ + if ( # ifdef WIDE_CHAR_VERSION - lcollseq == 0xffffffff || + lcollseq == 0xffffffff || # endif - lcollseq <= fcollseq) - { - /* We have to look at the upper bound. */ - uint32_t hcollseq; - - if (is_seqval) - hcollseq = cend; - else - { + lcollseq <= fcollseq) + { + /* We have to look at the upper bound. */ + uint32_t hcollseq; + + if (is_seqval) + hcollseq = cend; + else + { # ifdef WIDE_CHAR_VERSION - hcollseq = - __collseq_table_lookup (collseq, cend); - if (hcollseq == ~((uint32_t) 0)) - { - /* Hum, no information about the upper - bound. The matching succeeds if the - lower bound is matched exactly. */ - if (lcollseq != fcollseq) - goto range_not_matched; + hcollseq = + __collseq_table_lookup (collseq, cend); + if (hcollseq == ~((uint32_t) 0)) + { + /* Hum, no information about the upper + bound. The matching succeeds if the + lower bound is matched exactly. */ + if (lcollseq != fcollseq) + goto range_not_matched; - goto matched; - } + goto matched; + } # else - hcollseq = collseq[cend]; + hcollseq = collseq[cend]; # endif - } + } - if (lcollseq <= hcollseq && fcollseq <= hcollseq) - goto matched; - } + if (lcollseq <= hcollseq && fcollseq <= hcollseq) + goto matched; + } # ifdef WIDE_CHAR_VERSION - range_not_matched: + range_not_matched: # endif #else - /* We use a boring value comparison of the character - values. This is better than comparing using - `strcoll' since the latter would have surprising - and sometimes fatal consequences. */ - UCHAR cend = *p++; - - if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) - cend = *p++; - if (cend == L_('\0')) - return FNM_NOMATCH; - - /* It is a range. */ - if (cold <= fn && fn <= cend) - goto matched; + /* We use a boring value comparison of the character + values. This is better than comparing using + `strcoll' since the latter would have surprising + and sometimes fatal consequences. */ + UCHAR cend = *p++; + + if (!(flags & FNM_NOESCAPE) && cend == L_('\\')) + cend = *p++; + if (cend == L_('\0')) + return FNM_NOMATCH; + + /* It is a range. */ + if (cold <= fn && fn <= cend) + goto matched; #endif - c = *p++; - } - } - - if (c == L_(']')) - break; - } - - if (!not) - return FNM_NOMATCH; - break; - - matched: - /* Skip the rest of the [...] that already matched. */ - do - { - ignore_next: - c = *p++; - - if (c == L_('\0')) - /* [... (unterminated) loses. */ - return FNM_NOMATCH; - - if (!(flags & FNM_NOESCAPE) && c == L_('\\')) - { - if (*p == L_('\0')) - return FNM_NOMATCH; - /* XXX 1003.2d11 is unclear if this is right. */ - ++p; - } - else if (c == L_('[') && *p == L_(':')) - { - int c1 = 0; - const CHAR *startp = p; - - while (1) - { - c = *++p; - if (++c1 == CHAR_CLASS_MAX_LENGTH) - return FNM_NOMATCH; - - if (*p == L_(':') && p[1] == L_(']')) - break; - - if (c < L_('a') || c >= L_('z')) - { - p = startp; - goto ignore_next; - } - } - p += 2; - c = *p++; - } - else if (c == L_('[') && *p == L_('=')) - { - c = *++p; - if (c == L_('\0')) - return FNM_NOMATCH; - c = *++p; - if (c != L_('=') || p[1] != L_(']')) - return FNM_NOMATCH; - p += 2; - c = *p++; - } - else if (c == L_('[') && *p == L_('.')) - { - ++p; - while (1) - { - c = *++p; - if (c == '\0') - return FNM_NOMATCH; - - if (*p == L_('.') && p[1] == L_(']')) - break; - } - p += 2; - c = *p++; - } - } - while (c != L_(']')); - if (not) - return FNM_NOMATCH; - } - break; - - case L_('+'): - case L_('@'): - case L_('!'): - if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') - { - int res; - - res = EXT (c, p, n, string_end, no_leading_period, flags); - if (res != -1) - return res; - } - goto normal_match; - - case L_('/'): - if (NO_LEADING_PERIOD (flags)) - { - if (n == string_end || c != (UCHAR) *n) - return FNM_NOMATCH; - - new_no_leading_period = true; - break; - } - /* FALLTHROUGH */ - default: - normal_match: - if (n == string_end || c != FOLD ((UCHAR) *n)) - return FNM_NOMATCH; - } + c = *p++; + } + } + + if (c == L_(']')) + break; + } + + if (!not) + return FNM_NOMATCH; + break; + + matched: + /* Skip the rest of the [...] that already matched. */ + do + { + ignore_next: + c = *p++; + + if (c == L_('\0')) + /* [... (unterminated) loses. */ + return FNM_NOMATCH; + + if (!(flags & FNM_NOESCAPE) && c == L_('\\')) + { + if (*p == L_('\0')) + return FNM_NOMATCH; + /* XXX 1003.2d11 is unclear if this is right. */ + ++p; + } + else if (c == L_('[') && *p == L_(':')) + { + int c1 = 0; + const CHAR *startp = p; + + while (1) + { + c = *++p; + if (++c1 == CHAR_CLASS_MAX_LENGTH) + return FNM_NOMATCH; + + if (*p == L_(':') && p[1] == L_(']')) + break; + + if (c < L_('a') || c >= L_('z')) + { + p = startp; + goto ignore_next; + } + } + p += 2; + c = *p++; + } + else if (c == L_('[') && *p == L_('=')) + { + c = *++p; + if (c == L_('\0')) + return FNM_NOMATCH; + c = *++p; + if (c != L_('=') || p[1] != L_(']')) + return FNM_NOMATCH; + p += 2; + c = *p++; + } + else if (c == L_('[') && *p == L_('.')) + { + ++p; + while (1) + { + c = *++p; + if (c == '\0') + return FNM_NOMATCH; + + if (*p == L_('.') && p[1] == L_(']')) + break; + } + p += 2; + c = *p++; + } + } + while (c != L_(']')); + if (not) + return FNM_NOMATCH; + } + break; + + case L_('+'): + case L_('@'): + case L_('!'): + if (__builtin_expect (flags & FNM_EXTMATCH, 0) && *p == '(') + { + int res; + + res = EXT (c, p, n, string_end, no_leading_period, flags); + if (res != -1) + return res; + } + goto normal_match; + + case L_('/'): + if (NO_LEADING_PERIOD (flags)) + { + if (n == string_end || c != (UCHAR) *n) + return FNM_NOMATCH; + + new_no_leading_period = true; + break; + } + /* FALLTHROUGH */ + default: + normal_match: + if (n == string_end || c != FOLD ((UCHAR) *n)) + return FNM_NOMATCH; + } no_leading_period = new_no_leading_period; ++n; @@ -984,25 +989,25 @@ return pattern; else if (*p == L_('[')) { - /* Handle brackets special. */ - if (posixly_correct == 0) - posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; - - /* Skip the not sign. We have to recognize it because of a possibly - following ']'. */ - if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) - ++p; - /* A leading ']' is recognized as such. */ - if (*p == L_(']')) - ++p; - /* Skip over all characters of the list. */ - while (*p != L_(']')) - if (*p++ == L_('\0')) - /* This is no valid pattern. */ - return pattern; + /* Handle brackets special. */ + if (posixly_correct == 0) + posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; + + /* Skip the not sign. We have to recognize it because of a possibly + following ']'. */ + if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) + ++p; + /* A leading ']' is recognized as such. */ + if (*p == L_(']')) + ++p; + /* Skip over all characters of the list. */ + while (*p != L_(']')) + if (*p++ == L_('\0')) + /* This is no valid pattern. */ + return pattern; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') - || *p == L_('!')) && p[1] == L_('(')) + || *p == L_('!')) && p[1] == L_('(')) p = END (p + 1); else if (*p == L_(')')) break; @@ -1043,73 +1048,73 @@ goto failed; else if (*p == L_('[')) { - /* Handle brackets special. */ - if (posixly_correct == 0) - posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; - - /* Skip the not sign. We have to recognize it because of a possibly - following ']'. */ - if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) - ++p; - /* A leading ']' is recognized as such. */ - if (*p == L_(']')) - ++p; - /* Skip over all characters of the list. */ - while (*p != L_(']')) - if (*p++ == L_('\0')) - /* This is no valid pattern. */ - goto failed; + /* Handle brackets special. */ + if (posixly_correct == 0) + posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; + + /* Skip the not sign. We have to recognize it because of a possibly + following ']'. */ + if (*++p == L_('!') || (posixly_correct < 0 && *p == L_('^'))) + ++p; + /* A leading ']' is recognized as such. */ + if (*p == L_(']')) + ++p; + /* Skip over all characters of the list. */ + while (*p != L_(']')) + if (*p++ == L_('\0')) + /* This is no valid pattern. */ + goto failed; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') - || *p == L_('!')) && p[1] == L_('(')) + || *p == L_('!')) && p[1] == L_('(')) /* Remember the nesting level. */ ++level; else if (*p == L_(')')) { - if (level-- == 0) - { - /* This means we found the end of the pattern. */ + if (level-- == 0) + { + /* This means we found the end of the pattern. */ #define NEW_PATTERN \ - struct patternlist *newp; \ - size_t plen; \ - size_t plensize; \ - size_t newpsize; \ - \ - plen = (opt == L_('?') || opt == L_('@') \ - ? pattern_len \ - : p - startp + 1); \ - plensize = plen * sizeof (CHAR); \ - newpsize = offsetof (struct patternlist, str) + plensize; \ - if ((size_t) -1 / sizeof (CHAR) < plen \ - || newpsize < offsetof (struct patternlist, str)) \ - goto failed; \ - if (newpsize < ALLOCA_LIMIT) \ - { \ - newp = (struct patternlist *) alloca (newpsize); \ - newp->malloced = 0; \ - } \ - else \ - { \ - newp = (struct patternlist *) malloc (newpsize); \ - if (!newp) \ - goto failed; \ - newp->malloced = 1; \ - } \ - *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ - newp->next = NULL; \ - *lastp = newp; \ - lastp = &newp->next - NEW_PATTERN; - break; - } + struct patternlist *newp; \ + size_t plen; \ + size_t plensize; \ + size_t newpsize; \ + \ + plen = (opt == L_('?') || opt == L_('@') \ + ? pattern_len \ + : p - startp + 1UL); \ + plensize = plen * sizeof (CHAR); \ + newpsize = offsetof (struct patternlist, str) + plensize; \ + if ((size_t) -1 / sizeof (CHAR) < plen \ + || newpsize < offsetof (struct patternlist, str)) \ + goto failed; \ + if (newpsize < ALLOCA_LIMIT) \ + { \ + newp = (struct patternlist *) alloca (newpsize); \ + newp->malloced = 0; \ + } \ + else \ + { \ + newp = (struct patternlist *) malloc (newpsize); \ + if (!newp) \ + goto failed; \ + newp->malloced = 1; \ + } \ + *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ + newp->next = NULL; \ + *lastp = newp; \ + lastp = &newp->next + NEW_PATTERN; + break; + } } else if (*p == L_('|')) { - if (level == 0) - { - NEW_PATTERN; - startp = p + 1; - } + if (level == 0) + { + NEW_PATTERN; + startp = p + 1; + } } assert (list != NULL); assert (p[-1] == L_(')')); @@ -1119,49 +1124,49 @@ { case L_('*'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) - { - retval = 0; - goto done; - } + { + retval = 0; + goto done; + } /* FALLTHROUGH */ case L_('+'): do - { - struct patternlist *next; + { + struct patternlist *next; - for (rs = string; rs <= string_end; ++rs) - /* First match the prefix with the current pattern with the - current pattern. */ - if (FCT (list->str, string, rs, no_leading_period, - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0 - /* This was successful. Now match the rest with the rest - of the pattern. */ - && (FCT (p, rs, string_end, - rs == string - ? no_leading_period - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME - ? flags : flags & ~FNM_PERIOD) == 0 - /* This didn't work. Try the whole pattern. */ - || (rs != string - && FCT (pattern - 1, rs, string_end, - rs == string - ? no_leading_period - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME - ? flags : flags & ~FNM_PERIOD) == 0))) - { - /* It worked. Signal success. */ - retval = 0; - goto done; - } - - next = list->next; - if (list->malloced) - free (list); - list = next; - } + for (rs = string; rs <= string_end; ++rs) + /* First match the prefix with the current pattern with the + current pattern. */ + if (FCT (list->str, string, rs, no_leading_period, + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0 + /* This was successful. Now match the rest with the rest + of the pattern. */ + && (FCT (p, rs, string_end, + rs == string + ? no_leading_period + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME + ? flags : flags & ~FNM_PERIOD) == 0 + /* This didn't work. Try the whole pattern. */ + || (rs != string + && FCT (pattern - 1, rs, string_end, + rs == string + ? no_leading_period + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME + ? flags : flags & ~FNM_PERIOD) == 0))) + { + /* It worked. Signal success. */ + retval = 0; + goto done; + } + + next = list->next; + if (list->malloced) + free (list); + list = next; + } while (list != NULL); /* None of the patterns lead to a match. */ @@ -1169,35 +1174,35 @@ case L_('?'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) - { - retval = 0; - goto done; - } + { + retval = 0; + goto done; + } /* FALLTHROUGH */ case L_('@'): do - { - struct patternlist *next; + { + struct patternlist *next; - /* I cannot believe it but `strcat' is actually acceptable - here. Match the entire string with the prefix from the - pattern list and the rest of the pattern following the - pattern list. */ - if (FCT (STRCAT (list->str, p), string, string_end, - no_leading_period, - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) - { - /* It worked. Signal success. */ - retval = 0; - goto done; - } - - next = list->next; - if (list->malloced) - free (list); - list = next; - } + /* I cannot believe it but `strcat' is actually acceptable + here. Match the entire string with the prefix from the + pattern list and the rest of the pattern following the + pattern list. */ + if (FCT (STRCAT (list->str, p), string, string_end, + no_leading_period, + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) + { + /* It worked. Signal success. */ + retval = 0; + goto done; + } + + next = list->next; + if (list->malloced) + free (list); + list = next; + } while (list != NULL); /* None of the patterns lead to a match. */ @@ -1205,31 +1210,31 @@ case L_('!'): for (rs = string; rs <= string_end; ++rs) - { - struct patternlist *runp; + { + struct patternlist *runp; - for (runp = list; runp != NULL; runp = runp->next) - if (FCT (runp->str, string, rs, no_leading_period, - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) - break; - - /* If none of the patterns matched see whether the rest does. */ - if (runp == NULL - && (FCT (p, rs, string_end, - rs == string - ? no_leading_period - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) - == 0)) - { - /* This is successful. */ - retval = 0; - goto done; - } - } + for (runp = list; runp != NULL; runp = runp->next) + if (FCT (runp->str, string, rs, no_leading_period, + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) + break; + + /* If none of the patterns matched see whether the rest does. */ + if (runp == NULL + && (FCT (p, rs, string_end, + rs == string + ? no_leading_period + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) + == 0)) + { + /* This is successful. */ + retval = 0; + goto done; + } + } /* None of the patterns together with the rest of the pattern - lead to a match. */ + lead to a match. */ retval = FNM_NOMATCH; goto done; @@ -1246,7 +1251,7 @@ struct patternlist *next = list->next; if (list->malloced) - free (list); + free (list); list = next; } return retval; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fopen.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fopen.c --- gettext-0.17/gettext-tools/gnulib-lib/fopen.c 2007-10-17 22:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fopen.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Open a stream to a file. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,19 +18,88 @@ #include +/* Get the original definition of fopen. It might be defined as a macro. */ +#define __need_FILE +#include +#undef __need_FILE + +static inline FILE * +orig_fopen (const char *filename, const char *mode) +{ + return fopen (filename, mode); +} + /* Specification. */ #include +#include +#include #include +#include +#include +#include FILE * rpl_fopen (const char *filename, const char *mode) -#undef fopen { #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; #endif - return fopen (filename, mode); +#if FOPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and a mode that requires write access is + specified, then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file already exists as a directory, then if a mode that + requires write access is specified, fopen() must fail because POSIX + says that it + fails with errno = EISDIR in this case. + If the named file does not exist or does not name a directory, then + fopen() must fail since the file does not contain a '.' directory. */ + { + size_t len = strlen (filename); + if (len > 0 && filename[len - 1] == '/') + { + int fd; + struct stat statbuf; + FILE *fp; + + if (mode[0] == 'w' || mode[0] == 'a') + { + errno = EISDIR; + return NULL; + } + + fd = open (filename, O_RDONLY); + if (fd < 0) + return NULL; + + if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) + { + close (fd); + errno = ENOTDIR; + return NULL; + } + + fp = fdopen (fd, mode); + if (fp == NULL) + { + int saved_errno = errno; + close (fd); + errno = saved_errno; + } + return fp; + } + } +# endif + + return orig_fopen (filename, mode); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fstrcmp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fstrcmp.c --- gettext-0.17/gettext-tools/gnulib-lib/fstrcmp.c 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fstrcmp.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,6 @@ /* Functions to make fuzzy comparisons between strings - Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006, 2008-2010 Free + Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,8 +51,8 @@ #include #include -#include "lock.h" -#include "tls.h" +#include "glthread/lock.h" +#include "glthread/tls.h" #include "minmax.h" #include "xalloc.h" @@ -64,11 +65,14 @@ #define EQUAL(x,y) ((x) == (y)) #define OFFSET int #define EXTRA_CONTEXT_FIELDS \ - /* The number of elements inserted or deleted. */ \ - int xvec_edit_count; \ - int yvec_edit_count; -#define NOTE_DELETE(ctxt, xoff) ctxt->xvec_edit_count++ -#define NOTE_INSERT(ctxt, yoff) ctxt->yvec_edit_count++ + /* The number of edits beyond which the computation can be aborted. */ \ + int edit_count_limit; \ + /* The number of edits (= number of elements inserted, plus the number of \ + elements deleted), temporarily minus edit_count_limit. */ \ + int edit_count; +#define NOTE_DELETE(ctxt, xoff) ctxt->edit_count++ +#define NOTE_INSERT(ctxt, yoff) ctxt->edit_count++ +#define EARLY_ABORT(ctxt) ctxt->edit_count > 0 /* We don't need USE_HEURISTIC, since it is unlikely in typical uses of fstrcmp(). */ #include "diffseq.h" @@ -81,8 +85,8 @@ already allocated memory, store the allocated memory per thread. Free it only when the thread exits. */ -static gl_tls_key_t buffer_key; /* TLS key for a 'int *' */ -static gl_tls_key_t bufmax_key; /* TLS key for a 'size_t' */ +static gl_tls_key_t buffer_key; /* TLS key for a 'int *' */ +static gl_tls_key_t bufmax_key; /* TLS key for a 'size_t' */ static void keys_init (void) @@ -96,46 +100,108 @@ gl_once_define(static, keys_init_once) -/* NAME - fstrcmp - fuzzy string compare +/* In the code below, branch probabilities were measured by Ralf Wildenhues, + by running "msgmerge LL.po coreutils.pot" with msgmerge 0.18 for many + values of LL. The probability indicates that the condition evaluates + to true; whether that leads to a branch or a non-branch in the code, + depends on the compiler's reordering of basic blocks. */ - SYNOPSIS - double fstrcmp(const char *, const char *); - - DESCRIPTION - The fstrcmp function may be used to compare two string for - similarity. It is very useful in reducing "cascade" or - "secondary" errors in compilers or other situations where - symbol tables occur. - - RETURNS - double; 0 if the strings are entirly dissimilar, 1 if the - strings are identical, and a number in between if they are - similar. */ double -fstrcmp (const char *string1, const char *string2) +fstrcmp_bounded (const char *string1, const char *string2, double lower_bound) { struct context ctxt; - int xvec_length; - int yvec_length; + int xvec_length = strlen (string1); + int yvec_length = strlen (string2); int i; size_t fdiag_len; int *buffer; size_t bufmax; + /* short-circuit obvious comparisons */ + if (xvec_length == 0 || yvec_length == 0) /* Prob: 1% */ + return (xvec_length == 0 && yvec_length == 0 ? 1.0 : 0.0); + + if (lower_bound > 0) + { + /* Compute a quick upper bound. + Each edit is an insertion or deletion of an element, hence modifies + the length of the sequence by at most 1. + Therefore, when starting from a sequence X and ending at a sequence Y, + with N edits, | yvec_length - xvec_length | <= N. (Proof by + induction over N.) + So, at the end, we will have + edit_count >= | xvec_length - yvec_length |. + and hence + result + = (xvec_length + yvec_length - edit_count) + / (xvec_length + yvec_length) + <= (xvec_length + yvec_length - | yvec_length - xvec_length |) + / (xvec_length + yvec_length) + = 2 * min (xvec_length, yvec_length) / (xvec_length + yvec_length). + */ + volatile double upper_bound = + (double) (2 * MIN (xvec_length, yvec_length)) + / (xvec_length + yvec_length); + + if (upper_bound < lower_bound) /* Prob: 74% */ + /* Return an arbitrary value < LOWER_BOUND. */ + return 0.0; + +#if CHAR_BIT <= 8 + /* When X and Y are both small, avoid the overhead of setting up an + array of size 256. */ + if (xvec_length + yvec_length >= 20) /* Prob: 99% */ + { + /* Compute a less quick upper bound. + Each edit is an insertion or deletion of a character, hence + modifies the occurrence count of a character by 1 and leaves the + other occurrence counts unchanged. + Therefore, when starting from a sequence X and ending at a + sequence Y, and denoting the occurrence count of C in X with + OCC (X, C), with N edits, + sum_C | OCC (X, C) - OCC (Y, C) | <= N. + (Proof by induction over N.) + So, at the end, we will have + edit_count >= sum_C | OCC (X, C) - OCC (Y, C) |, + and hence + result + = (xvec_length + yvec_length - edit_count) + / (xvec_length + yvec_length) + <= (xvec_length + yvec_length - sum_C | OCC(X,C) - OCC(Y,C) |) + / (xvec_length + yvec_length). + */ + int occ_diff[UCHAR_MAX + 1]; /* array C -> OCC(X,C) - OCC(Y,C) */ + int sum; + + /* Determine the occurrence counts in X. */ + memset (occ_diff, 0, sizeof (occ_diff)); + for (i = xvec_length - 1; i >= 0; i--) + occ_diff[(unsigned char) string1[i]]++; + /* Subtract the occurrence counts in Y. */ + for (i = yvec_length - 1; i >= 0; i--) + occ_diff[(unsigned char) string2[i]]--; + /* Sum up the absolute values. */ + sum = 0; + for (i = 0; i <= UCHAR_MAX; i++) + { + int d = occ_diff[i]; + sum += (d >= 0 ? d : -d); + } + + upper_bound = 1.0 - (double) sum / (xvec_length + yvec_length); + + if (upper_bound < lower_bound) /* Prob: 66% */ + /* Return an arbitrary value < LOWER_BOUND. */ + return 0.0; + } +#endif + } + /* set the info for each string. */ ctxt.xvec = string1; - xvec_length = strlen (string1); ctxt.yvec = string2; - yvec_length = strlen (string2); - - /* short-circuit obvious comparisons */ - if (xvec_length == 0 && yvec_length == 0) - return 1.0; - if (xvec_length == 0 || yvec_length == 0) - return 0.0; /* Set TOO_EXPENSIVE to be approximate square root of input size, bounded below by 256. */ @@ -157,11 +223,11 @@ /* Need more memory. */ bufmax = 2 * bufmax; if (fdiag_len > bufmax) - bufmax = fdiag_len; + bufmax = fdiag_len; /* Calling xrealloc would be a waste: buffer's contents does not need - to be preserved. */ + to be preserved. */ if (buffer != NULL) - free (buffer); + free (buffer); buffer = (int *) xnmalloc (bufmax, 2 * sizeof (int)); gl_tls_set (buffer_key, buffer); gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax); @@ -169,17 +235,37 @@ ctxt.fdiag = buffer + yvec_length + 1; ctxt.bdiag = ctxt.fdiag + fdiag_len; + /* The edit_count is only ever increased. The computation can be aborted + when + (xvec_length + yvec_length - edit_count) / (xvec_length + yvec_length) + < lower_bound, + or equivalently + edit_count > (xvec_length + yvec_length) * (1 - lower_bound) + or equivalently + edit_count > floor((xvec_length + yvec_length) * (1 - lower_bound)). + We need to add an epsilon inside the floor(...) argument, to neutralize + rounding errors. */ + ctxt.edit_count_limit = + (lower_bound < 1.0 + ? (int) ((xvec_length + yvec_length) * (1.0 - lower_bound + 0.000001)) + : 0); + /* Now do the main comparison algorithm */ - ctxt.xvec_edit_count = 0; - ctxt.yvec_edit_count = 0; - compareseq (0, xvec_length, 0, yvec_length, 0, - &ctxt); + ctxt.edit_count = - ctxt.edit_count_limit; + if (compareseq (0, xvec_length, 0, yvec_length, 0, &ctxt)) /* Prob: 98% */ + /* The edit_count passed the limit. Hence the result would be + < lower_bound. We can return any value < lower_bound instead. */ + return 0.0; + ctxt.edit_count += ctxt.edit_count_limit; /* The result is - ((number of chars in common) / (average length of the strings)). + ((number of chars in common) / (average length of the strings)). + The numerator is + = xvec_length - (number of calls to NOTE_DELETE) + = yvec_length - (number of calls to NOTE_INSERT) + = 1/2 * (xvec_length + yvec_length - (number of edits)). This is admittedly biased towards finding that the strings are similar, however it does produce meaningful results. */ - return ((double) (xvec_length + yvec_length - - ctxt.yvec_edit_count - ctxt.xvec_edit_count) - / (xvec_length + yvec_length)); + return ((double) (xvec_length + yvec_length - ctxt.edit_count) + / (xvec_length + yvec_length)); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fstrcmp.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fstrcmp.h --- gettext-0.17/gettext-tools/gnulib-lib/fstrcmp.h 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fstrcmp.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,6 @@ /* Fuzzy string comparison. - Copyright (C) 1995, 2000, 2002-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 2000, 2002-2003, 2006, 2008-2010 Free Software + Foundation, Inc. This file was written by Peter Miller @@ -24,9 +25,19 @@ #endif /* Fuzzy compare of S1 and S2. Return a measure for the similarity of S1 - and S1. The higher the result, the more similar the strings are. */ + and S1. The higher the result, the more similar the strings are. + The result is bounded between 0 (meaning very dissimilar strings) and + 1 (meaning identical strings). */ extern double fstrcmp (const char *s1, const char *s2); +/* Like fstrcmp (S1, S2), except that if the result is < LOWER_BOUND, an + arbitrary other value < LOWER_BOUND can be returned. */ +extern double fstrcmp_bounded (const char *s1, const char *s2, + double lower_bound); + +/* A shortcut for fstrcmp. Avoids a function call. */ +#define fstrcmp(s1,s2) fstrcmp_bounded (s1, s2, 0.0) + #ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/full-write.c gettext-0.18.1.1/gettext-tools/gnulib-lib/full-write.c --- gettext-0.17/gettext-tools/gnulib-lib/full-write.c 2007-10-07 20:29:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/full-write.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,7 +1,6 @@ /* An interface to read and write that retries (if necessary) until complete. - Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 1993-1994, 1997-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,12 +64,12 @@ { size_t n_rw = safe_rw (fd, ptr, count); if (n_rw == (size_t) -1) - break; + break; if (n_rw == 0) - { - errno = ZERO_BYTE_TRANSFER_ERRNO; - break; - } + { + errno = ZERO_BYTE_TRANSFER_ERRNO; + break; + } total += n_rw; ptr += n_rw; count -= n_rw; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/full-write.h gettext-0.18.1.1/gettext-tools/gnulib-lib/full-write.h --- gettext-0.17/gettext-tools/gnulib-lib/full-write.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/full-write.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* An interface to write() that writes all it is asked to write. - Copyright (C) 2002-2003 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fwriteerror.c gettext-0.18.1.1/gettext-tools/gnulib-lib/fwriteerror.c --- gettext-0.17/gettext-tools/gnulib-lib/fwriteerror.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fwriteerror.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -32,13 +32,25 @@ if (fp == stdout) { if (stdout_closed) - return 0; + return 0; /* If we are closing stdout, don't attempt to do it later again. */ stdout_closed = true; } - /* Need to + /* This function returns an error indication if there was a previous failure + or if fclose failed, with two exceptions: + - Ignore an fclose failure if there was no previous error, no data + remains to be flushed, and fclose failed with EBADF. That can + happen when a program like cp is invoked like this `cp a b >&-' + (i.e., with standard output closed) and doesn't generate any + output (hence no previous error and nothing to be flushed). + - Ignore an fclose failure due to EPIPE. That can happen when a + program blocks or ignores SIGPIPE, and the output pipe or socket + has no readers now. The EPIPE tells us that we should stop writing + to this output. That's what we are doing anyway here. + + Need to 1. test the error indicator of the stream, 2. flush the buffers both in userland and in the kernel, through fclose, testing for error again. */ @@ -50,15 +62,15 @@ if (ferror (fp)) { if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* The stream had an error earlier, but its errno was lost. If the - error was not temporary, we can get the same errno by writing and - flushing one more byte. We can do so because at this point the - stream's contents is garbage anyway. */ + error was not temporary, we can get the same errno by writing and + flushing one more byte. We can do so because at this point the + stream's contents is garbage anyway. */ if (fputc ('\0', fp) == EOF) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* Give up on errno. */ errno = 0; goto close_preserving_errno; @@ -67,16 +79,16 @@ if (ignore_ebadf) { /* We need an explicit fflush to tell whether some output was already - done on FP. */ + done on FP. */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fclose (fp) && errno != EBADF) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } else { if (fclose (fp)) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } return 0; @@ -88,8 +100,13 @@ int saved_errno = errno; fclose (fp); errno = saved_errno; - return -1; } + got_errno: + /* There's an error. Ignore EPIPE. */ + if (errno == EPIPE) + return 0; + else + return -1; } int @@ -108,7 +125,7 @@ #if TEST /* Name of a file on which writing fails. On systems without /dev/full, - you can choose a filename on a full filesystem. */ + you can choose a filename on a full file system. */ #define UNWRITABLE_FILE "/dev/full" int @@ -130,32 +147,32 @@ size_t size = sizes[i]; for (j = 0; j < 2; j++) - { - /* Run a test depending on i and j: - Write size bytes and then calls fflush if j==1. */ - FILE *stream = fopen (UNWRITABLE_FILE, "w"); - - if (stream == NULL) - { - fprintf (stderr, "Test %u:%u: could not open file\n", i, j); - continue; - } - - fwrite (dummy, 347, 1, stream); - fwrite (dummy, size - 347, 1, stream); - if (j) - fflush (stream); - - if (fwriteerror (stream) == -1) - { - if (errno != ENOSPC) - fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", - i, j, errno); - } - else - fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", - i, j); - } + { + /* Run a test depending on i and j: + Write size bytes and then calls fflush if j==1. */ + FILE *stream = fopen (UNWRITABLE_FILE, "w"); + + if (stream == NULL) + { + fprintf (stderr, "Test %u:%u: could not open file\n", i, j); + continue; + } + + fwrite (dummy, 347, 1, stream); + fwrite (dummy, size - 347, 1, stream); + if (j) + fflush (stream); + + if (fwriteerror (stream) == -1) + { + if (errno != ENOSPC) + fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", + i, j, errno); + } + else + fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", + i, j); + } } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/fwriteerror.h gettext-0.18.1.1/gettext-tools/gnulib-lib/fwriteerror.h --- gettext-0.17/gettext-tools/gnulib-lib/fwriteerror.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/fwriteerror.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gcd.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gcd.c --- gettext-0.17/gettext-tools/gnulib-lib/gcd.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gcd.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Arithmetic. - Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -47,39 +47,39 @@ if (a & c) { if (b & c) - goto odd_odd; + goto odd_odd; else - goto odd_even; + goto odd_even; } else { if (b & c) - goto even_odd; + goto even_odd; else - abort (); + abort (); } for (;;) { odd_odd: /* a/c and b/c both odd */ if (a == b) - break; + break; if (a > b) - { - a = a - b; - even_odd: /* a/c even, b/c odd */ - do - a = a >> 1; - while ((a & c) == 0); - } + { + a = a - b; + even_odd: /* a/c even, b/c odd */ + do + a = a >> 1; + while ((a & c) == 0); + } else - { - b = b - a; - odd_even: /* a/c odd, b/c even */ - do - b = b >> 1; - while ((b & c) == 0); - } + { + b = b - a; + odd_even: /* a/c odd, b/c even */ + do + b = b >> 1; + while ((b & c) == 0); + } } /* a = b */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gcd.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gcd.h --- gettext-0.17/gettext-tools/gnulib-lib/gcd.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gcd.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Arithmetic. - Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getdelim.c gettext-0.18.1.1/gettext-tools/gnulib-lib/getdelim.c --- gettext-0.17/gettext-tools/gnulib-lib/getdelim.c 2007-09-01 13:11:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getdelim.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,10 +1,10 @@ /* getdelim.c --- Implementation of replacement getdelim function. - Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007 Free - Software Foundation, Inc. + Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007, 2008, + 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, or (at + published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -21,30 +21,32 @@ #include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */ +#define _GL_ARG_NONNULL(params) + #include #include +#include #include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif -#if !HAVE_FLOCKFILE + +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +# define getc_maybe_unlocked(fp) getc(fp) +#elif !HAVE_FLOCKFILE || !HAVE_FUNLOCKFILE || !HAVE_DECL_GETC_UNLOCKED # undef flockfile -# define flockfile(x) ((void) 0) -#endif -#if !HAVE_FUNLOCKFILE # undef funlockfile +# define flockfile(x) ((void) 0) # define funlockfile(x) ((void) 0) -#endif - -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG +# define getc_maybe_unlocked(fp) getc(fp) +#else +# define getc_maybe_unlocked(fp) getc_unlocked(fp) #endif /* Read up to (and including) a DELIMITER from FP into *LINEPTR (and @@ -69,59 +71,61 @@ if (*lineptr == NULL || *n == 0) { + char *new_lineptr; *n = 120; - *lineptr = (char *) realloc (*lineptr, *n); - if (*lineptr == NULL) - { - result = -1; - goto unlock_return; - } + new_lineptr = (char *) realloc (*lineptr, *n); + if (new_lineptr == NULL) + { + result = -1; + goto unlock_return; + } + *lineptr = new_lineptr; } for (;;) { int i; - i = getc (fp); + i = getc_maybe_unlocked (fp); if (i == EOF) - { - result = -1; - break; - } + { + result = -1; + break; + } /* Make enough space for len+1 (for final NUL) bytes. */ if (cur_len + 1 >= *n) - { - size_t needed_max = - SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX; - size_t needed = 2 * *n + 1; /* Be generous. */ - char *new_lineptr; - - if (needed_max < needed) - needed = needed_max; - if (cur_len + 1 >= needed) - { - result = -1; - errno = EOVERFLOW; - goto unlock_return; - } - - new_lineptr = (char *) realloc (*lineptr, needed); - if (new_lineptr == NULL) - { - result = -1; - goto unlock_return; - } - - *lineptr = new_lineptr; - *n = needed; - } + { + size_t needed_max = + SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX; + size_t needed = 2 * *n + 1; /* Be generous. */ + char *new_lineptr; + + if (needed_max < needed) + needed = needed_max; + if (cur_len + 1 >= needed) + { + result = -1; + errno = EOVERFLOW; + goto unlock_return; + } + + new_lineptr = (char *) realloc (*lineptr, needed); + if (new_lineptr == NULL) + { + result = -1; + goto unlock_return; + } + + *lineptr = new_lineptr; + *n = needed; + } (*lineptr)[cur_len] = i; cur_len++; if (i == delimiter) - break; + break; } (*lineptr)[cur_len] = '\0'; result = cur_len ? cur_len : result; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getdtablesize.c gettext-0.18.1.1/gettext-tools/gnulib-lib/getdtablesize.c --- gettext-0.17/gettext-tools/gnulib-lib/getdtablesize.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getdtablesize.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,63 @@ +/* getdtablesize() function for platforms that don't have it. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +#include + +/* Cache for the previous getdtablesize () result. */ +static int dtablesize; + +int +getdtablesize (void) +{ + if (dtablesize == 0) + { + /* We are looking for the number N such that the valid file descriptors + are 0..N-1. It can be obtained through a loop as follows: + { + int fd; + for (fd = 3; fd < 65536; fd++) + if (dup2 (0, fd) == -1) + break; + return fd; + } + On Windows XP, the result is 2048. + The drawback of this loop is that it allocates memory for a libc + internal array that is never freed. + + The number N can also be obtained as the upper bound for + _getmaxstdio (). _getmaxstdio () returns the maximum number of open + FILE objects. The sanity check in _setmaxstdio reveals the maximum + number of file descriptors. This too allocates memory, but it is + freed when we call _setmaxstdio with the original value. */ + int orig_max_stdio = _getmaxstdio (); + unsigned int bound; + for (bound = 0x10000; _setmaxstdio (bound) < 0; bound = bound / 2) + ; + _setmaxstdio (orig_max_stdio); + dtablesize = bound; + } + return dtablesize; +} + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getline.c gettext-0.18.1.1/gettext-tools/gnulib-lib/getline.c --- gettext-0.17/gettext-tools/gnulib-lib/getline.c 2007-09-01 13:11:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getline.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,9 +1,9 @@ /* getline.c --- Implementation of replacement getline function. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, or (at + published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getopt1.c gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt1.c --- gettext-0.17/gettext-tools/gnulib-lib/getopt1.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt1.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004,2006 - Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, + 1998, 2004, 2006, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -32,25 +32,25 @@ #include #endif -#ifndef NULL +#ifndef NULL #define NULL 0 #endif int getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, - const struct option *long_options, int *opt_index) + const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, - opt_index, 0, 0); + opt_index, 0, 0); } int _getopt_long_r (int argc, char **argv, const char *options, - const struct option *long_options, int *opt_index, - struct _getopt_data *d) + const struct option *long_options, int *opt_index, + struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, - 0, 0, d); + 0, d, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. @@ -60,20 +60,20 @@ int getopt_long_only (int argc, char *__getopt_argv_const *argv, - const char *options, - const struct option *long_options, int *opt_index) + const char *options, + const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, - opt_index, 1, 0); + opt_index, 1, 0); } int _getopt_long_only_r (int argc, char **argv, const char *options, - const struct option *long_options, int *opt_index, - struct _getopt_data *d) + const struct option *long_options, int *opt_index, + struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, - 1, 0, d); + 1, d, 0); } @@ -91,76 +91,76 @@ { int this_option_optind = optind ? optind : 1; int option_index = 0; - static struct option long_options[] = + static const struct option long_options[] = { - {"add", 1, 0, 0}, - {"append", 0, 0, 0}, - {"delete", 1, 0, 0}, - {"verbose", 0, 0, 0}, - {"create", 0, 0, 0}, - {"file", 1, 0, 0}, - {0, 0, 0, 0} + {"add", 1, 0, 0}, + {"append", 0, 0, 0}, + {"delete", 1, 0, 0}, + {"verbose", 0, 0, 0}, + {"create", 0, 0, 0}, + {"file", 1, 0, 0}, + {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", - long_options, &option_index); + long_options, &option_index); if (c == -1) - break; + break; switch (c) - { - case 0: - printf ("option %s", long_options[option_index].name); - if (optarg) - printf (" with arg %s", optarg); - printf ("\n"); - break; - - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case 'd': - printf ("option d with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } + { + case 0: + printf ("option %s", long_options[option_index].name); + if (optarg) + printf (" with arg %s", optarg); + printf ("\n"); + break; + + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + if (digit_optind != 0 && digit_optind != this_option_optind) + printf ("digits occur in two different argv-elements.\n"); + digit_optind = this_option_optind; + printf ("option %c\n", c); + break; + + case 'a': + printf ("option a\n"); + break; + + case 'b': + printf ("option b\n"); + break; + + case 'c': + printf ("option c with value `%s'\n", optarg); + break; + + case 'd': + printf ("option d with value `%s'\n", optarg); + break; + + case '?': + break; + + default: + printf ("?? getopt returned character code 0%o ??\n", c); + } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) - printf ("%s ", argv[optind++]); + printf ("%s ", argv[optind++]); printf ("\n"); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getopt.c gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt.c --- gettext-0.17/gettext-tools/gnulib-lib/getopt.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,9 +1,9 @@ /* Getopt for GNU. - NOTE: getopt is now part of the C library, so if you don't know what + NOTE: getopt is part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to drepper@gnu.org before changing it! - Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004,2006 - Free Software Foundation, Inc. + Copyright (C) 1987-1996, 1998-2004, 2006, 2008-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -30,10 +30,6 @@ #include #include -#ifdef __VMS -# include -#endif - #ifdef _LIBC # include #else @@ -45,12 +41,9 @@ # include #endif -#ifndef attribute_hidden -# define attribute_hidden -#endif - -/* Unlike standard Unix `getopt', functions like `getopt_long' - let the user intersperse the options with the other arguments. +/* This version of `getopt' appears to the caller like standard Unix `getopt' + but it behaves differently for the user, since it allows the user + to intersperse the options with the other arguments. As `getopt_long' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus @@ -58,7 +51,7 @@ Using `getopt' or setting the environment variable POSIXLY_CORRECT disables permutation. - Then the application's behavior is completely standard. + Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ @@ -125,18 +118,18 @@ # ifdef USE_NONOPTION_FLAGS # define SWAP_FLAGS(ch1, ch2) \ - if (d->__nonoption_flags_len > 0) \ - { \ - char __tmp = __getopt_nonoption_flags[ch1]; \ - __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ - __getopt_nonoption_flags[ch2] = __tmp; \ + if (d->__nonoption_flags_len > 0) \ + { \ + char __tmp = __getopt_nonoption_flags[ch1]; \ + __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ + __getopt_nonoption_flags[ch2] = __tmp; \ } # else # define SWAP_FLAGS(ch1, ch2) # endif -#else /* !_LIBC */ +#else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) -#endif /* _LIBC */ +#endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) @@ -167,57 +160,57 @@ if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and - presents new arguments. */ + presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) - d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; + d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0; else - { - memset (__mempcpy (new_str, __getopt_nonoption_flags, - d->__nonoption_flags_max_len), - '\0', top + 1 - d->__nonoption_flags_max_len); - d->__nonoption_flags_max_len = top + 1; - __getopt_nonoption_flags = new_str; - } + { + memset (__mempcpy (new_str, __getopt_nonoption_flags, + d->__nonoption_flags_max_len), + '\0', top + 1 - d->__nonoption_flags_max_len); + d->__nonoption_flags_max_len = top + 1; + __getopt_nonoption_flags = new_str; + } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) - { - /* Bottom segment is the short one. */ - int len = middle - bottom; - register int i; - - /* Swap it with the top part of the top segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[top - (middle - bottom) + i]; - argv[top - (middle - bottom) + i] = tem; - SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); - } - /* Exclude the moved bottom segment from further swapping. */ - top -= len; - } + { + /* Bottom segment is the short one. */ + int len = middle - bottom; + register int i; + + /* Swap it with the top part of the top segment. */ + for (i = 0; i < len; i++) + { + tem = argv[bottom + i]; + argv[bottom + i] = argv[top - (middle - bottom) + i]; + argv[top - (middle - bottom) + i] = tem; + SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); + } + /* Exclude the moved bottom segment from further swapping. */ + top -= len; + } else - { - /* Top segment is the short one. */ - int len = top - middle; - register int i; - - /* Swap it with the bottom part of the bottom segment. */ - for (i = 0; i < len; i++) - { - tem = argv[bottom + i]; - argv[bottom + i] = argv[middle + i]; - argv[middle + i] = tem; - SWAP_FLAGS (bottom + i, middle + i); - } - /* Exclude the moved top segment from further swapping. */ - bottom += len; - } + { + /* Top segment is the short one. */ + int len = top - middle; + register int i; + + /* Swap it with the bottom part of the bottom segment. */ + for (i = 0; i < len; i++) + { + tem = argv[bottom + i]; + argv[bottom + i] = argv[middle + i]; + argv[middle + i] = tem; + SWAP_FLAGS (bottom + i, middle + i); + } + /* Exclude the moved top segment from further swapping. */ + bottom += len; + } } /* Update records for the slots the non-options now occupy. */ @@ -229,8 +222,9 @@ /* Initialize the internal data when the first call is made. */ static const char * -_getopt_initialize (int argc, char **argv, const char *optstring, - int posixly_correct, struct _getopt_data *d) +_getopt_initialize (int argc _GL_UNUSED, + char **argv _GL_UNUSED, const char *optstring, + struct _getopt_data *d, int posixly_correct) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped @@ -264,25 +258,25 @@ && argc == __libc_argc && argv == __libc_argv) { if (d->__nonoption_flags_max_len == 0) - { - if (__getopt_nonoption_flags == NULL - || __getopt_nonoption_flags[0] == '\0') - d->__nonoption_flags_max_len = -1; - else - { - const char *orig_str = __getopt_nonoption_flags; - int len = d->__nonoption_flags_max_len = strlen (orig_str); - if (d->__nonoption_flags_max_len < argc) - d->__nonoption_flags_max_len = argc; - __getopt_nonoption_flags = - (char *) malloc (d->__nonoption_flags_max_len); - if (__getopt_nonoption_flags == NULL) - d->__nonoption_flags_max_len = -1; - else - memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), - '\0', d->__nonoption_flags_max_len - len); - } - } + { + if (__getopt_nonoption_flags == NULL + || __getopt_nonoption_flags[0] == '\0') + d->__nonoption_flags_max_len = -1; + else + { + const char *orig_str = __getopt_nonoption_flags; + int len = d->__nonoption_flags_max_len = strlen (orig_str); + if (d->__nonoption_flags_max_len < argc) + d->__nonoption_flags_max_len = argc; + __getopt_nonoption_flags = + (char *) malloc (d->__nonoption_flags_max_len); + if (__getopt_nonoption_flags == NULL) + d->__nonoption_flags_max_len = -1; + else + memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), + '\0', d->__nonoption_flags_max_len - len); + } + } d->__nonoption_flags_len = d->__nonoption_flags_max_len; } else @@ -334,6 +328,10 @@ `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. + The elements of ARGV aren't really const, because we permute them. + But we pretend they're const in the prototype to be compatible + with other systems. + LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. @@ -342,19 +340,14 @@ recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce - long-named options. - - If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT - environment variable were set. */ + long-named options. */ int _getopt_internal_r (int argc, char **argv, const char *optstring, - const struct option *longopts, int *longind, - int long_only, int posixly_correct, struct _getopt_data *d) + const struct option *longopts, int *longind, + int long_only, struct _getopt_data *d, int posixly_correct) { int print_errors = d->opterr; - if (optstring[0] == ':') - print_errors = 0; if (argc < 1) return -1; @@ -364,11 +357,15 @@ if (d->optind == 0 || !d->__initialized) { if (d->optind == 0) - d->optind = 1; /* Don't scan ARGV[0], the program name. */ - optstring = _getopt_initialize (argc, argv, optstring, - posixly_correct, d); + d->optind = 1; /* Don't scan ARGV[0], the program name. */ + optstring = _getopt_initialize (argc, argv, optstring, d, + posixly_correct); d->__initialized = 1; } + else if (optstring[0] == '-' || optstring[0] == '+') + optstring++; + if (optstring[0] == ':') + print_errors = 0; /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag @@ -376,8 +373,8 @@ is only used when the used in the GNU libc. */ #if defined _LIBC && defined USE_NONOPTION_FLAGS # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \ - || (d->optind < d->__nonoption_flags_len \ - && __getopt_nonoption_flags[d->optind] == '1')) + || (d->optind < d->__nonoption_flags_len \ + && __getopt_nonoption_flags[d->optind] == '1')) #else # define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') #endif @@ -387,78 +384,78 @@ /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been - moved back by the user (who may also have changed the arguments). */ + moved back by the user (who may also have changed the arguments). */ if (d->__last_nonopt > d->optind) - d->__last_nonopt = d->optind; + d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) - d->__first_nonopt = d->optind; + d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) - { - /* If we have just processed some options following some non-options, - exchange them so that the options come first. */ - - if (d->__first_nonopt != d->__last_nonopt - && d->__last_nonopt != d->optind) - exchange ((char **) argv, d); - else if (d->__last_nonopt != d->optind) - d->__first_nonopt = d->optind; - - /* Skip any additional non-options - and extend the range of non-options previously skipped. */ - - while (d->optind < argc && NONOPTION_P) - d->optind++; - d->__last_nonopt = d->optind; - } + { + /* If we have just processed some options following some non-options, + exchange them so that the options come first. */ + + if (d->__first_nonopt != d->__last_nonopt + && d->__last_nonopt != d->optind) + exchange ((char **) argv, d); + else if (d->__last_nonopt != d->optind) + d->__first_nonopt = d->optind; + + /* Skip any additional non-options + and extend the range of non-options previously skipped. */ + + while (d->optind < argc && NONOPTION_P) + d->optind++; + d->__last_nonopt = d->optind; + } /* The special ARGV-element `--' means premature end of options. - Skip it like a null option, - then exchange with previous non-options as if it were an option, - then skip everything else like a non-option. */ + Skip it like a null option, + then exchange with previous non-options as if it were an option, + then skip everything else like a non-option. */ if (d->optind != argc && !strcmp (argv[d->optind], "--")) - { - d->optind++; + { + d->optind++; - if (d->__first_nonopt != d->__last_nonopt - && d->__last_nonopt != d->optind) - exchange ((char **) argv, d); - else if (d->__first_nonopt == d->__last_nonopt) - d->__first_nonopt = d->optind; - d->__last_nonopt = argc; + if (d->__first_nonopt != d->__last_nonopt + && d->__last_nonopt != d->optind) + exchange ((char **) argv, d); + else if (d->__first_nonopt == d->__last_nonopt) + d->__first_nonopt = d->optind; + d->__last_nonopt = argc; - d->optind = argc; - } + d->optind = argc; + } /* If we have done all the ARGV-elements, stop the scan - and back over any non-options that we skipped and permuted. */ + and back over any non-options that we skipped and permuted. */ if (d->optind == argc) - { - /* Set the next-arg-index to point at the non-options - that we previously skipped, so the caller will digest them. */ - if (d->__first_nonopt != d->__last_nonopt) - d->optind = d->__first_nonopt; - return -1; - } + { + /* Set the next-arg-index to point at the non-options + that we previously skipped, so the caller will digest them. */ + if (d->__first_nonopt != d->__last_nonopt) + d->optind = d->__first_nonopt; + return -1; + } /* If we have come to a non-option and did not permute it, - either stop the scan or describe it to the caller and pass it by. */ + either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) - { - if (d->__ordering == REQUIRE_ORDER) - return -1; - d->optarg = argv[d->optind++]; - return 1; - } + { + if (d->__ordering == REQUIRE_ORDER) + return -1; + d->optarg = argv[d->optind++]; + return 1; + } /* We have found another option-ARGV-element. - Skip the initial punctuation. */ + Skip the initial punctuation. */ d->__nextchar = (argv[d->optind] + 1 - + (longopts != NULL && argv[d->optind][1] == '-')); + + (longopts != NULL && argv[d->optind][1] == '-')); } /* Decode the current option-ARGV-element. */ @@ -478,8 +475,8 @@ if (longopts != NULL && (argv[d->optind][1] == '-' - || (long_only && (argv[d->optind][2] - || !strchr (optstring, argv[d->optind][1]))))) + || (long_only && (argv[d->optind][2] + || !strchr (optstring, argv[d->optind][1]))))) { char *nameend; const struct option *p; @@ -490,594 +487,585 @@ int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++) - /* Do nothing. */ ; + /* Do nothing. */ ; /* Test all long options for either exact match - or abbreviated matches. */ + or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) - { - if ((unsigned int) (nameend - d->__nextchar) - == (unsigned int) strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else if (long_only - || pfound->has_arg != p->has_arg - || pfound->flag != p->flag - || pfound->val != p->val) - /* Second or later nonexact match found. */ - ambig = 1; - } + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) + { + if ((unsigned int) (nameend - d->__nextchar) + == (unsigned int) strlen (p->name)) + { + /* Exact match found. */ + pfound = p; + indfound = option_index; + exact = 1; + break; + } + else if (pfound == NULL) + { + /* First nonexact match found. */ + pfound = p; + indfound = option_index; + } + else if (long_only + || pfound->has_arg != p->has_arg + || pfound->flag != p->flag + || pfound->val != p->val) + /* Second or later nonexact match found. */ + ambig = 1; + } if (ambig && !exact) - { - if (print_errors) - { + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"), - argv[0], argv[d->optind]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("%s: option '%s' is ambiguous\n"), + argv[0], argv[d->optind]) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option `%s' is ambiguous\n"), - argv[0], argv[d->optind]); + fprintf (stderr, _("%s: option '%s' is ambiguous\n"), + argv[0], argv[d->optind]); #endif - } - d->__nextchar += strlen (d->__nextchar); - d->optind++; - d->optopt = 0; - return '?'; - } + } + d->__nextchar += strlen (d->__nextchar); + d->optind++; + d->optopt = 0; + return '?'; + } if (pfound != NULL) - { - option_index = indfound; - d->optind++; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - d->optarg = nameend + 1; - else - { - if (print_errors) - { + { + option_index = indfound; + d->optind++; + if (*nameend) + { + /* Don't test has_arg with >, because some C compilers don't + allow it to be used on enums. */ + if (pfound->has_arg) + d->optarg = nameend + 1; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (argv[d->optind - 1][1] == '-') - { - /* --option */ + if (argv[d->optind - 1][1] == '-') + { + /* --option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("\ -%s: option `--%s' doesn't allow an argument\n"), - argv[0], pfound->name); + n = __asprintf (&buf, _("\ +%s: option '--%s' doesn't allow an argument\n"), + argv[0], pfound->name); #else - fprintf (stderr, _("\ -%s: option `--%s' doesn't allow an argument\n"), - argv[0], pfound->name); -#endif - } - else - { - /* +option or -option */ + fprintf (stderr, _("\ +%s: option '--%s' doesn't allow an argument\n"), + argv[0], pfound->name); +#endif + } + else + { + /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("\ -%s: option `%c%s' doesn't allow an argument\n"), - argv[0], argv[d->optind - 1][0], - pfound->name); + n = __asprintf (&buf, _("\ +%s: option '%c%s' doesn't allow an argument\n"), + argv[0], argv[d->optind - 1][0], + pfound->name); #else - fprintf (stderr, _("\ -%s: option `%c%s' doesn't allow an argument\n"), - argv[0], argv[d->optind - 1][0], - pfound->name); + fprintf (stderr, _("\ +%s: option '%c%s' doesn't allow an argument\n"), + argv[0], argv[d->optind - 1][0], + pfound->name); #endif - } + } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); - - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; - - __fxprintf (NULL, "%s", buf); - - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); - - free (buf); - } -#endif - } - - d->__nextchar += strlen (d->__nextchar); - - d->optopt = pfound->val; - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (d->optind < argc) - d->optarg = argv[d->optind++]; - else - { - if (print_errors) - { + if (n >= 0) + { + _IO_flockfile (stderr); + + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; + + __fxprintf (NULL, "%s", buf); + + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); + + free (buf); + } +#endif + } + + d->__nextchar += strlen (d->__nextchar); + + d->optopt = pfound->val; + return '?'; + } + } + else if (pfound->has_arg == 1) + { + if (d->optind < argc) + d->optarg = argv[d->optind++]; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '--%s' requires an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]); -#endif - } - d->__nextchar += strlen (d->__nextchar); - d->optopt = pfound->val; - return optstring[0] == ':' ? ':' : '?'; - } - } - d->__nextchar += strlen (d->__nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } + fprintf (stderr, + _("%s: option '--%s' requires an argument\n"), + argv[0], pfound->name); +#endif + } + d->__nextchar += strlen (d->__nextchar); + d->optopt = pfound->val; + return optstring[0] == ':' ? ':' : '?'; + } + } + d->__nextchar += strlen (d->__nextchar); + if (longind != NULL) + *longind = option_index; + if (pfound->flag) + { + *(pfound->flag) = pfound->val; + return 0; + } + return pfound->val; + } /* Can't find it as a long option. If this is not getopt_long_only, - or the option starts with '--' or is not a valid short - option, then it's an error. - Otherwise interpret it as a short option. */ + or the option starts with '--' or is not a valid short + option, then it's an error. + Otherwise interpret it as a short option. */ if (!long_only || argv[d->optind][1] == '-' - || strchr (optstring, *d->__nextchar) == NULL) - { - if (print_errors) - { + || strchr (optstring, *d->__nextchar) == NULL) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (argv[d->optind][1] == '-') - { - /* --option */ + if (argv[d->optind][1] == '-') + { + /* --option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: unrecognized option `--%s'\n"), - argv[0], d->__nextchar); + n = __asprintf (&buf, _("%s: unrecognized option '--%s'\n"), + argv[0], d->__nextchar); #else - fprintf (stderr, _("%s: unrecognized option `--%s'\n"), - argv[0], d->__nextchar); + fprintf (stderr, _("%s: unrecognized option '--%s'\n"), + argv[0], d->__nextchar); #endif - } - else - { - /* +option or -option */ + } + else + { + /* +option or -option */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: unrecognized option `%c%s'\n"), - argv[0], argv[d->optind][0], d->__nextchar); + n = __asprintf (&buf, _("%s: unrecognized option '%c%s'\n"), + argv[0], argv[d->optind][0], d->__nextchar); #else - fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), - argv[0], argv[d->optind][0], d->__nextchar); + fprintf (stderr, _("%s: unrecognized option '%c%s'\n"), + argv[0], argv[d->optind][0], d->__nextchar); #endif - } + } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); - - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - - __fxprintf (NULL, "%s", buf); - - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); - - free (buf); - } -#endif - } - d->__nextchar = (char *) ""; - d->optind++; - d->optopt = 0; - return '?'; - } + if (n >= 0) + { + _IO_flockfile (stderr); + + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + + __fxprintf (NULL, "%s", buf); + + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); + + free (buf); + } +#endif + } + d->__nextchar = (char *) ""; + d->optind++; + d->optopt = 0; + return '?'; + } } /* Look at and handle the next short option-character. */ { char c = *d->__nextchar++; - char *temp = strchr (optstring, c); + const char *temp = strchr (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; - if (temp == NULL || c == ':') + if (temp == NULL || c == ':' || c == ';') { - if (print_errors) - { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; - int n; + char *buf; + int n; #endif - if (d->__posixly_correct) - { - /* 1003.2 specifies the format of this message. */ #if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: illegal option -- %c\n"), - argv[0], c); + n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"), + argv[0], c); #else - fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); + fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c); #endif - } - else - { -#if defined _LIBC && defined USE_IN_LIBIO - n = __asprintf (&buf, _("%s: invalid option -- %c\n"), - argv[0], c); -#else - fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); -#endif - } #if defined _LIBC && defined USE_IN_LIBIO - if (n >= 0) - { - _IO_flockfile (stderr); + if (n >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #endif - } - d->optopt = c; - return '?'; + } + d->optopt = c; + return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { - char *nameend; - const struct option *p; - const struct option *pfound = NULL; - int exact = 0; - int ambig = 0; - int indfound = 0; - int option_index; - - /* This is an option that requires an argument. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - d->optind++; - } - else if (d->optind == argc) - { - if (print_errors) - { - /* 1003.2 specifies the format of this message. */ + char *nameend; + const struct option *p; + const struct option *pfound = NULL; + int exact = 0; + int ambig = 0; + int indfound = 0; + int option_index; + + /* This is an option that requires an argument. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + /* If we end this ARGV-element by taking the rest as an arg, + we must advance to the next element now. */ + d->optind++; + } + else if (d->optind == argc) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, - _("%s: option requires an argument -- %c\n"), - argv[0], c) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option requires an argument -- %c\n"), - argv[0], c); -#endif - } - d->optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - return c; - } - else - /* We already incremented `d->optind' once; - increment it again when taking next ARGV-elt as argument. */ - d->optarg = argv[d->optind++]; - - /* optarg is now the argument, see if it's in the - table of longopts. */ - - for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; - nameend++) - /* Do nothing. */ ; - - /* Test all long options for either exact match - or abbreviated matches. */ - for (p = longopts, option_index = 0; p->name; p++, option_index++) - if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) - { - if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) - { - /* Exact match found. */ - pfound = p; - indfound = option_index; - exact = 1; - break; - } - else if (pfound == NULL) - { - /* First nonexact match found. */ - pfound = p; - indfound = option_index; - } - else - /* Second or later nonexact match found. */ - ambig = 1; - } - if (ambig && !exact) - { - if (print_errors) - { + fprintf (stderr, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c); +#endif + } + d->optopt = c; + if (optstring[0] == ':') + c = ':'; + else + c = '?'; + return c; + } + else + /* We already incremented `d->optind' once; + increment it again when taking next ARGV-elt as argument. */ + d->optarg = argv[d->optind++]; + + /* optarg is now the argument, see if it's in the + table of longopts. */ + + for (d->__nextchar = nameend = d->optarg; *nameend && *nameend != '='; + nameend++) + /* Do nothing. */ ; + + /* Test all long options for either exact match + or abbreviated matches. */ + for (p = longopts, option_index = 0; p->name; p++, option_index++) + if (!strncmp (p->name, d->__nextchar, nameend - d->__nextchar)) + { + if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name)) + { + /* Exact match found. */ + pfound = p; + indfound = option_index; + exact = 1; + break; + } + else if (pfound == NULL) + { + /* First nonexact match found. */ + pfound = p; + indfound = option_index; + } + else if (long_only + || pfound->has_arg != p->has_arg + || pfound->flag != p->flag + || pfound->val != p->val) + /* Second or later nonexact match found. */ + ambig = 1; + } + if (ambig && !exact) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("%s: option `-W %s' is ambiguous\n"), - argv[0], argv[d->optind]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("%s: option '-W %s' is ambiguous\n"), + argv[0], d->optarg) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), - argv[0], argv[d->optind]); + fprintf (stderr, _("%s: option '-W %s' is ambiguous\n"), + argv[0], d->optarg); #endif - } - d->__nextchar += strlen (d->__nextchar); - d->optind++; - return '?'; - } - if (pfound != NULL) - { - option_index = indfound; - if (*nameend) - { - /* Don't test has_arg with >, because some C compilers don't - allow it to be used on enums. */ - if (pfound->has_arg) - d->optarg = nameend + 1; - else - { - if (print_errors) - { + } + d->__nextchar += strlen (d->__nextchar); + d->optind++; + return '?'; + } + if (pfound != NULL) + { + option_index = indfound; + if (*nameend) + { + /* Don't test has_arg with >, because some C compilers don't + allow it to be used on enums. */ + if (pfound->has_arg) + d->optarg = nameend + 1; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `-W %s' doesn't allow an argument\n"), - argv[0], pfound->name) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '-W %s' doesn't allow an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, _("\ -%s: option `-W %s' doesn't allow an argument\n"), - argv[0], pfound->name); -#endif - } - - d->__nextchar += strlen (d->__nextchar); - return '?'; - } - } - else if (pfound->has_arg == 1) - { - if (d->optind < argc) - d->optarg = argv[d->optind++]; - else - { - if (print_errors) - { + fprintf (stderr, _("\ +%s: option '-W %s' doesn't allow an argument\n"), + argv[0], pfound->name); +#endif + } + + d->__nextchar += strlen (d->__nextchar); + return '?'; + } + } + else if (pfound->has_arg == 1) + { + if (d->optind < argc) + d->optarg = argv[d->optind++]; + else + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option '-W %s' requires an argument\n"), + argv[0], pfound->name) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 - |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 + |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option `%s' requires an argument\n"), - argv[0], argv[d->optind - 1]); -#endif - } - d->__nextchar += strlen (d->__nextchar); - return optstring[0] == ':' ? ':' : '?'; - } - } - d->__nextchar += strlen (d->__nextchar); - if (longind != NULL) - *longind = option_index; - if (pfound->flag) - { - *(pfound->flag) = pfound->val; - return 0; - } - return pfound->val; - } - d->__nextchar = NULL; - return 'W'; /* Let the application handle it. */ + fprintf (stderr, _("\ +%s: option '-W %s' requires an argument\n"), + argv[0], pfound->name); +#endif + } + d->__nextchar += strlen (d->__nextchar); + return optstring[0] == ':' ? ':' : '?'; + } + } + else + d->optarg = NULL; + d->__nextchar += strlen (d->__nextchar); + if (longind != NULL) + *longind = option_index; + if (pfound->flag) + { + *(pfound->flag) = pfound->val; + return 0; + } + return pfound->val; + } + d->__nextchar = NULL; + return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { - if (temp[2] == ':') - { - /* This is an option that accepts an argument optionally. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - d->optind++; - } - else - d->optarg = NULL; - d->__nextchar = NULL; - } - else - { - /* This is an option that requires an argument. */ - if (*d->__nextchar != '\0') - { - d->optarg = d->__nextchar; - /* If we end this ARGV-element by taking the rest as an arg, - we must advance to the next element now. */ - d->optind++; - } - else if (d->optind == argc) - { - if (print_errors) - { - /* 1003.2 specifies the format of this message. */ + if (temp[2] == ':') + { + /* This is an option that accepts an argument optionally. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + d->optind++; + } + else + d->optarg = NULL; + d->__nextchar = NULL; + } + else + { + /* This is an option that requires an argument. */ + if (*d->__nextchar != '\0') + { + d->optarg = d->__nextchar; + /* If we end this ARGV-element by taking the rest as an arg, + we must advance to the next element now. */ + d->optind++; + } + else if (d->optind == argc) + { + if (print_errors) + { #if defined _LIBC && defined USE_IN_LIBIO - char *buf; + char *buf; - if (__asprintf (&buf, _("\ -%s: option requires an argument -- %c\n"), - argv[0], c) >= 0) - { - _IO_flockfile (stderr); + if (__asprintf (&buf, _("\ +%s: option requires an argument -- '%c'\n"), + argv[0], c) >= 0) + { + _IO_flockfile (stderr); - int old_flags2 = ((_IO_FILE *) stderr)->_flags2; - ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; + int old_flags2 = ((_IO_FILE *) stderr)->_flags2; + ((_IO_FILE *) stderr)->_flags2 |= _IO_FLAGS2_NOTCANCEL; - __fxprintf (NULL, "%s", buf); + __fxprintf (NULL, "%s", buf); - ((_IO_FILE *) stderr)->_flags2 = old_flags2; - _IO_funlockfile (stderr); + ((_IO_FILE *) stderr)->_flags2 = old_flags2; + _IO_funlockfile (stderr); - free (buf); - } + free (buf); + } #else - fprintf (stderr, - _("%s: option requires an argument -- %c\n"), - argv[0], c); -#endif - } - d->optopt = c; - if (optstring[0] == ':') - c = ':'; - else - c = '?'; - } - else - /* We already incremented `optind' once; - increment it again when taking next ARGV-elt as argument. */ - d->optarg = argv[d->optind++]; - d->__nextchar = NULL; - } + fprintf (stderr, + _("%s: option requires an argument -- '%c'\n"), + argv[0], c); +#endif + } + d->optopt = c; + if (optstring[0] == ':') + c = ':'; + else + c = '?'; + } + else + /* We already incremented `optind' once; + increment it again when taking next ARGV-elt as argument. */ + d->optarg = argv[d->optind++]; + d->__nextchar = NULL; + } } return c; } @@ -1085,16 +1073,17 @@ int _getopt_internal (int argc, char **argv, const char *optstring, - const struct option *longopts, int *longind, - int long_only, int posixly_correct) + const struct option *longopts, int *longind, int long_only, + int posixly_correct) { int result; getopt_data.optind = optind; getopt_data.opterr = opterr; - result = _getopt_internal_r (argc, argv, optstring, longopts, longind, - long_only, posixly_correct, &getopt_data); + result = _getopt_internal_r (argc, argv, optstring, longopts, + longind, long_only, &getopt_data, + posixly_correct); optind = getopt_data.optind; optarg = getopt_data.optarg; @@ -1114,9 +1103,22 @@ int getopt (int argc, char *const *argv, const char *optstring) { - return _getopt_internal (argc, (char **) argv, optstring, NULL, NULL, 0, - POSIXLY_CORRECT); + return _getopt_internal (argc, (char **) argv, optstring, + (const struct option *) 0, + (int *) 0, + 0, POSIXLY_CORRECT); +} + +#ifdef _LIBC +int +__posix_getopt (int argc, char *const *argv, const char *optstring) +{ + return _getopt_internal (argc, argv, optstring, + (const struct option *) 0, + (int *) 0, + 0, 1); } +#endif #ifdef TEST @@ -1136,51 +1138,51 @@ c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) - break; + break; switch (c) - { - case '0': - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (digit_optind != 0 && digit_optind != this_option_optind) - printf ("digits occur in two different argv-elements.\n"); - digit_optind = this_option_optind; - printf ("option %c\n", c); - break; - - case 'a': - printf ("option a\n"); - break; - - case 'b': - printf ("option b\n"); - break; - - case 'c': - printf ("option c with value `%s'\n", optarg); - break; - - case '?': - break; - - default: - printf ("?? getopt returned character code 0%o ??\n", c); - } + { + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '8': + case '9': + if (digit_optind != 0 && digit_optind != this_option_optind) + printf ("digits occur in two different argv-elements.\n"); + digit_optind = this_option_optind; + printf ("option %c\n", c); + break; + + case 'a': + printf ("option a\n"); + break; + + case 'b': + printf ("option b\n"); + break; + + case 'c': + printf ("option c with value '%s'\n", optarg); + break; + + case '?': + break; + + default: + printf ("?? getopt returned character code 0%o ??\n", c); + } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) - printf ("%s ", argv[optind++]); + printf ("%s ", argv[optind++]); printf ("\n"); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getopt.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt.in.h --- gettext-0.17/gettext-tools/gnulib-lib/getopt.in.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* Declarations for getopt. - Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005,2006,2007 - Free Software Foundation, Inc. + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -16,10 +16,25 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef _GETOPT_H +#ifndef _GL_GETOPT_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. We must + also inform the replacement unistd.h to not recursively use + ; our definitions will be present soon enough. */ +#if @HAVE_GETOPT_H@ +# define _GL_SYSTEM_GETOPT +# @INCLUDE_NEXT@ @NEXT_GETOPT_H@ +# undef _GL_SYSTEM_GETOPT +#endif + +#ifndef _GL_GETOPT_H #ifndef __need_getopt -# define _GETOPT_H 1 +# define _GL_GETOPT_H 1 #endif /* Ensure that DLL_VARIABLE is defined. Since on OSF/1 4.0 and Irix 6.5 @@ -34,14 +49,17 @@ identifier that prefixes the external functions and variables defined in this header. When this happens, include the headers that might declare getopt so that they will not cause - confusion if included after this file. Then systematically rename + confusion if included after this file (if the system had , + we have already included it). Then systematically rename identifiers so that they do not collide with the system functions and variables. Renaming avoids problems with some compilers and linkers. */ #if defined __GETOPT_PREFIX && !defined __need_getopt -# include -# include -# include +# if !@HAVE_GETOPT_H@ +# include +# include +# include +# endif # undef __need_getopt # undef getopt # undef getopt_long @@ -50,6 +68,7 @@ # undef opterr # undef optind # undef optopt +# undef option # define __GETOPT_CONCAT(x, y) x ## y # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) @@ -60,6 +79,8 @@ # define opterr __GETOPT_ID (opterr) # define optind __GETOPT_ID (optind) # define optopt __GETOPT_ID (optopt) +# define option __GETOPT_ID (option) +# define _getopt_internal __GETOPT_ID (getopt_internal) #endif /* Standalone applications get correct prototypes for getopt_long and @@ -102,12 +123,14 @@ # define __GNUC_PREREQ(maj, min) (0) # endif # if defined __cplusplus && __GNUC_PREREQ (2,8) -# define __THROW throw () +# define __THROW throw () # else # define __THROW # endif #endif +/* The definition of _GL_ARG_NONNULL is copied here. */ + #ifdef __cplusplus extern "C" { #endif @@ -150,9 +173,9 @@ zero. The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. + no_argument (or 0) if the option does not take an argument, + required_argument (or 1) if the option requires an argument, + optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but @@ -177,10 +200,10 @@ /* Names for the values of the `has_arg' field of `struct option'. */ -# define no_argument 0 -# define required_argument 1 -# define optional_argument 2 -#endif /* need getopt */ +# define no_argument 0 +# define required_argument 1 +# define optional_argument 2 +#endif /* need getopt */ /* Get definitions and prototypes for functions to process the @@ -209,17 +232,17 @@ the environment, then do not permute arguments. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) - __THROW; + __THROW _GL_ARG_NONNULL ((2, 3)); #ifndef __need_getopt extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; + const char *__shortopts, + const struct option *__longopts, int *__longind) + __THROW _GL_ARG_NONNULL ((2, 3)); extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; + const char *__shortopts, + const struct option *__longopts, int *__longind) + __THROW _GL_ARG_NONNULL ((2, 3)); #endif @@ -231,3 +254,4 @@ #undef __need_getopt #endif /* getopt.h */ +#endif /* getopt.h */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/getopt_int.h gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt_int.h --- gettext-0.17/gettext-tools/gnulib-lib/getopt_int.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/getopt_int.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,6 +1,6 @@ /* Internal declarations for getopt. - Copyright (C) 1989-1994,1996-1999,2001,2003,2004 - Free Software Foundation, Inc. + Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -17,17 +17,53 @@ along with this program. If not, see . */ #ifndef _GETOPT_INT_H -#define _GETOPT_INT_H 1 +#define _GETOPT_INT_H 1 + +#include extern int _getopt_internal (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only, int __posixly_correct); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only, int __posixly_correct); /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ +/* Describe how to deal with options that follow non-option ARGV-elements. + + If the caller did not specify anything, + the default is REQUIRE_ORDER if the environment variable + POSIXLY_CORRECT is defined, PERMUTE otherwise. + + REQUIRE_ORDER means don't recognize them as options; + stop option processing when the first non-option is seen. + This is what Unix does. + This mode of operation is selected by either setting the environment + variable POSIXLY_CORRECT, or using `+' as the first character + of the list of option characters, or by calling getopt. + + PERMUTE is the default. We permute the contents of ARGV as we + scan, so that eventually all the non-options are at the end. + This allows options to be given in any order, even with programs + that were not written to expect this. + + RETURN_IN_ORDER is an option available to programs that were + written to expect options and other ARGV-elements in any order + and that care about the ordering of the two. We describe each + non-option ARGV-element as if it were the argument of an option + with character code 1. Using `-' as the first character of the + list of option characters selects this mode of operation. + + The special argument `--' forces an end of option-scanning regardless + of the value of `ordering'. In the case of RETURN_IN_ORDER, only + `--' can cause `getopt' to return -1 with `optind' != ARGC. */ + +enum __ord + { + REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER + }; + /* Data type for reentrant functions. */ struct _getopt_data { @@ -52,39 +88,8 @@ by advancing to the next ARGV-element. */ char *__nextchar; - /* Describe how to deal with options that follow non-option ARGV-elements. - - If the caller did not specify anything, - the default is REQUIRE_ORDER if the environment variable - POSIXLY_CORRECT is defined, PERMUTE otherwise. - - REQUIRE_ORDER means don't recognize them as options; - stop option processing when the first non-option is seen. - This is what Unix does. - This mode of operation is selected by either setting the environment - variable POSIXLY_CORRECT, or using `+' as the first character - of the list of option characters, or by calling getopt. - - PERMUTE is the default. We permute the contents of ARGV as we - scan, so that eventually all the non-options are at the end. - This allows options to be given in any order, even with programs - that were not written to expect this. - - RETURN_IN_ORDER is an option available to programs that were - written to expect options and other ARGV-elements in any order - and that care about the ordering of the two. We describe each - non-option ARGV-element as if it were the argument of an option - with character code 1. Using `-' as the first character of the - list of option characters selects this mode of operation. - - The special argument `--' forces an end of option-scanning regardless - of the value of `ordering'. In the case of RETURN_IN_ORDER, only - `--' can cause `getopt' to return -1 with `optind' != ARGC. */ - - enum - { - REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER - } __ordering; + /* See __ord above. */ + enum __ord __ordering; /* If the POSIXLY_CORRECT environment variable is set or getopt was called. */ @@ -108,23 +113,23 @@ /* The initializer is necessary to set OPTIND and OPTERR to their default values and to clear the initialization flag. */ -#define _GETOPT_DATA_INITIALIZER { 1, 1 } +#define _GETOPT_DATA_INITIALIZER { 1, 1 } extern int _getopt_internal_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - int __long_only, int __posixly_correct, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, int *__longind, + int __long_only, struct _getopt_data *__data, + int __posixly_correct); extern int _getopt_long_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, int *__longind, + struct _getopt_data *__data); extern int _getopt_long_only_r (int ___argc, char **___argv, - const char *__shortopts, - const struct option *__longopts, - int *__longind, - struct _getopt_data *__data); + const char *__shortopts, + const struct option *__longopts, + int *__longind, + struct _getopt_data *__data); #endif /* getopt_int.h */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gettext.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gettext.h --- gettext-0.17/gettext-tools/gnulib-lib/gettext.h 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gettext.h 2010-05-24 10:59:05.000000000 +0000 @@ -1,9 +1,9 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -64,21 +64,30 @@ for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ +# undef gettext # define gettext(Msgid) ((const char *) (Msgid)) +# undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) +# undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) +# undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) +# undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) +# undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) +# undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) +# undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) +# undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) @@ -132,8 +141,8 @@ #endif static const char * pgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - int category) + const char *msg_ctxt_id, const char *msgid, + int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) @@ -151,9 +160,9 @@ #endif static const char * npgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msg_ctxt_id, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); @@ -191,8 +200,8 @@ #endif static const char * dcpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - int category) + const char *msgctxt, const char *msgid, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -214,10 +223,10 @@ translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) - return translation; + return translation; } return msgid; } @@ -236,9 +245,9 @@ #endif static const char * dcnpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msgctxt, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -260,10 +269,10 @@ translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) - return translation; + return translation; } return (n == 1 ? msgid : msgid_plural); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gettimeofday.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gettimeofday.c --- gettext-0.17/gettext-tools/gnulib-lib/gettimeofday.c 2007-10-17 22:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gettimeofday.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,11 +1,10 @@ /* Provide gettimeofday for systems that don't have it or for which it's broken. - Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007 Free Software - Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -41,6 +40,12 @@ static struct tm tm_zero_buffer; static struct tm *localtime_buffer_addr = &tm_zero_buffer; +#undef localtime +extern struct tm *localtime (time_t const *); + +#undef gmtime +extern struct tm *gmtime (time_t const *); + /* This is a wrapper for localtime. It is used only on systems for which gettimeofday clobbers the static buffer used for localtime's result. @@ -50,8 +55,6 @@ struct tm * rpl_localtime (time_t const *timep) { -#undef localtime - extern struct tm *localtime (time_t const *); struct tm *tm = localtime (timep); if (localtime_buffer_addr == &tm_zero_buffer) @@ -64,8 +67,6 @@ struct tm * rpl_gmtime (time_t const *timep) { -#undef gmtime - extern struct tm *gmtime (time_t const *); struct tm *tm = gmtime (timep); if (localtime_buffer_addr == &tm_zero_buffer) @@ -77,14 +78,15 @@ #endif /* GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME */ #if TZSET_CLOBBERS_LOCALTIME + +#undef tzset +extern void tzset (void); + /* This is a wrapper for tzset, for systems on which tzset may clobber the static buffer used for localtime's result. */ void rpl_tzset (void) { -#undef tzset - extern void tzset (void); - /* Save and restore the contents of the buffer used for localtime's result around the call to tzset. */ struct tm save = *localtime_buffer_addr; @@ -98,7 +100,7 @@ causes problems. */ int -rpl_gettimeofday (struct timeval *restrict tv, void *restrict tz) +gettimeofday (struct timeval *restrict tv, void *restrict tz) { #undef gettimeofday #if HAVE_GETTIMEOFDAY @@ -108,7 +110,7 @@ struct tm save = *localtime_buffer_addr; # endif - int result = gettimeofday (tv, tz); + int result = gettimeofday (tv, (struct timezone *) tz); # if GETTIMEOFDAY_CLOBBERS_LOCALTIME *localtime_buffer_addr = save; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_anyhash_list1.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anyhash_list1.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_anyhash_list1.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anyhash_list1.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a hash table with another list. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_anyhash_list2.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anyhash_list2.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_anyhash_list2.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anyhash_list2.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a hash table with another list. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -99,28 +99,40 @@ { gl_hash_entry_t *old_table = list->table; /* Allocate the new table. */ - gl_hash_entry_t *new_table = XCALLOC (new_size, gl_hash_entry_t); + gl_hash_entry_t *new_table; size_t i; + if (size_overflow_p (xtimes (new_size, sizeof (gl_hash_entry_t)))) + goto fail; + new_table = + (gl_hash_entry_t *) calloc (new_size, sizeof (gl_hash_entry_t)); + if (new_table == NULL) + goto fail; + /* Iterate through the entries of the old table. */ for (i = list->table_size; i > 0; ) - { - gl_hash_entry_t node = old_table[--i]; + { + gl_hash_entry_t node = old_table[--i]; - while (node != NULL) - { - gl_hash_entry_t next = node->hash_next; - /* Add the entry to the new table. */ - size_t bucket = node->hashcode % new_size; - node->hash_next = new_table[bucket]; - new_table[bucket] = node; - - node = next; - } - } + while (node != NULL) + { + gl_hash_entry_t next = node->hash_next; + /* Add the entry to the new table. */ + size_t bucket = node->hashcode % new_size; + node->hash_next = new_table[bucket]; + new_table[bucket] = node; + + node = next; + } + } list->table = new_table; list->table_size = new_size; free (old_table); } + return; + + fail: + /* Just continue without resizing the table. */ + return; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_anylinked_list1.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anylinked_list1.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_anylinked_list1.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anylinked_list1.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a linked list. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_anylinked_list2.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anylinked_list2.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_anylinked_list2.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_anylinked_list2.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a linked list. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -37,13 +37,17 @@ /* -------------------------- gl_list_t Data Type -------------------------- */ static gl_list_t -gl_linked_create_empty (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates) +gl_linked_nx_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) { - struct gl_list_impl *list = XMALLOC (struct gl_list_impl); + struct gl_list_impl *list = + (struct gl_list_impl *) malloc (sizeof (struct gl_list_impl)); + + if (list == NULL) + return NULL; list->base.vtable = implementation; list->base.equals_fn = equals_fn; @@ -52,26 +56,39 @@ list->base.allow_duplicates = allow_duplicates; #if WITH_HASHTABLE list->table_size = 11; - list->table = XCALLOC (list->table_size, gl_hash_entry_t); + list->table = + (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); + if (list->table == NULL) + goto fail; #endif list->root.next = &list->root; list->root.prev = &list->root; list->count = 0; return list; + +#if WITH_HASHTABLE + fail: + free (list); + return NULL; +#endif } static gl_list_t -gl_linked_create (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents) +gl_linked_nx_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) { - struct gl_list_impl *list = XMALLOC (struct gl_list_impl); + struct gl_list_impl *list = + (struct gl_list_impl *) malloc (sizeof (struct gl_list_impl)); gl_list_node_t tail; + if (list == NULL) + return NULL; + list->base.vtable = implementation; list->base.equals_fn = equals_fn; list->base.hashcode_fn = hashcode_fn; @@ -83,24 +100,37 @@ if (estimate < 10) estimate = 10; list->table_size = next_prime (estimate); - list->table = XCALLOC (list->table_size, gl_hash_entry_t); + if (size_overflow_p (xtimes (list->table_size, sizeof (gl_hash_entry_t)))) + goto fail1; + list->table = + (gl_hash_entry_t *) calloc (list->table_size, sizeof (gl_hash_entry_t)); + if (list->table == NULL) + goto fail1; } #endif list->count = count; tail = &list->root; for (; count > 0; contents++, count--) { - gl_list_node_t node = XMALLOC (struct gl_list_node_impl); + gl_list_node_t node = + (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + + if (node == NULL) + goto fail2; node->value = *contents; #if WITH_HASHTABLE node->h.hashcode = - (list->base.hashcode_fn != NULL - ? list->base.hashcode_fn (node->value) - : (size_t)(uintptr_t) node->value); + (list->base.hashcode_fn != NULL + ? list->base.hashcode_fn (node->value) + : (size_t)(uintptr_t) node->value); /* Add node to the hash table. */ - add_to_bucket (list, node); + if (add_to_bucket (list, node) < 0) + { + free (node); + goto fail2; + } #endif /* Add node to the list. */ @@ -112,6 +142,25 @@ list->root.prev = tail; return list; + + fail2: + { + gl_list_node_t node; + + for (node = tail; node != &list->root; ) + { + gl_list_node_t prev = node->prev; + + free (node); + node = prev; + } + } +#if WITH_HASHTABLE + free (list->table); + fail1: +#endif + free (list); + return NULL; } static size_t @@ -126,6 +175,46 @@ return node->value; } +static int +gl_linked_node_nx_set_value (gl_list_t list, gl_list_node_t node, + const void *elt) +{ +#if WITH_HASHTABLE + if (elt != node->value) + { + size_t new_hashcode = + (list->base.hashcode_fn != NULL + ? list->base.hashcode_fn (elt) + : (size_t)(uintptr_t) elt); + + if (new_hashcode != node->h.hashcode) + { + remove_from_bucket (list, node); + node->value = elt; + node->h.hashcode = new_hashcode; + if (add_to_bucket (list, node) < 0) + { + /* Out of memory. We removed node from a bucket but cannot add + it to another bucket. In order to avoid inconsistencies, we + must remove node entirely from the list. */ + gl_list_node_t before_removed = node->prev; + gl_list_node_t after_removed = node->next; + ASYNCSAFE(gl_list_node_t) before_removed->next = after_removed; + after_removed->prev = before_removed; + list->count--; + free (node); + return -1; + } + } + else + node->value = elt; + } +#else + node->value = elt; +#endif + return 0; +} + static gl_list_node_t gl_linked_next_node (gl_list_t list, gl_list_node_t node) { @@ -152,20 +241,20 @@ { node = list->root.next; for (; position > 0; position--) - node = node->next; + node = node->next; } else { position = count - 1 - position; node = list->root.prev; for (; position > 0; position--) - node = node->prev; + node = node->prev; } return node->value; } static gl_list_node_t -gl_linked_set_at (gl_list_t list, size_t position, const void *elt) +gl_linked_nx_set_at (gl_list_t list, size_t position, const void *elt) { size_t count = list->count; gl_list_node_t node; @@ -178,32 +267,44 @@ { node = list->root.next; for (; position > 0; position--) - node = node->next; + node = node->next; } else { position = count - 1 - position; node = list->root.prev; for (; position > 0; position--) - node = node->prev; + node = node->prev; } #if WITH_HASHTABLE if (elt != node->value) { size_t new_hashcode = - (list->base.hashcode_fn != NULL - ? list->base.hashcode_fn (elt) - : (size_t)(uintptr_t) elt); + (list->base.hashcode_fn != NULL + ? list->base.hashcode_fn (elt) + : (size_t)(uintptr_t) elt); if (new_hashcode != node->h.hashcode) - { - remove_from_bucket (list, node); - node->value = elt; - node->h.hashcode = new_hashcode; - add_to_bucket (list, node); - } + { + remove_from_bucket (list, node); + node->value = elt; + node->h.hashcode = new_hashcode; + if (add_to_bucket (list, node) < 0) + { + /* Out of memory. We removed node from a bucket but cannot add + it to another bucket. In order to avoid inconsistencies, we + must remove node entirely from the list. */ + gl_list_node_t before_removed = node->prev; + gl_list_node_t after_removed = node->next; + ASYNCSAFE(gl_list_node_t) before_removed->next = after_removed; + after_removed->prev = before_removed; + list->count--; + free (node); + return NULL; + } + } else - node->value = elt; + node->value = elt; } #else node->value = elt; @@ -213,7 +314,7 @@ static gl_list_node_t gl_linked_search_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { size_t count = list->count; @@ -231,113 +332,113 @@ if (!list->base.allow_duplicates) { - /* Look for the first match in the hash bucket. */ - gl_list_node_t found = NULL; - gl_list_node_t node; - - for (node = (gl_list_node_t) list->table[bucket]; - node != NULL; - node = (gl_list_node_t) node->h.hash_next) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - { - found = node; - break; - } - if (start_index > 0) - /* Look whether found's index is < start_index. */ - for (node = list->root.next; ; node = node->next) - { - if (node == found) - return NULL; - if (--start_index == 0) - break; - } - if (end_index < count) - /* Look whether found's index is >= end_index. */ - { - end_index = count - end_index; - for (node = list->root.prev; ; node = node->prev) - { - if (node == found) - return NULL; - if (--end_index == 0) - break; - } - } - return found; + /* Look for the first match in the hash bucket. */ + gl_list_node_t found = NULL; + gl_list_node_t node; + + for (node = (gl_list_node_t) list->table[bucket]; + node != NULL; + node = (gl_list_node_t) node->h.hash_next) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + { + found = node; + break; + } + if (start_index > 0) + /* Look whether found's index is < start_index. */ + for (node = list->root.next; ; node = node->next) + { + if (node == found) + return NULL; + if (--start_index == 0) + break; + } + if (end_index < count) + /* Look whether found's index is >= end_index. */ + { + end_index = count - end_index; + for (node = list->root.prev; ; node = node->prev) + { + if (node == found) + return NULL; + if (--end_index == 0) + break; + } + } + return found; } else { - /* Look whether there is more than one match in the hash bucket. */ - bool multiple_matches = false; - gl_list_node_t first_match = NULL; - gl_list_node_t node; - - for (node = (gl_list_node_t) list->table[bucket]; - node != NULL; - node = (gl_list_node_t) node->h.hash_next) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - { - if (first_match == NULL) - first_match = node; - else - { - multiple_matches = true; - break; - } - } - if (multiple_matches) - { - /* We need the match with the smallest index. But we don't have - a fast mapping node -> index. So we have to walk the list. */ - end_index -= start_index; - node = list->root.next; - for (; start_index > 0; start_index--) - node = node->next; - - for (; - end_index > 0; - node = node->next, end_index--) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - return node; - /* The matches must have all been at indices < start_index or - >= end_index. */ - return NULL; - } - else - { - if (start_index > 0) - /* Look whether first_match's index is < start_index. */ - for (node = list->root.next; node != &list->root; node = node->next) - { - if (node == first_match) - return NULL; - if (--start_index == 0) - break; - } - if (end_index < list->count) - /* Look whether first_match's index is >= end_index. */ - { - end_index = list->count - end_index; - for (node = list->root.prev; ; node = node->prev) - { - if (node == first_match) - return NULL; - if (--end_index == 0) - break; - } - } - return first_match; - } + /* Look whether there is more than one match in the hash bucket. */ + bool multiple_matches = false; + gl_list_node_t first_match = NULL; + gl_list_node_t node; + + for (node = (gl_list_node_t) list->table[bucket]; + node != NULL; + node = (gl_list_node_t) node->h.hash_next) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + { + if (first_match == NULL) + first_match = node; + else + { + multiple_matches = true; + break; + } + } + if (multiple_matches) + { + /* We need the match with the smallest index. But we don't have + a fast mapping node -> index. So we have to walk the list. */ + end_index -= start_index; + node = list->root.next; + for (; start_index > 0; start_index--) + node = node->next; + + for (; + end_index > 0; + node = node->next, end_index--) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + return node; + /* The matches must have all been at indices < start_index or + >= end_index. */ + return NULL; + } + else + { + if (start_index > 0) + /* Look whether first_match's index is < start_index. */ + for (node = list->root.next; node != &list->root; node = node->next) + { + if (node == first_match) + return NULL; + if (--start_index == 0) + break; + } + if (end_index < list->count) + /* Look whether first_match's index is >= end_index. */ + { + end_index = list->count - end_index; + for (node = list->root.prev; ; node = node->prev) + { + if (node == first_match) + return NULL; + if (--end_index == 0) + break; + } + } + return first_match; + } } #else gl_listelement_equals_fn equals = list->base.equals_fn; @@ -349,15 +450,15 @@ if (equals != NULL) { - for (; end_index > 0; node = node->next, end_index--) - if (equals (elt, node->value)) - return node; + for (; end_index > 0; node = node->next, end_index--) + if (equals (elt, node->value)) + return node; } else { - for (; end_index > 0; node = node->next, end_index--) - if (elt == node->value) - return node; + for (; end_index > 0; node = node->next, end_index--) + if (elt == node->value) + return node; } return NULL; #endif @@ -366,7 +467,7 @@ static size_t gl_linked_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { size_t count = list->count; @@ -389,62 +490,62 @@ /* First step: Look up the node. */ if (!list->base.allow_duplicates) { - /* Look for the first match in the hash bucket. */ - for (node = (gl_list_node_t) list->table[bucket]; - node != NULL; - node = (gl_list_node_t) node->h.hash_next) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - break; + /* Look for the first match in the hash bucket. */ + for (node = (gl_list_node_t) list->table[bucket]; + node != NULL; + node = (gl_list_node_t) node->h.hash_next) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + break; } else { - /* Look whether there is more than one match in the hash bucket. */ - bool multiple_matches = false; - gl_list_node_t first_match = NULL; - - for (node = (gl_list_node_t) list->table[bucket]; - node != NULL; - node = (gl_list_node_t) node->h.hash_next) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - { - if (first_match == NULL) - first_match = node; - else - { - multiple_matches = true; - break; - } - } - if (multiple_matches) - { - /* We need the match with the smallest index. But we don't have - a fast mapping node -> index. So we have to walk the list. */ - size_t index; - - index = start_index; - node = list->root.next; - for (; start_index > 0; start_index--) - node = node->next; - - for (; - index < end_index; - node = node->next, index++) - if (node->h.hashcode == hashcode - && (equals != NULL - ? equals (elt, node->value) - : elt == node->value)) - return index; - /* The matches must have all been at indices < start_index or - >= end_index. */ - return (size_t)(-1); - } - node = first_match; + /* Look whether there is more than one match in the hash bucket. */ + bool multiple_matches = false; + gl_list_node_t first_match = NULL; + + for (node = (gl_list_node_t) list->table[bucket]; + node != NULL; + node = (gl_list_node_t) node->h.hash_next) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + { + if (first_match == NULL) + first_match = node; + else + { + multiple_matches = true; + break; + } + } + if (multiple_matches) + { + /* We need the match with the smallest index. But we don't have + a fast mapping node -> index. So we have to walk the list. */ + size_t index; + + index = start_index; + node = list->root.next; + for (; start_index > 0; start_index--) + node = node->next; + + for (; + index < end_index; + node = node->next, index++) + if (node->h.hashcode == hashcode + && (equals != NULL + ? equals (elt, node->value) + : elt == node->value)) + return index; + /* The matches must have all been at indices < start_index or + >= end_index. */ + return (size_t)(-1); + } + node = first_match; } /* Second step: Look up the index of the node. */ @@ -452,15 +553,15 @@ return (size_t)(-1); else { - size_t index = 0; + size_t index = 0; - for (; node->prev != &list->root; node = node->prev) - index++; + for (; node->prev != &list->root; node = node->prev) + index++; - if (index >= start_index && index < end_index) - return index; - else - return (size_t)(-1); + if (index >= start_index && index < end_index) + return index; + else + return (size_t)(-1); } #else gl_listelement_equals_fn equals = list->base.equals_fn; @@ -472,19 +573,19 @@ if (equals != NULL) { - for (; - index < end_index; - node = node->next, index++) - if (equals (elt, node->value)) - return index; + for (; + index < end_index; + node = node->next, index++) + if (equals (elt, node->value)) + return index; } else { - for (; - index < end_index; - node = node->next, index++) - if (elt == node->value) - return index; + for (; + index < end_index; + node = node->next, index++) + if (elt == node->value) + return index; } return (size_t)(-1); #endif @@ -492,9 +593,13 @@ } static gl_list_node_t -gl_linked_add_first (gl_list_t list, const void *elt) +gl_linked_nx_add_first (gl_list_t list, const void *elt) { - gl_list_node_t node = XMALLOC (struct gl_list_node_impl); + gl_list_node_t node = + (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + + if (node == NULL) + return NULL; ASYNCSAFE(const void *) node->value = elt; #if WITH_HASHTABLE @@ -504,7 +609,11 @@ : (size_t)(uintptr_t) node->value); /* Add node to the hash table. */ - add_to_bucket (list, node); + if (add_to_bucket (list, node) < 0) + { + free (node); + return NULL; + } #endif /* Add node to the list. */ @@ -522,9 +631,13 @@ } static gl_list_node_t -gl_linked_add_last (gl_list_t list, const void *elt) +gl_linked_nx_add_last (gl_list_t list, const void *elt) { - gl_list_node_t node = XMALLOC (struct gl_list_node_impl); + gl_list_node_t node = + (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + + if (node == NULL) + return NULL; ASYNCSAFE(const void *) node->value = elt; #if WITH_HASHTABLE @@ -534,7 +647,11 @@ : (size_t)(uintptr_t) node->value); /* Add node to the hash table. */ - add_to_bucket (list, node); + if (add_to_bucket (list, node) < 0) + { + free (node); + return NULL; + } #endif /* Add node to the list. */ @@ -552,9 +669,13 @@ } static gl_list_node_t -gl_linked_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +gl_linked_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) { - gl_list_node_t new_node = XMALLOC (struct gl_list_node_impl); + gl_list_node_t new_node = + (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + + if (new_node == NULL) + return NULL; ASYNCSAFE(const void *) new_node->value = elt; #if WITH_HASHTABLE @@ -564,7 +685,11 @@ : (size_t)(uintptr_t) new_node->value); /* Add new_node to the hash table. */ - add_to_bucket (list, new_node); + if (add_to_bucket (list, new_node) < 0) + { + free (new_node); + return NULL; + } #endif /* Add new_node to the list. */ @@ -582,9 +707,13 @@ } static gl_list_node_t -gl_linked_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +gl_linked_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) { - gl_list_node_t new_node = XMALLOC (struct gl_list_node_impl); + gl_list_node_t new_node = + (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + + if (new_node == NULL) + return NULL; ASYNCSAFE(const void *) new_node->value = elt; #if WITH_HASHTABLE @@ -594,7 +723,11 @@ : (size_t)(uintptr_t) new_node->value); /* Add new_node to the hash table. */ - add_to_bucket (list, new_node); + if (add_to_bucket (list, new_node) < 0) + { + free (new_node); + return NULL; + } #endif /* Add new_node to the list. */ @@ -612,7 +745,7 @@ } static gl_list_node_t -gl_linked_add_at (gl_list_t list, size_t position, const void *elt) +gl_linked_nx_add_at (gl_list_t list, size_t position, const void *elt) { size_t count = list->count; gl_list_node_t new_node; @@ -621,7 +754,10 @@ /* Invalid argument. */ abort (); - new_node = XMALLOC (struct gl_list_node_impl); + new_node = (struct gl_list_node_impl *) malloc (sizeof (struct gl_list_node_impl)); + if (new_node == NULL) + return NULL; + ASYNCSAFE(const void *) new_node->value = elt; #if WITH_HASHTABLE new_node->h.hashcode = @@ -630,7 +766,11 @@ : (size_t)(uintptr_t) new_node->value); /* Add new_node to the hash table. */ - add_to_bucket (list, new_node); + if (add_to_bucket (list, new_node) < 0) + { + free (new_node); + return NULL; + } #endif /* Add new_node to the list. */ @@ -640,7 +780,7 @@ node = &list->root; for (; position > 0; position--) - node = node->next; + node = node->next; new_node->prev = node; ASYNCSAFE(gl_list_node_t) new_node->next = node->next; new_node->next->prev = new_node; @@ -653,7 +793,7 @@ position = count - position; node = &list->root; for (; position > 0; position--) - node = node->prev; + node = node->prev; ASYNCSAFE(gl_list_node_t) new_node->next = node; new_node->prev = node->prev; ASYNCSAFE(gl_list_node_t) new_node->prev->next = new_node; @@ -710,7 +850,7 @@ node = &list->root; for (; position > 0; position--) - node = node->next; + node = node->next; removed_node = node->next; after_removed = node->next->next; ASYNCSAFE(gl_list_node_t) node->next = after_removed; @@ -724,7 +864,7 @@ position = count - 1 - position; node = &list->root; for (; position > 0; position--) - node = node->prev; + node = node->prev; removed_node = node->prev; before_removed = node->prev->prev; node->prev = before_removed; @@ -762,7 +902,7 @@ { gl_list_node_t next = node->next; if (dispose != NULL) - dispose (node->value); + dispose (node->value); free (node); node = next; } @@ -794,7 +934,7 @@ static gl_list_iterator_t gl_linked_iterator_from_to (gl_list_t list, - size_t start_index, size_t end_index) + size_t start_index, size_t end_index) { gl_list_iterator_t result; size_t n1, n2, n3; @@ -817,10 +957,10 @@ node = &list->root; for (i = n3; i > 0; i--) - node = node->prev; + node = node->prev; result.q = node; for (i = n2; i > 0; i--) - node = node->prev; + node = node->prev; result.p = node; } else if (n2 > n3) @@ -831,12 +971,12 @@ node = list->root.next; for (i = n1; i > 0; i--) - node = node->next; + node = node->next; result.p = node; node = &list->root; for (i = n3; i > 0; i--) - node = node->prev; + node = node->prev; result.q = node; } else @@ -847,10 +987,10 @@ node = list->root.next; for (i = n1; i > 0; i--) - node = node->next; + node = node->next; result.p = node; for (i = n2; i > 0; i--) - node = node->next; + node = node->next; result.q = node; } @@ -865,14 +1005,14 @@ static bool gl_linked_iterator_next (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep) + const void **eltp, gl_list_node_t *nodep) { if (iterator->p != iterator->q) { gl_list_node_t node = (gl_list_node_t) iterator->p; *eltp = node->value; if (nodep != NULL) - *nodep = node; + *nodep = node; iterator->p = node->next; return true; } @@ -889,7 +1029,7 @@ static gl_list_node_t gl_linked_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { gl_list_node_t node; @@ -898,18 +1038,18 @@ int cmp = compar (node->value, elt); if (cmp > 0) - break; + break; if (cmp == 0) - return node; + return node; } return NULL; } static gl_list_node_t gl_linked_sortedlist_search_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t low, size_t high, - const void *elt) + gl_listelement_compar_fn compar, + size_t low, size_t high, + const void *elt) { size_t count = list->count; @@ -925,29 +1065,29 @@ gl_list_node_t node; if (position <= ((count - 1) / 2)) - { - node = list->root.next; - for (; position > 0; position--) - node = node->next; - } + { + node = list->root.next; + for (; position > 0; position--) + node = node->next; + } else - { - position = count - 1 - position; - node = list->root.prev; - for (; position > 0; position--) - node = node->prev; - } + { + position = count - 1 - position; + node = list->root.prev; + for (; position > 0; position--) + node = node->prev; + } do - { - int cmp = compar (node->value, elt); + { + int cmp = compar (node->value, elt); - if (cmp > 0) - break; - if (cmp == 0) - return node; - node = node->next; - } + if (cmp > 0) + break; + if (cmp == 0) + return node; + node = node->next; + } while (--high > 0); } return NULL; @@ -955,7 +1095,7 @@ static size_t gl_linked_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { gl_list_node_t node; size_t index; @@ -967,18 +1107,18 @@ int cmp = compar (node->value, elt); if (cmp > 0) - break; + break; if (cmp == 0) - return index; + return index; } return (size_t)(-1); } static size_t gl_linked_sortedlist_indexof_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t low, size_t high, - const void *elt) + gl_listelement_compar_fn compar, + size_t low, size_t high, + const void *elt) { size_t count = list->count; @@ -995,50 +1135,50 @@ gl_list_node_t node; if (position <= ((count - 1) / 2)) - { - node = list->root.next; - for (; position > 0; position--) - node = node->next; - } + { + node = list->root.next; + for (; position > 0; position--) + node = node->next; + } else - { - position = count - 1 - position; - node = list->root.prev; - for (; position > 0; position--) - node = node->prev; - } + { + position = count - 1 - position; + node = list->root.prev; + for (; position > 0; position--) + node = node->prev; + } do - { - int cmp = compar (node->value, elt); + { + int cmp = compar (node->value, elt); - if (cmp > 0) - break; - if (cmp == 0) - return index; - node = node->next; - index++; - } + if (cmp > 0) + break; + if (cmp == 0) + return index; + node = node->next; + index++; + } while (--high > 0); } return (size_t)(-1); } static gl_list_node_t -gl_linked_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) +gl_linked_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, + const void *elt) { gl_list_node_t node; for (node = list->root.next; node != &list->root; node = node->next) if (compar (node->value, elt) >= 0) - return gl_linked_add_before (list, node, elt); - return gl_linked_add_last (list, elt); + return gl_linked_nx_add_before (list, node, elt); + return gl_linked_nx_add_last (list, elt); } static bool gl_linked_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { gl_list_node_t node; @@ -1047,9 +1187,9 @@ int cmp = compar (node->value, elt); if (cmp > 0) - break; + break; if (cmp == 0) - return gl_linked_remove_node (list, node); + return gl_linked_remove_node (list, node); } return false; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_array_list.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_array_list.c --- gettext-0.17/gettext-tools/gnulib-lib/gl_array_list.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_array_list.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by an array. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -24,8 +24,6 @@ /* Get memcpy. */ #include -#include "xalloc.h" - /* Checked size_t computations. */ #include "xsize.h" @@ -52,13 +50,17 @@ #define NODE_TO_INDEX(node) ((uintptr_t)(node) - 1) static gl_list_t -gl_array_create_empty (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates) +gl_array_nx_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) { - struct gl_list_impl *list = XMALLOC (struct gl_list_impl); + struct gl_list_impl *list = + (struct gl_list_impl *) malloc (sizeof (struct gl_list_impl)); + + if (list == NULL) + return NULL; list->base.vtable = implementation; list->base.equals_fn = equals_fn; @@ -73,14 +75,18 @@ } static gl_list_t -gl_array_create (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents) +gl_array_nx_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) { - struct gl_list_impl *list = XMALLOC (struct gl_list_impl); + struct gl_list_impl *list = + (struct gl_list_impl *) malloc (sizeof (struct gl_list_impl)); + + if (list == NULL) + return NULL; list->base.vtable = implementation; list->base.equals_fn = equals_fn; @@ -89,7 +95,11 @@ list->base.allow_duplicates = allow_duplicates; if (count > 0) { - list->elements = XNMALLOC (count, const void *); + if (size_overflow_p (xtimes (count, sizeof (const void *)))) + goto fail; + list->elements = (const void **) malloc (count * sizeof (const void *)); + if (list->elements == NULL) + goto fail; memcpy (list->elements, contents, count * sizeof (const void *)); } else @@ -98,6 +108,10 @@ list->allocated = count; return list; + + fail: + free (list); + return NULL; } static size_t @@ -116,6 +130,18 @@ return list->elements[index]; } +static int +gl_array_node_nx_set_value (gl_list_t list, gl_list_node_t node, + const void *elt) +{ + uintptr_t index = NODE_TO_INDEX (node); + if (!(index < list->count)) + /* Invalid argument. */ + abort (); + list->elements[index] = elt; + return 0; +} + static gl_list_node_t gl_array_next_node (gl_list_t list, gl_list_node_t node) { @@ -155,7 +181,7 @@ } static gl_list_node_t -gl_array_set_at (gl_list_t list, size_t position, const void *elt) +gl_array_nx_set_at (gl_list_t list, size_t position, const void *elt) { size_t count = list->count; @@ -168,7 +194,7 @@ static size_t gl_array_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { size_t count = list->count; @@ -180,45 +206,46 @@ { gl_listelement_equals_fn equals = list->base.equals_fn; if (equals != NULL) - { - size_t i; + { + size_t i; - for (i = start_index;;) - { - if (equals (elt, list->elements[i])) - return i; - i++; - if (i == end_index) - break; - } - } + for (i = start_index;;) + { + if (equals (elt, list->elements[i])) + return i; + i++; + if (i == end_index) + break; + } + } else - { - size_t i; + { + size_t i; - for (i = start_index;;) - { - if (elt == list->elements[i]) - return i; - i++; - if (i == end_index) - break; - } - } + for (i = start_index;;) + { + if (elt == list->elements[i]) + return i; + i++; + if (i == end_index) + break; + } + } } return (size_t)(-1); } static gl_list_node_t gl_array_search_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { size_t index = gl_array_indexof_from_to (list, start_index, end_index, elt); return INDEX_TO_NODE (index); } -/* Ensure that list->allocated > list->count. */ -static void +/* Ensure that list->allocated > list->count. + Return 0 upon success, -1 upon out-of-memory. */ +static int grow (gl_list_t list) { size_t new_allocated; @@ -230,24 +257,26 @@ memory_size = xtimes (new_allocated, sizeof (const void *)); if (size_overflow_p (memory_size)) /* Overflow, would lead to out of memory. */ - xalloc_die (); - memory = (const void **) xrealloc (list->elements, memory_size); + return -1; + memory = (const void **) realloc (list->elements, memory_size); if (memory == NULL) /* Out of memory. */ - xalloc_die (); + return -1; list->elements = memory; list->allocated = new_allocated; + return 0; } static gl_list_node_t -gl_array_add_first (gl_list_t list, const void *elt) +gl_array_nx_add_first (gl_list_t list, const void *elt) { size_t count = list->count; const void **elements; size_t i; if (count == list->allocated) - grow (list); + if (grow (list) < 0) + return NULL; elements = list->elements; for (i = count; i > 0; i--) elements[i] = elements[i - 1]; @@ -257,19 +286,20 @@ } static gl_list_node_t -gl_array_add_last (gl_list_t list, const void *elt) +gl_array_nx_add_last (gl_list_t list, const void *elt) { size_t count = list->count; if (count == list->allocated) - grow (list); + if (grow (list) < 0) + return NULL; list->elements[count] = elt; list->count = count + 1; return INDEX_TO_NODE (count); } static gl_list_node_t -gl_array_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +gl_array_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) { size_t count = list->count; uintptr_t index = NODE_TO_INDEX (node); @@ -282,7 +312,8 @@ abort (); position = index; if (count == list->allocated) - grow (list); + if (grow (list) < 0) + return NULL; elements = list->elements; for (i = count; i > position; i--) elements[i] = elements[i - 1]; @@ -292,7 +323,7 @@ } static gl_list_node_t -gl_array_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +gl_array_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) { size_t count = list->count; uintptr_t index = NODE_TO_INDEX (node); @@ -305,7 +336,8 @@ abort (); position = index + 1; if (count == list->allocated) - grow (list); + if (grow (list) < 0) + return NULL; elements = list->elements; for (i = count; i > position; i--) elements[i] = elements[i - 1]; @@ -315,7 +347,7 @@ } static gl_list_node_t -gl_array_add_at (gl_list_t list, size_t position, const void *elt) +gl_array_nx_add_at (gl_list_t list, size_t position, const void *elt) { size_t count = list->count; const void **elements; @@ -325,7 +357,8 @@ /* Invalid argument. */ abort (); if (count == list->allocated) - grow (list); + if (grow (list) < 0) + return NULL; elements = list->elements; for (i = count; i > position; i--) elements[i] = elements[i - 1]; @@ -391,19 +424,19 @@ if (list->elements != NULL) { if (list->base.dispose_fn != NULL) - { - size_t count = list->count; + { + size_t count = list->count; - if (count > 0) - { - gl_listelement_dispose_fn dispose = list->base.dispose_fn; - const void **elements = list->elements; - - do - dispose (*elements++); - while (--count > 0); - } - } + if (count > 0) + { + gl_listelement_dispose_fn dispose = list->base.dispose_fn; + const void **elements = list->elements; + + do + dispose (*elements++); + while (--count > 0); + } + } free (list->elements); } free (list); @@ -452,14 +485,14 @@ static bool gl_array_iterator_next (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep) + const void **eltp, gl_list_node_t *nodep) { gl_list_t list = iterator->list; if (iterator->count != list->count) { if (iterator->count != list->count + 1) - /* Concurrent modifications were done on the list. */ - abort (); + /* Concurrent modifications were done on the list. */ + abort (); /* The last returned element was removed. */ iterator->count--; iterator->p = (const void **) iterator->p - 1; @@ -470,7 +503,7 @@ const void **p = (const void **) iterator->p; *eltp = *p; if (nodep != NULL) - *nodep = INDEX_TO_NODE (p - list->elements); + *nodep = INDEX_TO_NODE (p - list->elements); iterator->p = p + 1; return true; } @@ -487,9 +520,9 @@ static size_t gl_array_sortedlist_indexof_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t low, size_t high, - const void *elt) + gl_listelement_compar_fn compar, + size_t low, size_t high, + const void *elt) { if (!(low <= high && high <= list->count)) /* Invalid arguments. */ @@ -497,47 +530,47 @@ if (low < high) { /* At each loop iteration, low < high; for indices < low the values - are smaller than ELT; for indices >= high the values are greater - than ELT. So, if the element occurs in the list, it is at - low <= position < high. */ + are smaller than ELT; for indices >= high the values are greater + than ELT. So, if the element occurs in the list, it is at + low <= position < high. */ do - { - size_t mid = low + (high - low) / 2; /* low <= mid < high */ - int cmp = compar (list->elements[mid], elt); - - if (cmp < 0) - low = mid + 1; - else if (cmp > 0) - high = mid; - else /* cmp == 0 */ - { - /* We have an element equal to ELT at index MID. But we need - the minimal such index. */ - high = mid; - /* At each loop iteration, low <= high and - compar (list->elements[high], elt) == 0, - and we know that the first occurrence of the element is at - low <= position <= high. */ - while (low < high) - { - size_t mid2 = low + (high - low) / 2; /* low <= mid2 < high */ - int cmp2 = compar (list->elements[mid2], elt); - - if (cmp2 < 0) - low = mid2 + 1; - else if (cmp2 > 0) - /* The list was not sorted. */ - abort (); - else /* cmp2 == 0 */ - { - if (mid2 == low) - break; - high = mid2 - 1; - } - } - return low; - } - } + { + size_t mid = low + (high - low) / 2; /* low <= mid < high */ + int cmp = compar (list->elements[mid], elt); + + if (cmp < 0) + low = mid + 1; + else if (cmp > 0) + high = mid; + else /* cmp == 0 */ + { + /* We have an element equal to ELT at index MID. But we need + the minimal such index. */ + high = mid; + /* At each loop iteration, low <= high and + compar (list->elements[high], elt) == 0, + and we know that the first occurrence of the element is at + low <= position <= high. */ + while (low < high) + { + size_t mid2 = low + (high - low) / 2; /* low <= mid2 < high */ + int cmp2 = compar (list->elements[mid2], elt); + + if (cmp2 < 0) + low = mid2 + 1; + else if (cmp2 > 0) + /* The list was not sorted. */ + abort (); + else /* cmp2 == 0 */ + { + if (mid2 == low) + break; + high = mid2 - 1; + } + } + return low; + } + } while (low < high); /* Here low == high. */ } @@ -546,17 +579,17 @@ static size_t gl_array_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { return gl_array_sortedlist_indexof_from_to (list, compar, 0, list->count, - elt); + elt); } static gl_list_node_t gl_array_sortedlist_search_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t low, size_t high, - const void *elt) + gl_listelement_compar_fn compar, + size_t low, size_t high, + const void *elt) { size_t index = gl_array_sortedlist_indexof_from_to (list, compar, low, high, elt); @@ -565,7 +598,7 @@ static gl_list_node_t gl_array_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { size_t index = gl_array_sortedlist_indexof_from_to (list, compar, 0, list->count, elt); @@ -573,8 +606,8 @@ } static gl_list_node_t -gl_array_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) +gl_array_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, + const void *elt) { size_t count = list->count; size_t low = 0; @@ -588,21 +621,21 @@ int cmp = compar (list->elements[mid], elt); if (cmp < 0) - low = mid + 1; + low = mid + 1; else if (cmp > 0) - high = mid; + high = mid; else /* cmp == 0 */ - { - low = mid; - break; - } + { + low = mid; + break; + } } - return gl_array_add_at (list, low, elt); + return gl_array_nx_add_at (list, low, elt); } static bool gl_array_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, - const void *elt) + const void *elt) { size_t index = gl_array_sortedlist_indexof (list, compar, elt); if (index == (size_t)(-1)) @@ -614,21 +647,22 @@ const struct gl_list_implementation gl_array_list_implementation = { - gl_array_create_empty, - gl_array_create, + gl_array_nx_create_empty, + gl_array_nx_create, gl_array_size, gl_array_node_value, + gl_array_node_nx_set_value, gl_array_next_node, gl_array_previous_node, gl_array_get_at, - gl_array_set_at, + gl_array_nx_set_at, gl_array_search_from_to, gl_array_indexof_from_to, - gl_array_add_first, - gl_array_add_last, - gl_array_add_before, - gl_array_add_after, - gl_array_add_at, + gl_array_nx_add_first, + gl_array_nx_add_last, + gl_array_nx_add_before, + gl_array_nx_add_after, + gl_array_nx_add_at, gl_array_remove_node, gl_array_remove_at, gl_array_remove, @@ -641,6 +675,6 @@ gl_array_sortedlist_search_from_to, gl_array_sortedlist_indexof, gl_array_sortedlist_indexof_from_to, - gl_array_sortedlist_add, + gl_array_sortedlist_nx_add, gl_array_sortedlist_remove }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_array_list.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_array_list.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_array_list.h 2007-10-17 22:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_array_list.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by an array. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/ghash.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/ghash.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/ghash.c 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/ghash.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/ghash.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/ghash.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/ghash.in.h 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/ghash.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/glist.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/glist.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/glist.c 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/glist.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/glist.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/glist.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/glist.in.h 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/glist.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gmessages.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gmessages.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/gmessages.c 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gmessages.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gprimes.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gprimes.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/gprimes.c 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gprimes.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gprimes.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gprimes.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/gprimes.in.h 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gprimes.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gstrfuncs.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstrfuncs.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/gstrfuncs.c 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstrfuncs.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gstrfuncs.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstrfuncs.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/gstrfuncs.in.h 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstrfuncs.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gstring.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstring.c --- gettext-0.17/gettext-tools/gnulib-lib/glib/gstring.c 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstring.c 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gstring.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstring.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/gstring.in.h 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gstring.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib/gtypes.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gtypes.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib/gtypes.in.h 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib/gtypes.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glibconfig.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glibconfig.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glibconfig.in.h 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glibconfig.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -40,11 +40,11 @@ typedef size_t gsize; typedef ssize_t gssize; -#define GPOINTER_TO_INT(p) ((gint) (p)) -#define GPOINTER_TO_UINT(p) ((guint) (p)) +#define GPOINTER_TO_INT(p) ((gint) (intptr_t) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (uintptr_t) (p)) -#define GINT_TO_POINTER(i) ((gpointer) (i)) -#define GUINT_TO_POINTER(u) ((gpointer) (u)) +#define GINT_TO_POINTER(i) ((gpointer) (intptr_t) (i)) +#define GUINT_TO_POINTER(u) ((gpointer) (uintptr_t) (u)) #define g_memmove memmove diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glib.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glib.in.h --- gettext-0.17/gettext-tools/gnulib-lib/glib.in.h 2007-10-31 12:36:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glib.in.h 2010-05-24 09:42:37.000000000 +0000 @@ -4,7 +4,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_linkedhash_list.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_linkedhash_list.c --- gettext-0.17/gettext-tools/gnulib-lib/gl_linkedhash_list.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_linkedhash_list.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a hash table with a linked list. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -23,7 +23,6 @@ #include /* for SIZE_MAX */ #include -#include "xalloc.h" #include "xsize.h" #ifndef uintptr_t @@ -62,6 +61,8 @@ node->h.hash_next = list->table[bucket]; list->table[bucket] = &node->h; } +/* Tell all compilers that the return value is 0. */ +#define add_to_bucket(list,node) ((add_to_bucket) (list, node), 0) /* Remove a node from the hash table structure. */ static inline void @@ -73,14 +74,14 @@ for (p = &list->table[bucket]; ; p = &(*p)->hash_next) { if (*p == &node->h) - { - *p = node->h.hash_next; - break; - } + { + *p = node->h.hash_next; + break; + } if (*p == NULL) - /* node is not in the right bucket. Did the hash codes - change inadvertently? */ - abort (); + /* node is not in the right bucket. Did the hash codes + change inadvertently? */ + abort (); } } @@ -90,21 +91,22 @@ const struct gl_list_implementation gl_linkedhash_list_implementation = { - gl_linked_create_empty, - gl_linked_create, + gl_linked_nx_create_empty, + gl_linked_nx_create, gl_linked_size, gl_linked_node_value, + gl_linked_node_nx_set_value, gl_linked_next_node, gl_linked_previous_node, gl_linked_get_at, - gl_linked_set_at, + gl_linked_nx_set_at, gl_linked_search_from_to, gl_linked_indexof_from_to, - gl_linked_add_first, - gl_linked_add_last, - gl_linked_add_before, - gl_linked_add_after, - gl_linked_add_at, + gl_linked_nx_add_first, + gl_linked_nx_add_last, + gl_linked_nx_add_before, + gl_linked_nx_add_after, + gl_linked_nx_add_at, gl_linked_remove_node, gl_linked_remove_at, gl_linked_remove, @@ -117,6 +119,6 @@ gl_linked_sortedlist_search_from_to, gl_linked_sortedlist_indexof, gl_linked_sortedlist_indexof_from_to, - gl_linked_sortedlist_add, + gl_linked_sortedlist_nx_add, gl_linked_sortedlist_remove }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_linkedhash_list.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_linkedhash_list.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_linkedhash_list.h 2007-10-17 22:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_linkedhash_list.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Sequential list data type implemented by a hash table with a linked list. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_list.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_list.c --- gettext-0.17/gettext-tools/gnulib-lib/gl_list.c 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_list.c 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Abstract sequential list data type. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -27,68 +27,78 @@ Use #define to avoid a warning because of extern vs. static. */ gl_list_t -gl_list_create_empty (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates) -{ - return implementation->create_empty (implementation, equals_fn, hashcode_fn, - dispose_fn, allow_duplicates); +gl_list_nx_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) +{ + return implementation->nx_create_empty (implementation, equals_fn, + hashcode_fn, dispose_fn, + allow_duplicates); } gl_list_t -gl_list_create (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents) -{ - return implementation->create (implementation, equals_fn, hashcode_fn, - dispose_fn, allow_duplicates, count, contents); +gl_list_nx_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) +{ + return implementation->nx_create (implementation, equals_fn, hashcode_fn, + dispose_fn, allow_duplicates, count, + contents); } size_t gl_list_size (gl_list_t list) { return ((const struct gl_list_impl_base *) list)->vtable - ->size (list); + ->size (list); } const void * gl_list_node_value (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->node_value (list, node); + ->node_value (list, node); +} + +int +gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, + const void *elt) +{ + return ((const struct gl_list_impl_base *) list)->vtable + ->node_nx_set_value (list, node, elt); } gl_list_node_t gl_list_next_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->next_node (list, node); + ->next_node (list, node); } gl_list_node_t gl_list_previous_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->previous_node (list, node); + ->previous_node (list, node); } const void * gl_list_get_at (gl_list_t list, size_t position) { return ((const struct gl_list_impl_base *) list)->vtable - ->get_at (list, position); + ->get_at (list, position); } gl_list_node_t -gl_list_set_at (gl_list_t list, size_t position, const void *elt) +gl_list_nx_set_at (gl_list_t list, size_t position, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->set_at (list, position, elt); + ->nx_set_at (list, position, elt); } gl_list_node_t @@ -96,7 +106,7 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, 0, size, elt); + ->search_from_to (list, 0, size, elt); } gl_list_node_t @@ -104,14 +114,14 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, start_index, size, elt); + ->search_from_to (list, start_index, size, elt); } gl_list_node_t gl_list_search_from_to (gl_list_t list, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, start_index, end_index, elt); + ->search_from_to (list, start_index, end_index, elt); } size_t @@ -119,7 +129,7 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, 0, size, elt); + ->indexof_from_to (list, 0, size, elt); } size_t @@ -127,70 +137,70 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, start_index, size, elt); + ->indexof_from_to (list, start_index, size, elt); } size_t gl_list_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, start_index, end_index, elt); + ->indexof_from_to (list, start_index, end_index, elt); } gl_list_node_t -gl_list_add_first (gl_list_t list, const void *elt) +gl_list_nx_add_first (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_first (list, elt); + ->nx_add_first (list, elt); } gl_list_node_t -gl_list_add_last (gl_list_t list, const void *elt) +gl_list_nx_add_last (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_last (list, elt); + ->nx_add_last (list, elt); } gl_list_node_t -gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +gl_list_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_before (list, node, elt); + ->nx_add_before (list, node, elt); } gl_list_node_t -gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_after (list, node, elt); + ->nx_add_after (list, node, elt); } gl_list_node_t -gl_list_add_at (gl_list_t list, size_t position, const void *elt) +gl_list_nx_add_at (gl_list_t list, size_t position, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_at (list, position, elt); + ->nx_add_at (list, position, elt); } bool gl_list_remove_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove_node (list, node); + ->remove_node (list, node); } bool gl_list_remove_at (gl_list_t list, size_t position) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove_at (list, position); + ->remove_at (list, position); } bool gl_list_remove (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove (list, elt); + ->remove_elt (list, elt); } void @@ -203,19 +213,19 @@ gl_list_iterator (gl_list_t list) { return ((const struct gl_list_impl_base *) list)->vtable - ->iterator (list); + ->iterator (list); } gl_list_iterator_t gl_list_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) { return ((const struct gl_list_impl_base *) list)->vtable - ->iterator_from_to (list, start_index, end_index); + ->iterator_from_to (list, start_index, end_index); } bool gl_list_iterator_next (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep) + const void **eltp, gl_list_node_t *nodep) { return iterator->vtable->iterator_next (iterator, eltp, nodep); } @@ -230,44 +240,44 @@ gl_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_search (list, compar, elt); + ->sortedlist_search (list, compar, elt); } gl_list_node_t gl_sortedlist_search_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_search_from_to (list, compar, start_index, end_index, - elt); + ->sortedlist_search_from_to (list, compar, start_index, end_index, + elt); } size_t gl_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_indexof (list, compar, elt); + ->sortedlist_indexof (list, compar, elt); } size_t gl_sortedlist_indexof_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_indexof_from_to (list, compar, start_index, end_index, - elt); + ->sortedlist_indexof_from_to (list, compar, start_index, end_index, + elt); } gl_list_node_t -gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) +gl_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_add (list, compar, elt); + ->sortedlist_nx_add (list, compar, elt); } bool gl_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_remove (list, compar, elt); + ->sortedlist_remove (list, compar, elt); } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_list.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_list.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_list.h 2007-10-07 20:29:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_list.h 2010-05-24 09:42:37.000000000 +0000 @@ -1,5 +1,5 @@ /* Abstract sequential list data type. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -57,11 +57,12 @@ n elements: Operation ARRAY LINKED TREE LINKEDHASH TREEHASH - CARRAY with|without with|without - duplicates duplicates + CARRAY with|without with|without + duplicates duplicates gl_list_size O(1) O(1) O(1) O(1) O(1) gl_list_node_value O(1) O(1) O(1) O(1) O(1) + gl_list_node_set_value O(1) O(1) O(1) O(1) O((log n)²)/O(1) gl_list_next_node O(1) O(1) O(log n) O(1) O(log n) gl_list_previous_node O(1) O(1) O(log n) O(1) O(log n) gl_list_get_at O(1) O(n) O(log n) O(n) O(log n) @@ -128,11 +129,19 @@ DISPOSE_FN is an element disposal function or NULL. ALLOW_DUPLICATES is false if duplicate elements shall not be allowed in the list. The implementation may verify this at runtime. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_t gl_list_create_empty (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates); + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_t gl_list_nx_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates); /* Create a list with given contents. IMPLEMENTATION is one of GL_ARRAY_LIST, GL_CARRAY_LIST, GL_LINKED_LIST, @@ -145,12 +154,21 @@ the list. The implementation may verify this at runtime. COUNT is the number of initial elements. CONTENTS[0..COUNT-1] is the initial contents. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_t gl_list_create (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents); + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_t gl_list_nx_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents); /* Return the current number of elements in a list. */ extern size_t gl_list_size (gl_list_t list); @@ -158,6 +176,19 @@ /* Return the element value represented by a list node. */ extern const void * gl_list_node_value (gl_list_t list, gl_list_node_t node); +/* Replace the element value represented by a list node. */ +#if 0 /* declared in gl_xlist.h */ +extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, + const void *elt); +#endif +/* Likewise. Return 0 upon success, -1 upon out-of-memory. */ +extern int gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; + /* Return the node immediately after the given node in the list, or NULL if the given node is the last (rightmost) one in the list. */ extern gl_list_node_t gl_list_next_node (gl_list_t list, gl_list_node_t node); @@ -173,8 +204,17 @@ /* Replace the element at a given position in the list. POSITION must be >= 0 and < gl_list_size (list). Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_set_at (gl_list_t list, size_t position, - const void *elt); + const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_set_at (gl_list_t list, size_t position, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Search whether an element is already in the list. Return its node if found, or NULL if not present in the list. */ @@ -184,15 +224,15 @@ at a position >= START_INDEX. Return its node if found, or NULL if not present in the list. */ extern gl_list_node_t gl_list_search_from (gl_list_t list, size_t start_index, - const void *elt); + const void *elt); /* Search whether an element is already in the list, at a position >= START_INDEX and < END_INDEX. Return its node if found, or NULL if not present in the list. */ extern gl_list_node_t gl_list_search_from_to (gl_list_t list, - size_t start_index, - size_t end_index, - const void *elt); + size_t start_index, + size_t end_index, + const void *elt); /* Search whether an element is already in the list. Return its position if found, or (size_t)(-1) if not present in the list. */ @@ -202,37 +242,81 @@ at a position >= START_INDEX. Return its position if found, or (size_t)(-1) if not present in the list. */ extern size_t gl_list_indexof_from (gl_list_t list, size_t start_index, - const void *elt); + const void *elt); /* Search whether an element is already in the list, at a position >= START_INDEX and < END_INDEX. Return its position if found, or (size_t)(-1) if not present in the list. */ extern size_t gl_list_indexof_from_to (gl_list_t list, - size_t start_index, size_t end_index, - const void *elt); + size_t start_index, size_t end_index, + const void *elt); /* Add an element as the first element of the list. Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_add_first (gl_list_t list, const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_add_first (gl_list_t list, const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Add an element as the last element of the list. Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_add_last (gl_list_t list, const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_add_last (gl_list_t list, const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Add an element before a given element node of the list. Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, - const void *elt); + const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_add_before (gl_list_t list, + gl_list_node_t node, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Add an element after a given element node of the list. Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, - const void *elt); + const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; -/* Add an element add a given position in the list. +/* Add an element at a given position in the list. POSITION must be >= 0 and <= gl_list_size (list). */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_list_add_at (gl_list_t list, size_t position, - const void *elt); + const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_list_nx_add_at (gl_list_t list, size_t position, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Remove an element from the list. Return true. */ @@ -280,14 +364,14 @@ The list contents must not be modified while the iterator is in use, except for replacing or removing the last returned element. */ extern gl_list_iterator_t gl_list_iterator_from_to (gl_list_t list, - size_t start_index, - size_t end_index); + size_t start_index, + size_t end_index); /* If there is a next element, store the next element in *ELTP, store its node in *NODEP if NODEP is non-NULL, advance the iterator and return true. Otherwise, return false. */ extern bool gl_list_iterator_next (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep); + const void **eltp, gl_list_node_t *nodep); /* Free an iterator. */ extern void gl_list_iterator_free (gl_list_iterator_t *iterator); @@ -307,8 +391,8 @@ If the list contains several copies of ELT, the node of the leftmost one is returned. */ extern gl_list_node_t gl_sortedlist_search (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); /* Search whether an element is already in the list. The list is assumed to be sorted with COMPAR. @@ -319,10 +403,10 @@ If the list contains several copies of ELT, the node of the leftmost one is returned. */ extern gl_list_node_t gl_sortedlist_search_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t start_index, - size_t end_index, - const void *elt); + gl_listelement_compar_fn compar, + size_t start_index, + size_t end_index, + const void *elt); /* Search whether an element is already in the list. The list is assumed to be sorted with COMPAR. @@ -330,8 +414,8 @@ If the list contains several copies of ELT, the position of the leftmost one is returned. */ extern size_t gl_sortedlist_indexof (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); /* Search whether an element is already in the list. The list is assumed to be sorted with COMPAR. @@ -342,17 +426,27 @@ If the list contains several copies of ELT, the position of the leftmost one is returned. */ extern size_t gl_sortedlist_indexof_from_to (gl_list_t list, - gl_listelement_compar_fn compar, - size_t start_index, - size_t end_index, - const void *elt); + gl_listelement_compar_fn compar, + size_t start_index, + size_t end_index, + const void *elt); /* Add an element at the appropriate position in the list. The list is assumed to be sorted with COMPAR. Return its node. */ +#if 0 /* declared in gl_xlist.h */ extern gl_list_node_t gl_sortedlist_add (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); +#endif +/* Likewise. Return NULL upon out-of-memory. */ +extern gl_list_node_t gl_sortedlist_nx_add (gl_list_t list, + gl_listelement_compar_fn compar, + const void *elt) +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + __attribute__ ((__warn_unused_result__)) +#endif + ; /* Search and remove an element from the list. The list is assumed to be sorted with COMPAR. @@ -360,77 +454,80 @@ If the list contains several copies of ELT, only the leftmost one is removed. */ extern bool gl_sortedlist_remove (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); /* ------------------------ Implementation Details ------------------------ */ struct gl_list_implementation { /* gl_list_t functions. */ - gl_list_t (*create_empty) (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates); - gl_list_t (*create) (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents); + gl_list_t (*nx_create_empty) (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates); + gl_list_t (*nx_create) (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents); size_t (*size) (gl_list_t list); const void * (*node_value) (gl_list_t list, gl_list_node_t node); + int (*node_nx_set_value) (gl_list_t list, gl_list_node_t node, + const void *elt); gl_list_node_t (*next_node) (gl_list_t list, gl_list_node_t node); gl_list_node_t (*previous_node) (gl_list_t list, gl_list_node_t node); const void * (*get_at) (gl_list_t list, size_t position); - gl_list_node_t (*set_at) (gl_list_t list, size_t position, const void *elt); + gl_list_node_t (*nx_set_at) (gl_list_t list, size_t position, + const void *elt); gl_list_node_t (*search_from_to) (gl_list_t list, size_t start_index, - size_t end_index, const void *elt); + size_t end_index, const void *elt); size_t (*indexof_from_to) (gl_list_t list, size_t start_index, - size_t end_index, const void *elt); - gl_list_node_t (*add_first) (gl_list_t list, const void *elt); - gl_list_node_t (*add_last) (gl_list_t list, const void *elt); - gl_list_node_t (*add_before) (gl_list_t list, gl_list_node_t node, - const void *elt); - gl_list_node_t (*add_after) (gl_list_t list, gl_list_node_t node, - const void *elt); - gl_list_node_t (*add_at) (gl_list_t list, size_t position, - const void *elt); + size_t end_index, const void *elt); + gl_list_node_t (*nx_add_first) (gl_list_t list, const void *elt); + gl_list_node_t (*nx_add_last) (gl_list_t list, const void *elt); + gl_list_node_t (*nx_add_before) (gl_list_t list, gl_list_node_t node, + const void *elt); + gl_list_node_t (*nx_add_after) (gl_list_t list, gl_list_node_t node, + const void *elt); + gl_list_node_t (*nx_add_at) (gl_list_t list, size_t position, + const void *elt); bool (*remove_node) (gl_list_t list, gl_list_node_t node); bool (*remove_at) (gl_list_t list, size_t position); - bool (*remove) (gl_list_t list, const void *elt); + bool (*remove_elt) (gl_list_t list, const void *elt); void (*list_free) (gl_list_t list); /* gl_list_iterator_t functions. */ gl_list_iterator_t (*iterator) (gl_list_t list); gl_list_iterator_t (*iterator_from_to) (gl_list_t list, - size_t start_index, - size_t end_index); + size_t start_index, + size_t end_index); bool (*iterator_next) (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep); + const void **eltp, gl_list_node_t *nodep); void (*iterator_free) (gl_list_iterator_t *iterator); /* Sorted gl_list_t functions. */ gl_list_node_t (*sortedlist_search) (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); gl_list_node_t (*sortedlist_search_from_to) (gl_list_t list, - gl_listelement_compar_fn compar, - size_t start_index, - size_t end_index, - const void *elt); + gl_listelement_compar_fn compar, + size_t start_index, + size_t end_index, + const void *elt); size_t (*sortedlist_indexof) (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); size_t (*sortedlist_indexof_from_to) (gl_list_t list, - gl_listelement_compar_fn compar, - size_t start_index, size_t end_index, - const void *elt); - gl_list_node_t (*sortedlist_add) (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + size_t start_index, size_t end_index, + const void *elt); + gl_list_node_t (*sortedlist_nx_add) (gl_list_t list, + gl_listelement_compar_fn compar, + const void *elt); bool (*sortedlist_remove) (gl_list_t list, - gl_listelement_compar_fn compar, - const void *elt); + gl_listelement_compar_fn compar, + const void *elt); }; struct gl_list_impl_base @@ -448,29 +545,31 @@ struct gl_list_implementation. Use #define to avoid a warning because of extern vs. static. */ -# define gl_list_create_empty gl_list_create_empty_inline +# define gl_list_nx_create_empty gl_list_nx_create_empty_inline static inline gl_list_t -gl_list_create_empty (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates) -{ - return implementation->create_empty (implementation, equals_fn, hashcode_fn, - dispose_fn, allow_duplicates); +gl_list_nx_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) +{ + return implementation->nx_create_empty (implementation, equals_fn, + hashcode_fn, dispose_fn, + allow_duplicates); } -# define gl_list_create gl_list_create_inline +# define gl_list_nx_create gl_list_nx_create_inline static inline gl_list_t -gl_list_create (gl_list_implementation_t implementation, - gl_listelement_equals_fn equals_fn, - gl_listelement_hashcode_fn hashcode_fn, - gl_listelement_dispose_fn dispose_fn, - bool allow_duplicates, - size_t count, const void **contents) -{ - return implementation->create (implementation, equals_fn, hashcode_fn, - dispose_fn, allow_duplicates, count, contents); +gl_list_nx_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) +{ + return implementation->nx_create (implementation, equals_fn, hashcode_fn, + dispose_fn, allow_duplicates, count, + contents); } # define gl_list_size gl_list_size_inline @@ -478,7 +577,7 @@ gl_list_size (gl_list_t list) { return ((const struct gl_list_impl_base *) list)->vtable - ->size (list); + ->size (list); } # define gl_list_node_value gl_list_node_value_inline @@ -486,7 +585,16 @@ gl_list_node_value (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->node_value (list, node); + ->node_value (list, node); +} + +# define gl_list_node_nx_set_value gl_list_node_nx_set_value_inline +static inline int +gl_list_node_nx_set_value (gl_list_t list, gl_list_node_t node, + const void *elt) +{ + return ((const struct gl_list_impl_base *) list)->vtable + ->node_nx_set_value (list, node, elt); } # define gl_list_next_node gl_list_next_node_inline @@ -494,7 +602,7 @@ gl_list_next_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->next_node (list, node); + ->next_node (list, node); } # define gl_list_previous_node gl_list_previous_node_inline @@ -502,7 +610,7 @@ gl_list_previous_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->previous_node (list, node); + ->previous_node (list, node); } # define gl_list_get_at gl_list_get_at_inline @@ -510,15 +618,15 @@ gl_list_get_at (gl_list_t list, size_t position) { return ((const struct gl_list_impl_base *) list)->vtable - ->get_at (list, position); + ->get_at (list, position); } -# define gl_list_set_at gl_list_set_at_inline +# define gl_list_nx_set_at gl_list_nx_set_at_inline static inline gl_list_node_t -gl_list_set_at (gl_list_t list, size_t position, const void *elt) +gl_list_nx_set_at (gl_list_t list, size_t position, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->set_at (list, position, elt); + ->nx_set_at (list, position, elt); } # define gl_list_search gl_list_search_inline @@ -527,7 +635,7 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, 0, size, elt); + ->search_from_to (list, 0, size, elt); } # define gl_list_search_from gl_list_search_from_inline @@ -536,16 +644,16 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, start_index, size, elt); + ->search_from_to (list, start_index, size, elt); } # define gl_list_search_from_to gl_list_search_from_to_inline static inline gl_list_node_t gl_list_search_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->search_from_to (list, start_index, end_index, elt); + ->search_from_to (list, start_index, end_index, elt); } # define gl_list_indexof gl_list_indexof_inline @@ -554,7 +662,7 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, 0, size, elt); + ->indexof_from_to (list, 0, size, elt); } # define gl_list_indexof_from gl_list_indexof_from_inline @@ -563,56 +671,56 @@ { size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list); return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, start_index, size, elt); + ->indexof_from_to (list, start_index, size, elt); } # define gl_list_indexof_from_to gl_list_indexof_from_to_inline static inline size_t gl_list_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index, - const void *elt) + const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->indexof_from_to (list, start_index, end_index, elt); + ->indexof_from_to (list, start_index, end_index, elt); } -# define gl_list_add_first gl_list_add_first_inline +# define gl_list_nx_add_first gl_list_nx_add_first_inline static inline gl_list_node_t -gl_list_add_first (gl_list_t list, const void *elt) +gl_list_nx_add_first (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_first (list, elt); + ->nx_add_first (list, elt); } -# define gl_list_add_last gl_list_add_last_inline +# define gl_list_nx_add_last gl_list_nx_add_last_inline static inline gl_list_node_t -gl_list_add_last (gl_list_t list, const void *elt) +gl_list_nx_add_last (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_last (list, elt); + ->nx_add_last (list, elt); } -# define gl_list_add_before gl_list_add_before_inline +# define gl_list_nx_add_before gl_list_nx_add_before_inline static inline gl_list_node_t -gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +gl_list_nx_add_before (gl_list_t list, gl_list_node_t node, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_before (list, node, elt); + ->nx_add_before (list, node, elt); } -# define gl_list_add_after gl_list_add_after_inline +# define gl_list_nx_add_after gl_list_nx_add_after_inline static inline gl_list_node_t -gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +gl_list_nx_add_after (gl_list_t list, gl_list_node_t node, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_after (list, node, elt); + ->nx_add_after (list, node, elt); } -# define gl_list_add_at gl_list_add_at_inline +# define gl_list_nx_add_at gl_list_nx_add_at_inline static inline gl_list_node_t -gl_list_add_at (gl_list_t list, size_t position, const void *elt) +gl_list_nx_add_at (gl_list_t list, size_t position, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->add_at (list, position, elt); + ->nx_add_at (list, position, elt); } # define gl_list_remove_node gl_list_remove_node_inline @@ -620,7 +728,7 @@ gl_list_remove_node (gl_list_t list, gl_list_node_t node) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove_node (list, node); + ->remove_node (list, node); } # define gl_list_remove_at gl_list_remove_at_inline @@ -628,7 +736,7 @@ gl_list_remove_at (gl_list_t list, size_t position) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove_at (list, position); + ->remove_at (list, position); } # define gl_list_remove gl_list_remove_inline @@ -636,7 +744,7 @@ gl_list_remove (gl_list_t list, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->remove (list, elt); + ->remove_elt (list, elt); } # define gl_list_free gl_list_free_inline @@ -651,7 +759,7 @@ gl_list_iterator (gl_list_t list) { return ((const struct gl_list_impl_base *) list)->vtable - ->iterator (list); + ->iterator (list); } # define gl_list_iterator_from_to gl_list_iterator_from_to_inline @@ -659,13 +767,13 @@ gl_list_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) { return ((const struct gl_list_impl_base *) list)->vtable - ->iterator_from_to (list, start_index, end_index); + ->iterator_from_to (list, start_index, end_index); } # define gl_list_iterator_next gl_list_iterator_next_inline static inline bool gl_list_iterator_next (gl_list_iterator_t *iterator, - const void **eltp, gl_list_node_t *nodep) + const void **eltp, gl_list_node_t *nodep) { return iterator->vtable->iterator_next (iterator, eltp, nodep); } @@ -682,7 +790,7 @@ gl_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_search (list, compar, elt); + ->sortedlist_search (list, compar, elt); } # define gl_sortedlist_search_from_to gl_sortedlist_search_from_to_inline @@ -690,8 +798,8 @@ gl_sortedlist_search_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_search_from_to (list, compar, start_index, end_index, - elt); + ->sortedlist_search_from_to (list, compar, start_index, end_index, + elt); } # define gl_sortedlist_indexof gl_sortedlist_indexof_inline @@ -699,7 +807,7 @@ gl_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_indexof (list, compar, elt); + ->sortedlist_indexof (list, compar, elt); } # define gl_sortedlist_indexof_from_to gl_sortedlist_indexof_from_to_inline @@ -707,16 +815,16 @@ gl_sortedlist_indexof_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_indexof_from_to (list, compar, start_index, end_index, - elt); + ->sortedlist_indexof_from_to (list, compar, start_index, end_index, + elt); } -# define gl_sortedlist_add gl_sortedlist_add_inline +# define gl_sortedlist_nx_add gl_sortedlist_nx_add_inline static inline gl_list_node_t -gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) +gl_sortedlist_nx_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_add (list, compar, elt); + ->sortedlist_nx_add (list, compar, elt); } # define gl_sortedlist_remove gl_sortedlist_remove_inline @@ -724,7 +832,7 @@ gl_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, const void *elt) { return ((const struct gl_list_impl_base *) list)->vtable - ->sortedlist_remove (list, compar, elt); + ->sortedlist_remove (list, compar, elt); } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glthread/lock.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/lock.c --- gettext-0.17/gettext-tools/gnulib-lib/glthread/lock.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/lock.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,1058 @@ +/* Locking in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +#include + +#include "glthread/lock.h" + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +# if HAVE_PTHREAD_RWLOCK + +# if !defined PTHREAD_RWLOCK_INITIALIZER + +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_rwlock_init (&lock->rwlock, NULL); + if (err != 0) + return err; + lock->initialized = 1; + return 0; +} + +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_rwlock_rdlock (&lock->rwlock); +} + +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_rwlock_wrlock (&lock->rwlock); +} + +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + return EINVAL; + return pthread_rwlock_unlock (&lock->rwlock); +} + +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) +{ + int err; + + if (!lock->initialized) + return EINVAL; + err = pthread_rwlock_destroy (&lock->rwlock); + if (err != 0) + return err; + lock->initialized = 0; + return 0; +} + +# endif + +# else + +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_init (&lock->lock, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_readers, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_writers, NULL); + if (err != 0) + return err; + lock->waiting_writers_count = 0; + lock->runcount = 0; + return 0; +} + +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + /* Test whether only readers are currently running, and whether the runcount + field will not overflow. */ + /* POSIX says: "It is implementation-defined whether the calling thread + acquires the lock when a writer does not hold the lock and there are + writers blocked on the lock." Let's say, no: give the writers a higher + priority. */ + while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_readers. */ + err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + lock->runcount++; + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + /* Test whether no readers or writers are currently running. */ + while (!(lock->runcount == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_writers. */ + lock->waiting_writers_count++; + err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); + if (err != 0) + { + lock->waiting_writers_count--; + pthread_mutex_unlock (&lock->lock); + return err; + } + lock->waiting_writers_count--; + } + lock->runcount--; /* runcount becomes -1 */ + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + if (lock->runcount < 0) + { + /* Drop a writer lock. */ + if (!(lock->runcount == -1)) + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } + lock->runcount = 0; + } + else + { + /* Drop a reader lock. */ + if (!(lock->runcount > 0)) + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } + lock->runcount--; + } + if (lock->runcount == 0) + { + /* POSIX recommends that "write locks shall take precedence over read + locks", to avoid "writer starvation". */ + if (lock->waiting_writers_count > 0) + { + /* Wake up one of the waiting writers. */ + err = pthread_cond_signal (&lock->waiting_writers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + else + { + /* Wake up all waiting readers. */ + err = pthread_cond_broadcast (&lock->waiting_readers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + } + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_destroy (&lock->lock); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_readers); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_writers); + if (err != 0) + return err; + return 0; +} + +# endif + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +# if HAVE_PTHREAD_MUTEX_RECURSIVE + +# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_mutexattr_t attributes; + int err; + + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (lock, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; + return 0; +} + +# else + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_mutexattr_t attributes; + int err; + + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (&lock->recmutex, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; + lock->initialized = 1; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_recursive_lock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_mutex_lock (&lock->recmutex); +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (!lock->initialized) + return EINVAL; + return pthread_mutex_unlock (&lock->recmutex); +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + if (!lock->initialized) + return EINVAL; + err = pthread_mutex_destroy (&lock->recmutex); + if (err != 0) + return err; + lock->initialized = 0; + return 0; +} + +# endif + +# else + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + err = pthread_mutex_init (&lock->mutex, NULL); + if (err != 0) + return err; + lock->owner = (pthread_t) 0; + lock->depth = 0; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_t self = pthread_self (); + if (lock->owner != self) + { + int err; + + err = pthread_mutex_lock (&lock->mutex); + if (err != 0) + return err; + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + return 0; +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != pthread_self ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = (pthread_t) 0; + return pthread_mutex_unlock (&lock->mutex); + } + else + return 0; +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != (pthread_t) 0) + return EBUSY; + return pthread_mutex_destroy (&lock->mutex); +} + +# endif + +/* -------------------------- gl_once_t datatype -------------------------- */ + +static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; + +int +glthread_once_singlethreaded (pthread_once_t *once_control) +{ + /* We don't know whether pthread_once_t is an integer type, a floating-point + type, a pointer type, or a structure type. */ + char *firstbyte = (char *)once_control; + if (*firstbyte == *(const char *)&fresh_once) + { + /* First time use of once_control. Invert the first byte. */ + *firstbyte = ~ *(const char *)&fresh_once; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* -------------------------- gl_once_t datatype -------------------------- */ + +static void +glthread_once_call (void *arg) +{ + void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; + void (*initfunction) (void) = *gl_once_temp_addr; + initfunction (); +} + +int +glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)) +{ + void (*temp) (void) = initfunction; + return (!pth_once (once_control, glthread_once_call, &temp) ? errno : 0); +} + +int +glthread_once_singlethreaded (pth_once_t *once_control) +{ + /* We know that pth_once_t is an integer type. */ + if (*once_control == PTH_ONCE_INIT) + { + /* First time use of once_control. Invert the marker. */ + *once_control = ~ PTH_ONCE_INIT; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + err = mutex_init (&lock->mutex, USYNC_THREAD, NULL); + if (err != 0) + return err; + lock->owner = (thread_t) 0; + lock->depth = 0; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + thread_t self = thr_self (); + if (lock->owner != self) + { + int err; + + err = mutex_lock (&lock->mutex); + if (err != 0) + return err; + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + return 0; +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != thr_self ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = (thread_t) 0; + return mutex_unlock (&lock->mutex); + } + else + return 0; +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != (thread_t) 0) + return EBUSY; + return mutex_destroy (&lock->mutex); +} + +/* -------------------------- gl_once_t datatype -------------------------- */ + +int +glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)) +{ + if (!once_control->inited) + { + int err; + + /* Use the mutex to guarantee that if another thread is already calling + the initfunction, this thread waits until it's finished. */ + err = mutex_lock (&once_control->mutex); + if (err != 0) + return err; + if (!once_control->inited) + { + once_control->inited = 1; + initfunction (); + } + return mutex_unlock (&once_control->mutex); + } + else + return 0; +} + +int +glthread_once_singlethreaded (gl_once_t *once_control) +{ + /* We know that gl_once_t contains an integer type. */ + if (!once_control->inited) + { + /* First time use of once_control. Invert the marker. */ + once_control->inited = ~ 0; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +void +glthread_lock_init_func (gl_lock_t *lock) +{ + InitializeCriticalSection (&lock->lock); + lock->guard.done = 1; +} + +int +glthread_lock_lock_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_lock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + return 0; +} + +int +glthread_lock_unlock_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_lock_destroy_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + DeleteCriticalSection (&lock->lock); + lock->guard.done = 0; + return 0; +} + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* In this file, the waitqueues are implemented as circular arrays. */ +#define gl_waitqueue_t gl_carray_waitqueue_t + +static inline void +gl_waitqueue_init (gl_waitqueue_t *wq) +{ + wq->array = NULL; + wq->count = 0; + wq->alloc = 0; + wq->offset = 0; +} + +/* Enqueues the current thread, represented by an event, in a wait queue. + Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ +static HANDLE +gl_waitqueue_add (gl_waitqueue_t *wq) +{ + HANDLE event; + unsigned int index; + + if (wq->count == wq->alloc) + { + unsigned int new_alloc = 2 * wq->alloc + 1; + HANDLE *new_array = + (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); + if (new_array == NULL) + /* No more memory. */ + return INVALID_HANDLE_VALUE; + /* Now is a good opportunity to rotate the array so that its contents + starts at offset 0. */ + if (wq->offset > 0) + { + unsigned int old_count = wq->count; + unsigned int old_alloc = wq->alloc; + unsigned int old_offset = wq->offset; + unsigned int i; + if (old_offset + old_count > old_alloc) + { + unsigned int limit = old_offset + old_count - old_alloc; + for (i = 0; i < limit; i++) + new_array[old_alloc + i] = new_array[i]; + } + for (i = 0; i < old_count; i++) + new_array[i] = new_array[old_offset + i]; + wq->offset = 0; + } + wq->array = new_array; + wq->alloc = new_alloc; + } + /* Whether the created event is a manual-reset one or an auto-reset one, + does not matter, since we will wait on it only once. */ + event = CreateEvent (NULL, TRUE, FALSE, NULL); + if (event == INVALID_HANDLE_VALUE) + /* No way to allocate an event. */ + return INVALID_HANDLE_VALUE; + index = wq->offset + wq->count; + if (index >= wq->alloc) + index -= wq->alloc; + wq->array[index] = event; + wq->count++; + return event; +} + +/* Notifies the first thread from a wait queue and dequeues it. */ +static inline void +gl_waitqueue_notify_first (gl_waitqueue_t *wq) +{ + SetEvent (wq->array[wq->offset + 0]); + wq->offset++; + wq->count--; + if (wq->count == 0 || wq->offset == wq->alloc) + wq->offset = 0; +} + +/* Notifies all threads from a wait queue and dequeues them all. */ +static inline void +gl_waitqueue_notify_all (gl_waitqueue_t *wq) +{ + unsigned int i; + + for (i = 0; i < wq->count; i++) + { + unsigned int index = wq->offset + i; + if (index >= wq->alloc) + index -= wq->alloc; + SetEvent (wq->array[index]); + } + wq->count = 0; + wq->offset = 0; +} + +void +glthread_rwlock_init_func (gl_rwlock_t *lock) +{ + InitializeCriticalSection (&lock->lock); + gl_waitqueue_init (&lock->waiting_readers); + gl_waitqueue_init (&lock->waiting_writers); + lock->runcount = 0; + lock->guard.done = 1; +} + +int +glthread_rwlock_rdlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + /* Test whether only readers are currently running, and whether the runcount + field will not overflow. */ + if (!(lock->runcount + 1 > 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_readers. */ + HANDLE event = gl_waitqueue_add (&lock->waiting_readers); + if (event != INVALID_HANDLE_VALUE) + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_readers, incremented lock->runcount. */ + if (!(lock->runcount > 0)) + abort (); + return 0; + } + else + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount + 1 > 0)); + } + } + lock->runcount++; + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_wrlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + /* Test whether no readers or writers are currently running. */ + if (!(lock->runcount == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_writers. */ + HANDLE event = gl_waitqueue_add (&lock->waiting_writers); + if (event != INVALID_HANDLE_VALUE) + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_writers, set lock->runcount = -1. */ + if (!(lock->runcount == -1)) + abort (); + return 0; + } + else + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount == 0)); + } + } + lock->runcount--; /* runcount becomes -1 */ + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_unlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + EnterCriticalSection (&lock->lock); + if (lock->runcount < 0) + { + /* Drop a writer lock. */ + if (!(lock->runcount == -1)) + abort (); + lock->runcount = 0; + } + else + { + /* Drop a reader lock. */ + if (!(lock->runcount > 0)) + { + LeaveCriticalSection (&lock->lock); + return EPERM; + } + lock->runcount--; + } + if (lock->runcount == 0) + { + /* POSIX recommends that "write locks shall take precedence over read + locks", to avoid "writer starvation". */ + if (lock->waiting_writers.count > 0) + { + /* Wake up one of the waiting writers. */ + lock->runcount--; + gl_waitqueue_notify_first (&lock->waiting_writers); + } + else + { + /* Wake up all waiting readers. */ + lock->runcount += lock->waiting_readers.count; + gl_waitqueue_notify_all (&lock->waiting_readers); + } + } + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_destroy_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + if (lock->runcount != 0) + return EBUSY; + DeleteCriticalSection (&lock->lock); + if (lock->waiting_readers.array != NULL) + free (lock->waiting_readers.array); + if (lock->waiting_writers.array != NULL) + free (lock->waiting_writers.array); + lock->guard.done = 0; + return 0; +} + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +void +glthread_recursive_lock_init_func (gl_recursive_lock_t *lock) +{ + lock->owner = 0; + lock->depth = 0; + InitializeCriticalSection (&lock->lock); + lock->guard.done = 1; +} + +int +glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_recursive_lock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + { + DWORD self = GetCurrentThreadId (); + if (lock->owner != self) + { + EnterCriticalSection (&lock->lock); + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + } + return 0; +} + +int +glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock) +{ + if (lock->owner != GetCurrentThreadId ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = 0; + LeaveCriticalSection (&lock->lock); + } + return 0; +} + +int +glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock) +{ + if (lock->owner != 0) + return EBUSY; + DeleteCriticalSection (&lock->lock); + lock->guard.done = 0; + return 0; +} + +/* -------------------------- gl_once_t datatype -------------------------- */ + +void +glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)) +{ + if (once_control->inited <= 0) + { + if (InterlockedIncrement (&once_control->started) == 0) + { + /* This thread is the first one to come to this once_control. */ + InitializeCriticalSection (&once_control->lock); + EnterCriticalSection (&once_control->lock); + once_control->inited = 0; + initfunction (); + once_control->inited = 1; + LeaveCriticalSection (&once_control->lock); + } + else + { + /* Undo last operation. */ + InterlockedDecrement (&once_control->started); + /* Some other thread has already started the initialization. + Yield the CPU while waiting for the other thread to finish + initializing and taking the lock. */ + while (once_control->inited < 0) + Sleep (0); + if (once_control->inited <= 0) + { + /* Take the lock. This blocks until the other thread has + finished calling the initfunction. */ + EnterCriticalSection (&once_control->lock); + LeaveCriticalSection (&once_control->lock); + if (!(once_control->inited > 0)) + abort (); + } + } + } +} + +#endif + +/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glthread/lock.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/lock.h --- gettext-0.17/gettext-tools/gnulib-lib/glthread/lock.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/lock.h 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,927 @@ +/* Locking in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +/* This file contains locking primitives for use with a given thread library. + It does not contain primitives for creating threads or for other + synchronization primitives. + + Normal (non-recursive) locks: + Type: gl_lock_t + Declaration: gl_lock_define(extern, name) + Initializer: gl_lock_define_initialized(, name) + Initialization: gl_lock_init (name); + Taking the lock: gl_lock_lock (name); + Releasing the lock: gl_lock_unlock (name); + De-initialization: gl_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_lock_init (&name); + Taking the lock: err = glthread_lock_lock (&name); + Releasing the lock: err = glthread_lock_unlock (&name); + De-initialization: err = glthread_lock_destroy (&name); + + Read-Write (non-recursive) locks: + Type: gl_rwlock_t + Declaration: gl_rwlock_define(extern, name) + Initializer: gl_rwlock_define_initialized(, name) + Initialization: gl_rwlock_init (name); + Taking the lock: gl_rwlock_rdlock (name); + gl_rwlock_wrlock (name); + Releasing the lock: gl_rwlock_unlock (name); + De-initialization: gl_rwlock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_rwlock_init (&name); + Taking the lock: err = glthread_rwlock_rdlock (&name); + err = glthread_rwlock_wrlock (&name); + Releasing the lock: err = glthread_rwlock_unlock (&name); + De-initialization: err = glthread_rwlock_destroy (&name); + + Recursive locks: + Type: gl_recursive_lock_t + Declaration: gl_recursive_lock_define(extern, name) + Initializer: gl_recursive_lock_define_initialized(, name) + Initialization: gl_recursive_lock_init (name); + Taking the lock: gl_recursive_lock_lock (name); + Releasing the lock: gl_recursive_lock_unlock (name); + De-initialization: gl_recursive_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_recursive_lock_init (&name); + Taking the lock: err = glthread_recursive_lock_lock (&name); + Releasing the lock: err = glthread_recursive_lock_unlock (&name); + De-initialization: err = glthread_recursive_lock_destroy (&name); + + Once-only execution: + Type: gl_once_t + Initializer: gl_once_define(extern, name) + Execution: gl_once (name, initfunction); + Equivalent functions with control of error handling: + Execution: err = glthread_once (&name, initfunction); +*/ + + +#ifndef _LOCK_H +#define _LOCK_H + +#include +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The pthread_in_use() detection needs to be done at runtime. */ +# define pthread_in_use() \ + glthread_in_use () +extern int glthread_in_use (void); + +# endif + +# if USE_POSIX_THREADS_WEAK + +/* Use weak references to the POSIX threads library. */ + +/* Weak references avoid dragging in external libraries if the other parts + of the program don't use them. Here we use them, because we don't want + every program that uses libintl to depend on libpthread. This assumes + that libpthread would not be loaded after libintl; i.e. if libintl is + loaded first, by an executable that does not depend on libpthread, and + then a module is dynamically loaded that depends on libpthread, libintl + will not be multithread-safe. */ + +/* The way to test at runtime whether libpthread is present is to test + whether a function pointer's value, such as &pthread_mutex_init, is + non-NULL. However, some versions of GCC have a bug through which, in + PIC mode, &foo != NULL always evaluates to true if there is a direct + call to foo(...) in the same function. To avoid this, we test the + address of a function in libpthread that we don't use. */ + +# pragma weak pthread_mutex_init +# pragma weak pthread_mutex_lock +# pragma weak pthread_mutex_unlock +# pragma weak pthread_mutex_destroy +# pragma weak pthread_rwlock_init +# pragma weak pthread_rwlock_rdlock +# pragma weak pthread_rwlock_wrlock +# pragma weak pthread_rwlock_unlock +# pragma weak pthread_rwlock_destroy +# pragma weak pthread_once +# pragma weak pthread_cond_init +# pragma weak pthread_cond_wait +# pragma weak pthread_cond_signal +# pragma weak pthread_cond_broadcast +# pragma weak pthread_cond_destroy +# pragma weak pthread_mutexattr_init +# pragma weak pthread_mutexattr_settype +# pragma weak pthread_mutexattr_destroy +# ifndef pthread_self +# pragma weak pthread_self +# endif + +# if !PTHREAD_IN_USE_DETECTION_HARD +# pragma weak pthread_cancel +# define pthread_in_use() (pthread_cancel != NULL) +# endif + +# else + +# if !PTHREAD_IN_USE_DETECTION_HARD +# define pthread_in_use() 1 +# endif + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef pthread_mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + PTHREAD_MUTEX_INITIALIZER +# define glthread_lock_init(LOCK) \ + (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +# if HAVE_PTHREAD_RWLOCK + +# ifdef PTHREAD_RWLOCK_INITIALIZER + +typedef pthread_rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + PTHREAD_RWLOCK_INITIALIZER +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0) + +# else + +typedef struct + { + int initialized; + pthread_mutex_t guard; /* protects the initialization */ + pthread_rwlock_t rwlock; /* read-write lock */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { 0, PTHREAD_MUTEX_INITIALIZER } +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); + +# endif + +# else + +typedef struct + { + pthread_mutex_t lock; /* protects the remaining fields */ + pthread_cond_t waiting_readers; /* waiting readers */ + pthread_cond_t waiting_writers; /* waiting writers */ + unsigned int waiting_writers_count; /* number of waiting writers */ + int runcount; /* number of readers running, or -1 when a writer runs */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); + +# endif + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +# if HAVE_PTHREAD_MUTEX_RECURSIVE + +# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP + +typedef pthread_mutex_t gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; +# ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER +# define gl_recursive_lock_initializer \ + PTHREAD_RECURSIVE_MUTEX_INITIALIZER +# else +# define gl_recursive_lock_initializer \ + PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP +# endif +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); + +# else + +typedef struct + { + pthread_mutex_t recmutex; /* recursive mutex */ + pthread_mutex_t guard; /* protects the initialization */ + int initialized; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +# endif + +# else + +/* Old versions of POSIX threads on Solaris did not have recursive locks. + We have to implement them ourselves. */ + +typedef struct + { + pthread_mutex_t mutex; + pthread_t owner; + unsigned long depth; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +# endif + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef pthread_once_t gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pthread_in_use () \ + ? pthread_once (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_singlethreaded (pthread_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_PTH_THREADS_WEAK + +/* Use weak references to the GNU Pth threads library. */ + +# pragma weak pth_mutex_init +# pragma weak pth_mutex_acquire +# pragma weak pth_mutex_release +# pragma weak pth_rwlock_init +# pragma weak pth_rwlock_acquire +# pragma weak pth_rwlock_release +# pragma weak pth_once + +# pragma weak pth_cancel +# define pth_in_use() (pth_cancel != NULL) + +# else + +# define pth_in_use() 1 + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef pth_mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + PTH_MUTEX_INIT +# define glthread_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_lock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef pth_rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + PTH_RWLOCK_INIT +# define glthread_rwlock_init(LOCK) \ + (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0) +# define glthread_rwlock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* In Pth, mutexes are recursive by default. */ +typedef pth_mutex_t gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + PTH_MUTEX_INIT +# define glthread_recursive_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef pth_once_t gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pth_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)); +extern int glthread_once_singlethreaded (pth_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_SOLARIS_THREADS_WEAK + +/* Use weak references to the old Solaris threads library. */ + +# pragma weak mutex_init +# pragma weak mutex_lock +# pragma weak mutex_unlock +# pragma weak mutex_destroy +# pragma weak rwlock_init +# pragma weak rw_rdlock +# pragma weak rw_wrlock +# pragma weak rw_unlock +# pragma weak rwlock_destroy +# pragma weak thr_self + +# pragma weak thr_suspend +# define thread_in_use() (thr_suspend != NULL) + +# else + +# define thread_in_use() 1 + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + DEFAULTMUTEX +# define glthread_lock_init(LOCK) \ + (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (thread_in_use () ? mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (thread_in_use () ? mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (thread_in_use () ? mutex_destroy (LOCK) : 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + DEFAULTRWLOCK +# define glthread_rwlock_init(LOCK) \ + (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (thread_in_use () ? rw_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (thread_in_use () ? rw_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (thread_in_use () ? rw_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (thread_in_use () ? rwlock_destroy (LOCK) : 0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* Old Solaris threads did not have recursive locks. + We have to implement them ourselves. */ + +typedef struct + { + mutex_t mutex; + thread_t owner; + unsigned long depth; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { DEFAULTMUTEX, (thread_t) 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef struct + { + volatile int inited; + mutex_t mutex; + } + gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (thread_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)); +extern int glthread_once_singlethreaded (gl_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +/* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, + Semaphore types, because + - we need only to synchronize inside a single process (address space), + not inter-process locking, + - we don't need to support trylock operations. (TryEnterCriticalSection + does not work on Windows 95/98/ME. Packages that need trylock usually + define their own mutex type.) */ + +/* There is no way to statically initialize a CRITICAL_SECTION. It needs + to be done lazily, once only. For this we need spinlocks. */ + +typedef struct { volatile int done; volatile long started; } gl_spinlock_t; + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + CRITICAL_SECTION lock; + } + gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_lock_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_lock_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + { { 0, -1 } } +# define glthread_lock_init(LOCK) \ + (glthread_lock_init_func (LOCK), 0) +# define glthread_lock_lock(LOCK) \ + glthread_lock_lock_func (LOCK) +# define glthread_lock_unlock(LOCK) \ + glthread_lock_unlock_func (LOCK) +# define glthread_lock_destroy(LOCK) \ + glthread_lock_destroy_func (LOCK) +extern void glthread_lock_init_func (gl_lock_t *lock); +extern int glthread_lock_lock_func (gl_lock_t *lock); +extern int glthread_lock_unlock_func (gl_lock_t *lock); +extern int glthread_lock_destroy_func (gl_lock_t *lock); + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* It is impossible to implement read-write locks using plain locks, without + introducing an extra thread dedicated to managing read-write locks. + Therefore here we need to use the low-level Event type. */ + +typedef struct + { + HANDLE *array; /* array of waiting threads, each represented by an event */ + unsigned int count; /* number of waiting threads */ + unsigned int alloc; /* length of allocated array */ + unsigned int offset; /* index of first waiting thread in array */ + } + gl_carray_waitqueue_t; +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + CRITICAL_SECTION lock; /* protects the remaining fields */ + gl_carray_waitqueue_t waiting_readers; /* waiting readers */ + gl_carray_waitqueue_t waiting_writers; /* waiting writers */ + int runcount; /* number of readers running, or -1 when a writer runs */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { { 0, -1 } } +# define glthread_rwlock_init(LOCK) \ + (glthread_rwlock_init_func (LOCK), 0) +# define glthread_rwlock_rdlock(LOCK) \ + glthread_rwlock_rdlock_func (LOCK) +# define glthread_rwlock_wrlock(LOCK) \ + glthread_rwlock_wrlock_func (LOCK) +# define glthread_rwlock_unlock(LOCK) \ + glthread_rwlock_unlock_func (LOCK) +# define glthread_rwlock_destroy(LOCK) \ + glthread_rwlock_destroy_func (LOCK) +extern void glthread_rwlock_init_func (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_func (gl_rwlock_t *lock); + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* The Win32 documentation says that CRITICAL_SECTION already implements a + recursive lock. But we need not rely on it: It's easy to implement a + recursive lock without this assumption. */ + +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + DWORD owner; + unsigned long depth; + CRITICAL_SECTION lock; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { { 0, -1 }, 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (glthread_recursive_lock_init_func (LOCK), 0) +# define glthread_recursive_lock_lock(LOCK) \ + glthread_recursive_lock_lock_func (LOCK) +# define glthread_recursive_lock_unlock(LOCK) \ + glthread_recursive_lock_unlock_func (LOCK) +# define glthread_recursive_lock_destroy(LOCK) \ + glthread_recursive_lock_destroy_func (LOCK) +extern void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock); + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef struct + { + volatile int inited; + volatile long started; + CRITICAL_SECTION lock; + } + gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = { -1, -1 }; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0) +extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef int gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) +# define gl_lock_define_initialized(STORAGECLASS, NAME) +# define glthread_lock_init(NAME) 0 +# define glthread_lock_lock(NAME) 0 +# define glthread_lock_unlock(NAME) 0 +# define glthread_lock_destroy(NAME) 0 + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef int gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) +# define glthread_rwlock_init(NAME) 0 +# define glthread_rwlock_rdlock(NAME) 0 +# define glthread_rwlock_wrlock(NAME) 0 +# define glthread_rwlock_unlock(NAME) 0 +# define glthread_rwlock_destroy(NAME) 0 + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +typedef int gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) +# define glthread_recursive_lock_init(NAME) 0 +# define glthread_recursive_lock_lock(NAME) 0 +# define glthread_recursive_lock_unlock(NAME) 0 +# define glthread_recursive_lock_destroy(NAME) 0 + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef int gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = 0; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0) + +#endif + +/* ========================================================================= */ + +/* Macros with built-in error handling. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +#define gl_lock_init(NAME) \ + do \ + { \ + if (glthread_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_lock(NAME) \ + do \ + { \ + if (glthread_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_unlock(NAME) \ + do \ + { \ + if (glthread_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_destroy(NAME) \ + do \ + { \ + if (glthread_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +#define gl_rwlock_init(NAME) \ + do \ + { \ + if (glthread_rwlock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_rdlock(NAME) \ + do \ + { \ + if (glthread_rwlock_rdlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_wrlock(NAME) \ + do \ + { \ + if (glthread_rwlock_wrlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_unlock(NAME) \ + do \ + { \ + if (glthread_rwlock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_destroy(NAME) \ + do \ + { \ + if (glthread_rwlock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +#define gl_recursive_lock_init(NAME) \ + do \ + { \ + if (glthread_recursive_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_lock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_unlock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_destroy(NAME) \ + do \ + { \ + if (glthread_recursive_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* -------------------------- gl_once_t datatype -------------------------- */ + +#define gl_once(NAME, INITFUNCTION) \ + do \ + { \ + if (glthread_once (&NAME, INITFUNCTION)) \ + abort (); \ + } \ + while (0) + +/* ========================================================================= */ + +#endif /* _LOCK_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glthread/threadlib.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/threadlib.c --- gettext-0.17/gettext-tools/gnulib-lib/glthread/threadlib.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/threadlib.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,74 @@ +/* Multithreading primitives. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. */ + +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include +# include + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The function to be executed by a dummy thread. */ +static void * +dummy_thread_func (void *arg) +{ + return arg; +} + +int +glthread_in_use (void) +{ + static int tested; + static int result; /* 1: linked with -lpthread, 0: only with libc */ + + if (!tested) + { + pthread_t thread; + + if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) + /* Thread creation failed. */ + result = 0; + else + { + /* Thread creation works. */ + void *retval; + if (pthread_join (thread, &retval) != 0) + abort (); + result = 1; + } + tested = 1; + } + return result; +} + +# endif + +#endif + +/* ========================================================================= */ + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glthread/tls.c gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/tls.c --- gettext-0.17/gettext-tools/gnulib-lib/glthread/tls.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/tls.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,61 @@ +/* Thread-local storage in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2005. */ + +#include + +#include "glthread/tls.h" + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +void * +glthread_tls_get_multithreaded (thread_key_t key) +{ + void *value; + + if (thr_getspecific (key, &value) != 0) + abort (); + return value; +} + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +#endif + +/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/glthread/tls.h gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/tls.h --- gettext-0.17/gettext-tools/gnulib-lib/glthread/tls.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/glthread/tls.h 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,298 @@ +/* Thread-local storage in multithreaded situations. + Copyright (C) 2005, 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2005. */ + +/* This file contains thread-local storage primitives for use with a given + thread library. It does not contain primitives for creating threads or + for other multithreading primitives. + + Type: gl_tls_key_t + Initialization: gl_tls_key_init (name, destructor); + Getting per-thread value: gl_tls_get (name) + Setting per-thread value: gl_tls_set (name, pointer); + De-initialization: gl_tls_key_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_tls_key_init (&name, destructor); + Setting per-thread value: err = glthread_tls_set (&name, pointer); + De-initialization: err = glthread_tls_key_destroy (&name); + + A per-thread value is of type 'void *'. + + A destructor is a function pointer of type 'void (*) (void *)', called + when a thread exits, and taking the last per-thread value as argument. It + is unspecified whether the destructor function is called when the last + per-thread value is NULL. On some platforms, the destructor function is + not called at all. +*/ + + +#ifndef _TLS_H +#define _TLS_H + +#include +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The pthread_in_use() detection needs to be done at runtime. */ +# define pthread_in_use() \ + glthread_in_use () +extern int glthread_in_use (void); + +# endif + +# if USE_POSIX_THREADS_WEAK + +/* Use weak references to the POSIX threads library. */ + +# pragma weak pthread_key_create +# pragma weak pthread_getspecific +# pragma weak pthread_setspecific +# pragma weak pthread_key_delete +# ifndef pthread_self +# pragma weak pthread_self +# endif + +# if !PTHREAD_IN_USE_DETECTION_HARD +# pragma weak pthread_cancel +# define pthread_in_use() (pthread_cancel != NULL) +# endif + +# else + +# if !PTHREAD_IN_USE_DETECTION_HARD +# define pthread_in_use() 1 +# endif + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + pthread_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (pthread_in_use () \ + ? pthread_key_create (&(KEY)->key, DESTRUCTOR) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (pthread_in_use () \ + ? pthread_getspecific ((NAME).key) \ + : (NAME).singlethread_value) +# define glthread_tls_set(KEY, POINTER) \ + (pthread_in_use () \ + ? pthread_setspecific ((KEY)->key, (POINTER)) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + (pthread_in_use () ? pthread_key_delete ((KEY)->key) : 0) + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# if USE_PTH_THREADS_WEAK + +/* Use weak references to the GNU Pth threads library. */ + +# pragma weak pth_key_create +# pragma weak pth_key_getdata +# pragma weak pth_key_setdata +# pragma weak pth_key_delete + +# pragma weak pth_cancel +# define pth_in_use() (pth_cancel != NULL) + +# else + +# define pth_in_use() 1 + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + pth_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (pth_in_use () \ + ? (!pth_key_create (&(KEY)->key, DESTRUCTOR) ? errno : 0) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (pth_in_use () \ + ? pth_key_getdata ((NAME).key) \ + : (NAME).singlethread_value) +# define glthread_tls_set(KEY, POINTER) \ + (pth_in_use () \ + ? (!pth_key_setdata ((KEY)->key, (POINTER)) ? errno : 0) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + (pth_in_use () \ + ? (!pth_key_delete ((KEY)->key) ? errno : 0) \ + : 0) + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include + +# if USE_SOLARIS_THREADS_WEAK + +/* Use weak references to the old Solaris threads library. */ + +# pragma weak thr_keycreate +# pragma weak thr_getspecific +# pragma weak thr_setspecific + +# pragma weak thr_suspend +# define thread_in_use() (thr_suspend != NULL) + +# else + +# define thread_in_use() 1 + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + thread_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (thread_in_use () \ + ? thr_keycreate (&(KEY)->key, DESTRUCTOR) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (thread_in_use () \ + ? glthread_tls_get_multithreaded ((NAME).key) \ + : (NAME).singlethread_value) +extern void *glthread_tls_get_multithreaded (thread_key_t key); +# define glthread_tls_set(KEY, POINTER) \ + (thread_in_use () \ + ? thr_setspecific ((KEY)->key, (POINTER)) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + /* Unsupported. */ \ + 0 + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef DWORD gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + /* The destructor is unsupported. */ \ + ((*(KEY) = TlsAlloc ()) == (DWORD)-1 ? EAGAIN : ((void) (DESTRUCTOR), 0)) +# define gl_tls_get(NAME) \ + TlsGetValue (NAME) +# define glthread_tls_set(KEY, POINTER) \ + (!TlsSetValue (*(KEY), POINTER) ? EINVAL : 0) +# define glthread_tls_key_destroy(KEY) \ + (!TlsFree (*(KEY)) ? EINVAL : 0) + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef struct + { + void *singlethread_value; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + ((KEY)->singlethread_value = NULL, \ + (void) (DESTRUCTOR), \ + 0) +# define gl_tls_get(NAME) \ + (NAME).singlethread_value +# define glthread_tls_set(KEY, POINTER) \ + ((KEY)->singlethread_value = (POINTER), 0) +# define glthread_tls_key_destroy(KEY) \ + 0 + +#endif + +/* ========================================================================= */ + +/* Macros with built-in error handling. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +#define gl_tls_key_init(NAME, DESTRUCTOR) \ + do \ + { \ + if (glthread_tls_key_init (&NAME, DESTRUCTOR)) \ + abort (); \ + } \ + while (0) +#define gl_tls_set(NAME, POINTER) \ + do \ + { \ + if (glthread_tls_set (&NAME, POINTER)) \ + abort (); \ + } \ + while (0) +#define gl_tls_key_destroy(NAME) \ + do \ + { \ + if (glthread_tls_key_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* ========================================================================= */ + +#endif /* _TLS_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_xlist.c gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_xlist.c --- gettext-0.17/gettext-tools/gnulib-lib/gl_xlist.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_xlist.c 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,128 @@ +/* Abstract sequential list data type, with out-of-memory checking. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "gl_xlist.h" + +#if !HAVE_INLINE + +gl_list_t +gl_list_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) +{ + gl_list_t result = + gl_list_nx_create_empty (implementation, equals_fn, hashcode_fn, dispose_fn, + allow_duplicates); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_t +gl_list_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) +{ + gl_list_t result = + gl_list_nx_create (implementation, equals_fn, hashcode_fn, dispose_fn, + allow_duplicates, count, contents); + if (result == NULL) + xalloc_die (); + return result; +} + +void +gl_list_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt) +{ + int result = gl_list_node_nx_set_value (list, node, elt); + if (result < 0) + xalloc_die (); +} + +gl_list_node_t +gl_list_set_at (gl_list_t list, size_t position, const void *elt) +{ + gl_list_node_t result = gl_list_nx_set_at (list, position, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_list_add_first (gl_list_t list, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_first (list, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_list_add_last (gl_list_t list, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_last (list, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_before (list, node, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_after (list, node, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_list_add_at (gl_list_t list, size_t position, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_at (list, position, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +gl_list_node_t +gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, + const void *elt) +{ + gl_list_node_t result = gl_sortedlist_nx_add (list, compar, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/gl_xlist.h gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_xlist.h --- gettext-0.17/gettext-tools/gnulib-lib/gl_xlist.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/gl_xlist.h 2010-05-24 09:42:37.000000000 +0000 @@ -0,0 +1,179 @@ +/* Abstract sequential list data type, with out-of-memory checking. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_XLIST_H +#define _GL_XLIST_H + +#include "gl_list.h" +#include "xalloc.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* These functions are thin wrappers around the corresponding functions with + _nx_ infix from gl_list.h. Upon out-of-memory, they invoke xalloc_die (), + instead of returning an error indicator. */ +extern gl_list_t gl_list_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates); +extern gl_list_t gl_list_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents); +extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node, + const void *elt); +extern gl_list_node_t gl_list_set_at (gl_list_t list, size_t position, + const void *elt); +extern gl_list_node_t gl_list_add_first (gl_list_t list, const void *elt); +extern gl_list_node_t gl_list_add_last (gl_list_t list, const void *elt); +extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node, + const void *elt); +extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node, + const void *elt); +extern gl_list_node_t gl_list_add_at (gl_list_t list, size_t position, + const void *elt); +extern gl_list_node_t gl_sortedlist_add (gl_list_t list, + gl_listelement_compar_fn compar, + const void *elt); + +#if HAVE_INLINE + +# define gl_list_create_empty gl_list_create_empty_inline +static inline gl_list_t +gl_list_create_empty (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates) +{ + gl_list_t result = + gl_list_nx_create_empty (implementation, equals_fn, hashcode_fn, dispose_fn, + allow_duplicates); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_create gl_list_create_inline +static inline gl_list_t +gl_list_create (gl_list_implementation_t implementation, + gl_listelement_equals_fn equals_fn, + gl_listelement_hashcode_fn hashcode_fn, + gl_listelement_dispose_fn dispose_fn, + bool allow_duplicates, + size_t count, const void **contents) +{ + gl_list_t result = + gl_list_nx_create (implementation, equals_fn, hashcode_fn, dispose_fn, + allow_duplicates, count, contents); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_node_set_value gl_list_node_set_value_inline +static inline void +gl_list_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt) +{ + int result = gl_list_node_nx_set_value (list, node, elt); + if (result < 0) + xalloc_die (); +} + +# define gl_list_set_at gl_list_set_at_inline +static inline gl_list_node_t +gl_list_set_at (gl_list_t list, size_t position, const void *elt) +{ + gl_list_node_t result = gl_list_nx_set_at (list, position, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_add_first gl_list_add_first_inline +static inline gl_list_node_t +gl_list_add_first (gl_list_t list, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_first (list, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_add_last gl_list_add_last_inline +static inline gl_list_node_t +gl_list_add_last (gl_list_t list, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_last (list, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_add_before gl_list_add_before_inline +static inline gl_list_node_t +gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_before (list, node, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_add_after gl_list_add_after_inline +static inline gl_list_node_t +gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_after (list, node, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_list_add_at gl_list_add_at_inline +static inline gl_list_node_t +gl_list_add_at (gl_list_t list, size_t position, const void *elt) +{ + gl_list_node_t result = gl_list_nx_add_at (list, position, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +# define gl_sortedlist_add gl_sortedlist_add_inline +static inline gl_list_node_t +gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, + const void *elt) +{ + gl_list_node_t result = gl_sortedlist_nx_add (list, compar, elt); + if (result == NULL) + xalloc_die (); + return result; +} + +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _GL_XLIST_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/hash.c gettext-0.18.1.1/gettext-tools/gnulib-lib/hash.c --- gettext-0.17/gettext-tools/gnulib-lib/hash.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/hash.c 2010-06-06 12:49:58.000000000 +0000 @@ -138,15 +138,15 @@ /* References: [Aho,Sethi,Ullman] Compilers: Principles, Techniques and Tools, 1986 - [Knuth] The Art of Computer Programming, part3 (6.4) */ + [Knuth] The Art of Computer Programming, part3 (6.4) */ /* Look up a given key in the hash table. Return the index of the entry, if present, or otherwise the index a free entry where it could be inserted. */ static size_t lookup (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval) + const void *key, size_t keylen, + unsigned long int hval) { unsigned long int hash; size_t idx; @@ -160,24 +160,24 @@ if (table[idx].used) { if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; + && memcmp (table[idx].key, key, keylen) == 0) + return idx; /* Second hash function as suggested in [Knuth]. */ hash = 1 + hval % (htab->size - 2); do - { - if (idx <= hash) - idx = htab->size + idx - hash; - else - idx -= hash; - - /* If entry is found use it. */ - if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; - } + { + if (idx <= hash) + idx = htab->size + idx - hash; + else + idx -= hash; + + /* If entry is found use it. */ + if (table[idx].used == hval && table[idx].keylen == keylen + && memcmp (table[idx].key, key, keylen) == 0) + return idx; + } while (table[idx].used); } return idx; @@ -188,7 +188,7 @@ If found, return 0 and set *RESULT to it. Otherwise return -1. */ int hash_find_entry (hash_table *htab, const void *key, size_t keylen, - void **result) + void **result) { hash_entry *table = htab->table; size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen)); @@ -206,8 +206,8 @@ IDX is known to be unused. */ static void insert_entry_2 (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval, size_t idx, void *data) + const void *key, size_t keylen, + unsigned long int hval, size_t idx, void *data) { hash_entry *table = htab->table; @@ -249,10 +249,10 @@ for (idx = 1; idx <= old_size; ++idx) if (table[idx].used) insert_entry_2 (htab, table[idx].key, table[idx].keylen, - table[idx].used, - lookup (htab, table[idx].key, table[idx].keylen, - table[idx].used), - table[idx].data); + table[idx].used, + lookup (htab, table[idx].key, table[idx].keylen, + table[idx].used), + table[idx].data); free (table); } @@ -264,8 +264,8 @@ given key. */ const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -280,8 +280,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return keycopy; } } @@ -291,8 +291,8 @@ Return 0. */ int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -310,8 +310,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return 0; } } @@ -323,20 +323,20 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate (hash_table *htab, void **ptr, const void **key, size_t *keylen, - void **data) + void **data) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; @@ -356,21 +356,21 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap) + const void **key, size_t *keylen, + void ***datap) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/hash.h gettext-0.18.1.1/gettext-tools/gnulib-lib/hash.h --- gettext-0.17/gettext-tools/gnulib-lib/hash.h 2007-10-31 12:36:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/hash.h 2010-05-24 09:42:37.000000000 +0000 @@ -2,7 +2,7 @@ The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the + published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, @@ -48,30 +48,30 @@ /* Look up the value of a key in the given table. If found, return 0 and set *RESULT to it. Otherwise return -1. */ extern int hash_find_entry (hash_table *htab, - const void *key, size_t keylen, - void **result); + const void *key, size_t keylen, + void **result); /* Try to insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return non-NULL (more precisely, the address of the KEY inside the table's memory pool) if successful, or NULL if there is already an entry with the given key. */ extern const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return 0. */ extern int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry in *KEY, *KEYLEN, *DATA. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void **data); + const void **key, size_t *keylen, + void **data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry @@ -79,8 +79,8 @@ value; modifying **DATAP will modify the value of the entry. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap); + const void **key, size_t *keylen, + void ***datap); /* Given SEED > 1, return the smallest odd prime number >= SEED. */ extern unsigned long int next_prime (unsigned long int seed); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/html-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/html-ostream.c 2007-10-07 20:55:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-ostream.c 2010-06-06 18:36:35.000000000 +0000 @@ -2,7 +2,7 @@ #line 1 "html-ostream.oo.c" /* Output stream that produces HTML output. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -27,7 +27,7 @@ #include #include -#include "gl_list.h" +#include "gl_xlist.h" #include "gl_array_list.h" #include "unistr.h" #include "xalloc.h" @@ -57,13 +57,13 @@ size_t i; for (i = stream->last_class_stack_size; i < stream->curr_class_stack_size; i++) - { - char *classname = (char *) gl_list_get_at (stream->class_stack, i); + { + char *classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, "destination, classname); - ostream_write_str (stream->destination, "\">"); - } + ostream_write_str (stream->destination, "destination, classname); + ostream_write_str (stream->destination, "\">"); + } stream->last_class_stack_size = stream->curr_class_stack_size; } else if (stream->curr_class_stack_size < stream->last_class_stack_size) @@ -71,18 +71,18 @@ size_t i = stream->last_class_stack_size; while (i > stream->curr_class_stack_size) - { - char *classname; + { + char *classname; - --i; - classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, ""); - if (shrink_stack) - { - gl_list_remove_at (stream->class_stack, i); - free (classname); - } - } + --i; + classname = (char *) gl_list_get_at (stream->class_stack, i); + ostream_write_str (stream->destination, ""); + if (shrink_stack) + { + gl_list_remove_at (stream->class_stack, i); + free (classname); + } + } stream->last_class_stack_size = stream->curr_class_stack_size; } } @@ -98,111 +98,111 @@ inbufcount = stream->buflen; if (inbufcount > 0) - memcpy (inbuffer, stream->buf, inbufcount); + memcpy (inbuffer, stream->buf, inbufcount); for (;;) - { - /* At this point, inbuffer[0..inbufcount-1] is filled. */ - { - /* Combine the previous rest with a chunk of new input. */ - size_t n = - (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); - - if (n > 0) - { - memcpy (inbuffer + inbufcount, data, n); - data = (char *) data + n; - inbufcount += n; - len -= n; - } - } - { - /* Handle complete UTF-8 characters. */ - const char *inptr = inbuffer; - size_t insize = inbufcount; - - while (insize > 0) - { - unsigned char c0; - unsigned int uc; - int nbytes; - - c0 = ((const unsigned char *) inptr)[0]; - if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : - c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) - break; - - nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); - - if (uc == '\n') - { - size_t prev_class_stack_size = stream->curr_class_stack_size; - stream->curr_class_stack_size = 0; - emit_pending_spans (stream, false); - ostream_write_str (stream->destination, "
    "); - stream->curr_class_stack_size = prev_class_stack_size; - } - else - { - emit_pending_spans (stream, true); - - switch (uc) - { - case '"': - ostream_write_str (stream->destination, """); - break; - case '&': - ostream_write_str (stream->destination, "&"); - break; - case '<': - ostream_write_str (stream->destination, "<"); - break; - case '>': - /* Needed to avoid "]]>" in the output. */ - ostream_write_str (stream->destination, ">"); - break; - case ' ': - /* Needed because HTML viewers merge adjacent spaces - and drop spaces adjacent to
    and similar. */ - ostream_write_str (stream->destination, " "); - break; - default: - if (uc >= 0x20 && uc < 0x7F) - { - /* Output ASCII characters as such. */ - char bytes[1]; - bytes[0] = uc; - ostream_write_mem (stream->destination, bytes, 1); - } - else - { - /* Output non-ASCII characters in #&nnn; - notation. */ - char bytes[32]; - sprintf (bytes, "&#%d;", uc); - ostream_write_str (stream->destination, bytes); - } - break; - } - } - - inptr += nbytes; - insize -= nbytes; - } - /* Put back the unconverted part. */ - if (insize > BUFSIZE) - abort (); - if (len == 0) - { - if (insize > 0) - memcpy (stream->buf, inptr, insize); - stream->buflen = insize; - break; - } - if (insize > 0) - memmove (inbuffer, inptr, insize); - inbufcount = insize; - } - } + { + /* At this point, inbuffer[0..inbufcount-1] is filled. */ + { + /* Combine the previous rest with a chunk of new input. */ + size_t n = + (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); + + if (n > 0) + { + memcpy (inbuffer + inbufcount, data, n); + data = (char *) data + n; + inbufcount += n; + len -= n; + } + } + { + /* Handle complete UTF-8 characters. */ + const char *inptr = inbuffer; + size_t insize = inbufcount; + + while (insize > 0) + { + unsigned char c0; + ucs4_t uc; + int nbytes; + + c0 = ((const unsigned char *) inptr)[0]; + if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : + c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) + break; + + nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); + + if (uc == '\n') + { + size_t prev_class_stack_size = stream->curr_class_stack_size; + stream->curr_class_stack_size = 0; + emit_pending_spans (stream, false); + ostream_write_str (stream->destination, "
    "); + stream->curr_class_stack_size = prev_class_stack_size; + } + else + { + emit_pending_spans (stream, true); + + switch (uc) + { + case '"': + ostream_write_str (stream->destination, """); + break; + case '&': + ostream_write_str (stream->destination, "&"); + break; + case '<': + ostream_write_str (stream->destination, "<"); + break; + case '>': + /* Needed to avoid "]]>" in the output. */ + ostream_write_str (stream->destination, ">"); + break; + case ' ': + /* Needed because HTML viewers merge adjacent spaces + and drop spaces adjacent to
    and similar. */ + ostream_write_str (stream->destination, " "); + break; + default: + if (uc >= 0x20 && uc < 0x7F) + { + /* Output ASCII characters as such. */ + char bytes[1]; + bytes[0] = uc; + ostream_write_mem (stream->destination, bytes, 1); + } + else + { + /* Output non-ASCII characters in #&nnn; + notation. */ + char bytes[32]; + sprintf (bytes, "&#%d;", (int) uc); + ostream_write_str (stream->destination, bytes); + } + break; + } + } + + inptr += nbytes; + insize -= nbytes; + } + /* Put back the unconverted part. */ + if (insize > BUFSIZE) + abort (); + if (len == 0) + { + if (insize > 0) + memcpy (stream->buf, inptr, insize); + stream->buflen = insize; + break; + } + if (insize > 0) + memmove (inbuffer, inptr, insize); + inbufcount = insize; + } + } #undef BUFFERSIZE } } @@ -226,13 +226,13 @@ /* Implementation of html_ostream_t methods. */ -void +static void html_ostream__begin_span (html_ostream_t stream, const char *classname) { if (stream->last_class_stack_size > stream->curr_class_stack_size && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size), - classname) != 0) + stream->curr_class_stack_size), + classname) != 0) emit_pending_spans (stream, true); /* Now either last_class_stack_size <= curr_class_stack_size @@ -243,17 +243,17 @@ - in this case we only need to increment curr_class_stack_size. */ if (stream->last_class_stack_size <= stream->curr_class_stack_size) gl_list_add_at (stream->class_stack, stream->curr_class_stack_size, - xstrdup (classname)); + xstrdup (classname)); stream->curr_class_stack_size++; } -void +static void html_ostream__end_span (html_ostream_t stream, const char *classname) { if (!(stream->curr_class_stack_size > 0 - && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size - 1), - classname) == 0)) + && strcmp ((char *) gl_list_get_at (stream->class_stack, + stream->curr_class_stack_size - 1), + classname) == 0)) /* Improperly nested begin_span/end_span calls. */ abort (); stream->curr_class_stack_size--; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-ostream.oo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/html-ostream.oo.c --- gettext-0.17/gettext-tools/gnulib-lib/html-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Output stream that produces HTML output. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -24,7 +24,7 @@ #include #include -#include "gl_list.h" +#include "gl_xlist.h" #include "gl_array_list.h" #include "unistr.h" #include "xalloc.h" @@ -56,13 +56,13 @@ size_t i; for (i = stream->last_class_stack_size; i < stream->curr_class_stack_size; i++) - { - char *classname = (char *) gl_list_get_at (stream->class_stack, i); + { + char *classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, "destination, classname); - ostream_write_str (stream->destination, "\">"); - } + ostream_write_str (stream->destination, "destination, classname); + ostream_write_str (stream->destination, "\">"); + } stream->last_class_stack_size = stream->curr_class_stack_size; } else if (stream->curr_class_stack_size < stream->last_class_stack_size) @@ -70,18 +70,18 @@ size_t i = stream->last_class_stack_size; while (i > stream->curr_class_stack_size) - { - char *classname; + { + char *classname; - --i; - classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, ""); - if (shrink_stack) - { - gl_list_remove_at (stream->class_stack, i); - free (classname); - } - } + --i; + classname = (char *) gl_list_get_at (stream->class_stack, i); + ostream_write_str (stream->destination, ""); + if (shrink_stack) + { + gl_list_remove_at (stream->class_stack, i); + free (classname); + } + } stream->last_class_stack_size = stream->curr_class_stack_size; } } @@ -97,111 +97,111 @@ inbufcount = stream->buflen; if (inbufcount > 0) - memcpy (inbuffer, stream->buf, inbufcount); + memcpy (inbuffer, stream->buf, inbufcount); for (;;) - { - /* At this point, inbuffer[0..inbufcount-1] is filled. */ - { - /* Combine the previous rest with a chunk of new input. */ - size_t n = - (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); - - if (n > 0) - { - memcpy (inbuffer + inbufcount, data, n); - data = (char *) data + n; - inbufcount += n; - len -= n; - } - } - { - /* Handle complete UTF-8 characters. */ - const char *inptr = inbuffer; - size_t insize = inbufcount; - - while (insize > 0) - { - unsigned char c0; - unsigned int uc; - int nbytes; - - c0 = ((const unsigned char *) inptr)[0]; - if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : - c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) - break; - - nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); - - if (uc == '\n') - { - size_t prev_class_stack_size = stream->curr_class_stack_size; - stream->curr_class_stack_size = 0; - emit_pending_spans (stream, false); - ostream_write_str (stream->destination, "
    "); - stream->curr_class_stack_size = prev_class_stack_size; - } - else - { - emit_pending_spans (stream, true); - - switch (uc) - { - case '"': - ostream_write_str (stream->destination, """); - break; - case '&': - ostream_write_str (stream->destination, "&"); - break; - case '<': - ostream_write_str (stream->destination, "<"); - break; - case '>': - /* Needed to avoid "]]>" in the output. */ - ostream_write_str (stream->destination, ">"); - break; - case ' ': - /* Needed because HTML viewers merge adjacent spaces - and drop spaces adjacent to
    and similar. */ - ostream_write_str (stream->destination, " "); - break; - default: - if (uc >= 0x20 && uc < 0x7F) - { - /* Output ASCII characters as such. */ - char bytes[1]; - bytes[0] = uc; - ostream_write_mem (stream->destination, bytes, 1); - } - else - { - /* Output non-ASCII characters in #&nnn; - notation. */ - char bytes[32]; - sprintf (bytes, "&#%d;", uc); - ostream_write_str (stream->destination, bytes); - } - break; - } - } - - inptr += nbytes; - insize -= nbytes; - } - /* Put back the unconverted part. */ - if (insize > BUFSIZE) - abort (); - if (len == 0) - { - if (insize > 0) - memcpy (stream->buf, inptr, insize); - stream->buflen = insize; - break; - } - if (insize > 0) - memmove (inbuffer, inptr, insize); - inbufcount = insize; - } - } + { + /* At this point, inbuffer[0..inbufcount-1] is filled. */ + { + /* Combine the previous rest with a chunk of new input. */ + size_t n = + (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); + + if (n > 0) + { + memcpy (inbuffer + inbufcount, data, n); + data = (char *) data + n; + inbufcount += n; + len -= n; + } + } + { + /* Handle complete UTF-8 characters. */ + const char *inptr = inbuffer; + size_t insize = inbufcount; + + while (insize > 0) + { + unsigned char c0; + ucs4_t uc; + int nbytes; + + c0 = ((const unsigned char *) inptr)[0]; + if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : + c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) + break; + + nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); + + if (uc == '\n') + { + size_t prev_class_stack_size = stream->curr_class_stack_size; + stream->curr_class_stack_size = 0; + emit_pending_spans (stream, false); + ostream_write_str (stream->destination, "
    "); + stream->curr_class_stack_size = prev_class_stack_size; + } + else + { + emit_pending_spans (stream, true); + + switch (uc) + { + case '"': + ostream_write_str (stream->destination, """); + break; + case '&': + ostream_write_str (stream->destination, "&"); + break; + case '<': + ostream_write_str (stream->destination, "<"); + break; + case '>': + /* Needed to avoid "]]>" in the output. */ + ostream_write_str (stream->destination, ">"); + break; + case ' ': + /* Needed because HTML viewers merge adjacent spaces + and drop spaces adjacent to
    and similar. */ + ostream_write_str (stream->destination, " "); + break; + default: + if (uc >= 0x20 && uc < 0x7F) + { + /* Output ASCII characters as such. */ + char bytes[1]; + bytes[0] = uc; + ostream_write_mem (stream->destination, bytes, 1); + } + else + { + /* Output non-ASCII characters in #&nnn; + notation. */ + char bytes[32]; + sprintf (bytes, "&#%d;", (int) uc); + ostream_write_str (stream->destination, bytes); + } + break; + } + } + + inptr += nbytes; + insize -= nbytes; + } + /* Put back the unconverted part. */ + if (insize > BUFSIZE) + abort (); + if (len == 0) + { + if (insize > 0) + memcpy (stream->buf, inptr, insize); + stream->buflen = insize; + break; + } + if (insize > 0) + memmove (inbuffer, inptr, insize); + inbufcount = insize; + } + } #undef BUFFERSIZE } } @@ -225,13 +225,13 @@ /* Implementation of html_ostream_t methods. */ -void +static void html_ostream::begin_span (html_ostream_t stream, const char *classname) { if (stream->last_class_stack_size > stream->curr_class_stack_size && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size), - classname) != 0) + stream->curr_class_stack_size), + classname) != 0) emit_pending_spans (stream, true); /* Now either last_class_stack_size <= curr_class_stack_size @@ -242,17 +242,17 @@ - in this case we only need to increment curr_class_stack_size. */ if (stream->last_class_stack_size <= stream->curr_class_stack_size) gl_list_add_at (stream->class_stack, stream->curr_class_stack_size, - xstrdup (classname)); + xstrdup (classname)); stream->curr_class_stack_size++; } -void +static void html_ostream::end_span (html_ostream_t stream, const char *classname) { if (!(stream->curr_class_stack_size > 0 - && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size - 1), - classname) == 0)) + && strcmp ((char *) gl_list_get_at (stream->class_stack, + stream->curr_class_stack_size - 1), + classname) == 0)) /* Improperly nested begin_span/end_span calls. */ abort (); stream->curr_class_stack_size--; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.c 2007-10-07 20:55:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.c 2010-06-06 18:36:36.000000000 +0000 @@ -62,7 +62,7 @@ static void html_styled_ostream__write_mem (html_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { html_ostream_write_mem (stream->html_destination, data, len); } @@ -85,14 +85,14 @@ static void html_styled_ostream__begin_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_begin_span (stream->html_destination, classname); } static void html_styled_ostream__end_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_end_span (stream->html_destination, classname); } @@ -121,44 +121,44 @@ - special characters like < > & " are escaped in the \n"); + "\n"); } ostream_write_str (stream->destination, "\n"); ostream_write_str (stream->destination, "\n"); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.h gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.h --- gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.h 2007-10-07 20:55:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.h 2010-06-06 18:36:36.000000000 +0000 @@ -150,7 +150,7 @@ closed. */ extern html_styled_ostream_t html_styled_ostream_create (ostream_t destination, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.oo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.oo.c --- gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -53,7 +53,7 @@ static void html_styled_ostream::write_mem (html_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { html_ostream_write_mem (stream->html_destination, data, len); } @@ -76,14 +76,14 @@ static void html_styled_ostream::begin_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_begin_span (stream->html_destination, classname); } static void html_styled_ostream::end_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_end_span (stream->html_destination, classname); } @@ -112,44 +112,44 @@ - special characters like < > & " are escaped in the \n"); + "\n"); } ostream_write_str (stream->destination, "\n"); ostream_write_str (stream->destination, "\n"); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.oo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.oo.h --- gettext-0.17/gettext-tools/gnulib-lib/html-styled-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/html-styled-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -38,7 +38,7 @@ closed. */ extern html_styled_ostream_t html_styled_ostream_create (ostream_t destination, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconveh.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconveh.h --- gettext-0.17/gettext-tools/gnulib-lib/iconveh.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconveh.h 2010-05-24 09:42:38.000000000 +0000 @@ -0,0 +1,41 @@ +/* Character set conversion handler type. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _ICONVEH_H +#define _ICONVEH_H + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Handling of unconvertible characters. */ +enum iconv_ilseq_handler +{ + iconveh_error, /* return and set errno = EILSEQ */ + iconveh_question_mark, /* use one '?' per unconvertible character */ + iconveh_escape_sequence /* use escape sequence \uxxxx or \Uxxxxxxxx */ +}; + + +#ifdef __cplusplus +} +#endif + + +#endif /* _ICONVEH_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv.in.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv.in.h 2007-10-17 22:35:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv.in.h 2010-05-24 09:42:38.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,23 +18,39 @@ #ifndef _GL_ICONV_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_ICONV_H@ #ifndef _GL_ICONV_H #define _GL_ICONV_H -#ifdef __cplusplus -extern "C" { -#endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ #if @REPLACE_ICONV_OPEN@ /* An iconv_open wrapper that supports the IANA standardized encoding names ("ISO-8859-1" etc.) as far as possible. */ -# define iconv_open rpl_iconv_open -extern iconv_t iconv_open (const char *tocode, const char *fromcode); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_open rpl_iconv_open +# endif +_GL_FUNCDECL_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); +#else +_GL_CXXALIAS_SYS (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); #endif +_GL_CXXALIASWARN (iconv_open); #if @REPLACE_ICONV_UTF@ /* Special constants for supporting UTF-{16,32}{BE,LE} encodings. @@ -50,18 +66,36 @@ #endif #if @REPLACE_ICONV@ -# define iconv rpl_iconv -extern size_t iconv (iconv_t cd, - @ICONV_CONST@ char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft); -# define iconv_close rpl_iconv_close -extern int iconv_close (iconv_t cd); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv rpl_iconv +# endif +_GL_FUNCDECL_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +_GL_CXXALIAS_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +#else +_GL_CXXALIAS_SYS (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); #endif +_GL_CXXALIASWARN (iconv); - -#ifdef __cplusplus -} +#if @REPLACE_ICONV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_close rpl_iconv_close +# endif +_GL_FUNCDECL_RPL (iconv_close, int, (iconv_t cd)); +_GL_CXXALIAS_RPL (iconv_close, int, (iconv_t cd)); +#else +_GL_CXXALIAS_SYS (iconv_close, int, (iconv_t cd)); #endif +_GL_CXXALIASWARN (iconv_close); + #endif /* _GL_ICONV_H */ #endif /* _GL_ICONV_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-aix.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-aix.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-aix.h 2007-05-13 19:21:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-aix.h 2010-05-24 16:06:43.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-aix.gperf */ /* Computed positions: -k'4,$' */ @@ -229,7 +229,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open.c gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open.c --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open.c 2007-10-17 22:35:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open.c 2010-05-24 09:42:38.000000000 +0000 @@ -1,9 +1,9 @@ /* Character set conversion. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -36,6 +36,7 @@ #define ICONV_FLAVOR_HPUX "iconv_open-hpux.h" #define ICONV_FLAVOR_IRIX "iconv_open-irix.h" #define ICONV_FLAVOR_OSF "iconv_open-osf.h" +#define ICONV_FLAVOR_SOLARIS "iconv_open-solaris.h" #ifdef ICONV_FLAVOR # include ICONV_FLAVOR @@ -66,33 +67,33 @@ && fromcode[3] == '-') { if (c_toupper (tocode[0]) == 'U' - && c_toupper (tocode[1]) == 'T' - && c_toupper (tocode[2]) == 'F' - && tocode[3] == '-') - { - if (strcmp (fromcode + 4, "8") == 0) - { - if (c_strcasecmp (tocode + 4, "16BE") == 0) - return _ICONV_UTF8_UTF16BE; - if (c_strcasecmp (tocode + 4, "16LE") == 0) - return _ICONV_UTF8_UTF16LE; - if (c_strcasecmp (tocode + 4, "32BE") == 0) - return _ICONV_UTF8_UTF32BE; - if (c_strcasecmp (tocode + 4, "32LE") == 0) - return _ICONV_UTF8_UTF32LE; - } - else if (strcmp (tocode + 4, "8") == 0) - { - if (c_strcasecmp (fromcode + 4, "16BE") == 0) - return _ICONV_UTF16BE_UTF8; - if (c_strcasecmp (fromcode + 4, "16LE") == 0) - return _ICONV_UTF16LE_UTF8; - if (c_strcasecmp (fromcode + 4, "32BE") == 0) - return _ICONV_UTF32BE_UTF8; - if (c_strcasecmp (fromcode + 4, "32LE") == 0) - return _ICONV_UTF32LE_UTF8; - } - } + && c_toupper (tocode[1]) == 'T' + && c_toupper (tocode[2]) == 'F' + && tocode[3] == '-') + { + if (strcmp (fromcode + 4, "8") == 0) + { + if (c_strcasecmp (tocode + 4, "16BE") == 0) + return _ICONV_UTF8_UTF16BE; + if (c_strcasecmp (tocode + 4, "16LE") == 0) + return _ICONV_UTF8_UTF16LE; + if (c_strcasecmp (tocode + 4, "32BE") == 0) + return _ICONV_UTF8_UTF32BE; + if (c_strcasecmp (tocode + 4, "32LE") == 0) + return _ICONV_UTF8_UTF32LE; + } + else if (strcmp (tocode + 4, "8") == 0) + { + if (c_strcasecmp (fromcode + 4, "16BE") == 0) + return _ICONV_UTF16BE_UTF8; + if (c_strcasecmp (fromcode + 4, "16LE") == 0) + return _ICONV_UTF16LE_UTF8; + if (c_strcasecmp (fromcode + 4, "32BE") == 0) + return _ICONV_UTF32BE_UTF8; + if (c_strcasecmp (fromcode + 4, "32LE") == 0) + return _ICONV_UTF32LE_UTF8; + } + } } #endif @@ -115,20 +116,20 @@ /* Convert the encodings to upper case, because 1. in the arguments of iconv_open() on AIX, HP-UX, and OSF/1 the case - matters, + matters, 2. it makes searching in the table faster. */ { const char *p = fromcode; char *q = fromcode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } fromcode_upper_end = q; } @@ -138,13 +139,13 @@ char *q = tocode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &tocode_upper[SIZEOF (tocode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &tocode_upper[SIZEOF (tocode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } tocode_upper_end = q; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-hpux.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-hpux.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-hpux.h 2007-05-13 19:21:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-hpux.h 2010-05-24 16:06:43.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-hpux.gperf */ /* Computed positions: -k'4,$' */ @@ -272,7 +272,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-irix.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-irix.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-irix.h 2007-05-13 19:21:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-irix.h 2010-05-24 16:06:43.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-irix.gperf */ /* Computed positions: -k'1,$' */ @@ -172,7 +172,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-osf.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-osf.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-osf.h 2007-05-13 19:21:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-osf.h 2010-05-24 16:06:43.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-osf.gperf */ /* Computed positions: -k'4,$' */ @@ -251,7 +251,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-solaris.gperf gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-solaris.gperf --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-solaris.gperf 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-solaris.gperf 2010-05-24 09:42:38.000000000 +0000 @@ -0,0 +1,30 @@ +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; +%struct-type +%language=ANSI-C +%define slot-name standard_name +%define hash-function-name mapping_hash +%define lookup-function-name mapping_lookup +%readonly-tables +%global-table +%define word-array-name mappings +%pic +%% +# On Solaris 10, look in the "iconv -l" output. Some aliases are advertised but +# not actually supported by the iconv() function and by the 'iconv' program. +# For example: +# $ echo abc | iconv -f 646 -t ISO-8859-1 +# Not supported 646 to ISO-8859-1 +# $ echo abc | iconv -f 646 -t ISO8859-1 +$ abc +ASCII, "646" +ISO-8859-1, "ISO8859-1" +ISO-8859-2, "ISO8859-2" +ISO-8859-3, "ISO8859-3" +ISO-8859-4, "ISO8859-4" +ISO-8859-5, "ISO8859-5" +ISO-8859-6, "ISO8859-6" +ISO-8859-7, "ISO8859-7" +ISO-8859-8, "ISO8859-8" +ISO-8859-9, "ISO8859-9" +ISO-8859-15, "ISO8859-15" +CP1251, "ansi-1251" diff -Nru gettext-0.17/gettext-tools/gnulib-lib/iconv_open-solaris.h gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-solaris.h --- gettext-0.17/gettext-tools/gnulib-lib/iconv_open-solaris.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/iconv_open-solaris.h 2010-05-24 16:06:43.000000000 +0000 @@ -0,0 +1,190 @@ +/* ANSI-C code produced by gperf version 3.0.4 */ +/* Command-line: gperf -m 10 ./iconv_open-solaris.gperf */ +/* Computed positions: -k'10' */ + +#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ + && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ + && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ + && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ + && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ + && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ + && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ + && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ + && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ + && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ + && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ + && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ + && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ + && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ + && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ + && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ + && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ + && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ + && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ + && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ + && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ + && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ + && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) +/* The character set is not based on ISO-646. */ +#error "gperf generated tables don't work with this execution character set. Please report a bug to ." +#endif + +#line 1 "./iconv_open-solaris.gperf" +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; + +#define TOTAL_KEYWORDS 13 +#define MIN_WORD_LENGTH 5 +#define MAX_WORD_LENGTH 11 +#define MIN_HASH_VALUE 5 +#define MAX_HASH_VALUE 19 +/* maximum key range = 15, duplicates = 0 */ + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static unsigned int +mapping_hash (register const char *str, register unsigned int len) +{ + static const unsigned char asso_values[] = + { + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, + 9, 8, 7, 6, 5, 4, 3, 2, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20 + }; + register int hval = len; + + switch (hval) + { + default: + hval += asso_values[(unsigned char)str[9]]; + /*FALLTHROUGH*/ + case 9: + case 8: + case 7: + case 6: + case 5: + break; + } + return hval; +} + +struct stringpool_t + { + char stringpool_str5[sizeof("ASCII")]; + char stringpool_str6[sizeof("CP1251")]; + char stringpool_str7[sizeof("$ abc")]; + char stringpool_str10[sizeof("ISO-8859-1")]; + char stringpool_str11[sizeof("ISO-8859-15")]; + char stringpool_str12[sizeof("ISO-8859-9")]; + char stringpool_str13[sizeof("ISO-8859-8")]; + char stringpool_str14[sizeof("ISO-8859-7")]; + char stringpool_str15[sizeof("ISO-8859-6")]; + char stringpool_str16[sizeof("ISO-8859-5")]; + char stringpool_str17[sizeof("ISO-8859-4")]; + char stringpool_str18[sizeof("ISO-8859-3")]; + char stringpool_str19[sizeof("ISO-8859-2")]; + }; +static const struct stringpool_t stringpool_contents = + { + "ASCII", + "CP1251", + "$ abc", + "ISO-8859-1", + "ISO-8859-15", + "ISO-8859-9", + "ISO-8859-8", + "ISO-8859-7", + "ISO-8859-6", + "ISO-8859-5", + "ISO-8859-4", + "ISO-8859-3", + "ISO-8859-2" + }; +#define stringpool ((const char *) &stringpool_contents) + +static const struct mapping mappings[] = + { + {-1}, {-1}, {-1}, {-1}, {-1}, +#line 19 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str5, "646"}, +#line 30 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str6, "ansi-1251"}, +#line 18 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str7}, + {-1}, {-1}, +#line 20 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str10, "ISO8859-1"}, +#line 29 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str11, "ISO8859-15"}, +#line 28 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str12, "ISO8859-9"}, +#line 27 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str13, "ISO8859-8"}, +#line 26 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str14, "ISO8859-7"}, +#line 25 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str15, "ISO8859-6"}, +#line 24 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str16, "ISO8859-5"}, +#line 23 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str17, "ISO8859-4"}, +#line 22 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str18, "ISO8859-3"}, +#line 21 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str19, "ISO8859-2"} + }; + +#ifdef __GNUC__ +__inline +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ +__attribute__ ((__gnu_inline__)) +#endif +#endif +const struct mapping * +mapping_lookup (register const char *str, register unsigned int len) +{ + if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) + { + register int key = mapping_hash (str, len); + + if (key <= MAX_HASH_VALUE && key >= 0) + { + register int o = mappings[key].standard_name; + if (o >= 0) + { + register const char *s = o + stringpool; + + if (*str == *s && !strcmp (str + 1, s + 1)) + return &mappings[key]; + } + } + } + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/intprops.h gettext-0.18.1.1/gettext-tools/gnulib-lib/intprops.h --- gettext-0.17/gettext-tools/gnulib-lib/intprops.h 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/intprops.h 2010-05-24 09:42:38.000000000 +0000 @@ -1,6 +1,7 @@ /* intprops.h -- properties of integer types - Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,40 +18,43 @@ /* Written by Paul Eggert. */ -#include +#ifndef GL_INTPROPS_H +# define GL_INTPROPS_H + +# include /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ -#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) +# define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if negative values of the signed integer type T use two's complement, ones' complement, or signed magnitude representation, respectively. Much GNU code assumes two's complement, but some people like to be portable to all possible C hosts. */ -#define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) -#define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) -#define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) +# define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) +# define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) +# define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) /* True if the arithmetic type T is signed. */ -#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) +# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The maximum and minimum values for the integer type T. These macros have undefined behavior if T is signed and has padding bits. If this is a problem for you, please let us know how to fix it for your host. */ -#define TYPE_MINIMUM(t) \ +# define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) 0 \ - : TYPE_SIGNED_MAGNITUDE (t) \ - ? ~ (t) 0 \ - : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ + ? (t) 0 \ + : TYPE_SIGNED_MAGNITUDE (t) \ + ? ~ (t) 0 \ + : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +# define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) + ? (t) -1 \ + : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) /* Return zero if T can be determined to be an unsigned type. Otherwise, return 1. @@ -58,20 +62,22 @@ tighter bound. Otherwise, it overestimates the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. The symbol signed_type_or_expr__ is private to this header file. */ -#if __GNUC__ >= 2 -# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) -#else -# define signed_type_or_expr__(t) 1 -#endif +# if __GNUC__ >= 2 +# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) +# else +# define signed_type_or_expr__(t) 1 +# endif /* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if T is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ -#define INT_STRLEN_BOUND(t) \ +# define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - signed_type_or_expr__ (t)) * 146 / 485 \ + signed_type_or_expr__ (t) + 1) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ -#define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) +# define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) + +#endif /* GL_INTPROPS_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javacomp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/javacomp.c --- gettext-0.17/gettext-tools/gnulib-lib/javacomp.c 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javacomp.c 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Compile a Java program. - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -41,7 +41,7 @@ #include "safe-read.h" #include "xalloc.h" #include "xmalloca.h" -#include "filename.h" +#include "concat-filename.h" #include "fwriteerror.h" #include "clean-temp.h" #include "error.h" @@ -81,12 +81,12 @@ We try the Java compilers in the following order: 1. getenv ("JAVAC"), because the user must be able to override our - preferences, + preferences, 2. "gcj -C", because it is a completely free compiler, 3. "javac", because it is a standard compiler, 4. "jikes", comes last because it has some deviating interpretation - of the Java Language Specification and because it requires a - CLASSPATH environment variable. + of the Java Language Specification and because it requires a + CLASSPATH environment variable. We unset the JAVA_HOME environment variable, because a wrong setting of this variable can confuse the JDK's javac. @@ -104,10 +104,10 @@ /* Determine the version from the found JVM. */ java_version_cache = javaexec_version (); if (java_version_cache == NULL - || !(java_version_cache[0] == '1' && java_version_cache[1] == '.' - && (java_version_cache[2] >= '1' && java_version_cache[2] <= '6') - && java_version_cache[3] == '\0')) - java_version_cache = "1.1"; + || !(java_version_cache[0] == '1' && java_version_cache[1] == '.' + && (java_version_cache[2] >= '1' && java_version_cache[2] <= '6') + && java_version_cache[3] == '\0')) + java_version_cache = "1.1"; } return java_version_cache; } @@ -199,11 +199,11 @@ Return a failure indicator (true upon error). */ static bool compile_using_envjavac (const char *javac, - const char * const *java_sources, - unsigned int java_sources_count, - const char *directory, - bool optimize, bool debug, - bool verbose, bool null_stderr) + const char * const *java_sources, + unsigned int java_sources_count, + const char *directory, + bool optimize, bool debug, + bool verbose, bool null_stderr) { /* Because $JAVAC may consist of a command and options, we use the shell. Because $JAVAC has been set by the user, we leave all @@ -268,7 +268,7 @@ argv[2] = command; argv[3] = NULL; exitstatus = execute (javac, "/bin/sh", argv, false, false, false, - null_stderr, true, true); + null_stderr, true, true, NULL); err = (exitstatus != 0); freea (command); @@ -280,13 +280,13 @@ Return a failure indicator (true upon error). */ static bool compile_using_gcj (const char * const *java_sources, - unsigned int java_sources_count, - bool no_assert_option, - bool fsource_option, const char *source_version, - bool ftarget_option, const char *target_version, - const char *directory, - bool optimize, bool debug, - bool verbose, bool null_stderr) + unsigned int java_sources_count, + bool no_assert_option, + bool fsource_option, const char *source_version, + bool ftarget_option, const char *target_version, + const char *directory, + bool optimize, bool debug, + bool verbose, bool null_stderr) { bool err; unsigned int argc; @@ -350,7 +350,7 @@ } exitstatus = execute ("gcj", "gcj", argv, false, false, false, null_stderr, - true, true); + true, true, NULL); err = (exitstatus != 0); if (ftarget_arg != NULL) @@ -366,12 +366,12 @@ Return a failure indicator (true upon error). */ static bool compile_using_javac (const char * const *java_sources, - unsigned int java_sources_count, - bool source_option, const char *source_version, - bool target_option, const char *target_version, - const char *directory, - bool optimize, bool debug, - bool verbose, bool null_stderr) + unsigned int java_sources_count, + bool source_option, const char *source_version, + bool target_option, const char *target_version, + const char *directory, + bool optimize, bool debug, + bool verbose, bool null_stderr) { bool err; unsigned int argc; @@ -421,7 +421,7 @@ } exitstatus = execute ("javac", "javac", argv, false, false, false, - null_stderr, true, true); + null_stderr, true, true, NULL); err = (exitstatus != 0); freea (argv); @@ -433,10 +433,10 @@ Return a failure indicator (true upon error). */ static bool compile_using_jikes (const char * const *java_sources, - unsigned int java_sources_count, - const char *directory, - bool optimize, bool debug, - bool verbose, bool null_stderr) + unsigned int java_sources_count, + const char *directory, + bool optimize, bool debug, + bool verbose, bool null_stderr) { bool err; unsigned int argc; @@ -476,7 +476,7 @@ } exitstatus = execute ("jikes", "jikes", argv, false, false, false, - null_stderr, true, true); + null_stderr, true, true, NULL); err = (exitstatus != 0); freea (argv); @@ -492,7 +492,7 @@ Return a failure indicator (true upon error). */ static bool write_temp_file (struct temp_dir *tmpdir, const char *file_name, - const char *contents) + const char *contents) { FILE *fp; @@ -526,12 +526,12 @@ { /* Read its first 8 bytes. */ if (safe_read (fd, header, 8) == 8) - { - /* Verify the class file signature. */ - if (header[0] == 0xCA && header[1] == 0xFE - && header[2] == 0xBA && header[3] == 0xBE) - return header[7]; - } + { + /* Verify the class file signature. */ + if (header[0] == 0xCA && header[1] == 0xFE + && header[2] == 0xBA && header[3] == 0xBE) + return header[7]; + } close (fd); } @@ -549,7 +549,7 @@ if (!envjavac_tested) { /* Test whether $JAVAC is gcj: - "$JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null" */ + "$JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null" */ unsigned int command_length; char *command; char *argv[4]; @@ -567,14 +567,14 @@ command = (char *) xmalloca (command_length); p = command; /* Don't shell_quote $JAVAC, because it may consist of a command - and options. */ + and options. */ memcpy (p, javac, strlen (javac)); p += strlen (javac); memcpy (p, " --version", 1 + 9 + 1); p += 1 + 9 + 1; /* Ensure command_length was correctly calculated. */ if (p - command > command_length) - abort (); + abort (); /* Call $JAVAC --version 2>/dev/null. */ argv[0] = "/bin/sh"; @@ -582,32 +582,33 @@ argv[2] = command; argv[3] = NULL; child = create_pipe_in (javac, "/bin/sh", argv, DEV_NULL, true, true, - false, fd); + false, fd); if (child == -1) - goto failed; + goto failed; /* Retrieve its result. */ fp = fdopen (fd[0], "r"); if (fp == NULL) - goto failed; + goto failed; line = NULL; linesize = 0; linelen = getline (&line, &linesize, fp); if (linelen == (size_t)(-1)) - { - fclose (fp); - goto failed; - } + { + fclose (fp); + goto failed; + } /* It is safe to call c_strstr() instead of strstr() here; see the - comments in c-strstr.h. */ + comments in c-strstr.h. */ envjavac_gcj = (c_strstr (line, "gcj") != NULL); fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, javac, true, true, true, false); + exitstatus = + wait_subprocess (child, javac, true, true, true, false, NULL); if (exitstatus != 0) - envjavac_gcj = false; + envjavac_gcj = false; failed: freea (command); @@ -629,8 +630,8 @@ if (!envjavac_tested) { /* Test whether $JAVAC is gcj: - "$JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q \ - | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null" */ + "$JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q \ + | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null" */ unsigned int command_length; char *command; char *argv[4]; @@ -648,14 +649,14 @@ command = (char *) xmalloca (command_length); p = command; /* Don't shell_quote $JAVAC, because it may consist of a command - and options. */ + and options. */ memcpy (p, javac, strlen (javac)); p += strlen (javac); memcpy (p, " --version", 1 + 9 + 1); p += 1 + 9 + 1; /* Ensure command_length was correctly calculated. */ if (p - command > command_length) - abort (); + abort (); /* Call $JAVAC --version 2>/dev/null. */ argv[0] = "/bin/sh"; @@ -663,35 +664,36 @@ argv[2] = command; argv[3] = NULL; child = create_pipe_in (javac, "/bin/sh", argv, DEV_NULL, true, true, - false, fd); + false, fd); if (child == -1) - goto failed; + goto failed; /* Retrieve its result. */ fp = fdopen (fd[0], "r"); if (fp == NULL) - goto failed; + goto failed; line = NULL; linesize = 0; linelen = getline (&line, &linesize, fp); if (linelen == (size_t)(-1)) - { - fclose (fp); - goto failed; - } + { + fclose (fp); + goto failed; + } p = line; while (*p != '\0' && !(*p >= '0' && *p <= '9')) - p++; + p++; envjavac_gcj43 = !(*p == '4' && p[1] == '.' && p[2] >= '0' && p[2] <= '2') - && (*p >= '4' && *p <= '9'); + && (*p >= '4' && *p <= '9'); fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, javac, true, true, true, false); + exitstatus = + wait_subprocess (child, javac, true, true, true, false, NULL); if (exitstatus != 0) - envjavac_gcj43 = false; + envjavac_gcj43 = false; failed: freea (command); @@ -707,10 +709,10 @@ Return a failure indicator (true upon error). */ static bool is_envjavac_gcj43_usable (const char *javac, - const char *source_version, - const char *target_version, - bool *usablep, - bool *fsource_option_p, bool *ftarget_option_p) + const char *source_version, + const char *target_version, + bool *usablep, + bool *fsource_option_p, bool *ftarget_option_p) { /* The cache depends on the source_version and target_version. */ struct result_t @@ -724,7 +726,7 @@ struct result_t *resultp; resultp = &result_cache[source_version_index (source_version)] - [target_version_index (target_version)]; + [target_version_index (target_version)]; if (!resultp->tested) { /* Try $JAVAC. */ @@ -736,122 +738,122 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet (source_version))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet (source_version))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_envjavac (javac, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* $JAVAC compiled conftest.java successfully. */ - /* Try adding -fsource option if it is useful. */ - char *javac_source = - xasprintf ("%s -fsource=%s", javac, source_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_source, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, failcode)) - { - free (conftest_file_name); - free (javac_source); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac, - java_sources, 1, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_envjavac (javac_source, - java_sources, 1, - tmpdir->dir_name, - false, false, false, true)) - /* $JAVAC compiled conftestfail.java successfully, and - "$JAVAC -fsource=$source_version" rejects it. So - the -fsource option is useful. */ - resultp->fsource_option = true; - } - } - } + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* $JAVAC compiled conftest.java successfully. */ + /* Try adding -fsource option if it is useful. */ + char *javac_source = + xasprintf ("%s -fsource=%s", javac, source_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_source, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, failcode)) + { + free (conftest_file_name); + free (javac_source); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac, + java_sources, 1, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_envjavac (javac_source, + java_sources, 1, + tmpdir->dir_name, + false, false, false, true)) + /* $JAVAC compiled conftestfail.java successfully, and + "$JAVAC -fsource=$source_version" rejects it. So + the -fsource option is useful. */ + resultp->fsource_option = true; + } + } + } - free (javac_source); + free (javac_source); - resultp->usable = true; - } + resultp->usable = true; + } else - { - /* Try with -fsource and -ftarget options. */ - char *javac_target = - xasprintf ("%s -fsource=%s -ftarget=%s", - javac, source_version, target_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_target, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "$JAVAC -fsource $source_version -ftarget $target_version" - compiled conftest.java successfully. */ - resultp->fsource_option = true; - resultp->ftarget_option = true; - resultp->usable = true; - } + { + /* Try with -fsource and -ftarget options. */ + char *javac_target = + xasprintf ("%s -fsource=%s -ftarget=%s", + javac, source_version, target_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_target, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "$JAVAC -fsource $source_version -ftarget $target_version" + compiled conftest.java successfully. */ + resultp->fsource_option = true; + resultp->ftarget_option = true; + resultp->usable = true; + } - free (javac_target); - } + free (javac_target); + } free (compiled_file_name); free (conftest_file_name); @@ -885,28 +887,28 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet ("1.4"))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet ("1.4"))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_envjavac (javac, java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - envjavac_usable = true; + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + envjavac_usable = true; free (compiled_file_name); free (conftest_file_name); @@ -925,7 +927,7 @@ Return a failure indicator (true upon error). */ static bool is_envjavac_oldgcj_14_13_usable (const char *javac, - bool *usablep, bool *need_no_assert_option_p) + bool *usablep, bool *need_no_assert_option_p) { static bool envjavac_tested; static bool envjavac_usable; @@ -934,7 +936,7 @@ if (!envjavac_tested) { /* Try $JAVAC and "$JAVAC -fno-assert". But add -fno-assert only if - it makes a difference. (It could already be part of $JAVAC.) */ + it makes a difference. (It could already be part of $JAVAC.) */ struct temp_dir *tmpdir; char *conftest_file_name; char *compiled_file_name; @@ -946,31 +948,31 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet ("1.3"))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet ("1.3"))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_envjavac (javac, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - javac_works = true; + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + javac_works = true; else - javac_works = false; + javac_works = false; unlink (compiled_file_name); @@ -978,71 +980,71 @@ java_sources[0] = conftest_file_name; if (!compile_using_envjavac (javac_noassert, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - javac_noassert_works = true; + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + javac_noassert_works = true; else - javac_noassert_works = false; + javac_noassert_works = false; free (compiled_file_name); free (conftest_file_name); if (javac_works && javac_noassert_works) - { - conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, - get_failcode_snippet ("1.3"))) - { - free (conftest_file_name); - free (javac_noassert); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - /* Compilation succeeded. */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!(!compile_using_envjavac (javac_noassert, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0)) - /* Compilation failed. */ - /* "$JAVAC -fno-assert" works better than $JAVAC. */ - javac_works = true; - } - - free (compiled_file_name); - free (conftest_file_name); - } + { + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, + get_failcode_snippet ("1.3"))) + { + free (conftest_file_name); + free (javac_noassert); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + /* Compilation succeeded. */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!(!compile_using_envjavac (javac_noassert, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0)) + /* Compilation failed. */ + /* "$JAVAC -fno-assert" works better than $JAVAC. */ + javac_works = true; + } + + free (compiled_file_name); + free (conftest_file_name); + } cleanup_temp_dir (tmpdir); if (javac_works) - { - envjavac_usable = true; - envjavac_need_no_assert_option = false; - } + { + envjavac_usable = true; + envjavac_need_no_assert_option = false; + } else if (javac_noassert_works) - { - envjavac_usable = true; - envjavac_need_no_assert_option = true; - } + { + envjavac_usable = true; + envjavac_need_no_assert_option = true; + } envjavac_tested = true; } @@ -1057,10 +1059,10 @@ Return a failure indicator (true upon error). */ static bool is_envjavac_nongcj_usable (const char *javac, - const char *source_version, - const char *target_version, - bool *usablep, - bool *source_option_p, bool *target_option_p) + const char *source_version, + const char *target_version, + bool *usablep, + bool *source_option_p, bool *target_option_p) { /* The cache depends on the source_version and target_version. */ struct result_t @@ -1074,7 +1076,7 @@ struct result_t *resultp; resultp = &result_cache[source_version_index (source_version)] - [target_version_index (target_version)]; + [target_version_index (target_version)]; if (!resultp->tested) { /* Try $JAVAC. */ @@ -1086,215 +1088,215 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet (source_version))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet (source_version))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_envjavac (javac, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* $JAVAC compiled conftest.java successfully. */ - /* Try adding -source option if it is useful. */ - char *javac_source = - xasprintf ("%s -source %s", javac, source_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_source, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, failcode)) - { - free (conftest_file_name); - free (javac_source); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac, - java_sources, 1, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_envjavac (javac_source, - java_sources, 1, - tmpdir->dir_name, - false, false, false, true)) - /* $JAVAC compiled conftestfail.java successfully, and - "$JAVAC -source $source_version" rejects it. So the - -source option is useful. */ - resultp->source_option = true; - } - } - } + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* $JAVAC compiled conftest.java successfully. */ + /* Try adding -source option if it is useful. */ + char *javac_source = + xasprintf ("%s -source %s", javac, source_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_source, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, failcode)) + { + free (conftest_file_name); + free (javac_source); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac, + java_sources, 1, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_envjavac (javac_source, + java_sources, 1, + tmpdir->dir_name, + false, false, false, true)) + /* $JAVAC compiled conftestfail.java successfully, and + "$JAVAC -source $source_version" rejects it. So the + -source option is useful. */ + resultp->source_option = true; + } + } + } - free (javac_source); + free (javac_source); - resultp->usable = true; - } + resultp->usable = true; + } else - { - /* Try with -target option alone. (Sun javac 1.3.1 has the -target - option but no -source option.) */ - char *javac_target = - xasprintf ("%s -target %s", javac, target_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_target, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "$JAVAC -target $target_version" compiled conftest.java - successfully. */ - /* Try adding -source option if it is useful. */ - char *javac_target_source = - xasprintf ("%s -source %s", javac_target, source_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_target_source, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, - failcode)) - { - free (conftest_file_name); - free (javac_target_source); - free (javac_target); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_target, - java_sources, 1, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_envjavac (javac_target_source, - java_sources, 1, - tmpdir->dir_name, - false, false, false, - true)) - /* "$JAVAC -target $target_version" compiled - conftestfail.java successfully, and - "$JAVAC -target $target_version -source $source_version" - rejects it. So the -source option is useful. */ - resultp->source_option = true; - } - } - } - - free (javac_target_source); - - resultp->target_option = true; - resultp->usable = true; - } - else - { - /* Maybe this -target option requires a -source option? Try with - -target and -source options. (Supported by Sun javac 1.4 and - higher.) */ - char *javac_target_source = - xasprintf ("%s -source %s", javac_target, source_version); - - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_envjavac (javac_target_source, - java_sources, 1, tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "$JAVAC -target $target_version -source $source_version" - compiled conftest.java successfully. */ - resultp->source_option = true; - resultp->target_option = true; - resultp->usable = true; - } + { + /* Try with -target option alone. (Sun javac 1.3.1 has the -target + option but no -source option.) */ + char *javac_target = + xasprintf ("%s -target %s", javac, target_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_target, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "$JAVAC -target $target_version" compiled conftest.java + successfully. */ + /* Try adding -source option if it is useful. */ + char *javac_target_source = + xasprintf ("%s -source %s", javac_target, source_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_target_source, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, + failcode)) + { + free (conftest_file_name); + free (javac_target_source); + free (javac_target); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_target, + java_sources, 1, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_envjavac (javac_target_source, + java_sources, 1, + tmpdir->dir_name, + false, false, false, + true)) + /* "$JAVAC -target $target_version" compiled + conftestfail.java successfully, and + "$JAVAC -target $target_version -source $source_version" + rejects it. So the -source option is useful. */ + resultp->source_option = true; + } + } + } + + free (javac_target_source); + + resultp->target_option = true; + resultp->usable = true; + } + else + { + /* Maybe this -target option requires a -source option? Try with + -target and -source options. (Supported by Sun javac 1.4 and + higher.) */ + char *javac_target_source = + xasprintf ("%s -source %s", javac_target, source_version); + + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_envjavac (javac_target_source, + java_sources, 1, tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "$JAVAC -target $target_version -source $source_version" + compiled conftest.java successfully. */ + resultp->source_option = true; + resultp->target_option = true; + resultp->usable = true; + } - free (javac_target_source); - } + free (javac_target_source); + } - free (javac_target); - } + free (javac_target); + } free (compiled_file_name); free (conftest_file_name); @@ -1317,9 +1319,9 @@ if (!gcj_tested) { /* Test for presence of gcj: - "gcj --version 2> /dev/null | \ - sed -e 's,^[^0-9]*,,' -e 1q | \ - sed -e '/^3\.[01]/d' | grep '^[3-9]' > /dev/null" */ + "gcj --version 2> /dev/null | \ + sed -e 's,^[^0-9]*,,' -e 1q | \ + sed -e '/^3\.[01]/d' | grep '^[3-9]' > /dev/null" */ char *argv[3]; pid_t child; int fd[1]; @@ -1329,94 +1331,94 @@ argv[1] = "--version"; argv[2] = NULL; child = create_pipe_in ("gcj", "gcj", argv, DEV_NULL, true, true, - false, fd); + false, fd); gcj_present = false; if (child != -1) - { - /* Read the subprocess output, drop all lines except the first, - drop all characters before the first digit, and test whether - the remaining string starts with a digit >= 3, but not with - "3.0" or "3.1". */ - char c[3]; - size_t count = 0; - - while (safe_read (fd[0], &c[count], 1) > 0) - { - if (c[count] == '\n') - break; - if (count == 0) - { - if (!(c[0] >= '0' && c[0] <= '9')) - continue; - gcj_present = (c[0] >= '3'); - } - count++; - if (count == 3) - { - if (c[0] == '3' && c[1] == '.' - && (c[2] == '0' || c[2] == '1')) - gcj_present = false; - break; - } - } - while (safe_read (fd[0], &c[0], 1) > 0) - ; - - close (fd[0]); - - /* Remove zombie process from process list, and retrieve exit - status. */ - exitstatus = - wait_subprocess (child, "gcj", false, true, true, false); - if (exitstatus != 0) - gcj_present = false; - } + { + /* Read the subprocess output, drop all lines except the first, + drop all characters before the first digit, and test whether + the remaining string starts with a digit >= 3, but not with + "3.0" or "3.1". */ + char c[3]; + size_t count = 0; + + while (safe_read (fd[0], &c[count], 1) > 0) + { + if (c[count] == '\n') + break; + if (count == 0) + { + if (!(c[0] >= '0' && c[0] <= '9')) + continue; + gcj_present = (c[0] >= '3'); + } + count++; + if (count == 3) + { + if (c[0] == '3' && c[1] == '.' + && (c[2] == '0' || c[2] == '1')) + gcj_present = false; + break; + } + } + while (safe_read (fd[0], &c[0], 1) > 0) + ; + + close (fd[0]); + + /* Remove zombie process from process list, and retrieve exit + status. */ + exitstatus = + wait_subprocess (child, "gcj", false, true, true, false, NULL); + if (exitstatus != 0) + gcj_present = false; + } if (gcj_present) - { - /* See if libgcj.jar is well installed. */ - struct temp_dir *tmpdir; - - tmpdir = create_temp_dir ("java", NULL, false); - if (tmpdir == NULL) - gcj_present = false; - else - { - char *conftest_file_name; - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftestlib.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, + { + /* See if libgcj.jar is well installed. */ + struct temp_dir *tmpdir; + + tmpdir = create_temp_dir ("java", NULL, false); + if (tmpdir == NULL) + gcj_present = false; + else + { + char *conftest_file_name; + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, "conftestlib.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, "public class conftestlib {\n" " public static void main (String[] args) {\n" " }\n" "}\n")) - gcj_present = false; - else - { - char *compiled_file_name; - const char *java_sources[1]; - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestlib.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_gcj (java_sources, 1, false, - false, NULL, false, NULL, - tmpdir->dir_name, - false, false, false, true)) - gcj_present = false; - - free (compiled_file_name); - } - free (conftest_file_name); - } - cleanup_temp_dir (tmpdir); - } + gcj_present = false; + else + { + char *compiled_file_name; + const char *java_sources[1]; + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestlib.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_gcj (java_sources, 1, false, + false, NULL, false, NULL, + tmpdir->dir_name, + false, false, false, true)) + gcj_present = false; + + free (compiled_file_name); + } + free (conftest_file_name); + } + cleanup_temp_dir (tmpdir); + } gcj_tested = true; } @@ -1433,9 +1435,9 @@ if (!gcj_tested) { /* Test for presence of gcj: - "gcj --version 2> /dev/null | \ - sed -e 's,^[^0-9]*,,' -e 1q | \ - sed -e '/^4\.[012]/d' | grep '^[4-9]'" */ + "gcj --version 2> /dev/null | \ + sed -e 's,^[^0-9]*,,' -e 1q | \ + sed -e '/^4\.[012]/d' | grep '^[4-9]'" */ char *argv[3]; pid_t child; int fd[1]; @@ -1445,47 +1447,47 @@ argv[1] = "--version"; argv[2] = NULL; child = create_pipe_in ("gcj", "gcj", argv, DEV_NULL, true, true, - false, fd); + false, fd); gcj_43 = false; if (child != -1) - { - /* Read the subprocess output, drop all lines except the first, - drop all characters before the first digit, and test whether - the remaining string starts with a digit >= 4, but not with - "4.0" or "4.1" or "4.2". */ - char c[3]; - size_t count = 0; - - while (safe_read (fd[0], &c[count], 1) > 0) - { - if (c[count] == '\n') - break; - if (count == 0) - { - if (!(c[0] >= '0' && c[0] <= '9')) - continue; - gcj_43 = (c[0] >= '4'); - } - count++; - if (count == 3) - { - if (c[0] == '4' && c[1] == '.' && c[2] >= '0' && c[2] <= '2') - gcj_43 = false; - break; - } - } - while (safe_read (fd[0], &c[0], 1) > 0) - ; - - close (fd[0]); - - /* Remove zombie process from process list, and retrieve exit - status. */ - exitstatus = - wait_subprocess (child, "gcj", false, true, true, false); - if (exitstatus != 0) - gcj_43 = false; - } + { + /* Read the subprocess output, drop all lines except the first, + drop all characters before the first digit, and test whether + the remaining string starts with a digit >= 4, but not with + "4.0" or "4.1" or "4.2". */ + char c[3]; + size_t count = 0; + + while (safe_read (fd[0], &c[count], 1) > 0) + { + if (c[count] == '\n') + break; + if (count == 0) + { + if (!(c[0] >= '0' && c[0] <= '9')) + continue; + gcj_43 = (c[0] >= '4'); + } + count++; + if (count == 3) + { + if (c[0] == '4' && c[1] == '.' && c[2] >= '0' && c[2] <= '2') + gcj_43 = false; + break; + } + } + while (safe_read (fd[0], &c[0], 1) > 0) + ; + + close (fd[0]); + + /* Remove zombie process from process list, and retrieve exit + status. */ + exitstatus = + wait_subprocess (child, "gcj", false, true, true, false, NULL); + if (exitstatus != 0) + gcj_43 = false; + } gcj_tested = true; } @@ -1498,9 +1500,9 @@ Return a failure indicator (true upon error). */ static bool is_gcj43_usable (const char *source_version, - const char *target_version, - bool *usablep, - bool *fsource_option_p, bool *ftarget_option_p) + const char *target_version, + bool *usablep, + bool *fsource_option_p, bool *ftarget_option_p) { /* The cache depends on the source_version and target_version. */ struct result_t @@ -1514,7 +1516,7 @@ struct result_t *resultp; resultp = &result_cache[source_version_index (source_version)] - [target_version_index (target_version)]; + [target_version_index (target_version)]; if (!resultp->tested) { /* Try gcj. */ @@ -1526,112 +1528,112 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet (source_version))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet (source_version))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_gcj (java_sources, 1, false, false, NULL, false, NULL, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* gcj compiled conftest.java successfully. */ - /* Try adding -fsource option if it is useful. */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_gcj (java_sources, 1, - false, true, source_version, false, NULL, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, failcode)) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_gcj (java_sources, 1, - false, false, NULL, false, NULL, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_gcj (java_sources, 1, - false, true, source_version, - false, NULL, - tmpdir->dir_name, - false, false, false, true)) - /* gcj compiled conftestfail.java successfully, and - "gcj -fsource=$source_version" rejects it. So - the -fsource option is useful. */ - resultp->fsource_option = true; - } - } - } + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* gcj compiled conftest.java successfully. */ + /* Try adding -fsource option if it is useful. */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_gcj (java_sources, 1, + false, true, source_version, false, NULL, + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, failcode)) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_gcj (java_sources, 1, + false, false, NULL, false, NULL, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_gcj (java_sources, 1, + false, true, source_version, + false, NULL, + tmpdir->dir_name, + false, false, false, true)) + /* gcj compiled conftestfail.java successfully, and + "gcj -fsource=$source_version" rejects it. So + the -fsource option is useful. */ + resultp->fsource_option = true; + } + } + } - resultp->usable = true; - } + resultp->usable = true; + } else - { - /* Try with -fsource and -ftarget options. */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_gcj (java_sources, 1, - false, true, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "gcj -fsource $source_version -ftarget $target_version" - compiled conftest.java successfully. */ - resultp->fsource_option = true; - resultp->ftarget_option = true; - resultp->usable = true; - } - } + { + /* Try with -fsource and -ftarget options. */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_gcj (java_sources, 1, + false, true, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "gcj -fsource $source_version -ftarget $target_version" + compiled conftest.java successfully. */ + resultp->fsource_option = true; + resultp->ftarget_option = true; + resultp->usable = true; + } + } free (compiled_file_name); free (conftest_file_name); @@ -1665,28 +1667,28 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet ("1.4"))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet ("1.4"))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_gcj (java_sources, 1, false, false, NULL, false, NULL, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - gcj_usable = true; + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + gcj_usable = true; free (compiled_file_name); free (conftest_file_name); @@ -1713,7 +1715,7 @@ if (!gcj_tested) { /* Try gcj and "gcj -fno-assert". But add -fno-assert only if - it works (not gcj < 3.3). */ + it works (not gcj < 3.3). */ struct temp_dir *tmpdir; char *conftest_file_name; char *compiled_file_name; @@ -1722,46 +1724,46 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet ("1.3"))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet ("1.3"))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_gcj (java_sources, 1, true, false, NULL, false, NULL, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - { - gcj_usable = true; - gcj_need_no_assert_option = true; - } + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + { + gcj_usable = true; + gcj_need_no_assert_option = true; + } else - { - unlink (compiled_file_name); + { + unlink (compiled_file_name); - java_sources[0] = conftest_file_name; - if (!compile_using_gcj (java_sources, 1, false, - false, NULL, false, NULL, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - /* Compilation succeeded. */ - { - gcj_usable = true; - gcj_need_no_assert_option = false; - } - } + java_sources[0] = conftest_file_name; + if (!compile_using_gcj (java_sources, 1, false, + false, NULL, false, NULL, + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + /* Compilation succeeded. */ + { + gcj_usable = true; + gcj_need_no_assert_option = false; + } + } free (compiled_file_name); free (conftest_file_name); @@ -1791,7 +1793,7 @@ argv[0] = "javac"; argv[1] = NULL; exitstatus = execute ("javac", "javac", argv, false, false, true, true, - true, false); + true, false, NULL); javac_present = (exitstatus == 0 || exitstatus == 1 || exitstatus == 2); javac_tested = true; } @@ -1804,7 +1806,7 @@ Return a failure indicator (true upon error). */ static bool is_javac_usable (const char *source_version, const char *target_version, - bool *usablep, bool *source_option_p, bool *target_option_p) + bool *usablep, bool *source_option_p, bool *target_option_p) { /* The cache depends on the source_version and target_version. */ struct result_t @@ -1818,7 +1820,7 @@ struct result_t *resultp; resultp = &result_cache[source_version_index (source_version)] - [target_version_index (target_version)]; + [target_version_index (target_version)]; if (!resultp->tested) { /* Try javac. */ @@ -1830,203 +1832,203 @@ tmpdir = create_temp_dir ("java", NULL, false); if (tmpdir == NULL) - return true; + return true; conftest_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.java", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.java", NULL); if (write_temp_file (tmpdir, conftest_file_name, - get_goodcode_snippet (source_version))) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } + get_goodcode_snippet (source_version))) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } compiled_file_name = - concatenated_filename (tmpdir->dir_name, "conftest.class", NULL); + xconcatenated_filename (tmpdir->dir_name, "conftest.class", NULL); register_temp_file (tmpdir, compiled_file_name); java_sources[0] = conftest_file_name; if (!compile_using_javac (java_sources, 1, - false, source_version, - false, target_version, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* javac compiled conftest.java successfully. */ - /* Try adding -source option if it is useful. */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - true, source_version, - false, target_version, - tmpdir->dir_name, false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, failcode)) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - false, source_version, - false, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_javac (java_sources, 1, - true, source_version, - false, target_version, - tmpdir->dir_name, - false, false, false, true)) - /* javac compiled conftestfail.java successfully, and - "javac -source $source_version" rejects it. So the - -source option is useful. */ - resultp->source_option = true; - } - } - } + false, source_version, + false, target_version, + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* javac compiled conftest.java successfully. */ + /* Try adding -source option if it is useful. */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + true, source_version, + false, target_version, + tmpdir->dir_name, false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, failcode)) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + false, source_version, + false, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_javac (java_sources, 1, + true, source_version, + false, target_version, + tmpdir->dir_name, + false, false, false, true)) + /* javac compiled conftestfail.java successfully, and + "javac -source $source_version" rejects it. So the + -source option is useful. */ + resultp->source_option = true; + } + } + } - resultp->usable = true; - } + resultp->usable = true; + } else - { - /* Try with -target option alone. (Sun javac 1.3.1 has the -target - option but no -source option.) */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - false, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "javac -target $target_version" compiled conftest.java - successfully. */ - /* Try adding -source option if it is useful. */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - true, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - const char *failcode = get_failcode_snippet (source_version); - - if (failcode != NULL) - { - free (compiled_file_name); - free (conftest_file_name); - - conftest_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.java", - NULL); - if (write_temp_file (tmpdir, conftest_file_name, - failcode)) - { - free (conftest_file_name); - cleanup_temp_dir (tmpdir); - return true; - } - - compiled_file_name = - concatenated_filename (tmpdir->dir_name, - "conftestfail.class", - NULL); - register_temp_file (tmpdir, compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - false, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0) - { - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (compile_using_javac (java_sources, 1, - true, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true)) - /* "javac -target $target_version" compiled - conftestfail.java successfully, and - "javac -target $target_version -source $source_version" - rejects it. So the -source option is useful. */ - resultp->source_option = true; - } - } - } - - resultp->target_option = true; - resultp->usable = true; - } - else - { - /* Maybe this -target option requires a -source option? Try with - -target and -source options. (Supported by Sun javac 1.4 and - higher.) */ - unlink (compiled_file_name); - - java_sources[0] = conftest_file_name; - if (!compile_using_javac (java_sources, 1, - true, source_version, - true, target_version, - tmpdir->dir_name, - false, false, false, true) - && stat (compiled_file_name, &statbuf) >= 0 - && get_classfile_version (compiled_file_name) - <= corresponding_classfile_version (target_version)) - { - /* "javac -target $target_version -source $source_version" - compiled conftest.java successfully. */ - resultp->source_option = true; - resultp->target_option = true; - resultp->usable = true; - } - } - } + { + /* Try with -target option alone. (Sun javac 1.3.1 has the -target + option but no -source option.) */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + false, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "javac -target $target_version" compiled conftest.java + successfully. */ + /* Try adding -source option if it is useful. */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + true, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + const char *failcode = get_failcode_snippet (source_version); + + if (failcode != NULL) + { + free (compiled_file_name); + free (conftest_file_name); + + conftest_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.java", + NULL); + if (write_temp_file (tmpdir, conftest_file_name, + failcode)) + { + free (conftest_file_name); + cleanup_temp_dir (tmpdir); + return true; + } + + compiled_file_name = + xconcatenated_filename (tmpdir->dir_name, + "conftestfail.class", + NULL); + register_temp_file (tmpdir, compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + false, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0) + { + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (compile_using_javac (java_sources, 1, + true, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true)) + /* "javac -target $target_version" compiled + conftestfail.java successfully, and + "javac -target $target_version -source $source_version" + rejects it. So the -source option is useful. */ + resultp->source_option = true; + } + } + } + + resultp->target_option = true; + resultp->usable = true; + } + else + { + /* Maybe this -target option requires a -source option? Try with + -target and -source options. (Supported by Sun javac 1.4 and + higher.) */ + unlink (compiled_file_name); + + java_sources[0] = conftest_file_name; + if (!compile_using_javac (java_sources, 1, + true, source_version, + true, target_version, + tmpdir->dir_name, + false, false, false, true) + && stat (compiled_file_name, &statbuf) >= 0 + && get_classfile_version (compiled_file_name) + <= corresponding_classfile_version (target_version)) + { + /* "javac -target $target_version -source $source_version" + compiled conftest.java successfully. */ + resultp->source_option = true; + resultp->target_option = true; + resultp->usable = true; + } + } + } free (compiled_file_name); free (conftest_file_name); @@ -2055,7 +2057,7 @@ argv[0] = "jikes"; argv[1] = NULL; exitstatus = execute ("jikes", "jikes", argv, false, false, true, true, - true, false); + true, false, NULL); jikes_present = (exitstatus == 0 || exitstatus == 1); jikes_tested = true; } @@ -2067,15 +2069,15 @@ bool compile_java_class (const char * const *java_sources, - unsigned int java_sources_count, - const char * const *classpaths, - unsigned int classpaths_count, - const char *source_version, - const char *target_version, - const char *directory, - bool optimize, bool debug, - bool use_minimal_classpath, - bool verbose) + unsigned int java_sources_count, + const char * const *classpaths, + unsigned int classpaths_count, + const char *source_version, + const char *target_version, + const char *directory, + bool optimize, bool debug, + bool use_minimal_classpath, + bool verbose) { bool err = false; char *old_JAVA_HOME; @@ -2084,106 +2086,106 @@ const char *javac = getenv ("JAVAC"); if (javac != NULL && javac[0] != '\0') { - bool usable = false; - bool no_assert_option = false; - bool source_option = false; - bool target_option = false; - bool fsource_option = false; - bool ftarget_option = false; - - if (target_version == NULL) - target_version = default_target_version (); - - if (is_envjavac_gcj (javac)) - { - /* It's a version of gcj. */ - if (is_envjavac_gcj43 (javac)) - { - /* It's a version of gcj >= 4.3. Assume the classfile versions - are correct. */ - if (is_envjavac_gcj43_usable (javac, - source_version, target_version, - &usable, - &fsource_option, &ftarget_option)) - { - err = true; - goto done1; - } - } - else - { - /* It's a version of gcj < 4.3. Ignore the version of the - class files that it creates. */ - if (strcmp (target_version, "1.4") == 0 - && strcmp (source_version, "1.4") == 0) - { - if (is_envjavac_oldgcj_14_14_usable (javac, &usable)) - { - err = true; - goto done1; - } - } - else if (strcmp (target_version, "1.4") == 0 - && strcmp (source_version, "1.3") == 0) - { - if (is_envjavac_oldgcj_14_13_usable (javac, - &usable, - &no_assert_option)) - { - err = true; - goto done1; - } - } - } - } - else - { - /* It's not gcj. Assume the classfile versions are correct. */ - if (is_envjavac_nongcj_usable (javac, - source_version, target_version, - &usable, - &source_option, &target_option)) - { - err = true; - goto done1; - } - } - - if (usable) - { - char *old_classpath; - char *javac_with_options; - - /* Set CLASSPATH. */ - old_classpath = - set_classpath (classpaths, classpaths_count, false, verbose); - - javac_with_options = - (no_assert_option - ? xasprintf ("%s -fno-assert", javac) - : xasprintf ("%s%s%s%s%s%s%s%s%s", - javac, - source_option ? " -source " : "", - source_option ? source_version : "", - target_option ? " -target " : "", - target_option ? target_version : "", - fsource_option ? " -fsource=" : "", - fsource_option ? source_version : "", - ftarget_option ? " -ftarget=" : "", - ftarget_option ? target_version : "")); - - err = compile_using_envjavac (javac_with_options, - java_sources, java_sources_count, - directory, optimize, debug, verbose, - false); + bool usable = false; + bool no_assert_option = false; + bool source_option = false; + bool target_option = false; + bool fsource_option = false; + bool ftarget_option = false; + + if (target_version == NULL) + target_version = default_target_version (); + + if (is_envjavac_gcj (javac)) + { + /* It's a version of gcj. */ + if (is_envjavac_gcj43 (javac)) + { + /* It's a version of gcj >= 4.3. Assume the classfile versions + are correct. */ + if (is_envjavac_gcj43_usable (javac, + source_version, target_version, + &usable, + &fsource_option, &ftarget_option)) + { + err = true; + goto done1; + } + } + else + { + /* It's a version of gcj < 4.3. Ignore the version of the + class files that it creates. */ + if (strcmp (target_version, "1.4") == 0 + && strcmp (source_version, "1.4") == 0) + { + if (is_envjavac_oldgcj_14_14_usable (javac, &usable)) + { + err = true; + goto done1; + } + } + else if (strcmp (target_version, "1.4") == 0 + && strcmp (source_version, "1.3") == 0) + { + if (is_envjavac_oldgcj_14_13_usable (javac, + &usable, + &no_assert_option)) + { + err = true; + goto done1; + } + } + } + } + else + { + /* It's not gcj. Assume the classfile versions are correct. */ + if (is_envjavac_nongcj_usable (javac, + source_version, target_version, + &usable, + &source_option, &target_option)) + { + err = true; + goto done1; + } + } + + if (usable) + { + char *old_classpath; + char *javac_with_options; + + /* Set CLASSPATH. */ + old_classpath = + set_classpath (classpaths, classpaths_count, false, verbose); + + javac_with_options = + (no_assert_option + ? xasprintf ("%s -fno-assert", javac) + : xasprintf ("%s%s%s%s%s%s%s%s%s", + javac, + source_option ? " -source " : "", + source_option ? source_version : "", + target_option ? " -target " : "", + target_option ? target_version : "", + fsource_option ? " -fsource=" : "", + fsource_option ? source_version : "", + ftarget_option ? " -ftarget=" : "", + ftarget_option ? target_version : "")); + + err = compile_using_envjavac (javac_with_options, + java_sources, java_sources_count, + directory, optimize, debug, verbose, + false); - free (javac_with_options); + free (javac_with_options); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - goto done1; - } + goto done1; + } } } @@ -2204,68 +2206,68 @@ bool ftarget_option = false; if (target_version == NULL) - target_version = default_target_version (); + target_version = default_target_version (); if (is_gcj_43 ()) - { - /* It's a version of gcj >= 4.3. Assume the classfile versions - are correct. */ - if (is_gcj43_usable (source_version, target_version, - &usable, &fsource_option, &ftarget_option)) - { - err = true; - goto done1; - } - } + { + /* It's a version of gcj >= 4.3. Assume the classfile versions + are correct. */ + if (is_gcj43_usable (source_version, target_version, + &usable, &fsource_option, &ftarget_option)) + { + err = true; + goto done1; + } + } else - { - /* It's a version of gcj < 4.3. Ignore the version of the class - files that it creates. - Test whether it supports the desired target-version and - source-version. */ - if (strcmp (target_version, "1.4") == 0 - && strcmp (source_version, "1.4") == 0) - { - if (is_oldgcj_14_14_usable (&usable)) - { - err = true; - goto done1; - } - } - else if (strcmp (target_version, "1.4") == 0 - && strcmp (source_version, "1.3") == 0) - { - if (is_oldgcj_14_13_usable (&usable, &no_assert_option)) - { - err = true; - goto done1; - } - } - } + { + /* It's a version of gcj < 4.3. Ignore the version of the class + files that it creates. + Test whether it supports the desired target-version and + source-version. */ + if (strcmp (target_version, "1.4") == 0 + && strcmp (source_version, "1.4") == 0) + { + if (is_oldgcj_14_14_usable (&usable)) + { + err = true; + goto done1; + } + } + else if (strcmp (target_version, "1.4") == 0 + && strcmp (source_version, "1.3") == 0) + { + if (is_oldgcj_14_13_usable (&usable, &no_assert_option)) + { + err = true; + goto done1; + } + } + } if (usable) - { - char *old_classpath; + { + char *old_classpath; - /* Set CLASSPATH. We could also use the --CLASSPATH=... option - of gcj. Note that --classpath=... option is different: its - argument should also contain gcj's libgcj.jar, but we don't - know its location. */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - err = compile_using_gcj (java_sources, java_sources_count, - no_assert_option, - fsource_option, source_version, - ftarget_option, target_version, - directory, optimize, debug, verbose, false); + /* Set CLASSPATH. We could also use the --CLASSPATH=... option + of gcj. Note that --classpath=... option is different: its + argument should also contain gcj's libgcj.jar, but we don't + know its location. */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + err = compile_using_gcj (java_sources, java_sources_count, + no_assert_option, + fsource_option, source_version, + ftarget_option, target_version, + directory, optimize, debug, verbose, false); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - goto done2; - } + goto done2; + } } if (is_javac_present ()) @@ -2275,67 +2277,67 @@ bool target_option = false; if (target_version == NULL) - target_version = default_target_version (); + target_version = default_target_version (); if (is_javac_usable (source_version, target_version, - &usable, &source_option, &target_option)) - { - err = true; - goto done1; - } + &usable, &source_option, &target_option)) + { + err = true; + goto done1; + } if (usable) - { - char *old_classpath; + { + char *old_classpath; - /* Set CLASSPATH. We don't use the "-classpath ..." option because - in JDK 1.1.x its argument should also contain the JDK's - classes.zip, but we don't know its location. (In JDK 1.3.0 it - would work.) */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - err = compile_using_javac (java_sources, java_sources_count, - source_option, source_version, - target_option, target_version, - directory, optimize, debug, verbose, - false); + /* Set CLASSPATH. We don't use the "-classpath ..." option because + in JDK 1.1.x its argument should also contain the JDK's + classes.zip, but we don't know its location. (In JDK 1.3.0 it + would work.) */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + err = compile_using_javac (java_sources, java_sources_count, + source_option, source_version, + target_option, target_version, + directory, optimize, debug, verbose, + false); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - goto done2; - } + goto done2; + } } if (is_jikes_present ()) { /* Test whether it supports the desired target-version and - source-version. */ + source-version. */ bool usable = (strcmp (source_version, "1.3") == 0); if (usable) - { - char *old_classpath; + { + char *old_classpath; - /* Set CLASSPATH. We could also use the "-classpath ..." option. - Since jikes doesn't come with its own standard library, it - needs a classes.zip or rt.jar or libgcj.jar in the CLASSPATH. - To increase the chance of success, we reuse the current CLASSPATH - if the user has set it. */ - old_classpath = - set_classpath (classpaths, classpaths_count, false, verbose); - - err = compile_using_jikes (java_sources, java_sources_count, - directory, optimize, debug, verbose, - false); + /* Set CLASSPATH. We could also use the "-classpath ..." option. + Since jikes doesn't come with its own standard library, it + needs a classes.zip or rt.jar or libgcj.jar in the CLASSPATH. + To increase the chance of success, we reuse the current CLASSPATH + if the user has set it. */ + old_classpath = + set_classpath (classpaths, classpaths_count, false, verbose); + + err = compile_using_jikes (java_sources, java_sources_count, + directory, optimize, debug, verbose, + false); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - goto done2; - } + goto done2; + } } error (0, 0, _("Java compiler not found, try installing gcj or set $JAVAC")); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javacomp.h gettext-0.18.1.1/gettext-tools/gnulib-lib/javacomp.h --- gettext-0.17/gettext-tools/gnulib-lib/javacomp.h 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javacomp.h 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Compile a Java program. - Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -36,7 +36,7 @@ 1.4 48.0 1.5 49.0 1.6 50.0 - target_version can also be given as NULL. In this case, the required + target_version can also be given as NULL. In this case, the required target_version is determined from the found JVM (see javaversion.h). Specifying target_version is useful when building a library (.jar) that is useful outside the given package. Passing target_version = NULL is useful @@ -62,14 +62,14 @@ If verbose, the command to be executed will be printed. Return false if OK, true on error. */ extern bool compile_java_class (const char * const *java_sources, - unsigned int java_sources_count, - const char * const *classpaths, - unsigned int classpaths_count, - const char *source_version, - const char *target_version, - const char *directory, - bool optimize, bool debug, - bool use_minimal_classpath, - bool verbose); + unsigned int java_sources_count, + const char * const *classpaths, + unsigned int classpaths_count, + const char *source_version, + const char *target_version, + const char *directory, + bool optimize, bool debug, + bool use_minimal_classpath, + bool verbose); #endif /* _JAVACOMP_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javaexec.c gettext-0.18.1.1/gettext-tools/gnulib-lib/javaexec.c --- gettext-0.17/gettext-tools/gnulib-lib/javaexec.c 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javaexec.c 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Execute a Java program. - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ #include "classpath.h" #include "xsetenv.h" #include "sh-quote.h" -#include "filename.h" +#include "concat-filename.h" #include "xalloc.h" #include "xmalloca.h" #include "error.h" @@ -59,7 +59,7 @@ We try the Java virtual machines in the following order: 1. getenv ("JAVA"), because the user must be able to override our - preferences, + preferences, 2. "gij", because it is a completely free JVM, 3. "java", because it is a standard JVM, 4. "jre", comes last because it requires a CLASSPATH environment variable, @@ -71,13 +71,13 @@ bool execute_java_class (const char *class_name, - const char * const *classpaths, - unsigned int classpaths_count, - bool use_minimal_classpath, - const char *exe_dir, - const char * const *args, - bool verbose, bool quiet, - execute_fn *executer, void *private_data) + const char * const *classpaths, + unsigned int classpaths_count, + bool use_minimal_classpath, + const char *exe_dir, + const char * const *args, + bool verbose, bool quiet, + execute_fn *executer, void *private_data) { bool err = false; unsigned int nargs; @@ -94,26 +94,26 @@ /* First, try a class compiled to a native code executable. */ if (exe_dir != NULL) { - char *exe_pathname = concatenated_filename (exe_dir, class_name, EXEEXT); + char *exe_pathname = xconcatenated_filename (exe_dir, class_name, EXEEXT); char *old_classpath; char **argv = (char **) xmalloca ((1 + nargs + 1) * sizeof (char *)); unsigned int i; /* Set CLASSPATH. */ old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); argv[0] = exe_pathname; for (i = 0; i <= nargs; i++) - argv[1 + i] = (char *) args[i]; + argv[1 + i] = (char *) args[i]; if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } err = executer (class_name, exe_pathname, argv, private_data); @@ -129,61 +129,61 @@ const char *java = getenv ("JAVA"); if (java != NULL && java[0] != '\0') { - /* Because $JAVA may consist of a command and options, we use the - shell. Because $JAVA has been set by the user, we leave all - all environment variables in place, including JAVA_HOME, and - we don't erase the user's CLASSPATH. */ - char *old_classpath; - unsigned int command_length; - char *command; - char *argv[4]; - const char * const *arg; - char *p; - - /* Set CLASSPATH. */ - old_classpath = - set_classpath (classpaths, classpaths_count, false, - verbose); - - command_length = strlen (java); - command_length += 1 + shell_quote_length (class_name); - for (arg = args; *arg != NULL; arg++) - command_length += 1 + shell_quote_length (*arg); - command_length += 1; - - command = (char *) xmalloca (command_length); - p = command; - /* Don't shell_quote $JAVA, because it may consist of a command - and options. */ - memcpy (p, java, strlen (java)); - p += strlen (java); - *p++ = ' '; - p = shell_quote_copy (p, class_name); - for (arg = args; *arg != NULL; arg++) - { - *p++ = ' '; - p = shell_quote_copy (p, *arg); - } - *p++ = '\0'; - /* Ensure command_length was correctly calculated. */ - if (p - command > command_length) - abort (); - - if (verbose) - printf ("%s\n", command); - - argv[0] = "/bin/sh"; - argv[1] = "-c"; - argv[2] = command; - argv[3] = NULL; - err = executer (java, "/bin/sh", argv, private_data); + /* Because $JAVA may consist of a command and options, we use the + shell. Because $JAVA has been set by the user, we leave all + all environment variables in place, including JAVA_HOME, and + we don't erase the user's CLASSPATH. */ + char *old_classpath; + unsigned int command_length; + char *command; + char *argv[4]; + const char * const *arg; + char *p; + + /* Set CLASSPATH. */ + old_classpath = + set_classpath (classpaths, classpaths_count, false, + verbose); + + command_length = strlen (java); + command_length += 1 + shell_quote_length (class_name); + for (arg = args; *arg != NULL; arg++) + command_length += 1 + shell_quote_length (*arg); + command_length += 1; + + command = (char *) xmalloca (command_length); + p = command; + /* Don't shell_quote $JAVA, because it may consist of a command + and options. */ + memcpy (p, java, strlen (java)); + p += strlen (java); + *p++ = ' '; + p = shell_quote_copy (p, class_name); + for (arg = args; *arg != NULL; arg++) + { + *p++ = ' '; + p = shell_quote_copy (p, *arg); + } + *p++ = '\0'; + /* Ensure command_length was correctly calculated. */ + if (p - command > command_length) + abort (); + + if (verbose) + printf ("%s\n", command); + + argv[0] = "/bin/sh"; + argv[1] = "-c"; + argv[2] = command; + argv[3] = NULL; + err = executer (java, "/bin/sh", argv, private_data); - freea (command); + freea (command); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - goto done1; + goto done1; } } @@ -201,50 +201,50 @@ if (!gij_tested) { - /* Test for presence of gij: "gij --version > /dev/null" */ - char *argv[3]; - int exitstatus; - - argv[0] = "gij"; - argv[1] = "--version"; - argv[2] = NULL; - exitstatus = execute ("gij", "gij", argv, false, false, true, true, - true, false); - gij_present = (exitstatus == 0); - gij_tested = true; + /* Test for presence of gij: "gij --version > /dev/null" */ + char *argv[3]; + int exitstatus; + + argv[0] = "gij"; + argv[1] = "--version"; + argv[2] = NULL; + exitstatus = execute ("gij", "gij", argv, false, false, true, true, + true, false, NULL); + gij_present = (exitstatus == 0); + gij_tested = true; } if (gij_present) { - char *old_classpath; - char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); - unsigned int i; - - /* Set CLASSPATH. */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - argv[0] = "gij"; - argv[1] = (char *) class_name; - for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; - - if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + char *old_classpath; + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); + unsigned int i; + + /* Set CLASSPATH. */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + argv[0] = "gij"; + argv[1] = (char *) class_name; + for (i = 0; i <= nargs; i++) + argv[2 + i] = (char *) args[i]; + + if (verbose) + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } - err = executer ("gij", "gij", argv, private_data); + err = executer ("gij", "gij", argv, private_data); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - freea (argv); + freea (argv); - goto done2; + goto done2; } } @@ -254,52 +254,52 @@ if (!java_tested) { - /* Test for presence of java: "java -version 2> /dev/null" */ - char *argv[3]; - int exitstatus; - - argv[0] = "java"; - argv[1] = "-version"; - argv[2] = NULL; - exitstatus = execute ("java", "java", argv, false, false, true, true, - true, false); - java_present = (exitstatus == 0); - java_tested = true; + /* Test for presence of java: "java -version 2> /dev/null" */ + char *argv[3]; + int exitstatus; + + argv[0] = "java"; + argv[1] = "-version"; + argv[2] = NULL; + exitstatus = execute ("java", "java", argv, false, false, true, true, + true, false, NULL); + java_present = (exitstatus == 0); + java_tested = true; } if (java_present) { - char *old_classpath; - char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); - unsigned int i; - - /* Set CLASSPATH. We don't use the "-classpath ..." option because - in JDK 1.1.x its argument should also contain the JDK's classes.zip, - but we don't know its location. (In JDK 1.3.0 it would work.) */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - argv[0] = "java"; - argv[1] = (char *) class_name; - for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; - - if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + char *old_classpath; + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); + unsigned int i; + + /* Set CLASSPATH. We don't use the "-classpath ..." option because + in JDK 1.1.x its argument should also contain the JDK's classes.zip, + but we don't know its location. (In JDK 1.3.0 it would work.) */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + argv[0] = "java"; + argv[1] = (char *) class_name; + for (i = 0; i <= nargs; i++) + argv[2 + i] = (char *) args[i]; + + if (verbose) + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } - err = executer ("java", "java", argv, private_data); + err = executer ("java", "java", argv, private_data); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - freea (argv); + freea (argv); - goto done2; + goto done2; } } @@ -309,51 +309,51 @@ if (!jre_tested) { - /* Test for presence of jre: "jre 2> /dev/null ; test $? = 1" */ - char *argv[2]; - int exitstatus; - - argv[0] = "jre"; - argv[1] = NULL; - exitstatus = execute ("jre", "jre", argv, false, false, true, true, - true, false); - jre_present = (exitstatus == 0 || exitstatus == 1); - jre_tested = true; + /* Test for presence of jre: "jre 2> /dev/null ; test $? = 1" */ + char *argv[2]; + int exitstatus; + + argv[0] = "jre"; + argv[1] = NULL; + exitstatus = execute ("jre", "jre", argv, false, false, true, true, + true, false, NULL); + jre_present = (exitstatus == 0 || exitstatus == 1); + jre_tested = true; } if (jre_present) { - char *old_classpath; - char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); - unsigned int i; - - /* Set CLASSPATH. We don't use the "-classpath ..." option because - in JDK 1.1.x its argument should also contain the JDK's classes.zip, - but we don't know its location. */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - argv[0] = "jre"; - argv[1] = (char *) class_name; - for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; - - if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + char *old_classpath; + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); + unsigned int i; + + /* Set CLASSPATH. We don't use the "-classpath ..." option because + in JDK 1.1.x its argument should also contain the JDK's classes.zip, + but we don't know its location. */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + argv[0] = "jre"; + argv[1] = (char *) class_name; + for (i = 0; i <= nargs; i++) + argv[2 + i] = (char *) args[i]; + + if (verbose) + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } - err = executer ("jre", "jre", argv, private_data); + err = executer ("jre", "jre", argv, private_data); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - freea (argv); + freea (argv); - goto done2; + goto done2; } } @@ -365,50 +365,50 @@ if (!jview_tested) { - /* Test for presence of jview: "jview -? >nul ; test $? = 1" */ - char *argv[3]; - int exitstatus; - - argv[0] = "jview"; - argv[1] = "-?"; - argv[2] = NULL; - exitstatus = execute ("jview", "jview", argv, false, false, true, true, - true, false); - jview_present = (exitstatus == 0 || exitstatus == 1); - jview_tested = true; + /* Test for presence of jview: "jview -? >nul ; test $? = 1" */ + char *argv[3]; + int exitstatus; + + argv[0] = "jview"; + argv[1] = "-?"; + argv[2] = NULL; + exitstatus = execute ("jview", "jview", argv, false, false, true, true, + true, false, NULL); + jview_present = (exitstatus == 0 || exitstatus == 1); + jview_tested = true; } if (jview_present) { - char *old_classpath; - char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); - unsigned int i; - - /* Set CLASSPATH. */ - old_classpath = - set_classpath (classpaths, classpaths_count, use_minimal_classpath, - verbose); - - argv[0] = "jview"; - argv[1] = (char *) class_name; - for (i = 0; i <= nargs; i++) - argv[2 + i] = (char *) args[i]; - - if (verbose) - { - char *command = shell_quote_argv (argv); - printf ("%s\n", command); - free (command); - } + char *old_classpath; + char **argv = (char **) xmalloca ((2 + nargs + 1) * sizeof (char *)); + unsigned int i; + + /* Set CLASSPATH. */ + old_classpath = + set_classpath (classpaths, classpaths_count, use_minimal_classpath, + verbose); + + argv[0] = "jview"; + argv[1] = (char *) class_name; + for (i = 0; i <= nargs; i++) + argv[2 + i] = (char *) args[i]; + + if (verbose) + { + char *command = shell_quote_argv (argv); + printf ("%s\n", command); + free (command); + } - err = executer ("jview", "jview", argv, private_data); + err = executer ("jview", "jview", argv, private_data); - /* Reset CLASSPATH. */ - reset_classpath (old_classpath); + /* Reset CLASSPATH. */ + reset_classpath (old_classpath); - freea (argv); + freea (argv); - goto done2; + goto done2; } } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javaexec.h gettext-0.18.1.1/gettext-tools/gnulib-lib/javaexec.h --- gettext-0.17/gettext-tools/gnulib-lib/javaexec.h 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javaexec.h 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Execute a Java program. - Copyright (C) 2001-2002 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -21,8 +21,8 @@ #include typedef bool execute_fn (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data); + const char *prog_path, char **prog_argv, + void *private_data); /* Execute a Java class. class_name is the Java class name to be executed. @@ -39,12 +39,12 @@ Return false if OK, true on error. If quiet, error messages will not be printed. */ extern bool execute_java_class (const char *class_name, - const char * const *classpaths, - unsigned int classpaths_count, - bool use_minimal_classpath, - const char *exe_dir, - const char * const *args, - bool verbose, bool quiet, - execute_fn *executer, void *private_data); + const char * const *classpaths, + unsigned int classpaths_count, + bool use_minimal_classpath, + const char *exe_dir, + const char * const *args, + bool verbose, bool quiet, + execute_fn *executer, void *private_data); #endif /* _JAVAEXEC_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javaversion.c gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.c --- gettext-0.17/gettext-tools/gnulib-lib/javaversion.c 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.c 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the Java version supported by javaexec. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -30,9 +30,6 @@ # define relocate(pathname) (pathname) #endif -/* Get PKGDATADIR. */ -#include "configmake.h" - #include "javaexec.h" #include "pipe.h" #include "wait-process.h" @@ -41,6 +38,9 @@ #define _(str) gettext (str) +/* Get PKGDATADIR. */ +#include "configmake.h" + struct locals { @@ -50,8 +50,8 @@ static bool execute_and_read_line (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { struct locals *l = (struct locals *) private_data; pid_t child; @@ -64,7 +64,7 @@ /* Open a pipe to the JVM. */ child = create_pipe_in (progname, prog_path, prog_argv, DEV_NULL, false, - true, false, fd); + true, false, fd); if (child == -1) return false; @@ -90,7 +90,8 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, progname, true, false, true, false); + exitstatus = + wait_subprocess (child, progname, true, false, true, false, NULL); if (exitstatus != 0) { free (line); @@ -112,7 +113,7 @@ args[0] = NULL; locals.line = NULL; execute_java_class (class_name, &pkgdatadir, 1, true, NULL, args, - false, false, execute_and_read_line, &locals); + false, false, execute_and_read_line, &locals); return locals.line; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javaversion.h gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.h --- gettext-0.17/gettext-tools/gnulib-lib/javaversion.h 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.h 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the Java version supported by javaexec. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/javaversion.java gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.java --- gettext-0.17/gettext-tools/gnulib-lib/javaversion.java 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/javaversion.java 2010-05-24 09:42:38.000000000 +0000 @@ -1,5 +1,5 @@ /* Show the Java version. - * Copyright (C) 2006 Free Software Foundation, Inc. + * Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/lbrkprop.h gettext-0.18.1.1/gettext-tools/gnulib-lib/lbrkprop.h --- gettext-0.17/gettext-tools/gnulib-lib/lbrkprop.h 2007-10-07 20:29:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/lbrkprop.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,1895 +0,0 @@ -/* Line breaking properties of Unicode characters. */ -/* Generated automatically by gen-lbrkprop for Unicode 3.1.0. */ - -/* Copyright (C) 2000-2004 Free Software Foundation, Inc. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#define lbrkprop_header_0 16 -#define lbrkprop_header_1 15 -#define lbrkprop_header_2 7 -#define lbrkprop_header_3 511 -#define lbrkprop_header_4 127 -static const -struct - { - int level1[15]; - int level2[4 << 9]; - unsigned char level3[100 << 7]; - } -lbrkprop = -{ - { 0, 512, 1024, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 1536 }, - { - 0, 128, 256, 384, 512, 640, 768, 896, - 1024, 1152, 1280, 1408, 1536, 1664, 1792, 1920, - -1, -1, 2048, 2176, 2304, 2432, 2560, 2688, - 2816, 2944, 3072, 3200, 3328, 3456, 3584, 3712, - 3840, 3968, 4096, 4224, 4352, 4480, 4608, 4736, - 4864, 4992, 4992, 4992, 5120, 5248, -1, 5376, - 5504, 5632, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 4992, 5760, 5888, 6016, - 6144, 6272, 6400, 6528, 6656, 6784, 6912, 7040, - 7168, 7296, 7424, 7552, 7680, -1, 7808, 7936, - 4992, 4992, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 8064, 8192, 8320, - 8448, 8576, 8704, 8832, 8960, 9088, 9216, 9344, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 9472, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 9600, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 9728, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 9856, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 8192, 8192, 9984, -1, 10112, 10240, - 4992, 4992, 10368, 10496, 10624, 10752, 10880, 11008, - -1, -1, -1, -1, -1, -1, 11136, -1, - 11264, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 4992, 11392, 11520, 11648, -1, -1, -1, -1, - 11776, 11904, 12032, 4992, 4992, 12160, 4992, 12288, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 12416, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 12544, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 12672, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1 - }, - { - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_BA, LBP_BK, LBP_CM, LBP_BK, LBP_BK, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_SP, LBP_EX, LBP_QU, LBP_AL, LBP_PR, LBP_PO, LBP_AL, LBP_QU, - LBP_OP, LBP_CL, LBP_AL, LBP_PR, LBP_IS, LBP_HY, LBP_IS, LBP_SY, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_IS, LBP_IS, LBP_AL, LBP_AL, LBP_AL, LBP_EX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_PR, LBP_CL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_BA, LBP_CL, LBP_AL, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BK, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_GL, LBP_AI, LBP_PO, LBP_PR, LBP_PR, LBP_PR, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AI, LBP_QU, LBP_AL, LBP_BA, LBP_AL, LBP_AL, - LBP_PO, LBP_PR, LBP_AI, LBP_AI, LBP_BB, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_QU, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_BB, LBP_AI, LBP_AI, LBP_AI, LBP_BB, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_XX, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_IS, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, - LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, - LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_CM, - LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_AL, LBP_PR, LBP_PR, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_CM, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_PR, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NS, LBP_NS, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, - LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_SA, - LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_CM, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_SA, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_GL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_CM, - LBP_AL, LBP_CM, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_CM, LBP_CM, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_NS, LBP_BA, LBP_NS, LBP_NS, - LBP_NS, LBP_NS, LBP_NS, LBP_PR, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_GL, - LBP_BA, LBP_BA, LBP_BA, LBP_ZW, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_BA, LBP_GL, LBP_BA, LBP_BA, LBP_B2, LBP_AI, LBP_AI, LBP_AL, - LBP_QU, LBP_QU, LBP_OP, LBP_QU, LBP_QU, LBP_QU, LBP_OP, LBP_QU, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_IN, LBP_IN, LBP_IN, LBP_BA, - LBP_BK, LBP_BK, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, - LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, - LBP_AL, LBP_QU, LBP_QU, LBP_AI, LBP_NS, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_OP, LBP_CL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AI, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PO, - LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_PR, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AI, LBP_PR, LBP_PR, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_CL, LBP_CL, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, - LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, - LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, - LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_NS, LBP_OP, LBP_CL, LBP_CL, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, - LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_XX, - LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, - LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, - LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_CL, LBP_ID, LBP_CL, LBP_XX, LBP_NS, LBP_NS, LBP_EX, LBP_EX, - LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_GL, - LBP_XX, LBP_EX, LBP_ID, LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_ID, - LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_CL, LBP_ID, LBP_CL, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_EX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_XX, - LBP_XX, LBP_CL, LBP_OP, LBP_CL, LBP_CL, LBP_NS, LBP_AL, LBP_NS, - LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, - LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_NS, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_PO, LBP_PR, LBP_ID, LBP_ID, LBP_ID, LBP_PR, LBP_PR, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CB, LBP_AI, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM - } -}; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-additional-sel.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-attr-sel.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-cascade.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-cascade.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-cascade.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-cascade.c 2010-05-24 09:42:38.000000000 +0000 @@ -6,7 +6,7 @@ * Copyright (C) 2002-2003 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the + * modify it under the terms of version 3 of the * GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-cascade.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-cascade.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-cascade.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-cascade.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the + * modify it under the terms of version 3 of the * GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-declaration.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-declaration.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-declaration.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-declaration.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-declaration.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-declaration.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-declaration.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-declaration.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-doc-handler.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.c 2010-05-24 09:42:38.000000000 +0000 @@ -6,7 +6,7 @@ * Copyright (C) 2002-2003 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-enc-handler.h 2010-05-24 09:42:38.000000000 +0000 @@ -6,7 +6,7 @@ * Copyright (C) 2002-2003 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-fonts.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-fonts.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-fonts.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-fonts.c 2010-05-24 09:42:38.000000000 +0000 @@ -5,7 +5,7 @@ * * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of + * modify it under the terms of version 3 of * the GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-fonts.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-fonts.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-fonts.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-fonts.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of + * modify it under the terms of version 3 of * the GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-input.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-input.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-input.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-input.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-input.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-input.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-input.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-input.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-num.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-num.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-num.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-num.c 2010-05-24 09:42:38.000000000 +0000 @@ -5,7 +5,7 @@ * * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-num.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-num.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-num.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-num.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-om-parser.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-om-parser.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-om-parser.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-om-parser.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-om-parser.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-om-parser.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-om-parser.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-om-parser.h 2010-05-24 09:42:38.000000000 +0000 @@ -6,7 +6,7 @@ * Copyright (C) 2002-2003 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parser.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parser.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parser.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parser.c 2010-05-24 09:42:38.000000000 +0000 @@ -5,7 +5,7 @@ * * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the + * modify it under the terms of version 3 of the * GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parser.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parser.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parser.h 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parser.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.c 2007-10-31 12:36:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-parsing-location.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-prop-list.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-prop-list.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-prop-list.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-prop-list.c 2010-05-24 09:42:38.000000000 +0000 @@ -2,7 +2,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-prop-list.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-prop-list.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-prop-list.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-prop-list.h 2010-05-24 09:42:38.000000000 +0000 @@ -2,7 +2,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-pseudo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-pseudo.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-pseudo.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-pseudo.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-pseudo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-pseudo.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-pseudo.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-pseudo.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-rgb.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-rgb.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-rgb.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-rgb.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-rgb.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-rgb.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-rgb.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-rgb.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-selector.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-selector.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-selector.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-selector.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-selector.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-selector.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-selector.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-selector.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-simple-sel.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-statement.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-statement.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-statement.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-statement.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-statement.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-statement.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-statement.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-statement.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-string.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-string.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-string.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-string.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-string.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-string.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-string.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-string.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-style.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-style.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-style.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-style.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of + * modify it under the terms of version 3 of * the GNU General Public * License as published by the Free Software Foundation. * diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-style.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-style.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-style.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-style.h 2010-05-24 09:42:38.000000000 +0000 @@ -5,7 +5,7 @@ * * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.c 2010-05-24 09:42:38.000000000 +0000 @@ -6,7 +6,7 @@ * Copyright (C) 2002-2004 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-stylesheet.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-term.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-term.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-term.c 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-term.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-term.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-term.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-term.h 2007-10-31 12:36:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-term.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-tknzr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-tknzr.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-tknzr.c 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-tknzr.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-tknzr.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-tknzr.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-tknzr.h 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-tknzr.h 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-token.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-token.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-token.c 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-token.c 2010-05-24 09:42:38.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-token.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-token.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-token.h 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-token.h 2010-05-24 09:42:39.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-utils.c gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-utils.c --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-utils.c 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-utils.c 2010-05-24 09:42:39.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-utils.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-utils.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/cr-utils.h 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-utils.h 2010-05-24 09:42:39.000000000 +0000 @@ -4,7 +4,7 @@ * This file is part of The Croco Library * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libcroco/libcroco.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/libcroco.h --- gettext-0.17/gettext-tools/gnulib-lib/libcroco/libcroco.h 2007-10-31 12:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/libcroco.h 2010-05-24 09:42:39.000000000 +0000 @@ -4,7 +4,7 @@ * Copyright (C) 2002-2003 Dodji Seketeli * * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU General Public + * modify it under the terms of version 3 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libunistring.valgrind gettext-0.18.1.1/gettext-tools/gnulib-lib/libunistring.valgrind --- gettext-0.17/gettext-tools/gnulib-lib/libunistring.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libunistring.valgrind 2010-05-24 09:42:39.000000000 +0000 @@ -0,0 +1,9 @@ +# Suppress valgrind messages in an installed libunistring. + +# Suppress a valgrind message about use of uninitialized memory in freea(). +# This use is OK because it provides only a speedup. +{ + libunistring_freea + Memcheck:Cond + fun:libunistring_freea +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/libxml/parser.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/libxml/parser.in.h --- gettext-0.17/gettext-tools/gnulib-lib/libxml/parser.in.h 2007-10-04 22:36:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/libxml/parser.in.h 2010-05-24 09:42:42.000000000 +0000 @@ -646,7 +646,7 @@ /************************************************************************ * * - * The SAX version 2 API extensions * + * The SAX version 3 API extensions * * * ************************************************************************/ /** @@ -731,7 +731,7 @@ cdataBlockSAXFunc cdataBlock; externalSubsetSAXFunc externalSubset; unsigned int initialized; - /* The following fields are extensions available only on version 2 */ + /* The following fields are extensions available only on version 3 */ void *_private; startElementNsSAX2Func startElementNs; endElementNsSAX2Func endElementNs; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/linebreak.c gettext-0.18.1.1/gettext-tools/gnulib-lib/linebreak.c --- gettext-0.17/gettext-tools/gnulib-lib/linebreak.c 2007-10-07 20:29:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/linebreak.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,1334 +0,0 @@ -/* linebreak.c - line breaking of Unicode strings - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "linebreak.h" - -#include -#include -#include "c-ctype.h" -#include "xsize.h" -#include "unistr.h" -#include "uniwidth.h" -#include "uniwidth/cjk.h" -#include "streq.h" - - -static int -is_utf8_encoding (const char *encoding) -{ - if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) - return 1; - return 0; -} - - -/* Determine the line break points in S, and store the result at p[0..n-1]. */ -/* We don't support line breaking of complex-context dependent characters - (Thai, Lao, Myanmar, Khmer) yet, because it requires dictionary lookup. */ - -/* Line breaking classification. */ - -enum -{ - /* Values >= 20 are resolved at run time. */ - LBP_BK = 0, /* mandatory break */ -/*LBP_CR, carriage return - not used here because it's a DOSism */ -/*LBP_LF, line feed - not used here because it's a DOSism */ - LBP_CM = 20, /* attached characters and combining marks */ -/*LBP_SG, surrogates - not used here because they are not characters */ - LBP_ZW = 1, /* zero width space */ - LBP_IN = 2, /* inseparable */ - LBP_GL = 3, /* non-breaking (glue) */ - LBP_CB = 22, /* contingent break opportunity */ - LBP_SP = 21, /* space */ - LBP_BA = 4, /* break opportunity after */ - LBP_BB = 5, /* break opportunity before */ - LBP_B2 = 6, /* break opportunity before and after */ - LBP_HY = 7, /* hyphen */ - LBP_NS = 8, /* non starter */ - LBP_OP = 9, /* opening punctuation */ - LBP_CL = 10, /* closing punctuation */ - LBP_QU = 11, /* ambiguous quotation */ - LBP_EX = 12, /* exclamation/interrogation */ - LBP_ID = 13, /* ideographic */ - LBP_NU = 14, /* numeric */ - LBP_IS = 15, /* infix separator (numeric) */ - LBP_SY = 16, /* symbols allowing breaks */ - LBP_AL = 17, /* ordinary alphabetic and symbol characters */ - LBP_PR = 18, /* prefix (numeric) */ - LBP_PO = 19, /* postfix (numeric) */ - LBP_SA = 23, /* complex context (South East Asian) */ - LBP_AI = 24, /* ambiguous (alphabetic or ideograph) */ - LBP_XX = 25 /* unknown */ -}; - -#include "lbrkprop.h" - -static inline unsigned char -lbrkprop_lookup (unsigned int uc) -{ - unsigned int index1 = uc >> lbrkprop_header_0; - if (index1 < lbrkprop_header_1) - { - int lookup1 = lbrkprop.level1[index1]; - if (lookup1 >= 0) - { - unsigned int index2 = (uc >> lbrkprop_header_2) & lbrkprop_header_3; - int lookup2 = lbrkprop.level2[lookup1 + index2]; - if (lookup2 >= 0) - { - unsigned int index3 = uc & lbrkprop_header_4; - return lbrkprop.level3[lookup2 + index3]; - } - } - } - return LBP_XX; -} - -/* Table indexed by two line breaking classifications. */ -#define D 1 /* direct break opportunity, empty in table 7.3 of UTR #14 */ -#define I 2 /* indirect break opportunity, '%' in table 7.3 of UTR #14 */ -#define P 3 /* prohibited break, '^' in table 7.3 of UTR #14 */ -static const unsigned char lbrk_table[19][19] = { - /* after */ - /* ZW IN GL BA BB B2 HY NS OP CL QU EX ID NU IS SY AL PR PO */ -/* ZW */ { P, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, }, -/* IN */ { P, I, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* GL */ { P, I, I, I, I, I, I, I, I, P, I, P, I, I, P, P, I, I, I, }, -/* BA */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* BB */ { P, I, I, I, I, I, I, I, I, P, I, P, I, I, P, P, I, I, I, }, -/* B2 */ { P, D, I, I, D, P, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* HY */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* NS */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* OP */ { P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, }, -/* CL */ { P, D, I, I, D, D, I, P, D, P, I, P, D, D, P, P, D, D, I, }, -/* QU */ { P, I, I, I, I, I, I, I, P, P, I, P, I, I, P, P, I, I, I, }, -/* EX */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* ID */ { P, I, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, I, }, -/* NU */ { P, I, I, I, D, D, I, I, D, P, I, P, D, I, P, P, I, D, I, }, -/* IS */ { P, D, I, I, D, D, I, I, D, P, I, P, D, I, P, P, D, D, D, }, -/* SY */ { P, D, I, I, D, D, I, I, D, P, I, P, D, I, P, P, D, D, D, }, -/* AL */ { P, I, I, I, D, D, I, I, D, P, I, P, D, I, P, P, I, D, D, }, -/* PR */ { P, D, I, I, D, D, I, I, I, P, I, P, I, I, P, P, I, D, D, }, -/* PO */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* "" */ -/* before */ -}; -/* Note: The (B2,B2) entry should probably be D instead of P. */ -/* Note: The (PR,ID) entry should probably be D instead of I. */ - -void -u8_possible_linebreaks (const unsigned char *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned char *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - /* Don't break inside multibyte characters. */ - memset (p, UC_BREAK_PROHIBITED, n); - - while (s < s_end) - { - unsigned int uc; - int count = u8_mbtouc_unsafe (&uc, s, s_end - s); - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s += count; - p += count; - } -} - -#ifdef unused - -void -u16_possible_linebreaks (const unsigned short *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned short *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - /* Don't break inside multibyte characters. */ - memset (p, UC_BREAK_PROHIBITED, n); - - while (s < s_end) - { - unsigned int uc; - int count = u16_mbtouc_unsafe (&uc, s, s_end - s); - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s += count; - p += count; - } -} - -void -u32_possible_linebreaks (const unsigned int *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned int *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - while (s < s_end) - { - unsigned int uc = *s; - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s++; - p++; - } -} - -#endif - - -/* Choose the best line breaks, assuming the uc_width function. - Return the column after the end of the string. */ - -int -u8_width_linebreaks (const unsigned char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned char *s_end; - char *last_p; - int last_column; - int piece_width; - - u8_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc; - int count = u8_mbtouc_unsafe (&uc, s, s_end - s); - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s += count; - p += count; - if (o != NULL) - o += count; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -#ifdef unused - -int -u16_width_linebreaks (const unsigned short *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned short *s_end; - char *last_p; - int last_column; - int piece_width; - - u16_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc; - int count = u16_mbtouc_unsafe (&uc, s, s_end - s); - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s += count; - p += count; - if (o != NULL) - o += count; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -int -u32_width_linebreaks (const unsigned int *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned int *s_end; - char *last_p; - int last_column; - int piece_width; - - u32_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc = *s; - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s++; - p++; - if (o != NULL) - o++; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -#endif - - -#ifdef TEST1 - -#include - -/* Read the contents of an input stream, and return it, terminated with a NUL - byte. */ -char * -read_file (FILE *stream) -{ -#define BUFSIZE 4096 - char *buf = NULL; - int alloc = 0; - int size = 0; - int count; - - while (! feof (stream)) - { - if (size + BUFSIZE > alloc) - { - alloc = alloc + alloc / 2; - if (alloc < size + BUFSIZE) - alloc = size + BUFSIZE; - buf = realloc (buf, alloc); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - } - count = fread (buf + size, 1, BUFSIZE, stream); - if (count == 0) - { - if (ferror (stream)) - { - perror ("fread"); - exit (1); - } - } - else - size += count; - } - buf = realloc (buf, size + 1); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - buf[size] = '\0'; - return buf; -#undef BUFSIZE -} - -int -main (int argc, char * argv[]) -{ - if (argc == 1) - { - /* Display all the break opportunities in the input string. */ - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - u8_possible_linebreaks ((unsigned char *) input, length, "UTF-8", breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - /* U+2027 in UTF-8 encoding */ - putc (0xe2, stdout); putc (0x80, stdout); putc (0xa7, stdout); - break; - case UC_BREAK_MANDATORY: - /* U+21B2 (or U+21B5) in UTF-8 encoding */ - putc (0xe2, stdout); putc (0x86, stdout); putc (0xb2, stdout); - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else if (argc == 2) - { - /* Insert line breaks for a given width. */ - int width = atoi (argv[1]); - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - u8_width_linebreaks ((unsigned char *) input, length, width, 0, 0, NULL, "UTF-8", breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('\n', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else - return 1; -} - -#endif /* TEST1 */ - - -/* Now the same thing with an arbitrary encoding. - - We convert the input string to Unicode. - - The standardized Unicode encodings are UTF-8, UCS-2, UCS-4, UTF-16, - UTF-16BE, UTF-16LE, UTF-7. UCS-2 supports only characters up to - \U0000FFFF. UTF-16 and variants support only characters up to - \U0010FFFF. UTF-7 is way too complex and not supported by glibc-2.1. - UCS-4 specification leaves doubts about endianness and byte order mark. - glibc currently interprets it as big endian without byte order mark, - but this is not backed by an RFC. So we use UTF-8. It supports - characters up to \U7FFFFFFF and is unambiguously defined. */ - -#if HAVE_ICONV - -#include -#include - -/* Luckily, the encoding's name is platform independent. */ -#define UTF8_NAME "UTF-8" - -/* Return the length of a string after conversion through an iconv_t. */ -static size_t -iconv_string_length (iconv_t cd, const char *s, size_t n) -{ -#define TMPBUFSIZE 4096 - size_t count = 0; - char tmpbuf[TMPBUFSIZE]; - const char *inptr = s; - size_t insize = n; - while (insize > 0) - { - char *outptr = tmpbuf; - size_t outsize = TMPBUFSIZE; - size_t res = iconv (cd, (ICONV_CONST char **) &inptr, &insize, &outptr, &outsize); - if (res == (size_t)(-1) && errno != E2BIG) - return (size_t)(-1); - count += outptr - tmpbuf; - } - /* Avoid glibc-2.1 bug and Solaris 7 through 9 bug. */ -#if defined _LIBICONV_VERSION \ - || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) - { - char *outptr = tmpbuf; - size_t outsize = TMPBUFSIZE; - size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); - if (res == (size_t)(-1)) - return (size_t)(-1); - count += outptr - tmpbuf; - } - /* Return to the initial state. */ - iconv (cd, NULL, NULL, NULL, NULL); -#endif - return count; -#undef TMPBUFSIZE -} - -static void -iconv_string_keeping_offsets (iconv_t cd, const char *s, size_t n, - size_t *offtable, char *t, size_t m) -{ - size_t i; - const char *s_end; - const char *inptr; - char *outptr; - size_t outsize; - /* Avoid glibc-2.1 bug. */ -#if !defined _LIBICONV_VERSION && (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) - const size_t extra = 1; -#else - const size_t extra = 0; -#endif - - for (i = 0; i < n; i++) - offtable[i] = (size_t)(-1); - - s_end = s + n; - inptr = s; - outptr = t; - outsize = m + extra; - while (inptr < s_end) - { - const char *saved_inptr; - size_t insize; - size_t res; - - offtable[inptr - s] = outptr - t; - - saved_inptr = inptr; - res = (size_t)(-1); - for (insize = 1; inptr + insize <= s_end; insize++) - { - res = iconv (cd, (ICONV_CONST char **) &inptr, &insize, &outptr, &outsize); - if (!(res == (size_t)(-1) && errno == EINVAL)) - break; - /* We expect that no input bytes have been consumed so far. */ - if (inptr != saved_inptr) - abort (); - } - /* After we verified the convertibility and computed the translation's - size m, there shouldn't be any conversion error here. */ - if (res == (size_t)(-1)) - abort (); - } - /* Avoid glibc-2.1 bug and Solaris 7 bug. */ -#if defined _LIBICONV_VERSION \ - || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) - if (iconv (cd, NULL, NULL, &outptr, &outsize) == (size_t)(-1)) - abort (); -#endif - /* We should have produced exactly m output bytes. */ - if (outsize != extra) - abort (); -} - -#endif /* HAVE_ICONV */ - -#if C_CTYPE_ASCII - -/* Tests whether a string is entirely ASCII. Returns 1 if yes. - Returns 0 if the string is in an 8-bit encoding or an ISO-2022 encoding. */ -static int -is_all_ascii (const char *s, size_t n) -{ - for (; n > 0; s++, n--) - { - unsigned char c = (unsigned char) *s; - - if (!(c_isprint (c) || c_isspace (c))) - return 0; - } - return 1; -} - -#endif /* C_CTYPE_ASCII */ - -#if defined unused || defined TEST2 - -void -mbs_possible_linebreaks (const char *s, size_t n, const char *encoding, - char *p) -{ - if (n == 0) - return; - if (is_utf8_encoding (encoding)) - u8_possible_linebreaks ((const unsigned char *) s, n, encoding, p); - else - { -#if HAVE_ICONV - iconv_t to_utf8; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - /* Avoid Solaris 9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, - GB18030. */ -# if defined __sun && !defined _LIBICONV_VERSION - if ( STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) - || STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0) - || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0) - || STREQ (encoding, "BIG5-HKSCS", 'B', 'I', 'G', '5', '-', 'H', 'K', 'S', 'C') - || STREQ (encoding, "GBK", 'G', 'B', 'K', 0, 0, 0, 0, 0, 0) - || STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - to_utf8 = iconv_open (UTF8_NAME, encoding); - if (to_utf8 != (iconv_t)(-1)) - { - /* Determine the length of the resulting UTF-8 string. */ - size_t m = iconv_string_length (to_utf8, s, n); - if (m != (size_t)(-1)) - { - /* Convert the string to UTF-8 and build a translation table - from offsets into s to offsets into the translated string. */ - size_t memory_size = xsum3 (xtimes (n, sizeof (size_t)), m, m); - char *memory = - (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); - if (memory != NULL) - { - size_t *offtable = (size_t *) memory; - char *t = (char *) (offtable + n); - char *q = (char *) (t + m); - size_t i; - - iconv_string_keeping_offsets (to_utf8, s, n, offtable, t, m); - - /* Determine the possible line breaks of the UTF-8 string. */ - u8_possible_linebreaks ((const unsigned char *) t, m, encoding, q); - - /* Translate the result back to the original string. */ - memset (p, UC_BREAK_PROHIBITED, n); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - p[i] = q[offtable[i]]; - - free (memory); - iconv_close (to_utf8); - return; - } - } - iconv_close (to_utf8); - } -#endif - /* Impossible to convert. */ -#if C_CTYPE_ASCII - if (is_all_ascii (s, n)) - { - /* ASCII is a subset of UTF-8. */ - u8_possible_linebreaks ((const unsigned char *) s, n, encoding, p); - return; - } -#endif - /* We have a non-ASCII string and cannot convert it. - Don't produce line breaks except those already present in the - input string. All we assume here is that the encoding is - minimally ASCII compatible. */ - { - const char *s_end = s + n; - while (s < s_end) - { - *p = (*s == '\n' ? UC_BREAK_MANDATORY : UC_BREAK_PROHIBITED); - s++; - p++; - } - } - } -} - -#endif - -int -mbs_width_linebreaks (const char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - if (n == 0) - return start_column; - if (is_utf8_encoding (encoding)) - return u8_width_linebreaks ((const unsigned char *) s, n, width, start_column, at_end_columns, o, encoding, p); - else - { -#if HAVE_ICONV - iconv_t to_utf8; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - /* Avoid Solaris 9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, - GB18030. */ -# if defined __sun && !defined _LIBICONV_VERSION - if ( STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) - || STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0) - || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0) - || STREQ (encoding, "BIG5-HKSCS", 'B', 'I', 'G', '5', '-', 'H', 'K', 'S', 'C') - || STREQ (encoding, "GBK", 'G', 'B', 'K', 0, 0, 0, 0, 0, 0) - || STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - to_utf8 = iconv_open (UTF8_NAME, encoding); - if (to_utf8 != (iconv_t)(-1)) - { - /* Determine the length of the resulting UTF-8 string. */ - size_t m = iconv_string_length (to_utf8, s, n); - if (m != (size_t)(-1)) - { - /* Convert the string to UTF-8 and build a translation table - from offsets into s to offsets into the translated string. */ - size_t memory_size = - xsum4 (xtimes (n, sizeof (size_t)), m, m, - (o != NULL ? m : 0)); - char *memory = - (char *) - (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); - if (memory != NULL) - { - size_t *offtable = (size_t *) memory; - char *t = (char *) (offtable + n); - char *q = (char *) (t + m); - char *o8 = (o != NULL ? (char *) (q + m) : NULL); - int res_column; - size_t i; - - iconv_string_keeping_offsets (to_utf8, s, n, offtable, t, m); - - /* Translate the overrides to the UTF-8 string. */ - if (o != NULL) - { - memset (o8, UC_BREAK_UNDEFINED, m); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - o8[offtable[i]] = o[i]; - } - - /* Determine the line breaks of the UTF-8 string. */ - res_column = - u8_width_linebreaks ((const unsigned char *) t, m, width, start_column, at_end_columns, o8, encoding, q); - - /* Translate the result back to the original string. */ - memset (p, UC_BREAK_PROHIBITED, n); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - p[i] = q[offtable[i]]; - - free (memory); - iconv_close (to_utf8); - return res_column; - } - } - iconv_close (to_utf8); - } -#endif - /* Impossible to convert. */ -#if C_CTYPE_ASCII - if (is_all_ascii (s, n)) - { - /* ASCII is a subset of UTF-8. */ - return u8_width_linebreaks ((const unsigned char *) s, n, width, start_column, at_end_columns, o, encoding, p); - } -#endif - /* We have a non-ASCII string and cannot convert it. - Don't produce line breaks except those already present in the - input string. All we assume here is that the encoding is - minimally ASCII compatible. */ - { - const char *s_end = s + n; - while (s < s_end) - { - *p = ((o != NULL && *o == UC_BREAK_MANDATORY) || *s == '\n' - ? UC_BREAK_MANDATORY - : UC_BREAK_PROHIBITED); - s++; - p++; - if (o != NULL) - o++; - } - /* We cannot compute widths in this case. */ - return start_column; - } - } -} - - -#ifdef TEST2 - -#include -#include - -/* Read the contents of an input stream, and return it, terminated with a NUL - byte. */ -char * -read_file (FILE *stream) -{ -#define BUFSIZE 4096 - char *buf = NULL; - int alloc = 0; - int size = 0; - int count; - - while (! feof (stream)) - { - if (size + BUFSIZE > alloc) - { - alloc = alloc + alloc / 2; - if (alloc < size + BUFSIZE) - alloc = size + BUFSIZE; - buf = realloc (buf, alloc); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - } - count = fread (buf + size, 1, BUFSIZE, stream); - if (count == 0) - { - if (ferror (stream)) - { - perror ("fread"); - exit (1); - } - } - else - size += count; - } - buf = realloc (buf, size + 1); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - buf[size] = '\0'; - return buf; -#undef BUFSIZE -} - -int -main (int argc, char * argv[]) -{ - setlocale (LC_CTYPE, ""); - if (argc == 1) - { - /* Display all the break opportunities in the input string. */ - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - mbs_possible_linebreaks (input, length, locale_charset (), breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('|', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else if (argc == 2) - { - /* Insert line breaks for a given width. */ - int width = atoi (argv[1]); - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - mbs_width_linebreaks (input, length, width, 0, 0, NULL, locale_charset (), breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('\n', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else - return 1; -} - -#endif /* TEST2 */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/linebreak.h gettext-0.18.1.1/gettext-tools/gnulib-lib/linebreak.h --- gettext-0.17/gettext-tools/gnulib-lib/linebreak.h 2007-10-07 20:29:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/linebreak.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,94 +0,0 @@ -/* linebreak.h - line breaking of Unicode strings - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#ifndef _LINEBREAK_H -#define _LINEBREAK_H - -/* Get size_t. */ -#include - - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Line breaking. */ - -enum { - UC_BREAK_UNDEFINED, - UC_BREAK_PROHIBITED, - UC_BREAK_POSSIBLE, - UC_BREAK_MANDATORY, - UC_BREAK_HYPHENATION -}; - -/* Determine the line break points in S, and store the result at p[0..n-1]. - p[i] = UC_BREAK_MANDATORY means that s[i] is a line break character. - p[i] = UC_BREAK_POSSIBLE means that a line break may be inserted between - s[i-1] and s[i]. - p[i] = UC_BREAK_HYPHENATION means that a hyphen and a line break may be - inserted between s[i-1] and s[i]. But beware of language dependent - hyphenation rules. - p[i] = UC_BREAK_PROHIBITED means that s[i-1] and s[i] must not be separated. - */ -extern void u8_possible_linebreaks (const unsigned char *s, size_t n, - const char *encoding, - char *p); -extern void u16_possible_linebreaks (const unsigned short *s, size_t n, - const char *encoding, - char *p); -extern void u32_possible_linebreaks (const unsigned int *s, size_t n, - const char *encoding, - char *p); -extern void mbs_possible_linebreaks (const char *s, size_t n, - const char *encoding, - char *p); - -/* Choose the best line breaks, assuming the uc_width function. - Return the column after the end of the string. - o is an optional override; if o[i] != UC_BREAK_UNDEFINED, o[i] takes - precedence over p[i] as returned by the *_possible_linebreaks function. - */ -extern int - u8_width_linebreaks (const unsigned char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - u16_width_linebreaks (const unsigned short *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - u32_width_linebreaks (const unsigned int *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - mbs_width_linebreaks (const char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); - - -#ifdef __cplusplus -} -#endif - - -#endif /* _LINEBREAK_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/localcharset.c gettext-0.18.1.1/gettext-tools/gnulib-lib/localcharset.c --- gettext-0.17/gettext-tools/gnulib-lib/localcharset.c 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/localcharset.c 2010-05-24 10:59:08.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006 Free Software Foundation, Inc. + Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,21 +23,29 @@ /* Specification. */ #include "localcharset.h" +#include #include #include #include #include +#if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET +# define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ +#endif + #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ -# define OS2 +# ifndef OS2 +# define OS2 +# endif #endif #if !defined WIN32_NATIVE +# include # if HAVE_LANGINFO_CODESET # include # else @@ -69,6 +77,11 @@ # include "configmake.h" #endif +/* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ +#ifndef O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') @@ -110,160 +123,220 @@ cp = charset_aliases; if (cp == NULL) { -#if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) - FILE *fp; +#if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is - necessary for running the testsuite before "make install". */ + necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') - dir = relocate (LIBDIR); + dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { - size_t dir_len = strlen (dir); - size_t base_len = strlen (base); - int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); - file_name = (char *) malloc (dir_len + add_slash + base_len + 1); - if (file_name != NULL) - { - memcpy (file_name, dir, dir_len); - if (add_slash) - file_name[dir_len] = DIRECTORY_SEPARATOR; - memcpy (file_name + dir_len + add_slash, base, base_len + 1); - } + size_t dir_len = strlen (dir); + size_t base_len = strlen (base); + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); + file_name = (char *) malloc (dir_len + add_slash + base_len + 1); + if (file_name != NULL) + { + memcpy (file_name, dir, dir_len); + if (add_slash) + file_name[dir_len] = DIRECTORY_SEPARATOR; + memcpy (file_name + dir_len + add_slash, base, base_len + 1); + } } - if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) - /* Out of memory or file not found, treat it as empty. */ - cp = ""; + if (file_name == NULL) + /* Out of memory. Treat the file as empty. */ + cp = ""; else - { - /* Parse the file's contents. */ - char *res_ptr = NULL; - size_t res_size = 0; - - for (;;) - { - int c; - char buf1[50+1]; - char buf2[50+1]; - size_t l1, l2; - char *old_res_ptr; - - c = getc (fp); - if (c == EOF) - break; - if (c == '\n' || c == ' ' || c == '\t') - continue; - if (c == '#') - { - /* Skip comment, to end of line. */ - do - c = getc (fp); - while (!(c == EOF || c == '\n')); - if (c == EOF) - break; - continue; - } - ungetc (c, fp); - if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) - break; - l1 = strlen (buf1); - l2 = strlen (buf2); - old_res_ptr = res_ptr; - if (res_size == 0) - { - res_size = l1 + 1 + l2 + 1; - res_ptr = (char *) malloc (res_size + 1); - } - else - { - res_size += l1 + 1 + l2 + 1; - res_ptr = (char *) realloc (res_ptr, res_size + 1); - } - if (res_ptr == NULL) - { - /* Out of memory. */ - res_size = 0; - if (old_res_ptr != NULL) - free (old_res_ptr); - break; - } - strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); - strcpy (res_ptr + res_size - (l2 + 1), buf2); - } - fclose (fp); - if (res_size == 0) - cp = ""; - else - { - *(res_ptr + res_size) = '\0'; - cp = res_ptr; - } - } + { + int fd; - if (file_name != NULL) - free (file_name); + /* Open the file. Reject symbolic links on platforms that support + O_NOFOLLOW. This is a security feature. Without it, an attacker + could retrieve parts of the contents (namely, the tail of the + first line that starts with "* ") of an arbitrary file by placing + a symbolic link to that file under the name "charset.alias" in + some writable directory and defining the environment variable + CHARSETALIASDIR to point to that directory. */ + fd = open (file_name, + O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); + if (fd < 0) + /* File not found. Treat it as empty. */ + cp = ""; + else + { + FILE *fp; + + fp = fdopen (fd, "r"); + if (fp == NULL) + { + /* Out of memory. Treat the file as empty. */ + close (fd); + cp = ""; + } + else + { + /* Parse the file's contents. */ + char *res_ptr = NULL; + size_t res_size = 0; + + for (;;) + { + int c; + char buf1[50+1]; + char buf2[50+1]; + size_t l1, l2; + char *old_res_ptr; + + c = getc (fp); + if (c == EOF) + break; + if (c == '\n' || c == ' ' || c == '\t') + continue; + if (c == '#') + { + /* Skip comment, to end of line. */ + do + c = getc (fp); + while (!(c == EOF || c == '\n')); + if (c == EOF) + break; + continue; + } + ungetc (c, fp); + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) + break; + l1 = strlen (buf1); + l2 = strlen (buf2); + old_res_ptr = res_ptr; + if (res_size == 0) + { + res_size = l1 + 1 + l2 + 1; + res_ptr = (char *) malloc (res_size + 1); + } + else + { + res_size += l1 + 1 + l2 + 1; + res_ptr = (char *) realloc (res_ptr, res_size + 1); + } + if (res_ptr == NULL) + { + /* Out of memory. */ + res_size = 0; + if (old_res_ptr != NULL) + free (old_res_ptr); + break; + } + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); + strcpy (res_ptr + res_size - (l2 + 1), buf2); + } + fclose (fp); + if (res_size == 0) + cp = ""; + else + { + *(res_ptr + res_size) = '\0'; + cp = res_ptr; + } + } + } + + free (file_name); + } #else +# if defined DARWIN7 + /* To avoid the trouble of installing a file that is shared by many + GNU packages -- many packaging systems have problems with this --, + simply inline the aliases here. */ + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-4" "\0" "ISO-8859-4" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + "ISO8859-13" "\0" "ISO-8859-13" "\0" + "ISO8859-15" "\0" "ISO-8859-15" "\0" + "KOI8-R" "\0" "KOI8-R" "\0" + "KOI8-U" "\0" "KOI8-U" "\0" + "CP866" "\0" "CP866" "\0" + "CP949" "\0" "CP949" "\0" + "CP1131" "\0" "CP1131" "\0" + "CP1251" "\0" "CP1251" "\0" + "eucCN" "\0" "GB2312" "\0" + "GB2312" "\0" "GB2312" "\0" + "eucJP" "\0" "EUC-JP" "\0" + "eucKR" "\0" "EUC-KR" "\0" + "Big5" "\0" "BIG5" "\0" + "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" + "GBK" "\0" "GBK" "\0" + "GB18030" "\0" "GB18030" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "ARMSCII-8" "\0" "ARMSCII-8" "\0" + "PT154" "\0" "PT154" "\0" + /*"ISCII-DEV" "\0" "?" "\0"*/ + "*" "\0" "UTF-8" "\0"; +# endif + # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the - sources of many GNU packages, simply inline the aliases here. */ + sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation - "Compaq C Run-Time Library Reference Manual for OpenVMS systems" - section 10.7 "Handling Different Character Sets". */ + "Compaq C Run-Time Library Reference Manual for OpenVMS systems" + section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-8" "\0" "ISO-8859-8" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - /* Japanese */ - "eucJP" "\0" "EUC-JP" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "DECKANJI" "\0" "DEC-KANJI" "\0" - "SDECKANJI" "\0" "EUC-JP" "\0" - /* Chinese */ - "eucTW" "\0" "EUC-TW" "\0" - "DECHANYU" "\0" "DEC-HANYU" "\0" - "DECHANZI" "\0" "GB2312" "\0" - /* Korean */ - "DECKOREAN" "\0" "EUC-KR" "\0"; + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-8" "\0" "ISO-8859-8" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + /* Japanese */ + "eucJP" "\0" "EUC-JP" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "DECKANJI" "\0" "DEC-KANJI" "\0" + "SDECKANJI" "\0" "EUC-JP" "\0" + /* Chinese */ + "eucTW" "\0" "EUC-TW" "\0" + "DECHANYU" "\0" "DEC-HANYU" "\0" + "DECHANZI" "\0" "GB2312" "\0" + /* Korean */ + "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ + directory as the DLL and of retrieving the DLL's directory at + runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" - "CP1361" "\0" "JOHAB" "\0" - "CP20127" "\0" "ASCII" "\0" - "CP20866" "\0" "KOI8-R" "\0" - "CP20936" "\0" "GB2312" "\0" - "CP21866" "\0" "KOI8-RU" "\0" - "CP28591" "\0" "ISO-8859-1" "\0" - "CP28592" "\0" "ISO-8859-2" "\0" - "CP28593" "\0" "ISO-8859-3" "\0" - "CP28594" "\0" "ISO-8859-4" "\0" - "CP28595" "\0" "ISO-8859-5" "\0" - "CP28596" "\0" "ISO-8859-6" "\0" - "CP28597" "\0" "ISO-8859-7" "\0" - "CP28598" "\0" "ISO-8859-8" "\0" - "CP28599" "\0" "ISO-8859-9" "\0" - "CP28605" "\0" "ISO-8859-15" "\0" - "CP38598" "\0" "ISO-8859-8" "\0" - "CP51932" "\0" "EUC-JP" "\0" - "CP51936" "\0" "GB2312" "\0" - "CP51949" "\0" "EUC-KR" "\0" - "CP51950" "\0" "EUC-TW" "\0" - "CP54936" "\0" "GB18030" "\0" - "CP65001" "\0" "UTF-8" "\0"; + "CP1361" "\0" "JOHAB" "\0" + "CP20127" "\0" "ASCII" "\0" + "CP20866" "\0" "KOI8-R" "\0" + "CP20936" "\0" "GB2312" "\0" + "CP21866" "\0" "KOI8-RU" "\0" + "CP28591" "\0" "ISO-8859-1" "\0" + "CP28592" "\0" "ISO-8859-2" "\0" + "CP28593" "\0" "ISO-8859-3" "\0" + "CP28594" "\0" "ISO-8859-4" "\0" + "CP28595" "\0" "ISO-8859-5" "\0" + "CP28596" "\0" "ISO-8859-6" "\0" + "CP28597" "\0" "ISO-8859-7" "\0" + "CP28598" "\0" "ISO-8859-8" "\0" + "CP28599" "\0" "ISO-8859-9" "\0" + "CP28605" "\0" "ISO-8859-15" "\0" + "CP38598" "\0" "ISO-8859-8" "\0" + "CP51932" "\0" "EUC-JP" "\0" + "CP51936" "\0" "GB2312" "\0" + "CP51949" "\0" "EUC-KR" "\0" + "CP51950" "\0" "EUC-TW" "\0" + "CP54936" "\0" "GB18030" "\0" + "CP65001" "\0" "UTF-8" "\0"; # endif #endif @@ -296,10 +369,9 @@ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ - /* Cygwin 2006 does not have locales. nl_langinfo (CODESET) always - returns "US-ASCII". As long as this is not fixed, return the suffix - of the locale name from the environment variables (if present) or - the codepage as a number. */ + /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always + returns "US-ASCII". Return the suffix of the locale name from the + environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; @@ -307,36 +379,46 @@ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return - it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - } - - /* Woe32 has a function returning the locale's codepage as a number. */ + { + /* If the locale name contains an encoding after the dot, return + it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + } + + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). This encoding is used by Cygwin, unless the user has set + the environment variable CYGWIN=codepage:oem (which very few people + do). + Output directed to console windows needs to be converted (to + GetOEMCP() if the console is using a raster font, or to + GetConsoleOutputCP() if it is using a TrueType font). Cygwin does + this conversion transparently (see winsup/cygwin/fhandler_console.cc), + converting to GetConsoleOutputCP(). This leads to correct results, + except when SetConsoleOutputCP has been called and a raster font is + in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } @@ -358,11 +440,11 @@ { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } } /* On some old systems, one used to set locale = "iso8859_1". On others, @@ -376,7 +458,13 @@ static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number. */ + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). + When the output goes to a console window, it needs to be provided in + GetOEMCP() encoding if the console is using a raster font, or in + GetConsoleOutputCP() encoding if it is using a TrueType font. + But in GUI programs and for output sent to files and pipes, GetACP() + encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; @@ -394,7 +482,7 @@ { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); + locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { @@ -402,21 +490,21 @@ const char *dot = strchr (locale, '.'); if (dot != NULL) - { - const char *modifier; + { + const char *modifier; - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } /* Resolve through the charset.alias file. */ codeset = locale; @@ -425,12 +513,12 @@ { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) - codeset = ""; + codeset = ""; else - { - sprintf (buf, "CP%u", cp[0]); - codeset = buf; - } + { + sprintf (buf, "CP%u", cp[0]); + codeset = buf; + } } #endif @@ -444,10 +532,10 @@ *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 - || (aliases[0] == '*' && aliases[1] == '\0')) + || (aliases[0] == '*' && aliases[1] == '\0')) { - codeset = aliases + strlen (aliases) + 1; - break; + codeset = aliases + strlen (aliases) + 1; + break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret diff -Nru gettext-0.17/gettext-tools/gnulib-lib/localcharset.h gettext-0.18.1.1/gettext-tools/gnulib-lib/localcharset.h --- gettext-0.17/gettext-tools/gnulib-lib/localcharset.h 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/localcharset.h 2010-05-24 10:59:08.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2003 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/locale.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/locale.in.h --- gettext-0.17/gettext-tools/gnulib-lib/locale.in.h 2007-10-07 20:29:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/locale.in.h 2010-05-24 09:42:45.000000000 +0000 @@ -1,5 +1,5 @@ /* A POSIX . - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,17 +16,59 @@ #ifndef _GL_LOCALE_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_LOCALE_H@ #ifndef _GL_LOCALE_H #define _GL_LOCALE_H +/* NetBSD 5.0 mis-defines NULL. */ +#include + +/* MacOS X 10.5 defines the locale_t type in . */ +#if @HAVE_XLOCALE_H@ +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C. On systems that don't define it, use the same value as GNU libintl. */ #if !defined LC_MESSAGES # define LC_MESSAGES 1729 #endif +#if @GNULIB_DUPLOCALE@ +# if @REPLACE_DUPLOCALE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef duplocale +# define duplocale rpl_duplocale +# endif +_GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale)); +# else +# if @HAVE_DUPLOCALE@ +_GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); +# endif +# endif +# if @HAVE_DUPLOCALE@ +_GL_CXXALIASWARN (duplocale); +# endif +#elif defined GNULIB_POSIXCHECK +# undef duplocale +# if HAVE_RAW_DECL_DUPLOCALE +_GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - " + "use gnulib module duplocale for portability"); +# endif +#endif + #endif /* _GL_LOCALE_H */ #endif /* _GL_LOCALE_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/localename.c gettext-0.18.1.1/gettext-tools/gnulib-lib/localename.c --- gettext-0.17/gettext-tools/gnulib-lib/localename.c 2007-10-31 12:36:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/localename.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,9 +1,9 @@ /* Determine name of the currently selected locale. - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -29,11 +29,24 @@ # include "localename.h" #endif +#include +#include #include #include +#include + +#if HAVE_USELOCALE +/* MacOS X 10.5 defines the locale_t type in . */ +# if defined __APPLE__ && defined __MACH__ +# include +# endif +# include +# if !defined IN_LIBINTL +# include "glthread/lock.h" +# endif +#endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE -# include # include # if HAVE_CFLOCALECOPYCURRENT # include @@ -46,7 +59,7 @@ # define WIN32_NATIVE #endif -#ifdef WIN32_NATIVE +#if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ # define WIN32_LEAN_AND_MEAN # include /* List of language codes, sorted by value: @@ -72,7 +85,7 @@ 0x14 LANG_NORWEGIAN 0x15 LANG_POLISH 0x16 LANG_PORTUGUESE - 0x17 LANG_RHAETO_ROMANCE + 0x17 LANG_ROMANSH 0x18 LANG_ROMANIAN 0x19 LANG_RUSSIAN 0x1a LANG_CROATIAN == LANG_SERBIAN @@ -108,7 +121,7 @@ 0x38 LANG_FAEROESE 0x39 LANG_HINDI 0x3a LANG_MALTESE - 0x3b LANG_SAAMI + 0x3b LANG_SAMI 0x3c LANG_GAELIC 0x3d LANG_YIDDISH 0x3e LANG_MALAY @@ -156,6 +169,9 @@ 0x68 LANG_HAUSA 0x69 LANG_IBIBIO 0x6a LANG_YORUBA + 0x6d LANG_BASHKIR + 0x6e LANG_LUXEMBOURGISH + 0x6f LANG_GREENLANDIC 0x70 LANG_IGBO 0x71 LANG_KANURI 0x72 LANG_OROMO @@ -166,6 +182,18 @@ 0x77 LANG_SOMALI 0x78 LANG_YI 0x79 LANG_PAPIAMENTU + 0x7a LANG_MAPUDUNGUN + 0x7c LANG_MOHAWK + 0x7e LANG_BRETON + 0x82 LANG_OCCITAN + 0x83 LANG_CORSICAN + 0x84 LANG_ALSATIAN + 0x85 LANG_YAKUT + 0x86 LANG_KICHE + 0x87 LANG_KINYARWANDA + 0x88 LANG_WOLOF + 0x8c LANG_DARI + 0x91 LANG_SCOTTISH_GAELIC */ /* Mingw headers don't have latest language and sublanguage codes. */ # ifndef LANG_AFRIKAANS @@ -174,6 +202,9 @@ # ifndef LANG_ALBANIAN # define LANG_ALBANIAN 0x1c # endif +# ifndef LANG_ALSATIAN +# define LANG_ALSATIAN 0x84 +# endif # ifndef LANG_AMHARIC # define LANG_AMHARIC 0x5e # endif @@ -189,6 +220,9 @@ # ifndef LANG_AZERI # define LANG_AZERI 0x2c # endif +# ifndef LANG_BASHKIR +# define LANG_BASHKIR 0x6d +# endif # ifndef LANG_BASQUE # define LANG_BASQUE 0x2d # endif @@ -198,6 +232,9 @@ # ifndef LANG_BENGALI # define LANG_BENGALI 0x45 # endif +# ifndef LANG_BRETON +# define LANG_BRETON 0x7e +# endif # ifndef LANG_BURMESE # define LANG_BURMESE 0x55 # endif @@ -210,6 +247,12 @@ # ifndef LANG_CHEROKEE # define LANG_CHEROKEE 0x5c # endif +# ifndef LANG_CORSICAN +# define LANG_CORSICAN 0x83 +# endif +# ifndef LANG_DARI +# define LANG_DARI 0x8c +# endif # ifndef LANG_DIVEHI # define LANG_DIVEHI 0x65 # endif @@ -240,6 +283,9 @@ # ifndef LANG_GEORGIAN # define LANG_GEORGIAN 0x37 # endif +# ifndef LANG_GREENLANDIC +# define LANG_GREENLANDIC 0x6f +# endif # ifndef LANG_GUARANI # define LANG_GUARANI 0x74 # endif @@ -282,6 +328,12 @@ # ifndef LANG_KAZAK # define LANG_KAZAK 0x3f # endif +# ifndef LANG_KICHE +# define LANG_KICHE 0x86 +# endif +# ifndef LANG_KINYARWANDA +# define LANG_KINYARWANDA 0x87 +# endif # ifndef LANG_KONKANI # define LANG_KONKANI 0x57 # endif @@ -300,6 +352,9 @@ # ifndef LANG_LITHUANIAN # define LANG_LITHUANIAN 0x27 # endif +# ifndef LANG_LUXEMBOURGISH +# define LANG_LUXEMBOURGISH 0x6e +# endif # ifndef LANG_MACEDONIAN # define LANG_MACEDONIAN 0x2f # endif @@ -315,15 +370,27 @@ # ifndef LANG_MANIPURI # define LANG_MANIPURI 0x58 # endif +# ifndef LANG_MAORI +# define LANG_MAORI 0x81 +# endif +# ifndef LANG_MAPUDUNGUN +# define LANG_MAPUDUNGUN 0x7a +# endif # ifndef LANG_MARATHI # define LANG_MARATHI 0x4e # endif +# ifndef LANG_MOHAWK +# define LANG_MOHAWK 0x7c +# endif # ifndef LANG_MONGOLIAN # define LANG_MONGOLIAN 0x50 # endif # ifndef LANG_NEPALI # define LANG_NEPALI 0x61 # endif +# ifndef LANG_OCCITAN +# define LANG_OCCITAN 0x82 +# endif # ifndef LANG_ORIYA # define LANG_ORIYA 0x48 # endif @@ -339,15 +406,21 @@ # ifndef LANG_PUNJABI # define LANG_PUNJABI 0x46 # endif -# ifndef LANG_RHAETO_ROMANCE -# define LANG_RHAETO_ROMANCE 0x17 +# ifndef LANG_QUECHUA +# define LANG_QUECHUA 0x6b +# endif +# ifndef LANG_ROMANSH +# define LANG_ROMANSH 0x17 # endif -# ifndef LANG_SAAMI -# define LANG_SAAMI 0x3b +# ifndef LANG_SAMI +# define LANG_SAMI 0x3b # endif # ifndef LANG_SANSKRIT # define LANG_SANSKRIT 0x4f # endif +# ifndef LANG_SCOTTISH_GAELIC +# define LANG_SCOTTISH_GAELIC 0x91 +# endif # ifndef LANG_SERBIAN # define LANG_SERBIAN 0x1a # endif @@ -366,6 +439,9 @@ # ifndef LANG_SORBIAN # define LANG_SORBIAN 0x2e # endif +# ifndef LANG_SOTHO +# define LANG_SOTHO 0x6c +# endif # ifndef LANG_SUTU # define LANG_SUTU 0x30 # endif @@ -411,6 +487,9 @@ # ifndef LANG_TURKMEN # define LANG_TURKMEN 0x42 # endif +# ifndef LANG_UIGHUR +# define LANG_UIGHUR 0x80 +# endif # ifndef LANG_UKRAINIAN # define LANG_UKRAINIAN 0x22 # endif @@ -429,9 +508,15 @@ # ifndef LANG_WELSH # define LANG_WELSH 0x52 # endif +# ifndef LANG_WOLOF +# define LANG_WOLOF 0x88 +# endif # ifndef LANG_XHOSA # define LANG_XHOSA 0x34 # endif +# ifndef LANG_YAKUT +# define LANG_YAKUT 0x85 +# endif # ifndef LANG_YI # define LANG_YI 0x78 # endif @@ -444,6 +529,18 @@ # ifndef LANG_ZULU # define LANG_ZULU 0x35 # endif +# ifndef SUBLANG_AFRIKAANS_SOUTH_AFRICA +# define SUBLANG_AFRIKAANS_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_ALBANIAN_ALBANIA +# define SUBLANG_ALBANIAN_ALBANIA 0x01 +# endif +# ifndef SUBLANG_ALSATIAN_FRANCE +# define SUBLANG_ALSATIAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_AMHARIC_ETHIOPIA +# define SUBLANG_AMHARIC_ETHIOPIA 0x01 +# endif # ifndef SUBLANG_ARABIC_SAUDI_ARABIA # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 # endif @@ -492,21 +589,78 @@ # ifndef SUBLANG_ARABIC_QATAR # define SUBLANG_ARABIC_QATAR 0x10 # endif +# ifndef SUBLANG_ARMENIAN_ARMENIA +# define SUBLANG_ARMENIAN_ARMENIA 0x01 +# endif +# ifndef SUBLANG_ASSAMESE_INDIA +# define SUBLANG_ASSAMESE_INDIA 0x01 +# endif # ifndef SUBLANG_AZERI_LATIN # define SUBLANG_AZERI_LATIN 0x01 # endif # ifndef SUBLANG_AZERI_CYRILLIC # define SUBLANG_AZERI_CYRILLIC 0x02 # endif +# ifndef SUBLANG_BASHKIR_RUSSIA +# define SUBLANG_BASHKIR_RUSSIA 0x01 +# endif +# ifndef SUBLANG_BASQUE_BASQUE +# define SUBLANG_BASQUE_BASQUE 0x01 +# endif +# ifndef SUBLANG_BELARUSIAN_BELARUS +# define SUBLANG_BELARUSIAN_BELARUS 0x01 +# endif # ifndef SUBLANG_BENGALI_INDIA # define SUBLANG_BENGALI_INDIA 0x01 # endif # ifndef SUBLANG_BENGALI_BANGLADESH # define SUBLANG_BENGALI_BANGLADESH 0x02 # endif +# ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN +# define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN 0x05 +# endif +# ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC +# define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x08 +# endif +# ifndef SUBLANG_BRETON_FRANCE +# define SUBLANG_BRETON_FRANCE 0x01 +# endif +# ifndef SUBLANG_BULGARIAN_BULGARIA +# define SUBLANG_BULGARIAN_BULGARIA 0x01 +# endif +# ifndef SUBLANG_CAMBODIAN_CAMBODIA +# define SUBLANG_CAMBODIAN_CAMBODIA 0x01 +# endif +# ifndef SUBLANG_CATALAN_SPAIN +# define SUBLANG_CATALAN_SPAIN 0x01 +# endif +# ifndef SUBLANG_CORSICAN_FRANCE +# define SUBLANG_CORSICAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_CROATIAN_CROATIA +# define SUBLANG_CROATIAN_CROATIA 0x01 +# endif +# ifndef SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN +# define SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN 0x04 +# endif # ifndef SUBLANG_CHINESE_MACAU # define SUBLANG_CHINESE_MACAU 0x05 # endif +# ifndef SUBLANG_CZECH_CZECH_REPUBLIC +# define SUBLANG_CZECH_CZECH_REPUBLIC 0x01 +# endif +# ifndef SUBLANG_DANISH_DENMARK +# define SUBLANG_DANISH_DENMARK 0x01 +# endif +# ifndef SUBLANG_DARI_AFGHANISTAN +# define SUBLANG_DARI_AFGHANISTAN 0x01 +# endif +# ifndef SUBLANG_DIVEHI_MALDIVES +# define SUBLANG_DIVEHI_MALDIVES 0x01 +# endif +# ifndef SUBLANG_DUTCH_SURINAM +# define SUBLANG_DUTCH_SURINAM 0x03 +# endif # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 # endif @@ -543,6 +697,18 @@ # ifndef SUBLANG_ENGLISH_SINGAPORE # define SUBLANG_ENGLISH_SINGAPORE 0x12 # endif +# ifndef SUBLANG_ESTONIAN_ESTONIA +# define SUBLANG_ESTONIAN_ESTONIA 0x01 +# endif +# ifndef SUBLANG_FAEROESE_FAROE_ISLANDS +# define SUBLANG_FAEROESE_FAROE_ISLANDS 0x01 +# endif +# ifndef SUBLANG_FARSI_IRAN +# define SUBLANG_FARSI_IRAN 0x01 +# endif +# ifndef SUBLANG_FINNISH_FINLAND +# define SUBLANG_FINNISH_FINLAND 0x01 +# endif # ifndef SUBLANG_FRENCH_LUXEMBOURG # define SUBLANG_FRENCH_LUXEMBOURG 0x05 # endif @@ -576,48 +742,231 @@ # ifndef SUBLANG_FRENCH_HAITI # define SUBLANG_FRENCH_HAITI 0x0f # endif +# ifndef SUBLANG_FRISIAN_NETHERLANDS +# define SUBLANG_FRISIAN_NETHERLANDS 0x01 +# endif +# ifndef SUBLANG_GALICIAN_SPAIN +# define SUBLANG_GALICIAN_SPAIN 0x01 +# endif +# ifndef SUBLANG_GEORGIAN_GEORGIA +# define SUBLANG_GEORGIAN_GEORGIA 0x01 +# endif # ifndef SUBLANG_GERMAN_LUXEMBOURG # define SUBLANG_GERMAN_LUXEMBOURG 0x04 # endif # ifndef SUBLANG_GERMAN_LIECHTENSTEIN # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 # endif +# ifndef SUBLANG_GREEK_GREECE +# define SUBLANG_GREEK_GREECE 0x01 +# endif +# ifndef SUBLANG_GREENLANDIC_GREENLAND +# define SUBLANG_GREENLANDIC_GREENLAND 0x01 +# endif +# ifndef SUBLANG_GUJARATI_INDIA +# define SUBLANG_GUJARATI_INDIA 0x01 +# endif +# ifndef SUBLANG_HAUSA_NIGERIA_LATIN +# define SUBLANG_HAUSA_NIGERIA_LATIN 0x01 +# endif +# ifndef SUBLANG_HEBREW_ISRAEL +# define SUBLANG_HEBREW_ISRAEL 0x01 +# endif +# ifndef SUBLANG_HINDI_INDIA +# define SUBLANG_HINDI_INDIA 0x01 +# endif +# ifndef SUBLANG_HUNGARIAN_HUNGARY +# define SUBLANG_HUNGARIAN_HUNGARY 0x01 +# endif +# ifndef SUBLANG_ICELANDIC_ICELAND +# define SUBLANG_ICELANDIC_ICELAND 0x01 +# endif +# ifndef SUBLANG_IGBO_NIGERIA +# define SUBLANG_IGBO_NIGERIA 0x01 +# endif +# ifndef SUBLANG_INDONESIAN_INDONESIA +# define SUBLANG_INDONESIAN_INDONESIA 0x01 +# endif +# ifndef SUBLANG_INUKTITUT_CANADA +# define SUBLANG_INUKTITUT_CANADA 0x01 +# endif +# undef SUBLANG_INUKTITUT_CANADA_LATIN +# define SUBLANG_INUKTITUT_CANADA_LATIN 0x02 +# undef SUBLANG_IRISH_IRELAND +# define SUBLANG_IRISH_IRELAND 0x02 +# ifndef SUBLANG_JAPANESE_JAPAN +# define SUBLANG_JAPANESE_JAPAN 0x01 +# endif +# ifndef SUBLANG_KANNADA_INDIA +# define SUBLANG_KANNADA_INDIA 0x01 +# endif # ifndef SUBLANG_KASHMIRI_INDIA # define SUBLANG_KASHMIRI_INDIA 0x02 # endif +# ifndef SUBLANG_KAZAK_KAZAKHSTAN +# define SUBLANG_KAZAK_KAZAKHSTAN 0x01 +# endif +# ifndef SUBLANG_KICHE_GUATEMALA +# define SUBLANG_KICHE_GUATEMALA 0x01 +# endif +# ifndef SUBLANG_KINYARWANDA_RWANDA +# define SUBLANG_KINYARWANDA_RWANDA 0x01 +# endif +# ifndef SUBLANG_KONKANI_INDIA +# define SUBLANG_KONKANI_INDIA 0x01 +# endif +# ifndef SUBLANG_KYRGYZ_KYRGYZSTAN +# define SUBLANG_KYRGYZ_KYRGYZSTAN 0x01 +# endif +# ifndef SUBLANG_LAO_LAOS +# define SUBLANG_LAO_LAOS 0x01 +# endif +# ifndef SUBLANG_LATVIAN_LATVIA +# define SUBLANG_LATVIAN_LATVIA 0x01 +# endif +# ifndef SUBLANG_LITHUANIAN_LITHUANIA +# define SUBLANG_LITHUANIAN_LITHUANIA 0x01 +# endif +# undef SUBLANG_LOWER_SORBIAN_GERMANY +# define SUBLANG_LOWER_SORBIAN_GERMANY 0x02 +# ifndef SUBLANG_LUXEMBOURGISH_LUXEMBOURG +# define SUBLANG_LUXEMBOURGISH_LUXEMBOURG 0x01 +# endif +# ifndef SUBLANG_MACEDONIAN_MACEDONIA +# define SUBLANG_MACEDONIAN_MACEDONIA 0x01 +# endif # ifndef SUBLANG_MALAY_MALAYSIA # define SUBLANG_MALAY_MALAYSIA 0x01 # endif # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 # endif +# ifndef SUBLANG_MALAYALAM_INDIA +# define SUBLANG_MALAYALAM_INDIA 0x01 +# endif +# ifndef SUBLANG_MALTESE_MALTA +# define SUBLANG_MALTESE_MALTA 0x01 +# endif +# ifndef SUBLANG_MAORI_NEW_ZEALAND +# define SUBLANG_MAORI_NEW_ZEALAND 0x01 +# endif +# ifndef SUBLANG_MAPUDUNGUN_CHILE +# define SUBLANG_MAPUDUNGUN_CHILE 0x01 +# endif +# ifndef SUBLANG_MARATHI_INDIA +# define SUBLANG_MARATHI_INDIA 0x01 +# endif +# ifndef SUBLANG_MOHAWK_CANADA +# define SUBLANG_MOHAWK_CANADA 0x01 +# endif +# ifndef SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA +# define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA 0x01 +# endif +# ifndef SUBLANG_MONGOLIAN_PRC +# define SUBLANG_MONGOLIAN_PRC 0x02 +# endif +# ifndef SUBLANG_NEPALI_NEPAL +# define SUBLANG_NEPALI_NEPAL 0x01 +# endif # ifndef SUBLANG_NEPALI_INDIA # define SUBLANG_NEPALI_INDIA 0x02 # endif +# ifndef SUBLANG_OCCITAN_FRANCE +# define SUBLANG_OCCITAN_FRANCE 0x01 +# endif +# ifndef SUBLANG_ORIYA_INDIA +# define SUBLANG_ORIYA_INDIA 0x01 +# endif +# ifndef SUBLANG_PASHTO_AFGHANISTAN +# define SUBLANG_PASHTO_AFGHANISTAN 0x01 +# endif +# ifndef SUBLANG_POLISH_POLAND +# define SUBLANG_POLISH_POLAND 0x01 +# endif # ifndef SUBLANG_PUNJABI_INDIA # define SUBLANG_PUNJABI_INDIA 0x01 # endif # ifndef SUBLANG_PUNJABI_PAKISTAN # define SUBLANG_PUNJABI_PAKISTAN 0x02 # endif +# ifndef SUBLANG_QUECHUA_BOLIVIA +# define SUBLANG_QUECHUA_BOLIVIA 0x01 +# endif +# ifndef SUBLANG_QUECHUA_ECUADOR +# define SUBLANG_QUECHUA_ECUADOR 0x02 +# endif +# ifndef SUBLANG_QUECHUA_PERU +# define SUBLANG_QUECHUA_PERU 0x03 +# endif # ifndef SUBLANG_ROMANIAN_ROMANIA # define SUBLANG_ROMANIAN_ROMANIA 0x01 # endif # ifndef SUBLANG_ROMANIAN_MOLDOVA # define SUBLANG_ROMANIAN_MOLDOVA 0x02 # endif +# ifndef SUBLANG_ROMANSH_SWITZERLAND +# define SUBLANG_ROMANSH_SWITZERLAND 0x01 +# endif +# ifndef SUBLANG_RUSSIAN_RUSSIA +# define SUBLANG_RUSSIAN_RUSSIA 0x01 +# endif +# ifndef SUBLANG_RUSSIAN_MOLDAVIA +# define SUBLANG_RUSSIAN_MOLDAVIA 0x02 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_NORWAY +# define SUBLANG_SAMI_NORTHERN_NORWAY 0x01 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_SWEDEN +# define SUBLANG_SAMI_NORTHERN_SWEDEN 0x02 +# endif +# ifndef SUBLANG_SAMI_NORTHERN_FINLAND +# define SUBLANG_SAMI_NORTHERN_FINLAND 0x03 +# endif +# ifndef SUBLANG_SAMI_LULE_NORWAY +# define SUBLANG_SAMI_LULE_NORWAY 0x04 +# endif +# ifndef SUBLANG_SAMI_LULE_SWEDEN +# define SUBLANG_SAMI_LULE_SWEDEN 0x05 +# endif +# ifndef SUBLANG_SAMI_SOUTHERN_NORWAY +# define SUBLANG_SAMI_SOUTHERN_NORWAY 0x06 +# endif +# ifndef SUBLANG_SAMI_SOUTHERN_SWEDEN +# define SUBLANG_SAMI_SOUTHERN_SWEDEN 0x07 +# endif +# undef SUBLANG_SAMI_SKOLT_FINLAND +# define SUBLANG_SAMI_SKOLT_FINLAND 0x08 +# undef SUBLANG_SAMI_INARI_FINLAND +# define SUBLANG_SAMI_INARI_FINLAND 0x09 +# ifndef SUBLANG_SANSKRIT_INDIA +# define SUBLANG_SANSKRIT_INDIA 0x01 +# endif # ifndef SUBLANG_SERBIAN_LATIN # define SUBLANG_SERBIAN_LATIN 0x02 # endif # ifndef SUBLANG_SERBIAN_CYRILLIC # define SUBLANG_SERBIAN_CYRILLIC 0x03 # endif -# ifndef SUBLANG_SINDHI_PAKISTAN -# define SUBLANG_SINDHI_PAKISTAN 0x01 +# ifndef SUBLANG_SINDHI_INDIA +# define SUBLANG_SINDHI_INDIA 0x01 # endif +# undef SUBLANG_SINDHI_PAKISTAN +# define SUBLANG_SINDHI_PAKISTAN 0x02 # ifndef SUBLANG_SINDHI_AFGHANISTAN # define SUBLANG_SINDHI_AFGHANISTAN 0x02 # endif +# ifndef SUBLANG_SINHALESE_SRI_LANKA +# define SUBLANG_SINHALESE_SRI_LANKA 0x01 +# endif +# ifndef SUBLANG_SLOVAK_SLOVAKIA +# define SUBLANG_SLOVAK_SLOVAKIA 0x01 +# endif +# ifndef SUBLANG_SLOVENIAN_SLOVENIA +# define SUBLANG_SLOVENIAN_SLOVENIA 0x01 +# endif +# ifndef SUBLANG_SOTHO_SOUTH_AFRICA +# define SUBLANG_SOTHO_SOUTH_AFRICA 0x01 +# endif # ifndef SUBLANG_SPANISH_GUATEMALA # define SUBLANG_SPANISH_GUATEMALA 0x04 # endif @@ -669,21 +1018,74 @@ # ifndef SUBLANG_SPANISH_PUERTO_RICO # define SUBLANG_SPANISH_PUERTO_RICO 0x14 # endif +# ifndef SUBLANG_SPANISH_US +# define SUBLANG_SPANISH_US 0x15 +# endif +# ifndef SUBLANG_SWAHILI_KENYA +# define SUBLANG_SWAHILI_KENYA 0x01 +# endif +# ifndef SUBLANG_SWEDISH_SWEDEN +# define SUBLANG_SWEDISH_SWEDEN 0x01 +# endif # ifndef SUBLANG_SWEDISH_FINLAND # define SUBLANG_SWEDISH_FINLAND 0x02 # endif +# ifndef SUBLANG_SYRIAC_SYRIA +# define SUBLANG_SYRIAC_SYRIA 0x01 +# endif +# ifndef SUBLANG_TAGALOG_PHILIPPINES +# define SUBLANG_TAGALOG_PHILIPPINES 0x01 +# endif +# ifndef SUBLANG_TAJIK_TAJIKISTAN +# define SUBLANG_TAJIK_TAJIKISTAN 0x01 +# endif # ifndef SUBLANG_TAMAZIGHT_ARABIC # define SUBLANG_TAMAZIGHT_ARABIC 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ALGERIA_LATIN # define SUBLANG_TAMAZIGHT_ALGERIA_LATIN 0x02 # endif +# ifndef SUBLANG_TAMIL_INDIA +# define SUBLANG_TAMIL_INDIA 0x01 +# endif +# ifndef SUBLANG_TATAR_RUSSIA +# define SUBLANG_TATAR_RUSSIA 0x01 +# endif +# ifndef SUBLANG_TELUGU_INDIA +# define SUBLANG_TELUGU_INDIA 0x01 +# endif +# ifndef SUBLANG_THAI_THAILAND +# define SUBLANG_THAI_THAILAND 0x01 +# endif +# ifndef SUBLANG_TIBETAN_PRC +# define SUBLANG_TIBETAN_PRC 0x01 +# endif +# undef SUBLANG_TIBETAN_BHUTAN +# define SUBLANG_TIBETAN_BHUTAN 0x02 # ifndef SUBLANG_TIGRINYA_ETHIOPIA # define SUBLANG_TIGRINYA_ETHIOPIA 0x01 # endif # ifndef SUBLANG_TIGRINYA_ERITREA # define SUBLANG_TIGRINYA_ERITREA 0x02 # endif +# ifndef SUBLANG_TSWANA_SOUTH_AFRICA +# define SUBLANG_TSWANA_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_TURKISH_TURKEY +# define SUBLANG_TURKISH_TURKEY 0x01 +# endif +# ifndef SUBLANG_TURKMEN_TURKMENISTAN +# define SUBLANG_TURKMEN_TURKMENISTAN 0x01 +# endif +# ifndef SUBLANG_UIGHUR_PRC +# define SUBLANG_UIGHUR_PRC 0x01 +# endif +# ifndef SUBLANG_UKRAINIAN_UKRAINE +# define SUBLANG_UKRAINIAN_UKRAINE 0x01 +# endif +# ifndef SUBLANG_UPPER_SORBIAN_GERMANY +# define SUBLANG_UPPER_SORBIAN_GERMANY 0x01 +# endif # ifndef SUBLANG_URDU_PAKISTAN # define SUBLANG_URDU_PAKISTAN 0x01 # endif @@ -696,18 +1098,47 @@ # ifndef SUBLANG_UZBEK_CYRILLIC # define SUBLANG_UZBEK_CYRILLIC 0x02 # endif +# ifndef SUBLANG_VIETNAMESE_VIETNAM +# define SUBLANG_VIETNAMESE_VIETNAM 0x01 +# endif +# ifndef SUBLANG_WELSH_UNITED_KINGDOM +# define SUBLANG_WELSH_UNITED_KINGDOM 0x01 +# endif +# ifndef SUBLANG_WOLOF_SENEGAL +# define SUBLANG_WOLOF_SENEGAL 0x01 +# endif +# ifndef SUBLANG_XHOSA_SOUTH_AFRICA +# define SUBLANG_XHOSA_SOUTH_AFRICA 0x01 +# endif +# ifndef SUBLANG_YAKUT_RUSSIA +# define SUBLANG_YAKUT_RUSSIA 0x01 +# endif +# ifndef SUBLANG_YI_PRC +# define SUBLANG_YI_PRC 0x01 +# endif +# ifndef SUBLANG_YORUBA_NIGERIA +# define SUBLANG_YORUBA_NIGERIA 0x01 +# endif +# ifndef SUBLANG_ZULU_SOUTH_AFRICA +# define SUBLANG_ZULU_SOUTH_AFRICA 0x01 +# endif +/* GetLocaleInfoA operations. */ +# ifndef LOCALE_SNAME +# define LOCALE_SNAME 0x5c +# endif #endif -# if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE + +#if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ /* Canonicalize a MacOS X locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the MacOS X locale name. On output, it contains the Unix locale name. */ -# if !defined IN_LIBINTL +# if !defined IN_LIBINTL static -# endif +# endif void gl_locale_name_canonicalize (char *name) { @@ -721,7 +1152,7 @@ MacOS X 10.3.8 function CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ typedef struct { const char legacy[21+1]; const char unixy[5+1]; } - legacy_entry; + legacy_entry; static const legacy_entry legacy_table[] = { { "Afrikaans", "af" }, { "Albanian", "sq" }, @@ -859,7 +1290,7 @@ /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ typedef struct { const char langtag[7+1]; const char unixy[12+1]; } - langtag_entry; + langtag_entry; static const langtag_entry langtag_table[] = { /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". The default script for az on Unix is Latin. */ @@ -889,7 +1320,7 @@ /* Convert script names (ISO 15924) to Unix conventions. See http://www.unicode.org/iso15924/iso15924-codes.html */ typedef struct { const char script[4+1]; const char unixy[9+1]; } - script_entry; + script_entry; static const script_entry script_table[] = { { "Arab", "arabic" }, { "Cyrl", "cyrillic" }, @@ -903,21 +1334,21 @@ i1 = 0; i2 = sizeof (legacy_table) / sizeof (legacy_entry); while (i2 - i1 > 1) - { - /* At this point we know that if name occurs in legacy_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const legacy_entry *p = &legacy_table[i]; - if (strcmp (name, p->legacy) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if name occurs in legacy_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const legacy_entry *p = &legacy_table[i]; + if (strcmp (name, p->legacy) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name, legacy_table[i1].legacy) == 0) - { - strcpy (name, legacy_table[i1].unixy); - return; - } + { + strcpy (name, legacy_table[i1].unixy); + return; + } } /* Step 2: Convert using langtag_table and script_table. */ @@ -927,41 +1358,41 @@ i1 = 0; i2 = sizeof (langtag_table) / sizeof (langtag_entry); while (i2 - i1 > 1) - { - /* At this point we know that if name occurs in langtag_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const langtag_entry *p = &langtag_table[i]; - if (strcmp (name, p->langtag) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if name occurs in langtag_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const langtag_entry *p = &langtag_table[i]; + if (strcmp (name, p->langtag) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name, langtag_table[i1].langtag) == 0) - { - strcpy (name, langtag_table[i1].unixy); - return; - } + { + strcpy (name, langtag_table[i1].unixy); + return; + } i1 = 0; i2 = sizeof (script_table) / sizeof (script_entry); while (i2 - i1 > 1) - { - /* At this point we know that if (name + 3) occurs in script_table, - its index must be >= i1 and < i2. */ - unsigned int i = (i1 + i2) >> 1; - const script_entry *p = &script_table[i]; - if (strcmp (name + 3, p->script) < 0) - i2 = i; - else - i1 = i; - } + { + /* At this point we know that if (name + 3) occurs in script_table, + its index must be >= i1 and < i2. */ + unsigned int i = (i1 + i2) >> 1; + const script_entry *p = &script_table[i]; + if (strcmp (name + 3, p->script) < 0) + i2 = i; + else + i1 = i; + } if (strcmp (name + 3, script_table[i1].script) == 0) - { - name[2] = '@'; - strcpy (name + 3, script_table[i1].unixy); - return; - } + { + name[2] = '@'; + strcpy (name + 3, script_table[i1].unixy); + return; + } } /* Step 3: Convert new-style dash to Unix underscore. */ @@ -969,12 +1400,1371 @@ char *p; for (p = name; *p != '\0'; p++) if (*p == '-') - *p = '_'; + *p = '_'; + } +} + +#endif + + +#if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ + +/* Canonicalize a Win32 native locale name to a Unix locale name. + NAME is a sufficiently large buffer. + On input, it contains the Win32 locale name. + On output, it contains the Unix locale name. */ +# if !defined IN_LIBINTL +static +# endif +void +gl_locale_name_canonicalize (char *name) +{ + /* FIXME: This is probably incomplete: it does not handle "zh-Hans" and + "zh-Hant". */ + char *p; + + for (p = name; *p != '\0'; p++) + if (*p == '-') + { + *p = '_'; + p++; + for (; *p != '\0'; p++) + { + if (*p >= 'a' && *p <= 'z') + *p += 'A' - 'a'; + if (*p == '-') + { + *p = '\0'; + return; + } + } + return; + } +} + +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_from_win32_LANGID (LANGID langid) +{ + /* Activate the new code only when the GETTEXT_MUI environment variable is + set, for the time being, since the new code is not well tested. */ + if (getenv ("GETTEXT_MUI") != NULL) + { + static char namebuf[256]; + + /* Query the system's notion of locale name. + On Windows95/98/ME, GetLocaleInfoA returns some incorrect results. + But we don't need to support systems that are so old. */ + if (GetLocaleInfoA (MAKELCID (langid, SORT_DEFAULT), LOCALE_SNAME, + namebuf, sizeof (namebuf) - 1)) + { + /* Convert it to a Unix locale name. */ + gl_locale_name_canonicalize (namebuf); + return namebuf; + } + } + /* Internet Explorer has an LCID to RFC3066 name mapping stored in + HKEY_CLASSES_ROOT\Mime\Database\Rfc1766. But we better don't use that + since IE's i18n subsystem is known to be inconsistent with the Win32 base + (e.g. they have different character conversion facilities that produce + different results). */ + /* Use our own table. */ + { + int primary, sub; + + /* Split into language and territory part. */ + primary = PRIMARYLANGID (langid); + sub = SUBLANGID (langid); + + /* Dispatch on language. + See also http://www.unicode.org/unicode/onlinedat/languages.html . + For details about languages, see http://www.ethnologue.com/ . */ + switch (primary) + { + case LANG_AFRIKAANS: + switch (sub) + { + case SUBLANG_AFRIKAANS_SOUTH_AFRICA: return "af_ZA"; + } + return "af"; + case LANG_ALBANIAN: + switch (sub) + { + case SUBLANG_ALBANIAN_ALBANIA: return "sq_AL"; + } + return "sq"; + case LANG_ALSATIAN: + switch (sub) + { + case SUBLANG_ALSATIAN_FRANCE: return "gsw_FR"; + } + return "gsw"; + case LANG_AMHARIC: + switch (sub) + { + case SUBLANG_AMHARIC_ETHIOPIA: return "am_ET"; + } + return "am"; + case LANG_ARABIC: + switch (sub) + { + case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; + case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; + case SUBLANG_ARABIC_EGYPT: return "ar_EG"; + case SUBLANG_ARABIC_LIBYA: return "ar_LY"; + case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; + case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; + case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; + case SUBLANG_ARABIC_OMAN: return "ar_OM"; + case SUBLANG_ARABIC_YEMEN: return "ar_YE"; + case SUBLANG_ARABIC_SYRIA: return "ar_SY"; + case SUBLANG_ARABIC_JORDAN: return "ar_JO"; + case SUBLANG_ARABIC_LEBANON: return "ar_LB"; + case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; + case SUBLANG_ARABIC_UAE: return "ar_AE"; + case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; + case SUBLANG_ARABIC_QATAR: return "ar_QA"; + } + return "ar"; + case LANG_ARMENIAN: + switch (sub) + { + case SUBLANG_ARMENIAN_ARMENIA: return "hy_AM"; + } + return "hy"; + case LANG_ASSAMESE: + switch (sub) + { + case SUBLANG_ASSAMESE_INDIA: return "as_IN"; + } + return "as"; + case LANG_AZERI: + switch (sub) + { + /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ + case 0x1e: return "az@latin"; + case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; + case 0x1d: return "az@cyrillic"; + case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; + } + return "az"; + case LANG_BASHKIR: + switch (sub) + { + case SUBLANG_BASHKIR_RUSSIA: return "ba_RU"; + } + return "ba"; + case LANG_BASQUE: + switch (sub) + { + case SUBLANG_BASQUE_BASQUE: return "eu_ES"; + } + return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ + case LANG_BELARUSIAN: + switch (sub) + { + case SUBLANG_BELARUSIAN_BELARUS: return "be_BY"; + } + return "be"; + case LANG_BENGALI: + switch (sub) + { + case SUBLANG_BENGALI_INDIA: return "bn_IN"; + case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; + } + return "bn"; + case LANG_BRETON: + switch (sub) + { + case SUBLANG_BRETON_FRANCE: return "br_FR"; + } + return "br"; + case LANG_BULGARIAN: + switch (sub) + { + case SUBLANG_BULGARIAN_BULGARIA: return "bg_BG"; + } + return "bg"; + case LANG_BURMESE: + switch (sub) + { + case SUBLANG_DEFAULT: return "my_MM"; + } + return "my"; + case LANG_CAMBODIAN: + switch (sub) + { + case SUBLANG_CAMBODIAN_CAMBODIA: return "km_KH"; + } + return "km"; + case LANG_CATALAN: + switch (sub) + { + case SUBLANG_CATALAN_SPAIN: return "ca_ES"; + } + return "ca"; + case LANG_CHEROKEE: + switch (sub) + { + case SUBLANG_DEFAULT: return "chr_US"; + } + return "chr"; + case LANG_CHINESE: + switch (sub) + { + case SUBLANG_CHINESE_TRADITIONAL: case 0x1f: return "zh_TW"; + case SUBLANG_CHINESE_SIMPLIFIED: case 0x00: return "zh_CN"; + case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; /* traditional */ + case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; /* simplified */ + case SUBLANG_CHINESE_MACAU: return "zh_MO"; /* traditional */ + } + return "zh"; + case LANG_CORSICAN: + switch (sub) + { + case SUBLANG_CORSICAN_FRANCE: return "co_FR"; + } + return "co"; + case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN == LANG_BOSNIAN + * What used to be called Serbo-Croatian + * should really now be two separate + * languages because of political reasons. + * (Says tml, who knows nothing about Serbian + * or Croatian.) + * (I can feel those flames coming already.) + */ + switch (sub) + { + /* Croatian */ + case 0x00: return "hr"; + case SUBLANG_CROATIAN_CROATIA: return "hr_HR"; + case SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: return "hr_BA"; + /* Serbian */ + case 0x1f: return "sr"; + case 0x1c: return "sr"; /* latin */ + case SUBLANG_SERBIAN_LATIN: return "sr_CS"; /* latin */ + case 0x09: return "sr_RS"; /* latin */ + case 0x0b: return "sr_ME"; /* latin */ + case 0x06: return "sr_BA"; /* latin */ + case 0x1b: return "sr@cyrillic"; + case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; + case 0x0a: return "sr_RS@cyrillic"; + case 0x0c: return "sr_ME@cyrillic"; + case 0x07: return "sr_BA@cyrillic"; + /* Bosnian */ + case 0x1e: return "bs"; + case 0x1a: return "bs"; /* latin */ + case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: return "bs_BA"; /* latin */ + case 0x19: return "bs@cyrillic"; + case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: return "bs_BA@cyrillic"; + } + return "hr"; + case LANG_CZECH: + switch (sub) + { + case SUBLANG_CZECH_CZECH_REPUBLIC: return "cs_CZ"; + } + return "cs"; + case LANG_DANISH: + switch (sub) + { + case SUBLANG_DANISH_DENMARK: return "da_DK"; + } + return "da"; + case LANG_DARI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_DARI_AFGHANISTAN: return "prs_AF"; + } + return "prs"; + case LANG_DIVEHI: + switch (sub) + { + case SUBLANG_DIVEHI_MALDIVES: return "dv_MV"; + } + return "dv"; + case LANG_DUTCH: + switch (sub) + { + case SUBLANG_DUTCH: return "nl_NL"; + case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; + case SUBLANG_DUTCH_SURINAM: return "nl_SR"; + } + return "nl"; + case LANG_EDO: + switch (sub) + { + case SUBLANG_DEFAULT: return "bin_NG"; + } + return "bin"; + case LANG_ENGLISH: + switch (sub) + { + /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought + * English was the language spoken in England. + * Oh well. + */ + case SUBLANG_ENGLISH_US: return "en_US"; + case SUBLANG_ENGLISH_UK: return "en_GB"; + case SUBLANG_ENGLISH_AUS: return "en_AU"; + case SUBLANG_ENGLISH_CAN: return "en_CA"; + case SUBLANG_ENGLISH_NZ: return "en_NZ"; + case SUBLANG_ENGLISH_EIRE: return "en_IE"; + case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; + case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; + case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ + case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; + case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; + case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; + case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; + case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; + case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; + case SUBLANG_ENGLISH_INDIA: return "en_IN"; + case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; + case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; + } + return "en"; + case LANG_ESTONIAN: + switch (sub) + { + case SUBLANG_ESTONIAN_ESTONIA: return "et_EE"; + } + return "et"; + case LANG_FAEROESE: + switch (sub) + { + case SUBLANG_FAEROESE_FAROE_ISLANDS: return "fo_FO"; + } + return "fo"; + case LANG_FARSI: + switch (sub) + { + case SUBLANG_FARSI_IRAN: return "fa_IR"; + } + return "fa"; + case LANG_FINNISH: + switch (sub) + { + case SUBLANG_FINNISH_FINLAND: return "fi_FI"; + } + return "fi"; + case LANG_FRENCH: + switch (sub) + { + case SUBLANG_FRENCH: return "fr_FR"; + case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; + case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; + case SUBLANG_FRENCH_SWISS: return "fr_CH"; + case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; + case SUBLANG_FRENCH_MONACO: return "fr_MC"; + case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ + case SUBLANG_FRENCH_REUNION: return "fr_RE"; + case SUBLANG_FRENCH_CONGO: return "fr_CG"; + case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; + case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; + case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; + case SUBLANG_FRENCH_MALI: return "fr_ML"; + case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; + case SUBLANG_FRENCH_HAITI: return "fr_HT"; + } + return "fr"; + case LANG_FRISIAN: + switch (sub) + { + case SUBLANG_FRISIAN_NETHERLANDS: return "fy_NL"; + } + return "fy"; + case LANG_FULFULDE: + /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ + switch (sub) + { + case SUBLANG_DEFAULT: return "ff_NG"; + } + return "ff"; + case LANG_GAELIC: + switch (sub) + { + case 0x01: /* SCOTTISH */ + /* old, superseded by LANG_SCOTTISH_GAELIC */ + return "gd_GB"; + case SUBLANG_IRISH_IRELAND: return "ga_IE"; + } + return "ga"; + case LANG_GALICIAN: + switch (sub) + { + case SUBLANG_GALICIAN_SPAIN: return "gl_ES"; + } + return "gl"; + case LANG_GEORGIAN: + switch (sub) + { + case SUBLANG_GEORGIAN_GEORGIA: return "ka_GE"; + } + return "ka"; + case LANG_GERMAN: + switch (sub) + { + case SUBLANG_GERMAN: return "de_DE"; + case SUBLANG_GERMAN_SWISS: return "de_CH"; + case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; + case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; + case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; + } + return "de"; + case LANG_GREEK: + switch (sub) + { + case SUBLANG_GREEK_GREECE: return "el_GR"; + } + return "el"; + case LANG_GREENLANDIC: + switch (sub) + { + case SUBLANG_GREENLANDIC_GREENLAND: return "kl_GL"; + } + return "kl"; + case LANG_GUARANI: + switch (sub) + { + case SUBLANG_DEFAULT: return "gn_PY"; + } + return "gn"; + case LANG_GUJARATI: + switch (sub) + { + case SUBLANG_GUJARATI_INDIA: return "gu_IN"; + } + return "gu"; + case LANG_HAUSA: + switch (sub) + { + case 0x1f: return "ha"; + case SUBLANG_HAUSA_NIGERIA_LATIN: return "ha_NG"; + } + return "ha"; + case LANG_HAWAIIAN: + /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) + or Hawaii Creole English ("cpe_US", 600000 speakers)? */ + switch (sub) + { + case SUBLANG_DEFAULT: return "cpe_US"; + } + return "cpe"; + case LANG_HEBREW: + switch (sub) + { + case SUBLANG_HEBREW_ISRAEL: return "he_IL"; + } + return "he"; + case LANG_HINDI: + switch (sub) + { + case SUBLANG_HINDI_INDIA: return "hi_IN"; + } + return "hi"; + case LANG_HUNGARIAN: + switch (sub) + { + case SUBLANG_HUNGARIAN_HUNGARY: return "hu_HU"; + } + return "hu"; + case LANG_IBIBIO: + switch (sub) + { + case SUBLANG_DEFAULT: return "nic_NG"; + } + return "nic"; + case LANG_ICELANDIC: + switch (sub) + { + case SUBLANG_ICELANDIC_ICELAND: return "is_IS"; + } + return "is"; + case LANG_IGBO: + switch (sub) + { + case SUBLANG_IGBO_NIGERIA: return "ig_NG"; + } + return "ig"; + case LANG_INDONESIAN: + switch (sub) + { + case SUBLANG_INDONESIAN_INDONESIA: return "id_ID"; + } + return "id"; + case LANG_INUKTITUT: + switch (sub) + { + case 0x1e: return "iu"; /* syllabic */ + case SUBLANG_INUKTITUT_CANADA: return "iu_CA"; /* syllabic */ + case 0x1f: return "iu@latin"; + case SUBLANG_INUKTITUT_CANADA_LATIN: return "iu_CA@latin"; + } + return "iu"; + case LANG_ITALIAN: + switch (sub) + { + case SUBLANG_ITALIAN: return "it_IT"; + case SUBLANG_ITALIAN_SWISS: return "it_CH"; + } + return "it"; + case LANG_JAPANESE: + switch (sub) + { + case SUBLANG_JAPANESE_JAPAN: return "ja_JP"; + } + return "ja"; + case LANG_KANNADA: + switch (sub) + { + case SUBLANG_KANNADA_INDIA: return "kn_IN"; + } + return "kn"; + case LANG_KANURI: + switch (sub) + { + case SUBLANG_DEFAULT: return "kr_NG"; + } + return "kr"; + case LANG_KASHMIRI: + switch (sub) + { + case SUBLANG_DEFAULT: return "ks_PK"; + case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; + } + return "ks"; + case LANG_KAZAK: + switch (sub) + { + case SUBLANG_KAZAK_KAZAKHSTAN: return "kk_KZ"; + } + return "kk"; + case LANG_KICHE: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_KICHE_GUATEMALA: return "qut_GT"; + } + return "qut"; + case LANG_KINYARWANDA: + switch (sub) + { + case SUBLANG_KINYARWANDA_RWANDA: return "rw_RW"; + } + return "rw"; + case LANG_KONKANI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_KONKANI_INDIA: return "kok_IN"; + } + return "kok"; + case LANG_KOREAN: + switch (sub) + { + case SUBLANG_DEFAULT: return "ko_KR"; + } + return "ko"; + case LANG_KYRGYZ: + switch (sub) + { + case SUBLANG_KYRGYZ_KYRGYZSTAN: return "ky_KG"; + } + return "ky"; + case LANG_LAO: + switch (sub) + { + case SUBLANG_LAO_LAOS: return "lo_LA"; + } + return "lo"; + case LANG_LATIN: + switch (sub) + { + case SUBLANG_DEFAULT: return "la_VA"; + } + return "la"; + case LANG_LATVIAN: + switch (sub) + { + case SUBLANG_LATVIAN_LATVIA: return "lv_LV"; + } + return "lv"; + case LANG_LITHUANIAN: + switch (sub) + { + case SUBLANG_LITHUANIAN_LITHUANIA: return "lt_LT"; + } + return "lt"; + case LANG_LUXEMBOURGISH: + switch (sub) + { + case SUBLANG_LUXEMBOURGISH_LUXEMBOURG: return "lb_LU"; + } + return "lb"; + case LANG_MACEDONIAN: + switch (sub) + { + case SUBLANG_MACEDONIAN_MACEDONIA: return "mk_MK"; + } + return "mk"; + case LANG_MALAY: + switch (sub) + { + case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; + case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; + } + return "ms"; + case LANG_MALAYALAM: + switch (sub) + { + case SUBLANG_MALAYALAM_INDIA: return "ml_IN"; + } + return "ml"; + case LANG_MALTESE: + switch (sub) + { + case SUBLANG_MALTESE_MALTA: return "mt_MT"; + } + return "mt"; + case LANG_MANIPURI: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + case SUBLANG_DEFAULT: return "mni_IN"; + } + return "mni"; + case LANG_MAORI: + switch (sub) + { + case SUBLANG_MAORI_NEW_ZEALAND: return "mi_NZ"; + } + return "mi"; + case LANG_MAPUDUNGUN: + switch (sub) + { + case SUBLANG_MAPUDUNGUN_CHILE: return "arn_CL"; + } + return "arn"; + case LANG_MARATHI: + switch (sub) + { + case SUBLANG_MARATHI_INDIA: return "mr_IN"; + } + return "mr"; + case LANG_MOHAWK: + switch (sub) + { + case SUBLANG_MOHAWK_CANADA: return "moh_CA"; + } + return "moh"; + case LANG_MONGOLIAN: + switch (sub) + { + case SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: case 0x1e: return "mn_MN"; + case SUBLANG_MONGOLIAN_PRC: case 0x1f: return "mn_CN"; + } + return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ + case LANG_NEPALI: + switch (sub) + { + case SUBLANG_NEPALI_NEPAL: return "ne_NP"; + case SUBLANG_NEPALI_INDIA: return "ne_IN"; + } + return "ne"; + case LANG_NORWEGIAN: + switch (sub) + { + case 0x1f: return "nb"; + case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; + case 0x1e: return "nn"; + case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; + } + return "no"; + case LANG_OCCITAN: + switch (sub) + { + case SUBLANG_OCCITAN_FRANCE: return "oc_FR"; + } + return "oc"; + case LANG_ORIYA: + switch (sub) + { + case SUBLANG_ORIYA_INDIA: return "or_IN"; + } + return "or"; + case LANG_OROMO: + switch (sub) + { + case SUBLANG_DEFAULT: return "om_ET"; + } + return "om"; + case LANG_PAPIAMENTU: + switch (sub) + { + case SUBLANG_DEFAULT: return "pap_AN"; + } + return "pap"; + case LANG_PASHTO: + switch (sub) + { + case SUBLANG_PASHTO_AFGHANISTAN: return "ps_AF"; + } + return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ + case LANG_POLISH: + switch (sub) + { + case SUBLANG_POLISH_POLAND: return "pl_PL"; + } + return "pl"; + case LANG_PORTUGUESE: + switch (sub) + { + /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. + Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ + case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; + case SUBLANG_PORTUGUESE: return "pt_PT"; + } + return "pt"; + case LANG_PUNJABI: + switch (sub) + { + case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ + case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ + } + return "pa"; + case LANG_QUECHUA: + /* Note: Microsoft uses the non-ISO language code "quz". */ + switch (sub) + { + case SUBLANG_QUECHUA_BOLIVIA: return "qu_BO"; + case SUBLANG_QUECHUA_ECUADOR: return "qu_EC"; + case SUBLANG_QUECHUA_PERU: return "qu_PE"; + } + return "qu"; + case LANG_ROMANIAN: + switch (sub) + { + case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; + case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; + } + return "ro"; + case LANG_ROMANSH: + switch (sub) + { + case SUBLANG_ROMANSH_SWITZERLAND: return "rm_CH"; + } + return "rm"; + case LANG_RUSSIAN: + switch (sub) + { + case SUBLANG_RUSSIAN_RUSSIA: return "ru_RU"; + case SUBLANG_RUSSIAN_MOLDAVIA: return "ru_MD"; + } + return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ + case LANG_SAMI: + switch (sub) + { + /* Northern Sami */ + case 0x00: return "se"; + case SUBLANG_SAMI_NORTHERN_NORWAY: return "se_NO"; + case SUBLANG_SAMI_NORTHERN_SWEDEN: return "se_SE"; + case SUBLANG_SAMI_NORTHERN_FINLAND: return "se_FI"; + /* Lule Sami */ + case 0x1f: return "smj"; + case SUBLANG_SAMI_LULE_NORWAY: return "smj_NO"; + case SUBLANG_SAMI_LULE_SWEDEN: return "smj_SE"; + /* Southern Sami */ + case 0x1e: return "sma"; + case SUBLANG_SAMI_SOUTHERN_NORWAY: return "sma_NO"; + case SUBLANG_SAMI_SOUTHERN_SWEDEN: return "sma_SE"; + /* Skolt Sami */ + case 0x1d: return "sms"; + case SUBLANG_SAMI_SKOLT_FINLAND: return "sms_FI"; + /* Inari Sami */ + case 0x1c: return "smn"; + case SUBLANG_SAMI_INARI_FINLAND: return "smn_FI"; + } + return "se"; /* or "smi"? */ + case LANG_SANSKRIT: + switch (sub) + { + case SUBLANG_SANSKRIT_INDIA: return "sa_IN"; + } + return "sa"; + case LANG_SCOTTISH_GAELIC: + switch (sub) + { + case SUBLANG_DEFAULT: return "gd_GB"; + } + return "gd"; + case LANG_SINDHI: + switch (sub) + { + case SUBLANG_SINDHI_INDIA: return "sd_IN"; + case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; + /*case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF";*/ + } + return "sd"; + case LANG_SINHALESE: + switch (sub) + { + case SUBLANG_SINHALESE_SRI_LANKA: return "si_LK"; + } + return "si"; + case LANG_SLOVAK: + switch (sub) + { + case SUBLANG_SLOVAK_SLOVAKIA: return "sk_SK"; + } + return "sk"; + case LANG_SLOVENIAN: + switch (sub) + { + case SUBLANG_SLOVENIAN_SLOVENIA: return "sl_SI"; + } + return "sl"; + case LANG_SOMALI: + switch (sub) + { + case SUBLANG_DEFAULT: return "so_SO"; + } + return "so"; + case LANG_SORBIAN: + /* FIXME: Adjust this when such locales appear on Unix. */ + switch (sub) + { + /* Upper Sorbian */ + case 0x00: return "hsb"; + case SUBLANG_UPPER_SORBIAN_GERMANY: return "hsb_DE"; + /* Lower Sorbian */ + case 0x1f: return "dsb"; + case SUBLANG_LOWER_SORBIAN_GERMANY: return "dsb_DE"; + } + return "wen"; + case LANG_SOTHO: + /* calls + it "Sepedi"; according to + + + it's the same as Northern Sotho. */ + switch (sub) + { + case SUBLANG_SOTHO_SOUTH_AFRICA: return "nso_ZA"; + } + return "nso"; + case LANG_SPANISH: + switch (sub) + { + case SUBLANG_SPANISH: return "es_ES"; + case SUBLANG_SPANISH_MEXICAN: return "es_MX"; + case SUBLANG_SPANISH_MODERN: + return "es_ES@modern"; /* not seen on Unix */ + case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; + case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; + case SUBLANG_SPANISH_PANAMA: return "es_PA"; + case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; + case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; + case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; + case SUBLANG_SPANISH_PERU: return "es_PE"; + case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; + case SUBLANG_SPANISH_ECUADOR: return "es_EC"; + case SUBLANG_SPANISH_CHILE: return "es_CL"; + case SUBLANG_SPANISH_URUGUAY: return "es_UY"; + case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; + case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; + case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; + case SUBLANG_SPANISH_HONDURAS: return "es_HN"; + case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; + case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; + case SUBLANG_SPANISH_US: return "es_US"; + } + return "es"; + case LANG_SUTU: + switch (sub) + { + case SUBLANG_DEFAULT: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ + } + return "bnt"; + case LANG_SWAHILI: + switch (sub) + { + case SUBLANG_SWAHILI_KENYA: return "sw_KE"; + } + return "sw"; + case LANG_SWEDISH: + switch (sub) + { + case SUBLANG_SWEDISH_SWEDEN: return "sv_SE"; + case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; + } + return "sv"; + case LANG_SYRIAC: + switch (sub) + { + case SUBLANG_SYRIAC_SYRIA: return "syr_SY"; /* An extinct language. */ + } + return "syr"; + case LANG_TAGALOG: + switch (sub) + { + case SUBLANG_TAGALOG_PHILIPPINES: return "tl_PH"; /* or "fil_PH"? */ + } + return "tl"; /* or "fil"? */ + case LANG_TAJIK: + switch (sub) + { + case 0x1f: return "tg"; + case SUBLANG_TAJIK_TAJIKISTAN: return "tg_TJ"; + } + return "tg"; + case LANG_TAMAZIGHT: + /* Note: Microsoft uses the non-ISO language code "tmz". */ + switch (sub) + { + /* FIXME: Adjust this when Tamazight locales appear on Unix. */ + case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; + case 0x1f: return "ber@latin"; + case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; + } + return "ber"; + case LANG_TAMIL: + switch (sub) + { + case SUBLANG_TAMIL_INDIA: return "ta_IN"; + } + return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ + case LANG_TATAR: + switch (sub) + { + case SUBLANG_TATAR_RUSSIA: return "tt_RU"; + } + return "tt"; + case LANG_TELUGU: + switch (sub) + { + case SUBLANG_TELUGU_INDIA: return "te_IN"; + } + return "te"; + case LANG_THAI: + switch (sub) + { + case SUBLANG_THAI_THAILAND: return "th_TH"; + } + return "th"; + case LANG_TIBETAN: + switch (sub) + { + case SUBLANG_TIBETAN_PRC: + /* Most Tibetans would not like "bo_CN". But Tibet does not yet + have a country code of its own. */ + return "bo"; + case SUBLANG_TIBETAN_BHUTAN: return "bo_BT"; + } + return "bo"; + case LANG_TIGRINYA: + switch (sub) + { + case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; + case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; + } + return "ti"; + case LANG_TSONGA: + switch (sub) + { + case SUBLANG_DEFAULT: return "ts_ZA"; + } + return "ts"; + case LANG_TSWANA: + /* Spoken in South Africa, Botswana. */ + switch (sub) + { + case SUBLANG_TSWANA_SOUTH_AFRICA: return "tn_ZA"; + } + return "tn"; + case LANG_TURKISH: + switch (sub) + { + case SUBLANG_TURKISH_TURKEY: return "tr_TR"; + } + return "tr"; + case LANG_TURKMEN: + switch (sub) + { + case SUBLANG_TURKMEN_TURKMENISTAN: return "tk_TM"; + } + return "tk"; + case LANG_UIGHUR: + switch (sub) + { + case SUBLANG_UIGHUR_PRC: return "ug_CN"; + } + return "ug"; + case LANG_UKRAINIAN: + switch (sub) + { + case SUBLANG_UKRAINIAN_UKRAINE: return "uk_UA"; + } + return "uk"; + case LANG_URDU: + switch (sub) + { + case SUBLANG_URDU_PAKISTAN: return "ur_PK"; + case SUBLANG_URDU_INDIA: return "ur_IN"; + } + return "ur"; + case LANG_UZBEK: + switch (sub) + { + case 0x1f: return "uz"; + case SUBLANG_UZBEK_LATIN: return "uz_UZ"; + case 0x1e: return "uz@cyrillic"; + case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; + } + return "uz"; + case LANG_VENDA: + switch (sub) + { + case SUBLANG_DEFAULT: return "ve_ZA"; + } + return "ve"; + case LANG_VIETNAMESE: + switch (sub) + { + case SUBLANG_VIETNAMESE_VIETNAM: return "vi_VN"; + } + return "vi"; + case LANG_WELSH: + switch (sub) + { + case SUBLANG_WELSH_UNITED_KINGDOM: return "cy_GB"; + } + return "cy"; + case LANG_WOLOF: + switch (sub) + { + case SUBLANG_WOLOF_SENEGAL: return "wo_SN"; + } + return "wo"; + case LANG_XHOSA: + switch (sub) + { + case SUBLANG_XHOSA_SOUTH_AFRICA: return "xh_ZA"; + } + return "xh"; + case LANG_YAKUT: + switch (sub) + { + case SUBLANG_YAKUT_RUSSIA: return "sah_RU"; + } + return "sah"; + case LANG_YI: + switch (sub) + { + case SUBLANG_YI_PRC: return "ii_CN"; + } + return "ii"; + case LANG_YIDDISH: + switch (sub) + { + case SUBLANG_DEFAULT: return "yi_IL"; + } + return "yi"; + case LANG_YORUBA: + switch (sub) + { + case SUBLANG_YORUBA_NIGERIA: return "yo_NG"; + } + return "yo"; + case LANG_ZULU: + switch (sub) + { + case SUBLANG_ZULU_SOUTH_AFRICA: return "zu_ZA"; + } + return "zu"; + default: return "C"; + } } } +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_from_win32_LCID (LCID lcid) +{ + LANGID langid; + + /* Strip off the sorting rules, keep only the language part. */ + langid = LANGIDFROMLCID (lcid); + + return gl_locale_name_from_win32_LANGID (langid); +} + +#endif + + +#if HAVE_USELOCALE /* glibc or MacOS X */ + +/* Simple hash set of strings. We don't want to drag in lots of hash table + code here. */ + +# define SIZE_BITS (sizeof (size_t) * CHAR_BIT) + +/* A hash function for NUL-terminated char* strings using + the method described by Bruno Haible. + See http://www.haible.de/bruno/hashfunc.html. */ +static size_t +string_hash (const void *x) +{ + const char *s = (const char *) x; + size_t h = 0; + + for (; *s; s++) + h = *s + ((h << 9) | (h >> (SIZE_BITS - 9))); + + return h; +} + +/* A hash table of fixed size. Multiple threads can access it read-only + simultaneously, but only one thread can insert into it at the same time. */ + +/* A node in a hash bucket collision list. */ +struct hash_node + { + struct hash_node * volatile next; + char contents[100]; /* has variable size */ + }; + +# define HASH_TABLE_SIZE 257 +static struct hash_node * volatile struniq_hash_table[HASH_TABLE_SIZE] + /* = { NULL, ..., NULL } */; + +/* This lock protects the struniq_hash_table against multiple simultaneous + insertions. */ +gl_lock_define_initialized(static, struniq_lock) + +/* Store a copy of the given string in a string pool with indefinite extent. + Return a pointer to this copy. */ +static const char * +struniq (const char *string) +{ + size_t hashcode = string_hash (string); + size_t slot = hashcode % HASH_TABLE_SIZE; + size_t size; + struct hash_node *new_node; + struct hash_node *p; + for (p = struniq_hash_table[slot]; p != NULL; p = p->next) + if (strcmp (p->contents, string) == 0) + return p->contents; + size = strlen (string) + 1; + new_node = + (struct hash_node *) + malloc (offsetof (struct hash_node, contents[0]) + size); + if (new_node == NULL) + /* Out of memory. Return a statically allocated string. */ + return "C"; + memcpy (new_node->contents, string, size); + /* Lock while inserting new_node. */ + gl_lock_lock (struniq_lock); + /* Check whether another thread already added the string while we were + waiting on the lock. */ + for (p = struniq_hash_table[slot]; p != NULL; p = p->next) + if (strcmp (p->contents, string) == 0) + { + free (new_node); + new_node = p; + goto done; + } + /* Really insert new_node into the hash table. Fill new_node entirely first, + because other threads may be iterating over the linked list. */ + new_node->next = struniq_hash_table[slot]; + struniq_hash_table[slot] = new_node; + done: + /* Unlock after new_node is inserted. */ + gl_lock_unlock (struniq_lock); + return new_node->contents; +} + #endif + +#if defined IN_LIBINTL || HAVE_USELOCALE + +/* Like gl_locale_name_thread, except that the result is not in storage of + indefinite extent. */ +# if !defined IN_LIBINTL +static +# endif +const char * +gl_locale_name_thread_unsafe (int category, const char *categoryname) +{ +# if HAVE_USELOCALE + { + locale_t thread_locale = uselocale (NULL); + if (thread_locale != LC_GLOBAL_LOCALE) + { +# if __GLIBC__ >= 2 + /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in + glibc < 2.12. + See . */ + const char *name = + nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); + if (name[0] == '\0') + /* Fallback code for glibc < 2.4, which did not implement + nl_langinfo (_NL_LOCALE_NAME (category)). */ + name = thread_locale->__names[category]; + return name; +# endif +# if defined __APPLE__ && defined __MACH__ /* MacOS X */ + /* The locale name is found deep in an undocumented data structure. + Since it's stored in a buffer of size 32 and newlocale() rejects + locale names of length > 31, we can assume that it is NUL terminated + in this buffer. But we need to make a copy of the locale name, of + indefinite extent. */ + struct _xlocale_part1_v0 /* used in MacOS X 10.5 */ + { + int32_t __refcount; + void (*__free_extra)(void *); + __darwin_mbstate_t __mbs[10]; + int64_t __magic; + }; + struct _xlocale_part1_v1 /* used in MacOS X >= 10.6.0 */ + { + int32_t __refcount; + void (*__free_extra)(void *); + __darwin_mbstate_t __mbs[10]; + /*pthread_lock_t*/ int __lock; + int64_t __magic; + }; + struct _xlocale_part2 + { + int64_t __magic; + unsigned char __collate_load_error; + unsigned char __collate_substitute_nontrivial; + unsigned char _messages_using_locale; + unsigned char _monetary_using_locale; + unsigned char _numeric_using_locale; + unsigned char _time_using_locale; + unsigned char __mlocale_changed; + unsigned char __nlocale_changed; + unsigned char __numeric_fp_cvt; + struct __xlocale_st_collate *__lc_collate; + struct __xlocale_st_runelocale *__lc_ctype; + struct __xlocale_st_messages *__lc_messages; + struct __xlocale_st_monetary *__lc_monetary; + struct __xlocale_st_numeric *__lc_numeric; + struct _xlocale *__lc_numeric_loc; + struct __xlocale_st_time *__lc_time; + /* more */ + }; + struct __xlocale_st_collate + { + int32_t __refcount; + void (*__free_extra)(void *); + char __encoding[32]; + /* more */ + }; + struct __xlocale_st_runelocale + { + int32_t __refcount; + void (*__free_extra)(void *); + char __ctype_encoding[32]; + /* more */ + }; + struct __xlocale_st_messages + { + int32_t __refcount; + void (*__free_extra)(void *); + char *_messages_locale_buf; + /* more */ + }; + struct __xlocale_st_monetary + { + int32_t __refcount; + void (*__free_extra)(void *); + char *_monetary_locale_buf; + /* more */ + }; + struct __xlocale_st_numeric { + int32_t __refcount; + void (*__free_extra)(void *); + char *_numeric_locale_buf; + /* more */ + }; + struct __xlocale_st_time { + int32_t __refcount; + void (*__free_extra)(void *); + char *_time_locale_buf; + /* more */ + }; + struct _xlocale_part2 *tlp; + if (((struct _xlocale_part1_v0 *) thread_locale)->__magic + == 0x786C6F63616C6530LL) + /* MacOS X 10.5 */ + tlp = + (struct _xlocale_part2 *) + &((struct _xlocale_part1_v0 *) thread_locale)->__magic; + else if (((struct _xlocale_part1_v1 *) thread_locale)->__magic + == 0x786C6F63616C6530LL) + /* MacOS X >= 10.6.0 */ + tlp = + (struct _xlocale_part2 *) + &((struct _xlocale_part1_v1 *) thread_locale)->__magic; + else + /* Unsupported version of MacOS X: The internals of 'struct _xlocale' + have changed again. */ + return ""; + switch (category) + { + case LC_CTYPE: + return tlp->__lc_ctype->__ctype_encoding; + case LC_NUMERIC: + return tlp->_numeric_using_locale + ? tlp->__lc_numeric->_numeric_locale_buf + : "C"; + case LC_TIME: + return tlp->_time_using_locale + ? tlp->__lc_time->_time_locale_buf + : "C"; + case LC_COLLATE: + return !tlp->__collate_load_error + ? tlp->__lc_collate->__encoding + : "C"; + case LC_MONETARY: + return tlp->_monetary_using_locale + ? tlp->__lc_monetary->_monetary_locale_buf + : "C"; + case LC_MESSAGES: + return tlp->_messages_using_locale + ? tlp->__lc_messages->_messages_locale_buf + : "C"; + default: /* We shouldn't get here. */ + return ""; + } +# endif + } + } +# endif + return NULL; +} + +#endif + +const char * +gl_locale_name_thread (int category, const char *categoryname) +{ +#if HAVE_USELOCALE + const char *name = gl_locale_name_thread_unsafe (category, categoryname); + if (name != NULL) + return struniq (name); +#endif + return NULL; +} + /* XPG3 defines the result of 'setlocale (category, NULL)' as: "Directs 'setlocale()' to query 'category' and return the current setting of 'local'." @@ -985,12 +2775,6 @@ # define HAVE_LOCALE_NULL #endif -/* Determine the current locale's name, and canonicalize it into XPG syntax - language[_territory][.codeset][@modifier] - The codeset part in the result is not reliable; the locale_charset() - should be used for codeset information instead. - The result must not be freed; it is statically allocated. */ - const char * gl_locale_name_posix (int category, const char *categoryname) { @@ -999,6 +2783,30 @@ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else + /* On other systems we ignore what setlocale reports and instead look at the + environment variables directly. This is necessary + 1. on systems which have a facility for customizing the default locale + (MacOS X, native Windows, Cygwin) and where the system's setlocale() + function ignores this default locale (MacOS X, Cygwin), in two cases: + a. when the user missed to use the setlocale() override from libintl + (for example by not including ), + b. when setlocale supports only the "C" locale, such as on Cygwin + 1.5.x. In this case even the override from libintl cannot help. + 2. on all systems where setlocale supports only the "C" locale. */ + /* Strictly speaking, it is a POSIX violation to look at the environment + variables regardless whether setlocale has been called or not. POSIX + says: + "For C-language programs, the POSIX locale shall be the + default locale when the setlocale() function is not called." + But we assume that all programs that use internationalized APIs call + setlocale (LC_ALL, ""). */ + return gl_locale_name_environ (category, categoryname); +#endif +} + +const char * +gl_locale_name_environ (int category, const char *categoryname) +{ const char *retval; /* Setting of LC_ALL overrides all other. */ @@ -1012,10 +2820,21 @@ /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') - return retval; + { +#if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE + /* MacOS X 10.2 or newer. + Ignore invalid LANG value set by the Terminal application. */ + if (strcmp (retval, "UTF-8") != 0) +#endif +#if defined __CYGWIN__ + /* Cygwin. + Ignore dummy LANG value set by ~/.profile. */ + if (strcmp (retval, "C.UTF-8") != 0) +#endif + return retval; + } return NULL; -#endif } const char * @@ -1028,9 +2847,28 @@ implementation-defined locale. Some implementations may provide facilities for local installation administrators to set the default locale, customizing it for each location. POSIX:2001 does not require - such a facility. */ + such a facility. -#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined(WIN32_NATIVE)) + The systems with such a facility are MacOS X and Windows: They provide a + GUI that allows the user to choose a locale. + - On MacOS X, by default, none of LC_* or LANG are set. Starting with + MacOS X 10.4 or 10.5, LANG is set for processes launched by the + 'Terminal' application (but sometimes to an incorrect value "UTF-8"). + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C" locale. + - On native Windows, by default, none of LC_* or LANG are set. + When no environment variable is set, setlocale (LC_ALL, "") uses the + locale chosen by the user. + - On Cygwin 1.5.x, by default, none of LC_* or LANG are set. + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C" locale. + - On Cygwin 1.7, by default, LANG is set to "C.UTF-8" when the default + ~/.profile is executed. + When no environment variable is set, setlocale (LC_ALL, "") uses the + "C.UTF-8" locale, which operates in the same way as the "C" locale. + */ + +#if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined WIN32_NATIVE || defined __CYGWIN__) /* The system does not have a way of setting the locale, other than the POSIX specified environment variables. We use C as default locale. */ @@ -1051,454 +2889,68 @@ if (cached_localename == NULL) { - char namebuf[256]; + char namebuf[256]; # if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ - CFLocaleRef locale = CFLocaleCopyCurrent (); - CFStringRef name = CFLocaleGetIdentifier (locale); + CFLocaleRef locale = CFLocaleCopyCurrent (); + CFStringRef name = CFLocaleGetIdentifier (locale); - if (CFStringGetCString (name, namebuf, sizeof(namebuf), - kCFStringEncodingASCII)) - { - gl_locale_name_canonicalize (namebuf); - cached_localename = strdup (namebuf); - } - CFRelease (locale); + if (CFStringGetCString (name, namebuf, sizeof (namebuf), + kCFStringEncodingASCII)) + { + gl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } + CFRelease (locale); # elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ - CFTypeRef value = - CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), - kCFPreferencesCurrentApplication); - if (value != NULL - && CFGetTypeID (value) == CFStringGetTypeID () - && CFStringGetCString ((CFStringRef)value, namebuf, sizeof(namebuf), - kCFStringEncodingASCII)) - { - gl_locale_name_canonicalize (namebuf); - cached_localename = strdup (namebuf); - } + CFTypeRef value = + CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), + kCFPreferencesCurrentApplication); + if (value != NULL + && CFGetTypeID (value) == CFStringGetTypeID () + && CFStringGetCString ((CFStringRef)value, + namebuf, sizeof (namebuf), + kCFStringEncodingASCII)) + { + gl_locale_name_canonicalize (namebuf); + cached_localename = strdup (namebuf); + } # endif - if (cached_localename == NULL) - cached_localename = "C"; + if (cached_localename == NULL) + cached_localename = "C"; } return cached_localename; } # endif -# if defined(WIN32_NATIVE) /* WIN32, not Cygwin */ +# if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ { LCID lcid; - LANGID langid; - int primary, sub; /* Use native Win32 API locale ID. */ lcid = GetThreadLocale (); - /* Strip off the sorting rules, keep only the language part. */ - langid = LANGIDFROMLCID (lcid); - - /* Split into language and territory part. */ - primary = PRIMARYLANGID (langid); - sub = SUBLANGID (langid); - - /* Dispatch on language. - See also http://www.unicode.org/unicode/onlinedat/languages.html . - For details about languages, see http://www.ethnologue.com/ . */ - switch (primary) - { - case LANG_AFRIKAANS: return "af_ZA"; - case LANG_ALBANIAN: return "sq_AL"; - case LANG_AMHARIC: return "am_ET"; - case LANG_ARABIC: - switch (sub) - { - case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; - case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; - case SUBLANG_ARABIC_EGYPT: return "ar_EG"; - case SUBLANG_ARABIC_LIBYA: return "ar_LY"; - case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; - case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; - case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; - case SUBLANG_ARABIC_OMAN: return "ar_OM"; - case SUBLANG_ARABIC_YEMEN: return "ar_YE"; - case SUBLANG_ARABIC_SYRIA: return "ar_SY"; - case SUBLANG_ARABIC_JORDAN: return "ar_JO"; - case SUBLANG_ARABIC_LEBANON: return "ar_LB"; - case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; - case SUBLANG_ARABIC_UAE: return "ar_AE"; - case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; - case SUBLANG_ARABIC_QATAR: return "ar_QA"; - } - return "ar"; - case LANG_ARMENIAN: return "hy_AM"; - case LANG_ASSAMESE: return "as_IN"; - case LANG_AZERI: - switch (sub) - { - /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ - case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; - case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; - } - return "az"; - case LANG_BASQUE: - switch (sub) - { - case SUBLANG_DEFAULT: return "eu_ES"; - } - return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ - case LANG_BELARUSIAN: return "be_BY"; - case LANG_BENGALI: - switch (sub) - { - case SUBLANG_BENGALI_INDIA: return "bn_IN"; - case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; - } - return "bn"; - case LANG_BULGARIAN: return "bg_BG"; - case LANG_BURMESE: return "my_MM"; - case LANG_CAMBODIAN: return "km_KH"; - case LANG_CATALAN: return "ca_ES"; - case LANG_CHEROKEE: return "chr_US"; - case LANG_CHINESE: - switch (sub) - { - case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW"; - case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN"; - case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; - case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; - case SUBLANG_CHINESE_MACAU: return "zh_MO"; - } - return "zh"; - case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN - * What used to be called Serbo-Croatian - * should really now be two separate - * languages because of political reasons. - * (Says tml, who knows nothing about Serbian - * or Croatian.) - * (I can feel those flames coming already.) - */ - switch (sub) - { - case SUBLANG_DEFAULT: return "hr_HR"; - case SUBLANG_SERBIAN_LATIN: return "sr_CS"; - case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; - } - return "hr"; - case LANG_CZECH: return "cs_CZ"; - case LANG_DANISH: return "da_DK"; - case LANG_DIVEHI: return "dv_MV"; - case LANG_DUTCH: - switch (sub) - { - case SUBLANG_DUTCH: return "nl_NL"; - case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; - } - return "nl"; - case LANG_EDO: return "bin_NG"; - case LANG_ENGLISH: - switch (sub) - { - /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought - * English was the language spoken in England. - * Oh well. - */ - case SUBLANG_ENGLISH_US: return "en_US"; - case SUBLANG_ENGLISH_UK: return "en_GB"; - case SUBLANG_ENGLISH_AUS: return "en_AU"; - case SUBLANG_ENGLISH_CAN: return "en_CA"; - case SUBLANG_ENGLISH_NZ: return "en_NZ"; - case SUBLANG_ENGLISH_EIRE: return "en_IE"; - case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; - case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; - case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ - case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; - case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; - case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; - case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; - case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; - case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; - case SUBLANG_ENGLISH_INDIA: return "en_IN"; - case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; - case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; - } - return "en"; - case LANG_ESTONIAN: return "et_EE"; - case LANG_FAEROESE: return "fo_FO"; - case LANG_FARSI: return "fa_IR"; - case LANG_FINNISH: return "fi_FI"; - case LANG_FRENCH: - switch (sub) - { - case SUBLANG_FRENCH: return "fr_FR"; - case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; - case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; - case SUBLANG_FRENCH_SWISS: return "fr_CH"; - case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; - case SUBLANG_FRENCH_MONACO: return "fr_MC"; - case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ - case SUBLANG_FRENCH_REUNION: return "fr_RE"; - case SUBLANG_FRENCH_CONGO: return "fr_CG"; - case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; - case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; - case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; - case SUBLANG_FRENCH_MALI: return "fr_ML"; - case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; - case SUBLANG_FRENCH_HAITI: return "fr_HT"; - } - return "fr"; - case LANG_FRISIAN: return "fy_NL"; - case LANG_FULFULDE: - /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ - return "ff_NG"; - case LANG_GAELIC: - switch (sub) - { - case 0x01: /* SCOTTISH */ return "gd_GB"; - case 0x02: /* IRISH */ return "ga_IE"; - } - return "C"; - case LANG_GALICIAN: return "gl_ES"; - case LANG_GEORGIAN: return "ka_GE"; - case LANG_GERMAN: - switch (sub) - { - case SUBLANG_GERMAN: return "de_DE"; - case SUBLANG_GERMAN_SWISS: return "de_CH"; - case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; - case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; - case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; - } - return "de"; - case LANG_GREEK: return "el_GR"; - case LANG_GUARANI: return "gn_PY"; - case LANG_GUJARATI: return "gu_IN"; - case LANG_HAUSA: return "ha_NG"; - case LANG_HAWAIIAN: - /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) - or Hawaii Creole English ("cpe_US", 600000 speakers)? */ - return "cpe_US"; - case LANG_HEBREW: return "he_IL"; - case LANG_HINDI: return "hi_IN"; - case LANG_HUNGARIAN: return "hu_HU"; - case LANG_IBIBIO: return "nic_NG"; - case LANG_ICELANDIC: return "is_IS"; - case LANG_IGBO: return "ig_NG"; - case LANG_INDONESIAN: return "id_ID"; - case LANG_INUKTITUT: return "iu_CA"; - case LANG_ITALIAN: - switch (sub) - { - case SUBLANG_ITALIAN: return "it_IT"; - case SUBLANG_ITALIAN_SWISS: return "it_CH"; - } - return "it"; - case LANG_JAPANESE: return "ja_JP"; - case LANG_KANNADA: return "kn_IN"; - case LANG_KANURI: return "kr_NG"; - case LANG_KASHMIRI: - switch (sub) - { - case SUBLANG_DEFAULT: return "ks_PK"; - case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; - } - return "ks"; - case LANG_KAZAK: return "kk_KZ"; - case LANG_KONKANI: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "kok_IN"; - case LANG_KOREAN: return "ko_KR"; - case LANG_KYRGYZ: return "ky_KG"; - case LANG_LAO: return "lo_LA"; - case LANG_LATIN: return "la_VA"; - case LANG_LATVIAN: return "lv_LV"; - case LANG_LITHUANIAN: return "lt_LT"; - case LANG_MACEDONIAN: return "mk_MK"; - case LANG_MALAY: - switch (sub) - { - case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; - case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; - } - return "ms"; - case LANG_MALAYALAM: return "ml_IN"; - case LANG_MALTESE: return "mt_MT"; - case LANG_MANIPURI: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "mni_IN"; - case LANG_MARATHI: return "mr_IN"; - case LANG_MONGOLIAN: - switch (sub) - { - case SUBLANG_DEFAULT: return "mn_MN"; - } - return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ - case LANG_NEPALI: - switch (sub) - { - case SUBLANG_DEFAULT: return "ne_NP"; - case SUBLANG_NEPALI_INDIA: return "ne_IN"; - } - return "ne"; - case LANG_NORWEGIAN: - switch (sub) - { - case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; - case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; - } - return "no"; - case LANG_ORIYA: return "or_IN"; - case LANG_OROMO: return "om_ET"; - case LANG_PAPIAMENTU: return "pap_AN"; - case LANG_PASHTO: - return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ - case LANG_POLISH: return "pl_PL"; - case LANG_PORTUGUESE: - switch (sub) - { - case SUBLANG_PORTUGUESE: return "pt_PT"; - /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. - Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ - case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; - } - return "pt"; - case LANG_PUNJABI: - switch (sub) - { - case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ - case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ - } - return "pa"; - case LANG_RHAETO_ROMANCE: return "rm_CH"; - case LANG_ROMANIAN: - switch (sub) - { - case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; - case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; - } - return "ro"; - case LANG_RUSSIAN: - switch (sub) - { - case SUBLANG_DEFAULT: return "ru_RU"; - } - return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ - case LANG_SAAMI: /* actually Northern Sami */ return "se_NO"; - case LANG_SANSKRIT: return "sa_IN"; - case LANG_SINDHI: - switch (sub) - { - case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; - case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF"; - } - return "sd"; - case LANG_SINHALESE: return "si_LK"; - case LANG_SLOVAK: return "sk_SK"; - case LANG_SLOVENIAN: return "sl_SI"; - case LANG_SOMALI: return "so_SO"; - case LANG_SORBIAN: - /* FIXME: Adjust this when such locales appear on Unix. */ - return "wen_DE"; - case LANG_SPANISH: - switch (sub) - { - case SUBLANG_SPANISH: return "es_ES"; - case SUBLANG_SPANISH_MEXICAN: return "es_MX"; - case SUBLANG_SPANISH_MODERN: - return "es_ES@modern"; /* not seen on Unix */ - case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; - case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; - case SUBLANG_SPANISH_PANAMA: return "es_PA"; - case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; - case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; - case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; - case SUBLANG_SPANISH_PERU: return "es_PE"; - case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; - case SUBLANG_SPANISH_ECUADOR: return "es_EC"; - case SUBLANG_SPANISH_CHILE: return "es_CL"; - case SUBLANG_SPANISH_URUGUAY: return "es_UY"; - case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; - case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; - case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; - case SUBLANG_SPANISH_HONDURAS: return "es_HN"; - case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; - case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; - } - return "es"; - case LANG_SUTU: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ - case LANG_SWAHILI: return "sw_KE"; - case LANG_SWEDISH: - switch (sub) - { - case SUBLANG_DEFAULT: return "sv_SE"; - case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; - } - return "sv"; - case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */ - case LANG_TAGALOG: return "tl_PH"; - case LANG_TAJIK: return "tg_TJ"; - case LANG_TAMAZIGHT: - switch (sub) - { - /* FIXME: Adjust this when Tamazight locales appear on Unix. */ - case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; - case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; - } - return "ber_MA"; - case LANG_TAMIL: - switch (sub) - { - case SUBLANG_DEFAULT: return "ta_IN"; - } - return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ - case LANG_TATAR: return "tt_RU"; - case LANG_TELUGU: return "te_IN"; - case LANG_THAI: return "th_TH"; - case LANG_TIBETAN: return "bo_CN"; - case LANG_TIGRINYA: - switch (sub) - { - case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; - case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; - } - return "ti"; - case LANG_TSONGA: return "ts_ZA"; - case LANG_TSWANA: return "tn_BW"; - case LANG_TURKISH: return "tr_TR"; - case LANG_TURKMEN: return "tk_TM"; - case LANG_UKRAINIAN: return "uk_UA"; - case LANG_URDU: - switch (sub) - { - case SUBLANG_URDU_PAKISTAN: return "ur_PK"; - case SUBLANG_URDU_INDIA: return "ur_IN"; - } - return "ur"; - case LANG_UZBEK: - switch (sub) - { - case SUBLANG_UZBEK_LATIN: return "uz_UZ"; - case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; - } - return "uz"; - case LANG_VENDA: return "ve_ZA"; - case LANG_VIETNAMESE: return "vi_VN"; - case LANG_WELSH: return "cy_GB"; - case LANG_XHOSA: return "xh_ZA"; - case LANG_YI: return "sit_CN"; - case LANG_YIDDISH: return "yi_IL"; - case LANG_YORUBA: return "yo_NG"; - case LANG_ZULU: return "zu_ZA"; - default: return "C"; - } + return gl_locale_name_from_win32_LCID (lcid); } # endif #endif } +/* Determine the current locale's name, and canonicalize it into XPG syntax + language[_territory][.codeset][@modifier] + The codeset part in the result is not reliable; the locale_charset() + should be used for codeset information instead. + The result must not be freed; it is statically allocated. */ + const char * gl_locale_name (int category, const char *categoryname) { const char *retval; + retval = gl_locale_name_thread (category, categoryname); + if (retval != NULL) + return retval; + retval = gl_locale_name_posix (category, categoryname); if (retval != NULL) return retval; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/localename.h gettext-0.18.1.1/gettext-tools/gnulib-lib/localename.h --- gettext-0.17/gettext-tools/gnulib-lib/localename.h 2007-10-31 12:36:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/localename.h 2010-05-24 09:42:45.000000000 +0000 @@ -1,9 +1,9 @@ /* Determine name of the currently selected locale. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -25,9 +25,9 @@ /* Determine the current locale's name. - It considers both the POSIX notion of locale name (see function - gl_locale_name_posix) and the system notion of locale name (see function - gl_locale_name_default). + It considers both the POSIX notion of locale name (see functions + gl_locale_name_thread and gl_locale_name_posix) and the system notion + of locale name (see function gl_locale_name_default). CATEGORY is a locale category abbreviation, as defined in , but not LC_ALL. E.g. LC_MESSAGES. CATEGORYNAME is the name of CATEGORY as a string, e.g. "LC_MESSAGES". @@ -38,8 +38,21 @@ The result must not be freed; it is statically allocated. */ extern const char * gl_locale_name (int category, const char *categoryname); -/* Determine the current locale's name, as specified by setlocale() calls - or by environment variables. +/* Determine the current per-thread locale's name, as specified by uselocale() + calls. + CATEGORY is a locale category abbreviation, as defined in , + but not LC_ALL. E.g. LC_MESSAGES. + CATEGORYNAME is the name of CATEGORY as a string, e.g. "LC_MESSAGES". + Return the locale category's name, canonicalized into XPG syntax + language[_territory][.codeset][@modifier] + or NULL if no locale has been specified for the current thread. + The codeset part in the result is not reliable; the locale_charset() + should be used for codeset information instead. + The result must not be freed; it is statically allocated. */ +extern const char * gl_locale_name_thread (int category, const char *categoryname); + +/* Determine the thread-independent current locale's name, as specified by + setlocale() calls or by environment variables. CATEGORY is a locale category abbreviation, as defined in , but not LC_ALL. E.g. LC_MESSAGES. CATEGORYNAME is the name of CATEGORY as a string, e.g. "LC_MESSAGES". @@ -52,10 +65,17 @@ The result must not be freed; it is statically allocated. */ extern const char * gl_locale_name_posix (int category, const char *categoryname); +/* Determine the default locale's name, as specified by environment + variables. + Return the locale category's name, or NULL if no locale has been specified + by environment variables. + The result must not be freed; it is statically allocated. */ +extern const char * gl_locale_name_environ (int category, const char *categoryname); + /* Determine the default locale's name. This is the current locale's name, - if not specified by setlocale() calls or by environment variables. This - locale name is usually determined by systems settings that the user can - manipulate through a GUI. + if not specified by uselocale() calls, by setlocale() calls, or by + environment variables. This locale name is usually determined by systems + settings that the user can manipulate through a GUI. Quoting POSIX:2001: "All implementations shall define a locale as the default locale, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/lock.c gettext-0.18.1.1/gettext-tools/gnulib-lib/lock.c --- gettext-0.17/gettext-tools/gnulib-lib/lock.c 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/lock.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,921 +0,0 @@ -/* Locking in multithreaded situations. - Copyright (C) 2005-2006 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Written by Bruno Haible , 2005. - Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, - gthr-win32.h. */ - -#include - -#include "lock.h" - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The function to be executed by a dummy thread. */ -static void * -dummy_thread_func (void *arg) -{ - return arg; -} - -int -glthread_in_use (void) -{ - static int tested; - static int result; /* 1: linked with -lpthread, 0: only with libc */ - - if (!tested) - { - pthread_t thread; - - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) - /* Thread creation failed. */ - result = 0; - else - { - /* Thread creation works. */ - void *retval; - if (pthread_join (thread, &retval) != 0) - abort (); - result = 1; - } - tested = 1; - } - return result; -} - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -# if HAVE_PTHREAD_RWLOCK - -# if !defined PTHREAD_RWLOCK_INITIALIZER - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) - abort (); - lock->initialized = 1; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_rwlock_rdlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_rwlock_wrlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_rwlock_unlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_rwlock_destroy (&lock->rwlock) != 0) - abort (); - lock->initialized = 0; -} - -# endif - -# else - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - if (pthread_mutex_init (&lock->lock, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_readers, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_writers, NULL) != 0) - abort (); - lock->waiting_writers_count = 0; - lock->runcount = 0; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - /* Test whether only readers are currently running, and whether the runcount - field will not overflow. */ - /* POSIX says: "It is implementation-defined whether the calling thread - acquires the lock when a writer does not hold the lock and there are - writers blocked on the lock." Let's say, no: give the writers a higher - priority. */ - while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ - if (pthread_cond_wait (&lock->waiting_readers, &lock->lock) != 0) - abort (); - } - lock->runcount++; - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - /* Test whether no readers or writers are currently running. */ - while (!(lock->runcount == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ - lock->waiting_writers_count++; - if (pthread_cond_wait (&lock->waiting_writers, &lock->lock) != 0) - abort (); - lock->waiting_writers_count--; - } - lock->runcount--; /* runcount becomes -1 */ - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - if (lock->runcount < 0) - { - /* Drop a writer lock. */ - if (!(lock->runcount == -1)) - abort (); - lock->runcount = 0; - } - else - { - /* Drop a reader lock. */ - if (!(lock->runcount > 0)) - abort (); - lock->runcount--; - } - if (lock->runcount == 0) - { - /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ - if (lock->waiting_writers_count > 0) - { - /* Wake up one of the waiting writers. */ - if (pthread_cond_signal (&lock->waiting_writers) != 0) - abort (); - } - else - { - /* Wake up all waiting readers. */ - if (pthread_cond_broadcast (&lock->waiting_readers) != 0) - abort (); - } - } - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (pthread_mutex_destroy (&lock->lock) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_readers) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_writers) != 0) - abort (); -} - -# endif - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -# if HAVE_PTHREAD_MUTEX_RECURSIVE - -# if !(defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - pthread_mutexattr_t attributes; - - if (pthread_mutexattr_init (&attributes) != 0) - abort (); - if (pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE) != 0) - abort (); - if (pthread_mutex_init (&lock->recmutex, &attributes) != 0) - abort (); - if (pthread_mutexattr_destroy (&attributes) != 0) - abort (); - lock->initialized = 1; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_recursive_lock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_mutex_lock (&lock->recmutex) != 0) - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_mutex_unlock (&lock->recmutex) != 0) - abort (); -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_mutex_destroy (&lock->recmutex) != 0) - abort (); - lock->initialized = 0; -} - -# endif - -# else - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - if (pthread_mutex_init (&lock->mutex, NULL) != 0) - abort (); - lock->owner = (pthread_t) 0; - lock->depth = 0; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - pthread_t self = pthread_self (); - if (lock->owner != self) - { - if (pthread_mutex_lock (&lock->mutex) != 0) - abort (); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != pthread_self ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = (pthread_t) 0; - if (pthread_mutex_unlock (&lock->mutex) != 0) - abort (); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != (pthread_t) 0) - abort (); - if (pthread_mutex_destroy (&lock->mutex) != 0) - abort (); -} - -# endif - -/* -------------------------- gl_once_t datatype -------------------------- */ - -static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; - -int -glthread_once_singlethreaded (pthread_once_t *once_control) -{ - /* We don't know whether pthread_once_t is an integer type, a floating-point - type, a pointer type, or a structure type. */ - char *firstbyte = (char *)once_control; - if (*firstbyte == *(const char *)&fresh_once) - { - /* First time use of once_control. Invert the first byte. */ - *firstbyte = ~ *(const char *)&fresh_once; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once_call (void *arg) -{ - void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; - void (*initfunction) (void) = *gl_once_temp_addr; - initfunction (); -} - -int -glthread_once_singlethreaded (pth_once_t *once_control) -{ - /* We know that pth_once_t is an integer type. */ - if (*once_control == PTH_ONCE_INIT) - { - /* First time use of once_control. Invert the marker. */ - *once_control = ~ PTH_ONCE_INIT; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - if (mutex_init (&lock->mutex, USYNC_THREAD, NULL) != 0) - abort (); - lock->owner = (thread_t) 0; - lock->depth = 0; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - thread_t self = thr_self (); - if (lock->owner != self) - { - if (mutex_lock (&lock->mutex) != 0) - abort (); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != thr_self ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = (thread_t) 0; - if (mutex_unlock (&lock->mutex) != 0) - abort (); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != (thread_t) 0) - abort (); - if (mutex_destroy (&lock->mutex) != 0) - abort (); -} - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) -{ - if (!once_control->inited) - { - /* Use the mutex to guarantee that if another thread is already calling - the initfunction, this thread waits until it's finished. */ - if (mutex_lock (&once_control->mutex) != 0) - abort (); - if (!once_control->inited) - { - once_control->inited = 1; - initfunction (); - } - if (mutex_unlock (&once_control->mutex) != 0) - abort (); - } -} - -int -glthread_once_singlethreaded (gl_once_t *once_control) -{ - /* We know that gl_once_t contains an integer type. */ - if (!once_control->inited) - { - /* First time use of once_control. Invert the marker. */ - once_control->inited = ~ 0; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -void -glthread_lock_init (gl_lock_t *lock) -{ - InitializeCriticalSection (&lock->lock); - lock->guard.done = 1; -} - -void -glthread_lock_lock (gl_lock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_lock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); -} - -void -glthread_lock_unlock (gl_lock_t *lock) -{ - if (!lock->guard.done) - abort (); - LeaveCriticalSection (&lock->lock); -} - -void -glthread_lock_destroy (gl_lock_t *lock) -{ - if (!lock->guard.done) - abort (); - DeleteCriticalSection (&lock->lock); - lock->guard.done = 0; -} - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -static inline void -gl_waitqueue_init (gl_waitqueue_t *wq) -{ - wq->array = NULL; - wq->count = 0; - wq->alloc = 0; - wq->offset = 0; -} - -/* Enqueues the current thread, represented by an event, in a wait queue. - Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ -static HANDLE -gl_waitqueue_add (gl_waitqueue_t *wq) -{ - HANDLE event; - unsigned int index; - - if (wq->count == wq->alloc) - { - unsigned int new_alloc = 2 * wq->alloc + 1; - HANDLE *new_array = - (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); - if (new_array == NULL) - /* No more memory. */ - return INVALID_HANDLE_VALUE; - /* Now is a good opportunity to rotate the array so that its contents - starts at offset 0. */ - if (wq->offset > 0) - { - unsigned int old_count = wq->count; - unsigned int old_alloc = wq->alloc; - unsigned int old_offset = wq->offset; - unsigned int i; - if (old_offset + old_count > old_alloc) - { - unsigned int limit = old_offset + old_count - old_alloc; - for (i = 0; i < limit; i++) - new_array[old_alloc + i] = new_array[i]; - } - for (i = 0; i < old_count; i++) - new_array[i] = new_array[old_offset + i]; - wq->offset = 0; - } - wq->array = new_array; - wq->alloc = new_alloc; - } - event = CreateEvent (NULL, TRUE, FALSE, NULL); - if (event == INVALID_HANDLE_VALUE) - /* No way to allocate an event. */ - return INVALID_HANDLE_VALUE; - index = wq->offset + wq->count; - if (index >= wq->alloc) - index -= wq->alloc; - wq->array[index] = event; - wq->count++; - return event; -} - -/* Notifies the first thread from a wait queue and dequeues it. */ -static inline void -gl_waitqueue_notify_first (gl_waitqueue_t *wq) -{ - SetEvent (wq->array[wq->offset + 0]); - wq->offset++; - wq->count--; - if (wq->count == 0 || wq->offset == wq->alloc) - wq->offset = 0; -} - -/* Notifies all threads from a wait queue and dequeues them all. */ -static inline void -gl_waitqueue_notify_all (gl_waitqueue_t *wq) -{ - unsigned int i; - - for (i = 0; i < wq->count; i++) - { - unsigned int index = wq->offset + i; - if (index >= wq->alloc) - index -= wq->alloc; - SetEvent (wq->array[index]); - } - wq->count = 0; - wq->offset = 0; -} - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - InitializeCriticalSection (&lock->lock); - gl_waitqueue_init (&lock->waiting_readers); - gl_waitqueue_init (&lock->waiting_writers); - lock->runcount = 0; - lock->guard.done = 1; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); - /* Test whether only readers are currently running, and whether the runcount - field will not overflow. */ - if (!(lock->runcount + 1 > 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ - HANDLE event = gl_waitqueue_add (&lock->waiting_readers); - if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_readers, incremented lock->runcount. */ - if (!(lock->runcount > 0)) - abort (); - return; - } - else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount + 1 > 0)); - } - } - lock->runcount++; - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); - /* Test whether no readers or writers are currently running. */ - if (!(lock->runcount == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ - HANDLE event = gl_waitqueue_add (&lock->waiting_writers); - if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_writers, set lock->runcount = -1. */ - if (!(lock->runcount == -1)) - abort (); - return; - } - else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount == 0)); - } - } - lock->runcount--; /* runcount becomes -1 */ - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - abort (); - EnterCriticalSection (&lock->lock); - if (lock->runcount < 0) - { - /* Drop a writer lock. */ - if (!(lock->runcount == -1)) - abort (); - lock->runcount = 0; - } - else - { - /* Drop a reader lock. */ - if (!(lock->runcount > 0)) - abort (); - lock->runcount--; - } - if (lock->runcount == 0) - { - /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ - if (lock->waiting_writers.count > 0) - { - /* Wake up one of the waiting writers. */ - lock->runcount--; - gl_waitqueue_notify_first (&lock->waiting_writers); - } - else - { - /* Wake up all waiting readers. */ - lock->runcount += lock->waiting_readers.count; - gl_waitqueue_notify_all (&lock->waiting_readers); - } - } - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - abort (); - if (lock->runcount != 0) - abort (); - DeleteCriticalSection (&lock->lock); - if (lock->waiting_readers.array != NULL) - free (lock->waiting_readers.array); - if (lock->waiting_writers.array != NULL) - free (lock->waiting_writers.array); - lock->guard.done = 0; -} - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - lock->owner = 0; - lock->depth = 0; - InitializeCriticalSection (&lock->lock); - lock->guard.done = 1; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_recursive_lock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - { - DWORD self = GetCurrentThreadId (); - if (lock->owner != self) - { - EnterCriticalSection (&lock->lock); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); - } -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != GetCurrentThreadId ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = 0; - LeaveCriticalSection (&lock->lock); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != 0) - abort (); - DeleteCriticalSection (&lock->lock); - lock->guard.done = 0; -} - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) -{ - if (once_control->inited <= 0) - { - if (InterlockedIncrement (&once_control->started) == 0) - { - /* This thread is the first one to come to this once_control. */ - InitializeCriticalSection (&once_control->lock); - EnterCriticalSection (&once_control->lock); - once_control->inited = 0; - initfunction (); - once_control->inited = 1; - LeaveCriticalSection (&once_control->lock); - } - else - { - /* Undo last operation. */ - InterlockedDecrement (&once_control->started); - /* Some other thread has already started the initialization. - Yield the CPU while waiting for the other thread to finish - initializing and taking the lock. */ - while (once_control->inited < 0) - Sleep (0); - if (once_control->inited <= 0) - { - /* Take the lock. This blocks until the other thread has - finished calling the initfunction. */ - EnterCriticalSection (&once_control->lock); - LeaveCriticalSection (&once_control->lock); - if (!(once_control->inited > 0)) - abort (); - } - } - } -} - -#endif - -/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/lock.h gettext-0.18.1.1/gettext-tools/gnulib-lib/lock.h --- gettext-0.17/gettext-tools/gnulib-lib/lock.h 2007-11-05 01:02:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/lock.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,1104 +0,0 @@ -/* Locking in multithreaded situations. - Copyright (C) 2005-2007 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Written by Bruno Haible , 2005. - Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, - gthr-win32.h. */ - -/* This file contains locking primitives for use with a given thread library. - It does not contain primitives for creating threads or for other - synchronization primitives. - - Normal (non-recursive) locks: - Type: gl_lock_t - Declaration: gl_lock_define(extern, name) - Initializer: gl_lock_define_initialized(, name) - Initialization: gl_lock_init (name); - Taking the lock: gl_lock_lock (name); - Releasing the lock: gl_lock_unlock (name); - De-initialization: gl_lock_destroy (name); - - Read-Write (non-recursive) locks: - Type: gl_rwlock_t - Declaration: gl_rwlock_define(extern, name) - Initializer: gl_rwlock_define_initialized(, name) - Initialization: gl_rwlock_init (name); - Taking the lock: gl_rwlock_rdlock (name); - gl_rwlock_wrlock (name); - Releasing the lock: gl_rwlock_unlock (name); - De-initialization: gl_rwlock_destroy (name); - - Recursive locks: - Type: gl_recursive_lock_t - Declaration: gl_recursive_lock_define(extern, name) - Initializer: gl_recursive_lock_define_initialized(, name) - Initialization: gl_recursive_lock_init (name); - Taking the lock: gl_recursive_lock_lock (name); - Releasing the lock: gl_recursive_lock_unlock (name); - De-initialization: gl_recursive_lock_destroy (name); - - Once-only execution: - Type: gl_once_t - Initializer: gl_once_define(extern, name) - Execution: gl_once (name, initfunction); -*/ - - -#ifndef _LOCK_H -#define _LOCK_H - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The pthread_in_use() detection needs to be done at runtime. */ -# define pthread_in_use() \ - glthread_in_use () -extern int glthread_in_use (void); - -# endif - -# if USE_POSIX_THREADS_WEAK - -/* Use weak references to the POSIX threads library. */ - -/* Weak references avoid dragging in external libraries if the other parts - of the program don't use them. Here we use them, because we don't want - every program that uses libintl to depend on libpthread. This assumes - that libpthread would not be loaded after libintl; i.e. if libintl is - loaded first, by an executable that does not depend on libpthread, and - then a module is dynamically loaded that depends on libpthread, libintl - will not be multithread-safe. */ - -/* The way to test at runtime whether libpthread is present is to test - whether a function pointer's value, such as &pthread_mutex_init, is - non-NULL. However, some versions of GCC have a bug through which, in - PIC mode, &foo != NULL always evaluates to true if there is a direct - call to foo(...) in the same function. To avoid this, we test the - address of a function in libpthread that we don't use. */ - -# pragma weak pthread_mutex_init -# pragma weak pthread_mutex_lock -# pragma weak pthread_mutex_unlock -# pragma weak pthread_mutex_destroy -# pragma weak pthread_rwlock_init -# pragma weak pthread_rwlock_rdlock -# pragma weak pthread_rwlock_wrlock -# pragma weak pthread_rwlock_unlock -# pragma weak pthread_rwlock_destroy -# pragma weak pthread_once -# pragma weak pthread_cond_init -# pragma weak pthread_cond_wait -# pragma weak pthread_cond_signal -# pragma weak pthread_cond_broadcast -# pragma weak pthread_cond_destroy -# pragma weak pthread_mutexattr_init -# pragma weak pthread_mutexattr_settype -# pragma weak pthread_mutexattr_destroy -# ifndef pthread_self -# pragma weak pthread_self -# endif - -# if !PTHREAD_IN_USE_DETECTION_HARD -# pragma weak pthread_cancel -# define pthread_in_use() (pthread_cancel != NULL) -# endif - -# else - -# if !PTHREAD_IN_USE_DETECTION_HARD -# define pthread_in_use() 1 -# endif - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef pthread_mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - PTHREAD_MUTEX_INITIALIZER -# define gl_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -# if HAVE_PTHREAD_RWLOCK - -# ifdef PTHREAD_RWLOCK_INITIALIZER - -typedef pthread_rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - PTHREAD_RWLOCK_INITIALIZER -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -# else - -typedef struct - { - int initialized; - pthread_mutex_t guard; /* protects the initialization */ - pthread_rwlock_t rwlock; /* read-write lock */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { 0, PTHREAD_MUTEX_INITIALIZER } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -# endif - -# else - -typedef struct - { - pthread_mutex_t lock; /* protects the remaining fields */ - pthread_cond_t waiting_readers; /* waiting readers */ - pthread_cond_t waiting_writers; /* waiting writers */ - unsigned int waiting_writers_count; /* number of waiting writers */ - int runcount; /* number of readers running, or -1 when a writer runs */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -# endif - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -# if HAVE_PTHREAD_MUTEX_RECURSIVE - -# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP - -typedef pthread_mutex_t gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; -# ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER -# define gl_recursive_lock_initializer \ - PTHREAD_RECURSIVE_MUTEX_INITIALIZER -# else -# define gl_recursive_lock_initializer \ - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP -# endif -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -# else - -typedef struct - { - pthread_mutex_t recmutex; /* recursive mutex */ - pthread_mutex_t guard; /* protects the initialization */ - int initialized; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -# endif - -# else - -/* Old versions of POSIX threads on Solaris did not have recursive locks. - We have to implement them ourselves. */ - -typedef struct - { - pthread_mutex_t mutex; - pthread_t owner; - unsigned long depth; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -# endif - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef pthread_once_t gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_once (&NAME, INITFUNCTION) != 0) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern int glthread_once_singlethreaded (pthread_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if USE_PTH_THREADS_WEAK - -/* Use weak references to the GNU Pth threads library. */ - -# pragma weak pth_mutex_init -# pragma weak pth_mutex_acquire -# pragma weak pth_mutex_release -# pragma weak pth_rwlock_init -# pragma weak pth_rwlock_acquire -# pragma weak pth_rwlock_release -# pragma weak pth_once - -# pragma weak pth_cancel -# define pth_in_use() (pth_cancel != NULL) - -# else - -# define pth_in_use() 1 - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef pth_mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - PTH_MUTEX_INIT -# define gl_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - (void)(&NAME) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef pth_rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - PTH_RWLOCK_INIT -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RD, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RW, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - (void)(&NAME) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* In Pth, mutexes are recursive by default. */ -typedef pth_mutex_t gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - PTH_MUTEX_INIT -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - (void)(&NAME) - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef pth_once_t gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - void (*gl_once_temp) (void) = INITFUNCTION; \ - if (!pth_once (&NAME, glthread_once_call, &gl_once_temp)) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once_call (void *arg); -extern int glthread_once_singlethreaded (pth_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -# include -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if USE_SOLARIS_THREADS_WEAK - -/* Use weak references to the old Solaris threads library. */ - -# pragma weak mutex_init -# pragma weak mutex_lock -# pragma weak mutex_unlock -# pragma weak mutex_destroy -# pragma weak rwlock_init -# pragma weak rw_rdlock -# pragma weak rw_wrlock -# pragma weak rw_unlock -# pragma weak rwlock_destroy -# pragma weak thr_self - -# pragma weak thr_suspend -# define thread_in_use() (thr_suspend != NULL) - -# else - -# define thread_in_use() 1 - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - DEFAULTMUTEX -# define gl_lock_init(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - DEFAULTRWLOCK -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* Old Solaris threads did not have recursive locks. - We have to implement them ourselves. */ - -typedef struct - { - mutex_t mutex; - thread_t owner; - unsigned long depth; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { DEFAULTMUTEX, (thread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef struct - { - volatile int inited; - mutex_t mutex; - } - gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - glthread_once (&NAME, INITFUNCTION); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); -extern int glthread_once_singlethreaded (gl_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -# include - -# ifdef __cplusplus -extern "C" { -# endif - -/* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, - Semaphore types, because - - we need only to synchronize inside a single process (address space), - not inter-process locking, - - we don't need to support trylock operations. (TryEnterCriticalSection - does not work on Windows 95/98/ME. Packages that need trylock usually - define their own mutex type.) */ - -/* There is no way to statically initialize a CRITICAL_SECTION. It needs - to be done lazily, once only. For this we need spinlocks. */ - -typedef struct { volatile int done; volatile long started; } gl_spinlock_t; - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - CRITICAL_SECTION lock; - } - gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_lock_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_lock_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - { { 0, -1 } } -# define gl_lock_init(NAME) \ - glthread_lock_init (&NAME) -# define gl_lock_lock(NAME) \ - glthread_lock_lock (&NAME) -# define gl_lock_unlock(NAME) \ - glthread_lock_unlock (&NAME) -# define gl_lock_destroy(NAME) \ - glthread_lock_destroy (&NAME) -extern void glthread_lock_init (gl_lock_t *lock); -extern void glthread_lock_lock (gl_lock_t *lock); -extern void glthread_lock_unlock (gl_lock_t *lock); -extern void glthread_lock_destroy (gl_lock_t *lock); - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* It is impossible to implement read-write locks using plain locks, without - introducing an extra thread dedicated to managing read-write locks. - Therefore here we need to use the low-level Event type. */ - -typedef struct - { - HANDLE *array; /* array of waiting threads, each represented by an event */ - unsigned int count; /* number of waiting threads */ - unsigned int alloc; /* length of allocated array */ - unsigned int offset; /* index of first waiting thread in array */ - } - gl_waitqueue_t; -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - CRITICAL_SECTION lock; /* protects the remaining fields */ - gl_waitqueue_t waiting_readers; /* waiting readers */ - gl_waitqueue_t waiting_writers; /* waiting writers */ - int runcount; /* number of readers running, or -1 when a writer runs */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { { 0, -1 } } -# define gl_rwlock_init(NAME) \ - glthread_rwlock_init (&NAME) -# define gl_rwlock_rdlock(NAME) \ - glthread_rwlock_rdlock (&NAME) -# define gl_rwlock_wrlock(NAME) \ - glthread_rwlock_wrlock (&NAME) -# define gl_rwlock_unlock(NAME) \ - glthread_rwlock_unlock (&NAME) -# define gl_rwlock_destroy(NAME) \ - glthread_rwlock_destroy (&NAME) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* The Win32 documentation says that CRITICAL_SECTION already implements a - recursive lock. But we need not rely on it: It's easy to implement a - recursive lock without this assumption. */ - -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - DWORD owner; - unsigned long depth; - CRITICAL_SECTION lock; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { { 0, -1 }, 0, 0 } -# define gl_recursive_lock_init(NAME) \ - glthread_recursive_lock_init (&NAME) -# define gl_recursive_lock_lock(NAME) \ - glthread_recursive_lock_lock (&NAME) -# define gl_recursive_lock_unlock(NAME) \ - glthread_recursive_lock_unlock (&NAME) -# define gl_recursive_lock_destroy(NAME) \ - glthread_recursive_lock_destroy (&NAME) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef struct - { - volatile int inited; - volatile long started; - CRITICAL_SECTION lock; - } - gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = { -1, -1 }; -# define gl_once(NAME, INITFUNCTION) \ - glthread_once (&NAME, INITFUNCTION) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) - -/* Provide dummy implementation if threads are not supported. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef int gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) -# define gl_lock_define_initialized(STORAGECLASS, NAME) -# define gl_lock_init(NAME) -# define gl_lock_lock(NAME) -# define gl_lock_unlock(NAME) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef int gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) -# define gl_rwlock_init(NAME) -# define gl_rwlock_rdlock(NAME) -# define gl_rwlock_wrlock(NAME) -# define gl_rwlock_unlock(NAME) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -typedef int gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) -# define gl_recursive_lock_init(NAME) -# define gl_recursive_lock_lock(NAME) -# define gl_recursive_lock_unlock(NAME) - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef int gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = 0; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (NAME == 0) \ - { \ - NAME = ~ 0; \ - INITFUNCTION (); \ - } \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#endif /* _LOCK_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/lstat.c gettext-0.18.1.1/gettext-tools/gnulib-lib/lstat.c --- gettext-0.17/gettext-tools/gnulib-lib/lstat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/lstat.c 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,91 @@ +/* Work around a bug of lstat on some systems + + Copyright (C) 1997-2006, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Jim Meyering */ + +#include + +#if !HAVE_LSTAT +/* On systems that lack symlinks, our replacement already + defined lstat as stat, so there is nothing further to do other than + avoid an empty file. */ +typedef int dummy; +#else /* HAVE_LSTAT */ + +/* Get the original definition of lstat. It might be defined as a macro. */ +# define __need_system_sys_stat_h +# include +# include +# undef __need_system_sys_stat_h + +static inline int +orig_lstat (const char *filename, struct stat *buf) +{ + return lstat (filename, buf); +} + +/* Specification. */ +# include + +# include +# include + +/* lstat works differently on Linux and Solaris systems. POSIX (see + `pathname resolution' in the glossary) requires that programs like + `ls' take into consideration the fact that FILE has a trailing slash + when FILE is a symbolic link. On Linux and Solaris 10 systems, the + lstat function already has the desired semantics (in treating + `lstat ("symlink/", sbuf)' just like `lstat ("symlink/.", sbuf)', + but on Solaris 9 and earlier it does not. + + If FILE has a trailing slash and specifies a symbolic link, + then use stat() to get more info on the referent of FILE. + If the referent is a non-directory, then set errno to ENOTDIR + and return -1. Otherwise, return stat's result. */ + +int +rpl_lstat (const char *file, struct stat *sbuf) +{ + size_t len; + int lstat_result = orig_lstat (file, sbuf); + + if (lstat_result != 0) + return lstat_result; + + /* This replacement file can blindly check against '/' rather than + using the ISSLASH macro, because all platforms with '\\' either + lack symlinks (mingw) or have working lstat (cygwin) and thus do + not compile this file. 0 len should have already been filtered + out above, with a failure return of ENOENT. */ + len = strlen (file); + if (file[len - 1] != '/' || S_ISDIR (sbuf->st_mode)) + return 0; + + /* At this point, a trailing slash is only permitted on + symlink-to-dir; but it should have found information on the + directory, not the symlink. Call stat() to get info about the + link's referent. Our replacement stat guarantees valid results, + even if the symlink is not pointing to a directory. */ + if (!S_ISLNK (sbuf->st_mode)) + { + errno = ENOTDIR; + return -1; + } + return stat (file, sbuf); +} + +#endif /* HAVE_LSTAT */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/Makefile.am gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.am --- gettext-0.17/gettext-tools/gnulib-lib/Makefile.am 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/gnulib-lib subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2006, 2009 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -62,12 +62,12 @@ # Linking with C++ libraries is needed _only_ on mingw and Cygwin. if !WOE32DLL -libgettextlib_la_LINK = $(LIBTOOL) --tag=CC \ +libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ -o $@ else -libgettextlib_la_LINK = $(LIBTOOL) --tag=CXX \ +libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ -o $@ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/Makefile.gnulib gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.gnulib --- gettext-0.17/gettext-tools/gnulib-lib/Makefile.gnulib 2007-11-02 00:43:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.gnulib 2010-06-03 21:36:31.000000000 +0000 @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --with-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpexec error error-progname execute exit fd-ostream file-ostream filename findprog fnmatch-posix fopen fstrcmp full-write fwriteerror gcd gcj getline getopt gettext-h gettext-tools-misc hash html-styled-ostream iconv java javacomp javaexec linebreak localcharset locale localename lock memmove memset minmax obstack open openmp ostream pipe progname propername relocatable-prog relocatable-script sh-quote stdbool stdint stpcpy stpncpy strcspn strpbrk strtol strtoul styled-ostream sys_stat sys_time term-styled-ostream ucs4-utf8 uniname/uniname unistd uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf wait-process xalloc xerror xmalloca xsetenv xstriconv xvasprintf +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt arg-nonnull atexit backupfile basename binary-io bison-i18n byteswap c++defs c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open openmp ostream pipe pipe-filter-ii progname propername relocatable-prog relocatable-script sh-quote sigpipe sigprocmask ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process warn-on-use wchar wctype write xalloc xconcat-filename xerror xmalloca xsetenv xstriconv xstriconveh xvasprintf MOSTLYCLEANFILES += core *.stackdump @@ -21,23 +21,22 @@ EXTRA_libgettextlib_la_SOURCES = libgettextlib_la_LDFLAGS = $(AM_LDFLAGS) -## begin gnulib module absolute-header +## begin gnulib module acl -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) +libgettextlib_la_SOURCES += set-mode-acl.c copy-acl.c file-has-acl.c -## end gnulib module absolute-header +EXTRA_DIST += acl-internal.h acl.h acl_entries.c -## begin gnulib module acl +EXTRA_libgettextlib_la_SOURCES += acl_entries.c +## end gnulib module acl -EXTRA_DIST += acl-internal.h acl.c acl.h acl_entries.c file-has-acl.c +## begin gnulib module alignof -EXTRA_libgettextlib_la_SOURCES += acl.c acl_entries.c file-has-acl.c -## end gnulib module acl +EXTRA_DIST += alignof.h + +## end gnulib module alignof ## begin gnulib module alloca-opt @@ -46,9 +45,10 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t @@ -64,6 +64,30 @@ ## end gnulib module areadlink +## begin gnulib module arg-nonnull + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += arg-nonnull.h +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t + +ARG_NONNULL_H=arg-nonnull.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/arg-nonnull.h + +## end gnulib module arg-nonnull + ## begin gnulib module argmatch @@ -113,9 +137,10 @@ # We need the following in order to create when the system # doesn't have one. byteswap.h: byteswap.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/byteswap.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += byteswap.h byteswap.h-t @@ -123,6 +148,30 @@ ## end gnulib module byteswap +## begin gnulib module c++defs + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/c++defs.h + +## end gnulib module c++defs + ## begin gnulib module c-ctype libgettextlib_la_SOURCES += c-ctype.h c-ctype.c @@ -135,10 +184,19 @@ ## end gnulib module c-strcase +## begin gnulib module c-strcaseeq + + +EXTRA_DIST += c-strcaseeq.h + +## end gnulib module c-strcaseeq + ## begin gnulib module c-strcasestr libgettextlib_la_SOURCES += c-strcasestr.h c-strcasestr.c +EXTRA_DIST += str-two-way.h + ## end gnulib module c-strcasestr ## begin gnulib module c-strstr @@ -150,7 +208,7 @@ ## begin gnulib module canonicalize-lgpl -EXTRA_DIST += canonicalize-lgpl.c canonicalize.h +EXTRA_DIST += canonicalize-lgpl.c EXTRA_libgettextlib_la_SOURCES += canonicalize-lgpl.c @@ -168,12 +226,29 @@ ## end gnulib module clean-temp +## begin gnulib module cloexec + + +EXTRA_DIST += cloexec.c cloexec.h + +EXTRA_libgettextlib_la_SOURCES += cloexec.c + +## end gnulib module cloexec + ## begin gnulib module closeout libgettextlib_la_SOURCES += closeout.h closeout.c ## end gnulib module closeout +## begin gnulib module concat-filename + +libgettextlib_la_SOURCES += concat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module concat-filename + ## begin gnulib module configmake # Retrieve values of the variables through 'configure' followed by @@ -194,7 +269,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -223,8 +298,13 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t - mv $@-t $@ + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + BUILT_SOURCES += configmake.h CLEANFILES += configmake.h configmake.h-t @@ -273,6 +353,42 @@ ## end gnulib module diffseq +## begin gnulib module dup2 + + +EXTRA_DIST += dup2.c + +EXTRA_libgettextlib_la_SOURCES += dup2.c + +## end gnulib module dup2 + +## begin gnulib module errno + +BUILT_SOURCES += $(ERRNO_H) + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += errno.h errno.h-t + +EXTRA_DIST += errno.in.h + +## end gnulib module errno + ## begin gnulib module error @@ -296,7 +412,9 @@ ## begin gnulib module exitfail -libgettextlib_la_SOURCES += exitfail.h exitfail.c +libgettextlib_la_SOURCES += exitfail.c + +EXTRA_DIST += exitfail.h ## end gnulib module exitfail @@ -308,25 +426,44 @@ ## begin gnulib module fcntl -BUILT_SOURCES += $(FCNTL_H) + +EXTRA_DIST += fcntl.c + +EXTRA_libgettextlib_la_SOURCES += fcntl.c + +## end gnulib module fcntl + +## begin gnulib module fcntl-h + +BUILT_SOURCES += fcntl.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -fcntl.h: fcntl.in.h - rm -f $@-t $@ +fcntl.h: fcntl.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ + -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \ -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \ + -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \ + -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ + -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ + -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ + -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/fcntl.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += fcntl.h fcntl.h-t EXTRA_DIST += fcntl.in.h -## end gnulib module fcntl +## end gnulib module fcntl-h ## begin gnulib module fd-ostream @@ -357,6 +494,12 @@ ## end gnulib module fd-ostream +## begin gnulib module fd-safer-flag + +libgettextlib_la_SOURCES += fd-safer-flag.c dup-safer-flag.c + +## end gnulib module fd-safer-flag + ## begin gnulib module file-ostream libgettextlib_la_SOURCES += file-ostream.c @@ -388,7 +531,6 @@ ## begin gnulib module filename -libgettextlib_la_SOURCES += concat-filename.c EXTRA_DIST += filename.h @@ -407,12 +549,13 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. float.h: float.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ < $(srcdir)/float.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += float.h float.h-t @@ -426,10 +569,12 @@ # We need the following in order to create when the system # doesn't have one that supports the required API. -fnmatch.h: fnmatch.in.h +fnmatch.h: fnmatch.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/fnmatch.in.h; \ - } > $@-t + sed -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/fnmatch.in.h; \ + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t @@ -481,6 +626,15 @@ ## end gnulib module getdelim +## begin gnulib module getdtablesize + + +EXTRA_DIST += getdtablesize.c + +EXTRA_libgettextlib_la_SOURCES += getdtablesize.c + +## end gnulib module getdtablesize + ## begin gnulib module getline @@ -490,16 +644,22 @@ ## end gnulib module getline -## begin gnulib module getopt +## begin gnulib module getopt-posix BUILT_SOURCES += $(GETOPT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -getopt.h: getopt.in.h +getopt.h: getopt.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/getopt.in.h; \ - } > $@-t + sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/getopt.in.h; \ + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t @@ -507,7 +667,7 @@ EXTRA_libgettextlib_la_SOURCES += getopt.c getopt1.c -## end gnulib module getopt +## end gnulib module getopt-posix ## begin gnulib module gettext @@ -537,18 +697,22 @@ # Specify that libgettextlib should installed in $(libdir). lib_LTLIBRARIES = libgettextlib.la +# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be +# taken from libunistring, when the configure option --with-libunistring-prefix +# was given. # Need @LTLIBINTL@ because many source files use gettext(). # Need @LTLIBICONV@ because linebreak.c and striconv.c use iconv(). # Need @LIB_ACL@ because copy-file.c uses acl.h. # Need @LTLIBC@ for -no-undefined to work on many platforms. libgettextlib_la_LDFLAGS += \ -release @VERSION@ \ - @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@ + $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@ # Tell the mingw or Cygwin linker which symbols to export. if WOE32DLL libgettextlib_la_SOURCES += ../woe32dll/gettextlib-exports.c libgettextlib_la_LDFLAGS += -Wl,--export-all-symbols +AM_CPPFLAGS += @GETTEXTLIB_EXPORTS_FLAGS@ endif # No need to install libgettextlib.a, except on AIX. @@ -570,6 +734,12 @@ ## end gnulib module gettimeofday +## begin gnulib module gperf + +GPERF = gperf + +## end gnulib module gperf + ## begin gnulib module hash libgettextlib_la_SOURCES += hash.h hash.c @@ -645,45 +815,57 @@ ## end gnulib module html-styled-ostream -## begin gnulib module iconv_open +## begin gnulib module iconv-h BUILT_SOURCES += $(ICONV_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += iconv.h iconv.h-t -GPERF = gperf +EXTRA_DIST += iconv.in.h + +## end gnulib module iconv-h + +## begin gnulib module iconv_open + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ -BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t -MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h +BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t iconv_open-solaris.h-t +MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h -EXTRA_DIST += iconv.in.h iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c +EXTRA_DIST += iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c EXTRA_libgettextlib_la_SOURCES += iconv_open.c @@ -816,42 +998,42 @@ mv -f $@-t $@ glib/ghash.h: glib/ghash.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/ghash.in.h; \ } > $@-t mv -f $@-t $@ glib/glist.h: glib/glist.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/glist.in.h; \ } > $@-t mv -f $@-t $@ glib/gprimes.h: glib/gprimes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gprimes.in.h; \ } > $@-t mv -f $@-t $@ glib/gstrfuncs.h: glib/gstrfuncs.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstrfuncs.in.h; \ } > $@-t mv -f $@-t $@ glib/gstring.h: glib/gstring.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstring.in.h; \ } > $@-t mv -f $@-t $@ glib/gtypes.h: glib/gtypes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gtypes.in.h; \ } > $@-t @@ -878,6 +1060,13 @@ ## end gnulib module libglib +## begin gnulib module libunistring-optional + + +EXTRA_DIST += libunistring.valgrind + +## end gnulib module libunistring-optional + ## begin gnulib module libxml if INCLUDED_LIBXML @@ -935,329 +1124,329 @@ BUILT_SOURCES += $(LIBXML_H) libxml/DOCBparser.h: libxml/DOCBparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/DOCBparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLparser.h: libxml/HTMLparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLtree.h: libxml/HTMLtree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLtree.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX.h: libxml/SAX.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX2.h: libxml/SAX2.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX2.in.h; \ } > $@-t mv -f $@-t $@ libxml/c14n.h: libxml/c14n.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/c14n.in.h; \ } > $@-t mv -f $@-t $@ libxml/catalog.h: libxml/catalog.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/catalog.in.h; \ } > $@-t mv -f $@-t $@ libxml/chvalid.h: libxml/chvalid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/chvalid.in.h; \ } > $@-t mv -f $@-t $@ libxml/debugXML.h: libxml/debugXML.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/debugXML.in.h; \ } > $@-t mv -f $@-t $@ libxml/dict.h: libxml/dict.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/dict.in.h; \ } > $@-t mv -f $@-t $@ libxml/encoding.h: libxml/encoding.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/encoding.in.h; \ } > $@-t mv -f $@-t $@ libxml/entities.h: libxml/entities.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/entities.in.h; \ } > $@-t mv -f $@-t $@ libxml/globals.h: libxml/globals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/globals.in.h; \ } > $@-t mv -f $@-t $@ libxml/hash.h: libxml/hash.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/hash.in.h; \ } > $@-t mv -f $@-t $@ libxml/list.h: libxml/list.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/list.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanoftp.h: libxml/nanoftp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanoftp.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanohttp.h: libxml/nanohttp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanohttp.in.h; \ } > $@-t mv -f $@-t $@ libxml/parser.h: libxml/parser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parser.in.h; \ } > $@-t mv -f $@-t $@ libxml/parserInternals.h: libxml/parserInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parserInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/pattern.h: libxml/pattern.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/pattern.in.h; \ } > $@-t mv -f $@-t $@ libxml/relaxng.h: libxml/relaxng.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/relaxng.in.h; \ } > $@-t mv -f $@-t $@ libxml/schemasInternals.h: libxml/schemasInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schemasInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/schematron.h: libxml/schematron.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schematron.in.h; \ } > $@-t mv -f $@-t $@ libxml/threads.h: libxml/threads.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/threads.in.h; \ } > $@-t mv -f $@-t $@ libxml/tree.h: libxml/tree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/tree.in.h; \ } > $@-t mv -f $@-t $@ libxml/uri.h: libxml/uri.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/uri.in.h; \ } > $@-t mv -f $@-t $@ libxml/valid.h: libxml/valid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/valid.in.h; \ } > $@-t mv -f $@-t $@ libxml/xinclude.h: libxml/xinclude.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xinclude.in.h; \ } > $@-t mv -f $@-t $@ libxml/xlink.h: libxml/xlink.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xlink.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlIO.h: libxml/xmlIO.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlIO.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlautomata.h: libxml/xmlautomata.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlautomata.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlerror.h: libxml/xmlerror.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlerror.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlexports.h: libxml/xmlexports.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlexports.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmemory.h: libxml/xmlmemory.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmemory.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmodule.h: libxml/xmlmodule.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmodule.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlreader.h: libxml/xmlreader.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlreader.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlregexp.h: libxml/xmlregexp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlregexp.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlsave.h: libxml/xmlsave.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlsave.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemas.h: libxml/xmlschemas.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemas.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemastypes.h: libxml/xmlschemastypes.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemastypes.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlstring.h: libxml/xmlstring.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlstring.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlunicode.h: libxml/xmlunicode.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlunicode.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlversion.h: libxml/xmlversion.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlversion.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlwriter.h: libxml/xmlwriter.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlwriter.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpath.h: libxml/xpath.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpath.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpathInternals.h: libxml/xpathInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpathInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpointer.h: libxml/xpointer.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpointer.in.h; \ } > $@-t @@ -1323,20 +1512,6 @@ ## end gnulib module libxml -## begin gnulib module linebreak - -libgettextlib_la_SOURCES += linebreak.h linebreak.c lbrkprop.h - -## end gnulib module linebreak - -## begin gnulib module link-warning - -LINK_WARNING_H=$(top_srcdir)/../build-aux/link-warning.h - -EXTRA_DIST += $(top_srcdir)/../build-aux/link-warning.h - -## end gnulib module link-warning - ## begin gnulib module linkedhash-list libgettextlib_la_SOURCES += gl_linkedhash_list.h gl_linkedhash_list.c gl_anyhash_list1.h gl_anyhash_list2.h gl_anylinked_list1.h gl_anylinked_list2.h @@ -1364,21 +1539,37 @@ charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -1391,14 +1582,14 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ SUFFIXES += .sed .sin .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ CLEANFILES += charset.alias ref-add.sed ref-del.sed @@ -1409,17 +1600,25 @@ ## begin gnulib module locale -BUILT_SOURCES += $(LOCALE_H) +BUILT_SOURCES += locale.h # We need the following in order to create when the system # doesn't have one that provides all definitions. -locale.h: locale.in.h - rm -f $@-t $@ +locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \ + -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \ + -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \ + -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \ + -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/locale.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += locale.h locale.h-t @@ -1437,12 +1636,19 @@ ## begin gnulib module lock -libgettextlib_la_SOURCES += lock.h lock.c - -EXTRA_DIST += $(top_srcdir)/../build-aux/config.rpath +libgettextlib_la_SOURCES += glthread/lock.h glthread/lock.c ## end gnulib module lock +## begin gnulib module lstat + + +EXTRA_DIST += lstat.c + +EXTRA_libgettextlib_la_SOURCES += lstat.c + +## end gnulib module lstat + ## begin gnulib module malloc-posix @@ -1468,16 +1674,51 @@ ## end gnulib module mbchar +## begin gnulib module mbiter + +libgettextlib_la_SOURCES += mbiter.h + +## end gnulib module mbiter + +## begin gnulib module mbrtowc + + +EXTRA_DIST += mbrtowc.c + +EXTRA_libgettextlib_la_SOURCES += mbrtowc.c + +## end gnulib module mbrtowc + +## begin gnulib module mbsinit + + +EXTRA_DIST += mbsinit.c + +EXTRA_libgettextlib_la_SOURCES += mbsinit.c + +## end gnulib module mbsinit + ## begin gnulib module mbslen libgettextlib_la_SOURCES += mbslen.c ## end gnulib module mbslen +## begin gnulib module mbsrtowcs + + +EXTRA_DIST += mbsrtowcs-state.c mbsrtowcs.c + +EXTRA_libgettextlib_la_SOURCES += mbsrtowcs-state.c mbsrtowcs.c + +## end gnulib module mbsrtowcs + ## begin gnulib module mbsstr libgettextlib_la_SOURCES += mbsstr.c +EXTRA_DIST += str-kmp.h + ## end gnulib module mbsstr ## begin gnulib module mbswidth @@ -1495,7 +1736,7 @@ ## begin gnulib module memchr -EXTRA_DIST += memchr.c +EXTRA_DIST += memchr.c memchr.valgrind EXTRA_libgettextlib_la_SOURCES += memchr.c @@ -1604,6 +1845,125 @@ ## end gnulib module pipe +## begin gnulib module pipe-filter-ii + +libgettextlib_la_SOURCES += pipe-filter-ii.c + +EXTRA_DIST += pipe-filter-aux.h pipe-filter.h + +## end gnulib module pipe-filter-ii + +## begin gnulib module pipe2 + +libgettextlib_la_SOURCES += pipe2.c + +## end gnulib module pipe2 + +## begin gnulib module pipe2-safer + +libgettextlib_la_SOURCES += pipe2-safer.c + +## end gnulib module pipe2-safer + +## begin gnulib module posix_spawn-internal + + +EXTRA_DIST += spawn_int.h spawni.c + +EXTRA_libgettextlib_la_SOURCES += spawni.c + +## end gnulib module posix_spawn-internal + +## begin gnulib module posix_spawn_file_actions_addclose + + +EXTRA_DIST += spawn_faction_addclose.c spawn_int.h + +EXTRA_libgettextlib_la_SOURCES += spawn_faction_addclose.c + +## end gnulib module posix_spawn_file_actions_addclose + +## begin gnulib module posix_spawn_file_actions_adddup2 + + +EXTRA_DIST += spawn_faction_adddup2.c spawn_int.h + +EXTRA_libgettextlib_la_SOURCES += spawn_faction_adddup2.c + +## end gnulib module posix_spawn_file_actions_adddup2 + +## begin gnulib module posix_spawn_file_actions_addopen + + +EXTRA_DIST += spawn_faction_addopen.c spawn_int.h + +EXTRA_libgettextlib_la_SOURCES += spawn_faction_addopen.c + +## end gnulib module posix_spawn_file_actions_addopen + +## begin gnulib module posix_spawn_file_actions_destroy + + +EXTRA_DIST += spawn_faction_destroy.c + +EXTRA_libgettextlib_la_SOURCES += spawn_faction_destroy.c + +## end gnulib module posix_spawn_file_actions_destroy + +## begin gnulib module posix_spawn_file_actions_init + + +EXTRA_DIST += spawn_faction_init.c spawn_int.h + +EXTRA_libgettextlib_la_SOURCES += spawn_faction_init.c + +## end gnulib module posix_spawn_file_actions_init + +## begin gnulib module posix_spawnattr_destroy + + +EXTRA_DIST += spawnattr_destroy.c + +EXTRA_libgettextlib_la_SOURCES += spawnattr_destroy.c + +## end gnulib module posix_spawnattr_destroy + +## begin gnulib module posix_spawnattr_init + + +EXTRA_DIST += spawnattr_init.c + +EXTRA_libgettextlib_la_SOURCES += spawnattr_init.c + +## end gnulib module posix_spawnattr_init + +## begin gnulib module posix_spawnattr_setflags + + +EXTRA_DIST += spawnattr_setflags.c + +EXTRA_libgettextlib_la_SOURCES += spawnattr_setflags.c + +## end gnulib module posix_spawnattr_setflags + +## begin gnulib module posix_spawnattr_setsigmask + + +EXTRA_DIST += spawnattr_setsigmask.c + +EXTRA_libgettextlib_la_SOURCES += spawnattr_setsigmask.c + +## end gnulib module posix_spawnattr_setsigmask + +## begin gnulib module posix_spawnp + + +EXTRA_DIST += spawnp.c + +EXTRA_libgettextlib_la_SOURCES += spawnp.c + +## end gnulib module posix_spawnp + ## begin gnulib module progname libgettextlib_la_SOURCES += progname.h progname.c @@ -1628,6 +1988,15 @@ ## end gnulib module quotearg +## begin gnulib module rawmemchr + + +EXTRA_DIST += rawmemchr.c rawmemchr.valgrind + +EXTRA_libgettextlib_la_SOURCES += rawmemchr.c + +## end gnulib module rawmemchr + ## begin gnulib module readlink @@ -1661,7 +2030,7 @@ ## begin gnulib module relocatable-prog-wrapper -EXTRA_DIST += areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c canonicalize.h malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c setenv.h strerror.c xreadlink.c xreadlink.h +EXTRA_DIST += areadlink.c areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c malloca.c malloca.h progname.c progname.h progreloc.c readlink.c relocatable.c relocatable.h relocwrapper.c setenv.c strerror.c EXTRA_DIST += $(top_srcdir)/../build-aux/install-reloc @@ -1674,6 +2043,15 @@ ## end gnulib module relocatable-script +## begin gnulib module rmdir + + +EXTRA_DIST += rmdir.c + +EXTRA_libgettextlib_la_SOURCES += rmdir.c + +## end gnulib module rmdir + ## begin gnulib module safe-read @@ -1692,12 +2070,35 @@ ## end gnulib module safe-write +## begin gnulib module sched + +BUILT_SOURCES += $(SCHED_H) + +# We need the following in order to create a replacement for when +# the system doesn't have one. +sched.h: sched.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SCHED_H''@|$(NEXT_SCHED_H)|g' \ + -e 's|@''HAVE_STRUCT_SCHED_PARAM''@|$(HAVE_STRUCT_SCHED_PARAM)|g' \ + < $(srcdir)/sched.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += sched.h sched.h-t + +EXTRA_DIST += sched.in.h + +## end gnulib module sched + ## begin gnulib module setenv -EXTRA_DIST += setenv.c setenv.h unsetenv.c +EXTRA_DIST += setenv.c -EXTRA_libgettextlib_la_SOURCES += setenv.c unsetenv.c +EXTRA_libgettextlib_la_SOURCES += setenv.c ## end gnulib module setenv @@ -1707,23 +2108,41 @@ ## end gnulib module sh-quote +## begin gnulib module sigaction + + +EXTRA_DIST += sig-handler.h sigaction.c + +EXTRA_libgettextlib_la_SOURCES += sigaction.c + +## end gnulib module sigaction + ## begin gnulib module signal BUILT_SOURCES += signal.h # We need the following in order to create when the system # doesn't have a complete one. -signal.h: signal.in.h - rm -f $@-t $@ +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/signal.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += signal.h signal.h-t @@ -1755,6 +2174,86 @@ ## end gnulib module snprintf +## begin gnulib module spawn + +BUILT_SOURCES += spawn.h + +# We need the following in order to create a replacement for when +# the system doesn't have one. +spawn.h: spawn.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SPAWN_H''@|$(NEXT_SPAWN_H)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN''@|$(GNULIB_POSIX_SPAWN)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNP''@|$(GNULIB_POSIX_SPAWNP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_INIT''@|$(GNULIB_POSIX_SPAWNATTR_INIT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETFLAGS''@|$(GNULIB_POSIX_SPAWNATTR_GETFLAGS)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETFLAGS''@|$(GNULIB_POSIX_SPAWNATTR_SETFLAGS)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETPGROUP''@|$(GNULIB_POSIX_SPAWNATTR_GETPGROUP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETPGROUP''@|$(GNULIB_POSIX_SPAWNATTR_SETPGROUP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM''@|$(GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM''@|$(GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY''@|$(GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY''@|$(GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT''@|$(GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT''@|$(GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSIGMASK''@|$(GNULIB_POSIX_SPAWNATTR_GETSIGMASK)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSIGMASK''@|$(GNULIB_POSIX_SPAWNATTR_SETSIGMASK)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_DESTROY''@|$(GNULIB_POSIX_SPAWNATTR_DESTROY)|g' \ + -e 's|@''HAVE_POSIX_SPAWN''@|$(HAVE_POSIX_SPAWN)|g' \ + -e 's|@''HAVE_POSIX_SPAWNATTR_T''@|$(HAVE_POSIX_SPAWNATTR_T)|g' \ + -e 's|@''HAVE_POSIX_SPAWN_FILE_ACTIONS_T''@|$(HAVE_POSIX_SPAWN_FILE_ACTIONS_T)|g' \ + -e 's|@''REPLACE_POSIX_SPAWN''@|$(REPLACE_POSIX_SPAWN)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/spawn.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += spawn.h spawn.h-t + +EXTRA_DIST += spawn.in.h + +## end gnulib module spawn + +## begin gnulib module stat + + +EXTRA_DIST += stat.c + +EXTRA_libgettextlib_la_SOURCES += stat.c + +## end gnulib module stat + +## begin gnulib module stdarg + +BUILT_SOURCES += $(STDARG_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdarg.h: stdarg.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ + < $(srcdir)/stdarg.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stdarg.h stdarg.h-t + +EXTRA_DIST += stdarg.in.h + +## end gnulib module stdarg + ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) @@ -1762,10 +2261,10 @@ # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdbool.h stdbool.h-t @@ -1773,6 +2272,29 @@ ## end gnulib module stdbool +## begin gnulib module stddef + +BUILT_SOURCES += $(STDDEF_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stddef.h stddef.h-t + +EXTRA_DIST += stddef.in.h + +## end gnulib module stddef + ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) @@ -1780,10 +2302,11 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -1791,6 +2314,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -1805,7 +2329,7 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdint.h stdint.h-t @@ -1819,58 +2343,107 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdio.h: stdio.in.h - rm -f $@-t $@ +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ - -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ - -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ - -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ - -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ - -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ - -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ - -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ - -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ - -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ - -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ - -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ - -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ - -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ - -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ - -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ - -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ - -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ - -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ - -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ - < $(srcdir)/stdio.in.h; \ - } > $@-t + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdio.h stdio.h-t -EXTRA_DIST += stdio.in.h +EXTRA_DIST += stdio-write.c stdio.in.h + +EXTRA_libgettextlib_la_SOURCES += stdio-write.c ## end gnulib module stdio @@ -1880,28 +2453,74 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t @@ -1927,23 +2546,23 @@ ## end gnulib module stpncpy -## begin gnulib module strcspn +## begin gnulib module strchrnul -EXTRA_DIST += strcspn.c +EXTRA_DIST += strchrnul.c strchrnul.valgrind -EXTRA_libgettextlib_la_SOURCES += strcspn.c +EXTRA_libgettextlib_la_SOURCES += strchrnul.c -## end gnulib module strcspn +## end gnulib module strchrnul -## begin gnulib module strdup +## begin gnulib module strcspn -EXTRA_DIST += strdup.c +EXTRA_DIST += strcspn.c -EXTRA_libgettextlib_la_SOURCES += strdup.c +EXTRA_libgettextlib_la_SOURCES += strcspn.c -## end gnulib module strdup +## end gnulib module strcspn ## begin gnulib module streq @@ -1970,16 +2589,34 @@ ## end gnulib module striconv +## begin gnulib module striconveh + +libgettextlib_la_SOURCES += striconveh.h striconveh.c +if GL_COND_LIBTOOL +libgettextlib_la_LDFLAGS += $(LTLIBICONV) +endif + +EXTRA_DIST += iconveh.h + +## end gnulib module striconveh + +## begin gnulib module striconveha + +libgettextlib_la_SOURCES += striconveha.h striconveha.c + +## end gnulib module striconveha + ## begin gnulib module string BUILT_SOURCES += string.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -1995,41 +2632,63 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t @@ -2061,6 +2720,15 @@ ## end gnulib module strpbrk +## begin gnulib module strstr-simple + + +EXTRA_DIST += str-two-way.h strstr.c + +EXTRA_libgettextlib_la_SOURCES += strstr.c + +## end gnulib module strstr-simple + ## begin gnulib module strtol @@ -2108,23 +2776,133 @@ ## end gnulib module styled-ostream +## begin gnulib module sys_select + +BUILT_SOURCES += sys/select.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +sys/select.h: sys_select.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ + -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ + -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ + -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_select.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += sys/select.h sys/select.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_select.in.h + +## end gnulib module sys_select + +## begin gnulib module sys_socket + +BUILT_SOURCES += sys/socket.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \ + -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ + -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \ + -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \ + -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \ + -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \ + -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \ + -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \ + -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \ + -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \ + -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \ + -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \ + -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \ + -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \ + -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \ + -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \ + -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ + -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ + -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \ + -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \ + -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_socket.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_socket.in.h + +## end gnulib module sys_socket + ## begin gnulib module sys_stat -BUILT_SOURCES += $(SYS_STAT_H) +BUILT_SOURCES += sys/stat.h # We need the following in order to create when the system # has one that is incomplete. -sys/stat.h: sys_stat.in.h - @MKDIR_P@ sys - rm -f $@-t $@ +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ - -e 's|@''HAVE_IO_H''@|$(HAVE_IO_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ - -e 's|@''HAVE_DECL_MKDIR''@|$(HAVE_DECL_MKDIR)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_stat.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t MOSTLYCLEANDIRS += sys @@ -2135,21 +2913,27 @@ ## begin gnulib module sys_time -BUILT_SOURCES += $(SYS_TIME_H) +BUILT_SOURCES += sys/time.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -sys/time.h: sys_time.in.h - @MKDIR_P@ sys - rm -f $@-t $@ +sys/time.h: sys_time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ - -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \ + -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ + -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_time.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += sys/time.h sys/time.h-t @@ -2157,6 +2941,29 @@ ## end gnulib module sys_time +## begin gnulib module sys_wait + +BUILT_SOURCES += sys/wait.h + +# We need the following in order to create when the system +# has one that is incomplete. +sys/wait.h: sys_wait.in.h + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \ + < $(srcdir)/sys_wait.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += sys/wait.h sys/wait.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_wait.in.h + +## end gnulib module sys_wait + ## begin gnulib module tempname @@ -2247,9 +3054,57 @@ ## end gnulib module terminfo-h +## begin gnulib module threadlib + +libgettextlib_la_SOURCES += glthread/threadlib.c + +EXTRA_DIST += $(top_srcdir)/../build-aux/config.rpath + +## end gnulib module threadlib + +## begin gnulib module time + +BUILT_SOURCES += time.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += time.h time.h-t + +EXTRA_DIST += time.in.h + +## end gnulib module time + ## begin gnulib module tls -libgettextlib_la_SOURCES += tls.h tls.c +libgettextlib_la_SOURCES += glthread/tls.h glthread/tls.c ## end gnulib module tls @@ -2259,16 +3114,117 @@ ## end gnulib module tmpdir +## begin gnulib module trim + +libgettextlib_la_SOURCES += trim.c + +EXTRA_DIST += trim.h + +## end gnulib module trim + +## begin gnulib module uniconv/base + +BUILT_SOURCES += $(LIBUNISTRING_UNICONV_H) + +uniconv.h: uniconv.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniconv.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniconv.h uniconv.h-t + +EXTRA_DIST += iconveh.h localcharset.h striconveha.h uniconv.in.h + +## end gnulib module uniconv/base + +## begin gnulib module uniconv/u8-conv-from-enc + +if LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC +libgettextlib_la_SOURCES += uniconv/u8-conv-from-enc.c +endif + +## end gnulib module uniconv/u8-conv-from-enc + +## begin gnulib module unilbrk/base + +BUILT_SOURCES += $(LIBUNISTRING_UNILBRK_H) + +unilbrk.h: unilbrk.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unilbrk.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unilbrk.h unilbrk.h-t + +EXTRA_DIST += unilbrk.in.h + +## end gnulib module unilbrk/base + +## begin gnulib module unilbrk/tables + +libgettextlib_la_SOURCES += unilbrk/lbrktables.c + +EXTRA_DIST += unilbrk/lbrkprop1.h unilbrk/lbrkprop2.h unilbrk/lbrktables.h + +## end gnulib module unilbrk/tables + +## begin gnulib module unilbrk/u8-possible-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS +libgettextlib_la_SOURCES += unilbrk/u8-possible-linebreaks.c +endif + +EXTRA_DIST += uniwidth/cjk.h + +## end gnulib module unilbrk/u8-possible-linebreaks + +## begin gnulib module unilbrk/u8-width-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS +libgettextlib_la_SOURCES += unilbrk/u8-width-linebreaks.c +endif + +## end gnulib module unilbrk/u8-width-linebreaks + +## begin gnulib module unilbrk/ulc-common + +libgettextlib_la_SOURCES += unilbrk/ulc-common.c + +EXTRA_DIST += unilbrk/ulc-common.h + +## end gnulib module unilbrk/ulc-common + +## begin gnulib module unilbrk/ulc-width-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS +libgettextlib_la_SOURCES += unilbrk/ulc-width-linebreaks.c +endif + +## end gnulib module unilbrk/ulc-width-linebreaks + ## begin gnulib module uniname/base +BUILT_SOURCES += $(LIBUNISTRING_UNINAME_H) + +uniname.h: uniname.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniname.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniname.h uniname.h-t -EXTRA_DIST += uniname.h +EXTRA_DIST += uniname.in.h ## end gnulib module uniname/base ## begin gnulib module uniname/uniname +if LIBUNISTRING_COMPILE_UNINAME_UNINAME libgettextlib_la_SOURCES += uniname/uniname.c +endif EXTRA_DIST += uniname/gen-uninames.lisp uniname/uninames.h @@ -2280,34 +3236,118 @@ # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t @@ -2315,60 +3355,132 @@ ## end gnulib module unistd +## begin gnulib module unistd-safer + + +EXTRA_DIST += dup-safer.c fd-safer.c pipe-safer.c unistd--.h unistd-safer.h + +EXTRA_libgettextlib_la_SOURCES += dup-safer.c fd-safer.c pipe-safer.c + +## end gnulib module unistd-safer + ## begin gnulib module unistr/base +BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H) -EXTRA_DIST += unistr.h +unistr.h: unistr.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unistr.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unistr.h unistr.h-t + +EXTRA_DIST += unistr.in.h ## end gnulib module unistr/base ## begin gnulib module unistr/u16-mbtouc +if LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC libgettextlib_la_SOURCES += unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c +endif ## end gnulib module unistr/u16-mbtouc -## begin gnulib module unistr/u16-mbtouc-unsafe +## begin gnulib module unistr/u8-check -libgettextlib_la_SOURCES += unistr/u16-mbtouc-unsafe.c unistr/u16-mbtouc-unsafe-aux.c +if LIBUNISTRING_COMPILE_UNISTR_U8_CHECK +libgettextlib_la_SOURCES += unistr/u8-check.c +endif + +## end gnulib module unistr/u8-check + +## begin gnulib module unistr/u8-mblen + +if LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN +libgettextlib_la_SOURCES += unistr/u8-mblen.c +endif -## end gnulib module unistr/u16-mbtouc-unsafe +## end gnulib module unistr/u8-mblen ## begin gnulib module unistr/u8-mbtouc +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC libgettextlib_la_SOURCES += unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c +endif ## end gnulib module unistr/u8-mbtouc ## begin gnulib module unistr/u8-mbtouc-unsafe +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE libgettextlib_la_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c +endif ## end gnulib module unistr/u8-mbtouc-unsafe +## begin gnulib module unistr/u8-mbtoucr + +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR +libgettextlib_la_SOURCES += unistr/u8-mbtoucr.c +endif + +## end gnulib module unistr/u8-mbtoucr + +## begin gnulib module unistr/u8-prev + +if LIBUNISTRING_COMPILE_UNISTR_U8_PREV +libgettextlib_la_SOURCES += unistr/u8-prev.c +endif + +## end gnulib module unistr/u8-prev + ## begin gnulib module unistr/u8-uctomb +if LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB libgettextlib_la_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c +endif ## end gnulib module unistr/u8-uctomb ## begin gnulib module unitypes +BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H) + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unitypes.h unitypes.h-t -EXTRA_DIST += unitypes.h +EXTRA_DIST += unitypes.in.h ## end gnulib module unitypes ## begin gnulib module uniwidth/base +BUILT_SOURCES += $(LIBUNISTRING_UNIWIDTH_H) -EXTRA_DIST += localcharset.h uniwidth.h +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniwidth.h uniwidth.h-t + +EXTRA_DIST += localcharset.h uniwidth.in.h ## end gnulib module uniwidth/base ## begin gnulib module uniwidth/width +if LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH libgettextlib_la_SOURCES += uniwidth/width.c +endif EXTRA_DIST += uniwidth/cjk.h @@ -2381,6 +3493,40 @@ ## end gnulib module unlocked-io +## begin gnulib module unsetenv + + +EXTRA_DIST += unsetenv.c + +EXTRA_libgettextlib_la_SOURCES += unsetenv.c + +## end gnulib module unsetenv + +## begin gnulib module unused-parameter + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += unused-parameter.h +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t + +UNUSED_PARAMETER_H=unused-parameter.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/unused-parameter.h + +## end gnulib module unused-parameter + ## begin gnulib module vasnprintf @@ -2393,9 +3539,9 @@ ## begin gnulib module vasprintf -EXTRA_DIST += vasprintf.c +EXTRA_DIST += asprintf.c vasprintf.c -EXTRA_libgettextlib_la_SOURCES += vasprintf.c +EXTRA_libgettextlib_la_SOURCES += asprintf.c vasprintf.c ## end gnulib module vasprintf @@ -2420,24 +3566,78 @@ ## end gnulib module wait-process +## begin gnulib module warn-on-use + +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/warn-on-use.h + +## end gnulib module warn-on-use + ## begin gnulib module wchar -BUILT_SOURCES += $(WCHAR_H) +BUILT_SOURCES += wchar.h # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wchar.h wchar.h-t @@ -2447,20 +3647,25 @@ ## begin gnulib module wctype -BUILT_SOURCES += $(WCTYPE_H) +BUILT_SOURCES += wctype.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wctype.h wctype.h-t @@ -2477,18 +3682,41 @@ ## end gnulib module wcwidth +## begin gnulib module write + + +EXTRA_DIST += write.c + +EXTRA_libgettextlib_la_SOURCES += write.c + +## end gnulib module write + ## begin gnulib module xalloc libgettextlib_la_SOURCES += xalloc.h xmalloc.c xstrdup.c ## end gnulib module xalloc +## begin gnulib module xconcat-filename + +libgettextlib_la_SOURCES += xconcat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module xconcat-filename + ## begin gnulib module xerror libgettextlib_la_SOURCES += xerror.h xerror.c ## end gnulib module xerror +## begin gnulib module xlist + +libgettextlib_la_SOURCES += gl_xlist.h gl_xlist.c + +## end gnulib module xlist + ## begin gnulib module xmalloca libgettextlib_la_SOURCES += xmalloca.c @@ -2523,6 +3751,14 @@ ## end gnulib module xstriconv +## begin gnulib module xstriconveh + +libgettextlib_la_SOURCES += xstriconveh.c + +EXTRA_DIST += xstriconveh.h + +## end gnulib module xstriconveh + ## begin gnulib module xvasprintf libgettextlib_la_SOURCES += xvasprintf.h xvasprintf.c xasprintf.c diff -Nru gettext-0.17/gettext-tools/gnulib-lib/Makefile.in gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.in --- gettext-0.17/gettext-tools/gnulib-lib/Makefile.in 2007-11-06 23:39:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/Makefile.in 2010-06-06 20:12:29.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,7 +15,7 @@ @SET_MAKE@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -23,12 +24,13 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --with-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpexec error error-progname execute exit fd-ostream file-ostream filename findprog fnmatch-posix fopen fstrcmp full-write fwriteerror gcd gcj getline getopt gettext-h gettext-tools-misc hash html-styled-ostream iconv java javacomp javaexec linebreak localcharset locale localename lock memmove memset minmax obstack open openmp ostream pipe progname propername relocatable-prog relocatable-script sh-quote stdbool stdint stpcpy stpncpy strcspn strpbrk strtol strtoul styled-ostream sys_stat sys_time term-styled-ostream ucs4-utf8 uniname/uniname unistd uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf wait-process xalloc xerror xmalloca xsetenv xstriconv xvasprintf +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt arg-nonnull atexit backupfile basename binary-io bison-i18n byteswap c++defs c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open openmp ostream pipe pipe-filter-ii progname propername relocatable-prog relocatable-script sh-quote sigpipe sigprocmask ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process warn-on-use wchar wctype write xalloc xconcat-filename xerror xmalloca xsetenv xstriconv xstriconveh xvasprintf VPATH = @srcdir@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -54,50 +56,78 @@ # Tell the mingw or Cygwin linker which symbols to export. @WOE32DLL_TRUE@am__append_2 = ../woe32dll/gettextlib-exports.c @WOE32DLL_TRUE@am__append_3 = -Wl,--export-all-symbols -@WOE32DLL_FALSE@am__append_4 = html-styled-ostream.c -@WOE32DLL_TRUE@am__append_5 = ../woe32dll/c++html-styled-ostream.cc -@INCLUDED_LIBCROCO_TRUE@am__append_6 = -I$(srcdir)/libcroco -@INCLUDED_LIBCROCO_TRUE@am__append_7 = libcroco_rpl.la +@WOE32DLL_TRUE@am__append_4 = @GETTEXTLIB_EXPORTS_FLAGS@ +@WOE32DLL_FALSE@am__append_5 = html-styled-ostream.c +@WOE32DLL_TRUE@am__append_6 = ../woe32dll/c++html-styled-ostream.cc +@INCLUDED_LIBCROCO_TRUE@am__append_7 = -I$(srcdir)/libcroco @INCLUDED_LIBCROCO_TRUE@am__append_8 = libcroco_rpl.la @INCLUDED_LIBCROCO_TRUE@am__append_9 = libcroco_rpl.la -@INCLUDED_LIBCROCO_FALSE@am__append_10 = $(INCCROCO) -@GL_COND_LIBTOOL_TRUE@am__append_11 = $(LTLIBCROCO) $(LTLIBGLIB) \ -@GL_COND_LIBTOOL_TRUE@ $(LTLIBXML) $(LTLIBICONV) \ +@INCLUDED_LIBCROCO_TRUE@am__append_10 = libcroco_rpl.la +@INCLUDED_LIBCROCO_FALSE@am__append_11 = $(INCCROCO) +@GL_COND_LIBTOOL_TRUE@am__append_12 = $(LTLIBCROCO) $(LTLIBGLIB) \ +@GL_COND_LIBTOOL_TRUE@ $(LTLIBXML) $(LTLIBICONV) $(LTLIBICONV) \ @GL_COND_LIBTOOL_TRUE@ $(LTLIBTERMINFO) -@INCLUDED_LIBGLIB_TRUE@am__append_12 = libglib_rpl.la @INCLUDED_LIBGLIB_TRUE@am__append_13 = libglib_rpl.la @INCLUDED_LIBGLIB_TRUE@am__append_14 = libglib_rpl.la -@INCLUDED_LIBXML_TRUE@am__append_15 = libxml_rpl.la +@INCLUDED_LIBGLIB_TRUE@am__append_15 = libglib_rpl.la @INCLUDED_LIBXML_TRUE@am__append_16 = libxml_rpl.la @INCLUDED_LIBXML_TRUE@am__append_17 = libxml_rpl.la -@WOE32DLL_FALSE@am__append_18 = term-styled-ostream.c -@WOE32DLL_TRUE@am__append_19 = ../woe32dll/c++term-styled-ostream.cc +@INCLUDED_LIBXML_TRUE@am__append_18 = libxml_rpl.la +@WOE32DLL_FALSE@am__append_19 = term-styled-ostream.c +@WOE32DLL_TRUE@am__append_20 = ../woe32dll/c++term-styled-ostream.cc +@LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE@am__append_21 = uniconv/u8-conv-from-enc.c +@LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE@am__append_22 = unilbrk/u8-possible-linebreaks.c +@LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE@am__append_23 = unilbrk/u8-width-linebreaks.c +@LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE@am__append_24 = unilbrk/ulc-width-linebreaks.c +@LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE@am__append_25 = uniname/uniname.c +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@am__append_26 = unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@am__append_27 = unistr/u8-check.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@am__append_28 = unistr/u8-mblen.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@am__append_29 = unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@am__append_30 = unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@am__append_31 = unistr/u8-mbtoucr.c +@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@am__append_32 = unistr/u8-prev.c +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@am__append_33 = unistr/u8-uctomb.c unistr/u8-uctomb-aux.c +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__append_34 = uniwidth/width.c subdir = gnulib-lib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -105,13 +135,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -120,23 +151,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -144,68 +183,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -225,13 +294,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -239,15 +308,30 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(gettextsrcdir)" \ "$(DESTDIR)$(pkgdatadir)" -libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) libcroco_rpl_la_LIBADD = am__dirstamp = $(am__leading_dot)dirstamp @@ -279,72 +363,109 @@ libcroco/libcroco_rpl_la-cr-token.lo \ libcroco/libcroco_rpl_la-cr-utils.lo libcroco_rpl_la_OBJECTS = $(am_libcroco_rpl_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent @INCLUDED_LIBCROCO_TRUE@am_libcroco_rpl_la_rpath = am__DEPENDENCIES_1 = -am__libgettextlib_la_SOURCES_DIST = areadlink.c gl_array_list.h \ - gl_array_list.c backupfile.h backupfile.c addext.c basename.h \ - basename.c binary-io.h c-ctype.h c-ctype.c c-strcase.h \ - c-strcasecmp.c c-strncasecmp.c c-strcasestr.h c-strcasestr.c \ - c-strstr.h c-strstr.c classpath.h classpath.c clean-temp.h \ - clean-temp.c closeout.h closeout.c copy-file.h copy-file.c \ - csharpcomp.h csharpcomp.c csharpexec.h csharpexec.c diffseq.h \ - error-progname.h error-progname.c execute.h execute.c \ - w32spawn.h exitfail.h exitfail.c fatal-signal.h fatal-signal.c \ - fd-ostream.c file-ostream.c concat-filename.c findprog.h \ - findprog.c fstrcmp.h fstrcmp.c full-write.h full-write.c \ - fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h \ - ../woe32dll/gettextlib-exports.c hash.h hash.c html-ostream.c \ - html-styled-ostream.c ../woe32dll/c++html-styled-ostream.cc \ - javacomp.h javacomp.c javaexec.h javaexec.c javaversion.h \ - javaversion.c linebreak.h linebreak.c lbrkprop.h \ +am__libgettextlib_la_SOURCES_DIST = set-mode-acl.c copy-acl.c \ + file-has-acl.c areadlink.c gl_array_list.h gl_array_list.c \ + backupfile.h backupfile.c addext.c basename.h basename.c \ + binary-io.h c-ctype.h c-ctype.c c-strcase.h c-strcasecmp.c \ + c-strncasecmp.c c-strcasestr.h c-strcasestr.c c-strstr.h \ + c-strstr.c classpath.h classpath.c clean-temp.h clean-temp.c \ + closeout.h closeout.c concat-filename.c copy-file.h \ + copy-file.c csharpcomp.h csharpcomp.c csharpexec.h \ + csharpexec.c diffseq.h error-progname.h error-progname.c \ + execute.h execute.c w32spawn.h exitfail.c fatal-signal.h \ + fatal-signal.c fd-ostream.c fd-safer-flag.c dup-safer-flag.c \ + file-ostream.c findprog.h findprog.c fstrcmp.h fstrcmp.c \ + full-write.h full-write.c fwriteerror.h fwriteerror.c gcd.h \ + gcd.c gettext.h ../woe32dll/gettextlib-exports.c hash.h hash.c \ + html-ostream.c html-styled-ostream.c \ + ../woe32dll/c++html-styled-ostream.cc javacomp.h javacomp.c \ + javaexec.h javaexec.c javaversion.h javaversion.c \ gl_linkedhash_list.h gl_linkedhash_list.c gl_anyhash_list1.h \ gl_anyhash_list2.h gl_anylinked_list1.h gl_anylinked_list2.h \ gl_list.h gl_list.c localcharset.h localcharset.c localename.c \ - lock.h lock.c malloca.c mbchar.c mbslen.c mbsstr.c mbswidth.h \ - mbswidth.c mbuiter.h minmax.h ostream.c pipe.h pipe.c \ + glthread/lock.h glthread/lock.c malloca.c mbchar.c mbiter.h \ + mbslen.c mbsstr.c mbswidth.h mbswidth.c mbuiter.h minmax.h \ + ostream.c pipe.h pipe.c pipe-filter-ii.c pipe2.c pipe2-safer.c \ progname.h progname.c propername.h propername.c quote.h \ quote.c quotearg.h quotearg.c sh-quote.h sh-quote.c size_max.h \ - striconv.h striconv.c strnlen1.h strnlen1.c styled-ostream.c \ + striconv.h striconv.c striconveh.h striconveh.c striconveha.h \ + striconveha.c strnlen1.h strnlen1.c styled-ostream.c \ term-ostream.c term-styled-ostream.c \ - ../woe32dll/c++term-styled-ostream.cc tls.h tls.c tmpdir.h \ - tmpdir.c uniname/uniname.c unistr/u16-mbtouc.c \ - unistr/u16-mbtouc-aux.c unistr/u16-mbtouc-unsafe.c \ - unistr/u16-mbtouc-unsafe-aux.c unistr/u8-mbtouc.c \ + ../woe32dll/c++term-styled-ostream.cc glthread/threadlib.c \ + glthread/tls.h glthread/tls.c tmpdir.h tmpdir.c trim.c \ + uniconv/u8-conv-from-enc.c unilbrk/lbrktables.c \ + unilbrk/u8-possible-linebreaks.c unilbrk/u8-width-linebreaks.c \ + unilbrk/ulc-common.c unilbrk/ulc-width-linebreaks.c \ + uniname/uniname.c unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c \ + unistr/u8-check.c unistr/u8-mblen.c unistr/u8-mbtouc.c \ unistr/u8-mbtouc-aux.c unistr/u8-mbtouc-unsafe.c \ - unistr/u8-mbtouc-unsafe-aux.c unistr/u8-uctomb.c \ - unistr/u8-uctomb-aux.c uniwidth/width.c verify.h \ - wait-process.h wait-process.c xalloc.h xmalloc.c xstrdup.c \ - xerror.h xerror.c xmalloca.c xreadlink.c xsetenv.h xsetenv.c \ - xsize.h xstriconv.h xstriconv.c xvasprintf.h xvasprintf.c \ - xasprintf.c + unistr/u8-mbtouc-unsafe-aux.c unistr/u8-mbtoucr.c \ + unistr/u8-prev.c unistr/u8-uctomb.c unistr/u8-uctomb-aux.c \ + uniwidth/width.c verify.h wait-process.h wait-process.c \ + xalloc.h xmalloc.c xstrdup.c xconcat-filename.c xerror.h \ + xerror.c gl_xlist.h gl_xlist.c xmalloca.c xreadlink.c \ + xsetenv.h xsetenv.c xsize.h xstriconv.h xstriconv.c \ + xstriconveh.c xvasprintf.h xvasprintf.c xasprintf.c @WOE32DLL_TRUE@am__objects_1 = ../woe32dll/gettextlib-exports.lo @WOE32DLL_FALSE@am__objects_2 = html-styled-ostream.lo @WOE32DLL_TRUE@am__objects_3 = ../woe32dll/c++html-styled-ostream.lo @WOE32DLL_FALSE@am__objects_4 = term-styled-ostream.lo @WOE32DLL_TRUE@am__objects_5 = ../woe32dll/c++term-styled-ostream.lo -am_libgettextlib_la_OBJECTS = areadlink.lo gl_array_list.lo \ - backupfile.lo addext.lo basename.lo c-ctype.lo c-strcasecmp.lo \ +@LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE@am__objects_6 = uniconv/u8-conv-from-enc.lo +@LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE@am__objects_7 = unilbrk/u8-possible-linebreaks.lo +@LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE@am__objects_8 = unilbrk/u8-width-linebreaks.lo +@LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE@am__objects_9 = unilbrk/ulc-width-linebreaks.lo +@LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE@am__objects_10 = \ +@LIBUNISTRING_COMPILE_UNINAME_UNINAME_TRUE@ uniname/uniname.lo +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@am__objects_11 = unistr/u16-mbtouc.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@ unistr/u16-mbtouc-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@am__objects_12 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@ unistr/u8-check.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@am__objects_13 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@ unistr/u8-mblen.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@am__objects_14 = unistr/u8-mbtouc.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@ unistr/u8-mbtouc-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@am__objects_15 = unistr/u8-mbtouc-unsafe.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@ unistr/u8-mbtouc-unsafe-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@am__objects_16 = unistr/u8-mbtoucr.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@am__objects_17 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@ unistr/u8-prev.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@am__objects_18 = unistr/u8-uctomb.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@ unistr/u8-uctomb-aux.lo +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__objects_19 = \ +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@ uniwidth/width.lo +am_libgettextlib_la_OBJECTS = set-mode-acl.lo copy-acl.lo \ + file-has-acl.lo areadlink.lo gl_array_list.lo backupfile.lo \ + addext.lo basename.lo c-ctype.lo c-strcasecmp.lo \ c-strncasecmp.lo c-strcasestr.lo c-strstr.lo classpath.lo \ - clean-temp.lo closeout.lo copy-file.lo csharpcomp.lo \ - csharpexec.lo error-progname.lo execute.lo exitfail.lo \ - fatal-signal.lo fd-ostream.lo file-ostream.lo \ - concat-filename.lo findprog.lo fstrcmp.lo full-write.lo \ - fwriteerror.lo gcd.lo $(am__objects_1) hash.lo html-ostream.lo \ - $(am__objects_2) $(am__objects_3) javacomp.lo javaexec.lo \ - javaversion.lo linebreak.lo gl_linkedhash_list.lo gl_list.lo \ - localcharset.lo localename.lo lock.lo malloca.lo mbchar.lo \ - mbslen.lo mbsstr.lo mbswidth.lo ostream.lo pipe.lo progname.lo \ + clean-temp.lo closeout.lo concat-filename.lo copy-file.lo \ + csharpcomp.lo csharpexec.lo error-progname.lo execute.lo \ + exitfail.lo fatal-signal.lo fd-ostream.lo fd-safer-flag.lo \ + dup-safer-flag.lo file-ostream.lo findprog.lo fstrcmp.lo \ + full-write.lo fwriteerror.lo gcd.lo $(am__objects_1) hash.lo \ + html-ostream.lo $(am__objects_2) $(am__objects_3) javacomp.lo \ + javaexec.lo javaversion.lo gl_linkedhash_list.lo gl_list.lo \ + localcharset.lo localename.lo glthread/lock.lo malloca.lo \ + mbchar.lo mbslen.lo mbsstr.lo mbswidth.lo ostream.lo pipe.lo \ + pipe-filter-ii.lo pipe2.lo pipe2-safer.lo progname.lo \ propername.lo quote.lo quotearg.lo sh-quote.lo striconv.lo \ - strnlen1.lo styled-ostream.lo term-ostream.lo $(am__objects_4) \ - $(am__objects_5) tls.lo tmpdir.lo uniname/uniname.lo \ - unistr/u16-mbtouc.lo unistr/u16-mbtouc-aux.lo \ - unistr/u16-mbtouc-unsafe.lo unistr/u16-mbtouc-unsafe-aux.lo \ - unistr/u8-mbtouc.lo unistr/u8-mbtouc-aux.lo \ - unistr/u8-mbtouc-unsafe.lo unistr/u8-mbtouc-unsafe-aux.lo \ - unistr/u8-uctomb.lo unistr/u8-uctomb-aux.lo uniwidth/width.lo \ - wait-process.lo xmalloc.lo xstrdup.lo xerror.lo xmalloca.lo \ - xreadlink.lo xsetenv.lo xstriconv.lo xvasprintf.lo \ - xasprintf.lo + striconveh.lo striconveha.lo strnlen1.lo styled-ostream.lo \ + term-ostream.lo $(am__objects_4) $(am__objects_5) \ + glthread/threadlib.lo glthread/tls.lo tmpdir.lo trim.lo \ + $(am__objects_6) unilbrk/lbrktables.lo $(am__objects_7) \ + $(am__objects_8) unilbrk/ulc-common.lo $(am__objects_9) \ + $(am__objects_10) $(am__objects_11) $(am__objects_12) \ + $(am__objects_13) $(am__objects_14) $(am__objects_15) \ + $(am__objects_16) $(am__objects_17) $(am__objects_18) \ + $(am__objects_19) wait-process.lo xmalloc.lo xstrdup.lo \ + xconcat-filename.lo xerror.lo gl_xlist.lo xmalloca.lo \ + xreadlink.lo xsetenv.lo xstriconv.lo xstriconveh.lo \ + xvasprintf.lo xasprintf.lo libgettextlib_la_OBJECTS = $(am_libgettextlib_la_OBJECTS) libglib_rpl_la_LIBADD = am_libglib_rpl_la_OBJECTS = glib/libglib_rpl_la-ghash.lo \ @@ -390,27 +511,47 @@ libxml/libxml_rpl_la-xpath.lo libxml/libxml_rpl_la-xpointer.lo libxml_rpl_la_OBJECTS = $(am_libxml_rpl_la_OBJECTS) @INCLUDED_LIBXML_TRUE@am_libxml_rpl_la_rpath = -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_$(V)) +am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) +am__v_CXX_0 = @echo " CXX " $@; CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_$(V)) +am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CXXLD_0 = @echo " CXXLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(libcroco_rpl_la_SOURCES) $(libgettextlib_la_SOURCES) \ $(EXTRA_libgettextlib_la_SOURCES) $(libglib_rpl_la_SOURCES) \ $(libxml_rpl_la_SOURCES) @@ -418,8 +559,6 @@ $(am__libgettextlib_la_SOURCES_DIST) \ $(EXTRA_libgettextlib_la_SOURCES) $(libglib_rpl_la_SOURCES) \ $(libxml_rpl_la_SOURCES) -gettextsrcDATA_INSTALL = $(INSTALL_DATA) -pkgdataDATA_INSTALL = $(INSTALL_DATA) DATA = $(gettextsrc_DATA) $(pkgdata_DATA) ETAGS = etags CTAGS = ctags @@ -431,8 +570,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -474,136 +617,320 @@ -DEXEEXT=\"@EXEEXT@\" DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -617,53 +944,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -676,17 +1083,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -694,18 +1104,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -720,6 +1138,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -730,94 +1149,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -827,13 +1374,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -854,8 +1402,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -870,6 +1429,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -883,31 +1443,36 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects no-dependencies -EXTRA_DIST = acl-internal.h acl.c acl.h acl_entries.c file-has-acl.c \ - alloca.in.h areadlink.h argmatch.c argmatch.h atexit.c \ - byteswap.in.h canonicalize-lgpl.c canonicalize.h \ - $(top_srcdir)/../build-aux/csharpcomp.sh.in classpath.c \ - classpath.h $(top_srcdir)/../build-aux/csharpexec.sh.in \ - error.c error.h fcntl.in.h fd-ostream.h fd-ostream.c \ - fd_ostream.priv.h fd_ostream.vt.h fd-ostream.oo.c \ +EXTRA_DIST = acl-internal.h acl.h acl_entries.c alignof.h alloca.in.h \ + areadlink.h $(top_srcdir)/../build-aux/arg-nonnull.h \ + argmatch.c argmatch.h atexit.c byteswap.in.h \ + $(top_srcdir)/../build-aux/c++defs.h c-strcaseeq.h \ + str-two-way.h canonicalize-lgpl.c cloexec.c cloexec.h \ + concat-filename.h $(top_srcdir)/../build-aux/csharpcomp.sh.in \ + classpath.c classpath.h \ + $(top_srcdir)/../build-aux/csharpexec.sh.in dup2.c errno.in.h \ + error.c error.h exitfail.h fcntl.c fcntl.in.h fd-ostream.h \ + fd-ostream.c fd_ostream.priv.h fd_ostream.vt.h fd-ostream.oo.c \ fd-ostream.oo.h file-ostream.h file-ostream.c \ file_ostream.priv.h file_ostream.vt.h file-ostream.oo.c \ file-ostream.oo.h filename.h float.in.h fnmatch.c fnmatch.in.h \ - fnmatch_loop.c fopen.c getdelim.c getline.c getopt.c \ - getopt.in.h getopt1.c getopt_int.h \ + fnmatch_loop.c fopen.c getdelim.c getdtablesize.c getline.c \ + getopt.c getopt.in.h getopt1.c getopt_int.h \ $(top_srcdir)/../build-aux/config.rpath gettimeofday.c \ $(top_srcdir)/../build-aux/config.rpath html-ostream.h \ html-ostream.c html_ostream.priv.h html_ostream.vt.h \ html-ostream.oo.c html-ostream.oo.h html-styled-ostream.h \ html-styled-ostream.c html_styled_ostream.priv.h \ html_styled_ostream.vt.h html-styled-ostream.oo.c \ - html-styled-ostream.oo.h iconv_open-aix.h iconv_open-hpux.h \ - iconv_open-irix.h iconv_open-osf.h iconv.in.h \ - iconv_open-aix.gperf iconv_open-hpux.gperf \ - iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c \ + html-styled-ostream.oo.h iconv.in.h iconv_open-aix.h \ + iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \ + iconv_open-solaris.h iconv_open-aix.gperf \ + iconv_open-hpux.gperf iconv_open-irix.gperf \ + iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c \ intprops.h $(top_srcdir)/../build-aux/javacomp.sh.in \ $(top_srcdir)/../build-aux/javaexec.sh.in javaversion.class \ javaversion.java libcroco/cr-additional-sel.c \ @@ -938,29 +1503,29 @@ glib/gmessages.c glib/gprimes.c glib/gprimes.in.h \ glib/gstrfuncs.c glib/gstrfuncs.in.h glib/gstring.c \ glib/gstring.in.h glib/gtypes.in.h glibconfig.in.h \ - libxml/COPYING libxml/DOCBparser.c libxml/DOCBparser.in.h \ - libxml/HTMLparser.c libxml/HTMLparser.in.h libxml/HTMLtree.c \ - libxml/HTMLtree.in.h libxml/SAX.c libxml/SAX.in.h \ - libxml/SAX2.c libxml/SAX2.in.h libxml/c14n.c libxml/c14n.in.h \ - libxml/catalog.c libxml/catalog.in.h libxml/chvalid.c \ - libxml/chvalid.in.h libxml/debugXML.c libxml/debugXML.in.h \ - libxml/dict.c libxml/dict.in.h libxml/elfgcchack.h \ - libxml/encoding.c libxml/encoding.in.h libxml/entities.c \ - libxml/entities.in.h libxml/error.c libxml/globals.c \ - libxml/globals.in.h libxml/hash.c libxml/hash.in.h \ - libxml/legacy.c libxml/libxml.h libxml/list.c libxml/list.in.h \ - libxml/nanoftp.c libxml/nanoftp.in.h libxml/nanohttp.c \ - libxml/nanohttp.in.h libxml/parser.c libxml/parser.in.h \ - libxml/parserInternals.c libxml/parserInternals.in.h \ - libxml/pattern.c libxml/pattern.in.h libxml/relaxng.c \ - libxml/relaxng.in.h libxml/schemasInternals.in.h \ - libxml/schematron.c libxml/schematron.in.h libxml/threads.c \ - libxml/threads.in.h libxml/tree.c libxml/tree.in.h \ - libxml/uri.c libxml/uri.in.h libxml/valid.c libxml/valid.in.h \ - libxml/xinclude.c libxml/xinclude.in.h libxml/xlink.c \ - libxml/xlink.in.h libxml/xmlIO.c libxml/xmlIO.in.h \ - libxml/xmlautomata.in.h libxml/xmlerror.in.h \ - libxml/xmlexports.in.h libxml/xmlmemory.c \ + libunistring.valgrind libxml/COPYING libxml/DOCBparser.c \ + libxml/DOCBparser.in.h libxml/HTMLparser.c \ + libxml/HTMLparser.in.h libxml/HTMLtree.c libxml/HTMLtree.in.h \ + libxml/SAX.c libxml/SAX.in.h libxml/SAX2.c libxml/SAX2.in.h \ + libxml/c14n.c libxml/c14n.in.h libxml/catalog.c \ + libxml/catalog.in.h libxml/chvalid.c libxml/chvalid.in.h \ + libxml/debugXML.c libxml/debugXML.in.h libxml/dict.c \ + libxml/dict.in.h libxml/elfgcchack.h libxml/encoding.c \ + libxml/encoding.in.h libxml/entities.c libxml/entities.in.h \ + libxml/error.c libxml/globals.c libxml/globals.in.h \ + libxml/hash.c libxml/hash.in.h libxml/legacy.c libxml/libxml.h \ + libxml/list.c libxml/list.in.h libxml/nanoftp.c \ + libxml/nanoftp.in.h libxml/nanohttp.c libxml/nanohttp.in.h \ + libxml/parser.c libxml/parser.in.h libxml/parserInternals.c \ + libxml/parserInternals.in.h libxml/pattern.c \ + libxml/pattern.in.h libxml/relaxng.c libxml/relaxng.in.h \ + libxml/schemasInternals.in.h libxml/schematron.c \ + libxml/schematron.in.h libxml/threads.c libxml/threads.in.h \ + libxml/tree.c libxml/tree.in.h libxml/uri.c libxml/uri.in.h \ + libxml/valid.c libxml/valid.in.h libxml/xinclude.c \ + libxml/xinclude.in.h libxml/xlink.c libxml/xlink.in.h \ + libxml/xmlIO.c libxml/xmlIO.in.h libxml/xmlautomata.in.h \ + libxml/xmlerror.in.h libxml/xmlexports.in.h libxml/xmlmemory.c \ libxml/xmlmemory.in.h libxml/xmlmodule.c libxml/xmlmodule.in.h \ libxml/xmlreader.c libxml/xmlreader.in.h libxml/xmlregexp.c \ libxml/xmlregexp.in.h libxml/xmlsave.c libxml/xmlsave.in.h \ @@ -970,65 +1535,106 @@ libxml/xmlunicode.in.h libxml/xmlversion.in.h \ libxml/xmlwriter.c libxml/xmlwriter.in.h libxml/xpath.c \ libxml/xpath.in.h libxml/xpathInternals.in.h libxml/xpointer.c \ - libxml/xpointer.in.h $(top_srcdir)/../build-aux/link-warning.h \ - config.charset ref-add.sin ref-del.sin locale.in.h \ - localename.h $(top_srcdir)/../build-aux/config.rpath malloc.c \ - malloca.h malloca.valgrind mbchar.h memchr.c memmove.c \ - memset.c mkdtemp.c moo.h $(top_srcdir)/../build-aux/moopp \ - obstack.c obstack.h open.c ostream.h ostream.c ostream.priv.h \ - ostream.vt.h ostream.oo.c ostream.oo.h pathmax.h readlink.c \ - realloc.c progreloc.c relocatable.c relocatable.h \ + libxml/xpointer.in.h config.charset ref-add.sin ref-del.sin \ + locale.in.h localename.h lstat.c malloc.c malloca.h \ + malloca.valgrind mbchar.h mbrtowc.c mbsinit.c \ + mbsrtowcs-state.c mbsrtowcs.c str-kmp.h memchr.c \ + memchr.valgrind memmove.c memset.c mkdtemp.c moo.h \ + $(top_srcdir)/../build-aux/moopp obstack.c obstack.h open.c \ + ostream.h ostream.c ostream.priv.h ostream.vt.h ostream.oo.c \ + ostream.oo.h pathmax.h pipe-filter-aux.h pipe-filter.h \ + spawn_int.h spawni.c spawn_faction_addclose.c spawn_int.h \ + spawn_faction_adddup2.c spawn_int.h spawn_faction_addopen.c \ + spawn_int.h spawn_faction_destroy.c spawn_faction_init.c \ + spawn_int.h spawnattr_destroy.c spawnattr_init.c \ + spawnattr_setflags.c spawnattr_setsigmask.c spawnp.c \ + rawmemchr.c rawmemchr.valgrind readlink.c realloc.c \ + progreloc.c relocatable.c relocatable.h \ $(top_srcdir)/../build-aux/config.libpath \ $(top_srcdir)/../build-aux/reloc-ldflags areadlink.c \ - areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c \ - canonicalize.h malloca.c malloca.h progname.c progname.h \ - progreloc.c readlink.c relocatable.c relocatable.h \ - relocwrapper.c setenv.c setenv.h strerror.c xreadlink.c \ - xreadlink.h $(top_srcdir)/../build-aux/install-reloc \ - $(top_srcdir)/../build-aux/relocatable.sh.in safe-read.c \ - safe-read.h safe-write.c safe-write.h setenv.c setenv.h \ - unsetenv.c signal.in.h sigprocmask.c snprintf.c stdbool.in.h \ - stdint.in.h stdio.in.h stdlib.in.h stpcpy.c stpncpy.c \ - strcspn.c strdup.c streq.h strerror.c string.in.h strnlen.c \ - strpbrk.c strtol.c strtoul.c styled-ostream.h styled-ostream.c \ - styled_ostream.priv.h styled_ostream.vt.h styled-ostream.oo.c \ - styled-ostream.oo.h sys_stat.in.h sys_time.in.h tempname.c \ - tempname.h term-ostream.h term-ostream.c term_ostream.priv.h \ - term_ostream.vt.h term-ostream.oo.c term-ostream.oo.h \ - term-styled-ostream.h term-styled-ostream.c \ + areadlink.h c-ctype.c c-ctype.h canonicalize-lgpl.c malloca.c \ + malloca.h progname.c progname.h progreloc.c readlink.c \ + relocatable.c relocatable.h relocwrapper.c setenv.c strerror.c \ + $(top_srcdir)/../build-aux/install-reloc \ + $(top_srcdir)/../build-aux/relocatable.sh.in rmdir.c \ + safe-read.c safe-read.h safe-write.c safe-write.h sched.in.h \ + setenv.c sig-handler.h sigaction.c signal.in.h sigprocmask.c \ + snprintf.c spawn.in.h stat.c stdarg.in.h stdbool.in.h \ + stddef.in.h stdint.in.h stdio-write.c stdio.in.h stdlib.in.h \ + stpcpy.c stpncpy.c strchrnul.c strchrnul.valgrind strcspn.c \ + streq.h strerror.c iconveh.h string.in.h strnlen.c strpbrk.c \ + str-two-way.h strstr.c strtol.c strtoul.c styled-ostream.h \ + styled-ostream.c styled_ostream.priv.h styled_ostream.vt.h \ + styled-ostream.oo.c styled-ostream.oo.h sys_select.in.h \ + sys_socket.in.h sys_stat.in.h sys_time.in.h sys_wait.in.h \ + tempname.c tempname.h term-ostream.h term-ostream.c \ + term_ostream.priv.h term_ostream.vt.h term-ostream.oo.c \ + term-ostream.oo.h term-styled-ostream.h term-styled-ostream.c \ term_styled_ostream.priv.h term_styled_ostream.vt.h \ term-styled-ostream.oo.c term-styled-ostream.oo.h tparm.c \ - tputs.c terminfo.h uniname.h uniname/gen-uninames.lisp \ - uniname/uninames.h unistd.in.h unistr.h unitypes.h \ - localcharset.h uniwidth.h uniwidth/cjk.h unlocked-io.h \ - asnprintf.c float+.h printf-args.c printf-args.h \ - printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h \ - vasprintf.c vsnprintf.c wchar.in.h wctype.in.h wcwidth.c \ - xmalloca.h xreadlink.h xalloc.h -BUILT_SOURCES = $(ALLOCA_H) $(BYTESWAP_H) configmake.h $(FCNTL_H) \ - fd-ostream.h fd-ostream.c fd_ostream.priv.h fd_ostream.vt.h \ - file-ostream.h file-ostream.c file_ostream.priv.h \ - file_ostream.vt.h $(FLOAT_H) $(FNMATCH_H) $(GETOPT_H) \ - html-ostream.h html-ostream.c html_ostream.priv.h \ - html_ostream.vt.h html-styled-ostream.h html-styled-ostream.c \ + tputs.c terminfo.h $(top_srcdir)/../build-aux/config.rpath \ + time.in.h trim.h iconveh.h localcharset.h striconveha.h \ + uniconv.in.h unilbrk.in.h unilbrk/lbrkprop1.h \ + unilbrk/lbrkprop2.h unilbrk/lbrktables.h uniwidth/cjk.h \ + unilbrk/ulc-common.h uniname.in.h uniname/gen-uninames.lisp \ + uniname/uninames.h unistd.in.h dup-safer.c fd-safer.c \ + pipe-safer.c unistd--.h unistd-safer.h unistr.in.h \ + unitypes.in.h localcharset.h uniwidth.in.h uniwidth/cjk.h \ + unlocked-io.h unsetenv.c \ + $(top_srcdir)/../build-aux/unused-parameter.h asnprintf.c \ + float+.h printf-args.c printf-args.h printf-parse.c \ + printf-parse.h vasnprintf.c vasnprintf.h asprintf.c \ + vasprintf.c vsnprintf.c \ + $(top_srcdir)/../build-aux/warn-on-use.h wchar.in.h \ + wctype.in.h wcwidth.c write.c concat-filename.h xmalloca.h \ + xreadlink.h xstriconveh.h xalloc.h + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. +BUILT_SOURCES = $(ALLOCA_H) arg-nonnull.h $(BYTESWAP_H) c++defs.h \ + configmake.h $(ERRNO_H) fcntl.h fd-ostream.h fd-ostream.c \ + fd_ostream.priv.h fd_ostream.vt.h file-ostream.h \ + file-ostream.c file_ostream.priv.h file_ostream.vt.h \ + $(FLOAT_H) $(FNMATCH_H) $(GETOPT_H) html-ostream.h \ + html-ostream.c html_ostream.priv.h html_ostream.vt.h \ + html-styled-ostream.h html-styled-ostream.c \ html_styled_ostream.priv.h html_styled_ostream.vt.h $(ICONV_H) \ iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ - iconv_open-osf.h $(LIBGLIB_H) $(LIBXML_H) $(LOCALE_H) \ - ostream.h ostream.c ostream.priv.h ostream.vt.h signal.h \ - $(STDBOOL_H) $(STDINT_H) stdio.h stdlib.h string.h \ + iconv_open-osf.h iconv_open-solaris.h $(LIBGLIB_H) $(LIBXML_H) \ + locale.h ostream.h ostream.c ostream.priv.h ostream.vt.h \ + $(SCHED_H) signal.h spawn.h $(STDARG_H) $(STDBOOL_H) \ + $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h \ styled-ostream.h styled-ostream.c styled_ostream.priv.h \ - styled_ostream.vt.h $(SYS_STAT_H) $(SYS_TIME_H) term-ostream.h \ - term-ostream.c term_ostream.priv.h term_ostream.vt.h \ - term-styled-ostream.h term-styled-ostream.c \ - term_styled_ostream.priv.h term_styled_ostream.vt.h unistd.h \ - $(WCHAR_H) $(WCTYPE_H) + styled_ostream.vt.h sys/select.h sys/socket.h sys/stat.h \ + sys/time.h sys/wait.h term-ostream.h term-ostream.c \ + term_ostream.priv.h term_ostream.vt.h term-styled-ostream.h \ + term-styled-ostream.c term_styled_ostream.priv.h \ + term_styled_ostream.vt.h time.h $(LIBUNISTRING_UNICONV_H) \ + $(LIBUNISTRING_UNILBRK_H) $(LIBUNISTRING_UNINAME_H) unistd.h \ + $(LIBUNISTRING_UNISTR_H) $(LIBUNISTRING_UNITYPES_H) \ + $(LIBUNISTRING_UNIWIDTH_H) unused-parameter.h warn-on-use.h \ + wchar.h wctype.h MOSTLYCLEANFILES = core *.stackdump core *.stackdump alloca.h \ - alloca.h-t byteswap.h byteswap.h-t fcntl.h fcntl.h-t float.h \ - float.h-t fnmatch.h fnmatch.h-t getopt.h getopt.h-t iconv.h \ - iconv.h-t iconv_open-aix.h-t iconv_open-hpux.h-t \ - iconv_open-irix.h-t iconv_open-osf.h-t glib.h glibconfig.h \ - glib/ghash.h glib/glist.h glib/gprimes.h glib/gstrfuncs.h \ - glib/gstring.h glib/gtypes.h glib/*.h-t libxml/DOCBparser.h \ + alloca.h-t arg-nonnull.h arg-nonnull.h-t byteswap.h \ + byteswap.h-t c++defs.h c++defs.h-t errno.h errno.h-t fcntl.h \ + fcntl.h-t float.h float.h-t fnmatch.h fnmatch.h-t getopt.h \ + getopt.h-t iconv.h iconv.h-t iconv_open-aix.h-t \ + iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t \ + iconv_open-solaris.h-t glib.h glibconfig.h glib/ghash.h \ + glib/glist.h glib/gprimes.h glib/gstrfuncs.h glib/gstring.h \ + glib/gtypes.h glib/*.h-t libxml/DOCBparser.h \ libxml/HTMLparser.h libxml/HTMLtree.h libxml/SAX.h \ libxml/SAX2.h libxml/c14n.h libxml/catalog.h libxml/chvalid.h \ libxml/debugXML.h libxml/dict.h libxml/encoding.h \ @@ -1043,12 +1649,19 @@ libxml/xmlsave.h libxml/xmlschemas.h libxml/xmlschemastypes.h \ libxml/xmlstring.h libxml/xmlunicode.h libxml/xmlversion.h \ libxml/xmlwriter.h libxml/xpath.h libxml/xpathInternals.h \ - libxml/xpointer.h libxml/*.h-t locale.h locale.h-t signal.h \ - signal.h-t stdbool.h stdbool.h-t stdint.h stdint.h-t stdio.h \ - stdio.h-t stdlib.h stdlib.h-t string.h string.h-t sys/stat.h \ - sys/stat.h-t sys/time.h sys/time.h-t unistd.h unistd.h-t \ - wchar.h wchar.h-t wctype.h wctype.h-t -MOSTLYCLEANDIRS = sys + libxml/xpointer.h libxml/*.h-t locale.h locale.h-t sched.h \ + sched.h-t signal.h signal.h-t spawn.h spawn.h-t stdarg.h \ + stdarg.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t stdint.h \ + stdint.h-t stdio.h stdio.h-t stdlib.h stdlib.h-t string.h \ + string.h-t sys/select.h sys/select.h-t sys/socket.h \ + sys/socket.h-t sys/stat.h sys/stat.h-t sys/time.h sys/time.h-t \ + sys/wait.h sys/wait.h-t time.h time.h-t uniconv.h uniconv.h-t \ + unilbrk.h unilbrk.h-t uniname.h uniname.h-t unistd.h \ + unistd.h-t unistr.h unistr.h-t unitypes.h unitypes.h-t \ + uniwidth.h uniwidth.h-t unused-parameter.h \ + unused-parameter.h-t warn-on-use.h warn-on-use.h-t wchar.h \ + wchar.h-t wctype.h wctype.h-t +MOSTLYCLEANDIRS = sys sys sys sys CLEANFILES = configmake.h configmake.h-t charset.alias ref-add.sed \ ref-del.sed DISTCLEANFILES = @@ -1059,14 +1672,15 @@ html-styled-ostream.h html-styled-ostream.c \ html_styled_ostream.priv.h html_styled_ostream.vt.h \ iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ - iconv_open-osf.h ostream.h ostream.c ostream.priv.h \ - ostream.vt.h styled-ostream.h styled-ostream.c \ + iconv_open-osf.h iconv_open-solaris.h ostream.h ostream.c \ + ostream.priv.h ostream.vt.h styled-ostream.h styled-ostream.c \ styled_ostream.priv.h styled_ostream.vt.h term-ostream.h \ term-ostream.c term_ostream.priv.h term_ostream.vt.h \ term-styled-ostream.h term-styled-ostream.c \ term_styled_ostream.priv.h term_styled_ostream.vt.h SUFFIXES = .sed .sin -noinst_LTLIBRARIES = $(am__append_9) $(am__append_14) $(am__append_17) +noinst_LTLIBRARIES = $(am__append_10) $(am__append_15) \ + $(am__append_18) # Extra files to be installed. gettextsrcdir = $(datadir)/gettext @@ -1089,50 +1703,56 @@ AM_CPPFLAGS = -I$(top_builddir)/intl -I$(top_srcdir)/intl \ -I$(top_builddir) -I$(top_srcdir) -DDEPENDS_ON_LIBICONV=1 \ -DDEPENDS_ON_LIBINTL=1 $(am__append_1) -I$(top_builddir)/intl \ - $(INCGLIB) $(INCXML) $(am__append_6) $(am__append_10) -libgettextlib_la_SOURCES = areadlink.c gl_array_list.h gl_array_list.c \ - backupfile.h backupfile.c addext.c basename.h basename.c \ - binary-io.h c-ctype.h c-ctype.c c-strcase.h c-strcasecmp.c \ - c-strncasecmp.c c-strcasestr.h c-strcasestr.c c-strstr.h \ - c-strstr.c classpath.h classpath.c clean-temp.h clean-temp.c \ - closeout.h closeout.c copy-file.h copy-file.c csharpcomp.h \ - csharpcomp.c csharpexec.h csharpexec.c diffseq.h \ + $(am__append_4) $(INCGLIB) $(INCXML) $(am__append_7) \ + $(am__append_11) +libgettextlib_la_SOURCES = set-mode-acl.c copy-acl.c file-has-acl.c \ + areadlink.c gl_array_list.h gl_array_list.c backupfile.h \ + backupfile.c addext.c basename.h basename.c binary-io.h \ + c-ctype.h c-ctype.c c-strcase.h c-strcasecmp.c c-strncasecmp.c \ + c-strcasestr.h c-strcasestr.c c-strstr.h c-strstr.c \ + classpath.h classpath.c clean-temp.h clean-temp.c closeout.h \ + closeout.c concat-filename.c copy-file.h copy-file.c \ + csharpcomp.h csharpcomp.c csharpexec.h csharpexec.c diffseq.h \ error-progname.h error-progname.c execute.h execute.c \ - w32spawn.h exitfail.h exitfail.c fatal-signal.h fatal-signal.c \ - fd-ostream.c file-ostream.c concat-filename.c findprog.h \ - findprog.c fstrcmp.h fstrcmp.c full-write.h full-write.c \ - fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h \ - $(am__append_2) hash.h hash.c html-ostream.c $(am__append_4) \ - $(am__append_5) javacomp.h javacomp.c javaexec.h javaexec.c \ - javaversion.h javaversion.c linebreak.h linebreak.c lbrkprop.h \ - gl_linkedhash_list.h gl_linkedhash_list.c gl_anyhash_list1.h \ - gl_anyhash_list2.h gl_anylinked_list1.h gl_anylinked_list2.h \ - gl_list.h gl_list.c localcharset.h localcharset.c localename.c \ - lock.h lock.c malloca.c mbchar.c mbslen.c mbsstr.c mbswidth.h \ - mbswidth.c mbuiter.h minmax.h ostream.c pipe.h pipe.c \ - w32spawn.h progname.h progname.c propername.h propername.c \ - quote.h quote.c quotearg.h quotearg.c sh-quote.h sh-quote.c \ - size_max.h striconv.h striconv.c strnlen1.h strnlen1.c \ - styled-ostream.c term-ostream.c $(am__append_18) \ - $(am__append_19) tls.h tls.c tmpdir.h tmpdir.c \ - uniname/uniname.c unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c \ - unistr/u16-mbtouc-unsafe.c unistr/u16-mbtouc-unsafe-aux.c \ - unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c \ - unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c \ - unistr/u8-uctomb.c unistr/u8-uctomb-aux.c uniwidth/width.c \ - verify.h wait-process.h wait-process.c xalloc.h xmalloc.c \ - xstrdup.c xerror.h xerror.c xmalloca.c xreadlink.c xsetenv.h \ - xsetenv.c xsize.h xstriconv.h xstriconv.c xvasprintf.h \ - xvasprintf.c xasprintf.c -libgettextlib_la_LIBADD = $(gl_LTLIBOBJS) $(am__append_7) \ - $(am__append_12) $(am__append_15) -libgettextlib_la_DEPENDENCIES = $(gl_LTLIBOBJS) $(am__append_8) \ + w32spawn.h exitfail.c fatal-signal.h fatal-signal.c \ + fd-ostream.c fd-safer-flag.c dup-safer-flag.c file-ostream.c \ + findprog.h findprog.c fstrcmp.h fstrcmp.c full-write.h \ + full-write.c fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h \ + $(am__append_2) hash.h hash.c html-ostream.c $(am__append_5) \ + $(am__append_6) javacomp.h javacomp.c javaexec.h javaexec.c \ + javaversion.h javaversion.c gl_linkedhash_list.h \ + gl_linkedhash_list.c gl_anyhash_list1.h gl_anyhash_list2.h \ + gl_anylinked_list1.h gl_anylinked_list2.h gl_list.h gl_list.c \ + localcharset.h localcharset.c localename.c glthread/lock.h \ + glthread/lock.c malloca.c mbchar.c mbiter.h mbslen.c mbsstr.c \ + mbswidth.h mbswidth.c mbuiter.h minmax.h ostream.c pipe.h \ + pipe.c w32spawn.h pipe-filter-ii.c pipe2.c pipe2-safer.c \ + progname.h progname.c propername.h propername.c quote.h \ + quote.c quotearg.h quotearg.c sh-quote.h sh-quote.c size_max.h \ + striconv.h striconv.c striconveh.h striconveh.c striconveha.h \ + striconveha.c strnlen1.h strnlen1.c styled-ostream.c \ + term-ostream.c $(am__append_19) $(am__append_20) \ + glthread/threadlib.c glthread/tls.h glthread/tls.c tmpdir.h \ + tmpdir.c trim.c $(am__append_21) unilbrk/lbrktables.c \ + $(am__append_22) $(am__append_23) unilbrk/ulc-common.c \ + $(am__append_24) $(am__append_25) $(am__append_26) \ + $(am__append_27) $(am__append_28) $(am__append_29) \ + $(am__append_30) $(am__append_31) $(am__append_32) \ + $(am__append_33) $(am__append_34) verify.h wait-process.h \ + wait-process.c xalloc.h xmalloc.c xstrdup.c xconcat-filename.c \ + xerror.h xerror.c gl_xlist.h gl_xlist.c xmalloca.c xreadlink.c \ + xsetenv.h xsetenv.c xsize.h xstriconv.h xstriconv.c \ + xstriconveh.c xvasprintf.h xvasprintf.c xasprintf.c +libgettextlib_la_LIBADD = $(gl_LTLIBOBJS) $(am__append_8) \ $(am__append_13) $(am__append_16) -EXTRA_libgettextlib_la_SOURCES = acl.c acl_entries.c file-has-acl.c \ - argmatch.c atexit.c canonicalize-lgpl.c classpath.c error.c \ - fd-ostream.oo.c file-ostream.oo.c fnmatch.c fnmatch_loop.c \ - fopen.c getdelim.c getline.c getopt.c getopt1.c gettimeofday.c \ - html-ostream.oo.c html-styled-ostream.oo.c iconv_open.c \ +libgettextlib_la_DEPENDENCIES = $(gl_LTLIBOBJS) $(am__append_9) \ + $(am__append_14) $(am__append_17) +EXTRA_libgettextlib_la_SOURCES = acl_entries.c argmatch.c atexit.c \ + canonicalize-lgpl.c cloexec.c classpath.c dup2.c error.c \ + fcntl.c fd-ostream.oo.c file-ostream.oo.c fnmatch.c \ + fnmatch_loop.c fopen.c getdelim.c getdtablesize.c getline.c \ + getopt.c getopt1.c gettimeofday.c html-ostream.oo.c \ + html-styled-ostream.oo.c iconv_open.c \ libcroco/cr-additional-sel.c libcroco/cr-attr-sel.c \ libcroco/cr-cascade.c libcroco/cr-declaration.c \ libcroco/cr-doc-handler.c libcroco/cr-enc-handler.c \ @@ -1159,28 +1779,35 @@ libxml/xmlreader.c libxml/xmlregexp.c libxml/xmlsave.c \ libxml/xmlschemas.c libxml/xmlschemastypes.c \ libxml/xmlstring.c libxml/xmlunicode.c libxml/xmlwriter.c \ - libxml/xpath.c libxml/xpointer.c malloc.c memchr.c memmove.c \ - memset.c mkdtemp.c obstack.c open.c ostream.oo.c readlink.c \ - realloc.c progreloc.c relocatable.c safe-read.c safe-write.c \ - setenv.c unsetenv.c sigprocmask.c snprintf.c stpcpy.c \ - stpncpy.c strcspn.c strdup.c strerror.c strnlen.c strpbrk.c \ - strtol.c strtoul.c styled-ostream.oo.c tempname.c \ + libxml/xpath.c libxml/xpointer.c lstat.c malloc.c mbrtowc.c \ + mbsinit.c mbsrtowcs-state.c mbsrtowcs.c memchr.c memmove.c \ + memset.c mkdtemp.c obstack.c open.c ostream.oo.c spawni.c \ + spawn_faction_addclose.c spawn_faction_adddup2.c \ + spawn_faction_addopen.c spawn_faction_destroy.c \ + spawn_faction_init.c spawnattr_destroy.c spawnattr_init.c \ + spawnattr_setflags.c spawnattr_setsigmask.c spawnp.c \ + rawmemchr.c readlink.c realloc.c progreloc.c relocatable.c \ + rmdir.c safe-read.c safe-write.c setenv.c sigaction.c \ + sigprocmask.c snprintf.c stat.c stdio-write.c stpcpy.c \ + stpncpy.c strchrnul.c strcspn.c strerror.c strnlen.c strpbrk.c \ + strstr.c strtol.c strtoul.c styled-ostream.oo.c tempname.c \ term-ostream.oo.c term-styled-ostream.oo.c tparm.c tputs.c \ - asnprintf.c printf-args.c printf-parse.c vasnprintf.c \ - vasprintf.c vsnprintf.c wcwidth.c - + dup-safer.c fd-safer.c pipe-safer.c unsetenv.c asnprintf.c \ + printf-args.c printf-parse.c vasnprintf.c asprintf.c \ + vasprintf.c vsnprintf.c wcwidth.c write.c + +# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be +# taken from libunistring, when the configure option --with-libunistring-prefix +# was given. # Need @LTLIBINTL@ because many source files use gettext(). # Need @LTLIBICONV@ because linebreak.c and striconv.c use iconv(). # Need @LIB_ACL@ because copy-file.c uses acl.h. # Need @LTLIBC@ for -no-undefined to work on many platforms. libgettextlib_la_LDFLAGS = $(AM_LDFLAGS) -release @VERSION@ \ - @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@ \ - $(am__append_3) $(am__append_11) - -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) + $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ \ + @LTNOUNDEF@ $(am__append_3) $(am__append_12) +ARG_NONNULL_H = arg-nonnull.h +CXXDEFS_H = c++defs.h # Specify that libgettextlib should installed in $(libdir). lib_LTLIBRARIES = libgettextlib.la @@ -1269,7 +1896,6 @@ libxml/xpointer.c libxml_rpl_la_CPPFLAGS = $(AM_CPPFLAGS) $(NO_CXX) -LINK_WARNING_H = $(top_srcdir)/../build-aux/link-warning.h charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp @@ -1277,14 +1903,16 @@ # Which classes to export from the shared library. MOOPPFLAGS = --dllexport=styled_ostream +UNUSED_PARAMETER_H = unused-parameter.h +WARN_ON_USE_H = warn-on-use.h # Linking with C++ libraries is needed _only_ on mingw and Cygwin. -@WOE32DLL_FALSE@libgettextlib_la_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@libgettextlib_la_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextlib_la_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ @@ -1298,14 +1926,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits gnulib-lib/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits gnulib-lib/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits gnulib-lib/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits gnulib-lib/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -1323,23 +1951,28 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + list2="$$list2 $$p"; \ else :; fi; \ - done + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: @@ -1391,13 +2024,31 @@ libcroco/libcroco_rpl_la-cr-token.lo: libcroco/$(am__dirstamp) libcroco/libcroco_rpl_la-cr-utils.lo: libcroco/$(am__dirstamp) libcroco_rpl.la: $(libcroco_rpl_la_OBJECTS) $(libcroco_rpl_la_DEPENDENCIES) - $(LINK) $(am_libcroco_rpl_la_rpath) $(libcroco_rpl_la_OBJECTS) $(libcroco_rpl_la_LIBADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(am_libcroco_rpl_la_rpath) $(libcroco_rpl_la_OBJECTS) $(libcroco_rpl_la_LIBADD) $(LIBS) ../woe32dll/$(am__dirstamp): @$(MKDIR_P) ../woe32dll @: > ../woe32dll/$(am__dirstamp) ../woe32dll/gettextlib-exports.lo: ../woe32dll/$(am__dirstamp) ../woe32dll/c++html-styled-ostream.lo: ../woe32dll/$(am__dirstamp) +glthread/$(am__dirstamp): + @$(MKDIR_P) glthread + @: > glthread/$(am__dirstamp) +glthread/lock.lo: glthread/$(am__dirstamp) ../woe32dll/c++term-styled-ostream.lo: ../woe32dll/$(am__dirstamp) +glthread/threadlib.lo: glthread/$(am__dirstamp) +glthread/tls.lo: glthread/$(am__dirstamp) +uniconv/$(am__dirstamp): + @$(MKDIR_P) uniconv + @: > uniconv/$(am__dirstamp) +uniconv/u8-conv-from-enc.lo: uniconv/$(am__dirstamp) +unilbrk/$(am__dirstamp): + @$(MKDIR_P) unilbrk + @: > unilbrk/$(am__dirstamp) +unilbrk/lbrktables.lo: unilbrk/$(am__dirstamp) +unilbrk/u8-possible-linebreaks.lo: unilbrk/$(am__dirstamp) +unilbrk/u8-width-linebreaks.lo: unilbrk/$(am__dirstamp) +unilbrk/ulc-common.lo: unilbrk/$(am__dirstamp) +unilbrk/ulc-width-linebreaks.lo: unilbrk/$(am__dirstamp) uniname/$(am__dirstamp): @$(MKDIR_P) uniname @: > uniname/$(am__dirstamp) @@ -1407,12 +2058,14 @@ @: > unistr/$(am__dirstamp) unistr/u16-mbtouc.lo: unistr/$(am__dirstamp) unistr/u16-mbtouc-aux.lo: unistr/$(am__dirstamp) -unistr/u16-mbtouc-unsafe.lo: unistr/$(am__dirstamp) -unistr/u16-mbtouc-unsafe-aux.lo: unistr/$(am__dirstamp) +unistr/u8-check.lo: unistr/$(am__dirstamp) +unistr/u8-mblen.lo: unistr/$(am__dirstamp) unistr/u8-mbtouc.lo: unistr/$(am__dirstamp) unistr/u8-mbtouc-aux.lo: unistr/$(am__dirstamp) unistr/u8-mbtouc-unsafe.lo: unistr/$(am__dirstamp) unistr/u8-mbtouc-unsafe-aux.lo: unistr/$(am__dirstamp) +unistr/u8-mbtoucr.lo: unistr/$(am__dirstamp) +unistr/u8-prev.lo: unistr/$(am__dirstamp) unistr/u8-uctomb.lo: unistr/$(am__dirstamp) unistr/u8-uctomb-aux.lo: unistr/$(am__dirstamp) uniwidth/$(am__dirstamp): @@ -1501,7 +2154,7 @@ libxml/xpath.lo: libxml/$(am__dirstamp) libxml/xpointer.lo: libxml/$(am__dirstamp) libgettextlib.la: $(libgettextlib_la_OBJECTS) $(libgettextlib_la_DEPENDENCIES) - $(libgettextlib_la_LINK) -rpath $(libdir) $(libgettextlib_la_OBJECTS) $(libgettextlib_la_LIBADD) $(LIBS) + $(AM_V_GEN)$(libgettextlib_la_LINK) -rpath $(libdir) $(libgettextlib_la_OBJECTS) $(libgettextlib_la_LIBADD) $(LIBS) glib/libglib_rpl_la-ghash.lo: glib/$(am__dirstamp) glib/libglib_rpl_la-glist.lo: glib/$(am__dirstamp) glib/libglib_rpl_la-gmessages.lo: glib/$(am__dirstamp) @@ -1509,7 +2162,7 @@ glib/libglib_rpl_la-gstrfuncs.lo: glib/$(am__dirstamp) glib/libglib_rpl_la-gstring.lo: glib/$(am__dirstamp) libglib_rpl.la: $(libglib_rpl_la_OBJECTS) $(libglib_rpl_la_DEPENDENCIES) - $(LINK) $(am_libglib_rpl_la_rpath) $(libglib_rpl_la_OBJECTS) $(libglib_rpl_la_LIBADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(am_libglib_rpl_la_rpath) $(libglib_rpl_la_OBJECTS) $(libglib_rpl_la_LIBADD) $(LIBS) libxml/libxml_rpl_la-DOCBparser.lo: libxml/$(am__dirstamp) libxml/libxml_rpl_la-HTMLparser.lo: libxml/$(am__dirstamp) libxml/libxml_rpl_la-HTMLtree.lo: libxml/$(am__dirstamp) @@ -1554,7 +2207,7 @@ libxml/libxml_rpl_la-xpath.lo: libxml/$(am__dirstamp) libxml/libxml_rpl_la-xpointer.lo: libxml/$(am__dirstamp) libxml_rpl.la: $(libxml_rpl_la_OBJECTS) $(libxml_rpl_la_DEPENDENCIES) - $(LINK) $(am_libxml_rpl_la_rpath) $(libxml_rpl_la_OBJECTS) $(libxml_rpl_la_LIBADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(am_libxml_rpl_la_rpath) $(libxml_rpl_la_OBJECTS) $(libxml_rpl_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -1588,6 +2241,12 @@ -rm -f glib/libglib_rpl_la-gstrfuncs.lo -rm -f glib/libglib_rpl_la-gstring.$(OBJEXT) -rm -f glib/libglib_rpl_la-gstring.lo + -rm -f glthread/lock.$(OBJEXT) + -rm -f glthread/lock.lo + -rm -f glthread/threadlib.$(OBJEXT) + -rm -f glthread/threadlib.lo + -rm -f glthread/tls.$(OBJEXT) + -rm -f glthread/tls.lo -rm -f libcroco/cr-additional-sel.$(OBJEXT) -rm -f libcroco/cr-additional-sel.lo -rm -f libcroco/cr-attr-sel.$(OBJEXT) @@ -1864,16 +2523,28 @@ -rm -f libxml/xpath.lo -rm -f libxml/xpointer.$(OBJEXT) -rm -f libxml/xpointer.lo + -rm -f uniconv/u8-conv-from-enc.$(OBJEXT) + -rm -f uniconv/u8-conv-from-enc.lo + -rm -f unilbrk/lbrktables.$(OBJEXT) + -rm -f unilbrk/lbrktables.lo + -rm -f unilbrk/u8-possible-linebreaks.$(OBJEXT) + -rm -f unilbrk/u8-possible-linebreaks.lo + -rm -f unilbrk/u8-width-linebreaks.$(OBJEXT) + -rm -f unilbrk/u8-width-linebreaks.lo + -rm -f unilbrk/ulc-common.$(OBJEXT) + -rm -f unilbrk/ulc-common.lo + -rm -f unilbrk/ulc-width-linebreaks.$(OBJEXT) + -rm -f unilbrk/ulc-width-linebreaks.lo -rm -f uniname/uniname.$(OBJEXT) -rm -f uniname/uniname.lo -rm -f unistr/u16-mbtouc-aux.$(OBJEXT) -rm -f unistr/u16-mbtouc-aux.lo - -rm -f unistr/u16-mbtouc-unsafe-aux.$(OBJEXT) - -rm -f unistr/u16-mbtouc-unsafe-aux.lo - -rm -f unistr/u16-mbtouc-unsafe.$(OBJEXT) - -rm -f unistr/u16-mbtouc-unsafe.lo -rm -f unistr/u16-mbtouc.$(OBJEXT) -rm -f unistr/u16-mbtouc.lo + -rm -f unistr/u8-check.$(OBJEXT) + -rm -f unistr/u8-check.lo + -rm -f unistr/u8-mblen.$(OBJEXT) + -rm -f unistr/u8-mblen.lo -rm -f unistr/u8-mbtouc-aux.$(OBJEXT) -rm -f unistr/u8-mbtouc-aux.lo -rm -f unistr/u8-mbtouc-unsafe-aux.$(OBJEXT) @@ -1882,6 +2553,10 @@ -rm -f unistr/u8-mbtouc-unsafe.lo -rm -f unistr/u8-mbtouc.$(OBJEXT) -rm -f unistr/u8-mbtouc.lo + -rm -f unistr/u8-mbtoucr.$(OBJEXT) + -rm -f unistr/u8-mbtoucr.lo + -rm -f unistr/u8-prev.$(OBJEXT) + -rm -f unistr/u8-prev.lo -rm -f unistr/u8-uctomb-aux.$(OBJEXT) -rm -f unistr/u8-uctomb-aux.lo -rm -f unistr/u8-uctomb.$(OBJEXT) @@ -1893,246 +2568,327 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c -o $@ $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< libcroco/libcroco_rpl_la-cr-additional-sel.lo: libcroco/cr-additional-sel.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-additional-sel.lo `test -f 'libcroco/cr-additional-sel.c' || echo '$(srcdir)/'`libcroco/cr-additional-sel.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-additional-sel.lo `test -f 'libcroco/cr-additional-sel.c' || echo '$(srcdir)/'`libcroco/cr-additional-sel.c libcroco/libcroco_rpl_la-cr-attr-sel.lo: libcroco/cr-attr-sel.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-attr-sel.lo `test -f 'libcroco/cr-attr-sel.c' || echo '$(srcdir)/'`libcroco/cr-attr-sel.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-attr-sel.lo `test -f 'libcroco/cr-attr-sel.c' || echo '$(srcdir)/'`libcroco/cr-attr-sel.c libcroco/libcroco_rpl_la-cr-cascade.lo: libcroco/cr-cascade.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-cascade.lo `test -f 'libcroco/cr-cascade.c' || echo '$(srcdir)/'`libcroco/cr-cascade.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-cascade.lo `test -f 'libcroco/cr-cascade.c' || echo '$(srcdir)/'`libcroco/cr-cascade.c libcroco/libcroco_rpl_la-cr-declaration.lo: libcroco/cr-declaration.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-declaration.lo `test -f 'libcroco/cr-declaration.c' || echo '$(srcdir)/'`libcroco/cr-declaration.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-declaration.lo `test -f 'libcroco/cr-declaration.c' || echo '$(srcdir)/'`libcroco/cr-declaration.c libcroco/libcroco_rpl_la-cr-doc-handler.lo: libcroco/cr-doc-handler.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-doc-handler.lo `test -f 'libcroco/cr-doc-handler.c' || echo '$(srcdir)/'`libcroco/cr-doc-handler.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-doc-handler.lo `test -f 'libcroco/cr-doc-handler.c' || echo '$(srcdir)/'`libcroco/cr-doc-handler.c libcroco/libcroco_rpl_la-cr-enc-handler.lo: libcroco/cr-enc-handler.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-enc-handler.lo `test -f 'libcroco/cr-enc-handler.c' || echo '$(srcdir)/'`libcroco/cr-enc-handler.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-enc-handler.lo `test -f 'libcroco/cr-enc-handler.c' || echo '$(srcdir)/'`libcroco/cr-enc-handler.c libcroco/libcroco_rpl_la-cr-fonts.lo: libcroco/cr-fonts.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-fonts.lo `test -f 'libcroco/cr-fonts.c' || echo '$(srcdir)/'`libcroco/cr-fonts.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-fonts.lo `test -f 'libcroco/cr-fonts.c' || echo '$(srcdir)/'`libcroco/cr-fonts.c libcroco/libcroco_rpl_la-cr-input.lo: libcroco/cr-input.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-input.lo `test -f 'libcroco/cr-input.c' || echo '$(srcdir)/'`libcroco/cr-input.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-input.lo `test -f 'libcroco/cr-input.c' || echo '$(srcdir)/'`libcroco/cr-input.c libcroco/libcroco_rpl_la-cr-num.lo: libcroco/cr-num.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-num.lo `test -f 'libcroco/cr-num.c' || echo '$(srcdir)/'`libcroco/cr-num.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-num.lo `test -f 'libcroco/cr-num.c' || echo '$(srcdir)/'`libcroco/cr-num.c libcroco/libcroco_rpl_la-cr-om-parser.lo: libcroco/cr-om-parser.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-om-parser.lo `test -f 'libcroco/cr-om-parser.c' || echo '$(srcdir)/'`libcroco/cr-om-parser.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-om-parser.lo `test -f 'libcroco/cr-om-parser.c' || echo '$(srcdir)/'`libcroco/cr-om-parser.c libcroco/libcroco_rpl_la-cr-parser.lo: libcroco/cr-parser.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-parser.lo `test -f 'libcroco/cr-parser.c' || echo '$(srcdir)/'`libcroco/cr-parser.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-parser.lo `test -f 'libcroco/cr-parser.c' || echo '$(srcdir)/'`libcroco/cr-parser.c libcroco/libcroco_rpl_la-cr-parsing-location.lo: libcroco/cr-parsing-location.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-parsing-location.lo `test -f 'libcroco/cr-parsing-location.c' || echo '$(srcdir)/'`libcroco/cr-parsing-location.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-parsing-location.lo `test -f 'libcroco/cr-parsing-location.c' || echo '$(srcdir)/'`libcroco/cr-parsing-location.c libcroco/libcroco_rpl_la-cr-prop-list.lo: libcroco/cr-prop-list.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-prop-list.lo `test -f 'libcroco/cr-prop-list.c' || echo '$(srcdir)/'`libcroco/cr-prop-list.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-prop-list.lo `test -f 'libcroco/cr-prop-list.c' || echo '$(srcdir)/'`libcroco/cr-prop-list.c libcroco/libcroco_rpl_la-cr-pseudo.lo: libcroco/cr-pseudo.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-pseudo.lo `test -f 'libcroco/cr-pseudo.c' || echo '$(srcdir)/'`libcroco/cr-pseudo.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-pseudo.lo `test -f 'libcroco/cr-pseudo.c' || echo '$(srcdir)/'`libcroco/cr-pseudo.c libcroco/libcroco_rpl_la-cr-rgb.lo: libcroco/cr-rgb.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-rgb.lo `test -f 'libcroco/cr-rgb.c' || echo '$(srcdir)/'`libcroco/cr-rgb.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-rgb.lo `test -f 'libcroco/cr-rgb.c' || echo '$(srcdir)/'`libcroco/cr-rgb.c libcroco/libcroco_rpl_la-cr-sel-eng.lo: libcroco/cr-sel-eng.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-sel-eng.lo `test -f 'libcroco/cr-sel-eng.c' || echo '$(srcdir)/'`libcroco/cr-sel-eng.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-sel-eng.lo `test -f 'libcroco/cr-sel-eng.c' || echo '$(srcdir)/'`libcroco/cr-sel-eng.c libcroco/libcroco_rpl_la-cr-selector.lo: libcroco/cr-selector.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-selector.lo `test -f 'libcroco/cr-selector.c' || echo '$(srcdir)/'`libcroco/cr-selector.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-selector.lo `test -f 'libcroco/cr-selector.c' || echo '$(srcdir)/'`libcroco/cr-selector.c libcroco/libcroco_rpl_la-cr-simple-sel.lo: libcroco/cr-simple-sel.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-simple-sel.lo `test -f 'libcroco/cr-simple-sel.c' || echo '$(srcdir)/'`libcroco/cr-simple-sel.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-simple-sel.lo `test -f 'libcroco/cr-simple-sel.c' || echo '$(srcdir)/'`libcroco/cr-simple-sel.c libcroco/libcroco_rpl_la-cr-statement.lo: libcroco/cr-statement.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-statement.lo `test -f 'libcroco/cr-statement.c' || echo '$(srcdir)/'`libcroco/cr-statement.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-statement.lo `test -f 'libcroco/cr-statement.c' || echo '$(srcdir)/'`libcroco/cr-statement.c libcroco/libcroco_rpl_la-cr-string.lo: libcroco/cr-string.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-string.lo `test -f 'libcroco/cr-string.c' || echo '$(srcdir)/'`libcroco/cr-string.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-string.lo `test -f 'libcroco/cr-string.c' || echo '$(srcdir)/'`libcroco/cr-string.c libcroco/libcroco_rpl_la-cr-style.lo: libcroco/cr-style.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-style.lo `test -f 'libcroco/cr-style.c' || echo '$(srcdir)/'`libcroco/cr-style.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-style.lo `test -f 'libcroco/cr-style.c' || echo '$(srcdir)/'`libcroco/cr-style.c libcroco/libcroco_rpl_la-cr-stylesheet.lo: libcroco/cr-stylesheet.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-stylesheet.lo `test -f 'libcroco/cr-stylesheet.c' || echo '$(srcdir)/'`libcroco/cr-stylesheet.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-stylesheet.lo `test -f 'libcroco/cr-stylesheet.c' || echo '$(srcdir)/'`libcroco/cr-stylesheet.c libcroco/libcroco_rpl_la-cr-term.lo: libcroco/cr-term.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-term.lo `test -f 'libcroco/cr-term.c' || echo '$(srcdir)/'`libcroco/cr-term.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-term.lo `test -f 'libcroco/cr-term.c' || echo '$(srcdir)/'`libcroco/cr-term.c libcroco/libcroco_rpl_la-cr-tknzr.lo: libcroco/cr-tknzr.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-tknzr.lo `test -f 'libcroco/cr-tknzr.c' || echo '$(srcdir)/'`libcroco/cr-tknzr.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-tknzr.lo `test -f 'libcroco/cr-tknzr.c' || echo '$(srcdir)/'`libcroco/cr-tknzr.c libcroco/libcroco_rpl_la-cr-token.lo: libcroco/cr-token.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-token.lo `test -f 'libcroco/cr-token.c' || echo '$(srcdir)/'`libcroco/cr-token.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-token.lo `test -f 'libcroco/cr-token.c' || echo '$(srcdir)/'`libcroco/cr-token.c libcroco/libcroco_rpl_la-cr-utils.lo: libcroco/cr-utils.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-utils.lo `test -f 'libcroco/cr-utils.c' || echo '$(srcdir)/'`libcroco/cr-utils.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcroco_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcroco/libcroco_rpl_la-cr-utils.lo `test -f 'libcroco/cr-utils.c' || echo '$(srcdir)/'`libcroco/cr-utils.c glib/libglib_rpl_la-ghash.lo: glib/ghash.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-ghash.lo `test -f 'glib/ghash.c' || echo '$(srcdir)/'`glib/ghash.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-ghash.lo `test -f 'glib/ghash.c' || echo '$(srcdir)/'`glib/ghash.c glib/libglib_rpl_la-glist.lo: glib/glist.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-glist.lo `test -f 'glib/glist.c' || echo '$(srcdir)/'`glib/glist.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-glist.lo `test -f 'glib/glist.c' || echo '$(srcdir)/'`glib/glist.c glib/libglib_rpl_la-gmessages.lo: glib/gmessages.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gmessages.lo `test -f 'glib/gmessages.c' || echo '$(srcdir)/'`glib/gmessages.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gmessages.lo `test -f 'glib/gmessages.c' || echo '$(srcdir)/'`glib/gmessages.c glib/libglib_rpl_la-gprimes.lo: glib/gprimes.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gprimes.lo `test -f 'glib/gprimes.c' || echo '$(srcdir)/'`glib/gprimes.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gprimes.lo `test -f 'glib/gprimes.c' || echo '$(srcdir)/'`glib/gprimes.c glib/libglib_rpl_la-gstrfuncs.lo: glib/gstrfuncs.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gstrfuncs.lo `test -f 'glib/gstrfuncs.c' || echo '$(srcdir)/'`glib/gstrfuncs.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gstrfuncs.lo `test -f 'glib/gstrfuncs.c' || echo '$(srcdir)/'`glib/gstrfuncs.c glib/libglib_rpl_la-gstring.lo: glib/gstring.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gstring.lo `test -f 'glib/gstring.c' || echo '$(srcdir)/'`glib/gstring.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libglib_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o glib/libglib_rpl_la-gstring.lo `test -f 'glib/gstring.c' || echo '$(srcdir)/'`glib/gstring.c libxml/libxml_rpl_la-DOCBparser.lo: libxml/DOCBparser.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-DOCBparser.lo `test -f 'libxml/DOCBparser.c' || echo '$(srcdir)/'`libxml/DOCBparser.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-DOCBparser.lo `test -f 'libxml/DOCBparser.c' || echo '$(srcdir)/'`libxml/DOCBparser.c libxml/libxml_rpl_la-HTMLparser.lo: libxml/HTMLparser.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-HTMLparser.lo `test -f 'libxml/HTMLparser.c' || echo '$(srcdir)/'`libxml/HTMLparser.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-HTMLparser.lo `test -f 'libxml/HTMLparser.c' || echo '$(srcdir)/'`libxml/HTMLparser.c libxml/libxml_rpl_la-HTMLtree.lo: libxml/HTMLtree.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-HTMLtree.lo `test -f 'libxml/HTMLtree.c' || echo '$(srcdir)/'`libxml/HTMLtree.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-HTMLtree.lo `test -f 'libxml/HTMLtree.c' || echo '$(srcdir)/'`libxml/HTMLtree.c libxml/libxml_rpl_la-SAX.lo: libxml/SAX.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-SAX.lo `test -f 'libxml/SAX.c' || echo '$(srcdir)/'`libxml/SAX.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-SAX.lo `test -f 'libxml/SAX.c' || echo '$(srcdir)/'`libxml/SAX.c libxml/libxml_rpl_la-SAX2.lo: libxml/SAX2.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-SAX2.lo `test -f 'libxml/SAX2.c' || echo '$(srcdir)/'`libxml/SAX2.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-SAX2.lo `test -f 'libxml/SAX2.c' || echo '$(srcdir)/'`libxml/SAX2.c libxml/libxml_rpl_la-c14n.lo: libxml/c14n.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-c14n.lo `test -f 'libxml/c14n.c' || echo '$(srcdir)/'`libxml/c14n.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-c14n.lo `test -f 'libxml/c14n.c' || echo '$(srcdir)/'`libxml/c14n.c libxml/libxml_rpl_la-catalog.lo: libxml/catalog.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-catalog.lo `test -f 'libxml/catalog.c' || echo '$(srcdir)/'`libxml/catalog.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-catalog.lo `test -f 'libxml/catalog.c' || echo '$(srcdir)/'`libxml/catalog.c libxml/libxml_rpl_la-chvalid.lo: libxml/chvalid.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-chvalid.lo `test -f 'libxml/chvalid.c' || echo '$(srcdir)/'`libxml/chvalid.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-chvalid.lo `test -f 'libxml/chvalid.c' || echo '$(srcdir)/'`libxml/chvalid.c libxml/libxml_rpl_la-debugXML.lo: libxml/debugXML.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-debugXML.lo `test -f 'libxml/debugXML.c' || echo '$(srcdir)/'`libxml/debugXML.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-debugXML.lo `test -f 'libxml/debugXML.c' || echo '$(srcdir)/'`libxml/debugXML.c libxml/libxml_rpl_la-dict.lo: libxml/dict.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-dict.lo `test -f 'libxml/dict.c' || echo '$(srcdir)/'`libxml/dict.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-dict.lo `test -f 'libxml/dict.c' || echo '$(srcdir)/'`libxml/dict.c libxml/libxml_rpl_la-encoding.lo: libxml/encoding.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-encoding.lo `test -f 'libxml/encoding.c' || echo '$(srcdir)/'`libxml/encoding.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-encoding.lo `test -f 'libxml/encoding.c' || echo '$(srcdir)/'`libxml/encoding.c libxml/libxml_rpl_la-entities.lo: libxml/entities.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-entities.lo `test -f 'libxml/entities.c' || echo '$(srcdir)/'`libxml/entities.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-entities.lo `test -f 'libxml/entities.c' || echo '$(srcdir)/'`libxml/entities.c libxml/libxml_rpl_la-error.lo: libxml/error.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-error.lo `test -f 'libxml/error.c' || echo '$(srcdir)/'`libxml/error.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-error.lo `test -f 'libxml/error.c' || echo '$(srcdir)/'`libxml/error.c libxml/libxml_rpl_la-globals.lo: libxml/globals.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-globals.lo `test -f 'libxml/globals.c' || echo '$(srcdir)/'`libxml/globals.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-globals.lo `test -f 'libxml/globals.c' || echo '$(srcdir)/'`libxml/globals.c libxml/libxml_rpl_la-hash.lo: libxml/hash.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-hash.lo `test -f 'libxml/hash.c' || echo '$(srcdir)/'`libxml/hash.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-hash.lo `test -f 'libxml/hash.c' || echo '$(srcdir)/'`libxml/hash.c libxml/libxml_rpl_la-legacy.lo: libxml/legacy.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-legacy.lo `test -f 'libxml/legacy.c' || echo '$(srcdir)/'`libxml/legacy.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-legacy.lo `test -f 'libxml/legacy.c' || echo '$(srcdir)/'`libxml/legacy.c libxml/libxml_rpl_la-list.lo: libxml/list.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-list.lo `test -f 'libxml/list.c' || echo '$(srcdir)/'`libxml/list.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-list.lo `test -f 'libxml/list.c' || echo '$(srcdir)/'`libxml/list.c libxml/libxml_rpl_la-nanoftp.lo: libxml/nanoftp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-nanoftp.lo `test -f 'libxml/nanoftp.c' || echo '$(srcdir)/'`libxml/nanoftp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-nanoftp.lo `test -f 'libxml/nanoftp.c' || echo '$(srcdir)/'`libxml/nanoftp.c libxml/libxml_rpl_la-nanohttp.lo: libxml/nanohttp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-nanohttp.lo `test -f 'libxml/nanohttp.c' || echo '$(srcdir)/'`libxml/nanohttp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-nanohttp.lo `test -f 'libxml/nanohttp.c' || echo '$(srcdir)/'`libxml/nanohttp.c libxml/libxml_rpl_la-parser.lo: libxml/parser.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-parser.lo `test -f 'libxml/parser.c' || echo '$(srcdir)/'`libxml/parser.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-parser.lo `test -f 'libxml/parser.c' || echo '$(srcdir)/'`libxml/parser.c libxml/libxml_rpl_la-parserInternals.lo: libxml/parserInternals.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-parserInternals.lo `test -f 'libxml/parserInternals.c' || echo '$(srcdir)/'`libxml/parserInternals.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-parserInternals.lo `test -f 'libxml/parserInternals.c' || echo '$(srcdir)/'`libxml/parserInternals.c libxml/libxml_rpl_la-pattern.lo: libxml/pattern.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-pattern.lo `test -f 'libxml/pattern.c' || echo '$(srcdir)/'`libxml/pattern.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-pattern.lo `test -f 'libxml/pattern.c' || echo '$(srcdir)/'`libxml/pattern.c libxml/libxml_rpl_la-relaxng.lo: libxml/relaxng.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-relaxng.lo `test -f 'libxml/relaxng.c' || echo '$(srcdir)/'`libxml/relaxng.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-relaxng.lo `test -f 'libxml/relaxng.c' || echo '$(srcdir)/'`libxml/relaxng.c libxml/libxml_rpl_la-schematron.lo: libxml/schematron.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-schematron.lo `test -f 'libxml/schematron.c' || echo '$(srcdir)/'`libxml/schematron.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-schematron.lo `test -f 'libxml/schematron.c' || echo '$(srcdir)/'`libxml/schematron.c libxml/libxml_rpl_la-threads.lo: libxml/threads.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-threads.lo `test -f 'libxml/threads.c' || echo '$(srcdir)/'`libxml/threads.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-threads.lo `test -f 'libxml/threads.c' || echo '$(srcdir)/'`libxml/threads.c libxml/libxml_rpl_la-tree.lo: libxml/tree.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-tree.lo `test -f 'libxml/tree.c' || echo '$(srcdir)/'`libxml/tree.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-tree.lo `test -f 'libxml/tree.c' || echo '$(srcdir)/'`libxml/tree.c libxml/libxml_rpl_la-uri.lo: libxml/uri.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-uri.lo `test -f 'libxml/uri.c' || echo '$(srcdir)/'`libxml/uri.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-uri.lo `test -f 'libxml/uri.c' || echo '$(srcdir)/'`libxml/uri.c libxml/libxml_rpl_la-valid.lo: libxml/valid.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-valid.lo `test -f 'libxml/valid.c' || echo '$(srcdir)/'`libxml/valid.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-valid.lo `test -f 'libxml/valid.c' || echo '$(srcdir)/'`libxml/valid.c libxml/libxml_rpl_la-xinclude.lo: libxml/xinclude.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xinclude.lo `test -f 'libxml/xinclude.c' || echo '$(srcdir)/'`libxml/xinclude.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xinclude.lo `test -f 'libxml/xinclude.c' || echo '$(srcdir)/'`libxml/xinclude.c libxml/libxml_rpl_la-xlink.lo: libxml/xlink.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xlink.lo `test -f 'libxml/xlink.c' || echo '$(srcdir)/'`libxml/xlink.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xlink.lo `test -f 'libxml/xlink.c' || echo '$(srcdir)/'`libxml/xlink.c libxml/libxml_rpl_la-xmlIO.lo: libxml/xmlIO.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlIO.lo `test -f 'libxml/xmlIO.c' || echo '$(srcdir)/'`libxml/xmlIO.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlIO.lo `test -f 'libxml/xmlIO.c' || echo '$(srcdir)/'`libxml/xmlIO.c libxml/libxml_rpl_la-xmlmemory.lo: libxml/xmlmemory.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlmemory.lo `test -f 'libxml/xmlmemory.c' || echo '$(srcdir)/'`libxml/xmlmemory.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlmemory.lo `test -f 'libxml/xmlmemory.c' || echo '$(srcdir)/'`libxml/xmlmemory.c libxml/libxml_rpl_la-xmlmodule.lo: libxml/xmlmodule.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlmodule.lo `test -f 'libxml/xmlmodule.c' || echo '$(srcdir)/'`libxml/xmlmodule.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlmodule.lo `test -f 'libxml/xmlmodule.c' || echo '$(srcdir)/'`libxml/xmlmodule.c libxml/libxml_rpl_la-xmlreader.lo: libxml/xmlreader.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlreader.lo `test -f 'libxml/xmlreader.c' || echo '$(srcdir)/'`libxml/xmlreader.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlreader.lo `test -f 'libxml/xmlreader.c' || echo '$(srcdir)/'`libxml/xmlreader.c libxml/libxml_rpl_la-xmlregexp.lo: libxml/xmlregexp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlregexp.lo `test -f 'libxml/xmlregexp.c' || echo '$(srcdir)/'`libxml/xmlregexp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlregexp.lo `test -f 'libxml/xmlregexp.c' || echo '$(srcdir)/'`libxml/xmlregexp.c libxml/libxml_rpl_la-xmlsave.lo: libxml/xmlsave.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlsave.lo `test -f 'libxml/xmlsave.c' || echo '$(srcdir)/'`libxml/xmlsave.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlsave.lo `test -f 'libxml/xmlsave.c' || echo '$(srcdir)/'`libxml/xmlsave.c libxml/libxml_rpl_la-xmlschemas.lo: libxml/xmlschemas.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlschemas.lo `test -f 'libxml/xmlschemas.c' || echo '$(srcdir)/'`libxml/xmlschemas.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlschemas.lo `test -f 'libxml/xmlschemas.c' || echo '$(srcdir)/'`libxml/xmlschemas.c libxml/libxml_rpl_la-xmlschemastypes.lo: libxml/xmlschemastypes.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlschemastypes.lo `test -f 'libxml/xmlschemastypes.c' || echo '$(srcdir)/'`libxml/xmlschemastypes.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlschemastypes.lo `test -f 'libxml/xmlschemastypes.c' || echo '$(srcdir)/'`libxml/xmlschemastypes.c libxml/libxml_rpl_la-xmlstring.lo: libxml/xmlstring.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlstring.lo `test -f 'libxml/xmlstring.c' || echo '$(srcdir)/'`libxml/xmlstring.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlstring.lo `test -f 'libxml/xmlstring.c' || echo '$(srcdir)/'`libxml/xmlstring.c libxml/libxml_rpl_la-xmlunicode.lo: libxml/xmlunicode.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlunicode.lo `test -f 'libxml/xmlunicode.c' || echo '$(srcdir)/'`libxml/xmlunicode.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlunicode.lo `test -f 'libxml/xmlunicode.c' || echo '$(srcdir)/'`libxml/xmlunicode.c libxml/libxml_rpl_la-xmlwriter.lo: libxml/xmlwriter.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlwriter.lo `test -f 'libxml/xmlwriter.c' || echo '$(srcdir)/'`libxml/xmlwriter.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xmlwriter.lo `test -f 'libxml/xmlwriter.c' || echo '$(srcdir)/'`libxml/xmlwriter.c libxml/libxml_rpl_la-xpath.lo: libxml/xpath.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xpath.lo `test -f 'libxml/xpath.c' || echo '$(srcdir)/'`libxml/xpath.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xpath.lo `test -f 'libxml/xpath.c' || echo '$(srcdir)/'`libxml/xpath.c libxml/libxml_rpl_la-xpointer.lo: libxml/xpointer.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xpointer.lo `test -f 'libxml/xpointer.c' || echo '$(srcdir)/'`libxml/xpointer.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libxml_rpl_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libxml/libxml_rpl_la-xpointer.lo `test -f 'libxml/xpointer.c' || echo '$(srcdir)/'`libxml/xpointer.c .cc.o: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: + $(AM_V_CXX) @AM_BACKSLASH@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: @@ -2142,90 +2898,103 @@ -rm -rf .libs _libs -rm -rf ../woe32dll/.libs ../woe32dll/_libs -rm -rf glib/.libs glib/_libs + -rm -rf glthread/.libs glthread/_libs -rm -rf libcroco/.libs libcroco/_libs -rm -rf libxml/.libs libxml/_libs + -rm -rf uniconv/.libs uniconv/_libs + -rm -rf unilbrk/.libs unilbrk/_libs -rm -rf uniname/.libs uniname/_libs -rm -rf unistr/.libs unistr/_libs -rm -rf uniwidth/.libs uniwidth/_libs install-gettextsrcDATA: $(gettextsrc_DATA) @$(NORMAL_INSTALL) test -z "$(gettextsrcdir)" || $(MKDIR_P) "$(DESTDIR)$(gettextsrcdir)" - @list='$(gettextsrc_DATA)'; for p in $$list; do \ + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(gettextsrcDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - $(gettextsrcDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gettextsrcdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gettextsrcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gettextsrcdir)" || exit $$?; \ done uninstall-gettextsrcDATA: @$(NORMAL_UNINSTALL) - @list='$(gettextsrc_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - rm -f "$(DESTDIR)$(gettextsrcdir)/$$f"; \ - done + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(gettextsrcdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(gettextsrcdir)" && rm -f $$files install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" - @list='$(pkgdata_DATA)'; for p in $$list; do \ + @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ - $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) - @list='$(pkgdata_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ - rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ - done + @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -2246,13 +3015,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -2287,10 +3060,14 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f ../woe32dll/$(am__dirstamp) -rm -f glib/$(am__dirstamp) + -rm -f glthread/$(am__dirstamp) -rm -f libcroco/$(am__dirstamp) -rm -f libxml/$(am__dirstamp) + -rm -f uniconv/$(am__dirstamp) + -rm -f unilbrk/$(am__dirstamp) -rm -f uniname/$(am__dirstamp) -rm -f unistr/$(am__dirstamp) -rm -f uniwidth/$(am__dirstamp) @@ -2317,6 +3094,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -2325,18 +3104,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-exec-local install-libLTLIBRARIES install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -2359,7 +3148,7 @@ uninstall-am: uninstall-gettextsrcDATA uninstall-libLTLIBRARIES \ uninstall-local uninstall-pkgdataDATA -.MAKE: install-am install-strip +.MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ @@ -2383,18 +3172,36 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ # We need the following in order to create when the system # doesn't have one. byteswap.h: byteswap.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/byteswap.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ # Retrieve values of the variables through 'configure' followed by # 'make', not directly through 'configure', so that a user who @@ -2414,7 +3221,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -2443,20 +3250,52 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -fcntl.h: fcntl.in.h - rm -f $@-t $@ +fcntl.h: fcntl.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ + -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \ -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \ + -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \ + -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ + -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ + -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ + -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/fcntl.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -2494,28 +3333,37 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. float.h: float.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ < $(srcdir)/float.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that supports the required API. -fnmatch.h: fnmatch.in.h +fnmatch.h: fnmatch.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/fnmatch.in.h; \ - } > $@-t + sed -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/fnmatch.in.h; \ + } > $@-t && \ mv -f $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -getopt.h: getopt.in.h +getopt.h: getopt.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/getopt.in.h; \ - } > $@-t + sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/getopt.in.h; \ + } > $@-t && \ mv -f $@-t $@ # No need to install libgettextlib.a, except on AIX. @@ -2560,30 +3408,38 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h glib.h: glib.in.h { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ @@ -2598,371 +3454,371 @@ mv -f $@-t $@ glib/ghash.h: glib/ghash.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/ghash.in.h; \ } > $@-t mv -f $@-t $@ glib/glist.h: glib/glist.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/glist.in.h; \ } > $@-t mv -f $@-t $@ glib/gprimes.h: glib/gprimes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gprimes.in.h; \ } > $@-t mv -f $@-t $@ glib/gstrfuncs.h: glib/gstrfuncs.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstrfuncs.in.h; \ } > $@-t mv -f $@-t $@ glib/gstring.h: glib/gstring.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstring.in.h; \ } > $@-t mv -f $@-t $@ glib/gtypes.h: glib/gtypes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gtypes.in.h; \ } > $@-t mv -f $@-t $@ libxml/DOCBparser.h: libxml/DOCBparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/DOCBparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLparser.h: libxml/HTMLparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLtree.h: libxml/HTMLtree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLtree.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX.h: libxml/SAX.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX2.h: libxml/SAX2.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX2.in.h; \ } > $@-t mv -f $@-t $@ libxml/c14n.h: libxml/c14n.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/c14n.in.h; \ } > $@-t mv -f $@-t $@ libxml/catalog.h: libxml/catalog.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/catalog.in.h; \ } > $@-t mv -f $@-t $@ libxml/chvalid.h: libxml/chvalid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/chvalid.in.h; \ } > $@-t mv -f $@-t $@ libxml/debugXML.h: libxml/debugXML.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/debugXML.in.h; \ } > $@-t mv -f $@-t $@ libxml/dict.h: libxml/dict.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/dict.in.h; \ } > $@-t mv -f $@-t $@ libxml/encoding.h: libxml/encoding.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/encoding.in.h; \ } > $@-t mv -f $@-t $@ libxml/entities.h: libxml/entities.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/entities.in.h; \ } > $@-t mv -f $@-t $@ libxml/globals.h: libxml/globals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/globals.in.h; \ } > $@-t mv -f $@-t $@ libxml/hash.h: libxml/hash.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/hash.in.h; \ } > $@-t mv -f $@-t $@ libxml/list.h: libxml/list.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/list.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanoftp.h: libxml/nanoftp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanoftp.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanohttp.h: libxml/nanohttp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanohttp.in.h; \ } > $@-t mv -f $@-t $@ libxml/parser.h: libxml/parser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parser.in.h; \ } > $@-t mv -f $@-t $@ libxml/parserInternals.h: libxml/parserInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parserInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/pattern.h: libxml/pattern.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/pattern.in.h; \ } > $@-t mv -f $@-t $@ libxml/relaxng.h: libxml/relaxng.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/relaxng.in.h; \ } > $@-t mv -f $@-t $@ libxml/schemasInternals.h: libxml/schemasInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schemasInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/schematron.h: libxml/schematron.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schematron.in.h; \ } > $@-t mv -f $@-t $@ libxml/threads.h: libxml/threads.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/threads.in.h; \ } > $@-t mv -f $@-t $@ libxml/tree.h: libxml/tree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/tree.in.h; \ } > $@-t mv -f $@-t $@ libxml/uri.h: libxml/uri.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/uri.in.h; \ } > $@-t mv -f $@-t $@ libxml/valid.h: libxml/valid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/valid.in.h; \ } > $@-t mv -f $@-t $@ libxml/xinclude.h: libxml/xinclude.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xinclude.in.h; \ } > $@-t mv -f $@-t $@ libxml/xlink.h: libxml/xlink.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xlink.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlIO.h: libxml/xmlIO.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlIO.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlautomata.h: libxml/xmlautomata.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlautomata.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlerror.h: libxml/xmlerror.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlerror.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlexports.h: libxml/xmlexports.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlexports.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmemory.h: libxml/xmlmemory.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmemory.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmodule.h: libxml/xmlmodule.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmodule.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlreader.h: libxml/xmlreader.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlreader.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlregexp.h: libxml/xmlregexp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlregexp.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlsave.h: libxml/xmlsave.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlsave.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemas.h: libxml/xmlschemas.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemas.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemastypes.h: libxml/xmlschemastypes.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemastypes.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlstring.h: libxml/xmlstring.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlstring.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlunicode.h: libxml/xmlunicode.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlunicode.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlversion.h: libxml/xmlversion.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlversion.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlwriter.h: libxml/xmlwriter.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlwriter.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpath.h: libxml/xpath.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpath.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpathInternals.h: libxml/xpathInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpathInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpointer.h: libxml/xpointer.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpointer.in.h; \ } > $@-t @@ -2976,21 +3832,37 @@ # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -3003,23 +3875,31 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ # We need the following in order to create when the system # doesn't have one that provides all definitions. -locale.h: locale.in.h - rm -f $@-t $@ +locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \ + -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \ + -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \ + -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \ + -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/locale.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -3038,37 +3918,128 @@ fi; \ } +# We need the following in order to create a replacement for when +# the system doesn't have one. +sched.h: sched.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SCHED_H''@|$(NEXT_SCHED_H)|g' \ + -e 's|@''HAVE_STRUCT_SCHED_PARAM''@|$(HAVE_STRUCT_SCHED_PARAM)|g' \ + < $(srcdir)/sched.in.h; \ + } > $@-t && \ + mv $@-t $@ + # We need the following in order to create when the system # doesn't have a complete one. -signal.h: signal.in.h - rm -f $@-t $@ +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/signal.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create a replacement for when +# the system doesn't have one. +spawn.h: spawn.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_SPAWN_H''@|$(HAVE_SPAWN_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SPAWN_H''@|$(NEXT_SPAWN_H)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN''@|$(GNULIB_POSIX_SPAWN)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNP''@|$(GNULIB_POSIX_SPAWNP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN)|g' \ + -e 's|@''GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY''@|$(GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_INIT''@|$(GNULIB_POSIX_SPAWNATTR_INIT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETFLAGS''@|$(GNULIB_POSIX_SPAWNATTR_GETFLAGS)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETFLAGS''@|$(GNULIB_POSIX_SPAWNATTR_SETFLAGS)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETPGROUP''@|$(GNULIB_POSIX_SPAWNATTR_GETPGROUP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETPGROUP''@|$(GNULIB_POSIX_SPAWNATTR_SETPGROUP)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM''@|$(GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM''@|$(GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY''@|$(GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY''@|$(GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT''@|$(GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT''@|$(GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_GETSIGMASK''@|$(GNULIB_POSIX_SPAWNATTR_GETSIGMASK)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_SETSIGMASK''@|$(GNULIB_POSIX_SPAWNATTR_SETSIGMASK)|g' \ + -e 's|@''GNULIB_POSIX_SPAWNATTR_DESTROY''@|$(GNULIB_POSIX_SPAWNATTR_DESTROY)|g' \ + -e 's|@''HAVE_POSIX_SPAWN''@|$(HAVE_POSIX_SPAWN)|g' \ + -e 's|@''HAVE_POSIX_SPAWNATTR_T''@|$(HAVE_POSIX_SPAWNATTR_T)|g' \ + -e 's|@''HAVE_POSIX_SPAWN_FILE_ACTIONS_T''@|$(HAVE_POSIX_SPAWN_FILE_ACTIONS_T)|g' \ + -e 's|@''REPLACE_POSIX_SPAWN''@|$(REPLACE_POSIX_SPAWN)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/spawn.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdarg.h: stdarg.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ + < $(srcdir)/stdarg.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -3076,6 +4047,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -3090,93 +4062,187 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdio.h: stdio.in.h - rm -f $@-t $@ +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ - -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ - -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ - -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ - -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ - -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ - -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ - -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ - -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ - -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ - -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ - -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ - -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ - -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ - -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ - -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ - -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ - -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ - -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ - -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ - < $(srcdir)/stdio.in.h; \ - } > $@-t + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -3192,41 +4258,63 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -3245,34 +4333,143 @@ fi; \ } +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +sys/select.h: sys_select.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ + -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ + -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ + -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_select.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \ + -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ + -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \ + -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \ + -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \ + -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \ + -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \ + -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \ + -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \ + -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \ + -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \ + -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \ + -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \ + -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \ + -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \ + -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \ + -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ + -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ + -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \ + -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \ + -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_socket.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + # We need the following in order to create when the system # has one that is incomplete. -sys/stat.h: sys_stat.in.h - @MKDIR_P@ sys - rm -f $@-t $@ +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ - -e 's|@''HAVE_IO_H''@|$(HAVE_IO_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ - -e 's|@''HAVE_DECL_MKDIR''@|$(HAVE_DECL_MKDIR)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_stat.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -sys/time.h: sys_time.in.h - @MKDIR_P@ sys - rm -f $@-t $@ +sys/time.h: sys_time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ - -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \ + -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ + -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/sys_time.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# has one that is incomplete. +sys/wait.h: sys_wait.in.h + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \ + < $(srcdir)/sys_wait.in.h; \ + } > $@-t && \ mv $@-t $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -3307,66 +4504,280 @@ fi; \ } +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ + mv $@-t $@ + +uniconv.h: uniconv.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniconv.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +unilbrk.h: unilbrk.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unilbrk.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +uniname.h: uniname.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniname.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ + mv $@-t $@ + +unistr.h: unistr.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unistr.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ mostlyclean-local: mostlyclean-generic @@ -3376,6 +4787,7 @@ fi; \ done; \ : + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/gnulib-lib/malloca.c gettext-0.18.1.1/gettext-tools/gnulib-lib/malloca.c --- gettext-0.17/gettext-tools/gnulib-lib/malloca.c 2007-06-19 00:26:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/malloca.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -74,21 +74,21 @@ char *p = (char *) malloc (nplus); if (p != NULL) - { - size_t slot; + { + size_t slot; - p += HEADER_SIZE; + p += HEADER_SIZE; - /* Put a magic number into the indicator word. */ - ((int *) p)[-1] = MAGIC_NUMBER; + /* Put a magic number into the indicator word. */ + ((int *) p)[-1] = MAGIC_NUMBER; - /* Enter p into the hash table. */ - slot = (unsigned long) p % HASH_TABLE_SIZE; - ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; - mmalloca_results[slot] = p; + /* Enter p into the hash table. */ + slot = (unsigned long) p % HASH_TABLE_SIZE; + ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; + mmalloca_results[slot] = p; - return p; - } + return p; + } } /* Out of memory. */ return NULL; @@ -109,28 +109,28 @@ if (p != NULL) { /* Attempt to quickly distinguish the mmalloca() result - which has - a magic indicator word - and the alloca() result - which has an - uninitialized indicator word. It is for this test that sa_increment - additional bytes are allocated in the alloca() case. */ + a magic indicator word - and the alloca() result - which has an + uninitialized indicator word. It is for this test that sa_increment + additional bytes are allocated in the alloca() case. */ if (((int *) p)[-1] == MAGIC_NUMBER) - { - /* Looks like a mmalloca() result. To see whether it really is one, - perform a lookup in the hash table. */ - size_t slot = (unsigned long) p % HASH_TABLE_SIZE; - void **chain = &mmalloca_results[slot]; - for (; *chain != NULL;) - { - if (*chain == p) - { - /* Found it. Remove it from the hash table and free it. */ - char *p_begin = (char *) p - HEADER_SIZE; - *chain = ((struct header *) p_begin)->next; - free (p_begin); - return; - } - chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; - } - } + { + /* Looks like a mmalloca() result. To see whether it really is one, + perform a lookup in the hash table. */ + size_t slot = (unsigned long) p % HASH_TABLE_SIZE; + void **chain = &mmalloca_results[slot]; + for (; *chain != NULL;) + { + if (*chain == p) + { + /* Found it. Remove it from the hash table and free it. */ + char *p_begin = (char *) p - HEADER_SIZE; + *chain = ((struct header *) p_begin)->next; + free (p_begin); + return; + } + chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; + } + } /* At this point, we know it was not a mmalloca() result. */ } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/malloca.h gettext-0.18.1.1/gettext-tools/gnulib-lib/malloca.h --- gettext-0.17/gettext-tools/gnulib-lib/malloca.h 2007-06-19 00:26:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/malloca.h 2010-05-24 09:42:45.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -54,7 +54,7 @@ the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ - ((N) < 4032 - sa_increment \ + ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : mmalloca (N)) #else @@ -70,9 +70,19 @@ # define freea free #endif -/* Maybe we should also define a variant - nmalloca (size_t n, size_t s) - behaves like malloca (n * s) - If this would be useful in your application. please speak up. */ +/* nmalloca(N,S) is an overflow-safe variant of malloca (N * S). + It allocates an array of N objects, each with S bytes of memory, + on the stack. S must be positive and N must be nonnegative. + The array must be freed using freea() before the function returns. */ +#if 1 +/* Cf. the definition of xalloc_oversized. */ +# define nmalloca(n, s) \ + ((n) > (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) \ + ? NULL \ + : malloca ((n) * (s))) +#else +extern void * nmalloca (size_t n, size_t s); +#endif #ifdef __cplusplus @@ -112,10 +122,10 @@ sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) #if HAVE_LONG_LONG_INT - | (sa_alignment_longlong - 1) + | (sa_alignment_longlong - 1) #endif - | (sa_alignment_longdouble - 1) - ) + 1, + | (sa_alignment_longdouble - 1) + ) + 1, /* The increment that guarantees room for a magic word must be >= sizeof (int) and a multiple of sa_alignment_max. */ sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max diff -Nru gettext-0.17/gettext-tools/gnulib-lib/malloc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/malloc.c --- gettext-0.17/gettext-tools/gnulib-lib/malloc.c 2007-09-09 17:34:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/malloc.c 2010-05-24 10:59:08.000000000 +0000 @@ -1,10 +1,10 @@ /* malloc() function that is glibc compatible. - Copyright (C) 1997, 1998, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-1998, 2006-2007, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbchar.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbchar.c --- gettext-0.17/gettext-tools/gnulib-lib/mbchar.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbchar.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,10 +25,10 @@ /* Bit table of characters in the ISO C "basic character set". */ const unsigned int is_basic_table [UCHAR_MAX / 32 + 1] = { - 0x00001a00, /* '\t' '\v' '\f' */ - 0xffffffef, /* ' '...'#' '%'...'?' */ - 0xfffffffe, /* 'A'...'Z' '[' '\\' ']' '^' '_' */ - 0x7ffffffe /* 'a'...'z' '{' '|' '}' '~' */ + 0x00001a00, /* '\t' '\v' '\f' */ + 0xffffffef, /* ' '...'#' '%'...'?' */ + 0xfffffffe, /* 'A'...'Z' '[' '\\' ']' '^' '_' */ + 0x7ffffffe /* 'a'...'z' '{' '|' '}' '~' */ /* The remaining bits are 0. */ }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbchar.h gettext-0.18.1.1/gettext-tools/gnulib-lib/mbchar.h --- gettext-0.17/gettext-tools/gnulib-lib/mbchar.h 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbchar.h 2010-05-24 09:42:45.000000000 +0000 @@ -1,5 +1,5 @@ /* Multibyte character data type. - Copyright (C) 2001, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -114,31 +114,31 @@ Here are the function prototypes of the macros. - extern const char * mb_ptr (const mbchar_t mbc); - extern size_t mb_len (const mbchar_t mbc); - extern bool mb_iseq (const mbchar_t mbc, char sc); - extern bool mb_isnul (const mbchar_t mbc); - extern int mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2); - extern int mb_casecmp (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_equal (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_caseequal (const mbchar_t mbc1, const mbchar_t mbc2); - extern bool mb_isalnum (const mbchar_t mbc); - extern bool mb_isalpha (const mbchar_t mbc); - extern bool mb_isascii (const mbchar_t mbc); - extern bool mb_isblank (const mbchar_t mbc); - extern bool mb_iscntrl (const mbchar_t mbc); - extern bool mb_isdigit (const mbchar_t mbc); - extern bool mb_isgraph (const mbchar_t mbc); - extern bool mb_islower (const mbchar_t mbc); - extern bool mb_isprint (const mbchar_t mbc); - extern bool mb_ispunct (const mbchar_t mbc); - extern bool mb_isspace (const mbchar_t mbc); - extern bool mb_isupper (const mbchar_t mbc); - extern bool mb_isxdigit (const mbchar_t mbc); - extern int mb_width (const mbchar_t mbc); - extern void mb_putc (const mbchar_t mbc, FILE *stream); + extern const char * mb_ptr (const mbchar_t mbc); + extern size_t mb_len (const mbchar_t mbc); + extern bool mb_iseq (const mbchar_t mbc, char sc); + extern bool mb_isnul (const mbchar_t mbc); + extern int mb_cmp (const mbchar_t mbc1, const mbchar_t mbc2); + extern int mb_casecmp (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_equal (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_caseequal (const mbchar_t mbc1, const mbchar_t mbc2); + extern bool mb_isalnum (const mbchar_t mbc); + extern bool mb_isalpha (const mbchar_t mbc); + extern bool mb_isascii (const mbchar_t mbc); + extern bool mb_isblank (const mbchar_t mbc); + extern bool mb_iscntrl (const mbchar_t mbc); + extern bool mb_isdigit (const mbchar_t mbc); + extern bool mb_isgraph (const mbchar_t mbc); + extern bool mb_islower (const mbchar_t mbc); + extern bool mb_isprint (const mbchar_t mbc); + extern bool mb_ispunct (const mbchar_t mbc); + extern bool mb_isspace (const mbchar_t mbc); + extern bool mb_isupper (const mbchar_t mbc); + extern bool mb_isxdigit (const mbchar_t mbc); + extern int mb_width (const mbchar_t mbc); + extern void mb_putc (const mbchar_t mbc, FILE *stream); extern void mb_setascii (mbchar_t *new, char sc); - extern void mb_copy (mbchar_t *new, const mbchar_t *old); + extern void mb_copy (mbchar_t *new, const mbchar_t *old); */ #ifndef _MBCHAR_H @@ -160,10 +160,10 @@ struct mbchar { - const char *ptr; /* pointer to current character */ - size_t bytes; /* number of bytes of current character, > 0 */ - bool wc_valid; /* true if wc is a valid wide character */ - wchar_t wc; /* if wc_valid: the current character */ + const char *ptr; /* pointer to current character */ + size_t bytes; /* number of bytes of current character, > 0 */ + bool wc_valid; /* true if wc is a valid wide character */ + wchar_t wc; /* if wc_valid: the current character */ char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ }; @@ -180,38 +180,38 @@ #define mb_iseq(mbc, sc) ((mbc).wc_valid && (mbc).wc == (sc)) #define mb_isnul(mbc) ((mbc).wc_valid && (mbc).wc == 0) #define mb_cmp(mbc1, mbc2) \ - ((mbc1).wc_valid \ - ? ((mbc2).wc_valid \ - ? (int) (mbc1).wc - (int) (mbc2).wc \ - : -1) \ - : ((mbc2).wc_valid \ - ? 1 \ - : (mbc1).bytes == (mbc2).bytes \ - ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ - : (mbc1).bytes < (mbc2).bytes \ + ((mbc1).wc_valid \ + ? ((mbc2).wc_valid \ + ? (int) (mbc1).wc - (int) (mbc2).wc \ + : -1) \ + : ((mbc2).wc_valid \ + ? 1 \ + : (mbc1).bytes == (mbc2).bytes \ + ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ + : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_casecmp(mbc1, mbc2) \ - ((mbc1).wc_valid \ - ? ((mbc2).wc_valid \ - ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc) \ - : -1) \ - : ((mbc2).wc_valid \ - ? 1 \ - : (mbc1).bytes == (mbc2).bytes \ - ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ - : (mbc1).bytes < (mbc2).bytes \ + ((mbc1).wc_valid \ + ? ((mbc2).wc_valid \ + ? (int) towlower ((mbc1).wc) - (int) towlower ((mbc2).wc) \ + : -1) \ + : ((mbc2).wc_valid \ + ? 1 \ + : (mbc1).bytes == (mbc2).bytes \ + ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ + : (mbc1).bytes < (mbc2).bytes \ ? (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) > 0 ? 1 : -1) \ : (memcmp ((mbc1).ptr, (mbc2).ptr, (mbc2).bytes) >= 0 ? 1 : -1))) #define mb_equal(mbc1, mbc2) \ - ((mbc1).wc_valid && (mbc2).wc_valid \ - ? (mbc1).wc == (mbc2).wc \ - : (mbc1).bytes == (mbc2).bytes \ + ((mbc1).wc_valid && (mbc2).wc_valid \ + ? (mbc1).wc == (mbc2).wc \ + : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) #define mb_caseequal(mbc1, mbc2) \ - ((mbc1).wc_valid && (mbc2).wc_valid \ - ? towlower ((mbc1).wc) == towlower ((mbc2).wc) \ - : (mbc1).bytes == (mbc2).bytes \ + ((mbc1).wc_valid && (mbc2).wc_valid \ + ? towlower ((mbc1).wc) == towlower ((mbc2).wc) \ + : (mbc1).bytes == (mbc2).bytes \ && memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) == 0) /* , classification. */ @@ -308,7 +308,7 @@ is_basic (char c) { return (is_basic_table [(unsigned char) c >> 5] >> ((unsigned char) c & 31)) - & 1; + & 1; } #else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbiter.h gettext-0.18.1.1/gettext-tools/gnulib-lib/mbiter.h --- gettext-0.17/gettext-tools/gnulib-lib/mbiter.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbiter.h 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,215 @@ +/* Iterating through multibyte strings: macros for multi-byte encodings. + Copyright (C) 2001, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +/* The macros in this file implement forward iteration through a + multi-byte string. + + With these macros, an iteration loop that looks like + + char *iter; + for (iter = buf; iter < buf + buflen; iter++) + { + do_something (*iter); + } + + becomes + + mbi_iterator_t iter; + for (mbi_init (iter, buf, buflen); mbi_avail (iter); mbi_advance (iter)) + { + do_something (mbi_cur_ptr (iter), mb_len (mbi_cur (iter))); + } + + The benefit of these macros over plain use of mbrtowc is: + - Handling of invalid multibyte sequences is possible without + making the code more complicated, while still preserving the + invalid multibyte sequences. + + mbi_iterator_t + is a type usable for variable declarations. + + mbi_init (iter, startptr, length) + initializes the iterator, starting at startptr and crossing length bytes. + + mbi_avail (iter) + returns true if there are more multibyte chracters available before + the end of string is reached. In this case, mbi_cur (iter) is + initialized to the next multibyte chracter. + + mbi_advance (iter) + advances the iterator by one multibyte character. + + mbi_cur (iter) + returns the current multibyte character, of type mbchar_t. All the + macros defined in mbchar.h can be used on it. + + mbi_cur_ptr (iter) + return a pointer to the beginning of the current multibyte character. + + mbi_reloc (iter, ptrdiff) + relocates iterator when the string is moved by ptrdiff bytes. + + mbi_copy (&destiter, &srciter) + copies srciter to destiter. + + Here are the function prototypes of the macros. + + extern void mbi_init (mbi_iterator_t iter, + const char *startptr, size_t length); + extern bool mbi_avail (mbi_iterator_t iter); + extern void mbi_advance (mbi_iterator_t iter); + extern mbchar_t mbi_cur (mbi_iterator_t iter); + extern const char * mbi_cur_ptr (mbi_iterator_t iter); + extern void mbi_reloc (mbi_iterator_t iter, ptrdiff_t ptrdiff); + extern void mbi_copy (mbi_iterator_t *new, const mbi_iterator_t *old); + */ + +#ifndef _MBITER_H +#define _MBITER_H 1 + +#include +#include +#include +#include + +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.1 has a bug: and must be included before + . */ +#include +#include +#include + +#include "mbchar.h" + +struct mbiter_multi +{ + const char *limit; /* pointer to end of string */ + bool in_shift; /* true if next byte may not be interpreted as ASCII */ + mbstate_t state; /* if in_shift: current shift state */ + bool next_done; /* true if mbi_avail has already filled the following */ + struct mbchar cur; /* the current character: + const char *cur.ptr pointer to current character + The following are only valid after mbi_avail. + size_t cur.bytes number of bytes of current character + bool cur.wc_valid true if wc is a valid wide character + wchar_t cur.wc if wc_valid: the current character + */ +}; + +static inline void +mbiter_multi_next (struct mbiter_multi *iter) +{ + if (iter->next_done) + return; + if (iter->in_shift) + goto with_shift; + /* Handle most ASCII characters quickly, without calling mbrtowc(). */ + if (is_basic (*iter->cur.ptr)) + { + /* These characters are part of the basic character set. ISO C 99 + guarantees that their wide character code is identical to their + char code. */ + iter->cur.bytes = 1; + iter->cur.wc = *iter->cur.ptr; + iter->cur.wc_valid = true; + } + else + { + assert (mbsinit (&iter->state)); + iter->in_shift = true; + with_shift: + iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, + iter->limit - iter->cur.ptr, &iter->state); + if (iter->cur.bytes == (size_t) -1) + { + /* An invalid multibyte sequence was encountered. */ + iter->cur.bytes = 1; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not very important; the string is bogus anyway. */ + } + else if (iter->cur.bytes == (size_t) -2) + { + /* An incomplete multibyte character at the end. */ + iter->cur.bytes = iter->limit - iter->cur.ptr; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not important; the string end is reached anyway. */ + } + else + { + if (iter->cur.bytes == 0) + { + /* A null wide character was encountered. */ + iter->cur.bytes = 1; + assert (*iter->cur.ptr == '\0'); + assert (iter->cur.wc == 0); + } + iter->cur.wc_valid = true; + + /* When in the initial state, we can go back treating ASCII + characters more quickly. */ + if (mbsinit (&iter->state)) + iter->in_shift = false; + } + } + iter->next_done = true; +} + +static inline void +mbiter_multi_reloc (struct mbiter_multi *iter, ptrdiff_t ptrdiff) +{ + iter->cur.ptr += ptrdiff; + iter->limit += ptrdiff; +} + +static inline void +mbiter_multi_copy (struct mbiter_multi *new_iter, const struct mbiter_multi *old_iter) +{ + new_iter->limit = old_iter->limit; + if ((new_iter->in_shift = old_iter->in_shift)) + memcpy (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); + else + memset (&new_iter->state, 0, sizeof (mbstate_t)); + new_iter->next_done = old_iter->next_done; + mb_copy (&new_iter->cur, &old_iter->cur); +} + +/* Iteration macros. */ +typedef struct mbiter_multi mbi_iterator_t; +#define mbi_init(iter, startptr, length) \ + ((iter).cur.ptr = (startptr), (iter).limit = (iter).cur.ptr + (length), \ + (iter).in_shift = false, memset (&(iter).state, '\0', sizeof (mbstate_t)), \ + (iter).next_done = false) +#define mbi_avail(iter) \ + ((iter).cur.ptr < (iter).limit && (mbiter_multi_next (&(iter)), true)) +#define mbi_advance(iter) \ + ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = false) + +/* Access to the current character. */ +#define mbi_cur(iter) (iter).cur +#define mbi_cur_ptr(iter) (iter).cur.ptr + +/* Relocation. */ +#define mbi_reloc(iter, ptrdiff) mbiter_multi_reloc (&iter, ptrdiff) + +/* Copying an iterator. */ +#define mbi_copy mbiter_multi_copy + +#endif /* _MBITER_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbrtowc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbrtowc.c --- gettext-0.17/gettext-tools/gnulib-lib/mbrtowc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbrtowc.c 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,386 @@ +/* Convert multibyte character to wide character. + Copyright (C) 1999-2002, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#if GNULIB_defined_mbstate_t +/* Implement mbrtowc() on top of mbtowc(). */ + +# include +# include + +# include "localcharset.h" +# include "streq.h" +# include "verify.h" + + +verify (sizeof (mbstate_t) >= 4); + +static char internal_state[4]; + +size_t +mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ + char *pstate = (char *)ps; + + if (pstate == NULL) + pstate = internal_state; + + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } + + if (n == 0) + return (size_t)(-2); + + /* Here n > 0. */ + { + size_t nstate = pstate[0]; + char buf[4]; + const char *p; + size_t m; + + switch (nstate) + { + case 0: + p = s; + m = n; + break; + case 3: + buf[2] = pstate[3]; + /*FALLTHROUGH*/ + case 2: + buf[1] = pstate[2]; + /*FALLTHROUGH*/ + case 1: + buf[0] = pstate[1]; + p = buf; + m = nstate; + buf[m++] = s[0]; + if (n >= 2 && m < 4) + { + buf[m++] = s[1]; + if (n >= 3 && m < 4) + buf[m++] = s[2]; + } + break; + default: + errno = EINVAL; + return (size_t)(-1); + } + + /* Here m > 0. */ + +# if __GLIBC__ + /* Work around bug */ + mbtowc (NULL, NULL, 0); +# endif + { + int res = mbtowc (pwc, p, m); + + if (res >= 0) + { + if (pwc != NULL && ((*pwc == 0) != (res == 0))) + abort (); + if (nstate >= (res > 0 ? res : 1)) + abort (); + res -= nstate; + pstate[0] = 0; + return res; + } + + /* mbtowc does not distinguish between invalid and incomplete multibyte + sequences. But mbrtowc needs to make this distinction. + There are two possible approaches: + - Use iconv() and its return value. + - Use built-in knowledge about the possible encodings. + Given the low quality of implementation of iconv() on the systems that + lack mbrtowc(), we use the second approach. + The possible encodings are: + - 8-bit encodings, + - EUC-JP, EUC-KR, GB2312, EUC-TW, BIG5, GB18030, SJIS, + - UTF-8. + Use specialized code for each. */ + if (m >= 4 || m >= MB_CUR_MAX) + goto invalid; + /* Here MB_CUR_MAX > 1 and 0 < m < 4. */ + { + const char *encoding = locale_charset (); + + if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + { + /* Cf. unistr/u8-mblen.c. */ + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (m == 1) + goto incomplete; + } + else if (c < 0xf0) + { + if (m == 1) + goto incomplete; + if (m == 2) + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xe1 || c2 >= 0xa0) + && (c != 0xed || c2 < 0xa0)) + goto incomplete; + } + } + else if (c <= 0xf4) + { + if (m == 1) + goto incomplete; + else /* m == 2 || m == 3 */ + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xf1 || c2 >= 0x90) + && (c < 0xf4 || (c == 0xf4 && c2 < 0x90))) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if ((c3 ^ 0x80) < 0x40) + goto incomplete; + } + } + } + } + } + goto invalid; + } + + /* As a reference for this code, you can use the GNU libiconv + implementation. Look for uses of the RET_TOOFEW macro. */ + + if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e || c == 0x8f) + goto incomplete; + } + if (m == 2) + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8f) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0xa1 && c2 < 0xff) + goto incomplete; + } + } + goto invalid; + } + if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) + || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) + || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xa1 && c < 0xff) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8e) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x90 && c <= 0xe3) || (c >= 0xf8 && c <= 0xfe)) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0x90 && c <= 0xe3) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0x30 && c2 <= 0x39) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if (c3 >= 0x81 && c3 <= 0xfe) + goto incomplete; + } + } + } + } + goto invalid; + } + if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x81 && c <= 0x9f) || (c >= 0xe0 && c <= 0xea) + || (c >= 0xf0 && c <= 0xf9)) + goto incomplete; + } + goto invalid; + } + + /* An unknown multibyte encoding. */ + goto incomplete; + } + + incomplete: + { + size_t k = nstate; + /* Here 0 <= k < m < 4. */ + pstate[++k] = s[0]; + if (k < m) + { + pstate[++k] = s[1]; + if (k < m) + pstate[++k] = s[2]; + } + if (k != m) + abort (); + } + pstate[0] = m; + return (size_t)(-2); + + invalid: + errno = EILSEQ; + /* The conversion state is undefined, says POSIX. */ + return (size_t)(-1); + } + } +} + +#else +/* Override the system's mbrtowc() function. */ + +# undef mbrtowc + +size_t +rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ +# if MBRTOWC_NULL_ARG_BUG || MBRTOWC_RETVAL_BUG + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } +# endif + +# if MBRTOWC_RETVAL_BUG + { + static mbstate_t internal_state; + + /* Override mbrtowc's internal state. We can not call mbsinit() on the + hidden internal state, but we can call it on our variable. */ + if (ps == NULL) + ps = &internal_state; + + if (!mbsinit (ps)) + { + /* Parse the rest of the multibyte character byte for byte. */ + size_t count = 0; + for (; n > 0; s++, n--) + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, 1, ps); + + if (ret == (size_t)(-1)) + return (size_t)(-1); + count++; + if (ret != (size_t)(-2)) + { + /* The multibyte character has been completed. */ + if (pwc != NULL) + *pwc = wc; + return (wc == 0 ? 0 : count); + } + } + return (size_t)(-2); + } + } +# endif + +# if MBRTOWC_NUL_RETVAL_BUG + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, n, ps); + + if (ret != (size_t)(-1) && ret != (size_t)(-2)) + { + if (pwc != NULL) + *pwc = wc; + if (wc == 0) + ret = 0; + } + return ret; + } +# else + return mbrtowc (pwc, s, n, ps); +# endif +} + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbsinit.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsinit.c --- gettext-0.17/gettext-tools/gnulib-lib/mbsinit.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsinit.c 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,47 @@ +/* Test for initial conversion state. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include "verify.h" + +/* Platforms that lack mbsinit() also lack mbrlen(), mbrtowc(), mbsrtowcs() + and wcrtomb(), wcsrtombs(). + We assume that + - sizeof (mbstate_t) >= 4, + - only stateless encodings are supported (such as UTF-8 and EUC-JP, but + not ISO-2022 variants), + - for each encoding, the number of bytes for a wide character is <= 4. + (This maximum is attained for UTF-8, GB18030, EUC-TW.) + We define the meaning of mbstate_t as follows: + - In mb -> wc direction, mbstate_t's first byte contains the number of + buffered bytes (in the range 0..3), followed by up to 3 buffered bytes. + - In wc -> mb direction, mbstate_t contains no information. In other + words, it is always in the initial state. */ + +verify (sizeof (mbstate_t) >= 4); + +int +mbsinit (const mbstate_t *ps) +{ + const char *pstate = (const char *)ps; + + return pstate[0] == 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbslen.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbslen.c --- gettext-0.17/gettext-tools/gnulib-lib/mbslen.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbslen.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,5 +1,5 @@ /* Counting the multibyte characters in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -22,15 +22,12 @@ #include -#if HAVE_MBRTOWC -# include "mbuiter.h" -#endif +#include "mbuiter.h" /* Return the number of multibyte characters in the character string STRING. */ size_t mbslen (const char *string) { -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { size_t count; @@ -38,11 +35,10 @@ count = 0; for (mbui_init (iter, string); mbui_avail (iter); mbui_advance (iter)) - count++; + count++; return count; } else -#endif return strlen (string); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbsrtowcs.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsrtowcs.c --- gettext-0.17/gettext-tools/gnulib-lib/mbsrtowcs.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsrtowcs.c 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,136 @@ +/* Convert string to wide string. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + +#include "strnlen1.h" + + +extern mbstate_t _gl_mbsrtowcs_state; + +size_t +mbsrtowcs (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) +{ + if (ps == NULL) + ps = &_gl_mbsrtowcs_state; + { + const char *src = *srcp; + + if (dest != NULL) + { + wchar_t *destptr = dest; + + for (; len > 0; destptr++, len--) + { + size_t src_avail; + size_t ret; + + /* An optimized variant of + src_avail = strnlen1 (src, MB_LEN_MAX); */ + if (src[0] == '\0') + src_avail = 1; + else if (src[1] == '\0') + src_avail = 2; + else if (src[2] == '\0') + src_avail = 3; + else if (MB_LEN_MAX <= 4 || src[3] == '\0') + src_avail = 4; + else + src_avail = 4 + strnlen1 (src + 4, MB_LEN_MAX - 4); + + /* Parse the next multibyte character. */ + ret = mbrtowc (destptr, src, src_avail, ps); + + if (ret == (size_t)(-2)) + /* Encountered a multibyte character that extends past a '\0' byte + or that is longer than MB_LEN_MAX bytes. Cannot happen. */ + abort (); + + if (ret == (size_t)(-1)) + goto bad_input; + if (ret == 0) + { + src = NULL; + /* Here mbsinit (ps). */ + break; + } + src += ret; + } + + *srcp = src; + return destptr - dest; + } + else + { + /* Ignore dest and len, don't store *srcp at the end, and + don't clobber *ps. */ + mbstate_t state = *ps; + size_t totalcount = 0; + + for (;; totalcount++) + { + size_t src_avail; + size_t ret; + + /* An optimized variant of + src_avail = strnlen1 (src, MB_LEN_MAX); */ + if (src[0] == '\0') + src_avail = 1; + else if (src[1] == '\0') + src_avail = 2; + else if (src[2] == '\0') + src_avail = 3; + else if (MB_LEN_MAX <= 4 || src[3] == '\0') + src_avail = 4; + else + src_avail = 4 + strnlen1 (src + 4, MB_LEN_MAX - 4); + + /* Parse the next multibyte character. */ + ret = mbrtowc (NULL, src, src_avail, &state); + + if (ret == (size_t)(-2)) + /* Encountered a multibyte character that extends past a '\0' byte + or that is longer than MB_LEN_MAX bytes. Cannot happen. */ + abort (); + + if (ret == (size_t)(-1)) + goto bad_input2; + if (ret == 0) + { + /* Here mbsinit (&state). */ + break; + } + src += ret; + } + + return totalcount; + } + + bad_input: + *srcp = src; + bad_input2: + errno = EILSEQ; + return (size_t)(-1); + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbsrtowcs-state.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsrtowcs-state.c --- gettext-0.17/gettext-tools/gnulib-lib/mbsrtowcs-state.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsrtowcs-state.c 2010-05-24 09:42:45.000000000 +0000 @@ -0,0 +1,37 @@ +/* Convert string to wide string. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include + +/* Internal state used by the functions mbsrtowcs() and mbsnrtowcs(). */ +mbstate_t _gl_mbsrtowcs_state +/* The state must initially be in the "initial state"; so, zero-initialize it. + On most systems, putting it into BSS is sufficient. Not so on MacOS X 10.3, + see . + When it needs an initializer, use 0 or {0} as initializer? 0 only works + when mbstate_t is a scalar type (such as when gnulib defines it, or on + AIX, IRIX, mingw). {0} works as an initializer in all cases: for a struct + or union type, but also for a scalar type (ISO C 99, 6.7.8.(11)). */ +#if defined __ELF__ + /* On ELF systems, variables in BSS behave well. */ +#else + /* Use braces, to be on the safe side. */ + = { 0 } +#endif + ; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbsstr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsstr.c --- gettext-0.17/gettext-tools/gnulib-lib/mbsstr.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbsstr.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -24,110 +24,27 @@ #include /* for NULL, in case a nonstandard string.h lacks it */ #include "malloca.h" -#if HAVE_MBRTOWC -# include "mbuiter.h" -#endif +#include "mbuiter.h" + +/* Knuth-Morris-Pratt algorithm. */ +#define CANON_ELEMENT(c) c +#include "str-kmp.h" /* Knuth-Morris-Pratt algorithm. See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ - -static bool -knuth_morris_pratt_unibyte (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = (unsigned char) needle[i - 1]; - - for (;;) - { - if (b == (unsigned char) needle[j]) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if ((unsigned char) needle[j] == (unsigned char) *phaystack) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} - -#if HAVE_MBRTOWC + Return a boolean indicating success: + Return true and set *RESULTP if the search was completed. + Return false if it was aborted because not enough memory was available. */ static bool knuth_morris_pratt_multibyte (const char *haystack, const char *needle, - const char **resultp) + const char **resultp) { size_t m = mbslen (needle); mbchar_t *needle_mbchars; size_t *table; /* Allocate room for needle_mbchars and the table. */ - char *memory = (char *) malloca (m * (sizeof (mbchar_t) + sizeof (size_t))); + char *memory = (char *) nmalloca (m, sizeof (mbchar_t) + sizeof (size_t)); if (memory == NULL) return false; needle_mbchars = (mbchar_t *) memory; @@ -146,34 +63,67 @@ /* Fill the table. For 0 < i < m: 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], + forall 0 < x < table[i]: needle[x..i-1] != needle[0..i-1-x], and table[i] is as large as possible with this property. + This implies: + 1) For 0 < i < m: + If table[i] < i, + needle[table[i]..i-1] = needle[0..i-1-table[i]]. + 2) For 0 < i < m: + rhaystack[0..i-1] == needle[0..i-1] + and exists h, i <= h < m: rhaystack[h] != needle[h] + implies + forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1]. table[0] remains uninitialized. */ { size_t i, j; + /* i = 1: Nothing to verify for x = 0. */ table[1] = 1; j = 0; + for (i = 2; i < m; i++) { - mbchar_t *b = &needle_mbchars[i - 1]; - - for (;;) - { - if (mb_equal (*b, needle_mbchars[j])) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } + /* Here: j = i-1 - table[i-1]. + The inequality needle[x..i-1] != needle[0..i-1-x] is known to hold + for x < table[i-1], by induction. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + mbchar_t *b = &needle_mbchars[i - 1]; + + for (;;) + { + /* Invariants: The inequality needle[x..i-1] != needle[0..i-1-x] + is known to hold for x < i-1-j. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + if (mb_equal (*b, needle_mbchars[j])) + { + /* Set table[i] := i-1-j. */ + table[i] = i - ++j; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for x = i-1-j, because + needle[i-1] != needle[j] = needle[i-1-x]. */ + if (j == 0) + { + /* The inequality holds for all possible x. */ + table[i] = i; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for i-1-j < x < i-1-j+table[j], because for these x: + needle[x..i-2] + = needle[x-(i-1-j)..j-1] + != needle[0..j-1-(x-(i-1-j))] (by definition of table[j]) + = needle[0..i-2-x], + hence needle[x..i-1] != needle[0..i-1-x]. + Furthermore + needle[i-1-j+table[j]..i-2] + = needle[table[j]..j-1] + = needle[0..j-1-table[j]] (by definition of table[j]). */ + j = j - table[j]; + } + /* Here: j = i - table[i]. */ } } @@ -190,42 +140,41 @@ /* Invariant: phaystack = rhaystack + j. */ while (mbui_avail (phaystack)) if (mb_equal (needle_mbchars[j], mbui_cur (phaystack))) - { - j++; - mbui_advance (phaystack); - if (j == m) - { - /* The entire needle has been found. */ - *resultp = mbui_cur_ptr (rhaystack); - break; - } - } + { + j++; + mbui_advance (phaystack); + if (j == m) + { + /* The entire needle has been found. */ + *resultp = mbui_cur_ptr (rhaystack); + break; + } + } else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - size_t count = table[j]; - j -= count; - for (; count > 0; count--) - { - if (!mbui_avail (rhaystack)) - abort (); - mbui_advance (rhaystack); - } - } + { + /* Found a match of needle[0..j-1], mismatch at needle[j]. */ + size_t count = table[j]; + j -= count; + for (; count > 0; count--) + { + if (!mbui_avail (rhaystack)) + abort (); + mbui_advance (rhaystack); + } + } else - { - /* Found a mismatch at needle[0] already. */ - if (!mbui_avail (rhaystack)) - abort (); - mbui_advance (rhaystack); - mbui_advance (phaystack); - } + { + /* Found a mismatch at needle[0] already. */ + if (!mbui_avail (rhaystack)) + abort (); + mbui_advance (rhaystack); + mbui_advance (phaystack); + } } freea (memory); return true; } -#endif /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. */ @@ -237,196 +186,194 @@ - haystack may be very long, and a match of needle found early, - needle may be very long, and not even a short initial segment of needle may be found in haystack. */ -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { mbui_iterator_t iter_needle; mbui_init (iter_needle, needle); if (mbui_avail (iter_needle)) - { - /* Minimizing the worst-case complexity: - Let n = mbslen(haystack), m = mbslen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the - memory allocation, we activate the Knuth-Morris-Pratt algorithm - only once the naïve algorithm has already run for some time; more - precisely, when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - mbui_iterator_t iter_needle_last_ccount; /* = needle + last_ccount */ - - mbui_iterator_t iter_haystack; - - mbui_init (iter_needle_last_ccount, needle); - mbui_init (iter_haystack, haystack); - for (;; mbui_advance (iter_haystack)) - { - if (!mbui_avail (iter_haystack)) - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - size_t count = comparison_count - last_ccount; - for (; - count > 0 && mbui_avail (iter_needle_last_ccount); - count--) - mbui_advance (iter_needle_last_ccount); - last_ccount = comparison_count; - if (!mbui_avail (iter_needle_last_ccount)) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt_multibyte (haystack, needle, - &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if (mb_equal (mbui_cur (iter_haystack), mbui_cur (iter_needle))) - /* The first character matches. */ - { - mbui_iterator_t rhaystack; - mbui_iterator_t rneedle; - - memcpy (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); - mbui_advance (rhaystack); - - mbui_init (rneedle, needle); - if (!mbui_avail (rneedle)) - abort (); - mbui_advance (rneedle); - - for (;; mbui_advance (rhaystack), mbui_advance (rneedle)) - { - if (!mbui_avail (rneedle)) - /* Found a match. */ - return (char *) mbui_cur_ptr (iter_haystack); - if (!mbui_avail (rhaystack)) - /* No match. */ - return NULL; - comparison_count++; - if (!mb_equal (mbui_cur (rhaystack), mbui_cur (rneedle))) - /* Nothing in this round. */ - break; - } - } - } - } + { + /* Minimizing the worst-case complexity: + Let n = mbslen(haystack), m = mbslen(needle). + The naïve algorithm is O(n*m) worst-case. + The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a + memory allocation. + To achieve linear complexity and yet amortize the cost of the + memory allocation, we activate the Knuth-Morris-Pratt algorithm + only once the naïve algorithm has already run for some time; more + precisely, when + - the outer loop count is >= 10, + - the average number of comparisons per outer loop is >= 5, + - the total number of comparisons is >= m. + But we try it only once. If the memory allocation attempt failed, + we don't retry it. */ + bool try_kmp = true; + size_t outer_loop_count = 0; + size_t comparison_count = 0; + size_t last_ccount = 0; /* last comparison count */ + mbui_iterator_t iter_needle_last_ccount; /* = needle + last_ccount */ + + mbui_iterator_t iter_haystack; + + mbui_init (iter_needle_last_ccount, needle); + mbui_init (iter_haystack, haystack); + for (;; mbui_advance (iter_haystack)) + { + if (!mbui_avail (iter_haystack)) + /* No match. */ + return NULL; + + /* See whether it's advisable to use an asymptotically faster + algorithm. */ + if (try_kmp + && outer_loop_count >= 10 + && comparison_count >= 5 * outer_loop_count) + { + /* See if needle + comparison_count now reaches the end of + needle. */ + size_t count = comparison_count - last_ccount; + for (; + count > 0 && mbui_avail (iter_needle_last_ccount); + count--) + mbui_advance (iter_needle_last_ccount); + last_ccount = comparison_count; + if (!mbui_avail (iter_needle_last_ccount)) + { + /* Try the Knuth-Morris-Pratt algorithm. */ + const char *result; + bool success = + knuth_morris_pratt_multibyte (haystack, needle, + &result); + if (success) + return (char *) result; + try_kmp = false; + } + } + + outer_loop_count++; + comparison_count++; + if (mb_equal (mbui_cur (iter_haystack), mbui_cur (iter_needle))) + /* The first character matches. */ + { + mbui_iterator_t rhaystack; + mbui_iterator_t rneedle; + + memcpy (&rhaystack, &iter_haystack, sizeof (mbui_iterator_t)); + mbui_advance (rhaystack); + + mbui_init (rneedle, needle); + if (!mbui_avail (rneedle)) + abort (); + mbui_advance (rneedle); + + for (;; mbui_advance (rhaystack), mbui_advance (rneedle)) + { + if (!mbui_avail (rneedle)) + /* Found a match. */ + return (char *) mbui_cur_ptr (iter_haystack); + if (!mbui_avail (rhaystack)) + /* No match. */ + return NULL; + comparison_count++; + if (!mb_equal (mbui_cur (rhaystack), mbui_cur (rneedle))) + /* Nothing in this round. */ + break; + } + } + } + } else - return (char *) haystack; + return (char *) haystack; } else -#endif { if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the - memory allocation, we activate the Knuth-Morris-Pratt algorithm - only once the naïve algorithm has already run for some time; more - precisely, when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - char b = *needle++; - - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, - comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt_unibyte (haystack, needle - 1, - &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if (*haystack == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if (*rhaystack != *rneedle) - /* Nothing in this round. */ - break; - } - } - } - } + { + /* Minimizing the worst-case complexity: + Let n = strlen(haystack), m = strlen(needle). + The naïve algorithm is O(n*m) worst-case. + The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a + memory allocation. + To achieve linear complexity and yet amortize the cost of the + memory allocation, we activate the Knuth-Morris-Pratt algorithm + only once the naïve algorithm has already run for some time; more + precisely, when + - the outer loop count is >= 10, + - the average number of comparisons per outer loop is >= 5, + - the total number of comparisons is >= m. + But we try it only once. If the memory allocation attempt failed, + we don't retry it. */ + bool try_kmp = true; + size_t outer_loop_count = 0; + size_t comparison_count = 0; + size_t last_ccount = 0; /* last comparison count */ + const char *needle_last_ccount = needle; /* = needle + last_ccount */ + + /* Speed up the following searches of needle by caching its first + character. */ + char b = *needle++; + + for (;; haystack++) + { + if (*haystack == '\0') + /* No match. */ + return NULL; + + /* See whether it's advisable to use an asymptotically faster + algorithm. */ + if (try_kmp + && outer_loop_count >= 10 + && comparison_count >= 5 * outer_loop_count) + { + /* See if needle + comparison_count now reaches the end of + needle. */ + if (needle_last_ccount != NULL) + { + needle_last_ccount += + strnlen (needle_last_ccount, + comparison_count - last_ccount); + if (*needle_last_ccount == '\0') + needle_last_ccount = NULL; + last_ccount = comparison_count; + } + if (needle_last_ccount == NULL) + { + /* Try the Knuth-Morris-Pratt algorithm. */ + const char *result; + bool success = + knuth_morris_pratt_unibyte (haystack, needle - 1, + &result); + if (success) + return (char *) result; + try_kmp = false; + } + } + + outer_loop_count++; + comparison_count++; + if (*haystack == b) + /* The first character matches. */ + { + const char *rhaystack = haystack + 1; + const char *rneedle = needle; + + for (;; rhaystack++, rneedle++) + { + if (*rneedle == '\0') + /* Found a match. */ + return (char *) haystack; + if (*rhaystack == '\0') + /* No match. */ + return NULL; + comparison_count++; + if (*rhaystack != *rneedle) + /* Nothing in this round. */ + break; + } + } + } + } else - return (char *) haystack; + return (char *) haystack; } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbswidth.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mbswidth.c --- gettext-0.17/gettext-tools/gnulib-lib/mbswidth.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbswidth.c 2010-05-24 09:42:45.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a string. - Copyright (C) 2000-2007 Free Software Foundation, Inc. + Copyright (C) 2000-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,12 +35,6 @@ /* Get iswcntrl(). */ #include -#ifndef mbsinit -# if !HAVE_MBSINIT -# define mbsinit(ps) 1 -# endif -#endif - /* Returns the number of columns needed to represent the multibyte character string pointed to by STRING. If a non-printable character occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned. @@ -66,110 +60,108 @@ int width; width = 0; -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { while (p < plimit) - switch (*p) - { - case ' ': case '!': case '"': case '#': case '%': - case '&': case '\'': case '(': case ')': case '*': - case '+': case ',': case '-': case '.': case '/': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case ':': case ';': case '<': case '=': case '>': - case '?': - case 'A': case 'B': case 'C': case 'D': case 'E': - case 'F': case 'G': case 'H': case 'I': case 'J': - case 'K': case 'L': case 'M': case 'N': case 'O': - case 'P': case 'Q': case 'R': case 'S': case 'T': - case 'U': case 'V': case 'W': case 'X': case 'Y': - case 'Z': - case '[': case '\\': case ']': case '^': case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': - case 'f': case 'g': case 'h': case 'i': case 'j': - case 'k': case 'l': case 'm': case 'n': case 'o': - case 'p': case 'q': case 'r': case 's': case 't': - case 'u': case 'v': case 'w': case 'x': case 'y': - case 'z': case '{': case '|': case '}': case '~': - /* These characters are printable ASCII characters. */ - p++; - width++; - break; - default: - /* If we have a multibyte sequence, scan it up to its end. */ - { - mbstate_t mbstate; - memset (&mbstate, 0, sizeof mbstate); - do - { - wchar_t wc; - size_t bytes; - int w; - - bytes = mbrtowc (&wc, p, plimit - p, &mbstate); - - if (bytes == (size_t) -1) - /* An invalid multibyte sequence was encountered. */ - { - if (!(flags & MBSW_REJECT_INVALID)) - { - p++; - width++; - break; - } - else - return -1; - } - - if (bytes == (size_t) -2) - /* An incomplete multibyte character at the end. */ - { - if (!(flags & MBSW_REJECT_INVALID)) - { - p = plimit; - width++; - break; - } - else - return -1; - } - - if (bytes == 0) - /* A null wide character was encountered. */ - bytes = 1; - - w = wcwidth (wc); - if (w >= 0) - /* A printable multibyte character. */ - width += w; - else - /* An unprintable multibyte character. */ - if (!(flags & MBSW_REJECT_UNPRINTABLE)) - width += (iswcntrl (wc) ? 0 : 1); - else - return -1; - - p += bytes; - } - while (! mbsinit (&mbstate)); - } - break; - } + switch (*p) + { + case ' ': case '!': case '"': case '#': case '%': + case '&': case '\'': case '(': case ')': case '*': + case '+': case ',': case '-': case '.': case '/': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case ':': case ';': case '<': case '=': case '>': + case '?': + case 'A': case 'B': case 'C': case 'D': case 'E': + case 'F': case 'G': case 'H': case 'I': case 'J': + case 'K': case 'L': case 'M': case 'N': case 'O': + case 'P': case 'Q': case 'R': case 'S': case 'T': + case 'U': case 'V': case 'W': case 'X': case 'Y': + case 'Z': + case '[': case '\\': case ']': case '^': case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': + case 'f': case 'g': case 'h': case 'i': case 'j': + case 'k': case 'l': case 'm': case 'n': case 'o': + case 'p': case 'q': case 'r': case 's': case 't': + case 'u': case 'v': case 'w': case 'x': case 'y': + case 'z': case '{': case '|': case '}': case '~': + /* These characters are printable ASCII characters. */ + p++; + width++; + break; + default: + /* If we have a multibyte sequence, scan it up to its end. */ + { + mbstate_t mbstate; + memset (&mbstate, 0, sizeof mbstate); + do + { + wchar_t wc; + size_t bytes; + int w; + + bytes = mbrtowc (&wc, p, plimit - p, &mbstate); + + if (bytes == (size_t) -1) + /* An invalid multibyte sequence was encountered. */ + { + if (!(flags & MBSW_REJECT_INVALID)) + { + p++; + width++; + break; + } + else + return -1; + } + + if (bytes == (size_t) -2) + /* An incomplete multibyte character at the end. */ + { + if (!(flags & MBSW_REJECT_INVALID)) + { + p = plimit; + width++; + break; + } + else + return -1; + } + + if (bytes == 0) + /* A null wide character was encountered. */ + bytes = 1; + + w = wcwidth (wc); + if (w >= 0) + /* A printable multibyte character. */ + width += w; + else + /* An unprintable multibyte character. */ + if (!(flags & MBSW_REJECT_UNPRINTABLE)) + width += (iswcntrl (wc) ? 0 : 1); + else + return -1; + + p += bytes; + } + while (! mbsinit (&mbstate)); + } + break; + } return width; } -#endif while (p < plimit) { unsigned char c = (unsigned char) *p++; if (isprint (c)) - width++; + width++; else if (!(flags & MBSW_REJECT_UNPRINTABLE)) - width += (iscntrl (c) ? 0 : 1); + width += (iscntrl (c) ? 0 : 1); else - return -1; + return -1; } return width; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbswidth.h gettext-0.18.1.1/gettext-tools/gnulib-lib/mbswidth.h --- gettext-0.17/gettext-tools/gnulib-lib/mbswidth.h 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbswidth.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a string. - Copyright (C) 2000-2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2000-2004, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ /* If this bit is set, return -1 upon finding a non-printable character. Otherwise, assume unprintable characters have width 0 if they are control characters and 1 otherwise. */ -#define MBSW_REJECT_UNPRINTABLE 2 +#define MBSW_REJECT_UNPRINTABLE 2 /* Returns the number of screen columns needed for STRING. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mbuiter.h gettext-0.18.1.1/gettext-tools/gnulib-lib/mbuiter.h --- gettext-0.17/gettext-tools/gnulib-lib/mbuiter.h 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mbuiter.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Iterating through multibyte strings: macros for multi-byte encodings. - Copyright (C) 2001, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -77,13 +77,13 @@ Here are the function prototypes of the macros. - extern void mbui_init (mbui_iterator_t iter, const char *startptr); - extern bool mbui_avail (mbui_iterator_t iter); - extern void mbui_advance (mbui_iterator_t iter); - extern mbchar_t mbui_cur (mbui_iterator_t iter); - extern const char * mbui_cur_ptr (mbui_iterator_t iter); - extern void mbui_reloc (mbui_iterator_t iter, ptrdiff_t ptrdiff); - extern void mbui_copy (mbui_iterator_t *new, const mbui_iterator_t *old); + extern void mbui_init (mbui_iterator_t iter, const char *startptr); + extern bool mbui_avail (mbui_iterator_t iter); + extern void mbui_advance (mbui_iterator_t iter); + extern mbchar_t mbui_cur (mbui_iterator_t iter); + extern const char * mbui_cur_ptr (mbui_iterator_t iter); + extern void mbui_reloc (mbui_iterator_t iter, ptrdiff_t ptrdiff); + extern void mbui_copy (mbui_iterator_t *new, const mbui_iterator_t *old); */ #ifndef _MBUITER_H @@ -108,16 +108,16 @@ struct mbuiter_multi { - bool in_shift; /* true if next byte may not be interpreted as ASCII */ - mbstate_t state; /* if in_shift: current shift state */ - bool next_done; /* true if mbui_avail has already filled the following */ - struct mbchar cur; /* the current character: - const char *cur.ptr pointer to current character - The following are only valid after mbui_avail. - size_t cur.bytes number of bytes of current character - bool cur.wc_valid true if wc is a valid wide character - wchar_t cur.wc if wc_valid: the current character - */ + bool in_shift; /* true if next byte may not be interpreted as ASCII */ + mbstate_t state; /* if in_shift: current shift state */ + bool next_done; /* true if mbui_avail has already filled the following */ + struct mbchar cur; /* the current character: + const char *cur.ptr pointer to current character + The following are only valid after mbui_avail. + size_t cur.bytes number of bytes of current character + bool cur.wc_valid true if wc is a valid wide character + wchar_t cur.wc if wc_valid: the current character + */ }; static inline void @@ -131,8 +131,8 @@ if (is_basic (*iter->cur.ptr)) { /* These characters are part of the basic character set. ISO C 99 - guarantees that their wide character code is identical to their - char code. */ + guarantees that their wide character code is identical to their + char code. */ iter->cur.bytes = 1; iter->cur.wc = *iter->cur.ptr; iter->cur.wc_valid = true; @@ -143,40 +143,40 @@ iter->in_shift = true; with_shift: iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, - strnlen1 (iter->cur.ptr, MB_CUR_MAX), - &iter->state); + strnlen1 (iter->cur.ptr, MB_CUR_MAX), + &iter->state); if (iter->cur.bytes == (size_t) -1) - { - /* An invalid multibyte sequence was encountered. */ - iter->cur.bytes = 1; - iter->cur.wc_valid = false; - /* Whether to set iter->in_shift = false and reset iter->state - or not is not very important; the string is bogus anyway. */ - } + { + /* An invalid multibyte sequence was encountered. */ + iter->cur.bytes = 1; + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not very important; the string is bogus anyway. */ + } else if (iter->cur.bytes == (size_t) -2) - { - /* An incomplete multibyte character at the end. */ - iter->cur.bytes = strlen (iter->cur.ptr); - iter->cur.wc_valid = false; - /* Whether to set iter->in_shift = false and reset iter->state - or not is not important; the string end is reached anyway. */ - } + { + /* An incomplete multibyte character at the end. */ + iter->cur.bytes = strlen (iter->cur.ptr); + iter->cur.wc_valid = false; + /* Whether to set iter->in_shift = false and reset iter->state + or not is not important; the string end is reached anyway. */ + } else - { - if (iter->cur.bytes == 0) - { - /* A null wide character was encountered. */ - iter->cur.bytes = 1; - assert (*iter->cur.ptr == '\0'); - assert (iter->cur.wc == 0); - } - iter->cur.wc_valid = true; - - /* When in the initial state, we can go back treating ASCII - characters more quickly. */ - if (mbsinit (&iter->state)) - iter->in_shift = false; - } + { + if (iter->cur.bytes == 0) + { + /* A null wide character was encountered. */ + iter->cur.bytes = 1; + assert (*iter->cur.ptr == '\0'); + assert (iter->cur.wc == 0); + } + iter->cur.wc_valid = true; + + /* When in the initial state, we can go back treating ASCII + characters more quickly. */ + if (mbsinit (&iter->state)) + iter->in_shift = false; + } } iter->next_done = true; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/memchr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/memchr.c --- gettext-0.17/gettext-tools/gnulib-lib/memchr.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/memchr.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ -/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2006 Free - Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2010 + Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and @@ -45,155 +45,127 @@ # define BP_SYM(sym) sym #endif -#undef memchr #undef __memchr +#ifdef _LIBC +# undef memchr +#endif + +#ifndef weak_alias +# define __memchr memchr +#endif /* Search no more than N bytes of S for C. */ void * __memchr (void const *s, int c_in, size_t n) { + /* On 32-bit hardware, choosing longword to be a 32-bit unsigned + long instead of a 64-bit uintmax_t tends to give better + performance. On 64-bit hardware, unsigned long is generally 64 + bits already. Change this typedef to experiment with + performance. */ + typedef unsigned long int longword; + const unsigned char *char_ptr; - const unsigned long int *longword_ptr; - unsigned long int longword, magic_bits, charmask; + const longword *longword_ptr; + longword repeated_one; + longword repeated_c; unsigned reg_char c; - int i; c = (unsigned char) c_in; - /* Handle the first few characters by reading one character at a time. + /* Handle the first few bytes by reading one byte at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; - n > 0 && (size_t) char_ptr % sizeof longword != 0; + n > 0 && (size_t) char_ptr % sizeof (longword) != 0; --n, ++char_ptr) if (*char_ptr == c) return (void *) char_ptr; + longword_ptr = (const longword *) char_ptr; + /* All these elucidatory comments refer to 4-byte longwords, but the theory applies equally well to any size longwords. */ - longword_ptr = (const unsigned long int *) char_ptr; - - /* Bits 31, 24, 16, and 8 of this number are zero. Call these bits - the "holes." Note that there is a hole just to the left of - each byte, with an extra at the end: - - bits: 01111110 11111110 11111110 11111111 - bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD - - The 1-bits make sure that carries propagate to the next 0-bit. - The 0-bits provide holes for carries to fall into. */ - - /* Set MAGIC_BITS to be this pattern of 1 and 0 bits. - Set CHARMASK to be a longword, each of whose bytes is C. */ - - magic_bits = 0xfefefefe; - charmask = c | (c << 8); - charmask |= charmask << 16; -#if 0xffffffffU < ULONG_MAX - magic_bits |= magic_bits << 32; - charmask |= charmask << 32; - if (8 < sizeof longword) - for (i = 64; i < sizeof longword * 8; i *= 2) - { - magic_bits |= magic_bits << i; - charmask |= charmask << i; - } -#endif - magic_bits = (ULONG_MAX >> 1) & (magic_bits | 1); - - /* Instead of the traditional loop which tests each character, - we will test a longword at a time. The tricky part is testing - if *any of the four* bytes in the longword in question are zero. */ - while (n >= sizeof longword) + /* Compute auxiliary longword values: + repeated_one is a value which has a 1 in every byte. + repeated_c has c in every byte. */ + repeated_one = 0x01010101; + repeated_c = c | (c << 8); + repeated_c |= repeated_c << 16; + if (0xffffffffU < (longword) -1) { - /* We tentatively exit the loop if adding MAGIC_BITS to - LONGWORD fails to change any of the hole bits of LONGWORD. + repeated_one |= repeated_one << 31 << 1; + repeated_c |= repeated_c << 31 << 1; + if (8 < sizeof (longword)) + { + size_t i; + + for (i = 64; i < sizeof (longword) * 8; i *= 2) + { + repeated_one |= repeated_one << i; + repeated_c |= repeated_c << i; + } + } + } + + /* Instead of the traditional loop which tests each byte, we will test a + longword at a time. The tricky part is testing if *any of the four* + bytes in the longword in question are equal to c. We first use an xor + with repeated_c. This reduces the task to testing whether *any of the + four* bytes in longword1 is zero. + + We compute tmp = + ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). + That is, we perform the following operations: + 1. Subtract repeated_one. + 2. & ~longword1. + 3. & a mask consisting of 0x80 in every byte. + Consider what happens in each byte: + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, + and step 3 transforms it into 0x80. A carry can also be propagated + to more significant bytes. + - If a byte of longword1 is nonzero, let its lowest 1 bit be at + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, + the byte ends in a single bit of value 0 and k bits of value 1. + After step 2, the result is just k bits of value 1: 2^k - 1. After + step 3, the result is 0. And no carry is produced. + So, if longword1 has only non-zero bytes, tmp is zero. + Whereas if longword1 has a zero byte, call j the position of the least + significant zero byte. Then the result has a zero at positions 0, ..., + j-1 and a 0x80 at position j. We cannot predict the result at the more + significant bytes (positions j+1..3), but it does not matter since we + already have a non-zero bit at position 8*j+7. - 1) Is this safe? Will it catch all the zero bytes? - Suppose there is a byte with all zeros. Any carry bits - propagating from its left will fall into the hole at its - least significant bit and stop. Since there will be no - carry from its most significant bit, the LSB of the - byte to the left will be unchanged, and the zero will be - detected. - - 2) Is this worthwhile? Will it ignore everything except - zero bytes? Suppose every byte of LONGWORD has a bit set - somewhere. There will be a carry into bit 8. If bit 8 - is set, this will carry into bit 16. If bit 8 is clear, - one of bits 9-15 must be set, so there will be a carry - into bit 16. Similarly, there will be a carry into bit - 24. If one of bits 24-30 is set, there will be a carry - into bit 31, so all of the hole bits will be changed. - - The one misfire occurs when bits 24-30 are clear and bit - 31 is set; in this case, the hole at bit 31 is not - changed. If we had access to the processor carry flag, - we could close this loophole by putting the fourth hole - at bit 32! - - So it ignores everything except 128's, when they're aligned - properly. - - 3) But wait! Aren't we looking for C, not zero? - Good point. So what we do is XOR LONGWORD with a longword, - each of whose bytes is C. This turns each byte that is C - into a zero. */ - - longword = *longword_ptr++ ^ charmask; - - /* Add MAGIC_BITS to LONGWORD. */ - if ((((longword + magic_bits) - - /* Set those bits that were unchanged by the addition. */ - ^ ~longword) - - /* Look at only the hole bits. If any of the hole bits - are unchanged, most likely one of the bytes was a - zero. */ - & ~magic_bits) != 0) - { - /* Which of the bytes was C? If none of them were, it was - a misfire; continue the search. */ - - const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); - - if (cp[0] == c) - return (void *) cp; - if (cp[1] == c) - return (void *) &cp[1]; - if (cp[2] == c) - return (void *) &cp[2]; - if (cp[3] == c) - return (void *) &cp[3]; - if (4 < sizeof longword && cp[4] == c) - return (void *) &cp[4]; - if (5 < sizeof longword && cp[5] == c) - return (void *) &cp[5]; - if (6 < sizeof longword && cp[6] == c) - return (void *) &cp[6]; - if (7 < sizeof longword && cp[7] == c) - return (void *) &cp[7]; - if (8 < sizeof longword) - for (i = 8; i < sizeof longword; i++) - if (cp[i] == c) - return (void *) &cp[i]; - } + So, the test whether any byte in longword1 is zero is equivalent to + testing whether tmp is nonzero. */ - n -= sizeof longword; + while (n >= sizeof (longword)) + { + longword longword1 = *longword_ptr ^ repeated_c; + + if ((((longword1 - repeated_one) & ~longword1) + & (repeated_one << 7)) != 0) + break; + longword_ptr++; + n -= sizeof (longword); } char_ptr = (const unsigned char *) longword_ptr; - while (n-- > 0) + /* At this point, we know that either n < sizeof (longword), or one of the + sizeof (longword) bytes starting at char_ptr is == c. On little-endian + machines, we could determine the first such byte without any further + memory accesses, just by looking at the tmp result from the last loop + iteration. But this does not work on big-endian machines. Choose code + that works in both cases. */ + + for (; n > 0; --n, ++char_ptr) { if (*char_ptr == c) - return (void *) char_ptr; - else - ++char_ptr; + return (void *) char_ptr; } - return 0; + return NULL; } #ifdef weak_alias weak_alias (__memchr, BP_SYM (memchr)) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/memchr.valgrind gettext-0.18.1.1/gettext-tools/gnulib-lib/memchr.valgrind --- gettext-0.17/gettext-tools/gnulib-lib/memchr.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/memchr.valgrind 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,14 @@ +# Suppress a valgrind message about use of uninitialized memory in memchr(). +# POSIX states that when the character is found, memchr must not read extra +# bytes in an overestimated length (for example, where memchr is used to +# implement strnlen). However, we use a safe word read to provide a speedup. +{ + memchr-value4 + Memcheck:Value4 + fun:rpl_memchr +} +{ + memchr-value8 + Memcheck:Value8 + fun:rpl_memchr +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/memmove.c gettext-0.18.1.1/gettext-tools/gnulib-lib/memmove.c --- gettext-0.17/gettext-tools/gnulib-lib/memmove.c 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/memmove.c 2010-05-24 09:42:46.000000000 +0000 @@ -20,7 +20,7 @@ { /* Moving from hi mem to low mem; start at beginning. */ for (; length; --length) - *dest++ = *source++; + *dest++ = *source++; } return dest0; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/memset.c gettext-0.18.1.1/gettext-tools/gnulib-lib/memset.c --- gettext-0.17/gettext-tools/gnulib-lib/memset.c 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/memset.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,9 @@ /* memset.c -- set an area of memory to a given value - Copyright (C) 1991, 2003 Free Software Foundation, Inc. + Copyright (C) 1991, 2003, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/minmax.h gettext-0.18.1.1/gettext-tools/gnulib-lib/minmax.h --- gettext-0.17/gettext-tools/gnulib-lib/minmax.h 2007-01-27 03:22:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/minmax.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,10 @@ /* MIN, MAX macros. - Copyright (C) 1995, 1998, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 2001, 2003, 2005, 2009, 2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/mkdtemp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/mkdtemp.c --- gettext-0.17/gettext-tools/gnulib-lib/mkdtemp.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/mkdtemp.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2001-2003, 2006-2007 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2001-2003, 2006-2007, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -23,16 +24,16 @@ #include "tempname.h" -/* Generate a unique temporary directory from TEMPLATE. - The last six characters of TEMPLATE must be "XXXXXX"; +/* Generate a unique temporary directory from XTEMPLATE. + The last six characters of XTEMPLATE must be "XXXXXX"; they are replaced with a string that makes the filename unique. The directory is created, mode 700, and its name is returned. (This function comes from OpenBSD.) */ char * -mkdtemp (char *template) +mkdtemp (char *xtemplate) { - if (gen_tempname (template, GT_DIR)) + if (gen_tempname (xtemplate, 0, 0, GT_DIR)) return NULL; else - return template; + return xtemplate; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/moo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/moo.h --- gettext-0.17/gettext-tools/gnulib-lib/moo.h 2007-10-31 12:36:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/moo.h 2010-05-24 09:42:46.000000000 +0000 @@ -4,7 +4,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/obstack.c gettext-0.18.1.1/gettext-tools/gnulib-lib/obstack.c --- gettext-0.17/gettext-tools/gnulib-lib/obstack.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/obstack.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,7 +1,7 @@ /* obstack.c - subroutines used implicitly by object stack macros - Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ -#include /* Random thing to get __GNU_LIBRARY__. */ +#include /* Random thing to get __GNU_LIBRARY__. */ #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 # include # if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION @@ -141,9 +141,9 @@ int _obstack_begin (struct obstack *h, - int size, int alignment, - void *(*chunkfun) (long), - void (*freefun) (void *)) + int size, int alignment, + void *(*chunkfun) (long), + void (*freefun) (void *)) { register struct _obstack_chunk *chunk; /* points to new chunk */ @@ -153,16 +153,16 @@ /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. - Use the values for range checking, because if range checking is off, - the extra bytes won't be missed terribly, but if range checking is on - and we used a larger request, a whole extra 4096 bytes would be - allocated. + Use the values for range checking, because if range checking is off, + the extra bytes won't be missed terribly, but if range checking is on + and we used a larger request, a whole extra 4096 bytes would be + allocated. - These number are irrelevant to the new GNU malloc. I suspect it is - less sensitive to the size of the request. */ + These number are irrelevant to the new GNU malloc. I suspect it is + less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) - + 4 + DEFAULT_ROUNDING - 1) - & ~(DEFAULT_ROUNDING - 1)); + + 4 + DEFAULT_ROUNDING - 1) + & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } @@ -176,7 +176,7 @@ if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, - alignment - 1); + alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; @@ -188,9 +188,9 @@ int _obstack_begin_1 (struct obstack *h, int size, int alignment, - void *(*chunkfun) (void *, long), - void (*freefun) (void *, void *), - void *arg) + void *(*chunkfun) (void *, long), + void (*freefun) (void *, void *), + void *arg) { register struct _obstack_chunk *chunk; /* points to new chunk */ @@ -200,16 +200,16 @@ /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. - Use the values for range checking, because if range checking is off, - the extra bytes won't be missed terribly, but if range checking is on - and we used a larger request, a whole extra 4096 bytes would be - allocated. + Use the values for range checking, because if range checking is off, + the extra bytes won't be missed terribly, but if range checking is on + and we used a larger request, a whole extra 4096 bytes would be + allocated. - These number are irrelevant to the new GNU malloc. I suspect it is - less sensitive to the size of the request. */ + These number are irrelevant to the new GNU malloc. I suspect it is + less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) - + 4 + DEFAULT_ROUNDING - 1) - & ~(DEFAULT_ROUNDING - 1)); + + 4 + DEFAULT_ROUNDING - 1) + & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } @@ -224,7 +224,7 @@ if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, - alignment - 1); + alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; @@ -245,7 +245,7 @@ { register struct _obstack_chunk *old_chunk = h->chunk; register struct _obstack_chunk *new_chunk; - register long new_size; + register long new_size; register long obj_size = h->next_free - h->object_base; register long i; long already; @@ -274,12 +274,12 @@ if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT) { for (i = obj_size / sizeof (COPYING_UNIT) - 1; - i >= 0; i--) - ((COPYING_UNIT *)object_base)[i] - = ((COPYING_UNIT *)h->object_base)[i]; + i >= 0; i--) + ((COPYING_UNIT *)object_base)[i] + = ((COPYING_UNIT *)h->object_base)[i]; /* We used to copy the odd few remaining bytes as one extra COPYING_UNIT, - but that can cross a page boundary on a machine - which does not do strict alignment for COPYING_UNITS. */ + but that can cross a page boundary on a machine + which does not do strict alignment for COPYING_UNITS. */ already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT); } else @@ -293,8 +293,8 @@ But not if that chunk might contain an empty object. */ if (! h->maybe_empty_object && (h->object_base - == __PTR_ALIGN ((char *) old_chunk, old_chunk->contents, - h->alignment_mask))) + == __PTR_ALIGN ((char *) old_chunk, old_chunk->contents, + h->alignment_mask))) { new_chunk->prev = old_chunk->prev; CALL_FREEFUN (h, old_chunk); @@ -320,8 +320,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj) { - register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - register struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = (h)->chunk; /* We use >= rather than > since the object cannot be exactly at @@ -343,8 +343,8 @@ void __obstack_free (struct obstack *h, void *obj) { - register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - register struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = h->chunk; /* We use >= because there cannot be an object at the beginning of a chunk. @@ -356,7 +356,7 @@ CALL_FREEFUN (h, lp); lp = plp; /* If we switch chunks, we can't tell whether the new current - chunk contains an empty object, so assume that it may. */ + chunk contains an empty object, so assume that it may. */ h->maybe_empty_object = 1; } if (lp) @@ -427,4 +427,4 @@ exit (obstack_exit_failure); } -#endif /* !ELIDE_CODE */ +#endif /* !ELIDE_CODE */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/obstack.h gettext-0.18.1.1/gettext-tools/gnulib-lib/obstack.h --- gettext-0.17/gettext-tools/gnulib-lib/obstack.h 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/obstack.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* obstack.h - object stack macros - Copyright (C) 1988-1994,1996-1999,2003,2004,2005,2006 - Free Software Foundation, Inc. + Copyright (C) 1988-1994, 1996-1999, 2003-2006, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -85,17 +85,17 @@ break the ordinary 'growth' macro. Summary: - We allocate large chunks. - We carve out one object at a time from the current chunk. - Once carved, an object never moves. - We are free to append data of any size to the currently - growing object. - Exactly one object is growing in an obstack at any one time. - You can run one obstack per control block. - You may have as many control blocks as you dare. - Because of the way we do it, you can `unwind' an obstack - back to a previous state. (You may remove objects much - as you would with a stack.) + We allocate large chunks. + We carve out one object at a time from the current chunk. + Once carved, an object never moves. + We are free to append data of any size to the currently + growing object. + Exactly one object is growing in an obstack at any one time. + You can run one obstack per control block. + You may have as many control blocks as you dare. + Because of the way we do it, you can `unwind' an obstack + back to a previous state. (You may remove objects much + as you would with a stack.) */ @@ -103,10 +103,6 @@ #ifndef _OBSTACK_H #define _OBSTACK_H 1 - -#ifdef __cplusplus -extern "C" { -#endif /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the @@ -133,56 +129,60 @@ relative to B. Otherwise, use the faster strategy of computing the alignment relative to 0. */ -#define __PTR_ALIGN(B, P, A) \ +#define __PTR_ALIGN(B, P, A) \ __BPTR_ALIGN (sizeof (PTR_INT_TYPE) < sizeof (void *) ? (B) : (char *) 0, \ - P, A) + P, A) #include -struct _obstack_chunk /* Lives at front of each chunk. */ +#ifdef __cplusplus +extern "C" { +#endif + +struct _obstack_chunk /* Lives at front of each chunk. */ { - char *limit; /* 1 past end of this chunk */ - struct _obstack_chunk *prev; /* address of prior chunk or NULL */ - char contents[4]; /* objects begin here */ + char *limit; /* 1 past end of this chunk */ + struct _obstack_chunk *prev; /* address of prior chunk or NULL */ + char contents[4]; /* objects begin here */ }; -struct obstack /* control current object in current chunk */ +struct obstack /* control current object in current chunk */ { - long chunk_size; /* preferred size to allocate chunks in */ - struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ - char *object_base; /* address of object we are building */ - char *next_free; /* where to add next char to current object */ - char *chunk_limit; /* address of char after current chunk */ + long chunk_size; /* preferred size to allocate chunks in */ + struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ + char *object_base; /* address of object we are building */ + char *next_free; /* where to add next char to current object */ + char *chunk_limit; /* address of char after current chunk */ union { PTR_INT_TYPE tempint; void *tempptr; - } temp; /* Temporary for some macros. */ - int alignment_mask; /* Mask of alignment for each object. */ + } temp; /* Temporary for some macros. */ + int alignment_mask; /* Mask of alignment for each object. */ /* These prototypes vary based on `use_extra_arg', and we use casts to the prototypeless function type in all assignments, but having prototypes here quiets -Wstrict-prototypes. */ struct _obstack_chunk *(*chunkfun) (void *, long); void (*freefun) (void *, struct _obstack_chunk *); - void *extra_arg; /* first arg for chunk alloc/dealloc funcs */ - unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */ + void *extra_arg; /* first arg for chunk alloc/dealloc funcs */ + unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */ unsigned maybe_empty_object:1;/* There is a possibility that the current - chunk contains a zero-length object. This - prevents freeing the chunk if we allocate - a bigger chunk to replace it. */ - unsigned alloc_failed:1; /* No longer used, as we now call the failed - handler on error, but retained for binary - compatibility. */ + chunk contains a zero-length object. This + prevents freeing the chunk if we allocate + a bigger chunk to replace it. */ + unsigned alloc_failed:1; /* No longer used, as we now call the failed + handler on error, but retained for binary + compatibility. */ }; /* Declare the external functions we use; they are in obstack.c. */ extern void _obstack_newchunk (struct obstack *, int); extern int _obstack_begin (struct obstack *, int, int, - void *(*) (long), void (*) (void *)); + void *(*) (long), void (*) (void *)); extern int _obstack_begin_1 (struct obstack *, int, int, - void *(*) (void *, long), - void (*) (void *, void *), void *); + void *(*) (void *, long), + void (*) (void *, void *), void *); extern int _obstack_memory_used (struct obstack *); /* The default name of the function for freeing a chunk is 'obstack_free', @@ -214,32 +214,32 @@ /* Pointer to next byte not yet allocated in current chunk. */ -#define obstack_next_free(h) ((h)->next_free) +#define obstack_next_free(h) ((h)->next_free) /* Mask specifying low bits that should be clear in address of an object. */ #define obstack_alignment_mask(h) ((h)->alignment_mask) /* To prevent prototype warnings provide complete argument list. */ -#define obstack_init(h) \ - _obstack_begin ((h), 0, 0, \ - (void *(*) (long)) obstack_chunk_alloc, \ - (void (*) (void *)) obstack_chunk_free) - -#define obstack_begin(h, size) \ - _obstack_begin ((h), (size), 0, \ - (void *(*) (long)) obstack_chunk_alloc, \ - (void (*) (void *)) obstack_chunk_free) +#define obstack_init(h) \ + _obstack_begin ((h), 0, 0, \ + (void *(*) (long)) obstack_chunk_alloc, \ + (void (*) (void *)) obstack_chunk_free) + +#define obstack_begin(h, size) \ + _obstack_begin ((h), (size), 0, \ + (void *(*) (long)) obstack_chunk_alloc, \ + (void (*) (void *)) obstack_chunk_free) #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ - _obstack_begin ((h), (size), (alignment), \ - (void *(*) (long)) (chunkfun), \ - (void (*) (void *)) (freefun)) + _obstack_begin ((h), (size), (alignment), \ + (void *(*) (long)) (chunkfun), \ + (void (*) (void *)) (freefun)) #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ - _obstack_begin_1 ((h), (size), (alignment), \ - (void *(*) (void *, long)) (chunkfun), \ - (void (*) (void *, void *)) (freefun), (arg)) + _obstack_begin_1 ((h), (size), (alignment), \ + (void *(*) (void *, long)) (chunkfun), \ + (void (*) (void *, void *)) (freefun), (arg)) #define obstack_chunkfun(h, newchunkfun) \ ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun)) @@ -266,143 +266,143 @@ without using a global variable. Also, we can avoid using the `temp' slot, to make faster code. */ -# define obstack_object_size(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ +# define obstack_object_size(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->next_free - __o->object_base); }) -# define obstack_room(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ +# define obstack_room(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->chunk_limit - __o->next_free); }) -# define obstack_make_room(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->chunk_limit - __o->next_free < __len) \ - _obstack_newchunk (__o, __len); \ +# define obstack_make_room(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->chunk_limit - __o->next_free < __len) \ + _obstack_newchunk (__o, __len); \ (void) 0; }) -# define obstack_empty_p(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ - (__o->chunk->prev == 0 \ - && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \ - __o->chunk->contents, \ - __o->alignment_mask)); }) - -# define obstack_grow(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->next_free + __len > __o->chunk_limit) \ - _obstack_newchunk (__o, __len); \ - memcpy (__o->next_free, where, __len); \ - __o->next_free += __len; \ +# define obstack_empty_p(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ + (__o->chunk->prev == 0 \ + && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \ + __o->chunk->contents, \ + __o->alignment_mask)); }) + +# define obstack_grow(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->next_free + __len > __o->chunk_limit) \ + _obstack_newchunk (__o, __len); \ + memcpy (__o->next_free, where, __len); \ + __o->next_free += __len; \ (void) 0; }) -# define obstack_grow0(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->next_free + __len + 1 > __o->chunk_limit) \ - _obstack_newchunk (__o, __len + 1); \ - memcpy (__o->next_free, where, __len); \ - __o->next_free += __len; \ - *(__o->next_free)++ = 0; \ +# define obstack_grow0(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->next_free + __len + 1 > __o->chunk_limit) \ + _obstack_newchunk (__o, __len + 1); \ + memcpy (__o->next_free, where, __len); \ + __o->next_free += __len; \ + *(__o->next_free)++ = 0; \ (void) 0; }) -# define obstack_1grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + 1 > __o->chunk_limit) \ - _obstack_newchunk (__o, 1); \ - obstack_1grow_fast (__o, datum); \ +# define obstack_1grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + 1 > __o->chunk_limit) \ + _obstack_newchunk (__o, 1); \ + obstack_1grow_fast (__o, datum); \ (void) 0; }) /* These assume that the obstack alignment is good enough for pointers or ints, and that the data added so far to the current object shares that much alignment. */ -# define obstack_ptr_grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ - _obstack_newchunk (__o, sizeof (void *)); \ - obstack_ptr_grow_fast (__o, datum); }) \ - -# define obstack_int_grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + sizeof (int) > __o->chunk_limit) \ - _obstack_newchunk (__o, sizeof (int)); \ +# define obstack_ptr_grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (void *)); \ + obstack_ptr_grow_fast (__o, datum); }) \ + +# define obstack_int_grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (int) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (int)); \ obstack_int_grow_fast (__o, datum); }) -# define obstack_ptr_grow_fast(OBSTACK,aptr) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - *(const void **) __o1->next_free = (aptr); \ - __o1->next_free += sizeof (const void *); \ +# define obstack_ptr_grow_fast(OBSTACK,aptr) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + *(const void **) __o1->next_free = (aptr); \ + __o1->next_free += sizeof (const void *); \ (void) 0; }) -# define obstack_int_grow_fast(OBSTACK,aint) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - *(int *) __o1->next_free = (aint); \ - __o1->next_free += sizeof (int); \ +# define obstack_int_grow_fast(OBSTACK,aint) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + *(int *) __o1->next_free = (aint); \ + __o1->next_free += sizeof (int); \ (void) 0; }) -# define obstack_blank(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->chunk_limit - __o->next_free < __len) \ - _obstack_newchunk (__o, __len); \ - obstack_blank_fast (__o, __len); \ +# define obstack_blank(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->chunk_limit - __o->next_free < __len) \ + _obstack_newchunk (__o, __len); \ + obstack_blank_fast (__o, __len); \ (void) 0; }) -# define obstack_alloc(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_blank (__h, (length)); \ +# define obstack_alloc(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_blank (__h, (length)); \ obstack_finish (__h); }) -# define obstack_copy(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_grow (__h, (where), (length)); \ +# define obstack_copy(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_grow (__h, (where), (length)); \ obstack_finish (__h); }) -# define obstack_copy0(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_grow0 (__h, (where), (length)); \ +# define obstack_copy0(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_grow0 (__h, (where), (length)); \ obstack_finish (__h); }) /* The local variable is named __o1 to avoid a name conflict when obstack_blank is called. */ -# define obstack_finish(OBSTACK) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - void *__value = (void *) __o1->object_base; \ - if (__o1->next_free == __value) \ - __o1->maybe_empty_object = 1; \ - __o1->next_free \ - = __PTR_ALIGN (__o1->object_base, __o1->next_free, \ - __o1->alignment_mask); \ - if (__o1->next_free - (char *)__o1->chunk \ - > __o1->chunk_limit - (char *)__o1->chunk) \ - __o1->next_free = __o1->chunk_limit; \ - __o1->object_base = __o1->next_free; \ +# define obstack_finish(OBSTACK) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + void *__value = (void *) __o1->object_base; \ + if (__o1->next_free == __value) \ + __o1->maybe_empty_object = 1; \ + __o1->next_free \ + = __PTR_ALIGN (__o1->object_base, __o1->next_free, \ + __o1->alignment_mask); \ + if (__o1->next_free - (char *)__o1->chunk \ + > __o1->chunk_limit - (char *)__o1->chunk) \ + __o1->next_free = __o1->chunk_limit; \ + __o1->object_base = __o1->next_free; \ __value; }) -# define obstack_free(OBSTACK, OBJ) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - void *__obj = (OBJ); \ +# define obstack_free(OBSTACK, OBJ) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + void *__obj = (OBJ); \ if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \ - __o->next_free = __o->object_base = (char *)__obj; \ + __o->next_free = __o->object_base = (char *)__obj; \ else (__obstack_free) (__o, __obj); }) #else /* not __GNUC__ or not __STDC__ */ @@ -410,14 +410,14 @@ # define obstack_object_size(h) \ (unsigned) ((h)->next_free - (h)->object_base) -# define obstack_room(h) \ +# define obstack_room(h) \ (unsigned) ((h)->chunk_limit - (h)->next_free) # define obstack_empty_p(h) \ - ((h)->chunk->prev == 0 \ - && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \ - (h)->chunk->contents, \ - (h)->alignment_mask)) + ((h)->chunk->prev == 0 \ + && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \ + (h)->chunk->contents, \ + (h)->alignment_mask)) /* Note that the call to _obstack_newchunk is enclosed in (..., 0) so that we can avoid having void expressions @@ -425,88 +425,88 @@ Casting the third operand to void was tried before, but some compilers won't accept it. */ -# define obstack_make_room(h,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ +# define obstack_make_room(h,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0)) -# define obstack_grow(h,where,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ - memcpy ((h)->next_free, where, (h)->temp.tempint), \ +# define obstack_grow(h,where,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ + memcpy ((h)->next_free, where, (h)->temp.tempint), \ (h)->next_free += (h)->temp.tempint) -# define obstack_grow0(h,where,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \ - memcpy ((h)->next_free, where, (h)->temp.tempint), \ - (h)->next_free += (h)->temp.tempint, \ +# define obstack_grow0(h,where,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \ + memcpy ((h)->next_free, where, (h)->temp.tempint), \ + (h)->next_free += (h)->temp.tempint, \ *((h)->next_free)++ = 0) -# define obstack_1grow(h,datum) \ -( (((h)->next_free + 1 > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), 1), 0) : 0), \ +# define obstack_1grow(h,datum) \ +( (((h)->next_free + 1 > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), 1), 0) : 0), \ obstack_1grow_fast (h, datum)) -# define obstack_ptr_grow(h,datum) \ -( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ +# define obstack_ptr_grow(h,datum) \ +( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ obstack_ptr_grow_fast (h, datum)) -# define obstack_int_grow(h,datum) \ -( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ +# define obstack_int_grow(h,datum) \ +( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ obstack_int_grow_fast (h, datum)) -# define obstack_ptr_grow_fast(h,aptr) \ +# define obstack_ptr_grow_fast(h,aptr) \ (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) -# define obstack_int_grow_fast(h,aint) \ +# define obstack_int_grow_fast(h,aint) \ (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint)) -# define obstack_blank(h,length) \ -( (h)->temp.tempint = (length), \ - (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ +# define obstack_blank(h,length) \ +( (h)->temp.tempint = (length), \ + (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ obstack_blank_fast (h, (h)->temp.tempint)) -# define obstack_alloc(h,length) \ +# define obstack_alloc(h,length) \ (obstack_blank ((h), (length)), obstack_finish ((h))) -# define obstack_copy(h,where,length) \ +# define obstack_copy(h,where,length) \ (obstack_grow ((h), (where), (length)), obstack_finish ((h))) -# define obstack_copy0(h,where,length) \ +# define obstack_copy0(h,where,length) \ (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) -# define obstack_finish(h) \ -( ((h)->next_free == (h)->object_base \ - ? (((h)->maybe_empty_object = 1), 0) \ - : 0), \ - (h)->temp.tempptr = (h)->object_base, \ - (h)->next_free \ - = __PTR_ALIGN ((h)->object_base, (h)->next_free, \ - (h)->alignment_mask), \ - (((h)->next_free - (char *) (h)->chunk \ - > (h)->chunk_limit - (char *) (h)->chunk) \ - ? ((h)->next_free = (h)->chunk_limit) : 0), \ - (h)->object_base = (h)->next_free, \ +# define obstack_finish(h) \ +( ((h)->next_free == (h)->object_base \ + ? (((h)->maybe_empty_object = 1), 0) \ + : 0), \ + (h)->temp.tempptr = (h)->object_base, \ + (h)->next_free \ + = __PTR_ALIGN ((h)->object_base, (h)->next_free, \ + (h)->alignment_mask), \ + (((h)->next_free - (char *) (h)->chunk \ + > (h)->chunk_limit - (char *) (h)->chunk) \ + ? ((h)->next_free = (h)->chunk_limit) : 0), \ + (h)->object_base = (h)->next_free, \ (h)->temp.tempptr) -# define obstack_free(h,obj) \ -( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \ - ((((h)->temp.tempint > 0 \ - && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \ - ? (int) ((h)->next_free = (h)->object_base \ - = (h)->temp.tempint + (char *) (h)->chunk) \ +# define obstack_free(h,obj) \ +( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \ + ((((h)->temp.tempint > 0 \ + && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \ + ? (int) ((h)->next_free = (h)->object_base \ + = (h)->temp.tempint + (char *) (h)->chunk) \ : (((__obstack_free) ((h), (h)->temp.tempint + (char *) (h)->chunk), 0), 0))) #endif /* not __GNUC__ or not __STDC__ */ #ifdef __cplusplus -} /* C++ */ +} /* C++ */ #endif #endif /* obstack.h */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/open.c gettext-0.18.1.1/gettext-tools/gnulib-lib/open.c --- gettext-0.17/gettext-tools/gnulib-lib/open.c 2007-10-07 20:29:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/open.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Open a descriptor to a file. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,22 +18,37 @@ #include +/* Get the original definition of open. It might be defined as a macro. */ +#define __need_system_fcntl_h +#include +#undef __need_system_fcntl_h +#include + +static inline int +orig_open (const char *filename, int flags, mode_t mode) +{ + return open (filename, flags, mode); +} + /* Specification. */ #include -/* If the fchdir replacement is used, open() is defined in fchdir.c. */ -#ifndef FCHDIR_REPLACEMENT +#include +#include +#include +#include +#include +#include -# include -# include -# include -# include +#ifndef REPLACE_OPEN_DIRECTORY +# define REPLACE_OPEN_DIRECTORY 0 +#endif int open (const char *filename, int flags, ...) -# undef open { mode_t mode; + int fd; mode = 0; if (flags & O_CREAT) @@ -41,21 +56,111 @@ va_list arg; va_start (arg, flags); - /* If mode_t is narrower than int, use the promoted type (int), - not mode_t. Use sizeof to guess whether mode_t is narrower; - we don't know of any practical counterexamples. */ - mode = (sizeof (mode_t) < sizeof (int) - ? va_arg (arg, int) - : va_arg (arg, mode_t)); + /* We have to use PROMOTED_MODE_T instead of mode_t, otherwise GCC 4 + creates crashing code when 'mode_t' is smaller than 'int'. */ + mode = va_arg (arg, PROMOTED_MODE_T); va_end (arg); } -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; -# endif +#endif - return open (filename, flags, mode); -} +#if OPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR + is specified, then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file already exists as a directory, then + - if O_CREAT is specified, open() must fail because of the semantics + of O_CREAT, + - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX + says that it + fails with errno = EISDIR in this case. + If the named file does not exist or does not name a directory, then + - if O_CREAT is specified, open() must fail since open() cannot create + directories, + - if O_WRONLY or O_RDWR is specified, open() must fail because the + file does not contain a '.' directory. */ + if (flags & (O_CREAT | O_WRONLY | O_RDWR)) + { + size_t len = strlen (filename); + if (len > 0 && filename[len - 1] == '/') + { + errno = EISDIR; + return -1; + } + } #endif + + fd = orig_open (filename, flags, mode); + +#if REPLACE_FCHDIR + /* Implementing fchdir and fdopendir requires the ability to open a + directory file descriptor. If open doesn't support that (as on + mingw), we use a dummy file that behaves the same as directories + on Linux (ie. always reports EOF on attempts to read()), and + override fstat() in fchdir.c to hide the fact that we have a + dummy. */ + if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES + && (flags & O_ACCMODE) == O_RDONLY) + { + struct stat statbuf; + if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) + { + /* Maximum recursion depth of 1. */ + fd = open ("/dev/null", flags, mode); + if (0 <= fd) + fd = _gl_register_fd (fd, filename); + } + else + errno = EACCES; + } +#endif + +#if OPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and fd does not refer to a directory, + then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file without the slash is not a directory, open() must fail + with ENOTDIR. */ + if (fd >= 0) + { + /* We know len is positive, since open did not fail with ENOENT. */ + size_t len = strlen (filename); + if (filename[len - 1] == '/') + { + struct stat statbuf; + + if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) + { + close (fd); + errno = ENOTDIR; + return -1; + } + } + } +#endif + +#if REPLACE_FCHDIR + if (!REPLACE_OPEN_DIRECTORY && 0 <= fd) + fd = _gl_register_fd (fd, filename); +#endif + + return fd; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/ostream.c 2007-10-07 20:55:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/ostream.c 2010-06-06 18:36:37.000000000 +0000 @@ -47,6 +47,7 @@ #endif #line 50 "ostream.c" +void ostream__write_mem (ostream_t first_arg, const void *data, size_t len); void ostream__write_mem (ostream_t first_arg, const void *data, size_t len) { @@ -57,6 +58,7 @@ #endif } +void ostream__flush (ostream_t first_arg); void ostream__flush (ostream_t first_arg) { @@ -67,6 +69,7 @@ #endif } +void ostream__free (ostream_t first_arg); void ostream__free (ostream_t first_arg) { diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pathmax.h gettext-0.18.1.1/gettext-tools/gnulib-lib/pathmax.h --- gettext-0.17/gettext-tools/gnulib-lib/pathmax.h 2007-01-27 03:22:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pathmax.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,10 @@ /* Define PATH_MAX somehow. Requires sys/types.h. - Copyright (C) 1992, 1999, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,9 +27,9 @@ # define _POSIX_PATH_MAX 256 # endif -# if !defined PATH_MAX && defined _PC_PATH_MAX +# if !defined PATH_MAX && defined _PC_PATH_MAX && defined HAVE_PATHCONF # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ - : pathconf ("/", _PC_PATH_MAX)) + : pathconf ("/", _PC_PATH_MAX)) # endif /* Don't include sys/param.h if it already has been. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe2.c gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2.c --- gettext-0.17/gettext-tools/gnulib-lib/pipe2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,141 @@ +/* Create a pipe, with specific opening flags. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#include + +#include +#include + +#include "binary-io.h" + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Native Woe32 API. */ + +# include + +#else +/* Unix API. */ + +# ifndef O_CLOEXEC +# define O_CLOEXEC 0 +# endif + +#endif + +int +pipe2 (int fd[2], int flags) +{ +#if HAVE_PIPE2 +# undef pipe2 + /* Try the system call first, if it exists. (We may be running with a glibc + that has the function but with an older kernel that lacks it.) */ + { + /* Cache the information whether the system call really exists. */ + static int have_pipe2_really; /* 0 = unknown, 1 = yes, -1 = no */ + if (have_pipe2_really >= 0) + { + int result = pipe2 (fd, flags); + if (!(result < 0 && errno == ENOSYS)) + { + have_pipe2_really = 1; + return result; + } + have_pipe2_really = -1; + } + } +#endif + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Native Woe32 API. */ + + /* Check the supported flags. */ + if ((flags & ~(O_CLOEXEC | O_BINARY | O_TEXT)) != 0) + { + errno = EINVAL; + return -1; + } + + return _pipe (fd, 4096, flags); + +#else +/* Unix API. */ + + /* Check the supported flags. */ + if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_TEXT | O_BINARY)) != 0) + { + errno = EINVAL; + return -1; + } + + if (pipe (fd) < 0) + return -1; + + /* POSIX + says that initially, the O_NONBLOCK and FD_CLOEXEC flags are cleared on + both fd[0] amd fd[1]. */ + + if (flags & O_NONBLOCK) + { + int fcntl_flags; + + if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 + || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 + || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 + || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) + goto fail; + } + + if (flags & O_CLOEXEC) + { + int fcntl_flags; + + if ((fcntl_flags = fcntl (fd[1], F_GETFD, 0)) < 0 + || fcntl (fd[1], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1 + || (fcntl_flags = fcntl (fd[0], F_GETFD, 0)) < 0 + || fcntl (fd[0], F_SETFD, fcntl_flags | FD_CLOEXEC) == -1) + goto fail; + } + +# if O_BINARY + if (flags & O_BINARY) + { + setmode (fd[1], O_BINARY); + setmode (fd[0], O_BINARY); + } + else if (flags & O_TEXT) + { + setmode (fd[1], O_TEXT); + setmode (fd[0], O_TEXT); + } +# endif + + return 0; + + fail: + { + int saved_errno = errno; + close (fd[0]); + close (fd[1]); + errno = saved_errno; + return -1; + } + +#endif +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe2-safer.c gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2-safer.c --- gettext-0.17/gettext-tools/gnulib-lib/pipe2-safer.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2-safer.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,52 @@ +/* Invoke pipe2, but avoid some glitches. + Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake. */ + +#include + +/* Specification. */ +#include "unistd-safer.h" + +#include +#include + +/* Like pipe2, but ensure that neither of the file descriptors is + STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO. */ + +int +pipe2_safer (int fd[2], int flags) +{ + /* This is a generalization of the pipe_safer implementation. */ + if (pipe2 (fd, flags) == 0) + { + int i; + for (i = 0; i < 2; i++) + { + fd[i] = fd_safer_flag (fd[i], flags); + if (fd[i] < 0) + { + int e = errno; + close (fd[1 - i]); + errno = e; + return -1; + } + } + + return 0; + } + return -1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe.c gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe.c --- gettext-0.17/gettext-tools/gnulib-lib/pipe.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Creation of subprocesses, communicating via pipes. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -29,12 +29,13 @@ #include "error.h" #include "fatal-signal.h" +#include "unistd-safer.h" #include "wait-process.h" #include "gettext.h" #define _(str) gettext (str) -#if defined _MSC_VER || defined __MINGW32__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Woe32 API. */ # include @@ -43,30 +44,10 @@ #else /* Unix API. */ -# if HAVE_POSIX_SPAWN -# include -# else -# if HAVE_VFORK_H -# include -# endif -# endif +# include #endif -#if ! HAVE_ENVIRON_DECL -extern char **environ; -#endif - -#ifndef STDIN_FILENO -# define STDIN_FILENO 0 -#endif -#ifndef STDOUT_FILENO -# define STDOUT_FILENO 1 -#endif -#ifndef STDERR_FILENO -# define STDERR_FILENO 2 -#endif - /* The results of open() in this file are not used with fchdir, therefore save some unnecessary work in fchdir.c. */ #undef open @@ -124,14 +105,14 @@ */ static pid_t create_pipe (const char *progname, - const char *prog_path, char **prog_argv, - bool pipe_stdin, bool pipe_stdout, - const char *prog_stdin, const char *prog_stdout, - bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[2]) + const char *prog_path, char **prog_argv, + bool pipe_stdin, bool pipe_stdout, + const char *prog_stdin, const char *prog_stdout, + bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[2]) { -#if defined _MSC_VER || defined __MINGW32__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Woe32 API. This uses _pipe(), dup2(), and spawnv(). It could also be implemented @@ -147,14 +128,16 @@ int nulloutfd; int stdinfd; int stdoutfd; + int saved_errno; + /* FIXME: Need to free memory allocated by prepare_spawn. */ prog_argv = prepare_spawn (prog_argv); if (pipe_stdout) - if (_pipe (ifd, 4096, O_BINARY | O_NOINHERIT) < 0) + if (pipe2_safer (ifd, O_BINARY | O_CLOEXEC) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); if (pipe_stdin) - if (_pipe (ofd, 4096, O_BINARY | O_NOINHERIT) < 0) + if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); /* Data flow diagram: * @@ -167,11 +150,11 @@ /* Save standard file handles of parent process. */ if (pipe_stdin || prog_stdin != NULL) - orig_stdin = dup_noinherit (STDIN_FILENO); + orig_stdin = dup_safer_noinherit (STDIN_FILENO); if (pipe_stdout || prog_stdout != NULL) - orig_stdout = dup_noinherit (STDOUT_FILENO); + orig_stdout = dup_safer_noinherit (STDOUT_FILENO); if (null_stderr) - orig_stderr = dup_noinherit (STDERR_FILENO); + orig_stderr = dup_safer_noinherit (STDERR_FILENO); child = -1; /* Create standard file handles of child process. */ @@ -181,28 +164,48 @@ if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) && (!null_stderr - || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0 - && (nulloutfd == STDERR_FILENO - || (dup2 (nulloutfd, STDERR_FILENO) >= 0 - && close (nulloutfd) >= 0)))) + || ((nulloutfd = open ("NUL", O_RDWR, 0)) >= 0 + && (nulloutfd == STDERR_FILENO + || (dup2 (nulloutfd, STDERR_FILENO) >= 0 + && close (nulloutfd) >= 0)))) && (pipe_stdin - || prog_stdin == NULL - || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 - && (stdinfd == STDIN_FILENO - || (dup2 (stdinfd, STDIN_FILENO) >= 0 - && close (stdinfd) >= 0)))) + || prog_stdin == NULL + || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 + && (stdinfd == STDIN_FILENO + || (dup2 (stdinfd, STDIN_FILENO) >= 0 + && close (stdinfd) >= 0)))) && (pipe_stdout - || prog_stdout == NULL - || ((stdoutfd = open (prog_stdout, O_WRONLY, 0)) >= 0 - && (stdoutfd == STDOUT_FILENO - || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 - && close (stdoutfd) >= 0))))) + || prog_stdout == NULL + || ((stdoutfd = open (prog_stdout, O_WRONLY, 0)) >= 0 + && (stdoutfd == STDOUT_FILENO + || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 + && close (stdoutfd) >= 0))))) /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1], but it inherits all open()ed or dup2()ed file handles (which is what - we want in the case of STD*_FILENO) and also orig_stdin, - orig_stdout, orig_stderr (which is not explicitly wanted but - harmless). */ - child = spawnvp (P_NOWAIT, prog_path, prog_argv); + we want in the case of STD*_FILENO). */ + /* Use spawnvpe and pass the environment explicitly. This is needed if + the program has modified the environment using putenv() or [un]setenv(). + On Windows, programs have two environments, one in the "environment + block" of the process and managed through SetEnvironmentVariable(), and + one inside the process, in the location retrieved by the 'environ' + macro. When using spawnvp() without 'e', the child process inherits a + copy of the environment block - ignoring the effects of putenv() and + [un]setenv(). */ + { + child = spawnvpe (P_NOWAIT, prog_path, (const char **) prog_argv, + (const char **) environ); + if (child < 0 && errno == ENOEXEC) + { + /* prog is not an native executable. Try to execute it as a + shell script. Note that prepare_spawn() has already prepended + a hidden element "sh.exe" to prog_argv. */ + --prog_argv; + child = spawnvpe (P_NOWAIT, prog_argv[0], (const char **) prog_argv, + (const char **) environ); + } + } + if (child == -1) + saved_errno = errno; if (stdinfd >= 0) close (stdinfd); if (stdoutfd >= 0) @@ -212,11 +215,11 @@ /* Restore standard file handles of parent process. */ if (null_stderr) - dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr); + undup_safer_noinherit (orig_stderr, STDERR_FILENO); if (pipe_stdout || prog_stdout != NULL) - dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout); + undup_safer_noinherit (orig_stdout, STDOUT_FILENO); if (pipe_stdin || prog_stdin != NULL) - dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin); + undup_safer_noinherit (orig_stdin, STDIN_FILENO); if (pipe_stdin) close (ofd[0]); @@ -225,12 +228,13 @@ if (child == -1) { if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess failed"), progname); + error (exit_on_error ? EXIT_FAILURE : 0, saved_errno, + _("%s subprocess failed"), progname); if (pipe_stdout) - close (ifd[0]); + close (ifd[0]); if (pipe_stdin) - close (ofd[1]); + close (ofd[1]); + errno = saved_errno; return -1; } @@ -245,7 +249,6 @@ /* Unix API. */ int ifd[2]; int ofd[2]; -# if HAVE_POSIX_SPAWN sigset_t blocked_signals; posix_spawn_file_actions_t actions; bool actions_allocated; @@ -253,15 +256,12 @@ bool attrs_allocated; int err; pid_t child; -# else - int child; -# endif if (pipe_stdout) - if (pipe (ifd) < 0) + if (pipe_safer (ifd) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); if (pipe_stdin) - if (pipe (ofd) < 0) + if (pipe_safer (ofd) < 0) error (EXIT_FAILURE, errno, _("cannot create pipe")); /* Data flow diagram: * @@ -272,7 +272,6 @@ * */ -# if HAVE_POSIX_SPAWN if (slave_process) { sigprocmask (SIG_SETMASK, NULL, &blocked_signals); @@ -282,142 +281,85 @@ attrs_allocated = false; if ((err = posix_spawn_file_actions_init (&actions)) != 0 || (actions_allocated = true, - (pipe_stdin - && (err = posix_spawn_file_actions_adddup2 (&actions, - ofd[0], STDIN_FILENO)) - != 0) - || (pipe_stdout - && (err = posix_spawn_file_actions_adddup2 (&actions, - ifd[1], STDOUT_FILENO)) - != 0) - || (pipe_stdin - && (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) - != 0) - || (pipe_stdout - && (err = posix_spawn_file_actions_addclose (&actions, ifd[1])) - != 0) - || (pipe_stdin - && (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) - != 0) - || (pipe_stdout - && (err = posix_spawn_file_actions_addclose (&actions, ifd[0])) - != 0) - || (null_stderr - && (err = posix_spawn_file_actions_addopen (&actions, - STDERR_FILENO, - "/dev/null", O_RDWR, - 0)) - != 0) - || (!pipe_stdin - && prog_stdin != NULL - && (err = posix_spawn_file_actions_addopen (&actions, - STDIN_FILENO, - prog_stdin, O_RDONLY, - 0)) - != 0) - || (!pipe_stdout - && prog_stdout != NULL - && (err = posix_spawn_file_actions_addopen (&actions, - STDOUT_FILENO, - prog_stdout, O_WRONLY, - 0)) - != 0) - || (slave_process - && ((err = posix_spawnattr_init (&attrs)) != 0 - || (attrs_allocated = true, - (err = posix_spawnattr_setsigmask (&attrs, - &blocked_signals)) - != 0 - || (err = posix_spawnattr_setflags (&attrs, - POSIX_SPAWN_SETSIGMASK)) - != 0))) - || (err = posix_spawnp (&child, prog_path, &actions, - attrs_allocated ? &attrs : NULL, prog_argv, - environ)) - != 0)) + (pipe_stdin + && (err = posix_spawn_file_actions_adddup2 (&actions, + ofd[0], STDIN_FILENO)) + != 0) + || (pipe_stdout + && (err = posix_spawn_file_actions_adddup2 (&actions, + ifd[1], STDOUT_FILENO)) + != 0) + || (pipe_stdin + && (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) + != 0) + || (pipe_stdout + && (err = posix_spawn_file_actions_addclose (&actions, ifd[1])) + != 0) + || (pipe_stdin + && (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) + != 0) + || (pipe_stdout + && (err = posix_spawn_file_actions_addclose (&actions, ifd[0])) + != 0) + || (null_stderr + && (err = posix_spawn_file_actions_addopen (&actions, + STDERR_FILENO, + "/dev/null", O_RDWR, + 0)) + != 0) + || (!pipe_stdin + && prog_stdin != NULL + && (err = posix_spawn_file_actions_addopen (&actions, + STDIN_FILENO, + prog_stdin, O_RDONLY, + 0)) + != 0) + || (!pipe_stdout + && prog_stdout != NULL + && (err = posix_spawn_file_actions_addopen (&actions, + STDOUT_FILENO, + prog_stdout, O_WRONLY, + 0)) + != 0) + || (slave_process + && ((err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, + &blocked_signals)) + != 0 + || (err = posix_spawnattr_setflags (&attrs, + POSIX_SPAWN_SETSIGMASK)) + != 0))) + || (err = posix_spawnp (&child, prog_path, &actions, + attrs_allocated ? &attrs : NULL, prog_argv, + environ)) + != 0)) { if (actions_allocated) - posix_spawn_file_actions_destroy (&actions); + posix_spawn_file_actions_destroy (&actions); if (attrs_allocated) - posix_spawnattr_destroy (&attrs); + posix_spawnattr_destroy (&attrs); if (slave_process) - unblock_fatal_signals (); + unblock_fatal_signals (); if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, err, - _("%s subprocess failed"), progname); + error (exit_on_error ? EXIT_FAILURE : 0, err, + _("%s subprocess failed"), progname); if (pipe_stdout) - { - close (ifd[0]); - close (ifd[1]); - } + { + close (ifd[0]); + close (ifd[1]); + } if (pipe_stdin) - { - close (ofd[0]); - close (ofd[1]); - } + { + close (ofd[0]); + close (ofd[1]); + } + errno = err; return -1; } posix_spawn_file_actions_destroy (&actions); if (attrs_allocated) posix_spawnattr_destroy (&attrs); -# else - if (slave_process) - block_fatal_signals (); - /* Use vfork() instead of fork() for efficiency. */ - if ((child = vfork ()) == 0) - { - /* Child process code. */ - int nulloutfd; - int stdinfd; - int stdoutfd; - - if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) - && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) - && (!pipe_stdin || close (ofd[0]) >= 0) - && (!pipe_stdout || close (ifd[1]) >= 0) - && (!pipe_stdin || close (ofd[1]) >= 0) - && (!pipe_stdout || close (ifd[0]) >= 0) - && (!null_stderr - || ((nulloutfd = open ("/dev/null", O_RDWR, 0)) >= 0 - && (nulloutfd == STDERR_FILENO - || (dup2 (nulloutfd, STDERR_FILENO) >= 0 - && close (nulloutfd) >= 0)))) - && (pipe_stdin - || prog_stdin == NULL - || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 - && (stdinfd == STDIN_FILENO - || (dup2 (stdinfd, STDIN_FILENO) >= 0 - && close (stdinfd) >= 0)))) - && (pipe_stdout - || prog_stdout == NULL - || ((stdoutfd = open (prog_stdout, O_WRONLY, 0)) >= 0 - && (stdoutfd == STDOUT_FILENO - || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 - && close (stdoutfd) >= 0)))) - && (!slave_process || (unblock_fatal_signals (), true))) - execvp (prog_path, prog_argv); - _exit (127); - } - if (child == -1) - { - if (slave_process) - unblock_fatal_signals (); - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess failed"), progname); - if (pipe_stdout) - { - close (ifd[0]); - close (ifd[1]); - } - if (pipe_stdin) - { - close (ofd[0]); - close (ofd[1]); - } - return -1; - } -# endif if (slave_process) { register_slave_subprocess (child); @@ -447,15 +389,15 @@ */ pid_t create_pipe_bidi (const char *progname, - const char *prog_path, char **prog_argv, - bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[2]) + const char *prog_path, char **prog_argv, + bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[2]) { pid_t result = create_pipe (progname, prog_path, prog_argv, - true, true, NULL, NULL, - null_stderr, slave_process, exit_on_error, - fd); + true, true, NULL, NULL, + null_stderr, slave_process, exit_on_error, + fd); return result; } @@ -468,16 +410,16 @@ */ pid_t create_pipe_in (const char *progname, - const char *prog_path, char **prog_argv, - const char *prog_stdin, bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[1]) + const char *prog_path, char **prog_argv, + const char *prog_stdin, bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[1]) { int iofd[2]; pid_t result = create_pipe (progname, prog_path, prog_argv, - false, true, prog_stdin, NULL, - null_stderr, slave_process, exit_on_error, - iofd); + false, true, prog_stdin, NULL, + null_stderr, slave_process, exit_on_error, + iofd); if (result != -1) fd[0] = iofd[0]; return result; @@ -492,16 +434,16 @@ */ pid_t create_pipe_out (const char *progname, - const char *prog_path, char **prog_argv, - const char *prog_stdout, bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[1]) + const char *prog_path, char **prog_argv, + const char *prog_stdout, bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[1]) { int iofd[2]; pid_t result = create_pipe (progname, prog_path, prog_argv, - true, false, NULL, prog_stdout, - null_stderr, slave_process, exit_on_error, - iofd); + true, false, NULL, prog_stdout, + null_stderr, slave_process, exit_on_error, + iofd); if (result != -1) fd[0] = iofd[1]; return result; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe-filter-aux.h gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter-aux.h --- gettext-0.17/gettext-tools/gnulib-lib/pipe-filter-aux.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter-aux.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,116 @@ +/* Auxiliary code for filtering of data through a subprocess. + Copyright (C) 2001-2003, 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + +#ifndef SSIZE_MAX +# define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) +#endif + +/* We use a child process, and communicate through a bidirectional pipe. + To avoid deadlocks, let the child process decide when it wants to read + or to write, and let the parent behave accordingly. The parent uses + select() to know whether it must write or read. On platforms without + select(), we use non-blocking I/O. (This means the parent is busy + looping while waiting for the child. Not good. But hardly any platform + lacks select() nowadays.) */ + +/* On BeOS select() works only on sockets, not on normal file descriptors. */ +#ifdef __BEOS__ +# undef HAVE_SELECT +#endif + +#ifdef EINTR + +/* EINTR handling for close(), read(), write(), select(). + These functions can return -1/EINTR even though we don't have any + signal handlers set up, namely when we get interrupted via SIGSTOP. */ + +static inline int +nonintr_close (int fd) +{ + int retval; + + do + retval = close (fd); + while (retval < 0 && errno == EINTR); + + return retval; +} +#undef close /* avoid warning related to gnulib module unistd */ +#define close nonintr_close + +static inline ssize_t +nonintr_read (int fd, void *buf, size_t count) +{ + ssize_t retval; + + do + retval = read (fd, buf, count); + while (retval < 0 && errno == EINTR); + + return retval; +} +#define read nonintr_read + +static inline ssize_t +nonintr_write (int fd, const void *buf, size_t count) +{ + ssize_t retval; + + do + retval = write (fd, buf, count); + while (retval < 0 && errno == EINTR); + + return retval; +} +#undef write /* avoid warning on VMS */ +#define write nonintr_write + +# if HAVE_SELECT + +static inline int +nonintr_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, + struct timeval *timeout) +{ + int retval; + + do + retval = select (n, readfds, writefds, exceptfds, timeout); + while (retval < 0 && errno == EINTR); + + return retval; +} +# undef select /* avoid warning on VMS */ +# define select nonintr_select + +# endif + +#endif + +/* Non-blocking I/O. */ +#ifndef O_NONBLOCK +# define O_NONBLOCK O_NDELAY +#endif +#if HAVE_SELECT +# define IS_EAGAIN(errcode) 0 +#else +# ifdef EWOULDBLOCK +# define IS_EAGAIN(errcode) ((errcode) == EAGAIN || (errcode) == EWOULDBLOCK) +# else +# define IS_EAGAIN(errcode) ((errcode) == EAGAIN) +# endif +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe-filter.h gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter.h --- gettext-0.17/gettext-tools/gnulib-lib/pipe-filter.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,237 @@ +/* Filtering of data through a subprocess. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009, + and Paolo Bonzini , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _PIPE_FILTER_H +#define _PIPE_FILTER_H + +#include +#include + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Piping data through a subprocess in the naïve way - write data to the + subprocess and read from the subprocess when you expect it to have + produced results - is subject to two kinds of deadlocks: + 1) If you write more than PIPE_MAX bytes or, more generally, if you write + more bytes than the subprocess can handle at once, the subprocess + may write its data and wait on you to read it, but you are currently + busy writing. + 2) When you don't know ahead of time how many bytes the subprocess + will produce, the usual technique of calling read (fd, buf, BUFSIZ) + with a fixed BUFSIZ will, on Linux 2.2.17 and on BSD systems, cause + the read() call to block until *all* of the buffer has been filled. + But the subprocess cannot produce more data until you gave it more + input. But you are currently busy reading from it. + + This header file declares four set of functions that pipes data through + the subprocess, without risking these deadlocks. + + The side that writes data to the subprocess can be seen as a "generator", + that is, as a subroutine that produces and writes a piece of data here and + there, see . + But often, it can be written in the form of an "iterator", that is, as a + function that, each time it is invoked, produces and writes one more piece + of data. + + Similarly, the side that reads data from the subprocess can be seen as + a "generator", that is, as a subroutine that consumes a piece of data here + and there. Often, it can be written in the form of an "iterator", that + is, as a function that, each time it is invoked, consumes one more piece + of data. + + This header file declares four set of functions: + + | writer | reader | + ----------------+------------+------------+ + pipe_filter_ii | iterator | iterator | + pipe_filter_ig | iterator | generator | + pipe_filter_gi | generator | iterator | + pipe_filter_gg | generator | generator | + ----------------+------------+------------+ + + The last one uses threads in order to implement two generators running at + the same time. (For the relation between generators, coroutines, and + threads, see + and .) It is therefore only + portable to platforms with kernel-based POSIX threads. */ + +/* These two functions together describe the side that writes data to the + subprocess when it has the form of an iterator. + - prepare_write (&num_bytes, p) must either return a pointer to data that + is ready to be written and set num_bytes to the number of bytes ready to + be written, or return NULL when no more bytes are to be written. + - done_write (data_written, num_bytes_written) is called after + num_bytes_written bytes were written. It is guaranteed that + num_bytes_written > 0. + Here p is always the private_data argument passed to the main function. */ +typedef const void * (*prepare_write_fn) (size_t *num_bytes_p, + void *private_data); +typedef void (*done_write_fn) (void *data_written, size_t num_bytes_written, + void *private_data); + +/* These two functions together describe the side that reads data from the + subprocess when it has the form of an iterator. + - prepare_read (&num_bytes, p) must return a pointer to a buffer for data + that can be read and set num_bytes to the size of that buffer + (must be > 0). + - done_read (data_read, num_bytes_read, p) is called after num_bytes_read + bytes were read into the buffer. + Here p is always the private_data argument passed to the main function. */ +typedef void * (*prepare_read_fn) (size_t *num_bytes_p, + void *private_data); +typedef void (*done_read_fn) (void *data_read, size_t num_bytes_read, + void *private_data); + + +/* ============================ pipe_filter_ii ============================ */ + +/* Create a subprocess and pipe some data through it. + Arguments: + - progname is the program name used in error messages. + - prog_path is the file name of the program to invoke. + - prog_argv is a NULL terminated argument list, starting with prog_path as + first element. + - If null_stderr is true, the subprocess' stderr will be redirected to + /dev/null, and the usual error message to stderr will be omitted. + This is suitable when the subprocess does not fulfill an important task. + - If exit_on_error is true, any error will cause the main process to exit + with an error status. + If the subprocess does not terminate correctly, exit if exit_on_error is + true, otherwise return 127. + Callback arguments are as described above. + + Data is alternatingly written to the subprocess, through the functions + prepare_write and done_write, and read from the subprocess, through the + functions prepare_read and done_read. + + Note that the prepare_write/done_write functions and the + prepare_read/done_read functions may be called in different threads than + the current thread (depending on the platform). But they will not be + called after the pipe_filter_ii_execute function has returned. + + Return 0 upon success, or (only if exit_on_error is false): + - -1 with errno set upon failure, + - the positive exit code of the subprocess if that failed. */ +extern int + pipe_filter_ii_execute (const char *progname, + const char *prog_path, const char **prog_argv, + bool null_stderr, bool exit_on_error, + prepare_write_fn prepare_write, + done_write_fn done_write, + prepare_read_fn prepare_read, + done_read_fn done_read, + void *private_data); + + +/* ============================ pipe_filter_ig ============================ */ + +struct pipe_filter_ig; + + +/* ============================ pipe_filter_gi ============================ */ + +struct pipe_filter_gi; + +/* Create a subprocess and pipe some data through it. + Arguments: + - progname is the program name used in error messages. + - prog_path is the file name of the program to invoke. + - prog_argv is a NULL terminated argument list, starting with + prog_path as first element. + - If null_stderr is true, the subprocess' stderr will be redirected + to /dev/null, and the usual error message to stderr will be + omitted. This is suitable when the subprocess does not fulfill an + important task. + - If exit_on_error is true, any error will cause the main process to + exit with an error status. + If the subprocess does not start correctly, exit if exit_on_error is + true, otherwise return NULL and set errno. + + The caller will write to the subprocess through pipe_filter_gi_write + and finally call pipe_filter_gi_write. During such calls, the + prepare_read and done_read function may be called to process any data + that the subprocess has written. + + Note that the prepare_read/done_read functions may be called in a + different thread than the current thread (depending on the platform). + But they will not be called after the pipe_filter_gi_close function has + returned. + + Return the freshly created 'struct pipe_filter_gi'. */ +extern struct pipe_filter_gi * + pipe_filter_gi_create (const char *progname, + const char *prog_path, const char **prog_argv, + bool null_stderr, bool exit_on_error, + prepare_read_fn prepare_read, + done_read_fn done_read, + void *private_data); + +/* Write size bytes starting at buf into the pipe and in the meanwhile + possibly call the prepare_read and done_read functions specified to + pipe_filter_gi_create. + + Note that the prepare_read/done_read functions may be called in a + different thread than the current thread (depending on the platform). + However, they will always be called before pipe_filter_gi_write has + returned, or otherwise not sooner than the next call to + pipe_filter_gi_write or pipe_filter_gi_close. + + Return only after all the entire buffer has been written to the pipe or + the subprocess has exited. + + Return 0 upon success, or (only if exit_on_error is false): + - -1 with errno set upon failure, + - the positive exit code of the subprocess if that failed. */ +extern int + pipe_filter_gi_write (struct pipe_filter_gi *filter, + const void *buf, size_t size); + +/* Finish reading the output via the prepare_read/done_read functions + specified to pipe_filter_gi_create. + + Note that the prepare_read/done_read functions may be called in a + different thread than the current thread (depending on the platform). + However, they will always be called before pipe_filter_gi_close has + returned. + + The write side of the pipe is closed as soon as pipe_filter_gi_close + starts, while the read side will be closed just before it finishes. + + Return 0 upon success, or (only if exit_on_error is false): + - -1 with errno set upon failure, + - the positive exit code of the subprocess if that failed. */ +extern int + pipe_filter_gi_close (struct pipe_filter_gi *filter); + + +/* ============================ pipe_filter_gg ============================ */ + + +/* ======================================================================== */ + + +#ifdef __cplusplus +} +#endif + + +#endif /* _PIPE_FILTER_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe-filter-ii.c gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter-ii.c --- gettext-0.17/gettext-tools/gnulib-lib/pipe-filter-ii.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-filter-ii.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,446 @@ +/* Filtering of data through a subprocess. + Copyright (C) 2001-2003, 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include "pipe-filter.h" + +#include +#include +#include +#include +#include +#include +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +#else +# include +# include +#endif + +#include "error.h" +#include "pipe.h" +#include "wait-process.h" +#include "gettext.h" + +#define _(str) gettext (str) + +#include "pipe-filter-aux.h" + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +struct locals +{ + /* Arguments passed to pipe_filter_ii_execute. */ + prepare_write_fn prepare_write; + done_write_fn done_write; + prepare_read_fn prepare_read; + done_read_fn done_read; + + /* Management of the subprocess. */ + void *private_data; + int fd[2]; + + /* Status of the writer part. */ + volatile bool writer_terminated; + volatile int writer_errno; + /* Status of the reader part. */ + volatile bool reader_terminated; + volatile int reader_errno; +}; + +static unsigned int WINAPI +writer_thread_func (void *thread_arg) +{ + struct locals *l = (struct locals *) thread_arg; + + for (;;) + { + size_t bufsize; + const void *buf = l->prepare_write (&bufsize, l->private_data); + if (buf != NULL) + { + ssize_t nwritten = + write (l->fd[1], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); + if (nwritten < 0) + { + /* Don't assume that the gnulib modules 'write' and 'sigpipe' are + used. */ + if (GetLastError () == ERROR_NO_DATA) + errno = EPIPE; + l->writer_errno = errno; + break; + } + else if (nwritten > 0) + l->done_write ((void *) buf, nwritten, l->private_data); + } + else + break; + } + + l->writer_terminated = true; + _endthreadex (0); /* calls ExitThread (0) */ + abort (); +} + +static unsigned int WINAPI +reader_thread_func (void *thread_arg) +{ + struct locals *l = (struct locals *) thread_arg; + + for (;;) + { + size_t bufsize; + void *buf = l->prepare_read (&bufsize, l->private_data); + if (!(buf != NULL && bufsize > 0)) + /* prepare_read returned wrong values. */ + abort (); + { + ssize_t nread = + read (l->fd[0], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); + if (nread < 0) + { + l->reader_errno = errno; + break; + } + else if (nread > 0) + l->done_read (buf, nread, l->private_data); + else /* nread == 0 */ + break; + } + } + + l->reader_terminated = true; + _endthreadex (0); /* calls ExitThread (0) */ + abort (); +} + +#endif + +int +pipe_filter_ii_execute (const char *progname, + const char *prog_path, const char **prog_argv, + bool null_stderr, bool exit_on_error, + prepare_write_fn prepare_write, + done_write_fn done_write, + prepare_read_fn prepare_read, + done_read_fn done_read, + void *private_data) +{ + pid_t child; + int fd[2]; +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) + struct sigaction orig_sigpipe_action; +#endif + + /* Open a bidirectional pipe to a subprocess. */ + child = create_pipe_bidi (progname, prog_path, (char **) prog_argv, + null_stderr, true, exit_on_error, + fd); + if (child == -1) + return -1; + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* Native Woe32 API. */ + /* Pipes have a non-blocking mode, see function SetNamedPipeHandleState and + the article "Named Pipe Type, Read, and Wait Modes", but Microsoft's + documentation discourages its use. So don't use it. + Asynchronous I/O is also not suitable because it notifies the caller only + about completion of the I/O request, not about intermediate progress. + So do the writing and the reading in separate threads. */ + { + struct locals l; + HANDLE handles[2]; + #define writer_thread_handle handles[0] + #define reader_thread_handle handles[1] + bool writer_cleaned_up; + bool reader_cleaned_up; + + l.prepare_write = prepare_write; + l.done_write = done_write; + l.prepare_read = prepare_read; + l.done_read = done_read; + l.private_data = private_data; + l.fd[0] = fd[0]; + l.fd[1] = fd[1]; + l.writer_terminated = false; + l.writer_errno = 0; + l.reader_terminated = false; + l.reader_errno = 0; + + writer_thread_handle = + (HANDLE) _beginthreadex (NULL, 100000, writer_thread_func, &l, 0, NULL); + reader_thread_handle = + (HANDLE) _beginthreadex (NULL, 100000, reader_thread_func, &l, 0, NULL); + if (writer_thread_handle == NULL || reader_thread_handle == NULL) + { + if (exit_on_error) + error (EXIT_FAILURE, 0, _("creation of threads failed")); + if (reader_thread_handle != NULL) + CloseHandle (reader_thread_handle); + if (writer_thread_handle != NULL) + CloseHandle (writer_thread_handle); + goto fail; + } + writer_cleaned_up = false; + reader_cleaned_up = false; + for (;;) + { + DWORD ret; + + /* Here !(writer_cleaned_up && reader_cleaned_up). */ + if (writer_cleaned_up) + ret = WaitForSingleObject (reader_thread_handle, INFINITE); + else if (reader_cleaned_up) + ret = WaitForSingleObject (writer_thread_handle, INFINITE); + else + ret = WaitForMultipleObjects (2, handles, FALSE, INFINITE); + if (!(ret == WAIT_OBJECT_0 + 0 || ret == WAIT_OBJECT_0 + 1)) + abort (); + + if (l.writer_terminated) + { + /* The writer thread has just terminated. */ + l.writer_terminated = false; + CloseHandle (writer_thread_handle); + if (l.writer_errno) + { + if (exit_on_error) + error (EXIT_FAILURE, l.writer_errno, + _("write to %s subprocess failed"), progname); + if (!reader_cleaned_up) + { + TerminateThread (reader_thread_handle, 1); + CloseHandle (reader_thread_handle); + } + goto fail; + } + /* Tell the child there is nothing more the parent will send. */ + close (fd[1]); + writer_cleaned_up = true; + } + if (l.reader_terminated) + { + /* The reader thread has just terminated. */ + l.reader_terminated = false; + CloseHandle (reader_thread_handle); + if (l.reader_errno) + { + if (exit_on_error) + error (EXIT_FAILURE, l.reader_errno, + _("read from %s subprocess failed"), progname); + if (!writer_cleaned_up) + { + TerminateThread (writer_thread_handle, 1); + CloseHandle (writer_thread_handle); + } + goto fail; + } + reader_cleaned_up = true; + } + if (writer_cleaned_up && reader_cleaned_up) + break; + } + } +#else + /* When we write to the child process and it has just terminated, + we don't want to die from a SIGPIPE signal. So set the SIGPIPE + handler to SIG_IGN, and handle EPIPE error codes in write(). */ + { + struct sigaction sigpipe_action; + + sigpipe_action.sa_handler = SIG_IGN; + sigpipe_action.sa_flags = 0; + sigemptyset (&sigpipe_action.sa_mask); + if (sigaction (SIGPIPE, &sigpipe_action, &orig_sigpipe_action) < 0) + abort (); + } + + { +# if HAVE_SELECT + fd_set readfds; /* All bits except fd[0] are always cleared. */ + fd_set writefds; /* All bits except fd[1] are always cleared. */ +# endif + bool done_writing; + + /* Enable non-blocking I/O. This permits the read() and write() calls + to return -1/EAGAIN without blocking; this is important for polling + if HAVE_SELECT is not defined. It also permits the read() and write() + calls to return after partial reads/writes; this is important if + HAVE_SELECT is defined, because select() only says that some data + can be read or written, not how many. Without non-blocking I/O, + Linux 2.2.17 and BSD systems prefer to block instead of returning + with partial results. */ + { + int fcntl_flags; + + if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 + || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) == -1 + || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 + || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) == -1) + { + if (exit_on_error) + error (EXIT_FAILURE, errno, + _("cannot set up nonblocking I/O to %s subprocess"), + progname); + goto fail; + } + } + +# if HAVE_SELECT + FD_ZERO (&readfds); + FD_ZERO (&writefds); +# endif + done_writing = false; + for (;;) + { +# if HAVE_SELECT + int n; + + FD_SET (fd[0], &readfds); + n = fd[0] + 1; + if (!done_writing) + { + FD_SET (fd[1], &writefds); + if (n <= fd[1]) + n = fd[1] + 1; + } + + n = select (n, &readfds, (!done_writing ? &writefds : NULL), NULL, + NULL); + if (n < 0) + { + if (exit_on_error) + error (EXIT_FAILURE, errno, + _("communication with %s subprocess failed"), progname); + goto fail; + } + if (!done_writing && FD_ISSET (fd[1], &writefds)) + goto try_write; + if (FD_ISSET (fd[0], &readfds)) + goto try_read; + /* How could select() return if none of the two descriptors is ready? */ + abort (); +# endif + + /* Attempt to write. */ +# if HAVE_SELECT + try_write: +# endif + if (!done_writing) + { + size_t bufsize; + const void *buf = prepare_write (&bufsize, private_data); + if (buf != NULL) + { + ssize_t nwritten = + write (fd[1], buf, + bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); + if (nwritten < 0) + { + if (!IS_EAGAIN (errno)) + { + if (exit_on_error) + error (EXIT_FAILURE, errno, + _("write to %s subprocess failed"), progname); + goto fail; + } + } + else if (nwritten > 0) + done_write ((void *) buf, nwritten, private_data); + } + else + { + /* Tell the child there is nothing more the parent will send. */ + close (fd[1]); + done_writing = true; + } + } +# if HAVE_SELECT + continue; +# endif + + /* Attempt to read. */ +# if HAVE_SELECT + try_read: +# endif + { + size_t bufsize; + void *buf = prepare_read (&bufsize, private_data); + if (!(buf != NULL && bufsize > 0)) + /* prepare_read returned wrong values. */ + abort (); + { + ssize_t nread = + read (fd[0], buf, bufsize > SSIZE_MAX ? SSIZE_MAX : bufsize); + if (nread < 0) + { + if (!IS_EAGAIN (errno)) + { + if (exit_on_error) + error (EXIT_FAILURE, errno, + _("read from %s subprocess failed"), progname); + goto fail; + } + } + else if (nread > 0) + done_read (buf, nread, private_data); + else /* nread == 0 */ + { + if (done_writing) + break; + } + } + } +# if HAVE_SELECT + continue; +# endif + } + } + + /* Restore SIGPIPE signal handler. */ + if (sigaction (SIGPIPE, &orig_sigpipe_action, NULL) < 0) + abort (); +#endif + + close (fd[0]); + + /* Remove zombie process from process list. */ + { + int exitstatus = + wait_subprocess (child, progname, false, null_stderr, + true, exit_on_error, NULL); + if (exitstatus != 0 && exit_on_error) + error (EXIT_FAILURE, 0, _("%s subprocess terminated with exit code %d"), + progname, exitstatus); + return exitstatus; + } + + fail: + { + int saved_errno = errno; + close (fd[1]); +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) + if (sigaction (SIGPIPE, &orig_sigpipe_action, NULL) < 0) + abort (); +#endif + close (fd[0]); + wait_subprocess (child, progname, true, true, true, false, NULL); + errno = saved_errno; + return -1; + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe.h gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe.h --- gettext-0.17/gettext-tools/gnulib-lib/pipe.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Creation of subprocesses, communicating via pipes. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -36,7 +36,8 @@ one or two file descriptors for communication with the subprocess. If the subprocess creation fails: if exit_on_error is true, the main process exits with an error message; otherwise, an error message is given - if null_stderr is false, then -1 is returned and fd[] remain uninitialized. + if null_stderr is false, then -1 is returned, with errno set, and fd[] + remain uninitialized. After finishing communication, the caller should call wait_subprocess() to get rid of the subprocess in the process table. @@ -78,12 +79,14 @@ * write system read * parent -> fd[0] -> STDIN_FILENO -> child * + * Note: When writing to a child process, it is useful to ignore the SIGPIPE + * signal and the EPIPE error code. */ extern pid_t create_pipe_out (const char *progname, - const char *prog_path, char **prog_argv, - const char *prog_stdout, bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[1]); + const char *prog_path, char **prog_argv, + const char *prog_stdout, bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[1]); /* Open a pipe for input from a child process. * The child's stdin comes from a file. @@ -93,10 +96,10 @@ * */ extern pid_t create_pipe_in (const char *progname, - const char *prog_path, char **prog_argv, - const char *prog_stdin, bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[1]); + const char *prog_path, char **prog_argv, + const char *prog_stdin, bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[1]); /* Open a bidirectional pipe. * @@ -105,15 +108,29 @@ * parent <- fd[0] <- STDOUT_FILENO <- child * read system write * + * Note: When writing to a child process, it is useful to ignore the SIGPIPE + * signal and the EPIPE error code. + * + * Note: The parent process must be careful to avoid deadlock. + * 1) If you write more than PIPE_MAX bytes or, more generally, if you write + * more bytes than the subprocess can handle at once, the subprocess + * may write its data and wait on you to read it, but you are currently + * busy writing. + * 2) When you don't know ahead of time how many bytes the subprocess + * will produce, the usual technique of calling read (fd, buf, BUFSIZ) + * with a fixed BUFSIZ will, on Linux 2.2.17 and on BSD systems, cause + * the read() call to block until *all* of the buffer has been filled. + * But the subprocess cannot produce more data until you gave it more + * input. But you are currently busy reading from it. */ extern pid_t create_pipe_bidi (const char *progname, - const char *prog_path, char **prog_argv, - bool null_stderr, - bool slave_process, bool exit_on_error, - int fd[2]); + const char *prog_path, char **prog_argv, + bool null_stderr, + bool slave_process, bool exit_on_error, + int fd[2]); /* The name of the "always silent" device. */ -#if defined _MSC_VER || defined __MINGW32__ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* Native Woe32 API. */ # define DEV_NULL "NUL" #else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/pipe-safer.c gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-safer.c --- gettext-0.17/gettext-tools/gnulib-lib/pipe-safer.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe-safer.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,56 @@ +/* Invoke pipe, but avoid some glitches. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Jim Meyering. */ + +#include + +#include "unistd-safer.h" + +#include +#include + +/* Like pipe, but ensure that neither of the file descriptors is + STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO. Fail with ENOSYS on + platforms that lack pipe. */ + +int +pipe_safer (int fd[2]) +{ +#if HAVE_PIPE + if (pipe (fd) == 0) + { + int i; + for (i = 0; i < 2; i++) + { + fd[i] = fd_safer (fd[i]); + if (fd[i] < 0) + { + int e = errno; + close (fd[1 - i]); + errno = e; + return -1; + } + } + + return 0; + } +#else + errno = ENOSYS; +#endif + + return -1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/printf-args.c gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-args.c --- gettext-0.17/gettext-tools/gnulib-lib/printf-args.c 2007-10-26 00:52:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-args.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,10 @@ /* Decomposed printf argument list. - Copyright (C) 1999, 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -42,146 +43,146 @@ switch (ap->type) { case TYPE_SCHAR: - ap->a.a_schar = va_arg (args, /*signed char*/ int); - break; + ap->a.a_schar = va_arg (args, /*signed char*/ int); + break; case TYPE_UCHAR: - ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); - break; + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); + break; case TYPE_SHORT: - ap->a.a_short = va_arg (args, /*short*/ int); - break; + ap->a.a_short = va_arg (args, /*short*/ int); + break; case TYPE_USHORT: - ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); - break; + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); + break; case TYPE_INT: - ap->a.a_int = va_arg (args, int); - break; + ap->a.a_int = va_arg (args, int); + break; case TYPE_UINT: - ap->a.a_uint = va_arg (args, unsigned int); - break; + ap->a.a_uint = va_arg (args, unsigned int); + break; case TYPE_LONGINT: - ap->a.a_longint = va_arg (args, long int); - break; + ap->a.a_longint = va_arg (args, long int); + break; case TYPE_ULONGINT: - ap->a.a_ulongint = va_arg (args, unsigned long int); - break; + ap->a.a_ulongint = va_arg (args, unsigned long int); + break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: - ap->a.a_longlongint = va_arg (args, long long int); - break; + ap->a.a_longlongint = va_arg (args, long long int); + break; case TYPE_ULONGLONGINT: - ap->a.a_ulonglongint = va_arg (args, unsigned long long int); - break; + ap->a.a_ulonglongint = va_arg (args, unsigned long long int); + break; #endif case TYPE_DOUBLE: - ap->a.a_double = va_arg (args, double); - break; + ap->a.a_double = va_arg (args, double); + break; case TYPE_LONGDOUBLE: - ap->a.a_longdouble = va_arg (args, long double); - break; + ap->a.a_longdouble = va_arg (args, long double); + break; case TYPE_CHAR: - ap->a.a_char = va_arg (args, int); - break; + ap->a.a_char = va_arg (args, int); + break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: - /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by - default argument promotions", this is not the case in mingw32, - where wint_t is 'unsigned short'. */ - ap->a.a_wide_char = - (sizeof (wint_t) < sizeof (int) - ? va_arg (args, int) - : va_arg (args, wint_t)); - break; + /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by + default argument promotions", this is not the case in mingw32, + where wint_t is 'unsigned short'. */ + ap->a.a_wide_char = + (sizeof (wint_t) < sizeof (int) + ? (wint_t) va_arg (args, int) + : va_arg (args, wint_t)); + break; #endif case TYPE_STRING: - ap->a.a_string = va_arg (args, const char *); - /* A null pointer is an invalid argument for "%s", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_string == NULL) - ap->a.a_string = "(NULL)"; - break; + ap->a.a_string = va_arg (args, const char *); + /* A null pointer is an invalid argument for "%s", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_string == NULL) + ap->a.a_string = "(NULL)"; + break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: - ap->a.a_wide_string = va_arg (args, const wchar_t *); - /* A null pointer is an invalid argument for "%ls", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_wide_string == NULL) - { - static const wchar_t wide_null_string[] = - { - (wchar_t)'(', - (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', - (wchar_t)')', - (wchar_t)0 - }; - ap->a.a_wide_string = wide_null_string; - } - break; + ap->a.a_wide_string = va_arg (args, const wchar_t *); + /* A null pointer is an invalid argument for "%ls", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_wide_string == NULL) + { + static const wchar_t wide_null_string[] = + { + (wchar_t)'(', + (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', + (wchar_t)')', + (wchar_t)0 + }; + ap->a.a_wide_string = wide_null_string; + } + break; #endif case TYPE_POINTER: - ap->a.a_pointer = va_arg (args, void *); - break; + ap->a.a_pointer = va_arg (args, void *); + break; case TYPE_COUNT_SCHAR_POINTER: - ap->a.a_count_schar_pointer = va_arg (args, signed char *); - break; + ap->a.a_count_schar_pointer = va_arg (args, signed char *); + break; case TYPE_COUNT_SHORT_POINTER: - ap->a.a_count_short_pointer = va_arg (args, short *); - break; + ap->a.a_count_short_pointer = va_arg (args, short *); + break; case TYPE_COUNT_INT_POINTER: - ap->a.a_count_int_pointer = va_arg (args, int *); - break; + ap->a.a_count_int_pointer = va_arg (args, int *); + break; case TYPE_COUNT_LONGINT_POINTER: - ap->a.a_count_longint_pointer = va_arg (args, long int *); - break; + ap->a.a_count_longint_pointer = va_arg (args, long int *); + break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: - ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); - break; + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); + break; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: - ap->a.a_u8_string = va_arg (args, const uint8_t *); - /* A null pointer is an invalid argument for "%U", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u8_string == NULL) - { - static const uint8_t u8_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u8_string = u8_null_string; - } - break; + ap->a.a_u8_string = va_arg (args, const uint8_t *); + /* A null pointer is an invalid argument for "%U", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u8_string == NULL) + { + static const uint8_t u8_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u8_string = u8_null_string; + } + break; case TYPE_U16_STRING: - ap->a.a_u16_string = va_arg (args, const uint16_t *); - /* A null pointer is an invalid argument for "%lU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u16_string == NULL) - { - static const uint16_t u16_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u16_string = u16_null_string; - } - break; + ap->a.a_u16_string = va_arg (args, const uint16_t *); + /* A null pointer is an invalid argument for "%lU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u16_string == NULL) + { + static const uint16_t u16_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u16_string = u16_null_string; + } + break; case TYPE_U32_STRING: - ap->a.a_u32_string = va_arg (args, const uint32_t *); - /* A null pointer is an invalid argument for "%llU", but in practice - it occurs quite frequently in printf statements that produce - debug output. Use a fallback in this case. */ - if (ap->a.a_u32_string == NULL) - { - static const uint32_t u32_null_string[] = - { '(', 'N', 'U', 'L', 'L', ')', 0 }; - ap->a.a_u32_string = u32_null_string; - } - break; + ap->a.a_u32_string = va_arg (args, const uint32_t *); + /* A null pointer is an invalid argument for "%llU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u32_string == NULL) + { + static const uint32_t u32_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u32_string = u32_null_string; + } + break; #endif default: - /* Unknown type. */ - return -1; + /* Unknown type. */ + return -1; } return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/printf-args.h gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-args.h --- gettext-0.17/gettext-tools/gnulib-lib/printf-args.h 2007-10-26 00:52:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-args.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,10 @@ /* Decomposed printf argument list. - Copyright (C) 1999, 2002-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2003, 2006-2007, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -93,42 +94,42 @@ arg_type type; union { - signed char a_schar; - unsigned char a_uchar; - short a_short; - unsigned short a_ushort; - int a_int; - unsigned int a_uint; - long int a_longint; - unsigned long int a_ulongint; + signed char a_schar; + unsigned char a_uchar; + short a_short; + unsigned short a_ushort; + int a_int; + unsigned int a_uint; + long int a_longint; + unsigned long int a_ulongint; #if HAVE_LONG_LONG_INT - long long int a_longlongint; - unsigned long long int a_ulonglongint; + long long int a_longlongint; + unsigned long long int a_ulonglongint; #endif - float a_float; - double a_double; - long double a_longdouble; - int a_char; + float a_float; + double a_double; + long double a_longdouble; + int a_char; #if HAVE_WINT_T - wint_t a_wide_char; + wint_t a_wide_char; #endif - const char* a_string; + const char* a_string; #if HAVE_WCHAR_T - const wchar_t* a_wide_string; + const wchar_t* a_wide_string; #endif - void* a_pointer; - signed char * a_count_schar_pointer; - short * a_count_short_pointer; - int * a_count_int_pointer; - long int * a_count_longint_pointer; + void* a_pointer; + signed char * a_count_schar_pointer; + short * a_count_short_pointer; + int * a_count_int_pointer; + long int * a_count_longint_pointer; #if HAVE_LONG_LONG_INT - long long int * a_count_longlongint_pointer; + long long int * a_count_longlongint_pointer; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ - const uint8_t * a_u8_string; - const uint16_t * a_u16_string; - const uint32_t * a_u32_string; + const uint8_t * a_u8_string; + const uint16_t * a_u16_string; + const uint32_t * a_u32_string; #endif } a; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/printf-parse.c gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-parse.c --- gettext-0.17/gettext-tools/gnulib-lib/printf-parse.c 2007-11-04 17:53:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-parse.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,9 @@ /* Formatted output to strings. - Copyright (C) 1999-2000, 2002-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2000, 2002-2003, 2006-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -80,10 +80,10 @@ int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { - const CHAR_T *cp = format; /* pointer into format */ - size_t arg_posn = 0; /* number of regular arguments consumed */ - size_t d_allocated; /* allocated elements of d->dir */ - size_t a_allocated; /* allocated elements of a->arg */ + const CHAR_T *cp = format; /* pointer into format */ + size_t arg_posn = 0; /* number of regular arguments consumed */ + size_t d_allocated; /* allocated elements of d->dir */ + size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; @@ -99,463 +99,501 @@ a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ - { \ - size_t n = (_index_); \ - if (n >= a_allocated) \ - { \ - size_t memory_size; \ - argument *memory; \ - \ - a_allocated = xtimes (a_allocated, 2); \ - if (a_allocated <= n) \ - a_allocated = xsum (n, 1); \ - memory_size = xtimes (a_allocated, sizeof (argument)); \ - if (size_overflow_p (memory_size)) \ - /* Overflow, would lead to out of memory. */ \ - goto out_of_memory; \ - memory = (argument *) (a->arg \ - ? realloc (a->arg, memory_size) \ - : malloc (memory_size)); \ - if (memory == NULL) \ - /* Out of memory. */ \ - goto out_of_memory; \ - a->arg = memory; \ - } \ - while (a->count <= n) \ - a->arg[a->count++].type = TYPE_NONE; \ - if (a->arg[n].type == TYPE_NONE) \ - a->arg[n].type = (_type_); \ - else if (a->arg[n].type != (_type_)) \ - /* Ambiguous type for positional argument. */ \ - goto error; \ + { \ + size_t n = (_index_); \ + if (n >= a_allocated) \ + { \ + size_t memory_size; \ + argument *memory; \ + \ + a_allocated = xtimes (a_allocated, 2); \ + if (a_allocated <= n) \ + a_allocated = xsum (n, 1); \ + memory_size = xtimes (a_allocated, sizeof (argument)); \ + if (size_overflow_p (memory_size)) \ + /* Overflow, would lead to out of memory. */ \ + goto out_of_memory; \ + memory = (argument *) (a->arg \ + ? realloc (a->arg, memory_size) \ + : malloc (memory_size)); \ + if (memory == NULL) \ + /* Out of memory. */ \ + goto out_of_memory; \ + a->arg = memory; \ + } \ + while (a->count <= n) \ + a->arg[a->count++].type = TYPE_NONE; \ + if (a->arg[n].type == TYPE_NONE) \ + a->arg[n].type = (_type_); \ + else if (a->arg[n].type != (_type_)) \ + /* Ambiguous type for positional argument. */ \ + goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') - { - size_t arg_index = ARG_NONE; - DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ - - /* Initialize the next directive. */ - dp->dir_start = cp - 1; - dp->flags = 0; - dp->width_start = NULL; - dp->width_end = NULL; - dp->width_arg_index = ARG_NONE; - dp->precision_start = NULL; - dp->precision_end = NULL; - dp->precision_arg_index = ARG_NONE; - dp->arg_index = ARG_NONE; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - arg_index = n - 1; - cp = np + 1; - } - } - - /* Read the flags. */ - for (;;) - { - if (*cp == '\'') - { - dp->flags |= FLAG_GROUP; - cp++; - } - else if (*cp == '-') - { - dp->flags |= FLAG_LEFT; - cp++; - } - else if (*cp == '+') - { - dp->flags |= FLAG_SHOWSIGN; - cp++; - } - else if (*cp == ' ') - { - dp->flags |= FLAG_SPACE; - cp++; - } - else if (*cp == '#') - { - dp->flags |= FLAG_ALT; - cp++; - } - else if (*cp == '0') - { - dp->flags |= FLAG_ZERO; - cp++; - } - else - break; - } - - /* Parse the field width. */ - if (*cp == '*') - { - dp->width_start = cp; - cp++; - dp->width_end = cp; - if (max_width_length < 1) - max_width_length = 1; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory later. */ - goto error; - dp->width_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->width_arg_index == ARG_NONE) - { - dp->width_arg_index = arg_posn++; - if (dp->width_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->width_arg_index, TYPE_INT); - } - else if (*cp >= '0' && *cp <= '9') - { - size_t width_length; - - dp->width_start = cp; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->width_end = cp; - width_length = dp->width_end - dp->width_start; - if (max_width_length < width_length) - max_width_length = width_length; - } - - /* Parse the precision. */ - if (*cp == '.') - { - cp++; - if (*cp == '*') - { - dp->precision_start = cp - 1; - cp++; - dp->precision_end = cp; - if (max_precision_length < 2) - max_precision_length = 2; - - /* Test for positional argument. */ - if (*cp >= '0' && *cp <= '9') - { - const CHAR_T *np; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - ; - if (*np == '$') - { - size_t n = 0; - - for (np = cp; *np >= '0' && *np <= '9'; np++) - n = xsum (xtimes (n, 10), *np - '0'); - if (n == 0) - /* Positional argument 0. */ - goto error; - if (size_overflow_p (n)) - /* n too large, would lead to out of memory - later. */ - goto error; - dp->precision_arg_index = n - 1; - cp = np + 1; - } - } - if (dp->precision_arg_index == ARG_NONE) - { - dp->precision_arg_index = arg_posn++; - if (dp->precision_arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->precision_arg_index, TYPE_INT); - } - else - { - size_t precision_length; - - dp->precision_start = cp - 1; - for (; *cp >= '0' && *cp <= '9'; cp++) - ; - dp->precision_end = cp; - precision_length = dp->precision_end - dp->precision_start; - if (max_precision_length < precision_length) - max_precision_length = precision_length; - } - } - - { - arg_type type; - - /* Parse argument type/size specifiers. */ - { - int flags = 0; - - for (;;) - { - if (*cp == 'h') - { - flags |= (1 << (flags & 1)); - cp++; - } - else if (*cp == 'L') - { - flags |= 4; - cp++; - } - else if (*cp == 'l') - { - flags += 8; - cp++; - } - else if (*cp == 'j') - { - if (sizeof (intmax_t) > sizeof (long)) - { - /* intmax_t = long long */ - flags += 16; - } - else if (sizeof (intmax_t) > sizeof (int)) - { - /* intmax_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 'z' || *cp == 'Z') - { - /* 'z' is standardized in ISO C 99, but glibc uses 'Z' - because the warning facility in gcc-2.95.2 understands - only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ - if (sizeof (size_t) > sizeof (long)) - { - /* size_t = long long */ - flags += 16; - } - else if (sizeof (size_t) > sizeof (int)) - { - /* size_t = long */ - flags += 8; - } - cp++; - } - else if (*cp == 't') - { - if (sizeof (ptrdiff_t) > sizeof (long)) - { - /* ptrdiff_t = long long */ - flags += 16; - } - else if (sizeof (ptrdiff_t) > sizeof (int)) - { - /* ptrdiff_t = long */ - flags += 8; - } - cp++; - } - else - break; - } - - /* Read the conversion character. */ - c = *cp++; - switch (c) - { - case 'd': case 'i': + { + size_t arg_index = ARG_NONE; + DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ + + /* Initialize the next directive. */ + dp->dir_start = cp - 1; + dp->flags = 0; + dp->width_start = NULL; + dp->width_end = NULL; + dp->width_arg_index = ARG_NONE; + dp->precision_start = NULL; + dp->precision_end = NULL; + dp->precision_arg_index = ARG_NONE; + dp->arg_index = ARG_NONE; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + arg_index = n - 1; + cp = np + 1; + } + } + + /* Read the flags. */ + for (;;) + { + if (*cp == '\'') + { + dp->flags |= FLAG_GROUP; + cp++; + } + else if (*cp == '-') + { + dp->flags |= FLAG_LEFT; + cp++; + } + else if (*cp == '+') + { + dp->flags |= FLAG_SHOWSIGN; + cp++; + } + else if (*cp == ' ') + { + dp->flags |= FLAG_SPACE; + cp++; + } + else if (*cp == '#') + { + dp->flags |= FLAG_ALT; + cp++; + } + else if (*cp == '0') + { + dp->flags |= FLAG_ZERO; + cp++; + } + else + break; + } + + /* Parse the field width. */ + if (*cp == '*') + { + dp->width_start = cp; + cp++; + dp->width_end = cp; + if (max_width_length < 1) + max_width_length = 1; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + dp->width_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->width_arg_index == ARG_NONE) + { + dp->width_arg_index = arg_posn++; + if (dp->width_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->width_arg_index, TYPE_INT); + } + else if (*cp >= '0' && *cp <= '9') + { + size_t width_length; + + dp->width_start = cp; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->width_end = cp; + width_length = dp->width_end - dp->width_start; + if (max_width_length < width_length) + max_width_length = width_length; + } + + /* Parse the precision. */ + if (*cp == '.') + { + cp++; + if (*cp == '*') + { + dp->precision_start = cp - 1; + cp++; + dp->precision_end = cp; + if (max_precision_length < 2) + max_precision_length = 2; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory + later. */ + goto error; + dp->precision_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->precision_arg_index == ARG_NONE) + { + dp->precision_arg_index = arg_posn++; + if (dp->precision_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->precision_arg_index, TYPE_INT); + } + else + { + size_t precision_length; + + dp->precision_start = cp - 1; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->precision_end = cp; + precision_length = dp->precision_end - dp->precision_start; + if (max_precision_length < precision_length) + max_precision_length = precision_length; + } + } + + { + arg_type type; + + /* Parse argument type/size specifiers. */ + { + int flags = 0; + + for (;;) + { + if (*cp == 'h') + { + flags |= (1 << (flags & 1)); + cp++; + } + else if (*cp == 'L') + { + flags |= 4; + cp++; + } + else if (*cp == 'l') + { + flags += 8; + cp++; + } + else if (*cp == 'j') + { + if (sizeof (intmax_t) > sizeof (long)) + { + /* intmax_t = long long */ + flags += 16; + } + else if (sizeof (intmax_t) > sizeof (int)) + { + /* intmax_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 'z' || *cp == 'Z') + { + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + if (sizeof (size_t) > sizeof (long)) + { + /* size_t = long long */ + flags += 16; + } + else if (sizeof (size_t) > sizeof (int)) + { + /* size_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 't') + { + if (sizeof (ptrdiff_t) > sizeof (long)) + { + /* ptrdiff_t = long long */ + flags += 16; + } + else if (sizeof (ptrdiff_t) > sizeof (int)) + { + /* ptrdiff_t = long */ + flags += 8; + } + cp++; + } +#if defined __APPLE__ && defined __MACH__ + /* On MacOS X 10.3, PRIdMAX is defined as "qd". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'q') + { + if (64 / 8 > sizeof (long)) + { + /* int64_t = long long */ + flags += 16; + } + else + { + /* int64_t = long */ + flags += 8; + } + cp++; + } +#endif +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On native Win32, PRIdMAX is defined as "I64d". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') + { + if (64 / 8 > sizeof (long)) + { + /* __int64 = long long */ + flags += 16; + } + else + { + /* __int64 = long */ + flags += 8; + } + cp += 3; + } +#endif + else + break; + } + + /* Read the conversion character. */ + c = *cp++; + switch (c) + { + case 'd': case 'i': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGLONGINT; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lld" into TYPE_LONGINT. */ - if (flags >= 8) - type = TYPE_LONGINT; - else if (flags & 2) - type = TYPE_SCHAR; - else if (flags & 1) - type = TYPE_SHORT; - else - type = TYPE_INT; - break; - case 'o': case 'u': case 'x': case 'X': + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGLONGINT; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lld" into TYPE_LONGINT. */ + if (flags >= 8) + type = TYPE_LONGINT; + else if (flags & 2) + type = TYPE_SCHAR; + else if (flags & 1) + type = TYPE_SHORT; + else + type = TYPE_INT; + break; + case 'o': case 'u': case 'x': case 'X': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_ULONGLONGINT; - else -#endif - /* If 'unsigned long long' exists and is the same as - 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ - if (flags >= 8) - type = TYPE_ULONGINT; - else if (flags & 2) - type = TYPE_UCHAR; - else if (flags & 1) - type = TYPE_USHORT; - else - type = TYPE_UINT; - break; - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': - if (flags >= 16 || (flags & 4)) - type = TYPE_LONGDOUBLE; - else - type = TYPE_DOUBLE; - break; - case 'c': - if (flags >= 8) + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_ULONGLONGINT; + else +#endif + /* If 'unsigned long long' exists and is the same as + 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ + if (flags >= 8) + type = TYPE_ULONGINT; + else if (flags & 2) + type = TYPE_UCHAR; + else if (flags & 1) + type = TYPE_USHORT; + else + type = TYPE_UINT; + break; + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGDOUBLE; + else + type = TYPE_DOUBLE; + break; + case 'c': + if (flags >= 8) #if HAVE_WINT_T - type = TYPE_WIDE_CHAR; + type = TYPE_WIDE_CHAR; #else - goto error; + goto error; #endif - else - type = TYPE_CHAR; - break; + else + type = TYPE_CHAR; + break; #if HAVE_WINT_T - case 'C': - type = TYPE_WIDE_CHAR; - c = 'c'; - break; + case 'C': + type = TYPE_WIDE_CHAR; + c = 'c'; + break; #endif - case 's': - if (flags >= 8) + case 's': + if (flags >= 8) #if HAVE_WCHAR_T - type = TYPE_WIDE_STRING; + type = TYPE_WIDE_STRING; #else - goto error; + goto error; #endif - else - type = TYPE_STRING; - break; + else + type = TYPE_STRING; + break; #if HAVE_WCHAR_T - case 'S': - type = TYPE_WIDE_STRING; - c = 's'; - break; -#endif - case 'p': - type = TYPE_POINTER; - break; - case 'n': + case 'S': + type = TYPE_WIDE_STRING; + c = 's'; + break; +#endif + case 'p': + type = TYPE_POINTER; + break; + case 'n': #if HAVE_LONG_LONG_INT - /* If 'long long' exists and is larger than 'long': */ - if (flags >= 16 || (flags & 4)) - type = TYPE_COUNT_LONGLONGINT_POINTER; - else -#endif - /* If 'long long' exists and is the same as 'long', we parse - "lln" into TYPE_COUNT_LONGINT_POINTER. */ - if (flags >= 8) - type = TYPE_COUNT_LONGINT_POINTER; - else if (flags & 2) - type = TYPE_COUNT_SCHAR_POINTER; - else if (flags & 1) - type = TYPE_COUNT_SHORT_POINTER; - else - type = TYPE_COUNT_INT_POINTER; - break; + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_COUNT_LONGLONGINT_POINTER; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lln" into TYPE_COUNT_LONGINT_POINTER. */ + if (flags >= 8) + type = TYPE_COUNT_LONGINT_POINTER; + else if (flags & 2) + type = TYPE_COUNT_SCHAR_POINTER; + else if (flags & 1) + type = TYPE_COUNT_SHORT_POINTER; + else + type = TYPE_COUNT_INT_POINTER; + break; #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - case 'U': - if (flags >= 16) - type = TYPE_U32_STRING; - else if (flags >= 8) - type = TYPE_U16_STRING; - else - type = TYPE_U8_STRING; - break; -#endif - case '%': - type = TYPE_NONE; - break; - default: - /* Unknown conversion character. */ - goto error; - } - } - - if (type != TYPE_NONE) - { - dp->arg_index = arg_index; - if (dp->arg_index == ARG_NONE) - { - dp->arg_index = arg_posn++; - if (dp->arg_index == ARG_NONE) - /* arg_posn wrapped around. */ - goto error; - } - REGISTER_ARG (dp->arg_index, type); - } - dp->conversion = c; - dp->dir_end = cp; - } - - d->count++; - if (d->count >= d_allocated) - { - size_t memory_size; - DIRECTIVE *memory; - - d_allocated = xtimes (d_allocated, 2); - memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); - if (size_overflow_p (memory_size)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - memory = (DIRECTIVE *) realloc (d->dir, memory_size); - if (memory == NULL) - /* Out of memory. */ - goto out_of_memory; - d->dir = memory; - } - } + /* The unistdio extensions. */ + case 'U': + if (flags >= 16) + type = TYPE_U32_STRING; + else if (flags >= 8) + type = TYPE_U16_STRING; + else + type = TYPE_U8_STRING; + break; +#endif + case '%': + type = TYPE_NONE; + break; + default: + /* Unknown conversion character. */ + goto error; + } + } + + if (type != TYPE_NONE) + { + dp->arg_index = arg_index; + if (dp->arg_index == ARG_NONE) + { + dp->arg_index = arg_posn++; + if (dp->arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->arg_index, type); + } + dp->conversion = c; + dp->dir_end = cp; + } + + d->count++; + if (d->count >= d_allocated) + { + size_t memory_size; + DIRECTIVE *memory; + + d_allocated = xtimes (d_allocated, 2); + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); + if (size_overflow_p (memory_size)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + memory = (DIRECTIVE *) realloc (d->dir, memory_size); + if (memory == NULL) + /* Out of memory. */ + goto out_of_memory; + d->dir = memory; + } + } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) - { - /* Non-ASCII character. Not supported. */ - goto error; - } + { + /* Non-ASCII character. Not supported. */ + goto error; + } #endif } d->dir[d->count].dir_start = cp; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/printf-parse.h gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-parse.h --- gettext-0.17/gettext-tools/gnulib-lib/printf-parse.h 2007-10-26 00:52:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/printf-parse.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,9 +1,10 @@ /* Parse printf format string. - Copyright (C) 1999, 2002-2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2003, 2005, 2007, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,15 +27,15 @@ /* Flags */ -#define FLAG_GROUP 1 /* ' flag */ -#define FLAG_LEFT 2 /* - flag */ -#define FLAG_SHOWSIGN 4 /* + flag */ -#define FLAG_SPACE 8 /* space flag */ -#define FLAG_ALT 16 /* # flag */ -#define FLAG_ZERO 32 +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ -#define ARG_NONE (~(size_t)0) +#define ARG_NONE (~(size_t)0) /* xxx_directive: A parsed directive. xxx_directives: A parsed format string. */ @@ -163,10 +164,10 @@ u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a); extern int u16_printf_parse (const uint16_t *format, u16_directives *d, - arguments *a); + arguments *a); extern int u32_printf_parse (const uint32_t *format, u32_directives *d, - arguments *a); + arguments *a); #else # ifdef STATIC STATIC diff -Nru gettext-0.17/gettext-tools/gnulib-lib/progname.c gettext-0.18.1.1/gettext-tools/gnulib-lib/progname.c --- gettext-0.17/gettext-tools/gnulib-lib/progname.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/progname.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,9 @@ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */ #include "progname.h" +#include /* get program_invocation_name declaration */ +#include +#include #include @@ -29,21 +32,61 @@ To be initialized by main(). */ const char *program_name = NULL; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ void set_program_name (const char *argv0) { /* libtool creates a temporary executable whose name is sometimes prefixed with "lt-" (depends on the platform). It also makes argv[0] absolute. + But the name of the temporary executable is a detail that should not be + visible to the end user and to the test suite. Remove this "/.libs/" or "/.libs/lt-" prefix here. */ const char *slash; const char *base; + /* Sanity check. POSIX requires the invoking process to pass a non-NULL + argv[0]. */ + if (argv0 == NULL) + { + /* It's a bug in the invoking program. Help diagnosing it. */ + fputs ("A NULL argv[0] was passed through an exec system call.\n", + stderr); + abort (); + } + slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); - if (base - argv0 >= 7 && memcmp (base - 7, "/.libs/", 7) == 0) - argv0 = base; - if (strncmp (base, "lt-", 3) == 0) - argv0 = base + 3; + if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) + { + argv0 = base; + if (strncmp (base, "lt-", 3) == 0) + { + argv0 = base + 3; + /* On glibc systems, remove the "lt-" prefix from the variable + program_invocation_short_name. */ +#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME + program_invocation_short_name = (char *) argv0; +#endif + } + } + + /* But don't strip off a leading / in general, because when the user + runs + /some/hidden/place/bin/cp foo foo + he should get the error message + /some/hidden/place/bin/cp: `foo' and `foo' are the same file + not + cp: `foo' and `foo' are the same file + */ + program_name = argv0; + + /* On glibc systems, the error() function comes from libc and uses the + variable program_invocation_name, not program_name. So set this variable + as well. */ +#if HAVE_DECL_PROGRAM_INVOCATION_NAME + program_invocation_name = (char *) argv0; +#endif } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/progname.h gettext-0.18.1.1/gettext-tools/gnulib-lib/progname.h --- gettext-0.17/gettext-tools/gnulib-lib/progname.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/progname.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,7 +31,9 @@ /* String containing name the program is called with. */ extern DLL_VARIABLE const char *program_name; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ extern void set_program_name (const char *argv0); #if ENABLE_RELOCATABLE @@ -39,8 +41,8 @@ /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ extern void set_program_name_and_installdir (const char *argv0, - const char *orig_installprefix, - const char *orig_installdir); + const char *orig_installprefix, + const char *orig_installdir); #undef set_program_name #define set_program_name(ARG0) \ set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/progreloc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/progreloc.c --- gettext-0.17/gettext-tools/gnulib-lib/progreloc.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/progreloc.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Provide relocatable programs. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -43,17 +43,27 @@ # include #endif -#include "xreadlink.h" -#include "canonicalize.h" #include "relocatable.h" #ifdef NO_XMALLOC +# include "areadlink.h" +# define xreadlink areadlink +#else +# include "xreadlink.h" +#endif + +#ifdef NO_XMALLOC # define xmalloc malloc # define xstrdup strdup #else # include "xalloc.h" #endif +/* Declare canonicalize_file_name. + The included above may be the system's one, not the gnulib + one. */ +extern char * canonicalize_file_name (const char *name); + /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. @@ -103,19 +113,19 @@ if (executable_fd >= 0) { /* If we already have an executable_fd, check that filename points to - the same inode. */ + the same inode. */ struct stat statexe; struct stat statfile; if (fstat (executable_fd, &statexe) >= 0) - { - if (stat (filename, &statfile) < 0) - return false; - if (!(statfile.st_dev - && statfile.st_dev == statexe.st_dev - && statfile.st_ino == statexe.st_ino)) - return false; - } + { + if (stat (filename, &statfile) < 0) + return false; + if (!(statfile.st_dev + && statfile.st_dev == statexe.st_dev + && statfile.st_ino == statexe.st_ino)) + return false; + } } #endif #endif @@ -182,18 +192,18 @@ sprintf (buf, "/proc/%d/exe", getpid ()); link = xreadlink (buf); if (link != NULL && link[0] != '[') - return link; + return link; if (executable_fd < 0) - executable_fd = open (buf, O_RDONLY, 0); + executable_fd = open (buf, O_RDONLY, 0); } } #endif #if HAVE_MACH_O_DYLD_H && HAVE__NSGETEXECUTABLEPATH /* On MacOS X 10.2 or newer, the function - int _NSGetExecutablePath (char *buf, unsigned long *bufsize); + int _NSGetExecutablePath (char *buf, uint32_t *bufsize); can be used to retrieve the executable's full path. */ char location[4096]; - unsigned long length = sizeof (location); + unsigned int length = sizeof (location); if (_NSGetExecutablePath (location, &length) == 0 && location[0] == '/') return canonicalize_file_name (location); @@ -206,57 +216,57 @@ { const char *p; for (p = argv0; *p; p++) - if (*p == '/') - { - has_slash = true; - break; - } + if (*p == '/') + { + has_slash = true; + break; + } } if (!has_slash) { - /* exec searches paths without slashes in the directory list given - by $PATH. */ - const char *path = getenv ("PATH"); - - if (path != NULL) - { - const char *p; - const char *p_next; - - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - char *concat_name; - - for (q = p; *q; q++) - if (*q == ':') - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - - /* We have a path item at p, of length p_len. - Now concatenate the path item and argv0. */ - concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); + /* exec searches paths without slashes in the directory list given + by $PATH. */ + const char *path = getenv ("PATH"); + + if (path != NULL) + { + const char *p; + const char *p_next; + + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + char *concat_name; + + for (q = p; *q; q++) + if (*q == ':') + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + + /* We have a path item at p, of length p_len. + Now concatenate the path item and argv0. */ + concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); #ifdef NO_XMALLOC - if (concat_name == NULL) - return NULL; + if (concat_name == NULL) + return NULL; #endif - if (p_len == 0) - /* An empty PATH element designates the current directory. */ - strcpy (concat_name, argv0); - else - { - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, argv0); - } - if (maybe_executable (concat_name)) - return canonicalize_file_name (concat_name); - free (concat_name); - } - } - /* Not found in the PATH, assume the current directory. */ + if (p_len == 0) + /* An empty PATH element designates the current directory. */ + strcpy (concat_name, argv0); + else + { + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, argv0); + } + if (maybe_executable (concat_name)) + return canonicalize_file_name (concat_name); + free (concat_name); + } + } + /* Not found in the PATH, assume the current directory. */ } /* exec treats paths containing slashes as relative to the current directory. */ @@ -273,27 +283,31 @@ static void prepare_relocate (const char *orig_installprefix, const char *orig_installdir, - const char *argv0) + const char *argv0) { - const char *curr_prefix; + char *curr_prefix; /* Determine the full pathname of the current executable. */ executable_fullname = find_executable (argv0); /* Determine the current installation prefix from it. */ curr_prefix = compute_curr_prefix (orig_installprefix, orig_installdir, - executable_fullname); + executable_fullname); if (curr_prefix != NULL) - /* Now pass this prefix to all copies of the relocate.c source file. */ - set_relocation_prefix (orig_installprefix, curr_prefix); + { + /* Now pass this prefix to all copies of the relocate.c source file. */ + set_relocation_prefix (orig_installprefix, curr_prefix); + + free (curr_prefix); + } } /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ void set_program_name_and_installdir (const char *argv0, - const char *orig_installprefix, - const char *orig_installdir) + const char *orig_installprefix, + const char *orig_installdir) { const char *argv0_stripped = argv0; @@ -305,42 +319,42 @@ const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); if (argv0_len > 4 + exeext_len) if (memcmp (argv0 + argv0_len - exeext_len - 4, ".bin", 4) == 0) - { - if (sizeof (EXEEXT) > sizeof ("")) - { - /* Compare using an inlined copy of c_strncasecmp(), because - the filenames may have undergone a case conversion since - they were packaged. In other words, EXEEXT may be ".exe" - on one system and ".EXE" on another. */ - static const char exeext[] = EXEEXT; - const char *s1 = argv0 + argv0_len - exeext_len; - const char *s2 = exeext; - for (; *s1 != '\0'; s1++, s2++) - { - unsigned char c1 = *s1; - unsigned char c2 = *s2; - if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1) - != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2)) - goto done_stripping; - } - } - /* Remove ".bin" before EXEEXT or its equivalent. */ - { - char *shorter = (char *) xmalloc (argv0_len - 4 + 1); + { + if (sizeof (EXEEXT) > sizeof ("")) + { + /* Compare using an inlined copy of c_strncasecmp(), because + the filenames may have undergone a case conversion since + they were packaged. In other words, EXEEXT may be ".exe" + on one system and ".EXE" on another. */ + static const char exeext[] = EXEEXT; + const char *s1 = argv0 + argv0_len - exeext_len; + const char *s2 = exeext; + for (; *s1 != '\0'; s1++, s2++) + { + unsigned char c1 = *s1; + unsigned char c2 = *s2; + if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1) + != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2)) + goto done_stripping; + } + } + /* Remove ".bin" before EXEEXT or its equivalent. */ + { + char *shorter = (char *) xmalloc (argv0_len - 4 + 1); #ifdef NO_XMALLOC - if (shorter != NULL) + if (shorter != NULL) #endif - { - memcpy (shorter, argv0, argv0_len - exeext_len - 4); - if (sizeof (EXEEXT) > sizeof ("")) - memcpy (shorter + argv0_len - exeext_len - 4, - argv0 + argv0_len - exeext_len - 4, - exeext_len); - shorter[argv0_len - 4] = '\0'; - argv0_stripped = shorter; - } - } - done_stripping: ; + { + memcpy (shorter, argv0, argv0_len - exeext_len - 4); + if (sizeof (EXEEXT) > sizeof ("")) + memcpy (shorter + argv0_len - exeext_len - 4, + argv0 + argv0_len - exeext_len - 4, + exeext_len); + shorter[argv0_len - 4] = '\0'; + argv0_stripped = shorter; + } + } + done_stripping: ; } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/propername.c gettext-0.18.1.1/gettext-tools/gnulib-lib/propername.c --- gettext-0.17/gettext-tools/gnulib-lib/propername.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/propername.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -20,6 +20,8 @@ /* Specification. */ #include "propername.h" +#include +#include #include #include #include @@ -27,14 +29,123 @@ # include #endif +#include "trim.h" +#include "mbchar.h" +#include "mbuiter.h" #include "localcharset.h" #include "c-strcase.h" #include "xstriconv.h" -#include "c-strstr.h" #include "xalloc.h" #include "gettext.h" +/* Tests whether STRING contains trim (SUB), starting and ending at word + boundaries. + Here, instead of implementing Unicode Standard Annex #29 for determining + word boundaries, we assume that trim (SUB) starts and ends with words and + only test whether the part before it ends with a non-word and the part + after it starts with a non-word. */ +static bool +mbsstr_trimmed_wordbounded (const char *string, const char *sub) +{ + char *tsub = trim (sub); + bool found = false; + + for (; *string != '\0';) + { + const char *tsub_in_string = mbsstr (string, tsub); + if (tsub_in_string == NULL) + break; + else + { + if (MB_CUR_MAX > 1) + { + mbui_iterator_t string_iter; + bool word_boundary_before; + bool word_boundary_after; + + mbui_init (string_iter, string); + word_boundary_before = true; + if (mbui_cur_ptr (string_iter) < tsub_in_string) + { + mbchar_t last_char_before_tsub; + do + { + if (!mbui_avail (string_iter)) + abort (); + last_char_before_tsub = mbui_cur (string_iter); + mbui_advance (string_iter); + } + while (mbui_cur_ptr (string_iter) < tsub_in_string); + if (mb_isalnum (last_char_before_tsub)) + word_boundary_before = false; + } + + mbui_init (string_iter, tsub_in_string); + { + mbui_iterator_t tsub_iter; + + for (mbui_init (tsub_iter, tsub); + mbui_avail (tsub_iter); + mbui_advance (tsub_iter)) + { + if (!mbui_avail (string_iter)) + abort (); + mbui_advance (string_iter); + } + } + word_boundary_after = true; + if (mbui_avail (string_iter)) + { + mbchar_t first_char_after_tsub = mbui_cur (string_iter); + if (mb_isalnum (first_char_after_tsub)) + word_boundary_after = false; + } + + if (word_boundary_before && word_boundary_after) + { + found = true; + break; + } + + mbui_init (string_iter, tsub_in_string); + if (!mbui_avail (string_iter)) + break; + string = tsub_in_string + mb_len (mbui_cur (string_iter)); + } + else + { + bool word_boundary_before; + const char *p; + bool word_boundary_after; + + word_boundary_before = true; + if (string < tsub_in_string) + if (isalnum ((unsigned char) tsub_in_string[-1])) + word_boundary_before = false; + + p = tsub_in_string + strlen (tsub); + word_boundary_after = true; + if (*p != '\0') + if (isalnum ((unsigned char) *p)) + word_boundary_after = false; + + if (word_boundary_before && word_boundary_after) + { + found = true; + break; + } + + if (*tsub_in_string == '\0') + break; + string = tsub_in_string + 1; + } + } + } + free (tsub); + return found; +} + /* Return the localization of NAME. NAME is written in ASCII. */ const char * @@ -46,17 +157,17 @@ if (translation != name) { /* See whether the translation contains the original name. */ - if (mbsstr (translation, name) != NULL) - return translation; + if (mbsstr_trimmed_wordbounded (translation, name)) + return translation; else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - return result; - } + { + /* Return "TRANSLATION (NAME)". */ + char *result = + XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); + + sprintf (result, "%s (%s)", translation, name); + return result; + } } else return name; @@ -85,20 +196,37 @@ { #if HAVE_ICONV name_converted = alloc_name_converted = - xstr_iconv (name_utf8, "UTF-8", locale_code); + xstr_iconv (name_utf8, "UTF-8", locale_code); # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ || _LIBICONV_VERSION >= 0x0105 { - size_t len = strlen (locale_code); - char *locale_code_translit = XNMALLOC (len + 10 + 1, char); - memcpy (locale_code_translit, locale_code, len); - memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1); + char *converted_translit; - name_converted_translit = alloc_name_converted_translit = - xstr_iconv (name_utf8, "UTF-8", locale_code_translit); - - free (locale_code_translit); + size_t len = strlen (locale_code); + char *locale_code_translit = XNMALLOC (len + 10 + 1, char); + memcpy (locale_code_translit, locale_code, len); + memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1); + + converted_translit = + xstr_iconv (name_utf8, "UTF-8", locale_code_translit); + + free (locale_code_translit); + + if (converted_translit != NULL) + { +# if !_LIBICONV_VERSION + /* Don't use the transliteration if it added question marks. + glibc's transliteration falls back to question marks; libiconv's + transliteration does not. + mbschr is equivalent to strchr in this case. */ + if (strchr (converted_translit, '?') != NULL) + free (converted_translit); + else +# endif + name_converted_translit = alloc_name_converted_translit = + converted_translit; + } } # endif #endif @@ -111,47 +239,73 @@ /* The name in locale encoding. */ name = (name_converted != NULL ? name_converted : - name_converted_translit != NULL ? name_converted_translit : - name_ascii); + name_converted_translit != NULL ? name_converted_translit : + name_ascii); - if (translation != name_ascii) + /* See whether we have a translation. Some translators have not understood + that they should use the UTF-8 form of the name, if possible. So if the + translator provided a no-op translation, we ignore it. */ + if (strcmp (translation, name_ascii) != 0) { - /* See whether the translation contains the original name. - The multibyte-aware mbsstr() is not absolutely necessary here. */ - if (c_strstr (translation, name_ascii) != NULL - || (name_converted != NULL - && mbsstr (translation, name_converted) != NULL) - || (name_converted_translit != NULL - && mbsstr (translation, name_converted_translit) != NULL)) - { - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return translation; - } + /* See whether the translation contains the original name. */ + if (mbsstr_trimmed_wordbounded (translation, name_ascii) + || (name_converted != NULL + && mbsstr_trimmed_wordbounded (translation, name_converted)) + || (name_converted_translit != NULL + && mbsstr_trimmed_wordbounded (translation, name_converted_translit))) + { + if (alloc_name_converted != NULL) + free (alloc_name_converted); + if (alloc_name_converted_translit != NULL) + free (alloc_name_converted_translit); + return translation; + } else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return result; - } + { + /* Return "TRANSLATION (NAME)". */ + char *result = + XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); + + sprintf (result, "%s (%s)", translation, name); + + if (alloc_name_converted != NULL) + free (alloc_name_converted); + if (alloc_name_converted_translit != NULL) + free (alloc_name_converted_translit); + return result; + } } else { if (alloc_name_converted != NULL && alloc_name_converted != name) - free (alloc_name_converted); + free (alloc_name_converted); if (alloc_name_converted_translit != NULL - && alloc_name_converted_translit != name) - free (alloc_name_converted_translit); + && alloc_name_converted_translit != name) + free (alloc_name_converted_translit); return name; } } + +#ifdef TEST1 +# include +int +main (int argc, char *argv[]) +{ + setlocale (LC_ALL, ""); + if (mbsstr_trimmed_wordbounded (argv[1], argv[2])) + printf("found\n"); + return 0; +} +#endif + +#ifdef TEST2 +# include +# include +int +main (int argc, char *argv[]) +{ + setlocale (LC_ALL, ""); + printf ("%s\n", proper_name_utf8 ("Franc,ois Pinard", "Fran\303\247ois Pinard")); + return 0; +} +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/propername.h gettext-0.18.1.1/gettext-tools/gnulib-lib/propername.h --- gettext-0.17/gettext-tools/gnulib-lib/propername.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/propername.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Localization of proper names. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -15,6 +15,71 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +/* INTRODUCTION + + What do + + Torbjörn Granlund (coreutils) + François Pinard (coreutils) + Danilo Šegan (gettext) + + have in common? + + A non-ASCII name. This causes trouble in the --version output. The simple + "solution", unfortunately mutilates the name. + + $ du --version| grep Granlund + Écrit par Torbjorn Granlund, David MacKenzie, Paul Eggert et Jim Meyering. + + $ ptx --version| grep Pinard + Écrit par F. Pinard. + + What is desirable, is to print the full name if the output character set + allows it, and the ASCIIfied name only as a fallback. + + $ recode-sr-latin --version + ... + Written by Danilo Šegan and Bruno Haible. + + $ LC_ALL=C recode-sr-latin --version + ... + Written by Danilo Segan and Bruno Haible. + + The 'propername' module does exactly this. Plus, for languages that use + a different writing system than the Latin alphabet, it allows a translator + to write the name using that different writing system. In that case the + output will look like this: + () + + To use the 'propername' module is done in three simple steps: + + 1) Add it to the list of gnulib modules to import, + + 2) Change the arguments of version_etc, from + + from "Paul Eggert" + to proper_name ("Paul Eggert") + + from "Torbjorn Granlund" + to proper_name_utf8 ("Torbjorn Granlund", "Torbj\303\266rn Granlund") + + from "F. Pinard" + to proper_name_utf8 ("Franc,ois Pinard", "Fran\303\247ois Pinard") + + (Optionally, here you can also add / * TRANSLATORS: ... * / comments + explaining how the name is written or pronounced.) + + 3) If you are using GNU gettext version 0.16.1 or older, in po/Makevars, + in the definition of the XGETTEXT_OPTIONS variable, add: + + --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' + --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' + + This specifies automatic comments for the translator. (Requires + xgettext >= 0.15. The double-quotes inside the quoted string are on + purpose: they are part of the --keyword argument syntax.) + */ + #ifndef _PROPERNAME_H #define _PROPERNAME_H @@ -31,7 +96,7 @@ escape sequences. NAME_ASCII is a fallback written only with ASCII characters. */ extern const char * proper_name_utf8 (const char *name_ascii, - const char *name_utf8); + const char *name_utf8); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/quotearg.c gettext-0.18.1.1/gettext-tools/gnulib-lib/quotearg.c --- gettext-0.17/gettext-tools/gnulib-lib/quotearg.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/quotearg.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,7 +1,7 @@ /* quotearg.c - quote arguments for output - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007 Free - Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, + 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -37,23 +37,6 @@ #define _(msgid) gettext (msgid) #define N_(msgid) msgid -#if !HAVE_MBRTOWC -/* Disable multibyte processing entirely. Since MB_CUR_MAX is 1, the - other macros are defined only for documentation and to satisfy C - syntax. */ -# undef MB_CUR_MAX -# define MB_CUR_MAX 1 -# undef mbstate_t -# define mbstate_t int -# define mbrtowc(pwc, s, n, ps) ((*(pwc) = *(s)) != 0) -# define iswprint(wc) isprint ((unsigned char) (wc)) -# undef HAVE_MBSINIT -#endif - -#if !defined mbsinit && !HAVE_MBSINIT -# define mbsinit(ps) 1 -#endif - #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) #endif @@ -65,9 +48,18 @@ /* Basic quoting style. */ enum quoting_style style; + /* Additional flags. Bitwise combination of enum quoting_flags. */ + int flags; + /* Quote the characters indicated by this bit vector even if the quoting style would not normally require them to be quoted. */ unsigned int quote_these_too[(UCHAR_MAX / INT_BITS) + 1]; + + /* The left quote for custom_quoting_style. */ + char const *left_quote; + + /* The right quote for custom_quoting_style. */ + char const *right_quote; }; /* Names of quoting styles. */ @@ -77,6 +69,7 @@ "shell", "shell-always", "c", + "c-maybe", "escape", "locale", "clocale", @@ -90,6 +83,7 @@ shell_quoting_style, shell_always_quoting_style, c_quoting_style, + c_maybe_quoting_style, escape_quoting_style, locale_quoting_style, clocale_quoting_style @@ -106,7 +100,7 @@ { int e = errno; struct quoting_options *p = xmemdup (o ? o : &default_quoting_options, - sizeof *o); + sizeof *o); errno = e; return p; } @@ -143,6 +137,45 @@ return r; } +/* In O (or in the default if O is null), + set the value of the quoting options flag to I, which can be a + bitwise combination of enum quoting_flags, or 0 for default + behavior. Return the old value. */ +int +set_quoting_flags (struct quoting_options *o, int i) +{ + int r; + if (!o) + o = &default_quoting_options; + r = o->flags; + o->flags = i; + return r; +} + +void +set_custom_quoting (struct quoting_options *o, + char const *left_quote, char const *right_quote) +{ + if (!o) + o = &default_quoting_options; + o->style = custom_quoting_style; + if (!left_quote || !right_quote) + abort (); + o->left_quote = left_quote; + o->right_quote = right_quote; +} + +/* Return quoting options for STYLE, with no extra quoting. */ +static struct quoting_options +quoting_options_from_style (enum quoting_style style) +{ + struct quoting_options o; + o.style = style; + o.flags = 0; + memset (o.quote_these_too, 0, sizeof o.quote_these_too); + return o; +} + /* MSGID approximates a quotation mark. Return its translation if it has one; otherwise, return either it or "\"", depending on S. */ static char const * @@ -155,8 +188,8 @@ } /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of - argument ARG (of size ARGSIZE), using QUOTING_STYLE and the - non-quoting-style part of O to control quoting. + argument ARG (of size ARGSIZE), using QUOTING_STYLE, FLAGS, and + QUOTE_THESE_TOO to control quoting. Terminate the output with a null character, and return the written size of the output, not counting the terminating null. If BUFFERSIZE is too small to store the output string, return the @@ -164,14 +197,16 @@ If ARGSIZE is SIZE_MAX, use the string length of the argument for ARGSIZE. This function acts like quotearg_buffer (BUFFER, BUFFERSIZE, ARG, - ARGSIZE, O), except it uses QUOTING_STYLE instead of the quoting - style specified by O, and O may not be null. */ + ARGSIZE, O), except it breaks O into its component pieces and is + not careful about errno. */ static size_t quotearg_buffer_restyled (char *buffer, size_t buffersize, - char const *arg, size_t argsize, - enum quoting_style quoting_style, - struct quoting_options const *o) + char const *arg, size_t argsize, + enum quoting_style quoting_style, int flags, + unsigned int const *quote_these_too, + char const *left_quote, + char const *right_quote) { size_t i; size_t len = 0; @@ -179,20 +214,26 @@ size_t quote_string_len = 0; bool backslash_escapes = false; bool unibyte_locale = MB_CUR_MAX == 1; + bool elide_outer_quotes = (flags & QA_ELIDE_OUTER_QUOTES) != 0; #define STORE(c) \ do \ { \ - if (len < buffersize) \ - buffer[len] = (c); \ - len++; \ + if (len < buffersize) \ + buffer[len] = (c); \ + len++; \ } \ while (0) switch (quoting_style) { + case c_maybe_quoting_style: + quoting_style = c_quoting_style; + elide_outer_quotes = true; + /* Fall through. */ case c_quoting_style: - STORE ('"'); + if (!elide_outer_quotes) + STORE ('"'); backslash_escapes = true; quote_string = "\""; quote_string_len = 1; @@ -200,301 +241,364 @@ case escape_quoting_style: backslash_escapes = true; + elide_outer_quotes = false; break; case locale_quoting_style: case clocale_quoting_style: + case custom_quoting_style: { - /* TRANSLATORS: - Get translations for open and closing quotation marks. - - The message catalog should translate "`" to a left - quotation mark suitable for the locale, and similarly for - "'". If the catalog has no translation, - locale_quoting_style quotes `like this', and - clocale_quoting_style quotes "like this". - - For example, an American English Unicode locale should - translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and - should translate "'" to U+201D (RIGHT DOUBLE QUOTATION - MARK). A British English Unicode locale should instead - translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and - U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. - - If you don't know what to put here, please see - - and use glyphs suitable for your language. */ - - char const *left = gettext_quote (N_("`"), quoting_style); - char const *right = gettext_quote (N_("'"), quoting_style); - for (quote_string = left; *quote_string; quote_string++) - STORE (*quote_string); - backslash_escapes = true; - quote_string = right; - quote_string_len = strlen (quote_string); + if (quoting_style != custom_quoting_style) + { + /* TRANSLATORS: + Get translations for open and closing quotation marks. + + The message catalog should translate "`" to a left + quotation mark suitable for the locale, and similarly for + "'". If the catalog has no translation, + locale_quoting_style quotes `like this', and + clocale_quoting_style quotes "like this". + + For example, an American English Unicode locale should + translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and + should translate "'" to U+201D (RIGHT DOUBLE QUOTATION + MARK). A British English Unicode locale should instead + translate these to U+2018 (LEFT SINGLE QUOTATION MARK) + and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. + + If you don't know what to put here, please see + + and use glyphs suitable for your language. */ + left_quote = gettext_quote (N_("`"), quoting_style); + right_quote = gettext_quote (N_("'"), quoting_style); + } + if (!elide_outer_quotes) + for (quote_string = left_quote; *quote_string; quote_string++) + STORE (*quote_string); + backslash_escapes = true; + quote_string = right_quote; + quote_string_len = strlen (quote_string); } break; + case shell_quoting_style: + quoting_style = shell_always_quoting_style; + elide_outer_quotes = true; + /* Fall through. */ case shell_always_quoting_style: - STORE ('\''); + if (!elide_outer_quotes) + STORE ('\''); quote_string = "'"; quote_string_len = 1; break; - default: + case literal_quoting_style: + elide_outer_quotes = false; break; + + default: + abort (); } for (i = 0; ! (argsize == SIZE_MAX ? arg[i] == '\0' : i == argsize); i++) { unsigned char c; unsigned char esc; + bool is_right_quote = false; if (backslash_escapes - && quote_string_len - && i + quote_string_len <= argsize - && memcmp (arg + i, quote_string, quote_string_len) == 0) - STORE ('\\'); + && quote_string_len + && i + quote_string_len <= argsize + && memcmp (arg + i, quote_string, quote_string_len) == 0) + { + if (elide_outer_quotes) + goto force_outer_quoting_style; + is_right_quote = true; + } c = arg[i]; switch (c) - { - case '\0': - if (backslash_escapes) - { - STORE ('\\'); - STORE ('0'); - STORE ('0'); - c = '0'; - } - break; - - case '?': - switch (quoting_style) - { - case shell_quoting_style: - goto use_shell_always_quoting_style; - - case c_quoting_style: - if (i + 2 < argsize && arg[i + 1] == '?') - switch (arg[i + 2]) - { - case '!': case '\'': - case '(': case ')': case '-': case '/': - case '<': case '=': case '>': - /* Escape the second '?' in what would otherwise be - a trigraph. */ - c = arg[i + 2]; - i += 2; - STORE ('?'); - STORE ('\\'); - STORE ('?'); - break; - - default: - break; - } - break; - - default: - break; - } - break; - - case '\a': esc = 'a'; goto c_escape; - case '\b': esc = 'b'; goto c_escape; - case '\f': esc = 'f'; goto c_escape; - case '\n': esc = 'n'; goto c_and_shell_escape; - case '\r': esc = 'r'; goto c_and_shell_escape; - case '\t': esc = 't'; goto c_and_shell_escape; - case '\v': esc = 'v'; goto c_escape; - case '\\': esc = c; goto c_and_shell_escape; - - c_and_shell_escape: - if (quoting_style == shell_quoting_style) - goto use_shell_always_quoting_style; - c_escape: - if (backslash_escapes) - { - c = esc; - goto store_escape; - } - break; - - case '{': case '}': /* sometimes special if isolated */ - if (! (argsize == SIZE_MAX ? arg[1] == '\0' : argsize == 1)) - break; - /* Fall through. */ - case '#': case '~': - if (i != 0) - break; - /* Fall through. */ - case ' ': - case '!': /* special in bash */ - case '"': case '$': case '&': - case '(': case ')': case '*': case ';': - case '<': - case '=': /* sometimes special in 0th or (with "set -k") later args */ - case '>': case '[': - case '^': /* special in old /bin/sh, e.g. SunOS 4.1.4 */ - case '`': case '|': - /* A shell special character. In theory, '$' and '`' could - be the first bytes of multibyte characters, which means - we should check them with mbrtowc, but in practice this - doesn't happen so it's not worth worrying about. */ - if (quoting_style == shell_quoting_style) - goto use_shell_always_quoting_style; - break; - - case '\'': - switch (quoting_style) - { - case shell_quoting_style: - goto use_shell_always_quoting_style; - - case shell_always_quoting_style: - STORE ('\''); - STORE ('\\'); - STORE ('\''); - break; - - default: - break; - } - break; - - case '%': case '+': case ',': case '-': case '.': case '/': - case '0': case '1': case '2': case '3': case '4': case '5': - case '6': case '7': case '8': case '9': case ':': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': case ']': case '_': case 'a': case 'b': - case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': - case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': - case 'o': case 'p': case 'q': case 'r': case 's': case 't': - case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': - /* These characters don't cause problems, no matter what the - quoting style is. They cannot start multibyte sequences. */ - break; - - default: - /* If we have a multibyte sequence, copy it until we reach - its end, find an error, or come back to the initial shift - state. For C-like styles, if the sequence has - unprintable characters, escape the whole sequence, since - we can't easily escape single characters within it. */ - { - /* Length of multibyte sequence found so far. */ - size_t m; - - bool printable; - - if (unibyte_locale) - { - m = 1; - printable = isprint (c) != 0; - } - else - { - mbstate_t mbstate; - memset (&mbstate, 0, sizeof mbstate); - - m = 0; - printable = true; - if (argsize == SIZE_MAX) - argsize = strlen (arg); - - do - { - wchar_t w; - size_t bytes = mbrtowc (&w, &arg[i + m], - argsize - (i + m), &mbstate); - if (bytes == 0) - break; - else if (bytes == (size_t) -1) - { - printable = false; - break; - } - else if (bytes == (size_t) -2) - { - printable = false; - while (i + m < argsize && arg[i + m]) - m++; - break; - } - else - { - /* Work around a bug with older shells that "see" a '\' - that is really the 2nd byte of a multibyte character. - In practice the problem is limited to ASCII - chars >= '@' that are shell special chars. */ - if ('[' == 0x5b && quoting_style == shell_quoting_style) - { - size_t j; - for (j = 1; j < bytes; j++) - switch (arg[i + m + j]) - { - case '[': case '\\': case '^': - case '`': case '|': - goto use_shell_always_quoting_style; - - default: - break; - } - } - - if (! iswprint (w)) - printable = false; - m += bytes; - } - } - while (! mbsinit (&mbstate)); - } - - if (1 < m || (backslash_escapes && ! printable)) - { - /* Output a multibyte sequence, or an escaped - unprintable unibyte character. */ - size_t ilim = i + m; - - for (;;) - { - if (backslash_escapes && ! printable) - { - STORE ('\\'); - STORE ('0' + (c >> 6)); - STORE ('0' + ((c >> 3) & 7)); - c = '0' + (c & 7); - } - if (ilim <= i + 1) - break; - STORE (c); - c = arg[++i]; - } - - goto store_c; - } - } - } - - if (! (backslash_escapes - && o->quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS)))) - goto store_c; + { + case '\0': + if (backslash_escapes) + { + if (elide_outer_quotes) + goto force_outer_quoting_style; + STORE ('\\'); + /* If quote_string were to begin with digits, we'd need to + test for the end of the arg as well. However, it's + hard to imagine any locale that would use digits in + quotes, and set_custom_quoting is documented not to + accept them. */ + if (i + 1 < argsize && '0' <= arg[i + 1] && arg[i + 1] <= '9') + { + STORE ('0'); + STORE ('0'); + } + c = '0'; + /* We don't have to worry that this last '0' will be + backslash-escaped because, again, quote_string should + not start with it and because quote_these_too is + documented as not accepting it. */ + } + else if (flags & QA_ELIDE_NULL_BYTES) + continue; + break; + + case '?': + switch (quoting_style) + { + case shell_always_quoting_style: + if (elide_outer_quotes) + goto force_outer_quoting_style; + break; + + case c_quoting_style: + if ((flags & QA_SPLIT_TRIGRAPHS) + && i + 2 < argsize && arg[i + 1] == '?') + switch (arg[i + 2]) + { + case '!': case '\'': + case '(': case ')': case '-': case '/': + case '<': case '=': case '>': + /* Escape the second '?' in what would otherwise be + a trigraph. */ + if (elide_outer_quotes) + goto force_outer_quoting_style; + c = arg[i + 2]; + i += 2; + STORE ('?'); + STORE ('"'); + STORE ('"'); + STORE ('?'); + break; + + default: + break; + } + break; + + default: + break; + } + break; + + case '\a': esc = 'a'; goto c_escape; + case '\b': esc = 'b'; goto c_escape; + case '\f': esc = 'f'; goto c_escape; + case '\n': esc = 'n'; goto c_and_shell_escape; + case '\r': esc = 'r'; goto c_and_shell_escape; + case '\t': esc = 't'; goto c_and_shell_escape; + case '\v': esc = 'v'; goto c_escape; + case '\\': esc = c; + /* No need to escape the escape if we are trying to elide + outer quotes and nothing else is problematic. */ + if (backslash_escapes && elide_outer_quotes && quote_string_len) + goto store_c; + + c_and_shell_escape: + if (quoting_style == shell_always_quoting_style + && elide_outer_quotes) + goto force_outer_quoting_style; + /* Fall through. */ + c_escape: + if (backslash_escapes) + { + c = esc; + goto store_escape; + } + break; + + case '{': case '}': /* sometimes special if isolated */ + if (! (argsize == SIZE_MAX ? arg[1] == '\0' : argsize == 1)) + break; + /* Fall through. */ + case '#': case '~': + if (i != 0) + break; + /* Fall through. */ + case ' ': + case '!': /* special in bash */ + case '"': case '$': case '&': + case '(': case ')': case '*': case ';': + case '<': + case '=': /* sometimes special in 0th or (with "set -k") later args */ + case '>': case '[': + case '^': /* special in old /bin/sh, e.g. SunOS 4.1.4 */ + case '`': case '|': + /* A shell special character. In theory, '$' and '`' could + be the first bytes of multibyte characters, which means + we should check them with mbrtowc, but in practice this + doesn't happen so it's not worth worrying about. */ + if (quoting_style == shell_always_quoting_style + && elide_outer_quotes) + goto force_outer_quoting_style; + break; + + case '\'': + if (quoting_style == shell_always_quoting_style) + { + if (elide_outer_quotes) + goto force_outer_quoting_style; + STORE ('\''); + STORE ('\\'); + STORE ('\''); + } + break; + + case '%': case '+': case ',': case '-': case '.': case '/': + case '0': case '1': case '2': case '3': case '4': case '5': + case '6': case '7': case '8': case '9': case ':': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': case ']': case '_': case 'a': case 'b': + case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': + case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': + case 'o': case 'p': case 'q': case 'r': case 's': case 't': + case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': + /* These characters don't cause problems, no matter what the + quoting style is. They cannot start multibyte sequences. + A digit or a special letter would cause trouble if it + appeared at the beginning of quote_string because we'd then + escape by prepending a backslash. However, it's hard to + imagine any locale that would use digits or letters as + quotes, and set_custom_quoting is documented not to accept + them. Also, a digit or a special letter would cause + trouble if it appeared in quote_these_too, but that's also + documented as not accepting them. */ + break; + + default: + /* If we have a multibyte sequence, copy it until we reach + its end, find an error, or come back to the initial shift + state. For C-like styles, if the sequence has + unprintable characters, escape the whole sequence, since + we can't easily escape single characters within it. */ + { + /* Length of multibyte sequence found so far. */ + size_t m; + + bool printable; + + if (unibyte_locale) + { + m = 1; + printable = isprint (c) != 0; + } + else + { + mbstate_t mbstate; + memset (&mbstate, 0, sizeof mbstate); + + m = 0; + printable = true; + if (argsize == SIZE_MAX) + argsize = strlen (arg); + + do + { + wchar_t w; + size_t bytes = mbrtowc (&w, &arg[i + m], + argsize - (i + m), &mbstate); + if (bytes == 0) + break; + else if (bytes == (size_t) -1) + { + printable = false; + break; + } + else if (bytes == (size_t) -2) + { + printable = false; + while (i + m < argsize && arg[i + m]) + m++; + break; + } + else + { + /* Work around a bug with older shells that "see" a '\' + that is really the 2nd byte of a multibyte character. + In practice the problem is limited to ASCII + chars >= '@' that are shell special chars. */ + if ('[' == 0x5b && elide_outer_quotes + && quoting_style == shell_always_quoting_style) + { + size_t j; + for (j = 1; j < bytes; j++) + switch (arg[i + m + j]) + { + case '[': case '\\': case '^': + case '`': case '|': + goto force_outer_quoting_style; + + default: + break; + } + } + + if (! iswprint (w)) + printable = false; + m += bytes; + } + } + while (! mbsinit (&mbstate)); + } + + if (1 < m || (backslash_escapes && ! printable)) + { + /* Output a multibyte sequence, or an escaped + unprintable unibyte character. */ + size_t ilim = i + m; + + for (;;) + { + if (backslash_escapes && ! printable) + { + if (elide_outer_quotes) + goto force_outer_quoting_style; + STORE ('\\'); + STORE ('0' + (c >> 6)); + STORE ('0' + ((c >> 3) & 7)); + c = '0' + (c & 7); + } + else if (is_right_quote) + { + STORE ('\\'); + is_right_quote = false; + } + if (ilim <= i + 1) + break; + STORE (c); + c = arg[++i]; + } + + goto store_c; + } + } + } + + if (! ((backslash_escapes || elide_outer_quotes) + && quote_these_too + && quote_these_too[c / INT_BITS] & (1 << (c % INT_BITS))) + && !is_right_quote) + goto store_c; store_escape: + if (elide_outer_quotes) + goto force_outer_quoting_style; STORE ('\\'); store_c: STORE (c); } - if (i == 0 && quoting_style == shell_quoting_style) - goto use_shell_always_quoting_style; + if (len == 0 && quoting_style == shell_always_quoting_style + && elide_outer_quotes) + goto force_outer_quoting_style; - if (quote_string) + if (quote_string && !elide_outer_quotes) for (; *quote_string; quote_string++) STORE (*quote_string); @@ -502,9 +606,13 @@ buffer[len] = '\0'; return len; - use_shell_always_quoting_style: + force_outer_quoting_style: + /* Don't reuse quote_these_too, since the addition of outer quotes + sufficiently quotes the specified characters. */ return quotearg_buffer_restyled (buffer, buffersize, arg, argsize, - shell_always_quoting_style, o); + quoting_style, + flags & ~QA_ELIDE_OUTER_QUOTES, NULL, + left_quote, right_quote); } /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of @@ -518,28 +626,51 @@ ARGSIZE. */ size_t quotearg_buffer (char *buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o) + char const *arg, size_t argsize, + struct quoting_options const *o) { struct quoting_options const *p = o ? o : &default_quoting_options; int e = errno; size_t r = quotearg_buffer_restyled (buffer, buffersize, arg, argsize, - p->style, p); + p->style, p->flags, p->quote_these_too, + p->left_quote, p->right_quote); errno = e; return r; } -/* Like quotearg_buffer (..., ARG, ARGSIZE, O), except return newly - allocated storage containing the quoted string. */ +/* Equivalent to quotearg_alloc (ARG, ARGSIZE, NULL, O). */ char * quotearg_alloc (char const *arg, size_t argsize, - struct quoting_options const *o) + struct quoting_options const *o) +{ + return quotearg_alloc_mem (arg, argsize, NULL, o); +} + +/* Like quotearg_buffer (..., ARG, ARGSIZE, O), except return newly + allocated storage containing the quoted string, and store the + resulting size into *SIZE, if non-NULL. The result can contain + embedded null bytes only if ARGSIZE is not SIZE_MAX, SIZE is not + NULL, and set_quoting_flags has not set the null byte elision + flag. */ +char * +quotearg_alloc_mem (char const *arg, size_t argsize, size_t *size, + struct quoting_options const *o) { + struct quoting_options const *p = o ? o : &default_quoting_options; int e = errno; - size_t bufsize = quotearg_buffer (0, 0, arg, argsize, o) + 1; + /* Elide embedded null bytes if we can't return a size. */ + int flags = p->flags | (size ? 0 : QA_ELIDE_NULL_BYTES); + size_t bufsize = quotearg_buffer_restyled (0, 0, arg, argsize, p->style, + flags, p->quote_these_too, + p->left_quote, + p->right_quote) + 1; char *buf = xcharalloc (bufsize); - quotearg_buffer (buf, bufsize, arg, argsize, o); + quotearg_buffer_restyled (buf, bufsize, arg, argsize, p->style, flags, + p->quote_these_too, + p->left_quote, p->right_quote); errno = e; + if (size) + *size = bufsize - 1; return buf; } @@ -588,7 +719,7 @@ to allow for future extensions (using negative values). */ static char * quotearg_n_options (int n, char const *arg, size_t argsize, - struct quoting_options const *options) + struct quoting_options const *options) { int e = errno; @@ -601,19 +732,19 @@ if (nslots <= n0) { /* FIXME: technically, the type of n1 should be `unsigned int', - but that evokes an unsuppressible warning from gcc-4.0.1 and - older. If gcc ever provides an option to suppress that warning, - revert to the original type, so that the test in xalloc_oversized - is once again performed only at compile time. */ + but that evokes an unsuppressible warning from gcc-4.0.1 and + older. If gcc ever provides an option to suppress that warning, + revert to the original type, so that the test in xalloc_oversized + is once again performed only at compile time. */ size_t n1 = n0 + 1; bool preallocated = (sv == &slotvec0); if (xalloc_oversized (n1, sizeof *sv)) - xalloc_die (); + xalloc_die (); slotvec = sv = xrealloc (preallocated ? NULL : sv, n1 * sizeof *sv); if (preallocated) - *sv = slotvec0; + *sv = slotvec0; memset (sv + nslots, 0, (n1 - nslots) * sizeof *sv); nslots = n1; } @@ -621,15 +752,24 @@ { size_t size = sv[n].size; char *val = sv[n].val; - size_t qsize = quotearg_buffer (val, size, arg, argsize, options); + /* Elide embedded null bytes since we don't return a size. */ + int flags = options->flags | QA_ELIDE_NULL_BYTES; + size_t qsize = quotearg_buffer_restyled (val, size, arg, argsize, + options->style, flags, + options->quote_these_too, + options->left_quote, + options->right_quote); if (size <= qsize) { - sv[n].size = size = qsize + 1; - if (val != slot0) - free (val); - sv[n].val = val = xcharalloc (size); - quotearg_buffer (val, size, arg, argsize, options); + sv[n].size = size = qsize + 1; + if (val != slot0) + free (val); + sv[n].val = val = xcharalloc (size); + quotearg_buffer_restyled (val, size, arg, argsize, options->style, + flags, options->quote_these_too, + options->left_quote, + options->right_quote); } errno = e; @@ -644,19 +784,21 @@ } char * +quotearg_n_mem (int n, char const *arg, size_t argsize) +{ + return quotearg_n_options (n, arg, argsize, &default_quoting_options); +} + +char * quotearg (char const *arg) { return quotearg_n (0, arg); } -/* Return quoting options for STYLE, with no extra quoting. */ -static struct quoting_options -quoting_options_from_style (enum quoting_style style) +char * +quotearg_mem (char const *arg, size_t argsize) { - struct quoting_options o; - o.style = style; - memset (o.quote_these_too, 0, sizeof o.quote_these_too); - return o; + return quotearg_n_mem (0, arg, argsize); } char * @@ -668,7 +810,7 @@ char * quotearg_n_style_mem (int n, enum quoting_style s, - char const *arg, size_t argsize) + char const *arg, size_t argsize) { struct quoting_options const o = quoting_options_from_style (s); return quotearg_n_options (n, arg, argsize, &o); @@ -681,12 +823,24 @@ } char * -quotearg_char (char const *arg, char ch) +quotearg_style_mem (enum quoting_style s, char const *arg, size_t argsize) +{ + return quotearg_n_style_mem (0, s, arg, argsize); +} + +char * +quotearg_char_mem (char const *arg, size_t argsize, char ch) { struct quoting_options options; options = default_quoting_options; set_char_quoting (&options, ch, 1); - return quotearg_n_options (0, arg, SIZE_MAX, &options); + return quotearg_n_options (0, arg, argsize, &options); +} + +char * +quotearg_char (char const *arg, char ch) +{ + return quotearg_char_mem (arg, SIZE_MAX, ch); } char * @@ -694,3 +848,42 @@ { return quotearg_char (arg, ':'); } + +char * +quotearg_colon_mem (char const *arg, size_t argsize) +{ + return quotearg_char_mem (arg, argsize, ':'); +} + +char * +quotearg_n_custom (int n, char const *left_quote, + char const *right_quote, char const *arg) +{ + return quotearg_n_custom_mem (n, left_quote, right_quote, arg, + SIZE_MAX); +} + +char * +quotearg_n_custom_mem (int n, char const *left_quote, + char const *right_quote, + char const *arg, size_t argsize) +{ + struct quoting_options o = default_quoting_options; + set_custom_quoting (&o, left_quote, right_quote); + return quotearg_n_options (n, arg, argsize, &o); +} + +char * +quotearg_custom (char const *left_quote, char const *right_quote, + char const *arg) +{ + return quotearg_n_custom (0, left_quote, right_quote, arg); +} + +char * +quotearg_custom_mem (char const *left_quote, char const *right_quote, + char const *arg, size_t argsize) +{ + return quotearg_n_custom_mem (0, left_quote, right_quote, arg, + argsize); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/quotearg.h gettext-0.18.1.1/gettext-tools/gnulib-lib/quotearg.h --- gettext-0.17/gettext-tools/gnulib-lib/quotearg.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/quotearg.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,7 +1,7 @@ /* quotearg.h - quote arguments for output - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006 Free - Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2008, 2009, 2010 + Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,34 +23,206 @@ # include -/* Basic quoting styles. */ +/* Basic quoting styles. For each style, an example is given on the + input strings "simple", "\0 \t\n'\"\033?""?/\\", and "a:b", using + quotearg_buffer, quotearg_mem, and quotearg_colon_mem with that + style and the default flags and quoted characters. Note that the + examples are shown here as valid C strings rather than what + displays on a terminal (with "??/" as a trigraph for "\\"). */ enum quoting_style { - /* Output names as-is (ls --quoting-style=literal). */ + /* Output names as-is (ls --quoting-style=literal). Can result in + embedded null bytes if QA_ELIDE_NULL_BYTES is not in + effect. + + quotearg_buffer: + "simple", "\0 \t\n'\"\033??/\\", "a:b" + quotearg: + "simple", " \t\n'\"\033??/\\", "a:b" + quotearg_colon: + "simple", " \t\n'\"\033??/\\", "a:b" + */ literal_quoting_style, /* Quote names for the shell if they contain shell metacharacters - or would cause ambiguous output (ls --quoting-style=shell). */ + or would cause ambiguous output (ls --quoting-style=shell). + Can result in embedded null bytes if QA_ELIDE_NULL_BYTES is not + in effect. + + quotearg_buffer: + "simple", "'\0 \t\n'\\''\"\033??/\\'", "a:b" + quotearg: + "simple", "' \t\n'\\''\"\033??/\\'", "a:b" + quotearg_colon: + "simple", "' \t\n'\\''\"\033??/\\'", "'a:b'" + */ shell_quoting_style, /* Quote names for the shell, even if they would normally not - require quoting (ls --quoting-style=shell-always). */ + require quoting (ls --quoting-style=shell-always). Can result + in embedded null bytes if QA_ELIDE_NULL_BYTES is not in effect. + Behaves like shell_quoting_style if QA_ELIDE_OUTER_QUOTES is in + effect. + + quotearg_buffer: + "'simple'", "'\0 \t\n'\\''\"\033??/\\'", "'a:b'" + quotearg: + "'simple'", "' \t\n'\\''\"\033??/\\'", "'a:b'" + quotearg_colon: + "'simple'", "' \t\n'\\''\"\033??/\\'", "'a:b'" + */ shell_always_quoting_style, - /* Quote names as for a C language string (ls --quoting-style=c). */ + /* Quote names as for a C language string (ls --quoting-style=c). + Behaves like c_maybe_quoting_style if QA_ELIDE_OUTER_QUOTES is + in effect. Split into consecutive strings if + QA_SPLIT_TRIGRAPHS. + + quotearg_buffer: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a:b\"" + quotearg: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a:b\"" + quotearg_colon: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a\\:b\"" + */ c_quoting_style, /* Like c_quoting_style except omit the surrounding double-quote - characters (ls --quoting-style=escape). */ + characters if no quoted characters are encountered. + + quotearg_buffer: + "simple", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "a:b" + quotearg: + "simple", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "a:b" + quotearg_colon: + "simple", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a:b\"" + */ + c_maybe_quoting_style, + + /* Like c_quoting_style except always omit the surrounding + double-quote characters and ignore QA_SPLIT_TRIGRAPHS + (ls --quoting-style=escape). + + quotearg_buffer: + "simple", "\\0 \\t\\n'\"\\033??/\\\\", "a:b" + quotearg: + "simple", "\\0 \\t\\n'\"\\033??/\\\\", "a:b" + quotearg_colon: + "simple", "\\0 \\t\\n'\"\\033??/\\\\", "a\\:b" + */ escape_quoting_style, /* Like clocale_quoting_style, but quote `like this' instead of - "like this" in the default C locale (ls --quoting-style=locale). */ + "like this" in the default C locale (ls --quoting-style=locale). + + LC_MESSAGES=C + quotearg_buffer: + "`simple'", "`\\0 \\t\\n\\'\"\\033??/\\\\'", "`a:b'" + quotearg: + "`simple'", "`\\0 \\t\\n\\'\"\\033??/\\\\'", "`a:b'" + quotearg_colon: + "`simple'", "`\\0 \\t\\n\\'\"\\033??/\\\\'", "`a\\:b'" + + LC_MESSAGES=pt_PT.utf8 + quotearg_buffer: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a:b\302\273" + quotearg: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a:b\302\273" + quotearg_colon: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a\\:b\302\273" + */ locale_quoting_style, /* Like c_quoting_style except use quotation marks appropriate for - the locale (ls --quoting-style=clocale). */ - clocale_quoting_style + the locale and ignore QA_SPLIT_TRIGRAPHS + (ls --quoting-style=clocale). + + LC_MESSAGES=C + quotearg_buffer: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a:b\"" + quotearg: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a:b\"" + quotearg_colon: + "\"simple\"", "\"\\0 \\t\\n'\\\"\\033??/\\\\\"", "\"a\\:b\"" + + LC_MESSAGES=pt_PT.utf8 + quotearg_buffer: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a:b\302\273" + quotearg: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a:b\302\273" + quotearg_colon: + "\302\253simple\302\273", + "\302\253\\0 \\t\\n'\"\\033??/\\\\\302\253", "\302\253a\\:b\302\273" + */ + clocale_quoting_style, + + /* Like clocale_quoting_style except use the custom quotation marks + set by set_custom_quoting. If custom quotation marks are not + set, the behavior is undefined. + + left_quote = right_quote = "'" + quotearg_buffer: + "'simple'", "'\\0 \\t\\n\\'\"\\033??/\\\\'", "'a:b'" + quotearg: + "'simple'", "'\\0 \\t\\n\\'\"\\033??/\\\\'", "'a:b'" + quotearg_colon: + "'simple'", "'\\0 \\t\\n\\'\"\\033??/\\\\'", "'a\\:b'" + + left_quote = "(" and right_quote = ")" + quotearg_buffer: + "(simple)", "(\\0 \\t\\n'\"\\033??/\\\\)", "(a:b)" + quotearg: + "(simple)", "(\\0 \\t\\n'\"\\033??/\\\\)", "(a:b)" + quotearg_colon: + "(simple)", "(\\0 \\t\\n'\"\\033??/\\\\)", "(a\\:b)" + + left_quote = ":" and right_quote = " " + quotearg_buffer: + ":simple ", ":\\0\\ \\t\\n'\"\\033??/\\\\ ", ":a:b " + quotearg: + ":simple ", ":\\0\\ \\t\\n'\"\\033??/\\\\ ", ":a:b " + quotearg_colon: + ":simple ", ":\\0\\ \\t\\n'\"\\033??/\\\\ ", ":a\\:b " + + left_quote = "\"'" and right_quote = "'\"" + Notice that this is treated as a single level of quotes or two + levels where the outer quote need not be escaped within the inner + quotes. For two levels where the outer quote must be escaped + within the inner quotes, you must use separate quotearg + invocations. + quotearg_buffer: + "\"'simple'\"", "\"'\\0 \\t\\n\\'\"\\033??/\\\\'\"", "\"'a:b'\"" + quotearg: + "\"'simple'\"", "\"'\\0 \\t\\n\\'\"\\033??/\\\\'\"", "\"'a:b'\"" + quotearg_colon: + "\"'simple'\"", "\"'\\0 \\t\\n\\'\"\\033??/\\\\'\"", "\"'a\\:b'\"" + */ + custom_quoting_style + }; + +/* Flags for use in set_quoting_flags. */ +enum quoting_flags + { + /* Always elide null bytes from styles that do not quote them, + even when the length of the result is available to the + caller. */ + QA_ELIDE_NULL_BYTES = 0x01, + + /* Omit the surrounding quote characters if no escaped characters + are encountered. Note that if no other character needs + escaping, then neither does the escape character. */ + QA_ELIDE_OUTER_QUOTES = 0x02, + + /* In the c_quoting_style and c_maybe_quoting_style, split ANSI + trigraph sequences into concatenated strings (for example, + "?""?/" rather than "??/", which could be confused with + "\\"). */ + QA_SPLIT_TRIGRAPHS = 0x04 }; /* For now, --quoting-style=literal is the default, but this may change. */ @@ -83,9 +255,30 @@ set the value of the quoting options for character C to I. Return the old value. Currently, the only values defined for I are 0 (the default) and 1 (which means to quote the character even if - it would not otherwise be quoted). */ + it would not otherwise be quoted). C must never be a digit or a + letter that has special meaning after a backslash (for example, "\t" + for tab). */ int set_char_quoting (struct quoting_options *o, char c, int i); +/* In O (or in the default if O is null), + set the value of the quoting options flag to I, which can be a + bitwise combination of enum quoting_flags, or 0 for default + behavior. Return the old value. */ +int set_quoting_flags (struct quoting_options *o, int i); + +/* In O (or in the default if O is null), + set the value of the quoting style to custom_quoting_style, + set the left quote to LEFT_QUOTE, and set the right quote to + RIGHT_QUOTE. Each of LEFT_QUOTE and RIGHT_QUOTE must be + null-terminated and can be the empty string. Because backslashes are + used for escaping, it does not make sense for RIGHT_QUOTE to contain + a backslash. RIGHT_QUOTE must not begin with a digit or a letter + that has special meaning after a backslash (for example, "\t" for + tab). */ +void set_custom_quoting (struct quoting_options *o, + char const *left_quote, + char const *right_quote); + /* Place into buffer BUFFER (of size BUFFERSIZE) a quoted version of argument ARG (of size ARGSIZE), using O to control quoting. If O is null, use the default. @@ -93,26 +286,49 @@ size of the output, not counting the terminating null. If BUFFERSIZE is too small to store the output string, return the value that would have been returned had BUFFERSIZE been large enough. - If ARGSIZE is -1, use the string length of the argument for ARGSIZE. */ + If ARGSIZE is -1, use the string length of the argument for ARGSIZE. + On output, BUFFER might contain embedded null bytes if ARGSIZE was + not -1, the style of O does not use backslash escapes, and the + flags of O do not request elision of null bytes.*/ size_t quotearg_buffer (char *buffer, size_t buffersize, - char const *arg, size_t argsize, - struct quoting_options const *o); + char const *arg, size_t argsize, + struct quoting_options const *o); /* Like quotearg_buffer, except return the result in a newly allocated - buffer. It is the caller's responsibility to free the result. */ + buffer. It is the caller's responsibility to free the result. The + result will not contain embedded null bytes. */ char *quotearg_alloc (char const *arg, size_t argsize, - struct quoting_options const *o); + struct quoting_options const *o); + +/* Like quotearg_alloc, except that the length of the result, + excluding the terminating null byte, is stored into SIZE if it is + non-NULL. The result might contain embedded null bytes if ARGSIZE + was not -1, SIZE was not NULL, the style of O does not use + backslash escapes, and the flags of O do not request elision of + null bytes.*/ +char *quotearg_alloc_mem (char const *arg, size_t argsize, + size_t *size, struct quoting_options const *o); /* Use storage slot N to return a quoted version of the string ARG. Use the default quoting options. The returned value points to static storage that can be reused by the next call to this function with the same value of N. - N must be nonnegative. */ + N must be nonnegative. The output of all functions in the + quotearg_n family are guaranteed to not contain embedded null + bytes.*/ char *quotearg_n (int n, char const *arg); /* Equivalent to quotearg_n (0, ARG). */ char *quotearg (char const *arg); +/* Use storage slot N to return a quoted version of the argument ARG + of size ARGSIZE. This is like quotearg_n (N, ARG), except it can + quote null bytes. */ +char *quotearg_n_mem (int n, char const *arg, size_t argsize); + +/* Equivalent to quotearg_n_mem (0, ARG, ARGSIZE). */ +char *quotearg_mem (char const *arg, size_t argsize); + /* Use style S and storage slot N to return a quoted version of the string ARG. This is like quotearg_n (N, ARG), except that it uses S with no other options to specify the quoting method. */ @@ -122,17 +338,51 @@ argument ARG of size ARGSIZE. This is like quotearg_n_style (N, S, ARG), except it can quote null bytes. */ char *quotearg_n_style_mem (int n, enum quoting_style s, - char const *arg, size_t argsize); + char const *arg, size_t argsize); /* Equivalent to quotearg_n_style (0, S, ARG). */ char *quotearg_style (enum quoting_style s, char const *arg); -/* Like quotearg (ARG), except also quote any instances of CH. */ +/* Equivalent to quotearg_n_style_mem (0, S, ARG, ARGSIZE). */ +char *quotearg_style_mem (enum quoting_style s, + char const *arg, size_t argsize); + +/* Like quotearg (ARG), except also quote any instances of CH. + See set_char_quoting for a description of acceptable CH values. */ char *quotearg_char (char const *arg, char ch); +/* Like quotearg_char (ARG, CH), except it can quote null bytes. */ +char *quotearg_char_mem (char const *arg, size_t argsize, char ch); + /* Equivalent to quotearg_char (ARG, ':'). */ char *quotearg_colon (char const *arg); +/* Like quotearg_colon (ARG), except it can quote null bytes. */ +char *quotearg_colon_mem (char const *arg, size_t argsize); + +/* Like quotearg_n_style (N, S, ARG) but with S as custom_quoting_style + with left quote as LEFT_QUOTE and right quote as RIGHT_QUOTE. See + set_custom_quoting for a description of acceptable LEFT_QUOTE and + RIGHT_QUOTE values. */ +char *quotearg_n_custom (int n, char const *left_quote, + char const *right_quote, char const *arg); + +/* Like quotearg_n_custom (N, LEFT_QUOTE, RIGHT_QUOTE, ARG) except it + can quote null bytes. */ +char *quotearg_n_custom_mem (int n, char const *left_quote, + char const *right_quote, + char const *arg, size_t argsize); + +/* Equivalent to quotearg_n_custom (0, LEFT_QUOTE, RIGHT_QUOTE, ARG). */ +char *quotearg_custom (char const *left_quote, char const *right_quote, + char const *arg); + +/* Equivalent to quotearg_n_custom_mem (0, LEFT_QUOTE, RIGHT_QUOTE, ARG, + ARGSIZE). */ +char *quotearg_custom_mem (char const *left_quote, + char const *right_quote, + char const *arg, size_t argsize); + /* Free any dynamically allocated memory. */ void quotearg_free (void); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/quote.c gettext-0.18.1.1/gettext-tools/gnulib-lib/quote.c --- gettext-0.17/gettext-tools/gnulib-lib/quote.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/quote.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* quote.c - quote arguments for output - Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006 Free + Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/quote.h gettext-0.18.1.1/gettext-tools/gnulib-lib/quote.h --- gettext-0.17/gettext-tools/gnulib-lib/quote.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/quote.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* quote.h - prototypes for quote.c - Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software + Copyright (C) 1998, 1999, 2000, 2001, 2003, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/rawmemchr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/rawmemchr.c --- gettext-0.17/gettext-tools/gnulib-lib/rawmemchr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/rawmemchr.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,136 @@ +/* Searching in a string. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Find the first occurrence of C in S. */ +void * +rawmemchr (const void *s, int c_in) +{ + /* On 32-bit hardware, choosing longword to be a 32-bit unsigned + long instead of a 64-bit uintmax_t tends to give better + performance. On 64-bit hardware, unsigned long is generally 64 + bits already. Change this typedef to experiment with + performance. */ + typedef unsigned long int longword; + + const unsigned char *char_ptr; + const longword *longword_ptr; + longword repeated_one; + longword repeated_c; + unsigned char c; + + c = (unsigned char) c_in; + + /* Handle the first few bytes by reading one byte at a time. + Do this until CHAR_PTR is aligned on a longword boundary. */ + for (char_ptr = (const unsigned char *) s; + (size_t) char_ptr % sizeof (longword) != 0; + ++char_ptr) + if (*char_ptr == c) + return (void *) char_ptr; + + longword_ptr = (const longword *) char_ptr; + + /* All these elucidatory comments refer to 4-byte longwords, + but the theory applies equally well to any size longwords. */ + + /* Compute auxiliary longword values: + repeated_one is a value which has a 1 in every byte. + repeated_c has c in every byte. */ + repeated_one = 0x01010101; + repeated_c = c | (c << 8); + repeated_c |= repeated_c << 16; + if (0xffffffffU < (longword) -1) + { + repeated_one |= repeated_one << 31 << 1; + repeated_c |= repeated_c << 31 << 1; + if (8 < sizeof (longword)) + { + size_t i; + + for (i = 64; i < sizeof (longword) * 8; i *= 2) + { + repeated_one |= repeated_one << i; + repeated_c |= repeated_c << i; + } + } + } + + /* Instead of the traditional loop which tests each byte, we will + test a longword at a time. The tricky part is testing if *any of + the four* bytes in the longword in question are equal to NUL or + c. We first use an xor with repeated_c. This reduces the task + to testing whether *any of the four* bytes in longword1 is zero. + + We compute tmp = + ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). + That is, we perform the following operations: + 1. Subtract repeated_one. + 2. & ~longword1. + 3. & a mask consisting of 0x80 in every byte. + Consider what happens in each byte: + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, + and step 3 transforms it into 0x80. A carry can also be propagated + to more significant bytes. + - If a byte of longword1 is nonzero, let its lowest 1 bit be at + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, + the byte ends in a single bit of value 0 and k bits of value 1. + After step 2, the result is just k bits of value 1: 2^k - 1. After + step 3, the result is 0. And no carry is produced. + So, if longword1 has only non-zero bytes, tmp is zero. + Whereas if longword1 has a zero byte, call j the position of the least + significant zero byte. Then the result has a zero at positions 0, ..., + j-1 and a 0x80 at position j. We cannot predict the result at the more + significant bytes (positions j+1..3), but it does not matter since we + already have a non-zero bit at position 8*j+7. + + The test whether any byte in longword1 is zero is equivalent + to testing whether tmp is nonzero. + + This test can read beyond the end of a string, depending on where + C_IN is encountered. However, this is considered safe since the + initialization phase ensured that the read will be aligned, + therefore, the read will not cross page boundaries and will not + cause a fault. */ + + while (1) + { + longword longword1 = *longword_ptr ^ repeated_c; + + if ((((longword1 - repeated_one) & ~longword1) + & (repeated_one << 7)) != 0) + break; + longword_ptr++; + } + + char_ptr = (const unsigned char *) longword_ptr; + + /* At this point, we know that one of the sizeof (longword) bytes + starting at char_ptr is == c. On little-endian machines, we + could determine the first such byte without any further memory + accesses, just by looking at the tmp result from the last loop + iteration. But this does not work on big-endian machines. + Choose code that works in both cases. */ + + char_ptr = (unsigned char *) longword_ptr; + while (*char_ptr != c) + char_ptr++; + return (void *) char_ptr; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/rawmemchr.valgrind gettext-0.18.1.1/gettext-tools/gnulib-lib/rawmemchr.valgrind --- gettext-0.17/gettext-tools/gnulib-lib/rawmemchr.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/rawmemchr.valgrind 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,12 @@ +# Suppress a valgrind message about use of uninitialized memory in rawmemchr(). +# This use is OK because it provides only a speedup. +{ + rawmemchr-value4 + Memcheck:Value4 + fun:rawmemchr +} +{ + rawmemchr-value8 + Memcheck:Value8 + fun:rawmemchr +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/readlink.c gettext-0.18.1.1/gettext-tools/gnulib-lib/readlink.c --- gettext-0.17/gettext-tools/gnulib-lib/readlink.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/readlink.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Stub for readlink(). - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,30 +20,55 @@ #include #include -#include +#include #include -#include #if !HAVE_READLINK /* readlink() substitute for systems that don't have a readlink() function, such as DJGPP 2.03 and mingw32. */ -/* The official POSIX return type of readlink() is ssize_t, but since here - we have no declaration in a public header file, we use 'int' as return - type. */ - -int -readlink (const char *path, char *buf, size_t bufsize) +ssize_t +readlink (const char *name, char *buf _GL_UNUSED, + size_t bufsize _GL_UNUSED) { struct stat statbuf; /* In general we should use lstat() here, not stat(). But on platforms - without symbolic links lstat() - if it exists - would be equivalent to + without symbolic links, lstat() - if it exists - would be equivalent to stat(), therefore we can use stat(). This saves us a configure check. */ - if (stat (path, &statbuf) >= 0) + if (stat (name, &statbuf) >= 0) errno = EINVAL; return -1; } -#endif +#else /* HAVE_READLINK */ + +# undef readlink + +/* readlink() wrapper that uses correct types, for systems like cygwin + 1.5.x where readlink returns int, and which rejects trailing slash, + for Solaris 9. */ + +ssize_t +rpl_readlink (const char *name, char *buf, size_t bufsize) +{ +# if READLINK_TRAILING_SLASH_BUG + size_t len = strlen (name); + if (len && name[len - 1] == '/') + { + /* Even if name without the slash is a symlink to a directory, + both lstat() and stat() must resolve the trailing slash to + the directory rather than the symlink. We can therefore + safely use stat() to distinguish between EINVAL and + ENOTDIR/ENOENT, avoiding extra overhead of rpl_lstat(). */ + struct stat st; + if (stat (name, &st) == 0) + errno = EINVAL; + return -1; + } +# endif /* READLINK_TRAILING_SLASH_BUG */ + return readlink (name, buf, bufsize); +} + +#endif /* HAVE_READLINK */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/realloc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/realloc.c --- gettext-0.17/gettext-tools/gnulib-lib/realloc.c 2007-11-06 23:30:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/realloc.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,7 @@ /* realloc() function that is glibc compatible. - Copyright (C) 1997, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,7 +72,7 @@ { #if GNULIB_REALLOC_GNU && !NEED_REALLOC_GNU && !SYSTEM_MALLOC_GLIBC_COMPATIBLE if (n == 0) - n = 1; + n = 1; #endif result = malloc (n); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/ref-add.sin gettext-0.18.1.1/gettext-tools/gnulib-lib/ref-add.sin --- gettext-0.17/gettext-tools/gnulib-lib/ref-add.sin 2007-01-27 03:22:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/ref-add.sin 2010-05-24 10:59:08.000000000 +0000 @@ -1,10 +1,10 @@ # Add this package to a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/ref-del.sin gettext-0.18.1.1/gettext-tools/gnulib-lib/ref-del.sin --- gettext-0.17/gettext-tools/gnulib-lib/ref-del.sin 2007-01-27 03:22:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/ref-del.sin 2010-05-24 10:59:08.000000000 +0000 @@ -1,10 +1,10 @@ # Remove this package from a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/relocatable.c gettext-0.18.1.1/gettext-tools/gnulib-lib/relocatable.c --- gettext-0.17/gettext-tools/gnulib-lib/relocatable.c 2007-10-31 12:36:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/relocatable.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -22,7 +22,7 @@ This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 +# define _GNU_SOURCE 1 #endif #include @@ -102,11 +102,11 @@ instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, - const char *curr_prefix_arg) + const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the - relocation is a nop. */ + relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ @@ -118,14 +118,14 @@ #ifdef NO_XMALLOC if (memory != NULL) #endif - { - memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); - orig_prefix = memory; - memory += orig_prefix_len + 1; - memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); - curr_prefix = memory; - return; - } + { + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); + orig_prefix = memory; + memory += orig_prefix_len + 1; + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); + curr_prefix = memory; + return; + } } orig_prefix = NULL; curr_prefix = NULL; @@ -160,17 +160,18 @@ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif -const char * +char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname) + const char *orig_installdir, + const char *curr_pathname) { - const char *curr_installdir; + char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) @@ -193,9 +194,9 @@ while (p > p_base) { - p--; - if (ISSLASH (*p)) - break; + p--; + if (ISSLASH (*p)) + break; } q = (char *) xmalloc (p - curr_pathname + 1); @@ -218,44 +219,47 @@ while (rp > rel_installdir && cp > cp_base) { - bool same = false; - const char *rpi = rp; - const char *cpi = cp; - - while (rpi > rel_installdir && cpi > cp_base) - { - rpi--; - cpi--; - if (ISSLASH (*rpi) || ISSLASH (*cpi)) - { - if (ISSLASH (*rpi) && ISSLASH (*cpi)) - same = true; - break; - } - /* Do case-insensitive comparison if the filesystem is always or - often case-insensitive. It's better to accept the comparison - if the difference is only in case, rather than to fail. */ + bool same = false; + const char *rpi = rp; + const char *cpi = cp; + + while (rpi > rel_installdir && cpi > cp_base) + { + rpi--; + cpi--; + if (ISSLASH (*rpi) || ISSLASH (*cpi)) + { + if (ISSLASH (*rpi) && ISSLASH (*cpi)) + same = true; + break; + } + /* Do case-insensitive comparison if the file system is always or + often case-insensitive. It's better to accept the comparison + if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ - if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) - != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) - break; + /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) + break; #else - if (*rpi != *cpi) - break; + if (*rpi != *cpi) + break; #endif - } - if (!same) - break; - /* The last pathname component was the same. opi and cpi now point - to the slash before it. */ - rp = rpi; - cp = cpi; + } + if (!same) + break; + /* The last pathname component was the same. opi and cpi now point + to the slash before it. */ + rp = rpi; + cp = cpi; } if (rp > rel_installdir) - /* Unexpected: The curr_installdir does not end with rel_installdir. */ - return NULL; + { + /* Unexpected: The curr_installdir does not end with rel_installdir. */ + free (curr_installdir); + return NULL; + } { size_t curr_prefix_len = cp - curr_installdir; @@ -264,11 +268,16 @@ curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) - return NULL; + { + free (curr_installdir); + return NULL; + } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; + free (curr_installdir); + return curr_prefix; } } @@ -296,30 +305,30 @@ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; if (!IS_PATH_WITH_DIR (location)) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; { #if defined __CYGWIN__ - /* On Cygwin, we need to convert paths coming from Win32 system calls - to the Unix-like slashified notation. */ - static char location_as_posix_path[2 * MAX_PATH]; - /* There's no error return defined for cygwin_conv_to_posix_path. - See cygwin-api/func-cygwin-conv-to-posix-path.html. - Does it overflow the buffer of expected size MAX_PATH or does it - truncate the path? I don't know. Let's catch both. */ - cygwin_conv_to_posix_path (location, location_as_posix_path); - location_as_posix_path[MAX_PATH - 1] = '\0'; - if (strlen (location_as_posix_path) >= MAX_PATH - 1) - /* A sign of buffer overflow or path truncation. */ - return FALSE; - shared_library_fullname = strdup (location_as_posix_path); + /* On Cygwin, we need to convert paths coming from Win32 system calls + to the Unix-like slashified notation. */ + static char location_as_posix_path[2 * MAX_PATH]; + /* There's no error return defined for cygwin_conv_to_posix_path. + See cygwin-api/func-cygwin-conv-to-posix-path.html. + Does it overflow the buffer of expected size MAX_PATH or does it + truncate the path? I don't know. Let's catch both. */ + cygwin_conv_to_posix_path (location, location_as_posix_path); + location_as_posix_path[MAX_PATH - 1] = '\0'; + if (strlen (location_as_posix_path) >= MAX_PATH - 1) + /* A sign of buffer overflow or path truncation. */ + return FALSE; + shared_library_fullname = strdup (location_as_posix_path); #else - shared_library_fullname = strdup (location); + shared_library_fullname = strdup (location); #endif } } @@ -342,37 +351,37 @@ { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) - { - unsigned long start, end; - int c; - - if (fscanf (fp, "%lx-%lx", &start, &end) != 2) - break; - if (address >= start && address <= end - 1) - { - /* Found it. Now see if this line contains a filename. */ - while (c = getc (fp), c != EOF && c != '\n' && c != '/') - continue; - if (c == '/') - { - size_t size; - int len; - - ungetc (c, fp); - shared_library_fullname = NULL; size = 0; - len = getline (&shared_library_fullname, &size, fp); - if (len >= 0) - { - /* Success: filled shared_library_fullname. */ - if (len > 0 && shared_library_fullname[len - 1] == '\n') - shared_library_fullname[len - 1] = '\0'; - } - } - break; - } - while (c = getc (fp), c != EOF && c != '\n') - continue; - } + { + unsigned long start, end; + int c; + + if (fscanf (fp, "%lx-%lx", &start, &end) != 2) + break; + if (address >= start && address <= end - 1) + { + /* Found it. Now see if this line contains a filename. */ + while (c = getc (fp), c != EOF && c != '\n' && c != '/') + continue; + if (c == '/') + { + size_t size; + int len; + + ungetc (c, fp); + shared_library_fullname = NULL; size = 0; + len = getline (&shared_library_fullname, &size, fp); + if (len >= 0) + { + /* Success: filled shared_library_fullname. */ + if (len > 0 && shared_library_fullname[len - 1] == '\n') + shared_library_fullname[len - 1] = '\0'; + } + } + break; + } + while (c = getc (fp), c != EOF && c != '\n') + continue; + } fclose (fp); } #endif @@ -400,7 +409,9 @@ #endif /* PIC */ /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { @@ -411,55 +422,69 @@ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been - set through the main program's set_program_name_and_installdir - function. This is sufficient in the case that the library has - initially been installed in the same orig_prefix. But we can do - better, to also cover the cases that 1. it has been installed - in a different prefix before being moved to orig_prefix and (later) - to curr_prefix, 2. unlike the program, it has not moved away from - orig_prefix. */ + set through the main program's set_program_name_and_installdir + function. This is sufficient in the case that the library has + initially been installed in the same orig_prefix. But we can do + better, to also cover the cases that 1. it has been installed + in a different prefix before being moved to orig_prefix and (later) + to curr_prefix, 2. unlike the program, it has not moved away from + orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; - const char *curr_prefix_better; + char *curr_prefix_better; curr_prefix_better = - compute_curr_prefix (orig_installprefix, orig_installdir, - get_shared_library_fullname ()); - if (curr_prefix_better == NULL) - curr_prefix_better = curr_prefix; + compute_curr_prefix (orig_installprefix, orig_installdir, + get_shared_library_fullname ()); - set_relocation_prefix (orig_installprefix, curr_prefix_better); + set_relocation_prefix (orig_installprefix, + curr_prefix_better != NULL + ? curr_prefix_better + : curr_prefix); + + if (curr_prefix_better != NULL) + free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, - even for DOS-like filesystems, because the pathname argument was + even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') - /* pathname equals orig_prefix. */ - return curr_prefix; - if (ISSLASH (pathname[orig_prefix_len])) - { - /* pathname starts with orig_prefix. */ - const char *pathname_tail = &pathname[orig_prefix_len]; - char *result = - (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); + { + /* pathname equals orig_prefix. */ + char *result = (char *) xmalloc (strlen (curr_prefix) + 1); + +#ifdef NO_XMALLOC + if (result != NULL) +#endif + { + strcpy (result, curr_prefix); + return result; + } + } + else if (ISSLASH (pathname[orig_prefix_len])) + { + /* pathname starts with orig_prefix. */ + const char *pathname_tail = &pathname[orig_prefix_len]; + char *result = + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC - if (result != NULL) + if (result != NULL) #endif - { - memcpy (result, curr_prefix, curr_prefix_len); - strcpy (result + curr_prefix_len, pathname_tail); - return result; - } - } + { + memcpy (result, curr_prefix, curr_prefix_len); + strcpy (result + curr_prefix_len, pathname_tail); + return result; + } + } } /* Nothing to relocate. */ return pathname; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/relocatable.h gettext-0.18.1.1/gettext-tools/gnulib-lib/relocatable.h --- gettext-0.17/gettext-tools/gnulib-lib/relocatable.h 2007-10-31 12:36:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/relocatable.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -46,23 +46,27 @@ instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); + const char *curr_prefix); /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); -/* Memory management: relocate() leaks memory, because it has to construct - a fresh pathname. If this is a problem because your program calls - relocate() frequently, think about caching the result. */ +/* Memory management: relocate() potentially allocates memory, because it has + to construct a fresh pathname. If this is a problem because your program + calls relocate() frequently, think about caching the result. Or free the + return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ -extern const char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname); + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ +extern char * compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname); #else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/relocwrapper.c gettext-0.18.1.1/gettext-tools/gnulib-lib/relocwrapper.c --- gettext-0.17/gettext-tools/gnulib-lib/relocwrapper.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/relocwrapper.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Relocating wrapper program. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -19,11 +19,11 @@ relocwrapper -> progname -> progreloc - -> xreadlink - -> areadlink - -> readlink + -> areadlink + -> readlink -> canonicalize-lgpl -> malloca + -> readlink -> relocatable -> setenv -> malloca @@ -53,7 +53,6 @@ #include "progname.h" #include "relocatable.h" -#include "setenv.h" #include "c-ctype.h" /* Return a copy of the filename, with an extra ".bin" at the end. @@ -67,34 +66,34 @@ if (result != NULL) { if (sizeof (EXEEXT) > sizeof ("")) - { - /* EXEEXT handling. */ - const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); - static const char exeext[] = EXEEXT; - if (filename_len > exeext_len) - { - /* Compare using an inlined copy of c_strncasecmp(), because - the filenames may have undergone a case conversion since - they were packaged. In other words, EXEEXT may be ".exe" - on one system and ".EXE" on another. */ - const char *s1 = filename + filename_len - exeext_len; - const char *s2 = exeext; - for (; *s1 != '\0'; s1++, s2++) - { - unsigned char c1 = *s1; - unsigned char c2 = *s2; - if (c_tolower (c1) != c_tolower (c2)) - goto simple_append; - } - /* Insert ".bin" before EXEEXT or its equivalent. */ - memcpy (result, filename, filename_len - exeext_len); - memcpy (result + filename_len - exeext_len, ".bin", 4); - memcpy (result + filename_len - exeext_len + 4, - filename + filename_len - exeext_len, - exeext_len + 1); - return result; - } - } + { + /* EXEEXT handling. */ + const size_t exeext_len = sizeof (EXEEXT) - sizeof (""); + static const char exeext[] = EXEEXT; + if (filename_len > exeext_len) + { + /* Compare using an inlined copy of c_strncasecmp(), because + the filenames may have undergone a case conversion since + they were packaged. In other words, EXEEXT may be ".exe" + on one system and ".EXE" on another. */ + const char *s1 = filename + filename_len - exeext_len; + const char *s2 = exeext; + for (; *s1 != '\0'; s1++, s2++) + { + unsigned char c1 = *s1; + unsigned char c2 = *s2; + if (c_tolower (c1) != c_tolower (c2)) + goto simple_append; + } + /* Insert ".bin" before EXEEXT or its equivalent. */ + memcpy (result, filename, filename_len - exeext_len); + memcpy (result + filename_len - exeext_len, ".bin", 4); + memcpy (result + filename_len - exeext_len + 4, + filename + filename_len - exeext_len, + exeext_len + 1); + return result; + } + } simple_append: /* Simply append ".bin". */ memcpy (result, filename, filename_len); @@ -188,6 +187,6 @@ activate_libdirs (); execv (argv[0], argv); fprintf (stderr, "%s: could not execute %s: %s\n", - program_name, argv[0], strerror (errno)); + program_name, argv[0], strerror (errno)); exit (127); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/rmdir.c gettext-0.18.1.1/gettext-tools/gnulib-lib/rmdir.c --- gettext-0.17/gettext-tools/gnulib-lib/rmdir.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/rmdir.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,51 @@ +/* Work around rmdir bugs. + + Copyright (C) 1988, 1990, 1999, 2003-2006, 2009-2010 Free Software + Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include + +#include +#include + +#undef rmdir + +/* Remove directory DIR. + Return 0 if successful, -1 if not. */ + +int +rpl_rmdir (char const *dir) +{ + /* Work around cygwin 1.5.x bug where rmdir("dir/./") succeeds. */ + size_t len = strlen (dir); + int result; + while (len && ISSLASH (dir[len - 1])) + len--; + if (len && dir[len - 1] == '.' && (1 == len || ISSLASH (dir[len - 2]))) + { + errno = EINVAL; + return -1; + } + result = rmdir (dir); + /* Work around mingw bug, where rmdir("file/") fails with EINVAL + instead of ENOTDIR. We've already filtered out trailing ., the + only reason allowed by POSIX for EINVAL. */ + if (result == -1 && errno == EINVAL) + errno = ENOTDIR; + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/safe-read.c gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-read.c --- gettext-0.17/gettext-tools/gnulib-lib/safe-read.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-read.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,7 +1,7 @@ /* An interface to read and write that retries after interrupts. - Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004, 2005, 2006 Free - Software Foundation, Inc. + Copyright (C) 1993-1994, 1998, 2002-2006, 2009-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -66,12 +66,12 @@ ssize_t result = rw (fd, buf, count); if (0 <= result) - return result; + return result; else if (IS_EINTR (errno)) - continue; + continue; else if (errno == EINVAL && BUGGY_READ_MAXIMUM < count) - count = BUGGY_READ_MAXIMUM; + count = BUGGY_READ_MAXIMUM; else - return result; + return result; } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/safe-read.h gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-read.h --- gettext-0.17/gettext-tools/gnulib-lib/safe-read.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-read.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* An interface to read() that retries after interrupts. - Copyright (C) 2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/safe-write.c gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-write.c --- gettext-0.17/gettext-tools/gnulib-lib/safe-write.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-write.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* An interface to write that retries after interrupts. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/safe-write.h gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-write.h --- gettext-0.17/gettext-tools/gnulib-lib/safe-write.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/safe-write.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* An interface to write() that retries after interrupts. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sched.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sched.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sched.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sched.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,47 @@ +/* Replacement for platforms that lack it. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_SCHED_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#if @HAVE_SCHED_H@ +# @INCLUDE_NEXT@ @NEXT_SCHED_H@ +#endif + +#ifndef _GL_SCHED_H +#define _GL_SCHED_H + +#if !@HAVE_STRUCT_SCHED_PARAM@ + +struct sched_param +{ + int sched_priority; +}; + +#endif + +#if !(defined SCHED_FIFO && defined SCHED_RR && defined SCHED_OTHER) +# define SCHED_FIFO 1 +# define SCHED_RR 2 +# define SCHED_OTHER 0 +#endif + +#endif /* _GL_SCHED_H */ +#endif /* _GL_SCHED_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/setenv.c gettext-0.18.1.1/gettext-tools/gnulib-lib/setenv.c --- gettext-0.17/gettext-tools/gnulib-lib/setenv.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/setenv.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2003,2005-2007 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995-2003, 2005-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -17,38 +17,42 @@ #if !_LIBC # include #endif + +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the name == NULL test below. */ +#define _GL_ARG_NONNULL(params) + #include +/* Specification. */ +#include + #include #ifndef __set_errno # define __set_errno(ev) ((errno) = (ev)) #endif -#include #include #if _LIBC || HAVE_UNISTD_H # include #endif -#if _LIBC || !HAVE_SETENV - #if !_LIBC # include "malloca.h" #endif +#if _LIBC || !HAVE_SETENV + #if !_LIBC -# define __environ environ -# ifndef HAVE_ENVIRON_DECL -extern char **environ; -# endif +# define __environ environ #endif #if _LIBC /* This lock protects against simultaneous modifications of `environ'. */ # include __libc_lock_define_initialized (static, envlock) -# define LOCK __libc_lock_lock (envlock) -# define UNLOCK __libc_lock_unlock (envlock) +# define LOCK __libc_lock_lock (envlock) +# define UNLOCK __libc_lock_unlock (envlock) #else # define LOCK # define UNLOCK @@ -67,8 +71,8 @@ values are from a small set. Outside glibc this will eat up all memory after a while. */ #if defined _LIBC || (defined HAVE_SEARCH_H && defined HAVE_TSEARCH \ - && defined __GNUC__) -# define USE_TSEARCH 1 + && defined __GNUC__) +# define USE_TSEARCH 1 # include typedef int (*compar_fn_t) (const void *, const void *); @@ -77,9 +81,9 @@ static void *known_values; # define KNOWN_VALUE(Str) \ - ({ \ - void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \ - value != NULL ? *(char **) value : NULL; \ + ({ \ + void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \ + value != NULL ? *(char **) value : NULL; \ }) # define STORE_VALUE(Str) \ tsearch (Str, &known_values, (compar_fn_t) strcmp) @@ -106,10 +110,10 @@ free the strings. */ int __add_to_environ (const char *name, const char *value, const char *combined, - int replace) + int replace) { - register char **ep; - register size_t size; + char **ep; + size_t size; const size_t namelen = strlen (name); const size_t vallen = value != NULL ? strlen (value) + 1 : 0; @@ -123,10 +127,10 @@ if (ep != NULL) { for (; *ep != NULL; ++ep) - if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') - break; - else - ++size; + if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') + break; + else + ++size; } if (ep == NULL || *ep == NULL) @@ -138,76 +142,76 @@ /* We allocated this space; we can extend it. */ new_environ = - (char **) (last_environ == NULL - ? malloc ((size + 2) * sizeof (char *)) - : realloc (last_environ, (size + 2) * sizeof (char *))); + (char **) (last_environ == NULL + ? malloc ((size + 2) * sizeof (char *)) + : realloc (last_environ, (size + 2) * sizeof (char *))); if (new_environ == NULL) - { - UNLOCK; - return -1; - } + { + UNLOCK; + return -1; + } /* If the whole entry is given add it. */ if (combined != NULL) - /* We must not add the string to the search tree since it belongs - to the user. */ - new_environ[size] = (char *) combined; + /* We must not add the string to the search tree since it belongs + to the user. */ + new_environ[size] = (char *) combined; else - { - /* See whether the value is already known. */ + { + /* See whether the value is already known. */ #ifdef USE_TSEARCH # ifdef _LIBC - new_value = (char *) alloca (namelen + 1 + vallen); - __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), - value, vallen); + new_value = (char *) alloca (namelen + 1 + vallen); + __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), + value, vallen); # else - new_value = (char *) malloca (namelen + 1 + vallen); - if (new_value == NULL) - { - __set_errno (ENOMEM); - UNLOCK; - return -1; - } - memcpy (new_value, name, namelen); - new_value[namelen] = '='; - memcpy (&new_value[namelen + 1], value, vallen); + new_value = (char *) malloca (namelen + 1 + vallen); + if (new_value == NULL) + { + __set_errno (ENOMEM); + UNLOCK; + return -1; + } + memcpy (new_value, name, namelen); + new_value[namelen] = '='; + memcpy (&new_value[namelen + 1], value, vallen); # endif - new_environ[size] = KNOWN_VALUE (new_value); - if (new_environ[size] == NULL) + new_environ[size] = KNOWN_VALUE (new_value); + if (new_environ[size] == NULL) #endif - { - new_environ[size] = (char *) malloc (namelen + 1 + vallen); - if (new_environ[size] == NULL) - { + { + new_environ[size] = (char *) malloc (namelen + 1 + vallen); + if (new_environ[size] == NULL) + { #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - __set_errno (ENOMEM); - UNLOCK; - return -1; - } + __set_errno (ENOMEM); + UNLOCK; + return -1; + } #ifdef USE_TSEARCH - memcpy (new_environ[size], new_value, namelen + 1 + vallen); + memcpy (new_environ[size], new_value, namelen + 1 + vallen); #else - memcpy (new_environ[size], name, namelen); - new_environ[size][namelen] = '='; - memcpy (&new_environ[size][namelen + 1], value, vallen); -#endif - /* And save the value now. We cannot do this when we remove - the string since then we cannot decide whether it is a - user string or not. */ - STORE_VALUE (new_environ[size]); - } + memcpy (new_environ[size], name, namelen); + new_environ[size][namelen] = '='; + memcpy (&new_environ[size][namelen + 1], value, vallen); +#endif + /* And save the value now. We cannot do this when we remove + the string since then we cannot decide whether it is a + user string or not. */ + STORE_VALUE (new_environ[size]); + } #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - } + } if (__environ != last_environ) - memcpy ((char *) new_environ, (char *) __environ, - size * sizeof (char *)); + memcpy ((char *) new_environ, (char *) __environ, + size * sizeof (char *)); new_environ[size + 1] = NULL; @@ -219,57 +223,57 @@ /* Use the user string if given. */ if (combined != NULL) - np = (char *) combined; + np = (char *) combined; else - { + { #ifdef USE_TSEARCH - char *new_value; + char *new_value; # ifdef _LIBC - new_value = alloca (namelen + 1 + vallen); - __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), - value, vallen); + new_value = alloca (namelen + 1 + vallen); + __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), + value, vallen); # else - new_value = malloca (namelen + 1 + vallen); - if (new_value == NULL) - { - __set_errno (ENOMEM); - UNLOCK; - return -1; - } - memcpy (new_value, name, namelen); - new_value[namelen] = '='; - memcpy (&new_value[namelen + 1], value, vallen); + new_value = malloca (namelen + 1 + vallen); + if (new_value == NULL) + { + __set_errno (ENOMEM); + UNLOCK; + return -1; + } + memcpy (new_value, name, namelen); + new_value[namelen] = '='; + memcpy (&new_value[namelen + 1], value, vallen); # endif - np = KNOWN_VALUE (new_value); - if (np == NULL) + np = KNOWN_VALUE (new_value); + if (np == NULL) #endif - { - np = malloc (namelen + 1 + vallen); - if (np == NULL) - { + { + np = (char *) malloc (namelen + 1 + vallen); + if (np == NULL) + { #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - __set_errno (ENOMEM); - UNLOCK; - return -1; - } + __set_errno (ENOMEM); + UNLOCK; + return -1; + } #ifdef USE_TSEARCH - memcpy (np, new_value, namelen + 1 + vallen); + memcpy (np, new_value, namelen + 1 + vallen); #else - memcpy (np, name, namelen); - np[namelen] = '='; - memcpy (&np[namelen + 1], value, vallen); -#endif - /* And remember the value. */ - STORE_VALUE (np); - } + memcpy (np, name, namelen); + np[namelen] = '='; + memcpy (&np[namelen + 1], value, vallen); +#endif + /* And remember the value. */ + STORE_VALUE (np); + } #if defined USE_TSEARCH && !defined _LIBC - freea (new_value); + freea (new_value); #endif - } + } *ep = np; } @@ -282,6 +286,12 @@ int setenv (const char *name, const char *value, int replace) { + if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) + { + __set_errno (EINVAL); + return -1; + } + return __add_to_environ (name, value, NULL, replace); } @@ -329,3 +339,45 @@ #endif #endif /* _LIBC || !HAVE_SETENV */ + +/* The rest of this file is called into use when replacing an existing + but buggy setenv. Known bugs include failure to diagnose invalid + name, and consuming a leading '=' from value. */ +#if HAVE_SETENV + +# undef setenv +# define STREQ(a, b) (strcmp (a, b) == 0) + +int +rpl_setenv (const char *name, const char *value, int replace) +{ + int result; + if (!name || !*name || strchr (name, '=')) + { + errno = EINVAL; + return -1; + } + /* Call the real setenv even if replace is 0, in case implementation + has underlying data to update, such as when environ changes. */ + result = setenv (name, value, replace); + if (result == 0 && replace && *value == '=') + { + char *tmp = getenv (name); + if (!STREQ (tmp, value)) + { + int saved_errno; + size_t len = strlen (value); + tmp = malloca (len + 2); + /* Since leading '=' is eaten, double it up. */ + *tmp = '='; + memcpy (tmp + 1, value, len + 1); + result = setenv (name, tmp, replace); + saved_errno = errno; + freea (tmp); + errno = saved_errno; + } + } + return result; +} + +#endif /* HAVE_SETENV */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/setenv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/setenv.h --- gettext-0.17/gettext-tools/gnulib-lib/setenv.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/setenv.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ -/* Setting environment variables. - Copyright (C) 2001-2004, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#if HAVE_SETENV || HAVE_UNSETENV - -/* Get setenv(), unsetenv() declarations. */ -# include - -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if !HAVE_SETENV - -/* Set NAME to VALUE in the environment. - If REPLACE is nonzero, overwrite an existing value. */ -extern int setenv (const char *name, const char *value, int replace); - -#endif - -#if HAVE_UNSETENV - -# if VOID_UNSETENV -/* On some systems, unsetenv() returns void. - This is the case for FreeBSD 4.8, NetBSD 1.6, OpenBSD 3.4. */ -# define unsetenv(name) ((unsetenv)(name), 0) -# endif - -#else - -/* Remove the variable NAME from the environment. */ -extern int unsetenv (const char *name); - -#endif - -#ifdef __cplusplus -} -#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/set-mode-acl.c gettext-0.18.1.1/gettext-tools/gnulib-lib/set-mode-acl.c --- gettext-0.17/gettext-tools/gnulib-lib/set-mode-acl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/set-mode-acl.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,593 @@ +/* set-mode-acl.c - set access control list equivalent to a mode + + Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + + Written by Paul Eggert and Andreas Gruenbacher, and Bruno Haible. */ + +#include + +#include "acl.h" + +#include "acl-internal.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) + + +/* If DESC is a valid file descriptor use fchmod to change the + file's mode to MODE on systems that have fchown. On systems + that don't have fchown and if DESC is invalid, use chown on + NAME instead. + Return 0 if successful. Return -1 and set errno upon failure. */ + +int +chmod_or_fchmod (const char *name, int desc, mode_t mode) +{ + if (HAVE_FCHMOD && desc != -1) + return fchmod (desc, mode); + else + return chmod (name, mode); +} + +/* Set the access control lists of a file. If DESC is a valid file + descriptor, use file descriptor operations where available, else use + filename based operations on NAME. If access control lists are not + available, fchmod the target file to MODE. Also sets the + non-permission bits of the destination file (S_ISUID, S_ISGID, S_ISVTX) + to those from MODE if any are set. + Return 0 if successful. Return -1 and set errno upon failure. */ + +int +qset_acl (char const *name, int desc, mode_t mode) +{ +#if USE_ACL +# if HAVE_ACL_GET_FILE + /* POSIX 1003.1e draft 17 (abandoned) specific version. */ + /* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ +# if MODE_INSIDE_ACL + /* Linux, FreeBSD, IRIX, Tru64 */ + + /* We must also have acl_from_text and acl_delete_def_file. + (acl_delete_def_file could be emulated with acl_init followed + by acl_set_file, but acl_set_file with an empty acl is + unspecified.) */ + +# ifndef HAVE_ACL_FROM_TEXT +# error Must have acl_from_text (see POSIX 1003.1e draft 17). +# endif +# ifndef HAVE_ACL_DELETE_DEF_FILE +# error Must have acl_delete_def_file (see POSIX 1003.1e draft 17). +# endif + + acl_t acl; + int ret; + + if (HAVE_ACL_FROM_MODE) /* Linux */ + { + acl = acl_from_mode (mode); + if (!acl) + return -1; + } + else /* FreeBSD, IRIX, Tru64 */ + { + /* If we were to create the ACL using the functions acl_init(), + acl_create_entry(), acl_set_tag_type(), acl_set_qualifier(), + acl_get_permset(), acl_clear_perm[s](), acl_add_perm(), we + would need to create a qualifier. I don't know how to do this. + So create it using acl_from_text(). */ + +# if HAVE_ACL_FREE_TEXT /* Tru64 */ + char acl_text[] = "u::---,g::---,o::---,"; +# else /* FreeBSD, IRIX */ + char acl_text[] = "u::---,g::---,o::---"; +# endif + + if (mode & S_IRUSR) acl_text[ 3] = 'r'; + if (mode & S_IWUSR) acl_text[ 4] = 'w'; + if (mode & S_IXUSR) acl_text[ 5] = 'x'; + if (mode & S_IRGRP) acl_text[10] = 'r'; + if (mode & S_IWGRP) acl_text[11] = 'w'; + if (mode & S_IXGRP) acl_text[12] = 'x'; + if (mode & S_IROTH) acl_text[17] = 'r'; + if (mode & S_IWOTH) acl_text[18] = 'w'; + if (mode & S_IXOTH) acl_text[19] = 'x'; + + acl = acl_from_text (acl_text); + if (!acl) + return -1; + } + if (HAVE_ACL_SET_FD && desc != -1) + ret = acl_set_fd (desc, acl); + else + ret = acl_set_file (name, ACL_TYPE_ACCESS, acl); + if (ret != 0) + { + int saved_errno = errno; + acl_free (acl); + + if (ACL_NOT_WELL_SUPPORTED (errno)) + return chmod_or_fchmod (name, desc, mode); + else + { + errno = saved_errno; + return -1; + } + } + else + acl_free (acl); + + if (S_ISDIR (mode) && acl_delete_def_file (name)) + return -1; + + if (mode & (S_ISUID | S_ISGID | S_ISVTX)) + { + /* We did not call chmod so far, so the special bits have not yet + been set. */ + return chmod_or_fchmod (name, desc, mode); + } + return 0; + +# else /* !MODE_INSIDE_ACL */ + /* MacOS X */ + +# if !HAVE_ACL_TYPE_EXTENDED +# error Must have ACL_TYPE_EXTENDED +# endif + + /* On MacOS X, acl_get_file (name, ACL_TYPE_ACCESS) + and acl_get_file (name, ACL_TYPE_DEFAULT) + always return NULL / EINVAL. You have to use + acl_get_file (name, ACL_TYPE_EXTENDED) + or acl_get_fd (open (name, ...)) + to retrieve an ACL. + On the other hand, + acl_set_file (name, ACL_TYPE_ACCESS, acl) + and acl_set_file (name, ACL_TYPE_DEFAULT, acl) + have the same effect as + acl_set_file (name, ACL_TYPE_EXTENDED, acl): + Each of these calls sets the file's ACL. */ + + acl_t acl; + int ret; + + /* Remove the ACL if the file has ACLs. */ + if (HAVE_ACL_GET_FD && desc != -1) + acl = acl_get_fd (desc); + else + acl = acl_get_file (name, ACL_TYPE_EXTENDED); + if (acl) + { + acl_free (acl); + + acl = acl_init (0); + if (acl) + { + if (HAVE_ACL_SET_FD && desc != -1) + ret = acl_set_fd (desc, acl); + else + ret = acl_set_file (name, ACL_TYPE_EXTENDED, acl); + if (ret != 0) + { + int saved_errno = errno; + + acl_free (acl); + + if (ACL_NOT_WELL_SUPPORTED (saved_errno)) + return chmod_or_fchmod (name, desc, mode); + else + { + errno = saved_errno; + return -1; + } + } + acl_free (acl); + } + } + + /* Since !MODE_INSIDE_ACL, we have to call chmod explicitly. */ + return chmod_or_fchmod (name, desc, mode); +# endif + +# elif HAVE_ACL && defined GETACLCNT /* Solaris, Cygwin, not HP-UX */ + +# if defined ACL_NO_TRIVIAL + /* Solaris 10 (newer version), which has additional API declared in + (acl_t) and implemented in libsec (acl_set, acl_trivial, + acl_fromtext, ...). */ + + acl_t *aclp; + char acl_text[] = "user::---,group::---,mask:---,other:---"; + int ret; + int saved_errno; + + if (mode & S_IRUSR) acl_text[ 6] = 'r'; + if (mode & S_IWUSR) acl_text[ 7] = 'w'; + if (mode & S_IXUSR) acl_text[ 8] = 'x'; + if (mode & S_IRGRP) acl_text[17] = acl_text[26] = 'r'; + if (mode & S_IWGRP) acl_text[18] = acl_text[27] = 'w'; + if (mode & S_IXGRP) acl_text[19] = acl_text[28] = 'x'; + if (mode & S_IROTH) acl_text[36] = 'r'; + if (mode & S_IWOTH) acl_text[37] = 'w'; + if (mode & S_IXOTH) acl_text[38] = 'x'; + + if (acl_fromtext (acl_text, &aclp) != 0) + { + errno = ENOMEM; + return -1; + } + + ret = (desc < 0 ? acl_set (name, aclp) : facl_set (desc, aclp)); + saved_errno = errno; + acl_free (aclp); + if (ret < 0) + { + if (saved_errno == ENOSYS || saved_errno == EOPNOTSUPP) + return chmod_or_fchmod (name, desc, mode); + errno = saved_errno; + return -1; + } + + if (mode & (S_ISUID | S_ISGID | S_ISVTX)) + { + /* We did not call chmod so far, so the special bits have not yet + been set. */ + return chmod_or_fchmod (name, desc, mode); + } + return 0; + +# else /* Solaris, Cygwin, general case */ + +# ifdef ACE_GETACL + /* Solaris also has a different variant of ACLs, used in ZFS and NFSv4 + file systems (whereas the other ones are used in UFS file systems). */ + + /* The flags in the ace_t structure changed in a binary incompatible way + when ACL_NO_TRIVIAL etc. were introduced in version 1.15. + How to distinguish the two conventions at runtime? + We fetch the existing ACL. In the old convention, usually three ACEs have + a_flags = ACE_OWNER / ACE_GROUP / ACE_OTHER, in the range 0x0100..0x0400. + In the new convention, these values are not used. */ + int convention; + + { + int count; + ace_t *entries; + + for (;;) + { + if (desc != -1) + count = facl (desc, ACE_GETACLCNT, 0, NULL); + else + count = acl (name, ACE_GETACLCNT, 0, NULL); + if (count <= 0) + { + convention = -1; + break; + } + entries = (ace_t *) malloc (count * sizeof (ace_t)); + if (entries == NULL) + { + errno = ENOMEM; + return -1; + } + if ((desc != -1 + ? facl (desc, ACE_GETACL, count, entries) + : acl (name, ACE_GETACL, count, entries)) + == count) + { + int i; + + convention = 0; + for (i = 0; i < count; i++) + if (entries[i].a_flags & (ACE_OWNER | ACE_GROUP | ACE_OTHER)) + { + convention = 1; + break; + } + free (entries); + break; + } + /* Huh? The number of ACL entries changed since the last call. + Repeat. */ + free (entries); + } + } + + if (convention >= 0) + { + ace_t entries[3]; + int ret; + + if (convention) + { + /* Running on Solaris 10. */ + entries[0].a_type = ALLOW; + entries[0].a_flags = ACE_OWNER; + entries[0].a_who = 0; /* irrelevant */ + entries[0].a_access_mask = (mode >> 6) & 7; + entries[1].a_type = ALLOW; + entries[1].a_flags = ACE_GROUP; + entries[1].a_who = 0; /* irrelevant */ + entries[1].a_access_mask = (mode >> 3) & 7; + entries[2].a_type = ALLOW; + entries[2].a_flags = ACE_OTHER; + entries[2].a_who = 0; + entries[2].a_access_mask = mode & 7; + } + else + { + /* Running on Solaris 10 (newer version) or Solaris 11. */ + entries[0].a_type = ACE_ACCESS_ALLOWED_ACE_TYPE; + entries[0].a_flags = NEW_ACE_OWNER; + entries[0].a_who = 0; /* irrelevant */ + entries[0].a_access_mask = + (mode & 0400 ? NEW_ACE_READ_DATA : 0) + | (mode & 0200 ? NEW_ACE_WRITE_DATA : 0) + | (mode & 0100 ? NEW_ACE_EXECUTE : 0); + entries[1].a_type = ACE_ACCESS_ALLOWED_ACE_TYPE; + entries[1].a_flags = NEW_ACE_GROUP | NEW_ACE_IDENTIFIER_GROUP; + entries[1].a_who = 0; /* irrelevant */ + entries[1].a_access_mask = + (mode & 0040 ? NEW_ACE_READ_DATA : 0) + | (mode & 0020 ? NEW_ACE_WRITE_DATA : 0) + | (mode & 0010 ? NEW_ACE_EXECUTE : 0); + entries[2].a_type = ACE_ACCESS_ALLOWED_ACE_TYPE; + entries[2].a_flags = ACE_EVERYONE; + entries[2].a_who = 0; + entries[2].a_access_mask = + (mode & 0004 ? NEW_ACE_READ_DATA : 0) + | (mode & 0002 ? NEW_ACE_WRITE_DATA : 0) + | (mode & 0001 ? NEW_ACE_EXECUTE : 0); + } + if (desc != -1) + ret = facl (desc, ACE_SETACL, + sizeof (entries) / sizeof (ace_t), entries); + else + ret = acl (name, ACE_SETACL, + sizeof (entries) / sizeof (ace_t), entries); + if (ret < 0 && errno != EINVAL && errno != ENOTSUP) + { + if (errno == ENOSYS) + return chmod_or_fchmod (name, desc, mode); + return -1; + } + } +# endif + + { + aclent_t entries[3]; + int ret; + + entries[0].a_type = USER_OBJ; + entries[0].a_id = 0; /* irrelevant */ + entries[0].a_perm = (mode >> 6) & 7; + entries[1].a_type = GROUP_OBJ; + entries[1].a_id = 0; /* irrelevant */ + entries[1].a_perm = (mode >> 3) & 7; + entries[2].a_type = OTHER_OBJ; + entries[2].a_id = 0; + entries[2].a_perm = mode & 7; + + if (desc != -1) + ret = facl (desc, SETACL, sizeof (entries) / sizeof (aclent_t), entries); + else + ret = acl (name, SETACL, sizeof (entries) / sizeof (aclent_t), entries); + if (ret < 0) + { + if (errno == ENOSYS || errno == EOPNOTSUPP) + return chmod_or_fchmod (name, desc, mode); + return -1; + } + } + + if (!MODE_INSIDE_ACL || (mode & (S_ISUID | S_ISGID | S_ISVTX))) + { + /* We did not call chmod so far, so the special bits have not yet + been set. */ + return chmod_or_fchmod (name, desc, mode); + } + return 0; + +# endif + +# elif HAVE_GETACL /* HP-UX */ + + struct stat statbuf; + struct acl_entry entries[3]; + int ret; + + if (desc != -1) + ret = fstat (desc, &statbuf); + else + ret = stat (name, &statbuf); + if (ret < 0) + return -1; + + entries[0].uid = statbuf.st_uid; + entries[0].gid = ACL_NSGROUP; + entries[0].mode = (mode >> 6) & 7; + entries[1].uid = ACL_NSUSER; + entries[1].gid = statbuf.st_gid; + entries[1].mode = (mode >> 3) & 7; + entries[2].uid = ACL_NSUSER; + entries[2].gid = ACL_NSGROUP; + entries[2].mode = mode & 7; + + if (desc != -1) + ret = fsetacl (desc, sizeof (entries) / sizeof (struct acl_entry), entries); + else + ret = setacl (name, sizeof (entries) / sizeof (struct acl_entry), entries); + if (ret < 0) + { + if (errno == ENOSYS || errno == EOPNOTSUPP) + return chmod_or_fchmod (name, desc, mode); + return -1; + } + + if (mode & (S_ISUID | S_ISGID | S_ISVTX)) + { + /* We did not call chmod so far, so the special bits have not yet + been set. */ + return chmod_or_fchmod (name, desc, mode); + } + return 0; + +# elif HAVE_ACLX_GET && defined ACL_AIX_WIP /* AIX */ + + acl_type_list_t types; + size_t types_size = sizeof (types); + acl_type_t type; + + if (aclx_gettypes (name, &types, &types_size) < 0 + || types.num_entries == 0) + return chmod_or_fchmod (name, desc, mode); + + /* XXX Do we need to clear all types of ACLs for the given file, or is it + sufficient to clear the first one? */ + type = types.entries[0]; + if (type.u64 == ACL_AIXC) + { + union { struct acl a; char room[128]; } u; + int ret; + + u.a.acl_len = (char *) &u.a.acl_ext[0] - (char *) &u.a; /* no entries */ + u.a.acl_mode = mode & ~(S_IXACL | 0777); + u.a.u_access = (mode >> 6) & 7; + u.a.g_access = (mode >> 3) & 7; + u.a.o_access = mode & 7; + + if (desc != -1) + ret = aclx_fput (desc, SET_ACL | SET_MODE_S_BITS, + type, &u.a, u.a.acl_len, mode); + else + ret = aclx_put (name, SET_ACL | SET_MODE_S_BITS, + type, &u.a, u.a.acl_len, mode); + if (!(ret < 0 && errno == ENOSYS)) + return ret; + } + else if (type.u64 == ACL_NFS4) + { + union { nfs4_acl_int_t a; char room[128]; } u; + nfs4_ace_int_t *ace; + int ret; + + u.a.aclVersion = NFS4_ACL_INT_STRUCT_VERSION; + u.a.aclEntryN = 0; + ace = &u.a.aclEntry[0]; + { + ace->flags = ACE4_ID_SPECIAL; + ace->aceWho.special_whoid = ACE4_WHO_OWNER; + ace->aceType = ACE4_ACCESS_ALLOWED_ACE_TYPE; + ace->aceFlags = 0; + ace->aceMask = + (mode & 0400 ? ACE4_READ_DATA | ACE4_LIST_DIRECTORY : 0) + | (mode & 0200 + ? ACE4_WRITE_DATA | ACE4_ADD_FILE | ACE4_APPEND_DATA + | ACE4_ADD_SUBDIRECTORY + : 0) + | (mode & 0100 ? ACE4_EXECUTE : 0); + ace->aceWhoString[0] = '\0'; + ace->entryLen = (char *) &ace->aceWhoString[4] - (char *) ace; + ace = (nfs4_ace_int_t *) (char *) &ace->aceWhoString[4]; + u.a.aclEntryN++; + } + { + ace->flags = ACE4_ID_SPECIAL; + ace->aceWho.special_whoid = ACE4_WHO_GROUP; + ace->aceType = ACE4_ACCESS_ALLOWED_ACE_TYPE; + ace->aceFlags = 0; + ace->aceMask = + (mode & 0040 ? ACE4_READ_DATA | ACE4_LIST_DIRECTORY : 0) + | (mode & 0020 + ? ACE4_WRITE_DATA | ACE4_ADD_FILE | ACE4_APPEND_DATA + | ACE4_ADD_SUBDIRECTORY + : 0) + | (mode & 0010 ? ACE4_EXECUTE : 0); + ace->aceWhoString[0] = '\0'; + ace->entryLen = (char *) &ace->aceWhoString[4] - (char *) ace; + ace = (nfs4_ace_int_t *) (char *) &ace->aceWhoString[4]; + u.a.aclEntryN++; + } + { + ace->flags = ACE4_ID_SPECIAL; + ace->aceWho.special_whoid = ACE4_WHO_EVERYONE; + ace->aceType = ACE4_ACCESS_ALLOWED_ACE_TYPE; + ace->aceFlags = 0; + ace->aceMask = + (mode & 0004 ? ACE4_READ_DATA | ACE4_LIST_DIRECTORY : 0) + | (mode & 0002 + ? ACE4_WRITE_DATA | ACE4_ADD_FILE | ACE4_APPEND_DATA + | ACE4_ADD_SUBDIRECTORY + : 0) + | (mode & 0001 ? ACE4_EXECUTE : 0); + ace->aceWhoString[0] = '\0'; + ace->entryLen = (char *) &ace->aceWhoString[4] - (char *) ace; + ace = (nfs4_ace_int_t *) (char *) &ace->aceWhoString[4]; + u.a.aclEntryN++; + } + u.a.aclLength = (char *) ace - (char *) &u.a; + + if (desc != -1) + ret = aclx_fput (desc, SET_ACL | SET_MODE_S_BITS, + type, &u.a, u.a.aclLength, mode); + else + ret = aclx_put (name, SET_ACL | SET_MODE_S_BITS, + type, &u.a, u.a.aclLength, mode); + if (!(ret < 0 && errno == ENOSYS)) + return ret; + } + + return chmod_or_fchmod (name, desc, mode); + +# elif HAVE_STATACL /* older AIX */ + + union { struct acl a; char room[128]; } u; + int ret; + + u.a.acl_len = (char *) &u.a.acl_ext[0] - (char *) &u.a; /* no entries */ + u.a.acl_mode = mode & ~(S_IXACL | 0777); + u.a.u_access = (mode >> 6) & 7; + u.a.g_access = (mode >> 3) & 7; + u.a.o_access = mode & 7; + + if (desc != -1) + ret = fchacl (desc, &u.a, u.a.acl_len); + else + ret = chacl (name, &u.a, u.a.acl_len); + + if (ret < 0 && errno == ENOSYS) + return chmod_or_fchmod (name, desc, mode); + + return ret; + +# else /* Unknown flavor of ACLs */ + return chmod_or_fchmod (name, desc, mode); +# endif +#else /* !USE_ACL */ + return chmod_or_fchmod (name, desc, mode); +#endif +} + +/* As with qset_acl, but also output a diagnostic on failure. */ + +int +set_acl (char const *name, int desc, mode_t mode) +{ + int r = qset_acl (name, desc, mode); + if (r != 0) + error (0, errno, _("setting permissions for %s"), quote (name)); + return r; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sh-quote.c gettext-0.18.1.1/gettext-tools/gnulib-lib/sh-quote.c --- gettext-0.17/gettext-tools/gnulib-lib/sh-quote.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sh-quote.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Shell quoting. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -43,7 +43,7 @@ if (sh_quoting_options == NULL) init_sh_quoting_options (); return quotearg_buffer (NULL, 0, string, strlen (string), - sh_quoting_options); + sh_quoting_options); } /* Copies the quoted string to p and returns the incremented p. @@ -54,7 +54,7 @@ if (sh_quoting_options == NULL) init_sh_quoting_options (); return p + quotearg_buffer (p, (size_t)(-1), string, strlen (string), - sh_quoting_options); + sh_quoting_options); } /* Returns the freshly allocated quoted string. */ @@ -80,24 +80,24 @@ length = 0; for (argp = argv; ; ) - { - length += shell_quote_length (*argp) + 1; - argp++; - if (*argp == NULL) - break; - } + { + length += shell_quote_length (*argp) + 1; + argp++; + if (*argp == NULL) + break; + } command = XNMALLOC (length, char); p = command; for (argp = argv; ; ) - { - p = shell_quote_copy (p, *argp); - argp++; - if (*argp == NULL) - break; - *p++ = ' '; - } + { + p = shell_quote_copy (p, *argp); + argp++; + if (*argp == NULL) + break; + *p++ = ' '; + } *p = '\0'; return command; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sh-quote.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sh-quote.h --- gettext-0.17/gettext-tools/gnulib-lib/sh-quote.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sh-quote.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* Shell quoting. - Copyright (C) 2001-2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2004, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sigaction.c gettext-0.18.1.1/gettext-tools/gnulib-lib/sigaction.c --- gettext-0.17/gettext-tools/gnulib-lib/sigaction.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sigaction.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,204 @@ +/* POSIX compatible signal blocking. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Eric Blake , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + +/* This implementation of sigaction is tailored to Woe32 behavior: + signal() has SysV semantics (ie. the handler is uninstalled before + it is invoked). This is an inherent data race if an asynchronous + signal is sent twice in a row before we can reinstall our handler, + but there's nothing we can do about it. Meanwhile, sigprocmask() + is not present, and while we can use the gnulib replacement to + provide critical sections, it too suffers from potential data races + in the face of an ill-timed asynchronous signal. And we compound + the situation by reading static storage in a signal handler, which + POSIX warns is not generically async-signal-safe. Oh well. + + Additionally: + - We don't implement SA_NOCLDSTOP or SA_NOCLDWAIT, because SIGCHLD + is not defined. + - We don't implement SA_ONSTACK, because sigaltstack() is not present. + - We ignore SA_RESTART, because blocking Win32 calls are not interrupted + anyway when an asynchronous signal occurs, and the MSVCRT runtime + never sets errno to EINTR. + - We don't implement SA_SIGINFO because it is impossible to do so + portably. + + POSIX states that an application should not mix signal() and + sigaction(). We support the use of signal() within the gnulib + sigprocmask() substitute, but all other application code linked + with this module should stick with only sigaction(). */ + +/* Check some of our assumptions. */ +#if defined SIGCHLD || defined HAVE_SIGALTSTACK || defined HAVE_SIGINTERRUPT +# error "Revisit the assumptions made in the sigaction module" +#endif + +/* Out-of-range substitutes make a good fallback for uncatchable + signals. */ +#ifndef SIGKILL +# define SIGKILL (-1) +#endif +#ifndef SIGSTOP +# define SIGSTOP (-1) +#endif + +/* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias + for the signal SIGABRT. Only one signal handler is stored for both + SIGABRT and SIGABRT_COMPAT. SIGABRT_COMPAT is not a signal of its own. */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# undef SIGABRT_COMPAT +# define SIGABRT_COMPAT 6 +#endif + +/* A signal handler. */ +typedef void (*handler_t) (int signal); + +/* Set of current actions. If sa_handler for an entry is NULL, then + that signal is not currently handled by the sigaction handler. */ +static struct sigaction volatile action_array[NSIG] /* = 0 */; + +/* Signal handler that is installed for signals. */ +static void +sigaction_handler (int sig) +{ + handler_t handler; + sigset_t mask; + sigset_t oldmask; + int saved_errno = errno; + if (sig < 0 || NSIG <= sig || !action_array[sig].sa_handler) + { + /* Unexpected situation; be careful to avoid recursive abort. */ + if (sig == SIGABRT) + signal (SIGABRT, SIG_DFL); + abort (); + } + + /* Reinstall the signal handler when required; otherwise update the + bookkeeping so that the user's handler may call sigaction and get + accurate results. We know the signal isn't currently blocked, or + we wouldn't be in its handler, therefore we know that we are not + interrupting a sigaction() call. There is a race where any + asynchronous instance of the same signal occurring before we + reinstall the handler will trigger the default handler; oh + well. */ + handler = action_array[sig].sa_handler; + if ((action_array[sig].sa_flags & SA_RESETHAND) == 0) + signal (sig, sigaction_handler); + else + action_array[sig].sa_handler = NULL; + + /* Block appropriate signals. */ + mask = action_array[sig].sa_mask; + if ((action_array[sig].sa_flags & SA_NODEFER) == 0) + sigaddset (&mask, sig); + sigprocmask (SIG_BLOCK, &mask, &oldmask); + + /* Invoke the user's handler, then restore prior mask. */ + errno = saved_errno; + handler (sig); + saved_errno = errno; + sigprocmask (SIG_SETMASK, &oldmask, NULL); + errno = saved_errno; +} + +/* Change and/or query the action that will be taken on delivery of + signal SIG. If not NULL, ACT describes the new behavior. If not + NULL, OACT is set to the prior behavior. Return 0 on success, or + set errno and return -1 on failure. */ +int +sigaction (int sig, const struct sigaction *restrict act, + struct sigaction *restrict oact) +{ + sigset_t mask; + sigset_t oldmask; + int saved_errno; + + if (sig < 0 || NSIG <= sig || sig == SIGKILL || sig == SIGSTOP + || (act && act->sa_handler == SIG_ERR)) + { + errno = EINVAL; + return -1; + } + + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + /* POSIX requires sigaction() to be async-signal-safe. In other + words, if an asynchronous signal can occur while we are anywhere + inside this function, the user's handler could then call + sigaction() recursively and expect consistent results. We meet + this rule by using sigprocmask to block all signals before + modifying any data structure that could be read from a signal + handler; this works since we know that the gnulib sigprocmask + replacement does not try to use sigaction() from its handler. */ + if (!act && !oact) + return 0; + sigfillset (&mask); + sigprocmask (SIG_BLOCK, &mask, &oldmask); + if (oact) + { + if (action_array[sig].sa_handler) + *oact = action_array[sig]; + else + { + /* Safe to change the handler at will here, since all + signals are currently blocked. */ + oact->sa_handler = signal (sig, SIG_DFL); + if (oact->sa_handler == SIG_ERR) + goto failure; + signal (sig, oact->sa_handler); + oact->sa_flags = SA_RESETHAND | SA_NODEFER; + sigemptyset (&oact->sa_mask); + } + } + + if (act) + { + /* Safe to install the handler before updating action_array, + since all signals are currently blocked. */ + if (act->sa_handler == SIG_DFL || act->sa_handler == SIG_IGN) + { + if (signal (sig, act->sa_handler) == SIG_ERR) + goto failure; + action_array[sig].sa_handler = NULL; + } + else + { + if (signal (sig, sigaction_handler) == SIG_ERR) + goto failure; + action_array[sig] = *act; + } + } + sigprocmask (SIG_SETMASK, &oldmask, NULL); + return 0; + + failure: + saved_errno = errno; + sigprocmask (SIG_SETMASK, &oldmask, NULL); + errno = saved_errno; + return -1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sig-handler.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sig-handler.h --- gettext-0.17/gettext-tools/gnulib-lib/sig-handler.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sig-handler.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,44 @@ +/* Convenience declarations when working with . + + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_SIG_HANDLER_H +#define _GL_SIG_HANDLER_H + +#include + +/* Convenience type when working with signal handlers. */ +typedef void (*sa_handler_t) (int); + +/* Return the handler of a signal, as a sa_handler_t value regardless + of its true type. The resulting function can be compared to + special values like SIG_IGN but it is not portable to call it. */ +static inline sa_handler_t +get_handler (struct sigaction const *a) +{ +#ifdef SA_SIGINFO + /* POSIX says that special values like SIG_IGN can only occur when + action.sa_flags does not contain SA_SIGINFO. But in Linux 2.4, + for example, sa_sigaction and sa_handler are aliases and a signal + is ignored if sa_sigaction (after casting) equals SIG_IGN. So + use (and cast) sa_sigaction in that case. */ + if (a->sa_flags & SA_SIGINFO) + return (sa_handler_t) a->sa_sigaction; +#endif + return a->sa_handler; +} + +#endif /* _GL_SIG_HANDLER_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/signal.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/signal.in.h --- gettext-0.17/gettext-tools/gnulib-lib/signal.in.h 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/signal.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,6 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_sig_atomic_t || defined __need_sigset_t /* Special invocation convention inside glibc header files. */ @@ -31,67 +35,295 @@ #ifndef _GL_SIGNAL_H #define _GL_SIGNAL_H -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ -#ifdef __cplusplus -extern "C" { +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define pid_t, uid_t. + Also, mingw defines sigset_t not in , but in . */ +#include + +/* On AIX, sig_atomic_t already includes volatile. C99 requires that + 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. + Hence, redefine this to a non-volatile type as needed. */ +#if ! @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ +typedef int rpl_sig_atomic_t; +# undef sig_atomic_t +# define sig_atomic_t rpl_sig_atomic_t #endif +/* A set or mask of signals. */ +#if !@HAVE_SIGSET_T@ +typedef unsigned int sigset_t; +#endif + + +#if @GNULIB_SIGNAL_H_SIGPIPE@ +# ifndef SIGPIPE +/* Define SIGPIPE to a value that does not overlap with other signals. */ +# define SIGPIPE 13 +# define GNULIB_defined_SIGPIPE 1 +/* To actually use SIGPIPE, you also need the gnulib modules 'sigprocmask', + 'write', 'stdio'. */ +# endif +#endif -#if !@HAVE_POSIX_SIGNALBLOCKING@ -/* Mingw defines sigset_t not in , but in . */ -# include +#if @GNULIB_SIGPROCMASK@ +# if !@HAVE_POSIX_SIGNALBLOCKING@ /* Maximum signal number + 1. */ -# ifndef NSIG -# define NSIG 32 -# endif +# ifndef NSIG +# define NSIG 32 +# endif /* This code supports only 32 signals. */ typedef int verify_NSIG_constraint[2 * (NSIG <= 32) - 1]; -/* A set or mask of signals. */ -# if !@HAVE_SIGSET_T@ -typedef unsigned int sigset_t; # endif /* Test whether a given signal is contained in a signal set. */ -extern int sigismember (const sigset_t *set, int sig); +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigismember +# endif +# else +_GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigismember); /* Initialize a signal set to the empty set. */ -extern int sigemptyset (sigset_t *set); +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigemptyset +# endif +# else +_GL_FUNCDECL_SYS (sigemptyset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigemptyset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigemptyset); /* Add a signal to a signal set. */ -extern int sigaddset (sigset_t *set, int sig); +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigaddset +# endif +# else +_GL_FUNCDECL_SYS (sigaddset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigaddset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigaddset); /* Remove a signal from a signal set. */ -extern int sigdelset (sigset_t *set, int sig); +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigdelset +# endif +# else +_GL_FUNCDECL_SYS (sigdelset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigdelset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigdelset); /* Fill a signal set with all possible signals. */ -extern int sigfillset (sigset_t *set); +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigfillset +# endif +# else +_GL_FUNCDECL_SYS (sigfillset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigfillset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigfillset); /* Return the set of those blocked signals that are pending. */ -extern int sigpending (sigset_t *set); +# if !@HAVE_POSIX_SIGNALBLOCKING@ +_GL_FUNCDECL_SYS (sigpending, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigpending, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigpending); /* If OLD_SET is not NULL, put the current set of blocked signals in *OLD_SET. Then, if SET is not NULL, affect the current set of blocked signals by combining it with *SET as indicated in OPERATION. In this implementation, you are not allowed to change a signal handler while the signal is blocked. */ -# define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */ -# define SIG_SETMASK 1 /* blocked_set = *set; */ -# define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */ -extern int sigprocmask (int operation, const sigset_t *set, sigset_t *old_set); +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */ +# define SIG_SETMASK 1 /* blocked_set = *set; */ +# define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */ +_GL_FUNCDECL_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +# endif +_GL_CXXALIAS_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +_GL_CXXALIASWARN (sigprocmask); + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +# ifdef __cplusplus +extern "C" { +# endif +typedef void (*_gl_function_taking_int_returning_void_t) (int); +# ifdef __cplusplus +} +# endif +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define signal rpl_signal +# endif +_GL_FUNCDECL_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +_GL_CXXALIAS_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# else +_GL_CXXALIAS_SYS (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# endif +_GL_CXXALIASWARN (signal); -#endif +/* Raise signal SIG. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef raise +# define raise rpl_raise +# endif +_GL_FUNCDECL_RPL (raise, int, (int sig)); +_GL_CXXALIAS_RPL (raise, int, (int sig)); +# else +_GL_CXXALIAS_SYS (raise, int, (int sig)); +# endif +_GL_CXXALIASWARN (raise); +#elif defined GNULIB_POSIXCHECK +# undef sigaddset +# if HAVE_RAW_DECL_SIGADDSET +_GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigdelset +# if HAVE_RAW_DECL_SIGDELSET +_GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigemptyset +# if HAVE_RAW_DECL_SIGEMPTYSET +_GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigfillset +# if HAVE_RAW_DECL_SIGFILLSET +_GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigismember +# if HAVE_RAW_DECL_SIGISMEMBER +_GL_WARN_ON_USE (sigismember, "sigismember is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigpending +# if HAVE_RAW_DECL_SIGPENDING +_GL_WARN_ON_USE (sigpending, "sigpending is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigprocmask +# if HAVE_RAW_DECL_SIGPROCMASK +_GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +#endif /* @GNULIB_SIGPROCMASK@ */ -#ifdef __cplusplus -} + +#if @GNULIB_SIGACTION@ +# if !@HAVE_SIGACTION@ + +# if !@HAVE_SIGINFO_T@ +/* Present to allow compilation, but unsupported by gnulib. */ +union sigval +{ + int sival_int; + void *sival_ptr; +}; + +/* Present to allow compilation, but unsupported by gnulib. */ +struct siginfo_t +{ + int si_signo; + int si_code; + int si_errno; + pid_t si_pid; + uid_t si_uid; + void *si_addr; + int si_status; + long si_band; + union sigval si_value; +}; +typedef struct siginfo_t siginfo_t; +# endif /* !@HAVE_SIGINFO_T@ */ + +/* We assume that platforms which lack the sigaction() function also lack + the 'struct sigaction' type, and vice versa. */ + +struct sigaction +{ + union + { + void (*_sa_handler) (int); + /* Present to allow compilation, but unsupported by gnulib. POSIX + says that implementations may, but not must, make sa_sigaction + overlap with sa_handler, but we know of no implementation where + they do not overlap. */ + void (*_sa_sigaction) (int, siginfo_t *, void *); + } _sa_func; + sigset_t sa_mask; + /* Not all POSIX flags are supported. */ + int sa_flags; +}; +# define sa_handler _sa_func._sa_handler +# define sa_sigaction _sa_func._sa_sigaction +/* Unsupported flags are not present. */ +# define SA_RESETHAND 1 +# define SA_NODEFER 2 +# define SA_RESTART 4 + +_GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); + +# elif !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ + +# define sa_sigaction sa_handler + +# endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */ + +_GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); +_GL_CXXALIASWARN (sigaction); + +#elif defined GNULIB_POSIXCHECK +# undef sigaction +# if HAVE_RAW_DECL_SIGACTION +_GL_WARN_ON_USE (sigaction, "sigaction is unportable - " + "use the gnulib module sigaction for portability"); +# endif #endif +/* Some systems don't have SA_NODEFER. */ +#ifndef SA_NODEFER +# define SA_NODEFER 0 +#endif + + #endif /* _GL_SIGNAL_H */ #endif /* _GL_SIGNAL_H */ #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sigprocmask.c gettext-0.18.1.1/gettext-tools/gnulib-lib/sigprocmask.c --- gettext-0.17/gettext-tools/gnulib-lib/sigprocmask.c 2007-10-07 20:29:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sigprocmask.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,5 +1,5 @@ /* POSIX compatible signal blocking. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -24,18 +24,77 @@ #include #include -/* We assume that a platform without POSIX signal blocking functions also - does not have the POSIX sigaction() function, only the signal() function. - This is true for Woe32 platforms. */ - -/* A signal handler. */ -typedef void (*handler_t) (int signal); +/* We assume that a platform without POSIX signal blocking functions + also does not have the POSIX sigaction() function, only the + signal() function. We also assume signal() has SysV semantics, + where any handler is uninstalled prior to being invoked. This is + true for Woe32 platforms. */ + +/* We use raw signal(), but also provide a wrapper rpl_signal() so + that applications can query or change a blocked signal. */ +#undef signal + +/* Provide invalid signal numbers as fallbacks if the uncatchable + signals are not defined. */ +#ifndef SIGKILL +# define SIGKILL (-1) +#endif +#ifndef SIGSTOP +# define SIGSTOP (-1) +#endif + +/* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias + for the signal SIGABRT. Only one signal handler is stored for both + SIGABRT and SIGABRT_COMPAT. SIGABRT_COMPAT is not a signal of its own. */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# undef SIGABRT_COMPAT +# define SIGABRT_COMPAT 6 +#endif +#ifdef SIGABRT_COMPAT +# define SIGABRT_COMPAT_MASK (1U << SIGABRT_COMPAT) +#else +# define SIGABRT_COMPAT_MASK 0 +#endif + +typedef void (*handler_t) (int); + +/* Handling of gnulib defined signals. */ + +#if GNULIB_defined_SIGPIPE +static handler_t SIGPIPE_handler = SIG_DFL; +#endif + +#if GNULIB_defined_SIGPIPE +static handler_t +ext_signal (int sig, handler_t handler) +{ + switch (sig) + { + case SIGPIPE: + { + handler_t old_handler = SIGPIPE_handler; + SIGPIPE_handler = handler; + return old_handler; + } + default: /* System defined signal */ + return signal (sig, handler); + } +} +# define signal ext_signal +#endif int sigismember (const sigset_t *set, int sig) { if (sig >= 0 && sig < NSIG) - return (*set >> sig) & 1; + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + return (*set >> sig) & 1; + } else return 0; } @@ -52,6 +111,11 @@ { if (sig >= 0 && sig < NSIG) { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + *set |= 1U << sig; return 0; } @@ -67,6 +131,11 @@ { if (sig >= 0 && sig < NSIG) { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + *set &= ~(1U << sig); return 0; } @@ -77,15 +146,16 @@ } } + int sigfillset (sigset_t *set) { - *set = (2U << (NSIG - 1)) - 1; + *set = ((2U << (NSIG - 1)) - 1) & ~ SIGABRT_COMPAT_MASK; return 0; } /* Set of currently blocked signals. */ -static sigset_t blocked_set /* = 0 */; +static volatile sigset_t blocked_set /* = 0 */; /* Set of currently blocked and pending signals. */ static volatile sig_atomic_t pending_array[NSIG] /* = { 0 } */; @@ -94,6 +164,12 @@ static void blocked_handler (int sig) { + /* Reinstall the handler, in case the signal occurs multiple times + while blocked. There is an inherent race where an asynchronous + signal in between when the kernel uninstalled the handler and + when we reinstall it will trigger the default handler; oh + well. */ + signal (sig, blocked_handler); if (sig >= 0 && sig < NSIG) pending_array[sig] = 1; } @@ -107,12 +183,13 @@ for (sig = 0; sig < NSIG; sig++) if (pending_array[sig]) pending |= 1U << sig; - return pending; + *set = pending; + return 0; } /* The previous signal handlers. Only the array elements corresponding to blocked signals are relevant. */ -static handler_t old_handlers[NSIG]; +static volatile handler_t old_handlers[NSIG]; int sigprocmask (int operation, const sigset_t *set, sigset_t *old_set) @@ -127,65 +204,126 @@ sigset_t to_block; switch (operation) - { - case SIG_BLOCK: - new_blocked_set = blocked_set | *set; - break; - case SIG_SETMASK: - new_blocked_set = *set; - break; - case SIG_UNBLOCK: - new_blocked_set = blocked_set & ~*set; - break; - default: - errno = EINVAL; - return -1; - } + { + case SIG_BLOCK: + new_blocked_set = blocked_set | *set; + break; + case SIG_SETMASK: + new_blocked_set = *set; + break; + case SIG_UNBLOCK: + new_blocked_set = blocked_set & ~*set; + break; + default: + errno = EINVAL; + return -1; + } to_unblock = blocked_set & ~new_blocked_set; to_block = new_blocked_set & ~blocked_set; if (to_block != 0) - { - int sig; + { + int sig; - for (sig = 0; sig < NSIG; sig++) - if ((to_block >> sig) & 1) - { - pending_array[sig] = 0; - if ((old_handlers[sig] = signal (sig, blocked_handler)) != SIG_ERR) - blocked_set |= 1U << sig; - } - } + for (sig = 0; sig < NSIG; sig++) + if ((to_block >> sig) & 1) + { + pending_array[sig] = 0; + if ((old_handlers[sig] = signal (sig, blocked_handler)) != SIG_ERR) + blocked_set |= 1U << sig; + } + } if (to_unblock != 0) - { - sig_atomic_t received[NSIG]; - int sig; - - for (sig = 0; sig < NSIG; sig++) - if ((to_unblock >> sig) & 1) - { - if (signal (sig, old_handlers[sig]) != blocked_handler) - /* The application changed a signal handler while the signal - was blocked. We don't support this. */ - abort (); - received[sig] = pending_array[sig]; - blocked_set &= ~(1U << sig); - pending_array[sig] = 0; - } - else - received[sig] = 0; - - for (sig = 0; sig < NSIG; sig++) - if (received[sig]) - { - #if HAVE_RAISE - raise (sig); - #else - kill (getpid (), sig); - #endif - } - } + { + sig_atomic_t received[NSIG]; + int sig; + + for (sig = 0; sig < NSIG; sig++) + if ((to_unblock >> sig) & 1) + { + if (signal (sig, old_handlers[sig]) != blocked_handler) + /* The application changed a signal handler while the signal + was blocked, bypassing our rpl_signal replacement. + We don't support this. */ + abort (); + received[sig] = pending_array[sig]; + blocked_set &= ~(1U << sig); + pending_array[sig] = 0; + } + else + received[sig] = 0; + + for (sig = 0; sig < NSIG; sig++) + if (received[sig]) + raise (sig); + } } return 0; } + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +handler_t +rpl_signal (int sig, handler_t handler) +{ + /* We must provide a wrapper, so that a user can query what handler + they installed even if that signal is currently blocked. */ + if (sig >= 0 && sig < NSIG && sig != SIGKILL && sig != SIGSTOP + && handler != SIG_ERR) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + if (blocked_set & (1U << sig)) + { + /* POSIX states that sigprocmask and signal are both + async-signal-safe. This is not true of our + implementation - there is a slight data race where an + asynchronous interrupt on signal A can occur after we + install blocked_handler but before we have updated + old_handlers for signal B, such that handler A can see + stale information if it calls signal(B). Oh well - + signal handlers really shouldn't try to manipulate the + installed handlers of unrelated signals. */ + handler_t result = old_handlers[sig]; + old_handlers[sig] = handler; + return result; + } + else + return signal (sig, handler); + } + else + { + errno = EINVAL; + return SIG_ERR; + } +} + +#if GNULIB_defined_SIGPIPE +/* Raise the signal SIG. */ +int +rpl_raise (int sig) +# undef raise +{ + switch (sig) + { + case SIGPIPE: + if (blocked_set & (1U << sig)) + pending_array[sig] = 1; + else + { + handler_t handler = SIGPIPE_handler; + if (handler == SIG_DFL) + exit (128 + SIGPIPE); + else if (handler != SIG_IGN) + (*handler) (sig); + } + return 0; + default: /* System defined signal */ + return raise (sig); + } +} +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/size_max.h gettext-0.18.1.1/gettext-tools/gnulib-lib/size_max.h --- gettext-0.17/gettext-tools/gnulib-lib/size_max.h 2007-01-27 03:22:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/size_max.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ /* size_max.h -- declare SIZE_MAX through system headers - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/snprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/snprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/snprintf.c 2007-10-26 00:52:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/snprintf.c 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ /* Formatted output to strings. - Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2006-2010 Free Software Foundation, Inc. Written by Simon Josefsson and Paul Eggert. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -29,11 +29,6 @@ #include "vasnprintf.h" -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - /* Print formatted output to string STR. Similar to sprintf, but additional length SIZE limit how much is written into STR. Returns string length of formatted string (which may be larger than SIZE). @@ -58,11 +53,11 @@ if (output != str) { if (size) - { - size_t pruned_len = (len < size ? len : size - 1); - memcpy (str, output, pruned_len); - str[pruned_len] = '\0'; - } + { + size_t pruned_len = (len < size ? len : size - 1); + memcpy (str, output, pruned_len); + str[pruned_len] = '\0'; + } free (output); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawnattr_destroy.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_destroy.c --- gettext-0.17/gettext-tools/gnulib-lib/spawnattr_destroy.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_destroy.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,28 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Initialize data structure for file attribute for `spawn' call. */ +int +posix_spawnattr_destroy (posix_spawnattr_t *attr) +{ + /* Nothing to do in the moment. */ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawnattr_init.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_init.c --- gettext-0.17/gettext-tools/gnulib-lib/spawnattr_init.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_init.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,33 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include + +/* Initialize data structure for file attribute for `spawn' call. */ +int +posix_spawnattr_init (posix_spawnattr_t *attr) +{ + /* All elements have to be initialized to the default values which + is generally zero. */ + memset (attr, '\0', sizeof (*attr)); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawnattr_setflags.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_setflags.c --- gettext-0.17/gettext-tools/gnulib-lib/spawnattr_setflags.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_setflags.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,45 @@ +/* Copyright (C) 2000, 2004, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +#define ALL_FLAGS (POSIX_SPAWN_RESETIDS \ + | POSIX_SPAWN_SETPGROUP \ + | POSIX_SPAWN_SETSIGDEF \ + | POSIX_SPAWN_SETSIGMASK \ + | POSIX_SPAWN_SETSCHEDPARAM \ + | POSIX_SPAWN_SETSCHEDULER \ + | POSIX_SPAWN_USEVFORK) + +/* Store flags in the attribute structure. */ +int +posix_spawnattr_setflags (posix_spawnattr_t *attr, short int flags) +{ + /* Check no invalid bits are set. */ + if (flags & ~ALL_FLAGS) + return EINVAL; + + /* Store the flag word. */ + attr->_flags = flags; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawnattr_setsigmask.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_setsigmask.c --- gettext-0.17/gettext-tools/gnulib-lib/spawnattr_setsigmask.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnattr_setsigmask.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,33 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include + +/* Set signal mask for the new process in ATTR to SIGMASK. */ +int +posix_spawnattr_setsigmask (posix_spawnattr_t *attr, + const sigset_t *sigmask) +{ + /* Copy the sigset_t data to the user buffer. */ + memcpy (&attr->_ss, sigmask, sizeof (sigset_t)); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_addclose.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_addclose.c --- gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_addclose.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_addclose.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,59 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +#if !_LIBC +# define __sysconf(open_max) getdtablesize () +#endif + +#include "spawn_int.h" + +/* Add an action to FILE-ACTIONS which tells the implementation to call + `close' for the given file descriptor during the `spawn' call. */ +int +posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *file_actions, + int fd) +{ + int maxfd = __sysconf (_SC_OPEN_MAX); + struct __spawn_action *rec; + + /* Test for the validity of the file descriptor. */ + if (fd < 0 || fd >= maxfd) + return EBADF; + + /* Allocate more memory if needed. */ + if (file_actions->_used == file_actions->_allocated + && __posix_spawn_file_actions_realloc (file_actions) != 0) + /* This can only mean we ran out of memory. */ + return ENOMEM; + + /* Add the new value. */ + rec = &file_actions->_actions[file_actions->_used]; + rec->tag = spawn_do_close; + rec->action.open_action.fd = fd; + + /* Account for the new entry. */ + ++file_actions->_used; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_adddup2.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_adddup2.c --- gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_adddup2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_adddup2.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,60 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +#if !_LIBC +# define __sysconf(open_max) getdtablesize () +#endif + +#include "spawn_int.h" + +/* Add an action to FILE-ACTIONS which tells the implementation to call + `dup2' for the given file descriptors during the `spawn' call. */ +int +posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *file_actions, + int fd, int newfd) +{ + int maxfd = __sysconf (_SC_OPEN_MAX); + struct __spawn_action *rec; + + /* Test for the validity of the file descriptor. */ + if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) + return EBADF; + + /* Allocate more memory if needed. */ + if (file_actions->_used == file_actions->_allocated + && __posix_spawn_file_actions_realloc (file_actions) != 0) + /* This can only mean we ran out of memory. */ + return ENOMEM; + + /* Add the new value. */ + rec = &file_actions->_actions[file_actions->_used]; + rec->tag = spawn_do_dup2; + rec->action.dup2_action.fd = fd; + rec->action.dup2_action.newfd = newfd; + + /* Account for the new entry. */ + ++file_actions->_used; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_addopen.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_addopen.c --- gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_addopen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_addopen.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,63 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +#if !_LIBC +# define __sysconf(open_max) getdtablesize () +#endif + +#include "spawn_int.h" + +/* Add an action to FILE-ACTIONS which tells the implementation to call + `open' for the given file during the `spawn' call. */ +int +posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *file_actions, + int fd, const char *path, int oflag, + mode_t mode) +{ + int maxfd = __sysconf (_SC_OPEN_MAX); + struct __spawn_action *rec; + + /* Test for the validity of the file descriptor. */ + if (fd < 0 || fd >= maxfd) + return EBADF; + + /* Allocate more memory if needed. */ + if (file_actions->_used == file_actions->_allocated + && __posix_spawn_file_actions_realloc (file_actions) != 0) + /* This can only mean we ran out of memory. */ + return ENOMEM; + + /* Add the new value. */ + rec = &file_actions->_actions[file_actions->_used]; + rec->tag = spawn_do_open; + rec->action.open_action.fd = fd; + rec->action.open_action.path = path; + rec->action.open_action.oflag = oflag; + rec->action.open_action.mode = mode; + + /* Account for the new entry. */ + ++file_actions->_used; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_destroy.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_destroy.c --- gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_destroy.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_destroy.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,31 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include + +/* Initialize data structure for file attribute for `spawn' call. */ +int +posix_spawn_file_actions_destroy (posix_spawn_file_actions_t *file_actions) +{ + /* Free the memory allocated. */ + free (file_actions->_actions); + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_init.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_init.c --- gettext-0.17/gettext-tools/gnulib-lib/spawn_faction_init.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_faction_init.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,56 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + +#include "spawn_int.h" + + +/* Function used to increase the size of the allocated array. This + function is called from the `add'-functions. */ +int +__posix_spawn_file_actions_realloc (posix_spawn_file_actions_t *file_actions) +{ + int newalloc = file_actions->_allocated + 8; + void *newmem = realloc (file_actions->_actions, + newalloc * sizeof (struct __spawn_action)); + + if (newmem == NULL) + /* Not enough memory. */ + return ENOMEM; + + file_actions->_actions = (struct __spawn_action *) newmem; + file_actions->_allocated = newalloc; + + return 0; +} + + +/* Initialize data structure for file attribute for `spawn' call. */ +int +posix_spawn_file_actions_init (posix_spawn_file_actions_t *file_actions) +{ + /* Simply clear all the elements. */ + memset (file_actions, '\0', sizeof (*file_actions)); + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawni.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawni.c --- gettext-0.17/gettext-tools/gnulib-lib/spawni.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawni.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,374 @@ +/* Guts of POSIX spawn interface. Generic POSIX.1 version. + Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include +#include "spawn_int.h" + +#include +#include + +#include +#ifndef O_LARGEFILE +# define O_LARGEFILE 0 +#endif + +#if _LIBC || HAVE_PATHS_H +# include +#else +# define _PATH_BSHELL "/bin/sh" +#endif + +#include +#include +#include +#include + +#if _LIBC +# include +#else +# define close_not_cancel close +# define open_not_cancel open +#endif + +#if _LIBC +# include +#else +# if !HAVE_SETEUID +# define seteuid(id) setresuid (-1, id, -1) +# endif +# if !HAVE_SETEGID +# define setegid(id) setresgid (-1, id, -1) +# endif +# define local_seteuid(id) seteuid (id) +# define local_setegid(id) setegid (id) +#endif + +#if _LIBC +# define alloca __alloca +# define execve __execve +# define dup2 __dup2 +# define fork __fork +# define getgid __getgid +# define getuid __getuid +# define sched_setparam __sched_setparam +# define sched_setscheduler __sched_setscheduler +# define setpgid __setpgid +# define sigaction __sigaction +# define sigismember __sigismember +# define sigprocmask __sigprocmask +# define strchrnul __strchrnul +# define vfork __vfork +#else +# undef internal_function +# define internal_function /* empty */ +#endif + + +/* The Unix standard contains a long explanation of the way to signal + an error after the fork() was successful. Since no new wait status + was wanted there is no way to signal an error using one of the + available methods. The committee chose to signal an error by a + normal program exit with the exit code 127. */ +#define SPAWN_ERROR 127 + + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* Native Woe32 API. */ +int +__spawni (pid_t *pid, const char *file, + const posix_spawn_file_actions_t *file_actions, + const posix_spawnattr_t *attrp, char *const argv[], + char *const envp[], int use_path) +{ + /* Not yet implemented. */ + return ENOSYS; +} + +#else + + +/* The file is accessible but it is not an executable file. Invoke + the shell to interpret it as a script. */ +static void +internal_function +script_execute (const char *file, char *const argv[], char *const envp[]) +{ + /* Count the arguments. */ + int argc = 0; + while (argv[argc++]) + ; + + /* Construct an argument list for the shell. */ + { + char **new_argv = (char **) alloca ((argc + 1) * sizeof (char *)); + new_argv[0] = (char *) _PATH_BSHELL; + new_argv[1] = (char *) file; + while (argc > 1) + { + new_argv[argc] = argv[argc - 1]; + --argc; + } + + /* Execute the shell. */ + execve (new_argv[0], new_argv, envp); + } +} + + +/* Spawn a new process executing PATH with the attributes describes in *ATTRP. + Before running the process perform the actions described in FILE-ACTIONS. */ +int +__spawni (pid_t *pid, const char *file, + const posix_spawn_file_actions_t *file_actions, + const posix_spawnattr_t *attrp, char *const argv[], + char *const envp[], int use_path) +{ + pid_t new_pid; + char *path, *p, *name; + size_t len; + size_t pathlen; + + /* Do this once. */ + short int flags = attrp == NULL ? 0 : attrp->_flags; + + /* Avoid gcc warning + "variable 'flags' might be clobbered by 'longjmp' or 'vfork'" */ + (void) &flags; + + /* Generate the new process. */ +#if HAVE_VFORK + if ((flags & POSIX_SPAWN_USEVFORK) != 0 + /* If no major work is done, allow using vfork. Note that we + might perform the path searching. But this would be done by + a call to execvp(), too, and such a call must be OK according + to POSIX. */ + || ((flags & (POSIX_SPAWN_SETSIGMASK | POSIX_SPAWN_SETSIGDEF + | POSIX_SPAWN_SETSCHEDPARAM | POSIX_SPAWN_SETSCHEDULER + | POSIX_SPAWN_SETPGROUP | POSIX_SPAWN_RESETIDS)) == 0 + && file_actions == NULL)) + new_pid = vfork (); + else +#endif + new_pid = fork (); + + if (new_pid != 0) + { + if (new_pid < 0) + return errno; + + /* The call was successful. Store the PID if necessary. */ + if (pid != NULL) + *pid = new_pid; + + return 0; + } + + /* Set signal mask. */ + if ((flags & POSIX_SPAWN_SETSIGMASK) != 0 + && sigprocmask (SIG_SETMASK, &attrp->_ss, NULL) != 0) + _exit (SPAWN_ERROR); + + /* Set signal default action. */ + if ((flags & POSIX_SPAWN_SETSIGDEF) != 0) + { + /* We have to iterate over all signals. This could possibly be + done better but it requires system specific solutions since + the sigset_t data type can be very different on different + architectures. */ + int sig; + struct sigaction sa; + + memset (&sa, '\0', sizeof (sa)); + sa.sa_handler = SIG_DFL; + + for (sig = 1; sig <= NSIG; ++sig) + if (sigismember (&attrp->_sd, sig) != 0 + && sigaction (sig, &sa, NULL) != 0) + _exit (SPAWN_ERROR); + + } + +#if (_LIBC ? defined _POSIX_PRIORITY_SCHEDULING : HAVE_SCHED_SETPARAM && HAVE_SCHED_SETSCHEDULER) + /* Set the scheduling algorithm and parameters. */ + if ((flags & (POSIX_SPAWN_SETSCHEDPARAM | POSIX_SPAWN_SETSCHEDULER)) + == POSIX_SPAWN_SETSCHEDPARAM) + { + if (sched_setparam (0, &attrp->_sp) == -1) + _exit (SPAWN_ERROR); + } + else if ((flags & POSIX_SPAWN_SETSCHEDULER) != 0) + { + if (sched_setscheduler (0, attrp->_policy, + (flags & POSIX_SPAWN_SETSCHEDPARAM) != 0 + ? &attrp->_sp : NULL) == -1) + _exit (SPAWN_ERROR); + } +#endif + + /* Set the process group ID. */ + if ((flags & POSIX_SPAWN_SETPGROUP) != 0 + && setpgid (0, attrp->_pgrp) != 0) + _exit (SPAWN_ERROR); + + /* Set the effective user and group IDs. */ + if ((flags & POSIX_SPAWN_RESETIDS) != 0 + && (local_seteuid (getuid ()) != 0 + || local_setegid (getgid ()) != 0)) + _exit (SPAWN_ERROR); + + /* Execute the file actions. */ + if (file_actions != NULL) + { + int cnt; + + for (cnt = 0; cnt < file_actions->_used; ++cnt) + { + struct __spawn_action *action = &file_actions->_actions[cnt]; + + switch (action->tag) + { + case spawn_do_close: + if (close_not_cancel (action->action.close_action.fd) != 0) + /* Signal the error. */ + _exit (SPAWN_ERROR); + break; + + case spawn_do_open: + { + int new_fd = open_not_cancel (action->action.open_action.path, + action->action.open_action.oflag + | O_LARGEFILE, + action->action.open_action.mode); + + if (new_fd == -1) + /* The `open' call failed. */ + _exit (SPAWN_ERROR); + + /* Make sure the desired file descriptor is used. */ + if (new_fd != action->action.open_action.fd) + { + if (dup2 (new_fd, action->action.open_action.fd) + != action->action.open_action.fd) + /* The `dup2' call failed. */ + _exit (SPAWN_ERROR); + + if (close_not_cancel (new_fd) != 0) + /* The `close' call failed. */ + _exit (SPAWN_ERROR); + } + } + break; + + case spawn_do_dup2: + if (dup2 (action->action.dup2_action.fd, + action->action.dup2_action.newfd) + != action->action.dup2_action.newfd) + /* The `dup2' call failed. */ + _exit (SPAWN_ERROR); + break; + } + } + } + + if (! use_path || strchr (file, '/') != NULL) + { + /* The FILE parameter is actually a path. */ + execve (file, argv, envp); + + if (errno == ENOEXEC) + script_execute (file, argv, envp); + + /* Oh, oh. `execve' returns. This is bad. */ + _exit (SPAWN_ERROR); + } + + /* We have to search for FILE on the path. */ + path = getenv ("PATH"); + if (path == NULL) + { +#if HAVE_CONFSTR + /* There is no `PATH' in the environment. + The default search path is the current directory + followed by the path `confstr' returns for `_CS_PATH'. */ + len = confstr (_CS_PATH, (char *) NULL, 0); + path = (char *) alloca (1 + len); + path[0] = ':'; + (void) confstr (_CS_PATH, path + 1, len); +#else + /* Pretend that the PATH contains only the current directory. */ + path = ""; +#endif + } + + len = strlen (file) + 1; + pathlen = strlen (path); + name = alloca (pathlen + len + 1); + /* Copy the file name at the top. */ + name = (char *) memcpy (name + pathlen + 1, file, len); + /* And add the slash. */ + *--name = '/'; + + p = path; + do + { + char *startp; + + path = p; + p = strchrnul (path, ':'); + + if (p == path) + /* Two adjacent colons, or a colon at the beginning or the end + of `PATH' means to search the current directory. */ + startp = name + 1; + else + startp = (char *) memcpy (name - (p - path), path, p - path); + + /* Try to execute this name. If it works, execv will not return. */ + execve (startp, argv, envp); + + if (errno == ENOEXEC) + script_execute (startp, argv, envp); + + switch (errno) + { + case EACCES: + case ENOENT: + case ESTALE: + case ENOTDIR: + /* Those errors indicate the file is missing or not executable + by us, in which case we want to just try the next path + directory. */ + break; + + default: + /* Some other error means we found an executable file, but + something went wrong executing it; return the error to our + caller. */ + _exit (SPAWN_ERROR); + } + } + while (*p++ != '\0'); + + /* Return with an error. */ + _exit (SPAWN_ERROR); +} + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn.in.h --- gettext-0.17/gettext-tools/gnulib-lib/spawn.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,851 @@ +/* Definitions for POSIX spawn interface. + Copyright (C) 2000, 2003-2004, 2008-2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_SPAWN_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#if @HAVE_SPAWN_H@ +# @INCLUDE_NEXT@ @NEXT_SPAWN_H@ +#endif + +#ifndef _GL_SPAWN_H +#define _GL_SPAWN_H + +/* Get definitions of 'struct sched_param' and 'sigset_t'. + But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +# include +#endif + +#include + +#ifndef __THROW +# define __THROW +#endif + +/* GCC 2.95 and later have "__restrict"; C99 compilers have + "restrict", and "configure" may have defined "restrict". + Other compilers use __restrict, __restrict__, and _Restrict, and + 'configure' might #define 'restrict' to those words, so pick a + different name. */ +#ifndef _Restrict_ +# if 199901L <= __STDC_VERSION__ +# define _Restrict_ restrict +# elif 2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__) +# define _Restrict_ __restrict +# else +# define _Restrict_ +# endif +#endif +/* gcc 3.1 and up support the [restrict] syntax. Don't trust + sys/cdefs.h's definition of __restrict_arr, though, as it + mishandles gcc -ansi -pedantic. */ +#ifndef _Restrict_arr_ +# if ((199901L <= __STDC_VERSION__ \ + || ((3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) \ + && !__STRICT_ANSI__)) \ + && !defined __GNUG__) +# define _Restrict_arr_ _Restrict_ +# else +# define _Restrict_arr_ +# endif +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Data structure to contain attributes for thread creation. */ +#if @REPLACE_POSIX_SPAWN@ +# define posix_spawnattr_t rpl_posix_spawnattr_t +#endif +#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWNATTR_T@ +typedef struct +{ + short int _flags; + pid_t _pgrp; + sigset_t _sd; + sigset_t _ss; + struct sched_param _sp; + int _policy; + int __pad[16]; +} posix_spawnattr_t; +#endif + + +/* Data structure to contain information about the actions to be + performed in the new process with respect to file descriptors. */ +#if @REPLACE_POSIX_SPAWN@ +# define posix_spawn_file_actions_t rpl_posix_spawn_file_actions_t +#endif +#if @REPLACE_POSIX_SPAWN@ || !@HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +typedef struct +{ + int _allocated; + int _used; + struct __spawn_action *_actions; + int __pad[16]; +} posix_spawn_file_actions_t; +#endif + + +/* Flags to be set in the `posix_spawnattr_t'. */ +#if @HAVE_POSIX_SPAWN@ +/* Use the values from the system, but provide the missing ones. */ +# ifndef POSIX_SPAWN_SETSCHEDPARAM +# define POSIX_SPAWN_SETSCHEDPARAM 0 +# endif +# ifndef POSIX_SPAWN_SETSCHEDULER +# define POSIX_SPAWN_SETSCHEDULER 0 +# endif +#else +# if @REPLACE_POSIX_SPAWN@ +/* Use the values from the system, for better compatibility. */ +/* But this implementation does not support AIX extensions. */ +# undef POSIX_SPAWN_FORK_HANDLERS +# else +# define POSIX_SPAWN_RESETIDS 0x01 +# define POSIX_SPAWN_SETPGROUP 0x02 +# define POSIX_SPAWN_SETSIGDEF 0x04 +# define POSIX_SPAWN_SETSIGMASK 0x08 +# define POSIX_SPAWN_SETSCHEDPARAM 0x10 +# define POSIX_SPAWN_SETSCHEDULER 0x20 +# endif +#endif +/* A GNU extension. Use the next free bit position. */ +#define POSIX_SPAWN_USEVFORK \ + ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1) \ + | POSIX_SPAWN_SETPGROUP | (POSIX_SPAWN_SETPGROUP - 1) \ + | POSIX_SPAWN_SETSIGDEF | (POSIX_SPAWN_SETSIGDEF - 1) \ + | POSIX_SPAWN_SETSIGMASK | (POSIX_SPAWN_SETSIGMASK - 1) \ + | POSIX_SPAWN_SETSCHEDPARAM \ + | (POSIX_SPAWN_SETSCHEDPARAM > 0 ? POSIX_SPAWN_SETSCHEDPARAM - 1 : 0) \ + | POSIX_SPAWN_SETSCHEDULER \ + | (POSIX_SPAWN_SETSCHEDULER > 0 ? POSIX_SPAWN_SETSCHEDULER - 1 : 0)) \ + + 1) +typedef int verify_POSIX_SPAWN_USEVFORK_no_overlap + [2 * (((POSIX_SPAWN_RESETIDS | POSIX_SPAWN_SETPGROUP + | POSIX_SPAWN_SETSIGDEF | POSIX_SPAWN_SETSIGMASK + | POSIX_SPAWN_SETSCHEDPARAM | POSIX_SPAWN_SETSCHEDULER) + & POSIX_SPAWN_USEVFORK) == 0) - 1]; + + +#if @GNULIB_POSIX_SPAWN@ +/* Spawn a new process executing PATH with the attributes describes in *ATTRP. + Before running the process perform the actions described in FILE-ACTIONS. + + This function is a possible cancellation points and therefore not + marked with __THROW. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn rpl_posix_spawn +# endif +_GL_FUNCDECL_RPL (posix_spawn, int, + (pid_t *_Restrict_ __pid, + const char *_Restrict_ __path, + const posix_spawn_file_actions_t *_Restrict_ __file_actions, + const posix_spawnattr_t *_Restrict_ __attrp, + char *const argv[_Restrict_arr_], + char *const envp[_Restrict_arr_]) + _GL_ARG_NONNULL ((2, 5, 6))); +_GL_CXXALIAS_RPL (posix_spawn, int, + (pid_t *_Restrict_ __pid, + const char *_Restrict_ __path, + const posix_spawn_file_actions_t *_Restrict_ __file_actions, + const posix_spawnattr_t *_Restrict_ __attrp, + char *const argv[_Restrict_arr_], + char *const envp[_Restrict_arr_])); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn, int, + (pid_t *_Restrict_ __pid, + const char *_Restrict_ __path, + const posix_spawn_file_actions_t *_Restrict_ __file_actions, + const posix_spawnattr_t *_Restrict_ __attrp, + char *const argv[_Restrict_arr_], + char *const envp[_Restrict_arr_]) + _GL_ARG_NONNULL ((2, 5, 6))); +# endif +_GL_CXXALIAS_SYS (posix_spawn, int, + (pid_t *_Restrict_ __pid, + const char *_Restrict_ __path, + const posix_spawn_file_actions_t *_Restrict_ __file_actions, + const posix_spawnattr_t *_Restrict_ __attrp, + char *const argv[_Restrict_arr_], + char *const envp[_Restrict_arr_])); +# endif +_GL_CXXALIASWARN (posix_spawn); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn +# if HAVE_RAW_DECL_POSIX_SPAWN +_GL_WARN_ON_USE (posix_spawn, "posix_spawn is unportable - " + "use gnulib module posix_spawn for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNP@ +/* Similar to `posix_spawn' but search for FILE in the PATH. + + This function is a possible cancellation points and therefore not + marked with __THROW. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnp rpl_posix_spawnp +# endif +_GL_FUNCDECL_RPL (posix_spawnp, int, + (pid_t *__pid, const char *__file, + const posix_spawn_file_actions_t *__file_actions, + const posix_spawnattr_t *__attrp, + char *const argv[], char *const envp[]) + _GL_ARG_NONNULL ((2, 5, 6))); +_GL_CXXALIAS_RPL (posix_spawnp, int, + (pid_t *__pid, const char *__file, + const posix_spawn_file_actions_t *__file_actions, + const posix_spawnattr_t *__attrp, + char *const argv[], char *const envp[])); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnp, int, + (pid_t *__pid, const char *__file, + const posix_spawn_file_actions_t *__file_actions, + const posix_spawnattr_t *__attrp, + char *const argv[], char *const envp[]) + _GL_ARG_NONNULL ((2, 5, 6))); +# endif +_GL_CXXALIAS_SYS (posix_spawnp, int, + (pid_t *__pid, const char *__file, + const posix_spawn_file_actions_t *__file_actions, + const posix_spawnattr_t *__attrp, + char *const argv[], char *const envp[])); +# endif +_GL_CXXALIASWARN (posix_spawnp); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnp +# if HAVE_RAW_DECL_POSIX_SPAWNP +_GL_WARN_ON_USE (posix_spawnp, "posix_spawnp is unportable - " + "use gnulib module posix_spawnp for portability"); +# endif +#endif + + +#if @GNULIB_POSIX_SPAWNATTR_INIT@ +/* Initialize data structure with attributes for `spawn' to default values. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_init rpl_posix_spawnattr_init +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_init, int, (posix_spawnattr_t *__attr) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawnattr_init, int, (posix_spawnattr_t *__attr)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_init, int, (posix_spawnattr_t *__attr) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_init, int, (posix_spawnattr_t *__attr)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_init); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_init +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_INIT +_GL_WARN_ON_USE (posix_spawnattr_init, "posix_spawnattr_init is unportable - " + "use gnulib module posix_spawnattr_init for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_DESTROY@ +/* Free resources associated with ATTR. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_destroy rpl_posix_spawnattr_destroy +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_destroy, int, (posix_spawnattr_t *__attr) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawnattr_destroy, int, (posix_spawnattr_t *__attr)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_destroy, int, (posix_spawnattr_t *__attr) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_destroy, int, (posix_spawnattr_t *__attr)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_destroy); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_destroy +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_DESTROY +_GL_WARN_ON_USE (posix_spawnattr_destroy, "posix_spawnattr_destroy is unportable - " + "use gnulib module posix_spawnattr_destroy for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +/* Store signal mask for signals with default handling from ATTR in + SIGDEFAULT. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getsigdefault rpl_posix_spawnattr_getsigdefault +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getsigdefault, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigdefault) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getsigdefault, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigdefault)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_getsigdefault, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigdefault) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getsigdefault, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigdefault)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getsigdefault); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getsigdefault +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGDEFAULT +_GL_WARN_ON_USE (posix_spawnattr_getsigdefault, "posix_spawnattr_getsigdefault is unportable - " + "use gnulib module posix_spawnattr_getsigdefault for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +/* Set signal mask for signals with default handling in ATTR to SIGDEFAULT. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setsigdefault rpl_posix_spawnattr_setsigdefault +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setsigdefault, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigdefault) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_setsigdefault, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigdefault)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_setsigdefault, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigdefault) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setsigdefault, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigdefault)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setsigdefault); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setsigdefault +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGDEFAULT +_GL_WARN_ON_USE (posix_spawnattr_setsigdefault, "posix_spawnattr_setsigdefault is unportable - " + "use gnulib module posix_spawnattr_setsigdefault for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +/* Store signal mask for the new process from ATTR in SIGMASK. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getsigmask rpl_posix_spawnattr_getsigmask +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getsigmask, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigmask) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getsigmask, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigmask)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_getsigmask, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigmask) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getsigmask, int, + (const posix_spawnattr_t *_Restrict_ __attr, + sigset_t *_Restrict_ __sigmask)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getsigmask); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getsigmask +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSIGMASK +_GL_WARN_ON_USE (posix_spawnattr_getsigmask, "posix_spawnattr_getsigmask is unportable - " + "use gnulib module posix_spawnattr_getsigmask for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +/* Set signal mask for the new process in ATTR to SIGMASK. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setsigmask rpl_posix_spawnattr_setsigmask +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setsigmask, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigmask) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_setsigmask, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigmask)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_setsigmask, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigmask) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setsigmask, int, + (posix_spawnattr_t *_Restrict_ __attr, + const sigset_t *_Restrict_ __sigmask)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setsigmask); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setsigmask +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSIGMASK +_GL_WARN_ON_USE (posix_spawnattr_setsigmask, "posix_spawnattr_setsigmask is unportable - " + "use gnulib module posix_spawnattr_setsigmask for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +/* Get flag word from the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getflags rpl_posix_spawnattr_getflags +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getflags, int, + (const posix_spawnattr_t *_Restrict_ __attr, + short int *_Restrict_ __flags) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getflags, int, + (const posix_spawnattr_t *_Restrict_ __attr, + short int *_Restrict_ __flags)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_getflags, int, + (const posix_spawnattr_t *_Restrict_ __attr, + short int *_Restrict_ __flags) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getflags, int, + (const posix_spawnattr_t *_Restrict_ __attr, + short int *_Restrict_ __flags)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getflags); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getflags +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETFLAGS +_GL_WARN_ON_USE (posix_spawnattr_getflags, "posix_spawnattr_getflags is unportable - " + "use gnulib module posix_spawnattr_getflags for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +/* Store flags in the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setflags rpl_posix_spawnattr_setflags +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setflags, int, + (posix_spawnattr_t *__attr, short int __flags) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawnattr_setflags, int, + (posix_spawnattr_t *__attr, short int __flags)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_setflags, int, + (posix_spawnattr_t *__attr, short int __flags) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setflags, int, + (posix_spawnattr_t *__attr, short int __flags)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setflags); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setflags +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETFLAGS +_GL_WARN_ON_USE (posix_spawnattr_setflags, "posix_spawnattr_setflags is unportable - " + "use gnulib module posix_spawnattr_setflags for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +/* Get process group ID from the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getpgroup rpl_posix_spawnattr_getpgroup +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getpgroup, int, + (const posix_spawnattr_t *_Restrict_ __attr, + pid_t *_Restrict_ __pgroup) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getpgroup, int, + (const posix_spawnattr_t *_Restrict_ __attr, + pid_t *_Restrict_ __pgroup)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_getpgroup, int, + (const posix_spawnattr_t *_Restrict_ __attr, + pid_t *_Restrict_ __pgroup) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getpgroup, int, + (const posix_spawnattr_t *_Restrict_ __attr, + pid_t *_Restrict_ __pgroup)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getpgroup); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getpgroup +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETPGROUP +_GL_WARN_ON_USE (posix_spawnattr_getpgroup, "posix_spawnattr_getpgroup is unportable - " + "use gnulib module posix_spawnattr_getpgroup for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +/* Store process group ID in the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setpgroup rpl_posix_spawnattr_setpgroup +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setpgroup, int, + (posix_spawnattr_t *__attr, pid_t __pgroup) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawnattr_setpgroup, int, + (posix_spawnattr_t *__attr, pid_t __pgroup)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawnattr_setpgroup, int, + (posix_spawnattr_t *__attr, pid_t __pgroup) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setpgroup, int, + (posix_spawnattr_t *__attr, pid_t __pgroup)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setpgroup); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setpgroup +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETPGROUP +_GL_WARN_ON_USE (posix_spawnattr_setpgroup, "posix_spawnattr_setpgroup is unportable - " + "use gnulib module posix_spawnattr_setpgroup for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +/* Get scheduling policy from the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getschedpolicy rpl_posix_spawnattr_getschedpolicy +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getschedpolicy, int, + (const posix_spawnattr_t *_Restrict_ __attr, + int *_Restrict_ __schedpolicy) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getschedpolicy, int, + (const posix_spawnattr_t *_Restrict_ __attr, + int *_Restrict_ __schedpolicy)); +# else +# if !@HAVE_POSIX_SPAWN@ || POSIX_SPAWN_SETSCHEDULER == 0 +_GL_FUNCDECL_SYS (posix_spawnattr_getschedpolicy, int, + (const posix_spawnattr_t *_Restrict_ __attr, + int *_Restrict_ __schedpolicy) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getschedpolicy, int, + (const posix_spawnattr_t *_Restrict_ __attr, + int *_Restrict_ __schedpolicy)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getschedpolicy); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getschedpolicy +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPOLICY +_GL_WARN_ON_USE (posix_spawnattr_getschedpolicy, "posix_spawnattr_getschedpolicy is unportable - " + "use gnulib module posix_spawnattr_getschedpolicy for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +/* Store scheduling policy in the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setschedpolicy rpl_posix_spawnattr_setschedpolicy +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setschedpolicy, int, + (posix_spawnattr_t *__attr, int __schedpolicy) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawnattr_setschedpolicy, int, + (posix_spawnattr_t *__attr, int __schedpolicy)); +# else +# if !@HAVE_POSIX_SPAWN@ || POSIX_SPAWN_SETSCHEDULER == 0 +_GL_FUNCDECL_SYS (posix_spawnattr_setschedpolicy, int, + (posix_spawnattr_t *__attr, int __schedpolicy) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setschedpolicy, int, + (posix_spawnattr_t *__attr, int __schedpolicy)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setschedpolicy); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setschedpolicy +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPOLICY +_GL_WARN_ON_USE (posix_spawnattr_setschedpolicy, "posix_spawnattr_setschedpolicy is unportable - " + "use gnulib module posix_spawnattr_setschedpolicy for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +/* Get scheduling parameters from the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_getschedparam rpl_posix_spawnattr_getschedparam +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_getschedparam, int, + (const posix_spawnattr_t *_Restrict_ __attr, + struct sched_param *_Restrict_ __schedparam) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_getschedparam, int, + (const posix_spawnattr_t *_Restrict_ __attr, + struct sched_param *_Restrict_ __schedparam)); +# else +# if !@HAVE_POSIX_SPAWN@ || POSIX_SPAWN_SETSCHEDPARAM == 0 +_GL_FUNCDECL_SYS (posix_spawnattr_getschedparam, int, + (const posix_spawnattr_t *_Restrict_ __attr, + struct sched_param *_Restrict_ __schedparam) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_getschedparam, int, + (const posix_spawnattr_t *_Restrict_ __attr, + struct sched_param *_Restrict_ __schedparam)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_getschedparam); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_getschedparam +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_GETSCHEDPARAM +_GL_WARN_ON_USE (posix_spawnattr_getschedparam, "posix_spawnattr_getschedparam is unportable - " + "use gnulib module posix_spawnattr_getschedparam for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +/* Store scheduling parameters in the attribute structure. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawnattr_setschedparam rpl_posix_spawnattr_setschedparam +# endif +_GL_FUNCDECL_RPL (posix_spawnattr_setschedparam, int, + (posix_spawnattr_t *_Restrict_ __attr, + const struct sched_param *_Restrict_ __schedparam) + __THROW _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (posix_spawnattr_setschedparam, int, + (posix_spawnattr_t *_Restrict_ __attr, + const struct sched_param *_Restrict_ __schedparam)); +# else +# if !@HAVE_POSIX_SPAWN@ || POSIX_SPAWN_SETSCHEDPARAM == 0 +_GL_FUNCDECL_SYS (posix_spawnattr_setschedparam, int, + (posix_spawnattr_t *_Restrict_ __attr, + const struct sched_param *_Restrict_ __schedparam) + __THROW _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (posix_spawnattr_setschedparam, int, + (posix_spawnattr_t *_Restrict_ __attr, + const struct sched_param *_Restrict_ __schedparam)); +# endif +_GL_CXXALIASWARN (posix_spawnattr_setschedparam); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawnattr_setschedparam +# if HAVE_RAW_DECL_POSIX_SPAWNATTR_SETSCHEDPARAM +_GL_WARN_ON_USE (posix_spawnattr_setschedparam, "posix_spawnattr_setschedparam is unportable - " + "use gnulib module posix_spawnattr_setschedparam for portability"); +# endif +#endif + + +#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +/* Initialize data structure for file attribute for `spawn' call. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn_file_actions_init rpl_posix_spawn_file_actions_init +# endif +_GL_FUNCDECL_RPL (posix_spawn_file_actions_init, int, + (posix_spawn_file_actions_t *__file_actions) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawn_file_actions_init, int, + (posix_spawn_file_actions_t *__file_actions)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn_file_actions_init, int, + (posix_spawn_file_actions_t *__file_actions) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawn_file_actions_init, int, + (posix_spawn_file_actions_t *__file_actions)); +# endif +_GL_CXXALIASWARN (posix_spawn_file_actions_init); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn_file_actions_init +# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_INIT +_GL_WARN_ON_USE (posix_spawn_file_actions_init, "posix_spawn_file_actions_init is unportable - " + "use gnulib module posix_spawn_file_actions_init for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +/* Free resources associated with FILE-ACTIONS. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn_file_actions_destroy rpl_posix_spawn_file_actions_destroy +# endif +_GL_FUNCDECL_RPL (posix_spawn_file_actions_destroy, int, + (posix_spawn_file_actions_t *__file_actions) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawn_file_actions_destroy, int, + (posix_spawn_file_actions_t *__file_actions)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn_file_actions_destroy, int, + (posix_spawn_file_actions_t *__file_actions) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawn_file_actions_destroy, int, + (posix_spawn_file_actions_t *__file_actions)); +# endif +_GL_CXXALIASWARN (posix_spawn_file_actions_destroy); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn_file_actions_destroy +# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_DESTROY +_GL_WARN_ON_USE (posix_spawn_file_actions_destroy, "posix_spawn_file_actions_destroy is unportable - " + "use gnulib module posix_spawn_file_actions_destroy for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +/* Add an action to FILE-ACTIONS which tells the implementation to call + `open' for the given file during the `spawn' call. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn_file_actions_addopen rpl_posix_spawn_file_actions_addopen +# endif +_GL_FUNCDECL_RPL (posix_spawn_file_actions_addopen, int, + (posix_spawn_file_actions_t *_Restrict_ __file_actions, + int __fd, + const char *_Restrict_ __path, int __oflag, mode_t __mode) + __THROW _GL_ARG_NONNULL ((1, 3))); +_GL_CXXALIAS_RPL (posix_spawn_file_actions_addopen, int, + (posix_spawn_file_actions_t *_Restrict_ __file_actions, + int __fd, + const char *_Restrict_ __path, int __oflag, mode_t __mode)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn_file_actions_addopen, int, + (posix_spawn_file_actions_t *_Restrict_ __file_actions, + int __fd, + const char *_Restrict_ __path, int __oflag, mode_t __mode) + __THROW _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (posix_spawn_file_actions_addopen, int, + (posix_spawn_file_actions_t *_Restrict_ __file_actions, + int __fd, + const char *_Restrict_ __path, int __oflag, mode_t __mode)); +# endif +_GL_CXXALIASWARN (posix_spawn_file_actions_addopen); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn_file_actions_addopen +# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN +_GL_WARN_ON_USE (posix_spawn_file_actions_addopen, "posix_spawn_file_actions_addopen is unportable - " + "use gnulib module posix_spawn_file_actions_addopen for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +/* Add an action to FILE-ACTIONS which tells the implementation to call + `close' for the given file descriptor during the `spawn' call. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn_file_actions_addclose rpl_posix_spawn_file_actions_addclose +# endif +_GL_FUNCDECL_RPL (posix_spawn_file_actions_addclose, int, + (posix_spawn_file_actions_t *__file_actions, int __fd) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawn_file_actions_addclose, int, + (posix_spawn_file_actions_t *__file_actions, int __fd)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn_file_actions_addclose, int, + (posix_spawn_file_actions_t *__file_actions, int __fd) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawn_file_actions_addclose, int, + (posix_spawn_file_actions_t *__file_actions, int __fd)); +# endif +_GL_CXXALIASWARN (posix_spawn_file_actions_addclose); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn_file_actions_addclose +# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE +_GL_WARN_ON_USE (posix_spawn_file_actions_addclose, "posix_spawn_file_actions_addclose is unportable - " + "use gnulib module posix_spawn_file_actions_addclose for portability"); +# endif +#endif + +#if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +/* Add an action to FILE-ACTIONS which tells the implementation to call + `dup2' for the given file descriptors during the `spawn' call. */ +# if @REPLACE_POSIX_SPAWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define posix_spawn_file_actions_adddup2 rpl_posix_spawn_file_actions_adddup2 +# endif +_GL_FUNCDECL_RPL (posix_spawn_file_actions_adddup2, int, + (posix_spawn_file_actions_t *__file_actions, + int __fd, int __newfd) + __THROW _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (posix_spawn_file_actions_adddup2, int, + (posix_spawn_file_actions_t *__file_actions, + int __fd, int __newfd)); +# else +# if !@HAVE_POSIX_SPAWN@ +_GL_FUNCDECL_SYS (posix_spawn_file_actions_adddup2, int, + (posix_spawn_file_actions_t *__file_actions, + int __fd, int __newfd) + __THROW _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (posix_spawn_file_actions_adddup2, int, + (posix_spawn_file_actions_t *__file_actions, + int __fd, int __newfd)); +# endif +_GL_CXXALIASWARN (posix_spawn_file_actions_adddup2); +#elif defined GNULIB_POSIXCHECK +# undef posix_spawn_file_actions_adddup2 +# if HAVE_RAW_DECL_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 +_GL_WARN_ON_USE (posix_spawn_file_actions_adddup2, "posix_spawn_file_actions_adddup2 is unportable - " + "use gnulib module posix_spawn_file_actions_adddup2 for portability"); +# endif +#endif + + +#endif /* _GL_SPAWN_H */ +#endif /* _GL_SPAWN_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawn_int.h gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_int.h --- gettext-0.17/gettext-tools/gnulib-lib/spawn_int.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawn_int.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,62 @@ +/* Copyright (C) 2000, 2008, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Data structure to contain the action information. */ +struct __spawn_action +{ + enum + { + spawn_do_close, + spawn_do_dup2, + spawn_do_open + } tag; + + union + { + struct + { + int fd; + } close_action; + struct + { + int fd; + int newfd; + } dup2_action; + struct + { + int fd; + const char *path; + int oflag; + mode_t mode; + } open_action; + } action; +}; + +#if !_LIBC +# define __posix_spawn_file_actions_realloc gl_posix_spawn_file_actions_realloc +#endif +extern int __posix_spawn_file_actions_realloc (posix_spawn_file_actions_t * + file_actions); + +#if !_LIBC +# define __spawni gl_posix_spawn_internal +#endif +extern int __spawni (pid_t *pid, const char *path, + const posix_spawn_file_actions_t *file_actions, + const posix_spawnattr_t *attrp, char *const argv[], + char *const envp[], int use_path); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/spawnp.c gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnp.c --- gettext-0.17/gettext-tools/gnulib-lib/spawnp.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/spawnp.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,33 @@ +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include "spawn_int.h" + +/* Spawn a new process executing FILE with the attributes describes in *ATTRP. + Before running the process perform the actions described in FILE-ACTIONS. */ +int +posix_spawnp (pid_t *pid, const char *file, + const posix_spawn_file_actions_t *file_actions, + const posix_spawnattr_t *attrp, char *const argv[], + char *const envp[]) +{ + return __spawni (pid, file, file_actions, attrp, argv, envp, 1); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stat.c gettext-0.18.1.1/gettext-tools/gnulib-lib/stat.c --- gettext-0.17/gettext-tools/gnulib-lib/stat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stat.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,104 @@ +/* Work around platform bugs in stat. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Eric Blake */ + +#include + +/* Get the original definition of stat. It might be defined as a macro. */ +#define __need_system_sys_stat_h +#include +#include +#undef __need_system_sys_stat_h + +static inline int +orig_stat (const char *filename, struct stat *buf) +{ + return stat (filename, buf); +} + +/* Specification. */ +#include + +#include +#include +#include +#include + +/* Store information about NAME into ST. Work around bugs with + trailing slashes. Mingw has other bugs (such as st_ino always + being 0 on success) which this wrapper does not work around. But + at least this implementation provides the ability to emulate fchdir + correctly. */ + +int +rpl_stat (char const *name, struct stat *st) +{ + int result = orig_stat (name, st); +#if REPLACE_FUNC_STAT_FILE + /* Solaris 9 mistakenly succeeds when given a non-directory with a + trailing slash. */ + if (result == 0 && !S_ISDIR (st->st_mode)) + { + size_t len = strlen (name); + if (ISSLASH (name[len - 1])) + { + errno = ENOTDIR; + return -1; + } + } +#endif /* REPLACE_FUNC_STAT_FILE */ +#if REPLACE_FUNC_STAT_DIR + if (result == -1 && errno == ENOENT) + { + /* Due to mingw's oddities, there are some directories (like + c:\) where stat() only succeeds with a trailing slash, and + other directories (like c:\windows) where stat() only + succeeds without a trailing slash. But we want the two to be + synonymous, since chdir() manages either style. Likewise, Mingw also + reports ENOENT for names longer than PATH_MAX, when we want + ENAMETOOLONG, and for stat("file/"), when we want ENOTDIR. + Fortunately, mingw PATH_MAX is small enough for stack + allocation. */ + char fixed_name[PATH_MAX + 1] = {0}; + size_t len = strlen (name); + bool check_dir = false; + if (PATH_MAX <= len) + errno = ENAMETOOLONG; + else if (len) + { + strcpy (fixed_name, name); + if (ISSLASH (fixed_name[len - 1])) + { + check_dir = true; + while (len && ISSLASH (fixed_name[len - 1])) + fixed_name[--len] = '\0'; + if (!len) + fixed_name[0] = '/'; + } + else + fixed_name[len++] = '/'; + result = orig_stat (fixed_name, st); + if (result == 0 && check_dir && !S_ISDIR (st->st_mode)) + { + result = -1; + errno = ENOTDIR; + } + } + } +#endif /* REPLACE_FUNC_STAT_DIR */ + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdarg.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdarg.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stdarg.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdarg.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,35 @@ +/* Substitute for and wrapper around . + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_STDARG_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_STDARG_H@ + +#ifndef _GL_STDARG_H +#define _GL_STDARG_H + +#ifndef va_copy +# define va_copy(a,b) ((a) = (b)) +#endif + +#endif /* _GL_STDARG_H */ +#endif /* _GL_STDARG_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdbool.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdbool.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stdbool.in.h 2007-10-23 00:42:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdbool.in.h 2010-05-24 10:59:09.000000000 +0000 @@ -1,9 +1,9 @@ -/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -50,6 +50,9 @@ with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. + - C99 allows the use of (_Bool)0.0 in constant expressions, but + this substitute cannot always provide this property. + Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ @@ -58,7 +61,7 @@ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ -#ifdef __BEOS__ +#if defined __BEOS__ && !defined __HAIKU__ # include /* defines bool but not _Bool */ # undef false # undef true @@ -73,7 +76,7 @@ (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ -#if defined __cplusplus || defined __BEOS__ +#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__) /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stddef.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stddef.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stddef.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stddef.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,86 @@ +/* A substitute for POSIX 2008 , for platforms that have issues. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake. */ + +/* + * POSIX 2008 for platforms that have issues. + * + */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_wchar_t || defined __need_size_t \ + || defined __need_ptrdiff_t || defined __need_NULL \ + || defined __need_wint_t +/* Special invocation convention inside gcc header files. In + particular, gcc provides a version of that blindly + redefines NULL even when __need_wint_t was defined, even though + wint_t is not normally provided by . Hence, we must + remember if special invocation has ever been used to obtain wint_t, + in which case we need to clean up NULL yet again. */ + +# if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) +# ifdef __need_wint_t +# undef _GL_STDDEF_H +# define _GL_STDDEF_WINT_T +# endif +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ +# endif + +#else +/* Normal invocation convention. */ + +# ifndef _GL_STDDEF_H + +/* The include_next requires a split double-inclusion guard. */ + +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ + +# ifndef _GL_STDDEF_H +# define _GL_STDDEF_H + +/* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ +#if @REPLACE_NULL@ +# undef NULL +# ifdef __cplusplus + /* ISO C++ says that the macro NULL must expand to an integer constant + expression, hence '((void *) 0)' is not allowed in C++. */ +# if __GNUG__ >= 3 + /* GNU C++ has a __null macro that behaves like an integer ('int' or + 'long') but has the same size as a pointer. Use that, to avoid + warnings. */ +# define NULL __null +# else +# define NULL 0L +# endif +# else +# define NULL ((void *) 0) +# endif +#endif + +/* Some platforms lack wchar_t. */ +#if !@HAVE_WCHAR_T@ +# define wchar_t int +#endif + +# endif /* _GL_STDDEF_H */ +# endif /* _GL_STDDEF_H */ +#endif /* __need_XXX */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdint.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdint.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stdint.in.h 2007-10-31 12:36:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdint.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ -/* Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2002, 2004-2010 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,6 +23,16 @@ #ifndef _GL_STDINT_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* When including a system file that in turn includes , + use the system , not our substitute. This avoids + problems with (for example) VMS, whose includes + . */ +#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H + /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef @@ -66,9 +76,7 @@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ -# define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # include -# undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H #elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ @@ -82,14 +90,7 @@ # include #endif -#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS - -/* Get WCHAR_MIN, WCHAR_MAX. */ -# if ! (defined WCHAR_MIN && defined WCHAR_MAX) -# include -# endif - -#endif +#undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* Minimum and maximum values for a integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify @@ -102,8 +103,8 @@ ((signed) \ ? ~ _STDINT_MIN (signed, bits, zero) \ : /* The expression for the unsigned case. The subtraction of (signed) \ - is a nop in the unsigned case and avoids "signed integer overflow" \ - warnings in the signed case. */ \ + is a nop in the unsigned case and avoids "signed integer overflow" \ + warnings in the signed case. */ \ ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) /* 7.18.1.1. Exact-width integer types */ @@ -113,46 +114,58 @@ #undef int8_t #undef uint8_t -#define int8_t signed char -#define uint8_t unsigned char +typedef signed char gl_int8_t; +typedef unsigned char gl_uint8_t; +#define int8_t gl_int8_t +#define uint8_t gl_uint8_t #undef int16_t #undef uint16_t -#define int16_t short int -#define uint16_t unsigned short int +typedef short int gl_int16_t; +typedef unsigned short int gl_uint16_t; +#define int16_t gl_int16_t +#define uint16_t gl_uint16_t #undef int32_t #undef uint32_t -#define int32_t int -#define uint32_t unsigned int +typedef int gl_int32_t; +typedef unsigned int gl_uint32_t; +#define int32_t gl_int32_t +#define uint32_t gl_uint32_t /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ #if LONG_MAX >> 31 >> 31 == 1 # undef int64_t -# define int64_t long int +typedef long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif defined _MSC_VER # undef int64_t -# define int64_t __int64 +typedef __int64 gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif @HAVE_LONG_LONG_INT@ # undef int64_t -# define int64_t long long int +typedef long long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #endif #if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t -# define uint64_t unsigned long int +typedef unsigned long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif defined _MSC_VER # undef uint64_t -# define uint64_t unsigned __int64 +typedef unsigned __int64 gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif @HAVE_UNSIGNED_LONG_LONG_INT@ # undef uint64_t -# define uint64_t unsigned long long int +typedef unsigned long long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #endif @@ -207,12 +220,18 @@ #undef uint_fast32_t #undef int_fast64_t #undef uint_fast64_t -#define int_fast8_t long int -#define uint_fast8_t unsigned int_fast8_t -#define int_fast16_t long int -#define uint_fast16_t unsigned int_fast16_t -#define int_fast32_t long int -#define uint_fast32_t unsigned int_fast32_t +typedef long int gl_int_fast8_t; +typedef unsigned long int gl_uint_fast8_t; +typedef long int gl_int_fast16_t; +typedef unsigned long int gl_uint_fast16_t; +typedef long int gl_int_fast32_t; +typedef unsigned long int gl_uint_fast32_t; +#define int_fast8_t gl_int_fast8_t +#define uint_fast8_t gl_uint_fast8_t +#define int_fast16_t gl_int_fast16_t +#define uint_fast16_t gl_uint_fast16_t +#define int_fast32_t gl_int_fast32_t +#define uint_fast32_t gl_uint_fast32_t #ifdef GL_INT64_T # define int_fast64_t int64_t #endif @@ -224,8 +243,10 @@ #undef intptr_t #undef uintptr_t -#define intptr_t long int -#define uintptr_t unsigned long int +typedef long int gl_intptr_t; +typedef unsigned long int gl_uintptr_t; +#define intptr_t gl_intptr_t +#define uintptr_t gl_uintptr_t /* 7.18.1.5. Greatest-width integer types */ @@ -234,20 +255,24 @@ #undef intmax_t #if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 -# define intmax_t long long int +typedef long long int gl_intmax_t; +# define intmax_t gl_intmax_t #elif defined GL_INT64_T # define intmax_t int64_t #else -# define intmax_t long int +typedef long int gl_intmax_t; +# define intmax_t gl_intmax_t #endif #undef uintmax_t #if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 -# define uintmax_t unsigned long long int +typedef unsigned long long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #elif defined GL_UINT64_T # define uintmax_t uint64_t #else -# define uintmax_t unsigned long int +typedef unsigned long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #endif /* Verify that intmax_t and uintmax_t have the same size. Too much code @@ -410,27 +435,54 @@ /* ptrdiff_t limits */ #undef PTRDIFF_MIN #undef PTRDIFF_MAX -#define PTRDIFF_MIN \ - _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) -#define PTRDIFF_MAX \ - _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l) +# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) +# else +# define PTRDIFF_MIN _STDINT_MIN (1, 32, 0) +# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) +# endif +#else +# define PTRDIFF_MIN \ + _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +# define PTRDIFF_MAX \ + _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#endif /* sig_atomic_t limits */ #undef SIG_ATOMIC_MIN #undef SIG_ATOMIC_MAX #define SIG_ATOMIC_MIN \ _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) #define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ #undef SIZE_MAX -#define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define SIZE_MAX _STDINT_MAX (0, 64, 0ul) +# else +# define SIZE_MAX _STDINT_MAX (0, 32, 0ul) +# endif +#else +# define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#endif /* wchar_t limits */ +/* Get WCHAR_MIN, WCHAR_MAX. + This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested + includes -> -> -> , and the latter includes + and assumes its types are already defined. */ +#if ! (defined WCHAR_MIN && defined WCHAR_MAX) +# define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +# include +# undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +#endif #undef WCHAR_MIN #undef WCHAR_MAX #define WCHAR_MIN \ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdio.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stdio.in.h 2007-10-07 13:35:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -16,6 +16,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_FILE || defined __need___FILE /* Special invocation convention inside glibc header files. */ @@ -32,351 +36,1036 @@ #ifndef _GL_STDIO_H #define _GL_STDIO_H +/* Get va_list. Needed on many systems, including glibc 2.8. */ #include + #include -#if (@GNULIB_FSEEKO@ && @REPLACE_FSEEKO@) \ - || (@GNULIB_FTELLO@ && @REPLACE_FTELLO@) \ - || (@GNULIB_GETDELIM@ && !@HAVE_DECL_GETDELIM@) \ - || (@GNULIB_GETLINE@ && (!@HAVE_DECL_GETLINE@ || @REPLACE_GETLINE@)) -/* Get off_t and ssize_t. */ -# include -#endif +/* Get off_t and ssize_t. Needed on many systems, including glibc 2.8. */ +#include #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ -#ifdef __cplusplus -extern "C" { -#endif +/* The definition of _GL_WARN_ON_USE is copied here. */ +/* Macros for stringification. */ +#define _GL_STDIO_STRINGIZE(token) #token +#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) -#if @GNULIB_FPRINTF_POSIX@ -# if @REPLACE_FPRINTF@ -# define fprintf rpl_fprintf -extern int fprintf (FILE *fp, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); -# endif -#elif defined GNULIB_POSIXCHECK -# undef fprintf -# define fprintf \ - (GL_LINK_WARNING ("fprintf is not always POSIX compliant - " \ - "use gnulib module fprintf-posix for portable " \ - "POSIX compliance"), \ - fprintf) -#endif -#if @GNULIB_VFPRINTF_POSIX@ -# if @REPLACE_VFPRINTF@ -# define vfprintf rpl_vfprintf -extern int vfprintf (FILE *fp, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if @GNULIB_DPRINTF@ +# if @REPLACE_DPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dprintf rpl_dprintf +# endif +_GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...)); +# else +# if !@HAVE_DPRINTF@ +_GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...)); # endif +_GL_CXXALIASWARN (dprintf); #elif defined GNULIB_POSIXCHECK -# undef vfprintf -# define vfprintf(s,f,a) \ - (GL_LINK_WARNING ("vfprintf is not always POSIX compliant - " \ - "use gnulib module vfprintf-posix for portable " \ - "POSIX compliance"), \ - vfprintf (s, f, a)) -#endif - -#if @GNULIB_PRINTF_POSIX@ -# if @REPLACE_PRINTF@ -/* Don't break __attribute__((format(printf,M,N))). */ -# define printf __printf__ -extern int printf (const char *format, ...) - __attribute__ ((__format__ (__printf__, 1, 2))); +# undef dprintf +# if HAVE_RAW_DECL_DPRINTF +_GL_WARN_ON_USE (dprintf, "dprintf is unportable - " + "use gnulib module dprintf for portability"); # endif -#elif defined GNULIB_POSIXCHECK -# undef printf -# define printf \ - (GL_LINK_WARNING ("printf is not always POSIX compliant - " \ - "use gnulib module printf-posix for portable " \ - "POSIX compliance"), \ - printf) -/* Don't break __attribute__((format(printf,M,N))). */ -# define format(kind,m,n) format (__##kind##__, m, n) -# define __format__(kind,m,n) __format__ (__##kind##__, m, n) -# define ____printf____ __printf__ -# define ____scanf____ __scanf__ -# define ____strftime____ __strftime__ -# define ____strfmon____ __strfmon__ -#endif - -#if @GNULIB_VPRINTF_POSIX@ -# if @REPLACE_VPRINTF@ -# define vprintf rpl_vprintf -extern int vprintf (const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 1, 0))); -# endif -#elif defined GNULIB_POSIXCHECK -# undef vprintf -# define vprintf(f,a) \ - (GL_LINK_WARNING ("vprintf is not always POSIX compliant - " \ - "use gnulib module vprintf-posix for portable " \ - "POSIX compliance"), \ - vprintf (f, a)) #endif -#if @GNULIB_SNPRINTF@ -# if @REPLACE_SNPRINTF@ -# define snprintf rpl_snprintf -# endif -# if @REPLACE_SNPRINTF@ || !@HAVE_DECL_SNPRINTF@ -extern int snprintf (char *str, size_t size, const char *format, ...) - __attribute__ ((__format__ (__printf__, 3, 4))); +#if @GNULIB_FCLOSE@ +/* Close STREAM and its underlying file descriptor. */ +# if @REPLACE_FCLOSE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fclose rpl_fclose +# endif +_GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); +# else +_GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); # endif +_GL_CXXALIASWARN (fclose); #elif defined GNULIB_POSIXCHECK -# undef snprintf -# define snprintf \ - (GL_LINK_WARNING ("snprintf is unportable - " \ - "use gnulib module snprintf for portability"), \ - snprintf) +# undef fclose +/* Assume fclose is always declared. */ +_GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " + "use gnulib module fclose for portable POSIX compliance"); #endif -#if @GNULIB_VSNPRINTF@ -# if @REPLACE_VSNPRINTF@ -# define vsnprintf rpl_vsnprintf -# endif -# if @REPLACE_VSNPRINTF@ || !@HAVE_DECL_VSNPRINTF@ -extern int vsnprintf (char *str, size_t size, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 3, 0))); +#if @GNULIB_FFLUSH@ +/* Flush all pending data on STREAM according to POSIX rules. Both + output and seekable input streams are supported. + Note! LOSS OF DATA can occur if fflush is applied on an input stream + that is _not_seekable_ or on an update stream that is _not_seekable_ + and in which the most recent operation was input. Seekability can + be tested with lseek(fileno(fp),0,SEEK_CUR). */ +# if @REPLACE_FFLUSH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fflush rpl_fflush +# endif +_GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); +_GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); +# else +_GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); # endif +_GL_CXXALIASWARN (fflush); #elif defined GNULIB_POSIXCHECK -# undef vsnprintf -# define vsnprintf(b,s,f,a) \ - (GL_LINK_WARNING ("vsnprintf is unportable - " \ - "use gnulib module vsnprintf for portability"), \ - vsnprintf (b, s, f, a)) +# undef fflush +/* Assume fflush is always declared. */ +_GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + "use gnulib module fflush for portable POSIX compliance"); #endif -#if @GNULIB_SPRINTF_POSIX@ -# if @REPLACE_SPRINTF@ -# define sprintf rpl_sprintf -extern int sprintf (char *str, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); +/* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ +#undef gets +_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + +#if @GNULIB_FOPEN@ +# if @REPLACE_FOPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fopen +# define fopen rpl_fopen +# endif +_GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); +# else +_GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); # endif +_GL_CXXALIASWARN (fopen); #elif defined GNULIB_POSIXCHECK -# undef sprintf -# define sprintf \ - (GL_LINK_WARNING ("sprintf is not always POSIX compliant - " \ - "use gnulib module sprintf-posix for portable " \ - "POSIX compliance"), \ - sprintf) +# undef fopen +/* Assume fopen is always declared. */ +_GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - " + "use gnulib module fopen for portability"); +#endif + +#if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ +# if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ + || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fprintf rpl_fprintf +# endif +# define GNULIB_overrides_fprintf 1 +_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); +# endif +_GL_CXXALIASWARN (fprintf); #endif - -#if @GNULIB_VSPRINTF_POSIX@ -# if @REPLACE_VSPRINTF@ -# define vsprintf rpl_vsprintf -extern int vsprintf (char *str, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_fprintf +# undef fprintf +# endif +/* Assume fprintf is always declared. */ +_GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " + "use gnulib module fprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_FPURGE@ +/* Discard all pending buffered I/O data on STREAM. + STREAM must not be wide-character oriented. + When discarding pending output, the file position is set back to where it + was before the write calls. When discarding pending input, the file + position is advanced to match the end of the previously read input. + Return 0 if successful. Upon error, return -1 and set errno. */ +# if @REPLACE_FPURGE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fpurge rpl_fpurge +# endif +_GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); +# else +# if !@HAVE_DECL_FPURGE@ +_GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); # endif +_GL_CXXALIASWARN (fpurge); #elif defined GNULIB_POSIXCHECK -# undef vsprintf -# define vsprintf(b,f,a) \ - (GL_LINK_WARNING ("vsprintf is not always POSIX compliant - " \ - "use gnulib module vsprintf-posix for portable " \ - "POSIX compliance"), \ - vsprintf (b, f, a)) +# undef fpurge +# if HAVE_RAW_DECL_FPURGE +_GL_WARN_ON_USE (fpurge, "fpurge is not always present - " + "use gnulib module fpurge for portability"); +# endif #endif -#if @GNULIB_VASPRINTF@ -# if @REPLACE_VASPRINTF@ -# define asprintf rpl_asprintf -# define vasprintf rpl_vasprintf -# endif -# if @REPLACE_VASPRINTF@ || !@HAVE_VASPRINTF@ - /* Write formatted output to a string dynamically allocated with malloc(). - If the memory allocation succeeds, store the address of the string in - *RESULT and return the number of resulting bytes, excluding the trailing - NUL. Upon memory allocation error, or some other error, return -1. */ - extern int asprintf (char **result, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); - extern int vasprintf (char **result, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if @GNULIB_FPUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputc +# define fputc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); # endif +_GL_CXXALIASWARN (fputc); #endif -#if @GNULIB_FOPEN@ -# if @REPLACE_FOPEN@ -# define fopen rpl_fopen -extern FILE * fopen (const char *filename, const char *mode); +#if @GNULIB_FPUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputs +# define fputs rpl_fputs +# endif +_GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fopen -# define fopen(f,m) \ - (GL_LINK_WARNING ("fopen on Win32 platforms is not POSIX compatible - " \ - "use gnulib module fopen for portability"), \ - fopen (f, m)) +_GL_CXXALIASWARN (fputs); #endif #if @GNULIB_FREOPEN@ # if @REPLACE_FREOPEN@ -# define freopen rpl_freopen -extern FILE * freopen (const char *filename, const char *mode, FILE *stream); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef freopen +# define freopen rpl_freopen +# endif +_GL_FUNCDECL_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); +# else +_GL_CXXALIAS_SYS (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); # endif +_GL_CXXALIASWARN (freopen); #elif defined GNULIB_POSIXCHECK # undef freopen -# define freopen(f,m,s) \ - (GL_LINK_WARNING ("freopen on Win32 platforms is not POSIX compatible - " \ - "use gnulib module freopen for portability"), \ - freopen (f, m, s)) +/* Assume freopen is always declared. */ +_GL_WARN_ON_USE (freopen, "freopen on Win32 platforms is not POSIX compatible - " + "use gnulib module freopen for portability"); #endif -#if @GNULIB_FSEEKO@ -# if @REPLACE_FSEEKO@ -/* Provide fseek, fseeko functions that are aware of a preceding - fflush(), and which detect pipes. */ -# define fseeko rpl_fseeko -extern int fseeko (FILE *fp, off_t offset, int whence); -# define fseek(fp, offset, whence) fseeko (fp, (off_t)(offset), whence) + +/* Set up the following warnings, based on which modules are in use. + GNU Coding Standards discourage the use of fseek, since it imposes + an arbitrary limitation on some 32-bit hosts. Remember that the + fseek module depends on the fseeko module, so we only have three + cases to consider: + + 1. The developer is not using either module. Issue a warning under + GNULIB_POSIXCHECK for both functions, to remind them that both + functions have bugs on some systems. _GL_NO_LARGE_FILES has no + impact on this warning. + + 2. The developer is using both modules. They may be unaware of the + arbitrary limitations of fseek, so issue a warning under + GNULIB_POSIXCHECK. On the other hand, they may be using both + modules intentionally, so the developer can define + _GL_NO_LARGE_FILES in the compilation units where the use of fseek + is safe, to silence the warning. + + 3. The developer is using the fseeko module, but not fseek. Gnulib + guarantees that fseek will still work around platform bugs in that + case, but we presume that the developer is aware of the pitfalls of + fseek and was trying to avoid it, so issue a warning even when + GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be + defined to silence the warning in particular compilation units. + In C++ compilations with GNULIB_NAMESPACE, in order to avoid that + fseek gets defined as a macro, it is recommended that the developer + uses the fseek module, even if he is not calling the fseek function. + + Most gnulib clients that perform stream operations should fall into + category 3. */ + +#if @GNULIB_FSEEK@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 2, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseek +# define fseek rpl_fseek +# endif +_GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); +# else +_GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fseeko -# define fseeko(f,o,w) \ - (GL_LINK_WARNING ("fseeko is unportable - " \ - "use gnulib module fseeko for portability"), \ - fseeko (f, o, w)) +_GL_CXXALIASWARN (fseek); #endif -#if @GNULIB_FSEEK@ && @REPLACE_FSEEK@ -extern int rpl_fseek (FILE *fp, long offset, int whence); -# undef fseek -# if defined GNULIB_POSIXCHECK -# define fseek(f,o,w) \ - (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use fseeko function for handling of large files"), \ - rpl_fseek (f, o, w)) +#if @GNULIB_FSEEKO@ +# if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 3, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEKO@ +/* Provide an fseeko function that is aware of a preceding fflush(), and which + detects pipes. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseeko +# define fseeko rpl_fseeko +# endif +_GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); # else +# if ! @HAVE_FSEEKO@ +_GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); +# endif +_GL_CXXALIASWARN (fseeko); +# if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ + /* Provide an fseek function that is consistent with fseeko. */ + /* In order to avoid that fseek gets defined as a macro here, the + developer can request the 'fseek' module. */ +# undef fseek # define fseek rpl_fseek +static inline int _GL_ARG_NONNULL ((1)) +rpl_fseek (FILE *fp, long offset, int whence) +{ +# if @REPLACE_FSEEKO@ + return rpl_fseeko (fp, offset, whence); +# else + return fseeko (fp, offset, whence); +# endif +} # endif #elif defined GNULIB_POSIXCHECK -# ifndef fseek -# define fseek(f,o,w) \ - (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use fseeko function for handling of large files"), \ - fseek (f, o, w)) +# define _GL_FSEEK_WARN /* Category 1, above. */ +# undef fseek +# undef fseeko +# if HAVE_RAW_DECL_FSEEKO +_GL_WARN_ON_USE (fseeko, "fseeko is unportable - " + "use gnulib module fseeko for portability"); # endif #endif -#if @GNULIB_FTELLO@ -# if @REPLACE_FTELLO@ -# define ftello rpl_ftello -extern off_t ftello (FILE *fp); -# define ftell(fp) ftello (fp) +#ifdef _GL_FSEEK_WARN +# undef _GL_FSEEK_WARN +/* Here, either fseek is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_fseek (declared above). */ +_GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use fseeko function for handling of large files"); +#endif + + +/* ftell, ftello. See the comments on fseek/fseeko. */ + +#if @GNULIB_FTELL@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 2, above. */ +# undef ftell # endif -#elif defined GNULIB_POSIXCHECK -# undef ftello -# define ftello(f) \ - (GL_LINK_WARNING ("ftello is unportable - " \ - "use gnulib module ftello for portability"), \ - ftello (f)) +# if @REPLACE_FTELL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftell +# define ftell rpl_ftell +# endif +_GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); +# else +_GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftell); #endif -#if @GNULIB_FTELL@ && @REPLACE_FTELL@ -extern long rpl_ftell (FILE *fp); -# undef ftell -# if GNULIB_POSIXCHECK -# define ftell(f) \ - (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use ftello function for handling of large files"), \ - rpl_ftell (f)) +#if @GNULIB_FTELLO@ +# if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 3, above. */ +# undef ftell +# endif +# if @REPLACE_FTELLO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftello +# define ftello rpl_ftello +# endif +_GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); # else +# if ! @HAVE_FTELLO@ +_GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftello); +# if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@ + /* Provide an ftell function that is consistent with ftello. */ + /* In order to avoid that ftell gets defined as a macro here, the + developer can request the 'ftell' module. */ +# undef ftell # define ftell rpl_ftell +static inline long _GL_ARG_NONNULL ((1)) +rpl_ftell (FILE *f) +{ +# if @REPLACE_FTELLO@ + return rpl_ftello (f); +# else + return ftello (f); +# endif +} # endif #elif defined GNULIB_POSIXCHECK -# ifndef ftell -# define ftell(f) \ - (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use ftello function for handling of large files"), \ - ftell (f)) +# define _GL_FTELL_WARN /* Category 1, above. */ +# undef ftell +# undef ftello +# if HAVE_RAW_DECL_FTELLO +_GL_WARN_ON_USE (ftello, "ftello is unportable - " + "use gnulib module ftello for portability"); # endif #endif -#if @GNULIB_FFLUSH@ -# if @REPLACE_FFLUSH@ -# define fflush rpl_fflush - /* Flush all pending data on STREAM according to POSIX rules. Both - output and seekable input streams are supported. - Note! LOSS OF DATA can occur if fflush is applied on an input stream - that is _not_seekable_ or on an update stream that is _not_seekable_ - and in which the most recent operation was input. Seekability can - be tested with lseek(fileno(fp),0,SEEK_CUR). */ - extern int fflush (FILE *gl_stream); +#ifdef _GL_FTELL_WARN +# undef _GL_FTELL_WARN +/* Here, either ftell is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_ftell (declared above). */ +_GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use ftello function for handling of large files"); +#endif + + +#if @GNULIB_FWRITE@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fwrite +# define fwrite rpl_fwrite +# endif +_GL_FUNCDECL_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream) + _GL_ARG_NONNULL ((1, 4))); +_GL_CXXALIAS_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fflush -# define fflush(f) \ - (GL_LINK_WARNING ("fflush is not always POSIX compliant - " \ - "use gnulib module fflush for portable " \ - "POSIX compliance"), \ - fflush (f)) +_GL_CXXALIASWARN (fwrite); #endif #if @GNULIB_GETDELIM@ -# if !@HAVE_DECL_GETDELIM@ /* Read input, up to (and including) the next occurrence of DELIMITER, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ -extern ssize_t getdelim (char **lineptr, size_t *linesize, int delimiter, - FILE *stream); +# if @REPLACE_GETDELIM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getdelim +# define getdelim rpl_getdelim +# endif +_GL_FUNCDECL_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +_GL_CXXALIAS_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); +# else +# if !@HAVE_DECL_GETDELIM@ +_GL_FUNCDECL_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +# endif +_GL_CXXALIAS_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); # endif +_GL_CXXALIASWARN (getdelim); #elif defined GNULIB_POSIXCHECK # undef getdelim -# define getdelim(l, s, d, f) \ - (GL_LINK_WARNING ("getdelim is unportable - " \ - "use gnulib module getdelim for portability"), \ - getdelim (l, s, d, f)) +# if HAVE_RAW_DECL_GETDELIM +_GL_WARN_ON_USE (getdelim, "getdelim is unportable - " + "use gnulib module getdelim for portability"); +# endif #endif #if @GNULIB_GETLINE@ -# if @REPLACE_GETLINE@ -# undef getline -# define getline rpl_getline -# endif -# if !@HAVE_DECL_GETLINE@ || @REPLACE_GETLINE@ /* Read a line, up to (and including) the next newline, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ -extern ssize_t getline (char **lineptr, size_t *linesize, FILE *stream); +# if @REPLACE_GETLINE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getline +# define getline rpl_getline +# endif +_GL_FUNCDECL_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +_GL_CXXALIAS_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# else +# if !@HAVE_DECL_GETLINE@ +_GL_FUNCDECL_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# endif +# if @HAVE_DECL_GETLINE@ +_GL_CXXALIASWARN (getline); # endif #elif defined GNULIB_POSIXCHECK # undef getline -# define getline(l, s, f) \ - (GL_LINK_WARNING ("getline is unportable - " \ - "use gnulib module getline for portability"), \ - getline (l, s, f)) +# if HAVE_RAW_DECL_GETLINE +_GL_WARN_ON_USE (getline, "getline is unportable - " + "use gnulib module getline for portability"); +# endif #endif -#ifdef __cplusplus -} +#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ +struct obstack; +/* Grow an obstack with formatted output. Return the number of + bytes added to OBS. No trailing nul byte is added, and the + object should be closed with obstack_finish before use. Upon + memory allocation error, call obstack_alloc_failed_handler. Upon + other error, return -1. */ +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_printf rpl_obstack_printf +# endif +_GL_FUNCDECL_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# endif +_GL_CXXALIASWARN (obstack_printf); +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_vprintf rpl_obstack_vprintf +# endif +_GL_FUNCDECL_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (obstack_vprintf); +#endif + +#if @GNULIB_PERROR@ +/* Print a message to standard error, describing the value of ERRNO, + (if STRING is not NULL and not empty) prefixed with STRING and ": ", + and terminated with a newline. */ +# if @REPLACE_PERROR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define perror rpl_perror +# endif +_GL_FUNCDECL_RPL (perror, void, (const char *string)); +_GL_CXXALIAS_RPL (perror, void, (const char *string)); +# else +_GL_CXXALIAS_SYS (perror, void, (const char *string)); +# endif +_GL_CXXALIASWARN (perror); +#elif defined GNULIB_POSIXCHECK +# undef perror +/* Assume perror is always declared. */ +_GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " + "use gnulib module perror for portability"); +#endif + +#if @GNULIB_POPEN@ +# if @REPLACE_POPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef popen +# define popen rpl_popen +# endif +_GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); +# else +_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); +# endif +_GL_CXXALIASWARN (popen); +#elif defined GNULIB_POSIXCHECK +# undef popen +# if HAVE_RAW_DECL_POPEN +_GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " + "use gnulib module popen or pipe for more portability"); +# endif +#endif + +#if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ +# if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ + || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if defined __GNUC__ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +/* Don't break __attribute__((format(printf,M,N))). */ +# define printf __printf__ +# endif +_GL_FUNCDECL_RPL_1 (__printf__, int, + (const char *format, ...) + __asm__ (@ASM_SYMBOL_PREFIX@ + _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); +# else +_GL_FUNCDECL_RPL (printf, int, + (const char *format, ...) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...)); +# endif +# define GNULIB_overrides_printf 1 +# else +_GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); +# endif +_GL_CXXALIASWARN (printf); +#endif +#if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_printf +# undef printf +# endif +/* Assume printf is always declared. */ +_GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " + "use gnulib module printf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_PUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putc +# define putc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); +# endif +_GL_CXXALIASWARN (putc); +#endif + +#if @GNULIB_PUTCHAR@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putchar +# define putchar rpl_putchar +# endif +_GL_FUNCDECL_RPL (putchar, int, (int c)); +_GL_CXXALIAS_RPL (putchar, int, (int c)); +# else +_GL_CXXALIAS_SYS (putchar, int, (int c)); +# endif +_GL_CXXALIASWARN (putchar); +#endif + +#if @GNULIB_PUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef puts +# define puts rpl_puts +# endif +_GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (puts, int, (const char *string)); +# else +_GL_CXXALIAS_SYS (puts, int, (const char *string)); +# endif +_GL_CXXALIASWARN (puts); +#endif + +#if @GNULIB_REMOVE@ +# if @REPLACE_REMOVE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef remove +# define remove rpl_remove +# endif +_GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (remove, int, (const char *name)); +# else +_GL_CXXALIAS_SYS (remove, int, (const char *name)); +# endif +_GL_CXXALIASWARN (remove); +#elif defined GNULIB_POSIXCHECK +# undef remove +/* Assume remove is always declared. */ +_GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " + "use gnulib module remove for more portability"); +#endif + +#if @GNULIB_RENAME@ +# if @REPLACE_RENAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef rename +# define rename rpl_rename +# endif +_GL_FUNCDECL_RPL (rename, int, + (const char *old_filename, const char *new_filename) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (rename, int, + (const char *old_filename, const char *new_filename)); +# else +_GL_CXXALIAS_SYS (rename, int, + (const char *old_filename, const char *new_filename)); +# endif +_GL_CXXALIASWARN (rename); +#elif defined GNULIB_POSIXCHECK +# undef rename +/* Assume rename is always declared. */ +_GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " + "use gnulib module rename for more portability"); +#endif + +#if @GNULIB_RENAMEAT@ +# if @REPLACE_RENAMEAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef renameat +# define renameat rpl_renameat +# endif +_GL_FUNCDECL_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# else +# if !@HAVE_RENAMEAT@ +_GL_FUNCDECL_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# endif +_GL_CXXALIASWARN (renameat); +#elif defined GNULIB_POSIXCHECK +# undef renameat +# if HAVE_RAW_DECL_RENAMEAT +_GL_WARN_ON_USE (renameat, "renameat is not portable - " + "use gnulib module renameat for portability"); +# endif +#endif + +#if @GNULIB_SNPRINTF@ +# if @REPLACE_SNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define snprintf rpl_snprintf +# endif +_GL_FUNCDECL_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# else +# if !@HAVE_DECL_SNPRINTF@ +_GL_FUNCDECL_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# endif +_GL_CXXALIASWARN (snprintf); +#elif defined GNULIB_POSIXCHECK +# undef snprintf +# if HAVE_RAW_DECL_SNPRINTF +_GL_WARN_ON_USE (snprintf, "snprintf is unportable - " + "use gnulib module snprintf for portability"); +# endif #endif +/* Some people would argue that sprintf should be handled like gets + (for example, OpenBSD issues a link warning for both functions), + since both can cause security holes due to buffer overruns. + However, we believe that sprintf can be used safely, and is more + efficient than snprintf in those safe cases; and as proof of our + belief, we use sprintf in several gnulib modules. So this header + intentionally avoids adding a warning to sprintf except when + GNULIB_POSIXCHECK is defined. */ + +#if @GNULIB_SPRINTF_POSIX@ +# if @REPLACE_SPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define sprintf rpl_sprintf +# endif +_GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); +# endif +_GL_CXXALIASWARN (sprintf); +#elif defined GNULIB_POSIXCHECK +# undef sprintf +/* Assume sprintf is always declared. */ +_GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " + "use gnulib module sprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_TMPFILE@ +# if @REPLACE_TMPFILE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define tmpfile rpl_tmpfile +# endif +_GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); +_GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); +# else +_GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); +# endif +_GL_CXXALIASWARN (tmpfile); +#elif defined GNULIB_POSIXCHECK +# undef tmpfile +# if HAVE_RAW_DECL_TMPFILE +_GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " + "use gnulib module tmpfile for portability"); +# endif +#endif + +#if @GNULIB_VASPRINTF@ +/* Write formatted output to a string dynamically allocated with malloc(). + If the memory allocation succeeds, store the address of the string in + *RESULT and return the number of resulting bytes, excluding the trailing + NUL. Upon memory allocation error, or some other error, return -1. */ +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define asprintf rpl_asprintf +# endif +_GL_FUNCDECL_RPL (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (asprintf, int, + (char **result, const char *format, ...)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (asprintf, int, + (char **result, const char *format, ...)); +# endif +_GL_CXXALIASWARN (asprintf); +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vasprintf rpl_vasprintf +# endif +_GL_FUNCDECL_RPL (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vasprintf, int, + (char **result, const char *format, va_list args)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (vasprintf, int, + (char **result, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vasprintf); +#endif + +#if @GNULIB_VDPRINTF@ +# if @REPLACE_VDPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vdprintf rpl_vdprintf +# endif +_GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args)); +# else +# if !@HAVE_VDPRINTF@ +_GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +# endif +/* Need to cast, because on Solaris, the third parameter will likely be + __va_list args. */ +_GL_CXXALIAS_SYS_CAST (vdprintf, int, + (int fd, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vdprintf); +#elif defined GNULIB_POSIXCHECK +# undef vdprintf +# if HAVE_RAW_DECL_VDPRINTF +_GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " + "use gnulib module vdprintf for portability"); +# endif +#endif + +#if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ +# if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ + || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vfprintf rpl_vfprintf +# endif +# define GNULIB_overrides_vfprintf 1 +_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vfprintf, int, + (FILE *fp, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vfprintf); +#endif +#if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vfprintf +# undef vfprintf +# endif +/* Assume vfprintf is always declared. */ +_GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " + "use gnulib module vfprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ +# if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ + || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vprintf rpl_vprintf +# endif +# define GNULIB_overrides_vprintf 1 +_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 1, 0))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the second parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vprintf); +#endif +#if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vprintf +# undef vprintf +# endif +/* Assume vprintf is always declared. */ +_GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " + "use gnulib module vprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VSNPRINTF@ +# if @REPLACE_VSNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsnprintf rpl_vsnprintf +# endif +_GL_FUNCDECL_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# else +# if !@HAVE_DECL_VSNPRINTF@ +_GL_FUNCDECL_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsnprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsnprintf +# if HAVE_RAW_DECL_VSNPRINTF +_GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " + "use gnulib module vsnprintf for portability"); +# endif +#endif + +#if @GNULIB_VSPRINTF_POSIX@ +# if @REPLACE_VSPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsprintf rpl_vsprintf +# endif +_GL_FUNCDECL_RPL (vsprintf, int, + (char *str, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vsprintf, int, + (char *str, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vsprintf, int, + (char *str, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsprintf +/* Assume vsprintf is always declared. */ +_GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " + "use gnulib module vsprintf-posix for portable " + "POSIX compliance"); +#endif + + #endif /* _GL_STDIO_H */ #endif /* _GL_STDIO_H */ #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdio-write.c gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio-write.c --- gettext-0.17/gettext-tools/gnulib-lib/stdio-write.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdio-write.c 2010-05-24 09:42:46.000000000 +0000 @@ -0,0 +1,148 @@ +/* POSIX compatible FILE stream write function. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Replace these functions only if module 'sigpipe' is requested. */ +#if GNULIB_SIGPIPE + +/* On native Windows platforms, SIGPIPE does not exist. When write() is + called on a pipe with no readers, WriteFile() fails with error + GetLastError() = ERROR_NO_DATA, and write() in consequence fails with + error EINVAL. This write() function is at the basis of the function + which flushes the buffer of a FILE stream. */ + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +# include +# include +# include + +# define WIN32_LEAN_AND_MEAN /* avoid including junk */ +# include + +# define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \ + if (ferror (stream)) \ + return (EXPRESSION); \ + else \ + { \ + RETTYPE ret; \ + SetLastError (0); \ + ret = (EXPRESSION); \ + if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream)) \ + { \ + int fd = fileno (stream); \ + if (fd >= 0 \ + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\ + { \ + /* Try to raise signal SIGPIPE. */ \ + raise (SIGPIPE); \ + /* If it is currently blocked or ignored, change errno from \ + EINVAL to EPIPE. */ \ + errno = EPIPE; \ + } \ + } \ + return ret; \ + } + +# if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */ +int +printf (const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stdout, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */ +int +fprintf (FILE *stream, const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stream, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */ +int +vprintf (const char *format, va_list args) +{ + return vfprintf (stdout, format, args); +} +# endif + +# if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */ +int +vfprintf (FILE *stream, const char *format, va_list args) +#undef vfprintf +{ + CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) +} +# endif + +int +putchar (int c) +{ + return fputc (c, stdout); +} + +int +fputc (int c, FILE *stream) +#undef fputc +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF) +} + +int +fputs (const char *string, FILE *stream) +#undef fputs +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF) +} + +int +puts (const char *string) +#undef puts +{ + FILE *stream = stdout; + CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF) +} + +size_t +fwrite (const void *ptr, size_t s, size_t n, FILE *stream) +#undef fwrite +{ + CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) +} + +# endif +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stdlib.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/stdlib.in.h --- gettext-0.17/gettext-tools/gnulib-lib/stdlib.in.h 2007-11-02 00:42:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stdlib.in.h 2010-05-24 09:42:46.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,6 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_malloc_and_calloc /* Special invocation convention inside glibc header files. */ @@ -31,8 +35,50 @@ #ifndef _GL_STDLIB_H #define _GL_STDLIB_H +/* NetBSD 5.0 mis-defines NULL. */ +#include + +/* Solaris declares getloadavg() in . */ +#if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ +# include +#endif + +/* OSF/1 5.1 declares 'struct random_data' in , which is included + from if _REENTRANT is defined. Include it always. */ +#if @HAVE_RANDOM_H@ +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) \ + || defined GNULIB_POSIXCHECK +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ +struct random_data +{ + int32_t *fptr; /* Front pointer. */ + int32_t *rptr; /* Rear pointer. */ + int32_t *state; /* Array of state values. */ + int rand_type; /* Type of random number generator. */ + int rand_deg; /* Degree of random number generator. */ + int rand_sep; /* Distance between front and rear. */ + int32_t *end_ptr; /* Pointer behind state table. */ +}; +#endif + +#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +/* On MacOS X 10.3, only declares mkstemp. */ +/* On Cygwin 1.7.1, only declares getsubopt. */ +/* But avoid namespace pollution on glibc systems and native Windows. */ +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ @@ -49,56 +95,84 @@ #endif -#ifdef __cplusplus -extern "C" { +#if @GNULIB_ATOLL@ +/* Parse a signed decimal integer. + Returns the value of the integer. Errors are not detected. */ +# if !@HAVE_ATOLL@ +_GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (atoll, long long, (const char *string)); +_GL_CXXALIASWARN (atoll); +#elif defined GNULIB_POSIXCHECK +# undef atoll +# if HAVE_RAW_DECL_ATOLL +_GL_WARN_ON_USE (atoll, "atoll is unportable - " + "use gnulib module atoll for portability"); +# endif #endif - -#if @GNULIB_MALLOC_POSIX@ -# if !@HAVE_MALLOC_POSIX@ -# undef malloc -# define malloc rpl_malloc -extern void * malloc (size_t size); +#if @GNULIB_CALLOC_POSIX@ +# if !@HAVE_CALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef calloc +# define calloc rpl_calloc +# endif +_GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size)); +_GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); +# else +_GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); # endif +_GL_CXXALIASWARN (calloc); #elif defined GNULIB_POSIXCHECK -# undef malloc -# define malloc(s) \ - (GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \ - "use gnulib module malloc-posix for portability"), \ - malloc (s)) +# undef calloc +/* Assume calloc is always declared. */ +_GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " + "use gnulib module calloc-posix for portability"); #endif - -#if @GNULIB_REALLOC_POSIX@ -# if !@HAVE_REALLOC_POSIX@ -# undef realloc -# define realloc rpl_realloc -extern void * realloc (void *ptr, size_t size); +#if @GNULIB_CANONICALIZE_FILE_NAME@ +# if @REPLACE_CANONICALIZE_FILE_NAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define canonicalize_file_name rpl_canonicalize_file_name +# endif +_GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name)); +# else +# if !@HAVE_CANONICALIZE_FILE_NAME@ +_GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif +_GL_CXXALIASWARN (canonicalize_file_name); #elif defined GNULIB_POSIXCHECK -# undef realloc -# define realloc(p,s) \ - (GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \ - "use gnulib module realloc-posix for portability"), \ - realloc (p, s)) +# undef canonicalize_file_name +# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME +_GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - " + "use gnulib module canonicalize-lgpl for portability"); +# endif #endif - -#if @GNULIB_CALLOC_POSIX@ -# if !@HAVE_CALLOC_POSIX@ -# undef calloc -# define calloc rpl_calloc -extern void * calloc (size_t nmemb, size_t size); +#if @GNULIB_GETLOADAVG@ +/* Store max(NELEM,3) load average numbers in LOADAVG[]. + The three numbers are the load average of the last 1 minute, the last 5 + minutes, and the last 15 minutes, respectively. + LOADAVG is an array of NELEM numbers. */ +# if !@HAVE_DECL_GETLOADAVG@ +_GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem) + _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); +_GL_CXXALIASWARN (getloadavg); #elif defined GNULIB_POSIXCHECK -# undef calloc -# define calloc(n,s) \ - (GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \ - "use gnulib module calloc-posix for portability"), \ - calloc (n, s)) +# undef getloadavg +# if HAVE_RAW_DECL_GETLOADAVG +_GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " + "use gnulib module getloadavg for portability"); +# endif #endif - #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. @@ -112,37 +186,133 @@ For more details see the POSIX:2001 specification. http://www.opengroup.org/susv3xsh/getsubopt.html */ # if !@HAVE_GETSUBOPT@ -extern int getsubopt (char **optionp, char *const *tokens, char **valuep); +_GL_FUNCDECL_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep) + _GL_ARG_NONNULL ((1, 2, 3))); # endif +_GL_CXXALIAS_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep)); +_GL_CXXALIASWARN (getsubopt); #elif defined GNULIB_POSIXCHECK # undef getsubopt -# define getsubopt(o,t,v) \ - (GL_LINK_WARNING ("getsubopt is unportable - " \ - "use gnulib module getsubopt for portability"), \ - getsubopt (o, t, v)) +# if HAVE_RAW_DECL_GETSUBOPT +_GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " + "use gnulib module getsubopt for portability"); +# endif +#endif + +#if @GNULIB_GRANTPT@ +/* Change the ownership and access permission of the slave side of the + pseudo-terminal whose master side is specified by FD. */ +# if !@HAVE_GRANTPT@ +_GL_FUNCDECL_SYS (grantpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (grantpt, int, (int fd)); +_GL_CXXALIASWARN (grantpt); +#elif defined GNULIB_POSIXCHECK +# undef grantpt +# if HAVE_RAW_DECL_GRANTPT +_GL_WARN_ON_USE (ptsname, "grantpt is not portable - " + "use gnulib module grantpt for portability"); +# endif #endif +#if @GNULIB_MALLOC_POSIX@ +# if !@HAVE_MALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef malloc +# define malloc rpl_malloc +# endif +_GL_FUNCDECL_RPL (malloc, void *, (size_t size)); +_GL_CXXALIAS_RPL (malloc, void *, (size_t size)); +# else +_GL_CXXALIAS_SYS (malloc, void *, (size_t size)); +# endif +_GL_CXXALIASWARN (malloc); +#elif defined GNULIB_POSIXCHECK +# undef malloc +/* Assume malloc is always declared. */ +_GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " + "use gnulib module malloc-posix for portability"); +#endif #if @GNULIB_MKDTEMP@ -# if !@HAVE_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ -extern char * mkdtemp (char * /*template*/); +# if !@HAVE_MKDTEMP@ +_GL_FUNCDECL_SYS (mkdtemp, char *, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); +_GL_CXXALIASWARN (mkdtemp); #elif defined GNULIB_POSIXCHECK # undef mkdtemp -# define mkdtemp(t) \ - (GL_LINK_WARNING ("mkdtemp is unportable - " \ - "use gnulib module mkdtemp for portability"), \ - mkdtemp (t)) +# if HAVE_RAW_DECL_MKDTEMP +_GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " + "use gnulib module mkdtemp for portability"); +# endif +#endif + +#if @GNULIB_MKOSTEMP@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMP@ +_GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemp); +#elif defined GNULIB_POSIXCHECK +# undef mkostemp +# if HAVE_RAW_DECL_MKOSTEMP +_GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " + "use gnulib module mkostemp for portability"); +# endif #endif +#if @GNULIB_MKOSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE before a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMPS@ +_GL_FUNCDECL_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemps); +#elif defined GNULIB_POSIXCHECK +# undef mkostemps +# if HAVE_RAW_DECL_MKOSTEMPS +_GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " + "use gnulib module mkostemps for portability"); +# endif +#endif #if @GNULIB_MKSTEMP@ -# if @REPLACE_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. @@ -152,34 +322,366 @@ implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ -# define mkstemp rpl_mkstemp -extern int mkstemp (char * /*template*/); +# if @REPLACE_MKSTEMP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkstemp rpl_mkstemp +# endif +_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); # else -/* On MacOS X 10.3, only declares mkstemp. */ -# include +# if ! @HAVE_MKSTEMP@ +_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); # endif +_GL_CXXALIASWARN (mkstemp); #elif defined GNULIB_POSIXCHECK # undef mkstemp -# define mkstemp(t) \ - (GL_LINK_WARNING ("mkstemp is unportable - " \ - "use gnulib module mkstemp for portability"), \ - mkstemp (t)) +# if HAVE_RAW_DECL_MKSTEMP +_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " + "use gnulib module mkstemp for portability"); +# endif #endif +#if @GNULIB_MKSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE prior to a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The file is then created, ensuring it didn't exist before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKSTEMPS@ +_GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); +_GL_CXXALIASWARN (mkstemps); +#elif defined GNULIB_POSIXCHECK +# undef mkstemps +# if HAVE_RAW_DECL_MKSTEMPS +_GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " + "use gnulib module mkstemps for portability"); +# endif +#endif + +#if @GNULIB_PTSNAME@ +/* Return the pathname of the pseudo-terminal slave associated with + the master FD is open on, or NULL on errors. */ +# if !@HAVE_PTSNAME@ +_GL_FUNCDECL_SYS (ptsname, char *, (int fd)); +# endif +_GL_CXXALIAS_SYS (ptsname, char *, (int fd)); +_GL_CXXALIASWARN (ptsname); +#elif defined GNULIB_POSIXCHECK +# undef ptsname +# if HAVE_RAW_DECL_PTSNAME +_GL_WARN_ON_USE (ptsname, "ptsname is not portable - " + "use gnulib module ptsname for portability"); +# endif +#endif #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ -# undef putenv -# define putenv rpl_putenv -extern int putenv (char *string); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putenv +# define putenv rpl_putenv +# endif +_GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (putenv, int, (char *string)); +# else +_GL_CXXALIAS_SYS (putenv, int, (char *string)); +# endif +_GL_CXXALIASWARN (putenv); +#endif + + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +# ifndef RAND_MAX +# define RAND_MAX 2147483647 +# endif +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); +_GL_CXXALIASWARN (random_r); +#elif defined GNULIB_POSIXCHECK +# undef random_r +# if HAVE_RAW_DECL_RANDOM_R +_GL_WARN_ON_USE (random_r, "random_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state)); +_GL_CXXALIASWARN (srandom_r); +#elif defined GNULIB_POSIXCHECK +# undef srandom_r +# if HAVE_RAW_DECL_SRANDOM_R +_GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state)); +_GL_CXXALIASWARN (initstate_r); +#elif defined GNULIB_POSIXCHECK +# undef initstate_r +# if HAVE_RAW_DECL_INITSTATE_R +_GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state)); +_GL_CXXALIASWARN (setstate_r); +#elif defined GNULIB_POSIXCHECK +# undef setstate_r +# if HAVE_RAW_DECL_SETSTATE_R +_GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " + "use gnulib module random_r for portability"); # endif #endif -#ifdef __cplusplus -} +#if @GNULIB_REALLOC_POSIX@ +# if !@HAVE_REALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef realloc +# define realloc rpl_realloc +# endif +_GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size)); +_GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); +# else +_GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); +# endif +_GL_CXXALIASWARN (realloc); +#elif defined GNULIB_POSIXCHECK +# undef realloc +/* Assume realloc is always declared. */ +_GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " + "use gnulib module realloc-posix for portability"); #endif +#if @GNULIB_REALPATH@ +# if @REPLACE_REALPATH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define realpath rpl_realpath +# endif +_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); +# else +# if !@HAVE_REALPATH@ +_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); +# endif +_GL_CXXALIASWARN (realpath); +#elif defined GNULIB_POSIXCHECK +# undef realpath +# if HAVE_RAW_DECL_REALPATH +_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " + "canonicalize or canonicalize-lgpl for portability"); +# endif +#endif + +#if @GNULIB_RPMATCH@ +/* Test a user response to a question. + Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */ +# if !@HAVE_RPMATCH@ +_GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); +_GL_CXXALIASWARN (rpmatch); +#elif defined GNULIB_POSIXCHECK +# undef rpmatch +# if HAVE_RAW_DECL_RPMATCH +_GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " + "use gnulib module rpmatch for portability"); +# endif +#endif + +#if @GNULIB_SETENV@ +/* Set NAME to VALUE in the environment. + If REPLACE is nonzero, overwrite an existing value. */ +# if @REPLACE_SETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef setenv +# define setenv rpl_setenv +# endif +_GL_FUNCDECL_RPL (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (setenv, int, + (const char *name, const char *value, int replace)); +# else +# if !@HAVE_SETENV@ +_GL_FUNCDECL_SYS (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (setenv, int, + (const char *name, const char *value, int replace)); +# endif +_GL_CXXALIASWARN (setenv); +#elif defined GNULIB_POSIXCHECK +# undef setenv +# if HAVE_RAW_DECL_SETENV +_GL_WARN_ON_USE (setenv, "setenv is unportable - " + "use gnulib module setenv for portability"); +# endif +#endif + +#if @GNULIB_STRTOD@ + /* Parse a double from STRING, updating ENDP if appropriate. */ +# if @REPLACE_STRTOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strtod rpl_strtod +# endif +_GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp)); +# else +# if !@HAVE_STRTOD@ +_GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp)); +# endif +_GL_CXXALIASWARN (strtod); +#elif defined GNULIB_POSIXCHECK +# undef strtod +# if HAVE_RAW_DECL_STRTOD +_GL_WARN_ON_USE (strtod, "strtod is unportable - " + "use gnulib module strtod for portability"); +# endif +#endif + +#if @GNULIB_STRTOLL@ +/* Parse a signed integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set + to ERANGE. */ +# if !@HAVE_STRTOLL@ +_GL_FUNCDECL_SYS (strtoll, long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoll, long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoll); +#elif defined GNULIB_POSIXCHECK +# undef strtoll +# if HAVE_RAW_DECL_STRTOLL +_GL_WARN_ON_USE (strtoll, "strtoll is unportable - " + "use gnulib module strtoll for portability"); +# endif +#endif + +#if @GNULIB_STRTOULL@ +/* Parse an unsigned integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is ULLONG_MAX, and errno is set to + ERANGE. */ +# if !@HAVE_STRTOULL@ +_GL_FUNCDECL_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoull); +#elif defined GNULIB_POSIXCHECK +# undef strtoull +# if HAVE_RAW_DECL_STRTOULL +_GL_WARN_ON_USE (strtoull, "strtoull is unportable - " + "use gnulib module strtoull for portability"); +# endif +#endif + +#if @GNULIB_UNLOCKPT@ +/* Unlock the slave side of the pseudo-terminal whose master side is specified + by FD, so that it can be opened. */ +# if !@HAVE_UNLOCKPT@ +_GL_FUNCDECL_SYS (unlockpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (unlockpt, int, (int fd)); +_GL_CXXALIASWARN (unlockpt); +#elif defined GNULIB_POSIXCHECK +# undef unlockpt +# if HAVE_RAW_DECL_UNLOCKPT +_GL_WARN_ON_USE (ptsname, "unlockpt is not portable - " + "use gnulib module unlockpt for portability"); +# endif +#endif + +#if @GNULIB_UNSETENV@ +/* Remove the variable NAME from the environment. */ +# if @REPLACE_UNSETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unsetenv +# define unsetenv rpl_unsetenv +# endif +_GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unsetenv, int, (const char *name)); +# else +# if !@HAVE_UNSETENV@ +_GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); +# endif +_GL_CXXALIASWARN (unsetenv); +#elif defined GNULIB_POSIXCHECK +# undef unsetenv +# if HAVE_RAW_DECL_UNSETENV +_GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " + "use gnulib module unsetenv for portability"); +# endif +#endif + + #endif /* _GL_STDLIB_H */ #endif /* _GL_STDLIB_H */ #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stpcpy.c gettext-0.18.1.1/gettext-tools/gnulib-lib/stpcpy.c --- gettext-0.17/gettext-tools/gnulib-lib/stpcpy.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stpcpy.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,6 @@ /* stpcpy.c -- copy a string and return pointer to end of new string - Copyright (C) 1992, 1995, 1997-1998, 2006 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1997-1998, 2006, 2009-2010 Free Software + Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. diff -Nru gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c gettext-0.18.1.1/gettext-tools/gnulib-lib/stpncpy.c --- gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/stpncpy.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,4 +1,5 @@ -/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005-2007 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995-1997, 2002-2003, 2005-2007, 2009-2010 Free Software + * Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. @@ -40,26 +41,26 @@ size_t n4 = n >> 2; for (;;) - { - c = *src++; - *dest++ = c; - if (c == '\0') - break; - c = *src++; - *dest++ = c; - if (c == '\0') - break; - c = *src++; - *dest++ = c; - if (c == '\0') - break; - c = *src++; - *dest++ = c; - if (c == '\0') - break; - if (--n4 == 0) - goto last_chars; - } + { + c = *src++; + *dest++ = c; + if (c == '\0') + break; + c = *src++; + *dest++ = c; + if (c == '\0') + break; + c = *src++; + *dest++ = c; + if (c == '\0') + break; + c = *src++; + *dest++ = c; + if (c == '\0') + break; + if (--n4 == 0) + goto last_chars; + } n -= dest - s; goto zero_fill; } @@ -75,9 +76,9 @@ --n; *dest++ = c; if (c == '\0') - break; + break; if (n == 0) - return dest; + return dest; } zero_fill: diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strchrnul.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strchrnul.c --- gettext-0.17/gettext-tools/gnulib-lib/strchrnul.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strchrnul.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,142 @@ +/* Searching in a string. + Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Find the first occurrence of C in S or the final NUL byte. */ +char * +strchrnul (const char *s, int c_in) +{ + /* On 32-bit hardware, choosing longword to be a 32-bit unsigned + long instead of a 64-bit uintmax_t tends to give better + performance. On 64-bit hardware, unsigned long is generally 64 + bits already. Change this typedef to experiment with + performance. */ + typedef unsigned long int longword; + + const unsigned char *char_ptr; + const longword *longword_ptr; + longword repeated_one; + longword repeated_c; + unsigned char c; + + c = (unsigned char) c_in; + if (!c) + return rawmemchr (s, 0); + + /* Handle the first few bytes by reading one byte at a time. + Do this until CHAR_PTR is aligned on a longword boundary. */ + for (char_ptr = (const unsigned char *) s; + (size_t) char_ptr % sizeof (longword) != 0; + ++char_ptr) + if (!*char_ptr || *char_ptr == c) + return (char *) char_ptr; + + longword_ptr = (const longword *) char_ptr; + + /* All these elucidatory comments refer to 4-byte longwords, + but the theory applies equally well to any size longwords. */ + + /* Compute auxiliary longword values: + repeated_one is a value which has a 1 in every byte. + repeated_c has c in every byte. */ + repeated_one = 0x01010101; + repeated_c = c | (c << 8); + repeated_c |= repeated_c << 16; + if (0xffffffffU < (longword) -1) + { + repeated_one |= repeated_one << 31 << 1; + repeated_c |= repeated_c << 31 << 1; + if (8 < sizeof (longword)) + { + size_t i; + + for (i = 64; i < sizeof (longword) * 8; i *= 2) + { + repeated_one |= repeated_one << i; + repeated_c |= repeated_c << i; + } + } + } + + /* Instead of the traditional loop which tests each byte, we will + test a longword at a time. The tricky part is testing if *any of + the four* bytes in the longword in question are equal to NUL or + c. We first use an xor with repeated_c. This reduces the task + to testing whether *any of the four* bytes in longword1 or + longword2 is zero. + + Let's consider longword1. We compute tmp = + ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). + That is, we perform the following operations: + 1. Subtract repeated_one. + 2. & ~longword1. + 3. & a mask consisting of 0x80 in every byte. + Consider what happens in each byte: + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, + and step 3 transforms it into 0x80. A carry can also be propagated + to more significant bytes. + - If a byte of longword1 is nonzero, let its lowest 1 bit be at + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, + the byte ends in a single bit of value 0 and k bits of value 1. + After step 2, the result is just k bits of value 1: 2^k - 1. After + step 3, the result is 0. And no carry is produced. + So, if longword1 has only non-zero bytes, tmp is zero. + Whereas if longword1 has a zero byte, call j the position of the least + significant zero byte. Then the result has a zero at positions 0, ..., + j-1 and a 0x80 at position j. We cannot predict the result at the more + significant bytes (positions j+1..3), but it does not matter since we + already have a non-zero bit at position 8*j+7. + + The test whether any byte in longword1 or longword2 is zero is equivalent + to testing whether tmp1 is nonzero or tmp2 is nonzero. We can combine + this into a single test, whether (tmp1 | tmp2) is nonzero. + + This test can read more than one byte beyond the end of a string, + depending on where the terminating NUL is encountered. However, + this is considered safe since the initialization phase ensured + that the read will be aligned, therefore, the read will not cross + page boundaries and will not cause a fault. */ + + while (1) + { + longword longword1 = *longword_ptr ^ repeated_c; + longword longword2 = *longword_ptr; + + if (((((longword1 - repeated_one) & ~longword1) + | ((longword2 - repeated_one) & ~longword2)) + & (repeated_one << 7)) != 0) + break; + longword_ptr++; + } + + char_ptr = (const unsigned char *) longword_ptr; + + /* At this point, we know that one of the sizeof (longword) bytes + starting at char_ptr is == 0 or == c. On little-endian machines, + we could determine the first such byte without any further memory + accesses, just by looking at the tmp result from the last loop + iteration. But this does not work on big-endian machines. + Choose code that works in both cases. */ + + char_ptr = (unsigned char *) longword_ptr; + while (*char_ptr && (*char_ptr != c)) + char_ptr++; + return (char *) char_ptr; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strchrnul.valgrind gettext-0.18.1.1/gettext-tools/gnulib-lib/strchrnul.valgrind --- gettext-0.17/gettext-tools/gnulib-lib/strchrnul.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strchrnul.valgrind 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,12 @@ +# Suppress a valgrind message about use of uninitialized memory in strchrnul(). +# This use is OK because it provides only a speedup. +{ + strchrnul-value4 + Memcheck:Value4 + fun:strchrnul +} +{ + strchrnul-value8 + Memcheck:Value8 + fun:strchrnul +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strcspn.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strcspn.c --- gettext-0.17/gettext-tools/gnulib-lib/strcspn.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strcspn.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,4 +1,5 @@ -/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003, 2005-2006 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 1996-1997, 2002-2003, 2005-2006, 2009-2010 Free + * Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strdup.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strdup.c --- gettext-0.17/gettext-tools/gnulib-lib/strdup.c 2007-01-27 03:22:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strdup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free - Software Foundation, Inc. - - This file is part of the GNU C Library. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifndef _LIBC -# include -#endif - -/* Get specification. */ -#include - -#include - -#undef __strdup -#ifdef _LIBC -# undef strdup -#endif - -#ifndef weak_alias -# define __strdup strdup -#endif - -/* Duplicate S, returning an identical malloc'd string. */ -char * -__strdup (const char *s) -{ - size_t len = strlen (s) + 1; - void *new = malloc (len); - - if (new == NULL) - return NULL; - - return (char *) memcpy (new, s, len); -} -#ifdef libc_hidden_def -libc_hidden_def (__strdup) -#endif -#ifdef weak_alias -weak_alias (__strdup, strdup) -#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/streq.h gettext-0.18.1.1/gettext-tools/gnulib-lib/streq.h --- gettext-0.17/gettext-tools/gnulib-lib/streq.h 2007-10-31 12:36:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/streq.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,5 @@ /* Optimized string comparison. - Copyright (C) 2001-2002, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strerror.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strerror.c --- gettext-0.17/gettext-tools/gnulib-lib/strerror.c 2007-10-27 01:23:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strerror.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror.c --- POSIX compatible system error routine - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,8 +21,15 @@ #if REPLACE_STRERROR +# include # include +# if GNULIB_defined_ESOCK /* native Windows platforms */ +# if HAVE_WINSOCK2_H +# include +# endif +# endif + # include "intprops.h" # undef strerror @@ -33,17 +40,308 @@ char * rpl_strerror (int n) { - char *result = strerror (n); - - if (result == NULL || result[0] == '\0') + char const *msg = NULL; + /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ + switch (n) { - static char const fmt[] = "Unknown error (%d)"; - static char mesg[sizeof fmt + INT_STRLEN_BOUND (n)]; - sprintf (mesg, fmt, n); - return mesg; +# if GNULIB_defined_ETXTBSY + case ETXTBSY: + msg = "Text file busy"; + break; +# endif + +# if GNULIB_defined_ESOCK /* native Windows platforms */ + /* EWOULDBLOCK is the same as EAGAIN. */ + case EINPROGRESS: + msg = "Operation now in progress"; + break; + case EALREADY: + msg = "Operation already in progress"; + break; + case ENOTSOCK: + msg = "Socket operation on non-socket"; + break; + case EDESTADDRREQ: + msg = "Destination address required"; + break; + case EMSGSIZE: + msg = "Message too long"; + break; + case EPROTOTYPE: + msg = "Protocol wrong type for socket"; + break; + case ENOPROTOOPT: + msg = "Protocol not available"; + break; + case EPROTONOSUPPORT: + msg = "Protocol not supported"; + break; + case ESOCKTNOSUPPORT: + msg = "Socket type not supported"; + break; + case EOPNOTSUPP: + msg = "Operation not supported"; + break; + case EPFNOSUPPORT: + msg = "Protocol family not supported"; + break; + case EAFNOSUPPORT: + msg = "Address family not supported by protocol"; + break; + case EADDRINUSE: + msg = "Address already in use"; + break; + case EADDRNOTAVAIL: + msg = "Cannot assign requested address"; + break; + case ENETDOWN: + msg = "Network is down"; + break; + case ENETUNREACH: + msg = "Network is unreachable"; + break; + case ENETRESET: + msg = "Network dropped connection on reset"; + break; + case ECONNABORTED: + msg = "Software caused connection abort"; + break; + case ECONNRESET: + msg = "Connection reset by peer"; + break; + case ENOBUFS: + msg = "No buffer space available"; + break; + case EISCONN: + msg = "Transport endpoint is already connected"; + break; + case ENOTCONN: + msg = "Transport endpoint is not connected"; + break; + case ESHUTDOWN: + msg = "Cannot send after transport endpoint shutdown"; + break; + case ETOOMANYREFS: + msg = "Too many references: cannot splice"; + break; + case ETIMEDOUT: + msg = "Connection timed out"; + break; + case ECONNREFUSED: + msg = "Connection refused"; + break; + case ELOOP: + msg = "Too many levels of symbolic links"; + break; + case EHOSTDOWN: + msg = "Host is down"; + break; + case EHOSTUNREACH: + msg = "No route to host"; + break; + case EPROCLIM: + msg = "Too many processes"; + break; + case EUSERS: + msg = "Too many users"; + break; + case EDQUOT: + msg = "Disk quota exceeded"; + break; + case ESTALE: + msg = "Stale NFS file handle"; + break; + case EREMOTE: + msg = "Object is remote"; + break; +# if HAVE_WINSOCK2_H + /* WSA_INVALID_HANDLE maps to EBADF */ + /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ + /* WSA_INVALID_PARAMETER maps to EINVAL */ + case WSA_OPERATION_ABORTED: + msg = "Overlapped operation aborted"; + break; + case WSA_IO_INCOMPLETE: + msg = "Overlapped I/O event object not in signaled state"; + break; + case WSA_IO_PENDING: + msg = "Overlapped operations will complete later"; + break; + /* WSAEINTR maps to EINTR */ + /* WSAEBADF maps to EBADF */ + /* WSAEACCES maps to EACCES */ + /* WSAEFAULT maps to EFAULT */ + /* WSAEINVAL maps to EINVAL */ + /* WSAEMFILE maps to EMFILE */ + /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ + /* WSAEINPROGRESS is EINPROGRESS */ + /* WSAEALREADY is EALREADY */ + /* WSAENOTSOCK is ENOTSOCK */ + /* WSAEDESTADDRREQ is EDESTADDRREQ */ + /* WSAEMSGSIZE is EMSGSIZE */ + /* WSAEPROTOTYPE is EPROTOTYPE */ + /* WSAENOPROTOOPT is ENOPROTOOPT */ + /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ + /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ + /* WSAEOPNOTSUPP is EOPNOTSUPP */ + /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ + /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ + /* WSAEADDRINUSE is EADDRINUSE */ + /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ + /* WSAENETDOWN is ENETDOWN */ + /* WSAENETUNREACH is ENETUNREACH */ + /* WSAENETRESET is ENETRESET */ + /* WSAECONNABORTED is ECONNABORTED */ + /* WSAECONNRESET is ECONNRESET */ + /* WSAENOBUFS is ENOBUFS */ + /* WSAEISCONN is EISCONN */ + /* WSAENOTCONN is ENOTCONN */ + /* WSAESHUTDOWN is ESHUTDOWN */ + /* WSAETOOMANYREFS is ETOOMANYREFS */ + /* WSAETIMEDOUT is ETIMEDOUT */ + /* WSAECONNREFUSED is ECONNREFUSED */ + /* WSAELOOP is ELOOP */ + /* WSAENAMETOOLONG maps to ENAMETOOLONG */ + /* WSAEHOSTDOWN is EHOSTDOWN */ + /* WSAEHOSTUNREACH is EHOSTUNREACH */ + /* WSAENOTEMPTY maps to ENOTEMPTY */ + /* WSAEPROCLIM is EPROCLIM */ + /* WSAEUSERS is EUSERS */ + /* WSAEDQUOT is EDQUOT */ + /* WSAESTALE is ESTALE */ + /* WSAEREMOTE is EREMOTE */ + case WSASYSNOTREADY: + msg = "Network subsystem is unavailable"; + break; + case WSAVERNOTSUPPORTED: + msg = "Winsock.dll version out of range"; + break; + case WSANOTINITIALISED: + msg = "Successful WSAStartup not yet performed"; + break; + case WSAEDISCON: + msg = "Graceful shutdown in progress"; + break; + case WSAENOMORE: case WSA_E_NO_MORE: + msg = "No more results"; + break; + case WSAECANCELLED: case WSA_E_CANCELLED: + msg = "Call was canceled"; + break; + case WSAEINVALIDPROCTABLE: + msg = "Procedure call table is invalid"; + break; + case WSAEINVALIDPROVIDER: + msg = "Service provider is invalid"; + break; + case WSAEPROVIDERFAILEDINIT: + msg = "Service provider failed to initialize"; + break; + case WSASYSCALLFAILURE: + msg = "System call failure"; + break; + case WSASERVICE_NOT_FOUND: + msg = "Service not found"; + break; + case WSATYPE_NOT_FOUND: + msg = "Class type not found"; + break; + case WSAEREFUSED: + msg = "Database query was refused"; + break; + case WSAHOST_NOT_FOUND: + msg = "Host not found"; + break; + case WSATRY_AGAIN: + msg = "Nonauthoritative host not found"; + break; + case WSANO_RECOVERY: + msg = "Nonrecoverable error"; + break; + case WSANO_DATA: + msg = "Valid name, no data record of requested type"; + break; + /* WSA_QOS_* omitted */ +# endif +# endif + +# if GNULIB_defined_ENOMSG + case ENOMSG: + msg = "No message of desired type"; + break; +# endif + +# if GNULIB_defined_EIDRM + case EIDRM: + msg = "Identifier removed"; + break; +# endif + +# if GNULIB_defined_ENOLINK + case ENOLINK: + msg = "Link has been severed"; + break; +# endif + +# if GNULIB_defined_EPROTO + case EPROTO: + msg = "Protocol error"; + break; +# endif + +# if GNULIB_defined_EMULTIHOP + case EMULTIHOP: + msg = "Multihop attempted"; + break; +# endif + +# if GNULIB_defined_EBADMSG + case EBADMSG: + msg = "Bad message"; + break; +# endif + +# if GNULIB_defined_EOVERFLOW + case EOVERFLOW: + msg = "Value too large for defined data type"; + break; +# endif + +# if GNULIB_defined_ENOTSUP + case ENOTSUP: + msg = "Not supported"; + break; +# endif + +# if GNULIB_defined_ESTALE + case ESTALE: + msg = "Stale NFS file handle"; + break; +# endif + +# if GNULIB_defined_ECANCELED + case ECANCELED: + msg = "Operation canceled"; + break; +# endif } - return result; + if (msg) + return (char *) msg; + + { + char *result = strerror (n); + + if (result == NULL || result[0] == '\0') + { + static char const fmt[] = "Unknown error (%d)"; + static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; + sprintf (msg_buf, fmt, n); + return msg_buf; + } + + return result; + } } #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconv.c gettext-0.18.1.1/gettext-tools/gnulib-lib/striconv.c --- gettext-0.17/gettext-tools/gnulib-lib/striconv.c 2007-01-27 03:22:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconv.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -42,7 +42,7 @@ int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { # define tmpbufsize 4096 size_t length; @@ -67,33 +67,33 @@ while (insize > 0) { - char *outptr = tmpbuf; - size_t outsize = tmpbufsize; - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - ; - else if (errno == EINVAL) - break; - else - return -1; - } + char *outptr = tmpbuf; + size_t outsize = tmpbufsize; + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + ; + else if (errno == EINVAL) + break; + else + return -1; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - return -1; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + return -1; + } # endif - count += outptr - tmpbuf; + count += outptr - tmpbuf; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ @@ -104,7 +104,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - return -1; + return -1; count += outptr - tmpbuf; } # endif @@ -123,10 +123,10 @@ { result = (char *) malloc (length); if (result == NULL) - { - errno = ENOMEM; - return -1; - } + { + errno = ENOMEM; + return -1; + } } /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ @@ -145,27 +145,27 @@ while (insize > 0) { - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else - goto fail; - } + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else + goto fail; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - goto fail; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + goto fail; + } # endif } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ @@ -175,7 +175,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - goto fail; + goto fail; } # endif if (outsize != 0) @@ -191,9 +191,9 @@ { if (result != *resultp) { - int saved_errno = errno; - free (result); - errno = saved_errno; + int saved_errno = errno; + free (result); + errno = saved_errno; } return -1; } @@ -224,7 +224,7 @@ if (retval < 0) { if (result != NULL) - abort (); + abort (); return NULL; } @@ -233,8 +233,7 @@ (result != NULL ? realloc (result, length + 1) : malloc (length + 1)); if (final_result == NULL) { - if (result != NULL) - free (result); + free (result); errno = ENOMEM; return NULL; } @@ -285,81 +284,81 @@ for (;;) { - /* Here inptr + inbytes_remaining = src + strlen (src), - outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytes_remaining, - &outptr, &outbytes_remaining); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + /* Here inptr + inbytes_remaining = src + strlen (src), + outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &inbytes_remaining, + &outptr, &outbytes_remaining); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) for (;;) { - /* Here outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); + /* Here outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } # endif @@ -375,7 +374,7 @@ char *smaller_result = (char *) realloc (result, length); if (smaller_result != NULL) - result = smaller_result; + result = smaller_result; } return result; @@ -401,7 +400,7 @@ char *result = strdup (src); if (result == NULL) - errno = ENOMEM; + errno = ENOMEM; return result; } else @@ -413,44 +412,44 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (c_strcasecmp (from_codeset, "EUC-KR") == 0 - || c_strcasecmp (to_codeset, "EUC-KR") == 0) - { - errno = EINVAL; - return NULL; - } + || c_strcasecmp (to_codeset, "EUC-KR") == 0) + { + errno = EINVAL; + return NULL; + } # endif cd = iconv_open (to_codeset, from_codeset); if (cd == (iconv_t) -1) - return NULL; + return NULL; result = str_cd_iconv (src, cd); if (result == NULL) - { - /* Close cd, but preserve the errno from str_cd_iconv. */ - int saved_errno = errno; - iconv_close (cd); - errno = saved_errno; - } + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconv_close (cd); + errno = saved_errno; + } else - { - if (iconv_close (cd) < 0) - { - /* Return NULL, but free the allocated memory, and while doing - that, preserve the errno from iconv_close. */ - int saved_errno = errno; - free (result); - errno = saved_errno; - return NULL; - } - } + { + if (iconv_close (cd) < 0) + { + /* Return NULL, but free the allocated memory, and while doing + that, preserve the errno from iconv_close. */ + int saved_errno = errno; + free (result); + errno = saved_errno; + return NULL; + } + } return result; #else /* This is a different error code than if iconv_open existed but didn't - support from_codeset and to_codeset, so that the caller can emit - an error message such as - "iconv() is not supported. Installing GNU libiconv and - then reinstalling this package would fix this." */ + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ errno = ENOSYS; return NULL; #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconveha.c gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveha.c --- gettext-0.17/gettext-tools/gnulib-lib/striconveha.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveha.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,348 @@ +/* Character set conversion with error handling and autodetection. + Copyright (C) 2002, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "striconveha.h" + +#include +#include +#include + +#include "malloca.h" +#include "c-strcase.h" +#include "striconveh.h" + +#define SIZEOF(a) (sizeof(a)/sizeof(a[0])) + + +/* Autodetection list. */ + +struct autodetect_alias +{ + struct autodetect_alias *next; + const char *name; + const char * const *encodings_to_try; +}; + +static const char * const autodetect_utf8_try[] = +{ + /* Try UTF-8 first. There are very few ISO-8859-1 inputs that would + be valid UTF-8, but many UTF-8 inputs are valid ISO-8859-1. */ + "UTF-8", "ISO-8859-1", + NULL +}; +static const char * const autodetect_jp_try[] = +{ + /* Try 7-bit encoding first. If the input contains bytes >= 0x80, + it will fail. + Try EUC-JP next. Short SHIFT_JIS inputs may come out wrong. This + is unavoidable. People will condemn SHIFT_JIS. + If we tried SHIFT_JIS first, then some short EUC-JP inputs would + come out wrong, and people would condemn EUC-JP and Unix, which + would not be good. + Finally try SHIFT_JIS. */ + "ISO-2022-JP-2", "EUC-JP", "SHIFT_JIS", + NULL +}; +static const char * const autodetect_kr_try[] = +{ + /* Try 7-bit encoding first. If the input contains bytes >= 0x80, + it will fail. + Finally try EUC-KR. */ + "ISO-2022-KR", "EUC-KR", + NULL +}; + +static struct autodetect_alias autodetect_predefined[] = +{ + { &autodetect_predefined[1], "autodetect_utf8", autodetect_utf8_try }, + { &autodetect_predefined[2], "autodetect_jp", autodetect_jp_try }, + { NULL, "autodetect_kr", autodetect_kr_try } +}; + +static struct autodetect_alias *autodetect_list = &autodetect_predefined[0]; +static struct autodetect_alias **autodetect_list_end = + &autodetect_predefined[SIZEOF(autodetect_predefined)-1].next; + +int +uniconv_register_autodetect (const char *name, + const char * const *try_in_order) +{ + size_t namelen; + size_t listlen; + size_t memneed; + size_t i; + char *memory; + struct autodetect_alias *new_alias; + char *new_name; + const char **new_try_in_order; + + /* The TRY_IN_ORDER list must not be empty. */ + if (try_in_order[0] == NULL) + { + errno = EINVAL; + return -1; + } + + /* We must deep-copy NAME and TRY_IN_ORDER, because they may be allocated + with dynamic extent. */ + namelen = strlen (name) + 1; + memneed = sizeof (struct autodetect_alias) + namelen + sizeof (char *); + for (i = 0; try_in_order[i] != NULL; i++) + memneed += sizeof (char *) + strlen (try_in_order[i]) + 1; + listlen = i; + + memory = (char *) malloc (memneed); + if (memory != NULL) + { + new_alias = (struct autodetect_alias *) memory; + memory += sizeof (struct autodetect_alias); + + new_try_in_order = (const char **) memory; + memory += (listlen + 1) * sizeof (char *); + + new_name = (char *) memory; + memcpy (new_name, name, namelen); + memory += namelen; + + for (i = 0; i < listlen; i++) + { + size_t len = strlen (try_in_order[i]) + 1; + memcpy (memory, try_in_order[i], len); + new_try_in_order[i] = (const char *) memory; + memory += len; + } + new_try_in_order[i] = NULL; + + /* Now insert the new alias. */ + new_alias->name = new_name; + new_alias->encodings_to_try = new_try_in_order; + new_alias->next = NULL; + /* FIXME: Not multithread-safe. */ + *autodetect_list_end = new_alias; + autodetect_list_end = &new_alias->next; + return 0; + } + else + { + errno = ENOMEM; + return -1; + } +} + +/* Like mem_iconveha, except no handling of transliteration. */ +static int +mem_iconveha_notranslit (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + int retval = mem_iconveh (src, srclen, from_codeset, to_codeset, handler, + offsets, resultp, lengthp); + if (retval >= 0 || errno != EINVAL) + return retval; + else + { + struct autodetect_alias *alias; + + /* Unsupported from_codeset or to_codeset. Check whether the caller + requested autodetection. */ + for (alias = autodetect_list; alias != NULL; alias = alias->next) + if (strcmp (from_codeset, alias->name) == 0) + { + const char * const *encodings; + + if (handler != iconveh_error) + { + /* First try all encodings without any forgiving. */ + encodings = alias->encodings_to_try; + do + { + retval = mem_iconveha_notranslit (src, srclen, + *encodings, to_codeset, + iconveh_error, offsets, + resultp, lengthp); + if (!(retval < 0 && errno == EILSEQ)) + return retval; + encodings++; + } + while (*encodings != NULL); + } + + encodings = alias->encodings_to_try; + do + { + retval = mem_iconveha_notranslit (src, srclen, + *encodings, to_codeset, + handler, offsets, + resultp, lengthp); + if (!(retval < 0 && errno == EILSEQ)) + return retval; + encodings++; + } + while (*encodings != NULL); + + /* Return the last call's result. */ + return -1; + } + + /* It wasn't an autodetection name. */ + errno = EINVAL; + return -1; + } +} + +int +mem_iconveha (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + if (srclen == 0) + { + /* Nothing to convert. */ + *lengthp = 0; + return 0; + } + + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, + we want to use transliteration. */ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + if (transliterate) + { + int retval; + size_t len = strlen (to_codeset); + char *to_codeset_suffixed = (char *) malloca (len + 10 + 1); + memcpy (to_codeset_suffixed, to_codeset, len); + memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); + + retval = mem_iconveha_notranslit (src, srclen, + from_codeset, to_codeset_suffixed, + handler, offsets, resultp, lengthp); + + freea (to_codeset_suffixed); + + return retval; + } + else +#endif + return mem_iconveha_notranslit (src, srclen, + from_codeset, to_codeset, + handler, offsets, resultp, lengthp); +} + +/* Like str_iconveha, except no handling of transliteration. */ +static char * +str_iconveha_notranslit (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler) +{ + char *result = str_iconveh (src, from_codeset, to_codeset, handler); + + if (result != NULL || errno != EINVAL) + return result; + else + { + struct autodetect_alias *alias; + + /* Unsupported from_codeset or to_codeset. Check whether the caller + requested autodetection. */ + for (alias = autodetect_list; alias != NULL; alias = alias->next) + if (strcmp (from_codeset, alias->name) == 0) + { + const char * const *encodings; + + if (handler != iconveh_error) + { + /* First try all encodings without any forgiving. */ + encodings = alias->encodings_to_try; + do + { + result = str_iconveha_notranslit (src, + *encodings, to_codeset, + iconveh_error); + if (!(result == NULL && errno == EILSEQ)) + return result; + encodings++; + } + while (*encodings != NULL); + } + + encodings = alias->encodings_to_try; + do + { + result = str_iconveha_notranslit (src, + *encodings, to_codeset, + handler); + if (!(result == NULL && errno == EILSEQ)) + return result; + encodings++; + } + while (*encodings != NULL); + + /* Return the last call's result. */ + return NULL; + } + + /* It wasn't an autodetection name. */ + errno = EINVAL; + return NULL; + } +} + +char * +str_iconveha (const char *src, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler) +{ + if (*src == '\0' || c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result = strdup (src); + + if (result == NULL) + errno = ENOMEM; + return result; + } + + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, + we want to use transliteration. */ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + if (transliterate) + { + char *result; + size_t len = strlen (to_codeset); + char *to_codeset_suffixed = (char *) malloca (len + 10 + 1); + memcpy (to_codeset_suffixed, to_codeset, len); + memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); + + result = str_iconveha_notranslit (src, from_codeset, to_codeset_suffixed, + handler); + + freea (to_codeset_suffixed); + + return result; + } + else +#endif + return str_iconveha_notranslit (src, from_codeset, to_codeset, handler); +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconveha.h gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveha.h --- gettext-0.17/gettext-tools/gnulib-lib/striconveha.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveha.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,95 @@ +/* Character set conversion with error handling and autodetection. + Copyright (C) 2002, 2005, 2007-2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _STRICONVEHA_H +#define _STRICONVEHA_H + +#include +#include + +#include "iconveh.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + The "from" encoding can also be a name defined for autodetection. + If TRANSLITERATE is true, transliteration will attempted to avoid conversion + errors, for iconv implementations that support this. Usually you'll choose + TRANSLITERATE = true if HANDLER != iconveh_error. + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_iconveha (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + Both the "from" and the "to" encoding must use a single NUL byte at the + end of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + The "from" encoding can also be a name defined for autodetection. + If TRANSLITERATE is true, transliteration will attempted to avoid conversion + errors, for iconv implementations that support this. Usually you'll choose + TRANSLITERATE = true if HANDLER != iconveh_error. + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_iconveha (const char *src, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler); + + +/* In the above, FROM_CODESET can also be one of the following values: + "autodetect_utf8" supports ISO-8859-1 and UTF-8 + "autodetect_jp" supports EUC-JP, ISO-2022-JP-2 and SHIFT_JIS + "autodetect_kr" supports EUC-KR and ISO-2022-KR + More names can be defined for autodetection. */ + +/* Registers an encoding name for autodetection. + TRY_IN_ORDER is a NULL terminated list of encodings to be tried. + Returns 0 upon success, or -1 (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern int + uniconv_register_autodetect (const char *name, + const char * const *try_in_order); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _STRICONVEHA_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconveh.c gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveh.c --- gettext-0.17/gettext-tools/gnulib-lib/striconveh.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveh.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,1187 @@ +/* Character set conversion with error handling. + Copyright (C) 2001-2010 Free Software Foundation, Inc. + Written by Bruno Haible and Simon Josefsson. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "striconveh.h" + +#include +#include +#include +#include + +#if HAVE_ICONV +# include +# include "unistr.h" +#endif + +#include "c-strcase.h" +#include "c-strcaseeq.h" + +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif + + +#if HAVE_ICONV + +/* The caller must provide an iconveh_t, not just an iconv_t, because when a + conversion error occurs, we may have to determine the Unicode representation + of the inconvertible character. */ + +int +iconveh_open (const char *to_codeset, const char *from_codeset, iconveh_t *cdp) +{ + iconv_t cd; + iconv_t cd1; + iconv_t cd2; + + /* Avoid glibc-2.1 bug with EUC-KR. */ +# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION + if (c_strcasecmp (from_codeset, "EUC-KR") == 0 + || c_strcasecmp (to_codeset, "EUC-KR") == 0) + { + errno = EINVAL; + return -1; + } +# endif + + cd = iconv_open (to_codeset, from_codeset); + + if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0)) + cd1 = (iconv_t)(-1); + else + { + cd1 = iconv_open ("UTF-8", from_codeset); + if (cd1 == (iconv_t)(-1)) + { + int saved_errno = errno; + if (cd != (iconv_t)(-1)) + iconv_close (cdp->cd); + errno = saved_errno; + return -1; + } + } + + if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0) +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + || c_strcasecmp (to_codeset, "UTF-8//TRANSLIT") == 0 +# endif + ) + cd2 = (iconv_t)(-1); + else + { + cd2 = iconv_open (to_codeset, "UTF-8"); + if (cd2 == (iconv_t)(-1)) + { + int saved_errno = errno; + if (cd1 != (iconv_t)(-1)) + iconv_close (cd1); + if (cd != (iconv_t)(-1)) + iconv_close (cd); + errno = saved_errno; + return -1; + } + } + + cdp->cd = cd; + cdp->cd1 = cd1; + cdp->cd2 = cd2; + return 0; +} + +int +iconveh_close (const iconveh_t *cd) +{ + if (cd->cd2 != (iconv_t)(-1) && iconv_close (cd->cd2) < 0) + { + /* Return -1, but preserve the errno from iconv_close. */ + int saved_errno = errno; + if (cd->cd1 != (iconv_t)(-1)) + iconv_close (cd->cd1); + if (cd->cd != (iconv_t)(-1)) + iconv_close (cd->cd); + errno = saved_errno; + return -1; + } + if (cd->cd1 != (iconv_t)(-1) && iconv_close (cd->cd1) < 0) + { + /* Return -1, but preserve the errno from iconv_close. */ + int saved_errno = errno; + if (cd->cd != (iconv_t)(-1)) + iconv_close (cd->cd); + errno = saved_errno; + return -1; + } + if (cd->cd != (iconv_t)(-1) && iconv_close (cd->cd) < 0) + return -1; + return 0; +} + +/* iconv_carefully is like iconv, except that it stops as soon as it encounters + a conversion error, and it returns in *INCREMENTED a boolean telling whether + it has incremented the input pointers past the error location. */ +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ +/* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ +static size_t +iconv_carefully (iconv_t cd, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr = *inbuf; + const char *inptr_end = inptr + *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + const char *inptr_before; + size_t res; + + do + { + size_t insize; + + inptr_before = inptr; + res = (size_t)(-1); + + for (insize = 1; inptr + insize <= inptr_end; insize++) + { + res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* iconv can eat up a shift sequence but give EINVAL while attempting + to convert the first character. E.g. libiconv does this. */ + if (inptr > inptr_before) + { + res = 0; + break; + } + } + + if (res == 0) + { + *outbuf = outptr; + *outbytesleft = outsize; + } + } + while (res == 0 && inptr < inptr_end); + + *inbuf = inptr; + *inbytesleft = inptr_end - inptr; + if (res != (size_t)(-1) && res > 0) + { + /* iconv() has already incremented INPTR. We cannot go back to a + previous INPTR, otherwise the state inside CD would become invalid, + if FROM_CODESET is a stateful encoding. So, tell the caller that + *INBUF has already been incremented. */ + *incremented = (inptr > inptr_before); + errno = EILSEQ; + return (size_t)(-1); + } + else + { + *incremented = false; + return res; + } +} +# else +# define iconv_carefully(cd, inbuf, inbytesleft, outbuf, outbytesleft, incremented) \ + (*(incremented) = false, \ + iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft)) +# endif + +/* iconv_carefully_1 is like iconv_carefully, except that it stops after + converting one character or one shift sequence. */ +static size_t +iconv_carefully_1 (iconv_t cd, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr_before = *inbuf; + const char *inptr = inptr_before; + const char *inptr_end = inptr_before + *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + size_t res = (size_t)(-1); + size_t insize; + + for (insize = 1; inptr_before + insize <= inptr_end; insize++) + { + inptr = inptr_before; + res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* iconv can eat up a shift sequence but give EINVAL while attempting + to convert the first character. E.g. libiconv does this. */ + if (inptr > inptr_before) + { + res = 0; + break; + } + } + + *inbuf = inptr; + *inbytesleft = inptr_end - inptr; +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + if (res != (size_t)(-1) && res > 0) + { + /* iconv() has already incremented INPTR. We cannot go back to a + previous INPTR, otherwise the state inside CD would become invalid, + if FROM_CODESET is a stateful encoding. So, tell the caller that + *INBUF has already been incremented. */ + *incremented = (inptr > inptr_before); + errno = EILSEQ; + return (size_t)(-1); + } +# endif + + if (res != (size_t)(-1)) + { + *outbuf = outptr; + *outbytesleft = outsize; + } + *incremented = false; + return res; +} + +/* utf8conv_carefully is like iconv, except that + - it converts from UTF-8 to UTF-8, + - it stops as soon as it encounters a conversion error, and it returns + in *INCREMENTED a boolean telling whether it has incremented the input + pointers past the error location, + - if one_character_only is true, it stops after converting one + character. */ +static size_t +utf8conv_carefully (bool one_character_only, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr = *inbuf; + size_t insize = *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + size_t res; + + res = 0; + do + { + ucs4_t uc; + int n; + int m; + + n = u8_mbtoucr (&uc, (const uint8_t *) inptr, insize); + if (n < 0) + { + errno = (n == -2 ? EINVAL : EILSEQ); + n = u8_mbtouc (&uc, (const uint8_t *) inptr, insize); + inptr += n; + insize -= n; + res = (size_t)(-1); + *incremented = true; + break; + } + if (outsize == 0) + { + errno = E2BIG; + res = (size_t)(-1); + *incremented = false; + break; + } + m = u8_uctomb ((uint8_t *) outptr, uc, outsize); + if (m == -2) + { + errno = E2BIG; + res = (size_t)(-1); + *incremented = false; + break; + } + inptr += n; + insize -= n; + if (m == -1) + { + errno = EILSEQ; + res = (size_t)(-1); + *incremented = true; + break; + } + outptr += m; + outsize -= m; + } + while (!one_character_only && insize > 0); + + *inbuf = inptr; + *inbytesleft = insize; + *outbuf = outptr; + *outbytesleft = outsize; + return res; +} + +static int +mem_cd_iconveh_internal (const char *src, size_t srclen, + iconv_t cd, iconv_t cd1, iconv_t cd2, + enum iconv_ilseq_handler handler, + size_t extra_alloc, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + /* When a conversion error occurs, we cannot start using CD1 and CD2 at + this point: FROM_CODESET may be a stateful encoding like ISO-2022-KR. + Instead, we have to start afresh from the beginning of SRC. */ + /* Use a temporary buffer, so that for small strings, a single malloc() + call will be sufficient. */ +# define tmpbufsize 4096 + /* The alignment is needed when converting e.g. to glibc's WCHAR_T or + libiconv's UCS-4-INTERNAL encoding. */ + union { unsigned int align; char buf[tmpbufsize]; } tmp; +# define tmpbuf tmp.buf + + char *initial_result; + char *result; + size_t allocated; + size_t length; + size_t last_length = (size_t)(-1); /* only needed if offsets != NULL */ + + if (*resultp != NULL && *lengthp >= sizeof (tmpbuf)) + { + initial_result = *resultp; + allocated = *lengthp; + } + else + { + initial_result = tmpbuf; + allocated = sizeof (tmpbuf); + } + result = initial_result; + + /* Test whether a direct conversion is possible at all. */ + if (cd == (iconv_t)(-1)) + goto indirectly; + + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; i++) + offsets[i] = (size_t)(-1); + + last_length = (size_t)(-1); + } + length = 0; + + /* First, try a direct conversion, and see whether a conversion error + occurs at all. */ + { + const char *inptr = src; + size_t insize = srclen; + + /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) + /* Set to the initial state. */ + iconv (cd, NULL, NULL, NULL, NULL); +# endif + + while (insize > 0) + { + char *outptr = result + length; + size_t outsize = allocated - extra_alloc - length; + bool incremented; + size_t res; + bool grow; + + if (offsets != NULL) + { + if (length != last_length) /* ensure that offset[] be increasing */ + { + offsets[inptr - src] = length; + last_length = length; + } + res = iconv_carefully_1 (cd, + &inptr, &insize, + &outptr, &outsize, + &incremented); + } + else + /* Use iconv_carefully instead of iconv here, because: + - If TO_CODESET is UTF-8, we can do the error handling in this + loop, no need for a second loop, + - With iconv() implementations other than GNU libiconv and GNU + libc, if we use iconv() in a big swoop, checking for an E2BIG + return, we lose the number of irreversible conversions. */ + res = iconv_carefully (cd, + &inptr, &insize, + &outptr, &outsize, + &incremented); + + length = outptr - result; + grow = (length + extra_alloc > allocated / 2); + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + grow = true; + else if (errno == EINVAL) + break; + else if (errno == EILSEQ && handler != iconveh_error) + { + if (cd2 == (iconv_t)(-1)) + { + /* TO_CODESET is UTF-8. */ + /* Error handling can produce up to 1 byte of output. */ + if (length + 1 + extra_alloc > allocated) + { + char *memory; + + allocated = 2 * allocated; + if (length + 1 + extra_alloc > allocated) + abort (); + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + grow = false; + } + /* The input is invalid in FROM_CODESET. Eat up one byte + and emit a question mark. */ + if (!incremented) + { + if (insize == 0) + abort (); + inptr++; + insize--; + } + result[length] = '?'; + length++; + } + else + goto indirectly; + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + if (insize == 0) + break; + if (grow) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + } + } + + /* Now get the conversion state back to the initial state. + But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +#if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + for (;;) + { + char *outptr = result + length; + size_t outsize = allocated - extra_alloc - length; + size_t res; + + res = iconv (cd, NULL, NULL, &outptr, &outsize); + length = outptr - result; + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + else + break; + } +#endif + + /* The direct conversion succeeded. */ + goto done; + + indirectly: + /* The direct conversion failed. + Use a conversion through UTF-8. */ + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; i++) + offsets[i] = (size_t)(-1); + + last_length = (size_t)(-1); + } + length = 0; + { + const bool slowly = (offsets != NULL || handler == iconveh_error); +# define utf8bufsize 4096 /* may also be smaller or larger than tmpbufsize */ + char utf8buf[utf8bufsize + 1]; + size_t utf8len = 0; + const char *in1ptr = src; + size_t in1size = srclen; + bool do_final_flush1 = true; + bool do_final_flush2 = true; + + /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) + /* Set to the initial state. */ + if (cd1 != (iconv_t)(-1)) + iconv (cd1, NULL, NULL, NULL, NULL); + if (cd2 != (iconv_t)(-1)) + iconv (cd2, NULL, NULL, NULL, NULL); +# endif + + while (in1size > 0 || do_final_flush1 || utf8len > 0 || do_final_flush2) + { + char *out1ptr = utf8buf + utf8len; + size_t out1size = utf8bufsize - utf8len; + bool incremented1; + size_t res1; + int errno1; + + /* Conversion step 1: from FROM_CODESET to UTF-8. */ + if (in1size > 0) + { + if (offsets != NULL + && length != last_length) /* ensure that offset[] be increasing */ + { + offsets[in1ptr - src] = length; + last_length = length; + } + if (cd1 != (iconv_t)(-1)) + { + if (slowly) + res1 = iconv_carefully_1 (cd1, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + else + res1 = iconv_carefully (cd1, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + } + else + { + /* FROM_CODESET is UTF-8. */ + res1 = utf8conv_carefully (slowly, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + } + } + else if (do_final_flush1) + { + /* Now get the conversion state of CD1 back to the initial state. + But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + if (cd1 != (iconv_t)(-1)) + res1 = iconv (cd1, NULL, NULL, &out1ptr, &out1size); + else +# endif + res1 = 0; + do_final_flush1 = false; + incremented1 = true; + } + else + { + res1 = 0; + incremented1 = true; + } + if (res1 == (size_t)(-1) + && !(errno == E2BIG || errno == EINVAL || errno == EILSEQ)) + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + if (res1 == (size_t)(-1) + && errno == EILSEQ && handler != iconveh_error) + { + /* The input is invalid in FROM_CODESET. Eat up one byte and + emit a question mark. Room for the question mark was allocated + at the end of utf8buf. */ + if (!incremented1) + { + if (in1size == 0) + abort (); + in1ptr++; + in1size--; + } + *out1ptr++ = '?'; + res1 = 0; + } + errno1 = errno; + utf8len = out1ptr - utf8buf; + + if (offsets != NULL + || in1size == 0 + || utf8len > utf8bufsize / 2 + || (res1 == (size_t)(-1) && errno1 == E2BIG)) + { + /* Conversion step 2: from UTF-8 to TO_CODESET. */ + const char *in2ptr = utf8buf; + size_t in2size = utf8len; + + while (in2size > 0 + || (in1size == 0 && !do_final_flush1 && do_final_flush2)) + { + char *out2ptr = result + length; + size_t out2size = allocated - extra_alloc - length; + bool incremented2; + size_t res2; + bool grow; + + if (in2size > 0) + { + if (cd2 != (iconv_t)(-1)) + res2 = iconv_carefully (cd2, + &in2ptr, &in2size, + &out2ptr, &out2size, + &incremented2); + else + /* TO_CODESET is UTF-8. */ + res2 = utf8conv_carefully (false, + &in2ptr, &in2size, + &out2ptr, &out2size, + &incremented2); + } + else /* in1size == 0 && !do_final_flush1 + && in2size == 0 && do_final_flush2 */ + { + /* Now get the conversion state of CD1 back to the initial + state. But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + if (cd2 != (iconv_t)(-1)) + res2 = iconv (cd2, NULL, NULL, &out2ptr, &out2size); + else +# endif + res2 = 0; + do_final_flush2 = false; + incremented2 = true; + } + + length = out2ptr - result; + grow = (length + extra_alloc > allocated / 2); + if (res2 == (size_t)(-1)) + { + if (errno == E2BIG) + grow = true; + else if (errno == EINVAL) + break; + else if (errno == EILSEQ && handler != iconveh_error) + { + /* Error handling can produce up to 10 bytes of ASCII + output. But TO_CODESET may be UCS-2, UTF-16 or + UCS-4, so use CD2 here as well. */ + char scratchbuf[10]; + size_t scratchlen; + ucs4_t uc; + const char *inptr; + size_t insize; + size_t res; + + if (incremented2) + { + if (u8_prev (&uc, (const uint8_t *) in2ptr, + (const uint8_t *) utf8buf) + == NULL) + abort (); + } + else + { + int n; + if (in2size == 0) + abort (); + n = u8_mbtouc_unsafe (&uc, (const uint8_t *) in2ptr, + in2size); + in2ptr += n; + in2size -= n; + } + + if (handler == iconveh_escape_sequence) + { + static char hex[16] = "0123456789ABCDEF"; + scratchlen = 0; + scratchbuf[scratchlen++] = '\\'; + if (uc < 0x10000) + scratchbuf[scratchlen++] = 'u'; + else + { + scratchbuf[scratchlen++] = 'U'; + scratchbuf[scratchlen++] = hex[(uc>>28) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>24) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>20) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>16) & 15]; + } + scratchbuf[scratchlen++] = hex[(uc>>12) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>8) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>4) & 15]; + scratchbuf[scratchlen++] = hex[uc & 15]; + } + else + { + scratchbuf[0] = '?'; + scratchlen = 1; + } + + inptr = scratchbuf; + insize = scratchlen; + if (cd2 != (iconv_t)(-1)) + res = iconv (cd2, + (ICONV_CONST char **) &inptr, &insize, + &out2ptr, &out2size); + else + { + /* TO_CODESET is UTF-8. */ + if (out2size >= insize) + { + memcpy (out2ptr, inptr, insize); + out2ptr += insize; + out2size -= insize; + inptr += insize; + insize = 0; + res = 0; + } + else + { + errno = E2BIG; + res = (size_t)(-1); + } + } + length = out2ptr - result; + if (res == (size_t)(-1) && errno == E2BIG) + { + char *memory; + + allocated = 2 * allocated; + if (length + 1 + extra_alloc > allocated) + abort (); + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + grow = false; + + out2ptr = result + length; + out2size = allocated - extra_alloc - length; + if (cd2 != (iconv_t)(-1)) + res = iconv (cd2, + (ICONV_CONST char **) &inptr, + &insize, + &out2ptr, &out2size); + else + { + /* TO_CODESET is UTF-8. */ + if (!(out2size >= insize)) + abort (); + memcpy (out2ptr, inptr, insize); + out2ptr += insize; + out2size -= insize; + inptr += insize; + insize = 0; + res = 0; + } + length = out2ptr - result; + } +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot + convert. + Only GNU libiconv and GNU libc are known to prefer + to fail rather than doing a lossy conversion. */ + if (res != (size_t)(-1) && res > 0) + { + errno = EILSEQ; + res = (size_t)(-1); + } +# endif + if (res == (size_t)(-1)) + { + /* Failure converting the ASCII replacement. */ + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + if (!(in2size > 0 + || (in1size == 0 && !do_final_flush1 && do_final_flush2))) + break; + if (grow) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + } + + /* Move the remaining bytes to the beginning of utf8buf. */ + if (in2size > 0) + memmove (utf8buf, in2ptr, in2size); + utf8len = in2size; + } + + if (res1 == (size_t)(-1)) + { + if (errno1 == EINVAL) + in1size = 0; + else if (errno1 == EILSEQ) + { + if (result != initial_result) + free (result); + errno = errno1; + return -1; + } + } + } +# undef utf8bufsize + } + + done: + /* Now the final memory allocation. */ + if (result == tmpbuf) + { + size_t memsize = length + extra_alloc; + char *memory; + + memory = (char *) malloc (memsize > 0 ? memsize : 1); + if (memory != NULL) + { + memcpy (memory, tmpbuf, length); + result = memory; + } + else + { + errno = ENOMEM; + return -1; + } + } + else if (result != *resultp && length + extra_alloc < allocated) + { + /* Shrink the allocated memory if possible. */ + size_t memsize = length + extra_alloc; + char *memory; + + memory = (char *) realloc (result, memsize > 0 ? memsize : 1); + if (memory != NULL) + result = memory; + } + *resultp = result; + *lengthp = length; + return 0; +# undef tmpbuf +# undef tmpbufsize +} + +int +mem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + return mem_cd_iconveh_internal (src, srclen, cd->cd, cd->cd1, cd->cd2, + handler, 0, offsets, resultp, lengthp); +} + +char * +str_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler) +{ + /* For most encodings, a trailing NUL byte in the input will be converted + to a trailing NUL byte in the output. But not for UTF-7. So that this + function is usable for UTF-7, we have to exclude the NUL byte from the + conversion and add it by hand afterwards. */ + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh_internal (src, strlen (src), + cd->cd, cd->cd1, cd->cd2, handler, 1, + NULL, &result, &length); + + if (retval < 0) + { + if (result != NULL) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return NULL; + } + + /* Add the terminating NUL byte. */ + result[length] = '\0'; + + return result; +} + +#endif + +int +mem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + if (srclen == 0) + { + /* Nothing to convert. */ + *lengthp = 0; + return 0; + } + else if (offsets == NULL && c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result; + + if (*resultp != NULL && *lengthp >= srclen) + result = *resultp; + else + { + result = (char *) malloc (srclen); + if (result == NULL) + { + errno = ENOMEM; + return -1; + } + } + memcpy (result, src, srclen); + *resultp = result; + *lengthp = srclen; + return 0; + } + else + { +#if HAVE_ICONV + iconveh_t cd; + char *result; + size_t length; + int retval; + + if (iconveh_open (to_codeset, from_codeset, &cd) < 0) + return -1; + + result = *resultp; + length = *lengthp; + retval = mem_cd_iconveh (src, srclen, &cd, handler, offsets, + &result, &length); + + if (retval < 0) + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconveh_close (&cd); + errno = saved_errno; + } + else + { + if (iconveh_close (&cd) < 0) + { + /* Return -1, but free the allocated memory, and while doing + that, preserve the errno from iconveh_close. */ + int saved_errno = errno; + if (result != *resultp && result != NULL) + free (result); + errno = saved_errno; + return -1; + } + *resultp = result; + *lengthp = length; + } + return retval; +#else + /* This is a different error code than if iconv_open existed but didn't + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ + errno = ENOSYS; + return -1; +#endif + } +} + +char * +str_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler) +{ + if (*src == '\0' || c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result = strdup (src); + + if (result == NULL) + errno = ENOMEM; + return result; + } + else + { +#if HAVE_ICONV + iconveh_t cd; + char *result; + + if (iconveh_open (to_codeset, from_codeset, &cd) < 0) + return NULL; + + result = str_cd_iconveh (src, &cd, handler); + + if (result == NULL) + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconveh_close (&cd); + errno = saved_errno; + } + else + { + if (iconveh_close (&cd) < 0) + { + /* Return NULL, but free the allocated memory, and while doing + that, preserve the errno from iconveh_close. */ + int saved_errno = errno; + free (result); + errno = saved_errno; + return NULL; + } + } + return result; +#else + /* This is a different error code than if iconv_open existed but didn't + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ + errno = ENOSYS; + return NULL; +#endif + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconveh.h gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveh.h --- gettext-0.17/gettext-tools/gnulib-lib/striconveh.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconveh.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,140 @@ +/* Character set conversion with error handling. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible and Simon Josefsson. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _STRICONVEH_H +#define _STRICONVEH_H + +#include +#if HAVE_ICONV +#include +#endif + +#include "iconveh.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +#if HAVE_ICONV + +/* An conversion descriptor for use by the iconveh functions. */ +typedef struct + { + /* Conversion descriptor from FROM_CODESET to TO_CODESET, or (iconv_t)(-1) + if the system does not support a direct conversion from FROM_CODESET to + TO_CODESET. */ + iconv_t cd; + /* Conversion descriptor from FROM_CODESET to UTF-8 (or (iconv_t)(-1) if + FROM_CODESET is UTF-8). */ + iconv_t cd1; + /* Conversion descriptor from UTF-8 to TO_CODESET (or (iconv_t)(-1) if + TO_CODESET is UTF-8). */ + iconv_t cd2; + } + iconveh_t; + +/* Open a conversion descriptor for use by the iconveh functions. + If successful, fills *CDP and returns 0. Upon failure, return -1 with errno + set. */ +extern int + iconveh_open (const char *to_codeset, const char *from_codeset, + iconveh_t *cdp); + +/* Close a conversion descriptor created by iconveh_open(). + Return value: 0 if successful, otherwise -1 and errno set. */ +extern int + iconveh_close (const iconveh_t *cd); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + Both the "from" and the "to" encoding must use a single NUL byte at the end + of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler); + +#endif + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + Both the "from" and the "to" encoding must use a single NUL byte at the + end of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _STRICONVEH_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/striconv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/striconv.h --- gettext-0.17/gettext-tools/gnulib-lib/striconv.h 2007-01-27 03:22:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/striconv.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -65,7 +65,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * str_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/string.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/string.in.h --- gettext-0.17/gettext-tools/gnulib-lib/string.in.h 2007-10-17 22:35:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/string.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 1995-1996, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,202 +18,384 @@ #ifndef _GL_STRING_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #ifndef _GL_STRING_H #define _GL_STRING_H +/* NetBSD 5.0 mis-defines NULL. */ +#include -/* The definition of GL_LINK_WARNING is copied here. */ +/* MirBSD defines mbslen as a macro. */ +#if @GNULIB_MBSLEN@ && defined __MirBSD__ +# include +#endif + +#ifndef __attribute__ +/* This feature is available in gcc versions 2.5 and later. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) +# define __attribute__(Spec) /* empty */ +# endif +/* The attribute __pure__ was added in gcc 2.96. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) +# define __pure__ /* empty */ +# endif +#endif -#ifdef __cplusplus -extern "C" { +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Return the first instance of C within N bytes of S, or NULL. */ +#if @GNULIB_MEMCHR@ +# if @REPLACE_MEMCHR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memchr rpl_memchr +# endif +_GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); +# else +# if ! @HAVE_MEMCHR@ +_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const void * std::memchr (const void *, int, size_t); } + extern "C++" { void * std::memchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memchr, + void *, (void const *__s, int __c, size_t __n), + void const *, (void const *__s, int __c, size_t __n)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); +_GL_CXXALIASWARN1 (memchr, void const *, + (void const *__s, int __c, size_t __n)); +# else +_GL_CXXALIASWARN (memchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef memchr +/* Assume memchr is always declared. */ +_GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " + "use gnulib module memchr for portability" ); #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ -# if ! @HAVE_DECL_MEMMEM@ -extern void *memmem (void const *__haystack, size_t __haystack_len, - void const *__needle, size_t __needle_len); +# if @REPLACE_MEMMEM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memmem rpl_memmem +# endif +_GL_FUNCDECL_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +_GL_CXXALIAS_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); +# else +# if ! @HAVE_DECL_MEMMEM@ +_GL_FUNCDECL_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); # endif +_GL_CXXALIASWARN (memmem); #elif defined GNULIB_POSIXCHECK # undef memmem -# define memmem(a,al,b,bl) \ - (GL_LINK_WARNING ("memmem is unportable - " \ - "use gnulib module memmem for portability"), \ - memmem (a, al, b, bl)) +# if HAVE_RAW_DECL_MEMMEM +_GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " + "use gnulib module memmem-simple for portability, " + "and module memmem for speed" ); +# endif #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ -extern void *mempcpy (void *restrict __dest, void const *restrict __src, - size_t __n); -# endif +_GL_FUNCDECL_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n)); +_GL_CXXALIASWARN (mempcpy); #elif defined GNULIB_POSIXCHECK # undef mempcpy -# define mempcpy(a,b,n) \ - (GL_LINK_WARNING ("mempcpy is unportable - " \ - "use gnulib module mempcpy for portability"), \ - mempcpy (a, b, n)) +# if HAVE_RAW_DECL_MEMPCPY +_GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " + "use gnulib module mempcpy for portability"); +# endif #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ -extern void *memrchr (void const *, int, size_t); +_GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::memrchr (const void *, int, size_t); } + extern "C++" { void * std::memrchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memrchr, + void *, (void const *, int, size_t), + void const *, (void const *, int, size_t)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t)); +_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t)); +# else +_GL_CXXALIASWARN (memrchr); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr -# define memrchr(a,b,c) \ - (GL_LINK_WARNING ("memrchr is unportable - " \ - "use gnulib module memrchr for portability"), \ - memrchr (a, b, c)) +# if HAVE_RAW_DECL_MEMRCHR +_GL_WARN_ON_USE (memrchr, "memrchr is unportable - " + "use gnulib module memrchr for portability"); +# endif +#endif + +/* Find the first occurrence of C in S. More efficient than + memchr(S,C,N), at the expense of undefined behavior if C does not + occur within N bytes. */ +#if @GNULIB_RAWMEMCHR@ +# if ! @HAVE_RAWMEMCHR@ +_GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::rawmemchr (const void *, int); } + extern "C++" { void * std::rawmemchr (void *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (rawmemchr, + void *, (void const *__s, int __c_in), + void const *, (void const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in)); +_GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (rawmemchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef rawmemchr +# if HAVE_RAW_DECL_RAWMEMCHR +_GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " + "use gnulib module rawmemchr for portability"); +# endif #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ -extern char *stpcpy (char *restrict __dst, char const *restrict __src); -# endif +_GL_FUNCDECL_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src)); +_GL_CXXALIASWARN (stpcpy); #elif defined GNULIB_POSIXCHECK # undef stpcpy -# define stpcpy(a,b) \ - (GL_LINK_WARNING ("stpcpy is unportable - " \ - "use gnulib module stpcpy for portability"), \ - stpcpy (a, b)) +# if HAVE_RAW_DECL_STPCPY +_GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " + "use gnulib module stpcpy for portability"); +# endif #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ -# if ! @HAVE_STPNCPY@ -# define stpncpy gnu_stpncpy -extern char *stpncpy (char *restrict __dst, char const *restrict __src, - size_t __n); +# if @REPLACE_STPNCPY@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define stpncpy rpl_stpncpy +# endif +_GL_FUNCDECL_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); +# else +# if ! @HAVE_STPNCPY@ +_GL_FUNCDECL_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); # endif +_GL_CXXALIASWARN (stpncpy); #elif defined GNULIB_POSIXCHECK # undef stpncpy -# define stpncpy(a,b,n) \ - (GL_LINK_WARNING ("stpncpy is unportable - " \ - "use gnulib module stpncpy for portability"), \ - stpncpy (a, b, n)) -#endif - -/* Compare strings S1 and S2, ignoring case, returning less than, equal to or - greater than zero if S1 is lexicographically less than, equal to or greater - than S2. - Note: This function does not work in multibyte locales. */ -#if ! @HAVE_STRCASECMP@ -extern int strcasecmp (char const *s1, char const *s2); -#endif -#if defined GNULIB_POSIXCHECK -/* strcasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strcasecmp -# define strcasecmp(a,b) \ - (GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasecmp if you care about " \ - "internationalization, or use c_strcasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strcasecmp (a, b)) -#endif - -/* Compare no more than N bytes of strings S1 and S2, ignoring case, - returning less than, equal to or greater than zero if S1 is - lexicographically less than, equal to or greater than S2. - Note: This function cannot work correctly in multibyte locales. */ -#if ! @HAVE_DECL_STRNCASECMP@ -extern int strncasecmp (char const *s1, char const *s2, size_t n); -#endif -#if defined GNULIB_POSIXCHECK -/* strncasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strncasecmp -# define strncasecmp(a,b,n) \ - (GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \ - "strings in multibyte locales - " \ - "use mbsncasecmp or mbspcasecmp if you care about " \ - "internationalization, or use c_strncasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strncasecmp (a, b, n)) +# if HAVE_RAW_DECL_STPNCPY +_GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " + "use gnulib module stpncpy for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr -# define strchr(s,c) \ - (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbschr if you care about internationalization"), \ - strchr (s, c)) +/* Assume strchr is always declared. */ +_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbschr if you care about internationalization"); #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if ! @HAVE_STRCHRNUL@ -extern char *strchrnul (char const *__s, int __c_in); +_GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * std::strchrnul (const char *, int); } + extern "C++" { char * std::strchrnul (char *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (strchrnul, + char *, (char const *__s, int __c_in), + char const *, (char const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in)); +_GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (strchrnul); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul -# define strchrnul(a,b) \ - (GL_LINK_WARNING ("strchrnul is unportable - " \ - "use gnulib module strchrnul for portability"), \ - strchrnul (a, b)) +# if HAVE_RAW_DECL_STRCHRNUL +_GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " + "use gnulib module strchrnul for portability"); +# endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ -# if ! @HAVE_DECL_STRDUP@ && ! defined strdup -extern char *strdup (char const *__s); +# if @REPLACE_STRDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strdup +# define strdup rpl_strdup +# endif +_GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strdup, char *, (char const *__s)); +# else +# if !(@HAVE_DECL_STRDUP@ || defined strdup) +_GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif +_GL_CXXALIASWARN (strdup); #elif defined GNULIB_POSIXCHECK # undef strdup -# define strdup(a) \ - (GL_LINK_WARNING ("strdup is unportable - " \ - "use gnulib module strdup for portability"), \ - strdup (a)) +# if HAVE_RAW_DECL_STRDUP +_GL_WARN_ON_USE (strdup, "strdup is unportable - " + "use gnulib module strdup for portability"); +# endif +#endif + +/* Append no more than N characters from SRC onto DEST. */ +#if @GNULIB_STRNCAT@ +# if @REPLACE_STRNCAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strncat +# define strncat rpl_strncat +# endif +_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); +# else +_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); +# endif +_GL_CXXALIASWARN (strncat); +#elif defined GNULIB_POSIXCHECK +# undef strncat +# if HAVE_RAW_DECL_STRNCAT +_GL_WARN_ON_USE (strncat, "strncat is unportable - " + "use gnulib module strncat for portability"); +# endif #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ -# if ! @HAVE_STRNDUP@ -# undef strndup -# define strndup rpl_strndup -# endif -# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@ -extern char *strndup (char const *__string, size_t __n); +# if @REPLACE_STRNDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strndup +# define strndup rpl_strndup +# endif +_GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n)); +# else +# if ! @HAVE_DECL_STRNDUP@ +_GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n)); # endif +_GL_CXXALIASWARN (strndup); #elif defined GNULIB_POSIXCHECK # undef strndup -# define strndup(a,n) \ - (GL_LINK_WARNING ("strndup is unportable - " \ - "use gnulib module strndup for portability"), \ - strndup (a, n)) +# if HAVE_RAW_DECL_STRNDUP +_GL_WARN_ON_USE (strndup, "strndup is unportable - " + "use gnulib module strndup for portability"); +# endif #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ -# if ! @HAVE_DECL_STRNLEN@ -extern size_t strnlen (char const *__string, size_t __maxlen); +# if @REPLACE_STRNLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strnlen +# define strnlen rpl_strnlen +# endif +_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); +# else +# if ! @HAVE_DECL_STRNLEN@ +_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); # endif +_GL_CXXALIASWARN (strnlen); #elif defined GNULIB_POSIXCHECK # undef strnlen -# define strnlen(a,n) \ - (GL_LINK_WARNING ("strnlen is unportable - " \ - "use gnulib module strnlen for portability"), \ - strnlen (a, n)) +# if HAVE_RAW_DECL_STRNLEN +_GL_WARN_ON_USE (strnlen, "strnlen is unportable - " + "use gnulib module strnlen for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK @@ -222,17 +404,32 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn -# define strcspn(s,a) \ - (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscspn if you care about internationalization"), \ - strcspn (s, a)) +/* Assume strcspn is always declared. */ +_GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbscspn if you care about internationalization"); #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ -extern char *strpbrk (char const *__s, char const *__accept); +_GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const char * strpbrk (const char *, const char *); } + extern "C++" { char * strpbrk (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strpbrk, + char *, (char const *__s, char const *__accept), + const char *, (char const *__s, char const *__accept)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept)); +_GL_CXXALIASWARN1 (strpbrk, char const *, + (char const *__s, char const *__accept)); +# else +_GL_CXXALIASWARN (strpbrk); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. @@ -240,40 +437,36 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbspbrk if you care about internationalization"), \ - strpbrk (s, a)) +_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings " + "in multibyte locales - " + "use mbspbrk if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk is unportable - " \ - "use gnulib module strpbrk for portability"), \ - strpbrk (s, a)) +# if HAVE_RAW_DECL_STRPBRK +_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - " + "use gnulib module strpbrk for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn -# define strspn(s,a) \ - (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbsspn if you care about internationalization"), \ - strspn (s, a)) +/* Assume strspn is always declared. */ +_GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbsspn if you care about internationalization"); #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr -# define strrchr(s,c) \ - (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbsrchr if you care about internationalization"), \ - strrchr (s, c)) +/* Assume strrchr is always declared. */ +_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbsrchr if you care about internationalization"); #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. @@ -294,65 +487,122 @@ See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ -extern char *strsep (char **restrict __stringp, char const *restrict __delim); -# endif +_GL_FUNCDECL_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim)); +_GL_CXXALIASWARN (strsep); # if defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbssep if you care about internationalization"), \ - strsep (s, d)) +_GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " + "in multibyte locales - " + "use mbssep if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep is unportable - " \ - "use gnulib module strsep for portability"), \ - strsep (s, d)) +# if HAVE_RAW_DECL_STRSEP +_GL_WARN_ON_USE (strsep, "strsep is unportable - " + "use gnulib module strsep for portability"); +# endif #endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRSTR@ +# if @REPLACE_STRSTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strstr rpl_strstr +# endif +_GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); +# else + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strstr (const char *, const char *); } + extern "C++" { char * strstr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strstr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strstr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strstr); +# endif +#elif defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr -# define strstr(a,b) \ - (GL_LINK_WARNING ("strstr cannot work correctly on character strings " \ - "in most multibyte locales - " \ - "use mbsstr if you care about internationalization"), \ - strstr (a, b)) +/* Assume strstr is always declared. */ +_GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " + "work correctly on character strings in most " + "multibyte locales - " + "use mbsstr if you care about internationalization, " + "or use strstr if you care about speed"); #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ -#if ! @HAVE_STRCASESTR@ -extern char *strcasestr (const char *haystack, const char *needle); -#endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRCASESTR@ +# if @REPLACE_STRCASESTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strcasestr rpl_strcasestr +# endif +_GL_FUNCDECL_RPL (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strcasestr, char *, + (const char *haystack, const char *needle)); +# else +# if ! @HAVE_STRCASESTR@ +_GL_FUNCDECL_SYS (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strcasestr (const char *, const char *); } + extern "C++" { char * strcasestr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strcasestr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strcasestr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strcasestr); +# endif +#elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr -# define strcasestr(a,b) \ - (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasestr if you care about " \ - "internationalization, or use c-strcasestr if you want " \ - "a locale independent function"), \ - strcasestr (a, b)) +# if HAVE_RAW_DECL_STRCASESTR +_GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " + "strings in multibyte locales - " + "use mbscasestr if you care about " + "internationalization, or use c-strcasestr if you want " + "a locale independent function"); +# endif #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = strtok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = strtok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. @@ -367,24 +617,44 @@ See also strsep(). */ #if @GNULIB_STRTOK_R@ -# if ! @HAVE_DECL_STRTOK_R@ -extern char *strtok_r (char *restrict s, char const *restrict delim, - char **restrict save_ptr); +# if @REPLACE_STRTOK_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strtok_r +# define strtok_r rpl_strtok_r +# endif +_GL_FUNCDECL_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); +# else +# if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK +# undef strtok_r +# endif +# if ! @HAVE_DECL_STRTOK_R@ +_GL_FUNCDECL_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); # endif +_GL_CXXALIASWARN (strtok_r); # if defined GNULIB_POSIXCHECK -# undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbstok_r if you care about internationalization"), \ - strtok_r (s, d, p)) +_GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " + "strings in multibyte locales - " + "use mbstok_r if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r is unportable - " \ - "use gnulib module strtok_r for portability"), \ - strtok_r (s, d, p)) +# if HAVE_RAW_DECL_STRTOK_R +_GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " + "use gnulib module strtok_r for portability"); +# endif #endif @@ -394,13 +664,27 @@ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ -extern size_t mbslen (const char *string); +# ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */ +# undef mbslen +# endif +# if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbslen rpl_mbslen +# endif +_GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbslen, size_t, (const char *string)); +# else +_GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string)); +# endif +_GL_CXXALIASWARN (mbslen); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ -extern size_t mbsnlen (const char *string, size_t len); +_GL_EXTERN_C size_t mbsnlen (const char *string, size_t len) + _GL_ARG_NONNULL ((1)); #endif #if @GNULIB_MBSCHR@ @@ -408,8 +692,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ -extern char * mbschr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbschr); #endif #if @GNULIB_MBSRCHR@ @@ -417,8 +712,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ -extern char * mbsrchr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbsrchr); #endif #if @GNULIB_MBSSTR@ @@ -426,7 +732,8 @@ string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ -extern char * mbsstr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASECMP@ @@ -436,7 +743,8 @@ Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ -extern int mbscasecmp (const char *s1, const char *s2); +_GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSNCASECMP@ @@ -449,7 +757,8 @@ of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ -extern int mbsncasecmp (const char *s1, const char *s2, size_t n); +_GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPCASECMP@ @@ -462,7 +771,8 @@ smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ -extern char * mbspcasecmp (const char *string, const char *prefix); +_GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASESTR@ @@ -471,7 +781,8 @@ Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ -extern char * mbscasestr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCSPN@ @@ -480,7 +791,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ -extern size_t mbscspn (const char *string, const char *accept); +_GL_EXTERN_C size_t mbscspn (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPBRK@ @@ -488,8 +800,19 @@ in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ -# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ -extern char * mbspbrk (const char *string, const char *accept); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept)); +# else +_GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept)); +# endif +_GL_CXXALIASWARN (mbspbrk); #endif #if @GNULIB_MBSSPN@ @@ -498,7 +821,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ -extern size_t mbsspn (const char *string, const char *reject); +_GL_EXTERN_C size_t mbsspn (const char *string, const char *reject) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSSEP@ @@ -516,7 +840,8 @@ Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ -extern char * mbssep (char **stringp, const char *delim); +_GL_EXTERN_C char * mbssep (char **stringp, const char *delim) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSTOK_R@ @@ -524,40 +849,81 @@ the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = mbstok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = mbstok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ -extern char * mbstok_r (char *string, const char *delim, char **save_ptr); +_GL_EXTERN_C char * mbstok_r (char *string, const char *delim, char **save_ptr) + _GL_ARG_NONNULL ((2, 3)); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ -# undef strerror -# define strerror rpl_strerror -extern char *strerror (int); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strerror +# define strerror rpl_strerror +# endif +_GL_FUNCDECL_RPL (strerror, char *, (int)); +_GL_CXXALIAS_RPL (strerror, char *, (int)); +# else +_GL_CXXALIAS_SYS (strerror, char *, (int)); # endif +_GL_CXXALIASWARN (strerror); #elif defined GNULIB_POSIXCHECK # undef strerror -# define strerror(e) \ - (GL_LINK_WARNING ("strerror is unportable - " \ - "use gnulib module strerror to guarantee non-NULL result"), \ - strerror (e)) +/* Assume strerror is always declared. */ +_GL_WARN_ON_USE (strerror, "strerror is unportable - " + "use gnulib module strerror to guarantee non-NULL result"); +#endif + +#if @GNULIB_STRSIGNAL@ +# if @REPLACE_STRSIGNAL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strsignal rpl_strsignal +# endif +_GL_FUNCDECL_RPL (strsignal, char *, (int __sig)); +_GL_CXXALIAS_RPL (strsignal, char *, (int __sig)); +# else +# if ! @HAVE_DECL_STRSIGNAL@ +_GL_FUNCDECL_SYS (strsignal, char *, (int __sig)); +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is + 'const char *'. */ +_GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); +# endif +_GL_CXXALIASWARN (strsignal); +#elif defined GNULIB_POSIXCHECK +# undef strsignal +# if HAVE_RAW_DECL_STRSIGNAL +_GL_WARN_ON_USE (strsignal, "strsignal is unportable - " + "use gnulib module strsignal for portability"); +# endif #endif - -#ifdef __cplusplus -} +#if @GNULIB_STRVERSCMP@ +# if !@HAVE_STRVERSCMP@ +_GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); +_GL_CXXALIASWARN (strverscmp); +#elif defined GNULIB_POSIXCHECK +# undef strverscmp +# if HAVE_RAW_DECL_STRVERSCMP +_GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " + "use gnulib module strverscmp for portability"); +# endif #endif + #endif /* _GL_STRING_H */ #endif /* _GL_STRING_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/str-kmp.h gettext-0.18.1.1/gettext-tools/gnulib-lib/str-kmp.h --- gettext-0.17/gettext-tools/gnulib-lib/str-kmp.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/str-kmp.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,150 @@ +/* Substring search in a NUL terminated string of 'char' elements, + using the Knuth-Morris-Pratt algorithm. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2005. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Before including this file, you need to define: + CANON_ELEMENT(c) A macro that canonicalizes an element right after + it has been fetched from one of the two strings. + The argument is an 'unsigned char'; the result + must be an 'unsigned char' as well. */ + +/* Knuth-Morris-Pratt algorithm. + See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm + Return a boolean indicating success: + Return true and set *RESULTP if the search was completed. + Return false if it was aborted because not enough memory was available. */ +static bool +knuth_morris_pratt_unibyte (const char *haystack, const char *needle, + const char **resultp) +{ + size_t m = strlen (needle); + + /* Allocate the table. */ + size_t *table = (size_t *) nmalloca (m, sizeof (size_t)); + if (table == NULL) + return false; + /* Fill the table. + For 0 < i < m: + 0 < table[i] <= i is defined such that + forall 0 < x < table[i]: needle[x..i-1] != needle[0..i-1-x], + and table[i] is as large as possible with this property. + This implies: + 1) For 0 < i < m: + If table[i] < i, + needle[table[i]..i-1] = needle[0..i-1-table[i]]. + 2) For 0 < i < m: + rhaystack[0..i-1] == needle[0..i-1] + and exists h, i <= h < m: rhaystack[h] != needle[h] + implies + forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1]. + table[0] remains uninitialized. */ + { + size_t i, j; + + /* i = 1: Nothing to verify for x = 0. */ + table[1] = 1; + j = 0; + + for (i = 2; i < m; i++) + { + /* Here: j = i-1 - table[i-1]. + The inequality needle[x..i-1] != needle[0..i-1-x] is known to hold + for x < table[i-1], by induction. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + unsigned char b = CANON_ELEMENT ((unsigned char) needle[i - 1]); + + for (;;) + { + /* Invariants: The inequality needle[x..i-1] != needle[0..i-1-x] + is known to hold for x < i-1-j. + Furthermore, if j>0: needle[i-1-j..i-2] = needle[0..j-1]. */ + if (b == CANON_ELEMENT ((unsigned char) needle[j])) + { + /* Set table[i] := i-1-j. */ + table[i] = i - ++j; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for x = i-1-j, because + needle[i-1] != needle[j] = needle[i-1-x]. */ + if (j == 0) + { + /* The inequality holds for all possible x. */ + table[i] = i; + break; + } + /* The inequality needle[x..i-1] != needle[0..i-1-x] also holds + for i-1-j < x < i-1-j+table[j], because for these x: + needle[x..i-2] + = needle[x-(i-1-j)..j-1] + != needle[0..j-1-(x-(i-1-j))] (by definition of table[j]) + = needle[0..i-2-x], + hence needle[x..i-1] != needle[0..i-1-x]. + Furthermore + needle[i-1-j+table[j]..i-2] + = needle[table[j]..j-1] + = needle[0..j-1-table[j]] (by definition of table[j]). */ + j = j - table[j]; + } + /* Here: j = i - table[i]. */ + } + } + + /* Search, using the table to accelerate the processing. */ + { + size_t j; + const char *rhaystack; + const char *phaystack; + + *resultp = NULL; + j = 0; + rhaystack = haystack; + phaystack = haystack; + /* Invariant: phaystack = rhaystack + j. */ + while (*phaystack != '\0') + if (CANON_ELEMENT ((unsigned char) needle[j]) + == CANON_ELEMENT ((unsigned char) *phaystack)) + { + j++; + phaystack++; + if (j == m) + { + /* The entire needle has been found. */ + *resultp = rhaystack; + break; + } + } + else if (j > 0) + { + /* Found a match of needle[0..j-1], mismatch at needle[j]. */ + rhaystack += table[j]; + j -= table[j]; + } + else + { + /* Found a mismatch at needle[0] already. */ + rhaystack++; + phaystack++; + } + } + + freea (table); + return true; +} + +#undef CANON_ELEMENT diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strnlen1.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen1.c --- gettext-0.17/gettext-tools/gnulib-lib/strnlen1.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen1.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strnlen1.h gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen1.h --- gettext-0.17/gettext-tools/gnulib-lib/strnlen1.h 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen1.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,5 @@ /* Find the length of STRING + 1, but scan at most MAXLEN bytes. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strnlen.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen.c --- gettext-0.17/gettext-tools/gnulib-lib/strnlen.c 2007-02-13 01:00:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strnlen.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,10 +1,10 @@ /* Find the length of STRING, but scan at most MAXLEN characters. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. Written by Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strpbrk.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strpbrk.c --- gettext-0.17/gettext-tools/gnulib-lib/strpbrk.c 2007-01-27 03:22:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strpbrk.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006 Free Software +/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2010 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. @@ -6,7 +6,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any + Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -33,8 +33,8 @@ { const char *a = accept; while (*a != '\0') - if (*a++ == *s) - return (char *) s; + if (*a++ == *s) + return (char *) s; ++s; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strstr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strstr.c --- gettext-0.17/gettext-tools/gnulib-lib/strstr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strstr.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,83 @@ +/* Copyright (C) 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000, 2004, 2007, + 2008, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This particular implementation was written by Eric Blake, 2008. */ + +#ifndef _LIBC +# include +#endif + +/* Specification of strstr. */ +#include + +#include + +#ifndef _LIBC +# define __builtin_expect(expr, val) (expr) +#endif + +#define RETURN_TYPE char * +#define AVAILABLE(h, h_l, j, n_l) \ + (!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \ + && ((h_l) = (j) + (n_l))) +#include "str-two-way.h" + +/* Return the first occurrence of NEEDLE in HAYSTACK. Return HAYSTACK + if NEEDLE is empty, otherwise NULL if NEEDLE is not found in + HAYSTACK. */ +char * +strstr (const char *haystack_start, const char *needle_start) +{ + const char *haystack = haystack_start; + const char *needle = needle_start; + size_t needle_len; /* Length of NEEDLE. */ + size_t haystack_len; /* Known minimum length of HAYSTACK. */ + bool ok = true; /* True if NEEDLE is prefix of HAYSTACK. */ + + /* Determine length of NEEDLE, and in the process, make sure + HAYSTACK is at least as long (no point processing all of a long + NEEDLE if HAYSTACK is too short). */ + while (*haystack && *needle) + ok &= *haystack++ == *needle++; + if (*needle) + return NULL; + if (ok) + return (char *) haystack_start; + + /* Reduce the size of haystack using strchr, since it has a smaller + linear coefficient than the Two-Way algorithm. */ + needle_len = needle - needle_start; + haystack = strchr (haystack_start + 1, *needle_start); + if (!haystack || __builtin_expect (needle_len == 1, 0)) + return (char *) haystack; + needle -= needle_len; + haystack_len = (haystack > haystack_start + needle_len ? 1 + : needle_len + haystack_start - haystack); + + /* Perform the search. Abstract memory is considered to be an array + of 'unsigned char' values, not an array of 'char' values. See + ISO C 99 section 6.2.6.1. */ + if (needle_len < LONG_NEEDLE_THRESHOLD) + return two_way_short_needle ((const unsigned char *) haystack, + haystack_len, + (const unsigned char *) needle, needle_len); + return two_way_long_needle ((const unsigned char *) haystack, haystack_len, + (const unsigned char *) needle, needle_len); +} + +#undef LONG_NEEDLE_THRESHOLD diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strtol.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strtol.c --- gettext-0.17/gettext-tools/gnulib-lib/strtol.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strtol.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,8 +1,7 @@ /* Convert string representation of a number into an integer value. Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003, 2005, - 2006, 2007 - Free Software Foundation, Inc. + 2006, 2007, 2009, 2010 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. @@ -115,9 +114,9 @@ operating on `long long int's. */ #ifdef QUAD # define LONG long long -# define STRTOL_LONG_MIN LONG_LONG_MIN -# define STRTOL_LONG_MAX LONG_LONG_MAX -# define STRTOL_ULONG_MAX ULONG_LONG_MAX +# define STRTOL_LONG_MIN LLONG_MIN +# define STRTOL_LONG_MAX LLONG_MAX +# define STRTOL_ULONG_MAX ULLONG_MAX /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ @@ -139,28 +138,28 @@ your host. */ # define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) 0 \ - : TYPE_SIGNED_MAGNITUDE (t) \ - ? ~ (t) 0 \ - : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) + ? (t) 0 \ + : TYPE_SIGNED_MAGNITUDE (t) \ + ? ~ (t) 0 \ + : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) # define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) + ? (t) -1 \ + : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -# ifndef ULONG_LONG_MAX -# define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long) +# ifndef ULLONG_MAX +# define ULLONG_MAX TYPE_MAXIMUM (unsigned long long) # endif -# ifndef LONG_LONG_MAX -# define LONG_LONG_MAX TYPE_MAXIMUM (long long int) +# ifndef LLONG_MAX +# define LLONG_MAX TYPE_MAXIMUM (long long int) # endif -# ifndef LONG_LONG_MIN -# define LONG_LONG_MIN TYPE_MINIMUM (long long int) +# ifndef LLONG_MIN +# define LLONG_MIN TYPE_MINIMUM (long long int) # endif # if __GNUC__ == 2 && __GNUC_MINOR__ < 7 /* Work around gcc bug with using this constant. */ - static const unsigned long long int maxquad = ULONG_LONG_MAX; + static const unsigned long long int maxquad = ULLONG_MAX; # undef STRTOL_ULONG_MAX # define STRTOL_ULONG_MAX maxquad # endif @@ -238,7 +237,7 @@ INT INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr, - int base, int group LOCALE_PARAM_PROTO) + int base, int group LOCALE_PARAM_PROTO) { int negative; register unsigned LONG int cutoff; @@ -263,18 +262,18 @@ { grouping = _NL_CURRENT (LC_NUMERIC, GROUPING); if (*grouping <= 0 || *grouping == CHAR_MAX) - grouping = NULL; + grouping = NULL; else - { - /* Figure out the thousands separator character. */ + { + /* Figure out the thousands separator character. */ # if defined _LIBC || defined _HAVE_BTOWC - thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); - if (thousands == WEOF) - thousands = L'\0'; + thousands = __btowc (*_NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP)); + if (thousands == WEOF) + thousands = L'\0'; # endif - if (thousands == L'\0') - grouping = NULL; - } + if (thousands == L'\0') + grouping = NULL; + } } else grouping = NULL; @@ -312,12 +311,12 @@ if (*s == L_('0')) { if ((base == 0 || base == 16) && TOUPPER (s[1]) == L_('X')) - { - s += 2; - base = 16; - } + { + s += 2; + base = 16; + } else if (base == 0) - base = 8; + base = 8; } else if (base == 0) base = 10; @@ -331,14 +330,14 @@ /* Find the end of the digit string and check its grouping. */ end = s; for (c = *end; c != L_('\0'); c = *++end) - if ((wchar_t) c != thousands - && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) - && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) - break; + if ((wchar_t) c != thousands + && ((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) + && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base)) + break; if (*s == thousands) - end = s; + end = s; else - end = correctly_grouped_prefix (s, end, thousands, grouping); + end = correctly_grouped_prefix (s, end, thousands, grouping); } else #endif @@ -352,23 +351,23 @@ for (c = *s; c != L_('\0'); c = *++s) { if (s == end) - break; + break; if (c >= L_('0') && c <= L_('9')) - c -= L_('0'); + c -= L_('0'); else if (ISALPHA (c)) - c = TOUPPER (c) - L_('A') + 10; + c = TOUPPER (c) - L_('A') + 10; else - break; + break; if ((int) c >= base) - break; + break; /* Check for overflow. */ if (i > cutoff || (i == cutoff && c > cutlim)) - overflow = 1; + overflow = 1; else - { - i *= (unsigned LONG int) base; - i += c; - } + { + i *= (unsigned LONG int) base; + i += c; + } } /* Check if anything actually happened. */ @@ -385,8 +384,8 @@ `unsigned LONG int', but outside the range of `LONG int'. */ if (overflow == 0 && i > (negative - ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 - : (unsigned LONG int) STRTOL_LONG_MAX)) + ? -((unsigned LONG int) (STRTOL_LONG_MIN + 1)) + 1 + : (unsigned LONG int) STRTOL_LONG_MAX)) overflow = 1; #endif @@ -411,11 +410,11 @@ if (endptr != NULL) { if (save - nptr >= 2 && TOUPPER (save[-1]) == L_('X') - && save[-2] == L_('0')) - *endptr = (STRING_TYPE *) &save[-1]; + && save[-2] == L_('0')) + *endptr = (STRING_TYPE *) &save[-1]; else - /* There was no number to convert. */ - *endptr = (STRING_TYPE *) nptr; + /* There was no number to convert. */ + *endptr = (STRING_TYPE *) nptr; } return 0L; @@ -429,7 +428,7 @@ weak_function #endif strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, - int base LOCALE_PARAM_PROTO) + int base LOCALE_PARAM_PROTO) { return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/strtoul.c gettext-0.18.1.1/gettext-tools/gnulib-lib/strtoul.c --- gettext-0.17/gettext-tools/gnulib-lib/strtoul.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/strtoul.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1997, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -14,6 +14,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define UNSIGNED 1 +#define UNSIGNED 1 #include "strtol.c" diff -Nru gettext-0.17/gettext-tools/gnulib-lib/str-two-way.h gettext-0.18.1.1/gettext-tools/gnulib-lib/str-two-way.h --- gettext-0.17/gettext-tools/gnulib-lib/str-two-way.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/str-two-way.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,429 @@ +/* Byte-wise substring search, using the Two-Way algorithm. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Written by Eric Blake , 2008. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Before including this file, you need to include and + , and define: + RESULT_TYPE A macro that expands to the return type. + AVAILABLE(h, h_l, j, n_l) + A macro that returns nonzero if there are + at least N_L bytes left starting at H[J]. + H is 'unsigned char *', H_L, J, and N_L + are 'size_t'; H_L is an lvalue. For + NUL-terminated searches, H_L can be + modified each iteration to avoid having + to compute the end of H up front. + + For case-insensitivity, you may optionally define: + CMP_FUNC(p1, p2, l) A macro that returns 0 iff the first L + characters of P1 and P2 are equal. + CANON_ELEMENT(c) A macro that canonicalizes an element right after + it has been fetched from one of the two strings. + The argument is an 'unsigned char'; the result + must be an 'unsigned char' as well. + + This file undefines the macros documented above, and defines + LONG_NEEDLE_THRESHOLD. +*/ + +#include +#include + +/* We use the Two-Way string matching algorithm, which guarantees + linear complexity with constant space. Additionally, for long + needles, we also use a bad character shift table similar to the + Boyer-Moore algorithm to achieve improved (potentially sub-linear) + performance. + + See http://www-igm.univ-mlv.fr/~lecroq/string/node26.html#SECTION00260 + and http://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm +*/ + +/* Point at which computing a bad-byte shift table is likely to be + worthwhile. Small needles should not compute a table, since it + adds (1 << CHAR_BIT) + NEEDLE_LEN computations of preparation for a + speedup no greater than a factor of NEEDLE_LEN. The larger the + needle, the better the potential performance gain. On the other + hand, on non-POSIX systems with CHAR_BIT larger than eight, the + memory required for the table is prohibitive. */ +#if CHAR_BIT < 10 +# define LONG_NEEDLE_THRESHOLD 32U +#else +# define LONG_NEEDLE_THRESHOLD SIZE_MAX +#endif + +#ifndef MAX +# define MAX(a, b) ((a < b) ? (b) : (a)) +#endif + +#ifndef CANON_ELEMENT +# define CANON_ELEMENT(c) c +#endif +#ifndef CMP_FUNC +# define CMP_FUNC memcmp +#endif + +/* Perform a critical factorization of NEEDLE, of length NEEDLE_LEN. + Return the index of the first byte in the right half, and set + *PERIOD to the global period of the right half. + + The global period of a string is the smallest index (possibly its + length) at which all remaining bytes in the string are repetitions + of the prefix (the last repetition may be a subset of the prefix). + + When NEEDLE is factored into two halves, a local period is the + length of the smallest word that shares a suffix with the left half + and shares a prefix with the right half. All factorizations of a + non-empty NEEDLE have a local period of at least 1 and no greater + than NEEDLE_LEN. + + A critical factorization has the property that the local period + equals the global period. All strings have at least one critical + factorization with the left half smaller than the global period. + + Given an ordered alphabet, a critical factorization can be computed + in linear time, with 2 * NEEDLE_LEN comparisons, by computing the + larger of two ordered maximal suffixes. The ordered maximal + suffixes are determined by lexicographic comparison of + periodicity. */ +static size_t +critical_factorization (const unsigned char *needle, size_t needle_len, + size_t *period) +{ + /* Index of last byte of left half, or SIZE_MAX. */ + size_t max_suffix, max_suffix_rev; + size_t j; /* Index into NEEDLE for current candidate suffix. */ + size_t k; /* Offset into current period. */ + size_t p; /* Intermediate period. */ + unsigned char a, b; /* Current comparison bytes. */ + + /* Invariants: + 0 <= j < NEEDLE_LEN - 1 + -1 <= max_suffix{,_rev} < j (treating SIZE_MAX as if it were signed) + min(max_suffix, max_suffix_rev) < global period of NEEDLE + 1 <= p <= global period of NEEDLE + p == global period of the substring NEEDLE[max_suffix{,_rev}+1...j] + 1 <= k <= p + */ + + /* Perform lexicographic search. */ + max_suffix = SIZE_MAX; + j = 0; + k = p = 1; + while (j + k < needle_len) + { + a = CANON_ELEMENT (needle[j + k]); + b = CANON_ELEMENT (needle[max_suffix + k]); + if (a < b) + { + /* Suffix is smaller, period is entire prefix so far. */ + j += k; + k = 1; + p = j - max_suffix; + } + else if (a == b) + { + /* Advance through repetition of the current period. */ + if (k != p) + ++k; + else + { + j += p; + k = 1; + } + } + else /* b < a */ + { + /* Suffix is larger, start over from current location. */ + max_suffix = j++; + k = p = 1; + } + } + *period = p; + + /* Perform reverse lexicographic search. */ + max_suffix_rev = SIZE_MAX; + j = 0; + k = p = 1; + while (j + k < needle_len) + { + a = CANON_ELEMENT (needle[j + k]); + b = CANON_ELEMENT (needle[max_suffix_rev + k]); + if (b < a) + { + /* Suffix is smaller, period is entire prefix so far. */ + j += k; + k = 1; + p = j - max_suffix_rev; + } + else if (a == b) + { + /* Advance through repetition of the current period. */ + if (k != p) + ++k; + else + { + j += p; + k = 1; + } + } + else /* a < b */ + { + /* Suffix is larger, start over from current location. */ + max_suffix_rev = j++; + k = p = 1; + } + } + + /* Choose the longer suffix. Return the first byte of the right + half, rather than the last byte of the left half. */ + if (max_suffix_rev + 1 < max_suffix + 1) + return max_suffix + 1; + *period = p; + return max_suffix_rev + 1; +} + +/* Return the first location of non-empty NEEDLE within HAYSTACK, or + NULL. HAYSTACK_LEN is the minimum known length of HAYSTACK. This + method is optimized for NEEDLE_LEN < LONG_NEEDLE_THRESHOLD. + Performance is guaranteed to be linear, with an initialization cost + of 2 * NEEDLE_LEN comparisons. + + If AVAILABLE does not modify HAYSTACK_LEN (as in memmem), then at + most 2 * HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching. + If AVAILABLE modifies HAYSTACK_LEN (as in strstr), then at most 3 * + HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching. */ +static RETURN_TYPE +two_way_short_needle (const unsigned char *haystack, size_t haystack_len, + const unsigned char *needle, size_t needle_len) +{ + size_t i; /* Index into current byte of NEEDLE. */ + size_t j; /* Index into current window of HAYSTACK. */ + size_t period; /* The period of the right half of needle. */ + size_t suffix; /* The index of the right half of needle. */ + + /* Factor the needle into two halves, such that the left half is + smaller than the global period, and the right half is + periodic (with a period as large as NEEDLE_LEN - suffix). */ + suffix = critical_factorization (needle, needle_len, &period); + + /* Perform the search. Each iteration compares the right half + first. */ + if (CMP_FUNC (needle, needle + period, suffix) == 0) + { + /* Entire needle is periodic; a mismatch can only advance by the + period, so use memory to avoid rescanning known occurrences + of the period. */ + size_t memory = 0; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Scan for matches in right half. */ + i = MAX (suffix, memory); + while (i < needle_len && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (memory < i + 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i + 1 < memory + 1) + return (RETURN_TYPE) (haystack + j); + /* No match, so remember how many repetitions of period + on the right half were scanned. */ + j += period; + memory = needle_len - period; + } + else + { + j += i - suffix + 1; + memory = 0; + } + } + } + else + { + /* The two halves of needle are distinct; no extra memory is + required, and any mismatch results in a maximal shift. */ + period = MAX (suffix, needle_len - suffix) + 1; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Scan for matches in right half. */ + i = suffix; + while (i < needle_len && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i == SIZE_MAX) + return (RETURN_TYPE) (haystack + j); + j += period; + } + else + j += i - suffix + 1; + } + } + return NULL; +} + +/* Return the first location of non-empty NEEDLE within HAYSTACK, or + NULL. HAYSTACK_LEN is the minimum known length of HAYSTACK. This + method is optimized for LONG_NEEDLE_THRESHOLD <= NEEDLE_LEN. + Performance is guaranteed to be linear, with an initialization cost + of 3 * NEEDLE_LEN + (1 << CHAR_BIT) operations. + + If AVAILABLE does not modify HAYSTACK_LEN (as in memmem), then at + most 2 * HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching, + and sublinear performance O(HAYSTACK_LEN / NEEDLE_LEN) is possible. + If AVAILABLE modifies HAYSTACK_LEN (as in strstr), then at most 3 * + HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching, and + sublinear performance is not possible. */ +static RETURN_TYPE +two_way_long_needle (const unsigned char *haystack, size_t haystack_len, + const unsigned char *needle, size_t needle_len) +{ + size_t i; /* Index into current byte of NEEDLE. */ + size_t j; /* Index into current window of HAYSTACK. */ + size_t period; /* The period of the right half of needle. */ + size_t suffix; /* The index of the right half of needle. */ + size_t shift_table[1U << CHAR_BIT]; /* See below. */ + + /* Factor the needle into two halves, such that the left half is + smaller than the global period, and the right half is + periodic (with a period as large as NEEDLE_LEN - suffix). */ + suffix = critical_factorization (needle, needle_len, &period); + + /* Populate shift_table. For each possible byte value c, + shift_table[c] is the distance from the last occurrence of c to + the end of NEEDLE, or NEEDLE_LEN if c is absent from the NEEDLE. + shift_table[NEEDLE[NEEDLE_LEN - 1]] contains the only 0. */ + for (i = 0; i < 1U << CHAR_BIT; i++) + shift_table[i] = needle_len; + for (i = 0; i < needle_len; i++) + shift_table[CANON_ELEMENT (needle[i])] = needle_len - i - 1; + + /* Perform the search. Each iteration compares the right half + first. */ + if (CMP_FUNC (needle, needle + period, suffix) == 0) + { + /* Entire needle is periodic; a mismatch can only advance by the + period, so use memory to avoid rescanning known occurrences + of the period. */ + size_t memory = 0; + size_t shift; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Check the last byte first; if it does not match, then + shift to the next possible match location. */ + shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; + if (0 < shift) + { + if (memory && shift < period) + { + /* Since needle is periodic, but the last period has + a byte out of place, there can be no match until + after the mismatch. */ + shift = needle_len - period; + memory = 0; + } + j += shift; + continue; + } + /* Scan for matches in right half. The last byte has + already been matched, by virtue of the shift table. */ + i = MAX (suffix, memory); + while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len - 1 <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (memory < i + 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i + 1 < memory + 1) + return (RETURN_TYPE) (haystack + j); + /* No match, so remember how many repetitions of period + on the right half were scanned. */ + j += period; + memory = needle_len - period; + } + else + { + j += i - suffix + 1; + memory = 0; + } + } + } + else + { + /* The two halves of needle are distinct; no extra memory is + required, and any mismatch results in a maximal shift. */ + size_t shift; + period = MAX (suffix, needle_len - suffix) + 1; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Check the last byte first; if it does not match, then + shift to the next possible match location. */ + shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; + if (0 < shift) + { + j += shift; + continue; + } + /* Scan for matches in right half. The last byte has + already been matched, by virtue of the shift table. */ + i = suffix; + while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len - 1 <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i == SIZE_MAX) + return (RETURN_TYPE) (haystack + j); + j += period; + } + else + j += i - suffix + 1; + } + } + return NULL; +} + +#undef AVAILABLE +#undef CANON_ELEMENT +#undef CMP_FUNC +#undef MAX +#undef RETURN_TYPE diff -Nru gettext-0.17/gettext-tools/gnulib-lib/styled-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/styled-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/styled-ostream.c 2007-10-07 20:55:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/styled-ostream.c 2010-06-06 18:36:38.000000000 +0000 @@ -40,24 +40,28 @@ #line 28 "styled-ostream.oo.c" #line 43 "styled-ostream.c" +void styled_ostream__write_mem (styled_ostream_t first_arg, const void *data, size_t len); void styled_ostream__write_mem (styled_ostream_t first_arg, const void *data, size_t len) { super.write_mem (first_arg,data,len); } +void styled_ostream__flush (styled_ostream_t first_arg); void styled_ostream__flush (styled_ostream_t first_arg) { super.flush (first_arg); } +void styled_ostream__free (styled_ostream_t first_arg); void styled_ostream__free (styled_ostream_t first_arg) { super.free (first_arg); } +void styled_ostream__begin_use_class (styled_ostream_t first_arg, const char *classname); void styled_ostream__begin_use_class (styled_ostream_t first_arg, const char *classname) { @@ -68,6 +72,7 @@ #endif } +void styled_ostream__end_use_class (styled_ostream_t first_arg, const char *classname); void styled_ostream__end_use_class (styled_ostream_t first_arg, const char *classname) { diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sys_select.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_select.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sys_select.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_select.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,105 @@ +/* Substitute for . + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +# if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +# endif + +/* On OSF/1, and include . + Simply delegate to the system's header in this case. */ +#if @HAVE_SYS_SELECT_H@ && defined __osf__ && (defined _SYS_TYPES_H_ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H) && defined _OSF_SOURCE + +# define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H +# @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ + +#elif @HAVE_SYS_SELECT_H@ && defined __osf__ && (defined _SYS_TIME_H_ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H) && defined _OSF_SOURCE + +# define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H +# @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ + +#else + +#ifndef _GL_SYS_SELECT_H + +#if @HAVE_SYS_SELECT_H@ + +/* On many platforms, assumes prior inclusion of + . */ +# include + +/* On OSF/1 4.0, provides only a forward declaration + of 'struct timeval', and no definition of this type. + But avoid namespace pollution on glibc systems. */ +# ifndef __GLIBC__ +# include +# endif + +/* On Solaris 10, provides an FD_ZERO implementation + that relies on memset(), but without including . + But avoid namespace pollution on glibc systems. */ +# ifndef __GLIBC__ +# include +# endif + +/* The include_next requires a split double-inclusion guard. */ +# @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ + +#endif + +#ifndef _GL_SYS_SELECT_H +#define _GL_SYS_SELECT_H + +#if !@HAVE_SYS_SELECT_H@ || @REPLACE_SELECT@ +/* A platform that lacks . */ +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +#if @GNULIB_SELECT@ +# if @HAVE_WINSOCK2_H@ || @REPLACE_SELECT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select rpl_select +# endif +_GL_FUNCDECL_RPL (select, int, + (int, fd_set *, fd_set *, fd_set *, struct timeval *)); +_GL_CXXALIAS_RPL (select, int, + (int, fd_set *, fd_set *, fd_set *, struct timeval *)); +# else +_GL_CXXALIAS_SYS (select, int, + (int, fd_set *, fd_set *, fd_set *, struct timeval *)); +# endif +_GL_CXXALIASWARN (select); +#elif @HAVE_WINSOCK2_H@ +# undef select +# define select select_used_without_requesting_gnulib_module_select +#elif defined GNULIB_POSIXCHECK +# undef select +# if HAVE_RAW_DECL_SELECT +_GL_WARN_ON_USE (select, "select is not always POSIX compliant - " + "use gnulib module select for portability"); +# endif +#endif + + +#endif /* _GL_SYS_SELECT_H */ +#endif /* _GL_SYS_SELECT_H */ +#endif /* OSF/1 */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sys_socket.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_socket.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sys_socket.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_socket.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,628 @@ +/* Provide a sys/socket header file for systems lacking it (read: MinGW) + and for systems where it is incomplete. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + Written by Simon Josefsson. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This file is supposed to be used on platforms that lack , + on platforms where cannot be included standalone, and on + platforms where does not provide all necessary definitions. + It is intended to provide definitions and prototypes needed by an + application. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined _GL_ALREADY_INCLUDING_SYS_SOCKET_H +/* Special invocation convention: + - On Cygwin 1.5.x we have a sequence of nested includes + -> -> -> , + and the latter includes . In this situation, the functions + are not yet declared, therefore we cannot provide the C++ aliases. */ + +#@INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_SYS_SOCKET_H + +#if @HAVE_SYS_SOCKET_H@ + +# define _GL_ALREADY_INCLUDING_SYS_SOCKET_H + +/* On many platforms, assumes prior inclusion of + . */ +# include + +/* The include_next requires a split double-inclusion guard. */ +# @INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@ + +# undef _GL_ALREADY_INCLUDING_SYS_SOCKET_H + +#endif + +#ifndef _GL_SYS_SOCKET_H +#define _GL_SYS_SOCKET_H + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +#if !@HAVE_SA_FAMILY_T@ +typedef unsigned short sa_family_t; +#endif + +#if !@HAVE_STRUCT_SOCKADDR_STORAGE@ +# include +/* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on + 2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */ +# define __ss_aligntype unsigned long int +# define _SS_SIZE 256 +# define _SS_PADSIZE \ + (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype) \ + ? sizeof (sa_family_t) \ + : alignof (__ss_aligntype)) \ + + sizeof (__ss_aligntype))) + +struct sockaddr_storage +{ + sa_family_t ss_family; /* Address family, etc. */ + __ss_aligntype __ss_align; /* Force desired alignment. */ + char __ss_padding[_SS_PADSIZE]; +}; +#endif + +#if @HAVE_SYS_SOCKET_H@ + +/* A platform that has . */ + +/* For shutdown(). */ +# if !defined SHUT_RD +# define SHUT_RD 0 +# endif +# if !defined SHUT_WR +# define SHUT_WR 1 +# endif +# if !defined SHUT_RDWR +# define SHUT_RDWR 2 +# endif + +#else + +# ifdef __CYGWIN__ +# error "Cygwin does have a sys/socket.h, doesn't it?!?" +# endif + +/* A platform that lacks . + + Currently only MinGW is supported. See the gnulib manual regarding + Windows sockets. MinGW has the header files winsock2.h and + ws2tcpip.h that declare the sys/socket.h definitions we need. Note + that you can influence which definitions you get by setting the + WINVER symbol before including these two files. For example, + getaddrinfo is only available if _WIN32_WINNT >= 0x0501 (that + symbol is set indiriectly through WINVER). You can set this by + adding AC_DEFINE(WINVER, 0x0501) to configure.ac. Note that your + code may not run on older Windows releases then. My Windows 2000 + box was not able to run the code, for example. The situation is + slightly confusing because: + http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/getaddrinfo_2.asp + suggests that getaddrinfo should be available on all Windows + releases. */ + + +# if @HAVE_WINSOCK2_H@ +# include +# endif +# if @HAVE_WS2TCPIP_H@ +# include +# endif + +/* For shutdown(). */ +# if !defined SHUT_RD && defined SD_RECEIVE +# define SHUT_RD SD_RECEIVE +# endif +# if !defined SHUT_WR && defined SD_SEND +# define SHUT_WR SD_SEND +# endif +# if !defined SHUT_RDWR && defined SD_BOTH +# define SHUT_RDWR SD_BOTH +# endif + +# if @HAVE_WINSOCK2_H@ +/* Include headers needed by the emulation code. */ +# include +# include + +typedef int socklen_t; + +# endif + +#endif + +#if @HAVE_WINSOCK2_H@ + +/* Re-define FD_ISSET to avoid a WSA call while we are not using + network sockets. */ +static inline int +rpl_fd_isset (SOCKET fd, fd_set * set) +{ + u_int i; + if (set == NULL) + return 0; + + for (i = 0; i < set->fd_count; i++) + if (set->fd_array[i] == fd) + return 1; + + return 0; +} + +# undef FD_ISSET +# define FD_ISSET(fd, set) rpl_fd_isset(fd, set) + +#endif + +/* Wrap everything else to use libc file descriptors for sockets. */ + +#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef close +# define close close_used_without_including_unistd_h +# else + _GL_WARN_ON_USE (close, + "close() used without including "); +# endif +#endif + +#if @HAVE_WINSOCK2_H@ && !defined _GL_UNISTD_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gethostname +# define gethostname gethostname_used_without_including_unistd_h +# else + _GL_WARN_ON_USE (gethostname, + "gethostname() used without including "); +# endif +#endif + +#if @GNULIB_SOCKET@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef socket +# define socket rpl_socket +# endif +_GL_FUNCDECL_RPL (socket, int, (int domain, int type, int protocol)); +_GL_CXXALIAS_RPL (socket, int, (int domain, int type, int protocol)); +# else +_GL_CXXALIAS_SYS (socket, int, (int domain, int type, int protocol)); +# endif +_GL_CXXALIASWARN (socket); +#elif @HAVE_WINSOCK2_H@ +# undef socket +# define socket socket_used_without_requesting_gnulib_module_socket +#elif defined GNULIB_POSIXCHECK +# undef socket +# if HAVE_RAW_DECL_SOCKET +_GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - " + "use gnulib module socket for portability"); +# endif +#endif + +#if @GNULIB_CONNECT@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef connect +# define connect rpl_connect +# endif +_GL_FUNCDECL_RPL (connect, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (connect, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen)); +# else +_GL_CXXALIAS_SYS (connect, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen)); +# endif +_GL_CXXALIASWARN (connect); +#elif @HAVE_WINSOCK2_H@ +# undef connect +# define connect socket_used_without_requesting_gnulib_module_connect +#elif defined GNULIB_POSIXCHECK +# undef connect +# if HAVE_RAW_DECL_CONNECT +_GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - " + "use gnulib module connect for portability"); +# endif +#endif + +#if @GNULIB_ACCEPT@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef accept +# define accept rpl_accept +# endif +_GL_FUNCDECL_RPL (accept, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +_GL_CXXALIAS_RPL (accept, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# else +/* Need to cast, because on Solaris 10 systems, the third parameter is + void *addrlen. */ +_GL_CXXALIAS_SYS_CAST (accept, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# endif +_GL_CXXALIASWARN (accept); +#elif @HAVE_WINSOCK2_H@ +# undef accept +# define accept accept_used_without_requesting_gnulib_module_accept +#elif defined GNULIB_POSIXCHECK +# undef accept +# if HAVE_RAW_DECL_ACCEPT +_GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - " + "use gnulib module accept for portability"); +# endif +#endif + +#if @GNULIB_BIND@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef bind +# define bind rpl_bind +# endif +_GL_FUNCDECL_RPL (bind, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (bind, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen)); +# else +_GL_CXXALIAS_SYS (bind, int, + (int fd, const struct sockaddr *addr, socklen_t addrlen)); +# endif +_GL_CXXALIASWARN (bind); +#elif @HAVE_WINSOCK2_H@ +# undef bind +# define bind bind_used_without_requesting_gnulib_module_bind +#elif defined GNULIB_POSIXCHECK +# undef bind +# if HAVE_RAW_DECL_BIND +_GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - " + "use gnulib module bind for portability"); +# endif +#endif + +#if @GNULIB_GETPEERNAME@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getpeername +# define getpeername rpl_getpeername +# endif +_GL_FUNCDECL_RPL (getpeername, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (getpeername, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# else +/* Need to cast, because on Solaris 10 systems, the third parameter is + void *addrlen. */ +_GL_CXXALIAS_SYS_CAST (getpeername, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# endif +_GL_CXXALIASWARN (getpeername); +#elif @HAVE_WINSOCK2_H@ +# undef getpeername +# define getpeername getpeername_used_without_requesting_gnulib_module_getpeername +#elif defined GNULIB_POSIXCHECK +# undef getpeername +# if HAVE_RAW_DECL_GETPEERNAME +_GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - " + "use gnulib module getpeername for portability"); +# endif +#endif + +#if @GNULIB_GETSOCKNAME@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getsockname +# define getsockname rpl_getsockname +# endif +_GL_FUNCDECL_RPL (getsockname, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (getsockname, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# else +/* Need to cast, because on Solaris 10 systems, the third parameter is + void *addrlen. */ +_GL_CXXALIAS_SYS_CAST (getsockname, int, + (int fd, struct sockaddr *addr, socklen_t *addrlen)); +# endif +_GL_CXXALIASWARN (getsockname); +#elif @HAVE_WINSOCK2_H@ +# undef getsockname +# define getsockname getsockname_used_without_requesting_gnulib_module_getsockname +#elif defined GNULIB_POSIXCHECK +# undef getsockname +# if HAVE_RAW_DECL_GETSOCKNAME +_GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - " + "use gnulib module getsockname for portability"); +# endif +#endif + +#if @GNULIB_GETSOCKOPT@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getsockopt +# define getsockopt rpl_getsockopt +# endif +_GL_FUNCDECL_RPL (getsockopt, int, (int fd, int level, int optname, + void *optval, socklen_t *optlen) + _GL_ARG_NONNULL ((4, 5))); +_GL_CXXALIAS_RPL (getsockopt, int, (int fd, int level, int optname, + void *optval, socklen_t *optlen)); +# else +/* Need to cast, because on Solaris 10 systems, the fifth parameter is + void *optlen. */ +_GL_CXXALIAS_SYS_CAST (getsockopt, int, (int fd, int level, int optname, + void *optval, socklen_t *optlen)); +# endif +_GL_CXXALIASWARN (getsockopt); +#elif @HAVE_WINSOCK2_H@ +# undef getsockopt +# define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt +#elif defined GNULIB_POSIXCHECK +# undef getsockopt +# if HAVE_RAW_DECL_GETSOCKOPT +_GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - " + "use gnulib module getsockopt for portability"); +# endif +#endif + +#if @GNULIB_LISTEN@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef listen +# define listen rpl_listen +# endif +_GL_FUNCDECL_RPL (listen, int, (int fd, int backlog)); +_GL_CXXALIAS_RPL (listen, int, (int fd, int backlog)); +# else +_GL_CXXALIAS_SYS (listen, int, (int fd, int backlog)); +# endif +_GL_CXXALIASWARN (listen); +#elif @HAVE_WINSOCK2_H@ +# undef listen +# define listen listen_used_without_requesting_gnulib_module_listen +#elif defined GNULIB_POSIXCHECK +# undef listen +# if HAVE_RAW_DECL_LISTEN +_GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - " + "use gnulib module listen for portability"); +# endif +#endif + +#if @GNULIB_RECV@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef recv +# define recv rpl_recv +# endif +_GL_FUNCDECL_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); +# else +_GL_CXXALIAS_SYS (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); +# endif +_GL_CXXALIASWARN (recv); +#elif @HAVE_WINSOCK2_H@ +# undef recv +# define recv recv_used_without_requesting_gnulib_module_recv +#elif defined GNULIB_POSIXCHECK +# undef recv +# if HAVE_RAW_DECL_RECV +_GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - " + "use gnulib module recv for portability"); +# endif +#endif + +#if @GNULIB_SEND@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef send +# define send rpl_send +# endif +_GL_FUNCDECL_RPL (send, ssize_t, + (int fd, const void *buf, size_t len, int flags) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (send, ssize_t, + (int fd, const void *buf, size_t len, int flags)); +# else +_GL_CXXALIAS_SYS (send, ssize_t, + (int fd, const void *buf, size_t len, int flags)); +# endif +_GL_CXXALIASWARN (send); +#elif @HAVE_WINSOCK2_H@ +# undef send +# define send send_used_without_requesting_gnulib_module_send +#elif defined GNULIB_POSIXCHECK +# undef send +# if HAVE_RAW_DECL_SEND +_GL_WARN_ON_USE (send, "send is not always POSIX compliant - " + "use gnulib module send for portability"); +# endif +#endif + +#if @GNULIB_RECVFROM@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef recvfrom +# define recvfrom rpl_recvfrom +# endif +_GL_FUNCDECL_RPL (recvfrom, ssize_t, + (int fd, void *buf, size_t len, int flags, + struct sockaddr *from, socklen_t *fromlen) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (recvfrom, ssize_t, + (int fd, void *buf, size_t len, int flags, + struct sockaddr *from, socklen_t *fromlen)); +# else +/* Need to cast, because on Solaris 10 systems, the sixth parameter is + void *fromlen. */ +_GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t, + (int fd, void *buf, size_t len, int flags, + struct sockaddr *from, socklen_t *fromlen)); +# endif +_GL_CXXALIASWARN (recvfrom); +#elif @HAVE_WINSOCK2_H@ +# undef recvfrom +# define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom +#elif defined GNULIB_POSIXCHECK +# undef recvfrom +# if HAVE_RAW_DECL_RECVFROM +_GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - " + "use gnulib module recvfrom for portability"); +# endif +#endif + +#if @GNULIB_SENDTO@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef sendto +# define sendto rpl_sendto +# endif +_GL_FUNCDECL_RPL (sendto, ssize_t, + (int fd, const void *buf, size_t len, int flags, + const struct sockaddr *to, socklen_t tolen) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (sendto, ssize_t, + (int fd, const void *buf, size_t len, int flags, + const struct sockaddr *to, socklen_t tolen)); +# else +_GL_CXXALIAS_SYS (sendto, ssize_t, + (int fd, const void *buf, size_t len, int flags, + const struct sockaddr *to, socklen_t tolen)); +# endif +_GL_CXXALIASWARN (sendto); +#elif @HAVE_WINSOCK2_H@ +# undef sendto +# define sendto sendto_used_without_requesting_gnulib_module_sendto +#elif defined GNULIB_POSIXCHECK +# undef sendto +# if HAVE_RAW_DECL_SENDTO +_GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - " + "use gnulib module sendto for portability"); +# endif +#endif + +#if @GNULIB_SETSOCKOPT@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef setsockopt +# define setsockopt rpl_setsockopt +# endif +_GL_FUNCDECL_RPL (setsockopt, int, (int fd, int level, int optname, + const void * optval, socklen_t optlen) + _GL_ARG_NONNULL ((4))); +_GL_CXXALIAS_RPL (setsockopt, int, (int fd, int level, int optname, + const void * optval, socklen_t optlen)); +# else +_GL_CXXALIAS_SYS (setsockopt, int, (int fd, int level, int optname, + const void * optval, socklen_t optlen)); +# endif +_GL_CXXALIASWARN (setsockopt); +#elif @HAVE_WINSOCK2_H@ +# undef setsockopt +# define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt +#elif defined GNULIB_POSIXCHECK +# undef setsockopt +# if HAVE_RAW_DECL_SETSOCKOPT +_GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - " + "use gnulib module setsockopt for portability"); +# endif +#endif + +#if @GNULIB_SHUTDOWN@ +# if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef shutdown +# define shutdown rpl_shutdown +# endif +_GL_FUNCDECL_RPL (shutdown, int, (int fd, int how)); +_GL_CXXALIAS_RPL (shutdown, int, (int fd, int how)); +# else +_GL_CXXALIAS_SYS (shutdown, int, (int fd, int how)); +# endif +_GL_CXXALIASWARN (shutdown); +#elif @HAVE_WINSOCK2_H@ +# undef shutdown +# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown +#elif defined GNULIB_POSIXCHECK +# undef shutdown +# if HAVE_RAW_DECL_SHUTDOWN +_GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - " + "use gnulib module shutdown for portability"); +# endif +#endif + +#if @HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select select_used_without_including_sys_select_h +# else + _GL_WARN_ON_USE (select, + "select() used without including "); +# endif +#endif + +#if @GNULIB_ACCEPT4@ +/* Accept a connection on a socket, with specific opening flags. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + See also the Linux man page at + . */ +# if @HAVE_ACCEPT4@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define accept4 rpl_accept4 +# endif +_GL_FUNCDECL_RPL (accept4, int, + (int sockfd, struct sockaddr *addr, socklen_t *addrlen, + int flags)); +_GL_CXXALIAS_RPL (accept4, int, + (int sockfd, struct sockaddr *addr, socklen_t *addrlen, + int flags)); +# else +_GL_FUNCDECL_SYS (accept4, int, + (int sockfd, struct sockaddr *addr, socklen_t *addrlen, + int flags)); +_GL_CXXALIAS_SYS (accept4, int, + (int sockfd, struct sockaddr *addr, socklen_t *addrlen, + int flags)); +# endif +_GL_CXXALIASWARN (accept4); +#elif defined GNULIB_POSIXCHECK +# undef accept4 +# if HAVE_RAW_DECL_ACCEPT4 +_GL_WARN_ON_USE (accept4, "accept4 is unportable - " + "use gnulib module accept4 for portability"); +# endif +#endif + +#endif /* _GL_SYS_SOCKET_H */ +#endif /* _GL_SYS_SOCKET_H */ +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sys_stat.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_stat.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sys_stat.in.h 2007-10-03 22:24:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_stat.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,9 +1,9 @@ /* Provide a more complete sys/stat header file. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -21,14 +21,45 @@ incomplete. It is intended to provide definitions and prototypes needed by an application. Start with what the system provides. */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_system_sys_stat_h +/* Special invocation convention. */ + +#@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_SYS_STAT_H +/* Get nlink_t. */ +#include + +/* Get struct timespec. */ +#include + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ #ifndef _GL_SYS_STAT_H #define _GL_SYS_STAT_H +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Before doing "#define mkdir rpl_mkdir" below, we need to include all + headers that may declare mkdir(). */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include /* mingw32, mingw64 */ +# include /* mingw64 */ +#endif + #ifndef S_IFMT # define S_IFMT 0170000 #endif @@ -255,17 +286,179 @@ # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) #endif +/* Macros for futimens and utimensat. */ +#ifndef UTIME_NOW +# define UTIME_NOW (-1) +# define UTIME_OMIT (-2) +#endif + + +#if @GNULIB_FCHMODAT@ +# if !@HAVE_FCHMODAT@ +_GL_FUNCDECL_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag)); +_GL_CXXALIASWARN (fchmodat); +#elif defined GNULIB_POSIXCHECK +# undef fchmodat +# if HAVE_RAW_DECL_FCHMODAT +_GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @REPLACE_FSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fstat rpl_fstat +# endif +_GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); +#else +_GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); +#endif +_GL_CXXALIASWARN (fstat); + + +#if @GNULIB_FSTATAT@ +# if @REPLACE_FSTATAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fstatat +# define fstatat rpl_fstatat +# endif +_GL_FUNCDECL_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# else +# if !@HAVE_FSTATAT@ +_GL_FUNCDECL_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# endif +_GL_CXXALIASWARN (fstatat); +#elif defined GNULIB_POSIXCHECK +# undef fstatat +# if HAVE_RAW_DECL_FSTATAT +_GL_WARN_ON_USE (fstatat, "fstatat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FUTIMENS@ +# if @REPLACE_FUTIMENS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef futimens +# define futimens rpl_futimens +# endif +_GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); +_GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); +# else +# if !@HAVE_FUTIMENS@ +_GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIASWARN (futimens); +#elif defined GNULIB_POSIXCHECK +# undef futimens +# if HAVE_RAW_DECL_FUTIMENS +_GL_WARN_ON_USE (futimens, "futimens is not portable - " + "use gnulib module futimens for portability"); +# endif +#endif + + +#if @GNULIB_LCHMOD@ +/* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME + denotes a symbolic link. */ +# if !@HAVE_LCHMOD@ +/* The lchmod replacement follows symbolic links. Callers should take + this into account; lchmod should be applied only to arguments that + are known to not be symbolic links. On hosts that lack lchmod, + this can lead to race conditions between the check and the + invocation of lchmod, but we know of no workarounds that are + reliable in general. You might try requesting support for lchmod + from your operating system supplier. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lchmod chmod +# endif +/* Need to cast, because on mingw, the second parameter of chmod is + int mode. */ +_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, + (const char *filename, mode_t mode)); +# else +# if 0 /* assume already declared */ +_GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); +# endif +# if @HAVE_LCHMOD@ +_GL_CXXALIASWARN (lchmod); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lchmod +# if HAVE_RAW_DECL_LCHMOD +_GL_WARN_ON_USE (lchmod, "lchmod is unportable - " + "use gnulib module lchmod for portability"); +# endif +#endif + + +#if @GNULIB_LSTAT@ +# if ! @HAVE_LSTAT@ /* mingw does not support symlinks, therefore it does not have lstat. But without links, stat does just fine. */ -#if ! @HAVE_LSTAT@ -# define lstat stat +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lstat stat +# endif +_GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf)); +# elif @REPLACE_LSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lstat +# define lstat rpl_lstat +# endif +_GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf)); +# else +_GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf)); +# endif +# if @HAVE_LSTAT@ +_GL_CXXALIASWARN (lstat); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lstat +# if HAVE_RAW_DECL_LSTAT +_GL_WARN_ON_USE (lstat, "lstat is unportable - " + "use gnulib module lstat for portability"); +# endif #endif + +#if @REPLACE_MKDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkdir +# define mkdir rpl_mkdir +# endif +_GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +#else /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. Additionally, it declares _mkdir (and depending on compile flags, an - alias mkdir), only in the nonstandard io.h. */ -#if ! @HAVE_DECL_MKDIR@ && @HAVE_IO_H@ -# include + alias mkdir), only in the nonstandard includes and , + which are included above. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ static inline int rpl_mkdir (char const *name, mode_t mode) @@ -273,8 +466,175 @@ return _mkdir (name); } -# define mkdir rpl_mkdir +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkdir rpl_mkdir +# endif +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +# else +_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); +# endif +#endif +_GL_CXXALIASWARN (mkdir); + + +#if @GNULIB_MKDIRAT@ +# if !@HAVE_MKDIRAT@ +_GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkdirat); +#elif defined GNULIB_POSIXCHECK +# undef mkdirat +# if HAVE_RAW_DECL_MKDIRAT +_GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFO@ +# if @REPLACE_MKFIFO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkfifo +# define mkfifo rpl_mkfifo +# endif +_GL_FUNCDECL_RPL (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkfifo, int, (char const *file, mode_t mode)); +# else +# if !@HAVE_MKFIFO@ +_GL_FUNCDECL_SYS (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); +# endif +_GL_CXXALIASWARN (mkfifo); +#elif defined GNULIB_POSIXCHECK +# undef mkfifo +# if HAVE_RAW_DECL_MKFIFO +_GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " + "use gnulib module mkfifo for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFOAT@ +# if !@HAVE_MKFIFOAT@ +_GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkfifoat); +#elif defined GNULIB_POSIXCHECK +# undef mkfifoat +# if HAVE_RAW_DECL_MKFIFOAT +_GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_MKNOD@ +# if @REPLACE_MKNOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mknod +# define mknod rpl_mknod +# endif +_GL_FUNCDECL_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# else +# if !@HAVE_MKNOD@ +_GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# endif +_GL_CXXALIASWARN (mknod); +#elif defined GNULIB_POSIXCHECK +# undef mknod +# if HAVE_RAW_DECL_MKNOD +_GL_WARN_ON_USE (mknod, "mknod is not portable - " + "use gnulib module mknod for portability"); +# endif +#endif + + +#if @GNULIB_MKNODAT@ +# if !@HAVE_MKNODAT@ +_GL_FUNCDECL_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev)); +_GL_CXXALIASWARN (mknodat); +#elif defined GNULIB_POSIXCHECK +# undef mknodat +# if HAVE_RAW_DECL_MKNODAT +_GL_WARN_ON_USE (mknodat, "mknodat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_STAT@ +# if @REPLACE_STAT@ +/* We can't use the object-like #define stat rpl_stat, because of + struct stat. This means that rpl_stat will not be used if the user + does (stat)(a,b). Oh well. */ +# undef stat +# ifdef _LARGE_FILES + /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, + so we have to replace stat64() instead of stat(). */ +# define stat stat64 +# undef stat64 +# define stat64(name, st) rpl_stat (name, st) +# else /* !_LARGE_FILES */ +# define stat(name, st) rpl_stat (name, st) +# endif /* !_LARGE_FILES */ +_GL_EXTERN_C int stat (const char *name, struct stat *buf) _GL_ARG_NONNULL ((1, 2)); +# endif +#elif defined GNULIB_POSIXCHECK +# undef stat +# if HAVE_RAW_DECL_STAT +_GL_WARN_ON_USE (stat, "stat is unportable - " + "use gnulib module stat for portability"); +# endif +#endif + + +#if @GNULIB_UTIMENSAT@ +# if @REPLACE_UTIMENSAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef utimensat +# define utimensat rpl_utimensat +# endif +_GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# else +# if !@HAVE_UTIMENSAT@ +_GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# endif +_GL_CXXALIASWARN (utimensat); +#elif defined GNULIB_POSIXCHECK +# undef utimensat +# if HAVE_RAW_DECL_UTIMENSAT +_GL_WARN_ON_USE (utimensat, "utimensat is not portable - " + "use gnulib module utimensat for portability"); +# endif #endif + #endif /* _GL_SYS_STAT_H */ #endif /* _GL_SYS_STAT_H */ +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sys_time.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_time.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sys_time.in.h 2007-10-03 22:24:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_time.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide a more complete sys/time.h. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,6 +18,10 @@ /* Written by Paul Eggert. */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined _GL_SYS_TIME_H /* Simply delegate to the system's header, without adding anything. */ @@ -35,6 +39,16 @@ # include # endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +# ifdef __cplusplus +extern "C" { +# endif + # if ! @HAVE_STRUCT_TIMEVAL@ struct timeval { @@ -43,10 +57,39 @@ }; # endif -# if @REPLACE_GETTIMEOFDAY@ +# ifdef __cplusplus +} +# endif + +# if @GNULIB_GETTIMEOFDAY@ +# if @REPLACE_GETTIMEOFDAY@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gettimeofday +# define gettimeofday rpl_gettimeofday +# endif +_GL_FUNCDECL_RPL (gettimeofday, int, + (struct timeval *restrict, void *restrict) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (gettimeofday, int, + (struct timeval *restrict, void *restrict)); +# else +# if !@HAVE_GETTIMEOFDAY@ +_GL_FUNCDECL_SYS (gettimeofday, int, + (struct timeval *restrict, void *restrict) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on glibc systems, by default, the second argument is + struct timezone *. */ +_GL_CXXALIAS_SYS_CAST (gettimeofday, int, + (struct timeval *restrict, void *restrict)); +# endif +_GL_CXXALIASWARN (gettimeofday); +# elif defined GNULIB_POSIXCHECK # undef gettimeofday -# define gettimeofday rpl_gettimeofday -int gettimeofday (struct timeval *restrict, void *restrict); +# if HAVE_RAW_DECL_GETTIMEOFDAY +_GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " + "use gnulib module gettimeofday for portability"); +# endif # endif #endif /* _GL_SYS_TIME_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/sys_wait.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_wait.in.h --- gettext-0.17/gettext-tools/gnulib-lib/sys_wait.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/sys_wait.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,106 @@ +/* A POSIX-like . + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + +#ifndef _GL_SYS_WAIT_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +# @INCLUDE_NEXT@ @NEXT_SYS_WAIT_H@ +#endif + +#ifndef _GL_SYS_WAIT_H +#define _GL_SYS_WAIT_H + +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +/* Unix API. */ + +/* The following macros apply to an argument x, that is a status of a process, + as returned by waitpid(). + On nearly all systems, including Linux/x86, WEXITSTATUS are bits 15..8 and + WTERMSIG are bits 7..0, while BeOS uses the opposite. Therefore programs + have to use the abstract macros. */ + +/* For valid x, exactly one of WIFSIGNALED(x), WIFEXITED(x), WIFSTOPPED(x) + is true. */ +# ifndef WIFSIGNALED +# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f) +# endif +# ifndef WIFEXITED +# define WIFEXITED(x) (WTERMSIG (x) == 0) +# endif +# ifndef WIFSTOPPED +# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f) +# endif + +/* The termination signal. Only to be accessed if WIFSIGNALED(x) is true. */ +# ifndef WTERMSIG +# define WTERMSIG(x) ((x) & 0x7f) +# endif + +/* The exit status. Only to be accessed if WIFEXITED(x) is true. */ +# ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) +# endif + +/* True if the process dumped core. Not standardized by POSIX. */ +# ifndef WCOREDUMP +# define WCOREDUMP(x) ((x) & 0x80) +# endif + +# ifdef __cplusplus +extern "C" { +# endif + +/* Declarations of functions. */ + +# ifdef __cplusplus +} +# endif + +#else +/* Native Windows API. */ + +# include + +# define waitpid(pid,statusp,options) _cwait (statusp, pid, WAIT_CHILD) + +/* The following macros apply to an argument x, that is a status of a process, + as returned by waitpid() or, equivalently, _cwait() or GetExitCodeProcess(). + This value is simply an 'int', not composed of bit fields. */ + +/* When an unhandled fatal signal terminates a process, the exit code is 3. */ +# define WIFSIGNALED(x) ((x) == 3) +# define WIFEXITED(x) ((x) != 3) +# define WIFSTOPPED(x) 0 + +/* The signal that terminated a process is not known posthum. */ +# define WTERMSIG(x) SIGTERM + +# define WEXITSTATUS(x) (x) + +/* There are no core dumps. */ +# define WCOREDUMP(x) 0 + +#endif + +#endif /* _GL_SYS_WAIT_H */ +#endif /* _GL_SYS_WAIT_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tempname.c gettext-0.18.1.1/gettext-tools/gnulib-lib/tempname.c --- gettext-0.17/gettext-tools/gnulib-lib/tempname.c 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tempname.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,8 +1,6 @@ /* tempname.c - generate the name of a temporary file. - Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, - Inc. + Copyright (C) 1991-2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,10 +38,13 @@ # define TMP_MAX 238328 #endif #ifndef __GT_FILE -# define __GT_FILE 0 -# define __GT_BIGFILE 1 -# define __GT_DIR 2 -# define __GT_NOCREATE 3 +# define __GT_FILE 0 +# define __GT_DIR 1 +# define __GT_NOCREATE 2 +#endif +#if !_LIBC && (GT_FILE != __GT_FILE || GT_DIR != __GT_DIR \ + || GT_NOCREATE != __GT_NOCREATE) +# error report this to bug-gnulib@gnu.org #endif #include @@ -59,16 +60,14 @@ #if _LIBC # define struct_stat64 struct stat64 -# define small_open __open -# define large_open __open64 #else # define struct_stat64 struct stat -# define small_open open -# define large_open open # define __gen_tempname gen_tempname # define __getpid getpid # define __gettimeofday gettimeofday # define __mkdir mkdir +# define __open open +# define __open64 open # define __lxstat64(version, file, buf) lstat (file, buf) # define __xstat64(version, file, buf) stat (file, buf) #endif @@ -81,17 +80,17 @@ # include # if HP_TIMING_AVAIL # define RANDOM_BITS(Var) \ - if (__builtin_expect (value == UINT64_C (0), 0)) \ - { \ - /* If this is the first time this function is used initialize \ - the variable we accumulate the value in to some somewhat \ - random value. If we'd not do this programs at startup time \ - might have a reduced set of possible names, at least on slow \ - machines. */ \ - struct timeval tv; \ - __gettimeofday (&tv, NULL); \ - value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \ - } \ + if (__builtin_expect (value == UINT64_C (0), 0)) \ + { \ + /* If this is the first time this function is used initialize \ + the variable we accumulate the value in to some somewhat \ + random value. If we'd not do this programs at startup time \ + might have a reduced set of possible names, at least on slow \ + machines. */ \ + struct timeval tv; \ + __gettimeofday (&tv, NULL); \ + value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \ + } \ HP_TIMING_NOW (Var) # endif #endif @@ -122,7 +121,7 @@ enough space in TMPL. */ int __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, - int try_tmpdir) + int try_tmpdir) { const char *d; size_t dlen, plen; @@ -136,35 +135,35 @@ { plen = strlen (pfx); if (plen > 5) - plen = 5; + plen = 5; } if (try_tmpdir) { d = __secure_getenv ("TMPDIR"); if (d != NULL && direxists (d)) - dir = d; + dir = d; else if (dir != NULL && direxists (dir)) - /* nothing */ ; + /* nothing */ ; else - dir = NULL; + dir = NULL; } if (dir == NULL) { if (direxists (P_tmpdir)) - dir = P_tmpdir; + dir = P_tmpdir; else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp")) - dir = "/tmp"; + dir = "/tmp"; else - { - __set_errno (ENOENT); - return -1; - } + { + __set_errno (ENOENT); + return -1; + } } dlen = strlen (dir); while (dlen > 1 && dir[dlen - 1] == '/') - dlen--; /* remove trailing slashes */ + dlen--; /* remove trailing slashes */ /* check we have room for "${dir}/${pfx}XXXXXX\0" */ if (tmpl_len < dlen + 1 + plen + 6 + 1) @@ -183,21 +182,20 @@ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; /* Generate a temporary file name based on TMPL. TMPL must match the - rules for mk[s]temp (i.e. end in "XXXXXX"). The name constructed - does not exist at the time of the call to __gen_tempname. TMPL is - overwritten with the result. + rules for mk[s]temp (i.e. end in "XXXXXX", possibly with a suffix). + The name constructed does not exist at the time of the call to + __gen_tempname. TMPL is overwritten with the result. KIND may be one of: - __GT_NOCREATE: simply verify that the name does not exist - at the time of the call. - __GT_FILE: create the file using open(O_CREAT|O_EXCL) - and return a read-write fd. The file is mode 0600. - __GT_BIGFILE: same as __GT_FILE but use open64(). - __GT_DIR: create a directory, which will be mode 0700. + __GT_NOCREATE: simply verify that the name does not exist + at the time of the call. + __GT_FILE: create the file using open(O_CREAT|O_EXCL) + and return a read-write fd. The file is mode 0600. + __GT_DIR: create a directory, which will be mode 0700. We use a clever algorithm to get hard-to-predict names. */ int -__gen_tempname (char *tmpl, int kind) +__gen_tempname (char *tmpl, int suffixlen, int flags, int kind) { int len; char *XXXXXX; @@ -225,14 +223,14 @@ #endif len = strlen (tmpl); - if (len < 6 || strcmp (&tmpl[len - 6], "XXXXXX")) + if (len < 6 + suffixlen || memcmp (&tmpl[len - 6 - suffixlen], "XXXXXX", 6)) { __set_errno (EINVAL); return -1; } /* This is where the Xs start. */ - XXXXXX = &tmpl[len - 6]; + XXXXXX = &tmpl[len - 6 - suffixlen]; /* Get some more or less random data. */ #ifdef RANDOM_BITS @@ -264,48 +262,47 @@ XXXXXX[5] = letters[v % 62]; switch (kind) - { - case __GT_FILE: - fd = small_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); - break; - - case __GT_BIGFILE: - fd = large_open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); - break; - - case __GT_DIR: - fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR); - break; - - case __GT_NOCREATE: - /* This case is backward from the other three. __gen_tempname - succeeds if __xstat fails because the name does not exist. - Note the continue to bypass the common logic at the bottom - of the loop. */ - if (__lxstat64 (_STAT_VER, tmpl, &st) < 0) - { - if (errno == ENOENT) - { - __set_errno (save_errno); - return 0; - } - else - /* Give up now. */ - return -1; - } - continue; - - default: - assert (! "invalid KIND in __gen_tempname"); - } + { + case __GT_FILE: + fd = __open (tmpl, + (flags & ~O_ACCMODE) + | O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); + break; + + case __GT_DIR: + fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR); + break; + + case __GT_NOCREATE: + /* This case is backward from the other three. __gen_tempname + succeeds if __xstat fails because the name does not exist. + Note the continue to bypass the common logic at the bottom + of the loop. */ + if (__lxstat64 (_STAT_VER, tmpl, &st) < 0) + { + if (errno == ENOENT) + { + __set_errno (save_errno); + return 0; + } + else + /* Give up now. */ + return -1; + } + continue; + + default: + assert (! "invalid KIND in __gen_tempname"); + abort (); + } if (fd >= 0) - { - __set_errno (save_errno); - return fd; - } + { + __set_errno (save_errno); + return fd; + } else if (errno != EEXIST) - return -1; + return -1; } /* We got out of the loop because we ran out of combinations to try. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tempname.h gettext-0.18.1.1/gettext-tools/gnulib-lib/tempname.h --- gettext-0.17/gettext-tools/gnulib-lib/tempname.h 2007-10-07 20:29:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tempname.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,6 +1,6 @@ /* Create a temporary file or directory. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,23 +17,34 @@ /* header written by Eric Blake */ -/* In gnulib, always prefer large files. GT_FILE maps to - __GT_BIGFILE, not __GT_FILE, for a reason. */ -#define GT_FILE 1 -#define GT_DIR 2 -#define GT_NOCREATE 3 +#ifndef GL_TEMPNAME_H +# define GL_TEMPNAME_H + +# include + +# ifdef __GT_FILE +# define GT_FILE __GT_FILE +# define GT_DIR __GT_DIR +# define GT_NOCREATE __GT_NOCREATE +# else +# define GT_FILE 0 +# define GT_DIR 1 +# define GT_NOCREATE 2 +# endif /* Generate a temporary file name based on TMPL. TMPL must match the - rules for mk[s]temp (i.e. end in "XXXXXX"). The name constructed - does not exist at the time of the call to gen_tempname. TMPL is - overwritten with the result. + rules for mk[s]temp (i.e. end in "XXXXXX", possibly with a suffix). + The name constructed does not exist at the time of the call to + gen_tempname. TMPL is overwritten with the result. KIND may be one of: - GT_NOCREATE: simply verify that the name does not exist - at the time of the call. - GT_FILE: create a large file using open(O_CREAT|O_EXCL) - and return a read-write fd. The file is mode 0600. - GT_DIR: create a directory, which will be mode 0700. + GT_NOCREATE: simply verify that the name does not exist + at the time of the call. + GT_FILE: create a large file using open(O_CREAT|O_EXCL) + and return a read-write fd. The file is mode 0600. + GT_DIR: create a directory, which will be mode 0700. We use a clever algorithm to get hard-to-predict names. */ -extern int gen_tempname (char *tmpl, int kind); +extern int gen_tempname (char *tmpl, int suffixlen, int flags, int kind); + +#endif /* GL_TEMPNAME_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/term-ostream.c 2007-10-07 20:55:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.c 2010-06-06 18:36:40.000000000 +0000 @@ -2,7 +2,7 @@ #line 1 "term-ostream.oo.c" /* Output stream for attributed text, producing ANSI escape sequences. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -82,57 +82,57 @@ if (r > g) { if (b > r) - { - /* b > r > g, so max = b, min = g */ - result->hue = 4.0f + (float) (r - g) / (float) (b - g); - result->saturation = 1.0f - (float) g / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > r > g, so max = b, min = g */ + result->hue = 4.0f + (float) (r - g) / (float) (b - g); + result->saturation = 1.0f - (float) g / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b <= g) - { - /* r > g >= b, so max = r, min = b */ - result->hue = 0.0f + (float) (g - b) / (float) (r - b); - result->saturation = 1.0f - (float) b / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r > g >= b, so max = r, min = b */ + result->hue = 0.0f + (float) (g - b) / (float) (r - b); + result->saturation = 1.0f - (float) b / (float) r; + result->brightness = (float) r / 255.0f; + } else - { - /* r >= b > g, so max = r, min = g */ - result->hue = 6.0f - (float) (b - g) / (float) (r - g); - result->saturation = 1.0f - (float) g / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r >= b > g, so max = r, min = g */ + result->hue = 6.0f - (float) (b - g) / (float) (r - g); + result->saturation = 1.0f - (float) g / (float) r; + result->brightness = (float) r / 255.0f; + } } else { if (b > g) - { - /* b > g >= r, so max = b, min = r */ - result->hue = 4.0f - (float) (g - r) / (float) (b - r); - result->saturation = 1.0f - (float) r / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > g >= r, so max = b, min = r */ + result->hue = 4.0f - (float) (g - r) / (float) (b - r); + result->saturation = 1.0f - (float) r / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b < r) - { - /* g >= r > b, so max = g, min = b */ - result->hue = 2.0f - (float) (r - b) / (float) (g - b); - result->saturation = 1.0f - (float) b / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= r > b, so max = g, min = b */ + result->hue = 2.0f - (float) (r - b) / (float) (g - b); + result->saturation = 1.0f - (float) b / (float) g; + result->brightness = (float) g / 255.0f; + } else if (g > r) - { - /* g >= b >= r, g > r, so max = g, min = r */ - result->hue = 2.0f + (float) (b - r) / (float) (g - r); - result->saturation = 1.0f - (float) r / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= b >= r, g > r, so max = g, min = r */ + result->hue = 2.0f + (float) (b - r) / (float) (g - r); + result->saturation = 1.0f - (float) r / (float) g; + result->brightness = (float) g / 255.0f; + } else - { - /* r = g = b. A grey color. */ - result->hue = 0; /* arbitrary */ - result->saturation = 0; - result->brightness = (float) r / 255.0f; - } + { + /* r = g = b. A grey color. */ + result->hue = 0; /* arbitrary */ + result->saturation = 0; + result->brightness = (float) r / 255.0f; + } } } @@ -146,11 +146,11 @@ float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2π] */ float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2π] */ float delta_x = color1->saturation * cosf (angle1) - - color2->saturation * cosf (angle2); + - color2->saturation * cosf (angle2); float delta_y = color1->saturation * sinf (angle1) - - color2->saturation * sinf (angle2); + - color2->saturation * sinf (angle2); float delta_v = color1->brightness - - color2->brightness; + - color2->brightness; return delta_x * delta_x + delta_y * delta_y + delta_v * delta_v; #else @@ -159,11 +159,11 @@ float delta_hue = (color1->hue >= color2->hue ? (color1->hue - color2->hue >= 3.0f - ? 6.0f + color2->hue - color1->hue - : color1->hue - color2->hue) + ? 6.0f + color2->hue - color1->hue + : color1->hue - color2->hue) : (color2->hue - color1->hue >= 3.0f - ? 6.0f + color1->hue - color2->hue - : color2->hue - color1->hue)); + ? 6.0f + color1->hue - color2->hue + : color2->hue - color1->hue)); float min_saturation = (color1->saturation < color2->saturation ? color1->saturation @@ -172,8 +172,8 @@ float delta_brightness = color1->brightness - color2->brightness; return delta_hue * delta_hue * min_saturation - + delta_saturation * delta_saturation * 0.2f - + delta_brightness * delta_brightness * 0.8f; + + delta_saturation * delta_saturation * 0.2f + + delta_brightness * delta_brightness * 0.8f; #endif } @@ -201,14 +201,14 @@ /* Avoid converting a color to grey, or fading out a color too much. */ if (i_hsv.saturation > given_hsv.saturation * 0.5f) - { - float distance = color_distance (&given_hsv, &i_hsv); - if (distance < best_distance) - { - best_index = i; - best_distance = distance; - } - } + { + float distance = color_distance (&given_hsv, &i_hsv); + if (distance < best_distance) + { + best_index = i; + best_distance = distance; + } + } } #if 0 /* Debugging code */ @@ -242,12 +242,12 @@ /* The color model used by the terminal. */ typedef enum { - cm_monochrome, /* No colors. */ - cm_common8, /* Usual terminal with at least 8 colors. */ - cm_xterm8, /* TERM=xterm, with 8 colors. */ - cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ - cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ - cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ + cm_monochrome, /* No colors. */ + cm_common8, /* Usual terminal with at least 8 colors. */ + cm_xterm8, /* TERM=xterm, with 8 colors. */ + cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ + cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ + cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ } colormodel_t; /* ----------------------- cm_monochrome color model ----------------------- */ @@ -298,9 +298,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -356,9 +356,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -404,13 +404,13 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.151f) - return 0; + return 0; else if (luminance < 0.600f) - return 8; + return 8; else if (luminance < 0.949f) - return 7; + return 7; else - return 15; + return 15; } else /* Color approximation. */ @@ -530,31 +530,31 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.090f) - return 0; + return 0; else if (luminance < 0.241f) - return 80; + return 80; else if (luminance < 0.331f) - return 8; + return 8; else if (luminance < 0.406f) - return 81; + return 81; else if (luminance < 0.498f) - return 82; + return 82; else if (luminance < 0.585f) - return 37; + return 37; else if (luminance < 0.680f) - return 84; + return 84; else if (luminance < 0.764f) - return 85; + return 85; else if (luminance < 0.810f) - return 58; + return 58; else if (luminance < 0.857f) - return 86; + return 86; else if (luminance < 0.902f) - return 7; + return 7; else if (luminance < 0.953f) - return 87; + return 87; else - return 15; + return 15; } else /* Color approximation. */ @@ -842,71 +842,71 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.015f) - return 0; + return 0; else if (luminance < 0.051f) - return 232; + return 232; else if (luminance < 0.090f) - return 233; + return 233; else if (luminance < 0.129f) - return 234; + return 234; else if (luminance < 0.157f) - return 235; + return 235; else if (luminance < 0.177f) - return 59; + return 59; else if (luminance < 0.207f) - return 236; + return 236; else if (luminance < 0.247f) - return 237; + return 237; else if (luminance < 0.284f) - return 238; + return 238; else if (luminance < 0.304f) - return 8; + return 8; else if (luminance < 0.319f) - return 239; + return 239; else if (luminance < 0.339f) - return 102; + return 102; else if (luminance < 0.364f) - return 240; + return 240; else if (luminance < 0.404f) - return 241; + return 241; else if (luminance < 0.443f) - return 242; + return 242; else if (luminance < 0.480f) - return 243; + return 243; else if (luminance < 0.500f) - return 145; + return 145; else if (luminance < 0.521f) - return 244; + return 244; else if (luminance < 0.560f) - return 245; + return 245; else if (luminance < 0.600f) - return 246; + return 246; else if (luminance < 0.639f) - return 247; + return 247; else if (luminance < 0.663f) - return 248; + return 248; else if (luminance < 0.682f) - return 188; + return 188; else if (luminance < 0.717f) - return 249; + return 249; else if (luminance < 0.756f) - return 250; + return 250; else if (luminance < 0.796f) - return 251; + return 251; else if (luminance < 0.823f) - return 252; + return 252; else if (luminance < 0.843f) - return 231; + return 231; else if (luminance < 0.874f) - return 253; + return 253; else if (luminance < 0.896f) - return 254; + return 254; else if (luminance < 0.915f) - return 7; + return 7; else if (luminance < 0.966f) - return 255; + return 255; else - return 15; + return 15; } else /* Color approximation. */ @@ -962,13 +962,13 @@ && stream->no_color_video > 0) { /* When colors and attributes can not be represented simultaneously, - we give preference to the color. */ + we give preference to the color. */ if (stream->no_color_video & 2) - /* Colors conflict with underlining. */ - attr.underline = UNDERLINE_OFF; + /* Colors conflict with underlining. */ + attr.underline = UNDERLINE_OFF; if (stream->no_color_video & 32) - /* Colors conflict with bold weight. */ - attr.weight = WEIGHT_NORMAL; + /* Colors conflict with bold weight. */ + attr.weight = WEIGHT_NORMAL; } if (!stream->supports_foreground) attr.color = COLOR_DEFAULT; @@ -1017,13 +1017,13 @@ if (out_fd >= 0) { if (restore_colors != NULL) - tputs (restore_colors, 1, out_char_unchecked); + tputs (restore_colors, 1, out_char_unchecked); if (restore_weight != NULL) - tputs (restore_weight, 1, out_char_unchecked); + tputs (restore_weight, 1, out_char_unchecked); if (restore_posture != NULL) - tputs (restore_posture, 1, out_char_unchecked); + tputs (restore_posture, 1, out_char_unchecked); if (restore_underline != NULL) - tputs (restore_underline, 1, out_char_unchecked); + tputs (restore_underline, 1, out_char_unchecked); } } @@ -1056,7 +1056,7 @@ sigemptyset (&stopping_signal_set); for (i = 0; i < num_stopping_signals; i++) - sigaddset (&stopping_signal_set, stopping_signals[i]); + sigaddset (&stopping_signal_set, stopping_signals[i]); stopping_signal_set_initialized = true; } @@ -1083,10 +1083,10 @@ equal_attributes (attributes_t attr1, attributes_t attr2) { return (attr1.color == attr2.color - && attr1.bgcolor == attr2.bgcolor - && attr1.weight == attr2.weight - && attr1.posture == attr2.posture - && attr1.underline == attr2.underline); + && attr1.bgcolor == attr2.bgcolor + && attr1.weight == attr2.weight + && attr1.posture == attr2.posture + && attr1.underline == attr2.underline); } /* Signal error after full_write failed. */ @@ -1114,7 +1114,7 @@ /* Output escape sequences to switch from OLD_ATTR to NEW_ATTR. */ static void out_attr_change (term_ostream_t stream, - attributes_t old_attr, attributes_t new_attr) + attributes_t old_attr, attributes_t new_attr) { bool cleared_attributes; @@ -1170,20 +1170,20 @@ if ((old_attr.weight != WEIGHT_NORMAL && new_attr.weight == WEIGHT_NORMAL) || (old_attr.posture != POSTURE_NORMAL - && new_attr.posture == POSTURE_NORMAL - /* implies stream->exit_italics_mode == NULL */) + && new_attr.posture == POSTURE_NORMAL + /* implies stream->exit_italics_mode == NULL */) || (old_attr.underline != UNDERLINE_OFF - && new_attr.underline == UNDERLINE_OFF - /* implies stream->exit_underline_mode == NULL */)) + && new_attr.underline == UNDERLINE_OFF + /* implies stream->exit_underline_mode == NULL */)) { tputs (stream->exit_attribute_mode, 1, out_char); /* We don't know exactly what effects exit_attribute_mode has, but - this is the minimum effect: */ + this is the minimum effect: */ old_attr.weight = WEIGHT_NORMAL; if (stream->exit_italics_mode == NULL) - old_attr.posture = POSTURE_NORMAL; + old_attr.posture = POSTURE_NORMAL; if (stream->exit_underline_mode == NULL) - old_attr.underline = UNDERLINE_OFF; + old_attr.underline = UNDERLINE_OFF; cleared_attributes = true; } @@ -1194,87 +1194,87 @@ assert (stream->supports_foreground); assert (new_attr.color != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.color >= 0 && new_attr.color < 8); - if (stream->set_a_foreground != NULL) - tputs (tparm (stream->set_a_foreground, - color_bgr (new_attr.color)), - 1, out_char); - else - tputs (tparm (stream->set_foreground, new_attr.color), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.color >= 0 && new_attr.color < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.color >= 0 && new_attr.color < 16); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.color < 8) - { - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - } - else - { - bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); - } - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm88: - assert (new_attr.color >= 0 && new_attr.color < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 10) - *p++ = '0' + (new_attr.color / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.color >= 0 && new_attr.color < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 100) - *p++ = '0' + (new_attr.color / 100); - if (new_attr.color >= 10) - *p++ = '0' + ((new_attr.color % 100) / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.color >= 0 && new_attr.color < 8); + if (stream->set_a_foreground != NULL) + tputs (tparm (stream->set_a_foreground, + color_bgr (new_attr.color)), + 1, out_char); + else + tputs (tparm (stream->set_foreground, new_attr.color), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.color >= 0 && new_attr.color < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.color >= 0 && new_attr.color < 16); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.color < 8) + { + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + } + else + { + bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); + } + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm88: + assert (new_attr.color >= 0 && new_attr.color < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 10) + *p++ = '0' + (new_attr.color / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.color >= 0 && new_attr.color < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 100) + *p++ = '0' + (new_attr.color / 100); + if (new_attr.color >= 10) + *p++ = '0' + ((new_attr.color % 100) / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.bgcolor != old_attr.bgcolor || (cleared_attributes && new_attr.bgcolor != COLOR_DEFAULT)) @@ -1282,90 +1282,90 @@ assert (stream->supports_background); assert (new_attr.bgcolor != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - if (stream->set_a_background != NULL) - tputs (tparm (stream->set_a_background, - color_bgr (new_attr.bgcolor)), - 1, out_char); - else - tputs (tparm (stream->set_background, new_attr.bgcolor), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); - { - char bytes[6]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.bgcolor < 8) - { - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - else - { - bytes[2] = '1'; bytes[3] = '0'; - bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; - if (full_write (out_fd, bytes, 6) < 6) - out_error (); - } - } - break; - case cm_xterm88: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 10) - *p++ = '0' + (new_attr.bgcolor / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 100) - *p++ = '0' + (new_attr.bgcolor / 100); - if (new_attr.bgcolor >= 10) - *p++ = '0' + ((new_attr.bgcolor % 100) / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + if (stream->set_a_background != NULL) + tputs (tparm (stream->set_a_background, + color_bgr (new_attr.bgcolor)), + 1, out_char); + else + tputs (tparm (stream->set_background, new_attr.bgcolor), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); + { + char bytes[6]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.bgcolor < 8) + { + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + else + { + bytes[2] = '1'; bytes[3] = '0'; + bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; + if (full_write (out_fd, bytes, 6) < 6) + out_error (); + } + } + break; + case cm_xterm88: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 10) + *p++ = '0' + (new_attr.bgcolor / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 100) + *p++ = '0' + (new_attr.bgcolor / 100); + if (new_attr.bgcolor >= 10) + *p++ = '0' + ((new_attr.bgcolor % 100) / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.weight != old_attr.weight @@ -1429,7 +1429,7 @@ if (n > 0) { if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); cp += n; ap += n; len -= n; @@ -1437,49 +1437,49 @@ if (len > 0) { /* Block fatal signals, so that a SIGINT or similar doesn't interrupt - us without the possibility of restoring the terminal's state. */ + us without the possibility of restoring the terminal's state. */ block_fatal_signals (); /* Likewise for SIGTSTP etc. */ block_stopping_signals (); /* Enable the exit handler for restoring the terminal's state. */ restore_colors = - (stream->supports_foreground || stream->supports_background - ? stream->orig_pair - : NULL); + (stream->supports_foreground || stream->supports_background + ? stream->orig_pair + : NULL); restore_weight = - (stream->supports_weight ? stream->exit_attribute_mode : NULL); + (stream->supports_weight ? stream->exit_attribute_mode : NULL); restore_posture = - (stream->supports_posture - ? (stream->exit_italics_mode != NULL - ? stream->exit_italics_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_posture + ? (stream->exit_italics_mode != NULL + ? stream->exit_italics_mode + : stream->exit_attribute_mode) + : NULL); restore_underline = - (stream->supports_underline - ? (stream->exit_underline_mode != NULL - ? stream->exit_underline_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_underline + ? (stream->exit_underline_mode != NULL + ? stream->exit_underline_mode + : stream->exit_attribute_mode) + : NULL); out_fd = stream->fd; out_filename = stream->filename; while (len > 0) - { - /* Activate the attributes in *ap. */ - out_attr_change (stream, attr, *ap); - attr = *ap; - /* See how many characters we can output without further attribute - changes. */ - for (n = 1; n < len && equal_attributes (ap[n], attr); n++) - ; - if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n; - ap += n; - len -= n; - } + { + /* Activate the attributes in *ap. */ + out_attr_change (stream, attr, *ap); + attr = *ap; + /* See how many characters we can output without further attribute + changes. */ + for (n = 1; n < len && equal_attributes (ap[n], attr); n++) + ; + if (full_write (stream->fd, cp, n) < n) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n; + ap += n; + len -= n; + } /* Switch back to the default attributes. */ out_attr_change (stream, attr, default_attr); @@ -1531,42 +1531,42 @@ /* Copy n bytes into the buffer. */ if (n > stream->allocated - stream->buflen) - { - size_t new_allocated = - xmax (xsum (stream->buflen, n), - xsum (stream->allocated, stream->allocated)); - if (size_overflow_p (new_allocated)) - error (EXIT_FAILURE, 0, - _("%s: too much output, buffer size overflow"), - "term_ostream"); - stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); - stream->attrbuffer = - (attributes_t *) - xrealloc (stream->attrbuffer, - new_allocated * sizeof (attributes_t)); - stream->allocated = new_allocated; - } + { + size_t new_allocated = + xmax (xsum (stream->buflen, n), + xsum (stream->allocated, stream->allocated)); + if (size_overflow_p (new_allocated)) + error (EXIT_FAILURE, 0, + _("%s: too much output, buffer size overflow"), + "term_ostream"); + stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); + stream->attrbuffer = + (attributes_t *) + xrealloc (stream->attrbuffer, + new_allocated * sizeof (attributes_t)); + stream->allocated = new_allocated; + } memcpy (stream->buffer + stream->buflen, cp, n); { - attributes_t attr = stream->simp_attr; - attributes_t *ap = stream->attrbuffer + stream->buflen; - attributes_t *ap_end = ap + n; - for (; ap < ap_end; ap++) - *ap = attr; + attributes_t attr = stream->simp_attr; + attributes_t *ap = stream->attrbuffer + stream->buflen; + attributes_t *ap_end = ap + n; + for (; ap < ap_end; ap++) + *ap = attr; } stream->buflen += n; if (newline != NULL) - { - output_buffer (stream); - if (full_write (stream->fd, "\n", 1) < 1) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n + 1; /* cp = newline + 1; */ - len -= n + 1; - } + { + output_buffer (stream); + if (full_write (stream->fd, "\n", 1) < 1) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n + 1; /* cp = newline + 1; */ + len -= n + 1; + } else - break; + break; } } @@ -1609,65 +1609,65 @@ /* Implementation of term_ostream_t methods. */ -term_color_t +static term_color_t term_ostream__get_color (term_ostream_t stream) { return stream->curr_attr.color; } -void +static void term_ostream__set_color (term_ostream_t stream, term_color_t color) { stream->curr_attr.color = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_color_t +static term_color_t term_ostream__get_bgcolor (term_ostream_t stream) { return stream->curr_attr.bgcolor; } -void +static void term_ostream__set_bgcolor (term_ostream_t stream, term_color_t color) { stream->curr_attr.bgcolor = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_weight_t +static term_weight_t term_ostream__get_weight (term_ostream_t stream) { return stream->curr_attr.weight; } -void +static void term_ostream__set_weight (term_ostream_t stream, term_weight_t weight) { stream->curr_attr.weight = weight; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_posture_t +static term_posture_t term_ostream__get_posture (term_ostream_t stream) { return stream->curr_attr.posture; } -void +static void term_ostream__set_posture (term_ostream_t stream, term_posture_t posture) { stream->curr_attr.posture = posture; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_underline_t +static term_underline_t term_ostream__get_underline (term_ostream_t stream) { return stream->curr_attr.underline; } -void +static void term_ostream__set_underline (term_ostream_t stream, term_underline_t underline) { stream->curr_attr.underline = underline; @@ -1718,31 +1718,31 @@ if (term != NULL && term[0] != '\0') { /* When the terminfo function are available, we prefer them over the - termcap functions because - 1. they don't risk a buffer overflow, - 2. on OSF/1, for TERM=xterm, the tiget* functions provide access - to the number of colors and the color escape sequences, whereas - the tget* functions don't provide them. */ + termcap functions because + 1. they don't risk a buffer overflow, + 2. on OSF/1, for TERM=xterm, the tiget* functions provide access + to the number of colors and the color escape sequences, whereas + the tget* functions don't provide them. */ #if HAVE_TERMINFO int err = 1; if (setupterm (term, fd, &err) || err == 1) - { - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tigetnum ("colors"); - stream->no_color_video = tigetnum ("ncv"); - stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); - stream->set_foreground = xstrdup0 (tigetstr ("setf")); - stream->set_a_background = xstrdup0 (tigetstr ("setab")); - stream->set_background = xstrdup0 (tigetstr ("setb")); - stream->orig_pair = xstrdup0 (tigetstr ("op")); - stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); - stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); - stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); - stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); - stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); - stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); - } + { + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tigetnum ("colors"); + stream->no_color_video = tigetnum ("ncv"); + stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); + stream->set_foreground = xstrdup0 (tigetstr ("setf")); + stream->set_a_background = xstrdup0 (tigetstr ("setab")); + stream->set_background = xstrdup0 (tigetstr ("setb")); + stream->orig_pair = xstrdup0 (tigetstr ("op")); + stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); + stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); + stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); + stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); + stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); + stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); + } #elif HAVE_TERMCAP struct { char buf[1024]; char canary[4]; } termcapbuf; int retval; @@ -1751,64 +1751,64 @@ memcpy (termcapbuf.canary, "CnRy", 4); retval = tgetent (termcapbuf.buf, term); if (memcmp (termcapbuf.canary, "CnRy", 4) != 0) - /* Buffer overflow! */ - abort (); + /* Buffer overflow! */ + abort (); if (retval > 0) - { - struct { char buf[1024]; char canary[4]; } termentrybuf; - char *termentryptr; - - /* Prepare for calling tgetstr, being defensive against buffer - overflow. ncurses' tgetstr() supports a second argument NULL, - but NetBSD's tgetstr() doesn't. */ - memcpy (termentrybuf.canary, "CnRz", 4); - #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) - - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tgetnum ("Co"); - stream->no_color_video = tgetnum ("NC"); - stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); - stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); - stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); - stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); - stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); - stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); - stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); - stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); - stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); - stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); - stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); + { + struct { char buf[1024]; char canary[4]; } termentrybuf; + char *termentryptr; + + /* Prepare for calling tgetstr, being defensive against buffer + overflow. ncurses' tgetstr() supports a second argument NULL, + but NetBSD's tgetstr() doesn't. */ + memcpy (termentrybuf.canary, "CnRz", 4); + #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) + + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tgetnum ("Co"); + stream->no_color_video = tgetnum ("NC"); + stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); + stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); + stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); + stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); + stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); + stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); + stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); + stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); + stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); + stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); + stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); # ifdef __BEOS__ - /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" - it contains balues in terminfo syntax but the system's tparam() - function understands only the termcap syntax. */ - if (stream->set_a_foreground != NULL - && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) - { - free (stream->set_a_foreground); - stream->set_a_foreground = xstrdup ("\033[3%dm"); - } - if (stream->set_a_background != NULL - && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) - { - free (stream->set_a_background); - stream->set_a_background = xstrdup ("\033[4%dm"); - } + /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" + it contains balues in terminfo syntax but the system's tparam() + function understands only the termcap syntax. */ + if (stream->set_a_foreground != NULL + && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) + { + free (stream->set_a_foreground); + stream->set_a_foreground = xstrdup ("\033[3%dm"); + } + if (stream->set_a_background != NULL + && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) + { + free (stream->set_a_background); + stream->set_a_background = xstrdup ("\033[4%dm"); + } # endif - /* The termcap entry for cygwin is broken: It has no "ncv" value, - but bold and underline are actually rendered through colors. */ - if (strcmp (term, "cygwin") == 0) - stream->no_color_video |= 2 | 32; - - /* Done with tgetstr. Detect possible buffer overflow. */ - #undef TEBP - if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) - /* Buffer overflow! */ - abort (); - } + /* The termcap entry for cygwin is broken: It has no "ncv" value, + but bold and underline are actually rendered through colors. */ + if (strcmp (term, "cygwin") == 0) + stream->no_color_video |= 2 | 32; + + /* Done with tgetstr. Detect possible buffer overflow. */ + #undef TEBP + if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) + /* Buffer overflow! */ + abort (); + } #else /* Fallback code for platforms with neither the terminfo nor the termcap functions, such as mingw. @@ -1826,17 +1826,17 @@ #endif /* AIX 4.3.2, IRIX 6.5, HP-UX 11, Solaris 7..10 all lack the - description of color capabilities of "xterm" and "xterms" - in their terminfo database. But it is important to have - color in xterm. So we provide the color capabilities here. */ + description of color capabilities of "xterm" and "xterms" + in their terminfo database. But it is important to have + color in xterm. So we provide the color capabilities here. */ if (stream->max_colors <= 1 - && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) - { - stream->max_colors = 8; - stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); - stream->set_a_background = xstrdup ("\033[4%p1%dm"); - stream->orig_pair = xstrdup ("\033[39;49m"); - } + && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) + { + stream->max_colors = 8; + stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); + stream->set_a_background = xstrdup ("\033[4%p1%dm"); + stream->orig_pair = xstrdup ("\033[39;49m"); + } } /* Infer the capabilities. */ @@ -1851,28 +1851,28 @@ stream->colormodel = (stream->supports_foreground || stream->supports_background ? (term != NULL - && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ - (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) - || /* Recognize rxvt-16color. */ - (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) - || /* Recognize konsole-16color. */ - (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) - ? (stream->max_colors == 256 ? cm_xterm256 : - stream->max_colors == 88 ? cm_xterm88 : - stream->max_colors == 16 ? cm_xterm16 : - cm_xterm8) - : cm_common8) + && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ + (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) + || /* Recognize rxvt-16color. */ + (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) + || /* Recognize konsole-16color. */ + (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) + ? (stream->max_colors == 256 ? cm_xterm256 : + stream->max_colors == 88 ? cm_xterm88 : + stream->max_colors == 16 ? cm_xterm16 : + cm_xterm8) + : cm_common8) : cm_monochrome); stream->supports_weight = (stream->enter_bold_mode != NULL && stream->exit_attribute_mode != NULL); stream->supports_posture = (stream->enter_italics_mode != NULL && (stream->exit_italics_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); stream->supports_underline = (stream->enter_underline_mode != NULL && (stream->exit_underline_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); /* Initialize the buffer. */ stream->allocated = 120; @@ -1893,8 +1893,8 @@ static bool registered = false; if (!registered) { - atexit (restore); - registered = true; + atexit (restore); + registered = true; } } @@ -1953,7 +1953,7 @@ } term_color_t -term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue) +term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue) { const struct term_ostream_implementation *vtable = ((struct term_ostream_representation_header *) (struct term_ostream_representation *) first_arg)->vtable; @@ -2033,7 +2033,7 @@ } void -term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline) +term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline) { const struct term_ostream_implementation *vtable = ((struct term_ostream_representation_header *) (struct term_ostream_representation *) first_arg)->vtable; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-ostream.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.h --- gettext-0.17/gettext-tools/gnulib-lib/term-ostream.h 2007-10-07 20:55:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.h 2010-06-06 18:36:39.000000000 +0000 @@ -91,7 +91,7 @@ extern void term_ostream_write_mem (term_ostream_t first_arg, const void *data, size_t len); extern void term_ostream_flush (term_ostream_t first_arg); extern void term_ostream_free (term_ostream_t first_arg); -extern term_color_t term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue); +extern term_color_t term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue); extern term_color_t term_ostream_get_color (term_ostream_t first_arg); extern void term_ostream_set_color (term_ostream_t first_arg, term_color_t color); extern term_color_t term_ostream_get_bgcolor (term_ostream_t first_arg); @@ -101,7 +101,7 @@ extern term_posture_t term_ostream_get_posture (term_ostream_t first_arg); extern void term_ostream_set_posture (term_ostream_t first_arg, term_posture_t posture); extern term_underline_t term_ostream_get_underline (term_ostream_t first_arg); -extern void term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline); +extern void term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline); /* Type representing an implementation of term_ostream_t. */ struct term_ostream_implementation @@ -155,7 +155,7 @@ # define term_ostream_rgb_to_color term_ostream_rgb_to_color_inline static inline term_color_t -term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue) +term_ostream_rgb_to_color (term_ostream_t first_arg, int red, int green, int blue) { const struct term_ostream_implementation *vtable = ((struct term_ostream_representation_header *) (struct term_ostream_representation *) first_arg)->vtable; @@ -245,7 +245,7 @@ # define term_ostream_set_underline term_ostream_set_underline_inline static inline void -term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline) +term_ostream_set_underline (term_ostream_t first_arg, term_underline_t underline) { const struct term_ostream_implementation *vtable = ((struct term_ostream_representation_header *) (struct term_ostream_representation *) first_arg)->vtable; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-ostream.oo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.oo.c --- gettext-0.17/gettext-tools/gnulib-lib/term-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Output stream for attributed text, producing ANSI escape sequences. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -79,57 +79,57 @@ if (r > g) { if (b > r) - { - /* b > r > g, so max = b, min = g */ - result->hue = 4.0f + (float) (r - g) / (float) (b - g); - result->saturation = 1.0f - (float) g / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > r > g, so max = b, min = g */ + result->hue = 4.0f + (float) (r - g) / (float) (b - g); + result->saturation = 1.0f - (float) g / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b <= g) - { - /* r > g >= b, so max = r, min = b */ - result->hue = 0.0f + (float) (g - b) / (float) (r - b); - result->saturation = 1.0f - (float) b / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r > g >= b, so max = r, min = b */ + result->hue = 0.0f + (float) (g - b) / (float) (r - b); + result->saturation = 1.0f - (float) b / (float) r; + result->brightness = (float) r / 255.0f; + } else - { - /* r >= b > g, so max = r, min = g */ - result->hue = 6.0f - (float) (b - g) / (float) (r - g); - result->saturation = 1.0f - (float) g / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r >= b > g, so max = r, min = g */ + result->hue = 6.0f - (float) (b - g) / (float) (r - g); + result->saturation = 1.0f - (float) g / (float) r; + result->brightness = (float) r / 255.0f; + } } else { if (b > g) - { - /* b > g >= r, so max = b, min = r */ - result->hue = 4.0f - (float) (g - r) / (float) (b - r); - result->saturation = 1.0f - (float) r / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > g >= r, so max = b, min = r */ + result->hue = 4.0f - (float) (g - r) / (float) (b - r); + result->saturation = 1.0f - (float) r / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b < r) - { - /* g >= r > b, so max = g, min = b */ - result->hue = 2.0f - (float) (r - b) / (float) (g - b); - result->saturation = 1.0f - (float) b / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= r > b, so max = g, min = b */ + result->hue = 2.0f - (float) (r - b) / (float) (g - b); + result->saturation = 1.0f - (float) b / (float) g; + result->brightness = (float) g / 255.0f; + } else if (g > r) - { - /* g >= b >= r, g > r, so max = g, min = r */ - result->hue = 2.0f + (float) (b - r) / (float) (g - r); - result->saturation = 1.0f - (float) r / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= b >= r, g > r, so max = g, min = r */ + result->hue = 2.0f + (float) (b - r) / (float) (g - r); + result->saturation = 1.0f - (float) r / (float) g; + result->brightness = (float) g / 255.0f; + } else - { - /* r = g = b. A grey color. */ - result->hue = 0; /* arbitrary */ - result->saturation = 0; - result->brightness = (float) r / 255.0f; - } + { + /* r = g = b. A grey color. */ + result->hue = 0; /* arbitrary */ + result->saturation = 0; + result->brightness = (float) r / 255.0f; + } } } @@ -143,11 +143,11 @@ float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2π] */ float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2π] */ float delta_x = color1->saturation * cosf (angle1) - - color2->saturation * cosf (angle2); + - color2->saturation * cosf (angle2); float delta_y = color1->saturation * sinf (angle1) - - color2->saturation * sinf (angle2); + - color2->saturation * sinf (angle2); float delta_v = color1->brightness - - color2->brightness; + - color2->brightness; return delta_x * delta_x + delta_y * delta_y + delta_v * delta_v; #else @@ -156,11 +156,11 @@ float delta_hue = (color1->hue >= color2->hue ? (color1->hue - color2->hue >= 3.0f - ? 6.0f + color2->hue - color1->hue - : color1->hue - color2->hue) + ? 6.0f + color2->hue - color1->hue + : color1->hue - color2->hue) : (color2->hue - color1->hue >= 3.0f - ? 6.0f + color1->hue - color2->hue - : color2->hue - color1->hue)); + ? 6.0f + color1->hue - color2->hue + : color2->hue - color1->hue)); float min_saturation = (color1->saturation < color2->saturation ? color1->saturation @@ -169,8 +169,8 @@ float delta_brightness = color1->brightness - color2->brightness; return delta_hue * delta_hue * min_saturation - + delta_saturation * delta_saturation * 0.2f - + delta_brightness * delta_brightness * 0.8f; + + delta_saturation * delta_saturation * 0.2f + + delta_brightness * delta_brightness * 0.8f; #endif } @@ -198,14 +198,14 @@ /* Avoid converting a color to grey, or fading out a color too much. */ if (i_hsv.saturation > given_hsv.saturation * 0.5f) - { - float distance = color_distance (&given_hsv, &i_hsv); - if (distance < best_distance) - { - best_index = i; - best_distance = distance; - } - } + { + float distance = color_distance (&given_hsv, &i_hsv); + if (distance < best_distance) + { + best_index = i; + best_distance = distance; + } + } } #if 0 /* Debugging code */ @@ -239,12 +239,12 @@ /* The color model used by the terminal. */ typedef enum { - cm_monochrome, /* No colors. */ - cm_common8, /* Usual terminal with at least 8 colors. */ - cm_xterm8, /* TERM=xterm, with 8 colors. */ - cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ - cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ - cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ + cm_monochrome, /* No colors. */ + cm_common8, /* Usual terminal with at least 8 colors. */ + cm_xterm8, /* TERM=xterm, with 8 colors. */ + cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ + cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ + cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ } colormodel_t; /* ----------------------- cm_monochrome color model ----------------------- */ @@ -295,9 +295,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -353,9 +353,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -401,13 +401,13 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.151f) - return 0; + return 0; else if (luminance < 0.600f) - return 8; + return 8; else if (luminance < 0.949f) - return 7; + return 7; else - return 15; + return 15; } else /* Color approximation. */ @@ -527,31 +527,31 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.090f) - return 0; + return 0; else if (luminance < 0.241f) - return 80; + return 80; else if (luminance < 0.331f) - return 8; + return 8; else if (luminance < 0.406f) - return 81; + return 81; else if (luminance < 0.498f) - return 82; + return 82; else if (luminance < 0.585f) - return 37; + return 37; else if (luminance < 0.680f) - return 84; + return 84; else if (luminance < 0.764f) - return 85; + return 85; else if (luminance < 0.810f) - return 58; + return 58; else if (luminance < 0.857f) - return 86; + return 86; else if (luminance < 0.902f) - return 7; + return 7; else if (luminance < 0.953f) - return 87; + return 87; else - return 15; + return 15; } else /* Color approximation. */ @@ -839,71 +839,71 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.015f) - return 0; + return 0; else if (luminance < 0.051f) - return 232; + return 232; else if (luminance < 0.090f) - return 233; + return 233; else if (luminance < 0.129f) - return 234; + return 234; else if (luminance < 0.157f) - return 235; + return 235; else if (luminance < 0.177f) - return 59; + return 59; else if (luminance < 0.207f) - return 236; + return 236; else if (luminance < 0.247f) - return 237; + return 237; else if (luminance < 0.284f) - return 238; + return 238; else if (luminance < 0.304f) - return 8; + return 8; else if (luminance < 0.319f) - return 239; + return 239; else if (luminance < 0.339f) - return 102; + return 102; else if (luminance < 0.364f) - return 240; + return 240; else if (luminance < 0.404f) - return 241; + return 241; else if (luminance < 0.443f) - return 242; + return 242; else if (luminance < 0.480f) - return 243; + return 243; else if (luminance < 0.500f) - return 145; + return 145; else if (luminance < 0.521f) - return 244; + return 244; else if (luminance < 0.560f) - return 245; + return 245; else if (luminance < 0.600f) - return 246; + return 246; else if (luminance < 0.639f) - return 247; + return 247; else if (luminance < 0.663f) - return 248; + return 248; else if (luminance < 0.682f) - return 188; + return 188; else if (luminance < 0.717f) - return 249; + return 249; else if (luminance < 0.756f) - return 250; + return 250; else if (luminance < 0.796f) - return 251; + return 251; else if (luminance < 0.823f) - return 252; + return 252; else if (luminance < 0.843f) - return 231; + return 231; else if (luminance < 0.874f) - return 253; + return 253; else if (luminance < 0.896f) - return 254; + return 254; else if (luminance < 0.915f) - return 7; + return 7; else if (luminance < 0.966f) - return 255; + return 255; else - return 15; + return 15; } else /* Color approximation. */ @@ -946,20 +946,20 @@ char *filename; /* Values from the terminal type's terminfo/termcap description. See terminfo(5) for details. */ - /* terminfo termcap */ - int max_colors; /* colors Co */ - int no_color_video; /* ncv NC */ - char *set_a_foreground; /* setaf AF */ - char *set_foreground; /* setf Sf */ - char *set_a_background; /* setab AB */ - char *set_background; /* setb Sb */ - char *orig_pair; /* op op */ - char *enter_bold_mode; /* bold md */ - char *enter_italics_mode; /* sitm ZH */ - char *exit_italics_mode; /* ritm ZR */ - char *enter_underline_mode; /* smul us */ - char *exit_underline_mode; /* rmul ue */ - char *exit_attribute_mode; /* sgr0 me */ + /* terminfo termcap */ + int max_colors; /* colors Co */ + int no_color_video; /* ncv NC */ + char *set_a_foreground; /* setaf AF */ + char *set_foreground; /* setf Sf */ + char *set_a_background; /* setab AB */ + char *set_background; /* setb Sb */ + char *orig_pair; /* op op */ + char *enter_bold_mode; /* bold md */ + char *enter_italics_mode; /* sitm ZH */ + char *exit_italics_mode; /* ritm ZR */ + char *enter_underline_mode; /* smul us */ + char *exit_underline_mode; /* rmul ue */ + char *exit_attribute_mode; /* sgr0 me */ /* Inferred values. */ bool supports_foreground; bool supports_background; @@ -968,13 +968,13 @@ bool supports_posture; bool supports_underline; /* Variable state. */ - char *buffer; /* Buffer for the current line. */ - attributes_t *attrbuffer; /* Buffer for the simplified attributes; same - length as buffer. */ - size_t buflen; /* Number of bytes stored so far. */ - size_t allocated; /* Allocated size of the buffer. */ - attributes_t curr_attr; /* Current attributes. */ - attributes_t simp_attr; /* Simplified current attributes. */ + char *buffer; /* Buffer for the current line. */ + attributes_t *attrbuffer; /* Buffer for the simplified attributes; same + length as buffer. */ + size_t buflen; /* Number of bytes stored so far. */ + size_t allocated; /* Allocated size of the buffer. */ + attributes_t curr_attr; /* Current attributes. */ + attributes_t simp_attr; /* Simplified current attributes. */ }; /* Simplify attributes, according to the terminal's capabilities. */ @@ -985,13 +985,13 @@ && stream->no_color_video > 0) { /* When colors and attributes can not be represented simultaneously, - we give preference to the color. */ + we give preference to the color. */ if (stream->no_color_video & 2) - /* Colors conflict with underlining. */ - attr.underline = UNDERLINE_OFF; + /* Colors conflict with underlining. */ + attr.underline = UNDERLINE_OFF; if (stream->no_color_video & 32) - /* Colors conflict with bold weight. */ - attr.weight = WEIGHT_NORMAL; + /* Colors conflict with bold weight. */ + attr.weight = WEIGHT_NORMAL; } if (!stream->supports_foreground) attr.color = COLOR_DEFAULT; @@ -1040,13 +1040,13 @@ if (out_fd >= 0) { if (restore_colors != NULL) - tputs (restore_colors, 1, out_char_unchecked); + tputs (restore_colors, 1, out_char_unchecked); if (restore_weight != NULL) - tputs (restore_weight, 1, out_char_unchecked); + tputs (restore_weight, 1, out_char_unchecked); if (restore_posture != NULL) - tputs (restore_posture, 1, out_char_unchecked); + tputs (restore_posture, 1, out_char_unchecked); if (restore_underline != NULL) - tputs (restore_underline, 1, out_char_unchecked); + tputs (restore_underline, 1, out_char_unchecked); } } @@ -1079,7 +1079,7 @@ sigemptyset (&stopping_signal_set); for (i = 0; i < num_stopping_signals; i++) - sigaddset (&stopping_signal_set, stopping_signals[i]); + sigaddset (&stopping_signal_set, stopping_signals[i]); stopping_signal_set_initialized = true; } @@ -1106,10 +1106,10 @@ equal_attributes (attributes_t attr1, attributes_t attr2) { return (attr1.color == attr2.color - && attr1.bgcolor == attr2.bgcolor - && attr1.weight == attr2.weight - && attr1.posture == attr2.posture - && attr1.underline == attr2.underline); + && attr1.bgcolor == attr2.bgcolor + && attr1.weight == attr2.weight + && attr1.posture == attr2.posture + && attr1.underline == attr2.underline); } /* Signal error after full_write failed. */ @@ -1137,7 +1137,7 @@ /* Output escape sequences to switch from OLD_ATTR to NEW_ATTR. */ static void out_attr_change (term_ostream_t stream, - attributes_t old_attr, attributes_t new_attr) + attributes_t old_attr, attributes_t new_attr) { bool cleared_attributes; @@ -1193,20 +1193,20 @@ if ((old_attr.weight != WEIGHT_NORMAL && new_attr.weight == WEIGHT_NORMAL) || (old_attr.posture != POSTURE_NORMAL - && new_attr.posture == POSTURE_NORMAL - /* implies stream->exit_italics_mode == NULL */) + && new_attr.posture == POSTURE_NORMAL + /* implies stream->exit_italics_mode == NULL */) || (old_attr.underline != UNDERLINE_OFF - && new_attr.underline == UNDERLINE_OFF - /* implies stream->exit_underline_mode == NULL */)) + && new_attr.underline == UNDERLINE_OFF + /* implies stream->exit_underline_mode == NULL */)) { tputs (stream->exit_attribute_mode, 1, out_char); /* We don't know exactly what effects exit_attribute_mode has, but - this is the minimum effect: */ + this is the minimum effect: */ old_attr.weight = WEIGHT_NORMAL; if (stream->exit_italics_mode == NULL) - old_attr.posture = POSTURE_NORMAL; + old_attr.posture = POSTURE_NORMAL; if (stream->exit_underline_mode == NULL) - old_attr.underline = UNDERLINE_OFF; + old_attr.underline = UNDERLINE_OFF; cleared_attributes = true; } @@ -1217,87 +1217,87 @@ assert (stream->supports_foreground); assert (new_attr.color != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.color >= 0 && new_attr.color < 8); - if (stream->set_a_foreground != NULL) - tputs (tparm (stream->set_a_foreground, - color_bgr (new_attr.color)), - 1, out_char); - else - tputs (tparm (stream->set_foreground, new_attr.color), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.color >= 0 && new_attr.color < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.color >= 0 && new_attr.color < 16); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.color < 8) - { - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - } - else - { - bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); - } - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm88: - assert (new_attr.color >= 0 && new_attr.color < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 10) - *p++ = '0' + (new_attr.color / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.color >= 0 && new_attr.color < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 100) - *p++ = '0' + (new_attr.color / 100); - if (new_attr.color >= 10) - *p++ = '0' + ((new_attr.color % 100) / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.color >= 0 && new_attr.color < 8); + if (stream->set_a_foreground != NULL) + tputs (tparm (stream->set_a_foreground, + color_bgr (new_attr.color)), + 1, out_char); + else + tputs (tparm (stream->set_foreground, new_attr.color), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.color >= 0 && new_attr.color < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.color >= 0 && new_attr.color < 16); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.color < 8) + { + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + } + else + { + bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); + } + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm88: + assert (new_attr.color >= 0 && new_attr.color < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 10) + *p++ = '0' + (new_attr.color / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.color >= 0 && new_attr.color < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 100) + *p++ = '0' + (new_attr.color / 100); + if (new_attr.color >= 10) + *p++ = '0' + ((new_attr.color % 100) / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.bgcolor != old_attr.bgcolor || (cleared_attributes && new_attr.bgcolor != COLOR_DEFAULT)) @@ -1305,90 +1305,90 @@ assert (stream->supports_background); assert (new_attr.bgcolor != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - if (stream->set_a_background != NULL) - tputs (tparm (stream->set_a_background, - color_bgr (new_attr.bgcolor)), - 1, out_char); - else - tputs (tparm (stream->set_background, new_attr.bgcolor), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); - { - char bytes[6]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.bgcolor < 8) - { - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - else - { - bytes[2] = '1'; bytes[3] = '0'; - bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; - if (full_write (out_fd, bytes, 6) < 6) - out_error (); - } - } - break; - case cm_xterm88: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 10) - *p++ = '0' + (new_attr.bgcolor / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 100) - *p++ = '0' + (new_attr.bgcolor / 100); - if (new_attr.bgcolor >= 10) - *p++ = '0' + ((new_attr.bgcolor % 100) / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + if (stream->set_a_background != NULL) + tputs (tparm (stream->set_a_background, + color_bgr (new_attr.bgcolor)), + 1, out_char); + else + tputs (tparm (stream->set_background, new_attr.bgcolor), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); + { + char bytes[6]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.bgcolor < 8) + { + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + else + { + bytes[2] = '1'; bytes[3] = '0'; + bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; + if (full_write (out_fd, bytes, 6) < 6) + out_error (); + } + } + break; + case cm_xterm88: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 10) + *p++ = '0' + (new_attr.bgcolor / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 100) + *p++ = '0' + (new_attr.bgcolor / 100); + if (new_attr.bgcolor >= 10) + *p++ = '0' + ((new_attr.bgcolor % 100) / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.weight != old_attr.weight @@ -1452,7 +1452,7 @@ if (n > 0) { if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); cp += n; ap += n; len -= n; @@ -1460,49 +1460,49 @@ if (len > 0) { /* Block fatal signals, so that a SIGINT or similar doesn't interrupt - us without the possibility of restoring the terminal's state. */ + us without the possibility of restoring the terminal's state. */ block_fatal_signals (); /* Likewise for SIGTSTP etc. */ block_stopping_signals (); /* Enable the exit handler for restoring the terminal's state. */ restore_colors = - (stream->supports_foreground || stream->supports_background - ? stream->orig_pair - : NULL); + (stream->supports_foreground || stream->supports_background + ? stream->orig_pair + : NULL); restore_weight = - (stream->supports_weight ? stream->exit_attribute_mode : NULL); + (stream->supports_weight ? stream->exit_attribute_mode : NULL); restore_posture = - (stream->supports_posture - ? (stream->exit_italics_mode != NULL - ? stream->exit_italics_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_posture + ? (stream->exit_italics_mode != NULL + ? stream->exit_italics_mode + : stream->exit_attribute_mode) + : NULL); restore_underline = - (stream->supports_underline - ? (stream->exit_underline_mode != NULL - ? stream->exit_underline_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_underline + ? (stream->exit_underline_mode != NULL + ? stream->exit_underline_mode + : stream->exit_attribute_mode) + : NULL); out_fd = stream->fd; out_filename = stream->filename; while (len > 0) - { - /* Activate the attributes in *ap. */ - out_attr_change (stream, attr, *ap); - attr = *ap; - /* See how many characters we can output without further attribute - changes. */ - for (n = 1; n < len && equal_attributes (ap[n], attr); n++) - ; - if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n; - ap += n; - len -= n; - } + { + /* Activate the attributes in *ap. */ + out_attr_change (stream, attr, *ap); + attr = *ap; + /* See how many characters we can output without further attribute + changes. */ + for (n = 1; n < len && equal_attributes (ap[n], attr); n++) + ; + if (full_write (stream->fd, cp, n) < n) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n; + ap += n; + len -= n; + } /* Switch back to the default attributes. */ out_attr_change (stream, attr, default_attr); @@ -1554,42 +1554,42 @@ /* Copy n bytes into the buffer. */ if (n > stream->allocated - stream->buflen) - { - size_t new_allocated = - xmax (xsum (stream->buflen, n), - xsum (stream->allocated, stream->allocated)); - if (size_overflow_p (new_allocated)) - error (EXIT_FAILURE, 0, - _("%s: too much output, buffer size overflow"), - "term_ostream"); - stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); - stream->attrbuffer = - (attributes_t *) - xrealloc (stream->attrbuffer, - new_allocated * sizeof (attributes_t)); - stream->allocated = new_allocated; - } + { + size_t new_allocated = + xmax (xsum (stream->buflen, n), + xsum (stream->allocated, stream->allocated)); + if (size_overflow_p (new_allocated)) + error (EXIT_FAILURE, 0, + _("%s: too much output, buffer size overflow"), + "term_ostream"); + stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); + stream->attrbuffer = + (attributes_t *) + xrealloc (stream->attrbuffer, + new_allocated * sizeof (attributes_t)); + stream->allocated = new_allocated; + } memcpy (stream->buffer + stream->buflen, cp, n); { - attributes_t attr = stream->simp_attr; - attributes_t *ap = stream->attrbuffer + stream->buflen; - attributes_t *ap_end = ap + n; - for (; ap < ap_end; ap++) - *ap = attr; + attributes_t attr = stream->simp_attr; + attributes_t *ap = stream->attrbuffer + stream->buflen; + attributes_t *ap_end = ap + n; + for (; ap < ap_end; ap++) + *ap = attr; } stream->buflen += n; if (newline != NULL) - { - output_buffer (stream); - if (full_write (stream->fd, "\n", 1) < 1) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n + 1; /* cp = newline + 1; */ - len -= n + 1; - } + { + output_buffer (stream); + if (full_write (stream->fd, "\n", 1) < 1) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n + 1; /* cp = newline + 1; */ + len -= n + 1; + } else - break; + break; } } @@ -1632,65 +1632,65 @@ /* Implementation of term_ostream_t methods. */ -term_color_t +static term_color_t term_ostream::get_color (term_ostream_t stream) { return stream->curr_attr.color; } -void +static void term_ostream::set_color (term_ostream_t stream, term_color_t color) { stream->curr_attr.color = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_color_t +static term_color_t term_ostream::get_bgcolor (term_ostream_t stream) { return stream->curr_attr.bgcolor; } -void +static void term_ostream::set_bgcolor (term_ostream_t stream, term_color_t color) { stream->curr_attr.bgcolor = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_weight_t +static term_weight_t term_ostream::get_weight (term_ostream_t stream) { return stream->curr_attr.weight; } -void +static void term_ostream::set_weight (term_ostream_t stream, term_weight_t weight) { stream->curr_attr.weight = weight; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_posture_t +static term_posture_t term_ostream::get_posture (term_ostream_t stream) { return stream->curr_attr.posture; } -void +static void term_ostream::set_posture (term_ostream_t stream, term_posture_t posture) { stream->curr_attr.posture = posture; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_underline_t +static term_underline_t term_ostream::get_underline (term_ostream_t stream) { return stream->curr_attr.underline; } -void +static void term_ostream::set_underline (term_ostream_t stream, term_underline_t underline) { stream->curr_attr.underline = underline; @@ -1741,31 +1741,31 @@ if (term != NULL && term[0] != '\0') { /* When the terminfo function are available, we prefer them over the - termcap functions because - 1. they don't risk a buffer overflow, - 2. on OSF/1, for TERM=xterm, the tiget* functions provide access - to the number of colors and the color escape sequences, whereas - the tget* functions don't provide them. */ + termcap functions because + 1. they don't risk a buffer overflow, + 2. on OSF/1, for TERM=xterm, the tiget* functions provide access + to the number of colors and the color escape sequences, whereas + the tget* functions don't provide them. */ #if HAVE_TERMINFO int err = 1; if (setupterm (term, fd, &err) || err == 1) - { - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tigetnum ("colors"); - stream->no_color_video = tigetnum ("ncv"); - stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); - stream->set_foreground = xstrdup0 (tigetstr ("setf")); - stream->set_a_background = xstrdup0 (tigetstr ("setab")); - stream->set_background = xstrdup0 (tigetstr ("setb")); - stream->orig_pair = xstrdup0 (tigetstr ("op")); - stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); - stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); - stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); - stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); - stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); - stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); - } + { + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tigetnum ("colors"); + stream->no_color_video = tigetnum ("ncv"); + stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); + stream->set_foreground = xstrdup0 (tigetstr ("setf")); + stream->set_a_background = xstrdup0 (tigetstr ("setab")); + stream->set_background = xstrdup0 (tigetstr ("setb")); + stream->orig_pair = xstrdup0 (tigetstr ("op")); + stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); + stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); + stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); + stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); + stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); + stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); + } #elif HAVE_TERMCAP struct { char buf[1024]; char canary[4]; } termcapbuf; int retval; @@ -1774,64 +1774,64 @@ memcpy (termcapbuf.canary, "CnRy", 4); retval = tgetent (termcapbuf.buf, term); if (memcmp (termcapbuf.canary, "CnRy", 4) != 0) - /* Buffer overflow! */ - abort (); + /* Buffer overflow! */ + abort (); if (retval > 0) - { - struct { char buf[1024]; char canary[4]; } termentrybuf; - char *termentryptr; - - /* Prepare for calling tgetstr, being defensive against buffer - overflow. ncurses' tgetstr() supports a second argument NULL, - but NetBSD's tgetstr() doesn't. */ - memcpy (termentrybuf.canary, "CnRz", 4); - #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) - - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tgetnum ("Co"); - stream->no_color_video = tgetnum ("NC"); - stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); - stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); - stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); - stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); - stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); - stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); - stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); - stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); - stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); - stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); - stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); + { + struct { char buf[1024]; char canary[4]; } termentrybuf; + char *termentryptr; + + /* Prepare for calling tgetstr, being defensive against buffer + overflow. ncurses' tgetstr() supports a second argument NULL, + but NetBSD's tgetstr() doesn't. */ + memcpy (termentrybuf.canary, "CnRz", 4); + #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) + + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tgetnum ("Co"); + stream->no_color_video = tgetnum ("NC"); + stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); + stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); + stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); + stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); + stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); + stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); + stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); + stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); + stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); + stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); + stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); # ifdef __BEOS__ - /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" - it contains balues in terminfo syntax but the system's tparam() - function understands only the termcap syntax. */ - if (stream->set_a_foreground != NULL - && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) - { - free (stream->set_a_foreground); - stream->set_a_foreground = xstrdup ("\033[3%dm"); - } - if (stream->set_a_background != NULL - && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) - { - free (stream->set_a_background); - stream->set_a_background = xstrdup ("\033[4%dm"); - } + /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" + it contains balues in terminfo syntax but the system's tparam() + function understands only the termcap syntax. */ + if (stream->set_a_foreground != NULL + && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) + { + free (stream->set_a_foreground); + stream->set_a_foreground = xstrdup ("\033[3%dm"); + } + if (stream->set_a_background != NULL + && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) + { + free (stream->set_a_background); + stream->set_a_background = xstrdup ("\033[4%dm"); + } # endif - /* The termcap entry for cygwin is broken: It has no "ncv" value, - but bold and underline are actually rendered through colors. */ - if (strcmp (term, "cygwin") == 0) - stream->no_color_video |= 2 | 32; - - /* Done with tgetstr. Detect possible buffer overflow. */ - #undef TEBP - if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) - /* Buffer overflow! */ - abort (); - } + /* The termcap entry for cygwin is broken: It has no "ncv" value, + but bold and underline are actually rendered through colors. */ + if (strcmp (term, "cygwin") == 0) + stream->no_color_video |= 2 | 32; + + /* Done with tgetstr. Detect possible buffer overflow. */ + #undef TEBP + if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) + /* Buffer overflow! */ + abort (); + } #else /* Fallback code for platforms with neither the terminfo nor the termcap functions, such as mingw. @@ -1849,17 +1849,17 @@ #endif /* AIX 4.3.2, IRIX 6.5, HP-UX 11, Solaris 7..10 all lack the - description of color capabilities of "xterm" and "xterms" - in their terminfo database. But it is important to have - color in xterm. So we provide the color capabilities here. */ + description of color capabilities of "xterm" and "xterms" + in their terminfo database. But it is important to have + color in xterm. So we provide the color capabilities here. */ if (stream->max_colors <= 1 - && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) - { - stream->max_colors = 8; - stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); - stream->set_a_background = xstrdup ("\033[4%p1%dm"); - stream->orig_pair = xstrdup ("\033[39;49m"); - } + && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) + { + stream->max_colors = 8; + stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); + stream->set_a_background = xstrdup ("\033[4%p1%dm"); + stream->orig_pair = xstrdup ("\033[39;49m"); + } } /* Infer the capabilities. */ @@ -1874,28 +1874,28 @@ stream->colormodel = (stream->supports_foreground || stream->supports_background ? (term != NULL - && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ - (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) - || /* Recognize rxvt-16color. */ - (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) - || /* Recognize konsole-16color. */ - (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) - ? (stream->max_colors == 256 ? cm_xterm256 : - stream->max_colors == 88 ? cm_xterm88 : - stream->max_colors == 16 ? cm_xterm16 : - cm_xterm8) - : cm_common8) + && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ + (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) + || /* Recognize rxvt-16color. */ + (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) + || /* Recognize konsole-16color. */ + (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) + ? (stream->max_colors == 256 ? cm_xterm256 : + stream->max_colors == 88 ? cm_xterm88 : + stream->max_colors == 16 ? cm_xterm16 : + cm_xterm8) + : cm_common8) : cm_monochrome); stream->supports_weight = (stream->enter_bold_mode != NULL && stream->exit_attribute_mode != NULL); stream->supports_posture = (stream->enter_italics_mode != NULL && (stream->exit_italics_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); stream->supports_underline = (stream->enter_underline_mode != NULL && (stream->exit_underline_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); /* Initialize the buffer. */ stream->allocated = 120; @@ -1916,8 +1916,8 @@ static bool registered = false; if (!registered) { - atexit (restore); - registered = true; + atexit (restore); + registered = true; } } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-ostream.oo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.oo.h --- gettext-0.17/gettext-tools/gnulib-lib/term-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -65,7 +65,7 @@ /* Convert an RGB value (red, green, blue in [0..255]) to a color, valid for this stream only. */ term_color_t rgb_to_color (term_ostream_t stream, - int red, int green, int blue); + int red, int green, int blue); /* Get/set the text color. */ term_color_t get_color (term_ostream_t stream); @@ -86,7 +86,7 @@ /* Get/set the text underline decoration. */ term_underline_t get_underline (term_ostream_t stream); void set_underline (term_ostream_t stream, - term_underline_t underline); + term_underline_t underline); }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term_ostream.priv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term_ostream.priv.h --- gettext-0.17/gettext-tools/gnulib-lib/term_ostream.priv.h 2007-10-07 20:55:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term_ostream.priv.h 2010-06-06 18:36:39.000000000 +0000 @@ -11,20 +11,20 @@ int fd; char *filename; - - int max_colors; - int no_color_video; - char *set_a_foreground; - char *set_foreground; - char *set_a_background; - char *set_background; - char *orig_pair; - char *enter_bold_mode; - char *enter_italics_mode; - char *exit_italics_mode; - char *enter_underline_mode; - char *exit_underline_mode; - char *exit_attribute_mode; + + int max_colors; + int no_color_video; + char *set_a_foreground; + char *set_foreground; + char *set_a_background; + char *set_background; + char *orig_pair; + char *enter_bold_mode; + char *enter_italics_mode; + char *exit_italics_mode; + char *enter_underline_mode; + char *exit_underline_mode; + char *exit_attribute_mode; bool supports_foreground; bool supports_background; @@ -33,10 +33,10 @@ bool supports_posture; bool supports_underline; - char *buffer; - attributes_t *attrbuffer; - size_t buflen; - size_t allocated; - attributes_t curr_attr; - attributes_t simp_attr; + char *buffer; + attributes_t *attrbuffer; + size_t buflen; + size_t allocated; + attributes_t curr_attr; + attributes_t simp_attr; }; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term_ostream.vt.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term_ostream.vt.h --- gettext-0.17/gettext-tools/gnulib-lib/term_ostream.vt.h 2007-10-07 20:55:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term_ostream.vt.h 2010-06-06 18:36:39.000000000 +0000 @@ -4,7 +4,7 @@ #include "ostream.vt.h" /* Virtual function table layout of term_ostream class. */ - term_color_t (*rgb_to_color) (THIS_ARG, int red, int green, int blue); + term_color_t (*rgb_to_color) (THIS_ARG, int red, int green, int blue); term_color_t (*get_color) (THIS_ARG); void (*set_color) (THIS_ARG, term_color_t color); term_color_t (*get_bgcolor) (THIS_ARG); @@ -14,4 +14,4 @@ term_posture_t (*get_posture) (THIS_ARG); void (*set_posture) (THIS_ARG, term_posture_t posture); term_underline_t (*get_underline) (THIS_ARG); - void (*set_underline) (THIS_ARG, term_underline_t underline); + void (*set_underline) (THIS_ARG, term_underline_t underline); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.c --- gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.c 2007-10-27 15:57:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.c 2010-06-06 18:36:41.000000000 +0000 @@ -81,7 +81,7 @@ static void term_styled_ostream__write_mem (term_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { term_ostream_set_color (stream->destination, stream->curr_attr->color); term_ostream_set_bgcolor (stream->destination, stream->curr_attr->bgcolor); @@ -113,7 +113,7 @@ while (hash_iterate (&stream->cache, &ptr, &key, &keylen, &data) == 0) { - free (data); + free (data); } } hash_destroy (&stream->cache); @@ -174,9 +174,9 @@ /* An extended version of cr_sel_eng_get_matched_style. */ static enum CRStatus crx_sel_eng_get_matched_style (CRSelEng * a_this, CRCascade * a_cascade, - xmlNode * a_node, - CRXStyle * a_parent_style, CRXStyle ** a_style, - gboolean a_set_props_to_initial_values) + xmlNode * a_node, + CRXStyle * a_parent_style, CRXStyle ** a_style, + gboolean a_set_props_to_initial_values) { enum CRStatus status; CRPropList *props = NULL; @@ -185,7 +185,7 @@ return CR_BAD_PARAM_ERROR; status = cr_sel_eng_get_matched_properties_from_cascade (a_this, a_cascade, - a_node, &props); + a_node, &props); if (!(status == CR_OK)) return status; @@ -194,69 +194,69 @@ CRXStyle *style; if (!*a_style) - { - *a_style = crx_style_new (a_set_props_to_initial_values); - if (!*a_style) - return CR_ERROR; - } + { + *a_style = crx_style_new (a_set_props_to_initial_values); + if (!*a_style) + return CR_ERROR; + } else - { - if (a_set_props_to_initial_values) - { - cr_style_set_props_to_initial_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_NONE; - } - else - { - cr_style_set_props_to_default_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; - } - } + { + if (a_set_props_to_initial_values) + { + cr_style_set_props_to_initial_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_NONE; + } + else + { + cr_style_set_props_to_default_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; + } + } style = *a_style; style->parent_style = a_parent_style; style->base->parent_style = - (a_parent_style != NULL ? a_parent_style->base : NULL); + (a_parent_style != NULL ? a_parent_style->base : NULL); { - CRPropList *cur; + CRPropList *cur; - for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) - { - CRDeclaration *decl = NULL; - - cr_prop_list_get_decl (cur, &decl); - cr_style_set_style_from_decl (style->base, decl); - if (decl != NULL - && decl->property != NULL - && decl->property->stryng != NULL - && decl->property->stryng->str != NULL) - { - if (strcmp (decl->property->stryng->str, "text-decoration") == 0 - && decl->value != NULL - && decl->value->type == TERM_IDENT - && decl->value->content.str != NULL) - { - const char *value = - cr_string_peek_raw_str (decl->value->content.str); - - if (value != NULL) - { - if (strcmp (value, "none") == 0) - style->text_decoration = TEXT_DECORATION_NONE; - else if (strcmp (value, "underline") == 0) - style->text_decoration = TEXT_DECORATION_UNDERLINE; - else if (strcmp (value, "overline") == 0) - style->text_decoration = TEXT_DECORATION_OVERLINE; - else if (strcmp (value, "line-through") == 0) - style->text_decoration = TEXT_DECORATION_LINE_THROUGH; - else if (strcmp (value, "blink") == 0) - style->text_decoration = TEXT_DECORATION_BLINK; - else if (strcmp (value, "inherit") == 0) - style->text_decoration = TEXT_DECORATION_INHERIT; - } - } - } - } + for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) + { + CRDeclaration *decl = NULL; + + cr_prop_list_get_decl (cur, &decl); + cr_style_set_style_from_decl (style->base, decl); + if (decl != NULL + && decl->property != NULL + && decl->property->stryng != NULL + && decl->property->stryng->str != NULL) + { + if (strcmp (decl->property->stryng->str, "text-decoration") == 0 + && decl->value != NULL + && decl->value->type == TERM_IDENT + && decl->value->content.str != NULL) + { + const char *value = + cr_string_peek_raw_str (decl->value->content.str); + + if (value != NULL) + { + if (strcmp (value, "none") == 0) + style->text_decoration = TEXT_DECORATION_NONE; + else if (strcmp (value, "underline") == 0) + style->text_decoration = TEXT_DECORATION_UNDERLINE; + else if (strcmp (value, "overline") == 0) + style->text_decoration = TEXT_DECORATION_OVERLINE; + else if (strcmp (value, "line-through") == 0) + style->text_decoration = TEXT_DECORATION_LINE_THROUGH; + else if (strcmp (value, "blink") == 0) + style->text_decoration = TEXT_DECORATION_BLINK; + else if (strcmp (value, "inherit") == 0) + style->text_decoration = TEXT_DECORATION_INHERIT; + } + } + } + } } cr_prop_list_destroy (props); @@ -277,33 +277,33 @@ static term_color_t style_compute_color_value (CRStyle *style, enum CRRgbProp which, - term_ostream_t stream) + term_ostream_t stream) { for (;;) { if (style == NULL) - return COLOR_DEFAULT; + return COLOR_DEFAULT; if (cr_rgb_is_set_to_inherit (&style->rgb_props[which].sv)) - style = style->parent_style; + style = style->parent_style; else if (cr_rgb_is_set_to_transparent (&style->rgb_props[which].sv)) - /* A transparent color occurs as default background color, set by - cr_style_set_props_to_default_values. */ - return COLOR_DEFAULT; + /* A transparent color occurs as default background color, set by + cr_style_set_props_to_default_values. */ + return COLOR_DEFAULT; else - { - CRRgb rgb; - int r; - int g; - int b; - - cr_rgb_copy (&rgb, &style->rgb_props[which].sv); - if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) - abort (); - r = rgb.red & 0xff; - g = rgb.green & 0xff; - b = rgb.blue & 0xff; - return term_ostream_rgb_to_color (stream, r, g, b); - } + { + CRRgb rgb; + int r; + int g; + int b; + + cr_rgb_copy (&rgb, &style->rgb_props[which].sv); + if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) + abort (); + r = rgb.red & 0xff; + g = rgb.green & 0xff; + b = rgb.blue & 0xff; + return term_ostream_rgb_to_color (stream, r, g, b); + } } } @@ -314,51 +314,51 @@ for (;;) { if (style == NULL) - value += 4; + value += 4; else - switch (style->font_weight) - { - case FONT_WEIGHT_INHERIT: - style = style->parent_style; - continue; - case FONT_WEIGHT_BOLDER: - value += 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_LIGHTER: - value -= 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_100: - value += 1; - break; - case FONT_WEIGHT_200: - value += 2; - break; - case FONT_WEIGHT_300: - value += 3; - break; - case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: - value += 4; - break; - case FONT_WEIGHT_500: - value += 5; - break; - case FONT_WEIGHT_600: - value += 6; - break; - case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: - value += 7; - break; - case FONT_WEIGHT_800: - value += 8; - break; - case FONT_WEIGHT_900: - value += 9; - break; - default: - abort (); - } + switch (style->font_weight) + { + case FONT_WEIGHT_INHERIT: + style = style->parent_style; + continue; + case FONT_WEIGHT_BOLDER: + value += 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_LIGHTER: + value -= 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_100: + value += 1; + break; + case FONT_WEIGHT_200: + value += 2; + break; + case FONT_WEIGHT_300: + value += 3; + break; + case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: + value += 4; + break; + case FONT_WEIGHT_500: + value += 5; + break; + case FONT_WEIGHT_600: + value += 6; + break; + case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: + value += 7; + break; + case FONT_WEIGHT_800: + value += 8; + break; + case FONT_WEIGHT_900: + value += 9; + break; + default: + abort (); + } /* Value >= 600 -> WEIGHT_BOLD. Value <= 500 -> WEIGHT_NORMAL. */ return (value >= 6 ? WEIGHT_BOLD : WEIGHT_NORMAL); } @@ -370,20 +370,20 @@ for (;;) { if (style == NULL) - return POSTURE_DEFAULT; + return POSTURE_DEFAULT; switch (style->font_style) - { - case FONT_STYLE_INHERIT: - style = style->parent_style; - break; - case FONT_STYLE_NORMAL: - return POSTURE_NORMAL; - case FONT_STYLE_ITALIC: - case FONT_STYLE_OBLIQUE: - return POSTURE_ITALIC; - default: - abort (); - } + { + case FONT_STYLE_INHERIT: + style = style->parent_style; + break; + case FONT_STYLE_NORMAL: + return POSTURE_NORMAL; + case FONT_STYLE_ITALIC: + case FONT_STYLE_OBLIQUE: + return POSTURE_ITALIC; + default: + abort (); + } } } @@ -393,22 +393,22 @@ for (;;) { if (style == NULL) - return UNDERLINE_DEFAULT; + return UNDERLINE_DEFAULT; switch (style->text_decoration) - { - case TEXT_DECORATION_INHERIT: - style = style->parent_style; - break; - case TEXT_DECORATION_NONE: - case TEXT_DECORATION_OVERLINE: - case TEXT_DECORATION_LINE_THROUGH: - case TEXT_DECORATION_BLINK: - return UNDERLINE_OFF; - case TEXT_DECORATION_UNDERLINE: - return UNDERLINE_ON; - default: - abort (); - } + { + case TEXT_DECORATION_INHERIT: + style = style->parent_style; + break; + case TEXT_DECORATION_NONE: + case TEXT_DECORATION_OVERLINE: + case TEXT_DECORATION_LINE_THROUGH: + case TEXT_DECORATION_BLINK: + return UNDERLINE_OFF; + case TEXT_DECORATION_UNDERLINE: + return UNDERLINE_ON; + default: + abort (); + } } } @@ -436,10 +436,10 @@ xmlNodePtr child; if (!(*p_start == ' ')) - abort (); + abort (); p_start++; for (p = p_start; p < p_end && *p != ' '; p++) - ; + ; /* Temporarily replace the ' ' by '\0'. */ *p = '\0'; @@ -449,8 +449,8 @@ *p = ' '; if (xmlAddChild (curr, child) == NULL) - /* Error! Shouldn't happen. */ - abort (); + /* Error! Shouldn't happen. */ + abort (); curr = child; p_start = p; @@ -467,17 +467,17 @@ curr_style = NULL; if (crx_sel_eng_get_matched_style (stream->css_engine, - stream->css_document, - curr, - parent_style, &curr_style, - FALSE) != CR_OK) - abort (); + stream->css_document, + curr, + parent_style, &curr_style, + FALSE) != CR_OK) + abort (); if (curr_style == NULL) - /* No declarations matched this node. Inherit all values. */ - curr_style = parent_style; + /* No declarations matched this node. Inherit all values. */ + curr_style = parent_style; else - /* curr_style is a new style, inheriting from parent_style. */ - ; + /* curr_style is a new style, inheriting from parent_style. */ + ; } curr_style_base = (curr_style != NULL ? curr_style->base : NULL); @@ -485,10 +485,10 @@ attr = XMALLOC (attributes_t); attr->color = style_compute_color_value (curr_style_base, RGB_PROP_COLOR, - stream->destination); + stream->destination); attr->bgcolor = style_compute_color_value (curr_style_base, RGB_PROP_BACKGROUND_COLOR, - stream->destination); + stream->destination); attr->weight = style_compute_font_weight_value (curr_style_base); attr->posture = style_compute_font_posture_value (curr_style_base); attr->underline = style_compute_text_underline_value (curr_style); @@ -515,15 +515,15 @@ { attributes_t *attr = match (stream); if (hash_insert_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - attr) == NULL) + stream->curr_classes, stream->curr_classes_length, + attr) == NULL) abort (); stream->curr_attr = attr; } static void term_styled_ostream__begin_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { size_t classname_len; char *p; @@ -540,7 +540,7 @@ { size_t new_allocated = stream->curr_classes_length + 1 + classname_len + 1; if (new_allocated < 2 * stream->curr_classes_allocated) - new_allocated = 2 * stream->curr_classes_allocated; + new_allocated = 2 * stream->curr_classes_allocated; stream->curr_classes = xrealloc (stream->curr_classes, new_allocated); stream->curr_classes_allocated = new_allocated; @@ -552,8 +552,8 @@ /* Uodate stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) match_and_cache (stream); else stream->curr_attr = (attributes_t *) found; @@ -561,7 +561,7 @@ static void term_styled_ostream__end_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { char *p_end; char *p_start; @@ -579,15 +579,15 @@ ; p_start = p + 1; if (!(p_end - p_start == strlen (classname) - && memcmp (p_start, classname, p_end - p_start) == 0)) + && memcmp (p_start, classname, p_end - p_start) == 0)) /* The match ing call to begin_use_class used a different classname. */ abort (); stream->curr_classes_length = p - stream->curr_classes; /* Update stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) abort (); stream->curr_attr = (attributes_t *) found; } @@ -596,7 +596,7 @@ term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename) + const char *css_filename) { term_styled_ostream_t stream = XMALLOC (struct term_styled_ostream_representation); @@ -606,8 +606,8 @@ stream->destination = term_ostream_create (fd, filename); if (cr_om_parser_simply_parse_file ((const guchar *) css_filename, - CR_UTF_8, /* CR_AUTO is not supported */ - &css_file_contents) != CR_OK) + CR_UTF_8, /* CR_AUTO is not supported */ + &css_file_contents) != CR_OK) { term_ostream_free (stream->destination); free (stream); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.h --- gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.h 2007-10-27 15:57:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.h 2010-06-06 18:36:40.000000000 +0000 @@ -151,7 +151,7 @@ Return NULL upon failure. */ extern term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.oo.c gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.oo.c --- gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.oo.c 2007-10-27 15:19:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -84,7 +84,7 @@ static void term_styled_ostream::write_mem (term_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { term_ostream_set_color (stream->destination, stream->curr_attr->color); term_ostream_set_bgcolor (stream->destination, stream->curr_attr->bgcolor); @@ -116,7 +116,7 @@ while (hash_iterate (&stream->cache, &ptr, &key, &keylen, &data) == 0) { - free (data); + free (data); } } hash_destroy (&stream->cache); @@ -177,9 +177,9 @@ /* An extended version of cr_sel_eng_get_matched_style. */ static enum CRStatus crx_sel_eng_get_matched_style (CRSelEng * a_this, CRCascade * a_cascade, - xmlNode * a_node, - CRXStyle * a_parent_style, CRXStyle ** a_style, - gboolean a_set_props_to_initial_values) + xmlNode * a_node, + CRXStyle * a_parent_style, CRXStyle ** a_style, + gboolean a_set_props_to_initial_values) { enum CRStatus status; CRPropList *props = NULL; @@ -188,7 +188,7 @@ return CR_BAD_PARAM_ERROR; status = cr_sel_eng_get_matched_properties_from_cascade (a_this, a_cascade, - a_node, &props); + a_node, &props); if (!(status == CR_OK)) return status; @@ -197,69 +197,69 @@ CRXStyle *style; if (!*a_style) - { - *a_style = crx_style_new (a_set_props_to_initial_values); - if (!*a_style) - return CR_ERROR; - } + { + *a_style = crx_style_new (a_set_props_to_initial_values); + if (!*a_style) + return CR_ERROR; + } else - { - if (a_set_props_to_initial_values) - { - cr_style_set_props_to_initial_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_NONE; - } - else - { - cr_style_set_props_to_default_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; - } - } + { + if (a_set_props_to_initial_values) + { + cr_style_set_props_to_initial_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_NONE; + } + else + { + cr_style_set_props_to_default_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; + } + } style = *a_style; style->parent_style = a_parent_style; style->base->parent_style = - (a_parent_style != NULL ? a_parent_style->base : NULL); + (a_parent_style != NULL ? a_parent_style->base : NULL); { - CRPropList *cur; + CRPropList *cur; - for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) - { - CRDeclaration *decl = NULL; - - cr_prop_list_get_decl (cur, &decl); - cr_style_set_style_from_decl (style->base, decl); - if (decl != NULL - && decl->property != NULL - && decl->property->stryng != NULL - && decl->property->stryng->str != NULL) - { - if (strcmp (decl->property->stryng->str, "text-decoration") == 0 - && decl->value != NULL - && decl->value->type == TERM_IDENT - && decl->value->content.str != NULL) - { - const char *value = - cr_string_peek_raw_str (decl->value->content.str); - - if (value != NULL) - { - if (strcmp (value, "none") == 0) - style->text_decoration = TEXT_DECORATION_NONE; - else if (strcmp (value, "underline") == 0) - style->text_decoration = TEXT_DECORATION_UNDERLINE; - else if (strcmp (value, "overline") == 0) - style->text_decoration = TEXT_DECORATION_OVERLINE; - else if (strcmp (value, "line-through") == 0) - style->text_decoration = TEXT_DECORATION_LINE_THROUGH; - else if (strcmp (value, "blink") == 0) - style->text_decoration = TEXT_DECORATION_BLINK; - else if (strcmp (value, "inherit") == 0) - style->text_decoration = TEXT_DECORATION_INHERIT; - } - } - } - } + for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) + { + CRDeclaration *decl = NULL; + + cr_prop_list_get_decl (cur, &decl); + cr_style_set_style_from_decl (style->base, decl); + if (decl != NULL + && decl->property != NULL + && decl->property->stryng != NULL + && decl->property->stryng->str != NULL) + { + if (strcmp (decl->property->stryng->str, "text-decoration") == 0 + && decl->value != NULL + && decl->value->type == TERM_IDENT + && decl->value->content.str != NULL) + { + const char *value = + cr_string_peek_raw_str (decl->value->content.str); + + if (value != NULL) + { + if (strcmp (value, "none") == 0) + style->text_decoration = TEXT_DECORATION_NONE; + else if (strcmp (value, "underline") == 0) + style->text_decoration = TEXT_DECORATION_UNDERLINE; + else if (strcmp (value, "overline") == 0) + style->text_decoration = TEXT_DECORATION_OVERLINE; + else if (strcmp (value, "line-through") == 0) + style->text_decoration = TEXT_DECORATION_LINE_THROUGH; + else if (strcmp (value, "blink") == 0) + style->text_decoration = TEXT_DECORATION_BLINK; + else if (strcmp (value, "inherit") == 0) + style->text_decoration = TEXT_DECORATION_INHERIT; + } + } + } + } } cr_prop_list_destroy (props); @@ -280,33 +280,33 @@ static term_color_t style_compute_color_value (CRStyle *style, enum CRRgbProp which, - term_ostream_t stream) + term_ostream_t stream) { for (;;) { if (style == NULL) - return COLOR_DEFAULT; + return COLOR_DEFAULT; if (cr_rgb_is_set_to_inherit (&style->rgb_props[which].sv)) - style = style->parent_style; + style = style->parent_style; else if (cr_rgb_is_set_to_transparent (&style->rgb_props[which].sv)) - /* A transparent color occurs as default background color, set by - cr_style_set_props_to_default_values. */ - return COLOR_DEFAULT; + /* A transparent color occurs as default background color, set by + cr_style_set_props_to_default_values. */ + return COLOR_DEFAULT; else - { - CRRgb rgb; - int r; - int g; - int b; - - cr_rgb_copy (&rgb, &style->rgb_props[which].sv); - if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) - abort (); - r = rgb.red & 0xff; - g = rgb.green & 0xff; - b = rgb.blue & 0xff; - return term_ostream_rgb_to_color (stream, r, g, b); - } + { + CRRgb rgb; + int r; + int g; + int b; + + cr_rgb_copy (&rgb, &style->rgb_props[which].sv); + if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) + abort (); + r = rgb.red & 0xff; + g = rgb.green & 0xff; + b = rgb.blue & 0xff; + return term_ostream_rgb_to_color (stream, r, g, b); + } } } @@ -317,51 +317,51 @@ for (;;) { if (style == NULL) - value += 4; + value += 4; else - switch (style->font_weight) - { - case FONT_WEIGHT_INHERIT: - style = style->parent_style; - continue; - case FONT_WEIGHT_BOLDER: - value += 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_LIGHTER: - value -= 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_100: - value += 1; - break; - case FONT_WEIGHT_200: - value += 2; - break; - case FONT_WEIGHT_300: - value += 3; - break; - case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: - value += 4; - break; - case FONT_WEIGHT_500: - value += 5; - break; - case FONT_WEIGHT_600: - value += 6; - break; - case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: - value += 7; - break; - case FONT_WEIGHT_800: - value += 8; - break; - case FONT_WEIGHT_900: - value += 9; - break; - default: - abort (); - } + switch (style->font_weight) + { + case FONT_WEIGHT_INHERIT: + style = style->parent_style; + continue; + case FONT_WEIGHT_BOLDER: + value += 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_LIGHTER: + value -= 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_100: + value += 1; + break; + case FONT_WEIGHT_200: + value += 2; + break; + case FONT_WEIGHT_300: + value += 3; + break; + case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: + value += 4; + break; + case FONT_WEIGHT_500: + value += 5; + break; + case FONT_WEIGHT_600: + value += 6; + break; + case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: + value += 7; + break; + case FONT_WEIGHT_800: + value += 8; + break; + case FONT_WEIGHT_900: + value += 9; + break; + default: + abort (); + } /* Value >= 600 -> WEIGHT_BOLD. Value <= 500 -> WEIGHT_NORMAL. */ return (value >= 6 ? WEIGHT_BOLD : WEIGHT_NORMAL); } @@ -373,20 +373,20 @@ for (;;) { if (style == NULL) - return POSTURE_DEFAULT; + return POSTURE_DEFAULT; switch (style->font_style) - { - case FONT_STYLE_INHERIT: - style = style->parent_style; - break; - case FONT_STYLE_NORMAL: - return POSTURE_NORMAL; - case FONT_STYLE_ITALIC: - case FONT_STYLE_OBLIQUE: - return POSTURE_ITALIC; - default: - abort (); - } + { + case FONT_STYLE_INHERIT: + style = style->parent_style; + break; + case FONT_STYLE_NORMAL: + return POSTURE_NORMAL; + case FONT_STYLE_ITALIC: + case FONT_STYLE_OBLIQUE: + return POSTURE_ITALIC; + default: + abort (); + } } } @@ -396,22 +396,22 @@ for (;;) { if (style == NULL) - return UNDERLINE_DEFAULT; + return UNDERLINE_DEFAULT; switch (style->text_decoration) - { - case TEXT_DECORATION_INHERIT: - style = style->parent_style; - break; - case TEXT_DECORATION_NONE: - case TEXT_DECORATION_OVERLINE: - case TEXT_DECORATION_LINE_THROUGH: - case TEXT_DECORATION_BLINK: - return UNDERLINE_OFF; - case TEXT_DECORATION_UNDERLINE: - return UNDERLINE_ON; - default: - abort (); - } + { + case TEXT_DECORATION_INHERIT: + style = style->parent_style; + break; + case TEXT_DECORATION_NONE: + case TEXT_DECORATION_OVERLINE: + case TEXT_DECORATION_LINE_THROUGH: + case TEXT_DECORATION_BLINK: + return UNDERLINE_OFF; + case TEXT_DECORATION_UNDERLINE: + return UNDERLINE_ON; + default: + abort (); + } } } @@ -439,10 +439,10 @@ xmlNodePtr child; if (!(*p_start == ' ')) - abort (); + abort (); p_start++; for (p = p_start; p < p_end && *p != ' '; p++) - ; + ; /* Temporarily replace the ' ' by '\0'. */ *p = '\0'; @@ -452,8 +452,8 @@ *p = ' '; if (xmlAddChild (curr, child) == NULL) - /* Error! Shouldn't happen. */ - abort (); + /* Error! Shouldn't happen. */ + abort (); curr = child; p_start = p; @@ -470,17 +470,17 @@ curr_style = NULL; if (crx_sel_eng_get_matched_style (stream->css_engine, - stream->css_document, - curr, - parent_style, &curr_style, - FALSE) != CR_OK) - abort (); + stream->css_document, + curr, + parent_style, &curr_style, + FALSE) != CR_OK) + abort (); if (curr_style == NULL) - /* No declarations matched this node. Inherit all values. */ - curr_style = parent_style; + /* No declarations matched this node. Inherit all values. */ + curr_style = parent_style; else - /* curr_style is a new style, inheriting from parent_style. */ - ; + /* curr_style is a new style, inheriting from parent_style. */ + ; } curr_style_base = (curr_style != NULL ? curr_style->base : NULL); @@ -488,10 +488,10 @@ attr = XMALLOC (attributes_t); attr->color = style_compute_color_value (curr_style_base, RGB_PROP_COLOR, - stream->destination); + stream->destination); attr->bgcolor = style_compute_color_value (curr_style_base, RGB_PROP_BACKGROUND_COLOR, - stream->destination); + stream->destination); attr->weight = style_compute_font_weight_value (curr_style_base); attr->posture = style_compute_font_posture_value (curr_style_base); attr->underline = style_compute_text_underline_value (curr_style); @@ -518,15 +518,15 @@ { attributes_t *attr = match (stream); if (hash_insert_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - attr) == NULL) + stream->curr_classes, stream->curr_classes_length, + attr) == NULL) abort (); stream->curr_attr = attr; } static void term_styled_ostream::begin_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { size_t classname_len; char *p; @@ -543,7 +543,7 @@ { size_t new_allocated = stream->curr_classes_length + 1 + classname_len + 1; if (new_allocated < 2 * stream->curr_classes_allocated) - new_allocated = 2 * stream->curr_classes_allocated; + new_allocated = 2 * stream->curr_classes_allocated; stream->curr_classes = xrealloc (stream->curr_classes, new_allocated); stream->curr_classes_allocated = new_allocated; @@ -555,8 +555,8 @@ /* Uodate stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) match_and_cache (stream); else stream->curr_attr = (attributes_t *) found; @@ -564,7 +564,7 @@ static void term_styled_ostream::end_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { char *p_end; char *p_start; @@ -582,15 +582,15 @@ ; p_start = p + 1; if (!(p_end - p_start == strlen (classname) - && memcmp (p_start, classname, p_end - p_start) == 0)) + && memcmp (p_start, classname, p_end - p_start) == 0)) /* The match ing call to begin_use_class used a different classname. */ abort (); stream->curr_classes_length = p - stream->curr_classes; /* Update stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) abort (); stream->curr_attr = (attributes_t *) found; } @@ -599,7 +599,7 @@ term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename) + const char *css_filename) { term_styled_ostream_t stream = XMALLOC (struct term_styled_ostream_representation); @@ -609,8 +609,8 @@ stream->destination = term_ostream_create (fd, filename); if (cr_om_parser_simply_parse_file ((const guchar *) css_filename, - CR_UTF_8, /* CR_AUTO is not supported */ - &css_file_contents) != CR_OK) + CR_UTF_8, /* CR_AUTO is not supported */ + &css_file_contents) != CR_OK) { term_ostream_free (stream->destination); free (stream); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.oo.h gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.oo.h --- gettext-0.17/gettext-tools/gnulib-lib/term-styled-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/term-styled-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -39,7 +39,7 @@ Return NULL upon failure. */ extern term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/time.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/time.in.h --- gettext-0.17/gettext-tools/gnulib-lib/time.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/time.in.h 2010-06-03 21:36:13.000000000 +0000 @@ -0,0 +1,229 @@ +/* A more-standard . + + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Don't get in the way of glibc when it includes time.h merely to + declare a few standard symbols, rather than to declare all the + symbols. Also, Solaris 8 eventually includes itself + recursively; if that is happening, just include the system + without adding our own declarations. */ +#if (defined __need_time_t || defined __need_clock_t \ + || defined __need_timespec \ + || defined _GL_TIME_H) + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +#else + +# define _GL_TIME_H + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +/* NetBSD 5.0 mis-defines NULL. */ +# include + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). + Or they define it with the wrong member names or define it in + (e.g., FreeBSD circa 1997). Stock Mingw does not define it, but the + pthreads-win32 library defines it in . */ +# if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ +# if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +# include +# elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ +# include +/* The pthreads-win32 also defines a couple of broken macros. */ +# undef asctime_r +# undef ctime_r +# undef gmtime_r +# undef localtime_r +# undef rand_r +# undef strtok_r +# else + +# ifdef __cplusplus +extern "C" { +# endif + +# undef timespec +# define timespec rpl_timespec +struct timespec +{ + time_t tv_sec; + long int tv_nsec; +}; + +# ifdef __cplusplus +} +# endif + +# endif +# endif + +/* Sleep for at least RQTP seconds unless interrupted, If interrupted, + return -1 and store the remaining time into RMTP. See + . */ +# if @GNULIB_NANOSLEEP@ +# if @REPLACE_NANOSLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define nanosleep rpl_nanosleep +# endif +_GL_FUNCDECL_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# else +# if ! @HAVE_NANOSLEEP@ +_GL_FUNCDECL_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# endif +_GL_CXXALIASWARN (nanosleep); +# endif + +/* Return the 'time_t' representation of TP and normalize TP. */ +# if @GNULIB_MKTIME@ +# if @REPLACE_MKTIME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mktime rpl_mktime +# endif +_GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); +# else +_GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); +# endif +_GL_CXXALIASWARN (mktime); +# endif + +/* Convert TIMER to RESULT, assuming local time and UTC respectively. See + and + . */ +# if @GNULIB_TIME_R@ +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef localtime_r +# define localtime_r rpl_localtime_r +# endif +_GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (localtime_r); +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gmtime_r +# define gmtime_r rpl_gmtime_r +# endif +_GL_FUNCDECL_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (gmtime_r); +# endif + +/* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store + the resulting broken-down time into TM. See + . */ +# if @GNULIB_STRPTIME@ +# if ! @HAVE_STRPTIME@ +_GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm)); +_GL_CXXALIASWARN (strptime); +# endif + +/* Convert TM to a time_t value, assuming UTC. */ +# if @GNULIB_TIMEGM@ +# if @REPLACE_TIMEGM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef timegm +# define timegm rpl_timegm +# endif +_GL_FUNCDECL_RPL (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); +# else +# if ! @HAVE_TIMEGM@ +_GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); +# endif +_GL_CXXALIASWARN (timegm); +# endif + +/* Encourage applications to avoid unsafe functions that can overrun + buffers when given outlandish struct tm values. Portable + applications should use strftime (or even sprintf) instead. */ +# if defined GNULIB_POSIXCHECK +# undef asctime +_GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef asctime_r +_GL_WARN_ON_USE (asctime, "asctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime +_GL_WARN_ON_USE (asctime, "ctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime_r +_GL_WARN_ON_USE (asctime, "ctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tls.c gettext-0.18.1.1/gettext-tools/gnulib-lib/tls.c --- gettext-0.17/gettext-tools/gnulib-lib/tls.c 2007-10-07 20:29:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tls.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,61 +0,0 @@ -/* Thread-local storage in multithreaded situations. - Copyright (C) 2005-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written by Bruno Haible , 2005. */ - -#include - -#include "tls.h" - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -void * -glthread_tls_get (thread_key_t key) -{ - void *value; - - if (thr_getspecific (key, &value) != 0) - abort (); - return value; -} - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -#endif - -/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tls.h gettext-0.18.1.1/gettext-tools/gnulib-lib/tls.h --- gettext-0.17/gettext-tools/gnulib-lib/tls.h 2007-11-05 01:02:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tls.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,335 +0,0 @@ -/* Thread-local storage in multithreaded situations. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written by Bruno Haible , 2005. */ - -/* This file contains thread-local storage primitives for use with a given - thread library. It does not contain primitives for creating threads or - for other multithreading primitives. - - Type: gl_tls_key_t - Initialization: gl_tls_key_init (name, destructor); - Getting per-thread value: gl_tls_get (name) - Setting per-thread value: gl_tls_set (name, pointer); - De-initialization: gl_tls_key_destroy (name); - - A per-thread value is of type 'void *'. - - A destructor is a function pointer of type 'void (*) (void *)', called - when a thread exits, and taking the last per-thread value as argument. It - is unspecified whether the destructor function is called when the last - per-thread value is NULL. On some platforms, the destructor function is - not called at all. -*/ - - -#ifndef _TLS_H -#define _TLS_H - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# include -# include - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The pthread_in_use() detection needs to be done at runtime. */ -# define pthread_in_use() \ - glthread_in_use () -extern int glthread_in_use (void); - -# endif - -# if USE_POSIX_THREADS_WEAK - -/* Use weak references to the POSIX threads library. */ - -# pragma weak pthread_key_create -# pragma weak pthread_getspecific -# pragma weak pthread_setspecific -# pragma weak pthread_key_delete -# ifndef pthread_self -# pragma weak pthread_self -# endif - -# if !PTHREAD_IN_USE_DETECTION_HARD -# pragma weak pthread_cancel -# define pthread_in_use() (pthread_cancel != NULL) -# endif - -# else - -# if !PTHREAD_IN_USE_DETECTION_HARD -# define pthread_in_use() 1 -# endif - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - pthread_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_key_create (&(NAME).key, DESTRUCTOR) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (pthread_in_use () \ - ? pthread_getspecific ((NAME).key) \ - : (NAME).singlethread_value) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_setspecific ((NAME).key, (POINTER)) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_key_delete ((NAME).key) != 0) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -# include -# include - -# if USE_PTH_THREADS_WEAK - -/* Use weak references to the GNU Pth threads library. */ - -# pragma weak pth_key_create -# pragma weak pth_key_getdata -# pragma weak pth_key_setdata -# pragma weak pth_key_delete - -# pragma weak pth_cancel -# define pth_in_use() (pth_cancel != NULL) - -# else - -# define pth_in_use() 1 - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - pth_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - if (!pth_key_create (&(NAME).key, DESTRUCTOR)) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (pth_in_use () \ - ? pth_key_getdata ((NAME).key) \ - : (NAME).singlethread_value) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - if (!pth_key_setdata ((NAME).key, (POINTER))) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (pth_in_use () && !pth_key_delete ((NAME).key)) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -# include -# include - -# if USE_SOLARIS_THREADS_WEAK - -/* Use weak references to the old Solaris threads library. */ - -# pragma weak thr_keycreate -# pragma weak thr_getspecific -# pragma weak thr_setspecific - -# pragma weak thr_suspend -# define thread_in_use() (thr_suspend != NULL) - -# else - -# define thread_in_use() 1 - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - thread_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - if (thr_keycreate (&(NAME).key, DESTRUCTOR) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (thread_in_use () \ - ? glthread_tls_get ((NAME).key) \ - : (NAME).singlethread_value) -extern void *glthread_tls_get (thread_key_t key); -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - if (thr_setspecific ((NAME).key, (POINTER)) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - /* Unsupported. */ \ - (void)0 - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -# include - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef DWORD gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - /* The destructor is unsupported. */ \ - do \ - { \ - if (((NAME) = TlsAlloc ()) == (DWORD)-1) \ - abort (); \ - } \ - while (0) -# define gl_tls_get(NAME) \ - TlsGetValue (NAME) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (!TlsSetValue (NAME, POINTER)) \ - abort (); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (!TlsFree (NAME)) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) - -/* Provide dummy implementation if threads are not supported. */ - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef struct - { - void *singlethread_value; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - (NAME).singlethread_value = NULL -# define gl_tls_get(NAME) \ - (NAME).singlethread_value -# define gl_tls_set(NAME, POINTER) \ - (NAME).singlethread_value = (POINTER) -# define gl_tls_key_destroy(NAME) \ - (void)0 - -#endif - -/* ========================================================================= */ - -#endif /* _TLS_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tmpdir.c gettext-0.18.1.1/gettext-tools/gnulib-lib/tmpdir.c --- gettext-0.17/gettext-tools/gnulib-lib/tmpdir.c 2007-10-07 20:29:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tmpdir.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,4 +1,5 @@ -/* Copyright (C) 1999, 2001-2002, 2006 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2001-2002, 2006, 2009-2010 Free Software Foundation, + Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -76,7 +77,7 @@ enough space in TMPL. */ int path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, - bool try_tmpdir) + bool try_tmpdir) { const char *d; size_t dlen, plen; @@ -90,35 +91,35 @@ { plen = strlen (pfx); if (plen > 5) - plen = 5; + plen = 5; } if (try_tmpdir) { d = __secure_getenv ("TMPDIR"); if (d != NULL && direxists (d)) - dir = d; + dir = d; else if (dir != NULL && direxists (dir)) - /* nothing */ ; + /* nothing */ ; else - dir = NULL; + dir = NULL; } if (dir == NULL) { if (direxists (P_tmpdir)) - dir = P_tmpdir; + dir = P_tmpdir; else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp")) - dir = "/tmp"; + dir = "/tmp"; else - { - __set_errno (ENOENT); - return -1; - } + { + __set_errno (ENOENT); + return -1; + } } dlen = strlen (dir); while (dlen >= 1 && ISSLASH (dir[dlen - 1])) - dlen--; /* remove trailing slashes */ + dlen--; /* remove trailing slashes */ /* check we have room for "${dir}/${pfx}XXXXXX\0" */ if (tmpl_len < dlen + 1 + plen + 6 + 1) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tmpdir.h gettext-0.18.1.1/gettext-tools/gnulib-lib/tmpdir.h --- gettext-0.17/gettext-tools/gnulib-lib/tmpdir.h 2007-10-07 20:29:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tmpdir.h 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine a temporary directory. - Copyright (C) 2001-2002 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tparm.c gettext-0.18.1.1/gettext-tools/gnulib-lib/tparm.c --- gettext-0.17/gettext-tools/gnulib-lib/tparm.c 2007-10-31 12:36:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tparm.c 2010-05-24 09:42:47.000000000 +0000 @@ -3,7 +3,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -31,14 +31,14 @@ #endif #ifndef MAX_PUSHED -#define MAX_PUSHED 32 +#define MAX_PUSHED 32 #endif -#define ARG 1 -#define NUM 2 +#define ARG 1 +#define NUM 2 -#define INTEGER 1 -#define STRING 2 +#define INTEGER 1 +#define STRING 2 #define MAX_LINE 640 @@ -96,19 +96,19 @@ if (argcnt > argnum) { if (arg_list[argnum].type != type) - return 1; + return 1; else if (type == STRING) - *(char **)p = arg_list[argnum].string; + *(char **)p = arg_list[argnum].string; else - *(int *)p = arg_list[argnum].integer; + *(int *)p = arg_list[argnum].integer; } else { arg_list[argcnt].type = type; if (type == STRING) - *(char **)p = arg_list[argcnt++].string = (char *) va_arg (tparm_args, char *); + *(char **)p = arg_list[argcnt++].string = (char *) va_arg (tparm_args, char *); else - *(int *)p = arg_list[argcnt++].integer = (int) va_arg (tparm_args, int); + *(int *)p = arg_list[argcnt++].integer = (int) va_arg (tparm_args, int); } return 0; } @@ -146,28 +146,28 @@ { case '\\': switch (*++sp) - { - case '\'': - case '$': - case '\\': - case '%': - *c = *sp; - return 2; - case '\0': - *c = '\\'; - return 1; - case '0': - if (sp[1] == '0' && sp[2] == '0') - { - *c = '\0'; - return 4; - } - *c = '\200'; /* '\0' ???? */ - return 2; - default: - *c = *sp; - return 2; - } + { + case '\'': + case '$': + case '\\': + case '%': + *c = *sp; + return 2; + case '\0': + *c = '\\'; + return 1; + case '0': + if (sp[1] == '0' && sp[2] == '0') + { + *c = '\0'; + return 4; + } + *c = '\200'; /* '\0' ???? */ + return 2; + default: + *c = *sp; + return 2; + } default: *c = *sp; return 1; @@ -193,57 +193,57 @@ Terminfo % codes: - %% output a '%' - %[[:][-+# ][width][.precision]][doxXs] - output pop according to the printf format - %c output pop as a char - %'c' push character constant c. - %{n} push decimal constant n. - %p[1-9] push paramter [1-9] - %g[a-z] push variable [a-z] - %P[a-z] put pop in variable [a-z] - %l push the length of pop (a string) - %+ add pop to pop and push the result - %- subtract pop from pop and push the result - %* multiply pop and pop and push the result - %& bitwise and pop and pop and push the result - %| bitwise or pop and pop and push the result - %^ bitwise xor pop and pop and push the result - %~ push the bitwise not of pop - %= compare if pop and pop are equal and push the result - %> compare if pop is less than pop and push the result - %< compare if pop is greater than pop and push the result - %A logical and pop and pop and push the result - %O logical or pop and pop and push the result - %! push the logical not of pop - %? condition %t if_true [%e if_false] %; - if condtion evaulates as true then evaluate if_true, - else evaluate if_false. elseif's can be done: - %? cond %t true [%e cond2 %t true2] ... [%e condN %t trueN] [%e false] %; - %i add one to parameters 1 and 2. (ANSI) + %% output a '%' + %[[:][-+# ][width][.precision]][doxXs] + output pop according to the printf format + %c output pop as a char + %'c' push character constant c. + %{n} push decimal constant n. + %p[1-9] push paramter [1-9] + %g[a-z] push variable [a-z] + %P[a-z] put pop in variable [a-z] + %l push the length of pop (a string) + %+ add pop to pop and push the result + %- subtract pop from pop and push the result + %* multiply pop and pop and push the result + %& bitwise and pop and pop and push the result + %| bitwise or pop and pop and push the result + %^ bitwise xor pop and pop and push the result + %~ push the bitwise not of pop + %= compare if pop and pop are equal and push the result + %> compare if pop is less than pop and push the result + %< compare if pop is greater than pop and push the result + %A logical and pop and pop and push the result + %O logical or pop and pop and push the result + %! push the logical not of pop + %? condition %t if_true [%e if_false] %; + if condtion evaulates as true then evaluate if_true, + else evaluate if_false. elseif's can be done: + %? cond %t true [%e cond2 %t true2] ... [%e condN %t trueN] [%e false] %; + %i add one to parameters 1 and 2. (ANSI) Termcap Codes: - %% output a % - %. output parameter as a character - %d output parameter as a decimal number - %2 output parameter in printf format %02d - %3 output parameter in printf format %03d - %+x add the character x to parameter and output it as a character -(UW) %-x subtract parameter FROM the character x and output it as a char -(UW) %ax add the character x to parameter -(GNU) %a[+*-/=][cp]x - GNU arithmetic. -(UW) %sx subtract parameter FROM the character x - %>xy if parameter > character x then add character y to parameter - %B convert to BCD (parameter = (parameter/10)*16 + parameter%16) - %D Delta Data encode (parameter = parameter - 2*(paramter%16)) - %i increment the first two parameters by one - %n xor the first two parameters by 0140 -(GNU) %m xor the first two parameters by 0177 - %r swap the first two parameters -(GNU) %b backup to previous parameter -(GNU) %f skip this parameter + %% output a % + %. output parameter as a character + %d output parameter as a decimal number + %2 output parameter in printf format %02d + %3 output parameter in printf format %03d + %+x add the character x to parameter and output it as a character +(UW) %-x subtract parameter FROM the character x and output it as a char +(UW) %ax add the character x to parameter +(GNU) %a[+*-/=][cp]x + GNU arithmetic. +(UW) %sx subtract parameter FROM the character x + %>xy if parameter > character x then add character y to parameter + %B convert to BCD (parameter = (parameter/10)*16 + parameter%16) + %D Delta Data encode (parameter = parameter - 2*(paramter%16)) + %i increment the first two parameters by one + %n xor the first two parameters by 0140 +(GNU) %m xor the first two parameters by 0177 + %r swap the first two parameters +(GNU) %b backup to previous parameter +(GNU) %f skip this parameter Note the two definitions of %a, the GNU defintion is used if the characters after the 'a' are valid, otherwise the UW definition is used. @@ -281,616 +281,616 @@ while (*sp != '\0') { switch (*sp) - { - case '\\': - if (scan_for) - { - if (*++sp != '\0') - sp++; - break; - } - *dp++ = *sp++; - if (*sp != '\0') - *dp++ = *sp++; - break; - case '%': - sp++; - if (scan_for) - { - if (*sp == scan_for && if_depth == scan_depth) - { - if (scan_for == ';') - if_depth--; - scan_for = 0; - } - else if (*sp == '?') - if_depth++; - else if (*sp == ';') - { - if (if_depth == 0) - return OOPS; - else - if_depth--; - } - sp++; - break; - } - fmt = NULL; - switch (*sp) - { - case '%': - *dp++ = *sp++; - break; - case '+': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i += j; - if (pushnum (i)) - return OOPS; - sp++; - break; - } - /* FALLTHROUGH */ - case 'C': - if (*sp == 'C') - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (i >= 96) - { - i /= 96; - if (i == '$') - *dp++ = '\\'; - *dp++ = i; - } - } - fmt = "%c"; - /* FALLTHROUGH */ - case 'a': - if (!termcap) - return OOPS; - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (*++sp == '\0') - return OOPS; - if ((sp[1] == 'p' || sp[1] == 'c') - && sp[2] != '\0' && fmt == NULL) - { - /* GNU arithmetic parameter, what they really need is - terminfo. */ - int val; - int lc; - if (sp[1] == 'p' - && getarg (termcap - 1 + sp[2] - '@', INTEGER, &val)) - return OOPS; - if (sp[1] == 'c') - { - char c; - lc = cvtchar (sp + 2, &c) + 2; - /* Mask out 8th bit so \200 can be used for \0 as per - GNU docs. */ - val = c & 0177; - } - else - lc = 2; - switch (sp[0]) - { - case '=': - break; - case '+': - val = i + val; - break; - case '-': - val = i - val; - break; - case '*': - val = i * val; - break; - case '/': - val = i / val; - break; - default: - /* Not really GNU's %a after all... */ - { - char c; - lc = cvtchar (sp, &c); - val = c + i; - } - break; - } - arg_list[termcap - 1].integer = val; - sp += lc; - break; - } - { - char c; - sp += cvtchar (sp, &c); - arg_list[termcap - 1].integer = c + i; - } - } - if (fmt == NULL) - break; - sp--; - /* FALLTHROUGH */ - case '-': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i -= j; - if (pushnum (i)) - return OOPS; - sp++; - break; - } - fmt = "%c"; - /* FALLTHROUGH */ - case 's': - if (termcap && (fmt == NULL || *sp == '-')) - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - arg_list[termcap - 1].integer = c - i; - } - if (fmt == NULL) - break; - sp--; - } - if (!termcap) - return OOPS; - /* FALLTHROUGH */ - case '.': - if (termcap && fmt == NULL) - fmt = "%c"; - /* FALLTHROUGH */ - case 'd': - if (termcap && fmt == NULL) - fmt = "%d"; - /* FALLTHROUGH */ - case '2': - if (termcap && fmt == NULL) - fmt = "%02d"; - /* FALLTHROUGH */ - case '3': - if (termcap && fmt == NULL) - fmt = "%03d"; - /* FALLTHROUGH */ - case ':': case ' ': case '#': case 'u': - case 'x': case 'X': case 'o': case 'c': - case '0': case '1': case '4': case '5': - case '6': case '7': case '8': case '9': - if (fmt == NULL) - { - if (termcap) - return OOPS; - if (*sp == ':') - sp++; - fmt = fmt_buf; - *fmt++ = '%'; - while (*sp != 's' && *sp != 'x' && *sp != 'X' && *sp != 'd' - && *sp != 'o' && *sp != 'c' && *sp != 'u') - { - if (*sp == '\0') - return OOPS; - *fmt++ = *sp++; - } - *fmt++ = *sp; - *fmt = '\0'; - fmt = fmt_buf; - } - { - char conv_char = fmt[strlen (fmt) - 1]; - if (conv_char == 's') - { - char *s; - if (popstring (&s)) - return OOPS; - sprintf (sbuf, fmt, s); - } - else - { - int i; - if (termcap) - { - if (getarg (termcap++ - 1, INTEGER, &i)) - return OOPS; - } - else - if (popnum (&i)) - return OOPS; - if (i == 0 && conv_char == 'c') - strcpy (sbuf, "\000"); - else - sprintf (sbuf, fmt, i); - } - } - sp++; - fmt = sbuf; - while (*fmt != '\0') - { - if (*fmt == '$') - *dp++ = '\\'; - *dp++ = *fmt++; - } - break; - case 'r': - { - int i; - if (!termcap || getarg (1, INTEGER, &i)) - return OOPS; - arg_list[1].integer = arg_list[0].integer; - arg_list[0].integer = i; - } - sp++; - break; - case 'i': - { - int i; - if (getarg (1, INTEGER, &i) || arg_list[0].type != INTEGER) - return OOPS; - } - arg_list[1].integer++; - arg_list[0].integer++; - sp++; - break; - case 'n': - { - int i; - if (!termcap || getarg (1, INTEGER, &i)) - return OOPS; - } - arg_list[0].integer ^= 0140; - arg_list[1].integer ^= 0140; - sp++; - break; - case '>': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i > j); - if (pushnum (i)) - return OOPS; - sp++; - break; - } - { - int i; - if (getarg (termcap-1, INTEGER, &i)) - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - if (i > c) - { - sp += cvtchar (sp, &c); - arg_list[termcap-1].integer += c; - } - else - sp += cvtchar (sp, &c); - } - } - sp++; - break; - case 'B': - { - int i; - if (!termcap || getarg (termcap-1, INTEGER, &i)) - return OOPS; - arg_list[termcap-1].integer = 16 * (i / 10) + i % 10; - } - sp++; - break; - case 'D': - { - int i; - if (!termcap || getarg (termcap-1, INTEGER, &i)) - return OOPS; - arg_list[termcap-1].integer = i - 2 * (i % 16); - } - sp++; - break; - case 'p': - if (termcap > 1) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - int i = (*sp == '0' ? 9 : *sp - '1'); - if (i < 0 || i > 9) - return OOPS; - if (pusharg (i)) - return OOPS; - } - termcap = 0; - sp++; - break; - case 'P': - if (termcap || *++sp == '\0') - return OOPS; - { - int i = *sp++ - 'a'; - if (i < 0 || i > 25) - return OOPS; - if (pos-- == 0) - return OOPS; - switch (vars[i].type = S[pos].type) - { - case ARG: - vars[i].argnum = S[pos].argnum; - break; - case NUM: - vars[i].value = S[pos].value; - break; - } - } - break; - case 'g': - if (termcap || *++sp == '\0') - return OOPS; - { - int i = *sp++ - 'a'; - if (i < 0 || i > 25) - return OOPS; - switch (vars[i].type) - { - case ARG: - if (pusharg (vars[i].argnum)) - return OOPS; - break; - case NUM: - if (pushnum (vars[i].value)) - return OOPS; - break; - } - } - break; - case '\'': - if (termcap > 1) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - if (pushnum (c) || *sp++ != '\'') - return OOPS; - } - termcap = 0; - break; - case '{': - if (termcap > 1) - return OOPS; - { - int i; - i = 0; - sp++; - while (c_isdigit (*sp)) - i = 10 * i + *sp++ - '0'; - if (*sp++ != '}' || pushnum (i)) - return OOPS; - } - termcap = 0; - break; - case 'l': - { - int i; - char *s; - if (termcap || popstring (&s)) - return OOPS; - i = strlen (s); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '*': - { - int i, j; - if (termcap || popnum (&j) || popnum (&i)) - return OOPS; - i *= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '/': - { - int i, j; - if (termcap || popnum (&j) || popnum (&i)) - return OOPS; - i /= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'm': - if (termcap) - { - int i; - if (getarg (1, INTEGER, &i)) - return OOPS; - arg_list[0].integer ^= 0177; - arg_list[1].integer ^= 0177; - sp++; - break; - } - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i %= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '&': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i &= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '|': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i |= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '^': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i ^= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '=': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i == j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '<': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i < j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'A': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i && j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'O': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i || j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '!': - { - int i; - if (popnum (&i)) - return OOPS; - i = !i; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '~': - { - int i; - if (popnum (&i)) - return OOPS; - i = ~i; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '?': - if (termcap > 1) - return OOPS; - termcap = 0; - if_depth++; - sp++; - break; - case 't': - { - int i; - if (popnum (&i) || if_depth == 0) - return OOPS; - if (!i) - { - scan_for = 'e'; - scan_depth = if_depth; - } - } - sp++; - break; - case 'e': - if (if_depth == 0) - return OOPS; - scan_for = ';'; - scan_depth = if_depth; - sp++; - break; - case ';': - if (if_depth-- == 0) - return OOPS; - sp++; - break; - case 'b': - if (--termcap < 1) - return OOPS; - sp++; - break; - case 'f': - if (!termcap++) - return OOPS; - sp++; - break; - } - break; - default: - if (scan_for) - sp++; - else - *dp++ = *sp++; - break; - } + { + case '\\': + if (scan_for) + { + if (*++sp != '\0') + sp++; + break; + } + *dp++ = *sp++; + if (*sp != '\0') + *dp++ = *sp++; + break; + case '%': + sp++; + if (scan_for) + { + if (*sp == scan_for && if_depth == scan_depth) + { + if (scan_for == ';') + if_depth--; + scan_for = 0; + } + else if (*sp == '?') + if_depth++; + else if (*sp == ';') + { + if (if_depth == 0) + return OOPS; + else + if_depth--; + } + sp++; + break; + } + fmt = NULL; + switch (*sp) + { + case '%': + *dp++ = *sp++; + break; + case '+': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i += j; + if (pushnum (i)) + return OOPS; + sp++; + break; + } + /* FALLTHROUGH */ + case 'C': + if (*sp == 'C') + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (i >= 96) + { + i /= 96; + if (i == '$') + *dp++ = '\\'; + *dp++ = i; + } + } + fmt = "%c"; + /* FALLTHROUGH */ + case 'a': + if (!termcap) + return OOPS; + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (*++sp == '\0') + return OOPS; + if ((sp[1] == 'p' || sp[1] == 'c') + && sp[2] != '\0' && fmt == NULL) + { + /* GNU arithmetic parameter, what they really need is + terminfo. */ + int val; + int lc; + if (sp[1] == 'p' + && getarg (termcap - 1 + sp[2] - '@', INTEGER, &val)) + return OOPS; + if (sp[1] == 'c') + { + char c; + lc = cvtchar (sp + 2, &c) + 2; + /* Mask out 8th bit so \200 can be used for \0 as per + GNU docs. */ + val = c & 0177; + } + else + lc = 2; + switch (sp[0]) + { + case '=': + break; + case '+': + val = i + val; + break; + case '-': + val = i - val; + break; + case '*': + val = i * val; + break; + case '/': + val = i / val; + break; + default: + /* Not really GNU's %a after all... */ + { + char c; + lc = cvtchar (sp, &c); + val = c + i; + } + break; + } + arg_list[termcap - 1].integer = val; + sp += lc; + break; + } + { + char c; + sp += cvtchar (sp, &c); + arg_list[termcap - 1].integer = c + i; + } + } + if (fmt == NULL) + break; + sp--; + /* FALLTHROUGH */ + case '-': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i -= j; + if (pushnum (i)) + return OOPS; + sp++; + break; + } + fmt = "%c"; + /* FALLTHROUGH */ + case 's': + if (termcap && (fmt == NULL || *sp == '-')) + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + arg_list[termcap - 1].integer = c - i; + } + if (fmt == NULL) + break; + sp--; + } + if (!termcap) + return OOPS; + /* FALLTHROUGH */ + case '.': + if (termcap && fmt == NULL) + fmt = "%c"; + /* FALLTHROUGH */ + case 'd': + if (termcap && fmt == NULL) + fmt = "%d"; + /* FALLTHROUGH */ + case '2': + if (termcap && fmt == NULL) + fmt = "%02d"; + /* FALLTHROUGH */ + case '3': + if (termcap && fmt == NULL) + fmt = "%03d"; + /* FALLTHROUGH */ + case ':': case ' ': case '#': case 'u': + case 'x': case 'X': case 'o': case 'c': + case '0': case '1': case '4': case '5': + case '6': case '7': case '8': case '9': + if (fmt == NULL) + { + if (termcap) + return OOPS; + if (*sp == ':') + sp++; + fmt = fmt_buf; + *fmt++ = '%'; + while (*sp != 's' && *sp != 'x' && *sp != 'X' && *sp != 'd' + && *sp != 'o' && *sp != 'c' && *sp != 'u') + { + if (*sp == '\0') + return OOPS; + *fmt++ = *sp++; + } + *fmt++ = *sp; + *fmt = '\0'; + fmt = fmt_buf; + } + { + char conv_char = fmt[strlen (fmt) - 1]; + if (conv_char == 's') + { + char *s; + if (popstring (&s)) + return OOPS; + sprintf (sbuf, fmt, s); + } + else + { + int i; + if (termcap) + { + if (getarg (termcap++ - 1, INTEGER, &i)) + return OOPS; + } + else + if (popnum (&i)) + return OOPS; + if (i == 0 && conv_char == 'c') + strcpy (sbuf, "\000"); + else + sprintf (sbuf, fmt, i); + } + } + sp++; + fmt = sbuf; + while (*fmt != '\0') + { + if (*fmt == '$') + *dp++ = '\\'; + *dp++ = *fmt++; + } + break; + case 'r': + { + int i; + if (!termcap || getarg (1, INTEGER, &i)) + return OOPS; + arg_list[1].integer = arg_list[0].integer; + arg_list[0].integer = i; + } + sp++; + break; + case 'i': + { + int i; + if (getarg (1, INTEGER, &i) || arg_list[0].type != INTEGER) + return OOPS; + } + arg_list[1].integer++; + arg_list[0].integer++; + sp++; + break; + case 'n': + { + int i; + if (!termcap || getarg (1, INTEGER, &i)) + return OOPS; + } + arg_list[0].integer ^= 0140; + arg_list[1].integer ^= 0140; + sp++; + break; + case '>': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i > j); + if (pushnum (i)) + return OOPS; + sp++; + break; + } + { + int i; + if (getarg (termcap-1, INTEGER, &i)) + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + if (i > c) + { + sp += cvtchar (sp, &c); + arg_list[termcap-1].integer += c; + } + else + sp += cvtchar (sp, &c); + } + } + sp++; + break; + case 'B': + { + int i; + if (!termcap || getarg (termcap-1, INTEGER, &i)) + return OOPS; + arg_list[termcap-1].integer = 16 * (i / 10) + i % 10; + } + sp++; + break; + case 'D': + { + int i; + if (!termcap || getarg (termcap-1, INTEGER, &i)) + return OOPS; + arg_list[termcap-1].integer = i - 2 * (i % 16); + } + sp++; + break; + case 'p': + if (termcap > 1) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + int i = (*sp == '0' ? 9 : *sp - '1'); + if (i < 0 || i > 9) + return OOPS; + if (pusharg (i)) + return OOPS; + } + termcap = 0; + sp++; + break; + case 'P': + if (termcap || *++sp == '\0') + return OOPS; + { + int i = *sp++ - 'a'; + if (i < 0 || i > 25) + return OOPS; + if (pos-- == 0) + return OOPS; + switch (vars[i].type = S[pos].type) + { + case ARG: + vars[i].argnum = S[pos].argnum; + break; + case NUM: + vars[i].value = S[pos].value; + break; + } + } + break; + case 'g': + if (termcap || *++sp == '\0') + return OOPS; + { + int i = *sp++ - 'a'; + if (i < 0 || i > 25) + return OOPS; + switch (vars[i].type) + { + case ARG: + if (pusharg (vars[i].argnum)) + return OOPS; + break; + case NUM: + if (pushnum (vars[i].value)) + return OOPS; + break; + } + } + break; + case '\'': + if (termcap > 1) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + if (pushnum (c) || *sp++ != '\'') + return OOPS; + } + termcap = 0; + break; + case '{': + if (termcap > 1) + return OOPS; + { + int i; + i = 0; + sp++; + while (c_isdigit (*sp)) + i = 10 * i + *sp++ - '0'; + if (*sp++ != '}' || pushnum (i)) + return OOPS; + } + termcap = 0; + break; + case 'l': + { + int i; + char *s; + if (termcap || popstring (&s)) + return OOPS; + i = strlen (s); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '*': + { + int i, j; + if (termcap || popnum (&j) || popnum (&i)) + return OOPS; + i *= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '/': + { + int i, j; + if (termcap || popnum (&j) || popnum (&i)) + return OOPS; + i /= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'm': + if (termcap) + { + int i; + if (getarg (1, INTEGER, &i)) + return OOPS; + arg_list[0].integer ^= 0177; + arg_list[1].integer ^= 0177; + sp++; + break; + } + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i %= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '&': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i &= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '|': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i |= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '^': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i ^= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '=': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i == j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '<': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i < j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'A': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i && j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'O': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i || j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '!': + { + int i; + if (popnum (&i)) + return OOPS; + i = !i; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '~': + { + int i; + if (popnum (&i)) + return OOPS; + i = ~i; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '?': + if (termcap > 1) + return OOPS; + termcap = 0; + if_depth++; + sp++; + break; + case 't': + { + int i; + if (popnum (&i) || if_depth == 0) + return OOPS; + if (!i) + { + scan_for = 'e'; + scan_depth = if_depth; + } + } + sp++; + break; + case 'e': + if (if_depth == 0) + return OOPS; + scan_for = ';'; + scan_depth = if_depth; + sp++; + break; + case ';': + if (if_depth-- == 0) + return OOPS; + sp++; + break; + case 'b': + if (--termcap < 1) + return OOPS; + sp++; + break; + case 'f': + if (!termcap++) + return OOPS; + sp++; + break; + } + break; + default: + if (scan_for) + sp++; + else + *dp++ = *sp++; + break; + } } va_end (tparm_args); *dp = '\0'; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/tputs.c gettext-0.18.1.1/gettext-tools/gnulib-lib/tputs.c --- gettext-0.17/gettext-tools/gnulib-lib/tputs.c 2007-10-31 12:36:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/tputs.c 2010-05-24 09:42:47.000000000 +0000 @@ -3,7 +3,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -36,7 +36,7 @@ { cp++; while (c_isdigit (*cp)) - cp++; + cp++; } for (; *cp != '\0'; cp++) outcharfun (*cp); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/trim.c gettext-0.18.1.1/gettext-tools/gnulib-lib/trim.c --- gettext-0.17/gettext-tools/gnulib-lib/trim.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/trim.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,133 @@ +/* Removes leading and/or trailing whitespaces + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Davide Angelocola */ + +#include + +/* Specification. */ +#include "trim.h" + +#include +#include +#include +#include + +#include "mbchar.h" +#include "mbiter.h" +#include "xalloc.h" + +/* Use this to suppress gcc's `...may be used before initialized' warnings. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +char * +trim2 (const char *s, int how) +{ + char *d; + + d = strdup (s); + + if (!d) + xalloc_die (); + + if (MB_CUR_MAX > 1) + { + mbi_iterator_t i; + + /* Trim leading whitespaces. */ + if (how != TRIM_TRAILING) + { + mbi_init (i, d, strlen (d)); + + for (; mbi_avail (i) && mb_isspace (mbi_cur (i)); mbi_advance (i)) + ; + + memmove (d, mbi_cur_ptr (i), strlen (mbi_cur_ptr (i)) + 1); + } + + /* Trim trailing whitespaces. */ + if (how != TRIM_LEADING) + { + int state = 0; + char *r IF_LINT (= NULL); /* used only while state = 2 */ + + mbi_init (i, d, strlen (d)); + + for (; mbi_avail (i); mbi_advance (i)) + { + if (state == 0 && mb_isspace (mbi_cur (i))) + { + state = 0; + continue; + } + + if (state == 0 && !mb_isspace (mbi_cur (i))) + { + state = 1; + continue; + } + + if (state == 1 && !mb_isspace (mbi_cur (i))) + { + state = 1; + continue; + } + + if (state == 1 && mb_isspace (mbi_cur (i))) + { + state = 2; + r = (char *) mbi_cur_ptr (i); + } + else if (state == 2 && mb_isspace (mbi_cur (i))) + { + state = 2; + } + else + { + state = 1; + } + } + + if (state == 2) + *r = '\0'; + } + } + else + { + char *p; + + /* Trim leading whitespaces. */ + if (how != TRIM_TRAILING) { + for (p = d; *p && isspace ((unsigned char) *p); p++) + ; + + memmove (d, p, strlen (p) + 1); + } + + /* Trim trailing whitespaces. */ + if (how != TRIM_LEADING) { + for (p = d + strlen (d) - 1; p >= d && isspace ((unsigned char) *p); p--) + *p = '\0'; + } + } + + return d; +} + diff -Nru gettext-0.17/gettext-tools/gnulib-lib/trim.h gettext-0.18.1.1/gettext-tools/gnulib-lib/trim.h --- gettext-0.17/gettext-tools/gnulib-lib/trim.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/trim.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,33 @@ +/* Removes leading and/or trailing whitespaces + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Davide Angelocola */ + +/* Trim mode. */ +#define TRIM_TRAILING 0 +#define TRIM_LEADING 1 +#define TRIM_BOTH 2 + +/* Removes trailing and leading whitespaces. */ +#define trim(s) trim2(s, TRIM_BOTH) + +/* Removes trailing whitespaces. */ +#define trim_trailing(s) trim2(s, TRIM_TRAILING) + +/* Removes leading whitespaces. */ +#define trim_leading(s) trim2(s, TRIM_LEADING) + +char *trim2 (const char *, int); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c --- gettext-0.17/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniconv/u8-conv-from-enc.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,105 @@ +/* Conversion to UTF-8 from legacy encodings. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include + +/* Specification. */ +#include "uniconv.h" + +#include +#include +#include + +#include "c-strcaseeq.h" +#include "striconveha.h" +#include "unistr.h" + +uint8_t * +u8_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint8_t *resultbuf, size_t *lengthp) +{ + if (STRCASEEQ (fromcode, "UTF-8", 'U','T','F','-','8',0,0,0,0)) + { + /* Conversion from UTF-8 to UTF-8. No need to go through iconv(). */ + uint8_t *result; + + if (u8_check ((const uint8_t *) src, srclen)) + { + errno = EILSEQ; + return NULL; + } + + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; ) + { + int count = u8_mblen ((const uint8_t *) src + i, srclen - i); + /* We can rely on count > 0 because of the previous u8_check. */ + if (count <= 0) + abort (); + offsets[i] = i; + i++; + while (--count > 0) + offsets[i++] = (size_t)(-1); + } + } + + /* Memory allocation. */ + if (resultbuf != NULL && *lengthp >= srclen) + result = resultbuf; + else + { + result = (uint8_t *) malloc (srclen > 0 ? srclen : 1); + if (result == NULL) + { + errno = ENOMEM; + return NULL; + } + } + + memcpy ((char *) result, src, srclen); + *lengthp = srclen; + return result; + } + else + { + char *result = (char *) resultbuf; + size_t length = *lengthp; + + if (mem_iconveha (src, srclen, fromcode, "UTF-8", true, handler, + offsets, &result, &length) < 0) + return NULL; + + if (result == NULL) /* when (resultbuf == NULL && length == 0) */ + { + result = (char *) malloc (1); + if (result == NULL) + { + errno = ENOMEM; + return NULL; + } + } + *lengthp = length; + return (uint8_t *) result; + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniconv.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniconv.in.h --- gettext-0.17/gettext-tools/gnulib-lib/uniconv.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniconv.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,172 @@ +/* Conversions between Unicode and legacy encodings. + Copyright (C) 2002, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNICONV_H +#define _UNICONV_H + +/* Get size_t. */ +#include + +#include "unitypes.h" + +/* Get enum iconv_ilseq_handler. */ +#include "iconveh.h" + +/* Get uniconv_register_autodetect() declaration. */ +#include "striconveha.h" + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Converts an entire string, possibly including NUL bytes, from one encoding + to a Unicode encoding. + Converts a memory region given in encoding FROMCODE. FROMCODE is as for + iconv_open(3). + The input is in the memory region between SRC (inclusive) and SRC + SRCLEN + (exclusive). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + RESULTBUF and *LENGTHP should initially be a scratch buffer and its size, + or *RESULTBUF can be NULL. + May erase the contents of the memory at RESULTBUF. + If successful: The resulting Unicode string (non-NULL) is returned and its + length stored in *LENGTHP. The resulting string is RESULTBUF if no dynamic + memory allocation was necessary, or a freshly allocated memory block + otherwise. + In case of error: NULL is returned and errno is set. Particular errno + values: EINVAL, EILSEQ, ENOMEM. */ +extern uint8_t * + u8_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint8_t *resultbuf, size_t *lengthp); +extern uint16_t * + u16_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint16_t *resultbuf, size_t *lengthp); +extern uint32_t * + u32_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint32_t *resultbuf, size_t *lengthp); + +/* Converts an entire Unicode string, possibly including NUL units, from a + Unicode encoding to a given encoding. + Converts a memory region to encoding TOCODE. TOCODE is as for + iconv_open(3). + The input is in the memory region between SRC (inclusive) and SRC + SRCLEN + (exclusive). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + RESULTBUF and *LENGTHP should initially be a scratch buffer and its size, + or RESULTBUF can be NULL. + May erase the contents of the memory at RESULTBUF. + If successful: The resulting string (non-NULL) is returned and its length + stored in *LENGTHP. The resulting string is RESULTBUF if no dynamic memory + allocation was necessary, or a freshly allocated memory block otherwise. + In case of error: NULL is returned and errno is set. Particular errno + values: EINVAL, EILSEQ, ENOMEM. */ +extern char * + u8_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint8_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); +extern char * + u16_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint16_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); +extern char * + u32_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint32_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); + +/* Converts a NUL terminated string from a given encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: EILSEQ, ENOMEM. */ +extern uint8_t * + u8_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); +extern uint16_t * + u16_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); +extern uint32_t * + u32_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); + +/* Converts a NUL terminated string to a given encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: EILSEQ, ENOMEM. */ +extern char * + u8_strconv_to_encoding (const uint8_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); +extern char * + u16_strconv_to_encoding (const uint16_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); +extern char * + u32_strconv_to_encoding (const uint32_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); + +/* Converts a NUL terminated string from the locale encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern uint8_t * + u8_strconv_from_locale (const char *string); +extern uint16_t * + u16_strconv_from_locale (const char *string); +extern uint32_t * + u32_strconv_from_locale (const char *string); + +/* Converts a NUL terminated string to the locale encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern char * + u8_strconv_to_locale (const uint8_t *string); +extern char * + u16_strconv_to_locale (const uint16_t *string); +extern char * + u32_strconv_to_locale (const uint32_t *string); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNICONV_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrkprop1.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrkprop1.h --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrkprop1.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrkprop1.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,33 @@ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +/* Line breaking properties of Unicode characters. */ +/* Generated automatically by gen-lbrk for Unicode 5.1.0. */ + +/* Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#define lbrkprop_header_0 16 +#define lbrkprop_header_1 15 +#define lbrkprop_header_2 7 +#define lbrkprop_header_3 511 +#define lbrkprop_header_4 127 + +typedef struct + { + int level1[15]; + int level2[4 << 9]; + unsigned char level3[142 << 7]; + } +lbrkprop_t; +extern const lbrkprop_t unilbrkprop; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrkprop2.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrkprop2.h --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrkprop2.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrkprop2.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,2558 @@ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +/* Line breaking properties of Unicode characters. */ +/* Generated automatically by gen-lbrk for Unicode 5.1.0. */ + +/* Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +const lbrkprop_t unilbrkprop = +{ + { + 0, 512, 1024, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 1536 + }, + { + 0, 128, 256, 256, 256, 384, 512, 640, + 256, 768, 896, 1024, 1152, 1280, 1408, 1536, + -1, -1, 1664, 1792, 1920, 2048, 2176, 2304, + 2432, 2560, 2688, 2816, 2944, 3072, 3200, 3328, + 3456, 3584, 3712, 3840, 3968, 4096, 4224, 4352, + 4480, 256, 256, 256, 4608, 4736, 4864, 4992, + 5120, 5248, 5376, 5504, 5632, -1, 5760, 5888, + 6016, -1, 256, 6144, 256, 256, 6272, 6400, + 6528, 6656, 6784, 6912, 7040, 7168, 7296, 7424, + 7552, 7680, 7808, 7936, 8064, 8192, 8320, 8448, + 256, 256, 256, 8576, 256, 256, 8704, -1, + 8832, 8960, 9088, 9216, 9344, 9472, 9600, 9728, + 9856, 9984, 10112, 10240, 10368, 10496, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 10624, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 10752, + 10880, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 11008, 256, 256, 11136, 11264, 256, 11392, + 11520, 11648, 11776, -1, 11904, -1, -1, -1, + 12032, 12160, 12288, 12416, 12544, 12672, 12800, 12032, + 12160, 12288, 12416, 12544, 12672, 12800, 12032, 12160, + 12288, 12416, 12544, 12672, 12800, 12032, 12160, 12288, + 12416, 12544, 12672, 12800, 12032, 12160, 12288, 12416, + 12544, 12672, 12800, 12032, 12160, 12288, 12416, 12544, + 12672, 12800, 12032, 12160, 12288, 12416, 12544, 12672, + 12800, 12032, 12160, 12288, 12416, 12544, 12672, 12800, + 12032, 12160, 12288, 12416, 12544, 12672, 12800, 12032, + 12160, 12288, 12416, 12544, 12672, 12800, 12032, 12160, + 12288, 12416, 12544, 12672, 12800, 12032, 12160, 12288, + 12416, 12544, 12672, 12800, 12032, 12160, 12288, 12928, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 9600, 9600, 13056, 13184, 13312, 13440, + 256, 256, 13568, 13696, 13824, 13952, 14080, 14208, + 14336, 14464, 14592, 14720, -1, 14848, 14976, 15104, + 256, 15232, -1, -1, -1, -1, -1, -1, + 15360, -1, 15488, -1, 15616, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 256, 256, 256, 256, 256, 256, 15744, -1, + 15872, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 256, 16000, 16128, 16256, 16384, -1, 16512, -1, + 16640, 16768, 16896, 256, 256, 17024, 256, 17152, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 17280, 17408, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 17536, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 9600, 9600, 9600, 9600, 17664, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 17792, -1, 17920, 18048, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1 + }, + { + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_BA, LBP_BK, LBP_BK, LBP_BK, LBP_BK, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_SP, LBP_EX, LBP_QU, LBP_AL, LBP_PR, LBP_PO, LBP_AL, LBP_QU, + LBP_OP, LBP_CL, LBP_AL, LBP_PR, LBP_IS, LBP_HY, LBP_IS, LBP_SY, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_IS, LBP_IS, LBP_AL, LBP_AL, LBP_AL, LBP_EX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_PR, LBP_CL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_BA, LBP_CL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BK, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_GL, LBP_OP, LBP_PO, LBP_PR, LBP_PR, LBP_PR, LBP_AL, LBP_AI, + LBP_AI, LBP_AL, LBP_AI, LBP_QU, LBP_AL, LBP_BA, LBP_AL, LBP_AL, + LBP_PO, LBP_PR, LBP_AI, LBP_AI, LBP_BB, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_QU, LBP_AI, LBP_AI, LBP_AI, LBP_OP, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_BB, LBP_AI, LBP_AI, LBP_AI, LBP_BB, LBP_AI, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_BB, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, LBP_GL, LBP_GL, LBP_GL, + LBP_GL, LBP_GL, LBP_GL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_IS, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_IS, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_CM, + LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_EX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_PO, LBP_PO, LBP_PO, LBP_IS, LBP_IS, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_EX, LBP_XX, LBP_XX, LBP_EX, LBP_EX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_PO, LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_EX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_IS, LBP_EX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_BA, LBP_BA, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_PR, LBP_PR, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, + LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_PR, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_PR, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_PR, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, + LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_SA, + LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_BB, LBP_BB, LBP_BB, LBP_BB, LBP_AL, LBP_BB, LBP_BB, + LBP_GL, LBP_BB, LBP_BB, LBP_BA, LBP_GL, LBP_EX, LBP_EX, LBP_EX, + LBP_EX, LBP_EX, LBP_GL, LBP_AL, LBP_EX, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_CM, LBP_AL, LBP_CM, + LBP_AL, LBP_CM, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_BB, LBP_BB, LBP_BA, LBP_BB, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_JL, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_AL, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_BA, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_BA, LBP_BA, LBP_NS, LBP_SA, + LBP_BA, LBP_AL, LBP_BA, LBP_PR, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_EX, LBP_EX, LBP_BA, LBP_BA, LBP_BB, LBP_AL, + LBP_EX, LBP_EX, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_GL, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_EX, LBP_EX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_AL, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_GL, + LBP_BA, LBP_BA, LBP_BA, LBP_ZW, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_BA, LBP_GL, LBP_BA, LBP_BA, LBP_B2, LBP_AI, LBP_AI, LBP_AL, + LBP_QU, LBP_QU, LBP_OP, LBP_QU, LBP_QU, LBP_QU, LBP_OP, LBP_QU, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_IN, LBP_IN, LBP_IN, LBP_BA, + LBP_BK, LBP_BK, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, + LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, + LBP_AL, LBP_QU, LBP_QU, LBP_AI, LBP_NS, LBP_NS, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_IS, LBP_OP, LBP_CL, LBP_NS, + LBP_NS, LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_AL, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_BA, LBP_BA, LBP_BA, + LBP_WJ, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AI, + LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PO, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_PR, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AI, LBP_PR, LBP_PR, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, + LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_XX, + LBP_XX, LBP_AL, LBP_EX, LBP_EX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_EX, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_EX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, + LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_BA, LBP_BA, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_BA, + LBP_OP, LBP_BA, LBP_AL, LBP_AL, LBP_QU, LBP_QU, LBP_AL, LBP_AL, + LBP_QU, LBP_QU, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_EX, LBP_AL, + LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_CL, LBP_CL, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_NS, LBP_OP, LBP_CL, LBP_CL, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, + LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, + LBP_NS, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_EX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_BB, LBP_EX, LBP_EX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_BA, LBP_BA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_AL, LBP_BA, LBP_BA, LBP_BA, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_IS, LBP_CL, LBP_CL, LBP_IS, LBP_IS, LBP_EX, LBP_EX, LBP_OP, + LBP_CL, LBP_IN, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, + LBP_CL, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_CL, LBP_ID, LBP_CL, LBP_XX, LBP_NS, LBP_NS, LBP_EX, LBP_EX, + LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_WJ, + LBP_XX, LBP_EX, LBP_ID, LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_ID, + LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_CL, LBP_ID, LBP_CL, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_EX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_OP, + LBP_CL, LBP_CL, LBP_OP, LBP_CL, LBP_CL, LBP_NS, LBP_AL, LBP_NS, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_NS, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_PO, LBP_PR, LBP_ID, LBP_ID, LBP_ID, LBP_PR, LBP_PR, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CB, LBP_AI, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX + } +}; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrktables.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrktables.c --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrktables.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrktables.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,63 @@ +/* Line breaking auxiliary tables. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk/lbrktables.h" + +/* Define unilbrkprop, table of line breaking properties. */ +#include "unilbrk/lbrkprop2.h" + +const unsigned char unilbrk_table[24][24] = +{ + /* after */ + /* WJ GL B2 BA BB HY CL EX IN NS OP QU IS NU PO PR SY AL H2 H3 ID JL JV JT */ +/* WJ */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* GL */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* B2 */ { P, I, P, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* BA */ { P, D, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* BB */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* HY */ { P, D, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* CL */ { P, I, D, I, D, I, P, P, D, P, D, I, P, D, I, I, P, D, D, D, D, D, D, D, }, +/* EX */ { P, I, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* IN */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* NS */ { P, I, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* OP */ { P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, }, +/* QU */ { P, I, I, I, I, I, P, P, I, I, P, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* IS */ { P, I, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* NU */ { P, I, D, I, D, I, P, P, I, I, D, I, P, I, I, I, P, I, D, D, D, D, D, D, }, +/* PO */ { P, I, D, I, D, I, P, P, D, I, I, I, P, I, D, D, P, I, D, D, D, D, D, D, }, +/* PR */ { P, I, D, I, D, I, P, P, D, I, I, I, P, I, D, D, P, I, I, I, I, I, I, I, }, +/* SY */ { P, I, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* AL */ { P, I, D, I, D, I, P, P, I, I, D, I, P, I, D, D, P, I, D, D, D, D, D, D, }, +/* H2 */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, I, I, }, +/* H3 */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, I, }, +/* ID */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, D, }, +/* JL */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, I, I, D, I, I, D, }, +/* JV */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, I, I, }, +/* JT */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, I, }, +/* "" */ +/* before */ +}; +/* Note: The (IS,AL) entry has been changed from I to D. In other words, the + rule "Do not break between numeric punctuation and alphabetics" is not + implemented here. We want to break before the HTML tag in strings like + "

    Some sentence.

    " */ +/* Note: The (B2,B2) entry should probably be D instead of P. */ +/* Note: The (PR,ID) entry should probably be D instead of I. */ +/* Note: The (WJ,*) and (GL,*) entries should probably be P instead of I. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrktables.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrktables.h --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/lbrktables.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/lbrktables.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,94 @@ +/* Line breaking auxiliary tables. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include "unitypes.h" + +/* Line breaking classification. */ + +enum +{ + /* Values >= 24 are resolved at run time. */ + LBP_BK = 24, /* mandatory break */ +/*LBP_CR, carriage return - not used here because it's a DOSism */ +/*LBP_LF, line feed - not used here because it's a DOSism */ + LBP_CM = 25, /* attached characters and combining marks */ +/*LBP_NL, next line - not used here because it's equivalent to LBP_BK */ +/*LBP_SG, surrogates - not used here because they are not characters */ + LBP_WJ = 0, /* word joiner */ + LBP_ZW = 26, /* zero width space */ + LBP_GL = 1, /* non-breaking (glue) */ + LBP_SP = 27, /* space */ + LBP_B2 = 2, /* break opportunity before and after */ + LBP_BA = 3, /* break opportunity after */ + LBP_BB = 4, /* break opportunity before */ + LBP_HY = 5, /* hyphen */ + LBP_CB = 28, /* contingent break opportunity */ + LBP_CL = 6, /* closing punctuation */ + LBP_EX = 7, /* exclamation/interrogation */ + LBP_IN = 8, /* inseparable */ + LBP_NS = 9, /* non starter */ + LBP_OP = 10, /* opening punctuation */ + LBP_QU = 11, /* ambiguous quotation */ + LBP_IS = 12, /* infix separator (numeric) */ + LBP_NU = 13, /* numeric */ + LBP_PO = 14, /* postfix (numeric) */ + LBP_PR = 15, /* prefix (numeric) */ + LBP_SY = 16, /* symbols allowing breaks */ + LBP_AI = 29, /* ambiguous (alphabetic or ideograph) */ + LBP_AL = 17, /* ordinary alphabetic and symbol characters */ + LBP_H2 = 18, /* Hangul LV syllable */ + LBP_H3 = 19, /* Hangul LVT syllable */ + LBP_ID = 20, /* ideographic */ + LBP_JL = 21, /* Hangul L Jamo */ + LBP_JV = 22, /* Hangul V Jamo */ + LBP_JT = 23, /* Hangul T Jamo */ + LBP_SA = 30, /* complex context (South East Asian) */ + LBP_XX = 31 /* unknown */ +}; + +#include "lbrkprop1.h" + +static inline unsigned char +unilbrkprop_lookup (ucs4_t uc) +{ + unsigned int index1 = uc >> lbrkprop_header_0; + if (index1 < lbrkprop_header_1) + { + int lookup1 = unilbrkprop.level1[index1]; + if (lookup1 >= 0) + { + unsigned int index2 = (uc >> lbrkprop_header_2) & lbrkprop_header_3; + int lookup2 = unilbrkprop.level2[lookup1 + index2]; + if (lookup2 >= 0) + { + unsigned int index3 = uc & lbrkprop_header_4; + return unilbrkprop.level3[lookup2 + index3]; + } + } + } + return LBP_XX; +} + +/* Table indexed by two line breaking classifications. */ +#define D 1 /* direct break opportunity, empty in table 7.3 of UTR #14 */ +#define I 2 /* indirect break opportunity, '%' in table 7.3 of UTR #14 */ +#define P 3 /* prohibited break, '^' in table 7.3 of UTR #14 */ + +extern const unsigned char unilbrk_table[24][24]; + +/* We don't support line breaking of complex-context dependent characters + (Thai, Lao, Myanmar, Khmer) yet, because it requires dictionary lookup. */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/u8-possible-linebreaks.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,261 @@ +/* Line breaking of UTF-8 strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include +#include + +#include "unilbrk/lbrktables.h" +#include "uniwidth/cjk.h" +#include "unistr.h" + +void +u8_possible_linebreaks (const uint8_t *s, size_t n, const char *encoding, char *p) +{ + int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); + const uint8_t *s_end = s + n; + int last_prop = LBP_BK; /* line break property of last non-space character */ + char *seen_space = NULL; /* Was a space seen after the last non-space character? */ + char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ + + /* Don't break inside multibyte characters. */ + memset (p, UC_BREAK_PROHIBITED, n); + + while (s < s_end) + { + ucs4_t uc; + int count = u8_mbtouc_unsafe (&uc, s, s_end - s); + int prop = unilbrkprop_lookup (uc); + + if (prop == LBP_BK) + { + /* Mandatory break. */ + *p = UC_BREAK_MANDATORY; + last_prop = LBP_BK; + seen_space = NULL; + seen_space2 = NULL; + } + else + { + char *q; + + /* Resolve property values whose behaviour is not fixed. */ + switch (prop) + { + case LBP_AI: + /* Resolve ambiguous. */ + prop = LBP_AI_REPLACEMENT; + break; + case LBP_CB: + /* This is arbitrary. */ + prop = LBP_ID; + break; + case LBP_SA: + /* We don't handle complex scripts yet. + Treat LBP_SA like LBP_XX. */ + case LBP_XX: + /* This is arbitrary. */ + prop = LBP_AL; + break; + } + + /* Deal with spaces and combining characters. */ + q = p; + if (prop == LBP_SP) + { + /* Don't break just before a space. */ + *p = UC_BREAK_PROHIBITED; + seen_space2 = seen_space; + seen_space = p; + } + else if (prop == LBP_ZW) + { + /* Don't break just before a zero-width space. */ + *p = UC_BREAK_PROHIBITED; + last_prop = LBP_ZW; + seen_space = NULL; + seen_space2 = NULL; + } + else if (prop == LBP_CM) + { + /* Don't break just before a combining character, except immediately after a + zero-width space. */ + if (last_prop == LBP_ZW) + { + /* Break after zero-width space. */ + *p = UC_BREAK_POSSIBLE; + /* A combining character turns a preceding space into LBP_ID. */ + last_prop = LBP_ID; + } + else + { + *p = UC_BREAK_PROHIBITED; + /* A combining character turns a preceding space into LBP_ID. */ + if (seen_space != NULL) + { + q = seen_space; + seen_space = seen_space2; + prop = LBP_ID; + goto lookup_via_table; + } + } + } + else + { + lookup_via_table: + /* prop must be usable as an index for table 7.3 of UTR #14. */ + if (!(prop >= 0 && prop < sizeof (unilbrk_table) / sizeof (unilbrk_table[0]))) + abort (); + + if (last_prop == LBP_BK) + { + /* Don't break at the beginning of a line. */ + *q = UC_BREAK_PROHIBITED; + } + else if (last_prop == LBP_ZW) + { + /* Break after zero-width space. */ + *q = UC_BREAK_POSSIBLE; + } + else + { + switch (unilbrk_table [last_prop] [prop]) + { + case D: + *q = UC_BREAK_POSSIBLE; + break; + case I: + *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); + break; + case P: + *q = UC_BREAK_PROHIBITED; + break; + default: + abort (); + } + } + last_prop = prop; + seen_space = NULL; + seen_space2 = NULL; + } + } + + s += count; + p += count; + } +} + + +#ifdef TEST + +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + if (argc == 1) + { + /* Display all the break opportunities in the input string. */ + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + u8_possible_linebreaks ((uint8_t *) input, length, "UTF-8", breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + /* U+2027 in UTF-8 encoding */ + putc (0xe2, stdout); putc (0x80, stdout); putc (0xa7, stdout); + break; + case UC_BREAK_MANDATORY: + /* U+21B2 (or U+21B5) in UTF-8 encoding */ + putc (0xe2, stdout); putc (0x86, stdout); putc (0xb2, stdout); + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/u8-width-linebreaks.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,204 @@ +/* Line breaking of UTF-8 strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include "unistr.h" +#include "uniwidth.h" + +int +u8_width_linebreaks (const uint8_t *s, size_t n, + int width, int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p) +{ + const uint8_t *s_end; + char *last_p; + int last_column; + int piece_width; + + u8_possible_linebreaks (s, n, encoding, p); + + s_end = s + n; + last_p = NULL; + last_column = start_column; + piece_width = 0; + while (s < s_end) + { + ucs4_t uc; + int count = u8_mbtouc_unsafe (&uc, s, s_end - s); + + /* Respect the override. */ + if (o != NULL && *o != UC_BREAK_UNDEFINED) + *p = *o; + + if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) + { + /* An atomic piece of text ends here. */ + if (last_p != NULL && last_column + piece_width > width) + { + /* Insert a line break. */ + *last_p = UC_BREAK_POSSIBLE; + last_column = 0; + } + } + + if (*p == UC_BREAK_MANDATORY) + { + /* uc is a line break character. */ + /* Start a new piece at column 0. */ + last_p = NULL; + last_column = 0; + piece_width = 0; + } + else + { + /* uc is not a line break character. */ + int w; + + if (*p == UC_BREAK_POSSIBLE) + { + /* Start a new piece. */ + last_p = p; + last_column += piece_width; + piece_width = 0; + /* No line break for the moment, may be turned into + UC_BREAK_POSSIBLE later, via last_p. */ + } + + *p = UC_BREAK_PROHIBITED; + + w = uc_width (uc, encoding); + if (w >= 0) /* ignore control characters in the string */ + piece_width += w; + } + + s += count; + p += count; + if (o != NULL) + o += count; + } + + /* The last atomic piece of text ends here. */ + if (last_p != NULL && last_column + piece_width + at_end_columns > width) + { + /* Insert a line break. */ + *last_p = UC_BREAK_POSSIBLE; + last_column = 0; + } + + return last_column + piece_width; +} + + +#ifdef TEST + +#include +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + if (argc == 2) + { + /* Insert line breaks for a given width. */ + int width = atoi (argv[1]); + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + u8_width_linebreaks ((uint8_t *) input, length, width, 0, 0, NULL, "UTF-8", breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + putc ('\n', stdout); + break; + case UC_BREAK_MANDATORY: + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-common.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-common.c --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-common.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-common.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,51 @@ +/* Line breaking auxiliary functions. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk/ulc-common.h" + +#include "c-ctype.h" +#include "c-strcaseeq.h" + +int +is_utf8_encoding (const char *encoding) +{ + if (STRCASEEQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + return 1; + return 0; +} + +#if C_CTYPE_ASCII + +/* Tests whether a string is entirely ASCII. Returns 1 if yes. + Returns 0 if the string is in an 8-bit encoding or an ISO-2022 encoding. */ +int +is_all_ascii (const char *s, size_t n) +{ + for (; n > 0; s++, n--) + { + unsigned char c = (unsigned char) *s; + + if (!(c_isprint (c) || c_isspace (c))) + return 0; + } + return 1; +} + +#endif /* C_CTYPE_ASCII */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-common.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-common.h --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-common.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-common.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,31 @@ +/* Line breaking auxiliary functions. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Get size_t. */ +#include + +#include "c-ctype.h" + +#define is_utf8_encoding unilbrk_is_utf8_encoding +extern int is_utf8_encoding (const char *encoding); + +#if C_CTYPE_ASCII + +# define is_all_ascii unilbrk_is_all_ascii +extern int is_all_ascii (const char *s, size_t n); + +#endif /* C_CTYPE_ASCII */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk/ulc-width-linebreaks.c 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,231 @@ +/* Line breaking of strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include +#include + +#include "c-ctype.h" +#include "uniconv.h" +#include "unilbrk/ulc-common.h" + +/* Line breaking of a string in an arbitrary encoding. + + We convert the input string to Unicode. + + The standardized Unicode encodings are UTF-8, UCS-2, UCS-4, UTF-16, + UTF-16BE, UTF-16LE, UTF-7. UCS-2 supports only characters up to + \U0000FFFF. UTF-16 and variants support only characters up to + \U0010FFFF. UTF-7 is way too complex and not supported by glibc-2.1. + UCS-4 specification leaves doubts about endianness and byte order mark. + glibc currently interprets it as big endian without byte order mark, + but this is not backed by an RFC. So we use UTF-8. It supports + characters up to \U7FFFFFFF and is unambiguously defined. */ + +int +ulc_width_linebreaks (const char *s, size_t n, + int width, int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p) +{ + if (n > 0) + { + if (is_utf8_encoding (encoding)) + return u8_width_linebreaks ((const uint8_t *) s, n, width, start_column, at_end_columns, o, encoding, p); + else + { + /* Convert the string to UTF-8 and build a translation table + from offsets into s to offsets into the translated string. */ + size_t *offsets = (size_t *) malloc (n * sizeof (size_t)); + + if (offsets != NULL) + { + uint8_t *t; + size_t m; + + t = u8_conv_from_encoding (encoding, iconveh_question_mark, + s, n, offsets, NULL, &m); + if (t != NULL) + { + char *memory = + (char *) (m > 0 ? malloc (m + (o != NULL ? m : 0)) : NULL); + + if (m == 0 || memory != NULL) + { + char *q = (char *) memory; + char *o8 = (o != NULL ? (char *) (q + m) : NULL); + int res_column; + size_t i; + + /* Translate the overrides to the UTF-8 string. */ + if (o != NULL) + { + memset (o8, UC_BREAK_UNDEFINED, m); + for (i = 0; i < n; i++) + if (offsets[i] != (size_t)(-1)) + o8[offsets[i]] = o[i]; + } + + /* Determine the line breaks of the UTF-8 string. */ + res_column = + u8_width_linebreaks (t, m, width, start_column, at_end_columns, o8, encoding, q); + + /* Translate the result back to the original string. */ + memset (p, UC_BREAK_PROHIBITED, n); + for (i = 0; i < n; i++) + if (offsets[i] != (size_t)(-1)) + p[i] = q[offsets[i]]; + + free (memory); + free (t); + free (offsets); + return res_column; + } + free (t); + } + free (offsets); + } + /* Impossible to convert. */ +#if C_CTYPE_ASCII + if (is_all_ascii (s, n)) + { + /* ASCII is a subset of UTF-8. */ + return u8_width_linebreaks ((const uint8_t *) s, n, width, start_column, at_end_columns, o, encoding, p); + } +#endif + /* We have a non-ASCII string and cannot convert it. + Don't produce line breaks except those already present in the + input string. All we assume here is that the encoding is + minimally ASCII compatible. */ + { + const char *s_end = s + n; + while (s < s_end) + { + *p = ((o != NULL && *o == UC_BREAK_MANDATORY) || *s == '\n' + ? UC_BREAK_MANDATORY + : UC_BREAK_PROHIBITED); + s++; + p++; + if (o != NULL) + o++; + } + /* We cannot compute widths in this case. */ + } + } + } + return start_column; +} + + +#ifdef TEST + +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + setlocale (LC_CTYPE, ""); + if (argc == 2) + { + /* Insert line breaks for a given width. */ + int width = atoi (argv[1]); + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + ulc_width_linebreaks (input, length, width, 0, 0, NULL, locale_charset (), breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + putc ('\n', stdout); + break; + case UC_BREAK_MANDATORY: + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unilbrk.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk.in.h --- gettext-0.17/gettext-tools/gnulib-lib/unilbrk.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unilbrk.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,110 @@ +/* Line breaking of Unicode strings. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNILBRK_H +#define _UNILBRK_H + +/* Get size_t. */ +#include + +#include "unitypes.h" + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* These functions are locale dependent. The encoding argument identifies + the encoding (e.g. "ISO-8859-2" for Polish). */ + + +/* Line breaking. */ + +enum +{ + UC_BREAK_UNDEFINED, + UC_BREAK_PROHIBITED, + UC_BREAK_POSSIBLE, + UC_BREAK_MANDATORY, + UC_BREAK_HYPHENATION +}; + +/* Determine the line break points in S, and store the result at p[0..n-1]. + p[i] = UC_BREAK_MANDATORY means that s[i] is a line break character. + p[i] = UC_BREAK_POSSIBLE means that a line break may be inserted between + s[i-1] and s[i]. + p[i] = UC_BREAK_HYPHENATION means that a hyphen and a line break may be + inserted between s[i-1] and s[i]. But beware of language dependent + hyphenation rules. + p[i] = UC_BREAK_PROHIBITED means that s[i-1] and s[i] must not be separated. + */ +extern void + u8_possible_linebreaks (const uint8_t *s, size_t n, + const char *encoding, char *p); +extern void + u16_possible_linebreaks (const uint16_t *s, size_t n, + const char *encoding, char *p); +extern void + u32_possible_linebreaks (const uint32_t *s, size_t n, + const char *encoding, char *p); +extern void + ulc_possible_linebreaks (const char *s, size_t n, + const char *encoding, char *p); + +/* Choose the best line breaks, assuming the uc_width function. + The string is s[0..n-1]. The maximum number of columns per line is given + as WIDTH. The starting column of the string is given as START_COLUMN. + If the algorithm shall keep room after the last piece, they can be given + as AT_END_COLUMNS. + o is an optional override; if o[i] != UC_BREAK_UNDEFINED, o[i] takes + precedence over p[i] as returned by the *_possible_linebreaks function. + The given ENCODING is used for disambiguating widths in uc_width. + Return the column after the end of the string, and store the result at + p[0..n-1]. + */ +extern int + u8_width_linebreaks (const uint8_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + u16_width_linebreaks (const uint16_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + u32_width_linebreaks (const uint32_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + ulc_width_linebreaks (const char *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _UNILBRK_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniname/gen-uninames.lisp gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/gen-uninames.lisp --- gettext-0.17/gettext-tools/gnulib-lib/uniname/gen-uninames.lisp 2007-09-01 13:12:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/gen-uninames.lisp 2010-05-24 09:42:47.000000000 +0000 @@ -42,15 +42,16 @@ (unless (or (<= #xF900 code #xFA2D) (<= #xFA30 code #xFA6A) (<= #xFA70 code #xFAD9) (<= #x2F800 code #x2FA1D)) ; Transform the code so that it fits in 16 bits. In - ; Unicode 3.1 the following ranges are used. + ; Unicode 5.1 the following ranges are used. ; 0x00000..0x04DFF >>12= 0x00..0x04 -> 0x0..0x4 - ; 0x0A000..0x0A4FF >>12= 0x0A -> 0x5 + ; 0x0A000..0x0AAFF >>12= 0x0A -> 0x5 ; 0x0F900..0x0FFFF >>12= 0x0F -> 0x6 - ; 0x10300..0x104FF >>12= 0x10 -> 0x7 + ; 0x10000..0x10A58 >>12= 0x10 -> 0x7 ; 0x12000..0x12473 >>12= 0x12 -> 0x8 - ; 0x1D000..0x1D7DD >>12= 0x1D -> 0x9 - ; 0x2F800..0x2FAFF >>12= 0x2F -> 0xA - ; 0xE0000..0xE00FF >>12= 0xE0 -> 0xB + ; 0x1D000..0x1D7FF >>12= 0x1D -> 0x9 + ; 0x1F000..0x1F093 >>12= 0x1F -> 0xA + ; 0x2F800..0x2FAFF >>12= 0x2F -> 0xB + ; 0xE0000..0xE00FF >>12= 0xE0 -> 0xC (flet ((transform (x) (dpb (case (ash x -12) @@ -60,8 +61,9 @@ (#x10 7) (#x12 8) (#x1D 9) - (#x2F #xA) - (#xE0 #xB) + (#x1F #xA) + (#x2F #xB) + (#xE0 #xC) (t (error "Update the transform function for 0x~5,'0X" x)) ) (byte 8 12) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniname/uniname.c gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/uniname.c --- gettext-0.17/gettext-tools/gnulib-lib/uniname/uniname.c 2007-10-31 12:36:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/uniname.c 2010-05-24 09:42:47.000000000 +0000 @@ -1,5 +1,5 @@ /* Association between Unicode characters and their names. - Copyright (C) 2000-2002, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2000-2002, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -73,16 +73,16 @@ { unsigned int i = (i1 + i2) >> 1; if (unicode_name_by_length[i].ind_offset <= index) - i1 = i; + i1 = i; else - i2 = i; + i2 = i; } i = i1; assert (unicode_name_by_length[i].ind_offset <= index - && index < unicode_name_by_length[i+1].ind_offset); + && index < unicode_name_by_length[i+1].ind_offset); *lengthp = i; return &unicode_name_words[unicode_name_by_length[i].extra_offset - + (index-unicode_name_by_length[i].ind_offset)*i]; + + (index-unicode_name_by_length[i].ind_offset)*i]; } /* Looks up the index of a word. */ @@ -97,32 +97,32 @@ unsigned int i1 = i0; unsigned int i2 = unicode_name_by_length[length+1].ind_offset; while (i2 - i1 > 0) - { - unsigned int i = (i1 + i2) >> 1; - const char *p = &unicode_name_words[extra_offset + (i-i0)*length]; - const char *w = word; - unsigned int n = length; - for (;;) - { - if (*p < *w) - { - if (i1 == i) - return -1; - /* Note here: i1 < i < i2. */ - i1 = i; - break; - } - if (*p > *w) - { - /* Note here: i1 <= i < i2. */ - i2 = i; - break; - } - p++; w++; n--; - if (n == 0) - return i; - } - } + { + unsigned int i = (i1 + i2) >> 1; + const char *p = &unicode_name_words[extra_offset + (i-i0)*length]; + const char *w = word; + unsigned int n = length; + for (;;) + { + if (*p < *w) + { + if (i1 == i) + return -1; + /* Note here: i1 < i < i2. */ + i1 = i; + break; + } + if (*p > *w) + { + /* Note here: i1 <= i < i2. */ + i2 = i; + break; + } + p++; w++; n--; + if (n == 0) + return i; + } + } } return -1; } @@ -171,21 +171,21 @@ q = jamo_initial_short_name[index1]; while (*q != '\0') - *ptr++ = *q++; + *ptr++ = *q++; q = jamo_medial_short_name[index2]; while (*q != '\0') - *ptr++ = *q++; + *ptr++ = *q++; q = jamo_final_short_name[index3]; while (*q != '\0') - *ptr++ = *q++; + *ptr++ = *q++; *ptr = '\0'; return buf; } else if ((c >= 0xF900 && c <= 0xFA2D) || (c >= 0xFA30 && c <= 0xFA6A) - || (c >= 0xFA70 && c <= 0xFAD9) || (c >= 0x2F800 && c <= 0x2FA1D)) + || (c >= 0xFA70 && c <= 0xFAD9) || (c >= 0x2F800 && c <= 0x2FA1D)) { /* Special case for CJK compatibility ideographs. Keeps the tables - small. */ + small. */ char *ptr; int i; @@ -194,10 +194,10 @@ ptr = buf + 28; for (i = (c < 0x10000 ? 12 : 16); i >= 0; i -= 4) - { - unsigned int x = (c >> i) & 0xf; - *ptr++ = (x < 10 ? '0' : 'A' - 10) + x; - } + { + unsigned int x = (c >> i) & 0xf; + *ptr++ = (x < 10 ? '0' : 'A' - 10) + x; + } *ptr = '\0'; return buf; } @@ -207,88 +207,91 @@ /* Transform the code so that it fits in 16 bits. */ switch (c >> 12) - { - case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: - break; - case 0x0A: - c -= 0x05000; - break; - case 0x0F: - c -= 0x09000; - break; - case 0x10: - c -= 0x09000; - break; - case 0x12: - c -= 0x0A000; - break; - case 0x1D: - c -= 0x14000; - break; - case 0x2F: - c -= 0x25000; - break; - case 0xE0: - c -= 0xD5000; - break; - default: - return NULL; - } + { + case 0x00: case 0x01: case 0x02: case 0x03: case 0x04: + break; + case 0x0A: + c -= 0x05000; + break; + case 0x0F: + c -= 0x09000; + break; + case 0x10: + c -= 0x09000; + break; + case 0x12: + c -= 0x0A000; + break; + case 0x1D: + c -= 0x14000; + break; + case 0x1F: + c -= 0x15000; + break; + case 0x2F: + c -= 0x24000; + break; + case 0xE0: + c -= 0xD4000; + break; + default: + return NULL; + } { - /* Binary search in unicode_code_to_name. */ - unsigned int i1 = 0; - unsigned int i2 = SIZEOF (unicode_code_to_name); - for (;;) - { - unsigned int i = (i1 + i2) >> 1; - if (unicode_code_to_name[i].code == c) - { - words = &unicode_names[unicode_code_to_name[i].name]; - break; - } - else if (unicode_code_to_name[i].code < c) - { - if (i1 == i) - { - words = NULL; - break; - } - /* Note here: i1 < i < i2. */ - i1 = i; - } - else if (unicode_code_to_name[i].code > c) - { - if (i2 == i) - { - words = NULL; - break; - } - /* Note here: i1 <= i < i2. */ - i2 = i; - } - } + /* Binary search in unicode_code_to_name. */ + unsigned int i1 = 0; + unsigned int i2 = SIZEOF (unicode_code_to_name); + for (;;) + { + unsigned int i = (i1 + i2) >> 1; + if (unicode_code_to_name[i].code == c) + { + words = &unicode_names[unicode_code_to_name[i].name]; + break; + } + else if (unicode_code_to_name[i].code < c) + { + if (i1 == i) + { + words = NULL; + break; + } + /* Note here: i1 < i < i2. */ + i1 = i; + } + else if (unicode_code_to_name[i].code > c) + { + if (i2 == i) + { + words = NULL; + break; + } + /* Note here: i1 <= i < i2. */ + i2 = i; + } + } } if (words != NULL) - { - /* Found it in unicode_code_to_name. Now concatenate the words. */ - /* buf needs to have at least UNICODE_CHARNAME_MAX_LENGTH bytes. */ - char *ptr = buf; - for (;;) - { - unsigned int wordlen; - const char *word = unicode_name_word (*words>>1, &wordlen); - do - *ptr++ = *word++; - while (--wordlen > 0); - if ((*words & 1) == 0) - break; - *ptr++ = ' '; - words++; - } - *ptr = '\0'; - return buf; - } + { + /* Found it in unicode_code_to_name. Now concatenate the words. */ + /* buf needs to have at least UNICODE_CHARNAME_MAX_LENGTH bytes. */ + char *ptr = buf; + for (;;) + { + unsigned int wordlen; + const char *word = unicode_name_word (*words>>1, &wordlen); + do + *ptr++ = *word++; + while (--wordlen > 0); + if ((*words & 1) == 0) + break; + *ptr++ = ' '; + words++; + } + *ptr = '\0'; + return buf; + } return NULL; } } @@ -305,209 +308,209 @@ char buf[UNICODE_CHARNAME_MAX_LENGTH]; char *ptr = buf; for (;;) - { - char c = *name++; - if (!(c >= ' ' && c <= '~')) - break; - *ptr++ = (c >= 'a' && c <= 'z' ? c - 'a' + 'A' : c); - if (--len == 0) - goto filled_buf; - } + { + char c = *name++; + if (!(c >= ' ' && c <= '~')) + break; + *ptr++ = (c >= 'a' && c <= 'z' ? c - 'a' + 'A' : c); + if (--len == 0) + goto filled_buf; + } if (false) filled_buf: - { - /* Convert the constituents to uint16_t words. */ - uint16_t words[UNICODE_CHARNAME_MAX_WORDS]; - uint16_t *wordptr = words; - { - const char *p1 = buf; - for (;;) - { - { - int word; - const char *p2 = p1; - while (p2 < ptr && *p2 != ' ') - p2++; - word = unicode_name_word_lookup (p1, p2 - p1); - if (word < 0) - break; - if (wordptr == &words[UNICODE_CHARNAME_MAX_WORDS]) - break; - *wordptr++ = word; - if (p2 == ptr) - goto filled_words; - p1 = p2 + 1; - } - /* Special case for Hangul syllables. Keeps the tables small. */ - if (wordptr == &words[2] - && words[0] == UNICODE_CHARNAME_WORD_HANGUL - && words[1] == UNICODE_CHARNAME_WORD_SYLLABLE) - { - /* Split the last word [p1..ptr) into three parts: - 1) [BCDGHJKMNPRST] - 2) [AEIOUWY] - 3) [BCDGHIJKLMNPST] - */ - const char *p2; - const char *p3; - const char *p4; - - p2 = p1; - while (p2 < ptr - && (*p2 == 'B' || *p2 == 'C' || *p2 == 'D' - || *p2 == 'G' || *p2 == 'H' || *p2 == 'J' - || *p2 == 'K' || *p2 == 'M' || *p2 == 'N' - || *p2 == 'P' || *p2 == 'R' || *p2 == 'S' - || *p2 == 'T')) - p2++; - p3 = p2; - while (p3 < ptr - && (*p3 == 'A' || *p3 == 'E' || *p3 == 'I' - || *p3 == 'O' || *p3 == 'U' || *p3 == 'W' - || *p3 == 'Y')) - p3++; - p4 = p3; - while (p4 < ptr - && (*p4 == 'B' || *p4 == 'C' || *p4 == 'D' - || *p4 == 'G' || *p4 == 'H' || *p4 == 'I' - || *p4 == 'J' || *p4 == 'K' || *p4 == 'L' - || *p4 == 'M' || *p4 == 'N' || *p4 == 'P' - || *p4 == 'S' || *p4 == 'T')) - p4++; - if (p4 == ptr) - { - unsigned int n1 = p2 - p1; - unsigned int n2 = p3 - p2; - unsigned int n3 = p4 - p3; - - if (n1 <= 2 && (n2 >= 1 && n2 <= 3) && n3 <= 2) - { - unsigned int index1; - - for (index1 = 0; index1 < 19; index1++) - if (memcmp(jamo_initial_short_name[index1], p1, n1) == 0 - && jamo_initial_short_name[index1][n1] == '\0') - { - unsigned int index2; - - for (index2 = 0; index2 < 21; index2++) - if (memcmp(jamo_medial_short_name[index2], p2, n2) == 0 - && jamo_medial_short_name[index2][n2] == '\0') - { - unsigned int index3; - - for (index3 = 0; index3 < 28; index3++) - if (memcmp(jamo_final_short_name[index3], p3, n3) == 0 - && jamo_final_short_name[index3][n3] == '\0') - { - return 0xAC00 + (index1 * 21 + index2) * 28 + index3; - } - break; - } - break; - } - } - } - } - /* Special case for CJK compatibility ideographs. Keeps the - tables small. */ - if (wordptr == &words[2] - && words[0] == UNICODE_CHARNAME_WORD_CJK - && words[1] == UNICODE_CHARNAME_WORD_COMPATIBILITY - && p1 + 14 <= ptr - && p1 + 15 >= ptr - && memcmp (p1, "IDEOGRAPH-", 10) == 0) - { - const char *p2 = p1 + 10; - - if (*p2 != '0') - { - unsigned int c = 0; - - for (;;) - { - if (*p2 >= '0' && *p2 <= '9') - c += (*p2 - '0'); - else if (*p2 >= 'A' && *p2 <= 'F') - c += (*p2 - 'A' + 10); - else - break; - p2++; - if (p2 == ptr) - { - if ((c >= 0xF900 && c <= 0xFA2D) - || (c >= 0xFA30 && c <= 0xFA6A) - || (c >= 0xFA70 && c <= 0xFAD9) - || (c >= 0x2F800 && c <= 0x2FA1D)) - return c; - else - break; - } - c = c << 4; - } - } - } - } - } - if (false) - filled_words: - { - /* Multiply by 2, to simplify later comparisons. */ - unsigned int words_length = wordptr - words; - { - int i = words_length - 1; - words[i] = 2 * words[i]; - for (; --i >= 0; ) - words[i] = 2 * words[i] + 1; - } - /* Binary search in unicode_name_to_code. */ - { - unsigned int i1 = 0; - unsigned int i2 = SIZEOF (unicode_name_to_code); - for (;;) - { - unsigned int i = (i1 + i2) >> 1; - const uint16_t *w = words; - const uint16_t *p = &unicode_names[unicode_name_to_code[i].name]; - unsigned int n = words_length; - for (;;) - { - if (*p < *w) - { - if (i1 == i) - goto name_not_found; - /* Note here: i1 < i < i2. */ - i1 = i; - break; - } - else if (*p > *w) - { - if (i2 == i) - goto name_not_found; - /* Note here: i1 <= i < i2. */ - i2 = i; - break; - } - p++; w++; n--; - if (n == 0) - { - unsigned int c = unicode_name_to_code[i].code; - - /* Undo the transformation to 16-bit space. */ - static const unsigned int offset[12] = - { - 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, - 0x05000, 0x09000, 0x09000, 0x0A000, 0x14000, - 0x25000, 0xD5000 - }; - return c + offset[c >> 12]; - } - } - } - } - name_not_found: ; - } - } + { + /* Convert the constituents to uint16_t words. */ + uint16_t words[UNICODE_CHARNAME_MAX_WORDS]; + uint16_t *wordptr = words; + { + const char *p1 = buf; + for (;;) + { + { + int word; + const char *p2 = p1; + while (p2 < ptr && *p2 != ' ') + p2++; + word = unicode_name_word_lookup (p1, p2 - p1); + if (word < 0) + break; + if (wordptr == &words[UNICODE_CHARNAME_MAX_WORDS]) + break; + *wordptr++ = word; + if (p2 == ptr) + goto filled_words; + p1 = p2 + 1; + } + /* Special case for Hangul syllables. Keeps the tables small. */ + if (wordptr == &words[2] + && words[0] == UNICODE_CHARNAME_WORD_HANGUL + && words[1] == UNICODE_CHARNAME_WORD_SYLLABLE) + { + /* Split the last word [p1..ptr) into three parts: + 1) [BCDGHJKMNPRST] + 2) [AEIOUWY] + 3) [BCDGHIJKLMNPST] + */ + const char *p2; + const char *p3; + const char *p4; + + p2 = p1; + while (p2 < ptr + && (*p2 == 'B' || *p2 == 'C' || *p2 == 'D' + || *p2 == 'G' || *p2 == 'H' || *p2 == 'J' + || *p2 == 'K' || *p2 == 'M' || *p2 == 'N' + || *p2 == 'P' || *p2 == 'R' || *p2 == 'S' + || *p2 == 'T')) + p2++; + p3 = p2; + while (p3 < ptr + && (*p3 == 'A' || *p3 == 'E' || *p3 == 'I' + || *p3 == 'O' || *p3 == 'U' || *p3 == 'W' + || *p3 == 'Y')) + p3++; + p4 = p3; + while (p4 < ptr + && (*p4 == 'B' || *p4 == 'C' || *p4 == 'D' + || *p4 == 'G' || *p4 == 'H' || *p4 == 'I' + || *p4 == 'J' || *p4 == 'K' || *p4 == 'L' + || *p4 == 'M' || *p4 == 'N' || *p4 == 'P' + || *p4 == 'S' || *p4 == 'T')) + p4++; + if (p4 == ptr) + { + unsigned int n1 = p2 - p1; + unsigned int n2 = p3 - p2; + unsigned int n3 = p4 - p3; + + if (n1 <= 2 && (n2 >= 1 && n2 <= 3) && n3 <= 2) + { + unsigned int index1; + + for (index1 = 0; index1 < 19; index1++) + if (memcmp (jamo_initial_short_name[index1], p1, n1) == 0 + && jamo_initial_short_name[index1][n1] == '\0') + { + unsigned int index2; + + for (index2 = 0; index2 < 21; index2++) + if (memcmp (jamo_medial_short_name[index2], p2, n2) == 0 + && jamo_medial_short_name[index2][n2] == '\0') + { + unsigned int index3; + + for (index3 = 0; index3 < 28; index3++) + if (memcmp (jamo_final_short_name[index3], p3, n3) == 0 + && jamo_final_short_name[index3][n3] == '\0') + { + return 0xAC00 + (index1 * 21 + index2) * 28 + index3; + } + break; + } + break; + } + } + } + } + /* Special case for CJK compatibility ideographs. Keeps the + tables small. */ + if (wordptr == &words[2] + && words[0] == UNICODE_CHARNAME_WORD_CJK + && words[1] == UNICODE_CHARNAME_WORD_COMPATIBILITY + && p1 + 14 <= ptr + && p1 + 15 >= ptr + && memcmp (p1, "IDEOGRAPH-", 10) == 0) + { + const char *p2 = p1 + 10; + + if (*p2 != '0') + { + unsigned int c = 0; + + for (;;) + { + if (*p2 >= '0' && *p2 <= '9') + c += (*p2 - '0'); + else if (*p2 >= 'A' && *p2 <= 'F') + c += (*p2 - 'A' + 10); + else + break; + p2++; + if (p2 == ptr) + { + if ((c >= 0xF900 && c <= 0xFA2D) + || (c >= 0xFA30 && c <= 0xFA6A) + || (c >= 0xFA70 && c <= 0xFAD9) + || (c >= 0x2F800 && c <= 0x2FA1D)) + return c; + else + break; + } + c = c << 4; + } + } + } + } + } + if (false) + filled_words: + { + /* Multiply by 2, to simplify later comparisons. */ + unsigned int words_length = wordptr - words; + { + int i = words_length - 1; + words[i] = 2 * words[i]; + for (; --i >= 0; ) + words[i] = 2 * words[i] + 1; + } + /* Binary search in unicode_name_to_code. */ + { + unsigned int i1 = 0; + unsigned int i2 = SIZEOF (unicode_name_to_code); + for (;;) + { + unsigned int i = (i1 + i2) >> 1; + const uint16_t *w = words; + const uint16_t *p = &unicode_names[unicode_name_to_code[i].name]; + unsigned int n = words_length; + for (;;) + { + if (*p < *w) + { + if (i1 == i) + goto name_not_found; + /* Note here: i1 < i < i2. */ + i1 = i; + break; + } + else if (*p > *w) + { + if (i2 == i) + goto name_not_found; + /* Note here: i1 <= i < i2. */ + i2 = i; + break; + } + p++; w++; n--; + if (n == 0) + { + unsigned int c = unicode_name_to_code[i].code; + + /* Undo the transformation to 16-bit space. */ + static const unsigned int offset[13] = + { + 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, + 0x05000, 0x09000, 0x09000, 0x0A000, 0x14000, + 0x15000, 0x24000, 0xD4000 + }; + return c + offset[c >> 12]; + } + } + } + } + name_not_found: ; + } + } } return UNINAME_INVALID; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniname/uninames.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/uninames.h --- gettext-0.17/gettext-tools/gnulib-lib/uniname/uninames.h 2007-09-01 13:12:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname/uninames.h 2010-05-24 09:42:48.000000000 +0000 @@ -6,7 +6,7 @@ * Generated automatically by the gen-uninames utility. */ -static const char unicode_name_words[36303] = { +static const char unicode_name_words[39544] = { 'A', 'B', 'C', @@ -41,21 +41,25 @@ 'A', 'C', 'A', 'D', 'A', 'E', + 'A', 'G', 'A', 'H', 'A', 'I', 'A', 'K', 'A', 'L', 'A', 'M', 'A', 'N', + 'A', 'O', 'A', 'P', 'A', 'Q', 'A', 'S', 'A', 'T', 'A', 'U', + 'A', 'V', 'A', 'X', 'A', 'Y', 'B', 'A', 'B', 'E', + 'B', 'H', 'B', 'I', 'B', 'O', 'B', 'Q', @@ -71,6 +75,7 @@ 'C', 'O', 'C', 'U', 'C', 'Y', + 'D', '2', 'D', 'A', 'D', 'B', 'D', 'E', @@ -82,6 +87,7 @@ 'D', 'V', 'D', 'Z', 'E', '2', + 'E', 'A', 'E', 'E', 'E', 'F', 'E', 'H', @@ -91,6 +97,7 @@ 'E', 'M', 'E', 'N', 'E', 'O', + 'E', 'P', 'E', 'R', 'E', 'S', 'E', 'T', @@ -107,6 +114,7 @@ 'F', 'O', 'F', 'U', 'F', 'Y', + 'G', '2', 'G', 'A', 'G', 'B', 'G', 'E', @@ -131,6 +139,7 @@ 'I', 'E', 'I', 'F', 'I', 'G', + 'I', 'H', 'I', 'I', 'I', 'J', 'I', 'L', @@ -150,6 +159,7 @@ 'J', 'O', 'J', 'U', 'J', 'Y', + 'K', '2', 'K', 'A', 'K', 'B', 'K', 'E', @@ -164,6 +174,7 @@ 'K', 'V', 'K', 'W', 'L', 'A', + 'L', 'D', 'L', 'E', 'L', 'H', 'L', 'I', @@ -193,6 +204,7 @@ 'M', 'W', 'M', 'Y', 'N', 'A', + 'N', 'D', 'N', 'E', 'N', 'F', 'N', 'G', @@ -200,16 +212,19 @@ 'N', 'I', 'N', 'J', 'N', 'M', + 'N', 'N', 'N', 'O', 'N', 'S', 'N', 'U', 'N', 'V', 'N', 'W', 'O', 'A', + 'O', 'B', 'O', 'E', 'O', 'F', 'O', 'H', 'O', 'I', + 'O', 'L', 'O', 'M', 'O', 'N', 'O', 'O', @@ -222,10 +237,13 @@ 'O', 'W', 'O', 'X', 'O', 'Y', + 'P', '2', 'P', 'A', 'P', 'C', + 'P', 'D', 'P', 'E', 'P', 'F', + 'P', 'G', 'P', 'H', 'P', 'I', 'P', 'M', @@ -236,6 +254,7 @@ 'P', 'V', 'P', 'W', 'P', 'Y', + 'P', 'Z', 'Q', 'A', 'Q', 'E', 'Q', 'I', @@ -252,28 +271,36 @@ 'R', 'Y', 'S', 'A', 'S', 'E', + 'S', 'G', 'S', 'H', 'S', 'I', 'S', 'K', 'S', 'O', + 'S', 'P', 'S', 'R', + 'S', 'S', 'S', 'T', 'S', 'U', 'S', 'V', 'S', 'W', 'S', 'Y', + 'S', 'Z', 'T', 'A', 'T', 'C', 'T', 'E', 'T', 'H', 'T', 'I', + 'T', 'N', 'T', 'O', 'T', 'R', 'T', 'S', + 'T', 'T', 'T', 'U', + 'T', 'Z', 'U', '2', 'U', 'A', 'U', 'B', + 'U', 'C', 'U', 'D', 'U', 'E', 'U', 'K', @@ -282,6 +309,7 @@ 'U', 'O', 'U', 'P', 'U', 'R', + 'U', 'S', 'U', 'U', 'U', 'Y', 'V', 'A', @@ -325,6 +353,10 @@ 'A', '-', 'O', 'A', '-', 'U', 'A', 'A', 'I', + 'A', 'A', 'J', + 'A', 'A', 'K', + 'A', 'A', 'M', + 'A', 'A', 'W', 'A', 'A', 'Y', 'A', 'B', '2', 'A', 'D', 'I', @@ -372,14 +404,19 @@ 'B', 'E', 'T', 'B', 'E', 'X', 'B', 'H', 'A', + 'B', 'H', 'E', + 'B', 'H', 'I', 'B', 'H', 'O', + 'B', 'H', 'U', 'B', 'I', 'B', 'B', 'I', 'E', 'B', 'I', 'G', 'B', 'I', 'P', 'B', 'I', 'T', 'B', 'I', 'X', + 'B', 'L', 'A', 'B', 'O', 'A', + 'B', 'O', 'O', 'B', 'O', 'P', 'B', 'O', 'T', 'B', 'O', 'W', @@ -426,6 +463,7 @@ 'C', 'I', 'X', 'C', 'J', 'K', 'C', 'O', 'A', + 'C', 'O', 'N', 'C', 'O', 'O', 'C', 'O', 'P', 'C', 'O', 'T', @@ -468,7 +506,10 @@ 'D', 'E', 'P', 'D', 'E', 'X', 'D', 'H', 'A', + 'D', 'H', 'E', + 'D', 'H', 'I', 'D', 'H', 'O', + 'D', 'H', 'U', 'D', 'I', 'B', 'D', 'I', 'E', 'D', 'I', 'M', @@ -486,6 +527,7 @@ 'D', 'O', 'A', 'D', 'O', 'G', 'D', 'O', 'N', + 'D', 'O', 'O', 'D', 'O', 'P', 'D', 'O', 'T', 'D', 'O', 'X', @@ -494,6 +536,7 @@ 'D', 'U', 'G', 'D', 'U', 'H', 'D', 'U', 'L', + 'D', 'U', 'M', 'D', 'U', 'N', 'D', 'U', 'O', 'D', 'U', 'P', @@ -512,6 +555,8 @@ 'E', 'A', 'R', 'E', 'A', 'T', 'E', 'C', 'H', + 'E', 'D', 'D', + 'E', 'E', 'N', 'E', 'G', 'G', 'E', 'I', 'E', 'E', 'I', 'S', @@ -546,6 +591,7 @@ 'F', 'I', 'P', 'F', 'I', 'T', 'F', 'I', 'X', + 'F', 'L', 'A', 'F', 'L', 'Y', 'F', 'O', 'O', 'F', 'O', 'P', @@ -576,7 +622,12 @@ 'G', 'A', 'X', 'G', 'A', 'Y', 'G', 'B', 'A', + 'G', 'B', 'E', + 'G', 'B', 'I', + 'G', 'B', 'O', + 'G', 'B', 'U', 'G', 'E', 'E', + 'G', 'E', 'N', 'G', 'E', 'P', 'G', 'E', 'R', 'G', 'E', 'T', @@ -599,7 +650,9 @@ 'G', 'I', 'T', 'G', 'I', 'X', 'G', 'J', 'E', + 'G', 'L', 'A', 'G', 'O', 'A', + 'G', 'O', 'O', 'G', 'O', 'P', 'G', 'O', 'T', 'G', 'O', 'X', @@ -627,6 +680,7 @@ 'H', 'A', 'E', 'H', 'A', 'H', 'H', 'A', 'L', + 'H', 'A', 'N', 'H', 'A', 'P', 'H', 'A', 'R', 'H', 'A', 'T', @@ -634,6 +688,7 @@ 'H', 'E', 'E', 'H', 'E', 'H', 'H', 'E', 'I', + 'H', 'E', 'N', 'H', 'E', 'P', 'H', 'E', 'T', 'H', 'E', 'X', @@ -644,6 +699,7 @@ 'H', 'H', 'U', 'H', 'I', 'E', 'H', 'I', 'I', + 'H', 'I', 'N', 'H', 'I', 'P', 'H', 'I', 'T', 'H', 'L', 'A', @@ -668,6 +724,8 @@ 'H', 'O', 'T', 'H', 'O', 'X', 'H', 'P', 'A', + 'H', 'T', 'A', + 'H', 'U', 'N', 'H', 'U', 'O', 'H', 'W', 'A', 'H', 'W', 'E', @@ -695,6 +753,7 @@ 'I', 'N', 'G', 'I', 'N', 'I', 'I', 'N', 'N', + 'I', 'N', 'Y', 'I', 'O', 'R', 'I', 'R', 'I', 'I', 'S', 'H', @@ -719,6 +778,7 @@ 'J', 'J', 'U', 'J', 'J', 'Y', 'J', 'O', 'A', + 'J', 'O', 'O', 'J', 'O', 'P', 'J', 'O', 'T', 'J', 'O', 'X', @@ -773,6 +833,7 @@ 'K', 'K', 'I', 'K', 'K', 'O', 'K', 'K', 'U', + 'K', 'L', 'A', 'K', 'O', 'A', 'K', 'O', 'H', 'K', 'O', 'N', @@ -781,6 +842,10 @@ 'K', 'O', 'T', 'K', 'O', 'X', 'K', 'P', 'A', + 'K', 'P', 'E', + 'K', 'P', 'I', + 'K', 'P', 'O', + 'K', 'P', 'U', 'K', 'R', 'A', 'K', 'S', 'I', 'K', 'U', '3', @@ -820,6 +885,7 @@ 'L', 'A', 'X', 'L', 'C', 'E', 'L', 'C', 'I', + 'L', 'D', '2', 'L', 'E', 'E', 'L', 'E', 'G', 'L', 'E', 'K', @@ -877,6 +943,14 @@ 'M', 'A', 'T', 'M', 'A', 'X', 'M', 'A', 'Y', + 'M', 'B', '2', + 'M', 'B', '3', + 'M', 'B', '4', + 'M', 'B', 'A', + 'M', 'B', 'E', + 'M', 'B', 'I', + 'M', 'B', 'O', + 'M', 'B', 'U', 'M', 'E', 'D', 'M', 'E', 'E', 'M', 'E', 'M', @@ -898,14 +972,18 @@ 'M', 'I', 'P', 'M', 'I', 'T', 'M', 'I', 'X', + 'M', 'L', 'A', 'M', 'O', 'A', 'M', 'O', 'L', + 'M', 'O', 'N', 'M', 'O', 'O', 'M', 'O', 'P', 'M', 'O', 'T', 'M', 'O', 'X', 'M', 'P', 'A', + 'M', 'U', 'E', 'M', 'U', 'G', + 'M', 'U', 'M', 'M', 'U', 'O', 'M', 'U', 'P', 'M', 'U', 'R', @@ -950,6 +1028,7 @@ 'N', 'G', 'I', 'N', 'G', 'O', 'N', 'G', 'U', + 'N', 'H', 'A', 'N', 'I', '2', 'N', 'I', 'A', 'N', 'I', 'B', @@ -959,6 +1038,7 @@ 'N', 'I', 'P', 'N', 'I', 'T', 'N', 'I', 'X', + 'N', 'J', 'A', 'N', 'J', 'E', 'N', 'J', 'I', 'N', 'J', 'O', @@ -980,6 +1060,8 @@ 'N', 'R', 'O', 'N', 'R', 'U', 'N', 'R', 'Y', + 'N', 'U', 'E', + 'N', 'U', 'M', 'N', 'U', 'N', 'N', 'U', 'O', 'N', 'U', 'P', @@ -1005,6 +1087,7 @@ 'O', 'A', 'K', 'O', 'A', 'Y', 'O', 'C', 'R', + 'O', 'D', 'D', 'O', 'H', 'M', 'O', 'I', 'L', 'O', 'L', 'D', @@ -1013,7 +1096,9 @@ 'O', 'N', 'G', 'O', 'N', 'N', 'O', 'N', 'U', + 'O', 'O', 'N', 'O', 'O', 'U', + 'O', 'T', 'T', 'O', 'T', 'U', 'O', 'U', 'T', 'P', 'A', 'A', @@ -1045,6 +1130,7 @@ 'P', 'O', 'P', 'P', 'O', 'T', 'P', 'O', 'X', + 'P', 'P', 'A', 'P', 'P', 'M', 'P', 'S', 'I', 'P', 'T', 'E', @@ -1115,9 +1201,11 @@ 'R', 'A', 'D', 'R', 'A', 'E', 'R', 'A', 'M', + 'R', 'A', 'N', 'R', 'A', 'P', 'R', 'A', 'T', 'R', 'A', 'X', + 'R', 'A', 'Y', 'R', 'D', 'O', 'R', 'E', 'D', 'R', 'E', 'E', @@ -1145,6 +1233,7 @@ 'R', 'R', 'Y', 'R', 'U', 'A', 'R', 'U', 'B', + 'R', 'U', 'M', 'R', 'U', 'N', 'R', 'U', 'O', 'R', 'U', 'P', @@ -1167,6 +1256,7 @@ 'S', 'A', 'P', 'S', 'A', 'R', 'S', 'A', 'T', + 'S', 'A', 'W', 'S', 'A', 'X', 'S', 'A', 'Y', 'S', 'E', 'E', @@ -1174,6 +1264,7 @@ 'S', 'E', 'P', 'S', 'E', 'T', 'S', 'E', 'X', + 'S', 'H', '2', 'S', 'H', 'A', 'S', 'H', 'E', 'S', 'H', 'I', @@ -1205,6 +1296,7 @@ 'S', 'S', 'O', 'S', 'S', 'U', 'S', 'S', 'Y', + 'S', 'T', '2', 'S', 'U', 'A', 'S', 'U', 'D', 'S', 'U', 'M', @@ -1216,8 +1308,11 @@ 'S', 'U', 'X', 'S', 'W', 'A', 'S', 'W', 'E', + 'S', 'W', 'G', 'S', 'W', 'I', 'S', 'W', 'O', + 'S', 'W', 'Z', + 'S', 'Y', 'A', 'S', 'Y', 'P', 'S', 'Y', 'R', 'S', 'Y', 'T', @@ -1227,6 +1322,7 @@ 'S', 'Z', 'I', 'S', 'Z', 'O', 'S', 'Z', 'U', + 'S', 'Z', 'Z', 'T', 'A', '2', 'T', 'A', 'A', 'T', 'A', 'B', @@ -1283,6 +1379,7 @@ 'T', 'S', 'O', 'T', 'S', 'U', 'T', 'S', 'V', + 'T', 'T', '2', 'T', 'T', 'A', 'T', 'T', 'E', 'T', 'T', 'H', @@ -1329,9 +1426,11 @@ 'U', 'R', 'U', 'U', 'S', 'E', 'U', 'S', 'H', + 'U', 'U', 'U', 'U', 'Z', '3', 'U', 'Z', 'U', 'V', 'A', 'A', + 'V', 'A', 'I', 'V', 'A', 'P', 'V', 'A', 'T', 'V', 'A', 'V', @@ -1346,6 +1445,7 @@ 'V', 'I', 'P', 'V', 'I', 'T', 'V', 'I', 'X', + 'V', 'O', 'O', 'V', 'O', 'P', 'V', 'O', 'T', 'V', 'O', 'U', @@ -1362,22 +1462,26 @@ 'V', 'Y', 'X', 'W', 'A', 'A', 'W', 'A', 'E', + 'W', 'A', 'N', 'W', 'A', 'P', 'W', 'A', 'T', 'W', 'A', 'U', 'W', 'A', 'W', 'W', 'A', 'X', 'W', 'E', 'E', + 'W', 'E', 'N', 'W', 'E', 'O', 'W', 'E', 'P', 'W', 'E', 'X', 'W', 'I', 'I', + 'W', 'I', 'N', 'W', 'O', 'A', 'W', 'O', 'E', 'W', 'O', 'N', 'W', 'O', 'O', 'W', 'O', 'P', 'W', 'O', 'X', + 'W', 'U', 'N', 'W', 'U', 'O', 'X', 'A', 'A', 'X', 'A', 'N', @@ -1432,6 +1536,7 @@ 'Y', 'E', 'H', 'Y', 'E', 'N', 'Y', 'E', 'O', + 'Y', 'E', 'R', 'Y', 'E', 'W', 'Y', 'E', 'Y', 'Y', 'I', 'E', @@ -1518,6 +1623,7 @@ 'A', 'D', 'A', 'K', 'A', 'D', 'E', 'G', 'A', 'E', 'S', 'C', + 'A', 'H', 'A', 'D', 'A', 'H', 'S', 'A', 'A', 'I', 'L', 'M', 'A', 'I', 'N', 'N', @@ -1540,6 +1646,7 @@ 'A', 'R', 'C', 'H', 'A', 'R', 'G', 'I', 'A', 'R', 'M', 'Y', + 'A', 'S', 'A', 'T', 'A', 'S', 'H', '2', 'A', 'S', 'H', '9', 'A', 'T', 'O', 'M', @@ -1753,6 +1860,8 @@ 'B', 'A', 'G', 'A', 'B', 'A', 'H', 'T', 'B', 'A', 'N', '2', + 'B', 'A', 'N', 'D', + 'B', 'A', 'N', 'G', 'B', 'A', 'N', 'K', 'B', 'A', 'R', 'B', 'B', 'A', 'R', 'S', @@ -1787,6 +1896,8 @@ 'B', 'E', 'N', 'D', 'B', 'E', 'T', 'A', 'B', 'E', 'T', 'H', + 'B', 'H', 'E', 'E', + 'B', 'H', 'O', 'O', 'B', 'I', 'E', 'P', 'B', 'I', 'E', 'T', 'B', 'I', 'E', 'X', @@ -1800,6 +1911,7 @@ 'B', 'O', 'L', 'D', 'B', 'O', 'L', 'T', 'B', 'O', 'N', 'E', + 'B', 'R', 'D', 'A', 'B', 'U', 'K', 'Y', 'B', 'U', 'L', 'L', 'B', 'U', 'O', 'N', @@ -1811,6 +1923,8 @@ 'B', 'W', 'E', 'E', 'B', 'Y', 'R', 'X', 'B', 'Z', 'H', 'I', + 'C', '-', '1', '8', + 'C', '-', '3', '9', 'C', 'A', 'A', 'I', 'C', 'A', 'D', 'A', 'C', 'A', 'L', 'C', @@ -1832,6 +1946,7 @@ 'C', 'E', 'N', 'T', 'C', 'H', 'A', 'A', 'C', 'H', 'A', 'D', + 'C', 'H', 'A', 'M', 'C', 'H', 'A', 'N', 'C', 'H', 'A', 'P', 'C', 'H', 'A', 'R', @@ -1843,6 +1958,7 @@ 'C', 'H', 'E', 'P', 'C', 'H', 'E', 'T', 'C', 'H', 'E', 'X', + 'C', 'H', 'H', 'A', 'C', 'H', 'I', 'N', 'C', 'H', 'O', 'A', 'C', 'H', 'O', 'E', @@ -1868,6 +1984,7 @@ 'C', 'L', 'U', 'B', 'C', 'O', 'D', 'A', 'C', 'O', 'L', 'L', + 'C', 'O', 'M', 'B', 'C', 'O', 'P', 'Y', 'C', 'R', 'O', 'P', 'C', 'U', 'B', 'E', @@ -1924,20 +2041,30 @@ 'D', 'E', 'S', 'I', 'D', 'E', 'Z', 'H', 'D', 'H', 'A', 'L', + 'D', 'H', 'E', 'E', + 'D', 'H', 'H', 'A', + 'D', 'H', 'H', 'E', + 'D', 'H', 'H', 'I', + 'D', 'H', 'H', 'O', + 'D', 'H', 'H', 'U', + 'D', 'H', 'O', 'O', 'D', 'I', 'E', 'P', 'D', 'I', 'E', 'X', 'D', 'I', 'G', 'A', 'D', 'I', 'M', '2', 'D', 'I', 'N', 'G', + 'D', 'I', 'S', 'C', 'D', 'I', 'S', 'H', 'D', 'K', 'A', 'R', 'D', 'L', 'E', 'E', + 'D', 'O', '-', 'O', 'D', 'O', 'E', 'S', 'D', 'O', 'I', 'T', 'D', 'O', 'N', 'G', 'D', 'O', 'O', 'R', 'D', 'O', 'R', 'U', 'D', 'O', 'T', 'S', + 'D', 'O', 'V', 'E', 'D', 'O', 'W', 'N', 'D', 'R', 'I', 'L', 'D', 'R', 'U', 'M', @@ -1953,6 +2080,8 @@ 'D', 'Z', 'H', 'A', 'D', 'Z', 'H', 'E', 'D', 'Z', 'J', 'E', + 'D', 'Z', 'W', 'E', + 'D', 'Z', 'Z', 'E', 'E', 'A', 'S', 'E', 'E', 'A', 'S', 'T', 'E', 'D', 'I', 'N', @@ -2001,10 +2130,15 @@ 'G', 'A', 'N', '2', 'G', 'A', 'R', '3', 'G', 'A', 'T', 'E', + 'G', 'B', 'E', 'E', + 'G', 'B', 'E', 'N', + 'G', 'B', 'O', 'N', + 'G', 'B', 'O', 'O', 'G', 'C', 'A', 'N', 'G', 'C', 'I', 'G', 'G', 'D', 'A', 'N', 'G', 'E', 'A', 'R', + 'G', 'E', 'B', 'A', 'G', 'E', 'B', 'O', 'G', 'E', 'D', 'E', 'G', 'E', 'T', 'A', @@ -2034,6 +2168,7 @@ 'G', 'H', 'A', 'N', 'G', 'H', 'E', 'E', 'G', 'H', 'H', 'A', + 'G', 'H', 'W', 'A', 'G', 'I', 'B', 'A', 'G', 'I', 'E', 'P', 'G', 'I', 'E', 'T', @@ -2076,10 +2211,12 @@ 'H', 'E', 'M', 'P', 'H', 'E', 'N', 'G', 'H', 'E', 'R', 'U', + 'H', 'E', 'T', 'A', 'H', 'E', 'T', 'H', 'H', 'H', 'A', 'A', 'H', 'H', 'E', 'E', 'H', 'H', 'W', 'A', + 'H', 'I', 'D', 'E', 'H', 'I', 'E', 'X', 'H', 'I', 'G', 'H', 'H', 'I', 'Z', 'B', @@ -2162,6 +2299,7 @@ 'H', 'X', 'O', 'T', 'H', 'X', 'O', 'X', 'H', 'X', 'U', 'O', + 'H', 'X', 'W', 'G', 'H', 'Z', 'W', 'G', 'H', 'Z', 'Z', 'P', 'H', 'Z', 'Z', 'Z', @@ -2209,8 +2347,10 @@ 'J', 'J', 'Y', 'X', 'J', 'O', 'I', 'N', 'J', 'O', 'N', 'A', + 'J', 'O', 'N', 'G', 'J', 'U', 'L', 'Y', 'J', 'U', 'N', 'E', + 'J', 'U', 'N', 'O', 'J', 'U', 'O', 'P', 'J', 'U', 'O', 'T', 'J', 'U', 'O', 'X', @@ -2227,6 +2367,7 @@ 'K', 'A', 'M', '2', 'K', 'A', 'M', '4', 'K', 'A', 'N', 'A', + 'K', 'A', 'N', 'G', 'K', 'A', 'P', 'A', 'K', 'A', 'P', 'H', 'K', 'A', 'P', 'O', @@ -2253,7 +2394,12 @@ 'K', 'O', 'E', 'T', 'K', 'O', 'M', 'I', 'K', 'O', 'T', 'O', + 'K', 'P', 'A', 'N', + 'K', 'P', 'E', 'E', + 'K', 'P', 'E', 'N', + 'K', 'P', 'O', 'O', 'K', 'S', 'S', 'A', + 'K', 'U', 'N', 'G', 'K', 'U', 'O', 'P', 'K', 'U', 'O', 'X', 'K', 'U', 'R', 'T', @@ -2280,6 +2426,7 @@ 'L', 'A', 'M', 'D', 'L', 'A', 'M', 'E', 'L', 'A', 'S', 'T', + 'L', 'A', 'T', 'E', 'L', 'A', 'Z', 'Y', 'L', 'D', 'A', 'N', 'L', 'E', 'A', 'F', @@ -2297,6 +2444,7 @@ 'L', 'I', 'E', 'T', 'L', 'I', 'E', 'X', 'L', 'I', 'F', 'E', + 'L', 'I', 'L', 'Y', 'L', 'I', 'N', 'E', 'L', 'I', 'N', 'G', 'L', 'I', 'N', 'K', @@ -2325,6 +2473,8 @@ 'M', 'A', 'R', 'K', 'M', 'A', 'S', 'H', 'M', 'A', 'S', 'U', + 'M', 'B', 'E', 'E', + 'M', 'B', 'O', 'O', 'M', 'C', 'H', 'U', 'M', 'D', 'U', 'N', 'M', 'E', 'A', 'T', @@ -2339,6 +2489,11 @@ 'M', 'G', 'A', 'P', 'M', 'G', 'A', 'T', 'M', 'G', 'A', 'X', + 'M', 'G', 'B', 'A', + 'M', 'G', 'B', 'E', + 'M', 'G', 'B', 'I', + 'M', 'G', 'B', 'O', + 'M', 'G', 'B', 'U', 'M', 'G', 'E', 'P', 'M', 'G', 'E', 'X', 'M', 'G', 'I', 'E', @@ -2402,12 +2557,14 @@ 'N', 'D', 'A', 'P', 'N', 'D', 'A', 'T', 'N', 'D', 'A', 'X', + 'N', 'D', 'E', 'E', 'N', 'D', 'E', 'P', 'N', 'D', 'E', 'X', 'N', 'D', 'I', 'E', 'N', 'D', 'I', 'P', 'N', 'D', 'I', 'T', 'N', 'D', 'I', 'X', + 'N', 'D', 'O', 'O', 'N', 'D', 'O', 'P', 'N', 'D', 'O', 'T', 'N', 'D', 'O', 'X', @@ -2418,28 +2575,41 @@ 'N', 'E', 'X', 'T', 'N', 'G', 'A', 'A', 'N', 'G', 'A', 'I', + 'N', 'G', 'A', 'N', 'N', 'G', 'A', 'P', 'N', 'G', 'A', 'S', 'N', 'G', 'A', 'T', 'N', 'G', 'A', 'X', + 'N', 'G', 'E', 'N', 'N', 'G', 'E', 'P', 'N', 'G', 'E', 'X', + 'N', 'G', 'G', 'A', + 'N', 'G', 'G', 'E', + 'N', 'G', 'G', 'I', + 'N', 'G', 'G', 'O', + 'N', 'G', 'G', 'U', 'N', 'G', 'I', 'E', 'N', 'G', 'I', 'I', 'N', 'G', 'K', 'A', + 'N', 'G', 'O', 'N', 'N', 'G', 'O', 'O', 'N', 'G', 'O', 'P', 'N', 'G', 'O', 'T', 'N', 'G', 'O', 'X', + 'N', 'G', 'U', 'E', 'N', 'G', 'U', 'O', + 'N', 'H', 'J', 'A', + 'N', 'H', 'U', 'E', 'N', 'I', 'E', 'P', 'N', 'I', 'E', 'X', 'N', 'I', 'N', 'E', 'N', 'I', 'O', 'N', + 'N', 'J', 'E', 'E', 'N', 'J', 'I', 'E', 'N', 'J', 'I', 'P', 'N', 'J', 'I', 'T', 'N', 'J', 'I', 'X', + 'N', 'J', 'O', 'O', 'N', 'J', 'O', 'P', 'N', 'J', 'O', 'T', 'N', 'J', 'O', 'X', @@ -2487,12 +2657,15 @@ 'N', 'Y', 'C', 'A', 'N', 'Y', 'E', 'E', 'N', 'Y', 'E', 'H', + 'N', 'Y', 'E', 'T', 'N', 'Y', 'I', 'E', 'N', 'Y', 'I', 'P', 'N', 'Y', 'I', 'S', 'N', 'Y', 'I', 'T', 'N', 'Y', 'I', 'X', + 'N', 'Y', 'J', 'A', 'N', 'Y', 'O', 'A', + 'N', 'Y', 'O', 'O', 'N', 'Y', 'O', 'P', 'N', 'Y', 'O', 'T', 'N', 'Y', 'O', 'X', @@ -2531,6 +2704,7 @@ 'O', 'X', 'I', 'A', 'P', 'A', 'A', 'I', 'P', 'A', 'G', 'E', + 'P', 'A', 'L', 'M', 'P', 'A', 'N', 'G', 'P', 'A', 'R', 'A', 'P', 'A', 'R', 'T', @@ -2554,6 +2728,7 @@ 'P', 'L', 'A', 'K', 'P', 'L', 'O', 'W', 'P', 'L', 'U', 'K', + 'P', 'L', 'U', 'M', 'P', 'L', 'U', 'S', 'P', 'O', 'L', 'E', 'P', 'O', 'L', 'I', @@ -2660,12 +2835,14 @@ 'S', 'E', 'L', 'F', 'S', 'E', 'M', 'K', 'S', 'G', 'A', 'B', + 'S', 'G', 'A', 'W', 'S', 'G', 'O', 'R', 'S', 'G', 'R', 'A', 'S', 'H', 'A', '3', 'S', 'H', 'A', '6', 'S', 'H', 'A', 'A', 'S', 'H', 'A', 'D', + 'S', 'H', 'A', 'N', 'S', 'H', 'A', 'P', 'S', 'H', 'A', 'T', 'S', 'H', 'A', 'X', @@ -2680,6 +2857,7 @@ 'S', 'H', 'I', 'I', 'S', 'H', 'I', 'M', 'S', 'H', 'I', 'N', + 'S', 'H', 'I', 'P', 'S', 'H', 'I', 'R', 'S', 'H', 'O', 'A', 'S', 'H', 'O', 'E', @@ -2699,6 +2877,7 @@ 'S', 'H', 'W', 'E', 'S', 'H', 'W', 'I', 'S', 'H', 'W', 'O', + 'S', 'H', 'Y', 'A', 'S', 'H', 'Y', 'P', 'S', 'H', 'Y', 'R', 'S', 'H', 'Y', 'T', @@ -2773,6 +2952,7 @@ 'T', 'A', 'L', 'L', 'T', 'A', 'P', 'E', 'T', 'A', 'W', 'A', + 'T', 'C', 'H', 'E', 'T', 'E', '-', 'U', 'T', 'E', 'N', 'S', 'T', 'E', 'N', 'T', @@ -2799,6 +2979,7 @@ 'T', 'I', 'E', 'X', 'T', 'I', 'L', 'E', 'T', 'I', 'M', 'E', + 'T', 'I', 'N', 'G', 'T', 'I', 'N', 'Y', 'T', 'I', 'W', 'N', 'T', 'L', 'E', 'E', @@ -2809,6 +2990,7 @@ 'T', 'L', 'H', 'U', 'T', 'O', 'D', 'O', 'T', 'O', 'N', 'E', + 'T', 'O', 'N', 'G', 'T', 'R', 'E', 'E', 'T', 'R', 'I', 'A', 'T', 'R', 'U', 'E', @@ -2816,7 +2998,9 @@ 'T', 'S', 'E', 'E', 'T', 'S', 'H', 'A', 'T', 'S', 'H', 'E', + 'T', 'S', 'S', 'E', 'T', 'S', 'W', 'A', + 'T', 'S', 'W', 'E', 'T', 'T', 'A', 'A', 'T', 'T', 'E', 'E', 'T', 'T', 'E', 'H', @@ -2857,13 +3041,18 @@ 'U', 'S', 'H', '2', 'U', 'S', 'H', 'X', 'U', 'S', 'S', 'U', + 'U', 'U', 'U', '2', + 'U', 'U', 'U', '3', + 'U', 'U', 'U', 'U', 'V', 'A', 'N', 'E', 'V', 'E', 'D', 'E', + 'V', 'E', 'N', 'D', 'V', 'E', 'R', 'Y', 'V', 'I', 'D', 'A', 'V', 'I', 'E', 'P', 'V', 'I', 'E', 'T', 'V', 'I', 'E', 'X', + 'V', 'I', 'N', 'E', 'V', 'O', 'I', 'D', 'V', 'U', 'R', 'X', 'V', 'Y', 'R', 'X', @@ -2872,6 +3061,7 @@ 'W', 'A', 'L', 'L', 'W', 'A', 'V', 'E', 'W', 'A', 'V', 'Y', + 'W', 'E', 'E', 'N', 'W', 'E', 'L', 'L', 'W', 'E', 'S', 'T', 'W', 'I', 'D', 'E', @@ -2880,6 +3070,7 @@ 'W', 'I', 'T', 'H', 'W', 'O', 'O', 'D', 'W', 'O', 'O', 'L', + 'W', 'O', 'O', 'N', 'W', 'O', 'R', 'D', 'W', 'O', 'R', 'K', 'W', 'R', 'A', 'P', @@ -2957,6 +3148,7 @@ 'Z', 'H', 'E', 'P', 'Z', 'H', 'E', 'T', 'Z', 'H', 'E', 'X', + 'Z', 'H', 'O', 'O', 'Z', 'H', 'O', 'P', 'Z', 'H', 'O', 'T', 'Z', 'H', 'O', 'X', @@ -2966,6 +3158,7 @@ 'Z', 'H', 'U', 'T', 'Z', 'H', 'U', 'X', 'Z', 'H', 'W', 'A', + 'Z', 'H', 'W', 'E', 'Z', 'H', 'Y', 'P', 'Z', 'H', 'Y', 'R', 'Z', 'H', 'Y', 'T', @@ -3013,6 +3206,7 @@ 'A', 'K', 'B', 'A', 'R', 'A', 'L', 'A', 'P', 'H', 'A', 'L', 'E', 'P', 'H', + 'A', 'L', 'E', 'U', 'T', 'A', 'L', 'G', 'I', 'Z', 'A', 'L', 'I', 'F', 'U', 'A', 'L', 'L', 'A', 'H', @@ -3072,15 +3266,18 @@ 'B', 'L', 'O', 'O', 'D', 'B', 'R', 'A', 'C', 'E', 'B', 'R', 'E', 'V', 'E', + 'B', 'R', 'O', 'A', 'D', 'B', 'R', 'U', 'S', 'H', 'B', 'S', 'D', 'U', 'S', 'B', 'S', 'K', 'A', '-', 'B', 'S', 'K', 'U', 'R', 'B', 'S', 'T', 'A', 'R', 'B', 'U', 'H', 'I', 'D', + 'B', 'U', 'L', 'L', 'S', 'B', 'U', 'L', 'U', 'G', 'B', 'U', 'M', 'P', 'Y', 'B', 'Z', 'U', 'N', 'G', + 'C', 'A', 'L', 'Y', 'A', 'C', 'A', 'R', 'E', 'T', 'C', 'A', 'R', 'I', 'K', 'C', 'A', 'R', 'O', 'N', @@ -3090,11 +3287,13 @@ 'C', 'E', 'A', 'L', 'C', 'C', 'E', 'C', 'E', 'K', 'C', 'E', 'I', 'R', 'T', + 'C', 'E', 'R', 'E', 'S', 'C', 'H', 'A', 'D', 'A', 'C', 'H', 'A', 'I', 'R', 'C', 'H', 'A', 'N', 'G', 'C', 'H', 'E', 'C', 'K', 'C', 'H', 'E', 'S', 'S', + 'C', 'H', 'I', 'K', 'I', 'C', 'H', 'I', 'L', 'D', 'C', 'H', 'I', 'N', 'G', 'C', 'H', 'O', 'K', 'E', @@ -3149,17 +3348,23 @@ 'D', 'E', 'R', 'E', 'T', 'D', 'E', 'U', 'N', 'G', 'D', 'E', 'X', 'I', 'A', + 'D', 'H', 'H', 'E', 'E', + 'D', 'H', 'H', 'O', 'O', 'D', 'I', 'F', 'A', 'T', 'D', 'I', 'G', 'I', 'T', 'D', 'I', 'P', 'L', 'I', 'D', 'I', 'P', 'T', 'E', 'D', 'I', 'T', 'T', 'O', + 'D', 'J', 'E', 'R', 'V', 'D', 'O', 'B', 'R', 'O', + 'D', 'O', 'O', 'N', 'G', 'D', 'O', 'U', 'B', 'T', 'D', 'R', 'I', 'V', 'E', 'D', 'R', 'O', 'P', 'S', 'D', 'U', 'G', 'U', 'D', 'D', 'Z', 'E', 'L', 'O', + 'E', 'A', 'G', 'L', 'E', + 'E', 'A', 'R', 'L', 'Y', 'E', 'A', 'R', 'T', 'H', 'E', 'E', 'K', 'A', 'A', 'E', 'H', 'W', 'A', 'Z', @@ -3176,6 +3381,7 @@ 'E', 'Q', 'U', 'I', 'D', 'E', 'R', 'A', 'S', 'E', 'E', 'R', 'I', 'N', '2', + 'E', 'S', '-', 'T', 'E', 'E', 'S', 'A', 'S', 'A', 'E', 'S', 'H', '1', '6', 'E', 'S', 'H', '2', '1', @@ -3189,6 +3395,7 @@ 'F', 'A', 'R', 'S', 'I', 'F', 'A', 'T', 'H', 'A', 'F', 'E', 'A', 'R', 'N', + 'F', 'E', 'E', 'N', 'G', 'F', 'E', 'N', 'C', 'E', 'F', 'I', 'E', 'L', 'D', 'F', 'I', 'F', 'T', 'H', @@ -3240,15 +3447,18 @@ 'G', 'R', 'A', 'V', 'E', 'G', 'R', 'E', 'A', 'T', 'G', 'R', 'E', 'E', 'K', + 'G', 'R', 'E', 'E', 'N', 'G', 'R', 'O', 'U', 'P', 'G', 'U', 'R', 'U', 'N', 'H', 'A', '-', 'H', 'A', + 'H', 'A', 'A', 'R', 'U', 'H', 'A', 'E', 'G', 'L', 'H', 'A', 'I', 'T', 'U', 'H', 'A', 'M', 'Z', 'A', 'H', 'A', 'N', 'D', 'S', 'H', 'A', 'S', 'E', 'R', 'H', 'A', 'T', 'A', 'F', + 'H', 'A', 'T', 'H', 'I', 'H', 'B', 'A', 'S', 'A', 'H', 'E', 'A', 'R', 'T', 'H', 'E', 'A', 'V', 'Y', @@ -3284,6 +3494,7 @@ 'H', 'X', 'U', 'O', 'P', 'H', 'X', 'U', 'O', 'T', 'H', 'X', 'U', 'O', 'X', + 'H', 'Z', 'Z', 'Z', 'G', 'I', 'A', 'U', 'D', 'A', 'I', 'C', 'H', 'O', 'S', 'I', 'C', 'H', 'O', 'U', @@ -3301,14 +3512,18 @@ 'J', 'J', 'U', 'O', 'P', 'J', 'J', 'U', 'O', 'X', 'J', 'J', 'U', 'R', 'X', + 'J', 'O', 'K', 'E', 'R', 'J', 'U', 'D', 'G', 'E', 'J', 'U', 'E', 'U', 'I', 'K', 'A', 'A', 'F', 'U', 'K', 'A', 'I', 'R', 'I', 'K', 'A', 'P', 'A', 'L', 'K', 'A', 'P', 'P', 'A', + 'K', 'A', 'R', 'E', 'N', 'K', 'A', 'S', 'R', 'A', 'K', 'A', 'U', 'N', 'A', + 'K', 'A', 'Y', 'A', 'H', + 'K', 'E', 'E', 'N', 'G', 'K', 'E', 'E', 'S', 'U', 'K', 'E', 'H', 'E', 'H', 'K', 'E', 'N', 'A', 'T', @@ -3368,6 +3583,8 @@ 'M', 'E', 'T', 'A', 'L', 'M', 'E', 'T', 'E', 'G', 'M', 'E', 'Z', 'Z', 'O', + 'M', 'G', 'B', 'E', 'E', + 'M', 'G', 'B', 'O', 'O', 'M', 'G', 'I', 'E', 'X', 'M', 'G', 'U', 'O', 'P', 'M', 'G', 'U', 'O', 'X', @@ -3401,8 +3618,12 @@ 'N', 'B', 'U', 'R', 'X', 'N', 'B', 'Y', 'R', 'X', 'N', 'D', 'I', 'E', 'X', + 'N', 'D', 'O', 'L', 'E', 'N', 'D', 'U', 'R', 'X', 'N', 'G', 'A', 'A', 'I', + 'N', 'G', 'G', 'E', 'E', + 'N', 'G', 'G', 'E', 'N', + 'N', 'G', 'G', 'O', 'O', 'N', 'G', 'I', 'E', 'P', 'N', 'G', 'I', 'E', 'X', 'N', 'G', 'O', 'E', 'H', @@ -3475,6 +3696,7 @@ 'P', 'I', 'E', 'U', 'P', 'P', 'I', 'R', 'I', 'G', 'P', 'L', 'A', 'C', 'E', + 'P', 'L', 'A', 'N', 'E', 'P', 'L', 'U', 'T', 'O', 'P', 'O', 'I', 'N', 'T', 'P', 'O', 'N', 'D', 'O', @@ -3500,6 +3722,7 @@ 'R', 'A', 'T', 'I', 'O', 'R', 'B', 'A', 'S', 'A', 'R', 'E', 'A', 'C', 'H', + 'R', 'E', 'L', 'A', 'A', 'R', 'E', 'V', 'I', 'A', 'R', 'E', 'V', 'M', 'A', 'R', 'G', 'Y', 'A', 'N', @@ -3516,6 +3739,7 @@ 'R', 'R', 'U', 'R', 'X', 'R', 'R', 'Y', 'R', 'X', 'R', 'T', 'A', 'G', 'S', + 'R', 'U', 'M', 'A', 'I', 'R', 'U', 'N', 'I', 'C', 'R', 'U', 'P', 'E', 'E', 'R', 'U', 'P', 'I', 'I', @@ -3576,6 +3800,7 @@ 'S', 'L', 'A', 'S', 'H', 'S', 'L', 'A', 'V', 'E', 'S', 'L', 'I', 'C', 'E', + 'S', 'L', 'I', 'N', 'G', 'S', 'L', 'O', 'P', 'E', 'S', 'L', 'O', 'V', 'O', 'S', 'M', 'A', 'L', 'L', @@ -3633,6 +3858,7 @@ 'T', 'H', 'U', 'N', 'G', 'T', 'H', 'U', 'R', 'S', 'T', 'H', 'W', 'A', 'A', + 'T', 'I', 'A', 'R', 'A', 'T', 'I', 'G', 'E', 'R', 'T', 'I', 'G', 'H', 'T', 'T', 'I', 'L', 'D', 'E', @@ -3657,9 +3883,13 @@ 'T', 'S', 'H', 'E', 'S', 'T', 'T', 'S', 'E', 'E', 'T', 'T', 'T', 'H', 'A', + 'T', 'U', 'N', 'N', 'Y', 'T', 'U', 'R', 'O', '2', + 'T', 'U', 'U', 'M', 'U', + 'U', 'D', 'A', 'A', 'T', 'U', 'K', 'A', 'R', 'A', 'U', 'M', 'B', 'I', 'N', + 'U', 'N', 'C', 'I', 'A', 'U', 'N', 'D', 'E', 'R', 'U', 'N', 'I', 'O', 'N', 'U', 'N', 'I', 'T', 'Y', @@ -3674,10 +3904,12 @@ 'V', 'A', 'T', 'H', 'Y', 'V', 'E', 'R', 'G', 'E', 'V', 'E', 'R', 'S', 'E', + 'V', 'E', 'S', 'T', 'A', 'V', 'I', 'R', 'G', 'A', 'V', 'I', 'R', 'G', 'O', 'V', 'O', 'C', 'A', 'L', 'V', 'O', 'W', 'E', 'L', + 'V', 'Z', 'M', 'E', 'T', 'W', 'A', 'A', 'V', 'U', 'W', 'A', 'S', 'L', 'A', 'W', 'A', 'T', 'C', 'H', @@ -3755,6 +3987,7 @@ 'A', 'S', 'H', 'G', 'A', 'B', 'A', 'S', 'Y', 'U', 'R', 'A', 'A', 'U', 'G', 'U', 'S', 'T', + 'A', 'U', 'T', 'U', 'M', 'N', 'A', 'Y', 'A', 'N', 'N', 'A', 'B', 'A', 'D', 'G', 'E', 'R', 'B', 'A', 'H', 'A', 'R', '2', @@ -3790,11 +4023,15 @@ 'C', 'A', 'N', 'C', 'E', 'L', 'C', 'A', 'N', 'C', 'E', 'R', 'C', 'A', 'N', 'D', 'R', 'A', + 'C', 'A', 'R', 'I', 'A', 'N', 'C', 'A', 'T', 'A', 'W', 'A', 'C', 'E', 'N', 'T', 'R', 'E', + 'C', 'E', 'R', '-', 'W', 'A', 'C', 'H', 'A', 'M', 'K', 'O', 'C', 'H', 'A', 'N', 'G', 'E', + 'C', 'H', 'I', 'L', 'L', 'U', 'C', 'H', 'I', 'R', 'E', 'T', + 'C', 'H', 'I', 'R', 'O', 'N', 'C', 'H', 'R', 'I', 'V', 'I', 'C', 'H', 'R', 'O', 'M', 'A', 'C', 'H', 'U', 'R', 'C', 'H', @@ -3804,6 +4041,7 @@ 'C', 'L', 'I', 'V', 'I', 'S', 'C', 'L', 'O', 'S', 'E', 'D', 'C', 'O', 'F', 'F', 'I', 'N', + 'C', 'O', 'L', 'U', 'M', 'N', 'C', 'O', 'M', 'I', 'N', 'G', 'C', 'O', 'M', 'M', 'O', 'N', 'C', 'O', 'P', 'T', 'I', 'C', @@ -3832,8 +4070,10 @@ 'D', 'I', 'R', 'E', 'C', 'T', 'D', 'I', 'V', 'I', 'D', 'E', 'D', 'J', 'E', 'R', 'V', 'I', + 'D', 'O', 'L', 'I', 'U', 'M', 'D', 'O', 'L', 'L', 'A', 'R', 'D', 'O', 'M', 'A', 'I', 'N', + 'D', 'O', 'M', 'I', 'N', 'O', 'D', 'O', 'T', 'S', '-', '1', 'D', 'O', 'T', 'S', '-', '2', 'D', 'O', 'T', 'S', '-', '3', @@ -3902,6 +4142,7 @@ 'G', 'O', 'R', 'G', 'O', 'N', 'G', 'O', 'T', 'H', 'I', 'C', 'G', 'R', 'A', 'M', 'M', 'A', + 'G', 'R', 'A', 'T', 'E', 'R', 'G', 'R', 'O', 'U', 'N', 'D', 'G', 'U', 'R', 'A', 'M', 'U', 'G', 'U', 'R', 'U', 'S', 'H', @@ -3937,6 +4178,7 @@ 'K', 'A', 'N', 'G', 'X', 'I', 'K', 'A', 'S', 'K', 'A', 'L', 'K', 'A', 'T', 'A', 'V', 'A', + 'K', 'A', 'V', 'Y', 'K', 'A', 'K', 'A', 'Z', 'A', 'K', 'H', 'K', 'E', 'F', 'U', 'L', 'A', 'K', 'E', 'L', 'V', 'I', 'N', @@ -3965,8 +4207,10 @@ 'L', 'E', 'G', 'I', 'O', 'N', 'L', 'E', 'I', 'M', 'M', 'A', 'L', 'E', 'N', 'G', 'T', 'H', + 'L', 'E', 'P', 'C', 'H', 'A', 'L', 'E', 'S', 'S', 'E', 'R', 'L', 'E', 'T', 'T', 'E', 'R', + 'L', 'I', 'L', 'I', 'T', 'H', 'L', 'I', 'M', 'M', 'U', '2', 'L', 'I', 'M', 'M', 'U', '4', 'L', 'I', 'N', 'E', '-', '1', @@ -3977,6 +4221,8 @@ 'L', 'I', 'Q', 'U', 'I', 'D', 'L', 'I', 'T', 'T', 'L', 'E', 'L', 'U', 'N', 'A', 'T', 'E', + 'L', 'Y', 'C', 'I', 'A', 'N', + 'L', 'Y', 'D', 'I', 'A', 'N', 'M', 'A', 'C', 'R', 'O', 'N', 'M', 'A', 'D', 'D', 'A', 'H', 'M', 'A', 'I', 'D', 'E', 'N', @@ -4005,6 +4251,7 @@ 'M', 'O', 'D', 'U', 'L', 'O', 'M', 'O', 'R', 'T', 'A', 'R', 'M', 'O', 'T', 'H', 'E', 'R', + 'M', 'U', 'C', 'A', 'A', 'D', 'M', 'U', 'N', 'S', 'U', 'B', 'M', 'U', 'Q', 'D', 'A', 'M', 'M', 'U', 'R', 'G', 'U', '2', @@ -4033,6 +4280,7 @@ 'O', 'P', 'E', 'N', '-', 'P', 'O', 'P', 'P', 'O', 'S', 'E', 'O', 'P', 'T', 'I', 'O', 'N', + 'O', 'R', 'C', 'H', 'I', 'D', 'O', 'R', 'I', 'G', 'I', 'N', 'O', 'R', 'N', 'A', 'T', 'E', 'O', 'T', 'T', 'A', 'V', 'A', @@ -4040,6 +4288,7 @@ 'O', 'X', 'E', 'I', 'A', 'I', 'O', 'Y', 'A', 'N', 'N', 'A', 'P', 'A', 'I', 'R', 'E', 'D', + 'P', 'A', 'L', 'L', 'A', 'S', 'P', 'A', 'L', 'U', 'T', 'A', 'P', 'A', 'M', 'A', 'D', 'A', 'P', 'A', 'S', 'H', 'T', 'A', @@ -4056,11 +4305,14 @@ 'P', 'I', 'P', 'I', 'N', 'G', 'P', 'I', 'S', 'C', 'E', 'S', 'P', 'L', 'A', 'N', 'C', 'K', + 'P', 'L', 'O', 'P', 'H', 'U', + 'P', 'L', 'U', 'M', 'E', 'D', 'P', 'O', 'E', 'T', 'I', 'C', 'P', 'O', 'E', 'T', 'R', 'Y', 'P', 'O', 'I', 'N', 'T', 'O', 'P', 'O', 'K', 'O', 'J', 'I', 'P', 'O', 'S', 'T', 'A', 'L', + 'P', 'O', 'W', 'E', 'R', 'S', 'P', 'R', 'O', 'T', 'O', 'S', 'P', 'S', 'I', 'L', 'O', 'N', 'P', 'T', 'H', 'A', 'H', 'A', @@ -4074,12 +4326,14 @@ 'R', 'A', 'M', 'B', 'A', 'T', 'R', 'A', 'S', 'O', 'U', 'L', 'R', 'E', 'C', 'O', 'R', 'D', + 'R', 'E', 'J', 'A', 'N', 'G', 'R', 'E', 'P', 'E', 'A', 'T', 'R', 'E', 'T', 'U', 'R', 'N', 'R', 'H', 'O', 'T', 'I', 'C', 'R', 'I', 'K', 'R', 'I', 'K', 'R', 'I', 'S', 'I', 'N', 'G', 'R', 'I', 'T', 'U', 'A', 'L', + 'R', 'N', 'Y', 'I', 'N', 'G', 'R', 'U', 'N', 'O', 'U', 'T', 'S', 'A', 'A', 'D', 'H', 'U', 'S', 'A', 'J', 'D', 'A', 'H', @@ -4105,6 +4359,7 @@ 'S', 'H', 'E', 'E', 'N', 'U', 'S', 'H', 'E', 'Q', 'E', 'L', 'S', 'H', 'E', 'S', 'H', '2', + 'S', 'H', 'I', 'E', 'L', 'D', 'S', 'H', 'I', 'N', 'I', 'G', 'S', 'H', 'O', 'R', 'T', 'S', 'S', 'H', 'U', 'B', 'U', 'R', @@ -4118,8 +4373,10 @@ 'S', 'O', 'W', 'I', 'L', 'O', 'S', 'P', 'A', 'T', 'H', 'I', 'S', 'P', 'E', 'E', 'C', 'H', + 'S', 'P', 'I', 'R', 'A', 'L', 'S', 'P', 'I', 'R', 'I', 'T', 'S', 'P', 'O', 'K', 'E', 'D', + 'S', 'P', 'R', 'I', 'N', 'G', 'S', 'P', 'R', 'O', 'U', 'T', 'S', 'P', 'U', 'N', 'G', 'S', 'S', 'Q', 'U', 'A', 'R', 'E', @@ -4133,6 +4390,7 @@ 'S', 'U', 'B', 'I', 'T', 'O', 'S', 'U', 'B', 'S', 'E', 'T', 'S', 'U', 'M', 'A', 'S', 'H', + 'S', 'U', 'M', 'M', 'E', 'R', 'S', 'U', 'R', 'A', 'N', 'G', 'S', 'W', 'O', 'R', 'D', 'S', 'S', 'Y', 'L', 'O', 'T', 'I', @@ -4140,6 +4398,7 @@ 'S', 'Y', 'N', 'A', 'F', 'I', 'S', 'Y', 'O', 'U', 'W', 'A', 'S', 'Y', 'R', 'I', 'A', 'C', + 'T', 'A', '-', 'R', 'O', 'L', 'T', 'A', 'I', 'L', 'E', 'D', 'T', 'A', 'L', 'E', 'N', 'T', 'T', 'A', 'L', 'I', 'N', 'G', @@ -4161,8 +4420,10 @@ 'T', 'H', 'I', 'R', 'T', 'Y', 'T', 'H', 'I', 'U', 'T', 'H', 'T', 'H', 'R', 'E', 'A', 'D', + 'T', 'H', 'Y', 'O', 'O', 'M', 'T', 'I', 'K', 'E', 'U', 'T', 'T', 'I', 'P', 'E', 'H', 'A', + 'T', 'O', 'N', 'E', '-', '1', 'T', 'O', 'N', 'E', '-', '2', 'T', 'O', 'N', 'E', '-', '3', 'T', 'O', 'N', 'E', '-', '4', @@ -4174,6 +4435,7 @@ 'T', 'R', 'I', 'P', 'L', 'I', 'T', 'R', 'I', 'P', 'O', 'D', 'T', 'R', 'I', 'T', 'O', 'S', + 'T', 'S', 'H', 'O', 'O', 'K', 'T', 'S', 'H', 'U', 'G', 'S', 'T', 'T', 'E', 'H', 'E', 'H', 'T', 'U', 'A', 'R', 'E', 'G', @@ -4212,10 +4474,12 @@ 'W', 'E', 'A', 'P', 'O', 'N', 'W', 'E', 'I', 'G', 'H', 'T', 'W', 'I', 'G', 'G', 'L', 'Y', + 'W', 'I', 'N', 'T', 'E', 'R', 'W', 'O', 'L', 'O', 'S', 'O', 'W', 'R', 'E', 'A', 'T', 'H', 'X', 'E', 'S', 'T', 'E', 'S', 'Y', '-', 'C', 'R', 'E', 'E', + 'Y', 'A', 'K', 'A', 'S', 'H', 'Y', 'E', 'L', 'L', 'O', 'W', 'Y', 'F', 'E', 'S', 'I', 'S', 'Y', 'O', '-', 'Y', 'A', 'E', @@ -4223,6 +4487,7 @@ 'Y', 'P', 'S', 'I', 'L', 'I', 'Y', 'U', '-', 'Y', 'E', 'O', 'Z', 'E', 'M', 'L', 'J', 'A', + 'Z', 'E', 'M', 'L', 'Y', 'A', 'Z', 'I', 'G', 'Z', 'A', 'G', 'Z', 'Q', 'A', 'P', 'H', 'A', 'A', 'A', 'Y', 'A', 'N', 'N', 'A', @@ -4252,6 +4517,7 @@ 'A', 'V', 'E', 'R', 'A', 'G', 'E', 'B', 'A', 'A', 'R', 'E', 'R', 'U', 'B', 'A', 'I', 'R', 'K', 'A', 'N', + 'B', 'A', 'M', 'B', 'O', 'O', 'S', 'B', 'A', 'R', 'L', 'I', 'N', 'E', 'B', 'A', 'R', 'R', 'E', 'K', 'H', 'B', 'A', 'R', 'R', 'I', 'E', 'R', @@ -4259,11 +4525,13 @@ 'B', 'A', 'T', 'H', 'T', 'U', 'B', 'B', 'A', 'Y', 'A', 'N', 'N', 'A', 'B', 'E', 'C', 'A', 'U', 'S', 'E', + 'B', 'E', 'E', 'H', 'I', 'V', 'E', 'B', 'E', 'N', 'G', 'A', 'L', 'I', 'B', 'E', 'N', 'Z', 'E', 'N', 'E', 'B', 'E', 'T', 'W', 'E', 'E', 'N', 'B', 'I', 'N', 'D', 'I', 'N', 'G', 'B', 'J', 'A', 'R', 'K', 'A', 'N', + 'B', 'L', 'E', 'N', 'D', 'E', 'D', 'B', 'R', 'A', 'C', 'K', 'E', 'T', 'B', 'R', 'A', 'I', 'L', 'L', 'E', 'B', 'R', 'A', 'K', 'C', 'E', 'T', @@ -4271,6 +4539,7 @@ 'B', 'U', 'U', 'M', 'I', 'S', 'H', 'C', 'A', 'E', 'S', 'U', 'R', 'A', 'C', 'A', 'P', 'I', 'T', 'A', 'L', + 'C', 'A', 'P', 'T', 'I', 'V', 'E', 'C', 'A', 'R', 'R', 'I', 'E', 'R', 'C', 'A', 'U', 'T', 'I', 'O', 'N', 'C', 'A', 'Y', 'A', 'N', 'N', 'A', @@ -4286,6 +4555,7 @@ 'C', 'H', 'R', 'O', 'N', 'O', 'N', 'C', 'H', 'R', 'O', 'N', 'O', 'U', 'C', 'I', 'R', 'C', 'L', 'E', 'D', + 'C', 'I', 'R', 'C', 'L', 'E', 'S', 'C', 'L', 'O', 'S', 'I', 'N', 'G', 'C', 'L', 'O', 'S', 'U', 'R', 'E', 'C', 'L', 'O', 'T', 'H', 'E', 'S', @@ -4299,6 +4569,7 @@ 'C', 'O', 'R', 'N', 'E', 'R', 'S', 'C', 'O', 'R', 'O', 'N', 'I', 'S', 'C', 'O', 'R', 'R', 'E', 'C', 'T', + 'C', 'O', 'U', 'N', 'C', 'I', 'L', 'C', 'R', 'O', 'S', 'S', 'E', 'D', 'C', 'U', 'R', 'R', 'E', 'N', 'T', 'C', 'U', 'R', 'V', 'I', 'N', 'G', @@ -4319,6 +4590,7 @@ 'D', 'I', 'A', 'R', 'G', 'O', 'N', 'D', 'I', 'G', 'A', 'M', 'M', 'A', 'D', 'I', 'G', 'R', 'A', 'P', 'H', + 'D', 'I', 'M', 'I', 'D', 'I', 'A', 'D', 'I', 'M', 'M', 'I', 'N', 'G', 'D', 'I', 'N', 'G', 'B', 'A', 'T', 'D', 'I', 'P', 'L', 'O', 'U', 'N', @@ -4361,11 +4633,13 @@ 'E', 'A', 'B', 'H', 'A', 'D', 'H', 'E', 'A', 'D', 'H', 'A', 'D', 'H', 'E', 'A', 'R', 'T', 'H', 'L', 'Y', + 'E', 'A', 'S', 'T', 'E', 'R', 'N', 'E', 'B', 'E', 'F', 'I', 'L', 'I', 'E', 'E', 'Y', 'A', 'N', 'N', 'A', 'E', 'I', 'G', 'H', 'T', 'H', 'S', 'E', 'L', 'A', 'F', 'R', 'O', 'N', 'E', 'L', 'E', 'M', 'E', 'N', 'T', + 'E', 'L', 'L', 'I', 'P', 'S', 'E', 'E', 'N', 'A', 'R', 'X', 'I', 'S', 'E', 'N', 'Q', 'U', 'I', 'R', 'Y', 'E', 'P', 'S', 'I', 'L', 'O', 'N', @@ -4382,6 +4656,7 @@ 'F', 'O', 'R', 'K', 'I', 'N', 'G', 'F', 'R', 'A', 'K', 'T', 'U', 'R', 'F', 'U', 'N', 'E', 'R', 'A', 'L', + 'G', 'A', 'A', 'H', 'L', 'A', 'A', 'G', 'A', 'R', 'M', 'E', 'N', 'T', 'G', 'A', 'Y', 'A', 'N', 'N', 'A', 'G', 'E', 'N', 'E', 'R', 'I', 'C', @@ -4453,6 +4728,7 @@ 'L', 'O', 'G', 'I', 'C', 'A', 'L', 'L', 'O', 'Z', 'E', 'N', 'G', 'E', 'L', 'Y', 'G', 'I', 'S', 'M', 'A', + 'M', 'A', 'H', 'J', 'O', 'N', 'G', 'M', 'A', 'I', 'K', 'U', 'R', 'O', 'M', 'A', 'I', 'M', 'U', 'A', 'N', 'M', 'A', 'K', 'S', 'U', 'R', 'A', @@ -4462,6 +4738,7 @@ 'M', 'A', 'R', 'B', 'U', 'T', 'A', 'M', 'A', 'R', 'C', 'A', 'T', 'O', 'M', 'A', 'S', 'S', 'I', 'N', 'G', + 'M', 'A', 'T', 'T', 'O', 'C', 'K', 'M', 'A', 'Y', 'A', 'N', 'N', 'A', 'M', 'E', 'A', 'S', 'U', 'R', 'E', 'M', 'E', 'E', 'T', 'O', 'R', 'U', @@ -4480,6 +4757,7 @@ 'N', 'E', 'G', 'A', 'T', 'E', 'D', 'N', 'E', 'I', 'T', 'H', 'E', 'R', 'N', 'E', 'P', 'T', 'U', 'N', 'E', + 'N', 'E', 'U', 'T', 'R', 'A', 'L', 'N', 'E', 'W', 'L', 'I', 'N', 'E', 'N', 'G', 'E', 'A', 'D', 'A', 'L', 'N', 'I', 'K', 'A', 'H', 'I', 'T', @@ -4490,6 +4768,7 @@ 'N', 'U', 'N', 'A', 'V', 'I', 'K', 'N', 'U', 'N', 'A', 'V', 'U', 'T', 'N', 'U', 'T', 'I', 'L', 'L', 'U', + 'N', 'Y', 'I', 'N', '-', 'D', 'O', 'O', 'B', 'L', 'I', 'Q', 'U', 'E', 'O', 'B', 'O', 'F', 'I', 'L', 'I', 'O', 'C', 'T', 'O', 'B', 'E', 'R', @@ -4505,12 +4784,19 @@ 'O', 'V', 'E', 'R', 'L', 'A', 'Y', 'P', 'A', 'C', 'K', 'I', 'N', 'G', 'P', 'A', 'L', 'A', 'T', 'A', 'L', + 'P', 'A', 'L', 'A', 'U', 'N', 'G', 'P', 'A', 'L', 'L', 'A', 'W', 'A', + 'P', 'A', 'M', 'A', 'A', 'E', 'H', + 'P', 'A', 'M', 'E', 'P', 'E', 'T', 'P', 'A', 'N', 'S', 'I', 'O', 'S', + 'P', 'A', 'N', 'Y', 'I', 'K', 'U', + 'P', 'A', 'N', 'Y', 'U', 'K', 'U', + 'P', 'A', 'P', 'Y', 'R', 'U', 'S', 'P', 'A', 'R', 'E', 'R', 'E', 'N', 'P', 'A', 'R', 'T', 'I', 'A', 'L', 'P', 'A', 'T', 'T', 'E', 'R', 'N', 'P', 'A', 'Y', 'A', 'N', 'N', 'A', + 'P', 'A', 'Y', 'E', 'R', 'O', 'K', 'P', 'E', 'R', 'C', 'E', 'N', 'T', 'P', 'E', 'R', 'S', 'I', 'A', 'N', 'P', 'E', 'T', 'A', 'S', 'M', 'A', @@ -4540,7 +4826,9 @@ 'R', 'E', 'V', 'E', 'R', 'S', 'E', 'R', 'G', 'Y', 'I', 'N', 'G', 'S', 'R', 'I', 'T', 'T', 'O', 'R', 'U', + 'R', 'O', 'S', 'E', 'T', 'T', 'E', 'R', 'O', 'T', 'A', 'T', 'E', 'D', + 'R', 'O', 'T', 'U', 'N', 'D', 'A', 'R', 'O', 'U', 'N', 'D', 'E', 'D', 'R', 'U', 'U', 'B', 'U', 'R', 'U', 'S', 'A', 'I', 'K', 'U', 'R', 'U', @@ -4556,11 +4844,15 @@ 'S', 'E', 'M', 'K', 'A', 'T', 'H', 'S', 'E', 'R', 'V', 'I', 'C', 'E', 'S', 'E', 'V', 'E', 'N', 'T', 'Y', + 'S', 'E', 'X', 'T', 'A', 'N', 'S', + 'S', 'E', 'X', 'T', 'I', 'L', 'E', + 'S', 'E', 'X', 'T', 'U', 'L', 'A', 'S', 'H', 'A', 'P', 'I', 'N', 'G', 'S', 'H', 'A', 'V', 'I', 'A', 'N', 'S', 'H', 'E', 'S', 'H', 'I', 'G', 'S', 'H', 'T', 'A', 'P', 'I', 'C', 'S', 'H', 'U', 'F', 'F', 'L', 'E', + 'S', 'I', 'L', 'I', 'Q', 'U', 'A', 'S', 'I', 'M', 'I', 'L', 'A', 'R', 'S', 'I', 'N', 'H', 'A', 'L', 'A', 'S', 'I', 'N', 'K', 'I', 'N', 'G', @@ -4575,6 +4867,7 @@ 'S', 'O', 'C', 'I', 'E', 'T', 'Y', 'S', 'O', 'G', 'D', 'I', 'A', 'N', 'S', 'O', 'L', 'I', 'D', 'U', 'S', + 'S', 'P', 'A', 'C', 'I', 'N', 'G', 'S', 'P', 'A', 'R', 'K', 'L', 'E', 'S', 'P', 'E', 'C', 'I', 'A', 'L', 'S', 'P', 'I', 'D', 'E', 'R', 'Y', @@ -4613,6 +4906,7 @@ 'T', 'R', 'I', 'G', 'R', 'A', 'M', 'T', 'R', 'I', 'I', 'S', 'A', 'P', 'T', 'R', 'I', 'S', 'E', 'M', 'E', + 'T', 'T', 'U', 'D', 'D', 'A', 'G', 'U', '-', 'E', 'O', '-', 'E', 'U', 'U', 'B', 'A', 'D', 'A', 'M', 'A', 'U', 'B', 'U', 'F', 'I', 'L', 'I', @@ -4632,6 +4926,7 @@ 'W', 'A', 'I', 'T', 'I', 'N', 'G', 'W', 'A', 'R', 'N', 'I', 'N', 'G', 'W', 'A', 'S', 'T', 'I', 'N', 'G', + 'W', 'E', 'S', 'T', 'E', 'R', 'N', 'W', 'H', 'E', 'E', 'L', 'E', 'D', 'W', 'R', 'I', 'T', 'I', 'N', 'G', 'Y', 'A', 'Y', 'A', 'N', 'N', 'A', @@ -4709,6 +5004,7 @@ 'D', 'D', 'A', 'Y', 'A', 'N', 'N', 'A', 'D', 'E', 'C', 'E', 'M', 'B', 'E', 'R', 'D', 'E', 'C', 'R', 'E', 'A', 'S', 'E', + 'D', 'E', 'N', 'A', 'R', 'I', 'U', 'S', 'D', 'E', 'Y', 'T', 'E', 'R', 'O', 'S', 'D', 'E', 'Y', 'T', 'E', 'R', 'O', 'U', 'D', 'I', 'A', 'G', 'O', 'N', 'A', 'L', @@ -4782,6 +5078,7 @@ 'D', 'O', 'T', 'T', 'E', 'D', '-', 'P', 'D', 'R', 'A', 'C', 'H', 'M', 'A', 'S', 'D', 'R', 'A', 'F', 'T', 'I', 'N', 'G', + 'D', 'R', 'A', 'U', 'G', 'H', 'T', 'S', 'D', 'R', 'A', 'W', 'I', 'N', 'G', 'S', 'D', 'U', 'R', 'A', 'T', 'I', 'O', 'N', 'D', 'V', 'I', 'S', 'V', 'A', 'R', 'A', @@ -4789,6 +5086,7 @@ 'E', 'L', 'E', 'C', 'T', 'R', 'I', 'C', 'E', 'L', 'L', 'I', 'P', 'S', 'I', 'S', 'E', 'M', 'P', 'H', 'A', 'S', 'I', 'S', + 'E', 'M', 'P', 'H', 'A', 'T', 'I', 'C', 'E', 'N', 'T', 'E', 'R', 'I', 'N', 'G', 'E', 'N', 'V', 'E', 'L', 'O', 'P', 'E', 'E', 'P', 'E', 'G', 'E', 'R', 'M', 'A', @@ -4807,6 +5105,7 @@ 'F', 'I', 'S', 'H', 'H', 'O', 'O', 'K', 'F', 'L', 'A', 'T', 'N', 'E', 'S', 'S', 'F', 'L', 'O', 'R', 'E', 'T', 'T', 'E', + 'F', 'L', 'O', 'U', 'R', 'I', 'S', 'H', 'F', 'O', 'O', 'T', 'N', 'O', 'T', 'E', 'F', 'O', 'U', 'R', 'T', 'E', 'E', 'N', 'F', 'R', 'A', 'C', 'T', 'I', 'O', 'N', @@ -4816,6 +5115,7 @@ 'F', 'U', 'L', 'L', 'N', 'E', 'S', 'S', 'F', 'U', 'N', 'C', 'T', 'I', 'O', 'N', 'G', 'A', 'R', 'S', 'H', 'U', 'N', 'I', + 'G', 'A', 'U', 'N', 'T', 'L', 'E', 'T', 'G', 'E', 'N', 'I', 'T', 'I', 'V', 'E', 'G', 'E', 'O', 'R', 'G', 'I', 'A', 'N', 'G', 'R', 'A', 'P', 'H', 'E', 'M', 'E', @@ -4865,6 +5165,7 @@ 'M', 'A', 'H', 'A', 'P', 'A', 'K', 'H', 'M', 'A', 'I', 'M', 'A', 'L', 'A', 'I', 'M', 'A', 'I', 'Y', 'A', 'M', 'O', 'K', + 'M', 'A', 'N', 'A', 'C', 'L', 'E', 'S', 'M', 'A', 'N', 'G', 'A', 'L', 'A', 'M', 'M', 'A', 'R', 'R', 'I', 'A', 'G', 'E', 'M', 'A', 'R', 'R', 'Y', 'I', 'N', 'G', @@ -4907,6 +5208,10 @@ 'P', 'A', 'L', 'O', 'C', 'H', 'K', 'A', 'P', 'A', 'M', 'E', 'N', 'E', 'N', 'G', 'P', 'A', 'M', 'U', 'D', 'P', 'O', 'D', + 'P', 'A', 'N', 'G', 'H', 'U', 'L', 'U', + 'P', 'A', 'N', 'O', 'L', 'O', 'N', 'G', + 'P', 'A', 'N', 'Y', 'A', 'K', 'R', 'A', + 'P', 'A', 'N', 'Y', 'E', 'C', 'E', 'K', 'P', 'A', 'R', 'A', 'L', 'L', 'E', 'L', 'P', 'A', 'R', 'I', 'C', 'H', 'O', 'N', 'P', 'A', 'V', 'I', 'Y', 'A', 'N', 'I', @@ -4915,12 +5220,15 @@ 'P', 'E', 'N', 'T', 'A', 'G', 'O', 'N', 'P', 'E', 'R', 'F', 'E', 'C', 'T', 'A', 'P', 'E', 'T', 'A', 'L', 'L', 'E', 'D', + 'P', 'H', 'A', 'A', 'R', 'K', 'A', 'A', 'P', 'H', 'A', 'G', 'S', '-', 'P', 'A', + 'P', 'H', 'A', 'I', 'S', 'T', 'O', 'S', 'P', 'I', 'N', 'W', 'H', 'E', 'E', 'L', 'P', 'L', 'A', 'S', 'T', 'I', 'C', 'S', 'P', 'L', 'E', 'T', 'H', 'R', 'O', 'N', 'P', 'N', 'E', 'U', 'M', 'A', 'T', 'A', 'P', 'O', 'I', 'N', 'T', 'I', 'N', 'G', + 'P', 'O', 'K', 'R', 'Y', 'T', 'I', 'E', 'P', 'O', 'S', 'I', 'T', 'I', 'O', 'N', 'P', 'R', 'A', 'M', '-', 'B', 'E', 'I', 'P', 'R', 'A', 'M', '-', 'P', 'I', 'I', @@ -4934,6 +5242,7 @@ 'Q', 'U', 'A', 'D', 'R', 'A', 'N', 'T', 'Q', 'U', 'A', 'R', 'T', 'E', 'R', 'S', 'Q', 'U', 'E', 'S', 'T', 'I', 'O', 'N', + 'Q', 'U', 'I', 'N', 'C', 'U', 'N', 'X', 'R', 'E', 'C', 'O', 'R', 'D', 'E', 'R', 'R', 'E', 'C', 'Y', 'C', 'L', 'E', 'D', 'R', 'E', 'L', 'A', 'T', 'I', 'O', 'N', @@ -4945,6 +5254,7 @@ 'R', 'E', 'V', 'E', 'R', 'S', 'E', 'D', 'R', 'U', 'K', 'K', 'A', 'K', 'H', 'A', 'S', '-', 'S', 'H', 'A', 'P', 'E', 'D', + 'S', 'A', 'L', 'T', 'I', 'L', 'L', 'O', 'S', 'A', 'N', 'T', 'I', 'I', 'M', 'U', 'S', 'A', 'N', 'Y', 'O', 'O', 'G', 'A', 'S', 'A', 'X', 'I', 'M', 'A', 'T', 'A', @@ -4952,6 +5262,7 @@ 'S', 'C', 'O', 'R', 'P', 'I', 'U', 'S', 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', 'S', 'E', 'M', 'I', 'S', 'O', 'F', 'T', + 'S', 'E', 'M', 'U', 'N', 'C', 'I', 'A', 'S', 'H', 'A', 'D', 'O', 'W', 'E', 'D', 'S', 'H', 'A', 'M', 'R', 'O', 'C', 'K', 'S', 'H', 'E', '-', 'G', 'O', 'A', 'T', @@ -4960,13 +5271,16 @@ 'S', 'I', 'D', 'E', 'W', 'A', 'Y', 'S', 'S', 'I', 'M', 'A', 'N', 'S', 'I', 'S', 'S', 'I', 'X', '-', 'L', 'I', 'N', 'E', + 'S', 'L', 'A', 'V', 'O', 'N', 'I', 'C', 'S', 'Q', 'U', 'I', 'G', 'G', 'L', 'E', + 'S', 'Q', 'U', 'I', 'R', 'R', 'E', 'L', 'S', 'T', 'A', 'C', 'C', 'A', 'T', 'O', 'S', 'T', 'A', 'L', 'L', 'I', 'O', 'N', 'S', 'T', 'A', 'N', 'D', 'A', 'R', 'D', 'S', 'T', 'O', 'P', 'P', 'A', 'G', 'E', 'S', 'T', 'O', 'P', 'P', 'I', 'N', 'G', 'S', 'T', 'R', 'A', 'I', 'G', 'H', 'T', + 'S', 'T', 'R', 'A', 'I', 'N', 'E', 'R', 'S', 'T', 'R', 'A', 'T', 'I', 'A', 'N', 'S', 'T', 'R', 'E', 'N', 'G', 'T', 'H', 'S', 'T', 'R', 'I', 'C', 'T', 'L', 'Y', @@ -4998,6 +5312,7 @@ 'S', 'Y', 'M', 'M', 'E', 'T', 'R', 'Y', 'T', 'A', 'G', 'B', 'A', 'N', 'W', 'A', 'T', 'A', 'I', 'L', 'L', 'E', 'S', 'S', + 'T', 'A', 'T', 'T', 'O', 'O', 'E', 'D', 'T', 'A', 'V', 'I', 'Y', 'A', 'N', 'I', 'T', 'E', 'S', 'S', 'A', 'R', 'O', 'N', 'T', 'E', 'T', 'A', 'R', 'T', 'O', 'S', @@ -5012,12 +5327,14 @@ 'T', 'O', 'R', 'C', 'U', 'L', 'U', 'S', 'T', 'O', 'R', 'T', 'O', 'I', 'S', 'E', 'T', 'R', 'E', 'A', 'D', 'I', 'N', 'G', + 'T', 'R', 'E', 'S', 'I', 'L', 'L', 'O', 'T', 'R', 'I', 'A', 'N', 'G', 'L', 'E', 'T', 'R', 'I', 'C', 'O', 'L', 'O', 'N', 'T', 'R', 'I', 'S', 'I', 'M', 'O', 'U', 'T', 'R', 'O', 'M', 'I', 'K', 'O', 'N', 'T', 'R', 'Y', 'B', 'L', 'I', 'O', 'N', 'T', 'T', 'A', 'Y', 'A', 'N', 'N', 'A', + 'T', 'T', 'U', 'D', 'D', 'A', 'A', 'G', 'T', 'V', 'I', 'M', 'A', 'D', 'U', 'R', 'T', 'W', 'O', '-', 'L', 'I', 'N', 'E', 'U', 'G', 'A', 'R', 'I', 'T', 'I', 'C', @@ -5057,14 +5374,18 @@ 'B', 'A', 'C', 'K', 'S', 'L', 'A', 'S', 'H', 'B', 'A', 'C', 'K', 'S', 'P', 'A', 'C', 'E', 'B', 'E', 'G', 'I', 'N', 'N', 'I', 'N', 'G', + 'B', 'I', 'N', 'O', 'C', 'U', 'L', 'A', 'R', 'B', 'I', 'O', 'H', 'A', 'Z', 'A', 'R', 'D', 'B', 'I', 'S', 'E', 'C', 'T', 'I', 'N', 'G', 'B', 'I', 'S', 'M', 'I', 'L', 'L', 'A', 'H', 'B', 'L', 'A', 'C', 'K', 'F', 'O', 'O', 'T', + 'B', 'O', 'O', 'M', 'E', 'R', 'A', 'N', 'G', 'B', 'R', 'A', 'N', 'C', 'H', 'I', 'N', 'G', 'B', 'Y', 'Z', 'A', 'N', 'T', 'I', 'N', 'E', 'C', 'A', 'P', 'R', 'I', 'C', 'O', 'R', 'N', + 'C', 'A', 'R', 'P', 'E', 'N', 'T', 'R', 'Y', 'C', 'A', 'R', 'Y', 'S', 'T', 'I', 'A', 'N', + 'C', 'E', 'N', 'T', 'U', 'R', 'I', 'A', 'L', 'C', 'H', 'A', 'R', 'A', 'C', 'T', 'E', 'R', 'C', 'H', 'A', 'V', 'I', 'Y', 'A', 'N', 'I', 'C', 'L', 'O', 'C', 'K', 'W', 'I', 'S', 'E', @@ -5073,11 +5394,13 @@ 'C', 'O', 'M', 'P', 'L', 'E', 'T', 'E', 'D', 'C', 'O', 'N', 'G', 'R', 'U', 'E', 'N', 'T', 'C', 'O', 'N', 'J', 'U', 'G', 'A', 'T', 'E', + 'C', 'O', 'N', 'S', 'O', 'N', 'A', 'N', 'T', 'C', 'O', 'N', 'S', 'T', 'A', 'N', 'C', 'Y', 'C', 'O', 'N', 'T', 'O', 'U', 'R', 'E', 'D', 'C', 'O', 'P', 'R', 'O', 'D', 'U', 'C', 'T', 'C', 'O', 'P', 'Y', 'R', 'I', 'G', 'H', 'T', 'C', 'R', 'E', 'S', 'C', 'E', 'N', 'D', 'O', + 'C', 'U', 'A', 'T', 'R', 'I', 'L', 'L', 'O', 'C', 'U', 'N', 'E', 'I', 'F', 'O', 'R', 'M', 'D', 'A', 'H', 'Y', 'A', 'A', 'U', 'S', 'H', 'D', 'A', 'R', 'K', 'E', 'N', 'I', 'N', 'G', @@ -5164,6 +5487,7 @@ 'D', 'O', 'T', 'S', '-', '4', '6', '7', '8', 'D', 'O', 'T', 'S', '-', '5', '6', '7', '8', 'D', 'O', 'W', 'N', 'W', 'A', 'R', 'D', 'S', + 'D', 'U', 'P', 'O', 'N', 'D', 'I', 'U', 'S', 'E', 'D', 'I', 'T', 'O', 'R', 'I', 'A', 'L', 'E', 'E', 'B', 'E', 'E', 'F', 'I', 'L', 'I', 'E', 'M', 'B', 'E', 'D', 'D', 'I', 'N', 'G', @@ -5245,6 +5569,8 @@ 'M', 'E', 'T', 'O', 'B', 'E', 'L', 'U', 'S', 'M', 'I', 'R', 'I', 'B', 'A', 'A', 'R', 'U', 'M', 'O', 'N', 'G', 'O', 'L', 'I', 'A', 'N', + 'M', 'O', 'N', 'O', 'C', 'U', 'L', 'A', 'R', + 'M', 'O', 'N', 'O', 'G', 'R', 'A', 'P', 'H', 'M', 'O', 'N', 'O', 'S', 'P', 'A', 'C', 'E', 'M', 'U', 'K', 'P', 'H', 'R', 'E', 'N', 'G', 'M', 'U', 'U', 'R', 'D', 'H', 'A', 'J', 'A', @@ -5258,7 +5584,10 @@ 'O', 'Y', 'R', 'A', 'N', 'I', 'S', 'M', 'A', 'P', 'A', 'A', '-', 'P', 'I', 'L', 'L', 'A', 'P', 'A', 'I', 'Y', 'A', 'N', 'N', 'O', 'I', + 'P', 'A', 'M', 'I', 'N', 'G', 'K', 'A', 'L', 'P', 'A', 'M', 'U', 'N', 'G', 'K', 'A', 'H', + 'P', 'A', 'N', 'G', 'L', 'A', 'Y', 'A', 'R', + 'P', 'A', 'N', 'G', 'W', 'I', 'S', 'A', 'D', 'P', 'A', 'R', 'A', 'G', 'R', 'A', 'P', 'H', 'P', 'E', 'N', 'T', 'A', 'S', 'E', 'M', 'E', 'P', 'E', 'R', 'F', 'E', 'C', 'T', 'U', 'M', @@ -5274,6 +5603,7 @@ 'P', 'R', 'O', 'P', 'E', 'L', 'L', 'E', 'R', 'P', 'S', 'I', 'F', 'I', 'S', 'T', 'O', 'N', 'Q', 'U', 'A', 'D', 'R', 'U', 'P', 'L', 'E', + 'Q', 'U', 'I', 'N', 'A', 'R', 'I', 'U', 'S', 'Q', 'U', 'O', 'T', 'A', 'T', 'I', 'O', 'N', 'Q', 'U', 'S', 'H', 'S', 'H', 'A', 'Y', 'A', 'R', 'E', 'C', 'E', 'P', 'T', 'I', 'V', 'E', @@ -5286,6 +5616,7 @@ 'R', 'E', 'S', 'U', 'P', 'I', 'N', 'U', 'S', 'R', 'E', 'T', 'R', 'O', 'F', 'L', 'E', 'X', 'R', 'I', 'G', 'H', 'T', 'H', 'A', 'N', 'D', + 'S', 'A', 'M', 'A', 'R', 'I', 'T', 'A', 'N', 'S', 'C', 'A', 'N', 'D', 'I', 'C', 'U', 'S', 'S', 'E', 'B', 'A', 'T', 'B', 'E', 'I', 'T', 'S', 'E', 'M', 'I', 'C', 'O', 'L', 'O', 'N', @@ -5308,6 +5639,7 @@ 'S', 'U', 'B', 'L', 'I', 'N', 'E', 'A', 'R', 'S', 'U', 'B', 'S', 'C', 'R', 'I', 'P', 'T', 'S', 'U', 'M', 'M', 'A', 'T', 'I', 'O', 'N', + 'S', 'U', 'N', 'D', 'A', 'N', 'E', 'S', 'E', 'S', 'U', 'P', 'E', 'R', 'V', 'I', 'S', 'E', 'S', 'Y', 'L', 'L', 'A', 'B', 'I', 'C', 'S', 'S', 'Y', 'M', 'B', 'O', 'L', '-', '1', '0', @@ -5398,11 +5730,13 @@ 'B', 'A', 'T', 'H', 'A', 'M', 'A', 'S', 'A', 'T', 'B', 'I', 'B', 'L', 'E', '-', 'C', 'R', 'E', 'E', 'C', 'E', 'N', 'T', 'R', 'E', 'L', 'I', 'N', 'E', + 'C', 'H', 'A', 'R', 'A', 'C', 'T', 'E', 'R', 'S', 'C', 'I', 'R', 'C', 'U', 'M', 'F', 'L', 'E', 'X', 'C', 'O', 'M', 'M', 'E', 'R', 'C', 'I', 'A', 'L', 'C', 'O', 'M', 'P', 'L', 'E', 'M', 'E', 'N', 'T', 'C', 'O', 'M', 'P', 'L', 'E', 'T', 'I', 'O', 'N', 'C', 'O', 'M', 'P', 'L', 'I', 'A', 'N', 'C', 'E', + 'C', 'O', 'N', 'J', 'O', 'I', 'N', 'I', 'N', 'G', 'C', 'O', 'N', 'T', 'A', 'I', 'N', 'I', 'N', 'G', 'C', 'O', 'N', 'T', 'E', 'N', 'T', 'I', 'O', 'N', 'C', 'O', 'N', 'T', 'I', 'N', 'U', 'O', 'U', 'S', @@ -5482,6 +5816,7 @@ 'E', 'N', 'T', 'E', 'R', 'P', 'R', 'I', 'S', 'E', 'E', 'N', 'T', 'H', 'U', 'S', 'I', 'A', 'S', 'M', 'E', 'P', 'I', 'D', 'A', 'U', 'R', 'E', 'A', 'N', + 'E', 'P', 'I', 'G', 'R', 'A', 'P', 'H', 'I', 'C', 'E', 'Q', 'U', 'I', 'V', 'A', 'L', 'E', 'N', 'T', 'E', 'X', 'H', 'A', 'U', 'S', 'T', 'I', 'O', 'N', 'E', 'X', 'T', 'R', 'A', '-', 'H', 'I', 'G', 'H', @@ -5509,6 +5844,7 @@ 'K', 'I', 'R', 'O', 'G', 'U', 'R', 'A', 'M', 'U', 'K', 'U', 'N', 'D', 'D', 'A', 'L', 'I', 'Y', 'A', 'L', 'A', 'J', 'A', 'N', 'Y', 'A', 'L', 'A', 'N', + 'L', 'E', 'N', 'G', 'T', 'H', 'E', 'N', 'E', 'R', 'L', 'E', 'N', 'T', 'I', 'C', 'U', 'L', 'A', 'R', 'L', 'I', 'M', 'I', 'T', 'A', 'T', 'I', 'O', 'N', 'M', 'E', 'M', 'B', 'E', 'R', 'S', 'H', 'I', 'P', @@ -5516,6 +5852,7 @@ 'M', 'O', 'N', 'O', 'F', 'O', 'N', 'I', 'A', 'S', 'M', 'O', 'N', 'O', 'S', 'T', 'A', 'B', 'L', 'E', 'M', 'O', 'O', 'S', 'E', '-', 'C', 'R', 'E', 'E', + 'M', 'U', '-', 'G', 'A', 'A', 'H', 'L', 'A', 'A', 'N', 'A', 'A', 'S', 'I', 'K', 'Y', 'A', 'Y', 'A', 'N', 'A', 'N', 'G', 'M', 'O', 'N', 'T', 'H', 'O', 'N', 'I', 'E', 'U', 'N', '-', 'S', 'I', 'O', 'S', @@ -5524,8 +5861,12 @@ 'O', 'P', 'P', 'O', 'S', 'I', 'T', 'I', 'O', 'N', 'O', 'P', 'P', 'R', 'E', 'S', 'S', 'I', 'O', 'N', 'O', 'R', 'T', 'H', 'O', 'G', 'O', 'N', 'A', 'L', + 'P', 'A', 'M', 'P', 'H', 'Y', 'L', 'I', 'A', 'N', + 'P', 'A', 'N', 'A', 'E', 'L', 'A', 'E', 'N', 'G', + 'P', 'A', 'N', 'E', 'U', 'L', 'E', 'U', 'N', 'G', 'P', 'A', 'R', 'A', 'P', 'H', 'R', 'A', 'S', 'E', 'P', 'A', 'T', 'H', 'A', 'M', 'A', 'S', 'A', 'T', + 'P', 'E', 'D', 'E', 'S', 'T', 'R', 'I', 'A', 'N', 'P', 'E', 'R', 'C', 'U', 'S', 'S', 'I', 'V', 'E', 'P', 'H', 'A', 'R', 'Y', 'N', 'G', 'E', 'A', 'L', 'P', 'H', 'I', 'L', 'I', 'P', 'P', 'I', 'N', 'E', @@ -5550,6 +5891,7 @@ 'R', 'I', 'G', 'H', 'T', '-', 'S', 'I', 'D', 'E', 'R', 'I', 'G', 'H', 'T', 'W', 'A', 'R', 'D', 'S', 'S', 'A', 'N', 'S', '-', 'S', 'E', 'R', 'I', 'F', + 'S', 'A', 'U', 'R', 'A', 'S', 'H', 'T', 'R', 'A', 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', '-', '1', 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', '-', '2', 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', '-', '3', @@ -5563,6 +5905,7 @@ 'S', 'E', 'M', 'I', 'C', 'I', 'R', 'C', 'L', 'E', 'S', 'E', 'M', 'I', 'D', 'I', 'R', 'E', 'C', 'T', 'S', 'E', 'M', 'I', 'M', 'I', 'N', 'I', 'M', 'A', + 'S', 'E', 'S', 'T', 'E', 'R', 'T', 'I', 'U', 'S', 'S', 'H', 'A', 'L', 'S', 'H', 'E', 'L', 'E', 'T', 'S', 'H', 'O', 'U', 'L', 'D', 'E', 'R', 'E', 'D', 'S', 'I', 'M', 'P', 'L', 'I', 'F', 'I', 'E', 'D', @@ -5603,6 +5946,7 @@ 'T', 'W', 'E', 'N', 'T', 'Y', '-', 'T', 'W', 'O', 'T', 'W', 'O', '-', 'H', 'E', 'A', 'D', 'E', 'D', 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', 'L', 'Y', + 'V', 'I', 'S', 'I', 'G', 'O', 'T', 'H', 'I', 'C', 'W', 'H', 'E', 'E', 'L', 'C', 'H', 'A', 'I', 'R', 'W', 'O', 'O', 'D', 'S', '-', 'C', 'R', 'E', 'E', 'A', 'C', 'K', 'N', 'O', 'W', 'L', 'E', 'D', 'G', 'E', @@ -5706,6 +6050,7 @@ 'M', 'I', 'E', 'U', 'M', '-', 'P', 'I', 'E', 'U', 'P', 'M', 'I', 'E', 'U', 'M', '-', 'R', 'I', 'E', 'U', 'L', 'M', 'O', 'N', 'O', 'G', 'R', 'A', 'M', 'M', 'O', 'S', + 'M', 'U', 'L', 'T', 'I', 'O', 'C', 'U', 'L', 'A', 'R', 'M', 'U', 'U', 'S', 'I', 'K', 'A', 'T', 'O', 'A', 'N', 'N', 'A', 'A', 'K', 'S', 'I', 'K', 'Y', 'A', 'Y', 'A', 'N', 'E', 'B', 'E', 'N', 'S', 'T', 'I', 'M', 'M', 'E', @@ -5833,6 +6178,7 @@ 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', '-', '9', '8', 'S', 'E', 'L', 'E', 'C', 'T', 'O', 'R', '-', '9', '9', 'S', 'E', 'M', 'I', '-', 'V', 'O', 'I', 'C', 'E', 'D', + 'S', 'E', 'M', 'I', 'S', 'E', 'X', 'T', 'I', 'L', 'E', 'S', 'I', 'N', 'G', 'L', 'E', '-', 'L', 'I', 'N', 'E', 'S', 'I', 'O', 'S', '-', 'K', 'I', 'Y', 'E', 'O', 'K', 'S', 'I', 'O', 'S', '-', 'T', 'I', 'K', 'E', 'U', 'T', @@ -5869,6 +6215,7 @@ 'A', 'U', 'R', 'A', 'M', 'A', 'Z', 'D', 'A', 'A', 'H', 'A', 'B', 'L', 'A', 'C', 'K', '-', 'L', 'E', 'T', 'T', 'E', 'R', 'B', 'R', 'E', 'A', 'K', 'T', 'H', 'R', 'O', 'U', 'G', 'H', + 'B', 'R', 'E', 'V', 'E', '-', 'M', 'A', 'C', 'R', 'O', 'N', 'C', '-', 'S', 'I', 'M', 'P', 'L', 'I', 'F', 'I', 'E', 'D', 'C', 'A', 'N', 'C', 'E', 'L', 'L', 'A', 'T', 'I', 'O', 'N', 'C', 'A', 'N', 'T', 'I', 'L', 'L', 'A', 'T', 'I', 'O', 'N', @@ -5910,8 +6257,10 @@ 'J', '-', 'S', 'I', 'M', 'P', 'L', 'I', 'F', 'I', 'E', 'D', 'K', 'I', 'Y', 'E', 'O', 'K', '-', 'R', 'I', 'E', 'U', 'L', 'M', 'A', 'C', 'R', 'O', 'N', '-', 'A', 'C', 'U', 'T', 'E', + 'M', 'A', 'C', 'R', 'O', 'N', '-', 'B', 'R', 'E', 'V', 'E', 'M', 'A', 'C', 'R', 'O', 'N', '-', 'G', 'R', 'A', 'V', 'E', 'M', 'A', 'T', 'H', 'E', 'M', 'A', 'T', 'I', 'C', 'A', 'L', + 'M', 'I', 'D', 'D', 'L', 'E', '-', 'W', 'E', 'L', 'S', 'H', 'M', 'I', 'E', 'U', 'M', '-', 'K', 'I', 'Y', 'E', 'O', 'K', 'N', 'A', 'S', 'A', 'L', 'I', 'Z', 'A', 'T', 'I', 'O', 'N', 'N', 'I', 'E', 'U', 'N', '-', 'K', 'I', 'Y', 'E', 'O', 'K', @@ -6114,6 +6463,7 @@ 'A', 'V', 'A', 'K', 'R', 'A', 'H', 'A', 'S', 'A', 'N', 'Y', 'A', 'C', 'H', 'I', 'E', 'U', 'C', 'H', '-', 'H', 'I', 'E', 'U', 'H', 'C', 'H', 'I', 'T', 'U', 'E', 'U', 'M', 'C', 'I', 'E', 'U', 'C', + 'C', 'H', 'R', 'Y', 'S', 'A', 'N', 'T', 'H', 'E', 'M', 'U', 'M', 'C', 'O', 'M', 'P', 'A', 'T', 'I', 'B', 'I', 'L', 'I', 'T', 'Y', 'C', 'O', 'N', 'C', 'A', 'V', 'E', '-', 'S', 'I', 'D', 'E', 'D', 'C', 'O', 'N', 'T', 'E', 'M', 'P', 'L', 'A', 'T', 'I', 'O', 'N', @@ -6124,6 +6474,7 @@ 'D', 'O', 'U', 'B', 'L', 'E', '-', 'S', 'T', 'R', 'U', 'C', 'K', 'D', 'O', 'W', 'N', '-', 'P', 'O', 'I', 'N', 'T', 'I', 'N', 'G', 'D', 'R', 'O', 'P', '-', 'S', 'H', 'A', 'D', 'O', 'W', 'E', 'D', + 'E', 'G', 'Y', 'P', 'T', 'O', 'L', 'O', 'G', 'I', 'C', 'A', 'L', 'E', 'M', 'B', 'E', 'L', 'L', 'I', 'S', 'H', 'M', 'E', 'N', 'T', 'E', 'U', 'R', 'O', '-', 'C', 'U', 'R', 'R', 'E', 'N', 'C', 'Y', 'G', 'E', 'O', 'M', 'E', 'T', 'R', 'I', 'C', 'A', 'L', 'L', 'Y', @@ -6191,6 +6542,7 @@ 'P', 'R', 'O', 'S', 'G', 'E', 'G', 'R', 'A', 'M', 'M', 'E', 'N', 'I', 'R', 'I', 'G', 'H', 'T', '-', 'P', 'O', 'I', 'N', 'T', 'I', 'N', 'G', 'R', 'I', 'G', 'H', 'T', '-', 'S', 'H', 'A', 'D', 'O', 'W', 'E', 'D', + 'S', 'E', 'S', 'Q', 'U', 'I', 'Q', 'U', 'A', 'D', 'R', 'A', 'T', 'E', 'S', 'H', 'O', 'R', 'T', '-', 'T', 'W', 'I', 'G', '-', 'O', 'S', 'S', 'S', 'H', 'O', 'R', 'T', '-', 'T', 'W', 'I', 'G', '-', 'S', 'O', 'L', 'S', 'H', 'O', 'R', 'T', '-', 'T', 'W', 'I', 'G', '-', 'T', 'Y', 'R', @@ -6198,6 +6550,55 @@ 'T', 'R', 'I', 'A', 'N', 'G', 'L', 'E', '-', 'R', 'O', 'U', 'N', 'D', 'T', 'R', 'O', 'M', 'I', 'K', 'O', 'L', 'Y', 'G', 'I', 'S', 'M', 'A', 'T', 'R', 'O', 'M', 'I', 'K', 'O', 'S', 'Y', 'N', 'A', 'G', 'M', 'A', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '0', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '1', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '2', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '3', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '4', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '5', '-', '0', '6', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '0', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '1', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '2', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '3', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '4', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '5', + 'V', 'E', 'R', 'T', 'I', 'C', 'A', 'L', '-', '0', '6', '-', '0', '6', 'A', 'C', 'C', 'E', 'N', 'T', '-', 'S', 'T', 'A', 'C', 'C', 'A', 'T', 'O', 'A', 'N', 'T', 'I', 'K', 'E', 'N', 'O', 'K', 'Y', 'L', 'I', 'S', 'M', 'A', 'A', 'N', 'T', 'I', 'R', 'E', 'S', 'T', 'R', 'I', 'C', 'T', 'I', 'O', 'N', @@ -6226,6 +6627,55 @@ 'T', 'R', 'I', 'A', 'N', 'G', 'L', 'E', '-', 'H', 'E', 'A', 'D', 'E', 'D', 'W', 'H', 'I', 'T', 'E', '-', 'F', 'E', 'A', 'T', 'H', 'E', 'R', 'E', 'D', 'C', 'E', 'O', 'N', 'G', 'C', 'H', 'I', 'E', 'U', 'M', 'C', 'I', 'E', 'U', 'C', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '0', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '1', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '2', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '3', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '4', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '5', '-', '0', '6', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '0', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '1', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '2', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '3', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '4', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '5', + 'H', 'O', 'R', 'I', 'Z', 'O', 'N', 'T', 'A', 'L', '-', '0', '6', '-', '0', '6', 'L', 'O', 'N', 'G', '-', 'B', 'R', 'A', 'N', 'C', 'H', '-', 'M', 'A', 'D', 'R', 'M', 'A', 'R', 'C', 'A', 'T', 'O', '-', 'S', 'T', 'A', 'C', 'C', 'A', 'T', 'O', 'P', 'I', 'E', 'U', 'P', '-', 'S', 'I', 'O', 'S', '-', 'C', 'I', 'E', 'U', 'C', @@ -6268,16672 +6718,18288 @@ 'P', 'A', 'S', 'S', 'I', 'V', 'E', '-', 'P', 'U', 'L', 'L', '-', 'U', 'P', '-', 'O', 'U', 'T', 'P', 'U', 'T', 'P', 'A', 'S', 'S', 'I', 'V', 'E', '-', 'P', 'U', 'L', 'L', '-', 'D', 'O', 'W', 'N', '-', 'O', 'U', 'T', 'P', 'U', 'T', }; -#define UNICODE_CHARNAME_NUM_WORDS 6260 +#define UNICODE_CHARNAME_NUM_WORDS 6710 static const struct { uint16_t extra_offset; uint16_t ind_offset; } unicode_name_by_length[26] = { { 0, 0 }, { 0, 0 }, { 26, 26 }, - { 602, 314 }, - { 4181, 1507 }, - { 10117, 2991 }, - { 13762, 3720 }, - { 16750, 4218 }, - { 19641, 4631 }, - { 22833, 5030 }, - { 25893, 5370 }, - { 28173, 5598 }, - { 30934, 5849 }, - { 33958, 6101 }, - { 34842, 6169 }, - { 35150, 6191 }, - { 35555, 6218 }, - { 35715, 6228 }, - { 35936, 6241 }, - { 36116, 6251 }, - { 36173, 6254 }, - { 36193, 6255 }, - { 36235, 6257 }, - { 36279, 6259 }, - { 36279, 6259 }, - { 36303, 6260 } + { 658, 342 }, + { 4468, 1612 }, + { 10756, 3184 }, + { 14596, 3952 }, + { 17782, 4483 }, + { 20883, 4926 }, + { 24251, 5347 }, + { 27446, 5702 }, + { 29846, 5942 }, + { 32629, 6195 }, + { 35689, 6450 }, + { 36599, 6520 }, + { 37607, 6592 }, + { 38012, 6619 }, + { 38956, 6678 }, + { 39177, 6691 }, + { 39357, 6701 }, + { 39414, 6704 }, + { 39434, 6705 }, + { 39476, 6707 }, + { 39520, 6709 }, + { 39520, 6709 }, + { 39544, 6710 } }; -#define UNICODE_CHARNAME_WORD_HANGUL 3902 -#define UNICODE_CHARNAME_WORD_SYLLABLE 4978 -#define UNICODE_CHARNAME_WORD_CJK 417 -#define UNICODE_CHARNAME_WORD_COMPATIBILITY 6107 -static const uint16_t unicode_names[68940] = { - 23, 3, 697, 8258, - 37, 257, 10010, - 47, 257, 1, 10543, 752, - 51, 9763, 689, 11008, - 51, 9763, 4555, 6567, 8514, - 51, 9763, 4555, 8511, 8514, - 51, 9763, 5424, - 51, 9763, 5663, 6212, - 51, 9763, 6977, 12386, - 51, 9763, 6997, 6567, 8514, - 51, 9763, 6997, 8511, 8514, - 51, 9763, 7653, 12386, - 51, 9763, 8167, 8092, - 51, 9763, 8167, 11052, - 51, 9763, 8167, 11220, - 51, 9763, 11069, 11220, - 63, 8586, - 163, 3758, - 163, 5146, - 163, 7158, - 165, 3758, - 165, 5146, - 165, 7158, - 415, 5741, 961, 7836, - 547, 3495, 4555, 3863, 3495, 4555, 8776, - 547, 3495, 4555, 3863, 3495, 6997, 8776, - 547, 3495, 6997, 3863, 3495, 4555, 8776, - 547, 3495, 6997, 3863, 3495, 6997, 8776, - 547, 3863, 6046, - 547, 3863, 6047, 5741, 3498, - 547, 3863, 6117, 6046, - 547, 3863, 7357, 6046, - 547, 3863, 7673, 6046, - 547, 3939, 5520, - 547, 5518, - 547, 5519, 5741, 7583, 5990, - 547, 6047, 9199, 7582, - 547, 6997, 9409, 9560, - 547, 10082, - 547, 10083, 8509, 2585, 10979, 3496, - 601, 9045, 126, - 601, 9045, 142, - 601, 9045, 200, - 601, 9045, 280, - 601, 9045, 290, - 601, 9045, 318, - 601, 9045, 352, - 601, 9045, 412, - 601, 9045, 526, - 601, 9045, 576, - 601, 9045, 604, - 601, 9045, 614, - 601, 9045, 758, - 601, 9045, 812, - 601, 9045, 828, - 601, 9045, 870, - 601, 9045, 874, - 601, 9045, 1140, - 601, 9045, 1188, - 601, 9045, 1294, - 601, 9045, 1420, - 601, 9045, 1516, - 601, 9045, 1650, - 601, 9045, 1712, - 601, 9045, 1788, - 601, 9045, 2090, - 601, 9045, 2106, - 601, 9045, 2152, - 601, 9045, 2344, - 601, 9045, 2388, - 601, 9045, 2464, - 601, 9045, 2662, - 601, 9045, 2690, - 601, 9045, 2864, - 601, 9045, 2972, - 601, 9045, 2984, - 601, 9045, 2986, - 601, 9045, 3530, - 601, 9045, 3728, - 601, 9045, 3806, - 601, 9045, 4024, - 601, 9045, 4030, - 601, 9045, 4298, - 601, 9045, 4302, - 601, 9045, 4308, - 601, 9045, 4370, - 601, 9045, 4390, - 601, 9045, 4754, - 601, 9045, 4962, - 601, 9045, 4972, - 601, 9045, 5010, - 601, 9045, 5320, - 601, 9045, 5356, - 601, 9045, 5370, - 601, 9045, 7432, - 601, 9957, 0, - 601, 9957, 8, - 601, 9957, 16, - 601, 9957, 28, - 601, 9957, 80, - 601, 9957, 86, - 601, 9957, 90, - 601, 9957, 94, - 601, 9957, 96, - 601, 9957, 98, - 601, 9957, 100, - 601, 9957, 104, - 601, 9957, 106, - 601, 9957, 108, - 601, 9957, 114, - 601, 9957, 118, - 601, 9957, 122, - 601, 9957, 124, - 601, 9957, 126, - 601, 9957, 128, - 601, 9957, 132, - 601, 9957, 134, - 601, 9957, 140, - 601, 9957, 142, - 601, 9957, 180, - 601, 9957, 182, - 601, 9957, 188, - 601, 9957, 194, - 601, 9957, 196, - 601, 9957, 198, - 601, 9957, 200, - 601, 9957, 204, - 601, 9957, 208, - 601, 9957, 212, - 601, 9957, 214, - 601, 9957, 220, - 601, 9957, 222, - 601, 9957, 230, - 601, 9957, 242, - 601, 9957, 260, - 601, 9957, 266, - 601, 9957, 270, - 601, 9957, 278, - 601, 9957, 280, - 601, 9957, 282, - 601, 9957, 284, - 601, 9957, 286, - 601, 9957, 290, - 601, 9957, 294, - 601, 9957, 302, - 601, 9957, 306, - 601, 9957, 312, - 601, 9957, 314, - 601, 9957, 318, - 601, 9957, 328, - 601, 9957, 332, - 601, 9957, 338, - 601, 9957, 342, - 601, 9957, 346, - 601, 9957, 352, - 601, 9957, 358, - 601, 9957, 362, - 601, 9957, 368, - 601, 9957, 370, - 601, 9957, 372, - 601, 9957, 380, - 601, 9957, 386, - 601, 9957, 390, - 601, 9957, 412, - 601, 9957, 418, - 601, 9957, 426, - 601, 9957, 430, - 601, 9957, 440, - 601, 9957, 444, - 601, 9957, 450, - 601, 9957, 456, - 601, 9957, 462, - 601, 9957, 464, - 601, 9957, 468, - 601, 9957, 470, - 601, 9957, 472, - 601, 9957, 474, - 601, 9957, 478, - 601, 9957, 482, - 601, 9957, 484, - 601, 9957, 486, - 601, 9957, 488, - 601, 9957, 492, - 601, 9957, 496, - 601, 9957, 502, - 601, 9957, 508, - 601, 9957, 510, - 601, 9957, 514, - 601, 9957, 518, - 601, 9957, 520, - 601, 9957, 526, - 601, 9957, 544, - 601, 9957, 554, - 601, 9957, 558, - 601, 9957, 560, - 601, 9957, 562, - 601, 9957, 564, - 601, 9957, 566, - 601, 9957, 570, - 601, 9957, 576, - 601, 9957, 578, - 601, 9957, 588, - 601, 9957, 590, - 601, 9957, 594, - 601, 9957, 600, - 601, 9957, 604, - 601, 9957, 608, - 601, 9957, 612, - 601, 9957, 614, - 601, 9957, 616, - 601, 9957, 620, - 601, 9957, 622, - 601, 9957, 624, - 601, 9957, 626, - 601, 9957, 694, - 601, 9957, 698, - 601, 9957, 700, - 601, 9957, 702, - 601, 9957, 704, - 601, 9957, 706, - 601, 9957, 708, - 601, 9957, 710, - 601, 9957, 712, - 601, 9957, 722, - 601, 9957, 726, - 601, 9957, 734, - 601, 9957, 738, - 601, 9957, 740, - 601, 9957, 742, - 601, 9957, 746, - 601, 9957, 748, - 601, 9957, 752, - 601, 9957, 754, - 601, 9957, 756, - 601, 9957, 758, - 601, 9957, 760, - 601, 9957, 762, - 601, 9957, 772, - 601, 9957, 774, - 601, 9957, 776, - 601, 9957, 778, - 601, 9957, 786, - 601, 9957, 788, - 601, 9957, 790, - 601, 9957, 806, - 601, 9957, 808, - 601, 9957, 810, - 601, 9957, 812, - 601, 9957, 816, - 601, 9957, 818, - 601, 9957, 820, - 601, 9957, 822, - 601, 9957, 828, - 601, 9957, 830, - 601, 9957, 832, - 601, 9957, 840, - 601, 9957, 842, - 601, 9957, 846, - 601, 9957, 850, - 601, 9957, 852, - 601, 9957, 854, - 601, 9957, 856, - 601, 9957, 858, - 601, 9957, 870, - 601, 9957, 872, - 601, 9957, 874, - 601, 9957, 876, - 601, 9957, 888, - 601, 9957, 892, - 601, 9957, 894, - 601, 9957, 898, - 601, 9957, 900, - 601, 9957, 902, - 601, 9957, 904, - 601, 9957, 906, - 601, 9957, 916, - 601, 9957, 918, - 601, 9957, 926, - 601, 9957, 932, - 601, 9957, 934, - 601, 9957, 936, - 601, 9957, 958, - 601, 9957, 960, - 601, 9957, 962, - 601, 9957, 976, - 601, 9957, 978, - 601, 9957, 980, - 601, 9957, 982, - 601, 9957, 984, - 601, 9957, 1054, - 601, 9957, 1056, - 601, 9957, 1058, - 601, 9957, 1072, - 601, 9957, 1074, - 601, 9957, 1076, - 601, 9957, 1082, - 601, 9957, 1086, - 601, 9957, 1088, - 601, 9957, 1090, - 601, 9957, 1092, - 601, 9957, 1094, - 601, 9957, 1104, - 601, 9957, 1106, - 601, 9957, 1108, - 601, 9957, 1126, - 601, 9957, 1130, - 601, 9957, 1132, - 601, 9957, 1140, - 601, 9957, 1144, - 601, 9957, 1146, - 601, 9957, 1148, - 601, 9957, 1150, - 601, 9957, 1152, - 601, 9957, 1154, - 601, 9957, 1156, - 601, 9957, 1172, - 601, 9957, 1176, - 601, 9957, 1178, - 601, 9957, 1180, - 601, 9957, 1186, - 601, 9957, 1188, - 601, 9957, 1190, - 601, 9957, 1206, - 601, 9957, 1208, - 601, 9957, 1210, - 601, 9957, 1212, - 601, 9957, 1214, - 601, 9957, 1240, - 601, 9957, 1244, - 601, 9957, 1246, - 601, 9957, 1254, - 601, 9957, 1258, - 601, 9957, 1270, - 601, 9957, 1276, - 601, 9957, 1278, - 601, 9957, 1280, - 601, 9957, 1282, - 601, 9957, 1284, - 601, 9957, 1286, - 601, 9957, 1288, - 601, 9957, 1290, - 601, 9957, 1292, - 601, 9957, 1294, - 601, 9957, 1296, - 601, 9957, 1298, - 601, 9957, 1300, - 601, 9957, 1302, - 601, 9957, 1304, - 601, 9957, 1314, - 601, 9957, 1316, - 601, 9957, 1318, - 601, 9957, 1322, - 601, 9957, 1334, - 601, 9957, 1336, - 601, 9957, 1338, - 601, 9957, 1340, - 601, 9957, 1360, - 601, 9957, 1362, - 601, 9957, 1364, - 601, 9957, 1400, - 601, 9957, 1404, - 601, 9957, 1406, - 601, 9957, 1408, - 601, 9957, 1414, - 601, 9957, 1416, - 601, 9957, 1418, - 601, 9957, 1420, - 601, 9957, 1424, - 601, 9957, 1426, - 601, 9957, 1428, - 601, 9957, 1432, - 601, 9957, 1434, - 601, 9957, 1436, - 601, 9957, 1438, - 601, 9957, 1440, - 601, 9957, 1444, - 601, 9957, 1446, - 601, 9957, 1448, - 601, 9957, 1450, - 601, 9957, 1470, - 601, 9957, 1472, - 601, 9957, 1474, - 601, 9957, 1484, - 601, 9957, 1486, - 601, 9957, 1488, - 601, 9957, 1506, - 601, 9957, 1514, - 601, 9957, 1516, - 601, 9957, 1518, - 601, 9957, 1540, - 601, 9957, 1542, - 601, 9957, 1544, - 601, 9957, 1562, - 601, 9957, 1564, - 601, 9957, 1566, - 601, 9957, 1568, - 601, 9957, 1570, - 601, 9957, 1612, - 601, 9957, 1616, - 601, 9957, 1620, - 601, 9957, 1634, - 601, 9957, 1636, - 601, 9957, 1650, - 601, 9957, 1656, - 601, 9957, 1658, - 601, 9957, 1660, - 601, 9957, 1672, - 601, 9957, 1674, - 601, 9957, 1678, - 601, 9957, 1692, - 601, 9957, 1694, - 601, 9957, 1696, - 601, 9957, 1698, - 601, 9957, 1700, - 601, 9957, 1710, - 601, 9957, 1712, - 601, 9957, 1714, - 601, 9957, 1716, - 601, 9957, 1730, - 601, 9957, 1734, - 601, 9957, 1736, - 601, 9957, 1750, - 601, 9957, 1752, - 601, 9957, 1754, - 601, 9957, 1756, - 601, 9957, 1758, - 601, 9957, 1764, - 601, 9957, 1776, - 601, 9957, 1778, - 601, 9957, 1780, - 601, 9957, 1788, - 601, 9957, 1790, - 601, 9957, 1792, - 601, 9957, 1798, - 601, 9957, 1800, - 601, 9957, 1802, - 601, 9957, 1804, - 601, 9957, 1806, - 601, 9957, 1818, - 601, 9957, 1820, - 601, 9957, 1822, - 601, 9957, 1834, - 601, 9957, 1838, - 601, 9957, 1840, - 601, 9957, 1842, - 601, 9957, 1844, - 601, 9957, 1846, - 601, 9957, 1848, - 601, 9957, 1850, - 601, 9957, 1852, - 601, 9957, 1854, - 601, 9957, 1856, - 601, 9957, 1858, - 601, 9957, 1866, - 601, 9957, 1872, - 601, 9957, 1874, - 601, 9957, 1876, - 601, 9957, 1882, - 601, 9957, 1892, - 601, 9957, 1898, - 601, 9957, 1900, - 601, 9957, 1902, - 601, 9957, 1906, - 601, 9957, 1908, - 601, 9957, 1910, - 601, 9957, 1912, - 601, 9957, 1926, - 601, 9957, 1930, - 601, 9957, 1934, - 601, 9957, 1936, - 601, 9957, 1938, - 601, 9957, 1940, - 601, 9957, 1942, - 601, 9957, 1944, - 601, 9957, 1948, - 601, 9957, 1950, - 601, 9957, 1952, - 601, 9957, 1954, - 601, 9957, 1956, - 601, 9957, 1968, - 601, 9957, 1970, - 601, 9957, 1972, - 601, 9957, 1974, - 601, 9957, 1976, - 601, 9957, 1978, - 601, 9957, 1980, - 601, 9957, 1982, - 601, 9957, 2024, - 601, 9957, 2028, - 601, 9957, 2032, - 601, 9957, 2052, - 601, 9957, 2058, - 601, 9957, 2060, - 601, 9957, 2062, - 601, 9957, 2070, - 601, 9957, 2072, - 601, 9957, 2074, - 601, 9957, 2084, - 601, 9957, 2086, - 601, 9957, 2088, - 601, 9957, 2090, - 601, 9957, 2092, - 601, 9957, 2102, - 601, 9957, 2104, - 601, 9957, 2106, - 601, 9957, 2108, - 601, 9957, 2134, - 601, 9957, 2138, - 601, 9957, 2140, - 601, 9957, 2142, - 601, 9957, 2150, - 601, 9957, 2152, - 601, 9957, 2154, - 601, 9957, 2164, - 601, 9957, 2166, - 601, 9957, 2168, - 601, 9957, 2170, - 601, 9957, 2176, - 601, 9957, 2192, - 601, 9957, 2194, - 601, 9957, 2196, - 601, 9957, 2200, - 601, 9957, 2216, - 601, 9957, 2218, - 601, 9957, 2220, - 601, 9957, 2230, - 601, 9957, 2232, - 601, 9957, 2256, - 601, 9957, 2258, - 601, 9957, 2260, - 601, 9957, 2262, - 601, 9957, 2264, - 601, 9957, 2266, - 601, 9957, 2268, - 601, 9957, 2270, - 601, 9957, 2278, - 601, 9957, 2280, - 601, 9957, 2282, - 601, 9957, 2284, - 601, 9957, 2286, - 601, 9957, 2292, - 601, 9957, 2294, - 601, 9957, 2296, - 601, 9957, 2298, - 601, 9957, 2314, - 601, 9957, 2318, - 601, 9957, 2320, - 601, 9957, 2328, - 601, 9957, 2332, - 601, 9957, 2334, - 601, 9957, 2336, - 601, 9957, 2340, - 601, 9957, 2342, - 601, 9957, 2344, - 601, 9957, 2346, - 601, 9957, 2354, - 601, 9957, 2356, - 601, 9957, 2358, - 601, 9957, 2374, - 601, 9957, 2376, - 601, 9957, 2382, - 601, 9957, 2384, - 601, 9957, 2386, - 601, 9957, 2388, - 601, 9957, 2390, - 601, 9957, 2392, - 601, 9957, 2394, - 601, 9957, 2404, - 601, 9957, 2406, - 601, 9957, 2408, - 601, 9957, 2410, - 601, 9957, 2412, - 601, 9957, 2422, - 601, 9957, 2424, - 601, 9957, 2426, - 601, 9957, 2428, - 601, 9957, 2460, - 601, 9957, 2464, - 601, 9957, 2472, - 601, 9957, 2480, - 601, 9957, 2484, - 601, 9957, 2498, - 601, 9957, 2504, - 601, 9957, 2508, - 601, 9957, 2510, - 601, 9957, 2532, - 601, 9957, 2534, - 601, 9957, 2536, - 601, 9957, 2568, - 601, 9957, 2570, - 601, 9957, 2572, - 601, 9957, 2574, - 601, 9957, 2576, - 601, 9957, 2624, - 601, 9957, 2626, - 601, 9957, 2650, - 601, 9957, 2652, - 601, 9957, 2656, - 601, 9957, 2662, - 601, 9957, 2666, - 601, 9957, 2668, - 601, 9957, 2672, - 601, 9957, 2674, - 601, 9957, 2676, - 601, 9957, 2678, - 601, 9957, 2680, - 601, 9957, 2686, - 601, 9957, 2688, - 601, 9957, 2690, - 601, 9957, 2692, - 601, 9957, 2694, - 601, 9957, 2698, - 601, 9957, 2700, - 601, 9957, 2702, - 601, 9957, 2704, - 601, 9957, 2710, - 601, 9957, 2712, - 601, 9957, 2718, - 601, 9957, 2724, - 601, 9957, 2726, - 601, 9957, 2738, - 601, 9957, 2740, - 601, 9957, 2742, - 601, 9957, 2752, - 601, 9957, 2754, - 601, 9957, 2756, - 601, 9957, 2758, - 601, 9957, 2762, - 601, 9957, 2766, - 601, 9957, 2768, - 601, 9957, 2770, - 601, 9957, 2788, - 601, 9957, 2790, - 601, 9957, 2792, - 601, 9957, 2796, - 601, 9957, 2854, - 601, 9957, 2862, - 601, 9957, 2864, - 601, 9957, 2866, - 601, 9957, 2874, - 601, 9957, 2876, - 601, 9957, 2878, - 601, 9957, 2880, - 601, 9957, 2882, - 601, 9957, 2884, - 601, 9957, 2888, - 601, 9957, 2890, - 601, 9957, 2902, - 601, 9957, 2904, - 601, 9957, 2906, - 601, 9957, 2908, - 601, 9957, 2920, - 601, 9957, 2922, - 601, 9957, 2924, - 601, 9957, 2932, - 601, 9957, 2934, - 601, 9957, 2936, - 601, 9957, 2938, - 601, 9957, 2942, - 601, 9957, 2944, - 601, 9957, 2946, - 601, 9957, 2952, - 601, 9957, 2956, - 601, 9957, 2958, - 601, 9957, 2960, - 601, 9957, 2970, - 601, 9957, 2972, - 601, 9957, 2974, - 601, 9957, 2982, - 601, 9957, 2984, - 601, 9957, 2986, - 601, 9957, 2988, - 601, 9957, 2990, - 601, 9957, 2994, - 601, 9957, 2996, - 601, 9957, 2998, - 601, 9957, 3000, - 601, 9957, 3002, - 601, 9957, 3004, - 601, 9957, 3006, - 601, 9957, 3008, - 601, 9957, 3010, - 601, 9957, 3012, - 601, 9957, 3500, - 601, 9957, 3502, - 601, 9957, 3504, - 601, 9957, 3506, - 601, 9957, 3508, - 601, 9957, 3510, - 601, 9957, 3512, - 601, 9957, 3514, - 601, 9957, 3516, - 601, 9957, 3518, - 601, 9957, 3520, - 601, 9957, 3522, - 601, 9957, 3524, - 601, 9957, 3526, - 601, 9957, 3528, - 601, 9957, 3530, - 601, 9957, 3532, - 601, 9957, 3534, - 601, 9957, 3536, - 601, 9957, 3538, - 601, 9957, 3560, - 601, 9957, 3562, - 601, 9957, 3564, - 601, 9957, 3592, - 601, 9957, 3594, - 601, 9957, 3600, - 601, 9957, 3604, - 601, 9957, 3652, - 601, 9957, 3656, - 601, 9957, 3658, - 601, 9957, 3666, - 601, 9957, 3668, - 601, 9957, 3670, - 601, 9957, 3678, - 601, 9957, 3680, - 601, 9957, 3682, - 601, 9957, 3684, - 601, 9957, 3686, - 601, 9957, 3688, - 601, 9957, 3690, - 601, 9957, 3694, - 601, 9957, 3696, - 601, 9957, 3698, - 601, 9957, 3700, - 601, 9957, 3702, - 601, 9957, 3704, - 601, 9957, 3706, - 601, 9957, 3728, - 601, 9957, 3730, - 601, 9957, 3734, - 601, 9957, 3742, - 601, 9957, 3768, - 601, 9957, 3770, - 601, 9957, 3772, - 601, 9957, 3778, - 601, 9957, 3780, - 601, 9957, 3786, - 601, 9957, 3788, - 601, 9957, 3790, - 601, 9957, 3792, - 601, 9957, 3796, - 601, 9957, 3798, - 601, 9957, 3800, - 601, 9957, 3802, - 601, 9957, 3804, - 601, 9957, 3806, - 601, 9957, 3808, - 601, 9957, 3810, - 601, 9957, 3834, - 601, 9957, 3836, - 601, 9957, 3876, - 601, 9957, 3880, - 601, 9957, 3966, - 601, 9957, 4004, - 601, 9957, 4006, - 601, 9957, 4008, - 601, 9957, 4012, - 601, 9957, 4014, - 601, 9957, 4016, - 601, 9957, 4018, - 601, 9957, 4020, - 601, 9957, 4022, - 601, 9957, 4024, - 601, 9957, 4026, - 601, 9957, 4028, - 601, 9957, 4030, - 601, 9957, 4032, - 601, 9957, 4034, - 601, 9957, 4036, - 601, 9957, 4038, - 601, 9957, 4056, - 601, 9957, 4058, - 601, 9957, 4060, - 601, 9957, 4090, - 601, 9957, 4092, - 601, 9957, 4094, - 601, 9957, 4098, - 601, 9957, 4146, - 601, 9957, 4152, - 601, 9957, 4154, - 601, 9957, 4156, - 601, 9957, 4158, - 601, 9957, 4160, - 601, 9957, 4162, - 601, 9957, 4164, - 601, 9957, 4166, - 601, 9957, 4168, - 601, 9957, 4170, - 601, 9957, 4172, - 601, 9957, 4174, - 601, 9957, 4176, - 601, 9957, 4178, - 601, 9957, 4180, - 601, 9957, 4182, - 601, 9957, 4184, - 601, 9957, 4186, - 601, 9957, 4188, - 601, 9957, 4190, - 601, 9957, 4192, - 601, 9957, 4194, - 601, 9957, 4196, - 601, 9957, 4198, - 601, 9957, 4200, - 601, 9957, 4202, - 601, 9957, 4204, - 601, 9957, 4206, - 601, 9957, 4208, - 601, 9957, 4210, - 601, 9957, 4212, - 601, 9957, 4214, - 601, 9957, 4216, - 601, 9957, 4218, - 601, 9957, 4220, - 601, 9957, 4222, - 601, 9957, 4224, - 601, 9957, 4226, - 601, 9957, 4228, - 601, 9957, 4230, - 601, 9957, 4232, - 601, 9957, 4234, - 601, 9957, 4236, - 601, 9957, 4238, - 601, 9957, 4240, - 601, 9957, 4242, - 601, 9957, 4244, - 601, 9957, 4246, - 601, 9957, 4248, - 601, 9957, 4250, - 601, 9957, 4252, - 601, 9957, 4254, - 601, 9957, 4276, - 601, 9957, 4278, - 601, 9957, 4280, - 601, 9957, 4284, - 601, 9957, 4286, - 601, 9957, 4288, - 601, 9957, 4290, - 601, 9957, 4292, - 601, 9957, 4294, - 601, 9957, 4296, - 601, 9957, 4298, - 601, 9957, 4300, - 601, 9957, 4302, - 601, 9957, 4304, - 601, 9957, 4306, - 601, 9957, 4308, - 601, 9957, 4362, - 601, 9957, 4364, - 601, 9957, 4366, - 601, 9957, 4370, - 601, 9957, 4372, - 601, 9957, 4374, - 601, 9957, 4376, - 601, 9957, 4378, - 601, 9957, 4380, - 601, 9957, 4382, - 601, 9957, 4384, - 601, 9957, 4386, - 601, 9957, 4388, - 601, 9957, 4390, - 601, 9957, 4392, - 601, 9957, 4394, - 601, 9957, 4396, - 601, 9957, 4398, - 601, 9957, 4408, - 601, 9957, 4410, - 601, 9957, 4412, - 601, 9957, 4414, - 601, 9957, 4416, - 601, 9957, 4474, - 601, 9957, 4476, - 601, 9957, 4494, - 601, 9957, 4496, - 601, 9957, 4500, - 601, 9957, 4572, - 601, 9957, 4574, - 601, 9957, 4576, - 601, 9957, 4606, - 601, 9957, 4608, - 601, 9957, 4610, - 601, 9957, 4612, - 601, 9957, 4620, - 601, 9957, 4658, - 601, 9957, 4660, - 601, 9957, 4662, - 601, 9957, 4664, - 601, 9957, 4666, - 601, 9957, 4668, - 601, 9957, 4670, - 601, 9957, 4672, - 601, 9957, 4674, - 601, 9957, 4676, - 601, 9957, 4678, - 601, 9957, 4680, - 601, 9957, 4682, - 601, 9957, 4684, - 601, 9957, 4686, - 601, 9957, 4688, - 601, 9957, 4710, - 601, 9957, 4712, - 601, 9957, 4714, - 601, 9957, 4718, - 601, 9957, 4748, - 601, 9957, 4750, - 601, 9957, 4752, - 601, 9957, 4754, - 601, 9957, 4756, - 601, 9957, 4758, - 601, 9957, 4760, - 601, 9957, 4762, - 601, 9957, 4764, - 601, 9957, 4766, - 601, 9957, 4768, - 601, 9957, 4770, - 601, 9957, 4772, - 601, 9957, 4774, - 601, 9957, 4776, - 601, 9957, 4778, - 601, 9957, 4780, - 601, 9957, 4782, - 601, 9957, 4784, - 601, 9957, 4786, - 601, 9957, 4788, - 601, 9957, 4790, - 601, 9957, 4792, - 601, 9957, 4794, - 601, 9957, 4796, - 601, 9957, 4798, - 601, 9957, 4800, - 601, 9957, 4802, - 601, 9957, 4804, - 601, 9957, 4806, - 601, 9957, 4808, - 601, 9957, 4810, - 601, 9957, 4812, - 601, 9957, 4814, - 601, 9957, 4822, - 601, 9957, 4826, - 601, 9957, 4828, - 601, 9957, 4830, - 601, 9957, 4832, - 601, 9957, 4834, - 601, 9957, 4842, - 601, 9957, 4844, - 601, 9957, 4846, - 601, 9957, 4848, - 601, 9957, 4850, - 601, 9957, 4852, - 601, 9957, 4858, - 601, 9957, 4860, - 601, 9957, 4862, - 601, 9957, 4864, - 601, 9957, 4866, - 601, 9957, 4868, - 601, 9957, 4870, - 601, 9957, 4872, - 601, 9957, 4874, - 601, 9957, 4876, - 601, 9957, 4878, - 601, 9957, 4880, - 601, 9957, 4882, - 601, 9957, 4884, - 601, 9957, 4886, - 601, 9957, 4906, - 601, 9957, 4908, - 601, 9957, 4910, - 601, 9957, 4912, - 601, 9957, 4914, - 601, 9957, 4916, - 601, 9957, 4918, - 601, 9957, 4920, - 601, 9957, 4922, - 601, 9957, 4924, - 601, 9957, 4926, - 601, 9957, 4928, - 601, 9957, 4930, - 601, 9957, 4932, - 601, 9957, 4934, - 601, 9957, 4936, - 601, 9957, 4942, - 601, 9957, 4944, - 601, 9957, 4946, - 601, 9957, 4960, - 601, 9957, 4962, - 601, 9957, 4966, - 601, 9957, 4968, - 601, 9957, 4972, - 601, 9957, 4974, - 601, 9957, 4976, - 601, 9957, 4978, - 601, 9957, 4980, - 601, 9957, 4982, - 601, 9957, 4984, - 601, 9957, 4988, - 601, 9957, 4990, - 601, 9957, 4992, - 601, 9957, 4994, - 601, 9957, 4996, - 601, 9957, 4998, - 601, 9957, 5000, - 601, 9957, 5002, - 601, 9957, 5004, - 601, 9957, 5006, - 601, 9957, 5008, - 601, 9957, 5010, - 601, 9957, 5012, - 601, 9957, 5014, - 601, 9957, 5016, - 601, 9957, 5018, - 601, 9957, 5020, - 601, 9957, 5022, - 601, 9957, 5078, - 601, 9957, 5080, - 601, 9957, 5104, - 601, 9957, 5106, - 601, 9957, 5108, - 601, 9957, 5118, - 601, 9957, 5138, - 601, 9957, 5140, - 601, 9957, 5142, - 601, 9957, 5148, - 601, 9957, 5150, - 601, 9957, 5152, - 601, 9957, 5154, - 601, 9957, 5166, - 601, 9957, 5220, - 601, 9957, 5224, - 601, 9957, 5226, - 601, 9957, 5228, - 601, 9957, 5230, - 601, 9957, 5232, - 601, 9957, 5234, - 601, 9957, 5236, - 601, 9957, 5238, - 601, 9957, 5240, - 601, 9957, 5242, - 601, 9957, 5244, - 601, 9957, 5246, - 601, 9957, 5248, - 601, 9957, 5250, - 601, 9957, 5252, - 601, 9957, 5258, - 601, 9957, 5260, - 601, 9957, 5262, - 601, 9957, 5268, - 601, 9957, 5318, - 601, 9957, 5320, - 601, 9957, 5322, - 601, 9957, 5330, - 601, 9957, 5332, - 601, 9957, 5334, - 601, 9957, 5356, - 601, 9957, 5358, - 601, 9957, 5360, - 601, 9957, 5366, - 601, 9957, 5368, - 601, 9957, 5370, - 601, 9957, 5372, - 601, 9957, 5374, - 601, 9957, 5384, - 601, 9957, 5386, - 601, 9957, 5388, - 601, 9957, 5390, - 601, 9957, 5394, - 601, 9957, 5396, - 601, 9957, 5430, - 601, 9957, 5432, - 601, 9957, 5434, - 601, 9957, 5438, - 601, 9957, 5440, - 601, 9957, 5442, - 601, 9957, 5444, - 601, 9957, 5446, - 601, 9957, 5448, - 601, 9957, 5450, - 601, 9957, 5452, - 601, 9957, 5454, - 601, 9957, 5456, - 601, 9957, 5458, - 601, 9957, 5460, - 601, 9957, 5462, - 601, 9957, 5464, - 601, 9957, 5466, - 601, 9957, 5468, - 601, 9957, 5490, - 601, 9957, 5492, - 601, 9957, 5498, - 601, 9957, 5506, - 601, 9957, 5576, - 601, 9957, 5578, - 601, 9957, 5646, - 601, 9957, 5648, - 601, 9957, 5650, - 601, 9957, 5654, - 601, 9957, 5708, - 601, 9957, 5710, - 601, 9957, 5712, - 601, 9957, 5716, - 601, 9957, 5718, - 601, 9957, 5752, - 601, 9957, 5754, - 601, 9957, 5758, - 601, 9957, 5760, - 601, 9957, 5762, - 601, 9957, 5764, - 601, 9957, 5774, - 601, 9957, 5824, - 601, 9957, 5826, - 601, 9957, 5828, - 601, 9957, 5856, - 601, 9957, 5858, - 601, 9957, 5860, - 601, 9957, 5862, - 601, 9957, 5870, - 601, 9957, 5884, - 601, 9957, 5888, - 601, 9957, 5890, - 601, 9957, 5894, - 601, 9957, 5896, - 601, 9957, 5898, - 601, 9957, 5900, - 601, 9957, 5902, - 601, 9957, 5904, - 601, 9957, 5906, - 601, 9957, 5908, - 601, 9957, 5910, - 601, 9957, 5912, - 601, 9957, 5914, - 601, 9957, 5918, - 601, 9957, 5920, - 601, 9957, 5922, - 601, 9957, 5924, - 601, 9957, 5928, - 601, 9957, 5930, - 601, 9957, 5934, - 601, 9957, 5936, - 601, 9957, 5938, - 601, 9957, 5940, - 601, 9957, 5944, - 601, 9957, 5946, - 601, 9957, 5948, - 601, 9957, 5952, - 601, 9957, 5954, - 601, 9957, 5956, - 601, 9957, 5958, - 601, 9957, 5960, - 601, 9957, 5962, - 601, 9957, 5964, - 601, 9957, 5966, - 601, 9957, 5968, - 601, 9957, 5970, - 601, 9957, 5972, - 601, 9957, 5974, - 601, 9957, 5976, - 601, 9957, 5978, - 601, 9957, 5980, - 601, 9957, 6082, - 601, 9957, 6084, - 601, 9957, 6086, - 601, 9957, 6088, - 601, 9957, 6090, - 601, 9957, 6092, - 601, 9957, 6186, - 601, 9957, 6188, - 601, 9957, 6190, - 601, 9957, 6192, - 601, 9957, 6194, - 601, 9957, 6262, - 601, 9957, 6264, - 601, 9957, 6266, - 601, 9957, 6268, - 601, 9957, 6270, - 601, 9957, 6420, - 601, 9957, 6422, - 601, 9957, 6424, - 601, 9957, 6426, - 601, 9957, 6428, - 601, 9957, 6430, - 601, 9957, 6496, - 601, 9957, 6498, - 601, 9957, 6500, - 601, 9957, 6502, - 601, 9957, 6504, - 601, 9957, 6506, - 601, 9957, 6508, - 601, 9957, 6510, - 601, 9957, 6512, - 601, 9957, 6514, - 601, 9957, 6516, - 601, 9957, 6518, - 601, 9957, 6520, - 601, 9957, 6522, - 601, 9957, 6524, - 601, 9957, 6526, - 601, 9957, 6542, - 601, 9957, 6544, - 601, 9957, 6546, - 601, 9957, 6548, - 601, 9957, 6550, - 601, 9957, 6552, - 601, 9957, 6576, - 601, 9957, 6578, - 601, 9957, 6580, - 601, 9957, 6582, - 601, 9957, 6584, - 601, 9957, 6586, - 601, 9957, 6722, - 601, 9957, 6724, - 601, 9957, 6726, - 601, 9957, 6728, - 601, 9957, 6778, - 601, 9957, 6780, - 601, 9957, 6782, - 601, 9957, 6784, - 601, 9957, 6786, - 601, 9957, 6788, - 601, 9957, 6792, - 601, 9957, 6794, - 601, 9957, 6798, - 601, 9957, 6800, - 601, 9957, 6808, - 601, 9957, 6810, - 601, 9957, 6812, - 601, 9957, 6814, - 601, 9957, 6816, - 601, 9957, 6818, - 601, 9957, 6836, - 601, 9957, 6838, - 601, 9957, 6844, - 601, 9957, 6846, - 601, 9957, 6848, - 601, 9957, 6850, - 601, 9957, 6852, - 601, 9957, 6854, - 601, 9957, 6856, - 601, 9957, 6858, - 601, 9957, 6860, - 601, 9957, 6862, - 601, 9957, 7010, - 601, 9957, 7012, - 601, 9957, 7014, - 601, 9957, 7104, - 601, 9957, 7106, - 601, 9957, 7108, - 601, 9957, 7116, - 601, 9957, 7170, - 601, 9957, 7172, - 601, 9957, 7174, - 601, 9957, 7412, - 601, 9957, 7414, - 601, 9957, 7416, - 601, 9957, 7418, - 601, 9957, 7430, - 601, 9957, 7432, - 601, 9957, 7434, - 601, 9957, 7436, - 601, 9957, 7438, - 641, 8186, - 655, 6331, 520, - 655, 12340, - 657, 5741, 960, - 665, 10965, 8259, 547, 5351, 1426, - 665, 10965, 8259, 547, 5519, 1426, - 665, 10965, 8259, 547, 5519, 8988, - 665, 10965, 8259, 547, 5519, 10158, - 665, 10965, 8259, 547, 6149, 7256, - 665, 10965, 8259, 915, 7186, - 665, 10965, 8259, 915, 7256, - 665, 10965, 8259, 915, 10158, - 665, 10965, 8259, 1427, 10032, - 665, 10965, 8259, 1427, 10158, - 665, 10965, 8259, 2236, - 665, 10965, 8259, 3863, 5351, 7186, - 665, 10965, 8259, 3863, 5519, 1426, - 665, 10965, 8259, 3863, 5519, 10032, - 665, 10965, 8259, 3863, 6149, 7256, - 665, 10965, 8259, 4338, - 665, 10965, 8259, 4339, 10032, - 665, 10965, 8259, 4555, 5351, 7186, - 665, 10965, 8259, 5146, - 665, 10965, 8259, 5147, 547, 6148, - 665, 10965, 8259, 5147, 914, - 665, 10965, 8259, 5147, 1426, - 665, 10965, 8259, 5147, 1931, 6330, - 665, 10965, 8259, 5147, 3863, 6148, - 665, 10965, 8259, 5147, 6212, - 665, 10965, 8259, 5147, 6276, - 665, 10965, 8259, 5147, 6330, - 665, 10965, 8259, 5147, 7132, - 665, 10965, 8259, 5147, 7582, - 665, 10965, 8259, 5147, 7646, - 665, 10965, 8259, 5147, 8616, - 665, 10965, 8259, 5147, 9223, 6046, - 665, 10965, 8259, 5147, 9852, - 665, 10965, 8259, 5147, 10094, - 665, 10965, 8259, 5147, 10313, 6046, - 665, 10965, 8259, 5147, 10449, 6046, - 665, 10965, 8259, 5147, 10450, - 665, 10965, 8259, 5147, 11083, 6046, - 665, 10965, 8259, 5147, 11778, - 665, 10965, 8259, 5473, 10158, - 665, 10965, 8259, 6018, - 665, 10965, 8259, 6019, 10032, - 665, 10965, 8259, 6219, 696, - 665, 10965, 8259, 6277, 7186, - 665, 10965, 8259, 6277, 10032, - 665, 10965, 8259, 6874, - 665, 10965, 8259, 6875, 10032, - 665, 10965, 8259, 6971, 5146, - 665, 10965, 8259, 6971, 10032, - 665, 10965, 8259, 7133, 696, - 665, 10965, 8259, 7187, 7256, - 665, 10965, 8259, 7257, 10158, - 665, 10965, 8259, 7420, - 665, 10965, 8259, 7583, 1426, - 665, 10965, 8259, 7583, 5472, - 665, 10965, 8259, 7583, 7186, - 665, 10965, 8259, 7583, 10032, - 665, 10965, 8259, 7583, 10094, - 665, 10965, 8259, 7583, 10158, - 665, 10965, 8259, 7826, - 665, 10965, 8259, 8233, 5146, - 665, 10965, 8259, 8617, 10032, - 665, 10965, 8259, 8723, 10032, - 665, 10965, 8259, 9223, 5700, - 665, 10965, 8259, 10095, 696, - 665, 10965, 8259, 10313, 5700, - 665, 10965, 8259, 10449, 5700, - 665, 10965, 8259, 10563, 10032, - 665, 10965, 8259, 11083, 5700, - 665, 10965, 8259, 11779, 10158, - 666, - 725, 8258, - 737, 9061, 9134, - 737, 9134, - 753, 9551, 547, 6489, 657, 3863, 10979, 6670, - 753, 9551, 547, 6489, 657, 4555, 3863, 6670, - 753, 9551, 547, 6489, 657, 4555, 6670, - 753, 9551, 547, 6489, 657, 6997, 3863, 6670, - 753, 9551, 547, 6489, 657, 6997, 6670, - 753, 9551, 547, 6489, 657, 10979, 6670, - 753, 9551, 547, 6671, 657, 3863, 10979, 6488, - 753, 9551, 547, 6671, 657, 4555, 3863, 6488, - 753, 9551, 547, 6671, 657, 4555, 6488, - 753, 9551, 547, 6671, 657, 6997, 3863, 6488, - 753, 9551, 547, 6671, 657, 6997, 6488, - 753, 9551, 547, 6671, 657, 10979, 6488, - 753, 9551, 547, 7673, 657, 4555, 8206, - 753, 9551, 547, 7673, 657, 6997, 8206, - 753, 9551, 547, 7673, 657, 10979, 8206, - 753, 9551, 547, 8207, 657, 4555, 7672, - 753, 9551, 547, 8207, 657, 6997, 7672, - 753, 9551, 547, 8207, 657, 10979, 7672, - 753, 9551, 3863, 6489, 657, 547, 10979, 6670, - 753, 9551, 3863, 6489, 657, 4555, 547, 6670, - 753, 9551, 3863, 6489, 657, 4555, 6670, - 753, 9551, 3863, 6489, 657, 6997, 547, 6670, - 753, 9551, 3863, 6489, 657, 6997, 6670, - 753, 9551, 3863, 6489, 657, 10979, 6670, - 753, 9551, 3863, 6671, 657, 547, 10979, 6488, - 753, 9551, 3863, 6671, 657, 4555, 547, 6488, - 753, 9551, 3863, 6671, 657, 4555, 6488, - 753, 9551, 3863, 6671, 657, 6997, 547, 6488, - 753, 9551, 3863, 6671, 657, 6997, 6488, - 753, 9551, 3863, 6671, 657, 10979, 6488, - 753, 9551, 3863, 7673, 657, 4555, 8206, - 753, 9551, 3863, 7673, 657, 6997, 8206, - 753, 9551, 3863, 7673, 657, 10979, 8206, - 753, 9551, 3863, 8207, 657, 4555, 7672, - 753, 9551, 3863, 8207, 657, 6997, 7672, - 753, 9551, 3863, 8207, 657, 10979, 7672, - 753, 9551, 4555, 547, 6489, 657, 6997, 3863, 6670, - 753, 9551, 4555, 3863, 6489, 657, 6997, 547, 6670, - 753, 9551, 4555, 6489, 657, 6997, 547, 6670, - 753, 9551, 4555, 6489, 657, 6997, 3863, 6670, - 753, 9551, 4555, 6489, 657, 6997, 10043, 6670, - 753, 9551, 4555, 6671, 657, 6997, 547, 6488, - 753, 9551, 4555, 6671, 657, 6997, 3863, 6488, - 753, 9551, 4555, 6671, 657, 6997, 10043, 6488, - 753, 9551, 6489, 546, - 753, 9551, 6489, 547, 657, 4554, - 753, 9551, 6489, 547, 657, 6671, 3862, - 753, 9551, 6489, 547, 657, 6996, - 753, 9551, 6489, 547, 657, 10978, - 753, 9551, 6489, 3862, - 753, 9551, 6489, 3863, 657, 4554, - 753, 9551, 6489, 3863, 657, 6996, - 753, 9551, 6489, 3863, 657, 10978, - 753, 9551, 6489, 4554, - 753, 9551, 6489, 4555, 657, 6671, 6996, - 753, 9551, 6489, 6996, - 753, 9551, 6489, 7673, 3759, 10042, - 753, 9551, 6489, 7673, 3759, 10978, - 753, 9551, 6489, 8327, 3759, 10042, - 753, 9551, 6489, 8327, 3759, 10978, - 753, 9551, 6489, 10042, - 753, 9551, 6489, 10043, 657, 4554, - 753, 9551, 6489, 10043, 657, 6996, - 753, 9551, 6489, 10043, 657, 10978, - 753, 9551, 6489, 10533, 3759, 10042, - 753, 9551, 6489, 10533, 3759, 10978, - 753, 9551, 6489, 10978, - 753, 9551, 6671, 546, - 753, 9551, 6671, 547, 657, 4554, - 753, 9551, 6671, 547, 657, 6489, 3862, - 753, 9551, 6671, 547, 657, 6996, - 753, 9551, 6671, 547, 657, 10978, - 753, 9551, 6671, 667, 547, 657, 4554, - 753, 9551, 6671, 667, 547, 657, 6996, - 753, 9551, 6671, 667, 3863, 657, 4554, - 753, 9551, 6671, 667, 3863, 657, 6996, - 753, 9551, 6671, 3862, - 753, 9551, 6671, 3863, 657, 4554, - 753, 9551, 6671, 3863, 657, 6996, - 753, 9551, 6671, 3863, 657, 10978, - 753, 9551, 6671, 4554, - 753, 9551, 6671, 4555, 657, 6489, 6996, - 753, 9551, 6671, 6996, - 753, 9551, 6671, 7673, 3759, 10042, - 753, 9551, 6671, 7673, 3759, 10978, - 753, 9551, 6671, 8327, 3759, 10042, - 753, 9551, 6671, 8327, 3759, 10978, - 753, 9551, 6671, 9409, 6224, - 753, 9551, 6671, 9409, 7313, 4555, 521, 6691, 6996, - 753, 9551, 6671, 9409, 7313, 6997, 521, 6691, 4554, - 753, 9551, 6671, 10042, - 753, 9551, 6671, 10043, 657, 4554, - 753, 9551, 6671, 10043, 657, 6996, - 753, 9551, 6671, 10043, 657, 10978, - 753, 9551, 6671, 10533, 3759, 10042, - 753, 9551, 6671, 10533, 3759, 10978, - 753, 9551, 6671, 10978, - 753, 9551, 6997, 547, 6489, 657, 4555, 3863, 6670, - 753, 9551, 6997, 3863, 6489, 657, 4555, 547, 6670, - 753, 9551, 6997, 6489, 657, 4555, 547, 6670, - 753, 9551, 6997, 6489, 657, 4555, 3863, 6670, - 753, 9551, 6997, 6489, 657, 4555, 10043, 6670, - 753, 9551, 6997, 6671, 657, 4555, 547, 6488, - 753, 9551, 6997, 6671, 657, 4555, 3863, 6488, - 753, 9551, 6997, 6671, 657, 4555, 10043, 6488, - 753, 9551, 7673, 547, 657, 4554, - 753, 9551, 7673, 547, 657, 6996, - 753, 9551, 7673, 547, 657, 10978, - 753, 9551, 7673, 3863, 657, 4554, - 753, 9551, 7673, 3863, 657, 6996, - 753, 9551, 7673, 3863, 657, 10978, - 753, 9551, 7673, 10042, - 753, 9551, 7673, 10043, 657, 4554, - 753, 9551, 7673, 10043, 657, 6996, - 753, 9551, 7673, 10043, 657, 10978, - 753, 9551, 7673, 10978, - 753, 9551, 10043, 6489, 657, 4555, 6670, - 753, 9551, 10043, 6489, 657, 6997, 6670, - 753, 9551, 10043, 6489, 657, 10979, 6670, - 753, 9551, 10043, 6671, 657, 4555, 6488, - 753, 9551, 10043, 6671, 657, 6997, 6488, - 753, 9551, 10043, 6671, 657, 10979, 6488, - 753, 9551, 10043, 7673, 657, 4555, 8206, - 753, 9551, 10043, 7673, 657, 6997, 8206, - 753, 9551, 10043, 7673, 657, 10979, 8206, - 753, 9551, 10043, 8207, 657, 4555, 7672, - 753, 9551, 10043, 8207, 657, 6997, 7672, - 753, 9551, 10043, 8207, 657, 10979, 7672, - 815, 2236, - 835, 8245, 26, - 835, 8245, 38, - 835, 8245, 232, - 835, 8245, 506, - 835, 8245, 572, - 835, 8245, 586, - 835, 8245, 770, - 835, 8245, 1342, - 835, 8245, 1344, - 835, 8245, 1346, - 835, 8245, 1348, - 835, 8245, 4268, - 835, 8245, 4310, - 835, 8245, 4312, - 835, 8245, 4314, - 835, 8245, 5514, - 835, 9045, 752, - 835, 9045, 844, - 835, 9045, 954, - 835, 9045, 1007, 2004, - 835, 9045, 1007, 2584, - 835, 9045, 1007, 7244, - 835, 9045, 1042, - 835, 9045, 1046, - 835, 9045, 1869, 2004, - 835, 9045, 1869, 2584, - 835, 9045, 1869, 3956, - 835, 9045, 1869, 7244, - 835, 9045, 2000, - 835, 9045, 2031, 2004, - 835, 9045, 2031, 2584, - 835, 9045, 2214, - 835, 9045, 2216, - 835, 9045, 2402, - 835, 9045, 3572, - 835, 9045, 3583, 401, 6206, - 835, 9045, 3584, - 835, 9045, 3708, - 835, 9045, 3936, - 835, 9045, 3950, - 835, 9045, 4120, - 835, 9045, 4128, - 835, 9045, 4262, - 835, 9045, 4352, - 835, 9045, 4543, 2004, - 835, 9045, 4543, 2584, - 835, 9045, 4543, 3956, - 835, 9045, 4543, 7244, - 835, 9045, 4599, 2004, - 835, 9045, 4599, 2584, - 835, 9045, 4640, - 835, 9045, 4650, - 835, 9045, 4702, - 835, 9045, 5174, - 835, 9045, 5296, - 835, 9045, 5406, - 835, 9045, 5723, 2004, - 835, 9045, 5723, 2584, - 835, 9045, 5733, 2004, - 835, 9045, 5733, 2584, - 835, 9045, 6131, 2004, - 835, 9045, 6131, 2584, - 835, 9045, 6180, - 835, 9045, 6202, - 835, 9045, 6272, - 835, 9045, 6438, - 835, 9045, 6459, 2004, - 835, 9045, 6459, 2584, - 835, 9045, 6459, 7244, - 835, 9045, 6487, 2004, - 835, 9045, 6487, 2584, - 835, 9045, 6627, 2004, - 835, 9045, 6627, 2584, - 835, 9045, 6751, 2004, - 835, 9045, 6751, 2584, - 835, 9045, 7078, - 835, 9045, 7143, 2004, - 835, 9045, 7143, 2584, - 835, 9045, 7150, - 835, 9045, 7153, 2004, - 835, 9045, 7153, 2584, - 835, 9045, 7212, - 835, 9045, 7252, - 835, 9045, 7349, 2004, - 835, 9045, 7349, 2584, - 835, 9045, 7508, - 835, 9045, 7992, - 835, 9045, 7994, - 835, 9045, 8078, - 835, 9045, 8134, - 835, 9045, 8173, 2004, - 835, 9045, 8173, 2584, - 835, 9045, 8173, 7244, - 835, 9045, 8223, 2004, - 835, 9045, 8223, 2584, - 835, 9045, 8306, - 835, 9045, 8346, - 835, 9045, 8562, - 835, 9045, 9358, - 835, 9045, 10820, - 835, 9045, 11117, 4119, 5605, 7284, - 835, 9045, 11117, 4262, - 835, 9045, 11117, 5722, - 835, 9045, 11117, 7352, - 835, 9045, 11117, 8418, - 835, 9045, 11725, 1006, - 835, 9045, 11725, 1078, - 835, 9045, 11725, 2324, - 835, 9045, 11725, 3566, - 835, 9045, 11725, 3622, - 835, 9045, 11725, 3914, - 835, 9045, 11725, 3938, - 835, 9045, 11725, 3960, - 835, 9045, 11725, 3986, - 835, 9045, 11725, 4072, - 835, 9045, 11725, 4550, - 835, 9045, 11725, 4598, - 835, 9045, 11725, 5282, - 835, 9045, 11725, 5406, - 835, 9045, 11725, 5736, - 835, 9045, 11725, 6532, - 835, 9045, 11725, 7084, - 835, 9045, 11725, 7274, - 835, 9045, 11725, 7674, - 835, 9045, 11725, 8220, - 835, 9045, 11725, 8275, 8876, - 835, 9045, 11725, 8346, - 835, 9045, 11801, 3914, - 835, 9045, 11801, 7274, - 835, 9045, 11801, 7674, - 835, 9045, 11801, 8346, - 927, 7698, - 927, 7700, - 927, 7702, - 927, 7704, - 927, 7706, - 927, 7708, - 961, 5094, - 961, 5990, - 961, 6738, - 961, 9772, - 1019, 401, 6950, - 1085, 654, - 1317, 9144, - 1317, 9322, - 1515, 5400, - 1611, 231, 358, - 1611, 231, 386, - 1611, 303, 312, - 1611, 5603, 1727, 158, - 1611, 5603, 1727, 518, - 1611, 5603, 1727, 2492, - 1611, 5603, 1727, 7566, - 1611, 6287, 2004, - 1611, 6287, 2358, - 1611, 6287, 2584, - 1611, 6287, 3942, - 1611, 6287, 3956, - 1611, 6287, 4854, - 1611, 6287, 5878, - 1611, 6287, 6312, - 1611, 6287, 7060, - 1611, 6287, 7244, - 1611, 7341, 5401, 0, - 1611, 7341, 5401, 8, - 1611, 7341, 5401, 16, - 1611, 7341, 5401, 28, - 1611, 7341, 5401, 40, - 1611, 7341, 5401, 48, - 1611, 7341, 5401, 58, - 1611, 7341, 5401, 70, - 1611, 7341, 5401, 76, - 1611, 7341, 5401, 92, - 1611, 7341, 5401, 156, - 1611, 7341, 5401, 248, - 1611, 7341, 5401, 550, - 1611, 7341, 5401, 612, - 1611, 7341, 5401, 1727, 1468, - 1611, 7341, 5401, 1727, 1536, - 1611, 7919, 28, - 1611, 7919, 100, - 1611, 7919, 122, - 1611, 7919, 140, - 1611, 7919, 195, 2454, - 1611, 7919, 195, 5488, - 1611, 7919, 231, 2454, - 1611, 7919, 231, 5488, - 1611, 7919, 302, - 1611, 7919, 329, 4582, - 1611, 7919, 329, 4602, - 1611, 7919, 358, - 1611, 7919, 386, - 1611, 7919, 444, - 1611, 7919, 497, 2454, - 1611, 7919, 497, 5488, - 1611, 7919, 520, - 1611, 7919, 576, - 1611, 7919, 604, - 1611, 7919, 1499, 2454, - 1611, 7919, 1499, 5488, - 1611, 7919, 1882, - 1611, 7919, 1970, - 1611, 7919, 2049, 2454, - 1611, 7919, 2049, 5488, - 1611, 7919, 2493, 2454, - 1611, 7919, 2493, 5488, - 1611, 9560, - 1611, 10482, - 1611, 10565, 5401, 328, - 1611, 10565, 5401, 1970, - 1611, 11727, 4630, - 1632, - 1677, 4580, - 1677, 7673, 6947, 10535, 4630, - 1677, 9308, - 1871, 2451, 1685, 5401, 1604, - 1871, 2451, 1685, 5401, 4534, - 1871, 2451, 1685, 5603, 7950, - 1871, 2451, 1685, 5603, 7952, - 1871, 2451, 1685, 6287, 2004, - 1871, 2451, 1685, 6287, 2358, - 1871, 2451, 1685, 6287, 2584, - 1871, 2451, 1685, 6287, 3942, - 1871, 2451, 1685, 6287, 3956, - 1871, 2451, 1685, 6287, 4854, - 1871, 2451, 1685, 6287, 5878, - 1871, 2451, 1685, 6287, 6312, - 1871, 2451, 1685, 6287, 7060, - 1871, 2451, 1685, 6287, 7244, - 1871, 2451, 1685, 7341, 5401, 8, - 1871, 2451, 1685, 7341, 5401, 28, - 1871, 2451, 1685, 7341, 5401, 40, - 1871, 2451, 1685, 7341, 5401, 58, - 1871, 2451, 1685, 7341, 5401, 66, - 1871, 2451, 1685, 7341, 5401, 92, - 1871, 2451, 1685, 7341, 5401, 248, - 1871, 2451, 1685, 7341, 5401, 272, - 1871, 2451, 1685, 7341, 5401, 396, - 1871, 2451, 1685, 7341, 5401, 428, - 1871, 2451, 1685, 7341, 5401, 536, - 1871, 2451, 1685, 7341, 5401, 550, - 1871, 2451, 1685, 7341, 5401, 552, - 1871, 2451, 1685, 7341, 5401, 636, - 1871, 2451, 1685, 7341, 5401, 1992, - 1871, 2451, 1685, 7341, 5401, 2612, - 1871, 2451, 1685, 7341, 5401, 7341, 10576, - 1871, 2451, 1685, 7919, 1677, 94, - 1871, 2451, 1685, 7919, 1677, 128, - 1871, 2451, 1685, 7919, 1677, 182, - 1871, 2451, 1685, 7919, 1677, 220, - 1871, 2451, 1685, 7919, 1677, 286, - 1871, 2451, 1685, 7919, 1677, 312, - 1871, 2451, 1685, 7919, 1677, 342, - 1871, 2451, 1685, 7919, 1677, 370, - 1871, 2451, 1685, 7919, 1677, 430, - 1871, 2451, 1685, 7919, 1677, 458, - 1871, 2451, 1685, 7919, 1677, 486, - 1871, 2451, 1685, 7919, 1677, 510, - 1871, 2451, 1685, 7919, 1677, 554, - 1871, 2451, 1685, 7919, 1677, 582, - 1871, 2451, 1685, 7919, 1677, 596, - 1871, 2451, 1685, 7919, 1677, 1572, - 1871, 2451, 1685, 7919, 1677, 1874, - 1871, 2451, 1685, 7919, 1677, 2042, - 1871, 2451, 1685, 7919, 1677, 2486, - 1871, 2451, 1685, 7919, 1677, 2540, - 1871, 2451, 1685, 7919, 1677, 2772, - 1871, 2451, 1685, 7919, 4149, 94, - 1871, 2451, 1685, 7919, 4149, 128, - 1871, 2451, 1685, 7919, 4149, 182, - 1871, 2451, 1685, 7919, 4149, 220, - 1871, 2451, 1685, 7919, 4149, 286, - 1871, 2451, 1685, 7919, 4149, 312, - 1871, 2451, 1685, 7919, 4149, 342, - 1871, 2451, 1685, 7919, 4149, 370, - 1871, 2451, 1685, 7919, 4149, 430, - 1871, 2451, 1685, 7919, 4149, 458, - 1871, 2451, 1685, 7919, 4149, 486, - 1871, 2451, 1685, 7919, 4149, 510, - 1871, 2451, 1685, 7919, 4149, 554, - 1871, 2451, 1685, 7919, 4149, 582, - 1871, 2451, 1685, 7919, 4149, 596, - 1871, 2451, 1685, 7919, 4149, 1572, - 1871, 2451, 1685, 7919, 4149, 1874, - 1871, 2451, 1685, 7919, 4149, 2042, - 1871, 2451, 1685, 7919, 4149, 2486, - 1871, 2451, 1685, 7919, 4149, 2540, - 1871, 2451, 1685, 7919, 4149, 2772, - 1871, 2451, 1685, 7919, 6375, 2, - 1871, 2451, 1685, 7919, 6375, 6, - 1871, 2451, 1685, 7919, 6375, 20, - 1871, 2451, 1685, 7919, 6375, 24, - 1871, 2451, 1685, 7919, 6375, 26, - 1871, 2451, 1685, 7919, 6375, 42, - 1871, 2451, 1685, 7919, 6375, 376, - 1871, 8193, 5400, - 1915, 1677, 5603, 10760, - 1915, 4149, 5603, 10760, - 1915, 6218, - 1915, 6287, 2004, - 1915, 6287, 2358, - 1915, 6287, 2584, - 1915, 6287, 3942, - 1915, 6287, 3956, - 1915, 6287, 4854, - 1915, 6287, 5878, - 1915, 6287, 6312, - 1915, 6287, 7060, - 1915, 6287, 7244, - 1915, 7919, 0, - 1915, 7919, 8, - 1915, 7919, 16, - 1915, 7919, 26, - 1915, 7919, 28, - 1915, 7919, 40, - 1915, 7919, 94, - 1915, 7919, 128, - 1915, 7919, 150, - 1915, 7919, 182, - 1915, 7919, 220, - 1915, 7919, 274, - 1915, 7919, 286, - 1915, 7919, 312, - 1915, 7919, 342, - 1915, 7919, 370, - 1915, 7919, 371, 8410, - 1915, 7919, 410, - 1915, 7919, 430, - 1915, 7919, 472, - 1915, 7919, 486, - 1915, 7919, 510, - 1915, 7919, 566, - 1915, 7919, 596, - 1915, 7919, 810, - 1915, 7919, 1136, - 1915, 7919, 1962, - 1915, 7919, 1963, 8410, - 1915, 7919, 2262, - 1915, 7919, 4403, 274, - 1915, 7919, 4403, 472, - 1915, 7919, 4403, 810, - 1915, 7919, 10802, - 1915, 8259, 411, 7628, - 1915, 8259, 10966, - 1915, 10125, 4599, 1677, 5602, - 1915, 10125, 4599, 4149, 5602, - 1915, 10125, 4599, 8143, 5602, - 1915, 10125, 4599, 10807, 5602, - 1915, 10125, 7103, 1677, 5602, - 1915, 10125, 7103, 4149, 5602, - 1915, 10125, 7103, 8143, 5602, - 1915, 10125, 7673, 961, 5990, - 1915, 10125, 11813, 4630, - 1915, 11002, - 1915, 11329, 4630, - 1928, - 1931, 1, 8249, 400, - 1931, 1, 9951, 400, - 1931, 79, 8717, 400, - 1931, 5400, - 1931, 5608, - 1931, 6173, 4630, - 1931, 6331, 520, - 1931, 7256, - 1931, 7455, 6331, 520, - 1931, 8027, 9945, 400, - 1931, 8027, 9945, 401, 415, 6331, 520, - 1931, 8231, 6567, 401, 415, 6331, 520, - 1931, 8231, 9777, 401, 415, 6331, 520, - 1931, 9801, 520, - 1931, 10393, 520, - 1931, 10450, - 1931, 10951, 520, - 1931, 11778, - 1931, 12343, 6331, 520, - 1995, 751, 2498, - 1995, 3553, 7554, - 1995, 3758, - 1995, 3952, - 1995, 4256, - 1995, 6168, - 1995, 7457, 401, 6172, - 1995, 7543, 3493, 12352, - 1995, 7673, 10094, - 1995, 9383, 8445, 8030, - 1995, 9667, 3952, - 1997, 5400, - 2001, 7843, 7919, 0, - 2001, 7843, 7919, 8, - 2001, 7843, 7919, 16, - 2001, 7843, 7919, 28, - 2001, 7843, 7919, 40, - 2001, 7843, 7919, 96, - 2001, 7843, 7919, 132, - 2001, 7843, 7919, 152, - 2001, 7843, 7919, 160, - 2001, 7843, 7919, 162, - 2001, 7843, 7919, 164, - 2001, 7843, 7919, 168, - 2001, 7843, 7919, 170, - 2001, 7843, 7919, 222, - 2001, 7843, 7919, 248, - 2001, 7843, 7919, 286, - 2001, 7843, 7919, 290, - 2001, 7843, 7919, 306, - 2001, 7843, 7919, 434, - 2001, 7843, 7919, 514, - 2001, 7843, 7919, 550, - 2001, 7843, 7919, 556, - 2001, 7843, 7919, 616, - 2001, 7843, 7919, 812, - 2001, 7843, 7919, 1016, - 2001, 7843, 7919, 1032, - 2001, 7843, 7919, 1034, - 2001, 7843, 7919, 1494, - 2001, 7843, 7919, 2044, - 2001, 7843, 7919, 2336, - 2001, 7843, 7919, 2488, - 2001, 7843, 8957, 2004, - 2001, 7843, 8957, 2478, - 2001, 7843, 8957, 3942, - 2001, 7843, 8957, 6370, - 2001, 9011, 5401, 0, - 2001, 9011, 5401, 16, - 2001, 9011, 5401, 40, - 2001, 9011, 5401, 94, - 2001, 9011, 5401, 108, - 2001, 9011, 5401, 128, - 2001, 9011, 5401, 134, - 2001, 9011, 5401, 142, - 2001, 9011, 5401, 182, - 2001, 9011, 5401, 200, - 2001, 9011, 5401, 214, - 2001, 9011, 5401, 220, - 2001, 9011, 5401, 274, - 2001, 9011, 5401, 278, - 2001, 9011, 5401, 286, - 2001, 9011, 5401, 306, - 2001, 9011, 5401, 312, - 2001, 9011, 5401, 342, - 2001, 9011, 5401, 352, - 2001, 9011, 5401, 362, - 2001, 9011, 5401, 370, - 2001, 9011, 5401, 390, - 2001, 9011, 5401, 430, - 2001, 9011, 5401, 472, - 2001, 9011, 5401, 482, - 2001, 9011, 5401, 486, - 2001, 9011, 5401, 510, - 2001, 9011, 5401, 526, - 2001, 9011, 5401, 554, - 2001, 9011, 5401, 558, - 2001, 9011, 5401, 582, - 2001, 9011, 5401, 596, - 2001, 9011, 5401, 614, - 2001, 9011, 5401, 2334, - 2001, 9011, 5401, 2384, - 2001, 9011, 5401, 2486, - 2001, 9011, 5401, 3486, - 2001, 9011, 5401, 8522, - 2001, 9011, 5401, 10144, - 2001, 9011, 5401, 10772, - 2001, 9011, 5401, 11238, - 2001, 9011, 5401, 11716, - 2001, 9011, 5401, 11718, - 2001, 9011, 5401, 12198, - 2001, 9011, 5747, 8634, - 2001, 9011, 8031, 2004, - 2001, 9011, 8031, 2478, - 2001, 9011, 8031, 2584, - 2001, 9011, 8031, 8352, - 2001, 9011, 8031, 8794, - 2005, 961, 7908, - 2039, 2479, 9995, 5400, - 2039, 5400, - 2039, 6737, 5400, - 2071, 11257, 10962, - 2331, 6738, - 2359, 9029, 6117, 5472, - 2359, 9815, 6117, 657, 7357, 9598, - 2402, - 2447, 1677, 4580, - 2447, 3965, 5478, - 2447, 4555, 6229, 8514, - 2447, 4555, 8231, 8514, - 2447, 4555, 11424, - 2447, 5095, 5400, - 2447, 6212, - 2447, 6218, - 2447, 6287, 2004, - 2447, 6287, 2358, - 2447, 6287, 2584, - 2447, 6287, 3942, - 2447, 6287, 3956, - 2447, 6287, 4854, - 2447, 6287, 5878, - 2447, 6287, 6312, - 2447, 6287, 7060, - 2447, 6287, 7244, - 2447, 6461, 7444, - 2447, 6659, 7143, 7919, 0, - 2447, 6659, 7143, 7919, 2, - 2447, 6659, 7143, 7919, 4, - 2447, 6659, 7143, 7919, 6, - 2447, 6659, 7143, 7919, 8, - 2447, 6659, 7143, 7919, 10, - 2447, 6659, 7143, 7919, 12, - 2447, 6659, 7143, 7919, 14, - 2447, 6659, 7143, 7919, 16, - 2447, 6659, 7143, 7919, 18, - 2447, 6659, 7143, 7919, 20, - 2447, 6659, 7143, 7919, 22, - 2447, 6659, 7143, 7919, 24, - 2447, 6659, 7143, 7919, 26, - 2447, 6659, 7143, 7919, 28, - 2447, 6659, 7143, 7919, 30, - 2447, 6659, 7143, 7919, 32, - 2447, 6659, 7143, 7919, 34, - 2447, 6659, 7143, 7919, 36, - 2447, 6659, 7143, 7919, 38, - 2447, 6659, 7143, 7919, 40, - 2447, 6659, 7143, 7919, 42, - 2447, 6659, 7143, 7919, 44, - 2447, 6659, 7143, 7919, 46, - 2447, 6659, 7143, 7919, 48, - 2447, 6659, 7143, 7919, 50, - 2447, 6659, 8527, 7919, 0, - 2447, 6659, 8527, 7919, 2, - 2447, 6659, 8527, 7919, 4, - 2447, 6659, 8527, 7919, 6, - 2447, 6659, 8527, 7919, 8, - 2447, 6659, 8527, 7919, 10, - 2447, 6659, 8527, 7919, 12, - 2447, 6659, 8527, 7919, 14, - 2447, 6659, 8527, 7919, 16, - 2447, 6659, 8527, 7919, 18, - 2447, 6659, 8527, 7919, 20, - 2447, 6659, 8527, 7919, 22, - 2447, 6659, 8527, 7919, 24, - 2447, 6659, 8527, 7919, 26, - 2447, 6659, 8527, 7919, 28, - 2447, 6659, 8527, 7919, 30, - 2447, 6659, 8527, 7919, 32, - 2447, 6659, 8527, 7919, 34, - 2447, 6659, 8527, 7919, 36, - 2447, 6659, 8527, 7919, 38, - 2447, 6659, 8527, 7919, 40, - 2447, 6659, 8527, 7919, 42, - 2447, 6659, 8527, 7919, 44, - 2447, 6659, 8527, 7919, 46, - 2447, 6659, 8527, 7919, 48, - 2447, 6659, 8527, 7919, 50, - 2447, 6997, 6229, 8514, - 2447, 6997, 8231, 8514, - 2447, 6997, 11424, - 2447, 7158, - 2447, 7256, - 2447, 7651, 5400, - 2447, 7687, 5400, - 2447, 8031, 5400, - 2447, 9009, 5400, - 2447, 9061, 9134, - 2447, 9134, - 2447, 9308, - 2447, 9853, 4630, - 2447, 10043, 4580, - 2447, 10074, - 2447, 10451, 5400, - 2447, 10535, 4630, - 2447, 10562, - 2447, 10760, - 2447, 10783, 7444, - 2447, 10785, 86, - 2447, 11329, 4630, - 2447, 11779, 5400, - 2447, 11784, - 2451, 315, 7919, 0, - 2451, 315, 7919, 8, - 2451, 315, 7919, 16, - 2451, 315, 7919, 28, - 2451, 315, 7919, 40, - 2451, 315, 7919, 70, - 2451, 315, 7919, 150, - 2451, 315, 7919, 154, - 2451, 315, 7919, 182, - 2451, 315, 7919, 220, - 2451, 315, 7919, 286, - 2451, 315, 7919, 312, - 2451, 315, 7919, 342, - 2451, 315, 7919, 370, - 2451, 315, 7919, 410, - 2451, 315, 7919, 430, - 2451, 315, 7919, 458, - 2451, 315, 7919, 486, - 2451, 315, 7919, 510, - 2451, 315, 7919, 536, - 2451, 315, 7919, 554, - 2451, 315, 7919, 582, - 2451, 315, 7919, 596, - 2451, 315, 7919, 674, - 2451, 315, 7919, 1492, - 2451, 315, 7919, 1874, - 2451, 315, 7919, 2042, - 2451, 315, 7919, 2486, - 2451, 315, 7919, 2540, - 2451, 315, 7919, 5614, - 2451, 315, 7919, 8312, - 2451, 315, 7919, 8314, - 2451, 315, 7919, 8316, - 2451, 315, 7919, 8318, - 2451, 315, 7919, 8320, - 2499, 5041, 9656, - 2533, 667, 10121, 6047, 5741, 6738, - 2533, 667, 12203, 6046, - 2533, 667, 12203, 6047, 5741, 5094, - 2533, 4119, 9660, - 2533, 4555, 3724, - 2533, 4555, 7600, - 2533, 6229, 8514, - 2533, 6997, 3724, - 2533, 6997, 7600, - 2533, 8231, 8514, - 2533, 10007, 7085, 8514, - 2533, 11424, - 2585, 961, 7908, - 2585, 961, 11442, - 2585, 7847, 9148, - 2585, 8887, 415, 9772, - 2585, 8887, 657, 9772, - 2585, 10091, 8463, 11190, - 2585, 11225, 7687, 7122, - 2585, 11797, 8887, 414, - 2585, 11797, 8887, 656, - 2735, 5400, - 2764, - 2847, 5400, - 2861, 5796, - 3033, 8258, - 3052, - 3071, 8258, - 3551, 8258, - 3611, 2618, - 3621, 400, - 3643, 5400, - 3645, 5400, - 3727, 5216, - 3755, 7064, - 3851, 1931, 6384, - 3851, 1931, 6952, - 3851, 1931, 7646, - 3851, 1931, 7647, 5741, 9871, 9753, 7132, - 3851, 1931, 8573, 85, 7974, - 3851, 1931, 8573, 85, 8027, 9944, - 3851, 1931, 8573, 85, 8027, 9945, 415, 6330, - 3851, 1931, 9032, - 3851, 1931, 9033, 415, 6330, - 3851, 1931, 9164, - 3851, 1931, 9165, 415, 6330, - 3855, 5400, - 3863, 3939, 5520, - 3863, 5518, - 3863, 5519, 5741, 7583, 6102, - 3863, 6997, 9409, 9560, - 3863, 10082, - 3895, 8265, 6224, - 3913, 5400, - 3943, 961, 11442, - 3957, 961, 4630, - 3957, 961, 11442, - 3957, 11219, 9308, - 3957, 12345, 9308, - 3957, 12431, 9308, - 3965, 5478, - 3965, 6122, - 3965, 6885, 4400, - 3970, - 3994, - 4001, 4630, - 4117, 7158, - 4131, 8258, - 4149, 9243, 5400, - 4400, - 4545, 9043, 4702, - 4555, 657, 6997, 5518, - 4555, 657, 6997, 7673, 10714, - 4555, 667, 10451, 8514, - 4555, 1677, 11035, 8514, - 4555, 2005, 7679, 6122, - 4555, 2005, 9043, 6122, - 4555, 3495, 547, 6997, 3495, 547, 8776, - 4555, 3495, 547, 6997, 3495, 3863, 8776, - 4555, 3495, 3863, 6997, 3495, 547, 8776, - 4555, 3495, 3863, 6997, 3495, 3863, 8776, - 4555, 3939, 5520, - 4555, 3943, 8713, 6122, - 4555, 4119, 6117, 7582, - 4555, 4119, 6122, - 4555, 5518, - 4555, 6021, 8514, - 4555, 6021, 8515, 5741, 960, - 4555, 6117, 10007, 7085, 8514, - 4555, 6117, 11005, 8514, - 4555, 6229, 8514, - 4555, 6229, 8515, 6691, 4256, - 4555, 6229, 8515, 7313, 4256, - 4555, 6229, 8515, 7981, 6928, - 4555, 6378, - 4555, 6885, 4400, - 4555, 6997, 5727, 6046, - 4555, 6997, 6046, - 4555, 6997, 6047, 5741, 7673, 10043, 8244, - 4555, 6997, 6047, 5741, 8244, - 4555, 6997, 6047, 5741, 10043, 8244, - 4555, 6997, 6047, 9199, 7143, 7582, - 4555, 6997, 6117, 6046, - 4555, 6997, 7357, 6046, - 4555, 6997, 7673, 6046, - 4555, 6997, 7673, 6047, 5741, 8244, - 4555, 6997, 7673, 6047, 5741, 10043, 8244, - 4555, 6997, 11413, 6046, - 4555, 7061, 8713, 6122, - 4555, 7245, 8713, 6122, - 4555, 7245, 9851, 6122, - 4555, 7357, 6229, 8514, - 4555, 7357, 7601, 8514, - 4555, 7357, 8231, 8514, - 4555, 7357, 10007, 7085, 8514, - 4555, 7357, 11005, 8514, - 4555, 7357, 11424, - 4555, 7601, 8514, - 4555, 7671, 12179, 8514, - 4555, 7673, 6021, 8514, - 4555, 7673, 8409, 6364, - 4555, 7673, 10535, 4630, - 4555, 8027, 7711, 11109, 9038, - 4555, 8127, 9769, 8514, - 4555, 8207, 10535, 4630, - 4555, 8231, 8514, - 4555, 8231, 8515, 5741, 5575, 257, 2533, 7600, - 4555, 8231, 8515, 5741, 5575, 257, 7539, 7600, - 4555, 8231, 8515, 5741, 6968, - 4555, 8231, 8515, 5741, 10032, - 4555, 8231, 8515, 6691, 7600, - 4555, 8231, 8515, 7313, 7600, - 4555, 8231, 8515, 10334, - 4555, 8409, 6364, - 4555, 8536, - 4555, 9744, - 4555, 9875, 689, 10148, - 4555, 10007, 7085, 8514, - 4555, 10011, 7525, 10043, 696, - 4555, 10043, 753, 4580, - 4555, 11109, 9038, - 4555, 11424, - 4555, 11425, 6691, 4256, - 4555, 11425, 7313, 4256, - 4555, 11425, 10334, - 4555, 12179, 8514, - 4555, 12327, 8514, - 4581, 10566, - 4581, 11369, 1931, 10401, 2489, 5096, - 4581, 11369, 5741, 11449, 5055, 7475, 5096, - 4581, 11369, 5741, 12159, 5055, 7475, 5096, - 4587, 5400, - 4599, 3759, 3963, 4555, 7975, 401, 7673, 10042, - 4599, 4555, 5518, - 4599, 4555, 6997, 6046, - 4599, 4555, 6997, 7673, 6046, - 4599, 6997, 5518, - 4599, 10449, 6046, - 4599, 10449, 6047, 3963, 696, - 4599, 10449, 7673, 6046, - 4599, 10449, 7673, 6047, 3963, 696, - 4599, 11083, 6046, - 4599, 11083, 6047, 3963, 696, - 4599, 11083, 7673, 6046, - 4599, 11083, 7673, 6047, 3963, 696, - 4599, 11083, 9907, 6046, - 4627, 657, 7717, 5400, - 4627, 5400, - 4627, 5741, 8245, 657, 4627, 657, 7717, 5400, - 4627, 5741, 8245, 5400, - 4635, 4630, - 4693, 5400, - 4696, - 4707, 10450, - 4707, 11778, - 4740, - 4817, 5046, - 5039, 752, - 5039, 7569, 6117, 5472, - 5039, 7569, 6224, - 5039, 7569, 9308, - 5039, 7569, 12431, 9308, - 5039, 8248, - 5039, 9950, - 5053, 11203, 4630, - 5061, 5400, - 5095, 5400, - 5095, 5401, 257, 4555, 4119, 7582, - 5095, 5401, 257, 6997, 4119, 7582, - 5095, 5401, 257, 10010, - 5095, 5401, 5741, 961, 6102, - 5095, 5401, 5741, 6117, 10010, - 5095, 5401, 5741, 7143, 7583, 5990, - 5095, 5401, 5741, 7257, 5990, - 5095, 5401, 5741, 7257, 6102, - 5095, 5401, 5741, 10599, 2584, - 5095, 5401, 5741, 10783, 7445, 5990, - 5095, 5401, 5991, 7687, 5400, - 5195, 5400, - 5201, 257, 6331, 520, - 5201, 5990, - 5201, 6331, 520, - 5201, 9772, - 5411, 5726, - 5423, 7824, - 5473, 401, 6258, - 5473, 657, 9374, - 5473, 7686, - 5473, 9772, - 5529, 6298, - 5549, 6287, 2004, - 5549, 6287, 2358, - 5549, 6287, 2584, - 5549, 6287, 3942, - 5549, 6287, 3956, - 5549, 6287, 4854, - 5549, 6287, 5878, - 5549, 6287, 6312, - 5549, 6287, 7060, - 5549, 6287, 7244, - 5549, 9381, 8259, 3488, - 5549, 10117, 29, 658, - 5549, 10117, 101, 7502, - 5549, 10117, 141, 912, - 5549, 10117, 141, 6166, - 5549, 10117, 195, 182, - 5549, 10117, 195, 1052, - 5549, 10117, 231, 1274, - 5549, 10117, 231, 8024, - 5549, 10117, 303, 1462, - 5549, 10117, 329, 4582, - 5549, 10117, 329, 6184, - 5549, 10117, 332, - 5549, 10117, 359, 342, - 5549, 10117, 387, 390, - 5549, 10117, 387, 1862, - 5549, 10117, 445, 2064, - 5549, 10117, 479, 2272, - 5549, 10117, 482, - 5549, 10117, 497, 496, - 5549, 10117, 497, 2396, - 5549, 10117, 497, 5264, - 5549, 10117, 497, 5280, - 5549, 10117, 521, 2458, - 5549, 10117, 521, 6902, - 5549, 10117, 577, 5720, - 5549, 10117, 605, 2814, - 5549, 10117, 605, 5830, - 5549, 10117, 817, 3650, - 5549, 10117, 817, 3676, - 5549, 10117, 817, 6170, - 5549, 10117, 817, 6178, - 5549, 10117, 1499, 4456, - 5549, 10117, 1499, 4468, - 5549, 10117, 1499, 6620, - 5549, 10117, 1499, 6622, - 5549, 10117, 1499, 9046, - 5549, 10117, 1727, 158, - 5549, 10117, 1727, 2492, - 5549, 10117, 1727, 2538, - 5549, 10117, 1727, 9348, - 5549, 10117, 1727, 9628, - 5549, 10117, 1883, 1884, - 5549, 10117, 2049, 5064, - 5549, 10117, 2049, 6924, - 5549, 10117, 2049, 9076, - 5549, 10117, 2493, 5552, - 5549, 10117, 2493, 7240, - 5549, 10117, 2493, 7246, - 5549, 10117, 2493, 8294, - 5549, 10117, 2493, 9020, - 5549, 10117, 2493, 11020, - 5549, 10117, 5287, 0, - 5549, 10117, 5287, 8, - 5549, 10117, 5287, 16, - 5549, 10117, 5287, 28, - 5549, 10117, 5287, 40, - 5549, 10117, 5287, 58, - 5549, 10117, 5287, 66, - 5549, 10117, 5287, 71, 8894, - 5549, 10117, 5287, 71, 9712, - 5549, 10117, 5287, 76, - 5549, 10117, 5287, 248, - 5549, 10117, 5287, 536, - 5549, 10117, 5287, 550, - 5549, 10117, 5287, 2610, - 5549, 10117, 7874, - 5549, 10117, 8742, - 5549, 10117, 9018, - 5549, 10117, 9714, - 5549, 10117, 9756, - 5549, 10117, 10050, - 5549, 10117, 10460, - 5549, 10117, 10500, - 5549, 10117, 10748, - 5549, 10117, 11384, - 5549, 10117, 11670, - 5567, 7158, - 5584, - 5608, - 5683, 8258, - 5705, 4707, 10450, - 5705, 4707, 11778, - 5727, 3758, - 5727, 6047, 9827, 9423, 6996, - 5729, 1677, 4580, - 5729, 3758, - 5729, 4580, - 5729, 9786, - 5733, 8265, 6224, - 5747, 7848, - 5879, 7361, 7158, - 5879, 7361, 7848, - 5879, 7361, 9761, 7158, - 5879, 7361, 11024, - 5993, 6020, - 5993, 7444, - 6020, - 6021, 5741, 37, 7836, - 6021, 5741, 10032, - 6040, - 6047, 9827, 10313, 5559, 8589, 10448, - 6047, 9827, 10313, 5559, 8589, 11082, - 6047, 9827, 11083, 5559, 8589, 9222, - 6047, 9827, 11083, 5559, 8589, 10312, - 6117, 1890, - 6117, 2403, 5741, 5178, - 6117, 3717, 5484, - 6117, 3944, - 6117, 3957, 9029, 5472, - 6117, 4555, 9827, 6570, - 6117, 5472, - 6117, 6175, 4478, - 6117, 6175, 5056, - 6117, 6175, 5214, - 6117, 6175, 6966, - 6117, 6175, 7530, - 6117, 6175, 7884, - 6117, 6487, 5484, - 6117, 6691, 4555, 10010, - 6117, 6691, 6997, 10010, - 6117, 6997, 9827, 6570, - 6117, 7099, 6928, - 6117, 7143, 8230, - 6117, 7161, 5484, - 6117, 7313, 4555, 10010, - 6117, 7313, 6997, 10010, - 6117, 7540, - 6117, 7569, 7357, 5472, - 6117, 7582, - 6117, 7583, 5741, 2585, 7357, 3860, - 6117, 7583, 5741, 3863, 6046, - 6117, 7583, 5741, 7357, 961, 6996, - 6117, 7971, 7143, 8230, - 6117, 7971, 8230, - 6117, 8230, - 6117, 8616, - 6117, 8617, 5484, - 6117, 8617, 5741, 3863, 6046, - 6117, 8617, 6739, 7357, 46, - 6117, 8788, - 6117, 8888, - 6117, 9127, 3920, - 6117, 9598, - 6117, 9882, - 6117, 10043, 10542, - 6117, 10388, - 6117, 10449, 7556, - 6117, 10542, - 6117, 10690, - 6117, 10723, 10545, 8258, - 6117, 11083, 6046, - 6117, 11083, 7556, - 6117, 11083, 10082, - 6117, 11691, 7143, 10010, - 6117, 11691, 10010, - 6117, 12231, 7143, 10010, - 6117, 12231, 10010, - 6117, 12265, 7143, 10010, - 6117, 12265, 9030, - 6117, 12265, 10010, - 6117, 12282, - 6117, 12365, 7143, 10010, - 6117, 12365, 9030, - 6117, 12365, 10010, - 6121, 8258, - 6128, - 6141, 7341, 5401, 16, - 6141, 7341, 5401, 40, - 6141, 7919, 0, - 6141, 7919, 16, - 6141, 7919, 40, - 6141, 7919, 94, - 6141, 7919, 128, - 6141, 7919, 200, - 6141, 7919, 220, - 6141, 7919, 286, - 6141, 7919, 312, - 6141, 7919, 342, - 6141, 7919, 370, - 6141, 7919, 430, - 6141, 7919, 472, - 6141, 7919, 486, - 6141, 7919, 510, - 6141, 7919, 566, - 6141, 7919, 596, - 6141, 7919, 1874, - 6148, - 6149, 10413, 6938, - 6152, - 6173, 4630, - 6199, 8169, 8258, - 6205, 546, - 6208, - 6212, - 6213, 5400, - 6213, 7686, - 6216, - 6218, - 6225, 401, 9708, - 6225, 401, 10420, - 6229, 8515, 10334, - 6229, 8887, 414, - 6229, 8887, 656, - 6245, 8258, - 6277, 6331, 520, - 6287, 2004, - 6287, 2005, 3965, 5478, - 6287, 2358, - 6287, 2359, 3965, 5478, - 6287, 2584, - 6287, 2585, 3965, 5478, - 6287, 3942, - 6287, 3943, 3965, 5478, - 6287, 3956, - 6287, 3957, 3965, 5478, - 6287, 4854, - 6287, 4855, 3965, 5478, - 6287, 5878, - 6287, 6312, - 6287, 6313, 3965, 5478, - 6287, 7060, - 6287, 7061, 3965, 5478, - 6287, 7244, - 6287, 7245, 3965, 5478, - 6293, 4630, - 6306, - 6307, 7790, - 6313, 8225, 9308, - 6313, 9029, 6117, 5472, - 6313, 9029, 9819, 5472, - 6313, 9029, 11451, 6117, 5472, - 6313, 9815, 9783, 6117, 9598, - 6313, 12431, 10529, 9308, - 6315, 8258, - 6321, 2330, - 6321, 2331, 5741, 4555, 6047, 5990, - 6321, 2331, 5741, 6997, 6047, 5990, - 6321, 2331, 5741, 7143, 7583, 5990, - 6321, 2331, 5741, 8988, - 6325, 8258, - 6331, 521, 107, 10804, - 6331, 521, 415, 9836, - 6331, 521, 415, 9946, - 6331, 521, 415, 10450, - 6331, 521, 415, 11778, - 6331, 657, 9801, 520, - 6335, 521, 2489, 4554, - 6335, 521, 2489, 6996, - 6351, 9366, - 6359, 8258, - 6377, 9043, 4702, - 6398, - 6443, 8258, - 6461, 7444, - 6465, 441, 8258, - 6465, 663, 8280, - 6465, 1463, 8258, - 6465, 2005, 4119, 5400, - 6465, 2005, 4119, 5401, 10073, 3954, - 6465, 2047, 8258, - 6465, 2237, 5741, 8245, 8258, - 6465, 2237, 8258, - 6465, 2585, 6865, 5400, - 6465, 2585, 8301, 5400, - 6465, 3557, 8258, - 6465, 3943, 6865, 5400, - 6465, 3957, 6865, 5400, - 6465, 5029, 5400, - 6465, 5042, - 6465, 5815, 5400, - 6465, 5879, 5400, - 6465, 6256, - 6465, 6257, 657, 5042, - 6465, 6257, 657, 7322, - 6465, 6257, 657, 11430, - 6465, 6599, 8258, - 6465, 6681, 5400, - 6465, 6691, 8957, 5400, - 6465, 6954, - 6465, 6955, 657, 5042, - 6465, 6955, 657, 7322, - 6465, 6955, 657, 11430, - 6465, 7143, 7671, 7939, 7121, 8258, - 6465, 7143, 7919, 362, - 6465, 7143, 7919, 390, - 6465, 7143, 7919, 440, - 6465, 7143, 7919, 588, - 6465, 7143, 7919, 814, - 6465, 7143, 7919, 1038, - 6465, 7143, 7919, 1039, 5741, 5042, - 6465, 7143, 7919, 1039, 5741, 5043, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6256, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 5043, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 7323, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 11430, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 11431, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6257, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6954, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 5043, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 7323, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 11430, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 11431, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 6955, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 7272, - 6465, 7143, 7919, 1039, 5741, 7322, - 6465, 7143, 7919, 1039, 5741, 7323, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 11430, - 6465, 7143, 7919, 1039, 5741, 11431, 657, 12334, - 6465, 7143, 7919, 1039, 5741, 12334, - 6465, 7143, 7919, 2046, - 6465, 7143, 7919, 2078, - 6465, 7143, 7919, 2236, - 6465, 7143, 7919, 2237, 5741, 6256, - 6465, 7143, 7919, 2237, 5741, 6954, - 6465, 7143, 7919, 2312, - 6465, 7143, 7919, 2340, - 6465, 7143, 7919, 2466, - 6465, 7143, 7919, 3556, - 6465, 7143, 7919, 4338, - 6465, 7143, 7919, 4339, 5741, 5042, - 6465, 7143, 7919, 4339, 5741, 6256, - 6465, 7143, 7919, 4339, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 4339, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 4339, 5741, 6257, 657, 11430, - 6465, 7143, 7919, 4339, 5741, 6954, - 6465, 7143, 7919, 4339, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 4339, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 4339, 5741, 6955, 657, 11430, - 6465, 7143, 7919, 4339, 5741, 7272, - 6465, 7143, 7919, 4339, 5741, 7322, - 6465, 7143, 7919, 4339, 5741, 7940, - 6465, 7143, 7919, 4339, 5741, 8400, - 6465, 7143, 7919, 4339, 5741, 10162, - 6465, 7143, 7919, 4339, 5741, 10163, 657, 5042, - 6465, 7143, 7919, 4339, 5741, 10163, 657, 7272, - 6465, 7143, 7919, 4339, 5741, 10163, 657, 7322, - 6465, 7143, 7919, 4339, 5741, 10163, 657, 11430, - 6465, 7143, 7919, 4339, 5741, 11430, - 6465, 7143, 7919, 5880, - 6465, 7143, 7919, 6018, - 6465, 7143, 7919, 6019, 5741, 5042, - 6465, 7143, 7919, 6019, 5741, 5043, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6256, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 5043, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 7323, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 11430, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 11431, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6257, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6954, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 5043, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 7323, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 11430, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 11431, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 6955, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 7272, - 6465, 7143, 7919, 6019, 5741, 7322, - 6465, 7143, 7919, 6019, 5741, 7323, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 7940, - 6465, 7143, 7919, 6019, 5741, 8400, - 6465, 7143, 7919, 6019, 5741, 11430, - 6465, 7143, 7919, 6019, 5741, 11431, 657, 12334, - 6465, 7143, 7919, 6019, 5741, 12334, - 6465, 7143, 7919, 6276, - 6465, 7143, 7919, 6375, 7120, - 6465, 7143, 7919, 6410, - 6465, 7143, 7919, 6598, - 6465, 7143, 7919, 6632, - 6465, 7143, 7919, 6650, - 6465, 7143, 7919, 6874, - 6465, 7143, 7919, 6875, 5741, 5042, - 6465, 7143, 7919, 6875, 5741, 5043, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6256, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 5043, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 7323, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 11430, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 11431, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6257, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6954, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 5043, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 7323, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 11430, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 11431, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 6955, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 7272, - 6465, 7143, 7919, 6875, 5741, 7322, - 6465, 7143, 7919, 6875, 5741, 7323, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 11430, - 6465, 7143, 7919, 6875, 5741, 11431, 657, 12334, - 6465, 7143, 7919, 6875, 5741, 12334, - 6465, 7143, 7919, 7036, - 6465, 7143, 7919, 7120, - 6465, 7143, 7919, 7232, - 6465, 7143, 7919, 8234, - 6465, 7143, 7919, 8477, 6632, - 6465, 7143, 7919, 8620, - 6465, 7143, 7919, 8722, - 6465, 7143, 7919, 8723, 5741, 5042, - 6465, 7143, 7919, 8723, 5741, 6256, - 6465, 7143, 7919, 8723, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 8723, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 8723, 5741, 6954, - 6465, 7143, 7919, 8723, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 8723, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 8723, 5741, 7272, - 6465, 7143, 7919, 8723, 5741, 7322, - 6465, 7143, 7919, 8972, - 6465, 7143, 7919, 8973, 5741, 5042, - 6465, 7143, 7919, 8973, 5741, 6256, - 6465, 7143, 7919, 8973, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 8973, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 8973, 5741, 6954, - 6465, 7143, 7919, 8973, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 8973, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 8973, 5741, 7272, - 6465, 7143, 7919, 8973, 5741, 7322, - 6465, 7143, 7919, 9220, - 6465, 7143, 7919, 9221, 5741, 5042, - 6465, 7143, 7919, 9221, 5741, 6256, - 6465, 7143, 7919, 9221, 5741, 6257, 657, 5042, - 6465, 7143, 7919, 9221, 5741, 6257, 657, 7322, - 6465, 7143, 7919, 9221, 5741, 6257, 657, 11430, - 6465, 7143, 7919, 9221, 5741, 6954, - 6465, 7143, 7919, 9221, 5741, 6955, 657, 5042, - 6465, 7143, 7919, 9221, 5741, 6955, 657, 7322, - 6465, 7143, 7919, 9221, 5741, 6955, 657, 11430, - 6465, 7143, 7919, 9221, 5741, 7272, - 6465, 7143, 7919, 9221, 5741, 7322, - 6465, 7143, 7919, 9221, 5741, 7940, - 6465, 7143, 7919, 9221, 5741, 8400, - 6465, 7143, 7919, 9221, 5741, 10162, - 6465, 7143, 7919, 9221, 5741, 10163, 657, 5042, - 6465, 7143, 7919, 9221, 5741, 10163, 657, 7272, - 6465, 7143, 7919, 9221, 5741, 10163, 657, 7322, - 6465, 7143, 7919, 9221, 5741, 10163, 657, 11430, - 6465, 7143, 7919, 9221, 5741, 11430, - 6465, 7143, 9871, 7671, 7939, 7121, 8258, - 6465, 7143, 9871, 7939, 7121, 8258, - 6465, 7233, 8258, - 6465, 7245, 6865, 5400, - 6465, 7245, 9851, 5400, - 6465, 7272, - 6465, 7322, - 6465, 7339, 9763, 9958, - 6465, 7339, 9763, 9960, - 6465, 7339, 9763, 9962, - 6465, 7339, 9763, 9964, - 6465, 7339, 9763, 9966, - 6465, 7339, 9763, 9968, - 6465, 7339, 9763, 9970, - 6465, 7339, 9763, 9972, - 6465, 7339, 9763, 9974, - 6465, 7339, 9763, 10606, - 6465, 7339, 9763, 10608, - 6465, 7339, 9763, 10610, - 6465, 7339, 9763, 10612, - 6465, 7339, 9763, 10614, - 6465, 7339, 9763, 10616, - 6465, 7339, 9763, 10618, - 6465, 7339, 9763, 10620, - 6465, 7339, 9763, 10622, - 6465, 7339, 9763, 10624, - 6465, 7339, 9763, 10626, - 6465, 7339, 9763, 10628, - 6465, 7339, 9763, 10630, - 6465, 7339, 9763, 10632, - 6465, 7339, 9763, 10634, - 6465, 7339, 9763, 10670, - 6465, 7339, 9763, 10672, - 6465, 7339, 9763, 10674, - 6465, 7339, 9763, 10676, - 6465, 7339, 9763, 10678, - 6465, 7477, 5400, - 6465, 7485, 5400, - 6465, 7789, 5400, - 6465, 7919, 2876, - 6465, 7919, 6632, - 6465, 7919, 7036, - 6465, 7919, 7143, 8527, 440, - 6465, 7919, 7143, 8527, 2078, - 6465, 7919, 7143, 8527, 2236, - 6465, 7919, 7143, 8527, 6410, - 6465, 7919, 7143, 8527, 6650, - 6465, 7919, 8234, - 6465, 7919, 8477, 6632, - 6465, 7919, 8620, - 6465, 7939, 7121, 8258, - 6465, 7939, 8723, 8258, - 6465, 8059, 5400, - 6465, 8269, 5400, - 6465, 8415, 5400, - 6465, 8527, 7233, 8258, - 6465, 8527, 7671, 7939, 7121, 8258, - 6465, 8527, 7919, 362, - 6465, 8527, 7919, 390, - 6465, 8527, 7919, 440, - 6465, 8527, 7919, 588, - 6465, 8527, 7919, 814, - 6465, 8527, 7919, 1038, - 6465, 8527, 7919, 1039, 5741, 5042, - 6465, 8527, 7919, 1039, 5741, 6256, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 5043, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 7323, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 11430, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 11431, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6257, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6954, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 5043, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 7323, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 11430, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 11431, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 6955, 657, 12362, - 6465, 8527, 7919, 1039, 5741, 7272, - 6465, 8527, 7919, 1039, 5741, 7322, - 6465, 8527, 7919, 1039, 5741, 12362, - 6465, 8527, 7919, 2046, - 6465, 8527, 7919, 2078, - 6465, 8527, 7919, 2236, - 6465, 8527, 7919, 2237, 5741, 6256, - 6465, 8527, 7919, 2312, - 6465, 8527, 7919, 2340, - 6465, 8527, 7919, 2466, - 6465, 8527, 7919, 3556, - 6465, 8527, 7919, 4338, - 6465, 8527, 7919, 4339, 5741, 5042, - 6465, 8527, 7919, 4339, 5741, 6256, - 6465, 8527, 7919, 4339, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 4339, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 4339, 5741, 6257, 657, 11430, - 6465, 8527, 7919, 4339, 5741, 6954, - 6465, 8527, 7919, 4339, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 4339, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 4339, 5741, 6955, 657, 11430, - 6465, 8527, 7919, 4339, 5741, 7272, - 6465, 8527, 7919, 4339, 5741, 7322, - 6465, 8527, 7919, 4339, 5741, 7940, - 6465, 8527, 7919, 4339, 5741, 8400, - 6465, 8527, 7919, 4339, 5741, 10162, - 6465, 8527, 7919, 5880, - 6465, 8527, 7919, 6018, - 6465, 8527, 7919, 6019, 5741, 5042, - 6465, 8527, 7919, 6019, 5741, 6256, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 5043, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 7323, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 11430, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 11431, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6257, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6954, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 5043, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 7323, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 11430, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 11431, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 6955, 657, 12362, - 6465, 8527, 7919, 6019, 5741, 7272, - 6465, 8527, 7919, 6019, 5741, 7322, - 6465, 8527, 7919, 6019, 5741, 7940, - 6465, 8527, 7919, 6019, 5741, 8400, - 6465, 8527, 7919, 6019, 5741, 12362, - 6465, 8527, 7919, 6276, - 6465, 8527, 7919, 6410, - 6465, 8527, 7919, 6598, - 6465, 8527, 7919, 6650, - 6465, 8527, 7919, 6874, - 6465, 8527, 7919, 6875, 5741, 5042, - 6465, 8527, 7919, 6875, 5741, 6256, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 5043, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 7323, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 11430, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 11431, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6257, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6954, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 5043, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 7323, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 11430, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 11431, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 6955, 657, 12362, - 6465, 8527, 7919, 6875, 5741, 7272, - 6465, 8527, 7919, 6875, 5741, 7322, - 6465, 8527, 7919, 6875, 5741, 12362, - 6465, 8527, 7919, 7120, - 6465, 8527, 7919, 7232, - 6465, 8527, 7919, 8722, - 6465, 8527, 7919, 8723, 5741, 5042, - 6465, 8527, 7919, 8723, 5741, 6256, - 6465, 8527, 7919, 8723, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 8723, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 8723, 5741, 6954, - 6465, 8527, 7919, 8723, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 8723, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 8723, 5741, 7272, - 6465, 8527, 7919, 8723, 5741, 7322, - 6465, 8527, 7919, 8972, - 6465, 8527, 7919, 8973, 5741, 5042, - 6465, 8527, 7919, 8973, 5741, 6256, - 6465, 8527, 7919, 8973, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 8973, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 8973, 5741, 6954, - 6465, 8527, 7919, 8973, 5741, 6955, 657, 5042, - 6465, 8527, 7919, 8973, 5741, 6955, 657, 7322, - 6465, 8527, 7919, 8973, 5741, 7272, - 6465, 8527, 7919, 8973, 5741, 7322, - 6465, 8527, 7919, 9220, - 6465, 8527, 7919, 9221, 5741, 5042, - 6465, 8527, 7919, 9221, 5741, 6256, - 6465, 8527, 7919, 9221, 5741, 6257, 657, 5042, - 6465, 8527, 7919, 9221, 5741, 6257, 657, 7322, - 6465, 8527, 7919, 9221, 5741, 6257, 657, 11430, - 6465, 8527, 7919, 9221, 5741, 7272, - 6465, 8527, 7919, 9221, 5741, 7322, - 6465, 8527, 7919, 9221, 5741, 7940, - 6465, 8527, 7919, 9221, 5741, 8400, - 6465, 8527, 7919, 9221, 5741, 10162, - 6465, 8527, 7939, 7121, 8258, - 6465, 8527, 9871, 7671, 7939, 7121, 8258, - 6465, 8527, 9871, 7939, 7121, 8258, - 6465, 8701, 5400, - 6465, 8862, - 6465, 8869, 3499, 5400, - 6465, 8929, 7912, - 6465, 8957, 5400, - 6465, 9221, 5741, 4257, 8258, - 6465, 9221, 5741, 5993, 657, 4257, 8258, - 6465, 9221, 5741, 10159, 657, 4257, 8258, - 6465, 9729, 5400, - 6465, 9853, 4630, - 6465, 9871, 7939, 8723, 8258, - 6465, 10019, 3499, 5400, - 6465, 10163, 657, 5042, - 6465, 10163, 657, 7322, - 6465, 10163, 657, 11430, - 6465, 10163, 7272, - 6465, 10599, 7143, 7919, 814, - 6465, 10599, 7143, 7919, 2046, - 6465, 10599, 7143, 7919, 2236, - 6465, 10599, 7143, 7919, 3556, - 6465, 10599, 7143, 7919, 6410, - 6465, 10741, 6055, 2005, 4118, - 6465, 10741, 6055, 2005, 8700, - 6465, 10741, 6055, 2005, 8795, 9150, - 6465, 10741, 6055, 2005, 8795, 9178, - 6465, 10741, 6055, 2005, 9042, - 6465, 10741, 6055, 2005, 9995, 9150, - 6465, 10741, 6055, 2005, 9995, 9178, - 6465, 10741, 6055, 2479, 4700, - 6465, 10741, 6055, 2479, 9150, - 6465, 10741, 6055, 2479, 9178, - 6465, 10741, 6055, 2479, 9995, 9150, - 6465, 10741, 6055, 3942, - 6465, 10741, 6055, 3943, 8794, - 6465, 10741, 6055, 3943, 8795, 9150, - 6465, 10741, 6055, 3943, 8795, 9178, - 6465, 10741, 6055, 3943, 9150, - 6465, 10741, 6055, 3943, 9178, - 6465, 10741, 6055, 3943, 9994, - 6465, 10741, 6055, 3943, 9995, 9178, - 6465, 10741, 6055, 6370, - 6465, 10741, 6055, 6371, 9150, - 6465, 10741, 6055, 6371, 9178, - 6465, 10741, 6055, 6371, 9994, - 6465, 10741, 6055, 6371, 9995, 9150, - 6465, 10741, 8011, 3943, 8794, - 6465, 10741, 8611, 3943, 4700, - 6465, 10741, 8787, 2005, 9822, - 6465, 10741, 9385, 2585, 9546, - 6465, 10741, 9921, 6371, 4700, - 6465, 10741, 9991, 2004, - 6465, 10741, 9991, 2005, 8794, - 6465, 10741, 9991, 2005, 9994, - 6465, 10741, 9991, 2478, - 6465, 10741, 9991, 2584, - 6465, 10741, 9991, 3943, 8794, - 6465, 10741, 9991, 3943, 9994, - 6465, 10741, 9991, 6370, - 6465, 10741, 9991, 7245, 8794, - 6465, 10741, 9991, 8302, - 6465, 10741, 10115, 3943, 8794, - 6465, 10741, 10469, 2478, - 6465, 10741, 10949, 2584, - 6465, 10741, 10949, 2585, 9546, - 6465, 10741, 10949, 3943, 8794, - 6465, 10741, 10975, 2004, - 6465, 10741, 10975, 2478, - 6465, 10741, 10975, 6370, - 6465, 10741, 11179, 2478, - 6465, 10741, 11179, 2479, 10073, 3954, - 6465, 10741, 11179, 3942, - 6465, 10741, 11179, 3943, 8794, - 6465, 10741, 11179, 6370, - 6465, 10741, 11179, 6371, 10073, 3954, - 6465, 11430, - 6465, 11795, 9763, 9958, - 6465, 11795, 9763, 9960, - 6465, 11795, 9763, 9964, - 6465, 11795, 9763, 9966, - 6465, 11795, 9763, 9970, - 6465, 11795, 9763, 9972, - 6465, 11795, 9763, 10608, - 6465, 11795, 9763, 10610, - 6465, 11795, 9763, 10612, - 6465, 11795, 9763, 10614, - 6465, 11795, 9763, 10620, - 6465, 11795, 9763, 10622, - 6465, 11795, 9763, 10624, - 6465, 11795, 9763, 10632, - 6465, 11795, 9763, 10634, - 6465, 11795, 9763, 10636, - 6465, 11795, 9763, 10638, - 6465, 11795, 9763, 10640, - 6465, 11795, 9763, 10642, - 6465, 11795, 9763, 10644, - 6465, 11795, 9763, 10646, - 6465, 11795, 9763, 10648, - 6465, 11795, 9763, 10650, - 6465, 11795, 9763, 10652, - 6465, 11795, 9763, 10654, - 6465, 11795, 9763, 10656, - 6465, 11795, 9763, 10658, - 6465, 11795, 9763, 10660, - 6465, 11795, 9763, 10662, - 6465, 11795, 9763, 10664, - 6465, 11795, 9763, 10666, - 6465, 11795, 9763, 10668, - 6465, 11795, 9763, 10670, - 6465, 11795, 9763, 10672, - 6465, 11795, 9763, 10674, - 6465, 11795, 9763, 10676, - 6465, 11795, 9763, 10678, - 6465, 12334, - 6465, 12362, - 6489, 3957, 12345, 9308, - 6489, 5039, 7569, 6224, - 6489, 6117, 6486, - 6489, 6117, 7607, 9223, 657, 11083, 6046, - 6489, 6117, 7607, 10313, 657, 11083, 6046, - 6489, 6173, 4630, - 6489, 6313, 9029, 11451, 6117, 5472, - 6489, 6313, 12431, 10529, 9308, - 6489, 6465, 6224, - 6489, 6487, 11329, 4631, 9778, - 6489, 6691, 12367, 7357, 11083, 6046, - 6489, 6829, 3895, 6046, - 6489, 7157, 3895, 6046, - 6489, 7313, 12367, 7357, 11083, 6046, - 6489, 7505, 46, - 6489, 7621, 12433, 11083, 6046, - 6489, 7673, 6219, 10535, 4631, 9778, - 6489, 7673, 8345, 6219, 10535, 4631, 9778, - 6489, 8207, 6219, 10535, 4631, 9778, - 6489, 8207, 8345, 6219, 10535, 4631, 9778, - 6489, 8547, 10580, - 6489, 9136, - 6489, 9308, - 6489, 9783, 6117, 5472, - 6489, 10043, 696, - 6489, 11083, 6046, - 6489, 11329, 4631, 9778, - 6489, 11695, 11083, 6046, - 6489, 11841, 11083, 6046, - 6489, 12197, 11083, 6046, - 6489, 12265, 6021, 8515, 9778, - 6489, 12265, 6021, 10535, 4631, 9778, - 6489, 12359, 46, - 6489, 12365, 6021, 8515, 9778, - 6489, 12365, 6021, 10535, 4631, 9778, - 6489, 12389, 6829, 3895, 6046, - 6489, 12389, 7157, 3895, 6046, - 6489, 12389, 11083, 6046, - 6489, 12397, 6117, 11083, 6046, - 6489, 12431, 9308, - 6489, 12431, 9819, 9308, - 6489, 12433, 11083, 6046, - 6489, 12451, 11083, 6046, - 6534, - 6567, 400, - 6567, 401, 415, 12205, 6331, 520, - 6619, 5401, 1631, 2530, - 6619, 5401, 4458, - 6619, 5401, 6002, - 6619, 5401, 6210, - 6619, 5401, 7004, - 6619, 5401, 7510, - 6619, 5401, 7526, - 6619, 5401, 7559, 2057, 4502, - 6619, 5401, 8085, 4704, - 6619, 5401, 8155, 8158, - 6619, 5401, 8394, - 6619, 5401, 8832, - 6619, 5401, 8858, - 6619, 5401, 8950, - 6619, 5401, 9052, - 6619, 5401, 9208, - 6619, 5401, 9312, - 6619, 5401, 10774, - 6619, 5401, 10776, - 6619, 5401, 11398, - 6619, 5401, 11674, - 6619, 5401, 12208, - 6619, 5401, 12336, - 6619, 6287, 2004, - 6619, 6287, 2358, - 6619, 6287, 2584, - 6619, 6287, 3942, - 6619, 6287, 3956, - 6619, 6287, 4854, - 6619, 6287, 5878, - 6619, 6287, 6312, - 6619, 6287, 7060, - 6619, 6287, 7244, - 6619, 7341, 5401, 8, - 6619, 7341, 5401, 16, - 6619, 7341, 5401, 40, - 6619, 7341, 5401, 48, - 6619, 7341, 5401, 58, - 6619, 7341, 5401, 66, - 6619, 7341, 5401, 70, - 6619, 7341, 5401, 88, - 6619, 7341, 5401, 242, - 6619, 7341, 5401, 248, - 6619, 7341, 5401, 398, - 6619, 7341, 5401, 410, - 6619, 7341, 5401, 530, - 6619, 7341, 5401, 550, - 6619, 7341, 5401, 596, - 6619, 7341, 5401, 612, - 6619, 7341, 9659, 58, - 6619, 7341, 9659, 82, - 6619, 7919, 94, - 6619, 7919, 108, - 6619, 7919, 122, - 6619, 7919, 128, - 6619, 7919, 140, - 6619, 7919, 220, - 6619, 7919, 286, - 6619, 7919, 302, - 6619, 7919, 312, - 6619, 7919, 328, - 6619, 7919, 358, - 6619, 7919, 386, - 6619, 7919, 444, - 6619, 7919, 458, - 6619, 7919, 478, - 6619, 7919, 486, - 6619, 7919, 510, - 6619, 7919, 520, - 6619, 7919, 560, - 6619, 7919, 604, - 6619, 7919, 810, - 6619, 7919, 816, - 6619, 7919, 1492, - 6619, 7919, 1498, - 6619, 7919, 1882, - 6619, 7919, 1920, - 6619, 7919, 1970, - 6619, 7919, 2042, - 6619, 7919, 2048, - 6619, 7919, 2334, - 6619, 7919, 2390, - 6619, 7919, 2486, - 6619, 7919, 2492, - 6619, 7919, 5626, - 6619, 7919, 5632, - 6619, 8259, 719, 2250, - 6619, 8259, 719, 4486, - 6619, 8259, 889, 2250, - 6619, 8259, 889, 4486, - 6619, 8259, 1631, 6053, 718, - 6619, 8259, 1631, 6053, 2056, - 6619, 8259, 1631, 6053, 2370, - 6619, 8259, 1631, 6053, 3590, - 6619, 8259, 1631, 6053, 4716, - 6619, 8259, 1631, 6053, 5100, - 6619, 8259, 1631, 6053, 9830, - 6619, 8259, 1631, 6053, 9832, - 6619, 8259, 1631, 6053, 10520, - 6619, 8259, 1631, 6053, 10522, - 6619, 8259, 2057, 2250, - 6619, 8259, 2057, 4486, - 6619, 8259, 3591, 2250, - 6619, 8259, 3591, 4486, - 6619, 8259, 4717, 2250, - 6619, 8259, 4717, 4486, - 6619, 8259, 5101, 2250, - 6619, 8259, 5101, 4486, - 6619, 8259, 8601, 2250, - 6619, 8259, 8601, 4486, - 6619, 8259, 8603, 2250, - 6619, 8259, 8603, 4486, - 6619, 8259, 9391, 2250, - 6619, 8259, 9391, 4486, - 6619, 8259, 9393, 2250, - 6619, 8259, 9393, 4486, - 6619, 8259, 9395, 2250, - 6619, 8259, 9395, 4486, - 6619, 8259, 9831, 2250, - 6619, 8259, 9831, 4486, - 6619, 8259, 9833, 2250, - 6619, 8259, 9833, 4486, - 6619, 8259, 10521, 2250, - 6619, 8259, 10521, 4486, - 6619, 8259, 10523, 2250, - 6619, 8259, 10523, 4486, - 6619, 8259, 10716, - 6619, 8259, 11036, - 6619, 9381, 8259, 5198, - 6619, 11365, 7341, 338, - 6619, 11365, 7341, 460, - 6619, 11365, 7341, 462, - 6619, 11365, 7341, 468, - 6619, 11365, 7341, 484, - 6619, 11365, 7341, 1718, - 6619, 11365, 7341, 2110, - 6619, 11365, 7341, 2114, - 6619, 11365, 7341, 2116, - 6619, 11365, 7341, 2120, - 6619, 11365, 7341, 2136, - 6619, 11365, 7341, 2149, 5663, 2004, - 6619, 11365, 7341, 2149, 5663, 2584, - 6619, 11365, 7341, 2162, - 6619, 11365, 7341, 2172, - 6619, 11365, 7341, 2300, - 6619, 11365, 7341, 5156, - 6655, 547, 5518, - 6655, 3863, 5518, - 6655, 4555, 10011, 9772, - 6655, 7582, - 6655, 8327, 10043, 697, 9772, - 6659, 6224, - 6659, 7143, 7919, 0, - 6659, 7143, 7919, 1, 5741, 961, 5990, - 6659, 7143, 7919, 1, 5741, 961, 5991, 657, 7940, - 6659, 7143, 7919, 1, 5741, 961, 6102, - 6659, 7143, 7919, 1, 5741, 4257, 5990, - 6659, 7143, 7919, 1, 5741, 5201, 5990, - 6659, 7143, 7919, 1, 5741, 5201, 5991, 657, 5992, - 6659, 7143, 7919, 1, 5741, 5201, 6102, - 6659, 7143, 7919, 1, 5741, 5992, - 6659, 7143, 7919, 1, 5741, 6128, - 6659, 7143, 7919, 1, 5741, 6129, 657, 961, 6102, - 6659, 7143, 7919, 1, 5741, 6129, 657, 4257, 5990, - 6659, 7143, 7919, 1, 5741, 6129, 657, 5992, - 6659, 7143, 7919, 1, 5741, 6129, 657, 6460, - 6659, 7143, 7919, 1, 5741, 6129, 657, 7256, - 6659, 7143, 7919, 1, 5741, 6152, - 6659, 7143, 7919, 1, 5741, 6460, - 6659, 7143, 7919, 1, 5741, 6997, 4119, 5200, - 6659, 7143, 7919, 1, 5741, 7256, - 6659, 7143, 7919, 1, 5741, 7673, 6460, - 6659, 7143, 7919, 1, 5741, 7940, - 6659, 7143, 7919, 1, 5741, 8040, - 6659, 7143, 7919, 1, 5741, 8244, - 6659, 7143, 7919, 1, 5741, 9667, 6128, - 6659, 7143, 7919, 1, 5741, 10158, - 6659, 7143, 7919, 1, 5741, 10159, 657, 7940, - 6659, 7143, 7919, 1, 5741, 10555, 4256, - 6659, 7143, 7919, 1, 5741, 10782, - 6659, 7143, 7919, 1, 5741, 10783, 657, 961, 6102, - 6659, 7143, 7919, 1, 5741, 10783, 657, 4257, 5990, - 6659, 7143, 7919, 1, 5741, 10783, 657, 5992, - 6659, 7143, 7919, 1, 5741, 10783, 657, 6460, - 6659, 7143, 7919, 1, 5741, 10783, 657, 7256, - 6659, 7143, 7919, 2, - 6659, 7143, 7919, 3, 5741, 961, 5990, - 6659, 7143, 7919, 3, 5741, 961, 6102, - 6659, 7143, 7919, 3, 5741, 4256, - 6659, 7143, 7919, 3, 5741, 4581, 6102, - 6659, 7143, 7919, 3, 5741, 7981, 7256, - 6659, 7143, 7919, 3, 5741, 8244, - 6659, 7143, 7919, 3, 5741, 8324, - 6659, 7143, 7919, 3, 5741, 8995, 4256, - 6659, 7143, 7919, 4, - 6659, 7143, 7919, 5, 5741, 961, 5990, - 6659, 7143, 7919, 5, 5741, 3732, - 6659, 7143, 7919, 5, 5741, 4256, - 6659, 7143, 7919, 5, 5741, 5992, - 6659, 7143, 7919, 5, 5741, 6152, - 6659, 7143, 7919, 5, 5741, 8244, - 6659, 7143, 7919, 5, 5741, 8534, - 6659, 7143, 7919, 5, 5741, 8535, 657, 5992, - 6659, 7143, 7919, 5, 5741, 10782, - 6659, 7143, 7919, 6, - 6659, 7143, 7919, 7, 5741, 961, 5990, - 6659, 7143, 7919, 7, 5741, 961, 6102, - 6659, 7143, 7919, 7, 5741, 3732, - 6659, 7143, 7919, 7, 5741, 4256, - 6659, 7143, 7919, 7, 5741, 4257, 657, 5520, - 6659, 7143, 7919, 7, 5741, 4581, 6102, - 6659, 7143, 7919, 7, 5741, 5520, - 6659, 7143, 7919, 7, 5741, 6152, - 6659, 7143, 7919, 7, 5741, 7981, 7256, - 6659, 7143, 7919, 7, 5741, 8244, - 6659, 7143, 7919, 7, 5741, 8324, - 6659, 7143, 7919, 7, 5741, 8534, - 6659, 7143, 7919, 7, 5741, 8995, 4256, - 6659, 7143, 7919, 7, 5741, 10783, 6102, - 6659, 7143, 7919, 8, - 6659, 7143, 7919, 9, 5741, 961, 5990, - 6659, 7143, 7919, 9, 5741, 961, 6102, - 6659, 7143, 7919, 9, 5741, 4257, 5990, - 6659, 7143, 7919, 9, 5741, 5992, - 6659, 7143, 7919, 9, 5741, 6128, - 6659, 7143, 7919, 9, 5741, 6152, - 6659, 7143, 7919, 9, 5741, 6460, - 6659, 7143, 7919, 9, 5741, 7256, - 6659, 7143, 7919, 9, 5741, 7257, 6102, - 6659, 7143, 7919, 9, 5741, 7673, 6460, - 6659, 7143, 7919, 9, 5741, 7940, - 6659, 7143, 7919, 9, 5741, 7941, 657, 5992, - 6659, 7143, 7919, 9, 5741, 7941, 657, 6460, - 6659, 7143, 7919, 9, 5741, 8040, - 6659, 7143, 7919, 9, 5741, 8244, - 6659, 7143, 7919, 9, 5741, 8534, - 6659, 7143, 7919, 9, 5741, 8535, 657, 6128, - 6659, 7143, 7919, 9, 5741, 9667, 6128, - 6659, 7143, 7919, 9, 5741, 10158, - 6659, 7143, 7919, 9, 5741, 10555, 4256, - 6659, 7143, 7919, 9, 5741, 10782, - 6659, 7143, 7919, 9, 5741, 10783, 657, 961, 6102, - 6659, 7143, 7919, 9, 5741, 10783, 657, 4257, 5990, - 6659, 7143, 7919, 9, 5741, 10783, 657, 5992, - 6659, 7143, 7919, 9, 5741, 10783, 657, 6460, - 6659, 7143, 7919, 9, 5741, 10783, 657, 7256, - 6659, 7143, 7919, 9, 5741, 10783, 6102, - 6659, 7143, 7919, 10, - 6659, 7143, 7919, 11, 5741, 961, 5990, - 6659, 7143, 7919, 11, 5741, 4256, - 6659, 7143, 7919, 11, 5741, 7981, 7256, - 6659, 7143, 7919, 11, 5741, 8995, 4256, - 6659, 7143, 7919, 12, - 6659, 7143, 7919, 13, 5741, 961, 5990, - 6659, 7143, 7919, 13, 5741, 4256, - 6659, 7143, 7919, 13, 5741, 5992, - 6659, 7143, 7919, 13, 5741, 6128, - 6659, 7143, 7919, 13, 5741, 6152, - 6659, 7143, 7919, 13, 5741, 7940, - 6659, 7143, 7919, 13, 5741, 8244, - 6659, 7143, 7919, 13, 5741, 8534, - 6659, 7143, 7919, 13, 5741, 8995, 4256, - 6659, 7143, 7919, 13, 5741, 10782, - 6659, 7143, 7919, 14, - 6659, 7143, 7919, 15, 5741, 961, 5990, - 6659, 7143, 7919, 15, 5741, 961, 6102, - 6659, 7143, 7919, 15, 5741, 4256, - 6659, 7143, 7919, 15, 5741, 4581, 6102, - 6659, 7143, 7919, 15, 5741, 6129, 6102, - 6659, 7143, 7919, 15, 5741, 6152, - 6659, 7143, 7919, 15, 5741, 8244, - 6659, 7143, 7919, 15, 5741, 8534, - 6659, 7143, 7919, 15, 5741, 10156, - 6659, 7143, 7919, 15, 5741, 10158, - 6659, 7143, 7919, 15, 5741, 10782, - 6659, 7143, 7919, 16, - 6659, 7143, 7919, 17, 5741, 961, 6102, - 6659, 7143, 7919, 17, 5741, 4257, 5990, - 6659, 7143, 7919, 17, 5741, 5992, - 6659, 7143, 7919, 17, 5741, 6128, - 6659, 7143, 7919, 17, 5741, 6152, - 6659, 7143, 7919, 17, 5741, 6460, - 6659, 7143, 7919, 17, 5741, 7256, - 6659, 7143, 7919, 17, 5741, 7257, 6102, - 6659, 7143, 7919, 17, 5741, 7673, 6460, - 6659, 7143, 7919, 17, 5741, 7940, - 6659, 7143, 7919, 17, 5741, 8040, - 6659, 7143, 7919, 17, 5741, 8244, - 6659, 7143, 7919, 17, 5741, 9667, 6128, - 6659, 7143, 7919, 17, 5741, 10158, - 6659, 7143, 7919, 17, 5741, 10159, 657, 5992, - 6659, 7143, 7919, 17, 5741, 10555, 4256, - 6659, 7143, 7919, 17, 5741, 10782, - 6659, 7143, 7919, 18, - 6659, 7143, 7919, 19, 5741, 6152, - 6659, 7143, 7919, 19, 5741, 8244, - 6659, 7143, 7919, 19, 5741, 10782, - 6659, 7143, 7919, 19, 5741, 11732, - 6659, 7143, 7919, 20, - 6659, 7143, 7919, 21, 5741, 961, 6102, - 6659, 7143, 7919, 21, 5741, 4256, - 6659, 7143, 7919, 21, 5741, 4581, 6102, - 6659, 7143, 7919, 21, 5741, 5992, - 6659, 7143, 7919, 21, 5741, 6152, - 6659, 7143, 7919, 21, 5741, 8534, - 6659, 7143, 7919, 21, 5741, 8995, 4256, - 6659, 7143, 7919, 21, 5741, 10156, - 6659, 7143, 7919, 22, - 6659, 7143, 7919, 23, 5741, 696, - 6659, 7143, 7919, 23, 5741, 961, 6102, - 6659, 7143, 7919, 23, 5741, 961, 6103, 657, 7940, - 6659, 7143, 7919, 23, 5741, 3552, - 6659, 7143, 7919, 23, 5741, 3732, - 6659, 7143, 7919, 23, 5741, 4581, 6102, - 6659, 7143, 7919, 23, 5741, 5992, - 6659, 7143, 7919, 23, 5741, 6152, - 6659, 7143, 7919, 23, 5741, 7673, 696, - 6659, 7143, 7919, 23, 5741, 7981, 960, - 6659, 7143, 7919, 23, 5741, 7981, 7256, - 6659, 7143, 7919, 23, 5741, 8244, - 6659, 7143, 7919, 23, 5741, 8534, - 6659, 7143, 7919, 23, 5741, 8995, 4256, - 6659, 7143, 7919, 23, 5741, 10555, 4256, - 6659, 7143, 7919, 23, 5741, 10783, 6102, - 6659, 7143, 7919, 24, - 6659, 7143, 7919, 25, 5741, 961, 5990, - 6659, 7143, 7919, 25, 5741, 961, 6102, - 6659, 7143, 7919, 25, 5741, 4256, - 6659, 7143, 7919, 25, 5741, 5992, - 6659, 7143, 7919, 25, 5741, 7981, 7256, - 6659, 7143, 7919, 25, 5741, 8995, 4256, - 6659, 7143, 7919, 26, - 6659, 7143, 7919, 27, 5741, 961, 5990, - 6659, 7143, 7919, 27, 5741, 961, 6102, - 6659, 7143, 7919, 27, 5741, 3732, - 6659, 7143, 7919, 27, 5741, 4555, 4256, - 6659, 7143, 7919, 27, 5741, 4581, 6102, - 6659, 7143, 7919, 27, 5741, 4599, 6997, 1628, - 6659, 7143, 7919, 27, 5741, 5992, - 6659, 7143, 7919, 27, 5741, 6152, - 6659, 7143, 7919, 27, 5741, 6460, - 6659, 7143, 7919, 27, 5741, 7256, - 6659, 7143, 7919, 27, 5741, 7981, 7256, - 6659, 7143, 7919, 27, 5741, 8534, - 6659, 7143, 7919, 27, 5741, 8995, 4256, - 6659, 7143, 7919, 27, 5741, 10555, 4256, - 6659, 7143, 7919, 27, 5741, 10783, 6102, - 6659, 7143, 7919, 27, 9835, 107, 10760, - 6659, 7143, 7919, 28, - 6659, 7143, 7919, 29, 5741, 961, 5990, - 6659, 7143, 7919, 29, 5741, 961, 5991, 657, 7940, - 6659, 7143, 7919, 29, 5741, 961, 6102, - 6659, 7143, 7919, 29, 5741, 4257, 5990, - 6659, 7143, 7919, 29, 5741, 4262, - 6659, 7143, 7919, 29, 5741, 4263, 657, 961, 6102, - 6659, 7143, 7919, 29, 5741, 4263, 657, 4257, 5990, - 6659, 7143, 7919, 29, 5741, 4263, 657, 5992, - 6659, 7143, 7919, 29, 5741, 4263, 657, 6460, - 6659, 7143, 7919, 29, 5741, 4263, 657, 7256, - 6659, 7143, 7919, 29, 5741, 5992, - 6659, 7143, 7919, 29, 5741, 6128, - 6659, 7143, 7919, 29, 5741, 6152, - 6659, 7143, 7919, 29, 5741, 6460, - 6659, 7143, 7919, 29, 5741, 7256, - 6659, 7143, 7919, 29, 5741, 7257, 657, 5992, - 6659, 7143, 7919, 29, 5741, 7257, 657, 7940, - 6659, 7143, 7919, 29, 5741, 7257, 657, 10158, - 6659, 7143, 7919, 29, 5741, 7673, 5992, - 6659, 7143, 7919, 29, 5741, 7673, 6460, - 6659, 7143, 7919, 29, 5741, 7940, - 6659, 7143, 7919, 29, 5741, 7941, 657, 5992, - 6659, 7143, 7919, 29, 5741, 7941, 657, 6460, - 6659, 7143, 7919, 29, 5741, 8040, - 6659, 7143, 7919, 29, 5741, 8041, 657, 7940, - 6659, 7143, 7919, 29, 5741, 8244, - 6659, 7143, 7919, 29, 5741, 8245, 657, 5992, - 6659, 7143, 7919, 29, 5741, 9667, 6128, - 6659, 7143, 7919, 29, 5741, 10158, - 6659, 7143, 7919, 29, 5741, 10159, 657, 7940, - 6659, 7143, 7919, 29, 5741, 10782, - 6659, 7143, 7919, 29, 5741, 10783, 657, 961, 6102, - 6659, 7143, 7919, 29, 5741, 10783, 657, 4257, 5990, - 6659, 7143, 7919, 29, 5741, 10783, 657, 5992, - 6659, 7143, 7919, 29, 5741, 10783, 657, 6460, - 6659, 7143, 7919, 29, 5741, 10783, 657, 7256, - 6659, 7143, 7919, 30, - 6659, 7143, 7919, 31, 5741, 961, 5990, - 6659, 7143, 7919, 31, 5741, 4256, - 6659, 7143, 7919, 31, 5741, 5992, - 6659, 7143, 7919, 31, 5741, 7981, 7256, - 6659, 7143, 7919, 31, 5741, 8244, - 6659, 7143, 7919, 31, 5741, 8995, 4256, - 6659, 7143, 7919, 32, - 6659, 7143, 7919, 33, 5741, 4256, - 6659, 7143, 7919, 33, 5741, 4257, 5520, - 6659, 7143, 7919, 34, - 6659, 7143, 7919, 35, 5741, 961, 5990, - 6659, 7143, 7919, 35, 5741, 961, 6102, - 6659, 7143, 7919, 35, 5741, 961, 6103, 657, 7940, - 6659, 7143, 7919, 35, 5741, 4581, 6102, - 6659, 7143, 7919, 35, 5741, 4599, 1628, - 6659, 7143, 7919, 35, 5741, 5520, - 6659, 7143, 7919, 35, 5741, 5992, - 6659, 7143, 7919, 35, 5741, 6152, - 6659, 7143, 7919, 35, 5741, 7673, 6460, - 6659, 7143, 7919, 35, 5741, 7981, 7256, - 6659, 7143, 7919, 35, 5741, 8244, - 6659, 7143, 7919, 35, 5741, 8534, - 6659, 7143, 7919, 35, 5741, 8995, 4256, - 6659, 7143, 7919, 35, 5741, 9594, - 6659, 7143, 7919, 35, 5741, 9595, 657, 7981, 7256, - 6659, 7143, 7919, 35, 5741, 9667, 6128, - 6659, 7143, 7919, 36, - 6659, 7143, 7919, 37, 5741, 961, 5990, - 6659, 7143, 7919, 37, 5741, 961, 6102, - 6659, 7143, 7919, 37, 5741, 961, 6103, 657, 961, 5990, - 6659, 7143, 7919, 37, 5741, 4256, - 6659, 7143, 7919, 37, 5741, 5992, - 6659, 7143, 7919, 37, 5741, 5993, 657, 961, 5990, - 6659, 7143, 7919, 37, 5741, 6152, - 6659, 7143, 7919, 37, 5741, 6153, 657, 961, 5990, - 6659, 7143, 7919, 37, 5741, 6219, 6102, - 6659, 7143, 7919, 37, 5741, 7203, 5520, - 6659, 7143, 7919, 37, 5741, 7981, 7256, - 6659, 7143, 7919, 37, 5741, 8534, - 6659, 7143, 7919, 37, 5741, 8995, 4256, - 6659, 7143, 7919, 37, 5741, 10782, - 6659, 7143, 7919, 38, - 6659, 7143, 7919, 39, 5741, 961, 5990, - 6659, 7143, 7919, 39, 5741, 961, 6102, - 6659, 7143, 7919, 39, 5741, 3732, - 6659, 7143, 7919, 39, 5741, 4256, - 6659, 7143, 7919, 39, 5741, 4581, 6102, - 6659, 7143, 7919, 39, 5741, 6152, - 6659, 7143, 7919, 39, 5741, 6219, 6102, - 6659, 7143, 7919, 39, 5741, 7981, 7256, - 6659, 7143, 7919, 39, 5741, 8244, - 6659, 7143, 7919, 39, 5741, 8534, - 6659, 7143, 7919, 39, 5741, 8995, 4256, - 6659, 7143, 7919, 39, 5741, 9409, 8244, - 6659, 7143, 7919, 39, 5741, 10158, - 6659, 7143, 7919, 39, 5741, 10555, 4256, - 6659, 7143, 7919, 39, 5741, 10783, 6102, - 6659, 7143, 7919, 40, - 6659, 7143, 7919, 41, 696, - 6659, 7143, 7919, 41, 5741, 961, 6102, - 6659, 7143, 7919, 41, 5741, 4257, 5990, - 6659, 7143, 7919, 41, 5741, 4262, - 6659, 7143, 7919, 41, 5741, 4263, 657, 961, 6102, - 6659, 7143, 7919, 41, 5741, 4263, 657, 4257, 5990, - 6659, 7143, 7919, 41, 5741, 4263, 657, 5992, - 6659, 7143, 7919, 41, 5741, 4263, 657, 6460, - 6659, 7143, 7919, 41, 5741, 4263, 657, 7256, - 6659, 7143, 7919, 41, 5741, 5201, 5990, - 6659, 7143, 7919, 41, 5741, 5992, - 6659, 7143, 7919, 41, 5741, 6128, - 6659, 7143, 7919, 41, 5741, 6152, - 6659, 7143, 7919, 41, 5741, 6460, - 6659, 7143, 7919, 41, 5741, 7256, - 6659, 7143, 7919, 41, 5741, 7257, 657, 5992, - 6659, 7143, 7919, 41, 5741, 7257, 6102, - 6659, 7143, 7919, 41, 5741, 7673, 5992, - 6659, 7143, 7919, 41, 5741, 7673, 6460, - 6659, 7143, 7919, 41, 5741, 7940, - 6659, 7143, 7919, 41, 5741, 7941, 657, 10158, - 6659, 7143, 7919, 41, 5741, 8040, - 6659, 7143, 7919, 41, 5741, 9667, 6128, - 6659, 7143, 7919, 41, 5741, 10158, - 6659, 7143, 7919, 41, 5741, 10159, 657, 5992, - 6659, 7143, 7919, 41, 5741, 10159, 657, 6152, - 6659, 7143, 7919, 41, 5741, 10159, 657, 6460, - 6659, 7143, 7919, 41, 5741, 10159, 657, 7940, - 6659, 7143, 7919, 41, 5741, 10159, 6102, - 6659, 7143, 7919, 41, 5741, 10555, 4256, - 6659, 7143, 7919, 41, 5741, 10782, - 6659, 7143, 7919, 41, 5741, 10783, 6102, - 6659, 7143, 7919, 42, - 6659, 7143, 7919, 43, 5741, 961, 6102, - 6659, 7143, 7919, 43, 5741, 3732, - 6659, 7143, 7919, 43, 5741, 4256, - 6659, 7143, 7919, 43, 5741, 7256, - 6659, 7143, 7919, 43, 5741, 8995, 4256, - 6659, 7143, 7919, 44, - 6659, 7143, 7919, 45, 5741, 961, 5990, - 6659, 7143, 7919, 45, 5741, 961, 6102, - 6659, 7143, 7919, 45, 5741, 5201, 5990, - 6659, 7143, 7919, 45, 5741, 5992, - 6659, 7143, 7919, 45, 5741, 6460, - 6659, 7143, 7919, 45, 5741, 10158, - 6659, 7143, 7919, 45, 5741, 10782, - 6659, 7143, 7919, 46, - 6659, 7143, 7919, 47, 5741, 961, 5990, - 6659, 7143, 7919, 47, 5741, 8995, 4256, - 6659, 7143, 7919, 47, 5741, 10158, - 6659, 7143, 7919, 48, - 6659, 7143, 7919, 49, 5741, 961, 5990, - 6659, 7143, 7919, 49, 5741, 961, 6102, - 6659, 7143, 7919, 49, 5741, 4256, - 6659, 7143, 7919, 49, 5741, 4257, 5990, - 6659, 7143, 7919, 49, 5741, 5201, 5990, - 6659, 7143, 7919, 49, 5741, 5992, - 6659, 7143, 7919, 49, 5741, 6460, - 6659, 7143, 7919, 49, 5741, 7256, - 6659, 7143, 7919, 49, 5741, 7940, - 6659, 7143, 7919, 49, 5741, 8244, - 6659, 7143, 7919, 49, 5741, 10158, - 6659, 7143, 7919, 49, 5741, 10782, - 6659, 7143, 7919, 50, - 6659, 7143, 7919, 51, 5741, 961, 5990, - 6659, 7143, 7919, 51, 5741, 961, 6102, - 6659, 7143, 7919, 51, 5741, 3732, - 6659, 7143, 7919, 51, 5741, 4256, - 6659, 7143, 7919, 51, 5741, 4581, 6102, - 6659, 7143, 7919, 51, 5741, 5992, - 6659, 7143, 7919, 51, 5741, 6152, - 6659, 7143, 7919, 51, 5741, 7203, 5520, - 6659, 7143, 7919, 51, 5741, 7981, 7256, - 6659, 7143, 7919, 51, 5741, 8244, - 6659, 7143, 7919, 51, 5741, 8995, 4256, - 6659, 7143, 7919, 51, 5741, 10156, - 6659, 7143, 7919, 51, 5741, 10555, 4256, - 6659, 7143, 7919, 51, 5741, 10782, - 6659, 7143, 7919, 66, - 6659, 7143, 7919, 67, 5741, 5992, - 6659, 7143, 7919, 67, 5741, 7940, - 6659, 7143, 7919, 131, 8622, - 6659, 7143, 7919, 146, - 6659, 7143, 7919, 147, 5741, 6152, - 6659, 7143, 7919, 147, 8622, - 6659, 7143, 7919, 147, 8623, 5741, 3732, - 6659, 7143, 7919, 236, - 6659, 7143, 7919, 320, - 6659, 7143, 7919, 331, 8622, - 6659, 7143, 7919, 341, 8622, - 6659, 7143, 7919, 382, - 6659, 7143, 7919, 404, - 6659, 7143, 7919, 420, - 6659, 7143, 7919, 467, 8622, - 6659, 7143, 7919, 513, 8623, 5741, 3732, - 6659, 7143, 7919, 517, 5741, 12316, - 6659, 7143, 7919, 525, 8622, - 6659, 7143, 7919, 536, - 6659, 7143, 7919, 1020, - 6659, 7143, 7919, 1034, - 6659, 7143, 7919, 1035, 5741, 3732, - 6659, 7143, 7919, 1035, 5741, 8995, 4256, - 6659, 7143, 7919, 1035, 5741, 10555, 4256, - 6659, 7143, 7919, 1040, - 6659, 7143, 7919, 1048, - 6659, 7143, 7919, 1049, 5741, 3732, - 6659, 7143, 7919, 1049, 5741, 5520, - 6659, 7143, 7919, 1049, 5741, 6152, - 6659, 7143, 7919, 1049, 5741, 10555, 4256, - 6659, 7143, 7919, 1049, 9870, - 6659, 7143, 7919, 1548, - 6659, 7143, 7919, 2046, - 6659, 7143, 7919, 2533, 4119, 28, - 6659, 7143, 7919, 3831, 8622, - 6659, 7143, 7919, 3929, 8622, - 6659, 7143, 7919, 4119, 14, - 6659, 7143, 7919, 4135, 5741, 4256, - 6659, 7143, 7919, 4338, - 6659, 7143, 7919, 4339, 5741, 8244, - 6659, 7143, 7919, 4560, - 6659, 7143, 7919, 4599, 36, - 6659, 7143, 7919, 4599, 37, 5741, 961, 5990, - 6659, 7143, 7919, 5039, 8, - 6659, 7143, 7919, 5039, 9, 5741, 10555, 4256, - 6659, 7143, 7919, 5039, 28, - 6659, 7143, 7919, 5039, 29, 5741, 10555, 4256, - 6659, 7143, 7919, 5177, 4262, - 6659, 7143, 7919, 5541, 8622, - 6659, 7143, 7919, 5603, 2358, - 6659, 7143, 7919, 5603, 2584, - 6659, 7143, 7919, 5603, 3942, - 6659, 7143, 7919, 5838, - 6659, 7143, 7919, 6018, - 6659, 7143, 7919, 6019, 5741, 10555, 4256, - 6659, 7143, 7919, 6410, - 6659, 7143, 7919, 7046, - 6659, 7143, 7919, 7047, 5741, 4256, - 6659, 7143, 7919, 7047, 5741, 10555, 4256, - 6659, 7143, 7919, 7071, 36, - 6659, 7143, 7919, 7169, 9871, 1034, - 6659, 7143, 7919, 7242, - 6659, 7143, 7919, 7515, 28, - 6659, 7143, 7919, 7539, 4119, 28, - 6659, 7143, 7919, 7591, 5039, 8, - 6659, 7143, 7919, 7591, 6874, - 6659, 7143, 7919, 7591, 9871, 5039, 8, - 6659, 7143, 7919, 7903, 5741, 8244, - 6659, 7143, 7919, 8171, 12, - 6659, 7143, 7919, 8345, 0, - 6659, 7143, 7919, 8345, 8, - 6659, 7143, 7919, 8345, 12, - 6659, 7143, 7919, 8345, 14, - 6659, 7143, 7919, 8345, 15, 5741, 9594, - 6659, 7143, 7919, 8345, 15, 5741, 9595, 657, 5520, - 6659, 7143, 7919, 8345, 16, - 6659, 7143, 7919, 8345, 20, - 6659, 7143, 7919, 8345, 24, - 6659, 7143, 7919, 8345, 25, 5741, 4599, 1628, - 6659, 7143, 7919, 8345, 34, - 6659, 7143, 7919, 8345, 35, 5741, 4256, - 6659, 7143, 7919, 8345, 35, 5741, 4599, 1628, - 6659, 7143, 7919, 8345, 38, - 6659, 7143, 7919, 8345, 42, - 6659, 7143, 7919, 8345, 44, - 6659, 7143, 7919, 8345, 48, - 6659, 7143, 7919, 8345, 66, - 6659, 7143, 7919, 8345, 398, - 6659, 7143, 7919, 8345, 5039, 8, - 6659, 7143, 7919, 8345, 6018, - 6659, 7143, 7919, 8345, 6276, - 6659, 7143, 7919, 8641, 16, - 6659, 7143, 7919, 8641, 18, - 6659, 7143, 7919, 8641, 19, 5741, 8244, - 6659, 7143, 7919, 8641, 19, 5741, 8245, 657, 4256, - 6659, 7143, 7919, 8763, 5478, - 6659, 7143, 7919, 8815, 12, - 6659, 7143, 7919, 9220, - 6659, 7143, 7919, 9221, 5741, 8244, - 6659, 7143, 7919, 9871, 4, - 6659, 7143, 7919, 9871, 8, - 6659, 7143, 7919, 9871, 35, 5741, 9594, - 6659, 7143, 7919, 9871, 5039, 8, - 6659, 7143, 7919, 9871, 5039, 9, 5741, 4256, - 6659, 7143, 7919, 9871, 5039, 9, 5741, 10555, 4256, - 6659, 7143, 7919, 9901, 28, - 6659, 7143, 7919, 9901, 29, 5741, 8244, - 6659, 7143, 7919, 9901, 40, - 6659, 7143, 7919, 9901, 5039, 28, - 6659, 7143, 7919, 9901, 8345, 24, - 6659, 7143, 7919, 9901, 11253, 40, - 6659, 7143, 7919, 9981, 2046, - 6659, 7143, 8527, 7919, 17, 5741, 8244, - 6659, 7143, 8527, 7919, 41, 5741, 8244, - 6659, 7143, 9701, 186, - 6659, 7143, 9701, 188, - 6659, 7143, 9701, 190, - 6659, 7143, 9701, 250, - 6659, 7143, 9701, 398, - 6659, 7143, 9701, 500, - 6659, 7143, 9701, 1066, - 6659, 7143, 9701, 1068, - 6659, 7143, 9701, 4599, 37, 38, - 6659, 7919, 606, - 6659, 7919, 646, - 6659, 7919, 2585, 5741, 8244, - 6659, 7919, 5756, - 6659, 7919, 7143, 8527, 0, - 6659, 7919, 7143, 8527, 2, - 6659, 7919, 7143, 8527, 4, - 6659, 7919, 7143, 8527, 6, - 6659, 7919, 7143, 8527, 8, - 6659, 7919, 7143, 8527, 12, - 6659, 7919, 7143, 8527, 13, 5741, 4256, - 6659, 7919, 7143, 8527, 14, - 6659, 7919, 7143, 8527, 16, - 6659, 7919, 7143, 8527, 18, - 6659, 7919, 7143, 8527, 20, - 6659, 7919, 7143, 8527, 22, - 6659, 7919, 7143, 8527, 23, 5741, 8244, - 6659, 7919, 7143, 8527, 24, - 6659, 7919, 7143, 8527, 26, - 6659, 7919, 7143, 8527, 28, - 6659, 7919, 7143, 8527, 30, - 6659, 7919, 7143, 8527, 34, - 6659, 7919, 7143, 8527, 38, - 6659, 7919, 7143, 8527, 40, - 6659, 7919, 7143, 8527, 42, - 6659, 7919, 7143, 8527, 44, - 6659, 7919, 7143, 8527, 48, - 6659, 7919, 7143, 8527, 50, - 6659, 7919, 7143, 8527, 66, - 6659, 7919, 7143, 8527, 398, - 6659, 7919, 7143, 8527, 420, - 6659, 7919, 7143, 8527, 1040, - 6659, 7919, 7143, 8527, 1048, - 6659, 7919, 7143, 8527, 5039, 28, - 6659, 7919, 7143, 8527, 7515, 2, - 6659, 7919, 7143, 8527, 8345, 34, - 6659, 7919, 7143, 8527, 9667, 34, - 6659, 7919, 7143, 8527, 9871, 26, - 6659, 7919, 7143, 8527, 9871, 34, - 6659, 7919, 7631, 6200, - 6659, 7919, 8397, 10441, 9142, - 6659, 7919, 8763, 5478, - 6659, 7919, 8763, 5479, 5741, 8244, - 6659, 7919, 8873, 6200, - 6659, 7919, 9275, 6200, - 6659, 7919, 9325, 11038, - 6659, 7919, 9327, 6200, - 6659, 7919, 9327, 11038, - 6659, 7919, 9667, 8763, 5478, - 6659, 7919, 9667, 8763, 5479, 5741, 8244, - 6659, 7919, 9871, 1035, 4600, - 6659, 7919, 9871, 8763, 5479, 5741, 8244, - 6659, 7919, 10555, 6200, - 6659, 7919, 10589, 4, - 6659, 7919, 11041, 8397, 10360, - 6659, 8527, 7919, 0, - 6659, 8527, 7919, 1, 5741, 961, 5990, - 6659, 8527, 7919, 1, 5741, 961, 5991, 657, 7940, - 6659, 8527, 7919, 1, 5741, 961, 6102, - 6659, 8527, 7919, 1, 5741, 4257, 5990, - 6659, 8527, 7919, 1, 5741, 5201, 5990, - 6659, 8527, 7919, 1, 5741, 5201, 5991, 657, 5992, - 6659, 8527, 7919, 1, 5741, 5201, 6102, - 6659, 8527, 7919, 1, 5741, 5992, - 6659, 8527, 7919, 1, 5741, 6128, - 6659, 8527, 7919, 1, 5741, 6129, 657, 961, 6102, - 6659, 8527, 7919, 1, 5741, 6129, 657, 4257, 5990, - 6659, 8527, 7919, 1, 5741, 6129, 657, 5992, - 6659, 8527, 7919, 1, 5741, 6129, 657, 6460, - 6659, 8527, 7919, 1, 5741, 6129, 657, 7256, - 6659, 8527, 7919, 1, 5741, 6152, - 6659, 8527, 7919, 1, 5741, 6460, - 6659, 8527, 7919, 1, 5741, 7256, - 6659, 8527, 7919, 1, 5741, 7673, 6460, - 6659, 8527, 7919, 1, 5741, 7940, - 6659, 8527, 7919, 1, 5741, 8040, - 6659, 8527, 7919, 1, 5741, 8244, - 6659, 8527, 7919, 1, 5741, 9667, 6128, - 6659, 8527, 7919, 1, 5741, 10158, - 6659, 8527, 7919, 1, 5741, 10159, 657, 7940, - 6659, 8527, 7919, 1, 5741, 10782, - 6659, 8527, 7919, 1, 5741, 10783, 657, 961, 6102, - 6659, 8527, 7919, 1, 5741, 10783, 657, 4257, 5990, - 6659, 8527, 7919, 1, 5741, 10783, 657, 5992, - 6659, 8527, 7919, 1, 5741, 10783, 657, 6460, - 6659, 8527, 7919, 1, 5741, 10783, 657, 7256, - 6659, 8527, 7919, 2, - 6659, 8527, 7919, 3, 5741, 961, 5990, - 6659, 8527, 7919, 3, 5741, 961, 6102, - 6659, 8527, 7919, 3, 5741, 4256, - 6659, 8527, 7919, 3, 5741, 4581, 6102, - 6659, 8527, 7919, 3, 5741, 8244, - 6659, 8527, 7919, 3, 5741, 8324, - 6659, 8527, 7919, 4, - 6659, 8527, 7919, 5, 5741, 961, 5990, - 6659, 8527, 7919, 5, 5741, 4256, - 6659, 8527, 7919, 5, 5741, 5992, - 6659, 8527, 7919, 5, 5741, 6152, - 6659, 8527, 7919, 5, 5741, 8244, - 6659, 8527, 7919, 5, 5741, 8534, - 6659, 8527, 7919, 5, 5741, 8535, 657, 5992, - 6659, 8527, 7919, 5, 5741, 10782, - 6659, 8527, 7919, 6, - 6659, 8527, 7919, 7, 5741, 961, 5990, - 6659, 8527, 7919, 7, 5741, 961, 6102, - 6659, 8527, 7919, 7, 5741, 4256, - 6659, 8527, 7919, 7, 5741, 4581, 6102, - 6659, 8527, 7919, 7, 5741, 6152, - 6659, 8527, 7919, 7, 5741, 7143, 7919, 50, - 6659, 8527, 7919, 7, 5741, 7143, 7919, 51, 5741, 6152, - 6659, 8527, 7919, 7, 5741, 8244, - 6659, 8527, 7919, 7, 5741, 8324, - 6659, 8527, 7919, 7, 5741, 8534, - 6659, 8527, 7919, 7, 5741, 10783, 6102, - 6659, 8527, 7919, 8, - 6659, 8527, 7919, 9, 5741, 961, 5990, - 6659, 8527, 7919, 9, 5741, 961, 6102, - 6659, 8527, 7919, 9, 5741, 4257, 5990, - 6659, 8527, 7919, 9, 5741, 5992, - 6659, 8527, 7919, 9, 5741, 6128, - 6659, 8527, 7919, 9, 5741, 6152, - 6659, 8527, 7919, 9, 5741, 6460, - 6659, 8527, 7919, 9, 5741, 7256, - 6659, 8527, 7919, 9, 5741, 7257, 6102, - 6659, 8527, 7919, 9, 5741, 7673, 6460, - 6659, 8527, 7919, 9, 5741, 7940, - 6659, 8527, 7919, 9, 5741, 7941, 657, 5992, - 6659, 8527, 7919, 9, 5741, 7941, 657, 6460, - 6659, 8527, 7919, 9, 5741, 8040, - 6659, 8527, 7919, 9, 5741, 8244, - 6659, 8527, 7919, 9, 5741, 8534, - 6659, 8527, 7919, 9, 5741, 8535, 657, 6128, - 6659, 8527, 7919, 9, 5741, 9667, 6128, - 6659, 8527, 7919, 9, 5741, 10158, - 6659, 8527, 7919, 9, 5741, 10782, - 6659, 8527, 7919, 9, 5741, 10783, 657, 961, 6102, - 6659, 8527, 7919, 9, 5741, 10783, 657, 4257, 5990, - 6659, 8527, 7919, 9, 5741, 10783, 657, 5992, - 6659, 8527, 7919, 9, 5741, 10783, 657, 6460, - 6659, 8527, 7919, 9, 5741, 10783, 657, 7256, - 6659, 8527, 7919, 9, 5741, 10783, 6102, - 6659, 8527, 7919, 10, - 6659, 8527, 7919, 11, 5741, 961, 5990, - 6659, 8527, 7919, 11, 5741, 4256, - 6659, 8527, 7919, 12, - 6659, 8527, 7919, 13, 5741, 961, 5990, - 6659, 8527, 7919, 13, 5741, 4256, - 6659, 8527, 7919, 13, 5741, 5992, - 6659, 8527, 7919, 13, 5741, 6128, - 6659, 8527, 7919, 13, 5741, 6152, - 6659, 8527, 7919, 13, 5741, 7940, - 6659, 8527, 7919, 13, 5741, 8244, - 6659, 8527, 7919, 13, 5741, 8534, - 6659, 8527, 7919, 13, 5741, 10782, - 6659, 8527, 7919, 14, - 6659, 8527, 7919, 15, 5741, 961, 5990, - 6659, 8527, 7919, 15, 5741, 961, 6102, - 6659, 8527, 7919, 15, 5741, 6129, 6102, - 6659, 8527, 7919, 15, 5741, 6152, - 6659, 8527, 7919, 15, 5741, 8244, - 6659, 8527, 7919, 15, 5741, 8534, - 6659, 8527, 7919, 15, 5741, 10156, - 6659, 8527, 7919, 15, 5741, 10158, - 6659, 8527, 7919, 15, 5741, 10782, - 6659, 8527, 7919, 16, - 6659, 8527, 7919, 17, 5741, 961, 5990, - 6659, 8527, 7919, 17, 5741, 961, 6102, - 6659, 8527, 7919, 17, 5741, 4257, 5990, - 6659, 8527, 7919, 17, 5741, 5992, - 6659, 8527, 7919, 17, 5741, 6128, - 6659, 8527, 7919, 17, 5741, 6152, - 6659, 8527, 7919, 17, 5741, 6460, - 6659, 8527, 7919, 17, 5741, 7256, - 6659, 8527, 7919, 17, 5741, 7257, 6102, - 6659, 8527, 7919, 17, 5741, 7673, 6460, - 6659, 8527, 7919, 17, 5741, 7940, - 6659, 8527, 7919, 17, 5741, 8040, - 6659, 8527, 7919, 17, 5741, 8244, - 6659, 8527, 7919, 17, 5741, 9667, 6128, - 6659, 8527, 7919, 17, 5741, 10158, - 6659, 8527, 7919, 17, 5741, 10159, 657, 5992, - 6659, 8527, 7919, 17, 5741, 10782, - 6659, 8527, 7919, 18, - 6659, 8527, 7919, 19, 5741, 8244, - 6659, 8527, 7919, 19, 5741, 10782, - 6659, 8527, 7919, 20, - 6659, 8527, 7919, 21, 5741, 961, 6102, - 6659, 8527, 7919, 21, 5741, 4256, - 6659, 8527, 7919, 21, 5741, 4581, 6102, - 6659, 8527, 7919, 21, 5741, 5992, - 6659, 8527, 7919, 21, 5741, 6152, - 6659, 8527, 7919, 21, 5741, 8534, - 6659, 8527, 7919, 21, 5741, 10156, - 6659, 8527, 7919, 22, - 6659, 8527, 7919, 23, 5741, 696, - 6659, 8527, 7919, 23, 5741, 961, 6102, - 6659, 8527, 7919, 23, 5741, 961, 6103, 657, 7940, - 6659, 8527, 7919, 23, 5741, 4581, 6102, - 6659, 8527, 7919, 23, 5741, 5992, - 6659, 8527, 7919, 23, 5741, 6152, - 6659, 8527, 7919, 23, 5741, 7143, 7919, 18, - 6659, 8527, 7919, 23, 5741, 7673, 696, - 6659, 8527, 7919, 23, 5741, 7981, 960, - 6659, 8527, 7919, 23, 5741, 7981, 7256, - 6659, 8527, 7919, 23, 5741, 8244, - 6659, 8527, 7919, 23, 5741, 8534, - 6659, 8527, 7919, 23, 5741, 10783, 6102, - 6659, 8527, 7919, 24, - 6659, 8527, 7919, 25, 5741, 961, 5990, - 6659, 8527, 7919, 25, 5741, 961, 6102, - 6659, 8527, 7919, 25, 5741, 5992, - 6659, 8527, 7919, 26, - 6659, 8527, 7919, 27, 5741, 961, 5990, - 6659, 8527, 7919, 27, 5741, 961, 6102, - 6659, 8527, 7919, 27, 5741, 4555, 4256, - 6659, 8527, 7919, 27, 5741, 4581, 6102, - 6659, 8527, 7919, 27, 5741, 4599, 6997, 1628, - 6659, 8527, 7919, 27, 5741, 5992, - 6659, 8527, 7919, 27, 5741, 6152, - 6659, 8527, 7919, 27, 5741, 6460, - 6659, 8527, 7919, 27, 5741, 7143, 7919, 18, - 6659, 8527, 7919, 27, 5741, 7256, - 6659, 8527, 7919, 27, 5741, 8534, - 6659, 8527, 7919, 27, 5741, 10783, 6102, - 6659, 8527, 7919, 28, - 6659, 8527, 7919, 29, 5741, 961, 5990, - 6659, 8527, 7919, 29, 5741, 961, 5991, 657, 7940, - 6659, 8527, 7919, 29, 5741, 961, 6102, - 6659, 8527, 7919, 29, 5741, 4257, 5990, - 6659, 8527, 7919, 29, 5741, 4262, - 6659, 8527, 7919, 29, 5741, 4263, 657, 961, 6102, - 6659, 8527, 7919, 29, 5741, 4263, 657, 4257, 5990, - 6659, 8527, 7919, 29, 5741, 4263, 657, 5992, - 6659, 8527, 7919, 29, 5741, 4263, 657, 6460, - 6659, 8527, 7919, 29, 5741, 4263, 657, 7256, - 6659, 8527, 7919, 29, 5741, 5992, - 6659, 8527, 7919, 29, 5741, 6128, - 6659, 8527, 7919, 29, 5741, 6152, - 6659, 8527, 7919, 29, 5741, 6460, - 6659, 8527, 7919, 29, 5741, 7256, - 6659, 8527, 7919, 29, 5741, 7257, 657, 5992, - 6659, 8527, 7919, 29, 5741, 7257, 657, 7940, - 6659, 8527, 7919, 29, 5741, 7257, 657, 10158, - 6659, 8527, 7919, 29, 5741, 7673, 5992, - 6659, 8527, 7919, 29, 5741, 7673, 6460, - 6659, 8527, 7919, 29, 5741, 7940, - 6659, 8527, 7919, 29, 5741, 7941, 657, 5992, - 6659, 8527, 7919, 29, 5741, 7941, 657, 6460, - 6659, 8527, 7919, 29, 5741, 7981, 7256, - 6659, 8527, 7919, 29, 5741, 8040, - 6659, 8527, 7919, 29, 5741, 8041, 657, 7940, - 6659, 8527, 7919, 29, 5741, 8244, - 6659, 8527, 7919, 29, 5741, 8245, 657, 5992, - 6659, 8527, 7919, 29, 5741, 9667, 6128, - 6659, 8527, 7919, 29, 5741, 10158, - 6659, 8527, 7919, 29, 5741, 10159, 657, 7940, - 6659, 8527, 7919, 29, 5741, 10782, - 6659, 8527, 7919, 29, 5741, 10783, 657, 961, 6102, - 6659, 8527, 7919, 29, 5741, 10783, 657, 4257, 5990, - 6659, 8527, 7919, 29, 5741, 10783, 657, 5992, - 6659, 8527, 7919, 29, 5741, 10783, 657, 6460, - 6659, 8527, 7919, 29, 5741, 10783, 657, 7256, - 6659, 8527, 7919, 30, - 6659, 8527, 7919, 31, 5741, 961, 5990, - 6659, 8527, 7919, 31, 5741, 4256, - 6659, 8527, 7919, 31, 5741, 5992, - 6659, 8527, 7919, 31, 5741, 8244, - 6659, 8527, 7919, 32, - 6659, 8527, 7919, 34, - 6659, 8527, 7919, 35, 5741, 961, 5990, - 6659, 8527, 7919, 35, 5741, 961, 6102, - 6659, 8527, 7919, 35, 5741, 961, 6103, 657, 7940, - 6659, 8527, 7919, 35, 5741, 4581, 6102, - 6659, 8527, 7919, 35, 5741, 5520, - 6659, 8527, 7919, 35, 5741, 5992, - 6659, 8527, 7919, 35, 5741, 6152, - 6659, 8527, 7919, 35, 5741, 7673, 6460, - 6659, 8527, 7919, 35, 5741, 8244, - 6659, 8527, 7919, 35, 5741, 8534, - 6659, 8527, 7919, 35, 5741, 9667, 6128, - 6659, 8527, 7919, 36, - 6659, 8527, 7919, 37, 5741, 961, 5990, - 6659, 8527, 7919, 37, 5741, 961, 6102, - 6659, 8527, 7919, 37, 5741, 961, 6103, 657, 961, 5990, - 6659, 8527, 7919, 37, 5741, 5992, - 6659, 8527, 7919, 37, 5741, 5993, 657, 961, 5990, - 6659, 8527, 7919, 37, 5741, 6152, - 6659, 8527, 7919, 37, 5741, 6153, 657, 961, 5990, - 6659, 8527, 7919, 37, 5741, 6219, 6102, - 6659, 8527, 7919, 37, 5741, 8534, - 6659, 8527, 7919, 37, 5741, 10782, - 6659, 8527, 7919, 38, - 6659, 8527, 7919, 39, 5741, 961, 5990, - 6659, 8527, 7919, 39, 5741, 961, 6102, - 6659, 8527, 7919, 39, 5741, 4256, - 6659, 8527, 7919, 39, 5741, 4581, 6102, - 6659, 8527, 7919, 39, 5741, 6152, - 6659, 8527, 7919, 39, 5741, 6219, 6102, - 6659, 8527, 7919, 39, 5741, 8244, - 6659, 8527, 7919, 39, 5741, 8534, - 6659, 8527, 7919, 39, 5741, 9409, 8244, - 6659, 8527, 7919, 39, 5741, 10555, 4256, - 6659, 8527, 7919, 39, 5741, 10783, 6102, - 6659, 8527, 7919, 40, - 6659, 8527, 7919, 41, 696, - 6659, 8527, 7919, 41, 5741, 961, 6102, - 6659, 8527, 7919, 41, 5741, 4257, 5990, - 6659, 8527, 7919, 41, 5741, 4262, - 6659, 8527, 7919, 41, 5741, 4263, 657, 961, 6102, - 6659, 8527, 7919, 41, 5741, 4263, 657, 4257, 5990, - 6659, 8527, 7919, 41, 5741, 4263, 657, 5992, - 6659, 8527, 7919, 41, 5741, 4263, 657, 6460, - 6659, 8527, 7919, 41, 5741, 4263, 657, 7256, - 6659, 8527, 7919, 41, 5741, 5201, 5990, - 6659, 8527, 7919, 41, 5741, 5992, - 6659, 8527, 7919, 41, 5741, 6128, - 6659, 8527, 7919, 41, 5741, 6152, - 6659, 8527, 7919, 41, 5741, 6460, - 6659, 8527, 7919, 41, 5741, 7256, - 6659, 8527, 7919, 41, 5741, 7257, 657, 5992, - 6659, 8527, 7919, 41, 5741, 7257, 6102, - 6659, 8527, 7919, 41, 5741, 7673, 5992, - 6659, 8527, 7919, 41, 5741, 7673, 6460, - 6659, 8527, 7919, 41, 5741, 7940, - 6659, 8527, 7919, 41, 5741, 7941, 657, 10158, - 6659, 8527, 7919, 41, 5741, 8040, - 6659, 8527, 7919, 41, 5741, 9667, 6128, - 6659, 8527, 7919, 41, 5741, 10158, - 6659, 8527, 7919, 41, 5741, 10159, 657, 5992, - 6659, 8527, 7919, 41, 5741, 10159, 657, 6152, - 6659, 8527, 7919, 41, 5741, 10159, 657, 6460, - 6659, 8527, 7919, 41, 5741, 10159, 657, 7940, - 6659, 8527, 7919, 41, 5741, 10159, 6102, - 6659, 8527, 7919, 41, 5741, 10782, - 6659, 8527, 7919, 41, 5741, 10783, 6102, - 6659, 8527, 7919, 42, - 6659, 8527, 7919, 43, 5741, 961, 6102, - 6659, 8527, 7919, 43, 5741, 4256, - 6659, 8527, 7919, 43, 5741, 7256, - 6659, 8527, 7919, 44, - 6659, 8527, 7919, 45, 5741, 961, 5990, - 6659, 8527, 7919, 45, 5741, 961, 6102, - 6659, 8527, 7919, 45, 5741, 5992, - 6659, 8527, 7919, 45, 5741, 6460, - 6659, 8527, 7919, 45, 5741, 10158, - 6659, 8527, 7919, 45, 5741, 10782, - 6659, 8527, 7919, 46, - 6659, 8527, 7919, 47, 5741, 961, 5990, - 6659, 8527, 7919, 47, 5741, 10158, - 6659, 8527, 7919, 48, - 6659, 8527, 7919, 49, 5741, 961, 5990, - 6659, 8527, 7919, 49, 5741, 961, 6102, - 6659, 8527, 7919, 49, 5741, 4256, - 6659, 8527, 7919, 49, 5741, 4257, 5990, - 6659, 8527, 7919, 49, 5741, 5992, - 6659, 8527, 7919, 49, 5741, 6460, - 6659, 8527, 7919, 49, 5741, 7256, - 6659, 8527, 7919, 49, 5741, 7940, - 6659, 8527, 7919, 49, 5741, 8244, - 6659, 8527, 7919, 49, 5741, 10158, - 6659, 8527, 7919, 49, 5741, 10782, - 6659, 8527, 7919, 50, - 6659, 8527, 7919, 51, 5741, 961, 5990, - 6659, 8527, 7919, 51, 5741, 961, 6102, - 6659, 8527, 7919, 51, 5741, 4256, - 6659, 8527, 7919, 51, 5741, 4581, 6102, - 6659, 8527, 7919, 51, 5741, 5992, - 6659, 8527, 7919, 51, 5741, 6152, - 6659, 8527, 7919, 51, 5741, 8244, - 6659, 8527, 7919, 51, 5741, 10156, - 6659, 8527, 7919, 51, 5741, 10782, - 6659, 8527, 7919, 66, - 6659, 8527, 7919, 67, 5741, 5992, - 6659, 8527, 7919, 67, 5741, 7940, - 6659, 8527, 7919, 146, - 6659, 8527, 7919, 147, 5741, 6152, - 6659, 8527, 7919, 320, - 6659, 8527, 7919, 382, - 6659, 8527, 7919, 404, - 6659, 8527, 7919, 420, - 6659, 8527, 7919, 1020, - 6659, 8527, 7919, 1034, - 6659, 8527, 7919, 1040, - 6659, 8527, 7919, 1048, - 6659, 8527, 7919, 1049, 5741, 6152, - 6659, 8527, 7919, 1049, 9870, - 6659, 8527, 7919, 4119, 14, - 6659, 8527, 7919, 4338, - 6659, 8527, 7919, 5039, 8, - 6659, 8527, 7919, 5039, 28, - 6659, 8527, 7919, 5603, 2358, - 6659, 8527, 7919, 5603, 2584, - 6659, 8527, 7919, 5603, 3942, - 6659, 8527, 7919, 5756, - 6659, 8527, 7919, 5838, - 6659, 8527, 7919, 6410, - 6659, 8527, 7919, 6540, - 6659, 8527, 7919, 7046, - 6659, 8527, 7919, 7143, 33, 5741, 4257, 5520, - 6659, 8527, 7919, 7242, - 6659, 8527, 7919, 8345, 24, - 6659, 8527, 7919, 8345, 42, - 6659, 8527, 7919, 8453, 6, - 6659, 8527, 7919, 8763, 5478, - 6659, 8527, 7919, 9220, - 6659, 8527, 7919, 9871, 8, - 6659, 8527, 9701, 250, - 6659, 8527, 9701, 398, - 6659, 10599, 7143, 7919, 0, - 6659, 10599, 7143, 7919, 8, - 6659, 10599, 7143, 7919, 16, - 6659, 10599, 7143, 7919, 28, - 6659, 10599, 7143, 7919, 34, - 6659, 10599, 7143, 7919, 40, - 6659, 10599, 7143, 7919, 42, - 6659, 10599, 7143, 7919, 46, - 6659, 10599, 7143, 7919, 7046, - 6668, - 6671, 4555, 10007, 7085, 8515, 9778, - 6671, 6997, 10007, 7085, 8515, 9778, - 6671, 7064, - 6671, 10043, 696, - 6673, 5401, 1670, - 6673, 5401, 5270, - 6673, 5401, 10428, - 6673, 5401, 10478, - 6673, 6287, 2004, - 6673, 6287, 2358, - 6673, 6287, 2584, - 6673, 6287, 3942, - 6673, 6287, 3956, - 6673, 6287, 4854, - 6673, 6287, 5878, - 6673, 6287, 6312, - 6673, 6287, 7060, - 6673, 6287, 7244, - 6673, 7143, 7919, 286, - 6673, 7143, 7919, 312, - 6673, 7143, 7919, 342, - 6673, 7143, 7919, 370, - 6673, 7143, 7919, 430, - 6673, 7143, 7919, 472, - 6673, 7143, 7919, 510, - 6673, 7143, 7919, 1874, - 6673, 7143, 7919, 9280, - 6673, 7341, 5401, 0, - 6673, 7341, 5401, 8, - 6673, 7341, 5401, 16, - 6673, 7341, 5401, 28, - 6673, 7341, 5401, 40, - 6673, 7341, 5401, 70, - 6673, 7341, 5401, 88, - 6673, 7341, 5401, 150, - 6673, 7341, 5401, 410, - 6673, 7919, 94, - 6673, 7919, 108, - 6673, 7919, 128, - 6673, 7919, 200, - 6673, 7919, 220, - 6673, 7919, 274, - 6673, 7919, 286, - 6673, 7919, 312, - 6673, 7919, 342, - 6673, 7919, 370, - 6673, 7919, 430, - 6673, 7919, 472, - 6673, 7919, 486, - 6673, 7919, 510, - 6673, 7919, 566, - 6673, 7919, 596, - 6673, 7919, 728, - 6673, 7919, 810, - 6673, 7919, 920, - 6673, 7919, 1158, - 6673, 7919, 1394, - 6673, 7919, 1492, - 6673, 7919, 1874, - 6673, 7919, 2042, - 6673, 7919, 2334, - 6673, 7919, 2384, - 6673, 7919, 2486, - 6673, 7919, 2820, - 6673, 9853, 4630, - 6673, 10595, 7919, 472, - 6673, 10595, 7919, 566, - 6673, 10595, 7919, 596, - 6673, 11329, 4630, - 6673, 12331, 7918, - 6691, 2005, 7679, 6122, - 6691, 2005, 9043, 6122, - 6691, 3943, 8713, 6122, - 6691, 4119, 6122, - 6691, 4119, 7582, - 6691, 4119, 8817, 7357, 7582, - 6691, 4555, 9849, 9357, 666, - 6691, 4555, 10010, - 6691, 4555, 12159, 12203, 6046, - 6691, 6119, 9882, - 6691, 6997, 7601, 5741, 960, - 6691, 6997, 8072, - 6691, 6997, 9849, 9357, 666, - 6691, 6997, 9891, 7357, 8230, - 6691, 6997, 10010, - 6691, 6997, 12159, 10121, 6046, - 6691, 6997, 12233, 7357, 8230, - 6691, 7061, 8713, 6122, - 6691, 7245, 8713, 6122, - 6691, 7245, 9851, 6122, - 6731, 5400, - 6739, 5400, - 6739, 5401, 257, 10010, - 6739, 5401, 5741, 961, 6102, - 6739, 5401, 5741, 6219, 5990, - 6739, 5401, 5741, 8143, 3860, - 6739, 5401, 5741, 8731, 3860, - 6739, 7256, - 6765, 3947, 5400, - 6765, 7071, 5400, - 6765, 8937, 5400, - 6767, 7259, 9772, - 6767, 7308, - 6767, 7309, 9773, 5741, 960, - 6767, 7309, 9773, 5741, 5094, - 6767, 7357, 10043, 696, - 6767, 8231, 7309, 9772, - 6767, 8231, 11799, 9772, - 6767, 8557, 961, 9772, - 6767, 8557, 5095, 9772, - 6767, 8557, 7259, 9772, - 6767, 8887, 414, - 6767, 8887, 656, - 6767, 9038, - 6767, 10136, - 6767, 10600, - 6767, 11798, - 6768, - 6775, 5400, - 6829, 3895, 657, 7157, 5733, 6046, - 6829, 3895, 6046, - 6829, 3895, 6047, 657, 7157, 3895, 6046, - 6829, 3895, 6047, 5741, 4256, - 6829, 3895, 6047, 9377, 6829, 5733, 6046, - 6829, 3895, 6047, 9377, 7157, 3895, 6046, - 6829, 3895, 6117, 6046, - 6829, 3895, 7357, 6046, - 6829, 3895, 7673, 6046, - 6829, 5733, 657, 7157, 3895, 6046, - 6829, 5733, 6046, - 6829, 5733, 6047, 521, 4599, 696, - 6829, 5733, 6047, 521, 7600, - 6829, 5733, 6047, 657, 6829, 3895, 6046, - 6829, 5733, 6047, 5741, 4256, - 6829, 5733, 6047, 9377, 6829, 3895, 6046, - 6829, 5733, 6117, 6046, - 6829, 5733, 7357, 6046, - 6829, 5733, 7673, 6046, - 6867, 7159, 4630, - 6867, 7919, 414, - 6867, 7919, 548, - 6867, 7919, 2008, - 6867, 7919, 3024, - 6867, 7919, 3720, - 6867, 7919, 3748, - 6867, 7919, 4078, - 6867, 7919, 4324, - 6867, 7919, 4604, - 6867, 7919, 4708, - 6867, 7919, 4856, - 6867, 7919, 5254, - 6867, 7919, 5278, - 6867, 7919, 5676, - 6867, 7919, 6100, - 6867, 7919, 6164, - 6867, 7919, 6362, - 6867, 7919, 6914, - 6867, 7919, 7260, - 6867, 7919, 8238, - 6867, 7919, 8702, - 6867, 7919, 8704, - 6867, 7919, 8818, - 6867, 7919, 8948, - 6867, 7919, 10028, - 6867, 7919, 11320, - 6867, 8735, 4630, - 6867, 9871, 8735, 4630, - 6879, 71, 7915, 4630, - 6879, 89, 7915, 4630, - 6879, 5401, 6840, - 6879, 5401, 8392, - 6879, 5401, 9236, - 6879, 5401, 9280, - 6879, 5401, 9314, - 6879, 5401, 11212, - 6879, 6287, 2004, - 6879, 6287, 2358, - 6879, 6287, 2584, - 6879, 6287, 3942, - 6879, 6287, 3956, - 6879, 6287, 4854, - 6879, 6287, 5878, - 6879, 6287, 6312, - 6879, 6287, 7060, - 6879, 6287, 7244, - 6879, 7341, 5401, 8, - 6879, 7341, 5401, 16, - 6879, 7341, 5401, 28, - 6879, 7341, 5401, 40, - 6879, 7341, 5401, 58, - 6879, 7341, 5401, 70, - 6879, 7341, 5401, 88, - 6879, 7341, 5401, 248, - 6879, 7341, 5401, 550, - 6879, 7341, 5401, 9239, 34, - 6879, 7840, - 6879, 7919, 0, - 6879, 7919, 8, - 6879, 7919, 16, - 6879, 7919, 28, - 6879, 7919, 40, - 6879, 7919, 58, - 6879, 7919, 70, - 6879, 7919, 88, - 6879, 7919, 94, - 6879, 7919, 108, - 6879, 7919, 128, - 6879, 7919, 200, - 6879, 7919, 220, - 6879, 7919, 248, - 6879, 7919, 274, - 6879, 7919, 286, - 6879, 7919, 312, - 6879, 7919, 342, - 6879, 7919, 370, - 6879, 7919, 430, - 6879, 7919, 472, - 6879, 7919, 486, - 6879, 7919, 510, - 6879, 7919, 550, - 6879, 7919, 554, - 6879, 7919, 566, - 6879, 7919, 596, - 6879, 7919, 728, - 6879, 7919, 810, - 6879, 7919, 898, - 6879, 7919, 920, - 6879, 7919, 1158, - 6879, 7919, 1394, - 6879, 7919, 1492, - 6879, 7919, 1664, - 6879, 7919, 1874, - 6879, 7919, 1916, - 6879, 7919, 1962, - 6879, 7919, 2042, - 6879, 7919, 2234, - 6879, 7919, 2262, - 6879, 7919, 2334, - 6879, 7919, 2384, - 6879, 7919, 2486, - 6879, 7919, 2552, - 6879, 7919, 2900, - 6879, 7919, 3782, - 6879, 7919, 5626, - 6879, 7919, 9239, 22, - 6879, 7919, 9239, 34, - 6879, 7919, 9239, 322, - 6879, 7919, 9239, 480, - 6883, 5400, - 6907, 8258, - 6935, 401, 9663, 5400, - 6936, - 6943, 5400, - 6946, - 6949, 8169, 8258, - 6980, - 6997, 667, 11779, 8514, - 6997, 1677, 11035, 8514, - 6997, 2005, 7679, 6122, - 6997, 3939, 5520, - 6997, 4119, 6117, 7582, - 6997, 4119, 6122, - 6997, 5518, - 6997, 6020, - 6997, 6021, 5741, 666, - 6997, 6021, 5741, 10313, 8433, 6046, - 6997, 6021, 7671, 12179, 7958, - 6997, 6021, 8514, - 6997, 6021, 8515, 5741, 960, - 6997, 6021, 9229, 5741, 8230, - 6997, 6021, 12179, 7958, - 6997, 6047, 5741, 7143, 7582, - 6997, 6047, 5741, 8557, 5094, - 6997, 6117, 10007, 7085, 8514, - 6997, 6117, 11005, 8514, - 6997, 6229, 8514, - 6997, 6229, 8515, 6691, 4256, - 6997, 6229, 8515, 7313, 4256, - 6997, 6229, 8515, 7981, 6928, - 6997, 6378, - 6997, 6885, 4400, - 6997, 7357, 6229, 8514, - 6997, 7357, 7601, 8514, - 6997, 7357, 8231, 8514, - 6997, 7357, 10007, 7085, 8514, - 6997, 7357, 11005, 8514, - 6997, 7357, 11424, - 6997, 7601, 8514, - 6997, 7671, 12179, 8514, - 6997, 7673, 6021, 8514, - 6997, 7673, 6047, 5741, 9069, 4128, - 6997, 7673, 8409, 6364, - 6997, 7673, 10535, 4630, - 6997, 8027, 7711, 11109, 9038, - 6997, 8127, 9769, 8514, - 6997, 8207, 10535, 4630, - 6997, 8231, 8514, - 6997, 8231, 8515, 5741, 5575, 257, 2533, 7600, - 6997, 8231, 8515, 5741, 5575, 257, 7539, 7600, - 6997, 8231, 8515, 5741, 6968, - 6997, 8231, 8515, 5741, 10032, - 6997, 8231, 8515, 6691, 7600, - 6997, 8231, 8515, 7313, 7600, - 6997, 8231, 8515, 10334, - 6997, 8409, 6364, - 6997, 8536, - 6997, 9875, 689, 10148, - 6997, 10007, 7085, 8514, - 6997, 10010, - 6997, 10011, 5991, 4555, 10010, - 6997, 10043, 753, 4580, - 6997, 11109, 9038, - 6997, 11424, - 6997, 11425, 6691, 4256, - 6997, 11425, 7313, 4256, - 6997, 11425, 10334, - 6997, 12179, 8514, - 6997, 12327, 8514, - 7007, 8957, 2004, - 7007, 8957, 2005, 8794, - 7007, 8957, 2005, 9994, - 7007, 8957, 2005, 9995, 5, 6, - 7007, 8957, 2358, - 7007, 8957, 2478, - 7007, 8957, 2479, 9994, - 7007, 8957, 2584, - 7007, 8957, 3942, - 7007, 8957, 3943, 8794, - 7007, 8957, 3943, 9994, - 7007, 8957, 3956, - 7007, 8957, 4854, - 7007, 8957, 6312, - 7007, 8957, 6370, - 7007, 8957, 7060, - 7007, 8957, 7244, - 7007, 8957, 7682, - 7007, 8957, 8350, - 7007, 8957, 9871, 2005, 8794, - 7019, 6225, 11442, - 7019, 7471, 8258, - 7019, 7919, 4, - 7019, 7919, 6, - 7019, 7919, 8, - 7019, 7919, 12, - 7019, 7919, 28, - 7019, 7919, 32, - 7019, 7919, 42, - 7019, 7919, 44, - 7019, 7919, 46, - 7019, 7919, 48, - 7019, 7919, 50, - 7019, 7919, 63, 0, - 7019, 7919, 398, - 7019, 7919, 408, - 7019, 7919, 417, 28, - 7019, 7919, 606, - 7019, 7919, 804, - 7019, 7919, 1004, - 7019, 7919, 1020, - 7019, 7919, 1040, - 7019, 7919, 1128, - 7019, 7919, 1142, - 7019, 7919, 1370, - 7019, 7919, 1376, - 7019, 7919, 3020, - 7019, 7919, 3612, - 7019, 7919, 3927, 3931, 185, 10, - 7019, 7919, 3997, 4111, 12, - 7019, 7919, 4341, 265, 1383, 16, - 7019, 7919, 4349, 1024, - 7019, 7919, 4449, 20, - 7019, 7919, 5470, - 7019, 7919, 5691, 549, 40, - 7019, 7919, 6013, 6328, - 7019, 7919, 6027, 0, - 7019, 7919, 6160, - 7019, 7919, 6237, 3745, 6, - 7019, 7919, 6311, 155, 8, - 7019, 7919, 6473, 14, - 7019, 7919, 6575, 18, - 7019, 7919, 6602, - 7019, 7919, 6975, 2211, 5183, 34, - 7019, 7919, 7119, 12411, 36, - 7019, 7919, 7267, 2507, 2595, 38, - 7019, 7919, 7371, 5757, 44, - 7019, 7919, 7801, 14, - 7019, 7919, 7830, - 7019, 7919, 7907, 4537, 4595, 22, - 7019, 7919, 7949, 1729, 24, - 7019, 7919, 8007, 1965, 4747, 26, - 7019, 7919, 8046, - 7019, 7919, 8081, 8077, 30, - 7019, 7919, 8217, 36, - 7019, 7919, 8590, - 7019, 7919, 8985, 6347, 28, - 7019, 7919, 9321, 6107, 8513, 2, - 7019, 7919, 9540, - 7019, 7919, 9542, - 7019, 7919, 9544, - 7019, 7919, 9997, 7249, 7242, - 7019, 7919, 11788, - 7019, 7919, 12311, 0, - 7019, 7919, 12312, - 7019, 7919, 12355, 66, - 7019, 7919, 12356, - 7019, 7919, 12369, 28, - 7019, 7919, 12371, 36, - 7019, 7919, 12373, 38, - 7019, 7919, 12409, 28, - 7019, 7919, 12425, 24, - 7019, 7919, 12427, 26, - 7019, 7919, 12439, 24, - 7019, 7919, 12477, 14, - 7019, 7919, 12491, 14, - 7019, 7919, 12499, 2, - 7019, 8207, 11442, - 7019, 9319, 8258, - 7019, 9747, 11442, - 7019, 10023, 8258, - 7021, 5400, - 7103, 547, 5518, - 7103, 547, 5519, 5741, 10032, - 7103, 547, 5519, 5991, 7103, 3863, 5518, - 7103, 3863, 5518, - 7103, 3863, 5519, 5741, 8988, - 7103, 4555, 5518, - 7103, 11083, 6047, 5991, 10449, 6046, - 7131, 657, 10798, - 7138, - 7143, 163, 3758, - 7143, 2659, 5741, 10032, - 7143, 3965, 5478, - 7143, 4555, 6229, 8514, - 7143, 4555, 10007, 7085, 8514, - 7143, 4555, 11424, - 7143, 5095, 5400, - 7143, 6212, - 7143, 6218, - 7143, 6997, 6229, 8514, - 7143, 6997, 10007, 7085, 8514, - 7143, 6997, 11424, - 7143, 7007, 8957, 2004, - 7143, 7007, 8957, 2005, 8794, - 7143, 7007, 8957, 2005, 9994, - 7143, 7007, 8957, 2358, - 7143, 7007, 8957, 2478, - 7143, 7007, 8957, 2584, - 7143, 7007, 8957, 3942, - 7143, 7007, 8957, 3943, 8794, - 7143, 7007, 8957, 3956, - 7143, 7007, 8957, 4854, - 7143, 7007, 8957, 6312, - 7143, 7007, 8957, 6370, - 7143, 7007, 8957, 7060, - 7143, 7007, 8957, 7244, - 7143, 7007, 8957, 7682, - 7143, 7007, 8957, 8350, - 7143, 7256, - 7143, 7651, 5400, - 7143, 7687, 5400, - 7143, 8031, 5400, - 7143, 8717, 400, - 7143, 8717, 401, 5741, 8988, - 7143, 8717, 401, 5741, 10043, 697, 87, 1019, 401, 10979, 8244, - 7143, 9009, 5400, - 7143, 9061, 9134, - 7143, 9308, - 7143, 9369, 85, 7974, - 7143, 9369, 5741, 8988, - 7143, 9369, 5741, 10043, 697, 87, 1019, 401, 10979, 8244, - 7143, 9853, 4630, - 7143, 10074, - 7143, 10451, 5400, - 7143, 10562, - 7143, 10785, 86, - 7143, 11329, 4630, - 7143, 11355, 6218, - 7143, 11779, 5400, - 7143, 11784, - 7145, 9038, - 7148, - 7155, 10541, 10138, - 7157, 3895, 6046, - 7157, 3895, 6047, 521, 7600, - 7157, 3895, 6047, 657, 7157, 5733, 6046, - 7157, 3895, 6047, 5741, 4256, - 7157, 3895, 6047, 9377, 6829, 3895, 6046, - 7157, 3895, 6117, 6046, - 7157, 3895, 7357, 6046, - 7157, 3895, 7673, 6046, - 7157, 5733, 6046, - 7157, 5733, 6047, 657, 6829, 5733, 6046, - 7157, 5733, 6047, 5741, 4256, - 7157, 5733, 6117, 6046, - 7157, 5733, 7357, 6046, - 7157, 5733, 7673, 6046, - 7158, - 7169, 6117, 11083, 6046, - 7177, 401, 7816, - 7177, 401, 11198, - 7209, 3758, - 7215, 85, 5991, 5400, - 7215, 89, 7915, 4630, - 7215, 897, 5400, - 7215, 5401, 8392, - 7215, 5401, 9236, - 7215, 5401, 9280, - 7215, 5815, 5400, - 7215, 6275, 5400, - 7215, 6287, 2004, - 7215, 6287, 2358, - 7215, 6287, 2584, - 7215, 6287, 3942, - 7215, 6287, 3956, - 7215, 6287, 4854, - 7215, 6287, 5878, - 7215, 6287, 6312, - 7215, 6287, 7060, - 7215, 6287, 7244, - 7215, 6749, 5400, - 7215, 7021, 5400, - 7215, 7341, 5401, 8, - 7215, 7341, 5401, 16, - 7215, 7341, 5401, 28, - 7215, 7341, 5401, 40, - 7215, 7341, 5401, 58, - 7215, 7341, 5401, 70, - 7215, 7341, 5401, 88, - 7215, 7341, 5401, 150, - 7215, 7341, 5401, 248, - 7215, 7341, 5401, 410, - 7215, 7341, 5401, 550, - 7215, 7605, 5400, - 7215, 7919, 0, - 7215, 7919, 8, - 7215, 7919, 16, - 7215, 7919, 28, - 7215, 7919, 40, - 7215, 7919, 58, - 7215, 7919, 70, - 7215, 7919, 88, - 7215, 7919, 108, - 7215, 7919, 150, - 7215, 7919, 220, - 7215, 7919, 248, - 7215, 7919, 274, - 7215, 7919, 286, - 7215, 7919, 312, - 7215, 7919, 342, - 7215, 7919, 370, - 7215, 7919, 410, - 7215, 7919, 430, - 7215, 7919, 472, - 7215, 7919, 486, - 7215, 7919, 510, - 7215, 7919, 550, - 7215, 7919, 554, - 7215, 7919, 596, - 7215, 7919, 1664, - 7215, 7919, 1874, - 7215, 7919, 1916, - 7215, 7919, 1962, - 7215, 7919, 2262, - 7215, 7919, 2334, - 7215, 7919, 2384, - 7215, 7919, 2552, - 7215, 7919, 4592, - 7215, 7919, 4894, - 7215, 8031, 2005, 8794, - 7215, 8031, 2005, 9994, - 7215, 8031, 2478, - 7215, 8031, 5400, - 7231, 3851, 1931, 6352, - 7231, 7694, - 7245, 961, 11442, - 7245, 11083, 7480, - 7245, 11225, 7687, 7122, - 7245, 11255, 6020, - 7255, 11175, 10580, - 7256, - 7257, 9772, - 7257, 9773, 5741, 961, 5990, - 7257, 9773, 5741, 8143, 3860, - 7257, 9773, 5991, 11083, 6046, - 7259, 5741, 4555, 4119, 6116, - 7259, 5741, 6997, 4119, 6116, - 7277, 8146, - 7281, 4631, 5400, - 7308, - 7309, 5741, 6739, 5400, - 7309, 5741, 8887, 414, - 7309, 5741, 8988, - 7309, 5991, 697, 5991, 11798, - 7309, 5991, 11798, - 7309, 7525, 657, 7847, 5741, 7308, - 7313, 2005, 7679, 6122, - 7313, 4119, 6122, - 7313, 4119, 7582, - 7313, 4119, 8817, 7357, 7582, - 7313, 4555, 415, 6691, 6997, 6229, 8515, 9088, - 7313, 4555, 7601, 5741, 960, - 7313, 4555, 9849, 9357, 666, - 7313, 4555, 10010, - 7313, 6119, 9882, - 7313, 6997, 415, 6691, 4555, 6229, 8515, 9088, - 7313, 6997, 8072, - 7313, 6997, 9849, 9357, 666, - 7313, 6997, 9891, 7357, 8230, - 7313, 6997, 10010, - 7313, 6997, 12233, 7357, 8230, - 7336, - 7346, - 7355, 401, 7636, - 7357, 547, 9827, 6570, - 7357, 1890, - 7357, 2403, 5741, 5178, - 7357, 3717, 5484, - 7357, 3863, 9827, 6570, - 7357, 3944, - 7357, 3957, 9029, 5472, - 7357, 4555, 9827, 6570, - 7357, 5472, - 7357, 6175, 4478, - 7357, 6175, 5056, - 7357, 6175, 5214, - 7357, 6175, 6966, - 7357, 6175, 7530, - 7357, 6175, 7884, - 7357, 6487, 5484, - 7357, 6997, 9827, 6570, - 7357, 7099, 6928, - 7357, 7143, 8230, - 7357, 7161, 5484, - 7357, 7556, - 7357, 7582, - 7357, 7583, 5741, 961, 6996, - 7357, 7583, 5741, 2585, 3860, - 7357, 7583, 5741, 3863, 6046, - 7357, 7583, 5741, 6691, 4555, 9848, - 7357, 7583, 5741, 6691, 6997, 9848, - 7357, 7583, 5741, 7313, 4555, 9848, - 7357, 7583, 5741, 7313, 6997, 9848, - 7357, 7971, 7143, 8230, - 7357, 7971, 8230, - 7357, 8183, 960, - 7357, 8230, - 7357, 8231, 5741, 6691, 4555, 9848, - 7357, 8231, 5741, 6691, 6997, 9848, - 7357, 8231, 5741, 7313, 4555, 9848, - 7357, 8231, 5741, 7313, 6997, 9848, - 7357, 8231, 5741, 7569, 10043, 4580, - 7357, 8231, 5741, 9069, 8578, - 7357, 8231, 5741, 10043, 10103, 4580, - 7357, 8231, 5741, 10449, 5574, - 7357, 8231, 5741, 11083, 5574, - 7357, 8231, 10793, 6117, 7143, 8230, - 7357, 8616, - 7357, 8617, 5484, - 7357, 8617, 5741, 8541, 960, - 7357, 8617, 10793, 6117, 7143, 8616, - 7357, 8788, - 7357, 9127, 3920, - 7357, 9598, - 7357, 9611, 3920, - 7357, 9810, - 7357, 9882, - 7357, 10011, 10793, 7143, 7357, 10010, - 7357, 10043, 696, - 7357, 10043, 10542, - 7357, 10388, - 7357, 10542, - 7357, 10690, - 7357, 10700, - 7357, 11691, 7143, 10010, - 7357, 11691, 10010, - 7357, 11691, 10011, 5741, 960, - 7357, 12217, 8616, - 7357, 12217, 8617, 5741, 10449, 5574, - 7357, 12217, 8617, 5741, 11083, 5574, - 7357, 12231, 7143, 10010, - 7357, 12231, 10010, - 7357, 12265, 7143, 10010, - 7357, 12265, 9030, - 7357, 12265, 10010, - 7357, 12282, - 7357, 12365, 7143, 10010, - 7357, 12365, 9030, - 7357, 12365, 10010, - 7447, 965, 8913, 6377, 9162, - 7447, 5747, 10567, 960, - 7447, 5747, 10567, 4580, - 7447, 6173, 4630, - 7447, 7935, 8913, 6377, 9162, - 7447, 8031, 2004, - 7447, 8031, 2005, 8794, - 7447, 8031, 2005, 9994, - 7447, 8031, 2358, - 7447, 8031, 2359, 8794, - 7447, 8031, 2359, 9994, - 7447, 8031, 2478, - 7447, 8031, 2479, 9994, - 7447, 8031, 2584, - 7447, 8031, 2585, 8794, - 7447, 8031, 2585, 9994, - 7447, 8031, 3942, - 7447, 8031, 3943, 8794, - 7447, 8031, 3943, 9994, - 7447, 8031, 3956, - 7447, 8031, 3957, 8794, - 7447, 8031, 3957, 9994, - 7447, 8031, 4854, - 7447, 8031, 4855, 8794, - 7447, 8031, 4855, 9994, - 7447, 8031, 6312, - 7447, 8031, 6313, 8794, - 7447, 8031, 6313, 9994, - 7447, 8031, 6370, - 7447, 8031, 6371, 9994, - 7447, 8031, 6390, - 7447, 8031, 6391, 9994, - 7447, 8031, 7060, - 7447, 8031, 7061, 8794, - 7447, 8031, 7061, 9994, - 7447, 8031, 7128, - 7447, 8031, 7129, 9994, - 7447, 8031, 7244, - 7447, 8031, 7245, 8794, - 7447, 8031, 7245, 9994, - 7447, 8031, 7680, - 7447, 8031, 7681, 9994, - 7447, 8031, 8020, - 7447, 8031, 8021, 9994, - 7447, 8031, 8302, - 7447, 8031, 8303, 9994, - 7447, 8031, 8352, - 7447, 8031, 8353, 9994, - 7447, 8031, 9096, - 7447, 8031, 9097, 9994, - 7447, 8407, 3499, 5684, - 7447, 8407, 6377, 9162, - 7447, 8407, 7237, 9162, - 7447, 8407, 7753, 9162, - 7447, 8407, 8173, 9162, - 7447, 8913, 7237, 9162, - 7447, 8913, 8173, 9162, - 7455, 6331, 415, 6331, 520, - 7455, 6331, 520, - 7455, 6331, 521, 5741, 10783, 7444, - 7458, - 7467, 1019, 401, 3074, - 7467, 3763, 10566, - 7467, 3943, 9029, 5472, - 7467, 3965, 5478, - 7467, 4631, 4901, 7780, - 7467, 5401, 5171, 8465, 3050, - 7467, 5401, 6742, - 7467, 5401, 7028, - 7467, 5401, 7038, - 7467, 5401, 7453, 9304, - 7467, 5401, 8205, 10074, - 7467, 5401, 8205, 11825, 1746, - 7467, 5401, 10686, - 7467, 5401, 11447, 7452, - 7467, 5401, 11469, 7453, 10732, - 7467, 5521, 9606, - 7467, 6218, - 7467, 6246, - 7467, 6247, 7969, 3954, - 7467, 6247, 9675, 3954, - 7467, 6321, 7569, 1677, 5478, - 7467, 6321, 7569, 4149, 5478, - 7467, 6360, - 7467, 6361, 5741, 2585, 3860, - 7467, 6361, 7969, 3954, - 7467, 6361, 9675, 3954, - 7467, 6477, 5990, - 7467, 6477, 6102, - 7467, 6600, - 7467, 6601, 7969, 3954, - 7467, 6601, 9675, 3954, - 7467, 6935, 401, 8150, - 7467, 7143, 1677, 4642, - 7467, 7143, 1677, 5298, - 7467, 7143, 2716, - 7467, 7143, 2844, - 7467, 7143, 4149, 1609, 3032, - 7467, 7143, 4149, 2448, - 7467, 7143, 4149, 2844, - 7467, 7143, 4149, 4354, - 7467, 7143, 4149, 4643, 8813, 3954, - 7467, 7143, 4149, 4643, 9675, 3954, - 7467, 7143, 4149, 4900, - 7467, 7143, 4149, 5298, - 7467, 7143, 4149, 6694, - 7467, 7143, 4149, 7245, 3860, - 7467, 7143, 4149, 8641, 4129, 401, 4454, - 7467, 7143, 4149, 9069, 5878, - 7467, 7143, 4149, 9219, 11449, 5878, - 7467, 7143, 4149, 9701, 2113, 5741, 1609, 5741, 3033, 8896, - 7467, 7143, 4149, 9701, 2307, 5741, 1609, 5741, 3033, 8896, - 7467, 7183, 401, 2275, 161, 4150, - 7467, 7200, - 7467, 7201, 7969, 3954, - 7467, 7201, 9675, 3954, - 7467, 7341, 5401, 961, 6102, - 7467, 7341, 5401, 7143, 43, 5990, - 7467, 7341, 5401, 9667, 7143, 43, 5990, - 7467, 7919, 8, - 7467, 7919, 9, 6375, 3954, - 7467, 7919, 9, 7969, 3954, - 7467, 7919, 9, 8813, 3954, - 7467, 7919, 9, 9675, 3954, - 7467, 7919, 40, - 7467, 7919, 41, 5741, 6477, 5990, - 7467, 7919, 41, 5741, 6477, 5991, 9675, 3954, - 7467, 7919, 41, 6375, 3954, - 7467, 7919, 41, 9675, 3954, - 7467, 7919, 66, - 7467, 7919, 376, - 7467, 7919, 377, 6375, 3954, - 7467, 7919, 377, 7969, 3954, - 7467, 7919, 377, 8813, 3954, - 7467, 7919, 377, 9675, 3954, - 7467, 7919, 398, - 7467, 7919, 399, 6375, 3954, - 7467, 7919, 399, 9675, 3954, - 7467, 7919, 556, - 7467, 7919, 557, 6375, 3954, - 7467, 7919, 557, 9675, 3954, - 7467, 7919, 608, - 7467, 7919, 609, 6375, 3954, - 7467, 7919, 609, 9675, 3954, - 7467, 7919, 646, - 7467, 7919, 647, 5741, 2585, 3861, 5990, - 7467, 7919, 647, 5741, 2585, 3861, 11191, 5990, - 7467, 7919, 647, 5741, 7245, 3861, 5990, - 7467, 7919, 647, 5741, 7245, 3861, 9827, 10313, 5990, - 7467, 7919, 647, 6375, 3954, - 7467, 7919, 647, 7969, 3954, - 7467, 7919, 647, 8813, 3954, - 7467, 7919, 647, 9675, 3954, - 7467, 7919, 716, - 7467, 7919, 717, 5741, 961, 6103, 657, 7245, 3861, 5990, - 7467, 7919, 717, 5741, 2585, 3861, 6103, 657, 961, 5990, - 7467, 7919, 717, 5741, 7143, 42, - 7467, 7919, 717, 5741, 7245, 3861, 9827, 9223, 6102, - 7467, 7919, 717, 5741, 7245, 3861, 9827, 9223, 6103, 657, 2585, 3861, 5990, - 7467, 7919, 717, 5741, 7245, 3861, 11783, 6102, - 7467, 7919, 717, 5741, 9667, 7143, 43, 6102, - 7467, 7919, 717, 6375, 3954, - 7467, 7919, 717, 7969, 3954, - 7467, 7919, 717, 8813, 3954, - 7467, 7919, 717, 9675, 3954, - 7467, 7919, 880, - 7467, 7919, 881, 5741, 961, 6102, - 7467, 7919, 881, 6375, 3954, - 7467, 7919, 881, 7969, 3954, - 7467, 7919, 881, 8813, 3954, - 7467, 7919, 881, 9675, 3954, - 7467, 7919, 884, - 7467, 7919, 885, 5741, 961, 6102, - 7467, 7919, 885, 5741, 961, 6103, 657, 7143, 2448, - 7467, 7919, 885, 5741, 2585, 3861, 11191, 6103, 657, 7143, 2448, - 7467, 7919, 885, 5741, 3957, 3861, 5990, - 7467, 7919, 885, 5741, 5200, - 7467, 7919, 885, 5741, 7245, 3861, 5991, 10312, - 7467, 7919, 885, 5741, 9667, 42, - 7467, 7919, 885, 5741, 9667, 7143, 43, 6102, - 7467, 7919, 885, 6375, 3954, - 7467, 7919, 885, 9675, 3954, - 7467, 7919, 972, - 7467, 7919, 973, 6375, 3954, - 7467, 7919, 973, 9675, 3954, - 7467, 7919, 1062, - 7467, 7919, 1063, 5741, 961, 6102, - 7467, 7919, 1063, 5741, 961, 6755, 6102, - 7467, 7919, 1063, 5741, 2585, 3861, 6102, - 7467, 7919, 1063, 5741, 7245, 3861, 6102, - 7467, 7919, 1063, 5741, 7245, 3861, 9827, 9223, 6102, - 7467, 7919, 1063, 6375, 3954, - 7467, 7919, 1063, 7969, 3954, - 7467, 7919, 1063, 8813, 3954, - 7467, 7919, 1063, 9675, 3954, - 7467, 7919, 1116, - 7467, 7919, 1117, 5741, 2585, 3861, 6102, - 7467, 7919, 1117, 5741, 5200, - 7467, 7919, 1117, 5741, 7245, 3861, 5990, - 7467, 7919, 1117, 6375, 3954, - 7467, 7919, 1117, 7969, 3954, - 7467, 7919, 1117, 8813, 3954, - 7467, 7919, 1117, 9675, 3954, - 7467, 7919, 1236, - 7467, 7919, 1237, 5741, 2585, 3861, 5990, - 7467, 7919, 1237, 5741, 2585, 3861, 10043, 5990, - 7467, 7919, 1237, 5741, 6477, 5990, - 7467, 7919, 1237, 5741, 7245, 3861, 5990, - 7467, 7919, 1237, 5741, 7245, 3861, 9827, 9223, 6102, - 7467, 7919, 1237, 6375, 3954, - 7467, 7919, 1237, 7969, 3954, - 7467, 7919, 1237, 8813, 3954, - 7467, 7919, 1237, 9675, 3954, - 7467, 7919, 1250, - 7467, 7919, 1251, 4070, - 7467, 7919, 1251, 4071, 5741, 6477, 5990, - 7467, 7919, 1251, 4071, 6375, 3954, - 7467, 7919, 1251, 4071, 7969, 3954, - 7467, 7919, 1251, 4071, 8813, 3954, - 7467, 7919, 1251, 4071, 9675, 3954, - 7467, 7919, 1251, 5741, 2845, 5990, - 7467, 7919, 1251, 5741, 2845, 5991, 6375, 3954, - 7467, 7919, 1251, 5741, 2845, 5991, 9675, 3954, - 7467, 7919, 1251, 5741, 9667, 42, - 7467, 7919, 1251, 6375, 3954, - 7467, 7919, 1251, 7969, 3954, - 7467, 7919, 1251, 8813, 3954, - 7467, 7919, 1251, 9675, 3954, - 7467, 7919, 1251, 11260, - 7467, 7919, 1251, 11261, 6375, 3954, - 7467, 7919, 1251, 11261, 7969, 3954, - 7467, 7919, 1251, 11261, 8813, 3954, - 7467, 7919, 1251, 11261, 9675, 3954, - 7467, 7919, 1390, - 7467, 7919, 1391, 6375, 3954, - 7467, 7919, 1391, 9675, 3954, - 7467, 7919, 1458, - 7467, 7919, 1459, 5741, 961, 5990, - 7467, 7919, 1459, 5741, 5200, - 7467, 7919, 1459, 5741, 7245, 3861, 6102, - 7467, 7919, 1459, 6375, 3954, - 7467, 7919, 1459, 7969, 3954, - 7467, 7919, 1459, 8813, 3954, - 7467, 7919, 1459, 9675, 3954, - 7467, 7919, 1608, - 7467, 7919, 1609, 5741, 696, - 7467, 7919, 1609, 5741, 961, 5990, - 7467, 7919, 1609, 5741, 7143, 42, - 7467, 7919, 1609, 5741, 7245, 3861, 5990, - 7467, 7919, 1609, 5741, 7245, 3861, 6102, - 7467, 7919, 1609, 6375, 3954, - 7467, 7919, 1609, 7969, 3954, - 7467, 7919, 1609, 8813, 3954, - 7467, 7919, 1609, 9675, 3954, - 7467, 7919, 2036, - 7467, 7919, 2037, 6375, 3954, - 7467, 7919, 2037, 7969, 3954, - 7467, 7919, 2037, 8813, 3954, - 7467, 7919, 2037, 9675, 3954, - 7467, 7919, 2112, - 7467, 7919, 2113, 5741, 961, 5990, - 7467, 7919, 2113, 5741, 7245, 3861, 5990, - 7467, 7919, 2113, 6375, 3954, - 7467, 7919, 2113, 7969, 3954, - 7467, 7919, 2113, 8813, 3954, - 7467, 7919, 2113, 9675, 3954, - 7467, 7919, 2228, - 7467, 7919, 2229, 5741, 961, 6102, - 7467, 7919, 2229, 5741, 961, 6103, 657, 961, 5990, - 7467, 7919, 2229, 5741, 2585, 3861, 5990, - 7467, 7919, 2229, 5741, 2585, 3861, 11191, 5990, - 7467, 7919, 2229, 5741, 3957, 3861, 5990, - 7467, 7919, 2229, 5741, 5200, - 7467, 7919, 2229, 5741, 6477, 5990, - 7467, 7919, 2229, 5741, 7143, 42, - 7467, 7919, 2229, 5741, 7143, 43, 6102, - 7467, 7919, 2229, 5741, 8244, - 7467, 7919, 2229, 5741, 9667, 42, - 7467, 7919, 2229, 6375, 3954, - 7467, 7919, 2229, 9675, 3954, - 7467, 7919, 2306, - 7467, 7919, 2307, 5741, 2585, 3861, 6102, - 7467, 7919, 2307, 5741, 7245, 3861, 5990, - 7467, 7919, 2307, 6375, 3954, - 7467, 7919, 2307, 7969, 3954, - 7467, 7919, 2307, 8813, 3954, - 7467, 7919, 2307, 9675, 3954, - 7467, 7919, 2448, - 7467, 7919, 2449, 5741, 7245, 3861, 5990, - 7467, 7919, 2449, 6375, 3954, - 7467, 7919, 2449, 7969, 3954, - 7467, 7919, 2449, 8813, 3954, - 7467, 7919, 2449, 9675, 3954, - 7467, 7919, 2476, - 7467, 7919, 2477, 5741, 5200, - 7467, 7919, 2477, 5741, 7245, 3861, 5991, 10312, - 7467, 7919, 2477, 6375, 3954, - 7467, 7919, 2477, 7969, 3954, - 7467, 7919, 2477, 8813, 3954, - 7467, 7919, 2477, 8904, - 7467, 7919, 2477, 8905, 4070, - 7467, 7919, 2477, 8905, 6375, 3954, - 7467, 7919, 2477, 8905, 9675, 3954, - 7467, 7919, 2477, 9675, 3954, - 7467, 7919, 2660, - 7467, 7919, 2661, 6375, 3954, - 7467, 7919, 2661, 7969, 3954, - 7467, 7919, 2661, 8813, 3954, - 7467, 7919, 2661, 9675, 3954, - 7467, 7919, 2716, - 7467, 7919, 2717, 5741, 961, 5990, - 7467, 7919, 2717, 5741, 2585, 3861, 5990, - 7467, 7919, 2717, 5741, 5200, - 7467, 7919, 2717, 5741, 6477, 5990, - 7467, 7919, 2717, 5741, 6477, 5991, 6375, 3954, - 7467, 7919, 2717, 5741, 6477, 5991, 9675, 3954, - 7467, 7919, 2717, 6375, 3954, - 7467, 7919, 2717, 9675, 3954, - 7467, 7919, 2844, - 7467, 7919, 2845, 5741, 5520, - 7467, 7919, 2845, 5741, 6477, 5990, - 7467, 7919, 2845, 5741, 6477, 5991, 6375, 3954, - 7467, 7919, 2845, 5741, 6477, 5991, 7969, 3954, - 7467, 7919, 2845, 5741, 6477, 5991, 8813, 3954, - 7467, 7919, 2845, 5741, 6477, 5991, 9675, 3954, - 7467, 7919, 2845, 5741, 7143, 42, - 7467, 7919, 2845, 5741, 7245, 3861, 6102, - 7467, 7919, 2845, 6375, 3954, - 7467, 7919, 2845, 7516, - 7467, 7919, 2845, 7517, 5741, 6477, 5990, - 7467, 7919, 2845, 7517, 5741, 6477, 5991, 6375, 3954, - 7467, 7919, 2845, 7517, 5741, 6477, 5991, 9675, 3954, - 7467, 7919, 2845, 7517, 6375, 3954, - 7467, 7919, 2845, 7517, 9675, 3954, - 7467, 7919, 2845, 7969, 3954, - 7467, 7919, 2845, 8813, 3954, - 7467, 7919, 2845, 9675, 3954, - 7467, 7919, 2914, - 7467, 7919, 2915, 6375, 3954, - 7467, 7919, 2915, 7969, 3954, - 7467, 7919, 2915, 8813, 3954, - 7467, 7919, 2915, 9675, 3954, - 7467, 7919, 3032, - 7467, 7919, 3033, 5741, 5729, 6477, 5990, - 7467, 7919, 3033, 5741, 5729, 6477, 6102, - 7467, 7919, 3033, 5741, 6477, 5990, - 7467, 7919, 3033, 5741, 6477, 5991, 6375, 3954, - 7467, 7919, 3033, 5741, 6477, 5991, 9675, 3954, - 7467, 7919, 3033, 5741, 6477, 6102, - 7467, 7919, 3033, 5741, 6477, 6103, 6375, 3954, - 7467, 7919, 3033, 5741, 6477, 6103, 9675, 3954, - 7467, 7919, 3033, 5741, 6695, 5990, - 7467, 7919, 3033, 5741, 6695, 5991, 6375, 3954, - 7467, 7919, 3033, 5741, 6695, 5991, 9675, 3954, - 7467, 7919, 3033, 6375, 3954, - 7467, 7919, 3033, 7344, - 7467, 7919, 3033, 7345, 6375, 3954, - 7467, 7919, 3033, 7345, 9675, 3954, - 7467, 7919, 3033, 8896, - 7467, 7919, 3033, 8897, 6375, 3954, - 7467, 7919, 3033, 8897, 9675, 3954, - 7467, 7919, 3033, 9675, 3954, - 7467, 7919, 3548, - 7467, 7919, 3549, 6375, 3954, - 7467, 7919, 3549, 7969, 3954, - 7467, 7919, 3549, 8813, 3954, - 7467, 7919, 3549, 9675, 3954, - 7467, 7919, 3766, - 7467, 7919, 3767, 6375, 3954, - 7467, 7919, 3767, 9675, 3954, - 7467, 7919, 3882, - 7467, 7919, 3883, 6375, 3954, - 7467, 7919, 3883, 7969, 3954, - 7467, 7919, 3883, 8813, 3954, - 7467, 7919, 3883, 9675, 3954, - 7467, 7919, 4086, - 7467, 7919, 4087, 6375, 3954, - 7467, 7919, 4087, 7969, 3954, - 7467, 7919, 4087, 8813, 3954, - 7467, 7919, 4087, 9675, 3954, - 7467, 7919, 4149, 6476, - 7467, 7919, 4149, 6477, 2716, - 7467, 7919, 4149, 6477, 2844, - 7467, 7919, 4149, 6477, 3032, - 7467, 7919, 4354, - 7467, 7919, 4355, 6375, 3954, - 7467, 7919, 4355, 7969, 3954, - 7467, 7919, 4355, 8813, 3954, - 7467, 7919, 4355, 9675, 3954, - 7467, 7919, 4454, - 7467, 7919, 4455, 6375, 3954, - 7467, 7919, 4455, 7969, 3954, - 7467, 7919, 4455, 8813, 3954, - 7467, 7919, 4455, 9675, 3954, - 7467, 7919, 4642, - 7467, 7919, 4643, 5741, 961, 5990, - 7467, 7919, 4643, 5741, 961, 6102, - 7467, 7919, 4643, 6375, 3954, - 7467, 7919, 4643, 7969, 3954, - 7467, 7919, 4643, 8813, 3954, - 7467, 7919, 4643, 9675, 3954, - 7467, 7919, 4900, - 7467, 7919, 4901, 5741, 961, 6102, - 7467, 7919, 4901, 5741, 2585, 3861, 6102, - 7467, 7919, 4901, 5741, 5200, - 7467, 7919, 4901, 5741, 7143, 42, - 7467, 7919, 4901, 5741, 7143, 2448, - 7467, 7919, 4901, 5741, 7245, 3861, 5990, - 7467, 7919, 4901, 6375, 3954, - 7467, 7919, 4901, 7780, - 7467, 7919, 4901, 7781, 6375, 3954, - 7467, 7919, 4901, 7781, 9675, 3954, - 7467, 7919, 4901, 7969, 3954, - 7467, 7919, 4901, 8813, 3954, - 7467, 7919, 4901, 9675, 3954, - 7467, 7919, 4958, - 7467, 7919, 4959, 6375, 3954, - 7467, 7919, 4959, 7969, 3954, - 7467, 7919, 4959, 8813, 3954, - 7467, 7919, 4959, 9675, 3954, - 7467, 7919, 5222, - 7467, 7919, 5223, 6375, 3954, - 7467, 7919, 5223, 9675, 3954, - 7467, 7919, 5298, - 7467, 7919, 5299, 5741, 961, 6103, 657, 961, 5990, - 7467, 7919, 5299, 5741, 2585, 3861, 11191, 5990, - 7467, 7919, 5299, 5741, 3957, 3861, 5990, - 7467, 7919, 5299, 5741, 7245, 3861, 6102, - 7467, 7919, 5299, 5741, 7245, 3861, 6103, 657, 7245, 3861, 5990, - 7467, 7919, 5299, 6375, 3954, - 7467, 7919, 5299, 7969, 3954, - 7467, 7919, 5299, 8813, 3954, - 7467, 7919, 5299, 9675, 3954, - 7467, 7919, 5550, - 7467, 7919, 5551, 6375, 3954, - 7467, 7919, 5551, 9675, 3954, - 7467, 7919, 5556, - 7467, 7919, 5557, 6375, 3954, - 7467, 7919, 5557, 7969, 3954, - 7467, 7919, 5557, 8813, 3954, - 7467, 7919, 5557, 9675, 3954, - 7467, 7919, 5624, - 7467, 7919, 5625, 6375, 3954, - 7467, 7919, 5625, 7969, 3954, - 7467, 7919, 5625, 8813, 3954, - 7467, 7919, 5625, 9675, 3954, - 7467, 7919, 5872, - 7467, 7919, 5873, 6375, 3954, - 7467, 7919, 5873, 9675, 3954, - 7467, 7919, 6098, - 7467, 7919, 6099, 6375, 3954, - 7467, 7919, 6099, 7969, 3954, - 7467, 7919, 6099, 8813, 3954, - 7467, 7919, 6099, 9675, 3954, - 7467, 7919, 6238, - 7467, 7919, 6239, 6375, 3954, - 7467, 7919, 6239, 9675, 3954, - 7467, 7919, 6359, 2844, - 7467, 7919, 6359, 2845, 6375, 3954, - 7467, 7919, 6359, 2845, 7969, 3954, - 7467, 7919, 6359, 2845, 8813, 3954, - 7467, 7919, 6359, 2845, 9675, 3954, - 7467, 7919, 6436, - 7467, 7919, 6437, 5741, 961, 6102, - 7467, 7919, 6437, 6375, 3954, - 7467, 7919, 6437, 7969, 3954, - 7467, 7919, 6437, 8813, 3954, - 7467, 7919, 6437, 9675, 3954, - 7467, 7919, 6476, - 7467, 7919, 6477, 9675, 3954, - 7467, 7919, 6606, - 7467, 7919, 6607, 5741, 961, 5990, - 7467, 7919, 6607, 5741, 7245, 3861, 5990, - 7467, 7919, 6607, 5741, 7245, 3861, 9827, 9223, 6102, - 7467, 7919, 6607, 6375, 3954, - 7467, 7919, 6607, 7969, 3954, - 7467, 7919, 6607, 8813, 3954, - 7467, 7919, 6607, 9675, 3954, - 7467, 7919, 6796, - 7467, 7919, 6797, 6375, 3954, - 7467, 7919, 6797, 7969, 3954, - 7467, 7919, 6797, 8813, 3954, - 7467, 7919, 6797, 9675, 3954, - 7467, 7919, 6912, - 7467, 7919, 6913, 6375, 3954, - 7467, 7919, 6913, 7969, 3954, - 7467, 7919, 6913, 8813, 3954, - 7467, 7919, 6913, 9675, 3954, - 7467, 7919, 7002, - 7467, 7919, 7003, 6375, 3954, - 7467, 7919, 7003, 7969, 3954, - 7467, 7919, 7003, 8813, 3954, - 7467, 7919, 7003, 9675, 3954, - 7467, 7919, 7076, - 7467, 7919, 7077, 5741, 961, 6102, - 7467, 7919, 7077, 6375, 3954, - 7467, 7919, 7077, 7969, 3954, - 7467, 7919, 7077, 8813, 3954, - 7467, 7919, 7077, 9675, 3954, - 7467, 7919, 7203, 1458, - 7467, 7919, 7218, - 7467, 7919, 7219, 5741, 961, 5990, - 7467, 7919, 7219, 6375, 3954, - 7467, 7919, 7219, 7969, 3954, - 7467, 7919, 7219, 8813, 3954, - 7467, 7919, 7219, 9675, 3954, - 7467, 7919, 7222, - 7467, 7919, 7223, 6375, 3954, - 7467, 7919, 7223, 7969, 3954, - 7467, 7919, 7223, 8813, 3954, - 7467, 7919, 7223, 9675, 3954, - 7467, 7919, 7622, - 7467, 7919, 7623, 6375, 3954, - 7467, 7919, 7623, 9675, 3954, - 7467, 7919, 8336, - 7467, 7919, 8337, 6375, 3954, - 7467, 7919, 8337, 7969, 3954, - 7467, 7919, 8337, 8813, 3954, - 7467, 7919, 8337, 9675, 3954, - 7467, 7919, 8371, 7861, 8855, 3033, 8897, 7969, 3954, - 7467, 7919, 8371, 7861, 8855, 3033, 8897, 8813, 3954, - 7467, 7919, 8641, 716, - 7467, 7919, 8641, 1062, - 7467, 7919, 8641, 2112, - 7467, 7919, 8855, 398, - 7467, 7919, 8855, 399, 6375, 3954, - 7467, 7919, 8855, 399, 9675, 3954, - 7467, 7919, 8855, 608, - 7467, 7919, 8855, 609, 6375, 3954, - 7467, 7919, 8855, 609, 9675, 3954, - 7467, 7919, 9184, - 7467, 7919, 9185, 6375, 3954, - 7467, 7919, 9185, 7969, 3954, - 7467, 7919, 9185, 8813, 3954, - 7467, 7919, 9185, 9675, 3954, - 7467, 7919, 11663, 3032, - 7467, 7943, 5990, - 7467, 8031, 5400, - 7467, 8099, 7333, 5400, - 7467, 8184, - 7467, 8185, 7969, 3954, - 7467, 8185, 9675, 3954, - 7467, 8327, 961, 11443, 4630, - 7467, 8609, 10566, - 7467, 9009, 5400, - 7467, 9069, 4149, 5479, 5741, 7725, 7568, - 7467, 9180, - 7467, 9181, 5741, 9579, 5990, - 7467, 9388, - 7467, 9389, 9675, 3954, - 7467, 9578, - 7467, 9579, 9675, 3954, - 7467, 9601, 7958, - 7467, 9667, 6246, - 7467, 9680, - 7467, 9681, 9675, 3954, - 7467, 9701, 647, 5741, 2845, 6375, 3954, - 7467, 9701, 647, 5741, 2845, 9675, 3954, - 7467, 9701, 647, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 647, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 647, 5741, 4355, 5741, 4643, 6375, 3954, - 7467, 9701, 647, 5741, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 647, 5741, 4355, 8813, 3954, - 7467, 9701, 647, 5741, 4355, 9675, 3954, - 7467, 9701, 647, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 647, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 647, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 647, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 647, 5741, 4643, 8813, 3954, - 7467, 9701, 647, 5741, 4643, 9675, 3954, - 7467, 9701, 717, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 717, 5741, 1237, 8813, 3954, - 7467, 9701, 717, 5741, 1237, 9675, 3954, - 7467, 9701, 717, 5741, 1251, 7969, 3954, - 7467, 9701, 717, 5741, 1251, 8813, 3954, - 7467, 9701, 717, 5741, 2229, 6375, 3954, - 7467, 9701, 717, 5741, 2845, 6375, 3954, - 7467, 9701, 717, 5741, 2845, 9675, 3954, - 7467, 9701, 717, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 717, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 717, 5741, 4355, 8813, 3954, - 7467, 9701, 717, 5741, 4355, 9675, 3954, - 7467, 9701, 717, 5741, 4455, 5741, 2845, 6375, 3954, - 7467, 9701, 717, 5741, 4455, 8813, 3954, - 7467, 9701, 717, 5741, 4455, 9675, 3954, - 7467, 9701, 717, 5741, 4643, 6375, 3954, - 7467, 9701, 717, 5741, 4643, 7969, 3954, - 7467, 9701, 717, 5741, 4643, 8813, 3954, - 7467, 9701, 717, 5741, 4643, 9675, 3954, - 7467, 9701, 717, 5741, 4901, 6375, 3954, - 7467, 9701, 717, 5741, 5873, 6375, 3954, - 7467, 9701, 881, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 881, 5741, 1237, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 881, 5741, 1237, 8813, 3954, - 7467, 9701, 881, 5741, 1237, 9675, 3954, - 7467, 9701, 881, 5741, 2229, 6375, 3954, - 7467, 9701, 881, 5741, 2229, 9675, 3954, - 7467, 9701, 881, 5741, 2845, 6375, 3954, - 7467, 9701, 881, 5741, 2845, 9675, 3954, - 7467, 9701, 881, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 881, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 881, 5741, 4355, 8813, 3954, - 7467, 9701, 881, 5741, 4355, 9675, 3954, - 7467, 9701, 881, 5741, 4455, 5741, 4643, 6375, 3954, - 7467, 9701, 881, 5741, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 881, 5741, 4455, 8813, 3954, - 7467, 9701, 881, 5741, 4455, 9675, 3954, - 7467, 9701, 881, 5741, 4643, 8813, 3954, - 7467, 9701, 881, 5741, 4643, 9675, 3954, - 7467, 9701, 1063, 5741, 1237, 8813, 3954, - 7467, 9701, 1063, 5741, 1237, 9675, 3954, - 7467, 9701, 1063, 5741, 2845, 6375, 3954, - 7467, 9701, 1063, 5741, 2845, 9675, 3954, - 7467, 9701, 1063, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1063, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 1063, 5741, 4355, 8813, 3954, - 7467, 9701, 1063, 5741, 4355, 9675, 3954, - 7467, 9701, 1063, 5741, 4455, 5741, 4643, 6375, 3954, - 7467, 9701, 1063, 5741, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 1063, 5741, 4455, 8813, 3954, - 7467, 9701, 1063, 5741, 4455, 9675, 3954, - 7467, 9701, 1063, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 1063, 5741, 4643, 8813, 3954, - 7467, 9701, 1063, 5741, 4643, 9675, 3954, - 7467, 9701, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 1237, 5741, 2845, 9675, 3954, - 7467, 9701, 1237, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1237, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 1237, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 1237, 5741, 4355, 8813, 3954, - 7467, 9701, 1237, 5741, 4355, 9675, 3954, - 7467, 9701, 1237, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 1237, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 1237, 5741, 4643, 9675, 3954, - 7467, 9701, 1251, 5741, 2845, 9675, 3954, - 7467, 9701, 1251, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 1251, 5741, 4355, 8813, 3954, - 7467, 9701, 1251, 5741, 4355, 9675, 3954, - 7467, 9701, 1251, 5741, 4643, 5741, 4355, 8813, 3954, - 7467, 9701, 1251, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 1251, 5741, 4643, 8813, 3954, - 7467, 9701, 1251, 5741, 4643, 9675, 3954, - 7467, 9701, 1251, 5741, 11663, 3033, 8813, 3954, - 7467, 9701, 1459, 5741, 1237, 8813, 3954, - 7467, 9701, 1459, 5741, 1237, 9675, 3954, - 7467, 9701, 1459, 5741, 1609, 6375, 3954, - 7467, 9701, 1459, 5741, 1609, 7969, 3954, - 7467, 9701, 1459, 5741, 1609, 8813, 3954, - 7467, 9701, 1459, 5741, 1609, 9675, 3954, - 7467, 9701, 1459, 5741, 2845, 6375, 3954, - 7467, 9701, 1459, 5741, 2845, 9675, 3954, - 7467, 9701, 1459, 5741, 3033, 6375, 3954, - 7467, 9701, 1459, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1459, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 1459, 5741, 3033, 9675, 3954, - 7467, 9701, 1459, 5741, 4355, 8813, 3954, - 7467, 9701, 1459, 5741, 4355, 9675, 3954, - 7467, 9701, 1459, 5741, 4455, 8813, 3954, - 7467, 9701, 1459, 5741, 4455, 9675, 3954, - 7467, 9701, 1459, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 1459, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 1459, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 1459, 5741, 4643, 6375, 3954, - 7467, 9701, 1459, 5741, 4643, 7969, 3954, - 7467, 9701, 1459, 5741, 4643, 8813, 3954, - 7467, 9701, 1459, 5741, 4643, 9675, 3954, - 7467, 9701, 1609, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 1609, 5741, 1237, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1609, 5741, 1237, 5741, 4643, 6375, 3954, - 7467, 9701, 1609, 5741, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 1609, 5741, 1237, 8813, 3954, - 7467, 9701, 1609, 5741, 1237, 9675, 3954, - 7467, 9701, 1609, 5741, 1251, 8813, 3954, - 7467, 9701, 1609, 5741, 2845, 6375, 3954, - 7467, 9701, 1609, 5741, 2845, 9675, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6477, 5991, 6375, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6477, 5991, 9675, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6477, 6103, 6375, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6477, 6103, 9675, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6695, 5991, 6375, 3954, - 7467, 9701, 1609, 5741, 3033, 5741, 6695, 5991, 9675, 3954, - 7467, 9701, 1609, 5741, 3033, 6375, 3954, - 7467, 9701, 1609, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 1609, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 1609, 5741, 3033, 9675, 3954, - 7467, 9701, 1609, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 1609, 5741, 4355, 5741, 4355, 6375, 3954, - 7467, 9701, 1609, 5741, 4355, 5741, 4355, 8813, 3954, - 7467, 9701, 1609, 5741, 4355, 5741, 4643, 6375, 3954, - 7467, 9701, 1609, 5741, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 1609, 5741, 4355, 8813, 3954, - 7467, 9701, 1609, 5741, 4355, 9675, 3954, - 7467, 9701, 1609, 5741, 4455, 5741, 4643, 6375, 3954, - 7467, 9701, 1609, 5741, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 1609, 5741, 4455, 8813, 3954, - 7467, 9701, 1609, 5741, 4455, 9675, 3954, - 7467, 9701, 1609, 5741, 4643, 5741, 1237, 6375, 3954, - 7467, 9701, 1609, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 1609, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 1609, 5741, 4643, 6375, 3954, - 7467, 9701, 1609, 5741, 4643, 7969, 3954, - 7467, 9701, 1609, 5741, 4643, 8813, 3954, - 7467, 9701, 1609, 5741, 4643, 9675, 3954, - 7467, 9701, 2113, 5741, 1237, 8813, 3954, - 7467, 9701, 2113, 5741, 1237, 9675, 3954, - 7467, 9701, 2113, 5741, 2845, 6375, 3954, - 7467, 9701, 2113, 5741, 2845, 9675, 3954, - 7467, 9701, 2113, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2113, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2113, 5741, 4643, 5741, 1237, 6375, 3954, - 7467, 9701, 2113, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 2113, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 2113, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 2113, 5741, 4643, 8813, 3954, - 7467, 9701, 2113, 5741, 4643, 9675, 3954, - 7467, 9701, 2229, 5741, 11663, 3033, 9675, 3954, - 7467, 9701, 2307, 5741, 1237, 5741, 1237, 6375, 3954, - 7467, 9701, 2307, 5741, 1237, 5741, 1237, 8813, 3954, - 7467, 9701, 2307, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 2307, 5741, 1237, 8813, 3954, - 7467, 9701, 2307, 5741, 1237, 9675, 3954, - 7467, 9701, 2307, 5741, 2229, 6375, 3954, - 7467, 9701, 2307, 5741, 2229, 9675, 3954, - 7467, 9701, 2307, 5741, 2845, 6375, 3954, - 7467, 9701, 2307, 5741, 2845, 9675, 3954, - 7467, 9701, 2307, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2307, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2307, 5741, 4455, 8813, 3954, - 7467, 9701, 2307, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 2307, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 2307, 5741, 4643, 8813, 3954, - 7467, 9701, 2307, 5741, 4643, 9675, 3954, - 7467, 9701, 2449, 5741, 1237, 8813, 3954, - 7467, 9701, 2449, 5741, 1237, 9675, 3954, - 7467, 9701, 2449, 5741, 2845, 6375, 3954, - 7467, 9701, 2449, 5741, 2845, 9675, 3954, - 7467, 9701, 2449, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2449, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2449, 5741, 4643, 5741, 1237, 6375, 3954, - 7467, 9701, 2449, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 2449, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 2449, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 2449, 5741, 4643, 7969, 3954, - 7467, 9701, 2449, 5741, 4643, 8813, 3954, - 7467, 9701, 2449, 5741, 4643, 9675, 3954, - 7467, 9701, 2477, 5741, 1237, 5741, 4355, 6375, 3954, - 7467, 9701, 2477, 5741, 1237, 5741, 4355, 8813, 3954, - 7467, 9701, 2477, 5741, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 2477, 5741, 1237, 8813, 3954, - 7467, 9701, 2477, 5741, 1237, 9675, 3954, - 7467, 9701, 2477, 5741, 1251, 7969, 3954, - 7467, 9701, 2477, 5741, 1251, 8813, 3954, - 7467, 9701, 2477, 5741, 2229, 6375, 3954, - 7467, 9701, 2477, 5741, 2845, 6375, 3954, - 7467, 9701, 2477, 5741, 2845, 9675, 3954, - 7467, 9701, 2477, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2477, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2477, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 2477, 5741, 4355, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2477, 5741, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 2477, 5741, 4355, 8813, 3954, - 7467, 9701, 2477, 5741, 4355, 9675, 3954, - 7467, 9701, 2477, 5741, 4455, 5741, 2845, 6375, 3954, - 7467, 9701, 2477, 5741, 4455, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2477, 5741, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 2477, 5741, 4455, 8813, 3954, - 7467, 9701, 2477, 5741, 4455, 9675, 3954, - 7467, 9701, 2477, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 2477, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 2477, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2477, 5741, 4643, 5741, 4355, 8813, 3954, - 7467, 9701, 2477, 5741, 4643, 5741, 4455, 8813, 3954, - 7467, 9701, 2477, 5741, 4643, 6375, 3954, - 7467, 9701, 2477, 5741, 4643, 7969, 3954, - 7467, 9701, 2477, 5741, 4643, 8813, 3954, - 7467, 9701, 2477, 5741, 4643, 9675, 3954, - 7467, 9701, 2477, 5741, 4901, 6375, 3954, - 7467, 9701, 2477, 5741, 5873, 6375, 3954, - 7467, 9701, 2845, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 2845, 5741, 1237, 8813, 3954, - 7467, 9701, 2845, 5741, 1237, 9675, 3954, - 7467, 9701, 2845, 5741, 1251, 7969, 3954, - 7467, 9701, 2845, 5741, 1251, 8813, 3954, - 7467, 9701, 2845, 5741, 2229, 6375, 3954, - 7467, 9701, 2845, 5741, 2845, 6375, 3954, - 7467, 9701, 2845, 5741, 2845, 9675, 3954, - 7467, 9701, 2845, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2845, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2845, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 2845, 5741, 4355, 8813, 3954, - 7467, 9701, 2845, 5741, 4355, 9675, 3954, - 7467, 9701, 2845, 5741, 4455, 8813, 3954, - 7467, 9701, 2845, 5741, 4455, 9675, 3954, - 7467, 9701, 2845, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 2845, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 2845, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 2845, 5741, 4643, 6375, 3954, - 7467, 9701, 2845, 5741, 4643, 7969, 3954, - 7467, 9701, 2845, 5741, 4643, 8813, 3954, - 7467, 9701, 2845, 5741, 4643, 9675, 3954, - 7467, 9701, 2845, 5741, 4901, 6375, 3954, - 7467, 9701, 2845, 5741, 5873, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 9, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 9, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 9, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 41, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 41, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 67, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 67, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 399, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 399, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 609, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 609, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 1237, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 1237, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 1251, 7969, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 1251, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 2229, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 2717, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 2717, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 2845, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 2845, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 3033, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 3033, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4355, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4355, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4455, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4643, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4643, 7969, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4643, 8813, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4643, 9675, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 4901, 6375, 3954, - 7467, 9701, 2845, 5741, 6477, 5991, 5741, 5873, 6375, 3954, - 7467, 9701, 2915, 5741, 4643, 7969, 3954, - 7467, 9701, 2915, 5741, 4643, 8813, 3954, - 7467, 9701, 2915, 5741, 4643, 9675, 3954, - 7467, 9701, 3033, 5741, 9579, 6375, 3954, - 7467, 9701, 3033, 5741, 9579, 9675, 3954, - 7467, 9701, 3033, 8897, 5741, 11663, 3033, 6375, 3954, - 7467, 9701, 3033, 8897, 5741, 11663, 3033, 9675, 3954, - 7467, 9701, 4355, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 4355, 5741, 1237, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4355, 5741, 1237, 8813, 3954, - 7467, 9701, 4355, 5741, 1237, 9675, 3954, - 7467, 9701, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 4355, 5741, 2845, 9675, 3954, - 7467, 9701, 4355, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4355, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 4355, 5741, 4643, 5741, 1237, 6375, 3954, - 7467, 9701, 4355, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 4355, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 4355, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 4355, 5741, 4643, 9675, 3954, - 7467, 9701, 4455, 5741, 1237, 9675, 3954, - 7467, 9701, 4455, 5741, 2845, 6375, 3954, - 7467, 9701, 4455, 5741, 2845, 9675, 3954, - 7467, 9701, 4455, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4455, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 4455, 5741, 4355, 8813, 3954, - 7467, 9701, 4455, 5741, 4355, 9675, 3954, - 7467, 9701, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 4455, 5741, 4643, 9675, 3954, - 7467, 9701, 4643, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 4643, 5741, 1237, 5741, 4355, 8813, 3954, - 7467, 9701, 4643, 5741, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 4643, 5741, 1237, 9675, 3954, - 7467, 9701, 4643, 5741, 2845, 9675, 3954, - 7467, 9701, 4643, 5741, 3033, 6375, 3954, - 7467, 9701, 4643, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 4643, 5741, 4355, 5741, 1237, 8813, 3954, - 7467, 9701, 4643, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 4643, 5741, 4355, 5741, 4455, 8813, 3954, - 7467, 9701, 4643, 5741, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 4643, 5741, 4355, 8813, 3954, - 7467, 9701, 4643, 5741, 4355, 9675, 3954, - 7467, 9701, 4643, 5741, 4455, 5741, 2845, 6375, 3954, - 7467, 9701, 4643, 5741, 4455, 5741, 4355, 8813, 3954, - 7467, 9701, 4643, 5741, 4455, 5741, 4643, 8813, 3954, - 7467, 9701, 4643, 5741, 4455, 8813, 3954, - 7467, 9701, 4643, 5741, 4455, 9675, 3954, - 7467, 9701, 4643, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 4643, 5741, 4643, 9675, 3954, - 7467, 9701, 4901, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 4901, 5741, 1237, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4901, 5741, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 4901, 5741, 1237, 8813, 3954, - 7467, 9701, 4901, 5741, 1237, 9675, 3954, - 7467, 9701, 4901, 5741, 1251, 7969, 3954, - 7467, 9701, 4901, 5741, 1251, 8813, 3954, - 7467, 9701, 4901, 5741, 2229, 6375, 3954, - 7467, 9701, 4901, 5741, 2845, 6375, 3954, - 7467, 9701, 4901, 5741, 2845, 9675, 3954, - 7467, 9701, 4901, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4901, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 1237, 6375, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 1237, 8813, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 4643, 6375, 3954, - 7467, 9701, 4901, 5741, 4355, 5741, 4643, 8813, 3954, - 7467, 9701, 4901, 5741, 4355, 8813, 3954, - 7467, 9701, 4901, 5741, 4355, 9675, 3954, - 7467, 9701, 4901, 5741, 4455, 8813, 3954, - 7467, 9701, 4901, 5741, 4455, 9675, 3954, - 7467, 9701, 4901, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 4901, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 4901, 5741, 4643, 6375, 3954, - 7467, 9701, 4901, 5741, 4643, 7969, 3954, - 7467, 9701, 4901, 5741, 4643, 8813, 3954, - 7467, 9701, 4901, 5741, 4643, 9675, 3954, - 7467, 9701, 4901, 5741, 4901, 6375, 3954, - 7467, 9701, 4901, 5741, 5873, 6375, 3954, - 7467, 9701, 5125, 5693, 85, 8861, 5479, 5401, 9675, 3954, - 7467, 9701, 5299, 5741, 1237, 5741, 4355, 8813, 3954, - 7467, 9701, 5299, 5741, 1237, 7969, 3954, - 7467, 9701, 5299, 5741, 1237, 8813, 3954, - 7467, 9701, 5299, 5741, 1237, 9675, 3954, - 7467, 9701, 5299, 5741, 1251, 7969, 3954, - 7467, 9701, 5299, 5741, 1251, 8813, 3954, - 7467, 9701, 5299, 5741, 2229, 6375, 3954, - 7467, 9701, 5299, 5741, 2229, 9675, 3954, - 7467, 9701, 5299, 5741, 2845, 6375, 3954, - 7467, 9701, 5299, 5741, 2845, 9675, 3954, - 7467, 9701, 5299, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 5299, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 5299, 5741, 4355, 5741, 1237, 8813, 3954, - 7467, 9701, 5299, 5741, 4355, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 5299, 5741, 4355, 7969, 3954, - 7467, 9701, 5299, 5741, 4355, 8813, 3954, - 7467, 9701, 5299, 5741, 4355, 9675, 3954, - 7467, 9701, 5299, 5741, 4455, 5741, 2845, 6375, 3954, - 7467, 9701, 5299, 5741, 4455, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 5299, 5741, 4455, 7969, 3954, - 7467, 9701, 5299, 5741, 4455, 8813, 3954, - 7467, 9701, 5299, 5741, 4455, 9675, 3954, - 7467, 9701, 5299, 5741, 4643, 5741, 1237, 6375, 3954, - 7467, 9701, 5299, 5741, 4643, 5741, 1237, 8813, 3954, - 7467, 9701, 5299, 5741, 4643, 5741, 4355, 8813, 3954, - 7467, 9701, 5299, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 5299, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 5299, 5741, 4643, 7969, 3954, - 7467, 9701, 5299, 5741, 4643, 8813, 3954, - 7467, 9701, 5299, 5741, 4643, 9675, 3954, - 7467, 9701, 5551, 5741, 11663, 3033, 9675, 3954, - 7467, 9701, 5557, 5741, 1251, 7969, 3954, - 7467, 9701, 5557, 5741, 2229, 6375, 3954, - 7467, 9701, 5557, 5741, 2845, 6375, 3954, - 7467, 9701, 5557, 5741, 2845, 9675, 3954, - 7467, 9701, 5557, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 5557, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 5557, 5741, 4355, 9675, 3954, - 7467, 9701, 5557, 5741, 4643, 6375, 3954, - 7467, 9701, 5557, 5741, 4643, 7969, 3954, - 7467, 9701, 5557, 5741, 4643, 8813, 3954, - 7467, 9701, 5557, 5741, 4643, 9675, 3954, - 7467, 9701, 5557, 5741, 4901, 6375, 3954, - 7467, 9701, 5557, 5741, 5873, 6375, 3954, - 7467, 9701, 6007, 9675, 3954, - 7467, 9701, 6017, 9675, 3954, - 7467, 9701, 6437, 5741, 2845, 6375, 3954, - 7467, 9701, 6437, 5741, 2845, 9675, 3954, - 7467, 9701, 6437, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 6437, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 6437, 5741, 4355, 8813, 3954, - 7467, 9701, 6437, 5741, 4355, 9675, 3954, - 7467, 9701, 6437, 5741, 4643, 5741, 2845, 6375, 3954, - 7467, 9701, 6437, 5741, 4643, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 6437, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 6437, 5741, 4643, 8813, 3954, - 7467, 9701, 6437, 5741, 4643, 9675, 3954, - 7467, 9701, 7031, 9675, 3954, - 7467, 9701, 7033, 5693, 85, 8861, 5479, 5401, 9675, 3954, - 7467, 9701, 7033, 9675, 3954, - 7467, 9701, 7077, 5741, 1237, 5741, 2845, 6375, 3954, - 7467, 9701, 7077, 5741, 1237, 5741, 4643, 6375, 3954, - 7467, 9701, 7077, 5741, 1237, 5741, 4643, 8813, 3954, - 7467, 9701, 7077, 5741, 1237, 6375, 3954, - 7467, 9701, 7077, 5741, 1237, 7969, 3954, - 7467, 9701, 7077, 5741, 1237, 8813, 3954, - 7467, 9701, 7077, 5741, 1237, 9675, 3954, - 7467, 9701, 7077, 5741, 1251, 7969, 3954, - 7467, 9701, 7077, 5741, 1251, 8813, 3954, - 7467, 9701, 7077, 5741, 2229, 6375, 3954, - 7467, 9701, 7077, 5741, 2229, 9675, 3954, - 7467, 9701, 7077, 5741, 2845, 6375, 3954, - 7467, 9701, 7077, 5741, 2845, 9675, 3954, - 7467, 9701, 7077, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 7077, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 7077, 5741, 4355, 5741, 2845, 6375, 3954, - 7467, 9701, 7077, 5741, 4355, 6375, 3954, - 7467, 9701, 7077, 5741, 4355, 7969, 3954, - 7467, 9701, 7077, 5741, 4355, 8813, 3954, - 7467, 9701, 7077, 5741, 4355, 9675, 3954, - 7467, 9701, 7077, 5741, 4455, 6375, 3954, - 7467, 9701, 7077, 5741, 4455, 7969, 3954, - 7467, 9701, 7077, 5741, 4455, 8813, 3954, - 7467, 9701, 7077, 5741, 4455, 9675, 3954, - 7467, 9701, 7077, 5741, 4643, 5741, 4455, 6375, 3954, - 7467, 9701, 7077, 5741, 4643, 5741, 4455, 8813, 3954, - 7467, 9701, 7077, 5741, 4643, 5741, 4643, 6375, 3954, - 7467, 9701, 7077, 5741, 4643, 5741, 4643, 8813, 3954, - 7467, 9701, 7077, 5741, 4643, 6375, 3954, - 7467, 9701, 7077, 5741, 4643, 7969, 3954, - 7467, 9701, 7077, 5741, 4643, 8813, 3954, - 7467, 9701, 7077, 5741, 4643, 9675, 3954, - 7467, 9701, 7453, 9675, 3954, - 7467, 9701, 8131, 9675, 3954, - 7467, 9701, 8185, 5741, 6247, 7969, 3954, - 7467, 9701, 8185, 5741, 6247, 9675, 3954, - 7467, 9701, 8185, 5741, 6361, 7969, 3954, - 7467, 9701, 8185, 5741, 6361, 9675, 3954, - 7467, 9701, 8185, 5741, 6601, 7969, 3954, - 7467, 9701, 8185, 5741, 6601, 9675, 3954, - 7467, 9701, 8185, 5741, 9389, 9675, 3954, - 7467, 9701, 8185, 5741, 9681, 9675, 3954, - 7467, 9701, 8185, 5741, 11663, 3033, 9675, 3954, - 7467, 9701, 8371, 8855, 2845, 5741, 6477, 5991, 5741, 3033, 8897, 6375, 3954, - 7467, 9701, 8371, 8855, 2845, 5741, 6477, 5991, 5741, 3033, 8897, 8813, 3954, - 7467, 9701, 8371, 8855, 2845, 5741, 6477, 5991, 5741, 3033, 8897, 9675, 3954, - 7467, 9701, 9739, 9675, 3954, - 7467, 9701, 10049, 9675, 3954, - 7467, 9701, 10105, 10081, 10078, - 7467, 9701, 11469, 7453, 10048, - 7467, 9701, 12400, - 7467, 9853, 4630, - 7467, 9871, 6246, - 7467, 10058, - 7467, 10562, - 7467, 10599, 3032, - 7467, 10699, 10566, - 7505, 46, - 7505, 752, - 7505, 753, 5741, 46, - 7505, 753, 5741, 6172, - 7519, 7679, 6832, - 7519, 10579, 6832, - 7539, 667, 12203, 6046, - 7539, 4119, 9660, - 7539, 4555, 3724, - 7539, 4555, 7600, - 7539, 6229, 8514, - 7539, 6997, 3724, - 7539, 6997, 7600, - 7539, 8231, 8514, - 7539, 8231, 8515, 5041, 2533, 8231, 8514, - 7539, 10007, 7085, 8514, - 7539, 11424, - 7540, - 7541, 5741, 4555, 4119, 6116, - 7541, 5741, 6997, 4119, 6116, - 7551, 696, - 7551, 7583, 5741, 10489, 6046, - 7556, - 7557, 9772, - 7561, 2446, - 7562, - 7569, 4581, 8258, - 7583, 5741, 655, 761, 7313, 4555, 9849, 6116, - 7583, 5741, 2585, 10979, 9159, 521, 2489, 6996, - 7583, 5741, 4555, 4119, 6116, - 7583, 5741, 6691, 4119, 6116, - 7583, 5741, 6997, 4119, 6116, - 7583, 5741, 7143, 7583, 521, 2489, 6996, - 7583, 5741, 7313, 4119, 6116, - 7583, 5741, 7313, 6997, 9849, 6116, - 7583, 5741, 10043, 3934, - 7583, 5741, 10979, 696, - 7583, 5741, 12181, 46, - 7583, 8633, 107, 10979, 697, 657, 2533, 4119, 8633, 107, 10043, 696, - 7591, 7309, 5741, 8180, - 7591, 7309, 5741, 8181, 657, 7145, 9038, - 7591, 8248, - 7591, 8249, 415, 6331, 520, - 7591, 9950, - 7591, 9951, 415, 6331, 520, - 7591, 11799, 5741, 8180, - 7592, - 7599, 2001, 8029, 3965, 5478, - 7599, 2001, 8029, 7333, 8634, - 7599, 2001, 8029, 7645, 9853, 4630, - 7599, 2001, 8029, 9655, 9853, 4630, - 7599, 3965, 5478, - 7599, 7143, 7919, 28, - 7599, 7143, 7919, 188, - 7599, 7143, 7919, 352, - 7599, 7143, 7919, 380, - 7599, 7143, 7919, 440, - 7599, 7143, 7919, 478, - 7599, 7143, 7919, 530, - 7599, 7143, 7919, 910, - 7599, 7143, 7919, 1012, - 7599, 7143, 7919, 1064, - 7599, 7143, 7919, 1496, - 7599, 7143, 7919, 1550, - 7599, 7143, 7919, 2001, 7599, 220, - 7599, 7143, 7919, 2001, 7599, 646, - 7599, 7143, 7919, 2001, 7599, 938, - 7599, 7143, 7919, 2001, 7599, 1034, - 7599, 7143, 7919, 2001, 7599, 1244, - 7599, 7143, 7919, 2001, 7599, 1252, - 7599, 7143, 7919, 2001, 7599, 2012, - 7599, 7143, 7919, 2001, 7599, 4260, - 7599, 7143, 7919, 2001, 7599, 5326, - 7599, 7143, 7919, 2001, 7599, 7094, - 7599, 7143, 7919, 2001, 7599, 7758, - 7599, 7143, 7919, 2001, 8029, 1880, - 7599, 7143, 7919, 2001, 8029, 1968, - 7599, 7143, 7919, 2001, 8029, 2714, - 7599, 7143, 7919, 2001, 8029, 7094, - 7599, 7143, 7919, 2012, - 7599, 7143, 7919, 2078, - 7599, 7143, 7919, 2378, - 7599, 7143, 7919, 2466, - 7599, 7143, 7919, 3034, - 7599, 7143, 7919, 4124, - 7599, 7143, 7919, 4260, - 7599, 7143, 7919, 4440, - 7599, 7143, 7919, 4464, - 7599, 7143, 7919, 5326, - 7599, 7143, 7919, 5408, - 7599, 7143, 7919, 5706, - 7599, 7143, 7919, 5876, - 7599, 7143, 7919, 6242, - 7599, 7143, 7919, 6410, - 7599, 7143, 7919, 6554, - 7599, 7143, 7919, 6660, - 7599, 7143, 7919, 7036, - 7599, 7143, 7919, 7094, - 7599, 7143, 7919, 7758, - 7599, 7143, 7919, 8298, - 7599, 7143, 7919, 8585, 5326, - 7599, 7143, 7919, 9271, 4464, - 7599, 7143, 7919, 9695, 220, - 7599, 7143, 7919, 10161, 380, - 7599, 7143, 7919, 10161, 3032, - 7599, 7143, 7919, 10161, 4260, - 7599, 7143, 7919, 10161, 4440, - 7599, 7143, 7919, 12221, 380, - 7599, 7143, 7919, 12221, 1012, - 7599, 8259, 353, 478, - 7599, 8259, 441, 478, - 7599, 8259, 1462, - 7599, 8259, 1497, 478, - 7599, 8259, 2467, 478, - 7599, 8259, 7095, 5408, - 7599, 8259, 9152, - 7599, 8527, 7919, 28, - 7599, 8527, 7919, 188, - 7599, 8527, 7919, 352, - 7599, 8527, 7919, 380, - 7599, 8527, 7919, 440, - 7599, 8527, 7919, 478, - 7599, 8527, 7919, 530, - 7599, 8527, 7919, 910, - 7599, 8527, 7919, 1012, - 7599, 8527, 7919, 1064, - 7599, 8527, 7919, 1496, - 7599, 8527, 7919, 1550, - 7599, 8527, 7919, 2001, 7599, 220, - 7599, 8527, 7919, 2001, 7599, 646, - 7599, 8527, 7919, 2001, 7599, 938, - 7599, 8527, 7919, 2001, 7599, 1034, - 7599, 8527, 7919, 2001, 7599, 1244, - 7599, 8527, 7919, 2001, 7599, 1252, - 7599, 8527, 7919, 2001, 7599, 2012, - 7599, 8527, 7919, 2001, 7599, 4260, - 7599, 8527, 7919, 2001, 7599, 5326, - 7599, 8527, 7919, 2001, 7599, 7094, - 7599, 8527, 7919, 2001, 7599, 7758, - 7599, 8527, 7919, 2001, 8029, 1880, - 7599, 8527, 7919, 2001, 8029, 1968, - 7599, 8527, 7919, 2001, 8029, 2714, - 7599, 8527, 7919, 2001, 8029, 7094, - 7599, 8527, 7919, 2012, - 7599, 8527, 7919, 2078, - 7599, 8527, 7919, 2378, - 7599, 8527, 7919, 2466, - 7599, 8527, 7919, 3034, - 7599, 8527, 7919, 4124, - 7599, 8527, 7919, 4260, - 7599, 8527, 7919, 4440, - 7599, 8527, 7919, 4464, - 7599, 8527, 7919, 5326, - 7599, 8527, 7919, 5408, - 7599, 8527, 7919, 5706, - 7599, 8527, 7919, 5876, - 7599, 8527, 7919, 6242, - 7599, 8527, 7919, 6410, - 7599, 8527, 7919, 6554, - 7599, 8527, 7919, 6660, - 7599, 8527, 7919, 7036, - 7599, 8527, 7919, 7094, - 7599, 8527, 7919, 7758, - 7599, 8527, 7919, 8298, - 7599, 8527, 7919, 8585, 5326, - 7599, 8527, 7919, 9271, 4464, - 7599, 8527, 7919, 9695, 220, - 7599, 8527, 7919, 10161, 380, - 7599, 8527, 7919, 10161, 3032, - 7599, 8527, 7919, 10161, 4260, - 7599, 8527, 7919, 10161, 4440, - 7599, 8527, 7919, 12221, 380, - 7599, 8527, 7919, 12221, 1012, - 7599, 9605, 2005, 4118, - 7599, 12275, 8634, - 7607, 5475, 10505, 5401, 9778, - 7612, - 7621, 1677, 4580, - 7621, 9786, - 7621, 12433, 11083, 6046, - 7625, 5400, - 7625, 8538, - 7625, 10956, - 7641, 1085, 6306, - 7641, 1085, 6537, 6306, - 7641, 1085, 7917, 2860, - 7641, 1085, 7917, 5796, - 7641, 1085, 8707, 6536, - 7641, 1085, 8707, 7808, - 7641, 1085, 8765, 2860, - 7641, 1085, 8765, 5796, - 7641, 1085, 9639, 6306, - 7645, 8587, 8259, 3955, 2584, - 7651, 5400, - 7671, 6224, - 7671, 6364, - 7671, 7582, - 7671, 8034, - 7671, 8230, - 7671, 12327, 7958, - 7671, 12365, 6020, - 7673, 547, 5518, - 7673, 1677, 4580, - 7673, 3863, 5518, - 7673, 4555, 667, 11779, 8514, - 7673, 5094, - 7673, 5729, 9786, - 7673, 5993, 7444, - 7673, 6213, 6330, - 7673, 6689, 10535, 4630, - 7673, 6946, - 7673, 6947, 10535, 4630, - 7673, 6997, 667, 10451, 8514, - 7673, 7308, - 7673, 7612, - 7673, 8015, 10450, - 7673, 8015, 10451, 5741, 10032, - 7673, 8015, 11778, - 7673, 8231, 7308, - 7673, 8231, 11798, - 7673, 8245, 1931, 5400, - 7673, 8248, - 7673, 8557, 6287, 2004, - 7673, 8557, 6287, 2358, - 7673, 8557, 6287, 2584, - 7673, 8557, 6287, 3942, - 7673, 8557, 6287, 3956, - 7673, 8557, 6287, 4854, - 7673, 8557, 6287, 6312, - 7673, 8557, 6287, 7060, - 7673, 8557, 6287, 7244, - 7673, 8557, 8031, 2478, - 7673, 8887, 414, - 7673, 8887, 656, - 7673, 8967, 7824, - 7673, 9135, 9772, - 7673, 9660, - 7673, 9836, - 7673, 9853, 4630, - 7673, 9946, - 7673, 9950, - 7673, 10043, 697, 4555, 10714, - 7673, 10043, 697, 7673, 4555, 10714, - 7673, 10043, 697, 7673, 6997, 10714, - 7673, 10043, 4580, - 7673, 11329, 4630, - 7673, 11798, - 7673, 12399, 10535, 4630, - 7679, 4904, - 7687, 5400, - 7687, 5401, 657, 9121, 9800, - 7687, 5401, 657, 9121, 9801, 5741, 7257, 5990, - 7687, 5401, 5741, 961, 6102, - 7687, 5401, 5741, 2585, 3861, 5991, 657, 2585, 3861, 6102, - 7687, 5401, 5741, 6145, 5990, - 7687, 5401, 5991, 5095, 5400, - 7687, 5401, 5991, 7257, 9772, - 7687, 5401, 5991, 11083, 6046, - 7687, 5741, 9308, - 7687, 6212, - 7692, - 7717, 5400, - 7723, 3758, - 7723, 7158, - 7729, 5053, 9660, - 7745, 6486, - 7746, - 7747, 11443, 4630, - 7748, - 7751, 11418, - 7753, 5216, - 7755, 6395, 5400, - 7766, - 7775, 6917, 5400, - 7783, 7180, - 7787, 7919, 1014, - 7787, 7919, 1392, - 7787, 7919, 3022, - 7787, 7919, 3746, - 7787, 7919, 4054, - 7787, 7919, 4114, - 7787, 7919, 4346, - 7787, 7919, 4855, 8794, - 7787, 7919, 5688, - 7787, 7919, 6356, - 7787, 7919, 6540, - 7787, 7919, 6562, - 7787, 7919, 6634, - 7787, 7919, 6648, - 7787, 7919, 6700, - 7787, 7919, 6880, - 7787, 7919, 6972, - 7787, 7919, 7042, - 7787, 7919, 7224, - 7787, 7919, 7364, - 7787, 7919, 7448, - 7787, 7919, 8008, - 7787, 7919, 8020, - 7787, 7919, 8304, - 7787, 7919, 8488, - 7787, 7919, 9792, - 7787, 7919, 9846, - 7803, 657, 5076, - 7803, 657, 8202, - 7805, 7673, 961, 5603, 4630, - 7805, 7726, - 7805, 7919, 0, - 7805, 7919, 8, - 7805, 7919, 16, - 7805, 7919, 28, - 7805, 7919, 40, - 7805, 7919, 66, - 7805, 7919, 166, - 7805, 7919, 174, - 7805, 7919, 398, - 7805, 7919, 566, - 7805, 7919, 570, - 7805, 7919, 574, - 7805, 7919, 596, - 7805, 7919, 598, - 7805, 7919, 600, - 7805, 7919, 604, - 7805, 7919, 608, - 7805, 7919, 2708, - 7805, 7919, 2722, - 7805, 7919, 2804, - 7805, 7919, 2848, - 7805, 7919, 5412, - 7805, 7919, 5834, - 7805, 7919, 5848, - 7805, 7919, 6034, - 7805, 7919, 6196, - 7805, 7919, 6492, - 7805, 7919, 6560, - 7805, 7919, 6732, - 7805, 7919, 6802, - 7805, 7919, 6930, - 7805, 7919, 6994, - 7805, 7919, 7398, - 7805, 7919, 7402, - 7805, 7919, 7468, - 7805, 7919, 7878, - 7805, 7919, 8308, - 7805, 7919, 8422, - 7805, 7919, 8428, - 7805, 7919, 8548, - 7805, 7919, 8850, - 7805, 7919, 8998, - 7805, 7919, 9016, - 7805, 7919, 9194, - 7805, 7919, 10052, - 7805, 7919, 10586, - 7805, 7919, 11010, - 7805, 7919, 11022, - 7805, 7919, 11046, - 7805, 7919, 11076, - 7805, 7919, 11118, - 7805, 7919, 11126, - 7805, 7919, 11128, - 7805, 7919, 11138, - 7805, 7919, 11140, - 7805, 7919, 11142, - 7805, 7919, 11144, - 7805, 7919, 11146, - 7805, 7919, 11382, - 7805, 7919, 11392, - 7805, 7919, 11404, - 7805, 7919, 11406, - 7805, 7919, 11434, - 7805, 7919, 11454, - 7805, 7919, 11456, - 7805, 7919, 11460, - 7805, 7919, 11654, - 7805, 7919, 11656, - 7805, 7919, 11658, - 7805, 7919, 11660, - 7805, 7919, 11696, - 7805, 7919, 11816, - 7805, 7919, 11820, - 7805, 7919, 11822, - 7805, 7919, 11834, - 7805, 7919, 11836, - 7805, 7919, 12256, - 7805, 7919, 12258, - 7805, 7919, 12270, - 7805, 7919, 12276, - 7805, 7919, 12296, - 7805, 7919, 12302, - 7805, 7919, 12304, - 7805, 7919, 12306, - 7805, 7919, 12332, - 7805, 7919, 12402, - 7805, 7919, 12448, - 7805, 7919, 12454, - 7805, 7919, 12466, - 7805, 7919, 12468, - 7805, 7919, 12470, - 7805, 7919, 12474, - 7805, 7919, 12486, - 7805, 8207, 961, 5603, 4630, - 7805, 9355, 5412, - 7805, 9355, 6196, - 7805, 9355, 6492, - 7805, 9355, 6560, - 7805, 9355, 6732, - 7805, 9355, 6802, - 7805, 9355, 6930, - 7805, 9355, 6994, - 7805, 9355, 7726, - 7805, 9355, 7878, - 7805, 9355, 8308, - 7805, 9355, 8548, - 7805, 9355, 8850, - 7805, 9355, 8998, - 7805, 9355, 9016, - 7805, 9355, 9194, - 7805, 9355, 10052, - 7805, 9355, 10586, - 7805, 9355, 10982, - 7805, 9355, 11046, - 7805, 9355, 11118, - 7805, 9355, 11120, - 7805, 9355, 11122, - 7805, 9355, 11124, - 7805, 9355, 11126, - 7805, 9355, 11128, - 7805, 9355, 11130, - 7805, 9355, 11138, - 7805, 9355, 11140, - 7805, 9355, 11142, - 7805, 9355, 11144, - 7805, 9355, 11146, - 7805, 9355, 11148, - 7805, 9355, 11214, - 7805, 9355, 11356, - 7805, 9355, 11358, - 7805, 9355, 11360, - 7805, 9355, 11392, - 7805, 9355, 11408, - 7805, 9355, 11434, - 7805, 9355, 11438, - 7805, 9355, 11454, - 7805, 9355, 11458, - 7805, 9355, 11654, - 7805, 9355, 11656, - 7805, 9355, 11658, - 7805, 9355, 11660, - 7805, 9355, 11696, - 7805, 9355, 11730, - 7805, 9355, 11790, - 7805, 9355, 11792, - 7805, 9355, 11814, - 7805, 9355, 11816, - 7805, 9355, 11820, - 7805, 9355, 11822, - 7805, 9355, 12160, - 7805, 9355, 12162, - 7805, 9355, 12164, - 7805, 9355, 12166, - 7805, 9355, 12210, - 7805, 9355, 12212, - 7805, 9355, 12240, - 7805, 9355, 12244, - 7805, 9355, 12246, - 7805, 9355, 12248, - 7805, 9355, 12256, - 7805, 9355, 12258, - 7805, 9355, 12260, - 7805, 9355, 12290, - 7805, 9355, 12292, - 7805, 9355, 12294, - 7805, 9355, 12296, - 7805, 9355, 12324, - 7805, 9355, 12374, - 7805, 9355, 12390, - 7805, 9355, 12392, - 7805, 9355, 12394, - 7805, 9355, 12402, - 7805, 9355, 12416, - 7805, 9355, 12436, - 7805, 9355, 12442, - 7805, 9355, 12444, - 7805, 9355, 12458, - 7805, 9355, 12466, - 7805, 9355, 12468, - 7805, 9355, 12478, - 7805, 9355, 12482, - 7805, 9355, 12484, - 7805, 9355, 12486, - 7805, 9355, 12508, - 7805, 9355, 12512, - 7805, 10423, 5412, - 7805, 10423, 6196, - 7805, 10423, 6492, - 7805, 10423, 6560, - 7805, 10423, 6732, - 7805, 10423, 6802, - 7805, 10423, 6930, - 7805, 10423, 6994, - 7805, 10423, 7878, - 7805, 10423, 8308, - 7805, 10423, 8548, - 7805, 10423, 8850, - 7805, 10423, 8998, - 7805, 10423, 9016, - 7805, 10423, 9194, - 7805, 10423, 10052, - 7805, 10423, 10586, - 7805, 10423, 11010, - 7805, 10423, 11022, - 7805, 10423, 11046, - 7805, 10423, 11076, - 7805, 10423, 11128, - 7805, 10423, 11130, - 7805, 10423, 11142, - 7805, 10423, 11148, - 7805, 10423, 11344, - 7805, 10423, 11346, - 7805, 10423, 11348, - 7805, 10423, 11350, - 7805, 10423, 11382, - 7805, 10423, 11390, - 7805, 10423, 11392, - 7805, 10423, 11394, - 7805, 10423, 11404, - 7805, 10423, 11406, - 7805, 10423, 11436, - 7805, 10423, 11440, - 7805, 10423, 11454, - 7805, 10423, 11456, - 7805, 10423, 11458, - 7805, 10423, 11460, - 7805, 10423, 11654, - 7805, 10423, 11656, - 7805, 10423, 11658, - 7805, 10423, 11696, - 7805, 10423, 11790, - 7805, 10423, 11802, - 7805, 10423, 11810, - 7805, 10423, 11814, - 7805, 10423, 11816, - 7805, 10423, 11834, - 7805, 10423, 11836, - 7805, 10423, 12186, - 7805, 10423, 12242, - 7805, 10423, 12256, - 7805, 10423, 12258, - 7805, 10423, 12268, - 7805, 10423, 12270, - 7805, 10423, 12276, - 7805, 10423, 12278, - 7805, 10423, 12290, - 7805, 10423, 12294, - 7805, 10423, 12300, - 7805, 10423, 12302, - 7805, 10423, 12304, - 7805, 10423, 12306, - 7805, 10423, 12324, - 7805, 10423, 12332, - 7805, 10423, 12402, - 7805, 10423, 12412, - 7805, 10423, 12422, - 7805, 10423, 12446, - 7805, 10423, 12448, - 7805, 10423, 12454, - 7805, 10423, 12462, - 7805, 10423, 12470, - 7805, 10423, 12472, - 7805, 10423, 12474, - 7805, 10423, 12488, - 7805, 10423, 12494, - 7805, 10423, 12496, - 7805, 10423, 12506, - 7805, 10425, 0, - 7805, 10425, 8, - 7805, 10425, 16, - 7805, 10425, 28, - 7805, 10425, 40, - 7805, 10425, 66, - 7805, 10425, 166, - 7805, 10425, 174, - 7805, 10425, 398, - 7805, 10425, 566, - 7805, 10425, 570, - 7805, 10425, 574, - 7805, 10425, 596, - 7805, 10425, 598, - 7805, 10425, 600, - 7805, 10425, 604, - 7805, 10425, 608, - 7805, 10425, 630, - 7805, 10425, 632, - 7805, 10425, 1350, - 7805, 10425, 1352, - 7805, 10425, 1354, - 7805, 10425, 1984, - 7805, 10425, 1986, - 7805, 10425, 1988, - 7805, 10425, 2606, - 7805, 10425, 2608, - 7805, 10425, 2708, - 7805, 10425, 2722, - 7805, 10425, 2804, - 7805, 10425, 2848, - 7805, 10425, 3902, - 7805, 10425, 3904, - 7805, 10425, 3910, - 7805, 10425, 4316, - 7805, 10425, 4318, - 7805, 10425, 5024, - 7805, 10425, 5026, - 7805, 10425, 5672, - 7805, 10425, 5674, - 7805, 10425, 5776, - 7805, 10425, 5822, - 7805, 10425, 5834, - 7805, 10425, 5836, - 7805, 10425, 5844, - 7805, 10425, 5846, - 7805, 10425, 5848, - 7805, 10425, 5850, - 7805, 10425, 6034, - 7805, 10425, 6326, - 7805, 10425, 6348, - 7805, 10425, 7374, - 7805, 10425, 7386, - 7805, 10425, 7388, - 7805, 10425, 7398, - 7805, 10425, 7400, - 7805, 10425, 7402, - 7805, 10425, 7726, - 7805, 10425, 8422, - 7805, 10425, 8424, - 7805, 10425, 8428, - 7805, 10425, 8472, - 7805, 10425, 8474, - 7805, 10425, 8796, - 7805, 10425, 9212, - 7805, 10425, 9292, - 7805, 10425, 11136, - 7811, 4631, 6691, 960, - 7811, 4631, 7313, 960, - 7811, 4631, 7963, 7582, - 7811, 6939, 2353, 960, - 7811, 6939, 5172, - 7811, 6939, 5345, 960, - 7811, 6939, 6483, 6900, - 7811, 6939, 6483, 7054, - 7811, 6939, 6483, 8116, - 7811, 6939, 6494, - 7811, 6939, 6528, - 7811, 6939, 6529, 6481, 1085, 2654, - 7811, 6939, 6718, - 7811, 6939, 6900, - 7811, 6939, 7054, - 7811, 6939, 7088, - 7811, 6939, 7290, - 7811, 6939, 7611, 415, 6702, - 7811, 6939, 8116, - 7811, 6939, 8117, 6960, - 7811, 6939, 8122, - 7811, 6939, 12255, 8386, - 7811, 7445, 2002, - 7811, 7445, 3820, - 7811, 7445, 4328, - 7811, 7445, 6051, 7798, - 7811, 7445, 6254, - 7811, 7445, 6758, - 7811, 7445, 6904, - 7811, 7445, 6958, - 7811, 7445, 6986, - 7811, 7445, 7054, - 7811, 7445, 7226, - 7811, 7445, 7391, 721, 5840, - 7811, 7445, 7394, - 7811, 7445, 7405, 6402, - 7811, 7445, 7405, 6960, - 7811, 7445, 7406, - 7811, 7445, 7422, - 7811, 7445, 7772, - 7811, 7445, 7773, 7998, - 7811, 7445, 7976, - 7811, 7445, 7977, 7862, - 7811, 7445, 8070, - 7811, 7445, 8119, 5050, - 7811, 7445, 8310, - 7811, 7445, 8724, - 7811, 7445, 9187, 7764, - 7811, 7445, 9187, 8120, - 7811, 7445, 9710, - 7811, 7445, 10368, - 7811, 7445, 11112, - 7811, 7919, 222, - 7811, 7919, 223, 5741, 6702, - 7811, 7919, 434, - 7811, 7919, 435, 5741, 5172, - 7811, 7919, 435, 5741, 7610, - 7811, 7919, 724, - 7811, 7919, 725, 5741, 5172, - 7811, 7919, 725, 5741, 7610, - 7811, 7919, 1256, - 7811, 7919, 1458, - 7811, 7919, 1459, 5741, 5172, - 7811, 7919, 1459, 5741, 7610, - 7811, 7919, 1744, - 7811, 7919, 1745, 5741, 7610, - 7811, 7919, 1946, - 7811, 7919, 1947, 5741, 7610, - 7811, 7919, 2146, - 7811, 7919, 2147, 5741, 7610, - 7811, 7919, 2468, - 7811, 7919, 2469, 5741, 7610, - 7811, 7919, 2482, - 7811, 7919, 2483, 5741, 7610, - 7811, 7919, 2654, - 7811, 7919, 2655, 5741, 6528, - 7811, 7919, 2655, 5741, 7610, - 7811, 7919, 2870, - 7811, 7919, 2871, 5741, 6494, - 7811, 7919, 2871, 5741, 7610, - 7811, 7919, 3032, - 7811, 7919, 3033, 5741, 6702, - 7811, 7919, 3033, 5741, 6900, - 7811, 7919, 3033, 5741, 8116, - 7811, 7919, 3078, - 7811, 7919, 5188, - 7811, 7919, 5189, 5741, 7610, - 7811, 7919, 5344, - 7811, 7919, 5345, 5741, 2353, 960, - 7811, 7919, 5345, 5741, 5345, 960, - 7811, 7919, 5345, 5741, 7610, - 7811, 7919, 5345, 5741, 7611, 657, 2353, 960, - 7811, 7919, 5345, 5741, 7611, 657, 5345, 960, - 7811, 7919, 5735, 222, - 7811, 7919, 5735, 1458, - 7811, 7919, 5735, 2468, - 7811, 7919, 5735, 3032, - 7811, 7919, 5735, 5188, - 7811, 7919, 5735, 6244, - 7811, 7919, 5735, 6375, 1744, - 7811, 7919, 5735, 6652, - 7811, 7919, 6244, - 7811, 7919, 6245, 5741, 7610, - 7811, 7919, 6375, 434, - 7811, 7919, 6375, 435, 5741, 7610, - 7811, 7919, 6375, 1458, - 7811, 7919, 6375, 1459, 5741, 7610, - 7811, 7919, 6375, 1744, - 7811, 7919, 6375, 1946, - 7811, 7919, 6375, 7288, - 7811, 7919, 6442, - 7811, 7919, 6443, 5741, 7610, - 7811, 7919, 6652, - 7811, 7919, 6653, 5741, 7610, - 7811, 7919, 7288, - 7811, 7919, 7289, 5741, 7610, - 7811, 7919, 7408, - 7811, 7919, 7409, 5741, 7610, - 7811, 7919, 8152, - 7811, 7919, 8153, 5741, 7610, - 7811, 7919, 11205, 3078, - 7811, 7919, 11205, 5095, 5400, - 7811, 9701, 3033, 6652, - 7811, 9701, 9257, 2655, 2870, - 7811, 9701, 9257, 2871, 2871, 6900, - 7811, 9701, 9257, 7673, 2654, - 7811, 9701, 9257, 7673, 2870, - 7811, 11443, 1947, 8768, - 7811, 11443, 2369, 6898, - 7811, 11443, 6704, - 7811, 11443, 6896, - 7811, 11443, 7772, - 7811, 11443, 10368, - 7824, - 7825, 7556, - 7855, 9045, 141, 1930, - 7855, 9045, 212, - 7855, 9045, 213, 8212, - 7855, 9045, 656, - 7855, 9045, 678, - 7855, 9045, 736, - 7855, 9045, 750, - 7855, 9045, 844, - 7855, 9045, 954, - 7855, 9045, 960, - 7855, 9045, 964, - 7855, 9045, 1004, - 7855, 9045, 1006, - 7855, 9045, 1046, - 7855, 9045, 1078, - 7855, 9045, 1090, - 7855, 9045, 1358, - 7855, 9045, 1386, - 7855, 9045, 1648, - 7855, 9045, 1728, - 7855, 9045, 1868, - 7855, 9045, 1930, - 7855, 9045, 2000, - 7855, 9045, 2004, - 7855, 9045, 2054, - 7855, 9045, 2216, - 7855, 9045, 2218, - 7855, 9045, 2224, - 7855, 9045, 2276, - 7855, 9045, 2322, - 7855, 9045, 2324, - 7855, 9045, 2402, - 7855, 9045, 2478, - 7855, 9045, 2584, - 7855, 9045, 2585, 6478, - 7855, 9045, 2640, - 7855, 9045, 3544, - 7855, 9045, 3566, - 7855, 9045, 3572, - 7855, 9045, 3576, - 7855, 9045, 3578, - 7855, 9045, 3583, 401, 6206, - 7855, 9045, 3584, - 7855, 9045, 3622, - 7855, 9045, 3624, - 7855, 9045, 3708, - 7855, 9045, 3710, - 7855, 9045, 3712, - 7855, 9045, 3818, - 7855, 9045, 3844, - 7855, 9045, 3856, - 7855, 9045, 3863, 752, - 7855, 9045, 3866, - 7855, 9045, 3914, - 7855, 9045, 3920, - 7855, 9045, 3922, - 7855, 9045, 3936, - 7855, 9045, 3938, - 7855, 9045, 3950, - 7855, 9045, 3960, - 7855, 9045, 3986, - 7855, 9045, 4072, - 7855, 9045, 4116, - 7855, 9045, 4119, 5605, 7284, - 7855, 9045, 4120, - 7855, 9045, 4128, - 7855, 9045, 4132, - 7855, 9045, 4256, - 7855, 9045, 4262, - 7855, 9045, 4332, - 7855, 9045, 4352, - 7855, 9045, 4532, - 7855, 9045, 4542, - 7855, 9045, 4550, - 7855, 9045, 4552, - 7855, 9045, 4556, - 7855, 9045, 4578, - 7855, 9045, 4580, - 7855, 9045, 4598, - 7855, 9045, 4599, 8242, - 7855, 9045, 4640, - 7855, 9045, 4702, - 7855, 9045, 4902, - 7855, 9045, 5039, 752, - 7855, 9045, 5090, - 7855, 9045, 5174, - 7855, 9045, 5196, - 7855, 9045, 5212, - 7855, 9045, 5282, - 7855, 9045, 5296, - 7855, 9045, 5300, - 7855, 9045, 5406, - 7855, 9045, 5414, - 7855, 9045, 5476, - 7855, 9045, 5478, - 7855, 9045, 5526, - 7855, 9045, 5580, - 7855, 9045, 5604, - 7855, 9045, 5722, - 7855, 9045, 5723, 10322, - 7855, 9045, 5732, - 7855, 9045, 5736, - 7855, 9045, 5738, - 7855, 9045, 5748, - 7855, 9045, 5750, - 7855, 9045, 5998, - 7855, 9045, 6046, - 7855, 9045, 6116, - 7855, 9045, 6124, - 7855, 9045, 6130, - 7855, 9045, 6176, - 7855, 9045, 6202, - 7855, 9045, 6214, - 7855, 9045, 6220, - 7855, 9045, 6272, - 7855, 9045, 6306, - 7855, 9045, 6312, - 7855, 9045, 6324, - 7855, 9045, 6366, - 7855, 9045, 6372, - 7855, 9045, 6380, - 7855, 9045, 6438, - 7855, 9045, 6456, - 7855, 9045, 6458, - 7855, 9045, 6486, - 7855, 9045, 6532, - 7855, 9045, 6626, - 7855, 9045, 6714, - 7855, 9045, 6750, - 7855, 9045, 6752, - 7855, 9045, 6944, - 7855, 9045, 6997, 5039, 752, - 7855, 9045, 7000, - 7855, 9045, 7078, - 7855, 9045, 7084, - 7855, 9045, 7100, - 7855, 9045, 7103, 8267, 3566, - 7855, 9045, 7103, 8306, - 7855, 9045, 7132, - 7855, 9045, 7134, - 7855, 9045, 7136, - 7855, 9045, 7142, - 7855, 9045, 7152, - 7855, 9045, 7154, - 7855, 9045, 7162, - 7855, 9045, 7166, - 7855, 9045, 7178, - 7855, 9045, 7184, - 7855, 9045, 7192, - 7855, 9045, 7204, - 7855, 9045, 7212, - 7855, 9045, 7252, - 7855, 9045, 7274, - 7855, 9045, 7278, - 7855, 9045, 7348, - 7855, 9045, 7352, - 7855, 9045, 7356, - 7855, 9045, 7366, - 7855, 9045, 7368, - 7855, 9045, 7478, - 7855, 9045, 7498, - 7855, 9045, 7508, - 7855, 9045, 7534, - 7855, 9045, 7542, - 7855, 9045, 7602, - 7855, 9045, 7642, - 7855, 9045, 7671, 5536, - 7855, 9045, 7671, 6202, - 7855, 9045, 7673, 46, - 7855, 9045, 7674, - 7855, 9045, 7714, - 7855, 9045, 7821, 10322, - 7855, 9045, 7834, - 7855, 9045, 7984, - 7855, 9045, 7992, - 7855, 9045, 8048, - 7855, 9045, 8170, - 7855, 9045, 8172, - 7855, 9045, 8220, - 7855, 9045, 8222, - 7855, 9045, 8226, - 7855, 9045, 8230, - 7855, 9045, 8275, 8876, - 7855, 9045, 8322, - 7855, 9045, 8330, - 7855, 9045, 8342, - 7855, 9045, 8346, - 7855, 9045, 8382, - 7855, 9045, 8404, - 7855, 9045, 8418, - 7855, 9045, 8520, - 7855, 9045, 8562, - 7855, 9045, 8566, - 7855, 9045, 8726, - 7855, 9045, 8734, - 7855, 9045, 8772, - 7855, 9045, 8876, - 7855, 9045, 8926, - 7855, 9045, 8974, - 7855, 9045, 9036, - 7855, 9045, 9082, - 7855, 9045, 9234, - 7855, 9045, 9344, - 7855, 9045, 9608, - 7855, 9045, 9734, - 7855, 9045, 9742, - 7855, 9045, 9840, - 7855, 9045, 9898, - 7855, 9045, 9916, - 7855, 9045, 10322, - 7855, 9045, 10820, - 7855, 9045, 10938, - 7855, 9045, 11258, - 7855, 9045, 11465, 5738, - 7865, 5400, - 7887, 9913, 8258, - 7905, 5552, - 7905, 5553, 415, 6331, 520, - 7933, 3, 8259, 3114, - 7933, 3, 8259, 3116, - 7933, 3, 8259, 3122, - 7933, 3, 8259, 3146, - 7933, 3, 8259, 3170, - 7933, 3, 8259, 3174, - 7933, 3, 8259, 3188, - 7933, 3, 8259, 3202, - 7933, 3, 8259, 3204, - 7933, 3, 8259, 3234, - 7933, 3, 8259, 3240, - 7933, 3, 8259, 3242, - 7933, 3, 8259, 3246, - 7933, 3, 8259, 3250, - 7933, 3, 9647, 3257, 1728, - 7933, 3, 9647, 3259, 7366, - 7933, 3, 9647, 3261, 3818, - 7933, 3, 9647, 3263, 6332, - 7933, 3, 9647, 3265, 7352, - 7933, 3, 9647, 3267, 7512, - 7933, 3, 9647, 3269, 6872, - 7933, 3, 9647, 3271, 7164, - 7933, 3, 9647, 3273, 8592, - 7933, 3, 9647, 3279, 1998, - 7933, 3, 9647, 3281, 5738, - 7933, 3, 9647, 3282, - 7933, 3, 9647, 3289, 7552, - 7933, 3, 9647, 3291, 4072, - 7933, 3, 9647, 3292, - 7933, 3, 9647, 3295, 5744, - 7933, 3, 9647, 3296, - 7933, 3, 9647, 3298, - 7933, 3, 9647, 3301, 4262, - 7933, 3, 9647, 3302, - 7933, 3, 9647, 3304, - 7933, 3, 9647, 3306, - 7933, 3, 9647, 3312, - 7933, 3, 9647, 3314, - 7933, 3, 9647, 3317, 6206, - 7933, 3, 9647, 3318, - 7933, 3, 9647, 3320, - 7933, 3, 9647, 3323, 8750, - 7933, 3, 9647, 3325, 7472, - 7933, 3, 9647, 3326, - 7933, 3, 9647, 3328, - 7933, 3, 9647, 3330, - 7933, 3, 9647, 3332, - 7933, 3, 9647, 3334, - 7933, 3, 9647, 3336, - 7933, 3, 9647, 3338, - 7933, 3, 9647, 3340, - 7933, 3, 9647, 3342, - 7933, 3, 9647, 3345, 6748, - 7933, 3, 9647, 3346, - 7933, 3, 9647, 3349, 5604, - 7933, 3, 9647, 3350, - 7933, 3, 9647, 3352, - 7933, 3, 9647, 3354, - 7933, 3, 9647, 3356, - 7933, 3, 9647, 3358, - 7933, 3, 9647, 3360, - 7933, 3, 9647, 3362, - 7933, 3, 9647, 3364, - 7933, 3, 9647, 3366, - 7933, 3, 9647, 3368, - 7933, 3, 9647, 3370, - 7933, 3, 9647, 3373, 7814, - 7933, 3, 9647, 3415, 10352, - 7933, 3, 9647, 3421, 8498, - 7933, 3, 9647, 3431, 7162, - 7933, 3, 9647, 3433, 6046, - 7933, 3, 9647, 3434, - 7933, 3, 9647, 3437, 7206, - 7933, 3, 9647, 3438, - 7933, 3, 9647, 3440, - 7933, 3, 9647, 3443, 9251, 8544, - 7933, 3, 9647, 3445, 8544, - 7933, 3, 9647, 3447, 8545, 6392, - 7933, 3, 9647, 3449, 7354, - 7933, 3, 9647, 3450, - 7933, 3, 9647, 3452, - 7933, 3, 9647, 3456, - 7933, 3, 9647, 3458, - 7933, 3, 9647, 3462, - 7933, 3, 9647, 3464, - 7933, 3, 9647, 3466, - 7933, 3, 9647, 3469, 3756, - 7933, 3, 9647, 3470, - 7933, 3, 9647, 3472, - 7933, 3, 9647, 3474, - 7933, 3, 9647, 3476, - 7933, 3, 9647, 3478, - 7933, 3, 9647, 6057, 4628, - 7933, 3, 9647, 6059, 9910, - 7933, 3, 9647, 6061, 1042, - 7933, 3, 9647, 6063, 2214, - 7933, 3, 9647, 6065, 9894, - 7933, 3, 9647, 6067, 8782, - 7933, 3, 9647, 6069, 2380, - 7933, 3, 9647, 6071, 3574, - 7933, 3, 9647, 6073, 844, - 7933, 3, 9647, 6075, 3588, - 7933, 3, 9647, 8391, 3308, - 7933, 3, 9647, 8391, 3374, - 7933, 3, 9647, 8391, 3376, - 7933, 3, 9647, 8391, 3378, - 7933, 3, 9647, 8391, 3380, - 7933, 3, 9647, 8391, 3382, - 7933, 3, 9647, 8391, 3384, - 7933, 3, 9647, 8391, 3386, - 7933, 3, 9647, 8391, 3388, - 7933, 3, 9647, 8391, 3390, - 7933, 3, 9647, 8391, 3392, - 7933, 3, 9647, 8391, 3394, - 7933, 3, 9647, 8391, 3396, - 7933, 3, 9647, 8391, 3398, - 7933, 3, 9647, 8391, 3400, - 7933, 3, 9647, 8391, 3402, - 7933, 3, 9647, 8391, 3404, - 7933, 3, 9647, 8391, 3406, - 7933, 3, 9647, 8391, 3408, - 7933, 3, 9647, 8391, 3410, - 7933, 3, 9647, 8391, 3412, - 7933, 3, 9647, 8391, 3416, - 7933, 3, 9647, 8391, 3418, - 7933, 3, 9647, 8391, 3422, - 7933, 3, 9647, 8391, 3424, - 7933, 3, 9647, 8391, 3426, - 7933, 3, 9647, 8391, 3428, - 7933, 3, 9647, 8391, 3460, - 7933, 3, 9647, 8391, 3480, - 7933, 3, 9741, 3275, 4444, - 7933, 3, 9741, 3277, 7852, - 7933, 3, 9741, 3285, 6036, - 7933, 3, 9741, 3287, 4648, - 7933, 3, 9741, 3311, 7300, - 7933, 3, 9741, 3455, 6290, - 7933, 3, 9957, 3081, 128, - 7933, 3, 9957, 3083, 478, - 7933, 3, 9957, 3085, 430, - 7933, 3, 9957, 3087, 514, - 7933, 3, 9957, 3089, 520, - 7933, 3, 9957, 3091, 370, - 7933, 3, 9957, 3093, 134, - 7933, 3, 9957, 3095, 0, - 7933, 3, 9957, 3097, 488, - 7933, 3, 9957, 3099, 40, - 7933, 3, 9957, 3101, 444, - 7933, 3, 9957, 3103, 496, - 7933, 3, 9957, 3105, 346, - 7933, 3, 9957, 3107, 140, - 7933, 3, 9957, 3109, 358, - 7933, 3, 9957, 3111, 458, - 7933, 3, 9957, 3113, 614, - 7933, 3, 9957, 3119, 622, - 7933, 3, 9957, 3121, 462, - 7933, 3, 9957, 3125, 362, - 7933, 3, 9957, 3127, 372, - 7933, 3, 9957, 3129, 54, - 7933, 3, 9957, 3131, 482, - 7933, 3, 9957, 3133, 474, - 7933, 3, 9957, 3135, 16, - 7933, 3, 9957, 3137, 2082, - 7933, 3, 9957, 3139, 380, - 7933, 3, 9957, 3141, 486, - 7933, 3, 9957, 3143, 464, - 7933, 3, 9957, 3145, 2204, - 7933, 3, 9957, 3149, 280, - 7933, 3, 9957, 3151, 518, - 7933, 3, 9957, 3153, 8, - 7933, 3, 9957, 3155, 440, - 7933, 3, 9957, 3157, 574, - 7933, 3, 9957, 3159, 492, - 7933, 3, 9957, 3161, 576, - 7933, 3, 9957, 3163, 56, - 7933, 3, 9957, 3165, 290, - 7933, 3, 9957, 3167, 132, - 7933, 3, 9957, 3169, 276, - 7933, 3, 9957, 3173, 1958, - 7933, 3, 9957, 3177, 450, - 7933, 3, 9957, 3179, 142, - 7933, 3, 9957, 3181, 386, - 7933, 3, 9957, 3183, 476, - 7933, 3, 9957, 3185, 566, - 7933, 3, 9957, 3187, 390, - 7933, 3, 9957, 3191, 274, - 7933, 3, 9957, 3193, 502, - 7933, 3, 9957, 3195, 510, - 7933, 3, 9957, 3197, 472, - 7933, 3, 9957, 3199, 28, - 7933, 3, 9957, 3201, 2080, - 7933, 3, 9957, 3207, 282, - 7933, 3, 9957, 3209, 2440, - 7933, 3, 9957, 3211, 294, - 7933, 3, 9957, 3213, 2246, - 7933, 3, 9957, 3215, 526, - 7933, 3, 9957, 3217, 302, - 7933, 3, 9957, 3219, 988, - 7933, 3, 9957, 3221, 434, - 7933, 3, 9957, 3223, 352, - 7933, 3, 9957, 3225, 616, - 7933, 3, 9957, 3227, 570, - 7933, 3, 9957, 3229, 2202, - 7933, 3, 9957, 3231, 286, - 7933, 3, 9957, 3233, 460, - 7933, 3, 9957, 3237, 342, - 7933, 3, 9957, 3239, 306, - 7933, 3, 9957, 3245, 88, - 7933, 3, 9957, 3249, 2580, - 7933, 3, 9957, 3253, 990, - 7933, 3, 9957, 3255, 2584, - 7940, - 7971, 4555, 6229, 8515, 9778, - 7971, 4555, 11425, 9778, - 7971, 6117, 7582, - 7971, 6997, 6229, 8515, 9778, - 7971, 6997, 11425, 9778, - 7971, 7064, - 7971, 7143, 7357, 7582, - 7971, 7357, 7582, - 7971, 10043, 696, - 7971, 10349, 4555, 11425, 9778, - 7971, 10349, 6997, 11425, 9778, - 7971, 11809, 7158, - 7971, 12265, 6021, 8515, 9778, - 7971, 12365, 6021, 8515, 9778, - 7981, 960, - 7988, - 7991, 2585, 2400, - 8005, 9761, 7158, - 8016, - 8027, 9945, 400, - 8027, 9945, 401, 415, 6331, 520, - 8031, 2479, 3965, 5478, - 8031, 5400, - 8031, 7683, 3965, 5478, - 8031, 8351, 3965, 5478, - 8031, 8353, 3965, 5478, - 8031, 8739, 3965, 5478, - 8031, 9117, 3965, 5478, - 8031, 9557, 3965, 5478, - 8031, 9603, 3965, 5478, - 8031, 9759, 3965, 5478, - 8031, 9993, 3965, 5478, - 8031, 10571, 3965, 5478, - 8033, 5400, - 8039, 11453, 10116, - 8040, - 8051, 1490, - 8055, 4555, 11424, - 8055, 6997, 11424, - 8072, - 8083, 5400, - 8094, - 8097, 9366, - 8097, 9367, 5041, 2585, 440, - 8107, 4630, - 8107, 4631, 3920, - 8127, 7671, 12251, 7958, - 8127, 8230, - 8127, 12251, 7958, - 8137, 8258, - 8143, 9409, 9377, 7157, 3895, 6046, - 8143, 9409, 9377, 8731, 9408, - 8160, - 8164, - 8171, 7143, 8, - 8171, 7143, 12, - 8171, 7143, 22, - 8171, 7143, 28, - 8171, 8527, 2, - 8171, 8527, 8, - 8171, 8527, 10, - 8171, 8527, 14, - 8171, 8527, 16, - 8171, 8527, 22, - 8171, 8527, 24, - 8171, 8527, 30, - 8171, 8527, 34, - 8176, - 8183, 960, - 8207, 6689, 10535, 4630, - 8207, 12265, 6021, 10535, 4630, - 8207, 12365, 6021, 10535, 4630, - 8207, 12399, 10535, 4630, - 8231, 1, 5041, 24, - 8231, 5, 5041, 292, - 8231, 21, 1996, - 8231, 25, 1996, - 8231, 25, 5041, 36, - 8231, 25, 5041, 37, 9146, - 8231, 25, 6226, - 8231, 25, 9146, - 8231, 43, 5041, 24, - 8231, 76, - 8231, 88, - 8231, 102, - 8231, 110, - 8231, 112, - 8231, 120, - 8231, 121, 6226, - 8231, 121, 9146, - 8231, 122, - 8231, 128, - 8231, 130, - 8231, 136, - 8231, 138, - 8231, 139, 6226, - 8231, 139, 9146, - 8231, 176, - 8231, 192, - 8231, 202, - 8231, 218, - 8231, 220, - 8231, 224, - 8231, 232, - 8231, 238, - 8231, 256, - 8231, 268, - 8231, 286, - 8231, 288, - 8231, 292, - 8231, 296, - 8231, 298, - 8231, 300, - 8231, 301, 6226, - 8231, 301, 8526, - 8231, 301, 9146, - 8231, 304, - 8231, 308, - 8231, 310, - 8231, 324, - 8231, 326, - 8231, 336, - 8231, 342, - 8231, 344, - 8231, 345, 7142, - 8231, 348, - 8231, 354, - 8231, 356, - 8231, 357, 6226, - 8231, 357, 9146, - 8231, 360, - 8231, 363, 0, - 8231, 363, 10, - 8231, 363, 12, - 8231, 363, 22, - 8231, 363, 24, - 8231, 363, 36, - 8231, 363, 42, - 8231, 363, 44, - 8231, 364, - 8231, 365, 4646, - 8231, 366, - 8231, 367, 4646, - 8231, 370, - 8231, 374, - 8231, 384, - 8231, 388, - 8231, 392, - 8231, 394, - 8231, 422, - 8231, 430, - 8231, 431, 3048, - 8231, 432, - 8231, 436, - 8231, 438, - 8231, 442, - 8231, 446, - 8231, 448, - 8231, 452, - 8231, 454, - 8231, 498, - 8231, 504, - 8231, 568, - 8231, 696, - 8231, 782, - 8231, 786, - 8231, 852, - 8231, 1027, 4737, 6712, - 8231, 1027, 4737, 7812, - 8231, 1027, 4737, 8262, - 8231, 1027, 4737, 9176, - 8231, 1028, - 8231, 1120, - 8231, 1168, - 8231, 1192, - 8231, 1310, - 8231, 1320, - 8231, 1502, - 8231, 1546, - 8231, 1668, - 8231, 1760, - 8231, 1770, - 8231, 1784, - 8231, 1794, - 8231, 2076, - 8231, 2210, - 8231, 2211, 5041, 36, - 8231, 2211, 5041, 37, 9146, - 8231, 2496, - 8231, 2528, - 8231, 2622, - 8231, 3014, - 8231, 3568, - 8231, 3828, - 8231, 3858, - 8231, 3950, - 8231, 4062, - 8231, 4258, - 8231, 4336, - 8231, 4450, - 8231, 4480, - 8231, 4555, 5039, 753, 9772, - 8231, 4646, - 8231, 4698, - 8231, 4742, - 8231, 5032, - 8231, 5034, - 8231, 5060, - 8231, 5082, - 8231, 5184, - 8231, 5202, - 8231, 5216, - 8231, 5741, 2533, 4119, 6116, - 8231, 5741, 4555, 4119, 6116, - 8231, 5741, 6691, 4555, 9409, 4119, 6116, - 8231, 5741, 6691, 6997, 9409, 4119, 6116, - 8231, 5741, 6997, 4119, 6116, - 8231, 5741, 7313, 4555, 521, 6691, 6997, 3934, - 8231, 5741, 7313, 4555, 9409, 4119, 6116, - 8231, 5741, 7313, 6997, 521, 6691, 4555, 3934, - 8231, 5741, 7313, 6997, 9409, 4119, 6116, - 8231, 5741, 7539, 4119, 6116, - 8231, 5741, 9409, 10801, 3934, - 8231, 5741, 10043, 3934, - 8231, 5741, 10135, 8986, - 8231, 5741, 10979, 3934, - 8231, 5741, 11033, 10801, 3934, - 8231, 5852, - 8231, 6022, - 8231, 6094, - 8231, 6232, - 8231, 6308, - 8231, 6412, - 8231, 6414, - 8231, 6444, - 8231, 6474, - 8231, 6530, - 8231, 6538, - 8231, 6567, 400, - 8231, 6567, 401, 415, 1931, 6331, 520, - 8231, 6567, 401, 415, 6331, 520, - 8231, 6594, - 8231, 6604, - 8231, 6630, - 8231, 6696, - 8231, 6698, - 8231, 6834, - 8231, 6888, - 8231, 6910, - 8231, 6918, - 8231, 6940, - 8231, 6997, 5039, 753, 9772, - 8231, 7022, - 8231, 7056, - 8231, 7058, - 8231, 7350, - 8231, 7376, - 8231, 7378, - 8231, 7462, - 8231, 7486, - 8231, 7536, - 8231, 7792, - 8231, 7818, - 8231, 7822, - 8231, 7832, - 8231, 7888, - 8231, 7894, - 8231, 7960, - 8231, 8074, - 8231, 8090, - 8231, 8102, - 8231, 8486, - 8231, 8758, - 8231, 8838, - 8231, 8840, - 8231, 8866, - 8231, 8888, - 8231, 8892, - 8231, 8902, - 8231, 8914, - 8231, 8916, - 8231, 8922, - 8231, 9064, - 8231, 9070, - 8231, 9072, - 8231, 9114, - 8231, 9336, - 8231, 9570, - 8231, 9644, - 8231, 9777, 400, - 8231, 9777, 401, 415, 1931, 6331, 520, - 8231, 9777, 401, 415, 6331, 520, - 8231, 9790, - 8231, 9862, - 8231, 9876, - 8231, 10380, - 8231, 10384, - 8231, 10432, - 8231, 10436, - 8231, 10472, - 8231, 10512, - 8231, 10998, - 8231, 11230, - 8231, 11380, - 8241, 9783, 7357, 5472, - 8249, 400, - 8249, 401, 415, 6331, 520, - 8249, 401, 415, 6331, 521, 5741, 961, 5990, - 8249, 401, 5741, 1931, 6331, 520, - 8249, 401, 5991, 1931, 6331, 520, - 8249, 401, 5991, 7257, 9772, - 8249, 401, 5991, 7455, 6331, 520, - 8249, 401, 5991, 7687, 5400, - 8249, 5741, 960, - 8249, 5741, 5095, 5401, 6102, - 8249, 5741, 12359, 5401, 6102, - 8249, 5991, 8248, - 8249, 5991, 9950, - 8249, 5991, 11083, 6046, - 8257, 6773, 5401, 8778, - 8257, 6773, 5401, 9280, - 8257, 6773, 5401, 9554, - 8257, 6773, 7341, 5401, 0, - 8257, 6773, 7341, 5401, 8, - 8257, 6773, 7341, 5401, 16, - 8257, 6773, 7341, 5401, 40, - 8257, 6773, 7341, 5401, 410, - 8257, 6773, 7919, 0, - 8257, 6773, 7919, 8, - 8257, 6773, 7919, 16, - 8257, 6773, 7919, 28, - 8257, 6773, 7919, 40, - 8257, 6773, 7919, 100, - 8257, 6773, 7919, 122, - 8257, 6773, 7919, 140, - 8257, 6773, 7919, 212, - 8257, 6773, 7919, 230, - 8257, 6773, 7919, 280, - 8257, 6773, 7919, 302, - 8257, 6773, 7919, 328, - 8257, 6773, 7919, 358, - 8257, 6773, 7919, 386, - 8257, 6773, 7919, 444, - 8257, 6773, 7919, 478, - 8257, 6773, 7919, 496, - 8257, 6773, 7919, 520, - 8257, 6773, 7919, 730, - 8257, 6773, 7919, 816, - 8257, 6773, 7919, 904, - 8257, 6773, 7919, 922, - 8257, 6773, 7919, 1164, - 8257, 6773, 7919, 1396, - 8257, 6773, 7919, 1498, - 8257, 6773, 7919, 2048, - 8257, 6773, 7919, 2266, - 8257, 6773, 7919, 2492, - 8257, 6773, 7919, 2560, - 8257, 6773, 7919, 3784, - 8257, 6773, 7919, 5632, - 8257, 6773, 8101, 7950, - 8257, 6773, 8101, 7952, - 8257, 6773, 8101, 7954, - 8257, 6773, 8101, 7956, - 8259, 1085, 1019, 401, 5544, - 8259, 1085, 1019, 401, 7970, - 8259, 1085, 1019, 401, 12188, - 8259, 1085, 1019, 401, 12189, 6122, - 8259, 1085, 3550, - 8259, 1085, 3761, 4585, 7688, - 8259, 1085, 3933, 10566, - 8259, 1085, 3955, 3924, - 8259, 1085, 4581, 3924, - 8259, 1085, 4940, - 8259, 1085, 5685, 10566, - 8259, 1085, 6467, 10566, - 8259, 1085, 7091, 256, - 8259, 1085, 7091, 2016, - 8259, 1085, 7158, - 8259, 1085, 7183, 401, 5544, - 8259, 1085, 7183, 401, 8784, - 8259, 1085, 7560, - 8259, 1085, 7626, - 8259, 1085, 7627, 3955, 2584, - 8259, 1085, 7633, 8577, 2004, - 8259, 1085, 7633, 8577, 2584, - 8259, 1085, 7633, 8577, 3956, - 8259, 1085, 7633, 8577, 7244, - 8259, 1085, 7688, - 8259, 1085, 8133, 10566, - 8259, 1085, 8720, - 8259, 1085, 8946, - 8259, 1085, 9343, 8136, - 8259, 1085, 9755, 11196, - 8259, 1085, 10043, 11160, - 8259, 1085, 10096, - 8259, 1085, 10979, 11160, - 8259, 1085, 11154, - 8259, 1085, 11155, 3955, 2584, - 8259, 1085, 11196, - 8259, 1085, 11667, 4322, - 8265, 1019, 401, 10504, - 8265, 2585, 10043, 3861, 5990, - 8265, 2585, 10043, 3861, 6102, - 8265, 6213, 8211, 4554, - 8265, 6213, 8211, 6996, - 8265, 6339, 5990, - 8265, 6339, 6102, - 8265, 6485, 5990, - 8265, 6485, 6102, - 8265, 6764, - 8265, 6983, 5990, - 8265, 6983, 6102, - 8265, 7024, - 8265, 7245, 3861, 5990, - 8265, 7245, 3861, 6102, - 8265, 7671, 7425, 8466, - 8265, 7671, 7425, 10978, - 8265, 7919, 8, - 8265, 7919, 222, - 8265, 7919, 434, - 8265, 7919, 1772, - 8265, 7919, 1946, - 8265, 7919, 2470, - 8265, 7919, 2716, - 8265, 7919, 3558, - 8265, 7919, 4138, - 8265, 7919, 4442, - 8265, 7919, 5126, - 8265, 7919, 5204, - 8265, 7919, 5344, - 8265, 7919, 5542, - 8265, 7919, 5543, 9616, - 8265, 7919, 5854, - 8265, 7919, 5855, 222, - 8265, 7919, 5872, - 8265, 7919, 6008, - 8265, 7919, 6375, 9092, - 8265, 7919, 6406, - 8265, 7919, 6407, 9616, - 8265, 7919, 7026, - 8265, 7919, 7614, - 8265, 7919, 7900, - 8265, 7919, 8641, 7615, 5204, - 8265, 7919, 9011, 6108, - 8265, 7919, 9011, 7778, - 8265, 7919, 9011, 8614, - 8265, 7919, 9092, - 8265, 7919, 9133, 184, - 8265, 7919, 9133, 6616, - 8265, 7919, 9133, 7410, - 8265, 7919, 9871, 434, - 8265, 7919, 11663, 6008, - 8265, 8113, 5990, - 8265, 8113, 6102, - 8265, 8113, 7670, - 8265, 8435, 5990, - 8265, 8435, 6102, - 8265, 8435, 7670, - 8265, 8492, - 8265, 8967, 4581, 5990, - 8265, 8967, 4581, 6102, - 8265, 9583, 960, - 8265, 9635, 8036, - 8265, 9635, 10470, - 8265, 9635, 10768, - 8265, 9872, - 8265, 10536, - 8265, 10597, 3965, 5478, - 8265, 10597, 6212, - 8265, 10597, 6213, 8211, 6996, - 8265, 10979, 6212, - 8265, 11226, - 8265, 11343, 7670, - 8265, 11665, 3965, 5478, - 8265, 11665, 6212, - 8265, 11665, 6213, 8211, 4554, - 8265, 11699, 4630, - 8276, - 8285, 71, 7915, 4630, - 8285, 5401, 8392, - 8285, 5401, 9236, - 8285, 5401, 9280, - 8285, 5401, 11212, - 8285, 6287, 2004, - 8285, 6287, 2358, - 8285, 6287, 2584, - 8285, 6287, 3942, - 8285, 6287, 3956, - 8285, 6287, 4854, - 8285, 6287, 5878, - 8285, 6287, 6312, - 8285, 6287, 7060, - 8285, 6287, 7244, - 8285, 7341, 5401, 8, - 8285, 7341, 5401, 16, - 8285, 7341, 5401, 28, - 8285, 7341, 5401, 40, - 8285, 7341, 5401, 58, - 8285, 7341, 5401, 70, - 8285, 7341, 5401, 88, - 8285, 7341, 5401, 150, - 8285, 7341, 5401, 248, - 8285, 7341, 5401, 410, - 8285, 7341, 5401, 550, - 8285, 7341, 5401, 9239, 34, - 8285, 7341, 5401, 9239, 480, - 8285, 7915, 4630, - 8285, 7919, 0, - 8285, 7919, 8, - 8285, 7919, 16, - 8285, 7919, 28, - 8285, 7919, 40, - 8285, 7919, 58, - 8285, 7919, 70, - 8285, 7919, 88, - 8285, 7919, 94, - 8285, 7919, 108, - 8285, 7919, 128, - 8285, 7919, 150, - 8285, 7919, 200, - 8285, 7919, 220, - 8285, 7919, 248, - 8285, 7919, 274, - 8285, 7919, 286, - 8285, 7919, 312, - 8285, 7919, 342, - 8285, 7919, 370, - 8285, 7919, 410, - 8285, 7919, 430, - 8285, 7919, 472, - 8285, 7919, 486, - 8285, 7919, 510, - 8285, 7919, 550, - 8285, 7919, 554, - 8285, 7919, 596, - 8285, 7919, 728, - 8285, 7919, 810, - 8285, 7919, 898, - 8285, 7919, 920, - 8285, 7919, 1158, - 8285, 7919, 1394, - 8285, 7919, 1492, - 8285, 7919, 1664, - 8285, 7919, 1874, - 8285, 7919, 1916, - 8285, 7919, 1962, - 8285, 7919, 2042, - 8285, 7919, 2262, - 8285, 7919, 2334, - 8285, 7919, 2384, - 8285, 7919, 2486, - 8285, 7919, 2552, - 8285, 7919, 3782, - 8285, 7919, 5626, - 8285, 7919, 9239, 22, - 8285, 7919, 9239, 34, - 8285, 7919, 9239, 322, - 8285, 7919, 9239, 480, - 8293, 7200, - 8293, 7919, 520, - 8293, 7919, 622, - 8293, 7919, 684, - 8293, 7919, 1232, - 8293, 7919, 1826, - 8293, 7919, 2206, - 8293, 7919, 2798, - 8293, 7919, 2910, - 8293, 7919, 3028, - 8293, 7919, 4140, - 8293, 7919, 4452, - 8293, 7919, 5546, - 8293, 7919, 5620, - 8293, 7919, 6014, - 8293, 7919, 6354, - 8293, 7919, 6400, - 8293, 7919, 6592, - 8293, 7919, 6640, - 8293, 7919, 6710, - 8293, 7919, 6826, - 8293, 7919, 6956, - 8293, 7919, 7050, - 8293, 7919, 7320, - 8293, 7919, 7342, - 8293, 7919, 7608, - 8293, 7919, 7634, - 8293, 7919, 7776, - 8293, 7919, 8148, - 8293, 7919, 8190, - 8293, 7919, 8290, - 8293, 7919, 9396, - 8293, 7919, 9678, - 8293, 7919, 9804, - 8293, 7919, 9982, - 8293, 7919, 10056, - 8293, 7919, 10118, - 8293, 7919, 10372, - 8293, 7919, 10452, - 8293, 7919, 10574, - 8293, 8438, - 8293, 8708, - 8293, 8798, - 8293, 8968, - 8293, 9216, - 8293, 10060, - 8293, 10316, - 8293, 10338, - 8293, 10492, - 8293, 10494, - 8327, 5094, - 8327, 6213, 9772, - 8327, 6946, - 8327, 7256, - 8327, 8015, 10450, - 8327, 8015, 11778, - 8327, 9135, 7529, 9858, - 8327, 9660, - 8327, 10043, 697, 5741, 10979, 8244, - 8327, 10043, 697, 6997, 10714, - 8327, 10043, 697, 7529, 9858, - 8327, 10043, 697, 10148, - 8327, 10979, 697, 5741, 7673, 10043, 8244, - 8327, 10979, 697, 5741, 8327, 10043, 8244, - 8341, 5400, - 8345, 1931, 5400, - 8345, 6020, - 8345, 6465, 7143, 7919, 4338, - 8345, 7143, 10, - 8345, 8527, 10, - 8345, 10074, - 8345, 11085, 8527, 12, - 8345, 11085, 8527, 22, - 8345, 11085, 8527, 48, - 8351, 9029, 6117, 5472, - 8376, - 8389, 415, 6225, 9038, - 8399, 9660, - 8403, 9605, 2005, 4118, - 8403, 9605, 2005, 6368, - 8403, 9605, 2005, 7126, - 8403, 9605, 2005, 7236, - 8403, 9605, 2005, 7678, - 8403, 9605, 2005, 9042, - 8403, 9605, 2585, 7720, - 8403, 9605, 2585, 8300, - 8403, 9605, 3943, 8208, - 8403, 9605, 3943, 8712, - 8403, 9605, 3957, 7720, - 8403, 9605, 7061, 8712, - 8403, 9605, 7245, 7720, - 8403, 9605, 7245, 8712, - 8403, 9605, 7245, 9850, - 8413, 9038, - 8445, 400, - 8451, 5400, - 8460, - 8481, 5400, - 8502, - 8505, 89, 7915, 4630, - 8505, 5401, 6840, - 8505, 5401, 8392, - 8505, 5401, 9236, - 8505, 5401, 9280, - 8505, 5401, 9314, - 8505, 5401, 11212, - 8505, 6287, 2004, - 8505, 6287, 2358, - 8505, 6287, 2584, - 8505, 6287, 3942, - 8505, 6287, 3956, - 8505, 6287, 4854, - 8505, 6287, 5878, - 8505, 6287, 6312, - 8505, 6287, 7060, - 8505, 6287, 7244, - 8505, 7021, 4630, - 8505, 7021, 5400, - 8505, 7341, 5401, 8, - 8505, 7341, 5401, 16, - 8505, 7341, 5401, 28, - 8505, 7341, 5401, 40, - 8505, 7341, 5401, 58, - 8505, 7341, 5401, 70, - 8505, 7341, 5401, 88, - 8505, 7341, 5401, 248, - 8505, 7341, 5401, 550, - 8505, 7341, 5401, 9239, 22, - 8505, 7341, 5401, 9239, 34, - 8505, 7341, 5401, 9239, 322, - 8505, 7341, 5401, 9239, 480, - 8505, 7840, - 8505, 7919, 0, - 8505, 7919, 8, - 8505, 7919, 16, - 8505, 7919, 28, - 8505, 7919, 40, - 8505, 7919, 58, - 8505, 7919, 70, - 8505, 7919, 88, - 8505, 7919, 94, - 8505, 7919, 108, - 8505, 7919, 128, - 8505, 7919, 200, - 8505, 7919, 220, - 8505, 7919, 248, - 8505, 7919, 274, - 8505, 7919, 286, - 8505, 7919, 312, - 8505, 7919, 342, - 8505, 7919, 370, - 8505, 7919, 430, - 8505, 7919, 472, - 8505, 7919, 473, 5741, 6691, 9408, - 8505, 7919, 473, 5741, 7981, 9408, - 8505, 7919, 486, - 8505, 7919, 510, - 8505, 7919, 550, - 8505, 7919, 596, - 8505, 7919, 728, - 8505, 7919, 810, - 8505, 7919, 898, - 8505, 7919, 920, - 8505, 7919, 1158, - 8505, 7919, 1394, - 8505, 7919, 1492, - 8505, 7919, 1874, - 8505, 7919, 1916, - 8505, 7919, 1962, - 8505, 7919, 2042, - 8505, 7919, 2234, - 8505, 7919, 2262, - 8505, 7919, 2334, - 8505, 7919, 2384, - 8505, 7919, 2486, - 8505, 7919, 2552, - 8505, 7919, 2900, - 8505, 7919, 3782, - 8505, 7919, 5626, - 8505, 7919, 7873, 510, - 8505, 7919, 9239, 22, - 8505, 7919, 9239, 34, - 8505, 7919, 9239, 322, - 8505, 7919, 9239, 480, - 8505, 9381, 10491, 2004, - 8505, 9381, 10491, 2005, 4559, 5553, 2489, 11244, - 8505, 9381, 10491, 2584, - 8505, 9381, 10491, 3956, - 8505, 9381, 10491, 7244, - 8505, 9381, 11245, 9116, - 8507, 5200, - 8507, 5201, 5741, 7582, - 8508, - 8517, 9005, 6120, - 8517, 9005, 7654, - 8517, 9005, 7656, - 8517, 9005, 7658, - 8517, 9005, 7660, - 8517, 9005, 7662, - 8517, 9005, 7664, - 8517, 9005, 7666, - 8517, 9005, 7668, - 8517, 9005, 8642, - 8517, 9005, 8644, - 8517, 9005, 8646, - 8517, 9005, 8648, - 8517, 9005, 8650, - 8517, 9005, 8652, - 8517, 9005, 8654, - 8517, 9005, 8656, - 8517, 9005, 8658, - 8517, 9005, 8660, - 8517, 9005, 8662, - 8517, 9005, 8664, - 8517, 9005, 8666, - 8517, 9005, 8668, - 8517, 9005, 8670, - 8517, 9005, 8672, - 8517, 9005, 8674, - 8517, 9005, 8676, - 8517, 9005, 8678, - 8517, 9005, 8680, - 8517, 9005, 8682, - 8517, 9005, 8684, - 8517, 9005, 8686, - 8517, 9005, 8688, - 8517, 9005, 8690, - 8517, 9005, 8692, - 8517, 9005, 8694, - 8517, 9005, 8696, - 8517, 9005, 9428, - 8517, 9005, 9430, - 8517, 9005, 9432, - 8517, 9005, 9434, - 8517, 9005, 9436, - 8517, 9005, 9438, - 8517, 9005, 9440, - 8517, 9005, 9442, - 8517, 9005, 9444, - 8517, 9005, 9446, - 8517, 9005, 9448, - 8517, 9005, 9450, - 8517, 9005, 9452, - 8517, 9005, 9454, - 8517, 9005, 9456, - 8517, 9005, 9458, - 8517, 9005, 9460, - 8517, 9005, 9462, - 8517, 9005, 9464, - 8517, 9005, 9466, - 8517, 9005, 9468, - 8517, 9005, 9470, - 8517, 9005, 9472, - 8517, 9005, 9474, - 8517, 9005, 9476, - 8517, 9005, 9478, - 8517, 9005, 9480, - 8517, 9005, 9482, - 8517, 9005, 9484, - 8517, 9005, 9486, - 8517, 9005, 9488, - 8517, 9005, 9490, - 8517, 9005, 9492, - 8517, 9005, 9494, - 8517, 9005, 9496, - 8517, 9005, 9498, - 8517, 9005, 9500, - 8517, 9005, 9502, - 8517, 9005, 9504, - 8517, 9005, 9506, - 8517, 9005, 9508, - 8517, 9005, 9510, - 8517, 9005, 9512, - 8517, 9005, 9514, - 8517, 9005, 9516, - 8517, 9005, 9518, - 8517, 9005, 9520, - 8517, 9005, 9522, - 8517, 9005, 9524, - 8517, 9005, 9526, - 8517, 9005, 9528, - 8517, 9005, 9530, - 8517, 9005, 9532, - 8517, 9005, 9534, - 8517, 9005, 9536, - 8517, 9005, 9538, - 8517, 9005, 10172, - 8517, 9005, 10174, - 8517, 9005, 10176, - 8517, 9005, 10178, - 8517, 9005, 10180, - 8517, 9005, 10182, - 8517, 9005, 10184, - 8517, 9005, 10186, - 8517, 9005, 10188, - 8517, 9005, 10190, - 8517, 9005, 10192, - 8517, 9005, 10194, - 8517, 9005, 10196, - 8517, 9005, 10198, - 8517, 9005, 10200, - 8517, 9005, 10202, - 8517, 9005, 10204, - 8517, 9005, 10206, - 8517, 9005, 10208, - 8517, 9005, 10210, - 8517, 9005, 10212, - 8517, 9005, 10214, - 8517, 9005, 10216, - 8517, 9005, 10218, - 8517, 9005, 10220, - 8517, 9005, 10222, - 8517, 9005, 10224, - 8517, 9005, 10226, - 8517, 9005, 10228, - 8517, 9005, 10230, - 8517, 9005, 10232, - 8517, 9005, 10234, - 8517, 9005, 10236, - 8517, 9005, 10238, - 8517, 9005, 10240, - 8517, 9005, 10242, - 8517, 9005, 10244, - 8517, 9005, 10246, - 8517, 9005, 10248, - 8517, 9005, 10250, - 8517, 9005, 10252, - 8517, 9005, 10254, - 8517, 9005, 10256, - 8517, 9005, 10258, - 8517, 9005, 10260, - 8517, 9005, 10262, - 8517, 9005, 10264, - 8517, 9005, 10266, - 8517, 9005, 10268, - 8517, 9005, 10270, - 8517, 9005, 10272, - 8517, 9005, 10274, - 8517, 9005, 10276, - 8517, 9005, 10278, - 8517, 9005, 10280, - 8517, 9005, 10282, - 8517, 9005, 10284, - 8517, 9005, 10286, - 8517, 9005, 10288, - 8517, 9005, 10290, - 8517, 9005, 10292, - 8517, 9005, 10294, - 8517, 9005, 10296, - 8517, 9005, 10298, - 8517, 9005, 10300, - 8517, 9005, 10302, - 8517, 9005, 10304, - 8517, 9005, 10306, - 8517, 9005, 10308, - 8517, 9005, 10310, - 8517, 9005, 10822, - 8517, 9005, 10824, - 8517, 9005, 10826, - 8517, 9005, 10828, - 8517, 9005, 10830, - 8517, 9005, 10832, - 8517, 9005, 10834, - 8517, 9005, 10836, - 8517, 9005, 10838, - 8517, 9005, 10840, - 8517, 9005, 10842, - 8517, 9005, 10844, - 8517, 9005, 10846, - 8517, 9005, 10848, - 8517, 9005, 10850, - 8517, 9005, 10852, - 8517, 9005, 10854, - 8517, 9005, 10856, - 8517, 9005, 10858, - 8517, 9005, 10860, - 8517, 9005, 10862, - 8517, 9005, 10864, - 8517, 9005, 10866, - 8517, 9005, 10868, - 8517, 9005, 10870, - 8517, 9005, 10872, - 8517, 9005, 10874, - 8517, 9005, 10876, - 8517, 9005, 10878, - 8517, 9005, 10880, - 8517, 9005, 10882, - 8517, 9005, 10884, - 8517, 9005, 10886, - 8517, 9005, 10888, - 8517, 9005, 10890, - 8517, 9005, 10892, - 8517, 9005, 10894, - 8517, 9005, 10896, - 8517, 9005, 10898, - 8517, 9005, 10900, - 8517, 9005, 10902, - 8517, 9005, 10904, - 8517, 9005, 10906, - 8517, 9005, 10908, - 8517, 9005, 10910, - 8517, 9005, 10912, - 8517, 9005, 10914, - 8517, 9005, 10916, - 8517, 9005, 10918, - 8517, 9005, 10920, - 8517, 9005, 10922, - 8517, 9005, 10924, - 8517, 9005, 10926, - 8517, 9005, 10928, - 8517, 9005, 10930, - 8517, 9005, 10932, - 8517, 9005, 11262, - 8517, 9005, 11264, - 8517, 9005, 11266, - 8517, 9005, 11268, - 8517, 9005, 11270, - 8517, 9005, 11272, - 8517, 9005, 11274, - 8517, 9005, 11276, - 8517, 9005, 11278, - 8517, 9005, 11280, - 8517, 9005, 11282, - 8517, 9005, 11284, - 8517, 9005, 11286, - 8517, 9005, 11288, - 8517, 9005, 11290, - 8517, 9005, 11292, - 8517, 9005, 11294, - 8517, 9005, 11296, - 8517, 9005, 11298, - 8517, 9005, 11300, - 8517, 9005, 11302, - 8517, 9005, 11304, - 8517, 9005, 11306, - 8517, 9005, 11308, - 8517, 9005, 11310, - 8517, 9005, 11312, - 8517, 9005, 11314, - 8517, 9005, 11316, - 8517, 9005, 11750, - 8517, 9005, 11752, - 8517, 9005, 11754, - 8517, 9005, 11756, - 8517, 9005, 11758, - 8517, 9005, 11760, - 8517, 9005, 11762, - 8517, 9005, 11764, - 8517, 9005, 12226, - 8531, 5400, +#define UNICODE_CHARNAME_WORD_HANGUL 4143 +#define UNICODE_CHARNAME_WORD_SYLLABLE 5292 +#define UNICODE_CHARNAME_WORD_CJK 454 +#define UNICODE_CHARNAME_WORD_COMPATIBILITY 6457 +static const uint16_t unicode_names[75152] = { + 23, 3, 761, 8774, + 37, 275, 10642, + 47, 275, 1, 11203, 826, + 51, 10365, 753, 11680, + 51, 10365, 4849, 6989, 9050, + 51, 10365, 4849, 9045, 9050, + 51, 10365, 5782, + 51, 10365, 6031, 6610, + 51, 10365, 7421, 13188, + 51, 10365, 7443, 6989, 9050, + 51, 10365, 7443, 9045, 9050, + 51, 10365, 8131, 13188, + 51, 10365, 8675, 8590, + 51, 10365, 8675, 11734, + 51, 10365, 8675, 11908, + 51, 10365, 11751, 11908, + 63, 9128, + 175, 3992, + 175, 5496, + 175, 7608, + 177, 3992, + 177, 5496, + 177, 7608, + 435, 6573, 385, 9798, + 435, 6573, 3232, + 435, 6573, 6689, 2170, + 435, 6573, 6689, 2540, + 435, 6573, 6689, 2778, + 435, 6573, 6689, 4200, + 435, 6573, 6689, 4214, + 435, 6573, 6689, 5190, + 435, 6573, 6689, 6260, + 435, 6573, 6689, 6722, + 435, 6573, 6689, 7508, + 435, 6573, 6689, 7694, + 435, 6573, 7430, + 435, 6573, 8405, 68, + 435, 6573, 8405, 76, + 435, 6573, 8405, 90, + 435, 6573, 8405, 176, + 435, 6573, 8405, 180, + 435, 6573, 8405, 264, + 435, 6573, 8405, 280, + 435, 6573, 8405, 282, + 435, 6573, 8405, 332, + 435, 6573, 8405, 336, + 435, 6573, 8405, 340, + 435, 6573, 8405, 350, + 435, 6573, 8405, 354, + 435, 6573, 8405, 424, + 435, 6573, 8405, 430, + 435, 6573, 8405, 452, + 435, 6573, 8405, 586, + 435, 6573, 8405, 588, + 435, 6573, 8405, 608, + 435, 6573, 8405, 692, + 435, 6573, 8405, 694, + 435, 6573, 8405, 696, + 435, 6573, 8405, 698, + 435, 6573, 8405, 722, + 435, 6573, 8405, 1096, + 435, 6573, 8405, 1120, + 435, 6573, 8405, 1492, + 435, 6573, 8405, 1732, + 435, 6573, 8405, 2182, + 435, 6573, 8405, 2814, + 435, 6573, 9299, 10654, + 435, 6573, 10426, + 435, 6573, 11691, 10654, + 435, 6573, 12133, 8153, 8488, + 435, 6573, 12133, 8488, + 445, 6121, 1045, 8318, + 601, 3713, 4849, 4117, 3713, 4849, 9326, + 601, 3713, 4849, 4117, 3713, 7443, 9326, + 601, 3713, 7443, 4117, 3713, 4849, 9326, + 601, 3713, 7443, 4117, 3713, 7443, 9326, + 601, 4117, 6434, + 601, 4117, 6435, 6121, 3716, + 601, 4117, 6505, 6434, + 601, 4117, 7821, 6434, + 601, 4117, 8153, 6434, + 601, 4197, 5878, + 601, 5876, + 601, 5877, 6121, 8057, 6376, + 601, 6435, 9785, 8056, + 601, 7443, 10001, 10154, + 601, 10716, + 601, 10717, 9043, 2779, 11649, 3714, + 657, 9617, 134, + 657, 9617, 152, + 657, 9617, 216, + 657, 9617, 298, + 657, 9617, 310, + 657, 9617, 340, + 657, 9617, 374, + 657, 9617, 442, + 657, 9617, 576, + 657, 9617, 632, + 657, 9617, 660, + 657, 9617, 670, + 657, 9617, 832, + 657, 9617, 886, + 657, 9617, 902, + 657, 9617, 946, + 657, 9617, 950, + 657, 9617, 1242, + 657, 9617, 1294, + 657, 9617, 1406, + 657, 9617, 1538, + 657, 9617, 1636, + 657, 9617, 1782, + 657, 9617, 1844, + 657, 9617, 1940, + 657, 9617, 2262, + 657, 9617, 2278, + 657, 9617, 2324, + 657, 9617, 2526, + 657, 9617, 2570, + 657, 9617, 2656, + 657, 9617, 2860, + 657, 9617, 2890, + 657, 9617, 3074, + 657, 9617, 3182, + 657, 9617, 3194, + 657, 9617, 3196, + 657, 9617, 3748, + 657, 9617, 3962, + 657, 9617, 4040, + 657, 9617, 4292, + 657, 9617, 4298, + 657, 9617, 4572, + 657, 9617, 4576, + 657, 9617, 4582, + 657, 9617, 4646, + 657, 9617, 4666, + 657, 9617, 5064, + 657, 9617, 5304, + 657, 9617, 5318, + 657, 9617, 5356, + 657, 9617, 5674, + 657, 9617, 5712, + 657, 9617, 5726, + 657, 9617, 7896, + 657, 10585, 0, + 657, 10585, 8, + 657, 10585, 16, + 657, 10585, 28, + 657, 10585, 84, + 657, 10585, 90, + 657, 10585, 96, + 657, 10585, 100, + 657, 10585, 102, + 657, 10585, 106, + 657, 10585, 108, + 657, 10585, 112, + 657, 10585, 114, + 657, 10585, 116, + 657, 10585, 122, + 657, 10585, 126, + 657, 10585, 130, + 657, 10585, 132, + 657, 10585, 134, + 657, 10585, 138, + 657, 10585, 142, + 657, 10585, 144, + 657, 10585, 150, + 657, 10585, 152, + 657, 10585, 194, + 657, 10585, 196, + 657, 10585, 202, + 657, 10585, 208, + 657, 10585, 210, + 657, 10585, 212, + 657, 10585, 216, + 657, 10585, 220, + 657, 10585, 224, + 657, 10585, 228, + 657, 10585, 230, + 657, 10585, 236, + 657, 10585, 238, + 657, 10585, 246, + 657, 10585, 258, + 657, 10585, 278, + 657, 10585, 284, + 657, 10585, 288, + 657, 10585, 296, + 657, 10585, 298, + 657, 10585, 300, + 657, 10585, 302, + 657, 10585, 306, + 657, 10585, 310, + 657, 10585, 314, + 657, 10585, 322, + 657, 10585, 326, + 657, 10585, 332, + 657, 10585, 336, + 657, 10585, 340, + 657, 10585, 350, + 657, 10585, 354, + 657, 10585, 360, + 657, 10585, 364, + 657, 10585, 368, + 657, 10585, 374, + 657, 10585, 380, + 657, 10585, 384, + 657, 10585, 390, + 657, 10585, 392, + 657, 10585, 396, + 657, 10585, 404, + 657, 10585, 412, + 657, 10585, 416, + 657, 10585, 442, + 657, 10585, 448, + 657, 10585, 456, + 657, 10585, 462, + 657, 10585, 476, + 657, 10585, 480, + 657, 10585, 486, + 657, 10585, 492, + 657, 10585, 500, + 657, 10585, 502, + 657, 10585, 506, + 657, 10585, 508, + 657, 10585, 510, + 657, 10585, 512, + 657, 10585, 516, + 657, 10585, 520, + 657, 10585, 522, + 657, 10585, 524, + 657, 10585, 526, + 657, 10585, 532, + 657, 10585, 536, + 657, 10585, 546, + 657, 10585, 552, + 657, 10585, 556, + 657, 10585, 560, + 657, 10585, 564, + 657, 10585, 568, + 657, 10585, 576, + 657, 10585, 598, + 657, 10585, 610, + 657, 10585, 614, + 657, 10585, 616, + 657, 10585, 618, + 657, 10585, 620, + 657, 10585, 622, + 657, 10585, 626, + 657, 10585, 632, + 657, 10585, 634, + 657, 10585, 644, + 657, 10585, 646, + 657, 10585, 650, + 657, 10585, 656, + 657, 10585, 660, + 657, 10585, 664, + 657, 10585, 668, + 657, 10585, 670, + 657, 10585, 672, + 657, 10585, 676, + 657, 10585, 678, + 657, 10585, 680, + 657, 10585, 682, + 657, 10585, 758, + 657, 10585, 762, + 657, 10585, 764, + 657, 10585, 766, + 657, 10585, 768, + 657, 10585, 770, + 657, 10585, 772, + 657, 10585, 774, + 657, 10585, 776, + 657, 10585, 786, + 657, 10585, 790, + 657, 10585, 804, + 657, 10585, 808, + 657, 10585, 810, + 657, 10585, 812, + 657, 10585, 820, + 657, 10585, 822, + 657, 10585, 826, + 657, 10585, 828, + 657, 10585, 830, + 657, 10585, 832, + 657, 10585, 834, + 657, 10585, 836, + 657, 10585, 846, + 657, 10585, 848, + 657, 10585, 850, + 657, 10585, 852, + 657, 10585, 860, + 657, 10585, 862, + 657, 10585, 864, + 657, 10585, 880, + 657, 10585, 882, + 657, 10585, 884, + 657, 10585, 886, + 657, 10585, 890, + 657, 10585, 892, + 657, 10585, 894, + 657, 10585, 896, + 657, 10585, 902, + 657, 10585, 904, + 657, 10585, 906, + 657, 10585, 916, + 657, 10585, 918, + 657, 10585, 922, + 657, 10585, 926, + 657, 10585, 928, + 657, 10585, 930, + 657, 10585, 932, + 657, 10585, 934, + 657, 10585, 946, + 657, 10585, 948, + 657, 10585, 950, + 657, 10585, 952, + 657, 10585, 964, + 657, 10585, 968, + 657, 10585, 970, + 657, 10585, 974, + 657, 10585, 976, + 657, 10585, 978, + 657, 10585, 980, + 657, 10585, 982, + 657, 10585, 992, + 657, 10585, 994, + 657, 10585, 1008, + 657, 10585, 1014, + 657, 10585, 1016, + 657, 10585, 1018, + 657, 10585, 1042, + 657, 10585, 1044, + 657, 10585, 1046, + 657, 10585, 1062, + 657, 10585, 1064, + 657, 10585, 1066, + 657, 10585, 1068, + 657, 10585, 1070, + 657, 10585, 1144, + 657, 10585, 1146, + 657, 10585, 1148, + 657, 10585, 1162, + 657, 10585, 1164, + 657, 10585, 1166, + 657, 10585, 1174, + 657, 10585, 1178, + 657, 10585, 1180, + 657, 10585, 1182, + 657, 10585, 1184, + 657, 10585, 1186, + 657, 10585, 1196, + 657, 10585, 1198, + 657, 10585, 1200, + 657, 10585, 1218, + 657, 10585, 1222, + 657, 10585, 1224, + 657, 10585, 1242, + 657, 10585, 1246, + 657, 10585, 1248, + 657, 10585, 1250, + 657, 10585, 1252, + 657, 10585, 1254, + 657, 10585, 1256, + 657, 10585, 1258, + 657, 10585, 1274, + 657, 10585, 1278, + 657, 10585, 1280, + 657, 10585, 1282, + 657, 10585, 1292, + 657, 10585, 1294, + 657, 10585, 1296, + 657, 10585, 1312, + 657, 10585, 1314, + 657, 10585, 1316, + 657, 10585, 1318, + 657, 10585, 1320, + 657, 10585, 1348, + 657, 10585, 1352, + 657, 10585, 1354, + 657, 10585, 1364, + 657, 10585, 1368, + 657, 10585, 1380, + 657, 10585, 1388, + 657, 10585, 1390, + 657, 10585, 1392, + 657, 10585, 1394, + 657, 10585, 1396, + 657, 10585, 1398, + 657, 10585, 1400, + 657, 10585, 1402, + 657, 10585, 1404, + 657, 10585, 1406, + 657, 10585, 1408, + 657, 10585, 1410, + 657, 10585, 1412, + 657, 10585, 1414, + 657, 10585, 1416, + 657, 10585, 1426, + 657, 10585, 1428, + 657, 10585, 1430, + 657, 10585, 1438, + 657, 10585, 1450, + 657, 10585, 1452, + 657, 10585, 1454, + 657, 10585, 1456, + 657, 10585, 1476, + 657, 10585, 1478, + 657, 10585, 1480, + 657, 10585, 1518, + 657, 10585, 1522, + 657, 10585, 1524, + 657, 10585, 1526, + 657, 10585, 1532, + 657, 10585, 1534, + 657, 10585, 1536, + 657, 10585, 1538, + 657, 10585, 1544, + 657, 10585, 1546, + 657, 10585, 1548, + 657, 10585, 1552, + 657, 10585, 1554, + 657, 10585, 1556, + 657, 10585, 1558, + 657, 10585, 1560, + 657, 10585, 1564, + 657, 10585, 1566, + 657, 10585, 1568, + 657, 10585, 1570, + 657, 10585, 1590, + 657, 10585, 1592, + 657, 10585, 1594, + 657, 10585, 1604, + 657, 10585, 1606, + 657, 10585, 1608, + 657, 10585, 1626, + 657, 10585, 1634, + 657, 10585, 1636, + 657, 10585, 1638, + 657, 10585, 1662, + 657, 10585, 1664, + 657, 10585, 1666, + 657, 10585, 1692, + 657, 10585, 1694, + 657, 10585, 1696, + 657, 10585, 1698, + 657, 10585, 1700, + 657, 10585, 1742, + 657, 10585, 1746, + 657, 10585, 1750, + 657, 10585, 1766, + 657, 10585, 1768, + 657, 10585, 1782, + 657, 10585, 1788, + 657, 10585, 1790, + 657, 10585, 1792, + 657, 10585, 1804, + 657, 10585, 1806, + 657, 10585, 1810, + 657, 10585, 1824, + 657, 10585, 1826, + 657, 10585, 1828, + 657, 10585, 1830, + 657, 10585, 1832, + 657, 10585, 1842, + 657, 10585, 1844, + 657, 10585, 1846, + 657, 10585, 1848, + 657, 10585, 1862, + 657, 10585, 1866, + 657, 10585, 1868, + 657, 10585, 1898, + 657, 10585, 1900, + 657, 10585, 1902, + 657, 10585, 1904, + 657, 10585, 1906, + 657, 10585, 1912, + 657, 10585, 1924, + 657, 10585, 1926, + 657, 10585, 1928, + 657, 10585, 1940, + 657, 10585, 1942, + 657, 10585, 1944, + 657, 10585, 1954, + 657, 10585, 1956, + 657, 10585, 1958, + 657, 10585, 1960, + 657, 10585, 1962, + 657, 10585, 1974, + 657, 10585, 1976, + 657, 10585, 1978, + 657, 10585, 1990, + 657, 10585, 1994, + 657, 10585, 1996, + 657, 10585, 1998, + 657, 10585, 2000, + 657, 10585, 2002, + 657, 10585, 2004, + 657, 10585, 2006, + 657, 10585, 2008, + 657, 10585, 2010, + 657, 10585, 2012, + 657, 10585, 2014, + 657, 10585, 2022, + 657, 10585, 2028, + 657, 10585, 2030, + 657, 10585, 2032, + 657, 10585, 2038, + 657, 10585, 2050, + 657, 10585, 2056, + 657, 10585, 2058, + 657, 10585, 2060, + 657, 10585, 2066, + 657, 10585, 2068, + 657, 10585, 2070, + 657, 10585, 2072, + 657, 10585, 2086, + 657, 10585, 2090, + 657, 10585, 2094, + 657, 10585, 2096, + 657, 10585, 2098, + 657, 10585, 2100, + 657, 10585, 2102, + 657, 10585, 2104, + 657, 10585, 2112, + 657, 10585, 2114, + 657, 10585, 2116, + 657, 10585, 2118, + 657, 10585, 2120, + 657, 10585, 2132, + 657, 10585, 2134, + 657, 10585, 2136, + 657, 10585, 2138, + 657, 10585, 2140, + 657, 10585, 2142, + 657, 10585, 2144, + 657, 10585, 2146, + 657, 10585, 2194, + 657, 10585, 2198, + 657, 10585, 2202, + 657, 10585, 2222, + 657, 10585, 2228, + 657, 10585, 2230, + 657, 10585, 2232, + 657, 10585, 2240, + 657, 10585, 2242, + 657, 10585, 2244, + 657, 10585, 2256, + 657, 10585, 2258, + 657, 10585, 2260, + 657, 10585, 2262, + 657, 10585, 2264, + 657, 10585, 2274, + 657, 10585, 2276, + 657, 10585, 2278, + 657, 10585, 2280, + 657, 10585, 2306, + 657, 10585, 2310, + 657, 10585, 2312, + 657, 10585, 2314, + 657, 10585, 2322, + 657, 10585, 2324, + 657, 10585, 2326, + 657, 10585, 2336, + 657, 10585, 2338, + 657, 10585, 2340, + 657, 10585, 2342, + 657, 10585, 2348, + 657, 10585, 2364, + 657, 10585, 2366, + 657, 10585, 2368, + 657, 10585, 2372, + 657, 10585, 2390, + 657, 10585, 2392, + 657, 10585, 2394, + 657, 10585, 2406, + 657, 10585, 2408, + 657, 10585, 2432, + 657, 10585, 2434, + 657, 10585, 2436, + 657, 10585, 2438, + 657, 10585, 2440, + 657, 10585, 2442, + 657, 10585, 2444, + 657, 10585, 2446, + 657, 10585, 2456, + 657, 10585, 2458, + 657, 10585, 2460, + 657, 10585, 2462, + 657, 10585, 2464, + 657, 10585, 2470, + 657, 10585, 2472, + 657, 10585, 2474, + 657, 10585, 2476, + 657, 10585, 2492, + 657, 10585, 2496, + 657, 10585, 2500, + 657, 10585, 2508, + 657, 10585, 2512, + 657, 10585, 2516, + 657, 10585, 2518, + 657, 10585, 2522, + 657, 10585, 2524, + 657, 10585, 2526, + 657, 10585, 2528, + 657, 10585, 2536, + 657, 10585, 2538, + 657, 10585, 2540, + 657, 10585, 2556, + 657, 10585, 2558, + 657, 10585, 2564, + 657, 10585, 2566, + 657, 10585, 2568, + 657, 10585, 2570, + 657, 10585, 2572, + 657, 10585, 2574, + 657, 10585, 2576, + 657, 10585, 2588, + 657, 10585, 2590, + 657, 10585, 2592, + 657, 10585, 2594, + 657, 10585, 2596, + 657, 10585, 2612, + 657, 10585, 2614, + 657, 10585, 2616, + 657, 10585, 2618, + 657, 10585, 2652, + 657, 10585, 2656, + 657, 10585, 2664, + 657, 10585, 2672, + 657, 10585, 2676, + 657, 10585, 2690, + 657, 10585, 2696, + 657, 10585, 2700, + 657, 10585, 2702, + 657, 10585, 2724, + 657, 10585, 2726, + 657, 10585, 2728, + 657, 10585, 2762, + 657, 10585, 2764, + 657, 10585, 2766, + 657, 10585, 2768, + 657, 10585, 2770, + 657, 10585, 2818, + 657, 10585, 2820, + 657, 10585, 2848, + 657, 10585, 2850, + 657, 10585, 2854, + 657, 10585, 2860, + 657, 10585, 2864, + 657, 10585, 2866, + 657, 10585, 2870, + 657, 10585, 2872, + 657, 10585, 2874, + 657, 10585, 2878, + 657, 10585, 2880, + 657, 10585, 2886, + 657, 10585, 2888, + 657, 10585, 2890, + 657, 10585, 2892, + 657, 10585, 2894, + 657, 10585, 2898, + 657, 10585, 2900, + 657, 10585, 2902, + 657, 10585, 2904, + 657, 10585, 2912, + 657, 10585, 2914, + 657, 10585, 2920, + 657, 10585, 2928, + 657, 10585, 2930, + 657, 10585, 2944, + 657, 10585, 2946, + 657, 10585, 2950, + 657, 10585, 2960, + 657, 10585, 2962, + 657, 10585, 2964, + 657, 10585, 2966, + 657, 10585, 2970, + 657, 10585, 2974, + 657, 10585, 2976, + 657, 10585, 2978, + 657, 10585, 2996, + 657, 10585, 2998, + 657, 10585, 3000, + 657, 10585, 3004, + 657, 10585, 3064, + 657, 10585, 3072, + 657, 10585, 3074, + 657, 10585, 3076, + 657, 10585, 3084, + 657, 10585, 3086, + 657, 10585, 3088, + 657, 10585, 3090, + 657, 10585, 3092, + 657, 10585, 3094, + 657, 10585, 3098, + 657, 10585, 3100, + 657, 10585, 3112, + 657, 10585, 3114, + 657, 10585, 3116, + 657, 10585, 3118, + 657, 10585, 3130, + 657, 10585, 3132, + 657, 10585, 3134, + 657, 10585, 3142, + 657, 10585, 3144, + 657, 10585, 3146, + 657, 10585, 3148, + 657, 10585, 3152, + 657, 10585, 3154, + 657, 10585, 3156, + 657, 10585, 3162, + 657, 10585, 3166, + 657, 10585, 3168, + 657, 10585, 3170, + 657, 10585, 3180, + 657, 10585, 3182, + 657, 10585, 3184, + 657, 10585, 3192, + 657, 10585, 3194, + 657, 10585, 3196, + 657, 10585, 3198, + 657, 10585, 3200, + 657, 10585, 3204, + 657, 10585, 3206, + 657, 10585, 3208, + 657, 10585, 3210, + 657, 10585, 3212, + 657, 10585, 3214, + 657, 10585, 3216, + 657, 10585, 3218, + 657, 10585, 3220, + 657, 10585, 3222, + 657, 10585, 3718, + 657, 10585, 3720, + 657, 10585, 3722, + 657, 10585, 3724, + 657, 10585, 3726, + 657, 10585, 3728, + 657, 10585, 3730, + 657, 10585, 3732, + 657, 10585, 3734, + 657, 10585, 3736, + 657, 10585, 3738, + 657, 10585, 3740, + 657, 10585, 3742, + 657, 10585, 3744, + 657, 10585, 3746, + 657, 10585, 3748, + 657, 10585, 3750, + 657, 10585, 3752, + 657, 10585, 3754, + 657, 10585, 3756, + 657, 10585, 3782, + 657, 10585, 3784, + 657, 10585, 3786, + 657, 10585, 3816, + 657, 10585, 3818, + 657, 10585, 3824, + 657, 10585, 3828, + 657, 10585, 3882, + 657, 10585, 3886, + 657, 10585, 3888, + 657, 10585, 3896, + 657, 10585, 3898, + 657, 10585, 3900, + 657, 10585, 3910, + 657, 10585, 3912, + 657, 10585, 3914, + 657, 10585, 3916, + 657, 10585, 3918, + 657, 10585, 3920, + 657, 10585, 3922, + 657, 10585, 3926, + 657, 10585, 3928, + 657, 10585, 3930, + 657, 10585, 3932, + 657, 10585, 3934, + 657, 10585, 3936, + 657, 10585, 3938, + 657, 10585, 3962, + 657, 10585, 3964, + 657, 10585, 3968, + 657, 10585, 3976, + 657, 10585, 4002, + 657, 10585, 4004, + 657, 10585, 4006, + 657, 10585, 4012, + 657, 10585, 4014, + 657, 10585, 4020, + 657, 10585, 4022, + 657, 10585, 4024, + 657, 10585, 4026, + 657, 10585, 4030, + 657, 10585, 4032, + 657, 10585, 4034, + 657, 10585, 4036, + 657, 10585, 4038, + 657, 10585, 4040, + 657, 10585, 4042, + 657, 10585, 4044, + 657, 10585, 4082, + 657, 10585, 4084, + 657, 10585, 4130, + 657, 10585, 4134, + 657, 10585, 4224, + 657, 10585, 4272, + 657, 10585, 4274, + 657, 10585, 4276, + 657, 10585, 4280, + 657, 10585, 4282, + 657, 10585, 4284, + 657, 10585, 4286, + 657, 10585, 4288, + 657, 10585, 4290, + 657, 10585, 4292, + 657, 10585, 4294, + 657, 10585, 4296, + 657, 10585, 4298, + 657, 10585, 4300, + 657, 10585, 4302, + 657, 10585, 4304, + 657, 10585, 4306, + 657, 10585, 4326, + 657, 10585, 4328, + 657, 10585, 4330, + 657, 10585, 4360, + 657, 10585, 4362, + 657, 10585, 4364, + 657, 10585, 4368, + 657, 10585, 4420, + 657, 10585, 4426, + 657, 10585, 4428, + 657, 10585, 4430, + 657, 10585, 4432, + 657, 10585, 4434, + 657, 10585, 4436, + 657, 10585, 4438, + 657, 10585, 4440, + 657, 10585, 4442, + 657, 10585, 4444, + 657, 10585, 4446, + 657, 10585, 4448, + 657, 10585, 4450, + 657, 10585, 4452, + 657, 10585, 4454, + 657, 10585, 4456, + 657, 10585, 4458, + 657, 10585, 4460, + 657, 10585, 4462, + 657, 10585, 4464, + 657, 10585, 4466, + 657, 10585, 4468, + 657, 10585, 4470, + 657, 10585, 4472, + 657, 10585, 4474, + 657, 10585, 4476, + 657, 10585, 4478, + 657, 10585, 4480, + 657, 10585, 4482, + 657, 10585, 4484, + 657, 10585, 4486, + 657, 10585, 4488, + 657, 10585, 4490, + 657, 10585, 4492, + 657, 10585, 4494, + 657, 10585, 4496, + 657, 10585, 4498, + 657, 10585, 4500, + 657, 10585, 4502, + 657, 10585, 4504, + 657, 10585, 4506, + 657, 10585, 4508, + 657, 10585, 4510, + 657, 10585, 4512, + 657, 10585, 4514, + 657, 10585, 4516, + 657, 10585, 4518, + 657, 10585, 4520, + 657, 10585, 4522, + 657, 10585, 4524, + 657, 10585, 4526, + 657, 10585, 4528, + 657, 10585, 4550, + 657, 10585, 4552, + 657, 10585, 4554, + 657, 10585, 4558, + 657, 10585, 4560, + 657, 10585, 4562, + 657, 10585, 4564, + 657, 10585, 4566, + 657, 10585, 4568, + 657, 10585, 4570, + 657, 10585, 4572, + 657, 10585, 4574, + 657, 10585, 4576, + 657, 10585, 4578, + 657, 10585, 4580, + 657, 10585, 4582, + 657, 10585, 4638, + 657, 10585, 4640, + 657, 10585, 4642, + 657, 10585, 4646, + 657, 10585, 4648, + 657, 10585, 4650, + 657, 10585, 4652, + 657, 10585, 4654, + 657, 10585, 4656, + 657, 10585, 4658, + 657, 10585, 4660, + 657, 10585, 4662, + 657, 10585, 4664, + 657, 10585, 4666, + 657, 10585, 4668, + 657, 10585, 4670, + 657, 10585, 4672, + 657, 10585, 4674, + 657, 10585, 4688, + 657, 10585, 4690, + 657, 10585, 4692, + 657, 10585, 4694, + 657, 10585, 4696, + 657, 10585, 4756, + 657, 10585, 4758, + 657, 10585, 4786, + 657, 10585, 4788, + 657, 10585, 4792, + 657, 10585, 4866, + 657, 10585, 4868, + 657, 10585, 4870, + 657, 10585, 4902, + 657, 10585, 4904, + 657, 10585, 4906, + 657, 10585, 4908, + 657, 10585, 4916, + 657, 10585, 4958, + 657, 10585, 4960, + 657, 10585, 4962, + 657, 10585, 4974, + 657, 10585, 4976, + 657, 10585, 4978, + 657, 10585, 4980, + 657, 10585, 4982, + 657, 10585, 4984, + 657, 10585, 4986, + 657, 10585, 4988, + 657, 10585, 4990, + 657, 10585, 4992, + 657, 10585, 4994, + 657, 10585, 4996, + 657, 10585, 4998, + 657, 10585, 5020, + 657, 10585, 5022, + 657, 10585, 5024, + 657, 10585, 5028, + 657, 10585, 5058, + 657, 10585, 5060, + 657, 10585, 5062, + 657, 10585, 5064, + 657, 10585, 5066, + 657, 10585, 5068, + 657, 10585, 5070, + 657, 10585, 5072, + 657, 10585, 5074, + 657, 10585, 5076, + 657, 10585, 5078, + 657, 10585, 5080, + 657, 10585, 5082, + 657, 10585, 5084, + 657, 10585, 5086, + 657, 10585, 5088, + 657, 10585, 5090, + 657, 10585, 5092, + 657, 10585, 5094, + 657, 10585, 5096, + 657, 10585, 5098, + 657, 10585, 5102, + 657, 10585, 5104, + 657, 10585, 5106, + 657, 10585, 5108, + 657, 10585, 5110, + 657, 10585, 5112, + 657, 10585, 5116, + 657, 10585, 5118, + 657, 10585, 5120, + 657, 10585, 5122, + 657, 10585, 5124, + 657, 10585, 5126, + 657, 10585, 5128, + 657, 10585, 5138, + 657, 10585, 5142, + 657, 10585, 5144, + 657, 10585, 5148, + 657, 10585, 5150, + 657, 10585, 5162, + 657, 10585, 5172, + 657, 10585, 5174, + 657, 10585, 5176, + 657, 10585, 5180, + 657, 10585, 5186, + 657, 10585, 5188, + 657, 10585, 5196, + 657, 10585, 5198, + 657, 10585, 5200, + 657, 10585, 5202, + 657, 10585, 5206, + 657, 10585, 5208, + 657, 10585, 5210, + 657, 10585, 5212, + 657, 10585, 5214, + 657, 10585, 5216, + 657, 10585, 5218, + 657, 10585, 5220, + 657, 10585, 5222, + 657, 10585, 5224, + 657, 10585, 5226, + 657, 10585, 5246, + 657, 10585, 5248, + 657, 10585, 5250, + 657, 10585, 5252, + 657, 10585, 5254, + 657, 10585, 5256, + 657, 10585, 5258, + 657, 10585, 5260, + 657, 10585, 5262, + 657, 10585, 5264, + 657, 10585, 5266, + 657, 10585, 5268, + 657, 10585, 5270, + 657, 10585, 5272, + 657, 10585, 5274, + 657, 10585, 5276, + 657, 10585, 5282, + 657, 10585, 5284, + 657, 10585, 5286, + 657, 10585, 5302, + 657, 10585, 5304, + 657, 10585, 5308, + 657, 10585, 5310, + 657, 10585, 5318, + 657, 10585, 5320, + 657, 10585, 5322, + 657, 10585, 5324, + 657, 10585, 5326, + 657, 10585, 5328, + 657, 10585, 5330, + 657, 10585, 5334, + 657, 10585, 5336, + 657, 10585, 5338, + 657, 10585, 5340, + 657, 10585, 5342, + 657, 10585, 5344, + 657, 10585, 5346, + 657, 10585, 5348, + 657, 10585, 5350, + 657, 10585, 5352, + 657, 10585, 5354, + 657, 10585, 5356, + 657, 10585, 5358, + 657, 10585, 5360, + 657, 10585, 5362, + 657, 10585, 5364, + 657, 10585, 5366, + 657, 10585, 5368, + 657, 10585, 5426, + 657, 10585, 5428, + 657, 10585, 5454, + 657, 10585, 5456, + 657, 10585, 5458, + 657, 10585, 5468, + 657, 10585, 5488, + 657, 10585, 5490, + 657, 10585, 5492, + 657, 10585, 5498, + 657, 10585, 5500, + 657, 10585, 5502, + 657, 10585, 5504, + 657, 10585, 5516, + 657, 10585, 5570, + 657, 10585, 5574, + 657, 10585, 5576, + 657, 10585, 5578, + 657, 10585, 5580, + 657, 10585, 5582, + 657, 10585, 5584, + 657, 10585, 5586, + 657, 10585, 5588, + 657, 10585, 5590, + 657, 10585, 5592, + 657, 10585, 5594, + 657, 10585, 5596, + 657, 10585, 5598, + 657, 10585, 5600, + 657, 10585, 5602, + 657, 10585, 5608, + 657, 10585, 5610, + 657, 10585, 5612, + 657, 10585, 5618, + 657, 10585, 5672, + 657, 10585, 5674, + 657, 10585, 5676, + 657, 10585, 5684, + 657, 10585, 5686, + 657, 10585, 5688, + 657, 10585, 5712, + 657, 10585, 5714, + 657, 10585, 5716, + 657, 10585, 5722, + 657, 10585, 5724, + 657, 10585, 5726, + 657, 10585, 5728, + 657, 10585, 5730, + 657, 10585, 5742, + 657, 10585, 5744, + 657, 10585, 5746, + 657, 10585, 5748, + 657, 10585, 5752, + 657, 10585, 5754, + 657, 10585, 5788, + 657, 10585, 5790, + 657, 10585, 5792, + 657, 10585, 5796, + 657, 10585, 5798, + 657, 10585, 5800, + 657, 10585, 5802, + 657, 10585, 5804, + 657, 10585, 5806, + 657, 10585, 5808, + 657, 10585, 5810, + 657, 10585, 5812, + 657, 10585, 5814, + 657, 10585, 5816, + 657, 10585, 5818, + 657, 10585, 5820, + 657, 10585, 5822, + 657, 10585, 5824, + 657, 10585, 5826, + 657, 10585, 5848, + 657, 10585, 5850, + 657, 10585, 5856, + 657, 10585, 5864, + 657, 10585, 5936, + 657, 10585, 5938, + 657, 10585, 6014, + 657, 10585, 6016, + 657, 10585, 6018, + 657, 10585, 6022, + 657, 10585, 6084, + 657, 10585, 6086, + 657, 10585, 6088, + 657, 10585, 6094, + 657, 10585, 6096, + 657, 10585, 6134, + 657, 10585, 6136, + 657, 10585, 6140, + 657, 10585, 6142, + 657, 10585, 6144, + 657, 10585, 6146, + 657, 10585, 6156, + 657, 10585, 6206, + 657, 10585, 6208, + 657, 10585, 6210, + 657, 10585, 6238, + 657, 10585, 6240, + 657, 10585, 6242, + 657, 10585, 6244, + 657, 10585, 6252, + 657, 10585, 6266, + 657, 10585, 6270, + 657, 10585, 6272, + 657, 10585, 6276, + 657, 10585, 6278, + 657, 10585, 6280, + 657, 10585, 6284, + 657, 10585, 6286, + 657, 10585, 6288, + 657, 10585, 6290, + 657, 10585, 6292, + 657, 10585, 6294, + 657, 10585, 6296, + 657, 10585, 6298, + 657, 10585, 6304, + 657, 10585, 6306, + 657, 10585, 6308, + 657, 10585, 6310, + 657, 10585, 6314, + 657, 10585, 6316, + 657, 10585, 6320, + 657, 10585, 6322, + 657, 10585, 6324, + 657, 10585, 6326, + 657, 10585, 6330, + 657, 10585, 6332, + 657, 10585, 6334, + 657, 10585, 6338, + 657, 10585, 6340, + 657, 10585, 6342, + 657, 10585, 6344, + 657, 10585, 6346, + 657, 10585, 6348, + 657, 10585, 6350, + 657, 10585, 6352, + 657, 10585, 6354, + 657, 10585, 6356, + 657, 10585, 6358, + 657, 10585, 6360, + 657, 10585, 6362, + 657, 10585, 6364, + 657, 10585, 6366, + 657, 10585, 6470, + 657, 10585, 6472, + 657, 10585, 6474, + 657, 10585, 6476, + 657, 10585, 6478, + 657, 10585, 6480, + 657, 10585, 6584, + 657, 10585, 6586, + 657, 10585, 6588, + 657, 10585, 6590, + 657, 10585, 6592, + 657, 10585, 6660, + 657, 10585, 6662, + 657, 10585, 6664, + 657, 10585, 6666, + 657, 10585, 6668, + 657, 10585, 6834, + 657, 10585, 6836, + 657, 10585, 6838, + 657, 10585, 6840, + 657, 10585, 6842, + 657, 10585, 6844, + 657, 10585, 6916, + 657, 10585, 6918, + 657, 10585, 6920, + 657, 10585, 6922, + 657, 10585, 6924, + 657, 10585, 6926, + 657, 10585, 6928, + 657, 10585, 6930, + 657, 10585, 6932, + 657, 10585, 6934, + 657, 10585, 6936, + 657, 10585, 6938, + 657, 10585, 6940, + 657, 10585, 6942, + 657, 10585, 6944, + 657, 10585, 6946, + 657, 10585, 6962, + 657, 10585, 6964, + 657, 10585, 6966, + 657, 10585, 6968, + 657, 10585, 6970, + 657, 10585, 6972, + 657, 10585, 6998, + 657, 10585, 7000, + 657, 10585, 7002, + 657, 10585, 7004, + 657, 10585, 7006, + 657, 10585, 7008, + 657, 10585, 7156, + 657, 10585, 7158, + 657, 10585, 7160, + 657, 10585, 7162, + 657, 10585, 7212, + 657, 10585, 7214, + 657, 10585, 7216, + 657, 10585, 7218, + 657, 10585, 7220, + 657, 10585, 7224, + 657, 10585, 7234, + 657, 10585, 7236, + 657, 10585, 7240, + 657, 10585, 7242, + 657, 10585, 7250, + 657, 10585, 7252, + 657, 10585, 7254, + 657, 10585, 7256, + 657, 10585, 7258, + 657, 10585, 7260, + 657, 10585, 7278, + 657, 10585, 7280, + 657, 10585, 7286, + 657, 10585, 7288, + 657, 10585, 7290, + 657, 10585, 7292, + 657, 10585, 7294, + 657, 10585, 7296, + 657, 10585, 7298, + 657, 10585, 7300, + 657, 10585, 7302, + 657, 10585, 7304, + 657, 10585, 7456, + 657, 10585, 7458, + 657, 10585, 7460, + 657, 10585, 7552, + 657, 10585, 7554, + 657, 10585, 7556, + 657, 10585, 7564, + 657, 10585, 7620, + 657, 10585, 7622, + 657, 10585, 7624, + 657, 10585, 7876, + 657, 10585, 7878, + 657, 10585, 7880, + 657, 10585, 7882, + 657, 10585, 7894, + 657, 10585, 7896, + 657, 10585, 7898, + 657, 10585, 7900, + 657, 10585, 7902, + 705, 8694, + 719, 6741, 568, + 719, 13042, + 721, 6121, 1044, + 729, 11635, 8775, 601, 5707, 1546, + 729, 11635, 8775, 601, 5877, 1546, + 729, 11635, 8775, 601, 5877, 9546, + 729, 11635, 8775, 601, 5877, 10804, + 729, 11635, 8775, 601, 6543, 7708, + 729, 11635, 8775, 991, 7636, + 729, 11635, 8775, 991, 7708, + 729, 11635, 8775, 991, 10804, + 729, 11635, 8775, 1547, 10666, + 729, 11635, 8775, 1547, 10804, + 729, 11635, 8775, 2412, + 729, 11635, 8775, 4117, 5707, 7636, + 729, 11635, 8775, 4117, 5877, 1546, + 729, 11635, 8775, 4117, 5877, 10666, + 729, 11635, 8775, 4117, 6543, 7708, + 729, 11635, 8775, 4614, + 729, 11635, 8775, 4615, 10666, + 729, 11635, 8775, 4849, 5707, 7636, + 729, 11635, 8775, 5496, + 729, 11635, 8775, 5497, 601, 6542, + 729, 11635, 8775, 5497, 990, + 729, 11635, 8775, 5497, 1546, + 729, 11635, 8775, 5497, 2091, 6740, + 729, 11635, 8775, 5497, 4117, 6542, + 729, 11635, 8775, 5497, 6610, + 729, 11635, 8775, 5497, 6674, + 729, 11635, 8775, 5497, 6740, + 729, 11635, 8775, 5497, 7580, + 729, 11635, 8775, 5497, 8056, + 729, 11635, 8775, 5497, 8122, + 729, 11635, 8775, 5497, 9158, + 729, 11635, 8775, 5497, 9811, 6434, + 729, 11635, 8775, 5497, 10468, + 729, 11635, 8775, 5497, 10728, + 729, 11635, 8775, 5497, 10959, 6434, + 729, 11635, 8775, 5497, 11097, 6434, + 729, 11635, 8775, 5497, 11098, + 729, 11635, 8775, 5497, 11765, 6434, + 729, 11635, 8775, 5497, 12472, + 729, 11635, 8775, 5831, 10804, + 729, 11635, 8775, 6406, + 729, 11635, 8775, 6407, 10666, + 729, 11635, 8775, 6617, 760, + 729, 11635, 8775, 6675, 7636, + 729, 11635, 8775, 6675, 10666, + 729, 11635, 8775, 7316, + 729, 11635, 8775, 7317, 10666, + 729, 11635, 8775, 7415, 5496, + 729, 11635, 8775, 7415, 10666, + 729, 11635, 8775, 7581, 760, + 729, 11635, 8775, 7637, 7708, + 729, 11635, 8775, 7709, 10804, + 729, 11635, 8775, 7884, + 729, 11635, 8775, 8057, 1546, + 729, 11635, 8775, 8057, 5830, + 729, 11635, 8775, 8057, 7636, + 729, 11635, 8775, 8057, 10666, + 729, 11635, 8775, 8057, 10728, + 729, 11635, 8775, 8057, 10804, + 729, 11635, 8775, 8308, + 729, 11635, 8775, 8747, 5496, + 729, 11635, 8775, 9159, 10666, + 729, 11635, 8775, 9271, 10666, + 729, 11635, 8775, 9811, 6074, + 729, 11635, 8775, 10729, 760, + 729, 11635, 8775, 10959, 6074, + 729, 11635, 8775, 11097, 6074, + 729, 11635, 8775, 11225, 10666, + 729, 11635, 8775, 11765, 6074, + 729, 11635, 8775, 12473, 10804, + 730, + 789, 8774, + 807, 9633, 9718, + 807, 9718, + 827, 10145, 601, 6909, 721, 4117, 11649, 7100, + 827, 10145, 601, 6909, 721, 4849, 4117, 7100, + 827, 10145, 601, 6909, 721, 4849, 7100, + 827, 10145, 601, 6909, 721, 7443, 4117, 7100, + 827, 10145, 601, 6909, 721, 7443, 7100, + 827, 10145, 601, 6909, 721, 11649, 7100, + 827, 10145, 601, 7101, 721, 4117, 11649, 6908, + 827, 10145, 601, 7101, 721, 4849, 4117, 6908, + 827, 10145, 601, 7101, 721, 4849, 6908, + 827, 10145, 601, 7101, 721, 7443, 4117, 6908, + 827, 10145, 601, 7101, 721, 7443, 6908, + 827, 10145, 601, 7101, 721, 11649, 6908, + 827, 10145, 601, 8153, 721, 4849, 8716, + 827, 10145, 601, 8153, 721, 7443, 8716, + 827, 10145, 601, 8153, 721, 11649, 8716, + 827, 10145, 601, 8717, 721, 4849, 8152, + 827, 10145, 601, 8717, 721, 7443, 8152, + 827, 10145, 601, 8717, 721, 11649, 8152, + 827, 10145, 4117, 6909, 721, 601, 11649, 7100, + 827, 10145, 4117, 6909, 721, 4849, 601, 7100, + 827, 10145, 4117, 6909, 721, 4849, 7100, + 827, 10145, 4117, 6909, 721, 7443, 601, 7100, + 827, 10145, 4117, 6909, 721, 7443, 7100, + 827, 10145, 4117, 6909, 721, 11649, 7100, + 827, 10145, 4117, 7101, 721, 601, 11649, 6908, + 827, 10145, 4117, 7101, 721, 4849, 601, 6908, + 827, 10145, 4117, 7101, 721, 4849, 6908, + 827, 10145, 4117, 7101, 721, 7443, 601, 6908, + 827, 10145, 4117, 7101, 721, 7443, 6908, + 827, 10145, 4117, 7101, 721, 11649, 6908, + 827, 10145, 4117, 8153, 721, 4849, 8716, + 827, 10145, 4117, 8153, 721, 7443, 8716, + 827, 10145, 4117, 8153, 721, 11649, 8716, + 827, 10145, 4117, 8717, 721, 4849, 8152, + 827, 10145, 4117, 8717, 721, 7443, 8152, + 827, 10145, 4117, 8717, 721, 11649, 8152, + 827, 10145, 4849, 601, 6909, 721, 7443, 4117, 7100, + 827, 10145, 4849, 4117, 6909, 721, 7443, 601, 7100, + 827, 10145, 4849, 6909, 721, 7443, 601, 7100, + 827, 10145, 4849, 6909, 721, 7443, 4117, 7100, + 827, 10145, 4849, 6909, 721, 7443, 10677, 7100, + 827, 10145, 4849, 7101, 721, 7443, 601, 6908, + 827, 10145, 4849, 7101, 721, 7443, 4117, 6908, + 827, 10145, 4849, 7101, 721, 7443, 10677, 6908, + 827, 10145, 6909, 600, + 827, 10145, 6909, 601, 721, 4848, + 827, 10145, 6909, 601, 721, 7101, 4116, + 827, 10145, 6909, 601, 721, 7442, + 827, 10145, 6909, 601, 721, 11648, + 827, 10145, 6909, 4116, + 827, 10145, 6909, 4117, 721, 4848, + 827, 10145, 6909, 4117, 721, 7442, + 827, 10145, 6909, 4117, 721, 11648, + 827, 10145, 6909, 4848, + 827, 10145, 6909, 4849, 721, 7101, 7442, + 827, 10145, 6909, 7442, + 827, 10145, 6909, 8153, 3993, 10676, + 827, 10145, 6909, 8153, 3993, 11648, + 827, 10145, 6909, 8849, 3993, 10676, + 827, 10145, 6909, 8849, 3993, 11648, + 827, 10145, 6909, 10676, + 827, 10145, 6909, 10677, 721, 4848, + 827, 10145, 6909, 10677, 721, 7442, + 827, 10145, 6909, 10677, 721, 11648, + 827, 10145, 6909, 11191, 3993, 10676, + 827, 10145, 6909, 11191, 3993, 11648, + 827, 10145, 6909, 11648, + 827, 10145, 7101, 600, + 827, 10145, 7101, 601, 721, 4848, + 827, 10145, 7101, 601, 721, 6909, 4116, + 827, 10145, 7101, 601, 721, 7442, + 827, 10145, 7101, 601, 721, 11648, + 827, 10145, 7101, 731, 601, 721, 4848, + 827, 10145, 7101, 731, 601, 721, 7442, + 827, 10145, 7101, 731, 4117, 721, 4848, + 827, 10145, 7101, 731, 4117, 721, 7442, + 827, 10145, 7101, 4116, + 827, 10145, 7101, 4117, 721, 4848, + 827, 10145, 7101, 4117, 721, 7442, + 827, 10145, 7101, 4117, 721, 11648, + 827, 10145, 7101, 4848, + 827, 10145, 7101, 4849, 721, 6909, 7442, + 827, 10145, 7101, 7442, + 827, 10145, 7101, 8153, 3993, 10676, + 827, 10145, 7101, 8153, 3993, 11648, + 827, 10145, 7101, 8849, 3993, 10676, + 827, 10145, 7101, 8849, 3993, 11648, + 827, 10145, 7101, 10001, 6622, + 827, 10145, 7101, 10001, 7773, 4849, 569, 7121, 7442, + 827, 10145, 7101, 10001, 7773, 7443, 569, 7121, 4848, + 827, 10145, 7101, 10676, + 827, 10145, 7101, 10677, 721, 4848, + 827, 10145, 7101, 10677, 721, 7442, + 827, 10145, 7101, 10677, 721, 11648, + 827, 10145, 7101, 11191, 3993, 10676, + 827, 10145, 7101, 11191, 3993, 11648, + 827, 10145, 7101, 11648, + 827, 10145, 7443, 601, 6909, 721, 4849, 4117, 7100, + 827, 10145, 7443, 4117, 6909, 721, 4849, 601, 7100, + 827, 10145, 7443, 6909, 721, 4849, 601, 7100, + 827, 10145, 7443, 6909, 721, 4849, 4117, 7100, + 827, 10145, 7443, 6909, 721, 4849, 10677, 7100, + 827, 10145, 7443, 7101, 721, 4849, 601, 6908, + 827, 10145, 7443, 7101, 721, 4849, 4117, 6908, + 827, 10145, 7443, 7101, 721, 4849, 10677, 6908, + 827, 10145, 8153, 601, 721, 4848, + 827, 10145, 8153, 601, 721, 7442, + 827, 10145, 8153, 601, 721, 11648, + 827, 10145, 8153, 4117, 721, 4848, + 827, 10145, 8153, 4117, 721, 7442, + 827, 10145, 8153, 4117, 721, 11648, + 827, 10145, 8153, 10676, + 827, 10145, 8153, 10677, 721, 4848, + 827, 10145, 8153, 10677, 721, 7442, + 827, 10145, 8153, 10677, 721, 11648, + 827, 10145, 8153, 11648, + 827, 10145, 10677, 6909, 721, 4849, 7100, + 827, 10145, 10677, 6909, 721, 7443, 7100, + 827, 10145, 10677, 6909, 721, 11649, 7100, + 827, 10145, 10677, 7101, 721, 4849, 6908, + 827, 10145, 10677, 7101, 721, 7443, 6908, + 827, 10145, 10677, 7101, 721, 11649, 6908, + 827, 10145, 10677, 8153, 721, 4849, 8716, + 827, 10145, 10677, 8153, 721, 7443, 8716, + 827, 10145, 10677, 8153, 721, 11649, 8716, + 827, 10145, 10677, 8717, 721, 4849, 8152, + 827, 10145, 10677, 8717, 721, 7443, 8152, + 827, 10145, 10677, 8717, 721, 11649, 8152, + 889, 2412, + 909, 8759, 6, + 909, 8759, 14, + 909, 8759, 26, + 909, 8759, 30, + 909, 8759, 32, + 909, 8759, 36, + 909, 8759, 38, + 909, 8759, 240, + 909, 8759, 248, + 909, 8759, 254, + 909, 8759, 466, + 909, 8759, 472, + 909, 8759, 494, + 909, 8759, 528, + 909, 8759, 538, + 909, 8759, 544, + 909, 8759, 550, + 909, 8759, 554, + 909, 8759, 566, + 909, 8759, 628, + 909, 8759, 642, + 909, 8759, 844, + 909, 8759, 1458, + 909, 8759, 1460, + 909, 8759, 1462, + 909, 8759, 1464, + 909, 8759, 2602, + 909, 8759, 2608, + 909, 8759, 2630, + 909, 8759, 4542, + 909, 8759, 4584, + 909, 8759, 4586, + 909, 8759, 4588, + 909, 8759, 4590, + 909, 8759, 5872, + 909, 8759, 6974, + 909, 9617, 826, + 909, 9617, 920, + 909, 9617, 1036, + 909, 9617, 1093, 2170, + 909, 9617, 1093, 2778, + 909, 9617, 1093, 7694, + 909, 9617, 1132, + 909, 9617, 1136, + 909, 9617, 2025, 2170, + 909, 9617, 2025, 2778, + 909, 9617, 2025, 4214, + 909, 9617, 2025, 7694, + 909, 9617, 2166, + 909, 9617, 2201, 2170, + 909, 9617, 2201, 2778, + 909, 9617, 2386, + 909, 9617, 2390, + 909, 9617, 2586, + 909, 9617, 3794, + 909, 9617, 3805, 429, 6604, + 909, 9617, 3806, + 909, 9617, 3940, + 909, 9617, 4194, + 909, 9617, 4208, + 909, 9617, 4390, + 909, 9617, 4398, + 909, 9617, 4536, + 909, 9617, 4628, + 909, 9617, 4835, 2170, + 909, 9617, 4835, 2778, + 909, 9617, 4835, 4214, + 909, 9617, 4835, 7694, + 909, 9617, 4895, 2170, + 909, 9617, 4895, 2778, + 909, 9617, 4940, + 909, 9617, 4950, + 909, 9617, 5012, + 909, 9617, 5524, + 909, 9617, 5646, + 909, 9617, 5764, + 909, 9617, 6101, 2170, + 909, 9617, 6101, 2778, + 909, 9617, 6113, 2170, + 909, 9617, 6113, 2778, + 909, 9617, 6521, 2170, + 909, 9617, 6521, 2778, + 909, 9617, 6578, + 909, 9617, 6600, + 909, 9617, 6670, + 909, 9617, 6852, + 909, 9617, 6873, 2170, + 909, 9617, 6873, 2778, + 909, 9617, 6873, 7694, + 909, 9617, 6907, 2170, + 909, 9617, 6907, 2778, + 909, 9617, 7057, 2170, + 909, 9617, 7057, 2778, + 909, 9617, 7185, 2170, + 909, 9617, 7185, 2778, + 909, 9617, 7526, + 909, 9617, 7593, 2170, + 909, 9617, 7593, 2778, + 909, 9617, 7600, + 909, 9617, 7603, 2170, + 909, 9617, 7603, 2778, + 909, 9617, 7662, + 909, 9617, 7704, + 909, 9617, 7813, 2170, + 909, 9617, 7813, 2778, + 909, 9617, 7974, + 909, 9617, 8484, + 909, 9617, 8486, + 909, 9617, 8576, + 909, 9617, 8640, + 909, 9617, 8681, 2170, + 909, 9617, 8681, 2778, + 909, 9617, 8681, 7694, + 909, 9617, 8735, 2170, + 909, 9617, 8735, 2778, + 909, 9617, 8824, + 909, 9617, 8870, + 909, 9617, 9102, + 909, 9617, 9948, + 909, 9617, 11488, + 909, 9617, 11803, 4389, 5969, 7736, + 909, 9617, 11803, 4536, + 909, 9617, 11803, 6100, + 909, 9617, 11803, 7816, + 909, 9617, 11803, 8946, + 909, 9617, 12419, 1092, + 909, 9617, 12419, 1170, + 909, 9617, 12419, 2504, + 909, 9617, 12419, 3788, + 909, 9617, 12419, 3850, + 909, 9617, 12419, 4172, + 909, 9617, 12419, 4196, + 909, 9617, 12419, 4218, + 909, 9617, 12419, 4244, + 909, 9617, 12419, 4342, + 909, 9617, 12419, 4844, + 909, 9617, 12419, 4894, + 909, 9617, 12419, 5632, + 909, 9617, 12419, 5764, + 909, 9617, 12419, 6116, + 909, 9617, 12419, 6952, + 909, 9617, 12419, 7532, + 909, 9617, 12419, 7726, + 909, 9617, 12419, 8154, + 909, 9617, 12419, 8730, + 909, 9617, 12419, 8793, 9426, + 909, 9617, 12419, 8870, + 909, 9617, 12495, 4172, + 909, 9617, 12495, 7726, + 909, 9617, 12495, 8154, + 909, 9617, 12495, 8870, + 1009, 8178, + 1009, 8180, + 1009, 8182, + 1009, 8184, + 1009, 8186, + 1009, 8188, + 1045, 5444, + 1045, 6376, + 1045, 7172, + 1045, 10374, + 1109, 429, 7394, + 1177, 718, + 1429, 9730, + 1429, 9912, + 1635, 5758, + 1741, 247, 380, + 1741, 247, 412, + 1741, 323, 332, + 1741, 5965, 1859, 170, + 1741, 5965, 1859, 564, + 1741, 5965, 1859, 2684, + 1741, 5965, 1859, 8034, + 1741, 6689, 2170, + 1741, 6689, 2540, + 1741, 6689, 2778, + 1741, 6689, 4200, + 1741, 6689, 4214, + 1741, 6689, 5190, + 1741, 6689, 6260, + 1741, 6689, 6722, + 1741, 6689, 7508, + 1741, 6689, 7694, + 1741, 7803, 5759, 0, + 1741, 7803, 5759, 8, + 1741, 7803, 5759, 16, + 1741, 7803, 5759, 28, + 1741, 7803, 5759, 40, + 1741, 7803, 5759, 48, + 1741, 7803, 5759, 58, + 1741, 7803, 5759, 72, + 1741, 7803, 5759, 78, + 1741, 7803, 5759, 98, + 1741, 7803, 5759, 168, + 1741, 7803, 5759, 266, + 1741, 7803, 5759, 606, + 1741, 7803, 5759, 668, + 1741, 7803, 5759, 1859, 1588, + 1741, 7803, 5759, 1859, 1658, + 1741, 8405, 28, + 1741, 8405, 108, + 1741, 8405, 130, + 1741, 8405, 150, + 1741, 8405, 209, 2646, + 1741, 8405, 209, 5846, + 1741, 8405, 247, 2646, + 1741, 8405, 247, 5846, + 1741, 8405, 322, + 1741, 8405, 351, 4878, + 1741, 8405, 351, 4898, + 1741, 8405, 380, + 1741, 8405, 412, + 1741, 8405, 480, + 1741, 8405, 537, 2646, + 1741, 8405, 537, 5846, + 1741, 8405, 568, + 1741, 8405, 632, + 1741, 8405, 660, + 1741, 8405, 1619, 2646, + 1741, 8405, 1619, 5846, + 1741, 8405, 2038, + 1741, 8405, 2134, + 1741, 8405, 2219, 2646, + 1741, 8405, 2219, 5846, + 1741, 8405, 2685, 2646, + 1741, 8405, 2685, 5846, + 1741, 10154, + 1741, 11134, + 1741, 11227, 5759, 350, + 1741, 11227, 5759, 2134, + 1741, 12421, 4926, + 1764, + 1809, 4876, + 1809, 8153, 7391, 11195, 4926, + 1809, 9898, + 2027, 2643, 1817, 5759, 1734, + 2027, 2643, 1817, 5759, 4826, + 2027, 2643, 1817, 5965, 8442, + 2027, 2643, 1817, 5965, 8444, + 2027, 2643, 1817, 6689, 2170, + 2027, 2643, 1817, 6689, 2540, + 2027, 2643, 1817, 6689, 2778, + 2027, 2643, 1817, 6689, 4200, + 2027, 2643, 1817, 6689, 4214, + 2027, 2643, 1817, 6689, 5190, + 2027, 2643, 1817, 6689, 6260, + 2027, 2643, 1817, 6689, 6722, + 2027, 2643, 1817, 6689, 7508, + 2027, 2643, 1817, 6689, 7694, + 2027, 2643, 1817, 7803, 5759, 8, + 2027, 2643, 1817, 7803, 5759, 28, + 2027, 2643, 1817, 7803, 5759, 40, + 2027, 2643, 1817, 7803, 5759, 58, + 2027, 2643, 1817, 7803, 5759, 66, + 2027, 2643, 1817, 7803, 5759, 98, + 2027, 2643, 1817, 7803, 5759, 266, + 2027, 2643, 1817, 7803, 5759, 290, + 2027, 2643, 1817, 7803, 5759, 422, + 2027, 2643, 1817, 7803, 5759, 458, + 2027, 2643, 1817, 7803, 5759, 590, + 2027, 2643, 1817, 7803, 5759, 606, + 2027, 2643, 1817, 7803, 5759, 608, + 2027, 2643, 1817, 7803, 5759, 700, + 2027, 2643, 1817, 7803, 5759, 2156, + 2027, 2643, 1817, 7803, 5759, 2806, + 2027, 2643, 1817, 7803, 5759, 7803, 11238, + 2027, 2643, 1817, 8405, 1809, 100, + 2027, 2643, 1817, 8405, 1809, 138, + 2027, 2643, 1817, 8405, 1809, 196, + 2027, 2643, 1817, 8405, 1809, 236, + 2027, 2643, 1817, 8405, 1809, 306, + 2027, 2643, 1817, 8405, 1809, 332, + 2027, 2643, 1817, 8405, 1809, 364, + 2027, 2643, 1817, 8405, 1809, 392, + 2027, 2643, 1817, 8405, 1809, 462, + 2027, 2643, 1817, 8405, 1809, 496, + 2027, 2643, 1817, 8405, 1809, 524, + 2027, 2643, 1817, 8405, 1809, 556, + 2027, 2643, 1817, 8405, 1809, 610, + 2027, 2643, 1817, 8405, 1809, 638, + 2027, 2643, 1817, 8405, 1809, 652, + 2027, 2643, 1817, 8405, 1809, 1702, + 2027, 2643, 1817, 8405, 1809, 2030, + 2027, 2643, 1817, 8405, 1809, 2212, + 2027, 2643, 1817, 8405, 1809, 2678, + 2027, 2643, 1817, 8405, 1809, 2732, + 2027, 2643, 1817, 8405, 1809, 2980, + 2027, 2643, 1817, 8405, 4423, 100, + 2027, 2643, 1817, 8405, 4423, 138, + 2027, 2643, 1817, 8405, 4423, 196, + 2027, 2643, 1817, 8405, 4423, 236, + 2027, 2643, 1817, 8405, 4423, 306, + 2027, 2643, 1817, 8405, 4423, 332, + 2027, 2643, 1817, 8405, 4423, 364, + 2027, 2643, 1817, 8405, 4423, 392, + 2027, 2643, 1817, 8405, 4423, 462, + 2027, 2643, 1817, 8405, 4423, 496, + 2027, 2643, 1817, 8405, 4423, 524, + 2027, 2643, 1817, 8405, 4423, 556, + 2027, 2643, 1817, 8405, 4423, 610, + 2027, 2643, 1817, 8405, 4423, 638, + 2027, 2643, 1817, 8405, 4423, 652, + 2027, 2643, 1817, 8405, 4423, 1702, + 2027, 2643, 1817, 8405, 4423, 2030, + 2027, 2643, 1817, 8405, 4423, 2212, + 2027, 2643, 1817, 8405, 4423, 2678, + 2027, 2643, 1817, 8405, 4423, 2732, + 2027, 2643, 1817, 8405, 4423, 2980, + 2027, 2643, 1817, 8405, 6789, 2, + 2027, 2643, 1817, 8405, 6789, 6, + 2027, 2643, 1817, 8405, 6789, 20, + 2027, 2643, 1817, 8405, 6789, 24, + 2027, 2643, 1817, 8405, 6789, 26, + 2027, 2643, 1817, 8405, 6789, 42, + 2027, 2643, 1817, 8405, 6789, 400, + 2027, 8701, 5758, + 2075, 1809, 5965, 11424, + 2075, 4423, 5965, 11424, + 2075, 6616, + 2075, 6689, 2170, + 2075, 6689, 2540, + 2075, 6689, 2778, + 2075, 6689, 4200, + 2075, 6689, 4214, + 2075, 6689, 5190, + 2075, 6689, 6260, + 2075, 6689, 6722, + 2075, 6689, 7508, + 2075, 6689, 7694, + 2075, 8405, 0, + 2075, 8405, 8, + 2075, 8405, 16, + 2075, 8405, 26, + 2075, 8405, 28, + 2075, 8405, 40, + 2075, 8405, 100, + 2075, 8405, 138, + 2075, 8405, 162, + 2075, 8405, 196, + 2075, 8405, 236, + 2075, 8405, 292, + 2075, 8405, 306, + 2075, 8405, 332, + 2075, 8405, 364, + 2075, 8405, 392, + 2075, 8405, 393, 8936, + 2075, 8405, 440, + 2075, 8405, 462, + 2075, 8405, 510, + 2075, 8405, 524, + 2075, 8405, 556, + 2075, 8405, 622, + 2075, 8405, 652, + 2075, 8405, 884, + 2075, 8405, 1228, + 2075, 8405, 2126, + 2075, 8405, 2127, 8936, + 2075, 8405, 2438, + 2075, 8405, 4679, 292, + 2075, 8405, 4679, 510, + 2075, 8405, 4679, 884, + 2075, 8405, 11470, + 2075, 8775, 441, 8104, + 2075, 8775, 11636, + 2075, 10767, 4895, 1809, 5964, + 2075, 10767, 4895, 4423, 5964, + 2075, 10767, 4895, 8649, 5964, + 2075, 10767, 4895, 11475, 5964, + 2075, 10767, 7551, 1809, 5964, + 2075, 10767, 7551, 4423, 5964, + 2075, 10767, 7551, 8649, 5964, + 2075, 10767, 8153, 1045, 6376, + 2075, 10767, 12511, 4926, + 2075, 11672, + 2075, 12017, 4926, + 2088, + 2091, 1, 8763, 428, + 2091, 1, 10579, 428, + 2091, 81, 9263, 428, + 2091, 5758, + 2091, 5972, + 2091, 6569, 4926, + 2091, 6741, 568, + 2091, 7708, + 2091, 7919, 6741, 568, + 2091, 8521, 10573, 428, + 2091, 8521, 10573, 429, 445, 6741, 568, + 2091, 8745, 6989, 429, 445, 6741, 568, + 2091, 8745, 10379, 429, 445, 6741, 568, + 2091, 10411, 568, + 2091, 11041, 568, + 2091, 11098, + 2091, 11621, 568, + 2091, 12472, + 2091, 13045, 6741, 568, + 2159, 825, 2690, + 2159, 3771, 8020, + 2159, 3992, + 2159, 4210, + 2159, 4530, + 2159, 6564, + 2159, 7921, 429, 6568, + 2159, 8009, 3711, 13054, + 2159, 8153, 10728, + 2159, 9973, 8975, 8524, + 2159, 10267, 4210, + 2163, 5758, + 2167, 8325, 8405, 0, + 2167, 8325, 8405, 8, + 2167, 8325, 8405, 16, + 2167, 8325, 8405, 28, + 2167, 8325, 8405, 40, + 2167, 8325, 8405, 102, + 2167, 8325, 8405, 142, + 2167, 8325, 8405, 164, + 2167, 8325, 8405, 172, + 2167, 8325, 8405, 174, + 2167, 8325, 8405, 176, + 2167, 8325, 8405, 182, + 2167, 8325, 8405, 184, + 2167, 8325, 8405, 238, + 2167, 8325, 8405, 266, + 2167, 8325, 8405, 306, + 2167, 8325, 8405, 310, + 2167, 8325, 8405, 326, + 2167, 8325, 8405, 468, + 2167, 8325, 8405, 560, + 2167, 8325, 8405, 606, + 2167, 8325, 8405, 612, + 2167, 8325, 8405, 672, + 2167, 8325, 8405, 886, + 2167, 8325, 8405, 1106, + 2167, 8325, 8405, 1122, + 2167, 8325, 8405, 1124, + 2167, 8325, 8405, 1614, + 2167, 8325, 8405, 2214, + 2167, 8325, 8405, 2518, + 2167, 8325, 8405, 2680, + 2167, 8325, 9513, 2170, + 2167, 8325, 9513, 2670, + 2167, 8325, 9513, 4200, + 2167, 8325, 9513, 6784, + 2167, 9583, 5759, 0, + 2167, 9583, 5759, 16, + 2167, 9583, 5759, 40, + 2167, 9583, 5759, 100, + 2167, 9583, 5759, 116, + 2167, 9583, 5759, 138, + 2167, 9583, 5759, 144, + 2167, 9583, 5759, 152, + 2167, 9583, 5759, 196, + 2167, 9583, 5759, 216, + 2167, 9583, 5759, 230, + 2167, 9583, 5759, 236, + 2167, 9583, 5759, 292, + 2167, 9583, 5759, 296, + 2167, 9583, 5759, 306, + 2167, 9583, 5759, 326, + 2167, 9583, 5759, 332, + 2167, 9583, 5759, 364, + 2167, 9583, 5759, 374, + 2167, 9583, 5759, 384, + 2167, 9583, 5759, 392, + 2167, 9583, 5759, 416, + 2167, 9583, 5759, 462, + 2167, 9583, 5759, 510, + 2167, 9583, 5759, 520, + 2167, 9583, 5759, 524, + 2167, 9583, 5759, 556, + 2167, 9583, 5759, 576, + 2167, 9583, 5759, 610, + 2167, 9583, 5759, 614, + 2167, 9583, 5759, 638, + 2167, 9583, 5759, 652, + 2167, 9583, 5759, 670, + 2167, 9583, 5759, 2516, + 2167, 9583, 5759, 2566, + 2167, 9583, 5759, 2678, + 2167, 9583, 5759, 3700, + 2167, 9583, 5759, 9058, + 2167, 9583, 5759, 10790, + 2167, 9583, 5759, 11436, + 2167, 9583, 5759, 11926, + 2167, 9583, 5759, 12408, + 2167, 9583, 5759, 12410, + 2167, 9583, 5759, 12896, + 2167, 9583, 6129, 9178, + 2167, 9583, 8525, 2170, + 2167, 9583, 8525, 2670, + 2167, 9583, 8525, 2778, + 2167, 9583, 8525, 8876, + 2167, 9583, 8525, 9344, + 2171, 1045, 5387, 2779, 4113, 12132, + 2171, 1045, 8392, + 2209, 2671, 10625, 5758, + 2209, 5758, + 2209, 7171, 5758, + 2241, 11945, 11632, + 2511, 7172, + 2541, 9601, 6505, 5830, + 2541, 10425, 6505, 721, 7821, 10194, + 2586, + 2639, 1809, 4876, + 2639, 4223, 5836, + 2639, 4849, 6627, 9050, + 2639, 4849, 8745, 9050, + 2639, 4849, 12114, + 2639, 5445, 5758, + 2639, 6610, + 2639, 6616, + 2639, 6689, 2170, + 2639, 6689, 2540, + 2639, 6689, 2778, + 2639, 6689, 4200, + 2639, 6689, 4214, + 2639, 6689, 5190, + 2639, 6689, 6260, + 2639, 6689, 6722, + 2639, 6689, 7508, + 2639, 6689, 7694, + 2639, 6875, 7908, + 2639, 7089, 7593, 8405, 0, + 2639, 7089, 7593, 8405, 2, + 2639, 7089, 7593, 8405, 4, + 2639, 7089, 7593, 8405, 6, + 2639, 7089, 7593, 8405, 8, + 2639, 7089, 7593, 8405, 10, + 2639, 7089, 7593, 8405, 12, + 2639, 7089, 7593, 8405, 14, + 2639, 7089, 7593, 8405, 16, + 2639, 7089, 7593, 8405, 18, + 2639, 7089, 7593, 8405, 20, + 2639, 7089, 7593, 8405, 22, + 2639, 7089, 7593, 8405, 24, + 2639, 7089, 7593, 8405, 26, + 2639, 7089, 7593, 8405, 28, + 2639, 7089, 7593, 8405, 30, + 2639, 7089, 7593, 8405, 32, + 2639, 7089, 7593, 8405, 34, + 2639, 7089, 7593, 8405, 36, + 2639, 7089, 7593, 8405, 38, + 2639, 7089, 7593, 8405, 40, + 2639, 7089, 7593, 8405, 42, + 2639, 7089, 7593, 8405, 44, + 2639, 7089, 7593, 8405, 46, + 2639, 7089, 7593, 8405, 48, + 2639, 7089, 7593, 8405, 50, + 2639, 7089, 9063, 8405, 0, + 2639, 7089, 9063, 8405, 2, + 2639, 7089, 9063, 8405, 4, + 2639, 7089, 9063, 8405, 6, + 2639, 7089, 9063, 8405, 8, + 2639, 7089, 9063, 8405, 10, + 2639, 7089, 9063, 8405, 12, + 2639, 7089, 9063, 8405, 14, + 2639, 7089, 9063, 8405, 16, + 2639, 7089, 9063, 8405, 18, + 2639, 7089, 9063, 8405, 20, + 2639, 7089, 9063, 8405, 22, + 2639, 7089, 9063, 8405, 24, + 2639, 7089, 9063, 8405, 26, + 2639, 7089, 9063, 8405, 28, + 2639, 7089, 9063, 8405, 30, + 2639, 7089, 9063, 8405, 32, + 2639, 7089, 9063, 8405, 34, + 2639, 7089, 9063, 8405, 36, + 2639, 7089, 9063, 8405, 38, + 2639, 7089, 9063, 8405, 40, + 2639, 7089, 9063, 8405, 42, + 2639, 7089, 9063, 8405, 44, + 2639, 7089, 9063, 8405, 46, + 2639, 7089, 9063, 8405, 48, + 2639, 7089, 9063, 8405, 50, + 2639, 7443, 6627, 9050, + 2639, 7443, 8745, 9050, + 2639, 7443, 12114, + 2639, 7608, + 2639, 7708, + 2639, 8129, 5758, + 2639, 8167, 5758, + 2639, 8525, 5758, + 2639, 9581, 5758, + 2639, 9633, 9718, + 2639, 9718, + 2639, 9898, + 2639, 10469, 4926, + 2639, 10677, 4876, + 2639, 10708, + 2639, 11099, 5758, + 2639, 11195, 4926, + 2639, 11224, + 2639, 11424, + 2639, 11449, 7908, + 2639, 11451, 90, + 2639, 12017, 4926, + 2639, 12473, 5758, + 2639, 12478, + 2643, 337, 8405, 0, + 2643, 337, 8405, 8, + 2643, 337, 8405, 16, + 2643, 337, 8405, 28, + 2643, 337, 8405, 40, + 2643, 337, 8405, 72, + 2643, 337, 8405, 162, + 2643, 337, 8405, 166, + 2643, 337, 8405, 196, + 2643, 337, 8405, 236, + 2643, 337, 8405, 306, + 2643, 337, 8405, 332, + 2643, 337, 8405, 364, + 2643, 337, 8405, 392, + 2643, 337, 8405, 440, + 2643, 337, 8405, 462, + 2643, 337, 8405, 496, + 2643, 337, 8405, 524, + 2643, 337, 8405, 556, + 2643, 337, 8405, 590, + 2643, 337, 8405, 610, + 2643, 337, 8405, 638, + 2643, 337, 8405, 652, + 2643, 337, 8405, 738, + 2643, 337, 8405, 1612, + 2643, 337, 8405, 2030, + 2643, 337, 8405, 2212, + 2643, 337, 8405, 2678, + 2643, 337, 8405, 2732, + 2643, 337, 8405, 5978, + 2643, 337, 8405, 8834, + 2643, 337, 8405, 8836, + 2643, 337, 8405, 8838, + 2643, 337, 8405, 8840, + 2643, 337, 8405, 8842, + 2691, 5387, 10256, + 2725, 731, 10763, 6435, 6121, 7172, + 2725, 731, 12901, 6434, + 2725, 731, 12901, 6435, 6121, 5444, + 2725, 4389, 10260, + 2725, 4849, 3958, + 2725, 4849, 4389, 9050, + 2725, 4849, 8076, + 2725, 6627, 9050, + 2725, 7443, 3958, + 2725, 7443, 4389, 9050, + 2725, 7443, 8076, + 2725, 8745, 9050, + 2725, 10637, 7533, 9050, + 2725, 12114, + 2779, 1045, 8392, + 2779, 1045, 12132, + 2779, 4113, 5387, 2171, 1045, 12132, + 2779, 8329, 9734, + 2779, 9437, 445, 10374, + 2779, 9437, 721, 10374, + 2779, 10725, 8993, 11876, + 2779, 11913, 8167, 7570, + 2779, 12491, 9437, 444, + 2779, 12491, 9437, 720, + 2847, 4223, 5836, + 2847, 6616, + 2847, 6689, 2170, + 2847, 6689, 2540, + 2847, 6689, 2778, + 2847, 6689, 4200, + 2847, 6689, 4214, + 2847, 6689, 5190, + 2847, 6689, 6260, + 2847, 6689, 6722, + 2847, 6689, 7508, + 2847, 6689, 7694, + 2847, 8775, 1140, + 2847, 8775, 2052, + 2847, 8775, 2634, + 2847, 8775, 3708, + 2847, 8775, 3986, + 2847, 8775, 4100, + 2847, 8775, 4680, + 2847, 8775, 4784, + 2847, 8775, 5944, + 2847, 8775, 5966, + 2847, 8775, 6700, + 2847, 8775, 6776, + 2847, 8775, 7032, + 2847, 10469, 4926, + 2847, 10585, 0, + 2847, 10585, 8, + 2847, 10585, 16, + 2847, 10585, 28, + 2847, 10585, 40, + 2847, 10585, 80, + 2847, 10585, 100, + 2847, 10585, 102, + 2847, 10585, 106, + 2847, 10585, 108, + 2847, 10585, 112, + 2847, 10585, 116, + 2847, 10585, 122, + 2847, 10585, 126, + 2847, 10585, 130, + 2847, 10585, 132, + 2847, 10585, 138, + 2847, 10585, 142, + 2847, 10585, 144, + 2847, 10585, 150, + 2847, 10585, 152, + 2847, 10585, 162, + 2847, 10585, 176, + 2847, 10585, 196, + 2847, 10585, 198, + 2847, 10585, 202, + 2847, 10585, 208, + 2847, 10585, 210, + 2847, 10585, 216, + 2847, 10585, 220, + 2847, 10585, 224, + 2847, 10585, 228, + 2847, 10585, 230, + 2847, 10585, 236, + 2847, 10585, 238, + 2847, 10585, 242, + 2847, 10585, 246, + 2847, 10585, 250, + 2847, 10585, 274, + 2847, 10585, 292, + 2847, 10585, 294, + 2847, 10585, 296, + 2847, 10585, 298, + 2847, 10585, 300, + 2847, 10585, 306, + 2847, 10585, 310, + 2847, 10585, 314, + 2847, 10585, 322, + 2847, 10585, 326, + 2847, 10585, 332, + 2847, 10585, 336, + 2847, 10585, 340, + 2847, 10585, 350, + 2847, 10585, 354, + 2847, 10585, 364, + 2847, 10585, 368, + 2847, 10585, 374, + 2847, 10585, 380, + 2847, 10585, 384, + 2847, 10585, 392, + 2847, 10585, 396, + 2847, 10585, 400, + 2847, 10585, 404, + 2847, 10585, 412, + 2847, 10585, 416, + 2847, 10585, 438, + 2847, 10585, 440, + 2847, 10585, 462, + 2847, 10585, 468, + 2847, 10585, 476, + 2847, 10585, 480, + 2847, 10585, 486, + 2847, 10585, 510, + 2847, 10585, 512, + 2847, 10585, 514, + 2847, 10585, 516, + 2847, 10585, 520, + 2847, 10585, 524, + 2847, 10585, 526, + 2847, 10585, 532, + 2847, 10585, 536, + 2847, 10585, 546, + 2847, 10585, 556, + 2847, 10585, 560, + 2847, 10585, 564, + 2847, 10585, 568, + 2847, 10585, 576, + 2847, 10585, 596, + 2847, 10585, 610, + 2847, 10585, 612, + 2847, 10585, 614, + 2847, 10585, 616, + 2847, 10585, 618, + 2847, 10585, 622, + 2847, 10585, 626, + 2847, 10585, 630, + 2847, 10585, 632, + 2847, 10585, 634, + 2847, 10585, 652, + 2847, 10585, 654, + 2847, 10585, 656, + 2847, 10585, 660, + 2847, 10585, 664, + 2847, 10585, 670, + 2847, 10585, 672, + 2847, 10585, 676, + 2847, 10585, 678, + 2847, 10585, 680, + 2847, 10585, 778, + 2847, 10585, 792, + 2847, 10585, 794, + 2847, 10585, 796, + 2847, 10585, 798, + 2847, 10585, 800, + 2847, 10585, 818, + 2847, 10585, 876, + 2847, 10585, 914, + 2847, 10585, 984, + 2847, 10585, 996, + 2847, 10585, 998, + 2847, 10585, 1000, + 2847, 10585, 1002, + 2847, 10585, 1004, + 2847, 10585, 1040, + 2847, 10585, 1098, + 2847, 10585, 1150, + 2847, 10585, 1172, + 2847, 10585, 1228, + 2847, 10585, 1230, + 2847, 10585, 1232, + 2847, 10585, 1234, + 2847, 10585, 1236, + 2847, 10585, 1238, + 2847, 10585, 1240, + 2847, 10585, 1290, + 2847, 10585, 1346, + 2847, 10585, 1356, + 2847, 10585, 1362, + 2847, 10585, 1384, + 2847, 10585, 1422, + 2847, 10585, 1424, + 2847, 10585, 1436, + 2847, 10585, 1506, + 2847, 10585, 1542, + 2847, 10585, 1588, + 2847, 10585, 1598, + 2847, 10585, 1660, + 2847, 10585, 1668, + 2847, 10585, 1670, + 2847, 10585, 1672, + 2847, 10585, 1674, + 2847, 10585, 1676, + 2847, 10585, 1758, + 2847, 10585, 1802, + 2847, 10585, 1878, + 2847, 10585, 1880, + 2847, 10585, 1882, + 2847, 10585, 1884, + 2847, 10585, 1886, + 2847, 10585, 1890, + 2847, 10585, 1938, + 2847, 10585, 2006, + 2847, 10585, 2008, + 2847, 10585, 2010, + 2847, 10585, 2012, + 2847, 10585, 2014, + 2847, 10585, 2016, + 2847, 10585, 2062, + 2847, 10585, 2064, + 2847, 10585, 2066, + 2847, 10585, 2068, + 2847, 10585, 2070, + 2847, 10585, 2084, + 2847, 10585, 2126, + 2847, 10585, 2130, + 2847, 10585, 2132, + 2847, 10585, 2134, + 2847, 10585, 2136, + 2847, 10585, 2178, + 2847, 10585, 2204, + 2847, 10585, 2238, + 2847, 10585, 2402, + 2847, 10585, 2430, + 2847, 10585, 2504, + 2847, 10585, 2516, + 2847, 10585, 2518, + 2847, 10585, 2520, + 2847, 10585, 2522, + 2847, 10585, 2524, + 2847, 10585, 2554, + 2847, 10585, 2666, + 2847, 10585, 2678, + 2847, 10585, 2680, + 2847, 10585, 2682, + 2847, 10585, 2684, + 2847, 10585, 2686, + 2847, 10585, 2722, + 2847, 10585, 2856, + 2847, 10585, 2876, + 2847, 10585, 2910, + 2847, 10585, 2922, + 2847, 10585, 2924, + 2847, 10585, 2934, + 2847, 10585, 2940, + 2847, 10585, 2942, + 2847, 10585, 2948, + 2847, 10585, 3050, + 2847, 10585, 3082, + 2847, 10585, 3138, + 2847, 10585, 3146, + 2847, 10585, 3148, + 2847, 10585, 3150, + 2847, 10585, 3152, + 2847, 10585, 3154, + 2847, 10585, 3178, + 2847, 10585, 3778, + 2847, 10585, 3780, + 2847, 10585, 4068, + 2847, 10585, 4070, + 2847, 10585, 4072, + 2847, 10585, 4074, + 2847, 10585, 4076, + 2847, 10585, 4078, + 2847, 10585, 4080, + 2847, 10585, 4246, + 2847, 10585, 4248, + 2847, 10585, 4250, + 2847, 10585, 4252, + 2847, 10585, 4774, + 2847, 10585, 4776, + 2847, 10585, 4778, + 2847, 10585, 4780, + 2847, 10585, 4932, + 2847, 10585, 4934, + 2847, 10585, 4964, + 2847, 10585, 4966, + 2847, 10585, 4968, + 2847, 10585, 4970, + 2847, 10585, 4972, + 2847, 10585, 5100, + 2847, 10585, 5114, + 2847, 10585, 5136, + 2847, 10585, 5146, + 2847, 10585, 5152, + 2847, 10585, 5154, + 2847, 10585, 5156, + 2847, 10585, 5158, + 2847, 10585, 5160, + 2847, 10585, 5168, + 2847, 10585, 5194, + 2847, 10585, 5204, + 2847, 10585, 5296, + 2847, 10585, 5316, + 2847, 10585, 5678, + 2847, 10585, 5710, + 2847, 10585, 5914, + 2847, 10585, 5930, + 2847, 10585, 6108, + 2847, 10585, 6126, + 2847, 10585, 6274, + 2847, 10585, 6282, + 2847, 10585, 6682, + 2847, 10585, 6684, + 2847, 10585, 7152, + 2847, 10585, 7154, + 2847, 10585, 7223, 150, + 2847, 10585, 7223, 196, + 2847, 10585, 7223, 306, + 2847, 10585, 7223, 364, + 2847, 10585, 7223, 2554, + 2847, 10585, 7228, + 2847, 10585, 7230, + 2847, 10585, 7232, + 2847, 10585, 11674, + 2941, 5758, + 2972, + 3055, 5758, + 3071, 6178, + 3245, 8774, + 3264, + 3285, 8774, + 3769, 8774, + 3839, 2812, + 3849, 428, + 3871, 5758, + 3873, 5758, + 3879, 6689, 2170, + 3879, 6689, 2540, + 3879, 6689, 2778, + 3879, 6689, 4200, + 3879, 6689, 4214, + 3879, 6689, 5190, + 3879, 6689, 6260, + 3879, 6689, 6722, + 3879, 6689, 7508, + 3879, 6689, 7694, + 3879, 7803, 5759, 16, + 3879, 7803, 5759, 28, + 3879, 7803, 5759, 40, + 3879, 7803, 5759, 58, + 3879, 7803, 5759, 72, + 3879, 7803, 5759, 92, + 3879, 7803, 5759, 168, + 3879, 7803, 5759, 266, + 3879, 7803, 5759, 426, + 3879, 7803, 5759, 590, + 3879, 8405, 0, + 3879, 8405, 8, + 3879, 8405, 16, + 3879, 8405, 28, + 3879, 8405, 40, + 3879, 8405, 72, + 3879, 8405, 100, + 3879, 8405, 138, + 3879, 8405, 216, + 3879, 8405, 236, + 3879, 8405, 292, + 3879, 8405, 306, + 3879, 8405, 332, + 3879, 8405, 364, + 3879, 8405, 392, + 3879, 8405, 462, + 3879, 8405, 510, + 3879, 8405, 524, + 3879, 8405, 556, + 3879, 8405, 610, + 3879, 8405, 652, + 3879, 8405, 766, + 3879, 8405, 792, + 3879, 8405, 884, + 3879, 8405, 974, + 3879, 8405, 996, + 3879, 8405, 1260, + 3879, 8405, 1512, + 3879, 8405, 1612, + 3879, 8405, 1948, + 3879, 8405, 2030, + 3879, 8405, 2042, + 3879, 8405, 2106, + 3879, 8405, 2212, + 3879, 8405, 2246, + 3879, 8405, 2566, + 3879, 8405, 2678, + 3879, 8405, 3902, + 3879, 8405, 5178, + 3879, 8405, 5182, + 3879, 8405, 5184, + 3879, 8405, 6789, 12, + 3879, 8405, 6789, 20, + 3879, 8405, 6789, 22, + 3879, 8405, 6789, 26, + 3879, 8405, 6789, 30, + 3879, 8405, 6789, 34, + 3879, 8405, 6789, 38, + 3879, 8405, 6789, 48, + 3879, 8405, 6789, 124, + 3879, 8405, 6789, 400, + 3879, 8405, 6789, 542, + 3879, 10775, 5759, 332, + 3879, 10775, 5759, 510, + 3879, 10775, 5759, 622, + 3879, 10775, 5759, 652, + 3879, 10775, 5759, 6789, 14, + 3879, 10775, 5759, 6789, 24, + 3879, 10775, 5759, 6789, 400, + 3879, 12133, 6646, + 3879, 12133, 8153, 6646, + 3879, 12133, 8732, + 3879, 12133, 8849, 6646, + 3961, 5566, + 3989, 7512, + 4103, 2091, 6798, + 4103, 2091, 7396, + 4103, 2091, 8122, + 4103, 2091, 8123, 6121, 10489, 10355, 7580, + 4103, 2091, 9113, 89, 8466, + 4103, 2091, 9113, 89, 8521, 10572, + 4103, 2091, 9113, 89, 8521, 10573, 445, 6740, + 4103, 2091, 9604, + 4103, 2091, 9605, 445, 6740, + 4103, 2091, 9750, + 4103, 2091, 9751, 445, 6740, + 4107, 5758, + 4117, 4197, 5878, + 4117, 5876, + 4117, 5877, 6121, 8057, 6490, + 4117, 7443, 10001, 10154, + 4117, 10716, + 4153, 8781, 6622, + 4171, 5758, + 4201, 1045, 4926, + 4201, 1045, 12132, + 4215, 1045, 4926, + 4215, 1045, 12132, + 4215, 11907, 9898, + 4215, 13047, 9898, + 4215, 13233, 9898, + 4223, 5836, + 4223, 6510, + 4223, 7327, 4676, + 4228, + 4260, + 4269, 4926, + 4387, 7608, + 4401, 8774, + 4423, 9831, 5758, + 4676, + 4686, + 4837, 9615, 5012, + 4849, 721, 7443, 5876, + 4849, 721, 7443, 8153, 11378, + 4849, 731, 11099, 9050, + 4849, 1809, 11715, 9050, + 4849, 2171, 8159, 6510, + 4849, 2171, 9615, 6510, + 4849, 3713, 601, 7443, 3713, 601, 9326, + 4849, 3713, 601, 7443, 3713, 4117, 9326, + 4849, 3713, 4117, 7443, 3713, 601, 9326, + 4849, 3713, 4117, 7443, 3713, 4117, 9326, + 4849, 4197, 5878, + 4849, 4201, 9259, 6510, + 4849, 4389, 6505, 8056, + 4849, 4389, 6510, + 4849, 5876, + 4849, 6409, 9050, + 4849, 6409, 9051, 6121, 1044, + 4849, 6435, 6121, 7593, 8056, + 4849, 6435, 6121, 9095, 5444, + 4849, 6505, 10637, 7533, 9050, + 4849, 6505, 11677, 9050, + 4849, 6627, 9050, + 4849, 6627, 9051, 7121, 4530, + 4849, 6627, 9051, 7773, 4530, + 4849, 6627, 9051, 8473, 7370, + 4849, 6792, + 4849, 7327, 4676, + 4849, 7443, 6105, 6434, + 4849, 7443, 6434, + 4849, 7443, 6435, 6121, 8153, 10677, 8758, + 4849, 7443, 6435, 6121, 8758, + 4849, 7443, 6435, 6121, 10677, 8758, + 4849, 7443, 6435, 9785, 7593, 8056, + 4849, 7443, 6505, 6434, + 4849, 7443, 7821, 6434, + 4849, 7443, 8153, 6434, + 4849, 7443, 8153, 6435, 6121, 8758, + 4849, 7443, 8153, 6435, 6121, 10677, 8758, + 4849, 7443, 12103, 6434, + 4849, 7509, 9259, 6510, + 4849, 7695, 9259, 6510, + 4849, 7695, 10467, 6510, + 4849, 7821, 6627, 9050, + 4849, 7821, 8077, 9050, + 4849, 7821, 8745, 9050, + 4849, 7821, 10637, 7533, 9050, + 4849, 7821, 11677, 9050, + 4849, 7821, 12114, + 4849, 8077, 9050, + 4849, 8151, 12877, 9050, + 4849, 8153, 6409, 9050, + 4849, 8153, 8933, 6778, + 4849, 8153, 11195, 4926, + 4849, 8153, 12114, + 4849, 8521, 8191, 11793, 9610, + 4849, 8631, 10371, 9050, + 4849, 8717, 11195, 4926, + 4849, 8745, 9050, + 4849, 8745, 9051, 6121, 5935, 275, 2725, 8076, + 4849, 8745, 9051, 6121, 5935, 275, 8005, 8076, + 4849, 8745, 9051, 6121, 7412, + 4849, 8745, 9051, 6121, 10666, + 4849, 8745, 9051, 7121, 8076, + 4849, 8745, 9051, 7773, 8076, + 4849, 8745, 9051, 10982, + 4849, 8933, 6778, + 4849, 9074, + 4849, 10346, + 4849, 10493, 753, 10794, + 4849, 10523, 41, 9050, + 4849, 10637, 7533, 9050, + 4849, 10643, 7991, 10677, 760, + 4849, 10677, 761, 6121, 7412, + 4849, 10677, 827, 4876, + 4849, 11793, 9610, + 4849, 12114, + 4849, 12115, 7121, 4530, + 4849, 12115, 7773, 4530, + 4849, 12115, 10982, + 4849, 12877, 9050, + 4849, 13029, 9050, + 4877, 11228, + 4877, 12057, 2091, 11049, 2681, 5446, + 4877, 12057, 6121, 12139, 5403, 7939, 5446, + 4877, 12057, 6121, 12857, 5403, 7939, 5446, + 4883, 5758, + 4895, 3993, 4221, 4849, 8467, 429, 8153, 10676, + 4895, 4849, 5876, + 4895, 4849, 7443, 6434, + 4895, 4849, 7443, 8153, 6434, + 4895, 7443, 5876, + 4895, 10016, + 4895, 11097, 6434, + 4895, 11097, 6435, 4221, 760, + 4895, 11097, 8153, 6434, + 4895, 11097, 8153, 6435, 4221, 760, + 4895, 11097, 10531, 6434, + 4895, 11765, 6434, + 4895, 11765, 6435, 4221, 760, + 4895, 11765, 8153, 6434, + 4895, 11765, 8153, 6435, 4221, 760, + 4895, 11765, 10531, 6434, + 4923, 721, 8197, 5758, + 4923, 5758, + 4923, 6121, 8759, 721, 4923, 721, 8197, 5758, + 4923, 6121, 8759, 5758, + 4931, 4926, + 5003, 5758, + 5006, + 5017, 11098, + 5017, 12472, + 5050, + 5131, 5392, + 5385, 826, + 5385, 8037, 6505, 5830, + 5385, 8037, 6622, + 5385, 8037, 9898, + 5385, 8037, 13233, 9898, + 5385, 8762, + 5385, 10578, + 5395, 8008, + 5401, 11891, 4926, + 5409, 5758, + 5445, 5758, + 5445, 5759, 275, 4849, 4389, 8056, + 5445, 5759, 275, 7443, 4389, 8056, + 5445, 5759, 275, 10642, + 5445, 5759, 6121, 1045, 6490, + 5445, 5759, 6121, 6505, 10642, + 5445, 5759, 6121, 7593, 8057, 6376, + 5445, 5759, 6121, 7709, 6376, + 5445, 5759, 6121, 7709, 6490, + 5445, 5759, 6121, 11261, 2778, + 5445, 5759, 6121, 11449, 7909, 6376, + 5445, 5759, 6377, 8167, 5758, + 5545, 5758, + 5551, 275, 6741, 568, + 5551, 6376, + 5551, 6741, 568, + 5551, 7382, + 5551, 10374, + 5769, 6104, + 5781, 8306, + 5831, 429, 6656, + 5831, 721, 9964, + 5831, 8166, + 5831, 10374, + 5887, 6704, + 5909, 6689, 2170, + 5909, 6689, 2540, + 5909, 6689, 2778, + 5909, 6689, 4200, + 5909, 6689, 4214, + 5909, 6689, 5190, + 5909, 6689, 6260, + 5909, 6689, 6722, + 5909, 6689, 7508, + 5909, 6689, 7694, + 5909, 9971, 8775, 3702, + 5909, 10759, 29, 722, + 5909, 10759, 109, 7968, + 5909, 10759, 151, 988, + 5909, 10759, 151, 6562, + 5909, 10759, 209, 196, + 5909, 10759, 209, 1142, + 5909, 10759, 247, 1386, + 5909, 10759, 247, 8518, + 5909, 10759, 323, 1582, + 5909, 10759, 351, 4878, + 5909, 10759, 351, 6582, + 5909, 10759, 354, + 5909, 10759, 381, 364, + 5909, 10759, 413, 416, + 5909, 10759, 413, 2018, + 5909, 10759, 481, 2234, + 5909, 10759, 517, 2448, + 5909, 10759, 520, + 5909, 10759, 537, 536, + 5909, 10759, 537, 2580, + 5909, 10759, 537, 5614, + 5909, 10759, 537, 5630, + 5909, 10759, 569, 2650, + 5909, 10759, 569, 7344, + 5909, 10759, 633, 6098, + 5909, 10759, 661, 3022, + 5909, 10759, 661, 6212, + 5909, 10759, 891, 3880, + 5909, 10759, 891, 3908, + 5909, 10759, 891, 6566, + 5909, 10759, 891, 6576, + 5909, 10759, 1619, 4738, + 5909, 10759, 1619, 4750, + 5909, 10759, 1619, 7050, + 5909, 10759, 1619, 7052, + 5909, 10759, 1619, 9618, + 5909, 10759, 1859, 170, + 5909, 10759, 1859, 2684, + 5909, 10759, 1859, 2730, + 5909, 10759, 1859, 9938, + 5909, 10759, 1859, 10228, + 5909, 10759, 2039, 2040, + 5909, 10759, 2219, 5412, + 5909, 10759, 2219, 7366, + 5909, 10759, 2219, 9652, + 5909, 10759, 2685, 5912, + 5909, 10759, 2685, 7690, + 5909, 10759, 2685, 7696, + 5909, 10759, 2685, 8812, + 5909, 10759, 2685, 9592, + 5909, 10759, 2685, 11694, + 5909, 10759, 5637, 0, + 5909, 10759, 5637, 8, + 5909, 10759, 5637, 16, + 5909, 10759, 5637, 28, + 5909, 10759, 5637, 40, + 5909, 10759, 5637, 58, + 5909, 10759, 5637, 66, + 5909, 10759, 5637, 73, 9446, + 5909, 10759, 5637, 73, 10312, + 5909, 10759, 5637, 78, + 5909, 10759, 5637, 266, + 5909, 10759, 5637, 590, + 5909, 10759, 5637, 606, + 5909, 10759, 5637, 2804, + 5909, 10759, 8358, + 5909, 10759, 9290, + 5909, 10759, 9590, + 5909, 10759, 10314, + 5909, 10759, 10358, + 5909, 10759, 10684, + 5909, 10759, 11108, + 5909, 10759, 11152, + 5909, 10759, 11412, + 5909, 10759, 12072, + 5909, 10759, 12362, + 5927, 7608, + 5946, + 5972, + 6051, 8774, + 6081, 5017, 11098, + 6081, 5017, 12472, + 6105, 3992, + 6105, 6435, 10441, 10015, 4848, + 6105, 6435, 10441, 10015, 7442, + 6107, 1809, 4876, + 6107, 3992, + 6107, 4876, + 6107, 10388, + 6113, 8781, 6622, + 6129, 8330, + 6261, 7825, 7608, + 6261, 7825, 8330, + 6261, 7825, 10363, 7608, + 6261, 7825, 11698, + 6379, 6408, + 6379, 7908, + 6408, + 6409, 6121, 37, 8318, + 6409, 6121, 10666, + 6428, + 6435, 10441, 10959, 5919, 9131, 11096, + 6435, 10441, 10959, 5919, 9131, 11764, + 6435, 10441, 11765, 5919, 9131, 9810, + 6435, 10441, 11765, 5919, 9131, 10958, + 6505, 2048, + 6505, 2587, 6121, 5528, + 6505, 3949, 5842, + 6505, 4202, + 6505, 4215, 9601, 5830, + 6505, 4849, 10441, 6992, + 6505, 5013, 8406, + 6505, 5830, + 6505, 6081, 7593, 8744, + 6505, 6571, 4760, + 6505, 6571, 5404, + 6505, 6571, 5564, + 6505, 6571, 7410, + 6505, 6571, 7996, + 6505, 6571, 8368, + 6505, 6907, 5842, + 6505, 7085, 8056, + 6505, 7085, 8744, + 6505, 7121, 4849, 10642, + 6505, 7121, 7443, 10642, + 6505, 7443, 10441, 6992, + 6505, 7547, 7370, + 6505, 7593, 5830, + 6505, 7593, 8744, + 6505, 7593, 9158, + 6505, 7593, 9438, + 6505, 7611, 5842, + 6505, 7773, 4849, 10642, + 6505, 7773, 7443, 10642, + 6505, 8006, + 6505, 8037, 7821, 5830, + 6505, 8056, + 6505, 8057, 6121, 2779, 7821, 4112, + 6505, 8057, 6121, 4117, 6434, + 6505, 8057, 6121, 7821, 1045, 7442, + 6505, 8463, 7593, 8744, + 6505, 8463, 8744, + 6505, 8463, 9158, + 6505, 8463, 9438, + 6505, 8744, + 6505, 9158, + 6505, 9159, 5842, + 6505, 9159, 6121, 4117, 6434, + 6505, 9159, 7173, 7821, 46, + 6505, 9338, + 6505, 9438, + 6505, 9711, 4178, + 6505, 10143, 1860, + 6505, 10143, 4760, + 6505, 10194, + 6505, 10420, + 6505, 10502, + 6505, 10677, 9264, + 6505, 10677, 11202, + 6505, 11036, + 6505, 11097, 8022, + 6505, 11202, + 6505, 11354, + 6505, 11387, 11205, 8774, + 6505, 11649, 9264, + 6505, 11765, 6434, + 6505, 11765, 8022, + 6505, 11765, 10716, + 6505, 12383, 7593, 10642, + 6505, 12383, 10642, + 6505, 12931, 7593, 10642, + 6505, 12931, 10642, + 6505, 12967, 7593, 10642, + 6505, 12967, 9602, + 6505, 12967, 10642, + 6505, 12984, + 6505, 13067, 7593, 10642, + 6505, 13067, 9602, + 6505, 13067, 10420, + 6505, 13067, 10642, + 6509, 8774, + 6516, + 6531, 7803, 5759, 16, + 6531, 7803, 5759, 40, + 6531, 8405, 0, + 6531, 8405, 16, + 6531, 8405, 40, + 6531, 8405, 100, + 6531, 8405, 138, + 6531, 8405, 216, + 6531, 8405, 236, + 6531, 8405, 306, + 6531, 8405, 332, + 6531, 8405, 364, + 6531, 8405, 392, + 6531, 8405, 462, + 6531, 8405, 510, + 6531, 8405, 524, + 6531, 8405, 556, + 6531, 8405, 622, + 6531, 8405, 652, + 6531, 8405, 2030, + 6542, + 6543, 11061, 7382, + 6546, + 6560, + 6569, 4926, + 6597, 8677, 8774, + 6603, 600, + 6606, + 6610, + 6611, 5758, + 6611, 8166, + 6614, + 6616, + 6623, 429, 10308, + 6623, 429, 11068, + 6627, 9051, 10982, + 6627, 9437, 444, + 6627, 9437, 720, + 6643, 8774, + 6675, 6741, 568, + 6689, 2170, + 6689, 2171, 4223, 5836, + 6689, 2540, + 6689, 2541, 4223, 5836, + 6689, 2778, + 6689, 2779, 4223, 5836, + 6689, 4200, + 6689, 4201, 4223, 5836, + 6689, 4214, + 6689, 4215, 4223, 5836, + 6689, 5190, + 6689, 5191, 4223, 5836, + 6689, 6260, + 6689, 6722, + 6689, 6723, 4223, 5836, + 6689, 7508, + 6689, 7509, 4223, 5836, + 6689, 7694, + 6689, 7695, 4223, 5836, + 6695, 4926, + 6716, + 6717, 8272, + 6723, 8737, 9898, + 6723, 9601, 6505, 5830, + 6723, 9601, 10433, 5830, + 6723, 9601, 12141, 6505, 5830, + 6723, 10425, 10385, 6505, 10194, + 6723, 13233, 11187, 9898, + 6725, 8774, + 6731, 2510, + 6731, 2511, 6121, 4849, 6435, 6376, + 6731, 2511, 6121, 7443, 6435, 6376, + 6731, 2511, 6121, 7593, 8057, 6376, + 6731, 2511, 6121, 9546, + 6735, 8774, + 6741, 569, 115, 11472, + 6741, 569, 445, 10452, + 6741, 569, 445, 10574, + 6741, 569, 445, 11098, + 6741, 569, 445, 12472, + 6741, 721, 10411, 568, + 6745, 569, 2681, 4848, + 6745, 569, 2681, 7442, + 6763, 9956, + 6771, 8774, + 6791, 9615, 5012, + 6812, + 6857, 8774, + 6875, 7908, + 6879, 477, 8774, + 6879, 727, 8798, + 6879, 1583, 8774, + 6879, 2171, 4389, 5758, + 6879, 2171, 4389, 5759, 10707, 4212, + 6879, 2217, 8774, + 6879, 2413, 6121, 8759, 8774, + 6879, 2413, 8774, + 6879, 2779, 7307, 5758, + 6879, 2779, 8819, 5758, + 6879, 3775, 8774, + 6879, 4201, 7307, 5758, + 6879, 4215, 7307, 5758, + 6879, 5375, 5758, + 6879, 5388, + 6879, 6197, 5758, + 6879, 6261, 5758, + 6879, 6654, + 6879, 6655, 721, 5388, + 6879, 6655, 721, 7782, + 6879, 6655, 721, 12120, + 6879, 7023, 8774, + 6879, 7111, 5758, + 6879, 7121, 9513, 5758, + 6879, 7398, + 6879, 7399, 721, 5388, + 6879, 7399, 721, 7782, + 6879, 7399, 721, 12120, + 6879, 7593, 8151, 8427, 7569, 8774, + 6879, 7593, 8405, 384, + 6879, 7593, 8405, 416, + 6879, 7593, 8405, 476, + 6879, 7593, 8405, 644, + 6879, 7593, 8405, 888, + 6879, 7593, 8405, 1128, + 6879, 7593, 8405, 1129, 6121, 5388, + 6879, 7593, 8405, 1129, 6121, 5389, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 6654, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 5389, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 7783, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 12120, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 12121, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 6655, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 7398, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 5389, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 7783, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 12120, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 12121, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 7399, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 7724, + 6879, 7593, 8405, 1129, 6121, 7782, + 6879, 7593, 8405, 1129, 6121, 7783, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 12120, + 6879, 7593, 8405, 1129, 6121, 12121, 721, 13036, + 6879, 7593, 8405, 1129, 6121, 13036, + 6879, 7593, 8405, 2216, + 6879, 7593, 8405, 2250, + 6879, 7593, 8405, 2412, + 6879, 7593, 8405, 2413, 6121, 6654, + 6879, 7593, 8405, 2413, 6121, 7398, + 6879, 7593, 8405, 2490, + 6879, 7593, 8405, 2522, + 6879, 7593, 8405, 2658, + 6879, 7593, 8405, 3774, + 6879, 7593, 8405, 4408, + 6879, 7593, 8405, 4614, + 6879, 7593, 8405, 4615, 6121, 5388, + 6879, 7593, 8405, 4615, 6121, 6654, + 6879, 7593, 8405, 4615, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 4615, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 4615, 6121, 6655, 721, 12120, + 6879, 7593, 8405, 4615, 6121, 7398, + 6879, 7593, 8405, 4615, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 4615, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 4615, 6121, 7399, 721, 12120, + 6879, 7593, 8405, 4615, 6121, 7724, + 6879, 7593, 8405, 4615, 6121, 7782, + 6879, 7593, 8405, 4615, 6121, 8432, + 6879, 7593, 8405, 4615, 6121, 8924, + 6879, 7593, 8405, 4615, 6121, 10808, + 6879, 7593, 8405, 4615, 6121, 10809, 721, 5388, + 6879, 7593, 8405, 4615, 6121, 10809, 721, 7724, + 6879, 7593, 8405, 4615, 6121, 10809, 721, 7782, + 6879, 7593, 8405, 4615, 6121, 10809, 721, 12120, + 6879, 7593, 8405, 4615, 6121, 12120, + 6879, 7593, 8405, 6262, + 6879, 7593, 8405, 6406, + 6879, 7593, 8405, 6407, 6121, 5388, + 6879, 7593, 8405, 6407, 6121, 5389, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 6654, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 5389, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 7783, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 12120, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 12121, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 6655, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 7398, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 5389, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 7783, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 12120, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 12121, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 7399, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 7724, + 6879, 7593, 8405, 6407, 6121, 7782, + 6879, 7593, 8405, 6407, 6121, 7783, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 8432, + 6879, 7593, 8405, 6407, 6121, 8924, + 6879, 7593, 8405, 6407, 6121, 12120, + 6879, 7593, 8405, 6407, 6121, 12121, 721, 13036, + 6879, 7593, 8405, 6407, 6121, 13036, + 6879, 7593, 8405, 6674, + 6879, 7593, 8405, 6789, 7568, + 6879, 7593, 8405, 6824, + 6879, 7593, 8405, 7022, + 6879, 7593, 8405, 7062, + 6879, 7593, 8405, 7080, + 6879, 7593, 8405, 7316, + 6879, 7593, 8405, 7317, 6121, 5388, + 6879, 7593, 8405, 7317, 6121, 5389, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 6654, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 5389, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 7783, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 12120, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 12121, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 6655, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 7398, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 5389, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 7783, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 12120, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 12121, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 7399, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 7724, + 6879, 7593, 8405, 7317, 6121, 7782, + 6879, 7593, 8405, 7317, 6121, 7783, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 12120, + 6879, 7593, 8405, 7317, 6121, 12121, 721, 13036, + 6879, 7593, 8405, 7317, 6121, 13036, + 6879, 7593, 8405, 7484, + 6879, 7593, 8405, 7568, + 6879, 7593, 8405, 7682, + 6879, 7593, 8405, 8748, + 6879, 7593, 8405, 9007, 7062, + 6879, 7593, 8405, 9007, 7484, + 6879, 7593, 8405, 9162, + 6879, 7593, 8405, 9270, + 6879, 7593, 8405, 9271, 6121, 5388, + 6879, 7593, 8405, 9271, 6121, 6654, + 6879, 7593, 8405, 9271, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 9271, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 9271, 6121, 7398, + 6879, 7593, 8405, 9271, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 9271, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 9271, 6121, 7724, + 6879, 7593, 8405, 9271, 6121, 7782, + 6879, 7593, 8405, 9530, + 6879, 7593, 8405, 9531, 6121, 5388, + 6879, 7593, 8405, 9531, 6121, 6654, + 6879, 7593, 8405, 9531, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 9531, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 9531, 6121, 7398, + 6879, 7593, 8405, 9531, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 9531, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 9531, 6121, 7724, + 6879, 7593, 8405, 9531, 6121, 7782, + 6879, 7593, 8405, 9808, + 6879, 7593, 8405, 9809, 6121, 5388, + 6879, 7593, 8405, 9809, 6121, 6654, + 6879, 7593, 8405, 9809, 6121, 6655, 721, 5388, + 6879, 7593, 8405, 9809, 6121, 6655, 721, 7782, + 6879, 7593, 8405, 9809, 6121, 6655, 721, 12120, + 6879, 7593, 8405, 9809, 6121, 7398, + 6879, 7593, 8405, 9809, 6121, 7399, 721, 5388, + 6879, 7593, 8405, 9809, 6121, 7399, 721, 7782, + 6879, 7593, 8405, 9809, 6121, 7399, 721, 12120, + 6879, 7593, 8405, 9809, 6121, 7724, + 6879, 7593, 8405, 9809, 6121, 7782, + 6879, 7593, 8405, 9809, 6121, 8432, + 6879, 7593, 8405, 9809, 6121, 8924, + 6879, 7593, 8405, 9809, 6121, 10808, + 6879, 7593, 8405, 9809, 6121, 10809, 721, 5388, + 6879, 7593, 8405, 9809, 6121, 10809, 721, 7724, + 6879, 7593, 8405, 9809, 6121, 10809, 721, 7782, + 6879, 7593, 8405, 9809, 6121, 10809, 721, 12120, + 6879, 7593, 8405, 9809, 6121, 12120, + 6879, 7593, 8405, 11709, 9162, + 6879, 7593, 10489, 8151, 8427, 7569, 8774, + 6879, 7593, 10489, 8427, 7569, 8774, + 6879, 7683, 8774, + 6879, 7695, 7307, 5758, + 6879, 7695, 10467, 5758, + 6879, 7724, + 6879, 7782, + 6879, 7801, 10365, 10586, + 6879, 7801, 10365, 10588, + 6879, 7801, 10365, 10590, + 6879, 7801, 10365, 10592, + 6879, 7801, 10365, 10594, + 6879, 7801, 10365, 10596, + 6879, 7801, 10365, 10598, + 6879, 7801, 10365, 10600, + 6879, 7801, 10365, 10602, + 6879, 7801, 10365, 11270, + 6879, 7801, 10365, 11272, + 6879, 7801, 10365, 11274, + 6879, 7801, 10365, 11276, + 6879, 7801, 10365, 11278, + 6879, 7801, 10365, 11280, + 6879, 7801, 10365, 11282, + 6879, 7801, 10365, 11284, + 6879, 7801, 10365, 11286, + 6879, 7801, 10365, 11288, + 6879, 7801, 10365, 11290, + 6879, 7801, 10365, 11292, + 6879, 7801, 10365, 11294, + 6879, 7801, 10365, 11296, + 6879, 7801, 10365, 11298, + 6879, 7801, 10365, 11334, + 6879, 7801, 10365, 11336, + 6879, 7801, 10365, 11338, + 6879, 7801, 10365, 11340, + 6879, 7801, 10365, 11342, + 6879, 7941, 5758, + 6879, 7949, 5758, + 6879, 8269, 5758, + 6879, 8405, 3086, + 6879, 8405, 7062, + 6879, 8405, 7484, + 6879, 8405, 7593, 9063, 476, + 6879, 8405, 7593, 9063, 2250, + 6879, 8405, 7593, 9063, 2412, + 6879, 8405, 7593, 9063, 6824, + 6879, 8405, 7593, 9063, 7080, + 6879, 8405, 8748, + 6879, 8405, 9007, 7062, + 6879, 8405, 9162, + 6879, 8427, 7569, 8774, + 6879, 8427, 9271, 8774, + 6879, 8555, 5758, + 6879, 8787, 5758, + 6879, 8941, 5758, + 6879, 9063, 1583, 8774, + 6879, 9063, 7683, 8774, + 6879, 9063, 8151, 8427, 7569, 8774, + 6879, 9063, 8405, 384, + 6879, 9063, 8405, 416, + 6879, 9063, 8405, 476, + 6879, 9063, 8405, 644, + 6879, 9063, 8405, 888, + 6879, 9063, 8405, 1128, + 6879, 9063, 8405, 1129, 6121, 5388, + 6879, 9063, 8405, 1129, 6121, 6654, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 5389, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 7783, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 12120, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 12121, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 6655, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 7398, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 5389, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 7783, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 12120, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 12121, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 7399, 721, 13064, + 6879, 9063, 8405, 1129, 6121, 7724, + 6879, 9063, 8405, 1129, 6121, 7782, + 6879, 9063, 8405, 1129, 6121, 13064, + 6879, 9063, 8405, 2216, + 6879, 9063, 8405, 2250, + 6879, 9063, 8405, 2412, + 6879, 9063, 8405, 2413, 6121, 6654, + 6879, 9063, 8405, 2490, + 6879, 9063, 8405, 2522, + 6879, 9063, 8405, 2658, + 6879, 9063, 8405, 3774, + 6879, 9063, 8405, 4408, + 6879, 9063, 8405, 4614, + 6879, 9063, 8405, 4615, 6121, 5388, + 6879, 9063, 8405, 4615, 6121, 6654, + 6879, 9063, 8405, 4615, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 4615, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 4615, 6121, 6655, 721, 12120, + 6879, 9063, 8405, 4615, 6121, 7398, + 6879, 9063, 8405, 4615, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 4615, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 4615, 6121, 7399, 721, 12120, + 6879, 9063, 8405, 4615, 6121, 7724, + 6879, 9063, 8405, 4615, 6121, 7782, + 6879, 9063, 8405, 4615, 6121, 8432, + 6879, 9063, 8405, 4615, 6121, 8924, + 6879, 9063, 8405, 4615, 6121, 10808, + 6879, 9063, 8405, 6262, + 6879, 9063, 8405, 6406, + 6879, 9063, 8405, 6407, 6121, 5388, + 6879, 9063, 8405, 6407, 6121, 6654, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 5389, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 7783, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 12120, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 12121, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 6655, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 7398, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 5389, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 7783, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 12120, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 12121, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 7399, 721, 13064, + 6879, 9063, 8405, 6407, 6121, 7724, + 6879, 9063, 8405, 6407, 6121, 7782, + 6879, 9063, 8405, 6407, 6121, 8432, + 6879, 9063, 8405, 6407, 6121, 8924, + 6879, 9063, 8405, 6407, 6121, 13064, + 6879, 9063, 8405, 6674, + 6879, 9063, 8405, 6824, + 6879, 9063, 8405, 7022, + 6879, 9063, 8405, 7080, + 6879, 9063, 8405, 7316, + 6879, 9063, 8405, 7317, 6121, 5388, + 6879, 9063, 8405, 7317, 6121, 6654, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 5389, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 7783, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 12120, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 12121, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 6655, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 7398, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 5389, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 7783, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 12120, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 12121, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 7399, 721, 13064, + 6879, 9063, 8405, 7317, 6121, 7724, + 6879, 9063, 8405, 7317, 6121, 7782, + 6879, 9063, 8405, 7317, 6121, 13064, + 6879, 9063, 8405, 7568, + 6879, 9063, 8405, 7682, + 6879, 9063, 8405, 9007, 7484, + 6879, 9063, 8405, 9270, + 6879, 9063, 8405, 9271, 6121, 5388, + 6879, 9063, 8405, 9271, 6121, 6654, + 6879, 9063, 8405, 9271, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 9271, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 9271, 6121, 7398, + 6879, 9063, 8405, 9271, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 9271, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 9271, 6121, 7724, + 6879, 9063, 8405, 9271, 6121, 7782, + 6879, 9063, 8405, 9530, + 6879, 9063, 8405, 9531, 6121, 5388, + 6879, 9063, 8405, 9531, 6121, 6654, + 6879, 9063, 8405, 9531, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 9531, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 9531, 6121, 7398, + 6879, 9063, 8405, 9531, 6121, 7399, 721, 5388, + 6879, 9063, 8405, 9531, 6121, 7399, 721, 7782, + 6879, 9063, 8405, 9531, 6121, 7724, + 6879, 9063, 8405, 9531, 6121, 7782, + 6879, 9063, 8405, 9808, + 6879, 9063, 8405, 9809, 6121, 5388, + 6879, 9063, 8405, 9809, 6121, 6654, + 6879, 9063, 8405, 9809, 6121, 6655, 721, 5388, + 6879, 9063, 8405, 9809, 6121, 6655, 721, 7782, + 6879, 9063, 8405, 9809, 6121, 6655, 721, 12120, + 6879, 9063, 8405, 9809, 6121, 7724, + 6879, 9063, 8405, 9809, 6121, 7782, + 6879, 9063, 8405, 9809, 6121, 8432, + 6879, 9063, 8405, 9809, 6121, 8924, + 6879, 9063, 8405, 9809, 6121, 10808, + 6879, 9063, 8405, 11709, 9162, + 6879, 9063, 8427, 7569, 8774, + 6879, 9063, 10489, 8151, 8427, 7569, 8774, + 6879, 9063, 10489, 8427, 7569, 8774, + 6879, 9245, 5758, + 6879, 9412, + 6879, 9419, 3717, 5758, + 6879, 9483, 8396, + 6879, 9513, 5758, + 6879, 9809, 6121, 4531, 8774, + 6879, 9809, 6121, 6379, 721, 4531, 8774, + 6879, 9809, 6121, 10805, 721, 4531, 8774, + 6879, 10331, 5758, + 6879, 10469, 4926, + 6879, 10489, 8427, 9271, 8774, + 6879, 10651, 3717, 5758, + 6879, 10809, 721, 5388, + 6879, 10809, 721, 7782, + 6879, 10809, 721, 12120, + 6879, 10809, 7724, + 6879, 11261, 7593, 8405, 888, + 6879, 11261, 7593, 8405, 2216, + 6879, 11261, 7593, 8405, 2412, + 6879, 11261, 7593, 8405, 3774, + 6879, 11261, 7593, 8405, 6824, + 6879, 11405, 6443, 2171, 4388, + 6879, 11405, 6443, 2171, 9244, + 6879, 11405, 6443, 2171, 9345, 9736, + 6879, 11405, 6443, 2171, 9345, 9764, + 6879, 11405, 6443, 2171, 9614, + 6879, 11405, 6443, 2171, 10625, 9736, + 6879, 11405, 6443, 2171, 10625, 9764, + 6879, 11405, 6443, 2671, 5010, + 6879, 11405, 6443, 2671, 9736, + 6879, 11405, 6443, 2671, 9764, + 6879, 11405, 6443, 2671, 10625, 9736, + 6879, 11405, 6443, 4200, + 6879, 11405, 6443, 4201, 9344, + 6879, 11405, 6443, 4201, 9345, 9736, + 6879, 11405, 6443, 4201, 9345, 9764, + 6879, 11405, 6443, 4201, 9736, + 6879, 11405, 6443, 4201, 9764, + 6879, 11405, 6443, 4201, 10624, + 6879, 11405, 6443, 4201, 10625, 9764, + 6879, 11405, 6443, 6784, + 6879, 11405, 6443, 6785, 9736, + 6879, 11405, 6443, 6785, 9764, + 6879, 11405, 6443, 6785, 10624, + 6879, 11405, 6443, 6785, 10625, 9736, + 6879, 11405, 8505, 4201, 9344, + 6879, 11405, 9153, 4201, 5010, + 6879, 11405, 9337, 2171, 10436, + 6879, 11405, 9975, 2779, 10138, + 6879, 11405, 10549, 6785, 5010, + 6879, 11405, 10621, 2170, + 6879, 11405, 10621, 2171, 9344, + 6879, 11405, 10621, 2171, 10624, + 6879, 11405, 10621, 2670, + 6879, 11405, 10621, 2778, + 6879, 11405, 10621, 4201, 9344, + 6879, 11405, 10621, 4201, 10624, + 6879, 11405, 10621, 6784, + 6879, 11405, 10621, 7695, 9344, + 6879, 11405, 10621, 8820, + 6879, 11405, 10755, 4201, 9344, + 6879, 11405, 11117, 2670, + 6879, 11405, 11617, 2778, + 6879, 11405, 11617, 2779, 10138, + 6879, 11405, 11617, 4201, 9344, + 6879, 11405, 11645, 2170, + 6879, 11405, 11645, 2670, + 6879, 11405, 11645, 6784, + 6879, 11405, 11865, 2670, + 6879, 11405, 11865, 2671, 10707, 4212, + 6879, 11405, 11865, 4200, + 6879, 11405, 11865, 4201, 9344, + 6879, 11405, 11865, 6784, + 6879, 11405, 11865, 6785, 10707, 4212, + 6879, 12120, + 6879, 12489, 10365, 10586, + 6879, 12489, 10365, 10588, + 6879, 12489, 10365, 10592, + 6879, 12489, 10365, 10594, + 6879, 12489, 10365, 10598, + 6879, 12489, 10365, 10600, + 6879, 12489, 10365, 11272, + 6879, 12489, 10365, 11274, + 6879, 12489, 10365, 11276, + 6879, 12489, 10365, 11278, + 6879, 12489, 10365, 11284, + 6879, 12489, 10365, 11286, + 6879, 12489, 10365, 11288, + 6879, 12489, 10365, 11296, + 6879, 12489, 10365, 11298, + 6879, 12489, 10365, 11300, + 6879, 12489, 10365, 11302, + 6879, 12489, 10365, 11304, + 6879, 12489, 10365, 11306, + 6879, 12489, 10365, 11308, + 6879, 12489, 10365, 11310, + 6879, 12489, 10365, 11312, + 6879, 12489, 10365, 11314, + 6879, 12489, 10365, 11316, + 6879, 12489, 10365, 11318, + 6879, 12489, 10365, 11320, + 6879, 12489, 10365, 11322, + 6879, 12489, 10365, 11324, + 6879, 12489, 10365, 11326, + 6879, 12489, 10365, 11328, + 6879, 12489, 10365, 11330, + 6879, 12489, 10365, 11332, + 6879, 12489, 10365, 11334, + 6879, 12489, 10365, 11336, + 6879, 12489, 10365, 11338, + 6879, 12489, 10365, 11340, + 6879, 12489, 10365, 11342, + 6879, 13036, + 6879, 13064, + 6909, 4215, 13047, 9898, + 6909, 5385, 8037, 6622, + 6909, 6505, 6906, + 6909, 6505, 8083, 9811, 721, 11765, 6434, + 6909, 6505, 8083, 10959, 721, 11765, 6434, + 6909, 6569, 4926, + 6909, 6723, 9601, 12141, 6505, 5830, + 6909, 6723, 13233, 11187, 9898, + 6909, 6879, 6622, + 6909, 6907, 12017, 4927, 10380, + 6909, 7121, 13069, 7821, 11765, 6434, + 6909, 7271, 4153, 6434, + 6909, 7607, 4153, 6434, + 6909, 7773, 13069, 7821, 11765, 6434, + 6909, 7971, 46, + 6909, 8097, 13235, 11765, 6434, + 6909, 8153, 6617, 11195, 4927, 10380, + 6909, 8153, 8869, 6617, 11195, 4927, 10380, + 6909, 8717, 6617, 11195, 4927, 10380, + 6909, 8717, 8869, 6617, 11195, 4927, 10380, + 6909, 9085, 11242, + 6909, 9722, + 6909, 9898, + 6909, 10385, 6505, 5830, + 6909, 10677, 760, + 6909, 11765, 6434, + 6909, 12017, 4927, 10380, + 6909, 12387, 11765, 6434, + 6909, 12539, 11765, 6434, + 6909, 12895, 11765, 6434, + 6909, 12967, 6409, 9051, 10380, + 6909, 12967, 6409, 11195, 4927, 10380, + 6909, 13061, 46, + 6909, 13067, 6409, 9051, 10380, + 6909, 13067, 6409, 11195, 4927, 10380, + 6909, 13191, 7271, 4153, 6434, + 6909, 13191, 7607, 4153, 6434, + 6909, 13191, 11765, 6434, + 6909, 13199, 6505, 11765, 6434, + 6909, 13233, 9898, + 6909, 13233, 10433, 9898, + 6909, 13235, 11765, 6434, + 6909, 13351, 11765, 6434, + 6954, + 6989, 428, + 6989, 429, 445, 12903, 6741, 568, + 7031, 341, 5759, 940, + 7031, 341, 5759, 5740, + 7031, 341, 5965, 6540, + 7031, 341, 5965, 6541, 8596, + 7031, 341, 5965, 8596, + 7031, 341, 6689, 2170, + 7031, 341, 6689, 2540, + 7031, 341, 6689, 2778, + 7031, 341, 6689, 4200, + 7031, 341, 6689, 4214, + 7031, 341, 6689, 5190, + 7031, 341, 6689, 6260, + 7031, 341, 6689, 6722, + 7031, 341, 6689, 7508, + 7031, 341, 6689, 7694, + 7031, 341, 7803, 8, + 7031, 341, 7803, 28, + 7031, 341, 7803, 40, + 7031, 341, 7803, 162, + 7031, 341, 7803, 590, + 7031, 341, 8405, 0, + 7031, 341, 8405, 16, + 7031, 341, 8405, 100, + 7031, 341, 8405, 116, + 7031, 341, 8405, 138, + 7031, 341, 8405, 216, + 7031, 341, 8405, 236, + 7031, 341, 8405, 306, + 7031, 341, 8405, 332, + 7031, 341, 8405, 364, + 7031, 341, 8405, 392, + 7031, 341, 8405, 426, + 7031, 341, 8405, 440, + 7031, 341, 8405, 462, + 7031, 341, 8405, 510, + 7031, 341, 8405, 524, + 7031, 341, 8405, 556, + 7031, 341, 8405, 610, + 7031, 341, 8405, 622, + 7031, 341, 8405, 652, + 7031, 341, 8405, 670, + 7031, 341, 8405, 1434, + 7031, 341, 8405, 1612, + 7031, 341, 8405, 2030, + 7031, 341, 8405, 2126, + 7031, 341, 8405, 2212, + 7031, 341, 8405, 2516, + 7031, 341, 8405, 2678, + 7049, 5759, 1763, 2722, + 7049, 5759, 4740, + 7049, 5759, 6388, + 7049, 5759, 6608, + 7049, 5759, 7450, + 7049, 5759, 7976, + 7049, 5759, 7992, + 7049, 5759, 8025, 2227, 4794, + 7049, 5759, 8583, 5014, + 7049, 5759, 8663, 8666, + 7049, 5759, 8918, + 7049, 5759, 9382, + 7049, 5759, 9408, + 7049, 5759, 9506, + 7049, 5759, 9624, + 7049, 5759, 9794, + 7049, 5759, 9902, + 7049, 5759, 11438, + 7049, 5759, 11440, + 7049, 5759, 12088, + 7049, 5759, 12366, + 7049, 5759, 12906, + 7049, 5759, 13038, + 7049, 6689, 2170, + 7049, 6689, 2540, + 7049, 6689, 2778, + 7049, 6689, 4200, + 7049, 6689, 4214, + 7049, 6689, 5190, + 7049, 6689, 6260, + 7049, 6689, 6722, + 7049, 6689, 7508, + 7049, 6689, 7694, + 7049, 7803, 5759, 8, + 7049, 7803, 5759, 16, + 7049, 7803, 5759, 40, + 7049, 7803, 5759, 48, + 7049, 7803, 5759, 58, + 7049, 7803, 5759, 66, + 7049, 7803, 5759, 72, + 7049, 7803, 5759, 92, + 7049, 7803, 5759, 258, + 7049, 7803, 5759, 266, + 7049, 7803, 5759, 426, + 7049, 7803, 5759, 440, + 7049, 7803, 5759, 582, + 7049, 7803, 5759, 606, + 7049, 7803, 5759, 652, + 7049, 7803, 5759, 668, + 7049, 7803, 10259, 58, + 7049, 7803, 10259, 86, + 7049, 8405, 100, + 7049, 8405, 116, + 7049, 8405, 130, + 7049, 8405, 138, + 7049, 8405, 150, + 7049, 8405, 236, + 7049, 8405, 306, + 7049, 8405, 322, + 7049, 8405, 332, + 7049, 8405, 350, + 7049, 8405, 380, + 7049, 8405, 412, + 7049, 8405, 480, + 7049, 8405, 496, + 7049, 8405, 516, + 7049, 8405, 524, + 7049, 8405, 556, + 7049, 8405, 568, + 7049, 8405, 616, + 7049, 8405, 660, + 7049, 8405, 884, + 7049, 8405, 890, + 7049, 8405, 1612, + 7049, 8405, 1618, + 7049, 8405, 2038, + 7049, 8405, 2080, + 7049, 8405, 2134, + 7049, 8405, 2212, + 7049, 8405, 2218, + 7049, 8405, 2516, + 7049, 8405, 2572, + 7049, 8405, 2678, + 7049, 8405, 2684, + 7049, 8405, 5994, + 7049, 8405, 6000, + 7049, 8775, 783, 2426, + 7049, 8775, 783, 4768, + 7049, 8775, 965, 2426, + 7049, 8775, 965, 4768, + 7049, 8775, 1763, 6441, 782, + 7049, 8775, 1763, 6441, 2226, + 7049, 8775, 1763, 6441, 2552, + 7049, 8775, 1763, 6441, 3814, + 7049, 8775, 1763, 6441, 5026, + 7049, 8775, 1763, 6441, 5450, + 7049, 8775, 1763, 6441, 10446, + 7049, 8775, 1763, 6441, 10448, + 7049, 8775, 1763, 6441, 11178, + 7049, 8775, 1763, 6441, 11180, + 7049, 8775, 2227, 2426, + 7049, 8775, 2227, 4768, + 7049, 8775, 3815, 2426, + 7049, 8775, 3815, 4768, + 7049, 8775, 5027, 2426, + 7049, 8775, 5027, 4768, + 7049, 8775, 5451, 2426, + 7049, 8775, 5451, 4768, + 7049, 8775, 9143, 2426, + 7049, 8775, 9143, 4768, + 7049, 8775, 9145, 2426, + 7049, 8775, 9145, 4768, + 7049, 8775, 9981, 2426, + 7049, 8775, 9981, 4768, + 7049, 8775, 9983, 2426, + 7049, 8775, 9983, 4768, + 7049, 8775, 9985, 2426, + 7049, 8775, 9985, 4768, + 7049, 8775, 10447, 2426, + 7049, 8775, 10447, 4768, + 7049, 8775, 10449, 2426, + 7049, 8775, 10449, 4768, + 7049, 8775, 11179, 2426, + 7049, 8775, 11179, 4768, + 7049, 8775, 11181, 2426, + 7049, 8775, 11181, 4768, + 7049, 8775, 11380, + 7049, 8775, 11716, + 7049, 9971, 8775, 5548, + 7049, 12053, 7803, 360, + 7049, 12053, 7803, 498, + 7049, 12053, 7803, 500, + 7049, 12053, 7803, 506, + 7049, 12053, 7803, 522, + 7049, 12053, 7803, 1850, + 7049, 12053, 7803, 2282, + 7049, 12053, 7803, 2286, + 7049, 12053, 7803, 2288, + 7049, 12053, 7803, 2292, + 7049, 12053, 7803, 2308, + 7049, 12053, 7803, 2321, 6031, 2170, + 7049, 12053, 7803, 2321, 6031, 2778, + 7049, 12053, 7803, 2334, + 7049, 12053, 7803, 2344, + 7049, 12053, 7803, 2478, + 7049, 12053, 7803, 5506, + 7085, 601, 5876, + 7085, 4117, 5876, + 7085, 4849, 10643, 10374, + 7085, 8056, + 7085, 8849, 10677, 761, 10374, + 7089, 6622, + 7089, 7593, 8405, 0, + 7089, 7593, 8405, 1, 6121, 1045, 6376, + 7089, 7593, 8405, 1, 6121, 1045, 6377, 721, 8432, + 7089, 7593, 8405, 1, 6121, 1045, 6490, + 7089, 7593, 8405, 1, 6121, 4531, 6376, + 7089, 7593, 8405, 1, 6121, 5551, 6376, + 7089, 7593, 8405, 1, 6121, 5551, 6377, 721, 6378, + 7089, 7593, 8405, 1, 6121, 5551, 6490, + 7089, 7593, 8405, 1, 6121, 6378, + 7089, 7593, 8405, 1, 6121, 6516, + 7089, 7593, 8405, 1, 6121, 6517, 721, 1045, 6490, + 7089, 7593, 8405, 1, 6121, 6517, 721, 4531, 6376, + 7089, 7593, 8405, 1, 6121, 6517, 721, 6378, + 7089, 7593, 8405, 1, 6121, 6517, 721, 6874, + 7089, 7593, 8405, 1, 6121, 6517, 721, 7708, + 7089, 7593, 8405, 1, 6121, 6546, + 7089, 7593, 8405, 1, 6121, 6874, + 7089, 7593, 8405, 1, 6121, 7443, 4389, 5550, + 7089, 7593, 8405, 1, 6121, 7708, + 7089, 7593, 8405, 1, 6121, 8153, 6874, + 7089, 7593, 8405, 1, 6121, 8432, + 7089, 7593, 8405, 1, 6121, 8534, + 7089, 7593, 8405, 1, 6121, 8758, + 7089, 7593, 8405, 1, 6121, 10267, 6516, + 7089, 7593, 8405, 1, 6121, 10804, + 7089, 7593, 8405, 1, 6121, 10805, 721, 8432, + 7089, 7593, 8405, 1, 6121, 11215, 4530, + 7089, 7593, 8405, 1, 6121, 11448, + 7089, 7593, 8405, 1, 6121, 11449, 721, 1045, 6490, + 7089, 7593, 8405, 1, 6121, 11449, 721, 4531, 6376, + 7089, 7593, 8405, 1, 6121, 11449, 721, 6378, + 7089, 7593, 8405, 1, 6121, 11449, 721, 6874, + 7089, 7593, 8405, 1, 6121, 11449, 721, 7708, + 7089, 7593, 8405, 2, + 7089, 7593, 8405, 3, 6121, 1045, 6376, + 7089, 7593, 8405, 3, 6121, 1045, 6490, + 7089, 7593, 8405, 3, 6121, 4530, + 7089, 7593, 8405, 3, 6121, 4877, 6490, + 7089, 7593, 8405, 3, 6121, 8473, 7708, + 7089, 7593, 8405, 3, 6121, 8758, + 7089, 7593, 8405, 3, 6121, 8846, + 7089, 7593, 8405, 3, 6121, 9553, 4530, + 7089, 7593, 8405, 4, + 7089, 7593, 8405, 5, 6121, 1045, 6376, + 7089, 7593, 8405, 5, 6121, 3966, + 7089, 7593, 8405, 5, 6121, 4530, + 7089, 7593, 8405, 5, 6121, 6378, + 7089, 7593, 8405, 5, 6121, 6546, + 7089, 7593, 8405, 5, 6121, 8758, + 7089, 7593, 8405, 5, 6121, 9072, + 7089, 7593, 8405, 5, 6121, 9073, 721, 6378, + 7089, 7593, 8405, 5, 6121, 11448, + 7089, 7593, 8405, 6, + 7089, 7593, 8405, 7, 6121, 1045, 6376, + 7089, 7593, 8405, 7, 6121, 1045, 6490, + 7089, 7593, 8405, 7, 6121, 3966, + 7089, 7593, 8405, 7, 6121, 4530, + 7089, 7593, 8405, 7, 6121, 4531, 721, 5878, + 7089, 7593, 8405, 7, 6121, 4877, 6490, + 7089, 7593, 8405, 7, 6121, 5878, + 7089, 7593, 8405, 7, 6121, 6546, + 7089, 7593, 8405, 7, 6121, 8473, 7708, + 7089, 7593, 8405, 7, 6121, 8758, + 7089, 7593, 8405, 7, 6121, 8846, + 7089, 7593, 8405, 7, 6121, 9072, + 7089, 7593, 8405, 7, 6121, 9553, 4530, + 7089, 7593, 8405, 7, 6121, 11449, 6490, + 7089, 7593, 8405, 8, + 7089, 7593, 8405, 9, 6121, 1045, 6376, + 7089, 7593, 8405, 9, 6121, 1045, 6490, + 7089, 7593, 8405, 9, 6121, 4531, 6376, + 7089, 7593, 8405, 9, 6121, 6378, + 7089, 7593, 8405, 9, 6121, 6516, + 7089, 7593, 8405, 9, 6121, 6546, + 7089, 7593, 8405, 9, 6121, 6874, + 7089, 7593, 8405, 9, 6121, 7272, + 7089, 7593, 8405, 9, 6121, 7708, + 7089, 7593, 8405, 9, 6121, 7709, 6490, + 7089, 7593, 8405, 9, 6121, 8153, 6874, + 7089, 7593, 8405, 9, 6121, 8432, + 7089, 7593, 8405, 9, 6121, 8433, 721, 6378, + 7089, 7593, 8405, 9, 6121, 8433, 721, 6874, + 7089, 7593, 8405, 9, 6121, 8534, + 7089, 7593, 8405, 9, 6121, 8758, + 7089, 7593, 8405, 9, 6121, 9072, + 7089, 7593, 8405, 9, 6121, 9073, 721, 6516, + 7089, 7593, 8405, 9, 6121, 10267, 6516, + 7089, 7593, 8405, 9, 6121, 10804, + 7089, 7593, 8405, 9, 6121, 11215, 4530, + 7089, 7593, 8405, 9, 6121, 11448, + 7089, 7593, 8405, 9, 6121, 11449, 721, 1045, 6490, + 7089, 7593, 8405, 9, 6121, 11449, 721, 4531, 6376, + 7089, 7593, 8405, 9, 6121, 11449, 721, 6378, + 7089, 7593, 8405, 9, 6121, 11449, 721, 6874, + 7089, 7593, 8405, 9, 6121, 11449, 721, 7708, + 7089, 7593, 8405, 9, 6121, 11449, 6490, + 7089, 7593, 8405, 10, + 7089, 7593, 8405, 11, 6121, 1045, 6376, + 7089, 7593, 8405, 11, 6121, 4530, + 7089, 7593, 8405, 11, 6121, 8473, 7708, + 7089, 7593, 8405, 11, 6121, 9553, 4530, + 7089, 7593, 8405, 12, + 7089, 7593, 8405, 13, 6121, 1045, 6376, + 7089, 7593, 8405, 13, 6121, 4530, + 7089, 7593, 8405, 13, 6121, 6378, + 7089, 7593, 8405, 13, 6121, 6516, + 7089, 7593, 8405, 13, 6121, 6546, + 7089, 7593, 8405, 13, 6121, 8432, + 7089, 7593, 8405, 13, 6121, 8758, + 7089, 7593, 8405, 13, 6121, 9072, + 7089, 7593, 8405, 13, 6121, 9553, 4530, + 7089, 7593, 8405, 13, 6121, 11448, + 7089, 7593, 8405, 14, + 7089, 7593, 8405, 15, 6121, 1045, 6376, + 7089, 7593, 8405, 15, 6121, 1045, 6490, + 7089, 7593, 8405, 15, 6121, 4530, + 7089, 7593, 8405, 15, 6121, 4877, 6490, + 7089, 7593, 8405, 15, 6121, 6517, 6490, + 7089, 7593, 8405, 15, 6121, 6546, + 7089, 7593, 8405, 15, 6121, 8758, + 7089, 7593, 8405, 15, 6121, 9072, + 7089, 7593, 8405, 15, 6121, 10802, + 7089, 7593, 8405, 15, 6121, 10804, + 7089, 7593, 8405, 15, 6121, 11448, + 7089, 7593, 8405, 16, + 7089, 7593, 8405, 17, 6121, 1045, 6490, + 7089, 7593, 8405, 17, 6121, 4531, 6376, + 7089, 7593, 8405, 17, 6121, 6378, + 7089, 7593, 8405, 17, 6121, 6516, + 7089, 7593, 8405, 17, 6121, 6546, + 7089, 7593, 8405, 17, 6121, 6874, + 7089, 7593, 8405, 17, 6121, 7708, + 7089, 7593, 8405, 17, 6121, 7709, 6490, + 7089, 7593, 8405, 17, 6121, 8153, 6874, + 7089, 7593, 8405, 17, 6121, 8432, + 7089, 7593, 8405, 17, 6121, 8534, + 7089, 7593, 8405, 17, 6121, 8758, + 7089, 7593, 8405, 17, 6121, 10267, 6516, + 7089, 7593, 8405, 17, 6121, 10804, + 7089, 7593, 8405, 17, 6121, 10805, 721, 6378, + 7089, 7593, 8405, 17, 6121, 11215, 4530, + 7089, 7593, 8405, 17, 6121, 11448, + 7089, 7593, 8405, 18, + 7089, 7593, 8405, 19, 6121, 6546, + 7089, 7593, 8405, 19, 6121, 8758, + 7089, 7593, 8405, 19, 6121, 11448, + 7089, 7593, 8405, 19, 6121, 12426, + 7089, 7593, 8405, 20, + 7089, 7593, 8405, 21, 6121, 1045, 6490, + 7089, 7593, 8405, 21, 6121, 4530, + 7089, 7593, 8405, 21, 6121, 4877, 6490, + 7089, 7593, 8405, 21, 6121, 6378, + 7089, 7593, 8405, 21, 6121, 6546, + 7089, 7593, 8405, 21, 6121, 8758, + 7089, 7593, 8405, 21, 6121, 8759, 721, 10001, 8758, + 7089, 7593, 8405, 21, 6121, 9072, + 7089, 7593, 8405, 21, 6121, 9553, 4530, + 7089, 7593, 8405, 21, 6121, 10001, 8758, + 7089, 7593, 8405, 21, 6121, 10802, + 7089, 7593, 8405, 22, + 7089, 7593, 8405, 23, 6121, 760, + 7089, 7593, 8405, 23, 6121, 1045, 6490, + 7089, 7593, 8405, 23, 6121, 1045, 6491, 721, 8432, + 7089, 7593, 8405, 23, 6121, 3770, + 7089, 7593, 8405, 23, 6121, 3966, + 7089, 7593, 8405, 23, 6121, 4423, 8758, + 7089, 7593, 8405, 23, 6121, 4877, 6490, + 7089, 7593, 8405, 23, 6121, 6378, + 7089, 7593, 8405, 23, 6121, 6546, + 7089, 7593, 8405, 23, 6121, 8153, 760, + 7089, 7593, 8405, 23, 6121, 8473, 1044, + 7089, 7593, 8405, 23, 6121, 8473, 7708, + 7089, 7593, 8405, 23, 6121, 8758, + 7089, 7593, 8405, 23, 6121, 9072, + 7089, 7593, 8405, 23, 6121, 9553, 4530, + 7089, 7593, 8405, 23, 6121, 11215, 4530, + 7089, 7593, 8405, 23, 6121, 11449, 6490, + 7089, 7593, 8405, 24, + 7089, 7593, 8405, 25, 6121, 1045, 6376, + 7089, 7593, 8405, 25, 6121, 1045, 6490, + 7089, 7593, 8405, 25, 6121, 4530, + 7089, 7593, 8405, 25, 6121, 6378, + 7089, 7593, 8405, 25, 6121, 8473, 7708, + 7089, 7593, 8405, 25, 6121, 9553, 4530, + 7089, 7593, 8405, 26, + 7089, 7593, 8405, 27, 6121, 1045, 6376, + 7089, 7593, 8405, 27, 6121, 1045, 6490, + 7089, 7593, 8405, 27, 6121, 3966, + 7089, 7593, 8405, 27, 6121, 4849, 4530, + 7089, 7593, 8405, 27, 6121, 4877, 6490, + 7089, 7593, 8405, 27, 6121, 4895, 7443, 1760, + 7089, 7593, 8405, 27, 6121, 6378, + 7089, 7593, 8405, 27, 6121, 6546, + 7089, 7593, 8405, 27, 6121, 6874, + 7089, 7593, 8405, 27, 6121, 7708, + 7089, 7593, 8405, 27, 6121, 8473, 7708, + 7089, 7593, 8405, 27, 6121, 9072, + 7089, 7593, 8405, 27, 6121, 9553, 4530, + 7089, 7593, 8405, 27, 6121, 11215, 4530, + 7089, 7593, 8405, 27, 6121, 11449, 6490, + 7089, 7593, 8405, 27, 10451, 115, 11424, + 7089, 7593, 8405, 28, + 7089, 7593, 8405, 29, 6121, 1045, 6376, + 7089, 7593, 8405, 29, 6121, 1045, 6377, 721, 8432, + 7089, 7593, 8405, 29, 6121, 1045, 6490, + 7089, 7593, 8405, 29, 6121, 1809, 5551, 8318, + 7089, 7593, 8405, 29, 6121, 4531, 6376, + 7089, 7593, 8405, 29, 6121, 4536, + 7089, 7593, 8405, 29, 6121, 4537, 721, 1045, 6490, + 7089, 7593, 8405, 29, 6121, 4537, 721, 4531, 6376, + 7089, 7593, 8405, 29, 6121, 4537, 721, 6378, + 7089, 7593, 8405, 29, 6121, 4537, 721, 6874, + 7089, 7593, 8405, 29, 6121, 4537, 721, 7708, + 7089, 7593, 8405, 29, 6121, 4895, 8759, 9548, + 7089, 7593, 8405, 29, 6121, 4896, + 7089, 7593, 8405, 29, 6121, 6378, + 7089, 7593, 8405, 29, 6121, 6516, + 7089, 7593, 8405, 29, 6121, 6546, + 7089, 7593, 8405, 29, 6121, 6874, + 7089, 7593, 8405, 29, 6121, 7708, + 7089, 7593, 8405, 29, 6121, 7709, 721, 6378, + 7089, 7593, 8405, 29, 6121, 7709, 721, 8432, + 7089, 7593, 8405, 29, 6121, 7709, 721, 10804, + 7089, 7593, 8405, 29, 6121, 8153, 6378, + 7089, 7593, 8405, 29, 6121, 8153, 6874, + 7089, 7593, 8405, 29, 6121, 8432, + 7089, 7593, 8405, 29, 6121, 8433, 721, 6378, + 7089, 7593, 8405, 29, 6121, 8433, 721, 6874, + 7089, 7593, 8405, 29, 6121, 8534, + 7089, 7593, 8405, 29, 6121, 8535, 721, 8432, + 7089, 7593, 8405, 29, 6121, 8758, + 7089, 7593, 8405, 29, 6121, 8759, 721, 6378, + 7089, 7593, 8405, 29, 6121, 10267, 6516, + 7089, 7593, 8405, 29, 6121, 10804, + 7089, 7593, 8405, 29, 6121, 10805, 721, 8432, + 7089, 7593, 8405, 29, 6121, 11448, + 7089, 7593, 8405, 29, 6121, 11449, 721, 1045, 6490, + 7089, 7593, 8405, 29, 6121, 11449, 721, 4531, 6376, + 7089, 7593, 8405, 29, 6121, 11449, 721, 6378, + 7089, 7593, 8405, 29, 6121, 11449, 721, 6874, + 7089, 7593, 8405, 29, 6121, 11449, 721, 7708, + 7089, 7593, 8405, 30, + 7089, 7593, 8405, 31, 6121, 1045, 6376, + 7089, 7593, 8405, 31, 6121, 4530, + 7089, 7593, 8405, 31, 6121, 6378, + 7089, 7593, 8405, 31, 6121, 8473, 7708, + 7089, 7593, 8405, 31, 6121, 8758, + 7089, 7593, 8405, 31, 6121, 8759, 9785, 10802, + 7089, 7593, 8405, 31, 6121, 9553, 4530, + 7089, 7593, 8405, 31, 6121, 10196, + 7089, 7593, 8405, 31, 6121, 10533, 5878, + 7089, 7593, 8405, 32, + 7089, 7593, 8405, 33, 6121, 4530, + 7089, 7593, 8405, 33, 6121, 4531, 5878, + 7089, 7593, 8405, 33, 6121, 8759, 9785, 10802, + 7089, 7593, 8405, 33, 6121, 10001, 8758, + 7089, 7593, 8405, 34, + 7089, 7593, 8405, 35, 6121, 1045, 6376, + 7089, 7593, 8405, 35, 6121, 1045, 6490, + 7089, 7593, 8405, 35, 6121, 1045, 6491, 721, 8432, + 7089, 7593, 8405, 35, 6121, 4877, 6490, + 7089, 7593, 8405, 35, 6121, 4895, 1760, + 7089, 7593, 8405, 35, 6121, 5878, + 7089, 7593, 8405, 35, 6121, 6378, + 7089, 7593, 8405, 35, 6121, 6546, + 7089, 7593, 8405, 35, 6121, 8153, 6874, + 7089, 7593, 8405, 35, 6121, 8473, 7708, + 7089, 7593, 8405, 35, 6121, 8758, + 7089, 7593, 8405, 35, 6121, 9072, + 7089, 7593, 8405, 35, 6121, 9553, 4530, + 7089, 7593, 8405, 35, 6121, 10190, + 7089, 7593, 8405, 35, 6121, 10191, 721, 8473, 7708, + 7089, 7593, 8405, 35, 6121, 10267, 6516, + 7089, 7593, 8405, 35, 9642, + 7089, 7593, 8405, 36, + 7089, 7593, 8405, 37, 6121, 1045, 6376, + 7089, 7593, 8405, 37, 6121, 1045, 6490, + 7089, 7593, 8405, 37, 6121, 1045, 6491, 721, 1045, 6376, + 7089, 7593, 8405, 37, 6121, 4530, + 7089, 7593, 8405, 37, 6121, 6378, + 7089, 7593, 8405, 37, 6121, 6379, 721, 1045, 6376, + 7089, 7593, 8405, 37, 6121, 6546, + 7089, 7593, 8405, 37, 6121, 6547, 721, 1045, 6376, + 7089, 7593, 8405, 37, 6121, 6617, 6490, + 7089, 7593, 8405, 37, 6121, 7653, 5878, + 7089, 7593, 8405, 37, 6121, 8473, 7708, + 7089, 7593, 8405, 37, 6121, 9072, + 7089, 7593, 8405, 37, 6121, 9553, 4530, + 7089, 7593, 8405, 37, 6121, 11448, + 7089, 7593, 8405, 38, + 7089, 7593, 8405, 39, 6121, 1045, 6376, + 7089, 7593, 8405, 39, 6121, 1045, 6490, + 7089, 7593, 8405, 39, 6121, 3966, + 7089, 7593, 8405, 39, 6121, 4530, + 7089, 7593, 8405, 39, 6121, 4877, 6490, + 7089, 7593, 8405, 39, 6121, 6546, + 7089, 7593, 8405, 39, 6121, 6617, 6490, + 7089, 7593, 8405, 39, 6121, 8473, 7708, + 7089, 7593, 8405, 39, 6121, 8758, + 7089, 7593, 8405, 39, 6121, 9072, + 7089, 7593, 8405, 39, 6121, 9553, 4530, + 7089, 7593, 8405, 39, 6121, 10001, 8758, + 7089, 7593, 8405, 39, 6121, 10804, + 7089, 7593, 8405, 39, 6121, 11215, 4530, + 7089, 7593, 8405, 39, 6121, 11449, 6490, + 7089, 7593, 8405, 40, + 7089, 7593, 8405, 41, 760, + 7089, 7593, 8405, 41, 6121, 1045, 6490, + 7089, 7593, 8405, 41, 6121, 4531, 6376, + 7089, 7593, 8405, 41, 6121, 4536, + 7089, 7593, 8405, 41, 6121, 4537, 721, 1045, 6490, + 7089, 7593, 8405, 41, 6121, 4537, 721, 4531, 6376, + 7089, 7593, 8405, 41, 6121, 4537, 721, 6378, + 7089, 7593, 8405, 41, 6121, 4537, 721, 6874, + 7089, 7593, 8405, 41, 6121, 4537, 721, 7708, + 7089, 7593, 8405, 41, 6121, 5551, 6376, + 7089, 7593, 8405, 41, 6121, 6378, + 7089, 7593, 8405, 41, 6121, 6516, + 7089, 7593, 8405, 41, 6121, 6546, + 7089, 7593, 8405, 41, 6121, 6874, + 7089, 7593, 8405, 41, 6121, 7708, + 7089, 7593, 8405, 41, 6121, 7709, 721, 6378, + 7089, 7593, 8405, 41, 6121, 7709, 6490, + 7089, 7593, 8405, 41, 6121, 8153, 6378, + 7089, 7593, 8405, 41, 6121, 8153, 6874, + 7089, 7593, 8405, 41, 6121, 8432, + 7089, 7593, 8405, 41, 6121, 8433, 721, 10804, + 7089, 7593, 8405, 41, 6121, 8534, + 7089, 7593, 8405, 41, 6121, 10267, 6516, + 7089, 7593, 8405, 41, 6121, 10804, + 7089, 7593, 8405, 41, 6121, 10805, 721, 6378, + 7089, 7593, 8405, 41, 6121, 10805, 721, 6546, + 7089, 7593, 8405, 41, 6121, 10805, 721, 6874, + 7089, 7593, 8405, 41, 6121, 10805, 721, 8432, + 7089, 7593, 8405, 41, 6121, 10805, 6490, + 7089, 7593, 8405, 41, 6121, 11215, 4530, + 7089, 7593, 8405, 41, 6121, 11448, + 7089, 7593, 8405, 41, 6121, 11449, 6490, + 7089, 7593, 8405, 42, + 7089, 7593, 8405, 43, 6121, 1045, 6490, + 7089, 7593, 8405, 43, 6121, 3966, + 7089, 7593, 8405, 43, 6121, 4530, + 7089, 7593, 8405, 43, 6121, 7443, 4530, + 7089, 7593, 8405, 43, 6121, 7708, + 7089, 7593, 8405, 43, 6121, 9553, 4530, + 7089, 7593, 8405, 43, 6121, 10001, 8758, + 7089, 7593, 8405, 44, + 7089, 7593, 8405, 45, 6121, 1045, 6376, + 7089, 7593, 8405, 45, 6121, 1045, 6490, + 7089, 7593, 8405, 45, 6121, 4530, + 7089, 7593, 8405, 45, 6121, 5551, 6376, + 7089, 7593, 8405, 45, 6121, 6378, + 7089, 7593, 8405, 45, 6121, 6874, + 7089, 7593, 8405, 45, 6121, 10804, + 7089, 7593, 8405, 45, 6121, 11448, + 7089, 7593, 8405, 46, + 7089, 7593, 8405, 47, 6121, 1045, 6376, + 7089, 7593, 8405, 47, 6121, 9553, 4530, + 7089, 7593, 8405, 47, 6121, 10804, + 7089, 7593, 8405, 48, + 7089, 7593, 8405, 49, 6121, 1045, 6376, + 7089, 7593, 8405, 49, 6121, 1045, 6490, + 7089, 7593, 8405, 49, 6121, 4530, + 7089, 7593, 8405, 49, 6121, 4531, 6376, + 7089, 7593, 8405, 49, 6121, 4896, + 7089, 7593, 8405, 49, 6121, 5551, 6376, + 7089, 7593, 8405, 49, 6121, 6378, + 7089, 7593, 8405, 49, 6121, 6874, + 7089, 7593, 8405, 49, 6121, 7708, + 7089, 7593, 8405, 49, 6121, 8432, + 7089, 7593, 8405, 49, 6121, 8758, + 7089, 7593, 8405, 49, 6121, 10804, + 7089, 7593, 8405, 49, 6121, 11448, + 7089, 7593, 8405, 50, + 7089, 7593, 8405, 51, 6121, 1045, 6376, + 7089, 7593, 8405, 51, 6121, 1045, 6490, + 7089, 7593, 8405, 51, 6121, 3966, + 7089, 7593, 8405, 51, 6121, 4530, + 7089, 7593, 8405, 51, 6121, 4877, 6490, + 7089, 7593, 8405, 51, 6121, 6378, + 7089, 7593, 8405, 51, 6121, 6546, + 7089, 7593, 8405, 51, 6121, 7653, 5878, + 7089, 7593, 8405, 51, 6121, 8473, 7708, + 7089, 7593, 8405, 51, 6121, 8758, + 7089, 7593, 8405, 51, 6121, 9553, 4530, + 7089, 7593, 8405, 51, 6121, 10802, + 7089, 7593, 8405, 51, 6121, 11215, 4530, + 7089, 7593, 8405, 51, 6121, 11448, + 7089, 7593, 8405, 58, + 7089, 7593, 8405, 66, + 7089, 7593, 8405, 67, 6121, 6378, + 7089, 7593, 8405, 67, 6121, 8432, + 7089, 7593, 8405, 82, + 7089, 7593, 8405, 92, + 7089, 7593, 8405, 94, + 7089, 7593, 8405, 95, 6121, 11649, 760, + 7089, 7593, 8405, 98, + 7089, 7593, 8405, 141, 9164, + 7089, 7593, 8405, 156, + 7089, 7593, 8405, 157, 6121, 6546, + 7089, 7593, 8405, 157, 9164, + 7089, 7593, 8405, 157, 9165, 6121, 3966, + 7089, 7593, 8405, 186, + 7089, 7593, 8405, 252, + 7089, 7593, 8405, 282, + 7089, 7593, 8405, 342, + 7089, 7593, 8405, 353, 9164, + 7089, 7593, 8405, 363, 9164, + 7089, 7593, 8405, 406, + 7089, 7593, 8405, 432, + 7089, 7593, 8405, 440, + 7089, 7593, 8405, 450, + 7089, 7593, 8405, 505, 9164, + 7089, 7593, 8405, 559, 9165, 6121, 3966, + 7089, 7593, 8405, 563, 6121, 13018, + 7089, 7593, 8405, 573, 9164, + 7089, 7593, 8405, 578, + 7089, 7593, 8405, 590, + 7089, 7593, 8405, 594, + 7089, 7593, 8405, 620, + 7089, 7593, 8405, 912, + 7089, 7593, 8405, 1058, + 7089, 7593, 8405, 1110, + 7089, 7593, 8405, 1124, + 7089, 7593, 8405, 1125, 6121, 3966, + 7089, 7593, 8405, 1125, 6121, 9553, 4530, + 7089, 7593, 8405, 1125, 6121, 11215, 4530, + 7089, 7593, 8405, 1130, + 7089, 7593, 8405, 1138, + 7089, 7593, 8405, 1139, 6121, 3966, + 7089, 7593, 8405, 1139, 6121, 5878, + 7089, 7593, 8405, 1139, 6121, 6546, + 7089, 7593, 8405, 1139, 6121, 11215, 4530, + 7089, 7593, 8405, 1139, 10488, + 7089, 7593, 8405, 1678, + 7089, 7593, 8405, 1822, + 7089, 7593, 8405, 1952, + 7089, 7593, 8405, 2108, + 7089, 7593, 8405, 2216, + 7089, 7593, 8405, 2452, + 7089, 7593, 8405, 2453, 9642, + 7089, 7593, 8405, 2725, 4389, 28, + 7089, 7593, 8405, 2760, + 7089, 7593, 8405, 4065, 9164, + 7089, 7593, 8405, 4187, 9164, + 7089, 7593, 8405, 4389, 14, + 7089, 7593, 8405, 4404, + 7089, 7593, 8405, 4405, 6121, 4530, + 7089, 7593, 8405, 4614, + 7089, 7593, 8405, 4615, 6121, 8758, + 7089, 7593, 8405, 4854, + 7089, 7593, 8405, 4895, 36, + 7089, 7593, 8405, 4895, 37, 6121, 1045, 6376, + 7089, 7593, 8405, 4895, 37, 6121, 4423, 8758, + 7089, 7593, 8405, 4895, 37, 6121, 10001, 8758, + 7089, 7593, 8405, 5385, 8, + 7089, 7593, 8405, 5385, 9, 6121, 11215, 4530, + 7089, 7593, 8405, 5385, 28, + 7089, 7593, 8405, 5385, 29, 6121, 11215, 4530, + 7089, 7593, 8405, 5527, 4536, + 7089, 7593, 8405, 5901, 9164, + 7089, 7593, 8405, 5965, 2540, + 7089, 7593, 8405, 5965, 2778, + 7089, 7593, 8405, 5965, 4200, + 7089, 7593, 8405, 6078, + 7089, 7593, 8405, 6220, + 7089, 7593, 8405, 6406, + 7089, 7593, 8405, 6407, 6121, 11215, 4530, + 7089, 7593, 8405, 6674, + 7089, 7593, 8405, 6824, + 7089, 7593, 8405, 7494, + 7089, 7593, 8405, 7495, 6121, 4530, + 7089, 7593, 8405, 7495, 6121, 11215, 4530, + 7089, 7593, 8405, 7519, 36, + 7089, 7593, 8405, 7619, 10489, 1124, + 7089, 7593, 8405, 7692, + 7089, 7593, 8405, 7693, 6121, 8758, + 7089, 7593, 8405, 7693, 6121, 8759, 9785, 10802, + 7089, 7593, 8405, 7981, 28, + 7089, 7593, 8405, 8005, 4389, 28, + 7089, 7593, 8405, 8017, 22, + 7089, 7593, 8405, 8065, 5385, 8, + 7089, 7593, 8405, 8065, 7316, + 7089, 7593, 8405, 8065, 10489, 5385, 8, + 7089, 7593, 8405, 8387, 6121, 8758, + 7089, 7593, 8405, 8679, 12, + 7089, 7593, 8405, 8869, 0, + 7089, 7593, 8405, 8869, 8, + 7089, 7593, 8405, 8869, 12, + 7089, 7593, 8405, 8869, 14, + 7089, 7593, 8405, 8869, 15, 6121, 10190, + 7089, 7593, 8405, 8869, 15, 6121, 10191, 721, 5878, + 7089, 7593, 8405, 8869, 16, + 7089, 7593, 8405, 8869, 20, + 7089, 7593, 8405, 8869, 22, + 7089, 7593, 8405, 8869, 24, + 7089, 7593, 8405, 8869, 25, 6121, 4895, 1760, + 7089, 7593, 8405, 8869, 34, + 7089, 7593, 8405, 8869, 35, 6121, 4530, + 7089, 7593, 8405, 8869, 35, 6121, 4895, 1760, + 7089, 7593, 8405, 8869, 35, 6121, 5878, + 7089, 7593, 8405, 8869, 38, + 7089, 7593, 8405, 8869, 42, + 7089, 7593, 8405, 8869, 44, + 7089, 7593, 8405, 8869, 48, + 7089, 7593, 8405, 8869, 66, + 7089, 7593, 8405, 8869, 426, + 7089, 7593, 8405, 8869, 5385, 8, + 7089, 7593, 8405, 8869, 6406, + 7089, 7593, 8405, 8869, 6674, + 7089, 7593, 8405, 8869, 9365, 12, + 7089, 7593, 8405, 9185, 16, + 7089, 7593, 8405, 9185, 18, + 7089, 7593, 8405, 9185, 19, 6121, 8758, + 7089, 7593, 8405, 9185, 19, 6121, 8759, 721, 4530, + 7089, 7593, 8405, 9313, 5836, + 7089, 7593, 8405, 9365, 6, + 7089, 7593, 8405, 9365, 10, + 7089, 7593, 8405, 9365, 12, + 7089, 7593, 8405, 9365, 34, + 7089, 7593, 8405, 9365, 36, + 7089, 7593, 8405, 9365, 38, + 7089, 7593, 8405, 9808, + 7089, 7593, 8405, 9809, 6121, 8758, + 7089, 7593, 8405, 10489, 4, + 7089, 7593, 8405, 10489, 5, 6121, 1044, + 7089, 7593, 8405, 10489, 8, + 7089, 7593, 8405, 10489, 35, 6121, 10190, + 7089, 7593, 8405, 10489, 5385, 8, + 7089, 7593, 8405, 10489, 5385, 9, 6121, 4530, + 7089, 7593, 8405, 10489, 5385, 9, 6121, 11215, 4530, + 7089, 7593, 8405, 10494, + 7089, 7593, 8405, 10523, 28, + 7089, 7593, 8405, 10523, 29, 6121, 8758, + 7089, 7593, 8405, 10523, 40, + 7089, 7593, 8405, 10523, 5385, 28, + 7089, 7593, 8405, 10523, 8869, 24, + 7089, 7593, 8405, 10523, 11941, 40, + 7089, 7593, 8405, 10609, 2216, + 7089, 7593, 8405, 10640, + 7089, 7593, 8405, 10786, + 7089, 7593, 8405, 10787, 6121, 6616, + 7089, 7593, 8405, 11879, 50, + 7089, 7593, 8405, 12507, 42, + 7089, 7593, 8405, 12507, 344, + 7089, 7593, 8405, 12935, 710, + 7089, 7593, 8405, 12935, 3244, + 7089, 7593, 9063, 8405, 17, 6121, 8758, + 7089, 7593, 9063, 8405, 41, 6121, 8758, + 7089, 7593, 10301, 200, + 7089, 7593, 10301, 202, + 7089, 7593, 10301, 204, + 7089, 7593, 10301, 268, + 7089, 7593, 10301, 426, + 7089, 7593, 10301, 544, + 7089, 7593, 10301, 1156, + 7089, 7593, 10301, 1158, + 7089, 7593, 10301, 4895, 37, 38, + 7089, 8405, 662, + 7089, 8405, 710, + 7089, 8405, 2779, 6121, 8758, + 7089, 8405, 6138, + 7089, 8405, 7593, 9063, 0, + 7089, 8405, 7593, 9063, 2, + 7089, 8405, 7593, 9063, 4, + 7089, 8405, 7593, 9063, 6, + 7089, 8405, 7593, 9063, 8, + 7089, 8405, 7593, 9063, 10, + 7089, 8405, 7593, 9063, 12, + 7089, 8405, 7593, 9063, 13, 6121, 4530, + 7089, 8405, 7593, 9063, 14, + 7089, 8405, 7593, 9063, 16, + 7089, 8405, 7593, 9063, 18, + 7089, 8405, 7593, 9063, 20, + 7089, 8405, 7593, 9063, 22, + 7089, 8405, 7593, 9063, 23, 6121, 8758, + 7089, 8405, 7593, 9063, 24, + 7089, 8405, 7593, 9063, 26, + 7089, 8405, 7593, 9063, 28, + 7089, 8405, 7593, 9063, 30, + 7089, 8405, 7593, 9063, 34, + 7089, 8405, 7593, 9063, 36, + 7089, 8405, 7593, 9063, 38, + 7089, 8405, 7593, 9063, 40, + 7089, 8405, 7593, 9063, 42, + 7089, 8405, 7593, 9063, 44, + 7089, 8405, 7593, 9063, 48, + 7089, 8405, 7593, 9063, 50, + 7089, 8405, 7593, 9063, 66, + 7089, 8405, 7593, 9063, 426, + 7089, 8405, 7593, 9063, 450, + 7089, 8405, 7593, 9063, 1130, + 7089, 8405, 7593, 9063, 1138, + 7089, 8405, 7593, 9063, 2452, + 7089, 8405, 7593, 9063, 5385, 28, + 7089, 8405, 7593, 9063, 7981, 2, + 7089, 8405, 7593, 9063, 8869, 8, + 7089, 8405, 7593, 9063, 8869, 34, + 7089, 8405, 7593, 9063, 10267, 34, + 7089, 8405, 7593, 9063, 10489, 26, + 7089, 8405, 7593, 9063, 10489, 34, + 7089, 8405, 8107, 6598, + 7089, 8405, 8921, 11089, 9728, + 7089, 8405, 9313, 5836, + 7089, 8405, 9313, 5837, 6121, 8758, + 7089, 8405, 9423, 6598, + 7089, 8405, 9865, 6598, + 7089, 8405, 9915, 11720, + 7089, 8405, 9917, 6598, + 7089, 8405, 9917, 11720, + 7089, 8405, 10267, 9313, 5836, + 7089, 8405, 10267, 9313, 5837, 6121, 8758, + 7089, 8405, 10489, 1125, 4896, + 7089, 8405, 10489, 9313, 5837, 6121, 8758, + 7089, 8405, 11215, 6598, + 7089, 8405, 11251, 4, + 7089, 8405, 11723, 8921, 11008, + 7089, 9063, 8405, 0, + 7089, 9063, 8405, 1, 6121, 1045, 6376, + 7089, 9063, 8405, 1, 6121, 1045, 6377, 721, 8432, + 7089, 9063, 8405, 1, 6121, 1045, 6490, + 7089, 9063, 8405, 1, 6121, 4531, 6376, + 7089, 9063, 8405, 1, 6121, 5551, 6376, + 7089, 9063, 8405, 1, 6121, 5551, 6377, 721, 6378, + 7089, 9063, 8405, 1, 6121, 5551, 6490, + 7089, 9063, 8405, 1, 6121, 6378, + 7089, 9063, 8405, 1, 6121, 6516, + 7089, 9063, 8405, 1, 6121, 6517, 721, 1045, 6490, + 7089, 9063, 8405, 1, 6121, 6517, 721, 4531, 6376, + 7089, 9063, 8405, 1, 6121, 6517, 721, 6378, + 7089, 9063, 8405, 1, 6121, 6517, 721, 6874, + 7089, 9063, 8405, 1, 6121, 6517, 721, 7708, + 7089, 9063, 8405, 1, 6121, 6546, + 7089, 9063, 8405, 1, 6121, 6874, + 7089, 9063, 8405, 1, 6121, 7708, + 7089, 9063, 8405, 1, 6121, 8153, 6874, + 7089, 9063, 8405, 1, 6121, 8432, + 7089, 9063, 8405, 1, 6121, 8534, + 7089, 9063, 8405, 1, 6121, 8758, + 7089, 9063, 8405, 1, 6121, 10267, 6516, + 7089, 9063, 8405, 1, 6121, 10804, + 7089, 9063, 8405, 1, 6121, 10805, 721, 8432, + 7089, 9063, 8405, 1, 6121, 11448, + 7089, 9063, 8405, 1, 6121, 11449, 721, 1045, 6490, + 7089, 9063, 8405, 1, 6121, 11449, 721, 4531, 6376, + 7089, 9063, 8405, 1, 6121, 11449, 721, 6378, + 7089, 9063, 8405, 1, 6121, 11449, 721, 6874, + 7089, 9063, 8405, 1, 6121, 11449, 721, 7708, + 7089, 9063, 8405, 2, + 7089, 9063, 8405, 3, 6121, 1045, 6376, + 7089, 9063, 8405, 3, 6121, 1045, 6490, + 7089, 9063, 8405, 3, 6121, 4530, + 7089, 9063, 8405, 3, 6121, 4877, 6490, + 7089, 9063, 8405, 3, 6121, 8758, + 7089, 9063, 8405, 3, 6121, 8846, + 7089, 9063, 8405, 4, + 7089, 9063, 8405, 5, 6121, 1045, 6376, + 7089, 9063, 8405, 5, 6121, 4530, + 7089, 9063, 8405, 5, 6121, 6378, + 7089, 9063, 8405, 5, 6121, 6546, + 7089, 9063, 8405, 5, 6121, 8758, + 7089, 9063, 8405, 5, 6121, 9072, + 7089, 9063, 8405, 5, 6121, 9073, 721, 6378, + 7089, 9063, 8405, 5, 6121, 11448, + 7089, 9063, 8405, 6, + 7089, 9063, 8405, 7, 6121, 1045, 6376, + 7089, 9063, 8405, 7, 6121, 1045, 6490, + 7089, 9063, 8405, 7, 6121, 4530, + 7089, 9063, 8405, 7, 6121, 4877, 6490, + 7089, 9063, 8405, 7, 6121, 6546, + 7089, 9063, 8405, 7, 6121, 7593, 8405, 50, + 7089, 9063, 8405, 7, 6121, 7593, 8405, 51, 6121, 6546, + 7089, 9063, 8405, 7, 6121, 8758, + 7089, 9063, 8405, 7, 6121, 8846, + 7089, 9063, 8405, 7, 6121, 9072, + 7089, 9063, 8405, 7, 6121, 11449, 6490, + 7089, 9063, 8405, 8, + 7089, 9063, 8405, 9, 6121, 1045, 6376, + 7089, 9063, 8405, 9, 6121, 1045, 6490, + 7089, 9063, 8405, 9, 6121, 4531, 6376, + 7089, 9063, 8405, 9, 6121, 6378, + 7089, 9063, 8405, 9, 6121, 6516, + 7089, 9063, 8405, 9, 6121, 6546, + 7089, 9063, 8405, 9, 6121, 6874, + 7089, 9063, 8405, 9, 6121, 7708, + 7089, 9063, 8405, 9, 6121, 7709, 6490, + 7089, 9063, 8405, 9, 6121, 8153, 6874, + 7089, 9063, 8405, 9, 6121, 8432, + 7089, 9063, 8405, 9, 6121, 8433, 721, 6378, + 7089, 9063, 8405, 9, 6121, 8433, 721, 6874, + 7089, 9063, 8405, 9, 6121, 8534, + 7089, 9063, 8405, 9, 6121, 8758, + 7089, 9063, 8405, 9, 6121, 9072, + 7089, 9063, 8405, 9, 6121, 9073, 721, 6516, + 7089, 9063, 8405, 9, 6121, 10267, 6516, + 7089, 9063, 8405, 9, 6121, 10804, + 7089, 9063, 8405, 9, 6121, 11448, + 7089, 9063, 8405, 9, 6121, 11449, 721, 1045, 6490, + 7089, 9063, 8405, 9, 6121, 11449, 721, 4531, 6376, + 7089, 9063, 8405, 9, 6121, 11449, 721, 6378, + 7089, 9063, 8405, 9, 6121, 11449, 721, 6874, + 7089, 9063, 8405, 9, 6121, 11449, 721, 7708, + 7089, 9063, 8405, 9, 6121, 11449, 6490, + 7089, 9063, 8405, 10, + 7089, 9063, 8405, 11, 6121, 1045, 6376, + 7089, 9063, 8405, 11, 6121, 4530, + 7089, 9063, 8405, 12, + 7089, 9063, 8405, 13, 6121, 1045, 6376, + 7089, 9063, 8405, 13, 6121, 4530, + 7089, 9063, 8405, 13, 6121, 6378, + 7089, 9063, 8405, 13, 6121, 6516, + 7089, 9063, 8405, 13, 6121, 6546, + 7089, 9063, 8405, 13, 6121, 8432, + 7089, 9063, 8405, 13, 6121, 8758, + 7089, 9063, 8405, 13, 6121, 9072, + 7089, 9063, 8405, 13, 6121, 11448, + 7089, 9063, 8405, 14, + 7089, 9063, 8405, 15, 6121, 1045, 6376, + 7089, 9063, 8405, 15, 6121, 1045, 6490, + 7089, 9063, 8405, 15, 6121, 6517, 6490, + 7089, 9063, 8405, 15, 6121, 6546, + 7089, 9063, 8405, 15, 6121, 8758, + 7089, 9063, 8405, 15, 6121, 9072, + 7089, 9063, 8405, 15, 6121, 10802, + 7089, 9063, 8405, 15, 6121, 10804, + 7089, 9063, 8405, 15, 6121, 11448, + 7089, 9063, 8405, 16, + 7089, 9063, 8405, 17, 6121, 1045, 6376, + 7089, 9063, 8405, 17, 6121, 1045, 6490, + 7089, 9063, 8405, 17, 6121, 4531, 6376, + 7089, 9063, 8405, 17, 6121, 6378, + 7089, 9063, 8405, 17, 6121, 6516, + 7089, 9063, 8405, 17, 6121, 6546, + 7089, 9063, 8405, 17, 6121, 6874, + 7089, 9063, 8405, 17, 6121, 7708, + 7089, 9063, 8405, 17, 6121, 7709, 6490, + 7089, 9063, 8405, 17, 6121, 8153, 6874, + 7089, 9063, 8405, 17, 6121, 8432, + 7089, 9063, 8405, 17, 6121, 8534, + 7089, 9063, 8405, 17, 6121, 8758, + 7089, 9063, 8405, 17, 6121, 10267, 6516, + 7089, 9063, 8405, 17, 6121, 10804, + 7089, 9063, 8405, 17, 6121, 10805, 721, 6378, + 7089, 9063, 8405, 17, 6121, 11448, + 7089, 9063, 8405, 18, + 7089, 9063, 8405, 19, 6121, 8758, + 7089, 9063, 8405, 19, 6121, 11448, + 7089, 9063, 8405, 20, + 7089, 9063, 8405, 21, 6121, 1045, 6490, + 7089, 9063, 8405, 21, 6121, 4530, + 7089, 9063, 8405, 21, 6121, 4877, 6490, + 7089, 9063, 8405, 21, 6121, 6378, + 7089, 9063, 8405, 21, 6121, 6546, + 7089, 9063, 8405, 21, 6121, 8758, + 7089, 9063, 8405, 21, 6121, 8759, 721, 10001, 8758, + 7089, 9063, 8405, 21, 6121, 9072, + 7089, 9063, 8405, 21, 6121, 10001, 8758, + 7089, 9063, 8405, 21, 6121, 10802, + 7089, 9063, 8405, 22, + 7089, 9063, 8405, 23, 6121, 760, + 7089, 9063, 8405, 23, 6121, 1045, 6490, + 7089, 9063, 8405, 23, 6121, 1045, 6491, 721, 8432, + 7089, 9063, 8405, 23, 6121, 4423, 8758, + 7089, 9063, 8405, 23, 6121, 4877, 6490, + 7089, 9063, 8405, 23, 6121, 6378, + 7089, 9063, 8405, 23, 6121, 6546, + 7089, 9063, 8405, 23, 6121, 7593, 8405, 18, + 7089, 9063, 8405, 23, 6121, 8153, 760, + 7089, 9063, 8405, 23, 6121, 8473, 1044, + 7089, 9063, 8405, 23, 6121, 8473, 7708, + 7089, 9063, 8405, 23, 6121, 8758, + 7089, 9063, 8405, 23, 6121, 9072, + 7089, 9063, 8405, 23, 6121, 11449, 6490, + 7089, 9063, 8405, 24, + 7089, 9063, 8405, 25, 6121, 1045, 6376, + 7089, 9063, 8405, 25, 6121, 1045, 6490, + 7089, 9063, 8405, 25, 6121, 4530, + 7089, 9063, 8405, 25, 6121, 6378, + 7089, 9063, 8405, 26, + 7089, 9063, 8405, 27, 6121, 1045, 6376, + 7089, 9063, 8405, 27, 6121, 1045, 6490, + 7089, 9063, 8405, 27, 6121, 4849, 4530, + 7089, 9063, 8405, 27, 6121, 4877, 6490, + 7089, 9063, 8405, 27, 6121, 4895, 7443, 1760, + 7089, 9063, 8405, 27, 6121, 6378, + 7089, 9063, 8405, 27, 6121, 6546, + 7089, 9063, 8405, 27, 6121, 6874, + 7089, 9063, 8405, 27, 6121, 7593, 8405, 18, + 7089, 9063, 8405, 27, 6121, 7708, + 7089, 9063, 8405, 27, 6121, 9072, + 7089, 9063, 8405, 27, 6121, 11449, 6490, + 7089, 9063, 8405, 28, + 7089, 9063, 8405, 29, 6121, 1045, 6376, + 7089, 9063, 8405, 29, 6121, 1045, 6377, 721, 8432, + 7089, 9063, 8405, 29, 6121, 1045, 6490, + 7089, 9063, 8405, 29, 6121, 4531, 6376, + 7089, 9063, 8405, 29, 6121, 4536, + 7089, 9063, 8405, 29, 6121, 4537, 721, 1045, 6490, + 7089, 9063, 8405, 29, 6121, 4537, 721, 4531, 6376, + 7089, 9063, 8405, 29, 6121, 4537, 721, 6378, + 7089, 9063, 8405, 29, 6121, 4537, 721, 6874, + 7089, 9063, 8405, 29, 6121, 4537, 721, 7708, + 7089, 9063, 8405, 29, 6121, 4895, 8759, 9548, + 7089, 9063, 8405, 29, 6121, 4896, + 7089, 9063, 8405, 29, 6121, 6378, + 7089, 9063, 8405, 29, 6121, 6516, + 7089, 9063, 8405, 29, 6121, 6546, + 7089, 9063, 8405, 29, 6121, 6874, + 7089, 9063, 8405, 29, 6121, 7708, + 7089, 9063, 8405, 29, 6121, 7709, 721, 6378, + 7089, 9063, 8405, 29, 6121, 7709, 721, 8432, + 7089, 9063, 8405, 29, 6121, 7709, 721, 10804, + 7089, 9063, 8405, 29, 6121, 8153, 6378, + 7089, 9063, 8405, 29, 6121, 8153, 6874, + 7089, 9063, 8405, 29, 6121, 8432, + 7089, 9063, 8405, 29, 6121, 8433, 721, 6378, + 7089, 9063, 8405, 29, 6121, 8433, 721, 6874, + 7089, 9063, 8405, 29, 6121, 8473, 7708, + 7089, 9063, 8405, 29, 6121, 8534, + 7089, 9063, 8405, 29, 6121, 8535, 721, 8432, + 7089, 9063, 8405, 29, 6121, 8758, + 7089, 9063, 8405, 29, 6121, 8759, 721, 6378, + 7089, 9063, 8405, 29, 6121, 10267, 6516, + 7089, 9063, 8405, 29, 6121, 10804, + 7089, 9063, 8405, 29, 6121, 10805, 721, 8432, + 7089, 9063, 8405, 29, 6121, 11448, + 7089, 9063, 8405, 29, 6121, 11449, 721, 1045, 6490, + 7089, 9063, 8405, 29, 6121, 11449, 721, 4531, 6376, + 7089, 9063, 8405, 29, 6121, 11449, 721, 6378, + 7089, 9063, 8405, 29, 6121, 11449, 721, 6874, + 7089, 9063, 8405, 29, 6121, 11449, 721, 7708, + 7089, 9063, 8405, 30, + 7089, 9063, 8405, 31, 6121, 1045, 6376, + 7089, 9063, 8405, 31, 6121, 4530, + 7089, 9063, 8405, 31, 6121, 6378, + 7089, 9063, 8405, 31, 6121, 8758, + 7089, 9063, 8405, 31, 6121, 8759, 9785, 10802, + 7089, 9063, 8405, 31, 6121, 10196, + 7089, 9063, 8405, 31, 6121, 10533, 5878, + 7089, 9063, 8405, 32, + 7089, 9063, 8405, 33, 6121, 8759, 9785, 10802, + 7089, 9063, 8405, 33, 6121, 10001, 8758, + 7089, 9063, 8405, 34, + 7089, 9063, 8405, 35, 6121, 1045, 6376, + 7089, 9063, 8405, 35, 6121, 1045, 6490, + 7089, 9063, 8405, 35, 6121, 1045, 6491, 721, 8432, + 7089, 9063, 8405, 35, 6121, 4877, 6490, + 7089, 9063, 8405, 35, 6121, 5878, + 7089, 9063, 8405, 35, 6121, 6378, + 7089, 9063, 8405, 35, 6121, 6546, + 7089, 9063, 8405, 35, 6121, 8153, 6874, + 7089, 9063, 8405, 35, 6121, 8758, + 7089, 9063, 8405, 35, 6121, 9072, + 7089, 9063, 8405, 35, 6121, 10267, 6516, + 7089, 9063, 8405, 35, 9642, + 7089, 9063, 8405, 36, + 7089, 9063, 8405, 37, 6121, 1045, 6376, + 7089, 9063, 8405, 37, 6121, 1045, 6490, + 7089, 9063, 8405, 37, 6121, 1045, 6491, 721, 1045, 6376, + 7089, 9063, 8405, 37, 6121, 6378, + 7089, 9063, 8405, 37, 6121, 6379, 721, 1045, 6376, + 7089, 9063, 8405, 37, 6121, 6546, + 7089, 9063, 8405, 37, 6121, 6547, 721, 1045, 6376, + 7089, 9063, 8405, 37, 6121, 6617, 6490, + 7089, 9063, 8405, 37, 6121, 9072, + 7089, 9063, 8405, 37, 6121, 11448, + 7089, 9063, 8405, 38, + 7089, 9063, 8405, 39, 6121, 1045, 6376, + 7089, 9063, 8405, 39, 6121, 1045, 6490, + 7089, 9063, 8405, 39, 6121, 4530, + 7089, 9063, 8405, 39, 6121, 4877, 6490, + 7089, 9063, 8405, 39, 6121, 6546, + 7089, 9063, 8405, 39, 6121, 6617, 6490, + 7089, 9063, 8405, 39, 6121, 8758, + 7089, 9063, 8405, 39, 6121, 9072, + 7089, 9063, 8405, 39, 6121, 10001, 8758, + 7089, 9063, 8405, 39, 6121, 11215, 4530, + 7089, 9063, 8405, 39, 6121, 11449, 6490, + 7089, 9063, 8405, 40, + 7089, 9063, 8405, 41, 760, + 7089, 9063, 8405, 41, 6121, 1045, 6490, + 7089, 9063, 8405, 41, 6121, 4531, 6376, + 7089, 9063, 8405, 41, 6121, 4536, + 7089, 9063, 8405, 41, 6121, 4537, 721, 1045, 6490, + 7089, 9063, 8405, 41, 6121, 4537, 721, 4531, 6376, + 7089, 9063, 8405, 41, 6121, 4537, 721, 6378, + 7089, 9063, 8405, 41, 6121, 4537, 721, 6874, + 7089, 9063, 8405, 41, 6121, 4537, 721, 7708, + 7089, 9063, 8405, 41, 6121, 5551, 6376, + 7089, 9063, 8405, 41, 6121, 6378, + 7089, 9063, 8405, 41, 6121, 6516, + 7089, 9063, 8405, 41, 6121, 6546, + 7089, 9063, 8405, 41, 6121, 6874, + 7089, 9063, 8405, 41, 6121, 7708, + 7089, 9063, 8405, 41, 6121, 7709, 721, 6378, + 7089, 9063, 8405, 41, 6121, 7709, 6490, + 7089, 9063, 8405, 41, 6121, 8153, 6378, + 7089, 9063, 8405, 41, 6121, 8153, 6874, + 7089, 9063, 8405, 41, 6121, 8432, + 7089, 9063, 8405, 41, 6121, 8433, 721, 10804, + 7089, 9063, 8405, 41, 6121, 8534, + 7089, 9063, 8405, 41, 6121, 10267, 6516, + 7089, 9063, 8405, 41, 6121, 10804, + 7089, 9063, 8405, 41, 6121, 10805, 721, 6378, + 7089, 9063, 8405, 41, 6121, 10805, 721, 6546, + 7089, 9063, 8405, 41, 6121, 10805, 721, 6874, + 7089, 9063, 8405, 41, 6121, 10805, 721, 8432, + 7089, 9063, 8405, 41, 6121, 10805, 6490, + 7089, 9063, 8405, 41, 6121, 11448, + 7089, 9063, 8405, 41, 6121, 11449, 6490, + 7089, 9063, 8405, 42, + 7089, 9063, 8405, 43, 6121, 1045, 6490, + 7089, 9063, 8405, 43, 6121, 4530, + 7089, 9063, 8405, 43, 6121, 7708, + 7089, 9063, 8405, 43, 6121, 10001, 8758, + 7089, 9063, 8405, 44, + 7089, 9063, 8405, 45, 6121, 1045, 6376, + 7089, 9063, 8405, 45, 6121, 1045, 6490, + 7089, 9063, 8405, 45, 6121, 4530, + 7089, 9063, 8405, 45, 6121, 6378, + 7089, 9063, 8405, 45, 6121, 6874, + 7089, 9063, 8405, 45, 6121, 10804, + 7089, 9063, 8405, 45, 6121, 11448, + 7089, 9063, 8405, 46, + 7089, 9063, 8405, 47, 6121, 1045, 6376, + 7089, 9063, 8405, 47, 6121, 10804, + 7089, 9063, 8405, 48, + 7089, 9063, 8405, 49, 6121, 1045, 6376, + 7089, 9063, 8405, 49, 6121, 1045, 6490, + 7089, 9063, 8405, 49, 6121, 4530, + 7089, 9063, 8405, 49, 6121, 4531, 6376, + 7089, 9063, 8405, 49, 6121, 4896, + 7089, 9063, 8405, 49, 6121, 6378, + 7089, 9063, 8405, 49, 6121, 6874, + 7089, 9063, 8405, 49, 6121, 7708, + 7089, 9063, 8405, 49, 6121, 8432, + 7089, 9063, 8405, 49, 6121, 8758, + 7089, 9063, 8405, 49, 6121, 10804, + 7089, 9063, 8405, 49, 6121, 11448, + 7089, 9063, 8405, 50, + 7089, 9063, 8405, 51, 6121, 1045, 6376, + 7089, 9063, 8405, 51, 6121, 1045, 6490, + 7089, 9063, 8405, 51, 6121, 4530, + 7089, 9063, 8405, 51, 6121, 4877, 6490, + 7089, 9063, 8405, 51, 6121, 6378, + 7089, 9063, 8405, 51, 6121, 6546, + 7089, 9063, 8405, 51, 6121, 8758, + 7089, 9063, 8405, 51, 6121, 10802, + 7089, 9063, 8405, 51, 6121, 11448, + 7089, 9063, 8405, 58, + 7089, 9063, 8405, 66, + 7089, 9063, 8405, 67, 6121, 6378, + 7089, 9063, 8405, 67, 6121, 8432, + 7089, 9063, 8405, 82, + 7089, 9063, 8405, 92, + 7089, 9063, 8405, 94, + 7089, 9063, 8405, 95, 6121, 11649, 760, + 7089, 9063, 8405, 98, + 7089, 9063, 8405, 156, + 7089, 9063, 8405, 157, 6121, 6546, + 7089, 9063, 8405, 186, + 7089, 9063, 8405, 282, + 7089, 9063, 8405, 342, + 7089, 9063, 8405, 406, + 7089, 9063, 8405, 432, + 7089, 9063, 8405, 440, + 7089, 9063, 8405, 450, + 7089, 9063, 8405, 578, + 7089, 9063, 8405, 620, + 7089, 9063, 8405, 912, + 7089, 9063, 8405, 1110, + 7089, 9063, 8405, 1124, + 7089, 9063, 8405, 1130, + 7089, 9063, 8405, 1138, + 7089, 9063, 8405, 1139, 6121, 6546, + 7089, 9063, 8405, 1139, 10488, + 7089, 9063, 8405, 2453, 9642, + 7089, 9063, 8405, 4389, 14, + 7089, 9063, 8405, 4404, + 7089, 9063, 8405, 4614, + 7089, 9063, 8405, 5385, 8, + 7089, 9063, 8405, 5385, 28, + 7089, 9063, 8405, 5965, 2540, + 7089, 9063, 8405, 5965, 2778, + 7089, 9063, 8405, 5965, 4200, + 7089, 9063, 8405, 6078, + 7089, 9063, 8405, 6138, + 7089, 9063, 8405, 6220, + 7089, 9063, 8405, 6406, + 7089, 9063, 8405, 6824, + 7089, 9063, 8405, 6960, + 7089, 9063, 8405, 7494, + 7089, 9063, 8405, 7519, 36, + 7089, 9063, 8405, 7593, 33, 6121, 4531, 5878, + 7089, 9063, 8405, 7692, + 7089, 9063, 8405, 7693, 6121, 8758, + 7089, 9063, 8405, 7693, 6121, 8759, 9785, 10802, + 7089, 9063, 8405, 8017, 22, + 7089, 9063, 8405, 8869, 0, + 7089, 9063, 8405, 8869, 22, + 7089, 9063, 8405, 8869, 24, + 7089, 9063, 8405, 8869, 42, + 7089, 9063, 8405, 8869, 9365, 12, + 7089, 9063, 8405, 8983, 6, + 7089, 9063, 8405, 9313, 5836, + 7089, 9063, 8405, 9365, 6, + 7089, 9063, 8405, 9365, 10, + 7089, 9063, 8405, 9365, 12, + 7089, 9063, 8405, 9365, 34, + 7089, 9063, 8405, 9365, 36, + 7089, 9063, 8405, 9365, 38, + 7089, 9063, 8405, 9808, + 7089, 9063, 8405, 10489, 5, 6121, 1044, + 7089, 9063, 8405, 10489, 8, + 7089, 9063, 8405, 10494, + 7089, 9063, 8405, 10640, + 7089, 9063, 8405, 10786, + 7089, 9063, 8405, 10787, 6121, 6616, + 7089, 9063, 8405, 11879, 50, + 7089, 9063, 8405, 12507, 42, + 7089, 9063, 8405, 12507, 344, + 7089, 9063, 8405, 12935, 710, + 7089, 9063, 8405, 12935, 3244, + 7089, 9063, 10301, 268, + 7089, 9063, 10301, 426, + 7089, 11261, 7593, 8405, 0, + 7089, 11261, 7593, 8405, 8, + 7089, 11261, 7593, 8405, 16, + 7089, 11261, 7593, 8405, 18, + 7089, 11261, 7593, 8405, 28, + 7089, 11261, 7593, 8405, 34, + 7089, 11261, 7593, 8405, 40, + 7089, 11261, 7593, 8405, 42, + 7089, 11261, 7593, 8405, 46, + 7089, 11261, 7593, 8405, 7494, + 7089, 11619, 8405, 17, 7112, + 7089, 11619, 8405, 9007, 24, + 7089, 11619, 8405, 10267, 24, + 7089, 11619, 8405, 10489, 10, + 7089, 11619, 8405, 10489, 30, + 7098, + 7101, 4849, 10637, 7533, 9051, 10380, + 7101, 7443, 10637, 7533, 9051, 10380, + 7101, 7512, + 7101, 10677, 760, + 7103, 5759, 1802, + 7103, 5759, 5620, + 7103, 5759, 11076, + 7103, 5759, 11130, + 7103, 6689, 2170, + 7103, 6689, 2540, + 7103, 6689, 2778, + 7103, 6689, 4200, + 7103, 6689, 4214, + 7103, 6689, 5190, + 7103, 6689, 6260, + 7103, 6689, 6722, + 7103, 6689, 7508, + 7103, 6689, 7694, + 7103, 7593, 8405, 306, + 7103, 7593, 8405, 332, + 7103, 7593, 8405, 364, + 7103, 7593, 8405, 392, + 7103, 7593, 8405, 462, + 7103, 7593, 8405, 510, + 7103, 7593, 8405, 556, + 7103, 7593, 8405, 2030, + 7103, 7593, 8405, 9870, + 7103, 7803, 5759, 0, + 7103, 7803, 5759, 8, + 7103, 7803, 5759, 16, + 7103, 7803, 5759, 28, + 7103, 7803, 5759, 40, + 7103, 7803, 5759, 72, + 7103, 7803, 5759, 92, + 7103, 7803, 5759, 162, + 7103, 7803, 5759, 440, + 7103, 8405, 100, + 7103, 8405, 116, + 7103, 8405, 138, + 7103, 8405, 216, + 7103, 8405, 236, + 7103, 8405, 292, + 7103, 8405, 306, + 7103, 8405, 332, + 7103, 8405, 364, + 7103, 8405, 392, + 7103, 8405, 462, + 7103, 8405, 510, + 7103, 8405, 524, + 7103, 8405, 556, + 7103, 8405, 622, + 7103, 8405, 652, + 7103, 8405, 792, + 7103, 8405, 884, + 7103, 8405, 996, + 7103, 8405, 1260, + 7103, 8405, 1512, + 7103, 8405, 1612, + 7103, 8405, 2030, + 7103, 8405, 2212, + 7103, 8405, 2516, + 7103, 8405, 2566, + 7103, 8405, 2678, + 7103, 8405, 3028, + 7103, 10469, 4926, + 7103, 11257, 8405, 510, + 7103, 11257, 8405, 622, + 7103, 11257, 8405, 652, + 7103, 12017, 4926, + 7103, 13033, 8404, + 7121, 2171, 8159, 6510, + 7121, 2171, 9615, 6510, + 7121, 4201, 9259, 6510, + 7121, 4389, 6510, + 7121, 4389, 8056, + 7121, 4389, 9367, 7821, 8056, + 7121, 4849, 10465, 9947, 730, + 7121, 4849, 10642, + 7121, 4849, 12857, 12901, 6434, + 7121, 6507, 10502, + 7121, 7443, 8077, 6121, 1044, + 7121, 7443, 8570, + 7121, 7443, 10465, 9947, 730, + 7121, 7443, 10513, 7821, 8744, + 7121, 7443, 10642, + 7121, 7443, 12857, 10763, 6434, + 7121, 7443, 12933, 7821, 8744, + 7121, 7509, 9259, 6510, + 7121, 7695, 9259, 6510, + 7121, 7695, 10467, 6510, + 7165, 5758, + 7173, 5758, + 7173, 5759, 275, 10642, + 7173, 5759, 6121, 1045, 6490, + 7173, 5759, 6121, 6617, 6376, + 7173, 5759, 6121, 8649, 4112, + 7173, 5759, 6121, 9279, 4112, + 7173, 7708, + 7199, 4205, 5758, + 7199, 7519, 5758, + 7199, 9491, 5758, + 7201, 7711, 10374, + 7201, 7768, + 7201, 7769, 10375, 6121, 1044, + 7201, 7769, 10375, 6121, 5444, + 7201, 7821, 10677, 760, + 7201, 8745, 7769, 10374, + 7201, 8745, 12493, 10374, + 7201, 9095, 1045, 10374, + 7201, 9095, 5445, 10374, + 7201, 9095, 7711, 10374, + 7201, 9437, 444, + 7201, 9437, 720, + 7201, 9610, + 7201, 10780, + 7201, 11262, + 7201, 12492, + 7202, + 7209, 5758, + 7271, 4153, 721, 7607, 6113, 6434, + 7271, 4153, 6434, + 7271, 4153, 6435, 721, 7607, 4153, 6434, + 7271, 4153, 6435, 6121, 4530, + 7271, 4153, 6435, 9967, 7271, 6113, 6434, + 7271, 4153, 6435, 9967, 7607, 4153, 6434, + 7271, 4153, 6505, 6434, + 7271, 4153, 7821, 6434, + 7271, 4153, 8153, 6434, + 7271, 6113, 721, 7607, 4153, 6434, + 7271, 6113, 6434, + 7271, 6113, 6435, 569, 4895, 760, + 7271, 6113, 6435, 569, 8076, + 7271, 6113, 6435, 721, 7271, 4153, 6434, + 7271, 6113, 6435, 6121, 4530, + 7271, 6113, 6435, 9967, 7271, 4153, 6434, + 7271, 6113, 6505, 6434, + 7271, 6113, 7821, 6434, + 7271, 6113, 8153, 6434, + 7309, 7609, 4926, + 7309, 8405, 444, + 7309, 8405, 602, + 7309, 8405, 2174, + 7309, 8405, 3236, + 7309, 8405, 3952, + 7309, 8405, 3982, + 7309, 8405, 4348, + 7309, 8405, 4600, + 7309, 8405, 4900, + 7309, 8405, 5018, + 7309, 8405, 5192, + 7309, 8405, 5604, + 7309, 8405, 5628, + 7309, 8405, 6044, + 7309, 8405, 6488, + 7309, 8405, 6558, + 7309, 8405, 6774, + 7309, 8405, 7356, + 7309, 8405, 7712, + 7309, 8405, 8752, + 7309, 8405, 9246, + 7309, 8405, 9248, + 7309, 8405, 9368, + 7309, 8405, 9504, + 7309, 8405, 10662, + 7309, 8405, 12008, + 7309, 9283, 4926, + 7309, 10489, 9283, 4926, + 7321, 73, 8399, 4926, + 7321, 93, 8399, 4926, + 7321, 5759, 7282, + 7321, 5759, 8916, + 7321, 5759, 9824, + 7321, 5759, 9870, + 7321, 5759, 9904, + 7321, 5759, 11900, + 7321, 6689, 2170, + 7321, 6689, 2540, + 7321, 6689, 2778, + 7321, 6689, 4200, + 7321, 6689, 4214, + 7321, 6689, 5190, + 7321, 6689, 6260, + 7321, 6689, 6722, + 7321, 6689, 7508, + 7321, 6689, 7694, + 7321, 7803, 5759, 8, + 7321, 7803, 5759, 16, + 7321, 7803, 5759, 28, + 7321, 7803, 5759, 40, + 7321, 7803, 5759, 58, + 7321, 7803, 5759, 72, + 7321, 7803, 5759, 92, + 7321, 7803, 5759, 266, + 7321, 7803, 5759, 606, + 7321, 7803, 5759, 9827, 22, + 7321, 7803, 5759, 9827, 34, + 7321, 7803, 5759, 9827, 344, + 7321, 7803, 5759, 9827, 518, + 7321, 8322, + 7321, 8405, 0, + 7321, 8405, 8, + 7321, 8405, 16, + 7321, 8405, 28, + 7321, 8405, 40, + 7321, 8405, 58, + 7321, 8405, 72, + 7321, 8405, 92, + 7321, 8405, 100, + 7321, 8405, 116, + 7321, 8405, 138, + 7321, 8405, 216, + 7321, 8405, 236, + 7321, 8405, 266, + 7321, 8405, 292, + 7321, 8405, 306, + 7321, 8405, 332, + 7321, 8405, 364, + 7321, 8405, 392, + 7321, 8405, 462, + 7321, 8405, 510, + 7321, 8405, 524, + 7321, 8405, 556, + 7321, 8405, 606, + 7321, 8405, 610, + 7321, 8405, 622, + 7321, 8405, 652, + 7321, 8405, 792, + 7321, 8405, 884, + 7321, 8405, 974, + 7321, 8405, 996, + 7321, 8405, 1260, + 7321, 8405, 1512, + 7321, 8405, 1612, + 7321, 8405, 1796, + 7321, 8405, 2030, + 7321, 8405, 2076, + 7321, 8405, 2126, + 7321, 8405, 2212, + 7321, 8405, 2410, + 7321, 8405, 2438, + 7321, 8405, 2516, + 7321, 8405, 2566, + 7321, 8405, 2678, + 7321, 8405, 2746, + 7321, 8405, 3110, + 7321, 8405, 4016, + 7321, 8405, 5994, + 7321, 8405, 9827, 22, + 7321, 8405, 9827, 34, + 7321, 8405, 9827, 344, + 7321, 8405, 9827, 518, + 7325, 5758, + 7349, 8774, + 7377, 429, 10263, 5758, + 7380, + 7387, 5758, + 7390, + 7393, 8677, 8774, + 7424, + 7443, 731, 12473, 9050, + 7443, 1809, 11715, 9050, + 7443, 2171, 8159, 6510, + 7443, 4197, 5878, + 7443, 4389, 6505, 8056, + 7443, 4389, 6510, + 7443, 5876, + 7443, 6408, + 7443, 6409, 6121, 730, + 7443, 6409, 6121, 10959, 8963, 6434, + 7443, 6409, 8151, 12877, 8450, + 7443, 6409, 9050, + 7443, 6409, 9051, 6121, 1044, + 7443, 6409, 9817, 6121, 8744, + 7443, 6409, 12877, 8450, + 7443, 6435, 6121, 7593, 8056, + 7443, 6435, 6121, 9095, 5444, + 7443, 6505, 10637, 7533, 9050, + 7443, 6505, 11677, 9050, + 7443, 6627, 9050, + 7443, 6627, 9051, 7121, 4530, + 7443, 6627, 9051, 7773, 4530, + 7443, 6627, 9051, 8473, 7370, + 7443, 6792, + 7443, 7327, 4676, + 7443, 7821, 6627, 9050, + 7443, 7821, 8077, 9050, + 7443, 7821, 8745, 9050, + 7443, 7821, 10637, 7533, 9050, + 7443, 7821, 11677, 9050, + 7443, 7821, 12114, + 7443, 8077, 9050, + 7443, 8151, 12877, 9050, + 7443, 8153, 6409, 9050, + 7443, 8153, 6435, 6121, 9645, 4398, + 7443, 8153, 8933, 6778, + 7443, 8153, 11195, 4926, + 7443, 8153, 12114, + 7443, 8521, 8191, 11793, 9610, + 7443, 8631, 10371, 9050, + 7443, 8717, 11195, 4926, + 7443, 8745, 9050, + 7443, 8745, 9051, 6121, 5935, 275, 2725, 8076, + 7443, 8745, 9051, 6121, 5935, 275, 8005, 8076, + 7443, 8745, 9051, 6121, 7412, + 7443, 8745, 9051, 6121, 10666, + 7443, 8745, 9051, 7121, 8076, + 7443, 8745, 9051, 7773, 8076, + 7443, 8745, 9051, 10982, + 7443, 8933, 6778, + 7443, 9074, + 7443, 10493, 753, 10794, + 7443, 10523, 41, 9050, + 7443, 10637, 7533, 9050, + 7443, 10642, + 7443, 10643, 6377, 4849, 10642, + 7443, 10677, 761, 6121, 7412, + 7443, 10677, 827, 4876, + 7443, 11793, 9610, + 7443, 12114, + 7443, 12115, 7121, 4530, + 7443, 12115, 7773, 4530, + 7443, 12115, 10982, + 7443, 12877, 9050, + 7443, 13029, 9050, + 7453, 89, 5758, + 7453, 7765, 5758, + 7453, 9167, 9679, 5758, + 7453, 9513, 2170, + 7453, 9513, 2171, 9344, + 7453, 9513, 2171, 9345, 10624, + 7453, 9513, 2171, 10624, + 7453, 9513, 2171, 10625, 5, 6, + 7453, 9513, 2540, + 7453, 9513, 2541, 4839, 4212, + 7453, 9513, 2670, + 7453, 9513, 2671, 10624, + 7453, 9513, 2778, + 7453, 9513, 4200, + 7453, 9513, 4201, 9344, + 7453, 9513, 4201, 10624, + 7453, 9513, 4214, + 7453, 9513, 5190, + 7453, 9513, 6722, + 7453, 9513, 6784, + 7453, 9513, 6785, 6715, 4212, + 7453, 9513, 6785, 10624, + 7453, 9513, 7508, + 7453, 9513, 7694, + 7453, 9513, 8162, + 7453, 9513, 8874, + 7453, 9513, 10489, 2171, 9344, + 7453, 9675, 5758, + 7453, 9679, 5758, + 7453, 9691, 5758, + 7453, 9995, 5758, + 7453, 10511, 5758, + 7453, 10757, 5758, + 7453, 10961, 5758, + 7453, 11193, 5758, + 7453, 11797, 5758, + 7467, 6623, 12132, + 7467, 7935, 8774, + 7467, 8405, 4, + 7467, 8405, 6, + 7467, 8405, 8, + 7467, 8405, 12, + 7467, 8405, 28, + 7467, 8405, 32, + 7467, 8405, 42, + 7467, 8405, 44, + 7467, 8405, 46, + 7467, 8405, 48, + 7467, 8405, 50, + 7467, 8405, 63, 0, + 7467, 8405, 426, + 7467, 8405, 438, + 7467, 8405, 447, 28, + 7467, 8405, 662, + 7467, 8405, 878, + 7467, 8405, 1090, + 7467, 8405, 1110, + 7467, 8405, 1130, + 7467, 8405, 1220, + 7467, 8405, 1244, + 7467, 8405, 1486, + 7467, 8405, 1494, + 7467, 8405, 3230, + 7467, 8405, 3840, + 7467, 8405, 4185, 4189, 199, 10, + 7467, 8405, 4265, 4381, 12, + 7467, 8405, 4617, 283, 1501, 16, + 7467, 8405, 4625, 1114, + 7467, 8405, 4731, 20, + 7467, 8405, 5828, + 7467, 8405, 6059, 603, 40, + 7467, 8405, 6401, 6738, + 7467, 8405, 6415, 0, + 7467, 8405, 6554, + 7467, 8405, 6635, 3979, 6, + 7467, 8405, 6721, 167, 8, + 7467, 8405, 6891, 14, + 7467, 8405, 6997, 18, + 7467, 8405, 7028, + 7467, 8405, 7419, 2383, 5533, 34, + 7467, 8405, 7567, 13213, 36, + 7467, 8405, 7719, 2699, 2789, 38, + 7467, 8405, 7835, 6139, 44, + 7467, 8405, 8283, 14, + 7467, 8405, 8312, + 7467, 8405, 8391, 4829, 4891, 22, + 7467, 8405, 8441, 1861, 24, + 7467, 8405, 8501, 2129, 5057, 26, + 7467, 8405, 8540, + 7467, 8405, 8579, 8575, 30, + 7467, 8405, 8727, 36, + 7467, 8405, 9132, + 7467, 8405, 9543, 6759, 28, + 7467, 8405, 9911, 6495, 9047, 2, + 7467, 8405, 10132, + 7467, 8405, 10134, + 7467, 8405, 10136, + 7467, 8405, 10627, 7699, 7692, + 7467, 8405, 12482, + 7467, 8405, 13013, 0, + 7467, 8405, 13014, + 7467, 8405, 13057, 66, + 7467, 8405, 13058, + 7467, 8405, 13073, 28, + 7467, 8405, 13075, 36, + 7467, 8405, 13077, 38, + 7467, 8405, 13211, 28, + 7467, 8405, 13227, 24, + 7467, 8405, 13229, 26, + 7467, 8405, 13339, 24, + 7467, 8405, 13377, 14, + 7467, 8405, 13391, 14, + 7467, 8405, 13399, 2, + 7467, 8717, 12132, + 7467, 9909, 8774, + 7467, 10349, 12132, + 7467, 10657, 8774, + 7469, 5758, + 7551, 601, 5876, + 7551, 601, 5877, 6121, 10666, + 7551, 601, 5877, 6377, 7551, 4117, 5876, + 7551, 4117, 5876, + 7551, 4117, 5877, 6121, 9546, + 7551, 4849, 5876, + 7551, 11765, 6435, 6377, 11097, 6434, + 7579, 721, 11466, + 7588, + 7593, 175, 3992, + 7593, 2857, 6121, 10666, + 7593, 4223, 5836, + 7593, 4849, 6627, 9050, + 7593, 4849, 10637, 7533, 9050, + 7593, 4849, 12114, + 7593, 5445, 5758, + 7593, 6610, + 7593, 6616, + 7593, 7443, 6627, 9050, + 7593, 7443, 10637, 7533, 9050, + 7593, 7443, 12114, + 7593, 7453, 9513, 2170, + 7593, 7453, 9513, 2171, 9344, + 7593, 7453, 9513, 2171, 10624, + 7593, 7453, 9513, 2540, + 7593, 7453, 9513, 2670, + 7593, 7453, 9513, 2778, + 7593, 7453, 9513, 4200, + 7593, 7453, 9513, 4201, 9344, + 7593, 7453, 9513, 4214, + 7593, 7453, 9513, 5190, + 7593, 7453, 9513, 6722, + 7593, 7453, 9513, 6784, + 7593, 7453, 9513, 7508, + 7593, 7453, 9513, 7694, + 7593, 7453, 9513, 8162, + 7593, 7453, 9513, 8874, + 7593, 7708, + 7593, 8129, 5758, + 7593, 8167, 5758, + 7593, 8525, 5758, + 7593, 9263, 428, + 7593, 9263, 429, 6121, 9546, + 7593, 9263, 429, 6121, 10677, 761, 91, 1109, 429, 11649, 8758, + 7593, 9581, 5758, + 7593, 9633, 9718, + 7593, 9898, + 7593, 9959, 89, 8466, + 7593, 9959, 6121, 9546, + 7593, 9959, 6121, 10677, 761, 91, 1109, 429, 11649, 8758, + 7593, 10469, 4926, + 7593, 10708, + 7593, 11099, 5758, + 7593, 11224, + 7593, 11451, 90, + 7593, 12017, 4926, + 7593, 12043, 6616, + 7593, 12473, 5758, + 7593, 12478, + 7595, 9610, + 7598, + 7605, 11201, 10782, + 7607, 4153, 6434, + 7607, 4153, 6435, 569, 8076, + 7607, 4153, 6435, 721, 7607, 6113, 6434, + 7607, 4153, 6435, 6121, 4530, + 7607, 4153, 6435, 9967, 7271, 4153, 6434, + 7607, 4153, 6505, 6434, + 7607, 4153, 7821, 6434, + 7607, 4153, 8153, 6434, + 7607, 6113, 6434, + 7607, 6113, 6435, 721, 7271, 6113, 6434, + 7607, 6113, 6435, 6121, 4530, + 7607, 6113, 6505, 6434, + 7607, 6113, 7821, 6434, + 7607, 6113, 8153, 6434, + 7608, + 7619, 6505, 11765, 6434, + 7627, 429, 8298, + 7627, 429, 11886, + 7659, 3992, + 7665, 89, 6377, 5758, + 7665, 93, 8399, 4926, + 7665, 436, + 7665, 973, 5758, + 7665, 5759, 8916, + 7665, 5759, 9824, + 7665, 5759, 9870, + 7665, 6197, 5758, + 7665, 6673, 5758, + 7665, 6689, 2170, + 7665, 6689, 2540, + 7665, 6689, 2778, + 7665, 6689, 4200, + 7665, 6689, 4214, + 7665, 6689, 5190, + 7665, 6689, 6260, + 7665, 6689, 6722, + 7665, 6689, 7508, + 7665, 6689, 7694, + 7665, 7183, 5758, + 7665, 7469, 5758, + 7665, 7803, 5759, 8, + 7665, 7803, 5759, 16, + 7665, 7803, 5759, 28, + 7665, 7803, 5759, 40, + 7665, 7803, 5759, 58, + 7665, 7803, 5759, 72, + 7665, 7803, 5759, 92, + 7665, 7803, 5759, 162, + 7665, 7803, 5759, 266, + 7665, 7803, 5759, 440, + 7665, 7803, 5759, 606, + 7665, 8081, 5758, + 7665, 8405, 0, + 7665, 8405, 8, + 7665, 8405, 16, + 7665, 8405, 28, + 7665, 8405, 40, + 7665, 8405, 58, + 7665, 8405, 72, + 7665, 8405, 92, + 7665, 8405, 116, + 7665, 8405, 162, + 7665, 8405, 236, + 7665, 8405, 266, + 7665, 8405, 292, + 7665, 8405, 306, + 7665, 8405, 332, + 7665, 8405, 364, + 7665, 8405, 392, + 7665, 8405, 440, + 7665, 8405, 462, + 7665, 8405, 510, + 7665, 8405, 524, + 7665, 8405, 556, + 7665, 8405, 606, + 7665, 8405, 610, + 7665, 8405, 652, + 7665, 8405, 1796, + 7665, 8405, 2030, + 7665, 8405, 2076, + 7665, 8405, 2126, + 7665, 8405, 2438, + 7665, 8405, 2516, + 7665, 8405, 2566, + 7665, 8405, 2746, + 7665, 8405, 4888, + 7665, 8405, 5234, + 7665, 8525, 2171, 9344, + 7665, 8525, 2171, 10624, + 7665, 8525, 2670, + 7665, 8525, 5758, + 7681, 4103, 2091, 6764, + 7681, 8174, + 7695, 1045, 12132, + 7695, 11097, 7944, + 7695, 11765, 7944, + 7695, 11913, 8167, 7570, + 7695, 11943, 6408, + 7707, 11861, 11242, + 7708, + 7709, 6121, 1045, 6376, + 7709, 6121, 1045, 6490, + 7709, 6121, 5551, 6376, + 7709, 10374, + 7709, 10375, 6121, 1045, 6376, + 7709, 10375, 6121, 8649, 4112, + 7709, 10375, 6377, 11097, 6434, + 7709, 10375, 6377, 11765, 6434, + 7711, 6121, 4849, 4389, 6504, + 7711, 6121, 7443, 4389, 6504, + 7729, 8654, + 7733, 4927, 5758, + 7768, + 7769, 6121, 7173, 5758, + 7769, 6121, 9437, 444, + 7769, 6121, 9546, + 7769, 6377, 761, 6377, 12492, + 7769, 6377, 12492, + 7769, 7991, 721, 8329, 6121, 7768, + 7773, 2171, 8159, 6510, + 7773, 4389, 6510, + 7773, 4389, 8056, + 7773, 4389, 9367, 7821, 8056, + 7773, 4849, 445, 7121, 7443, 6627, 9051, 9664, + 7773, 4849, 8077, 6121, 1044, + 7773, 4849, 10465, 9947, 730, + 7773, 4849, 10642, + 7773, 6507, 10502, + 7773, 7443, 445, 7121, 4849, 6627, 9051, 9664, + 7773, 7443, 8570, + 7773, 7443, 10465, 9947, 730, + 7773, 7443, 10513, 7821, 8744, + 7773, 7443, 10642, + 7773, 7443, 12933, 7821, 8744, + 7794, + 7798, + 7810, + 7819, 429, 8112, + 7821, 601, 10441, 6992, + 7821, 2048, + 7821, 2587, 6121, 5528, + 7821, 3949, 5842, + 7821, 4117, 10441, 6992, + 7821, 4202, + 7821, 4215, 9601, 5830, + 7821, 4849, 10441, 6992, + 7821, 5830, + 7821, 6081, 7593, 8744, + 7821, 6571, 4760, + 7821, 6571, 5404, + 7821, 6571, 5564, + 7821, 6571, 7410, + 7821, 6571, 7996, + 7821, 6571, 8368, + 7821, 6907, 5842, + 7821, 7085, 8744, + 7821, 7443, 10441, 6992, + 7821, 7547, 7370, + 7821, 7593, 5830, + 7821, 7593, 8744, + 7821, 7593, 9438, + 7821, 7611, 5842, + 7821, 8022, + 7821, 8056, + 7821, 8057, 6121, 1045, 7442, + 7821, 8057, 6121, 2779, 4112, + 7821, 8057, 6121, 4117, 6434, + 7821, 8057, 6121, 7121, 4849, 10464, + 7821, 8057, 6121, 7121, 7443, 10464, + 7821, 8057, 6121, 7773, 4849, 10464, + 7821, 8057, 6121, 7773, 7443, 10464, + 7821, 8463, 5830, + 7821, 8463, 7593, 8744, + 7821, 8463, 8744, + 7821, 8463, 9158, + 7821, 8463, 9438, + 7821, 8691, 1044, + 7821, 8744, + 7821, 8745, 6121, 7121, 4849, 10464, + 7821, 8745, 6121, 7121, 7443, 10464, + 7821, 8745, 6121, 7773, 4849, 10464, + 7821, 8745, 6121, 7773, 7443, 10464, + 7821, 8745, 6121, 8037, 10677, 4876, + 7821, 8745, 6121, 9645, 9118, + 7821, 8745, 6121, 10677, 10739, 4876, + 7821, 8745, 6121, 11097, 5934, + 7821, 8745, 6121, 11765, 5934, + 7821, 8745, 11461, 6505, 7593, 8744, + 7821, 9158, + 7821, 9159, 5842, + 7821, 9159, 6121, 9079, 1044, + 7821, 9159, 11461, 6505, 7593, 9158, + 7821, 9338, + 7821, 9711, 4178, + 7821, 10143, 1860, + 7821, 10143, 4760, + 7821, 10194, + 7821, 10209, 4178, + 7821, 10420, + 7821, 10502, + 7821, 10643, 11461, 7593, 7821, 10642, + 7821, 10677, 760, + 7821, 10677, 9264, + 7821, 10677, 11202, + 7821, 11036, + 7821, 11202, + 7821, 11354, + 7821, 11364, + 7821, 11649, 9264, + 7821, 12383, 7593, 10642, + 7821, 12383, 10642, + 7821, 12383, 10643, 6121, 1044, + 7821, 12917, 9158, + 7821, 12917, 9159, 6121, 11097, 5934, + 7821, 12917, 9159, 6121, 11765, 5934, + 7821, 12931, 7593, 10642, + 7821, 12931, 10642, + 7821, 12967, 7593, 10642, + 7821, 12967, 9602, + 7821, 12967, 10642, + 7821, 12984, + 7821, 13067, 7593, 10642, + 7821, 13067, 9602, + 7821, 13067, 10420, + 7821, 13067, 10642, + 7911, 1049, 9467, 6791, 9748, + 7911, 6129, 11229, 1044, + 7911, 6129, 11229, 4876, + 7911, 6569, 4926, + 7911, 8423, 9467, 6791, 9748, + 7911, 8525, 2170, + 7911, 8525, 2171, 9344, + 7911, 8525, 2171, 10624, + 7911, 8525, 2540, + 7911, 8525, 2541, 9344, + 7911, 8525, 2541, 10624, + 7911, 8525, 2670, + 7911, 8525, 2671, 10624, + 7911, 8525, 2778, + 7911, 8525, 2779, 9344, + 7911, 8525, 2779, 10624, + 7911, 8525, 4200, + 7911, 8525, 4201, 9344, + 7911, 8525, 4201, 10624, + 7911, 8525, 4214, + 7911, 8525, 4215, 9344, + 7911, 8525, 4215, 10624, + 7911, 8525, 5190, + 7911, 8525, 5191, 9344, + 7911, 8525, 5191, 10624, + 7911, 8525, 6722, + 7911, 8525, 6723, 9344, + 7911, 8525, 6723, 10624, + 7911, 8525, 6784, + 7911, 8525, 6785, 10624, + 7911, 8525, 6804, + 7911, 8525, 6805, 10624, + 7911, 8525, 7508, + 7911, 8525, 7509, 9344, + 7911, 8525, 7509, 10624, + 7911, 8525, 7576, + 7911, 8525, 7577, 10624, + 7911, 8525, 7694, + 7911, 8525, 7695, 9344, + 7911, 8525, 7695, 10624, + 7911, 8525, 8160, + 7911, 8525, 8161, 10624, + 7911, 8525, 8514, + 7911, 8525, 8515, 10624, + 7911, 8525, 8820, + 7911, 8525, 8821, 10624, + 7911, 8525, 8876, + 7911, 8525, 8877, 10624, + 7911, 8525, 9672, + 7911, 8525, 9673, 10624, + 7911, 8931, 3717, 6052, + 7911, 8931, 6791, 9748, + 7911, 8931, 7687, 9748, + 7911, 8931, 8233, 9748, + 7911, 8931, 8681, 9748, + 7911, 9467, 7687, 9748, + 7911, 9467, 8681, 9748, + 7919, 6741, 445, 6741, 568, + 7919, 6741, 568, + 7919, 6741, 569, 6121, 11449, 7908, + 7922, + 7931, 1109, 429, 3288, + 7931, 2396, + 7931, 3997, 11228, + 7931, 4201, 9601, 5830, + 7931, 4223, 5836, + 7931, 4927, 5241, 8260, + 7931, 5759, 5521, 8995, 3262, + 7931, 5759, 7176, + 7931, 5759, 7476, + 7931, 5759, 7486, + 7931, 5759, 7917, 9894, + 7931, 5759, 8715, 10708, + 7931, 5759, 8715, 12523, 1894, + 7931, 5759, 11350, + 7931, 5759, 12137, 7916, + 7931, 5759, 12159, 7917, 11396, + 7931, 5879, 10204, + 7931, 6616, + 7931, 6644, + 7931, 6645, 8461, 4212, + 7931, 6645, 10275, 4212, + 7931, 6731, 8037, 1809, 5836, + 7931, 6731, 8037, 4423, 5836, + 7931, 6772, + 7931, 6773, 6121, 2779, 4112, + 7931, 6773, 8461, 4212, + 7931, 6773, 10275, 4212, + 7931, 6895, 6376, + 7931, 6895, 6490, + 7931, 7026, + 7931, 7027, 8461, 4212, + 7931, 7027, 10275, 4212, + 7931, 7377, 429, 8658, + 7931, 7593, 1809, 4942, + 7931, 7593, 1809, 5648, + 7931, 7593, 2918, + 7931, 7593, 3052, + 7931, 7593, 4423, 1739, 3244, + 7931, 7593, 4423, 2640, + 7931, 7593, 4423, 3052, + 7931, 7593, 4423, 4630, + 7931, 7593, 4423, 4943, 9363, 4212, + 7931, 7593, 4423, 4943, 10275, 4212, + 7931, 7593, 4423, 5240, + 7931, 7593, 4423, 5648, + 7931, 7593, 4423, 6254, + 7931, 7593, 4423, 7124, + 7931, 7593, 4423, 7695, 4112, + 7931, 7593, 4423, 9185, 4399, 429, 4736, + 7931, 7593, 4423, 9645, 6260, + 7931, 7593, 4423, 9807, 12139, 6260, + 7931, 7593, 4423, 10301, 2285, 6121, 1739, 6121, 3245, 9448, + 7931, 7593, 4423, 10301, 2485, 6121, 1739, 6121, 3245, 9448, + 7931, 7593, 4423, 10301, 3245, 6121, 1739, 6121, 3052, + 7931, 7593, 6644, + 7931, 7593, 6772, + 7931, 7593, 7026, + 7931, 7633, 429, 2451, 173, 4424, + 7931, 7650, + 7931, 7651, 8461, 4212, + 7931, 7651, 10275, 4212, + 7931, 7803, 5759, 1045, 6490, + 7931, 7803, 5759, 7593, 43, 6376, + 7931, 7803, 5759, 10267, 7593, 43, 6376, + 7931, 8405, 8, + 7931, 8405, 9, 6789, 4212, + 7931, 8405, 9, 8461, 4212, + 7931, 8405, 9, 9363, 4212, + 7931, 8405, 9, 10275, 4212, + 7931, 8405, 40, + 7931, 8405, 41, 6121, 6895, 6376, + 7931, 8405, 41, 6121, 6895, 6377, 10275, 4212, + 7931, 8405, 41, 6789, 4212, + 7931, 8405, 41, 10275, 4212, + 7931, 8405, 66, + 7931, 8405, 400, + 7931, 8405, 401, 6789, 4212, + 7931, 8405, 401, 8461, 4212, + 7931, 8405, 401, 9363, 4212, + 7931, 8405, 401, 10275, 4212, + 7931, 8405, 426, + 7931, 8405, 427, 6789, 4212, + 7931, 8405, 427, 10275, 4212, + 7931, 8405, 612, + 7931, 8405, 613, 6789, 4212, + 7931, 8405, 613, 10275, 4212, + 7931, 8405, 664, + 7931, 8405, 665, 6789, 4212, + 7931, 8405, 665, 10275, 4212, + 7931, 8405, 710, + 7931, 8405, 711, 6121, 2779, 4113, 6376, + 7931, 8405, 711, 6121, 2779, 4113, 11877, 6376, + 7931, 8405, 711, 6121, 7695, 4113, 6376, + 7931, 8405, 711, 6121, 7695, 4113, 10441, 10959, 6376, + 7931, 8405, 711, 6789, 4212, + 7931, 8405, 711, 8461, 4212, + 7931, 8405, 711, 9363, 4212, + 7931, 8405, 711, 10275, 4212, + 7931, 8405, 780, + 7931, 8405, 781, 6121, 1045, 6491, 721, 7695, 4113, 6376, + 7931, 8405, 781, 6121, 2779, 4113, 6491, 721, 1045, 6376, + 7931, 8405, 781, 6121, 7593, 42, + 7931, 8405, 781, 6121, 7695, 4113, 10441, 9811, 6490, + 7931, 8405, 781, 6121, 7695, 4113, 10441, 9811, 6491, 721, 2779, 4113, 6376, + 7931, 8405, 781, 6121, 7695, 4113, 12477, 6490, + 7931, 8405, 781, 6121, 10267, 7593, 43, 6490, + 7931, 8405, 781, 6789, 4212, + 7931, 8405, 781, 8461, 4212, + 7931, 8405, 781, 9363, 4212, + 7931, 8405, 781, 10275, 4212, + 7931, 8405, 956, + 7931, 8405, 957, 6121, 1045, 6490, + 7931, 8405, 957, 6789, 4212, + 7931, 8405, 957, 8461, 4212, + 7931, 8405, 957, 9363, 4212, + 7931, 8405, 957, 10275, 4212, + 7931, 8405, 960, + 7931, 8405, 961, 6121, 1045, 6490, + 7931, 8405, 961, 6121, 1045, 6491, 721, 7593, 2640, + 7931, 8405, 961, 6121, 2779, 4113, 11877, 6491, 721, 7593, 2640, + 7931, 8405, 961, 6121, 4215, 4113, 6376, + 7931, 8405, 961, 6121, 5550, + 7931, 8405, 961, 6121, 7695, 4113, 6377, 10958, + 7931, 8405, 961, 6121, 10267, 42, + 7931, 8405, 961, 6121, 10267, 7593, 43, 6490, + 7931, 8405, 961, 6789, 4212, + 7931, 8405, 961, 10275, 4212, + 7931, 8405, 1056, + 7931, 8405, 1057, 6789, 4212, + 7931, 8405, 1057, 10275, 4212, + 7931, 8405, 1152, + 7931, 8405, 1153, 6121, 1045, 6490, + 7931, 8405, 1153, 6121, 1045, 7189, 6490, + 7931, 8405, 1153, 6121, 2779, 4113, 6490, + 7931, 8405, 1153, 6121, 7695, 4113, 6490, + 7931, 8405, 1153, 6121, 7695, 4113, 10441, 9811, 6490, + 7931, 8405, 1153, 6789, 4212, + 7931, 8405, 1153, 8461, 4212, + 7931, 8405, 1153, 9363, 4212, + 7931, 8405, 1153, 10275, 4212, + 7931, 8405, 1208, + 7931, 8405, 1209, 6121, 2779, 4113, 6490, + 7931, 8405, 1209, 6121, 5550, + 7931, 8405, 1209, 6121, 7695, 4113, 6376, + 7931, 8405, 1209, 6789, 4212, + 7931, 8405, 1209, 8461, 4212, + 7931, 8405, 1209, 9363, 4212, + 7931, 8405, 1209, 10275, 4212, + 7931, 8405, 1342, + 7931, 8405, 1343, 6121, 2779, 4113, 6376, + 7931, 8405, 1343, 6121, 2779, 4113, 10677, 6376, + 7931, 8405, 1343, 6121, 6895, 6376, + 7931, 8405, 1343, 6121, 7593, 7931, 8405, 2641, 721, 2779, 4112, + 7931, 8405, 1343, 6121, 7593, 7931, 8405, 2641, 6376, + 7931, 8405, 1343, 6121, 7593, 7931, 8405, 2641, 6490, + 7931, 8405, 1343, 6121, 7695, 4113, 6376, + 7931, 8405, 1343, 6121, 7695, 4113, 10441, 9811, 6490, + 7931, 8405, 1343, 6121, 10173, 12403, 6689, 4215, 6490, + 7931, 8405, 1343, 6789, 4212, + 7931, 8405, 1343, 8461, 4212, + 7931, 8405, 1343, 9363, 4212, + 7931, 8405, 1343, 10275, 4212, + 7931, 8405, 1358, + 7931, 8405, 1359, 4340, + 7931, 8405, 1359, 4341, 6121, 6895, 6376, + 7931, 8405, 1359, 4341, 6789, 4212, + 7931, 8405, 1359, 4341, 8461, 4212, + 7931, 8405, 1359, 4341, 9363, 4212, + 7931, 8405, 1359, 4341, 10275, 4212, + 7931, 8405, 1359, 6121, 3053, 6376, + 7931, 8405, 1359, 6121, 3053, 6377, 6789, 4212, + 7931, 8405, 1359, 6121, 3053, 6377, 10275, 4212, + 7931, 8405, 1359, 6121, 10267, 42, + 7931, 8405, 1359, 6789, 4212, + 7931, 8405, 1359, 8461, 4212, + 7931, 8405, 1359, 9363, 4212, + 7931, 8405, 1359, 10275, 4212, + 7931, 8405, 1359, 11948, + 7931, 8405, 1359, 11949, 6789, 4212, + 7931, 8405, 1359, 11949, 8461, 4212, + 7931, 8405, 1359, 11949, 9363, 4212, + 7931, 8405, 1359, 11949, 10275, 4212, + 7931, 8405, 1508, + 7931, 8405, 1509, 6789, 4212, + 7931, 8405, 1509, 10275, 4212, + 7931, 8405, 1578, + 7931, 8405, 1579, 6121, 1045, 6376, + 7931, 8405, 1579, 6121, 2779, 4113, 6376, + 7931, 8405, 1579, 6121, 5550, + 7931, 8405, 1579, 6121, 7695, 4113, 6490, + 7931, 8405, 1579, 6789, 4212, + 7931, 8405, 1579, 8461, 4212, + 7931, 8405, 1579, 9363, 4212, + 7931, 8405, 1579, 10275, 4212, + 7931, 8405, 1738, + 7931, 8405, 1739, 6121, 760, + 7931, 8405, 1739, 6121, 1045, 6376, + 7931, 8405, 1739, 6121, 7593, 42, + 7931, 8405, 1739, 6121, 7695, 4113, 6376, + 7931, 8405, 1739, 6121, 7695, 4113, 6490, + 7931, 8405, 1739, 6789, 4212, + 7931, 8405, 1739, 8461, 4212, + 7931, 8405, 1739, 9363, 4212, + 7931, 8405, 1739, 10275, 4212, + 7931, 8405, 2206, + 7931, 8405, 2207, 6789, 4212, + 7931, 8405, 2207, 8461, 4212, + 7931, 8405, 2207, 9363, 4212, + 7931, 8405, 2207, 10275, 4212, + 7931, 8405, 2284, + 7931, 8405, 2285, 6121, 1045, 6376, + 7931, 8405, 2285, 6121, 7695, 4113, 6376, + 7931, 8405, 2285, 6789, 4212, + 7931, 8405, 2285, 8461, 4212, + 7931, 8405, 2285, 9363, 4212, + 7931, 8405, 2285, 10275, 4212, + 7931, 8405, 2404, + 7931, 8405, 2405, 6121, 1045, 6490, + 7931, 8405, 2405, 6121, 1045, 6491, 721, 1045, 6376, + 7931, 8405, 2405, 6121, 2779, 4113, 6376, + 7931, 8405, 2405, 6121, 2779, 4113, 11877, 6376, + 7931, 8405, 2405, 6121, 4215, 4113, 6376, + 7931, 8405, 2405, 6121, 5550, + 7931, 8405, 2405, 6121, 6895, 6376, + 7931, 8405, 2405, 6121, 7593, 42, + 7931, 8405, 2405, 6121, 7593, 43, 6490, + 7931, 8405, 2405, 6121, 7593, 7931, 8405, 2641, 721, 2779, 4112, + 7931, 8405, 2405, 6121, 8758, + 7931, 8405, 2405, 6121, 10267, 42, + 7931, 8405, 2405, 6789, 4212, + 7931, 8405, 2405, 10275, 4212, + 7931, 8405, 2484, + 7931, 8405, 2485, 6121, 2779, 4113, 6490, + 7931, 8405, 2485, 6121, 7695, 4113, 6376, + 7931, 8405, 2485, 6789, 4212, + 7931, 8405, 2485, 8461, 4212, + 7931, 8405, 2485, 9363, 4212, + 7931, 8405, 2485, 10275, 4212, + 7931, 8405, 2640, + 7931, 8405, 2641, 6121, 7695, 4113, 6376, + 7931, 8405, 2641, 6789, 4212, + 7931, 8405, 2641, 8461, 4212, + 7931, 8405, 2641, 9363, 4212, + 7931, 8405, 2641, 10275, 4212, + 7931, 8405, 2668, + 7931, 8405, 2669, 6121, 5550, + 7931, 8405, 2669, 6121, 7695, 4113, 6377, 10958, + 7931, 8405, 2669, 6789, 4212, + 7931, 8405, 2669, 8461, 4212, + 7931, 8405, 2669, 9363, 4212, + 7931, 8405, 2669, 9456, + 7931, 8405, 2669, 9457, 4340, + 7931, 8405, 2669, 9457, 6789, 4212, + 7931, 8405, 2669, 9457, 10275, 4212, + 7931, 8405, 2669, 10275, 4212, + 7931, 8405, 2858, + 7931, 8405, 2859, 6789, 4212, + 7931, 8405, 2859, 8461, 4212, + 7931, 8405, 2859, 9363, 4212, + 7931, 8405, 2859, 10275, 4212, + 7931, 8405, 2918, + 7931, 8405, 2919, 6121, 1045, 6376, + 7931, 8405, 2919, 6121, 2779, 4113, 6376, + 7931, 8405, 2919, 6121, 5550, + 7931, 8405, 2919, 6121, 6895, 6376, + 7931, 8405, 2919, 6121, 6895, 6377, 6789, 4212, + 7931, 8405, 2919, 6121, 6895, 6377, 10275, 4212, + 7931, 8405, 2919, 6121, 10173, 12403, 6689, 2779, 6376, + 7931, 8405, 2919, 6121, 10173, 12403, 6689, 7695, 6376, + 7931, 8405, 2919, 6789, 4212, + 7931, 8405, 2919, 10275, 4212, + 7931, 8405, 3052, + 7931, 8405, 3053, 6121, 5878, + 7931, 8405, 3053, 6121, 6895, 6376, + 7931, 8405, 3053, 6121, 6895, 6377, 6789, 4212, + 7931, 8405, 3053, 6121, 6895, 6377, 8461, 4212, + 7931, 8405, 3053, 6121, 6895, 6377, 9363, 4212, + 7931, 8405, 3053, 6121, 6895, 6377, 10275, 4212, + 7931, 8405, 3053, 6121, 7593, 42, + 7931, 8405, 3053, 6121, 7695, 4113, 6490, + 7931, 8405, 3053, 6789, 4212, + 7931, 8405, 3053, 7982, + 7931, 8405, 3053, 7983, 6121, 6895, 6376, + 7931, 8405, 3053, 7983, 6121, 6895, 6377, 6789, 4212, + 7931, 8405, 3053, 7983, 6121, 6895, 6377, 10275, 4212, + 7931, 8405, 3053, 7983, 6121, 10173, 12403, 6689, 2779, 6376, + 7931, 8405, 3053, 7983, 6121, 10173, 12403, 6689, 7695, 6376, + 7931, 8405, 3053, 7983, 6789, 4212, + 7931, 8405, 3053, 7983, 10275, 4212, + 7931, 8405, 3053, 8461, 4212, + 7931, 8405, 3053, 9363, 4212, + 7931, 8405, 3053, 10275, 4212, + 7931, 8405, 3124, + 7931, 8405, 3125, 6789, 4212, + 7931, 8405, 3125, 8461, 4212, + 7931, 8405, 3125, 9363, 4212, + 7931, 8405, 3125, 10275, 4212, + 7931, 8405, 3244, + 7931, 8405, 3245, 6121, 6107, 6895, 6376, + 7931, 8405, 3245, 6121, 6107, 6895, 6490, + 7931, 8405, 3245, 6121, 6895, 6376, + 7931, 8405, 3245, 6121, 6895, 6377, 6789, 4212, + 7931, 8405, 3245, 6121, 6895, 6377, 10275, 4212, + 7931, 8405, 3245, 6121, 6895, 6490, + 7931, 8405, 3245, 6121, 6895, 6491, 6789, 4212, + 7931, 8405, 3245, 6121, 6895, 6491, 10275, 4212, + 7931, 8405, 3245, 6121, 7125, 6376, + 7931, 8405, 3245, 6121, 7125, 6377, 6789, 4212, + 7931, 8405, 3245, 6121, 7125, 6377, 10275, 4212, + 7931, 8405, 3245, 6121, 10173, 12403, 6689, 2779, 6376, + 7931, 8405, 3245, 6121, 10173, 12403, 6689, 7695, 6376, + 7931, 8405, 3245, 6789, 4212, + 7931, 8405, 3245, 7808, + 7931, 8405, 3245, 7809, 6789, 4212, + 7931, 8405, 3245, 7809, 10275, 4212, + 7931, 8405, 3245, 9448, + 7931, 8405, 3245, 9449, 6789, 4212, + 7931, 8405, 3245, 9449, 10275, 4212, + 7931, 8405, 3245, 10275, 4212, + 7931, 8405, 3766, + 7931, 8405, 3767, 6789, 4212, + 7931, 8405, 3767, 8461, 4212, + 7931, 8405, 3767, 9363, 4212, + 7931, 8405, 3767, 10275, 4212, + 7931, 8405, 4000, + 7931, 8405, 4001, 6789, 4212, + 7931, 8405, 4001, 10275, 4212, + 7931, 8405, 4136, + 7931, 8405, 4137, 6789, 4212, + 7931, 8405, 4137, 8461, 4212, + 7931, 8405, 4137, 9363, 4212, + 7931, 8405, 4137, 10275, 4212, + 7931, 8405, 4356, + 7931, 8405, 4357, 6789, 4212, + 7931, 8405, 4357, 8461, 4212, + 7931, 8405, 4357, 9363, 4212, + 7931, 8405, 4357, 10275, 4212, + 7931, 8405, 4423, 6894, + 7931, 8405, 4423, 6895, 2918, + 7931, 8405, 4423, 6895, 3052, + 7931, 8405, 4423, 6895, 3244, + 7931, 8405, 4630, + 7931, 8405, 4631, 6789, 4212, + 7931, 8405, 4631, 8461, 4212, + 7931, 8405, 4631, 9363, 4212, + 7931, 8405, 4631, 10275, 4212, + 7931, 8405, 4736, + 7931, 8405, 4737, 6789, 4212, + 7931, 8405, 4737, 8461, 4212, + 7931, 8405, 4737, 9363, 4212, + 7931, 8405, 4737, 10275, 4212, + 7931, 8405, 4942, + 7931, 8405, 4943, 6121, 1045, 6376, + 7931, 8405, 4943, 6121, 1045, 6490, + 7931, 8405, 4943, 6789, 4212, + 7931, 8405, 4943, 8461, 4212, + 7931, 8405, 4943, 9363, 4212, + 7931, 8405, 4943, 10275, 4212, + 7931, 8405, 5240, + 7931, 8405, 5241, 6121, 1045, 6490, + 7931, 8405, 5241, 6121, 2779, 4113, 6490, + 7931, 8405, 5241, 6121, 5550, + 7931, 8405, 5241, 6121, 7593, 42, + 7931, 8405, 5241, 6121, 7593, 2640, + 7931, 8405, 5241, 6121, 7695, 4113, 6376, + 7931, 8405, 5241, 6789, 4212, + 7931, 8405, 5241, 8260, + 7931, 8405, 5241, 8261, 6789, 4212, + 7931, 8405, 5241, 8261, 10275, 4212, + 7931, 8405, 5241, 8461, 4212, + 7931, 8405, 5241, 9363, 4212, + 7931, 8405, 5241, 10275, 4212, + 7931, 8405, 5298, + 7931, 8405, 5299, 6789, 4212, + 7931, 8405, 5299, 8461, 4212, + 7931, 8405, 5299, 9363, 4212, + 7931, 8405, 5299, 10275, 4212, + 7931, 8405, 5572, + 7931, 8405, 5573, 6789, 4212, + 7931, 8405, 5573, 10275, 4212, + 7931, 8405, 5648, + 7931, 8405, 5649, 6121, 1045, 6491, 721, 1045, 6376, + 7931, 8405, 5649, 6121, 2779, 4113, 11877, 6376, + 7931, 8405, 5649, 6121, 4215, 4113, 6376, + 7931, 8405, 5649, 6121, 7593, 7931, 8405, 2641, 721, 2779, 4112, + 7931, 8405, 5649, 6121, 7695, 4113, 6490, + 7931, 8405, 5649, 6121, 7695, 4113, 6491, 721, 7695, 4113, 6376, + 7931, 8405, 5649, 6121, 10173, 12403, 6689, 4215, 6376, + 7931, 8405, 5649, 6121, 10267, 42, + 7931, 8405, 5649, 6789, 4212, + 7931, 8405, 5649, 8461, 4212, + 7931, 8405, 5649, 9363, 4212, + 7931, 8405, 5649, 10275, 4212, + 7931, 8405, 5910, + 7931, 8405, 5911, 6789, 4212, + 7931, 8405, 5911, 10275, 4212, + 7931, 8405, 5916, + 7931, 8405, 5917, 6789, 4212, + 7931, 8405, 5917, 8461, 4212, + 7931, 8405, 5917, 9363, 4212, + 7931, 8405, 5917, 10275, 4212, + 7931, 8405, 5992, + 7931, 8405, 5993, 6789, 4212, + 7931, 8405, 5993, 8461, 4212, + 7931, 8405, 5993, 9363, 4212, + 7931, 8405, 5993, 10275, 4212, + 7931, 8405, 6254, + 7931, 8405, 6255, 6789, 4212, + 7931, 8405, 6255, 10275, 4212, + 7931, 8405, 6486, + 7931, 8405, 6487, 6789, 4212, + 7931, 8405, 6487, 8461, 4212, + 7931, 8405, 6487, 9363, 4212, + 7931, 8405, 6487, 10275, 4212, + 7931, 8405, 6636, + 7931, 8405, 6637, 6789, 4212, + 7931, 8405, 6637, 10275, 4212, + 7931, 8405, 6771, 3052, + 7931, 8405, 6771, 3053, 6121, 2779, 4113, 6376, + 7931, 8405, 6771, 3053, 6121, 7695, 4113, 6376, + 7931, 8405, 6771, 3053, 6121, 10173, 12403, 6689, 2779, 6376, + 7931, 8405, 6771, 3053, 6121, 10173, 12403, 6689, 4215, 6490, + 7931, 8405, 6771, 3053, 6121, 10173, 12403, 6689, 7695, 6376, + 7931, 8405, 6771, 3053, 6121, 10267, 42, + 7931, 8405, 6771, 3053, 6789, 4212, + 7931, 8405, 6771, 3053, 8461, 4212, + 7931, 8405, 6771, 3053, 9363, 4212, + 7931, 8405, 6771, 3053, 10275, 4212, + 7931, 8405, 6850, + 7931, 8405, 6851, 6121, 1045, 6490, + 7931, 8405, 6851, 6789, 4212, + 7931, 8405, 6851, 8461, 4212, + 7931, 8405, 6851, 9363, 4212, + 7931, 8405, 6851, 10275, 4212, + 7931, 8405, 6894, + 7931, 8405, 6895, 10275, 4212, + 7931, 8405, 7036, + 7931, 8405, 7037, 6121, 1045, 6376, + 7931, 8405, 7037, 6121, 2779, 4113, 6376, + 7931, 8405, 7037, 6121, 7695, 4113, 6376, + 7931, 8405, 7037, 6121, 7695, 4113, 6490, + 7931, 8405, 7037, 6121, 7695, 4113, 10441, 9811, 6490, + 7931, 8405, 7037, 6789, 4212, + 7931, 8405, 7037, 8461, 4212, + 7931, 8405, 7037, 9363, 4212, + 7931, 8405, 7037, 10275, 4212, + 7931, 8405, 7238, + 7931, 8405, 7239, 6789, 4212, + 7931, 8405, 7239, 8461, 4212, + 7931, 8405, 7239, 9363, 4212, + 7931, 8405, 7239, 10275, 4212, + 7931, 8405, 7354, + 7931, 8405, 7355, 6789, 4212, + 7931, 8405, 7355, 8461, 4212, + 7931, 8405, 7355, 9363, 4212, + 7931, 8405, 7355, 10275, 4212, + 7931, 8405, 7448, + 7931, 8405, 7449, 6789, 4212, + 7931, 8405, 7449, 8461, 4212, + 7931, 8405, 7449, 9363, 4212, + 7931, 8405, 7449, 10275, 4212, + 7931, 8405, 7524, + 7931, 8405, 7525, 6121, 1045, 6490, + 7931, 8405, 7525, 6789, 4212, + 7931, 8405, 7525, 8461, 4212, + 7931, 8405, 7525, 9363, 4212, + 7931, 8405, 7525, 10275, 4212, + 7931, 8405, 7653, 1578, + 7931, 8405, 7668, + 7931, 8405, 7669, 6121, 1045, 6376, + 7931, 8405, 7669, 6789, 4212, + 7931, 8405, 7669, 8461, 4212, + 7931, 8405, 7669, 9363, 4212, + 7931, 8405, 7669, 10275, 4212, + 7931, 8405, 7672, + 7931, 8405, 7673, 6789, 4212, + 7931, 8405, 7673, 8461, 4212, + 7931, 8405, 7673, 9363, 4212, + 7931, 8405, 7673, 10275, 4212, + 7931, 8405, 8098, + 7931, 8405, 8099, 6789, 4212, + 7931, 8405, 8099, 10275, 4212, + 7931, 8405, 8860, + 7931, 8405, 8861, 6789, 4212, + 7931, 8405, 8861, 8461, 4212, + 7931, 8405, 8861, 9363, 4212, + 7931, 8405, 8861, 10275, 4212, + 7931, 8405, 8895, 8345, 9405, 3245, 9449, 8461, 4212, + 7931, 8405, 8895, 8345, 9405, 3245, 9449, 9363, 4212, + 7931, 8405, 9185, 780, + 7931, 8405, 9185, 1152, + 7931, 8405, 9185, 2284, + 7931, 8405, 9405, 426, + 7931, 8405, 9405, 427, 6789, 4212, + 7931, 8405, 9405, 427, 10275, 4212, + 7931, 8405, 9405, 664, + 7931, 8405, 9405, 665, 6789, 4212, + 7931, 8405, 9405, 665, 10275, 4212, + 7931, 8405, 9770, + 7931, 8405, 9771, 6789, 4212, + 7931, 8405, 9771, 8461, 4212, + 7931, 8405, 9771, 9363, 4212, + 7931, 8405, 9771, 10275, 4212, + 7931, 8405, 12355, 3244, + 7931, 8435, 6376, + 7931, 8525, 5758, + 7931, 8601, 7793, 5758, + 7931, 8692, + 7931, 8693, 8461, 4212, + 7931, 8693, 10275, 4212, + 7931, 8849, 1045, 12133, 4926, + 7931, 9151, 11228, + 7931, 9581, 5758, + 7931, 9645, 4423, 5837, 6121, 8205, 8036, + 7931, 9766, + 7931, 9767, 6121, 10175, 6376, + 7931, 9978, + 7931, 9979, 10275, 4212, + 7931, 10174, + 7931, 10175, 10275, 4212, + 7931, 10199, 8450, + 7931, 10267, 6644, + 7931, 10280, + 7931, 10281, 10275, 4212, + 7931, 10301, 711, 6121, 3053, 6789, 4212, + 7931, 10301, 711, 6121, 3053, 10275, 4212, + 7931, 10301, 711, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 711, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 711, 6121, 4631, 6121, 4943, 6789, 4212, + 7931, 10301, 711, 6121, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 711, 6121, 4631, 9363, 4212, + 7931, 10301, 711, 6121, 4631, 10275, 4212, + 7931, 10301, 711, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 711, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 711, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 711, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 711, 6121, 4943, 9363, 4212, + 7931, 10301, 711, 6121, 4943, 10275, 4212, + 7931, 10301, 781, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 781, 6121, 1343, 9363, 4212, + 7931, 10301, 781, 6121, 1343, 10275, 4212, + 7931, 10301, 781, 6121, 1359, 8461, 4212, + 7931, 10301, 781, 6121, 1359, 9363, 4212, + 7931, 10301, 781, 6121, 2405, 6789, 4212, + 7931, 10301, 781, 6121, 3053, 6789, 4212, + 7931, 10301, 781, 6121, 3053, 10275, 4212, + 7931, 10301, 781, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 781, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 781, 6121, 4631, 9363, 4212, + 7931, 10301, 781, 6121, 4631, 10275, 4212, + 7931, 10301, 781, 6121, 4737, 6121, 3053, 6789, 4212, + 7931, 10301, 781, 6121, 4737, 9363, 4212, + 7931, 10301, 781, 6121, 4737, 10275, 4212, + 7931, 10301, 781, 6121, 4943, 6789, 4212, + 7931, 10301, 781, 6121, 4943, 8461, 4212, + 7931, 10301, 781, 6121, 4943, 9363, 4212, + 7931, 10301, 781, 6121, 4943, 10275, 4212, + 7931, 10301, 781, 6121, 5241, 6789, 4212, + 7931, 10301, 781, 6121, 6255, 6789, 4212, + 7931, 10301, 957, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 957, 6121, 1343, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 957, 6121, 1343, 9363, 4212, + 7931, 10301, 957, 6121, 1343, 10275, 4212, + 7931, 10301, 957, 6121, 2405, 6789, 4212, + 7931, 10301, 957, 6121, 2405, 10275, 4212, + 7931, 10301, 957, 6121, 3053, 6789, 4212, + 7931, 10301, 957, 6121, 3053, 10275, 4212, + 7931, 10301, 957, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 957, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 957, 6121, 4631, 9363, 4212, + 7931, 10301, 957, 6121, 4631, 10275, 4212, + 7931, 10301, 957, 6121, 4737, 6121, 4943, 6789, 4212, + 7931, 10301, 957, 6121, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 957, 6121, 4737, 9363, 4212, + 7931, 10301, 957, 6121, 4737, 10275, 4212, + 7931, 10301, 957, 6121, 4943, 9363, 4212, + 7931, 10301, 957, 6121, 4943, 10275, 4212, + 7931, 10301, 1153, 6121, 1343, 9363, 4212, + 7931, 10301, 1153, 6121, 1343, 10275, 4212, + 7931, 10301, 1153, 6121, 3053, 6789, 4212, + 7931, 10301, 1153, 6121, 3053, 10275, 4212, + 7931, 10301, 1153, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1153, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 1153, 6121, 4631, 9363, 4212, + 7931, 10301, 1153, 6121, 4631, 10275, 4212, + 7931, 10301, 1153, 6121, 4737, 6121, 4943, 6789, 4212, + 7931, 10301, 1153, 6121, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 1153, 6121, 4737, 9363, 4212, + 7931, 10301, 1153, 6121, 4737, 10275, 4212, + 7931, 10301, 1153, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 1153, 6121, 4943, 9363, 4212, + 7931, 10301, 1153, 6121, 4943, 10275, 4212, + 7931, 10301, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 1343, 6121, 3053, 10275, 4212, + 7931, 10301, 1343, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1343, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 1343, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 1343, 6121, 4631, 9363, 4212, + 7931, 10301, 1343, 6121, 4631, 10275, 4212, + 7931, 10301, 1343, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 1343, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 1343, 6121, 4943, 10275, 4212, + 7931, 10301, 1359, 6121, 3053, 10275, 4212, + 7931, 10301, 1359, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 1359, 6121, 4631, 9363, 4212, + 7931, 10301, 1359, 6121, 4631, 10275, 4212, + 7931, 10301, 1359, 6121, 4943, 6121, 4631, 9363, 4212, + 7931, 10301, 1359, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 1359, 6121, 4943, 9363, 4212, + 7931, 10301, 1359, 6121, 4943, 10275, 4212, + 7931, 10301, 1359, 6121, 12355, 3245, 9363, 4212, + 7931, 10301, 1579, 6121, 1343, 9363, 4212, + 7931, 10301, 1579, 6121, 1343, 10275, 4212, + 7931, 10301, 1579, 6121, 1739, 6789, 4212, + 7931, 10301, 1579, 6121, 1739, 8461, 4212, + 7931, 10301, 1579, 6121, 1739, 9363, 4212, + 7931, 10301, 1579, 6121, 1739, 10275, 4212, + 7931, 10301, 1579, 6121, 3053, 6789, 4212, + 7931, 10301, 1579, 6121, 3053, 10275, 4212, + 7931, 10301, 1579, 6121, 3245, 6789, 4212, + 7931, 10301, 1579, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1579, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 1579, 6121, 3245, 10275, 4212, + 7931, 10301, 1579, 6121, 4631, 9363, 4212, + 7931, 10301, 1579, 6121, 4631, 10275, 4212, + 7931, 10301, 1579, 6121, 4737, 9363, 4212, + 7931, 10301, 1579, 6121, 4737, 10275, 4212, + 7931, 10301, 1579, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 1579, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 1579, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 1579, 6121, 4943, 6789, 4212, + 7931, 10301, 1579, 6121, 4943, 8461, 4212, + 7931, 10301, 1579, 6121, 4943, 9363, 4212, + 7931, 10301, 1579, 6121, 4943, 10275, 4212, + 7931, 10301, 1739, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 1739, 6121, 1343, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1739, 6121, 1343, 6121, 4943, 6789, 4212, + 7931, 10301, 1739, 6121, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 1739, 6121, 1343, 9363, 4212, + 7931, 10301, 1739, 6121, 1343, 10275, 4212, + 7931, 10301, 1739, 6121, 1359, 9363, 4212, + 7931, 10301, 1739, 6121, 3053, 6789, 4212, + 7931, 10301, 1739, 6121, 3053, 10275, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 6895, 6377, 6789, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 6895, 6377, 10275, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 6895, 6491, 6789, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 6895, 6491, 10275, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 7125, 6377, 6789, 4212, + 7931, 10301, 1739, 6121, 3245, 6121, 7125, 6377, 10275, 4212, + 7931, 10301, 1739, 6121, 3245, 6789, 4212, + 7931, 10301, 1739, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 1739, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 1739, 6121, 3245, 10275, 4212, + 7931, 10301, 1739, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 1739, 6121, 4631, 6121, 4631, 6789, 4212, + 7931, 10301, 1739, 6121, 4631, 6121, 4631, 9363, 4212, + 7931, 10301, 1739, 6121, 4631, 6121, 4943, 6789, 4212, + 7931, 10301, 1739, 6121, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 1739, 6121, 4631, 9363, 4212, + 7931, 10301, 1739, 6121, 4631, 10275, 4212, + 7931, 10301, 1739, 6121, 4737, 6121, 4943, 6789, 4212, + 7931, 10301, 1739, 6121, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 1739, 6121, 4737, 9363, 4212, + 7931, 10301, 1739, 6121, 4737, 10275, 4212, + 7931, 10301, 1739, 6121, 4943, 6121, 1343, 6789, 4212, + 7931, 10301, 1739, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 1739, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 1739, 6121, 4943, 6789, 4212, + 7931, 10301, 1739, 6121, 4943, 8461, 4212, + 7931, 10301, 1739, 6121, 4943, 9363, 4212, + 7931, 10301, 1739, 6121, 4943, 10275, 4212, + 7931, 10301, 2285, 6121, 1343, 9363, 4212, + 7931, 10301, 2285, 6121, 1343, 10275, 4212, + 7931, 10301, 2285, 6121, 3053, 6789, 4212, + 7931, 10301, 2285, 6121, 3053, 10275, 4212, + 7931, 10301, 2285, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2285, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 2285, 6121, 4943, 6121, 1343, 6789, 4212, + 7931, 10301, 2285, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 2285, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 2285, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 2285, 6121, 4943, 9363, 4212, + 7931, 10301, 2285, 6121, 4943, 10275, 4212, + 7931, 10301, 2405, 6121, 12355, 3245, 10275, 4212, + 7931, 10301, 2485, 6121, 1343, 6121, 1343, 6789, 4212, + 7931, 10301, 2485, 6121, 1343, 6121, 1343, 9363, 4212, + 7931, 10301, 2485, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 2485, 6121, 1343, 9363, 4212, + 7931, 10301, 2485, 6121, 1343, 10275, 4212, + 7931, 10301, 2485, 6121, 2405, 6789, 4212, + 7931, 10301, 2485, 6121, 2405, 10275, 4212, + 7931, 10301, 2485, 6121, 3053, 6789, 4212, + 7931, 10301, 2485, 6121, 3053, 10275, 4212, + 7931, 10301, 2485, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2485, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 2485, 6121, 4737, 9363, 4212, + 7931, 10301, 2485, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 2485, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 2485, 6121, 4943, 9363, 4212, + 7931, 10301, 2485, 6121, 4943, 10275, 4212, + 7931, 10301, 2641, 6121, 1343, 9363, 4212, + 7931, 10301, 2641, 6121, 1343, 10275, 4212, + 7931, 10301, 2641, 6121, 3053, 6789, 4212, + 7931, 10301, 2641, 6121, 3053, 10275, 4212, + 7931, 10301, 2641, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2641, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 2641, 6121, 4943, 6121, 1343, 6789, 4212, + 7931, 10301, 2641, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 2641, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 2641, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 2641, 6121, 4943, 8461, 4212, + 7931, 10301, 2641, 6121, 4943, 9363, 4212, + 7931, 10301, 2641, 6121, 4943, 10275, 4212, + 7931, 10301, 2669, 6121, 1343, 6121, 4631, 6789, 4212, + 7931, 10301, 2669, 6121, 1343, 6121, 4631, 9363, 4212, + 7931, 10301, 2669, 6121, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 2669, 6121, 1343, 9363, 4212, + 7931, 10301, 2669, 6121, 1343, 10275, 4212, + 7931, 10301, 2669, 6121, 1359, 8461, 4212, + 7931, 10301, 2669, 6121, 1359, 9363, 4212, + 7931, 10301, 2669, 6121, 2405, 6789, 4212, + 7931, 10301, 2669, 6121, 3053, 6789, 4212, + 7931, 10301, 2669, 6121, 3053, 10275, 4212, + 7931, 10301, 2669, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2669, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 2669, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 2669, 6121, 4631, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2669, 6121, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 2669, 6121, 4631, 9363, 4212, + 7931, 10301, 2669, 6121, 4631, 10275, 4212, + 7931, 10301, 2669, 6121, 4737, 6121, 3053, 6789, 4212, + 7931, 10301, 2669, 6121, 4737, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2669, 6121, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 2669, 6121, 4737, 9363, 4212, + 7931, 10301, 2669, 6121, 4737, 10275, 4212, + 7931, 10301, 2669, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 2669, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 2669, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 2669, 6121, 4943, 6121, 4631, 9363, 4212, + 7931, 10301, 2669, 6121, 4943, 6121, 4737, 9363, 4212, + 7931, 10301, 2669, 6121, 4943, 6789, 4212, + 7931, 10301, 2669, 6121, 4943, 8461, 4212, + 7931, 10301, 2669, 6121, 4943, 9363, 4212, + 7931, 10301, 2669, 6121, 4943, 10275, 4212, + 7931, 10301, 2669, 6121, 5241, 6789, 4212, + 7931, 10301, 2669, 6121, 6255, 6789, 4212, + 7931, 10301, 3053, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 3053, 6121, 1343, 9363, 4212, + 7931, 10301, 3053, 6121, 1343, 10275, 4212, + 7931, 10301, 3053, 6121, 1359, 8461, 4212, + 7931, 10301, 3053, 6121, 1359, 9363, 4212, + 7931, 10301, 3053, 6121, 2405, 6789, 4212, + 7931, 10301, 3053, 6121, 3053, 6789, 4212, + 7931, 10301, 3053, 6121, 3053, 10275, 4212, + 7931, 10301, 3053, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 3053, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 3053, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 3053, 6121, 4631, 9363, 4212, + 7931, 10301, 3053, 6121, 4631, 10275, 4212, + 7931, 10301, 3053, 6121, 4737, 9363, 4212, + 7931, 10301, 3053, 6121, 4737, 10275, 4212, + 7931, 10301, 3053, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 3053, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 3053, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 3053, 6121, 4943, 6789, 4212, + 7931, 10301, 3053, 6121, 4943, 8461, 4212, + 7931, 10301, 3053, 6121, 4943, 9363, 4212, + 7931, 10301, 3053, 6121, 4943, 10275, 4212, + 7931, 10301, 3053, 6121, 5241, 6789, 4212, + 7931, 10301, 3053, 6121, 6255, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 9, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 9, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 9, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 41, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 41, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 67, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 67, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 427, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 427, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 665, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 665, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 1343, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 1343, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 1359, 8461, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 1359, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 2405, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 2919, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 2919, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3053, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3053, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3245, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 3245, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4631, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4631, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4737, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4943, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4943, 8461, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4943, 9363, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 4943, 10275, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 5241, 6789, 4212, + 7931, 10301, 3053, 6121, 6895, 6377, 6121, 6255, 6789, 4212, + 7931, 10301, 3125, 6121, 4943, 8461, 4212, + 7931, 10301, 3125, 6121, 4943, 9363, 4212, + 7931, 10301, 3125, 6121, 4943, 10275, 4212, + 7931, 10301, 3245, 6121, 10175, 6789, 4212, + 7931, 10301, 3245, 6121, 10175, 10275, 4212, + 7931, 10301, 3245, 9449, 6121, 12355, 3245, 6789, 4212, + 7931, 10301, 3245, 9449, 6121, 12355, 3245, 10275, 4212, + 7931, 10301, 4631, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 4631, 6121, 1343, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 4631, 6121, 1343, 9363, 4212, + 7931, 10301, 4631, 6121, 1343, 10275, 4212, + 7931, 10301, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 4631, 6121, 3053, 10275, 4212, + 7931, 10301, 4631, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 4631, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 4631, 6121, 4943, 6121, 1343, 6789, 4212, + 7931, 10301, 4631, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 4631, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 4631, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 4631, 6121, 4943, 10275, 4212, + 7931, 10301, 4737, 6121, 1343, 10275, 4212, + 7931, 10301, 4737, 6121, 3053, 6789, 4212, + 7931, 10301, 4737, 6121, 3053, 10275, 4212, + 7931, 10301, 4737, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 4737, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 4737, 6121, 4631, 9363, 4212, + 7931, 10301, 4737, 6121, 4631, 10275, 4212, + 7931, 10301, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 4737, 6121, 4943, 10275, 4212, + 7931, 10301, 4943, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 4943, 6121, 1343, 6121, 4631, 9363, 4212, + 7931, 10301, 4943, 6121, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 4943, 6121, 1343, 10275, 4212, + 7931, 10301, 4943, 6121, 3053, 10275, 4212, + 7931, 10301, 4943, 6121, 3245, 6789, 4212, + 7931, 10301, 4943, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 4943, 6121, 4631, 6121, 1343, 9363, 4212, + 7931, 10301, 4943, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 4943, 6121, 4631, 6121, 4737, 9363, 4212, + 7931, 10301, 4943, 6121, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 4943, 6121, 4631, 9363, 4212, + 7931, 10301, 4943, 6121, 4631, 10275, 4212, + 7931, 10301, 4943, 6121, 4737, 6121, 3053, 6789, 4212, + 7931, 10301, 4943, 6121, 4737, 6121, 4631, 9363, 4212, + 7931, 10301, 4943, 6121, 4737, 6121, 4943, 9363, 4212, + 7931, 10301, 4943, 6121, 4737, 9363, 4212, + 7931, 10301, 4943, 6121, 4737, 10275, 4212, + 7931, 10301, 4943, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 4943, 6121, 4943, 10275, 4212, + 7931, 10301, 5241, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 5241, 6121, 1343, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5241, 6121, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 5241, 6121, 1343, 9363, 4212, + 7931, 10301, 5241, 6121, 1343, 10275, 4212, + 7931, 10301, 5241, 6121, 1359, 8461, 4212, + 7931, 10301, 5241, 6121, 1359, 9363, 4212, + 7931, 10301, 5241, 6121, 2405, 6789, 4212, + 7931, 10301, 5241, 6121, 3053, 6789, 4212, + 7931, 10301, 5241, 6121, 3053, 10275, 4212, + 7931, 10301, 5241, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5241, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 1343, 6789, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 1343, 9363, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 4943, 6789, 4212, + 7931, 10301, 5241, 6121, 4631, 6121, 4943, 9363, 4212, + 7931, 10301, 5241, 6121, 4631, 9363, 4212, + 7931, 10301, 5241, 6121, 4631, 10275, 4212, + 7931, 10301, 5241, 6121, 4737, 9363, 4212, + 7931, 10301, 5241, 6121, 4737, 10275, 4212, + 7931, 10301, 5241, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 5241, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5241, 6121, 4943, 6789, 4212, + 7931, 10301, 5241, 6121, 4943, 8461, 4212, + 7931, 10301, 5241, 6121, 4943, 9363, 4212, + 7931, 10301, 5241, 6121, 4943, 10275, 4212, + 7931, 10301, 5241, 6121, 5241, 6789, 4212, + 7931, 10301, 5241, 6121, 6255, 6789, 4212, + 7931, 10301, 5475, 6061, 89, 9411, 5837, 5759, 10275, 4212, + 7931, 10301, 5649, 6121, 1343, 6121, 4631, 9363, 4212, + 7931, 10301, 5649, 6121, 1343, 8461, 4212, + 7931, 10301, 5649, 6121, 1343, 9363, 4212, + 7931, 10301, 5649, 6121, 1343, 10275, 4212, + 7931, 10301, 5649, 6121, 1359, 8461, 4212, + 7931, 10301, 5649, 6121, 1359, 9363, 4212, + 7931, 10301, 5649, 6121, 2405, 6789, 4212, + 7931, 10301, 5649, 6121, 2405, 10275, 4212, + 7931, 10301, 5649, 6121, 3053, 6789, 4212, + 7931, 10301, 5649, 6121, 3053, 10275, 4212, + 7931, 10301, 5649, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5649, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 5649, 6121, 4631, 6121, 1343, 9363, 4212, + 7931, 10301, 5649, 6121, 4631, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5649, 6121, 4631, 8461, 4212, + 7931, 10301, 5649, 6121, 4631, 9363, 4212, + 7931, 10301, 5649, 6121, 4631, 10275, 4212, + 7931, 10301, 5649, 6121, 4737, 6121, 3053, 6789, 4212, + 7931, 10301, 5649, 6121, 4737, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5649, 6121, 4737, 8461, 4212, + 7931, 10301, 5649, 6121, 4737, 9363, 4212, + 7931, 10301, 5649, 6121, 4737, 10275, 4212, + 7931, 10301, 5649, 6121, 4943, 6121, 1343, 6789, 4212, + 7931, 10301, 5649, 6121, 4943, 6121, 1343, 9363, 4212, + 7931, 10301, 5649, 6121, 4943, 6121, 4631, 9363, 4212, + 7931, 10301, 5649, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 5649, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 5649, 6121, 4943, 8461, 4212, + 7931, 10301, 5649, 6121, 4943, 9363, 4212, + 7931, 10301, 5649, 6121, 4943, 10275, 4212, + 7931, 10301, 5911, 6121, 12355, 3245, 10275, 4212, + 7931, 10301, 5917, 6121, 1359, 8461, 4212, + 7931, 10301, 5917, 6121, 2405, 6789, 4212, + 7931, 10301, 5917, 6121, 3053, 6789, 4212, + 7931, 10301, 5917, 6121, 3053, 10275, 4212, + 7931, 10301, 5917, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 5917, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 5917, 6121, 4631, 10275, 4212, + 7931, 10301, 5917, 6121, 4943, 6789, 4212, + 7931, 10301, 5917, 6121, 4943, 8461, 4212, + 7931, 10301, 5917, 6121, 4943, 9363, 4212, + 7931, 10301, 5917, 6121, 4943, 10275, 4212, + 7931, 10301, 5917, 6121, 5241, 6789, 4212, + 7931, 10301, 5917, 6121, 6255, 6789, 4212, + 7931, 10301, 6393, 10275, 4212, + 7931, 10301, 6405, 10275, 4212, + 7931, 10301, 6851, 6121, 3053, 6789, 4212, + 7931, 10301, 6851, 6121, 3053, 10275, 4212, + 7931, 10301, 6851, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 6851, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 6851, 6121, 4631, 9363, 4212, + 7931, 10301, 6851, 6121, 4631, 10275, 4212, + 7931, 10301, 6851, 6121, 4943, 6121, 3053, 6789, 4212, + 7931, 10301, 6851, 6121, 4943, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 6851, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 6851, 6121, 4943, 9363, 4212, + 7931, 10301, 6851, 6121, 4943, 10275, 4212, + 7931, 10301, 7479, 10275, 4212, + 7931, 10301, 7481, 6061, 89, 9411, 5837, 5759, 10275, 4212, + 7931, 10301, 7481, 10275, 4212, + 7931, 10301, 7525, 6121, 1343, 6121, 3053, 6789, 4212, + 7931, 10301, 7525, 6121, 1343, 6121, 4943, 6789, 4212, + 7931, 10301, 7525, 6121, 1343, 6121, 4943, 9363, 4212, + 7931, 10301, 7525, 6121, 1343, 6789, 4212, + 7931, 10301, 7525, 6121, 1343, 8461, 4212, + 7931, 10301, 7525, 6121, 1343, 9363, 4212, + 7931, 10301, 7525, 6121, 1343, 10275, 4212, + 7931, 10301, 7525, 6121, 1359, 8461, 4212, + 7931, 10301, 7525, 6121, 1359, 9363, 4212, + 7931, 10301, 7525, 6121, 2405, 6789, 4212, + 7931, 10301, 7525, 6121, 2405, 10275, 4212, + 7931, 10301, 7525, 6121, 3053, 6789, 4212, + 7931, 10301, 7525, 6121, 3053, 10275, 4212, + 7931, 10301, 7525, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 7525, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 7525, 6121, 4631, 6121, 3053, 6789, 4212, + 7931, 10301, 7525, 6121, 4631, 6789, 4212, + 7931, 10301, 7525, 6121, 4631, 8461, 4212, + 7931, 10301, 7525, 6121, 4631, 9363, 4212, + 7931, 10301, 7525, 6121, 4631, 10275, 4212, + 7931, 10301, 7525, 6121, 4737, 6789, 4212, + 7931, 10301, 7525, 6121, 4737, 8461, 4212, + 7931, 10301, 7525, 6121, 4737, 9363, 4212, + 7931, 10301, 7525, 6121, 4737, 10275, 4212, + 7931, 10301, 7525, 6121, 4943, 6121, 4737, 6789, 4212, + 7931, 10301, 7525, 6121, 4943, 6121, 4737, 9363, 4212, + 7931, 10301, 7525, 6121, 4943, 6121, 4943, 6789, 4212, + 7931, 10301, 7525, 6121, 4943, 6121, 4943, 9363, 4212, + 7931, 10301, 7525, 6121, 4943, 6789, 4212, + 7931, 10301, 7525, 6121, 4943, 8461, 4212, + 7931, 10301, 7525, 6121, 4943, 9363, 4212, + 7931, 10301, 7525, 6121, 4943, 10275, 4212, + 7931, 10301, 7917, 10275, 4212, + 7931, 10301, 8635, 10275, 4212, + 7931, 10301, 8693, 6121, 6645, 8461, 4212, + 7931, 10301, 8693, 6121, 6645, 10275, 4212, + 7931, 10301, 8693, 6121, 6773, 8461, 4212, + 7931, 10301, 8693, 6121, 6773, 10275, 4212, + 7931, 10301, 8693, 6121, 7027, 8461, 4212, + 7931, 10301, 8693, 6121, 7027, 10275, 4212, + 7931, 10301, 8693, 6121, 9979, 10275, 4212, + 7931, 10301, 8693, 6121, 10281, 10275, 4212, + 7931, 10301, 8693, 6121, 12355, 3245, 10275, 4212, + 7931, 10301, 8895, 9405, 3053, 6121, 6895, 6377, 6121, 3245, 9449, 6789, 4212, + 7931, 10301, 8895, 9405, 3053, 6121, 6895, 6377, 6121, 3245, 9449, 9363, 4212, + 7931, 10301, 8895, 9405, 3053, 6121, 6895, 6377, 6121, 3245, 9449, 10275, 4212, + 7931, 10301, 10341, 10275, 4212, + 7931, 10301, 10683, 10275, 4212, + 7931, 10301, 10741, 10715, 10712, + 7931, 10301, 12159, 7917, 10682, + 7931, 10301, 13202, + 7931, 10469, 4926, + 7931, 10489, 6644, + 7931, 10692, + 7931, 11224, + 7931, 11261, 3244, + 7931, 11363, 11228, + 7971, 46, + 7971, 826, + 7971, 827, 6121, 46, + 7971, 827, 6121, 6568, + 7985, 8159, 7274, + 7985, 11241, 7274, + 8005, 731, 12901, 6434, + 8005, 4389, 10260, + 8005, 4849, 3958, + 8005, 4849, 4389, 9050, + 8005, 4849, 8076, + 8005, 6627, 9050, + 8005, 7443, 3958, + 8005, 7443, 4389, 9050, + 8005, 7443, 8076, + 8005, 8745, 9050, + 8005, 8745, 9051, 5387, 2725, 8745, 9050, + 8005, 10637, 7533, 9050, + 8005, 12114, + 8006, + 8007, 6121, 4849, 4389, 6504, + 8007, 6121, 7443, 4389, 6504, + 8017, 760, + 8017, 8057, 6121, 11141, 6434, + 8022, + 8023, 10374, + 8027, 2638, + 8028, + 8033, 8405, 0, + 8033, 8405, 2, + 8033, 8405, 6, + 8033, 8405, 8, + 8033, 8405, 12, + 8033, 8405, 16, + 8033, 8405, 20, + 8033, 8405, 22, + 8033, 8405, 24, + 8033, 8405, 26, + 8033, 8405, 28, + 8033, 8405, 30, + 8033, 8405, 32, + 8033, 8405, 34, + 8033, 8405, 36, + 8033, 8405, 38, + 8033, 8405, 40, + 8033, 8405, 46, + 8033, 8405, 54, + 8033, 8405, 136, + 8033, 8405, 158, + 8033, 8405, 214, + 8033, 8405, 266, + 8033, 8405, 304, + 8033, 8405, 334, + 8033, 8405, 366, + 8033, 8405, 394, + 8033, 8405, 400, + 8033, 8405, 410, + 8033, 8405, 460, + 8033, 8405, 518, + 8033, 8405, 530, + 8033, 8405, 542, + 8033, 8405, 544, + 8033, 8405, 574, + 8033, 8405, 606, + 8033, 8405, 1756, + 8033, 8405, 1872, + 8033, 8405, 1874, + 8033, 8405, 1876, + 8033, 8405, 2514, + 8033, 8405, 2578, + 8033, 8405, 2744, + 8033, 8405, 2838, + 8033, 8405, 3832, + 8033, 8405, 3834, + 8033, 8405, 6068, + 8033, 8405, 6070, + 8033, 8405, 6072, + 8037, 4877, 8774, + 8048, + 8057, 6121, 719, 835, 7773, 4849, 10465, 6504, + 8057, 6121, 2779, 11649, 9745, 569, 2681, 7442, + 8057, 6121, 4849, 4389, 6504, + 8057, 6121, 7121, 4389, 6504, + 8057, 6121, 7443, 4389, 6504, + 8057, 6121, 7593, 8057, 569, 2681, 7442, + 8057, 6121, 7773, 4389, 6504, + 8057, 6121, 7773, 7443, 10465, 6504, + 8057, 6121, 10677, 4192, + 8057, 6121, 11649, 760, + 8057, 6121, 12879, 46, + 8057, 9177, 115, 11649, 761, 721, 2725, 4389, 9177, 115, 10677, 760, + 8065, 7769, 6121, 8688, + 8065, 7769, 6121, 8689, 721, 7595, 9610, + 8065, 8762, + 8065, 8763, 445, 6741, 568, + 8065, 10578, + 8065, 10579, 445, 6741, 568, + 8065, 12493, 6121, 8688, + 8066, + 8075, 2167, 8523, 4223, 5836, + 8075, 2167, 8523, 7793, 9178, + 8075, 2167, 8523, 8121, 10469, 4926, + 8075, 2167, 8523, 10255, 10469, 4926, + 8075, 4223, 5836, + 8075, 7593, 8405, 28, + 8075, 7593, 8405, 202, + 8075, 7593, 8405, 374, + 8075, 7593, 8405, 404, + 8075, 7593, 8405, 476, + 8075, 7593, 8405, 516, + 8075, 7593, 8405, 582, + 8075, 7593, 8405, 986, + 8075, 7593, 8405, 1102, + 8075, 7593, 8405, 1154, + 8075, 7593, 8405, 1616, + 8075, 7593, 8405, 1680, + 8075, 7593, 8405, 2167, 8075, 236, + 8075, 7593, 8405, 2167, 8075, 710, + 8075, 7593, 8405, 2167, 8075, 1020, + 8075, 7593, 8405, 2167, 8075, 1124, + 8075, 7593, 8405, 2167, 8075, 1352, + 8075, 7593, 8405, 2167, 8075, 1360, + 8075, 7593, 8405, 2167, 8075, 2180, + 8075, 7593, 8405, 2167, 8075, 4534, + 8075, 7593, 8405, 2167, 8075, 5680, + 8075, 7593, 8405, 2167, 8075, 7542, + 8075, 7593, 8405, 2167, 8075, 8238, + 8075, 7593, 8405, 2167, 8523, 2036, + 8075, 7593, 8405, 2167, 8523, 2132, + 8075, 7593, 8405, 2167, 8523, 2916, + 8075, 7593, 8405, 2167, 8523, 7542, + 8075, 7593, 8405, 2180, + 8075, 7593, 8405, 2250, + 8075, 7593, 8405, 2560, + 8075, 7593, 8405, 2658, + 8075, 7593, 8405, 3246, + 8075, 7593, 8405, 4394, + 8075, 7593, 8405, 4534, + 8075, 7593, 8405, 4722, + 8075, 7593, 8405, 4746, + 8075, 7593, 8405, 5680, + 8075, 7593, 8405, 5766, + 8075, 7593, 8405, 6082, + 8075, 7593, 8405, 6258, + 8075, 7593, 8405, 6640, + 8075, 7593, 8405, 6824, + 8075, 7593, 8405, 6976, + 8075, 7593, 8405, 7090, + 8075, 7593, 8405, 7484, + 8075, 7593, 8405, 7542, + 8075, 7593, 8405, 8238, + 8075, 7593, 8405, 8816, + 8075, 7593, 8405, 9127, 5680, + 8075, 7593, 8405, 9861, 4746, + 8075, 7593, 8405, 10295, 236, + 8075, 7593, 8405, 10807, 404, + 8075, 7593, 8405, 10807, 3244, + 8075, 7593, 8405, 10807, 4534, + 8075, 7593, 8405, 10807, 4722, + 8075, 7593, 8405, 12921, 404, + 8075, 7593, 8405, 12921, 1102, + 8075, 8775, 375, 516, + 8075, 8775, 477, 516, + 8075, 8775, 1582, + 8075, 8775, 1617, 516, + 8075, 8775, 2659, 516, + 8075, 8775, 7543, 5766, + 8075, 8775, 9738, + 8075, 9063, 8405, 28, + 8075, 9063, 8405, 202, + 8075, 9063, 8405, 374, + 8075, 9063, 8405, 404, + 8075, 9063, 8405, 476, + 8075, 9063, 8405, 516, + 8075, 9063, 8405, 582, + 8075, 9063, 8405, 986, + 8075, 9063, 8405, 1102, + 8075, 9063, 8405, 1154, + 8075, 9063, 8405, 1616, + 8075, 9063, 8405, 1680, + 8075, 9063, 8405, 2167, 8075, 236, + 8075, 9063, 8405, 2167, 8075, 710, + 8075, 9063, 8405, 2167, 8075, 1020, + 8075, 9063, 8405, 2167, 8075, 1124, + 8075, 9063, 8405, 2167, 8075, 1352, + 8075, 9063, 8405, 2167, 8075, 1360, + 8075, 9063, 8405, 2167, 8075, 2180, + 8075, 9063, 8405, 2167, 8075, 4534, + 8075, 9063, 8405, 2167, 8075, 5680, + 8075, 9063, 8405, 2167, 8075, 7542, + 8075, 9063, 8405, 2167, 8075, 8238, + 8075, 9063, 8405, 2167, 8523, 2036, + 8075, 9063, 8405, 2167, 8523, 2132, + 8075, 9063, 8405, 2167, 8523, 2916, + 8075, 9063, 8405, 2167, 8523, 7542, + 8075, 9063, 8405, 2180, + 8075, 9063, 8405, 2250, + 8075, 9063, 8405, 2560, + 8075, 9063, 8405, 2658, + 8075, 9063, 8405, 3246, + 8075, 9063, 8405, 4394, + 8075, 9063, 8405, 4534, + 8075, 9063, 8405, 4722, + 8075, 9063, 8405, 4746, + 8075, 9063, 8405, 5680, + 8075, 9063, 8405, 5766, + 8075, 9063, 8405, 6082, + 8075, 9063, 8405, 6258, + 8075, 9063, 8405, 6640, + 8075, 9063, 8405, 6824, + 8075, 9063, 8405, 6976, + 8075, 9063, 8405, 7090, + 8075, 9063, 8405, 7484, + 8075, 9063, 8405, 7542, + 8075, 9063, 8405, 8238, + 8075, 9063, 8405, 8816, + 8075, 9063, 8405, 9127, 5680, + 8075, 9063, 8405, 9861, 4746, + 8075, 9063, 8405, 10295, 236, + 8075, 9063, 8405, 10807, 404, + 8075, 9063, 8405, 10807, 3244, + 8075, 9063, 8405, 10807, 4534, + 8075, 9063, 8405, 10807, 4722, + 8075, 9063, 8405, 12921, 404, + 8075, 9063, 8405, 12921, 1102, + 8075, 10203, 2171, 4388, + 8075, 12977, 9178, + 8083, 5833, 11163, 5759, 10380, + 8088, + 8097, 1809, 4876, + 8097, 10388, + 8097, 13235, 11765, 6434, + 8101, 5758, + 8101, 9076, + 8101, 11626, + 8117, 1177, 6716, + 8117, 1177, 6957, 6716, + 8117, 1177, 8403, 3070, + 8117, 1177, 8403, 6178, + 8117, 1177, 9251, 6956, + 8117, 1177, 9251, 8290, + 8117, 1177, 9315, 3070, + 8117, 1177, 9315, 6178, + 8117, 1177, 10239, 6716, + 8121, 9129, 8775, 4213, 2778, + 8129, 5758, + 8133, 5941, 10677, 3696, + 8133, 5941, 11649, 3696, + 8133, 5941, 13086, + 8133, 5941, 13088, + 8133, 5941, 13090, + 8133, 5941, 13092, + 8133, 5941, 13094, + 8133, 5941, 13096, + 8133, 5941, 13098, + 8133, 5941, 13100, + 8133, 5941, 13102, + 8133, 5941, 13104, + 8133, 5941, 13106, + 8133, 5941, 13108, + 8133, 5941, 13110, + 8133, 5941, 13112, + 8133, 5941, 13114, + 8133, 5941, 13116, + 8133, 5941, 13118, + 8133, 5941, 13120, + 8133, 5941, 13122, + 8133, 5941, 13124, + 8133, 5941, 13126, + 8133, 5941, 13128, + 8133, 5941, 13130, + 8133, 5941, 13132, + 8133, 5941, 13134, + 8133, 5941, 13136, + 8133, 5941, 13138, + 8133, 5941, 13140, + 8133, 5941, 13142, + 8133, 5941, 13144, + 8133, 5941, 13146, + 8133, 5941, 13148, + 8133, 5941, 13150, + 8133, 5941, 13152, + 8133, 5941, 13154, + 8133, 5941, 13156, + 8133, 5941, 13158, + 8133, 5941, 13160, + 8133, 5941, 13162, + 8133, 5941, 13164, + 8133, 5941, 13166, + 8133, 5941, 13168, + 8133, 5941, 13170, + 8133, 5941, 13172, + 8133, 5941, 13174, + 8133, 5941, 13176, + 8133, 5941, 13178, + 8133, 5941, 13180, + 8133, 5941, 13182, + 8133, 5941, 13240, + 8133, 5941, 13242, + 8133, 5941, 13244, + 8133, 5941, 13246, + 8133, 5941, 13248, + 8133, 5941, 13250, + 8133, 5941, 13252, + 8133, 5941, 13254, + 8133, 5941, 13256, + 8133, 5941, 13258, + 8133, 5941, 13260, + 8133, 5941, 13262, + 8133, 5941, 13264, + 8133, 5941, 13266, + 8133, 5941, 13268, + 8133, 5941, 13270, + 8133, 5941, 13272, + 8133, 5941, 13274, + 8133, 5941, 13276, + 8133, 5941, 13278, + 8133, 5941, 13280, + 8133, 5941, 13282, + 8133, 5941, 13284, + 8133, 5941, 13286, + 8133, 5941, 13288, + 8133, 5941, 13290, + 8133, 5941, 13292, + 8133, 5941, 13294, + 8133, 5941, 13296, + 8133, 5941, 13298, + 8133, 5941, 13300, + 8133, 5941, 13302, + 8133, 5941, 13304, + 8133, 5941, 13306, + 8133, 5941, 13308, + 8133, 5941, 13310, + 8133, 5941, 13312, + 8133, 5941, 13314, + 8133, 5941, 13316, + 8133, 5941, 13318, + 8133, 5941, 13320, + 8133, 5941, 13322, + 8133, 5941, 13324, + 8133, 5941, 13326, + 8133, 5941, 13328, + 8133, 5941, 13330, + 8133, 5941, 13332, + 8133, 5941, 13334, + 8133, 5941, 13336, + 8151, 6622, + 8151, 6778, + 8151, 8056, + 8151, 8528, + 8151, 8744, + 8151, 13029, 8450, + 8151, 13067, 6408, + 8153, 601, 5876, + 8153, 1809, 4876, + 8153, 4117, 5876, + 8153, 4849, 731, 12473, 9050, + 8153, 5444, + 8153, 6107, 10388, + 8153, 6379, 7908, + 8153, 6611, 6740, + 8153, 7119, 11195, 4926, + 8153, 7390, + 8153, 7391, 11195, 4926, + 8153, 7443, 731, 11099, 9050, + 8153, 7768, + 8153, 8088, + 8153, 8509, 11098, + 8153, 8509, 11099, 6121, 10666, + 8153, 8509, 12472, + 8153, 8745, 7768, + 8153, 8745, 12492, + 8153, 8759, 2091, 5758, + 8153, 8762, + 8153, 9095, 6689, 2170, + 8153, 9095, 6689, 2540, + 8153, 9095, 6689, 2778, + 8153, 9095, 6689, 4200, + 8153, 9095, 6689, 4214, + 8153, 9095, 6689, 5190, + 8153, 9095, 6689, 6722, + 8153, 9095, 6689, 7508, + 8153, 9095, 6689, 7694, + 8153, 9095, 8525, 2670, + 8153, 9437, 444, + 8153, 9437, 720, + 8153, 9525, 8306, + 8153, 9719, 10374, + 8153, 10260, + 8153, 10452, + 8153, 10469, 4926, + 8153, 10574, + 8153, 10578, + 8153, 10677, 761, 4849, 11378, + 8153, 10677, 761, 8153, 4849, 11378, + 8153, 10677, 761, 8153, 7443, 11378, + 8153, 10677, 4876, + 8153, 12017, 4926, + 8153, 12492, + 8153, 13201, 11195, 4926, + 8159, 5244, + 8167, 5758, + 8167, 5759, 721, 9705, 10410, + 8167, 5759, 721, 9705, 10411, 6121, 7709, 6376, + 8167, 5759, 6121, 1045, 6490, + 8167, 5759, 6121, 2779, 4113, 6377, 721, 2779, 4113, 6490, + 8167, 5759, 6121, 6537, 6376, + 8167, 5759, 6377, 5445, 5758, + 8167, 5759, 6377, 7709, 10374, + 8167, 5759, 6377, 11097, 6434, + 8167, 5759, 6377, 11765, 6434, + 8167, 6121, 9898, + 8167, 6610, + 8172, + 8197, 5758, + 8203, 3992, + 8203, 7608, + 8209, 5401, 10260, + 8225, 6906, + 8226, + 8227, 12133, 4926, + 8228, + 8231, 12108, + 8233, 5566, + 8235, 6809, 5758, + 8246, + 8255, 7359, 5758, + 8263, 7630, + 8267, 8405, 1104, + 8267, 8405, 1510, + 8267, 8405, 3234, + 8267, 8405, 3980, + 8267, 8405, 4324, + 8267, 8405, 4384, + 8267, 8405, 4622, + 8267, 8405, 5191, 9344, + 8267, 8405, 6056, + 8267, 8405, 6768, + 8267, 8405, 6960, + 8267, 8405, 6984, + 8267, 8405, 7064, + 8267, 8405, 7078, + 8267, 8405, 7130, + 8267, 8405, 7322, + 8267, 8405, 7416, + 8267, 8405, 7490, + 8267, 8405, 7674, + 8267, 8405, 7828, + 8267, 8405, 7912, + 8267, 8405, 8502, + 8267, 8405, 8514, + 8267, 8405, 8822, + 8267, 8405, 9018, + 8267, 8405, 10394, + 8267, 8405, 10462, + 8285, 721, 5424, + 8285, 721, 8712, + 8287, 8153, 1045, 5965, 4926, + 8287, 8206, + 8287, 8405, 0, + 8287, 8405, 8, + 8287, 8405, 16, + 8287, 8405, 28, + 8287, 8405, 40, + 8287, 8405, 66, + 8287, 8405, 178, + 8287, 8405, 188, + 8287, 8405, 426, + 8287, 8405, 622, + 8287, 8405, 626, + 8287, 8405, 630, + 8287, 8405, 652, + 8287, 8405, 654, + 8287, 8405, 656, + 8287, 8405, 660, + 8287, 8405, 664, + 8287, 8405, 2908, + 8287, 8405, 2926, + 8287, 8405, 3012, + 8287, 8405, 3056, + 8287, 8405, 5770, + 8287, 8405, 6216, + 8287, 8405, 6230, + 8287, 8405, 6422, + 8287, 8405, 6594, + 8287, 8405, 6912, + 8287, 8405, 6982, + 8287, 8405, 7166, + 8287, 8405, 7244, + 8287, 8405, 7372, + 8287, 8405, 7440, + 8287, 8405, 7862, + 8287, 8405, 7866, + 8287, 8405, 7932, + 8287, 8405, 8362, + 8287, 8405, 8828, + 8287, 8405, 8950, + 8287, 8405, 8956, + 8287, 8405, 9086, + 8287, 8405, 9400, + 8287, 8405, 9562, + 8287, 8405, 9588, + 8287, 8405, 9780, + 8287, 8405, 10686, + 8287, 8405, 11248, + 8287, 8405, 11682, + 8287, 8405, 11696, + 8287, 8405, 11728, + 8287, 8405, 11758, + 8287, 8405, 11804, + 8287, 8405, 11812, + 8287, 8405, 11814, + 8287, 8405, 11824, + 8287, 8405, 11826, + 8287, 8405, 11828, + 8287, 8405, 11830, + 8287, 8405, 11832, + 8287, 8405, 12070, + 8287, 8405, 12080, + 8287, 8405, 12094, + 8287, 8405, 12096, + 8287, 8405, 12124, + 8287, 8405, 12144, + 8287, 8405, 12146, + 8287, 8405, 12150, + 8287, 8405, 12346, + 8287, 8405, 12348, + 8287, 8405, 12350, + 8287, 8405, 12352, + 8287, 8405, 12388, + 8287, 8405, 12514, + 8287, 8405, 12518, + 8287, 8405, 12520, + 8287, 8405, 12532, + 8287, 8405, 12534, + 8287, 8405, 12958, + 8287, 8405, 12960, + 8287, 8405, 12972, + 8287, 8405, 12978, + 8287, 8405, 12998, + 8287, 8405, 13004, + 8287, 8405, 13006, + 8287, 8405, 13008, + 8287, 8405, 13034, + 8287, 8405, 13204, + 8287, 8405, 13348, + 8287, 8405, 13354, + 8287, 8405, 13366, + 8287, 8405, 13368, + 8287, 8405, 13370, + 8287, 8405, 13374, + 8287, 8405, 13386, + 8287, 8717, 1045, 5965, 4926, + 8287, 9945, 5770, + 8287, 9945, 6594, + 8287, 9945, 6912, + 8287, 9945, 6982, + 8287, 9945, 7166, + 8287, 9945, 7244, + 8287, 9945, 7372, + 8287, 9945, 7440, + 8287, 9945, 8206, + 8287, 9945, 8362, + 8287, 9945, 8828, + 8287, 9945, 9086, + 8287, 9945, 9400, + 8287, 9945, 9562, + 8287, 9945, 9588, + 8287, 9945, 9780, + 8287, 9945, 10686, + 8287, 9945, 11248, + 8287, 9945, 11652, + 8287, 9945, 11728, + 8287, 9945, 11804, + 8287, 9945, 11806, + 8287, 9945, 11808, + 8287, 9945, 11810, + 8287, 9945, 11812, + 8287, 9945, 11814, + 8287, 9945, 11816, + 8287, 9945, 11824, + 8287, 9945, 11826, + 8287, 9945, 11828, + 8287, 9945, 11830, + 8287, 9945, 11832, + 8287, 9945, 11834, + 8287, 9945, 11902, + 8287, 9945, 12044, + 8287, 9945, 12046, + 8287, 9945, 12048, + 8287, 9945, 12080, + 8287, 9945, 12098, + 8287, 9945, 12124, + 8287, 9945, 12128, + 8287, 9945, 12144, + 8287, 9945, 12148, + 8287, 9945, 12346, + 8287, 9945, 12348, + 8287, 9945, 12350, + 8287, 9945, 12352, + 8287, 9945, 12388, + 8287, 9945, 12424, + 8287, 9945, 12484, + 8287, 9945, 12486, + 8287, 9945, 12512, + 8287, 9945, 12514, + 8287, 9945, 12518, + 8287, 9945, 12520, + 8287, 9945, 12858, + 8287, 9945, 12860, + 8287, 9945, 12862, + 8287, 9945, 12864, + 8287, 9945, 12908, + 8287, 9945, 12910, + 8287, 9945, 12942, + 8287, 9945, 12946, + 8287, 9945, 12948, + 8287, 9945, 12950, + 8287, 9945, 12958, + 8287, 9945, 12960, + 8287, 9945, 12962, + 8287, 9945, 12992, + 8287, 9945, 12994, + 8287, 9945, 12996, + 8287, 9945, 12998, + 8287, 9945, 13026, + 8287, 9945, 13078, + 8287, 9945, 13192, + 8287, 9945, 13194, + 8287, 9945, 13196, + 8287, 9945, 13204, + 8287, 9945, 13218, + 8287, 9945, 13238, + 8287, 9945, 13342, + 8287, 9945, 13344, + 8287, 9945, 13358, + 8287, 9945, 13366, + 8287, 9945, 13368, + 8287, 9945, 13378, + 8287, 9945, 13382, + 8287, 9945, 13384, + 8287, 9945, 13386, + 8287, 9945, 13408, + 8287, 9945, 13412, + 8287, 11071, 5770, + 8287, 11071, 6594, + 8287, 11071, 6912, + 8287, 11071, 6982, + 8287, 11071, 7166, + 8287, 11071, 7244, + 8287, 11071, 7372, + 8287, 11071, 7440, + 8287, 11071, 8362, + 8287, 11071, 8828, + 8287, 11071, 9086, + 8287, 11071, 9400, + 8287, 11071, 9562, + 8287, 11071, 9588, + 8287, 11071, 9780, + 8287, 11071, 10686, + 8287, 11071, 11248, + 8287, 11071, 11682, + 8287, 11071, 11696, + 8287, 11071, 11728, + 8287, 11071, 11758, + 8287, 11071, 11814, + 8287, 11071, 11816, + 8287, 11071, 11828, + 8287, 11071, 11834, + 8287, 11071, 12032, + 8287, 11071, 12034, + 8287, 11071, 12036, + 8287, 11071, 12038, + 8287, 11071, 12070, + 8287, 11071, 12078, + 8287, 11071, 12080, + 8287, 11071, 12082, + 8287, 11071, 12094, + 8287, 11071, 12096, + 8287, 11071, 12126, + 8287, 11071, 12130, + 8287, 11071, 12144, + 8287, 11071, 12146, + 8287, 11071, 12148, + 8287, 11071, 12150, + 8287, 11071, 12346, + 8287, 11071, 12348, + 8287, 11071, 12350, + 8287, 11071, 12388, + 8287, 11071, 12484, + 8287, 11071, 12496, + 8287, 11071, 12508, + 8287, 11071, 12512, + 8287, 11071, 12514, + 8287, 11071, 12532, + 8287, 11071, 12534, + 8287, 11071, 12884, + 8287, 11071, 12944, + 8287, 11071, 12958, + 8287, 11071, 12960, + 8287, 11071, 12970, + 8287, 11071, 12972, + 8287, 11071, 12978, + 8287, 11071, 12980, + 8287, 11071, 12992, + 8287, 11071, 12996, + 8287, 11071, 13002, + 8287, 11071, 13004, + 8287, 11071, 13006, + 8287, 11071, 13008, + 8287, 11071, 13026, + 8287, 11071, 13034, + 8287, 11071, 13204, + 8287, 11071, 13214, + 8287, 11071, 13224, + 8287, 11071, 13346, + 8287, 11071, 13348, + 8287, 11071, 13354, + 8287, 11071, 13362, + 8287, 11071, 13370, + 8287, 11071, 13372, + 8287, 11071, 13374, + 8287, 11071, 13388, + 8287, 11071, 13394, + 8287, 11071, 13396, + 8287, 11071, 13406, + 8287, 11073, 0, + 8287, 11073, 8, + 8287, 11073, 16, + 8287, 11073, 28, + 8287, 11073, 40, + 8287, 11073, 66, + 8287, 11073, 178, + 8287, 11073, 188, + 8287, 11073, 426, + 8287, 11073, 622, + 8287, 11073, 626, + 8287, 11073, 630, + 8287, 11073, 652, + 8287, 11073, 654, + 8287, 11073, 656, + 8287, 11073, 660, + 8287, 11073, 664, + 8287, 11073, 686, + 8287, 11073, 688, + 8287, 11073, 1466, + 8287, 11073, 1468, + 8287, 11073, 1470, + 8287, 11073, 2148, + 8287, 11073, 2150, + 8287, 11073, 2152, + 8287, 11073, 2800, + 8287, 11073, 2802, + 8287, 11073, 2908, + 8287, 11073, 2926, + 8287, 11073, 3012, + 8287, 11073, 3056, + 8287, 11073, 4160, + 8287, 11073, 4162, + 8287, 11073, 4168, + 8287, 11073, 4592, + 8287, 11073, 4594, + 8287, 11073, 5370, + 8287, 11073, 5372, + 8287, 11073, 6040, + 8287, 11073, 6042, + 8287, 11073, 6158, + 8287, 11073, 6204, + 8287, 11073, 6216, + 8287, 11073, 6218, + 8287, 11073, 6226, + 8287, 11073, 6228, + 8287, 11073, 6230, + 8287, 11073, 6232, + 8287, 11073, 6422, + 8287, 11073, 6736, + 8287, 11073, 6760, + 8287, 11073, 7838, + 8287, 11073, 7850, + 8287, 11073, 7852, + 8287, 11073, 7862, + 8287, 11073, 7864, + 8287, 11073, 7866, + 8287, 11073, 8206, + 8287, 11073, 8950, + 8287, 11073, 8952, + 8287, 11073, 8956, + 8287, 11073, 9002, + 8287, 11073, 9004, + 8287, 11073, 9346, + 8287, 11073, 9800, + 8287, 11073, 9882, + 8287, 11073, 11822, + 8293, 4927, 7121, 1044, + 8293, 4927, 7773, 1044, + 8293, 4927, 8455, 8056, + 8293, 7383, 2535, 1044, + 8293, 7383, 5522, + 8293, 7383, 5699, 1044, + 8293, 7383, 6901, 7342, + 8293, 7383, 6901, 7502, + 8293, 7383, 6901, 8620, + 8293, 7383, 6914, + 8293, 7383, 6948, + 8293, 7383, 6949, 6899, 1177, 2852, + 8293, 7383, 7148, + 8293, 7383, 7342, + 8293, 7383, 7502, + 8293, 7383, 7536, + 8293, 7383, 7742, + 8293, 7383, 8087, 445, 7132, + 8293, 7383, 8620, + 8293, 7383, 8621, 7404, + 8293, 7383, 8626, + 8293, 7383, 12957, 8910, + 8293, 7909, 2168, + 8293, 7909, 4054, + 8293, 7909, 4604, + 8293, 7909, 6439, 8280, + 8293, 7909, 6652, + 8293, 7909, 7192, + 8293, 7909, 7346, + 8293, 7909, 7402, + 8293, 7909, 7432, + 8293, 7909, 7502, + 8293, 7909, 7676, + 8293, 7909, 7855, 785, 6222, + 8293, 7909, 7858, + 8293, 7909, 7869, 6816, + 8293, 7909, 7869, 7404, + 8293, 7909, 7870, + 8293, 7909, 7886, + 8293, 7909, 8252, + 8293, 7909, 8253, 8492, + 8293, 7909, 8468, + 8293, 7909, 8469, 8346, + 8293, 7909, 8568, + 8293, 7909, 8623, 5398, + 8293, 7909, 8830, + 8293, 7909, 9272, + 8293, 7909, 9773, 8244, + 8293, 7909, 9773, 8624, + 8293, 7909, 10310, + 8293, 7909, 11016, + 8293, 7909, 11798, + 8293, 8405, 238, + 8293, 8405, 239, 6121, 7132, + 8293, 8405, 468, + 8293, 8405, 469, 6121, 5522, + 8293, 8405, 469, 6121, 8086, + 8293, 8405, 788, + 8293, 8405, 789, 6121, 5522, + 8293, 8405, 789, 6121, 8086, + 8293, 8405, 1366, + 8293, 8405, 1578, + 8293, 8405, 1579, 6121, 5522, + 8293, 8405, 1579, 6121, 8086, + 8293, 8405, 1892, + 8293, 8405, 1893, 6121, 8086, + 8293, 8405, 2110, + 8293, 8405, 2111, 6121, 8086, + 8293, 8405, 2318, + 8293, 8405, 2319, 6121, 8086, + 8293, 8405, 2660, + 8293, 8405, 2661, 6121, 8086, + 8293, 8405, 2674, + 8293, 8405, 2675, 6121, 8086, + 8293, 8405, 2852, + 8293, 8405, 2853, 6121, 6948, + 8293, 8405, 2853, 6121, 8086, + 8293, 8405, 3080, + 8293, 8405, 3081, 6121, 6914, + 8293, 8405, 3081, 6121, 8086, + 8293, 8405, 3244, + 8293, 8405, 3245, 6121, 7132, + 8293, 8405, 3245, 6121, 7342, + 8293, 8405, 3245, 6121, 8620, + 8293, 8405, 3292, + 8293, 8405, 5538, + 8293, 8405, 5539, 6121, 8086, + 8293, 8405, 5698, + 8293, 8405, 5699, 6121, 2535, 1044, + 8293, 8405, 5699, 6121, 5699, 1044, + 8293, 8405, 5699, 6121, 8086, + 8293, 8405, 5699, 6121, 8087, 721, 2535, 1044, + 8293, 8405, 5699, 6121, 8087, 721, 5699, 1044, + 8293, 8405, 6115, 238, + 8293, 8405, 6115, 1578, + 8293, 8405, 6115, 2660, + 8293, 8405, 6115, 3244, + 8293, 8405, 6115, 5538, + 8293, 8405, 6115, 6642, + 8293, 8405, 6115, 6789, 1892, + 8293, 8405, 6115, 7082, + 8293, 8405, 6642, + 8293, 8405, 6643, 6121, 8086, + 8293, 8405, 6789, 468, + 8293, 8405, 6789, 469, 6121, 8086, + 8293, 8405, 6789, 1578, + 8293, 8405, 6789, 1579, 6121, 8086, + 8293, 8405, 6789, 1892, + 8293, 8405, 6789, 2110, + 8293, 8405, 6789, 7740, + 8293, 8405, 6856, + 8293, 8405, 6857, 6121, 8086, + 8293, 8405, 7082, + 8293, 8405, 7083, 6121, 8086, + 8293, 8405, 7740, + 8293, 8405, 7741, 6121, 8086, + 8293, 8405, 7872, + 8293, 8405, 7873, 6121, 8086, + 8293, 8405, 8660, + 8293, 8405, 8661, 6121, 8086, + 8293, 8405, 11893, 3292, + 8293, 8405, 11893, 5445, 5758, + 8293, 10301, 3245, 7082, + 8293, 10301, 9847, 2853, 3080, + 8293, 10301, 9847, 3081, 3081, 7342, + 8293, 10301, 9847, 8153, 2852, + 8293, 10301, 9847, 8153, 3080, + 8293, 12133, 2111, 9318, + 8293, 12133, 2551, 7340, + 8293, 12133, 7134, + 8293, 12133, 7338, + 8293, 12133, 8252, + 8293, 12133, 11016, + 8306, + 8307, 6121, 10804, + 8307, 8022, + 8337, 9617, 151, 2090, + 8337, 9617, 228, + 8337, 9617, 229, 8722, + 8337, 9617, 720, + 8337, 9617, 742, + 8337, 9617, 806, + 8337, 9617, 824, + 8337, 9617, 920, + 8337, 9617, 1036, + 8337, 9617, 1044, + 8337, 9617, 1048, + 8337, 9617, 1090, + 8337, 9617, 1092, + 8337, 9617, 1136, + 8337, 9617, 1170, + 8337, 9617, 1182, + 8337, 9617, 1474, + 8337, 9617, 1504, + 8337, 9617, 1780, + 8337, 9617, 1860, + 8337, 9617, 2024, + 8337, 9617, 2090, + 8337, 9617, 2166, + 8337, 9617, 2170, + 8337, 9617, 2224, + 8337, 9617, 2390, + 8337, 9617, 2392, + 8337, 9617, 2400, + 8337, 9617, 2454, + 8337, 9617, 2502, + 8337, 9617, 2504, + 8337, 9617, 2586, + 8337, 9617, 2670, + 8337, 9617, 2778, + 8337, 9617, 2779, 6896, + 8337, 9617, 2834, + 8337, 9617, 3762, + 8337, 9617, 3788, + 8337, 9617, 3794, + 8337, 9617, 3798, + 8337, 9617, 3800, + 8337, 9617, 3805, 429, 6604, + 8337, 9617, 3806, + 8337, 9617, 3850, + 8337, 9617, 3852, + 8337, 9617, 3940, + 8337, 9617, 3942, + 8337, 9617, 3944, + 8337, 9617, 4052, + 8337, 9617, 4094, + 8337, 9617, 4108, + 8337, 9617, 4117, 826, + 8337, 9617, 4120, + 8337, 9617, 4172, + 8337, 9617, 4178, + 8337, 9617, 4180, + 8337, 9617, 4194, + 8337, 9617, 4196, + 8337, 9617, 4208, + 8337, 9617, 4218, + 8337, 9617, 4244, + 8337, 9617, 4342, + 8337, 9617, 4386, + 8337, 9617, 4389, 5969, 7736, + 8337, 9617, 4390, + 8337, 9617, 4398, + 8337, 9617, 4402, + 8337, 9617, 4530, + 8337, 9617, 4536, + 8337, 9617, 4608, + 8337, 9617, 4628, + 8337, 9617, 4824, + 8337, 9617, 4834, + 8337, 9617, 4844, + 8337, 9617, 4846, + 8337, 9617, 4850, + 8337, 9617, 4872, + 8337, 9617, 4876, + 8337, 9617, 4894, + 8337, 9617, 4895, 8756, + 8337, 9617, 4940, + 8337, 9617, 5012, + 8337, 9617, 5242, + 8337, 9617, 5385, 826, + 8337, 9617, 5438, + 8337, 9617, 5524, + 8337, 9617, 5546, + 8337, 9617, 5562, + 8337, 9617, 5632, + 8337, 9617, 5646, + 8337, 9617, 5650, + 8337, 9617, 5764, + 8337, 9617, 5772, + 8337, 9617, 5834, + 8337, 9617, 5836, + 8337, 9617, 5884, + 8337, 9617, 5940, + 8337, 9617, 5968, + 8337, 9617, 6100, + 8337, 9617, 6101, 10970, + 8337, 9617, 6112, + 8337, 9617, 6116, + 8337, 9617, 6118, + 8337, 9617, 6130, + 8337, 9617, 6132, + 8337, 9617, 6384, + 8337, 9617, 6434, + 8337, 9617, 6504, + 8337, 9617, 6512, + 8337, 9617, 6520, + 8337, 9617, 6574, + 8337, 9617, 6600, + 8337, 9617, 6612, + 8337, 9617, 6618, + 8337, 9617, 6670, + 8337, 9617, 6716, + 8337, 9617, 6722, + 8337, 9617, 6734, + 8337, 9617, 6780, + 8337, 9617, 6786, + 8337, 9617, 6794, + 8337, 9617, 6852, + 8337, 9617, 6870, + 8337, 9617, 6872, + 8337, 9617, 6906, + 8337, 9617, 6952, + 8337, 9617, 7056, + 8337, 9617, 7144, + 8337, 9617, 7184, + 8337, 9617, 7186, + 8337, 9617, 7388, + 8337, 9617, 7443, 5385, 826, + 8337, 9617, 7446, + 8337, 9617, 7526, + 8337, 9617, 7532, + 8337, 9617, 7548, + 8337, 9617, 7551, 8785, 3788, + 8337, 9617, 7551, 8824, + 8337, 9617, 7580, + 8337, 9617, 7582, + 8337, 9617, 7584, + 8337, 9617, 7592, + 8337, 9617, 7602, + 8337, 9617, 7604, + 8337, 9617, 7612, + 8337, 9617, 7616, + 8337, 9617, 7628, + 8337, 9617, 7634, + 8337, 9617, 7642, + 8337, 9617, 7654, + 8337, 9617, 7662, + 8337, 9617, 7704, + 8337, 9617, 7726, + 8337, 9617, 7730, + 8337, 9617, 7812, + 8337, 9617, 7816, + 8337, 9617, 7820, + 8337, 9617, 7830, + 8337, 9617, 7832, + 8337, 9617, 7942, + 8337, 9617, 7964, + 8337, 9617, 7974, + 8337, 9617, 8000, + 8337, 9617, 8008, + 8337, 9617, 8078, + 8337, 9617, 8118, + 8337, 9617, 8151, 5896, + 8337, 9617, 8151, 6600, + 8337, 9617, 8153, 46, + 8337, 9617, 8154, + 8337, 9617, 8194, + 8337, 9617, 8303, 10970, + 8337, 9617, 8316, + 8337, 9617, 8476, + 8337, 9617, 8484, + 8337, 9617, 8542, + 8337, 9617, 8678, + 8337, 9617, 8680, + 8337, 9617, 8730, + 8337, 9617, 8734, + 8337, 9617, 8740, + 8337, 9617, 8744, + 8337, 9617, 8793, 9426, + 8337, 9617, 8844, + 8337, 9617, 8852, + 8337, 9617, 8866, + 8337, 9617, 8870, + 8337, 9617, 8906, + 8337, 9617, 8928, + 8337, 9617, 8946, + 8337, 9617, 9056, + 8337, 9617, 9102, + 8337, 9617, 9106, + 8337, 9617, 9274, + 8337, 9617, 9282, + 8337, 9617, 9322, + 8337, 9617, 9426, + 8337, 9617, 9480, + 8337, 9617, 9532, + 8337, 9617, 9608, + 8337, 9617, 9658, + 8337, 9617, 9822, + 8337, 9617, 9934, + 8337, 9617, 10206, + 8337, 9617, 10336, + 8337, 9617, 10344, + 8337, 9617, 10456, + 8337, 9617, 10520, + 8337, 9617, 10542, + 8337, 9617, 10970, + 8337, 9617, 11488, + 8337, 9617, 11606, + 8337, 9617, 11946, + 8337, 9617, 12155, 6118, + 8349, 5758, + 8371, 10539, 8774, + 8389, 5912, + 8389, 5913, 445, 6741, 568, + 8401, 5759, 2388, + 8401, 5759, 7282, + 8401, 6689, 2170, + 8401, 6689, 2540, + 8401, 6689, 2778, + 8401, 6689, 4200, + 8401, 6689, 4214, + 8401, 6689, 5190, + 8401, 6689, 6260, + 8401, 6689, 6722, + 8401, 6689, 7508, + 8401, 6689, 7694, + 8401, 7803, 5759, 8, + 8401, 7803, 5759, 16, + 8401, 7803, 5759, 28, + 8401, 7803, 5759, 40, + 8401, 7803, 5759, 58, + 8401, 7803, 5759, 440, + 8401, 7803, 5759, 606, + 8401, 8405, 0, + 8401, 8405, 100, + 8401, 8405, 116, + 8401, 8405, 138, + 8401, 8405, 196, + 8401, 8405, 216, + 8401, 8405, 236, + 8401, 8405, 292, + 8401, 8405, 306, + 8401, 8405, 332, + 8401, 8405, 364, + 8401, 8405, 392, + 8401, 8405, 462, + 8401, 8405, 510, + 8401, 8405, 524, + 8401, 8405, 556, + 8401, 8405, 610, + 8401, 8405, 622, + 8401, 8405, 652, + 8401, 8405, 814, + 8401, 8405, 884, + 8401, 8405, 974, + 8401, 8405, 1080, + 8401, 8405, 1168, + 8401, 8405, 1286, + 8401, 8405, 1390, + 8401, 8405, 1612, + 8401, 8405, 1652, + 8401, 8405, 1930, + 8401, 8405, 2030, + 8401, 8405, 2126, + 8401, 8405, 2212, + 8401, 8405, 2234, + 8401, 8405, 2516, + 8401, 8405, 2678, + 8401, 8405, 2732, + 8401, 8405, 2746, + 8401, 8405, 5978, + 8401, 8405, 5994, + 8401, 10775, 5759, 20, + 8401, 10775, 5759, 22, + 8401, 10775, 5759, 24, + 8401, 10775, 5759, 26, + 8401, 10775, 5759, 30, + 8401, 10775, 5759, 34, + 8401, 10775, 5759, 38, + 8401, 10775, 5759, 4720, + 8401, 10775, 5759, 9522, + 8401, 11257, 8405, 510, + 8401, 11257, 8405, 652, + 8401, 12133, 5301, 8827, 8782, + 8401, 12133, 8038, + 8401, 12133, 8782, + 8401, 12133, 8856, + 8401, 12133, 8857, 8038, + 8421, 3, 8775, 3328, + 8421, 3, 8775, 3330, + 8421, 3, 8775, 3336, + 8421, 3, 8775, 3360, + 8421, 3, 8775, 3384, + 8421, 3, 8775, 3388, + 8421, 3, 8775, 3402, + 8421, 3, 8775, 3416, + 8421, 3, 8775, 3418, + 8421, 3, 8775, 3448, + 8421, 3, 8775, 3454, + 8421, 3, 8775, 3456, + 8421, 3, 8775, 3460, + 8421, 3, 8775, 3464, + 8421, 3, 10247, 3471, 1860, + 8421, 3, 10247, 3473, 7830, + 8421, 3, 10247, 3475, 4052, + 8421, 3, 10247, 3477, 6742, + 8421, 3, 10247, 3479, 7816, + 8421, 3, 10247, 3481, 7978, + 8421, 3, 10247, 3483, 7314, + 8421, 3, 10247, 3485, 7614, + 8421, 3, 10247, 3487, 9134, + 8421, 3, 10247, 3493, 2164, + 8421, 3, 10247, 3495, 6118, + 8421, 3, 10247, 3496, + 8421, 3, 10247, 3503, 8018, + 8421, 3, 10247, 3505, 4342, + 8421, 3, 10247, 3506, + 8421, 3, 10247, 3509, 6124, + 8421, 3, 10247, 3510, + 8421, 3, 10247, 3512, + 8421, 3, 10247, 3515, 4536, + 8421, 3, 10247, 3516, + 8421, 3, 10247, 3518, + 8421, 3, 10247, 3520, + 8421, 3, 10247, 3526, + 8421, 3, 10247, 3528, + 8421, 3, 10247, 3531, 6604, + 8421, 3, 10247, 3532, + 8421, 3, 10247, 3534, + 8421, 3, 10247, 3537, 9300, + 8421, 3, 10247, 3539, 7936, + 8421, 3, 10247, 3540, + 8421, 3, 10247, 3542, + 8421, 3, 10247, 3544, + 8421, 3, 10247, 3546, + 8421, 3, 10247, 3548, + 8421, 3, 10247, 3550, + 8421, 3, 10247, 3552, + 8421, 3, 10247, 3554, + 8421, 3, 10247, 3556, + 8421, 3, 10247, 3559, 7182, + 8421, 3, 10247, 3560, + 8421, 3, 10247, 3563, 5968, + 8421, 3, 10247, 3564, + 8421, 3, 10247, 3566, + 8421, 3, 10247, 3568, + 8421, 3, 10247, 3570, + 8421, 3, 10247, 3572, + 8421, 3, 10247, 3574, + 8421, 3, 10247, 3576, + 8421, 3, 10247, 3578, + 8421, 3, 10247, 3580, + 8421, 3, 10247, 3582, + 8421, 3, 10247, 3584, + 8421, 3, 10247, 3587, 8296, + 8421, 3, 10247, 3629, 11000, + 8421, 3, 10247, 3635, 9030, + 8421, 3, 10247, 3645, 7612, + 8421, 3, 10247, 3647, 6434, + 8421, 3, 10247, 3648, + 8421, 3, 10247, 3651, 7656, + 8421, 3, 10247, 3652, + 8421, 3, 10247, 3654, + 8421, 3, 10247, 3657, 9841, 9082, + 8421, 3, 10247, 3659, 9082, + 8421, 3, 10247, 3661, 9083, 6806, + 8421, 3, 10247, 3663, 7818, + 8421, 3, 10247, 3664, + 8421, 3, 10247, 3666, + 8421, 3, 10247, 3670, + 8421, 3, 10247, 3672, + 8421, 3, 10247, 3676, + 8421, 3, 10247, 3678, + 8421, 3, 10247, 3680, + 8421, 3, 10247, 3683, 3990, + 8421, 3, 10247, 3684, + 8421, 3, 10247, 3686, + 8421, 3, 10247, 3688, + 8421, 3, 10247, 3690, + 8421, 3, 10247, 3692, + 8421, 3, 10247, 6445, 4924, + 8421, 3, 10247, 6447, 10536, + 8421, 3, 10247, 6449, 1132, + 8421, 3, 10247, 6451, 2386, + 8421, 3, 10247, 6453, 10516, + 8421, 3, 10247, 6455, 9332, + 8421, 3, 10247, 6457, 2562, + 8421, 3, 10247, 6459, 3796, + 8421, 3, 10247, 6461, 920, + 8421, 3, 10247, 6463, 3812, + 8421, 3, 10247, 8915, 3522, + 8421, 3, 10247, 8915, 3588, + 8421, 3, 10247, 8915, 3590, + 8421, 3, 10247, 8915, 3592, + 8421, 3, 10247, 8915, 3594, + 8421, 3, 10247, 8915, 3596, + 8421, 3, 10247, 8915, 3598, + 8421, 3, 10247, 8915, 3600, + 8421, 3, 10247, 8915, 3602, + 8421, 3, 10247, 8915, 3604, + 8421, 3, 10247, 8915, 3606, + 8421, 3, 10247, 8915, 3608, + 8421, 3, 10247, 8915, 3610, + 8421, 3, 10247, 8915, 3612, + 8421, 3, 10247, 8915, 3614, + 8421, 3, 10247, 8915, 3616, + 8421, 3, 10247, 8915, 3618, + 8421, 3, 10247, 8915, 3620, + 8421, 3, 10247, 8915, 3622, + 8421, 3, 10247, 8915, 3624, + 8421, 3, 10247, 8915, 3626, + 8421, 3, 10247, 8915, 3630, + 8421, 3, 10247, 8915, 3632, + 8421, 3, 10247, 8915, 3636, + 8421, 3, 10247, 8915, 3638, + 8421, 3, 10247, 8915, 3640, + 8421, 3, 10247, 8915, 3642, + 8421, 3, 10247, 8915, 3674, + 8421, 3, 10247, 8915, 3694, + 8421, 3, 10343, 3489, 4726, + 8421, 3, 10343, 3491, 8334, + 8421, 3, 10343, 3499, 6424, + 8421, 3, 10343, 3501, 4948, + 8421, 3, 10343, 3525, 7754, + 8421, 3, 10343, 3669, 6692, + 8421, 3, 10585, 3295, 138, + 8421, 3, 10585, 3297, 516, + 8421, 3, 10585, 3299, 462, + 8421, 3, 10585, 3301, 560, + 8421, 3, 10585, 3303, 568, + 8421, 3, 10585, 3305, 392, + 8421, 3, 10585, 3307, 144, + 8421, 3, 10585, 3309, 0, + 8421, 3, 10585, 3311, 526, + 8421, 3, 10585, 3313, 40, + 8421, 3, 10585, 3315, 480, + 8421, 3, 10585, 3317, 536, + 8421, 3, 10585, 3319, 368, + 8421, 3, 10585, 3321, 150, + 8421, 3, 10585, 3323, 380, + 8421, 3, 10585, 3325, 496, + 8421, 3, 10585, 3327, 670, + 8421, 3, 10585, 3333, 678, + 8421, 3, 10585, 3335, 500, + 8421, 3, 10585, 3339, 384, + 8421, 3, 10585, 3341, 396, + 8421, 3, 10585, 3343, 54, + 8421, 3, 10585, 3345, 520, + 8421, 3, 10585, 3347, 512, + 8421, 3, 10585, 3349, 16, + 8421, 3, 10585, 3351, 2254, + 8421, 3, 10585, 3353, 404, + 8421, 3, 10585, 3355, 524, + 8421, 3, 10585, 3357, 502, + 8421, 3, 10585, 3359, 2376, + 8421, 3, 10585, 3363, 298, + 8421, 3, 10585, 3365, 564, + 8421, 3, 10585, 3367, 8, + 8421, 3, 10585, 3369, 476, + 8421, 3, 10585, 3371, 630, + 8421, 3, 10585, 3373, 532, + 8421, 3, 10585, 3375, 632, + 8421, 3, 10585, 3377, 56, + 8421, 3, 10585, 3379, 310, + 8421, 3, 10585, 3381, 142, + 8421, 3, 10585, 3383, 294, + 8421, 3, 10585, 3387, 2122, + 8421, 3, 10585, 3391, 486, + 8421, 3, 10585, 3393, 152, + 8421, 3, 10585, 3395, 412, + 8421, 3, 10585, 3397, 514, + 8421, 3, 10585, 3399, 622, + 8421, 3, 10585, 3401, 416, + 8421, 3, 10585, 3405, 292, + 8421, 3, 10585, 3407, 546, + 8421, 3, 10585, 3409, 556, + 8421, 3, 10585, 3411, 510, + 8421, 3, 10585, 3413, 28, + 8421, 3, 10585, 3415, 2252, + 8421, 3, 10585, 3421, 300, + 8421, 3, 10585, 3423, 2632, + 8421, 3, 10585, 3425, 314, + 8421, 3, 10585, 3427, 2422, + 8421, 3, 10585, 3429, 576, + 8421, 3, 10585, 3431, 322, + 8421, 3, 10585, 3433, 1074, + 8421, 3, 10585, 3435, 468, + 8421, 3, 10585, 3437, 374, + 8421, 3, 10585, 3439, 672, + 8421, 3, 10585, 3441, 626, + 8421, 3, 10585, 3443, 2374, + 8421, 3, 10585, 3445, 306, + 8421, 3, 10585, 3447, 498, + 8421, 3, 10585, 3451, 364, + 8421, 3, 10585, 3453, 326, + 8421, 3, 10585, 3459, 92, + 8421, 3, 10585, 3463, 2774, + 8421, 3, 10585, 3467, 1076, + 8421, 3, 10585, 3469, 2778, + 8429, 8405, 0, + 8429, 8405, 2, + 8429, 8405, 6, + 8429, 8405, 8, + 8429, 8405, 12, + 8429, 8405, 14, + 8429, 8405, 16, + 8429, 8405, 18, + 8429, 8405, 20, + 8429, 8405, 22, + 8429, 8405, 24, + 8429, 8405, 26, + 8429, 8405, 30, + 8429, 8405, 32, + 8429, 8405, 34, + 8429, 8405, 36, + 8429, 8405, 38, + 8429, 8405, 40, + 8429, 8405, 44, + 8429, 8405, 46, + 8429, 8405, 50, + 8429, 8405, 80, + 8429, 8405, 104, + 8429, 8405, 176, + 8429, 8405, 316, + 8429, 8405, 378, + 8429, 8405, 410, + 8429, 8405, 562, + 8429, 8405, 574, + 8431, 8405, 0, + 8431, 8405, 2, + 8431, 8405, 4, + 8431, 8405, 6, + 8431, 8405, 8, + 8431, 8405, 10, + 8431, 8405, 12, + 8431, 8405, 16, + 8431, 8405, 20, + 8431, 8405, 22, + 8431, 8405, 24, + 8431, 8405, 26, + 8431, 8405, 28, + 8431, 8405, 32, + 8431, 8405, 34, + 8431, 8405, 36, + 8431, 8405, 38, + 8431, 8405, 40, + 8431, 8405, 42, + 8431, 8405, 48, + 8431, 8405, 80, + 8431, 8405, 176, + 8431, 8405, 360, + 8431, 8405, 410, + 8431, 8405, 542, + 8431, 8405, 574, + 8431, 11859, 4926, + 8432, + 8463, 4849, 6627, 9051, 10380, + 8463, 4849, 12115, 10380, + 8463, 6505, 8056, + 8463, 7443, 6627, 9051, 10380, + 8463, 7443, 12115, 10380, + 8463, 7512, + 8463, 7593, 7821, 8056, + 8463, 7821, 8056, + 8463, 10677, 760, + 8463, 10997, 4849, 12115, 10380, + 8463, 10997, 7443, 12115, 10380, + 8463, 12505, 7608, + 8463, 12967, 6409, 9051, 10380, + 8463, 13067, 6409, 9051, 10380, + 8473, 1044, + 8480, + 8483, 2779, 2584, + 8499, 10363, 7608, + 8510, + 8521, 10573, 428, + 8521, 10573, 429, 445, 6741, 568, + 8525, 2671, 4223, 5836, + 8525, 5758, + 8525, 8163, 4223, 5836, + 8525, 8875, 4223, 5836, + 8525, 8877, 4223, 5836, + 8525, 9287, 4223, 5836, + 8525, 9701, 4223, 5836, + 8525, 10151, 4223, 5836, + 8525, 10201, 4223, 5836, + 8525, 10361, 4223, 5836, + 8525, 10623, 4223, 5836, + 8525, 11233, 4223, 5836, + 8527, 5758, + 8533, 12143, 10758, 8534, - 8557, 961, 9772, - 8557, 3758, - 8557, 5039, 7569, 6313, 9029, 5472, - 8557, 5094, - 8557, 5201, 9772, - 8557, 6287, 2004, - 8557, 6287, 2358, - 8557, 6287, 2584, - 8557, 6287, 3942, - 8557, 6287, 3956, - 8557, 6287, 4854, - 8557, 6287, 5878, - 8557, 6287, 6312, - 8557, 6287, 7060, - 8557, 6287, 7244, - 8557, 6489, 7357, 11083, 6046, - 8557, 6659, 7143, 7919, 0, - 8557, 6659, 7143, 7919, 2, - 8557, 6659, 7143, 7919, 4, - 8557, 6659, 7143, 7919, 6, - 8557, 6659, 7143, 7919, 8, - 8557, 6659, 7143, 7919, 10, - 8557, 6659, 7143, 7919, 12, - 8557, 6659, 7143, 7919, 14, - 8557, 6659, 7143, 7919, 16, - 8557, 6659, 7143, 7919, 18, - 8557, 6659, 7143, 7919, 20, - 8557, 6659, 7143, 7919, 22, - 8557, 6659, 7143, 7919, 24, - 8557, 6659, 7143, 7919, 26, - 8557, 6659, 7143, 7919, 28, - 8557, 6659, 7143, 7919, 30, - 8557, 6659, 7143, 7919, 32, - 8557, 6659, 7143, 7919, 34, - 8557, 6659, 7143, 7919, 36, - 8557, 6659, 7143, 7919, 38, - 8557, 6659, 7143, 7919, 40, - 8557, 6659, 7143, 7919, 42, - 8557, 6659, 7143, 7919, 44, - 8557, 6659, 7143, 7919, 46, - 8557, 6659, 7143, 7919, 48, - 8557, 6659, 7143, 7919, 50, - 8557, 6659, 8527, 7919, 0, - 8557, 6659, 8527, 7919, 2, - 8557, 6659, 8527, 7919, 4, - 8557, 6659, 8527, 7919, 6, - 8557, 6659, 8527, 7919, 8, - 8557, 6659, 8527, 7919, 10, - 8557, 6659, 8527, 7919, 12, - 8557, 6659, 8527, 7919, 14, - 8557, 6659, 8527, 7919, 16, - 8557, 6659, 8527, 7919, 18, - 8557, 6659, 8527, 7919, 20, - 8557, 6659, 8527, 7919, 22, - 8557, 6659, 8527, 7919, 24, - 8557, 6659, 8527, 7919, 26, - 8557, 6659, 8527, 7919, 28, - 8557, 6659, 8527, 7919, 30, - 8557, 6659, 8527, 7919, 32, - 8557, 6659, 8527, 7919, 34, - 8557, 6659, 8527, 7919, 36, - 8557, 6659, 8527, 7919, 38, - 8557, 6659, 8527, 7919, 40, - 8557, 6659, 8527, 7919, 42, - 8557, 6659, 8527, 7919, 44, - 8557, 6659, 8527, 7919, 46, - 8557, 6659, 8527, 7919, 48, - 8557, 6659, 8527, 7919, 50, - 8557, 6738, - 8557, 7258, - 8557, 7357, 5472, - 8557, 7357, 7556, - 8557, 7556, - 8557, 7686, - 8557, 7805, 5412, - 8557, 7805, 5413, 0, - 8557, 7805, 6196, - 8557, 7805, 6197, 0, - 8557, 7805, 6492, - 8557, 7805, 6493, 0, - 8557, 7805, 6560, - 8557, 7805, 6561, 0, - 8557, 7805, 6561, 40, - 8557, 7805, 6732, - 8557, 7805, 6733, 0, - 8557, 7805, 6802, - 8557, 7805, 6803, 0, - 8557, 7805, 6930, - 8557, 7805, 6931, 0, - 8557, 7805, 6994, - 8557, 7805, 6995, 0, - 8557, 7805, 7878, - 8557, 7805, 7879, 0, - 8557, 7805, 8308, - 8557, 7805, 8309, 0, - 8557, 7805, 8548, - 8557, 7805, 8549, 0, - 8557, 7805, 8850, - 8557, 7805, 8851, 0, - 8557, 7805, 9016, - 8557, 7805, 9017, 0, - 8557, 7805, 9194, - 8557, 7805, 9195, 0, - 8557, 7887, 10117, 6590, - 8557, 7887, 10117, 7570, - 8557, 8031, 2478, - 8557, 8031, 6370, - 8557, 8031, 6390, - 8557, 8031, 6391, 2004, - 8557, 8031, 6391, 2358, - 8557, 8031, 6391, 2584, - 8557, 8031, 6391, 3942, - 8557, 8031, 6391, 3956, - 8557, 8031, 6391, 4854, - 8557, 8031, 6391, 6312, - 8557, 8031, 6391, 7060, - 8557, 8031, 6391, 7244, - 8557, 8031, 7682, - 8557, 8031, 8302, - 8557, 8031, 8303, 2004, - 8557, 8031, 8303, 2358, - 8557, 8031, 8303, 2584, - 8557, 8031, 8303, 3942, - 8557, 8031, 8303, 3956, - 8557, 8031, 8303, 4854, - 8557, 8031, 8303, 6312, - 8557, 8031, 8303, 7060, - 8557, 8031, 8303, 7244, - 8557, 8031, 8350, - 8557, 8031, 8352, - 8557, 8031, 8353, 2004, - 8557, 8031, 8353, 2358, - 8557, 8031, 8353, 2584, - 8557, 8031, 8353, 3942, - 8557, 8031, 8353, 3956, - 8557, 8031, 8353, 4854, - 8557, 8031, 8353, 6312, - 8557, 8031, 8353, 7060, - 8557, 8031, 8353, 7244, - 8557, 8031, 8738, - 8557, 8031, 9116, - 8557, 8031, 9556, - 8557, 8031, 9602, - 8557, 8031, 9758, - 8557, 8031, 9992, - 8557, 8031, 10570, - 8557, 8107, 4630, - 8557, 9061, 9134, - 8557, 9309, 9772, - 8557, 9425, 5400, - 8557, 9425, 7132, - 8557, 9683, 0, - 8557, 9683, 8, - 8557, 9683, 16, - 8557, 9683, 28, - 8557, 9683, 40, - 8557, 9683, 220, - 8557, 9683, 222, - 8557, 9683, 226, - 8557, 9683, 230, - 8557, 9683, 234, - 8557, 9683, 286, - 8557, 9683, 290, - 8557, 9683, 294, - 8557, 9683, 302, - 8557, 9683, 306, - 8557, 9683, 342, - 8557, 9683, 346, - 8557, 9683, 352, - 8557, 9683, 358, - 8557, 9683, 362, - 8557, 9683, 370, - 8557, 9683, 372, - 8557, 9683, 380, - 8557, 9683, 386, - 8557, 9683, 390, - 8557, 9683, 472, - 8557, 9683, 474, - 8557, 9683, 476, - 8557, 9683, 478, - 8557, 9683, 482, - 8557, 9683, 486, - 8557, 9683, 488, - 8557, 9683, 492, - 8557, 9683, 496, - 8557, 9683, 502, - 8557, 9683, 510, - 8557, 9683, 514, - 8557, 9683, 518, - 8557, 9683, 520, - 8557, 9683, 526, - 8557, 9683, 566, - 8557, 9683, 570, - 8557, 9683, 574, - 8557, 9683, 576, - 8557, 9683, 596, - 8557, 9683, 604, - 8557, 9683, 608, - 8557, 9800, - 8557, 10011, 3862, - 8557, 10043, 696, - 8557, 10395, 1676, - 8557, 10395, 2004, - 8557, 10395, 2358, - 8557, 10395, 2402, - 8557, 10395, 2478, - 8557, 10395, 2584, - 8557, 10395, 3722, - 8557, 10395, 3936, - 8557, 10395, 3942, - 8557, 10395, 3956, - 8557, 10395, 4126, - 8557, 10395, 4148, - 8557, 10395, 4344, - 8557, 10395, 4554, - 8557, 10395, 4626, - 8557, 10395, 4702, - 8557, 10395, 4736, - 8557, 10395, 4854, - 8557, 10395, 5190, - 8557, 10395, 5742, - 8557, 10395, 6306, - 8557, 10395, 6312, - 8557, 10395, 6642, - 8557, 10395, 6716, - 8557, 10395, 6804, - 8557, 10395, 6948, - 8557, 10395, 6996, - 8557, 10395, 7060, - 8557, 10395, 7190, - 8557, 10395, 7196, - 8557, 10395, 7244, - 8557, 10395, 7348, - 8557, 10395, 7568, - 8557, 10395, 7716, - 8557, 10395, 8174, - 8557, 10395, 8582, - 8557, 10395, 9130, - 8557, 10395, 9138, - 8557, 10395, 9272, - 8557, 10395, 9726, - 8557, 10395, 9860, - 8557, 10395, 9866, - 8557, 10395, 9948, - 8557, 10395, 10092, - 8557, 10395, 10332, - 8557, 10395, 10344, - 8557, 10395, 10602, - 8557, 10395, 10944, - 8557, 10395, 12348, - 8557, 10450, - 8557, 10979, 697, 5741, 6830, - 8557, 11778, - 8557, 12288, - 8557, 12359, 5401, 5741, 10783, 7444, - 8557, 12511, 9425, 5400, - 8569, 7216, - 8575, 9660, - 8585, 8254, - 8595, 9957, 0, - 8595, 9957, 8, - 8595, 9957, 16, - 8595, 9957, 28, - 8595, 9957, 40, - 8595, 9957, 274, - 8595, 9957, 280, - 8595, 9957, 286, - 8595, 9957, 290, - 8595, 9957, 294, - 8595, 9957, 302, - 8595, 9957, 306, - 8595, 9957, 312, - 8595, 9957, 314, - 8595, 9957, 318, - 8595, 9957, 328, - 8595, 9957, 332, - 8595, 9957, 342, - 8595, 9957, 346, - 8595, 9957, 352, - 8595, 9957, 358, - 8595, 9957, 362, - 8595, 9957, 370, - 8595, 9957, 372, - 8595, 9957, 380, - 8595, 9957, 386, - 8595, 9957, 390, - 8595, 9957, 430, - 8595, 9957, 434, - 8595, 9957, 440, - 8595, 9957, 444, - 8595, 9957, 450, - 8595, 9957, 472, - 8595, 9957, 474, - 8595, 9957, 476, - 8595, 9957, 478, - 8595, 9957, 482, - 8595, 9957, 486, - 8595, 9957, 488, - 8595, 9957, 492, - 8595, 9957, 496, - 8595, 9957, 502, - 8595, 9957, 510, - 8595, 9957, 514, - 8595, 9957, 518, - 8595, 9957, 520, - 8595, 9957, 526, - 8595, 9957, 566, - 8595, 9957, 570, - 8595, 9957, 574, - 8595, 9957, 576, - 8595, 9957, 582, - 8595, 9957, 584, - 8595, 9957, 614, - 8595, 9957, 622, - 8609, 10567, 1491, 8258, - 8613, 7143, 7919, 14, - 8613, 7143, 7919, 92, - 8613, 7143, 7919, 152, - 8613, 7143, 7919, 160, - 8613, 7143, 7919, 162, - 8613, 7143, 7919, 164, - 8613, 7143, 7919, 168, - 8613, 7143, 7919, 170, - 8613, 7143, 7919, 178, - 8613, 7143, 7919, 404, - 8613, 7143, 7919, 424, - 8613, 7143, 7919, 578, - 8613, 7143, 7919, 714, - 8613, 7143, 7919, 908, - 8613, 7143, 7919, 1020, - 8613, 7143, 7919, 1034, - 8613, 7143, 7919, 1040, - 8613, 7143, 7919, 1134, - 8613, 7143, 7919, 1388, - 8613, 7143, 7919, 1476, - 8613, 7143, 7919, 2034, - 8613, 7143, 7919, 2474, - 8613, 7143, 7919, 2658, - 8613, 7143, 7919, 2842, - 8613, 7143, 7919, 2928, - 8613, 7143, 7919, 3660, - 8613, 7143, 7919, 4599, 0, - 8613, 7143, 7919, 4599, 8, - 8613, 7143, 7919, 4599, 16, - 8613, 7143, 7919, 4599, 28, - 8613, 7143, 7919, 4599, 68, - 8613, 7143, 7919, 4599, 410, - 8613, 7143, 7919, 5554, - 8613, 7143, 7919, 5892, - 8613, 7143, 7919, 7103, 0, - 8613, 7143, 7919, 7103, 8, - 8613, 7143, 7919, 7103, 16, - 8613, 7143, 7919, 7103, 28, - 8613, 7143, 7919, 7103, 68, - 8613, 7143, 7919, 7103, 410, - 8613, 8527, 7919, 14, - 8613, 8527, 7919, 92, - 8613, 8527, 7919, 152, - 8613, 8527, 7919, 160, - 8613, 8527, 7919, 162, - 8613, 8527, 7919, 164, - 8613, 8527, 7919, 168, - 8613, 8527, 7919, 170, - 8613, 8527, 7919, 178, - 8613, 8527, 7919, 404, - 8613, 8527, 7919, 424, - 8613, 8527, 7919, 578, - 8613, 8527, 7919, 714, - 8613, 8527, 7919, 908, - 8613, 8527, 7919, 1020, - 8613, 8527, 7919, 1034, - 8613, 8527, 7919, 1040, - 8613, 8527, 7919, 1134, - 8613, 8527, 7919, 1388, - 8613, 8527, 7919, 1476, - 8613, 8527, 7919, 2034, - 8613, 8527, 7919, 2474, - 8613, 8527, 7919, 2658, - 8613, 8527, 7919, 2842, - 8613, 8527, 7919, 2928, - 8613, 8527, 7919, 3660, - 8613, 8527, 7919, 4599, 0, - 8613, 8527, 7919, 4599, 8, - 8613, 8527, 7919, 4599, 16, - 8613, 8527, 7919, 4599, 28, - 8613, 8527, 7919, 4599, 68, - 8613, 8527, 7919, 4599, 410, - 8613, 8527, 7919, 5554, - 8613, 8527, 7919, 5892, - 8613, 8527, 7919, 7103, 0, - 8613, 8527, 7919, 7103, 8, - 8613, 8527, 7919, 7103, 16, - 8613, 8527, 7919, 7103, 28, - 8613, 8527, 7919, 7103, 68, - 8613, 8527, 7919, 7103, 410, - 8617, 5741, 2533, 4119, 6116, - 8617, 5741, 4555, 4119, 6116, - 8617, 5741, 6997, 4119, 6116, - 8617, 5741, 7539, 4119, 6116, - 8617, 9772, - 8627, 8557, 11085, 6287, 2004, - 8627, 8557, 11085, 6287, 2358, - 8627, 8557, 11085, 6287, 2584, - 8627, 8557, 11085, 6287, 3942, - 8627, 8557, 11085, 6287, 3956, - 8627, 8557, 11085, 6287, 4854, - 8627, 8557, 11085, 6287, 6312, - 8627, 8557, 11085, 6287, 7060, - 8627, 8557, 11085, 6287, 7244, - 8627, 8557, 11085, 8031, 2478, - 8627, 9755, 8557, 6287, 2004, - 8627, 9755, 8557, 6287, 2358, - 8627, 9755, 8557, 6287, 2584, - 8627, 9755, 8557, 6287, 3942, - 8627, 9755, 8557, 6287, 3956, - 8627, 9755, 8557, 6287, 4854, - 8627, 9755, 8557, 6287, 6312, - 8627, 9755, 8557, 6287, 7060, - 8627, 9755, 8557, 6287, 7244, - 8627, 9755, 8557, 8031, 2478, - 8627, 9755, 8557, 11085, 6287, 2004, - 8627, 9755, 8557, 11085, 6287, 2358, - 8627, 9755, 8557, 11085, 6287, 2584, - 8627, 9755, 8557, 11085, 6287, 3942, - 8627, 9755, 8557, 11085, 6287, 3956, - 8627, 9755, 8557, 11085, 6287, 4854, - 8627, 9755, 8557, 11085, 6287, 6312, - 8627, 9755, 8557, 11085, 6287, 7060, - 8627, 9755, 8557, 11085, 6287, 7244, - 8627, 9755, 8557, 11085, 8031, 2478, - 8636, - 8639, 8258, - 8699, 4627, 5400, - 8699, 7717, 5400, - 8701, 5400, - 8717, 400, - 8717, 401, 5741, 961, 5990, - 8717, 401, 5741, 2585, 10979, 9158, - 8717, 401, 5741, 4599, 10979, 8244, - 8717, 401, 5741, 8988, - 8717, 401, 5741, 10032, - 8717, 401, 5741, 10043, 697, 87, 1019, 401, 10979, 8244, - 8717, 401, 8979, 9222, - 8717, 401, 8979, 10312, - 8731, 9409, 9377, 6829, 3895, 6046, - 8731, 9409, 9377, 8143, 9408, - 8740, - 8744, - 8749, 2636, - 8767, 5400, - 8775, 5401, 9798, - 8775, 7341, 5401, 16, - 8775, 7341, 5401, 40, - 8775, 7919, 0, - 8775, 7919, 16, - 8775, 7919, 40, - 8775, 7919, 94, - 8775, 7919, 128, - 8775, 7919, 200, - 8775, 7919, 220, - 8775, 7919, 286, - 8775, 7919, 312, - 8775, 7919, 342, - 8775, 7919, 370, - 8775, 7919, 430, - 8775, 7919, 472, - 8775, 7919, 486, - 8775, 7919, 510, - 8775, 7919, 566, - 8775, 7919, 596, - 8775, 7919, 1874, - 8793, 5400, - 8811, 7467, 3955, 9098, - 8811, 10681, 9954, - 8817, 7357, 7582, - 8817, 7556, - 8830, - 8835, 71, 7915, 4630, - 8835, 5401, 6840, - 8835, 5401, 8392, - 8835, 5401, 9236, - 8835, 5401, 9280, - 8835, 5401, 9314, - 8835, 5401, 11378, - 8835, 5401, 11692, - 8835, 6287, 2004, - 8835, 6287, 2358, - 8835, 6287, 2584, - 8835, 6287, 3942, - 8835, 6287, 3956, - 8835, 6287, 4854, - 8835, 6287, 5878, - 8835, 6287, 6312, - 8835, 6287, 7060, - 8835, 6287, 7244, - 8835, 7341, 5401, 8, - 8835, 7341, 5401, 16, - 8835, 7341, 5401, 28, - 8835, 7341, 5401, 40, - 8835, 7341, 5401, 58, - 8835, 7341, 5401, 70, - 8835, 7341, 5401, 88, - 8835, 7341, 5401, 150, - 8835, 7341, 5401, 248, - 8835, 7341, 5401, 410, - 8835, 7341, 5401, 550, - 8835, 7341, 5401, 9239, 22, - 8835, 7341, 5401, 9239, 34, - 8835, 7341, 5401, 9239, 322, - 8835, 7341, 5401, 9239, 480, - 8835, 7915, 4630, - 8835, 7919, 0, - 8835, 7919, 8, - 8835, 7919, 16, - 8835, 7919, 28, - 8835, 7919, 40, - 8835, 7919, 58, - 8835, 7919, 70, - 8835, 7919, 88, - 8835, 7919, 94, - 8835, 7919, 108, - 8835, 7919, 128, - 8835, 7919, 150, - 8835, 7919, 182, - 8835, 7919, 200, - 8835, 7919, 220, - 8835, 7919, 248, - 8835, 7919, 274, - 8835, 7919, 286, - 8835, 7919, 312, - 8835, 7919, 342, - 8835, 7919, 370, - 8835, 7919, 410, - 8835, 7919, 430, - 8835, 7919, 472, - 8835, 7919, 486, - 8835, 7919, 510, - 8835, 7919, 550, - 8835, 7919, 554, - 8835, 7919, 596, - 8835, 7919, 728, - 8835, 7919, 810, - 8835, 7919, 898, - 8835, 7919, 920, - 8835, 7919, 1158, - 8835, 7919, 1394, - 8835, 7919, 1492, - 8835, 7919, 1664, - 8835, 7919, 1874, - 8835, 7919, 1916, - 8835, 7919, 1962, - 8835, 7919, 2042, - 8835, 7919, 2262, - 8835, 7919, 2334, - 8835, 7919, 2384, - 8835, 7919, 2486, - 8835, 7919, 2552, - 8835, 7919, 3782, - 8835, 7919, 5626, - 8835, 7919, 9239, 22, - 8835, 7919, 9239, 34, - 8835, 7919, 9239, 322, - 8835, 7919, 9239, 480, - 8881, 10455, 5400, - 8887, 414, - 8887, 415, 5741, 961, 5990, - 8887, 415, 5741, 7673, 8988, - 8887, 415, 5741, 7673, 10032, - 8887, 415, 5741, 7981, 5474, - 8887, 415, 5741, 10979, 3758, - 8887, 415, 11415, 8887, 656, - 8887, 656, - 8887, 657, 5741, 961, 5990, - 8887, 657, 5741, 7673, 8988, - 8887, 657, 5741, 7673, 10032, - 8887, 657, 5741, 7981, 5474, - 8887, 657, 5741, 10032, - 8887, 657, 5741, 10979, 3758, - 8888, - 8889, 8633, 107, 10979, 5256, - 8901, 6224, - 8918, - 8921, 10979, 9560, - 8929, 8259, 5, 3714, - 8929, 8259, 11, 3714, - 8929, 8259, 11, 3715, 8057, 3042, - 8929, 8259, 11, 3715, 8057, 6080, - 8929, 8259, 13, 3714, - 8929, 8259, 13, 3715, 8057, 3042, - 8929, 8259, 13, 3715, 8057, 6080, - 8929, 8259, 47, 9764, - 8929, 8259, 50, - 8929, 8259, 129, 3618, - 8929, 8259, 522, - 8929, 8259, 857, 5582, - 8929, 8259, 885, 7052, - 8929, 8259, 1019, 401, 8236, - 8929, 8259, 1019, 2498, - 8929, 8259, 1019, 3542, - 8929, 8259, 1019, 5418, - 8929, 8259, 1019, 8086, - 8929, 8259, 2005, 8795, 12329, 4904, - 8929, 8259, 2005, 8795, 12329, 5190, - 8929, 8259, 2041, 11152, - 8929, 8259, 3718, - 8929, 8259, 3750, - 8929, 8259, 3751, 654, - 8929, 8259, 3867, 7584, - 8929, 8259, 3867, 7586, - 8929, 8259, 3947, 546, - 8929, 8259, 3947, 3862, - 8929, 8259, 3969, 6116, - 8929, 8259, 3969, 7356, - 8929, 8259, 4119, 4904, - 8929, 8259, 4119, 5190, - 8929, 8259, 4119, 6909, 4630, - 8929, 8259, 4555, 8135, 5400, - 8929, 8259, 4703, 9765, 6116, - 8929, 8259, 4703, 9765, 7356, - 8929, 8259, 4941, 9764, - 8929, 8259, 5095, 9764, - 8929, 8259, 5652, - 8929, 8259, 5653, 546, - 8929, 8259, 5653, 7132, - 8929, 8259, 5715, 9764, - 8929, 8259, 5741, 11330, - 8929, 8259, 6097, 2498, - 8929, 8259, 6097, 3542, - 8929, 8259, 6097, 5418, - 8929, 8259, 6097, 8086, - 8929, 8259, 6126, - 8929, 8259, 6128, - 8929, 8259, 6222, - 8929, 8259, 6375, 8490, - 8929, 8259, 6388, - 8929, 8259, 6455, 4905, 387, 7132, - 8929, 8259, 6455, 4905, 7132, - 8929, 8259, 6682, - 8929, 8259, 6683, 9813, 5190, - 8929, 8259, 6683, 10989, 5190, - 8929, 8259, 6720, - 8929, 8259, 6757, 5190, - 8929, 8259, 6909, 547, 4630, - 8929, 8259, 6909, 4630, - 8929, 8259, 6926, - 8929, 8259, 6997, 8135, 5400, - 8929, 8259, 7052, - 8929, 8259, 7071, 546, - 8929, 8259, 7071, 3862, - 8929, 8259, 7103, 8490, - 8929, 8259, 7334, - 8929, 8259, 7359, 4904, - 8929, 8259, 7359, 5190, - 8929, 8259, 7545, 4630, - 8929, 8259, 7546, - 8929, 8259, 7547, 5190, - 8929, 8259, 7583, 47, 9764, - 8929, 8259, 7588, - 8929, 8259, 7597, 5582, - 8929, 8259, 7621, 8490, - 8929, 8259, 7625, 7132, - 8929, 8259, 7673, 3946, - 8929, 8259, 7673, 7070, - 8929, 8259, 7673, 8490, - 8929, 8259, 7679, 4904, - 8929, 8259, 7679, 5190, - 8929, 8259, 7966, - 8929, 8259, 7986, - 8929, 8259, 7987, 5190, - 8929, 8259, 7987, 6116, - 8929, 8259, 8057, 3042, - 8929, 8259, 8057, 6080, - 8929, 8259, 8135, 3860, - 8929, 8259, 8207, 8490, - 8929, 8259, 8231, 2, - 8929, 8259, 8231, 9765, 6116, - 8929, 8259, 8231, 9765, 7356, - 8929, 8259, 8246, - 8929, 8259, 8287, 10509, 849, 11057, 9812, - 8929, 8259, 8287, 10509, 849, 11057, 9813, 11744, - 8929, 8259, 8287, 10509, 849, 11057, 10988, - 8929, 8259, 8287, 11363, 849, 11057, 9812, - 8929, 8259, 8287, 11363, 849, 11057, 10988, - 8929, 8259, 8287, 11363, 849, 11057, 10989, 11744, - 8929, 8259, 8287, 11363, 849, 11057, 10989, 11746, - 8929, 8259, 8287, 11363, 849, 11057, 10989, 11748, - 8929, 8259, 8514, - 8929, 8259, 8524, - 8929, 8259, 8565, 9765, 6116, - 8929, 8259, 8565, 9765, 7356, - 8929, 8259, 8736, - 8929, 8259, 8737, 6102, - 8929, 8259, 8937, 546, - 8929, 8259, 8937, 3862, - 8929, 8259, 9026, - 8929, 8259, 9043, 4904, - 8929, 8259, 9043, 5190, - 8929, 8259, 9043, 5603, 3946, - 8929, 8259, 9043, 5603, 7070, - 8929, 8259, 9061, 6375, 8490, - 8929, 8259, 9360, - 8929, 8259, 9593, 10702, - 8929, 8259, 9593, 10704, - 8929, 8259, 9593, 10706, - 8929, 8259, 9667, 5652, - 8929, 8259, 9765, 6116, - 8929, 8259, 9771, 7176, - 8929, 8259, 9779, 9926, - 8929, 8259, 9779, 9928, - 8929, 8259, 9779, 9930, - 8929, 8259, 9779, 9932, - 8929, 8259, 9779, 9934, - 8929, 8259, 9779, 9936, - 8929, 8259, 9779, 9938, - 8929, 8259, 9779, 9940, - 8929, 8259, 9779, 9942, - 8929, 8259, 9779, 10590, - 8929, 8259, 9779, 10592, - 8929, 8259, 9865, 9586, - 8929, 8259, 9865, 9588, - 8929, 8259, 9865, 9590, - 8929, 8259, 9905, 7176, - 8929, 8259, 10004, - 8929, 8259, 10005, 10552, - 8929, 8259, 10011, 9765, 547, 6116, - 8929, 8259, 10011, 9765, 547, 6997, 6116, - 8929, 8259, 10011, 9765, 547, 6997, 7356, - 8929, 8259, 10011, 9765, 547, 7356, - 8929, 8259, 10011, 9765, 3863, 6116, - 8929, 8259, 10011, 9765, 3863, 7356, - 8929, 8259, 10011, 9765, 4555, 6116, - 8929, 8259, 10011, 9765, 4555, 7356, - 8929, 8259, 10011, 9765, 6997, 6116, - 8929, 8259, 10011, 9765, 6997, 7356, - 8929, 8259, 10025, 7176, - 8929, 8259, 10125, 547, 750, - 8929, 8259, 10125, 2242, - 8929, 8259, 10125, 3554, - 8929, 8259, 10125, 3852, - 8929, 8259, 10125, 3863, 750, - 8929, 8259, 10125, 3948, - 8929, 8259, 10125, 5421, 10516, - 8929, 8259, 10125, 5474, - 8929, 8259, 10125, 6686, - 8929, 8259, 10125, 7146, - 8929, 8259, 10125, 7444, - 8929, 8259, 10125, 7673, 8322, - 8929, 8259, 10125, 7730, - 8929, 8259, 10125, 7732, - 8929, 8259, 10125, 7734, - 8929, 8259, 10125, 7736, - 8929, 8259, 10125, 7738, - 8929, 8259, 10125, 8288, - 8929, 8259, 10125, 8327, 8322, - 8929, 8259, 10125, 8906, - 8929, 8259, 10125, 9636, - 8929, 8259, 10125, 9908, - 8929, 8259, 10125, 10702, - 8929, 8259, 10125, 10704, - 8929, 8259, 10125, 10706, - 8929, 8259, 10125, 11715, 960, - 8929, 8259, 10125, 12173, 5474, - 8929, 8259, 10125, 12314, - 8929, 8259, 10125, 12382, - 8929, 8259, 10125, 12440, - 8929, 8259, 10140, - 8929, 8259, 10347, 7176, - 8929, 8259, 10357, 7176, - 8929, 8259, 10371, 546, - 8929, 8259, 10371, 3862, - 8929, 8259, 10379, 5, 3714, - 8929, 8259, 10379, 11, 3714, - 8929, 8259, 10518, - 8929, 8259, 10519, 7740, - 8929, 8259, 10558, - 8929, 8259, 10559, 7740, - 8929, 8259, 10579, 4904, - 8929, 8259, 10579, 5190, - 8929, 8259, 10765, 546, - 8929, 8259, 10765, 3862, - 8929, 8259, 11105, 5190, - 8929, 8259, 11105, 6116, - 8929, 8259, 11105, 7356, - 8929, 8259, 11111, 5190, - 8929, 8259, 11111, 6116, - 8929, 8259, 11111, 7356, - 8929, 8259, 11135, 10358, - 8929, 8259, 11171, 7176, - 8929, 8259, 11240, - 8929, 8259, 11335, 10358, - 8929, 8259, 11340, - 8929, 8259, 11402, - 8929, 8259, 11425, 9764, - 8929, 8259, 11462, - 8929, 8259, 11833, 3042, - 8929, 8259, 11833, 6080, - 8929, 8259, 12169, 4904, - 8929, 8259, 12169, 5190, - 8929, 8259, 12323, 4904, - 8929, 8259, 12323, 5190, - 8929, 8259, 12377, 9765, 3863, 6116, - 8929, 8259, 12377, 9765, 3863, 7356, - 8931, 5401, 961, 6102, - 8931, 5401, 7937, 9088, - 8931, 5401, 8392, - 8931, 5401, 9088, - 8931, 5401, 9236, - 8931, 5401, 9280, - 8931, 6287, 2004, - 8931, 6287, 2358, - 8931, 6287, 2584, - 8931, 6287, 3942, - 8931, 6287, 3956, - 8931, 6287, 4854, - 8931, 6287, 5878, - 8931, 6287, 6312, - 8931, 6287, 7060, - 8931, 6287, 7244, - 8931, 7341, 5401, 8, - 8931, 7341, 5401, 16, - 8931, 7341, 5401, 40, - 8931, 7341, 5401, 58, - 8931, 7341, 5401, 70, - 8931, 7341, 5401, 248, - 8931, 7341, 5401, 550, - 8931, 7341, 5401, 9239, 22, - 8931, 7341, 5401, 9239, 34, - 8931, 7341, 5401, 9239, 322, - 8931, 7341, 5401, 9239, 480, - 8931, 7919, 0, - 8931, 7919, 8, - 8931, 7919, 16, - 8931, 7919, 28, - 8931, 7919, 40, - 8931, 7919, 88, - 8931, 7919, 94, - 8931, 7919, 108, - 8931, 7919, 128, - 8931, 7919, 200, - 8931, 7919, 220, - 8931, 7919, 248, - 8931, 7919, 274, - 8931, 7919, 286, - 8931, 7919, 312, - 8931, 7919, 342, - 8931, 7919, 370, - 8931, 7919, 430, - 8931, 7919, 472, - 8931, 7919, 486, - 8931, 7919, 510, - 8931, 7919, 550, - 8931, 7919, 566, - 8931, 7919, 596, - 8931, 7919, 728, - 8931, 7919, 810, - 8931, 7919, 898, - 8931, 7919, 920, - 8931, 7919, 1158, - 8931, 7919, 1394, - 8931, 7919, 1492, - 8931, 7919, 1664, - 8931, 7919, 1874, - 8931, 7919, 1916, - 8931, 7919, 1962, - 8931, 7919, 2042, - 8931, 7919, 2334, - 8931, 7919, 2384, - 8931, 7919, 2486, - 8931, 7919, 2552, - 8931, 7919, 3782, - 8931, 7919, 4896, - 8931, 7919, 5626, - 8931, 7919, 9239, 22, - 8931, 7919, 9239, 34, - 8931, 7919, 9239, 322, - 8931, 7919, 9239, 480, - 8931, 8259, 9618, - 8931, 8259, 9704, - 8931, 8259, 10126, - 8931, 8259, 12338, - 8941, 7673, 10043, 697, 7673, 6997, 10714, - 8943, 1, 8249, 401, 1929, 6331, 520, - 8943, 1, 9951, 401, 1929, 6331, 520, - 8943, 10451, 1929, 6331, 520, - 8943, 10451, 1929, 10951, 520, - 8943, 10451, 1929, 11778, - 8943, 11779, 1929, 6331, 520, - 8943, 11779, 1929, 10450, - 8943, 11779, 1929, 10951, 520, - 8943, 12205, 1929, 9265, 6331, 520, - 8944, - 8953, 6287, 8188, - 8955, 6691, 12367, 7357, 11083, 6046, - 8955, 7313, 12367, 7357, 11083, 6046, - 8967, 6021, 8979, 546, - 8967, 6021, 8979, 3862, - 8983, 6287, 2004, - 8983, 6287, 2358, - 8983, 6287, 2584, - 8983, 6287, 3942, - 8983, 6287, 3956, - 8983, 6287, 4854, - 8983, 6287, 5878, - 8983, 6287, 6312, - 8983, 6287, 7060, - 8983, 6287, 7244, - 8983, 7919, 0, - 8983, 7919, 8, - 8983, 7919, 16, - 8983, 7919, 28, - 8983, 7919, 40, - 8983, 7919, 58, - 8983, 7919, 94, - 8983, 7919, 150, - 8983, 7919, 182, - 8983, 7919, 200, - 8983, 7919, 220, - 8983, 7919, 274, - 8983, 7919, 410, - 8983, 7919, 472, - 8983, 7919, 486, - 8983, 7919, 510, - 8983, 7919, 582, - 8983, 7919, 596, - 8983, 7919, 920, - 8983, 7919, 1492, - 8983, 7919, 2716, - 8983, 7919, 3032, - 8983, 7919, 3626, - 8983, 7919, 3816, - 8983, 7919, 4418, - 8983, 7919, 4528, - 8983, 7919, 4690, - 8983, 7919, 4948, - 8983, 7919, 5120, - 8983, 7919, 7092, - 9003, 11738, - 9009, 5400, - 9023, 5400, - 9043, 4904, - 9045, 8259, 7538, - 9061, 9134, - 9061, 9135, 5741, 10979, 8244, - 9061, 9135, 9772, - 9061, 9135, 10525, 8248, - 9067, 6489, 6117, 6487, 7556, - 9067, 7745, 6487, 7556, - 9067, 8527, 32, - 9074, - 9084, - 9089, 5400, - 9090, - 9095, 4630, - 9101, 7919, 68, - 9101, 7919, 244, - 9101, 7919, 408, - 9101, 7919, 414, - 9101, 7919, 496, - 9101, 7919, 546, - 9101, 7919, 642, - 9101, 7919, 644, - 9101, 7919, 648, - 9101, 7919, 668, - 9101, 7919, 672, - 9101, 7919, 676, - 9101, 7919, 732, - 9101, 7919, 1004, - 9101, 7919, 1006, - 9101, 7919, 1010, - 9101, 7919, 1030, - 9101, 7919, 1060, - 9101, 7919, 1118, - 9101, 7919, 1356, - 9101, 7919, 1358, - 9101, 7919, 1946, - 9101, 7919, 1990, - 9101, 7919, 1998, - 9101, 7919, 2016, - 9101, 7919, 2534, - 9101, 7919, 2684, - 9101, 7919, 2732, - 9101, 7919, 2840, - 9101, 7919, 2850, - 9101, 7919, 2968, - 9101, 7919, 3814, - 9101, 7919, 4274, - 9101, 7919, 4472, - 9101, 7919, 4596, - 9101, 7919, 4694, - 9101, 7919, 5036, - 9101, 7919, 5058, - 9101, 7919, 5210, - 9101, 7919, 5496, - 9101, 7919, 5562, - 9101, 7919, 5744, - 9101, 7919, 6044, - 9101, 7919, 6470, - 9101, 7919, 6588, - 9101, 7919, 7234, - 9101, 7919, 7580, - 9101, 7919, 8912, - 9107, 9038, - 9109, 415, 10450, - 9109, 415, 11778, - 9109, 5991, 10451, 5991, 7687, 5400, - 9109, 5991, 11779, 5991, 7687, 5400, - 9109, 6739, 9108, - 9111, 5401, 10068, - 9111, 5401, 10728, - 9111, 5401, 10754, - 9111, 7341, 5401, 3839, 8856, - 9111, 7341, 5401, 3839, 9672, - 9111, 7341, 5401, 3839, 10498, - 9111, 7341, 5401, 3839, 10742, - 9111, 7341, 5401, 3839, 11336, - 9111, 7341, 5401, 3839, 11774, - 9111, 7341, 5401, 6613, 9672, - 9111, 7341, 5401, 6613, 10498, - 9111, 7341, 5401, 6613, 10742, - 9111, 7341, 5401, 6629, 3822, - 9111, 7341, 5401, 8856, - 9111, 7341, 5401, 8857, 1233, 3839, 10744, - 9111, 7341, 5401, 8857, 1233, 10744, - 9111, 7341, 5401, 8857, 1233, 11336, - 9111, 7341, 5401, 10744, - 9111, 7341, 5401, 11336, - 9111, 7341, 5401, 11774, - 9111, 7919, 3047, 8500, - 9111, 7919, 7496, - 9111, 7919, 7696, - 9111, 7919, 7844, - 9111, 7919, 8062, - 9111, 7919, 8380, - 9111, 7919, 8436, - 9111, 7919, 8448, - 9111, 7919, 8458, - 9111, 7919, 8482, - 9111, 7919, 8599, 8874, - 9111, 7919, 8599, 8938, - 9111, 7919, 8599, 9080, - 9111, 7919, 8710, - 9111, 7919, 8732, - 9111, 7919, 8780, - 9111, 7919, 8802, - 9111, 7919, 8837, 11018, - 9111, 7919, 8910, - 9111, 7919, 8976, - 9111, 7919, 9050, - 9111, 7919, 9079, 8604, - 9111, 7919, 9079, 8752, - 9111, 7919, 9079, 8826, - 9111, 7919, 9079, 9398, - 9111, 7919, 9173, 9080, - 9111, 7919, 9173, 9879, 11400, - 9111, 7919, 9173, 11018, - 9111, 7919, 9224, - 9111, 7919, 9230, - 9111, 7919, 9254, - 9111, 7919, 9266, - 9111, 7919, 9648, - 9111, 7919, 9670, - 9111, 7919, 10396, - 9111, 7919, 10416, - 9111, 7919, 10481, 8874, - 9111, 7919, 10481, 8938, - 9111, 7919, 10481, 9080, - 9111, 7919, 10747, 8500, - 9111, 7919, 10747, 8532, - 9111, 7919, 10747, 8604, - 9111, 7919, 10747, 8752, - 9111, 7919, 10747, 8826, - 9111, 7919, 10747, 8842, - 9111, 7919, 10747, 9006, - 9111, 7919, 10747, 9182, - 9111, 7919, 10747, 9398, - 9111, 7919, 10747, 10020, - 9111, 7919, 11389, 8500, - 9111, 7919, 11389, 8532, - 9111, 7919, 11389, 8604, - 9111, 7919, 11389, 8752, - 9111, 7919, 11389, 8826, - 9111, 7919, 11389, 8842, - 9111, 7919, 11389, 9006, - 9111, 7919, 11389, 9182, - 9111, 7919, 11389, 9398, - 9111, 7919, 11389, 10020, - 9111, 11443, 11000, - 9117, 9029, 9308, - 9121, 6331, 521, 415, 10450, - 9121, 6331, 521, 415, 10451, 5741, 961, 7836, - 9121, 6331, 521, 415, 11778, - 9121, 6331, 521, 415, 11779, 5741, 961, 7836, - 9123, 6655, 414, - 9123, 6655, 656, - 9125, 5552, - 9125, 5553, 415, 6331, 520, - 9128, - 9134, - 9135, 5741, 8988, - 9136, - 9147, 961, 9772, - 9147, 5094, - 9147, 6738, - 9147, 7143, 7582, - 9147, 7258, - 9147, 8143, 9409, 7132, - 9147, 8230, - 9147, 8731, 9409, 7132, - 9147, 9308, - 9167, 9660, - 9175, 5401, 8392, - 9175, 7341, 5401, 16, - 9175, 7341, 5401, 40, - 9175, 7919, 0, - 9175, 7919, 16, - 9175, 7919, 40, - 9175, 7919, 94, - 9175, 7919, 128, - 9175, 7919, 200, - 9175, 7919, 220, - 9175, 7919, 286, - 9175, 7919, 312, - 9175, 7919, 342, - 9175, 7919, 370, - 9175, 7919, 430, - 9175, 7919, 486, - 9175, 7919, 510, - 9175, 7919, 566, - 9175, 7919, 596, - 9175, 7919, 1874, - 9197, 11677, 11083, 10082, - 9197, 12347, 11083, 10082, - 9203, 307, 483, 1492, - 9203, 307, 483, 1493, 3607, 1767, 784, - 9203, 4631, 659, 6615, 4106, - 9203, 4631, 659, 6615, 4112, - 9203, 4631, 813, 1756, - 9203, 4631, 1201, 7017, 4106, - 9203, 4631, 1201, 7017, 4112, - 9203, 4631, 2241, 3665, 8229, 5316, - 9203, 4631, 2541, 5988, - 9203, 4631, 2857, 1757, 7293, 5317, 342, - 9203, 4631, 3571, 5353, 2857, 1756, - 9203, 4631, 4085, 2857, 1757, 629, 4085, 7293, 342, - 9203, 4631, 4085, 2857, 1757, 629, 5209, 3541, 342, - 9203, 4631, 4085, 2857, 1757, 10713, 0, - 9203, 4631, 4085, 7292, - 9203, 4631, 4825, 6147, 1969, 2964, - 9203, 4631, 4825, 6147, 5307, 7016, - 9203, 4631, 4965, 5316, - 9203, 4631, 4965, 7293, 5316, - 9203, 4631, 5193, 4081, 5316, - 9203, 4631, 5316, - 9203, 4631, 6133, 7016, - 9203, 4631, 6135, 5353, 209, 1757, 6990, - 9203, 4631, 6137, 2857, 1756, - 9203, 4631, 6149, 2857, 1757, 5073, 5317, 342, - 9203, 4631, 6149, 5987, 7017, 347, 4599, 784, - 9203, 4631, 6149, 5987, 7017, 3607, 1767, 784, - 9203, 4631, 6745, 2857, 209, 1757, 6990, - 9203, 4631, 7045, 5316, - 9203, 4631, 7293, 5316, - 9203, 4631, 8066, - 9203, 4631, 8559, 2857, 1757, 5305, 342, - 9203, 4631, 8770, - 9203, 4631, 8813, 2857, 1757, 4639, 342, - 9203, 4631, 10149, 7293, 6138, - 9203, 4631, 12253, 7292, - 9203, 5401, 1195, 785, 9062, - 9203, 5401, 1195, 1741, 9062, - 9203, 5401, 1623, 2541, 784, - 9203, 5401, 1625, 7016, - 9203, 5401, 1733, 7294, - 9203, 5401, 1969, 2965, 1827, 128, - 9203, 5401, 2365, 4548, - 9203, 5401, 2827, 7294, - 9203, 5401, 4637, 784, - 9203, 5401, 5181, 1829, 3990, - 9203, 5401, 5181, 1829, 4082, - 9203, 5401, 5181, 1829, 6448, - 9203, 5401, 5181, 3847, 3990, - 9203, 5401, 5181, 3847, 4082, - 9203, 5401, 5181, 3847, 5181, 1828, - 9203, 5401, 5181, 3847, 6448, - 9203, 5401, 5207, 503, 1875, 478, - 9203, 5401, 5209, 3540, - 9203, 5401, 5797, 7016, - 9203, 6287, 2004, - 9203, 6287, 2358, - 9203, 6287, 2584, - 9203, 6287, 3942, - 9203, 6287, 3956, - 9203, 6287, 4119, 2004, - 9203, 6287, 4119, 2358, - 9203, 6287, 4119, 2584, - 9203, 6287, 4119, 3942, - 9203, 6287, 4119, 3956, - 9203, 6287, 4119, 4854, - 9203, 6287, 4119, 5878, - 9203, 6287, 4119, 6312, - 9203, 6287, 4119, 7060, - 9203, 6287, 4119, 7244, - 9203, 6287, 4854, - 9203, 6287, 5878, - 9203, 6287, 6312, - 9203, 6287, 7060, - 9203, 6287, 7244, - 9203, 7341, 5401, 8, - 9203, 7341, 5401, 16, - 9203, 7341, 5401, 28, - 9203, 7341, 5401, 40, - 9203, 7341, 5401, 58, - 9203, 7341, 5401, 150, - 9203, 7341, 5401, 248, - 9203, 7341, 5401, 410, - 9203, 7341, 5401, 550, - 9203, 7341, 5401, 9239, 22, - 9203, 7341, 5401, 9239, 34, - 9203, 7341, 5401, 9239, 322, - 9203, 7341, 5401, 9239, 480, - 9203, 7341, 5401, 9871, 16, - 9203, 7341, 5401, 9871, 248, - 9203, 7919, 0, - 9203, 7919, 52, - 9203, 7919, 94, - 9203, 7919, 108, - 9203, 7919, 128, - 9203, 7919, 200, - 9203, 7919, 220, - 9203, 7919, 274, - 9203, 7919, 286, - 9203, 7919, 312, - 9203, 7919, 342, - 9203, 7919, 370, - 9203, 7919, 430, - 9203, 7919, 472, - 9203, 7919, 486, - 9203, 7919, 510, - 9203, 7919, 566, - 9203, 7919, 596, - 9203, 7919, 614, - 9203, 7919, 728, - 9203, 7919, 810, - 9203, 7919, 898, - 9203, 7919, 920, - 9203, 7919, 994, - 9203, 7919, 1158, - 9203, 7919, 1492, - 9203, 7919, 1874, - 9203, 7919, 1916, - 9203, 7919, 1962, - 9203, 7919, 2042, - 9203, 7919, 2334, - 9203, 7919, 2384, - 9203, 7919, 2486, - 9203, 7919, 2540, - 9203, 7919, 2552, - 9203, 7919, 2936, - 9203, 7919, 3782, - 9203, 7919, 3886, - 9203, 7919, 4492, - 9203, 7919, 5614, - 9203, 7919, 5626, - 9203, 7919, 10961, 472, - 9203, 8259, 1929, 104, - 9203, 8259, 1929, 105, 3607, 7440, - 9203, 8259, 1929, 105, 4083, 7440, - 9203, 8259, 1929, 105, 4965, 7440, - 9203, 8259, 2223, 2244, - 9203, 8259, 2223, 2245, 5193, 4080, - 9203, 8259, 3865, 104, - 9203, 8259, 5073, 430, - 9203, 8259, 6891, 3992, - 9203, 9707, 5401, 3649, 7016, - 9203, 9707, 5401, 4565, 7016, - 9203, 9957, 406, - 9203, 10595, 7919, 0, - 9203, 10595, 7919, 52, - 9203, 10595, 7919, 94, - 9203, 10595, 7919, 108, - 9203, 10595, 7919, 128, - 9203, 10595, 7919, 200, - 9203, 10595, 7919, 220, - 9203, 10595, 7919, 274, - 9203, 10595, 7919, 286, - 9203, 10595, 7919, 312, - 9203, 10595, 7919, 342, - 9203, 10595, 7919, 370, - 9203, 10595, 7919, 430, - 9203, 10595, 7919, 472, - 9203, 10595, 7919, 486, - 9203, 10595, 7919, 510, - 9203, 10595, 7919, 566, - 9203, 10595, 7919, 596, - 9203, 10595, 7919, 614, - 9203, 10595, 7919, 728, - 9203, 10595, 7919, 810, - 9203, 10595, 7919, 898, - 9203, 10595, 7919, 920, - 9203, 10595, 7919, 994, - 9203, 10595, 7919, 1158, - 9203, 10595, 7919, 1492, - 9203, 10595, 7919, 1874, - 9203, 10595, 7919, 1916, - 9203, 10595, 7919, 1962, - 9203, 10595, 7919, 2042, - 9203, 10595, 7919, 2334, - 9203, 10595, 7919, 2384, - 9203, 10595, 7919, 2486, - 9203, 10595, 7919, 2540, - 9203, 10595, 7919, 2552, - 9203, 10595, 7919, 2936, - 9203, 10595, 7919, 3782, - 9203, 10595, 7919, 3886, - 9203, 10595, 7919, 4492, - 9203, 10595, 7919, 5614, - 9203, 10595, 7919, 5626, - 9203, 10595, 7919, 10961, 472, - 9203, 10595, 7919, 10961, 566, - 9203, 10595, 7919, 10961, 596, - 9203, 11713, 5401, 5309, 3989, 5985, 7016, - 9203, 11713, 5401, 7049, 8334, - 9203, 11713, 5401, 7443, 430, - 9203, 11729, 5401, 3617, 5532, - 9203, 11729, 5401, 5291, 5982, - 9203, 11729, 5401, 6489, 3546, - 9203, 11729, 5401, 6671, 3546, - 9207, 1085, 3936, - 9207, 1085, 4538, - 9207, 1085, 5736, - 9207, 1085, 6306, - 9207, 1085, 7348, - 9207, 1085, 7808, - 9207, 1085, 9200, - 9207, 1085, 9742, - 9223, 2585, 7807, 6046, - 9223, 6046, - 9223, 6047, 521, 696, - 9223, 6047, 3963, 696, - 9223, 6047, 5741, 2505, 10448, - 9223, 6047, 5741, 2505, 11082, - 9223, 6047, 5741, 7673, 8244, - 9223, 6047, 5741, 10979, 8244, - 9223, 6047, 10449, 401, 10313, 6046, - 9223, 6117, 6046, - 9223, 7357, 6046, - 9223, 7357, 6047, 409, 9806, - 9223, 7357, 6047, 409, 9807, 5741, 10043, 696, - 9223, 7357, 6047, 409, 9807, 5741, 10979, 696, - 9223, 7357, 6047, 3963, 696, - 9223, 7357, 7673, 6046, - 9223, 7357, 7673, 6047, 409, 9806, - 9223, 7460, - 9223, 7621, 6046, - 9223, 7673, 6046, - 9223, 8065, 7480, - 9223, 8327, 6046, - 9223, 8777, 5741, 3495, 4555, 521, 696, - 9223, 8777, 5741, 3495, 4555, 3963, 696, - 9223, 8777, 5741, 3495, 4555, 7525, 9223, 8777, 5741, 3495, 6996, - 9223, 8777, 5741, 3495, 4555, 7525, 10313, 8777, 5741, 3495, 6996, - 9223, 8777, 5741, 3495, 6997, 521, 696, - 9223, 8777, 5741, 3495, 6997, 3963, 696, - 9223, 8777, 5741, 3495, 10448, - 9223, 8777, 5741, 3495, 11082, - 9223, 10533, 6046, - 9223, 11189, 6047, 3963, 7143, 7582, - 9233, 4120, - 9247, 5400, - 9253, 4120, - 9263, 7467, 3955, 9098, - 9263, 10681, 9954, - 9268, - 9277, 5400, - 9290, - 9301, 3965, 5478, - 9301, 6218, - 9301, 7143, 7919, 108, - 9301, 7143, 7919, 122, - 9301, 7143, 7919, 128, - 9301, 7143, 7919, 154, - 9301, 7143, 7919, 172, - 9301, 7143, 7919, 230, - 9301, 7143, 7919, 274, - 9301, 7143, 7919, 402, - 9301, 7143, 7919, 472, - 9301, 7143, 7919, 520, - 9301, 7143, 7919, 560, - 9301, 7143, 7919, 600, - 9301, 7143, 7919, 614, - 9301, 7143, 7919, 680, - 9301, 7143, 7919, 720, - 9301, 7143, 7919, 810, - 9301, 7143, 7919, 1008, - 9301, 7143, 7919, 1062, - 9301, 7143, 7919, 1174, - 9301, 7143, 7919, 1372, - 9301, 7143, 7919, 1480, - 9301, 7143, 7919, 1482, - 9301, 7143, 7919, 1746, - 9301, 7143, 7919, 1932, - 9301, 7143, 7919, 2036, - 9301, 7143, 7919, 2228, - 9301, 7143, 7919, 2326, - 9301, 7143, 7919, 2334, - 9301, 7143, 7919, 2664, - 9301, 7143, 7919, 2750, - 9301, 7143, 7919, 2938, - 9301, 7143, 7919, 3662, - 9301, 7143, 7919, 4046, - 9301, 7143, 7919, 4360, - 9301, 7143, 7919, 4590, - 9301, 7143, 7919, 5086, - 9301, 7143, 7919, 5586, - 9301, 7143, 7919, 5832, - 9301, 7143, 9701, 1009, 5832, - 9301, 7143, 9701, 1747, 1008, - 9301, 7143, 9701, 1747, 1372, - 9301, 7143, 9701, 1747, 1932, - 9301, 7143, 9701, 1747, 2750, - 9301, 7143, 9701, 2665, 1932, - 9301, 7824, - 9301, 8527, 7919, 108, - 9301, 8527, 7919, 122, - 9301, 8527, 7919, 128, - 9301, 8527, 7919, 154, - 9301, 8527, 7919, 172, - 9301, 8527, 7919, 230, - 9301, 8527, 7919, 274, - 9301, 8527, 7919, 402, - 9301, 8527, 7919, 472, - 9301, 8527, 7919, 520, - 9301, 8527, 7919, 560, - 9301, 8527, 7919, 600, - 9301, 8527, 7919, 614, - 9301, 8527, 7919, 680, - 9301, 8527, 7919, 720, - 9301, 8527, 7919, 810, - 9301, 8527, 7919, 1008, - 9301, 8527, 7919, 1062, - 9301, 8527, 7919, 1174, - 9301, 8527, 7919, 1372, - 9301, 8527, 7919, 1480, - 9301, 8527, 7919, 1482, - 9301, 8527, 7919, 1746, - 9301, 8527, 7919, 1932, - 9301, 8527, 7919, 2036, - 9301, 8527, 7919, 2228, - 9301, 8527, 7919, 2326, - 9301, 8527, 7919, 2334, - 9301, 8527, 7919, 2664, - 9301, 8527, 7919, 2750, - 9301, 8527, 7919, 2938, - 9301, 8527, 7919, 3662, - 9301, 8527, 7919, 4046, - 9301, 8527, 7919, 4360, - 9301, 8527, 7919, 4590, - 9301, 8527, 7919, 5086, - 9301, 8527, 7919, 5586, - 9301, 8527, 7919, 5832, - 9301, 9563, 4630, - 9301, 9737, 7919, 4555, 4119, 5200, - 9301, 9853, 4630, - 9301, 10760, - 9301, 11329, 4630, - 9301, 11699, 4630, - 9308, - 9309, 9772, - 9310, - 9317, 3019, 3018, - 9317, 5401, 2617, 6992, - 9317, 5401, 2617, 7564, - 9317, 5401, 6114, - 9317, 5401, 6162, - 9317, 5401, 8252, - 9317, 5401, 9056, - 9317, 6151, 5404, - 9317, 6151, 9000, - 9317, 6151, 10502, - 9317, 6287, 2004, - 9317, 6287, 2358, - 9317, 6287, 2584, - 9317, 6287, 3942, - 9317, 6287, 3956, - 9317, 6287, 4854, - 9317, 6287, 5878, - 9317, 6287, 6312, - 9317, 6287, 7060, - 9317, 6287, 7244, - 9317, 6892, - 9317, 7341, 5401, 313, 6664, - 9317, 7341, 5401, 313, 6665, 8278, - 9317, 7341, 5401, 473, 5186, - 9317, 7341, 5401, 473, 5187, 8278, - 9317, 7341, 5401, 2616, - 9317, 7341, 5401, 2617, 5288, - 9317, 7341, 5401, 5486, - 9317, 7341, 5401, 5487, 4326, - 9317, 7341, 5401, 6920, - 9317, 7341, 5401, 6921, 8278, - 9317, 7341, 5401, 8270, - 9317, 7341, 5401, 8271, 5186, - 9317, 7341, 5401, 8271, 5187, 8278, - 9317, 7341, 5401, 8271, 8278, - 9317, 7341, 5401, 8278, - 9317, 7362, - 9317, 7919, 94, - 9317, 7919, 95, 8846, - 9317, 7919, 108, - 9317, 7919, 109, 4530, - 9317, 7919, 128, - 9317, 7919, 129, 4624, - 9317, 7919, 129, 6761, 10070, - 9317, 7919, 129, 6761, 10458, - 9317, 7919, 153, 7040, - 9317, 7919, 200, - 9317, 7919, 201, 4076, - 9317, 7919, 220, - 9317, 7919, 274, - 9317, 7919, 275, 4356, - 9317, 7919, 286, - 9317, 7919, 287, 10458, - 9317, 7919, 312, - 9317, 7919, 313, 6664, - 9317, 7919, 313, 6665, 8278, - 9317, 7919, 342, - 9317, 7919, 370, - 9317, 7919, 371, 8128, - 9317, 7919, 430, - 9317, 7919, 431, 6596, - 9317, 7919, 472, - 9317, 7919, 473, 5186, - 9317, 7919, 473, 5187, 8278, - 9317, 7919, 486, - 9317, 7919, 487, 5276, - 9317, 7919, 487, 5284, - 9317, 7919, 510, - 9317, 7919, 511, 5530, - 9317, 7919, 511, 6656, - 9317, 7919, 511, 6761, 10458, - 9317, 7919, 557, 7040, - 9317, 7919, 566, - 9317, 7919, 596, - 9317, 7919, 1459, 7040, - 9317, 7919, 1874, - 9317, 7919, 1962, - 9317, 7919, 2919, 7040, - 9317, 7919, 4471, 7040, - 9317, 7919, 5669, 7040, - 9317, 7919, 6004, - 9317, 7919, 6005, 8278, - 9317, 7919, 6316, - 9317, 7919, 6564, - 9317, 7919, 6565, 8278, - 9317, 7919, 6870, - 9317, 7919, 6871, 8278, - 9317, 7919, 7302, - 9317, 7919, 7303, 8278, - 9317, 7919, 7450, - 9317, 7919, 7493, 7040, - 9317, 8068, - 9317, 8929, 8259, 3752, - 9317, 8929, 8259, 3753, 3998, - 9317, 8929, 8259, 3753, 8252, - 9317, 8929, 8259, 3826, - 9317, 8929, 8259, 3842, - 9317, 8929, 8259, 3854, - 9317, 8929, 8259, 3874, - 9317, 8929, 8259, 6234, - 9317, 8929, 8259, 6240, - 9317, 8929, 8259, 6280, - 9317, 8929, 8259, 10125, 4074, - 9317, 8929, 8259, 10125, 6104, - 9317, 8929, 8259, 10125, 6322, - 9317, 8929, 8259, 10125, 7220, - 9317, 8929, 8259, 10125, 7866, - 9317, 8929, 8259, 10125, 7867, 5741, 8828, - 9317, 8929, 8259, 10125, 7868, - 9317, 8929, 8259, 10125, 7869, 5741, 8828, - 9317, 8929, 8259, 10125, 8828, - 9317, 8929, 8259, 10443, 5039, 5048, - 9317, 8929, 8259, 10443, 5039, 5084, - 9317, 8929, 8259, 10443, 5039, 5102, - 9317, 8929, 8259, 10443, 7591, 5088, - 9317, 8929, 8259, 10443, 7591, 5092, - 9317, 8929, 8259, 11079, 5039, 882, - 9317, 8929, 8259, 11079, 5039, 968, - 9317, 8929, 8259, 11079, 7591, 2452, - 9317, 8929, 8259, 11079, 7591, 2564, - 9317, 9796, - 9329, 6375, 7919, 14, - 9329, 6375, 7919, 20, - 9329, 6375, 7919, 30, - 9329, 6375, 7919, 38, - 9329, 7919, 0, - 9329, 7919, 2, - 9329, 7919, 4, - 9329, 7919, 6, - 9329, 7919, 8, - 9329, 7919, 10, - 9329, 7919, 12, - 9329, 7919, 14, - 9329, 7919, 16, - 9329, 7919, 18, - 9329, 7919, 20, - 9329, 7919, 22, - 9329, 7919, 24, - 9329, 7919, 26, - 9329, 7919, 28, - 9329, 7919, 30, - 9329, 7919, 32, - 9329, 7919, 34, - 9329, 7919, 36, - 9329, 7919, 38, - 9329, 7919, 40, - 9329, 7919, 42, - 9329, 7919, 46, - 9329, 7919, 50, - 9329, 7919, 70, - 9329, 7919, 76, - 9329, 7919, 78, - 9329, 7919, 88, - 9329, 7919, 104, - 9329, 7919, 116, - 9329, 7919, 150, - 9329, 7919, 154, - 9329, 7919, 156, - 9329, 7919, 164, - 9329, 7919, 168, - 9329, 7919, 210, - 9329, 7919, 214, - 9329, 7919, 254, - 9329, 7919, 262, - 9329, 7919, 268, - 9329, 7919, 278, - 9329, 7919, 376, - 9329, 7919, 406, - 9329, 7919, 410, - 9329, 7919, 420, - 9329, 7919, 490, - 9329, 7919, 618, - 9329, 7919, 620, - 9329, 7919, 658, - 9329, 7919, 660, - 9329, 7919, 1020, - 9329, 7919, 1022, - 9329, 7919, 1374, - 9329, 7919, 1878, - 9329, 7919, 2006, - 9329, 7919, 2008, - 9329, 7919, 2620, - 9329, 7919, 3026, - 9329, 7919, 3072, - 9329, 7919, 4334, - 9333, 1019, 401, 9088, - 9333, 7341, 5401, 8, - 9333, 7341, 5401, 16, - 9333, 7341, 5401, 28, - 9333, 7341, 5401, 40, - 9333, 7341, 5401, 66, - 9333, 7919, 0, - 9333, 7919, 94, - 9333, 7919, 108, - 9333, 7919, 128, - 9333, 7919, 200, - 9333, 7919, 220, - 9333, 7919, 274, - 9333, 7919, 286, - 9333, 7919, 312, - 9333, 7919, 342, - 9333, 7919, 370, - 9333, 7919, 430, - 9333, 7919, 472, - 9333, 7919, 486, - 9333, 7919, 510, - 9333, 7919, 554, - 9333, 7919, 596, - 9333, 7919, 1794, - 9333, 7919, 1874, - 9333, 7919, 1936, - 9333, 7919, 1962, - 9333, 7919, 4838, - 9333, 7919, 4954, - 9333, 8996, - 9334, - 9338, - 9341, 10605, 0, - 9341, 10605, 4, - 9341, 10605, 8, - 9341, 10605, 10, - 9341, 10605, 16, - 9341, 10605, 20, - 9341, 10605, 22, - 9341, 10605, 24, - 9341, 10605, 26, - 9341, 10605, 28, - 9341, 10605, 30, - 9341, 10605, 32, - 9341, 10605, 34, - 9341, 10605, 36, - 9341, 10605, 38, - 9341, 10605, 48, - 9341, 10605, 58, - 9341, 10605, 70, - 9341, 10605, 78, - 9341, 10605, 108, - 9341, 10605, 114, - 9341, 10605, 118, - 9341, 10605, 122, - 9341, 10605, 164, - 9341, 10605, 182, - 9341, 10605, 184, - 9341, 10605, 188, - 9341, 10605, 194, - 9341, 10605, 228, - 9341, 10605, 248, - 9341, 10605, 256, - 9341, 10605, 286, - 9341, 10605, 290, - 9341, 10605, 294, - 9341, 10605, 302, - 9341, 10605, 310, - 9341, 10605, 312, - 9341, 10605, 314, - 9341, 10605, 316, - 9341, 10605, 318, - 9341, 10605, 328, - 9341, 10605, 342, - 9341, 10605, 346, - 9341, 10605, 350, - 9341, 10605, 352, - 9341, 10605, 358, - 9341, 10605, 370, - 9341, 10605, 372, - 9341, 10605, 376, - 9341, 10605, 378, - 9341, 10605, 380, - 9341, 10605, 386, - 9341, 10605, 408, - 9341, 10605, 410, - 9341, 10605, 430, - 9341, 10605, 434, - 9341, 10605, 440, - 9341, 10605, 444, - 9341, 10605, 458, - 9341, 10605, 462, - 9341, 10605, 464, - 9341, 10605, 472, - 9341, 10605, 474, - 9341, 10605, 476, - 9341, 10605, 478, - 9341, 10605, 486, - 9341, 10605, 488, - 9341, 10605, 490, - 9341, 10605, 492, - 9341, 10605, 496, - 9341, 10605, 506, - 9341, 10605, 510, - 9341, 10605, 514, - 9341, 10605, 516, - 9341, 10605, 518, - 9341, 10605, 520, - 9341, 10605, 566, - 9341, 10605, 570, - 9341, 10605, 574, - 9341, 10605, 576, - 9341, 10605, 596, - 9341, 10605, 598, - 9341, 10605, 600, - 9341, 10605, 604, - 9341, 10605, 634, - 9341, 10605, 780, - 9341, 10605, 815, 5400, - 9341, 10605, 824, - 9341, 10605, 838, - 9341, 10605, 860, - 9341, 10605, 862, - 9341, 10605, 864, - 9341, 10605, 866, - 9341, 10605, 1050, - 9341, 10605, 1070, - 9341, 10605, 1080, - 9341, 10605, 1454, - 9341, 10605, 1510, - 9341, 10605, 1538, - 9341, 10605, 1574, - 9341, 10605, 1576, - 9341, 10605, 1578, - 9341, 10605, 1580, - 9341, 10605, 1602, - 9341, 10605, 1638, - 9341, 10605, 1642, - 9341, 10605, 1644, - 9341, 10605, 1652, - 9341, 10605, 1670, - 9341, 10605, 1702, - 9341, 10605, 1704, - 9341, 10605, 1706, - 9341, 10605, 1708, - 9341, 10605, 1722, - 9341, 10605, 1768, - 9341, 10605, 1786, - 9341, 10605, 1808, - 9341, 10605, 1810, - 9341, 10605, 1812, - 9341, 10605, 1814, - 9341, 10605, 1826, - 9341, 10605, 1874, - 9341, 10605, 1880, - 9341, 10605, 1882, - 9341, 10605, 1894, - 9341, 10605, 1918, - 9341, 10605, 1924, - 9341, 10605, 1958, - 9341, 10605, 1960, - 9341, 10605, 2018, - 9341, 10605, 2056, - 9341, 10605, 2068, - 9341, 10605, 2094, - 9341, 10605, 2096, - 9341, 10605, 2098, - 9341, 10605, 2100, - 9341, 10605, 2110, - 9341, 10605, 2114, - 9341, 10605, 2136, - 9341, 10605, 2148, - 9341, 10605, 2206, - 9341, 10605, 2238, - 9341, 10605, 2254, - 9341, 10605, 2304, - 9341, 10605, 2334, - 9341, 10605, 2336, - 9341, 10605, 2338, - 9341, 10605, 2340, - 9341, 10605, 2350, - 9341, 10605, 2372, - 9341, 10605, 2414, - 9341, 10605, 2416, - 9341, 10605, 2418, - 9341, 10605, 2420, - 9341, 10605, 2442, - 9341, 10605, 2486, - 9341, 10605, 2488, - 9341, 10605, 2490, - 9341, 10605, 2492, - 9341, 10605, 2500, - 9341, 10605, 2530, - 9341, 10605, 2552, - 9341, 10605, 2554, - 9341, 10605, 2556, - 9341, 10605, 2558, - 9341, 10605, 2560, - 9341, 10605, 2578, - 9341, 10605, 2580, - 9341, 10605, 2582, - 9341, 10605, 2584, - 9341, 10605, 2586, - 9341, 10605, 2588, - 9341, 10605, 2590, - 9341, 10605, 2592, - 9341, 10605, 2706, - 9341, 10605, 2728, - 9341, 10605, 2736, - 9341, 10605, 2798, - 9341, 10605, 2858, - 9341, 10605, 2872, - 9341, 10605, 2892, - 9341, 10605, 2894, - 9341, 10605, 2896, - 9341, 10605, 2898, - 9341, 10605, 3608, - 9341, 10605, 3736, - 9341, 10605, 3738, - 9341, 10605, 3740, - 9341, 10605, 3918, - 9341, 10605, 3965, 5478, - 9341, 10605, 3972, - 9341, 10605, 4420, - 9341, 10605, 4504, - 9341, 10605, 4508, - 9341, 10605, 4510, - 9341, 10605, 4526, - 9341, 10605, 4562, - 9341, 10605, 4568, - 9341, 10605, 4570, - 9341, 10605, 4614, - 9341, 10605, 4616, - 9341, 10605, 4618, - 9341, 10605, 4622, - 9341, 10605, 4722, - 9341, 10605, 4726, - 9341, 10605, 4728, - 9341, 10605, 4730, - 9341, 10605, 4818, - 9341, 10605, 4820, - 9341, 10605, 4836, - 9341, 10605, 4840, - 9341, 10605, 4888, - 9341, 10605, 4890, - 9341, 10605, 4892, - 9341, 10605, 4950, - 9341, 10605, 5044, - 9341, 10605, 5110, - 9341, 10605, 5114, - 9341, 10605, 5116, - 9341, 10605, 5122, - 9341, 10605, 5168, - 9341, 10605, 5266, - 9341, 10605, 5272, - 9341, 10605, 5314, - 9341, 10605, 5340, - 9341, 10605, 5354, - 9341, 10605, 5376, - 9341, 10605, 5378, - 9341, 10605, 5380, - 9341, 10605, 5382, - 9341, 10605, 5500, - 9341, 10605, 5502, - 9341, 10605, 5504, - 9341, 10605, 5516, - 9341, 10605, 5546, - 9341, 10605, 5564, - 9341, 10605, 5570, - 9341, 10605, 5590, - 9341, 10605, 5592, - 9341, 10605, 5594, - 9341, 10605, 5596, - 9341, 10605, 5626, - 9341, 10605, 5628, - 9341, 10605, 5630, - 9341, 10605, 5632, - 9341, 10605, 5656, - 9341, 10605, 5658, - 9341, 10605, 5660, - 9341, 10605, 5778, - 9341, 10605, 5864, - 9341, 10605, 5866, - 9341, 10605, 5868, - 9341, 10605, 6375, 2533, 4119, 5200, - 9341, 10605, 6375, 3863, 5518, - 9341, 10605, 6375, 5094, - 9341, 10605, 6375, 5200, - 9341, 10605, 6375, 5992, - 9341, 10605, 6375, 6460, - 9341, 10605, 6375, 6997, 4119, 5200, - 9341, 10605, 6375, 7103, 10979, 8244, - 9341, 10605, 6375, 7539, 4119, 5200, - 9341, 10605, 6375, 7673, 5992, - 9341, 10605, 6375, 7673, 7103, 10043, 9158, - 9341, 10605, 6375, 7981, 960, - 9341, 10605, 6790, - 9341, 10605, 6820, - 9341, 10605, 6822, - 9341, 10605, 6824, - 9341, 10605, 7110, - 9341, 10605, 7112, - 9341, 10605, 7114, - 9341, 10605, 7250, - 9341, 10605, 7969, 22, - 9341, 10605, 7969, 34, - 9341, 10605, 8003, 2488, - 9341, 10605, 8003, 2490, - 9341, 10605, 8003, 5564, - 9341, 10605, 8125, 474, - 9341, 10605, 8163, 24, - 9341, 10605, 8163, 220, - 9341, 10605, 8163, 222, - 9341, 10605, 8163, 226, - 9341, 10605, 8163, 230, - 9341, 10605, 8163, 278, - 9341, 10605, 8163, 282, - 9341, 10605, 8163, 516, - 9341, 10605, 8163, 600, - 9341, 10605, 8163, 2334, - 9341, 10605, 8163, 2336, - 9341, 10605, 8163, 2338, - 9341, 10605, 8163, 2340, - 9341, 10605, 8417, 44, - 9341, 10605, 8417, 410, - 9341, 10605, 8417, 838, - 9341, 10605, 8417, 1538, - 9341, 10605, 8417, 1670, - 9341, 10605, 8417, 1786, - 9341, 10605, 8417, 1924, - 9341, 10605, 8417, 2068, - 9341, 10605, 8417, 2372, - 9341, 10605, 8417, 2530, - 9341, 10605, 8417, 2872, - 9341, 10605, 8417, 5110, - 9341, 10605, 8457, 2, - 9341, 10605, 8529, 14, - 9341, 10605, 8529, 16, - 9341, 10605, 8529, 30, - 9341, 10605, 8529, 50, - 9341, 10605, 8529, 134, - 9341, 10605, 8529, 150, - 9341, 10605, 8529, 200, - 9341, 10605, 8529, 204, - 9341, 10605, 8529, 208, - 9341, 10605, 8529, 212, - 9341, 10605, 8529, 214, - 9341, 10605, 8529, 226, - 9341, 10605, 8529, 274, - 9341, 10605, 8529, 276, - 9341, 10605, 8529, 278, - 9341, 10605, 8529, 280, - 9341, 10605, 8529, 282, - 9341, 10605, 8529, 296, - 9341, 10605, 8529, 312, - 9341, 10605, 8529, 314, - 9341, 10605, 8529, 318, - 9341, 10605, 8529, 328, - 9341, 10605, 8529, 332, - 9341, 10605, 8529, 342, - 9341, 10605, 8529, 346, - 9341, 10605, 8529, 352, - 9341, 10605, 8529, 358, - 9341, 10605, 8529, 362, - 9341, 10605, 8529, 370, - 9341, 10605, 8529, 372, - 9341, 10605, 8529, 376, - 9341, 10605, 8529, 380, - 9341, 10605, 8529, 386, - 9341, 10605, 8529, 390, - 9341, 10605, 8529, 430, - 9341, 10605, 8529, 434, - 9341, 10605, 8529, 440, - 9341, 10605, 8529, 444, - 9341, 10605, 8529, 450, - 9341, 10605, 8529, 472, - 9341, 10605, 8529, 474, - 9341, 10605, 8529, 476, - 9341, 10605, 8529, 478, - 9341, 10605, 8529, 482, - 9341, 10605, 8529, 486, - 9341, 10605, 8529, 488, - 9341, 10605, 8529, 490, - 9341, 10605, 8529, 492, - 9341, 10605, 8529, 496, - 9341, 10605, 8529, 502, - 9341, 10605, 8529, 566, - 9341, 10605, 8529, 570, - 9341, 10605, 8529, 574, - 9341, 10605, 8529, 576, - 9341, 10605, 8529, 578, - 9341, 10605, 8529, 596, - 9341, 10605, 8529, 598, - 9341, 10605, 8529, 600, - 9341, 10605, 8529, 604, - 9341, 10605, 8529, 608, - 9341, 10605, 8529, 614, - 9341, 10605, 8529, 616, - 9341, 10605, 8529, 620, - 9341, 10605, 8529, 622, - 9341, 10605, 8529, 624, - 9341, 10605, 8529, 810, - 9341, 10605, 8529, 812, - 9341, 10605, 8529, 814, - 9341, 10605, 8529, 816, - 9341, 10605, 8529, 818, - 9341, 10605, 8529, 908, - 9341, 10605, 8529, 942, - 9341, 10605, 8529, 944, - 9341, 10605, 8529, 946, - 9341, 10605, 8529, 948, - 9341, 10605, 8529, 950, - 9341, 10605, 8529, 994, - 9341, 10605, 8529, 996, - 9341, 10605, 8529, 998, - 9341, 10605, 8529, 1000, - 9341, 10605, 8529, 1002, - 9341, 10605, 8529, 1138, - 9341, 10605, 8529, 1158, - 9341, 10605, 8529, 1160, - 9341, 10605, 8529, 1162, - 9341, 10605, 8529, 1164, - 9341, 10605, 8529, 1166, - 9341, 10605, 8529, 1248, - 9341, 10605, 8529, 1324, - 9341, 10605, 8529, 1326, - 9341, 10605, 8529, 1328, - 9341, 10605, 8529, 1330, - 9341, 10605, 8529, 1332, - 9341, 10605, 8529, 1388, - 9341, 10605, 8529, 1410, - 9341, 10605, 8529, 1412, - 9341, 10605, 8529, 1414, - 9341, 10605, 8529, 1416, - 9341, 10605, 8529, 1418, - 9341, 10605, 8529, 1492, - 9341, 10605, 8529, 1494, - 9341, 10605, 8529, 1496, - 9341, 10605, 8529, 1498, - 9341, 10605, 8529, 1500, - 9341, 10605, 8529, 1522, - 9341, 10605, 8529, 1524, - 9341, 10605, 8529, 1526, - 9341, 10605, 8529, 1528, - 9341, 10605, 8529, 1530, - 9341, 10605, 8529, 1626, - 9341, 10605, 8529, 1638, - 9341, 10605, 8529, 1640, - 9341, 10605, 8529, 1642, - 9341, 10605, 8529, 1644, - 9341, 10605, 8529, 1646, - 9341, 10605, 8529, 1742, - 9341, 10605, 8529, 1860, - 9341, 10605, 8529, 2034, - 9341, 10605, 8529, 2226, - 9341, 10605, 8529, 2324, - 9341, 10605, 8529, 2334, - 9341, 10605, 8529, 2336, - 9341, 10605, 8529, 2338, - 9341, 10605, 8529, 2340, - 9341, 10605, 8529, 2342, - 9341, 10605, 8529, 2486, - 9341, 10605, 8529, 2488, - 9341, 10605, 8529, 2490, - 9341, 10605, 8529, 2492, - 9341, 10605, 8529, 2494, - 9341, 10605, 8529, 2514, - 9341, 10605, 8529, 2516, - 9341, 10605, 8529, 2518, - 9341, 10605, 8529, 2520, - 9341, 10605, 8529, 2522, - 9341, 10605, 8529, 2540, - 9341, 10605, 8529, 2542, - 9341, 10605, 8529, 2544, - 9341, 10605, 8529, 2546, - 9341, 10605, 8529, 2548, - 9341, 10605, 8529, 2552, - 9341, 10605, 8529, 2554, - 9341, 10605, 8529, 2558, - 9341, 10605, 8529, 2560, - 9341, 10605, 8529, 2562, - 9341, 10605, 8529, 2720, - 9341, 10605, 8529, 2842, - 9341, 10605, 8529, 2928, - 9341, 10605, 8529, 3660, - 9341, 10605, 8529, 3848, - 9341, 10605, 8529, 3884, - 9341, 10605, 8529, 4050, - 9341, 10605, 8529, 4282, - 9341, 10605, 8529, 4368, - 9341, 10605, 8529, 4462, - 9341, 10605, 8529, 4484, - 9341, 10605, 8529, 4566, - 9341, 10605, 8529, 5324, - 9341, 10605, 8529, 5554, - 9341, 10605, 8529, 5588, - 9341, 10605, 8529, 5590, - 9341, 10605, 8529, 5592, - 9341, 10605, 8529, 5594, - 9341, 10605, 8529, 5596, - 9341, 10605, 8529, 5598, - 9341, 10605, 8529, 5612, - 9341, 10605, 8529, 5622, - 9341, 10605, 8529, 5634, - 9341, 10605, 8529, 5636, - 9341, 10605, 8529, 5638, - 9341, 10605, 8529, 5640, - 9341, 10605, 8529, 5642, - 9341, 10605, 8529, 7268, - 9341, 10605, 8529, 7296, - 9341, 10605, 8529, 8813, 50, - 9341, 10605, 8763, 5478, - 9341, 10605, 8935, 2302, - 9341, 10605, 8935, 2362, - 9341, 10605, 8935, 2706, - 9341, 10605, 8935, 2736, - 9341, 10605, 8935, 3736, - 9341, 10605, 8935, 4504, - 9341, 10605, 8935, 4722, - 9341, 10605, 8935, 4950, - 9341, 10605, 8935, 5294, - 9341, 10605, 8935, 5416, - 9341, 10605, 8935, 5426, - 9341, 10605, 8935, 5480, - 9341, 10605, 8935, 5500, - 9341, 10605, 8935, 5656, - 9341, 10605, 8935, 5864, - 9341, 10605, 8961, 14, - 9341, 10605, 8961, 220, - 9341, 10605, 8961, 222, - 9341, 10605, 8961, 226, - 9341, 10605, 8961, 230, - 9341, 10605, 8961, 1232, - 9341, 10605, 8961, 1272, - 9341, 10605, 8961, 1312, - 9341, 10605, 8963, 14, - 9341, 10605, 9191, 516, - 9341, 10605, 9191, 2486, - 9341, 10605, 9191, 2488, - 9341, 10605, 9191, 2490, - 9341, 10605, 9191, 2492, - 9341, 10605, 9191, 5546, - 9341, 10605, 9191, 5564, - 9341, 10605, 9191, 5570, - 9341, 10605, 10107, 0, - 9341, 10605, 10107, 8, - 9341, 10605, 10107, 16, - 9341, 10605, 10107, 28, - 9341, 10605, 10107, 36, - 9341, 10605, 10107, 286, - 9341, 10605, 10107, 290, - 9341, 10605, 10107, 294, - 9341, 10605, 10107, 302, - 9341, 10605, 10107, 370, - 9341, 10605, 10107, 372, - 9341, 10605, 10107, 380, - 9341, 10605, 10107, 386, - 9341, 10605, 10107, 566, - 9341, 10605, 10107, 570, - 9341, 10605, 10107, 574, - 9341, 10605, 10107, 576, - 9341, 10605, 10735, 22, - 9341, 10605, 10735, 24, - 9341, 10605, 10735, 30, - 9341, 10605, 10735, 34, - 9341, 10605, 10735, 48, - 9341, 10605, 10735, 312, - 9341, 10605, 10735, 314, - 9341, 10605, 10735, 328, - 9341, 10605, 10735, 472, - 9341, 10605, 10735, 474, - 9341, 10605, 10735, 476, - 9341, 10605, 10735, 478, - 9341, 10605, 10735, 566, - 9341, 10605, 10735, 570, - 9341, 10605, 10735, 574, - 9341, 10605, 10735, 576, - 9341, 10605, 10735, 860, - 9341, 10605, 10735, 862, - 9341, 10605, 10735, 864, - 9341, 10605, 10735, 866, - 9341, 10605, 10735, 1574, - 9341, 10605, 10735, 1576, - 9341, 10605, 10735, 1578, - 9341, 10605, 10735, 1580, - 9341, 10605, 10735, 1702, - 9341, 10605, 10735, 1704, - 9341, 10605, 10735, 1706, - 9341, 10605, 10735, 1708, - 9341, 10605, 10735, 1808, - 9341, 10605, 10735, 1810, - 9341, 10605, 10735, 1812, - 9341, 10605, 10735, 1814, - 9341, 10605, 10735, 1958, - 9341, 10605, 10735, 1960, - 9341, 10605, 10735, 2094, - 9341, 10605, 10735, 2096, - 9341, 10605, 10735, 2098, - 9341, 10605, 10735, 2100, - 9341, 10605, 10735, 2414, - 9341, 10605, 10735, 2416, - 9341, 10605, 10735, 2418, - 9341, 10605, 10735, 2420, - 9341, 10605, 10735, 2578, - 9341, 10605, 10735, 2580, - 9341, 10605, 10735, 2582, - 9341, 10605, 10735, 2584, - 9341, 10605, 10735, 2706, - 9341, 10605, 10735, 2728, - 9341, 10605, 10735, 2736, - 9341, 10605, 10735, 2892, - 9341, 10605, 10735, 2894, - 9341, 10605, 10735, 2896, - 9341, 10605, 10735, 2898, - 9341, 10605, 10735, 3736, - 9341, 10605, 10735, 3738, - 9341, 10605, 10735, 3740, - 9341, 10605, 10735, 3972, - 9341, 10605, 10735, 4504, - 9341, 10605, 10735, 4508, - 9341, 10605, 10735, 4510, - 9341, 10605, 10735, 4614, - 9341, 10605, 10735, 4616, - 9341, 10605, 10735, 4618, - 9341, 10605, 10735, 4722, - 9341, 10605, 10735, 4726, - 9341, 10605, 10735, 4728, - 9341, 10605, 10735, 4950, - 9341, 10605, 10735, 5110, - 9341, 10605, 10735, 5114, - 9341, 10605, 10735, 5116, - 9341, 10605, 10735, 5266, - 9341, 10605, 10735, 5376, - 9341, 10605, 10735, 5378, - 9341, 10605, 10735, 5380, - 9341, 10605, 10735, 5382, - 9341, 10605, 10735, 5500, - 9341, 10605, 10735, 5502, - 9341, 10605, 10735, 5504, - 9341, 10605, 10735, 5656, - 9341, 10605, 10735, 5658, - 9341, 10605, 10735, 5660, - 9341, 10605, 10735, 5864, - 9341, 10605, 10735, 5866, - 9341, 10605, 10735, 5868, - 9341, 10605, 10735, 7110, - 9341, 10605, 10735, 7112, - 9341, 10605, 10735, 7114, - 9341, 10605, 10735, 7250, - 9341, 10605, 10771, 24, - 9341, 10605, 10771, 36, - 9341, 10605, 10779, 48, - 9341, 10605, 11017, 494, - 9341, 10605, 11195, 516, - 9341, 10605, 11195, 2486, - 9341, 10605, 11195, 2488, - 9341, 10605, 11195, 2490, - 9341, 10605, 11195, 2492, - 9341, 10605, 12171, 1460, - 9341, 10605, 12171, 1480, - 9341, 10605, 12171, 1508, - 9341, 10605, 12171, 1534, - 9351, 7919, 0, - 9351, 7919, 8, - 9351, 7919, 16, - 9351, 7919, 28, - 9351, 7919, 36, - 9351, 7919, 40, - 9351, 7919, 42, - 9351, 7919, 128, - 9351, 7919, 132, - 9351, 7919, 134, - 9351, 7919, 140, - 9351, 7919, 142, - 9351, 7919, 144, - 9351, 7919, 200, - 9351, 7919, 204, - 9351, 7919, 208, - 9351, 7919, 212, - 9351, 7919, 214, - 9351, 7919, 216, - 9351, 7919, 220, - 9351, 7919, 222, - 9351, 7919, 226, - 9351, 7919, 230, - 9351, 7919, 234, - 9351, 7919, 236, - 9351, 7919, 286, - 9351, 7919, 312, - 9351, 7919, 314, - 9351, 7919, 318, - 9351, 7919, 328, - 9351, 7919, 332, - 9351, 7919, 334, - 9351, 7919, 342, - 9351, 7919, 346, - 9351, 7919, 352, - 9351, 7919, 358, - 9351, 7919, 362, - 9351, 7919, 370, - 9351, 7919, 372, - 9351, 7919, 380, - 9351, 7919, 386, - 9351, 7919, 390, - 9351, 7919, 392, - 9351, 7919, 486, - 9351, 7919, 488, - 9351, 7919, 492, - 9351, 7919, 496, - 9351, 7919, 502, - 9351, 7919, 504, - 9351, 7919, 510, - 9351, 7919, 514, - 9351, 7919, 518, - 9351, 7919, 566, - 9351, 7919, 570, - 9351, 7919, 574, - 9351, 7919, 576, - 9351, 7919, 578, - 9351, 7919, 580, - 9351, 7919, 596, - 9351, 7919, 598, - 9351, 7919, 600, - 9351, 7919, 604, - 9351, 7919, 608, - 9351, 7919, 610, - 9351, 7919, 942, - 9351, 7919, 1300, - 9351, 7919, 1830, - 9351, 7919, 2156, - 9351, 7919, 2158, - 9351, 7919, 2160, - 9351, 7919, 2164, - 9351, 7919, 2172, - 9351, 7919, 2174, - 9351, 7919, 2514, - 9351, 7919, 2516, - 9351, 7919, 2518, - 9351, 7919, 2520, - 9351, 7919, 2522, - 9351, 7919, 2524, - 9351, 7919, 2540, - 9351, 7919, 2542, - 9351, 7919, 2544, - 9351, 7919, 2546, - 9351, 7919, 2548, - 9351, 7919, 2550, - 9369, 85, 7974, - 9369, 85, 8027, 9944, - 9369, 85, 8027, 9945, 415, 6331, 520, - 9369, 5741, 4599, 10979, 8244, - 9369, 5741, 8988, - 9369, 5741, 10043, 697, 87, 1019, 401, 10979, 8244, - 9371, 2253, 5535, 6287, 2004, - 9371, 2253, 5535, 6287, 2358, - 9371, 2253, 5535, 6287, 2584, - 9371, 2253, 5535, 6287, 3942, - 9371, 2253, 5535, 6287, 3956, - 9371, 2253, 5535, 6287, 4854, - 9371, 2253, 5535, 6287, 6312, - 9371, 2253, 5535, 6287, 7060, - 9371, 2253, 5535, 6287, 7244, - 9371, 2253, 5685, 6287, 2004, - 9371, 2253, 5685, 6287, 2358, - 9371, 2253, 5685, 6287, 2584, - 9371, 2253, 5685, 6287, 3942, - 9371, 2253, 5685, 6287, 3956, - 9371, 2253, 5685, 6287, 4854, - 9371, 2253, 5685, 6287, 6312, - 9371, 2253, 5685, 6287, 7060, - 9371, 2253, 5685, 6287, 7244, - 9379, 5400, - 9381, 5400, - 9387, 7143, 7919, 0, - 9387, 7143, 7919, 1, 5741, 6128, - 9387, 7143, 7919, 1, 5741, 10158, - 9387, 7143, 7919, 8, - 9387, 7143, 7919, 9, 5741, 10158, - 9387, 7143, 7919, 16, - 9387, 7143, 7919, 17, 5741, 6460, - 9387, 7143, 7919, 17, 5741, 7940, - 9387, 7143, 7919, 17, 5741, 10158, - 9387, 7143, 7919, 28, - 9387, 7143, 7919, 29, 5741, 10158, - 9387, 7143, 7919, 40, - 9387, 7143, 7919, 41, 5741, 7673, 5992, - 9387, 7143, 7919, 41, 5741, 7940, - 9387, 7143, 7919, 41, 5741, 10158, - 9387, 7143, 7919, 96, - 9387, 7143, 7919, 132, - 9387, 7143, 7919, 152, - 9387, 7143, 7919, 160, - 9387, 7143, 7919, 161, 5741, 4256, - 9387, 7143, 7919, 161, 5741, 5520, - 9387, 7143, 7919, 162, - 9387, 7143, 7919, 163, 5741, 5520, - 9387, 7143, 7919, 164, - 9387, 7143, 7919, 165, 5741, 4256, - 9387, 7143, 7919, 165, 5741, 5520, - 9387, 7143, 7919, 165, 5741, 10156, - 9387, 7143, 7919, 168, - 9387, 7143, 7919, 169, 5741, 5574, - 9387, 7143, 7919, 170, - 9387, 7143, 7919, 171, 5741, 10156, - 9387, 7143, 7919, 220, - 9387, 7143, 7919, 221, 5741, 4256, - 9387, 7143, 7919, 221, 5741, 8244, - 9387, 7143, 7919, 221, 5741, 10156, - 9387, 7143, 7919, 242, - 9387, 7143, 7919, 243, 5741, 6128, - 9387, 7143, 7919, 243, 5741, 6460, - 9387, 7143, 7919, 258, - 9387, 7143, 7919, 276, - 9387, 7143, 7919, 286, - 9387, 7143, 7919, 287, 5741, 4256, - 9387, 7143, 7919, 287, 5741, 8244, - 9387, 7143, 7919, 287, 5741, 10043, 8244, - 9387, 7143, 7919, 287, 5741, 10156, - 9387, 7143, 7919, 418, - 9387, 7143, 7919, 434, - 9387, 7143, 7919, 435, 5741, 7981, 4256, - 9387, 7143, 7919, 514, - 9387, 7143, 7919, 515, 5741, 10156, - 9387, 7143, 7919, 538, - 9387, 7143, 7919, 556, - 9387, 7143, 7919, 596, - 9387, 7143, 7919, 600, - 9387, 7143, 7919, 608, - 9387, 7143, 7919, 616, - 9387, 7143, 7919, 617, 5741, 10156, - 9387, 7143, 7919, 617, 5741, 10158, - 9387, 7143, 7919, 737, 2886, - 9387, 7143, 7919, 812, - 9387, 7143, 7919, 813, 5741, 10043, 8244, - 9387, 7143, 7919, 813, 5741, 10156, - 9387, 7143, 7919, 813, 5741, 10158, - 9387, 7143, 7919, 940, - 9387, 7143, 7919, 996, - 9387, 7143, 7919, 1160, - 9387, 7143, 7919, 1161, 5741, 7981, 4256, - 9387, 7143, 7919, 1161, 5741, 8244, - 9387, 7143, 7919, 1161, 5741, 8245, 657, 4256, - 9387, 7143, 7919, 1161, 5741, 8372, - 9387, 7143, 7919, 1161, 5741, 10156, - 9387, 7143, 7919, 1182, - 9387, 7143, 7919, 1520, - 9387, 7143, 7919, 1550, - 9387, 7143, 7919, 1662, - 9387, 7143, 7919, 1904, - 9387, 7143, 7919, 2078, - 9387, 7143, 7919, 2334, - 9387, 7143, 7919, 2542, - 9387, 7143, 7919, 2830, - 9387, 7143, 7919, 2938, - 9387, 7143, 7919, 2939, 5741, 6128, - 9387, 7143, 7919, 2939, 5741, 10156, - 9387, 7143, 7919, 2939, 5741, 10158, - 9387, 7143, 7919, 3888, - 9387, 7143, 7919, 3940, - 9387, 7143, 7919, 4123, 5400, - 9387, 7143, 7919, 4489, 132, - 9387, 7143, 7919, 4489, 940, - 9387, 7143, 7919, 4489, 1662, - 9387, 7143, 7919, 4489, 1904, - 9387, 7143, 7919, 4489, 2360, - 9387, 7143, 7919, 4489, 2512, - 9387, 7143, 7919, 4489, 2962, - 9387, 7143, 7919, 4489, 3890, - 9387, 7143, 7919, 5336, - 9387, 7143, 7919, 5423, 5400, - 9387, 7143, 7919, 5616, - 9387, 7143, 7919, 5818, - 9387, 7143, 7919, 5819, 5741, 10158, - 9387, 7143, 7919, 6632, - 9387, 7143, 7919, 6874, - 9387, 7143, 7919, 6875, 5741, 7264, - 9387, 7143, 7919, 7009, 6874, - 9387, 7143, 7919, 7046, - 9387, 7143, 7919, 7047, 5741, 10158, - 9387, 7143, 7919, 7074, - 9387, 7143, 7919, 7103, 16, - 9387, 7143, 7919, 7103, 17, 5741, 5520, - 9387, 7143, 7919, 7103, 40, - 9387, 7143, 7919, 7515, 28, - 9387, 7143, 7919, 7515, 29, 5741, 10158, - 9387, 7143, 7919, 7937, 2886, - 9387, 7143, 7919, 8497, 286, - 9387, 7143, 7919, 8822, - 9387, 7143, 7919, 8823, 5741, 7673, 6461, 7444, - 9387, 7143, 7919, 9669, 8, - 9387, 7143, 7919, 9669, 737, 2886, - 9387, 7143, 7919, 9669, 7937, 2886, - 9387, 7143, 7919, 9794, - 9387, 7143, 7919, 9871, 616, - 9387, 7143, 7919, 9889, 5400, - 9387, 7143, 7919, 9919, 40, - 9387, 7143, 7919, 9919, 41, 5741, 8244, - 9387, 7143, 7919, 10063, 220, - 9387, 7143, 7919, 10063, 812, - 9387, 7143, 7919, 10063, 813, 5741, 10156, - 9387, 7143, 7919, 10063, 996, - 9387, 7143, 7919, 10719, 242, - 9387, 7143, 7919, 10995, 812, - 9387, 7143, 7919, 12515, 16, - 9387, 7143, 9701, 1, 242, - 9387, 7143, 9701, 165, 1160, - 9387, 7143, 9701, 515, 2542, - 9387, 7919, 7143, 8527, 160, - 9387, 7919, 9794, - 9387, 8527, 7919, 0, - 9387, 8527, 7919, 1, 5741, 6128, - 9387, 8527, 7919, 1, 5741, 10158, - 9387, 8527, 7919, 8, - 9387, 8527, 7919, 9, 5741, 10158, - 9387, 8527, 7919, 16, - 9387, 8527, 7919, 17, 5741, 6460, - 9387, 8527, 7919, 17, 5741, 7940, - 9387, 8527, 7919, 17, 5741, 10158, - 9387, 8527, 7919, 28, - 9387, 8527, 7919, 29, 5741, 10158, - 9387, 8527, 7919, 40, - 9387, 8527, 7919, 41, 5741, 7673, 5992, - 9387, 8527, 7919, 41, 5741, 7940, - 9387, 8527, 7919, 41, 5741, 10158, - 9387, 8527, 7919, 96, - 9387, 8527, 7919, 132, - 9387, 8527, 7919, 152, - 9387, 8527, 7919, 160, - 9387, 8527, 7919, 161, 5741, 4256, - 9387, 8527, 7919, 161, 5741, 5520, - 9387, 8527, 7919, 162, - 9387, 8527, 7919, 163, 5741, 5520, - 9387, 8527, 7919, 164, - 9387, 8527, 7919, 165, 5741, 4256, - 9387, 8527, 7919, 165, 5741, 5520, - 9387, 8527, 7919, 165, 5741, 10156, - 9387, 8527, 7919, 168, - 9387, 8527, 7919, 169, 5741, 5574, - 9387, 8527, 7919, 170, - 9387, 8527, 7919, 171, 5741, 10156, - 9387, 8527, 7919, 220, - 9387, 8527, 7919, 221, 5741, 4256, - 9387, 8527, 7919, 221, 5741, 8244, - 9387, 8527, 7919, 221, 5741, 10156, - 9387, 8527, 7919, 242, - 9387, 8527, 7919, 243, 5741, 6128, - 9387, 8527, 7919, 243, 5741, 6460, - 9387, 8527, 7919, 258, - 9387, 8527, 7919, 276, - 9387, 8527, 7919, 286, - 9387, 8527, 7919, 287, 5741, 4256, - 9387, 8527, 7919, 287, 5741, 8244, - 9387, 8527, 7919, 287, 5741, 10043, 8244, - 9387, 8527, 7919, 287, 5741, 10156, - 9387, 8527, 7919, 418, - 9387, 8527, 7919, 434, - 9387, 8527, 7919, 435, 5741, 7981, 4256, - 9387, 8527, 7919, 514, - 9387, 8527, 7919, 515, 5741, 10156, - 9387, 8527, 7919, 538, - 9387, 8527, 7919, 556, - 9387, 8527, 7919, 596, - 9387, 8527, 7919, 600, - 9387, 8527, 7919, 608, - 9387, 8527, 7919, 616, - 9387, 8527, 7919, 617, 5741, 10156, - 9387, 8527, 7919, 617, 5741, 10158, - 9387, 8527, 7919, 737, 2886, - 9387, 8527, 7919, 812, - 9387, 8527, 7919, 813, 5741, 10043, 8244, - 9387, 8527, 7919, 813, 5741, 10156, - 9387, 8527, 7919, 813, 5741, 10158, - 9387, 8527, 7919, 940, - 9387, 8527, 7919, 996, - 9387, 8527, 7919, 1160, - 9387, 8527, 7919, 1161, 5741, 7981, 4256, - 9387, 8527, 7919, 1161, 5741, 8244, - 9387, 8527, 7919, 1161, 5741, 8245, 657, 4256, - 9387, 8527, 7919, 1161, 5741, 8372, - 9387, 8527, 7919, 1161, 5741, 10156, - 9387, 8527, 7919, 1182, - 9387, 8527, 7919, 1520, - 9387, 8527, 7919, 1550, - 9387, 8527, 7919, 1662, - 9387, 8527, 7919, 1904, - 9387, 8527, 7919, 2078, - 9387, 8527, 7919, 2334, - 9387, 8527, 7919, 2542, - 9387, 8527, 7919, 2830, - 9387, 8527, 7919, 2938, - 9387, 8527, 7919, 2939, 5741, 6128, - 9387, 8527, 7919, 2939, 5741, 10156, - 9387, 8527, 7919, 2939, 5741, 10158, - 9387, 8527, 7919, 3888, - 9387, 8527, 7919, 3940, - 9387, 8527, 7919, 4123, 5400, - 9387, 8527, 7919, 4489, 132, - 9387, 8527, 7919, 4489, 940, - 9387, 8527, 7919, 4489, 1662, - 9387, 8527, 7919, 4489, 1904, - 9387, 8527, 7919, 4489, 2360, - 9387, 8527, 7919, 4489, 2512, - 9387, 8527, 7919, 4489, 2962, - 9387, 8527, 7919, 4489, 3890, - 9387, 8527, 7919, 5336, - 9387, 8527, 7919, 5423, 5400, - 9387, 8527, 7919, 5616, - 9387, 8527, 7919, 5818, - 9387, 8527, 7919, 5819, 5741, 10158, - 9387, 8527, 7919, 6632, - 9387, 8527, 7919, 6874, - 9387, 8527, 7919, 6875, 5741, 7264, - 9387, 8527, 7919, 7009, 6874, - 9387, 8527, 7919, 7046, - 9387, 8527, 7919, 7047, 5741, 10158, - 9387, 8527, 7919, 7074, - 9387, 8527, 7919, 7103, 16, - 9387, 8527, 7919, 7103, 17, 5741, 5520, - 9387, 8527, 7919, 7103, 40, - 9387, 8527, 7919, 7515, 28, - 9387, 8527, 7919, 7515, 29, 5741, 10158, - 9387, 8527, 7919, 7937, 2886, - 9387, 8527, 7919, 8497, 286, - 9387, 8527, 7919, 8822, - 9387, 8527, 7919, 8823, 5741, 7673, 6461, 7444, - 9387, 8527, 7919, 9669, 8, - 9387, 8527, 7919, 9669, 737, 2886, - 9387, 8527, 7919, 9669, 7937, 2886, - 9387, 8527, 7919, 9871, 616, - 9387, 8527, 7919, 9889, 5400, - 9387, 8527, 7919, 9919, 40, - 9387, 8527, 7919, 9919, 41, 5741, 8244, - 9387, 8527, 7919, 10063, 220, - 9387, 8527, 7919, 10063, 812, - 9387, 8527, 7919, 10063, 813, 5741, 10156, - 9387, 8527, 7919, 10063, 996, - 9387, 8527, 7919, 10719, 242, - 9387, 8527, 7919, 10995, 812, - 9387, 8527, 7919, 12515, 16, - 9387, 8527, 9701, 1, 242, - 9387, 8527, 9701, 165, 1160, - 9387, 8527, 9701, 515, 2542, - 9387, 10699, 5400, - 9411, 5400, - 9425, 5400, - 9425, 7132, - 9425, 7258, - 9549, 6939, 11083, 6046, - 9559, 6046, - 9563, 8258, - 9566, - 9575, 3965, 5478, - 9575, 6212, - 9575, 6218, - 9575, 6287, 2004, - 9575, 6287, 2358, - 9575, 6287, 2584, - 9575, 6287, 3942, - 9575, 6287, 3956, - 9575, 6287, 4854, - 9575, 6287, 6312, - 9575, 6287, 7060, - 9575, 6287, 7244, - 9575, 7271, 4631, 4498, - 9575, 7271, 4631, 6278, - 9575, 7271, 4631, 6284, - 9575, 7271, 4631, 6490, - 9575, 7271, 4631, 6608, - 9575, 7271, 4631, 7103, 8140, - 9575, 7271, 4631, 7396, - 9575, 7271, 4631, 7574, - 9575, 7271, 4631, 8140, - 9575, 7271, 4631, 11246, - 9575, 8031, 2478, - 9575, 8031, 2479, 9994, - 9575, 8031, 6370, - 9575, 8031, 6390, - 9575, 8031, 7128, - 9575, 8031, 7680, - 9575, 8031, 8020, - 9575, 8031, 8302, - 9575, 8031, 8352, - 9575, 8031, 8794, - 9575, 8031, 9096, - 9575, 9035, 6212, - 9575, 9089, 4630, - 9575, 9853, 4630, - 9575, 9957, 94, - 9575, 9957, 96, - 9575, 9957, 98, - 9575, 9957, 100, - 9575, 9957, 104, - 9575, 9957, 108, - 9575, 9957, 114, - 9575, 9957, 118, - 9575, 9957, 122, - 9575, 9957, 124, - 9575, 9957, 128, - 9575, 9957, 132, - 9575, 9957, 134, - 9575, 9957, 140, - 9575, 9957, 142, - 9575, 9957, 182, - 9575, 9957, 184, - 9575, 9957, 188, - 9575, 9957, 194, - 9575, 9957, 196, - 9575, 9957, 200, - 9575, 9957, 204, - 9575, 9957, 208, - 9575, 9957, 212, - 9575, 9957, 214, - 9575, 9957, 220, - 9575, 9957, 222, - 9575, 9957, 226, - 9575, 9957, 230, - 9575, 9957, 234, - 9575, 9957, 274, - 9575, 9957, 276, - 9575, 9957, 278, - 9575, 9957, 280, - 9575, 9957, 282, - 9575, 9957, 286, - 9575, 9957, 290, - 9575, 9957, 294, - 9575, 9957, 302, - 9575, 9957, 306, - 9575, 9957, 312, - 9575, 9957, 314, - 9575, 9957, 318, - 9575, 9957, 328, - 9575, 9957, 332, - 9575, 9957, 342, - 9575, 9957, 346, - 9575, 9957, 352, - 9575, 9957, 358, - 9575, 9957, 362, - 9575, 9957, 370, - 9575, 9957, 372, - 9575, 9957, 380, - 9575, 9957, 386, - 9575, 9957, 390, - 9575, 9957, 430, - 9575, 9957, 434, - 9575, 9957, 440, - 9575, 9957, 444, - 9575, 9957, 450, - 9575, 9957, 458, - 9575, 9957, 460, - 9575, 9957, 462, - 9575, 9957, 464, - 9575, 9957, 468, - 9575, 9957, 472, - 9575, 9957, 474, - 9575, 9957, 476, - 9575, 9957, 478, - 9575, 9957, 482, - 9575, 9957, 486, - 9575, 9957, 488, - 9575, 9957, 492, - 9575, 9957, 496, - 9575, 9957, 502, - 9575, 9957, 510, - 9575, 9957, 514, - 9575, 9957, 518, - 9575, 9957, 520, - 9575, 9957, 526, - 9575, 9957, 554, - 9575, 9957, 556, - 9575, 9957, 558, - 9575, 9957, 560, - 9575, 9957, 562, - 9575, 9957, 566, - 9575, 9957, 570, - 9575, 9957, 574, - 9575, 9957, 576, - 9575, 9957, 578, - 9575, 9957, 582, - 9575, 9957, 584, - 9575, 9957, 588, - 9575, 9957, 590, - 9575, 9957, 592, - 9575, 9957, 596, - 9575, 9957, 598, - 9575, 9957, 600, - 9575, 9957, 604, - 9575, 9957, 608, - 9575, 9957, 614, - 9575, 9957, 616, - 9575, 9957, 620, - 9575, 9957, 622, - 9575, 9957, 624, - 9575, 9957, 684, - 9575, 9957, 714, - 9575, 9957, 744, - 9575, 9957, 764, - 9575, 9957, 766, - 9575, 9957, 768, - 9575, 9957, 780, - 9575, 9957, 792, - 9575, 9957, 794, - 9575, 9957, 796, - 9575, 9957, 798, - 9575, 9957, 800, - 9575, 9957, 802, - 9575, 9957, 810, - 9575, 9957, 812, - 9575, 9957, 814, - 9575, 9957, 816, - 9575, 9957, 818, - 9575, 9957, 836, - 9575, 9957, 860, - 9575, 9957, 878, - 9575, 9957, 898, - 9575, 9957, 900, - 9575, 9957, 902, - 9575, 9957, 904, - 9575, 9957, 906, - 9575, 9957, 908, - 9575, 9957, 952, - 9575, 9957, 986, - 9575, 9957, 1050, - 9575, 9957, 1060, - 9575, 9957, 1096, - 9575, 9957, 1098, - 9575, 9957, 1100, - 9575, 9957, 1102, - 9575, 9957, 1112, - 9575, 9957, 1138, - 9575, 9957, 1148, - 9575, 9957, 1150, - 9575, 9957, 1152, - 9575, 9957, 1154, - 9575, 9957, 1156, - 9575, 9957, 1184, - 9575, 9957, 1216, - 9575, 9957, 1218, - 9575, 9957, 1220, - 9575, 9957, 1222, - 9575, 9957, 1224, - 9575, 9957, 1226, - 9575, 9957, 1228, - 9575, 9957, 1230, - 9575, 9957, 1232, - 9575, 9957, 1248, - 9575, 9957, 1260, - 9575, 9957, 1262, - 9575, 9957, 1264, - 9575, 9957, 1266, - 9575, 9957, 1268, - 9575, 9957, 1306, - 9575, 9957, 1384, - 9575, 9957, 1388, - 9575, 9957, 1422, - 9575, 9957, 1442, - 9575, 9957, 1454, - 9575, 9957, 1478, - 9575, 9957, 1532, - 9575, 9957, 1574, - 9575, 9957, 1576, - 9575, 9957, 1578, - 9575, 9957, 1582, - 9575, 9957, 1584, - 9575, 9957, 1586, - 9575, 9957, 1588, - 9575, 9957, 1590, - 9575, 9957, 1592, - 9575, 9957, 1594, - 9575, 9957, 1596, - 9575, 9957, 1598, - 9575, 9957, 1600, - 9575, 9957, 1602, - 9575, 9957, 1626, - 9575, 9957, 1666, - 9575, 9957, 1702, - 9575, 9957, 1722, - 9575, 9957, 1742, - 9575, 9957, 1782, - 9575, 9957, 1808, - 9575, 9957, 1810, - 9575, 9957, 1812, - 9575, 9957, 1816, - 9575, 9957, 1826, - 9575, 9957, 1860, - 9575, 9957, 1922, - 9575, 9957, 1958, - 9575, 9957, 1962, - 9575, 9957, 1966, - 9575, 9957, 1968, - 9575, 9957, 1970, - 9575, 9957, 1972, - 9575, 9957, 2018, - 9575, 9957, 2034, - 9575, 9957, 2042, - 9575, 9957, 2044, - 9575, 9957, 2046, - 9575, 9957, 2048, - 9575, 9957, 2050, - 9575, 9957, 2066, - 9575, 9957, 2094, - 9575, 9957, 2096, - 9575, 9957, 2098, - 9575, 9957, 2110, - 9575, 9957, 2122, - 9575, 9957, 2124, - 9575, 9957, 2126, - 9575, 9957, 2128, - 9575, 9957, 2130, - 9575, 9957, 2132, - 9575, 9957, 2144, - 9575, 9957, 2178, - 9575, 9957, 2180, - 9575, 9957, 2182, - 9575, 9957, 2184, - 9575, 9957, 2186, - 9575, 9957, 2188, - 9575, 9957, 2190, - 9575, 9957, 2198, - 9575, 9957, 2206, - 9575, 9957, 2226, - 9575, 9957, 2248, - 9575, 9957, 2288, - 9575, 9957, 2290, - 9575, 9957, 2304, - 9575, 9957, 2324, - 9575, 9957, 2334, - 9575, 9957, 2336, - 9575, 9957, 2338, - 9575, 9957, 2340, - 9575, 9957, 2342, - 9575, 9957, 2366, - 9575, 9957, 2384, - 9575, 9957, 2386, - 9575, 9957, 2388, - 9575, 9957, 2390, - 9575, 9957, 2392, - 9575, 9957, 2414, - 9575, 9957, 2430, - 9575, 9957, 2432, - 9575, 9957, 2434, - 9575, 9957, 2436, - 9575, 9957, 2438, - 9575, 9957, 2442, - 9575, 9957, 2474, - 9575, 9957, 2486, - 9575, 9957, 2488, - 9575, 9957, 2490, - 9575, 9957, 2492, - 9575, 9957, 2494, - 9575, 9957, 2526, - 9575, 9957, 2540, - 9575, 9957, 2542, - 9575, 9957, 2544, - 9575, 9957, 2546, - 9575, 9957, 2548, - 9575, 9957, 2578, - 9575, 9957, 2596, - 9575, 9957, 2598, - 9575, 9957, 2600, - 9575, 9957, 2602, - 9575, 9957, 2604, - 9575, 9957, 2648, - 9575, 9957, 2658, - 9575, 9957, 2696, - 9575, 9957, 2706, - 9575, 9957, 2720, - 9575, 9957, 2730, - 9575, 9957, 2744, - 9575, 9957, 2748, - 9575, 9957, 2760, - 9575, 9957, 2774, - 9575, 9957, 2776, - 9575, 9957, 2778, - 9575, 9957, 2780, - 9575, 9957, 2782, - 9575, 9957, 2784, - 9575, 9957, 2786, - 9575, 9957, 2794, - 9575, 9957, 2798, - 9575, 9957, 2842, - 9575, 9957, 2868, - 9575, 9957, 2910, - 9575, 9957, 2928, - 9575, 9957, 2936, - 9575, 9957, 2938, - 9575, 9957, 2940, - 9575, 9957, 2942, - 9575, 9957, 2944, - 9575, 9957, 2966, - 9575, 9957, 2992, - 9575, 9957, 3002, - 9575, 9957, 3004, - 9575, 9957, 3006, - 9575, 9957, 3008, - 9575, 9957, 3010, - 9575, 9957, 3602, - 9575, 9957, 3628, - 9575, 9957, 3630, - 9575, 9957, 3632, - 9575, 9957, 3634, - 9575, 9957, 3636, - 9575, 9957, 3638, - 9575, 9957, 3640, - 9575, 9957, 3646, - 9575, 9957, 3660, - 9575, 9957, 3674, - 9575, 9957, 3692, - 9575, 9957, 3764, - 9575, 9957, 3776, - 9575, 9957, 3794, - 9575, 9957, 3812, - 9575, 9957, 3974, - 9575, 9957, 4002, - 9575, 9957, 4010, - 9575, 9957, 4040, - 9575, 9957, 4042, - 9575, 9957, 4044, - 9575, 9957, 4100, - 9575, 9957, 4102, - 9575, 9957, 4104, - 9575, 9957, 4108, - 9575, 9957, 4140, - 9575, 9957, 4142, - 9575, 9957, 4144, - 9575, 9957, 4504, - 9575, 9957, 4506, - 9575, 9957, 4512, - 9575, 9957, 4514, - 9575, 9957, 4516, - 9575, 9957, 4518, - 9575, 9957, 4520, - 9575, 9957, 4522, - 9575, 9957, 4524, - 9575, 9957, 4724, - 9575, 9957, 4952, - 9575, 9957, 4956, - 9575, 9957, 4970, - 9575, 9957, 4986, - 9575, 9957, 5062, - 9575, 9957, 5068, - 9575, 9957, 5070, - 9575, 9957, 5074, - 9575, 9957, 5112, - 9575, 9957, 5128, - 9575, 9957, 5130, - 9575, 9957, 5132, - 9575, 9957, 5134, - 9575, 9957, 5136, - 9575, 9957, 5158, - 9575, 9957, 5160, - 9575, 9957, 5162, - 9575, 9957, 5164, - 9575, 9957, 5314, - 9575, 9957, 5324, - 9575, 9957, 5348, - 9575, 9957, 5376, - 9575, 9957, 5428, - 9575, 9957, 5436, - 9575, 9957, 5508, - 9575, 9957, 5510, - 9575, 9957, 5512, - 9575, 9957, 5546, - 9575, 9957, 5554, - 9575, 9957, 5568, - 9575, 9957, 5572, - 9575, 9957, 5610, - 9575, 9957, 5612, - 9575, 9957, 5618, - 9575, 9957, 5664, - 9575, 9957, 5666, - 9575, 9957, 5670, - 9575, 9957, 5766, - 9575, 9957, 5768, - 9575, 9957, 5770, - 9575, 9957, 5772, - 9575, 9957, 5882, - 9575, 9957, 5892, - 9575, 9957, 5916, - 9575, 9957, 5942, - 9575, 9957, 5950, - 9575, 9957, 6156, - 9575, 9957, 6158, - 9575, 9957, 6432, - 9575, 9957, 6434, - 9575, 9957, 6636, - 9575, 9957, 6638, - 9575, 9957, 6962, - 9575, 9957, 6964, - 9575, 9957, 8763, 0, - 9575, 9957, 8763, 8, - 9575, 9957, 8763, 16, - 9575, 9957, 8763, 28, - 9575, 9957, 8763, 40, - 9575, 9957, 8763, 58, - 9575, 9957, 8763, 150, - 9575, 9957, 8763, 396, - 9575, 9957, 8763, 566, - 9575, 9957, 10561, 764, - 9575, 9957, 10561, 1096, - 9575, 9957, 10561, 1808, - 9575, 9957, 10561, 2094, - 9575, 9957, 11041, 0, - 9575, 9957, 11041, 8, - 9575, 9957, 11041, 16, - 9575, 9957, 11041, 28, - 9575, 9957, 11041, 40, - 9575, 9957, 11041, 58, - 9575, 9957, 11041, 150, - 9575, 10125, 10969, 4630, - 9575, 10505, 10566, - 9575, 10562, - 9575, 10736, - 9577, 11711, 6287, 2004, - 9577, 11711, 6287, 2358, - 9577, 11711, 6287, 2584, - 9577, 11711, 6287, 3942, - 9577, 11711, 6287, 3956, - 9577, 11711, 6287, 4854, - 9577, 11711, 6287, 5878, - 9577, 11711, 6287, 6312, - 9577, 11711, 6287, 7060, - 9577, 11711, 6287, 7244, - 9583, 8981, 10406, - 9596, - 9605, 7132, - 9605, 10491, 2004, - 9615, 11206, - 9621, 7143, 7919, 78, - 9621, 7143, 7919, 164, - 9621, 7143, 7919, 222, - 9621, 7143, 7919, 256, - 9621, 7143, 7919, 408, - 9621, 7143, 7919, 542, - 9621, 7143, 7919, 570, - 9621, 7143, 7919, 692, - 9621, 7143, 7919, 784, - 9621, 7143, 7919, 826, - 9621, 7143, 7919, 956, - 9621, 7143, 7919, 1124, - 9621, 7143, 7919, 1234, - 9621, 7143, 7919, 1242, - 9621, 7143, 7919, 1270, - 9621, 7143, 7919, 1308, - 9621, 7143, 7919, 1402, - 9621, 7143, 7919, 1468, - 9621, 7143, 7919, 1614, - 9621, 7143, 7919, 1728, - 9621, 7143, 7919, 1836, - 9621, 7143, 7919, 2026, - 9621, 7143, 7919, 2118, - 9621, 7143, 7919, 2212, - 9621, 7143, 7919, 2312, - 9621, 7143, 7919, 2456, - 9621, 7143, 7919, 2462, - 9621, 7143, 7919, 2670, - 9621, 7143, 7919, 2746, - 9621, 7143, 7919, 2930, - 9621, 7143, 7919, 3654, - 9621, 7143, 7919, 3672, - 9621, 7143, 7919, 4048, - 9621, 7143, 7919, 4358, - 9621, 7143, 7919, 4460, - 9621, 7143, 7919, 5066, - 9621, 7143, 7919, 5344, - 9621, 7143, 7919, 5886, - 9621, 7919, 78, - 9621, 7919, 164, - 9621, 7919, 188, - 9621, 7919, 222, - 9621, 7919, 256, - 9621, 7919, 408, - 9621, 7919, 542, - 9621, 7919, 570, - 9621, 7919, 602, - 9621, 7919, 646, - 9621, 7919, 692, - 9621, 7919, 784, - 9621, 7919, 826, - 9621, 7919, 956, - 9621, 7919, 1124, - 9621, 7919, 1234, - 9621, 7919, 1242, - 9621, 7919, 1270, - 9621, 7919, 1308, - 9621, 7919, 1402, - 9621, 7919, 1468, - 9621, 7919, 1614, - 9621, 7919, 1728, - 9621, 7919, 1836, - 9621, 7919, 2026, - 9621, 7919, 2118, - 9621, 7919, 2212, - 9621, 7919, 2312, - 9621, 7919, 2456, - 9621, 7919, 2462, - 9621, 7919, 2670, - 9621, 7919, 2746, - 9621, 7919, 2930, - 9621, 7919, 3654, - 9621, 7919, 3672, - 9621, 7919, 4048, - 9621, 7919, 4358, - 9621, 7919, 4460, - 9621, 7919, 5066, - 9621, 7919, 5344, - 9621, 7919, 5886, - 9621, 7919, 6318, - 9621, 7919, 8345, 1124, - 9621, 8527, 7919, 78, - 9621, 8527, 7919, 164, - 9621, 8527, 7919, 222, - 9621, 8527, 7919, 256, - 9621, 8527, 7919, 408, - 9621, 8527, 7919, 542, - 9621, 8527, 7919, 570, - 9621, 8527, 7919, 692, - 9621, 8527, 7919, 784, - 9621, 8527, 7919, 826, - 9621, 8527, 7919, 956, - 9621, 8527, 7919, 1124, - 9621, 8527, 7919, 1234, - 9621, 8527, 7919, 1242, - 9621, 8527, 7919, 1270, - 9621, 8527, 7919, 1308, - 9621, 8527, 7919, 1402, - 9621, 8527, 7919, 1468, - 9621, 8527, 7919, 1614, - 9621, 8527, 7919, 1728, - 9621, 8527, 7919, 1836, - 9621, 8527, 7919, 2026, - 9621, 8527, 7919, 2118, - 9621, 8527, 7919, 2212, - 9621, 8527, 7919, 2312, - 9621, 8527, 7919, 2456, - 9621, 8527, 7919, 2462, - 9621, 8527, 7919, 2670, - 9621, 8527, 7919, 2746, - 9621, 8527, 7919, 2930, - 9621, 8527, 7919, 3654, - 9621, 8527, 7919, 3672, - 9621, 8527, 7919, 4048, - 9621, 8527, 7919, 4358, - 9621, 8527, 7919, 4460, - 9621, 8527, 7919, 5066, - 9621, 8527, 7919, 5344, - 9621, 8527, 7919, 5886, - 9621, 10505, 10566, - 9625, 406, - 9625, 5401, 6840, - 9625, 5401, 8392, - 9625, 5401, 9236, - 9625, 5401, 9280, - 9625, 5401, 9314, - 9625, 5401, 11212, - 9625, 6287, 2004, - 9625, 6287, 2358, - 9625, 6287, 2584, - 9625, 6287, 3942, - 9625, 6287, 3956, - 9625, 6287, 4854, - 9625, 6287, 5878, - 9625, 6287, 6312, - 9625, 6287, 7060, - 9625, 6287, 7244, - 9625, 7021, 5400, - 9625, 7341, 5401, 8, - 9625, 7341, 5401, 16, - 9625, 7341, 5401, 28, - 9625, 7341, 5401, 40, - 9625, 7341, 5401, 58, - 9625, 7341, 5401, 70, - 9625, 7341, 5401, 88, - 9625, 7341, 5401, 248, - 9625, 7341, 5401, 550, - 9625, 7341, 5401, 7565, 8, - 9625, 7341, 5401, 7565, 28, - 9625, 7341, 5401, 9239, 22, - 9625, 7341, 5401, 9239, 34, - 9625, 7341, 5401, 9239, 322, - 9625, 7341, 5401, 9239, 480, - 9625, 7341, 7565, 8, - 9625, 7341, 7565, 28, - 9625, 7919, 0, - 9625, 7919, 8, - 9625, 7919, 16, - 9625, 7919, 28, - 9625, 7919, 40, - 9625, 7919, 58, - 9625, 7919, 70, - 9625, 7919, 88, - 9625, 7919, 94, - 9625, 7919, 108, - 9625, 7919, 128, - 9625, 7919, 200, - 9625, 7919, 220, - 9625, 7919, 248, - 9625, 7919, 274, - 9625, 7919, 286, - 9625, 7919, 312, - 9625, 7919, 342, - 9625, 7919, 370, - 9625, 7919, 430, - 9625, 7919, 472, - 9625, 7919, 486, - 9625, 7919, 510, - 9625, 7919, 550, - 9625, 7919, 554, - 9625, 7919, 596, - 9625, 7919, 728, - 9625, 7919, 810, - 9625, 7919, 898, - 9625, 7919, 920, - 9625, 7919, 1158, - 9625, 7919, 1394, - 9625, 7919, 1492, - 9625, 7919, 1664, - 9625, 7919, 1874, - 9625, 7919, 1916, - 9625, 7919, 1962, - 9625, 7919, 2042, - 9625, 7919, 2334, - 9625, 7919, 2384, - 9625, 7919, 2486, - 9625, 7919, 2552, - 9625, 7919, 3782, - 9625, 7919, 5626, - 9625, 7919, 9239, 22, - 9625, 7919, 9239, 34, - 9625, 7919, 9239, 322, - 9625, 7919, 9239, 480, - 9627, 159, 6876, - 9627, 1378, - 9627, 2632, - 9627, 5401, 3017, 6110, - 9627, 5401, 6110, - 9627, 5401, 6840, - 9627, 5401, 8392, - 9627, 5401, 9236, - 9627, 5994, - 9627, 6287, 2004, - 9627, 6287, 2358, - 9627, 6287, 2584, - 9627, 6287, 3942, - 9627, 6287, 3956, - 9627, 6287, 4854, - 9627, 6287, 5878, - 9627, 6287, 6312, - 9627, 6287, 7060, - 9627, 6287, 7244, - 9627, 7262, - 9627, 7341, 5401, 16, - 9627, 7341, 5401, 40, - 9627, 7341, 5401, 58, - 9627, 7341, 5401, 70, - 9627, 7341, 5401, 88, - 9627, 7341, 5401, 150, - 9627, 7341, 5401, 248, - 9627, 7341, 5401, 410, - 9627, 7341, 5401, 550, - 9627, 7919, 0, - 9627, 7919, 16, - 9627, 7919, 40, - 9627, 7919, 58, - 9627, 7919, 70, - 9627, 7919, 88, - 9627, 7919, 94, - 9627, 7919, 108, - 9627, 7919, 128, - 9627, 7919, 150, - 9627, 7919, 182, - 9627, 7919, 200, - 9627, 7919, 220, - 9627, 7919, 248, - 9627, 7919, 274, - 9627, 7919, 286, - 9627, 7919, 312, - 9627, 7919, 342, - 9627, 7919, 370, - 9627, 7919, 410, - 9627, 7919, 430, - 9627, 7919, 472, - 9627, 7919, 486, - 9627, 7919, 510, - 9627, 7919, 550, - 9627, 7919, 554, - 9627, 7919, 596, - 9627, 7919, 614, - 9627, 7919, 728, - 9627, 7919, 810, - 9627, 7919, 898, - 9627, 7919, 920, - 9627, 7919, 1158, - 9627, 7919, 1394, - 9627, 7919, 1492, - 9627, 7919, 1664, - 9627, 7919, 1874, - 9627, 7919, 1916, - 9627, 7919, 1962, - 9627, 7919, 2042, - 9627, 7919, 2262, - 9627, 7919, 2334, - 9627, 7919, 2486, - 9627, 7919, 2552, - 9627, 7919, 3782, - 9627, 7919, 4052, - 9627, 7919, 4466, - 9627, 7919, 5626, - 9631, 8957, 2004, - 9631, 8957, 2358, - 9631, 8957, 2478, - 9631, 8957, 2584, - 9631, 8957, 3942, - 9631, 8957, 3956, - 9631, 8957, 4854, - 9631, 8957, 6312, - 9631, 8957, 7060, - 9631, 8957, 7244, - 9631, 8957, 8302, - 9631, 8957, 8352, - 9641, 1085, 2489, 3064, - 9641, 1085, 2489, 5730, - 9641, 1085, 2489, 7712, - 9641, 1085, 2489, 7771, 5736, - 9641, 1085, 2489, 7851, 4538, - 9641, 1085, 2489, 8441, 7348, - 9641, 1085, 2489, 8845, 7189, 9742, - 9641, 1085, 2489, 9303, 9200, - 9641, 1085, 2489, 9344, - 9641, 1085, 2489, 9363, 3936, - 9641, 1085, 2489, 9373, 7808, - 9641, 1085, 2489, 9721, 7944, - 9641, 1085, 2489, 10046, - 9641, 1085, 2489, 10539, 6306, - 9641, 1085, 5749, 409, 2489, 8606, - 9641, 1085, 5997, 10788, - 9641, 1085, 6454, - 9641, 1085, 6463, 6944, - 9641, 1085, 6463, 8272, - 9641, 1085, 6463, 11050, - 9641, 1085, 6463, 12298, - 9641, 1085, 6573, 7286, - 9641, 1085, 6753, 8578, - 9641, 1085, 6906, - 9641, 1085, 7143, 8272, - 9641, 1085, 7143, 12298, - 9641, 1085, 7521, 10788, - 9641, 1085, 7533, 9198, - 9641, 1085, 7595, 521, 4644, - 9641, 1085, 8136, - 9641, 1085, 8791, 10002, - 9641, 1085, 8924, - 9641, 1085, 9041, 8374, - 9641, 1085, 9058, - 9641, 1085, 9244, - 9641, 1085, 9288, - 9641, 1085, 9364, - 9641, 1085, 9402, - 9641, 1085, 9552, - 9641, 1085, 9652, - 9641, 1085, 9842, - 9641, 1085, 10008, - 9641, 1085, 10055, 6382, - 9641, 1085, 10064, - 9641, 1085, 10147, 401, 2489, 6670, - 9641, 1085, 10350, - 9641, 1085, 10365, 10002, - 9641, 1085, 10408, - 9641, 1085, 10410, - 9641, 1085, 10585, 6028, - 9641, 1085, 10813, 87, 2489, 10098, - 9641, 1085, 10814, - 9641, 1085, 10946, - 9641, 1085, 10958, - 9641, 1085, 11006, - 9641, 1085, 11028, - 9641, 1085, 11030, - 9641, 1085, 11074, - 9641, 1085, 11150, - 9641, 1085, 11242, - 9641, 1085, 11250, - 9641, 1085, 11410, - 9641, 1085, 11722, - 9641, 1085, 12218, - 9643, 7919, 0, - 9643, 7919, 8, - 9643, 7919, 16, - 9643, 7919, 26, - 9643, 7919, 28, - 9643, 7919, 40, - 9643, 7919, 94, - 9643, 7919, 96, - 9643, 7919, 98, - 9643, 7919, 100, - 9643, 7919, 104, - 9643, 7919, 128, - 9643, 7919, 132, - 9643, 7919, 134, - 9643, 7919, 140, - 9643, 7919, 142, - 9643, 7919, 200, - 9643, 7919, 204, - 9643, 7919, 208, - 9643, 7919, 212, - 9643, 7919, 214, - 9643, 7919, 220, - 9643, 7919, 222, - 9643, 7919, 226, - 9643, 7919, 230, - 9643, 7919, 234, - 9643, 7919, 286, - 9643, 7919, 290, - 9643, 7919, 294, - 9643, 7919, 302, - 9643, 7919, 306, - 9643, 7919, 342, - 9643, 7919, 346, - 9643, 7919, 352, - 9643, 7919, 358, - 9643, 7919, 362, - 9643, 7919, 370, - 9643, 7919, 372, - 9643, 7919, 380, - 9643, 7919, 386, - 9643, 7919, 390, - 9643, 7919, 430, - 9643, 7919, 434, - 9643, 7919, 440, - 9643, 7919, 444, - 9643, 7919, 450, - 9643, 7919, 472, - 9643, 7919, 474, - 9643, 7919, 476, - 9643, 7919, 478, - 9643, 7919, 482, - 9643, 7919, 486, - 9643, 7919, 488, - 9643, 7919, 492, - 9643, 7919, 496, - 9643, 7919, 502, - 9643, 7919, 510, - 9643, 7919, 514, - 9643, 7919, 518, - 9643, 7919, 520, - 9643, 7919, 526, - 9643, 7919, 562, - 9643, 7919, 566, - 9643, 7919, 570, - 9643, 7919, 574, - 9643, 7919, 576, - 9643, 7919, 596, - 9643, 7919, 604, - 9643, 7919, 608, - 9643, 7919, 614, - 9643, 7919, 616, - 9643, 7919, 620, - 9643, 7919, 622, - 9643, 7919, 624, - 9643, 7919, 7143, 0, - 9643, 7919, 7143, 8, - 9643, 7919, 7143, 16, - 9643, 7919, 7143, 28, - 9643, 7919, 7143, 40, - 9643, 7919, 7143, 286, - 9643, 7919, 7143, 290, - 9643, 7919, 7143, 526, - 9643, 7919, 7143, 566, - 9643, 7919, 7143, 596, - 9643, 7919, 7143, 604, - 9643, 7919, 7143, 608, - 9643, 8397, 10419, 4630, - 9643, 8623, 5842, - 9643, 10419, 4630, - 9656, - 9657, 8941, 5741, 10043, 696, + 8545, 1610, + 8551, 4849, 12114, + 8551, 7443, 12114, + 8562, + 8570, + 8581, 5758, + 8592, + 8595, 9956, + 8595, 9957, 5387, 2779, 476, + 8609, 4926, + 8609, 4927, 4178, + 8631, 8151, 12953, 8450, + 8631, 8744, + 8631, 12953, 8450, + 8639, 7803, 5759, 8, + 8639, 7803, 5759, 16, + 8639, 7803, 5759, 28, + 8639, 7803, 5759, 40, + 8639, 7803, 5759, 72, + 8639, 7803, 5759, 92, + 8639, 7803, 5759, 160, + 8639, 7803, 5759, 188, + 8639, 8405, 0, + 8639, 8405, 100, + 8639, 8405, 116, + 8639, 8405, 138, + 8639, 8405, 216, + 8639, 8405, 236, + 8639, 8405, 292, + 8639, 8405, 306, + 8639, 8405, 332, + 8639, 8405, 364, + 8639, 8405, 392, + 8639, 8405, 462, + 8639, 8405, 510, + 8639, 8405, 524, + 8639, 8405, 556, + 8639, 8405, 622, + 8639, 8405, 652, + 8639, 8405, 1878, + 8639, 8405, 2006, + 8639, 8405, 2030, + 8639, 8405, 2126, + 8639, 8405, 5152, + 8639, 8405, 5312, + 8639, 8916, + 8639, 9665, 4926, + 8639, 10775, 5759, 14, + 8639, 10775, 5759, 26, + 8639, 10775, 5759, 34, + 8639, 10775, 5759, 400, + 8643, 8774, + 8649, 10001, 9967, 7607, 4153, 6434, + 8649, 10001, 9967, 9279, 10000, + 8668, + 8672, + 8679, 7593, 8, + 8679, 7593, 12, + 8679, 7593, 22, + 8679, 7593, 28, + 8679, 9063, 2, + 8679, 9063, 8, + 8679, 9063, 10, + 8679, 9063, 14, + 8679, 9063, 16, + 8679, 9063, 22, + 8679, 9063, 24, + 8679, 9063, 30, + 8679, 9063, 34, + 8684, + 8691, 1044, + 8717, 7119, 11195, 4926, + 8717, 12967, 6409, 11195, 4926, + 8717, 13067, 6409, 11195, 4926, + 8717, 13201, 11195, 4926, + 8745, 1, 5387, 24, + 8745, 5, 5387, 312, + 8745, 21, 2162, + 8745, 25, 2162, + 8745, 25, 5387, 36, + 8745, 25, 5387, 37, 9732, + 8745, 25, 6624, + 8745, 25, 9732, + 8745, 43, 5387, 24, + 8745, 78, + 8745, 92, + 8745, 110, + 8745, 118, + 8745, 120, + 8745, 128, + 8745, 129, 6624, + 8745, 129, 9732, + 8745, 130, + 8745, 138, + 8745, 140, + 8745, 146, + 8745, 148, + 8745, 149, 6624, + 8745, 149, 9732, + 8745, 190, + 8745, 206, + 8745, 218, + 8745, 234, + 8745, 236, + 8745, 240, + 8745, 248, + 8745, 254, + 8745, 274, + 8745, 286, + 8745, 306, + 8745, 308, + 8745, 312, + 8745, 316, + 8745, 318, + 8745, 320, + 8745, 321, 6624, + 8745, 321, 9062, + 8745, 321, 9732, + 8745, 324, + 8745, 328, + 8745, 330, + 8745, 346, + 8745, 348, + 8745, 358, + 8745, 364, + 8745, 366, + 8745, 367, 7592, + 8745, 370, + 8745, 376, + 8745, 378, + 8745, 379, 6624, + 8745, 379, 9732, + 8745, 382, + 8745, 385, 0, + 8745, 385, 10, + 8745, 385, 12, + 8745, 385, 22, + 8745, 385, 24, + 8745, 385, 36, + 8745, 385, 42, + 8745, 385, 44, + 8745, 386, + 8745, 387, 4946, + 8745, 388, + 8745, 389, 4946, + 8745, 392, + 8745, 398, + 8745, 408, + 8745, 414, + 8745, 418, + 8745, 420, + 8745, 452, + 8745, 462, + 8745, 463, 3260, + 8745, 464, + 8745, 470, + 8745, 474, + 8745, 478, + 8745, 482, + 8745, 484, + 8745, 488, + 8745, 490, + 8745, 540, + 8745, 548, + 8745, 624, + 8745, 760, + 8745, 856, + 8745, 860, + 8745, 928, + 8745, 1117, 5047, 7142, + 8745, 1117, 5047, 8294, + 8745, 1117, 5047, 8778, + 8745, 1117, 5047, 9762, + 8745, 1118, + 8745, 1212, + 8745, 1270, + 8745, 1298, + 8745, 1422, + 8745, 1432, + 8745, 1622, + 8745, 1668, + 8745, 1800, + 8745, 1908, + 8745, 1918, + 8745, 1934, + 8745, 1946, + 8745, 2248, + 8745, 2382, + 8745, 2383, 5387, 36, + 8745, 2383, 5387, 37, 9732, + 8745, 2688, + 8745, 2720, + 8745, 2816, + 8745, 3224, + 8745, 3790, + 8745, 4062, + 8745, 4110, + 8745, 4208, + 8745, 4332, + 8745, 4532, + 8745, 4612, + 8745, 4732, + 8745, 4762, + 8745, 4849, 5385, 827, 10374, + 8745, 4946, + 8745, 5008, + 8745, 5052, + 8745, 5378, + 8745, 5380, + 8745, 5408, + 8745, 5430, + 8745, 5534, + 8745, 5552, + 8745, 5566, + 8745, 6121, 2725, 4389, 6504, + 8745, 6121, 4849, 4389, 6504, + 8745, 6121, 7121, 4849, 10001, 4389, 6504, + 8745, 6121, 7121, 7443, 10001, 4389, 6504, + 8745, 6121, 7443, 4389, 6504, + 8745, 6121, 7773, 4849, 569, 7121, 7443, 4192, + 8745, 6121, 7773, 4849, 10001, 4389, 6504, + 8745, 6121, 7773, 7443, 569, 7121, 4849, 4192, + 8745, 6121, 7773, 7443, 10001, 4389, 6504, + 8745, 6121, 8005, 4389, 6504, + 8745, 6121, 10001, 11469, 4192, + 8745, 6121, 10677, 4192, + 8745, 6121, 10779, 9544, + 8745, 6121, 11649, 4192, + 8745, 6121, 11707, 11469, 4192, + 8745, 6234, + 8745, 6410, + 8745, 6482, + 8745, 6630, + 8745, 6718, + 8745, 6826, + 8745, 6828, + 8745, 6858, + 8745, 6892, + 8745, 6950, + 8745, 6958, + 8745, 6989, 428, + 8745, 6989, 429, 445, 2091, 6741, 568, + 8745, 6989, 429, 445, 6741, 568, + 8745, 7018, + 8745, 7034, + 8745, 7060, + 8745, 7126, + 8745, 7128, + 8745, 7276, + 8745, 7330, + 8745, 7352, + 8745, 7360, + 8745, 7384, + 8745, 7443, 5385, 827, 10374, + 8745, 7470, + 8745, 7504, + 8745, 7506, + 8745, 7814, + 8745, 7840, + 8745, 7842, + 8745, 7926, + 8745, 7950, + 8745, 8002, + 8745, 8274, + 8745, 8300, + 8745, 8304, + 8745, 8314, + 8745, 8372, + 8745, 8378, + 8745, 8452, + 8745, 8572, + 8745, 8588, + 8745, 8604, + 8745, 9016, + 8745, 9308, + 8745, 9388, + 8745, 9390, + 8745, 9416, + 8745, 9438, + 8745, 9444, + 8745, 9454, + 8745, 9468, + 8745, 9470, + 8745, 9476, + 8745, 9636, + 8745, 9646, + 8745, 9648, + 8745, 9698, + 8745, 9926, + 8745, 10166, + 8745, 10244, + 8745, 10379, 428, + 8745, 10379, 429, 445, 2091, 6741, 568, + 8745, 10379, 429, 445, 6741, 568, + 8745, 10392, + 8745, 10480, + 8745, 10496, + 8745, 11028, + 8745, 11032, + 8745, 11080, + 8745, 11084, + 8745, 11120, + 8745, 11170, + 8745, 11668, + 8745, 11918, + 8745, 12068, + 8755, 10385, 7821, 5830, + 8763, 428, + 8763, 429, 445, 6741, 568, + 8763, 429, 445, 6741, 569, 6121, 1045, 6376, + 8763, 429, 6121, 2091, 6741, 568, + 8763, 429, 6377, 2091, 6741, 568, + 8763, 429, 6377, 7709, 10374, + 8763, 429, 6377, 7919, 6741, 568, + 8763, 429, 6377, 8167, 5758, + 8763, 6121, 1044, + 8763, 6121, 5445, 5759, 6490, + 8763, 6121, 13061, 5759, 6490, + 8763, 6377, 8762, + 8763, 6377, 10578, + 8763, 6377, 11765, 6434, + 8773, 7207, 5759, 9328, + 8773, 7207, 5759, 9870, + 8773, 7207, 5759, 10148, + 8773, 7207, 7803, 5759, 0, + 8773, 7207, 7803, 5759, 8, + 8773, 7207, 7803, 5759, 16, + 8773, 7207, 7803, 5759, 40, + 8773, 7207, 7803, 5759, 440, + 8773, 7207, 8405, 0, + 8773, 7207, 8405, 8, + 8773, 7207, 8405, 16, + 8773, 7207, 8405, 28, + 8773, 7207, 8405, 40, + 8773, 7207, 8405, 108, + 8773, 7207, 8405, 130, + 8773, 7207, 8405, 150, + 8773, 7207, 8405, 228, + 8773, 7207, 8405, 246, + 8773, 7207, 8405, 298, + 8773, 7207, 8405, 322, + 8773, 7207, 8405, 350, + 8773, 7207, 8405, 380, + 8773, 7207, 8405, 412, + 8773, 7207, 8405, 480, + 8773, 7207, 8405, 516, + 8773, 7207, 8405, 536, + 8773, 7207, 8405, 568, + 8773, 7207, 8405, 798, + 8773, 7207, 8405, 890, + 8773, 7207, 8405, 980, + 8773, 7207, 8405, 1002, + 8773, 7207, 8405, 1266, + 8773, 7207, 8405, 1514, + 8773, 7207, 8405, 1618, + 8773, 7207, 8405, 2218, + 8773, 7207, 8405, 2442, + 8773, 7207, 8405, 2684, + 8773, 7207, 8405, 2754, + 8773, 7207, 8405, 4018, + 8773, 7207, 8405, 6000, + 8773, 7207, 8603, 8442, + 8773, 7207, 8603, 8444, + 8773, 7207, 8603, 8446, + 8773, 7207, 8603, 8448, + 8775, 1177, 1109, 429, 5904, + 8775, 1177, 1109, 429, 8462, + 8775, 1177, 1109, 429, 12886, + 8775, 1177, 1109, 429, 12887, 6510, + 8775, 1177, 3768, + 8775, 1177, 3995, 4881, 8168, + 8775, 1177, 4191, 11228, + 8775, 1177, 4213, 4182, + 8775, 1177, 4877, 4182, + 8775, 1177, 5280, + 8775, 1177, 6053, 11228, + 8775, 1177, 6883, 11228, + 8775, 1177, 7539, 274, + 8775, 1177, 7539, 2186, + 8775, 1177, 7608, + 8775, 1177, 7633, 429, 5904, + 8775, 1177, 7633, 429, 9334, + 8775, 1177, 8026, + 8775, 1177, 8102, + 8775, 1177, 8103, 4213, 2778, + 8775, 1177, 8109, 9117, 2170, + 8775, 1177, 8109, 9117, 2778, + 8775, 1177, 8109, 9117, 4214, + 8775, 1177, 8109, 9117, 7694, + 8775, 1177, 8168, + 8775, 1177, 8637, 11228, + 8775, 1177, 9268, + 8775, 1177, 9502, + 8775, 1177, 9933, 8642, + 8775, 1177, 10357, 11884, + 8775, 1177, 10677, 11846, + 8775, 1177, 10730, + 8775, 1177, 11219, 8724, + 8775, 1177, 11649, 11846, + 8775, 1177, 11840, + 8775, 1177, 11841, 4213, 2778, + 8775, 1177, 11884, + 8775, 1177, 12359, 4598, + 8781, 1109, 429, 11162, + 8781, 2779, 10677, 4113, 6376, + 8781, 2779, 10677, 4113, 6490, + 8781, 6611, 8721, 4848, + 8781, 6611, 8721, 7442, + 8781, 6751, 6376, + 8781, 6751, 6490, + 8781, 6905, 6376, + 8781, 6905, 6490, + 8781, 7198, + 8781, 7427, 6376, + 8781, 7427, 6490, + 8781, 7472, + 8781, 7695, 4113, 6376, + 8781, 7695, 4113, 6490, + 8781, 8151, 7889, 8996, + 8781, 8151, 7889, 11648, + 8781, 8405, 8, + 8781, 8405, 238, + 8781, 8405, 468, + 8781, 8405, 1920, + 8781, 8405, 2110, + 8781, 8405, 2662, + 8781, 8405, 2918, + 8781, 8405, 3776, + 8781, 8405, 4410, + 8781, 8405, 4724, + 8781, 8405, 5476, + 8781, 8405, 5554, + 8781, 8405, 5698, + 8781, 8405, 5902, + 8781, 8405, 5903, 10214, + 8781, 8405, 6236, + 8781, 8405, 6237, 238, + 8781, 8405, 6254, + 8781, 8405, 6394, + 8781, 8405, 6789, 9668, + 8781, 8405, 6820, + 8781, 8405, 6821, 10214, + 8781, 8405, 7474, + 8781, 8405, 8090, + 8781, 8405, 8384, + 8781, 8405, 9185, 8091, 5554, + 8781, 8405, 9583, 6496, + 8781, 8405, 9583, 8258, + 8781, 8405, 9583, 9156, + 8781, 8405, 9668, + 8781, 8405, 9717, 198, + 8781, 8405, 9717, 7046, + 8781, 8405, 9717, 7874, + 8781, 8405, 10489, 468, + 8781, 8405, 12355, 6394, + 8781, 8617, 6376, + 8781, 8617, 6490, + 8781, 8617, 8150, + 8781, 8965, 6376, + 8781, 8965, 6490, + 8781, 8965, 8150, + 8781, 9024, + 8781, 9525, 4877, 6376, + 8781, 9525, 4877, 6490, + 8781, 10179, 1044, + 8781, 10235, 8530, + 8781, 10235, 11118, + 8781, 10235, 11432, + 8781, 10490, + 8781, 11196, + 8781, 11259, 4223, 5836, + 8781, 11259, 6610, + 8781, 11259, 6611, 8721, 7442, + 8781, 11649, 6610, + 8781, 11914, + 8781, 12031, 8150, + 8781, 12357, 4223, 5836, + 8781, 12357, 6610, + 8781, 12357, 6611, 8721, 4848, + 8781, 12391, 4926, + 8794, + 8803, 73, 8399, 4926, + 8803, 5759, 7756, + 8803, 5759, 8916, + 8803, 5759, 9824, + 8803, 5759, 9870, + 8803, 5759, 9904, + 8803, 5759, 11900, + 8803, 6689, 2170, + 8803, 6689, 2540, + 8803, 6689, 2778, + 8803, 6689, 4200, + 8803, 6689, 4214, + 8803, 6689, 5190, + 8803, 6689, 6260, + 8803, 6689, 6722, + 8803, 6689, 7508, + 8803, 6689, 7694, + 8803, 7803, 5759, 8, + 8803, 7803, 5759, 16, + 8803, 7803, 5759, 28, + 8803, 7803, 5759, 40, + 8803, 7803, 5759, 58, + 8803, 7803, 5759, 72, + 8803, 7803, 5759, 92, + 8803, 7803, 5759, 162, + 8803, 7803, 5759, 266, + 8803, 7803, 5759, 440, + 8803, 7803, 5759, 606, + 8803, 7803, 5759, 9827, 22, + 8803, 7803, 5759, 9827, 34, + 8803, 7803, 5759, 9827, 344, + 8803, 7803, 5759, 9827, 518, + 8803, 8399, 4926, + 8803, 8405, 0, + 8803, 8405, 8, + 8803, 8405, 16, + 8803, 8405, 28, + 8803, 8405, 40, + 8803, 8405, 58, + 8803, 8405, 72, + 8803, 8405, 92, + 8803, 8405, 100, + 8803, 8405, 116, + 8803, 8405, 138, + 8803, 8405, 162, + 8803, 8405, 216, + 8803, 8405, 236, + 8803, 8405, 266, + 8803, 8405, 292, + 8803, 8405, 306, + 8803, 8405, 332, + 8803, 8405, 364, + 8803, 8405, 392, + 8803, 8405, 440, + 8803, 8405, 462, + 8803, 8405, 510, + 8803, 8405, 524, + 8803, 8405, 556, + 8803, 8405, 606, + 8803, 8405, 610, + 8803, 8405, 652, + 8803, 8405, 792, + 8803, 8405, 884, + 8803, 8405, 974, + 8803, 8405, 996, + 8803, 8405, 1080, + 8803, 8405, 1260, + 8803, 8405, 1512, + 8803, 8405, 1612, + 8803, 8405, 1796, + 8803, 8405, 2030, + 8803, 8405, 2076, + 8803, 8405, 2126, + 8803, 8405, 2212, + 8803, 8405, 2438, + 8803, 8405, 2516, + 8803, 8405, 2566, + 8803, 8405, 2678, + 8803, 8405, 2732, + 8803, 8405, 2746, + 8803, 8405, 4016, + 8803, 8405, 5994, + 8803, 8405, 9827, 22, + 8803, 8405, 9827, 34, + 8803, 8405, 9827, 344, + 8803, 8405, 9827, 518, + 8803, 10203, 6689, 2171, 1177, 2161, 8611, 429, 4214, + 8803, 10203, 6689, 2171, 1177, 4173, 8611, 429, 4214, + 8803, 10203, 6689, 2779, 1177, 2161, 8611, 429, 4214, + 8803, 10203, 6689, 2779, 1177, 4173, 8611, 429, 4214, + 8803, 10203, 6689, 6261, 1177, 2161, 8611, 429, 4214, + 8803, 10203, 6689, 7695, 1177, 2161, 8611, 429, 4214, + 8803, 10203, 6689, 7695, 1177, 4173, 8611, 429, 4214, + 8811, 7650, + 8811, 8405, 568, + 8811, 8405, 678, + 8811, 8405, 748, + 8811, 8405, 1338, + 8811, 8405, 1982, + 8811, 8405, 2378, + 8811, 8405, 3006, + 8811, 8405, 3120, + 8811, 8405, 3240, + 8811, 8405, 4412, + 8811, 8405, 4734, + 8811, 8405, 5906, + 8811, 8405, 5988, + 8811, 8405, 6402, + 8811, 8405, 6766, + 8811, 8405, 6814, + 8811, 8405, 7016, + 8811, 8405, 7070, + 8811, 8405, 7140, + 8811, 8405, 7268, + 8811, 8405, 7400, + 8811, 8405, 7498, + 8811, 8405, 7780, + 8811, 8405, 7806, + 8811, 8405, 8084, + 8811, 8405, 8110, + 8811, 8405, 8256, + 8811, 8405, 8656, + 8811, 8405, 8698, + 8811, 8405, 8808, + 8811, 8405, 9986, + 8811, 8405, 10278, + 8811, 8405, 10414, + 8811, 8405, 10612, + 8811, 8405, 10690, + 8811, 8405, 10760, + 8811, 8405, 11020, + 8811, 8405, 11100, + 8811, 8405, 11236, + 8811, 8968, + 8811, 9254, + 8811, 9348, + 8811, 9526, + 8811, 9804, + 8811, 10694, + 8811, 10964, + 8811, 10986, + 8811, 11144, + 8811, 11146, + 8849, 5444, + 8849, 6611, 10374, + 8849, 7390, + 8849, 7708, + 8849, 8509, 11098, + 8849, 8509, 12472, + 8849, 9719, 7995, 10476, + 8849, 10260, + 8849, 10677, 761, 6121, 11649, 8758, + 8849, 10677, 761, 7443, 11378, + 8849, 10677, 761, 7995, 10476, + 8849, 10677, 761, 10794, + 8849, 11649, 761, 6121, 8153, 10677, 8758, + 8849, 11649, 761, 6121, 8849, 10677, 8758, + 8865, 5758, + 8869, 2091, 5758, + 8869, 6408, + 8869, 6879, 7593, 8405, 4614, + 8869, 7593, 10, + 8869, 9063, 10, + 8869, 10708, + 8869, 11767, 9063, 12, + 8869, 11767, 9063, 22, + 8869, 11767, 9063, 48, + 8875, 9601, 6505, 5830, + 8900, + 8913, 445, 6623, 9610, + 8923, 10260, + 8927, 10203, 2171, 4388, + 8927, 10203, 2171, 6782, + 8927, 10203, 2171, 7574, + 8927, 10203, 2171, 7686, + 8927, 10203, 2171, 8158, + 8927, 10203, 2171, 9614, + 8927, 10203, 2779, 8200, + 8927, 10203, 2779, 8818, + 8927, 10203, 4201, 8718, + 8927, 10203, 4201, 9258, + 8927, 10203, 4215, 8200, + 8927, 10203, 7509, 9258, + 8927, 10203, 7695, 8200, + 8927, 10203, 7695, 9258, + 8927, 10203, 7695, 10466, + 8939, 9610, + 8975, 428, + 8981, 5758, + 8990, + 9011, 5758, + 9034, + 9039, 93, 8399, 4926, + 9039, 5759, 7282, + 9039, 5759, 8916, + 9039, 5759, 9824, + 9039, 5759, 9870, + 9039, 5759, 9904, + 9039, 5759, 11900, + 9039, 6689, 2170, + 9039, 6689, 2540, + 9039, 6689, 2778, + 9039, 6689, 4200, + 9039, 6689, 4214, + 9039, 6689, 5190, + 9039, 6689, 6260, + 9039, 6689, 6722, + 9039, 6689, 7508, + 9039, 6689, 7694, + 9039, 7469, 4926, + 9039, 7469, 5758, + 9039, 7803, 5759, 8, + 9039, 7803, 5759, 16, + 9039, 7803, 5759, 28, + 9039, 7803, 5759, 40, + 9039, 7803, 5759, 58, + 9039, 7803, 5759, 72, + 9039, 7803, 5759, 92, + 9039, 7803, 5759, 266, + 9039, 7803, 5759, 606, + 9039, 7803, 5759, 9827, 22, + 9039, 7803, 5759, 9827, 34, + 9039, 7803, 5759, 9827, 344, + 9039, 7803, 5759, 9827, 518, + 9039, 8322, + 9039, 8405, 0, + 9039, 8405, 8, + 9039, 8405, 16, + 9039, 8405, 28, + 9039, 8405, 40, + 9039, 8405, 58, + 9039, 8405, 72, + 9039, 8405, 92, + 9039, 8405, 100, + 9039, 8405, 116, + 9039, 8405, 138, + 9039, 8405, 216, + 9039, 8405, 236, + 9039, 8405, 266, + 9039, 8405, 292, + 9039, 8405, 306, + 9039, 8405, 332, + 9039, 8405, 364, + 9039, 8405, 392, + 9039, 8405, 462, + 9039, 8405, 510, + 9039, 8405, 511, 6121, 7121, 10000, + 9039, 8405, 511, 6121, 8473, 10000, + 9039, 8405, 524, + 9039, 8405, 556, + 9039, 8405, 606, + 9039, 8405, 652, + 9039, 8405, 792, + 9039, 8405, 884, + 9039, 8405, 974, + 9039, 8405, 996, + 9039, 8405, 1260, + 9039, 8405, 1512, + 9039, 8405, 1612, + 9039, 8405, 2030, + 9039, 8405, 2076, + 9039, 8405, 2126, + 9039, 8405, 2212, + 9039, 8405, 2410, + 9039, 8405, 2438, + 9039, 8405, 2516, + 9039, 8405, 2566, + 9039, 8405, 2678, + 9039, 8405, 2746, + 9039, 8405, 3110, + 9039, 8405, 4016, + 9039, 8405, 5994, + 9039, 8405, 8357, 556, + 9039, 8405, 9827, 22, + 9039, 8405, 9827, 34, + 9039, 8405, 9827, 344, + 9039, 8405, 9827, 518, + 9039, 9971, 11143, 2170, + 9039, 9971, 11143, 2171, 4853, 5913, 2681, 11932, + 9039, 9971, 11143, 2778, + 9039, 9971, 11143, 4214, + 9039, 9971, 11143, 7694, + 9039, 9971, 11933, 9700, + 9041, 5550, + 9041, 5551, 6121, 8056, + 9042, + 9053, 9575, 6508, + 9053, 9575, 8134, + 9053, 9575, 8136, + 9053, 9575, 8138, + 9053, 9575, 8140, + 9053, 9575, 8142, + 9053, 9575, 8144, + 9053, 9575, 8146, + 9053, 9575, 8148, + 9053, 9575, 9186, + 9053, 9575, 9188, + 9053, 9575, 9190, + 9053, 9575, 9192, + 9053, 9575, 9194, + 9053, 9575, 9196, + 9053, 9575, 9198, + 9053, 9575, 9200, + 9053, 9575, 9202, + 9053, 9575, 9204, + 9053, 9575, 9206, + 9053, 9575, 9208, + 9053, 9575, 9210, + 9053, 9575, 9212, + 9053, 9575, 9214, + 9053, 9575, 9216, + 9053, 9575, 9218, + 9053, 9575, 9220, + 9053, 9575, 9222, + 9053, 9575, 9224, + 9053, 9575, 9226, + 9053, 9575, 9228, + 9053, 9575, 9230, + 9053, 9575, 9232, + 9053, 9575, 9234, + 9053, 9575, 9236, + 9053, 9575, 9238, + 9053, 9575, 9240, + 9053, 9575, 10020, + 9053, 9575, 10022, + 9053, 9575, 10024, + 9053, 9575, 10026, + 9053, 9575, 10028, + 9053, 9575, 10030, + 9053, 9575, 10032, + 9053, 9575, 10034, + 9053, 9575, 10036, + 9053, 9575, 10038, + 9053, 9575, 10040, + 9053, 9575, 10042, + 9053, 9575, 10044, + 9053, 9575, 10046, + 9053, 9575, 10048, + 9053, 9575, 10050, + 9053, 9575, 10052, + 9053, 9575, 10054, + 9053, 9575, 10056, + 9053, 9575, 10058, + 9053, 9575, 10060, + 9053, 9575, 10062, + 9053, 9575, 10064, + 9053, 9575, 10066, + 9053, 9575, 10068, + 9053, 9575, 10070, + 9053, 9575, 10072, + 9053, 9575, 10074, + 9053, 9575, 10076, + 9053, 9575, 10078, + 9053, 9575, 10080, + 9053, 9575, 10082, + 9053, 9575, 10084, + 9053, 9575, 10086, + 9053, 9575, 10088, + 9053, 9575, 10090, + 9053, 9575, 10092, + 9053, 9575, 10094, + 9053, 9575, 10096, + 9053, 9575, 10098, + 9053, 9575, 10100, + 9053, 9575, 10102, + 9053, 9575, 10104, + 9053, 9575, 10106, + 9053, 9575, 10108, + 9053, 9575, 10110, + 9053, 9575, 10112, + 9053, 9575, 10114, + 9053, 9575, 10116, + 9053, 9575, 10118, + 9053, 9575, 10120, + 9053, 9575, 10122, + 9053, 9575, 10124, + 9053, 9575, 10126, + 9053, 9575, 10128, + 9053, 9575, 10130, + 9053, 9575, 10818, + 9053, 9575, 10820, + 9053, 9575, 10822, + 9053, 9575, 10824, + 9053, 9575, 10826, + 9053, 9575, 10828, + 9053, 9575, 10830, + 9053, 9575, 10832, + 9053, 9575, 10834, + 9053, 9575, 10836, + 9053, 9575, 10838, + 9053, 9575, 10840, + 9053, 9575, 10842, + 9053, 9575, 10844, + 9053, 9575, 10846, + 9053, 9575, 10848, + 9053, 9575, 10850, + 9053, 9575, 10852, + 9053, 9575, 10854, + 9053, 9575, 10856, + 9053, 9575, 10858, + 9053, 9575, 10860, + 9053, 9575, 10862, + 9053, 9575, 10864, + 9053, 9575, 10866, + 9053, 9575, 10868, + 9053, 9575, 10870, + 9053, 9575, 10872, + 9053, 9575, 10874, + 9053, 9575, 10876, + 9053, 9575, 10878, + 9053, 9575, 10880, + 9053, 9575, 10882, + 9053, 9575, 10884, + 9053, 9575, 10886, + 9053, 9575, 10888, + 9053, 9575, 10890, + 9053, 9575, 10892, + 9053, 9575, 10894, + 9053, 9575, 10896, + 9053, 9575, 10898, + 9053, 9575, 10900, + 9053, 9575, 10902, + 9053, 9575, 10904, + 9053, 9575, 10906, + 9053, 9575, 10908, + 9053, 9575, 10910, + 9053, 9575, 10912, + 9053, 9575, 10914, + 9053, 9575, 10916, + 9053, 9575, 10918, + 9053, 9575, 10920, + 9053, 9575, 10922, + 9053, 9575, 10924, + 9053, 9575, 10926, + 9053, 9575, 10928, + 9053, 9575, 10930, + 9053, 9575, 10932, + 9053, 9575, 10934, + 9053, 9575, 10936, + 9053, 9575, 10938, + 9053, 9575, 10940, + 9053, 9575, 10942, + 9053, 9575, 10944, + 9053, 9575, 10946, + 9053, 9575, 10948, + 9053, 9575, 10950, + 9053, 9575, 10952, + 9053, 9575, 10954, + 9053, 9575, 10956, + 9053, 9575, 11490, + 9053, 9575, 11492, + 9053, 9575, 11494, + 9053, 9575, 11496, + 9053, 9575, 11498, + 9053, 9575, 11500, + 9053, 9575, 11502, + 9053, 9575, 11504, + 9053, 9575, 11506, + 9053, 9575, 11508, + 9053, 9575, 11510, + 9053, 9575, 11512, + 9053, 9575, 11514, + 9053, 9575, 11516, + 9053, 9575, 11518, + 9053, 9575, 11520, + 9053, 9575, 11522, + 9053, 9575, 11524, + 9053, 9575, 11526, + 9053, 9575, 11528, + 9053, 9575, 11530, + 9053, 9575, 11532, + 9053, 9575, 11534, + 9053, 9575, 11536, + 9053, 9575, 11538, + 9053, 9575, 11540, + 9053, 9575, 11542, + 9053, 9575, 11544, + 9053, 9575, 11546, + 9053, 9575, 11548, + 9053, 9575, 11550, + 9053, 9575, 11552, + 9053, 9575, 11554, + 9053, 9575, 11556, + 9053, 9575, 11558, + 9053, 9575, 11560, + 9053, 9575, 11562, + 9053, 9575, 11564, + 9053, 9575, 11566, + 9053, 9575, 11568, + 9053, 9575, 11570, + 9053, 9575, 11572, + 9053, 9575, 11574, + 9053, 9575, 11576, + 9053, 9575, 11578, + 9053, 9575, 11580, + 9053, 9575, 11582, + 9053, 9575, 11584, + 9053, 9575, 11586, + 9053, 9575, 11588, + 9053, 9575, 11590, + 9053, 9575, 11592, + 9053, 9575, 11594, + 9053, 9575, 11596, + 9053, 9575, 11598, + 9053, 9575, 11600, + 9053, 9575, 11950, + 9053, 9575, 11952, + 9053, 9575, 11954, + 9053, 9575, 11956, + 9053, 9575, 11958, + 9053, 9575, 11960, + 9053, 9575, 11962, + 9053, 9575, 11964, + 9053, 9575, 11966, + 9053, 9575, 11968, + 9053, 9575, 11970, + 9053, 9575, 11972, + 9053, 9575, 11974, + 9053, 9575, 11976, + 9053, 9575, 11978, + 9053, 9575, 11980, + 9053, 9575, 11982, + 9053, 9575, 11984, + 9053, 9575, 11986, + 9053, 9575, 11988, + 9053, 9575, 11990, + 9053, 9575, 11992, + 9053, 9575, 11994, + 9053, 9575, 11996, + 9053, 9575, 11998, + 9053, 9575, 12000, + 9053, 9575, 12002, + 9053, 9575, 12004, + 9053, 9575, 12444, + 9053, 9575, 12446, + 9053, 9575, 12448, + 9053, 9575, 12450, + 9053, 9575, 12452, + 9053, 9575, 12454, + 9053, 9575, 12456, + 9053, 9575, 12458, + 9053, 9575, 12926, + 9069, 5758, + 9072, + 9095, 1045, 10374, + 9095, 3992, + 9095, 5385, 8037, 6723, 9601, 5830, + 9095, 5444, + 9095, 5551, 10374, + 9095, 6689, 2170, + 9095, 6689, 2540, + 9095, 6689, 2778, + 9095, 6689, 4200, + 9095, 6689, 4214, + 9095, 6689, 5190, + 9095, 6689, 6260, + 9095, 6689, 6722, + 9095, 6689, 7508, + 9095, 6689, 7694, + 9095, 6909, 7821, 11765, 6434, + 9095, 7089, 7593, 8405, 0, + 9095, 7089, 7593, 8405, 2, + 9095, 7089, 7593, 8405, 4, + 9095, 7089, 7593, 8405, 6, + 9095, 7089, 7593, 8405, 8, + 9095, 7089, 7593, 8405, 10, + 9095, 7089, 7593, 8405, 12, + 9095, 7089, 7593, 8405, 14, + 9095, 7089, 7593, 8405, 16, + 9095, 7089, 7593, 8405, 18, + 9095, 7089, 7593, 8405, 20, + 9095, 7089, 7593, 8405, 22, + 9095, 7089, 7593, 8405, 24, + 9095, 7089, 7593, 8405, 26, + 9095, 7089, 7593, 8405, 28, + 9095, 7089, 7593, 8405, 30, + 9095, 7089, 7593, 8405, 32, + 9095, 7089, 7593, 8405, 34, + 9095, 7089, 7593, 8405, 36, + 9095, 7089, 7593, 8405, 38, + 9095, 7089, 7593, 8405, 40, + 9095, 7089, 7593, 8405, 42, + 9095, 7089, 7593, 8405, 44, + 9095, 7089, 7593, 8405, 46, + 9095, 7089, 7593, 8405, 48, + 9095, 7089, 7593, 8405, 50, + 9095, 7089, 9063, 8405, 0, + 9095, 7089, 9063, 8405, 2, + 9095, 7089, 9063, 8405, 4, + 9095, 7089, 9063, 8405, 6, + 9095, 7089, 9063, 8405, 8, + 9095, 7089, 9063, 8405, 10, + 9095, 7089, 9063, 8405, 12, + 9095, 7089, 9063, 8405, 14, + 9095, 7089, 9063, 8405, 16, + 9095, 7089, 9063, 8405, 18, + 9095, 7089, 9063, 8405, 20, + 9095, 7089, 9063, 8405, 22, + 9095, 7089, 9063, 8405, 24, + 9095, 7089, 9063, 8405, 26, + 9095, 7089, 9063, 8405, 28, + 9095, 7089, 9063, 8405, 30, + 9095, 7089, 9063, 8405, 32, + 9095, 7089, 9063, 8405, 34, + 9095, 7089, 9063, 8405, 36, + 9095, 7089, 9063, 8405, 38, + 9095, 7089, 9063, 8405, 40, + 9095, 7089, 9063, 8405, 42, + 9095, 7089, 9063, 8405, 44, + 9095, 7089, 9063, 8405, 46, + 9095, 7089, 9063, 8405, 48, + 9095, 7089, 9063, 8405, 50, + 9095, 7172, + 9095, 7710, + 9095, 7821, 5830, + 9095, 7821, 8022, + 9095, 8022, + 9095, 8166, + 9095, 8287, 5770, + 9095, 8287, 5771, 0, + 9095, 8287, 6594, + 9095, 8287, 6595, 0, + 9095, 8287, 6912, + 9095, 8287, 6913, 0, + 9095, 8287, 6982, + 9095, 8287, 6983, 0, + 9095, 8287, 6983, 40, + 9095, 8287, 7166, + 9095, 8287, 7167, 0, + 9095, 8287, 7244, + 9095, 8287, 7245, 0, + 9095, 8287, 7372, + 9095, 8287, 7373, 0, + 9095, 8287, 7440, + 9095, 8287, 7441, 0, + 9095, 8287, 8362, + 9095, 8287, 8363, 0, + 9095, 8287, 8828, + 9095, 8287, 8829, 0, + 9095, 8287, 9086, + 9095, 8287, 9087, 0, + 9095, 8287, 9400, + 9095, 8287, 9401, 0, + 9095, 8287, 9588, + 9095, 8287, 9589, 0, + 9095, 8287, 9780, + 9095, 8287, 9781, 0, + 9095, 8371, 10759, 7014, + 9095, 8371, 10759, 8040, + 9095, 8525, 2670, + 9095, 8525, 6784, + 9095, 8525, 6804, + 9095, 8525, 6805, 2170, + 9095, 8525, 6805, 2540, + 9095, 8525, 6805, 2778, + 9095, 8525, 6805, 4200, + 9095, 8525, 6805, 4214, + 9095, 8525, 6805, 5190, + 9095, 8525, 6805, 6722, + 9095, 8525, 6805, 7508, + 9095, 8525, 6805, 7694, + 9095, 8525, 8162, + 9095, 8525, 8820, + 9095, 8525, 8821, 2170, + 9095, 8525, 8821, 2540, + 9095, 8525, 8821, 2778, + 9095, 8525, 8821, 4200, + 9095, 8525, 8821, 4214, + 9095, 8525, 8821, 5190, + 9095, 8525, 8821, 6722, + 9095, 8525, 8821, 7508, + 9095, 8525, 8821, 7694, + 9095, 8525, 8874, + 9095, 8525, 8876, + 9095, 8525, 8877, 2170, + 9095, 8525, 8877, 2540, + 9095, 8525, 8877, 2778, + 9095, 8525, 8877, 4200, + 9095, 8525, 8877, 4214, + 9095, 8525, 8877, 5190, + 9095, 8525, 8877, 6722, + 9095, 8525, 8877, 7508, + 9095, 8525, 8877, 7694, + 9095, 8525, 9286, + 9095, 8525, 9700, + 9095, 8525, 10150, + 9095, 8525, 10200, + 9095, 8525, 10360, + 9095, 8525, 10622, + 9095, 8525, 11232, + 9095, 8609, 4926, + 9095, 9633, 9718, + 9095, 9899, 10374, + 9095, 10017, 5758, + 9095, 10017, 7580, + 9095, 10283, 0, + 9095, 10283, 8, + 9095, 10283, 16, + 9095, 10283, 28, + 9095, 10283, 40, + 9095, 10283, 236, + 9095, 10283, 238, + 9095, 10283, 242, + 9095, 10283, 246, + 9095, 10283, 250, + 9095, 10283, 306, + 9095, 10283, 310, + 9095, 10283, 314, + 9095, 10283, 322, + 9095, 10283, 326, + 9095, 10283, 364, + 9095, 10283, 368, + 9095, 10283, 374, + 9095, 10283, 380, + 9095, 10283, 384, + 9095, 10283, 392, + 9095, 10283, 396, + 9095, 10283, 404, + 9095, 10283, 412, + 9095, 10283, 416, + 9095, 10283, 510, + 9095, 10283, 512, + 9095, 10283, 514, + 9095, 10283, 516, + 9095, 10283, 520, + 9095, 10283, 524, + 9095, 10283, 526, + 9095, 10283, 532, + 9095, 10283, 536, + 9095, 10283, 546, + 9095, 10283, 556, + 9095, 10283, 560, + 9095, 10283, 564, + 9095, 10283, 568, + 9095, 10283, 576, + 9095, 10283, 622, + 9095, 10283, 626, + 9095, 10283, 630, + 9095, 10283, 632, + 9095, 10283, 652, + 9095, 10283, 660, + 9095, 10283, 664, + 9095, 10410, + 9095, 10643, 4116, + 9095, 10677, 760, + 9095, 11043, 1808, + 9095, 11043, 2170, + 9095, 11043, 2540, + 9095, 11043, 2586, + 9095, 11043, 2670, + 9095, 11043, 2778, + 9095, 11043, 3956, + 9095, 11043, 4194, + 9095, 11043, 4200, + 9095, 11043, 4214, + 9095, 11043, 4396, + 9095, 11043, 4422, + 9095, 11043, 4620, + 9095, 11043, 4848, + 9095, 11043, 4922, + 9095, 11043, 5012, + 9095, 11043, 5046, + 9095, 11043, 5190, + 9095, 11043, 5540, + 9095, 11043, 6122, + 9095, 11043, 6716, + 9095, 11043, 6722, + 9095, 11043, 7072, + 9095, 11043, 7146, + 9095, 11043, 7246, + 9095, 11043, 7392, + 9095, 11043, 7442, + 9095, 11043, 7508, + 9095, 11043, 7640, + 9095, 11043, 7646, + 9095, 11043, 7694, + 9095, 11043, 7812, + 9095, 11043, 8036, + 9095, 11043, 8196, + 9095, 11043, 8682, + 9095, 11043, 9122, + 9095, 11043, 9714, + 9095, 11043, 9724, + 9095, 11043, 9862, + 9095, 11043, 10328, + 9095, 11043, 10478, + 9095, 11043, 10484, + 9095, 11043, 10576, + 9095, 11043, 10726, + 9095, 11043, 10980, + 9095, 11043, 10992, + 9095, 11043, 11266, + 9095, 11043, 11612, + 9095, 11043, 13050, + 9095, 11098, + 9095, 11649, 761, 6121, 7272, + 9095, 12472, + 9095, 12990, + 9095, 13061, 5759, 6121, 11449, 7908, + 9095, 13411, 10017, 5758, + 9109, 7666, + 9115, 10260, + 9127, 8770, + 9137, 10585, 0, + 9137, 10585, 8, + 9137, 10585, 16, + 9137, 10585, 28, + 9137, 10585, 40, + 9137, 10585, 292, + 9137, 10585, 298, + 9137, 10585, 306, + 9137, 10585, 310, + 9137, 10585, 314, + 9137, 10585, 322, + 9137, 10585, 326, + 9137, 10585, 332, + 9137, 10585, 336, + 9137, 10585, 340, + 9137, 10585, 350, + 9137, 10585, 354, + 9137, 10585, 364, + 9137, 10585, 368, + 9137, 10585, 374, + 9137, 10585, 380, + 9137, 10585, 384, + 9137, 10585, 392, + 9137, 10585, 396, + 9137, 10585, 404, + 9137, 10585, 412, + 9137, 10585, 416, + 9137, 10585, 462, + 9137, 10585, 468, + 9137, 10585, 476, + 9137, 10585, 480, + 9137, 10585, 486, + 9137, 10585, 510, + 9137, 10585, 512, + 9137, 10585, 514, + 9137, 10585, 516, + 9137, 10585, 520, + 9137, 10585, 524, + 9137, 10585, 526, + 9137, 10585, 532, + 9137, 10585, 536, + 9137, 10585, 546, + 9137, 10585, 556, + 9137, 10585, 560, + 9137, 10585, 564, + 9137, 10585, 568, + 9137, 10585, 576, + 9137, 10585, 622, + 9137, 10585, 626, + 9137, 10585, 630, + 9137, 10585, 632, + 9137, 10585, 638, + 9137, 10585, 640, + 9137, 10585, 670, + 9137, 10585, 678, + 9151, 11229, 1611, 8774, + 9155, 7593, 8405, 14, + 9155, 7593, 8405, 98, + 9155, 7593, 8405, 164, + 9155, 7593, 8405, 172, + 9155, 7593, 8405, 174, + 9155, 7593, 8405, 176, + 9155, 7593, 8405, 182, + 9155, 7593, 8405, 184, + 9155, 7593, 8405, 192, + 9155, 7593, 8405, 432, + 9155, 7593, 8405, 454, + 9155, 7593, 8405, 634, + 9155, 7593, 8405, 778, + 9155, 7593, 8405, 984, + 9155, 7593, 8405, 1110, + 9155, 7593, 8405, 1124, + 9155, 7593, 8405, 1130, + 9155, 7593, 8405, 1226, + 9155, 7593, 8405, 1506, + 9155, 7593, 8405, 1596, + 9155, 7593, 8405, 2204, + 9155, 7593, 8405, 2666, + 9155, 7593, 8405, 2856, + 9155, 7593, 8405, 3050, + 9155, 7593, 8405, 3138, + 9155, 7593, 8405, 3890, + 9155, 7593, 8405, 4895, 0, + 9155, 7593, 8405, 4895, 8, + 9155, 7593, 8405, 4895, 16, + 9155, 7593, 8405, 4895, 28, + 9155, 7593, 8405, 4895, 70, + 9155, 7593, 8405, 4895, 440, + 9155, 7593, 8405, 5914, + 9155, 7593, 8405, 6274, + 9155, 7593, 8405, 7551, 0, + 9155, 7593, 8405, 7551, 8, + 9155, 7593, 8405, 7551, 16, + 9155, 7593, 8405, 7551, 28, + 9155, 7593, 8405, 7551, 70, + 9155, 7593, 8405, 7551, 440, + 9155, 9063, 8405, 14, + 9155, 9063, 8405, 98, + 9155, 9063, 8405, 164, + 9155, 9063, 8405, 172, + 9155, 9063, 8405, 174, + 9155, 9063, 8405, 176, + 9155, 9063, 8405, 182, + 9155, 9063, 8405, 184, + 9155, 9063, 8405, 192, + 9155, 9063, 8405, 432, + 9155, 9063, 8405, 454, + 9155, 9063, 8405, 634, + 9155, 9063, 8405, 778, + 9155, 9063, 8405, 984, + 9155, 9063, 8405, 1110, + 9155, 9063, 8405, 1124, + 9155, 9063, 8405, 1130, + 9155, 9063, 8405, 1226, + 9155, 9063, 8405, 1506, + 9155, 9063, 8405, 1596, + 9155, 9063, 8405, 2204, + 9155, 9063, 8405, 2666, + 9155, 9063, 8405, 2856, + 9155, 9063, 8405, 3050, + 9155, 9063, 8405, 3138, + 9155, 9063, 8405, 3890, + 9155, 9063, 8405, 4895, 0, + 9155, 9063, 8405, 4895, 8, + 9155, 9063, 8405, 4895, 16, + 9155, 9063, 8405, 4895, 28, + 9155, 9063, 8405, 4895, 70, + 9155, 9063, 8405, 4895, 440, + 9155, 9063, 8405, 5914, + 9155, 9063, 8405, 6274, + 9155, 9063, 8405, 7551, 0, + 9155, 9063, 8405, 7551, 8, + 9155, 9063, 8405, 7551, 16, + 9155, 9063, 8405, 7551, 28, + 9155, 9063, 8405, 7551, 70, + 9155, 9063, 8405, 7551, 440, + 9159, 6121, 2725, 4389, 6504, + 9159, 6121, 4849, 4389, 6504, + 9159, 6121, 7443, 4389, 6504, + 9159, 6121, 8005, 4389, 6504, + 9159, 10374, + 9171, 9095, 11767, 6689, 2170, + 9171, 9095, 11767, 6689, 2540, + 9171, 9095, 11767, 6689, 2778, + 9171, 9095, 11767, 6689, 4200, + 9171, 9095, 11767, 6689, 4214, + 9171, 9095, 11767, 6689, 5190, + 9171, 9095, 11767, 6689, 6722, + 9171, 9095, 11767, 6689, 7508, + 9171, 9095, 11767, 6689, 7694, + 9171, 9095, 11767, 8525, 2670, + 9171, 10357, 9095, 6689, 2170, + 9171, 10357, 9095, 6689, 2540, + 9171, 10357, 9095, 6689, 2778, + 9171, 10357, 9095, 6689, 4200, + 9171, 10357, 9095, 6689, 4214, + 9171, 10357, 9095, 6689, 5190, + 9171, 10357, 9095, 6689, 6722, + 9171, 10357, 9095, 6689, 7508, + 9171, 10357, 9095, 6689, 7694, + 9171, 10357, 9095, 8525, 2670, + 9171, 10357, 9095, 11767, 6689, 2170, + 9171, 10357, 9095, 11767, 6689, 2540, + 9171, 10357, 9095, 11767, 6689, 2778, + 9171, 10357, 9095, 11767, 6689, 4200, + 9171, 10357, 9095, 11767, 6689, 4214, + 9171, 10357, 9095, 11767, 6689, 5190, + 9171, 10357, 9095, 11767, 6689, 6722, + 9171, 10357, 9095, 11767, 6689, 7508, + 9171, 10357, 9095, 11767, 6689, 7694, + 9171, 10357, 9095, 11767, 8525, 2670, + 9180, + 9183, 8774, + 9243, 4923, 5758, + 9243, 8197, 5758, + 9245, 5758, + 9263, 428, + 9263, 429, 6121, 1045, 6376, + 9263, 429, 6121, 2779, 11649, 9744, + 9263, 429, 6121, 4895, 11649, 8758, + 9263, 429, 6121, 9546, + 9263, 429, 6121, 10666, + 9263, 429, 6121, 10677, 761, 91, 1109, 429, 11649, 8758, + 9263, 429, 9537, 9810, + 9263, 429, 9537, 10958, + 9279, 10001, 9967, 7271, 4153, 6434, + 9279, 10001, 9967, 8649, 10000, + 9288, + 9292, + 9297, 2830, + 9317, 5758, + 9325, 5759, 10400, + 9325, 7803, 5759, 16, + 9325, 7803, 5759, 40, + 9325, 8405, 0, + 9325, 8405, 16, + 9325, 8405, 40, + 9325, 8405, 100, + 9325, 8405, 138, + 9325, 8405, 216, + 9325, 8405, 236, + 9325, 8405, 306, + 9325, 8405, 332, + 9325, 8405, 364, + 9325, 8405, 392, + 9325, 8405, 462, + 9325, 8405, 510, + 9325, 8405, 524, + 9325, 8405, 556, + 9325, 8405, 622, + 9325, 8405, 652, + 9325, 8405, 2030, + 9343, 5758, + 9361, 7931, 4213, 9680, + 9361, 11345, 10582, + 9367, 7821, 8056, + 9367, 8022, + 9380, + 9385, 73, 8399, 4926, + 9385, 5759, 7282, + 9385, 5759, 8916, + 9385, 5759, 9824, + 9385, 5759, 9870, + 9385, 5759, 9904, + 9385, 5759, 12066, + 9385, 5759, 12384, + 9385, 6689, 2170, + 9385, 6689, 2540, + 9385, 6689, 2778, + 9385, 6689, 4200, + 9385, 6689, 4214, + 9385, 6689, 5190, + 9385, 6689, 6260, + 9385, 6689, 6722, + 9385, 6689, 7508, + 9385, 6689, 7694, + 9385, 7803, 5759, 8, + 9385, 7803, 5759, 16, + 9385, 7803, 5759, 28, + 9385, 7803, 5759, 40, + 9385, 7803, 5759, 58, + 9385, 7803, 5759, 72, + 9385, 7803, 5759, 92, + 9385, 7803, 5759, 162, + 9385, 7803, 5759, 266, + 9385, 7803, 5759, 440, + 9385, 7803, 5759, 606, + 9385, 7803, 5759, 9827, 22, + 9385, 7803, 5759, 9827, 34, + 9385, 7803, 5759, 9827, 344, + 9385, 7803, 5759, 9827, 518, + 9385, 8399, 4926, + 9385, 8405, 0, + 9385, 8405, 8, + 9385, 8405, 16, + 9385, 8405, 28, + 9385, 8405, 40, + 9385, 8405, 58, + 9385, 8405, 72, + 9385, 8405, 92, + 9385, 8405, 100, + 9385, 8405, 116, + 9385, 8405, 138, + 9385, 8405, 162, + 9385, 8405, 196, + 9385, 8405, 216, + 9385, 8405, 236, + 9385, 8405, 266, + 9385, 8405, 292, + 9385, 8405, 306, + 9385, 8405, 332, + 9385, 8405, 364, + 9385, 8405, 392, + 9385, 8405, 440, + 9385, 8405, 462, + 9385, 8405, 510, + 9385, 8405, 524, + 9385, 8405, 556, + 9385, 8405, 606, + 9385, 8405, 610, + 9385, 8405, 652, + 9385, 8405, 792, + 9385, 8405, 884, + 9385, 8405, 974, + 9385, 8405, 996, + 9385, 8405, 1260, + 9385, 8405, 1512, + 9385, 8405, 1612, + 9385, 8405, 1796, + 9385, 8405, 2030, + 9385, 8405, 2076, + 9385, 8405, 2126, + 9385, 8405, 2212, + 9385, 8405, 2438, + 9385, 8405, 2516, + 9385, 8405, 2566, + 9385, 8405, 2678, + 9385, 8405, 2746, + 9385, 8405, 4016, + 9385, 8405, 5994, + 9385, 8405, 9827, 22, + 9385, 8405, 9827, 34, + 9385, 8405, 9827, 344, + 9385, 8405, 9827, 518, + 9431, 11103, 5758, + 9437, 444, + 9437, 445, 6121, 1045, 6376, + 9437, 445, 6121, 8153, 9546, + 9437, 445, 6121, 8153, 10666, + 9437, 445, 6121, 8473, 5832, + 9437, 445, 6121, 11649, 3992, + 9437, 445, 12105, 9437, 720, + 9437, 720, + 9437, 721, 6121, 1045, 6376, + 9437, 721, 6121, 8153, 9546, + 9437, 721, 6121, 8153, 10666, + 9437, 721, 6121, 8473, 5832, + 9437, 721, 6121, 10666, + 9437, 721, 6121, 11649, 3992, + 9438, + 9439, 9177, 115, 11649, 5606, + 9443, 5941, 2171, 429, 9020, + 9443, 5941, 2171, 429, 9096, + 9443, 5941, 2171, 429, 11446, + 9443, 5941, 2401, 8154, + 9443, 5941, 2541, 429, 9020, + 9443, 5941, 2541, 429, 9096, + 9443, 5941, 2541, 429, 11446, + 9443, 5941, 2779, 429, 9020, + 9443, 5941, 2779, 429, 9096, + 9443, 5941, 2779, 429, 11446, + 9443, 5941, 3696, + 9443, 5941, 4153, 6116, + 9443, 5941, 4201, 429, 9020, + 9443, 5941, 4201, 429, 9096, + 9443, 5941, 4201, 429, 11446, + 9443, 5941, 4215, 429, 9020, + 9443, 5941, 4215, 429, 9096, + 9443, 5941, 4215, 429, 11446, + 9443, 5941, 5191, 429, 9020, + 9443, 5941, 5191, 429, 9096, + 9443, 5941, 5191, 429, 11446, + 9443, 5941, 5442, + 9443, 5941, 6113, 6116, + 9443, 5941, 6723, 429, 9020, + 9443, 5941, 6723, 429, 9096, + 9443, 5941, 6723, 429, 11446, + 9443, 5941, 6881, 8154, + 9443, 5941, 7010, + 9443, 5941, 7271, 6116, + 9443, 5941, 7509, 429, 9020, + 9443, 5941, 7509, 429, 9096, + 9443, 5941, 7509, 429, 11446, + 9443, 5941, 7607, 6116, + 9443, 5941, 7695, 429, 9020, + 9443, 5941, 7695, 429, 9096, + 9443, 5941, 7695, 429, 11446, + 9443, 5941, 7821, 8154, + 9443, 5941, 7960, + 9443, 5941, 7974, + 9443, 5941, 8546, + 9443, 5941, 8738, + 9443, 5941, 8766, + 9443, 5941, 8934, + 9443, 5941, 12912, + 9453, 6622, + 9472, + 9475, 11649, 10154, + 9483, 8775, 5, 3946, + 9483, 8775, 11, 3946, + 9483, 8775, 11, 3947, 8553, 3254, + 9483, 8775, 11, 3947, 8553, 6468, + 9483, 8775, 13, 3946, + 9483, 8775, 13, 3947, 8553, 3254, + 9483, 8775, 13, 3947, 8553, 6468, + 9483, 8775, 47, 10366, + 9483, 8775, 50, + 9483, 8775, 139, 3846, + 9483, 8775, 570, + 9483, 8775, 933, 5942, + 9483, 8775, 961, 7500, + 9483, 8775, 1109, 429, 8750, + 9483, 8775, 1109, 2690, + 9483, 8775, 1109, 3760, + 9483, 8775, 1109, 5776, + 9483, 8775, 1109, 8584, + 9483, 8775, 2171, 9345, 13031, 5244, + 9483, 8775, 2171, 9345, 13031, 5540, + 9483, 8775, 2211, 11838, + 9483, 8775, 3950, + 9483, 8775, 3984, + 9483, 8775, 3985, 718, + 9483, 8775, 4121, 8058, + 9483, 8775, 4121, 8060, + 9483, 8775, 4205, 600, + 9483, 8775, 4205, 4116, + 9483, 8775, 4227, 6504, + 9483, 8775, 4227, 7820, + 9483, 8775, 4389, 5244, + 9483, 8775, 4389, 5540, + 9483, 8775, 4389, 7351, 4926, + 9483, 8775, 4849, 8641, 5758, + 9483, 8775, 5013, 10367, 6504, + 9483, 8775, 5013, 10367, 7820, + 9483, 8775, 5281, 10366, + 9483, 8775, 5445, 10366, + 9483, 8775, 6020, + 9483, 8775, 6021, 600, + 9483, 8775, 6021, 7580, + 9483, 8775, 6093, 10366, + 9483, 8775, 6121, 12018, + 9483, 8775, 6485, 2690, + 9483, 8775, 6485, 3760, + 9483, 8775, 6485, 5776, + 9483, 8775, 6485, 8584, + 9483, 8775, 6514, + 9483, 8775, 6516, + 9483, 8775, 6620, + 9483, 8775, 6789, 9022, + 9483, 8775, 6802, + 9483, 8775, 6869, 5245, 413, 7580, + 9483, 8775, 6869, 5245, 7580, + 9483, 8775, 7112, + 9483, 8775, 7113, 10423, 5540, + 9483, 8775, 7113, 11659, 5540, + 9483, 8775, 7150, + 9483, 8775, 7191, 5540, + 9483, 8775, 7351, 601, 4926, + 9483, 8775, 7351, 4926, + 9483, 8775, 7368, + 9483, 8775, 7443, 8641, 5758, + 9483, 8775, 7500, + 9483, 8775, 7519, 600, + 9483, 8775, 7519, 4116, + 9483, 8775, 7551, 9022, + 9483, 8775, 7796, + 9483, 8775, 7823, 5244, + 9483, 8775, 7823, 5540, + 9483, 8775, 8011, 4926, + 9483, 8775, 8012, + 9483, 8775, 8013, 5540, + 9483, 8775, 8057, 47, 10366, + 9483, 8775, 8062, + 9483, 8775, 8073, 5942, + 9483, 8775, 8097, 9022, + 9483, 8775, 8101, 7580, + 9483, 8775, 8153, 4204, + 9483, 8775, 8153, 7518, + 9483, 8775, 8153, 9022, + 9483, 8775, 8159, 5244, + 9483, 8775, 8159, 5540, + 9483, 8775, 8458, + 9483, 8775, 8478, + 9483, 8775, 8479, 5540, + 9483, 8775, 8479, 6504, + 9483, 8775, 8553, 3254, + 9483, 8775, 8553, 6468, + 9483, 8775, 8641, 4112, + 9483, 8775, 8717, 9022, + 9483, 8775, 8745, 2, + 9483, 8775, 8745, 10367, 6504, + 9483, 8775, 8745, 10367, 7820, + 9483, 8775, 8760, + 9483, 8775, 8805, 11167, 925, 11739, 10422, + 9483, 8775, 8805, 11167, 925, 11739, 10423, 12438, + 9483, 8775, 8805, 11167, 925, 11739, 11658, + 9483, 8775, 8805, 12051, 925, 11739, 10422, + 9483, 8775, 8805, 12051, 925, 11739, 11658, + 9483, 8775, 8805, 12051, 925, 11739, 11659, 12438, + 9483, 8775, 8805, 12051, 925, 11739, 11659, 12440, + 9483, 8775, 8805, 12051, 925, 11739, 11659, 12442, + 9483, 8775, 9050, + 9483, 8775, 9060, + 9483, 8775, 9105, 10367, 6504, + 9483, 8775, 9105, 10367, 7820, + 9483, 8775, 9284, + 9483, 8775, 9285, 6490, + 9483, 8775, 9491, 600, + 9483, 8775, 9491, 4116, + 9483, 8775, 9598, + 9483, 8775, 9615, 5244, + 9483, 8775, 9615, 5540, + 9483, 8775, 9615, 5965, 4204, + 9483, 8775, 9615, 5965, 7518, + 9483, 8775, 9633, 6789, 9022, + 9483, 8775, 9950, + 9483, 8775, 10189, 11366, + 9483, 8775, 10189, 11368, + 9483, 8775, 10189, 11370, + 9483, 8775, 10267, 6020, + 9483, 8775, 10349, 9467, 5540, + 9483, 8775, 10367, 6504, + 9483, 8775, 10373, 7626, + 9483, 8775, 10381, 10554, + 9483, 8775, 10381, 10556, + 9483, 8775, 10381, 10558, + 9483, 8775, 10381, 10560, + 9483, 8775, 10381, 10562, + 9483, 8775, 10381, 10564, + 9483, 8775, 10381, 10566, + 9483, 8775, 10381, 10568, + 9483, 8775, 10381, 10570, + 9483, 8775, 10381, 11252, + 9483, 8775, 10381, 11254, + 9483, 8775, 10483, 10182, + 9483, 8775, 10483, 10184, + 9483, 8775, 10483, 10186, + 9483, 8775, 10527, 7626, + 9483, 8775, 10634, + 9483, 8775, 10635, 11212, + 9483, 8775, 10643, 10367, 601, 6504, + 9483, 8775, 10643, 10367, 601, 7443, 6504, + 9483, 8775, 10643, 10367, 601, 7443, 7820, + 9483, 8775, 10643, 10367, 601, 7820, + 9483, 8775, 10643, 10367, 4117, 6504, + 9483, 8775, 10643, 10367, 4117, 7820, + 9483, 8775, 10643, 10367, 4849, 6504, + 9483, 8775, 10643, 10367, 4849, 7820, + 9483, 8775, 10643, 10367, 7443, 6504, + 9483, 8775, 10643, 10367, 7443, 7820, + 9483, 8775, 10659, 7626, + 9483, 8775, 10767, 601, 824, + 9483, 8775, 10767, 2418, + 9483, 8775, 10767, 3772, + 9483, 8775, 10767, 4104, + 9483, 8775, 10767, 4117, 824, + 9483, 8775, 10767, 4206, + 9483, 8775, 10767, 5779, 11174, + 9483, 8775, 10767, 5832, + 9483, 8775, 10767, 7116, + 9483, 8775, 10767, 7596, + 9483, 8775, 10767, 7908, + 9483, 8775, 10767, 8153, 8844, + 9483, 8775, 10767, 8210, + 9483, 8775, 10767, 8212, + 9483, 8775, 10767, 8214, + 9483, 8775, 10767, 8216, + 9483, 8775, 10767, 8218, + 9483, 8775, 10767, 8806, + 9483, 8775, 10767, 8849, 8844, + 9483, 8775, 10767, 9458, + 9483, 8775, 10767, 10236, + 9483, 8775, 10767, 10534, + 9483, 8775, 10767, 11366, + 9483, 8775, 10767, 11368, + 9483, 8775, 10767, 11370, + 9483, 8775, 10767, 12407, 1044, + 9483, 8775, 10767, 12871, 5832, + 9483, 8775, 10767, 13016, + 9483, 8775, 10767, 13184, + 9483, 8775, 10767, 13340, + 9483, 8775, 10784, + 9483, 8775, 10995, 7626, + 9483, 8775, 11005, 7626, + 9483, 8775, 11019, 600, + 9483, 8775, 11019, 4116, + 9483, 8775, 11027, 5, 3946, + 9483, 8775, 11027, 11, 3946, + 9483, 8775, 11176, + 9483, 8775, 11177, 8220, + 9483, 8775, 11220, + 9483, 8775, 11221, 8220, + 9483, 8775, 11241, 5244, + 9483, 8775, 11241, 5540, + 9483, 8775, 11429, 600, + 9483, 8775, 11429, 4116, + 9483, 8775, 11789, 5540, + 9483, 8775, 11789, 6504, + 9483, 8775, 11789, 7820, + 9483, 8775, 11795, 5540, + 9483, 8775, 11795, 6504, + 9483, 8775, 11795, 7820, + 9483, 8775, 11821, 11006, + 9483, 8775, 11857, 7626, + 9483, 8775, 11928, + 9483, 8775, 12023, 11006, + 9483, 8775, 12028, + 9483, 8775, 12092, + 9483, 8775, 12115, 10366, + 9483, 8775, 12152, + 9483, 8775, 12531, 3254, + 9483, 8775, 12531, 6468, + 9483, 8775, 12867, 5244, + 9483, 8775, 12867, 5540, + 9483, 8775, 13025, 5244, + 9483, 8775, 13025, 5540, + 9483, 8775, 13081, 10367, 4117, 6504, + 9483, 8775, 13081, 10367, 4117, 7820, + 9485, 5671, 6689, 2170, + 9485, 5671, 6689, 2540, + 9485, 5671, 6689, 2778, + 9485, 5671, 6689, 4200, + 9485, 5671, 6689, 4214, + 9485, 5671, 6689, 5190, + 9485, 5671, 6689, 6260, + 9485, 5671, 6689, 6722, + 9485, 5671, 6689, 7508, + 9485, 5671, 6689, 7694, + 9485, 5759, 1045, 6490, + 9485, 5759, 3278, + 9485, 5759, 5671, 8834, + 9485, 5759, 5671, 8836, + 9485, 5759, 5671, 8840, + 9485, 5759, 5671, 8842, + 9485, 5759, 5671, 9125, 8834, + 9485, 5759, 5671, 9125, 8836, + 9485, 5759, 5671, 9125, 10159, 5964, + 9485, 5759, 7465, 9555, 8840, + 9485, 5759, 8425, 9664, + 9485, 5759, 8916, + 9485, 5759, 9664, + 9485, 5759, 9824, + 9485, 5759, 9839, 2273, 7025, 8832, + 9485, 5759, 9839, 2273, 7025, 8834, + 9485, 5759, 9839, 2273, 7025, 8836, + 9485, 5759, 9839, 2273, 7025, 8838, + 9485, 5759, 9839, 2273, 7025, 8840, + 9485, 5759, 9870, + 9485, 5965, 4927, 5657, 7025, 311, 2218, + 9485, 5965, 4927, 5657, 7025, 6902, + 9485, 6689, 2170, + 9485, 6689, 2540, + 9485, 6689, 2778, + 9485, 6689, 4200, + 9485, 6689, 4214, + 9485, 6689, 5190, + 9485, 6689, 6260, + 9485, 6689, 6722, + 9485, 6689, 7508, + 9485, 6689, 7694, + 9485, 7803, 5759, 8, + 9485, 7803, 5759, 9, 6376, + 9485, 7803, 5759, 16, + 9485, 7803, 5759, 40, + 9485, 7803, 5759, 58, + 9485, 7803, 5759, 72, + 9485, 7803, 5759, 266, + 9485, 7803, 5759, 606, + 9485, 7803, 5759, 1937, 28, + 9485, 7803, 5759, 1937, 266, + 9485, 7803, 5759, 4263, 7025, 16, + 9485, 7803, 5759, 5657, 7025, 188, + 9485, 7803, 5759, 5671, 8, + 9485, 7803, 5759, 5671, 9, 6376, + 9485, 7803, 5759, 5671, 58, + 9485, 7803, 5759, 5671, 6789, 48, + 9485, 7803, 5759, 5885, 58, + 9485, 7803, 5759, 7031, 40, + 9485, 7803, 5759, 7031, 162, + 9485, 7803, 5759, 7031, 426, + 9485, 7803, 5759, 9827, 22, + 9485, 7803, 5759, 9827, 34, + 9485, 7803, 5759, 9827, 344, + 9485, 7803, 5759, 9827, 518, + 9485, 7803, 5759, 9839, 2273, 7025, 188, + 9485, 7803, 5759, 9839, 2273, 7025, 590, + 9485, 8405, 0, + 9485, 8405, 8, + 9485, 8405, 16, + 9485, 8405, 28, + 9485, 8405, 40, + 9485, 8405, 92, + 9485, 8405, 100, + 9485, 8405, 116, + 9485, 8405, 138, + 9485, 8405, 216, + 9485, 8405, 236, + 9485, 8405, 266, + 9485, 8405, 292, + 9485, 8405, 306, + 9485, 8405, 332, + 9485, 8405, 364, + 9485, 8405, 392, + 9485, 8405, 462, + 9485, 8405, 510, + 9485, 8405, 524, + 9485, 8405, 556, + 9485, 8405, 606, + 9485, 8405, 622, + 9485, 8405, 652, + 9485, 8405, 792, + 9485, 8405, 884, + 9485, 8405, 974, + 9485, 8405, 996, + 9485, 8405, 1260, + 9485, 8405, 1512, + 9485, 8405, 1612, + 9485, 8405, 1796, + 9485, 8405, 1937, 8, + 9485, 8405, 1937, 766, + 9485, 8405, 1937, 768, + 9485, 8405, 1937, 1512, + 9485, 8405, 1937, 2030, + 9485, 8405, 2030, + 9485, 8405, 2076, + 9485, 8405, 2126, + 9485, 8405, 2212, + 9485, 8405, 2516, + 9485, 8405, 2566, + 9485, 8405, 2678, + 9485, 8405, 2746, + 9485, 8405, 4016, + 9485, 8405, 5236, + 9485, 8405, 5657, 7025, 2516, + 9485, 8405, 5671, 0, + 9485, 8405, 5671, 100, + 9485, 8405, 5671, 116, + 9485, 8405, 5671, 138, + 9485, 8405, 5671, 196, + 9485, 8405, 5671, 216, + 9485, 8405, 5671, 236, + 9485, 8405, 5671, 306, + 9485, 8405, 5671, 392, + 9485, 8405, 5671, 670, + 9485, 8405, 5671, 1612, + 9485, 8405, 5671, 2126, + 9485, 8405, 5671, 2212, + 9485, 8405, 5671, 2678, + 9485, 8405, 5994, + 9485, 8405, 6877, 524, + 9485, 8405, 7465, 9555, 196, + 9485, 8405, 9253, 2273, 7025, 2076, + 9485, 8405, 9253, 2273, 7025, 3102, + 9485, 8405, 9253, 2273, 7025, 4322, + 9485, 8405, 9827, 22, + 9485, 8405, 9827, 34, + 9485, 8405, 9827, 344, + 9485, 8405, 9827, 518, + 9485, 8405, 9839, 2273, 7025, 2266, + 9485, 8405, 9839, 2273, 7025, 2678, + 9485, 8775, 5671, 2170, + 9485, 8775, 5671, 12016, + 9485, 8775, 10218, + 9485, 8775, 10304, + 9485, 8775, 10768, + 9485, 8775, 13040, + 9485, 10775, 5759, 1937, 8461, 332, + 9485, 10775, 5759, 1937, 8461, 364, + 9485, 10775, 5759, 1937, 8461, 392, + 9485, 10775, 5759, 5671, 8461, 622, + 9485, 10775, 5759, 8461, 236, + 9485, 10775, 5759, 8461, 510, + 9485, 10775, 5759, 8461, 622, + 9485, 10775, 5759, 8461, 652, + 9495, 8153, 10677, 761, 8153, 7443, 11378, + 9497, 1, 8763, 429, 2089, 6741, 568, + 9497, 1, 10579, 429, 2089, 6741, 568, + 9497, 11099, 2089, 6741, 568, + 9497, 11099, 2089, 11621, 568, + 9497, 11099, 2089, 12472, + 9497, 12473, 2089, 6741, 568, + 9497, 12473, 2089, 11098, + 9497, 12473, 2089, 11621, 568, + 9497, 12903, 2089, 9855, 6741, 568, + 9498, + 9509, 6689, 8696, + 9511, 7121, 13069, 7821, 11765, 6434, + 9511, 7773, 13069, 7821, 11765, 6434, + 9525, 6409, 9537, 600, + 9525, 6409, 9537, 4116, + 9541, 6689, 2170, + 9541, 6689, 2540, + 9541, 6689, 2778, + 9541, 6689, 4200, + 9541, 6689, 4214, + 9541, 6689, 5190, + 9541, 6689, 6260, + 9541, 6689, 6722, + 9541, 6689, 7508, + 9541, 6689, 7694, + 9541, 8405, 0, + 9541, 8405, 8, + 9541, 8405, 16, + 9541, 8405, 28, + 9541, 8405, 40, + 9541, 8405, 58, + 9541, 8405, 100, + 9541, 8405, 162, + 9541, 8405, 196, + 9541, 8405, 216, + 9541, 8405, 236, + 9541, 8405, 292, + 9541, 8405, 440, + 9541, 8405, 510, + 9541, 8405, 524, + 9541, 8405, 556, + 9541, 8405, 638, + 9541, 8405, 652, + 9541, 8405, 996, + 9541, 8405, 1612, + 9541, 8405, 2918, + 9541, 8405, 3244, + 9541, 8405, 3854, + 9541, 8405, 4050, + 9541, 8405, 4698, + 9541, 8405, 4820, + 9541, 8405, 5000, + 9541, 8405, 5288, + 9541, 8405, 5470, + 9541, 8405, 7540, + 9573, 12432, + 9581, 5758, + 9595, 5758, + 9615, 5244, + 9617, 8775, 8004, + 9633, 7709, 10375, 6377, 11097, 6434, + 9633, 7709, 10375, 6377, 11765, 6434, + 9633, 9718, + 9633, 9719, 6121, 11649, 8758, + 9633, 9719, 10374, + 9633, 9719, 11183, 8762, + 9641, 6909, 6505, 6907, 8022, + 9641, 8225, 6907, 8022, + 9641, 9063, 32, + 9650, 9660, - 9661, 5741, 7259, 5400, - 9661, 5741, 7308, - 9661, 5741, 7673, 8244, - 9661, 5741, 8988, - 9661, 5741, 10032, - 9661, 5741, 10449, 6047, 5741, 4256, - 9661, 5741, 11798, - 9661, 7475, 1, 6939, 9772, - 9661, 8485, 5741, 7132, - 9661, 10334, - 9665, 9038, - 9667, 1997, 5400, - 9667, 4547, 36, - 9667, 9853, 4630, - 9667, 10036, - 9667, 11329, 4630, - 9677, 10993, 9913, 8258, - 9683, 7919, 0, - 9683, 7919, 8, - 9683, 7919, 16, - 9683, 7919, 26, - 9683, 7919, 28, - 9683, 7919, 40, - 9683, 7919, 94, - 9683, 7919, 96, - 9683, 7919, 98, - 9683, 7919, 100, - 9683, 7919, 104, - 9683, 7919, 128, - 9683, 7919, 132, - 9683, 7919, 134, - 9683, 7919, 140, - 9683, 7919, 142, - 9683, 7919, 200, - 9683, 7919, 204, - 9683, 7919, 208, - 9683, 7919, 212, - 9683, 7919, 214, - 9683, 7919, 220, - 9683, 7919, 222, - 9683, 7919, 226, - 9683, 7919, 230, - 9683, 7919, 234, - 9683, 7919, 286, - 9683, 7919, 290, - 9683, 7919, 294, - 9683, 7919, 302, - 9683, 7919, 306, - 9683, 7919, 342, - 9683, 7919, 346, - 9683, 7919, 352, - 9683, 7919, 358, - 9683, 7919, 362, - 9683, 7919, 370, - 9683, 7919, 372, - 9683, 7919, 380, - 9683, 7919, 386, - 9683, 7919, 390, - 9683, 7919, 430, - 9683, 7919, 434, - 9683, 7919, 440, - 9683, 7919, 444, - 9683, 7919, 450, - 9683, 7919, 472, - 9683, 7919, 474, - 9683, 7919, 476, - 9683, 7919, 478, - 9683, 7919, 482, - 9683, 7919, 486, - 9683, 7919, 488, - 9683, 7919, 492, - 9683, 7919, 496, - 9683, 7919, 502, - 9683, 7919, 510, - 9683, 7919, 514, - 9683, 7919, 518, - 9683, 7919, 520, - 9683, 7919, 526, - 9683, 7919, 554, - 9683, 7919, 556, - 9683, 7919, 558, - 9683, 7919, 560, - 9683, 7919, 562, - 9683, 7919, 566, - 9683, 7919, 570, - 9683, 7919, 574, - 9683, 7919, 576, - 9683, 7919, 596, - 9683, 7919, 604, - 9683, 7919, 608, - 9683, 7919, 614, - 9683, 7919, 616, - 9683, 7919, 620, - 9683, 7919, 622, - 9683, 7919, 624, - 9683, 7919, 7143, 0, - 9683, 7919, 7143, 8, - 9683, 7919, 7143, 16, - 9683, 7919, 7143, 28, - 9683, 7919, 7143, 40, - 9683, 7919, 7143, 220, - 9683, 7919, 7143, 222, - 9683, 7919, 7143, 226, - 9683, 7919, 7143, 230, - 9683, 7919, 7143, 234, - 9683, 7919, 7143, 286, - 9683, 7919, 7143, 290, - 9683, 7919, 7143, 306, - 9683, 7919, 7143, 362, - 9683, 7919, 7143, 390, - 9683, 7919, 7143, 472, - 9683, 7919, 7143, 474, - 9683, 7919, 7143, 476, - 9683, 7919, 7143, 478, - 9683, 7919, 7143, 482, - 9683, 7919, 7143, 492, - 9683, 7919, 7143, 502, - 9683, 7919, 7143, 520, - 9683, 7919, 7143, 526, - 9683, 7919, 7143, 566, - 9683, 7919, 7143, 596, - 9683, 7919, 7143, 604, - 9683, 7919, 7143, 608, - 9683, 7981, 960, - 9683, 8397, 10419, 4630, - 9683, 8623, 4490, - 9683, 10419, 4630, - 9686, - 9697, 2446, - 9719, 8258, - 9725, 106, - 9725, 6020, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 547, 657, 4554, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 547, 657, 6996, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 3863, 657, 4554, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 3863, 657, 6996, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 4555, 657, 546, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 4555, 657, 3862, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 6997, 657, 546, - 9725, 6021, 5741, 5039, 671, 7685, 257, 6047, 9827, 6997, 657, 3862, - 9725, 6021, 8979, 4554, - 9725, 6997, 6021, 5741, 960, - 9731, 2585, 8199, 5041, 4598, - 9731, 2585, 8199, 7846, - 9731, 4599, 5041, 2585, 8198, - 9731, 4599, 5041, 7102, - 9731, 6128, - 9731, 7103, 5041, 4598, - 9731, 9210, - 9731, 10506, - 9731, 10694, - 9737, 7919, 547, 5518, - 9737, 7919, 547, 10082, - 9737, 7919, 961, 7132, - 9737, 7919, 961, 10043, 696, - 9737, 7919, 961, 10979, 696, - 9737, 7919, 1019, 1677, 5602, - 9737, 7919, 1019, 4149, 5602, - 9737, 7919, 1677, 547, 10082, - 9737, 7919, 1677, 3863, 10082, - 9737, 7919, 1677, 4555, 6046, - 9737, 7919, 1677, 4555, 10082, - 9737, 7919, 1677, 5200, - 9737, 7919, 1677, 5603, 696, - 9737, 7919, 1677, 5993, 7444, - 9737, 7919, 1677, 6461, 7444, - 9737, 7919, 1677, 6997, 10082, - 9737, 7919, 1677, 7256, - 9737, 7919, 1677, 7671, 5603, 696, - 9737, 7919, 1677, 7671, 10447, 5603, 696, - 9737, 7919, 1677, 7940, - 9737, 7919, 1677, 10043, 4580, - 9737, 7919, 1677, 10447, 5603, 696, - 9737, 7919, 1763, 5603, 696, - 9737, 7919, 1763, 7671, 5603, 696, - 9737, 7919, 1763, 7671, 10447, 5603, 696, - 9737, 7919, 1763, 10447, 5603, 696, - 9737, 7919, 2861, 10153, 5603, 4630, - 9737, 7919, 3863, 5518, - 9737, 7919, 3863, 10082, - 9737, 7919, 4119, 11173, 6212, - 9737, 7919, 4149, 5603, 696, - 9737, 7919, 4149, 7671, 5603, 696, - 9737, 7919, 4149, 7671, 10447, 5603, 696, - 9737, 7919, 4149, 10447, 5603, 696, - 9737, 7919, 4555, 4119, 5200, - 9737, 7919, 4555, 10082, - 9737, 7919, 5039, 7082, - 9737, 7919, 5095, 5400, - 9737, 7919, 5797, 10153, 5603, 4630, - 9737, 7919, 5993, 7444, - 9737, 7919, 6097, 1677, 5602, - 9737, 7919, 6097, 4149, 5602, - 9737, 7919, 6225, 7444, - 9737, 7919, 6461, 7444, - 9737, 7919, 6691, 6997, 7601, 6020, - 9737, 7919, 6739, 5400, - 9737, 7919, 6946, - 9737, 7919, 6997, 4119, 5200, - 9737, 7919, 6997, 10082, - 9737, 7919, 7082, - 9737, 7919, 7143, 0, - 9737, 7919, 7143, 2, - 9737, 7919, 7143, 4, - 9737, 7919, 7143, 5, 5741, 3732, - 9737, 7919, 7143, 6, - 9737, 7919, 7143, 8, - 9737, 7919, 7143, 10, - 9737, 7919, 7143, 12, - 9737, 7919, 7143, 14, - 9737, 7919, 7143, 15, 5741, 4256, - 9737, 7919, 7143, 17, 5741, 8244, - 9737, 7919, 7143, 18, - 9737, 7919, 7143, 19, 5741, 11732, - 9737, 7919, 7143, 20, - 9737, 7919, 7143, 22, - 9737, 7919, 7143, 23, 5741, 8995, 4256, - 9737, 7919, 7143, 23, 5741, 10555, 4256, - 9737, 7919, 7143, 24, - 9737, 7919, 7143, 25, 5741, 4256, - 9737, 7919, 7143, 27, 5741, 4555, 4256, - 9737, 7919, 7143, 27, 5741, 10555, 4256, - 9737, 7919, 7143, 28, - 9737, 7919, 7143, 30, - 9737, 7919, 7143, 34, - 9737, 7919, 7143, 36, - 9737, 7919, 7143, 37, 5741, 4256, - 9737, 7919, 7143, 38, - 9737, 7919, 7143, 39, 5741, 8995, 4256, - 9737, 7919, 7143, 40, - 9737, 7919, 7143, 41, 696, - 9737, 7919, 7143, 42, - 9737, 7919, 7143, 43, 5741, 4256, - 9737, 7919, 7143, 44, - 9737, 7919, 7143, 46, - 9737, 7919, 7143, 48, - 9737, 7919, 7143, 50, - 9737, 7919, 7143, 51, 5741, 3732, - 9737, 7919, 7143, 51, 5741, 10555, 4256, - 9737, 7919, 7143, 646, - 9737, 7919, 7143, 814, - 9737, 7919, 7143, 1020, - 9737, 7919, 7143, 1034, - 9737, 7919, 7143, 1040, - 9737, 7919, 7143, 1048, - 9737, 7919, 7143, 2046, - 9737, 7919, 7143, 2533, 4119, 28, - 9737, 7919, 7143, 3556, - 9737, 7919, 7143, 4338, - 9737, 7919, 7143, 5039, 8, - 9737, 7919, 7143, 5039, 28, - 9737, 7919, 7143, 6018, - 9737, 7919, 7143, 6276, - 9737, 7919, 7143, 6410, - 9737, 7919, 7143, 6465, 2046, - 9737, 7919, 7143, 6465, 6410, - 9737, 7919, 7143, 7046, - 9737, 7919, 7143, 7232, - 9737, 7919, 7143, 7515, 28, - 9737, 7919, 7143, 7539, 4119, 28, - 9737, 7919, 7143, 8171, 12, - 9737, 7919, 7143, 8345, 0, - 9737, 7919, 7143, 8345, 14, - 9737, 7919, 7143, 8345, 16, - 9737, 7919, 7143, 8345, 24, - 9737, 7919, 7143, 8345, 25, 5741, 4599, 1628, - 9737, 7919, 7143, 8345, 34, - 9737, 7919, 7143, 8345, 35, 5741, 4256, - 9737, 7919, 7143, 8345, 42, - 9737, 7919, 7143, 8345, 66, - 9737, 7919, 7143, 8345, 5039, 8, - 9737, 7919, 7143, 8345, 6018, - 9737, 7919, 7143, 8527, 16, - 9737, 7919, 7143, 8527, 17, 5741, 8244, - 9737, 7919, 7143, 8527, 22, - 9737, 7919, 7143, 8527, 26, - 9737, 7919, 7143, 8527, 40, - 9737, 7919, 7143, 8527, 9667, 34, - 9737, 7919, 7143, 8641, 19, 5741, 8244, - 9737, 7919, 7143, 9220, - 9737, 7919, 7143, 9871, 5039, 8, - 9737, 7919, 7143, 9871, 8763, 5478, - 9737, 7919, 7143, 9901, 40, - 9737, 7919, 7673, 6946, - 9737, 7919, 7673, 10760, - 9737, 7919, 7940, - 9737, 7919, 7981, 6461, 7444, - 9737, 7919, 7981, 7673, 5993, 7444, - 9737, 7919, 7981, 7673, 6461, 7444, - 9737, 7919, 8127, 6212, - 9737, 7919, 8139, 4256, - 9737, 7919, 8241, 657, 1677, 5602, - 9737, 7919, 8241, 657, 4149, 5602, - 9737, 7919, 8345, 6218, - 9737, 7919, 8527, 0, - 9737, 7919, 8527, 2, - 9737, 7919, 8527, 6, - 9737, 7919, 8527, 8, - 9737, 7919, 8527, 12, - 9737, 7919, 8527, 14, - 9737, 7919, 8527, 16, - 9737, 7919, 8527, 18, - 9737, 7919, 8527, 20, - 9737, 7919, 8527, 22, - 9737, 7919, 8527, 24, - 9737, 7919, 8527, 26, - 9737, 7919, 8527, 28, - 9737, 7919, 8527, 30, - 9737, 7919, 8527, 34, - 9737, 7919, 8527, 38, - 9737, 7919, 8527, 40, - 9737, 7919, 8527, 44, - 9737, 7919, 8527, 66, - 9737, 7919, 8527, 420, - 9737, 7919, 8527, 7515, 2, - 9737, 7919, 8527, 9871, 8, - 9737, 7919, 8527, 9871, 26, - 9737, 7919, 8541, 4555, 4119, 5200, - 9737, 7919, 8541, 6997, 4119, 5200, - 9737, 7919, 8551, 5603, 2861, 468, - 9737, 7919, 8551, 5603, 2861, 482, - 9737, 7919, 8551, 5603, 2861, 5084, - 9737, 7919, 8551, 5603, 2861, 7066, - 9737, 7919, 8551, 5603, 5797, 468, - 9737, 7919, 8551, 5603, 5797, 482, - 9737, 7919, 8551, 5603, 5797, 5084, - 9737, 7919, 8551, 5603, 5797, 7066, - 9737, 7919, 8763, 5478, - 9737, 7919, 9240, - 9737, 7919, 9387, 164, - 9737, 7919, 9621, 1836, - 9737, 7919, 9871, 6218, - 9737, 7919, 9871, 8763, 5478, - 9737, 7919, 10043, 4580, - 9737, 7919, 10337, 5603, 696, - 9737, 7919, 10337, 7671, 5603, 696, - 9737, 7919, 10337, 7671, 10447, 5603, 696, - 9737, 7919, 10337, 10447, 5603, 696, - 9737, 7919, 10760, - 9737, 7919, 10783, 7444, - 9737, 7919, 10955, 5603, 696, - 9737, 7919, 10955, 7671, 5603, 696, - 9737, 7919, 10955, 7671, 10447, 5603, 696, - 9737, 7919, 10955, 10447, 5603, 696, - 9737, 7919, 11173, 6212, - 9737, 7919, 11688, - 9741, 1085, 2860, - 9741, 1085, 5796, - 9741, 1085, 6306, - 9744, - 9748, - 9749, 7308, - 9749, 12358, - 9751, 6287, 8188, - 9755, 8557, 6287, 5878, - 9755, 8557, 8031, 7682, - 9755, 8557, 8031, 8350, - 9755, 8557, 8031, 8352, - 9755, 8557, 8031, 8738, - 9755, 8557, 8031, 9116, - 9755, 8557, 8031, 9556, - 9755, 8557, 8031, 9602, - 9755, 8557, 8031, 9758, - 9755, 8557, 8031, 9992, - 9755, 8557, 8031, 10570, - 9761, 7158, - 9777, 400, - 9781, 6224, - 9783, 6117, 5472, - 9783, 6465, 6224, - 9783, 6659, 6224, - 9786, - 9801, 520, - 9801, 5741, 7257, 9772, - 9801, 5741, 10979, 8244, - 9817, 4631, 5316, - 9817, 4631, 7673, 5316, - 9817, 7673, 4129, 4630, - 9817, 7919, 0, - 9817, 7919, 8, - 9817, 7919, 16, - 9817, 7919, 28, - 9817, 7919, 40, - 9817, 7919, 94, - 9817, 7919, 108, - 9817, 7919, 128, - 9817, 7919, 150, - 9817, 7919, 182, - 9817, 7919, 200, - 9817, 7919, 220, - 9817, 7919, 274, - 9817, 7919, 286, - 9817, 7919, 312, - 9817, 7919, 342, - 9817, 7919, 370, - 9817, 7919, 430, - 9817, 7919, 458, - 9817, 7919, 472, - 9817, 7919, 486, - 9817, 7919, 510, - 9817, 7919, 566, - 9817, 7919, 582, - 9817, 7919, 596, - 9817, 7919, 614, - 9817, 7919, 810, - 9817, 7919, 898, - 9817, 7919, 994, - 9817, 7919, 1148, - 9817, 7919, 1492, - 9817, 7919, 1874, - 9817, 7919, 1916, - 9817, 7919, 1962, - 9817, 7919, 2042, - 9817, 7919, 2334, - 9817, 7919, 2486, - 9817, 7919, 2540, - 9817, 7919, 2552, - 9817, 7919, 2936, - 9817, 7919, 5614, - 9817, 7919, 5626, - 9817, 7919, 7143, 0, - 9817, 7919, 8397, 220, - 9817, 7919, 10073, 596, - 9817, 7919, 10087, 182, - 9817, 7919, 10731, 2334, - 9817, 7919, 11212, - 9817, 8207, 4129, 4630, - 9817, 10595, 7919, 472, - 9817, 10595, 7919, 566, - 9817, 10595, 7919, 596, - 9817, 11157, 7919, 472, - 9819, 5472, - 9829, 10406, - 9836, - 9837, 415, 6331, 520, - 9837, 415, 10951, 520, - 9837, 761, 1931, 10951, 520, - 9837, 5991, 1931, 6331, 520, - 9837, 5991, 1931, 7455, 6331, 520, - 9837, 5991, 7455, 6331, 520, - 9837, 5991, 7687, 5400, - 9837, 5991, 11653, 1931, 6331, 520, - 9837, 5991, 11653, 7687, 5400, - 9837, 7307, 9858, - 9839, 5046, - 9845, 4580, - 9849, 6691, 4554, - 9849, 6691, 6996, - 9849, 7313, 4554, - 9849, 7313, 4555, 657, 6691, 4555, 657, 6691, 6996, - 9849, 7313, 4555, 657, 6691, 6996, - 9849, 7313, 4555, 657, 7313, 6997, 657, 6691, 4554, - 9849, 7313, 4555, 657, 7313, 6997, 657, 6691, 6996, - 9849, 7313, 6996, - 9849, 7313, 6997, 657, 6691, 4554, - 9849, 7313, 6997, 657, 6691, 4555, 657, 6691, 6996, - 9853, 4630, - 9853, 11329, 4630, - 9857, 6895, 8258, - 9868, - 9871, 1931, 5400, - 9871, 6020, - 9871, 6021, 5741, 10032, - 9871, 6321, 2330, - 9871, 6946, - 9871, 7256, - 9871, 7257, 7686, - 9871, 7673, 6946, - 9871, 7673, 6947, 10535, 4630, - 9871, 7673, 8245, 1931, 5400, - 9871, 7751, 11418, - 9871, 8327, 6946, - 9871, 9023, 5400, - 9871, 9067, 7745, 6487, 7556, - 9871, 10562, - 9871, 11085, 8527, 22, - 9884, - 9891, 7357, 5472, - 9891, 7357, 6659, 6224, - 9891, 7357, 7582, - 9892, - 9925, 10951, 520, - 9946, - 9947, 415, 6331, 520, - 9947, 415, 10951, 520, - 9947, 761, 1931, 10951, 520, - 9947, 5991, 1931, 6331, 520, - 9947, 5991, 1931, 7455, 6331, 520, - 9947, 5991, 7455, 6331, 520, - 9947, 5991, 7687, 5400, - 9947, 5991, 11653, 1931, 6331, 520, - 9947, 5991, 11653, 7687, 5400, - 9947, 7307, 9858, - 9951, 400, - 9951, 401, 415, 6331, 520, - 9951, 401, 415, 6331, 521, 5741, 961, 5990, - 9951, 401, 5741, 1931, 6331, 520, - 9951, 401, 5991, 1931, 6331, 520, - 9951, 401, 5991, 7257, 9772, - 9951, 401, 5991, 7455, 6331, 520, - 9951, 401, 5991, 7687, 5400, - 9951, 5741, 960, - 9951, 5741, 5095, 5401, 6102, - 9951, 5741, 12359, 5401, 6102, - 9951, 5991, 8248, - 9951, 5991, 9950, - 9951, 5991, 10449, 6046, - 9951, 7525, 657, 7847, 107, 3759, 5741, 8248, - 9951, 7525, 8248, - 9951, 10525, 9134, - 9976, - 9979, 7341, 5401, 16, - 9979, 7341, 5401, 40, - 9979, 7919, 0, - 9979, 7919, 16, - 9979, 7919, 40, - 9979, 7919, 94, - 9979, 7919, 128, - 9979, 7919, 200, - 9979, 7919, 286, - 9979, 7919, 312, - 9979, 7919, 342, - 9979, 7919, 370, - 9979, 7919, 430, - 9979, 7919, 486, - 9979, 7919, 510, - 9979, 7919, 566, - 9979, 7919, 596, - 9979, 7919, 1874, - 9999, 7919, 596, - 9999, 7919, 600, - 9999, 7919, 608, - 9999, 7919, 2798, - 9999, 7919, 2800, - 9999, 7919, 2802, - 9999, 7919, 2806, - 9999, 7919, 2808, - 9999, 7919, 2810, - 9999, 7919, 2812, - 9999, 7919, 2814, - 9999, 7919, 2816, - 9999, 7919, 2818, - 9999, 7919, 2820, - 9999, 7919, 2822, - 9999, 7919, 2824, - 9999, 7919, 2826, - 9999, 7919, 2828, - 9999, 7919, 2830, - 9999, 7919, 2832, - 9999, 7919, 2834, - 9999, 7919, 2836, - 9999, 7919, 2838, - 9999, 7919, 2852, - 9999, 7919, 3077, 5788, - 9999, 7919, 5780, - 9999, 7919, 5782, - 9999, 7919, 5784, - 9999, 7919, 5786, - 9999, 7919, 5788, - 9999, 7919, 5792, - 9999, 7919, 5794, - 9999, 7919, 5798, - 9999, 7919, 5800, - 9999, 7919, 5802, - 9999, 7919, 5804, - 9999, 7919, 5808, - 9999, 7919, 5810, - 9999, 7919, 5812, - 9999, 7919, 7380, - 9999, 7919, 7382, - 9999, 7919, 7384, - 9999, 7919, 7523, 8443, 2810, - 9999, 7919, 7523, 8443, 2812, - 9999, 7919, 8339, 2810, - 9999, 7919, 8339, 2814, - 9999, 7919, 8339, 2824, - 9999, 7919, 8339, 5788, - 9999, 7919, 8339, 5790, - 9999, 7919, 8339, 5794, - 9999, 7919, 8339, 5796, - 9999, 7919, 8339, 5810, - 9999, 7919, 8455, 5810, - 9999, 7919, 11163, 2838, - 9999, 9737, 7919, 12263, 4630, - 10001, 5401, 172, - 10011, 5741, 961, 5990, - 10011, 5741, 8181, 87, 7538, - 10011, 5741, 10032, - 10012, - 10027, 5747, 8634, - 10027, 7919, 16, - 10027, 7919, 40, - 10027, 7919, 230, - 10027, 7919, 450, - 10027, 7919, 520, - 10027, 7919, 576, - 10027, 7919, 624, - 10027, 7919, 646, - 10027, 7919, 1458, - 10027, 7919, 1492, - 10027, 7919, 1744, - 10027, 7919, 1946, - 10027, 7919, 2392, - 10027, 7919, 2482, - 10027, 7919, 2870, - 10027, 7919, 3040, - 10027, 7919, 3556, - 10027, 7919, 3832, - 10027, 7919, 4264, - 10027, 7919, 5144, - 10027, 7919, 5274, - 10027, 7919, 5344, - 10027, 7919, 5880, - 10027, 7919, 6276, - 10027, 7919, 6408, - 10027, 7919, 6436, - 10027, 7919, 6650, - 10027, 7919, 6978, - 10027, 7919, 7034, - 10027, 7919, 8296, - 10030, - 10031, 5741, 5175, 6300, - 10036, - 10040, - 10043, 697, 5741, 10979, 8244, - 10043, 697, 7525, 6997, 10010, - 10043, 697, 7673, 4555, 10714, - 10043, 697, 8327, 6997, 10714, - 10043, 3957, 3860, - 10043, 4439, 8135, 4630, - 10043, 4439, 8135, 4631, 6691, 4118, - 10043, 4439, 8135, 4631, 7313, 4118, - 10043, 4439, 8135, 5741, 8397, 7155, 4630, - 10043, 4439, 8135, 5741, 8397, 7155, 4631, 7313, 4118, - 10043, 4580, - 10043, 4581, 5741, 7583, 5990, - 10043, 4581, 5741, 7583, 6102, - 10043, 4581, 5741, 7981, 960, - 10043, 4581, 10334, - 10043, 4627, 5741, 8245, 5400, - 10043, 8433, 4580, - 10043, 9560, - 10043, 11355, 10419, 4630, - 10045, 8230, - 10067, 521, 2489, 9160, - 10074, - 10085, 4898, - 10088, - 10101, 5400, - 10111, 8929, 8259, 992, - 10111, 8929, 8259, 1045, 11322, - 10111, 8929, 8259, 3056, - 10111, 8929, 8259, 4343, 1864, - 10111, 8929, 8259, 4343, 9294, - 10111, 8929, 8259, 4738, - 10111, 8929, 8259, 5561, 1463, 8470, - 10111, 8929, 8259, 5606, - 10111, 8929, 8259, 5821, 662, - 10111, 8929, 8259, 5821, 4446, - 10111, 8929, 8259, 6001, 3062, - 10111, 8929, 8259, 6001, 4652, - 10111, 8929, 8259, 6001, 5099, 3062, - 10111, 8929, 8259, 6001, 5099, 6452, - 10111, 8929, 8259, 6001, 6452, - 10111, 8929, 8259, 6001, 7978, - 10111, 8929, 8259, 6001, 9296, - 10111, 8929, 8259, 6001, 10374, - 10111, 8929, 8259, 6031, 1045, 1864, - 10111, 8929, 8259, 6031, 11322, - 10111, 8929, 8259, 6038, - 10111, 8929, 8259, 6183, 7428, - 10111, 8929, 8259, 6183, 7882, - 10111, 8929, 8259, 6183, 8218, - 10111, 8929, 8259, 6288, - 10111, 8929, 8259, 6289, 9294, - 10111, 8929, 8259, 6662, - 10111, 8929, 8259, 6887, 1864, - 10111, 8929, 8259, 6887, 6288, - 10111, 8929, 8259, 6887, 11322, - 10111, 8929, 8259, 6954, - 10111, 8929, 8259, 6988, - 10111, 8929, 8259, 7210, - 10111, 8929, 8259, 7228, - 10111, 8929, 8259, 7229, 7464, - 10111, 8929, 8259, 7238, - 10111, 8929, 8259, 7328, - 10111, 8929, 8259, 7373, 7880, - 10111, 8929, 8259, 7618, - 10111, 8929, 8259, 7639, 3057, 993, 9426, - 10111, 8929, 8259, 7639, 10169, 181, 9426, - 10111, 8929, 8259, 7639, 11177, 5031, 9426, - 10111, 8929, 8259, 7639, 11397, 9189, 9426, - 10111, 8929, 8259, 7639, 11680, - 10111, 8929, 8259, 7639, 12318, - 10111, 8929, 8259, 7691, 11420, - 10111, 8929, 8259, 7691, 12206, - 10111, 8929, 8259, 7719, 9119, 7579, 7326, - 10111, 8929, 8259, 7757, 17, 8421, 12318, - 10111, 8929, 8259, 7757, 4745, 6556, - 10111, 8929, 8259, 7757, 8012, - 10111, 8929, 8259, 7757, 8899, 7579, 9416, - 10111, 8929, 8259, 7757, 8899, 7579, 11012, - 10111, 8929, 8259, 7757, 9119, 7579, 8260, - 10111, 8929, 8259, 7757, 9119, 9415, 134, - 10111, 8929, 8259, 7757, 9294, - 10111, 8929, 8259, 7757, 9295, 9407, 6558, - 10111, 8929, 8259, 7757, 10165, 134, - 10111, 8929, 8259, 7757, 10165, 290, - 10111, 8929, 8259, 7757, 10165, 381, 662, - 10111, 8929, 8259, 7757, 10165, 381, 4446, - 10111, 8929, 8259, 7757, 10165, 430, - 10111, 8929, 8259, 7757, 10165, 622, - 10111, 8929, 8259, 7757, 10165, 4738, - 10111, 8929, 8259, 7757, 10941, 10076, - 10111, 8929, 8259, 7769, 7638, - 10111, 8929, 8259, 7769, 8420, - 10111, 8929, 8259, 7785, 1865, 662, - 10111, 8929, 8259, 7785, 1865, 4446, - 10111, 8929, 8259, 7785, 9294, - 10111, 8929, 8259, 7785, 12287, 6282, - 10111, 8929, 8259, 7785, 12287, 9298, - 10111, 8929, 8259, 7839, 8283, 10390, - 10111, 8929, 8259, 7859, 10016, - 10111, 8929, 8259, 7880, - 10111, 8929, 8259, 7881, 662, - 10111, 8929, 8259, 7881, 4446, - 10111, 8929, 8259, 7913, 993, 8552, - 10111, 8929, 8259, 7913, 3901, 8554, - 10111, 8929, 8259, 7913, 7283, 8552, - 10111, 8929, 8259, 7913, 8809, 8554, - 10111, 8929, 8259, 7913, 9985, 8552, - 10111, 8929, 8259, 7983, 4342, - 10111, 8929, 8259, 8043, 1864, - 10111, 8929, 8259, 8043, 9294, - 10111, 8929, 8259, 8044, - 10111, 8929, 8259, 8061, 9294, - 10111, 8929, 8259, 8089, 1864, - 10111, 8929, 8259, 8089, 9294, - 10111, 8929, 8259, 8110, - 10111, 8929, 8259, 8178, - 10111, 8929, 8259, 8179, 1864, - 10111, 8929, 8259, 8234, - 10111, 8929, 8259, 8280, - 10111, 8929, 8259, 8328, - 10111, 8929, 8259, 8385, 1864, - 10111, 8929, 8259, 8385, 6288, - 10111, 8929, 8259, 8385, 11322, - 10111, 8929, 8259, 8421, 3057, 993, 9426, - 10111, 8929, 8259, 8421, 10169, 181, 9426, - 10111, 8929, 8259, 8421, 11177, 5031, 9426, - 10111, 8929, 8259, 8421, 11397, 9189, 9426, - 10111, 8929, 8259, 8421, 11680, - 10111, 8929, 8259, 8426, - 10111, 8929, 8259, 8479, 134, - 10111, 8929, 8259, 8479, 200, - 10111, 8929, 8259, 8479, 290, - 10111, 8929, 8259, 8479, 380, - 10111, 8929, 8259, 8479, 430, - 10111, 8929, 8259, 8479, 622, - 10111, 8929, 8259, 8479, 2682, - 10111, 8929, 8259, 8542, - 10111, 8929, 8259, 8618, - 10111, 8929, 8259, 8714, - 10111, 8929, 8259, 8719, 1463, 7757, 2682, - 10111, 8929, 8259, 8800, - 10111, 8929, 8259, 8849, 1865, 662, - 10111, 8929, 8259, 8849, 1865, 4446, - 10111, 8929, 8259, 8849, 1865, 4654, - 10111, 8929, 8259, 8849, 9294, - 10111, 8929, 8259, 8862, - 10111, 8929, 8259, 8865, 1864, - 10111, 8929, 8259, 8865, 3038, - 10111, 8929, 8259, 8865, 9294, - 10111, 8929, 8259, 8870, - 10111, 8929, 8259, 8890, - 10111, 8929, 8259, 9012, - 10111, 8929, 8259, 9014, - 10111, 8929, 8259, 9048, - 10111, 8929, 8259, 9154, - 10111, 8929, 8259, 9155, 9284, - 10111, 8929, 8259, 9169, 1864, - 10111, 8929, 8259, 9169, 4657, 9156, - 10111, 8929, 8259, 9169, 9294, - 10111, 8929, 8259, 9170, - 10111, 8929, 8259, 9188, - 10111, 8929, 8259, 9204, - 10111, 8929, 8259, 9227, 9294, - 10111, 8929, 8259, 9258, - 10111, 8929, 8259, 9283, 1864, - 10111, 8929, 8259, 9283, 9294, - 10111, 8929, 8259, 9286, - 10111, 8929, 8259, 9346, - 10111, 8929, 8259, 9353, 1864, - 10111, 8929, 8259, 9353, 9294, - 10111, 8929, 8259, 9413, 3057, 6734, - 10111, 8929, 8259, 9413, 3057, 7972, - 10111, 8929, 8259, 9413, 6288, - 10111, 8929, 8259, 9413, 9192, - 10111, 8929, 8259, 9418, - 10111, 8929, 8259, 9419, 12287, 6282, - 10111, 8929, 8259, 9419, 12287, 9299, 662, - 10111, 8929, 8259, 9419, 12287, 9299, 4446, - 10111, 8929, 8259, 9421, 206, - 10111, 8929, 8259, 9568, - 10111, 8929, 8259, 9650, - 10111, 8929, 8259, 9684, - 10111, 8929, 8259, 9688, - 10111, 8929, 8259, 9689, 3038, - 10111, 8929, 8259, 9690, - 10111, 8929, 8259, 9692, - 10111, 8929, 8259, 9723, 3037, 8109, 6556, - 10111, 8929, 8259, 9723, 3037, 9405, 6556, - 10111, 8929, 8259, 9723, 7325, 6556, - 10111, 8929, 8259, 9723, 8109, 6556, - 10111, 8929, 8259, 9723, 8333, 6556, - 10111, 8929, 8259, 9723, 8879, 6556, - 10111, 8929, 8259, 9723, 9025, 6556, - 10111, 8929, 8259, 9723, 9025, 9987, 6556, - 10111, 8929, 8259, 9723, 9405, 6556, - 10111, 8929, 8259, 9723, 9987, 6556, - 10111, 8929, 8259, 9723, 9987, 8879, 6556, - 10111, 8929, 8259, 9723, 10708, - 10111, 8929, 8259, 9723, 11061, 6556, - 10111, 8929, 8259, 9802, - 10111, 8929, 8259, 9808, - 10111, 8929, 8259, 9809, 1864, - 10111, 8929, 8259, 9880, - 10111, 8929, 8259, 9903, 7482, - 10111, 8929, 8259, 9903, 7483, 8630, - 10111, 8929, 8259, 9903, 7483, 10014, - 10111, 8929, 8259, 9903, 7483, 11166, - 10111, 8929, 8259, 9903, 9192, - 10111, 8929, 8259, 9903, 9193, 8630, - 10111, 8929, 8259, 9903, 9193, 10014, - 10111, 8929, 8259, 9903, 9193, 11166, - 10111, 8929, 8259, 9988, - 10111, 8929, 8259, 10017, 1864, - 10111, 8929, 8259, 10017, 3038, - 10111, 8929, 8259, 10017, 9294, - 10111, 8929, 8259, 10167, 420, - 10111, 8929, 8259, 10326, - 10111, 8929, 8259, 10343, 9416, - 10111, 8929, 8259, 10343, 11012, - 10111, 8929, 8259, 10343, 11668, - 10111, 8929, 8259, 10398, - 10111, 8929, 8259, 10426, - 10111, 8929, 8259, 10430, - 10111, 8929, 8259, 10431, 1865, 662, - 10111, 8929, 8259, 10431, 1865, 4446, - 10111, 8929, 8259, 10431, 1865, 4654, - 10111, 8929, 8259, 10431, 9294, - 10111, 8929, 8259, 10434, - 10111, 8929, 8259, 10497, 1864, - 10111, 8929, 8259, 10497, 9294, - 10111, 8929, 8259, 10530, - 10111, 8929, 8259, 10531, 1864, - 10111, 8929, 8259, 10684, - 10111, 8929, 8259, 10710, - 10111, 8929, 8259, 10738, - 10111, 8929, 8259, 10739, 6288, - 10111, 8929, 8259, 10752, - 10111, 8929, 8259, 10757, 8283, 10390, - 10111, 8929, 8259, 10757, 10683, 1864, - 10111, 8929, 8259, 10758, - 10111, 8929, 8259, 10759, 1864, - 10111, 8929, 8259, 10759, 6288, - 10111, 8929, 8259, 10934, - 10111, 8929, 8259, 10973, 27, 7464, - 10111, 8929, 8259, 10973, 27, 8628, - 10111, 8929, 8259, 10984, - 10111, 8929, 8259, 10986, - 10111, 8929, 8259, 11421, 1864, - 10111, 8929, 8259, 11421, 9294, - 10111, 8929, 8259, 11422, - 10111, 8929, 8259, 11423, 1864, - 10111, 8929, 8259, 11423, 9294, - 10111, 8929, 8259, 11430, - 10111, 8929, 8259, 11673, 1036, - 10111, 8929, 8259, 11673, 1044, - 10111, 8929, 8259, 11708, - 10111, 8929, 8259, 11780, - 10111, 8929, 8259, 12174, - 10111, 8929, 8259, 12206, - 10111, 8929, 8259, 12350, - 10111, 8929, 8259, 12378, - 10111, 8929, 8259, 12380, - 10111, 8929, 8259, 12384, - 10111, 8929, 8259, 12404, - 10111, 8929, 8259, 12406, - 10111, 8929, 8259, 12414, - 10111, 8929, 8259, 12418, - 10111, 8929, 8259, 12420, - 10111, 8929, 8259, 12452, - 10111, 8929, 8259, 12500, - 10111, 8929, 8259, 12504, - 10112, - 10117, 2498, - 10121, 2533, 11107, 6046, - 10121, 5039, 7583, 6046, - 10121, 7591, 7583, 6046, - 10121, 7761, 7583, 6046, - 10121, 8575, 9660, - 10121, 9660, - 10125, 47, 5990, - 10125, 47, 6102, - 10125, 547, 5519, 6102, - 10125, 961, 5990, - 10125, 961, 5991, 6996, - 10125, 961, 6102, - 10125, 1677, 4580, - 10125, 1931, 7257, 5990, - 10125, 3863, 5519, 6102, - 10125, 3957, 3861, 5990, - 10125, 4257, 5990, - 10125, 4262, - 10125, 4555, 4119, 5201, 5990, - 10125, 4555, 4119, 5201, 6102, - 10125, 4555, 5519, 6102, - 10125, 4555, 6021, 5990, - 10125, 4555, 6021, 6102, - 10125, 4555, 6047, 5990, - 10125, 4555, 6047, 6102, - 10125, 4555, 6997, 6047, 5990, - 10125, 4555, 6997, 6047, 6102, - 10125, 4555, 8777, 5990, - 10125, 4555, 10083, 5990, - 10125, 4555, 10083, 6102, - 10125, 4599, 7673, 9135, 8990, - 10125, 4599, 8245, 8990, - 10125, 4599, 9135, 8990, - 10125, 4599, 10043, 4581, 8990, - 10125, 5095, 5401, 6102, - 10125, 5201, 5990, - 10125, 5201, 6102, - 10125, 5201, 8990, - 10125, 5735, 7549, 5990, - 10125, 5993, 5603, 4630, - 10125, 5993, 7444, - 10125, 5993, 7445, 6102, - 10125, 6128, - 10125, 6129, 6102, - 10125, 6152, - 10125, 6153, 6102, - 10125, 6219, 5990, - 10125, 6219, 5991, 6996, - 10125, 6219, 6102, - 10125, 6461, 5603, 4630, - 10125, 6461, 7444, - 10125, 6461, 7445, 6102, - 10125, 6465, 8862, - 10125, 6465, 8929, 9210, - 10125, 6465, 8929, 10506, - 10125, 6465, 8929, 10694, - 10125, 6465, 10163, 7272, - 10125, 6465, 11430, - 10125, 6465, 12334, - 10125, 6659, 7143, 7919, 0, - 10125, 6659, 7143, 7919, 4, - 10125, 6659, 7143, 7919, 6, - 10125, 6659, 7143, 7919, 8, - 10125, 6659, 7143, 7919, 14, - 10125, 6659, 7143, 7919, 16, - 10125, 6659, 7143, 7919, 24, - 10125, 6659, 7143, 7919, 28, - 10125, 6659, 7143, 7919, 34, - 10125, 6659, 7143, 7919, 35, 6102, - 10125, 6659, 7143, 7919, 38, - 10125, 6659, 7143, 7919, 40, - 10125, 6659, 7143, 7919, 42, - 10125, 6659, 7143, 7919, 46, - 10125, 6739, 5401, 6102, - 10125, 6997, 4119, 5201, 5990, - 10125, 6997, 4119, 5201, 6102, - 10125, 6997, 5519, 6102, - 10125, 6997, 6047, 5990, - 10125, 6997, 6047, 6102, - 10125, 6997, 8777, 5990, - 10125, 6997, 10083, 657, 547, 10083, 6102, - 10125, 6997, 10083, 657, 3863, 10083, 6102, - 10125, 6997, 10083, 5990, - 10125, 6997, 10083, 6102, - 10125, 7103, 8245, 8990, - 10125, 7103, 9135, 8990, - 10125, 7103, 10043, 4581, 8990, - 10125, 7151, 6102, - 10125, 7245, 3861, 5990, - 10125, 7256, - 10125, 7257, 6102, - 10125, 7257, 8990, - 10125, 7455, 6331, 521, 5990, - 10125, 7549, 5990, - 10125, 7549, 6102, - 10125, 7671, 5993, 7444, - 10125, 7671, 6461, 7444, - 10125, 7673, 1677, 4580, - 10125, 7673, 5201, 6102, - 10125, 7673, 5993, 7444, - 10125, 7673, 6128, - 10125, 7673, 6129, 6102, - 10125, 7673, 6461, 7444, - 10125, 7673, 7256, - 10125, 7673, 7257, 4555, 4118, - 10125, 7673, 7257, 6997, 4118, - 10125, 7673, 7940, - 10125, 7673, 7941, 6102, - 10125, 7673, 9667, 6128, - 10125, 7673, 9786, - 10125, 7673, 10043, 4581, 5990, - 10125, 7673, 10043, 4581, 6102, - 10125, 7673, 10043, 8245, 8990, - 10125, 7673, 11083, 6047, 6102, - 10125, 7687, 5401, 6102, - 10125, 7940, - 10125, 7941, 6102, - 10125, 8040, - 10125, 8231, 6102, - 10125, 8327, 10034, - 10125, 8345, 6219, 5990, - 10125, 8433, 5990, - 10125, 8469, 8258, - 10125, 8534, - 10125, 8736, - 10125, 9061, 9135, 8990, - 10125, 9087, 6102, - 10125, 9223, 6047, 6102, - 10125, 9309, 6102, - 10125, 9387, 6257, 9824, - 10125, 9387, 6955, 9824, - 10125, 9387, 7264, - 10125, 9387, 8795, 10699, 5400, - 10125, 9387, 9733, 5400, - 10125, 9387, 12360, - 10125, 9623, 7848, - 10125, 9667, 6128, - 10125, 9667, 6129, 6102, - 10125, 9667, 7549, 6102, - 10125, 9667, 7673, 3061, 6102, - 10125, 9701, 4555, 4118, - 10125, 9701, 6997, 4118, - 10125, 9786, - 10125, 9871, 6219, 5990, - 10125, 10043, 4581, 5990, - 10125, 10043, 4581, 6102, - 10125, 10043, 7256, - 10125, 10121, 5201, 8990, - 10125, 10121, 6047, 5990, - 10125, 10158, - 10125, 10159, 6102, - 10125, 10321, 7582, - 10125, 10321, 7583, 10094, - 10125, 10321, 7870, - 10125, 10321, 8168, - 10125, 10321, 8230, - 10125, 10321, 8375, 9827, 10010, - 10125, 10321, 8616, - 10125, 10449, 6047, 8990, - 10125, 10449, 8777, 5741, 3495, 10312, - 10125, 10555, 4257, 6102, - 10125, 10783, 7444, - 10125, 10783, 7445, 6102, - 10125, 10977, 5990, - 10125, 11083, 8777, 5741, 3495, 10312, - 10125, 11159, 4630, - 10125, 11212, - 10125, 11417, 4257, 6102, - 10125, 11702, - 10125, 11776, - 10125, 11804, - 10125, 11806, - 10125, 12203, 5201, 8990, - 10125, 12203, 6047, 5990, - 10125, 12456, - 10125, 12460, - 10125, 12465, 8397, 7155, 4630, - 10125, 12465, 11651, 7155, 4630, - 10129, 5741, 961, 5990, - 10139, 5400, - 10143, 5401, 0, - 10143, 5401, 1, 7259, 0, - 10143, 5401, 1, 7259, 220, - 10143, 5401, 1, 7259, 686, - 10143, 5401, 1, 7259, 1366, - 10143, 5401, 1, 7259, 2308, - 10143, 5401, 1, 7259, 3983, 5538, - 10143, 5401, 1, 7259, 4720, - 10143, 5401, 1, 7259, 6647, 4088, - 10143, 5401, 8, - 10143, 5401, 9, 5041, 9, 1947, 5041, 1946, - 10143, 5401, 9, 7259, 2024, - 10143, 5401, 16, - 10143, 5401, 17, 0, - 10143, 5401, 40, - 10143, 5401, 41, 41, 40, - 10143, 5401, 41, 1198, - 10143, 5401, 41, 5041, 41, 41, 9871, 5041, 41, 9870, - 10143, 5401, 41, 5041, 41, 431, 5041, 431, 1129, 5041, 1128, - 10143, 5401, 41, 5041, 41, 2409, 5041, 2408, - 10143, 5401, 54, - 10143, 5401, 60, - 10143, 5401, 61, 4088, - 10143, 5401, 61, 7259, 41, 5095, 41, 5095, 40, - 10143, 5401, 61, 7259, 220, - 10143, 5401, 61, 7259, 1120, - 10143, 5401, 61, 7259, 1367, 4088, - 10143, 5401, 61, 7259, 3066, - 10143, 5401, 61, 7259, 3871, 4088, - 10143, 5401, 61, 7259, 3983, 5538, - 10143, 5401, 61, 7259, 4330, - 10143, 5401, 61, 7259, 6644, - 10143, 5401, 61, 7259, 7086, - 10143, 5401, 64, - 10143, 5401, 72, - 10143, 5401, 73, 7259, 6336, - 10143, 5401, 73, 7259, 7097, 5095, 4068, - 10143, 5401, 74, - 10143, 5401, 75, 7259, 74, - 10143, 5401, 75, 7259, 220, - 10143, 5401, 75, 7259, 294, - 10143, 5401, 75, 7259, 2336, - 10143, 5401, 75, 7259, 2642, - 10143, 5401, 75, 7259, 3840, - 10143, 5401, 75, 7259, 4068, - 10143, 5401, 75, 7259, 4426, - 10143, 5401, 78, - 10143, 5401, 79, 5041, 78, - 10143, 5401, 79, 5095, 4733, 9146, - 10143, 5401, 79, 5095, 4733, 9775, 79, 5095, 4732, - 10143, 5401, 79, 7245, 7258, - 10143, 5401, 94, - 10143, 5401, 98, - 10143, 5401, 99, 7259, 0, - 10143, 5401, 99, 7259, 1128, - 10143, 5401, 99, 7259, 1367, 4088, - 10143, 5401, 104, - 10143, 5401, 105, 5041, 105, 60, - 10143, 5401, 105, 5041, 105, 542, - 10143, 5401, 105, 9377, 104, - 10143, 5401, 128, - 10143, 5401, 134, - 10143, 5401, 142, - 10143, 5401, 143, 4088, - 10143, 5401, 143, 5041, 142, - 10143, 5401, 143, 9102, - 10143, 5401, 148, - 10143, 5401, 149, 7259, 1, 5095, 221, 5095, 128, - 10143, 5401, 149, 7259, 40, - 10143, 5401, 149, 7259, 352, - 10143, 5401, 149, 7259, 1128, - 10143, 5401, 149, 7259, 2310, - 10143, 5401, 149, 7259, 2336, - 10143, 5401, 160, - 10143, 5401, 164, - 10143, 5401, 165, 7259, 346, - 10143, 5401, 165, 7259, 3982, - 10143, 5401, 165, 7259, 3983, 5538, - 10143, 5401, 165, 9146, - 10143, 5401, 165, 9377, 164, - 10143, 5401, 165, 9775, 164, - 10143, 5401, 200, - 10143, 5401, 201, 4088, - 10143, 5401, 208, - 10143, 5401, 209, 7259, 8, - 10143, 5401, 209, 7259, 40, - 10143, 5401, 209, 9377, 208, - 10143, 5401, 214, - 10143, 5401, 215, 9377, 214, - 10143, 5401, 220, - 10143, 5401, 221, 4088, - 10143, 5401, 221, 5538, - 10143, 5401, 226, - 10143, 5401, 227, 7259, 40, - 10143, 5401, 227, 7259, 672, - 10143, 5401, 227, 7259, 686, - 10143, 5401, 227, 7259, 1114, - 10143, 5401, 227, 7259, 1512, - 10143, 5401, 227, 7259, 1946, - 10143, 5401, 227, 7259, 2336, - 10143, 5401, 227, 7259, 3066, - 10143, 5401, 227, 7259, 3844, - 10143, 5401, 234, - 10143, 5401, 240, - 10143, 5401, 246, - 10143, 5401, 252, - 10143, 5401, 253, 7259, 3983, 5538, - 10143, 5401, 254, - 10143, 5401, 255, 7259, 5522, - 10143, 5401, 255, 9146, - 10143, 5401, 255, 9377, 254, - 10143, 5401, 255, 9775, 254, - 10143, 5401, 256, - 10143, 5401, 262, - 10143, 5401, 286, - 10143, 5401, 287, 7259, 0, - 10143, 5401, 287, 7259, 40, - 10143, 5401, 287, 7259, 64, - 10143, 5401, 287, 7259, 65, 5095, 1552, - 10143, 5401, 287, 7259, 98, - 10143, 5401, 287, 7259, 200, - 10143, 5401, 287, 7259, 208, - 10143, 5401, 287, 7259, 214, - 10143, 5401, 287, 7259, 254, - 10143, 5401, 287, 7259, 294, - 10143, 5401, 287, 7259, 318, - 10143, 5401, 287, 7259, 332, - 10143, 5401, 287, 7259, 346, - 10143, 5401, 287, 7259, 347, 5095, 142, - 10143, 5401, 287, 7259, 347, 5095, 208, - 10143, 5401, 287, 7259, 347, 5095, 514, - 10143, 5401, 287, 7259, 352, - 10143, 5401, 287, 7259, 353, 5095, 6842, - 10143, 5401, 287, 7259, 372, - 10143, 5401, 287, 7259, 440, - 10143, 5401, 287, 7259, 482, - 10143, 5401, 287, 7259, 486, - 10143, 5401, 287, 7259, 528, - 10143, 5401, 287, 7259, 534, - 10143, 5401, 287, 7259, 620, - 10143, 5401, 287, 7259, 686, - 10143, 5401, 287, 7259, 696, - 10143, 5401, 287, 7259, 1120, - 10143, 5401, 287, 7259, 1128, - 10143, 5401, 287, 7259, 1129, 5095, 5311, 5095, 0, - 10143, 5401, 287, 7259, 1366, - 10143, 5401, 287, 7259, 1464, - 10143, 5401, 287, 7259, 1504, - 10143, 5401, 287, 7259, 1946, - 10143, 5401, 287, 7259, 2316, - 10143, 5401, 287, 7259, 2334, - 10143, 5401, 287, 7259, 2336, - 10143, 5401, 287, 7259, 2342, - 10143, 5401, 287, 7259, 2348, - 10143, 5401, 287, 7259, 2462, - 10143, 5401, 287, 7259, 2642, - 10143, 5401, 287, 7259, 3066, - 10143, 5401, 287, 7259, 3908, - 10143, 5401, 287, 7259, 3983, 5538, - 10143, 5401, 287, 7259, 4064, - 10143, 5401, 287, 7259, 4069, 5095, 2316, - 10143, 5401, 287, 7259, 4069, 9377, 4068, - 10143, 5401, 287, 7259, 4096, - 10143, 5401, 287, 7259, 5338, - 10143, 5401, 287, 7259, 5681, 7259, 430, - 10143, 5401, 287, 7259, 6076, - 10143, 5401, 287, 7259, 6336, - 10143, 5401, 287, 7259, 7198, - 10143, 5401, 294, - 10143, 5401, 295, 7259, 40, - 10143, 5401, 295, 7259, 534, - 10143, 5401, 295, 7259, 686, - 10143, 5401, 306, - 10143, 5401, 307, 5041, 227, 7259, 3067, 307, 5041, 227, 7259, 3066, - 10143, 5401, 312, - 10143, 5401, 318, - 10143, 5401, 332, - 10143, 5401, 333, 7259, 686, - 10143, 5401, 342, - 10143, 5401, 343, 4088, - 10143, 5401, 343, 7259, 5522, - 10143, 5401, 346, - 10143, 5401, 352, - 10143, 5401, 362, - 10143, 5401, 363, 5041, 362, - 10143, 5401, 370, - 10143, 5401, 372, - 10143, 5401, 373, 7259, 0, - 10143, 5401, 373, 7259, 534, - 10143, 5401, 373, 9102, - 10143, 5401, 380, - 10143, 5401, 381, 7259, 8, - 10143, 5401, 390, - 10143, 5401, 430, - 10143, 5401, 440, - 10143, 5401, 441, 7259, 0, - 10143, 5401, 441, 7259, 8, - 10143, 5401, 441, 7259, 16, - 10143, 5401, 441, 7259, 40, - 10143, 5401, 441, 7259, 60, - 10143, 5401, 441, 7259, 98, - 10143, 5401, 441, 7259, 104, - 10143, 5401, 441, 7259, 240, - 10143, 5401, 441, 7259, 528, - 10143, 5401, 441, 9377, 440, - 10143, 5401, 472, - 10143, 5401, 476, - 10143, 5401, 482, - 10143, 5401, 486, - 10143, 5401, 492, - 10143, 5401, 493, 4088, - 10143, 5401, 502, - 10143, 5401, 503, 5041, 502, - 10143, 5401, 510, - 10143, 5401, 511, 4088, - 10143, 5401, 511, 7259, 226, - 10143, 5401, 511, 7259, 352, - 10143, 5401, 511, 9308, - 10143, 5401, 514, - 10143, 5401, 515, 4088, - 10143, 5401, 518, - 10143, 5401, 519, 5538, - 10143, 5401, 526, - 10143, 5401, 528, - 10143, 5401, 532, - 10143, 5401, 534, - 10143, 5401, 535, 4088, - 10143, 5401, 535, 7259, 41, 5095, 41, 5095, 40, - 10143, 5401, 535, 7259, 41, 5095, 41, 5095, 41, 4088, - 10143, 5401, 535, 7259, 352, - 10143, 5401, 535, 7259, 686, - 10143, 5401, 535, 7890, - 10143, 5401, 535, 9102, - 10143, 5401, 535, 9103, 7259, 686, - 10143, 5401, 540, - 10143, 5401, 541, 7259, 40, - 10143, 5401, 541, 7259, 347, 5095, 128, - 10143, 5401, 541, 7259, 5310, - 10143, 5401, 541, 7259, 6644, - 10143, 5401, 542, - 10143, 5401, 543, 4088, - 10143, 5401, 548, - 10143, 5401, 549, 9102, - 10143, 5401, 549, 9377, 548, - 10143, 5401, 614, - 10143, 5401, 615, 5538, - 10143, 5401, 615, 9147, 7259, 1566, - 10143, 5401, 620, - 10143, 5401, 621, 5041, 620, - 10143, 5401, 624, - 10143, 5401, 638, - 10143, 5401, 639, 7259, 347, 5095, 164, - 10143, 5401, 639, 7259, 3983, 5538, - 10143, 5401, 639, 7259, 5310, - 10143, 5401, 639, 7259, 5522, - 10143, 5401, 639, 7259, 6076, - 10143, 5401, 672, - 10143, 5401, 673, 4423, 5538, - 10143, 5401, 673, 5041, 673, 5041, 672, - 10143, 5401, 673, 5041, 673, 5041, 673, 9377, 673, 5041, 673, 5041, 672, - 10143, 5401, 673, 5041, 673, 5645, 5041, 5645, 5645, 5041, 5645, 2024, - 10143, 5401, 673, 5927, 5538, - 10143, 5401, 686, - 10143, 5401, 690, - 10143, 5401, 691, 5041, 690, - 10143, 5401, 696, - 10143, 5401, 758, - 10143, 5401, 882, - 10143, 5401, 883, 7877, 7259, 1, 5095, 4632, - 10143, 5401, 883, 7877, 7259, 98, - 10143, 5401, 883, 7877, 7259, 200, - 10143, 5401, 883, 7877, 7259, 201, 5095, 4632, - 10143, 5401, 883, 7877, 7259, 208, - 10143, 5401, 883, 7877, 7259, 220, - 10143, 5401, 883, 7877, 7259, 262, - 10143, 5401, 883, 7877, 7259, 263, 5095, 332, - 10143, 5401, 883, 7877, 7259, 312, - 10143, 5401, 883, 7877, 7259, 332, - 10143, 5401, 883, 7877, 7259, 333, 5095, 6708, - 10143, 5401, 883, 7877, 7259, 372, - 10143, 5401, 883, 7877, 7259, 492, - 10143, 5401, 883, 7877, 7259, 529, 5095, 4064, - 10143, 5401, 883, 7877, 7259, 1198, - 10143, 5401, 883, 7877, 7259, 1464, - 10143, 5401, 883, 7877, 7259, 1690, - 10143, 5401, 883, 7877, 7259, 2025, 5095, 2024, - 10143, 5401, 883, 7877, 7259, 2642, - 10143, 5401, 883, 7877, 7259, 3044, - 10143, 5401, 883, 7877, 7259, 4064, - 10143, 5401, 883, 7877, 7259, 5522, - 10143, 5401, 883, 7877, 7259, 6076, - 10143, 5401, 886, - 10143, 5401, 890, - 10143, 5401, 924, - 10143, 5401, 928, - 10143, 5401, 929, 7259, 2336, - 10143, 5401, 930, - 10143, 5401, 931, 7857, 41, 4089, 3844, - 10143, 5401, 966, - 10143, 5401, 967, 7259, 3908, - 10143, 5401, 968, - 10143, 5401, 970, - 10143, 5401, 974, - 10143, 5401, 1110, - 10143, 5401, 1111, 5041, 1110, - 10143, 5401, 1111, 7259, 1, 5095, 129, 5095, 220, - 10143, 5401, 1111, 7259, 1, 5095, 220, - 10143, 5401, 1111, 7259, 1, 5095, 1366, - 10143, 5401, 1111, 7259, 40, - 10143, 5401, 1111, 7259, 78, - 10143, 5401, 1111, 7259, 128, - 10143, 5401, 1111, 7259, 134, - 10143, 5401, 1111, 7259, 160, - 10143, 5401, 1111, 7259, 161, 5095, 312, - 10143, 5401, 1111, 7259, 164, - 10143, 5401, 1111, 7259, 165, 7259, 3983, 5538, - 10143, 5401, 1111, 7259, 208, - 10143, 5401, 1111, 7259, 221, 5095, 333, 5095, 3908, - 10143, 5401, 1111, 7259, 227, 5095, 318, - 10143, 5401, 1111, 7259, 312, - 10143, 5401, 1111, 7259, 347, 5095, 164, - 10143, 5401, 1111, 7259, 352, - 10143, 5401, 1111, 7259, 430, - 10143, 5401, 1111, 7259, 534, - 10143, 5401, 1111, 7259, 535, 5095, 142, - 10143, 5401, 1111, 7259, 639, 5539, 5095, 2444, - 10143, 5401, 1111, 7259, 672, - 10143, 5401, 1111, 7259, 686, - 10143, 5401, 1111, 7259, 697, 5095, 472, - 10143, 5401, 1111, 7259, 758, - 10143, 5401, 1111, 7259, 759, 5095, 472, - 10143, 5401, 1111, 7259, 929, 7259, 2336, - 10143, 5401, 1111, 7259, 966, - 10143, 5401, 1111, 7259, 1128, - 10143, 5401, 1111, 7259, 1170, - 10143, 5401, 1111, 7259, 1171, 5095, 0, - 10143, 5401, 1111, 7259, 1238, - 10143, 5401, 1111, 7259, 1239, 5095, 312, - 10143, 5401, 1111, 7259, 1367, 4088, - 10143, 5401, 1111, 7259, 1381, 5095, 235, 5095, 672, - 10143, 5401, 1111, 7259, 1464, - 10143, 5401, 1111, 7259, 1504, - 10143, 5401, 1111, 7259, 1505, 5095, 1606, - 10143, 5401, 1111, 7259, 1553, 5095, 78, - 10143, 5401, 1111, 7259, 1946, - 10143, 5401, 1111, 7259, 1947, 5041, 1946, - 10143, 5401, 1111, 7259, 2310, - 10143, 5401, 1111, 7259, 2316, - 10143, 5401, 1111, 7259, 2336, - 10143, 5401, 1111, 7259, 2337, 5095, 2572, - 10143, 5401, 1111, 7259, 2400, - 10143, 5401, 1111, 7259, 3067, 5095, 1120, - 10143, 5401, 1111, 7259, 3983, 5538, - 10143, 5401, 1111, 7259, 4065, 5095, 502, - 10143, 5401, 1111, 7259, 4270, - 10143, 5401, 1111, 7259, 5338, - 10143, 5401, 1111, 7259, 5522, - 10143, 5401, 1111, 7259, 7856, - 10143, 5401, 1114, - 10143, 5401, 1115, 5041, 1115, 1129, 5041, 1128, - 10143, 5401, 1120, - 10143, 5401, 1121, 1115, 5041, 1115, 1129, 5041, 1128, - 10143, 5401, 1122, - 10143, 5401, 1124, - 10143, 5401, 1128, - 10143, 5401, 1170, - 10143, 5401, 1171, 5041, 1170, - 10143, 5401, 1171, 9377, 1170, - 10143, 5401, 1196, - 10143, 5401, 1197, 4088, - 10143, 5401, 1197, 7259, 1464, - 10143, 5401, 1197, 7259, 1465, 7259, 1367, 4088, - 10143, 5401, 1197, 7259, 1946, - 10143, 5401, 1197, 7259, 2311, 5095, 5644, - 10143, 5401, 1198, - 10143, 5401, 1199, 5041, 1199, 6692, - 10143, 5401, 1199, 7259, 1, 5095, 1566, - 10143, 5401, 1199, 7259, 1566, - 10143, 5401, 1202, - 10143, 5401, 1204, - 10143, 5401, 1205, 7259, 2336, - 10143, 5401, 1210, - 10143, 5401, 1238, - 10143, 5401, 1366, - 10143, 5401, 1367, 476, - 10143, 5401, 1367, 924, - 10143, 5401, 1367, 4088, - 10143, 5401, 1367, 5041, 1367, 5347, 5041, 5347, 535, 5041, 534, - 10143, 5401, 1368, - 10143, 5401, 1380, - 10143, 5401, 1452, - 10143, 5401, 1453, 9377, 1452, - 10143, 5401, 1456, - 10143, 5401, 1464, - 10143, 5401, 1465, 7259, 1367, 4088, - 10143, 5401, 1466, - 10143, 5401, 1467, 7259, 686, - 10143, 5401, 1467, 9377, 1466, - 10143, 5401, 1504, - 10143, 5401, 1512, - 10143, 5401, 1552, - 10143, 5401, 1554, - 10143, 5401, 1555, 9229, 3954, - 10143, 5401, 1556, - 10143, 5401, 1558, - 10143, 5401, 1559, 4088, - 10143, 5401, 1560, - 10143, 5401, 1566, - 10143, 5401, 1567, 9775, 1566, - 10143, 5401, 1606, - 10143, 5401, 1607, 7259, 1606, - 10143, 5401, 1608, - 10143, 5401, 1609, 7259, 1566, - 10143, 5401, 1609, 7259, 1567, 5095, 482, - 10143, 5401, 1654, - 10143, 5401, 1680, - 10143, 5401, 1681, 5538, - 10143, 5401, 1681, 7259, 74, - 10143, 5401, 1681, 7259, 227, 7259, 686, - 10143, 5401, 1681, 7259, 254, - 10143, 5401, 1681, 7259, 294, - 10143, 5401, 1681, 7259, 313, 5095, 672, - 10143, 5401, 1681, 7259, 347, 5095, 164, - 10143, 5401, 1681, 7259, 372, - 10143, 5401, 1681, 7259, 390, - 10143, 5401, 1681, 7259, 493, 5095, 672, - 10143, 5401, 1681, 7259, 686, - 10143, 5401, 1681, 7259, 3908, - 10143, 5401, 1681, 7259, 3909, 5538, - 10143, 5401, 1681, 7259, 3983, 5538, - 10143, 5401, 1681, 7259, 4424, - 10143, 5401, 1681, 7259, 4426, - 10143, 5401, 1681, 7259, 4427, 5095, 672, - 10143, 5401, 1681, 7259, 5403, 5095, 104, - 10143, 5401, 1681, 7259, 5644, - 10143, 5401, 1681, 7259, 6644, - 10143, 5401, 1681, 9102, - 10143, 5401, 1681, 9146, - 10143, 5401, 1681, 9377, 1680, - 10143, 5401, 1681, 9775, 1680, - 10143, 5401, 1682, - 10143, 5401, 1686, - 10143, 5401, 1688, - 10143, 5401, 1690, - 10143, 5401, 1691, 5041, 1690, - 10143, 5401, 1691, 5041, 1691, 1129, 5041, 1128, - 10143, 5401, 1720, - 10143, 5401, 1724, - 10143, 5401, 1732, - 10143, 5401, 1748, - 10143, 5401, 1774, - 10143, 5401, 1796, - 10143, 5401, 1797, 4088, - 10143, 5401, 1824, - 10143, 5401, 1832, - 10143, 5401, 1833, 8964, - 10143, 5401, 1886, - 10143, 5401, 1896, - 10143, 5401, 1897, 7259, 1129, 5095, 3983, 5538, - 10143, 5401, 1897, 7259, 3983, 5538, - 10143, 5401, 1946, - 10143, 5401, 1947, 5041, 1946, - 10143, 5401, 1947, 5538, - 10143, 5401, 1947, 6647, 7259, 1128, - 10143, 5401, 1947, 6647, 7259, 2310, - 10143, 5401, 1947, 6647, 7259, 2311, 5041, 1947, 6647, 7259, 2310, - 10143, 5401, 1947, 6647, 7259, 2642, - 10143, 5401, 1947, 6647, 7259, 4632, - 10143, 5401, 1947, 9377, 1946, - 10143, 5401, 1947, 9377, 1947, 6647, 5041, 6646, - 10143, 5401, 2020, - 10143, 5401, 2022, - 10143, 5401, 2024, - 10143, 5401, 2208, - 10143, 5401, 2308, - 10143, 5401, 2309, 4088, - 10143, 5401, 2309, 5041, 2308, - 10143, 5401, 2309, 7259, 0, - 10143, 5401, 2309, 7259, 142, - 10143, 5401, 2309, 7259, 220, - 10143, 5401, 2309, 7259, 352, - 10143, 5401, 2309, 7259, 528, - 10143, 5401, 2309, 7259, 532, - 10143, 5401, 2309, 7259, 540, - 10143, 5401, 2309, 7259, 548, - 10143, 5401, 2309, 7259, 966, - 10143, 5401, 2309, 7259, 1464, - 10143, 5401, 2309, 7259, 1566, - 10143, 5401, 2309, 7259, 1690, - 10143, 5401, 2309, 7259, 1946, - 10143, 5401, 2309, 7259, 2310, - 10143, 5401, 2309, 7259, 2444, - 10143, 5401, 2309, 7259, 2642, - 10143, 5401, 2309, 7259, 5338, - 10143, 5401, 2309, 8964, - 10143, 5401, 2310, - 10143, 5401, 2311, 6645, 7259, 3066, - 10143, 5401, 2316, - 10143, 5401, 2334, - 10143, 5401, 2336, - 10143, 5401, 2337, 234, - 10143, 5401, 2337, 5041, 2337, 1115, 5041, 1115, 1129, 5041, 1128, - 10143, 5401, 2337, 5041, 2337, 2445, 5041, 2445, 1129, 5041, 1128, - 10143, 5401, 2342, - 10143, 5401, 2343, 5041, 9667, 2342, - 10143, 5401, 2348, - 10143, 5401, 2398, - 10143, 5401, 2400, - 10143, 5401, 2408, - 10143, 5401, 2444, - 10143, 5401, 2445, 5041, 2445, 381, 5041, 381, 3845, 5041, 3844, - 10143, 5401, 2445, 9146, - 10143, 5401, 2446, - 10143, 5401, 2447, 7259, 98, - 10143, 5401, 2447, 7259, 534, - 10143, 5401, 2447, 7259, 1198, - 10143, 5401, 2447, 7259, 2336, - 10143, 5401, 2447, 7259, 2342, - 10143, 5401, 2447, 7259, 5644, - 10143, 5401, 2462, - 10143, 5401, 2502, - 10143, 5401, 2506, - 10143, 5401, 2507, 5041, 2506, - 10143, 5401, 2507, 5041, 2507, 1115, 5041, 1115, 1129, 5041, 1128, - 10143, 5401, 2507, 7259, 5522, - 10143, 5401, 2564, - 10143, 5401, 2566, - 10143, 5401, 2572, - 10143, 5401, 2573, 5041, 2573, 615, 5041, 614, - 10143, 5401, 2628, - 10143, 5401, 2629, 7259, 1, 5095, 220, - 10143, 5401, 2629, 7259, 1, 5095, 370, - 10143, 5401, 2629, 7259, 74, - 10143, 5401, 2629, 7259, 220, - 10143, 5401, 2629, 7259, 528, - 10143, 5401, 2629, 7259, 529, 5095, 98, - 10143, 5401, 2629, 7259, 529, 5095, 672, - 10143, 5401, 2629, 7259, 1946, - 10143, 5401, 2630, - 10143, 5401, 2634, - 10143, 5401, 2638, - 10143, 5401, 2639, 7259, 0, - 10143, 5401, 2639, 7259, 41, 5095, 1198, - 10143, 5401, 2639, 7259, 200, - 10143, 5401, 2639, 7259, 214, - 10143, 5401, 2639, 7259, 220, - 10143, 5401, 2639, 7259, 254, - 10143, 5401, 2639, 7259, 294, - 10143, 5401, 2639, 7259, 430, - 10143, 5401, 2639, 7259, 526, - 10143, 5401, 2639, 7259, 534, - 10143, 5401, 2639, 7259, 696, - 10143, 5401, 2639, 7259, 974, - 10143, 5401, 2639, 7259, 1120, - 10143, 5401, 2639, 7259, 1128, - 10143, 5401, 2639, 7259, 1366, - 10143, 5401, 2639, 7259, 1380, - 10143, 5401, 2639, 7259, 1690, - 10143, 5401, 2639, 7259, 1774, - 10143, 5401, 2639, 7259, 2336, - 10143, 5401, 2639, 7259, 3983, 5538, - 10143, 5401, 2639, 7259, 5398, - 10143, 5401, 2639, 7259, 7314, - 10143, 5401, 2639, 7259, 7490, - 10143, 5401, 2642, - 10143, 5401, 2643, 7259, 0, - 10143, 5401, 2643, 7259, 306, - 10143, 5401, 2643, 7259, 1566, - 10143, 5401, 2643, 7259, 5522, - 10143, 5401, 2644, - 10143, 5401, 2645, 7259, 7856, - 10143, 5401, 2646, - 10143, 5401, 2912, - 10143, 5401, 2926, - 10143, 5401, 2948, - 10143, 5401, 2950, - 10143, 5401, 2951, 4423, 5538, - 10143, 5401, 2954, - 10143, 5401, 2978, - 10143, 5401, 2979, 7259, 0, - 10143, 5401, 2980, - 10143, 5401, 3030, - 10143, 5401, 3044, - 10143, 5401, 3045, 7259, 2336, - 10143, 5401, 3054, - 10143, 5401, 3058, - 10143, 5401, 3059, 7259, 1566, - 10143, 5401, 3066, - 10143, 5401, 3484, - 10143, 5401, 3596, - 10143, 5401, 3840, - 10143, 5401, 3844, - 10143, 5401, 3868, - 10143, 5401, 3870, - 10143, 5401, 3871, 4088, - 10143, 5401, 3871, 4089, 4088, - 10143, 5401, 3872, - 10143, 5401, 3878, - 10143, 5401, 3896, - 10143, 5401, 3898, - 10143, 5401, 3906, - 10143, 5401, 3908, - 10143, 5401, 3916, - 10143, 5401, 3917, 7259, 0, - 10143, 5401, 3917, 7259, 1, 5095, 1606, - 10143, 5401, 3917, 7259, 1, 5095, 1607, 7259, 1606, - 10143, 5401, 3917, 7259, 78, - 10143, 5401, 3917, 7259, 220, - 10143, 5401, 3917, 7259, 221, 4088, - 10143, 5401, 3917, 7259, 312, - 10143, 5401, 3917, 7259, 318, - 10143, 5401, 3917, 7259, 332, - 10143, 5401, 3917, 7259, 528, - 10143, 5401, 3917, 7259, 534, - 10143, 5401, 3917, 7259, 686, - 10143, 5401, 3917, 7259, 1367, 4088, - 10143, 5401, 3917, 7259, 1552, - 10143, 5401, 3917, 7259, 1607, 7259, 1606, - 10143, 5401, 3917, 7259, 3871, 4088, - 10143, 5401, 3917, 7259, 3871, 4089, 4088, - 10143, 5401, 3917, 7259, 7856, - 10143, 5401, 3917, 7259, 7857, 9146, - 10143, 5401, 3976, - 10143, 5401, 3977, 9377, 3976, - 10143, 5401, 3982, - 10143, 5401, 3983, 5041, 3982, - 10143, 5401, 3983, 5538, - 10143, 5401, 3983, 9377, 3982, - 10143, 5401, 3984, - 10143, 5401, 4064, - 10143, 5401, 4065, 4088, - 10143, 5401, 4066, - 10143, 5401, 4067, 7259, 1, 5095, 1366, - 10143, 5401, 4067, 7259, 333, 5095, 1366, - 10143, 5401, 4067, 7259, 430, - 10143, 5401, 4067, 7259, 1366, - 10143, 5401, 4067, 7259, 3983, 5538, - 10143, 5401, 4068, - 10143, 5401, 4069, 5538, - 10143, 5401, 4069, 7259, 686, - 10143, 5401, 4069, 7259, 5522, - 10143, 5401, 4069, 9377, 4068, - 10143, 5401, 4096, - 10143, 5401, 4270, - 10143, 5401, 4271, 7259, 78, - 10143, 5401, 4271, 7259, 534, - 10143, 5401, 4271, 7259, 1238, - 10143, 5401, 4271, 7259, 4588, - 10143, 5401, 4271, 7259, 7856, - 10143, 5401, 4272, - 10143, 5401, 4320, - 10143, 5401, 4321, 5041, 4321, 758, - 10143, 5401, 4321, 5041, 4321, 9146, - 10143, 5401, 4330, - 10143, 5401, 4424, - 10143, 5401, 4426, - 10143, 5401, 4428, - 10143, 5401, 4430, - 10143, 5401, 4431, 5041, 4430, - 10143, 5401, 4434, - 10143, 5401, 4436, - 10143, 5401, 4482, - 10143, 5401, 4588, - 10143, 5401, 4632, - 10143, 5401, 4720, - 10143, 5401, 4721, 5041, 4720, - 10143, 5401, 4721, 5041, 4721, 7259, 1, 5095, 370, - 10143, 5401, 4721, 7259, 0, - 10143, 5401, 4721, 7259, 614, - 10143, 5401, 4721, 7259, 1566, - 10143, 5401, 4721, 9377, 4720, - 10143, 5401, 4732, - 10143, 5401, 4733, 7259, 2343, 5538, - 10143, 5401, 4733, 9666, - 10143, 5401, 4733, 9775, 4732, - 10143, 5401, 4734, - 10143, 5401, 4938, - 10143, 5401, 5310, - 10143, 5401, 5311, 7259, 0, - 10143, 5401, 5311, 7259, 40, - 10143, 5401, 5311, 7259, 41, 5095, 0, - 10143, 5401, 5311, 7259, 372, - 10143, 5401, 5311, 7259, 686, - 10143, 5401, 5311, 7259, 2572, - 10143, 5401, 5311, 7259, 4068, - 10143, 5401, 5311, 7259, 5364, - 10143, 5401, 5312, - 10143, 5401, 5328, - 10143, 5401, 5338, - 10143, 5401, 5339, 7259, 0, - 10143, 5401, 5339, 7259, 254, - 10143, 5401, 5342, - 10143, 5401, 5343, 7259, 0, - 10143, 5401, 5343, 7259, 690, - 10143, 5401, 5343, 7259, 930, - 10143, 5401, 5343, 7259, 1128, - 10143, 5401, 5343, 7259, 1366, - 10143, 5401, 5343, 7259, 1367, 4088, - 10143, 5401, 5343, 7259, 1688, - 10143, 5401, 5343, 7259, 1796, - 10143, 5401, 5343, 7259, 2310, - 10143, 5401, 5343, 7259, 6142, - 10143, 5401, 5343, 7259, 7890, - 10143, 5401, 5346, - 10143, 5401, 5347, 5041, 5347, 759, 5041, 758, - 10143, 5401, 5347, 5538, - 10143, 5401, 5364, - 10143, 5401, 5398, - 10143, 5401, 5399, 5041, 5399, 5364, - 10143, 5401, 5402, - 10143, 5401, 5482, - 10143, 5401, 5494, - 10143, 5401, 5522, - 10143, 5401, 5644, - 10143, 5401, 5678, - 10143, 5401, 5680, - 10143, 5401, 5681, 7259, 430, - 10143, 5401, 5681, 7259, 7856, - 10143, 5401, 5686, - 10143, 5401, 5694, - 10143, 5401, 5696, - 10143, 5401, 5874, - 10143, 5401, 5932, - 10143, 5401, 6010, - 10143, 5401, 6024, - 10143, 5401, 6042, - 10143, 5401, 6048, - 10143, 5401, 6076, - 10143, 5401, 6078, - 10143, 5401, 6142, - 10143, 5401, 6143, 5041, 6142, - 10143, 5401, 6250, - 10143, 5401, 6252, - 10143, 5401, 6302, - 10143, 5401, 6336, - 10143, 5401, 6404, - 10143, 5401, 6440, - 10143, 5401, 6446, - 10143, 5401, 6468, - 10143, 5401, 6610, - 10143, 5401, 6624, - 10143, 5401, 6644, - 10143, 5401, 6645, 7259, 0, - 10143, 5401, 6645, 7259, 1, 5095, 129, 5095, 220, - 10143, 5401, 6645, 7259, 1, 5095, 1128, - 10143, 5401, 6645, 7259, 1, 5095, 1606, - 10143, 5401, 6645, 7259, 40, - 10143, 5401, 6645, 7259, 41, 5095, 0, - 10143, 5401, 6645, 7259, 41, 5095, 41, 5095, 40, - 10143, 5401, 6645, 7259, 74, - 10143, 5401, 6645, 7259, 78, - 10143, 5401, 6645, 7259, 98, - 10143, 5401, 6645, 7259, 164, - 10143, 5401, 6645, 7259, 200, - 10143, 5401, 6645, 7259, 220, - 10143, 5401, 6645, 7259, 227, 7259, 1946, - 10143, 5401, 6645, 7259, 254, - 10143, 5401, 6645, 7259, 255, 5095, 220, - 10143, 5401, 6645, 7259, 255, 5095, 332, - 10143, 5401, 6645, 7259, 294, - 10143, 5401, 6645, 7259, 332, - 10143, 5401, 6645, 7259, 346, - 10143, 5401, 6645, 7259, 347, 5095, 164, - 10143, 5401, 6645, 7259, 372, - 10143, 5401, 6645, 7259, 515, 5095, 1, 5095, 503, 5095, 370, - 10143, 5401, 6645, 7259, 529, 5095, 672, - 10143, 5401, 6645, 7259, 534, - 10143, 5401, 6645, 7259, 673, 5927, 5538, - 10143, 5401, 6645, 7259, 686, - 10143, 5401, 6645, 7259, 890, - 10143, 5401, 6645, 7259, 1128, - 10143, 5401, 6645, 7259, 1198, - 10143, 5401, 6645, 7259, 1199, 5095, 1198, - 10143, 5401, 6645, 7259, 1238, - 10143, 5401, 6645, 7259, 1367, 4088, - 10143, 5401, 6645, 7259, 1512, - 10143, 5401, 6645, 7259, 1552, - 10143, 5401, 6645, 7259, 1558, - 10143, 5401, 6645, 7259, 1559, 5095, 227, 5095, 0, - 10143, 5401, 6645, 7259, 1688, - 10143, 5401, 6645, 7259, 2337, 5095, 2400, - 10143, 5401, 6645, 7259, 2400, - 10143, 5401, 6645, 7259, 2446, - 10143, 5401, 6645, 7259, 2642, - 10143, 5401, 6645, 7259, 4588, - 10143, 5401, 6645, 7259, 4720, - 10143, 5401, 6645, 7259, 5364, - 10143, 5401, 6645, 7259, 5365, 5095, 5364, - 10143, 5401, 6645, 7259, 5522, - 10143, 5401, 6645, 7259, 6644, - 10143, 5401, 6645, 7259, 7097, 5095, 4069, 5095, 6336, - 10143, 5401, 6645, 7259, 7097, 5095, 4069, 5538, - 10143, 5401, 6645, 9146, - 10143, 5401, 6646, - 10143, 5401, 6647, 4088, - 10143, 5401, 6647, 4089, 5041, 6647, 4089, 2336, - 10143, 5401, 6647, 7259, 2336, - 10143, 5401, 6647, 7259, 2337, 5095, 2400, - 10143, 5401, 6692, - 10143, 5401, 6693, 5041, 6692, - 10143, 5401, 6693, 9102, - 10143, 5401, 6693, 9775, 6692, - 10143, 5401, 6708, - 10143, 5401, 6762, - 10143, 5401, 6763, 4088, - 10143, 5401, 6763, 7259, 0, - 10143, 5401, 6763, 7259, 1, 5095, 134, - 10143, 5401, 6763, 7259, 134, - 10143, 5401, 6770, - 10143, 5401, 6806, - 10143, 5401, 6842, - 10143, 5401, 6843, 639, 7259, 98, - 10143, 5401, 6843, 639, 7259, 312, - 10143, 5401, 6843, 639, 7259, 372, - 10143, 5401, 6843, 639, 7259, 528, - 10143, 5401, 6843, 639, 7259, 968, - 10143, 5401, 6843, 639, 7259, 1198, - 10143, 5401, 6843, 639, 7259, 1367, 4088, - 10143, 5401, 6843, 639, 7259, 4426, - 10143, 5401, 6843, 639, 7259, 7124, - 10143, 5401, 6843, 639, 7259, 7490, - 10143, 5401, 6843, 7877, 7259, 98, - 10143, 5401, 6843, 7877, 7259, 99, 40, - 10143, 5401, 6922, - 10143, 5401, 6932, - 10143, 5401, 6933, 7259, 534, - 10143, 5401, 6933, 7259, 614, - 10143, 5401, 6933, 7259, 1466, - 10143, 5401, 6933, 9775, 6932, - 10143, 5401, 7062, - 10143, 5401, 7068, - 10143, 5401, 7080, - 10143, 5401, 7086, - 10143, 5401, 7096, - 10143, 5401, 7124, - 10143, 5401, 7198, - 10143, 5401, 7304, - 10143, 5401, 7314, - 10143, 5401, 7315, 7259, 40, - 10143, 5401, 7318, - 10143, 5401, 7426, - 10143, 5401, 7490, - 10143, 5401, 7500, - 10143, 5401, 7762, - 10143, 5401, 7794, - 10143, 5401, 7856, - 10143, 5401, 7857, 5041, 7857, 6645, 7259, 41, 5041, 6645, 7259, 40, - 10143, 5401, 7857, 6645, 7259, 41, 5041, 6645, 7259, 40, - 10143, 5401, 7876, - 10143, 5401, 7877, 5041, 7876, - 10143, 5401, 7890, - 10143, 5401, 7892, - 10143, 5401, 7898, - 10143, 5401, 7920, - 10143, 5401, 7996, - 10143, 5401, 8000, - 10143, 5401, 8018, - 10143, 5401, 8019, 7259, 78, - 10143, 5401, 8019, 7259, 347, 5095, 3983, 5538, - 10143, 5401, 8019, 7259, 372, - 10143, 5401, 8019, 7259, 529, 5095, 672, - 10143, 5401, 8019, 7259, 672, - 10143, 5401, 8019, 7259, 673, 5095, 672, - 10143, 5401, 8019, 7259, 1198, - 10143, 5401, 8019, 7259, 1946, - 10143, 5401, 8019, 7259, 2336, - 10143, 5401, 8019, 7259, 2337, 5095, 1, 78, - 10143, 5401, 8019, 7259, 2337, 5095, 672, - 10143, 5401, 8019, 7259, 2337, 5095, 673, 5095, 672, - 10143, 5401, 8019, 7259, 2642, - 10143, 5401, 8156, - 10143, 5401, 8194, - 10143, 5401, 8196, - 10143, 5401, 8200, - 10143, 5401, 8250, - 10143, 5401, 8378, - 10143, 5401, 8756, - 10143, 5401, 8757, 7259, 1566, - 10143, 5401, 9896, - 10143, 8959, 5401, 2001, 9307, 2005, 7126, - 10143, 8959, 5401, 2001, 9307, 2005, 9042, - 10143, 8959, 5401, 2005, 3490, - 10143, 8959, 5401, 2005, 3598, - 10143, 8959, 5401, 2005, 6344, - 10143, 8959, 5401, 2005, 6416, - 10143, 8959, 5401, 2005, 6418, - 10143, 8959, 5401, 2005, 7072, - 10143, 8959, 5401, 2005, 7237, 3844, - 10143, 8959, 5401, 2005, 7237, 9229, 3955, 0, - 10143, 8959, 5401, 2005, 7679, 672, - 10143, 8959, 5401, 2005, 9043, 672, - 10143, 8959, 5401, 2359, 40, - 10143, 8959, 5401, 2359, 672, - 10143, 8959, 5401, 2359, 673, 5538, - 10143, 8959, 5401, 2359, 3844, - 10143, 8959, 5401, 2359, 6416, - 10143, 8959, 5401, 2359, 7068, - 10143, 8959, 5401, 2359, 9229, 3955, 3068, - 10143, 8959, 5401, 2585, 672, - 10143, 8959, 5401, 2585, 673, 5538, - 10143, 8959, 5401, 2585, 3490, - 10143, 8959, 5401, 2585, 3598, - 10143, 8959, 5401, 2585, 6344, - 10143, 8959, 5401, 2585, 6416, - 10143, 8959, 5401, 2585, 6418, - 10143, 8959, 5401, 2585, 7068, - 10143, 8959, 5401, 2585, 7072, - 10143, 8959, 5401, 2585, 8301, 3844, - 10143, 8959, 5401, 2585, 8301, 9229, 3955, 0, - 10143, 8959, 5401, 3943, 40, - 10143, 8959, 5401, 3943, 672, - 10143, 8959, 5401, 3943, 673, 5538, - 10143, 8959, 5401, 3943, 3490, - 10143, 8959, 5401, 3943, 3491, 9229, 3954, - 10143, 8959, 5401, 3943, 3598, - 10143, 8959, 5401, 3943, 3844, - 10143, 8959, 5401, 3943, 6416, - 10143, 8959, 5401, 3943, 6418, - 10143, 8959, 5401, 3943, 7068, - 10143, 8959, 5401, 3943, 7072, - 10143, 8959, 5401, 3943, 8209, 3844, - 10143, 8959, 5401, 3957, 40, - 10143, 8959, 5401, 3957, 672, - 10143, 8959, 5401, 3957, 673, 5538, - 10143, 8959, 5401, 3957, 3490, - 10143, 8959, 5401, 3957, 3491, 9229, 3954, - 10143, 8959, 5401, 3957, 3598, - 10143, 8959, 5401, 3957, 3844, - 10143, 8959, 5401, 3957, 6416, - 10143, 8959, 5401, 3957, 6418, - 10143, 8959, 5401, 3957, 7068, - 10143, 8959, 5401, 3957, 7072, - 10143, 8959, 5401, 3957, 9229, 3955, 6676, - 10143, 8959, 5401, 3957, 9229, 3955, 6677, 0, - 10143, 8959, 5401, 3957, 9229, 3955, 6677, 2, - 10143, 8959, 5401, 3957, 9229, 3955, 7922, - 10143, 8959, 5401, 4855, 40, - 10143, 8959, 5401, 4855, 672, - 10143, 8959, 5401, 4855, 3844, - 10143, 8959, 5401, 4855, 6416, - 10143, 8959, 5401, 4855, 7068, - 10143, 8959, 5401, 4855, 9229, 3955, 7828, - 10143, 8959, 5401, 4855, 9229, 3955, 7829, 0, - 10143, 8959, 5401, 4855, 9229, 3955, 8804, - 10143, 8959, 5401, 4855, 9229, 3955, 8806, - 10143, 8959, 5401, 6313, 40, - 10143, 8959, 5401, 6313, 672, - 10143, 8959, 5401, 6313, 3844, - 10143, 8959, 5401, 6313, 6416, - 10143, 8959, 5401, 6313, 7068, - 10143, 8959, 5401, 6313, 9229, 3955, 5698, - 10143, 8959, 5401, 6313, 9229, 3955, 7316, - 10143, 8959, 5401, 7061, 40, - 10143, 8959, 5401, 7061, 672, - 10143, 8959, 5401, 7061, 3844, - 10143, 8959, 5401, 7061, 6416, - 10143, 8959, 5401, 7061, 7068, - 10143, 8959, 5401, 7061, 9229, 3955, 4331, 0, - 10143, 8959, 5401, 7061, 9229, 3955, 4331, 2, - 10143, 8959, 5401, 7061, 9229, 3955, 6568, - 10143, 8959, 5401, 7069, 7259, 1121, 5095, 1774, - 10143, 8959, 5401, 7069, 7259, 1121, 5095, 3844, - 10143, 8959, 5401, 7245, 672, - 10143, 8959, 5401, 7245, 673, 5538, - 10143, 8959, 5401, 7245, 3490, - 10143, 8959, 5401, 7245, 3598, - 10143, 8959, 5401, 7245, 3599, 9229, 3954, - 10143, 8959, 5401, 7245, 3844, - 10143, 8959, 5401, 7245, 6416, - 10143, 8959, 5401, 7245, 6418, - 10143, 8959, 5401, 7245, 7068, - 10143, 8959, 5401, 7245, 7069, 9229, 3954, - 10143, 8959, 5401, 7245, 7072, - 10143, 8959, 5401, 7245, 7073, 9229, 3954, - 10143, 8959, 5401, 7245, 9229, 3955, 6340, - 10143, 8959, 5401, 7245, 9229, 3955, 6342, - 10143, 8959, 5401, 10484, - 10143, 8959, 5401, 10486, - 10143, 11443, 5401, 2001, 9307, 5747, 8634, - 10143, 11443, 5401, 9409, 6212, - 10143, 11443, 5401, 9409, 10012, - 10143, 11443, 5401, 10043, 6212, - 10151, 8259, 6671, 547, 657, 10978, - 10151, 8259, 6671, 547, 657, 10979, 5741, 5726, - 10151, 8259, 6671, 547, 657, 10979, 5741, 7582, - 10151, 8259, 6671, 547, 657, 10979, 5741, 10010, - 10151, 8259, 6671, 3863, 657, 10978, - 10151, 8259, 6671, 3863, 657, 10979, 5741, 5726, - 10151, 8259, 6671, 3863, 657, 10979, 5741, 7582, - 10151, 8259, 6671, 3863, 657, 10979, 5741, 10010, - 10151, 8259, 6671, 10043, 657, 2533, 4554, - 10151, 8259, 6671, 10043, 657, 2533, 6996, - 10151, 8259, 6671, 10043, 657, 5726, - 10151, 8259, 6671, 10043, 657, 7539, 4554, - 10151, 8259, 6671, 10043, 657, 7539, 6996, - 10151, 8259, 6671, 10043, 5741, 7582, - 10151, 8259, 6671, 10043, 5741, 10010, - 10158, - 10171, 8052, - 10313, 2585, 7807, 6046, - 10313, 6046, - 10313, 6047, 521, 696, - 10313, 6047, 3963, 696, - 10313, 6047, 5741, 2505, 10448, - 10313, 6047, 5741, 2505, 11082, - 10313, 6047, 5741, 7601, 10448, - 10313, 6047, 5741, 7673, 8244, - 10313, 6047, 5741, 10979, 8244, - 10313, 6047, 10449, 401, 9223, 6046, - 10313, 6117, 6046, - 10313, 7357, 6046, - 10313, 7460, - 10313, 7621, 6046, - 10313, 7673, 6046, - 10313, 8065, 7480, - 10313, 8327, 6046, - 10313, 8433, 6046, - 10313, 8777, 5741, 3495, 4555, 521, 696, - 10313, 8777, 5741, 3495, 4555, 3963, 696, - 10313, 8777, 5741, 3495, 4555, 7525, 9223, 8777, 5741, 3495, 6996, - 10313, 8777, 5741, 3495, 4555, 7525, 10313, 8777, 5741, 3495, 6996, - 10313, 8777, 5741, 3495, 6997, 521, 696, - 10313, 8777, 5741, 3495, 6997, 3963, 696, - 10313, 8777, 5741, 3495, 10448, - 10313, 8777, 5741, 3495, 11082, - 10313, 10533, 6046, - 10315, 8580, - 10329, 8258, - 10330, - 10341, 5400, - 10363, 1677, 4580, - 10363, 1931, 5400, - 10363, 2735, 5400, - 10363, 2847, 5400, - 10363, 3645, 5400, - 10363, 3965, 5478, - 10363, 4555, 6229, 8514, - 10363, 4555, 7357, 11424, - 10363, 4555, 8231, 8514, - 10363, 4555, 11424, - 10363, 5095, 5400, - 10363, 6212, - 10363, 6218, - 10363, 6287, 2004, - 10363, 6287, 2358, - 10363, 6287, 2584, - 10363, 6287, 3942, - 10363, 6287, 3956, - 10363, 6287, 4854, - 10363, 6287, 5878, - 10363, 6287, 6312, - 10363, 6287, 7060, - 10363, 6287, 7244, - 10363, 6461, 7444, - 10363, 6659, 7143, 7919, 0, - 10363, 6659, 7143, 7919, 2, - 10363, 6659, 7143, 7919, 4, - 10363, 6659, 7143, 7919, 6, - 10363, 6659, 7143, 7919, 8, - 10363, 6659, 7143, 7919, 10, - 10363, 6659, 7143, 7919, 12, - 10363, 6659, 7143, 7919, 14, - 10363, 6659, 7143, 7919, 16, - 10363, 6659, 7143, 7919, 18, - 10363, 6659, 7143, 7919, 20, - 10363, 6659, 7143, 7919, 22, - 10363, 6659, 7143, 7919, 24, - 10363, 6659, 7143, 7919, 26, - 10363, 6659, 7143, 7919, 28, - 10363, 6659, 7143, 7919, 30, - 10363, 6659, 7143, 7919, 32, - 10363, 6659, 7143, 7919, 34, - 10363, 6659, 7143, 7919, 36, - 10363, 6659, 7143, 7919, 38, - 10363, 6659, 7143, 7919, 40, - 10363, 6659, 7143, 7919, 42, - 10363, 6659, 7143, 7919, 44, - 10363, 6659, 7143, 7919, 46, - 10363, 6659, 7143, 7919, 48, - 10363, 6659, 7143, 7919, 50, - 10363, 6659, 8527, 7919, 0, - 10363, 6659, 8527, 7919, 2, - 10363, 6659, 8527, 7919, 4, - 10363, 6659, 8527, 7919, 6, - 10363, 6659, 8527, 7919, 8, - 10363, 6659, 8527, 7919, 10, - 10363, 6659, 8527, 7919, 12, - 10363, 6659, 8527, 7919, 14, - 10363, 6659, 8527, 7919, 16, - 10363, 6659, 8527, 7919, 18, - 10363, 6659, 8527, 7919, 20, - 10363, 6659, 8527, 7919, 22, - 10363, 6659, 8527, 7919, 24, - 10363, 6659, 8527, 7919, 26, - 10363, 6659, 8527, 7919, 28, - 10363, 6659, 8527, 7919, 30, - 10363, 6659, 8527, 7919, 32, - 10363, 6659, 8527, 7919, 34, - 10363, 6659, 8527, 7919, 36, - 10363, 6659, 8527, 7919, 38, - 10363, 6659, 8527, 7919, 40, - 10363, 6659, 8527, 7919, 42, - 10363, 6659, 8527, 7919, 44, - 10363, 6659, 8527, 7919, 46, - 10363, 6659, 8527, 7919, 48, - 10363, 6659, 8527, 7919, 50, - 10363, 6943, 5400, - 10363, 6997, 6229, 8514, - 10363, 6997, 7357, 11424, - 10363, 6997, 8231, 8514, - 10363, 6997, 11424, - 10363, 7256, - 10363, 7551, 696, - 10363, 7651, 5400, - 10363, 7687, 5400, - 10363, 7940, - 10363, 8031, 5400, - 10363, 9009, 5400, - 10363, 9061, 9134, - 10363, 9134, - 10363, 9308, - 10363, 9853, 4630, - 10363, 10043, 4580, - 10363, 10074, - 10363, 10451, 5400, - 10363, 10535, 4630, - 10363, 10562, - 10363, 10760, - 10363, 10783, 7444, - 10363, 10785, 86, - 10363, 11329, 4630, - 10363, 11779, 5400, - 10363, 11784, - 10367, 11058, - 10383, 4555, 7601, 8514, - 10383, 6117, 8230, - 10383, 6387, 6671, 10042, - 10383, 6997, 7601, 8514, - 10383, 7357, 7582, - 10383, 7805, 7726, - 10383, 7805, 7919, 0, - 10383, 7805, 7919, 8, - 10383, 7805, 7919, 16, - 10383, 7805, 7919, 28, - 10383, 7805, 7919, 40, - 10383, 7805, 7919, 66, - 10383, 7805, 7919, 166, - 10383, 7805, 7919, 174, - 10383, 7805, 7919, 398, - 10383, 7805, 7919, 566, - 10383, 7805, 7919, 570, - 10383, 7805, 7919, 574, - 10383, 7805, 7919, 596, - 10383, 7805, 7919, 598, - 10383, 7805, 7919, 600, - 10383, 7805, 7919, 604, - 10383, 7805, 7919, 608, - 10383, 7805, 7919, 2708, - 10383, 7805, 7919, 2722, - 10383, 7805, 7919, 2804, - 10383, 7805, 7919, 2848, - 10383, 7805, 7919, 5412, - 10383, 7805, 7919, 6196, - 10383, 7805, 7919, 6492, - 10383, 7805, 7919, 6560, - 10383, 7805, 7919, 6732, - 10383, 7805, 7919, 6802, - 10383, 7805, 7919, 6930, - 10383, 7805, 7919, 6994, - 10383, 7805, 7919, 7878, - 10383, 7805, 7919, 8308, - 10383, 7805, 7919, 8548, - 10383, 7805, 7919, 8850, - 10383, 7805, 7919, 9016, - 10383, 7805, 7919, 9194, - 10383, 7805, 7919, 10586, - 10383, 7805, 7919, 11046, - 10383, 7805, 7919, 11076, - 10383, 7805, 7919, 11138, - 10383, 7805, 7919, 11146, - 10383, 7805, 7919, 11382, - 10383, 7805, 7919, 11404, - 10383, 7805, 7919, 11406, - 10383, 7805, 7919, 11454, - 10383, 7805, 7919, 11456, - 10383, 7805, 7919, 11460, - 10383, 7805, 7919, 11658, - 10383, 7805, 7919, 11660, - 10383, 7805, 7919, 11834, - 10383, 7805, 7919, 12304, - 10383, 7805, 7919, 12306, - 10383, 9223, 6046, - 10383, 9683, 7919, 0, - 10383, 9683, 7919, 8, - 10383, 9683, 7919, 16, - 10383, 9683, 7919, 26, - 10383, 9683, 7919, 28, - 10383, 9683, 7919, 40, - 10383, 9683, 7919, 220, - 10383, 9683, 7919, 222, - 10383, 9683, 7919, 226, - 10383, 9683, 7919, 230, - 10383, 9683, 7919, 234, - 10383, 9683, 7919, 286, - 10383, 9683, 7919, 290, - 10383, 9683, 7919, 294, - 10383, 9683, 7919, 302, - 10383, 9683, 7919, 306, - 10383, 9683, 7919, 342, - 10383, 9683, 7919, 346, - 10383, 9683, 7919, 352, - 10383, 9683, 7919, 358, - 10383, 9683, 7919, 362, - 10383, 9683, 7919, 370, - 10383, 9683, 7919, 372, - 10383, 9683, 7919, 380, - 10383, 9683, 7919, 386, - 10383, 9683, 7919, 390, - 10383, 9683, 7919, 472, - 10383, 9683, 7919, 474, - 10383, 9683, 7919, 476, - 10383, 9683, 7919, 478, - 10383, 9683, 7919, 482, - 10383, 9683, 7919, 486, - 10383, 9683, 7919, 488, - 10383, 9683, 7919, 492, - 10383, 9683, 7919, 496, - 10383, 9683, 7919, 502, - 10383, 9683, 7919, 510, - 10383, 9683, 7919, 514, - 10383, 9683, 7919, 518, - 10383, 9683, 7919, 520, - 10383, 9683, 7919, 526, - 10383, 9683, 7919, 566, - 10383, 9683, 7919, 576, - 10383, 9683, 7919, 596, - 10383, 9683, 7919, 604, - 10383, 9683, 7919, 608, - 10383, 9683, 7919, 7143, 0, - 10383, 9683, 7919, 7143, 8, - 10383, 9683, 7919, 7143, 16, - 10383, 9683, 7919, 7143, 28, - 10383, 9683, 7919, 7143, 40, - 10383, 9683, 7919, 7143, 526, - 10383, 9683, 7919, 7143, 596, - 10383, 9683, 7919, 7143, 604, - 10383, 9683, 7919, 7143, 608, - 10383, 9683, 7981, 960, - 10383, 9683, 8397, 7155, 4630, - 10383, 9683, 11651, 7155, 4630, - 10383, 10313, 6046, - 10383, 10449, 6046, - 10383, 11083, 6046, - 10383, 11355, 3965, 5478, - 10383, 11355, 6218, - 10383, 12465, 10527, 7155, 4630, - 10387, 10131, 7964, + 9665, 5758, + 9666, + 9671, 4926, + 9676, + 9683, 8405, 70, + 9683, 8405, 260, + 9683, 8405, 438, + 9683, 8405, 444, + 9683, 8405, 536, + 9683, 8405, 600, + 9683, 8405, 706, + 9683, 8405, 708, + 9683, 8405, 712, + 9683, 8405, 732, + 9683, 8405, 736, + 9683, 8405, 740, + 9683, 8405, 802, + 9683, 8405, 1090, + 9683, 8405, 1092, + 9683, 8405, 1100, + 9683, 8405, 1120, + 9683, 8405, 1150, + 9683, 8405, 1210, + 9683, 8405, 1472, + 9683, 8405, 1474, + 9683, 8405, 2110, + 9683, 8405, 2154, + 9683, 8405, 2164, + 9683, 8405, 2186, + 9683, 8405, 2726, + 9683, 8405, 2884, + 9683, 8405, 2938, + 9683, 8405, 3048, + 9683, 8405, 3060, + 9683, 8405, 3178, + 9683, 8405, 4048, + 9683, 8405, 4548, + 9683, 8405, 4754, + 9683, 8405, 4892, + 9683, 8405, 5004, + 9683, 8405, 5382, + 9683, 8405, 5406, + 9683, 8405, 5560, + 9683, 8405, 5854, + 9683, 8405, 5922, + 9683, 8405, 6124, + 9683, 8405, 6432, + 9683, 8405, 6886, + 9683, 8405, 7012, + 9683, 8405, 7684, + 9683, 8405, 8054, + 9683, 8405, 9466, + 9689, 9610, + 9693, 445, 11098, + 9693, 445, 12472, + 9693, 6377, 11099, 6377, 8167, 5758, + 9693, 6377, 12473, 6377, 8167, 5758, + 9693, 7173, 9692, + 9695, 5759, 10702, + 9695, 5759, 11392, + 9695, 5759, 11418, + 9695, 7803, 5759, 4087, 9406, + 9695, 7803, 5759, 4087, 10272, + 9695, 7803, 5759, 4087, 11150, + 9695, 7803, 5759, 4087, 11406, + 9695, 7803, 5759, 4087, 12024, + 9695, 7803, 5759, 4087, 12468, + 9695, 7803, 5759, 7043, 10272, + 9695, 7803, 5759, 7043, 11150, + 9695, 7803, 5759, 7043, 11406, + 9695, 7803, 5759, 7059, 4056, + 9695, 7803, 5759, 9406, + 9695, 7803, 5759, 9407, 1339, 4087, 11408, + 9695, 7803, 5759, 9407, 1339, 11408, + 9695, 7803, 5759, 9407, 1339, 12024, + 9695, 7803, 5759, 11408, + 9695, 7803, 5759, 12024, + 9695, 7803, 5759, 12468, + 9695, 8405, 3259, 9032, + 9695, 8405, 7962, + 9695, 8405, 8176, + 9695, 8405, 8326, + 9695, 8405, 8558, + 9695, 8405, 8904, + 9695, 8405, 8966, + 9695, 8405, 8978, + 9695, 8405, 8988, + 9695, 8405, 9012, + 9695, 8405, 9141, 9424, + 9695, 8405, 9141, 9492, + 9695, 8405, 9141, 9656, + 9695, 8405, 9256, + 9695, 8405, 9280, + 9695, 8405, 9330, + 9695, 8405, 9352, + 9695, 8405, 9387, 11692, + 9695, 8405, 9464, + 9695, 8405, 9534, + 9695, 8405, 9622, + 9695, 8405, 9655, 9146, + 9695, 8405, 9655, 9302, + 9695, 8405, 9655, 9376, + 9695, 8405, 9655, 9988, + 9695, 8405, 9759, 9656, + 9695, 8405, 9759, 10499, 12090, + 9695, 8405, 9759, 11692, + 9695, 8405, 9812, + 9695, 8405, 9818, + 9695, 8405, 9844, + 9695, 8405, 9856, + 9695, 8405, 10248, + 9695, 8405, 10270, + 9695, 8405, 11044, + 9695, 8405, 11064, + 9695, 8405, 11133, 9424, + 9695, 8405, 11133, 9492, + 9695, 8405, 11133, 9656, + 9695, 8405, 11411, 9032, + 9695, 8405, 11411, 9070, + 9695, 8405, 11411, 9146, + 9695, 8405, 11411, 9302, + 9695, 8405, 11411, 9376, + 9695, 8405, 11411, 9392, + 9695, 8405, 11411, 9576, + 9695, 8405, 11411, 9768, + 9695, 8405, 11411, 9988, + 9695, 8405, 11411, 10652, + 9695, 8405, 12077, 9032, + 9695, 8405, 12077, 9070, + 9695, 8405, 12077, 9146, + 9695, 8405, 12077, 9302, + 9695, 8405, 12077, 9376, + 9695, 8405, 12077, 9392, + 9695, 8405, 12077, 9576, + 9695, 8405, 12077, 9768, + 9695, 8405, 12077, 9988, + 9695, 8405, 12077, 10652, + 9695, 12133, 11670, + 9701, 9601, 9898, + 9705, 6741, 569, 445, 11098, + 9705, 6741, 569, 445, 11099, 6121, 1045, 8318, + 9705, 6741, 569, 445, 12472, + 9705, 6741, 569, 445, 12473, 6121, 1045, 8318, + 9707, 7085, 444, + 9707, 7085, 720, + 9709, 5912, + 9709, 5913, 445, 6741, 568, + 9712, + 9718, + 9719, 6121, 9546, + 9722, + 9733, 1045, 10374, + 9733, 4215, 1045, 12132, + 9733, 5444, + 9733, 7172, + 9733, 7593, 8056, + 9733, 7710, + 9733, 8649, 10001, 7580, + 9733, 8744, + 9733, 9279, 10001, 7580, + 9733, 9898, + 9753, 10260, + 9761, 5759, 8916, + 9761, 7803, 5759, 16, + 9761, 7803, 5759, 40, + 9761, 8405, 0, + 9761, 8405, 16, + 9761, 8405, 40, + 9761, 8405, 100, + 9761, 8405, 138, + 9761, 8405, 216, + 9761, 8405, 236, + 9761, 8405, 306, + 9761, 8405, 332, + 9761, 8405, 364, + 9761, 8405, 392, + 9761, 8405, 462, + 9761, 8405, 524, + 9761, 8405, 556, + 9761, 8405, 622, + 9761, 8405, 652, + 9761, 8405, 2030, + 9783, 12369, 11765, 10716, + 9783, 13049, 11765, 10716, + 9789, 327, 521, 1612, + 9789, 327, 521, 1613, 3831, 1915, 858, + 9789, 4927, 723, 7045, 4376, + 9789, 4927, 723, 7045, 4382, + 9789, 4927, 887, 1904, + 9789, 4927, 1307, 7463, 4376, + 9789, 4927, 1307, 7463, 4382, + 9789, 4927, 2417, 3895, 8743, 5668, + 9789, 4927, 2733, 6374, + 9789, 4927, 3067, 1905, 7745, 5669, 364, + 9789, 4927, 3793, 5709, 3067, 1904, + 9789, 4927, 4355, 3067, 1905, 685, 4355, 7745, 364, + 9789, 4927, 4355, 3067, 1905, 685, 5559, 3759, 364, + 9789, 4927, 4355, 3067, 1905, 11377, 0, + 9789, 4927, 4355, 7744, + 9789, 4927, 5141, 6539, 2133, 3174, + 9789, 4927, 5141, 6539, 5659, 7462, + 9789, 4927, 5307, 5668, + 9789, 4927, 5307, 7744, + 9789, 4927, 5307, 7745, 5668, + 9789, 4927, 5543, 4351, 5668, + 9789, 4927, 5668, + 9789, 4927, 6523, 7462, + 9789, 4927, 6525, 5709, 225, 1905, 7436, + 9789, 4927, 6527, 3067, 1904, + 9789, 4927, 6543, 3067, 1905, 5421, 5669, 364, + 9789, 4927, 6543, 6373, 7463, 369, 4895, 858, + 9789, 4927, 6543, 6373, 7463, 3831, 1915, 858, + 9789, 4927, 7179, 3067, 225, 1905, 7436, + 9789, 4927, 7493, 5668, + 9789, 4927, 7745, 5668, + 9789, 4927, 8564, + 9789, 4927, 9099, 3067, 1905, 5655, 364, + 9789, 4927, 9099, 3809, 8653, 3067, 1905, 5655, 364, + 9789, 4927, 9320, + 9789, 4927, 9363, 3067, 1905, 4939, 364, + 9789, 4927, 9363, 3809, 8653, 3067, 1905, 4939, 364, + 9789, 4927, 10795, 7745, 6528, + 9789, 4927, 12955, 7744, + 9789, 5759, 1301, 859, 9634, + 9789, 5759, 1301, 1889, 9634, + 9789, 5759, 1753, 2733, 858, + 9789, 5759, 1755, 7462, + 9789, 5759, 1865, 7746, + 9789, 5759, 2133, 3175, 1983, 138, + 9789, 5759, 2547, 4842, + 9789, 5759, 3035, 7746, + 9789, 5759, 4937, 858, + 9789, 5759, 5531, 1985, 4256, + 9789, 5759, 5531, 1985, 4352, + 9789, 5759, 5531, 1985, 5531, 4096, + 9789, 5759, 5531, 1985, 6862, + 9789, 5759, 5531, 4097, 4256, + 9789, 5759, 5531, 4097, 4352, + 9789, 5759, 5531, 4097, 5531, 1984, + 9789, 5759, 5531, 4097, 6862, + 9789, 5759, 5557, 547, 2031, 516, + 9789, 5759, 5559, 3758, + 9789, 5759, 6179, 7462, + 9789, 6689, 2170, + 9789, 6689, 2540, + 9789, 6689, 2778, + 9789, 6689, 4200, + 9789, 6689, 4214, + 9789, 6689, 4389, 2170, + 9789, 6689, 4389, 2540, + 9789, 6689, 4389, 2778, + 9789, 6689, 4389, 4200, + 9789, 6689, 4389, 4214, + 9789, 6689, 4389, 5190, + 9789, 6689, 4389, 6260, + 9789, 6689, 4389, 6722, + 9789, 6689, 4389, 7508, + 9789, 6689, 4389, 7694, + 9789, 6689, 5190, + 9789, 6689, 6260, + 9789, 6689, 6722, + 9789, 6689, 7508, + 9789, 6689, 7694, + 9789, 7803, 5759, 8, + 9789, 7803, 5759, 16, + 9789, 7803, 5759, 28, + 9789, 7803, 5759, 40, + 9789, 7803, 5759, 58, + 9789, 7803, 5759, 162, + 9789, 7803, 5759, 266, + 9789, 7803, 5759, 440, + 9789, 7803, 5759, 606, + 9789, 7803, 5759, 9827, 22, + 9789, 7803, 5759, 9827, 34, + 9789, 7803, 5759, 9827, 344, + 9789, 7803, 5759, 9827, 518, + 9789, 7803, 5759, 10489, 16, + 9789, 7803, 5759, 10489, 266, + 9789, 8405, 0, + 9789, 8405, 52, + 9789, 8405, 100, + 9789, 8405, 116, + 9789, 8405, 138, + 9789, 8405, 216, + 9789, 8405, 236, + 9789, 8405, 292, + 9789, 8405, 306, + 9789, 8405, 332, + 9789, 8405, 364, + 9789, 8405, 392, + 9789, 8405, 462, + 9789, 8405, 510, + 9789, 8405, 524, + 9789, 8405, 556, + 9789, 8405, 622, + 9789, 8405, 652, + 9789, 8405, 670, + 9789, 8405, 792, + 9789, 8405, 884, + 9789, 8405, 974, + 9789, 8405, 996, + 9789, 8405, 1080, + 9789, 8405, 1260, + 9789, 8405, 1612, + 9789, 8405, 1642, + 9789, 8405, 2030, + 9789, 8405, 2076, + 9789, 8405, 2126, + 9789, 8405, 2212, + 9789, 8405, 2438, + 9789, 8405, 2516, + 9789, 8405, 2566, + 9789, 8405, 2678, + 9789, 8405, 2732, + 9789, 8405, 2746, + 9789, 8405, 3146, + 9789, 8405, 4016, + 9789, 8405, 4140, + 9789, 8405, 4782, + 9789, 8405, 5978, + 9789, 8405, 5994, + 9789, 8405, 11631, 510, + 9789, 8775, 2089, 112, + 9789, 8775, 2089, 113, 3831, 7904, + 9789, 8775, 2089, 113, 4353, 7904, + 9789, 8775, 2089, 113, 5307, 7904, + 9789, 8775, 2399, 2420, + 9789, 8775, 2399, 2421, 5543, 4350, + 9789, 8775, 4119, 112, + 9789, 8775, 5421, 462, + 9789, 8775, 7333, 4258, + 9789, 10307, 5759, 3877, 7462, + 9789, 10307, 5759, 4859, 7462, + 9789, 10585, 436, + 9789, 11257, 8405, 0, + 9789, 11257, 8405, 52, + 9789, 11257, 8405, 100, + 9789, 11257, 8405, 116, + 9789, 11257, 8405, 138, + 9789, 11257, 8405, 216, + 9789, 11257, 8405, 236, + 9789, 11257, 8405, 292, + 9789, 11257, 8405, 306, + 9789, 11257, 8405, 332, + 9789, 11257, 8405, 364, + 9789, 11257, 8405, 392, + 9789, 11257, 8405, 462, + 9789, 11257, 8405, 510, + 9789, 11257, 8405, 524, + 9789, 11257, 8405, 556, + 9789, 11257, 8405, 622, + 9789, 11257, 8405, 652, + 9789, 11257, 8405, 670, + 9789, 11257, 8405, 792, + 9789, 11257, 8405, 884, + 9789, 11257, 8405, 974, + 9789, 11257, 8405, 996, + 9789, 11257, 8405, 1080, + 9789, 11257, 8405, 1260, + 9789, 11257, 8405, 1612, + 9789, 11257, 8405, 2030, + 9789, 11257, 8405, 2076, + 9789, 11257, 8405, 2126, + 9789, 11257, 8405, 2212, + 9789, 11257, 8405, 2516, + 9789, 11257, 8405, 2566, + 9789, 11257, 8405, 2678, + 9789, 11257, 8405, 2732, + 9789, 11257, 8405, 2746, + 9789, 11257, 8405, 3146, + 9789, 11257, 8405, 4016, + 9789, 11257, 8405, 4140, + 9789, 11257, 8405, 4782, + 9789, 11257, 8405, 5978, + 9789, 11257, 8405, 5994, + 9789, 11257, 8405, 11631, 510, + 9789, 11257, 8405, 11631, 622, + 9789, 11257, 8405, 11631, 652, + 9789, 12405, 5759, 5661, 4255, 6371, 7462, + 9789, 12405, 5759, 7497, 8858, + 9789, 12405, 5759, 7907, 462, + 9789, 12423, 5759, 3845, 5892, + 9789, 12423, 5759, 5641, 6368, + 9789, 12423, 5759, 6909, 3764, + 9789, 12423, 5759, 7101, 3764, + 9793, 1177, 4194, + 9793, 1177, 4830, + 9793, 1177, 6116, + 9793, 1177, 6716, + 9793, 1177, 7812, + 9793, 1177, 8290, + 9793, 1177, 9786, + 9793, 1177, 10344, + 9811, 2779, 8289, 6434, + 9811, 6434, + 9811, 6435, 569, 760, + 9811, 6435, 4221, 760, + 9811, 6435, 6121, 2697, 11096, + 9811, 6435, 6121, 2697, 11764, + 9811, 6435, 6121, 8153, 8758, + 9811, 6435, 6121, 11649, 8758, + 9811, 6435, 11097, 429, 10959, 6434, + 9811, 6505, 6434, + 9811, 7821, 6434, + 9811, 7821, 6435, 439, 10416, + 9811, 7821, 6435, 439, 10417, 6121, 10677, 760, + 9811, 7821, 6435, 439, 10417, 6121, 11649, 760, + 9811, 7821, 6435, 4221, 760, + 9811, 7821, 8153, 6434, + 9811, 7821, 8153, 6435, 439, 10416, + 9811, 7924, + 9811, 8097, 6434, + 9811, 8153, 6434, + 9811, 8561, 7944, + 9811, 8849, 6434, + 9811, 9327, 6121, 3713, 4849, 569, 760, + 9811, 9327, 6121, 3713, 4849, 4221, 760, + 9811, 9327, 6121, 3713, 4849, 7991, 9811, 9327, 6121, 3713, 7442, + 9811, 9327, 6121, 3713, 4849, 7991, 10959, 9327, 6121, 3713, 7442, + 9811, 9327, 6121, 3713, 7443, 569, 760, + 9811, 9327, 6121, 3713, 7443, 4221, 760, + 9811, 9327, 6121, 3713, 11096, + 9811, 9327, 6121, 3713, 11764, + 9811, 11191, 6434, + 9811, 11875, 6435, 4221, 7593, 8056, + 9821, 4390, + 9835, 5758, + 9843, 4390, + 9853, 7931, 4213, 9680, + 9853, 11345, 10582, + 9858, + 9867, 5758, + 9880, + 9891, 4223, 5836, + 9891, 6616, + 9891, 7593, 8405, 116, + 9891, 7593, 8405, 130, + 9891, 7593, 8405, 138, + 9891, 7593, 8405, 166, + 9891, 7593, 8405, 186, + 9891, 7593, 8405, 246, + 9891, 7593, 8405, 292, + 9891, 7593, 8405, 430, + 9891, 7593, 8405, 510, + 9891, 7593, 8405, 568, + 9891, 7593, 8405, 616, + 9891, 7593, 8405, 656, + 9891, 7593, 8405, 670, + 9891, 7593, 8405, 744, + 9891, 7593, 8405, 784, + 9891, 7593, 8405, 884, + 9891, 7593, 8405, 1094, + 9891, 7593, 8405, 1152, + 9891, 7593, 8405, 1276, + 9891, 7593, 8405, 1488, + 9891, 7593, 8405, 1600, + 9891, 7593, 8405, 1602, + 9891, 7593, 8405, 1894, + 9891, 7593, 8405, 2092, + 9891, 7593, 8405, 2206, + 9891, 7593, 8405, 2404, + 9891, 7593, 8405, 2506, + 9891, 7593, 8405, 2516, + 9891, 7593, 8405, 2862, + 9891, 7593, 8405, 2958, + 9891, 7593, 8405, 3148, + 9891, 7593, 8405, 3892, + 9891, 7593, 8405, 4314, + 9891, 7593, 8405, 4636, + 9891, 7593, 8405, 4886, + 9891, 7593, 8405, 5434, + 9891, 7593, 8405, 5948, + 9891, 7593, 8405, 6214, + 9891, 7593, 10301, 1095, 6214, + 9891, 7593, 10301, 1895, 1094, + 9891, 7593, 10301, 1895, 1488, + 9891, 7593, 10301, 1895, 2092, + 9891, 7593, 10301, 1895, 2958, + 9891, 7593, 10301, 2863, 2092, + 9891, 8306, + 9891, 9063, 8405, 116, + 9891, 9063, 8405, 130, + 9891, 9063, 8405, 138, + 9891, 9063, 8405, 166, + 9891, 9063, 8405, 186, + 9891, 9063, 8405, 246, + 9891, 9063, 8405, 292, + 9891, 9063, 8405, 430, + 9891, 9063, 8405, 510, + 9891, 9063, 8405, 568, + 9891, 9063, 8405, 616, + 9891, 9063, 8405, 656, + 9891, 9063, 8405, 670, + 9891, 9063, 8405, 744, + 9891, 9063, 8405, 784, + 9891, 9063, 8405, 884, + 9891, 9063, 8405, 1094, + 9891, 9063, 8405, 1152, + 9891, 9063, 8405, 1276, + 9891, 9063, 8405, 1488, + 9891, 9063, 8405, 1600, + 9891, 9063, 8405, 1602, + 9891, 9063, 8405, 1894, + 9891, 9063, 8405, 2092, + 9891, 9063, 8405, 2206, + 9891, 9063, 8405, 2404, + 9891, 9063, 8405, 2506, + 9891, 9063, 8405, 2516, + 9891, 9063, 8405, 2862, + 9891, 9063, 8405, 2958, + 9891, 9063, 8405, 3148, + 9891, 9063, 8405, 3892, + 9891, 9063, 8405, 4314, + 9891, 9063, 8405, 4636, + 9891, 9063, 8405, 4886, + 9891, 9063, 8405, 5434, + 9891, 9063, 8405, 5948, + 9891, 9063, 8405, 6214, + 9891, 10157, 4926, + 9891, 10339, 8405, 4849, 4389, 5550, + 9891, 10469, 4926, + 9891, 11424, + 9891, 12017, 4926, + 9891, 12391, 4926, + 9898, + 9899, 10374, + 9900, + 9907, 3229, 3228, + 9907, 5759, 2811, 7438, + 9907, 5759, 2811, 8030, + 9907, 5759, 6502, + 9907, 5759, 6556, + 9907, 5759, 8768, + 9907, 5759, 9628, + 9907, 6545, 5762, + 9907, 6545, 9570, + 9907, 6545, 11156, + 9907, 6689, 2170, + 9907, 6689, 2540, + 9907, 6689, 2778, + 9907, 6689, 4200, + 9907, 6689, 4214, + 9907, 6689, 5190, + 9907, 6689, 6260, + 9907, 6689, 6722, + 9907, 6689, 7508, + 9907, 6689, 7694, + 9907, 7334, + 9907, 7803, 5759, 333, 7094, + 9907, 7803, 5759, 333, 7095, 8796, + 9907, 7803, 5759, 511, 5536, + 9907, 7803, 5759, 511, 5537, 8796, + 9907, 7803, 5759, 2810, + 9907, 7803, 5759, 2811, 5638, + 9907, 7803, 5759, 5844, + 9907, 7803, 5759, 5845, 4602, + 9907, 7803, 5759, 7362, + 9907, 7803, 5759, 7363, 8796, + 9907, 7803, 5759, 8788, + 9907, 7803, 5759, 8789, 5536, + 9907, 7803, 5759, 8789, 5537, 8796, + 9907, 7803, 5759, 8789, 8796, + 9907, 7803, 5759, 8796, + 9907, 7826, + 9907, 8405, 100, + 9907, 8405, 101, 9396, + 9907, 8405, 116, + 9907, 8405, 117, 4822, + 9907, 8405, 138, + 9907, 8405, 139, 4920, + 9907, 8405, 139, 7195, 10704, + 9907, 8405, 139, 7195, 11106, + 9907, 8405, 165, 7488, + 9907, 8405, 216, + 9907, 8405, 217, 4346, + 9907, 8405, 236, + 9907, 8405, 292, + 9907, 8405, 293, 4632, + 9907, 8405, 306, + 9907, 8405, 307, 11106, + 9907, 8405, 332, + 9907, 8405, 333, 7094, + 9907, 8405, 333, 7095, 8796, + 9907, 8405, 364, + 9907, 8405, 392, + 9907, 8405, 393, 8632, + 9907, 8405, 462, + 9907, 8405, 463, 7020, + 9907, 8405, 510, + 9907, 8405, 511, 5536, + 9907, 8405, 511, 5537, 8796, + 9907, 8405, 524, + 9907, 8405, 525, 5626, + 9907, 8405, 525, 5634, + 9907, 8405, 556, + 9907, 8405, 557, 5888, + 9907, 8405, 557, 7086, + 9907, 8405, 557, 7195, 11106, + 9907, 8405, 613, 7488, + 9907, 8405, 622, + 9907, 8405, 652, + 9907, 8405, 1579, 7488, + 9907, 8405, 2030, + 9907, 8405, 2126, + 9907, 8405, 3129, 7488, + 9907, 8405, 4753, 7488, + 9907, 8405, 6037, 7488, + 9907, 8405, 6390, + 9907, 8405, 6391, 8796, + 9907, 8405, 6726, + 9907, 8405, 6986, + 9907, 8405, 6987, 8796, + 9907, 8405, 7312, + 9907, 8405, 7313, 8796, + 9907, 8405, 7760, + 9907, 8405, 7761, 8796, + 9907, 8405, 7914, + 9907, 8405, 7957, 7488, + 9907, 8566, + 9907, 9483, 8775, 3986, + 9907, 9483, 8775, 3987, 4266, + 9907, 9483, 8775, 3987, 8768, + 9907, 9483, 8775, 4060, + 9907, 9483, 8775, 4090, + 9907, 9483, 8775, 4106, + 9907, 9483, 8775, 4128, + 9907, 9483, 8775, 6632, + 9907, 9483, 8775, 6638, + 9907, 9483, 8775, 6678, + 9907, 9483, 8775, 10767, 4344, + 9907, 9483, 8775, 10767, 6492, + 9907, 9483, 8775, 10767, 6732, + 9907, 9483, 8775, 10767, 7670, + 9907, 9483, 8775, 10767, 8350, + 9907, 9483, 8775, 10767, 8351, 6121, 9378, + 9907, 9483, 8775, 10767, 8352, + 9907, 9483, 8775, 10767, 8353, 6121, 9378, + 9907, 9483, 8775, 10767, 9378, + 9907, 9483, 8775, 11091, 5385, 5396, + 9907, 9483, 8775, 11091, 5385, 5432, + 9907, 9483, 8775, 11091, 5385, 5452, + 9907, 9483, 8775, 11091, 8065, 5436, + 9907, 9483, 8775, 11091, 8065, 5440, + 9907, 9483, 8775, 11761, 5385, 958, + 9907, 9483, 8775, 11761, 5385, 1052, + 9907, 9483, 8775, 11761, 8065, 2644, + 9907, 9483, 8775, 11761, 8065, 2758, + 9907, 10398, + 9919, 6789, 8405, 14, + 9919, 6789, 8405, 20, + 9919, 6789, 8405, 30, + 9919, 6789, 8405, 38, + 9919, 8405, 0, + 9919, 8405, 2, + 9919, 8405, 4, + 9919, 8405, 6, + 9919, 8405, 8, + 9919, 8405, 10, + 9919, 8405, 12, + 9919, 8405, 14, + 9919, 8405, 16, + 9919, 8405, 18, + 9919, 8405, 20, + 9919, 8405, 22, + 9919, 8405, 24, + 9919, 8405, 26, + 9919, 8405, 28, + 9919, 8405, 30, + 9919, 8405, 32, + 9919, 8405, 34, + 9919, 8405, 36, + 9919, 8405, 38, + 9919, 8405, 40, + 9919, 8405, 42, + 9919, 8405, 46, + 9919, 8405, 50, + 9919, 8405, 72, + 9919, 8405, 78, + 9919, 8405, 80, + 9919, 8405, 92, + 9919, 8405, 112, + 9919, 8405, 124, + 9919, 8405, 162, + 9919, 8405, 166, + 9919, 8405, 168, + 9919, 8405, 176, + 9919, 8405, 182, + 9919, 8405, 226, + 9919, 8405, 230, + 9919, 8405, 264, + 9919, 8405, 272, + 9919, 8405, 280, + 9919, 8405, 286, + 9919, 8405, 296, + 9919, 8405, 400, + 9919, 8405, 436, + 9919, 8405, 440, + 9919, 8405, 450, + 9919, 8405, 530, + 9919, 8405, 674, + 9919, 8405, 676, + 9919, 8405, 722, + 9919, 8405, 724, + 9919, 8405, 1110, + 9919, 8405, 1112, + 9919, 8405, 1490, + 9919, 8405, 2034, + 9919, 8405, 2172, + 9919, 8405, 2174, + 9919, 8405, 2814, + 9919, 8405, 3238, + 9919, 8405, 3286, + 9919, 8405, 4610, + 9923, 1109, 429, 9664, + 9923, 7803, 5759, 8, + 9923, 7803, 5759, 16, + 9923, 7803, 5759, 28, + 9923, 7803, 5759, 40, + 9923, 7803, 5759, 66, + 9923, 8405, 0, + 9923, 8405, 100, + 9923, 8405, 116, + 9923, 8405, 138, + 9923, 8405, 216, + 9923, 8405, 236, + 9923, 8405, 292, + 9923, 8405, 306, + 9923, 8405, 332, + 9923, 8405, 364, + 9923, 8405, 392, + 9923, 8405, 462, + 9923, 8405, 510, + 9923, 8405, 524, + 9923, 8405, 556, + 9923, 8405, 610, + 9923, 8405, 652, + 9923, 8405, 1946, + 9923, 8405, 2030, + 9923, 8405, 2096, + 9923, 8405, 2126, + 9923, 8405, 5166, + 9923, 8405, 5294, + 9923, 9556, + 9924, + 9928, + 9931, 11269, 0, + 9931, 11269, 4, + 9931, 11269, 8, + 9931, 11269, 10, + 9931, 11269, 16, + 9931, 11269, 20, + 9931, 11269, 22, + 9931, 11269, 24, + 9931, 11269, 26, + 9931, 11269, 28, + 9931, 11269, 30, + 9931, 11269, 32, + 9931, 11269, 34, + 9931, 11269, 36, + 9931, 11269, 38, + 9931, 11269, 48, + 9931, 11269, 58, + 9931, 11269, 72, + 9931, 11269, 80, + 9931, 11269, 116, + 9931, 11269, 122, + 9931, 11269, 126, + 9931, 11269, 130, + 9931, 11269, 176, + 9931, 11269, 196, + 9931, 11269, 198, + 9931, 11269, 202, + 9931, 11269, 208, + 9931, 11269, 244, + 9931, 11269, 266, + 9931, 11269, 274, + 9931, 11269, 306, + 9931, 11269, 310, + 9931, 11269, 314, + 9931, 11269, 322, + 9931, 11269, 330, + 9931, 11269, 332, + 9931, 11269, 336, + 9931, 11269, 338, + 9931, 11269, 340, + 9931, 11269, 350, + 9931, 11269, 364, + 9931, 11269, 368, + 9931, 11269, 372, + 9931, 11269, 374, + 9931, 11269, 380, + 9931, 11269, 392, + 9931, 11269, 396, + 9931, 11269, 400, + 9931, 11269, 402, + 9931, 11269, 404, + 9931, 11269, 412, + 9931, 11269, 438, + 9931, 11269, 440, + 9931, 11269, 462, + 9931, 11269, 468, + 9931, 11269, 476, + 9931, 11269, 480, + 9931, 11269, 496, + 9931, 11269, 500, + 9931, 11269, 502, + 9931, 11269, 510, + 9931, 11269, 512, + 9931, 11269, 514, + 9931, 11269, 516, + 9931, 11269, 524, + 9931, 11269, 526, + 9931, 11269, 530, + 9931, 11269, 532, + 9931, 11269, 536, + 9931, 11269, 550, + 9931, 11269, 556, + 9931, 11269, 560, + 9931, 11269, 562, + 9931, 11269, 564, + 9931, 11269, 568, + 9931, 11269, 622, + 9931, 11269, 626, + 9931, 11269, 630, + 9931, 11269, 632, + 9931, 11269, 652, + 9931, 11269, 654, + 9931, 11269, 656, + 9931, 11269, 660, + 9931, 11269, 690, + 9931, 11269, 854, + 9931, 11269, 889, 5758, + 9931, 11269, 898, + 9931, 11269, 914, + 9931, 11269, 936, + 9931, 11269, 938, + 9931, 11269, 940, + 9931, 11269, 942, + 9931, 11269, 1140, + 9931, 11269, 1160, + 9931, 11269, 1172, + 9931, 11269, 1574, + 9931, 11269, 1630, + 9931, 11269, 1660, + 9931, 11269, 1704, + 9931, 11269, 1706, + 9931, 11269, 1708, + 9931, 11269, 1710, + 9931, 11269, 1732, + 9931, 11269, 1770, + 9931, 11269, 1774, + 9931, 11269, 1776, + 9931, 11269, 1784, + 9931, 11269, 1802, + 9931, 11269, 1834, + 9931, 11269, 1836, + 9931, 11269, 1838, + 9931, 11269, 1840, + 9931, 11269, 1854, + 9931, 11269, 1916, + 9931, 11269, 1938, + 9931, 11269, 1964, + 9931, 11269, 1966, + 9931, 11269, 1968, + 9931, 11269, 1970, + 9931, 11269, 1982, + 9931, 11269, 2030, + 9931, 11269, 2036, + 9931, 11269, 2038, + 9931, 11269, 2052, + 9931, 11269, 2078, + 9931, 11269, 2084, + 9931, 11269, 2122, + 9931, 11269, 2124, + 9931, 11269, 2188, + 9931, 11269, 2226, + 9931, 11269, 2238, + 9931, 11269, 2266, + 9931, 11269, 2268, + 9931, 11269, 2270, + 9931, 11269, 2272, + 9931, 11269, 2282, + 9931, 11269, 2286, + 9931, 11269, 2308, + 9931, 11269, 2320, + 9931, 11269, 2378, + 9931, 11269, 2414, + 9931, 11269, 2430, + 9931, 11269, 2482, + 9931, 11269, 2516, + 9931, 11269, 2518, + 9931, 11269, 2520, + 9931, 11269, 2522, + 9931, 11269, 2532, + 9931, 11269, 2554, + 9931, 11269, 2598, + 9931, 11269, 2600, + 9931, 11269, 2604, + 9931, 11269, 2606, + 9931, 11269, 2634, + 9931, 11269, 2678, + 9931, 11269, 2680, + 9931, 11269, 2682, + 9931, 11269, 2684, + 9931, 11269, 2692, + 9931, 11269, 2722, + 9931, 11269, 2746, + 9931, 11269, 2748, + 9931, 11269, 2750, + 9931, 11269, 2752, + 9931, 11269, 2754, + 9931, 11269, 2772, + 9931, 11269, 2774, + 9931, 11269, 2776, + 9931, 11269, 2778, + 9931, 11269, 2780, + 9931, 11269, 2782, + 9931, 11269, 2784, + 9931, 11269, 2786, + 9931, 11269, 2906, + 9931, 11269, 2932, + 9931, 11269, 2942, + 9931, 11269, 3006, + 9931, 11269, 3068, + 9931, 11269, 3082, + 9931, 11269, 3102, + 9931, 11269, 3104, + 9931, 11269, 3106, + 9931, 11269, 3108, + 9931, 11269, 3836, + 9931, 11269, 3970, + 9931, 11269, 3972, + 9931, 11269, 3974, + 9931, 11269, 4176, + 9931, 11269, 4223, 5836, + 9931, 11269, 4230, + 9931, 11269, 4700, + 9931, 11269, 4796, + 9931, 11269, 4800, + 9931, 11269, 4802, + 9931, 11269, 4818, + 9931, 11269, 4856, + 9931, 11269, 4862, + 9931, 11269, 4864, + 9931, 11269, 4910, + 9931, 11269, 4912, + 9931, 11269, 4914, + 9931, 11269, 4918, + 9931, 11269, 5032, + 9931, 11269, 5036, + 9931, 11269, 5038, + 9931, 11269, 5040, + 9931, 11269, 5132, + 9931, 11269, 5134, + 9931, 11269, 5164, + 9931, 11269, 5170, + 9931, 11269, 5228, + 9931, 11269, 5230, + 9931, 11269, 5232, + 9931, 11269, 5290, + 9931, 11269, 5390, + 9931, 11269, 5460, + 9931, 11269, 5464, + 9931, 11269, 5466, + 9931, 11269, 5472, + 9931, 11269, 5518, + 9931, 11269, 5616, + 9931, 11269, 5622, + 9931, 11269, 5666, + 9931, 11269, 5694, + 9931, 11269, 5710, + 9931, 11269, 5732, + 9931, 11269, 5734, + 9931, 11269, 5736, + 9931, 11269, 5738, + 9931, 11269, 5858, + 9931, 11269, 5860, + 9931, 11269, 5862, + 9931, 11269, 5874, + 9931, 11269, 5906, + 9931, 11269, 5924, + 9931, 11269, 5930, + 9931, 11269, 5952, + 9931, 11269, 5954, + 9931, 11269, 5956, + 9931, 11269, 5958, + 9931, 11269, 5994, + 9931, 11269, 5996, + 9931, 11269, 5998, + 9931, 11269, 6000, + 9931, 11269, 6024, + 9931, 11269, 6026, + 9931, 11269, 6028, + 9931, 11269, 6160, + 9931, 11269, 6246, + 9931, 11269, 6248, + 9931, 11269, 6250, + 9931, 11269, 6789, 2725, 4389, 5550, + 9931, 11269, 6789, 4117, 5876, + 9931, 11269, 6789, 5444, + 9931, 11269, 6789, 5550, + 9931, 11269, 6789, 6378, + 9931, 11269, 6789, 6874, + 9931, 11269, 6789, 7443, 4389, 5550, + 9931, 11269, 6789, 7551, 11649, 8758, + 9931, 11269, 6789, 8005, 4389, 5550, + 9931, 11269, 6789, 8153, 6378, + 9931, 11269, 6789, 8153, 7551, 10677, 9744, + 9931, 11269, 6789, 8473, 1044, + 9931, 11269, 7226, + 9931, 11269, 7262, + 9931, 11269, 7264, + 9931, 11269, 7266, + 9931, 11269, 7558, + 9931, 11269, 7560, + 9931, 11269, 7562, + 9931, 11269, 7700, + 9931, 11269, 8461, 22, + 9931, 11269, 8461, 34, + 9931, 11269, 8497, 2680, + 9931, 11269, 8497, 2682, + 9931, 11269, 8497, 5924, + 9931, 11269, 8629, 512, + 9931, 11269, 8671, 24, + 9931, 11269, 8671, 236, + 9931, 11269, 8671, 238, + 9931, 11269, 8671, 242, + 9931, 11269, 8671, 246, + 9931, 11269, 8671, 296, + 9931, 11269, 8671, 300, + 9931, 11269, 8671, 562, + 9931, 11269, 8671, 656, + 9931, 11269, 8671, 2516, + 9931, 11269, 8671, 2518, + 9931, 11269, 8671, 2520, + 9931, 11269, 8671, 2522, + 9931, 11269, 8943, 44, + 9931, 11269, 8943, 440, + 9931, 11269, 8943, 914, + 9931, 11269, 8943, 1660, + 9931, 11269, 8943, 1802, + 9931, 11269, 8943, 1938, + 9931, 11269, 8943, 2084, + 9931, 11269, 8943, 2238, + 9931, 11269, 8943, 2554, + 9931, 11269, 8943, 2722, + 9931, 11269, 8943, 3082, + 9931, 11269, 8943, 5460, + 9931, 11269, 8987, 2, + 9931, 11269, 9067, 14, + 9931, 11269, 9067, 16, + 9931, 11269, 9067, 30, + 9931, 11269, 9067, 50, + 9931, 11269, 9067, 144, + 9931, 11269, 9067, 162, + 9931, 11269, 9067, 216, + 9931, 11269, 9067, 220, + 9931, 11269, 9067, 224, + 9931, 11269, 9067, 228, + 9931, 11269, 9067, 230, + 9931, 11269, 9067, 242, + 9931, 11269, 9067, 292, + 9931, 11269, 9067, 294, + 9931, 11269, 9067, 296, + 9931, 11269, 9067, 298, + 9931, 11269, 9067, 300, + 9931, 11269, 9067, 316, + 9931, 11269, 9067, 332, + 9931, 11269, 9067, 336, + 9931, 11269, 9067, 340, + 9931, 11269, 9067, 350, + 9931, 11269, 9067, 354, + 9931, 11269, 9067, 364, + 9931, 11269, 9067, 368, + 9931, 11269, 9067, 374, + 9931, 11269, 9067, 380, + 9931, 11269, 9067, 384, + 9931, 11269, 9067, 392, + 9931, 11269, 9067, 396, + 9931, 11269, 9067, 400, + 9931, 11269, 9067, 404, + 9931, 11269, 9067, 412, + 9931, 11269, 9067, 416, + 9931, 11269, 9067, 462, + 9931, 11269, 9067, 468, + 9931, 11269, 9067, 476, + 9931, 11269, 9067, 480, + 9931, 11269, 9067, 486, + 9931, 11269, 9067, 510, + 9931, 11269, 9067, 512, + 9931, 11269, 9067, 514, + 9931, 11269, 9067, 516, + 9931, 11269, 9067, 520, + 9931, 11269, 9067, 524, + 9931, 11269, 9067, 526, + 9931, 11269, 9067, 530, + 9931, 11269, 9067, 532, + 9931, 11269, 9067, 536, + 9931, 11269, 9067, 546, + 9931, 11269, 9067, 622, + 9931, 11269, 9067, 626, + 9931, 11269, 9067, 630, + 9931, 11269, 9067, 632, + 9931, 11269, 9067, 634, + 9931, 11269, 9067, 652, + 9931, 11269, 9067, 654, + 9931, 11269, 9067, 656, + 9931, 11269, 9067, 660, + 9931, 11269, 9067, 664, + 9931, 11269, 9067, 670, + 9931, 11269, 9067, 672, + 9931, 11269, 9067, 676, + 9931, 11269, 9067, 678, + 9931, 11269, 9067, 680, + 9931, 11269, 9067, 884, + 9931, 11269, 9067, 886, + 9931, 11269, 9067, 888, + 9931, 11269, 9067, 890, + 9931, 11269, 9067, 892, + 9931, 11269, 9067, 984, + 9931, 11269, 9067, 1024, + 9931, 11269, 9067, 1026, + 9931, 11269, 9067, 1028, + 9931, 11269, 9067, 1030, + 9931, 11269, 9067, 1032, + 9931, 11269, 9067, 1080, + 9931, 11269, 9067, 1082, + 9931, 11269, 9067, 1084, + 9931, 11269, 9067, 1086, + 9931, 11269, 9067, 1088, + 9931, 11269, 9067, 1238, + 9931, 11269, 9067, 1260, + 9931, 11269, 9067, 1262, + 9931, 11269, 9067, 1264, + 9931, 11269, 9067, 1266, + 9931, 11269, 9067, 1268, + 9931, 11269, 9067, 1356, + 9931, 11269, 9067, 1440, + 9931, 11269, 9067, 1442, + 9931, 11269, 9067, 1444, + 9931, 11269, 9067, 1446, + 9931, 11269, 9067, 1448, + 9931, 11269, 9067, 1506, + 9931, 11269, 9067, 1528, + 9931, 11269, 9067, 1530, + 9931, 11269, 9067, 1532, + 9931, 11269, 9067, 1534, + 9931, 11269, 9067, 1536, + 9931, 11269, 9067, 1612, + 9931, 11269, 9067, 1614, + 9931, 11269, 9067, 1616, + 9931, 11269, 9067, 1618, + 9931, 11269, 9067, 1620, + 9931, 11269, 9067, 1642, + 9931, 11269, 9067, 1644, + 9931, 11269, 9067, 1646, + 9931, 11269, 9067, 1648, + 9931, 11269, 9067, 1650, + 9931, 11269, 9067, 1758, + 9931, 11269, 9067, 1770, + 9931, 11269, 9067, 1772, + 9931, 11269, 9067, 1774, + 9931, 11269, 9067, 1776, + 9931, 11269, 9067, 1778, + 9931, 11269, 9067, 1890, + 9931, 11269, 9067, 2016, + 9931, 11269, 9067, 2204, + 9931, 11269, 9067, 2402, + 9931, 11269, 9067, 2504, + 9931, 11269, 9067, 2516, + 9931, 11269, 9067, 2518, + 9931, 11269, 9067, 2520, + 9931, 11269, 9067, 2522, + 9931, 11269, 9067, 2524, + 9931, 11269, 9067, 2678, + 9931, 11269, 9067, 2680, + 9931, 11269, 9067, 2682, + 9931, 11269, 9067, 2684, + 9931, 11269, 9067, 2686, + 9931, 11269, 9067, 2706, + 9931, 11269, 9067, 2708, + 9931, 11269, 9067, 2710, + 9931, 11269, 9067, 2712, + 9931, 11269, 9067, 2714, + 9931, 11269, 9067, 2732, + 9931, 11269, 9067, 2734, + 9931, 11269, 9067, 2736, + 9931, 11269, 9067, 2738, + 9931, 11269, 9067, 2740, + 9931, 11269, 9067, 2746, + 9931, 11269, 9067, 2748, + 9931, 11269, 9067, 2752, + 9931, 11269, 9067, 2754, + 9931, 11269, 9067, 2756, + 9931, 11269, 9067, 2922, + 9931, 11269, 9067, 3050, + 9931, 11269, 9067, 3138, + 9931, 11269, 9067, 3890, + 9931, 11269, 9067, 4098, + 9931, 11269, 9067, 4138, + 9931, 11269, 9067, 4318, + 9931, 11269, 9067, 4556, + 9931, 11269, 9067, 4644, + 9931, 11269, 9067, 4744, + 9931, 11269, 9067, 4766, + 9931, 11269, 9067, 4860, + 9931, 11269, 9067, 5678, + 9931, 11269, 9067, 5914, + 9931, 11269, 9067, 5950, + 9931, 11269, 9067, 5952, + 9931, 11269, 9067, 5954, + 9931, 11269, 9067, 5956, + 9931, 11269, 9067, 5958, + 9931, 11269, 9067, 5960, + 9931, 11269, 9067, 5976, + 9931, 11269, 9067, 5990, + 9931, 11269, 9067, 6002, + 9931, 11269, 9067, 6004, + 9931, 11269, 9067, 6006, + 9931, 11269, 9067, 6008, + 9931, 11269, 9067, 6010, + 9931, 11269, 9067, 7720, + 9931, 11269, 9067, 7748, + 9931, 11269, 9067, 9363, 50, + 9931, 11269, 9313, 5836, + 9931, 11269, 9489, 2480, + 9931, 11269, 9489, 2544, + 9931, 11269, 9489, 2906, + 9931, 11269, 9489, 2942, + 9931, 11269, 9489, 3970, + 9931, 11269, 9489, 4796, + 9931, 11269, 9489, 5032, + 9931, 11269, 9489, 5290, + 9931, 11269, 9489, 5644, + 9931, 11269, 9489, 5774, + 9931, 11269, 9489, 5784, + 9931, 11269, 9489, 5838, + 9931, 11269, 9489, 5858, + 9931, 11269, 9489, 6024, + 9931, 11269, 9489, 6246, + 9931, 11269, 9517, 14, + 9931, 11269, 9517, 236, + 9931, 11269, 9517, 238, + 9931, 11269, 9517, 242, + 9931, 11269, 9517, 246, + 9931, 11269, 9517, 1338, + 9931, 11269, 9517, 1382, + 9931, 11269, 9517, 1424, + 9931, 11269, 9519, 14, + 9931, 11269, 9777, 562, + 9931, 11269, 9777, 2678, + 9931, 11269, 9777, 2680, + 9931, 11269, 9777, 2682, + 9931, 11269, 9777, 2684, + 9931, 11269, 9777, 5906, + 9931, 11269, 9777, 5924, + 9931, 11269, 9777, 5930, + 9931, 11269, 10743, 0, + 9931, 11269, 10743, 8, + 9931, 11269, 10743, 16, + 9931, 11269, 10743, 28, + 9931, 11269, 10743, 36, + 9931, 11269, 10743, 306, + 9931, 11269, 10743, 310, + 9931, 11269, 10743, 314, + 9931, 11269, 10743, 322, + 9931, 11269, 10743, 392, + 9931, 11269, 10743, 396, + 9931, 11269, 10743, 404, + 9931, 11269, 10743, 412, + 9931, 11269, 10743, 622, + 9931, 11269, 10743, 626, + 9931, 11269, 10743, 630, + 9931, 11269, 10743, 632, + 9931, 11269, 11399, 22, + 9931, 11269, 11399, 24, + 9931, 11269, 11399, 30, + 9931, 11269, 11399, 34, + 9931, 11269, 11399, 48, + 9931, 11269, 11399, 332, + 9931, 11269, 11399, 336, + 9931, 11269, 11399, 350, + 9931, 11269, 11399, 510, + 9931, 11269, 11399, 512, + 9931, 11269, 11399, 514, + 9931, 11269, 11399, 516, + 9931, 11269, 11399, 622, + 9931, 11269, 11399, 626, + 9931, 11269, 11399, 630, + 9931, 11269, 11399, 632, + 9931, 11269, 11399, 936, + 9931, 11269, 11399, 938, + 9931, 11269, 11399, 940, + 9931, 11269, 11399, 942, + 9931, 11269, 11399, 1704, + 9931, 11269, 11399, 1706, + 9931, 11269, 11399, 1708, + 9931, 11269, 11399, 1710, + 9931, 11269, 11399, 1834, + 9931, 11269, 11399, 1836, + 9931, 11269, 11399, 1838, + 9931, 11269, 11399, 1840, + 9931, 11269, 11399, 1964, + 9931, 11269, 11399, 1966, + 9931, 11269, 11399, 1968, + 9931, 11269, 11399, 1970, + 9931, 11269, 11399, 2122, + 9931, 11269, 11399, 2124, + 9931, 11269, 11399, 2266, + 9931, 11269, 11399, 2268, + 9931, 11269, 11399, 2270, + 9931, 11269, 11399, 2272, + 9931, 11269, 11399, 2598, + 9931, 11269, 11399, 2600, + 9931, 11269, 11399, 2604, + 9931, 11269, 11399, 2606, + 9931, 11269, 11399, 2772, + 9931, 11269, 11399, 2774, + 9931, 11269, 11399, 2776, + 9931, 11269, 11399, 2778, + 9931, 11269, 11399, 2906, + 9931, 11269, 11399, 2932, + 9931, 11269, 11399, 2942, + 9931, 11269, 11399, 3102, + 9931, 11269, 11399, 3104, + 9931, 11269, 11399, 3106, + 9931, 11269, 11399, 3108, + 9931, 11269, 11399, 3970, + 9931, 11269, 11399, 3972, + 9931, 11269, 11399, 3974, + 9931, 11269, 11399, 4230, + 9931, 11269, 11399, 4796, + 9931, 11269, 11399, 4800, + 9931, 11269, 11399, 4802, + 9931, 11269, 11399, 4910, + 9931, 11269, 11399, 4912, + 9931, 11269, 11399, 4914, + 9931, 11269, 11399, 5032, + 9931, 11269, 11399, 5036, + 9931, 11269, 11399, 5038, + 9931, 11269, 11399, 5290, + 9931, 11269, 11399, 5460, + 9931, 11269, 11399, 5464, + 9931, 11269, 11399, 5466, + 9931, 11269, 11399, 5616, + 9931, 11269, 11399, 5732, + 9931, 11269, 11399, 5734, + 9931, 11269, 11399, 5736, + 9931, 11269, 11399, 5738, + 9931, 11269, 11399, 5858, + 9931, 11269, 11399, 5860, + 9931, 11269, 11399, 5862, + 9931, 11269, 11399, 6024, + 9931, 11269, 11399, 6026, + 9931, 11269, 11399, 6028, + 9931, 11269, 11399, 6246, + 9931, 11269, 11399, 6248, + 9931, 11269, 11399, 6250, + 9931, 11269, 11399, 7558, + 9931, 11269, 11399, 7560, + 9931, 11269, 11399, 7562, + 9931, 11269, 11399, 7700, + 9931, 11269, 11435, 24, + 9931, 11269, 11435, 36, + 9931, 11269, 11443, 48, + 9931, 11269, 11689, 534, + 9931, 11269, 11883, 562, + 9931, 11269, 11883, 2678, + 9931, 11269, 11883, 2680, + 9931, 11269, 11883, 2682, + 9931, 11269, 11883, 2684, + 9931, 11269, 12869, 1580, + 9931, 11269, 12869, 1600, + 9931, 11269, 12869, 1628, + 9931, 11269, 12869, 1656, + 9941, 8405, 0, + 9941, 8405, 8, + 9941, 8405, 16, + 9941, 8405, 28, + 9941, 8405, 36, + 9941, 8405, 40, + 9941, 8405, 42, + 9941, 8405, 138, + 9941, 8405, 142, + 9941, 8405, 144, + 9941, 8405, 150, + 9941, 8405, 152, + 9941, 8405, 154, + 9941, 8405, 216, + 9941, 8405, 220, + 9941, 8405, 224, + 9941, 8405, 228, + 9941, 8405, 230, + 9941, 8405, 232, + 9941, 8405, 236, + 9941, 8405, 238, + 9941, 8405, 242, + 9941, 8405, 246, + 9941, 8405, 250, + 9941, 8405, 252, + 9941, 8405, 306, + 9941, 8405, 332, + 9941, 8405, 336, + 9941, 8405, 340, + 9941, 8405, 350, + 9941, 8405, 354, + 9941, 8405, 356, + 9941, 8405, 364, + 9941, 8405, 368, + 9941, 8405, 374, + 9941, 8405, 380, + 9941, 8405, 384, + 9941, 8405, 392, + 9941, 8405, 396, + 9941, 8405, 404, + 9941, 8405, 412, + 9941, 8405, 416, + 9941, 8405, 418, + 9941, 8405, 524, + 9941, 8405, 526, + 9941, 8405, 532, + 9941, 8405, 536, + 9941, 8405, 546, + 9941, 8405, 548, + 9941, 8405, 556, + 9941, 8405, 560, + 9941, 8405, 564, + 9941, 8405, 622, + 9941, 8405, 626, + 9941, 8405, 630, + 9941, 8405, 632, + 9941, 8405, 634, + 9941, 8405, 636, + 9941, 8405, 652, + 9941, 8405, 654, + 9941, 8405, 656, + 9941, 8405, 660, + 9941, 8405, 664, + 9941, 8405, 666, + 9941, 8405, 1024, + 9941, 8405, 1412, + 9941, 8405, 1986, + 9941, 8405, 2328, + 9941, 8405, 2330, + 9941, 8405, 2332, + 9941, 8405, 2336, + 9941, 8405, 2344, + 9941, 8405, 2346, + 9941, 8405, 2706, + 9941, 8405, 2708, + 9941, 8405, 2710, + 9941, 8405, 2712, + 9941, 8405, 2714, + 9941, 8405, 2716, + 9941, 8405, 2732, + 9941, 8405, 2734, + 9941, 8405, 2736, + 9941, 8405, 2738, + 9941, 8405, 2740, + 9941, 8405, 2742, + 9959, 89, 8466, + 9959, 89, 8521, 10572, + 9959, 89, 8521, 10573, 445, 6741, 568, + 9959, 6121, 4895, 11649, 8758, + 9959, 6121, 9546, + 9959, 6121, 10677, 761, 91, 1109, 429, 11649, 8758, + 9961, 2429, 5895, 6689, 2170, + 9961, 2429, 5895, 6689, 2540, + 9961, 2429, 5895, 6689, 2778, + 9961, 2429, 5895, 6689, 4200, + 9961, 2429, 5895, 6689, 4214, + 9961, 2429, 5895, 6689, 5190, + 9961, 2429, 5895, 6689, 6722, + 9961, 2429, 5895, 6689, 7508, + 9961, 2429, 5895, 6689, 7694, + 9961, 2429, 6053, 6689, 2170, + 9961, 2429, 6053, 6689, 2540, + 9961, 2429, 6053, 6689, 2778, + 9961, 2429, 6053, 6689, 4200, + 9961, 2429, 6053, 6689, 4214, + 9961, 2429, 6053, 6689, 5190, + 9961, 2429, 6053, 6689, 6722, + 9961, 2429, 6053, 6689, 7508, + 9961, 2429, 6053, 6689, 7694, + 9969, 5758, + 9971, 5758, + 9977, 7593, 8405, 0, + 9977, 7593, 8405, 1, 6121, 6516, + 9977, 7593, 8405, 1, 6121, 10804, + 9977, 7593, 8405, 8, + 9977, 7593, 8405, 9, 6121, 10804, + 9977, 7593, 8405, 16, + 9977, 7593, 8405, 17, 6121, 6874, + 9977, 7593, 8405, 17, 6121, 8432, + 9977, 7593, 8405, 17, 6121, 10804, + 9977, 7593, 8405, 28, + 9977, 7593, 8405, 29, 6121, 10804, + 9977, 7593, 8405, 40, + 9977, 7593, 8405, 41, 6121, 8153, 6378, + 9977, 7593, 8405, 41, 6121, 8432, + 9977, 7593, 8405, 41, 6121, 10804, + 9977, 7593, 8405, 102, + 9977, 7593, 8405, 142, + 9977, 7593, 8405, 164, + 9977, 7593, 8405, 172, + 9977, 7593, 8405, 173, 6121, 4530, + 9977, 7593, 8405, 173, 6121, 5878, + 9977, 7593, 8405, 173, 6121, 8473, 4530, + 9977, 7593, 8405, 174, + 9977, 7593, 8405, 175, 6121, 5878, + 9977, 7593, 8405, 176, + 9977, 7593, 8405, 177, 6121, 4530, + 9977, 7593, 8405, 177, 6121, 5878, + 9977, 7593, 8405, 177, 6121, 8473, 4530, + 9977, 7593, 8405, 177, 6121, 10802, + 9977, 7593, 8405, 182, + 9977, 7593, 8405, 183, 6121, 5934, + 9977, 7593, 8405, 184, + 9977, 7593, 8405, 185, 6121, 10802, + 9977, 7593, 8405, 236, + 9977, 7593, 8405, 237, 6121, 4530, + 9977, 7593, 8405, 237, 6121, 8758, + 9977, 7593, 8405, 237, 6121, 10802, + 9977, 7593, 8405, 258, + 9977, 7593, 8405, 259, 6121, 6516, + 9977, 7593, 8405, 259, 6121, 6874, + 9977, 7593, 8405, 276, + 9977, 7593, 8405, 294, + 9977, 7593, 8405, 306, + 9977, 7593, 8405, 307, 6121, 4530, + 9977, 7593, 8405, 307, 6121, 8758, + 9977, 7593, 8405, 307, 6121, 10677, 8758, + 9977, 7593, 8405, 307, 6121, 10802, + 9977, 7593, 8405, 448, + 9977, 7593, 8405, 468, + 9977, 7593, 8405, 469, 6121, 8473, 4530, + 9977, 7593, 8405, 496, + 9977, 7593, 8405, 560, + 9977, 7593, 8405, 561, 6121, 8473, 4530, + 9977, 7593, 8405, 561, 6121, 10802, + 9977, 7593, 8405, 592, + 9977, 7593, 8405, 612, + 9977, 7593, 8405, 626, + 9977, 7593, 8405, 652, + 9977, 7593, 8405, 656, + 9977, 7593, 8405, 658, + 9977, 7593, 8405, 664, + 9977, 7593, 8405, 672, + 9977, 7593, 8405, 673, 6121, 10802, + 9977, 7593, 8405, 673, 6121, 10804, + 9977, 7593, 8405, 807, 3096, + 9977, 7593, 8405, 886, + 9977, 7593, 8405, 887, 6121, 10677, 8758, + 9977, 7593, 8405, 887, 6121, 10802, + 9977, 7593, 8405, 887, 6121, 10804, + 9977, 7593, 8405, 1022, + 9977, 7593, 8405, 1074, + 9977, 7593, 8405, 1082, + 9977, 7593, 8405, 1262, + 9977, 7593, 8405, 1263, 6121, 8473, 4530, + 9977, 7593, 8405, 1263, 6121, 8758, + 9977, 7593, 8405, 1263, 6121, 8759, 721, 4530, + 9977, 7593, 8405, 1263, 6121, 8896, + 9977, 7593, 8405, 1263, 6121, 10802, + 9977, 7593, 8405, 1284, + 9977, 7593, 8405, 1442, + 9977, 7593, 8405, 1640, + 9977, 7593, 8405, 1680, + 9977, 7593, 8405, 1770, + 9977, 7593, 8405, 1794, + 9977, 7593, 8405, 2064, + 9977, 7593, 8405, 2250, + 9977, 7593, 8405, 2410, + 9977, 7593, 8405, 2516, + 9977, 7593, 8405, 2734, + 9977, 7593, 8405, 2774, + 9977, 7593, 8405, 3012, + 9977, 7593, 8405, 3038, + 9977, 7593, 8405, 3148, + 9977, 7593, 8405, 3149, 6121, 6516, + 9977, 7593, 8405, 3149, 6121, 10802, + 9977, 7593, 8405, 3149, 6121, 10804, + 9977, 7593, 8405, 3862, + 9977, 7593, 8405, 4142, + 9977, 7593, 8405, 4146, + 9977, 7593, 8405, 4148, + 9977, 7593, 8405, 4198, + 9977, 7593, 8405, 4393, 5758, + 9977, 7593, 8405, 4614, + 9977, 7593, 8405, 4771, 142, + 9977, 7593, 8405, 4771, 1022, + 9977, 7593, 8405, 4771, 1794, + 9977, 7593, 8405, 4771, 2064, + 9977, 7593, 8405, 4771, 2542, + 9977, 7593, 8405, 4771, 2704, + 9977, 7593, 8405, 4771, 3172, + 9977, 7593, 8405, 4771, 4144, + 9977, 7593, 8405, 5690, + 9977, 7593, 8405, 5734, + 9977, 7593, 8405, 5781, 142, + 9977, 7593, 8405, 5781, 172, + 9977, 7593, 8405, 5781, 174, + 9977, 7593, 8405, 5781, 5758, + 9977, 7593, 8405, 5890, + 9977, 7593, 8405, 5980, + 9977, 7593, 8405, 5982, + 9977, 7593, 8405, 5986, + 9977, 7593, 8405, 6200, + 9977, 7593, 8405, 6201, 6121, 3697, 3058, + 9977, 7593, 8405, 6201, 6121, 10804, + 9977, 7593, 8405, 6302, + 9977, 7593, 8405, 6399, 306, + 9977, 7593, 8405, 6519, 7316, + 9977, 7593, 8405, 6696, + 9977, 7593, 8405, 6710, + 9977, 7593, 8405, 7062, + 9977, 7593, 8405, 7316, + 9977, 7593, 8405, 7317, 6121, 7716, + 9977, 7593, 8405, 7455, 7316, + 9977, 7593, 8405, 7494, + 9977, 7593, 8405, 7495, 6121, 10804, + 9977, 7593, 8405, 7522, + 9977, 7593, 8405, 7551, 16, + 9977, 7593, 8405, 7551, 17, 6121, 5878, + 9977, 7593, 8405, 7551, 40, + 9977, 7593, 8405, 7981, 28, + 9977, 7593, 8405, 7981, 29, 6121, 10804, + 9977, 7593, 8405, 8065, 8425, 3096, + 9977, 7593, 8405, 8153, 11125, 28, + 9977, 7593, 8405, 8425, 3096, + 9977, 7593, 8405, 8960, + 9977, 7593, 8405, 9029, 306, + 9977, 7593, 8405, 9049, 3096, + 9977, 7593, 8405, 9372, + 9977, 7593, 8405, 9373, 6121, 8153, 6875, 7908, + 9977, 7593, 8405, 9501, 3058, + 9977, 7593, 8405, 10269, 0, + 9977, 7593, 8405, 10269, 8, + 9977, 7593, 8405, 10269, 807, 3096, + 9977, 7593, 8405, 10269, 3038, + 9977, 7593, 8405, 10269, 8065, 8425, 3096, + 9977, 7593, 8405, 10269, 8425, 3096, + 9977, 7593, 8405, 10396, + 9977, 7593, 8405, 10489, 664, + 9977, 7593, 8405, 10489, 672, + 9977, 7593, 8405, 10489, 1082, + 9977, 7593, 8405, 10509, 5758, + 9977, 7593, 8405, 10545, 40, + 9977, 7593, 8405, 10545, 41, 6121, 8758, + 9977, 7593, 8405, 10697, 236, + 9977, 7593, 8405, 10697, 886, + 9977, 7593, 8405, 10697, 887, 6121, 10802, + 9977, 7593, 8405, 10697, 1082, + 9977, 7593, 8405, 10735, 28, + 9977, 7593, 8405, 11125, 28, + 9977, 7593, 8405, 11127, 592, + 9977, 7593, 8405, 11383, 258, + 9977, 7593, 8405, 11665, 886, + 9977, 7593, 8405, 13415, 16, + 9977, 7593, 10301, 1, 258, + 9977, 7593, 10301, 177, 1262, + 9977, 7593, 10301, 561, 2734, + 9977, 8342, + 9977, 8405, 7593, 9063, 172, + 9977, 8405, 10396, + 9977, 8405, 12087, 28, + 9977, 9063, 8405, 0, + 9977, 9063, 8405, 1, 6121, 6516, + 9977, 9063, 8405, 1, 6121, 10804, + 9977, 9063, 8405, 8, + 9977, 9063, 8405, 9, 6121, 10804, + 9977, 9063, 8405, 16, + 9977, 9063, 8405, 17, 6121, 6874, + 9977, 9063, 8405, 17, 6121, 8432, + 9977, 9063, 8405, 17, 6121, 10804, + 9977, 9063, 8405, 28, + 9977, 9063, 8405, 29, 6121, 10804, + 9977, 9063, 8405, 40, + 9977, 9063, 8405, 41, 6121, 8153, 6378, + 9977, 9063, 8405, 41, 6121, 8432, + 9977, 9063, 8405, 41, 6121, 10804, + 9977, 9063, 8405, 102, + 9977, 9063, 8405, 142, + 9977, 9063, 8405, 164, + 9977, 9063, 8405, 172, + 9977, 9063, 8405, 173, 6121, 4530, + 9977, 9063, 8405, 173, 6121, 5878, + 9977, 9063, 8405, 173, 6121, 8473, 4530, + 9977, 9063, 8405, 174, + 9977, 9063, 8405, 175, 6121, 5878, + 9977, 9063, 8405, 176, + 9977, 9063, 8405, 177, 6121, 4530, + 9977, 9063, 8405, 177, 6121, 5878, + 9977, 9063, 8405, 177, 6121, 8473, 4530, + 9977, 9063, 8405, 177, 6121, 10802, + 9977, 9063, 8405, 182, + 9977, 9063, 8405, 183, 6121, 5934, + 9977, 9063, 8405, 184, + 9977, 9063, 8405, 185, 6121, 10802, + 9977, 9063, 8405, 236, + 9977, 9063, 8405, 237, 6121, 4530, + 9977, 9063, 8405, 237, 6121, 8758, + 9977, 9063, 8405, 237, 6121, 10802, + 9977, 9063, 8405, 258, + 9977, 9063, 8405, 259, 6121, 6516, + 9977, 9063, 8405, 259, 6121, 6874, + 9977, 9063, 8405, 276, + 9977, 9063, 8405, 294, + 9977, 9063, 8405, 306, + 9977, 9063, 8405, 307, 6121, 4530, + 9977, 9063, 8405, 307, 6121, 8758, + 9977, 9063, 8405, 307, 6121, 10677, 8758, + 9977, 9063, 8405, 307, 6121, 10802, + 9977, 9063, 8405, 448, + 9977, 9063, 8405, 468, + 9977, 9063, 8405, 469, 6121, 8473, 4530, + 9977, 9063, 8405, 496, + 9977, 9063, 8405, 560, + 9977, 9063, 8405, 561, 6121, 8473, 4530, + 9977, 9063, 8405, 561, 6121, 10802, + 9977, 9063, 8405, 592, + 9977, 9063, 8405, 612, + 9977, 9063, 8405, 626, + 9977, 9063, 8405, 652, + 9977, 9063, 8405, 656, + 9977, 9063, 8405, 658, + 9977, 9063, 8405, 664, + 9977, 9063, 8405, 672, + 9977, 9063, 8405, 673, 6121, 10802, + 9977, 9063, 8405, 673, 6121, 10804, + 9977, 9063, 8405, 807, 3096, + 9977, 9063, 8405, 886, + 9977, 9063, 8405, 887, 6121, 10677, 8758, + 9977, 9063, 8405, 887, 6121, 10802, + 9977, 9063, 8405, 887, 6121, 10804, + 9977, 9063, 8405, 1022, + 9977, 9063, 8405, 1074, + 9977, 9063, 8405, 1082, + 9977, 9063, 8405, 1262, + 9977, 9063, 8405, 1263, 6121, 8473, 4530, + 9977, 9063, 8405, 1263, 6121, 8758, + 9977, 9063, 8405, 1263, 6121, 8759, 721, 4530, + 9977, 9063, 8405, 1263, 6121, 8896, + 9977, 9063, 8405, 1263, 6121, 10802, + 9977, 9063, 8405, 1284, + 9977, 9063, 8405, 1442, + 9977, 9063, 8405, 1640, + 9977, 9063, 8405, 1680, + 9977, 9063, 8405, 1770, + 9977, 9063, 8405, 1794, + 9977, 9063, 8405, 2064, + 9977, 9063, 8405, 2250, + 9977, 9063, 8405, 2410, + 9977, 9063, 8405, 2516, + 9977, 9063, 8405, 2734, + 9977, 9063, 8405, 2774, + 9977, 9063, 8405, 3012, + 9977, 9063, 8405, 3038, + 9977, 9063, 8405, 3148, + 9977, 9063, 8405, 3149, 6121, 6516, + 9977, 9063, 8405, 3149, 6121, 10802, + 9977, 9063, 8405, 3149, 6121, 10804, + 9977, 9063, 8405, 3862, + 9977, 9063, 8405, 4142, + 9977, 9063, 8405, 4146, + 9977, 9063, 8405, 4148, + 9977, 9063, 8405, 4198, + 9977, 9063, 8405, 4393, 5758, + 9977, 9063, 8405, 4614, + 9977, 9063, 8405, 4771, 142, + 9977, 9063, 8405, 4771, 1022, + 9977, 9063, 8405, 4771, 1794, + 9977, 9063, 8405, 4771, 2064, + 9977, 9063, 8405, 4771, 2542, + 9977, 9063, 8405, 4771, 2704, + 9977, 9063, 8405, 4771, 3172, + 9977, 9063, 8405, 4771, 4144, + 9977, 9063, 8405, 5690, + 9977, 9063, 8405, 5734, + 9977, 9063, 8405, 5781, 142, + 9977, 9063, 8405, 5781, 172, + 9977, 9063, 8405, 5781, 174, + 9977, 9063, 8405, 5781, 5758, + 9977, 9063, 8405, 5890, + 9977, 9063, 8405, 5980, + 9977, 9063, 8405, 5982, + 9977, 9063, 8405, 5986, + 9977, 9063, 8405, 6200, + 9977, 9063, 8405, 6201, 6121, 3697, 3058, + 9977, 9063, 8405, 6201, 6121, 10804, + 9977, 9063, 8405, 6302, + 9977, 9063, 8405, 6399, 306, + 9977, 9063, 8405, 6519, 7316, + 9977, 9063, 8405, 6696, + 9977, 9063, 8405, 6710, + 9977, 9063, 8405, 7062, + 9977, 9063, 8405, 7316, + 9977, 9063, 8405, 7317, 6121, 7716, + 9977, 9063, 8405, 7455, 7316, + 9977, 9063, 8405, 7494, + 9977, 9063, 8405, 7495, 6121, 10804, + 9977, 9063, 8405, 7522, + 9977, 9063, 8405, 7551, 16, + 9977, 9063, 8405, 7551, 17, 6121, 5878, + 9977, 9063, 8405, 7551, 40, + 9977, 9063, 8405, 7981, 28, + 9977, 9063, 8405, 7981, 29, 6121, 10804, + 9977, 9063, 8405, 8065, 8425, 3096, + 9977, 9063, 8405, 8153, 11125, 28, + 9977, 9063, 8405, 8425, 3096, + 9977, 9063, 8405, 8960, + 9977, 9063, 8405, 9029, 306, + 9977, 9063, 8405, 9049, 3096, + 9977, 9063, 8405, 9372, + 9977, 9063, 8405, 9373, 6121, 8153, 6875, 7908, + 9977, 9063, 8405, 9501, 3058, + 9977, 9063, 8405, 10269, 0, + 9977, 9063, 8405, 10269, 8, + 9977, 9063, 8405, 10269, 807, 3096, + 9977, 9063, 8405, 10269, 3038, + 9977, 9063, 8405, 10269, 8065, 8425, 3096, + 9977, 9063, 8405, 10269, 8425, 3096, + 9977, 9063, 8405, 10489, 664, + 9977, 9063, 8405, 10489, 672, + 9977, 9063, 8405, 10489, 1082, + 9977, 9063, 8405, 10509, 5758, + 9977, 9063, 8405, 10545, 40, + 9977, 9063, 8405, 10545, 41, 6121, 8758, + 9977, 9063, 8405, 10697, 236, + 9977, 9063, 8405, 10697, 886, + 9977, 9063, 8405, 10697, 887, 6121, 10802, + 9977, 9063, 8405, 10697, 1082, + 9977, 9063, 8405, 10735, 28, + 9977, 9063, 8405, 11125, 28, + 9977, 9063, 8405, 11127, 592, + 9977, 9063, 8405, 11383, 258, + 9977, 9063, 8405, 11665, 886, + 9977, 9063, 8405, 13415, 16, + 9977, 9063, 10301, 1, 258, + 9977, 9063, 10301, 177, 1262, + 9977, 9063, 10301, 561, 2734, + 9977, 9578, + 9977, 11363, 5758, + 10003, 5758, + 10017, 5758, + 10017, 7580, + 10017, 7710, + 10141, 7383, 11765, 6434, + 10153, 6434, + 10157, 8774, + 10162, + 10171, 4223, 5836, + 10171, 6610, + 10171, 6616, + 10171, 6689, 2170, + 10171, 6689, 2540, + 10171, 6689, 2778, + 10171, 6689, 4200, + 10171, 6689, 4214, + 10171, 6689, 5190, + 10171, 6689, 6722, + 10171, 6689, 7508, + 10171, 6689, 7694, + 10171, 7723, 4927, 4790, + 10171, 7723, 4927, 6676, + 10171, 7723, 4927, 6686, + 10171, 7723, 4927, 6910, + 10171, 7723, 4927, 7038, + 10171, 7723, 4927, 7551, 8646, + 10171, 7723, 4927, 7860, + 10171, 7723, 4927, 8046, + 10171, 7723, 4927, 8646, + 10171, 7723, 4927, 11934, + 10171, 8525, 2670, + 10171, 8525, 2671, 10624, + 10171, 8525, 6784, + 10171, 8525, 6804, + 10171, 8525, 7576, + 10171, 8525, 8160, + 10171, 8525, 8514, + 10171, 8525, 8820, + 10171, 8525, 8876, + 10171, 8525, 9344, + 10171, 8525, 9672, + 10171, 9607, 6610, + 10171, 9665, 4926, + 10171, 10469, 4926, + 10171, 10585, 100, + 10171, 10585, 102, + 10171, 10585, 106, + 10171, 10585, 108, + 10171, 10585, 112, + 10171, 10585, 116, + 10171, 10585, 122, + 10171, 10585, 126, + 10171, 10585, 130, + 10171, 10585, 132, + 10171, 10585, 138, + 10171, 10585, 142, + 10171, 10585, 144, + 10171, 10585, 150, + 10171, 10585, 152, + 10171, 10585, 196, + 10171, 10585, 198, + 10171, 10585, 202, + 10171, 10585, 208, + 10171, 10585, 210, + 10171, 10585, 216, + 10171, 10585, 220, + 10171, 10585, 224, + 10171, 10585, 228, + 10171, 10585, 230, + 10171, 10585, 236, + 10171, 10585, 238, + 10171, 10585, 242, + 10171, 10585, 246, + 10171, 10585, 250, + 10171, 10585, 292, + 10171, 10585, 294, + 10171, 10585, 296, + 10171, 10585, 298, + 10171, 10585, 300, + 10171, 10585, 306, + 10171, 10585, 310, + 10171, 10585, 314, + 10171, 10585, 322, + 10171, 10585, 326, + 10171, 10585, 332, + 10171, 10585, 336, + 10171, 10585, 340, + 10171, 10585, 350, + 10171, 10585, 354, + 10171, 10585, 364, + 10171, 10585, 368, + 10171, 10585, 374, + 10171, 10585, 380, + 10171, 10585, 384, + 10171, 10585, 392, + 10171, 10585, 396, + 10171, 10585, 404, + 10171, 10585, 412, + 10171, 10585, 416, + 10171, 10585, 462, + 10171, 10585, 468, + 10171, 10585, 476, + 10171, 10585, 480, + 10171, 10585, 486, + 10171, 10585, 496, + 10171, 10585, 498, + 10171, 10585, 500, + 10171, 10585, 502, + 10171, 10585, 506, + 10171, 10585, 510, + 10171, 10585, 512, + 10171, 10585, 514, + 10171, 10585, 516, + 10171, 10585, 520, + 10171, 10585, 524, + 10171, 10585, 526, + 10171, 10585, 532, + 10171, 10585, 536, + 10171, 10585, 546, + 10171, 10585, 556, + 10171, 10585, 560, + 10171, 10585, 564, + 10171, 10585, 568, + 10171, 10585, 576, + 10171, 10585, 610, + 10171, 10585, 612, + 10171, 10585, 614, + 10171, 10585, 616, + 10171, 10585, 618, + 10171, 10585, 622, + 10171, 10585, 626, + 10171, 10585, 630, + 10171, 10585, 632, + 10171, 10585, 634, + 10171, 10585, 638, + 10171, 10585, 640, + 10171, 10585, 644, + 10171, 10585, 646, + 10171, 10585, 648, + 10171, 10585, 652, + 10171, 10585, 654, + 10171, 10585, 656, + 10171, 10585, 660, + 10171, 10585, 664, + 10171, 10585, 670, + 10171, 10585, 672, + 10171, 10585, 676, + 10171, 10585, 678, + 10171, 10585, 680, + 10171, 10585, 748, + 10171, 10585, 778, + 10171, 10585, 816, + 10171, 10585, 838, + 10171, 10585, 840, + 10171, 10585, 842, + 10171, 10585, 854, + 10171, 10585, 866, + 10171, 10585, 868, + 10171, 10585, 870, + 10171, 10585, 872, + 10171, 10585, 874, + 10171, 10585, 876, + 10171, 10585, 884, + 10171, 10585, 886, + 10171, 10585, 888, + 10171, 10585, 890, + 10171, 10585, 892, + 10171, 10585, 910, + 10171, 10585, 936, + 10171, 10585, 954, + 10171, 10585, 974, + 10171, 10585, 976, + 10171, 10585, 978, + 10171, 10585, 980, + 10171, 10585, 982, + 10171, 10585, 984, + 10171, 10585, 1034, + 10171, 10585, 1072, + 10171, 10585, 1140, + 10171, 10585, 1150, + 10171, 10585, 1188, + 10171, 10585, 1190, + 10171, 10585, 1192, + 10171, 10585, 1194, + 10171, 10585, 1204, + 10171, 10585, 1238, + 10171, 10585, 1250, + 10171, 10585, 1252, + 10171, 10585, 1254, + 10171, 10585, 1256, + 10171, 10585, 1258, + 10171, 10585, 1288, + 10171, 10585, 1322, + 10171, 10585, 1324, + 10171, 10585, 1326, + 10171, 10585, 1328, + 10171, 10585, 1330, + 10171, 10585, 1332, + 10171, 10585, 1334, + 10171, 10585, 1336, + 10171, 10585, 1338, + 10171, 10585, 1356, + 10171, 10585, 1370, + 10171, 10585, 1372, + 10171, 10585, 1374, + 10171, 10585, 1376, + 10171, 10585, 1378, + 10171, 10585, 1418, + 10171, 10585, 1502, + 10171, 10585, 1506, + 10171, 10585, 1540, + 10171, 10585, 1562, + 10171, 10585, 1574, + 10171, 10585, 1598, + 10171, 10585, 1654, + 10171, 10585, 1704, + 10171, 10585, 1706, + 10171, 10585, 1708, + 10171, 10585, 1712, + 10171, 10585, 1714, + 10171, 10585, 1716, + 10171, 10585, 1718, + 10171, 10585, 1720, + 10171, 10585, 1722, + 10171, 10585, 1724, + 10171, 10585, 1726, + 10171, 10585, 1728, + 10171, 10585, 1730, + 10171, 10585, 1732, + 10171, 10585, 1758, + 10171, 10585, 1798, + 10171, 10585, 1834, + 10171, 10585, 1854, + 10171, 10585, 1890, + 10171, 10585, 1932, + 10171, 10585, 1964, + 10171, 10585, 1966, + 10171, 10585, 1968, + 10171, 10585, 1972, + 10171, 10585, 1982, + 10171, 10585, 2016, + 10171, 10585, 2082, + 10171, 10585, 2122, + 10171, 10585, 2126, + 10171, 10585, 2130, + 10171, 10585, 2132, + 10171, 10585, 2134, + 10171, 10585, 2136, + 10171, 10585, 2188, + 10171, 10585, 2204, + 10171, 10585, 2212, + 10171, 10585, 2214, + 10171, 10585, 2216, + 10171, 10585, 2218, + 10171, 10585, 2220, + 10171, 10585, 2236, + 10171, 10585, 2266, + 10171, 10585, 2268, + 10171, 10585, 2270, + 10171, 10585, 2282, + 10171, 10585, 2294, + 10171, 10585, 2296, + 10171, 10585, 2298, + 10171, 10585, 2300, + 10171, 10585, 2302, + 10171, 10585, 2304, + 10171, 10585, 2316, + 10171, 10585, 2350, + 10171, 10585, 2352, + 10171, 10585, 2354, + 10171, 10585, 2356, + 10171, 10585, 2358, + 10171, 10585, 2360, + 10171, 10585, 2362, + 10171, 10585, 2370, + 10171, 10585, 2378, + 10171, 10585, 2402, + 10171, 10585, 2424, + 10171, 10585, 2466, + 10171, 10585, 2468, + 10171, 10585, 2482, + 10171, 10585, 2504, + 10171, 10585, 2516, + 10171, 10585, 2518, + 10171, 10585, 2520, + 10171, 10585, 2522, + 10171, 10585, 2524, + 10171, 10585, 2548, + 10171, 10585, 2566, + 10171, 10585, 2568, + 10171, 10585, 2570, + 10171, 10585, 2572, + 10171, 10585, 2574, + 10171, 10585, 2598, + 10171, 10585, 2620, + 10171, 10585, 2622, + 10171, 10585, 2624, + 10171, 10585, 2626, + 10171, 10585, 2628, + 10171, 10585, 2634, + 10171, 10585, 2666, + 10171, 10585, 2678, + 10171, 10585, 2680, + 10171, 10585, 2682, + 10171, 10585, 2684, + 10171, 10585, 2686, + 10171, 10585, 2718, + 10171, 10585, 2732, + 10171, 10585, 2734, + 10171, 10585, 2736, + 10171, 10585, 2738, + 10171, 10585, 2740, + 10171, 10585, 2772, + 10171, 10585, 2790, + 10171, 10585, 2792, + 10171, 10585, 2794, + 10171, 10585, 2796, + 10171, 10585, 2798, + 10171, 10585, 2844, + 10171, 10585, 2856, + 10171, 10585, 2896, + 10171, 10585, 2906, + 10171, 10585, 2922, + 10171, 10585, 2936, + 10171, 10585, 2952, + 10171, 10585, 2956, + 10171, 10585, 2968, + 10171, 10585, 2982, + 10171, 10585, 2984, + 10171, 10585, 2986, + 10171, 10585, 2988, + 10171, 10585, 2990, + 10171, 10585, 2992, + 10171, 10585, 2994, + 10171, 10585, 3002, + 10171, 10585, 3006, + 10171, 10585, 3050, + 10171, 10585, 3078, + 10171, 10585, 3120, + 10171, 10585, 3138, + 10171, 10585, 3146, + 10171, 10585, 3148, + 10171, 10585, 3150, + 10171, 10585, 3152, + 10171, 10585, 3154, + 10171, 10585, 3176, + 10171, 10585, 3202, + 10171, 10585, 3212, + 10171, 10585, 3214, + 10171, 10585, 3216, + 10171, 10585, 3218, + 10171, 10585, 3220, + 10171, 10585, 3826, + 10171, 10585, 3856, + 10171, 10585, 3858, + 10171, 10585, 3860, + 10171, 10585, 3862, + 10171, 10585, 3864, + 10171, 10585, 3866, + 10171, 10585, 3868, + 10171, 10585, 3874, + 10171, 10585, 3890, + 10171, 10585, 3906, + 10171, 10585, 3924, + 10171, 10585, 3998, + 10171, 10585, 4010, + 10171, 10585, 4028, + 10171, 10585, 4046, + 10171, 10585, 4232, + 10171, 10585, 4270, + 10171, 10585, 4278, + 10171, 10585, 4308, + 10171, 10585, 4310, + 10171, 10585, 4312, + 10171, 10585, 4370, + 10171, 10585, 4372, + 10171, 10585, 4374, + 10171, 10585, 4378, + 10171, 10585, 4412, + 10171, 10585, 4414, + 10171, 10585, 4416, + 10171, 10585, 4796, + 10171, 10585, 4798, + 10171, 10585, 4804, + 10171, 10585, 4806, + 10171, 10585, 4808, + 10171, 10585, 4810, + 10171, 10585, 4812, + 10171, 10585, 4814, + 10171, 10585, 4816, + 10171, 10585, 5034, + 10171, 10585, 5292, + 10171, 10585, 5296, + 10171, 10585, 5314, + 10171, 10585, 5332, + 10171, 10585, 5410, + 10171, 10585, 5416, + 10171, 10585, 5418, + 10171, 10585, 5422, + 10171, 10585, 5462, + 10171, 10585, 5478, + 10171, 10585, 5480, + 10171, 10585, 5482, + 10171, 10585, 5484, + 10171, 10585, 5486, + 10171, 10585, 5508, + 10171, 10585, 5510, + 10171, 10585, 5512, + 10171, 10585, 5514, + 10171, 10585, 5666, + 10171, 10585, 5678, + 10171, 10585, 5704, + 10171, 10585, 5732, + 10171, 10585, 5786, + 10171, 10585, 5794, + 10171, 10585, 5866, + 10171, 10585, 5868, + 10171, 10585, 5870, + 10171, 10585, 5906, + 10171, 10585, 5914, + 10171, 10585, 5928, + 10171, 10585, 5932, + 10171, 10585, 5974, + 10171, 10585, 5976, + 10171, 10585, 5984, + 10171, 10585, 6032, + 10171, 10585, 6034, + 10171, 10585, 6038, + 10171, 10585, 6148, + 10171, 10585, 6150, + 10171, 10585, 6152, + 10171, 10585, 6154, + 10171, 10585, 6264, + 10171, 10585, 6274, + 10171, 10585, 6300, + 10171, 10585, 6328, + 10171, 10585, 6336, + 10171, 10585, 6550, + 10171, 10585, 6552, + 10171, 10585, 6846, + 10171, 10585, 6848, + 10171, 10585, 7066, + 10171, 10585, 7068, + 10171, 10585, 7406, + 10171, 10585, 7408, + 10171, 10585, 9313, 0, + 10171, 10585, 9313, 8, + 10171, 10585, 9313, 16, + 10171, 10585, 9313, 28, + 10171, 10585, 9313, 40, + 10171, 10585, 9313, 58, + 10171, 10585, 9313, 162, + 10171, 10585, 9313, 422, + 10171, 10585, 9313, 622, + 10171, 10585, 11223, 838, + 10171, 10585, 11223, 1188, + 10171, 10585, 11223, 1964, + 10171, 10585, 11223, 2266, + 10171, 10585, 11723, 0, + 10171, 10585, 11723, 8, + 10171, 10585, 11723, 16, + 10171, 10585, 11723, 28, + 10171, 10585, 11723, 40, + 10171, 10585, 11723, 58, + 10171, 10585, 11723, 162, + 10171, 10767, 11639, 4926, + 10171, 11163, 11228, + 10171, 11224, + 10171, 11400, + 10173, 12403, 6689, 2170, + 10173, 12403, 6689, 2540, + 10173, 12403, 6689, 2778, + 10173, 12403, 6689, 4200, + 10173, 12403, 6689, 4214, + 10173, 12403, 6689, 5190, + 10173, 12403, 6689, 6260, + 10173, 12403, 6689, 6722, + 10173, 12403, 6689, 7508, + 10173, 12403, 6689, 7694, + 10179, 9539, 11054, + 10192, + 10203, 7580, + 10203, 11143, 2170, + 10213, 11894, + 10221, 7593, 8405, 80, + 10221, 7593, 8405, 176, + 10221, 7593, 8405, 238, + 10221, 7593, 8405, 274, + 10221, 7593, 8405, 438, + 10221, 7593, 8405, 596, + 10221, 7593, 8405, 626, + 10221, 7593, 8405, 756, + 10221, 7593, 8405, 858, + 10221, 7593, 8405, 900, + 10221, 7593, 8405, 1038, + 10221, 7593, 8405, 1216, + 10221, 7593, 8405, 1340, + 10221, 7593, 8405, 1350, + 10221, 7593, 8405, 1380, + 10221, 7593, 8405, 1420, + 10221, 7593, 8405, 1520, + 10221, 7593, 8405, 1588, + 10221, 7593, 8405, 1744, + 10221, 7593, 8405, 1860, + 10221, 7593, 8405, 1992, + 10221, 7593, 8405, 2196, + 10221, 7593, 8405, 2290, + 10221, 7593, 8405, 2384, + 10221, 7593, 8405, 2490, + 10221, 7593, 8405, 2648, + 10221, 7593, 8405, 2654, + 10221, 7593, 8405, 2868, + 10221, 7593, 8405, 2954, + 10221, 7593, 8405, 3140, + 10221, 7593, 8405, 3884, + 10221, 7593, 8405, 3904, + 10221, 7593, 8405, 4316, + 10221, 7593, 8405, 4634, + 10221, 7593, 8405, 4742, + 10221, 7593, 8405, 5414, + 10221, 7593, 8405, 5698, + 10221, 7593, 8405, 6268, + 10221, 8405, 80, + 10221, 8405, 176, + 10221, 8405, 202, + 10221, 8405, 238, + 10221, 8405, 274, + 10221, 8405, 438, + 10221, 8405, 596, + 10221, 8405, 626, + 10221, 8405, 658, + 10221, 8405, 710, + 10221, 8405, 756, + 10221, 8405, 858, + 10221, 8405, 900, + 10221, 8405, 1038, + 10221, 8405, 1216, + 10221, 8405, 1340, + 10221, 8405, 1350, + 10221, 8405, 1380, + 10221, 8405, 1420, + 10221, 8405, 1520, + 10221, 8405, 1588, + 10221, 8405, 1744, + 10221, 8405, 1860, + 10221, 8405, 1992, + 10221, 8405, 2196, + 10221, 8405, 2290, + 10221, 8405, 2384, + 10221, 8405, 2490, + 10221, 8405, 2648, + 10221, 8405, 2654, + 10221, 8405, 2868, + 10221, 8405, 2954, + 10221, 8405, 3140, + 10221, 8405, 3884, + 10221, 8405, 3904, + 10221, 8405, 4316, + 10221, 8405, 4634, + 10221, 8405, 4742, + 10221, 8405, 5414, + 10221, 8405, 5698, + 10221, 8405, 6268, + 10221, 8405, 6728, + 10221, 8405, 8869, 1216, + 10221, 9063, 8405, 80, + 10221, 9063, 8405, 176, + 10221, 9063, 8405, 238, + 10221, 9063, 8405, 274, + 10221, 9063, 8405, 438, + 10221, 9063, 8405, 596, + 10221, 9063, 8405, 626, + 10221, 9063, 8405, 756, + 10221, 9063, 8405, 858, + 10221, 9063, 8405, 900, + 10221, 9063, 8405, 1038, + 10221, 9063, 8405, 1216, + 10221, 9063, 8405, 1340, + 10221, 9063, 8405, 1350, + 10221, 9063, 8405, 1380, + 10221, 9063, 8405, 1420, + 10221, 9063, 8405, 1520, + 10221, 9063, 8405, 1588, + 10221, 9063, 8405, 1744, + 10221, 9063, 8405, 1860, + 10221, 9063, 8405, 1992, + 10221, 9063, 8405, 2196, + 10221, 9063, 8405, 2290, + 10221, 9063, 8405, 2384, + 10221, 9063, 8405, 2490, + 10221, 9063, 8405, 2648, + 10221, 9063, 8405, 2654, + 10221, 9063, 8405, 2868, + 10221, 9063, 8405, 2954, + 10221, 9063, 8405, 3140, + 10221, 9063, 8405, 3884, + 10221, 9063, 8405, 3904, + 10221, 9063, 8405, 4316, + 10221, 9063, 8405, 4634, + 10221, 9063, 8405, 4742, + 10221, 9063, 8405, 5414, + 10221, 9063, 8405, 5698, + 10221, 9063, 8405, 6268, + 10221, 11163, 11228, + 10225, 436, + 10225, 5759, 7282, + 10225, 5759, 8916, + 10225, 5759, 9824, + 10225, 5759, 9870, + 10225, 5759, 9904, + 10225, 5759, 11900, + 10225, 6689, 2170, + 10225, 6689, 2540, + 10225, 6689, 2778, + 10225, 6689, 4200, + 10225, 6689, 4214, + 10225, 6689, 5190, + 10225, 6689, 6260, + 10225, 6689, 6722, + 10225, 6689, 7508, + 10225, 6689, 7694, + 10225, 7469, 5758, + 10225, 7803, 5759, 8, + 10225, 7803, 5759, 16, + 10225, 7803, 5759, 28, + 10225, 7803, 5759, 40, + 10225, 7803, 5759, 58, + 10225, 7803, 5759, 72, + 10225, 7803, 5759, 92, + 10225, 7803, 5759, 266, + 10225, 7803, 5759, 606, + 10225, 7803, 5759, 8031, 8, + 10225, 7803, 5759, 8031, 28, + 10225, 7803, 5759, 9827, 22, + 10225, 7803, 5759, 9827, 34, + 10225, 7803, 5759, 9827, 344, + 10225, 7803, 5759, 9827, 518, + 10225, 7803, 8031, 8, + 10225, 7803, 8031, 28, + 10225, 8405, 0, + 10225, 8405, 8, + 10225, 8405, 16, + 10225, 8405, 28, + 10225, 8405, 40, + 10225, 8405, 58, + 10225, 8405, 72, + 10225, 8405, 92, + 10225, 8405, 100, + 10225, 8405, 116, + 10225, 8405, 138, + 10225, 8405, 216, + 10225, 8405, 236, + 10225, 8405, 266, + 10225, 8405, 292, + 10225, 8405, 306, + 10225, 8405, 332, + 10225, 8405, 364, + 10225, 8405, 392, + 10225, 8405, 462, + 10225, 8405, 510, + 10225, 8405, 524, + 10225, 8405, 556, + 10225, 8405, 606, + 10225, 8405, 610, + 10225, 8405, 652, + 10225, 8405, 792, + 10225, 8405, 884, + 10225, 8405, 974, + 10225, 8405, 996, + 10225, 8405, 1260, + 10225, 8405, 1512, + 10225, 8405, 1612, + 10225, 8405, 1796, + 10225, 8405, 2030, + 10225, 8405, 2076, + 10225, 8405, 2126, + 10225, 8405, 2212, + 10225, 8405, 2516, + 10225, 8405, 2566, + 10225, 8405, 2678, + 10225, 8405, 2746, + 10225, 8405, 4016, + 10225, 8405, 5994, + 10225, 8405, 9827, 22, + 10225, 8405, 9827, 34, + 10225, 8405, 9827, 344, + 10225, 8405, 9827, 518, + 10227, 171, 7318, + 10227, 1496, + 10227, 2826, + 10227, 5759, 3227, 6498, + 10227, 5759, 6498, + 10227, 5759, 7282, + 10227, 5759, 7758, + 10227, 5759, 8916, + 10227, 5759, 8944, + 10227, 5759, 9824, + 10227, 6380, + 10227, 6689, 2170, + 10227, 6689, 2540, + 10227, 6689, 2778, + 10227, 6689, 4200, + 10227, 6689, 4214, + 10227, 6689, 5190, + 10227, 6689, 6260, + 10227, 6689, 6722, + 10227, 6689, 7508, + 10227, 6689, 7694, + 10227, 7714, + 10227, 7803, 5759, 16, + 10227, 7803, 5759, 40, + 10227, 7803, 5759, 58, + 10227, 7803, 5759, 72, + 10227, 7803, 5759, 92, + 10227, 7803, 5759, 162, + 10227, 7803, 5759, 266, + 10227, 7803, 5759, 440, + 10227, 7803, 5759, 606, + 10227, 8405, 0, + 10227, 8405, 16, + 10227, 8405, 40, + 10227, 8405, 58, + 10227, 8405, 72, + 10227, 8405, 92, + 10227, 8405, 100, + 10227, 8405, 116, + 10227, 8405, 138, + 10227, 8405, 162, + 10227, 8405, 196, + 10227, 8405, 216, + 10227, 8405, 236, + 10227, 8405, 266, + 10227, 8405, 292, + 10227, 8405, 306, + 10227, 8405, 332, + 10227, 8405, 364, + 10227, 8405, 392, + 10227, 8405, 440, + 10227, 8405, 462, + 10227, 8405, 510, + 10227, 8405, 524, + 10227, 8405, 556, + 10227, 8405, 606, + 10227, 8405, 610, + 10227, 8405, 652, + 10227, 8405, 670, + 10227, 8405, 792, + 10227, 8405, 884, + 10227, 8405, 974, + 10227, 8405, 996, + 10227, 8405, 1260, + 10227, 8405, 1512, + 10227, 8405, 1612, + 10227, 8405, 1796, + 10227, 8405, 2030, + 10227, 8405, 2076, + 10227, 8405, 2126, + 10227, 8405, 2212, + 10227, 8405, 2438, + 10227, 8405, 2516, + 10227, 8405, 2678, + 10227, 8405, 2746, + 10227, 8405, 4016, + 10227, 8405, 4320, + 10227, 8405, 4748, + 10227, 8405, 5994, + 10231, 9513, 2170, + 10231, 9513, 2540, + 10231, 9513, 2670, + 10231, 9513, 2778, + 10231, 9513, 4200, + 10231, 9513, 4214, + 10231, 9513, 5190, + 10231, 9513, 6722, + 10231, 9513, 7508, + 10231, 9513, 7694, + 10231, 9513, 8820, + 10231, 9513, 8876, + 10241, 1177, 2681, 3276, + 10241, 1177, 2681, 6110, + 10241, 1177, 2681, 8192, + 10241, 1177, 2681, 8251, 6116, + 10241, 1177, 2681, 8333, 4830, + 10241, 1177, 2681, 8971, 7812, + 10241, 1177, 2681, 9395, 7639, 10344, + 10241, 1177, 2681, 9893, 9786, + 10241, 1177, 2681, 9934, + 10241, 1177, 2681, 9953, 4194, + 10241, 1177, 2681, 9963, 8290, + 10241, 1177, 2681, 10323, 8436, + 10241, 1177, 2681, 10680, + 10241, 1177, 2681, 11199, 6716, + 10241, 1177, 6131, 439, 2681, 9148, + 10241, 1177, 6383, 11454, + 10241, 1177, 6868, + 10241, 1177, 6877, 7388, + 10241, 1177, 6877, 8790, + 10241, 1177, 6877, 11732, + 10241, 1177, 6877, 13000, + 10241, 1177, 6995, 7738, + 10241, 1177, 7187, 9118, + 10241, 1177, 7348, + 10241, 1177, 7593, 8790, + 10241, 1177, 7593, 13000, + 10241, 1177, 7987, 11454, + 10241, 1177, 7999, 9784, + 10241, 1177, 8071, 569, 4944, + 10241, 1177, 8642, + 10241, 1177, 9341, 10632, + 10241, 1177, 9478, + 10241, 1177, 9613, 8898, + 10241, 1177, 9630, + 10241, 1177, 9832, + 10241, 1177, 9878, + 10241, 1177, 9954, + 10241, 1177, 9992, + 10241, 1177, 10146, + 10241, 1177, 10252, + 10241, 1177, 10458, + 10241, 1177, 10638, + 10241, 1177, 10689, 6796, + 10241, 1177, 10698, + 10241, 1177, 10793, 429, 2681, 7100, + 10241, 1177, 10998, + 10241, 1177, 11013, 10632, + 10241, 1177, 11056, + 10241, 1177, 11058, + 10241, 1177, 11247, 6416, + 10241, 1177, 11481, 91, 2681, 10732, + 10241, 1177, 11482, + 10241, 1177, 11614, + 10241, 1177, 11628, + 10241, 1177, 11678, + 10241, 1177, 11702, + 10241, 1177, 11704, + 10241, 1177, 11756, + 10241, 1177, 11836, + 10241, 1177, 11930, + 10241, 1177, 11938, + 10241, 1177, 12100, + 10241, 1177, 12414, + 10241, 1177, 12918, + 10243, 8405, 0, + 10243, 8405, 8, + 10243, 8405, 16, + 10243, 8405, 26, + 10243, 8405, 28, + 10243, 8405, 40, + 10243, 8405, 100, + 10243, 8405, 102, + 10243, 8405, 106, + 10243, 8405, 108, + 10243, 8405, 112, + 10243, 8405, 138, + 10243, 8405, 142, + 10243, 8405, 144, + 10243, 8405, 150, + 10243, 8405, 152, + 10243, 8405, 216, + 10243, 8405, 220, + 10243, 8405, 224, + 10243, 8405, 228, + 10243, 8405, 230, + 10243, 8405, 236, + 10243, 8405, 238, + 10243, 8405, 242, + 10243, 8405, 246, + 10243, 8405, 250, + 10243, 8405, 306, + 10243, 8405, 310, + 10243, 8405, 314, + 10243, 8405, 322, + 10243, 8405, 326, + 10243, 8405, 364, + 10243, 8405, 368, + 10243, 8405, 374, + 10243, 8405, 380, + 10243, 8405, 384, + 10243, 8405, 392, + 10243, 8405, 396, + 10243, 8405, 404, + 10243, 8405, 412, + 10243, 8405, 416, + 10243, 8405, 462, + 10243, 8405, 468, + 10243, 8405, 476, + 10243, 8405, 480, + 10243, 8405, 486, + 10243, 8405, 510, + 10243, 8405, 512, + 10243, 8405, 514, + 10243, 8405, 516, + 10243, 8405, 520, + 10243, 8405, 524, + 10243, 8405, 526, + 10243, 8405, 532, + 10243, 8405, 536, + 10243, 8405, 546, + 10243, 8405, 556, + 10243, 8405, 560, + 10243, 8405, 564, + 10243, 8405, 568, + 10243, 8405, 576, + 10243, 8405, 618, + 10243, 8405, 622, + 10243, 8405, 626, + 10243, 8405, 630, + 10243, 8405, 632, + 10243, 8405, 652, + 10243, 8405, 660, + 10243, 8405, 664, + 10243, 8405, 670, + 10243, 8405, 672, + 10243, 8405, 676, + 10243, 8405, 678, + 10243, 8405, 680, + 10243, 8405, 7593, 0, + 10243, 8405, 7593, 8, + 10243, 8405, 7593, 16, + 10243, 8405, 7593, 28, + 10243, 8405, 7593, 40, + 10243, 8405, 7593, 306, + 10243, 8405, 7593, 310, + 10243, 8405, 7593, 576, + 10243, 8405, 7593, 622, + 10243, 8405, 7593, 652, + 10243, 8405, 7593, 660, + 10243, 8405, 7593, 664, + 10243, 8921, 11067, 4926, + 10243, 9165, 6224, + 10243, 11067, 4926, + 10256, + 10257, 9495, 6121, 10677, 760, + 10260, + 10261, 6121, 7711, 5758, + 10261, 6121, 7768, + 10261, 6121, 8153, 8758, + 10261, 6121, 9546, + 10261, 6121, 10666, + 10261, 6121, 11097, 6435, 6121, 4530, + 10261, 6121, 12492, + 10261, 7939, 1, 7383, 10374, + 10261, 9015, 6121, 7580, + 10261, 10982, + 10265, 9610, + 10267, 2163, 5758, + 10267, 4841, 36, + 10267, 10469, 4926, + 10267, 10670, + 10267, 12017, 4926, + 10267, 12064, + 10277, 11663, 10539, 8774, + 10283, 8405, 0, + 10283, 8405, 8, + 10283, 8405, 16, + 10283, 8405, 26, + 10283, 8405, 28, + 10283, 8405, 40, + 10283, 8405, 100, + 10283, 8405, 102, + 10283, 8405, 106, + 10283, 8405, 108, + 10283, 8405, 112, + 10283, 8405, 138, + 10283, 8405, 142, + 10283, 8405, 144, + 10283, 8405, 150, + 10283, 8405, 152, + 10283, 8405, 216, + 10283, 8405, 220, + 10283, 8405, 224, + 10283, 8405, 228, + 10283, 8405, 230, + 10283, 8405, 236, + 10283, 8405, 238, + 10283, 8405, 242, + 10283, 8405, 246, + 10283, 8405, 250, + 10283, 8405, 306, + 10283, 8405, 310, + 10283, 8405, 314, + 10283, 8405, 322, + 10283, 8405, 326, + 10283, 8405, 364, + 10283, 8405, 368, + 10283, 8405, 374, + 10283, 8405, 380, + 10283, 8405, 384, + 10283, 8405, 392, + 10283, 8405, 396, + 10283, 8405, 404, + 10283, 8405, 412, + 10283, 8405, 416, + 10283, 8405, 462, + 10283, 8405, 468, + 10283, 8405, 476, + 10283, 8405, 480, + 10283, 8405, 486, + 10283, 8405, 510, + 10283, 8405, 512, + 10283, 8405, 514, + 10283, 8405, 516, + 10283, 8405, 520, + 10283, 8405, 524, + 10283, 8405, 526, + 10283, 8405, 532, + 10283, 8405, 536, + 10283, 8405, 546, + 10283, 8405, 556, + 10283, 8405, 560, + 10283, 8405, 564, + 10283, 8405, 568, + 10283, 8405, 576, + 10283, 8405, 610, + 10283, 8405, 612, + 10283, 8405, 614, + 10283, 8405, 616, + 10283, 8405, 618, + 10283, 8405, 622, + 10283, 8405, 626, + 10283, 8405, 630, + 10283, 8405, 632, + 10283, 8405, 652, + 10283, 8405, 660, + 10283, 8405, 664, + 10283, 8405, 670, + 10283, 8405, 672, + 10283, 8405, 676, + 10283, 8405, 678, + 10283, 8405, 680, + 10283, 8405, 7593, 0, + 10283, 8405, 7593, 8, + 10283, 8405, 7593, 16, + 10283, 8405, 7593, 28, + 10283, 8405, 7593, 40, + 10283, 8405, 7593, 236, + 10283, 8405, 7593, 238, + 10283, 8405, 7593, 242, + 10283, 8405, 7593, 246, + 10283, 8405, 7593, 250, + 10283, 8405, 7593, 306, + 10283, 8405, 7593, 310, + 10283, 8405, 7593, 326, + 10283, 8405, 7593, 384, + 10283, 8405, 7593, 416, + 10283, 8405, 7593, 510, + 10283, 8405, 7593, 512, + 10283, 8405, 7593, 514, + 10283, 8405, 7593, 516, + 10283, 8405, 7593, 520, + 10283, 8405, 7593, 532, + 10283, 8405, 7593, 546, + 10283, 8405, 7593, 568, + 10283, 8405, 7593, 576, + 10283, 8405, 7593, 622, + 10283, 8405, 7593, 652, + 10283, 8405, 7593, 660, + 10283, 8405, 7593, 664, + 10283, 8473, 1044, + 10283, 8921, 11067, 4926, + 10283, 9165, 4772, + 10283, 11067, 4926, + 10286, + 10297, 2638, + 10321, 8774, + 10327, 114, + 10327, 6408, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 601, 721, 4848, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 601, 721, 7442, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 4117, 721, 4848, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 4117, 721, 7442, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 4849, 721, 600, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 4849, 721, 4116, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 7443, 721, 600, + 10327, 6409, 6121, 5385, 735, 8165, 275, 6435, 10441, 7443, 721, 4116, + 10327, 6409, 9537, 4848, + 10327, 7443, 6409, 6121, 1044, + 10333, 2779, 8709, 5387, 4894, + 10333, 2779, 8709, 8328, + 10333, 4895, 5387, 2779, 8708, + 10333, 4895, 5387, 7550, + 10333, 6516, + 10333, 7551, 5387, 4894, + 10333, 9796, + 10333, 11164, + 10333, 11358, + 10339, 8405, 601, 5876, + 10339, 8405, 601, 10716, + 10339, 8405, 604, + 10339, 8405, 1045, 7580, + 10339, 8405, 1045, 10677, 760, + 10339, 8405, 1045, 11649, 760, + 10339, 8405, 1109, 1809, 5964, + 10339, 8405, 1109, 4423, 5964, + 10339, 8405, 1809, 601, 10716, + 10339, 8405, 1809, 4117, 10716, + 10339, 8405, 1809, 4849, 6434, + 10339, 8405, 1809, 4849, 10716, + 10339, 8405, 1809, 5550, + 10339, 8405, 1809, 5965, 760, + 10339, 8405, 1809, 6379, 7908, + 10339, 8405, 1809, 6875, 7908, + 10339, 8405, 1809, 7443, 10716, + 10339, 8405, 1809, 7708, + 10339, 8405, 1809, 8151, 5965, 760, + 10339, 8405, 1809, 8151, 11095, 5965, 760, + 10339, 8405, 1809, 8432, + 10339, 8405, 1809, 10267, 12017, 4926, + 10339, 8405, 1809, 10677, 4876, + 10339, 8405, 1809, 11095, 5965, 760, + 10339, 8405, 1809, 11449, 7908, + 10339, 8405, 1911, 5965, 760, + 10339, 8405, 1911, 8151, 5965, 760, + 10339, 8405, 1911, 8151, 11095, 5965, 760, + 10339, 8405, 1911, 11095, 5965, 760, + 10339, 8405, 3071, 10799, 5965, 4926, + 10339, 8405, 4117, 5876, + 10339, 8405, 4117, 10716, + 10339, 8405, 4389, 11859, 6610, + 10339, 8405, 4423, 5965, 760, + 10339, 8405, 4423, 8151, 5965, 760, + 10339, 8405, 4423, 8151, 11095, 5965, 760, + 10339, 8405, 4423, 11095, 5965, 760, + 10339, 8405, 4849, 4389, 5550, + 10339, 8405, 4849, 10716, + 10339, 8405, 5385, 7530, + 10339, 8405, 5445, 5758, + 10339, 8405, 6179, 10799, 5965, 4926, + 10339, 8405, 6379, 7908, + 10339, 8405, 6485, 1809, 5964, + 10339, 8405, 6485, 4423, 5964, + 10339, 8405, 6610, + 10339, 8405, 6623, 7908, + 10339, 8405, 6875, 7908, + 10339, 8405, 7121, 7443, 8077, 6408, + 10339, 8405, 7173, 5758, + 10339, 8405, 7390, + 10339, 8405, 7443, 4389, 5550, + 10339, 8405, 7443, 10716, + 10339, 8405, 7530, + 10339, 8405, 7551, 8167, 5758, + 10339, 8405, 7593, 0, + 10339, 8405, 7593, 2, + 10339, 8405, 7593, 4, + 10339, 8405, 7593, 5, 6121, 3966, + 10339, 8405, 7593, 6, + 10339, 8405, 7593, 8, + 10339, 8405, 7593, 10, + 10339, 8405, 7593, 12, + 10339, 8405, 7593, 14, + 10339, 8405, 7593, 15, 6121, 4530, + 10339, 8405, 7593, 17, 6121, 8758, + 10339, 8405, 7593, 18, + 10339, 8405, 7593, 19, 6121, 12426, + 10339, 8405, 7593, 20, + 10339, 8405, 7593, 22, + 10339, 8405, 7593, 23, 6121, 9553, 4530, + 10339, 8405, 7593, 23, 6121, 11215, 4530, + 10339, 8405, 7593, 24, + 10339, 8405, 7593, 25, 6121, 4530, + 10339, 8405, 7593, 27, 6121, 4849, 4530, + 10339, 8405, 7593, 27, 6121, 11215, 4530, + 10339, 8405, 7593, 28, + 10339, 8405, 7593, 30, + 10339, 8405, 7593, 34, + 10339, 8405, 7593, 36, + 10339, 8405, 7593, 37, 6121, 4530, + 10339, 8405, 7593, 38, + 10339, 8405, 7593, 39, 6121, 9553, 4530, + 10339, 8405, 7593, 40, + 10339, 8405, 7593, 41, 760, + 10339, 8405, 7593, 42, + 10339, 8405, 7593, 43, 6121, 4530, + 10339, 8405, 7593, 44, + 10339, 8405, 7593, 46, + 10339, 8405, 7593, 48, + 10339, 8405, 7593, 50, + 10339, 8405, 7593, 51, 6121, 3966, + 10339, 8405, 7593, 51, 6121, 11215, 4530, + 10339, 8405, 7593, 710, + 10339, 8405, 7593, 888, + 10339, 8405, 7593, 1110, + 10339, 8405, 7593, 1124, + 10339, 8405, 7593, 1130, + 10339, 8405, 7593, 1138, + 10339, 8405, 7593, 2216, + 10339, 8405, 7593, 2725, 4389, 28, + 10339, 8405, 7593, 3774, + 10339, 8405, 7593, 4614, + 10339, 8405, 7593, 5385, 8, + 10339, 8405, 7593, 5385, 28, + 10339, 8405, 7593, 6406, + 10339, 8405, 7593, 6674, + 10339, 8405, 7593, 6824, + 10339, 8405, 7593, 6879, 2216, + 10339, 8405, 7593, 6879, 6824, + 10339, 8405, 7593, 7494, + 10339, 8405, 7593, 7682, + 10339, 8405, 7593, 7981, 28, + 10339, 8405, 7593, 8005, 4389, 28, + 10339, 8405, 7593, 8679, 12, + 10339, 8405, 7593, 8869, 0, + 10339, 8405, 7593, 8869, 14, + 10339, 8405, 7593, 8869, 16, + 10339, 8405, 7593, 8869, 24, + 10339, 8405, 7593, 8869, 25, 6121, 4895, 1760, + 10339, 8405, 7593, 8869, 34, + 10339, 8405, 7593, 8869, 35, 6121, 4530, + 10339, 8405, 7593, 8869, 42, + 10339, 8405, 7593, 8869, 66, + 10339, 8405, 7593, 8869, 5385, 8, + 10339, 8405, 7593, 8869, 6406, + 10339, 8405, 7593, 9063, 16, + 10339, 8405, 7593, 9063, 17, 6121, 8758, + 10339, 8405, 7593, 9063, 22, + 10339, 8405, 7593, 9063, 26, + 10339, 8405, 7593, 9063, 40, + 10339, 8405, 7593, 9063, 10267, 34, + 10339, 8405, 7593, 9185, 19, 6121, 8758, + 10339, 8405, 7593, 9808, + 10339, 8405, 7593, 10489, 5385, 8, + 10339, 8405, 7593, 10489, 9313, 5836, + 10339, 8405, 7593, 10523, 40, + 10339, 8405, 8153, 7390, + 10339, 8405, 8153, 11424, + 10339, 8405, 8432, + 10339, 8405, 8473, 6875, 7908, + 10339, 8405, 8473, 8153, 6379, 7908, + 10339, 8405, 8473, 8153, 6875, 7908, + 10339, 8405, 8631, 601, 6434, + 10339, 8405, 8631, 4117, 6434, + 10339, 8405, 8631, 6610, + 10339, 8405, 8631, 10267, 12017, 4926, + 10339, 8405, 8631, 12017, 4926, + 10339, 8405, 8645, 4530, + 10339, 8405, 8755, 721, 1809, 5964, + 10339, 8405, 8755, 721, 4423, 5964, + 10339, 8405, 8869, 6616, + 10339, 8405, 9063, 0, + 10339, 8405, 9063, 2, + 10339, 8405, 9063, 6, + 10339, 8405, 9063, 8, + 10339, 8405, 9063, 12, + 10339, 8405, 9063, 14, + 10339, 8405, 9063, 16, + 10339, 8405, 9063, 18, + 10339, 8405, 9063, 20, + 10339, 8405, 9063, 22, + 10339, 8405, 9063, 24, + 10339, 8405, 9063, 26, + 10339, 8405, 9063, 28, + 10339, 8405, 9063, 30, + 10339, 8405, 9063, 34, + 10339, 8405, 9063, 38, + 10339, 8405, 9063, 40, + 10339, 8405, 9063, 42, + 10339, 8405, 9063, 44, + 10339, 8405, 9063, 66, + 10339, 8405, 9063, 450, + 10339, 8405, 9063, 7981, 2, + 10339, 8405, 9063, 10489, 8, + 10339, 8405, 9063, 10489, 26, + 10339, 8405, 9079, 4849, 4389, 5550, + 10339, 8405, 9079, 7443, 4389, 5550, + 10339, 8405, 9089, 5965, 3071, 506, + 10339, 8405, 9089, 5965, 3071, 520, + 10339, 8405, 9089, 5965, 3071, 5432, + 10339, 8405, 9089, 5965, 3071, 7514, + 10339, 8405, 9089, 5965, 6179, 506, + 10339, 8405, 9089, 5965, 6179, 520, + 10339, 8405, 9089, 5965, 6179, 5432, + 10339, 8405, 9089, 5965, 6179, 7514, + 10339, 8405, 9313, 5836, + 10339, 8405, 9828, + 10339, 8405, 9977, 176, + 10339, 8405, 10221, 1992, + 10339, 8405, 10489, 6616, + 10339, 8405, 10489, 9313, 5836, + 10339, 8405, 10677, 4876, + 10339, 8405, 10985, 5965, 760, + 10339, 8405, 10985, 8151, 5965, 760, + 10339, 8405, 10985, 8151, 11095, 5965, 760, + 10339, 8405, 10985, 11095, 5965, 760, + 10339, 8405, 11424, + 10339, 8405, 11449, 7908, + 10339, 8405, 11625, 5965, 760, + 10339, 8405, 11625, 8151, 5965, 760, + 10339, 8405, 11625, 8151, 11095, 5965, 760, + 10339, 8405, 11625, 11095, 5965, 760, + 10339, 8405, 11859, 6610, + 10339, 8405, 12380, + 10343, 1177, 3070, + 10343, 1177, 6178, + 10343, 1177, 6716, + 10346, + 10350, + 10351, 7768, + 10351, 13060, + 10353, 6689, 8696, + 10357, 9095, 6689, 6260, + 10357, 9095, 8525, 8162, + 10357, 9095, 8525, 8874, + 10357, 9095, 8525, 8876, + 10357, 9095, 8525, 9286, + 10357, 9095, 8525, 9700, + 10357, 9095, 8525, 10150, + 10357, 9095, 8525, 10200, + 10357, 9095, 8525, 10360, + 10357, 9095, 8525, 10622, + 10357, 9095, 8525, 11232, + 10363, 7608, + 10379, 428, + 10383, 6622, + 10385, 6505, 5830, + 10385, 6879, 6622, + 10385, 7089, 6622, + 10385, 7821, 5830, 10388, - 10393, 520, - 10393, 521, 657, 9121, 9800, - 10393, 5741, 961, 5990, - 10403, 84, - 10404, - 10413, 8258, - 10415, 7258, - 10415, 10566, - 10445, 667, 12203, 6046, - 10449, 2585, 7807, 6046, - 10449, 5727, 6046, - 10449, 6046, - 10449, 6047, 521, 696, - 10449, 6047, 521, 697, 5041, 11083, 6047, 521, 696, - 10449, 6047, 521, 6117, 8616, - 10449, 6047, 3963, 696, - 10449, 6047, 3963, 697, 521, 6117, 8616, - 10449, 6047, 5041, 11083, 6046, - 10449, 6047, 5741, 2505, 9222, - 10449, 6047, 5741, 2505, 10312, - 10449, 6047, 5741, 4256, - 10449, 6047, 5741, 4600, - 10449, 6047, 5741, 5095, 6102, - 10449, 6047, 5741, 5520, - 10449, 6047, 5741, 7673, 10043, 8244, - 10449, 6047, 5741, 8244, - 10449, 6047, 5741, 10043, 8244, - 10449, 6047, 5991, 7103, 11083, 6046, - 10449, 6047, 5991, 7257, 9772, - 10449, 6047, 9199, 8248, - 10449, 6047, 9199, 10450, - 10449, 6117, 6046, - 10449, 7357, 6046, - 10449, 7621, 6046, - 10449, 7673, 3759, 6046, - 10449, 7673, 6046, - 10449, 7673, 6047, 3963, 696, - 10449, 7673, 6047, 5741, 8244, - 10449, 7673, 6047, 5741, 10043, 8244, - 10449, 7673, 10766, - 10449, 8065, 7480, - 10449, 8327, 3759, 6046, - 10449, 8327, 6046, - 10449, 8777, 5041, 11083, 8776, - 10449, 8777, 5741, 3495, 547, 521, 696, - 10449, 8777, 5741, 3495, 547, 3963, 696, - 10449, 8777, 5741, 3495, 547, 5991, 4599, 3758, - 10449, 8777, 5741, 3495, 547, 5991, 10449, 8777, 5741, 3495, 3862, - 10449, 8777, 5741, 3495, 547, 5991, 11083, 8777, 5741, 3495, 546, - 10449, 8777, 5741, 3495, 3863, 521, 696, - 10449, 8777, 5741, 3495, 3863, 3963, 696, - 10449, 8777, 5741, 3495, 3863, 5991, 11083, 8777, 5741, 3495, 3862, - 10449, 8777, 5741, 3495, 3863, 6103, 4599, 3758, - 10449, 8777, 5741, 3495, 9222, - 10449, 8777, 5741, 3495, 10312, - 10449, 9907, 6046, - 10449, 10766, - 10449, 11413, 6046, - 10451, 415, 6331, 520, - 10451, 415, 9121, 6331, 520, - 10451, 415, 9121, 6331, 521, 5741, 961, 5990, - 10451, 415, 9121, 6331, 521, 5741, 961, 5991, 6996, - 10451, 415, 9121, 6331, 521, 5741, 961, 7836, - 10451, 415, 10951, 520, - 10451, 415, 11208, - 10451, 415, 11778, - 10451, 657, 1931, 11208, - 10451, 657, 11653, 1931, 6331, 520, - 10451, 761, 1931, 6331, 520, - 10451, 761, 1931, 10951, 520, - 10451, 5041, 6331, 520, - 10451, 5400, - 10451, 5741, 960, - 10451, 5741, 7583, 7836, - 10451, 5741, 9853, 4631, 5990, - 10451, 5991, 9109, 415, 6330, - 10451, 5991, 9109, 5991, 11778, - 10451, 5991, 9121, 6331, 5991, 11779, 5991, 9121, 6330, - 10451, 5991, 10449, 6046, - 10451, 5991, 11319, 6331, 5991, 11778, - 10451, 5991, 11779, 5991, 11319, 6330, - 10451, 6331, 521, 415, 11778, - 10451, 7591, 107, 6230, - 10451, 7591, 107, 6231, 5991, 9121, 6330, - 10456, - 10463, 89, 7915, 4630, - 10463, 5401, 8392, - 10463, 5401, 9236, - 10463, 5401, 9280, - 10463, 6287, 2004, - 10463, 6287, 2358, - 10463, 6287, 2584, - 10463, 6287, 3942, - 10463, 6287, 3956, - 10463, 6287, 4854, - 10463, 6287, 5878, - 10463, 6287, 6312, - 10463, 6287, 7060, - 10463, 6287, 7244, - 10463, 7341, 5401, 8, - 10463, 7341, 5401, 16, - 10463, 7341, 5401, 28, - 10463, 7341, 5401, 40, - 10463, 7341, 5401, 58, - 10463, 7341, 5401, 70, - 10463, 7341, 5401, 88, - 10463, 7341, 5401, 150, - 10463, 7341, 5401, 248, - 10463, 7341, 5401, 410, - 10463, 7341, 5401, 550, - 10463, 7341, 5401, 9239, 34, - 10463, 7919, 0, - 10463, 7919, 8, - 10463, 7919, 16, - 10463, 7919, 28, - 10463, 7919, 40, - 10463, 7919, 58, - 10463, 7919, 70, - 10463, 7919, 88, - 10463, 7919, 94, - 10463, 7919, 108, - 10463, 7919, 128, - 10463, 7919, 150, - 10463, 7919, 200, - 10463, 7919, 220, - 10463, 7919, 248, - 10463, 7919, 274, - 10463, 7919, 286, - 10463, 7919, 312, - 10463, 7919, 342, - 10463, 7919, 370, - 10463, 7919, 410, - 10463, 7919, 430, - 10463, 7919, 472, - 10463, 7919, 486, - 10463, 7919, 510, - 10463, 7919, 550, - 10463, 7919, 554, - 10463, 7919, 596, - 10463, 7919, 728, - 10463, 7919, 810, - 10463, 7919, 898, - 10463, 7919, 920, - 10463, 7919, 1158, - 10463, 7919, 1394, - 10463, 7919, 1492, - 10463, 7919, 1664, - 10463, 7919, 1874, - 10463, 7919, 1916, - 10463, 7919, 1962, - 10463, 7919, 2042, - 10463, 7919, 2262, - 10463, 7919, 2334, - 10463, 7919, 2384, - 10463, 7919, 2486, - 10463, 7919, 2552, - 10463, 7919, 3782, - 10463, 7919, 4592, - 10463, 7919, 5626, - 10463, 7919, 9239, 22, - 10463, 7919, 9239, 34, - 10463, 7919, 9239, 322, - 10463, 7919, 9239, 480, - 10465, 8981, 10406, - 10475, 3957, 3860, - 10475, 3959, 10727, 9887, 2004, - 10475, 3959, 10727, 9887, 2584, - 10475, 3959, 10727, 9887, 7244, - 10475, 3965, 5478, - 10475, 5393, 9957, 9331, 7958, - 10475, 5601, 5423, 7824, - 10475, 6112, - 10475, 6212, - 10475, 6218, - 10475, 6287, 2004, - 10475, 6287, 2358, - 10475, 6287, 2584, - 10475, 6287, 3942, - 10475, 6287, 3956, - 10475, 6287, 4854, - 10475, 6287, 5878, - 10475, 6287, 6312, - 10475, 6287, 7060, - 10475, 6287, 7244, - 10475, 7341, 10566, - 10475, 7919, 0, - 10475, 7919, 8, - 10475, 7919, 16, - 10475, 7919, 28, - 10475, 7919, 40, - 10475, 7919, 94, - 10475, 7919, 128, - 10475, 7919, 150, - 10475, 7919, 182, - 10475, 7919, 200, - 10475, 7919, 274, - 10475, 7919, 286, - 10475, 7919, 312, - 10475, 7919, 342, - 10475, 7919, 370, - 10475, 7919, 398, - 10475, 7919, 430, - 10475, 7919, 458, - 10475, 7919, 472, - 10475, 7919, 486, - 10475, 7919, 510, - 10475, 7919, 536, - 10475, 7919, 566, - 10475, 7919, 596, - 10475, 7919, 614, - 10475, 7919, 653, 3979, 0, - 10475, 7919, 653, 3979, 16, - 10475, 7919, 653, 3979, 68, - 10475, 7919, 653, 3979, 108, - 10475, 7919, 653, 3979, 128, - 10475, 7919, 653, 3979, 286, - 10475, 7919, 653, 3979, 430, - 10475, 7919, 653, 3979, 510, - 10475, 7919, 653, 3979, 614, - 10475, 7919, 653, 3979, 898, - 10475, 7919, 653, 3979, 1874, - 10475, 7919, 653, 3979, 1916, - 10475, 7919, 653, 3979, 2042, - 10475, 7919, 653, 3979, 2384, - 10475, 7919, 653, 3979, 2552, - 10475, 7919, 653, 3979, 2936, - 10475, 7919, 653, 3979, 4119, 40, - 10475, 7919, 653, 3979, 4119, 596, - 10475, 7919, 653, 3979, 5626, - 10475, 7919, 653, 3979, 7245, 7506, - 10475, 7919, 653, 3979, 7506, - 10475, 7919, 653, 3979, 7616, - 10475, 7919, 653, 3979, 8596, - 10475, 7919, 653, 3979, 9214, - 10475, 7919, 653, 3979, 9237, 2004, - 10475, 7919, 653, 3979, 9281, 2004, - 10475, 7919, 653, 3979, 9667, 9214, - 10475, 7919, 658, - 10475, 7919, 810, - 10475, 7919, 814, - 10475, 7919, 1232, - 10475, 7919, 1492, - 10475, 7919, 1638, - 10475, 7919, 2334, - 10475, 7919, 2540, - 10475, 7919, 2940, - 10475, 7919, 2976, - 10475, 7919, 5393, 8, - 10475, 7919, 5393, 16, - 10475, 7919, 5393, 40, - 10475, 7919, 5393, 128, - 10475, 7919, 5393, 182, - 10475, 7919, 5393, 200, - 10475, 7919, 5393, 220, - 10475, 7919, 5393, 272, - 10475, 7919, 5393, 274, - 10475, 7919, 5393, 286, - 10475, 7919, 5393, 430, - 10475, 7919, 5393, 510, - 10475, 7919, 5393, 536, - 10475, 7919, 5393, 614, - 10475, 7919, 5393, 658, - 10475, 7919, 5393, 810, - 10475, 7919, 5393, 1112, - 10475, 7919, 5393, 1232, - 10475, 7919, 5393, 2206, - 10475, 7919, 5393, 2334, - 10475, 7919, 5393, 2540, - 10475, 7919, 5393, 2936, - 10475, 7919, 5601, 8, - 10475, 7919, 5601, 16, - 10475, 7919, 5601, 28, - 10475, 7919, 5601, 40, - 10475, 7919, 5601, 94, - 10475, 7919, 5601, 128, - 10475, 7919, 5601, 200, - 10475, 7919, 5601, 274, - 10475, 7919, 5601, 286, - 10475, 7919, 5601, 342, - 10475, 7919, 5601, 398, - 10475, 7919, 5601, 430, - 10475, 7919, 5601, 458, - 10475, 7919, 5601, 510, - 10475, 7919, 5601, 536, - 10475, 7919, 5601, 566, - 10475, 7919, 5601, 596, - 10475, 7919, 5601, 653, 3979, 510, - 10475, 7919, 5601, 653, 3979, 2936, - 10475, 7919, 5601, 658, - 10475, 7919, 5601, 810, - 10475, 7919, 5601, 994, - 10475, 7919, 5601, 1112, - 10475, 7919, 5601, 1232, - 10475, 7919, 5601, 1398, - 10475, 7919, 5601, 1888, - 10475, 7919, 5601, 2540, - 10475, 7919, 5601, 4599, 7341, 5400, - 10475, 7919, 7947, 16, - 10475, 7919, 7947, 182, - 10475, 7919, 7947, 286, - 10475, 7919, 7947, 472, - 10475, 7919, 7947, 653, 3979, 108, - 10475, 7919, 7947, 653, 3979, 510, - 10475, 7919, 7947, 653, 3979, 614, - 10475, 7919, 7947, 653, 3979, 728, - 10475, 7919, 7947, 653, 3979, 868, - 10475, 7919, 7947, 653, 3979, 920, - 10475, 7919, 7947, 653, 3979, 1158, - 10475, 7919, 7947, 653, 3979, 1394, - 10475, 7919, 7947, 653, 3979, 1874, - 10475, 7919, 7947, 653, 3979, 2384, - 10475, 7919, 7947, 653, 3979, 2552, - 10475, 7919, 7947, 653, 3979, 2936, - 10475, 7919, 7947, 653, 3979, 3782, - 10475, 7919, 7947, 2936, - 10475, 7947, 3965, 5478, - 10475, 7947, 6218, - 10475, 8022, - 10475, 9560, - 10505, 10566, - 10511, 6895, 5400, + 10411, 568, + 10411, 6121, 7709, 10374, + 10411, 6121, 11649, 8758, + 10429, 4927, 5668, + 10429, 4927, 8153, 5668, + 10429, 8153, 4399, 4926, + 10429, 8405, 0, + 10429, 8405, 8, + 10429, 8405, 16, + 10429, 8405, 28, + 10429, 8405, 40, + 10429, 8405, 100, + 10429, 8405, 116, + 10429, 8405, 138, + 10429, 8405, 162, + 10429, 8405, 196, + 10429, 8405, 216, + 10429, 8405, 236, + 10429, 8405, 292, + 10429, 8405, 306, + 10429, 8405, 332, + 10429, 8405, 364, + 10429, 8405, 392, + 10429, 8405, 462, + 10429, 8405, 496, + 10429, 8405, 510, + 10429, 8405, 524, + 10429, 8405, 556, + 10429, 8405, 622, + 10429, 8405, 638, + 10429, 8405, 652, + 10429, 8405, 670, + 10429, 8405, 884, + 10429, 8405, 974, + 10429, 8405, 1080, + 10429, 8405, 1250, + 10429, 8405, 1612, + 10429, 8405, 2030, + 10429, 8405, 2076, + 10429, 8405, 2126, + 10429, 8405, 2212, + 10429, 8405, 2516, + 10429, 8405, 2678, + 10429, 8405, 2732, + 10429, 8405, 2746, + 10429, 8405, 3146, + 10429, 8405, 5978, + 10429, 8405, 5994, + 10429, 8405, 7593, 0, + 10429, 8405, 8921, 236, + 10429, 8405, 10707, 652, + 10429, 8405, 10721, 196, + 10429, 8405, 11395, 2516, + 10429, 8405, 11900, + 10429, 8717, 4399, 4926, + 10429, 11257, 8405, 510, + 10429, 11257, 8405, 622, + 10429, 11257, 8405, 652, + 10429, 11843, 8405, 510, + 10431, 4093, 5759, 457, 3696, + 10431, 4093, 5759, 778, + 10431, 4093, 5759, 824, + 10431, 4093, 5759, 862, + 10431, 4093, 5759, 1780, + 10431, 4093, 5759, 2386, + 10431, 4093, 5759, 2498, + 10431, 4093, 5759, 3948, + 10431, 4093, 5759, 3954, + 10431, 4093, 5759, 4114, + 10431, 4093, 5759, 4418, + 10431, 4093, 5759, 4536, + 10431, 4093, 5759, 4874, + 10431, 4093, 5759, 5700, + 10431, 4093, 5759, 6090, + 10431, 4093, 5759, 6107, 3706, + 10431, 4093, 5759, 6434, + 10431, 4093, 5759, 6533, 1760, + 10431, 4093, 5759, 6574, + 10431, 4093, 5759, 6712, + 10431, 4093, 5759, 6794, + 10431, 4093, 5759, 7379, 5968, + 10431, 4093, 5759, 7586, + 10431, 4093, 5759, 7593, 742, + 10431, 4093, 5759, 7702, + 10431, 4093, 5759, 7752, + 10431, 4093, 5759, 7830, + 10431, 4093, 5759, 8068, + 10431, 4093, 5759, 8126, + 10431, 4093, 5759, 8270, + 10431, 4093, 5759, 8296, + 10431, 4093, 5759, 8599, 4398, + 10431, 4093, 5759, 8704, + 10431, 4093, 5759, 9036, + 10431, 4093, 5759, 9064, + 10431, 4093, 5759, 9462, + 10431, 4093, 5759, 9568, + 10431, 4093, 5759, 9638, + 10431, 4093, 5759, 10216, + 10431, 4093, 5759, 10316, + 10431, 4093, 5759, 10546, + 10431, 4093, 5759, 10611, 4398, + 10431, 4093, 5759, 10744, + 10431, 4093, 5759, 10753, 7378, + 10431, 4093, 5759, 10767, 9525, 8758, + 10431, 4093, 5759, 11718, + 10433, 5830, + 10445, 11054, + 10452, + 10453, 445, 6741, 568, + 10453, 445, 11621, 568, + 10453, 835, 2091, 11621, 568, + 10453, 6377, 2091, 6741, 568, + 10453, 6377, 2091, 7919, 6741, 568, + 10453, 6377, 7919, 6741, 568, + 10453, 6377, 8167, 5758, + 10453, 6377, 12345, 2091, 6741, 568, + 10453, 6377, 12345, 8167, 5758, + 10453, 7767, 10476, + 10455, 5392, + 10461, 4876, + 10465, 7121, 4848, + 10465, 7121, 7442, + 10465, 7773, 4848, + 10465, 7773, 4849, 721, 7121, 4849, 721, 7121, 7442, + 10465, 7773, 4849, 721, 7121, 7442, + 10465, 7773, 4849, 721, 7773, 7443, 721, 7121, 4848, + 10465, 7773, 4849, 721, 7773, 7443, 721, 7121, 7442, + 10465, 7773, 7442, + 10465, 7773, 7443, 721, 7121, 4848, + 10465, 7773, 7443, 721, 7121, 4849, 721, 7121, 7442, + 10469, 4926, + 10469, 12017, 4926, + 10470, + 10475, 7337, 8774, + 10486, + 10489, 2091, 5758, + 10489, 6408, + 10489, 6409, 6121, 10666, + 10489, 6731, 2510, + 10489, 7390, + 10489, 7708, + 10489, 7709, 8166, + 10489, 8153, 7390, + 10489, 8153, 7391, 11195, 4926, + 10489, 8153, 8759, 2091, 5758, + 10489, 8231, 12108, + 10489, 8849, 7390, + 10489, 9595, 5758, + 10489, 9641, 8225, 6907, 8022, + 10489, 10469, 4926, + 10489, 11224, + 10489, 11767, 9063, 22, + 10504, + 10513, 7821, 5830, + 10513, 7821, 7089, 6622, + 10513, 7821, 8056, 10514, - 10515, 5741, 2475, 2532, - 10533, 6946, - 10533, 9661, 9772, - 10535, 4630, - 10545, 8259, 1085, 8355, 9820, - 10545, 8259, 1085, 8357, 9820, - 10545, 8259, 1085, 8359, 9820, - 10545, 8259, 1085, 8361, 9820, - 10545, 8259, 1085, 8363, 9820, - 10545, 8259, 1085, 8365, 9820, - 10545, 8259, 1085, 8367, 9820, - 10545, 8259, 1085, 8755, 10466, - 10547, 4630, - 10557, 9665, 9038, - 10562, - 10580, - 10583, 6020, - 10583, 6021, 8979, 546, - 10583, 6021, 8979, 4554, - 10599, 2004, - 10599, 2358, - 10599, 2584, - 10599, 3942, - 10599, 3956, - 10599, 4555, 11424, - 10599, 4854, - 10599, 5095, 5400, - 10599, 5878, - 10599, 6312, - 10599, 6738, - 10599, 6997, 11424, - 10599, 7060, - 10599, 7244, - 10599, 7687, 5400, - 10601, 2532, - 10601, 5741, 9660, - 10601, 7538, - 10691, 5400, - 10691, 9703, 5400, - 10691, 9854, - 10693, 1085, 409, 2489, 7330, - 10693, 1085, 1430, - 10693, 1085, 1619, 415, 6746, - 10693, 1085, 3581, 11072, - 10693, 1085, 3892, - 10693, 1085, 3965, 7582, - 10693, 1085, 6296, - 10693, 1085, 6451, 521, 4644, - 10693, 1085, 6572, - 10693, 1085, 6740, - 10693, 1085, 6984, - 10693, 1085, 7194, - 10693, 1085, 7310, - 10693, 1085, 7346, - 10693, 1085, 7488, - 10693, 1085, 7568, - 10693, 1085, 7572, - 10693, 1085, 7591, 6752, - 10693, 1085, 7676, - 10693, 1085, 7742, - 10693, 1085, 7910, - 10693, 1085, 8114, - 10693, 1085, 8144, - 10693, 1085, 8446, - 10693, 1085, 8494, - 10693, 1085, 8560, - 10693, 1085, 8570, - 10693, 1085, 8624, - 10693, 1085, 8728, - 10693, 1085, 8791, 3482, - 10693, 1085, 8845, 7142, - 10693, 1085, 8852, - 10693, 1085, 8908, - 10693, 1085, 8912, - 10693, 1085, 8992, - 10693, 1085, 9004, - 10693, 1085, 9054, - 10693, 1085, 9112, - 10693, 1085, 9244, - 10693, 1085, 9572, - 10693, 1085, 9612, - 10693, 1085, 9632, - 10693, 1085, 9652, - 10693, 1085, 9868, - 10693, 1085, 9914, - 10693, 1085, 9922, - 10693, 1085, 10039, 415, 9248, - 10693, 1085, 10109, 2016, - 10693, 1085, 10122, - 10693, 1085, 10132, - 10693, 1085, 10146, - 10693, 1085, 10154, - 10693, 1085, 10324, - 10693, 1085, 10350, - 10693, 1085, 10354, - 10693, 1085, 10364, - 10693, 1085, 10365, 256, - 10693, 1085, 10376, - 10693, 1085, 10438, - 10693, 1085, 10550, - 10693, 1085, 10572, - 10693, 1085, 10788, - 10693, 1085, 10790, - 10693, 1085, 10794, - 10693, 1085, 10818, - 10693, 1085, 10942, - 10693, 1085, 10952, - 10693, 1085, 11028, - 10693, 1085, 11070, - 10693, 1085, 11200, - 10693, 1085, 11228, - 10693, 1085, 11324, - 10693, 1085, 11338, - 10693, 1085, 11428, - 10693, 1085, 11700, - 10693, 1085, 11736, - 10693, 1085, 11740, - 10693, 1085, 11742, - 10693, 1085, 12200, - 10693, 1085, 12223, 415, 10816, - 10693, 1085, 12234, - 10696, - 10723, 10545, 8258, - 10725, 11427, 8258, - 10727, 11086, - 10727, 11088, - 10727, 11090, - 10727, 11092, - 10727, 11094, - 10727, 11096, - 10727, 11098, - 10727, 11100, - 10727, 11102, - 10727, 11470, - 10727, 11472, - 10727, 11474, - 10727, 11476, - 10727, 11478, - 10727, 11480, - 10727, 11482, - 10727, 11484, - 10727, 11486, - 10727, 11488, - 10727, 11490, - 10727, 11492, - 10727, 11494, - 10727, 11496, - 10727, 11498, - 10727, 11500, - 10727, 11502, - 10727, 11504, - 10727, 11506, - 10727, 11508, - 10727, 11510, - 10727, 11512, - 10727, 11514, - 10727, 11516, - 10727, 11518, - 10727, 11520, - 10727, 11522, - 10727, 11524, - 10727, 11526, - 10727, 11528, - 10727, 11530, - 10727, 11532, - 10727, 11534, - 10727, 11536, - 10727, 11538, - 10727, 11540, - 10727, 11542, - 10727, 11544, - 10727, 11546, - 10727, 11548, - 10727, 11550, - 10727, 11552, - 10727, 11554, - 10727, 11556, - 10727, 11558, - 10727, 11560, - 10727, 11562, - 10727, 11564, - 10727, 11566, - 10727, 11568, - 10727, 11570, - 10727, 11572, - 10727, 11574, - 10727, 11576, - 10727, 11578, - 10727, 11580, - 10727, 11582, - 10727, 11584, - 10727, 11586, - 10727, 11588, - 10727, 11590, - 10727, 11592, - 10727, 11594, - 10727, 11596, - 10727, 11598, - 10727, 11600, - 10727, 11602, - 10727, 11604, - 10727, 11606, - 10727, 11608, - 10727, 11610, - 10727, 11612, - 10727, 11614, - 10727, 11616, - 10727, 11618, - 10727, 11620, - 10727, 11622, - 10727, 11624, - 10727, 11626, - 10727, 11628, - 10727, 11630, - 10727, 11632, - 10727, 11634, - 10727, 11636, - 10727, 11638, - 10727, 11640, - 10727, 11642, - 10727, 11644, - 10727, 11646, - 10727, 11648, - 10727, 11844, - 10727, 11846, - 10727, 11848, - 10727, 11850, - 10727, 11852, - 10727, 11854, - 10727, 11856, - 10727, 11858, - 10727, 11860, - 10727, 11862, - 10727, 11864, - 10727, 11866, - 10727, 11868, - 10727, 11870, - 10727, 11872, - 10727, 11874, - 10727, 11876, - 10727, 11878, - 10727, 11880, - 10727, 11882, - 10727, 11884, - 10727, 11886, - 10727, 11888, - 10727, 11890, - 10727, 11892, - 10727, 11894, - 10727, 11896, - 10727, 11898, - 10727, 11900, - 10727, 11902, - 10727, 11904, - 10727, 11906, - 10727, 11908, - 10727, 11910, - 10727, 11912, - 10727, 11914, - 10727, 11916, - 10727, 11918, - 10727, 11920, - 10727, 11922, - 10727, 11924, - 10727, 11926, - 10727, 11928, - 10727, 11930, - 10727, 11932, - 10727, 11934, - 10727, 11936, - 10727, 11938, - 10727, 11940, - 10727, 11942, - 10727, 11944, - 10727, 11946, - 10727, 11948, - 10727, 11950, - 10727, 11952, - 10727, 11954, - 10727, 11956, - 10727, 11958, - 10727, 11960, - 10727, 11962, - 10727, 11964, - 10727, 11966, - 10727, 11968, - 10727, 11970, - 10727, 11972, - 10727, 11974, - 10727, 11976, - 10727, 11978, - 10727, 11980, - 10727, 11982, - 10727, 11984, - 10727, 11986, - 10727, 11988, - 10727, 11990, - 10727, 11992, - 10727, 11994, - 10727, 11996, - 10727, 11998, - 10727, 12000, - 10727, 12002, - 10727, 12004, - 10727, 12006, - 10727, 12008, - 10727, 12010, - 10727, 12012, - 10727, 12014, - 10727, 12016, - 10727, 12018, - 10727, 12020, - 10727, 12022, - 10727, 12024, - 10727, 12026, - 10727, 12028, - 10727, 12030, - 10727, 12032, - 10727, 12034, - 10727, 12036, - 10727, 12038, - 10727, 12040, - 10727, 12042, - 10727, 12044, - 10727, 12046, - 10727, 12048, - 10727, 12050, - 10727, 12052, - 10727, 12054, - 10727, 12056, - 10727, 12058, - 10727, 12060, - 10727, 12062, - 10727, 12064, - 10727, 12066, - 10727, 12068, - 10727, 12070, - 10727, 12072, - 10727, 12074, - 10727, 12076, - 10727, 12078, - 10727, 12080, - 10727, 12082, - 10727, 12084, - 10727, 12086, - 10727, 12088, - 10727, 12090, - 10727, 12092, - 10727, 12094, - 10727, 12096, - 10727, 12098, - 10727, 12100, - 10727, 12102, - 10727, 12104, - 10727, 12106, - 10727, 12108, - 10727, 12110, - 10727, 12112, - 10727, 12114, - 10727, 12116, - 10727, 12118, - 10727, 12120, - 10727, 12122, - 10727, 12124, - 10727, 12126, - 10727, 12128, - 10727, 12130, - 10727, 12132, - 10727, 12134, - 10727, 12136, - 10727, 12138, - 10727, 12140, - 10727, 12142, - 10727, 12144, - 10727, 12146, - 10727, 12148, - 10727, 12150, - 10727, 12152, - 10727, 12154, - 10727, 12156, - 10760, - 10763, 2489, 6674, - 10781, 1677, 4580, - 10781, 9786, - 10783, 7444, - 10785, 86, - 10785, 6739, 5400, - 10786, - 10797, 10721, 8258, - 10807, 4898, - 10809, 406, - 10809, 5401, 6840, - 10809, 5401, 8392, - 10809, 5401, 9236, - 10809, 5401, 9280, - 10809, 5401, 9314, - 10809, 5401, 11212, - 10809, 5993, 7444, - 10809, 6248, - 10809, 6287, 2004, - 10809, 6287, 2358, - 10809, 6287, 2584, - 10809, 6287, 3942, - 10809, 6287, 3956, - 10809, 6287, 4854, - 10809, 6287, 5878, - 10809, 6287, 6312, - 10809, 6287, 7060, - 10809, 6287, 7244, - 10809, 6461, 7444, - 10809, 7341, 5401, 8, - 10809, 7341, 5401, 16, - 10809, 7341, 5401, 28, - 10809, 7341, 5401, 40, - 10809, 7341, 5401, 58, - 10809, 7341, 5401, 70, - 10809, 7341, 5401, 88, - 10809, 7341, 5401, 248, - 10809, 7341, 5401, 550, - 10809, 7341, 5401, 7103, 8, - 10809, 7341, 5401, 7103, 28, - 10809, 7341, 5401, 7565, 8, - 10809, 7341, 5401, 7565, 28, - 10809, 7341, 5401, 9239, 22, - 10809, 7341, 5401, 9239, 34, - 10809, 7341, 5401, 9239, 322, - 10809, 7341, 5401, 9239, 480, - 10809, 7673, 6248, - 10809, 7919, 0, - 10809, 7919, 8, - 10809, 7919, 16, - 10809, 7919, 28, - 10809, 7919, 40, - 10809, 7919, 58, - 10809, 7919, 70, - 10809, 7919, 88, - 10809, 7919, 94, - 10809, 7919, 108, - 10809, 7919, 128, - 10809, 7919, 182, - 10809, 7919, 200, - 10809, 7919, 220, - 10809, 7919, 248, - 10809, 7919, 274, - 10809, 7919, 286, - 10809, 7919, 312, - 10809, 7919, 342, - 10809, 7919, 370, - 10809, 7919, 430, - 10809, 7919, 458, - 10809, 7919, 472, - 10809, 7919, 486, - 10809, 7919, 510, - 10809, 7919, 550, - 10809, 7919, 554, - 10809, 7919, 596, - 10809, 7919, 614, - 10809, 7919, 702, - 10809, 7919, 728, - 10809, 7919, 810, - 10809, 7919, 898, - 10809, 7919, 920, - 10809, 7919, 1148, - 10809, 7919, 1158, - 10809, 7919, 1394, - 10809, 7919, 1410, - 10809, 7919, 1492, - 10809, 7919, 1664, - 10809, 7919, 1874, - 10809, 7919, 1916, - 10809, 7919, 1962, - 10809, 7919, 2042, - 10809, 7919, 2234, - 10809, 7919, 2262, - 10809, 7919, 2334, - 10809, 7919, 2384, - 10809, 7919, 2486, - 10809, 7919, 2552, - 10809, 7919, 2900, - 10809, 7919, 3774, - 10809, 7919, 3782, - 10809, 7919, 4052, - 10809, 7919, 4466, - 10809, 7919, 4592, - 10809, 7919, 4894, - 10809, 7919, 5626, - 10809, 7919, 6260, - 10809, 7919, 7103, 0, - 10809, 7919, 7103, 8, - 10809, 7919, 7103, 28, - 10809, 7919, 7565, 8, - 10809, 7919, 7565, 28, - 10809, 7919, 8763, 5478, - 10809, 7919, 9239, 22, - 10809, 7919, 9239, 34, - 10809, 7919, 9239, 322, - 10809, 7919, 9239, 480, - 10809, 8241, 5401, 8368, - 10809, 8241, 5401, 9278, - 10809, 11699, 5400, - 10811, 8508, - 10937, 11798, - 10951, 520, - 10951, 5741, 3957, 3861, 5990, - 10971, 7143, 7919, 16, - 10971, 7143, 7919, 434, - 10971, 7143, 7919, 604, - 10971, 7143, 7919, 608, - 10971, 7143, 7919, 682, - 10971, 7143, 7919, 737, 2886, - 10971, 7143, 7919, 2010, - 10971, 7143, 7919, 2014, - 10971, 7143, 7919, 2334, - 10971, 7143, 7919, 2544, - 10971, 7143, 7919, 2614, - 10971, 7143, 7919, 3586, - 10971, 7143, 7919, 3940, - 10971, 7143, 7919, 4136, - 10971, 7143, 7919, 4350, - 10971, 7143, 7919, 4432, - 10971, 7143, 7919, 5362, - 10971, 7143, 7919, 5702, - 10971, 7143, 7919, 5806, - 10971, 7143, 7919, 5816, - 10971, 7143, 7919, 5818, - 10971, 7143, 7919, 6294, - 10971, 7143, 7919, 6304, - 10971, 7143, 7919, 6396, - 10971, 7143, 7919, 6776, - 10971, 7143, 7919, 6998, - 10971, 7143, 7919, 7140, - 10971, 7143, 7919, 7143, 2886, - 10971, 7143, 7919, 7143, 2887, 5741, 5520, - 10971, 7143, 7919, 7392, - 10971, 7143, 7919, 7576, - 10971, 7143, 7919, 7648, - 10971, 7143, 7919, 8104, - 10971, 7143, 7919, 8348, - 10971, 7143, 7919, 8430, - 10971, 7143, 7919, 8760, - 10971, 7143, 7919, 8813, 4350, - 10971, 7143, 7919, 8821, 737, 2886, - 10971, 7143, 7919, 8821, 7143, 2886, - 10971, 7143, 7919, 8822, - 10971, 7143, 7919, 8884, - 10971, 7143, 7919, 8932, - 10971, 7143, 7919, 9104, - 10971, 7143, 7919, 9141, 220, - 10971, 7143, 7919, 9260, - 10971, 7143, 7919, 9699, 8932, - 10971, 7143, 7919, 11181, 0, - 10971, 8527, 7919, 16, - 10971, 8527, 7919, 434, - 10971, 8527, 7919, 604, - 10971, 8527, 7919, 608, - 10971, 8527, 7919, 682, - 10971, 8527, 7919, 737, 2886, - 10971, 8527, 7919, 2010, - 10971, 8527, 7919, 2014, - 10971, 8527, 7919, 2334, - 10971, 8527, 7919, 2544, - 10971, 8527, 7919, 2614, - 10971, 8527, 7919, 3586, - 10971, 8527, 7919, 3940, - 10971, 8527, 7919, 4136, - 10971, 8527, 7919, 4350, - 10971, 8527, 7919, 4432, - 10971, 8527, 7919, 5362, - 10971, 8527, 7919, 5702, - 10971, 8527, 7919, 5806, - 10971, 8527, 7919, 5816, - 10971, 8527, 7919, 5818, - 10971, 8527, 7919, 6294, - 10971, 8527, 7919, 6304, - 10971, 8527, 7919, 6396, - 10971, 8527, 7919, 6776, - 10971, 8527, 7919, 6998, - 10971, 8527, 7919, 7140, - 10971, 8527, 7919, 7143, 2886, - 10971, 8527, 7919, 7143, 2887, 5741, 5520, - 10971, 8527, 7919, 7392, - 10971, 8527, 7919, 7576, - 10971, 8527, 7919, 7648, - 10971, 8527, 7919, 8104, - 10971, 8527, 7919, 8348, - 10971, 8527, 7919, 8430, - 10971, 8527, 7919, 8760, - 10971, 8527, 7919, 8813, 4350, - 10971, 8527, 7919, 8821, 737, 2886, - 10971, 8527, 7919, 8821, 7143, 2886, - 10971, 8527, 7919, 8822, - 10971, 8527, 7919, 8884, - 10971, 8527, 7919, 8932, - 10971, 8527, 7919, 9104, - 10971, 8527, 7919, 9141, 220, - 10971, 8527, 7919, 9260, - 10971, 8527, 7919, 9699, 8932, - 10971, 8527, 7919, 11181, 0, - 10976, - 10979, 696, - 10979, 4581, 10334, - 10979, 4627, 5741, 8245, 5400, - 10979, 5293, 7924, - 10979, 5293, 7926, - 10979, 5293, 7928, - 10979, 5293, 7930, - 10979, 6117, 8788, - 10979, 9560, - 10981, 8258, - 10991, 9656, - 10997, 5401, 697, 5990, - 10997, 5401, 961, 6102, - 10997, 5401, 6154, - 10997, 5401, 7673, 5201, 6102, - 10997, 5401, 9236, - 10997, 5401, 9280, - 10997, 6287, 2004, - 10997, 6287, 2584, - 10997, 6287, 3956, - 10997, 6287, 7244, - 10997, 7341, 5401, 8, - 10997, 7341, 5401, 16, - 10997, 7341, 5401, 28, - 10997, 7341, 5401, 40, - 10997, 7341, 5401, 9239, 34, - 10997, 7341, 7915, 4630, - 10997, 7919, 0, - 10997, 7919, 94, - 10997, 7919, 108, - 10997, 7919, 128, - 10997, 7919, 200, - 10997, 7919, 220, - 10997, 7919, 274, - 10997, 7919, 286, - 10997, 7919, 312, - 10997, 7919, 342, - 10997, 7919, 370, - 10997, 7919, 430, - 10997, 7919, 472, - 10997, 7919, 486, - 10997, 7919, 510, - 10997, 7919, 554, - 10997, 7919, 596, - 10997, 7919, 614, - 10997, 7919, 728, - 10997, 7919, 810, - 10997, 7919, 898, - 10997, 7919, 920, - 10997, 7919, 1158, - 10997, 7919, 1492, - 10997, 7919, 1522, - 10997, 7919, 1916, - 10997, 7919, 1962, - 10997, 7919, 2042, - 10997, 7919, 2334, - 10997, 7919, 2384, - 10997, 7919, 2486, - 10997, 7919, 2552, - 10997, 7919, 3782, - 10997, 7919, 5626, - 10997, 7919, 7298, - 10997, 8031, 2005, 8794, - 10997, 8031, 2005, 9994, - 10997, 8031, 2478, - 10997, 8031, 8352, - 10997, 8392, - 10997, 11443, 960, - 10997, 11443, 6248, - 10997, 11443, 6678, - 10997, 11443, 6684, - 10997, 11443, 7143, 7582, - 10997, 11443, 7582, - 10997, 11443, 7673, 6248, - 10997, 11443, 9375, 696, - 10997, 11443, 9716, - 11015, 8258, - 11026, - 11028, - 11043, 7673, 11442, - 11043, 8207, 11442, - 11045, 5747, 10566, - 11045, 7919, 222, - 11045, 7919, 434, - 11045, 7919, 646, - 11045, 7919, 650, - 11045, 7919, 724, - 11045, 7919, 1256, - 11045, 7919, 1458, - 11045, 7919, 1744, - 11045, 7919, 1946, - 11045, 7919, 2146, - 11045, 7919, 2466, - 11045, 7919, 2482, - 11045, 7919, 2714, - 11045, 7919, 2870, - 11045, 7919, 2916, - 11045, 7919, 3824, - 11045, 7919, 3980, - 11045, 7919, 4540, - 11045, 7919, 5218, - 11045, 7919, 5274, - 11045, 7919, 5302, - 11045, 7919, 5344, - 11045, 8031, 2004, - 11045, 8031, 2005, 8794, - 11045, 8031, 2478, - 11045, 8031, 8352, - 11049, 5400, - 11054, - 11058, - 11063, 9661, 9772, - 11065, 6331, 520, - 11067, 5400, - 11081, 667, 10121, 6046, - 11083, 2585, 7807, 6046, - 11083, 5727, 6046, - 11083, 6046, - 11083, 6047, 521, 696, - 11083, 6047, 521, 6117, 8616, - 11083, 6047, 3963, 696, - 11083, 6047, 3963, 697, 521, 6117, 8616, - 11083, 6047, 5041, 10449, 6046, - 11083, 6047, 5741, 2505, 9222, - 11083, 6047, 5741, 2505, 10312, - 11083, 6047, 5741, 4256, - 11083, 6047, 5741, 4600, - 11083, 6047, 5741, 5095, 6102, - 11083, 6047, 5741, 5520, - 11083, 6047, 5741, 5521, 5741, 7673, 10043, 8244, - 11083, 6047, 5741, 5521, 5741, 10043, 8244, - 11083, 6047, 5741, 7601, 10312, - 11083, 6047, 5741, 7671, 5474, - 11083, 6047, 5741, 7673, 10043, 8244, - 11083, 6047, 5741, 8244, - 11083, 6047, 5741, 10043, 8244, - 11083, 6047, 5991, 7103, 10449, 6046, - 11083, 6047, 5991, 7257, 9772, - 11083, 6047, 5991, 7455, 6331, 520, - 11083, 6047, 9199, 46, - 11083, 7357, 6046, - 11083, 7357, 6047, 3963, 5724, - 11083, 7621, 6046, - 11083, 7673, 3759, 6046, - 11083, 7673, 6046, - 11083, 7673, 6047, 3963, 696, - 11083, 7673, 6047, 5741, 8244, - 11083, 7673, 6047, 5741, 10043, 8244, - 11083, 7673, 10766, - 11083, 8065, 7480, - 11083, 8327, 3759, 6046, - 11083, 8327, 6046, - 11083, 8777, 5041, 10449, 8776, - 11083, 8777, 5741, 3495, 547, 521, 696, - 11083, 8777, 5741, 3495, 547, 3963, 696, - 11083, 8777, 5741, 3495, 547, 5991, 4599, 3758, - 11083, 8777, 5741, 3495, 547, 5991, 10449, 8777, 5741, 3495, 546, - 11083, 8777, 5741, 3495, 547, 5991, 11083, 8777, 5741, 3495, 3862, - 11083, 8777, 5741, 3495, 3863, 521, 696, - 11083, 8777, 5741, 3495, 3863, 3963, 696, - 11083, 8777, 5741, 3495, 3863, 5991, 10449, 8777, 5741, 3495, 3862, - 11083, 8777, 5741, 3495, 3863, 6103, 4599, 3758, - 11083, 8777, 5741, 3495, 9222, - 11083, 8777, 5741, 3495, 10312, - 11083, 9907, 6046, - 11083, 10766, - 11083, 11189, 6047, 3963, 696, - 11083, 11189, 6047, 5741, 5520, - 11083, 11189, 6047, 5741, 5521, 5741, 7673, 10043, 8244, - 11083, 11189, 6047, 5741, 5521, 5741, 10043, 8244, - 11083, 11189, 6047, 5741, 7673, 10043, 8244, - 11083, 11189, 6047, 5741, 10043, 8244, - 11083, 11189, 8327, 3759, 6046, - 11083, 11413, 6046, - 11109, 9039, 5741, 7539, 7590, - 11115, 5039, 752, - 11133, 7158, - 11173, 7556, - 11193, 8258, - 11205, 1491, 8258, - 11211, 9891, 7357, 11083, 6046, - 11217, 9614, - 11221, 8258, - 11222, - 11233, 520, - 11234, - 11236, - 11319, 6331, 521, 415, 10450, - 11319, 6331, 521, 415, 11778, - 11319, 9121, 6331, 521, 415, 10450, - 11319, 9121, 6331, 521, 415, 11778, - 11319, 9121, 10451, 415, 6331, 520, - 11319, 9121, 11779, 415, 6331, 520, - 11327, 520, - 11329, 4630, - 11329, 9853, 4630, - 11333, 7158, - 11353, 6938, - 11355, 3965, 5478, - 11355, 4119, 3935, 7158, - 11355, 6218, - 11355, 6667, 5603, 4630, - 11355, 7158, - 11355, 8031, 5878, - 11355, 8143, 5603, 4630, - 11355, 8559, 4630, - 11355, 9565, 5603, 4630, - 11355, 10153, 5603, 4630, - 11355, 10419, 4630, - 11355, 10689, 4581, 3925, 10567, 8258, - 11355, 10689, 8259, 1085, 897, 2004, - 11355, 10689, 8259, 1085, 897, 2358, - 11355, 10689, 8259, 1085, 897, 2478, - 11355, 10689, 8259, 1085, 897, 2584, - 11355, 10689, 8259, 1085, 897, 3942, - 11355, 10689, 8259, 1085, 897, 3956, - 11355, 10689, 8259, 1085, 897, 4854, - 11355, 10689, 8259, 1085, 897, 6312, - 11355, 10689, 8259, 1085, 897, 7060, - 11355, 10689, 8259, 1085, 897, 7244, - 11355, 10689, 8259, 1085, 897, 7682, - 11355, 10689, 8259, 1085, 897, 8302, - 11355, 10689, 8259, 1085, 897, 8350, - 11355, 10689, 8259, 1085, 897, 8352, - 11355, 10689, 8259, 1085, 897, 8738, - 11355, 10689, 8259, 1085, 897, 9116, - 11355, 10689, 8259, 1085, 897, 9556, - 11355, 10689, 8259, 1085, 897, 9602, - 11355, 10689, 8259, 1085, 897, 9758, - 11355, 10689, 8259, 1085, 897, 9992, - 11355, 10689, 8259, 1085, 897, 10570, - 11355, 10689, 8259, 1085, 897, 11168, - 11355, 10689, 8259, 1085, 897, 11182, - 11355, 10689, 8259, 1085, 897, 11184, - 11355, 10689, 8259, 1085, 897, 11186, - 11355, 10689, 8259, 1085, 897, 11682, - 11355, 10689, 8259, 1085, 897, 11684, - 11355, 10689, 8259, 1085, 897, 11686, - 11355, 10689, 8259, 1085, 897, 12190, - 11355, 10689, 8259, 1085, 897, 12192, - 11355, 10689, 8259, 1085, 897, 12194, - 11355, 10689, 8259, 1085, 1738, - 11355, 10689, 8259, 1085, 4267, 2004, - 11355, 10689, 8259, 1085, 4267, 2358, - 11355, 10689, 8259, 1085, 4267, 2478, - 11355, 10689, 8259, 1085, 4267, 2584, - 11355, 10689, 8259, 1085, 4267, 3942, - 11355, 10689, 8259, 1085, 4267, 3956, - 11355, 10689, 8259, 1085, 4267, 4854, - 11355, 10689, 8259, 1085, 4267, 5878, - 11355, 10689, 8259, 1085, 4267, 6312, - 11355, 10689, 8259, 1085, 4267, 7060, - 11355, 10689, 8259, 1085, 4267, 7244, - 11355, 10689, 8259, 1085, 4267, 7682, - 11355, 10689, 8259, 1085, 4267, 8350, - 11355, 10689, 8259, 1085, 4267, 8352, - 11355, 10689, 8259, 1085, 4267, 8738, - 11355, 10689, 8259, 1085, 4267, 9116, - 11355, 10689, 8259, 1085, 4267, 9556, - 11355, 10689, 8259, 1085, 4267, 9602, - 11355, 10689, 8259, 1085, 4267, 9758, - 11355, 10689, 8259, 1085, 4267, 9992, - 11355, 10689, 8259, 1085, 4267, 10570, - 11355, 10689, 8259, 1085, 4267, 11182, - 11355, 10689, 8259, 1085, 4267, 11186, - 11355, 10689, 8259, 1085, 4267, 11684, - 11355, 10689, 8259, 1085, 4267, 12194, - 11355, 10689, 8259, 1085, 4404, - 11355, 10689, 8259, 1085, 4406, - 11355, 10689, 8259, 1085, 6032, - 11355, 10689, 8259, 1085, 6706, - 11355, 10689, 8259, 1085, 7494, - 11355, 10689, 8259, 1085, 8824, - 11355, 10689, 8259, 1085, 8970, - 11355, 10689, 8259, 1085, 9400, - 11355, 10689, 8259, 1085, 9580, - 11355, 10689, 8259, 1085, 9766, - 11355, 10689, 8259, 1085, 10568, - 11355, 10727, 10406, - 11355, 10751, 1729, 4630, - 11355, 10751, 2005, 4630, - 11355, 10751, 2533, 4630, - 11355, 10751, 2585, 4630, - 11355, 10751, 3957, 4630, - 11355, 10751, 6307, 4630, - 11355, 10751, 6377, 4630, - 11355, 10751, 7237, 4630, - 11355, 10751, 7245, 4630, - 11355, 10751, 7539, 4630, - 11355, 10751, 7753, 4630, - 11355, 10751, 7809, 4630, - 11355, 10751, 7981, 4630, - 11355, 10751, 8173, 4630, - 11355, 10751, 8883, 4630, - 11355, 10751, 9061, 4630, - 11355, 11249, 10117, 3965, 9952, - 11355, 11249, 10117, 4555, 521, 6996, - 11355, 11249, 10117, 4555, 521, 7981, 657, 6996, - 11355, 11249, 10117, 5991, 521, 6102, - 11355, 11249, 10117, 5991, 521, 7981, 657, 6102, - 11355, 11249, 10117, 9784, - 11355, 11249, 10117, 9953, 3963, 4554, - 11355, 11249, 10117, 9953, 3963, 5990, - 11355, 11249, 10117, 9953, 3963, 6102, - 11355, 11249, 10117, 9953, 3963, 6691, 4554, - 11355, 11249, 10117, 9953, 3963, 7313, 4554, - 11355, 11249, 10117, 9953, 3963, 7313, 6996, - 11367, 8214, - 11370, - 11373, 10751, 7458, - 11373, 10751, 10566, - 11373, 10751, 11164, - 11375, 7717, 657, 4627, 5400, - 11376, - 11387, 7357, 11083, 6046, - 11418, - 11427, 5400, - 11432, - 11443, 7158, - 11445, 5400, - 11453, 10116, - 11466, - 11663, 2004, - 11663, 2358, - 11663, 2584, - 11663, 3942, - 11663, 3956, - 11663, 4555, 11424, - 11663, 4854, - 11663, 5095, 5400, - 11663, 5878, - 11663, 6312, - 11663, 6659, 7143, 7919, 16, - 11663, 6659, 7143, 7919, 26, - 11663, 6738, - 11663, 6997, 11424, - 11663, 7060, - 11663, 7244, - 11663, 7687, 5400, - 11679, 11798, - 11691, 10011, 5741, 4555, 4119, 6116, - 11691, 10011, 5741, 6997, 4119, 6116, - 11704, - 11707, 415, 10136, - 11711, 6287, 2004, - 11711, 6287, 2358, - 11711, 6287, 2584, - 11711, 6287, 3942, - 11711, 6287, 3956, - 11711, 6287, 4854, - 11711, 6287, 5878, - 11711, 6287, 6312, - 11711, 6287, 7060, - 11711, 6287, 7244, - 11721, 8527, 4, - 11721, 8527, 14, - 11721, 8527, 16, - 11721, 8527, 34, - 11721, 8527, 50, - 11734, - 11767, 9744, - 11769, 6117, 7582, - 11769, 6117, 8230, - 11769, 6117, 8616, - 11769, 7357, 7582, - 11769, 7357, 8230, - 11769, 7357, 8616, - 11770, - 11773, 9891, 7357, 11083, 6046, - 11779, 415, 6331, 520, - 11779, 415, 9121, 6331, 520, - 11779, 415, 9121, 6331, 521, 5741, 961, 5990, - 11779, 415, 9121, 6331, 521, 5741, 961, 5991, 4554, - 11779, 415, 9121, 6331, 521, 5741, 961, 7836, - 11779, 415, 10450, - 11779, 415, 10951, 520, - 11779, 415, 11208, - 11779, 657, 1931, 11208, - 11779, 657, 11653, 1931, 6331, 520, - 11779, 761, 1931, 6331, 520, - 11779, 761, 1931, 10951, 520, - 11779, 5041, 6331, 520, - 11779, 5400, - 11779, 5741, 960, - 11779, 5741, 7583, 7836, - 11779, 5741, 9853, 4631, 5990, - 11779, 5991, 9109, 415, 6330, - 11779, 5991, 9109, 5991, 10450, - 11779, 5991, 9121, 6331, 5991, 10451, 5991, 9121, 6330, - 11779, 5991, 10451, 5991, 11319, 6330, - 11779, 5991, 11083, 6046, - 11779, 5991, 11319, 6331, 5991, 10450, - 11779, 6331, 521, 415, 10450, - 11779, 7525, 10450, - 11779, 7591, 107, 6230, - 11779, 7591, 107, 6231, 5991, 9121, 6330, - 11779, 11415, 10450, - 11784, - 11786, - 11798, - 11799, 5741, 960, - 11799, 5741, 8887, 656, - 11799, 5741, 8988, - 11799, 5991, 697, 5991, 7308, - 11799, 5991, 7308, - 11799, 7525, 657, 7847, 5741, 11798, - 11809, 3581, 441, 8258, - 11809, 3581, 2047, 8258, - 11809, 3581, 2237, 8258, - 11809, 3581, 6287, 2004, - 11809, 3581, 6287, 2358, - 11809, 3581, 6287, 2584, - 11809, 3581, 6287, 3942, - 11809, 3581, 6287, 3956, - 11809, 3581, 6287, 4854, - 11809, 3581, 6287, 5878, - 11809, 3581, 6287, 6312, - 11809, 3581, 6287, 7060, - 11809, 3581, 6287, 7244, - 11809, 3581, 6599, 8258, - 11809, 3581, 6768, - 11809, 3581, 7143, 0, - 11809, 3581, 7143, 2, - 11809, 3581, 7143, 4, - 11809, 3581, 7143, 6, - 11809, 3581, 7143, 8, - 11809, 3581, 7143, 10, - 11809, 3581, 7143, 12, - 11809, 3581, 7143, 14, - 11809, 3581, 7143, 16, - 11809, 3581, 7143, 18, - 11809, 3581, 7143, 20, - 11809, 3581, 7143, 22, - 11809, 3581, 7143, 24, - 11809, 3581, 7143, 26, - 11809, 3581, 7143, 28, - 11809, 3581, 7143, 30, - 11809, 3581, 7143, 32, - 11809, 3581, 7143, 34, - 11809, 3581, 7143, 36, - 11809, 3581, 7143, 38, - 11809, 3581, 7143, 40, - 11809, 3581, 7143, 42, - 11809, 3581, 7143, 44, - 11809, 3581, 7143, 46, - 11809, 3581, 7143, 48, - 11809, 3581, 7143, 50, - 11809, 3581, 7143, 362, - 11809, 3581, 7143, 390, - 11809, 3581, 7143, 440, - 11809, 3581, 7143, 588, - 11809, 3581, 7143, 814, - 11809, 3581, 7143, 1038, - 11809, 3581, 7143, 2046, - 11809, 3581, 7143, 2078, - 11809, 3581, 7143, 2236, - 11809, 3581, 7143, 2466, - 11809, 3581, 7143, 3556, - 11809, 3581, 7143, 4338, - 11809, 3581, 7143, 5880, - 11809, 3581, 7143, 6018, - 11809, 3581, 7143, 6276, - 11809, 3581, 7143, 6375, 7120, - 11809, 3581, 7143, 6410, - 11809, 3581, 7143, 6598, - 11809, 3581, 7143, 6650, - 11809, 3581, 7143, 6874, - 11809, 3581, 7143, 7120, - 11809, 3581, 7143, 7232, - 11809, 3581, 7143, 8620, - 11809, 3581, 7143, 8722, - 11809, 3581, 7143, 8972, - 11809, 3581, 7143, 9220, - 11809, 3581, 7233, 8258, - 11809, 3581, 7843, 441, 8258, - 11809, 3581, 7843, 2047, 8258, - 11809, 3581, 7843, 2237, 8258, - 11809, 3581, 7843, 6599, 8258, - 11809, 3581, 7843, 6768, - 11809, 3581, 7843, 7143, 0, - 11809, 3581, 7843, 7143, 2, - 11809, 3581, 7843, 7143, 4, - 11809, 3581, 7843, 7143, 6, - 11809, 3581, 7843, 7143, 8, - 11809, 3581, 7843, 7143, 10, - 11809, 3581, 7843, 7143, 12, - 11809, 3581, 7843, 7143, 14, - 11809, 3581, 7843, 7143, 16, - 11809, 3581, 7843, 7143, 18, - 11809, 3581, 7843, 7143, 20, - 11809, 3581, 7843, 7143, 22, - 11809, 3581, 7843, 7143, 24, - 11809, 3581, 7843, 7143, 26, - 11809, 3581, 7843, 7143, 28, - 11809, 3581, 7843, 7143, 30, - 11809, 3581, 7843, 7143, 32, - 11809, 3581, 7843, 7143, 34, - 11809, 3581, 7843, 7143, 36, - 11809, 3581, 7843, 7143, 38, - 11809, 3581, 7843, 7143, 40, - 11809, 3581, 7843, 7143, 42, - 11809, 3581, 7843, 7143, 44, - 11809, 3581, 7843, 7143, 46, - 11809, 3581, 7843, 7143, 48, - 11809, 3581, 7843, 7143, 50, - 11809, 3581, 7843, 7143, 362, - 11809, 3581, 7843, 7143, 390, - 11809, 3581, 7843, 7143, 440, - 11809, 3581, 7843, 7143, 588, - 11809, 3581, 7843, 7143, 814, - 11809, 3581, 7843, 7143, 1038, - 11809, 3581, 7843, 7143, 2046, - 11809, 3581, 7843, 7143, 2078, - 11809, 3581, 7843, 7143, 2236, - 11809, 3581, 7843, 7143, 2466, - 11809, 3581, 7843, 7143, 3556, - 11809, 3581, 7843, 7143, 4338, - 11809, 3581, 7843, 7143, 5880, - 11809, 3581, 7843, 7143, 6018, - 11809, 3581, 7843, 7143, 6276, - 11809, 3581, 7843, 7143, 6375, 7120, - 11809, 3581, 7843, 7143, 6410, - 11809, 3581, 7843, 7143, 6598, - 11809, 3581, 7843, 7143, 6650, - 11809, 3581, 7843, 7143, 6874, - 11809, 3581, 7843, 7143, 7120, - 11809, 3581, 7843, 7143, 7232, - 11809, 3581, 7843, 7143, 8722, - 11809, 3581, 7843, 7143, 8972, - 11809, 3581, 7843, 7143, 9220, - 11809, 3581, 7843, 7233, 8258, - 11809, 3581, 7843, 8527, 0, - 11809, 3581, 7843, 8527, 2, - 11809, 3581, 7843, 8527, 4, - 11809, 3581, 7843, 8527, 6, - 11809, 3581, 7843, 8527, 8, - 11809, 3581, 7843, 8527, 10, - 11809, 3581, 7843, 8527, 12, - 11809, 3581, 7843, 8527, 14, - 11809, 3581, 7843, 8527, 16, - 11809, 3581, 7843, 8527, 18, - 11809, 3581, 7843, 8527, 20, - 11809, 3581, 7843, 8527, 22, - 11809, 3581, 7843, 8527, 24, - 11809, 3581, 7843, 8527, 26, - 11809, 3581, 7843, 8527, 28, - 11809, 3581, 7843, 8527, 30, - 11809, 3581, 7843, 8527, 32, - 11809, 3581, 7843, 8527, 34, - 11809, 3581, 7843, 8527, 36, - 11809, 3581, 7843, 8527, 38, - 11809, 3581, 7843, 8527, 40, - 11809, 3581, 7843, 8527, 42, - 11809, 3581, 7843, 8527, 44, - 11809, 3581, 7843, 8527, 46, - 11809, 3581, 7843, 8527, 48, - 11809, 3581, 7843, 8527, 50, - 11809, 3581, 7843, 8527, 362, - 11809, 3581, 7843, 8527, 390, - 11809, 3581, 7843, 8527, 440, - 11809, 3581, 7843, 8527, 588, - 11809, 3581, 7843, 8527, 814, - 11809, 3581, 7843, 8527, 1038, - 11809, 3581, 7843, 8527, 2046, - 11809, 3581, 7843, 8527, 2078, - 11809, 3581, 7843, 8527, 2236, - 11809, 3581, 7843, 8527, 2466, - 11809, 3581, 7843, 8527, 3556, - 11809, 3581, 7843, 8527, 4338, - 11809, 3581, 7843, 8527, 5880, - 11809, 3581, 7843, 8527, 6018, - 11809, 3581, 7843, 8527, 6276, - 11809, 3581, 7843, 8527, 6410, - 11809, 3581, 7843, 8527, 6598, - 11809, 3581, 7843, 8527, 6650, - 11809, 3581, 7843, 8527, 6874, - 11809, 3581, 7843, 8527, 7120, - 11809, 3581, 7843, 8527, 7232, - 11809, 3581, 7843, 8527, 7233, 8258, - 11809, 3581, 7843, 8527, 8722, - 11809, 3581, 7843, 8527, 8972, - 11809, 3581, 7843, 8527, 9220, - 11809, 3581, 7843, 8723, 8258, - 11809, 3581, 7843, 9003, 11738, - 11809, 3581, 8171, 7143, 0, - 11809, 3581, 8171, 7143, 2, - 11809, 3581, 8171, 7143, 4, - 11809, 3581, 8171, 7143, 6, - 11809, 3581, 8171, 7143, 8, - 11809, 3581, 8171, 7143, 10, - 11809, 3581, 8171, 7143, 12, - 11809, 3581, 8171, 7143, 14, - 11809, 3581, 8171, 7143, 16, - 11809, 3581, 8171, 7143, 18, - 11809, 3581, 8171, 7143, 20, - 11809, 3581, 8171, 7143, 22, - 11809, 3581, 8171, 7143, 24, - 11809, 3581, 8171, 7143, 26, - 11809, 3581, 8171, 7143, 28, - 11809, 3581, 8171, 7143, 30, - 11809, 3581, 8171, 7143, 32, - 11809, 3581, 8171, 7143, 34, - 11809, 3581, 8171, 7143, 36, - 11809, 3581, 8171, 7143, 38, - 11809, 3581, 8171, 7143, 40, - 11809, 3581, 8171, 7143, 42, - 11809, 3581, 8171, 7143, 44, - 11809, 3581, 8171, 7143, 46, - 11809, 3581, 8171, 7143, 48, - 11809, 3581, 8171, 7143, 50, - 11809, 3581, 8171, 8527, 0, - 11809, 3581, 8171, 8527, 2, - 11809, 3581, 8171, 8527, 4, - 11809, 3581, 8171, 8527, 6, - 11809, 3581, 8171, 8527, 8, - 11809, 3581, 8171, 8527, 10, - 11809, 3581, 8171, 8527, 12, - 11809, 3581, 8171, 8527, 14, - 11809, 3581, 8171, 8527, 16, - 11809, 3581, 8171, 8527, 18, - 11809, 3581, 8171, 8527, 20, - 11809, 3581, 8171, 8527, 22, - 11809, 3581, 8171, 8527, 24, - 11809, 3581, 8171, 8527, 26, - 11809, 3581, 8171, 8527, 28, - 11809, 3581, 8171, 8527, 30, - 11809, 3581, 8171, 8527, 32, - 11809, 3581, 8171, 8527, 34, - 11809, 3581, 8171, 8527, 36, - 11809, 3581, 8171, 8527, 38, - 11809, 3581, 8171, 8527, 40, - 11809, 3581, 8171, 8527, 42, - 11809, 3581, 8171, 8527, 44, - 11809, 3581, 8171, 8527, 46, - 11809, 3581, 8171, 8527, 48, - 11809, 3581, 8171, 8527, 50, - 11809, 3581, 8527, 0, - 11809, 3581, 8527, 2, - 11809, 3581, 8527, 4, - 11809, 3581, 8527, 6, - 11809, 3581, 8527, 8, - 11809, 3581, 8527, 10, - 11809, 3581, 8527, 12, - 11809, 3581, 8527, 14, - 11809, 3581, 8527, 16, - 11809, 3581, 8527, 18, - 11809, 3581, 8527, 20, - 11809, 3581, 8527, 22, - 11809, 3581, 8527, 24, - 11809, 3581, 8527, 26, - 11809, 3581, 8527, 28, - 11809, 3581, 8527, 30, - 11809, 3581, 8527, 32, - 11809, 3581, 8527, 34, - 11809, 3581, 8527, 36, - 11809, 3581, 8527, 38, - 11809, 3581, 8527, 40, - 11809, 3581, 8527, 42, - 11809, 3581, 8527, 44, - 11809, 3581, 8527, 46, - 11809, 3581, 8527, 48, - 11809, 3581, 8527, 50, - 11809, 3581, 8527, 362, - 11809, 3581, 8527, 390, - 11809, 3581, 8527, 440, - 11809, 3581, 8527, 588, - 11809, 3581, 8527, 814, - 11809, 3581, 8527, 1038, - 11809, 3581, 8527, 2046, - 11809, 3581, 8527, 2078, - 11809, 3581, 8527, 2236, - 11809, 3581, 8527, 2466, - 11809, 3581, 8527, 3556, - 11809, 3581, 8527, 4338, - 11809, 3581, 8527, 5880, - 11809, 3581, 8527, 6018, - 11809, 3581, 8527, 6276, - 11809, 3581, 8527, 6410, - 11809, 3581, 8527, 6598, - 11809, 3581, 8527, 6650, - 11809, 3581, 8527, 6874, - 11809, 3581, 8527, 7120, - 11809, 3581, 8527, 7232, - 11809, 3581, 8527, 7233, 8258, - 11809, 3581, 8527, 8620, - 11809, 3581, 8527, 8722, - 11809, 3581, 8527, 8972, - 11809, 3581, 8527, 9220, - 11809, 3581, 8723, 8258, - 11809, 3581, 8747, 7143, 0, - 11809, 3581, 8747, 7143, 2, - 11809, 3581, 8747, 7143, 4, - 11809, 3581, 8747, 7143, 6, - 11809, 3581, 8747, 7143, 8, - 11809, 3581, 8747, 7143, 10, - 11809, 3581, 8747, 7143, 12, - 11809, 3581, 8747, 7143, 14, - 11809, 3581, 8747, 7143, 16, - 11809, 3581, 8747, 7143, 18, - 11809, 3581, 8747, 7143, 20, - 11809, 3581, 8747, 7143, 22, - 11809, 3581, 8747, 7143, 24, - 11809, 3581, 8747, 7143, 26, - 11809, 3581, 8747, 7143, 28, - 11809, 3581, 8747, 7143, 30, - 11809, 3581, 8747, 7143, 32, - 11809, 3581, 8747, 7143, 34, - 11809, 3581, 8747, 7143, 36, - 11809, 3581, 8747, 7143, 38, - 11809, 3581, 8747, 7143, 40, - 11809, 3581, 8747, 7143, 42, - 11809, 3581, 8747, 7143, 44, - 11809, 3581, 8747, 7143, 46, - 11809, 3581, 8747, 7143, 48, - 11809, 3581, 8747, 7143, 50, - 11809, 3581, 8747, 8527, 0, - 11809, 3581, 8747, 8527, 2, - 11809, 3581, 8747, 8527, 4, - 11809, 3581, 8747, 8527, 6, - 11809, 3581, 8747, 8527, 8, - 11809, 3581, 8747, 8527, 10, - 11809, 3581, 8747, 8527, 12, - 11809, 3581, 8747, 8527, 14, - 11809, 3581, 8747, 8527, 16, - 11809, 3581, 8747, 8527, 18, - 11809, 3581, 8747, 8527, 20, - 11809, 3581, 8747, 8527, 22, - 11809, 3581, 8747, 8527, 24, - 11809, 3581, 8747, 8527, 26, - 11809, 3581, 8747, 8527, 28, - 11809, 3581, 8747, 8527, 30, - 11809, 3581, 8747, 8527, 32, - 11809, 3581, 8747, 8527, 34, - 11809, 3581, 8747, 8527, 36, - 11809, 3581, 8747, 8527, 38, - 11809, 3581, 8747, 8527, 40, - 11809, 3581, 8747, 8527, 42, - 11809, 3581, 8747, 8527, 44, - 11809, 3581, 8747, 8527, 46, - 11809, 3581, 8747, 8527, 48, - 11809, 3581, 8747, 8527, 50, - 11809, 3581, 9003, 11738, - 11809, 4555, 6021, 8514, - 11809, 4555, 7357, 8231, 8514, - 11809, 4555, 7673, 6021, 8514, - 11809, 6997, 6021, 8514, - 11809, 6997, 7357, 8231, 8514, - 11809, 6997, 7673, 6021, 8514, - 11809, 7843, 441, 8258, - 11809, 7843, 2047, 8258, - 11809, 7843, 2237, 8258, - 11809, 7843, 6599, 8258, - 11809, 7843, 6768, - 11809, 7843, 7143, 0, - 11809, 7843, 7143, 2, - 11809, 7843, 7143, 4, - 11809, 7843, 7143, 6, - 11809, 7843, 7143, 8, - 11809, 7843, 7143, 10, - 11809, 7843, 7143, 12, - 11809, 7843, 7143, 16, - 11809, 7843, 7143, 18, - 11809, 7843, 7143, 20, - 11809, 7843, 7143, 22, - 11809, 7843, 7143, 24, - 11809, 7843, 7143, 26, - 11809, 7843, 7143, 28, - 11809, 7843, 7143, 30, - 11809, 7843, 7143, 32, - 11809, 7843, 7143, 34, - 11809, 7843, 7143, 36, - 11809, 7843, 7143, 38, - 11809, 7843, 7143, 40, - 11809, 7843, 7143, 42, - 11809, 7843, 7143, 44, - 11809, 7843, 7143, 46, - 11809, 7843, 7143, 48, - 11809, 7843, 7143, 50, - 11809, 7843, 7143, 362, - 11809, 7843, 7143, 390, - 11809, 7843, 7143, 440, - 11809, 7843, 7143, 588, - 11809, 7843, 7143, 814, - 11809, 7843, 7143, 1038, - 11809, 7843, 7143, 2046, - 11809, 7843, 7143, 2078, - 11809, 7843, 7143, 2236, - 11809, 7843, 7143, 2466, - 11809, 7843, 7143, 3556, - 11809, 7843, 7143, 4338, - 11809, 7843, 7143, 5880, - 11809, 7843, 7143, 6018, - 11809, 7843, 7143, 6276, - 11809, 7843, 7143, 6375, 7120, - 11809, 7843, 7143, 6410, - 11809, 7843, 7143, 6598, - 11809, 7843, 7143, 6650, - 11809, 7843, 7143, 6874, - 11809, 7843, 7143, 7120, - 11809, 7843, 7143, 7232, - 11809, 7843, 7143, 8641, 16, - 11809, 7843, 7143, 8641, 18, - 11809, 7843, 7143, 8722, - 11809, 7843, 7143, 8972, - 11809, 7843, 7143, 9220, - 11809, 7843, 7233, 8258, - 11809, 7843, 8527, 0, - 11809, 7843, 8527, 2, - 11809, 7843, 8527, 4, - 11809, 7843, 8527, 6, - 11809, 7843, 8527, 8, - 11809, 7843, 8527, 10, - 11809, 7843, 8527, 12, - 11809, 7843, 8527, 14, - 11809, 7843, 8527, 16, - 11809, 7843, 8527, 18, - 11809, 7843, 8527, 20, - 11809, 7843, 8527, 22, - 11809, 7843, 8527, 24, - 11809, 7843, 8527, 26, - 11809, 7843, 8527, 28, - 11809, 7843, 8527, 30, - 11809, 7843, 8527, 32, - 11809, 7843, 8527, 34, - 11809, 7843, 8527, 36, - 11809, 7843, 8527, 38, - 11809, 7843, 8527, 40, - 11809, 7843, 8527, 42, - 11809, 7843, 8527, 44, - 11809, 7843, 8527, 46, - 11809, 7843, 8527, 48, - 11809, 7843, 8527, 50, - 11809, 7843, 8527, 362, - 11809, 7843, 8527, 390, - 11809, 7843, 8527, 440, - 11809, 7843, 8527, 588, - 11809, 7843, 8527, 814, - 11809, 7843, 8527, 1038, - 11809, 7843, 8527, 2046, - 11809, 7843, 8527, 2078, - 11809, 7843, 8527, 2236, - 11809, 7843, 8527, 2466, - 11809, 7843, 8527, 3556, - 11809, 7843, 8527, 4338, - 11809, 7843, 8527, 5880, - 11809, 7843, 8527, 6018, - 11809, 7843, 8527, 6276, - 11809, 7843, 8527, 6410, - 11809, 7843, 8527, 6598, - 11809, 7843, 8527, 6650, - 11809, 7843, 8527, 6874, - 11809, 7843, 8527, 7120, - 11809, 7843, 8527, 7232, - 11809, 7843, 8527, 7233, 8258, - 11809, 7843, 8527, 8722, - 11809, 7843, 8527, 8972, - 11809, 7843, 8527, 9220, - 11809, 7843, 8723, 8258, - 11809, 7843, 9003, 11738, - 11809, 8171, 7143, 0, - 11809, 8171, 7143, 2, - 11809, 8171, 7143, 4, - 11809, 8171, 7143, 6, - 11809, 8171, 7143, 10, - 11809, 8171, 7143, 14, - 11809, 8171, 7143, 16, - 11809, 8171, 7143, 18, - 11809, 8171, 7143, 20, - 11809, 8171, 7143, 22, - 11809, 8171, 7143, 24, - 11809, 8171, 7143, 26, - 11809, 8171, 7143, 30, - 11809, 8171, 7143, 32, - 11809, 8171, 7143, 34, - 11809, 8171, 7143, 36, - 11809, 8171, 7143, 38, - 11809, 8171, 7143, 40, - 11809, 8171, 7143, 42, - 11809, 8171, 7143, 44, - 11809, 8171, 7143, 46, - 11809, 8171, 7143, 48, - 11809, 8171, 7143, 50, - 11809, 8171, 8527, 0, - 11809, 8171, 8527, 4, - 11809, 8171, 8527, 6, - 11809, 8171, 8527, 12, - 11809, 8171, 8527, 18, - 11809, 8171, 8527, 20, - 11809, 8171, 8527, 26, - 11809, 8171, 8527, 28, - 11809, 8171, 8527, 30, - 11809, 8171, 8527, 32, - 11809, 8171, 8527, 36, - 11809, 8171, 8527, 38, - 11809, 8171, 8527, 40, - 11809, 8171, 8527, 42, - 11809, 8171, 8527, 44, - 11809, 8171, 8527, 46, - 11809, 8171, 8527, 48, - 11809, 8171, 8527, 50, - 11809, 8747, 7143, 0, - 11809, 8747, 7143, 2, - 11809, 8747, 7143, 4, - 11809, 8747, 7143, 6, - 11809, 8747, 7143, 8, - 11809, 8747, 7143, 10, - 11809, 8747, 7143, 12, - 11809, 8747, 7143, 14, - 11809, 8747, 7143, 16, - 11809, 8747, 7143, 18, - 11809, 8747, 7143, 20, - 11809, 8747, 7143, 22, - 11809, 8747, 7143, 24, - 11809, 8747, 7143, 26, - 11809, 8747, 7143, 28, - 11809, 8747, 7143, 30, - 11809, 8747, 7143, 32, - 11809, 8747, 7143, 34, - 11809, 8747, 7143, 36, - 11809, 8747, 7143, 38, - 11809, 8747, 7143, 40, - 11809, 8747, 7143, 42, - 11809, 8747, 7143, 44, - 11809, 8747, 7143, 46, - 11809, 8747, 7143, 48, - 11809, 8747, 7143, 50, - 11809, 8747, 8527, 0, - 11809, 8747, 8527, 2, - 11809, 8747, 8527, 6, - 11809, 8747, 8527, 8, - 11809, 8747, 8527, 10, - 11809, 8747, 8527, 12, - 11809, 8747, 8527, 18, - 11809, 8747, 8527, 20, - 11809, 8747, 8527, 22, - 11809, 8747, 8527, 24, - 11809, 8747, 8527, 26, - 11809, 8747, 8527, 28, - 11809, 8747, 8527, 30, - 11809, 8747, 8527, 32, - 11809, 8747, 8527, 36, - 11809, 8747, 8527, 38, - 11809, 8747, 8527, 40, - 11809, 8747, 8527, 42, - 11809, 8747, 8527, 44, - 11809, 8747, 8527, 46, - 11809, 8747, 8527, 48, - 11809, 10477, 6287, 2004, - 11809, 10477, 6287, 2358, - 11809, 10477, 6287, 2584, - 11809, 10477, 6287, 3942, - 11809, 10477, 6287, 3956, - 11809, 10477, 6287, 4854, - 11809, 10477, 6287, 5878, - 11809, 10477, 6287, 6312, - 11809, 10477, 6287, 7060, - 11809, 10477, 6287, 7244, - 11809, 10477, 7143, 0, - 11809, 10477, 7143, 2, - 11809, 10477, 7143, 4, - 11809, 10477, 7143, 6, - 11809, 10477, 7143, 8, - 11809, 10477, 7143, 10, - 11809, 10477, 7143, 12, - 11809, 10477, 7143, 14, - 11809, 10477, 7143, 16, - 11809, 10477, 7143, 18, - 11809, 10477, 7143, 20, - 11809, 10477, 7143, 22, - 11809, 10477, 7143, 24, - 11809, 10477, 7143, 26, - 11809, 10477, 7143, 28, - 11809, 10477, 7143, 30, - 11809, 10477, 7143, 32, - 11809, 10477, 7143, 34, - 11809, 10477, 7143, 36, - 11809, 10477, 7143, 38, - 11809, 10477, 7143, 40, - 11809, 10477, 7143, 42, - 11809, 10477, 7143, 44, - 11809, 10477, 7143, 46, - 11809, 10477, 7143, 48, - 11809, 10477, 7143, 50, - 11809, 10477, 8527, 0, - 11809, 10477, 8527, 2, - 11809, 10477, 8527, 4, - 11809, 10477, 8527, 6, - 11809, 10477, 8527, 8, - 11809, 10477, 8527, 10, - 11809, 10477, 8527, 12, - 11809, 10477, 8527, 14, - 11809, 10477, 8527, 16, - 11809, 10477, 8527, 18, - 11809, 10477, 8527, 20, - 11809, 10477, 8527, 22, - 11809, 10477, 8527, 24, - 11809, 10477, 8527, 26, - 11809, 10477, 8527, 28, - 11809, 10477, 8527, 30, - 11809, 10477, 8527, 32, - 11809, 10477, 8527, 34, - 11809, 10477, 8527, 36, - 11809, 10477, 8527, 38, - 11809, 10477, 8527, 40, - 11809, 10477, 8527, 42, - 11809, 10477, 8527, 44, - 11809, 10477, 8527, 46, - 11809, 10477, 8527, 48, - 11809, 10477, 8527, 50, - 11809, 11085, 3581, 441, 8258, - 11809, 11085, 3581, 2047, 8258, - 11809, 11085, 3581, 2237, 8258, - 11809, 11085, 3581, 6287, 2004, - 11809, 11085, 3581, 6287, 2358, - 11809, 11085, 3581, 6287, 2584, - 11809, 11085, 3581, 6287, 3942, - 11809, 11085, 3581, 6287, 3956, - 11809, 11085, 3581, 6287, 4854, - 11809, 11085, 3581, 6287, 5878, - 11809, 11085, 3581, 6287, 6312, - 11809, 11085, 3581, 6287, 7060, - 11809, 11085, 3581, 6287, 7244, - 11809, 11085, 3581, 6599, 8258, - 11809, 11085, 3581, 6768, - 11809, 11085, 3581, 7143, 0, - 11809, 11085, 3581, 7143, 2, - 11809, 11085, 3581, 7143, 4, - 11809, 11085, 3581, 7143, 6, - 11809, 11085, 3581, 7143, 8, - 11809, 11085, 3581, 7143, 10, - 11809, 11085, 3581, 7143, 12, - 11809, 11085, 3581, 7143, 14, - 11809, 11085, 3581, 7143, 16, - 11809, 11085, 3581, 7143, 18, - 11809, 11085, 3581, 7143, 20, - 11809, 11085, 3581, 7143, 22, - 11809, 11085, 3581, 7143, 24, - 11809, 11085, 3581, 7143, 26, - 11809, 11085, 3581, 7143, 28, - 11809, 11085, 3581, 7143, 30, - 11809, 11085, 3581, 7143, 32, - 11809, 11085, 3581, 7143, 34, - 11809, 11085, 3581, 7143, 36, - 11809, 11085, 3581, 7143, 38, - 11809, 11085, 3581, 7143, 40, - 11809, 11085, 3581, 7143, 42, - 11809, 11085, 3581, 7143, 44, - 11809, 11085, 3581, 7143, 46, - 11809, 11085, 3581, 7143, 48, - 11809, 11085, 3581, 7143, 50, - 11809, 11085, 3581, 7143, 362, - 11809, 11085, 3581, 7143, 390, - 11809, 11085, 3581, 7143, 440, - 11809, 11085, 3581, 7143, 588, - 11809, 11085, 3581, 7143, 814, - 11809, 11085, 3581, 7143, 1038, - 11809, 11085, 3581, 7143, 2046, - 11809, 11085, 3581, 7143, 2078, - 11809, 11085, 3581, 7143, 2236, - 11809, 11085, 3581, 7143, 2466, - 11809, 11085, 3581, 7143, 3556, - 11809, 11085, 3581, 7143, 4338, - 11809, 11085, 3581, 7143, 5880, - 11809, 11085, 3581, 7143, 6018, - 11809, 11085, 3581, 7143, 6276, - 11809, 11085, 3581, 7143, 6375, 7120, - 11809, 11085, 3581, 7143, 6410, - 11809, 11085, 3581, 7143, 6598, - 11809, 11085, 3581, 7143, 6650, - 11809, 11085, 3581, 7143, 6874, - 11809, 11085, 3581, 7143, 7120, - 11809, 11085, 3581, 7143, 7232, - 11809, 11085, 3581, 7143, 8722, - 11809, 11085, 3581, 7143, 8972, - 11809, 11085, 3581, 7143, 9220, - 11809, 11085, 3581, 7233, 8258, - 11809, 11085, 3581, 7843, 441, 8258, - 11809, 11085, 3581, 7843, 2047, 8258, - 11809, 11085, 3581, 7843, 2237, 8258, - 11809, 11085, 3581, 7843, 6599, 8258, - 11809, 11085, 3581, 7843, 6768, - 11809, 11085, 3581, 7843, 7143, 0, - 11809, 11085, 3581, 7843, 7143, 2, - 11809, 11085, 3581, 7843, 7143, 4, - 11809, 11085, 3581, 7843, 7143, 6, - 11809, 11085, 3581, 7843, 7143, 8, - 11809, 11085, 3581, 7843, 7143, 10, - 11809, 11085, 3581, 7843, 7143, 12, - 11809, 11085, 3581, 7843, 7143, 14, - 11809, 11085, 3581, 7843, 7143, 16, - 11809, 11085, 3581, 7843, 7143, 18, - 11809, 11085, 3581, 7843, 7143, 20, - 11809, 11085, 3581, 7843, 7143, 22, - 11809, 11085, 3581, 7843, 7143, 24, - 11809, 11085, 3581, 7843, 7143, 26, - 11809, 11085, 3581, 7843, 7143, 28, - 11809, 11085, 3581, 7843, 7143, 30, - 11809, 11085, 3581, 7843, 7143, 32, - 11809, 11085, 3581, 7843, 7143, 34, - 11809, 11085, 3581, 7843, 7143, 36, - 11809, 11085, 3581, 7843, 7143, 38, - 11809, 11085, 3581, 7843, 7143, 40, - 11809, 11085, 3581, 7843, 7143, 42, - 11809, 11085, 3581, 7843, 7143, 44, - 11809, 11085, 3581, 7843, 7143, 46, - 11809, 11085, 3581, 7843, 7143, 48, - 11809, 11085, 3581, 7843, 7143, 50, - 11809, 11085, 3581, 7843, 7143, 362, - 11809, 11085, 3581, 7843, 7143, 390, - 11809, 11085, 3581, 7843, 7143, 440, - 11809, 11085, 3581, 7843, 7143, 588, - 11809, 11085, 3581, 7843, 7143, 814, - 11809, 11085, 3581, 7843, 7143, 1038, - 11809, 11085, 3581, 7843, 7143, 2046, - 11809, 11085, 3581, 7843, 7143, 2078, - 11809, 11085, 3581, 7843, 7143, 2236, - 11809, 11085, 3581, 7843, 7143, 2466, - 11809, 11085, 3581, 7843, 7143, 3556, - 11809, 11085, 3581, 7843, 7143, 4338, - 11809, 11085, 3581, 7843, 7143, 5880, - 11809, 11085, 3581, 7843, 7143, 6018, - 11809, 11085, 3581, 7843, 7143, 6276, - 11809, 11085, 3581, 7843, 7143, 6375, 7120, - 11809, 11085, 3581, 7843, 7143, 6410, - 11809, 11085, 3581, 7843, 7143, 6598, - 11809, 11085, 3581, 7843, 7143, 6650, - 11809, 11085, 3581, 7843, 7143, 6874, - 11809, 11085, 3581, 7843, 7143, 7120, - 11809, 11085, 3581, 7843, 7143, 7232, - 11809, 11085, 3581, 7843, 7143, 8722, - 11809, 11085, 3581, 7843, 7143, 8972, - 11809, 11085, 3581, 7843, 7143, 9220, - 11809, 11085, 3581, 7843, 7233, 8258, - 11809, 11085, 3581, 7843, 8527, 0, - 11809, 11085, 3581, 7843, 8527, 2, - 11809, 11085, 3581, 7843, 8527, 4, - 11809, 11085, 3581, 7843, 8527, 6, - 11809, 11085, 3581, 7843, 8527, 8, - 11809, 11085, 3581, 7843, 8527, 10, - 11809, 11085, 3581, 7843, 8527, 12, - 11809, 11085, 3581, 7843, 8527, 14, - 11809, 11085, 3581, 7843, 8527, 16, - 11809, 11085, 3581, 7843, 8527, 18, - 11809, 11085, 3581, 7843, 8527, 20, - 11809, 11085, 3581, 7843, 8527, 22, - 11809, 11085, 3581, 7843, 8527, 24, - 11809, 11085, 3581, 7843, 8527, 26, - 11809, 11085, 3581, 7843, 8527, 28, - 11809, 11085, 3581, 7843, 8527, 30, - 11809, 11085, 3581, 7843, 8527, 32, - 11809, 11085, 3581, 7843, 8527, 34, - 11809, 11085, 3581, 7843, 8527, 36, - 11809, 11085, 3581, 7843, 8527, 38, - 11809, 11085, 3581, 7843, 8527, 40, - 11809, 11085, 3581, 7843, 8527, 42, - 11809, 11085, 3581, 7843, 8527, 44, - 11809, 11085, 3581, 7843, 8527, 46, - 11809, 11085, 3581, 7843, 8527, 48, - 11809, 11085, 3581, 7843, 8527, 50, - 11809, 11085, 3581, 7843, 8527, 362, - 11809, 11085, 3581, 7843, 8527, 390, - 11809, 11085, 3581, 7843, 8527, 440, - 11809, 11085, 3581, 7843, 8527, 588, - 11809, 11085, 3581, 7843, 8527, 814, - 11809, 11085, 3581, 7843, 8527, 1038, - 11809, 11085, 3581, 7843, 8527, 2046, - 11809, 11085, 3581, 7843, 8527, 2078, - 11809, 11085, 3581, 7843, 8527, 2236, - 11809, 11085, 3581, 7843, 8527, 2466, - 11809, 11085, 3581, 7843, 8527, 3556, - 11809, 11085, 3581, 7843, 8527, 4338, - 11809, 11085, 3581, 7843, 8527, 5880, - 11809, 11085, 3581, 7843, 8527, 6018, - 11809, 11085, 3581, 7843, 8527, 6276, - 11809, 11085, 3581, 7843, 8527, 6410, - 11809, 11085, 3581, 7843, 8527, 6598, - 11809, 11085, 3581, 7843, 8527, 6650, - 11809, 11085, 3581, 7843, 8527, 6874, - 11809, 11085, 3581, 7843, 8527, 7120, - 11809, 11085, 3581, 7843, 8527, 7232, - 11809, 11085, 3581, 7843, 8527, 7233, 8258, - 11809, 11085, 3581, 7843, 8527, 8722, - 11809, 11085, 3581, 7843, 8527, 8972, - 11809, 11085, 3581, 7843, 8527, 9220, - 11809, 11085, 3581, 7843, 8723, 8258, - 11809, 11085, 3581, 7843, 9003, 11738, - 11809, 11085, 3581, 8527, 0, - 11809, 11085, 3581, 8527, 2, - 11809, 11085, 3581, 8527, 4, - 11809, 11085, 3581, 8527, 6, - 11809, 11085, 3581, 8527, 8, - 11809, 11085, 3581, 8527, 10, - 11809, 11085, 3581, 8527, 12, - 11809, 11085, 3581, 8527, 14, - 11809, 11085, 3581, 8527, 16, - 11809, 11085, 3581, 8527, 18, - 11809, 11085, 3581, 8527, 20, - 11809, 11085, 3581, 8527, 22, - 11809, 11085, 3581, 8527, 24, - 11809, 11085, 3581, 8527, 26, - 11809, 11085, 3581, 8527, 28, - 11809, 11085, 3581, 8527, 30, - 11809, 11085, 3581, 8527, 32, - 11809, 11085, 3581, 8527, 34, - 11809, 11085, 3581, 8527, 36, - 11809, 11085, 3581, 8527, 38, - 11809, 11085, 3581, 8527, 40, - 11809, 11085, 3581, 8527, 42, - 11809, 11085, 3581, 8527, 44, - 11809, 11085, 3581, 8527, 46, - 11809, 11085, 3581, 8527, 48, - 11809, 11085, 3581, 8527, 50, - 11809, 11085, 3581, 8527, 362, - 11809, 11085, 3581, 8527, 390, - 11809, 11085, 3581, 8527, 440, - 11809, 11085, 3581, 8527, 588, - 11809, 11085, 3581, 8527, 814, - 11809, 11085, 3581, 8527, 1038, - 11809, 11085, 3581, 8527, 2046, - 11809, 11085, 3581, 8527, 2078, - 11809, 11085, 3581, 8527, 2236, - 11809, 11085, 3581, 8527, 2466, - 11809, 11085, 3581, 8527, 3556, - 11809, 11085, 3581, 8527, 4338, - 11809, 11085, 3581, 8527, 5880, - 11809, 11085, 3581, 8527, 6018, - 11809, 11085, 3581, 8527, 6276, - 11809, 11085, 3581, 8527, 6410, - 11809, 11085, 3581, 8527, 6598, - 11809, 11085, 3581, 8527, 6650, - 11809, 11085, 3581, 8527, 6874, - 11809, 11085, 3581, 8527, 7120, - 11809, 11085, 3581, 8527, 7232, - 11809, 11085, 3581, 8527, 7233, 8258, - 11809, 11085, 3581, 8527, 8722, - 11809, 11085, 3581, 8527, 8972, - 11809, 11085, 3581, 8527, 9220, - 11809, 11085, 3581, 8723, 8258, - 11809, 11085, 3581, 9003, 11738, - 11809, 11085, 6287, 2004, - 11809, 11085, 6287, 2358, - 11809, 11085, 6287, 2584, - 11809, 11085, 6287, 3942, - 11809, 11085, 6287, 3956, - 11809, 11085, 6287, 4854, - 11809, 11085, 6287, 5878, - 11809, 11085, 6287, 6312, - 11809, 11085, 6287, 7060, - 11809, 11085, 6287, 7244, - 11809, 11085, 7143, 0, - 11809, 11085, 7143, 2, - 11809, 11085, 7143, 4, - 11809, 11085, 7143, 6, - 11809, 11085, 7143, 8, - 11809, 11085, 7143, 10, - 11809, 11085, 7143, 12, - 11809, 11085, 7143, 14, - 11809, 11085, 7143, 16, - 11809, 11085, 7143, 18, - 11809, 11085, 7143, 20, - 11809, 11085, 7143, 22, - 11809, 11085, 7143, 24, - 11809, 11085, 7143, 26, - 11809, 11085, 7143, 28, - 11809, 11085, 7143, 30, - 11809, 11085, 7143, 32, - 11809, 11085, 7143, 34, - 11809, 11085, 7143, 36, - 11809, 11085, 7143, 38, - 11809, 11085, 7143, 40, - 11809, 11085, 7143, 42, - 11809, 11085, 7143, 44, - 11809, 11085, 7143, 46, - 11809, 11085, 7143, 48, - 11809, 11085, 7143, 50, - 11809, 11085, 7843, 7143, 0, - 11809, 11085, 7843, 7143, 2, - 11809, 11085, 7843, 7143, 4, - 11809, 11085, 7843, 7143, 6, - 11809, 11085, 7843, 7143, 8, - 11809, 11085, 7843, 7143, 10, - 11809, 11085, 7843, 7143, 12, - 11809, 11085, 7843, 7143, 14, - 11809, 11085, 7843, 7143, 16, - 11809, 11085, 7843, 7143, 18, - 11809, 11085, 7843, 7143, 20, - 11809, 11085, 7843, 7143, 22, - 11809, 11085, 7843, 7143, 24, - 11809, 11085, 7843, 7143, 26, - 11809, 11085, 7843, 7143, 28, - 11809, 11085, 7843, 7143, 30, - 11809, 11085, 7843, 7143, 32, - 11809, 11085, 7843, 7143, 34, - 11809, 11085, 7843, 7143, 36, - 11809, 11085, 7843, 7143, 38, - 11809, 11085, 7843, 7143, 40, - 11809, 11085, 7843, 7143, 42, - 11809, 11085, 7843, 7143, 44, - 11809, 11085, 7843, 7143, 46, - 11809, 11085, 7843, 7143, 48, - 11809, 11085, 7843, 7143, 50, - 11809, 11085, 7843, 8527, 0, - 11809, 11085, 7843, 8527, 2, - 11809, 11085, 7843, 8527, 4, - 11809, 11085, 7843, 8527, 6, - 11809, 11085, 7843, 8527, 8, - 11809, 11085, 7843, 8527, 10, - 11809, 11085, 7843, 8527, 12, - 11809, 11085, 7843, 8527, 14, - 11809, 11085, 7843, 8527, 16, - 11809, 11085, 7843, 8527, 18, - 11809, 11085, 7843, 8527, 20, - 11809, 11085, 7843, 8527, 22, - 11809, 11085, 7843, 8527, 24, - 11809, 11085, 7843, 8527, 26, - 11809, 11085, 7843, 8527, 28, - 11809, 11085, 7843, 8527, 30, - 11809, 11085, 7843, 8527, 32, - 11809, 11085, 7843, 8527, 34, - 11809, 11085, 7843, 8527, 36, - 11809, 11085, 7843, 8527, 38, - 11809, 11085, 7843, 8527, 40, - 11809, 11085, 7843, 8527, 42, - 11809, 11085, 7843, 8527, 44, - 11809, 11085, 7843, 8527, 46, - 11809, 11085, 7843, 8527, 48, - 11809, 11085, 7843, 8527, 50, - 11809, 11085, 8527, 0, - 11809, 11085, 8527, 2, - 11809, 11085, 8527, 4, - 11809, 11085, 8527, 6, - 11809, 11085, 8527, 8, - 11809, 11085, 8527, 10, - 11809, 11085, 8527, 12, - 11809, 11085, 8527, 14, - 11809, 11085, 8527, 16, - 11809, 11085, 8527, 18, - 11809, 11085, 8527, 20, - 11809, 11085, 8527, 22, - 11809, 11085, 8527, 24, - 11809, 11085, 8527, 26, - 11809, 11085, 8527, 28, - 11809, 11085, 8527, 30, - 11809, 11085, 8527, 32, - 11809, 11085, 8527, 34, - 11809, 11085, 8527, 36, - 11809, 11085, 8527, 38, - 11809, 11085, 8527, 40, - 11809, 11085, 8527, 42, - 11809, 11085, 8527, 44, - 11809, 11085, 8527, 46, - 11809, 11085, 8527, 48, - 11809, 11085, 8527, 50, - 11809, 12229, 6287, 2004, - 11809, 12229, 6287, 2358, - 11809, 12229, 6287, 2584, - 11809, 12229, 6287, 3942, - 11809, 12229, 6287, 3956, - 11809, 12229, 6287, 4854, - 11809, 12229, 6287, 5878, - 11809, 12229, 6287, 6312, - 11809, 12229, 6287, 7060, - 11809, 12229, 6287, 7244, - 11809, 12229, 7143, 0, - 11809, 12229, 7143, 2, - 11809, 12229, 7143, 4, - 11809, 12229, 7143, 6, - 11809, 12229, 7143, 8, - 11809, 12229, 7143, 10, - 11809, 12229, 7143, 12, - 11809, 12229, 7143, 14, - 11809, 12229, 7143, 16, - 11809, 12229, 7143, 18, - 11809, 12229, 7143, 20, - 11809, 12229, 7143, 22, - 11809, 12229, 7143, 24, - 11809, 12229, 7143, 26, - 11809, 12229, 7143, 28, - 11809, 12229, 7143, 30, - 11809, 12229, 7143, 32, - 11809, 12229, 7143, 34, - 11809, 12229, 7143, 36, - 11809, 12229, 7143, 38, - 11809, 12229, 7143, 40, - 11809, 12229, 7143, 42, - 11809, 12229, 7143, 44, - 11809, 12229, 7143, 46, - 11809, 12229, 7143, 48, - 11809, 12229, 7143, 50, - 11809, 12229, 8527, 0, - 11809, 12229, 8527, 2, - 11809, 12229, 8527, 6, - 11809, 12229, 8527, 8, - 11809, 12229, 8527, 10, - 11809, 12229, 8527, 12, - 11809, 12229, 8527, 16, - 11809, 12229, 8527, 18, - 11809, 12229, 8527, 20, - 11809, 12229, 8527, 22, - 11809, 12229, 8527, 24, - 11809, 12229, 8527, 28, - 11809, 12229, 8527, 36, - 11809, 12229, 8527, 38, - 11809, 12229, 8527, 40, - 11809, 12229, 8527, 42, - 11809, 12229, 8527, 44, - 11809, 12229, 8527, 46, - 11809, 12229, 8527, 48, - 11819, 7824, - 11827, 5524, - 11829, 3955, 1085, 10043, 163, 3758, - 11829, 3955, 1085, 10043, 165, 3758, - 11829, 3955, 1085, 10043, 1677, 4580, - 11829, 3955, 1085, 10043, 2585, 961, 7908, - 11829, 3955, 1085, 10043, 4555, 6021, 8514, - 11829, 3955, 1085, 10043, 4555, 6117, 11005, 8514, - 11829, 3955, 1085, 10043, 4555, 6229, 8514, - 11829, 3955, 1085, 10043, 4555, 7357, 7601, 8514, - 11829, 3955, 1085, 10043, 4555, 7357, 11005, 8514, - 11829, 3955, 1085, 10043, 4555, 7601, 8514, - 11829, 3955, 1085, 10043, 4555, 7673, 6021, 8514, - 11829, 3955, 1085, 10043, 4555, 8231, 8514, - 11829, 3955, 1085, 10043, 4555, 10007, 7085, 8514, - 11829, 3955, 1085, 10043, 4555, 11424, - 11829, 3955, 1085, 10043, 5729, 1677, 4580, - 11829, 3955, 1085, 10043, 6212, - 11829, 3955, 1085, 10043, 6218, - 11829, 3955, 1085, 10043, 6997, 6021, 8514, - 11829, 3955, 1085, 10043, 6997, 6117, 11005, 8514, - 11829, 3955, 1085, 10043, 6997, 6229, 8514, - 11829, 3955, 1085, 10043, 6997, 7357, 7601, 8514, - 11829, 3955, 1085, 10043, 6997, 7357, 11005, 8518, - 11829, 3955, 1085, 10043, 6997, 7601, 8514, - 11829, 3955, 1085, 10043, 6997, 7673, 6021, 8514, - 11829, 3955, 1085, 10043, 6997, 8231, 8514, - 11829, 3955, 1085, 10043, 6997, 10007, 7085, 8514, - 11829, 3955, 1085, 10043, 6997, 11424, - 11829, 3955, 1085, 10043, 9853, 4630, - 11829, 3955, 1085, 10043, 10562, - 11829, 3955, 1085, 10043, 10979, 9560, - 11829, 3955, 1085, 10043, 11329, 4630, - 11829, 3955, 1085, 10043, 11355, 3965, 5478, - 11829, 3955, 1085, 10043, 11355, 6218, - 11831, 520, - 11839, 7357, 11083, 6046, - 11842, - 12176, - 12183, 7158, - 12184, - 12197, 11083, 6046, - 12203, 2533, 11107, 6046, - 12203, 5039, 7583, 6046, - 12203, 7591, 7583, 6046, - 12203, 7761, 7583, 6046, - 12203, 8575, 9660, - 12203, 11368, - 12205, 761, 1931, 9265, 6331, 520, - 12205, 6331, 415, 6331, 520, - 12205, 6331, 520, - 12205, 6331, 521, 415, 2489, 6567, 400, - 12225, 10721, 8258, - 12229, 6767, 10600, - 12229, 7143, 440, - 12229, 7143, 6410, - 12229, 7843, 7143, 6, - 12229, 7843, 7143, 8, - 12229, 7843, 7143, 16, - 12229, 7843, 7143, 18, - 12229, 7843, 8527, 6, - 12229, 8527, 4, - 12229, 8527, 14, - 12229, 8527, 26, - 12229, 8527, 30, - 12229, 8527, 32, - 12229, 8527, 34, - 12229, 8527, 50, - 12229, 8527, 440, - 12229, 8527, 6410, - 12231, 10011, 5741, 4555, 4119, 6116, - 12231, 10011, 5741, 6997, 4119, 6116, - 12237, 5400, - 12239, 6331, 520, - 12239, 10951, 520, - 12265, 6021, 8514, - 12265, 7607, 6021, 8514, - 12265, 7673, 6021, 10535, 4630, - 12267, 4630, - 12267, 9788, - 12267, 10318, - 12273, 5400, - 12281, 11083, 6046, - 12285, 6287, 2004, - 12285, 6287, 2358, - 12285, 6287, 2584, - 12285, 6287, 3942, - 12285, 6287, 3956, - 12285, 6287, 4854, - 12285, 6287, 6312, - 12285, 6287, 7060, - 12285, 6287, 7244, - 12285, 6659, 7143, 7919, 0, - 12285, 6659, 7143, 7919, 2, - 12285, 6659, 7143, 7919, 4, - 12285, 6659, 7143, 7919, 6, - 12285, 6659, 7143, 7919, 8, - 12285, 6659, 7143, 7919, 10, - 12285, 6659, 7143, 7919, 12, - 12285, 6659, 7143, 7919, 14, - 12285, 6659, 7143, 7919, 16, - 12285, 6659, 7143, 7919, 18, - 12285, 6659, 7143, 7919, 20, - 12285, 6659, 7143, 7919, 22, - 12285, 6659, 7143, 7919, 24, - 12285, 6659, 7143, 7919, 26, - 12285, 6659, 7143, 7919, 28, - 12285, 6659, 7143, 7919, 30, - 12285, 6659, 7143, 7919, 32, - 12285, 6659, 7143, 7919, 34, - 12285, 6659, 7143, 7919, 36, - 12285, 6659, 7143, 7919, 38, - 12285, 6659, 7143, 7919, 40, - 12285, 6659, 7143, 7919, 42, - 12285, 6659, 7143, 7919, 44, - 12285, 6659, 7143, 7919, 46, - 12285, 6659, 7143, 7919, 48, - 12285, 6659, 7143, 7919, 50, - 12285, 7805, 5412, - 12285, 7805, 5413, 0, - 12285, 7805, 6196, - 12285, 7805, 6197, 0, - 12285, 7805, 6197, 40, - 12285, 7805, 6492, - 12285, 7805, 6493, 0, - 12285, 7805, 6560, - 12285, 7805, 6561, 0, - 12285, 7805, 6732, - 12285, 7805, 6733, 0, - 12285, 7805, 6802, - 12285, 7805, 6803, 0, - 12285, 7805, 6930, - 12285, 7805, 6931, 0, - 12285, 7805, 6994, - 12285, 7805, 6995, 0, - 12285, 7805, 7878, - 12285, 7805, 7879, 0, - 12285, 7805, 8308, - 12285, 7805, 8309, 0, - 12285, 7805, 8548, - 12285, 7805, 8549, 0, - 12285, 7805, 8850, - 12285, 7805, 8851, 0, - 12285, 7805, 9016, - 12285, 7805, 9017, 0, - 12285, 7805, 9194, - 12285, 7805, 9195, 0, - 12285, 7887, 10117, 29, 234, - 12285, 7887, 10117, 6868, - 12285, 8031, 2478, - 12285, 8031, 7682, - 12285, 8031, 8350, - 12285, 8031, 8352, - 12285, 8031, 8738, - 12285, 8031, 9116, - 12285, 8031, 9556, - 12285, 8031, 9602, - 12285, 8031, 9758, - 12285, 8031, 9992, - 12285, 8031, 10570, - 12285, 10395, 2004, - 12285, 10395, 2358, - 12285, 10395, 2402, - 12285, 10395, 2478, - 12285, 10395, 2584, - 12285, 10395, 3614, - 12285, 10395, 3936, - 12285, 10395, 3942, - 12285, 10395, 3956, - 12285, 10395, 4126, - 12285, 10395, 4702, - 12285, 10395, 4736, - 12285, 10395, 4854, - 12285, 10395, 5190, - 12285, 10395, 5300, - 12285, 10395, 5742, - 12285, 10395, 6306, - 12285, 10395, 6312, - 12285, 10395, 6642, - 12285, 10395, 6716, - 12285, 10395, 6984, - 12285, 10395, 7060, - 12285, 10395, 7190, - 12285, 10395, 7196, - 12285, 10395, 7244, - 12285, 10395, 7348, - 12285, 10395, 9130, - 12285, 10395, 9138, - 12285, 10395, 9272, - 12285, 10395, 9584, - 12285, 10395, 9866, - 12285, 10395, 10344, - 12285, 10395, 10548, - 12285, 10395, 10602, - 12285, 10395, 10944, - 12285, 10395, 12348, - 12288, - 12289, 5741, 36, - 12309, 4630, - 12309, 9788, - 12309, 10318, - 12320, - 12343, 6331, 520, - 12345, 9308, - 12359, 46, - 12359, 5400, - 12359, 5401, 257, 4555, 4119, 7582, - 12359, 5401, 257, 6997, 4119, 7582, - 12359, 5401, 257, 7673, 7582, - 12359, 5401, 257, 10010, - 12359, 5401, 5741, 961, 5990, - 12359, 5401, 5741, 10032, - 12365, 6021, 8514, - 12365, 7607, 6021, 8514, - 12365, 7673, 6021, 10535, 4630, - 12389, 6829, 3895, 6046, - 12389, 7157, 3895, 6046, - 12389, 11083, 6046, - 12429, 11083, 6046, - 12431, 9308, - 12433, 11083, 6046, - 12435, 11083, 6046, - 12465, 7673, 7824, - 12465, 8397, 7155, 4630, - 12465, 10527, 7155, 4630, - 12465, 11651, 7155, 4630, - 12481, 8258, - 12493, 6895, 8258, - 12503, 7797, 8258, - 12503, 7897, 8258, - 12517, 8258, - 12519, 8258, + 10529, 9898, + 10553, 11621, 568, + 10574, + 10575, 445, 6741, 568, + 10575, 445, 11621, 568, + 10575, 835, 2091, 11621, 568, + 10575, 6377, 2091, 6741, 568, + 10575, 6377, 2091, 7919, 6741, 568, + 10575, 6377, 7919, 6741, 568, + 10575, 6377, 8167, 5758, + 10575, 6377, 12345, 2091, 6741, 568, + 10575, 6377, 12345, 8167, 5758, + 10575, 7767, 10476, + 10579, 428, + 10579, 429, 445, 6741, 568, + 10579, 429, 445, 6741, 569, 6121, 1045, 6376, + 10579, 429, 6121, 2091, 6741, 568, + 10579, 429, 6377, 2091, 6741, 568, + 10579, 429, 6377, 7709, 10374, + 10579, 429, 6377, 7919, 6741, 568, + 10579, 429, 6377, 8167, 5758, + 10579, 6121, 1044, + 10579, 6121, 5445, 5759, 6490, + 10579, 6121, 13061, 5759, 6490, + 10579, 6377, 8762, + 10579, 6377, 10578, + 10579, 6377, 11097, 6434, + 10579, 7991, 721, 8329, 115, 3993, 6121, 8762, + 10579, 7991, 8762, + 10579, 11183, 9718, + 10604, + 10607, 7803, 5759, 16, + 10607, 7803, 5759, 40, + 10607, 8405, 0, + 10607, 8405, 16, + 10607, 8405, 40, + 10607, 8405, 100, + 10607, 8405, 138, + 10607, 8405, 216, + 10607, 8405, 306, + 10607, 8405, 332, + 10607, 8405, 364, + 10607, 8405, 392, + 10607, 8405, 462, + 10607, 8405, 524, + 10607, 8405, 556, + 10607, 8405, 622, + 10607, 8405, 652, + 10607, 8405, 2030, + 10629, 8405, 652, + 10629, 8405, 656, + 10629, 8405, 664, + 10629, 8405, 3006, + 10629, 8405, 3008, + 10629, 8405, 3010, + 10629, 8405, 3014, + 10629, 8405, 3016, + 10629, 8405, 3018, + 10629, 8405, 3020, + 10629, 8405, 3022, + 10629, 8405, 3024, + 10629, 8405, 3026, + 10629, 8405, 3028, + 10629, 8405, 3030, + 10629, 8405, 3032, + 10629, 8405, 3034, + 10629, 8405, 3036, + 10629, 8405, 3038, + 10629, 8405, 3040, + 10629, 8405, 3042, + 10629, 8405, 3044, + 10629, 8405, 3046, + 10629, 8405, 3062, + 10629, 8405, 3291, 6170, + 10629, 8405, 6162, + 10629, 8405, 6164, + 10629, 8405, 6166, + 10629, 8405, 6168, + 10629, 8405, 6170, + 10629, 8405, 6174, + 10629, 8405, 6176, + 10629, 8405, 6180, + 10629, 8405, 6182, + 10629, 8405, 6184, + 10629, 8405, 6186, + 10629, 8405, 6190, + 10629, 8405, 6192, + 10629, 8405, 6194, + 10629, 8405, 7844, + 10629, 8405, 7846, + 10629, 8405, 7848, + 10629, 8405, 7989, 8973, 3018, + 10629, 8405, 7989, 8973, 3020, + 10629, 8405, 8863, 3018, + 10629, 8405, 8863, 3022, + 10629, 8405, 8863, 3032, + 10629, 8405, 8863, 6170, + 10629, 8405, 8863, 6172, + 10629, 8405, 8863, 6176, + 10629, 8405, 8863, 6178, + 10629, 8405, 8863, 6192, + 10629, 8405, 8985, 6192, + 10629, 8405, 11849, 3046, + 10629, 10339, 8405, 12965, 4926, + 10631, 5759, 186, + 10643, 6121, 1045, 6376, + 10643, 6121, 8689, 91, 8004, + 10643, 6121, 10666, + 10644, + 10661, 6129, 9178, + 10661, 8405, 16, + 10661, 8405, 40, + 10661, 8405, 246, + 10661, 8405, 486, + 10661, 8405, 568, + 10661, 8405, 632, + 10661, 8405, 680, + 10661, 8405, 710, + 10661, 8405, 1578, + 10661, 8405, 1612, + 10661, 8405, 1892, + 10661, 8405, 2110, + 10661, 8405, 2574, + 10661, 8405, 2674, + 10661, 8405, 3080, + 10661, 8405, 3252, + 10661, 8405, 3774, + 10661, 8405, 4066, + 10661, 8405, 4538, + 10661, 8405, 5494, + 10661, 8405, 5624, + 10661, 8405, 5698, + 10661, 8405, 6262, + 10661, 8405, 6674, + 10661, 8405, 6822, + 10661, 8405, 6850, + 10661, 8405, 7080, + 10661, 8405, 7422, + 10661, 8405, 7482, + 10661, 8405, 8814, + 10664, + 10665, 6121, 5525, 6706, + 10670, + 10674, + 10677, 761, 6121, 11649, 8758, + 10677, 761, 7991, 7443, 10642, + 10677, 761, 8153, 4849, 11378, + 10677, 761, 8849, 7443, 11378, + 10677, 4215, 4112, + 10677, 4719, 8641, 4926, + 10677, 4719, 8641, 4927, 7121, 4388, + 10677, 4719, 8641, 4927, 7773, 4388, + 10677, 4719, 8641, 6121, 8921, 7605, 4926, + 10677, 4719, 8641, 6121, 8921, 7605, 4927, 7773, 4388, + 10677, 4876, + 10677, 4877, 6121, 8057, 6376, + 10677, 4877, 6121, 8057, 6490, + 10677, 4877, 6121, 8473, 1044, + 10677, 4877, 10982, + 10677, 4923, 6121, 8759, 5758, + 10677, 7708, + 10677, 8963, 4876, + 10677, 10154, + 10677, 12043, 11067, 4926, + 10679, 8744, + 10701, 569, 2681, 9746, + 10708, + 10719, 5238, + 10722, + 10737, 5758, + 10749, 9483, 8775, 1078, + 10749, 9483, 8775, 1135, 12010, + 10749, 9483, 8775, 3268, + 10749, 9483, 8775, 4619, 2020, + 10749, 9483, 8775, 4619, 9884, + 10749, 9483, 8775, 5048, + 10749, 9483, 8775, 5921, 1583, 9000, + 10749, 9483, 8775, 5970, + 10749, 9483, 8775, 6203, 726, + 10749, 9483, 8775, 6203, 4728, + 10749, 9483, 8775, 6387, 3274, + 10749, 9483, 8775, 6387, 4952, + 10749, 9483, 8775, 6387, 5449, 3274, + 10749, 9483, 8775, 6387, 5449, 6866, + 10749, 9483, 8775, 6387, 6866, + 10749, 9483, 8775, 6387, 8470, + 10749, 9483, 8775, 6387, 9886, + 10749, 9483, 8775, 6387, 11022, + 10749, 9483, 8775, 6419, 1135, 2020, + 10749, 9483, 8775, 6419, 12010, + 10749, 9483, 8775, 6426, + 10749, 9483, 8775, 6581, 7892, + 10749, 9483, 8775, 6581, 8366, + 10749, 9483, 8775, 6581, 8728, + 10749, 9483, 8775, 6690, + 10749, 9483, 8775, 6691, 9884, + 10749, 9483, 8775, 7092, + 10749, 9483, 8775, 7329, 2020, + 10749, 9483, 8775, 7329, 6690, + 10749, 9483, 8775, 7329, 12010, + 10749, 9483, 8775, 7398, + 10749, 9483, 8775, 7434, + 10749, 9483, 8775, 7660, + 10749, 9483, 8775, 7678, + 10749, 9483, 8775, 7679, 7928, + 10749, 9483, 8775, 7688, + 10749, 9483, 8775, 7788, + 10749, 9483, 8775, 7837, 8364, + 10749, 9483, 8775, 8094, + 10749, 9483, 8775, 8115, 3269, 1079, 10018, + 10749, 9483, 8775, 8115, 10815, 195, 10018, + 10749, 9483, 8775, 8115, 11863, 5377, 10018, + 10749, 9483, 8775, 8115, 12085, 9775, 10018, + 10749, 9483, 8775, 8115, 12372, + 10749, 9483, 8775, 8115, 13020, + 10749, 9483, 8775, 8171, 12110, + 10749, 9483, 8775, 8171, 12904, + 10749, 9483, 8775, 8199, 9703, 8053, 7786, + 10749, 9483, 8775, 8237, 17, 8949, 13020, + 10749, 9483, 8775, 8237, 5055, 6978, + 10749, 9483, 8775, 8237, 8506, + 10749, 9483, 8775, 8237, 9451, 8053, 10008, + 10749, 9483, 8775, 8237, 9451, 8053, 11684, + 10749, 9483, 8775, 8237, 9703, 8053, 8776, + 10749, 9483, 8775, 8237, 9703, 10007, 144, + 10749, 9483, 8775, 8237, 9884, + 10749, 9483, 8775, 8237, 9885, 9999, 6980, + 10749, 9483, 8775, 8237, 10811, 144, + 10749, 9483, 8775, 8237, 10811, 310, + 10749, 9483, 8775, 8237, 10811, 405, 726, + 10749, 9483, 8775, 8237, 10811, 405, 4728, + 10749, 9483, 8775, 8237, 10811, 462, + 10749, 9483, 8775, 8237, 10811, 678, + 10749, 9483, 8775, 8237, 10811, 5048, + 10749, 9483, 8775, 8237, 11609, 10710, + 10749, 9483, 8775, 8249, 8114, + 10749, 9483, 8775, 8249, 8948, + 10749, 9483, 8775, 8265, 2021, 726, + 10749, 9483, 8775, 8265, 2021, 4728, + 10749, 9483, 8775, 8265, 9884, + 10749, 9483, 8775, 8265, 12989, 6680, + 10749, 9483, 8775, 8265, 12989, 9888, + 10749, 9483, 8775, 8321, 8801, 11038, + 10749, 9483, 8775, 8341, 10648, + 10749, 9483, 8775, 8364, + 10749, 9483, 8775, 8365, 726, + 10749, 9483, 8775, 8365, 4728, + 10749, 9483, 8775, 8397, 1079, 9090, + 10749, 9483, 8775, 8397, 4159, 9092, + 10749, 9483, 8775, 8397, 7735, 9090, + 10749, 9483, 8775, 8397, 9359, 9092, + 10749, 9483, 8775, 8397, 10615, 9090, + 10749, 9483, 8775, 8475, 4618, + 10749, 9483, 8775, 8537, 2020, + 10749, 9483, 8775, 8537, 9884, + 10749, 9483, 8775, 8538, + 10749, 9483, 8775, 8557, 9884, + 10749, 9483, 8775, 8587, 2020, + 10749, 9483, 8775, 8587, 9884, + 10749, 9483, 8775, 8614, + 10749, 9483, 8775, 8686, + 10749, 9483, 8775, 8687, 2020, + 10749, 9483, 8775, 8748, + 10749, 9483, 8775, 8798, + 10749, 9483, 8775, 8850, + 10749, 9483, 8775, 8909, 2020, + 10749, 9483, 8775, 8909, 6690, + 10749, 9483, 8775, 8909, 12010, + 10749, 9483, 8775, 8949, 3269, 1079, 10018, + 10749, 9483, 8775, 8949, 10815, 195, 10018, + 10749, 9483, 8775, 8949, 11863, 5377, 10018, + 10749, 9483, 8775, 8949, 12085, 9775, 10018, + 10749, 9483, 8775, 8949, 12372, + 10749, 9483, 8775, 8954, + 10749, 9483, 8775, 9009, 144, + 10749, 9483, 8775, 9009, 216, + 10749, 9483, 8775, 9009, 310, + 10749, 9483, 8775, 9009, 404, + 10749, 9483, 8775, 9009, 462, + 10749, 9483, 8775, 9009, 678, + 10749, 9483, 8775, 9009, 2882, + 10749, 9483, 8775, 9080, + 10749, 9483, 8775, 9160, + 10749, 9483, 8775, 9260, + 10749, 9483, 8775, 9267, 1583, 8237, 2882, + 10749, 9483, 8775, 9350, + 10749, 9483, 8775, 9399, 2021, 726, + 10749, 9483, 8775, 9399, 2021, 4728, + 10749, 9483, 8775, 9399, 2021, 4954, + 10749, 9483, 8775, 9399, 9884, + 10749, 9483, 8775, 9412, + 10749, 9483, 8775, 9415, 2020, + 10749, 9483, 8775, 9415, 3250, + 10749, 9483, 8775, 9415, 9884, + 10749, 9483, 8775, 9420, + 10749, 9483, 8775, 9440, + 10749, 9483, 8775, 9584, + 10749, 9483, 8775, 9586, + 10749, 9483, 8775, 9620, + 10749, 9483, 8775, 9740, + 10749, 9483, 8775, 9741, 9874, + 10749, 9483, 8775, 9755, 2020, + 10749, 9483, 8775, 9755, 4957, 9742, + 10749, 9483, 8775, 9755, 9884, + 10749, 9483, 8775, 9756, + 10749, 9483, 8775, 9774, + 10749, 9483, 8775, 9790, + 10749, 9483, 8775, 9815, 9884, + 10749, 9483, 8775, 9848, + 10749, 9483, 8775, 9873, 2020, + 10749, 9483, 8775, 9873, 9884, + 10749, 9483, 8775, 9876, + 10749, 9483, 8775, 9936, + 10749, 9483, 8775, 9943, 2020, + 10749, 9483, 8775, 9943, 9884, + 10749, 9483, 8775, 10005, 3269, 7168, + 10749, 9483, 8775, 10005, 3269, 8464, + 10749, 9483, 8775, 10005, 6690, + 10749, 9483, 8775, 10005, 9778, + 10749, 9483, 8775, 10010, + 10749, 9483, 8775, 10011, 12989, 6680, + 10749, 9483, 8775, 10011, 12989, 9889, 726, + 10749, 9483, 8775, 10011, 12989, 9889, 4728, + 10749, 9483, 8775, 10013, 222, + 10749, 9483, 8775, 10164, + 10749, 9483, 8775, 10250, + 10749, 9483, 8775, 10284, + 10749, 9483, 8775, 10288, + 10749, 9483, 8775, 10289, 3250, + 10749, 9483, 8775, 10290, + 10749, 9483, 8775, 10292, + 10749, 9483, 8775, 10325, 3249, 8613, 6978, + 10749, 9483, 8775, 10325, 3249, 9997, 6978, + 10749, 9483, 8775, 10325, 7785, 6978, + 10749, 9483, 8775, 10325, 8613, 6978, + 10749, 9483, 8775, 10325, 8855, 6978, + 10749, 9483, 8775, 10325, 9429, 6978, + 10749, 9483, 8775, 10325, 9597, 6978, + 10749, 9483, 8775, 10325, 9597, 10617, 6978, + 10749, 9483, 8775, 10325, 9997, 6978, + 10749, 9483, 8775, 10325, 10617, 6978, + 10749, 9483, 8775, 10325, 10617, 9429, 6978, + 10749, 9483, 8775, 10325, 11372, + 10749, 9483, 8775, 10325, 11743, 6978, + 10749, 9483, 8775, 10412, + 10749, 9483, 8775, 10418, + 10749, 9483, 8775, 10419, 2020, + 10749, 9483, 8775, 10500, + 10749, 9483, 8775, 10525, 7946, + 10749, 9483, 8775, 10525, 7947, 9174, + 10749, 9483, 8775, 10525, 7947, 10646, + 10749, 9483, 8775, 10525, 7947, 11852, + 10749, 9483, 8775, 10525, 9778, + 10749, 9483, 8775, 10525, 9779, 9174, + 10749, 9483, 8775, 10525, 9779, 10646, + 10749, 9483, 8775, 10525, 9779, 11852, + 10749, 9483, 8775, 10618, + 10749, 9483, 8775, 10649, 2020, + 10749, 9483, 8775, 10649, 3250, + 10749, 9483, 8775, 10649, 9884, + 10749, 9483, 8775, 10813, 450, + 10749, 9483, 8775, 10974, + 10749, 9483, 8775, 10991, 10008, + 10749, 9483, 8775, 10991, 11684, + 10749, 9483, 8775, 10991, 12360, + 10749, 9483, 8775, 11046, + 10749, 9483, 8775, 11074, + 10749, 9483, 8775, 11078, + 10749, 9483, 8775, 11079, 2021, 726, + 10749, 9483, 8775, 11079, 2021, 4728, + 10749, 9483, 8775, 11079, 2021, 4954, + 10749, 9483, 8775, 11079, 9884, + 10749, 9483, 8775, 11082, + 10749, 9483, 8775, 11149, 2020, + 10749, 9483, 8775, 11149, 9884, + 10749, 9483, 8775, 11188, + 10749, 9483, 8775, 11189, 2020, + 10749, 9483, 8775, 11348, + 10749, 9483, 8775, 11374, + 10749, 9483, 8775, 11402, + 10749, 9483, 8775, 11403, 6690, + 10749, 9483, 8775, 11416, + 10749, 9483, 8775, 11421, 8801, 11038, + 10749, 9483, 8775, 11421, 11347, 2020, + 10749, 9483, 8775, 11422, + 10749, 9483, 8775, 11423, 2020, + 10749, 9483, 8775, 11423, 6690, + 10749, 9483, 8775, 11602, + 10749, 9483, 8775, 11643, 27, 7928, + 10749, 9483, 8775, 11643, 27, 9172, + 10749, 9483, 8775, 11654, + 10749, 9483, 8775, 11656, + 10749, 9483, 8775, 12111, 2020, + 10749, 9483, 8775, 12111, 9884, + 10749, 9483, 8775, 12112, + 10749, 9483, 8775, 12113, 2020, + 10749, 9483, 8775, 12113, 9884, + 10749, 9483, 8775, 12120, + 10749, 9483, 8775, 12365, 1126, + 10749, 9483, 8775, 12365, 1134, + 10749, 9483, 8775, 12400, + 10749, 9483, 8775, 12474, + 10749, 9483, 8775, 12872, + 10749, 9483, 8775, 12904, + 10749, 9483, 8775, 13052, + 10749, 9483, 8775, 13082, + 10749, 9483, 8775, 13084, + 10749, 9483, 8775, 13186, + 10749, 9483, 8775, 13206, + 10749, 9483, 8775, 13208, + 10749, 9483, 8775, 13216, + 10749, 9483, 8775, 13220, + 10749, 9483, 8775, 13222, + 10749, 9483, 8775, 13352, + 10749, 9483, 8775, 13400, + 10749, 9483, 8775, 13404, + 10750, + 10759, 2690, + 10763, 2725, 11791, 6434, + 10763, 5385, 8057, 6434, + 10763, 8065, 8057, 6434, + 10763, 8241, 8057, 6434, + 10763, 9115, 10260, + 10763, 10260, + 10767, 47, 6376, + 10767, 47, 6490, + 10767, 283, 6490, + 10767, 601, 5877, 6490, + 10767, 603, 6376, + 10767, 605, 6376, + 10767, 1045, 6376, + 10767, 1045, 6377, 7442, + 10767, 1045, 6490, + 10767, 1809, 4876, + 10767, 2091, 7709, 6376, + 10767, 4117, 5877, 6490, + 10767, 4215, 4113, 6376, + 10767, 4531, 6376, + 10767, 4536, + 10767, 4849, 4389, 5551, 6376, + 10767, 4849, 4389, 5551, 6490, + 10767, 4849, 5877, 6490, + 10767, 4849, 6409, 6376, + 10767, 4849, 6409, 6490, + 10767, 4849, 6435, 6376, + 10767, 4849, 6435, 6490, + 10767, 4849, 7443, 6435, 6376, + 10767, 4849, 7443, 6435, 6490, + 10767, 4849, 9327, 6376, + 10767, 4849, 10717, 6376, + 10767, 4849, 10717, 6490, + 10767, 4895, 8153, 9719, 9548, + 10767, 4895, 8759, 9548, + 10767, 4895, 9719, 9548, + 10767, 4895, 10677, 4877, 9548, + 10767, 5445, 5759, 6490, + 10767, 5551, 6376, + 10767, 5551, 6490, + 10767, 5551, 9548, + 10767, 6115, 8015, 6376, + 10767, 6379, 5965, 4926, + 10767, 6379, 7908, + 10767, 6379, 7909, 6490, + 10767, 6516, + 10767, 6517, 6490, + 10767, 6546, + 10767, 6547, 6490, + 10767, 6617, 6376, + 10767, 6617, 6377, 7442, + 10767, 6617, 6490, + 10767, 6875, 5965, 4926, + 10767, 6875, 7908, + 10767, 6875, 7909, 6490, + 10767, 6879, 9412, + 10767, 6879, 9483, 9796, + 10767, 6879, 9483, 11164, + 10767, 6879, 9483, 11358, + 10767, 6879, 10809, 7724, + 10767, 6879, 12120, + 10767, 6879, 13036, + 10767, 7089, 7593, 8405, 0, + 10767, 7089, 7593, 8405, 4, + 10767, 7089, 7593, 8405, 5, 9072, + 10767, 7089, 7593, 8405, 6, + 10767, 7089, 7593, 8405, 8, + 10767, 7089, 7593, 8405, 12, + 10767, 7089, 7593, 8405, 14, + 10767, 7089, 7593, 8405, 16, + 10767, 7089, 7593, 8405, 20, + 10767, 7089, 7593, 8405, 22, + 10767, 7089, 7593, 8405, 24, + 10767, 7089, 7593, 8405, 26, + 10767, 7089, 7593, 8405, 28, + 10767, 7089, 7593, 8405, 34, + 10767, 7089, 7593, 8405, 35, 6490, + 10767, 7089, 7593, 8405, 35, 9642, + 10767, 7089, 7593, 8405, 36, + 10767, 7089, 7593, 8405, 38, + 10767, 7089, 7593, 8405, 40, + 10767, 7089, 7593, 8405, 42, + 10767, 7089, 7593, 8405, 46, + 10767, 7089, 7593, 8405, 50, + 10767, 7089, 7593, 8405, 66, + 10767, 7089, 7593, 8405, 82, + 10767, 7089, 7593, 8405, 94, + 10767, 7089, 7593, 8405, 1130, + 10767, 7089, 7593, 8405, 4895, 36, + 10767, 7089, 7593, 8405, 9365, 6, + 10767, 7089, 7593, 8405, 10997, 5385, 1, 6376, + 10767, 7089, 8405, 7593, 9063, 12, + 10767, 7089, 8405, 7593, 9063, 22, + 10767, 7089, 8405, 7593, 9063, 24, + 10767, 7089, 8405, 7593, 9063, 26, + 10767, 7089, 8405, 7593, 9063, 34, + 10767, 7173, 5759, 6490, + 10767, 7443, 4389, 5551, 6376, + 10767, 7443, 4389, 5551, 6490, + 10767, 7443, 5877, 6490, + 10767, 7443, 6435, 6376, + 10767, 7443, 6435, 6490, + 10767, 7443, 9327, 6376, + 10767, 7443, 10717, 721, 601, 10717, 6490, + 10767, 7443, 10717, 721, 4117, 10717, 6490, + 10767, 7443, 10717, 6376, + 10767, 7443, 10717, 6490, + 10767, 7551, 8759, 9548, + 10767, 7551, 9719, 9548, + 10767, 7551, 10677, 4877, 9548, + 10767, 7601, 6490, + 10767, 7695, 4113, 6376, + 10767, 7708, + 10767, 7709, 6490, + 10767, 7709, 9548, + 10767, 7919, 6741, 569, 6376, + 10767, 8015, 6376, + 10767, 8015, 6490, + 10767, 8151, 6379, 7908, + 10767, 8151, 6875, 7908, + 10767, 8153, 1809, 4876, + 10767, 8153, 5551, 6490, + 10767, 8153, 6379, 7908, + 10767, 8153, 6516, + 10767, 8153, 6517, 6490, + 10767, 8153, 6875, 7908, + 10767, 8153, 7708, + 10767, 8153, 7709, 4849, 4388, + 10767, 8153, 7709, 7443, 4388, + 10767, 8153, 8432, + 10767, 8153, 8433, 6490, + 10767, 8153, 10267, 6516, + 10767, 8153, 10388, + 10767, 8153, 10677, 4877, 6376, + 10767, 8153, 10677, 4877, 6490, + 10767, 8153, 10677, 8759, 9548, + 10767, 8153, 11449, 6376, + 10767, 8153, 11765, 6435, 6490, + 10767, 8167, 5759, 6490, + 10767, 8432, + 10767, 8433, 4849, 4388, + 10767, 8433, 6490, + 10767, 8433, 7443, 4388, + 10767, 8534, + 10767, 8535, 6376, + 10767, 8745, 6490, + 10767, 8849, 10668, + 10767, 8869, 6617, 6376, + 10767, 8963, 6376, + 10767, 8963, 6490, + 10767, 8999, 8774, + 10767, 9072, + 10767, 9284, + 10767, 9633, 9719, 9548, + 10767, 9663, 6490, + 10767, 9811, 6435, 6490, + 10767, 9899, 6376, + 10767, 9899, 6490, + 10767, 9977, 2671, 10335, 5758, + 10767, 9977, 6655, 10438, + 10767, 9977, 7399, 10438, + 10767, 9977, 7716, + 10767, 9977, 7804, + 10767, 9977, 8342, + 10767, 9977, 8405, 0, + 10767, 9977, 8405, 28, + 10767, 9977, 8405, 102, + 10767, 9977, 8405, 142, + 10767, 9977, 8405, 172, + 10767, 9977, 8405, 174, + 10767, 9977, 8405, 176, + 10767, 9977, 8405, 182, + 10767, 9977, 8405, 184, + 10767, 9977, 8405, 236, + 10767, 9977, 8405, 258, + 10767, 9977, 8405, 306, + 10767, 9977, 8405, 468, + 10767, 9977, 8405, 560, + 10767, 9977, 8405, 612, + 10767, 9977, 8405, 664, + 10767, 9977, 8405, 672, + 10767, 9977, 8405, 807, 3096, + 10767, 9977, 8405, 886, + 10767, 9977, 8405, 1262, + 10767, 9977, 8405, 2516, + 10767, 9977, 8405, 2734, + 10767, 9977, 8405, 3038, + 10767, 9977, 8405, 3148, + 10767, 9977, 8405, 4198, + 10767, 9977, 8405, 6696, + 10767, 9977, 8405, 6748, + 10767, 9977, 8405, 7522, + 10767, 9977, 8405, 8425, 3096, + 10767, 9977, 8405, 10269, 0, + 10767, 9977, 8405, 10269, 807, 3096, + 10767, 9977, 8405, 11127, 592, + 10767, 9977, 9345, 10335, 5758, + 10767, 9977, 9345, 11363, 5758, + 10767, 9977, 9578, + 10767, 9977, 10335, 5758, + 10767, 9977, 10442, + 10767, 9977, 10625, 10335, 5758, + 10767, 9977, 13062, + 10767, 10223, 8330, + 10767, 10267, 6516, + 10767, 10267, 6517, 6490, + 10767, 10267, 8015, 6490, + 10767, 10267, 8153, 3273, 6490, + 10767, 10301, 4849, 4388, + 10767, 10301, 7443, 4388, + 10767, 10388, + 10767, 10489, 6617, 6376, + 10767, 10677, 4877, 6376, + 10767, 10677, 4877, 6490, + 10767, 10677, 7708, + 10767, 10763, 5551, 9548, + 10767, 10763, 6435, 6376, + 10767, 10804, + 10767, 10805, 6490, + 10767, 10969, 8056, + 10767, 10969, 8057, 10728, + 10767, 10969, 8354, + 10767, 10969, 8676, + 10767, 10969, 8744, + 10767, 10969, 8899, 10441, 10642, + 10767, 10969, 9158, + 10767, 11097, 6435, 9548, + 10767, 11097, 9327, 6121, 3713, 10958, + 10767, 11215, 4531, 6490, + 10767, 11449, 7908, + 10767, 11449, 7909, 6490, + 10767, 11459, 8432, + 10767, 11647, 6376, + 10767, 11765, 9327, 6121, 3713, 10958, + 10767, 11845, 4926, + 10767, 11900, + 10767, 12107, 4531, 6490, + 10767, 12394, + 10767, 12416, + 10767, 12470, + 10767, 12498, + 10767, 12500, + 10767, 12502, + 10767, 12901, 5551, 9548, + 10767, 12901, 6435, 6376, + 10767, 13356, + 10767, 13360, + 10767, 13365, 8921, 7605, 4926, + 10767, 13365, 12341, 7605, 4926, + 10771, 6121, 1045, 6376, + 10783, 5758, + 10789, 5759, 0, + 10789, 5759, 1, 7711, 0, + 10789, 5759, 1, 7711, 236, + 10789, 5759, 1, 7711, 750, + 10789, 5759, 1, 7711, 1482, + 10789, 5759, 1, 7711, 2486, + 10789, 5759, 1, 7711, 4241, 5898, + 10789, 5759, 1, 7711, 5030, + 10789, 5759, 1, 7711, 7077, 4358, + 10789, 5759, 8, + 10789, 5759, 9, 5387, 9, 2111, 5387, 2110, + 10789, 5759, 9, 7711, 2194, + 10789, 5759, 16, + 10789, 5759, 17, 0, + 10789, 5759, 40, + 10789, 5759, 41, 41, 40, + 10789, 5759, 41, 1304, + 10789, 5759, 41, 5387, 41, 41, 10489, 5387, 41, 10488, + 10789, 5759, 41, 5387, 41, 463, 5387, 463, 1221, 5387, 1220, + 10789, 5759, 41, 5387, 41, 2593, 5387, 2592, + 10789, 5759, 54, + 10789, 5759, 60, + 10789, 5759, 61, 4358, + 10789, 5759, 61, 7711, 41, 5445, 41, 5445, 40, + 10789, 5759, 61, 7711, 236, + 10789, 5759, 61, 7711, 1212, + 10789, 5759, 61, 7711, 1483, 4358, + 10789, 5759, 61, 7711, 3280, + 10789, 5759, 61, 7711, 4125, 4358, + 10789, 5759, 61, 7711, 4241, 5898, + 10789, 5759, 61, 7711, 4606, + 10789, 5759, 61, 7711, 7074, + 10789, 5759, 61, 7711, 7534, + 10789, 5759, 64, + 10789, 5759, 74, + 10789, 5759, 75, 7711, 6746, + 10789, 5759, 75, 7711, 7545, 5445, 4338, + 10789, 5759, 76, + 10789, 5759, 77, 7711, 76, + 10789, 5759, 77, 7711, 236, + 10789, 5759, 77, 7711, 314, + 10789, 5759, 77, 7711, 2518, + 10789, 5759, 77, 7711, 2836, + 10789, 5759, 77, 7711, 4088, + 10789, 5759, 77, 7711, 4338, + 10789, 5759, 77, 7711, 4706, + 10789, 5759, 80, + 10789, 5759, 81, 5387, 80, + 10789, 5759, 81, 5445, 5043, 9732, + 10789, 5759, 81, 5445, 5043, 10377, 81, 5445, 5042, + 10789, 5759, 81, 7695, 7710, + 10789, 5759, 100, + 10789, 5759, 106, + 10789, 5759, 107, 7711, 0, + 10789, 5759, 107, 7711, 1220, + 10789, 5759, 107, 7711, 1483, 4358, + 10789, 5759, 112, + 10789, 5759, 113, 5387, 113, 60, + 10789, 5759, 113, 5387, 113, 596, + 10789, 5759, 113, 9967, 112, + 10789, 5759, 138, + 10789, 5759, 144, + 10789, 5759, 152, + 10789, 5759, 153, 4358, + 10789, 5759, 153, 5387, 152, + 10789, 5759, 153, 9684, + 10789, 5759, 158, + 10789, 5759, 159, 7711, 1, 5445, 237, 5445, 138, + 10789, 5759, 159, 7711, 40, + 10789, 5759, 159, 7711, 374, + 10789, 5759, 159, 7711, 1220, + 10789, 5759, 159, 7711, 2488, + 10789, 5759, 159, 7711, 2518, + 10789, 5759, 172, + 10789, 5759, 176, + 10789, 5759, 177, 7711, 368, + 10789, 5759, 177, 7711, 4240, + 10789, 5759, 177, 7711, 4241, 5898, + 10789, 5759, 177, 9732, + 10789, 5759, 177, 9967, 176, + 10789, 5759, 177, 10377, 176, + 10789, 5759, 216, + 10789, 5759, 217, 4358, + 10789, 5759, 224, + 10789, 5759, 225, 7711, 8, + 10789, 5759, 225, 7711, 40, + 10789, 5759, 225, 9967, 224, + 10789, 5759, 230, + 10789, 5759, 231, 9967, 230, + 10789, 5759, 236, + 10789, 5759, 237, 4358, + 10789, 5759, 237, 5898, + 10789, 5759, 242, + 10789, 5759, 243, 7711, 40, + 10789, 5759, 243, 7711, 736, + 10789, 5759, 243, 7711, 750, + 10789, 5759, 243, 7711, 1206, + 10789, 5759, 243, 7711, 1632, + 10789, 5759, 243, 7711, 2110, + 10789, 5759, 243, 7711, 2518, + 10789, 5759, 243, 7711, 3280, + 10789, 5759, 243, 7711, 4094, + 10789, 5759, 250, + 10789, 5759, 256, + 10789, 5759, 262, + 10789, 5759, 270, + 10789, 5759, 271, 7711, 4241, 5898, + 10789, 5759, 272, + 10789, 5759, 273, 7711, 5880, + 10789, 5759, 273, 9732, + 10789, 5759, 273, 9967, 272, + 10789, 5759, 273, 10377, 272, + 10789, 5759, 274, + 10789, 5759, 280, + 10789, 5759, 306, + 10789, 5759, 307, 7711, 0, + 10789, 5759, 307, 7711, 40, + 10789, 5759, 307, 7711, 64, + 10789, 5759, 307, 7711, 65, 5445, 1682, + 10789, 5759, 307, 7711, 106, + 10789, 5759, 307, 7711, 216, + 10789, 5759, 307, 7711, 224, + 10789, 5759, 307, 7711, 230, + 10789, 5759, 307, 7711, 272, + 10789, 5759, 307, 7711, 314, + 10789, 5759, 307, 7711, 340, + 10789, 5759, 307, 7711, 354, + 10789, 5759, 307, 7711, 368, + 10789, 5759, 307, 7711, 369, 5445, 152, + 10789, 5759, 307, 7711, 369, 5445, 224, + 10789, 5759, 307, 7711, 369, 5445, 560, + 10789, 5759, 307, 7711, 374, + 10789, 5759, 307, 7711, 375, 5445, 7284, + 10789, 5759, 307, 7711, 396, + 10789, 5759, 307, 7711, 476, + 10789, 5759, 307, 7711, 520, + 10789, 5759, 307, 7711, 524, + 10789, 5759, 307, 7711, 580, + 10789, 5759, 307, 7711, 588, + 10789, 5759, 307, 7711, 676, + 10789, 5759, 307, 7711, 750, + 10789, 5759, 307, 7711, 760, + 10789, 5759, 307, 7711, 1212, + 10789, 5759, 307, 7711, 1220, + 10789, 5759, 307, 7711, 1221, 5445, 5663, 5445, 0, + 10789, 5759, 307, 7711, 1482, + 10789, 5759, 307, 7711, 1584, + 10789, 5759, 307, 7711, 1624, + 10789, 5759, 307, 7711, 2110, + 10789, 5759, 307, 7711, 2494, + 10789, 5759, 307, 7711, 2516, + 10789, 5759, 307, 7711, 2518, + 10789, 5759, 307, 7711, 2524, + 10789, 5759, 307, 7711, 2530, + 10789, 5759, 307, 7711, 2654, + 10789, 5759, 307, 7711, 2836, + 10789, 5759, 307, 7711, 3280, + 10789, 5759, 307, 7711, 4166, + 10789, 5759, 307, 7711, 4241, 5898, + 10789, 5759, 307, 7711, 4334, + 10789, 5759, 307, 7711, 4339, 5445, 2494, + 10789, 5759, 307, 7711, 4339, 9967, 4338, + 10789, 5759, 307, 7711, 4366, + 10789, 5759, 307, 7711, 5692, + 10789, 5759, 307, 7711, 6049, 7711, 462, + 10789, 5759, 307, 7711, 6464, + 10789, 5759, 307, 7711, 6746, + 10789, 5759, 307, 7711, 7648, + 10789, 5759, 314, + 10789, 5759, 315, 7711, 40, + 10789, 5759, 315, 7711, 588, + 10789, 5759, 315, 7711, 750, + 10789, 5759, 326, + 10789, 5759, 327, 5387, 243, 7711, 3281, 327, 5387, 243, 7711, 3280, + 10789, 5759, 332, + 10789, 5759, 340, + 10789, 5759, 354, + 10789, 5759, 355, 7711, 750, + 10789, 5759, 364, + 10789, 5759, 365, 4358, + 10789, 5759, 365, 7711, 5880, + 10789, 5759, 368, + 10789, 5759, 374, + 10789, 5759, 384, + 10789, 5759, 385, 5387, 384, + 10789, 5759, 392, + 10789, 5759, 396, + 10789, 5759, 397, 7711, 0, + 10789, 5759, 397, 7711, 588, + 10789, 5759, 397, 9684, + 10789, 5759, 404, + 10789, 5759, 405, 7711, 8, + 10789, 5759, 416, + 10789, 5759, 462, + 10789, 5759, 476, + 10789, 5759, 477, 7711, 0, + 10789, 5759, 477, 7711, 8, + 10789, 5759, 477, 7711, 16, + 10789, 5759, 477, 7711, 40, + 10789, 5759, 477, 7711, 60, + 10789, 5759, 477, 7711, 106, + 10789, 5759, 477, 7711, 112, + 10789, 5759, 477, 7711, 256, + 10789, 5759, 477, 7711, 580, + 10789, 5759, 477, 9967, 476, + 10789, 5759, 510, + 10789, 5759, 514, + 10789, 5759, 520, + 10789, 5759, 524, + 10789, 5759, 532, + 10789, 5759, 533, 4358, + 10789, 5759, 546, + 10789, 5759, 547, 5387, 546, + 10789, 5759, 556, + 10789, 5759, 557, 4358, + 10789, 5759, 557, 7711, 242, + 10789, 5759, 557, 7711, 374, + 10789, 5759, 557, 9898, + 10789, 5759, 560, + 10789, 5759, 561, 4358, + 10789, 5759, 564, + 10789, 5759, 565, 5898, + 10789, 5759, 576, + 10789, 5759, 580, + 10789, 5759, 584, + 10789, 5759, 588, + 10789, 5759, 589, 4358, + 10789, 5759, 589, 7711, 41, 5445, 41, 5445, 40, + 10789, 5759, 589, 7711, 41, 5445, 41, 5445, 41, 4358, + 10789, 5759, 589, 7711, 374, + 10789, 5759, 589, 7711, 750, + 10789, 5759, 589, 8374, + 10789, 5759, 589, 9684, + 10789, 5759, 589, 9685, 7711, 750, + 10789, 5759, 594, + 10789, 5759, 595, 7711, 40, + 10789, 5759, 595, 7711, 369, 5445, 138, + 10789, 5759, 595, 7711, 5662, + 10789, 5759, 595, 7711, 7074, + 10789, 5759, 596, + 10789, 5759, 597, 4358, + 10789, 5759, 602, + 10789, 5759, 603, 9684, + 10789, 5759, 603, 9967, 602, + 10789, 5759, 670, + 10789, 5759, 671, 5898, + 10789, 5759, 671, 9733, 7711, 1696, + 10789, 5759, 676, + 10789, 5759, 677, 5387, 676, + 10789, 5759, 680, + 10789, 5759, 702, + 10789, 5759, 703, 7711, 369, 5445, 176, + 10789, 5759, 703, 7711, 4241, 5898, + 10789, 5759, 703, 7711, 5662, + 10789, 5759, 703, 7711, 5880, + 10789, 5759, 703, 7711, 6464, + 10789, 5759, 736, + 10789, 5759, 737, 4703, 5898, + 10789, 5759, 737, 5387, 737, 5387, 736, + 10789, 5759, 737, 5387, 737, 5387, 737, 9967, 737, 5387, 737, 5387, 736, + 10789, 5759, 737, 5387, 737, 6013, 5387, 6013, 6013, 5387, 6013, 2194, + 10789, 5759, 737, 6313, 5898, + 10789, 5759, 750, + 10789, 5759, 754, + 10789, 5759, 755, 5387, 754, + 10789, 5759, 760, + 10789, 5759, 832, + 10789, 5759, 958, + 10789, 5759, 959, 8361, 7711, 1, 5445, 4928, + 10789, 5759, 959, 8361, 7711, 106, + 10789, 5759, 959, 8361, 7711, 216, + 10789, 5759, 959, 8361, 7711, 217, 5445, 4928, + 10789, 5759, 959, 8361, 7711, 224, + 10789, 5759, 959, 8361, 7711, 236, + 10789, 5759, 959, 8361, 7711, 280, + 10789, 5759, 959, 8361, 7711, 281, 5445, 354, + 10789, 5759, 959, 8361, 7711, 332, + 10789, 5759, 959, 8361, 7711, 354, + 10789, 5759, 959, 8361, 7711, 355, 5445, 7138, + 10789, 5759, 959, 8361, 7711, 396, + 10789, 5759, 959, 8361, 7711, 532, + 10789, 5759, 959, 8361, 7711, 581, 5445, 4334, + 10789, 5759, 959, 8361, 7711, 1304, + 10789, 5759, 959, 8361, 7711, 1584, + 10789, 5759, 959, 8361, 7711, 1822, + 10789, 5759, 959, 8361, 7711, 2195, 5445, 2194, + 10789, 5759, 959, 8361, 7711, 2836, + 10789, 5759, 959, 8361, 7711, 3256, + 10789, 5759, 959, 8361, 7711, 4334, + 10789, 5759, 959, 8361, 7711, 5880, + 10789, 5759, 959, 8361, 7711, 6464, + 10789, 5759, 962, + 10789, 5759, 966, + 10789, 5759, 1006, + 10789, 5759, 1010, + 10789, 5759, 1011, 7711, 2518, + 10789, 5759, 1012, + 10789, 5759, 1013, 8339, 41, 4359, 4094, + 10789, 5759, 1050, + 10789, 5759, 1051, 7711, 4166, + 10789, 5759, 1052, + 10789, 5759, 1054, + 10789, 5759, 1060, + 10789, 5759, 1202, + 10789, 5759, 1203, 5387, 1202, + 10789, 5759, 1203, 7711, 1, 5445, 139, 5445, 236, + 10789, 5759, 1203, 7711, 1, 5445, 236, + 10789, 5759, 1203, 7711, 1, 5445, 1482, + 10789, 5759, 1203, 7711, 40, + 10789, 5759, 1203, 7711, 80, + 10789, 5759, 1203, 7711, 138, + 10789, 5759, 1203, 7711, 144, + 10789, 5759, 1203, 7711, 172, + 10789, 5759, 1203, 7711, 173, 5445, 332, + 10789, 5759, 1203, 7711, 176, + 10789, 5759, 1203, 7711, 177, 7711, 4241, 5898, + 10789, 5759, 1203, 7711, 224, + 10789, 5759, 1203, 7711, 237, 5445, 355, 5445, 4166, + 10789, 5759, 1203, 7711, 243, 5445, 340, + 10789, 5759, 1203, 7711, 332, + 10789, 5759, 1203, 7711, 369, 5445, 176, + 10789, 5759, 1203, 7711, 374, + 10789, 5759, 1203, 7711, 462, + 10789, 5759, 1203, 7711, 588, + 10789, 5759, 1203, 7711, 589, 5445, 152, + 10789, 5759, 1203, 7711, 703, 5899, 5445, 2636, + 10789, 5759, 1203, 7711, 736, + 10789, 5759, 1203, 7711, 750, + 10789, 5759, 1203, 7711, 761, 5445, 510, + 10789, 5759, 1203, 7711, 832, + 10789, 5759, 1203, 7711, 833, 5445, 510, + 10789, 5759, 1203, 7711, 1011, 7711, 2518, + 10789, 5759, 1203, 7711, 1050, + 10789, 5759, 1203, 7711, 1220, + 10789, 5759, 1203, 7711, 1272, + 10789, 5759, 1203, 7711, 1273, 5445, 0, + 10789, 5759, 1203, 7711, 1344, + 10789, 5759, 1203, 7711, 1345, 5445, 332, + 10789, 5759, 1203, 7711, 1483, 4358, + 10789, 5759, 1203, 7711, 1499, 5445, 251, 5445, 736, + 10789, 5759, 1203, 7711, 1584, + 10789, 5759, 1203, 7711, 1624, + 10789, 5759, 1203, 7711, 1625, 5445, 1736, + 10789, 5759, 1203, 7711, 1683, 5445, 80, + 10789, 5759, 1203, 7711, 2110, + 10789, 5759, 1203, 7711, 2111, 5387, 2110, + 10789, 5759, 1203, 7711, 2488, + 10789, 5759, 1203, 7711, 2494, + 10789, 5759, 1203, 7711, 2518, + 10789, 5759, 1203, 7711, 2519, 5445, 2766, + 10789, 5759, 1203, 7711, 2584, + 10789, 5759, 1203, 7711, 3281, 5445, 1212, + 10789, 5759, 1203, 7711, 4241, 5898, + 10789, 5759, 1203, 7711, 4335, 5445, 546, + 10789, 5759, 1203, 7711, 4544, + 10789, 5759, 1203, 7711, 5692, + 10789, 5759, 1203, 7711, 5880, + 10789, 5759, 1203, 7711, 8338, + 10789, 5759, 1206, + 10789, 5759, 1207, 5387, 1207, 1221, 5387, 1220, + 10789, 5759, 1212, + 10789, 5759, 1213, 1207, 5387, 1207, 1221, 5387, 1220, + 10789, 5759, 1214, + 10789, 5759, 1216, + 10789, 5759, 1220, + 10789, 5759, 1272, + 10789, 5759, 1273, 5387, 1272, + 10789, 5759, 1273, 9967, 1272, + 10789, 5759, 1302, + 10789, 5759, 1303, 4358, + 10789, 5759, 1303, 7711, 1584, + 10789, 5759, 1303, 7711, 1585, 7711, 1483, 4358, + 10789, 5759, 1303, 7711, 2110, + 10789, 5759, 1303, 7711, 2489, 5445, 6012, + 10789, 5759, 1304, + 10789, 5759, 1305, 5387, 1305, 7122, + 10789, 5759, 1305, 7711, 1, 5445, 1696, + 10789, 5759, 1305, 7711, 1696, + 10789, 5759, 1308, + 10789, 5759, 1310, + 10789, 5759, 1311, 7711, 2518, + 10789, 5759, 1316, + 10789, 5759, 1344, + 10789, 5759, 1482, + 10789, 5759, 1483, 514, + 10789, 5759, 1483, 1006, + 10789, 5759, 1483, 4358, + 10789, 5759, 1483, 5387, 1483, 5703, 5387, 5703, 589, 5387, 588, + 10789, 5759, 1484, + 10789, 5759, 1498, + 10789, 5759, 1572, + 10789, 5759, 1573, 9967, 1572, + 10789, 5759, 1576, + 10789, 5759, 1584, + 10789, 5759, 1585, 7711, 1483, 4358, + 10789, 5759, 1586, + 10789, 5759, 1587, 7711, 750, + 10789, 5759, 1587, 9967, 1586, + 10789, 5759, 1624, + 10789, 5759, 1632, + 10789, 5759, 1682, + 10789, 5759, 1684, + 10789, 5759, 1685, 9817, 4212, + 10789, 5759, 1686, + 10789, 5759, 1688, + 10789, 5759, 1689, 4358, + 10789, 5759, 1690, + 10789, 5759, 1696, + 10789, 5759, 1697, 10377, 1696, + 10789, 5759, 1736, + 10789, 5759, 1737, 7711, 1736, + 10789, 5759, 1738, + 10789, 5759, 1739, 7711, 1696, + 10789, 5759, 1739, 7711, 1697, 5445, 520, + 10789, 5759, 1786, + 10789, 5759, 1812, + 10789, 5759, 1813, 5898, + 10789, 5759, 1813, 7711, 76, + 10789, 5759, 1813, 7711, 243, 7711, 750, + 10789, 5759, 1813, 7711, 272, + 10789, 5759, 1813, 7711, 314, + 10789, 5759, 1813, 7711, 333, 5445, 736, + 10789, 5759, 1813, 7711, 369, 5445, 176, + 10789, 5759, 1813, 7711, 396, + 10789, 5759, 1813, 7711, 416, + 10789, 5759, 1813, 7711, 533, 5445, 736, + 10789, 5759, 1813, 7711, 750, + 10789, 5759, 1813, 7711, 4166, + 10789, 5759, 1813, 7711, 4167, 5898, + 10789, 5759, 1813, 7711, 4241, 5898, + 10789, 5759, 1813, 7711, 4704, + 10789, 5759, 1813, 7711, 4706, + 10789, 5759, 1813, 7711, 4707, 5445, 736, + 10789, 5759, 1813, 7711, 5761, 5445, 112, + 10789, 5759, 1813, 7711, 6012, + 10789, 5759, 1813, 7711, 7074, + 10789, 5759, 1813, 9684, + 10789, 5759, 1813, 9732, + 10789, 5759, 1813, 9967, 1812, + 10789, 5759, 1813, 10377, 1812, + 10789, 5759, 1814, + 10789, 5759, 1818, + 10789, 5759, 1820, + 10789, 5759, 1822, + 10789, 5759, 1823, 5387, 1822, + 10789, 5759, 1823, 5387, 1823, 1221, 5387, 1220, + 10789, 5759, 1852, + 10789, 5759, 1856, + 10789, 5759, 1864, + 10789, 5759, 1896, + 10789, 5759, 1922, + 10789, 5759, 1950, + 10789, 5759, 1951, 4358, + 10789, 5759, 1980, + 10789, 5759, 1988, + 10789, 5759, 1989, 9520, + 10789, 5759, 2044, + 10789, 5759, 2054, + 10789, 5759, 2055, 7711, 1221, 5445, 4241, 5898, + 10789, 5759, 2055, 7711, 4241, 5898, + 10789, 5759, 2110, + 10789, 5759, 2111, 5387, 2110, + 10789, 5759, 2111, 5898, + 10789, 5759, 2111, 7077, 7711, 1220, + 10789, 5759, 2111, 7077, 7711, 2488, + 10789, 5759, 2111, 7077, 7711, 2489, 5387, 2111, 7077, 7711, 2488, + 10789, 5759, 2111, 7077, 7711, 2836, + 10789, 5759, 2111, 7077, 7711, 4928, + 10789, 5759, 2111, 9967, 2110, + 10789, 5759, 2111, 9967, 2111, 7077, 5387, 7076, + 10789, 5759, 2190, + 10789, 5759, 2192, + 10789, 5759, 2194, + 10789, 5759, 2380, + 10789, 5759, 2486, + 10789, 5759, 2487, 4358, + 10789, 5759, 2487, 5387, 2486, + 10789, 5759, 2487, 7711, 0, + 10789, 5759, 2487, 7711, 152, + 10789, 5759, 2487, 7711, 236, + 10789, 5759, 2487, 7711, 374, + 10789, 5759, 2487, 7711, 580, + 10789, 5759, 2487, 7711, 584, + 10789, 5759, 2487, 7711, 594, + 10789, 5759, 2487, 7711, 602, + 10789, 5759, 2487, 7711, 1050, + 10789, 5759, 2487, 7711, 1584, + 10789, 5759, 2487, 7711, 1696, + 10789, 5759, 2487, 7711, 1822, + 10789, 5759, 2487, 7711, 2110, + 10789, 5759, 2487, 7711, 2488, + 10789, 5759, 2487, 7711, 2636, + 10789, 5759, 2487, 7711, 2836, + 10789, 5759, 2487, 7711, 5692, + 10789, 5759, 2487, 9520, + 10789, 5759, 2488, + 10789, 5759, 2489, 7075, 7711, 3280, + 10789, 5759, 2494, + 10789, 5759, 2516, + 10789, 5759, 2518, + 10789, 5759, 2519, 250, + 10789, 5759, 2519, 5387, 2519, 1207, 5387, 1207, 1221, 5387, 1220, + 10789, 5759, 2519, 5387, 2519, 2637, 5387, 2637, 1221, 5387, 1220, + 10789, 5759, 2524, + 10789, 5759, 2525, 5387, 10267, 2524, + 10789, 5759, 2530, + 10789, 5759, 2582, + 10789, 5759, 2584, + 10789, 5759, 2592, + 10789, 5759, 2636, + 10789, 5759, 2637, 5387, 2637, 405, 5387, 405, 4095, 5387, 4094, + 10789, 5759, 2637, 9732, + 10789, 5759, 2638, + 10789, 5759, 2639, 7711, 106, + 10789, 5759, 2639, 7711, 588, + 10789, 5759, 2639, 7711, 1304, + 10789, 5759, 2639, 7711, 2518, + 10789, 5759, 2639, 7711, 2524, + 10789, 5759, 2639, 7711, 6012, + 10789, 5759, 2654, + 10789, 5759, 2694, + 10789, 5759, 2698, + 10789, 5759, 2699, 5387, 2698, + 10789, 5759, 2699, 5387, 2699, 1207, 5387, 1207, 1221, 5387, 1220, + 10789, 5759, 2699, 7711, 5880, + 10789, 5759, 2758, + 10789, 5759, 2760, + 10789, 5759, 2766, + 10789, 5759, 2767, 5387, 2767, 671, 5387, 670, + 10789, 5759, 2822, + 10789, 5759, 2823, 7711, 1, 5445, 236, + 10789, 5759, 2823, 7711, 1, 5445, 392, + 10789, 5759, 2823, 7711, 76, + 10789, 5759, 2823, 7711, 236, + 10789, 5759, 2823, 7711, 580, + 10789, 5759, 2823, 7711, 581, 5445, 106, + 10789, 5759, 2823, 7711, 581, 5445, 736, + 10789, 5759, 2823, 7711, 2110, + 10789, 5759, 2824, + 10789, 5759, 2828, + 10789, 5759, 2832, + 10789, 5759, 2833, 7711, 0, + 10789, 5759, 2833, 7711, 41, 5445, 1304, + 10789, 5759, 2833, 7711, 216, + 10789, 5759, 2833, 7711, 230, + 10789, 5759, 2833, 7711, 236, + 10789, 5759, 2833, 7711, 272, + 10789, 5759, 2833, 7711, 314, + 10789, 5759, 2833, 7711, 462, + 10789, 5759, 2833, 7711, 576, + 10789, 5759, 2833, 7711, 588, + 10789, 5759, 2833, 7711, 760, + 10789, 5759, 2833, 7711, 1060, + 10789, 5759, 2833, 7711, 1212, + 10789, 5759, 2833, 7711, 1220, + 10789, 5759, 2833, 7711, 1482, + 10789, 5759, 2833, 7711, 1498, + 10789, 5759, 2833, 7711, 1822, + 10789, 5759, 2833, 7711, 1922, + 10789, 5759, 2833, 7711, 2518, + 10789, 5759, 2833, 7711, 4241, 5898, + 10789, 5759, 2833, 7711, 5756, + 10789, 5759, 2833, 7711, 7774, + 10789, 5759, 2833, 7711, 7954, + 10789, 5759, 2836, + 10789, 5759, 2837, 7711, 0, + 10789, 5759, 2837, 7711, 326, + 10789, 5759, 2837, 7711, 1696, + 10789, 5759, 2837, 7711, 5880, + 10789, 5759, 2840, + 10789, 5759, 2841, 7711, 8338, + 10789, 5759, 2842, + 10789, 5759, 3122, + 10789, 5759, 3136, + 10789, 5759, 3158, + 10789, 5759, 3160, + 10789, 5759, 3161, 4703, 5898, + 10789, 5759, 3164, + 10789, 5759, 3188, + 10789, 5759, 3189, 7711, 0, + 10789, 5759, 3190, + 10789, 5759, 3242, + 10789, 5759, 3256, + 10789, 5759, 3257, 7711, 2518, + 10789, 5759, 3266, + 10789, 5759, 3270, + 10789, 5759, 3271, 7711, 1696, + 10789, 5759, 3280, + 10789, 5759, 3698, + 10789, 5759, 3820, + 10789, 5759, 4088, + 10789, 5759, 4094, + 10789, 5759, 4122, + 10789, 5759, 4124, + 10789, 5759, 4125, 4358, + 10789, 5759, 4125, 4359, 4358, + 10789, 5759, 4126, + 10789, 5759, 4132, + 10789, 5759, 4154, + 10789, 5759, 4156, + 10789, 5759, 4164, + 10789, 5759, 4166, + 10789, 5759, 4174, + 10789, 5759, 4175, 7711, 0, + 10789, 5759, 4175, 7711, 1, 5445, 1736, + 10789, 5759, 4175, 7711, 1, 5445, 1737, 7711, 1736, + 10789, 5759, 4175, 7711, 80, + 10789, 5759, 4175, 7711, 236, + 10789, 5759, 4175, 7711, 237, 4358, + 10789, 5759, 4175, 7711, 332, + 10789, 5759, 4175, 7711, 340, + 10789, 5759, 4175, 7711, 354, + 10789, 5759, 4175, 7711, 580, + 10789, 5759, 4175, 7711, 588, + 10789, 5759, 4175, 7711, 750, + 10789, 5759, 4175, 7711, 1483, 4358, + 10789, 5759, 4175, 7711, 1682, + 10789, 5759, 4175, 7711, 1737, 7711, 1736, + 10789, 5759, 4175, 7711, 4125, 4358, + 10789, 5759, 4175, 7711, 4125, 4359, 4358, + 10789, 5759, 4175, 7711, 8338, + 10789, 5759, 4175, 7711, 8339, 9732, + 10789, 5759, 4234, + 10789, 5759, 4235, 9967, 4234, + 10789, 5759, 4240, + 10789, 5759, 4241, 5387, 4240, + 10789, 5759, 4241, 5898, + 10789, 5759, 4241, 9967, 4240, + 10789, 5759, 4242, + 10789, 5759, 4334, + 10789, 5759, 4335, 4358, + 10789, 5759, 4336, + 10789, 5759, 4337, 7711, 1, 5445, 1482, + 10789, 5759, 4337, 7711, 355, 5445, 1482, + 10789, 5759, 4337, 7711, 462, + 10789, 5759, 4337, 7711, 1482, + 10789, 5759, 4337, 7711, 4241, 5898, + 10789, 5759, 4338, + 10789, 5759, 4339, 5898, + 10789, 5759, 4339, 7711, 750, + 10789, 5759, 4339, 7711, 5880, + 10789, 5759, 4339, 9967, 4338, + 10789, 5759, 4366, + 10789, 5759, 4544, + 10789, 5759, 4545, 7711, 80, + 10789, 5759, 4545, 7711, 588, + 10789, 5759, 4545, 7711, 1344, + 10789, 5759, 4545, 7711, 4884, + 10789, 5759, 4545, 7711, 8338, + 10789, 5759, 4546, + 10789, 5759, 4596, + 10789, 5759, 4597, 5387, 4597, 832, + 10789, 5759, 4597, 5387, 4597, 9732, + 10789, 5759, 4606, + 10789, 5759, 4704, + 10789, 5759, 4706, + 10789, 5759, 4708, + 10789, 5759, 4710, + 10789, 5759, 4711, 5387, 4710, + 10789, 5759, 4714, + 10789, 5759, 4716, + 10789, 5759, 4764, + 10789, 5759, 4884, + 10789, 5759, 4928, + 10789, 5759, 5030, + 10789, 5759, 5031, 5387, 5030, + 10789, 5759, 5031, 5387, 5031, 7711, 1, 5445, 392, + 10789, 5759, 5031, 7711, 0, + 10789, 5759, 5031, 7711, 670, + 10789, 5759, 5031, 7711, 1696, + 10789, 5759, 5031, 9967, 5030, + 10789, 5759, 5042, + 10789, 5759, 5043, 7711, 2525, 5898, + 10789, 5759, 5043, 10266, + 10789, 5759, 5043, 10377, 5042, + 10789, 5759, 5044, + 10789, 5759, 5278, + 10789, 5759, 5662, + 10789, 5759, 5663, 7711, 0, + 10789, 5759, 5663, 7711, 40, + 10789, 5759, 5663, 7711, 41, 5445, 0, + 10789, 5759, 5663, 7711, 396, + 10789, 5759, 5663, 7711, 750, + 10789, 5759, 5663, 7711, 2766, + 10789, 5759, 5663, 7711, 4338, + 10789, 5759, 5663, 7711, 5720, + 10789, 5759, 5664, + 10789, 5759, 5682, + 10789, 5759, 5692, + 10789, 5759, 5693, 7711, 0, + 10789, 5759, 5693, 7711, 272, + 10789, 5759, 5696, + 10789, 5759, 5697, 7711, 0, + 10789, 5759, 5697, 7711, 754, + 10789, 5759, 5697, 7711, 1012, + 10789, 5759, 5697, 7711, 1220, + 10789, 5759, 5697, 7711, 1482, + 10789, 5759, 5697, 7711, 1483, 4358, + 10789, 5759, 5697, 7711, 1820, + 10789, 5759, 5697, 7711, 1950, + 10789, 5759, 5697, 7711, 2488, + 10789, 5759, 5697, 7711, 6534, + 10789, 5759, 5697, 7711, 8374, + 10789, 5759, 5702, + 10789, 5759, 5703, 5387, 5703, 833, 5387, 832, + 10789, 5759, 5703, 5898, + 10789, 5759, 5720, + 10789, 5759, 5756, + 10789, 5759, 5757, 5387, 5757, 5720, + 10789, 5759, 5760, + 10789, 5759, 5840, + 10789, 5759, 5852, + 10789, 5759, 5880, + 10789, 5759, 6012, + 10789, 5759, 6046, + 10789, 5759, 6048, + 10789, 5759, 6049, 7711, 462, + 10789, 5759, 6049, 7711, 8338, + 10789, 5759, 6054, + 10789, 5759, 6062, + 10789, 5759, 6064, + 10789, 5759, 6256, + 10789, 5759, 6318, + 10789, 5759, 6396, + 10789, 5759, 6412, + 10789, 5759, 6430, + 10789, 5759, 6436, + 10789, 5759, 6464, + 10789, 5759, 6466, + 10789, 5759, 6534, + 10789, 5759, 6535, 5387, 6534, + 10789, 5759, 6648, + 10789, 5759, 6650, + 10789, 5759, 6708, + 10789, 5759, 6746, + 10789, 5759, 6818, + 10789, 5759, 6854, + 10789, 5759, 6860, + 10789, 5759, 6884, + 10789, 5759, 7040, + 10789, 5759, 7054, + 10789, 5759, 7074, + 10789, 5759, 7075, 7711, 0, + 10789, 5759, 7075, 7711, 1, 5445, 139, 5445, 236, + 10789, 5759, 7075, 7711, 1, 5445, 1220, + 10789, 5759, 7075, 7711, 1, 5445, 1736, + 10789, 5759, 7075, 7711, 40, + 10789, 5759, 7075, 7711, 41, 5445, 0, + 10789, 5759, 7075, 7711, 41, 5445, 41, 5445, 40, + 10789, 5759, 7075, 7711, 76, + 10789, 5759, 7075, 7711, 80, + 10789, 5759, 7075, 7711, 106, + 10789, 5759, 7075, 7711, 176, + 10789, 5759, 7075, 7711, 216, + 10789, 5759, 7075, 7711, 236, + 10789, 5759, 7075, 7711, 243, 7711, 2110, + 10789, 5759, 7075, 7711, 272, + 10789, 5759, 7075, 7711, 273, 5445, 236, + 10789, 5759, 7075, 7711, 273, 5445, 354, + 10789, 5759, 7075, 7711, 314, + 10789, 5759, 7075, 7711, 354, + 10789, 5759, 7075, 7711, 368, + 10789, 5759, 7075, 7711, 369, 5445, 176, + 10789, 5759, 7075, 7711, 396, + 10789, 5759, 7075, 7711, 561, 5445, 1, 5445, 547, 5445, 392, + 10789, 5759, 7075, 7711, 581, 5445, 736, + 10789, 5759, 7075, 7711, 588, + 10789, 5759, 7075, 7711, 737, 6313, 5898, + 10789, 5759, 7075, 7711, 750, + 10789, 5759, 7075, 7711, 966, + 10789, 5759, 7075, 7711, 1220, + 10789, 5759, 7075, 7711, 1304, + 10789, 5759, 7075, 7711, 1305, 5445, 1304, + 10789, 5759, 7075, 7711, 1344, + 10789, 5759, 7075, 7711, 1483, 4358, + 10789, 5759, 7075, 7711, 1632, + 10789, 5759, 7075, 7711, 1682, + 10789, 5759, 7075, 7711, 1688, + 10789, 5759, 7075, 7711, 1689, 5445, 243, 5445, 0, + 10789, 5759, 7075, 7711, 1820, + 10789, 5759, 7075, 7711, 2519, 5445, 2584, + 10789, 5759, 7075, 7711, 2584, + 10789, 5759, 7075, 7711, 2638, + 10789, 5759, 7075, 7711, 2836, + 10789, 5759, 7075, 7711, 4884, + 10789, 5759, 7075, 7711, 5030, + 10789, 5759, 7075, 7711, 5720, + 10789, 5759, 7075, 7711, 5721, 5445, 5720, + 10789, 5759, 7075, 7711, 5880, + 10789, 5759, 7075, 7711, 7074, + 10789, 5759, 7075, 7711, 7545, 5445, 4339, 5445, 6746, + 10789, 5759, 7075, 7711, 7545, 5445, 4339, 5898, + 10789, 5759, 7075, 9732, + 10789, 5759, 7076, + 10789, 5759, 7077, 4358, + 10789, 5759, 7077, 4359, 5387, 7077, 4359, 2518, + 10789, 5759, 7077, 7711, 2518, + 10789, 5759, 7077, 7711, 2519, 5445, 2584, + 10789, 5759, 7122, + 10789, 5759, 7123, 5387, 7122, + 10789, 5759, 7123, 9684, + 10789, 5759, 7123, 10377, 7122, + 10789, 5759, 7138, + 10789, 5759, 7196, + 10789, 5759, 7197, 4358, + 10789, 5759, 7197, 7711, 0, + 10789, 5759, 7197, 7711, 1, 5445, 144, + 10789, 5759, 7197, 7711, 144, + 10789, 5759, 7204, + 10789, 5759, 7248, + 10789, 5759, 7284, + 10789, 5759, 7285, 703, 7711, 106, + 10789, 5759, 7285, 703, 7711, 332, + 10789, 5759, 7285, 703, 7711, 396, + 10789, 5759, 7285, 703, 7711, 580, + 10789, 5759, 7285, 703, 7711, 1052, + 10789, 5759, 7285, 703, 7711, 1304, + 10789, 5759, 7285, 703, 7711, 1483, 4358, + 10789, 5759, 7285, 703, 7711, 4706, + 10789, 5759, 7285, 703, 7711, 7572, + 10789, 5759, 7285, 703, 7711, 7954, + 10789, 5759, 7285, 8361, 7711, 106, + 10789, 5759, 7285, 8361, 7711, 107, 40, + 10789, 5759, 7364, + 10789, 5759, 7374, + 10789, 5759, 7375, 7711, 588, + 10789, 5759, 7375, 7711, 670, + 10789, 5759, 7375, 7711, 1586, + 10789, 5759, 7375, 10377, 7374, + 10789, 5759, 7510, + 10789, 5759, 7516, + 10789, 5759, 7528, + 10789, 5759, 7534, + 10789, 5759, 7544, + 10789, 5759, 7572, + 10789, 5759, 7648, + 10789, 5759, 7762, + 10789, 5759, 7774, + 10789, 5759, 7775, 7711, 40, + 10789, 5759, 7778, + 10789, 5759, 7890, + 10789, 5759, 7954, + 10789, 5759, 7966, + 10789, 5759, 8242, + 10789, 5759, 8276, + 10789, 5759, 8338, + 10789, 5759, 8339, 5387, 8339, 7075, 7711, 41, 5387, 7075, 7711, 40, + 10789, 5759, 8339, 7075, 7711, 41, 5387, 7075, 7711, 40, + 10789, 5759, 8360, + 10789, 5759, 8361, 5387, 8360, + 10789, 5759, 8374, + 10789, 5759, 8376, + 10789, 5759, 8382, + 10789, 5759, 8408, + 10789, 5759, 8490, + 10789, 5759, 8494, + 10789, 5759, 8512, + 10789, 5759, 8513, 7711, 80, + 10789, 5759, 8513, 7711, 369, 5445, 4241, 5898, + 10789, 5759, 8513, 7711, 396, + 10789, 5759, 8513, 7711, 581, 5445, 736, + 10789, 5759, 8513, 7711, 736, + 10789, 5759, 8513, 7711, 737, 5445, 736, + 10789, 5759, 8513, 7711, 1304, + 10789, 5759, 8513, 7711, 2110, + 10789, 5759, 8513, 7711, 2518, + 10789, 5759, 8513, 7711, 2519, 5445, 1, 80, + 10789, 5759, 8513, 7711, 2519, 5445, 736, + 10789, 5759, 8513, 7711, 2519, 5445, 737, 5445, 736, + 10789, 5759, 8513, 7711, 2836, + 10789, 5759, 8664, + 10789, 5759, 8702, + 10789, 5759, 8706, + 10789, 5759, 8710, + 10789, 5759, 8764, + 10789, 5759, 8902, + 10789, 5759, 9306, + 10789, 5759, 9307, 7711, 1696, + 10789, 5759, 10518, + 10789, 9515, 5759, 2167, 9897, 2171, 7574, + 10789, 9515, 5759, 2167, 9897, 2171, 9614, + 10789, 9515, 5759, 2171, 3704, + 10789, 9515, 5759, 2171, 3822, + 10789, 9515, 5759, 2171, 6756, + 10789, 9515, 5759, 2171, 6830, + 10789, 9515, 5759, 2171, 6832, + 10789, 9515, 5759, 2171, 7520, + 10789, 9515, 5759, 2171, 7687, 4094, + 10789, 9515, 5759, 2171, 7687, 9817, 4213, 0, + 10789, 9515, 5759, 2171, 8159, 736, + 10789, 9515, 5759, 2171, 9615, 736, + 10789, 9515, 5759, 2541, 40, + 10789, 9515, 5759, 2541, 736, + 10789, 9515, 5759, 2541, 737, 5898, + 10789, 9515, 5759, 2541, 4094, + 10789, 9515, 5759, 2541, 6830, + 10789, 9515, 5759, 2541, 7516, + 10789, 9515, 5759, 2541, 9817, 4213, 3282, + 10789, 9515, 5759, 2779, 736, + 10789, 9515, 5759, 2779, 737, 5898, + 10789, 9515, 5759, 2779, 3704, + 10789, 9515, 5759, 2779, 3822, + 10789, 9515, 5759, 2779, 6756, + 10789, 9515, 5759, 2779, 6830, + 10789, 9515, 5759, 2779, 6832, + 10789, 9515, 5759, 2779, 7516, + 10789, 9515, 5759, 2779, 7520, + 10789, 9515, 5759, 2779, 8819, 4094, + 10789, 9515, 5759, 2779, 8819, 9817, 4213, 0, + 10789, 9515, 5759, 4201, 40, + 10789, 9515, 5759, 4201, 736, + 10789, 9515, 5759, 4201, 737, 5898, + 10789, 9515, 5759, 4201, 3704, + 10789, 9515, 5759, 4201, 3705, 9817, 4212, + 10789, 9515, 5759, 4201, 3822, + 10789, 9515, 5759, 4201, 4094, + 10789, 9515, 5759, 4201, 6830, + 10789, 9515, 5759, 4201, 6832, + 10789, 9515, 5759, 4201, 7516, + 10789, 9515, 5759, 4201, 7520, + 10789, 9515, 5759, 4201, 8719, 4094, + 10789, 9515, 5759, 4215, 40, + 10789, 9515, 5759, 4215, 736, + 10789, 9515, 5759, 4215, 737, 5898, + 10789, 9515, 5759, 4215, 3704, + 10789, 9515, 5759, 4215, 3705, 9817, 4212, + 10789, 9515, 5759, 4215, 3822, + 10789, 9515, 5759, 4215, 4094, + 10789, 9515, 5759, 4215, 6830, + 10789, 9515, 5759, 4215, 6832, + 10789, 9515, 5759, 4215, 7516, + 10789, 9515, 5759, 4215, 7520, + 10789, 9515, 5759, 4215, 9817, 4213, 7106, + 10789, 9515, 5759, 4215, 9817, 4213, 7107, 0, + 10789, 9515, 5759, 4215, 9817, 4213, 7107, 2, + 10789, 9515, 5759, 4215, 9817, 4213, 8410, + 10789, 9515, 5759, 5191, 40, + 10789, 9515, 5759, 5191, 736, + 10789, 9515, 5759, 5191, 4094, + 10789, 9515, 5759, 5191, 6830, + 10789, 9515, 5759, 5191, 7516, + 10789, 9515, 5759, 5191, 9817, 4213, 8310, + 10789, 9515, 5759, 5191, 9817, 4213, 8311, 0, + 10789, 9515, 5759, 5191, 9817, 4213, 9354, + 10789, 9515, 5759, 5191, 9817, 4213, 9356, + 10789, 9515, 5759, 6723, 40, + 10789, 9515, 5759, 6723, 736, + 10789, 9515, 5759, 6723, 4094, + 10789, 9515, 5759, 6723, 6830, + 10789, 9515, 5759, 6723, 7516, + 10789, 9515, 5759, 6723, 9817, 4213, 6066, + 10789, 9515, 5759, 6723, 9817, 4213, 7776, + 10789, 9515, 5759, 7509, 40, + 10789, 9515, 5759, 7509, 736, + 10789, 9515, 5759, 7509, 4094, + 10789, 9515, 5759, 7509, 6830, + 10789, 9515, 5759, 7509, 7516, + 10789, 9515, 5759, 7509, 9817, 4213, 4607, 0, + 10789, 9515, 5759, 7509, 9817, 4213, 4607, 2, + 10789, 9515, 5759, 7509, 9817, 4213, 6990, + 10789, 9515, 5759, 7517, 7711, 1213, 5445, 1922, + 10789, 9515, 5759, 7517, 7711, 1213, 5445, 4094, + 10789, 9515, 5759, 7695, 736, + 10789, 9515, 5759, 7695, 737, 5898, + 10789, 9515, 5759, 7695, 3704, + 10789, 9515, 5759, 7695, 3822, + 10789, 9515, 5759, 7695, 3823, 9817, 4212, + 10789, 9515, 5759, 7695, 4094, + 10789, 9515, 5759, 7695, 6830, + 10789, 9515, 5759, 7695, 6832, + 10789, 9515, 5759, 7695, 7516, + 10789, 9515, 5759, 7695, 7517, 9817, 4212, + 10789, 9515, 5759, 7695, 7520, + 10789, 9515, 5759, 7695, 7521, 9817, 4212, + 10789, 9515, 5759, 7695, 9817, 4213, 6752, + 10789, 9515, 5759, 7695, 9817, 4213, 6754, + 10789, 9515, 5759, 11136, + 10789, 9515, 5759, 11138, + 10789, 12133, 5759, 2167, 9897, 6129, 9178, + 10789, 12133, 5759, 10001, 6610, + 10789, 12133, 5759, 10001, 10644, + 10789, 12133, 5759, 10677, 6610, + 10797, 8775, 7101, 601, 721, 11648, + 10797, 8775, 7101, 601, 721, 11649, 6121, 6104, + 10797, 8775, 7101, 601, 721, 11649, 6121, 8056, + 10797, 8775, 7101, 601, 721, 11649, 6121, 10642, + 10797, 8775, 7101, 4117, 721, 11648, + 10797, 8775, 7101, 4117, 721, 11649, 6121, 6104, + 10797, 8775, 7101, 4117, 721, 11649, 6121, 8056, + 10797, 8775, 7101, 4117, 721, 11649, 6121, 10642, + 10797, 8775, 7101, 10677, 721, 2725, 4848, + 10797, 8775, 7101, 10677, 721, 2725, 7442, + 10797, 8775, 7101, 10677, 721, 6104, + 10797, 8775, 7101, 10677, 721, 8005, 4848, + 10797, 8775, 7101, 10677, 721, 8005, 7442, + 10797, 8775, 7101, 10677, 6121, 8056, + 10797, 8775, 7101, 10677, 6121, 10642, + 10804, + 10817, 8548, + 10959, 2779, 8289, 6434, + 10959, 6434, + 10959, 6435, 569, 760, + 10959, 6435, 4221, 760, + 10959, 6435, 6121, 2697, 11096, + 10959, 6435, 6121, 2697, 11764, + 10959, 6435, 6121, 8077, 11096, + 10959, 6435, 6121, 8153, 8758, + 10959, 6435, 6121, 11649, 8758, + 10959, 6435, 11097, 429, 9811, 6434, + 10959, 6505, 6434, + 10959, 7821, 6434, + 10959, 7924, + 10959, 8097, 6434, + 10959, 8153, 6434, + 10959, 8561, 7944, + 10959, 8849, 6434, + 10959, 8963, 6434, + 10959, 9327, 6121, 3713, 4849, 569, 760, + 10959, 9327, 6121, 3713, 4849, 4221, 760, + 10959, 9327, 6121, 3713, 4849, 7991, 9811, 9327, 6121, 3713, 7442, + 10959, 9327, 6121, 3713, 4849, 7991, 10959, 9327, 6121, 3713, 7442, + 10959, 9327, 6121, 3713, 7443, 569, 760, + 10959, 9327, 6121, 3713, 7443, 4221, 760, + 10959, 9327, 6121, 3713, 11096, + 10959, 9327, 6121, 3713, 11764, + 10959, 11191, 6434, + 10963, 9120, + 10977, 8774, + 10978, + 10989, 5758, + 11011, 1809, 4876, + 11011, 2091, 5758, + 11011, 2941, 5758, + 11011, 3055, 5758, + 11011, 3873, 5758, + 11011, 4223, 5836, + 11011, 4849, 6627, 9050, + 11011, 4849, 7821, 12114, + 11011, 4849, 8745, 9050, + 11011, 4849, 12114, + 11011, 5445, 5758, + 11011, 6610, + 11011, 6616, + 11011, 6689, 2170, + 11011, 6689, 2540, + 11011, 6689, 2778, + 11011, 6689, 4200, + 11011, 6689, 4214, + 11011, 6689, 5190, + 11011, 6689, 6260, + 11011, 6689, 6722, + 11011, 6689, 7508, + 11011, 6689, 7694, + 11011, 6875, 7908, + 11011, 7089, 7593, 8405, 0, + 11011, 7089, 7593, 8405, 2, + 11011, 7089, 7593, 8405, 4, + 11011, 7089, 7593, 8405, 6, + 11011, 7089, 7593, 8405, 8, + 11011, 7089, 7593, 8405, 10, + 11011, 7089, 7593, 8405, 12, + 11011, 7089, 7593, 8405, 14, + 11011, 7089, 7593, 8405, 16, + 11011, 7089, 7593, 8405, 18, + 11011, 7089, 7593, 8405, 20, + 11011, 7089, 7593, 8405, 22, + 11011, 7089, 7593, 8405, 24, + 11011, 7089, 7593, 8405, 26, + 11011, 7089, 7593, 8405, 28, + 11011, 7089, 7593, 8405, 30, + 11011, 7089, 7593, 8405, 32, + 11011, 7089, 7593, 8405, 34, + 11011, 7089, 7593, 8405, 36, + 11011, 7089, 7593, 8405, 38, + 11011, 7089, 7593, 8405, 40, + 11011, 7089, 7593, 8405, 42, + 11011, 7089, 7593, 8405, 44, + 11011, 7089, 7593, 8405, 46, + 11011, 7089, 7593, 8405, 48, + 11011, 7089, 7593, 8405, 50, + 11011, 7089, 9063, 8405, 0, + 11011, 7089, 9063, 8405, 2, + 11011, 7089, 9063, 8405, 4, + 11011, 7089, 9063, 8405, 6, + 11011, 7089, 9063, 8405, 8, + 11011, 7089, 9063, 8405, 10, + 11011, 7089, 9063, 8405, 12, + 11011, 7089, 9063, 8405, 14, + 11011, 7089, 9063, 8405, 16, + 11011, 7089, 9063, 8405, 18, + 11011, 7089, 9063, 8405, 20, + 11011, 7089, 9063, 8405, 22, + 11011, 7089, 9063, 8405, 24, + 11011, 7089, 9063, 8405, 26, + 11011, 7089, 9063, 8405, 28, + 11011, 7089, 9063, 8405, 30, + 11011, 7089, 9063, 8405, 32, + 11011, 7089, 9063, 8405, 34, + 11011, 7089, 9063, 8405, 36, + 11011, 7089, 9063, 8405, 38, + 11011, 7089, 9063, 8405, 40, + 11011, 7089, 9063, 8405, 42, + 11011, 7089, 9063, 8405, 44, + 11011, 7089, 9063, 8405, 46, + 11011, 7089, 9063, 8405, 48, + 11011, 7089, 9063, 8405, 50, + 11011, 7387, 5758, + 11011, 7443, 6627, 9050, + 11011, 7443, 7821, 12114, + 11011, 7443, 8745, 9050, + 11011, 7443, 12114, + 11011, 7708, + 11011, 8017, 760, + 11011, 8129, 5758, + 11011, 8167, 5758, + 11011, 8432, + 11011, 8525, 5758, + 11011, 9581, 5758, + 11011, 9633, 9718, + 11011, 9718, + 11011, 9898, + 11011, 10469, 4926, + 11011, 10677, 4876, + 11011, 10708, + 11011, 11099, 5758, + 11011, 11195, 4926, + 11011, 11224, + 11011, 11424, + 11011, 11449, 7908, + 11011, 11451, 90, + 11011, 12017, 4926, + 11011, 12473, 5758, + 11011, 12478, + 11015, 11740, + 11031, 4849, 8077, 9050, + 11031, 6505, 8744, + 11031, 6801, 7101, 10676, + 11031, 7443, 8077, 9050, + 11031, 7821, 8056, + 11031, 8287, 8206, + 11031, 8287, 8405, 0, + 11031, 8287, 8405, 8, + 11031, 8287, 8405, 16, + 11031, 8287, 8405, 28, + 11031, 8287, 8405, 40, + 11031, 8287, 8405, 66, + 11031, 8287, 8405, 178, + 11031, 8287, 8405, 188, + 11031, 8287, 8405, 426, + 11031, 8287, 8405, 622, + 11031, 8287, 8405, 626, + 11031, 8287, 8405, 630, + 11031, 8287, 8405, 652, + 11031, 8287, 8405, 654, + 11031, 8287, 8405, 656, + 11031, 8287, 8405, 660, + 11031, 8287, 8405, 664, + 11031, 8287, 8405, 2908, + 11031, 8287, 8405, 2926, + 11031, 8287, 8405, 3012, + 11031, 8287, 8405, 3056, + 11031, 8287, 8405, 5770, + 11031, 8287, 8405, 6594, + 11031, 8287, 8405, 6912, + 11031, 8287, 8405, 6982, + 11031, 8287, 8405, 7166, + 11031, 8287, 8405, 7244, + 11031, 8287, 8405, 7372, + 11031, 8287, 8405, 7440, + 11031, 8287, 8405, 8362, + 11031, 8287, 8405, 8828, + 11031, 8287, 8405, 9086, + 11031, 8287, 8405, 9400, + 11031, 8287, 8405, 9588, + 11031, 8287, 8405, 9780, + 11031, 8287, 8405, 11248, + 11031, 8287, 8405, 11728, + 11031, 8287, 8405, 11758, + 11031, 8287, 8405, 11824, + 11031, 8287, 8405, 11832, + 11031, 8287, 8405, 12070, + 11031, 8287, 8405, 12094, + 11031, 8287, 8405, 12096, + 11031, 8287, 8405, 12144, + 11031, 8287, 8405, 12146, + 11031, 8287, 8405, 12150, + 11031, 8287, 8405, 12350, + 11031, 8287, 8405, 12352, + 11031, 8287, 8405, 12532, + 11031, 8287, 8405, 13006, + 11031, 8287, 8405, 13008, + 11031, 9811, 6434, + 11031, 10283, 8405, 0, + 11031, 10283, 8405, 8, + 11031, 10283, 8405, 16, + 11031, 10283, 8405, 26, + 11031, 10283, 8405, 28, + 11031, 10283, 8405, 40, + 11031, 10283, 8405, 236, + 11031, 10283, 8405, 238, + 11031, 10283, 8405, 242, + 11031, 10283, 8405, 246, + 11031, 10283, 8405, 250, + 11031, 10283, 8405, 306, + 11031, 10283, 8405, 310, + 11031, 10283, 8405, 314, + 11031, 10283, 8405, 322, + 11031, 10283, 8405, 326, + 11031, 10283, 8405, 364, + 11031, 10283, 8405, 368, + 11031, 10283, 8405, 374, + 11031, 10283, 8405, 380, + 11031, 10283, 8405, 384, + 11031, 10283, 8405, 392, + 11031, 10283, 8405, 396, + 11031, 10283, 8405, 404, + 11031, 10283, 8405, 412, + 11031, 10283, 8405, 416, + 11031, 10283, 8405, 510, + 11031, 10283, 8405, 512, + 11031, 10283, 8405, 514, + 11031, 10283, 8405, 516, + 11031, 10283, 8405, 520, + 11031, 10283, 8405, 524, + 11031, 10283, 8405, 526, + 11031, 10283, 8405, 532, + 11031, 10283, 8405, 536, + 11031, 10283, 8405, 546, + 11031, 10283, 8405, 556, + 11031, 10283, 8405, 560, + 11031, 10283, 8405, 564, + 11031, 10283, 8405, 568, + 11031, 10283, 8405, 576, + 11031, 10283, 8405, 622, + 11031, 10283, 8405, 632, + 11031, 10283, 8405, 652, + 11031, 10283, 8405, 660, + 11031, 10283, 8405, 664, + 11031, 10283, 8405, 7593, 0, + 11031, 10283, 8405, 7593, 8, + 11031, 10283, 8405, 7593, 16, + 11031, 10283, 8405, 7593, 28, + 11031, 10283, 8405, 7593, 40, + 11031, 10283, 8405, 7593, 576, + 11031, 10283, 8405, 7593, 652, + 11031, 10283, 8405, 7593, 660, + 11031, 10283, 8405, 7593, 664, + 11031, 10283, 8473, 1044, + 11031, 10283, 8921, 7605, 4926, + 11031, 10283, 12341, 7605, 4926, + 11031, 10959, 6434, + 11031, 11097, 6434, + 11031, 11765, 6434, + 11031, 12043, 4223, 5836, + 11031, 12043, 6616, + 11031, 13365, 11185, 7605, 4926, + 11035, 10773, 8456, + 11036, + 11041, 568, + 11041, 569, 721, 9705, 10410, + 11041, 6121, 1045, 6376, + 11051, 88, + 11052, + 11061, 8774, + 11063, 5444, + 11063, 7710, + 11063, 11228, + 11093, 731, 12901, 6434, + 11097, 2779, 8289, 6434, + 11097, 6105, 6434, + 11097, 6434, + 11097, 6435, 569, 760, + 11097, 6435, 569, 761, 5387, 11765, 6435, 569, 760, + 11097, 6435, 569, 6505, 9158, + 11097, 6435, 4221, 760, + 11097, 6435, 4221, 761, 569, 6505, 9158, + 11097, 6435, 5387, 11765, 6434, + 11097, 6435, 6121, 2697, 9810, + 11097, 6435, 6121, 2697, 10958, + 11097, 6435, 6121, 4530, + 11097, 6435, 6121, 4896, + 11097, 6435, 6121, 5445, 6490, + 11097, 6435, 6121, 5878, + 11097, 6435, 6121, 5879, 6121, 8153, 10677, 8758, + 11097, 6435, 6121, 5879, 6121, 10677, 8758, + 11097, 6435, 6121, 8151, 5832, + 11097, 6435, 6121, 8153, 10677, 8758, + 11097, 6435, 6121, 8758, + 11097, 6435, 6121, 10677, 8758, + 11097, 6435, 6377, 7551, 11765, 6434, + 11097, 6435, 6377, 7709, 10374, + 11097, 6435, 6377, 7919, 6741, 568, + 11097, 6435, 6377, 9633, 7709, 10374, + 11097, 6435, 6377, 9633, 7919, 6741, 568, + 11097, 6435, 9785, 46, + 11097, 6435, 9785, 8762, + 11097, 6435, 9785, 11098, + 11097, 6505, 6434, + 11097, 7821, 6434, + 11097, 8097, 6434, + 11097, 8153, 3993, 6434, + 11097, 8153, 6434, + 11097, 8153, 6435, 4221, 760, + 11097, 8153, 6435, 6121, 8758, + 11097, 8153, 6435, 6121, 10677, 8758, + 11097, 8153, 11430, + 11097, 8561, 7944, + 11097, 8849, 3993, 6434, + 11097, 8849, 6434, + 11097, 9327, 5387, 11765, 9326, + 11097, 9327, 6121, 3713, 601, 569, 760, + 11097, 9327, 6121, 3713, 601, 4221, 760, + 11097, 9327, 6121, 3713, 601, 6377, 4895, 3992, + 11097, 9327, 6121, 3713, 601, 6377, 11097, 9327, 6121, 3713, 4116, + 11097, 9327, 6121, 3713, 601, 6377, 11765, 9327, 6121, 3713, 600, + 11097, 9327, 6121, 3713, 4117, 569, 760, + 11097, 9327, 6121, 3713, 4117, 4221, 760, + 11097, 9327, 6121, 3713, 4117, 6377, 11765, 9327, 6121, 3713, 4116, + 11097, 9327, 6121, 3713, 4117, 6491, 4895, 3992, + 11097, 9327, 6121, 3713, 9810, + 11097, 9327, 6121, 3713, 10958, + 11097, 10531, 6434, + 11097, 11191, 6434, + 11097, 11430, + 11097, 11875, 6435, 4221, 760, + 11097, 11875, 6435, 6121, 5878, + 11097, 11875, 6435, 6121, 5879, 6121, 8153, 10677, 8758, + 11097, 11875, 6435, 6121, 5879, 6121, 10677, 8758, + 11097, 11875, 6435, 6121, 8153, 10677, 8758, + 11097, 11875, 6435, 6121, 10677, 8758, + 11097, 11875, 8849, 3993, 6434, + 11097, 12103, 6434, + 11099, 445, 6741, 568, + 11099, 445, 9705, 6741, 568, + 11099, 445, 9705, 6741, 569, 6121, 1045, 6376, + 11099, 445, 9705, 6741, 569, 6121, 1045, 6377, 7442, + 11099, 445, 9705, 6741, 569, 6121, 1045, 8318, + 11099, 445, 11621, 568, + 11099, 445, 11896, + 11099, 445, 12472, + 11099, 721, 2091, 11896, + 11099, 721, 12345, 2091, 6741, 568, + 11099, 835, 2091, 6741, 568, + 11099, 835, 2091, 11621, 568, + 11099, 5387, 6741, 568, + 11099, 5758, + 11099, 6121, 1044, + 11099, 6121, 8057, 8318, + 11099, 6121, 10469, 4927, 6376, + 11099, 6377, 9693, 445, 6740, + 11099, 6377, 9693, 6377, 12472, + 11099, 6377, 9705, 6741, 6377, 12473, 6377, 9705, 6740, + 11099, 6377, 11097, 6434, + 11099, 6377, 12007, 6741, 6377, 12472, + 11099, 6377, 12473, 6377, 12007, 6740, + 11099, 6741, 569, 445, 12472, + 11099, 8065, 115, 6628, + 11099, 8065, 115, 6629, 6377, 9705, 6740, + 11104, + 11111, 93, 8399, 4926, + 11111, 3997, 4926, + 11111, 5759, 8916, + 11111, 5759, 9824, + 11111, 5759, 9870, + 11111, 5759, 9904, + 11111, 6689, 2170, + 11111, 6689, 2540, + 11111, 6689, 2778, + 11111, 6689, 4200, + 11111, 6689, 4214, + 11111, 6689, 5190, + 11111, 6689, 6260, + 11111, 6689, 6722, + 11111, 6689, 7508, + 11111, 6689, 7694, + 11111, 7803, 5759, 8, + 11111, 7803, 5759, 16, + 11111, 7803, 5759, 28, + 11111, 7803, 5759, 40, + 11111, 7803, 5759, 58, + 11111, 7803, 5759, 72, + 11111, 7803, 5759, 92, + 11111, 7803, 5759, 162, + 11111, 7803, 5759, 266, + 11111, 7803, 5759, 440, + 11111, 7803, 5759, 606, + 11111, 7803, 5759, 9827, 22, + 11111, 7803, 5759, 9827, 34, + 11111, 7803, 5759, 9827, 344, + 11111, 7803, 5759, 9827, 518, + 11111, 8405, 0, + 11111, 8405, 8, + 11111, 8405, 16, + 11111, 8405, 28, + 11111, 8405, 40, + 11111, 8405, 58, + 11111, 8405, 72, + 11111, 8405, 92, + 11111, 8405, 100, + 11111, 8405, 116, + 11111, 8405, 138, + 11111, 8405, 162, + 11111, 8405, 216, + 11111, 8405, 236, + 11111, 8405, 266, + 11111, 8405, 292, + 11111, 8405, 306, + 11111, 8405, 332, + 11111, 8405, 364, + 11111, 8405, 392, + 11111, 8405, 440, + 11111, 8405, 462, + 11111, 8405, 510, + 11111, 8405, 524, + 11111, 8405, 556, + 11111, 8405, 606, + 11111, 8405, 610, + 11111, 8405, 652, + 11111, 8405, 792, + 11111, 8405, 884, + 11111, 8405, 974, + 11111, 8405, 996, + 11111, 8405, 1260, + 11111, 8405, 1512, + 11111, 8405, 1612, + 11111, 8405, 1796, + 11111, 8405, 2030, + 11111, 8405, 2076, + 11111, 8405, 2126, + 11111, 8405, 2212, + 11111, 8405, 2438, + 11111, 8405, 2516, + 11111, 8405, 2566, + 11111, 8405, 2678, + 11111, 8405, 2746, + 11111, 8405, 4016, + 11111, 8405, 4888, + 11111, 8405, 5994, + 11111, 8405, 8045, 20, + 11111, 8405, 8045, 22, + 11111, 8405, 8045, 26, + 11111, 8405, 8045, 344, + 11111, 8405, 8045, 410, + 11111, 8405, 8045, 518, + 11111, 8405, 9827, 22, + 11111, 8405, 9827, 34, + 11111, 8405, 9827, 344, + 11111, 8405, 9827, 518, + 11111, 8525, 2171, 9344, + 11111, 8525, 2171, 10624, + 11111, 8525, 2670, + 11111, 10203, 2171, 4388, + 11111, 10203, 2171, 9614, + 11111, 10203, 7695, 10466, + 11113, 9539, 11054, + 11123, 4215, 4112, + 11123, 4217, 11391, 10507, 2170, + 11123, 4217, 11391, 10507, 2778, + 11123, 4217, 11391, 10507, 7694, + 11123, 4223, 5836, + 11123, 5751, 10585, 9921, 8450, + 11123, 5963, 5781, 8306, + 11123, 6500, + 11123, 6610, + 11123, 6616, + 11123, 6689, 2170, + 11123, 6689, 2540, + 11123, 6689, 2778, + 11123, 6689, 4200, + 11123, 6689, 4214, + 11123, 6689, 5190, + 11123, 6689, 6260, + 11123, 6689, 6722, + 11123, 6689, 7508, + 11123, 6689, 7694, + 11123, 7803, 11228, + 11123, 8405, 0, + 11123, 8405, 8, + 11123, 8405, 16, + 11123, 8405, 28, + 11123, 8405, 40, + 11123, 8405, 100, + 11123, 8405, 138, + 11123, 8405, 162, + 11123, 8405, 196, + 11123, 8405, 216, + 11123, 8405, 292, + 11123, 8405, 306, + 11123, 8405, 332, + 11123, 8405, 364, + 11123, 8405, 392, + 11123, 8405, 426, + 11123, 8405, 462, + 11123, 8405, 496, + 11123, 8405, 510, + 11123, 8405, 524, + 11123, 8405, 556, + 11123, 8405, 590, + 11123, 8405, 622, + 11123, 8405, 652, + 11123, 8405, 670, + 11123, 8405, 717, 4237, 0, + 11123, 8405, 717, 4237, 16, + 11123, 8405, 717, 4237, 70, + 11123, 8405, 717, 4237, 116, + 11123, 8405, 717, 4237, 138, + 11123, 8405, 717, 4237, 306, + 11123, 8405, 717, 4237, 462, + 11123, 8405, 717, 4237, 556, + 11123, 8405, 717, 4237, 670, + 11123, 8405, 717, 4237, 974, + 11123, 8405, 717, 4237, 2030, + 11123, 8405, 717, 4237, 2076, + 11123, 8405, 717, 4237, 2212, + 11123, 8405, 717, 4237, 2566, + 11123, 8405, 717, 4237, 2746, + 11123, 8405, 717, 4237, 3146, + 11123, 8405, 717, 4237, 4389, 40, + 11123, 8405, 717, 4237, 4389, 652, + 11123, 8405, 717, 4237, 5994, + 11123, 8405, 717, 4237, 7695, 7972, + 11123, 8405, 717, 4237, 7972, + 11123, 8405, 717, 4237, 8092, + 11123, 8405, 717, 4237, 9138, + 11123, 8405, 717, 4237, 9802, + 11123, 8405, 717, 4237, 9825, 2170, + 11123, 8405, 717, 4237, 9871, 2170, + 11123, 8405, 717, 4237, 10267, 9802, + 11123, 8405, 722, + 11123, 8405, 884, + 11123, 8405, 888, + 11123, 8405, 1338, + 11123, 8405, 1612, + 11123, 8405, 1770, + 11123, 8405, 2516, + 11123, 8405, 2732, + 11123, 8405, 3150, + 11123, 8405, 3186, + 11123, 8405, 5751, 8, + 11123, 8405, 5751, 16, + 11123, 8405, 5751, 40, + 11123, 8405, 5751, 138, + 11123, 8405, 5751, 196, + 11123, 8405, 5751, 216, + 11123, 8405, 5751, 236, + 11123, 8405, 5751, 290, + 11123, 8405, 5751, 292, + 11123, 8405, 5751, 306, + 11123, 8405, 5751, 462, + 11123, 8405, 5751, 556, + 11123, 8405, 5751, 590, + 11123, 8405, 5751, 670, + 11123, 8405, 5751, 722, + 11123, 8405, 5751, 884, + 11123, 8405, 5751, 1204, + 11123, 8405, 5751, 1338, + 11123, 8405, 5751, 2378, + 11123, 8405, 5751, 2516, + 11123, 8405, 5751, 2732, + 11123, 8405, 5751, 3146, + 11123, 8405, 5963, 8, + 11123, 8405, 5963, 16, + 11123, 8405, 5963, 28, + 11123, 8405, 5963, 40, + 11123, 8405, 5963, 100, + 11123, 8405, 5963, 138, + 11123, 8405, 5963, 216, + 11123, 8405, 5963, 292, + 11123, 8405, 5963, 306, + 11123, 8405, 5963, 364, + 11123, 8405, 5963, 426, + 11123, 8405, 5963, 462, + 11123, 8405, 5963, 496, + 11123, 8405, 5963, 556, + 11123, 8405, 5963, 590, + 11123, 8405, 5963, 622, + 11123, 8405, 5963, 652, + 11123, 8405, 5963, 717, 4237, 556, + 11123, 8405, 5963, 717, 4237, 3146, + 11123, 8405, 5963, 722, + 11123, 8405, 5963, 884, + 11123, 8405, 5963, 1080, + 11123, 8405, 5963, 1204, + 11123, 8405, 5963, 1338, + 11123, 8405, 5963, 1516, + 11123, 8405, 5963, 2046, + 11123, 8405, 5963, 2732, + 11123, 8405, 5963, 4895, 7803, 5758, + 11123, 8405, 8439, 16, + 11123, 8405, 8439, 196, + 11123, 8405, 8439, 306, + 11123, 8405, 8439, 510, + 11123, 8405, 8439, 717, 4237, 116, + 11123, 8405, 8439, 717, 4237, 556, + 11123, 8405, 8439, 717, 4237, 670, + 11123, 8405, 8439, 717, 4237, 792, + 11123, 8405, 8439, 717, 4237, 944, + 11123, 8405, 8439, 717, 4237, 996, + 11123, 8405, 8439, 717, 4237, 1260, + 11123, 8405, 8439, 717, 4237, 1512, + 11123, 8405, 8439, 717, 4237, 1770, + 11123, 8405, 8439, 717, 4237, 2030, + 11123, 8405, 8439, 717, 4237, 2566, + 11123, 8405, 8439, 717, 4237, 2746, + 11123, 8405, 8439, 717, 4237, 3146, + 11123, 8405, 8439, 717, 4237, 4016, + 11123, 8405, 8439, 3146, + 11123, 8439, 4223, 5836, + 11123, 8439, 6616, + 11123, 8516, + 11123, 10154, + 11163, 11228, + 11169, 7337, 5758, + 11172, + 11173, 6121, 2667, 2724, + 11191, 7390, + 11191, 10261, 10374, + 11195, 4926, + 11205, 8775, 1177, 8879, 10434, + 11205, 8775, 1177, 8881, 10434, + 11205, 8775, 1177, 8883, 10434, + 11205, 8775, 1177, 8885, 10434, + 11205, 8775, 1177, 8887, 10434, + 11205, 8775, 1177, 8889, 10434, + 11205, 8775, 1177, 8891, 10434, + 11205, 8775, 1177, 9305, 11114, + 11207, 4926, + 11217, 10265, 9610, + 11224, + 11242, + 11245, 6408, + 11245, 6409, 9537, 600, + 11245, 6409, 9537, 4848, + 11261, 2170, + 11261, 2540, + 11261, 2778, + 11261, 4200, + 11261, 4214, + 11261, 4849, 12114, + 11261, 5190, + 11261, 5445, 5758, + 11261, 6260, + 11261, 6722, + 11261, 7172, + 11261, 7443, 12114, + 11261, 7508, + 11261, 7694, + 11261, 8167, 5758, + 11263, 2724, + 11263, 6121, 10260, + 11263, 8004, + 11265, 5759, 9558, + 11265, 5759, 10408, + 11265, 5759, 11158, + 11265, 5759, 11160, + 11265, 6689, 2170, + 11265, 6689, 2540, + 11265, 6689, 2778, + 11265, 6689, 4200, + 11265, 6689, 4214, + 11265, 6689, 5190, + 11265, 6689, 6260, + 11265, 6689, 6722, + 11265, 6689, 7508, + 11265, 6689, 7694, + 11265, 7803, 5759, 9560, + 11265, 7803, 5759, 9566, + 11265, 7803, 5759, 10402, + 11265, 7803, 5759, 10404, + 11265, 7803, 5759, 11710, + 11265, 7803, 5759, 11712, + 11265, 8405, 0, + 11265, 8405, 8, + 11265, 8405, 16, + 11265, 8405, 28, + 11265, 8405, 40, + 11265, 8405, 66, + 11265, 8405, 100, + 11265, 8405, 116, + 11265, 8405, 138, + 11265, 8405, 188, + 11265, 8405, 196, + 11265, 8405, 216, + 11265, 8405, 236, + 11265, 8405, 292, + 11265, 8405, 306, + 11265, 8405, 332, + 11265, 8405, 364, + 11265, 8405, 392, + 11265, 8405, 462, + 11265, 8405, 496, + 11265, 8405, 510, + 11265, 8405, 524, + 11265, 8405, 556, + 11265, 8405, 610, + 11265, 8405, 622, + 11265, 8405, 638, + 11265, 8405, 652, + 11265, 8405, 670, + 11265, 8405, 1612, + 11265, 8405, 2030, + 11265, 8405, 2126, + 11265, 8405, 2610, + 11265, 10775, 5759, 9564, + 11265, 10775, 5759, 10406, + 11265, 10775, 5759, 11154, + 11355, 5758, + 11355, 10303, 5758, + 11355, 10472, + 11357, 1177, 439, 2681, 7790, + 11357, 1177, 1550, + 11357, 1177, 1749, 445, 7180, + 11357, 1177, 3803, 11754, + 11357, 1177, 4150, + 11357, 1177, 4223, 8056, + 11357, 1177, 6702, + 11357, 1177, 6865, 569, 4944, + 11357, 1177, 6994, + 11357, 1177, 7174, + 11357, 1177, 7428, + 11357, 1177, 7644, + 11357, 1177, 7770, + 11357, 1177, 7810, + 11357, 1177, 7952, + 11357, 1177, 8036, + 11357, 1177, 8042, + 11357, 1177, 8065, 7186, + 11357, 1177, 8156, + 11357, 1177, 8222, + 11357, 1177, 8394, + 11357, 1177, 8618, + 11357, 1177, 8650, + 11357, 1177, 8976, + 11357, 1177, 9026, + 11357, 1177, 9100, + 11357, 1177, 9110, + 11357, 1177, 9168, + 11357, 1177, 9276, + 11357, 1177, 9341, 3696, + 11357, 1177, 9395, 7592, + 11357, 1177, 9402, + 11357, 1177, 9460, + 11357, 1177, 9466, + 11357, 1177, 9550, + 11357, 1177, 9574, + 11357, 1177, 9626, + 11357, 1177, 9696, + 11357, 1177, 9832, + 11357, 1177, 10168, + 11357, 1177, 10210, + 11357, 1177, 10232, + 11357, 1177, 10252, + 11357, 1177, 10486, + 11357, 1177, 10540, + 11357, 1177, 10550, + 11357, 1177, 10673, 445, 9836, + 11357, 1177, 10747, 2186, + 11357, 1177, 10764, + 11357, 1177, 10776, + 11357, 1177, 10792, + 11357, 1177, 10800, + 11357, 1177, 10972, + 11357, 1177, 10998, + 11357, 1177, 11002, + 11357, 1177, 11012, + 11357, 1177, 11013, 274, + 11357, 1177, 11024, + 11357, 1177, 11086, + 11357, 1177, 11210, + 11357, 1177, 11234, + 11357, 1177, 11454, + 11357, 1177, 11456, + 11357, 1177, 11462, + 11357, 1177, 11486, + 11357, 1177, 11610, + 11357, 1177, 11622, + 11357, 1177, 11702, + 11357, 1177, 11752, + 11357, 1177, 11888, + 11357, 1177, 11916, + 11357, 1177, 12012, + 11357, 1177, 12026, + 11357, 1177, 12118, + 11357, 1177, 12392, + 11357, 1177, 12430, + 11357, 1177, 12434, + 11357, 1177, 12436, + 11357, 1177, 12898, + 11357, 1177, 12923, 445, 11484, + 11357, 1177, 12936, + 11360, + 11387, 11205, 8774, + 11389, 12117, 8774, + 11391, 11770, + 11391, 11772, + 11391, 11774, + 11391, 11776, + 11391, 11778, + 11391, 11780, + 11391, 11782, + 11391, 11784, + 11391, 11786, + 11391, 12160, + 11391, 12162, + 11391, 12164, + 11391, 12166, + 11391, 12168, + 11391, 12170, + 11391, 12172, + 11391, 12174, + 11391, 12176, + 11391, 12178, + 11391, 12180, + 11391, 12182, + 11391, 12184, + 11391, 12186, + 11391, 12188, + 11391, 12190, + 11391, 12192, + 11391, 12194, + 11391, 12196, + 11391, 12198, + 11391, 12200, + 11391, 12202, + 11391, 12204, + 11391, 12206, + 11391, 12208, + 11391, 12210, + 11391, 12212, + 11391, 12214, + 11391, 12216, + 11391, 12218, + 11391, 12220, + 11391, 12222, + 11391, 12224, + 11391, 12226, + 11391, 12228, + 11391, 12230, + 11391, 12232, + 11391, 12234, + 11391, 12236, + 11391, 12238, + 11391, 12240, + 11391, 12242, + 11391, 12244, + 11391, 12246, + 11391, 12248, + 11391, 12250, + 11391, 12252, + 11391, 12254, + 11391, 12256, + 11391, 12258, + 11391, 12260, + 11391, 12262, + 11391, 12264, + 11391, 12266, + 11391, 12268, + 11391, 12270, + 11391, 12272, + 11391, 12274, + 11391, 12276, + 11391, 12278, + 11391, 12280, + 11391, 12282, + 11391, 12284, + 11391, 12286, + 11391, 12288, + 11391, 12290, + 11391, 12292, + 11391, 12294, + 11391, 12296, + 11391, 12298, + 11391, 12300, + 11391, 12302, + 11391, 12304, + 11391, 12306, + 11391, 12308, + 11391, 12310, + 11391, 12312, + 11391, 12314, + 11391, 12316, + 11391, 12318, + 11391, 12320, + 11391, 12322, + 11391, 12324, + 11391, 12326, + 11391, 12328, + 11391, 12330, + 11391, 12332, + 11391, 12334, + 11391, 12336, + 11391, 12338, + 11391, 12542, + 11391, 12544, + 11391, 12546, + 11391, 12548, + 11391, 12550, + 11391, 12552, + 11391, 12554, + 11391, 12556, + 11391, 12558, + 11391, 12560, + 11391, 12562, + 11391, 12564, + 11391, 12566, + 11391, 12568, + 11391, 12570, + 11391, 12572, + 11391, 12574, + 11391, 12576, + 11391, 12578, + 11391, 12580, + 11391, 12582, + 11391, 12584, + 11391, 12586, + 11391, 12588, + 11391, 12590, + 11391, 12592, + 11391, 12594, + 11391, 12596, + 11391, 12598, + 11391, 12600, + 11391, 12602, + 11391, 12604, + 11391, 12606, + 11391, 12608, + 11391, 12610, + 11391, 12612, + 11391, 12614, + 11391, 12616, + 11391, 12618, + 11391, 12620, + 11391, 12622, + 11391, 12624, + 11391, 12626, + 11391, 12628, + 11391, 12630, + 11391, 12632, + 11391, 12634, + 11391, 12636, + 11391, 12638, + 11391, 12640, + 11391, 12642, + 11391, 12644, + 11391, 12646, + 11391, 12648, + 11391, 12650, + 11391, 12652, + 11391, 12654, + 11391, 12656, + 11391, 12658, + 11391, 12660, + 11391, 12662, + 11391, 12664, + 11391, 12666, + 11391, 12668, + 11391, 12670, + 11391, 12672, + 11391, 12674, + 11391, 12676, + 11391, 12678, + 11391, 12680, + 11391, 12682, + 11391, 12684, + 11391, 12686, + 11391, 12688, + 11391, 12690, + 11391, 12692, + 11391, 12694, + 11391, 12696, + 11391, 12698, + 11391, 12700, + 11391, 12702, + 11391, 12704, + 11391, 12706, + 11391, 12708, + 11391, 12710, + 11391, 12712, + 11391, 12714, + 11391, 12716, + 11391, 12718, + 11391, 12720, + 11391, 12722, + 11391, 12724, + 11391, 12726, + 11391, 12728, + 11391, 12730, + 11391, 12732, + 11391, 12734, + 11391, 12736, + 11391, 12738, + 11391, 12740, + 11391, 12742, + 11391, 12744, + 11391, 12746, + 11391, 12748, + 11391, 12750, + 11391, 12752, + 11391, 12754, + 11391, 12756, + 11391, 12758, + 11391, 12760, + 11391, 12762, + 11391, 12764, + 11391, 12766, + 11391, 12768, + 11391, 12770, + 11391, 12772, + 11391, 12774, + 11391, 12776, + 11391, 12778, + 11391, 12780, + 11391, 12782, + 11391, 12784, + 11391, 12786, + 11391, 12788, + 11391, 12790, + 11391, 12792, + 11391, 12794, + 11391, 12796, + 11391, 12798, + 11391, 12800, + 11391, 12802, + 11391, 12804, + 11391, 12806, + 11391, 12808, + 11391, 12810, + 11391, 12812, + 11391, 12814, + 11391, 12816, + 11391, 12818, + 11391, 12820, + 11391, 12822, + 11391, 12824, + 11391, 12826, + 11391, 12828, + 11391, 12830, + 11391, 12832, + 11391, 12834, + 11391, 12836, + 11391, 12838, + 11391, 12840, + 11391, 12842, + 11391, 12844, + 11391, 12846, + 11391, 12848, + 11391, 12850, + 11391, 12852, + 11391, 12854, + 11424, + 11427, 2681, 7104, + 11445, 1809, 4876, + 11445, 10388, + 11449, 7908, + 11451, 90, + 11451, 7173, 5758, + 11452, + 11465, 11385, 8774, + 11475, 5238, + 11477, 436, + 11477, 5759, 4423, 9721, 1044, + 11477, 5759, 7282, + 11477, 5759, 8916, + 11477, 5759, 9824, + 11477, 5759, 9870, + 11477, 5759, 9904, + 11477, 5759, 11900, + 11477, 6379, 7908, + 11477, 6646, + 11477, 6689, 2170, + 11477, 6689, 2540, + 11477, 6689, 2778, + 11477, 6689, 4200, + 11477, 6689, 4214, + 11477, 6689, 5190, + 11477, 6689, 6260, + 11477, 6689, 6722, + 11477, 6689, 7508, + 11477, 6689, 7694, + 11477, 6875, 7908, + 11477, 7803, 5759, 8, + 11477, 7803, 5759, 16, + 11477, 7803, 5759, 28, + 11477, 7803, 5759, 40, + 11477, 7803, 5759, 58, + 11477, 7803, 5759, 72, + 11477, 7803, 5759, 92, + 11477, 7803, 5759, 266, + 11477, 7803, 5759, 606, + 11477, 7803, 5759, 7551, 8, + 11477, 7803, 5759, 7551, 28, + 11477, 7803, 5759, 8031, 8, + 11477, 7803, 5759, 8031, 28, + 11477, 7803, 5759, 9827, 22, + 11477, 7803, 5759, 9827, 34, + 11477, 7803, 5759, 9827, 344, + 11477, 7803, 5759, 9827, 518, + 11477, 8153, 6646, + 11477, 8405, 0, + 11477, 8405, 8, + 11477, 8405, 16, + 11477, 8405, 28, + 11477, 8405, 40, + 11477, 8405, 58, + 11477, 8405, 72, + 11477, 8405, 92, + 11477, 8405, 100, + 11477, 8405, 116, + 11477, 8405, 138, + 11477, 8405, 196, + 11477, 8405, 216, + 11477, 8405, 236, + 11477, 8405, 266, + 11477, 8405, 292, + 11477, 8405, 306, + 11477, 8405, 332, + 11477, 8405, 364, + 11477, 8405, 392, + 11477, 8405, 462, + 11477, 8405, 496, + 11477, 8405, 510, + 11477, 8405, 524, + 11477, 8405, 556, + 11477, 8405, 606, + 11477, 8405, 610, + 11477, 8405, 652, + 11477, 8405, 670, + 11477, 8405, 766, + 11477, 8405, 792, + 11477, 8405, 884, + 11477, 8405, 974, + 11477, 8405, 996, + 11477, 8405, 1250, + 11477, 8405, 1260, + 11477, 8405, 1512, + 11477, 8405, 1528, + 11477, 8405, 1612, + 11477, 8405, 1796, + 11477, 8405, 2030, + 11477, 8405, 2076, + 11477, 8405, 2126, + 11477, 8405, 2212, + 11477, 8405, 2410, + 11477, 8405, 2438, + 11477, 8405, 2516, + 11477, 8405, 2566, + 11477, 8405, 2678, + 11477, 8405, 2746, + 11477, 8405, 3110, + 11477, 8405, 4008, + 11477, 8405, 4016, + 11477, 8405, 4320, + 11477, 8405, 4748, + 11477, 8405, 4888, + 11477, 8405, 5234, + 11477, 8405, 5994, + 11477, 8405, 6658, + 11477, 8405, 7551, 0, + 11477, 8405, 7551, 8, + 11477, 8405, 7551, 28, + 11477, 8405, 8031, 0, + 11477, 8405, 8031, 8, + 11477, 8405, 8031, 28, + 11477, 8405, 9313, 5836, + 11477, 8405, 9827, 22, + 11477, 8405, 9827, 34, + 11477, 8405, 9827, 344, + 11477, 8405, 9827, 518, + 11477, 8755, 5759, 8892, + 11477, 8755, 5759, 9868, + 11477, 12391, 5758, + 11479, 9042, + 11605, 12492, + 11621, 568, + 11621, 6121, 4215, 4113, 6376, + 11641, 7593, 8405, 16, + 11641, 7593, 8405, 468, + 11641, 7593, 8405, 660, + 11641, 7593, 8405, 664, + 11641, 7593, 8405, 746, + 11641, 7593, 8405, 807, 3096, + 11641, 7593, 8405, 2176, + 11641, 7593, 8405, 2184, + 11641, 7593, 8405, 2516, + 11641, 7593, 8405, 2736, + 11641, 7593, 8405, 2808, + 11641, 7593, 8405, 3810, + 11641, 7593, 8405, 4198, + 11641, 7593, 8405, 4406, + 11641, 7593, 8405, 4626, + 11641, 7593, 8405, 4712, + 11641, 7593, 8405, 5718, + 11641, 7593, 8405, 6076, + 11641, 7593, 8405, 6188, + 11641, 7593, 8405, 6198, + 11641, 7593, 8405, 6200, + 11641, 7593, 8405, 6698, + 11641, 7593, 8405, 6710, + 11641, 7593, 8405, 6810, + 11641, 7593, 8405, 7210, + 11641, 7593, 8405, 7444, + 11641, 7593, 8405, 7590, + 11641, 7593, 8405, 7593, 3096, + 11641, 7593, 8405, 7593, 3097, 6121, 5878, + 11641, 7593, 8405, 7856, + 11641, 7593, 8405, 8050, + 11641, 7593, 8405, 8124, + 11641, 7593, 8405, 8606, + 11641, 7593, 8405, 8872, + 11641, 7593, 8405, 8958, + 11641, 7593, 8405, 9310, + 11641, 7593, 8405, 9363, 4626, + 11641, 7593, 8405, 9371, 807, 3096, + 11641, 7593, 8405, 9371, 7593, 3096, + 11641, 7593, 8405, 9372, + 11641, 7593, 8405, 9434, + 11641, 7593, 8405, 9486, + 11641, 7593, 8405, 9686, + 11641, 7593, 8405, 9727, 236, + 11641, 7593, 8405, 9850, + 11641, 7593, 8405, 10299, 9486, + 11641, 7593, 8405, 11867, 0, + 11641, 9063, 8405, 16, + 11641, 9063, 8405, 468, + 11641, 9063, 8405, 660, + 11641, 9063, 8405, 664, + 11641, 9063, 8405, 746, + 11641, 9063, 8405, 807, 3096, + 11641, 9063, 8405, 2176, + 11641, 9063, 8405, 2184, + 11641, 9063, 8405, 2516, + 11641, 9063, 8405, 2736, + 11641, 9063, 8405, 2808, + 11641, 9063, 8405, 3810, + 11641, 9063, 8405, 4198, + 11641, 9063, 8405, 4406, + 11641, 9063, 8405, 4626, + 11641, 9063, 8405, 4712, + 11641, 9063, 8405, 5718, + 11641, 9063, 8405, 6076, + 11641, 9063, 8405, 6188, + 11641, 9063, 8405, 6198, + 11641, 9063, 8405, 6200, + 11641, 9063, 8405, 6698, + 11641, 9063, 8405, 6710, + 11641, 9063, 8405, 6810, + 11641, 9063, 8405, 7210, + 11641, 9063, 8405, 7444, + 11641, 9063, 8405, 7590, + 11641, 9063, 8405, 7593, 3096, + 11641, 9063, 8405, 7593, 3097, 6121, 5878, + 11641, 9063, 8405, 7856, + 11641, 9063, 8405, 8050, + 11641, 9063, 8405, 8124, + 11641, 9063, 8405, 8606, + 11641, 9063, 8405, 8872, + 11641, 9063, 8405, 8958, + 11641, 9063, 8405, 9310, + 11641, 9063, 8405, 9363, 4626, + 11641, 9063, 8405, 9371, 807, 3096, + 11641, 9063, 8405, 9371, 7593, 3096, + 11641, 9063, 8405, 9372, + 11641, 9063, 8405, 9434, + 11641, 9063, 8405, 9486, + 11641, 9063, 8405, 9686, + 11641, 9063, 8405, 9727, 236, + 11641, 9063, 8405, 9850, + 11641, 9063, 8405, 10299, 9486, + 11641, 9063, 8405, 11867, 0, + 11646, + 11649, 760, + 11649, 4877, 10982, + 11649, 4923, 6121, 8759, 5758, + 11649, 5643, 8412, + 11649, 5643, 8414, + 11649, 5643, 8416, + 11649, 5643, 8418, + 11649, 6505, 9338, + 11649, 10154, + 11651, 8774, + 11661, 10256, + 11667, 5759, 761, 6376, + 11667, 5759, 1045, 6490, + 11667, 5759, 6548, + 11667, 5759, 8153, 5551, 6490, + 11667, 5759, 9824, + 11667, 5759, 9870, + 11667, 6689, 2170, + 11667, 6689, 2778, + 11667, 6689, 4214, + 11667, 6689, 7694, + 11667, 7803, 5759, 8, + 11667, 7803, 5759, 16, + 11667, 7803, 5759, 28, + 11667, 7803, 5759, 40, + 11667, 7803, 5759, 9827, 34, + 11667, 7803, 8399, 4926, + 11667, 8405, 0, + 11667, 8405, 100, + 11667, 8405, 116, + 11667, 8405, 138, + 11667, 8405, 216, + 11667, 8405, 236, + 11667, 8405, 292, + 11667, 8405, 306, + 11667, 8405, 332, + 11667, 8405, 364, + 11667, 8405, 392, + 11667, 8405, 462, + 11667, 8405, 510, + 11667, 8405, 524, + 11667, 8405, 556, + 11667, 8405, 610, + 11667, 8405, 652, + 11667, 8405, 670, + 11667, 8405, 792, + 11667, 8405, 884, + 11667, 8405, 974, + 11667, 8405, 996, + 11667, 8405, 1260, + 11667, 8405, 1612, + 11667, 8405, 1642, + 11667, 8405, 2076, + 11667, 8405, 2126, + 11667, 8405, 2212, + 11667, 8405, 2516, + 11667, 8405, 2566, + 11667, 8405, 2678, + 11667, 8405, 2746, + 11667, 8405, 4016, + 11667, 8405, 5994, + 11667, 8405, 7750, + 11667, 8525, 2171, 9344, + 11667, 8525, 2171, 10624, + 11667, 8525, 2670, + 11667, 8525, 8876, + 11667, 8916, + 11667, 12133, 1044, + 11667, 12133, 6646, + 11667, 12133, 7108, + 11667, 12133, 7114, + 11667, 12133, 7593, 8056, + 11667, 12133, 8056, + 11667, 12133, 8153, 6646, + 11667, 12133, 9965, 760, + 11667, 12133, 10318, + 11687, 8774, + 11700, + 11702, + 11725, 8153, 12132, + 11725, 8717, 12132, + 11727, 6129, 11228, + 11727, 8405, 238, + 11727, 8405, 468, + 11727, 8405, 710, + 11727, 8405, 714, + 11727, 8405, 788, + 11727, 8405, 1366, + 11727, 8405, 1578, + 11727, 8405, 1892, + 11727, 8405, 2110, + 11727, 8405, 2318, + 11727, 8405, 2658, + 11727, 8405, 2674, + 11727, 8405, 2916, + 11727, 8405, 3080, + 11727, 8405, 3126, + 11727, 8405, 4058, + 11727, 8405, 4238, + 11727, 8405, 4832, + 11727, 8405, 5568, + 11727, 8405, 5624, + 11727, 8405, 5652, + 11727, 8405, 5698, + 11727, 8525, 2170, + 11727, 8525, 2171, 9344, + 11727, 8525, 2670, + 11727, 8525, 8876, + 11731, 5758, + 11736, + 11740, + 11745, 10261, 10374, + 11747, 6741, 568, + 11749, 5758, + 11763, 731, 10763, 6434, + 11765, 2779, 8289, 6434, + 11765, 6105, 6434, + 11765, 6434, + 11765, 6435, 569, 760, + 11765, 6435, 569, 6505, 9158, + 11765, 6435, 4221, 760, + 11765, 6435, 4221, 761, 569, 6505, 9158, + 11765, 6435, 5387, 11097, 6434, + 11765, 6435, 6121, 2697, 9810, + 11765, 6435, 6121, 2697, 10958, + 11765, 6435, 6121, 4530, + 11765, 6435, 6121, 4896, + 11765, 6435, 6121, 5445, 6490, + 11765, 6435, 6121, 5878, + 11765, 6435, 6121, 5879, 6121, 8153, 10677, 8758, + 11765, 6435, 6121, 5879, 6121, 10677, 8758, + 11765, 6435, 6121, 8077, 10958, + 11765, 6435, 6121, 8151, 5832, + 11765, 6435, 6121, 8153, 10677, 8758, + 11765, 6435, 6121, 8758, + 11765, 6435, 6121, 10677, 8758, + 11765, 6435, 6377, 7551, 11097, 6434, + 11765, 6435, 6377, 7709, 10374, + 11765, 6435, 6377, 7919, 6741, 568, + 11765, 6435, 6377, 9633, 7709, 10374, + 11765, 6435, 6377, 9633, 7919, 6741, 568, + 11765, 6435, 9785, 46, + 11765, 6435, 9785, 10578, + 11765, 6435, 9785, 12472, + 11765, 7821, 6434, + 11765, 7821, 6435, 4221, 6102, + 11765, 8097, 6434, + 11765, 8153, 3993, 6434, + 11765, 8153, 6434, + 11765, 8153, 6435, 4221, 760, + 11765, 8153, 6435, 6121, 8758, + 11765, 8153, 6435, 6121, 10677, 8758, + 11765, 8153, 11430, + 11765, 8561, 7944, + 11765, 8849, 3993, 6434, + 11765, 8849, 6434, + 11765, 9327, 5387, 11097, 9326, + 11765, 9327, 6121, 3713, 601, 569, 760, + 11765, 9327, 6121, 3713, 601, 4221, 760, + 11765, 9327, 6121, 3713, 601, 6377, 4895, 3992, + 11765, 9327, 6121, 3713, 601, 6377, 11097, 9327, 6121, 3713, 600, + 11765, 9327, 6121, 3713, 601, 6377, 11765, 9327, 6121, 3713, 4116, + 11765, 9327, 6121, 3713, 4117, 569, 760, + 11765, 9327, 6121, 3713, 4117, 4221, 760, + 11765, 9327, 6121, 3713, 4117, 6377, 11097, 9327, 6121, 3713, 4116, + 11765, 9327, 6121, 3713, 4117, 6491, 4895, 3992, + 11765, 9327, 6121, 3713, 9810, + 11765, 9327, 6121, 3713, 10958, + 11765, 10531, 6434, + 11765, 11191, 6434, + 11765, 11430, + 11765, 11875, 6435, 4221, 760, + 11765, 11875, 6435, 6121, 5878, + 11765, 11875, 6435, 6121, 5879, 6121, 8153, 10677, 8758, + 11765, 11875, 6435, 6121, 5879, 6121, 10677, 8758, + 11765, 11875, 6435, 6121, 8153, 10677, 8758, + 11765, 11875, 6435, 6121, 10677, 8758, + 11765, 11875, 8849, 3993, 6434, + 11765, 12103, 6434, + 11769, 5759, 8916, + 11769, 5759, 9824, + 11769, 5759, 9870, + 11769, 6646, + 11769, 6689, 2170, + 11769, 6689, 2540, + 11769, 6689, 2778, + 11769, 6689, 4200, + 11769, 6689, 4214, + 11769, 6689, 5190, + 11769, 6689, 6260, + 11769, 6689, 6722, + 11769, 6689, 7508, + 11769, 6689, 7694, + 11769, 7803, 5759, 8, + 11769, 7803, 5759, 16, + 11769, 7803, 5759, 28, + 11769, 7803, 5759, 40, + 11769, 7803, 5759, 58, + 11769, 7803, 5759, 72, + 11769, 7803, 5759, 92, + 11769, 7803, 5759, 162, + 11769, 7803, 5759, 266, + 11769, 7803, 5759, 440, + 11769, 7803, 5759, 606, + 11769, 7803, 5759, 9827, 22, + 11769, 7803, 5759, 9827, 34, + 11769, 7803, 5759, 9827, 344, + 11769, 7803, 5759, 9827, 518, + 11769, 8153, 6646, + 11769, 8405, 0, + 11769, 8405, 8, + 11769, 8405, 16, + 11769, 8405, 28, + 11769, 8405, 40, + 11769, 8405, 58, + 11769, 8405, 72, + 11769, 8405, 92, + 11769, 8405, 100, + 11769, 8405, 116, + 11769, 8405, 138, + 11769, 8405, 162, + 11769, 8405, 216, + 11769, 8405, 236, + 11769, 8405, 266, + 11769, 8405, 292, + 11769, 8405, 306, + 11769, 8405, 332, + 11769, 8405, 364, + 11769, 8405, 392, + 11769, 8405, 440, + 11769, 8405, 462, + 11769, 8405, 510, + 11769, 8405, 524, + 11769, 8405, 556, + 11769, 8405, 606, + 11769, 8405, 610, + 11769, 8405, 652, + 11769, 8405, 792, + 11769, 8405, 884, + 11769, 8405, 974, + 11769, 8405, 996, + 11769, 8405, 1260, + 11769, 8405, 1512, + 11769, 8405, 1612, + 11769, 8405, 1796, + 11769, 8405, 2030, + 11769, 8405, 2076, + 11769, 8405, 2126, + 11769, 8405, 2212, + 11769, 8405, 2516, + 11769, 8405, 2566, + 11769, 8405, 2678, + 11769, 8405, 2746, + 11769, 8405, 4016, + 11769, 8405, 5994, + 11769, 8405, 9827, 22, + 11769, 8405, 9827, 34, + 11769, 8405, 9827, 344, + 11769, 8405, 9827, 518, + 11769, 10775, 5759, 6888, + 11793, 9611, 6121, 8005, 8064, + 11801, 5385, 826, + 11819, 7608, + 11859, 8022, + 11881, 8774, + 11893, 1611, 8774, + 11899, 10513, 7821, 11765, 6434, + 11905, 10212, + 11909, 8774, + 11910, + 11921, 568, + 11922, + 11924, + 12007, 6741, 569, 445, 11098, + 12007, 6741, 569, 445, 12472, + 12007, 9705, 6741, 569, 445, 11098, + 12007, 9705, 6741, 569, 445, 12472, + 12007, 9705, 11099, 445, 6741, 568, + 12007, 9705, 12473, 445, 6741, 568, + 12015, 568, + 12017, 4926, + 12017, 10469, 4926, + 12021, 7608, + 12041, 7382, + 12043, 4223, 5836, + 12043, 4389, 4193, 7608, + 12043, 6616, + 12043, 7097, 5965, 4926, + 12043, 7608, + 12043, 8525, 6260, + 12043, 8649, 5965, 4926, + 12043, 9099, 4926, + 12043, 10161, 5965, 4926, + 12043, 10799, 5965, 4926, + 12043, 11067, 4926, + 12043, 11353, 4877, 4183, 11229, 8774, + 12043, 11353, 8775, 1177, 973, 2170, + 12043, 11353, 8775, 1177, 973, 2540, + 12043, 11353, 8775, 1177, 973, 2670, + 12043, 11353, 8775, 1177, 973, 2778, + 12043, 11353, 8775, 1177, 973, 4200, + 12043, 11353, 8775, 1177, 973, 4214, + 12043, 11353, 8775, 1177, 973, 5190, + 12043, 11353, 8775, 1177, 973, 6722, + 12043, 11353, 8775, 1177, 973, 7508, + 12043, 11353, 8775, 1177, 973, 7694, + 12043, 11353, 8775, 1177, 973, 8162, + 12043, 11353, 8775, 1177, 973, 8820, + 12043, 11353, 8775, 1177, 973, 8874, + 12043, 11353, 8775, 1177, 973, 8876, + 12043, 11353, 8775, 1177, 973, 9286, + 12043, 11353, 8775, 1177, 973, 9700, + 12043, 11353, 8775, 1177, 973, 10150, + 12043, 11353, 8775, 1177, 973, 10200, + 12043, 11353, 8775, 1177, 973, 10360, + 12043, 11353, 8775, 1177, 973, 10622, + 12043, 11353, 8775, 1177, 973, 11232, + 12043, 11353, 8775, 1177, 973, 11854, + 12043, 11353, 8775, 1177, 973, 11868, + 12043, 11353, 8775, 1177, 973, 11870, + 12043, 11353, 8775, 1177, 973, 11872, + 12043, 11353, 8775, 1177, 973, 12374, + 12043, 11353, 8775, 1177, 973, 12376, + 12043, 11353, 8775, 1177, 973, 12378, + 12043, 11353, 8775, 1177, 973, 12888, + 12043, 11353, 8775, 1177, 973, 12890, + 12043, 11353, 8775, 1177, 973, 12892, + 12043, 11353, 8775, 1177, 1870, + 12043, 11353, 8775, 1177, 4541, 2170, + 12043, 11353, 8775, 1177, 4541, 2540, + 12043, 11353, 8775, 1177, 4541, 2670, + 12043, 11353, 8775, 1177, 4541, 2778, + 12043, 11353, 8775, 1177, 4541, 4200, + 12043, 11353, 8775, 1177, 4541, 4214, + 12043, 11353, 8775, 1177, 4541, 5190, + 12043, 11353, 8775, 1177, 4541, 6260, + 12043, 11353, 8775, 1177, 4541, 6722, + 12043, 11353, 8775, 1177, 4541, 7508, + 12043, 11353, 8775, 1177, 4541, 7694, + 12043, 11353, 8775, 1177, 4541, 8162, + 12043, 11353, 8775, 1177, 4541, 8874, + 12043, 11353, 8775, 1177, 4541, 8876, + 12043, 11353, 8775, 1177, 4541, 9286, + 12043, 11353, 8775, 1177, 4541, 9700, + 12043, 11353, 8775, 1177, 4541, 10150, + 12043, 11353, 8775, 1177, 4541, 10200, + 12043, 11353, 8775, 1177, 4541, 10360, + 12043, 11353, 8775, 1177, 4541, 10622, + 12043, 11353, 8775, 1177, 4541, 11232, + 12043, 11353, 8775, 1177, 4541, 11868, + 12043, 11353, 8775, 1177, 4541, 11872, + 12043, 11353, 8775, 1177, 4541, 12376, + 12043, 11353, 8775, 1177, 4541, 12892, + 12043, 11353, 8775, 1177, 4682, + 12043, 11353, 8775, 1177, 4684, + 12043, 11353, 8775, 1177, 6420, + 12043, 11353, 8775, 1177, 7136, + 12043, 11353, 8775, 1177, 7958, + 12043, 11353, 8775, 1177, 9374, + 12043, 11353, 8775, 1177, 9528, + 12043, 11353, 8775, 1177, 9990, + 12043, 11353, 8775, 1177, 10176, + 12043, 11353, 8775, 1177, 10368, + 12043, 11353, 8775, 1177, 11230, + 12043, 11391, 11054, + 12043, 11415, 1861, 4926, + 12043, 11415, 2171, 4926, + 12043, 11415, 2725, 4926, + 12043, 11415, 2779, 4926, + 12043, 11415, 4215, 4926, + 12043, 11415, 6717, 4926, + 12043, 11415, 6791, 4926, + 12043, 11415, 7687, 4926, + 12043, 11415, 7695, 4926, + 12043, 11415, 8005, 4926, + 12043, 11415, 8233, 4926, + 12043, 11415, 8291, 4926, + 12043, 11415, 8473, 4926, + 12043, 11415, 8681, 4926, + 12043, 11415, 9433, 4926, + 12043, 11415, 9633, 4926, + 12043, 11937, 10759, 4223, 10580, + 12043, 11937, 10759, 4849, 569, 7442, + 12043, 11937, 10759, 4849, 569, 8473, 721, 7442, + 12043, 11937, 10759, 6377, 569, 6490, + 12043, 11937, 10759, 6377, 569, 8473, 721, 6490, + 12043, 11937, 10759, 10386, + 12043, 11937, 10759, 10581, 4221, 4848, + 12043, 11937, 10759, 10581, 4221, 6376, + 12043, 11937, 10759, 10581, 4221, 6490, + 12043, 11937, 10759, 10581, 4221, 7121, 4848, + 12043, 11937, 10759, 10581, 4221, 7773, 4848, + 12043, 11937, 10759, 10581, 4221, 7773, 7442, + 12055, 8724, + 12058, + 12061, 11415, 7922, + 12061, 11415, 11228, + 12061, 11415, 11850, + 12063, 8197, 721, 4923, 5758, + 12064, + 12075, 7821, 11765, 6434, + 12108, + 12117, 5758, + 12122, + 12133, 7608, + 12135, 5758, + 12143, 10758, + 12156, + 12342, + 12355, 2170, + 12355, 2540, + 12355, 2778, + 12355, 4200, + 12355, 4214, + 12355, 4849, 12114, + 12355, 5190, + 12355, 5445, 5758, + 12355, 6260, + 12355, 6722, + 12355, 7089, 7593, 8405, 16, + 12355, 7089, 7593, 8405, 26, + 12355, 7172, + 12355, 7443, 12114, + 12355, 7508, + 12355, 7694, + 12355, 8167, 5758, + 12371, 12492, + 12383, 10643, 6121, 4849, 4389, 6504, + 12383, 10643, 6121, 7443, 4389, 6504, + 12396, + 12399, 445, 10780, + 12403, 2209, 2671, 10625, 5758, + 12403, 2209, 7171, 5758, + 12403, 3961, 5566, + 12403, 6689, 2170, + 12403, 6689, 2540, + 12403, 6689, 2778, + 12403, 6689, 4200, + 12403, 6689, 4214, + 12403, 6689, 5190, + 12403, 6689, 6260, + 12403, 6689, 6722, + 12403, 6689, 7508, + 12403, 6689, 7694, + 12403, 8233, 5566, + 12413, 9063, 4, + 12413, 9063, 14, + 12413, 9063, 16, + 12413, 9063, 34, + 12413, 9063, 50, + 12428, + 12461, 10346, + 12463, 6505, 8056, + 12463, 6505, 8744, + 12463, 6505, 9158, + 12463, 7821, 8056, + 12463, 7821, 8744, + 12463, 7821, 9158, + 12464, + 12467, 10513, 7821, 11765, 6434, + 12473, 445, 6741, 568, + 12473, 445, 9705, 6741, 568, + 12473, 445, 9705, 6741, 569, 6121, 1045, 6376, + 12473, 445, 9705, 6741, 569, 6121, 1045, 6377, 4848, + 12473, 445, 9705, 6741, 569, 6121, 1045, 8318, + 12473, 445, 11098, + 12473, 445, 11621, 568, + 12473, 445, 11896, + 12473, 721, 2091, 11896, + 12473, 721, 12345, 2091, 6741, 568, + 12473, 835, 2091, 6741, 568, + 12473, 835, 2091, 11621, 568, + 12473, 5387, 6741, 568, + 12473, 5758, + 12473, 6121, 1044, + 12473, 6121, 8057, 8318, + 12473, 6121, 10469, 4927, 6376, + 12473, 6377, 9693, 445, 6740, + 12473, 6377, 9693, 6377, 11098, + 12473, 6377, 9705, 6741, 6377, 11099, 6377, 9705, 6740, + 12473, 6377, 11099, 6377, 12007, 6740, + 12473, 6377, 11765, 6434, + 12473, 6377, 12007, 6741, 6377, 11098, + 12473, 6741, 569, 445, 11098, + 12473, 7991, 11098, + 12473, 8065, 115, 6628, + 12473, 8065, 115, 6629, 6377, 9705, 6740, + 12473, 12105, 11098, + 12478, + 12480, + 12492, + 12493, 6121, 1044, + 12493, 6121, 9437, 720, + 12493, 6121, 9546, + 12493, 6377, 761, 6377, 7768, + 12493, 6377, 7768, + 12493, 7991, 721, 8329, 6121, 12492, + 12505, 3803, 477, 8774, + 12505, 3803, 2217, 8774, + 12505, 3803, 2413, 8774, + 12505, 3803, 6689, 2170, + 12505, 3803, 6689, 2540, + 12505, 3803, 6689, 2778, + 12505, 3803, 6689, 4200, + 12505, 3803, 6689, 4214, + 12505, 3803, 6689, 5190, + 12505, 3803, 6689, 6260, + 12505, 3803, 6689, 6722, + 12505, 3803, 6689, 7508, + 12505, 3803, 6689, 7694, + 12505, 3803, 7023, 8774, + 12505, 3803, 7202, + 12505, 3803, 7593, 0, + 12505, 3803, 7593, 2, + 12505, 3803, 7593, 4, + 12505, 3803, 7593, 6, + 12505, 3803, 7593, 8, + 12505, 3803, 7593, 10, + 12505, 3803, 7593, 12, + 12505, 3803, 7593, 14, + 12505, 3803, 7593, 16, + 12505, 3803, 7593, 18, + 12505, 3803, 7593, 20, + 12505, 3803, 7593, 22, + 12505, 3803, 7593, 24, + 12505, 3803, 7593, 26, + 12505, 3803, 7593, 28, + 12505, 3803, 7593, 30, + 12505, 3803, 7593, 32, + 12505, 3803, 7593, 34, + 12505, 3803, 7593, 36, + 12505, 3803, 7593, 38, + 12505, 3803, 7593, 40, + 12505, 3803, 7593, 42, + 12505, 3803, 7593, 44, + 12505, 3803, 7593, 46, + 12505, 3803, 7593, 48, + 12505, 3803, 7593, 50, + 12505, 3803, 7593, 384, + 12505, 3803, 7593, 416, + 12505, 3803, 7593, 476, + 12505, 3803, 7593, 644, + 12505, 3803, 7593, 888, + 12505, 3803, 7593, 1128, + 12505, 3803, 7593, 2216, + 12505, 3803, 7593, 2250, + 12505, 3803, 7593, 2412, + 12505, 3803, 7593, 2658, + 12505, 3803, 7593, 3774, + 12505, 3803, 7593, 4614, + 12505, 3803, 7593, 6262, + 12505, 3803, 7593, 6406, + 12505, 3803, 7593, 6674, + 12505, 3803, 7593, 6789, 7568, + 12505, 3803, 7593, 6824, + 12505, 3803, 7593, 7022, + 12505, 3803, 7593, 7080, + 12505, 3803, 7593, 7316, + 12505, 3803, 7593, 7568, + 12505, 3803, 7593, 7682, + 12505, 3803, 7593, 9162, + 12505, 3803, 7593, 9270, + 12505, 3803, 7593, 9530, + 12505, 3803, 7593, 9808, + 12505, 3803, 7683, 8774, + 12505, 3803, 8325, 477, 8774, + 12505, 3803, 8325, 2217, 8774, + 12505, 3803, 8325, 2413, 8774, + 12505, 3803, 8325, 7023, 8774, + 12505, 3803, 8325, 7202, + 12505, 3803, 8325, 7593, 0, + 12505, 3803, 8325, 7593, 2, + 12505, 3803, 8325, 7593, 4, + 12505, 3803, 8325, 7593, 6, + 12505, 3803, 8325, 7593, 8, + 12505, 3803, 8325, 7593, 10, + 12505, 3803, 8325, 7593, 12, + 12505, 3803, 8325, 7593, 14, + 12505, 3803, 8325, 7593, 16, + 12505, 3803, 8325, 7593, 18, + 12505, 3803, 8325, 7593, 20, + 12505, 3803, 8325, 7593, 22, + 12505, 3803, 8325, 7593, 24, + 12505, 3803, 8325, 7593, 26, + 12505, 3803, 8325, 7593, 28, + 12505, 3803, 8325, 7593, 30, + 12505, 3803, 8325, 7593, 32, + 12505, 3803, 8325, 7593, 34, + 12505, 3803, 8325, 7593, 36, + 12505, 3803, 8325, 7593, 38, + 12505, 3803, 8325, 7593, 40, + 12505, 3803, 8325, 7593, 42, + 12505, 3803, 8325, 7593, 44, + 12505, 3803, 8325, 7593, 46, + 12505, 3803, 8325, 7593, 48, + 12505, 3803, 8325, 7593, 50, + 12505, 3803, 8325, 7593, 384, + 12505, 3803, 8325, 7593, 416, + 12505, 3803, 8325, 7593, 476, + 12505, 3803, 8325, 7593, 644, + 12505, 3803, 8325, 7593, 888, + 12505, 3803, 8325, 7593, 1128, + 12505, 3803, 8325, 7593, 2216, + 12505, 3803, 8325, 7593, 2250, + 12505, 3803, 8325, 7593, 2412, + 12505, 3803, 8325, 7593, 2658, + 12505, 3803, 8325, 7593, 3774, + 12505, 3803, 8325, 7593, 4614, + 12505, 3803, 8325, 7593, 6262, + 12505, 3803, 8325, 7593, 6406, + 12505, 3803, 8325, 7593, 6674, + 12505, 3803, 8325, 7593, 6789, 7568, + 12505, 3803, 8325, 7593, 6824, + 12505, 3803, 8325, 7593, 7022, + 12505, 3803, 8325, 7593, 7080, + 12505, 3803, 8325, 7593, 7316, + 12505, 3803, 8325, 7593, 7568, + 12505, 3803, 8325, 7593, 7682, + 12505, 3803, 8325, 7593, 9270, + 12505, 3803, 8325, 7593, 9530, + 12505, 3803, 8325, 7593, 9808, + 12505, 3803, 8325, 7683, 8774, + 12505, 3803, 8325, 9063, 0, + 12505, 3803, 8325, 9063, 2, + 12505, 3803, 8325, 9063, 4, + 12505, 3803, 8325, 9063, 6, + 12505, 3803, 8325, 9063, 8, + 12505, 3803, 8325, 9063, 10, + 12505, 3803, 8325, 9063, 12, + 12505, 3803, 8325, 9063, 14, + 12505, 3803, 8325, 9063, 16, + 12505, 3803, 8325, 9063, 18, + 12505, 3803, 8325, 9063, 20, + 12505, 3803, 8325, 9063, 22, + 12505, 3803, 8325, 9063, 24, + 12505, 3803, 8325, 9063, 26, + 12505, 3803, 8325, 9063, 28, + 12505, 3803, 8325, 9063, 30, + 12505, 3803, 8325, 9063, 32, + 12505, 3803, 8325, 9063, 34, + 12505, 3803, 8325, 9063, 36, + 12505, 3803, 8325, 9063, 38, + 12505, 3803, 8325, 9063, 40, + 12505, 3803, 8325, 9063, 42, + 12505, 3803, 8325, 9063, 44, + 12505, 3803, 8325, 9063, 46, + 12505, 3803, 8325, 9063, 48, + 12505, 3803, 8325, 9063, 50, + 12505, 3803, 8325, 9063, 384, + 12505, 3803, 8325, 9063, 416, + 12505, 3803, 8325, 9063, 476, + 12505, 3803, 8325, 9063, 644, + 12505, 3803, 8325, 9063, 888, + 12505, 3803, 8325, 9063, 1128, + 12505, 3803, 8325, 9063, 2216, + 12505, 3803, 8325, 9063, 2250, + 12505, 3803, 8325, 9063, 2412, + 12505, 3803, 8325, 9063, 2658, + 12505, 3803, 8325, 9063, 3774, + 12505, 3803, 8325, 9063, 4614, + 12505, 3803, 8325, 9063, 6262, + 12505, 3803, 8325, 9063, 6406, + 12505, 3803, 8325, 9063, 6674, + 12505, 3803, 8325, 9063, 6824, + 12505, 3803, 8325, 9063, 7022, + 12505, 3803, 8325, 9063, 7080, + 12505, 3803, 8325, 9063, 7316, + 12505, 3803, 8325, 9063, 7568, + 12505, 3803, 8325, 9063, 7682, + 12505, 3803, 8325, 9063, 7683, 8774, + 12505, 3803, 8325, 9063, 9270, + 12505, 3803, 8325, 9063, 9530, + 12505, 3803, 8325, 9063, 9808, + 12505, 3803, 8325, 9271, 8774, + 12505, 3803, 8325, 9573, 12432, + 12505, 3803, 8679, 7593, 0, + 12505, 3803, 8679, 7593, 2, + 12505, 3803, 8679, 7593, 4, + 12505, 3803, 8679, 7593, 6, + 12505, 3803, 8679, 7593, 8, + 12505, 3803, 8679, 7593, 10, + 12505, 3803, 8679, 7593, 12, + 12505, 3803, 8679, 7593, 14, + 12505, 3803, 8679, 7593, 16, + 12505, 3803, 8679, 7593, 18, + 12505, 3803, 8679, 7593, 20, + 12505, 3803, 8679, 7593, 22, + 12505, 3803, 8679, 7593, 24, + 12505, 3803, 8679, 7593, 26, + 12505, 3803, 8679, 7593, 28, + 12505, 3803, 8679, 7593, 30, + 12505, 3803, 8679, 7593, 32, + 12505, 3803, 8679, 7593, 34, + 12505, 3803, 8679, 7593, 36, + 12505, 3803, 8679, 7593, 38, + 12505, 3803, 8679, 7593, 40, + 12505, 3803, 8679, 7593, 42, + 12505, 3803, 8679, 7593, 44, + 12505, 3803, 8679, 7593, 46, + 12505, 3803, 8679, 7593, 48, + 12505, 3803, 8679, 7593, 50, + 12505, 3803, 8679, 9063, 0, + 12505, 3803, 8679, 9063, 2, + 12505, 3803, 8679, 9063, 4, + 12505, 3803, 8679, 9063, 6, + 12505, 3803, 8679, 9063, 8, + 12505, 3803, 8679, 9063, 10, + 12505, 3803, 8679, 9063, 12, + 12505, 3803, 8679, 9063, 14, + 12505, 3803, 8679, 9063, 16, + 12505, 3803, 8679, 9063, 18, + 12505, 3803, 8679, 9063, 20, + 12505, 3803, 8679, 9063, 22, + 12505, 3803, 8679, 9063, 24, + 12505, 3803, 8679, 9063, 26, + 12505, 3803, 8679, 9063, 28, + 12505, 3803, 8679, 9063, 30, + 12505, 3803, 8679, 9063, 32, + 12505, 3803, 8679, 9063, 34, + 12505, 3803, 8679, 9063, 36, + 12505, 3803, 8679, 9063, 38, + 12505, 3803, 8679, 9063, 40, + 12505, 3803, 8679, 9063, 42, + 12505, 3803, 8679, 9063, 44, + 12505, 3803, 8679, 9063, 46, + 12505, 3803, 8679, 9063, 48, + 12505, 3803, 8679, 9063, 50, + 12505, 3803, 9063, 0, + 12505, 3803, 9063, 2, + 12505, 3803, 9063, 4, + 12505, 3803, 9063, 6, + 12505, 3803, 9063, 8, + 12505, 3803, 9063, 10, + 12505, 3803, 9063, 12, + 12505, 3803, 9063, 14, + 12505, 3803, 9063, 16, + 12505, 3803, 9063, 18, + 12505, 3803, 9063, 20, + 12505, 3803, 9063, 22, + 12505, 3803, 9063, 24, + 12505, 3803, 9063, 26, + 12505, 3803, 9063, 28, + 12505, 3803, 9063, 30, + 12505, 3803, 9063, 32, + 12505, 3803, 9063, 34, + 12505, 3803, 9063, 36, + 12505, 3803, 9063, 38, + 12505, 3803, 9063, 40, + 12505, 3803, 9063, 42, + 12505, 3803, 9063, 44, + 12505, 3803, 9063, 46, + 12505, 3803, 9063, 48, + 12505, 3803, 9063, 50, + 12505, 3803, 9063, 384, + 12505, 3803, 9063, 416, + 12505, 3803, 9063, 476, + 12505, 3803, 9063, 644, + 12505, 3803, 9063, 888, + 12505, 3803, 9063, 1128, + 12505, 3803, 9063, 2216, + 12505, 3803, 9063, 2250, + 12505, 3803, 9063, 2412, + 12505, 3803, 9063, 2658, + 12505, 3803, 9063, 3774, + 12505, 3803, 9063, 4614, + 12505, 3803, 9063, 6262, + 12505, 3803, 9063, 6406, + 12505, 3803, 9063, 6674, + 12505, 3803, 9063, 6824, + 12505, 3803, 9063, 7022, + 12505, 3803, 9063, 7080, + 12505, 3803, 9063, 7316, + 12505, 3803, 9063, 7568, + 12505, 3803, 9063, 7682, + 12505, 3803, 9063, 7683, 8774, + 12505, 3803, 9063, 9162, + 12505, 3803, 9063, 9270, + 12505, 3803, 9063, 9530, + 12505, 3803, 9063, 9808, + 12505, 3803, 9271, 8774, + 12505, 3803, 9295, 7593, 0, + 12505, 3803, 9295, 7593, 2, + 12505, 3803, 9295, 7593, 4, + 12505, 3803, 9295, 7593, 6, + 12505, 3803, 9295, 7593, 8, + 12505, 3803, 9295, 7593, 10, + 12505, 3803, 9295, 7593, 12, + 12505, 3803, 9295, 7593, 14, + 12505, 3803, 9295, 7593, 16, + 12505, 3803, 9295, 7593, 18, + 12505, 3803, 9295, 7593, 20, + 12505, 3803, 9295, 7593, 22, + 12505, 3803, 9295, 7593, 24, + 12505, 3803, 9295, 7593, 26, + 12505, 3803, 9295, 7593, 28, + 12505, 3803, 9295, 7593, 30, + 12505, 3803, 9295, 7593, 32, + 12505, 3803, 9295, 7593, 34, + 12505, 3803, 9295, 7593, 36, + 12505, 3803, 9295, 7593, 38, + 12505, 3803, 9295, 7593, 40, + 12505, 3803, 9295, 7593, 42, + 12505, 3803, 9295, 7593, 44, + 12505, 3803, 9295, 7593, 46, + 12505, 3803, 9295, 7593, 48, + 12505, 3803, 9295, 7593, 50, + 12505, 3803, 9295, 9063, 0, + 12505, 3803, 9295, 9063, 2, + 12505, 3803, 9295, 9063, 4, + 12505, 3803, 9295, 9063, 6, + 12505, 3803, 9295, 9063, 8, + 12505, 3803, 9295, 9063, 10, + 12505, 3803, 9295, 9063, 12, + 12505, 3803, 9295, 9063, 14, + 12505, 3803, 9295, 9063, 16, + 12505, 3803, 9295, 9063, 18, + 12505, 3803, 9295, 9063, 20, + 12505, 3803, 9295, 9063, 22, + 12505, 3803, 9295, 9063, 24, + 12505, 3803, 9295, 9063, 26, + 12505, 3803, 9295, 9063, 28, + 12505, 3803, 9295, 9063, 30, + 12505, 3803, 9295, 9063, 32, + 12505, 3803, 9295, 9063, 34, + 12505, 3803, 9295, 9063, 36, + 12505, 3803, 9295, 9063, 38, + 12505, 3803, 9295, 9063, 40, + 12505, 3803, 9295, 9063, 42, + 12505, 3803, 9295, 9063, 44, + 12505, 3803, 9295, 9063, 46, + 12505, 3803, 9295, 9063, 48, + 12505, 3803, 9295, 9063, 50, + 12505, 3803, 9573, 12432, + 12505, 4849, 6409, 9050, + 12505, 4849, 7821, 8745, 9050, + 12505, 4849, 7821, 10637, 7533, 9050, + 12505, 4849, 8153, 6409, 9050, + 12505, 4849, 10997, 12114, + 12505, 7443, 6409, 9050, + 12505, 7443, 7821, 8745, 9050, + 12505, 7443, 7821, 10637, 7533, 9050, + 12505, 7443, 8153, 6409, 9050, + 12505, 7443, 10997, 12114, + 12505, 8325, 477, 8774, + 12505, 8325, 2217, 8774, + 12505, 8325, 2413, 8774, + 12505, 8325, 7023, 8774, + 12505, 8325, 7202, + 12505, 8325, 7593, 0, + 12505, 8325, 7593, 2, + 12505, 8325, 7593, 4, + 12505, 8325, 7593, 6, + 12505, 8325, 7593, 8, + 12505, 8325, 7593, 10, + 12505, 8325, 7593, 12, + 12505, 8325, 7593, 16, + 12505, 8325, 7593, 18, + 12505, 8325, 7593, 20, + 12505, 8325, 7593, 22, + 12505, 8325, 7593, 24, + 12505, 8325, 7593, 26, + 12505, 8325, 7593, 28, + 12505, 8325, 7593, 30, + 12505, 8325, 7593, 32, + 12505, 8325, 7593, 34, + 12505, 8325, 7593, 36, + 12505, 8325, 7593, 38, + 12505, 8325, 7593, 40, + 12505, 8325, 7593, 42, + 12505, 8325, 7593, 44, + 12505, 8325, 7593, 46, + 12505, 8325, 7593, 48, + 12505, 8325, 7593, 50, + 12505, 8325, 7593, 384, + 12505, 8325, 7593, 416, + 12505, 8325, 7593, 476, + 12505, 8325, 7593, 644, + 12505, 8325, 7593, 888, + 12505, 8325, 7593, 1128, + 12505, 8325, 7593, 2216, + 12505, 8325, 7593, 2250, + 12505, 8325, 7593, 2412, + 12505, 8325, 7593, 2658, + 12505, 8325, 7593, 3774, + 12505, 8325, 7593, 4614, + 12505, 8325, 7593, 6262, + 12505, 8325, 7593, 6406, + 12505, 8325, 7593, 6674, + 12505, 8325, 7593, 6789, 7568, + 12505, 8325, 7593, 6824, + 12505, 8325, 7593, 7022, + 12505, 8325, 7593, 7080, + 12505, 8325, 7593, 7316, + 12505, 8325, 7593, 7568, + 12505, 8325, 7593, 7682, + 12505, 8325, 7593, 9185, 16, + 12505, 8325, 7593, 9185, 18, + 12505, 8325, 7593, 9270, + 12505, 8325, 7593, 9530, + 12505, 8325, 7593, 9808, + 12505, 8325, 7683, 8774, + 12505, 8325, 9063, 0, + 12505, 8325, 9063, 2, + 12505, 8325, 9063, 4, + 12505, 8325, 9063, 6, + 12505, 8325, 9063, 8, + 12505, 8325, 9063, 10, + 12505, 8325, 9063, 12, + 12505, 8325, 9063, 14, + 12505, 8325, 9063, 16, + 12505, 8325, 9063, 18, + 12505, 8325, 9063, 20, + 12505, 8325, 9063, 22, + 12505, 8325, 9063, 24, + 12505, 8325, 9063, 26, + 12505, 8325, 9063, 28, + 12505, 8325, 9063, 30, + 12505, 8325, 9063, 32, + 12505, 8325, 9063, 34, + 12505, 8325, 9063, 36, + 12505, 8325, 9063, 38, + 12505, 8325, 9063, 40, + 12505, 8325, 9063, 42, + 12505, 8325, 9063, 44, + 12505, 8325, 9063, 46, + 12505, 8325, 9063, 48, + 12505, 8325, 9063, 50, + 12505, 8325, 9063, 384, + 12505, 8325, 9063, 416, + 12505, 8325, 9063, 476, + 12505, 8325, 9063, 644, + 12505, 8325, 9063, 888, + 12505, 8325, 9063, 1128, + 12505, 8325, 9063, 2216, + 12505, 8325, 9063, 2250, + 12505, 8325, 9063, 2412, + 12505, 8325, 9063, 2658, + 12505, 8325, 9063, 3774, + 12505, 8325, 9063, 4614, + 12505, 8325, 9063, 6262, + 12505, 8325, 9063, 6406, + 12505, 8325, 9063, 6674, + 12505, 8325, 9063, 6824, + 12505, 8325, 9063, 7022, + 12505, 8325, 9063, 7080, + 12505, 8325, 9063, 7316, + 12505, 8325, 9063, 7568, + 12505, 8325, 9063, 7682, + 12505, 8325, 9063, 7683, 8774, + 12505, 8325, 9063, 9270, + 12505, 8325, 9063, 9530, + 12505, 8325, 9063, 9808, + 12505, 8325, 9271, 8774, + 12505, 8325, 9573, 12432, + 12505, 8679, 7593, 0, + 12505, 8679, 7593, 2, + 12505, 8679, 7593, 4, + 12505, 8679, 7593, 6, + 12505, 8679, 7593, 10, + 12505, 8679, 7593, 14, + 12505, 8679, 7593, 16, + 12505, 8679, 7593, 18, + 12505, 8679, 7593, 20, + 12505, 8679, 7593, 22, + 12505, 8679, 7593, 24, + 12505, 8679, 7593, 26, + 12505, 8679, 7593, 30, + 12505, 8679, 7593, 32, + 12505, 8679, 7593, 34, + 12505, 8679, 7593, 36, + 12505, 8679, 7593, 38, + 12505, 8679, 7593, 40, + 12505, 8679, 7593, 42, + 12505, 8679, 7593, 44, + 12505, 8679, 7593, 46, + 12505, 8679, 7593, 48, + 12505, 8679, 7593, 50, + 12505, 8679, 9063, 0, + 12505, 8679, 9063, 4, + 12505, 8679, 9063, 6, + 12505, 8679, 9063, 12, + 12505, 8679, 9063, 18, + 12505, 8679, 9063, 20, + 12505, 8679, 9063, 26, + 12505, 8679, 9063, 28, + 12505, 8679, 9063, 30, + 12505, 8679, 9063, 32, + 12505, 8679, 9063, 36, + 12505, 8679, 9063, 38, + 12505, 8679, 9063, 40, + 12505, 8679, 9063, 42, + 12505, 8679, 9063, 44, + 12505, 8679, 9063, 46, + 12505, 8679, 9063, 48, + 12505, 8679, 9063, 50, + 12505, 9295, 7593, 0, + 12505, 9295, 7593, 2, + 12505, 9295, 7593, 4, + 12505, 9295, 7593, 6, + 12505, 9295, 7593, 8, + 12505, 9295, 7593, 10, + 12505, 9295, 7593, 12, + 12505, 9295, 7593, 14, + 12505, 9295, 7593, 16, + 12505, 9295, 7593, 18, + 12505, 9295, 7593, 20, + 12505, 9295, 7593, 22, + 12505, 9295, 7593, 24, + 12505, 9295, 7593, 26, + 12505, 9295, 7593, 28, + 12505, 9295, 7593, 30, + 12505, 9295, 7593, 32, + 12505, 9295, 7593, 34, + 12505, 9295, 7593, 36, + 12505, 9295, 7593, 38, + 12505, 9295, 7593, 40, + 12505, 9295, 7593, 42, + 12505, 9295, 7593, 44, + 12505, 9295, 7593, 46, + 12505, 9295, 7593, 48, + 12505, 9295, 7593, 50, + 12505, 9295, 9063, 0, + 12505, 9295, 9063, 2, + 12505, 9295, 9063, 6, + 12505, 9295, 9063, 8, + 12505, 9295, 9063, 10, + 12505, 9295, 9063, 12, + 12505, 9295, 9063, 18, + 12505, 9295, 9063, 20, + 12505, 9295, 9063, 22, + 12505, 9295, 9063, 24, + 12505, 9295, 9063, 26, + 12505, 9295, 9063, 28, + 12505, 9295, 9063, 30, + 12505, 9295, 9063, 32, + 12505, 9295, 9063, 36, + 12505, 9295, 9063, 38, + 12505, 9295, 9063, 40, + 12505, 9295, 9063, 42, + 12505, 9295, 9063, 44, + 12505, 9295, 9063, 46, + 12505, 9295, 9063, 48, + 12505, 11129, 6689, 2170, + 12505, 11129, 6689, 2540, + 12505, 11129, 6689, 2778, + 12505, 11129, 6689, 4200, + 12505, 11129, 6689, 4214, + 12505, 11129, 6689, 5190, + 12505, 11129, 6689, 6260, + 12505, 11129, 6689, 6722, + 12505, 11129, 6689, 7508, + 12505, 11129, 6689, 7694, + 12505, 11129, 7593, 0, + 12505, 11129, 7593, 2, + 12505, 11129, 7593, 4, + 12505, 11129, 7593, 6, + 12505, 11129, 7593, 8, + 12505, 11129, 7593, 10, + 12505, 11129, 7593, 12, + 12505, 11129, 7593, 14, + 12505, 11129, 7593, 16, + 12505, 11129, 7593, 18, + 12505, 11129, 7593, 20, + 12505, 11129, 7593, 22, + 12505, 11129, 7593, 24, + 12505, 11129, 7593, 26, + 12505, 11129, 7593, 28, + 12505, 11129, 7593, 30, + 12505, 11129, 7593, 32, + 12505, 11129, 7593, 34, + 12505, 11129, 7593, 36, + 12505, 11129, 7593, 38, + 12505, 11129, 7593, 40, + 12505, 11129, 7593, 42, + 12505, 11129, 7593, 44, + 12505, 11129, 7593, 46, + 12505, 11129, 7593, 48, + 12505, 11129, 7593, 50, + 12505, 11129, 9063, 0, + 12505, 11129, 9063, 2, + 12505, 11129, 9063, 4, + 12505, 11129, 9063, 6, + 12505, 11129, 9063, 8, + 12505, 11129, 9063, 10, + 12505, 11129, 9063, 12, + 12505, 11129, 9063, 14, + 12505, 11129, 9063, 16, + 12505, 11129, 9063, 18, + 12505, 11129, 9063, 20, + 12505, 11129, 9063, 22, + 12505, 11129, 9063, 24, + 12505, 11129, 9063, 26, + 12505, 11129, 9063, 28, + 12505, 11129, 9063, 30, + 12505, 11129, 9063, 32, + 12505, 11129, 9063, 34, + 12505, 11129, 9063, 36, + 12505, 11129, 9063, 38, + 12505, 11129, 9063, 40, + 12505, 11129, 9063, 42, + 12505, 11129, 9063, 44, + 12505, 11129, 9063, 46, + 12505, 11129, 9063, 48, + 12505, 11129, 9063, 50, + 12505, 11767, 3803, 477, 8774, + 12505, 11767, 3803, 2217, 8774, + 12505, 11767, 3803, 2413, 8774, + 12505, 11767, 3803, 6689, 2170, + 12505, 11767, 3803, 6689, 2540, + 12505, 11767, 3803, 6689, 2778, + 12505, 11767, 3803, 6689, 4200, + 12505, 11767, 3803, 6689, 4214, + 12505, 11767, 3803, 6689, 5190, + 12505, 11767, 3803, 6689, 6260, + 12505, 11767, 3803, 6689, 6722, + 12505, 11767, 3803, 6689, 7508, + 12505, 11767, 3803, 6689, 7694, + 12505, 11767, 3803, 7023, 8774, + 12505, 11767, 3803, 7202, + 12505, 11767, 3803, 7593, 0, + 12505, 11767, 3803, 7593, 2, + 12505, 11767, 3803, 7593, 4, + 12505, 11767, 3803, 7593, 6, + 12505, 11767, 3803, 7593, 8, + 12505, 11767, 3803, 7593, 10, + 12505, 11767, 3803, 7593, 12, + 12505, 11767, 3803, 7593, 14, + 12505, 11767, 3803, 7593, 16, + 12505, 11767, 3803, 7593, 18, + 12505, 11767, 3803, 7593, 20, + 12505, 11767, 3803, 7593, 22, + 12505, 11767, 3803, 7593, 24, + 12505, 11767, 3803, 7593, 26, + 12505, 11767, 3803, 7593, 28, + 12505, 11767, 3803, 7593, 30, + 12505, 11767, 3803, 7593, 32, + 12505, 11767, 3803, 7593, 34, + 12505, 11767, 3803, 7593, 36, + 12505, 11767, 3803, 7593, 38, + 12505, 11767, 3803, 7593, 40, + 12505, 11767, 3803, 7593, 42, + 12505, 11767, 3803, 7593, 44, + 12505, 11767, 3803, 7593, 46, + 12505, 11767, 3803, 7593, 48, + 12505, 11767, 3803, 7593, 50, + 12505, 11767, 3803, 7593, 384, + 12505, 11767, 3803, 7593, 416, + 12505, 11767, 3803, 7593, 476, + 12505, 11767, 3803, 7593, 644, + 12505, 11767, 3803, 7593, 888, + 12505, 11767, 3803, 7593, 1128, + 12505, 11767, 3803, 7593, 2216, + 12505, 11767, 3803, 7593, 2250, + 12505, 11767, 3803, 7593, 2412, + 12505, 11767, 3803, 7593, 2658, + 12505, 11767, 3803, 7593, 3774, + 12505, 11767, 3803, 7593, 4614, + 12505, 11767, 3803, 7593, 6262, + 12505, 11767, 3803, 7593, 6406, + 12505, 11767, 3803, 7593, 6674, + 12505, 11767, 3803, 7593, 6789, 7568, + 12505, 11767, 3803, 7593, 6824, + 12505, 11767, 3803, 7593, 7022, + 12505, 11767, 3803, 7593, 7080, + 12505, 11767, 3803, 7593, 7316, + 12505, 11767, 3803, 7593, 7568, + 12505, 11767, 3803, 7593, 7682, + 12505, 11767, 3803, 7593, 9270, + 12505, 11767, 3803, 7593, 9530, + 12505, 11767, 3803, 7593, 9808, + 12505, 11767, 3803, 7683, 8774, + 12505, 11767, 3803, 8325, 477, 8774, + 12505, 11767, 3803, 8325, 2217, 8774, + 12505, 11767, 3803, 8325, 2413, 8774, + 12505, 11767, 3803, 8325, 7023, 8774, + 12505, 11767, 3803, 8325, 7202, + 12505, 11767, 3803, 8325, 7593, 0, + 12505, 11767, 3803, 8325, 7593, 2, + 12505, 11767, 3803, 8325, 7593, 4, + 12505, 11767, 3803, 8325, 7593, 6, + 12505, 11767, 3803, 8325, 7593, 8, + 12505, 11767, 3803, 8325, 7593, 10, + 12505, 11767, 3803, 8325, 7593, 12, + 12505, 11767, 3803, 8325, 7593, 14, + 12505, 11767, 3803, 8325, 7593, 16, + 12505, 11767, 3803, 8325, 7593, 18, + 12505, 11767, 3803, 8325, 7593, 20, + 12505, 11767, 3803, 8325, 7593, 22, + 12505, 11767, 3803, 8325, 7593, 24, + 12505, 11767, 3803, 8325, 7593, 26, + 12505, 11767, 3803, 8325, 7593, 28, + 12505, 11767, 3803, 8325, 7593, 30, + 12505, 11767, 3803, 8325, 7593, 32, + 12505, 11767, 3803, 8325, 7593, 34, + 12505, 11767, 3803, 8325, 7593, 36, + 12505, 11767, 3803, 8325, 7593, 38, + 12505, 11767, 3803, 8325, 7593, 40, + 12505, 11767, 3803, 8325, 7593, 42, + 12505, 11767, 3803, 8325, 7593, 44, + 12505, 11767, 3803, 8325, 7593, 46, + 12505, 11767, 3803, 8325, 7593, 48, + 12505, 11767, 3803, 8325, 7593, 50, + 12505, 11767, 3803, 8325, 7593, 384, + 12505, 11767, 3803, 8325, 7593, 416, + 12505, 11767, 3803, 8325, 7593, 476, + 12505, 11767, 3803, 8325, 7593, 644, + 12505, 11767, 3803, 8325, 7593, 888, + 12505, 11767, 3803, 8325, 7593, 1128, + 12505, 11767, 3803, 8325, 7593, 2216, + 12505, 11767, 3803, 8325, 7593, 2250, + 12505, 11767, 3803, 8325, 7593, 2412, + 12505, 11767, 3803, 8325, 7593, 2658, + 12505, 11767, 3803, 8325, 7593, 3774, + 12505, 11767, 3803, 8325, 7593, 4614, + 12505, 11767, 3803, 8325, 7593, 6262, + 12505, 11767, 3803, 8325, 7593, 6406, + 12505, 11767, 3803, 8325, 7593, 6674, + 12505, 11767, 3803, 8325, 7593, 6789, 7568, + 12505, 11767, 3803, 8325, 7593, 6824, + 12505, 11767, 3803, 8325, 7593, 7022, + 12505, 11767, 3803, 8325, 7593, 7080, + 12505, 11767, 3803, 8325, 7593, 7316, + 12505, 11767, 3803, 8325, 7593, 7568, + 12505, 11767, 3803, 8325, 7593, 7682, + 12505, 11767, 3803, 8325, 7593, 9270, + 12505, 11767, 3803, 8325, 7593, 9530, + 12505, 11767, 3803, 8325, 7593, 9808, + 12505, 11767, 3803, 8325, 7683, 8774, + 12505, 11767, 3803, 8325, 9063, 0, + 12505, 11767, 3803, 8325, 9063, 2, + 12505, 11767, 3803, 8325, 9063, 4, + 12505, 11767, 3803, 8325, 9063, 6, + 12505, 11767, 3803, 8325, 9063, 8, + 12505, 11767, 3803, 8325, 9063, 10, + 12505, 11767, 3803, 8325, 9063, 12, + 12505, 11767, 3803, 8325, 9063, 14, + 12505, 11767, 3803, 8325, 9063, 16, + 12505, 11767, 3803, 8325, 9063, 18, + 12505, 11767, 3803, 8325, 9063, 20, + 12505, 11767, 3803, 8325, 9063, 22, + 12505, 11767, 3803, 8325, 9063, 24, + 12505, 11767, 3803, 8325, 9063, 26, + 12505, 11767, 3803, 8325, 9063, 28, + 12505, 11767, 3803, 8325, 9063, 30, + 12505, 11767, 3803, 8325, 9063, 32, + 12505, 11767, 3803, 8325, 9063, 34, + 12505, 11767, 3803, 8325, 9063, 36, + 12505, 11767, 3803, 8325, 9063, 38, + 12505, 11767, 3803, 8325, 9063, 40, + 12505, 11767, 3803, 8325, 9063, 42, + 12505, 11767, 3803, 8325, 9063, 44, + 12505, 11767, 3803, 8325, 9063, 46, + 12505, 11767, 3803, 8325, 9063, 48, + 12505, 11767, 3803, 8325, 9063, 50, + 12505, 11767, 3803, 8325, 9063, 384, + 12505, 11767, 3803, 8325, 9063, 416, + 12505, 11767, 3803, 8325, 9063, 476, + 12505, 11767, 3803, 8325, 9063, 644, + 12505, 11767, 3803, 8325, 9063, 888, + 12505, 11767, 3803, 8325, 9063, 1128, + 12505, 11767, 3803, 8325, 9063, 2216, + 12505, 11767, 3803, 8325, 9063, 2250, + 12505, 11767, 3803, 8325, 9063, 2412, + 12505, 11767, 3803, 8325, 9063, 2658, + 12505, 11767, 3803, 8325, 9063, 3774, + 12505, 11767, 3803, 8325, 9063, 4614, + 12505, 11767, 3803, 8325, 9063, 6262, + 12505, 11767, 3803, 8325, 9063, 6406, + 12505, 11767, 3803, 8325, 9063, 6674, + 12505, 11767, 3803, 8325, 9063, 6824, + 12505, 11767, 3803, 8325, 9063, 7022, + 12505, 11767, 3803, 8325, 9063, 7080, + 12505, 11767, 3803, 8325, 9063, 7316, + 12505, 11767, 3803, 8325, 9063, 7568, + 12505, 11767, 3803, 8325, 9063, 7682, + 12505, 11767, 3803, 8325, 9063, 7683, 8774, + 12505, 11767, 3803, 8325, 9063, 9270, + 12505, 11767, 3803, 8325, 9063, 9530, + 12505, 11767, 3803, 8325, 9063, 9808, + 12505, 11767, 3803, 8325, 9271, 8774, + 12505, 11767, 3803, 8325, 9573, 12432, + 12505, 11767, 3803, 9063, 0, + 12505, 11767, 3803, 9063, 2, + 12505, 11767, 3803, 9063, 4, + 12505, 11767, 3803, 9063, 6, + 12505, 11767, 3803, 9063, 8, + 12505, 11767, 3803, 9063, 10, + 12505, 11767, 3803, 9063, 12, + 12505, 11767, 3803, 9063, 14, + 12505, 11767, 3803, 9063, 16, + 12505, 11767, 3803, 9063, 18, + 12505, 11767, 3803, 9063, 20, + 12505, 11767, 3803, 9063, 22, + 12505, 11767, 3803, 9063, 24, + 12505, 11767, 3803, 9063, 26, + 12505, 11767, 3803, 9063, 28, + 12505, 11767, 3803, 9063, 30, + 12505, 11767, 3803, 9063, 32, + 12505, 11767, 3803, 9063, 34, + 12505, 11767, 3803, 9063, 36, + 12505, 11767, 3803, 9063, 38, + 12505, 11767, 3803, 9063, 40, + 12505, 11767, 3803, 9063, 42, + 12505, 11767, 3803, 9063, 44, + 12505, 11767, 3803, 9063, 46, + 12505, 11767, 3803, 9063, 48, + 12505, 11767, 3803, 9063, 50, + 12505, 11767, 3803, 9063, 384, + 12505, 11767, 3803, 9063, 416, + 12505, 11767, 3803, 9063, 476, + 12505, 11767, 3803, 9063, 644, + 12505, 11767, 3803, 9063, 888, + 12505, 11767, 3803, 9063, 1128, + 12505, 11767, 3803, 9063, 2216, + 12505, 11767, 3803, 9063, 2250, + 12505, 11767, 3803, 9063, 2412, + 12505, 11767, 3803, 9063, 2658, + 12505, 11767, 3803, 9063, 3774, + 12505, 11767, 3803, 9063, 4614, + 12505, 11767, 3803, 9063, 6262, + 12505, 11767, 3803, 9063, 6406, + 12505, 11767, 3803, 9063, 6674, + 12505, 11767, 3803, 9063, 6824, + 12505, 11767, 3803, 9063, 7022, + 12505, 11767, 3803, 9063, 7080, + 12505, 11767, 3803, 9063, 7316, + 12505, 11767, 3803, 9063, 7568, + 12505, 11767, 3803, 9063, 7682, + 12505, 11767, 3803, 9063, 7683, 8774, + 12505, 11767, 3803, 9063, 9270, + 12505, 11767, 3803, 9063, 9530, + 12505, 11767, 3803, 9063, 9808, + 12505, 11767, 3803, 9271, 8774, + 12505, 11767, 3803, 9573, 12432, + 12505, 11767, 6689, 2170, + 12505, 11767, 6689, 2540, + 12505, 11767, 6689, 2778, + 12505, 11767, 6689, 4200, + 12505, 11767, 6689, 4214, + 12505, 11767, 6689, 5190, + 12505, 11767, 6689, 6260, + 12505, 11767, 6689, 6722, + 12505, 11767, 6689, 7508, + 12505, 11767, 6689, 7694, + 12505, 11767, 7593, 0, + 12505, 11767, 7593, 2, + 12505, 11767, 7593, 4, + 12505, 11767, 7593, 6, + 12505, 11767, 7593, 8, + 12505, 11767, 7593, 10, + 12505, 11767, 7593, 12, + 12505, 11767, 7593, 14, + 12505, 11767, 7593, 16, + 12505, 11767, 7593, 18, + 12505, 11767, 7593, 20, + 12505, 11767, 7593, 22, + 12505, 11767, 7593, 24, + 12505, 11767, 7593, 26, + 12505, 11767, 7593, 28, + 12505, 11767, 7593, 30, + 12505, 11767, 7593, 32, + 12505, 11767, 7593, 34, + 12505, 11767, 7593, 36, + 12505, 11767, 7593, 38, + 12505, 11767, 7593, 40, + 12505, 11767, 7593, 42, + 12505, 11767, 7593, 44, + 12505, 11767, 7593, 46, + 12505, 11767, 7593, 48, + 12505, 11767, 7593, 50, + 12505, 11767, 8325, 7593, 0, + 12505, 11767, 8325, 7593, 2, + 12505, 11767, 8325, 7593, 4, + 12505, 11767, 8325, 7593, 6, + 12505, 11767, 8325, 7593, 8, + 12505, 11767, 8325, 7593, 10, + 12505, 11767, 8325, 7593, 12, + 12505, 11767, 8325, 7593, 14, + 12505, 11767, 8325, 7593, 16, + 12505, 11767, 8325, 7593, 18, + 12505, 11767, 8325, 7593, 20, + 12505, 11767, 8325, 7593, 22, + 12505, 11767, 8325, 7593, 24, + 12505, 11767, 8325, 7593, 26, + 12505, 11767, 8325, 7593, 28, + 12505, 11767, 8325, 7593, 30, + 12505, 11767, 8325, 7593, 32, + 12505, 11767, 8325, 7593, 34, + 12505, 11767, 8325, 7593, 36, + 12505, 11767, 8325, 7593, 38, + 12505, 11767, 8325, 7593, 40, + 12505, 11767, 8325, 7593, 42, + 12505, 11767, 8325, 7593, 44, + 12505, 11767, 8325, 7593, 46, + 12505, 11767, 8325, 7593, 48, + 12505, 11767, 8325, 7593, 50, + 12505, 11767, 8325, 9063, 0, + 12505, 11767, 8325, 9063, 2, + 12505, 11767, 8325, 9063, 4, + 12505, 11767, 8325, 9063, 6, + 12505, 11767, 8325, 9063, 8, + 12505, 11767, 8325, 9063, 10, + 12505, 11767, 8325, 9063, 12, + 12505, 11767, 8325, 9063, 14, + 12505, 11767, 8325, 9063, 16, + 12505, 11767, 8325, 9063, 18, + 12505, 11767, 8325, 9063, 20, + 12505, 11767, 8325, 9063, 22, + 12505, 11767, 8325, 9063, 24, + 12505, 11767, 8325, 9063, 26, + 12505, 11767, 8325, 9063, 28, + 12505, 11767, 8325, 9063, 30, + 12505, 11767, 8325, 9063, 32, + 12505, 11767, 8325, 9063, 34, + 12505, 11767, 8325, 9063, 36, + 12505, 11767, 8325, 9063, 38, + 12505, 11767, 8325, 9063, 40, + 12505, 11767, 8325, 9063, 42, + 12505, 11767, 8325, 9063, 44, + 12505, 11767, 8325, 9063, 46, + 12505, 11767, 8325, 9063, 48, + 12505, 11767, 8325, 9063, 50, + 12505, 11767, 9063, 0, + 12505, 11767, 9063, 2, + 12505, 11767, 9063, 4, + 12505, 11767, 9063, 6, + 12505, 11767, 9063, 8, + 12505, 11767, 9063, 10, + 12505, 11767, 9063, 12, + 12505, 11767, 9063, 14, + 12505, 11767, 9063, 16, + 12505, 11767, 9063, 18, + 12505, 11767, 9063, 20, + 12505, 11767, 9063, 22, + 12505, 11767, 9063, 24, + 12505, 11767, 9063, 26, + 12505, 11767, 9063, 28, + 12505, 11767, 9063, 30, + 12505, 11767, 9063, 32, + 12505, 11767, 9063, 34, + 12505, 11767, 9063, 36, + 12505, 11767, 9063, 38, + 12505, 11767, 9063, 40, + 12505, 11767, 9063, 42, + 12505, 11767, 9063, 44, + 12505, 11767, 9063, 46, + 12505, 11767, 9063, 48, + 12505, 11767, 9063, 50, + 12505, 12929, 6689, 2170, + 12505, 12929, 6689, 2540, + 12505, 12929, 6689, 2778, + 12505, 12929, 6689, 4200, + 12505, 12929, 6689, 4214, + 12505, 12929, 6689, 5190, + 12505, 12929, 6689, 6260, + 12505, 12929, 6689, 6722, + 12505, 12929, 6689, 7508, + 12505, 12929, 6689, 7694, + 12505, 12929, 7593, 0, + 12505, 12929, 7593, 2, + 12505, 12929, 7593, 4, + 12505, 12929, 7593, 6, + 12505, 12929, 7593, 8, + 12505, 12929, 7593, 10, + 12505, 12929, 7593, 12, + 12505, 12929, 7593, 14, + 12505, 12929, 7593, 16, + 12505, 12929, 7593, 18, + 12505, 12929, 7593, 20, + 12505, 12929, 7593, 22, + 12505, 12929, 7593, 24, + 12505, 12929, 7593, 26, + 12505, 12929, 7593, 28, + 12505, 12929, 7593, 30, + 12505, 12929, 7593, 32, + 12505, 12929, 7593, 34, + 12505, 12929, 7593, 36, + 12505, 12929, 7593, 38, + 12505, 12929, 7593, 40, + 12505, 12929, 7593, 42, + 12505, 12929, 7593, 44, + 12505, 12929, 7593, 46, + 12505, 12929, 7593, 48, + 12505, 12929, 7593, 50, + 12505, 12929, 9063, 0, + 12505, 12929, 9063, 2, + 12505, 12929, 9063, 6, + 12505, 12929, 9063, 8, + 12505, 12929, 9063, 10, + 12505, 12929, 9063, 12, + 12505, 12929, 9063, 16, + 12505, 12929, 9063, 18, + 12505, 12929, 9063, 20, + 12505, 12929, 9063, 22, + 12505, 12929, 9063, 24, + 12505, 12929, 9063, 28, + 12505, 12929, 9063, 36, + 12505, 12929, 9063, 38, + 12505, 12929, 9063, 40, + 12505, 12929, 9063, 42, + 12505, 12929, 9063, 44, + 12505, 12929, 9063, 46, + 12505, 12929, 9063, 48, + 12517, 8306, + 12525, 5882, + 12527, 4213, 1177, 10677, 175, 3992, + 12527, 4213, 1177, 10677, 177, 3992, + 12527, 4213, 1177, 10677, 1809, 4876, + 12527, 4213, 1177, 10677, 2779, 1045, 8392, + 12527, 4213, 1177, 10677, 4849, 6409, 9050, + 12527, 4213, 1177, 10677, 4849, 6505, 11677, 9050, + 12527, 4213, 1177, 10677, 4849, 6627, 9050, + 12527, 4213, 1177, 10677, 4849, 7821, 8077, 9050, + 12527, 4213, 1177, 10677, 4849, 7821, 11677, 9050, + 12527, 4213, 1177, 10677, 4849, 8077, 9050, + 12527, 4213, 1177, 10677, 4849, 8153, 6409, 9050, + 12527, 4213, 1177, 10677, 4849, 8745, 9050, + 12527, 4213, 1177, 10677, 4849, 10637, 7533, 9050, + 12527, 4213, 1177, 10677, 4849, 12114, + 12527, 4213, 1177, 10677, 6107, 1809, 4876, + 12527, 4213, 1177, 10677, 6610, + 12527, 4213, 1177, 10677, 6616, + 12527, 4213, 1177, 10677, 7443, 6409, 9050, + 12527, 4213, 1177, 10677, 7443, 6505, 11677, 9050, + 12527, 4213, 1177, 10677, 7443, 6627, 9050, + 12527, 4213, 1177, 10677, 7443, 7821, 8077, 9050, + 12527, 4213, 1177, 10677, 7443, 7821, 11677, 9054, + 12527, 4213, 1177, 10677, 7443, 8077, 9050, + 12527, 4213, 1177, 10677, 7443, 8153, 6409, 9050, + 12527, 4213, 1177, 10677, 7443, 8745, 9050, + 12527, 4213, 1177, 10677, 7443, 10637, 7533, 9050, + 12527, 4213, 1177, 10677, 7443, 12114, + 12527, 4213, 1177, 10677, 10469, 4926, + 12527, 4213, 1177, 10677, 11224, + 12527, 4213, 1177, 10677, 11649, 10154, + 12527, 4213, 1177, 10677, 12017, 4926, + 12527, 4213, 1177, 10677, 12043, 4223, 5836, + 12527, 4213, 1177, 10677, 12043, 6616, + 12529, 568, + 12537, 7821, 11765, 6434, + 12540, + 12874, + 12881, 7608, + 12882, + 12895, 11765, 6434, + 12901, 2725, 11791, 6434, + 12901, 5385, 8057, 6434, + 12901, 8065, 8057, 6434, + 12901, 8241, 8057, 6434, + 12901, 9115, 10260, + 12901, 12056, + 12903, 835, 2091, 9855, 6741, 568, + 12903, 6741, 445, 6741, 568, + 12903, 6741, 568, + 12903, 6741, 569, 445, 2681, 6989, 428, + 12925, 11385, 8774, + 12929, 7201, 11262, + 12929, 7593, 476, + 12929, 7593, 6824, + 12929, 8325, 7593, 6, + 12929, 8325, 7593, 8, + 12929, 8325, 7593, 16, + 12929, 8325, 7593, 18, + 12929, 8325, 9063, 6, + 12929, 9063, 4, + 12929, 9063, 14, + 12929, 9063, 26, + 12929, 9063, 30, + 12929, 9063, 32, + 12929, 9063, 34, + 12929, 9063, 50, + 12929, 9063, 476, + 12929, 9063, 6824, + 12931, 10643, 6121, 4849, 4389, 6504, + 12931, 10643, 6121, 7443, 4389, 6504, + 12939, 5758, + 12941, 6741, 568, + 12941, 11621, 568, + 12967, 6409, 9050, + 12967, 8083, 6409, 9050, + 12967, 8153, 6409, 11195, 4926, + 12969, 4926, + 12969, 10390, + 12969, 10966, + 12975, 5758, + 12983, 11765, 6434, + 12987, 6689, 2170, + 12987, 6689, 2540, + 12987, 6689, 2778, + 12987, 6689, 4200, + 12987, 6689, 4214, + 12987, 6689, 5190, + 12987, 6689, 6722, + 12987, 6689, 7508, + 12987, 6689, 7694, + 12987, 7089, 7593, 8405, 0, + 12987, 7089, 7593, 8405, 2, + 12987, 7089, 7593, 8405, 4, + 12987, 7089, 7593, 8405, 6, + 12987, 7089, 7593, 8405, 8, + 12987, 7089, 7593, 8405, 10, + 12987, 7089, 7593, 8405, 12, + 12987, 7089, 7593, 8405, 14, + 12987, 7089, 7593, 8405, 16, + 12987, 7089, 7593, 8405, 18, + 12987, 7089, 7593, 8405, 20, + 12987, 7089, 7593, 8405, 22, + 12987, 7089, 7593, 8405, 24, + 12987, 7089, 7593, 8405, 26, + 12987, 7089, 7593, 8405, 28, + 12987, 7089, 7593, 8405, 30, + 12987, 7089, 7593, 8405, 32, + 12987, 7089, 7593, 8405, 34, + 12987, 7089, 7593, 8405, 36, + 12987, 7089, 7593, 8405, 38, + 12987, 7089, 7593, 8405, 40, + 12987, 7089, 7593, 8405, 42, + 12987, 7089, 7593, 8405, 44, + 12987, 7089, 7593, 8405, 46, + 12987, 7089, 7593, 8405, 48, + 12987, 7089, 7593, 8405, 50, + 12987, 8287, 5770, + 12987, 8287, 5771, 0, + 12987, 8287, 6594, + 12987, 8287, 6595, 0, + 12987, 8287, 6595, 40, + 12987, 8287, 6912, + 12987, 8287, 6913, 0, + 12987, 8287, 6982, + 12987, 8287, 6983, 0, + 12987, 8287, 7166, + 12987, 8287, 7167, 0, + 12987, 8287, 7244, + 12987, 8287, 7245, 0, + 12987, 8287, 7372, + 12987, 8287, 7373, 0, + 12987, 8287, 7440, + 12987, 8287, 7441, 0, + 12987, 8287, 8362, + 12987, 8287, 8363, 0, + 12987, 8287, 8828, + 12987, 8287, 8829, 0, + 12987, 8287, 9086, + 12987, 8287, 9087, 0, + 12987, 8287, 9400, + 12987, 8287, 9401, 0, + 12987, 8287, 9588, + 12987, 8287, 9589, 0, + 12987, 8287, 9780, + 12987, 8287, 9781, 0, + 12987, 8371, 10759, 29, 250, + 12987, 8371, 10759, 7310, + 12987, 8525, 2670, + 12987, 8525, 8162, + 12987, 8525, 8874, + 12987, 8525, 8876, + 12987, 8525, 9286, + 12987, 8525, 9700, + 12987, 8525, 10150, + 12987, 8525, 10200, + 12987, 8525, 10360, + 12987, 8525, 10622, + 12987, 8525, 11232, + 12987, 11043, 2170, + 12987, 11043, 2540, + 12987, 11043, 2586, + 12987, 11043, 2670, + 12987, 11043, 2778, + 12987, 11043, 3842, + 12987, 11043, 4194, + 12987, 11043, 4200, + 12987, 11043, 4214, + 12987, 11043, 4396, + 12987, 11043, 5012, + 12987, 11043, 5046, + 12987, 11043, 5190, + 12987, 11043, 5540, + 12987, 11043, 5650, + 12987, 11043, 6122, + 12987, 11043, 6716, + 12987, 11043, 6722, + 12987, 11043, 7072, + 12987, 11043, 7146, + 12987, 11043, 7428, + 12987, 11043, 7508, + 12987, 11043, 7640, + 12987, 11043, 7646, + 12987, 11043, 7694, + 12987, 11043, 7812, + 12987, 11043, 9714, + 12987, 11043, 9724, + 12987, 11043, 9862, + 12987, 11043, 10180, + 12987, 11043, 10484, + 12987, 11043, 10992, + 12987, 11043, 11208, + 12987, 11043, 11266, + 12987, 11043, 11612, + 12987, 11043, 13050, + 12990, + 12991, 6121, 36, + 13011, 4926, + 13011, 10390, + 13011, 10966, + 13022, + 13045, 6741, 568, + 13047, 9898, + 13061, 46, + 13061, 5758, + 13061, 5759, 275, 4849, 4389, 8056, + 13061, 5759, 275, 7443, 4389, 8056, + 13061, 5759, 275, 8153, 8056, + 13061, 5759, 275, 10642, + 13061, 5759, 6121, 1045, 6376, + 13061, 5759, 6121, 10666, + 13067, 6409, 9050, + 13067, 8083, 6409, 9050, + 13067, 8153, 6409, 11195, 4926, + 13070, + 13191, 7271, 4153, 6434, + 13191, 7607, 4153, 6434, + 13191, 11765, 6434, + 13231, 11765, 6434, + 13233, 9898, + 13235, 11765, 6434, + 13237, 11765, 6434, + 13365, 8153, 8306, + 13365, 8921, 7605, 4926, + 13365, 11185, 7605, 4926, + 13365, 12341, 7605, 4926, + 13381, 8774, + 13393, 7337, 8774, + 13403, 8279, 8774, + 13403, 8381, 8774, + 13417, 8774, + 13419, 8774, }; static const struct { uint16_t code; uint32_t name:24; } #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) __attribute__((__packed__)) #endif -unicode_name_to_code[16626] = { +unicode_name_to_code[18242] = { { 0x2114, 0 }, { 0x29CC, 4 }, { 0x2327, 7 }, @@ -22957,33241 +25023,36473 @@ { 0x2013, 75 }, { 0x2000, 77 }, { 0x2002, 79 }, - { 0x27C7, 81 }, - { 0x2951, 85 }, - { 0x294D, 92 }, - { 0x294C, 99 }, - { 0x294F, 106 }, - { 0x2195, 113 }, - { 0x21A8, 116 }, - { 0x2B0D, 121 }, - { 0x21F3, 125 }, - { 0x21D5, 129 }, - { 0x297E, 133 }, - { 0x22A5, 136 }, - { 0x27DF, 138 }, - { 0x29BD, 143 }, - { 0x22F0, 147 }, - { 0x2303, 151 }, - { 0x2324, 153 }, - { 0x54BC, 159 }, - { 0x54B9, 162 }, - { 0x54A1, 165 }, - { 0x54B3, 168 }, - { 0x54C6, 171 }, - { 0x5491, 174 }, - { 0x5498, 177 }, - { 0x54A9, 180 }, - { 0x54A8, 183 }, - { 0x54B8, 186 }, - { 0x549D, 189 }, - { 0x54B2, 192 }, - { 0x54A5, 195 }, - { 0x54C3, 198 }, - { 0x54BE, 201 }, - { 0x5494, 204 }, - { 0x54A3, 207 }, - { 0x5497, 210 }, - { 0x54B6, 213 }, - { 0x54AD, 216 }, - { 0x54B5, 219 }, - { 0x5492, 222 }, - { 0x54BB, 225 }, - { 0x549A, 228 }, - { 0x549C, 231 }, - { 0x549E, 234 }, - { 0x54AC, 237 }, - { 0x5490, 240 }, - { 0x54B0, 243 }, - { 0x5495, 246 }, - { 0x54A0, 249 }, - { 0x54B1, 252 }, - { 0x54AF, 255 }, - { 0x54AE, 258 }, - { 0x54AB, 261 }, - { 0x54A2, 264 }, - { 0x54C1, 267 }, - { 0x549B, 270 }, - { 0x54BD, 273 }, - { 0x54A4, 276 }, - { 0x5496, 279 }, - { 0x54A6, 282 }, - { 0x5499, 285 }, - { 0x54BF, 288 }, - { 0x549F, 291 }, - { 0x54B7, 294 }, - { 0x54AA, 297 }, - { 0x54C5, 300 }, - { 0x5493, 303 }, - { 0x54A7, 306 }, - { 0x54B4, 309 }, - { 0x54C0, 312 }, - { 0x54C2, 315 }, - { 0x54BA, 318 }, - { 0x54C4, 321 }, - { 0x500A, 324 }, - { 0x5014, 327 }, - { 0x5002, 330 }, - { 0x5011, 333 }, - { 0x500B, 336 }, - { 0x5008, 339 }, - { 0x5009, 342 }, - { 0x5020, 345 }, - { 0x502A, 348 }, - { 0x5018, 351 }, - { 0x5027, 354 }, - { 0x502E, 357 }, - { 0x5034, 360 }, - { 0x52B8, 363 }, - { 0x52C2, 366 }, - { 0x52B0, 369 }, - { 0x52BF, 372 }, - { 0x52C6, 375 }, - { 0x52CC, 378 }, - { 0x5109, 381 }, - { 0x5112, 384 }, - { 0x5102, 387 }, - { 0x510F, 390 }, - { 0x5116, 393 }, - { 0x5013, 396 }, - { 0x50D3, 399 }, - { 0x50CF, 402 }, - { 0x50D6, 405 }, - { 0x50DA, 408 }, - { 0x50E0, 411 }, - { 0x51E4, 414 }, - { 0x51F0, 417 }, - { 0x51DC, 420 }, - { 0x51EC, 423 }, - { 0x51F4, 426 }, - { 0x5273, 429 }, - { 0x527E, 432 }, - { 0x527B, 435 }, - { 0x5006, 438 }, - { 0x5003, 441 }, - { 0x5000, 444 }, - { 0x5001, 447 }, - { 0x53E2, 450 }, - { 0x53EE, 453 }, - { 0x53F2, 456 }, - { 0x53F8, 459 }, - { 0x5201, 462 }, - { 0x520C, 465 }, - { 0x51FA, 468 }, - { 0x5208, 471 }, - { 0x5210, 474 }, - { 0x51C1, 477 }, - { 0x51CC, 480 }, - { 0x51B9, 483 }, - { 0x51C9, 486 }, - { 0x51D0, 489 }, - { 0x51D6, 492 }, - { 0x50B7, 495 }, - { 0x50C2, 498 }, - { 0x50B0, 501 }, - { 0x50BF, 504 }, - { 0x50C5, 507 }, - { 0x50CB, 510 }, - { 0x5185, 513 }, - { 0x518F, 516 }, - { 0x517F, 519 }, - { 0x518C, 522 }, - { 0x5193, 525 }, - { 0x5012, 528 }, - { 0x500F, 531 }, - { 0x5010, 534 }, - { 0x5041, 537 }, - { 0x503A, 540 }, - { 0x5048, 543 }, - { 0x504C, 546 }, - { 0x5052, 549 }, - { 0x53FE, 552 }, - { 0x540A, 555 }, - { 0x540E, 558 }, - { 0x5414, 561 }, - { 0x53C8, 564 }, - { 0x53D2, 567 }, - { 0x53CF, 570 }, - { 0x53D6, 573 }, - { 0x53DC, 576 }, - { 0x5312, 579 }, - { 0x531C, 582 }, - { 0x530B, 585 }, - { 0x5319, 588 }, - { 0x5320, 591 }, - { 0x5326, 594 }, - { 0x5123, 597 }, - { 0x512E, 600 }, - { 0x511C, 603 }, - { 0x512B, 606 }, - { 0x5132, 609 }, - { 0x500D, 612 }, - { 0x50EC, 615 }, - { 0x50E4, 618 }, - { 0x50F0, 621 }, - { 0x50F6, 624 }, - { 0x50FC, 627 }, - { 0x5282, 630 }, - { 0x528B, 633 }, - { 0x5288, 636 }, - { 0x5015, 639 }, - { 0x545F, 642 }, - { 0x5469, 645 }, - { 0x546D, 648 }, - { 0x5473, 651 }, - { 0x547F, 654 }, - { 0x5483, 657 }, - { 0x5489, 660 }, - { 0x5296, 663 }, - { 0x52A0, 666 }, - { 0x528F, 669 }, - { 0x529D, 672 }, - { 0x52A4, 675 }, - { 0x52AA, 678 }, - { 0x5021, 681 }, - { 0x501E, 684 }, - { 0x501F, 687 }, - { 0x5060, 690 }, - { 0x506A, 693 }, - { 0x5058, 696 }, - { 0x5067, 699 }, - { 0x506E, 702 }, - { 0x5074, 705 }, - { 0x502B, 708 }, - { 0x5029, 711 }, - { 0x501C, 714 }, - { 0x5019, 717 }, - { 0x5016, 720 }, - { 0x5017, 723 }, - { 0x5028, 726 }, - { 0x5025, 729 }, - { 0x5026, 732 }, - { 0x5023, 735 }, - { 0x502F, 738 }, - { 0x5031, 741 }, - { 0x502C, 744 }, - { 0x502D, 747 }, - { 0x5035, 750 }, - { 0x5037, 753 }, - { 0x5032, 756 }, - { 0x5033, 759 }, - { 0x52B9, 762 }, - { 0x52B6, 765 }, - { 0x52B7, 768 }, - { 0x52C3, 771 }, - { 0x52C1, 774 }, - { 0x5363, 777 }, - { 0x536F, 780 }, - { 0x536B, 783 }, - { 0x5372, 786 }, - { 0x5378, 789 }, - { 0x52B4, 792 }, - { 0x52B1, 795 }, - { 0x52AE, 798 }, - { 0x52AF, 801 }, - { 0x52C0, 804 }, - { 0x52BD, 807 }, - { 0x52BE, 810 }, - { 0x52BB, 813 }, - { 0x52C7, 816 }, - { 0x52C9, 819 }, - { 0x52C4, 822 }, - { 0x52C5, 825 }, - { 0x52CD, 828 }, - { 0x52CF, 831 }, - { 0x52CA, 834 }, - { 0x52CB, 837 }, - { 0x510A, 840 }, - { 0x5107, 843 }, - { 0x5108, 846 }, - { 0x513F, 849 }, - { 0x5149, 852 }, - { 0x5138, 855 }, - { 0x5146, 858 }, - { 0x514D, 861 }, - { 0x5113, 864 }, - { 0x5111, 867 }, - { 0x5105, 870 }, - { 0x5103, 873 }, - { 0x5100, 876 }, - { 0x5101, 879 }, - { 0x5110, 882 }, - { 0x510D, 885 }, - { 0x510E, 888 }, - { 0x510C, 891 }, - { 0x5117, 894 }, - { 0x5119, 897 }, - { 0x5114, 900 }, - { 0x5115, 903 }, - { 0x50D4, 906 }, - { 0x50D1, 909 }, - { 0x50D2, 912 }, - { 0x50D0, 915 }, - { 0x50CD, 918 }, - { 0x50CE, 921 }, - { 0x50D7, 924 }, - { 0x50D5, 927 }, - { 0x50DB, 930 }, - { 0x50DD, 933 }, - { 0x50D8, 936 }, - { 0x50D9, 939 }, - { 0x50E1, 942 }, - { 0x50DE, 945 }, - { 0x50DF, 948 }, - { 0x51E5, 951 }, - { 0x51E2, 954 }, - { 0x51E3, 957 }, - { 0x51F1, 960 }, - { 0x51EE, 963 }, - { 0x51EF, 966 }, - { 0x521C, 969 }, - { 0x5228, 972 }, - { 0x5216, 975 }, - { 0x5224, 978 }, - { 0x522C, 981 }, - { 0x51E0, 984 }, - { 0x51DD, 987 }, - { 0x51DA, 990 }, - { 0x51DB, 993 }, - { 0x51ED, 996 }, - { 0x51EA, 999 }, - { 0x51EB, 1002 }, - { 0x51E8, 1005 }, - { 0x51F5, 1008 }, - { 0x51F7, 1011 }, - { 0x51F2, 1014 }, - { 0x51F3, 1017 }, - { 0x5274, 1020 }, - { 0x5271, 1023 }, - { 0x5272, 1026 }, - { 0x527F, 1029 }, - { 0x527D, 1032 }, - { 0x5270, 1035 }, - { 0x526E, 1038 }, - { 0x51A0, 1041 }, - { 0x51A9, 1044 }, - { 0x5199, 1047 }, - { 0x51A6, 1050 }, - { 0x51AD, 1053 }, - { 0x51B3, 1056 }, - { 0x509A, 1059 }, - { 0x5093, 1062 }, - { 0x50A1, 1065 }, - { 0x50A5, 1068 }, - { 0x50AA, 1071 }, - { 0x5172, 1074 }, - { 0x517A, 1077 }, - { 0x516A, 1080 }, - { 0x527C, 1083 }, - { 0x5279, 1086 }, - { 0x527A, 1089 }, - { 0x5277, 1092 }, - { 0x5250, 1095 }, - { 0x525B, 1098 }, - { 0x5248, 1101 }, - { 0x5258, 1104 }, - { 0x5007, 1107 }, - { 0x5004, 1110 }, - { 0x5005, 1113 }, - { 0x53E6, 1116 }, - { 0x53E3, 1119 }, - { 0x53E0, 1122 }, - { 0x53E1, 1125 }, - { 0x541A, 1128 }, - { 0x5425, 1131 }, - { 0x5429, 1134 }, - { 0x542F, 1137 }, - { 0x53EF, 1140 }, - { 0x53EC, 1143 }, - { 0x53ED, 1146 }, - { 0x53EA, 1149 }, - { 0x53F3, 1152 }, - { 0x53F5, 1155 }, - { 0x53F0, 1158 }, - { 0x53F1, 1161 }, - { 0x53F9, 1164 }, - { 0x53FB, 1167 }, - { 0x53F6, 1170 }, - { 0x53F7, 1173 }, - { 0x5202, 1176 }, - { 0x51FF, 1179 }, - { 0x5200, 1182 }, - { 0x520D, 1185 }, - { 0x520A, 1188 }, - { 0x520B, 1191 }, - { 0x51FD, 1194 }, - { 0x51FB, 1197 }, - { 0x51F8, 1200 }, - { 0x51F9, 1203 }, - { 0x5209, 1206 }, - { 0x5206, 1209 }, - { 0x5207, 1212 }, - { 0x5204, 1215 }, - { 0x5211, 1218 }, - { 0x5213, 1221 }, - { 0x520E, 1224 }, - { 0x520F, 1227 }, - { 0x51C2, 1230 }, - { 0x51BF, 1233 }, - { 0x51C0, 1236 }, - { 0x51CD, 1239 }, - { 0x51CB, 1242 }, - { 0x51BD, 1245 }, - { 0x51BA, 1248 }, - { 0x51B7, 1251 }, - { 0x51B8, 1254 }, - { 0x51CA, 1257 }, - { 0x51C7, 1260 }, - { 0x51C8, 1263 }, - { 0x51C5, 1266 }, - { 0x51D1, 1269 }, - { 0x51D3, 1272 }, - { 0x51CE, 1275 }, - { 0x51CF, 1278 }, - { 0x51D7, 1281 }, - { 0x51D9, 1284 }, - { 0x51D4, 1287 }, - { 0x51D5, 1290 }, - { 0x50B8, 1293 }, - { 0x50B5, 1296 }, - { 0x50B6, 1299 }, - { 0x50C1, 1302 }, - { 0x5234, 1305 }, - { 0x523E, 1308 }, - { 0x523B, 1311 }, - { 0x5242, 1314 }, - { 0x50B3, 1317 }, - { 0x50B1, 1320 }, - { 0x50AE, 1323 }, - { 0x50AF, 1326 }, - { 0x50C0, 1329 }, - { 0x50BD, 1332 }, - { 0x50BE, 1335 }, - { 0x50BB, 1338 }, - { 0x50C6, 1341 }, - { 0x50C8, 1344 }, - { 0x50C3, 1347 }, - { 0x50C4, 1350 }, - { 0x50CC, 1353 }, - { 0x50C9, 1356 }, - { 0x50CA, 1359 }, - { 0x5186, 1362 }, - { 0x5184, 1365 }, - { 0x507F, 1368 }, - { 0x5078, 1371 }, - { 0x5083, 1374 }, - { 0x5087, 1377 }, - { 0x508D, 1380 }, - { 0x5159, 1383 }, - { 0x5160, 1386 }, - { 0x5153, 1389 }, - { 0x515D, 1392 }, - { 0x5164, 1395 }, - { 0x5190, 1398 }, - { 0x518E, 1401 }, - { 0x5262, 1404 }, - { 0x526C, 1407 }, - { 0x5269, 1410 }, - { 0x5182, 1413 }, - { 0x5180, 1416 }, - { 0x517D, 1419 }, - { 0x517E, 1422 }, - { 0x5433, 1425 }, - { 0x543D, 1428 }, - { 0x5440, 1431 }, - { 0x5446, 1434 }, - { 0x518D, 1437 }, - { 0x518A, 1440 }, - { 0x518B, 1443 }, - { 0x5396, 1446 }, - { 0x539D, 1449 }, - { 0x5399, 1452 }, - { 0x53A1, 1455 }, - { 0x53A7, 1458 }, - { 0x5188, 1461 }, - { 0x5194, 1464 }, - { 0x5196, 1467 }, - { 0x5191, 1470 }, - { 0x5192, 1473 }, - { 0x544C, 1476 }, - { 0x5457, 1479 }, - { 0x545B, 1482 }, - { 0x52F6, 1485 }, - { 0x52FD, 1488 }, - { 0x52EF, 1491 }, - { 0x52FF, 1494 }, - { 0x5305, 1497 }, - { 0x5042, 1500 }, - { 0x503F, 1503 }, - { 0x5040, 1506 }, - { 0x503D, 1509 }, - { 0x503B, 1512 }, - { 0x5038, 1515 }, - { 0x5039, 1518 }, - { 0x5049, 1521 }, - { 0x5046, 1524 }, - { 0x5047, 1527 }, - { 0x5044, 1530 }, - { 0x504D, 1533 }, - { 0x504F, 1536 }, - { 0x504A, 1539 }, - { 0x504B, 1542 }, - { 0x5053, 1545 }, - { 0x5055, 1548 }, - { 0x5050, 1551 }, - { 0x5051, 1554 }, - { 0x5402, 1557 }, - { 0x53FF, 1560 }, - { 0x53FC, 1563 }, - { 0x53FD, 1566 }, - { 0x540B, 1569 }, - { 0x5408, 1572 }, - { 0x5409, 1575 }, - { 0x5406, 1578 }, - { 0x540F, 1581 }, - { 0x5411, 1584 }, - { 0x540C, 1587 }, - { 0x540D, 1590 }, - { 0x5415, 1593 }, - { 0x5417, 1596 }, - { 0x5412, 1599 }, - { 0x5413, 1602 }, - { 0x53C9, 1605 }, - { 0x53C6, 1608 }, - { 0x53C7, 1611 }, - { 0x53D3, 1614 }, - { 0x53D1, 1617 }, - { 0x53D0, 1620 }, - { 0x53CD, 1623 }, - { 0x53CE, 1626 }, - { 0x537D, 1629 }, - { 0x5386, 1632 }, - { 0x5382, 1635 }, - { 0x538A, 1638 }, - { 0x5390, 1641 }, - { 0x53CB, 1644 }, - { 0x53D7, 1647 }, - { 0x53D9, 1650 }, - { 0x53D4, 1653 }, - { 0x53D5, 1656 }, - { 0x53DD, 1659 }, - { 0x53DF, 1662 }, - { 0x53DA, 1665 }, - { 0x53DB, 1668 }, - { 0x5313, 1671 }, - { 0x5310, 1674 }, - { 0x5311, 1677 }, - { 0x531D, 1680 }, - { 0x531B, 1683 }, - { 0x53AD, 1686 }, - { 0x53B8, 1689 }, - { 0x53B4, 1692 }, - { 0x53BC, 1695 }, - { 0x53C2, 1698 }, - { 0x530E, 1701 }, - { 0x530C, 1704 }, - { 0x5309, 1707 }, - { 0x530A, 1710 }, - { 0x531A, 1713 }, - { 0x5317, 1716 }, - { 0x5318, 1719 }, - { 0x5333, 1722 }, - { 0x533A, 1725 }, - { 0x532C, 1728 }, - { 0x5337, 1731 }, - { 0x533E, 1734 }, - { 0x5342, 1737 }, - { 0x5315, 1740 }, - { 0x5321, 1743 }, - { 0x5323, 1746 }, - { 0x531E, 1749 }, - { 0x531F, 1752 }, - { 0x5327, 1755 }, - { 0x5329, 1758 }, - { 0x5324, 1761 }, - { 0x5325, 1764 }, - { 0x5124, 1767 }, - { 0x5121, 1770 }, - { 0x5122, 1773 }, - { 0x512F, 1776 }, - { 0x512D, 1779 }, - { 0x511F, 1782 }, - { 0x511D, 1785 }, - { 0x511A, 1788 }, - { 0x511B, 1791 }, - { 0x512C, 1794 }, - { 0x5129, 1797 }, - { 0x512A, 1800 }, - { 0x5127, 1803 }, - { 0x5133, 1806 }, - { 0x5135, 1809 }, - { 0x5130, 1812 }, - { 0x5131, 1815 }, - { 0x500E, 1818 }, - { 0x500C, 1821 }, - { 0x50ED, 1824 }, - { 0x50EA, 1827 }, - { 0x50EB, 1830 }, - { 0x50F3, 1833 }, - { 0x50F2, 1836 }, - { 0x50E8, 1839 }, - { 0x50E5, 1842 }, - { 0x50E2, 1845 }, - { 0x50E3, 1848 }, - { 0x50F1, 1851 }, - { 0x50EE, 1854 }, - { 0x50EF, 1857 }, - { 0x50F7, 1860 }, - { 0x50F9, 1863 }, - { 0x50F4, 1866 }, - { 0x50F5, 1869 }, - { 0x50FD, 1872 }, - { 0x50FF, 1875 }, - { 0x50FA, 1878 }, - { 0x50FB, 1881 }, - { 0x5283, 1884 }, - { 0x5280, 1887 }, - { 0x5281, 1890 }, - { 0x528C, 1893 }, - { 0x528A, 1896 }, - { 0x5289, 1899 }, - { 0x5287, 1902 }, - { 0x5285, 1905 }, - { 0x5463, 1908 }, - { 0x5460, 1911 }, - { 0x545D, 1914 }, - { 0x545E, 1917 }, - { 0x546A, 1920 }, - { 0x5467, 1923 }, - { 0x5468, 1926 }, - { 0x5466, 1929 }, - { 0x546E, 1932 }, - { 0x5470, 1935 }, - { 0x546B, 1938 }, - { 0x546C, 1941 }, - { 0x5477, 1944 }, - { 0x5474, 1947 }, - { 0x5471, 1950 }, - { 0x5472, 1953 }, - { 0x5480, 1956 }, - { 0x547D, 1959 }, - { 0x547E, 1962 }, - { 0x547B, 1965 }, - { 0x5484, 1968 }, - { 0x5486, 1971 }, - { 0x5481, 1974 }, - { 0x5482, 1977 }, - { 0x548A, 1980 }, - { 0x548C, 1983 }, - { 0x5487, 1986 }, - { 0x5488, 1989 }, - { 0x5297, 1992 }, - { 0x5294, 1995 }, - { 0x5295, 1998 }, - { 0x52A1, 2001 }, - { 0x529F, 2004 }, - { 0x5348, 2007 }, - { 0x5353, 2010 }, - { 0x534F, 2013 }, - { 0x5357, 2016 }, - { 0x535D, 2019 }, - { 0x5292, 2022 }, - { 0x5290, 2025 }, - { 0x528D, 2028 }, - { 0x528E, 2031 }, - { 0x529E, 2034 }, - { 0x529B, 2037 }, - { 0x529C, 2040 }, - { 0x5299, 2043 }, - { 0x52A5, 2046 }, - { 0x52A7, 2049 }, - { 0x52A2, 2052 }, - { 0x52A3, 2055 }, - { 0x52AB, 2058 }, - { 0x52AD, 2061 }, - { 0x52A8, 2064 }, - { 0x52A9, 2067 }, - { 0x52DA, 2070 }, - { 0x52E0, 2073 }, - { 0x52D2, 2076 }, - { 0x52DD, 2079 }, - { 0x52E3, 2082 }, - { 0x52E9, 2085 }, - { 0x5061, 2088 }, - { 0x505E, 2091 }, - { 0x505F, 2094 }, - { 0x506B, 2097 }, - { 0x5069, 2100 }, - { 0x505C, 2103 }, - { 0x5059, 2106 }, - { 0x5056, 2109 }, - { 0x5057, 2112 }, - { 0x5068, 2115 }, - { 0x5065, 2118 }, - { 0x5066, 2121 }, - { 0x5063, 2124 }, - { 0x506F, 2127 }, - { 0x5071, 2130 }, - { 0x506C, 2133 }, - { 0x506D, 2136 }, - { 0x5075, 2139 }, - { 0x5072, 2142 }, - { 0x5073, 2145 }, - { 0x501D, 2148 }, - { 0x501A, 2151 }, - { 0x501B, 2154 }, - { 0x5024, 2157 }, - { 0x5022, 2160 }, - { 0x5030, 2163 }, - { 0x5036, 2166 }, - { 0x5364, 2169 }, - { 0x5361, 2172 }, - { 0x5362, 2175 }, - { 0x5370, 2178 }, - { 0x536D, 2181 }, - { 0x536E, 2184 }, - { 0x536C, 2187 }, - { 0x5369, 2190 }, - { 0x536A, 2193 }, - { 0x5367, 2196 }, - { 0x5373, 2199 }, - { 0x5375, 2202 }, - { 0x5371, 2205 }, - { 0x5379, 2208 }, - { 0x537B, 2211 }, - { 0x5376, 2214 }, - { 0x5377, 2217 }, - { 0x52B5, 2220 }, - { 0x52B2, 2223 }, - { 0x52B3, 2226 }, - { 0x52BC, 2229 }, - { 0x52BA, 2232 }, - { 0x52C8, 2235 }, - { 0x52CE, 2238 }, - { 0x5140, 2241 }, - { 0x513D, 2244 }, - { 0x513E, 2247 }, - { 0x514A, 2250 }, - { 0x5148, 2253 }, - { 0x513B, 2256 }, - { 0x5139, 2259 }, - { 0x5136, 2262 }, - { 0x5137, 2265 }, - { 0x5147, 2268 }, - { 0x5144, 2271 }, - { 0x5145, 2274 }, - { 0x5142, 2277 }, - { 0x514E, 2280 }, - { 0x5150, 2283 }, - { 0x514B, 2286 }, - { 0x514C, 2289 }, - { 0x5106, 2292 }, - { 0x5104, 2295 }, - { 0x510B, 2298 }, - { 0x5118, 2301 }, - { 0x50DC, 2304 }, - { 0x521D, 2307 }, - { 0x521A, 2310 }, - { 0x521B, 2313 }, - { 0x5229, 2316 }, - { 0x5226, 2319 }, - { 0x5227, 2322 }, - { 0x5218, 2325 }, - { 0x5214, 2328 }, - { 0x5215, 2331 }, - { 0x5225, 2334 }, - { 0x5222, 2337 }, - { 0x5223, 2340 }, - { 0x5220, 2343 }, - { 0x522D, 2346 }, - { 0x522F, 2349 }, - { 0x522A, 2352 }, - { 0x522B, 2355 }, - { 0x51E1, 2358 }, - { 0x51DE, 2361 }, - { 0x51DF, 2364 }, - { 0x51E9, 2367 }, - { 0x51E6, 2370 }, - { 0x51E7, 2373 }, - { 0x51F6, 2376 }, - { 0x526F, 2379 }, - { 0x51A1, 2382 }, - { 0x519E, 2385 }, - { 0x519F, 2388 }, - { 0x51AA, 2391 }, - { 0x51A8, 2394 }, - { 0x519C, 2397 }, - { 0x519A, 2400 }, - { 0x5197, 2403 }, - { 0x5198, 2406 }, - { 0x51A7, 2409 }, - { 0x51A5, 2412 }, - { 0x51A3, 2415 }, - { 0x51AE, 2418 }, - { 0x51B0, 2421 }, - { 0x51AB, 2424 }, - { 0x51AC, 2427 }, - { 0x51B4, 2430 }, - { 0x51B6, 2433 }, - { 0x51B1, 2436 }, - { 0x51B2, 2439 }, - { 0x509B, 2442 }, - { 0x5098, 2445 }, - { 0x5099, 2448 }, - { 0x5096, 2451 }, - { 0x5094, 2454 }, - { 0x5091, 2457 }, - { 0x5092, 2460 }, - { 0x50A2, 2463 }, - { 0x509F, 2466 }, - { 0x50A0, 2469 }, - { 0x509D, 2472 }, - { 0x50A6, 2475 }, - { 0x50A8, 2478 }, - { 0x50A3, 2481 }, - { 0x50A4, 2484 }, - { 0x50AB, 2487 }, - { 0x50AD, 2490 }, - { 0x50A9, 2493 }, - { 0x5173, 2496 }, - { 0x5170, 2499 }, - { 0x5171, 2502 }, - { 0x517B, 2505 }, - { 0x5179, 2508 }, - { 0x516E, 2511 }, - { 0x516B, 2514 }, - { 0x5168, 2517 }, - { 0x5169, 2520 }, - { 0x5178, 2523 }, - { 0x5176, 2526 }, - { 0x5177, 2529 }, - { 0x5175, 2532 }, - { 0x517C, 2535 }, - { 0x5278, 2538 }, - { 0x5275, 2541 }, - { 0x5276, 2544 }, - { 0x5251, 2547 }, - { 0x524E, 2550 }, - { 0x524F, 2553 }, - { 0x525C, 2556 }, - { 0x525A, 2559 }, - { 0x524C, 2562 }, - { 0x5249, 2565 }, - { 0x5246, 2568 }, - { 0x5247, 2571 }, - { 0x5259, 2574 }, - { 0x5256, 2577 }, - { 0x5257, 2580 }, - { 0x5254, 2583 }, - { 0x53E7, 2586 }, - { 0x53E4, 2589 }, - { 0x53E5, 2592 }, - { 0x541E, 2595 }, - { 0x541B, 2598 }, - { 0x5418, 2601 }, - { 0x5419, 2604 }, - { 0x5426, 2607 }, - { 0x5423, 2610 }, - { 0x5424, 2613 }, - { 0x5421, 2616 }, - { 0x542A, 2619 }, - { 0x542C, 2622 }, - { 0x5427, 2625 }, - { 0x5428, 2628 }, - { 0x5430, 2631 }, - { 0x542D, 2634 }, - { 0x542E, 2637 }, - { 0x53EB, 2640 }, - { 0x53E8, 2643 }, - { 0x53E9, 2646 }, - { 0x53F4, 2649 }, - { 0x53FA, 2652 }, - { 0x51FE, 2655 }, - { 0x51FC, 2658 }, - { 0x5205, 2661 }, - { 0x5203, 2664 }, - { 0x5212, 2667 }, - { 0x51BE, 2670 }, - { 0x51BB, 2673 }, - { 0x51BC, 2676 }, - { 0x51C6, 2679 }, - { 0x51C3, 2682 }, - { 0x51C4, 2685 }, - { 0x51D2, 2688 }, - { 0x51D8, 2691 }, - { 0x5235, 2694 }, - { 0x5232, 2697 }, - { 0x5233, 2700 }, - { 0x523F, 2703 }, - { 0x523D, 2706 }, - { 0x5231, 2709 }, - { 0x523C, 2712 }, - { 0x5239, 2715 }, - { 0x523A, 2718 }, - { 0x5237, 2721 }, - { 0x5243, 2724 }, - { 0x5245, 2727 }, - { 0x5240, 2730 }, - { 0x5241, 2733 }, - { 0x50B4, 2736 }, - { 0x50B2, 2739 }, - { 0x50BC, 2742 }, - { 0x50B9, 2745 }, - { 0x50BA, 2748 }, - { 0x50C7, 2751 }, - { 0x5080, 2754 }, - { 0x507D, 2757 }, - { 0x507E, 2760 }, - { 0x507B, 2763 }, - { 0x5079, 2766 }, - { 0x5076, 2769 }, - { 0x5077, 2772 }, - { 0x5084, 2775 }, - { 0x5081, 2778 }, - { 0x5082, 2781 }, - { 0x5088, 2784 }, - { 0x508A, 2787 }, - { 0x5085, 2790 }, - { 0x5086, 2793 }, - { 0x508E, 2796 }, - { 0x5090, 2799 }, - { 0x508B, 2802 }, - { 0x508C, 2805 }, - { 0x515A, 2808 }, - { 0x5157, 2811 }, - { 0x5158, 2814 }, - { 0x5161, 2817 }, - { 0x515F, 2820 }, - { 0x5156, 2823 }, - { 0x5154, 2826 }, - { 0x5151, 2829 }, - { 0x5152, 2832 }, - { 0x515E, 2835 }, - { 0x515B, 2838 }, - { 0x515C, 2841 }, - { 0x5165, 2844 }, - { 0x5167, 2847 }, - { 0x5162, 2850 }, - { 0x5163, 2853 }, - { 0x5263, 2856 }, - { 0x5260, 2859 }, - { 0x5261, 2862 }, - { 0x526D, 2865 }, - { 0x526B, 2868 }, - { 0x525E, 2871 }, - { 0x526A, 2874 }, - { 0x5267, 2877 }, - { 0x5268, 2880 }, - { 0x5266, 2883 }, - { 0x5183, 2886 }, - { 0x5181, 2889 }, - { 0x5437, 2892 }, - { 0x5434, 2895 }, - { 0x5431, 2898 }, - { 0x5432, 2901 }, - { 0x543E, 2904 }, - { 0x543B, 2907 }, - { 0x543C, 2910 }, - { 0x543A, 2913 }, - { 0x5441, 2916 }, - { 0x5443, 2919 }, - { 0x543F, 2922 }, - { 0x5447, 2925 }, - { 0x5449, 2928 }, - { 0x5444, 2931 }, - { 0x5445, 2934 }, - { 0x5397, 2937 }, - { 0x5394, 2940 }, - { 0x5395, 2943 }, - { 0x539E, 2946 }, - { 0x539B, 2949 }, - { 0x539C, 2952 }, - { 0x539A, 2955 }, - { 0x5398, 2958 }, - { 0x53A2, 2961 }, - { 0x53A4, 2964 }, - { 0x539F, 2967 }, - { 0x53A0, 2970 }, - { 0x53A8, 2973 }, - { 0x53AA, 2976 }, - { 0x53A5, 2979 }, - { 0x53A6, 2982 }, - { 0x5189, 2985 }, - { 0x5187, 2988 }, - { 0x5195, 2991 }, - { 0x5450, 2994 }, - { 0x544D, 2997 }, - { 0x544A, 3000 }, - { 0x544B, 3003 }, - { 0x5458, 3006 }, - { 0x5455, 3009 }, - { 0x5456, 3012 }, - { 0x5453, 3015 }, - { 0x545C, 3018 }, - { 0x5459, 3021 }, - { 0x545A, 3024 }, - { 0x52F7, 3027 }, - { 0x52F4, 3030 }, - { 0x52F5, 3033 }, - { 0x52FC, 3036 }, - { 0x52F2, 3039 }, - { 0x52F0, 3042 }, - { 0x52ED, 3045 }, - { 0x52EE, 3048 }, - { 0x52FB, 3051 }, - { 0x52FA, 3054 }, - { 0x52F9, 3057 }, - { 0x5300, 3060 }, - { 0x5302, 3063 }, - { 0x52FE, 3066 }, - { 0x5306, 3069 }, - { 0x5308, 3072 }, - { 0x5303, 3075 }, - { 0x5304, 3078 }, - { 0x503E, 3081 }, - { 0x503C, 3084 }, - { 0x5045, 3087 }, - { 0x5043, 3090 }, - { 0x504E, 3093 }, - { 0x5054, 3096 }, - { 0x5403, 3099 }, - { 0x5400, 3102 }, - { 0x5401, 3105 }, - { 0x5407, 3108 }, - { 0x5404, 3111 }, - { 0x5405, 3114 }, - { 0x5410, 3117 }, - { 0x5416, 3120 }, - { 0x537C, 3123 }, - { 0x5387, 3126 }, - { 0x5384, 3129 }, - { 0x5385, 3132 }, - { 0x5383, 3135 }, - { 0x5380, 3138 }, - { 0x5381, 3141 }, - { 0x537F, 3144 }, - { 0x538B, 3147 }, - { 0x538D, 3150 }, - { 0x5388, 3153 }, - { 0x5389, 3156 }, - { 0x5391, 3159 }, - { 0x5393, 3162 }, - { 0x538E, 3165 }, - { 0x538F, 3168 }, - { 0x53CC, 3171 }, - { 0x53CA, 3174 }, - { 0x53D8, 3177 }, - { 0x53DE, 3180 }, - { 0x53AE, 3183 }, - { 0x53AB, 3186 }, - { 0x53AC, 3189 }, - { 0x53B9, 3192 }, - { 0x53B6, 3195 }, - { 0x53B7, 3198 }, - { 0x53B5, 3201 }, - { 0x53B2, 3204 }, - { 0x53B3, 3207 }, - { 0x53B0, 3210 }, - { 0x53BD, 3213 }, - { 0x53BF, 3216 }, - { 0x53BA, 3219 }, - { 0x53BB, 3222 }, - { 0x53C3, 3225 }, - { 0x53C5, 3228 }, - { 0x53C0, 3231 }, - { 0x53C1, 3234 }, - { 0x530F, 3237 }, - { 0x530D, 3240 }, - { 0x5334, 3243 }, - { 0x5331, 3246 }, - { 0x5332, 3249 }, - { 0x533B, 3252 }, - { 0x5339, 3255 }, - { 0x532F, 3258 }, - { 0x532D, 3261 }, - { 0x532A, 3264 }, - { 0x532B, 3267 }, - { 0x5338, 3270 }, - { 0x5335, 3273 }, - { 0x5336, 3276 }, - { 0x533F, 3279 }, - { 0x533C, 3282 }, - { 0x533D, 3285 }, - { 0x5343, 3288 }, - { 0x5345, 3291 }, - { 0x5340, 3294 }, - { 0x5341, 3297 }, - { 0x5316, 3300 }, - { 0x5314, 3303 }, - { 0x5322, 3306 }, - { 0x5328, 3309 }, - { 0x5120, 3312 }, - { 0x511E, 3315 }, - { 0x5128, 3318 }, - { 0x5125, 3321 }, - { 0x5126, 3324 }, - { 0x5134, 3327 }, - { 0x50E9, 3330 }, - { 0x50E6, 3333 }, - { 0x50E7, 3336 }, - { 0x50F8, 3339 }, - { 0x50FE, 3342 }, - { 0x5286, 3345 }, - { 0x5284, 3348 }, - { 0x5464, 3351 }, - { 0x5461, 3354 }, - { 0x5462, 3357 }, - { 0x5465, 3360 }, - { 0x546F, 3363 }, - { 0x5478, 3366 }, - { 0x5475, 3369 }, - { 0x5476, 3372 }, - { 0x547C, 3375 }, - { 0x5479, 3378 }, - { 0x547A, 3381 }, - { 0x5485, 3384 }, - { 0x548B, 3387 }, - { 0x5349, 3390 }, - { 0x5346, 3393 }, - { 0x5347, 3396 }, - { 0x5354, 3399 }, - { 0x5351, 3402 }, - { 0x5352, 3405 }, - { 0x5350, 3408 }, - { 0x534D, 3411 }, - { 0x534E, 3414 }, - { 0x534B, 3417 }, - { 0x5358, 3420 }, - { 0x535A, 3423 }, - { 0x5355, 3426 }, - { 0x5356, 3429 }, - { 0x535E, 3432 }, - { 0x5360, 3435 }, - { 0x535B, 3438 }, - { 0x535C, 3441 }, - { 0x5293, 3444 }, - { 0x5291, 3447 }, - { 0x529A, 3450 }, - { 0x5298, 3453 }, - { 0x52A6, 3456 }, - { 0x52AC, 3459 }, - { 0x52DB, 3462 }, - { 0x52D8, 3465 }, - { 0x52D9, 3468 }, - { 0x52E1, 3471 }, - { 0x52DF, 3474 }, - { 0x52D6, 3477 }, - { 0x52D3, 3480 }, - { 0x52D0, 3483 }, - { 0x52D1, 3486 }, - { 0x52DE, 3489 }, - { 0x52DC, 3492 }, - { 0x52E4, 3495 }, - { 0x52E6, 3498 }, - { 0x52E2, 3501 }, - { 0x52EA, 3504 }, - { 0x52EC, 3507 }, - { 0x52E7, 3510 }, - { 0x52E8, 3513 }, - { 0x505D, 3516 }, - { 0x505A, 3519 }, - { 0x505B, 3522 }, - { 0x5064, 3525 }, - { 0x5062, 3528 }, - { 0x5070, 3531 }, - { 0x5368, 3534 }, - { 0x5365, 3537 }, - { 0x5366, 3540 }, - { 0x5374, 3543 }, - { 0x537A, 3546 }, - { 0x513C, 3549 }, - { 0x513A, 3552 }, - { 0x5143, 3555 }, - { 0x5141, 3558 }, - { 0x514F, 3561 }, - { 0x5219, 3564 }, - { 0x5217, 3567 }, - { 0x5221, 3570 }, - { 0x521E, 3573 }, - { 0x521F, 3576 }, - { 0x522E, 3579 }, - { 0x519D, 3582 }, - { 0x519B, 3585 }, - { 0x51A4, 3588 }, - { 0x51A2, 3591 }, - { 0x51AF, 3594 }, - { 0x51B5, 3597 }, - { 0x5097, 3600 }, - { 0x5095, 3603 }, - { 0x509E, 3606 }, - { 0x509C, 3609 }, - { 0x50A7, 3612 }, - { 0x50AC, 3615 }, - { 0x516F, 3618 }, - { 0x516C, 3621 }, - { 0x516D, 3624 }, - { 0x5174, 3627 }, - { 0x524D, 3630 }, - { 0x524A, 3633 }, - { 0x524B, 3636 }, - { 0x5255, 3639 }, - { 0x5252, 3642 }, - { 0x5253, 3645 }, - { 0x541F, 3648 }, - { 0x541C, 3651 }, - { 0x541D, 3654 }, - { 0x5422, 3657 }, - { 0x5420, 3660 }, - { 0x542B, 3663 }, - { 0x5230, 3666 }, - { 0x5238, 3669 }, - { 0x5236, 3672 }, - { 0x5244, 3675 }, - { 0x507C, 3678 }, - { 0x507A, 3681 }, - { 0x5089, 3684 }, - { 0x508F, 3687 }, - { 0x5155, 3690 }, - { 0x5166, 3693 }, - { 0x525F, 3696 }, - { 0x525D, 3699 }, - { 0x5264, 3702 }, - { 0x5265, 3705 }, - { 0x5438, 3708 }, - { 0x5435, 3711 }, - { 0x5436, 3714 }, - { 0x5439, 3717 }, - { 0x5442, 3720 }, - { 0x5448, 3723 }, - { 0x53A3, 3726 }, - { 0x53A9, 3729 }, - { 0x5451, 3732 }, - { 0x544E, 3735 }, - { 0x544F, 3738 }, - { 0x5454, 3741 }, - { 0x5452, 3744 }, - { 0x52F3, 3747 }, - { 0x52F1, 3750 }, - { 0x52F8, 3753 }, - { 0x5301, 3756 }, - { 0x5307, 3759 }, - { 0x537E, 3762 }, - { 0x538C, 3765 }, - { 0x5392, 3768 }, - { 0x53B1, 3771 }, - { 0x53AF, 3774 }, - { 0x53BE, 3777 }, - { 0x53C4, 3780 }, - { 0x5330, 3783 }, - { 0x532E, 3786 }, - { 0x5344, 3789 }, - { 0x534C, 3792 }, - { 0x534A, 3795 }, - { 0x5359, 3798 }, - { 0x535F, 3801 }, - { 0x52D7, 3804 }, - { 0x52D4, 3807 }, - { 0x52D5, 3810 }, - { 0x52E5, 3813 }, - { 0x52EB, 3816 }, - { 0x262C, 3819 }, - { 0x224C, 3821 }, - { 0x232E, 3824 }, - { 0x27D1, 3826 }, - { 0x235D, 3829 }, - { 0x2355, 3835 }, - { 0x2351, 3841 }, - { 0x2361, 3847 }, - { 0x2372, 3853 }, - { 0x2352, 3859 }, - { 0x236B, 3864 }, - { 0x2362, 3869 }, - { 0x235B, 3874 }, - { 0x2364, 3879 }, - { 0x2374, 3884 }, - { 0x2366, 3888 }, - { 0x234E, 3894 }, - { 0x234A, 3900 }, - { 0x2371, 3906 }, - { 0x2373, 3912 }, - { 0x2378, 3916 }, - { 0x2367, 3921 }, - { 0x2395, 3927 }, - { 0x2353, 3931 }, - { 0x2354, 3937 }, - { 0x233B, 3942 }, - { 0x236F, 3947 }, - { 0x234C, 3953 }, - { 0x2360, 3959 }, - { 0x234D, 3964 }, - { 0x2338, 3969 }, - { 0x2341, 3974 }, - { 0x233C, 3979 }, - { 0x2339, 3984 }, - { 0x233A, 3989 }, - { 0x2350, 3994 }, - { 0x2370, 4000 }, - { 0x2342, 4005 }, - { 0x2357, 4010 }, - { 0x2347, 4016 }, - { 0x2343, 4022 }, - { 0x2348, 4027 }, - { 0x2344, 4033 }, - { 0x2363, 4038 }, - { 0x237A, 4043 }, - { 0x2376, 4047 }, - { 0x236A, 4052 }, - { 0x234B, 4057 }, - { 0x2359, 4062 }, - { 0x2375, 4067 }, - { 0x2379, 4071 }, - { 0x235E, 4076 }, - { 0x2358, 4081 }, - { 0x233F, 4086 }, - { 0x236D, 4091 }, - { 0x2368, 4096 }, - { 0x236C, 4101 }, - { 0x233E, 4105 }, - { 0x235F, 4110 }, - { 0x233D, 4115 }, - { 0x235C, 4120 }, - { 0x2349, 4125 }, - { 0x2365, 4130 }, - { 0x2336, 4135 }, - { 0x2337, 4139 }, - { 0x235A, 4144 }, - { 0x2377, 4149 }, - { 0x234F, 4154 }, - { 0x2340, 4159 }, - { 0x2356, 4164 }, - { 0x2345, 4169 }, - { 0x236E, 4174 }, - { 0x2346, 4179 }, - { 0x2369, 4184 }, - { 0x2312, 4189 }, - { 0x2136, 4190 }, - { 0x29F9, 4192 }, - { 0x29F8, 4195 }, - { 0x2540, 4197 }, - { 0x2526, 4205 }, - { 0x251A, 4213 }, - { 0x251E, 4220 }, - { 0x2516, 4228 }, - { 0x2538, 4235 }, - { 0x2548, 4242 }, - { 0x252A, 4250 }, - { 0x2519, 4258 }, - { 0x2522, 4265 }, - { 0x2515, 4273 }, - { 0x2537, 4280 }, - { 0x255C, 4287 }, - { 0x2559, 4294 }, - { 0x2568, 4301 }, - { 0x255B, 4308 }, - { 0x2558, 4315 }, - { 0x2567, 4322 }, - { 0x2541, 4329 }, - { 0x2527, 4337 }, - { 0x2512, 4345 }, - { 0x251F, 4352 }, - { 0x250E, 4360 }, - { 0x2530, 4367 }, - { 0x2547, 4374 }, - { 0x2529, 4382 }, - { 0x2511, 4390 }, - { 0x2521, 4397 }, - { 0x250D, 4405 }, - { 0x252F, 4412 }, - { 0x2556, 4419 }, - { 0x2553, 4426 }, - { 0x2565, 4433 }, - { 0x2555, 4440 }, - { 0x2552, 4447 }, - { 0x2564, 4454 }, - { 0x2543, 4461 }, - { 0x2545, 4470 }, - { 0x2535, 4479 }, - { 0x252D, 4487 }, - { 0x253D, 4495 }, - { 0x253A, 4503 }, - { 0x2532, 4511 }, - { 0x254A, 4519 }, - { 0x2579, 4527 }, - { 0x251B, 4531 }, - { 0x257F, 4537 }, - { 0x2517, 4544 }, - { 0x253B, 4550 }, - { 0x257B, 4556 }, - { 0x2513, 4560 }, - { 0x250F, 4566 }, - { 0x2533, 4572 }, - { 0x2578, 4578 }, - { 0x257E, 4582 }, - { 0x257A, 4589 }, - { 0x254F, 4593 }, - { 0x254D, 4599 }, - { 0x2507, 4605 }, - { 0x2505, 4611 }, - { 0x2503, 4617 }, - { 0x252B, 4621 }, - { 0x2523, 4627 }, - { 0x254B, 4633 }, - { 0x250B, 4639 }, - { 0x2509, 4645 }, - { 0x2501, 4651 }, - { 0x2575, 4655 }, - { 0x2518, 4659 }, - { 0x257D, 4665 }, - { 0x2514, 4672 }, - { 0x2534, 4678 }, - { 0x256F, 4684 }, - { 0x2570, 4691 }, - { 0x256E, 4698 }, - { 0x256D, 4705 }, - { 0x2577, 4712 }, - { 0x2510, 4716 }, - { 0x250C, 4722 }, - { 0x252C, 4728 }, - { 0x2574, 4734 }, - { 0x257C, 4738 }, - { 0x2576, 4745 }, - { 0x254E, 4749 }, - { 0x254C, 4755 }, - { 0x2506, 4761 }, - { 0x2504, 4767 }, - { 0x2573, 4773 }, - { 0x2572, 4778 }, - { 0x2571, 4787 }, - { 0x2502, 4796 }, - { 0x2524, 4800 }, - { 0x251C, 4806 }, - { 0x253C, 4812 }, - { 0x250A, 4818 }, - { 0x2508, 4824 }, - { 0x2500, 4830 }, - { 0x2544, 4834 }, - { 0x2546, 4843 }, - { 0x2536, 4852 }, - { 0x252E, 4860 }, - { 0x253E, 4868 }, - { 0x2539, 4876 }, - { 0x2531, 4884 }, - { 0x2549, 4892 }, - { 0x255D, 4900 }, - { 0x255A, 4906 }, - { 0x2569, 4912 }, - { 0x2557, 4918 }, - { 0x2554, 4924 }, - { 0x2566, 4930 }, - { 0x2551, 4936 }, - { 0x2563, 4940 }, - { 0x2560, 4946 }, - { 0x256C, 4952 }, - { 0x2550, 4958 }, - { 0x2528, 4962 }, - { 0x2520, 4969 }, - { 0x2542, 4976 }, - { 0x2525, 4983 }, - { 0x251D, 4990 }, - { 0x253F, 4997 }, - { 0x2562, 5004 }, - { 0x255F, 5011 }, - { 0x256B, 5018 }, - { 0x2561, 5025 }, - { 0x255E, 5032 }, - { 0x256A, 5039 }, - { 0x2627, 5046 }, - { 0x31CF, 5048 }, - { 0x31C0, 5051 }, - { 0x31C7, 5054 }, - { 0x31C4, 5057 }, - { 0x31C1, 5060 }, - { 0x31C2, 5063 }, - { 0x31C3, 5066 }, - { 0x31C6, 5069 }, - { 0x31CA, 5072 }, - { 0x31CD, 5075 }, - { 0x31C5, 5078 }, - { 0x31CC, 5081 }, - { 0x31C8, 5084 }, - { 0x31CB, 5087 }, - { 0x31CE, 5090 }, - { 0x31C9, 5093 }, - { 0x2E86, 5096 }, - { 0x2EA7, 5099 }, - { 0x2EA8, 5102 }, - { 0x2EDD, 5105 }, - { 0x2EDE, 5109 }, - { 0x2EDF, 5113 }, - { 0x2EB8, 5117 }, - { 0x2EAB, 5120 }, - { 0x2EB1, 5123 }, - { 0x2EB2, 5127 }, - { 0x2EB4, 5131 }, - { 0x2EB3, 5135 }, - { 0x2EB9, 5139 }, - { 0x2EA4, 5142 }, - { 0x2EA5, 5146 }, - { 0x2EB7, 5150 }, - { 0x2E99, 5153 }, - { 0x2E9C, 5156 }, - { 0x2ED8, 5159 }, - { 0x2EAA, 5162 }, - { 0x2EE3, 5167 }, - { 0x2ECF, 5170 }, - { 0x2EA3, 5173 }, - { 0x2ECA, 5176 }, - { 0x2E98, 5179 }, - { 0x2EE1, 5182 }, - { 0x2EC7, 5185 }, - { 0x2EA9, 5188 }, - { 0x2E8E, 5191 }, - { 0x2E8F, 5195 }, - { 0x2E91, 5199 }, - { 0x2E90, 5203 }, - { 0x2ED1, 5207 }, - { 0x2ED2, 5211 }, - { 0x2EBC, 5215 }, - { 0x2EB5, 5218 }, - { 0x2E9D, 5221 }, - { 0x2ED7, 5224 }, - { 0x2E8B, 5227 }, - { 0x2EAF, 5230 }, - { 0x2ECD, 5233 }, - { 0x2ECE, 5237 }, - { 0x2EC3, 5241 }, - { 0x2EC4, 5245 }, - { 0x2EBA, 5249 }, - { 0x2EBB, 5253 }, - { 0x2E9B, 5257 }, - { 0x2E81, 5260 }, - { 0x2E9E, 5263 }, - { 0x2EE4, 5266 }, - { 0x2EBE, 5269 }, - { 0x2EBF, 5273 }, - { 0x2EC0, 5277 }, - { 0x2E96, 5281 }, - { 0x2E97, 5285 }, - { 0x2E88, 5289 }, - { 0x2E89, 5293 }, - { 0x2ED5, 5297 }, - { 0x2ED6, 5301 }, - { 0x2EB6, 5305 }, - { 0x2E8C, 5308 }, - { 0x2E8D, 5312 }, - { 0x2E92, 5316 }, - { 0x2E94, 5319 }, - { 0x2E95, 5323 }, - { 0x2E87, 5327 }, - { 0x2EC1, 5330 }, - { 0x2EA1, 5333 }, - { 0x2EA2, 5337 }, - { 0x2EAE, 5341 }, - { 0x2EBD, 5344 }, - { 0x2E9F, 5347 }, - { 0x2E85, 5350 }, - { 0x2E80, 5353 }, - { 0x2E82, 5356 }, - { 0x2E83, 5360 }, - { 0x2E84, 5364 }, - { 0x2EAC, 5368 }, - { 0x2EAD, 5372 }, - { 0x2E93, 5376 }, - { 0x2EF1, 5379 }, - { 0x2EC2, 5382 }, - { 0x2EA0, 5385 }, - { 0x2E8A, 5388 }, - { 0x2EA6, 5391 }, - { 0x2EC6, 5397 }, - { 0x2ECC, 5401 }, - { 0x2EE8, 5405 }, - { 0x2EE9, 5409 }, - { 0x2EE0, 5413 }, - { 0x2EDC, 5417 }, - { 0x2EC5, 5421 }, - { 0x2EE6, 5425 }, - { 0x2ECB, 5429 }, - { 0x2EEC, 5433 }, - { 0x2EE5, 5437 }, - { 0x2EEA, 5441 }, - { 0x2ED4, 5445 }, - { 0x2ED0, 5449 }, - { 0x2EDA, 5453 }, - { 0x2ED3, 5457 }, - { 0x2EE7, 5461 }, - { 0x2EB0, 5465 }, - { 0x2EDB, 5469 }, - { 0x2EE2, 5473 }, - { 0x2EC9, 5477 }, - { 0x2EEE, 5481 }, - { 0x2EF0, 5485 }, - { 0x2EC8, 5489 }, - { 0x2ED9, 5493 }, - { 0x2EF3, 5498 }, - { 0x2EEB, 5502 }, - { 0x2EED, 5506 }, - { 0x2EEF, 5510 }, - { 0x2EF2, 5514 }, - { 0x2680, 5518 }, - { 0x2681, 5520 }, - { 0x2682, 5522 }, - { 0x2683, 5524 }, - { 0x2684, 5526 }, - { 0x2685, 5528 }, - { 0x2214, 5530 }, - { 0x02D9, 5532 }, - { 0x2238, 5534 }, - { 0x22C5, 5536 }, - { 0x220E, 5538 }, - { 0x2200, 5541 }, - { 0x2668, 5543 }, - { 0x2615, 5545 }, - { 0x20AD, 5547 }, - { 0x0EDD, 5549 }, - { 0x0EDC, 5552 }, - { 0x0EC6, 5555 }, - { 0x0EC8, 5558 }, - { 0x0ECA, 5562 }, - { 0x0EC9, 5566 }, - { 0x0ECB, 5570 }, - { 0x0ED1, 5574 }, - { 0x0ED6, 5577 }, - { 0x0ED2, 5580 }, - { 0x0ED5, 5583 }, - { 0x0ED4, 5586 }, - { 0x0ED9, 5589 }, - { 0x0ED0, 5592 }, - { 0x0ED8, 5595 }, - { 0x0ED7, 5598 }, - { 0x0ED3, 5601 }, - { 0x0EB0, 5604 }, - { 0x0EC0, 5608 }, - { 0x0EB4, 5612 }, - { 0x0EC2, 5616 }, - { 0x0EB8, 5620 }, - { 0x0EB6, 5624 }, - { 0x0EB2, 5628 }, - { 0x0EC4, 5632 }, - { 0x0EB3, 5636 }, - { 0x0EC3, 5640 }, - { 0x0EC1, 5644 }, - { 0x0EB5, 5648 }, - { 0x0EB9, 5652 }, - { 0x0EB7, 5656 }, - { 0x0EB1, 5660 }, - { 0x0EBB, 5665 }, - { 0x0EAD, 5670 }, - { 0x0E9A, 5673 }, - { 0x0E88, 5676 }, - { 0x0E94, 5679 }, - { 0x0E9D, 5682 }, - { 0x0E9F, 5686 }, - { 0x0EAE, 5690 }, - { 0x0EAB, 5694 }, - { 0x0E81, 5698 }, - { 0x0EA3, 5701 }, - { 0x0EA5, 5705 }, - { 0x0EA1, 5709 }, - { 0x0E99, 5712 }, - { 0x0E9B, 5715 }, - { 0x0E8A, 5718 }, - { 0x0EAA, 5722 }, - { 0x0E95, 5726 }, - { 0x0EA7, 5729 }, - { 0x0EA2, 5732 }, - { 0x0E84, 5735 }, - { 0x0E82, 5739 }, - { 0x0E87, 5743 }, - { 0x0E8D, 5746 }, - { 0x0E9E, 5749 }, - { 0x0E9C, 5753 }, - { 0x0E97, 5757 }, - { 0x0E96, 5761 }, - { 0x0EAF, 5765 }, - { 0x0ECD, 5767 }, - { 0x0EBC, 5769 }, - { 0x0EBD, 5773 }, - { 0x0ECC, 5777 }, - { 0x264C, 5780 }, - { 0x005F, 5781 }, - { 0x301F, 5783 }, - { 0x204E, 5788 }, - { 0x19DE, 5790 }, - { 0x19DF, 5795 }, - { 0x19C8, 5800 }, - { 0x19C9, 5805 }, - { 0x19D1, 5810 }, - { 0x19D6, 5815 }, - { 0x19D2, 5820 }, - { 0x19D5, 5825 }, - { 0x19D4, 5830 }, - { 0x19D9, 5835 }, - { 0x19D0, 5840 }, - { 0x19D8, 5845 }, - { 0x19D7, 5850 }, - { 0x19D3, 5855 }, - { 0x19B5, 5860 }, - { 0x19B7, 5866 }, - { 0x19B3, 5872 }, - { 0x19B1, 5878 }, - { 0x19B6, 5884 }, - { 0x19BA, 5890 }, - { 0x19B2, 5896 }, - { 0x19C0, 5902 }, - { 0x19B8, 5908 }, - { 0x19BD, 5914 }, - { 0x19B9, 5920 }, - { 0x19B4, 5926 }, - { 0x19BC, 5932 }, - { 0x19BB, 5938 }, - { 0x19BE, 5944 }, - { 0x19BF, 5950 }, - { 0x19B0, 5956 }, - { 0x19A5, 5963 }, - { 0x19A4, 5969 }, - { 0x199D, 5975 }, - { 0x19A3, 5981 }, - { 0x1985, 5987 }, - { 0x199F, 5993 }, - { 0x1999, 5999 }, - { 0x1993, 6005 }, - { 0x1997, 6011 }, - { 0x1981, 6017 }, - { 0x198C, 6023 }, - { 0x1991, 6029 }, - { 0x199E, 6035 }, - { 0x1986, 6041 }, - { 0x198D, 6047 }, - { 0x19A8, 6053 }, - { 0x1987, 6059 }, - { 0x1998, 6065 }, - { 0x1992, 6071 }, - { 0x198B, 6077 }, - { 0x19A9, 6083 }, - { 0x19A2, 6089 }, - { 0x19A1, 6095 }, - { 0x199A, 6101 }, - { 0x19A0, 6107 }, - { 0x1982, 6113 }, - { 0x199C, 6119 }, - { 0x1996, 6125 }, - { 0x1990, 6131 }, - { 0x1994, 6137 }, - { 0x1980, 6143 }, - { 0x1989, 6149 }, - { 0x198E, 6155 }, - { 0x199B, 6161 }, - { 0x1983, 6167 }, - { 0x198A, 6173 }, - { 0x19A6, 6179 }, - { 0x1984, 6185 }, - { 0x1995, 6191 }, - { 0x198F, 6197 }, - { 0x1988, 6203 }, - { 0x19A7, 6209 }, - { 0x19C7, 6215 }, - { 0x19C6, 6221 }, - { 0x19C5, 6227 }, - { 0x19C4, 6233 }, - { 0x19C3, 6239 }, - { 0x19C1, 6245 }, - { 0x19C2, 6251 }, - { 0x20AA, 6257 }, - { 0x07F5, 6260 }, - { 0x07F4, 6264 }, - { 0x07F8, 6268 }, - { 0x07C1, 6270 }, - { 0x07C6, 6273 }, - { 0x07C2, 6276 }, - { 0x07C5, 6279 }, - { 0x07C4, 6282 }, - { 0x07C9, 6285 }, - { 0x07C0, 6288 }, - { 0x07C8, 6291 }, - { 0x07C7, 6294 }, - { 0x07C3, 6297 }, - { 0x07CA, 6300 }, - { 0x07CD, 6303 }, - { 0x07CC, 6306 }, - { 0x07D2, 6309 }, - { 0x07D0, 6312 }, - { 0x07CE, 6315 }, - { 0x07D3, 6318 }, - { 0x07D8, 6321 }, - { 0x07CB, 6324 }, - { 0x07DD, 6327 }, - { 0x07E4, 6330 }, - { 0x07D6, 6333 }, - { 0x07DE, 6336 }, - { 0x07DF, 6339 }, - { 0x07E1, 6342 }, - { 0x07E3, 6345 }, - { 0x07E0, 6348 }, - { 0x07CF, 6352 }, - { 0x07D4, 6355 }, - { 0x07D9, 6358 }, - { 0x07DB, 6361 }, - { 0x07D5, 6364 }, - { 0x07E5, 6367 }, - { 0x07E6, 6370 }, - { 0x07D7, 6373 }, - { 0x07DC, 6376 }, - { 0x07E2, 6379 }, - { 0x07E7, 6382 }, - { 0x07DA, 6386 }, - { 0x07E8, 6389 }, - { 0x07EA, 6393 }, - { 0x07E9, 6397 }, - { 0x07D1, 6401 }, - { 0x07F6, 6404 }, - { 0x07F7, 6408 }, - { 0x07F0, 6411 }, - { 0x07EF, 6416 }, - { 0x07F1, 6421 }, - { 0x07EE, 6426 }, - { 0x07EC, 6431 }, - { 0x07EB, 6436 }, - { 0x07ED, 6441 }, - { 0x07F3, 6446 }, - { 0x07F2, 6451 }, - { 0x07FA, 6455 }, - { 0x07F9, 6457 }, - { 0x22BD, 6460 }, - { 0x2284, 6461 }, - { 0x2285, 6465 }, - { 0x2209, 6469 }, - { 0x00AC, 6473 }, - { 0x22AD, 6475 }, - { 0x237B, 6477 }, - { 0x2260, 6480 }, - { 0x2241, 6483 }, - { 0x2249, 6485 }, - { 0x22EA, 6489 }, - { 0x22EC, 6493 }, - { 0x22E2, 6500 }, - { 0x22E3, 6507 }, - { 0x2226, 6514 }, - { 0x2262, 6517 }, - { 0x226E, 6520 }, - { 0x226D, 6522 }, - { 0x226F, 6525 }, - { 0x2244, 6527 }, - { 0x2445, 6531 }, - { 0x2444, 6534 }, - { 0x2448, 6537 }, - { 0x2442, 6539 }, - { 0x2440, 6541 }, - { 0x2441, 6543 }, - { 0x2447, 6545 }, - { 0x2446, 6549 }, - { 0x244A, 6553 }, - { 0x2449, 6556 }, - { 0x2443, 6560 }, - { 0x2126, 6563 }, - { 0x7300, 6565 }, - { 0x7304, 6569 }, - { 0x7309, 6573 }, - { 0x730F, 6577 }, - { 0x7316, 6581 }, - { 0x7301, 6585 }, - { 0x7303, 6589 }, - { 0x731A, 6593 }, - { 0x730B, 6597 }, - { 0x730C, 6601 }, - { 0x730D, 6605 }, - { 0x7313, 6609 }, - { 0x7314, 6613 }, - { 0x7307, 6617 }, - { 0x731D, 6621 }, - { 0x730A, 6625 }, - { 0x7302, 6629 }, - { 0x7312, 6633 }, - { 0x7310, 6637 }, - { 0x7315, 6641 }, - { 0x731E, 6645 }, - { 0x7305, 6649 }, - { 0x7306, 6653 }, - { 0x731C, 6657 }, - { 0x7317, 6661 }, - { 0x731B, 6665 }, - { 0x730E, 6669 }, - { 0x7319, 6673 }, - { 0x7318, 6677 }, - { 0x7311, 6681 }, - { 0x7308, 6685 }, - { 0x7320, 6689 }, - { 0x7322, 6693 }, - { 0x7321, 6697 }, - { 0x7323, 6701 }, - { 0x73A0, 6705 }, - { 0x73A1, 6709 }, - { 0x73A2, 6713 }, - { 0x73B2, 6717 }, - { 0x73A8, 6721 }, - { 0x73AD, 6725 }, - { 0x73AE, 6729 }, - { 0x73AF, 6733 }, - { 0x73B3, 6737 }, - { 0x73A5, 6741 }, - { 0x73A6, 6745 }, - { 0x73C3, 6749 }, - { 0x73A9, 6753 }, - { 0x73AA, 6757 }, - { 0x73A3, 6761 }, - { 0x73A4, 6765 }, - { 0x73BE, 6769 }, - { 0x73B6, 6773 }, - { 0x73B7, 6777 }, - { 0x73B8, 6781 }, - { 0x73B4, 6785 }, - { 0x73B5, 6789 }, - { 0x73B1, 6793 }, - { 0x73BC, 6797 }, - { 0x73BD, 6801 }, - { 0x73BF, 6805 }, - { 0x73AB, 6809 }, - { 0x73AC, 6813 }, - { 0x73BA, 6817 }, - { 0x73BB, 6821 }, - { 0x73A7, 6825 }, - { 0x73B9, 6829 }, - { 0x73C0, 6833 }, - { 0x73C1, 6837 }, - { 0x73C2, 6841 }, - { 0x73B0, 6845 }, - { 0x73CE, 6849 }, - { 0x73CF, 6853 }, - { 0x73CC, 6857 }, - { 0x73C8, 6861 }, - { 0x73CD, 6865 }, - { 0x73C9, 6869 }, - { 0x73CA, 6873 }, - { 0x73CB, 6877 }, - { 0x73D0, 6881 }, - { 0x73D1, 6885 }, - { 0x73D3, 6889 }, - { 0x73D2, 6893 }, - { 0x73D4, 6897 }, - { 0x73D5, 6901 }, - { 0x2024, 6905 }, - { 0x2031, 6908 }, - { 0x214C, 6912 }, - { 0x2030, 6914 }, - { 0x202C, 6917 }, - { 0x2216, 6920 }, - { 0x2736, 6922 }, - { 0x273E, 6926 }, - { 0x2609, 6932 }, - { 0xB05F, 6933 }, - { 0xB02E, 6936 }, - { 0xB07B, 6939 }, - { 0xB05B, 6943 }, - { 0xB028, 6947 }, - { 0xB02B, 6950 }, - { 0xB03A, 6953 }, - { 0xB02C, 6955 }, - { 0xB031, 6957 }, - { 0xB036, 6960 }, - { 0xB032, 6963 }, - { 0xB035, 6966 }, - { 0xB034, 6969 }, - { 0xB039, 6972 }, - { 0xB030, 6975 }, - { 0xB038, 6978 }, - { 0xB037, 6981 }, - { 0xB033, 6984 }, - { 0xB060, 6987 }, - { 0xB061, 6990 }, - { 0xB062, 6995 }, - { 0xB063, 7000 }, - { 0xB064, 7005 }, - { 0xB065, 7010 }, - { 0xB066, 7015 }, - { 0xB067, 7020 }, - { 0xB068, 7025 }, - { 0xB069, 7030 }, - { 0xB06A, 7035 }, - { 0xB06B, 7040 }, - { 0xB06C, 7045 }, - { 0xB06D, 7050 }, - { 0xB06E, 7055 }, - { 0xB06F, 7060 }, - { 0xB070, 7065 }, - { 0xB071, 7070 }, - { 0xB072, 7075 }, - { 0xB073, 7080 }, - { 0xB074, 7085 }, - { 0xB075, 7090 }, - { 0xB076, 7095 }, - { 0xB077, 7100 }, - { 0xB078, 7105 }, - { 0xB079, 7110 }, - { 0xB07A, 7115 }, - { 0xB041, 7120 }, - { 0xB042, 7125 }, - { 0xB043, 7130 }, - { 0xB044, 7135 }, - { 0xB045, 7140 }, - { 0xB046, 7145 }, - { 0xB047, 7150 }, - { 0xB048, 7155 }, - { 0xB049, 7160 }, - { 0xB04A, 7165 }, - { 0xB04B, 7170 }, - { 0xB04C, 7175 }, - { 0xB04D, 7180 }, - { 0xB04E, 7185 }, - { 0xB04F, 7190 }, - { 0xB050, 7195 }, - { 0xB051, 7200 }, - { 0xB052, 7205 }, - { 0xB053, 7210 }, - { 0xB054, 7215 }, - { 0xB055, 7220 }, - { 0xB056, 7225 }, - { 0xB057, 7230 }, - { 0xB058, 7235 }, - { 0xB059, 7240 }, - { 0xB05A, 7245 }, - { 0xB07D, 7250 }, - { 0xB05D, 7254 }, - { 0xB029, 7258 }, - { 0xB020, 7261 }, - { 0xB07E, 7263 }, - { 0xB024, 7265 }, - { 0xB03D, 7268 }, - { 0xB023, 7271 }, - { 0xB025, 7274 }, - { 0xB05C, 7277 }, - { 0xB02F, 7280 }, - { 0xB02A, 7282 }, - { 0xB03F, 7284 }, - { 0xB07C, 7287 }, - { 0xB026, 7290 }, - { 0xB03C, 7292 }, - { 0xB022, 7295 }, - { 0xB03B, 7298 }, - { 0xB027, 7300 }, - { 0xB05E, 7302 }, - { 0xB040, 7305 }, - { 0xB021, 7308 }, - { 0xB03E, 7311 }, - { 0xB02D, 7314 }, - { 0x1963, 7316 }, - { 0x196B, 7320 }, - { 0x1964, 7324 }, - { 0x1969, 7328 }, - { 0x1967, 7332 }, - { 0x196D, 7336 }, - { 0x1965, 7340 }, - { 0x1966, 7344 }, - { 0x195C, 7348 }, - { 0x195E, 7352 }, - { 0x1950, 7356 }, - { 0x1958, 7360 }, - { 0x195B, 7364 }, - { 0x1962, 7368 }, - { 0x1968, 7372 }, - { 0x1959, 7376 }, - { 0x195F, 7380 }, - { 0x1954, 7384 }, - { 0x1956, 7388 }, - { 0x196A, 7392 }, - { 0x195D, 7396 }, - { 0x1951, 7400 }, - { 0x1955, 7404 }, - { 0x196C, 7408 }, - { 0x1960, 7412 }, - { 0x1952, 7416 }, - { 0x195A, 7420 }, - { 0x1957, 7424 }, - { 0x1953, 7428 }, - { 0x1961, 7432 }, - { 0x1970, 7436 }, - { 0x1971, 7440 }, - { 0x1972, 7444 }, - { 0x1973, 7448 }, - { 0x1974, 7452 }, - { 0x29DD, 7456 }, - { 0x293C, 7459 }, - { 0x293A, 7465 }, - { 0x293D, 7469 }, - { 0x2320, 7475 }, - { 0x230F, 7478 }, - { 0x231C, 7481 }, - { 0x23DE, 7484 }, - { 0x230E, 7487 }, - { 0x231D, 7490 }, - { 0x23B4, 7493 }, - { 0x23E0, 7496 }, - { 0x23DC, 7500 }, - { 0x2025, 7502 }, - { 0x205A, 7505 }, - { 0x29C9, 7508 }, - { 0x2A08, 7511 }, - { 0x2A07, 7515 }, - { 0x2051, 7519 }, - { 0x2A75, 7523 }, - { 0x2A56, 7527 }, - { 0x2A55, 7531 }, - { 0x20A9, 7535 }, - { 0x22BB, 7537 }, - { 0x00A5, 7538 }, - { 0x262F, 7540 }, - { 0x2135, 7542 }, - { 0x2625, 7544 }, - { 0x269B, 7545 }, - { 0x237E, 7547 }, - { 0x2106, 7549 }, - { 0x2105, 7551 }, - { 0x20B5, 7553 }, - { 0x00A2, 7555 }, - { 0x221B, 7557 }, - { 0x2593, 7559 }, - { 0x22AE, 7561 }, - { 0x22AC, 7564 }, - { 0x2224, 7567 }, - { 0x2AEE, 7570 }, - { 0x220C, 7577 }, - { 0x22EB, 7582 }, - { 0x22ED, 7588 }, - { 0x2280, 7596 }, - { 0x22E0, 7599 }, - { 0x2281, 7604 }, - { 0x22E1, 7607 }, - { 0x20AB, 7612 }, - { 0x297F, 7614 }, - { 0x22A4, 7617 }, - { 0x2AF1, 7619 }, - { 0x22F1, 7624 }, - { 0x2304, 7628 }, - { 0x2671, 7630 }, - { 0x20AC, 7633 }, - { 0x2059, 7635 }, - { 0x205B, 7638 }, - { 0x2058, 7641 }, - { 0x2725, 7644 }, - { 0x2723, 7647 }, - { 0x2722, 7650 }, - { 0x002E, 7653 }, - { 0x2588, 7655 }, - { 0x27D7, 7657 }, - { 0x23DB, 7660 }, - { 0x2699, 7661 }, - { 0x3013, 7662 }, - { 0x200A, 7664 }, - { 0x2388, 7666 }, - { 0x26A1, 7668 }, - { 0x2A1D, 7671 }, - { 0x263E, 7672 }, - { 0x27DB, 7675 }, - { 0x27DA, 7679 }, - { 0x2993, 7684 }, - { 0x2E1C, 7688 }, - { 0x258F, 7692 }, - { 0x258E, 7696 }, - { 0x294E, 7700 }, - { 0x294A, 7707 }, - { 0x294B, 7714 }, - { 0x2950, 7721 }, - { 0x297C, 7728 }, - { 0x258B, 7731 }, - { 0x25D6, 7735 }, - { 0x258C, 7739 }, - { 0x22A3, 7742 }, - { 0x3008, 7744 }, - { 0x2991, 7747 }, - { 0x2997, 7752 }, - { 0x3010, 7757 }, - { 0x007B, 7761 }, - { 0x23A9, 7764 }, - { 0x23A7, 7769 }, - { 0x23A8, 7774 }, - { 0x230A, 7779 }, - { 0x27D5, 7781 }, - { 0x21AD, 7784 }, - { 0x2194, 7788 }, - { 0x21FC, 7791 }, - { 0x21AE, 7798 }, - { 0x21F9, 7803 }, - { 0x2948, 7809 }, - { 0x2B0C, 7815 }, - { 0x2B04, 7819 }, - { 0x21D4, 7823 }, - { 0x21CE, 7827 }, - { 0x2904, 7833 }, - { 0x21FF, 7840 }, - { 0x2589, 7844 }, - { 0x258D, 7848 }, - { 0x258A, 7852 }, - { 0x2983, 7856 }, - { 0x300E, 7860 }, - { 0x301A, 7864 }, - { 0x3018, 7868 }, - { 0x3016, 7873 }, - { 0x2985, 7877 }, - { 0x300C, 7880 }, - { 0x2E04, 7883 }, - { 0x300A, 7887 }, - { 0x29DA, 7891 }, - { 0x201C, 7895 }, - { 0x22C9, 7899 }, - { 0x2E0C, 7904 }, - { 0x2018, 7908 }, - { 0x005B, 7912 }, - { 0x298D, 7915 }, - { 0x298F, 7923 }, - { 0x2045, 7931 }, - { 0x298B, 7936 }, - { 0x23A3, 7941 }, - { 0x23A1, 7946 }, - { 0x23A2, 7951 }, - { 0x29D8, 7955 }, - { 0x2308, 7958 }, - { 0x27DC, 7960 }, - { 0x27C5, 7962 }, - { 0x3014, 7966 }, - { 0x29CF, 7970 }, - { 0x23B8, 7975 }, - { 0x22CB, 7979 }, - { 0x0028, 7982 }, - { 0x239D, 7984 }, - { 0x239B, 7988 }, - { 0x239C, 7992 }, - { 0x2E02, 7995 }, - { 0x2E09, 7998 }, - { 0x2028, 8001 }, - { 0x2A14, 8003 }, - { 0x2A12, 8009 }, - { 0x2A13, 8016 }, - { 0x20A4, 8023 }, - { 0x2AE6, 8025 }, - { 0x27DE, 8033 }, - { 0x27F7, 8036 }, - { 0x27FA, 8040 }, - { 0x27DD, 8045 }, - { 0x27F5, 8048 }, - { 0x27FB, 8051 }, - { 0x27F8, 8056 }, - { 0x27FD, 8060 }, - { 0x27F6, 8066 }, - { 0x27FC, 8069 }, - { 0x27F9, 8074 }, - { 0x27FE, 8078 }, - { 0x27FF, 8084 }, - { 0x26A5, 8088 }, - { 0x2642, 8092 }, - { 0x26A7, 8094 }, - { 0x26A6, 8102 }, - { 0x303C, 8106 }, - { 0x20A5, 8108 }, - { 0x29FF, 8110 }, - { 0x226A, 8111 }, - { 0x226B, 8113 }, - { 0x22BC, 8115 }, - { 0x2398, 8116 }, - { 0x2423, 8118 }, - { 0x272B, 8120 }, - { 0x271B, 8124 }, - { 0x2732, 8127 }, - { 0x273C, 8130 }, - { 0x27C3, 8134 }, - { 0x27C4, 8136 }, - { 0x303D, 8138 }, - { 0x20B1, 8141 }, - { 0x002B, 8143 }, - { 0x2A2D, 8145 }, - { 0x2A2E, 8151 }, - { 0x2A39, 8157 }, - { 0x2A25, 8161 }, - { 0x2A28, 8166 }, - { 0x2A22, 8171 }, - { 0x2A24, 8177 }, - { 0x2A26, 8182 }, - { 0x2A27, 8187 }, - { 0x2A23, 8192 }, - { 0x2A72, 8198 }, - { 0x6DFC, 8203 }, - { 0x2256, 8205 }, - { 0x02DA, 8209 }, - { 0x2257, 8211 }, - { 0x2218, 8214 }, - { 0x223F, 8216 }, - { 0x00AD, 8218 }, - { 0x2721, 8220 }, - { 0x262A, 8223 }, - { 0x225B, 8226 }, - { 0x22C6, 8228 }, - { 0x2707, 8230 }, - { 0x0E51, 8232 }, - { 0x0E56, 8235 }, - { 0x0E52, 8238 }, - { 0x0E55, 8241 }, - { 0x0E54, 8244 }, - { 0x0E59, 8247 }, - { 0x0E50, 8250 }, - { 0x0E58, 8253 }, - { 0x0E57, 8256 }, - { 0x0E53, 8259 }, - { 0x0E3F, 8262 }, - { 0x0E2D, 8266 }, - { 0x0E1A, 8270 }, - { 0x0E14, 8274 }, - { 0x0E0E, 8278 }, - { 0x0E1D, 8282 }, - { 0x0E1F, 8286 }, - { 0x0E2B, 8290 }, - { 0x0E2E, 8294 }, - { 0x0E01, 8298 }, - { 0x0E25, 8302 }, - { 0x0E2C, 8306 }, - { 0x0E26, 8310 }, - { 0x0E21, 8313 }, - { 0x0E19, 8317 }, - { 0x0E13, 8321 }, - { 0x0E1B, 8325 }, - { 0x0E23, 8329 }, - { 0x0E24, 8333 }, - { 0x0E0B, 8336 }, - { 0x0E2A, 8340 }, - { 0x0E29, 8344 }, - { 0x0E28, 8348 }, - { 0x0E15, 8352 }, - { 0x0E0F, 8356 }, - { 0x0E27, 8360 }, - { 0x0E22, 8364 }, - { 0x0E0D, 8368 }, - { 0x0E08, 8372 }, - { 0x0E0C, 8376 }, - { 0x0E0A, 8380 }, - { 0x0E09, 8384 }, - { 0x0E02, 8388 }, - { 0x0E05, 8392 }, - { 0x0E03, 8396 }, - { 0x0E04, 8400 }, - { 0x0E06, 8404 }, - { 0x0E48, 8408 }, - { 0x0E49, 8412 }, - { 0x0E4A, 8416 }, - { 0x0E4B, 8420 }, - { 0x0E31, 8424 }, - { 0x0E07, 8428 }, - { 0x0E1E, 8432 }, - { 0x0E1C, 8436 }, - { 0x0E20, 8440 }, - { 0x0E10, 8444 }, - { 0x0E18, 8448 }, - { 0x0E16, 8452 }, - { 0x0E17, 8456 }, - { 0x0E12, 8460 }, - { 0x0E11, 8464 }, - { 0x0E30, 8468 }, - { 0x0E40, 8472 }, - { 0x0E34, 8476 }, - { 0x0E42, 8480 }, - { 0x0E38, 8484 }, - { 0x0E32, 8488 }, - { 0x0E41, 8492 }, - { 0x0E43, 8496 }, - { 0x0E44, 8501 }, - { 0x0E33, 8506 }, - { 0x0E35, 8510 }, - { 0x0E36, 8514 }, - { 0x0E39, 8518 }, - { 0x0E37, 8522 }, - { 0x0E5B, 8526 }, - { 0x0E4F, 8529 }, - { 0x0E3A, 8532 }, - { 0x0E46, 8535 }, - { 0x0E4D, 8538 }, - { 0x0E4E, 8541 }, - { 0x0E47, 8544 }, - { 0x0E2F, 8547 }, - { 0x0E5A, 8550 }, - { 0x0E45, 8553 }, - { 0x0E4C, 8556 }, - { 0x2009, 8559 }, - { 0x29FE, 8561 }, - { 0x22A8, 8562 }, - { 0x238C, 8563 }, - { 0x22D8, 8565 }, - { 0x22D9, 8568 }, - { 0x301C, 8571 }, - { 0x2933, 8573 }, - { 0x6E4F, 8578 }, - { 0x3030, 8581 }, - { 0x2307, 8583 }, - { 0x6E4B, 8585 }, - { 0x2670, 8587 }, - { 0x2060, 8590 }, - { 0x200B, 8592 }, - { 0x200D, 8595 }, - { 0x6EFF, 8598 }, - { 0x200C, 8602 }, - { 0x299F, 8605 }, - { 0x00B4, 8607 }, - { 0x2220, 8609 }, - { 0x299E, 8610 }, - { 0x29A4, 8614 }, - { 0x2648, 8617 }, - { 0x2936, 8618 }, - { 0x2937, 8624 }, - { 0x2934, 8630 }, - { 0x2935, 8636 }, - { 0x2712, 8642 }, - { 0x2600, 8644 }, - { 0x2663, 8648 }, - { 0x2691, 8651 }, - { 0x2726, 8653 }, - { 0x261A, 8657 }, - { 0x2605, 8661 }, - { 0x265A, 8663 }, - { 0x265F, 8666 }, - { 0x265C, 8669 }, - { 0x265B, 8672 }, - { 0x265D, 8675 }, - { 0x265E, 8678 }, - { 0x2665, 8681 }, - { 0x25E3, 8684 }, - { 0x25E2, 8688 }, - { 0x261B, 8692 }, - { 0x2617, 8696 }, - { 0x25AA, 8699 }, - { 0x2660, 8702 }, - { 0x25E4, 8705 }, - { 0x25E5, 8709 }, - { 0x29D3, 8713 }, - { 0x272C, 8715 }, - { 0x25CF, 8719 }, - { 0x2689, 8721 }, - { 0x29ED, 8727 }, - { 0x2688, 8732 }, - { 0x25FE, 8738 }, - { 0x25FC, 8742 }, - { 0x25A0, 8745 }, - { 0x25C6, 8747 }, - { 0x2666, 8749 }, - { 0x29EA, 8752 }, - { 0x2756, 8757 }, - { 0x2B22, 8762 }, - { 0x29EB, 8764 }, - { 0x263B, 8766 }, - { 0x273F, 8769 }, - { 0x2702, 8771 }, - { 0x25AE, 8773 }, - { 0x29D7, 8776 }, - { 0x204C, 8778 }, - { 0x25AC, 8781 }, - { 0x260E, 8783 }, - { 0x267B, 8785 }, - { 0x27A1, 8789 }, - { 0x204D, 8792 }, - { 0x27A4, 8795 }, - { 0x25B4, 8798 }, - { 0x25B2, 8802 }, - { 0x25BE, 8805 }, - { 0x25BC, 8809 }, - { 0x25C2, 8812 }, - { 0x25C4, 8816 }, - { 0x25C0, 8819 }, - { 0x25B0, 8822 }, - { 0x25B8, 8824 }, - { 0x25BA, 8828 }, - { 0x25B6, 8831 }, - { 0x2422, 8834 }, - { 0x02D8, 8836 }, - { 0x1752, 8837 }, - { 0x1753, 8841 }, - { 0x1740, 8845 }, - { 0x1741, 8848 }, - { 0x1742, 8851 }, - { 0x174A, 8854 }, - { 0x1747, 8857 }, - { 0x1744, 8860 }, - { 0x1751, 8863 }, - { 0x1743, 8866 }, - { 0x174E, 8869 }, - { 0x174B, 8872 }, - { 0x1748, 8875 }, - { 0x1749, 8878 }, - { 0x174D, 8881 }, - { 0x1750, 8884 }, - { 0x1746, 8887 }, - { 0x174F, 8890 }, - { 0x174C, 8893 }, - { 0x1745, 8896 }, - { 0x2038, 8899 }, - { 0x2041, 8900 }, - { 0x02C7, 8903 }, - { 0x2713, 8904 }, - { 0x239A, 8906 }, - { 0x2050, 8909 }, - { 0x2601, 8911 }, - { 0x003A, 8912 }, - { 0x20A1, 8913 }, - { 0x2254, 8915 }, - { 0x2604, 8917 }, - { 0x002C, 8918 }, - { 0x2628, 8919 }, - { 0x2629, 8922 }, - { 0x23AA, 8925 }, - { 0x22CE, 8928 }, - { 0x22CF, 8931 }, - { 0x2138, 8934 }, - { 0x225C, 8936 }, - { 0x0031, 8939 }, - { 0x2488, 8941 }, - { 0x0036, 8945 }, - { 0x248D, 8947 }, - { 0x0032, 8951 }, - { 0x2489, 8953 }, - { 0x0035, 8957 }, - { 0x248C, 8959 }, - { 0x0034, 8963 }, - { 0x248B, 8965 }, - { 0x0039, 8969 }, - { 0x2490, 8971 }, - { 0x0030, 8975 }, - { 0x0038, 8977 }, - { 0x248F, 8979 }, - { 0x0037, 8983 }, - { 0x248E, 8985 }, - { 0x0033, 8989 }, - { 0x248A, 8991 }, - { 0x3003, 8995 }, - { 0x2641, 8997 }, - { 0x23DA, 8998 }, - { 0x2733, 9000 }, - { 0x2734, 9003 }, - { 0x2735, 9007 }, - { 0x2737, 9011 }, - { 0x2741, 9016 }, - { 0x274A, 9021 }, - { 0x23CF, 9025 }, - { 0x2205, 9027 }, - { 0x29B4, 9029 }, - { 0x29B3, 9035 }, - { 0x29B2, 9041 }, - { 0x29B1, 9047 }, - { 0x2386, 9051 }, - { 0x225D, 9053 }, - { 0x22DE, 9057 }, - { 0x22DF, 9061 }, - { 0x22DC, 9065 }, - { 0x22DD, 9069 }, - { 0x22D5, 9073 }, - { 0x232B, 9077 }, - { 0x2326, 9081 }, - { 0x2107, 9085 }, - { 0x262B, 9087 }, - { 0x263D, 9089 }, - { 0x2322, 9092 }, - { 0x2137, 9093 }, - { 0x0060, 9095 }, - { 0x03D6, 9097 }, - { 0x0387, 9100 }, - { 0x03D7, 9103 }, - { 0x7175, 9106 }, - { 0x7176, 9110 }, - { 0x03D5, 9116 }, - { 0x03FC, 9119 }, - { 0x03F1, 9124 }, - { 0x717D, 9127 }, - { 0x7177, 9131 }, - { 0x03D0, 9135 }, - { 0x7180, 9138 }, - { 0x717F, 9142 }, - { 0x717C, 9146 }, - { 0x1FFD, 9149 }, - { 0x7179, 9151 }, - { 0x718A, 9154 }, - { 0x1FFE, 9157 }, - { 0x1FDE, 9159 }, - { 0x1FDD, 9163 }, - { 0x1FDF, 9167 }, - { 0x03F0, 9171 }, - { 0x7183, 9174 }, - { 0x0375, 9177 }, - { 0x1FBF, 9181 }, - { 0x1FCE, 9183 }, - { 0x1FCD, 9187 }, - { 0x1FCF, 9191 }, - { 0x037C, 9195 }, - { 0x03BC, 9201 }, - { 0x03BD, 9205 }, - { 0x03C0, 9209 }, - { 0x03BE, 9213 }, - { 0x03C7, 9217 }, - { 0x03B7, 9221 }, - { 0x1F75, 9225 }, - { 0x1FC4, 9231 }, - { 0x1F21, 9239 }, - { 0x1F25, 9245 }, - { 0x1F95, 9253 }, - { 0x1F23, 9263 }, - { 0x1F93, 9271 }, - { 0x1F27, 9281 }, - { 0x1F97, 9289 }, - { 0x1F91, 9299 }, - { 0x1F20, 9307 }, - { 0x1F24, 9313 }, - { 0x1F94, 9321 }, - { 0x1F22, 9331 }, - { 0x1F92, 9339 }, - { 0x1F26, 9349 }, - { 0x1F96, 9357 }, - { 0x1F90, 9367 }, - { 0x03AE, 9375 }, - { 0x1F74, 9381 }, - { 0x1FC2, 9387 }, - { 0x1FC6, 9395 }, - { 0x1FC7, 9401 }, - { 0x1FC3, 9409 }, - { 0x03C6, 9415 }, - { 0x03C8, 9419 }, - { 0x03C1, 9423 }, - { 0x1FE5, 9427 }, - { 0x1FE4, 9433 }, - { 0x03FB, 9439 }, - { 0x03F8, 9443 }, - { 0x03C4, 9447 }, - { 0x03B2, 9451 }, - { 0x03B9, 9455 }, - { 0x1F77, 9459 }, - { 0x1F31, 9465 }, - { 0x1F35, 9471 }, - { 0x1F33, 9479 }, - { 0x1F37, 9487 }, - { 0x1F30, 9495 }, - { 0x1F34, 9501 }, - { 0x1F32, 9509 }, - { 0x1F36, 9517 }, - { 0x03AF, 9525 }, - { 0x1F76, 9531 }, - { 0x1FD1, 9537 }, - { 0x1FD0, 9543 }, - { 0x03CA, 9549 }, - { 0x1FD3, 9555 }, - { 0x0390, 9563 }, - { 0x1FD2, 9571 }, - { 0x1FD7, 9579 }, - { 0x1FD6, 9587 }, - { 0x03B6, 9593 }, - { 0x03B1, 9597 }, - { 0x1F71, 9601 }, - { 0x1FB4, 9607 }, - { 0x1F01, 9615 }, - { 0x1F05, 9621 }, - { 0x1F85, 9629 }, - { 0x1F03, 9639 }, - { 0x1F83, 9647 }, - { 0x1F07, 9657 }, - { 0x1F87, 9665 }, - { 0x1F81, 9675 }, - { 0x1F00, 9683 }, - { 0x1F04, 9689 }, - { 0x1F84, 9697 }, - { 0x1F02, 9707 }, - { 0x1F82, 9715 }, - { 0x1F06, 9725 }, - { 0x1F86, 9733 }, - { 0x1F80, 9743 }, - { 0x03AC, 9751 }, - { 0x1F70, 9757 }, - { 0x1FB2, 9763 }, - { 0x1FB1, 9771 }, - { 0x1FB0, 9777 }, - { 0x1FB6, 9783 }, - { 0x1FB7, 9789 }, - { 0x1FB3, 9797 }, - { 0x03B4, 9803 }, - { 0x03C2, 9807 }, - { 0x03B3, 9812 }, - { 0x03BA, 9816 }, - { 0x03DF, 9820 }, - { 0x03BB, 9824 }, - { 0x03C9, 9828 }, - { 0x1F7D, 9832 }, - { 0x1FF4, 9838 }, - { 0x1F61, 9846 }, - { 0x1F65, 9852 }, - { 0x1FA5, 9860 }, - { 0x1F63, 9870 }, - { 0x1FA3, 9878 }, - { 0x1F67, 9888 }, - { 0x1FA7, 9896 }, - { 0x1FA1, 9906 }, - { 0x1F60, 9914 }, - { 0x1F64, 9920 }, - { 0x1FA4, 9928 }, - { 0x1F62, 9938 }, - { 0x1FA2, 9946 }, - { 0x1F66, 9956 }, - { 0x1FA6, 9964 }, - { 0x1FA0, 9974 }, - { 0x03CE, 9982 }, - { 0x1F7C, 9988 }, - { 0x1FF2, 9994 }, - { 0x1FF6, 10002 }, - { 0x1FF7, 10008 }, - { 0x1FF3, 10016 }, - { 0x03E1, 10022 }, - { 0x03C3, 10026 }, - { 0x03B8, 10030 }, - { 0x03DB, 10034 }, - { 0x03D9, 10038 }, - { 0x03DD, 10043 }, - { 0x03B5, 10047 }, - { 0x1F73, 10051 }, - { 0x1F11, 10057 }, - { 0x1F15, 10063 }, - { 0x1F13, 10071 }, - { 0x1F10, 10079 }, - { 0x1F14, 10085 }, - { 0x1F12, 10093 }, - { 0x03AD, 10101 }, - { 0x1F72, 10107 }, - { 0x03BF, 10113 }, - { 0x1F79, 10117 }, - { 0x1F41, 10123 }, - { 0x1F45, 10129 }, - { 0x1F43, 10137 }, - { 0x1F40, 10145 }, - { 0x1F44, 10151 }, - { 0x1F42, 10159 }, - { 0x03CC, 10167 }, - { 0x1F78, 10173 }, - { 0x03C5, 10179 }, - { 0x1F7B, 10183 }, - { 0x1F51, 10189 }, - { 0x1F55, 10195 }, - { 0x1F53, 10203 }, - { 0x1F57, 10211 }, - { 0x1F50, 10219 }, - { 0x1F54, 10225 }, - { 0x1F52, 10233 }, - { 0x1F56, 10241 }, - { 0x03CD, 10249 }, - { 0x1F7A, 10255 }, - { 0x1FE1, 10261 }, - { 0x1FE0, 10267 }, - { 0x03CB, 10273 }, - { 0x1FE3, 10279 }, - { 0x03B0, 10287 }, - { 0x1FE2, 10295 }, - { 0x1FE7, 10303 }, - { 0x1FE6, 10311 }, - { 0x037D, 10317 }, - { 0x037B, 10324 }, - { 0x03D1, 10330 }, - { 0x717E, 10333 }, - { 0x7178, 10337 }, - { 0x0384, 10341 }, - { 0x1FEF, 10343 }, - { 0x9200, 10345 }, - { 0x9201, 10349 }, - { 0x9202, 10353 }, - { 0x9203, 10357 }, - { 0x9204, 10361 }, - { 0x9205, 10365 }, - { 0x9206, 10369 }, - { 0x9207, 10373 }, - { 0x9208, 10377 }, - { 0x9209, 10381 }, - { 0x920A, 10385 }, - { 0x920B, 10389 }, - { 0x920C, 10393 }, - { 0x920D, 10397 }, - { 0x920E, 10401 }, - { 0x920F, 10405 }, - { 0x9210, 10409 }, - { 0x9211, 10413 }, - { 0x9212, 10417 }, - { 0x9213, 10421 }, - { 0x9214, 10425 }, - { 0x9215, 10429 }, - { 0x9216, 10433 }, - { 0x9217, 10437 }, - { 0x9218, 10441 }, - { 0x9219, 10445 }, - { 0x921A, 10449 }, - { 0x921B, 10453 }, - { 0x921C, 10457 }, - { 0x7187, 10461 }, - { 0x7186, 10464 }, - { 0x7188, 10467 }, - { 0x03F3, 10470 }, - { 0x03DE, 10473 }, - { 0x03E0, 10476 }, - { 0x1D28, 10479 }, - { 0x1D2A, 10484 }, - { 0x1D29, 10489 }, - { 0x1D26, 10494 }, - { 0x1D27, 10499 }, - { 0x03DA, 10504 }, - { 0x03D8, 10507 }, - { 0x03DC, 10511 }, - { 0x03F2, 10514 }, - { 0x03F5, 10518 }, - { 0x7184, 10522 }, - { 0x717A, 10525 }, - { 0x7185, 10528 }, - { 0x03F4, 10531 }, - { 0x03FE, 10535 }, - { 0x039C, 10541 }, - { 0x039D, 10545 }, - { 0x03A0, 10549 }, - { 0x039E, 10553 }, - { 0x03A7, 10557 }, - { 0x0397, 10561 }, - { 0x1FCB, 10565 }, - { 0x1F29, 10571 }, - { 0x1F2D, 10577 }, - { 0x1F9D, 10585 }, - { 0x1F2B, 10595 }, - { 0x1F9B, 10603 }, - { 0x1F2F, 10613 }, - { 0x1F9F, 10621 }, - { 0x1F99, 10631 }, - { 0x1F28, 10639 }, - { 0x1F2C, 10645 }, - { 0x1F9C, 10653 }, - { 0x1F2A, 10663 }, - { 0x1F9A, 10671 }, - { 0x1F2E, 10681 }, - { 0x1F9E, 10689 }, - { 0x1F98, 10699 }, - { 0x0389, 10707 }, - { 0x1FCA, 10713 }, - { 0x1FCC, 10719 }, - { 0x03A6, 10725 }, - { 0x03A8, 10729 }, - { 0x03A1, 10733 }, - { 0x1FEC, 10737 }, - { 0x03FA, 10743 }, - { 0x03F7, 10747 }, - { 0x03A4, 10751 }, - { 0x0392, 10755 }, - { 0x0399, 10759 }, - { 0x1FDB, 10763 }, - { 0x1F39, 10769 }, - { 0x1F3D, 10775 }, - { 0x1F3B, 10783 }, - { 0x1F3F, 10791 }, - { 0x1F38, 10799 }, - { 0x1F3C, 10805 }, - { 0x1F3A, 10813 }, - { 0x1F3E, 10821 }, - { 0x038A, 10829 }, - { 0x1FDA, 10835 }, - { 0x1FD9, 10841 }, - { 0x1FD8, 10847 }, - { 0x03AA, 10853 }, - { 0x0396, 10859 }, - { 0x0391, 10863 }, - { 0x1FBB, 10867 }, - { 0x1F09, 10873 }, - { 0x1F0D, 10879 }, - { 0x1F8D, 10887 }, - { 0x1F0B, 10897 }, - { 0x1F8B, 10905 }, - { 0x1F0F, 10915 }, - { 0x1F8F, 10923 }, - { 0x1F89, 10933 }, - { 0x1F08, 10941 }, - { 0x1F0C, 10947 }, - { 0x1F8C, 10955 }, - { 0x1F0A, 10965 }, - { 0x1F8A, 10973 }, - { 0x1F0E, 10983 }, - { 0x1F8E, 10991 }, - { 0x1F88, 11001 }, - { 0x0386, 11009 }, - { 0x1FBA, 11015 }, - { 0x1FB9, 11021 }, - { 0x1FB8, 11027 }, - { 0x1FBC, 11033 }, - { 0x0394, 11039 }, - { 0x0393, 11043 }, - { 0x039A, 11047 }, - { 0x039B, 11051 }, - { 0x03A9, 11055 }, - { 0x1FFB, 11059 }, - { 0x1F69, 11065 }, - { 0x1F6D, 11071 }, - { 0x1FAD, 11079 }, - { 0x1F6B, 11089 }, - { 0x1FAB, 11097 }, - { 0x1F6F, 11107 }, - { 0x1FAF, 11115 }, - { 0x1FA9, 11125 }, - { 0x1F68, 11133 }, - { 0x1F6C, 11139 }, - { 0x1FAC, 11147 }, - { 0x1F6A, 11157 }, - { 0x1FAA, 11165 }, - { 0x1F6E, 11175 }, - { 0x1FAE, 11183 }, - { 0x1FA8, 11193 }, - { 0x038F, 11201 }, - { 0x1FFA, 11207 }, - { 0x1FFC, 11213 }, - { 0x03A3, 11219 }, - { 0x0398, 11223 }, - { 0x0395, 11227 }, - { 0x1FC9, 11231 }, - { 0x1F19, 11237 }, - { 0x1F1D, 11243 }, - { 0x1F1B, 11251 }, - { 0x1F18, 11259 }, - { 0x1F1C, 11265 }, - { 0x1F1A, 11273 }, - { 0x0388, 11281 }, - { 0x1FC8, 11287 }, - { 0x039F, 11293 }, - { 0x1FF9, 11297 }, - { 0x1F49, 11303 }, - { 0x1F4D, 11309 }, - { 0x1F4B, 11317 }, - { 0x1F48, 11325 }, - { 0x1F4C, 11331 }, - { 0x1F4A, 11339 }, - { 0x038C, 11347 }, - { 0x1FF8, 11353 }, - { 0x03A5, 11359 }, - { 0x1FEB, 11363 }, - { 0x1F59, 11369 }, - { 0x1F5D, 11375 }, - { 0x1F5B, 11383 }, - { 0x1F5F, 11391 }, - { 0x038E, 11399 }, - { 0x1FEA, 11405 }, - { 0x1FE9, 11411 }, - { 0x1FE8, 11417 }, - { 0x03AB, 11423 }, - { 0x03F9, 11429 }, - { 0x03FF, 11434 }, - { 0x03FD, 11441 }, - { 0x717B, 11447 }, - { 0x1FBD, 11450 }, - { 0x7182, 11452 }, - { 0x9245, 11456 }, - { 0x0374, 11459 }, - { 0x03D2, 11462 }, - { 0x03D3, 11467 }, - { 0x03D4, 11474 }, - { 0x7181, 11481 }, - { 0x037E, 11484 }, - { 0x03F6, 11487 }, - { 0x7189, 11492 }, - { 0x1FEE, 11496 }, - { 0x1FED, 11500 }, - { 0x1FC1, 11504 }, - { 0x0385, 11508 }, - { 0x1D6A, 11511 }, - { 0x1D69, 11516 }, - { 0x1D68, 11521 }, - { 0x1D66, 11526 }, - { 0x1D67, 11531 }, - { 0x7141, 11536 }, - { 0x7142, 11541 }, - { 0x7152, 11546 }, - { 0x714B, 11552 }, - { 0x7140, 11558 }, - { 0x7154, 11563 }, - { 0x714D, 11569 }, - { 0x7157, 11575 }, - { 0x7150, 11580 }, - { 0x7149, 11585 }, - { 0x7155, 11590 }, - { 0x7143, 11596 }, - { 0x7145, 11600 }, - { 0x7153, 11605 }, - { 0x714C, 11611 }, - { 0x714F, 11617 }, - { 0x7148, 11622 }, - { 0x7146, 11627 }, - { 0x714E, 11632 }, - { 0x7144, 11638 }, - { 0x7151, 11642 }, - { 0x714A, 11647 }, - { 0x7147, 11652 }, - { 0x7156, 11657 }, - { 0x7170, 11663 }, - { 0x7173, 11668 }, - { 0x7158, 11673 }, - { 0x715D, 11678 }, - { 0x7174, 11683 }, - { 0x7159, 11688 }, - { 0x716A, 11692 }, - { 0x7171, 11697 }, - { 0x7164, 11702 }, - { 0x715C, 11706 }, - { 0x716E, 11710 }, - { 0x7172, 11715 }, - { 0x7169, 11720 }, - { 0x716B, 11724 }, - { 0x7165, 11729 }, - { 0x716F, 11733 }, - { 0x7163, 11738 }, - { 0x715B, 11742 }, - { 0x715E, 11746 }, - { 0x716C, 11751 }, - { 0x715A, 11756 }, - { 0x7162, 11760 }, - { 0x7168, 11764 }, - { 0x7160, 11768 }, - { 0x7161, 11772 }, - { 0x715F, 11778 }, - { 0x716D, 11782 }, - { 0x7166, 11787 }, - { 0x7167, 11791 }, - { 0x1FC0, 11797 }, - { 0x921D, 11799 }, - { 0x921E, 11803 }, - { 0x921F, 11807 }, - { 0x9220, 11811 }, - { 0x9221, 11815 }, - { 0x9222, 11819 }, - { 0x9223, 11823 }, - { 0x9224, 11827 }, - { 0x9225, 11831 }, - { 0x9226, 11835 }, - { 0x9227, 11839 }, - { 0x9228, 11843 }, - { 0x9229, 11847 }, - { 0x922A, 11851 }, - { 0x922B, 11855 }, - { 0x922C, 11859 }, - { 0x922D, 11863 }, - { 0x922E, 11867 }, - { 0x922F, 11871 }, - { 0x9230, 11875 }, - { 0x9231, 11879 }, - { 0x9232, 11883 }, - { 0x9233, 11887 }, - { 0x9234, 11891 }, - { 0x9235, 11895 }, - { 0x9236, 11899 }, - { 0x9237, 11903 }, - { 0x9238, 11907 }, - { 0x9239, 11911 }, - { 0x923A, 11915 }, - { 0x923B, 11919 }, - { 0x923C, 11923 }, - { 0x923D, 11927 }, - { 0x923E, 11931 }, - { 0x923F, 11935 }, - { 0x9240, 11939 }, - { 0x9241, 11943 }, - { 0x037A, 11947 }, - { 0x1FBE, 11949 }, - { 0x2724, 11951 }, - { 0x271C, 11955 }, - { 0x2764, 11959 }, - { 0x27A6, 11962 }, - { 0x27A5, 11969 }, - { 0x2714, 11976 }, - { 0x2738, 11979 }, - { 0x274B, 11985 }, - { 0x271A, 11990 }, - { 0x2763, 11993 }, - { 0x27AD, 11998 }, - { 0x279A, 12004 }, - { 0x2798, 12008 }, - { 0x27AE, 12012 }, - { 0x2718, 12018 }, - { 0x27A0, 12021 }, - { 0x275E, 12026 }, - { 0x275D, 12032 }, - { 0x275C, 12039 }, - { 0x275B, 12045 }, - { 0x2746, 12052 }, - { 0x2748, 12055 }, - { 0x2731, 12057 }, - { 0x272E, 12059 }, - { 0x275A, 12063 }, - { 0x2799, 12066 }, - { 0x2762, 12069 }, - { 0x2794, 12073 }, - { 0x279C, 12077 }, - { 0x27BD, 12081 }, - { 0x2770, 12085 }, - { 0x276E, 12090 }, - { 0x2716, 12096 }, - { 0x2771, 12099 }, - { 0x276F, 12104 }, - { 0x27B9, 12110 }, - { 0x27B7, 12115 }, - { 0x27B8, 12120 }, - { 0x27A8, 12124 }, - { 0x273D, 12129 }, - { 0x2743, 12132 }, - { 0x279E, 12136 }, - { 0x27BB, 12140 }, - { 0x2302, 12144 }, - { 0x22B7, 12145 }, - { 0x2253, 12147 }, - { 0x17D7, 12153 }, - { 0x17D4, 12157 }, - { 0x17CF, 12160 }, - { 0x17D2, 12163 }, - { 0x17CC, 12166 }, - { 0x17CB, 12169 }, - { 0x17D8, 12172 }, - { 0x17D6, 12175 }, - { 0x17D9, 12180 }, - { 0x17D0, 12184 }, - { 0x17D1, 12188 }, - { 0x17CE, 12191 }, - { 0x17DA, 12194 }, - { 0x17C6, 12197 }, - { 0x17C7, 12200 }, - { 0x17CA, 12203 }, - { 0x17DD, 12206 }, - { 0x17D5, 12209 }, - { 0x17D3, 12212 }, - { 0x17C9, 12215 }, - { 0x17CD, 12218 }, - { 0x17DC, 12221 }, - { 0x17C8, 12224 }, - { 0x17E1, 12227 }, - { 0x17E6, 12230 }, - { 0x17E2, 12233 }, - { 0x17E5, 12236 }, - { 0x17E4, 12239 }, - { 0x17E9, 12242 }, - { 0x17E0, 12245 }, - { 0x17E8, 12248 }, - { 0x17E7, 12251 }, - { 0x17E3, 12254 }, - { 0x17C1, 12257 }, - { 0x17B7, 12261 }, - { 0x17BB, 12265 }, - { 0x17B9, 12269 }, - { 0x17B6, 12273 }, - { 0x17C2, 12277 }, - { 0x17C3, 12281 }, - { 0x17C5, 12285 }, - { 0x17C0, 12289 }, - { 0x17B8, 12293 }, - { 0x17BE, 12297 }, - { 0x17C4, 12301 }, - { 0x17BD, 12305 }, - { 0x17BC, 12309 }, - { 0x17BF, 12313 }, - { 0x17BA, 12317 }, - { 0x17B5, 12321 }, - { 0x17B4, 12325 }, - { 0x1794, 12329 }, - { 0x1785, 12332 }, - { 0x1787, 12335 }, - { 0x178A, 12338 }, - { 0x178C, 12341 }, - { 0x17A0, 12344 }, - { 0x1780, 12347 }, - { 0x1782, 12350 }, - { 0x17A1, 12353 }, - { 0x179B, 12356 }, - { 0x1798, 12359 }, - { 0x1793, 12362 }, - { 0x1796, 12365 }, - { 0x17A2, 12368 }, - { 0x179A, 12371 }, - { 0x179F, 12374 }, - { 0x178F, 12377 }, - { 0x1791, 12380 }, - { 0x179C, 12383 }, - { 0x1799, 12386 }, - { 0x1786, 12389 }, - { 0x1788, 12392 }, - { 0x1781, 12395 }, - { 0x1783, 12398 }, - { 0x1784, 12401 }, - { 0x178E, 12404 }, - { 0x1789, 12407 }, - { 0x1795, 12410 }, - { 0x1797, 12413 }, - { 0x179D, 12416 }, - { 0x179E, 12419 }, - { 0x1790, 12422 }, - { 0x1792, 12425 }, - { 0x178B, 12428 }, - { 0x178D, 12431 }, - { 0x19F3, 12434 }, - { 0x19E3, 12438 }, - { 0x19FA, 12442 }, - { 0x19EA, 12446 }, - { 0x17F3, 12450 }, - { 0x17F2, 12455 }, - { 0x17F0, 12460 }, - { 0x17F4, 12465 }, - { 0x17F1, 12470 }, - { 0x17F5, 12475 }, - { 0x17F8, 12480 }, - { 0x17F7, 12485 }, - { 0x17F9, 12490 }, - { 0x17F6, 12495 }, - { 0x19F2, 12500 }, - { 0x19E2, 12504 }, - { 0x19F4, 12508 }, - { 0x19E4, 12512 }, - { 0x19F1, 12516 }, - { 0x19E1, 12520 }, - { 0x19F5, 12524 }, - { 0x19E5, 12528 }, - { 0x19FD, 12532 }, - { 0x19ED, 12536 }, - { 0x19FC, 12540 }, - { 0x19EC, 12544 }, - { 0x19FE, 12548 }, - { 0x19EE, 12552 }, - { 0x19FB, 12556 }, - { 0x19EB, 12560 }, - { 0x19FF, 12564 }, - { 0x19EF, 12568 }, - { 0x19F8, 12572 }, - { 0x19E8, 12576 }, - { 0x19F7, 12580 }, - { 0x19E7, 12584 }, - { 0x19F9, 12588 }, - { 0x19E9, 12592 }, - { 0x19F6, 12596 }, - { 0x19E6, 12600 }, - { 0x19F0, 12604 }, - { 0x19E0, 12607 }, - { 0x17DB, 12610 }, - { 0x17AD, 12614 }, - { 0x17AF, 12618 }, - { 0x17A5, 12622 }, - { 0x17A7, 12626 }, - { 0x17AB, 12630 }, - { 0x17AE, 12634 }, - { 0x17A4, 12638 }, - { 0x17B0, 12642 }, - { 0x17A3, 12646 }, - { 0x17B3, 12650 }, - { 0x17A6, 12654 }, - { 0x17B1, 12658 }, - { 0x17B2, 12664 }, - { 0x17A8, 12670 }, - { 0x17A9, 12674 }, - { 0x17AC, 12678 }, - { 0x17AA, 12682 }, - { 0x27D8, 12686 }, - { 0x27D9, 12689 }, - { 0x2A1E, 12692 }, - { 0x25EF, 12696 }, - { 0x2AFC, 12698 }, - { 0x271D, 12703 }, - { 0x0061, 12705 }, - { 0x0227, 12709 }, - { 0x01E1, 12716 }, - { 0x1EA1, 12725 }, - { 0x1EA3, 12732 }, - { 0x00E5, 12739 }, - { 0x01FB, 12746 }, - { 0x1E01, 12755 }, - { 0x00E1, 12762 }, - { 0x0103, 12768 }, - { 0x1EB7, 12774 }, - { 0x1EB3, 12783 }, - { 0x1EAF, 12792 }, - { 0x1EB1, 12800 }, - { 0x1EB5, 12808 }, - { 0x01CE, 12816 }, - { 0x00E0, 12822 }, - { 0x1E9A, 12828 }, - { 0x00E3, 12836 }, - { 0x0201, 12842 }, - { 0x0101, 12849 }, - { 0x0105, 12855 }, - { 0x2C65, 12861 }, - { 0x0203, 12867 }, - { 0x00E4, 12874 }, - { 0x01DF, 12880 }, - { 0x1D8F, 12888 }, - { 0x00E2, 12895 }, - { 0x1EAD, 12901 }, - { 0x1EA9, 12910 }, - { 0x1EA5, 12919 }, - { 0x1EA7, 12927 }, - { 0x1EAB, 12935 }, - { 0x0062, 12943 }, - { 0x1E03, 12947 }, - { 0x1E05, 12954 }, - { 0x0253, 12961 }, - { 0x1E07, 12967 }, - { 0x1D6C, 12974 }, - { 0x0180, 12981 }, - { 0x0183, 12987 }, - { 0x1D80, 12993 }, - { 0x0063, 13000 }, - { 0x010B, 13004 }, - { 0x0255, 13011 }, - { 0x0188, 13017 }, - { 0x0107, 13023 }, - { 0x010D, 13029 }, - { 0x023C, 13035 }, - { 0x00E7, 13041 }, - { 0x1E09, 13047 }, - { 0x0109, 13055 }, - { 0x0064, 13061 }, - { 0x1E0B, 13065 }, - { 0x1E0D, 13072 }, - { 0x0221, 13079 }, - { 0x0257, 13085 }, - { 0x1D91, 13091 }, - { 0x1E0F, 13099 }, - { 0x0256, 13106 }, - { 0x010F, 13112 }, - { 0x1D6D, 13118 }, - { 0x0111, 13125 }, - { 0x018C, 13131 }, - { 0x1E11, 13137 }, - { 0x1D81, 13143 }, - { 0x1E13, 13150 }, - { 0x0065, 13157 }, - { 0x0117, 13161 }, - { 0x1EB9, 13168 }, - { 0x1EBB, 13175 }, - { 0x00E9, 13182 }, - { 0x0115, 13188 }, - { 0x011B, 13194 }, - { 0x00E8, 13200 }, - { 0x1EBD, 13206 }, - { 0x1E1B, 13212 }, - { 0x0205, 13219 }, - { 0x0113, 13226 }, - { 0x1E17, 13232 }, - { 0x1E15, 13240 }, - { 0x0119, 13248 }, - { 0x0247, 13254 }, - { 0x0229, 13260 }, - { 0x1E1D, 13266 }, - { 0x0207, 13274 }, - { 0x00EB, 13281 }, - { 0x1D92, 13287 }, - { 0x00EA, 13294 }, - { 0x1EC7, 13300 }, - { 0x1EC3, 13309 }, - { 0x1EBF, 13318 }, - { 0x1EC1, 13326 }, - { 0x1EC5, 13334 }, - { 0x1E19, 13342 }, - { 0x0066, 13349 }, - { 0x1E1F, 13353 }, - { 0x0192, 13360 }, - { 0x1D6E, 13366 }, - { 0x1D82, 13373 }, - { 0x0067, 13380 }, - { 0x0121, 13384 }, - { 0x0260, 13391 }, - { 0x01F5, 13397 }, - { 0x011F, 13403 }, - { 0x01E7, 13409 }, - { 0x1E21, 13415 }, - { 0x01E5, 13421 }, - { 0x0123, 13427 }, - { 0x1D83, 13433 }, - { 0x011D, 13440 }, - { 0x0068, 13446 }, - { 0x1E23, 13450 }, - { 0x1E25, 13457 }, - { 0x0266, 13464 }, - { 0x1E96, 13470 }, - { 0x1E2B, 13477 }, - { 0x021F, 13484 }, - { 0x0127, 13490 }, - { 0x1E29, 13496 }, - { 0x2C68, 13502 }, - { 0x1E27, 13508 }, - { 0x0125, 13514 }, - { 0x0069, 13520 }, - { 0x1ECB, 13524 }, - { 0x1EC9, 13531 }, - { 0x00ED, 13538 }, - { 0x012D, 13544 }, - { 0x01D0, 13550 }, - { 0x00EC, 13556 }, - { 0x0129, 13562 }, - { 0x1E2D, 13568 }, - { 0x0209, 13575 }, - { 0x012B, 13582 }, - { 0x012F, 13588 }, - { 0x0268, 13594 }, - { 0x020B, 13600 }, - { 0x00EF, 13607 }, - { 0x1E2F, 13613 }, - { 0x1D96, 13621 }, - { 0x00EE, 13628 }, - { 0x006A, 13634 }, - { 0x01F0, 13638 }, - { 0x0249, 13644 }, - { 0x0135, 13650 }, - { 0x029D, 13656 }, - { 0x006B, 13662 }, - { 0x1E33, 13666 }, - { 0x0199, 13673 }, - { 0x1E35, 13679 }, - { 0x1E31, 13686 }, - { 0x01E9, 13692 }, - { 0x0137, 13698 }, - { 0x1D84, 13704 }, - { 0x2C6A, 13711 }, - { 0x006C, 13717 }, - { 0x019A, 13721 }, - { 0x1E37, 13727 }, - { 0x1E39, 13734 }, - { 0x026C, 13743 }, - { 0x0234, 13749 }, - { 0x1E3B, 13755 }, - { 0x013A, 13762 }, - { 0x013E, 13768 }, - { 0x2C61, 13774 }, - { 0x0140, 13781 }, - { 0x026B, 13788 }, - { 0x0142, 13795 }, - { 0x013C, 13801 }, - { 0x1D85, 13807 }, - { 0x026D, 13814 }, - { 0x1E3D, 13821 }, - { 0x006D, 13828 }, - { 0x1E41, 13832 }, - { 0x1E43, 13839 }, - { 0x0271, 13846 }, - { 0x1E3F, 13852 }, - { 0x1D6F, 13858 }, - { 0x1D86, 13865 }, - { 0x006E, 13872 }, - { 0x1E45, 13876 }, - { 0x1E47, 13883 }, - { 0x0235, 13890 }, - { 0x0272, 13896 }, - { 0x1E49, 13903 }, - { 0x019E, 13910 }, - { 0x0144, 13918 }, - { 0x0148, 13924 }, - { 0x01F9, 13930 }, - { 0x00F1, 13936 }, - { 0x1D70, 13942 }, - { 0x0146, 13949 }, - { 0x1D87, 13955 }, - { 0x0273, 13962 }, - { 0x1E4B, 13969 }, - { 0x0149, 13976 }, - { 0x006F, 13983 }, - { 0x022F, 13987 }, - { 0x0231, 13994 }, - { 0x1ECD, 14003 }, - { 0x1ECF, 14010 }, - { 0x01A1, 14017 }, - { 0x1EE3, 14023 }, - { 0x1EDF, 14032 }, - { 0x1EDB, 14041 }, - { 0x1EDD, 14049 }, - { 0x1EE1, 14057 }, - { 0x00F3, 14065 }, - { 0x014F, 14071 }, - { 0x01D2, 14077 }, - { 0x00F2, 14083 }, - { 0x00F5, 14089 }, - { 0x1E4D, 14095 }, - { 0x022D, 14103 }, - { 0x1E4F, 14111 }, - { 0x0151, 14119 }, - { 0x020D, 14126 }, - { 0x014D, 14133 }, - { 0x1E53, 14139 }, - { 0x1E51, 14147 }, - { 0x01EB, 14155 }, - { 0x01ED, 14161 }, - { 0x00F8, 14169 }, - { 0x01FF, 14175 }, - { 0x020F, 14183 }, - { 0x00F6, 14190 }, - { 0x022B, 14196 }, - { 0x00F4, 14204 }, - { 0x1ED9, 14210 }, - { 0x1ED5, 14219 }, - { 0x1ED1, 14228 }, - { 0x1ED3, 14236 }, - { 0x1ED7, 14244 }, - { 0x0070, 14252 }, - { 0x1E57, 14256 }, - { 0x01A5, 14263 }, - { 0x1E55, 14269 }, - { 0x1D71, 14275 }, - { 0x1D7D, 14282 }, - { 0x1D88, 14288 }, - { 0x0071, 14295 }, - { 0x02A0, 14299 }, - { 0x024B, 14305 }, - { 0x0072, 14312 }, - { 0x1E59, 14316 }, - { 0x1E5B, 14323 }, - { 0x1E5D, 14330 }, - { 0x1E5F, 14339 }, - { 0x027C, 14346 }, - { 0x027D, 14353 }, - { 0x0155, 14359 }, - { 0x0159, 14365 }, - { 0x0211, 14371 }, - { 0x1D72, 14378 }, - { 0x024D, 14385 }, - { 0x0157, 14391 }, - { 0x1D89, 14397 }, - { 0x027E, 14404 }, - { 0x1D73, 14410 }, - { 0x0213, 14419 }, - { 0x0073, 14426 }, - { 0x1E61, 14430 }, - { 0x1E63, 14437 }, - { 0x1E69, 14444 }, - { 0x0282, 14454 }, - { 0x015B, 14460 }, - { 0x1E65, 14466 }, - { 0x0161, 14475 }, - { 0x1E67, 14481 }, - { 0x0219, 14490 }, - { 0x023F, 14497 }, - { 0x1D74, 14504 }, - { 0x015F, 14511 }, - { 0x1D8A, 14517 }, - { 0x015D, 14524 }, - { 0x0074, 14530 }, - { 0x1E6B, 14534 }, - { 0x1E6D, 14541 }, - { 0x0236, 14548 }, - { 0x01AD, 14554 }, - { 0x1E6F, 14560 }, - { 0x0165, 14567 }, - { 0x021B, 14573 }, - { 0x1D75, 14580 }, - { 0x0167, 14587 }, - { 0x0163, 14593 }, - { 0x01AB, 14599 }, - { 0x2C66, 14606 }, - { 0x1E97, 14613 }, - { 0x0288, 14619 }, - { 0x1E71, 14626 }, - { 0x0075, 14633 }, - { 0x0289, 14637 }, - { 0x1EE5, 14642 }, - { 0x1EE7, 14649 }, - { 0x01B0, 14656 }, - { 0x1EF1, 14662 }, - { 0x1EED, 14671 }, - { 0x1EE9, 14680 }, - { 0x1EEB, 14688 }, - { 0x1EEF, 14696 }, - { 0x016F, 14704 }, - { 0x00FA, 14711 }, - { 0x016D, 14717 }, - { 0x01D4, 14723 }, - { 0x00F9, 14729 }, - { 0x0169, 14735 }, - { 0x1E79, 14741 }, - { 0x1E75, 14749 }, - { 0x0171, 14756 }, - { 0x0215, 14763 }, - { 0x016B, 14770 }, - { 0x1E7B, 14776 }, - { 0x0173, 14784 }, - { 0x0217, 14790 }, - { 0x00FC, 14797 }, - { 0x01D8, 14803 }, - { 0x01DA, 14811 }, - { 0x01DC, 14819 }, - { 0x01D6, 14827 }, - { 0x1E73, 14835 }, - { 0x1D99, 14842 }, - { 0x00FB, 14849 }, - { 0x1E77, 14855 }, - { 0x0076, 14862 }, - { 0x1E7F, 14866 }, - { 0x2C74, 14873 }, - { 0x028B, 14879 }, - { 0x1E7D, 14885 }, - { 0x1D8C, 14891 }, - { 0x0077, 14898 }, - { 0x1E87, 14902 }, - { 0x1E89, 14909 }, - { 0x1E98, 14916 }, - { 0x1E83, 14923 }, - { 0x1E81, 14929 }, - { 0x1E85, 14935 }, - { 0x0175, 14941 }, - { 0x0078, 14947 }, - { 0x1E8B, 14951 }, - { 0x1D8D, 14958 }, - { 0x1E8D, 14965 }, - { 0x0079, 14971 }, - { 0x1E8F, 14975 }, - { 0x1EF5, 14982 }, - { 0x01B4, 14989 }, - { 0x1EF7, 14995 }, - { 0x1E99, 15002 }, - { 0x00FD, 15009 }, - { 0x1EF3, 15015 }, - { 0x1EF9, 15021 }, - { 0x0233, 15027 }, - { 0x024F, 15033 }, - { 0x00FF, 15039 }, - { 0x0177, 15045 }, - { 0x007A, 15051 }, - { 0x017C, 15055 }, - { 0x1E93, 15062 }, - { 0x0291, 15069 }, - { 0x0225, 15075 }, - { 0x1E95, 15081 }, - { 0x017A, 15088 }, - { 0x017E, 15094 }, - { 0x0240, 15100 }, - { 0x1D76, 15107 }, - { 0x01B6, 15114 }, - { 0x1D8E, 15120 }, - { 0x2C6C, 15127 }, - { 0x0290, 15133 }, - { 0x1E91, 15140 }, - { 0x00E6, 15146 }, - { 0x01FD, 15150 }, - { 0x01E3, 15156 }, - { 0x0238, 15162 }, - { 0x01F3, 15167 }, - { 0x01C6, 15171 }, - { 0x02A3, 15177 }, - { 0x02A5, 15182 }, - { 0x0195, 15189 }, - { 0x01C9, 15193 }, - { 0x02AA, 15197 }, - { 0x02AB, 15202 }, - { 0x01CC, 15207 }, - { 0x01A3, 15211 }, - { 0x0223, 15215 }, - { 0x0239, 15219 }, - { 0x02A8, 15224 }, - { 0x1D7A, 15231 }, - { 0x02A6, 15237 }, - { 0x1D6B, 15242 }, - { 0x014B, 15246 }, - { 0x0283, 15250 }, - { 0x0286, 15254 }, - { 0x1D8B, 15260 }, - { 0x1D98, 15267 }, - { 0x00F0, 15274 }, - { 0x0292, 15278 }, - { 0x0293, 15282 }, - { 0x01BA, 15288 }, - { 0x01EF, 15294 }, - { 0x1D9A, 15300 }, - { 0x01B9, 15307 }, - { 0x0138, 15312 }, - { 0x0278, 15316 }, - { 0x1D16, 15320 }, - { 0x02A4, 15326 }, - { 0x02A9, 15331 }, - { 0x2C76, 15336 }, - { 0x0267, 15341 }, - { 0x0269, 15347 }, - { 0x1D7C, 15351 }, - { 0x026E, 15357 }, - { 0x017F, 15361 }, - { 0x1E9B, 15366 }, - { 0x025B, 15374 }, - { 0x1D93, 15379 }, - { 0x0254, 15387 }, - { 0x1D97, 15392 }, - { 0x0264, 15400 }, - { 0x02A7, 15405 }, - { 0x0185, 15410 }, - { 0x01A8, 15415 }, - { 0x01BD, 15420 }, - { 0x021D, 15425 }, - { 0x0251, 15429 }, - { 0x1D90, 15433 }, - { 0x0263, 15440 }, - { 0x0259, 15444 }, - { 0x025A, 15448 }, - { 0x1D95, 15454 }, - { 0x00DF, 15461 }, - { 0x0285, 15466 }, - { 0x00FE, 15472 }, - { 0x0275, 15476 }, - { 0x1D17, 15481 }, - { 0x029A, 15487 }, - { 0x0277, 15493 }, - { 0x025E, 15498 }, - { 0x019B, 15505 }, - { 0x0261, 15511 }, - { 0x0250, 15516 }, - { 0x01DD, 15521 }, - { 0x1D77, 15526 }, - { 0x0265, 15531 }, - { 0x02AE, 15536 }, - { 0x02AF, 15543 }, - { 0x1D09, 15552 }, - { 0x029E, 15557 }, - { 0x026F, 15562 }, - { 0x0270, 15567 }, - { 0x0279, 15575 }, - { 0x027B, 15580 }, - { 0x027A, 15587 }, - { 0x0287, 15595 }, - { 0x028C, 15600 }, - { 0x028D, 15605 }, - { 0x028E, 15610 }, - { 0x1D02, 15615 }, - { 0x1D14, 15620 }, - { 0x1D08, 15625 }, - { 0x0252, 15631 }, - { 0x018D, 15636 }, - { 0x0131, 15641 }, - { 0x0237, 15646 }, - { 0x025F, 15651 }, - { 0x0284, 15658 }, - { 0x0242, 15667 }, - { 0x1D79, 15672 }, - { 0x028A, 15677 }, - { 0x1D7F, 15681 }, - { 0x2184, 15687 }, - { 0x0258, 15692 }, - { 0x027F, 15697 }, - { 0x025C, 15704 }, - { 0x025D, 15710 }, - { 0x1D94, 15718 }, - { 0x1D11, 15727 }, - { 0x1D13, 15732 }, - { 0x1D1D, 15739 }, - { 0x1D12, 15744 }, - { 0x1D1F, 15750 }, - { 0x1D1E, 15756 }, - { 0x2C77, 15762 }, - { 0x1D7B, 15767 }, - { 0x1D7E, 15774 }, - { 0x6B00, 15781 }, - { 0x6B01, 15785 }, - { 0x6B02, 15789 }, - { 0x0133, 15793 }, - { 0x0153, 15797 }, - { 0x6B06, 15801 }, - { 0x6B03, 15805 }, - { 0x6B04, 15809 }, - { 0x6B05, 15813 }, - { 0x01A6, 15819 }, - { 0x1D25, 15822 }, - { 0x01BB, 15825 }, - { 0x01BF, 15830 }, - { 0x1D00, 15833 }, - { 0x0299, 15838 }, - { 0x1D04, 15843 }, - { 0x1D05, 15848 }, - { 0x1D07, 15853 }, - { 0x0262, 15858 }, - { 0x029B, 15863 }, - { 0x029C, 15870 }, - { 0x026A, 15875 }, - { 0x1D0A, 15880 }, - { 0x1D0B, 15885 }, - { 0x029F, 15890 }, - { 0x1D0C, 15895 }, - { 0x1D0D, 15902 }, - { 0x0274, 15907 }, - { 0x1D0F, 15912 }, - { 0x1D18, 15917 }, - { 0x0280, 15922 }, - { 0x1D1B, 15927 }, - { 0x1D1C, 15932 }, - { 0x1D20, 15937 }, - { 0x1D21, 15942 }, - { 0x028F, 15947 }, - { 0x1D22, 15952 }, - { 0x1D01, 15957 }, - { 0x0276, 15962 }, - { 0x1D15, 15967 }, - { 0x1D06, 15972 }, - { 0x1D23, 15977 }, - { 0x1D10, 15982 }, - { 0x1D03, 15988 }, - { 0x1D1A, 15994 }, - { 0x0281, 16000 }, - { 0x1D0E, 16006 }, - { 0x1D19, 16012 }, - { 0x01C0, 16018 }, - { 0x1D24, 16022 }, - { 0x0294, 16027 }, - { 0x02A1, 16031 }, - { 0x01C1, 16037 }, - { 0x01C2, 16041 }, - { 0x02AD, 16045 }, - { 0x0298, 16049 }, - { 0x02AC, 16053 }, - { 0x0296, 16057 }, - { 0x01BE, 16062 }, - { 0x01AA, 16069 }, - { 0x02A2, 16074 }, - { 0x01C3, 16081 }, - { 0x0297, 16085 }, - { 0x0295, 16089 }, - { 0x0041, 16094 }, - { 0x0226, 16098 }, - { 0x01E0, 16105 }, - { 0x1EA0, 16114 }, - { 0x1EA2, 16121 }, - { 0x00C5, 16128 }, - { 0x01FA, 16135 }, - { 0x1E00, 16144 }, - { 0x00C1, 16151 }, - { 0x0102, 16157 }, - { 0x1EB6, 16163 }, - { 0x1EB2, 16172 }, - { 0x1EAE, 16181 }, - { 0x1EB0, 16189 }, - { 0x1EB4, 16197 }, - { 0x01CD, 16205 }, - { 0x00C0, 16211 }, - { 0x00C3, 16217 }, - { 0x0200, 16223 }, - { 0x0100, 16230 }, - { 0x0104, 16236 }, - { 0x023A, 16242 }, - { 0x0202, 16248 }, - { 0x00C4, 16255 }, - { 0x01DE, 16261 }, - { 0x00C2, 16269 }, - { 0x1EAC, 16275 }, - { 0x1EA8, 16284 }, - { 0x1EA4, 16293 }, - { 0x1EA6, 16301 }, - { 0x1EAA, 16309 }, - { 0x0042, 16317 }, - { 0x1E02, 16321 }, - { 0x1E04, 16328 }, - { 0x0181, 16335 }, - { 0x1E06, 16341 }, - { 0x0243, 16348 }, - { 0x0182, 16354 }, - { 0x0043, 16360 }, - { 0x010A, 16364 }, - { 0x0187, 16371 }, - { 0x0106, 16377 }, - { 0x010C, 16383 }, - { 0x023B, 16389 }, - { 0x00C7, 16395 }, - { 0x1E08, 16401 }, - { 0x0108, 16409 }, - { 0x0044, 16415 }, - { 0x1E0A, 16419 }, - { 0x1E0C, 16426 }, - { 0x018A, 16433 }, - { 0x1E0E, 16439 }, - { 0x010E, 16446 }, - { 0x01F2, 16452 }, - { 0x01C5, 16460 }, - { 0x0110, 16470 }, - { 0x018B, 16476 }, - { 0x1E10, 16482 }, - { 0x1E12, 16488 }, - { 0x0045, 16495 }, - { 0x0116, 16499 }, - { 0x1EB8, 16506 }, - { 0x1EBA, 16513 }, - { 0x00C9, 16520 }, - { 0x0114, 16526 }, - { 0x011A, 16532 }, - { 0x00C8, 16538 }, - { 0x1EBC, 16544 }, - { 0x1E1A, 16550 }, - { 0x0204, 16557 }, - { 0x0112, 16564 }, - { 0x1E16, 16570 }, - { 0x1E14, 16578 }, - { 0x0118, 16586 }, - { 0x0246, 16592 }, - { 0x0228, 16598 }, - { 0x1E1C, 16604 }, - { 0x0206, 16612 }, - { 0x00CB, 16619 }, - { 0x00CA, 16625 }, - { 0x1EC6, 16631 }, - { 0x1EC2, 16640 }, - { 0x1EBE, 16649 }, - { 0x1EC0, 16657 }, - { 0x1EC4, 16665 }, - { 0x1E18, 16673 }, - { 0x0046, 16680 }, - { 0x1E1E, 16684 }, - { 0x0191, 16691 }, - { 0x0047, 16697 }, - { 0x0120, 16701 }, - { 0x0193, 16708 }, - { 0x01F4, 16714 }, - { 0x011E, 16720 }, - { 0x01E6, 16726 }, - { 0x1E20, 16732 }, - { 0x01E4, 16738 }, - { 0x0122, 16744 }, - { 0x011C, 16750 }, - { 0x0048, 16756 }, - { 0x1E22, 16760 }, - { 0x1E24, 16767 }, - { 0x1E2A, 16774 }, - { 0x021E, 16781 }, - { 0x0126, 16787 }, - { 0x1E28, 16793 }, - { 0x2C67, 16799 }, - { 0x1E26, 16805 }, - { 0x0124, 16811 }, - { 0x0049, 16817 }, - { 0x0130, 16821 }, - { 0x1ECA, 16828 }, - { 0x1EC8, 16835 }, - { 0x00CD, 16842 }, - { 0x012C, 16848 }, - { 0x01CF, 16854 }, - { 0x00CC, 16860 }, - { 0x0128, 16866 }, - { 0x1E2C, 16872 }, - { 0x0208, 16879 }, - { 0x012A, 16886 }, - { 0x012E, 16892 }, - { 0x0197, 16898 }, - { 0x020A, 16904 }, - { 0x00CF, 16911 }, - { 0x1E2E, 16917 }, - { 0x00CE, 16925 }, - { 0x004A, 16931 }, - { 0x0248, 16935 }, - { 0x0134, 16941 }, - { 0x004B, 16947 }, - { 0x1E32, 16951 }, - { 0x0198, 16958 }, - { 0x1E34, 16964 }, - { 0x1E30, 16971 }, - { 0x01E8, 16977 }, - { 0x0136, 16983 }, - { 0x2C69, 16989 }, - { 0x004C, 16995 }, - { 0x023D, 16999 }, - { 0x1E36, 17005 }, - { 0x1E38, 17012 }, - { 0x1E3A, 17021 }, - { 0x0139, 17028 }, - { 0x013D, 17034 }, - { 0x01C8, 17040 }, - { 0x2C60, 17048 }, - { 0x013F, 17055 }, - { 0x2C62, 17062 }, - { 0x0141, 17069 }, - { 0x013B, 17075 }, - { 0x1E3C, 17081 }, - { 0x004D, 17088 }, - { 0x1E40, 17092 }, - { 0x1E42, 17099 }, - { 0x1E3E, 17106 }, - { 0x004E, 17112 }, - { 0x1E44, 17116 }, - { 0x1E46, 17123 }, - { 0x019D, 17130 }, - { 0x1E48, 17137 }, - { 0x0220, 17144 }, - { 0x0143, 17152 }, - { 0x0147, 17158 }, - { 0x01F8, 17164 }, - { 0x01CB, 17170 }, - { 0x00D1, 17178 }, - { 0x0145, 17184 }, - { 0x1E4A, 17190 }, - { 0x004F, 17197 }, - { 0x022E, 17201 }, - { 0x0230, 17208 }, - { 0x1ECC, 17217 }, - { 0x1ECE, 17224 }, - { 0x01A0, 17231 }, - { 0x1EE2, 17237 }, - { 0x1EDE, 17246 }, - { 0x1EDA, 17255 }, - { 0x1EDC, 17263 }, - { 0x1EE0, 17271 }, - { 0x00D3, 17279 }, - { 0x014E, 17285 }, - { 0x01D1, 17291 }, - { 0x00D2, 17297 }, - { 0x00D5, 17303 }, - { 0x1E4C, 17309 }, - { 0x022C, 17317 }, - { 0x1E4E, 17325 }, - { 0x0150, 17333 }, - { 0x020C, 17340 }, - { 0x014C, 17347 }, - { 0x1E52, 17353 }, - { 0x1E50, 17361 }, - { 0x019F, 17369 }, - { 0x01EA, 17376 }, - { 0x01EC, 17382 }, - { 0x00D8, 17390 }, - { 0x01FE, 17396 }, - { 0x020E, 17404 }, - { 0x00D6, 17411 }, - { 0x022A, 17417 }, - { 0x00D4, 17425 }, - { 0x1ED8, 17431 }, - { 0x1ED4, 17440 }, - { 0x1ED0, 17449 }, - { 0x1ED2, 17457 }, - { 0x1ED6, 17465 }, - { 0x0050, 17473 }, - { 0x1E56, 17477 }, - { 0x01A4, 17484 }, - { 0x1E54, 17490 }, - { 0x2C63, 17496 }, - { 0x0051, 17502 }, - { 0x0052, 17506 }, - { 0x1E58, 17510 }, - { 0x1E5A, 17517 }, - { 0x1E5C, 17524 }, - { 0x1E5E, 17533 }, - { 0x2C64, 17540 }, - { 0x0154, 17546 }, - { 0x0158, 17552 }, - { 0x0210, 17558 }, - { 0x024C, 17565 }, - { 0x0156, 17571 }, - { 0x0212, 17577 }, - { 0x0053, 17584 }, - { 0x1E60, 17588 }, - { 0x1E62, 17595 }, - { 0x1E68, 17602 }, - { 0x015A, 17612 }, - { 0x1E64, 17618 }, - { 0x0160, 17627 }, - { 0x1E66, 17633 }, - { 0x0218, 17642 }, - { 0x015E, 17649 }, - { 0x015C, 17655 }, - { 0x0054, 17661 }, - { 0x1E6A, 17665 }, - { 0x1E6C, 17672 }, - { 0x01AC, 17679 }, - { 0x1E6E, 17685 }, - { 0x0164, 17692 }, - { 0x021A, 17698 }, - { 0x0166, 17705 }, - { 0x0162, 17711 }, - { 0x023E, 17717 }, - { 0x01AE, 17724 }, - { 0x1E70, 17731 }, - { 0x0055, 17738 }, - { 0x0244, 17742 }, - { 0x1EE4, 17747 }, - { 0x1EE6, 17754 }, - { 0x01AF, 17761 }, - { 0x1EF0, 17767 }, - { 0x1EEC, 17776 }, - { 0x1EE8, 17785 }, - { 0x1EEA, 17793 }, - { 0x1EEE, 17801 }, - { 0x016E, 17809 }, - { 0x00DA, 17816 }, - { 0x016C, 17822 }, - { 0x01D3, 17828 }, - { 0x00D9, 17834 }, - { 0x0168, 17840 }, - { 0x1E78, 17846 }, - { 0x1E74, 17854 }, - { 0x0170, 17861 }, - { 0x0214, 17868 }, - { 0x016A, 17875 }, - { 0x1E7A, 17881 }, - { 0x0172, 17889 }, - { 0x0216, 17895 }, - { 0x00DC, 17902 }, - { 0x01D7, 17908 }, - { 0x01D9, 17916 }, - { 0x01DB, 17924 }, - { 0x01D5, 17932 }, - { 0x1E72, 17940 }, - { 0x00DB, 17947 }, - { 0x1E76, 17953 }, - { 0x0056, 17960 }, - { 0x1E7E, 17964 }, - { 0x01B2, 17971 }, - { 0x1E7C, 17977 }, - { 0x0057, 17983 }, - { 0x1E86, 17987 }, - { 0x1E88, 17994 }, - { 0x1E82, 18001 }, - { 0x1E80, 18007 }, - { 0x1E84, 18013 }, - { 0x0174, 18019 }, - { 0x0058, 18025 }, - { 0x1E8A, 18029 }, - { 0x1E8C, 18036 }, - { 0x0059, 18042 }, - { 0x1E8E, 18046 }, - { 0x1EF4, 18053 }, - { 0x01B3, 18060 }, - { 0x1EF6, 18066 }, - { 0x00DD, 18073 }, - { 0x1EF2, 18079 }, - { 0x1EF8, 18085 }, - { 0x0232, 18091 }, - { 0x024E, 18097 }, - { 0x0178, 18103 }, - { 0x0176, 18109 }, - { 0x005A, 18115 }, - { 0x017B, 18119 }, - { 0x1E92, 18126 }, - { 0x0224, 18133 }, - { 0x1E94, 18139 }, - { 0x0179, 18146 }, - { 0x017D, 18152 }, - { 0x01B5, 18158 }, - { 0x2C6B, 18164 }, - { 0x1E90, 18170 }, - { 0x00C6, 18176 }, - { 0x01FC, 18180 }, - { 0x01E2, 18186 }, - { 0x01F1, 18192 }, - { 0x01C4, 18196 }, - { 0x01C7, 18202 }, - { 0x01CA, 18206 }, - { 0x01A2, 18210 }, - { 0x0222, 18214 }, - { 0x014A, 18218 }, - { 0x01A9, 18222 }, - { 0x00D0, 18226 }, - { 0x01B7, 18230 }, - { 0x01EE, 18234 }, - { 0x01B8, 18240 }, - { 0x2C75, 18245 }, - { 0x0196, 18250 }, - { 0x0190, 18254 }, - { 0x0186, 18259 }, - { 0x0184, 18264 }, - { 0x01A7, 18269 }, - { 0x01BC, 18274 }, - { 0x01F7, 18279 }, - { 0x021C, 18283 }, - { 0x0194, 18287 }, - { 0x01F6, 18291 }, - { 0x018F, 18295 }, - { 0x024A, 18299 }, - { 0x00DE, 18307 }, - { 0x019C, 18311 }, - { 0x0245, 18316 }, - { 0x0189, 18321 }, - { 0x0241, 18326 }, - { 0x01B1, 18331 }, - { 0x018E, 18335 }, - { 0x0132, 18340 }, - { 0x0152, 18344 }, - { 0x2090, 18348 }, - { 0x2091, 18353 }, - { 0x1D62, 18358 }, - { 0x2092, 18363 }, - { 0x1D63, 18368 }, - { 0x1D64, 18373 }, - { 0x1D65, 18378 }, - { 0x2093, 18383 }, - { 0x2094, 18388 }, - { 0x264E, 18393 }, - { 0x2772, 18394 }, - { 0x2773, 18400 }, - { 0x2591, 18406 }, - { 0x2758, 18408 }, - { 0x1940, 18411 }, - { 0x193B, 18414 }, - { 0x193A, 18417 }, - { 0x1939, 18420 }, - { 0x1947, 18423 }, - { 0x194C, 18426 }, - { 0x1948, 18429 }, - { 0x194B, 18432 }, - { 0x194A, 18435 }, - { 0x194F, 18438 }, - { 0x1946, 18441 }, - { 0x194E, 18444 }, - { 0x194D, 18447 }, - { 0x1949, 18450 }, - { 0x1930, 18453 }, - { 0x1938, 18457 }, - { 0x1936, 18461 }, - { 0x1934, 18465 }, - { 0x1935, 18469 }, - { 0x1937, 18473 }, - { 0x1933, 18477 }, - { 0x1931, 18481 }, - { 0x1932, 18485 }, - { 0x1920, 18489 }, - { 0x1927, 18493 }, - { 0x1921, 18497 }, - { 0x1928, 18501 }, - { 0x1922, 18505 }, - { 0x1924, 18509 }, - { 0x1926, 18513 }, - { 0x1923, 18517 }, - { 0x1925, 18521 }, - { 0x1912, 18525 }, - { 0x1906, 18528 }, - { 0x190D, 18531 }, - { 0x1903, 18534 }, - { 0x191C, 18537 }, - { 0x1908, 18540 }, - { 0x1901, 18543 }, - { 0x1917, 18546 }, - { 0x1914, 18549 }, - { 0x190F, 18552 }, - { 0x1910, 18555 }, - { 0x1916, 18558 }, - { 0x191B, 18561 }, - { 0x190B, 18564 }, - { 0x1918, 18567 }, - { 0x1915, 18570 }, - { 0x1913, 18573 }, - { 0x1907, 18576 }, - { 0x190E, 18579 }, - { 0x1904, 18582 }, - { 0x1909, 18585 }, - { 0x1902, 18588 }, - { 0x1905, 18591 }, - { 0x1911, 18594 }, - { 0x1919, 18597 }, - { 0x191A, 18600 }, - { 0x190C, 18603 }, - { 0x190A, 18606 }, - { 0x1945, 18609 }, - { 0x192A, 18612 }, - { 0x192B, 18616 }, - { 0x1929, 18620 }, - { 0x1944, 18624 }, - { 0x1900, 18627 }, - { 0x2581, 18630 }, - { 0x2582, 18634 }, - { 0x2585, 18638 }, - { 0x2584, 18642 }, - { 0x25E1, 18645 }, - { 0x25DB, 18648 }, - { 0x25DF, 18653 }, - { 0x25FA, 18658 }, - { 0x293F, 18661 }, - { 0x2703, 18666 }, - { 0x27D3, 18669 }, - { 0x270E, 18674 }, - { 0x25DE, 18677 }, - { 0x2751, 18682 }, - { 0x25FF, 18687 }, - { 0x293E, 18690 }, - { 0x274F, 18695 }, - { 0x2587, 18700 }, - { 0x2583, 18704 }, - { 0x2586, 18708 }, - { 0x00B5, 18712 }, - { 0x2212, 18714 }, - { 0x2A3A, 18716 }, - { 0x2A2A, 18720 }, - { 0x2A29, 18725 }, - { 0x2A2C, 18730 }, - { 0x2A2B, 18735 }, - { 0x2242, 18740 }, - { 0x266D, 18742 }, - { 0x266F, 18745 }, - { 0x266E, 18748 }, - { 0x2A09, 18751 }, - { 0x22C3, 18754 }, - { 0x2A03, 18756 }, - { 0x2A04, 18761 }, - { 0x2AFF, 18766 }, - { 0x2A06, 18770 }, - { 0x2A05, 18774 }, - { 0x2A00, 18778 }, - { 0x2A01, 18782 }, - { 0x2A02, 18786 }, - { 0x22C1, 18790 }, - { 0x22C0, 18793 }, - { 0x220F, 18796 }, - { 0x2210, 18798 }, - { 0x2211, 18800 }, - { 0x22C2, 18802 }, - { 0x2207, 18804 }, - { 0x20A6, 18805 }, - { 0x2922, 18807 }, - { 0x2197, 18813 }, - { 0x2928, 18816 }, - { 0x2924, 18823 }, - { 0x2931, 18828 }, - { 0x292E, 18835 }, - { 0x2B08, 18842 }, - { 0x2B00, 18846 }, - { 0x21D7, 18850 }, - { 0x2921, 18854 }, - { 0x2196, 18860 }, - { 0x21B8, 18863 }, - { 0x21F1, 18869 }, - { 0x2927, 18874 }, - { 0x2923, 18881 }, - { 0x2932, 18886 }, - { 0x2B09, 18893 }, - { 0x2B01, 18897 }, - { 0x21D6, 18901 }, - { 0x1680, 18905 }, - { 0x1696, 18908 }, - { 0x1692, 18911 }, - { 0x1691, 18914 }, - { 0x1690, 18917 }, - { 0x1689, 18920 }, - { 0x1687, 18923 }, - { 0x168C, 18926 }, - { 0x1698, 18929 }, - { 0x1682, 18932 }, - { 0x168B, 18935 }, - { 0x1685, 18938 }, - { 0x168F, 18941 }, - { 0x1684, 18944 }, - { 0x1686, 18947 }, - { 0x1681, 18950 }, - { 0x168A, 18953 }, - { 0x1683, 18956 }, - { 0x169A, 18959 }, - { 0x1688, 18962 }, - { 0x168E, 18965 }, - { 0x1695, 18968 }, - { 0x1693, 18971 }, - { 0x1694, 18974 }, - { 0x168D, 18977 }, - { 0x1697, 18980 }, - { 0x1699, 18983 }, - { 0x169B, 18986 }, - { 0x169C, 18989 }, - { 0x0B56, 18993 }, - { 0x0B57, 18997 }, - { 0x0B3C, 19001 }, - { 0x0B4D, 19004 }, - { 0x0B03, 19007 }, - { 0x0B02, 19010 }, - { 0x0B3D, 19013 }, - { 0x0B01, 19016 }, - { 0x0B67, 19019 }, - { 0x0B6C, 19022 }, - { 0x0B68, 19025 }, - { 0x0B6B, 19028 }, - { 0x0B6A, 19031 }, - { 0x0B6F, 19034 }, - { 0x0B66, 19037 }, - { 0x0B6E, 19040 }, - { 0x0B6D, 19043 }, - { 0x0B69, 19046 }, - { 0x0B47, 19049 }, - { 0x0B3F, 19053 }, - { 0x0B4B, 19057 }, - { 0x0B41, 19061 }, - { 0x0B3E, 19065 }, - { 0x0B48, 19069 }, - { 0x0B4C, 19073 }, - { 0x0B40, 19077 }, - { 0x0B42, 19081 }, - { 0x0B43, 19085 }, - { 0x0B70, 19090 }, - { 0x0B05, 19092 }, - { 0x0B0F, 19095 }, - { 0x0B07, 19098 }, - { 0x0B13, 19101 }, - { 0x0B09, 19104 }, - { 0x0B06, 19107 }, - { 0x0B10, 19110 }, - { 0x0B14, 19113 }, - { 0x0B2C, 19116 }, - { 0x0B1A, 19119 }, - { 0x0B26, 19122 }, - { 0x0B17, 19125 }, - { 0x0B39, 19128 }, - { 0x0B08, 19131 }, - { 0x0B1C, 19134 }, - { 0x0B15, 19137 }, - { 0x0B32, 19140 }, - { 0x0B2E, 19143 }, - { 0x0B28, 19146 }, - { 0x0B2A, 19149 }, - { 0x0B30, 19152 }, - { 0x0B38, 19155 }, - { 0x0B24, 19158 }, - { 0x0B0A, 19161 }, - { 0x0B35, 19164 }, - { 0x0B71, 19167 }, - { 0x0B2F, 19170 }, - { 0x0B2D, 19173 }, - { 0x0B1B, 19176 }, - { 0x0B21, 19179 }, - { 0x0B27, 19182 }, - { 0x0B18, 19185 }, - { 0x0B1D, 19188 }, - { 0x0B16, 19191 }, - { 0x0B33, 19194 }, - { 0x0B19, 19197 }, - { 0x0B23, 19200 }, - { 0x0B1E, 19203 }, - { 0x0B2B, 19206 }, - { 0x0B5D, 19209 }, - { 0x0B5C, 19212 }, - { 0x0B36, 19215 }, - { 0x0B37, 19218 }, - { 0x0B25, 19221 }, - { 0x0B1F, 19224 }, - { 0x0B5F, 19227 }, - { 0x0B22, 19230 }, - { 0x0B20, 19233 }, - { 0x0B0C, 19236 }, - { 0x0B0B, 19240 }, - { 0x0B61, 19244 }, - { 0x0B60, 19248 }, - { 0x2125, 19252 }, - { 0x262E, 19254 }, - { 0x2318, 19256 }, - { 0x2647, 19260 }, - { 0x00A3, 19261 }, - { 0x2032, 19263 }, - { 0x2399, 19264 }, - { 0x2236, 19267 }, - { 0x2994, 19268 }, - { 0x2E1D, 19272 }, - { 0x2595, 19276 }, - { 0x297D, 19280 }, - { 0x25D7, 19283 }, - { 0x2590, 19287 }, - { 0x22A2, 19290 }, - { 0x221F, 19292 }, - { 0x22BE, 19294 }, - { 0x237C, 19298 }, - { 0x2E01, 19304 }, - { 0x3009, 19309 }, - { 0x2992, 19312 }, - { 0x299C, 19317 }, - { 0x2E00, 19322 }, - { 0x21F4, 19326 }, - { 0x27F4, 19331 }, - { 0x2998, 19336 }, - { 0x3011, 19341 }, - { 0x007D, 19345 }, - { 0x23AD, 19348 }, - { 0x23AB, 19353 }, - { 0x23AC, 19358 }, - { 0x230B, 19363 }, - { 0x27D6, 19365 }, - { 0x2984, 19368 }, - { 0x300F, 19372 }, - { 0x301B, 19376 }, - { 0x3019, 19380 }, - { 0x3017, 19385 }, - { 0x2986, 19389 }, - { 0x300D, 19392 }, - { 0x2E05, 19395 }, - { 0x300B, 19399 }, - { 0x2970, 19403 }, - { 0x29DB, 19409 }, - { 0x201D, 19413 }, - { 0x22CA, 19417 }, - { 0x2E0D, 19422 }, - { 0x2019, 19426 }, - { 0x005D, 19430 }, - { 0x2990, 19433 }, - { 0x298E, 19441 }, - { 0x2046, 19449 }, - { 0x298C, 19454 }, - { 0x23A6, 19459 }, - { 0x23A4, 19464 }, - { 0x23A5, 19469 }, - { 0x29D9, 19473 }, - { 0x2309, 19476 }, - { 0x27C6, 19478 }, - { 0x3015, 19482 }, - { 0x22BF, 19486 }, - { 0x29CE, 19488 }, - { 0x23B9, 19493 }, - { 0x22CC, 19497 }, - { 0x0029, 19500 }, - { 0x23A0, 19502 }, - { 0x239E, 19506 }, - { 0x239F, 19510 }, - { 0x2E03, 19513 }, - { 0x2E0A, 19516 }, - { 0x2160, 19519 }, - { 0x216D, 19522 }, - { 0x216F, 19526 }, - { 0x2180, 19530 }, - { 0x2165, 19536 }, - { 0x2169, 19539 }, - { 0x2182, 19542 }, - { 0x2161, 19546 }, - { 0x2164, 19549 }, - { 0x216E, 19552 }, - { 0x2181, 19556 }, - { 0x2163, 19560 }, - { 0x2168, 19563 }, - { 0x2167, 19566 }, - { 0x216C, 19569 }, - { 0x2166, 19572 }, - { 0x2162, 19575 }, - { 0x216A, 19578 }, - { 0x216B, 19581 }, - { 0x2183, 19584 }, - { 0x16ED, 19589 }, - { 0x16EE, 19592 }, - { 0x16CD, 19595 }, - { 0x16D1, 19598 }, - { 0x16C2, 19601 }, - { 0x16B5, 19604 }, - { 0x16AE, 19607 }, - { 0x16E9, 19610 }, - { 0x16A1, 19613 }, - { 0x16A5, 19616 }, - { 0x16EA, 19619 }, - { 0x16A4, 19622 }, - { 0x16CE, 19625 }, - { 0x16AA, 19628 }, - { 0x16AF, 19632 }, - { 0x16B0, 19635 }, - { 0x16A9, 19638 }, - { 0x16A3, 19642 }, - { 0x16B3, 19645 }, - { 0x16E0, 19648 }, - { 0x16B6, 19651 }, - { 0x16A7, 19654 }, - { 0x16B8, 19657 }, - { 0x16C4, 19660 }, - { 0x16DD, 19663 }, - { 0x16E1, 19666 }, - { 0x16AB, 19669 }, - { 0x16E3, 19672 }, - { 0x16A0, 19675 }, - { 0x16B7, 19681 }, - { 0x16C1, 19686 }, - { 0x16C7, 19692 }, - { 0x16B4, 19696 }, - { 0x16E5, 19700 }, - { 0x16A2, 19703 }, - { 0x16C9, 19708 }, - { 0x16A8, 19712 }, - { 0x16E4, 19716 }, - { 0x16DE, 19719 }, - { 0x16D6, 19724 }, - { 0x16BB, 19729 }, - { 0x16C3, 19733 }, - { 0x16B2, 19737 }, - { 0x16B1, 19740 }, - { 0x16CB, 19746 }, - { 0x16CF, 19751 }, - { 0x16B9, 19757 }, - { 0x16BA, 19762 }, - { 0x16DC, 19766 }, - { 0x16DA, 19769 }, - { 0x16D7, 19775 }, - { 0x16BE, 19780 }, - { 0x16D5, 19786 }, - { 0x16C8, 19789 }, - { 0x16CA, 19794 }, - { 0x16E2, 19798 }, - { 0x16DF, 19801 }, - { 0x16D2, 19806 }, - { 0x16DB, 19812 }, - { 0x16C0, 19815 }, - { 0x16D4, 19818 }, - { 0x16A6, 19821 }, - { 0x16E8, 19826 }, - { 0x16C6, 19829 }, - { 0x16E7, 19833 }, - { 0x16C5, 19836 }, - { 0x16E6, 19840 }, - { 0x16AD, 19843 }, - { 0x16CC, 19847 }, - { 0x16D0, 19851 }, - { 0x16AC, 19855 }, - { 0x16D9, 19859 }, - { 0x16BF, 19863 }, - { 0x16D8, 19867 }, - { 0x16BD, 19871 }, - { 0x16BC, 19875 }, - { 0x16D3, 19879 }, - { 0x16EB, 19883 }, - { 0x16F0, 19886 }, - { 0x16EC, 19889 }, - { 0x16EF, 19892 }, - { 0x20A8, 19895 }, - { 0x2AE0, 19897 }, - { 0x2AE8, 19900 }, - { 0x2AE9, 19905 }, - { 0x2ADF, 19912 }, - { 0x2AE7, 19915 }, - { 0x2ADE, 19920 }, - { 0x2944, 19923 }, - { 0x2620, 19929 }, - { 0x2333, 19932 }, - { 0x6E58, 19933 }, - { 0x2A61, 19936 }, - { 0x6E52, 19940 }, - { 0x6E5B, 19943 }, - { 0x6E5D, 19947 }, - { 0x6E59, 19952 }, - { 0x6E62, 19955 }, - { 0x6E55, 19958 }, - { 0x6E50, 19960 }, - { 0x6E5C, 19962 }, - { 0x6E5E, 19966 }, - { 0x6E5A, 19971 }, - { 0x2170, 19974 }, - { 0x217D, 19978 }, - { 0x217F, 19983 }, - { 0x2175, 19988 }, - { 0x2179, 19992 }, - { 0x2171, 19996 }, - { 0x2174, 20000 }, - { 0x217E, 20004 }, - { 0x2173, 20009 }, - { 0x2178, 20013 }, - { 0x2177, 20017 }, - { 0x217C, 20021 }, - { 0x2176, 20025 }, - { 0x2172, 20029 }, - { 0x217A, 20033 }, - { 0x217B, 20037 }, - { 0x02DC, 20041 }, - { 0x6E69, 20043 }, - { 0x6E66, 20046 }, - { 0x6E5F, 20049 }, - { 0x220A, 20052 }, - { 0x22F7, 20055 }, - { 0x22F4, 20060 }, - { 0x6E6A, 20071 }, - { 0x6E68, 20074 }, - { 0x6E61, 20077 }, - { 0x220D, 20079 }, - { 0x22FE, 20083 }, - { 0x22FC, 20087 }, - { 0x6E56, 20097 }, - { 0x6E60, 20100 }, - { 0x6E64, 20102 }, - { 0x6E54, 20105 }, - { 0x6E6B, 20107 }, - { 0x6E57, 20110 }, - { 0x6E51, 20113 }, - { 0x6E65, 20116 }, - { 0x6E63, 20119 }, - { 0x2A33, 20121 }, - { 0x2323, 20123 }, - { 0x2117, 20124 }, - { 0x2198, 20127 }, - { 0x21F2, 20130 }, - { 0x2929, 20135 }, - { 0x2925, 20142 }, - { 0x292D, 20147 }, - { 0x2B0A, 20154 }, - { 0x2B02, 20158 }, - { 0x21D8, 20162 }, - { 0x2199, 20166 }, - { 0x292A, 20169 }, - { 0x2926, 20176 }, - { 0x2B0B, 20181 }, - { 0x2B03, 20185 }, - { 0x21D9, 20189 }, - { 0x0020, 20193 }, - { 0x27A7, 20194 }, - { 0x269A, 20198 }, - { 0x2695, 20201 }, - { 0x2053, 20204 }, - { 0x0BF8, 20206 }, - { 0x0BD7, 20210 }, - { 0x0BF3, 20214 }, - { 0x0BCD, 20217 }, - { 0x0B83, 20220 }, - { 0x0B82, 20223 }, - { 0x0BF5, 20226 }, - { 0x0BF6, 20229 }, - { 0x0BE7, 20232 }, - { 0x0BEC, 20235 }, - { 0x0BE8, 20238 }, - { 0x0BEB, 20241 }, - { 0x0BEA, 20244 }, - { 0x0BEF, 20247 }, - { 0x0BE6, 20250 }, - { 0x0BEE, 20253 }, - { 0x0BED, 20256 }, - { 0x0BE9, 20259 }, - { 0x0BF4, 20262 }, - { 0x0BF9, 20265 }, - { 0x0BC6, 20268 }, - { 0x0BBF, 20272 }, - { 0x0BCA, 20276 }, - { 0x0BC1, 20280 }, - { 0x0BBE, 20284 }, - { 0x0BC8, 20288 }, - { 0x0BCC, 20292 }, - { 0x0BC7, 20296 }, - { 0x0BC0, 20300 }, - { 0x0BCB, 20304 }, - { 0x0BC2, 20308 }, - { 0x0BF7, 20312 }, - { 0x0B85, 20315 }, - { 0x0B8E, 20318 }, - { 0x0B87, 20321 }, - { 0x0B92, 20324 }, - { 0x0B89, 20327 }, - { 0x0B86, 20330 }, - { 0x0B90, 20333 }, - { 0x0B94, 20336 }, - { 0x0B9A, 20339 }, - { 0x0B8F, 20342 }, - { 0x0BB9, 20345 }, - { 0x0B88, 20348 }, - { 0x0B9C, 20351 }, - { 0x0B95, 20354 }, - { 0x0BB2, 20357 }, - { 0x0BAE, 20360 }, - { 0x0BA8, 20363 }, - { 0x0B93, 20366 }, - { 0x0BAA, 20369 }, - { 0x0BB0, 20372 }, - { 0x0BB8, 20375 }, - { 0x0BA4, 20378 }, - { 0x0B8A, 20381 }, - { 0x0BB5, 20384 }, - { 0x0BAF, 20387 }, - { 0x0BB3, 20390 }, - { 0x0B99, 20393 }, - { 0x0BA3, 20396 }, - { 0x0B9E, 20399 }, - { 0x0BB1, 20402 }, - { 0x0BB6, 20405 }, - { 0x0BB7, 20408 }, - { 0x0B9F, 20411 }, - { 0x0BB4, 20414 }, - { 0x0BA9, 20417 }, - { 0x0BF1, 20420 }, - { 0x0BF2, 20424 }, - { 0x0BF0, 20428 }, - { 0x0BFA, 20431 }, - { 0x2204, 20434 }, - { 0x2203, 20438 }, - { 0x2056, 20440 }, - { 0x21F6, 20443 }, - { 0x2A76, 20446 }, - { 0x27C0, 20450 }, - { 0x2745, 20453 }, - { 0x007E, 20456 }, - { 0x223C, 20457 }, - { 0x2A6A, 20459 }, - { 0x2A6B, 20464 }, - { 0x2972, 20469 }, - { 0x29D4, 20474 }, - { 0x29D5, 20479 }, - { 0x2330, 20484 }, - { 0x2122, 20486 }, - { 0x222A, 20489 }, - { 0x2A41, 20490 }, - { 0x2A45, 20494 }, - { 0x2A42, 20498 }, - { 0x2A48, 20501 }, - { 0x2A46, 20506 }, - { 0x2A4A, 20509 }, - { 0x2594, 20515 }, - { 0x2580, 20519 }, - { 0x25E0, 20522 }, - { 0x25DA, 20525 }, - { 0x23B0, 20530 }, - { 0x27D4, 20538 }, - { 0x25DC, 20543 }, - { 0x25F8, 20548 }, - { 0x2701, 20551 }, - { 0x23B1, 20554 }, - { 0x2710, 20562 }, - { 0x25DD, 20565 }, - { 0x2752, 20570 }, - { 0x25F9, 20575 }, - { 0x2750, 20578 }, - { 0x264D, 20583 }, - { 0x231A, 20584 }, - { 0x2638, 20585 }, - { 0x261D, 20588 }, - { 0x2711, 20592 }, - { 0x263C, 20594 }, - { 0x2667, 20598 }, - { 0x261F, 20601 }, - { 0x2690, 20605 }, - { 0x2727, 20607 }, - { 0x261C, 20611 }, - { 0x2606, 20615 }, - { 0x2654, 20617 }, - { 0x2659, 20620 }, - { 0x2656, 20623 }, - { 0x2655, 20626 }, - { 0x2657, 20629 }, - { 0x2658, 20632 }, - { 0x2661, 20635 }, - { 0x261E, 20638 }, - { 0x2616, 20642 }, - { 0x25AB, 20645 }, - { 0x2664, 20648 }, - { 0x25E6, 20651 }, - { 0x25CB, 20653 }, - { 0x2686, 20655 }, - { 0x2687, 20660 }, - { 0x29EC, 20665 }, - { 0x25F5, 20670 }, - { 0x25F6, 20676 }, - { 0x25F4, 20682 }, - { 0x25F7, 20688 }, - { 0x25FD, 20694 }, - { 0x25FB, 20698 }, - { 0x6E46, 20701 }, - { 0x25A1, 20704 }, - { 0x25F1, 20706 }, - { 0x25F2, 20712 }, - { 0x25F0, 20718 }, - { 0x25F3, 20724 }, - { 0x2385, 20730 }, - { 0x25A2, 20736 }, - { 0x25EB, 20741 }, - { 0x27E4, 20747 }, - { 0x27E5, 20752 }, - { 0x25A3, 20757 }, - { 0x25C7, 20763 }, - { 0x2662, 20765 }, - { 0x27D0, 20768 }, - { 0x25C8, 20773 }, - { 0x2B21, 20779 }, - { 0x263A, 20781 }, - { 0x2740, 20784 }, - { 0x2639, 20786 }, - { 0x2B20, 20789 }, - { 0x2704, 20791 }, - { 0x27C1, 20793 }, - { 0x2AFE, 20799 }, - { 0x25AF, 20802 }, - { 0x29D6, 20805 }, - { 0x25AD, 20807 }, - { 0x260F, 20809 }, - { 0x23E2, 20811 }, - { 0x25B5, 20813 }, - { 0x25B3, 20817 }, - { 0x25EC, 20820 }, - { 0x27E1, 20825 }, - { 0x27E2, 20828 }, - { 0x27E3, 20834 }, - { 0x25BF, 20840 }, - { 0x25BD, 20844 }, - { 0x25C3, 20847 }, - { 0x25C5, 20851 }, - { 0x25C1, 20854 }, - { 0x25B1, 20857 }, - { 0x25B9, 20859 }, - { 0x25BB, 20863 }, - { 0x25B7, 20866 }, - { 0x713C, 20869 }, - { 0x7101, 20874 }, - { 0x7100, 20878 }, - { 0x7102, 20882 }, - { 0x713D, 20885 }, - { 0x7107, 20890 }, - { 0x7119, 20893 }, - { 0x7122, 20897 }, - { 0x710C, 20901 }, - { 0x711E, 20904 }, - { 0x7127, 20908 }, - { 0x7110, 20912 }, - { 0x712B, 20915 }, - { 0x7108, 20919 }, - { 0x711A, 20922 }, - { 0x7123, 20926 }, - { 0x710B, 20930 }, - { 0x711D, 20933 }, - { 0x7126, 20937 }, - { 0x710A, 20941 }, - { 0x711C, 20944 }, - { 0x7125, 20948 }, - { 0x710F, 20952 }, - { 0x7121, 20955 }, - { 0x712A, 20959 }, - { 0x710E, 20963 }, - { 0x7120, 20966 }, - { 0x7129, 20970 }, - { 0x7114, 20974 }, - { 0x712F, 20977 }, - { 0x7113, 20981 }, - { 0x712E, 20984 }, - { 0x710D, 20988 }, - { 0x711F, 20991 }, - { 0x7128, 20995 }, - { 0x7115, 20999 }, - { 0x7130, 21002 }, - { 0x7109, 21006 }, - { 0x711B, 21009 }, - { 0x7124, 21013 }, - { 0x7117, 21017 }, - { 0x7132, 21020 }, - { 0x7118, 21024 }, - { 0x7133, 21027 }, - { 0x7112, 21031 }, - { 0x712D, 21034 }, - { 0x7111, 21038 }, - { 0x712C, 21041 }, - { 0x7116, 21045 }, - { 0x7131, 21048 }, - { 0x7137, 21052 }, - { 0x7138, 21056 }, - { 0x713A, 21060 }, - { 0x713B, 21064 }, - { 0x7139, 21068 }, - { 0x713F, 21072 }, - { 0x713E, 21076 }, - { 0x224A, 21080 }, - { 0x2248, 21085 }, - { 0x2A6F, 21088 }, - { 0x2693, 21094 }, - { 0x06DD, 21095 }, - { 0x060D, 21099 }, - { 0x066D, 21102 }, - { 0x06D4, 21106 }, - { 0x0658, 21109 }, - { 0x0613, 21113 }, - { 0x060F, 21118 }, - { 0x0603, 21121 }, - { 0x0601, 21124 }, - { 0x0611, 21127 }, - { 0x06FD, 21131 }, - { 0x06FE, 21135 }, - { 0x0614, 21140 }, - { 0x0612, 21143 }, - { 0x0610, 21147 }, - { 0x6E73, 21152 }, - { 0x060C, 21155 }, - { 0x064F, 21157 }, - { 0x6E79, 21159 }, - { 0x6E78, 21163 }, - { 0x06EA, 21167 }, - { 0x06EB, 21172 }, - { 0x064E, 21177 }, - { 0x065E, 21179 }, - { 0x6E77, 21184 }, - { 0x6E76, 21188 }, - { 0x0654, 21192 }, - { 0x0655, 21195 }, - { 0x0650, 21198 }, - { 0x6E7B, 21200 }, - { 0x6E7A, 21204 }, - { 0x06E9, 21208 }, - { 0x06ED, 21212 }, - { 0x06E3, 21216 }, - { 0x06E5, 21220 }, - { 0x06E6, 21223 }, - { 0x06D9, 21226 }, - { 0x0615, 21231 }, - { 0x06E7, 21235 }, - { 0x06DA, 21239 }, - { 0x06D8, 21243 }, - { 0x06E2, 21249 }, - { 0x06E8, 21255 }, - { 0x06DC, 21259 }, - { 0x06E4, 21263 }, - { 0x06DB, 21267 }, - { 0x06E1, 21272 }, - { 0x06DF, 21279 }, - { 0x06E0, 21284 }, - { 0x06D7, 21290 }, - { 0x06D6, 21300 }, - { 0x06DE, 21310 }, - { 0x0652, 21316 }, - { 0x6E7F, 21318 }, - { 0x6E7E, 21322 }, - { 0x065C, 21326 }, - { 0x065A, 21331 }, - { 0x065B, 21337 }, - { 0x06D0, 21344 }, - { 0x6BE5, 21347 }, - { 0x6BE7, 21352 }, - { 0x6BE6, 21357 }, - { 0x6BE4, 21362 }, - { 0x06C7, 21367 }, - { 0x0677, 21370 }, - { 0x6BDD, 21376 }, - { 0x6BD8, 21384 }, - { 0x6BD7, 21389 }, - { 0x06D5, 21394 }, - { 0x06AD, 21397 }, - { 0x6BD4, 21400 }, - { 0x6BD6, 21405 }, - { 0x6BD5, 21410 }, - { 0x6BD3, 21415 }, - { 0x06C6, 21420 }, - { 0x6BDA, 21423 }, - { 0x6BD9, 21428 }, - { 0x06CB, 21433 }, - { 0x6BDF, 21436 }, - { 0x6BDE, 21441 }, - { 0x06C8, 21446 }, - { 0x6BDC, 21449 }, - { 0x6BDB, 21454 }, - { 0x0639, 21459 }, - { 0x075D, 21462 }, - { 0x075F, 21469 }, - { 0x06A0, 21477 }, - { 0x075E, 21484 }, - { 0x6ECA, 21493 }, - { 0x6ECC, 21498 }, - { 0x6ECB, 21503 }, - { 0x6EC9, 21508 }, - { 0x0628, 21513 }, - { 0x0751, 21516 }, - { 0x0754, 21526 }, - { 0x0756, 21536 }, - { 0x0752, 21542 }, - { 0x0753, 21551 }, - { 0x0750, 21564 }, - { 0x0755, 21572 }, - { 0x6E90, 21580 }, - { 0x6E92, 21585 }, - { 0x6E91, 21590 }, - { 0x6E8F, 21595 }, - { 0x0636, 21600 }, - { 0x06FB, 21603 }, - { 0x6EBE, 21609 }, - { 0x6EC0, 21614 }, - { 0x6EBF, 21619 }, - { 0x6EBD, 21624 }, - { 0x062F, 21629 }, - { 0x068A, 21632 }, - { 0x068B, 21638 }, - { 0x0759, 21647 }, - { 0x0690, 21658 }, - { 0x0689, 21665 }, - { 0x068F, 21670 }, - { 0x06EE, 21678 }, - { 0x075A, 21684 }, - { 0x6EAA, 21692 }, - { 0x6EA9, 21697 }, - { 0x068E, 21702 }, - { 0x6B87, 21705 }, - { 0x6B86, 21710 }, - { 0x0641, 21715 }, - { 0x06A3, 21718 }, - { 0x06A2, 21724 }, - { 0x0760, 21731 }, - { 0x06A5, 21738 }, - { 0x0761, 21745 }, - { 0x6ED2, 21754 }, - { 0x6ED4, 21759 }, - { 0x6ED3, 21764 }, - { 0x6ED1, 21769 }, - { 0x06AF, 21774 }, - { 0x06B2, 21777 }, - { 0x06B0, 21784 }, - { 0x06B4, 21789 }, - { 0x6B93, 21796 }, - { 0x6B95, 21801 }, - { 0x6B94, 21806 }, - { 0x6B92, 21811 }, - { 0x062D, 21816 }, - { 0x0757, 21819 }, - { 0x0682, 21826 }, - { 0x0681, 21834 }, - { 0x0685, 21840 }, - { 0x0758, 21847 }, - { 0x6EA2, 21856 }, - { 0x6EA4, 21861 }, - { 0x6EA3, 21866 }, - { 0x6EA1, 21871 }, - { 0x0647, 21876 }, - { 0x06C1, 21879 }, - { 0x06C2, 21883 }, - { 0x6BA7, 21890 }, - { 0x6BA9, 21896 }, - { 0x6BA8, 21902 }, - { 0x6BA6, 21908 }, - { 0x06C0, 21914 }, - { 0x6BA5, 21920 }, - { 0x6BA4, 21928 }, - { 0x06FF, 21936 }, - { 0x6EEA, 21942 }, - { 0x6EEC, 21947 }, - { 0x6EEB, 21952 }, - { 0x6EE9, 21957 }, - { 0x06BE, 21962 }, - { 0x6BAB, 21966 }, - { 0x6BAD, 21972 }, - { 0x6BAC, 21978 }, - { 0x6BAA, 21984 }, - { 0x0698, 21990 }, - { 0x6B8B, 21993 }, - { 0x6B8A, 21998 }, - { 0x0643, 22003 }, - { 0x06AC, 22006 }, - { 0x06AB, 22012 }, - { 0x06AE, 22017 }, - { 0x6EDA, 22024 }, - { 0x6EDC, 22029 }, - { 0x6EDB, 22034 }, - { 0x6ED9, 22039 }, - { 0x0644, 22044 }, - { 0x076A, 22047 }, - { 0x06B6, 22052 }, - { 0x06B5, 22058 }, - { 0x06B7, 22064 }, - { 0x06B8, 22071 }, - { 0x6EDE, 22078 }, - { 0x6EE0, 22083 }, - { 0x6EDF, 22088 }, - { 0x6EDD, 22093 }, - { 0x067E, 22098 }, - { 0x6B57, 22101 }, - { 0x6B59, 22106 }, - { 0x6B58, 22111 }, - { 0x6B56, 22116 }, - { 0x0642, 22121 }, - { 0x06A7, 22124 }, - { 0x06A8, 22130 }, - { 0x6ED6, 22137 }, - { 0x6ED8, 22142 }, - { 0x6ED7, 22147 }, - { 0x6ED5, 22152 }, - { 0x0631, 22157 }, - { 0x0694, 22160 }, - { 0x0696, 22166 }, - { 0x0697, 22175 }, - { 0x076B, 22182 }, - { 0x0699, 22190 }, - { 0x0693, 22197 }, - { 0x076C, 22202 }, - { 0x0692, 22208 }, - { 0x0695, 22214 }, - { 0x075B, 22221 }, - { 0x06EF, 22226 }, - { 0x6EAE, 22232 }, - { 0x6EAD, 22237 }, - { 0x0635, 22242 }, - { 0x069D, 22245 }, - { 0x069E, 22252 }, - { 0x6EBA, 22259 }, - { 0x6EBC, 22264 }, - { 0x6EBB, 22269 }, - { 0x6EB9, 22274 }, - { 0x0637, 22279 }, - { 0x069F, 22282 }, - { 0x6EC2, 22289 }, - { 0x6EC4, 22294 }, - { 0x6EC3, 22299 }, - { 0x6EC1, 22304 }, - { 0x062A, 22309 }, - { 0x067C, 22312 }, - { 0x067D, 22317 }, - { 0x6E96, 22325 }, - { 0x6E98, 22330 }, - { 0x6E97, 22335 }, - { 0x0629, 22340 }, - { 0x06C3, 22344 }, - { 0x6E94, 22349 }, - { 0x6E93, 22355 }, - { 0x6E95, 22361 }, - { 0x06A4, 22366 }, - { 0x6B6B, 22369 }, - { 0x6B6D, 22374 }, - { 0x6B6C, 22379 }, - { 0x6B6A, 22384 }, - { 0x0648, 22389 }, - { 0x06CF, 22392 }, - { 0x06CA, 22398 }, - { 0x06C4, 22405 }, - { 0x0624, 22410 }, - { 0x6E86, 22416 }, - { 0x6E85, 22424 }, - { 0x6EEE, 22432 }, - { 0x6EED, 22437 }, - { 0x064A, 22442 }, - { 0x06CD, 22445 }, - { 0x0626, 22450 }, - { 0x6E8A, 22456 }, - { 0x6E8C, 22464 }, - { 0x6E8B, 22472 }, - { 0x6E89, 22480 }, - { 0x06CE, 22488 }, - { 0x06D1, 22494 }, - { 0x6EF2, 22501 }, - { 0x06D2, 22506 }, - { 0x06D3, 22510 }, - { 0x6BB1, 22517 }, - { 0x6BB0, 22526 }, - { 0x6BAF, 22535 }, - { 0x6BAE, 22541 }, - { 0x6EF4, 22547 }, - { 0x6EF3, 22552 }, - { 0x6EF1, 22557 }, - { 0x0638, 22562 }, - { 0x6EC6, 22565 }, - { 0x6EC8, 22570 }, - { 0x6EC7, 22575 }, - { 0x6EC5, 22580 }, - { 0x0627, 22585 }, - { 0x0672, 22588 }, - { 0x0673, 22595 }, - { 0x0623, 22602 }, - { 0x6E84, 22608 }, - { 0x6E83, 22616 }, - { 0x0625, 22624 }, - { 0x6E88, 22630 }, - { 0x6E87, 22638 }, - { 0x0622, 22646 }, - { 0x6E82, 22652 }, - { 0x6E81, 22660 }, - { 0x6E8E, 22668 }, - { 0x0671, 22673 }, - { 0x6B51, 22677 }, - { 0x6B50, 22683 }, - { 0x0649, 22689 }, - { 0x6EF0, 22693 }, - { 0x6EEF, 22699 }, - { 0x6E8D, 22705 }, - { 0x067B, 22710 }, - { 0x6B53, 22713 }, - { 0x6B55, 22718 }, - { 0x6B54, 22723 }, - { 0x6B52, 22728 }, - { 0x0688, 22733 }, - { 0x6B89, 22736 }, - { 0x6B88, 22741 }, - { 0x0684, 22746 }, - { 0x6B73, 22749 }, - { 0x6B75, 22754 }, - { 0x6B74, 22759 }, - { 0x6B72, 22764 }, - { 0x06B3, 22769 }, - { 0x6B97, 22772 }, - { 0x6B99, 22777 }, - { 0x6B98, 22782 }, - { 0x6B96, 22787 }, - { 0x0674, 22792 }, - { 0x0676, 22796 }, - { 0x0678, 22801 }, - { 0x0675, 22806 }, - { 0x062C, 22811 }, - { 0x6E9E, 22814 }, - { 0x6EA0, 22819 }, - { 0x6E9F, 22824 }, - { 0x6E9D, 22829 }, - { 0x062E, 22834 }, - { 0x6EA6, 22837 }, - { 0x6EA8, 22842 }, - { 0x6EA7, 22847 }, - { 0x6EA5, 22852 }, - { 0x0645, 22857 }, - { 0x0765, 22860 }, - { 0x0766, 22866 }, - { 0x6EE2, 22872 }, - { 0x6EE4, 22877 }, - { 0x6EE3, 22882 }, - { 0x6EE1, 22887 }, - { 0x0646, 22892 }, - { 0x06B9, 22895 }, - { 0x0767, 22901 }, - { 0x06BC, 22908 }, - { 0x0769, 22913 }, - { 0x0768, 22919 }, - { 0x06BD, 22925 }, - { 0x6EE6, 22932 }, - { 0x06BA, 22937 }, - { 0x6B9F, 22941 }, - { 0x6B9E, 22947 }, - { 0x6EE8, 22953 }, - { 0x6EE7, 22958 }, - { 0x6EE5, 22963 }, - { 0x0683, 22968 }, - { 0x6B77, 22971 }, - { 0x6B79, 22976 }, - { 0x6B78, 22981 }, - { 0x6B76, 22986 }, - { 0x0691, 22991 }, - { 0x6B8D, 22994 }, - { 0x6B8C, 22999 }, - { 0x0633, 23004 }, - { 0x069A, 23007 }, - { 0x076D, 23016 }, - { 0x075C, 23024 }, - { 0x069B, 23031 }, - { 0x069C, 23038 }, - { 0x6EB2, 23049 }, - { 0x6EB4, 23054 }, - { 0x6EB3, 23059 }, - { 0x6EB1, 23064 }, - { 0x0630, 23069 }, - { 0x6EAC, 23072 }, - { 0x6EAB, 23077 }, - { 0x062B, 23082 }, - { 0x6E9A, 23085 }, - { 0x6E9C, 23090 }, - { 0x6E9B, 23095 }, - { 0x6E99, 23100 }, - { 0x0679, 23105 }, - { 0x6B67, 23108 }, - { 0x6B69, 23113 }, - { 0x6B68, 23118 }, - { 0x6B66, 23123 }, - { 0x0632, 23128 }, - { 0x6EB0, 23131 }, - { 0x6EAF, 23136 }, - { 0x0680, 23141 }, - { 0x6B5B, 23144 }, - { 0x6B5D, 23149 }, - { 0x6B5C, 23154 }, - { 0x6B5A, 23159 }, - { 0x068C, 23164 }, - { 0x6B85, 23167 }, - { 0x6B84, 23172 }, - { 0x06CC, 23177 }, - { 0x6BFD, 23181 }, - { 0x6BFF, 23187 }, - { 0x6BFE, 23193 }, - { 0x6BFC, 23199 }, - { 0x063A, 23205 }, - { 0x06FC, 23208 }, - { 0x6ECE, 23214 }, - { 0x6ED0, 23219 }, - { 0x6ECF, 23224 }, - { 0x6ECD, 23229 }, - { 0x0621, 23234 }, - { 0x6E80, 23237 }, - { 0x06A9, 23242 }, - { 0x0762, 23245 }, - { 0x0763, 23251 }, - { 0x0764, 23258 }, - { 0x6B8F, 23267 }, - { 0x6B91, 23272 }, - { 0x6B90, 23277 }, - { 0x6B8E, 23282 }, - { 0x06B1, 23287 }, - { 0x6B9B, 23290 }, - { 0x6B9D, 23295 }, - { 0x6B9C, 23300 }, - { 0x6B9A, 23305 }, - { 0x06A6, 23310 }, - { 0x6B6F, 23313 }, - { 0x6B71, 23318 }, - { 0x6B70, 23323 }, - { 0x6B6E, 23328 }, - { 0x06BB, 23333 }, - { 0x6BA1, 23336 }, - { 0x6BA3, 23341 }, - { 0x6BA2, 23346 }, - { 0x6BA0, 23351 }, - { 0x0634, 23356 }, - { 0x06FA, 23359 }, - { 0x6EB6, 23365 }, - { 0x6EB8, 23370 }, - { 0x6EB7, 23375 }, - { 0x6EB5, 23380 }, - { 0x06AA, 23385 }, - { 0x0686, 23389 }, - { 0x06BF, 23392 }, - { 0x6B7B, 23398 }, - { 0x6B7D, 23403 }, - { 0x6B7C, 23408 }, - { 0x6B7A, 23413 }, - { 0x067F, 23418 }, - { 0x6B63, 23421 }, - { 0x6B65, 23426 }, - { 0x6B64, 23431 }, - { 0x6B62, 23436 }, - { 0x068D, 23441 }, - { 0x6B83, 23444 }, - { 0x6B82, 23449 }, - { 0x067A, 23454 }, - { 0x6B5F, 23457 }, - { 0x6B61, 23462 }, - { 0x6B60, 23467 }, - { 0x6B5E, 23472 }, - { 0x6BE9, 23477 }, - { 0x6BE8, 23486 }, - { 0x066E, 23495 }, - { 0x06A1, 23499 }, - { 0x066F, 23503 }, - { 0x06C5, 23507 }, - { 0x6BE1, 23511 }, - { 0x6BE0, 23517 }, - { 0x06C9, 23523 }, - { 0x6BE3, 23527 }, - { 0x6BE2, 23533 }, - { 0x0687, 23539 }, - { 0x6B7F, 23542 }, - { 0x6B81, 23547 }, - { 0x6B80, 23552 }, - { 0x6B7E, 23557 }, - { 0x0670, 23562 }, - { 0x0653, 23566 }, - { 0x0600, 23569 }, - { 0x060E, 23572 }, - { 0x0651, 23576 }, - { 0x6E7D, 23578 }, - { 0x6E7C, 23582 }, - { 0x061E, 23586 }, - { 0x066B, 23591 }, - { 0x066A, 23594 }, - { 0x06EC, 23597 }, - { 0x0640, 23604 }, - { 0x6E71, 23606 }, - { 0x064C, 23611 }, - { 0x6E72, 23613 }, - { 0x064B, 23617 }, - { 0x6E70, 23619 }, - { 0x0602, 23623 }, - { 0x0657, 23626 }, - { 0x064D, 23629 }, - { 0x6E74, 23631 }, - { 0x6D14, 23635 }, - { 0x6CF8, 23642 }, - { 0x6D13, 23649 }, - { 0x6CF7, 23657 }, - { 0x6D75, 23665 }, - { 0x6DC4, 23674 }, - { 0x6CBA, 23683 }, - { 0x6C29, 23690 }, - { 0x6DB6, 23697 }, - { 0x6D78, 23706 }, - { 0x6D76, 23716 }, - { 0x6D77, 23725 }, - { 0x6CBB, 23734 }, - { 0x6C2A, 23741 }, - { 0x6DC2, 23748 }, - { 0x6C9D, 23757 }, - { 0x6C06, 23764 }, - { 0x6CE2, 23771 }, - { 0x6CA0, 23778 }, - { 0x6C6A, 23785 }, - { 0x6C6F, 23792 }, - { 0x6C0A, 23799 }, - { 0x6C6E, 23806 }, - { 0x6C09, 23814 }, - { 0x6C9C, 23822 }, - { 0x6C05, 23829 }, - { 0x6D9E, 23836 }, - { 0x6C9E, 23845 }, - { 0x6C07, 23852 }, - { 0x6C6C, 23859 }, - { 0x6CE1, 23866 }, - { 0x6C9F, 23873 }, - { 0x6C08, 23880 }, - { 0x6C6D, 23887 }, - { 0x6C6B, 23894 }, - { 0x6DAB, 23901 }, - { 0x6D6E, 23910 }, - { 0x6CB5, 23920 }, - { 0x6C23, 23927 }, - { 0x6D2C, 23934 }, - { 0x6D10, 23941 }, - { 0x6D24, 23948 }, - { 0x6D08, 23955 }, - { 0x6D23, 23962 }, - { 0x6D07, 23970 }, - { 0x6CB4, 23978 }, - { 0x6C22, 23985 }, - { 0x6D6F, 23992 }, - { 0x6D70, 24001 }, - { 0x6CB6, 24010 }, - { 0x6C24, 24017 }, - { 0x6CB7, 24024 }, - { 0x6C25, 24031 }, - { 0x6CBF, 24038 }, - { 0x6C2E, 24045 }, - { 0x6C7D, 24052 }, - { 0x6C32, 24059 }, - { 0x6C7C, 24066 }, - { 0x6C31, 24074 }, - { 0x6CBE, 24082 }, - { 0x6C2D, 24089 }, - { 0x6D7C, 24096 }, - { 0x6D7D, 24105 }, - { 0x6CC0, 24114 }, - { 0x6C2F, 24121 }, - { 0x6DC1, 24128 }, - { 0x6CC1, 24137 }, - { 0x6C30, 24144 }, - { 0x6D1C, 24151 }, - { 0x6D00, 24158 }, - { 0x6D1B, 24165 }, - { 0x6CFF, 24173 }, - { 0x6DBF, 24181 }, - { 0x6CA9, 24190 }, - { 0x6C17, 24197 }, - { 0x6D5A, 24204 }, - { 0x6D5B, 24213 }, - { 0x6CAA, 24223 }, - { 0x6C18, 24230 }, - { 0x6C54, 24237 }, - { 0x6C53, 24244 }, - { 0x6CD7, 24252 }, - { 0x6C51, 24259 }, - { 0x6D93, 24266 }, - { 0x6D94, 24275 }, - { 0x6CD8, 24284 }, - { 0x6C52, 24291 }, - { 0x6CD9, 24298 }, - { 0x6CC5, 24306 }, - { 0x6C39, 24313 }, - { 0x6C81, 24320 }, - { 0x6CEB, 24327 }, - { 0x6CC7, 24334 }, - { 0x6C3B, 24341 }, - { 0x6C84, 24348 }, - { 0x6C3E, 24355 }, - { 0x6C80, 24362 }, - { 0x6C83, 24369 }, - { 0x6C3D, 24377 }, - { 0x6C37, 24385 }, - { 0x6CC4, 24392 }, - { 0x6C38, 24399 }, - { 0x6CC6, 24406 }, - { 0x6C3A, 24413 }, - { 0x6DB7, 24420 }, - { 0x6DBB, 24429 }, - { 0x6DC3, 24438 }, - { 0x6C82, 24447 }, - { 0x6CEC, 24454 }, - { 0x6CC8, 24461 }, - { 0x6C3C, 24468 }, - { 0x6D81, 24475 }, - { 0x6D82, 24484 }, - { 0x6D80, 24494 }, - { 0x6DB5, 24503 }, - { 0x6CCA, 24512 }, - { 0x6C40, 24519 }, - { 0x6CCD, 24526 }, - { 0x6C87, 24533 }, - { 0x6C44, 24540 }, - { 0x6EF8, 24547 }, - { 0x6EF7, 24557 }, - { 0x6EFA, 24567 }, - { 0x6EF9, 24577 }, - { 0x6EF6, 24587 }, - { 0x6EF5, 24597 }, - { 0x6EFC, 24607 }, - { 0x6C86, 24614 }, - { 0x6C43, 24622 }, - { 0x6EFB, 24630 }, - { 0x6DAC, 24637 }, - { 0x6D84, 24646 }, - { 0x6D83, 24655 }, - { 0x6DBC, 24664 }, - { 0x6DBA, 24673 }, - { 0x6CC9, 24682 }, - { 0x6C3F, 24689 }, - { 0x6D85, 24696 }, - { 0x6D86, 24705 }, - { 0x6CCB, 24714 }, - { 0x6C41, 24721 }, - { 0x6D87, 24728 }, - { 0x6D88, 24737 }, - { 0x6DAD, 24746 }, - { 0x6C85, 24755 }, - { 0x6CED, 24762 }, - { 0x6CCC, 24769 }, - { 0x6C42, 24776 }, - { 0x6CC2, 24783 }, - { 0x6C33, 24790 }, - { 0x6C7F, 24797 }, - { 0x6C36, 24804 }, - { 0x6C7E, 24811 }, - { 0x6C35, 24819 }, - { 0x6D7E, 24827 }, - { 0x6DB4, 24836 }, - { 0x6DB2, 24845 }, - { 0x6D7F, 24854 }, - { 0x6CC3, 24863 }, - { 0x6C34, 24870 }, - { 0x6C5C, 24877 }, - { 0x6D64, 24885 }, - { 0x6D65, 24894 }, - { 0x6DA9, 24903 }, - { 0x6CB1, 24912 }, - { 0x6C20, 24919 }, - { 0x6D2B, 24926 }, - { 0x6D0F, 24933 }, - { 0x6D22, 24940 }, - { 0x6D06, 24947 }, - { 0x6D21, 24954 }, - { 0x6D05, 24962 }, - { 0x6CB2, 24970 }, - { 0x6D66, 24977 }, - { 0x6DC5, 24986 }, - { 0x6CB3, 24995 }, - { 0x6C21, 25002 }, - { 0x6CB8, 25009 }, - { 0x6C26, 25016 }, - { 0x6D12, 25023 }, - { 0x6CF6, 25030 }, - { 0x6D11, 25037 }, - { 0x6CF5, 25045 }, - { 0x6D71, 25053 }, - { 0x6D72, 25062 }, - { 0x6D74, 25071 }, - { 0x6D73, 25080 }, - { 0x6D3A, 25089 }, - { 0x6D33, 25096 }, - { 0x6C27, 25103 }, - { 0x6D51, 25110 }, - { 0x6D52, 25119 }, - { 0x6D53, 25128 }, - { 0x6CA2, 25137 }, - { 0x6C0C, 25144 }, - { 0x6CE4, 25151 }, - { 0x6CA5, 25158 }, - { 0x6C70, 25165 }, - { 0x6C75, 25172 }, - { 0x6C10, 25179 }, - { 0x6C74, 25186 }, - { 0x6C0F, 25194 }, - { 0x6D9F, 25202 }, - { 0x6DA0, 25211 }, - { 0x6D50, 25221 }, - { 0x6CA1, 25230 }, - { 0x6C0B, 25237 }, - { 0x6DA1, 25244 }, - { 0x6DA2, 25253 }, - { 0x6D54, 25263 }, - { 0x6CA3, 25272 }, - { 0x6C0D, 25279 }, - { 0x6D56, 25286 }, - { 0x6DA3, 25295 }, - { 0x6DA4, 25304 }, - { 0x6D55, 25314 }, - { 0x6D57, 25323 }, - { 0x6C72, 25332 }, - { 0x6CE3, 25339 }, - { 0x6CA4, 25346 }, - { 0x6C0E, 25353 }, - { 0x6C73, 25360 }, - { 0x6C71, 25367 }, - { 0x6DAE, 25374 }, - { 0x6CDB, 25383 }, - { 0x6C56, 25390 }, - { 0x6CF1, 25397 }, - { 0x6CDE, 25404 }, - { 0x6C91, 25411 }, - { 0x6C96, 25418 }, - { 0x6C5A, 25425 }, - { 0x6C95, 25432 }, - { 0x6C59, 25440 }, - { 0x6DAF, 25448 }, - { 0x6CDA, 25457 }, - { 0x6C55, 25464 }, - { 0x6CDC, 25471 }, - { 0x6C57, 25478 }, - { 0x6DB0, 25485 }, - { 0x6D9C, 25494 }, - { 0x6D9D, 25503 }, - { 0x6C93, 25512 }, - { 0x6CF0, 25519 }, - { 0x6CDD, 25526 }, - { 0x6C58, 25533 }, - { 0x6C94, 25540 }, - { 0x6C92, 25547 }, - { 0x6BF7, 25554 }, - { 0x6BF8, 25564 }, - { 0x6BF6, 25574 }, - { 0x6BF1, 25584 }, - { 0x6BF0, 25594 }, - { 0x6BED, 25604 }, - { 0x6BEC, 25614 }, - { 0x6BF3, 25624 }, - { 0x6BF2, 25634 }, - { 0x6BF5, 25644 }, - { 0x6BF4, 25654 }, - { 0x6C98, 25664 }, - { 0x6C01, 25674 }, - { 0x6CE0, 25684 }, - { 0x6C9B, 25694 }, - { 0x6C64, 25704 }, - { 0x6BEF, 25714 }, - { 0x6BEE, 25724 }, - { 0x6C69, 25734 }, - { 0x6C04, 25744 }, - { 0x6BEB, 25754 }, - { 0x6C68, 25764 }, - { 0x6C03, 25775 }, - { 0x6BEA, 25786 }, - { 0x6C97, 25796 }, - { 0x6C00, 25806 }, - { 0x6C99, 25816 }, - { 0x6C66, 25826 }, - { 0x6CDF, 25836 }, - { 0x6C9A, 25846 }, - { 0x6C02, 25856 }, - { 0x6C67, 25866 }, - { 0x6C65, 25876 }, - { 0x6D3B, 25886 }, - { 0x6CB9, 25893 }, - { 0x6C28, 25900 }, - { 0x6D3C, 25907 }, - { 0x6D3D, 25914 }, - { 0x6C90, 25921 }, - { 0x6C5D, 25930 }, - { 0x6DBE, 25939 }, - { 0x6DA6, 25948 }, - { 0x6CA7, 25958 }, - { 0x6C15, 25965 }, - { 0x6D1E, 25972 }, - { 0x6D02, 25979 }, - { 0x6D1D, 25986 }, - { 0x6D01, 25994 }, - { 0x6D58, 26002 }, - { 0x6D59, 26011 }, - { 0x6DA5, 26020 }, - { 0x6DA7, 26029 }, - { 0x6CA8, 26039 }, - { 0x6C16, 26046 }, - { 0x6C1A, 26053 }, - { 0x6D20, 26060 }, - { 0x6D04, 26067 }, - { 0x6D1F, 26074 }, - { 0x6D03, 26082 }, - { 0x6CAB, 26090 }, - { 0x6C19, 26097 }, - { 0x6CAC, 26104 }, - { 0x6C1B, 26111 }, - { 0x6D8B, 26118 }, - { 0x6D89, 26127 }, - { 0x6D8A, 26136 }, - { 0x6CCF, 26145 }, - { 0x6C46, 26152 }, - { 0x6C4A, 26159 }, - { 0x6C88, 26166 }, - { 0x6C49, 26173 }, - { 0x6D8C, 26181 }, - { 0x6DC0, 26190 }, - { 0x6D92, 26199 }, - { 0x6D8D, 26208 }, - { 0x6CCE, 26217 }, - { 0x6C45, 26224 }, - { 0x6DB9, 26231 }, - { 0x6D8E, 26240 }, - { 0x6D8F, 26249 }, - { 0x6CD0, 26258 }, - { 0x6C47, 26265 }, - { 0x6DB1, 26272 }, - { 0x6C89, 26281 }, - { 0x6CD1, 26288 }, - { 0x6C48, 26295 }, - { 0x6DB3, 26302 }, - { 0x6D96, 26311 }, - { 0x6D95, 26321 }, - { 0x6CD3, 26330 }, - { 0x6C4C, 26337 }, - { 0x6CEF, 26344 }, - { 0x6CD6, 26351 }, - { 0x6C8A, 26358 }, - { 0x6C8F, 26365 }, - { 0x6C50, 26372 }, - { 0x6C8E, 26379 }, - { 0x6C4F, 26387 }, - { 0x6DBD, 26395 }, - { 0x6DB8, 26404 }, - { 0x6DC7, 26413 }, - { 0x6D99, 26422 }, - { 0x6D97, 26432 }, - { 0x6D98, 26441 }, - { 0x6CD2, 26450 }, - { 0x6C4B, 26457 }, - { 0x6CD4, 26464 }, - { 0x6C4D, 26471 }, - { 0x6D9A, 26478 }, - { 0x6D9B, 26487 }, - { 0x6C8C, 26497 }, - { 0x6CEE, 26504 }, - { 0x6CD5, 26511 }, - { 0x6C4E, 26518 }, - { 0x6C8D, 26525 }, - { 0x6C8B, 26532 }, - { 0x6DF1, 26539 }, - { 0x6D5C, 26549 }, - { 0x6D35, 26558 }, - { 0x6CAE, 26565 }, - { 0x6C1D, 26572 }, - { 0x6CE8, 26579 }, - { 0x6D31, 26586 }, - { 0x6D2A, 26593 }, - { 0x6D0E, 26600 }, - { 0x6D18, 26607 }, - { 0x6CFC, 26614 }, - { 0x6D17, 26621 }, - { 0x6CFB, 26629 }, - { 0x6D5D, 26637 }, - { 0x6D5E, 26646 }, - { 0x6D34, 26656 }, - { 0x6CAD, 26663 }, - { 0x6C1C, 26670 }, - { 0x6DC6, 26677 }, - { 0x6DA8, 26686 }, - { 0x6D36, 26696 }, - { 0x6CAF, 26703 }, - { 0x6C1E, 26710 }, - { 0x6D5F, 26717 }, - { 0x6D60, 26726 }, - { 0x6D61, 26735 }, - { 0x6D62, 26744 }, - { 0x6D63, 26753 }, - { 0x6CE7, 26762 }, - { 0x6CB0, 26769 }, - { 0x6C1F, 26776 }, - { 0x6C5B, 26783 }, - { 0x6CE6, 26791 }, - { 0x6C76, 26798 }, - { 0x6C7B, 26805 }, - { 0x6C14, 26812 }, - { 0x6C7A, 26819 }, - { 0x6C13, 26827 }, - { 0x6C11, 26835 }, - { 0x6C78, 26842 }, - { 0x6CE5, 26849 }, - { 0x6CA6, 26856 }, - { 0x6C12, 26863 }, - { 0x6C79, 26870 }, - { 0x6C77, 26877 }, - { 0x6DF3, 26884 }, - { 0x6DF2, 26889 }, - { 0x6D16, 26894 }, - { 0x6CFA, 26901 }, - { 0x6D15, 26908 }, - { 0x6CF9, 26916 }, - { 0x6CBC, 26924 }, - { 0x6C2B, 26931 }, - { 0x6D7A, 26938 }, - { 0x6D7B, 26947 }, - { 0x6D79, 26957 }, - { 0x6CBD, 26966 }, - { 0x6C2C, 26973 }, - { 0x6DF5, 26980 }, - { 0x6DF0, 26985 }, - { 0x6DF9, 26995 }, - { 0x6DAA, 27000 }, - { 0x6D67, 27009 }, - { 0x6D68, 27018 }, - { 0x6D26, 27027 }, - { 0x6D38, 27034 }, - { 0x6D2E, 27041 }, - { 0x6D0A, 27048 }, - { 0x6CEA, 27055 }, - { 0x6D32, 27062 }, - { 0x6D29, 27069 }, - { 0x6D0D, 27076 }, - { 0x6D1A, 27083 }, - { 0x6CFE, 27090 }, - { 0x6D19, 27097 }, - { 0x6CFD, 27105 }, - { 0x6D69, 27113 }, - { 0x6D25, 27122 }, - { 0x6D37, 27129 }, - { 0x6D2D, 27136 }, - { 0x6D09, 27143 }, - { 0x6D27, 27150 }, - { 0x6D39, 27157 }, - { 0x6D2F, 27164 }, - { 0x6D0B, 27171 }, - { 0x6D6A, 27178 }, - { 0x6D6B, 27187 }, - { 0x6D6C, 27196 }, - { 0x6D6D, 27205 }, - { 0x6D28, 27214 }, - { 0x6CE9, 27221 }, - { 0x6D30, 27228 }, - { 0x6D0C, 27235 }, - { 0x6DF7, 27242 }, - { 0x6DF6, 27247 }, - { 0x6CF3, 27252 }, - { 0x6C61, 27259 }, - { 0x6CF2, 27266 }, - { 0x6C60, 27273 }, - { 0x6CF4, 27280 }, - { 0x6C62, 27287 }, - { 0x6C5E, 27294 }, - { 0x6C5F, 27301 }, - { 0x6C63, 27308 }, - { 0x6BFA, 27316 }, - { 0x6BFB, 27329 }, - { 0x6BF9, 27342 }, - { 0x6DF4, 27355 }, - { 0x6DF8, 27360 }, - { 0x6DFD, 27365 }, - { 0x6DFA, 27370 }, - { 0x6DFB, 27375 }, - { 0x061F, 27378 }, - { 0x065D, 27381 }, - { 0x0659, 27384 }, - { 0x061B, 27386 }, - { 0x0656, 27388 }, - { 0x066C, 27391 }, - { 0x2717, 27394 }, - { 0x2610, 27396 }, - { 0x2612, 27398 }, - { 0x2611, 27402 }, - { 0x266B, 27406 }, - { 0x266C, 27409 }, - { 0x293B, 27412 }, - { 0x2321, 27416 }, - { 0x230D, 27419 }, - { 0x231E, 27422 }, - { 0x23DF, 27425 }, - { 0x230C, 27428 }, - { 0x231F, 27431 }, - { 0x23B5, 27434 }, - { 0x23B6, 27437 }, - { 0x23E1, 27444 }, - { 0x23DD, 27448 }, - { 0x22C8, 27450 }, - { 0x29D1, 27451 }, - { 0x29D2, 27456 }, - { 0x00A6, 27461 }, - { 0x238B, 27463 }, - { 0x2022, 27468 }, - { 0x2219, 27469 }, - { 0xB07F, 27471 }, - { 0x264B, 27473 }, - { 0x2104, 27474 }, - { 0x25D5, 27477 }, - { 0x29C3, 27485 }, - { 0x25D0, 27493 }, - { 0x25D2, 27498 }, - { 0x25D1, 27503 }, - { 0x29C2, 27508 }, - { 0x25D3, 27515 }, - { 0x25D4, 27520 }, - { 0x25CD, 27526 }, - { 0x29B5, 27530 }, - { 0x29BB, 27534 }, - { 0x29BA, 27538 }, - { 0x2A4C, 27550 }, - { 0x2A50, 27554 }, - { 0x2ACF, 27561 }, - { 0x2AD1, 27563 }, - { 0x2AD0, 27568 }, - { 0x2AD2, 27570 }, - { 0x2A4D, 27575 }, - { 0x26B0, 27579 }, - { 0x2CF9, 27580 }, - { 0x2CFC, 27585 }, - { 0x2CFA, 27590 }, - { 0x2CFB, 27596 }, - { 0x2CFE, 27602 }, - { 0x2C9F, 27605 }, - { 0x2CAB, 27609 }, - { 0x2C99, 27613 }, - { 0x2C9B, 27617 }, - { 0x2CA1, 27621 }, - { 0x2CA3, 27625 }, - { 0x2CA9, 27629 }, - { 0x03EF, 27633 }, - { 0x2C89, 27637 }, - { 0x03E5, 27641 }, - { 0x2CAD, 27645 }, - { 0x2C9D, 27649 }, - { 0x2CCF, 27653 }, - { 0x2CB5, 27659 }, - { 0x2CD9, 27665 }, - { 0x2CC7, 27671 }, - { 0x2CD5, 27677 }, - { 0x2CD3, 27683 }, - { 0x2CBF, 27689 }, - { 0x2CCD, 27695 }, - { 0x2CC5, 27701 }, - { 0x2CDB, 27707 }, - { 0x2CD7, 27713 }, - { 0x2CDF, 27719 }, - { 0x2CE1, 27725 }, - { 0x2CE3, 27731 }, - { 0x2CDD, 27737 }, - { 0x2CB1, 27743 }, - { 0x2CAF, 27747 }, - { 0x2C8B, 27751 }, - { 0x2CA7, 27755 }, - { 0x2C81, 27759 }, - { 0x2C8F, 27763 }, - { 0x03E9, 27767 }, - { 0x2C95, 27771 }, - { 0x03E7, 27775 }, - { 0x03E3, 27779 }, - { 0x2CA5, 27783 }, - { 0x2C83, 27787 }, - { 0x2C8D, 27791 }, - { 0x2C87, 27795 }, - { 0x2C85, 27799 }, - { 0x2C93, 27803 }, - { 0x2C97, 27807 }, - { 0x2CC1, 27811 }, - { 0x03ED, 27815 }, - { 0x03EB, 27819 }, - { 0x2C91, 27823 }, - { 0x2CC3, 27827 }, - { 0x2CC9, 27832 }, - { 0x2CD1, 27837 }, - { 0x2CBB, 27842 }, - { 0x2CB3, 27847 }, - { 0x2CCB, 27852 }, - { 0x2CB9, 27857 }, - { 0x2CBD, 27862 }, - { 0x2CB7, 27867 }, - { 0x2CE5, 27872 }, - { 0x2CE6, 27876 }, - { 0x2CE4, 27880 }, - { 0x2CE9, 27883 }, - { 0x2CE8, 27887 }, - { 0x2CEA, 27891 }, - { 0x2CE7, 27895 }, - { 0x2C9E, 27898 }, - { 0x2CAA, 27902 }, - { 0x2C98, 27906 }, - { 0x2C9A, 27910 }, - { 0x2CA0, 27914 }, - { 0x2CA2, 27918 }, - { 0x2CA8, 27922 }, - { 0x03EE, 27926 }, - { 0x2C88, 27930 }, - { 0x03E4, 27934 }, - { 0x2CAC, 27938 }, - { 0x2C9C, 27942 }, - { 0x2CCE, 27946 }, - { 0x2CB4, 27952 }, - { 0x2CD8, 27958 }, - { 0x2CC6, 27964 }, - { 0x2CD4, 27970 }, - { 0x2CD2, 27976 }, - { 0x2CBE, 27982 }, - { 0x2CCC, 27988 }, - { 0x2CC4, 27994 }, - { 0x2CDA, 28000 }, - { 0x2CD6, 28006 }, - { 0x2CDE, 28012 }, - { 0x2CE0, 28018 }, - { 0x2CE2, 28024 }, - { 0x2CDC, 28030 }, - { 0x2CB0, 28036 }, - { 0x2CAE, 28040 }, - { 0x2C8A, 28044 }, - { 0x2CA6, 28048 }, - { 0x2C80, 28052 }, - { 0x2C8E, 28056 }, - { 0x03E8, 28060 }, - { 0x2C94, 28064 }, - { 0x03E6, 28068 }, - { 0x03E2, 28072 }, - { 0x2CA4, 28076 }, - { 0x2C82, 28080 }, - { 0x2C8C, 28084 }, - { 0x2C86, 28088 }, - { 0x2C84, 28092 }, - { 0x2C92, 28096 }, - { 0x2C96, 28100 }, - { 0x2CC0, 28104 }, - { 0x03EC, 28108 }, - { 0x03EA, 28112 }, - { 0x2C90, 28116 }, - { 0x2CC2, 28120 }, - { 0x2CC8, 28125 }, - { 0x2CD0, 28130 }, - { 0x2CBA, 28135 }, - { 0x2CB2, 28140 }, - { 0x2CCA, 28145 }, - { 0x2CB8, 28150 }, - { 0x2CBC, 28155 }, - { 0x2CB6, 28160 }, - { 0x2CFD, 28165 }, - { 0x2CFF, 28169 }, - { 0x2761, 28172 }, - { 0x2020, 28177 }, - { 0x6E4D, 28178 }, - { 0x6E49, 28181 }, - { 0x279F, 28183 }, - { 0x00B0, 28187 }, - { 0x2103, 28189 }, - { 0x2109, 28191 }, - { 0x9305, 28193 }, - { 0x9302, 28196 }, - { 0x268D, 28200 }, - { 0x268E, 28204 }, - { 0x9304, 28208 }, - { 0x9303, 28212 }, - { 0x268F, 28216 }, - { 0x268C, 28220 }, - { 0x9301, 28224 }, - { 0x2393, 28228 }, - { 0x0024, 28233 }, - { 0x205C, 28235 }, - { 0x2999, 28237 }, - { 0x25CC, 28239 }, - { 0x2E13, 28241 }, - { 0x2B1A, 28243 }, - { 0x2E08, 28245 }, - { 0x2E16, 28248 }, - { 0x2AEB, 28251 }, - { 0x2017, 28254 }, - { 0x2AEA, 28257 }, - { 0x2995, 28260 }, - { 0x29FA, 28265 }, - { 0x6E4C, 28267 }, - { 0x02DD, 28270 }, - { 0x2A74, 28273 }, - { 0x201E, 28276 }, - { 0x2033, 28280 }, - { 0x301E, 28282 }, - { 0x2996, 28286 }, - { 0x22D3, 28291 }, - { 0x2021, 28293 }, - { 0x2AA1, 28295 }, - { 0x2AA3, 28298 }, - { 0x2AA2, 28303 }, - { 0x2A4F, 28306 }, - { 0x2A4E, 28309 }, - { 0x2AEC, 28312 }, - { 0x22D0, 28316 }, - { 0x24F5, 28318 }, - { 0x24FA, 28322 }, - { 0x24F6, 28326 }, - { 0x24F9, 28330 }, - { 0x24F8, 28334 }, - { 0x24FD, 28338 }, - { 0x24FC, 28342 }, - { 0x24FB, 28346 }, - { 0x24F7, 28350 }, - { 0x24FE, 28354 }, - { 0x2A54, 28358 }, - { 0x2A53, 28361 }, - { 0x2E17, 28364 }, - { 0x2AFD, 28367 }, - { 0x222C, 28370 }, - { 0x2ABB, 28372 }, - { 0x2047, 28374 }, - { 0x2ABC, 28377 }, - { 0x22D1, 28379 }, - { 0x2AE3, 28381 }, - { 0x2AE5, 28386 }, - { 0x22AB, 28392 }, - { 0x2016, 28398 }, - { 0x203C, 28401 }, - { 0x22D2, 28404 }, - { 0x201F, 28406 }, - { 0x266A, 28410 }, - { 0x003D, 28412 }, - { 0x29E3, 28414 }, - { 0x29E4, 28419 }, - { 0x2A66, 28427 }, - { 0x2A77, 28432 }, - { 0x2AAE, 28442 }, - { 0x2A71, 28447 }, - { 0x2A73, 28452 }, - { 0x2971, 28457 }, - { 0x2A6E, 28462 }, - { 0x2255, 28465 }, - { 0x2239, 28467 }, - { 0x2640, 28468 }, - { 0x2012, 28470 }, - { 0x2007, 28472 }, - { 0x2A0D, 28474 }, - { 0x2766, 28477 }, - { 0x2698, 28479 }, - { 0x2055, 28480 }, - { 0x22A9, 28483 }, - { 0x2E10, 28484 }, - { 0x221C, 28486 }, - { 0x20A3, 28488 }, - { 0x264A, 28491 }, - { 0x20B0, 28492 }, - { 0x29E6, 28495 }, - { 0x7339, 28497 }, - { 0x733E, 28500 }, - { 0x7330, 28503 }, - { 0x7333, 28506 }, - { 0x7332, 28509 }, - { 0x7337, 28512 }, - { 0x7336, 28515 }, - { 0x734A, 28518 }, - { 0x733F, 28522 }, - { 0x7346, 28525 }, - { 0x7348, 28528 }, - { 0x7347, 28531 }, - { 0x733A, 28534 }, - { 0x733B, 28537 }, - { 0x733C, 28540 }, - { 0x7349, 28543 }, - { 0x7342, 28546 }, - { 0x7343, 28549 }, - { 0x7344, 28552 }, - { 0x7345, 28555 }, - { 0x7334, 28558 }, - { 0x733D, 28561 }, - { 0x7341, 28564 }, - { 0x7338, 28567 }, - { 0x7331, 28570 }, - { 0x7340, 28573 }, - { 0x7335, 28576 }, - { 0x2692, 28579 }, - { 0x262D, 28582 }, - { 0x302F, 28585 }, - { 0x3164, 28590 }, - { 0x314F, 28592 }, - { 0x3154, 28595 }, - { 0x3163, 28598 }, - { 0x3157, 28601 }, - { 0x315C, 28604 }, - { 0x3150, 28607 }, - { 0x3153, 28610 }, - { 0x3161, 28613 }, - { 0x315A, 28616 }, - { 0x3158, 28619 }, - { 0x315E, 28622 }, - { 0x315F, 28625 }, - { 0x3151, 28628 }, - { 0x3156, 28631 }, - { 0x3162, 28634 }, - { 0x315B, 28637 }, - { 0x3160, 28640 }, - { 0x3159, 28643 }, - { 0x315D, 28646 }, - { 0x3152, 28649 }, - { 0x3155, 28652 }, - { 0x3145, 28655 }, - { 0x3189, 28658 }, - { 0x318C, 28661 }, - { 0x318D, 28664 }, - { 0x3148, 28667 }, - { 0x314E, 28670 }, - { 0x3147, 28673 }, - { 0x3141, 28676 }, - { 0x3134, 28679 }, - { 0x3142, 28682 }, - { 0x3139, 28685 }, - { 0x3187, 28688 }, - { 0x318B, 28691 }, - { 0x318E, 28694 }, - { 0x3131, 28697 }, - { 0x3137, 28700 }, - { 0x3188, 28703 }, - { 0x318A, 28706 }, - { 0x314A, 28709 }, - { 0x314B, 28712 }, - { 0x317F, 28715 }, - { 0x314D, 28718 }, - { 0x314C, 28721 }, - { 0x3181, 28724 }, - { 0x3146, 28727 }, - { 0x316F, 28730 }, - { 0x3167, 28733 }, - { 0x3144, 28736 }, - { 0x313D, 28739 }, - { 0x317E, 28742 }, - { 0x317B, 28745 }, - { 0x317D, 28748 }, - { 0x3149, 28751 }, - { 0x3185, 28754 }, - { 0x3180, 28757 }, - { 0x3165, 28760 }, - { 0x3143, 28763 }, - { 0x3133, 28766 }, - { 0x316E, 28769 }, - { 0x3135, 28772 }, - { 0x3136, 28775 }, - { 0x3176, 28778 }, - { 0x3140, 28781 }, - { 0x313B, 28784 }, - { 0x313C, 28787 }, - { 0x317A, 28790 }, - { 0x317C, 28793 }, - { 0x3132, 28796 }, - { 0x3138, 28799 }, - { 0x3186, 28802 }, - { 0x3166, 28805 }, - { 0x3172, 28808 }, - { 0x3173, 28811 }, - { 0x313A, 28814 }, - { 0x316A, 28817 }, - { 0x3171, 28820 }, - { 0x3178, 28823 }, - { 0x3170, 28826 }, - { 0x3168, 28829 }, - { 0x3177, 28832 }, - { 0x316C, 28835 }, - { 0x313F, 28838 }, - { 0x313E, 28841 }, - { 0x3182, 28844 }, - { 0x3184, 28847 }, - { 0x316B, 28850 }, - { 0x3183, 28853 }, - { 0x3174, 28856 }, - { 0x3175, 28859 }, - { 0x3169, 28862 }, - { 0x316D, 28865 }, - { 0x3179, 28868 }, - { 0x302E, 28871 }, - { 0x1109, 28876 }, - { 0x110C, 28879 }, - { 0x1112, 28882 }, - { 0x110B, 28885 }, - { 0x1106, 28888 }, - { 0x1102, 28891 }, - { 0x1107, 28894 }, - { 0x1105, 28897 }, - { 0x115F, 28900 }, - { 0x1100, 28903 }, - { 0x1103, 28906 }, - { 0x110E, 28909 }, - { 0x110F, 28912 }, - { 0x1140, 28915 }, - { 0x1111, 28918 }, - { 0x1110, 28921 }, - { 0x114C, 28924 }, - { 0x110A, 28927 }, - { 0x1145, 28930 }, - { 0x1121, 28933 }, - { 0x1136, 28936 }, - { 0x113B, 28939 }, - { 0x1135, 28942 }, - { 0x1131, 28945 }, - { 0x112E, 28948 }, - { 0x1132, 28951 }, - { 0x1130, 28954 }, - { 0x110D, 28957 }, - { 0x1158, 28960 }, - { 0x1147, 28963 }, - { 0x1114, 28966 }, - { 0x1108, 28969 }, - { 0x1119, 28972 }, - { 0x114D, 28975 }, - { 0x1148, 28978 }, - { 0x1143, 28981 }, - { 0x1144, 28984 }, - { 0x111C, 28987 }, - { 0x1116, 28990 }, - { 0x1127, 28993 }, - { 0x111F, 28996 }, - { 0x111A, 28999 }, - { 0x1118, 29002 }, - { 0x112D, 29005 }, - { 0x112F, 29008 }, - { 0x1101, 29011 }, - { 0x1104, 29014 }, - { 0x1159, 29017 }, - { 0x113C, 29020 }, - { 0x1141, 29023 }, - { 0x1142, 29026 }, - { 0x1113, 29029 }, - { 0x1115, 29032 }, - { 0x111E, 29035 }, - { 0x1120, 29038 }, - { 0x1137, 29041 }, - { 0x1138, 29044 }, - { 0x113A, 29047 }, - { 0x1139, 29050 }, - { 0x1153, 29053 }, - { 0x114E, 29056 }, - { 0x1149, 29059 }, - { 0x1146, 29062 }, - { 0x114B, 29065 }, - { 0x114A, 29068 }, - { 0x111D, 29071 }, - { 0x112B, 29074 }, - { 0x111B, 29077 }, - { 0x1156, 29080 }, - { 0x1128, 29083 }, - { 0x112A, 29086 }, - { 0x1129, 29089 }, - { 0x1117, 29092 }, - { 0x1134, 29095 }, - { 0x113E, 29098 }, - { 0x1152, 29101 }, - { 0x1154, 29104 }, - { 0x1157, 29107 }, - { 0x1125, 29110 }, - { 0x1150, 29113 }, - { 0x1126, 29116 }, - { 0x1124, 29119 }, - { 0x113D, 29122 }, - { 0x1122, 29125 }, - { 0x1123, 29128 }, - { 0x1133, 29131 }, - { 0x1155, 29134 }, - { 0x114F, 29137 }, - { 0x112C, 29140 }, - { 0x113F, 29143 }, - { 0x1151, 29146 }, - { 0x11BA, 29149 }, - { 0x11BD, 29152 }, - { 0x11C2, 29155 }, - { 0x11BC, 29158 }, - { 0x11B7, 29161 }, - { 0x11AB, 29164 }, - { 0x11B8, 29167 }, - { 0x11AF, 29170 }, - { 0x11A8, 29173 }, - { 0x11AE, 29176 }, - { 0x11BE, 29179 }, - { 0x11BF, 29182 }, - { 0x11EB, 29185 }, - { 0x11C1, 29188 }, - { 0x11C0, 29191 }, - { 0x11F0, 29194 }, - { 0x11BB, 29197 }, - { 0x11DD, 29200 }, - { 0x11C7, 29203 }, - { 0x11B9, 29206 }, - { 0x11B3, 29209 }, - { 0x11EA, 29212 }, - { 0x11E9, 29215 }, - { 0x11EE, 29218 }, - { 0x11D0, 29221 }, - { 0x11F7, 29224 }, - { 0x11F5, 29227 }, - { 0x11F8, 29230 }, - { 0x11F6, 29233 }, - { 0x11AA, 29236 }, - { 0x11E1, 29239 }, - { 0x11DC, 29242 }, - { 0x11DB, 29245 }, - { 0x11AC, 29248 }, - { 0x11AD, 29251 }, - { 0x11E5, 29254 }, - { 0x11E3, 29257 }, - { 0x11B6, 29260 }, - { 0x11B1, 29263 }, - { 0x11CD, 29266 }, - { 0x11B2, 29269 }, - { 0x11E7, 29272 }, - { 0x11E8, 29275 }, - { 0x11A9, 29278 }, - { 0x11F9, 29281 }, - { 0x11EC, 29284 }, - { 0x11C3, 29287 }, - { 0x11DA, 29290 }, - { 0x11C5, 29293 }, - { 0x11C6, 29296 }, - { 0x11B0, 29299 }, - { 0x11CE, 29302 }, - { 0x11CB, 29305 }, - { 0x11EF, 29308 }, - { 0x11E2, 29311 }, - { 0x11E6, 29314 }, - { 0x11E0, 29317 }, - { 0x11DF, 29320 }, - { 0x11C8, 29323 }, - { 0x11C9, 29326 }, - { 0x11F3, 29329 }, - { 0x11E4, 29332 }, - { 0x11D8, 29335 }, - { 0x11D7, 29338 }, - { 0x11B5, 29341 }, - { 0x11B4, 29344 }, - { 0x11CA, 29347 }, - { 0x11F1, 29350 }, - { 0x11F4, 29353 }, - { 0x11DE, 29356 }, - { 0x11D6, 29359 }, - { 0x11D2, 29362 }, - { 0x11D3, 29365 }, - { 0x11F2, 29368 }, - { 0x11ED, 29371 }, - { 0x11CC, 29374 }, - { 0x11D4, 29377 }, - { 0x11D9, 29380 }, - { 0x11C4, 29383 }, - { 0x11D1, 29386 }, - { 0x11CF, 29389 }, - { 0x11D5, 29392 }, - { 0x1161, 29395 }, - { 0x1166, 29398 }, - { 0x1175, 29401 }, - { 0x1169, 29404 }, - { 0x116E, 29407 }, - { 0x1162, 29410 }, - { 0x1165, 29413 }, - { 0x1173, 29416 }, - { 0x116C, 29419 }, - { 0x116A, 29422 }, - { 0x1170, 29425 }, - { 0x1171, 29428 }, - { 0x1163, 29431 }, - { 0x1168, 29434 }, - { 0x1174, 29437 }, - { 0x116D, 29440 }, - { 0x1172, 29443 }, - { 0x1176, 29446 }, - { 0x1177, 29449 }, - { 0x1198, 29452 }, - { 0x119A, 29455 }, - { 0x119B, 29458 }, - { 0x1180, 29461 }, - { 0x1182, 29464 }, - { 0x1183, 29467 }, - { 0x1189, 29470 }, - { 0x118D, 29473 }, - { 0x116B, 29476 }, - { 0x116F, 29479 }, - { 0x1164, 29482 }, - { 0x1167, 29485 }, - { 0x117A, 29488 }, - { 0x117B, 29491 }, - { 0x1195, 29494 }, - { 0x119C, 29497 }, - { 0x1199, 29500 }, - { 0x117F, 29503 }, - { 0x1181, 29506 }, - { 0x118A, 29509 }, - { 0x118C, 29512 }, - { 0x1178, 29515 }, - { 0x1197, 29518 }, - { 0x1188, 29521 }, - { 0x1187, 29524 }, - { 0x118E, 29527 }, - { 0x1190, 29530 }, - { 0x1194, 29533 }, - { 0x1193, 29536 }, - { 0x119E, 29539 }, - { 0x117C, 29542 }, - { 0x1196, 29545 }, - { 0x1179, 29548 }, - { 0x117D, 29551 }, - { 0x117E, 29554 }, - { 0x1184, 29557 }, - { 0x118F, 29560 }, - { 0x1192, 29563 }, - { 0x1160, 29566 }, - { 0x1185, 29569 }, - { 0x1186, 29572 }, - { 0x1191, 29575 }, - { 0x11A1, 29578 }, - { 0x11A0, 29581 }, - { 0x119D, 29584 }, - { 0x118B, 29587 }, - { 0x119F, 29590 }, - { 0x11A2, 29593 }, - { 0x05C5, 29596 }, - { 0x05C4, 29600 }, - { 0x05AF, 29604 }, - { 0x05C2, 29608 }, - { 0x05BF, 29612 }, - { 0x05C1, 29615 }, - { 0x05B2, 29619 }, - { 0x05B1, 29623 }, - { 0x05B3, 29627 }, - { 0x05B4, 29631 }, - { 0x05B9, 29634 }, - { 0x05BA, 29637 }, - { 0x05BD, 29643 }, - { 0x05B7, 29646 }, - { 0x05B6, 29649 }, - { 0x05B0, 29652 }, - { 0x05B5, 29655 }, - { 0x05BC, 29658 }, - { 0x05B8, 29663 }, - { 0x05C7, 29666 }, - { 0x05BB, 29670 }, - { 0x6B1E, 29673 }, - { 0x05AB, 29677 }, - { 0x05AD, 29680 }, - { 0x05AC, 29683 }, - { 0x05A2, 29686 }, - { 0x05A7, 29690 }, - { 0x05A3, 29693 }, - { 0x05A1, 29696 }, - { 0x05A8, 29699 }, - { 0x0597, 29702 }, - { 0x0592, 29705 }, - { 0x059B, 29708 }, - { 0x05AA, 29711 }, - { 0x059A, 29716 }, - { 0x0595, 29719 }, - { 0x0594, 29723 }, - { 0x0598, 29727 }, - { 0x05AE, 29730 }, - { 0x059C, 29733 }, - { 0x059D, 29736 }, - { 0x05A5, 29740 }, - { 0x05A6, 29743 }, - { 0x0599, 29747 }, - { 0x059F, 29750 }, - { 0x0596, 29754 }, - { 0x0591, 29757 }, - { 0x05A0, 29760 }, - { 0x05A9, 29764 }, - { 0x05A4, 29768 }, - { 0x059E, 29771 }, - { 0x0593, 29774 }, - { 0x05D4, 29777 }, - { 0x6B34, 29780 }, - { 0x05E4, 29785 }, - { 0x6B4E, 29788 }, - { 0x6B44, 29793 }, - { 0x05D1, 29798 }, - { 0x6B4C, 29801 }, - { 0x6B31, 29806 }, - { 0x05D7, 29811 }, - { 0x05DB, 29814 }, - { 0x6B4D, 29817 }, - { 0x6B3B, 29822 }, - { 0x05DE, 29827 }, - { 0x6B3E, 29830 }, - { 0x05E0, 29835 }, - { 0x6B40, 29838 }, - { 0x05E7, 29843 }, - { 0x6B47, 29846 }, - { 0x05EA, 29851 }, - { 0x6B4A, 29854 }, - { 0x05D8, 29859 }, - { 0x6B38, 29862 }, - { 0x05D5, 29867 }, - { 0x6B4B, 29870 }, - { 0x6B35, 29875 }, - { 0x05D9, 29880 }, - { 0x6B1D, 29883 }, - { 0x6B39, 29888 }, - { 0x05D0, 29893 }, - { 0x6B30, 29896 }, - { 0x6B2E, 29901 }, - { 0x6B2F, 29906 }, - { 0x05E2, 29911 }, - { 0x05E8, 29914 }, - { 0x6B48, 29917 }, - { 0x05E9, 29922 }, - { 0x6B2B, 29925 }, - { 0x6B2A, 29931 }, - { 0x6B49, 29937 }, - { 0x6B2D, 29942 }, - { 0x6B2C, 29950 }, - { 0x6B23, 29958 }, - { 0x6B24, 29962 }, - { 0x6B28, 29966 }, - { 0x6B21, 29970 }, - { 0x6B27, 29974 }, - { 0x6B22, 29978 }, - { 0x6B26, 29982 }, - { 0x6B25, 29987 }, - { 0x05D3, 29991 }, - { 0x6B33, 29994 }, - { 0x05E3, 29999 }, - { 0x6B43, 30003 }, - { 0x05DA, 30009 }, - { 0x6B3A, 30013 }, - { 0x05DD, 30019 }, - { 0x05DF, 30023 }, - { 0x05E5, 30027 }, - { 0x05D2, 30031 }, - { 0x6B32, 30034 }, - { 0x05DC, 30039 }, - { 0x6B3C, 30042 }, - { 0x05E6, 30047 }, - { 0x6B46, 30050 }, - { 0x05D6, 30055 }, - { 0x6B36, 30058 }, - { 0x05E1, 30063 }, - { 0x6B41, 30066 }, - { 0x6B20, 30071 }, - { 0x6B29, 30075 }, - { 0x6B4F, 30080 }, - { 0x05F1, 30084 }, - { 0x6B1F, 30089 }, - { 0x05F0, 30095 }, - { 0x05F2, 30100 }, - { 0x05C6, 30105 }, - { 0x05C3, 30109 }, - { 0x05BE, 30113 }, - { 0x05C0, 30116 }, - { 0x05F3, 30119 }, - { 0x05F4, 30122 }, - { 0x2010, 30125 }, - { 0x2043, 30126 }, - { 0x2F4F, 30128 }, - { 0x2F21, 30132 }, - { 0x2F22, 30135 }, - { 0x2F7D, 30139 }, - { 0x2F44, 30142 }, - { 0x2F24, 30145 }, - { 0x2F38, 30148 }, - { 0x2F5C, 30151 }, - { 0x2F5D, 30154 }, - { 0x2F02, 30157 }, - { 0x2F32, 30160 }, - { 0x2F7F, 30163 }, - { 0x2FB7, 30166 }, - { 0x2F6C, 30169 }, - { 0x2FB6, 30172 }, - { 0x2F51, 30175 }, - { 0x2F0E, 30178 }, - { 0x2F78, 30181 }, - { 0x2F07, 30184 }, - { 0x2F08, 30187 }, - { 0x2F79, 30190 }, - { 0x2F46, 30193 }, - { 0x2F7C, 30196 }, - { 0x2F00, 30199 }, - { 0x2F97, 30202 }, - { 0x2F41, 30205 }, - { 0x2FCF, 30208 }, - { 0x2F9A, 30211 }, - { 0x2F9B, 30214 }, - { 0x2F48, 30217 }, - { 0x2F92, 30220 }, - { 0x2F47, 30223 }, - { 0x2F17, 30226 }, - { 0x2F06, 30229 }, - { 0x2F36, 30232 }, - { 0x2F64, 30236 }, - { 0x2F96, 30239 }, - { 0x2FC3, 30242 }, - { 0x2FAD, 30245 }, - { 0x2F88, 30248 }, - { 0x2F9D, 30251 }, - { 0x2F66, 30254 }, - { 0x2FBB, 30259 }, - { 0x2F9E, 30262 }, - { 0x2F73, 30265 }, - { 0x2FA2, 30268 }, - { 0x2F52, 30271 }, - { 0x2F56, 30274 }, - { 0x2FC5, 30277 }, - { 0x2F6B, 30280 }, - { 0x2F3E, 30283 }, - { 0x2F0C, 30286 }, - { 0x2FCE, 30290 }, - { 0x2FD1, 30293 }, - { 0x2FAF, 30296 }, - { 0x2F5B, 30299 }, - { 0x2F55, 30302 }, - { 0x2FC2, 30305 }, - { 0x2F9C, 30308 }, - { 0x2FCC, 30311 }, - { 0x2FA8, 30314 }, - { 0x2FA6, 30317 }, - { 0x2FBD, 30320 }, - { 0x2F59, 30323 }, - { 0x2F3F, 30328 }, - { 0x2FB8, 30331 }, - { 0x2FC7, 30334 }, - { 0x2F05, 30337 }, - { 0x2F93, 30340 }, - { 0x2F28, 30343 }, - { 0x2F5F, 30346 }, - { 0x2F4B, 30349 }, - { 0x2F2A, 30352 }, - { 0x2FB4, 30355 }, - { 0x2FB2, 30358 }, - { 0x2F09, 30361 }, - { 0x2F63, 30364 }, - { 0x2F01, 30367 }, - { 0x2FA7, 30370 }, - { 0x2F35, 30373 }, - { 0x2F81, 30377 }, - { 0x2F49, 30380 }, - { 0x2FD0, 30383 }, - { 0x2F10, 30386 }, - { 0x2F7E, 30390 }, - { 0x2FAC, 30393 }, - { 0x2F76, 30396 }, - { 0x2F27, 30399 }, - { 0x2FC4, 30402 }, - { 0x2F19, 30405 }, - { 0x2F83, 30408 }, - { 0x2F77, 30411 }, - { 0x2F6A, 30414 }, - { 0x2F3B, 30417 }, - { 0x2F4C, 30420 }, - { 0x2FBC, 30423 }, - { 0x2F61, 30426 }, - { 0x2F4A, 30429 }, - { 0x2FA1, 30432 }, - { 0x2F8F, 30435 }, - { 0x2F91, 30439 }, - { 0x2FB5, 30442 }, - { 0x2FA3, 30445 }, - { 0x2F2F, 30448 }, - { 0x2F13, 30451 }, - { 0x2F1C, 30454 }, - { 0x2F6E, 30457 }, - { 0x2FCA, 30460 }, - { 0x2F8E, 30463 }, - { 0x2F80, 30466 }, - { 0x2F26, 30469 }, - { 0x2F1A, 30472 }, - { 0x2F8A, 30475 }, - { 0x2F0D, 30478 }, - { 0x2F4D, 30481 }, - { 0x2F1F, 30484 }, - { 0x2F0B, 30487 }, - { 0x2F0A, 30490 }, - { 0x2F65, 30493 }, - { 0x2FBE, 30496 }, - { 0x2FD5, 30499 }, - { 0x2FC1, 30502 }, - { 0x2F72, 30505 }, - { 0x2F8B, 30508 }, - { 0x2F3C, 30511 }, - { 0x2FBA, 30514 }, - { 0x2F11, 30517 }, - { 0x2F60, 30520 }, - { 0x2FA9, 30523 }, - { 0x2F1D, 30526 }, - { 0x2F12, 30529 }, - { 0x2F15, 30532 }, - { 0x2F2E, 30537 }, - { 0x2F7A, 30540 }, - { 0x2F99, 30543 }, - { 0x2F37, 30546 }, - { 0x2FAB, 30549 }, - { 0x2F33, 30554 }, - { 0x2F03, 30558 }, - { 0x2FAA, 30561 }, - { 0x2F5A, 30564 }, - { 0x2F29, 30567 }, - { 0x2F39, 30570 }, - { 0x2FB3, 30573 }, - { 0x2F6D, 30576 }, - { 0x2F14, 30579 }, - { 0x2F74, 30582 }, - { 0x2F53, 30585 }, - { 0x2F6F, 30588 }, - { 0x2F62, 30591 }, - { 0x2F0F, 30594 }, - { 0x2F8C, 30597 }, - { 0x2FD2, 30600 }, - { 0x2F71, 30603 }, - { 0x2F54, 30606 }, - { 0x2FC6, 30609 }, - { 0x2F69, 30612 }, - { 0x2F25, 30615 }, - { 0x2FAE, 30618 }, - { 0x2F84, 30621 }, - { 0x2F98, 30624 }, - { 0x2F75, 30627 }, - { 0x2F9F, 30630 }, - { 0x2F40, 30633 }, - { 0x2F2B, 30636 }, - { 0x2F43, 30639 }, - { 0x2F68, 30642 }, - { 0x2F34, 30646 }, - { 0x2F58, 30650 }, - { 0x2FD3, 30654 }, - { 0x2F57, 30657 }, - { 0x2F16, 30660 }, - { 0x2F8D, 30664 }, - { 0x2FC9, 30667 }, - { 0x2F85, 30670 }, - { 0x2F87, 30673 }, - { 0x2F42, 30676 }, - { 0x2F04, 30679 }, - { 0x2F94, 30682 }, - { 0x2F70, 30685 }, - { 0x2F2C, 30688 }, - { 0x2F45, 30691 }, - { 0x2FB1, 30694 }, - { 0x2F86, 30698 }, - { 0x2FCD, 30701 }, - { 0x2F31, 30704 }, - { 0x2FD4, 30707 }, - { 0x2F95, 30710 }, - { 0x2F4E, 30713 }, - { 0x2FC8, 30716 }, - { 0x2F3A, 30719 }, - { 0x2F90, 30722 }, - { 0x2F50, 30725 }, - { 0x2F23, 30728 }, - { 0x2F7B, 30731 }, - { 0x2F3D, 30734 }, - { 0x2FB0, 30737 }, - { 0x2FA0, 30740 }, - { 0x2F30, 30743 }, - { 0x2F1B, 30746 }, - { 0x2F20, 30749 }, - { 0x2FA5, 30752 }, - { 0x2FC0, 30755 }, - { 0x2FB9, 30758 }, - { 0x2F82, 30761 }, - { 0x2F2D, 30764 }, - { 0x2F5E, 30767 }, - { 0x2F67, 30770 }, - { 0x2F89, 30773 }, - { 0x2F1E, 30776 }, - { 0x2F18, 30779 }, - { 0x2FCB, 30782 }, - { 0x2FA4, 30785 }, - { 0x2FBF, 30788 }, - { 0x212A, 30792 }, - { 0x327F, 30794 }, - { 0x2AAB, 30797 }, - { 0x2AAD, 30799 }, - { 0x7050, 30804 }, - { 0x7051, 30808 }, - { 0x7052, 30812 }, - { 0x7053, 30816 }, - { 0x7054, 30820 }, - { 0x7055, 30824 }, - { 0x7056, 30828 }, - { 0x7057, 30832 }, - { 0x7058, 30836 }, - { 0x7059, 30840 }, - { 0x705A, 30844 }, - { 0x705B, 30848 }, - { 0x705C, 30852 }, - { 0x705D, 30856 }, - { 0x7080, 30860 }, - { 0x7081, 30865 }, - { 0x7082, 30870 }, - { 0x7083, 30875 }, - { 0x708E, 30880 }, - { 0x708F, 30885 }, - { 0x7090, 30890 }, - { 0x7091, 30895 }, - { 0x7092, 30900 }, - { 0x7095, 30905 }, - { 0x7096, 30910 }, - { 0x7097, 30915 }, - { 0x709A, 30919 }, - { 0x709B, 30924 }, - { 0x709C, 30929 }, - { 0x709D, 30933 }, - { 0x709E, 30938 }, - { 0x709F, 30942 }, - { 0x70A0, 30946 }, - { 0x70A1, 30951 }, - { 0x70A2, 30955 }, - { 0x70A3, 30959 }, - { 0x70A5, 30963 }, - { 0x70A6, 30967 }, - { 0x70A7, 30971 }, - { 0x70A8, 30976 }, - { 0x70A9, 30980 }, - { 0x70AA, 30984 }, - { 0x70AB, 30989 }, - { 0x70AC, 30994 }, - { 0x70AD, 30998 }, - { 0x70AE, 31002 }, - { 0x70AF, 31006 }, - { 0x70B0, 31010 }, - { 0x70B1, 31014 }, - { 0x70B2, 31018 }, - { 0x70B3, 31022 }, - { 0x70B4, 31026 }, - { 0x70B5, 31030 }, - { 0x70B6, 31035 }, - { 0x70B7, 31039 }, - { 0x70B8, 31044 }, - { 0x70B9, 31048 }, - { 0x70BA, 31052 }, - { 0x70BB, 31056 }, - { 0x70BC, 31060 }, - { 0x70BD, 31064 }, - { 0x70BE, 31068 }, - { 0x70BF, 31072 }, - { 0x70C0, 31076 }, - { 0x70C1, 31080 }, - { 0x70C2, 31084 }, - { 0x70C3, 31088 }, - { 0x70C4, 31093 }, - { 0x70C5, 31098 }, - { 0x70C6, 31103 }, - { 0x70C7, 31108 }, - { 0x70C8, 31113 }, - { 0x70C9, 31117 }, - { 0x70CA, 31122 }, - { 0x70CB, 31126 }, - { 0x70CC, 31130 }, - { 0x70CD, 31136 }, - { 0x70CE, 31141 }, - { 0x70CF, 31147 }, - { 0x70D0, 31152 }, - { 0x70D1, 31156 }, - { 0x70D3, 31160 }, - { 0x70D4, 31164 }, - { 0x70D5, 31168 }, - { 0x70D6, 31172 }, - { 0x70D7, 31176 }, - { 0x70D8, 31180 }, - { 0x70D9, 31185 }, - { 0x70DA, 31189 }, - { 0x70DB, 31193 }, - { 0x70DC, 31197 }, - { 0x70DD, 31201 }, - { 0x7084, 31205 }, - { 0x7085, 31210 }, - { 0x7086, 31215 }, - { 0x7087, 31220 }, - { 0x7088, 31225 }, - { 0x7089, 31230 }, - { 0x708A, 31235 }, - { 0x708B, 31240 }, - { 0x708C, 31245 }, - { 0x708D, 31250 }, - { 0x70DE, 31255 }, - { 0x70DF, 31260 }, - { 0x70E0, 31265 }, - { 0x70E1, 31270 }, - { 0x70E2, 31275 }, - { 0x70E3, 31280 }, - { 0x70E4, 31285 }, - { 0x70E5, 31290 }, - { 0x70E6, 31295 }, - { 0x70E7, 31300 }, - { 0x70E8, 31305 }, - { 0x70E9, 31310 }, - { 0x70EA, 31315 }, - { 0x70EB, 31320 }, - { 0x70EC, 31325 }, - { 0x70ED, 31330 }, - { 0x70EE, 31335 }, - { 0x70EF, 31340 }, - { 0x70F0, 31345 }, - { 0x70F1, 31350 }, - { 0x70F2, 31355 }, - { 0x70F3, 31360 }, - { 0x70F4, 31365 }, - { 0x70F5, 31370 }, - { 0x70F6, 31375 }, - { 0x70F7, 31380 }, - { 0x70F8, 31385 }, - { 0x70F9, 31390 }, - { 0x70FA, 31395 }, - { 0x7093, 31400 }, - { 0x7094, 31405 }, - { 0x7098, 31410 }, - { 0x7099, 31415 }, - { 0x70A4, 31420 }, - { 0x70D2, 31425 }, - { 0x7005, 31430 }, - { 0x702B, 31435 }, - { 0x701E, 31440 }, - { 0x7033, 31445 }, - { 0x7035, 31450 }, - { 0x7019, 31455 }, - { 0x7007, 31460 }, - { 0x7000, 31465 }, - { 0x702E, 31470 }, - { 0x7004, 31475 }, - { 0x7021, 31480 }, - { 0x7030, 31485 }, - { 0x7015, 31490 }, - { 0x7008, 31495 }, - { 0x7017, 31500 }, - { 0x7023, 31505 }, - { 0x703C, 31510 }, - { 0x703F, 31515 }, - { 0x7025, 31520 }, - { 0x7018, 31525 }, - { 0x701A, 31530 }, - { 0x7040, 31535 }, - { 0x702C, 31540 }, - { 0x7029, 31545 }, - { 0x7002, 31550 }, - { 0x7046, 31555 }, - { 0x701B, 31560 }, - { 0x702D, 31565 }, - { 0x7026, 31570 }, - { 0x7049, 31575 }, - { 0x700D, 31580 }, - { 0x7034, 31585 }, - { 0x7001, 31590 }, - { 0x7020, 31595 }, - { 0x7039, 31600 }, - { 0x702F, 31605 }, - { 0x703A, 31610 }, - { 0x7041, 31615 }, - { 0x7010, 31620 }, - { 0x7006, 31625 }, - { 0x700B, 31630 }, - { 0x7045, 31635 }, - { 0x7022, 31640 }, - { 0x7009, 31645 }, - { 0x701C, 31650 }, - { 0x702A, 31655 }, - { 0x7037, 31660 }, - { 0x701D, 31665 }, - { 0x700A, 31670 }, - { 0x7031, 31675 }, - { 0x7032, 31680 }, - { 0x7028, 31685 }, - { 0x7003, 31690 }, - { 0x7047, 31695 }, - { 0x700E, 31700 }, - { 0x704B, 31705 }, - { 0x7011, 31710 }, - { 0x704A, 31715 }, - { 0x7036, 31720 }, - { 0x7012, 31725 }, - { 0x7043, 31730 }, - { 0x701F, 31735 }, - { 0x7016, 31740 }, - { 0x703D, 31745 }, - { 0x7038, 31750 }, - { 0x7048, 31755 }, - { 0x700F, 31760 }, - { 0x7024, 31765 }, - { 0x7014, 31770 }, - { 0x7013, 31775 }, - { 0x7042, 31780 }, - { 0x704C, 31785 }, - { 0x7044, 31790 }, - { 0x704D, 31795 }, - { 0x00AF, 31800 }, - { 0x2774, 31801 }, - { 0x2768, 31806 }, - { 0x26AB, 31810 }, - { 0x2775, 31813 }, - { 0x2769, 31818 }, - { 0x2592, 31822 }, - { 0x26AC, 31824 }, - { 0x26AA, 31828 }, - { 0x2759, 31831 }, - { 0x276A, 31834 }, - { 0x276B, 31839 }, - { 0x205F, 31844 }, - { 0x276C, 31847 }, - { 0x276D, 31852 }, - { 0x00B7, 31857 }, - { 0x22A7, 31859 }, - { 0x2A0A, 31860 }, - { 0x202F, 31863 }, - { 0x26B2, 31866 }, - { 0x22B2, 31867 }, - { 0x22B4, 31870 }, - { 0x2491, 31876 }, - { 0x0023, 31880 }, - { 0x2492, 31882 }, - { 0x2493, 31886 }, - { 0x249B, 31890 }, - { 0x2496, 31894 }, - { 0x2497, 31898 }, - { 0x2499, 31902 }, - { 0x2495, 31906 }, - { 0x249A, 31910 }, - { 0x2494, 31914 }, - { 0x2498, 31918 }, - { 0x2116, 31922 }, - { 0x6FFC, 31924 }, - { 0x02DB, 31927 }, - { 0x2325, 31928 }, - { 0x6D3E, 31930 }, - { 0x6D3F, 31933 }, - { 0x270F, 31936 }, - { 0x20A7, 31937 }, - { 0x2653, 31939 }, - { 0x210E, 31940 }, - { 0x210F, 31942 }, - { 0x3012, 31947 }, - { 0x3020, 31949 }, - { 0x2E07, 31952 }, - { 0x2E0B, 31956 }, - { 0x2E06, 31958 }, - { 0x23CE, 31961 }, - { 0x2930, 31963 }, - { 0x292B, 31969 }, - { 0x2644, 31974 }, - { 0x2696, 31975 }, - { 0x212F, 31976 }, - { 0x210A, 31979 }, - { 0x2113, 31982 }, - { 0x2134, 31985 }, - { 0x212C, 31988 }, - { 0x2130, 31991 }, - { 0x2131, 31994 }, - { 0x210B, 31997 }, - { 0x2110, 32000 }, - { 0x2112, 32003 }, - { 0x2133, 32006 }, - { 0x2118, 32009 }, - { 0x211B, 32012 }, - { 0x2314, 32015 }, - { 0x6E45, 32016 }, - { 0x201A, 32018 }, - { 0x2039, 32022 }, - { 0x203A, 32027 }, - { 0x201B, 32032 }, - { 0x33DF, 32036 }, - { 0x33C6, 32040 }, - { 0x33C0, 32044 }, - { 0x33C1, 32047 }, - { 0x33A7, 32050 }, - { 0x33A8, 32054 }, - { 0x33A5, 32059 }, - { 0x33A1, 32062 }, - { 0x33DE, 32065 }, - { 0x33C2, 32069 }, - { 0x3373, 32071 }, - { 0x33C3, 32073 }, - { 0x33C4, 32075 }, - { 0x33C5, 32077 }, - { 0x339D, 32079 }, - { 0x33A4, 32081 }, - { 0x33A0, 32084 }, - { 0x33C7, 32087 }, - { 0x3372, 32089 }, - { 0x33C8, 32091 }, - { 0x3397, 32093 }, - { 0x3377, 32095 }, - { 0x3379, 32097 }, - { 0x3378, 32100 }, - { 0x32CE, 32103 }, - { 0x3399, 32105 }, - { 0x3387, 32107 }, - { 0x33C9, 32109 }, - { 0x33CA, 32111 }, - { 0x32CC, 32113 }, - { 0x33CB, 32115 }, - { 0x3390, 32117 }, - { 0x33CC, 32119 }, - { 0x337A, 32121 }, - { 0x3384, 32123 }, - { 0x3385, 32125 }, - { 0x338F, 32127 }, - { 0x33CD, 32129 }, - { 0x3398, 32131 }, - { 0x339E, 32133 }, - { 0x33A6, 32135 }, - { 0x33CE, 32138 }, - { 0x33A2, 32141 }, - { 0x33CF, 32144 }, - { 0x33B8, 32146 }, - { 0x33BE, 32148 }, - { 0x33D0, 32150 }, - { 0x33D1, 32152 }, - { 0x33D3, 32154 }, - { 0x3383, 32156 }, - { 0x3386, 32158 }, - { 0x33D4, 32160 }, - { 0x338E, 32163 }, - { 0x3396, 32165 }, - { 0x339C, 32167 }, - { 0x33A3, 32169 }, - { 0x339F, 32172 }, - { 0x33B3, 32175 }, - { 0x3382, 32177 }, - { 0x338C, 32180 }, - { 0x338D, 32183 }, - { 0x3395, 32186 }, - { 0x339B, 32189 }, - { 0x33B2, 32192 }, - { 0x33B6, 32195 }, - { 0x33BC, 32198 }, - { 0x33B7, 32201 }, - { 0x33B9, 32203 }, - { 0x33BD, 32206 }, - { 0x33BF, 32208 }, - { 0x3381, 32211 }, - { 0x338B, 32213 }, - { 0x339A, 32215 }, - { 0x33B1, 32217 }, - { 0x33B5, 32219 }, - { 0x33BB, 32221 }, - { 0x3375, 32223 }, - { 0x33A9, 32225 }, - { 0x3380, 32227 }, - { 0x3376, 32230 }, - { 0x338A, 32232 }, - { 0x33D7, 32234 }, - { 0x33D8, 32236 }, - { 0x33DA, 32238 }, - { 0x33B0, 32240 }, - { 0x33B4, 32242 }, - { 0x33BA, 32244 }, - { 0x33DB, 32246 }, - { 0x33DC, 32248 }, - { 0x33DD, 32250 }, - { 0x3374, 32252 }, - { 0x3388, 32254 }, - { 0x2293, 32256 }, - { 0x2294, 32258 }, - { 0x337E, 32260 }, - { 0x337B, 32264 }, - { 0x337C, 32268 }, - { 0x337D, 32272 }, - { 0x32CD, 32276 }, - { 0x33FF, 32278 }, - { 0x3393, 32280 }, - { 0x33AC, 32282 }, - { 0x333F, 32284 }, - { 0x3371, 32286 }, - { 0x3391, 32288 }, - { 0x33AA, 32290 }, - { 0x33D2, 32292 }, - { 0x3392, 32294 }, - { 0x33D5, 32296 }, - { 0x33D6, 32298 }, - { 0x33AB, 32300 }, - { 0x33D9, 32302 }, - { 0x33AD, 32304 }, - { 0x33AE, 32306 }, - { 0x33AF, 32310 }, - { 0x3394, 32315 }, - { 0x3327, 32317 }, - { 0x3306, 32319 }, - { 0x3303, 32321 }, - { 0x3331, 32323 }, - { 0x3325, 32325 }, - { 0x3326, 32327 }, - { 0x23CD, 32329 }, - { 0x3310, 32331 }, - { 0x3342, 32333 }, - { 0x3305, 32335 }, - { 0x3389, 32337 }, - { 0x3314, 32339 }, - { 0x2ACD, 32341 }, - { 0x334B, 32346 }, - { 0x3349, 32348 }, - { 0x3328, 32350 }, - { 0x3309, 32352 }, - { 0x330A, 32354 }, - { 0x3337, 32356 }, - { 0x3330, 32358 }, - { 0x3355, 32360 }, - { 0x3352, 32362 }, - { 0x221A, 32364 }, - { 0x2B12, 32366 }, - { 0x25E7, 32371 }, - { 0x2B15, 32376 }, - { 0x25EA, 32383 }, - { 0x25E8, 32390 }, - { 0x25A7, 32395 }, - { 0x25E9, 32403 }, - { 0x25A8, 32410 }, - { 0x2B14, 32418 }, - { 0x2B13, 32425 }, - { 0x25A9, 32430 }, - { 0x25A5, 32435 }, - { 0x29E0, 32439 }, - { 0x25A4, 32443 }, - { 0x25A6, 32447 }, - { 0x3350, 32452 }, - { 0x3302, 32454 }, - { 0x333C, 32456 }, - { 0x3324, 32458 }, - { 0x3308, 32460 }, - { 0x330F, 32462 }, - { 0x330E, 32464 }, - { 0x3311, 32466 }, - { 0x332A, 32468 }, - { 0x3341, 32470 }, - { 0x3335, 32472 }, - { 0x228F, 32474 }, - { 0x22E4, 32477 }, - { 0x2291, 32484 }, - { 0x330B, 32490 }, - { 0x331C, 32492 }, - { 0x331E, 32494 }, - { 0x3345, 32496 }, - { 0x3344, 32498 }, - { 0x3329, 32500 }, - { 0x332C, 32502 }, - { 0x333B, 32504 }, - { 0x333A, 32506 }, - { 0x3340, 32508 }, - { 0x2ACE, 32510 }, - { 0x3353, 32515 }, - { 0x3322, 32517 }, - { 0x3323, 32519 }, - { 0x3357, 32521 }, - { 0x334E, 32523 }, - { 0x334F, 32525 }, - { 0x3300, 32527 }, - { 0x3301, 32529 }, - { 0x333E, 32531 }, - { 0x3318, 32533 }, - { 0x3339, 32535 }, - { 0x3333, 32537 }, - { 0x3304, 32539 }, - { 0x331D, 32541 }, - { 0x3312, 32543 }, - { 0x3346, 32545 }, - { 0x3338, 32547 }, - { 0x332F, 32549 }, - { 0x333D, 32551 }, - { 0x332D, 32553 }, - { 0x3313, 32555 }, - { 0x330C, 32557 }, - { 0x330D, 32559 }, - { 0x331B, 32561 }, - { 0x2311, 32563 }, - { 0x3343, 32565 }, - { 0x3347, 32567 }, - { 0x334D, 32569 }, - { 0x334C, 32571 }, - { 0x3348, 32573 }, - { 0x3351, 32575 }, - { 0x3354, 32577 }, - { 0x331F, 32579 }, - { 0x3321, 32581 }, - { 0x3334, 32583 }, - { 0x3307, 32585 }, - { 0x3332, 32587 }, - { 0x2290, 32589 }, - { 0x22E5, 32592 }, - { 0x2292, 32599 }, - { 0x332B, 32605 }, - { 0x3356, 32607 }, - { 0x3320, 32609 }, - { 0x3319, 32611 }, - { 0x3336, 32613 }, - { 0x3317, 32615 }, - { 0x331A, 32617 }, - { 0x334A, 32619 }, - { 0x332E, 32621 }, - { 0x3315, 32623 }, - { 0x337F, 32625 }, - { 0x3316, 32627 }, - { 0x2729, 32629 }, - { 0x2282, 32633 }, - { 0x2286, 32635 }, - { 0x2AC3, 32640 }, - { 0x228A, 32648 }, - { 0x2ACB, 32654 }, - { 0x2AC7, 32660 }, - { 0x2AC9, 32665 }, - { 0x2AC5, 32671 }, - { 0x2ABD, 32676 }, - { 0x2ABF, 32679 }, - { 0x2AC1, 32684 }, - { 0x2AD5, 32689 }, - { 0x2AD3, 32692 }, - { 0x2979, 32695 }, - { 0x5806, 32699 }, - { 0x580B, 32703 }, - { 0x5802, 32707 }, - { 0x5823, 32711 }, - { 0x5826, 32716 }, - { 0x5824, 32721 }, - { 0x5825, 32726 }, - { 0x5827, 32731 }, - { 0x5800, 32736 }, - { 0x5804, 32740 }, - { 0x5801, 32744 }, - { 0x5805, 32748 }, - { 0x5803, 32752 }, - { 0x581B, 32756 }, - { 0x580C, 32760 }, - { 0x5816, 32764 }, - { 0x5809, 32768 }, - { 0x5822, 32772 }, - { 0x580E, 32776 }, - { 0x5807, 32780 }, - { 0x581F, 32784 }, - { 0x581D, 32788 }, - { 0x5818, 32792 }, - { 0x5819, 32796 }, - { 0x581E, 32800 }, - { 0x5821, 32804 }, - { 0x5814, 32808 }, - { 0x581C, 32812 }, - { 0x580D, 32816 }, - { 0x5812, 32820 }, - { 0x5817, 32824 }, - { 0x580A, 32828 }, - { 0x580F, 32832 }, - { 0x5808, 32836 }, - { 0x581A, 32840 }, - { 0x5820, 32844 }, - { 0x5815, 32848 }, - { 0x5810, 32852 }, - { 0x5813, 32856 }, - { 0x5811, 32860 }, - { 0x5828, 32864 }, - { 0x5829, 32868 }, - { 0x582A, 32872 }, - { 0x582B, 32876 }, - { 0x2403, 32880 }, - { 0x2419, 32885 }, - { 0x2404, 32890 }, - { 0x2417, 32895 }, - { 0x2407, 32901 }, - { 0x2410, 32904 }, - { 0x241C, 32909 }, - { 0x240C, 32913 }, - { 0x240A, 32917 }, - { 0x2400, 32921 }, - { 0x241F, 32924 }, - { 0x241D, 32928 }, - { 0x240F, 32932 }, - { 0x240E, 32936 }, - { 0x2420, 32940 }, - { 0x2402, 32943 }, - { 0x2401, 32948 }, - { 0x2418, 32953 }, - { 0x2421, 32956 }, - { 0x2425, 32959 }, - { 0x2411, 32964 }, - { 0x2412, 32969 }, - { 0x2414, 32974 }, - { 0x2413, 32979 }, - { 0x241B, 32984 }, - { 0x241E, 32987 }, - { 0x2405, 32991 }, - { 0x2424, 32994 }, - { 0x240D, 32997 }, - { 0x2415, 33001 }, - { 0x240B, 33005 }, - { 0x2408, 33009 }, - { 0x2409, 33012 }, - { 0x241A, 33016 }, - { 0x2426, 33019 }, - { 0x2406, 33024 }, - { 0x2416, 33027 }, - { 0x0700, 33031 }, - { 0x0743, 33035 }, - { 0x0744, 33040 }, - { 0x0706, 33045 }, - { 0x0707, 33049 }, - { 0x073D, 33053 }, - { 0x073E, 33056 }, - { 0x073A, 33059 }, - { 0x073B, 33062 }, - { 0x0749, 33065 }, - { 0x0736, 33067 }, - { 0x0737, 33070 }, - { 0x073F, 33073 }, - { 0x0745, 33075 }, - { 0x0746, 33079 }, - { 0x0739, 33083 }, - { 0x0738, 33087 }, - { 0x0725, 33091 }, - { 0x0717, 33094 }, - { 0x0726, 33097 }, - { 0x0721, 33100 }, - { 0x0722, 33103 }, - { 0x072C, 33106 }, - { 0x0718, 33109 }, - { 0x0712, 33112 }, - { 0x071A, 33115 }, - { 0x071F, 33118 }, - { 0x0729, 33121 }, - { 0x072A, 33124 }, - { 0x072B, 33127 }, - { 0x071B, 33130 }, - { 0x071C, 33133 }, - { 0x071D, 33137 }, - { 0x071E, 33140 }, - { 0x0719, 33144 }, - { 0x0710, 33147 }, - { 0x0724, 33150 }, - { 0x0713, 33154 }, - { 0x0714, 33157 }, - { 0x0728, 33161 }, - { 0x0715, 33164 }, - { 0x0720, 33167 }, - { 0x0716, 33170 }, - { 0x072D, 33175 }, - { 0x072E, 33179 }, - { 0x072F, 33183 }, - { 0x0723, 33187 }, - { 0x074F, 33190 }, - { 0x074E, 33194 }, - { 0x074D, 33198 }, - { 0x0727, 33202 }, - { 0x0711, 33206 }, - { 0x0730, 33210 }, - { 0x0731, 33213 }, - { 0x0732, 33216 }, - { 0x0733, 33219 }, - { 0x0734, 33222 }, - { 0x0735, 33225 }, - { 0x074A, 33228 }, - { 0x0747, 33230 }, - { 0x0748, 33234 }, - { 0x0740, 33238 }, - { 0x070B, 33241 }, - { 0x070C, 33244 }, - { 0x070D, 33247 }, - { 0x0742, 33250 }, - { 0x0741, 33252 }, - { 0x0702, 33254 }, - { 0x0704, 33258 }, - { 0x0709, 33261 }, - { 0x0705, 33266 }, - { 0x070A, 33269 }, - { 0x073C, 33271 }, - { 0x0701, 33274 }, - { 0x0703, 33278 }, - { 0x0708, 33281 }, - { 0x070F, 33286 }, - { 0x2649, 33289 }, - { 0x0C56, 33290 }, - { 0x0C4D, 33294 }, - { 0x0C03, 33297 }, - { 0x0C02, 33300 }, - { 0x0C01, 33303 }, - { 0x0C67, 33306 }, - { 0x0C6C, 33309 }, - { 0x0C68, 33312 }, - { 0x0C6B, 33315 }, - { 0x0C6A, 33318 }, - { 0x0C6F, 33321 }, - { 0x0C66, 33324 }, - { 0x0C6E, 33327 }, - { 0x0C6D, 33330 }, - { 0x0C69, 33333 }, - { 0x0C46, 33336 }, - { 0x0C3F, 33340 }, - { 0x0C4A, 33344 }, - { 0x0C41, 33348 }, - { 0x0C3E, 33352 }, - { 0x0C48, 33356 }, - { 0x0C4C, 33360 }, - { 0x0C47, 33364 }, - { 0x0C40, 33368 }, - { 0x0C4B, 33372 }, - { 0x0C42, 33376 }, - { 0x0C43, 33380 }, - { 0x0C44, 33385 }, - { 0x0C55, 33390 }, - { 0x0C05, 33393 }, - { 0x0C0E, 33396 }, - { 0x0C07, 33399 }, - { 0x0C12, 33402 }, - { 0x0C09, 33405 }, - { 0x0C06, 33408 }, - { 0x0C10, 33411 }, - { 0x0C14, 33414 }, - { 0x0C2C, 33417 }, - { 0x0C1A, 33420 }, - { 0x0C26, 33423 }, - { 0x0C0F, 33426 }, - { 0x0C17, 33429 }, - { 0x0C39, 33432 }, - { 0x0C08, 33435 }, - { 0x0C1C, 33438 }, - { 0x0C15, 33441 }, - { 0x0C32, 33444 }, - { 0x0C2E, 33447 }, - { 0x0C28, 33450 }, - { 0x0C13, 33453 }, - { 0x0C2A, 33456 }, - { 0x0C30, 33459 }, - { 0x0C38, 33462 }, - { 0x0C24, 33465 }, - { 0x0C0A, 33468 }, - { 0x0C35, 33471 }, - { 0x0C2F, 33474 }, - { 0x0C2D, 33477 }, - { 0x0C1B, 33480 }, - { 0x0C21, 33483 }, - { 0x0C27, 33486 }, - { 0x0C18, 33489 }, - { 0x0C1D, 33492 }, - { 0x0C16, 33495 }, - { 0x0C33, 33498 }, - { 0x0C19, 33501 }, - { 0x0C23, 33504 }, - { 0x0C1E, 33507 }, - { 0x0C2B, 33510 }, - { 0x0C31, 33513 }, - { 0x0C36, 33516 }, - { 0x0C37, 33519 }, - { 0x0C25, 33522 }, - { 0x0C1F, 33525 }, - { 0x0C22, 33528 }, - { 0x0C20, 33531 }, - { 0x0C0C, 33534 }, - { 0x0C0B, 33538 }, - { 0x0C61, 33542 }, - { 0x0C60, 33546 }, - { 0x07B0, 33550 }, - { 0x07A0, 33552 }, - { 0x07A1, 33555 }, - { 0x0784, 33558 }, - { 0x0780, 33561 }, - { 0x07B1, 33564 }, - { 0x0783, 33567 }, - { 0x0794, 33570 }, - { 0x079C, 33573 }, - { 0x07A2, 33576 }, - { 0x0799, 33579 }, - { 0x079A, 33582 }, - { 0x078C, 33585 }, - { 0x0798, 33588 }, - { 0x0787, 33591 }, - { 0x078A, 33594 }, - { 0x078E, 33597 }, - { 0x0786, 33600 }, - { 0x078D, 33603 }, - { 0x0789, 33606 }, - { 0x0782, 33609 }, - { 0x07A4, 33612 }, - { 0x0790, 33615 }, - { 0x0788, 33618 }, - { 0x07A5, 33621 }, - { 0x079F, 33624 }, - { 0x078B, 33627 }, - { 0x07A3, 33630 }, - { 0x079E, 33633 }, - { 0x079D, 33636 }, - { 0x079B, 33639 }, - { 0x0791, 33642 }, - { 0x0796, 33645 }, - { 0x0795, 33648 }, - { 0x0793, 33651 }, - { 0x0792, 33654 }, - { 0x0797, 33657 }, - { 0x078F, 33660 }, - { 0x0785, 33663 }, - { 0x0781, 33666 }, - { 0x07A6, 33669 }, - { 0x07AC, 33671 }, - { 0x07A8, 33673 }, - { 0x07AE, 33675 }, - { 0x07AA, 33677 }, - { 0x07A7, 33679 }, - { 0x07A9, 33681 }, - { 0x07AD, 33683 }, - { 0x07AF, 33685 }, - { 0x07AB, 33687 }, - { 0x29FB, 33689 }, - { 0x2AF6, 33691 }, - { 0x2034, 33694 }, - { 0x224B, 33696 }, - { 0x2AF7, 33698 }, - { 0x2AF8, 33701 }, - { 0x2AFB, 33704 }, - { 0x222D, 33708 }, - { 0x2AF5, 33710 }, - { 0x22AA, 33716 }, - { 0x2AF4, 33721 }, - { 0x2980, 33726 }, - { 0x2A68, 33730 }, - { 0x2A69, 33737 }, - { 0x20AE, 33744 }, - { 0x2319, 33746 }, - { 0x29A2, 33749 }, - { 0x2129, 33751 }, - { 0x214E, 33756 }, - { 0x2132, 33759 }, - { 0x214B, 33762 }, - { 0x2141, 33764 }, - { 0x2142, 33768 }, - { 0x2144, 33772 }, - { 0x2739, 33776 }, - { 0x2645, 33780 }, - { 0x2A2F, 33781 }, - { 0x2230, 33785 }, - { 0x00BD, 33787 }, - { 0x2155, 33791 }, - { 0x2159, 33795 }, - { 0x2153, 33799 }, - { 0x215B, 33803 }, - { 0x00BC, 33807 }, - { 0x2156, 33811 }, - { 0x2154, 33815 }, - { 0x215A, 33819 }, - { 0x215D, 33823 }, - { 0x2158, 33827 }, - { 0x215E, 33831 }, - { 0x2157, 33835 }, - { 0x215C, 33839 }, - { 0x00BE, 33843 }, - { 0x2240, 33847 }, - { 0x2100, 33849 }, - { 0x060B, 33851 }, - { 0x2697, 33853 }, - { 0x20B3, 33854 }, - { 0x2235, 33856 }, - { 0x09D7, 33857 }, - { 0x09BC, 33861 }, - { 0x09CD, 33864 }, - { 0x0983, 33867 }, - { 0x0982, 33870 }, - { 0x09BD, 33873 }, - { 0x0981, 33876 }, - { 0x09E7, 33879 }, - { 0x09EC, 33882 }, - { 0x09E8, 33885 }, - { 0x09EB, 33888 }, - { 0x09EA, 33891 }, - { 0x09EF, 33894 }, - { 0x09E6, 33897 }, - { 0x09EE, 33900 }, - { 0x09ED, 33903 }, - { 0x09E9, 33906 }, - { 0x09F2, 33909 }, - { 0x09F3, 33912 }, - { 0x09C7, 33915 }, - { 0x09BF, 33919 }, - { 0x09CB, 33923 }, - { 0x09C1, 33927 }, - { 0x09BE, 33931 }, - { 0x09C8, 33935 }, - { 0x09CC, 33939 }, - { 0x09C0, 33943 }, - { 0x09C2, 33947 }, - { 0x09E2, 33951 }, - { 0x09C3, 33956 }, - { 0x09E3, 33961 }, - { 0x09C4, 33966 }, - { 0x09FA, 33971 }, - { 0x0985, 33973 }, - { 0x098F, 33976 }, - { 0x0987, 33979 }, - { 0x0993, 33982 }, - { 0x0989, 33985 }, - { 0x0986, 33988 }, - { 0x0990, 33991 }, - { 0x0994, 33994 }, - { 0x09AC, 33997 }, - { 0x099A, 34000 }, - { 0x09A6, 34003 }, - { 0x0997, 34006 }, - { 0x09B9, 34009 }, - { 0x0988, 34012 }, - { 0x099C, 34015 }, - { 0x0995, 34018 }, - { 0x09B2, 34021 }, - { 0x09AE, 34024 }, - { 0x09A8, 34027 }, - { 0x09AA, 34030 }, - { 0x09B0, 34033 }, - { 0x09F1, 34036 }, - { 0x09F0, 34042 }, - { 0x09B8, 34048 }, - { 0x09A4, 34051 }, - { 0x098A, 34054 }, - { 0x09AF, 34057 }, - { 0x09AD, 34060 }, - { 0x099B, 34063 }, - { 0x09A1, 34066 }, - { 0x09A7, 34069 }, - { 0x0998, 34072 }, - { 0x099D, 34075 }, - { 0x0996, 34078 }, - { 0x0999, 34081 }, - { 0x09A3, 34084 }, - { 0x099E, 34087 }, - { 0x09AB, 34090 }, - { 0x09DD, 34093 }, - { 0x09DC, 34096 }, - { 0x09B6, 34099 }, - { 0x09B7, 34102 }, - { 0x09A5, 34105 }, - { 0x099F, 34108 }, - { 0x09DF, 34111 }, - { 0x09A2, 34114 }, - { 0x09A0, 34117 }, - { 0x09CE, 34120 }, - { 0x098C, 34124 }, - { 0x098B, 34128 }, - { 0x09E1, 34132 }, - { 0x09E0, 34136 }, - { 0x09F4, 34140 }, - { 0x09F8, 34144 }, - { 0x09F5, 34152 }, - { 0x09F7, 34156 }, - { 0x09F6, 34160 }, - { 0x09F9, 34164 }, - { 0x232C, 34168 }, - { 0x23E3, 34170 }, - { 0x226C, 34174 }, - { 0x2800, 34175 }, - { 0x2801, 34178 }, - { 0x2802, 34181 }, - { 0x2804, 34184 }, - { 0x2808, 34187 }, - { 0x2810, 34190 }, - { 0x2820, 34193 }, - { 0x2840, 34196 }, - { 0x2880, 34199 }, - { 0x2803, 34202 }, - { 0x2805, 34205 }, - { 0x2809, 34208 }, - { 0x2811, 34211 }, - { 0x2821, 34214 }, - { 0x2841, 34217 }, - { 0x2881, 34220 }, - { 0x2806, 34223 }, - { 0x280A, 34226 }, - { 0x2812, 34229 }, - { 0x2822, 34232 }, - { 0x2842, 34235 }, - { 0x2882, 34238 }, - { 0x280C, 34241 }, - { 0x2814, 34244 }, - { 0x2824, 34247 }, - { 0x2844, 34250 }, - { 0x2884, 34253 }, - { 0x2818, 34256 }, - { 0x2828, 34259 }, - { 0x2848, 34262 }, - { 0x2888, 34265 }, - { 0x2830, 34268 }, - { 0x2850, 34271 }, - { 0x2890, 34274 }, - { 0x2860, 34277 }, - { 0x28A0, 34280 }, - { 0x28C0, 34283 }, - { 0x2807, 34286 }, - { 0x280B, 34289 }, - { 0x2813, 34292 }, - { 0x2823, 34295 }, - { 0x2843, 34298 }, - { 0x2883, 34301 }, - { 0x280D, 34304 }, - { 0x2815, 34307 }, - { 0x2825, 34310 }, - { 0x2845, 34313 }, - { 0x2885, 34316 }, - { 0x2819, 34319 }, - { 0x2829, 34322 }, - { 0x2849, 34325 }, - { 0x2889, 34328 }, - { 0x2831, 34331 }, - { 0x2851, 34334 }, - { 0x2891, 34337 }, - { 0x2861, 34340 }, - { 0x28A1, 34343 }, - { 0x28C1, 34346 }, - { 0x280E, 34349 }, - { 0x2816, 34352 }, - { 0x2826, 34355 }, - { 0x2846, 34358 }, - { 0x2886, 34361 }, - { 0x281A, 34364 }, - { 0x282A, 34367 }, - { 0x284A, 34370 }, - { 0x288A, 34373 }, - { 0x2832, 34376 }, - { 0x2852, 34379 }, - { 0x2892, 34382 }, - { 0x2862, 34385 }, - { 0x28A2, 34388 }, - { 0x28C2, 34391 }, - { 0x281C, 34394 }, - { 0x282C, 34397 }, - { 0x284C, 34400 }, - { 0x288C, 34403 }, - { 0x2834, 34406 }, - { 0x2854, 34409 }, - { 0x2894, 34412 }, - { 0x2864, 34415 }, - { 0x28A4, 34418 }, - { 0x28C4, 34421 }, - { 0x2838, 34424 }, - { 0x2858, 34427 }, - { 0x2898, 34430 }, - { 0x2868, 34433 }, - { 0x28A8, 34436 }, - { 0x28C8, 34439 }, - { 0x2870, 34442 }, - { 0x28B0, 34445 }, - { 0x28D0, 34448 }, - { 0x28E0, 34451 }, - { 0x280F, 34454 }, - { 0x2817, 34457 }, - { 0x2827, 34460 }, - { 0x2847, 34463 }, - { 0x2887, 34466 }, - { 0x281B, 34469 }, - { 0x282B, 34472 }, - { 0x284B, 34475 }, - { 0x288B, 34478 }, - { 0x2833, 34481 }, - { 0x2853, 34484 }, - { 0x2893, 34487 }, - { 0x2863, 34490 }, - { 0x28A3, 34493 }, - { 0x28C3, 34496 }, - { 0x281D, 34499 }, - { 0x282D, 34502 }, - { 0x284D, 34505 }, - { 0x288D, 34508 }, - { 0x2835, 34511 }, - { 0x2855, 34514 }, - { 0x2895, 34517 }, - { 0x2865, 34520 }, - { 0x28A5, 34523 }, - { 0x28C5, 34526 }, - { 0x2839, 34529 }, - { 0x2859, 34532 }, - { 0x2899, 34535 }, - { 0x2869, 34538 }, - { 0x28A9, 34541 }, - { 0x28C9, 34544 }, - { 0x2871, 34547 }, - { 0x28B1, 34550 }, - { 0x28D1, 34553 }, - { 0x28E1, 34556 }, - { 0x281E, 34559 }, - { 0x282E, 34562 }, - { 0x284E, 34565 }, - { 0x288E, 34568 }, - { 0x2836, 34571 }, - { 0x2856, 34574 }, - { 0x2896, 34577 }, - { 0x2866, 34580 }, - { 0x28A6, 34583 }, - { 0x28C6, 34586 }, - { 0x283A, 34589 }, - { 0x285A, 34592 }, - { 0x289A, 34595 }, - { 0x286A, 34598 }, - { 0x28AA, 34601 }, - { 0x28CA, 34604 }, - { 0x2872, 34607 }, - { 0x28B2, 34610 }, - { 0x28D2, 34613 }, - { 0x28E2, 34616 }, - { 0x283C, 34619 }, - { 0x285C, 34622 }, - { 0x289C, 34625 }, - { 0x286C, 34628 }, - { 0x28AC, 34631 }, - { 0x28CC, 34634 }, - { 0x2874, 34637 }, - { 0x28B4, 34640 }, - { 0x28D4, 34643 }, - { 0x28E4, 34646 }, - { 0x2878, 34649 }, - { 0x28B8, 34652 }, - { 0x28D8, 34655 }, - { 0x28E8, 34658 }, - { 0x28F0, 34661 }, - { 0x281F, 34664 }, - { 0x282F, 34667 }, - { 0x284F, 34670 }, - { 0x288F, 34673 }, - { 0x2837, 34676 }, - { 0x2857, 34679 }, - { 0x2897, 34682 }, - { 0x2867, 34685 }, - { 0x28A7, 34688 }, - { 0x28C7, 34691 }, - { 0x283B, 34694 }, - { 0x285B, 34697 }, - { 0x289B, 34700 }, - { 0x286B, 34703 }, - { 0x28AB, 34706 }, - { 0x28CB, 34709 }, - { 0x2873, 34712 }, - { 0x28B3, 34715 }, - { 0x28D3, 34718 }, - { 0x28E3, 34721 }, - { 0x283D, 34724 }, - { 0x285D, 34727 }, - { 0x289D, 34730 }, - { 0x286D, 34733 }, - { 0x28AD, 34736 }, - { 0x28CD, 34739 }, - { 0x2875, 34742 }, - { 0x28B5, 34745 }, - { 0x28D5, 34748 }, - { 0x28E5, 34751 }, - { 0x2879, 34754 }, - { 0x28B9, 34757 }, - { 0x28D9, 34760 }, - { 0x28E9, 34763 }, - { 0x28F1, 34766 }, - { 0x283E, 34769 }, - { 0x285E, 34772 }, - { 0x289E, 34775 }, - { 0x286E, 34778 }, - { 0x28AE, 34781 }, - { 0x28CE, 34784 }, - { 0x2876, 34787 }, - { 0x28B6, 34790 }, - { 0x28D6, 34793 }, - { 0x28E6, 34796 }, - { 0x287A, 34799 }, - { 0x28BA, 34802 }, - { 0x28DA, 34805 }, - { 0x28EA, 34808 }, - { 0x28F2, 34811 }, - { 0x287C, 34814 }, - { 0x28BC, 34817 }, - { 0x28DC, 34820 }, - { 0x28EC, 34823 }, - { 0x28F4, 34826 }, - { 0x28F8, 34829 }, - { 0x283F, 34832 }, - { 0x285F, 34835 }, - { 0x289F, 34838 }, - { 0x286F, 34841 }, - { 0x28AF, 34844 }, - { 0x28CF, 34847 }, - { 0x2877, 34850 }, - { 0x28B7, 34853 }, - { 0x28D7, 34856 }, - { 0x28E7, 34859 }, - { 0x287B, 34862 }, - { 0x28BB, 34865 }, - { 0x28DB, 34868 }, - { 0x28EB, 34871 }, - { 0x28F3, 34874 }, - { 0x287D, 34877 }, - { 0x28BD, 34880 }, - { 0x28DD, 34883 }, - { 0x28ED, 34886 }, - { 0x28F5, 34889 }, - { 0x28F9, 34892 }, - { 0x287E, 34895 }, - { 0x28BE, 34898 }, - { 0x28DE, 34901 }, - { 0x28EE, 34904 }, - { 0x28F6, 34907 }, - { 0x28FA, 34910 }, - { 0x28FC, 34913 }, - { 0x287F, 34916 }, - { 0x28BF, 34919 }, - { 0x28DF, 34922 }, - { 0x28EF, 34925 }, - { 0x28F7, 34928 }, - { 0x28FB, 34931 }, - { 0x28FD, 34934 }, - { 0x28FE, 34937 }, - { 0x28FF, 34940 }, - { 0x2621, 34943 }, - { 0x00B8, 34945 }, - { 0x2299, 34946 }, - { 0x229D, 34949 }, - { 0x2742, 34951 }, - { 0x2295, 34957 }, - { 0x229A, 34959 }, - { 0x2460, 34962 }, - { 0x2465, 34965 }, - { 0x2461, 34968 }, - { 0x2464, 34971 }, - { 0x2463, 34974 }, - { 0x2468, 34977 }, - { 0x24EA, 34980 }, - { 0x2467, 34983 }, - { 0x2466, 34986 }, - { 0x2462, 34989 }, - { 0x27B2, 34992 }, - { 0x24D0, 34997 }, - { 0x24D1, 35002 }, - { 0x24D2, 35007 }, - { 0x24D3, 35012 }, - { 0x24D4, 35017 }, - { 0x24D5, 35022 }, - { 0x24D6, 35027 }, - { 0x24D7, 35032 }, - { 0x24D8, 35037 }, - { 0x24D9, 35042 }, - { 0x24DA, 35047 }, - { 0x24DB, 35052 }, - { 0x24DC, 35057 }, - { 0x24DD, 35062 }, - { 0x24DE, 35067 }, - { 0x24DF, 35072 }, - { 0x24E0, 35077 }, - { 0x24E1, 35082 }, - { 0x24E2, 35087 }, - { 0x24E3, 35092 }, - { 0x24E4, 35097 }, - { 0x24E5, 35102 }, - { 0x24E6, 35107 }, - { 0x24E7, 35112 }, - { 0x24E8, 35117 }, - { 0x24E9, 35122 }, - { 0x24B6, 35127 }, - { 0x24B7, 35132 }, - { 0x24B8, 35137 }, - { 0x24B9, 35142 }, - { 0x24BA, 35147 }, - { 0x24BB, 35152 }, - { 0x24BC, 35157 }, - { 0x24BD, 35162 }, - { 0x24BE, 35167 }, - { 0x24BF, 35172 }, - { 0x24C0, 35177 }, - { 0x24C1, 35182 }, - { 0x24C2, 35187 }, - { 0x24C3, 35192 }, - { 0x24C4, 35197 }, - { 0x24C5, 35202 }, - { 0x24C6, 35207 }, - { 0x24C7, 35212 }, - { 0x24C8, 35217 }, - { 0x24C9, 35222 }, - { 0x24CA, 35227 }, - { 0x24CB, 35232 }, - { 0x24CC, 35237 }, - { 0x24CD, 35242 }, - { 0x24CE, 35247 }, - { 0x24CF, 35252 }, - { 0x2296, 35257 }, - { 0x2297, 35259 }, - { 0x272A, 35261 }, - { 0x29BE, 35264 }, - { 0x29BF, 35267 }, - { 0x229C, 35269 }, - { 0x3266, 35271 }, - { 0x3274, 35274 }, - { 0x3268, 35278 }, - { 0x3276, 35281 }, - { 0x326D, 35285 }, - { 0x327B, 35288 }, - { 0x3267, 35292 }, - { 0x3275, 35295 }, - { 0x327E, 35299 }, - { 0x3264, 35303 }, - { 0x3272, 35306 }, - { 0x3261, 35310 }, - { 0x326F, 35313 }, - { 0x3265, 35317 }, - { 0x3273, 35320 }, - { 0x3263, 35324 }, - { 0x3271, 35327 }, - { 0x3260, 35331 }, - { 0x326E, 35334 }, - { 0x3262, 35338 }, - { 0x3270, 35341 }, - { 0x3269, 35345 }, - { 0x3277, 35348 }, - { 0x326A, 35352 }, - { 0x3278, 35355 }, - { 0x326C, 35359 }, - { 0x327A, 35362 }, - { 0x326B, 35366 }, - { 0x3279, 35369 }, - { 0x327D, 35373 }, - { 0x327C, 35377 }, - { 0x2469, 35381 }, - { 0x32BF, 35384 }, - { 0x32B5, 35387 }, - { 0x32B6, 35390 }, - { 0x32BB, 35394 }, - { 0x32B7, 35398 }, - { 0x32BA, 35402 }, - { 0x32B9, 35406 }, - { 0x32BE, 35410 }, - { 0x32BD, 35414 }, - { 0x32BC, 35418 }, - { 0x32B8, 35422 }, - { 0x246A, 35426 }, - { 0x325A, 35429 }, - { 0x325B, 35432 }, - { 0x32B1, 35436 }, - { 0x325C, 35440 }, - { 0x325F, 35444 }, - { 0x325E, 35448 }, - { 0x32B4, 35452 }, - { 0x32B3, 35456 }, - { 0x32B2, 35460 }, - { 0x325D, 35464 }, - { 0x246B, 35468 }, - { 0x2473, 35471 }, - { 0x3251, 35474 }, - { 0x3256, 35478 }, - { 0x3252, 35482 }, - { 0x3255, 35486 }, - { 0x3254, 35490 }, - { 0x3259, 35494 }, - { 0x3258, 35498 }, - { 0x3257, 35502 }, - { 0x3253, 35506 }, - { 0x246E, 35510 }, - { 0x246F, 35513 }, - { 0x2471, 35516 }, - { 0x246D, 35519 }, - { 0x2472, 35522 }, - { 0x246C, 35525 }, - { 0x2470, 35528 }, - { 0x3036, 35531 }, - { 0x29B8, 35534 }, - { 0x229B, 35537 }, - { 0x2A38, 35540 }, - { 0x2298, 35543 }, - { 0x32D0, 35546 }, - { 0x32D3, 35549 }, - { 0x32D1, 35552 }, - { 0x32D4, 35555 }, - { 0x32D2, 35558 }, - { 0x32E9, 35561 }, - { 0x32EC, 35564 }, - { 0x32EA, 35567 }, - { 0x32ED, 35570 }, - { 0x32EB, 35573 }, - { 0x32D5, 35576 }, - { 0x32D8, 35579 }, - { 0x32D6, 35582 }, - { 0x32D9, 35585 }, - { 0x32D7, 35588 }, - { 0x32EE, 35591 }, - { 0x32F1, 35594 }, - { 0x32EF, 35597 }, - { 0x32F2, 35600 }, - { 0x32F0, 35603 }, - { 0x32E4, 35606 }, - { 0x32E7, 35609 }, - { 0x32E5, 35612 }, - { 0x32E8, 35615 }, - { 0x32E6, 35618 }, - { 0x32F6, 35621 }, - { 0x32F9, 35624 }, - { 0x32F7, 35627 }, - { 0x32FA, 35630 }, - { 0x32F8, 35633 }, - { 0x32DA, 35636 }, - { 0x32DD, 35639 }, - { 0x32DB, 35642 }, - { 0x32DE, 35645 }, - { 0x32DC, 35648 }, - { 0x32DF, 35651 }, - { 0x32E2, 35654 }, - { 0x32E0, 35657 }, - { 0x32E3, 35660 }, - { 0x32E1, 35663 }, - { 0x32FB, 35666 }, - { 0x32FD, 35669 }, - { 0x32FC, 35672 }, - { 0x32FE, 35675 }, - { 0x32F3, 35678 }, - { 0x32F5, 35681 }, - { 0x32F4, 35684 }, - { 0x29B7, 35687 }, - { 0x238A, 35689 }, - { 0x29B6, 35692 }, - { 0x32A6, 35695 }, - { 0x3280, 35698 }, - { 0x3285, 35701 }, - { 0x3290, 35704 }, - { 0x3289, 35707 }, - { 0x3281, 35710 }, - { 0x32A2, 35713 }, - { 0x328B, 35716 }, - { 0x3284, 35719 }, - { 0x3283, 35722 }, - { 0x3292, 35725 }, - { 0x32A4, 35728 }, - { 0x32A0, 35731 }, - { 0x32A7, 35734 }, - { 0x329A, 35737 }, - { 0x328A, 35740 }, - { 0x3294, 35743 }, - { 0x3288, 35746 }, - { 0x32A1, 35749 }, - { 0x328D, 35752 }, - { 0x328F, 35755 }, - { 0x3287, 35758 }, - { 0x3298, 35761 }, - { 0x328E, 35764 }, - { 0x32B0, 35767 }, - { 0x329E, 35770 }, - { 0x32A8, 35773 }, - { 0x3286, 35776 }, - { 0x3291, 35779 }, - { 0x32AB, 35782 }, - { 0x3282, 35785 }, - { 0x328C, 35788 }, - { 0x32A5, 35791 }, - { 0x329B, 35794 }, - { 0x3299, 35797 }, - { 0x32A3, 35800 }, - { 0x3293, 35803 }, - { 0x3295, 35806 }, - { 0x32AF, 35809 }, - { 0x32A9, 35812 }, - { 0x32AA, 35815 }, - { 0x32AE, 35818 }, - { 0x329C, 35821 }, - { 0x329F, 35824 }, - { 0x329D, 35827 }, - { 0x3296, 35830 }, - { 0x32AC, 35833 }, - { 0x32AD, 35836 }, - { 0x3297, 35839 }, - { 0x29C0, 35842 }, - { 0x2389, 35844 }, - { 0x29C1, 35849 }, - { 0x29B9, 35851 }, - { 0x2A36, 35853 }, - { 0x29BC, 35859 }, - { 0x2332, 35863 }, - { 0x222E, 35865 }, - { 0x2694, 35867 }, - { 0x7800, 35869 }, - { 0x7801, 35872 }, - { 0x7802, 35875 }, - { 0x7803, 35878 }, - { 0x7804, 35881 }, - { 0x7805, 35884 }, - { 0x7808, 35887 }, - { 0x780A, 35890 }, - { 0x780B, 35893 }, - { 0x780C, 35896 }, - { 0x780D, 35899 }, - { 0x780E, 35902 }, - { 0x780F, 35905 }, - { 0x7810, 35908 }, - { 0x7811, 35911 }, - { 0x7812, 35914 }, - { 0x7813, 35917 }, - { 0x7814, 35920 }, - { 0x7815, 35923 }, - { 0x7816, 35926 }, - { 0x7817, 35929 }, - { 0x7818, 35932 }, - { 0x7819, 35935 }, - { 0x781A, 35938 }, - { 0x781B, 35941 }, - { 0x781C, 35944 }, - { 0x781D, 35947 }, - { 0x781E, 35950 }, - { 0x781F, 35953 }, - { 0x7820, 35956 }, - { 0x7821, 35959 }, - { 0x7822, 35962 }, - { 0x7823, 35965 }, - { 0x7824, 35968 }, - { 0x7825, 35971 }, - { 0x7826, 35974 }, - { 0x7827, 35977 }, - { 0x7828, 35980 }, - { 0x7829, 35983 }, - { 0x782A, 35986 }, - { 0x782B, 35989 }, - { 0x782C, 35992 }, - { 0x782D, 35995 }, - { 0x782E, 35998 }, - { 0x782F, 36001 }, - { 0x7830, 36004 }, - { 0x7831, 36007 }, - { 0x7832, 36010 }, - { 0x7833, 36013 }, - { 0x7834, 36016 }, - { 0x7835, 36019 }, - { 0x7837, 36022 }, - { 0x7838, 36025 }, - { 0x783C, 36028 }, - { 0x783F, 36031 }, - { 0x2396, 36034 }, - { 0x7438, 36038 }, - { 0x7434, 36042 }, - { 0x7441, 36046 }, - { 0x744A, 36050 }, - { 0x744B, 36054 }, - { 0x744C, 36058 }, - { 0x7449, 36062 }, - { 0x7445, 36066 }, - { 0x744F, 36070 }, - { 0x744E, 36074 }, - { 0x7435, 36078 }, - { 0x7436, 36082 }, - { 0x743A, 36086 }, - { 0x743C, 36090 }, - { 0x744D, 36094 }, - { 0x7447, 36098 }, - { 0x7443, 36102 }, - { 0x7440, 36106 }, - { 0x743E, 36110 }, - { 0x743F, 36114 }, - { 0x7439, 36118 }, - { 0x743B, 36122 }, - { 0x7442, 36126 }, - { 0x7437, 36130 }, - { 0x7446, 36134 }, - { 0x743D, 36138 }, - { 0x742A, 36142 }, - { 0x7429, 36147 }, - { 0x7428, 36152 }, - { 0x742C, 36157 }, - { 0x742B, 36162 }, - { 0x742D, 36167 }, - { 0x7444, 36172 }, - { 0x7448, 36176 }, - { 0x7430, 36180 }, - { 0x742F, 36185 }, - { 0x742E, 36190 }, - { 0x7432, 36195 }, - { 0x7431, 36200 }, - { 0x7433, 36205 }, - { 0x7410, 36210 }, - { 0x740C, 36214 }, - { 0x7419, 36218 }, - { 0x7422, 36222 }, - { 0x7423, 36226 }, - { 0x7424, 36230 }, - { 0x7421, 36234 }, - { 0x741D, 36238 }, - { 0x7427, 36242 }, - { 0x7426, 36246 }, - { 0x740D, 36250 }, - { 0x740E, 36254 }, - { 0x7412, 36258 }, - { 0x7414, 36262 }, - { 0x7425, 36266 }, - { 0x741F, 36270 }, - { 0x741B, 36274 }, - { 0x7418, 36278 }, - { 0x7416, 36282 }, - { 0x7417, 36286 }, - { 0x7411, 36290 }, - { 0x7413, 36294 }, - { 0x741A, 36298 }, - { 0x740F, 36302 }, - { 0x741E, 36306 }, - { 0x7415, 36310 }, - { 0x7402, 36314 }, - { 0x7401, 36319 }, - { 0x7400, 36324 }, - { 0x7404, 36329 }, - { 0x7403, 36334 }, - { 0x7405, 36339 }, - { 0x741C, 36344 }, - { 0x7420, 36348 }, - { 0x7408, 36352 }, - { 0x7407, 36357 }, - { 0x7406, 36362 }, - { 0x740A, 36367 }, - { 0x7409, 36372 }, - { 0x740B, 36377 }, - { 0x2B18, 36382 }, - { 0x2B16, 36387 }, - { 0x2B17, 36392 }, - { 0x2B19, 36397 }, - { 0x22C4, 36402 }, - { 0x2780, 36404 }, - { 0x2785, 36409 }, - { 0x2781, 36414 }, - { 0x2784, 36419 }, - { 0x2783, 36424 }, - { 0x2788, 36429 }, - { 0x2787, 36434 }, - { 0x2786, 36439 }, - { 0x2782, 36444 }, - { 0x2789, 36449 }, - { 0x2776, 36454 }, - { 0x277B, 36459 }, - { 0x2777, 36464 }, - { 0x277A, 36469 }, - { 0x2779, 36474 }, - { 0x277E, 36479 }, - { 0x277D, 36484 }, - { 0x277C, 36489 }, - { 0x2778, 36494 }, - { 0x277F, 36499 }, - { 0x278A, 36504 }, - { 0x278F, 36510 }, - { 0x278B, 36516 }, - { 0x278E, 36522 }, - { 0x278D, 36528 }, - { 0x2792, 36534 }, - { 0x2791, 36540 }, - { 0x2790, 36546 }, - { 0x278C, 36552 }, - { 0x2793, 36558 }, - { 0x2223, 36564 }, - { 0x26AE, 36565 }, - { 0x26A3, 36567 }, - { 0x26A2, 36570 }, - { 0x20AF, 36573 }, - { 0x2208, 36575 }, - { 0x22F5, 36577 }, - { 0x22F9, 36582 }, - { 0x22F2, 36588 }, - { 0x22F6, 36594 }, - { 0x22F8, 36598 }, - { 0x22F3, 36602 }, - { 0x27D2, 36612 }, - { 0x2AD9, 36616 }, - { 0x292F, 36620 }, - { 0x292C, 36626 }, - { 0x25C9, 36631 }, - { 0x2ADC, 36632 }, - { 0x26B1, 36633 }, - { 0x20B2, 36635 }, - { 0x1734, 36637 }, - { 0x1732, 36640 }, - { 0x1733, 36644 }, - { 0x1720, 36648 }, - { 0x1721, 36651 }, - { 0x1722, 36654 }, - { 0x172A, 36657 }, - { 0x1727, 36660 }, - { 0x1724, 36663 }, - { 0x1731, 36666 }, - { 0x1723, 36669 }, - { 0x172E, 36672 }, - { 0x172B, 36675 }, - { 0x1728, 36678 }, - { 0x1729, 36681 }, - { 0x172D, 36684 }, - { 0x1730, 36687 }, - { 0x1726, 36690 }, - { 0x172F, 36693 }, - { 0x172C, 36696 }, - { 0x1725, 36699 }, - { 0x20B4, 36702 }, - { 0x206C, 36704 }, - { 0x206A, 36708 }, - { 0x25D9, 36711 }, - { 0x25D8, 36714 }, - { 0x2643, 36716 }, - { 0x0CD6, 36717 }, - { 0x0CBC, 36721 }, - { 0x0CCD, 36724 }, - { 0x0C83, 36727 }, - { 0x0C82, 36730 }, - { 0x0CBD, 36733 }, - { 0x0CF1, 36736 }, - { 0x0CF2, 36739 }, - { 0x0CE7, 36742 }, - { 0x0CEC, 36745 }, - { 0x0CE8, 36748 }, - { 0x0CEB, 36751 }, - { 0x0CEA, 36754 }, - { 0x0CEF, 36757 }, - { 0x0CE6, 36760 }, - { 0x0CEE, 36763 }, - { 0x0CED, 36766 }, - { 0x0CE9, 36769 }, - { 0x0CC6, 36772 }, - { 0x0CBF, 36776 }, - { 0x0CCA, 36780 }, - { 0x0CC1, 36784 }, - { 0x0CBE, 36788 }, - { 0x0CC8, 36792 }, - { 0x0CCC, 36796 }, - { 0x0CC7, 36800 }, - { 0x0CC0, 36804 }, - { 0x0CCB, 36808 }, - { 0x0CC2, 36812 }, - { 0x0CE2, 36816 }, - { 0x0CC3, 36821 }, - { 0x0CE3, 36826 }, - { 0x0CC4, 36831 }, - { 0x0CD5, 36836 }, - { 0x0C85, 36839 }, - { 0x0C8E, 36842 }, - { 0x0C87, 36845 }, - { 0x0C92, 36848 }, - { 0x0C89, 36851 }, - { 0x0C86, 36854 }, - { 0x0C90, 36857 }, - { 0x0C94, 36860 }, - { 0x0CAC, 36863 }, - { 0x0C9A, 36866 }, - { 0x0CA6, 36869 }, - { 0x0C8F, 36872 }, - { 0x0CDE, 36875 }, - { 0x0C97, 36878 }, - { 0x0CB9, 36881 }, - { 0x0C88, 36884 }, - { 0x0C9C, 36887 }, - { 0x0C95, 36890 }, - { 0x0CB2, 36893 }, - { 0x0CAE, 36896 }, - { 0x0CA8, 36899 }, - { 0x0C93, 36902 }, - { 0x0CAA, 36905 }, - { 0x0CB0, 36908 }, - { 0x0CB8, 36911 }, - { 0x0CA4, 36914 }, - { 0x0C8A, 36917 }, - { 0x0CB5, 36920 }, - { 0x0CAF, 36923 }, - { 0x0CAD, 36926 }, - { 0x0C9B, 36929 }, - { 0x0CA1, 36932 }, - { 0x0CA7, 36935 }, - { 0x0C98, 36938 }, - { 0x0C9D, 36941 }, - { 0x0C96, 36944 }, - { 0x0CB3, 36947 }, - { 0x0C99, 36950 }, - { 0x0CA3, 36953 }, - { 0x0C9E, 36956 }, - { 0x0CAB, 36959 }, - { 0x0CB1, 36962 }, - { 0x0CB6, 36965 }, - { 0x0CB7, 36968 }, - { 0x0CA5, 36971 }, - { 0x0C9F, 36974 }, - { 0x0CA2, 36977 }, - { 0x0CA0, 36980 }, - { 0x0C8C, 36983 }, - { 0x0C8B, 36987 }, - { 0x0CE1, 36991 }, - { 0x0CE0, 36995 }, - { 0x32CF, 36999 }, - { 0x2228, 37002 }, - { 0x2A52, 37004 }, - { 0x2A62, 37009 }, - { 0x2A63, 37014 }, - { 0x2A5B, 37019 }, - { 0x2A5D, 37024 }, - { 0x2A59, 37029 }, - { 0x2227, 37034 }, - { 0x2A51, 37036 }, - { 0x2A5E, 37041 }, - { 0x2A60, 37046 }, - { 0x2A5A, 37051 }, - { 0x2A5F, 37056 }, - { 0x2A5C, 37060 }, - { 0x25CA, 37065 }, - { 0x27E0, 37066 }, - { 0x2720, 37071 }, - { 0x263F, 37073 }, - { 0x22EF, 37074 }, - { 0x9121, 37077 }, - { 0x9122, 37081 }, - { 0x9123, 37085 }, - { 0x9124, 37091 }, - { 0x911E, 37097 }, - { 0x911F, 37101 }, - { 0x9120, 37107 }, - { 0x9143, 37113 }, - { 0x918E, 37117 }, - { 0x910A, 37120 }, - { 0x9196, 37124 }, - { 0x9135, 37127 }, - { 0x9109, 37131 }, - { 0x91A8, 37135 }, - { 0x9176, 37140 }, - { 0x9174, 37144 }, - { 0x9178, 37148 }, - { 0x917A, 37152 }, - { 0x9164, 37156 }, - { 0x9142, 37162 }, - { 0x91DD, 37168 }, - { 0x910C, 37172 }, - { 0x91B4, 37175 }, - { 0x91B5, 37178 }, - { 0x9125, 37182 }, - { 0x9126, 37186 }, - { 0x912C, 37190 }, - { 0x912D, 37194 }, - { 0x91C0, 37198 }, - { 0x91BF, 37202 }, - { 0x915E, 37206 }, - { 0x913C, 37210 }, - { 0x91B0, 37214 }, - { 0x9106, 37219 }, - { 0x9153, 37224 }, - { 0x9152, 37229 }, - { 0x9159, 37234 }, - { 0x9144, 37238 }, - { 0x9197, 37242 }, - { 0x919A, 37245 }, - { 0x9199, 37249 }, - { 0x9157, 37253 }, - { 0x91B3, 37257 }, - { 0x9175, 37261 }, - { 0x9173, 37265 }, - { 0x9177, 37269 }, - { 0x9179, 37273 }, - { 0x9114, 37277 }, - { 0x915C, 37280 }, - { 0x91CF, 37283 }, - { 0x9102, 37286 }, - { 0x9191, 37290 }, - { 0x9195, 37293 }, - { 0x9194, 37299 }, - { 0x91B7, 37304 }, - { 0x91C1, 37307 }, - { 0x91C2, 37312 }, - { 0x9190, 37317 }, - { 0x913A, 37320 }, - { 0x91AF, 37324 }, - { 0x91AE, 37329 }, - { 0x918F, 37333 }, - { 0x9107, 37336 }, - { 0x910B, 37341 }, - { 0x9130, 37344 }, - { 0x9131, 37348 }, - { 0x9105, 37352 }, - { 0x91D3, 37356 }, - { 0x915D, 37359 }, - { 0x913B, 37363 }, - { 0x9112, 37367 }, - { 0x91B8, 37371 }, - { 0x91C3, 37374 }, - { 0x9145, 37378 }, - { 0x91D5, 37383 }, - { 0x9134, 37386 }, - { 0x9104, 37390 }, - { 0x91A9, 37394 }, - { 0x912B, 37398 }, - { 0x912A, 37402 }, - { 0x9101, 37406 }, - { 0x9160, 37410 }, - { 0x913E, 37414 }, - { 0x91B6, 37418 }, - { 0x91BB, 37421 }, - { 0x91C5, 37424 }, - { 0x91BC, 37428 }, - { 0x9136, 37432 }, - { 0x9137, 37436 }, - { 0x9108, 37440 }, - { 0x9100, 37444 }, - { 0x91D2, 37448 }, - { 0x9147, 37452 }, - { 0x9146, 37457 }, - { 0x918D, 37462 }, - { 0x91C7, 37465 }, - { 0x91C9, 37472 }, - { 0x91C8, 37480 }, - { 0x91CA, 37487 }, - { 0x91CB, 37494 }, - { 0x91CC, 37501 }, - { 0x91CD, 37509 }, - { 0x91CE, 37517 }, - { 0x9115, 37525 }, - { 0x9113, 37528 }, - { 0x915B, 37531 }, - { 0x915A, 37536 }, - { 0x9110, 37541 }, - { 0x9111, 37544 }, - { 0x912E, 37548 }, - { 0x912F, 37552 }, - { 0x91D4, 37556 }, - { 0x915F, 37559 }, - { 0x913D, 37563 }, - { 0x9133, 37567 }, - { 0x9132, 37572 }, - { 0x9103, 37577 }, - { 0x91D7, 37582 }, - { 0x916A, 37585 }, - { 0x916B, 37589 }, - { 0x916C, 37593 }, - { 0x9198, 37597 }, - { 0x9158, 37601 }, - { 0x9116, 37605 }, - { 0x919B, 37609 }, - { 0x919C, 37613 }, - { 0x919D, 37617 }, - { 0x919E, 37621 }, - { 0x919F, 37625 }, - { 0x91A0, 37629 }, - { 0x91A1, 37633 }, - { 0x91A2, 37637 }, - { 0x91A3, 37641 }, - { 0x91A4, 37645 }, - { 0x91A5, 37649 }, - { 0x910D, 37653 }, - { 0x910E, 37657 }, - { 0x910F, 37661 }, - { 0x911B, 37665 }, - { 0x91D8, 37669 }, - { 0x91DC, 37672 }, - { 0x9149, 37676 }, - { 0x9151, 37682 }, - { 0x9150, 37689 }, - { 0x9148, 37696 }, - { 0x914F, 37702 }, - { 0x914E, 37708 }, - { 0x914B, 37714 }, - { 0x914A, 37720 }, - { 0x914D, 37726 }, - { 0x914C, 37732 }, - { 0x9117, 37738 }, - { 0x91AB, 37742 }, - { 0x9186, 37747 }, - { 0x9189, 37751 }, - { 0x9185, 37755 }, - { 0x91AA, 37759 }, - { 0x9187, 37764 }, - { 0x91AD, 37768 }, - { 0x9165, 37773 }, - { 0x9182, 37777 }, - { 0x9188, 37781 }, - { 0x917B, 37785 }, - { 0x918A, 37789 }, - { 0x916E, 37794 }, - { 0x916F, 37798 }, - { 0x9170, 37802 }, - { 0x9171, 37806 }, - { 0x9172, 37810 }, - { 0x917D, 37814 }, - { 0x918B, 37818 }, - { 0x917F, 37823 }, - { 0x91AC, 37827 }, - { 0x917C, 37831 }, - { 0x9167, 37835 }, - { 0x9168, 37839 }, - { 0x9169, 37843 }, - { 0x916D, 37847 }, - { 0x9166, 37852 }, - { 0x917E, 37857 }, - { 0x9181, 37861 }, - { 0x9180, 37865 }, - { 0x9192, 37869 }, - { 0x911A, 37872 }, - { 0x9119, 37876 }, - { 0x91B1, 37880 }, - { 0x91B2, 37884 }, - { 0x91D0, 37888 }, - { 0x91D1, 37893 }, - { 0x91D9, 37898 }, - { 0x91DA, 37901 }, - { 0x91D6, 37905 }, - { 0x91DB, 37908 }, - { 0x9161, 37912 }, - { 0x913F, 37916 }, - { 0x9183, 37920 }, - { 0x9184, 37924 }, - { 0x91C4, 37928 }, - { 0x91BA, 37932 }, - { 0x91B9, 37936 }, - { 0x91C6, 37940 }, - { 0x91BE, 37944 }, - { 0x91BD, 37948 }, - { 0x911C, 37952 }, - { 0x9118, 37956 }, - { 0x9193, 37960 }, - { 0x911D, 37963 }, - { 0x91A6, 37967 }, - { 0x91A7, 37970 }, - { 0x9156, 37973 }, - { 0x918C, 37977 }, - { 0x9138, 37980 }, - { 0x9139, 37984 }, - { 0x9163, 37988 }, - { 0x9141, 37992 }, - { 0x9162, 37996 }, - { 0x9140, 38000 }, - { 0x9155, 38004 }, - { 0x9154, 38010 }, - { 0x1037, 38016 }, - { 0x104A, 38020 }, - { 0x1039, 38024 }, - { 0x104B, 38027 }, - { 0x1038, 38030 }, - { 0x1036, 38033 }, - { 0x1041, 38036 }, - { 0x1046, 38039 }, - { 0x1042, 38042 }, - { 0x1045, 38045 }, - { 0x1044, 38048 }, - { 0x1049, 38051 }, - { 0x1040, 38054 }, - { 0x1048, 38057 }, - { 0x1047, 38060 }, - { 0x1043, 38063 }, - { 0x1031, 38066 }, - { 0x102D, 38070 }, - { 0x102F, 38074 }, - { 0x102C, 38078 }, - { 0x1032, 38082 }, - { 0x102E, 38086 }, - { 0x1030, 38090 }, - { 0x1058, 38094 }, - { 0x1056, 38099 }, - { 0x1059, 38104 }, - { 0x1057, 38109 }, - { 0x1021, 38114 }, - { 0x1027, 38117 }, - { 0x1023, 38120 }, - { 0x1029, 38123 }, - { 0x1025, 38126 }, - { 0x102A, 38129 }, - { 0x1017, 38132 }, - { 0x1005, 38135 }, - { 0x1012, 38138 }, - { 0x1002, 38141 }, - { 0x101F, 38144 }, - { 0x1024, 38147 }, - { 0x1007, 38150 }, - { 0x1000, 38153 }, - { 0x101C, 38156 }, - { 0x1019, 38159 }, - { 0x1014, 38162 }, - { 0x1015, 38165 }, - { 0x101B, 38168 }, - { 0x101E, 38171 }, - { 0x1010, 38174 }, - { 0x1026, 38177 }, - { 0x101D, 38180 }, - { 0x101A, 38183 }, - { 0x1018, 38186 }, - { 0x1006, 38189 }, - { 0x100D, 38192 }, - { 0x1013, 38195 }, - { 0x1003, 38198 }, - { 0x1008, 38201 }, - { 0x1001, 38204 }, - { 0x1020, 38207 }, - { 0x1004, 38210 }, - { 0x100F, 38213 }, - { 0x1009, 38216 }, - { 0x1016, 38219 }, - { 0x1050, 38222 }, - { 0x1051, 38225 }, - { 0x1011, 38228 }, - { 0x100B, 38231 }, - { 0x100E, 38234 }, - { 0x100A, 38237 }, - { 0x100C, 38240 }, - { 0x1054, 38243 }, - { 0x1052, 38247 }, - { 0x1055, 38251 }, - { 0x1053, 38255 }, - { 0x104F, 38259 }, - { 0x104C, 38262 }, - { 0x104D, 38265 }, - { 0x104E, 38268 }, - { 0x22AF, 38271 }, - { 0x2288, 38278 }, - { 0x2289, 38285 }, - { 0x2270, 38292 }, - { 0x2274, 38297 }, - { 0x2278, 38302 }, - { 0x2271, 38306 }, - { 0x2279, 38311 }, - { 0x2275, 38315 }, - { 0x2247, 38320 }, - { 0x2646, 38326 }, - { 0x206F, 38327 }, - { 0x27AF, 38330 }, - { 0x27B1, 38336 }, - { 0x29A6, 38342 }, - { 0x29A7, 38346 }, - { 0x74A1, 38350 }, - { 0x74A6, 38353 }, - { 0x74A2, 38356 }, - { 0x74A5, 38359 }, - { 0x74A4, 38362 }, - { 0x74A9, 38365 }, - { 0x74A0, 38368 }, - { 0x74A8, 38371 }, - { 0x74A7, 38374 }, - { 0x74A3, 38377 }, - { 0x7496, 38380 }, - { 0x7497, 38383 }, - { 0x7498, 38386 }, - { 0x7499, 38389 }, - { 0x749A, 38392 }, - { 0x749B, 38395 }, - { 0x7481, 38398 }, - { 0x749C, 38401 }, - { 0x748D, 38404 }, - { 0x748C, 38407 }, - { 0x7494, 38410 }, - { 0x7483, 38413 }, - { 0x749D, 38416 }, - { 0x7487, 38419 }, - { 0x7488, 38422 }, - { 0x7482, 38425 }, - { 0x7484, 38428 }, - { 0x7495, 38431 }, - { 0x748A, 38434 }, - { 0x7485, 38437 }, - { 0x7493, 38440 }, - { 0x7480, 38443 }, - { 0x748B, 38446 }, - { 0x7486, 38449 }, - { 0x748F, 38452 }, - { 0x7490, 38455 }, - { 0x7491, 38458 }, - { 0x7492, 38461 }, - { 0x748E, 38464 }, - { 0x7489, 38467 }, - { 0x2202, 38470 }, - { 0x0025, 38472 }, - { 0x00B6, 38474 }, - { 0x2669, 38476 }, - { 0x23B7, 38478 }, - { 0x005C, 38481 }, - { 0x29F7, 38483 }, - { 0x29F5, 38488 }, - { 0x27C8, 38491 }, - { 0x2765, 38495 }, - { 0x2767, 38500 }, - { 0x213A, 38504 }, - { 0x2613, 38507 }, - { 0x2108, 38508 }, - { 0x00A7, 38509 }, - { 0x2313, 38511 }, - { 0x2120, 38512 }, - { 0x746D, 38514 }, - { 0x7466, 38517 }, - { 0x746A, 38520 }, - { 0x7479, 38523 }, - { 0x7455, 38526 }, - { 0x7473, 38529 }, - { 0x7469, 38532 }, - { 0x7471, 38535 }, - { 0x747A, 38538 }, - { 0x7478, 38541 }, - { 0x7468, 38544 }, - { 0x7477, 38547 }, - { 0x745A, 38550 }, - { 0x747D, 38553 }, - { 0x7470, 38556 }, - { 0x7467, 38559 }, - { 0x747B, 38562 }, - { 0x7453, 38565 }, - { 0x745C, 38568 }, - { 0x747E, 38571 }, - { 0x7472, 38574 }, - { 0x746F, 38577 }, - { 0x7474, 38580 }, - { 0x7476, 38583 }, - { 0x746C, 38586 }, - { 0x7451, 38589 }, - { 0x745D, 38592 }, - { 0x7462, 38595 }, - { 0x7458, 38598 }, - { 0x747F, 38601 }, - { 0x745F, 38604 }, - { 0x745B, 38607 }, - { 0x7459, 38610 }, - { 0x7452, 38613 }, - { 0x7464, 38616 }, - { 0x7465, 38619 }, - { 0x7475, 38622 }, - { 0x7450, 38625 }, - { 0x746E, 38628 }, - { 0x7456, 38631 }, - { 0x745E, 38634 }, - { 0x746B, 38637 }, - { 0x747C, 38640 }, - { 0x7463, 38643 }, - { 0x7461, 38646 }, - { 0x7454, 38649 }, - { 0x7457, 38652 }, - { 0x7460, 38655 }, - { 0x29E2, 38658 }, - { 0x2A9D, 38660 }, - { 0x2A9E, 38663 }, - { 0x2A9F, 38666 }, - { 0x2AA0, 38672 }, - { 0x2A6C, 38678 }, - { 0x0DCA, 38681 }, - { 0x0D83, 38684 }, - { 0x0D82, 38687 }, - { 0x0DDA, 38690 }, - { 0x0DD3, 38695 }, - { 0x0DD6, 38700 }, - { 0x0DD1, 38705 }, - { 0x0DF3, 38710 }, - { 0x0DF2, 38715 }, - { 0x0DD2, 38720 }, - { 0x0DD4, 38725 }, - { 0x0DD0, 38730 }, - { 0x0DDB, 38735 }, - { 0x0DD9, 38740 }, - { 0x0DDD, 38744 }, - { 0x0DDC, 38751 }, - { 0x0DDE, 38757 }, - { 0x0DCF, 38763 }, - { 0x0DDF, 38767 }, - { 0x0DD8, 38771 }, - { 0x0DB9, 38775 }, - { 0x0D85, 38779 }, - { 0x0D91, 38782 }, - { 0x0D89, 38785 }, - { 0x0D94, 38788 }, - { 0x0D8B, 38791 }, - { 0x0D86, 38794 }, - { 0x0D87, 38797 }, - { 0x0D93, 38800 }, - { 0x0D96, 38803 }, - { 0x0DBD, 38806 }, - { 0x0DB1, 38810 }, - { 0x0DC3, 38814 }, - { 0x0D92, 38818 }, - { 0x0DC6, 38821 }, - { 0x0DC4, 38824 }, - { 0x0D8A, 38827 }, - { 0x0D9E, 38830 }, - { 0x0DB8, 38834 }, - { 0x0D95, 38837 }, - { 0x0DBB, 38840 }, - { 0x0DB3, 38843 }, - { 0x0D9F, 38847 }, - { 0x0DA6, 38851 }, - { 0x0DAC, 38855 }, - { 0x0DC1, 38859 }, - { 0x0DA5, 38863 }, - { 0x0DA4, 38868 }, - { 0x0D8C, 38872 }, - { 0x0DC0, 38875 }, - { 0x0DBA, 38878 }, - { 0x0D88, 38881 }, - { 0x0D8F, 38884 }, - { 0x0D8D, 38887 }, - { 0x0D90, 38890 }, - { 0x0D8E, 38893 }, - { 0x0DC5, 38896 }, - { 0x0DAB, 38900 }, - { 0x0DC2, 38904 }, - { 0x0DB6, 38908 }, - { 0x0DA0, 38912 }, - { 0x0DAF, 38916 }, - { 0x0D9C, 38920 }, - { 0x0DA2, 38924 }, - { 0x0D9A, 38928 }, - { 0x0DB4, 38932 }, - { 0x0DAD, 38936 }, - { 0x0DA9, 38940 }, - { 0x0DA7, 38944 }, - { 0x0DB7, 38948 }, - { 0x0DA1, 38952 }, - { 0x0DB0, 38956 }, - { 0x0D9D, 38960 }, - { 0x0DA3, 38964 }, - { 0x0D9B, 38968 }, - { 0x0DB5, 38972 }, - { 0x0DAE, 38976 }, - { 0x0DAA, 38980 }, - { 0x0DA8, 38984 }, - { 0x0DF4, 38988 }, - { 0x273A, 38991 }, - { 0x2A95, 38994 }, - { 0x2A97, 38999 }, - { 0x2A96, 39007 }, - { 0x2A98, 39012 }, - { 0x2A57, 39020 }, - { 0x2A58, 39023 }, - { 0x2AAA, 39026 }, - { 0x2AAC, 39028 }, - { 0x2603, 39033 }, - { 0x002F, 39034 }, - { 0x29F6, 39035 }, - { 0x2747, 39038 }, - { 0x22A1, 39039 }, - { 0x229E, 39042 }, - { 0x229F, 39044 }, - { 0x29C7, 39046 }, - { 0x22A0, 39049 }, - { 0x29C4, 39051 }, - { 0x29C8, 39055 }, - { 0x29C5, 39057 }, - { 0x29C6, 39061 }, - { 0x222F, 39063 }, - { 0x1714, 39065 }, - { 0x1712, 39068 }, - { 0x1713, 39072 }, - { 0x1700, 39076 }, - { 0x1701, 39079 }, - { 0x1702, 39082 }, - { 0x170A, 39085 }, - { 0x1707, 39088 }, - { 0x1704, 39091 }, - { 0x1711, 39094 }, - { 0x1703, 39097 }, - { 0x170E, 39100 }, - { 0x170B, 39103 }, - { 0x1708, 39106 }, - { 0x1709, 39109 }, - { 0x1710, 39112 }, - { 0x1706, 39115 }, - { 0x170F, 39118 }, - { 0x170C, 39121 }, - { 0x1705, 39124 }, - { 0x27A2, 39127 }, - { 0x27A3, 39131 }, - { 0x0FBE, 39135 }, - { 0x0FBF, 39139 }, - { 0x0F3D, 39146 }, - { 0x0F3C, 39151 }, - { 0x0F38, 39156 }, - { 0x0F3B, 39160 }, - { 0x0F3A, 39165 }, - { 0x0F11, 39170 }, - { 0x0F39, 39176 }, - { 0x0F07, 39180 }, - { 0x0F0A, 39187 }, - { 0x0F03, 39193 }, - { 0x0F02, 39202 }, - { 0x0F01, 39211 }, - { 0x0F14, 39218 }, - { 0x0F35, 39222 }, - { 0x0F37, 39228 }, - { 0x0F0E, 39234 }, - { 0x0F10, 39238 }, - { 0x0F12, 39243 }, - { 0x0F0D, 39248 }, - { 0x0F34, 39251 }, - { 0x0FD0, 39255 }, - { 0x0F09, 39262 }, - { 0x0F06, 39267 }, - { 0x0F13, 39275 }, - { 0x0F36, 39283 }, - { 0x0FD1, 39291 }, - { 0x0F08, 39298 }, - { 0x0F0F, 39302 }, - { 0x0F85, 39306 }, - { 0x0F05, 39309 }, - { 0x0F84, 39316 }, - { 0x0F04, 39319 }, - { 0x0F0C, 39326 }, - { 0x0F0B, 39331 }, - { 0x0F8A, 39335 }, - { 0x0F8B, 39340 }, - { 0x0F88, 39345 }, - { 0x0F86, 39350 }, - { 0x0F3F, 39354 }, - { 0x0F82, 39358 }, - { 0x0F83, 39364 }, - { 0x0F3E, 39368 }, - { 0x0F89, 39372 }, - { 0x0F1D, 39376 }, - { 0x0FCF, 39381 }, - { 0x0F1E, 39386 }, - { 0x0F1A, 39391 }, - { 0x0F1C, 39396 }, - { 0x0F1F, 39401 }, - { 0x0F1B, 39407 }, - { 0x0F7E, 39412 }, - { 0x0F7F, 39418 }, - { 0x0F87, 39422 }, - { 0x0F21, 39426 }, - { 0x0F26, 39429 }, - { 0x0F22, 39432 }, - { 0x0F25, 39435 }, - { 0x0F24, 39438 }, - { 0x0F2A, 39441 }, - { 0x0F2F, 39445 }, - { 0x0F2B, 39449 }, - { 0x0F2E, 39453 }, - { 0x0F2D, 39457 }, - { 0x0F32, 39461 }, - { 0x0F33, 39465 }, - { 0x0F31, 39469 }, - { 0x0F30, 39473 }, - { 0x0F2C, 39477 }, - { 0x0F29, 39481 }, - { 0x0F20, 39484 }, - { 0x0F28, 39487 }, - { 0x0F27, 39490 }, - { 0x0F23, 39493 }, - { 0x0F7A, 39496 }, - { 0x0F72, 39500 }, - { 0x0F7C, 39504 }, - { 0x0F74, 39508 }, - { 0x0F71, 39512 }, - { 0x0F7B, 39516 }, - { 0x0F73, 39520 }, - { 0x0F7D, 39524 }, - { 0x0F75, 39528 }, - { 0x0F78, 39532 }, - { 0x0F76, 39537 }, - { 0x0F79, 39542 }, - { 0x0F77, 39547 }, - { 0x0F80, 39552 }, - { 0x0F81, 39557 }, - { 0x0F68, 39562 }, - { 0x0F60, 39565 }, - { 0x0F56, 39568 }, - { 0x0F45, 39571 }, - { 0x0F51, 39574 }, - { 0x0F42, 39577 }, - { 0x0F67, 39580 }, - { 0x0F47, 39583 }, - { 0x0F40, 39586 }, - { 0x0F63, 39589 }, - { 0x0F58, 39592 }, - { 0x0F53, 39595 }, - { 0x0F54, 39598 }, - { 0x0F62, 39601 }, - { 0x0F66, 39604 }, - { 0x0F4F, 39607 }, - { 0x0F5D, 39610 }, - { 0x0F61, 39613 }, - { 0x0F5F, 39616 }, - { 0x0F57, 39619 }, - { 0x0F46, 39622 }, - { 0x0F4C, 39625 }, - { 0x0F52, 39628 }, - { 0x0F5B, 39631 }, - { 0x0F43, 39634 }, - { 0x0F41, 39637 }, - { 0x0F44, 39640 }, - { 0x0F4E, 39643 }, - { 0x0F49, 39646 }, - { 0x0F55, 39649 }, - { 0x0F64, 39652 }, - { 0x0F65, 39655 }, - { 0x0F50, 39658 }, - { 0x0F59, 39661 }, - { 0x0F4A, 39664 }, - { 0x0F5E, 39667 }, - { 0x0F4D, 39670 }, - { 0x0F5C, 39673 }, - { 0x0F69, 39676 }, - { 0x0F5A, 39679 }, - { 0x0F4B, 39682 }, - { 0x0F6A, 39685 }, - { 0x0FC9, 39689 }, - { 0x0FCC, 39693 }, - { 0x0FCB, 39699 }, - { 0x0FCA, 39705 }, - { 0x0FC5, 39711 }, - { 0x0FC7, 39715 }, - { 0x0FC4, 39721 }, - { 0x0FC8, 39725 }, - { 0x0FC6, 39729 }, - { 0x0F15, 39733 }, - { 0x0F16, 39738 }, - { 0x0F00, 39743 }, - { 0x0FB8, 39746 }, - { 0x0FB0, 39750 }, - { 0x0FA6, 39754 }, - { 0x0F95, 39758 }, - { 0x0FA1, 39762 }, - { 0x0F92, 39766 }, - { 0x0FB7, 39770 }, - { 0x0F97, 39774 }, - { 0x0F90, 39778 }, - { 0x0FB3, 39782 }, - { 0x0FA8, 39786 }, - { 0x0FA3, 39790 }, - { 0x0FA4, 39794 }, - { 0x0FB2, 39798 }, - { 0x0FB6, 39802 }, - { 0x0F9F, 39806 }, - { 0x0FAD, 39810 }, - { 0x0FB1, 39814 }, - { 0x0FAF, 39818 }, - { 0x0FA7, 39822 }, - { 0x0F96, 39826 }, - { 0x0F9C, 39830 }, - { 0x0FA2, 39834 }, - { 0x0FAB, 39838 }, - { 0x0F93, 39842 }, - { 0x0F91, 39846 }, - { 0x0F94, 39850 }, - { 0x0F9E, 39854 }, - { 0x0F99, 39858 }, - { 0x0FA5, 39862 }, - { 0x0FB4, 39866 }, - { 0x0FB5, 39870 }, - { 0x0FA0, 39874 }, - { 0x0FA9, 39878 }, - { 0x0F9A, 39882 }, - { 0x0FAE, 39886 }, - { 0x0F9D, 39890 }, - { 0x0FAC, 39894 }, - { 0x0FB9, 39898 }, - { 0x0FAA, 39902 }, - { 0x0F9B, 39906 }, - { 0x0FBC, 39910 }, - { 0x0FBA, 39915 }, - { 0x0FBB, 39920 }, - { 0x0F17, 39925 }, - { 0x0F19, 39932 }, - { 0x0F18, 39937 }, - { 0x0FC2, 39942 }, - { 0x0FC3, 39947 }, - { 0x0FC0, 39952 }, - { 0x0FC1, 39957 }, - { 0x2632, 39962 }, - { 0x2631, 39965 }, - { 0x2634, 39968 }, - { 0x2637, 39971 }, - { 0x2635, 39974 }, - { 0x2630, 39977 }, - { 0x2633, 39980 }, - { 0x2636, 39983 }, - { 0x219F, 39986 }, - { 0x2191, 39990 }, - { 0x2912, 39992 }, - { 0x21A5, 39996 }, - { 0x21B0, 40000 }, - { 0x21B1, 40005 }, - { 0x21DE, 40010 }, - { 0x2909, 40015 }, - { 0x21C5, 40020 }, - { 0x2B06, 40026 }, - { 0x21E7, 40029 }, - { 0x21EB, 40032 }, - { 0x21ED, 40037 }, - { 0x21EC, 40045 }, - { 0x21EA, 40053 }, - { 0x21EE, 40058 }, - { 0x21EF, 40062 }, - { 0x2E15, 40068 }, - { 0x21E1, 40070 }, - { 0x21D1, 40073 }, - { 0x21C8, 40076 }, - { 0x290A, 40079 }, - { 0x2958, 40082 }, - { 0x2960, 40089 }, - { 0x2963, 40096 }, - { 0x296E, 40107 }, - { 0x2954, 40118 }, - { 0x295C, 40125 }, - { 0x21BF, 40132 }, - { 0x21BE, 40137 }, - { 0x27F0, 40142 }, - { 0x2949, 40145 }, - { 0x270C, 40151 }, - { 0x26A0, 40153 }, - { 0x270D, 40155 }, - { 0x206D, 40157 }, - { 0x206B, 40161 }, - { 0x2708, 40164 }, - { 0x212B, 40165 }, - { 0x2652, 40167 }, - { 0x0589, 40168 }, - { 0x055D, 40171 }, - { 0x056E, 40173 }, - { 0x0581, 40177 }, - { 0x0564, 40181 }, - { 0x0567, 40185 }, - { 0x0568, 40189 }, - { 0x0570, 40193 }, - { 0x0571, 40197 }, - { 0x0585, 40201 }, - { 0x057C, 40205 }, - { 0x0569, 40209 }, - { 0x0578, 40213 }, - { 0x0575, 40217 }, - { 0x0566, 40221 }, - { 0x0561, 40225 }, - { 0x0562, 40229 }, - { 0x0579, 40233 }, - { 0x0565, 40237 }, - { 0x0586, 40241 }, - { 0x0563, 40245 }, - { 0x056B, 40249 }, - { 0x0584, 40253 }, - { 0x056F, 40257 }, - { 0x0574, 40261 }, - { 0x0576, 40265 }, - { 0x057A, 40269 }, - { 0x0580, 40273 }, - { 0x057D, 40277 }, - { 0x0577, 40281 }, - { 0x057E, 40285 }, - { 0x056D, 40289 }, - { 0x056A, 40293 }, - { 0x0573, 40297 }, - { 0x0572, 40301 }, - { 0x057B, 40305 }, - { 0x056C, 40309 }, - { 0x0583, 40313 }, - { 0x057F, 40317 }, - { 0x0582, 40321 }, - { 0x0587, 40325 }, - { 0x6B14, 40330 }, - { 0x6B15, 40335 }, - { 0x6B13, 40340 }, - { 0x6B17, 40345 }, - { 0x6B16, 40350 }, - { 0x058A, 40355 }, - { 0x053E, 40357 }, - { 0x0551, 40361 }, - { 0x0534, 40365 }, - { 0x0537, 40369 }, - { 0x0538, 40373 }, - { 0x0540, 40377 }, - { 0x0541, 40381 }, - { 0x0555, 40385 }, - { 0x054C, 40389 }, - { 0x0539, 40393 }, - { 0x0548, 40397 }, - { 0x0545, 40401 }, - { 0x0536, 40405 }, - { 0x0531, 40409 }, - { 0x0532, 40413 }, - { 0x0549, 40417 }, - { 0x0535, 40421 }, - { 0x0556, 40425 }, - { 0x0533, 40429 }, - { 0x053B, 40433 }, - { 0x0554, 40437 }, - { 0x053F, 40441 }, - { 0x0544, 40445 }, - { 0x0546, 40449 }, - { 0x054A, 40453 }, - { 0x0550, 40457 }, - { 0x054D, 40461 }, - { 0x0547, 40465 }, - { 0x054E, 40469 }, - { 0x053D, 40473 }, - { 0x053A, 40477 }, - { 0x0543, 40481 }, - { 0x0542, 40485 }, - { 0x054B, 40489 }, - { 0x053C, 40493 }, - { 0x0553, 40497 }, - { 0x054F, 40501 }, - { 0x0552, 40505 }, - { 0x055B, 40509 }, - { 0x0559, 40512 }, - { 0x055E, 40518 }, - { 0x055A, 40521 }, - { 0x055C, 40523 }, - { 0x055F, 40526 }, - { 0x002A, 40529 }, - { 0x2217, 40530 }, - { 0x2042, 40532 }, - { 0x1B44, 40533 }, - { 0x1B00, 40536 }, - { 0x1B01, 40540 }, - { 0x1B04, 40544 }, - { 0x1B02, 40547 }, - { 0x1B03, 40550 }, - { 0x1B34, 40553 }, - { 0x1B5E, 40556 }, - { 0x1B5F, 40559 }, - { 0x1B5D, 40562 }, - { 0x1B51, 40565 }, - { 0x1B56, 40568 }, - { 0x1B52, 40571 }, - { 0x1B55, 40574 }, - { 0x1B54, 40577 }, - { 0x1B59, 40580 }, - { 0x1B50, 40583 }, - { 0x1B58, 40586 }, - { 0x1B57, 40589 }, - { 0x1B53, 40592 }, - { 0x1B5A, 40595 }, - { 0x1B3C, 40597 }, - { 0x1B3D, 40602 }, - { 0x1B3A, 40608 }, - { 0x1B3B, 40613 }, - { 0x1B36, 40619 }, - { 0x1B37, 40623 }, - { 0x1B38, 40628 }, - { 0x1B39, 40632 }, - { 0x1B42, 40637 }, - { 0x1B43, 40641 }, - { 0x1B3E, 40646 }, - { 0x1B3F, 40650 }, - { 0x1B41, 40655 }, - { 0x1B40, 40661 }, - { 0x1B35, 40666 }, - { 0x1B5C, 40670 }, - { 0x1B29, 40672 }, - { 0x1B2A, 40675 }, - { 0x1B18, 40679 }, - { 0x1B19, 40682 }, - { 0x1B24, 40686 }, - { 0x1B25, 40689 }, - { 0x1B1F, 40693 }, - { 0x1B20, 40698 }, - { 0x1B48, 40703 }, - { 0x1B15, 40707 }, - { 0x1B16, 40710 }, - { 0x1B33, 40714 }, - { 0x1B1A, 40717 }, - { 0x1B1B, 40720 }, - { 0x1B13, 40724 }, - { 0x1B14, 40727 }, - { 0x1B2E, 40731 }, - { 0x1B0D, 40734 }, - { 0x1B0E, 40738 }, - { 0x1B2B, 40743 }, - { 0x1B26, 40746 }, - { 0x1B21, 40749 }, - { 0x1B27, 40753 }, - { 0x1B28, 40756 }, - { 0x1B2D, 40760 }, - { 0x1B0B, 40763 }, - { 0x1B0C, 40767 }, - { 0x1B32, 40772 }, - { 0x1B30, 40775 }, - { 0x1B31, 40779 }, - { 0x1B22, 40783 }, - { 0x1B23, 40786 }, - { 0x1B1D, 40790 }, - { 0x1B1E, 40794 }, - { 0x1B49, 40799 }, - { 0x1B2F, 40803 }, - { 0x1B2C, 40806 }, - { 0x1B45, 40809 }, - { 0x1B17, 40813 }, - { 0x1B1C, 40816 }, - { 0x1B4A, 40819 }, - { 0x1B46, 40823 }, - { 0x1B47, 40827 }, - { 0x1B05, 40831 }, - { 0x1B06, 40834 }, - { 0x1B0F, 40838 }, - { 0x1B07, 40841 }, - { 0x1B08, 40844 }, - { 0x1B11, 40848 }, - { 0x1B12, 40851 }, - { 0x1B09, 40855 }, - { 0x1B0A, 40858 }, - { 0x1B10, 40862 }, - { 0x1B4B, 40865 }, - { 0x1B5B, 40869 }, - { 0x1B64, 40871 }, - { 0x1B6A, 40875 }, - { 0x1B65, 40880 }, - { 0x1B62, 40885 }, - { 0x1B66, 40889 }, - { 0x1B61, 40893 }, - { 0x1B63, 40897 }, - { 0x1B67, 40901 }, - { 0x1B69, 40905 }, - { 0x1B68, 40909 }, - { 0x1B73, 40913 }, - { 0x1B72, 40918 }, - { 0x1B6C, 40923 }, - { 0x1B6B, 40928 }, - { 0x1B6E, 40933 }, - { 0x1B71, 40938 }, - { 0x1B6D, 40945 }, - { 0x1B70, 40950 }, - { 0x1B6F, 40957 }, - { 0x1B78, 40962 }, - { 0x1B7C, 40968 }, - { 0x1B79, 40974 }, - { 0x1B7A, 40980 }, - { 0x1B7B, 40986 }, - { 0x1B75, 40992 }, - { 0x1B74, 40998 }, - { 0x1B77, 41004 }, - { 0x1B76, 41010 }, - { 0x1B60, 41016 }, - { 0x31B7, 41018 }, - { 0x31B6, 41022 }, - { 0x31B4, 41026 }, - { 0x31B5, 41030 }, - { 0x311A, 41034 }, - { 0x3105, 41037 }, - { 0x3118, 41040 }, - { 0x3109, 41043 }, - { 0x311C, 41046 }, - { 0x3108, 41049 }, - { 0x310D, 41052 }, - { 0x310F, 41055 }, - { 0x3127, 41058 }, - { 0x3110, 41061 }, - { 0x310E, 41064 }, - { 0x310C, 41067 }, - { 0x3107, 41070 }, - { 0x310B, 41073 }, - { 0x311B, 41076 }, - { 0x3106, 41079 }, - { 0x3111, 41082 }, - { 0x3116, 41085 }, - { 0x3119, 41088 }, - { 0x310A, 41091 }, - { 0x3128, 41094 }, - { 0x312A, 41097 }, - { 0x3112, 41100 }, - { 0x3117, 41103 }, - { 0x311E, 41106 }, - { 0x31B0, 41109 }, - { 0x3122, 41112 }, - { 0x3120, 41115 }, - { 0x31A0, 41118 }, - { 0x3114, 41121 }, - { 0x31A4, 41124 }, - { 0x311D, 41127 }, - { 0x311F, 41130 }, - { 0x3123, 41133 }, - { 0x3126, 41136 }, - { 0x312C, 41139 }, - { 0x31A3, 41142 }, - { 0x31AC, 41145 }, - { 0x31A8, 41148 }, - { 0x3129, 41151 }, - { 0x31A2, 41154 }, - { 0x312B, 41157 }, - { 0x31B1, 41160 }, - { 0x31A6, 41163 }, - { 0x3121, 41166 }, - { 0x3115, 41169 }, - { 0x3113, 41172 }, - { 0x31A1, 41175 }, - { 0x3124, 41178 }, - { 0x31A9, 41181 }, - { 0x3125, 41184 }, - { 0x31A5, 41187 }, - { 0x31AA, 41190 }, - { 0x31AD, 41193 }, - { 0x31B2, 41196 }, - { 0x31A7, 41199 }, - { 0x31AB, 41202 }, - { 0x31AE, 41205 }, - { 0x31AF, 41208 }, - { 0x31B3, 41211 }, - { 0x1A1F, 41214 }, - { 0x1A19, 41218 }, - { 0x1A17, 41222 }, - { 0x1A1A, 41226 }, - { 0x1A18, 41230 }, - { 0x1A1B, 41234 }, - { 0x1A15, 41238 }, - { 0x1A05, 41241 }, - { 0x1A0C, 41244 }, - { 0x1A09, 41247 }, - { 0x1A01, 41250 }, - { 0x1A16, 41253 }, - { 0x1A0D, 41256 }, - { 0x1A00, 41259 }, - { 0x1A12, 41262 }, - { 0x1A06, 41265 }, - { 0x1A0A, 41268 }, - { 0x1A04, 41271 }, - { 0x1A11, 41274 }, - { 0x1A14, 41277 }, - { 0x1A08, 41280 }, - { 0x1A13, 41283 }, - { 0x1A10, 41286 }, - { 0x1A07, 41289 }, - { 0x1A02, 41292 }, - { 0x1A0B, 41295 }, - { 0x1A0E, 41298 }, - { 0x1A03, 41301 }, - { 0x1A0F, 41304 }, - { 0x1A1E, 41307 }, - { 0x25CE, 41309 }, - { 0x2624, 41310 }, - { 0x140A, 41311 }, - { 0x14A1, 41314 }, - { 0x1401, 41317 }, - { 0x155D, 41320 }, - { 0x1403, 41323 }, - { 0x1483, 41326 }, - { 0x14EA, 41329 }, - { 0x14BB, 41332 }, - { 0x14D0, 41335 }, - { 0x1405, 41338 }, - { 0x1449, 41341 }, - { 0x1585, 41344 }, - { 0x1550, 41347 }, - { 0x1505, 41350 }, - { 0x1466, 41353 }, - { 0x153E, 41356 }, - { 0x140B, 41359 }, - { 0x141C, 41362 }, - { 0x142E, 41365 }, - { 0x1490, 41368 }, - { 0x1489, 41371 }, - { 0x148B, 41374 }, - { 0x148D, 41377 }, - { 0x142B, 41380 }, - { 0x1559, 41383 }, - { 0x1553, 41386 }, - { 0x1555, 41389 }, - { 0x1557, 41392 }, - { 0x157D, 41395 }, - { 0x1404, 41398 }, - { 0x142C, 41401 }, - { 0x1472, 41404 }, - { 0x146B, 41407 }, - { 0x146D, 41410 }, - { 0x146F, 41413 }, - { 0x1484, 41416 }, - { 0x14DA, 41419 }, - { 0x14D3, 41422 }, - { 0x15A6, 41425 }, - { 0x14D5, 41428 }, - { 0x14D7, 41431 }, - { 0x14AA, 41434 }, - { 0x14A3, 41437 }, - { 0x14BD, 41440 }, - { 0x14A5, 41443 }, - { 0x14A7, 41446 }, - { 0x14C7, 41449 }, - { 0x14C0, 41452 }, - { 0x1595, 41455 }, - { 0x14D2, 41458 }, - { 0x14C2, 41461 }, - { 0x14C4, 41464 }, - { 0x142D, 41467 }, - { 0x1406, 41470 }, - { 0x1438, 41473 }, - { 0x142F, 41476 }, - { 0x1431, 41479 }, - { 0x1433, 41482 }, - { 0x1583, 41485 }, - { 0x157F, 41488 }, - { 0x1581, 41491 }, - { 0x154B, 41494 }, - { 0x1542, 41497 }, - { 0x1546, 41500 }, - { 0x1548, 41503 }, - { 0x14F4, 41506 }, - { 0x14ED, 41509 }, - { 0x1525, 41512 }, - { 0x14EF, 41515 }, - { 0x14F1, 41518 }, - { 0x1507, 41521 }, - { 0x1455, 41524 }, - { 0x144C, 41527 }, - { 0x156A, 41530 }, - { 0x144E, 41533 }, - { 0x1450, 41536 }, - { 0x1417, 41539 }, - { 0x140C, 41542 }, - { 0x140E, 41545 }, - { 0x1412, 41548 }, - { 0x152D, 41551 }, - { 0x1526, 41554 }, - { 0x1528, 41557 }, - { 0x152A, 41560 }, - { 0x1402, 41563 }, - { 0x1491, 41566 }, - { 0x166D, 41569 }, - { 0x148C, 41573 }, - { 0x148E, 41576 }, - { 0x149C, 41579 }, - { 0x1492, 41582 }, - { 0x1494, 41585 }, - { 0x1498, 41588 }, - { 0x155A, 41591 }, - { 0x1556, 41594 }, - { 0x1558, 41597 }, - { 0x1473, 41600 }, - { 0x146E, 41603 }, - { 0x1470, 41606 }, - { 0x147E, 41609 }, - { 0x1474, 41612 }, - { 0x1476, 41615 }, - { 0x147A, 41618 }, - { 0x14DB, 41621 }, - { 0x15A4, 41624 }, - { 0x15A0, 41627 }, - { 0x15A2, 41630 }, - { 0x14D6, 41633 }, - { 0x14D8, 41636 }, - { 0x14E6, 41639 }, - { 0x14DC, 41642 }, - { 0x14DE, 41645 }, - { 0x14E2, 41648 }, - { 0x14AB, 41651 }, - { 0x14A6, 41654 }, - { 0x14A8, 41657 }, - { 0x14B6, 41660 }, - { 0x14AC, 41663 }, - { 0x14AE, 41666 }, - { 0x14B2, 41669 }, - { 0x14C8, 41672 }, - { 0x1593, 41675 }, - { 0x158F, 41678 }, - { 0x1591, 41681 }, - { 0x14C3, 41684 }, - { 0x1596, 41687 }, - { 0x14C5, 41690 }, - { 0x14CB, 41693 }, - { 0x14C9, 41696 }, - { 0x1439, 41699 }, - { 0x1432, 41702 }, - { 0x1434, 41705 }, - { 0x1444, 41708 }, - { 0x143A, 41711 }, - { 0x143C, 41714 }, - { 0x1440, 41717 }, - { 0x1584, 41720 }, - { 0x166F, 41723 }, - { 0x1580, 41726 }, - { 0x1582, 41729 }, - { 0x154C, 41732 }, - { 0x1547, 41735 }, - { 0x1549, 41738 }, - { 0x14F5, 41741 }, - { 0x1515, 41744 }, - { 0x1510, 41747 }, - { 0x1511, 41750 }, - { 0x1513, 41753 }, - { 0x14F0, 41756 }, - { 0x14F2, 41759 }, - { 0x1500, 41762 }, - { 0x14F6, 41765 }, - { 0x14F8, 41768 }, - { 0x14FC, 41771 }, - { 0x1456, 41774 }, - { 0x1566, 41777 }, - { 0x155E, 41780 }, - { 0x1560, 41783 }, - { 0x1564, 41786 }, - { 0x144F, 41789 }, - { 0x1451, 41792 }, - { 0x146A, 41795 }, - { 0x1467, 41798 }, - { 0x156F, 41801 }, - { 0x1468, 41804 }, - { 0x1469, 41807 }, - { 0x1461, 41810 }, - { 0x1457, 41813 }, - { 0x1459, 41816 }, - { 0x145D, 41819 }, - { 0x1573, 41822 }, - { 0x1570, 41825 }, - { 0x1571, 41828 }, - { 0x1572, 41831 }, - { 0x1419, 41834 }, - { 0x1410, 41837 }, - { 0x1414, 41840 }, - { 0x152E, 41843 }, - { 0x1529, 41846 }, - { 0x152B, 41849 }, - { 0x1539, 41852 }, - { 0x152F, 41855 }, - { 0x1531, 41858 }, - { 0x1535, 41861 }, - { 0x148A, 41864 }, - { 0x149E, 41867 }, - { 0x1496, 41870 }, - { 0x149A, 41873 }, - { 0x1554, 41876 }, - { 0x166E, 41879 }, - { 0x155B, 41883 }, - { 0x146C, 41886 }, - { 0x1480, 41889 }, - { 0x1478, 41892 }, - { 0x147C, 41895 }, - { 0x14D4, 41898 }, - { 0x15A5, 41901 }, - { 0x15A1, 41904 }, - { 0x15A3, 41907 }, - { 0x14E8, 41910 }, - { 0x14E0, 41913 }, - { 0x14E4, 41916 }, - { 0x14A4, 41919 }, - { 0x14B8, 41922 }, - { 0x14B0, 41925 }, - { 0x14B4, 41928 }, - { 0x14C1, 41931 }, - { 0x1594, 41934 }, - { 0x1670, 41937 }, - { 0x1590, 41940 }, - { 0x1592, 41943 }, - { 0x1675, 41946 }, - { 0x1671, 41949 }, - { 0x1673, 41952 }, - { 0x14CD, 41955 }, - { 0x1430, 41958 }, - { 0x1446, 41961 }, - { 0x143E, 41964 }, - { 0x1442, 41967 }, - { 0x157E, 41970 }, - { 0x1545, 41973 }, - { 0x154E, 41976 }, - { 0x14EE, 41979 }, - { 0x1516, 41982 }, - { 0x1512, 41985 }, - { 0x1514, 41988 }, - { 0x1521, 41991 }, - { 0x1517, 41994 }, - { 0x1519, 41997 }, - { 0x151D, 42000 }, - { 0x1502, 42003 }, - { 0x14FA, 42006 }, - { 0x14FE, 42009 }, - { 0x144D, 42012 }, - { 0x1567, 42015 }, - { 0x1562, 42018 }, - { 0x1565, 42021 }, - { 0x1589, 42024 }, - { 0x1586, 42027 }, - { 0x1587, 42030 }, - { 0x1588, 42033 }, - { 0x156E, 42036 }, - { 0x156B, 42039 }, - { 0x156C, 42042 }, - { 0x156D, 42045 }, - { 0x1463, 42048 }, - { 0x145B, 42051 }, - { 0x145F, 42054 }, - { 0x1527, 42057 }, - { 0x153B, 42060 }, - { 0x1533, 42063 }, - { 0x1537, 42066 }, - { 0x1422, 42069 }, - { 0x142A, 42075 }, - { 0x1429, 42080 }, - { 0x1424, 42084 }, - { 0x141F, 42088 }, - { 0x1420, 42092 }, - { 0x1423, 42096 }, - { 0x1428, 42102 }, - { 0x1421, 42108 }, - { 0x1425, 42114 }, - { 0x1426, 42119 }, - { 0x1427, 42126 }, - { 0x158E, 42131 }, - { 0x1676, 42134 }, - { 0x1672, 42137 }, - { 0x1674, 42140 }, - { 0x1523, 42143 }, - { 0x151B, 42146 }, - { 0x151F, 42149 }, - { 0x1568, 42152 }, - { 0x14EC, 42155 }, - { 0x1552, 42159 }, - { 0x155F, 42163 }, - { 0x1561, 42167 }, - { 0x1563, 42171 }, - { 0x1543, 42175 }, - { 0x14BF, 42179 }, - { 0x15C3, 42183 }, - { 0x15C0, 42187 }, - { 0x15C1, 42191 }, - { 0x15C2, 42195 }, - { 0x161A, 42199 }, - { 0x1615, 42203 }, - { 0x14A2, 42207 }, - { 0x1541, 42211 }, - { 0x159A, 42215 }, - { 0x1597, 42219 }, - { 0x1598, 42223 }, - { 0x1599, 42227 }, - { 0x141D, 42231 }, - { 0x1407, 42235 }, - { 0x148F, 42239 }, - { 0x1471, 42243 }, - { 0x14D9, 42247 }, - { 0x14A9, 42251 }, - { 0x14C6, 42255 }, - { 0x1435, 42259 }, - { 0x14F3, 42263 }, - { 0x1452, 42267 }, - { 0x152C, 42271 }, - { 0x1448, 42275 }, - { 0x15AF, 42279 }, - { 0x144B, 42283 }, - { 0x1409, 42287 }, - { 0x15EE, 42291 }, - { 0x1646, 42295 }, - { 0x1454, 42299 }, - { 0x1408, 42303 }, - { 0x15F4, 42307 }, - { 0x15F1, 42311 }, - { 0x15F3, 42315 }, - { 0x15F0, 42319 }, - { 0x15EF, 42323 }, - { 0x1437, 42327 }, - { 0x161B, 42331 }, - { 0x1617, 42335 }, - { 0x1619, 42339 }, - { 0x1616, 42343 }, - { 0x1614, 42347 }, - { 0x1601, 42351 }, - { 0x1627, 42355 }, - { 0x1624, 42359 }, - { 0x1626, 42363 }, - { 0x1623, 42367 }, - { 0x1622, 42371 }, - { 0x160D, 42375 }, - { 0x160A, 42379 }, - { 0x160C, 42383 }, - { 0x1609, 42387 }, - { 0x1608, 42391 }, - { 0x1607, 42395 }, - { 0x1604, 42399 }, - { 0x14D1, 42403 }, - { 0x1606, 42407 }, - { 0x1603, 42411 }, - { 0x1602, 42415 }, - { 0x15ED, 42419 }, - { 0x15EA, 42423 }, - { 0x15EC, 42427 }, - { 0x15E9, 42431 }, - { 0x15E8, 42435 }, - { 0x15CF, 42439 }, - { 0x15CC, 42443 }, - { 0x15CE, 42447 }, - { 0x15CB, 42451 }, - { 0x15CA, 42455 }, - { 0x1653, 42459 }, - { 0x1650, 42463 }, - { 0x165A, 42467 }, - { 0x1652, 42471 }, - { 0x164F, 42475 }, - { 0x164E, 42479 }, - { 0x15D5, 42483 }, - { 0x15D2, 42487 }, - { 0x15D4, 42491 }, - { 0x15D1, 42495 }, - { 0x15D0, 42499 }, - { 0x1613, 42503 }, - { 0x1610, 42507 }, - { 0x1612, 42511 }, - { 0x160F, 42515 }, - { 0x160E, 42519 }, - { 0x1645, 42523 }, - { 0x1642, 42527 }, - { 0x1644, 42531 }, - { 0x1641, 42535 }, - { 0x1640, 42539 }, - { 0x1666, 42543 }, - { 0x1663, 42547 }, - { 0x1665, 42551 }, - { 0x1662, 42555 }, - { 0x1661, 42559 }, - { 0x1453, 42563 }, - { 0x162D, 42567 }, - { 0x162A, 42571 }, - { 0x162C, 42575 }, - { 0x1629, 42579 }, - { 0x1628, 42583 }, - { 0x164D, 42587 }, - { 0x164A, 42591 }, - { 0x164C, 42595 }, - { 0x1649, 42599 }, - { 0x1648, 42603 }, - { 0x15F2, 42607 }, - { 0x15C9, 42611 }, - { 0x15C6, 42615 }, - { 0x15C8, 42619 }, - { 0x15C5, 42623 }, - { 0x15C4, 42627 }, - { 0x1436, 42631 }, - { 0x15DB, 42635 }, - { 0x15D8, 42639 }, - { 0x15DA, 42643 }, - { 0x15D7, 42647 }, - { 0x15D6, 42651 }, - { 0x1618, 42655 }, - { 0x1621, 42659 }, - { 0x161E, 42663 }, - { 0x1620, 42667 }, - { 0x161D, 42671 }, - { 0x161C, 42675 }, - { 0x15FA, 42679 }, - { 0x15F7, 42683 }, - { 0x15F9, 42687 }, - { 0x15F6, 42691 }, - { 0x15F5, 42695 }, - { 0x1600, 42699 }, - { 0x15FD, 42703 }, - { 0x15FF, 42707 }, - { 0x15FC, 42711 }, - { 0x15FB, 42715 }, - { 0x1625, 42719 }, - { 0x1633, 42723 }, - { 0x1630, 42727 }, - { 0x1632, 42731 }, - { 0x162F, 42735 }, - { 0x162E, 42739 }, - { 0x160B, 42743 }, - { 0x1605, 42747 }, - { 0x15EB, 42751 }, - { 0x15CD, 42755 }, - { 0x1651, 42759 }, - { 0x1659, 42763 }, - { 0x1656, 42767 }, - { 0x1658, 42771 }, - { 0x1655, 42775 }, - { 0x1654, 42779 }, - { 0x15E1, 42783 }, - { 0x15DE, 42787 }, - { 0x15E0, 42791 }, - { 0x15DD, 42795 }, - { 0x15DC, 42799 }, - { 0x163F, 42803 }, - { 0x163C, 42807 }, - { 0x163E, 42811 }, - { 0x163B, 42815 }, - { 0x163A, 42819 }, - { 0x1660, 42823 }, - { 0x165D, 42827 }, - { 0x165F, 42831 }, - { 0x165C, 42835 }, - { 0x165B, 42839 }, - { 0x15E7, 42843 }, - { 0x15E4, 42847 }, - { 0x15E6, 42851 }, - { 0x15E3, 42855 }, - { 0x15E2, 42859 }, - { 0x15D3, 42863 }, - { 0x1611, 42867 }, - { 0x1643, 42871 }, - { 0x1664, 42875 }, - { 0x162B, 42879 }, - { 0x164B, 42883 }, - { 0x15C7, 42887 }, - { 0x15D9, 42891 }, - { 0x161F, 42895 }, - { 0x15F8, 42899 }, - { 0x15FE, 42903 }, - { 0x1631, 42907 }, - { 0x1657, 42911 }, - { 0x15DF, 42915 }, - { 0x163D, 42919 }, - { 0x1639, 42923 }, - { 0x1636, 42927 }, - { 0x1638, 42931 }, - { 0x1635, 42935 }, - { 0x1634, 42939 }, - { 0x165E, 42943 }, - { 0x15E5, 42947 }, - { 0x166C, 42951 }, - { 0x1669, 42955 }, - { 0x166B, 42959 }, - { 0x1668, 42963 }, - { 0x1667, 42967 }, - { 0x1637, 42971 }, - { 0x166A, 42975 }, - { 0x1647, 42979 }, - { 0x141E, 42984 }, - { 0x150B, 42988 }, - { 0x150A, 42992 }, - { 0x141B, 42996 }, - { 0x1416, 43000 }, - { 0x14A0, 43004 }, - { 0x1482, 43008 }, - { 0x14BA, 43012 }, - { 0x14CF, 43016 }, - { 0x150F, 43020 }, - { 0x150E, 43024 }, - { 0x150C, 43028 }, - { 0x150D, 43032 }, - { 0x1504, 43036 }, - { 0x1465, 43040 }, - { 0x153D, 43044 }, - { 0x157B, 43048 }, - { 0x1579, 43052 }, - { 0x1574, 43056 }, - { 0x1575, 43060 }, - { 0x1577, 43064 }, - { 0x157A, 43068 }, - { 0x1576, 43072 }, - { 0x1578, 43076 }, - { 0x157C, 43080 }, - { 0x15AE, 43084 }, - { 0x15AC, 43088 }, - { 0x15A7, 43092 }, - { 0x15A8, 43096 }, - { 0x15AA, 43100 }, - { 0x15AD, 43104 }, - { 0x15A9, 43108 }, - { 0x15AB, 43112 }, - { 0x15B3, 43116 }, - { 0x15B0, 43120 }, - { 0x15B1, 43124 }, - { 0x15B2, 43128 }, - { 0x1508, 43132 }, - { 0x15BF, 43136 }, - { 0x15BC, 43140 }, - { 0x15BD, 43144 }, - { 0x15BE, 43148 }, - { 0x15BB, 43152 }, - { 0x15B8, 43156 }, - { 0x15B9, 43160 }, - { 0x15BA, 43164 }, - { 0x15B7, 43168 }, - { 0x15B4, 43172 }, - { 0x15B5, 43176 }, - { 0x15B6, 43180 }, - { 0x14EB, 43184 }, - { 0x14BC, 43188 }, - { 0x144A, 43192 }, - { 0x1551, 43196 }, - { 0x1540, 43200 }, - { 0x154D, 43204 }, - { 0x1544, 43208 }, - { 0x154A, 43212 }, - { 0x158D, 43216 }, - { 0x158A, 43220 }, - { 0x158B, 43224 }, - { 0x158C, 43228 }, - { 0x1418, 43232 }, - { 0x140D, 43236 }, - { 0x140F, 43240 }, - { 0x1413, 43244 }, - { 0x149D, 43248 }, - { 0x1493, 43252 }, - { 0x1495, 43256 }, - { 0x1499, 43260 }, - { 0x147F, 43264 }, - { 0x1475, 43268 }, - { 0x1477, 43272 }, - { 0x147B, 43276 }, - { 0x14E7, 43280 }, - { 0x14DD, 43284 }, - { 0x14DF, 43288 }, - { 0x14E3, 43292 }, - { 0x14B7, 43296 }, - { 0x14AD, 43300 }, - { 0x14AF, 43304 }, - { 0x14B3, 43308 }, - { 0x14CC, 43312 }, - { 0x14CA, 43316 }, - { 0x1445, 43320 }, - { 0x143B, 43324 }, - { 0x143D, 43328 }, - { 0x1441, 43332 }, - { 0x1501, 43336 }, - { 0x14F7, 43340 }, - { 0x14F9, 43344 }, - { 0x14FD, 43348 }, - { 0x1462, 43352 }, - { 0x1458, 43356 }, - { 0x145A, 43360 }, - { 0x145E, 43364 }, - { 0x141A, 43368 }, - { 0x1411, 43372 }, - { 0x1415, 43376 }, - { 0x153A, 43380 }, - { 0x1530, 43384 }, - { 0x1532, 43388 }, - { 0x1536, 43392 }, - { 0x149F, 43396 }, - { 0x1497, 43400 }, - { 0x149B, 43404 }, - { 0x155C, 43408 }, - { 0x1481, 43412 }, - { 0x1479, 43416 }, - { 0x147D, 43420 }, - { 0x14E9, 43424 }, - { 0x14E1, 43428 }, - { 0x14E5, 43432 }, - { 0x14B9, 43436 }, - { 0x14B1, 43440 }, - { 0x14B5, 43444 }, - { 0x14CE, 43448 }, - { 0x1447, 43452 }, - { 0x143F, 43456 }, - { 0x1443, 43460 }, - { 0x154F, 43464 }, - { 0x1522, 43468 }, - { 0x1518, 43472 }, - { 0x151A, 43476 }, - { 0x151E, 43480 }, - { 0x1503, 43484 }, - { 0x14FB, 43488 }, - { 0x14FF, 43492 }, - { 0x1464, 43496 }, - { 0x145C, 43500 }, - { 0x1460, 43504 }, - { 0x153C, 43508 }, - { 0x1534, 43512 }, - { 0x1538, 43516 }, - { 0x1524, 43520 }, - { 0x151C, 43524 }, - { 0x1520, 43528 }, - { 0x1569, 43532 }, - { 0x14BE, 43536 }, - { 0x1506, 43540 }, - { 0x153F, 43544 }, - { 0x1509, 43548 }, - { 0x159F, 43552 }, - { 0x159E, 43556 }, - { 0x159B, 43560 }, - { 0x159C, 43564 }, - { 0x159D, 43568 }, - { 0x1488, 43572 }, - { 0x1485, 43576 }, - { 0x1486, 43580 }, - { 0x1487, 43584 }, - { 0x13A0, 43588 }, - { 0x13A1, 43591 }, - { 0x13A2, 43594 }, - { 0x13A3, 43597 }, - { 0x13CD, 43600 }, - { 0x13A4, 43603 }, - { 0x13A5, 43606 }, - { 0x13D3, 43609 }, - { 0x13D5, 43612 }, - { 0x13D7, 43615 }, - { 0x13D9, 43618 }, - { 0x13DA, 43621 }, - { 0x13DB, 43624 }, - { 0x13A6, 43627 }, - { 0x13A8, 43630 }, - { 0x13A9, 43633 }, - { 0x13AA, 43636 }, - { 0x13AB, 43639 }, - { 0x13AC, 43642 }, - { 0x13AD, 43645 }, - { 0x13AE, 43648 }, - { 0x13AF, 43651 }, - { 0x13B0, 43654 }, - { 0x13B1, 43657 }, - { 0x13B2, 43660 }, - { 0x13A7, 43663 }, - { 0x13B3, 43666 }, - { 0x13B4, 43669 }, - { 0x13B5, 43672 }, - { 0x13B6, 43675 }, - { 0x13B7, 43678 }, - { 0x13B8, 43681 }, - { 0x13B9, 43684 }, - { 0x13BA, 43687 }, - { 0x13BB, 43690 }, - { 0x13BC, 43693 }, - { 0x13BD, 43696 }, - { 0x13BE, 43699 }, - { 0x13C1, 43702 }, - { 0x13C2, 43705 }, - { 0x13C3, 43708 }, - { 0x13C4, 43711 }, - { 0x13C5, 43714 }, - { 0x13CC, 43717 }, - { 0x13CE, 43720 }, - { 0x13CF, 43723 }, - { 0x13D0, 43726 }, - { 0x13D1, 43729 }, - { 0x13D2, 43732 }, - { 0x13D4, 43735 }, - { 0x13D6, 43738 }, - { 0x13D8, 43741 }, - { 0x13E9, 43744 }, - { 0x13EA, 43747 }, - { 0x13EB, 43750 }, - { 0x13EC, 43753 }, - { 0x13ED, 43756 }, - { 0x13EE, 43759 }, - { 0x13EF, 43762 }, - { 0x13F0, 43765 }, - { 0x13F1, 43768 }, - { 0x13F2, 43771 }, - { 0x13F3, 43774 }, - { 0x13F4, 43777 }, - { 0x13DC, 43780 }, - { 0x13BF, 43783 }, - { 0x13C0, 43786 }, - { 0x13C6, 43789 }, - { 0x13C7, 43792 }, - { 0x13C8, 43795 }, - { 0x13C9, 43798 }, - { 0x13CA, 43801 }, - { 0x13CB, 43804 }, - { 0x13DD, 43807 }, - { 0x13DE, 43810 }, - { 0x13DF, 43813 }, - { 0x13E0, 43816 }, - { 0x13E1, 43819 }, - { 0x13E2, 43822 }, - { 0x13E3, 43825 }, - { 0x13E4, 43828 }, - { 0x13E5, 43831 }, - { 0x13E6, 43834 }, - { 0x13E7, 43837 }, - { 0x13E8, 43840 }, - { 0x220B, 43843 }, - { 0x22B3, 43846 }, - { 0x22B5, 43850 }, - { 0x22FA, 43857 }, - { 0x22FD, 43862 }, - { 0x22FB, 43865 }, - { 0x9369, 43874 }, - { 0x936E, 43879 }, - { 0x936A, 43884 }, - { 0x936D, 43889 }, - { 0x936C, 43894 }, - { 0x9371, 43899 }, - { 0x9370, 43904 }, - { 0x936F, 43909 }, - { 0x936B, 43914 }, - { 0x9360, 43919 }, - { 0x9365, 43924 }, - { 0x9361, 43929 }, - { 0x9364, 43934 }, - { 0x9363, 43939 }, - { 0x9368, 43944 }, - { 0x9367, 43949 }, - { 0x9366, 43954 }, - { 0x9362, 43959 }, - { 0x20A2, 43964 }, - { 0x00A4, 43966 }, - { 0x0430, 43968 }, - { 0x04D1, 43972 }, - { 0x04D3, 43978 }, - { 0x044D, 43984 }, - { 0x04ED, 43988 }, - { 0x0438, 43994 }, - { 0x045D, 43998 }, - { 0x04E3, 44004 }, - { 0x04E5, 44010 }, - { 0x043E, 44016 }, - { 0x04E7, 44020 }, - { 0x0443, 44026 }, - { 0x04F3, 44030 }, - { 0x04EF, 44037 }, - { 0x04F1, 44043 }, - { 0x0431, 44049 }, - { 0x0434, 44053 }, - { 0x0444, 44057 }, - { 0x043B, 44061 }, - { 0x0513, 44065 }, - { 0x04C6, 44071 }, - { 0x043C, 44077 }, - { 0x04CE, 44081 }, - { 0x043D, 44087 }, - { 0x04C8, 44091 }, - { 0x04CA, 44097 }, - { 0x04A3, 44103 }, - { 0x0440, 44109 }, - { 0x048F, 44113 }, - { 0x0441, 44119 }, - { 0x04AB, 44123 }, - { 0x0445, 44129 }, - { 0x04FD, 44133 }, - { 0x04FF, 44139 }, - { 0x04B3, 44145 }, - { 0x0435, 44151 }, - { 0x04D7, 44155 }, - { 0x0450, 44161 }, - { 0x0451, 44167 }, - { 0x0458, 44171 }, - { 0x043A, 44175 }, - { 0x04C4, 44179 }, - { 0x049F, 44185 }, - { 0x049D, 44191 }, - { 0x049B, 44198 }, - { 0x047F, 44204 }, - { 0x043F, 44208 }, - { 0x04A7, 44212 }, - { 0x0442, 44219 }, - { 0x04AD, 44223 }, - { 0x0479, 44229 }, - { 0x0432, 44233 }, - { 0x044F, 44237 }, - { 0x0457, 44241 }, - { 0x044E, 44245 }, - { 0x0437, 44249 }, - { 0x0499, 44253 }, - { 0x04DF, 44259 }, - { 0x046B, 44265 }, - { 0x0447, 44270 }, - { 0x04B9, 44274 }, - { 0x04B7, 44281 }, - { 0x04F5, 44287 }, - { 0x0452, 44293 }, - { 0x0455, 44297 }, - { 0x0433, 44301 }, - { 0x0495, 44305 }, - { 0x0493, 44312 }, - { 0x04FB, 44318 }, - { 0x0491, 44326 }, - { 0x04F7, 44332 }, - { 0x0453, 44338 }, - { 0x045C, 44342 }, - { 0x046F, 44346 }, - { 0x0459, 44350 }, - { 0x045A, 44354 }, - { 0x0471, 44358 }, - { 0x0448, 44362 }, - { 0x0446, 44366 }, - { 0x0463, 44370 }, - { 0x0436, 44374 }, - { 0x04C2, 44378 }, - { 0x0497, 44384 }, - { 0x04DD, 44390 }, - { 0x045F, 44396 }, - { 0x0473, 44400 }, - { 0x044A, 44404 }, - { 0x0501, 44409 }, - { 0x0503, 44414 }, - { 0x0509, 44419 }, - { 0x050B, 44424 }, - { 0x050D, 44429 }, - { 0x050F, 44434 }, - { 0x0505, 44439 }, - { 0x0507, 44444 }, - { 0x04BB, 44449 }, - { 0x044C, 44453 }, - { 0x045B, 44458 }, - { 0x044B, 44462 }, - { 0x04F9, 44466 }, - { 0x0481, 44472 }, - { 0x0461, 44476 }, - { 0x047D, 44480 }, - { 0x047B, 44486 }, - { 0x04D9, 44491 }, - { 0x04DB, 44495 }, - { 0x0449, 44501 }, - { 0x0439, 44505 }, - { 0x048B, 44510 }, - { 0x045E, 44517 }, - { 0x04E9, 44522 }, - { 0x04EB, 44527 }, - { 0x0467, 44534 }, - { 0x04A1, 44539 }, - { 0x0475, 44544 }, - { 0x0477, 44548 }, - { 0x0465, 44556 }, - { 0x046D, 44561 }, - { 0x0469, 44567 }, - { 0x04CF, 44573 }, - { 0x0511, 44577 }, - { 0x048D, 44582 }, - { 0x04AF, 44587 }, - { 0x04B1, 44592 }, - { 0x04A9, 44599 }, - { 0x04BD, 44604 }, - { 0x04BF, 44609 }, - { 0x04E1, 44616 }, - { 0x0454, 44621 }, - { 0x04CC, 44626 }, - { 0x0456, 44631 }, - { 0x04D5, 44636 }, - { 0x04A5, 44641 }, - { 0x04B5, 44646 }, - { 0x1D2B, 44651 }, - { 0x04C0, 44656 }, - { 0x0410, 44659 }, - { 0x04D0, 44663 }, - { 0x04D2, 44669 }, - { 0x042D, 44675 }, - { 0x04EC, 44679 }, - { 0x0418, 44685 }, - { 0x040D, 44689 }, - { 0x04E2, 44695 }, - { 0x04E4, 44701 }, - { 0x041E, 44707 }, - { 0x04E6, 44711 }, - { 0x0423, 44717 }, - { 0x04F2, 44721 }, - { 0x04EE, 44728 }, - { 0x04F0, 44734 }, - { 0x0411, 44740 }, - { 0x0414, 44744 }, - { 0x0424, 44748 }, - { 0x041B, 44752 }, - { 0x0512, 44756 }, - { 0x04C5, 44762 }, - { 0x041C, 44768 }, - { 0x04CD, 44772 }, - { 0x041D, 44778 }, - { 0x04C7, 44782 }, - { 0x04C9, 44788 }, - { 0x04A2, 44794 }, - { 0x0420, 44800 }, - { 0x048E, 44804 }, - { 0x0421, 44810 }, - { 0x04AA, 44814 }, - { 0x0425, 44820 }, - { 0x04FC, 44824 }, - { 0x04FE, 44830 }, - { 0x04B2, 44836 }, - { 0x0415, 44842 }, - { 0x04D6, 44846 }, - { 0x0400, 44852 }, - { 0x0401, 44858 }, - { 0x0408, 44862 }, - { 0x041A, 44866 }, - { 0x04C3, 44870 }, - { 0x049E, 44876 }, - { 0x049C, 44882 }, - { 0x049A, 44889 }, - { 0x047E, 44895 }, - { 0x041F, 44899 }, - { 0x04A6, 44903 }, - { 0x0422, 44910 }, - { 0x04AC, 44914 }, - { 0x0478, 44920 }, - { 0x0412, 44924 }, - { 0x042F, 44928 }, - { 0x0407, 44932 }, - { 0x042E, 44936 }, - { 0x0417, 44940 }, - { 0x0498, 44944 }, - { 0x04DE, 44950 }, - { 0x046A, 44956 }, - { 0x0427, 44961 }, - { 0x04B8, 44965 }, - { 0x04B6, 44972 }, - { 0x04F4, 44978 }, - { 0x0402, 44984 }, - { 0x0405, 44988 }, - { 0x0413, 44992 }, - { 0x0494, 44996 }, - { 0x0492, 45003 }, - { 0x04FA, 45009 }, - { 0x0490, 45017 }, - { 0x04F6, 45023 }, - { 0x0403, 45029 }, - { 0x040C, 45033 }, - { 0x046E, 45037 }, - { 0x0409, 45041 }, - { 0x040A, 45045 }, - { 0x0470, 45049 }, - { 0x0428, 45053 }, - { 0x0426, 45057 }, - { 0x0462, 45061 }, - { 0x0416, 45065 }, - { 0x04C1, 45069 }, - { 0x0496, 45075 }, - { 0x04DC, 45081 }, - { 0x040F, 45087 }, - { 0x0472, 45091 }, - { 0x042A, 45095 }, - { 0x0500, 45100 }, - { 0x0502, 45105 }, - { 0x0508, 45110 }, - { 0x050A, 45115 }, - { 0x050C, 45120 }, - { 0x050E, 45125 }, - { 0x0504, 45130 }, - { 0x0506, 45135 }, - { 0x04BA, 45140 }, - { 0x042C, 45144 }, - { 0x040B, 45149 }, - { 0x042B, 45153 }, - { 0x04F8, 45157 }, - { 0x0480, 45163 }, - { 0x0460, 45167 }, - { 0x047C, 45171 }, - { 0x047A, 45177 }, - { 0x04D8, 45182 }, - { 0x04DA, 45186 }, - { 0x0429, 45192 }, - { 0x0419, 45196 }, - { 0x048A, 45201 }, - { 0x040E, 45208 }, - { 0x04E8, 45213 }, - { 0x04EA, 45218 }, - { 0x0466, 45225 }, - { 0x04A0, 45230 }, - { 0x0474, 45235 }, - { 0x0476, 45239 }, - { 0x0464, 45247 }, - { 0x046C, 45252 }, - { 0x0468, 45258 }, - { 0x0510, 45264 }, - { 0x048C, 45269 }, - { 0x04AE, 45274 }, - { 0x04B0, 45279 }, - { 0x04A8, 45286 }, - { 0x04BC, 45291 }, - { 0x04BE, 45296 }, - { 0x04E0, 45303 }, - { 0x0404, 45308 }, - { 0x04CB, 45313 }, - { 0x0406, 45318 }, - { 0x04D4, 45323 }, - { 0x04A4, 45328 }, - { 0x04B4, 45333 }, - { 0x0482, 45338 }, - { 0x2300, 45341 }, - { 0x00F7, 45343 }, - { 0x2215, 45345 }, - { 0x22C7, 45347 }, - { 0x279B, 45349 }, - { 0x2301, 45353 }, - { 0x2383, 45355 }, - { 0x2709, 45357 }, - { 0x1362, 45358 }, - { 0x1365, 45361 }, - { 0x1363, 45363 }, - { 0x1369, 45365 }, - { 0x136E, 45368 }, - { 0x136A, 45371 }, - { 0x136D, 45374 }, - { 0x136C, 45377 }, - { 0x1371, 45380 }, - { 0x1370, 45383 }, - { 0x136F, 45386 }, - { 0x136B, 45389 }, - { 0x1399, 45392 }, - { 0x1391, 45396 }, - { 0x1394, 45400 }, - { 0x1397, 45404 }, - { 0x1395, 45408 }, - { 0x1393, 45412 }, - { 0x1390, 45417 }, - { 0x1396, 45421 }, - { 0x1392, 45425 }, - { 0x1398, 45429 }, - { 0x1372, 45433 }, - { 0x137C, 45436 }, - { 0x1376, 45440 }, - { 0x1375, 45443 }, - { 0x1377, 45446 }, - { 0x1379, 45449 }, - { 0x137A, 45452 }, - { 0x1374, 45455 }, - { 0x1373, 45458 }, - { 0x137B, 45461 }, - { 0x1378, 45464 }, - { 0x1366, 45467 }, - { 0x1360, 45470 }, - { 0x1367, 45473 }, - { 0x1260, 45476 }, - { 0x1265, 45479 }, - { 0x1262, 45482 }, - { 0x1266, 45485 }, - { 0x1261, 45488 }, - { 0x1278, 45491 }, - { 0x127D, 45494 }, - { 0x127A, 45497 }, - { 0x127E, 45500 }, - { 0x1279, 45503 }, - { 0x12F0, 45506 }, - { 0x12F5, 45509 }, - { 0x12F2, 45512 }, - { 0x12F6, 45515 }, - { 0x12F1, 45518 }, - { 0x1348, 45521 }, - { 0x134D, 45524 }, - { 0x134A, 45527 }, - { 0x134E, 45530 }, - { 0x1349, 45533 }, - { 0x1308, 45536 }, - { 0x130D, 45539 }, - { 0x130A, 45542 }, - { 0x130E, 45545 }, - { 0x1309, 45548 }, - { 0x1200, 45551 }, - { 0x1205, 45554 }, - { 0x1202, 45557 }, - { 0x1206, 45560 }, - { 0x1201, 45563 }, - { 0x1300, 45566 }, - { 0x1305, 45569 }, - { 0x1302, 45572 }, - { 0x1306, 45575 }, - { 0x1301, 45578 }, - { 0x12A8, 45581 }, - { 0x12AD, 45584 }, - { 0x12AA, 45587 }, - { 0x12AE, 45590 }, - { 0x12A9, 45593 }, - { 0x1208, 45596 }, - { 0x120D, 45599 }, - { 0x120A, 45602 }, - { 0x120E, 45605 }, - { 0x1209, 45608 }, - { 0x1218, 45611 }, - { 0x121D, 45614 }, - { 0x121A, 45617 }, - { 0x121E, 45620 }, - { 0x1219, 45623 }, - { 0x1290, 45626 }, - { 0x1295, 45629 }, - { 0x1292, 45632 }, - { 0x1296, 45635 }, - { 0x1291, 45638 }, - { 0x1350, 45641 }, - { 0x1355, 45644 }, - { 0x1352, 45647 }, - { 0x1356, 45650 }, - { 0x1351, 45653 }, - { 0x1240, 45656 }, - { 0x1245, 45659 }, - { 0x1242, 45662 }, - { 0x1246, 45665 }, - { 0x1241, 45668 }, - { 0x1228, 45671 }, - { 0x122D, 45674 }, - { 0x122A, 45677 }, - { 0x122E, 45680 }, - { 0x1229, 45683 }, - { 0x1230, 45686 }, - { 0x1235, 45689 }, - { 0x1232, 45692 }, - { 0x1236, 45695 }, - { 0x1231, 45698 }, - { 0x1270, 45701 }, - { 0x1275, 45704 }, - { 0x1272, 45707 }, - { 0x1276, 45710 }, - { 0x1271, 45713 }, - { 0x1268, 45716 }, - { 0x126D, 45719 }, - { 0x126A, 45722 }, - { 0x126E, 45725 }, - { 0x1269, 45728 }, - { 0x12C8, 45731 }, - { 0x12CD, 45734 }, - { 0x12CA, 45737 }, - { 0x12CE, 45740 }, - { 0x12C9, 45743 }, - { 0x1280, 45746 }, - { 0x1285, 45749 }, - { 0x1282, 45752 }, - { 0x1286, 45755 }, - { 0x1281, 45758 }, - { 0x12E8, 45761 }, - { 0x12ED, 45764 }, - { 0x12EA, 45767 }, - { 0x12EE, 45770 }, - { 0x12E9, 45773 }, - { 0x12D8, 45776 }, - { 0x12DD, 45779 }, - { 0x12DA, 45782 }, - { 0x12DE, 45785 }, - { 0x12D9, 45788 }, - { 0x1263, 45791 }, - { 0x1264, 45794 }, - { 0x2D85, 45797 }, - { 0x1267, 45800 }, - { 0x1387, 45803 }, - { 0x1385, 45806 }, - { 0x127B, 45809 }, - { 0x2DA8, 45812 }, - { 0x2DAD, 45815 }, - { 0x2DAA, 45818 }, - { 0x2DAE, 45821 }, - { 0x2DA9, 45824 }, - { 0x127C, 45827 }, - { 0x1328, 45830 }, - { 0x132D, 45833 }, - { 0x132A, 45836 }, - { 0x132E, 45839 }, - { 0x1329, 45842 }, - { 0x2D87, 45845 }, - { 0x127F, 45848 }, - { 0x12F3, 45851 }, - { 0x12F8, 45854 }, - { 0x12FD, 45857 }, - { 0x12FA, 45860 }, - { 0x12FE, 45863 }, - { 0x12F9, 45866 }, - { 0x12F4, 45869 }, - { 0x2D8C, 45872 }, - { 0x12F7, 45875 }, - { 0x134B, 45878 }, - { 0x134C, 45881 }, - { 0x134F, 45884 }, - { 0x138B, 45887 }, - { 0x1389, 45890 }, - { 0x135A, 45893 }, - { 0x130B, 45896 }, - { 0x130C, 45899 }, - { 0x1318, 45902 }, - { 0x131D, 45905 }, - { 0x131A, 45908 }, - { 0x131E, 45911 }, - { 0x1319, 45914 }, - { 0x130F, 45917 }, - { 0x1310, 45920 }, - { 0x1315, 45923 }, - { 0x1312, 45926 }, - { 0x2DD8, 45929 }, - { 0x2DDD, 45932 }, - { 0x2DDA, 45935 }, - { 0x2DDE, 45938 }, - { 0x2DD9, 45941 }, - { 0x1203, 45944 }, - { 0x1204, 45947 }, - { 0x1210, 45950 }, - { 0x1215, 45953 }, - { 0x1212, 45956 }, - { 0x1216, 45959 }, - { 0x1211, 45962 }, - { 0x1207, 45965 }, - { 0x1303, 45968 }, - { 0x1304, 45971 }, - { 0x2D8E, 45974 }, - { 0x1307, 45977 }, - { 0x12AB, 45980 }, - { 0x12AC, 45983 }, - { 0x12AF, 45986 }, - { 0x12B0, 45989 }, - { 0x12B5, 45992 }, - { 0x12B2, 45995 }, - { 0x12B8, 45998 }, - { 0x12BD, 46001 }, - { 0x12BA, 46004 }, - { 0x12BE, 46007 }, - { 0x12B9, 46010 }, - { 0x2DC8, 46013 }, - { 0x2DCD, 46016 }, - { 0x2DCA, 46019 }, - { 0x2DCE, 46022 }, - { 0x2DC9, 46025 }, - { 0x120B, 46028 }, - { 0x120C, 46031 }, - { 0x2D80, 46034 }, - { 0x120F, 46037 }, - { 0x121B, 46040 }, - { 0x121C, 46043 }, - { 0x2D81, 46046 }, - { 0x121F, 46049 }, - { 0x1383, 46052 }, - { 0x1381, 46055 }, - { 0x1359, 46058 }, - { 0x1293, 46061 }, - { 0x1294, 46064 }, - { 0x2D88, 46067 }, - { 0x1297, 46070 }, - { 0x1298, 46073 }, - { 0x129D, 46076 }, - { 0x129A, 46079 }, - { 0x129E, 46082 }, - { 0x1299, 46085 }, - { 0x1353, 46088 }, - { 0x1354, 46091 }, - { 0x1330, 46094 }, - { 0x1335, 46097 }, - { 0x1332, 46100 }, - { 0x1336, 46103 }, - { 0x1331, 46106 }, - { 0x2D92, 46109 }, - { 0x1357, 46112 }, - { 0x138F, 46115 }, - { 0x138D, 46118 }, - { 0x1243, 46121 }, - { 0x1244, 46124 }, - { 0x1250, 46127 }, - { 0x1255, 46130 }, - { 0x1252, 46133 }, - { 0x1256, 46136 }, - { 0x1251, 46139 }, - { 0x1247, 46142 }, - { 0x1248, 46145 }, - { 0x124D, 46148 }, - { 0x124A, 46151 }, - { 0x2DC0, 46154 }, - { 0x2DC5, 46157 }, - { 0x2DC2, 46160 }, - { 0x2DC6, 46163 }, - { 0x2DC1, 46166 }, - { 0x122B, 46169 }, - { 0x122C, 46172 }, - { 0x2D82, 46175 }, - { 0x122F, 46178 }, - { 0x1358, 46181 }, - { 0x1233, 46184 }, - { 0x1234, 46187 }, - { 0x1238, 46190 }, - { 0x123D, 46193 }, - { 0x123A, 46196 }, - { 0x123E, 46199 }, - { 0x1239, 46202 }, - { 0x2D83, 46205 }, - { 0x2DA0, 46208 }, - { 0x2DA5, 46211 }, - { 0x2DA2, 46214 }, - { 0x2DA6, 46217 }, - { 0x2DA1, 46220 }, - { 0x1237, 46223 }, - { 0x1220, 46226 }, - { 0x1225, 46229 }, - { 0x1222, 46232 }, - { 0x1226, 46235 }, - { 0x1221, 46238 }, - { 0x1273, 46241 }, - { 0x1274, 46244 }, - { 0x1320, 46247 }, - { 0x1325, 46250 }, - { 0x1322, 46253 }, - { 0x1326, 46256 }, - { 0x1321, 46259 }, - { 0x2D86, 46262 }, - { 0x1338, 46265 }, - { 0x133D, 46268 }, - { 0x133A, 46271 }, - { 0x133E, 46274 }, - { 0x1339, 46277 }, - { 0x1277, 46280 }, - { 0x1340, 46283 }, - { 0x1345, 46286 }, - { 0x1342, 46289 }, - { 0x1346, 46292 }, - { 0x1341, 46295 }, - { 0x126B, 46298 }, - { 0x126C, 46301 }, - { 0x126F, 46304 }, - { 0x12CB, 46307 }, - { 0x12CC, 46310 }, - { 0x12CF, 46313 }, - { 0x1283, 46316 }, - { 0x1284, 46319 }, - { 0x1287, 46322 }, - { 0x1288, 46325 }, - { 0x128D, 46328 }, - { 0x128A, 46331 }, - { 0x2DD0, 46334 }, - { 0x2DD5, 46337 }, - { 0x2DD2, 46340 }, - { 0x2DD6, 46343 }, - { 0x2DD1, 46346 }, - { 0x12EB, 46349 }, - { 0x12EC, 46352 }, - { 0x12EF, 46355 }, - { 0x12DB, 46358 }, - { 0x12DC, 46361 }, - { 0x12E0, 46364 }, - { 0x12E5, 46367 }, - { 0x12E2, 46370 }, - { 0x12E6, 46373 }, - { 0x12E1, 46376 }, - { 0x2D8B, 46379 }, - { 0x12DF, 46382 }, - { 0x2DB0, 46385 }, - { 0x2DB5, 46388 }, - { 0x2DB2, 46391 }, - { 0x2DB6, 46394 }, - { 0x2DB1, 46397 }, - { 0x1386, 46400 }, - { 0x2DAB, 46403 }, - { 0x2DAC, 46406 }, - { 0x2DB8, 46409 }, - { 0x2DBD, 46412 }, - { 0x2DBA, 46415 }, - { 0x2DBE, 46418 }, - { 0x2DB9, 46421 }, - { 0x132B, 46424 }, - { 0x132C, 46427 }, - { 0x2D90, 46430 }, - { 0x132F, 46433 }, - { 0x12FB, 46436 }, - { 0x12FC, 46439 }, - { 0x2D8D, 46442 }, - { 0x12FF, 46445 }, - { 0x138A, 46448 }, - { 0x131B, 46451 }, - { 0x131C, 46454 }, - { 0x2D93, 46457 }, - { 0x2D96, 46460 }, - { 0x2D94, 46463 }, - { 0x1313, 46466 }, - { 0x1314, 46469 }, - { 0x2DDB, 46472 }, - { 0x2DDC, 46475 }, - { 0x1213, 46478 }, - { 0x1214, 46481 }, - { 0x1217, 46484 }, - { 0x12B3, 46487 }, - { 0x12B4, 46490 }, - { 0x12BB, 46493 }, - { 0x12BC, 46496 }, - { 0x12C0, 46499 }, - { 0x12C5, 46502 }, - { 0x12C2, 46505 }, - { 0x2DCB, 46508 }, - { 0x2DCC, 46511 }, - { 0x1382, 46514 }, - { 0x129B, 46517 }, - { 0x129C, 46520 }, - { 0x2D89, 46523 }, - { 0x129F, 46526 }, - { 0x1333, 46529 }, - { 0x1334, 46532 }, - { 0x2D91, 46535 }, - { 0x1337, 46538 }, - { 0x138E, 46541 }, - { 0x1253, 46544 }, - { 0x1254, 46547 }, - { 0x1258, 46550 }, - { 0x125D, 46553 }, - { 0x125A, 46556 }, - { 0x124B, 46559 }, - { 0x124C, 46562 }, - { 0x2DC3, 46565 }, - { 0x2DC4, 46568 }, - { 0x123B, 46571 }, - { 0x123C, 46574 }, - { 0x2D84, 46577 }, - { 0x123F, 46580 }, - { 0x2DA3, 46583 }, - { 0x2DA4, 46586 }, - { 0x1223, 46589 }, - { 0x1224, 46592 }, - { 0x1227, 46595 }, - { 0x1323, 46598 }, - { 0x1324, 46601 }, - { 0x2D8F, 46604 }, - { 0x1327, 46607 }, - { 0x133B, 46610 }, - { 0x133C, 46613 }, - { 0x133F, 46616 }, - { 0x1343, 46619 }, - { 0x1344, 46622 }, - { 0x1347, 46625 }, - { 0x128B, 46628 }, - { 0x128C, 46631 }, - { 0x2DD3, 46634 }, - { 0x2DD4, 46637 }, - { 0x12E3, 46640 }, - { 0x12E4, 46643 }, - { 0x12E7, 46646 }, - { 0x2DB3, 46649 }, - { 0x2DB4, 46652 }, - { 0x2DBB, 46655 }, - { 0x2DBC, 46658 }, - { 0x131F, 46661 }, - { 0x2D95, 46664 }, - { 0x12C3, 46667 }, - { 0x12C4, 46670 }, - { 0x125B, 46673 }, - { 0x125C, 46676 }, - { 0x12A0, 46679 }, - { 0x12A5, 46683 }, - { 0x12A2, 46687 }, - { 0x12A6, 46691 }, - { 0x12A1, 46695 }, - { 0x12A3, 46699 }, - { 0x12A4, 46703 }, - { 0x2D8A, 46707 }, - { 0x12A7, 46711 }, - { 0x1384, 46715 }, - { 0x1388, 46719 }, - { 0x1380, 46723 }, - { 0x138C, 46727 }, - { 0x12D0, 46731 }, - { 0x12D5, 46735 }, - { 0x12D2, 46739 }, - { 0x12D6, 46743 }, - { 0x12D1, 46747 }, - { 0x12D3, 46751 }, - { 0x12D4, 46755 }, - { 0x135F, 46759 }, - { 0x1368, 46763 }, - { 0x1364, 46766 }, - { 0x1361, 46768 }, - { 0x06F1, 46770 }, - { 0x06F6, 46774 }, - { 0x06F2, 46778 }, - { 0x06F5, 46782 }, - { 0x06F4, 46786 }, - { 0x06F9, 46790 }, - { 0x06F0, 46794 }, - { 0x06F8, 46798 }, - { 0x06F7, 46802 }, - { 0x06F3, 46806 }, - { 0x00AA, 46810 }, - { 0x23E5, 46813 }, - { 0x2044, 46814 }, - { 0x215F, 46816 }, - { 0x2061, 46819 }, - { 0x2D00, 46821 }, - { 0x2D04, 46825 }, - { 0x2D21, 46829 }, - { 0x2D08, 46833 }, - { 0x2D0D, 46837 }, - { 0x2D13, 46841 }, - { 0x2D23, 46845 }, - { 0x2D01, 46849 }, - { 0x2D1A, 46853 }, - { 0x2D1C, 46857 }, - { 0x2D03, 46861 }, - { 0x2D02, 46865 }, - { 0x2D20, 46869 }, - { 0x2D24, 46873 }, - { 0x2D22, 46877 }, - { 0x2D25, 46881 }, - { 0x2D1B, 46885 }, - { 0x2D09, 46889 }, - { 0x2D0A, 46893 }, - { 0x2D0B, 46897 }, - { 0x2D0C, 46901 }, - { 0x2D0E, 46905 }, - { 0x2D17, 46909 }, - { 0x2D10, 46913 }, - { 0x2D11, 46917 }, - { 0x2D07, 46921 }, - { 0x2D12, 46925 }, - { 0x2D05, 46929 }, - { 0x2D1E, 46933 }, - { 0x2D06, 46937 }, - { 0x2D1D, 46941 }, - { 0x2D19, 46945 }, - { 0x2D16, 46949 }, - { 0x2D1F, 46953 }, - { 0x2D15, 46957 }, - { 0x2D14, 46961 }, - { 0x2D18, 46965 }, - { 0x2D0F, 46969 }, - { 0x10D0, 46973 }, - { 0x10D4, 46976 }, - { 0x10F6, 46979 }, - { 0x10F1, 46982 }, - { 0x10D8, 46985 }, - { 0x10DD, 46988 }, - { 0x10E3, 46991 }, - { 0x10F3, 46994 }, - { 0x10F7, 46997 }, - { 0x10FA, 47000 }, - { 0x10D1, 47003 }, - { 0x10EA, 47006 }, - { 0x10EC, 47009 }, - { 0x10D3, 47012 }, - { 0x10D2, 47015 }, - { 0x10F0, 47018 }, - { 0x10F4, 47021 }, - { 0x10F2, 47024 }, - { 0x10F5, 47027 }, - { 0x10EB, 47030 }, - { 0x10D9, 47033 }, - { 0x10DA, 47036 }, - { 0x10DB, 47039 }, - { 0x10DC, 47042 }, - { 0x10DE, 47045 }, - { 0x10E7, 47048 }, - { 0x10E0, 47051 }, - { 0x10E1, 47054 }, - { 0x10D7, 47057 }, - { 0x10E2, 47060 }, - { 0x10D5, 47063 }, - { 0x10EE, 47066 }, - { 0x10D6, 47069 }, - { 0x10ED, 47072 }, - { 0x10E9, 47075 }, - { 0x10E6, 47078 }, - { 0x10EF, 47081 }, - { 0x10E5, 47084 }, - { 0x10E4, 47087 }, - { 0x10E8, 47090 }, - { 0x10DF, 47093 }, - { 0x10F8, 47096 }, - { 0x10F9, 47099 }, - { 0x10A0, 47103 }, - { 0x10A4, 47107 }, - { 0x10C1, 47111 }, - { 0x10A8, 47115 }, - { 0x10AD, 47119 }, - { 0x10B3, 47123 }, - { 0x10C3, 47127 }, - { 0x10A1, 47131 }, - { 0x10BA, 47135 }, - { 0x10BC, 47139 }, - { 0x10A3, 47143 }, - { 0x10A2, 47147 }, - { 0x10C0, 47151 }, - { 0x10C4, 47155 }, - { 0x10C2, 47159 }, - { 0x10C5, 47163 }, - { 0x10BB, 47167 }, - { 0x10A9, 47171 }, - { 0x10AA, 47175 }, - { 0x10AB, 47179 }, - { 0x10AC, 47183 }, - { 0x10AE, 47187 }, - { 0x10B7, 47191 }, - { 0x10B0, 47195 }, - { 0x10B1, 47199 }, - { 0x10A7, 47203 }, - { 0x10B2, 47207 }, - { 0x10A5, 47211 }, - { 0x10BE, 47215 }, - { 0x10A6, 47219 }, - { 0x10BD, 47223 }, - { 0x10B9, 47227 }, - { 0x10B6, 47231 }, - { 0x10BF, 47235 }, - { 0x10B5, 47239 }, - { 0x10B4, 47243 }, - { 0x10B8, 47247 }, - { 0x10AF, 47251 }, - { 0x10FB, 47255 }, - { 0x0AD0, 47258 }, - { 0x0ABC, 47260 }, - { 0x0ACD, 47263 }, - { 0x0A83, 47266 }, - { 0x0A82, 47269 }, - { 0x0ABD, 47272 }, - { 0x0A81, 47275 }, - { 0x0AE7, 47278 }, - { 0x0AEC, 47281 }, - { 0x0AE8, 47284 }, - { 0x0AEB, 47287 }, - { 0x0AEA, 47290 }, - { 0x0AEF, 47293 }, - { 0x0AE6, 47296 }, - { 0x0AEE, 47299 }, - { 0x0AED, 47302 }, - { 0x0AE9, 47305 }, - { 0x0AF1, 47308 }, - { 0x0AC7, 47311 }, - { 0x0ABF, 47315 }, - { 0x0ACB, 47319 }, - { 0x0AC1, 47323 }, - { 0x0ABE, 47327 }, - { 0x0AC8, 47331 }, - { 0x0ACC, 47335 }, - { 0x0AC0, 47339 }, - { 0x0AC2, 47343 }, - { 0x0AC5, 47347 }, - { 0x0AC9, 47352 }, - { 0x0AE2, 47357 }, - { 0x0AC3, 47362 }, - { 0x0AE3, 47367 }, - { 0x0AC4, 47372 }, - { 0x0A8D, 47377 }, - { 0x0A91, 47381 }, - { 0x0A85, 47385 }, - { 0x0A8F, 47388 }, - { 0x0A87, 47391 }, - { 0x0A93, 47394 }, - { 0x0A89, 47397 }, - { 0x0A86, 47400 }, - { 0x0A90, 47403 }, - { 0x0A94, 47406 }, - { 0x0AAC, 47409 }, - { 0x0A9A, 47412 }, - { 0x0AA6, 47415 }, - { 0x0A97, 47418 }, - { 0x0AB9, 47421 }, - { 0x0A88, 47424 }, - { 0x0A9C, 47427 }, - { 0x0A95, 47430 }, - { 0x0AB2, 47433 }, - { 0x0AAE, 47436 }, - { 0x0AA8, 47439 }, - { 0x0AAA, 47442 }, - { 0x0AB0, 47445 }, - { 0x0AB8, 47448 }, - { 0x0AA4, 47451 }, - { 0x0A8A, 47454 }, - { 0x0AB5, 47457 }, - { 0x0AAF, 47460 }, - { 0x0AAD, 47463 }, - { 0x0A9B, 47466 }, - { 0x0AA1, 47469 }, - { 0x0AA7, 47472 }, - { 0x0A98, 47475 }, - { 0x0A9D, 47478 }, - { 0x0A96, 47481 }, - { 0x0AB3, 47484 }, - { 0x0A99, 47487 }, - { 0x0AA3, 47490 }, - { 0x0A9E, 47493 }, - { 0x0AAB, 47496 }, - { 0x0AB6, 47499 }, - { 0x0AB7, 47502 }, - { 0x0AA5, 47505 }, - { 0x0A9F, 47508 }, - { 0x0AA2, 47511 }, - { 0x0AA0, 47514 }, - { 0x0A8C, 47517 }, - { 0x0A8B, 47521 }, - { 0x0AE1, 47525 }, - { 0x0AE0, 47529 }, - { 0x0A74, 47533 }, - { 0x0A72, 47536 }, - { 0x0A73, 47538 }, - { 0x0A01, 47540 }, - { 0x0A02, 47544 }, - { 0x0A3C, 47547 }, - { 0x0A4D, 47550 }, - { 0x0A03, 47553 }, - { 0x0A71, 47556 }, - { 0x0A67, 47558 }, - { 0x0A6C, 47561 }, - { 0x0A68, 47564 }, - { 0x0A6B, 47567 }, - { 0x0A6A, 47570 }, - { 0x0A6F, 47573 }, - { 0x0A66, 47576 }, - { 0x0A6E, 47579 }, - { 0x0A6D, 47582 }, - { 0x0A69, 47585 }, - { 0x0A70, 47588 }, - { 0x0A3F, 47590 }, - { 0x0A41, 47594 }, - { 0x0A3E, 47598 }, - { 0x0A48, 47602 }, - { 0x0A4C, 47606 }, - { 0x0A47, 47610 }, - { 0x0A40, 47614 }, - { 0x0A4B, 47618 }, - { 0x0A42, 47622 }, - { 0x0A05, 47626 }, - { 0x0A07, 47629 }, - { 0x0A09, 47632 }, - { 0x0A06, 47635 }, - { 0x0A10, 47638 }, - { 0x0A14, 47641 }, - { 0x0A2C, 47644 }, - { 0x0A1A, 47647 }, - { 0x0A26, 47650 }, - { 0x0A0F, 47653 }, - { 0x0A5E, 47656 }, - { 0x0A17, 47659 }, - { 0x0A39, 47662 }, - { 0x0A08, 47665 }, - { 0x0A1C, 47668 }, - { 0x0A15, 47671 }, - { 0x0A32, 47674 }, - { 0x0A2E, 47677 }, - { 0x0A28, 47680 }, - { 0x0A13, 47683 }, - { 0x0A2A, 47686 }, - { 0x0A30, 47689 }, - { 0x0A38, 47692 }, - { 0x0A24, 47695 }, - { 0x0A0A, 47698 }, - { 0x0A35, 47701 }, - { 0x0A2F, 47704 }, - { 0x0A5B, 47707 }, - { 0x0A2D, 47710 }, - { 0x0A1B, 47713 }, - { 0x0A21, 47716 }, - { 0x0A27, 47719 }, - { 0x0A18, 47722 }, - { 0x0A1D, 47725 }, - { 0x0A16, 47728 }, - { 0x0A33, 47731 }, - { 0x0A19, 47734 }, - { 0x0A23, 47737 }, - { 0x0A1E, 47740 }, - { 0x0A2B, 47743 }, - { 0x0A5C, 47746 }, - { 0x0A36, 47749 }, - { 0x0A25, 47752 }, - { 0x0A1F, 47755 }, - { 0x0A22, 47758 }, - { 0x0A5A, 47761 }, - { 0x0A59, 47764 }, - { 0x0A20, 47767 }, - { 0x3021, 47770 }, - { 0x3026, 47773 }, - { 0x3038, 47776 }, - { 0x3022, 47779 }, - { 0x3025, 47782 }, - { 0x3024, 47785 }, - { 0x3029, 47788 }, - { 0x3028, 47791 }, - { 0x3027, 47794 }, - { 0x3023, 47797 }, - { 0x303A, 47800 }, - { 0x3039, 47803 }, - { 0x4DC6, 47806 }, - { 0x4DEF, 47810 }, - { 0x4DE4, 47814 }, - { 0x4DF8, 47818 }, - { 0x4DF9, 47823 }, - { 0x4DDC, 47828 }, - { 0x4DF3, 47833 }, - { 0x4DF2, 47839 }, - { 0x4DF1, 47844 }, - { 0x4DDD, 47848 }, - { 0x4DC0, 47853 }, - { 0x4DF5, 47858 }, - { 0x4DF7, 47863 }, - { 0x4DC1, 47867 }, - { 0x4DD1, 47872 }, - { 0x4DFE, 47878 }, - { 0x4DD5, 47882 }, - { 0x4DE1, 47885 }, - { 0x4DD9, 47889 }, - { 0x4DCD, 47893 }, - { 0x4DDB, 47897 }, - { 0x4DFC, 47901 }, - { 0x4DDA, 47905 }, - { 0x4DCA, 47909 }, - { 0x4DC8, 47912 }, - { 0x4DFD, 47916 }, - { 0x4DFF, 47920 }, - { 0x4DD4, 47924 }, - { 0x4DEB, 47928 }, - { 0x4DD7, 47933 }, - { 0x4DC7, 47936 }, - { 0x4DCE, 47940 }, - { 0x4DED, 47943 }, - { 0x4DE0, 47947 }, - { 0x4DC4, 47950 }, - { 0x4DD2, 47953 }, - { 0x4DC5, 47956 }, - { 0x4DE8, 47959 }, - { 0x4DDF, 47962 }, - { 0x4DE9, 47965 }, - { 0x4DE2, 47968 }, - { 0x4DC9, 47971 }, - { 0x4DC3, 47974 }, - { 0x4DF6, 47978 }, - { 0x4DE3, 47981 }, - { 0x4DD0, 47987 }, - { 0x4DEC, 47990 }, - { 0x4DDE, 47994 }, - { 0x4DD8, 47997 }, - { 0x4DD6, 48000 }, - { 0x4DC2, 48004 }, - { 0x4DFA, 48010 }, - { 0x4DCF, 48013 }, - { 0x4DCC, 48016 }, - { 0x4DFB, 48019 }, - { 0x4DE5, 48022 }, - { 0x4DEE, 48025 }, - { 0x4DF0, 48028 }, - { 0x4DCB, 48031 }, - { 0x4DE7, 48034 }, - { 0x4DF4, 48037 }, - { 0x4DE6, 48040 }, - { 0x4DEA, 48043 }, - { 0x4DD3, 48046 }, - { 0x3042, 48049 }, - { 0x3048, 48052 }, - { 0x3044, 48055 }, - { 0x3093, 48058 }, - { 0x304A, 48061 }, - { 0x3046, 48064 }, - { 0x3070, 48067 }, - { 0x3079, 48070 }, - { 0x3073, 48073 }, - { 0x307C, 48076 }, - { 0x3076, 48079 }, - { 0x3060, 48082 }, - { 0x3067, 48085 }, - { 0x3062, 48088 }, - { 0x3069, 48091 }, - { 0x3065, 48094 }, - { 0x304C, 48097 }, - { 0x3052, 48100 }, - { 0x304E, 48103 }, - { 0x3054, 48106 }, - { 0x3050, 48109 }, - { 0x306F, 48112 }, - { 0x3078, 48115 }, - { 0x3072, 48118 }, - { 0x307B, 48121 }, - { 0x3075, 48124 }, - { 0x304B, 48127 }, - { 0x3051, 48130 }, - { 0x304D, 48133 }, - { 0x3053, 48136 }, - { 0x304F, 48139 }, - { 0x307E, 48142 }, - { 0x3081, 48145 }, - { 0x307F, 48148 }, - { 0x3082, 48151 }, - { 0x3080, 48154 }, - { 0x306A, 48157 }, - { 0x306D, 48160 }, - { 0x306B, 48163 }, - { 0x306E, 48166 }, - { 0x306C, 48169 }, - { 0x3071, 48172 }, - { 0x307A, 48175 }, - { 0x3074, 48178 }, - { 0x307D, 48181 }, - { 0x3077, 48184 }, - { 0x3089, 48187 }, - { 0x308C, 48190 }, - { 0x308A, 48193 }, - { 0x308D, 48196 }, - { 0x308B, 48199 }, - { 0x3055, 48202 }, - { 0x305B, 48205 }, - { 0x3057, 48208 }, - { 0x305D, 48211 }, - { 0x3059, 48214 }, - { 0x305F, 48217 }, - { 0x3066, 48220 }, - { 0x3061, 48223 }, - { 0x3068, 48226 }, - { 0x3064, 48229 }, - { 0x3094, 48232 }, - { 0x308F, 48235 }, - { 0x3091, 48238 }, - { 0x3090, 48241 }, - { 0x3092, 48244 }, - { 0x3084, 48247 }, - { 0x3088, 48250 }, - { 0x3086, 48253 }, - { 0x3056, 48256 }, - { 0x305C, 48259 }, - { 0x3058, 48262 }, - { 0x305E, 48265 }, - { 0x305A, 48268 }, - { 0x3041, 48271 }, - { 0x3047, 48275 }, - { 0x3043, 48279 }, - { 0x3049, 48283 }, - { 0x3045, 48287 }, - { 0x3095, 48291 }, - { 0x3096, 48295 }, - { 0x3063, 48299 }, - { 0x308E, 48303 }, - { 0x3083, 48307 }, - { 0x3087, 48311 }, - { 0x3085, 48315 }, - { 0x309E, 48319 }, - { 0x309F, 48323 }, - { 0x309D, 48326 }, - { 0x221E, 48329 }, - { 0x29DE, 48330 }, - { 0x222B, 48335 }, - { 0x2A18, 48336 }, - { 0x2A1A, 48340 }, - { 0x2A0E, 48343 }, - { 0x2A1B, 48347 }, - { 0x2A1C, 48350 }, - { 0x2A17, 48353 }, - { 0x2A19, 48359 }, - { 0x2A15, 48362 }, - { 0x2A0F, 48367 }, - { 0x23AE, 48371 }, - { 0x2A3C, 48373 }, - { 0x2127, 48375 }, - { 0x223E, 48378 }, - { 0x00BF, 48381 }, - { 0x2054, 48384 }, - { 0x00A1, 48386 }, - { 0x3004, 48389 }, - { 0x30A2, 48393 }, - { 0x30A8, 48396 }, - { 0x30A4, 48399 }, - { 0x30F3, 48402 }, - { 0x30AA, 48405 }, - { 0x30A6, 48408 }, - { 0x30D0, 48411 }, - { 0x30D9, 48414 }, - { 0x30D3, 48417 }, - { 0x30DC, 48420 }, - { 0x30D6, 48423 }, - { 0x30C0, 48426 }, - { 0x30C7, 48429 }, - { 0x30C2, 48432 }, - { 0x30C9, 48435 }, - { 0x30C5, 48438 }, - { 0x30AC, 48441 }, - { 0x30B2, 48444 }, - { 0x30AE, 48447 }, - { 0x30B4, 48450 }, - { 0x30B0, 48453 }, - { 0x30CF, 48456 }, - { 0x30D8, 48459 }, - { 0x30D2, 48462 }, - { 0x30DB, 48465 }, - { 0x30D5, 48468 }, - { 0x30AB, 48471 }, - { 0x30B1, 48474 }, - { 0x30AD, 48477 }, - { 0x30B3, 48480 }, - { 0x30AF, 48483 }, - { 0x30DE, 48486 }, - { 0x30E1, 48489 }, - { 0x30DF, 48492 }, - { 0x30E2, 48495 }, - { 0x30E0, 48498 }, - { 0x30CA, 48501 }, - { 0x30CD, 48504 }, - { 0x30CB, 48507 }, - { 0x30CE, 48510 }, - { 0x30CC, 48513 }, - { 0x30D1, 48516 }, - { 0x30DA, 48519 }, - { 0x30D4, 48522 }, - { 0x30DD, 48525 }, - { 0x30D7, 48528 }, - { 0x30E9, 48531 }, - { 0x30EC, 48534 }, - { 0x30EA, 48537 }, - { 0x30ED, 48540 }, - { 0x30EB, 48543 }, - { 0x30B5, 48546 }, - { 0x30BB, 48549 }, - { 0x30B7, 48552 }, - { 0x30BD, 48555 }, - { 0x30B9, 48558 }, - { 0x30BF, 48561 }, - { 0x30C6, 48564 }, - { 0x30C1, 48567 }, - { 0x30C8, 48570 }, - { 0x30C4, 48573 }, - { 0x30F7, 48576 }, - { 0x30F9, 48579 }, - { 0x30F8, 48582 }, - { 0x30FA, 48585 }, - { 0x30F4, 48588 }, - { 0x30EF, 48591 }, - { 0x30F1, 48594 }, - { 0x30F0, 48597 }, - { 0x30F2, 48600 }, - { 0x30E4, 48603 }, - { 0x30E8, 48606 }, - { 0x30E6, 48609 }, - { 0x30B6, 48612 }, - { 0x30BC, 48615 }, - { 0x30B8, 48618 }, - { 0x30BE, 48621 }, - { 0x30BA, 48624 }, - { 0x30A1, 48627 }, - { 0x30A7, 48631 }, - { 0x30A3, 48635 }, - { 0x30A9, 48639 }, - { 0x30A5, 48643 }, - { 0x31F5, 48647 }, - { 0x31F8, 48651 }, - { 0x31F6, 48655 }, - { 0x31F9, 48659 }, - { 0x31F7, 48663 }, - { 0x30F5, 48667 }, - { 0x30F6, 48671 }, - { 0x31F0, 48675 }, - { 0x31FA, 48679 }, - { 0x31F4, 48683 }, - { 0x31FB, 48687 }, - { 0x31FE, 48691 }, - { 0x31FC, 48695 }, - { 0x31FF, 48699 }, - { 0x31FD, 48703 }, - { 0x31F1, 48707 }, - { 0x31F2, 48711 }, - { 0x31F3, 48715 }, - { 0x30C3, 48719 }, - { 0x30EE, 48723 }, - { 0x30E3, 48727 }, - { 0x30E7, 48731 }, - { 0x30E5, 48735 }, - { 0x30FB, 48739 }, - { 0x30FE, 48742 }, - { 0x30FF, 48746 }, - { 0x30FD, 48749 }, - { 0x2328, 48752 }, - { 0xB001, 48753 }, - { 0x26AD, 48755 }, - { 0x225E, 48757 }, - { 0x2221, 48759 }, - { 0x29A9, 48761 }, - { 0x29A8, 48773 }, - { 0x29AB, 48785 }, - { 0x29AA, 48797 }, - { 0x29AD, 48809 }, - { 0x29AF, 48821 }, - { 0x29AC, 48833 }, - { 0x29AE, 48845 }, - { 0x299B, 48857 }, - { 0x299D, 48861 }, - { 0x23D5, 48866 }, - { 0x23D6, 48871 }, - { 0x23D4, 48875 }, - { 0x23D2, 48880 }, - { 0x23D1, 48884 }, - { 0x23D3, 48886 }, - { 0x23D7, 48890 }, - { 0x23D9, 48892 }, - { 0x23D8, 48894 }, - { 0x02D4, 48896 }, - { 0x02C4, 48900 }, - { 0x5718, 48904 }, - { 0x5717, 48908 }, - { 0x5719, 48913 }, - { 0x02FC, 48918 }, - { 0x02FA, 48923 }, - { 0x02F0, 48928 }, - { 0x02EF, 48933 }, - { 0x02FF, 48938 }, - { 0x02F1, 48943 }, - { 0x02F3, 48948 }, - { 0x02E8, 48952 }, - { 0x02CF, 48957 }, - { 0x02CE, 48962 }, - { 0x02F2, 48967 }, - { 0x02F7, 48972 }, - { 0x570B, 48976 }, - { 0x5710, 48982 }, - { 0x02CD, 48989 }, - { 0x02CC, 48993 }, - { 0x5715, 48998 }, - { 0x02E7, 49004 }, - { 0x570A, 49009 }, - { 0x570F, 49015 }, - { 0x5714, 49022 }, - { 0x02EA, 49028 }, - { 0x02D5, 49034 }, - { 0x02C5, 49038 }, - { 0x02D1, 49042 }, - { 0x02E6, 49047 }, - { 0x5709, 49052 }, - { 0x570E, 49058 }, - { 0x5713, 49065 }, - { 0x02BF, 49071 }, - { 0x02C2, 49076 }, - { 0x02FE, 49080 }, - { 0x02D6, 49084 }, - { 0x02EB, 49088 }, - { 0x02CA, 49094 }, - { 0x02FB, 49098 }, - { 0x02F9, 49103 }, - { 0x02DF, 49108 }, - { 0x02CB, 49112 }, - { 0x571A, 49116 }, - { 0x02D7, 49122 }, - { 0x02B9, 49126 }, - { 0x02BE, 49129 }, - { 0x02C3, 49134 }, - { 0x02FD, 49138 }, - { 0x1D43, 49141 }, - { 0x1D47, 49145 }, - { 0x1D9C, 49149 }, - { 0x1D9D, 49153 }, - { 0x1D48, 49159 }, - { 0x1D49, 49163 }, - { 0x1DA0, 49167 }, - { 0x1D4D, 49171 }, - { 0x02B0, 49175 }, - { 0x02B1, 49179 }, - { 0x1DA4, 49185 }, - { 0x02B2, 49191 }, - { 0x1DA8, 49195 }, - { 0x1D4F, 49201 }, - { 0x02E1, 49205 }, - { 0x1DAA, 49209 }, - { 0x1DA9, 49216 }, - { 0x1D50, 49223 }, - { 0x1DAC, 49227 }, - { 0x1DAE, 49233 }, - { 0x1DAF, 49240 }, - { 0x1D52, 49247 }, - { 0x1D56, 49251 }, - { 0x02B3, 49255 }, - { 0x02E2, 49259 }, - { 0x1DB3, 49263 }, - { 0x1D57, 49269 }, - { 0x1DB5, 49273 }, - { 0x1D58, 49280 }, - { 0x1DB6, 49284 }, - { 0x1D5B, 49289 }, - { 0x1DB9, 49293 }, - { 0x02B7, 49299 }, - { 0x02E3, 49303 }, - { 0x02B8, 49307 }, - { 0x1DBB, 49311 }, - { 0x1DBD, 49315 }, - { 0x1DBC, 49321 }, - { 0x1D5C, 49328 }, - { 0x1D61, 49332 }, - { 0x1D51, 49336 }, - { 0x1DB4, 49340 }, - { 0x1D9E, 49344 }, - { 0x1DBE, 49348 }, - { 0x1DB2, 49352 }, - { 0x1D54, 49356 }, - { 0x1D5D, 49362 }, - { 0x1DA5, 49366 }, - { 0x1D4B, 49370 }, - { 0x1D53, 49375 }, - { 0x1D45, 49380 }, - { 0x1D5F, 49384 }, - { 0x02E0, 49388 }, - { 0x1D60, 49392 }, - { 0x1D5E, 49397 }, - { 0x1D4A, 49402 }, - { 0x1DBF, 49406 }, - { 0x1DB1, 49410 }, - { 0x1D55, 49415 }, - { 0x1DA2, 49421 }, - { 0x1D44, 49426 }, - { 0x1DA3, 49431 }, - { 0x1D4E, 49436 }, - { 0x1D5A, 49441 }, - { 0x1DAD, 49446 }, - { 0x02B4, 49454 }, - { 0x02B5, 49459 }, - { 0x1DBA, 49466 }, - { 0x1D46, 49471 }, - { 0x1D4C, 49476 }, - { 0x1D9B, 49482 }, - { 0x1DA6, 49487 }, - { 0x1DA7, 49492 }, - { 0x1DAB, 49499 }, - { 0x1DB0, 49504 }, - { 0x1DB8, 49509 }, - { 0x02B6, 49514 }, - { 0x1DA1, 49520 }, - { 0x1DB7, 49527 }, - { 0x1D9F, 49531 }, - { 0x02E4, 49537 }, - { 0x1D59, 49543 }, - { 0x02BA, 49548 }, - { 0x02EE, 49552 }, - { 0x02C9, 49556 }, - { 0x02F4, 49559 }, - { 0x02F6, 49564 }, - { 0x02F5, 49570 }, - { 0x02F8, 49576 }, - { 0x02DE, 49580 }, - { 0x5721, 49584 }, - { 0x5720, 49590 }, - { 0x02BB, 49596 }, - { 0x1D2C, 49600 }, - { 0x1D2E, 49604 }, - { 0x1D30, 49608 }, - { 0x1D31, 49612 }, - { 0x1D33, 49616 }, - { 0x1D34, 49620 }, - { 0x1D35, 49624 }, - { 0x1D36, 49628 }, - { 0x1D37, 49632 }, - { 0x1D38, 49636 }, - { 0x1D39, 49640 }, - { 0x1D3A, 49644 }, - { 0x1D3C, 49648 }, - { 0x1D3E, 49652 }, - { 0x1D3F, 49656 }, - { 0x1D40, 49660 }, - { 0x1D41, 49664 }, - { 0x1D42, 49668 }, - { 0x1D2D, 49672 }, - { 0x1D3D, 49676 }, - { 0x1D2F, 49680 }, - { 0x1D32, 49685 }, - { 0x1D3B, 49690 }, - { 0x02D3, 49695 }, - { 0x02D2, 49701 }, - { 0x5704, 49707 }, - { 0x5706, 49713 }, - { 0x5700, 49719 }, - { 0x5702, 49725 }, - { 0x5705, 49731 }, - { 0x5707, 49737 }, - { 0x5701, 49743 }, - { 0x5703, 49749 }, - { 0x02C0, 49755 }, - { 0x02EC, 49759 }, - { 0x1D78, 49762 }, - { 0x10FC, 49766 }, - { 0x02BD, 49770 }, - { 0x02C1, 49774 }, - { 0x02C8, 49779 }, - { 0x02E9, 49783 }, - { 0x570C, 49788 }, - { 0x5711, 49794 }, - { 0x5716, 49801 }, - { 0x02BC, 49807 }, - { 0x02C6, 49810 }, - { 0x02E5, 49814 }, - { 0x5708, 49819 }, - { 0x570D, 49825 }, - { 0x5712, 49832 }, - { 0x02D0, 49838 }, - { 0x02ED, 49842 }, - { 0x268B, 49845 }, - { 0x268A, 49848 }, - { 0x9300, 49851 }, - { 0x22B8, 49854 }, - { 0x228C, 49855 }, - { 0x228E, 49856 }, - { 0x228D, 49858 }, - { 0x206E, 49860 }, - { 0x24FF, 49863 }, - { 0x24EB, 49867 }, - { 0x24EC, 49871 }, - { 0x24F4, 49875 }, - { 0x24EF, 49879 }, - { 0x24F0, 49883 }, - { 0x24F2, 49887 }, - { 0x24EE, 49891 }, - { 0x24F3, 49895 }, - { 0x24ED, 49899 }, - { 0x24F1, 49903 }, - { 0x00A0, 49907 }, - { 0x22B6, 49909 }, - { 0x2626, 49911 }, - { 0x272D, 49913 }, - { 0x2719, 49916 }, - { 0x271F, 49919 }, - { 0x203E, 49922 }, - { 0x2225, 49923 }, - { 0x2AF3, 49925 }, - { 0x2AF2, 49929 }, - { 0x5876, 49933 }, - { 0x5877, 49936 }, - { 0x5875, 49940 }, - { 0x585D, 49944 }, - { 0x5860, 49947 }, - { 0x585E, 49950 }, - { 0x5861, 49953 }, - { 0x585F, 49956 }, - { 0x584E, 49959 }, - { 0x5844, 49962 }, - { 0x584A, 49965 }, - { 0x5866, 49968 }, - { 0x5864, 49971 }, - { 0x5842, 49974 }, - { 0x585C, 49977 }, - { 0x5846, 49980 }, - { 0x5840, 49983 }, - { 0x5859, 49986 }, - { 0x584F, 49989 }, - { 0x584B, 49992 }, - { 0x584C, 49995 }, - { 0x5862, 49998 }, - { 0x5858, 50001 }, - { 0x585B, 50004 }, - { 0x5848, 50007 }, - { 0x5853, 50010 }, - { 0x5863, 50013 }, - { 0x5857, 50016 }, - { 0x5855, 50019 }, - { 0x5845, 50022 }, - { 0x586B, 50025 }, - { 0x5852, 50028 }, - { 0x5865, 50031 }, - { 0x5841, 50034 }, - { 0x5843, 50037 }, - { 0x586C, 50040 }, - { 0x5847, 50043 }, - { 0x584D, 50046 }, - { 0x585A, 50049 }, - { 0x5849, 50052 }, - { 0x5850, 50055 }, - { 0x5869, 50058 }, - { 0x5854, 50061 }, - { 0x5851, 50064 }, - { 0x586A, 50067 }, - { 0x5856, 50070 }, - { 0x586F, 50074 }, - { 0x586D, 50078 }, - { 0x5870, 50082 }, - { 0x586E, 50086 }, - { 0x5873, 50090 }, - { 0x5874, 50093 }, - { 0x5871, 50097 }, - { 0x5867, 50101 }, - { 0x5868, 50105 }, - { 0x5872, 50109 }, - { 0x272F, 50113 }, - { 0x2316, 50115 }, - { 0x227A, 50117 }, - { 0x227C, 50118 }, - { 0x227E, 50122 }, - { 0x22E8, 50126 }, - { 0x2AB5, 50131 }, - { 0x2AB9, 50136 }, - { 0x2AB7, 50142 }, - { 0x2AB3, 50147 }, - { 0x2AB1, 50151 }, - { 0x2AAF, 50157 }, - { 0x22B0, 50162 }, - { 0x2397, 50165 }, - { 0x214A, 50167 }, - { 0x2596, 50169 }, - { 0x2597, 50172 }, - { 0x2598, 50175 }, - { 0x2599, 50178 }, - { 0x259A, 50187 }, - { 0x259B, 50193 }, - { 0x259C, 50202 }, - { 0x259D, 50211 }, - { 0x259E, 50214 }, - { 0x259F, 50220 }, - { 0x003F, 50229 }, - { 0x2048, 50231 }, - { 0x267C, 50234 }, - { 0x211F, 50237 }, - { 0x2310, 50238 }, - { 0x29A3, 50241 }, - { 0x29A5, 50243 }, - { 0x29B0, 50247 }, - { 0x2035, 50250 }, - { 0x223D, 50252 }, - { 0x22CD, 50254 }, - { 0x2036, 50257 }, - { 0x301D, 50260 }, - { 0x2AED, 50265 }, - { 0x2E11, 50270 }, - { 0x2037, 50273 }, - { 0x204B, 50276 }, - { 0x2619, 50279 }, - { 0x204F, 50284 }, - { 0x2143, 50286 }, - { 0x264F, 50290 }, - { 0x2730, 50291 }, - { 0x271E, 50294 }, - { 0x274D, 50298 }, - { 0x2618, 50301 }, - { 0x2263, 50302 }, - { 0x227B, 50305 }, - { 0x227D, 50306 }, - { 0x227F, 50310 }, - { 0x22E9, 50314 }, - { 0x2AB6, 50319 }, - { 0x2ABA, 50324 }, - { 0x2AB8, 50330 }, - { 0x2AB4, 50335 }, - { 0x2AB2, 50339 }, - { 0x2AB0, 50345 }, - { 0x22B1, 50350 }, - { 0x2283, 50353 }, - { 0x2287, 50355 }, - { 0x2AC4, 50360 }, - { 0x228B, 50368 }, - { 0x2ACC, 50374 }, - { 0x2AC8, 50380 }, - { 0x2ACA, 50385 }, - { 0x2AC6, 50391 }, - { 0x2ABE, 50396 }, - { 0x2AC0, 50399 }, - { 0x2AC2, 50404 }, - { 0x2AD4, 50409 }, - { 0x2AD6, 50412 }, - { 0x297B, 50415 }, - { 0x2AD8, 50419 }, - { 0x2AD7, 50427 }, - { 0x27C9, 50430 }, - { 0x232F, 50433 }, - { 0x1772, 50434 }, - { 0x1773, 50438 }, - { 0x1760, 50442 }, - { 0x1761, 50445 }, - { 0x1762, 50448 }, - { 0x176A, 50451 }, - { 0x1767, 50454 }, - { 0x1764, 50457 }, - { 0x1763, 50460 }, - { 0x176E, 50463 }, - { 0x176B, 50466 }, - { 0x1768, 50469 }, - { 0x1769, 50472 }, - { 0x1770, 50475 }, - { 0x1766, 50478 }, - { 0x176F, 50481 }, - { 0x176C, 50484 }, - { 0x1765, 50487 }, - { 0x2D30, 50490 }, - { 0x2D49, 50493 }, - { 0x2D53, 50496 }, - { 0x2D44, 50499 }, - { 0x2D31, 50502 }, - { 0x2D37, 50505 }, - { 0x2D3C, 50508 }, - { 0x2D33, 50511 }, - { 0x2D40, 50514 }, - { 0x2D36, 50517 }, - { 0x2D3D, 50520 }, - { 0x2D4D, 50523 }, - { 0x2D4E, 50526 }, - { 0x2D4F, 50529 }, - { 0x2D52, 50532 }, - { 0x2D47, 50535 }, - { 0x2D54, 50538 }, - { 0x2D59, 50541 }, - { 0x2D5C, 50544 }, - { 0x2D60, 50547 }, - { 0x2D61, 50550 }, - { 0x2D62, 50553 }, - { 0x2D63, 50556 }, - { 0x2D3B, 50559 }, - { 0x2D58, 50562 }, - { 0x2D32, 50566 }, - { 0x2D5E, 50569 }, - { 0x2D39, 50572 }, - { 0x2D38, 50575 }, - { 0x2D56, 50578 }, - { 0x2D43, 50581 }, - { 0x2D45, 50584 }, - { 0x2D55, 50587 }, - { 0x2D5B, 50590 }, - { 0x2D5A, 50593 }, - { 0x2D5D, 50596 }, - { 0x2D5F, 50599 }, - { 0x2D4A, 50602 }, - { 0x2D65, 50605 }, - { 0x2D3A, 50608 }, - { 0x2D34, 50611 }, - { 0x2D3F, 50614 }, - { 0x2D41, 50617 }, - { 0x2D35, 50622 }, - { 0x2D42, 50627 }, - { 0x2D3E, 50631 }, - { 0x2D48, 50635 }, - { 0x2D57, 50639 }, - { 0x2D50, 50643 }, - { 0x2D46, 50647 }, - { 0x2D51, 50651 }, - { 0x2D4C, 50655 }, - { 0x2D4B, 50659 }, - { 0x2D64, 50663 }, - { 0x2D6F, 50667 }, - { 0x204A, 50672 }, - { 0x29CA, 50675 }, - { 0x29CD, 50679 }, - { 0x29CB, 50684 }, - { 0x205D, 50687 }, - { 0x739F, 50688 }, - { 0x739B, 50691 }, - { 0x739C, 50694 }, - { 0x7385, 50697 }, - { 0x7394, 50700 }, - { 0x739A, 50703 }, - { 0x7386, 50706 }, - { 0x7391, 50709 }, - { 0x7393, 50712 }, - { 0x738B, 50715 }, - { 0x7383, 50718 }, - { 0x738E, 50721 }, - { 0x7390, 50724 }, - { 0x739D, 50727 }, - { 0x7389, 50730 }, - { 0x738A, 50733 }, - { 0x7380, 50736 }, - { 0x7381, 50739 }, - { 0x738F, 50742 }, - { 0x7388, 50745 }, - { 0x7396, 50748 }, - { 0x7395, 50751 }, - { 0x738C, 50754 }, - { 0x7387, 50757 }, - { 0x7384, 50760 }, - { 0x7382, 50763 }, - { 0x7399, 50766 }, - { 0x738D, 50769 }, - { 0x7397, 50772 }, - { 0x7392, 50775 }, - { 0x7398, 50778 }, - { 0x2602, 50781 }, - { 0x2614, 50782 }, - { 0x203F, 50786 }, - { 0x2123, 50787 }, - { 0x27CA, 50788 }, - { 0x29D0, 50793 }, - { 0x2AE4, 50798 }, - { 0x2AE2, 50803 }, - { 0x205E, 50808 }, - { 0x3031, 50811 }, - { 0x3035, 50815 }, - { 0x3033, 50821 }, - { 0x3032, 50827 }, - { 0x3034, 50834 }, - { 0x007C, 50843 }, - { 0x2AEF, 50845 }, - { 0x2AF0, 50850 }, - { 0x237F, 50855 }, - { 0x23D0, 50860 }, - { 0x26A8, 50863 }, - { 0x299A, 50868 }, - { 0x22EE, 50871 }, - { 0x303B, 50873 }, - { 0x2317, 50877 }, - { 0x2101, 50879 }, - { 0x0026, 50883 }, - { 0x260A, 50884 }, - { 0x22A6, 50886 }, - { 0x2623, 50887 }, - { 0x902F, 50889 }, - { 0x900E, 50893 }, - { 0x9085, 50898 }, - { 0x9046, 50902 }, - { 0x901A, 50907 }, - { 0x9040, 50912 }, - { 0x9079, 50916 }, - { 0x9030, 50922 }, - { 0x907D, 50926 }, - { 0x907C, 50931 }, - { 0x909C, 50936 }, - { 0x909E, 50941 }, - { 0x909A, 50946 }, - { 0x90A1, 50952 }, - { 0x909F, 50958 }, - { 0x909D, 50963 }, - { 0x909B, 50968 }, - { 0x90A0, 50973 }, - { 0x9033, 50978 }, - { 0x900D, 50984 }, - { 0x9097, 50989 }, - { 0x90C8, 50993 }, - { 0x90C9, 50998 }, - { 0x90CA, 51003 }, - { 0x9086, 51008 }, - { 0x9080, 51012 }, - { 0x902E, 51017 }, - { 0x9048, 51021 }, - { 0x9004, 51026 }, - { 0x9003, 51031 }, - { 0x9000, 51036 }, - { 0x9025, 51040 }, - { 0x9066, 51044 }, - { 0x902D, 51048 }, - { 0x9078, 51052 }, - { 0x9014, 51057 }, - { 0x9019, 51061 }, - { 0x906A, 51065 }, - { 0x9001, 51070 }, - { 0x90D0, 51074 }, - { 0x90D2, 51081 }, - { 0x90D3, 51088 }, - { 0x90D1, 51095 }, - { 0x90CE, 51102 }, - { 0x90CF, 51107 }, - { 0x9060, 51112 }, - { 0x9074, 51117 }, - { 0x90C5, 51122 }, - { 0x90CB, 51129 }, - { 0x90BC, 51136 }, - { 0x90C7, 51142 }, - { 0x90C3, 51147 }, - { 0x90C4, 51154 }, - { 0x90C6, 51161 }, - { 0x90BE, 51168 }, - { 0x9034, 51175 }, - { 0x90B9, 51180 }, - { 0x90BD, 51187 }, - { 0x90BF, 51193 }, - { 0x90C2, 51199 }, - { 0x90C1, 51206 }, - { 0x90BA, 51213 }, - { 0x90C0, 51219 }, - { 0x90BB, 51225 }, - { 0x90CC, 51231 }, - { 0x90D8, 51237 }, - { 0x90D9, 51242 }, - { 0x908F, 51247 }, - { 0x90F5, 51253 }, - { 0x9016, 51259 }, - { 0x9091, 51264 }, - { 0x9090, 51270 }, - { 0x90AC, 51276 }, - { 0x9037, 51282 }, - { 0x9024, 51287 }, - { 0x907F, 51291 }, - { 0x90F4, 51296 }, - { 0x908B, 51301 }, - { 0x908A, 51307 }, - { 0x908C, 51313 }, - { 0x908E, 51319 }, - { 0x908D, 51325 }, - { 0x9057, 51331 }, - { 0x9047, 51336 }, - { 0x9015, 51341 }, - { 0x905B, 51346 }, - { 0x9020, 51350 }, - { 0x9059, 51355 }, - { 0x9026, 51360 }, - { 0x9017, 51365 }, - { 0x9029, 51369 }, - { 0x9069, 51373 }, - { 0x90E8, 51378 }, - { 0x900F, 51382 }, - { 0x9087, 51386 }, - { 0x9058, 51390 }, - { 0x9006, 51395 }, - { 0x9005, 51400 }, - { 0x90D4, 51405 }, - { 0x90D6, 51412 }, - { 0x90D7, 51419 }, - { 0x90D5, 51426 }, - { 0x90CD, 51433 }, - { 0x9050, 51438 }, - { 0x90EC, 51442 }, - { 0x90EB, 51447 }, - { 0x90ED, 51452 }, - { 0x90EF, 51457 }, - { 0x90E9, 51462 }, - { 0x90EE, 51467 }, - { 0x90EA, 51472 }, - { 0x9056, 51477 }, - { 0x9099, 51481 }, - { 0x9055, 51485 }, - { 0x90B6, 51489 }, - { 0x903F, 51496 }, - { 0x904F, 51500 }, - { 0x90F3, 51506 }, - { 0x90F1, 51512 }, - { 0x901B, 51518 }, - { 0x9089, 51523 }, - { 0x9083, 51527 }, - { 0x9082, 51532 }, - { 0x9081, 51537 }, - { 0x9061, 51542 }, - { 0x905D, 51546 }, - { 0x9041, 51550 }, - { 0x9049, 51554 }, - { 0x903C, 51558 }, - { 0x907E, 51562 }, - { 0x901F, 51566 }, - { 0x9065, 51571 }, - { 0x902B, 51576 }, - { 0x902A, 51582 }, - { 0x9013, 51587 }, - { 0x9031, 51591 }, - { 0x9027, 51595 }, - { 0x9021, 51599 }, - { 0x9053, 51604 }, - { 0x9084, 51608 }, - { 0x9022, 51613 }, - { 0x9023, 51618 }, - { 0x9018, 51622 }, - { 0x9067, 51626 }, - { 0x903B, 51631 }, - { 0x90DA, 51636 }, - { 0x90DB, 51642 }, - { 0x90DC, 51648 }, - { 0x90DD, 51653 }, - { 0x9092, 51658 }, - { 0x9095, 51662 }, - { 0x9094, 51668 }, - { 0x9093, 51675 }, - { 0x90E6, 51682 }, - { 0x9068, 51687 }, - { 0x90B7, 51691 }, - { 0x9007, 51695 }, - { 0x903A, 51699 }, - { 0x9042, 51703 }, - { 0x904A, 51708 }, - { 0x900C, 51712 }, - { 0x90A3, 51716 }, - { 0x90A5, 51723 }, - { 0x90B1, 51730 }, - { 0x90A2, 51736 }, - { 0x90A6, 51742 }, - { 0x90AA, 51748 }, - { 0x90AB, 51754 }, - { 0x90B3, 51760 }, - { 0x90A4, 51767 }, - { 0x90A8, 51773 }, - { 0x90A9, 51779 }, - { 0x90A7, 51786 }, - { 0x90B2, 51791 }, - { 0x901E, 51797 }, - { 0x9038, 51801 }, - { 0x904D, 51805 }, - { 0x901D, 51810 }, - { 0x90E2, 51814 }, - { 0x90E3, 51819 }, - { 0x90E4, 51825 }, - { 0x90E5, 51831 }, - { 0x90DE, 51837 }, - { 0x90DF, 51842 }, - { 0x90E0, 51848 }, - { 0x90E1, 51854 }, - { 0x9088, 51860 }, - { 0x9063, 51864 }, - { 0x9043, 51869 }, - { 0x9036, 51874 }, - { 0x90E7, 51879 }, - { 0x907B, 51884 }, - { 0x90B0, 51888 }, - { 0x90AF, 51893 }, - { 0x90AE, 51898 }, - { 0x9035, 51903 }, - { 0x907A, 51907 }, - { 0x9010, 51911 }, - { 0x904E, 51915 }, - { 0x90F2, 51921 }, - { 0x90F0, 51927 }, - { 0x901C, 51933 }, - { 0x9032, 51938 }, - { 0x9075, 51942 }, - { 0x902C, 51947 }, - { 0x9039, 51952 }, - { 0x905A, 51956 }, - { 0x9008, 51961 }, - { 0x9096, 51965 }, - { 0x900A, 51969 }, - { 0x900B, 51973 }, - { 0x905C, 51978 }, - { 0x90AD, 51982 }, - { 0x9052, 51988 }, - { 0x9011, 51994 }, - { 0x9051, 51998 }, - { 0x9012, 52003 }, - { 0x9064, 52008 }, - { 0x90B4, 52012 }, - { 0x90B5, 52018 }, - { 0x9098, 52024 }, - { 0x90B8, 52028 }, - { 0x905F, 52032 }, - { 0x903D, 52037 }, - { 0x9009, 52042 }, - { 0x905E, 52046 }, - { 0x903E, 52051 }, - { 0x9002, 52056 }, - { 0x9076, 52060 }, - { 0x9077, 52065 }, - { 0x9028, 52070 }, - { 0x9045, 52074 }, - { 0x9044, 52078 }, - { 0x9073, 52082 }, - { 0x9072, 52086 }, - { 0x906D, 52090 }, - { 0x9070, 52094 }, - { 0x9062, 52098 }, - { 0x904C, 52102 }, - { 0x9054, 52106 }, - { 0x904B, 52110 }, - { 0x906C, 52114 }, - { 0x9071, 52118 }, - { 0x906B, 52122 }, - { 0x906E, 52126 }, - { 0x906F, 52130 }, - { 0x2651, 52134 }, - { 0x2040, 52135 }, - { 0x21B7, 52137 }, - { 0x21BB, 52141 }, - { 0x2941, 52145 }, - { 0x27F3, 52149 }, - { 0x2232, 52153 }, - { 0x2231, 52156 }, - { 0x033D, 52158 }, - { 0x0353, 52161 }, - { 0x031D, 52164 }, - { 0x0307, 52168 }, - { 0x0358, 52171 }, - { 0x0323, 52175 }, - { 0x0332, 52178 }, - { 0x034A, 52181 }, - { 0x031E, 52185 }, - { 0x20DC, 52189 }, - { 0x0309, 52193 }, - { 0x031B, 52196 }, - { 0x0351, 52198 }, - { 0x031C, 52203 }, - { 0x0318, 52208 }, - { 0x031A, 52212 }, - { 0x0349, 52216 }, - { 0x20D6, 52220 }, - { 0x20EE, 52224 }, - { 0x20E1, 52228 }, - { 0x034D, 52233 }, - { 0x20D0, 52238 }, - { 0x1DFE, 52242 }, - { 0x0354, 52246 }, - { 0x20EB, 52250 }, - { 0x0336, 52255 }, - { 0x0338, 52259 }, - { 0x20D2, 52263 }, - { 0x031F, 52268 }, - { 0x030A, 52272 }, - { 0x0325, 52275 }, - { 0x20D8, 52278 }, - { 0x20E9, 52281 }, - { 0x0341, 52285 }, - { 0x0301, 52289 }, - { 0x0317, 52292 }, - { 0x0306, 52296 }, - { 0x032E, 52298 }, - { 0x030C, 52301 }, - { 0x032C, 52303 }, - { 0x0313, 52306 }, - { 0x0315, 52309 }, - { 0x0326, 52313 }, - { 0x0340, 52316 }, - { 0x0300, 52320 }, - { 0x0316, 52323 }, - { 0x0343, 52327 }, - { 0x9242, 52330 }, - { 0x9244, 52334 }, - { 0x9243, 52338 }, - { 0x0344, 52342 }, - { 0x0342, 52346 }, - { 0x0345, 52349 }, - { 0x0363, 52352 }, - { 0x0368, 52357 }, - { 0x0369, 52362 }, - { 0x0364, 52367 }, - { 0x036A, 52372 }, - { 0x0365, 52377 }, - { 0x036B, 52382 }, - { 0x0366, 52387 }, - { 0x036C, 52392 }, - { 0x1DCA, 52397 }, - { 0x036D, 52403 }, - { 0x0367, 52408 }, - { 0x036E, 52413 }, - { 0x036F, 52418 }, - { 0x0320, 52423 }, - { 0x0357, 52427 }, - { 0x0339, 52432 }, - { 0x0319, 52437 }, - { 0x20D7, 52441 }, - { 0x20EF, 52445 }, - { 0x20D1, 52449 }, - { 0x0356, 52453 }, - { 0x1DFF, 52460 }, - { 0x0350, 52467 }, - { 0x0355, 52471 }, - { 0x0335, 52475 }, - { 0x0337, 52479 }, - { 0x20D3, 52483 }, - { 0x1DC2, 52488 }, - { 0x20DB, 52491 }, - { 0x0303, 52495 }, - { 0x0330, 52497 }, - { 0x0334, 52500 }, - { 0x034C, 52503 }, - { 0x0346, 52508 }, - { 0x032A, 52511 }, - { 0x1DC1, 52514 }, - { 0x1DC0, 52518 }, - { 0x0333, 52522 }, - { 0x035A, 52526 }, - { 0x030B, 52530 }, - { 0x035D, 52534 }, - { 0x035C, 52537 }, - { 0x030F, 52541 }, - { 0x0360, 52545 }, - { 0x6E22, 52548 }, - { 0x6E23, 52553 }, - { 0x035E, 52558 }, - { 0x035F, 52561 }, - { 0x0361, 52565 }, - { 0x033F, 52569 }, - { 0x030E, 52572 }, - { 0x0348, 52577 }, - { 0x20E6, 52582 }, - { 0x0362, 52587 }, - { 0x0347, 52592 }, - { 0x0304, 52596 }, - { 0x0331, 52598 }, - { 0x0328, 52601 }, - { 0x033B, 52603 }, - { 0x20E8, 52606 }, - { 0x0312, 52609 }, - { 0x035B, 52613 }, - { 0x20E7, 52616 }, - { 0x0327, 52619 }, - { 0x0352, 52621 }, - { 0x20E5, 52623 }, - { 0x033C, 52627 }, - { 0x034E, 52630 }, - { 0x0359, 52634 }, - { 0x0485, 52637 }, - { 0x0486, 52641 }, - { 0x0483, 52645 }, - { 0x0488, 52648 }, - { 0x0489, 52653 }, - { 0x0484, 52657 }, - { 0x034F, 52660 }, - { 0x0311, 52663 }, - { 0x032F, 52666 }, - { 0x033A, 52670 }, - { 0x032B, 52674 }, - { 0x6E20, 52679 }, - { 0x6E21, 52683 }, - { 0x0305, 52687 }, - { 0x0314, 52689 }, - { 0x030D, 52693 }, - { 0x0329, 52697 }, - { 0x033E, 52701 }, - { 0x20D9, 52704 }, - { 0x20D5, 52708 }, - { 0x0308, 52712 }, - { 0x0324, 52714 }, - { 0x20DD, 52717 }, - { 0x20E0, 52720 }, - { 0x20E3, 52724 }, - { 0x20E2, 52727 }, - { 0x20DE, 52730 }, - { 0x20E4, 52733 }, - { 0x20DF, 52738 }, - { 0x20EA, 52741 }, - { 0x20ED, 52745 }, - { 0x0322, 52751 }, - { 0x0302, 52755 }, - { 0x032D, 52758 }, - { 0x034B, 52762 }, - { 0x20EC, 52765 }, - { 0x1DC3, 52771 }, - { 0x0310, 52774 }, - { 0x0321, 52776 }, - { 0x1DC7, 52780 }, - { 0x1DC5, 52782 }, - { 0x1DC4, 52784 }, - { 0x1DC6, 52786 }, - { 0x20DA, 52788 }, - { 0x20D4, 52792 }, - { 0x1DC9, 52796 }, - { 0x1DC8, 52798 }, - { 0x3099, 52800 }, - { 0x309A, 52805 }, - { 0x2A6D, 52810 }, - { 0x00A9, 52814 }, - { 0x8000, 52816 }, - { 0x8001, 52819 }, - { 0x8004, 52824 }, - { 0x8002, 52829 }, - { 0x8005, 52834 }, - { 0x8008, 52839 }, - { 0x8003, 52844 }, - { 0x8007, 52850 }, - { 0x8006, 52855 }, - { 0x808A, 52861 }, - { 0x808C, 52864 }, - { 0x808B, 52872 }, - { 0x813F, 52877 }, - { 0x8140, 52880 }, - { 0x830B, 52884 }, - { 0x830D, 52887 }, - { 0x830C, 52892 }, - { 0x8310, 52896 }, - { 0x830E, 52906 }, - { 0x830F, 52917 }, - { 0x8009, 52925 }, - { 0x800A, 52928 }, - { 0x8015, 52931 }, - { 0x8014, 52935 }, - { 0x800F, 52944 }, - { 0x800D, 52949 }, - { 0x8010, 52954 }, - { 0x800B, 52960 }, - { 0x800C, 52965 }, - { 0x800E, 52971 }, - { 0x8011, 52977 }, - { 0x8012, 52982 }, - { 0x8013, 52987 }, - { 0x801C, 52992 }, - { 0x801D, 52995 }, - { 0x801E, 52998 }, - { 0x801F, 53003 }, - { 0x8020, 53010 }, - { 0x8021, 53013 }, - { 0x8024, 53018 }, - { 0x8026, 53023 }, - { 0x8027, 53028 }, - { 0x8028, 53033 }, - { 0x8022, 53038 }, - { 0x8023, 53043 }, - { 0x8025, 53048 }, - { 0x802D, 53053 }, - { 0x802E, 53056 }, - { 0x8031, 53061 }, - { 0x8030, 53067 }, - { 0x802F, 53076 }, - { 0x8040, 53081 }, - { 0x8049, 53084 }, - { 0x804A, 53087 }, - { 0x804B, 53092 }, - { 0x804C, 53097 }, - { 0x804D, 53103 }, - { 0x804E, 53106 }, - { 0x804F, 53112 }, - { 0x8050, 53118 }, - { 0x8055, 53123 }, - { 0x8072, 53126 }, - { 0x807A, 53129 }, - { 0x807C, 53132 }, - { 0x807B, 53136 }, - { 0x807D, 53141 }, - { 0x808D, 53145 }, - { 0x808E, 53148 }, - { 0x8093, 53157 }, - { 0x8090, 53162 }, - { 0x808F, 53167 }, - { 0x8091, 53172 }, - { 0x8092, 53177 }, - { 0x8096, 53182 }, - { 0x8097, 53185 }, - { 0x809A, 53188 }, - { 0x8098, 53193 }, - { 0x8099, 53198 }, - { 0x809D, 53204 }, - { 0x809B, 53208 }, - { 0x809C, 53213 }, - { 0x80B5, 53218 }, - { 0x80B6, 53221 }, - { 0x8100, 53225 }, - { 0x8101, 53228 }, - { 0x8102, 53233 }, - { 0x8103, 53238 }, - { 0x8116, 53243 }, - { 0x8117, 53246 }, - { 0x8129, 53251 }, - { 0x812B, 53254 }, - { 0x812A, 53258 }, - { 0x812D, 53262 }, - { 0x8136, 53265 }, - { 0x812E, 53270 }, - { 0x8130, 53275 }, - { 0x8132, 53280 }, - { 0x8133, 53285 }, - { 0x8134, 53290 }, - { 0x8135, 53295 }, - { 0x812F, 53300 }, - { 0x8131, 53305 }, - { 0x8137, 53310 }, - { 0x8141, 53313 }, - { 0x8145, 53316 }, - { 0x814B, 53319 }, - { 0x814C, 53322 }, - { 0x814E, 53328 }, - { 0x814F, 53331 }, - { 0x8152, 53336 }, - { 0x8150, 53340 }, - { 0x8151, 53345 }, - { 0x8154, 53350 }, - { 0x8155, 53353 }, - { 0x8157, 53356 }, - { 0x8158, 53359 }, - { 0x8187, 53364 }, - { 0x8159, 53369 }, - { 0x815A, 53374 }, - { 0x815F, 53381 }, - { 0x8162, 53386 }, - { 0x8167, 53391 }, - { 0x816B, 53396 }, - { 0x816E, 53401 }, - { 0x8170, 53406 }, - { 0x8172, 53411 }, - { 0x8173, 53416 }, - { 0x8174, 53421 }, - { 0x8175, 53426 }, - { 0x8176, 53433 }, - { 0x8177, 53440 }, - { 0x8178, 53447 }, - { 0x8179, 53452 }, - { 0x817A, 53459 }, - { 0x817C, 53464 }, - { 0x817D, 53469 }, - { 0x817E, 53474 }, - { 0x8188, 53479 }, - { 0x8189, 53484 }, - { 0x818C, 53489 }, - { 0x815C, 53494 }, - { 0x815E, 53499 }, - { 0x8163, 53504 }, - { 0x8165, 53509 }, - { 0x8166, 53514 }, - { 0x816D, 53523 }, - { 0x816F, 53528 }, - { 0x8171, 53533 }, - { 0x817B, 53538 }, - { 0x817F, 53543 }, - { 0x8180, 53548 }, - { 0x8181, 53553 }, - { 0x8183, 53558 }, - { 0x8184, 53563 }, - { 0x8186, 53568 }, - { 0x818B, 53573 }, - { 0x815B, 53578 }, - { 0x8161, 53583 }, - { 0x8164, 53588 }, - { 0x8168, 53594 }, - { 0x8169, 53599 }, - { 0x816A, 53606 }, - { 0x816C, 53613 }, - { 0x8182, 53618 }, - { 0x818A, 53623 }, - { 0x815D, 53630 }, - { 0x8160, 53635 }, - { 0x8185, 53640 }, - { 0x81A0, 53645 }, - { 0x81A2, 53648 }, - { 0x81A3, 53653 }, - { 0x81A1, 53658 }, - { 0x81AA, 53663 }, - { 0x81AB, 53666 }, - { 0x81B7, 53678 }, - { 0x81F7, 53681 }, - { 0x81FB, 53684 }, - { 0x81FC, 53687 }, - { 0x8220, 53692 }, - { 0x8222, 53695 }, - { 0x8221, 53699 }, - { 0x8228, 53704 }, - { 0x822A, 53707 }, - { 0x822C, 53710 }, - { 0x822D, 53713 }, - { 0x823E, 53718 }, - { 0x8248, 53721 }, - { 0x8249, 53724 }, - { 0x824A, 53729 }, - { 0x824B, 53734 }, - { 0x824C, 53738 }, - { 0x824D, 53741 }, - { 0x8261, 53746 }, - { 0x827A, 53749 }, - { 0x827F, 53752 }, - { 0x8280, 53755 }, - { 0x8284, 53760 }, - { 0x8285, 53765 }, - { 0x8287, 53770 }, - { 0x8281, 53775 }, - { 0x8282, 53780 }, - { 0x8283, 53785 }, - { 0x8286, 53790 }, - { 0x8288, 53795 }, - { 0x8289, 53800 }, - { 0x828F, 53805 }, - { 0x8291, 53808 }, - { 0x8292, 53811 }, - { 0x8293, 53814 }, - { 0x82DB, 53817 }, - { 0x82DC, 53820 }, - { 0x82E2, 53824 }, - { 0x82E3, 53827 }, - { 0x82EB, 53832 }, - { 0x82EF, 53835 }, - { 0x82ED, 53839 }, - { 0x82EE, 53844 }, - { 0x82EC, 53849 }, - { 0x82FC, 53853 }, - { 0x82FD, 53856 }, - { 0x82FE, 53860 }, - { 0x82FF, 53863 }, - { 0x8305, 53867 }, - { 0x8311, 53870 }, - { 0x8312, 53873 }, - { 0x8313, 53876 }, - { 0x8319, 53879 }, - { 0x8317, 53883 }, - { 0x8318, 53892 }, - { 0x8316, 53902 }, - { 0x8315, 53907 }, - { 0x8314, 53912 }, - { 0x831A, 53916 }, - { 0x831B, 53920 }, - { 0x831D, 53926 }, - { 0x8321, 53929 }, - { 0x831F, 53934 }, - { 0x8320, 53941 }, - { 0x831E, 53946 }, - { 0x8326, 53951 }, - { 0x8327, 53954 }, - { 0x8328, 53958 }, - { 0x832A, 53961 }, - { 0x8329, 53965 }, - { 0x835D, 53970 }, - { 0x835E, 53973 }, - { 0x835F, 53977 }, - { 0x8363, 53983 }, - { 0x8364, 53986 }, - { 0x836A, 53991 }, - { 0x8016, 53994 }, - { 0x8019, 53997 }, - { 0x8018, 54004 }, - { 0x801A, 54010 }, - { 0x801B, 54015 }, - { 0x8017, 54020 }, - { 0x8038, 54025 }, - { 0x803A, 54028 }, - { 0x803C, 54033 }, - { 0x803D, 54040 }, - { 0x803B, 54053 }, - { 0x8039, 54065 }, - { 0x8041, 54070 }, - { 0x8044, 54073 }, - { 0x8045, 54076 }, - { 0x8047, 54081 }, - { 0x8053, 54084 }, - { 0x8056, 54087 }, - { 0x8057, 54090 }, - { 0x805A, 54098 }, - { 0x805B, 54104 }, - { 0x805C, 54110 }, - { 0x805D, 54118 }, - { 0x8060, 54124 }, - { 0x8061, 54130 }, - { 0x8062, 54136 }, - { 0x8064, 54144 }, - { 0x8065, 54150 }, - { 0x8066, 54156 }, - { 0x8068, 54164 }, - { 0x806A, 54170 }, - { 0x806C, 54176 }, - { 0x805F, 54184 }, - { 0x8063, 54190 }, - { 0x8067, 54196 }, - { 0x8069, 54202 }, - { 0x806D, 54210 }, - { 0x8058, 54216 }, - { 0x805E, 54222 }, - { 0x806B, 54228 }, - { 0x8059, 54234 }, - { 0x806E, 54240 }, - { 0x806F, 54243 }, - { 0x8073, 54246 }, - { 0x8074, 54249 }, - { 0x8075, 54252 }, - { 0x8077, 54257 }, - { 0x8078, 54260 }, - { 0x807E, 54267 }, - { 0x807F, 54270 }, - { 0x8081, 54275 }, - { 0x8083, 54278 }, - { 0x8084, 54281 }, - { 0x80B7, 54284 }, - { 0x80ED, 54287 }, - { 0x80B8, 54292 }, - { 0x80B9, 54301 }, - { 0x80BA, 54308 }, - { 0x80EA, 54315 }, - { 0x80BC, 54320 }, - { 0x80C3, 54325 }, - { 0x80C4, 54330 }, - { 0x80C7, 54335 }, - { 0x80C8, 54340 }, - { 0x80C9, 54347 }, - { 0x80CA, 54352 }, - { 0x80CD, 54360 }, - { 0x80D1, 54365 }, - { 0x80D4, 54374 }, - { 0x80DD, 54381 }, - { 0x80DE, 54386 }, - { 0x80DF, 54393 }, - { 0x80E2, 54398 }, - { 0x80EB, 54403 }, - { 0x80EC, 54408 }, - { 0x80BB, 54415 }, - { 0x80BD, 54423 }, - { 0x80BF, 54428 }, - { 0x80C0, 54433 }, - { 0x80C1, 54440 }, - { 0x80C2, 54445 }, - { 0x80C5, 54452 }, - { 0x80C6, 54459 }, - { 0x80CC, 54464 }, - { 0x80CE, 54469 }, - { 0x80CF, 54474 }, - { 0x80D2, 54481 }, - { 0x80D3, 54486 }, - { 0x80D6, 54493 }, - { 0x80D7, 54499 }, - { 0x80D8, 54508 }, - { 0x80DA, 54513 }, - { 0x80DB, 54518 }, - { 0x80DC, 54525 }, - { 0x80E0, 54532 }, - { 0x80E1, 54537 }, - { 0x80E3, 54544 }, - { 0x80E4, 54549 }, - { 0x80E5, 54554 }, - { 0x80E6, 54559 }, - { 0x80E8, 54566 }, - { 0x80BE, 54571 }, - { 0x80CB, 54578 }, - { 0x80D0, 54584 }, - { 0x80D5, 54591 }, - { 0x80E7, 54596 }, - { 0x80E9, 54601 }, - { 0x80D9, 54606 }, - { 0x80F0, 54611 }, - { 0x80F1, 54614 }, - { 0x80F2, 54622 }, - { 0x80F3, 54625 }, - { 0x80F5, 54634 }, - { 0x80F6, 54637 }, - { 0x80FB, 54640 }, - { 0x8104, 54643 }, - { 0x8105, 54646 }, - { 0x8106, 54651 }, - { 0x8118, 54656 }, - { 0x811D, 54659 }, - { 0x8119, 54663 }, - { 0x811A, 54668 }, - { 0x811B, 54676 }, - { 0x811C, 54681 }, - { 0x811E, 54688 }, - { 0x8121, 54691 }, - { 0x811F, 54697 }, - { 0x8120, 54704 }, - { 0x8122, 54709 }, - { 0x8123, 54712 }, - { 0x8124, 54715 }, - { 0x8125, 54720 }, - { 0x812C, 54723 }, - { 0x8146, 54726 }, - { 0x8148, 54729 }, - { 0x8147, 54733 }, - { 0x814A, 54737 }, - { 0x8149, 54741 }, - { 0x814D, 54752 }, - { 0x8156, 54755 }, - { 0x818D, 54758 }, - { 0x818E, 54761 }, - { 0x818F, 54766 }, - { 0x8195, 54769 }, - { 0x8196, 54772 }, - { 0x8197, 54778 }, - { 0x8198, 54781 }, - { 0x8199, 54786 }, - { 0x81A4, 54791 }, - { 0x81A5, 54794 }, - { 0x81AC, 54797 }, - { 0x81AD, 54800 }, - { 0x81AE, 54803 }, - { 0x81AF, 54808 }, - { 0x81B0, 54811 }, - { 0x81B1, 54814 }, - { 0x81B2, 54818 }, - { 0x81B3, 54821 }, - { 0x81B4, 54824 }, - { 0x81F2, 54829 }, - { 0x81F3, 54832 }, - { 0x81F4, 54837 }, - { 0x81F5, 54840 }, - { 0x81F6, 54845 }, - { 0x81F8, 54852 }, - { 0x81FD, 54855 }, - { 0x8211, 54858 }, - { 0x81FE, 54862 }, - { 0x8203, 54867 }, - { 0x8204, 54874 }, - { 0x8208, 54879 }, - { 0x8209, 54884 }, - { 0x820B, 54891 }, - { 0x820C, 54898 }, - { 0x820D, 54903 }, - { 0x820E, 54908 }, - { 0x81FF, 54915 }, - { 0x8200, 54920 }, - { 0x8201, 54925 }, - { 0x8202, 54931 }, - { 0x8205, 54937 }, - { 0x8206, 54942 }, - { 0x8207, 54947 }, - { 0x820F, 54954 }, - { 0x8210, 54961 }, - { 0x820A, 54966 }, - { 0x8215, 54971 }, - { 0x8214, 54975 }, - { 0x8212, 54979 }, - { 0x8213, 54984 }, - { 0x8216, 54989 }, - { 0x821B, 54992 }, - { 0x821C, 54995 }, - { 0x821D, 54998 }, - { 0x821E, 55001 }, - { 0x821F, 55006 }, - { 0x8223, 55014 }, - { 0x8224, 55017 }, - { 0x8225, 55020 }, - { 0x8229, 55023 }, - { 0x822B, 55026 }, - { 0x822E, 55029 }, - { 0x822F, 55032 }, - { 0x823F, 55036 }, - { 0x8246, 55039 }, - { 0x8245, 55042 }, - { 0x824E, 55046 }, - { 0x824F, 55049 }, - { 0x8251, 55052 }, - { 0x8250, 55060 }, - { 0x8263, 55066 }, - { 0x826A, 55069 }, - { 0x8269, 55074 }, - { 0x8264, 55078 }, - { 0x8266, 55084 }, - { 0x8267, 55090 }, - { 0x8268, 55101 }, - { 0x8265, 55107 }, - { 0x826B, 55113 }, - { 0x826C, 55118 }, - { 0x827B, 55126 }, - { 0x827C, 55129 }, - { 0x827D, 55132 }, - { 0x8290, 55135 }, - { 0x8295, 55138 }, - { 0x82A8, 55141 }, - { 0x82A7, 55145 }, - { 0x8296, 55150 }, - { 0x8297, 55155 }, - { 0x8299, 55160 }, - { 0x829D, 55165 }, - { 0x82A2, 55170 }, - { 0x82A3, 55175 }, - { 0x82A4, 55180 }, - { 0x82A5, 55185 }, - { 0x8298, 55190 }, - { 0x829A, 55195 }, - { 0x829B, 55200 }, - { 0x829C, 55205 }, - { 0x829E, 55210 }, - { 0x829F, 55215 }, - { 0x82A1, 55220 }, - { 0x82A6, 55225 }, - { 0x82A0, 55230 }, - { 0x8294, 55235 }, - { 0x82A9, 55239 }, - { 0x82AA, 55242 }, - { 0x82AC, 55248 }, - { 0x82AD, 55251 }, - { 0x82BA, 55254 }, - { 0x82BB, 55257 }, - { 0x82BC, 55261 }, - { 0x82BD, 55272 }, - { 0x82D7, 55283 }, - { 0x82D8, 55286 }, - { 0x82DD, 55292 }, - { 0x82E4, 55295 }, - { 0x82E7, 55298 }, - { 0x82E9, 55301 }, - { 0x82F0, 55304 }, - { 0x82F1, 55307 }, - { 0x82F2, 55318 }, - { 0x82F3, 55322 }, - { 0x82F4, 55325 }, - { 0x82F9, 55330 }, - { 0x82F5, 55335 }, - { 0x82F6, 55340 }, - { 0x82F7, 55345 }, - { 0x82F8, 55350 }, - { 0x82FB, 55355 }, - { 0x8300, 55358 }, - { 0x8301, 55361 }, - { 0x8303, 55364 }, - { 0x8304, 55369 }, - { 0x8302, 55380 }, - { 0x8307, 55385 }, - { 0x8308, 55388 }, - { 0x8309, 55391 }, - { 0x830A, 55394 }, - { 0x832B, 55402 }, - { 0x832C, 55405 }, - { 0x832D, 55412 }, - { 0x832E, 55419 }, - { 0x832F, 55424 }, - { 0x8331, 55429 }, - { 0x8333, 55434 }, - { 0x8332, 55441 }, - { 0x8330, 55448 }, - { 0x8334, 55453 }, - { 0x8335, 55456 }, - { 0x8337, 55459 }, - { 0x8338, 55462 }, - { 0x834C, 55467 }, - { 0x833C, 55474 }, - { 0x8340, 55479 }, - { 0x8341, 55484 }, - { 0x8343, 55489 }, - { 0x8345, 55494 }, - { 0x8348, 55499 }, - { 0x834B, 55504 }, - { 0x834D, 55509 }, - { 0x833A, 55514 }, - { 0x833B, 55519 }, - { 0x833D, 55524 }, - { 0x833F, 55529 }, - { 0x8342, 55534 }, - { 0x8344, 55539 }, - { 0x8346, 55544 }, - { 0x8347, 55549 }, - { 0x8349, 55554 }, - { 0x833E, 55559 }, - { 0x834A, 55565 }, - { 0x834E, 55570 }, - { 0x8339, 55575 }, - { 0x8351, 55580 }, - { 0x8352, 55583 }, - { 0x8353, 55588 }, - { 0x8354, 55593 }, - { 0x8355, 55598 }, - { 0x835A, 55603 }, - { 0x835B, 55606 }, - { 0x835C, 55611 }, - { 0x8360, 55614 }, - { 0x8362, 55617 }, - { 0x8365, 55620 }, - { 0x8366, 55623 }, - { 0x8367, 55626 }, - { 0x8368, 55631 }, - { 0x836B, 55634 }, - { 0x836C, 55637 }, - { 0x836E, 55642 }, - { 0x8029, 55645 }, - { 0x802B, 55648 }, - { 0x802C, 55651 }, - { 0x8033, 55656 }, - { 0x8034, 55659 }, - { 0x8035, 55662 }, - { 0x803E, 55667 }, - { 0x8042, 55670 }, - { 0x8054, 55673 }, - { 0x8076, 55676 }, - { 0x8079, 55679 }, - { 0x8080, 55682 }, - { 0x8085, 55685 }, - { 0x8086, 55688 }, - { 0x8087, 55692 }, - { 0x8088, 55697 }, - { 0x8089, 55700 }, - { 0x8094, 55703 }, - { 0x8095, 55706 }, - { 0x809E, 55709 }, - { 0x80A0, 55712 }, - { 0x80A1, 55715 }, - { 0x80A2, 55718 }, - { 0x80A3, 55723 }, - { 0x80A4, 55730 }, - { 0x80A5, 55739 }, - { 0x80A9, 55744 }, - { 0x80AA, 55749 }, - { 0x80AF, 55755 }, - { 0x80B1, 55760 }, - { 0x80B2, 55765 }, - { 0x80B3, 55770 }, - { 0x80B4, 55775 }, - { 0x80A6, 55780 }, - { 0x80AB, 55785 }, - { 0x80AE, 55791 }, - { 0x80B0, 55796 }, - { 0x80A7, 55803 }, - { 0x80A8, 55809 }, - { 0x80AC, 55816 }, - { 0x80AD, 55821 }, - { 0x80EE, 55827 }, - { 0x80EF, 55830 }, - { 0x80F7, 55835 }, - { 0x80F9, 55838 }, - { 0x80F8, 55843 }, - { 0x80FA, 55847 }, - { 0x80FC, 55852 }, - { 0x8108, 55855 }, - { 0x8109, 55858 }, - { 0x810A, 55862 }, - { 0x810B, 55865 }, - { 0x810E, 55872 }, - { 0x810F, 55879 }, - { 0x810D, 55884 }, - { 0x810C, 55889 }, - { 0x8111, 55895 }, - { 0x8115, 55898 }, - { 0x8113, 55902 }, - { 0x8114, 55907 }, - { 0x8112, 55912 }, - { 0x8126, 55917 }, - { 0x8138, 55920 }, - { 0x8139, 55923 }, - { 0x813D, 55928 }, - { 0x813A, 55933 }, - { 0x813C, 55938 }, - { 0x813B, 55943 }, - { 0x813E, 55948 }, - { 0x8142, 55951 }, - { 0x8143, 55954 }, - { 0x8144, 55960 }, - { 0x8153, 55966 }, - { 0x8190, 55969 }, - { 0x8191, 55972 }, - { 0x8192, 55975 }, - { 0x8193, 55978 }, - { 0x8194, 55981 }, - { 0x819A, 55986 }, - { 0x819B, 55989 }, - { 0x81A7, 55992 }, - { 0x81FA, 55995 }, - { 0x8226, 55998 }, - { 0x8232, 56001 }, - { 0x8236, 56004 }, - { 0x8237, 56009 }, - { 0x8233, 56018 }, - { 0x8235, 56023 }, - { 0x8234, 56028 }, - { 0x8238, 56033 }, - { 0x8240, 56038 }, - { 0x8242, 56041 }, - { 0x8241, 56047 }, - { 0x8243, 56051 }, - { 0x8247, 56056 }, - { 0x8262, 56059 }, - { 0x82AE, 56062 }, - { 0x82AF, 56065 }, - { 0x82B5, 56070 }, - { 0x82B6, 56075 }, - { 0x82B2, 56082 }, - { 0x82B0, 56087 }, - { 0x82B4, 56092 }, - { 0x82B1, 56097 }, - { 0x82B3, 56102 }, - { 0x82B7, 56107 }, - { 0x82BF, 56110 }, - { 0x82C3, 56113 }, - { 0x82C4, 56116 }, - { 0x82C5, 56121 }, - { 0x82C6, 56126 }, - { 0x82C7, 56129 }, - { 0x82C8, 56134 }, - { 0x82CA, 56139 }, - { 0x82CB, 56144 }, - { 0x82CC, 56149 }, - { 0x82CD, 56154 }, - { 0x82CF, 56160 }, - { 0x82D0, 56165 }, - { 0x82D1, 56170 }, - { 0x82C9, 56175 }, - { 0x82CE, 56180 }, - { 0x82D3, 56185 }, - { 0x82D5, 56188 }, - { 0x82D4, 56196 }, - { 0x82D9, 56200 }, - { 0x82DE, 56203 }, - { 0x82DF, 56206 }, - { 0x82E0, 56212 }, - { 0x82E5, 56215 }, - { 0x82EA, 56218 }, - { 0x82FA, 56221 }, - { 0x8306, 56224 }, - { 0x831C, 56227 }, - { 0x8323, 56230 }, - { 0x8325, 56233 }, - { 0x8324, 56238 }, - { 0x8336, 56243 }, - { 0x8357, 56246 }, - { 0x8356, 56249 }, - { 0x8361, 56252 }, - { 0x8369, 56255 }, - { 0x802A, 56258 }, - { 0x8032, 56261 }, - { 0x8036, 56264 }, - { 0x8037, 56267 }, - { 0x8046, 56270 }, - { 0x8048, 56273 }, - { 0x8051, 56276 }, - { 0x8052, 56279 }, - { 0x8070, 56284 }, - { 0x8071, 56287 }, - { 0x8082, 56290 }, - { 0x809F, 56293 }, - { 0x80F4, 56296 }, - { 0x8107, 56299 }, - { 0x8110, 56302 }, - { 0x8127, 56305 }, - { 0x819F, 56308 }, - { 0x81A6, 56311 }, - { 0x81B8, 56314 }, - { 0x81B9, 56317 }, - { 0x81BA, 56322 }, - { 0x81BB, 56331 }, - { 0x81BC, 56338 }, - { 0x81E5, 56345 }, - { 0x81E6, 56350 }, - { 0x81E7, 56357 }, - { 0x81BD, 56366 }, - { 0x81BE, 56371 }, - { 0x81C1, 56376 }, - { 0x81C3, 56381 }, - { 0x81C4, 56386 }, - { 0x81C8, 56391 }, - { 0x81CA, 56396 }, - { 0x81CC, 56403 }, - { 0x81CD, 56408 }, - { 0x81CE, 56415 }, - { 0x81CF, 56422 }, - { 0x81D6, 56427 }, - { 0x81D8, 56432 }, - { 0x81D9, 56437 }, - { 0x81DB, 56444 }, - { 0x81E4, 56449 }, - { 0x81E8, 56460 }, - { 0x81E9, 56467 }, - { 0x81BF, 56472 }, - { 0x81C0, 56479 }, - { 0x81C2, 56484 }, - { 0x81C5, 56489 }, - { 0x81C6, 56494 }, - { 0x81C7, 56499 }, - { 0x81C9, 56506 }, - { 0x81CB, 56511 }, - { 0x81D0, 56517 }, - { 0x81D1, 56522 }, - { 0x81D2, 56527 }, - { 0x81D3, 56532 }, - { 0x81D7, 56541 }, - { 0x81DC, 56546 }, - { 0x81E1, 56553 }, - { 0x81E2, 56558 }, - { 0x81EA, 56563 }, - { 0x81D5, 56568 }, - { 0x81DA, 56573 }, - { 0x81DF, 56578 }, - { 0x81E0, 56583 }, - { 0x81E3, 56590 }, - { 0x81D4, 56595 }, - { 0x81DD, 56600 }, - { 0x81DE, 56609 }, - { 0x81EB, 56617 }, - { 0x81EC, 56621 }, - { 0x81EF, 56624 }, - { 0x81F0, 56628 }, - { 0x81ED, 56636 }, - { 0x81EE, 56641 }, - { 0x8217, 56648 }, - { 0x8218, 56651 }, - { 0x821A, 56656 }, - { 0x8219, 56660 }, - { 0x8227, 56665 }, - { 0x8239, 56668 }, - { 0x823D, 56671 }, - { 0x823A, 56675 }, - { 0x823B, 56680 }, - { 0x823C, 56687 }, - { 0x8244, 56692 }, - { 0x8260, 56695 }, - { 0x826D, 56698 }, - { 0x826F, 56701 }, - { 0x8274, 56707 }, - { 0x8275, 56713 }, - { 0x8277, 56719 }, - { 0x8270, 56725 }, - { 0x8271, 56731 }, - { 0x8272, 56737 }, - { 0x8273, 56744 }, - { 0x8276, 56750 }, - { 0x826E, 56756 }, - { 0x8278, 56762 }, - { 0x8279, 56768 }, - { 0x827E, 56775 }, - { 0x828A, 56778 }, - { 0x828C, 56781 }, - { 0x828D, 56786 }, - { 0x828B, 56791 }, - { 0x828E, 56796 }, - { 0x82B8, 56801 }, - { 0x82B9, 56804 }, - { 0x82BE, 56807 }, - { 0x82C0, 56810 }, - { 0x82D6, 56813 }, - { 0x82E1, 56816 }, - { 0x82E6, 56819 }, - { 0x8322, 56822 }, - { 0x834F, 56825 }, - { 0x8350, 56828 }, - { 0x8359, 56833 }, - { 0x836D, 56836 }, - { 0x803F, 56839 }, - { 0x8043, 56842 }, - { 0x80FD, 56845 }, - { 0x8128, 56848 }, - { 0x819C, 56851 }, - { 0x819E, 56854 }, - { 0x819D, 56866 }, - { 0x81A8, 56876 }, - { 0x81A9, 56879 }, - { 0x81B5, 56884 }, - { 0x81B6, 56887 }, - { 0x81F1, 56890 }, - { 0x81F9, 56893 }, - { 0x8230, 56896 }, - { 0x8231, 56899 }, - { 0x8252, 56902 }, - { 0x8253, 56905 }, - { 0x8257, 56910 }, - { 0x8258, 56918 }, - { 0x825E, 56923 }, - { 0x8254, 56930 }, - { 0x8255, 56935 }, - { 0x8256, 56942 }, - { 0x8259, 56947 }, - { 0x825A, 56952 }, - { 0x825B, 56957 }, - { 0x825C, 56965 }, - { 0x825D, 56972 }, - { 0x825F, 56981 }, - { 0x82AB, 56986 }, - { 0x82C1, 56989 }, - { 0x82D2, 56992 }, - { 0x82DA, 56995 }, - { 0x82E8, 56998 }, - { 0x8358, 57001 }, - { 0x80FE, 57004 }, - { 0x80FF, 57007 }, - { 0x82C2, 57012 }, - { 0x8461, 57015 }, - { 0x8462, 57022 }, - { 0x844F, 57029 }, - { 0x8434, 57034 }, - { 0x8458, 57039 }, - { 0x8415, 57044 }, - { 0x841E, 57049 }, - { 0x842C, 57054 }, - { 0x845A, 57059 }, - { 0x845D, 57065 }, - { 0x845F, 57073 }, - { 0x8460, 57079 }, - { 0x8411, 57085 }, - { 0x8404, 57090 }, - { 0x844E, 57095 }, - { 0x840B, 57101 }, - { 0x841A, 57106 }, - { 0x8428, 57111 }, - { 0x8440, 57116 }, - { 0x8400, 57123 }, - { 0x844A, 57128 }, - { 0x8450, 57134 }, - { 0x8435, 57139 }, - { 0x8459, 57144 }, - { 0x8416, 57149 }, - { 0x841F, 57154 }, - { 0x8423, 57159 }, - { 0x842D, 57164 }, - { 0x845B, 57169 }, - { 0x845E, 57175 }, - { 0x8410, 57183 }, - { 0x8403, 57188 }, - { 0x844D, 57193 }, - { 0x8454, 57199 }, - { 0x8455, 57204 }, - { 0x8439, 57211 }, - { 0x840A, 57216 }, - { 0x8419, 57221 }, - { 0x8422, 57226 }, - { 0x8427, 57231 }, - { 0x8431, 57236 }, - { 0x845C, 57241 }, - { 0x840F, 57247 }, - { 0x8402, 57252 }, - { 0x844C, 57257 }, - { 0x8452, 57263 }, - { 0x8453, 57268 }, - { 0x8438, 57275 }, - { 0x8409, 57280 }, - { 0x8418, 57285 }, - { 0x8421, 57290 }, - { 0x8426, 57295 }, - { 0x8430, 57300 }, - { 0x843C, 57305 }, - { 0x843E, 57312 }, - { 0x843F, 57320 }, - { 0x843D, 57328 }, - { 0x8414, 57335 }, - { 0x8407, 57340 }, - { 0x840E, 57345 }, - { 0x841D, 57350 }, - { 0x842B, 57355 }, - { 0x8446, 57360 }, - { 0x8449, 57367 }, - { 0x8447, 57375 }, - { 0x8448, 57382 }, - { 0x8413, 57389 }, - { 0x8406, 57394 }, - { 0x840D, 57399 }, - { 0x841C, 57404 }, - { 0x842A, 57409 }, - { 0x8444, 57414 }, - { 0x8445, 57421 }, - { 0x8412, 57428 }, - { 0x8405, 57433 }, - { 0x840C, 57438 }, - { 0x841B, 57443 }, - { 0x8429, 57448 }, - { 0x8442, 57453 }, - { 0x8443, 57461 }, - { 0x8441, 57469 }, - { 0x8433, 57476 }, - { 0x8432, 57484 }, - { 0x8401, 57492 }, - { 0x844B, 57497 }, - { 0x8451, 57503 }, - { 0x8436, 57508 }, - { 0x8437, 57513 }, - { 0x8408, 57520 }, - { 0x8417, 57525 }, - { 0x8420, 57530 }, - { 0x8424, 57535 }, - { 0x8425, 57540 }, - { 0x842E, 57547 }, - { 0x842F, 57552 }, - { 0x843A, 57559 }, - { 0x843B, 57566 }, - { 0x8457, 57573 }, - { 0x8456, 57577 }, - { 0x8470, 57581 }, - { 0x8472, 57588 }, - { 0x8473, 57593 }, - { 0x8471, 57598 }, - { 0x23CA, 57603 }, - { 0x23C8, 57609 }, - { 0x23C2, 57617 }, - { 0x23C5, 57625 }, - { 0x23C9, 57633 }, - { 0x23C7, 57639 }, - { 0x23C1, 57647 }, - { 0x23C4, 57655 }, - { 0x23CB, 57663 }, - { 0x23BE, 57670 }, - { 0x23C6, 57677 }, - { 0x23CC, 57683 }, - { 0x23BF, 57690 }, - { 0x23C0, 57697 }, - { 0x23C3, 57703 }, - { 0x00A8, 57709 }, - { 0x2331, 57710 }, - { 0x21A1, 57712 }, - { 0x2193, 57716 }, - { 0x2913, 57718 }, - { 0x21A7, 57722 }, - { 0x21B2, 57726 }, - { 0x21B3, 57731 }, - { 0x21B5, 57736 }, - { 0x21DF, 57741 }, - { 0x2908, 57746 }, - { 0x21F5, 57751 }, - { 0x2B07, 57757 }, - { 0x21E9, 57760 }, - { 0x2E14, 57763 }, - { 0x21E3, 57765 }, - { 0x21D3, 57768 }, - { 0x21CA, 57771 }, - { 0x290B, 57774 }, - { 0x21AF, 57777 }, - { 0x2959, 57780 }, - { 0x2961, 57787 }, - { 0x296F, 57794 }, - { 0x2965, 57805 }, - { 0x2955, 57816 }, - { 0x295D, 57823 }, - { 0x21C3, 57830 }, - { 0x21C2, 57835 }, - { 0x27F1, 57840 }, - { 0x2E0E, 57843 }, - { 0x212E, 57845 }, - { 0x2259, 57847 }, - { 0x213B, 57848 }, - { 0x6F3F, 57850 }, - { 0x6FE2, 57853 }, - { 0x6FE6, 57856 }, - { 0x6FE5, 57859 }, - { 0x6FE0, 57862 }, - { 0x6F0E, 57865 }, - { 0x6F5B, 57868 }, - { 0x6F5F, 57872 }, - { 0x6F3B, 57876 }, - { 0x6F08, 57880 }, - { 0x6F0B, 57883 }, - { 0x6F1A, 57886 }, - { 0x6F0C, 57888 }, - { 0x6F11, 57890 }, - { 0x6F16, 57893 }, - { 0x6F12, 57896 }, - { 0x6F15, 57899 }, - { 0x6F14, 57902 }, - { 0x6F19, 57905 }, - { 0x6F10, 57908 }, - { 0x6F18, 57911 }, - { 0x6F17, 57914 }, - { 0x6F13, 57917 }, - { 0x6F40, 57920 }, - { 0x6F41, 57923 }, - { 0x6F42, 57928 }, - { 0x6F43, 57933 }, - { 0x6F44, 57938 }, - { 0x6F45, 57943 }, - { 0x6F46, 57948 }, - { 0x6F47, 57953 }, - { 0x6F48, 57958 }, - { 0x6F49, 57963 }, - { 0x6F4A, 57968 }, - { 0x6F4B, 57973 }, - { 0x6F4C, 57978 }, - { 0x6F4D, 57983 }, - { 0x6F4E, 57988 }, - { 0x6F4F, 57993 }, - { 0x6F50, 57998 }, - { 0x6F51, 58003 }, - { 0x6F52, 58008 }, - { 0x6F53, 58013 }, - { 0x6F54, 58018 }, - { 0x6F55, 58023 }, - { 0x6F56, 58028 }, - { 0x6F57, 58033 }, - { 0x6F58, 58038 }, - { 0x6F59, 58043 }, - { 0x6F5A, 58048 }, - { 0x6F21, 58053 }, - { 0x6F22, 58058 }, - { 0x6F23, 58063 }, - { 0x6F24, 58068 }, - { 0x6F25, 58073 }, - { 0x6F26, 58078 }, - { 0x6F27, 58083 }, - { 0x6F28, 58088 }, - { 0x6F29, 58093 }, - { 0x6F2A, 58098 }, - { 0x6F2B, 58103 }, - { 0x6F2C, 58108 }, - { 0x6F2D, 58113 }, - { 0x6F2E, 58118 }, - { 0x6F2F, 58123 }, - { 0x6F30, 58128 }, - { 0x6F31, 58133 }, - { 0x6F32, 58138 }, - { 0x6F33, 58143 }, - { 0x6F34, 58148 }, - { 0x6F35, 58153 }, - { 0x6F36, 58158 }, - { 0x6F37, 58163 }, - { 0x6F38, 58168 }, - { 0x6F39, 58173 }, - { 0x6F3A, 58178 }, - { 0x6FE1, 58183 }, - { 0x6F5D, 58186 }, - { 0x6F60, 58190 }, - { 0x6F3D, 58194 }, - { 0x6F09, 58198 }, - { 0x6F5E, 58201 }, - { 0x6FE4, 58203 }, - { 0x6F04, 58206 }, - { 0x6F1D, 58209 }, - { 0x6FE3, 58212 }, - { 0x6F03, 58214 }, - { 0x6F05, 58217 }, - { 0x6F3C, 58220 }, - { 0x6F0F, 58223 }, - { 0x6F0A, 58225 }, - { 0x6F1F, 58227 }, - { 0x6F5C, 58230 }, - { 0x6F06, 58233 }, - { 0x6F1C, 58235 }, - { 0x6F02, 58238 }, - { 0x6F1B, 58241 }, - { 0x6F07, 58243 }, - { 0x6F3E, 58245 }, - { 0x6F20, 58248 }, - { 0x6F01, 58251 }, - { 0x6F1E, 58254 }, - { 0x6F0D, 58257 }, - { 0x223A, 58259 }, - { 0x6F62, 58261 }, - { 0x6FED, 58265 }, - { 0x6FE8, 58268 }, - { 0x6F63, 58272 }, - { 0x6FEE, 58276 }, - { 0x6FA0, 58279 }, - { 0x6FC2, 58282 }, - { 0x6FC7, 58286 }, - { 0x6FDC, 58290 }, - { 0x6FCC, 58294 }, - { 0x6FD3, 58298 }, - { 0x6FC3, 58302 }, - { 0x6FC6, 58306 }, - { 0x6FDA, 58310 }, - { 0x6FCF, 58314 }, - { 0x6FCD, 58318 }, - { 0x6FD5, 58322 }, - { 0x6FD6, 58326 }, - { 0x6FC4, 58330 }, - { 0x6FCB, 58334 }, - { 0x6FDB, 58338 }, - { 0x6FD2, 58342 }, - { 0x6FD7, 58346 }, - { 0x6FCE, 58350 }, - { 0x6FD4, 58354 }, - { 0x6FC5, 58358 }, - { 0x6FCA, 58362 }, - { 0x6FB5, 58366 }, - { 0x6FB8, 58370 }, - { 0x6FBE, 58374 }, - { 0x6FB7, 58378 }, - { 0x6FB1, 58382 }, - { 0x6FA4, 58386 }, - { 0x6FB2, 58390 }, - { 0x6FA9, 58394 }, - { 0x6FA1, 58398 }, - { 0x6FA7, 58402 }, - { 0x6FBA, 58406 }, - { 0x6FBB, 58410 }, - { 0x6FBD, 58414 }, - { 0x6FBC, 58418 }, - { 0x6FB6, 58422 }, - { 0x6FB4, 58426 }, - { 0x6FAD, 58430 }, - { 0x6FB9, 58434 }, - { 0x6FB3, 58438 }, - { 0x6FA3, 58442 }, - { 0x6FA5, 58446 }, - { 0x6FA6, 58450 }, - { 0x6FB0, 58454 }, - { 0x6FAB, 58458 }, - { 0x6FAC, 58462 }, - { 0x6FA2, 58466 }, - { 0x6FA8, 58470 }, - { 0x6FAA, 58474 }, - { 0x6FAF, 58478 }, - { 0x6FAE, 58482 }, - { 0x6FEA, 58486 }, - { 0x6F71, 58489 }, - { 0x6F74, 58493 }, - { 0x6F72, 58497 }, - { 0x6F9D, 58501 }, - { 0x6F75, 58505 }, - { 0x6F73, 58509 }, - { 0x6F8A, 58513 }, - { 0x6F8D, 58517 }, - { 0x6F8B, 58521 }, - { 0x6F8E, 58525 }, - { 0x6F8C, 58529 }, - { 0x6F76, 58533 }, - { 0x6F79, 58537 }, - { 0x6F77, 58541 }, - { 0x6F7A, 58545 }, - { 0x6F78, 58549 }, - { 0x6F8F, 58553 }, - { 0x6F92, 58557 }, - { 0x6F90, 58561 }, - { 0x6F93, 58565 }, - { 0x6F91, 58569 }, - { 0x6F85, 58573 }, - { 0x6F88, 58577 }, - { 0x6F86, 58581 }, - { 0x6F89, 58585 }, - { 0x6F87, 58589 }, - { 0x6F97, 58593 }, - { 0x6F9A, 58597 }, - { 0x6F98, 58601 }, - { 0x6F9B, 58605 }, - { 0x6F99, 58609 }, - { 0x6F7B, 58613 }, - { 0x6F7E, 58617 }, - { 0x6F7C, 58621 }, - { 0x6F7F, 58625 }, - { 0x6F7D, 58629 }, - { 0x6F80, 58633 }, - { 0x6F83, 58637 }, - { 0x6F81, 58641 }, - { 0x6F84, 58645 }, - { 0x6F82, 58649 }, - { 0x6F9C, 58653 }, - { 0x6F66, 58657 }, - { 0x6F94, 58661 }, - { 0x6F96, 58665 }, - { 0x6F95, 58669 }, - { 0x6F67, 58673 }, - { 0x6F6A, 58678 }, - { 0x6F68, 58683 }, - { 0x6F6B, 58688 }, - { 0x6F69, 58693 }, - { 0x6F6F, 58698 }, - { 0x6F6C, 58703 }, - { 0x6F6E, 58708 }, - { 0x6F6D, 58713 }, - { 0x6F65, 58718 }, - { 0x6F9E, 58722 }, - { 0x6F9F, 58727 }, - { 0x6FEC, 58732 }, - { 0x6FE9, 58735 }, - { 0x6FEB, 58738 }, - { 0x6F61, 58741 }, - { 0x6F64, 58745 }, - { 0x6F70, 58748 }, - { 0x22B9, 58753 }, - { 0x231B, 58756 }, - { 0x2261, 58757 }, - { 0x29E5, 58759 }, - { 0x2A67, 58764 }, - { 0x29E1, 58768 }, - { 0x2206, 58770 }, - { 0x2380, 58771 }, - { 0x2062, 58773 }, - { 0x2063, 58775 }, - { 0x2939, 58777 }, - { 0x219E, 58781 }, - { 0x219C, 58785 }, - { 0x2190, 58788 }, - { 0x21E4, 58790 }, - { 0x21B9, 58794 }, - { 0x291D, 58803 }, - { 0x21A4, 58808 }, - { 0x291F, 58812 }, - { 0x21C6, 58819 }, - { 0x2B11, 58824 }, - { 0x2B10, 58829 }, - { 0x21A9, 58834 }, - { 0x21AB, 58838 }, - { 0x2946, 58842 }, - { 0x21A2, 58847 }, - { 0x21FA, 58851 }, - { 0x219A, 58857 }, - { 0x21F7, 58861 }, - { 0x2943, 58866 }, - { 0x2973, 58872 }, - { 0x297A, 58877 }, - { 0x2977, 58881 }, - { 0x2B05, 58885 }, - { 0x21E6, 58888 }, - { 0x21E0, 58891 }, - { 0x290C, 58894 }, - { 0x21D0, 58898 }, - { 0x2906, 58901 }, - { 0x21CD, 58906 }, - { 0x2902, 58911 }, - { 0x291B, 58917 }, - { 0x21C7, 58920 }, - { 0x290E, 58923 }, - { 0x21DA, 58927 }, - { 0x21CB, 58930 }, - { 0x2952, 58935 }, - { 0x295A, 58942 }, - { 0x296A, 58949 }, - { 0x2962, 58957 }, - { 0x2966, 58968 }, - { 0x2956, 58979 }, - { 0x295E, 58986 }, - { 0x2967, 58993 }, - { 0x296B, 59004 }, - { 0x21BC, 59012 }, - { 0x21BD, 59017 }, - { 0x21DC, 59022 }, - { 0x2919, 59025 }, - { 0x21FD, 59027 }, - { 0x2264, 59030 }, - { 0x2A7D, 59034 }, - { 0x2A81, 59039 }, - { 0x2A83, 59047 }, - { 0x2A7F, 59056 }, - { 0x2272, 59064 }, - { 0x2A85, 59068 }, - { 0x2276, 59071 }, - { 0x2A89, 59074 }, - { 0x2A87, 59078 }, - { 0x2268, 59084 }, - { 0x22E6, 59089 }, - { 0x2266, 59094 }, - { 0x003C, 59098 }, - { 0x22D6, 59100 }, - { 0x2A79, 59103 }, - { 0x2A7B, 59107 }, - { 0x2A8D, 59112 }, - { 0x2A8F, 59117 }, - { 0x2A93, 59122 }, - { 0x2976, 59131 }, - { 0x2A8B, 59135 }, - { 0x2A91, 59141 }, - { 0x22DA, 59147 }, - { 0x2AA6, 59152 }, - { 0x2AA8, 59156 }, - { 0x2607, 59163 }, - { 0x0D57, 59164 }, - { 0x0D4D, 59168 }, - { 0x0D03, 59171 }, - { 0x0D02, 59174 }, - { 0x0D67, 59177 }, - { 0x0D6C, 59180 }, - { 0x0D68, 59183 }, - { 0x0D6B, 59186 }, - { 0x0D6A, 59189 }, - { 0x0D6F, 59192 }, - { 0x0D66, 59195 }, - { 0x0D6E, 59198 }, - { 0x0D6D, 59201 }, - { 0x0D69, 59204 }, - { 0x0D46, 59207 }, - { 0x0D3F, 59211 }, - { 0x0D4A, 59215 }, - { 0x0D41, 59219 }, - { 0x0D3E, 59223 }, - { 0x0D48, 59227 }, - { 0x0D4C, 59231 }, - { 0x0D47, 59235 }, - { 0x0D40, 59239 }, - { 0x0D4B, 59243 }, - { 0x0D42, 59247 }, - { 0x0D43, 59251 }, - { 0x0D05, 59256 }, - { 0x0D0E, 59259 }, - { 0x0D07, 59262 }, - { 0x0D12, 59265 }, - { 0x0D09, 59268 }, - { 0x0D06, 59271 }, - { 0x0D10, 59274 }, - { 0x0D14, 59277 }, - { 0x0D2C, 59280 }, - { 0x0D1A, 59283 }, - { 0x0D26, 59286 }, - { 0x0D0F, 59289 }, - { 0x0D17, 59292 }, - { 0x0D39, 59295 }, - { 0x0D08, 59298 }, - { 0x0D1C, 59301 }, - { 0x0D15, 59304 }, - { 0x0D32, 59307 }, - { 0x0D2E, 59310 }, - { 0x0D28, 59313 }, - { 0x0D13, 59316 }, - { 0x0D2A, 59319 }, - { 0x0D30, 59322 }, - { 0x0D38, 59325 }, - { 0x0D24, 59328 }, - { 0x0D0A, 59331 }, - { 0x0D35, 59334 }, - { 0x0D2F, 59337 }, - { 0x0D2D, 59340 }, - { 0x0D1B, 59343 }, - { 0x0D21, 59346 }, - { 0x0D27, 59349 }, - { 0x0D18, 59352 }, - { 0x0D1D, 59355 }, - { 0x0D16, 59358 }, - { 0x0D33, 59361 }, - { 0x0D19, 59364 }, - { 0x0D23, 59367 }, - { 0x0D1E, 59370 }, - { 0x0D2B, 59373 }, - { 0x0D31, 59376 }, - { 0x0D36, 59379 }, - { 0x0D37, 59382 }, - { 0x0D25, 59385 }, - { 0x0D1F, 59388 }, - { 0x0D22, 59391 }, - { 0x0D34, 59394 }, - { 0x0D20, 59397 }, - { 0x0D0C, 59400 }, - { 0x0D0B, 59404 }, - { 0x0D61, 59408 }, - { 0x0D60, 59412 }, - { 0x00BA, 59416 }, - { 0x1805, 59419 }, - { 0x180B, 59422 }, - { 0x180C, 59427 }, - { 0x180D, 59432 }, - { 0x1803, 59437 }, - { 0x1807, 59440 }, - { 0x1806, 59445 }, - { 0x1800, 59449 }, - { 0x1804, 59451 }, - { 0x1802, 59453 }, - { 0x1811, 59455 }, - { 0x1816, 59458 }, - { 0x1812, 59461 }, - { 0x1815, 59464 }, - { 0x1814, 59467 }, - { 0x1819, 59470 }, - { 0x1810, 59473 }, - { 0x1818, 59476 }, - { 0x1817, 59479 }, - { 0x1813, 59482 }, - { 0x180E, 59485 }, - { 0x1820, 59488 }, - { 0x1821, 59491 }, - { 0x1822, 59494 }, - { 0x1823, 59497 }, - { 0x1824, 59500 }, - { 0x182A, 59503 }, - { 0x1833, 59506 }, - { 0x1827, 59509 }, - { 0x1839, 59512 }, - { 0x182D, 59515 }, - { 0x1835, 59518 }, - { 0x183A, 59521 }, - { 0x182F, 59524 }, - { 0x182E, 59527 }, - { 0x1828, 59530 }, - { 0x1825, 59533 }, - { 0x182B, 59536 }, - { 0x182C, 59539 }, - { 0x1837, 59542 }, - { 0x1830, 59545 }, - { 0x1832, 59548 }, - { 0x1826, 59551 }, - { 0x1838, 59554 }, - { 0x1836, 59557 }, - { 0x183D, 59560 }, - { 0x1887, 59563 }, - { 0x1888, 59568 }, - { 0x1897, 59573 }, - { 0x188B, 59578 }, - { 0x1891, 59583 }, - { 0x1889, 59588 }, - { 0x1892, 59593 }, - { 0x1890, 59598 }, - { 0x1896, 59603 }, - { 0x188E, 59608 }, - { 0x188A, 59613 }, - { 0x188F, 59618 }, - { 0x1893, 59623 }, - { 0x1894, 59628 }, - { 0x188C, 59633 }, - { 0x1895, 59638 }, - { 0x18A6, 59643 }, - { 0x18A7, 59649 }, - { 0x188D, 59655 }, - { 0x1886, 59660 }, - { 0x1885, 59666 }, - { 0x1882, 59671 }, - { 0x18A9, 59676 }, - { 0x1883, 59681 }, - { 0x1881, 59686 }, - { 0x1880, 59692 }, - { 0x1884, 59698 }, - { 0x1829, 59704 }, - { 0x1834, 59707 }, - { 0x1842, 59710 }, - { 0x183E, 59713 }, - { 0x183B, 59716 }, - { 0x1840, 59719 }, - { 0x1831, 59722 }, - { 0x183C, 59725 }, - { 0x1841, 59728 }, - { 0x183F, 59731 }, - { 0x185D, 59734 }, - { 0x185E, 59738 }, - { 0x1861, 59742 }, - { 0x1869, 59746 }, - { 0x186B, 59750 }, - { 0x1864, 59754 }, - { 0x1865, 59758 }, - { 0x185F, 59762 }, - { 0x186A, 59766 }, - { 0x1863, 59770 }, - { 0x1866, 59774 }, - { 0x1868, 59778 }, - { 0x1860, 59782 }, - { 0x186F, 59786 }, - { 0x1862, 59790 }, - { 0x1871, 59794 }, - { 0x186C, 59798 }, - { 0x186D, 59802 }, - { 0x1870, 59806 }, - { 0x1867, 59810 }, - { 0x186E, 59814 }, - { 0x1872, 59818 }, - { 0x1844, 59822 }, - { 0x1845, 59826 }, - { 0x1846, 59830 }, - { 0x1847, 59834 }, - { 0x184B, 59838 }, - { 0x1851, 59842 }, - { 0x184E, 59846 }, - { 0x1853, 59850 }, - { 0x1857, 59854 }, - { 0x184F, 59858 }, - { 0x1848, 59862 }, - { 0x184C, 59866 }, - { 0x184D, 59870 }, - { 0x1850, 59874 }, - { 0x1849, 59878 }, - { 0x1856, 59882 }, - { 0x1855, 59886 }, - { 0x1898, 59890 }, - { 0x1899, 59896 }, - { 0x184A, 59902 }, - { 0x1852, 59906 }, - { 0x185C, 59910 }, - { 0x1858, 59914 }, - { 0x1859, 59918 }, - { 0x185A, 59922 }, - { 0x185B, 59926 }, - { 0x1854, 59930 }, - { 0x1843, 59934 }, - { 0x1873, 59940 }, - { 0x1876, 59944 }, - { 0x1874, 59948 }, - { 0x1875, 59952 }, - { 0x189C, 59956 }, - { 0x18A0, 59962 }, - { 0x18A5, 59968 }, - { 0x18A8, 59974 }, - { 0x18A3, 59980 }, - { 0x18A1, 59986 }, - { 0x189A, 59992 }, - { 0x189D, 59998 }, - { 0x189B, 60004 }, - { 0x18A2, 60010 }, - { 0x189E, 60016 }, - { 0x18A4, 60022 }, - { 0x189F, 60028 }, - { 0x1877, 60034 }, - { 0x1809, 60038 }, - { 0x1808, 60042 }, - { 0x180A, 60045 }, - { 0x1801, 60047 }, - { 0x2029, 60049 }, - { 0x267E, 60051 }, - { 0x22D4, 60054 }, - { 0x2ADA, 60055 }, - { 0x2057, 60059 }, - { 0x2A0C, 60061 }, - { 0x0022, 60064 }, - { 0x2673, 60066 }, - { 0x2674, 60071 }, - { 0x2675, 60076 }, - { 0x2676, 60081 }, - { 0x2677, 60086 }, - { 0x2678, 60091 }, - { 0x2679, 60096 }, - { 0x267A, 60101 }, - { 0x203B, 60106 }, - { 0x2A3D, 60108 }, - { 0x003B, 60111 }, - { 0x2744, 60112 }, - { 0x2222, 60113 }, - { 0x29A1, 60115 }, - { 0x29A0, 60119 }, - { 0x2081, 60123 }, - { 0x2086, 60125 }, - { 0x2082, 60127 }, - { 0x2085, 60129 }, - { 0x2084, 60131 }, - { 0x208D, 60133 }, - { 0x2089, 60136 }, - { 0x208A, 60138 }, - { 0x2080, 60141 }, - { 0x2088, 60143 }, - { 0x208B, 60145 }, - { 0x208E, 60147 }, - { 0x2087, 60150 }, - { 0x2083, 60152 }, - { 0x208C, 60154 }, - { 0x23B2, 60157 }, - { 0x2A0B, 60159 }, - { 0x23B3, 60162 }, - { 0x2121, 60164 }, - { 0x2706, 60166 }, - { 0x2315, 60169 }, - { 0x9353, 60171 }, - { 0x931D, 60176 }, - { 0x932D, 60179 }, - { 0x9323, 60184 }, - { 0x931C, 60188 }, - { 0x9307, 60191 }, - { 0x9343, 60195 }, - { 0x932F, 60198 }, - { 0x9346, 60203 }, - { 0x9308, 60206 }, - { 0x9314, 60209 }, - { 0x9331, 60212 }, - { 0x933B, 60215 }, - { 0x9344, 60218 }, - { 0x930C, 60221 }, - { 0x9306, 60224 }, - { 0x9321, 60227 }, - { 0x933D, 60230 }, - { 0x9320, 60234 }, - { 0x9336, 60237 }, - { 0x9325, 60240 }, - { 0x932A, 60243 }, - { 0x9335, 60246 }, - { 0x9319, 60249 }, - { 0x9309, 60252 }, - { 0x934F, 60255 }, - { 0x9315, 60258 }, - { 0x9349, 60261 }, - { 0x9350, 60264 }, - { 0x9316, 60267 }, - { 0x930A, 60271 }, - { 0x9327, 60275 }, - { 0x9340, 60278 }, - { 0x9339, 60281 }, - { 0x9324, 60284 }, - { 0x9334, 60287 }, - { 0x931A, 60290 }, - { 0x9345, 60293 }, - { 0x9317, 60296 }, - { 0x933A, 60299 }, - { 0x932B, 60302 }, - { 0x934D, 60305 }, - { 0x9312, 60308 }, - { 0x932E, 60311 }, - { 0x934C, 60314 }, - { 0x9329, 60317 }, - { 0x9337, 60320 }, - { 0x930E, 60325 }, - { 0x9326, 60329 }, - { 0x9338, 60332 }, - { 0x9348, 60335 }, - { 0x9347, 60338 }, - { 0x931F, 60341 }, - { 0x9318, 60344 }, - { 0x9356, 60347 }, - { 0x9328, 60350 }, - { 0x933F, 60353 }, - { 0x9332, 60357 }, - { 0x9355, 60360 }, - { 0x932C, 60363 }, - { 0x934B, 60366 }, - { 0x934E, 60369 }, - { 0x9352, 60372 }, - { 0x931E, 60375 }, - { 0x9310, 60378 }, - { 0x9330, 60381 }, - { 0x934A, 60384 }, - { 0x930D, 60387 }, - { 0x931B, 60390 }, - { 0x9351, 60393 }, - { 0x930B, 60396 }, - { 0x9333, 60399 }, - { 0x933E, 60402 }, - { 0x9313, 60405 }, - { 0x9341, 60408 }, - { 0x9322, 60411 }, - { 0x9354, 60414 }, - { 0x933C, 60417 }, - { 0x9311, 60420 }, - { 0x930F, 60423 }, - { 0x9342, 60428 }, - { 0x2234, 60431 }, - { 0x2672, 60432 }, - { 0x26AF, 60435 }, - { 0x6E00, 60438 }, - { 0x6E01, 60440 }, - { 0x6E02, 60442 }, - { 0x6E03, 60444 }, - { 0x6E04, 60446 }, - { 0x6E05, 60448 }, - { 0x6E06, 60450 }, - { 0x6E07, 60452 }, - { 0x6E08, 60454 }, - { 0x6E09, 60456 }, - { 0x6E0A, 60458 }, - { 0x6E0B, 60460 }, - { 0x6E0C, 60462 }, - { 0x6E0D, 60464 }, - { 0x6E0E, 60466 }, - { 0x6E0F, 60468 }, - { 0xB100, 60470 }, - { 0xB101, 60472 }, - { 0xB102, 60474 }, - { 0xB103, 60476 }, - { 0xB104, 60478 }, - { 0xB105, 60480 }, - { 0xB106, 60482 }, - { 0xB107, 60484 }, - { 0xB108, 60486 }, - { 0xB109, 60488 }, - { 0xB10A, 60490 }, - { 0xB10B, 60492 }, - { 0xB10C, 60494 }, - { 0xB10D, 60496 }, - { 0xB10E, 60498 }, - { 0xB10F, 60500 }, - { 0xB110, 60502 }, - { 0xB111, 60504 }, - { 0xB112, 60506 }, - { 0xB113, 60508 }, - { 0xB114, 60510 }, - { 0xB115, 60512 }, - { 0xB116, 60514 }, - { 0xB117, 60516 }, - { 0xB118, 60518 }, - { 0xB119, 60520 }, - { 0xB11A, 60522 }, - { 0xB11B, 60524 }, - { 0xB11C, 60526 }, - { 0xB11D, 60528 }, - { 0xB11E, 60530 }, - { 0xB11F, 60532 }, - { 0xB120, 60534 }, - { 0xB121, 60536 }, - { 0xB122, 60538 }, - { 0xB123, 60540 }, - { 0xB124, 60542 }, - { 0xB125, 60544 }, - { 0xB126, 60546 }, - { 0xB127, 60548 }, - { 0xB128, 60550 }, - { 0xB129, 60552 }, - { 0xB12A, 60554 }, - { 0xB12B, 60556 }, - { 0xB12C, 60558 }, - { 0xB12D, 60560 }, - { 0xB12E, 60562 }, - { 0xB12F, 60564 }, - { 0xB130, 60566 }, - { 0xB131, 60568 }, - { 0xB132, 60570 }, - { 0xB133, 60572 }, - { 0xB134, 60574 }, - { 0xB135, 60576 }, - { 0xB136, 60578 }, - { 0xB137, 60580 }, - { 0xB138, 60582 }, - { 0xB139, 60584 }, - { 0xB13A, 60586 }, - { 0xB13B, 60588 }, - { 0xB13C, 60590 }, - { 0xB13D, 60592 }, - { 0xB13E, 60594 }, - { 0xB13F, 60596 }, - { 0xB140, 60598 }, - { 0xB141, 60600 }, - { 0xB142, 60602 }, - { 0xB143, 60604 }, - { 0xB144, 60606 }, - { 0xB145, 60608 }, - { 0xB146, 60610 }, - { 0xB147, 60612 }, - { 0xB148, 60614 }, - { 0xB149, 60616 }, - { 0xB14A, 60618 }, - { 0xB14B, 60620 }, - { 0xB14C, 60622 }, - { 0xB14D, 60624 }, - { 0xB14E, 60626 }, - { 0xB14F, 60628 }, - { 0xB150, 60630 }, - { 0xB151, 60632 }, - { 0xB152, 60634 }, - { 0xB153, 60636 }, - { 0xB154, 60638 }, - { 0xB155, 60640 }, - { 0xB156, 60642 }, - { 0xB157, 60644 }, - { 0xB158, 60646 }, - { 0xB159, 60648 }, - { 0xB15A, 60650 }, - { 0xB15B, 60652 }, - { 0xB15C, 60654 }, - { 0xB15D, 60656 }, - { 0xB15E, 60658 }, - { 0xB15F, 60660 }, - { 0xB160, 60662 }, - { 0xB161, 60664 }, - { 0xB162, 60666 }, - { 0xB163, 60668 }, - { 0xB164, 60670 }, - { 0xB165, 60672 }, - { 0xB166, 60674 }, - { 0xB167, 60676 }, - { 0xB168, 60678 }, - { 0xB169, 60680 }, - { 0xB16A, 60682 }, - { 0xB16B, 60684 }, - { 0xB16C, 60686 }, - { 0xB16D, 60688 }, - { 0xB16E, 60690 }, - { 0xB16F, 60692 }, - { 0xB170, 60694 }, - { 0xB171, 60696 }, - { 0xB172, 60698 }, - { 0xB173, 60700 }, - { 0xB174, 60702 }, - { 0xB175, 60704 }, - { 0xB176, 60706 }, - { 0xB177, 60708 }, - { 0xB178, 60710 }, - { 0xB179, 60712 }, - { 0xB17A, 60714 }, - { 0xB17B, 60716 }, - { 0xB17C, 60718 }, - { 0xB17D, 60720 }, - { 0xB17E, 60722 }, - { 0xB17F, 60724 }, - { 0xB180, 60726 }, - { 0xB181, 60728 }, - { 0xB182, 60730 }, - { 0xB183, 60732 }, - { 0xB184, 60734 }, - { 0xB185, 60736 }, - { 0xB186, 60738 }, - { 0xB187, 60740 }, - { 0xB188, 60742 }, - { 0xB189, 60744 }, - { 0xB18A, 60746 }, - { 0xB18B, 60748 }, - { 0xB18C, 60750 }, - { 0xB18D, 60752 }, - { 0xB18E, 60754 }, - { 0xB18F, 60756 }, - { 0xB190, 60758 }, - { 0xB191, 60760 }, - { 0xB192, 60762 }, - { 0xB193, 60764 }, - { 0xB194, 60766 }, - { 0xB195, 60768 }, - { 0xB196, 60770 }, - { 0xB197, 60772 }, - { 0xB198, 60774 }, - { 0xB199, 60776 }, - { 0xB19A, 60778 }, - { 0xB19B, 60780 }, - { 0xB19C, 60782 }, - { 0xB19D, 60784 }, - { 0xB19E, 60786 }, - { 0xB19F, 60788 }, - { 0xB1A0, 60790 }, - { 0xB1A1, 60792 }, - { 0xB1A2, 60794 }, - { 0xB1A3, 60796 }, - { 0xB1A4, 60798 }, - { 0xB1A5, 60800 }, - { 0xB1A6, 60802 }, - { 0xB1A7, 60804 }, - { 0xB1A8, 60806 }, - { 0xB1A9, 60808 }, - { 0xB1AA, 60810 }, - { 0xB1AB, 60812 }, - { 0xB1AC, 60814 }, - { 0xB1AD, 60816 }, - { 0xB1AE, 60818 }, - { 0xB1AF, 60820 }, - { 0xB1B0, 60822 }, - { 0xB1B1, 60824 }, - { 0xB1B2, 60826 }, - { 0xB1B3, 60828 }, - { 0xB1B4, 60830 }, - { 0xB1B5, 60832 }, - { 0xB1B6, 60834 }, - { 0xB1B7, 60836 }, - { 0xB1B8, 60838 }, - { 0xB1B9, 60840 }, - { 0xB1BA, 60842 }, - { 0xB1BB, 60844 }, - { 0xB1BC, 60846 }, - { 0xB1BD, 60848 }, - { 0xB1BE, 60850 }, - { 0xB1BF, 60852 }, - { 0xB1C0, 60854 }, - { 0xB1C1, 60856 }, - { 0xB1C2, 60858 }, - { 0xB1C3, 60860 }, - { 0xB1C4, 60862 }, - { 0xB1C5, 60864 }, - { 0xB1C6, 60866 }, - { 0xB1C7, 60868 }, - { 0xB1C8, 60870 }, - { 0xB1C9, 60872 }, - { 0xB1CA, 60874 }, - { 0xB1CB, 60876 }, - { 0xB1CC, 60878 }, - { 0xB1CD, 60880 }, - { 0xB1CE, 60882 }, - { 0xB1CF, 60884 }, - { 0xB1D0, 60886 }, - { 0xB1D1, 60888 }, - { 0xB1D2, 60890 }, - { 0xB1D3, 60892 }, - { 0xB1D4, 60894 }, - { 0xB1D5, 60896 }, - { 0xB1D6, 60898 }, - { 0xB1D7, 60900 }, - { 0xB1D8, 60902 }, - { 0xB1D9, 60904 }, - { 0xB1DA, 60906 }, - { 0xB1DB, 60908 }, - { 0xB1DC, 60910 }, - { 0xB1DD, 60912 }, - { 0xB1DE, 60914 }, - { 0xB1DF, 60916 }, - { 0xB1E0, 60918 }, - { 0xB1E1, 60920 }, - { 0xB1E2, 60922 }, - { 0xB1E3, 60924 }, - { 0xB1E4, 60926 }, - { 0xB1E5, 60928 }, - { 0xB1E6, 60930 }, - { 0xB1E7, 60932 }, - { 0xB1E8, 60934 }, - { 0xB1E9, 60936 }, - { 0xB1EA, 60938 }, - { 0xB1EB, 60940 }, - { 0xB1EC, 60942 }, - { 0xB1ED, 60944 }, - { 0xB1EE, 60946 }, - { 0xB1EF, 60948 }, - { 0x0027, 60950 }, - { 0x2250, 60951 }, - { 0x6E4E, 60954 }, - { 0x6E4A, 60957 }, - { 0x005E, 60959 }, - { 0x0040, 60961 }, - { 0x2052, 60963 }, - { 0x2201, 60966 }, - { 0x2381, 60967 }, - { 0x260B, 60970 }, - { 0x0950, 60972 }, - { 0x093C, 60974 }, - { 0x094D, 60977 }, - { 0x0903, 60980 }, - { 0x0902, 60983 }, - { 0x093D, 60986 }, - { 0x0901, 60989 }, - { 0x0954, 60992 }, - { 0x0964, 60995 }, - { 0x0967, 60997 }, - { 0x096C, 61000 }, - { 0x0968, 61003 }, - { 0x096B, 61006 }, - { 0x096A, 61009 }, - { 0x096F, 61012 }, - { 0x0966, 61015 }, - { 0x096E, 61018 }, - { 0x096D, 61021 }, - { 0x0969, 61024 }, - { 0x0953, 61027 }, - { 0x0947, 61030 }, - { 0x093F, 61034 }, - { 0x094B, 61038 }, - { 0x0941, 61042 }, - { 0x093E, 61046 }, - { 0x0948, 61050 }, - { 0x094C, 61054 }, - { 0x0940, 61058 }, - { 0x0942, 61062 }, - { 0x0946, 61066 }, - { 0x094A, 61071 }, - { 0x0945, 61076 }, - { 0x0949, 61081 }, - { 0x0962, 61086 }, - { 0x0943, 61091 }, - { 0x0963, 61096 }, - { 0x0944, 61101 }, - { 0x0965, 61106 }, - { 0x0905, 61109 }, - { 0x090F, 61112 }, - { 0x0907, 61115 }, - { 0x0913, 61118 }, - { 0x0909, 61121 }, - { 0x0906, 61124 }, - { 0x0910, 61127 }, - { 0x0914, 61130 }, - { 0x092C, 61133 }, - { 0x091A, 61136 }, - { 0x0926, 61139 }, - { 0x095E, 61142 }, - { 0x0917, 61145 }, - { 0x0939, 61148 }, - { 0x0908, 61151 }, - { 0x091C, 61154 }, - { 0x0915, 61157 }, - { 0x0932, 61160 }, - { 0x092E, 61163 }, - { 0x0928, 61166 }, - { 0x092A, 61169 }, - { 0x0958, 61172 }, - { 0x0930, 61175 }, - { 0x0938, 61178 }, - { 0x0924, 61181 }, - { 0x090A, 61184 }, - { 0x0935, 61187 }, - { 0x092F, 61190 }, - { 0x095B, 61193 }, - { 0x097F, 61196 }, - { 0x092D, 61199 }, - { 0x091B, 61202 }, - { 0x0921, 61205 }, - { 0x0927, 61208 }, - { 0x097B, 61211 }, - { 0x0918, 61214 }, - { 0x091D, 61217 }, - { 0x097C, 61220 }, - { 0x0916, 61223 }, - { 0x0933, 61226 }, - { 0x0919, 61229 }, - { 0x0923, 61232 }, - { 0x091E, 61235 }, - { 0x092B, 61238 }, - { 0x095D, 61241 }, - { 0x0931, 61244 }, - { 0x0936, 61247 }, - { 0x0937, 61250 }, - { 0x0925, 61253 }, - { 0x091F, 61256 }, - { 0x095F, 61259 }, - { 0x097E, 61262 }, - { 0x0922, 61265 }, - { 0x095A, 61268 }, - { 0x0959, 61271 }, - { 0x0934, 61274 }, - { 0x0929, 61277 }, - { 0x0920, 61280 }, - { 0x095C, 61283 }, - { 0x0904, 61286 }, - { 0x090E, 61290 }, - { 0x0912, 61294 }, - { 0x090D, 61298 }, - { 0x0911, 61302 }, - { 0x097D, 61306 }, - { 0x090C, 61310 }, - { 0x090B, 61314 }, - { 0x0961, 61318 }, - { 0x0960, 61322 }, - { 0x0951, 61326 }, - { 0x0952, 61330 }, - { 0x0970, 61334 }, - { 0x224F, 61337 }, - { 0x23E7, 61339 }, - { 0x224D, 61341 }, - { 0x2A78, 61343 }, - { 0x2C3B, 61348 }, - { 0x2C4A, 61352 }, - { 0x2C56, 61356 }, - { 0x2C53, 61360 }, - { 0x2C30, 61364 }, - { 0x2C58, 61368 }, - { 0x2C41, 61373 }, - { 0x2C49, 61377 }, - { 0x2C4E, 61381 }, - { 0x2C4C, 61385 }, - { 0x2C46, 61389 }, - { 0x2C31, 61393 }, - { 0x2C5A, 61397 }, - { 0x2C48, 61401 }, - { 0x2C39, 61405 }, - { 0x2C3D, 61409 }, - { 0x2C4B, 61413 }, - { 0x2C32, 61417 }, - { 0x2C51, 61421 }, - { 0x2C50, 61425 }, - { 0x2C4F, 61429 }, - { 0x2C34, 61433 }, - { 0x2C37, 61437 }, - { 0x2C47, 61441 }, - { 0x2C40, 61445 }, - { 0x2C43, 61449 }, - { 0x2C44, 61453 }, - { 0x2C54, 61457 }, - { 0x2C55, 61462 }, - { 0x2C35, 61469 }, - { 0x2C4D, 61473 }, - { 0x2C3C, 61477 }, - { 0x2C42, 61481 }, - { 0x2C45, 61485 }, - { 0x2C38, 61489 }, - { 0x2C33, 61493 }, - { 0x2C3A, 61497 }, - { 0x2C59, 61502 }, - { 0x2C57, 61508 }, - { 0x2C5B, 61514 }, - { 0x2C3E, 61518 }, - { 0x2C3F, 61522 }, - { 0x2C5C, 61526 }, - { 0x2C52, 61530 }, - { 0x2C36, 61535 }, - { 0x2C5E, 61539 }, - { 0x2C5D, 61544 }, - { 0x2C0B, 61549 }, - { 0x2C1A, 61553 }, - { 0x2C26, 61557 }, - { 0x2C23, 61561 }, - { 0x2C00, 61565 }, - { 0x2C28, 61569 }, - { 0x2C11, 61574 }, - { 0x2C19, 61578 }, - { 0x2C1E, 61582 }, - { 0x2C1C, 61586 }, - { 0x2C16, 61590 }, - { 0x2C01, 61594 }, - { 0x2C2A, 61598 }, - { 0x2C18, 61602 }, - { 0x2C09, 61606 }, - { 0x2C0D, 61610 }, - { 0x2C1B, 61614 }, - { 0x2C02, 61618 }, - { 0x2C21, 61622 }, - { 0x2C20, 61626 }, - { 0x2C1F, 61630 }, - { 0x2C04, 61634 }, - { 0x2C07, 61638 }, - { 0x2C17, 61642 }, - { 0x2C10, 61646 }, - { 0x2C13, 61650 }, - { 0x2C14, 61654 }, - { 0x2C24, 61658 }, - { 0x2C25, 61663 }, - { 0x2C05, 61670 }, - { 0x2C1D, 61674 }, - { 0x2C0C, 61678 }, - { 0x2C12, 61682 }, - { 0x2C15, 61686 }, - { 0x2C08, 61690 }, - { 0x2C03, 61694 }, - { 0x2C0A, 61698 }, - { 0x2C29, 61703 }, - { 0x2C27, 61709 }, - { 0x2C2B, 61715 }, - { 0x2C0E, 61719 }, - { 0x2C0F, 61723 }, - { 0x2C2C, 61727 }, - { 0x2C22, 61731 }, - { 0x2C06, 61736 }, - { 0x2C2E, 61740 }, - { 0x2C2D, 61745 }, - { 0x223B, 61750 }, - { 0x2015, 61751 }, - { 0x23AF, 61753 }, - { 0x26A9, 61756 }, - { 0x23BA, 61761 }, - { 0x23BB, 61764 }, - { 0x23BC, 61767 }, - { 0x23BD, 61770 }, - { 0x2B23, 61773 }, - { 0x2026, 61776 }, - { 0x238E, 61778 }, - { 0x29DC, 61780 }, - { 0x7A38, 61782 }, - { 0x7A3A, 61786 }, - { 0x7A39, 61790 }, - { 0x7A0D, 61793 }, - { 0x7A0F, 61798 }, - { 0x7A0E, 61801 }, - { 0x7A40, 61804 }, - { 0x7A41, 61807 }, - { 0x7A43, 61810 }, - { 0x7A42, 61813 }, - { 0x7A05, 61816 }, - { 0x7A01, 61820 }, - { 0x7A06, 61824 }, - { 0x7A02, 61828 }, - { 0x7A03, 61832 }, - { 0x7A0C, 61837 }, - { 0x7A00, 61841 }, - { 0x7A26, 61844 }, - { 0x7A15, 61847 }, - { 0x7A21, 61850 }, - { 0x7A12, 61853 }, - { 0x7A31, 61856 }, - { 0x7A17, 61859 }, - { 0x7A10, 61862 }, - { 0x7A2B, 61865 }, - { 0x7A28, 61868 }, - { 0x7A23, 61871 }, - { 0x7A24, 61874 }, - { 0x7A2A, 61877 }, - { 0x7A2F, 61880 }, - { 0x7A1F, 61883 }, - { 0x7A2C, 61886 }, - { 0x7A29, 61889 }, - { 0x7A30, 61892 }, - { 0x7A27, 61895 }, - { 0x7A16, 61898 }, - { 0x7A1C, 61901 }, - { 0x7A22, 61904 }, - { 0x7A13, 61907 }, - { 0x7A11, 61910 }, - { 0x7A32, 61913 }, - { 0x7A1E, 61916 }, - { 0x7A19, 61919 }, - { 0x7A25, 61922 }, - { 0x7A2D, 61925 }, - { 0x7A2E, 61928 }, - { 0x7A20, 61931 }, - { 0x7A1A, 61934 }, - { 0x7A1D, 61937 }, - { 0x7A1B, 61940 }, - { 0x7A33, 61943 }, - { 0x7A46, 61946 }, - { 0x7A47, 61950 }, - { 0x7A44, 61954 }, - { 0x7A45, 61957 }, - { 0x7A3F, 61960 }, - { 0x7A50, 61962 }, - { 0x7A56, 61965 }, - { 0x7A58, 61968 }, - { 0x7A55, 61971 }, - { 0x7A51, 61974 }, - { 0x7A52, 61978 }, - { 0x7A57, 61981 }, - { 0x7A53, 61985 }, - { 0x7A54, 61989 }, - { 0x238D, 61992 }, - { 0x2ADD, 61994 }, - { 0x260D, 61995 }, - { 0x1736, 61996 }, - { 0x1735, 61999 }, - { 0x791F, 62002 }, - { 0x7904, 62005 }, - { 0x7910, 62008 }, - { 0x790F, 62011 }, - { 0x7900, 62014 }, - { 0x7901, 62017 }, - { 0x7907, 62020 }, - { 0x790A, 62023 }, - { 0x790C, 62026 }, - { 0x790D, 62029 }, - { 0x7912, 62032 }, - { 0x7915, 62035 }, - { 0x7908, 62038 }, - { 0x7905, 62041 }, - { 0x7909, 62044 }, - { 0x7906, 62047 }, - { 0x7903, 62050 }, - { 0x7902, 62053 }, - { 0x790B, 62056 }, - { 0x7913, 62059 }, - { 0x7911, 62062 }, - { 0x790E, 62065 }, - { 0x7914, 62068 }, - { 0x7916, 62071 }, - { 0x7919, 62074 }, - { 0x7917, 62078 }, - { 0x7918, 62081 }, - { 0x00B1, 62084 }, - { 0x2305, 62086 }, - { 0x2237, 62087 }, - { 0x2A16, 62088 }, - { 0x225F, 62091 }, - { 0x00AE, 62094 }, - { 0x2938, 62096 }, - { 0x21A0, 62100 }, - { 0x219D, 62104 }, - { 0x2192, 62107 }, - { 0x21E5, 62109 }, - { 0x291E, 62113 }, - { 0x21A6, 62118 }, - { 0x2920, 62122 }, - { 0x21C4, 62129 }, - { 0x2B0F, 62134 }, - { 0x2B0E, 62139 }, - { 0x21AA, 62144 }, - { 0x21AC, 62148 }, - { 0x2945, 62152 }, - { 0x21A3, 62157 }, - { 0x2915, 62161 }, - { 0x2914, 62169 }, - { 0x21B4, 62176 }, - { 0x2911, 62181 }, - { 0x21FB, 62186 }, - { 0x219B, 62192 }, - { 0x21F8, 62196 }, - { 0x2942, 62201 }, - { 0x2974, 62207 }, - { 0x2975, 62212 }, - { 0x2947, 62218 }, - { 0x21E8, 62222 }, - { 0x21F0, 62225 }, - { 0x21E2, 62230 }, - { 0x290D, 62233 }, - { 0x21D2, 62237 }, - { 0x2907, 62240 }, - { 0x21CF, 62245 }, - { 0x2903, 62250 }, - { 0x291C, 62256 }, - { 0x21C9, 62259 }, - { 0x290F, 62262 }, - { 0x21DB, 62266 }, - { 0x21CC, 62269 }, - { 0x2953, 62274 }, - { 0x295B, 62281 }, - { 0x296C, 62288 }, - { 0x2968, 62296 }, - { 0x2964, 62307 }, - { 0x2957, 62318 }, - { 0x295F, 62325 }, - { 0x2969, 62332 }, - { 0x296D, 62343 }, - { 0x21C0, 62351 }, - { 0x21C1, 62356 }, - { 0x21DD, 62361 }, - { 0x291A, 62364 }, - { 0x2905, 62366 }, - { 0x2916, 62371 }, - { 0x2918, 62376 }, - { 0x2917, 62385 }, - { 0x2901, 62393 }, - { 0x2900, 62400 }, - { 0x2910, 62406 }, - { 0x21FE, 62411 }, - { 0x2A32, 62414 }, - { 0x237D, 62419 }, - { 0x2006, 62422 }, - { 0x2023, 62424 }, - { 0x267F, 62426 }, - { 0x2387, 62428 }, - { 0x27AB, 62431 }, - { 0x2A10, 62436 }, - { 0x2384, 62438 }, - { 0x260C, 62440 }, - { 0x2258, 62441 }, - { 0x2334, 62443 }, - { 0x2335, 62444 }, - { 0x2A99, 62445 }, - { 0x2A9A, 62450 }, - { 0x2A9B, 62455 }, - { 0x2A9C, 62461 }, - { 0x2AF9, 62467 }, - { 0x2AFA, 62473 }, - { 0x225A, 62479 }, - { 0x0021, 62481 }, - { 0x2049, 62483 }, - { 0x2005, 62486 }, - { 0x2027, 62488 }, - { 0x3002, 62490 }, - { 0x303F, 62493 }, - { 0x3001, 62497 }, - { 0x302A, 62499 }, - { 0x3000, 62503 }, - { 0x3007, 62505 }, - { 0x302B, 62508 }, - { 0x3006, 62512 }, - { 0x302D, 62515 }, - { 0x302C, 62519 }, - { 0x3005, 62523 }, - { 0x3037, 62526 }, - { 0x33E0, 62532 }, - { 0x33E5, 62538 }, - { 0x33E9, 62544 }, - { 0x33E1, 62550 }, - { 0x33E4, 62556 }, - { 0x33E3, 62562 }, - { 0x33E8, 62568 }, - { 0x33E7, 62574 }, - { 0x33E6, 62580 }, - { 0x33E2, 62586 }, - { 0x33EA, 62592 }, - { 0x33FD, 62598 }, - { 0x33EB, 62604 }, - { 0x33F3, 62610 }, - { 0x33EE, 62616 }, - { 0x33EF, 62622 }, - { 0x33F1, 62628 }, - { 0x33ED, 62634 }, - { 0x33F2, 62640 }, - { 0x33EC, 62646 }, - { 0x33F0, 62652 }, - { 0x33FE, 62658 }, - { 0x33F4, 62664 }, - { 0x33F9, 62670 }, - { 0x33F5, 62676 }, - { 0x33F8, 62682 }, - { 0x33F7, 62688 }, - { 0x33FC, 62694 }, - { 0x33FB, 62700 }, - { 0x33FA, 62706 }, - { 0x33F6, 62712 }, - { 0x32C4, 62718 }, - { 0x3359, 62723 }, - { 0x335E, 62729 }, - { 0x3362, 62735 }, - { 0x335A, 62741 }, - { 0x335D, 62747 }, - { 0x335C, 62753 }, - { 0x3361, 62759 }, - { 0x3358, 62765 }, - { 0x3360, 62771 }, - { 0x335F, 62777 }, - { 0x335B, 62783 }, - { 0x3363, 62789 }, - { 0x3364, 62795 }, - { 0x336C, 62801 }, - { 0x3367, 62807 }, - { 0x3368, 62813 }, - { 0x336A, 62819 }, - { 0x3366, 62825 }, - { 0x336B, 62831 }, - { 0x3365, 62837 }, - { 0x3369, 62843 }, - { 0x336D, 62849 }, - { 0x336E, 62855 }, - { 0x3370, 62861 }, - { 0x336F, 62867 }, - { 0x32C6, 62873 }, - { 0x32C5, 62878 }, - { 0x32C3, 62883 }, - { 0x32C2, 62888 }, - { 0x32C7, 62893 }, - { 0x32C0, 62898 }, - { 0x32C9, 62903 }, - { 0x32CB, 62908 }, - { 0x32C1, 62913 }, - { 0x32CA, 62918 }, - { 0x32C8, 62923 }, - { 0x303E, 62928 }, - { 0x319F, 62931 }, - { 0x3192, 62935 }, - { 0x3196, 62939 }, - { 0x3193, 62943 }, - { 0x3195, 62947 }, - { 0x319E, 62951 }, - { 0x3199, 62955 }, - { 0x319B, 62959 }, - { 0x3194, 62963 }, - { 0x3198, 62967 }, - { 0x319C, 62971 }, - { 0x319D, 62975 }, - { 0x3197, 62979 }, - { 0x319A, 62983 }, - { 0x3190, 62987 }, - { 0x3191, 62991 }, - { 0x2FF4, 62995 }, - { 0x2FF0, 63000 }, - { 0x2FF2, 63006 }, - { 0x2FF1, 63014 }, - { 0x2FF3, 63020 }, - { 0x2FFB, 63028 }, - { 0x2FF7, 63032 }, - { 0x2FF5, 63038 }, - { 0x2FF6, 63044 }, - { 0x2FFA, 63050 }, - { 0x2FF8, 63057 }, - { 0x2FF9, 63064 }, - { 0x2139, 63071 }, - { 0x22BA, 63073 }, - { 0x6FF9, 63074 }, - { 0x6FFA, 63077 }, - { 0x6FFB, 63080 }, - { 0x26A4, 63083 }, - { 0x203D, 63088 }, - { 0x27AA, 63089 }, - { 0x2E0F, 63093 }, - { 0x3250, 63094 }, - { 0x2306, 63096 }, - { 0x2008, 63097 }, - { 0x2622, 63099 }, - { 0x6FFD, 63101 }, - { 0x2650, 63103 }, - { 0x00B9, 63104 }, - { 0x2076, 63106 }, - { 0x00B2, 63108 }, - { 0x2075, 63110 }, - { 0x2074, 63112 }, - { 0x207D, 63114 }, - { 0x2079, 63117 }, - { 0x207A, 63119 }, - { 0x2070, 63122 }, - { 0x2078, 63124 }, - { 0x2071, 63126 }, - { 0x207F, 63131 }, - { 0x207B, 63136 }, - { 0x207E, 63138 }, - { 0x2077, 63141 }, - { 0x00B3, 63143 }, - { 0x207C, 63145 }, - { 0x2ADB, 63148 }, - { 0x25ED, 63150 }, - { 0x25EE, 63156 }, - { 0x214D, 63162 }, - { 0x2A3F, 63163 }, - { 0x0661, 63166 }, - { 0x0666, 63169 }, - { 0x0662, 63172 }, - { 0x0665, 63175 }, - { 0x0664, 63178 }, - { 0x0669, 63181 }, - { 0x0660, 63184 }, - { 0x0668, 63187 }, - { 0x0667, 63190 }, - { 0x0663, 63193 }, - { 0x212D, 63196 }, - { 0x210C, 63199 }, - { 0x2111, 63202 }, - { 0x211C, 63205 }, - { 0x2128, 63208 }, - { 0x232D, 63211 }, - { 0x29DF, 63212 }, - { 0x29F3, 63214 }, - { 0x29EF, 63217 }, - { 0x29F1, 63220 }, - { 0x29F2, 63223 }, - { 0x29EE, 63226 }, - { 0x29F0, 63229 }, - { 0x269C, 63232 }, - { 0x27AC, 63233 }, - { 0x2265, 63238 }, - { 0x2A7E, 63242 }, - { 0x2A82, 63247 }, - { 0x2A84, 63255 }, - { 0x2A80, 63264 }, - { 0x2277, 63272 }, - { 0x2273, 63275 }, - { 0x2A86, 63279 }, - { 0x2A8A, 63282 }, - { 0x2A88, 63286 }, - { 0x2269, 63292 }, - { 0x22E7, 63297 }, - { 0x2267, 63302 }, - { 0x003E, 63306 }, - { 0x22D7, 63308 }, - { 0x2A7A, 63311 }, - { 0x2A7C, 63315 }, - { 0x2A8E, 63320 }, - { 0x2A90, 63325 }, - { 0x2A94, 63330 }, - { 0x2A92, 63339 }, - { 0x2978, 63345 }, - { 0x2A8C, 63349 }, - { 0x22DB, 63355 }, - { 0x2AA5, 63360 }, - { 0x2AA7, 63363 }, - { 0x2AA9, 63367 }, - { 0x2AA4, 63374 }, - { 0x002D, 63377 }, - { 0x2E12, 63378 }, - { 0x2229, 63379 }, - { 0x2A40, 63380 }, - { 0x2A44, 63383 }, - { 0x2A43, 63387 }, - { 0x2A49, 63390 }, - { 0x2A47, 63395 }, - { 0x2A4B, 63398 }, - { 0x96E1, 63404 }, - { 0x96DF, 63408 }, - { 0x96E0, 63412 }, - { 0x97CF, 63416 }, - { 0x97D4, 63420 }, - { 0x97D0, 63424 }, - { 0x97D3, 63428 }, - { 0x97D2, 63432 }, - { 0x97D7, 63436 }, - { 0x97CE, 63440 }, - { 0x97D6, 63444 }, - { 0x97D5, 63448 }, - { 0x97D1, 63452 }, - { 0x96DE, 63456 }, - { 0x96C1, 63460 }, - { 0x941A, 63463 }, - { 0x941B, 63467 }, - { 0x941C, 63471 }, - { 0x941D, 63475 }, - { 0x941E, 63479 }, - { 0x941F, 63483 }, - { 0x9420, 63487 }, - { 0x9421, 63491 }, - { 0x9422, 63495 }, - { 0x9423, 63499 }, - { 0x9424, 63503 }, - { 0x9425, 63507 }, - { 0x9426, 63511 }, - { 0x9427, 63515 }, - { 0x9428, 63519 }, - { 0x9429, 63523 }, - { 0x942A, 63527 }, - { 0x942B, 63531 }, - { 0x942C, 63535 }, - { 0x942D, 63539 }, - { 0x942E, 63543 }, - { 0x942F, 63547 }, - { 0x9430, 63551 }, - { 0x9431, 63555 }, - { 0x9432, 63559 }, - { 0x9433, 63563 }, - { 0x96CD, 63567 }, - { 0x96CE, 63571 }, - { 0x96D1, 63575 }, - { 0x96CF, 63579 }, - { 0x96D8, 63583 }, - { 0x96C8, 63587 }, - { 0x96D7, 63591 }, - { 0x96D9, 63595 }, - { 0x96D2, 63599 }, - { 0x96D5, 63603 }, - { 0x96C3, 63607 }, - { 0x96CA, 63611 }, - { 0x96C7, 63615 }, - { 0x96C2, 63619 }, - { 0x96C5, 63623 }, - { 0x96D3, 63627 }, - { 0x96C4, 63632 }, - { 0x96CB, 63636 }, - { 0x96CC, 63640 }, - { 0x96DA, 63644 }, - { 0x96D4, 63648 }, - { 0x96C9, 63652 }, - { 0x97CB, 63656 }, - { 0x96C6, 63660 }, - { 0x96D0, 63664 }, - { 0x96D6, 63668 }, - { 0x96DD, 63672 }, - { 0x9755, 63676 }, - { 0x9753, 63681 }, - { 0x9754, 63686 }, - { 0x9752, 63691 }, - { 0x9735, 63696 }, - { 0x9482, 63700 }, - { 0x9483, 63705 }, - { 0x9484, 63710 }, - { 0x9485, 63715 }, - { 0x9486, 63720 }, - { 0x9487, 63725 }, - { 0x9488, 63730 }, - { 0x9489, 63735 }, - { 0x948A, 63740 }, - { 0x948B, 63745 }, - { 0x948C, 63750 }, - { 0x948D, 63755 }, - { 0x948E, 63760 }, - { 0x948F, 63765 }, - { 0x9490, 63770 }, - { 0x9491, 63775 }, - { 0x9492, 63780 }, - { 0x9493, 63785 }, - { 0x9494, 63790 }, - { 0x9495, 63795 }, - { 0x9496, 63800 }, - { 0x9497, 63805 }, - { 0x9498, 63810 }, - { 0x9499, 63815 }, - { 0x949A, 63820 }, - { 0x949B, 63825 }, - { 0x9741, 63830 }, - { 0x9742, 63835 }, - { 0x9745, 63840 }, - { 0x9743, 63845 }, - { 0x974C, 63850 }, - { 0x973C, 63855 }, - { 0x974B, 63860 }, - { 0x974D, 63865 }, - { 0x9746, 63870 }, - { 0x9749, 63875 }, - { 0x9737, 63880 }, - { 0x973E, 63885 }, - { 0x973B, 63890 }, - { 0x9736, 63895 }, - { 0x9739, 63900 }, - { 0x9747, 63905 }, - { 0x9738, 63911 }, - { 0x973F, 63916 }, - { 0x9740, 63921 }, - { 0x974E, 63926 }, - { 0x9748, 63931 }, - { 0x973D, 63936 }, - { 0x973A, 63941 }, - { 0x9744, 63946 }, - { 0x974A, 63951 }, - { 0x9751, 63956 }, - { 0x9468, 63961 }, - { 0x9469, 63966 }, - { 0x946A, 63971 }, - { 0x946B, 63976 }, - { 0x946C, 63981 }, - { 0x946D, 63986 }, - { 0x946E, 63991 }, - { 0x946F, 63996 }, - { 0x9470, 64001 }, - { 0x9471, 64006 }, - { 0x9472, 64011 }, - { 0x9473, 64016 }, - { 0x9474, 64021 }, - { 0x9475, 64026 }, - { 0x9476, 64031 }, - { 0x9477, 64036 }, - { 0x9478, 64041 }, - { 0x9479, 64046 }, - { 0x947A, 64051 }, - { 0x947B, 64056 }, - { 0x947C, 64061 }, - { 0x947D, 64066 }, - { 0x947E, 64071 }, - { 0x947F, 64076 }, - { 0x9480, 64081 }, - { 0x9481, 64086 }, - { 0x9727, 64091 }, - { 0x9728, 64096 }, - { 0x972B, 64101 }, - { 0x9729, 64106 }, - { 0x9732, 64111 }, - { 0x9722, 64116 }, - { 0x9731, 64121 }, - { 0x9733, 64126 }, - { 0x972C, 64131 }, - { 0x972F, 64136 }, - { 0x971D, 64141 }, - { 0x9724, 64146 }, - { 0x9721, 64151 }, - { 0x971C, 64156 }, - { 0x971F, 64161 }, - { 0x971E, 64166 }, - { 0x9725, 64171 }, - { 0x9726, 64176 }, - { 0x9734, 64181 }, - { 0x972E, 64186 }, - { 0x9723, 64191 }, - { 0x972D, 64196 }, - { 0x9720, 64202 }, - { 0x972A, 64207 }, - { 0x9730, 64212 }, - { 0x9750, 64217 }, - { 0x974F, 64222 }, - { 0x94EA, 64227 }, - { 0x94EB, 64232 }, - { 0x94EC, 64237 }, - { 0x94ED, 64242 }, - { 0x94EE, 64247 }, - { 0x94EF, 64252 }, - { 0x94F0, 64257 }, - { 0x94F1, 64262 }, - { 0x94F2, 64267 }, - { 0x94F3, 64272 }, - { 0x94F4, 64277 }, - { 0x94F5, 64282 }, - { 0x94F6, 64287 }, - { 0x94F7, 64292 }, - { 0x94F8, 64297 }, - { 0x94F9, 64302 }, - { 0x94FA, 64307 }, - { 0x94FB, 64312 }, - { 0x94FC, 64317 }, - { 0x94FD, 64322 }, - { 0x94FE, 64327 }, - { 0x94FF, 64332 }, - { 0x9500, 64337 }, - { 0x9501, 64342 }, - { 0x9502, 64347 }, - { 0x9503, 64352 }, - { 0x94D0, 64357 }, - { 0x94D1, 64362 }, - { 0x94D2, 64367 }, - { 0x94D3, 64372 }, - { 0x94D4, 64377 }, - { 0x94D5, 64382 }, - { 0x94D6, 64387 }, - { 0x94D7, 64392 }, - { 0x94D8, 64397 }, - { 0x94D9, 64402 }, - { 0x94DA, 64407 }, - { 0x94DB, 64412 }, - { 0x94DC, 64417 }, - { 0x94DD, 64422 }, - { 0x94DE, 64427 }, - { 0x94DF, 64432 }, - { 0x94E0, 64437 }, - { 0x94E1, 64442 }, - { 0x94E2, 64447 }, - { 0x94E3, 64452 }, - { 0x94E4, 64457 }, - { 0x94E5, 64462 }, - { 0x94E6, 64467 }, - { 0x94E7, 64472 }, - { 0x94E8, 64477 }, - { 0x94E9, 64482 }, - { 0x9400, 64487 }, - { 0x9401, 64491 }, - { 0x9402, 64495 }, - { 0x9403, 64499 }, - { 0x9404, 64503 }, - { 0x9405, 64507 }, - { 0x9406, 64511 }, - { 0x9407, 64515 }, - { 0x9408, 64519 }, - { 0x9409, 64523 }, - { 0x940A, 64527 }, - { 0x940B, 64531 }, - { 0x940C, 64535 }, - { 0x940D, 64539 }, - { 0x940E, 64543 }, - { 0x940F, 64547 }, - { 0x9410, 64551 }, - { 0x9411, 64555 }, - { 0x9412, 64559 }, - { 0x9413, 64563 }, - { 0x9414, 64567 }, - { 0x9415, 64571 }, - { 0x9416, 64575 }, - { 0x9417, 64579 }, - { 0x9418, 64583 }, - { 0x9419, 64587 }, - { 0x96B3, 64591 }, - { 0x96B4, 64595 }, - { 0x96B7, 64599 }, - { 0x96B5, 64603 }, - { 0x96BE, 64607 }, - { 0x96AE, 64611 }, - { 0x96BD, 64615 }, - { 0x96BF, 64619 }, - { 0x96B8, 64623 }, - { 0x96BB, 64627 }, - { 0x96A9, 64631 }, - { 0x96B0, 64635 }, - { 0x96AD, 64639 }, - { 0x96A8, 64643 }, - { 0x96AB, 64647 }, - { 0x96AA, 64651 }, - { 0x96B1, 64655 }, - { 0x96B2, 64659 }, - { 0x96C0, 64663 }, - { 0x96BA, 64667 }, - { 0x96AF, 64671 }, - { 0x96B9, 64675 }, - { 0x97CA, 64680 }, - { 0x96AC, 64684 }, - { 0x96B6, 64688 }, - { 0x96BC, 64692 }, - { 0x96DC, 64696 }, - { 0x9586, 64700 }, - { 0x9587, 64705 }, - { 0x9588, 64710 }, - { 0x9589, 64715 }, - { 0x958A, 64720 }, - { 0x958B, 64725 }, - { 0x958C, 64730 }, - { 0x958D, 64735 }, - { 0x958E, 64740 }, - { 0x958F, 64745 }, - { 0x9590, 64750 }, - { 0x9591, 64755 }, - { 0x9592, 64760 }, - { 0x9593, 64765 }, - { 0x9594, 64770 }, - { 0x9595, 64775 }, - { 0x9596, 64780 }, - { 0x9597, 64785 }, - { 0x9598, 64790 }, - { 0x9599, 64795 }, - { 0x959A, 64800 }, - { 0x959B, 64805 }, - { 0x959C, 64810 }, - { 0x959D, 64815 }, - { 0x959E, 64820 }, - { 0x959F, 64825 }, - { 0x956C, 64830 }, - { 0x956D, 64835 }, - { 0x956E, 64840 }, - { 0x956F, 64845 }, - { 0x9570, 64850 }, - { 0x9571, 64855 }, - { 0x9572, 64860 }, - { 0x9573, 64865 }, - { 0x9574, 64870 }, - { 0x9575, 64875 }, - { 0x9576, 64880 }, - { 0x9577, 64885 }, - { 0x9578, 64890 }, - { 0x9579, 64895 }, - { 0x957A, 64900 }, - { 0x957B, 64905 }, - { 0x957C, 64910 }, - { 0x957D, 64915 }, - { 0x957E, 64920 }, - { 0x957F, 64925 }, - { 0x9580, 64930 }, - { 0x9581, 64935 }, - { 0x9582, 64940 }, - { 0x9583, 64945 }, - { 0x9584, 64950 }, - { 0x9585, 64955 }, - { 0x96DB, 64960 }, - { 0x27E8, 64964 }, - { 0x27E6, 64968 }, - { 0x27EA, 64973 }, - { 0x27E9, 64978 }, - { 0x27E7, 64982 }, - { 0x27EB, 64987 }, - { 0x971B, 64992 }, - { 0x9719, 64996 }, - { 0x971A, 65000 }, - { 0x9718, 65004 }, - { 0x96FB, 65008 }, - { 0x944E, 65011 }, - { 0x944F, 65015 }, - { 0x9450, 65019 }, - { 0x9451, 65023 }, - { 0x9452, 65027 }, - { 0x9453, 65031 }, - { 0x9454, 65035 }, - { 0x9456, 65039 }, - { 0x9457, 65043 }, - { 0x9458, 65047 }, - { 0x9459, 65051 }, - { 0x945A, 65055 }, - { 0x945B, 65059 }, - { 0x945C, 65063 }, - { 0x945D, 65067 }, - { 0x945E, 65071 }, - { 0x945F, 65075 }, - { 0x9460, 65079 }, - { 0x9461, 65083 }, - { 0x9462, 65087 }, - { 0x9463, 65091 }, - { 0x9464, 65095 }, - { 0x9465, 65099 }, - { 0x9466, 65103 }, - { 0x9467, 65107 }, - { 0x9707, 65111 }, - { 0x9708, 65115 }, - { 0x970B, 65119 }, - { 0x9709, 65123 }, - { 0x9712, 65127 }, - { 0x9702, 65131 }, - { 0x9711, 65135 }, - { 0x9713, 65139 }, - { 0x970C, 65143 }, - { 0x970F, 65147 }, - { 0x96FD, 65151 }, - { 0x9704, 65155 }, - { 0x9701, 65159 }, - { 0x96FC, 65163 }, - { 0x96FF, 65167 }, - { 0x970D, 65171 }, - { 0x96FE, 65176 }, - { 0x9705, 65180 }, - { 0x9706, 65184 }, - { 0x9714, 65188 }, - { 0x970E, 65192 }, - { 0x9703, 65196 }, - { 0x96A4, 65200 }, - { 0x96A5, 65205 }, - { 0x9700, 65210 }, - { 0x970A, 65214 }, - { 0x9710, 65218 }, - { 0x9717, 65222 }, - { 0x9434, 65226 }, - { 0x9435, 65230 }, - { 0x9436, 65234 }, - { 0x9437, 65238 }, - { 0x9438, 65242 }, - { 0x9439, 65246 }, - { 0x943A, 65250 }, - { 0x943B, 65254 }, - { 0x943C, 65258 }, - { 0x943D, 65262 }, - { 0x943E, 65266 }, - { 0x943F, 65270 }, - { 0x9440, 65274 }, - { 0x9441, 65278 }, - { 0x9442, 65282 }, - { 0x9443, 65286 }, - { 0x9444, 65290 }, - { 0x9445, 65294 }, - { 0x9446, 65298 }, - { 0x9447, 65302 }, - { 0x9448, 65306 }, - { 0x9449, 65310 }, - { 0x944A, 65314 }, - { 0x944B, 65318 }, - { 0x944C, 65322 }, - { 0x944D, 65326 }, - { 0x96ED, 65330 }, - { 0x96EE, 65334 }, - { 0x96F1, 65338 }, - { 0x96EF, 65342 }, - { 0x96F8, 65346 }, - { 0x96E8, 65350 }, - { 0x96F7, 65354 }, - { 0x96F9, 65358 }, - { 0x96F2, 65362 }, - { 0x96F5, 65366 }, - { 0x96E3, 65370 }, - { 0x96EA, 65374 }, - { 0x96E7, 65378 }, - { 0x96E2, 65382 }, - { 0x96E5, 65386 }, - { 0x96E4, 65390 }, - { 0x96EB, 65394 }, - { 0x96EC, 65398 }, - { 0x96FA, 65402 }, - { 0x96F4, 65406 }, - { 0x96E9, 65410 }, - { 0x96F3, 65414 }, - { 0x96E6, 65419 }, - { 0x96F0, 65423 }, - { 0x96F6, 65427 }, - { 0x9716, 65431 }, - { 0x9715, 65435 }, - { 0x94B6, 65439 }, - { 0x94B7, 65443 }, - { 0x94B8, 65447 }, - { 0x94B9, 65451 }, - { 0x94BB, 65455 }, - { 0x94BD, 65459 }, - { 0x94BE, 65463 }, - { 0x94BF, 65467 }, - { 0x94C0, 65471 }, - { 0x94C1, 65475 }, - { 0x94C2, 65479 }, - { 0x94C3, 65483 }, - { 0x94C5, 65487 }, - { 0x94C6, 65491 }, - { 0x94C7, 65495 }, - { 0x94C8, 65499 }, - { 0x94C9, 65503 }, - { 0x94CA, 65507 }, - { 0x94CB, 65511 }, - { 0x94CC, 65515 }, - { 0x94CD, 65519 }, - { 0x94CE, 65523 }, - { 0x94CF, 65527 }, - { 0x949C, 65531 }, - { 0x949E, 65535 }, - { 0x949F, 65539 }, - { 0x94A2, 65543 }, - { 0x94A5, 65547 }, - { 0x94A6, 65551 }, - { 0x94A9, 65555 }, - { 0x94AA, 65559 }, - { 0x94AB, 65563 }, - { 0x94AC, 65567 }, - { 0x94AE, 65571 }, - { 0x94AF, 65575 }, - { 0x94B0, 65579 }, - { 0x94B1, 65583 }, - { 0x94B2, 65587 }, - { 0x94B3, 65591 }, - { 0x94B4, 65595 }, - { 0x94B5, 65599 }, - { 0x951E, 65603 }, - { 0x951F, 65607 }, - { 0x9520, 65611 }, - { 0x9521, 65615 }, - { 0x9522, 65619 }, - { 0x9523, 65623 }, - { 0x9524, 65627 }, - { 0x9525, 65631 }, - { 0x9526, 65635 }, - { 0x9527, 65639 }, - { 0x9528, 65643 }, - { 0x9529, 65647 }, - { 0x952A, 65651 }, - { 0x952B, 65655 }, - { 0x952C, 65659 }, - { 0x952D, 65663 }, - { 0x952E, 65667 }, - { 0x952F, 65671 }, - { 0x9530, 65675 }, - { 0x9531, 65679 }, - { 0x9532, 65683 }, - { 0x9533, 65687 }, - { 0x9534, 65691 }, - { 0x9535, 65695 }, - { 0x9536, 65699 }, - { 0x9537, 65703 }, - { 0x9504, 65707 }, - { 0x9505, 65711 }, - { 0x9507, 65715 }, - { 0x9508, 65719 }, - { 0x9509, 65723 }, - { 0x950A, 65727 }, - { 0x950D, 65731 }, - { 0x950E, 65735 }, - { 0x950F, 65739 }, - { 0x9510, 65743 }, - { 0x9511, 65747 }, - { 0x9512, 65751 }, - { 0x9513, 65755 }, - { 0x9514, 65759 }, - { 0x9516, 65763 }, - { 0x9517, 65767 }, - { 0x9518, 65771 }, - { 0x9519, 65775 }, - { 0x951A, 65779 }, - { 0x951B, 65783 }, - { 0x951C, 65787 }, - { 0x97F7, 65791 }, - { 0x97FC, 65795 }, - { 0x97F8, 65799 }, - { 0x97FB, 65803 }, - { 0x97FA, 65807 }, - { 0x97FF, 65811 }, - { 0x97F6, 65815 }, - { 0x97FE, 65819 }, - { 0x97FD, 65823 }, - { 0x97F9, 65827 }, - { 0x968A, 65831 }, - { 0x968B, 65835 }, - { 0x968C, 65839 }, - { 0x968D, 65843 }, - { 0x968E, 65847 }, - { 0x968F, 65851 }, - { 0x9690, 65855 }, - { 0x9691, 65859 }, - { 0x9692, 65863 }, - { 0x9693, 65867 }, - { 0x9694, 65871 }, - { 0x9695, 65875 }, - { 0x9696, 65879 }, - { 0x9697, 65883 }, - { 0x9698, 65887 }, - { 0x9699, 65891 }, - { 0x969A, 65895 }, - { 0x969B, 65899 }, - { 0x969C, 65903 }, - { 0x969D, 65907 }, - { 0x969E, 65911 }, - { 0x969F, 65915 }, - { 0x96A0, 65919 }, - { 0x96A1, 65923 }, - { 0x96A2, 65927 }, - { 0x96A3, 65931 }, - { 0x9670, 65935 }, - { 0x9671, 65939 }, - { 0x9672, 65943 }, - { 0x9673, 65947 }, - { 0x9674, 65951 }, - { 0x9675, 65955 }, - { 0x9676, 65959 }, - { 0x9677, 65963 }, - { 0x9678, 65967 }, - { 0x9679, 65971 }, - { 0x967A, 65975 }, - { 0x967B, 65979 }, - { 0x967C, 65983 }, - { 0x967D, 65987 }, - { 0x967E, 65991 }, - { 0x967F, 65995 }, - { 0x9680, 65999 }, - { 0x9681, 66003 }, - { 0x9682, 66007 }, - { 0x9683, 66011 }, - { 0x9684, 66015 }, - { 0x9685, 66019 }, - { 0x9686, 66023 }, - { 0x9687, 66027 }, - { 0x9688, 66031 }, - { 0x9689, 66035 }, - { 0x978F, 66039 }, - { 0x978D, 66044 }, - { 0x978E, 66049 }, - { 0x97ED, 66054 }, - { 0x97F2, 66059 }, - { 0x97EE, 66064 }, - { 0x97F1, 66069 }, - { 0x97F0, 66074 }, - { 0x97F5, 66079 }, - { 0x97EC, 66084 }, - { 0x97F4, 66089 }, - { 0x97F3, 66094 }, - { 0x97EF, 66099 }, - { 0x978C, 66104 }, - { 0x976F, 66109 }, - { 0x95EE, 66113 }, - { 0x95EF, 66118 }, - { 0x95F0, 66123 }, - { 0x95F1, 66128 }, - { 0x95F2, 66133 }, - { 0x95F3, 66138 }, - { 0x95F4, 66143 }, - { 0x95F5, 66148 }, - { 0x95F6, 66153 }, - { 0x95F7, 66158 }, - { 0x95F8, 66163 }, - { 0x95F9, 66168 }, - { 0x95FA, 66173 }, - { 0x95FB, 66178 }, - { 0x95FC, 66183 }, - { 0x95FD, 66188 }, - { 0x95FE, 66193 }, - { 0x95FF, 66198 }, - { 0x9600, 66203 }, - { 0x9601, 66208 }, - { 0x9602, 66213 }, - { 0x9603, 66218 }, - { 0x9604, 66223 }, - { 0x9605, 66228 }, - { 0x9606, 66233 }, - { 0x9607, 66238 }, - { 0x977B, 66243 }, - { 0x977C, 66248 }, - { 0x977F, 66253 }, - { 0x977D, 66258 }, - { 0x9786, 66263 }, - { 0x9776, 66268 }, - { 0x9785, 66273 }, - { 0x9787, 66278 }, - { 0x9780, 66283 }, - { 0x9783, 66288 }, - { 0x9771, 66293 }, - { 0x9778, 66298 }, - { 0x9775, 66303 }, - { 0x9770, 66308 }, - { 0x9773, 66313 }, - { 0x9781, 66318 }, - { 0x9772, 66324 }, - { 0x9779, 66329 }, - { 0x977A, 66334 }, - { 0x9788, 66339 }, - { 0x9782, 66344 }, - { 0x9777, 66349 }, - { 0x9774, 66354 }, - { 0x977E, 66359 }, - { 0x9784, 66364 }, - { 0x978B, 66369 }, - { 0x97C9, 66374 }, - { 0x97C7, 66380 }, - { 0x97C8, 66386 }, - { 0x97C6, 66392 }, - { 0x97A9, 66398 }, - { 0x9656, 66403 }, - { 0x9657, 66409 }, - { 0x9658, 66415 }, - { 0x9659, 66421 }, - { 0x965A, 66427 }, - { 0x965B, 66433 }, - { 0x965C, 66439 }, - { 0x965D, 66445 }, - { 0x965E, 66451 }, - { 0x965F, 66457 }, - { 0x9660, 66463 }, - { 0x9661, 66469 }, - { 0x9662, 66475 }, - { 0x9663, 66481 }, - { 0x9664, 66487 }, - { 0x9665, 66493 }, - { 0x9666, 66499 }, - { 0x9667, 66505 }, - { 0x9668, 66511 }, - { 0x9669, 66517 }, - { 0x966A, 66523 }, - { 0x966B, 66529 }, - { 0x966C, 66535 }, - { 0x966D, 66541 }, - { 0x966E, 66547 }, - { 0x966F, 66553 }, - { 0x97B5, 66559 }, - { 0x97B6, 66565 }, - { 0x97B9, 66571 }, - { 0x97B7, 66577 }, - { 0x97C0, 66583 }, - { 0x97B0, 66589 }, - { 0x97BF, 66595 }, - { 0x97C1, 66601 }, - { 0x97BA, 66607 }, - { 0x97BD, 66613 }, - { 0x97AB, 66619 }, - { 0x97B2, 66625 }, - { 0x97AF, 66631 }, - { 0x97AA, 66637 }, - { 0x97AD, 66643 }, - { 0x97BB, 66649 }, - { 0x97AC, 66656 }, - { 0x97B3, 66662 }, - { 0x97B4, 66668 }, - { 0x97C2, 66674 }, - { 0x97BC, 66680 }, - { 0x97B1, 66686 }, - { 0x97AE, 66692 }, - { 0x97B8, 66698 }, - { 0x97BE, 66704 }, - { 0x97C5, 66710 }, - { 0x963C, 66716 }, - { 0x963D, 66722 }, - { 0x963E, 66728 }, - { 0x963F, 66734 }, - { 0x9640, 66740 }, - { 0x9641, 66746 }, - { 0x9642, 66752 }, - { 0x9643, 66758 }, - { 0x9644, 66764 }, - { 0x9645, 66770 }, - { 0x9646, 66776 }, - { 0x9647, 66782 }, - { 0x9648, 66788 }, - { 0x9649, 66794 }, - { 0x964A, 66800 }, - { 0x964B, 66806 }, - { 0x964C, 66812 }, - { 0x964D, 66818 }, - { 0x964E, 66824 }, - { 0x964F, 66830 }, - { 0x9650, 66836 }, - { 0x9651, 66842 }, - { 0x9652, 66848 }, - { 0x9653, 66854 }, - { 0x9654, 66860 }, - { 0x9655, 66866 }, - { 0x979B, 66872 }, - { 0x979C, 66878 }, - { 0x979F, 66884 }, - { 0x979D, 66890 }, - { 0x97A6, 66896 }, - { 0x9796, 66902 }, - { 0x97A5, 66908 }, - { 0x97A7, 66914 }, - { 0x97A0, 66920 }, - { 0x97A3, 66926 }, - { 0x9791, 66932 }, - { 0x9798, 66938 }, - { 0x9795, 66944 }, - { 0x9790, 66950 }, - { 0x9793, 66956 }, - { 0x9792, 66962 }, - { 0x9799, 66968 }, - { 0x979A, 66974 }, - { 0x97A8, 66980 }, - { 0x97A2, 66986 }, - { 0x9797, 66992 }, - { 0x97A1, 66998 }, - { 0x9794, 67005 }, - { 0x979E, 67011 }, - { 0x97A4, 67017 }, - { 0x97C4, 67023 }, - { 0x97C3, 67029 }, - { 0x95D4, 67035 }, - { 0x95D5, 67040 }, - { 0x95D6, 67045 }, - { 0x95D7, 67050 }, - { 0x95D8, 67055 }, - { 0x95D9, 67060 }, - { 0x95DA, 67065 }, - { 0x95DB, 67070 }, - { 0x95DC, 67075 }, - { 0x95DD, 67080 }, - { 0x95DE, 67085 }, - { 0x95DF, 67090 }, - { 0x95E0, 67095 }, - { 0x95E1, 67100 }, - { 0x95E2, 67105 }, - { 0x95E3, 67110 }, - { 0x95E4, 67115 }, - { 0x95E5, 67120 }, - { 0x95E6, 67125 }, - { 0x95E7, 67130 }, - { 0x95E8, 67135 }, - { 0x95E9, 67140 }, - { 0x95EA, 67145 }, - { 0x95EB, 67150 }, - { 0x95EC, 67155 }, - { 0x95ED, 67160 }, - { 0x9761, 67165 }, - { 0x9762, 67170 }, - { 0x9765, 67175 }, - { 0x9763, 67180 }, - { 0x976C, 67185 }, - { 0x975C, 67190 }, - { 0x976B, 67195 }, - { 0x976D, 67200 }, - { 0x9766, 67205 }, - { 0x9769, 67210 }, - { 0x9757, 67215 }, - { 0x975E, 67220 }, - { 0x975B, 67225 }, - { 0x9756, 67230 }, - { 0x9759, 67235 }, - { 0x9758, 67240 }, - { 0x975F, 67245 }, - { 0x9760, 67250 }, - { 0x976E, 67255 }, - { 0x9768, 67260 }, - { 0x975D, 67265 }, - { 0x9767, 67270 }, - { 0x975A, 67276 }, - { 0x9764, 67281 }, - { 0x976A, 67286 }, - { 0x978A, 67291 }, - { 0x9789, 67296 }, - { 0x97E3, 67301 }, - { 0x97E8, 67305 }, - { 0x97E4, 67309 }, - { 0x97E7, 67313 }, - { 0x97E6, 67317 }, - { 0x97EB, 67321 }, - { 0x97E2, 67325 }, - { 0x97EA, 67329 }, - { 0x97E9, 67333 }, - { 0x97E5, 67337 }, - { 0x95BA, 67341 }, - { 0x95BB, 67345 }, - { 0x95BC, 67349 }, - { 0x95BD, 67353 }, - { 0x95BE, 67357 }, - { 0x95BF, 67361 }, - { 0x95C0, 67365 }, - { 0x95C1, 67369 }, - { 0x95C2, 67373 }, - { 0x95C3, 67377 }, - { 0x95C4, 67381 }, - { 0x95C5, 67385 }, - { 0x95C6, 67389 }, - { 0x95C7, 67393 }, - { 0x95C8, 67397 }, - { 0x95C9, 67401 }, - { 0x95CA, 67405 }, - { 0x95CB, 67409 }, - { 0x95CC, 67413 }, - { 0x95CD, 67417 }, - { 0x95CE, 67421 }, - { 0x95CF, 67425 }, - { 0x95D0, 67429 }, - { 0x95D1, 67433 }, - { 0x95D2, 67437 }, - { 0x95D3, 67441 }, - { 0x9622, 67445 }, - { 0x9623, 67450 }, - { 0x9624, 67455 }, - { 0x9625, 67460 }, - { 0x9626, 67465 }, - { 0x9627, 67470 }, - { 0x9628, 67475 }, - { 0x9629, 67480 }, - { 0x962A, 67485 }, - { 0x962B, 67490 }, - { 0x962C, 67495 }, - { 0x962D, 67500 }, - { 0x962E, 67505 }, - { 0x962F, 67510 }, - { 0x9630, 67515 }, - { 0x9631, 67520 }, - { 0x9632, 67525 }, - { 0x9633, 67530 }, - { 0x9634, 67535 }, - { 0x9635, 67540 }, - { 0x9636, 67545 }, - { 0x9637, 67550 }, - { 0x9638, 67555 }, - { 0x9639, 67560 }, - { 0x963A, 67565 }, - { 0x963B, 67570 }, - { 0x9608, 67575 }, - { 0x9609, 67580 }, - { 0x960A, 67585 }, - { 0x960B, 67590 }, - { 0x960C, 67595 }, - { 0x960D, 67600 }, - { 0x960E, 67605 }, - { 0x960F, 67610 }, - { 0x9610, 67615 }, - { 0x9611, 67620 }, - { 0x9612, 67625 }, - { 0x9613, 67630 }, - { 0x9614, 67635 }, - { 0x9615, 67640 }, - { 0x9616, 67645 }, - { 0x9617, 67650 }, - { 0x9618, 67655 }, - { 0x9619, 67660 }, - { 0x961A, 67665 }, - { 0x961B, 67670 }, - { 0x961C, 67675 }, - { 0x961D, 67680 }, - { 0x961E, 67685 }, - { 0x961F, 67690 }, - { 0x9620, 67695 }, - { 0x9621, 67700 }, - { 0x95A0, 67705 }, - { 0x95A1, 67709 }, - { 0x95A2, 67713 }, - { 0x95A3, 67717 }, - { 0x95A4, 67721 }, - { 0x95A5, 67725 }, - { 0x95A6, 67729 }, - { 0x95A7, 67733 }, - { 0x95A8, 67737 }, - { 0x95A9, 67741 }, - { 0x95AA, 67745 }, - { 0x95AB, 67749 }, - { 0x95AC, 67753 }, - { 0x95AD, 67757 }, - { 0x95AE, 67761 }, - { 0x95AF, 67765 }, - { 0x95B0, 67769 }, - { 0x95B1, 67773 }, - { 0x95B2, 67777 }, - { 0x95B3, 67781 }, - { 0x95B4, 67785 }, - { 0x95B5, 67789 }, - { 0x95B6, 67793 }, - { 0x95B7, 67797 }, - { 0x95B8, 67801 }, - { 0x95B9, 67805 }, - { 0x97D9, 67809 }, - { 0x97DE, 67813 }, - { 0x97DA, 67817 }, - { 0x97DD, 67821 }, - { 0x97DC, 67825 }, - { 0x97E1, 67829 }, - { 0x97D8, 67833 }, - { 0x97E0, 67837 }, - { 0x97DF, 67841 }, - { 0x97DB, 67845 }, - { 0x9552, 67849 }, - { 0x9553, 67853 }, - { 0x9554, 67857 }, - { 0x9555, 67861 }, - { 0x9556, 67865 }, - { 0x9557, 67869 }, - { 0x9558, 67873 }, - { 0x9559, 67877 }, - { 0x955A, 67881 }, - { 0x955B, 67885 }, - { 0x955C, 67889 }, - { 0x955D, 67893 }, - { 0x955E, 67897 }, - { 0x955F, 67901 }, - { 0x9560, 67905 }, - { 0x9561, 67909 }, - { 0x9562, 67913 }, - { 0x9563, 67917 }, - { 0x9564, 67921 }, - { 0x9565, 67925 }, - { 0x9566, 67929 }, - { 0x9567, 67933 }, - { 0x9568, 67937 }, - { 0x9569, 67941 }, - { 0x956A, 67945 }, - { 0x956B, 67949 }, - { 0x9538, 67953 }, - { 0x9539, 67957 }, - { 0x953B, 67961 }, - { 0x953C, 67965 }, - { 0x953D, 67969 }, - { 0x953E, 67973 }, - { 0x9540, 67977 }, - { 0x9541, 67981 }, - { 0x9542, 67985 }, - { 0x9543, 67989 }, - { 0x9544, 67993 }, - { 0x9546, 67997 }, - { 0x954A, 68001 }, - { 0x954B, 68005 }, - { 0x954C, 68009 }, - { 0x954D, 68013 }, - { 0x954E, 68017 }, - { 0x954F, 68021 }, - { 0x9550, 68025 }, - { 0x2011, 68029 }, - { 0x211E, 68031 }, - { 0x6E31, 68033 }, - { 0x6E32, 68039 }, - { 0x6E33, 68045 }, - { 0x6E30, 68051 }, - { 0x6E3F, 68058 }, - { 0x6E3B, 68065 }, - { 0x6E37, 68073 }, - { 0x6E43, 68080 }, - { 0x6E17, 68088 }, - { 0x6E41, 68096 }, - { 0x6E3D, 68103 }, - { 0x6E47, 68111 }, - { 0x6E39, 68118 }, - { 0x6E35, 68126 }, - { 0x6E34, 68132 }, - { 0x6E13, 68139 }, - { 0x6E10, 68144 }, - { 0x6E40, 68149 }, - { 0x6E3C, 68156 }, - { 0x6E38, 68164 }, - { 0x6E44, 68171 }, - { 0x6E18, 68179 }, - { 0x6E42, 68187 }, - { 0x6E3E, 68194 }, - { 0x6E48, 68202 }, - { 0x6E3A, 68209 }, - { 0x6E36, 68217 }, - { 0x6E16, 68223 }, - { 0x6E14, 68229 }, - { 0x6E19, 68234 }, - { 0x6E15, 68240 }, - { 0x6E12, 68246 }, - { 0x6E11, 68253 }, - { 0x221D, 68259 }, - { 0x27A9, 68261 }, - { 0x29F4, 68265 }, - { 0x23E4, 68266 }, - { 0x2004, 68267 }, - { 0x2608, 68269 }, - { 0x27BC, 68270 }, - { 0x21B6, 68273 }, - { 0x21BA, 68277 }, - { 0x2940, 68281 }, - { 0x27F2, 68285 }, - { 0x2233, 68289 }, - { 0x2A11, 68292 }, - { 0x2246, 68294 }, - { 0x2A70, 68300 }, - { 0x2245, 68305 }, - { 0x2252, 68308 }, - { 0x2382, 68315 }, - { 0x2140, 68318 }, - { 0x213C, 68321 }, - { 0x213D, 68324 }, - { 0x2146, 68327 }, - { 0x2147, 68331 }, - { 0x2148, 68335 }, - { 0x2149, 68339 }, - { 0x2145, 68343 }, - { 0x2102, 68347 }, - { 0x210D, 68350 }, - { 0x2115, 68353 }, - { 0x2119, 68356 }, - { 0x211A, 68359 }, - { 0x211D, 68362 }, - { 0x2124, 68365 }, - { 0x213F, 68368 }, - { 0x213E, 68371 }, - { 0x29E8, 68374 }, - { 0x29E9, 68380 }, - { 0x20A0, 68386 }, - { 0x2251, 68388 }, - { 0x224E, 68391 }, - { 0x2329, 68394 }, - { 0x29FC, 68397 }, - { 0x00AB, 68401 }, - { 0x200E, 68406 }, - { 0x202D, 68408 }, - { 0x202A, 68410 }, - { 0x2213, 68412 }, - { 0x27BE, 68414 }, - { 0x2474, 68417 }, - { 0x2479, 68420 }, - { 0x2475, 68423 }, - { 0x2478, 68426 }, - { 0x2477, 68429 }, - { 0x247C, 68432 }, - { 0x247B, 68435 }, - { 0x247A, 68438 }, - { 0x2476, 68441 }, - { 0x249C, 68444 }, - { 0x249D, 68449 }, - { 0x249E, 68454 }, - { 0x249F, 68459 }, - { 0x24A0, 68464 }, - { 0x24A1, 68469 }, - { 0x24A2, 68474 }, - { 0x24A3, 68479 }, - { 0x24A4, 68484 }, - { 0x24A5, 68489 }, - { 0x24A6, 68494 }, - { 0x24A7, 68499 }, - { 0x24A8, 68504 }, - { 0x24A9, 68509 }, - { 0x24AA, 68514 }, - { 0x24AB, 68519 }, - { 0x24AC, 68524 }, - { 0x24AD, 68529 }, - { 0x24AE, 68534 }, - { 0x24AF, 68539 }, - { 0x24B0, 68544 }, - { 0x24B1, 68549 }, - { 0x24B2, 68554 }, - { 0x24B3, 68559 }, - { 0x24B4, 68564 }, - { 0x24B5, 68569 }, - { 0x3206, 68574 }, - { 0x3214, 68577 }, - { 0x3208, 68581 }, - { 0x3216, 68584 }, - { 0x321C, 68588 }, - { 0x320D, 68592 }, - { 0x321B, 68595 }, - { 0x3207, 68599 }, - { 0x3215, 68602 }, - { 0x3204, 68606 }, - { 0x3212, 68609 }, - { 0x3201, 68613 }, - { 0x320F, 68616 }, - { 0x3205, 68620 }, - { 0x3213, 68623 }, - { 0x3203, 68627 }, - { 0x3211, 68630 }, - { 0x3200, 68634 }, - { 0x320E, 68637 }, - { 0x3202, 68641 }, - { 0x3210, 68644 }, - { 0x3209, 68648 }, - { 0x3217, 68651 }, - { 0x320A, 68655 }, - { 0x3218, 68658 }, - { 0x320C, 68662 }, - { 0x321A, 68665 }, - { 0x320B, 68669 }, - { 0x3219, 68672 }, - { 0x321E, 68676 }, - { 0x321D, 68681 }, - { 0x247D, 68685 }, - { 0x247E, 68688 }, - { 0x247F, 68691 }, - { 0x2487, 68694 }, - { 0x2482, 68697 }, - { 0x2483, 68700 }, - { 0x2485, 68703 }, - { 0x2481, 68706 }, - { 0x2486, 68709 }, - { 0x2480, 68712 }, - { 0x2484, 68715 }, - { 0x3220, 68718 }, - { 0x3225, 68721 }, - { 0x3230, 68724 }, - { 0x3229, 68727 }, - { 0x3221, 68730 }, - { 0x323A, 68733 }, - { 0x322B, 68736 }, - { 0x3224, 68739 }, - { 0x3223, 68742 }, - { 0x3232, 68745 }, - { 0x322A, 68748 }, - { 0x3234, 68751 }, - { 0x3228, 68754 }, - { 0x3241, 68757 }, - { 0x3242, 68760 }, - { 0x322D, 68763 }, - { 0x322F, 68766 }, - { 0x3227, 68769 }, - { 0x3238, 68772 }, - { 0x322E, 68775 }, - { 0x3243, 68778 }, - { 0x3226, 68781 }, - { 0x3231, 68784 }, - { 0x323B, 68787 }, - { 0x3222, 68790 }, - { 0x322C, 68793 }, - { 0x3233, 68796 }, - { 0x3235, 68799 }, - { 0x323F, 68802 }, - { 0x3240, 68805 }, - { 0x323E, 68808 }, - { 0x3236, 68811 }, - { 0x3239, 68814 }, - { 0x323C, 68817 }, - { 0x323D, 68820 }, - { 0x3237, 68823 }, - { 0x27C2, 68826 }, - { 0x2AE1, 68827 }, - { 0x200F, 68830 }, - { 0x202E, 68832 }, - { 0x202B, 68834 }, - { 0x29E7, 68836 }, - { 0x2243, 68837 }, - { 0x2749, 68840 }, - { 0x2715, 68842 }, - { 0x00D7, 68844 }, - { 0x2A34, 68846 }, - { 0x2A35, 68852 }, - { 0x2A37, 68858 }, - { 0x2A3B, 68863 }, - { 0x2A30, 68867 }, - { 0x2A31, 68872 }, - { 0x232A, 68876 }, - { 0x29FD, 68879 }, - { 0x00BB, 68883 }, - { 0x27B6, 68888 }, - { 0x27B4, 68892 }, - { 0x27B5, 68896 }, - { 0x27BA, 68899 }, - { 0x273B, 68902 }, - { 0x279D, 68904 }, - { 0x27B3, 68907 }, - { 0x30A0, 68910 }, - { 0x309B, 68913 }, - { 0x30FC, 68917 }, - { 0x309C, 68921 }, - { 0x2394, 68925 }, - { 0x267D, 68927 }, - { 0x238F, 68930 }, - { 0x2390, 68933 }, - { 0x2392, 68936 }, - { 0x2391, 68938 }, + { 0x1C78, 81 }, + { 0x1C7D, 85 }, + { 0x1C51, 88 }, + { 0x1C56, 92 }, + { 0x1C52, 96 }, + { 0x1C55, 100 }, + { 0x1C54, 104 }, + { 0x1C59, 108 }, + { 0x1C50, 112 }, + { 0x1C58, 116 }, + { 0x1C57, 120 }, + { 0x1C53, 124 }, + { 0x1C7B, 128 }, + { 0x1C5C, 131 }, + { 0x1C5E, 135 }, + { 0x1C5B, 139 }, + { 0x1C71, 143 }, + { 0x1C6F, 147 }, + { 0x1C66, 151 }, + { 0x1C68, 155 }, + { 0x1C65, 159 }, + { 0x1C5A, 163 }, + { 0x1C6E, 167 }, + { 0x1C64, 171 }, + { 0x1C73, 175 }, + { 0x1C69, 179 }, + { 0x1C75, 183 }, + { 0x1C77, 187 }, + { 0x1C76, 191 }, + { 0x1C6A, 195 }, + { 0x1C6B, 199 }, + { 0x1C6D, 203 }, + { 0x1C61, 207 }, + { 0x1C60, 211 }, + { 0x1C62, 215 }, + { 0x1C63, 219 }, + { 0x1C5D, 223 }, + { 0x1C70, 227 }, + { 0x1C72, 231 }, + { 0x1C67, 235 }, + { 0x1C5F, 239 }, + { 0x1C74, 243 }, + { 0x1C6C, 247 }, + { 0x1C79, 251 }, + { 0x1C7C, 255 }, + { 0x1C7A, 258 }, + { 0x1C7F, 262 }, + { 0x1C7E, 267 }, + { 0x27C7, 271 }, + { 0x2951, 275 }, + { 0x294D, 282 }, + { 0x294C, 289 }, + { 0x294F, 296 }, + { 0x2195, 303 }, + { 0x21A8, 306 }, + { 0x2B0D, 311 }, + { 0x21F3, 315 }, + { 0x21D5, 319 }, + { 0x297E, 323 }, + { 0x22A5, 326 }, + { 0x27DF, 328 }, + { 0x29BD, 333 }, + { 0x22F0, 337 }, + { 0x2303, 341 }, + { 0x2324, 343 }, + { 0x54BC, 349 }, + { 0x54B9, 352 }, + { 0x54A1, 355 }, + { 0x54B3, 358 }, + { 0x54C6, 361 }, + { 0x5491, 364 }, + { 0x5498, 367 }, + { 0x54A9, 370 }, + { 0x54A8, 373 }, + { 0x54B8, 376 }, + { 0x549D, 379 }, + { 0x54B2, 382 }, + { 0x54A5, 385 }, + { 0x54C3, 388 }, + { 0x54BE, 391 }, + { 0x5494, 394 }, + { 0x54A3, 397 }, + { 0x5497, 400 }, + { 0x54B6, 403 }, + { 0x54AD, 406 }, + { 0x54B5, 409 }, + { 0x5492, 412 }, + { 0x54BB, 415 }, + { 0x549A, 418 }, + { 0x549C, 421 }, + { 0x549E, 424 }, + { 0x54AC, 427 }, + { 0x5490, 430 }, + { 0x54B0, 433 }, + { 0x5495, 436 }, + { 0x54A0, 439 }, + { 0x54B1, 442 }, + { 0x54AF, 445 }, + { 0x54AE, 448 }, + { 0x54AB, 451 }, + { 0x54A2, 454 }, + { 0x54C1, 457 }, + { 0x549B, 460 }, + { 0x54BD, 463 }, + { 0x54A4, 466 }, + { 0x5496, 469 }, + { 0x54A6, 472 }, + { 0x5499, 475 }, + { 0x54BF, 478 }, + { 0x549F, 481 }, + { 0x54B7, 484 }, + { 0x54AA, 487 }, + { 0x54C5, 490 }, + { 0x5493, 493 }, + { 0x54A7, 496 }, + { 0x54B4, 499 }, + { 0x54C0, 502 }, + { 0x54C2, 505 }, + { 0x54BA, 508 }, + { 0x54C4, 511 }, + { 0x500A, 514 }, + { 0x5014, 517 }, + { 0x5002, 520 }, + { 0x5011, 523 }, + { 0x500B, 526 }, + { 0x5008, 529 }, + { 0x5009, 532 }, + { 0x5020, 535 }, + { 0x502A, 538 }, + { 0x5018, 541 }, + { 0x5027, 544 }, + { 0x502E, 547 }, + { 0x5034, 550 }, + { 0x52B8, 553 }, + { 0x52C2, 556 }, + { 0x52B0, 559 }, + { 0x52BF, 562 }, + { 0x52C6, 565 }, + { 0x52CC, 568 }, + { 0x5109, 571 }, + { 0x5112, 574 }, + { 0x5102, 577 }, + { 0x510F, 580 }, + { 0x5116, 583 }, + { 0x5013, 586 }, + { 0x50D3, 589 }, + { 0x50CF, 592 }, + { 0x50D6, 595 }, + { 0x50DA, 598 }, + { 0x50E0, 601 }, + { 0x51E4, 604 }, + { 0x51F0, 607 }, + { 0x51DC, 610 }, + { 0x51EC, 613 }, + { 0x51F4, 616 }, + { 0x5273, 619 }, + { 0x527E, 622 }, + { 0x527B, 625 }, + { 0x5006, 628 }, + { 0x5003, 631 }, + { 0x5000, 634 }, + { 0x5001, 637 }, + { 0x53E2, 640 }, + { 0x53EE, 643 }, + { 0x53F2, 646 }, + { 0x53F8, 649 }, + { 0x5201, 652 }, + { 0x520C, 655 }, + { 0x51FA, 658 }, + { 0x5208, 661 }, + { 0x5210, 664 }, + { 0x51C1, 667 }, + { 0x51CC, 670 }, + { 0x51B9, 673 }, + { 0x51C9, 676 }, + { 0x51D0, 679 }, + { 0x51D6, 682 }, + { 0x50B7, 685 }, + { 0x50C2, 688 }, + { 0x50B0, 691 }, + { 0x50BF, 694 }, + { 0x50C5, 697 }, + { 0x50CB, 700 }, + { 0x5185, 703 }, + { 0x518F, 706 }, + { 0x517F, 709 }, + { 0x518C, 712 }, + { 0x5193, 715 }, + { 0x5012, 718 }, + { 0x500F, 721 }, + { 0x5010, 724 }, + { 0x5041, 727 }, + { 0x503A, 730 }, + { 0x5048, 733 }, + { 0x504C, 736 }, + { 0x5052, 739 }, + { 0x53FE, 742 }, + { 0x540A, 745 }, + { 0x540E, 748 }, + { 0x5414, 751 }, + { 0x53C8, 754 }, + { 0x53D2, 757 }, + { 0x53CF, 760 }, + { 0x53D6, 763 }, + { 0x53DC, 766 }, + { 0x5312, 769 }, + { 0x531C, 772 }, + { 0x530B, 775 }, + { 0x5319, 778 }, + { 0x5320, 781 }, + { 0x5326, 784 }, + { 0x5123, 787 }, + { 0x512E, 790 }, + { 0x511C, 793 }, + { 0x512B, 796 }, + { 0x5132, 799 }, + { 0x500D, 802 }, + { 0x50EC, 805 }, + { 0x50E4, 808 }, + { 0x50F0, 811 }, + { 0x50F6, 814 }, + { 0x50FC, 817 }, + { 0x5282, 820 }, + { 0x528B, 823 }, + { 0x5288, 826 }, + { 0x5015, 829 }, + { 0x545F, 832 }, + { 0x5469, 835 }, + { 0x546D, 838 }, + { 0x5473, 841 }, + { 0x547F, 844 }, + { 0x5483, 847 }, + { 0x5489, 850 }, + { 0x5296, 853 }, + { 0x52A0, 856 }, + { 0x528F, 859 }, + { 0x529D, 862 }, + { 0x52A4, 865 }, + { 0x52AA, 868 }, + { 0x5021, 871 }, + { 0x501E, 874 }, + { 0x501F, 877 }, + { 0x5060, 880 }, + { 0x506A, 883 }, + { 0x5058, 886 }, + { 0x5067, 889 }, + { 0x506E, 892 }, + { 0x5074, 895 }, + { 0x502B, 898 }, + { 0x5029, 901 }, + { 0x501C, 904 }, + { 0x5019, 907 }, + { 0x5016, 910 }, + { 0x5017, 913 }, + { 0x5028, 916 }, + { 0x5025, 919 }, + { 0x5026, 922 }, + { 0x5023, 925 }, + { 0x502F, 928 }, + { 0x5031, 931 }, + { 0x502C, 934 }, + { 0x502D, 937 }, + { 0x5035, 940 }, + { 0x5037, 943 }, + { 0x5032, 946 }, + { 0x5033, 949 }, + { 0x52B9, 952 }, + { 0x52B6, 955 }, + { 0x52B7, 958 }, + { 0x52C3, 961 }, + { 0x52C1, 964 }, + { 0x5363, 967 }, + { 0x536F, 970 }, + { 0x536B, 973 }, + { 0x5372, 976 }, + { 0x5378, 979 }, + { 0x52B4, 982 }, + { 0x52B1, 985 }, + { 0x52AE, 988 }, + { 0x52AF, 991 }, + { 0x52C0, 994 }, + { 0x52BD, 997 }, + { 0x52BE, 1000 }, + { 0x52BB, 1003 }, + { 0x52C7, 1006 }, + { 0x52C9, 1009 }, + { 0x52C4, 1012 }, + { 0x52C5, 1015 }, + { 0x52CD, 1018 }, + { 0x52CF, 1021 }, + { 0x52CA, 1024 }, + { 0x52CB, 1027 }, + { 0x510A, 1030 }, + { 0x5107, 1033 }, + { 0x5108, 1036 }, + { 0x513F, 1039 }, + { 0x5149, 1042 }, + { 0x5138, 1045 }, + { 0x5146, 1048 }, + { 0x514D, 1051 }, + { 0x5113, 1054 }, + { 0x5111, 1057 }, + { 0x5105, 1060 }, + { 0x5103, 1063 }, + { 0x5100, 1066 }, + { 0x5101, 1069 }, + { 0x5110, 1072 }, + { 0x510D, 1075 }, + { 0x510E, 1078 }, + { 0x510C, 1081 }, + { 0x5117, 1084 }, + { 0x5119, 1087 }, + { 0x5114, 1090 }, + { 0x5115, 1093 }, + { 0x50D4, 1096 }, + { 0x50D1, 1099 }, + { 0x50D2, 1102 }, + { 0x50D0, 1105 }, + { 0x50CD, 1108 }, + { 0x50CE, 1111 }, + { 0x50D7, 1114 }, + { 0x50D5, 1117 }, + { 0x50DB, 1120 }, + { 0x50DD, 1123 }, + { 0x50D8, 1126 }, + { 0x50D9, 1129 }, + { 0x50E1, 1132 }, + { 0x50DE, 1135 }, + { 0x50DF, 1138 }, + { 0x51E5, 1141 }, + { 0x51E2, 1144 }, + { 0x51E3, 1147 }, + { 0x51F1, 1150 }, + { 0x51EE, 1153 }, + { 0x51EF, 1156 }, + { 0x521C, 1159 }, + { 0x5228, 1162 }, + { 0x5216, 1165 }, + { 0x5224, 1168 }, + { 0x522C, 1171 }, + { 0x51E0, 1174 }, + { 0x51DD, 1177 }, + { 0x51DA, 1180 }, + { 0x51DB, 1183 }, + { 0x51ED, 1186 }, + { 0x51EA, 1189 }, + { 0x51EB, 1192 }, + { 0x51E8, 1195 }, + { 0x51F5, 1198 }, + { 0x51F7, 1201 }, + { 0x51F2, 1204 }, + { 0x51F3, 1207 }, + { 0x5274, 1210 }, + { 0x5271, 1213 }, + { 0x5272, 1216 }, + { 0x527F, 1219 }, + { 0x527D, 1222 }, + { 0x5270, 1225 }, + { 0x526E, 1228 }, + { 0x51A0, 1231 }, + { 0x51A9, 1234 }, + { 0x5199, 1237 }, + { 0x51A6, 1240 }, + { 0x51AD, 1243 }, + { 0x51B3, 1246 }, + { 0x509A, 1249 }, + { 0x5093, 1252 }, + { 0x50A1, 1255 }, + { 0x50A5, 1258 }, + { 0x50AA, 1261 }, + { 0x5172, 1264 }, + { 0x517A, 1267 }, + { 0x516A, 1270 }, + { 0x527C, 1273 }, + { 0x5279, 1276 }, + { 0x527A, 1279 }, + { 0x5277, 1282 }, + { 0x5250, 1285 }, + { 0x525B, 1288 }, + { 0x5248, 1291 }, + { 0x5258, 1294 }, + { 0x5007, 1297 }, + { 0x5004, 1300 }, + { 0x5005, 1303 }, + { 0x53E6, 1306 }, + { 0x53E3, 1309 }, + { 0x53E0, 1312 }, + { 0x53E1, 1315 }, + { 0x541A, 1318 }, + { 0x5425, 1321 }, + { 0x5429, 1324 }, + { 0x542F, 1327 }, + { 0x53EF, 1330 }, + { 0x53EC, 1333 }, + { 0x53ED, 1336 }, + { 0x53EA, 1339 }, + { 0x53F3, 1342 }, + { 0x53F5, 1345 }, + { 0x53F0, 1348 }, + { 0x53F1, 1351 }, + { 0x53F9, 1354 }, + { 0x53FB, 1357 }, + { 0x53F6, 1360 }, + { 0x53F7, 1363 }, + { 0x5202, 1366 }, + { 0x51FF, 1369 }, + { 0x5200, 1372 }, + { 0x520D, 1375 }, + { 0x520A, 1378 }, + { 0x520B, 1381 }, + { 0x51FD, 1384 }, + { 0x51FB, 1387 }, + { 0x51F8, 1390 }, + { 0x51F9, 1393 }, + { 0x5209, 1396 }, + { 0x5206, 1399 }, + { 0x5207, 1402 }, + { 0x5204, 1405 }, + { 0x5211, 1408 }, + { 0x5213, 1411 }, + { 0x520E, 1414 }, + { 0x520F, 1417 }, + { 0x51C2, 1420 }, + { 0x51BF, 1423 }, + { 0x51C0, 1426 }, + { 0x51CD, 1429 }, + { 0x51CB, 1432 }, + { 0x51BD, 1435 }, + { 0x51BA, 1438 }, + { 0x51B7, 1441 }, + { 0x51B8, 1444 }, + { 0x51CA, 1447 }, + { 0x51C7, 1450 }, + { 0x51C8, 1453 }, + { 0x51C5, 1456 }, + { 0x51D1, 1459 }, + { 0x51D3, 1462 }, + { 0x51CE, 1465 }, + { 0x51CF, 1468 }, + { 0x51D7, 1471 }, + { 0x51D9, 1474 }, + { 0x51D4, 1477 }, + { 0x51D5, 1480 }, + { 0x50B8, 1483 }, + { 0x50B5, 1486 }, + { 0x50B6, 1489 }, + { 0x50C1, 1492 }, + { 0x5234, 1495 }, + { 0x523E, 1498 }, + { 0x523B, 1501 }, + { 0x5242, 1504 }, + { 0x50B3, 1507 }, + { 0x50B1, 1510 }, + { 0x50AE, 1513 }, + { 0x50AF, 1516 }, + { 0x50C0, 1519 }, + { 0x50BD, 1522 }, + { 0x50BE, 1525 }, + { 0x50BB, 1528 }, + { 0x50C6, 1531 }, + { 0x50C8, 1534 }, + { 0x50C3, 1537 }, + { 0x50C4, 1540 }, + { 0x50CC, 1543 }, + { 0x50C9, 1546 }, + { 0x50CA, 1549 }, + { 0x5186, 1552 }, + { 0x5184, 1555 }, + { 0x507F, 1558 }, + { 0x5078, 1561 }, + { 0x5083, 1564 }, + { 0x5087, 1567 }, + { 0x508D, 1570 }, + { 0x5159, 1573 }, + { 0x5160, 1576 }, + { 0x5153, 1579 }, + { 0x515D, 1582 }, + { 0x5164, 1585 }, + { 0x5190, 1588 }, + { 0x518E, 1591 }, + { 0x5262, 1594 }, + { 0x526C, 1597 }, + { 0x5269, 1600 }, + { 0x5182, 1603 }, + { 0x5180, 1606 }, + { 0x517D, 1609 }, + { 0x517E, 1612 }, + { 0x5433, 1615 }, + { 0x543D, 1618 }, + { 0x5440, 1621 }, + { 0x5446, 1624 }, + { 0x518D, 1627 }, + { 0x518A, 1630 }, + { 0x518B, 1633 }, + { 0x5396, 1636 }, + { 0x539D, 1639 }, + { 0x5399, 1642 }, + { 0x53A1, 1645 }, + { 0x53A7, 1648 }, + { 0x5188, 1651 }, + { 0x5194, 1654 }, + { 0x5196, 1657 }, + { 0x5191, 1660 }, + { 0x5192, 1663 }, + { 0x544C, 1666 }, + { 0x5457, 1669 }, + { 0x545B, 1672 }, + { 0x52F6, 1675 }, + { 0x52FD, 1678 }, + { 0x52EF, 1681 }, + { 0x52FF, 1684 }, + { 0x5305, 1687 }, + { 0x5042, 1690 }, + { 0x503F, 1693 }, + { 0x5040, 1696 }, + { 0x503D, 1699 }, + { 0x503B, 1702 }, + { 0x5038, 1705 }, + { 0x5039, 1708 }, + { 0x5049, 1711 }, + { 0x5046, 1714 }, + { 0x5047, 1717 }, + { 0x5044, 1720 }, + { 0x504D, 1723 }, + { 0x504F, 1726 }, + { 0x504A, 1729 }, + { 0x504B, 1732 }, + { 0x5053, 1735 }, + { 0x5055, 1738 }, + { 0x5050, 1741 }, + { 0x5051, 1744 }, + { 0x5402, 1747 }, + { 0x53FF, 1750 }, + { 0x53FC, 1753 }, + { 0x53FD, 1756 }, + { 0x540B, 1759 }, + { 0x5408, 1762 }, + { 0x5409, 1765 }, + { 0x5406, 1768 }, + { 0x540F, 1771 }, + { 0x5411, 1774 }, + { 0x540C, 1777 }, + { 0x540D, 1780 }, + { 0x5415, 1783 }, + { 0x5417, 1786 }, + { 0x5412, 1789 }, + { 0x5413, 1792 }, + { 0x53C9, 1795 }, + { 0x53C6, 1798 }, + { 0x53C7, 1801 }, + { 0x53D3, 1804 }, + { 0x53D1, 1807 }, + { 0x53D0, 1810 }, + { 0x53CD, 1813 }, + { 0x53CE, 1816 }, + { 0x537D, 1819 }, + { 0x5386, 1822 }, + { 0x5382, 1825 }, + { 0x538A, 1828 }, + { 0x5390, 1831 }, + { 0x53CB, 1834 }, + { 0x53D7, 1837 }, + { 0x53D9, 1840 }, + { 0x53D4, 1843 }, + { 0x53D5, 1846 }, + { 0x53DD, 1849 }, + { 0x53DF, 1852 }, + { 0x53DA, 1855 }, + { 0x53DB, 1858 }, + { 0x5313, 1861 }, + { 0x5310, 1864 }, + { 0x5311, 1867 }, + { 0x531D, 1870 }, + { 0x531B, 1873 }, + { 0x53AD, 1876 }, + { 0x53B8, 1879 }, + { 0x53B4, 1882 }, + { 0x53BC, 1885 }, + { 0x53C2, 1888 }, + { 0x530E, 1891 }, + { 0x530C, 1894 }, + { 0x5309, 1897 }, + { 0x530A, 1900 }, + { 0x531A, 1903 }, + { 0x5317, 1906 }, + { 0x5318, 1909 }, + { 0x5333, 1912 }, + { 0x533A, 1915 }, + { 0x532C, 1918 }, + { 0x5337, 1921 }, + { 0x533E, 1924 }, + { 0x5342, 1927 }, + { 0x5315, 1930 }, + { 0x5321, 1933 }, + { 0x5323, 1936 }, + { 0x531E, 1939 }, + { 0x531F, 1942 }, + { 0x5327, 1945 }, + { 0x5329, 1948 }, + { 0x5324, 1951 }, + { 0x5325, 1954 }, + { 0x5124, 1957 }, + { 0x5121, 1960 }, + { 0x5122, 1963 }, + { 0x512F, 1966 }, + { 0x512D, 1969 }, + { 0x511F, 1972 }, + { 0x511D, 1975 }, + { 0x511A, 1978 }, + { 0x511B, 1981 }, + { 0x512C, 1984 }, + { 0x5129, 1987 }, + { 0x512A, 1990 }, + { 0x5127, 1993 }, + { 0x5133, 1996 }, + { 0x5135, 1999 }, + { 0x5130, 2002 }, + { 0x5131, 2005 }, + { 0x500E, 2008 }, + { 0x500C, 2011 }, + { 0x50ED, 2014 }, + { 0x50EA, 2017 }, + { 0x50EB, 2020 }, + { 0x50F3, 2023 }, + { 0x50F2, 2026 }, + { 0x50E8, 2029 }, + { 0x50E5, 2032 }, + { 0x50E2, 2035 }, + { 0x50E3, 2038 }, + { 0x50F1, 2041 }, + { 0x50EE, 2044 }, + { 0x50EF, 2047 }, + { 0x50F7, 2050 }, + { 0x50F9, 2053 }, + { 0x50F4, 2056 }, + { 0x50F5, 2059 }, + { 0x50FD, 2062 }, + { 0x50FF, 2065 }, + { 0x50FA, 2068 }, + { 0x50FB, 2071 }, + { 0x5283, 2074 }, + { 0x5280, 2077 }, + { 0x5281, 2080 }, + { 0x528C, 2083 }, + { 0x528A, 2086 }, + { 0x5289, 2089 }, + { 0x5287, 2092 }, + { 0x5285, 2095 }, + { 0x5463, 2098 }, + { 0x5460, 2101 }, + { 0x545D, 2104 }, + { 0x545E, 2107 }, + { 0x546A, 2110 }, + { 0x5467, 2113 }, + { 0x5468, 2116 }, + { 0x5466, 2119 }, + { 0x546E, 2122 }, + { 0x5470, 2125 }, + { 0x546B, 2128 }, + { 0x546C, 2131 }, + { 0x5477, 2134 }, + { 0x5474, 2137 }, + { 0x5471, 2140 }, + { 0x5472, 2143 }, + { 0x5480, 2146 }, + { 0x547D, 2149 }, + { 0x547E, 2152 }, + { 0x547B, 2155 }, + { 0x5484, 2158 }, + { 0x5486, 2161 }, + { 0x5481, 2164 }, + { 0x5482, 2167 }, + { 0x548A, 2170 }, + { 0x548C, 2173 }, + { 0x5487, 2176 }, + { 0x5488, 2179 }, + { 0x5297, 2182 }, + { 0x5294, 2185 }, + { 0x5295, 2188 }, + { 0x52A1, 2191 }, + { 0x529F, 2194 }, + { 0x5348, 2197 }, + { 0x5353, 2200 }, + { 0x534F, 2203 }, + { 0x5357, 2206 }, + { 0x535D, 2209 }, + { 0x5292, 2212 }, + { 0x5290, 2215 }, + { 0x528D, 2218 }, + { 0x528E, 2221 }, + { 0x529E, 2224 }, + { 0x529B, 2227 }, + { 0x529C, 2230 }, + { 0x5299, 2233 }, + { 0x52A5, 2236 }, + { 0x52A7, 2239 }, + { 0x52A2, 2242 }, + { 0x52A3, 2245 }, + { 0x52AB, 2248 }, + { 0x52AD, 2251 }, + { 0x52A8, 2254 }, + { 0x52A9, 2257 }, + { 0x52DA, 2260 }, + { 0x52E0, 2263 }, + { 0x52D2, 2266 }, + { 0x52DD, 2269 }, + { 0x52E3, 2272 }, + { 0x52E9, 2275 }, + { 0x5061, 2278 }, + { 0x505E, 2281 }, + { 0x505F, 2284 }, + { 0x506B, 2287 }, + { 0x5069, 2290 }, + { 0x505C, 2293 }, + { 0x5059, 2296 }, + { 0x5056, 2299 }, + { 0x5057, 2302 }, + { 0x5068, 2305 }, + { 0x5065, 2308 }, + { 0x5066, 2311 }, + { 0x5063, 2314 }, + { 0x506F, 2317 }, + { 0x5071, 2320 }, + { 0x506C, 2323 }, + { 0x506D, 2326 }, + { 0x5075, 2329 }, + { 0x5072, 2332 }, + { 0x5073, 2335 }, + { 0x501D, 2338 }, + { 0x501A, 2341 }, + { 0x501B, 2344 }, + { 0x5024, 2347 }, + { 0x5022, 2350 }, + { 0x5030, 2353 }, + { 0x5036, 2356 }, + { 0x5364, 2359 }, + { 0x5361, 2362 }, + { 0x5362, 2365 }, + { 0x5370, 2368 }, + { 0x536D, 2371 }, + { 0x536E, 2374 }, + { 0x536C, 2377 }, + { 0x5369, 2380 }, + { 0x536A, 2383 }, + { 0x5367, 2386 }, + { 0x5373, 2389 }, + { 0x5375, 2392 }, + { 0x5371, 2395 }, + { 0x5379, 2398 }, + { 0x537B, 2401 }, + { 0x5376, 2404 }, + { 0x5377, 2407 }, + { 0x52B5, 2410 }, + { 0x52B2, 2413 }, + { 0x52B3, 2416 }, + { 0x52BC, 2419 }, + { 0x52BA, 2422 }, + { 0x52C8, 2425 }, + { 0x52CE, 2428 }, + { 0x5140, 2431 }, + { 0x513D, 2434 }, + { 0x513E, 2437 }, + { 0x514A, 2440 }, + { 0x5148, 2443 }, + { 0x513B, 2446 }, + { 0x5139, 2449 }, + { 0x5136, 2452 }, + { 0x5137, 2455 }, + { 0x5147, 2458 }, + { 0x5144, 2461 }, + { 0x5145, 2464 }, + { 0x5142, 2467 }, + { 0x514E, 2470 }, + { 0x5150, 2473 }, + { 0x514B, 2476 }, + { 0x514C, 2479 }, + { 0x5106, 2482 }, + { 0x5104, 2485 }, + { 0x510B, 2488 }, + { 0x5118, 2491 }, + { 0x50DC, 2494 }, + { 0x521D, 2497 }, + { 0x521A, 2500 }, + { 0x521B, 2503 }, + { 0x5229, 2506 }, + { 0x5226, 2509 }, + { 0x5227, 2512 }, + { 0x5218, 2515 }, + { 0x5214, 2518 }, + { 0x5215, 2521 }, + { 0x5225, 2524 }, + { 0x5222, 2527 }, + { 0x5223, 2530 }, + { 0x5220, 2533 }, + { 0x522D, 2536 }, + { 0x522F, 2539 }, + { 0x522A, 2542 }, + { 0x522B, 2545 }, + { 0x51E1, 2548 }, + { 0x51DE, 2551 }, + { 0x51DF, 2554 }, + { 0x51E9, 2557 }, + { 0x51E6, 2560 }, + { 0x51E7, 2563 }, + { 0x51F6, 2566 }, + { 0x526F, 2569 }, + { 0x51A1, 2572 }, + { 0x519E, 2575 }, + { 0x519F, 2578 }, + { 0x51AA, 2581 }, + { 0x51A8, 2584 }, + { 0x519C, 2587 }, + { 0x519A, 2590 }, + { 0x5197, 2593 }, + { 0x5198, 2596 }, + { 0x51A7, 2599 }, + { 0x51A5, 2602 }, + { 0x51A3, 2605 }, + { 0x51AE, 2608 }, + { 0x51B0, 2611 }, + { 0x51AB, 2614 }, + { 0x51AC, 2617 }, + { 0x51B4, 2620 }, + { 0x51B6, 2623 }, + { 0x51B1, 2626 }, + { 0x51B2, 2629 }, + { 0x509B, 2632 }, + { 0x5098, 2635 }, + { 0x5099, 2638 }, + { 0x5096, 2641 }, + { 0x5094, 2644 }, + { 0x5091, 2647 }, + { 0x5092, 2650 }, + { 0x50A2, 2653 }, + { 0x509F, 2656 }, + { 0x50A0, 2659 }, + { 0x509D, 2662 }, + { 0x50A6, 2665 }, + { 0x50A8, 2668 }, + { 0x50A3, 2671 }, + { 0x50A4, 2674 }, + { 0x50AB, 2677 }, + { 0x50AD, 2680 }, + { 0x50A9, 2683 }, + { 0x5173, 2686 }, + { 0x5170, 2689 }, + { 0x5171, 2692 }, + { 0x517B, 2695 }, + { 0x5179, 2698 }, + { 0x516E, 2701 }, + { 0x516B, 2704 }, + { 0x5168, 2707 }, + { 0x5169, 2710 }, + { 0x5178, 2713 }, + { 0x5176, 2716 }, + { 0x5177, 2719 }, + { 0x5175, 2722 }, + { 0x517C, 2725 }, + { 0x5278, 2728 }, + { 0x5275, 2731 }, + { 0x5276, 2734 }, + { 0x5251, 2737 }, + { 0x524E, 2740 }, + { 0x524F, 2743 }, + { 0x525C, 2746 }, + { 0x525A, 2749 }, + { 0x524C, 2752 }, + { 0x5249, 2755 }, + { 0x5246, 2758 }, + { 0x5247, 2761 }, + { 0x5259, 2764 }, + { 0x5256, 2767 }, + { 0x5257, 2770 }, + { 0x5254, 2773 }, + { 0x53E7, 2776 }, + { 0x53E4, 2779 }, + { 0x53E5, 2782 }, + { 0x541E, 2785 }, + { 0x541B, 2788 }, + { 0x5418, 2791 }, + { 0x5419, 2794 }, + { 0x5426, 2797 }, + { 0x5423, 2800 }, + { 0x5424, 2803 }, + { 0x5421, 2806 }, + { 0x542A, 2809 }, + { 0x542C, 2812 }, + { 0x5427, 2815 }, + { 0x5428, 2818 }, + { 0x5430, 2821 }, + { 0x542D, 2824 }, + { 0x542E, 2827 }, + { 0x53EB, 2830 }, + { 0x53E8, 2833 }, + { 0x53E9, 2836 }, + { 0x53F4, 2839 }, + { 0x53FA, 2842 }, + { 0x51FE, 2845 }, + { 0x51FC, 2848 }, + { 0x5205, 2851 }, + { 0x5203, 2854 }, + { 0x5212, 2857 }, + { 0x51BE, 2860 }, + { 0x51BB, 2863 }, + { 0x51BC, 2866 }, + { 0x51C6, 2869 }, + { 0x51C3, 2872 }, + { 0x51C4, 2875 }, + { 0x51D2, 2878 }, + { 0x51D8, 2881 }, + { 0x5235, 2884 }, + { 0x5232, 2887 }, + { 0x5233, 2890 }, + { 0x523F, 2893 }, + { 0x523D, 2896 }, + { 0x5231, 2899 }, + { 0x523C, 2902 }, + { 0x5239, 2905 }, + { 0x523A, 2908 }, + { 0x5237, 2911 }, + { 0x5243, 2914 }, + { 0x5245, 2917 }, + { 0x5240, 2920 }, + { 0x5241, 2923 }, + { 0x50B4, 2926 }, + { 0x50B2, 2929 }, + { 0x50BC, 2932 }, + { 0x50B9, 2935 }, + { 0x50BA, 2938 }, + { 0x50C7, 2941 }, + { 0x5080, 2944 }, + { 0x507D, 2947 }, + { 0x507E, 2950 }, + { 0x507B, 2953 }, + { 0x5079, 2956 }, + { 0x5076, 2959 }, + { 0x5077, 2962 }, + { 0x5084, 2965 }, + { 0x5081, 2968 }, + { 0x5082, 2971 }, + { 0x5088, 2974 }, + { 0x508A, 2977 }, + { 0x5085, 2980 }, + { 0x5086, 2983 }, + { 0x508E, 2986 }, + { 0x5090, 2989 }, + { 0x508B, 2992 }, + { 0x508C, 2995 }, + { 0x515A, 2998 }, + { 0x5157, 3001 }, + { 0x5158, 3004 }, + { 0x5161, 3007 }, + { 0x515F, 3010 }, + { 0x5156, 3013 }, + { 0x5154, 3016 }, + { 0x5151, 3019 }, + { 0x5152, 3022 }, + { 0x515E, 3025 }, + { 0x515B, 3028 }, + { 0x515C, 3031 }, + { 0x5165, 3034 }, + { 0x5167, 3037 }, + { 0x5162, 3040 }, + { 0x5163, 3043 }, + { 0x5263, 3046 }, + { 0x5260, 3049 }, + { 0x5261, 3052 }, + { 0x526D, 3055 }, + { 0x526B, 3058 }, + { 0x525E, 3061 }, + { 0x526A, 3064 }, + { 0x5267, 3067 }, + { 0x5268, 3070 }, + { 0x5266, 3073 }, + { 0x5183, 3076 }, + { 0x5181, 3079 }, + { 0x5437, 3082 }, + { 0x5434, 3085 }, + { 0x5431, 3088 }, + { 0x5432, 3091 }, + { 0x543E, 3094 }, + { 0x543B, 3097 }, + { 0x543C, 3100 }, + { 0x543A, 3103 }, + { 0x5441, 3106 }, + { 0x5443, 3109 }, + { 0x543F, 3112 }, + { 0x5447, 3115 }, + { 0x5449, 3118 }, + { 0x5444, 3121 }, + { 0x5445, 3124 }, + { 0x5397, 3127 }, + { 0x5394, 3130 }, + { 0x5395, 3133 }, + { 0x539E, 3136 }, + { 0x539B, 3139 }, + { 0x539C, 3142 }, + { 0x539A, 3145 }, + { 0x5398, 3148 }, + { 0x53A2, 3151 }, + { 0x53A4, 3154 }, + { 0x539F, 3157 }, + { 0x53A0, 3160 }, + { 0x53A8, 3163 }, + { 0x53AA, 3166 }, + { 0x53A5, 3169 }, + { 0x53A6, 3172 }, + { 0x5189, 3175 }, + { 0x5187, 3178 }, + { 0x5195, 3181 }, + { 0x5450, 3184 }, + { 0x544D, 3187 }, + { 0x544A, 3190 }, + { 0x544B, 3193 }, + { 0x5458, 3196 }, + { 0x5455, 3199 }, + { 0x5456, 3202 }, + { 0x5453, 3205 }, + { 0x545C, 3208 }, + { 0x5459, 3211 }, + { 0x545A, 3214 }, + { 0x52F7, 3217 }, + { 0x52F4, 3220 }, + { 0x52F5, 3223 }, + { 0x52FC, 3226 }, + { 0x52F2, 3229 }, + { 0x52F0, 3232 }, + { 0x52ED, 3235 }, + { 0x52EE, 3238 }, + { 0x52FB, 3241 }, + { 0x52FA, 3244 }, + { 0x52F9, 3247 }, + { 0x5300, 3250 }, + { 0x5302, 3253 }, + { 0x52FE, 3256 }, + { 0x5306, 3259 }, + { 0x5308, 3262 }, + { 0x5303, 3265 }, + { 0x5304, 3268 }, + { 0x503E, 3271 }, + { 0x503C, 3274 }, + { 0x5045, 3277 }, + { 0x5043, 3280 }, + { 0x504E, 3283 }, + { 0x5054, 3286 }, + { 0x5403, 3289 }, + { 0x5400, 3292 }, + { 0x5401, 3295 }, + { 0x5407, 3298 }, + { 0x5404, 3301 }, + { 0x5405, 3304 }, + { 0x5410, 3307 }, + { 0x5416, 3310 }, + { 0x537C, 3313 }, + { 0x5387, 3316 }, + { 0x5384, 3319 }, + { 0x5385, 3322 }, + { 0x5383, 3325 }, + { 0x5380, 3328 }, + { 0x5381, 3331 }, + { 0x537F, 3334 }, + { 0x538B, 3337 }, + { 0x538D, 3340 }, + { 0x5388, 3343 }, + { 0x5389, 3346 }, + { 0x5391, 3349 }, + { 0x5393, 3352 }, + { 0x538E, 3355 }, + { 0x538F, 3358 }, + { 0x53CC, 3361 }, + { 0x53CA, 3364 }, + { 0x53D8, 3367 }, + { 0x53DE, 3370 }, + { 0x53AE, 3373 }, + { 0x53AB, 3376 }, + { 0x53AC, 3379 }, + { 0x53B9, 3382 }, + { 0x53B6, 3385 }, + { 0x53B7, 3388 }, + { 0x53B5, 3391 }, + { 0x53B2, 3394 }, + { 0x53B3, 3397 }, + { 0x53B0, 3400 }, + { 0x53BD, 3403 }, + { 0x53BF, 3406 }, + { 0x53BA, 3409 }, + { 0x53BB, 3412 }, + { 0x53C3, 3415 }, + { 0x53C5, 3418 }, + { 0x53C0, 3421 }, + { 0x53C1, 3424 }, + { 0x530F, 3427 }, + { 0x530D, 3430 }, + { 0x5334, 3433 }, + { 0x5331, 3436 }, + { 0x5332, 3439 }, + { 0x533B, 3442 }, + { 0x5339, 3445 }, + { 0x532F, 3448 }, + { 0x532D, 3451 }, + { 0x532A, 3454 }, + { 0x532B, 3457 }, + { 0x5338, 3460 }, + { 0x5335, 3463 }, + { 0x5336, 3466 }, + { 0x533F, 3469 }, + { 0x533C, 3472 }, + { 0x533D, 3475 }, + { 0x5343, 3478 }, + { 0x5345, 3481 }, + { 0x5340, 3484 }, + { 0x5341, 3487 }, + { 0x5316, 3490 }, + { 0x5314, 3493 }, + { 0x5322, 3496 }, + { 0x5328, 3499 }, + { 0x5120, 3502 }, + { 0x511E, 3505 }, + { 0x5128, 3508 }, + { 0x5125, 3511 }, + { 0x5126, 3514 }, + { 0x5134, 3517 }, + { 0x50E9, 3520 }, + { 0x50E6, 3523 }, + { 0x50E7, 3526 }, + { 0x50F8, 3529 }, + { 0x50FE, 3532 }, + { 0x5286, 3535 }, + { 0x5284, 3538 }, + { 0x5464, 3541 }, + { 0x5461, 3544 }, + { 0x5462, 3547 }, + { 0x5465, 3550 }, + { 0x546F, 3553 }, + { 0x5478, 3556 }, + { 0x5475, 3559 }, + { 0x5476, 3562 }, + { 0x547C, 3565 }, + { 0x5479, 3568 }, + { 0x547A, 3571 }, + { 0x5485, 3574 }, + { 0x548B, 3577 }, + { 0x5349, 3580 }, + { 0x5346, 3583 }, + { 0x5347, 3586 }, + { 0x5354, 3589 }, + { 0x5351, 3592 }, + { 0x5352, 3595 }, + { 0x5350, 3598 }, + { 0x534D, 3601 }, + { 0x534E, 3604 }, + { 0x534B, 3607 }, + { 0x5358, 3610 }, + { 0x535A, 3613 }, + { 0x5355, 3616 }, + { 0x5356, 3619 }, + { 0x535E, 3622 }, + { 0x5360, 3625 }, + { 0x535B, 3628 }, + { 0x535C, 3631 }, + { 0x5293, 3634 }, + { 0x5291, 3637 }, + { 0x529A, 3640 }, + { 0x5298, 3643 }, + { 0x52A6, 3646 }, + { 0x52AC, 3649 }, + { 0x52DB, 3652 }, + { 0x52D8, 3655 }, + { 0x52D9, 3658 }, + { 0x52E1, 3661 }, + { 0x52DF, 3664 }, + { 0x52D6, 3667 }, + { 0x52D3, 3670 }, + { 0x52D0, 3673 }, + { 0x52D1, 3676 }, + { 0x52DE, 3679 }, + { 0x52DC, 3682 }, + { 0x52E4, 3685 }, + { 0x52E6, 3688 }, + { 0x52E2, 3691 }, + { 0x52EA, 3694 }, + { 0x52EC, 3697 }, + { 0x52E7, 3700 }, + { 0x52E8, 3703 }, + { 0x505D, 3706 }, + { 0x505A, 3709 }, + { 0x505B, 3712 }, + { 0x5064, 3715 }, + { 0x5062, 3718 }, + { 0x5070, 3721 }, + { 0x5368, 3724 }, + { 0x5365, 3727 }, + { 0x5366, 3730 }, + { 0x5374, 3733 }, + { 0x537A, 3736 }, + { 0x513C, 3739 }, + { 0x513A, 3742 }, + { 0x5143, 3745 }, + { 0x5141, 3748 }, + { 0x514F, 3751 }, + { 0x5219, 3754 }, + { 0x5217, 3757 }, + { 0x5221, 3760 }, + { 0x521E, 3763 }, + { 0x521F, 3766 }, + { 0x522E, 3769 }, + { 0x519D, 3772 }, + { 0x519B, 3775 }, + { 0x51A4, 3778 }, + { 0x51A2, 3781 }, + { 0x51AF, 3784 }, + { 0x51B5, 3787 }, + { 0x5097, 3790 }, + { 0x5095, 3793 }, + { 0x509E, 3796 }, + { 0x509C, 3799 }, + { 0x50A7, 3802 }, + { 0x50AC, 3805 }, + { 0x516F, 3808 }, + { 0x516C, 3811 }, + { 0x516D, 3814 }, + { 0x5174, 3817 }, + { 0x524D, 3820 }, + { 0x524A, 3823 }, + { 0x524B, 3826 }, + { 0x5255, 3829 }, + { 0x5252, 3832 }, + { 0x5253, 3835 }, + { 0x541F, 3838 }, + { 0x541C, 3841 }, + { 0x541D, 3844 }, + { 0x5422, 3847 }, + { 0x5420, 3850 }, + { 0x542B, 3853 }, + { 0x5230, 3856 }, + { 0x5238, 3859 }, + { 0x5236, 3862 }, + { 0x5244, 3865 }, + { 0x507C, 3868 }, + { 0x507A, 3871 }, + { 0x5089, 3874 }, + { 0x508F, 3877 }, + { 0x5155, 3880 }, + { 0x5166, 3883 }, + { 0x525F, 3886 }, + { 0x525D, 3889 }, + { 0x5264, 3892 }, + { 0x5265, 3895 }, + { 0x5438, 3898 }, + { 0x5435, 3901 }, + { 0x5436, 3904 }, + { 0x5439, 3907 }, + { 0x5442, 3910 }, + { 0x5448, 3913 }, + { 0x53A3, 3916 }, + { 0x53A9, 3919 }, + { 0x5451, 3922 }, + { 0x544E, 3925 }, + { 0x544F, 3928 }, + { 0x5454, 3931 }, + { 0x5452, 3934 }, + { 0x52F3, 3937 }, + { 0x52F1, 3940 }, + { 0x52F8, 3943 }, + { 0x5301, 3946 }, + { 0x5307, 3949 }, + { 0x537E, 3952 }, + { 0x538C, 3955 }, + { 0x5392, 3958 }, + { 0x53B1, 3961 }, + { 0x53AF, 3964 }, + { 0x53BE, 3967 }, + { 0x53C4, 3970 }, + { 0x5330, 3973 }, + { 0x532E, 3976 }, + { 0x5344, 3979 }, + { 0x534C, 3982 }, + { 0x534A, 3985 }, + { 0x5359, 3988 }, + { 0x535F, 3991 }, + { 0x52D7, 3994 }, + { 0x52D4, 3997 }, + { 0x52D5, 4000 }, + { 0x52E5, 4003 }, + { 0x52EB, 4006 }, + { 0x262C, 4009 }, + { 0x224C, 4011 }, + { 0x232E, 4014 }, + { 0x27D1, 4016 }, + { 0x235D, 4019 }, + { 0x2355, 4025 }, + { 0x2351, 4031 }, + { 0x2361, 4037 }, + { 0x2372, 4043 }, + { 0x2352, 4049 }, + { 0x236B, 4054 }, + { 0x2362, 4059 }, + { 0x235B, 4064 }, + { 0x2364, 4069 }, + { 0x2374, 4074 }, + { 0x2366, 4078 }, + { 0x234E, 4084 }, + { 0x234A, 4090 }, + { 0x2371, 4096 }, + { 0x2373, 4102 }, + { 0x2378, 4106 }, + { 0x2367, 4111 }, + { 0x2395, 4117 }, + { 0x2353, 4121 }, + { 0x2354, 4127 }, + { 0x233B, 4132 }, + { 0x236F, 4137 }, + { 0x234C, 4143 }, + { 0x2360, 4149 }, + { 0x234D, 4154 }, + { 0x2338, 4159 }, + { 0x2341, 4164 }, + { 0x233C, 4169 }, + { 0x2339, 4174 }, + { 0x233A, 4179 }, + { 0x2350, 4184 }, + { 0x2370, 4190 }, + { 0x2342, 4195 }, + { 0x2357, 4200 }, + { 0x2347, 4206 }, + { 0x2343, 4212 }, + { 0x2348, 4217 }, + { 0x2344, 4223 }, + { 0x2363, 4228 }, + { 0x237A, 4233 }, + { 0x2376, 4237 }, + { 0x236A, 4242 }, + { 0x234B, 4247 }, + { 0x2359, 4252 }, + { 0x2375, 4257 }, + { 0x2379, 4261 }, + { 0x235E, 4266 }, + { 0x2358, 4271 }, + { 0x233F, 4276 }, + { 0x236D, 4281 }, + { 0x2368, 4286 }, + { 0x236C, 4291 }, + { 0x233E, 4295 }, + { 0x235F, 4300 }, + { 0x233D, 4305 }, + { 0x235C, 4310 }, + { 0x2349, 4315 }, + { 0x2365, 4320 }, + { 0x2336, 4325 }, + { 0x2337, 4329 }, + { 0x235A, 4334 }, + { 0x2377, 4339 }, + { 0x234F, 4344 }, + { 0x2340, 4349 }, + { 0x2356, 4354 }, + { 0x2345, 4359 }, + { 0x236E, 4364 }, + { 0x2346, 4369 }, + { 0x2369, 4374 }, + { 0x2312, 4379 }, + { 0x2136, 4380 }, + { 0x29F9, 4382 }, + { 0x29F8, 4385 }, + { 0x2540, 4387 }, + { 0x2526, 4395 }, + { 0x251A, 4403 }, + { 0x251E, 4410 }, + { 0x2516, 4418 }, + { 0x2538, 4425 }, + { 0x2548, 4432 }, + { 0x252A, 4440 }, + { 0x2519, 4448 }, + { 0x2522, 4455 }, + { 0x2515, 4463 }, + { 0x2537, 4470 }, + { 0x255C, 4477 }, + { 0x2559, 4484 }, + { 0x2568, 4491 }, + { 0x255B, 4498 }, + { 0x2558, 4505 }, + { 0x2567, 4512 }, + { 0x2541, 4519 }, + { 0x2527, 4527 }, + { 0x2512, 4535 }, + { 0x251F, 4542 }, + { 0x250E, 4550 }, + { 0x2530, 4557 }, + { 0x2547, 4564 }, + { 0x2529, 4572 }, + { 0x2511, 4580 }, + { 0x2521, 4587 }, + { 0x250D, 4595 }, + { 0x252F, 4602 }, + { 0x2556, 4609 }, + { 0x2553, 4616 }, + { 0x2565, 4623 }, + { 0x2555, 4630 }, + { 0x2552, 4637 }, + { 0x2564, 4644 }, + { 0x2543, 4651 }, + { 0x2545, 4660 }, + { 0x2535, 4669 }, + { 0x252D, 4677 }, + { 0x253D, 4685 }, + { 0x253A, 4693 }, + { 0x2532, 4701 }, + { 0x254A, 4709 }, + { 0x2579, 4717 }, + { 0x251B, 4721 }, + { 0x257F, 4727 }, + { 0x2517, 4734 }, + { 0x253B, 4740 }, + { 0x257B, 4746 }, + { 0x2513, 4750 }, + { 0x250F, 4756 }, + { 0x2533, 4762 }, + { 0x2578, 4768 }, + { 0x257E, 4772 }, + { 0x257A, 4779 }, + { 0x254F, 4783 }, + { 0x254D, 4789 }, + { 0x2507, 4795 }, + { 0x2505, 4801 }, + { 0x2503, 4807 }, + { 0x252B, 4811 }, + { 0x2523, 4817 }, + { 0x254B, 4823 }, + { 0x250B, 4829 }, + { 0x2509, 4835 }, + { 0x2501, 4841 }, + { 0x2575, 4845 }, + { 0x2518, 4849 }, + { 0x257D, 4855 }, + { 0x2514, 4862 }, + { 0x2534, 4868 }, + { 0x256F, 4874 }, + { 0x2570, 4881 }, + { 0x256E, 4888 }, + { 0x256D, 4895 }, + { 0x2577, 4902 }, + { 0x2510, 4906 }, + { 0x250C, 4912 }, + { 0x252C, 4918 }, + { 0x2574, 4924 }, + { 0x257C, 4928 }, + { 0x2576, 4935 }, + { 0x254E, 4939 }, + { 0x254C, 4945 }, + { 0x2506, 4951 }, + { 0x2504, 4957 }, + { 0x2573, 4963 }, + { 0x2572, 4968 }, + { 0x2571, 4977 }, + { 0x2502, 4986 }, + { 0x2524, 4990 }, + { 0x251C, 4996 }, + { 0x253C, 5002 }, + { 0x250A, 5008 }, + { 0x2508, 5014 }, + { 0x2500, 5020 }, + { 0x2544, 5024 }, + { 0x2546, 5033 }, + { 0x2536, 5042 }, + { 0x252E, 5050 }, + { 0x253E, 5058 }, + { 0x2539, 5066 }, + { 0x2531, 5074 }, + { 0x2549, 5082 }, + { 0x255D, 5090 }, + { 0x255A, 5096 }, + { 0x2569, 5102 }, + { 0x2557, 5108 }, + { 0x2554, 5114 }, + { 0x2566, 5120 }, + { 0x2551, 5126 }, + { 0x2563, 5130 }, + { 0x2560, 5136 }, + { 0x256C, 5142 }, + { 0x2550, 5148 }, + { 0x2528, 5152 }, + { 0x2520, 5159 }, + { 0x2542, 5166 }, + { 0x2525, 5173 }, + { 0x251D, 5180 }, + { 0x253F, 5187 }, + { 0x2562, 5194 }, + { 0x255F, 5201 }, + { 0x256B, 5208 }, + { 0x2561, 5215 }, + { 0x255E, 5222 }, + { 0x256A, 5229 }, + { 0x2627, 5236 }, + { 0x31D4, 5238 }, + { 0x31D0, 5241 }, + { 0x31CF, 5244 }, + { 0x31D2, 5247 }, + { 0x31E3, 5250 }, + { 0x31D1, 5253 }, + { 0x31C0, 5256 }, + { 0x31D6, 5259 }, + { 0x31C7, 5262 }, + { 0x31D5, 5265 }, + { 0x31DB, 5268 }, + { 0x31E2, 5271 }, + { 0x31DC, 5274 }, + { 0x31DA, 5277 }, + { 0x31D3, 5280 }, + { 0x31D9, 5283 }, + { 0x31C4, 5286 }, + { 0x31D7, 5289 }, + { 0x31DD, 5292 }, + { 0x31C1, 5295 }, + { 0x31C2, 5298 }, + { 0x31C3, 5301 }, + { 0x31C6, 5304 }, + { 0x31CA, 5307 }, + { 0x31CD, 5310 }, + { 0x31C5, 5313 }, + { 0x31DF, 5316 }, + { 0x31D8, 5319 }, + { 0x31DE, 5322 }, + { 0x31CC, 5325 }, + { 0x31E0, 5328 }, + { 0x31C8, 5331 }, + { 0x31CB, 5334 }, + { 0x31CE, 5337 }, + { 0x31C9, 5340 }, + { 0x31E1, 5343 }, + { 0x2E86, 5346 }, + { 0x2EA7, 5349 }, + { 0x2EA8, 5352 }, + { 0x2EDD, 5355 }, + { 0x2EDE, 5359 }, + { 0x2EDF, 5363 }, + { 0x2EB8, 5367 }, + { 0x2EAB, 5370 }, + { 0x2EB1, 5373 }, + { 0x2EB2, 5377 }, + { 0x2EB4, 5381 }, + { 0x2EB3, 5385 }, + { 0x2EB9, 5389 }, + { 0x2EA4, 5392 }, + { 0x2EA5, 5396 }, + { 0x2EB7, 5400 }, + { 0x2E99, 5403 }, + { 0x2E9C, 5406 }, + { 0x2ED8, 5409 }, + { 0x2EAA, 5412 }, + { 0x2EE3, 5417 }, + { 0x2ECF, 5420 }, + { 0x2EA3, 5423 }, + { 0x2ECA, 5426 }, + { 0x2E98, 5429 }, + { 0x2EE1, 5432 }, + { 0x2EC7, 5435 }, + { 0x2EA9, 5438 }, + { 0x2E8E, 5441 }, + { 0x2E8F, 5445 }, + { 0x2E91, 5449 }, + { 0x2E90, 5453 }, + { 0x2ED1, 5457 }, + { 0x2ED2, 5461 }, + { 0x2EBC, 5465 }, + { 0x2EB5, 5468 }, + { 0x2E9D, 5471 }, + { 0x2ED7, 5474 }, + { 0x2E8B, 5477 }, + { 0x2EAF, 5480 }, + { 0x2ECD, 5483 }, + { 0x2ECE, 5487 }, + { 0x2EC3, 5491 }, + { 0x2EC4, 5495 }, + { 0x2EBA, 5499 }, + { 0x2EBB, 5503 }, + { 0x2E9B, 5507 }, + { 0x2E81, 5510 }, + { 0x2E9E, 5513 }, + { 0x2EE4, 5516 }, + { 0x2EBE, 5519 }, + { 0x2EBF, 5523 }, + { 0x2EC0, 5527 }, + { 0x2E96, 5531 }, + { 0x2E97, 5535 }, + { 0x2E88, 5539 }, + { 0x2E89, 5543 }, + { 0x2ED5, 5547 }, + { 0x2ED6, 5551 }, + { 0x2EB6, 5555 }, + { 0x2E8C, 5558 }, + { 0x2E8D, 5562 }, + { 0x2E92, 5566 }, + { 0x2E94, 5569 }, + { 0x2E95, 5573 }, + { 0x2E87, 5577 }, + { 0x2EC1, 5580 }, + { 0x2EA1, 5583 }, + { 0x2EA2, 5587 }, + { 0x2EAE, 5591 }, + { 0x2EBD, 5594 }, + { 0x2E9F, 5597 }, + { 0x2E85, 5600 }, + { 0x2E80, 5603 }, + { 0x2E82, 5606 }, + { 0x2E83, 5610 }, + { 0x2E84, 5614 }, + { 0x2EAC, 5618 }, + { 0x2EAD, 5622 }, + { 0x2E93, 5626 }, + { 0x2EF1, 5629 }, + { 0x2EC2, 5632 }, + { 0x2EA0, 5635 }, + { 0x2E8A, 5638 }, + { 0x2EA6, 5641 }, + { 0x2EC6, 5647 }, + { 0x2ECC, 5651 }, + { 0x2EE8, 5655 }, + { 0x2EE9, 5659 }, + { 0x2EE0, 5663 }, + { 0x2EDC, 5667 }, + { 0x2EC5, 5671 }, + { 0x2EE6, 5675 }, + { 0x2ECB, 5679 }, + { 0x2EEC, 5683 }, + { 0x2EE5, 5687 }, + { 0x2EEA, 5691 }, + { 0x2ED4, 5695 }, + { 0x2ED0, 5699 }, + { 0x2EDA, 5703 }, + { 0x2ED3, 5707 }, + { 0x2EE7, 5711 }, + { 0x2EB0, 5715 }, + { 0x2EDB, 5719 }, + { 0x2EE2, 5723 }, + { 0x2EC9, 5727 }, + { 0x2EEE, 5731 }, + { 0x2EF0, 5735 }, + { 0x2EC8, 5739 }, + { 0x2ED9, 5743 }, + { 0x2EF3, 5748 }, + { 0x2EEB, 5752 }, + { 0x2EED, 5756 }, + { 0x2EEF, 5760 }, + { 0x2EF2, 5764 }, + { 0x2680, 5768 }, + { 0x2681, 5770 }, + { 0x2682, 5772 }, + { 0x2683, 5774 }, + { 0x2684, 5776 }, + { 0x2685, 5778 }, + { 0x2214, 5780 }, + { 0x02D9, 5782 }, + { 0x2238, 5784 }, + { 0x22C5, 5786 }, + { 0x220E, 5788 }, + { 0x2200, 5791 }, + { 0x2668, 5793 }, + { 0x2615, 5795 }, + { 0x20AD, 5797 }, + { 0x0EDD, 5799 }, + { 0x0EDC, 5802 }, + { 0x0EC6, 5805 }, + { 0x0EC8, 5808 }, + { 0x0ECA, 5812 }, + { 0x0EC9, 5816 }, + { 0x0ECB, 5820 }, + { 0x0ED1, 5824 }, + { 0x0ED6, 5827 }, + { 0x0ED2, 5830 }, + { 0x0ED5, 5833 }, + { 0x0ED4, 5836 }, + { 0x0ED9, 5839 }, + { 0x0ED0, 5842 }, + { 0x0ED8, 5845 }, + { 0x0ED7, 5848 }, + { 0x0ED3, 5851 }, + { 0x0EB0, 5854 }, + { 0x0EC0, 5858 }, + { 0x0EB4, 5862 }, + { 0x0EC2, 5866 }, + { 0x0EB8, 5870 }, + { 0x0EB6, 5874 }, + { 0x0EB2, 5878 }, + { 0x0EC4, 5882 }, + { 0x0EB3, 5886 }, + { 0x0EC3, 5890 }, + { 0x0EC1, 5894 }, + { 0x0EB5, 5898 }, + { 0x0EB9, 5902 }, + { 0x0EB7, 5906 }, + { 0x0EB1, 5910 }, + { 0x0EBB, 5915 }, + { 0x0EAD, 5920 }, + { 0x0E9A, 5923 }, + { 0x0E88, 5926 }, + { 0x0E94, 5929 }, + { 0x0E9D, 5932 }, + { 0x0E9F, 5936 }, + { 0x0EAE, 5940 }, + { 0x0EAB, 5944 }, + { 0x0E81, 5948 }, + { 0x0EA3, 5951 }, + { 0x0EA5, 5955 }, + { 0x0EA1, 5959 }, + { 0x0E99, 5962 }, + { 0x0E9B, 5965 }, + { 0x0E8A, 5968 }, + { 0x0EAA, 5972 }, + { 0x0E95, 5976 }, + { 0x0EA7, 5979 }, + { 0x0EA2, 5982 }, + { 0x0E84, 5985 }, + { 0x0E82, 5989 }, + { 0x0E87, 5993 }, + { 0x0E8D, 5996 }, + { 0x0E9E, 5999 }, + { 0x0E9C, 6003 }, + { 0x0E97, 6007 }, + { 0x0E96, 6011 }, + { 0x0EAF, 6015 }, + { 0x0ECD, 6017 }, + { 0x0EBC, 6019 }, + { 0x0EBD, 6023 }, + { 0x0ECC, 6027 }, + { 0x264C, 6030 }, + { 0x005F, 6031 }, + { 0x301F, 6033 }, + { 0x204E, 6038 }, + { 0x19DE, 6040 }, + { 0x19DF, 6045 }, + { 0x19C8, 6050 }, + { 0x19C9, 6055 }, + { 0x19D1, 6060 }, + { 0x19D6, 6065 }, + { 0x19D2, 6070 }, + { 0x19D5, 6075 }, + { 0x19D4, 6080 }, + { 0x19D9, 6085 }, + { 0x19D0, 6090 }, + { 0x19D8, 6095 }, + { 0x19D7, 6100 }, + { 0x19D3, 6105 }, + { 0x19B5, 6110 }, + { 0x19B7, 6116 }, + { 0x19B3, 6122 }, + { 0x19B1, 6128 }, + { 0x19B6, 6134 }, + { 0x19BA, 6140 }, + { 0x19B2, 6146 }, + { 0x19C0, 6152 }, + { 0x19B8, 6158 }, + { 0x19BD, 6164 }, + { 0x19B9, 6170 }, + { 0x19B4, 6176 }, + { 0x19BC, 6182 }, + { 0x19BB, 6188 }, + { 0x19BE, 6194 }, + { 0x19BF, 6200 }, + { 0x19B0, 6206 }, + { 0x19A5, 6213 }, + { 0x19A4, 6219 }, + { 0x199D, 6225 }, + { 0x19A3, 6231 }, + { 0x1985, 6237 }, + { 0x199F, 6243 }, + { 0x1999, 6249 }, + { 0x1993, 6255 }, + { 0x1997, 6261 }, + { 0x1981, 6267 }, + { 0x198C, 6273 }, + { 0x1991, 6279 }, + { 0x199E, 6285 }, + { 0x1986, 6291 }, + { 0x198D, 6297 }, + { 0x19A8, 6303 }, + { 0x1987, 6309 }, + { 0x1998, 6315 }, + { 0x1992, 6321 }, + { 0x198B, 6327 }, + { 0x19A9, 6333 }, + { 0x19A2, 6339 }, + { 0x19A1, 6345 }, + { 0x199A, 6351 }, + { 0x19A0, 6357 }, + { 0x1982, 6363 }, + { 0x199C, 6369 }, + { 0x1996, 6375 }, + { 0x1990, 6381 }, + { 0x1994, 6387 }, + { 0x1980, 6393 }, + { 0x1989, 6399 }, + { 0x198E, 6405 }, + { 0x199B, 6411 }, + { 0x1983, 6417 }, + { 0x198A, 6423 }, + { 0x19A6, 6429 }, + { 0x1984, 6435 }, + { 0x1995, 6441 }, + { 0x198F, 6447 }, + { 0x1988, 6453 }, + { 0x19A7, 6459 }, + { 0x19C7, 6465 }, + { 0x19C6, 6471 }, + { 0x19C5, 6477 }, + { 0x19C4, 6483 }, + { 0x19C3, 6489 }, + { 0x19C1, 6495 }, + { 0x19C2, 6501 }, + { 0x20AA, 6507 }, + { 0x07F5, 6510 }, + { 0x07F4, 6514 }, + { 0x07F8, 6518 }, + { 0x07C1, 6520 }, + { 0x07C6, 6523 }, + { 0x07C2, 6526 }, + { 0x07C5, 6529 }, + { 0x07C4, 6532 }, + { 0x07C9, 6535 }, + { 0x07C0, 6538 }, + { 0x07C8, 6541 }, + { 0x07C7, 6544 }, + { 0x07C3, 6547 }, + { 0x07CA, 6550 }, + { 0x07CD, 6553 }, + { 0x07CC, 6556 }, + { 0x07D2, 6559 }, + { 0x07D0, 6562 }, + { 0x07CE, 6565 }, + { 0x07D3, 6568 }, + { 0x07D8, 6571 }, + { 0x07CB, 6574 }, + { 0x07DD, 6577 }, + { 0x07E4, 6580 }, + { 0x07D6, 6583 }, + { 0x07DE, 6586 }, + { 0x07DF, 6589 }, + { 0x07E1, 6592 }, + { 0x07E3, 6595 }, + { 0x07E0, 6598 }, + { 0x07CF, 6602 }, + { 0x07D4, 6605 }, + { 0x07D9, 6608 }, + { 0x07DB, 6611 }, + { 0x07D5, 6614 }, + { 0x07E5, 6617 }, + { 0x07E6, 6620 }, + { 0x07D7, 6623 }, + { 0x07DC, 6626 }, + { 0x07E2, 6629 }, + { 0x07E7, 6632 }, + { 0x07DA, 6636 }, + { 0x07E8, 6639 }, + { 0x07EA, 6643 }, + { 0x07E9, 6647 }, + { 0x07D1, 6651 }, + { 0x07F6, 6654 }, + { 0x07F7, 6658 }, + { 0x07F0, 6661 }, + { 0x07EF, 6666 }, + { 0x07F1, 6671 }, + { 0x07EE, 6676 }, + { 0x07EC, 6681 }, + { 0x07EB, 6686 }, + { 0x07ED, 6691 }, + { 0x07F3, 6696 }, + { 0x07F2, 6701 }, + { 0x07FA, 6705 }, + { 0x07F9, 6707 }, + { 0x22BD, 6710 }, + { 0x2284, 6711 }, + { 0x2285, 6715 }, + { 0x2209, 6719 }, + { 0x00AC, 6723 }, + { 0x22AD, 6725 }, + { 0x237B, 6727 }, + { 0x2260, 6730 }, + { 0x2241, 6733 }, + { 0x2249, 6735 }, + { 0x22EA, 6739 }, + { 0x22EC, 6743 }, + { 0x22E2, 6750 }, + { 0x22E3, 6757 }, + { 0x2226, 6764 }, + { 0x2262, 6767 }, + { 0x226E, 6770 }, + { 0x226D, 6772 }, + { 0x226F, 6775 }, + { 0x2244, 6777 }, + { 0x2445, 6781 }, + { 0x2444, 6784 }, + { 0x2448, 6787 }, + { 0x2442, 6789 }, + { 0x2440, 6791 }, + { 0x2441, 6793 }, + { 0x2447, 6795 }, + { 0x2446, 6799 }, + { 0x244A, 6803 }, + { 0x2449, 6806 }, + { 0x2443, 6810 }, + { 0x2126, 6813 }, + { 0x7300, 6815 }, + { 0x7304, 6819 }, + { 0x7309, 6823 }, + { 0x730F, 6827 }, + { 0x7316, 6831 }, + { 0x7301, 6835 }, + { 0x7303, 6839 }, + { 0x731A, 6843 }, + { 0x730B, 6847 }, + { 0x730C, 6851 }, + { 0x730D, 6855 }, + { 0x7313, 6859 }, + { 0x7314, 6863 }, + { 0x7307, 6867 }, + { 0x731D, 6871 }, + { 0x730A, 6875 }, + { 0x7302, 6879 }, + { 0x7312, 6883 }, + { 0x7310, 6887 }, + { 0x7315, 6891 }, + { 0x731E, 6895 }, + { 0x7305, 6899 }, + { 0x7306, 6903 }, + { 0x731C, 6907 }, + { 0x7317, 6911 }, + { 0x731B, 6915 }, + { 0x730E, 6919 }, + { 0x7319, 6923 }, + { 0x7318, 6927 }, + { 0x7311, 6931 }, + { 0x7308, 6935 }, + { 0x7320, 6939 }, + { 0x7322, 6943 }, + { 0x7321, 6947 }, + { 0x7323, 6951 }, + { 0x73A0, 6955 }, + { 0x73A1, 6959 }, + { 0x73A2, 6963 }, + { 0x73B2, 6967 }, + { 0x73A8, 6971 }, + { 0x73AD, 6975 }, + { 0x73AE, 6979 }, + { 0x73AF, 6983 }, + { 0x73B3, 6987 }, + { 0x73A5, 6991 }, + { 0x73A6, 6995 }, + { 0x73C3, 6999 }, + { 0x73A9, 7003 }, + { 0x73AA, 7007 }, + { 0x73A3, 7011 }, + { 0x73A4, 7015 }, + { 0x73BE, 7019 }, + { 0x73B6, 7023 }, + { 0x73B7, 7027 }, + { 0x73B8, 7031 }, + { 0x73B4, 7035 }, + { 0x73B5, 7039 }, + { 0x73B1, 7043 }, + { 0x73BC, 7047 }, + { 0x73BD, 7051 }, + { 0x73BF, 7055 }, + { 0x73AB, 7059 }, + { 0x73AC, 7063 }, + { 0x73BA, 7067 }, + { 0x73BB, 7071 }, + { 0x73A7, 7075 }, + { 0x73B9, 7079 }, + { 0x73C0, 7083 }, + { 0x73C1, 7087 }, + { 0x73C2, 7091 }, + { 0x73B0, 7095 }, + { 0x73CE, 7099 }, + { 0x73CF, 7103 }, + { 0x73CC, 7107 }, + { 0x73C8, 7111 }, + { 0x73CD, 7115 }, + { 0x73C9, 7119 }, + { 0x73CA, 7123 }, + { 0x73CB, 7127 }, + { 0x73D0, 7131 }, + { 0x73D1, 7135 }, + { 0x73D3, 7139 }, + { 0x73D2, 7143 }, + { 0x73D4, 7147 }, + { 0x73D5, 7151 }, + { 0x2E2B, 7155 }, + { 0x2024, 7161 }, + { 0x2031, 7164 }, + { 0x214C, 7168 }, + { 0x2030, 7170 }, + { 0x202C, 7173 }, + { 0x2216, 7176 }, + { 0x2736, 7178 }, + { 0x273E, 7182 }, + { 0x2609, 7188 }, + { 0xC05F, 7189 }, + { 0xC02E, 7192 }, + { 0xC07B, 7195 }, + { 0xC05B, 7199 }, + { 0xC028, 7203 }, + { 0xC02B, 7206 }, + { 0xC03A, 7209 }, + { 0xC02C, 7211 }, + { 0xC031, 7213 }, + { 0xC036, 7216 }, + { 0xC032, 7219 }, + { 0xC035, 7222 }, + { 0xC034, 7225 }, + { 0xC039, 7228 }, + { 0xC030, 7231 }, + { 0xC038, 7234 }, + { 0xC037, 7237 }, + { 0xC033, 7240 }, + { 0xC060, 7243 }, + { 0xC061, 7246 }, + { 0xC062, 7251 }, + { 0xC063, 7256 }, + { 0xC064, 7261 }, + { 0xC065, 7266 }, + { 0xC066, 7271 }, + { 0xC067, 7276 }, + { 0xC068, 7281 }, + { 0xC069, 7286 }, + { 0xC06A, 7291 }, + { 0xC06B, 7296 }, + { 0xC06C, 7301 }, + { 0xC06D, 7306 }, + { 0xC06E, 7311 }, + { 0xC06F, 7316 }, + { 0xC070, 7321 }, + { 0xC071, 7326 }, + { 0xC072, 7331 }, + { 0xC073, 7336 }, + { 0xC074, 7341 }, + { 0xC075, 7346 }, + { 0xC076, 7351 }, + { 0xC077, 7356 }, + { 0xC078, 7361 }, + { 0xC079, 7366 }, + { 0xC07A, 7371 }, + { 0xC041, 7376 }, + { 0xC042, 7381 }, + { 0xC043, 7386 }, + { 0xC044, 7391 }, + { 0xC045, 7396 }, + { 0xC046, 7401 }, + { 0xC047, 7406 }, + { 0xC048, 7411 }, + { 0xC049, 7416 }, + { 0xC04A, 7421 }, + { 0xC04B, 7426 }, + { 0xC04C, 7431 }, + { 0xC04D, 7436 }, + { 0xC04E, 7441 }, + { 0xC04F, 7446 }, + { 0xC050, 7451 }, + { 0xC051, 7456 }, + { 0xC052, 7461 }, + { 0xC053, 7466 }, + { 0xC054, 7471 }, + { 0xC055, 7476 }, + { 0xC056, 7481 }, + { 0xC057, 7486 }, + { 0xC058, 7491 }, + { 0xC059, 7496 }, + { 0xC05A, 7501 }, + { 0xC07D, 7506 }, + { 0xC05D, 7510 }, + { 0xC029, 7514 }, + { 0xC020, 7517 }, + { 0xC07E, 7519 }, + { 0xC024, 7521 }, + { 0xC03D, 7524 }, + { 0xC023, 7527 }, + { 0xC025, 7530 }, + { 0xC05C, 7533 }, + { 0xC02F, 7536 }, + { 0xC02A, 7538 }, + { 0xC03F, 7540 }, + { 0xC07C, 7543 }, + { 0xC026, 7546 }, + { 0xC03C, 7548 }, + { 0xC022, 7551 }, + { 0xC03B, 7554 }, + { 0xC027, 7556 }, + { 0xC05E, 7558 }, + { 0xC040, 7561 }, + { 0xC021, 7564 }, + { 0xC03E, 7567 }, + { 0xC02D, 7570 }, + { 0x1963, 7572 }, + { 0x196B, 7576 }, + { 0x1964, 7580 }, + { 0x1969, 7584 }, + { 0x1967, 7588 }, + { 0x196D, 7592 }, + { 0x1965, 7596 }, + { 0x1966, 7600 }, + { 0x195C, 7604 }, + { 0x195E, 7608 }, + { 0x1950, 7612 }, + { 0x1958, 7616 }, + { 0x195B, 7620 }, + { 0x1962, 7624 }, + { 0x1968, 7628 }, + { 0x1959, 7632 }, + { 0x195F, 7636 }, + { 0x1954, 7640 }, + { 0x1956, 7644 }, + { 0x196A, 7648 }, + { 0x195D, 7652 }, + { 0x1951, 7656 }, + { 0x1955, 7660 }, + { 0x196C, 7664 }, + { 0x1960, 7668 }, + { 0x1952, 7672 }, + { 0x195A, 7676 }, + { 0x1957, 7680 }, + { 0x1953, 7684 }, + { 0x1961, 7688 }, + { 0x1970, 7692 }, + { 0x1971, 7696 }, + { 0x1972, 7700 }, + { 0x1973, 7704 }, + { 0x1974, 7708 }, + { 0x29DD, 7712 }, + { 0x293C, 7715 }, + { 0x293A, 7721 }, + { 0x293D, 7725 }, + { 0x2320, 7731 }, + { 0x230F, 7734 }, + { 0x2E22, 7737 }, + { 0x231C, 7741 }, + { 0x23DE, 7744 }, + { 0x230E, 7747 }, + { 0x2E23, 7750 }, + { 0x231D, 7754 }, + { 0x23B4, 7757 }, + { 0x23E0, 7760 }, + { 0x23DC, 7764 }, + { 0x2025, 7766 }, + { 0x205A, 7769 }, + { 0x2E2A, 7772 }, + { 0x29C9, 7778 }, + { 0x2A08, 7781 }, + { 0x2A07, 7785 }, + { 0x2051, 7789 }, + { 0x2A75, 7793 }, + { 0x2A56, 7797 }, + { 0x2A55, 7801 }, + { 0x560E, 7805 }, + { 0x560D, 7808 }, + { 0x5621, 7810 }, + { 0x5626, 7813 }, + { 0x5622, 7816 }, + { 0x5625, 7819 }, + { 0x5624, 7822 }, + { 0x5629, 7825 }, + { 0x5620, 7828 }, + { 0x5628, 7831 }, + { 0x5627, 7834 }, + { 0x5623, 7837 }, + { 0x5618, 7840 }, + { 0x5616, 7843 }, + { 0x5619, 7846 }, + { 0x5617, 7849 }, + { 0x561A, 7852 }, + { 0x561E, 7855 }, + { 0x561F, 7858 }, + { 0x561C, 7861 }, + { 0x5615, 7864 }, + { 0x561D, 7867 }, + { 0x561B, 7870 }, + { 0x5613, 7873 }, + { 0x5614, 7876 }, + { 0x560F, 7879 }, + { 0x5549, 7882 }, + { 0x55E1, 7885 }, + { 0x5524, 7888 }, + { 0x55BA, 7891 }, + { 0x5595, 7894 }, + { 0x554A, 7897 }, + { 0x5552, 7900 }, + { 0x55EA, 7903 }, + { 0x552C, 7906 }, + { 0x55C3, 7909 }, + { 0x559D, 7912 }, + { 0x5566, 7915 }, + { 0x55FF, 7918 }, + { 0x553F, 7921 }, + { 0x55D7, 7924 }, + { 0x55B0, 7927 }, + { 0x5560, 7930 }, + { 0x55F9, 7933 }, + { 0x5539, 7936 }, + { 0x55D1, 7939 }, + { 0x55AA, 7942 }, + { 0x5500, 7945 }, + { 0x55E2, 7948 }, + { 0x5558, 7951 }, + { 0x55F1, 7954 }, + { 0x5531, 7957 }, + { 0x55C9, 7960 }, + { 0x55A2, 7963 }, + { 0x556D, 7966 }, + { 0x5606, 7969 }, + { 0x5545, 7972 }, + { 0x55DD, 7975 }, + { 0x55B6, 7978 }, + { 0x554C, 7981 }, + { 0x55E4, 7984 }, + { 0x5526, 7987 }, + { 0x55BD, 7990 }, + { 0x5597, 7993 }, + { 0x5525, 7996 }, + { 0x5567, 7999 }, + { 0x5600, 8002 }, + { 0x5540, 8005 }, + { 0x55D8, 8008 }, + { 0x55B1, 8011 }, + { 0x556A, 8014 }, + { 0x5603, 8017 }, + { 0x5543, 8020 }, + { 0x55DB, 8023 }, + { 0x55B4, 8026 }, + { 0x555E, 8029 }, + { 0x55F7, 8032 }, + { 0x5537, 8035 }, + { 0x55CF, 8038 }, + { 0x55A8, 8041 }, + { 0x556E, 8044 }, + { 0x5608, 8047 }, + { 0x5546, 8050 }, + { 0x55DE, 8053 }, + { 0x55B7, 8056 }, + { 0x556F, 8059 }, + { 0x5609, 8062 }, + { 0x560B, 8065 }, + { 0x5547, 8068 }, + { 0x55DF, 8071 }, + { 0x55B8, 8074 }, + { 0x55BB, 8077 }, + { 0x5571, 8080 }, + { 0x5550, 8083 }, + { 0x55E8, 8086 }, + { 0x552A, 8089 }, + { 0x55C1, 8092 }, + { 0x559B, 8095 }, + { 0x555F, 8098 }, + { 0x55F8, 8101 }, + { 0x5538, 8104 }, + { 0x55D0, 8107 }, + { 0x55A9, 8110 }, + { 0x5562, 8113 }, + { 0x55FB, 8116 }, + { 0x553B, 8119 }, + { 0x55D3, 8122 }, + { 0x55AC, 8125 }, + { 0x555A, 8128 }, + { 0x55F3, 8131 }, + { 0x5533, 8134 }, + { 0x55CB, 8137 }, + { 0x55A4, 8140 }, + { 0x5596, 8143 }, + { 0x5559, 8146 }, + { 0x55F2, 8149 }, + { 0x5532, 8152 }, + { 0x55CA, 8155 }, + { 0x55A3, 8158 }, + { 0x554E, 8161 }, + { 0x55E6, 8164 }, + { 0x5528, 8167 }, + { 0x55BF, 8170 }, + { 0x5599, 8173 }, + { 0x5569, 8176 }, + { 0x5602, 8179 }, + { 0x5542, 8182 }, + { 0x55DA, 8185 }, + { 0x55B3, 8188 }, + { 0x5564, 8191 }, + { 0x55FD, 8194 }, + { 0x553D, 8197 }, + { 0x55D5, 8200 }, + { 0x55AE, 8203 }, + { 0x5507, 8206 }, + { 0x5551, 8209 }, + { 0x55E9, 8212 }, + { 0x552B, 8215 }, + { 0x55C2, 8218 }, + { 0x559C, 8221 }, + { 0x5578, 8224 }, + { 0x551A, 8227 }, + { 0x558B, 8230 }, + { 0x5514, 8233 }, + { 0x555C, 8236 }, + { 0x55F5, 8239 }, + { 0x5535, 8242 }, + { 0x55CD, 8245 }, + { 0x55A6, 8248 }, + { 0x5585, 8251 }, + { 0x5501, 8254 }, + { 0x550C, 8257 }, + { 0x557D, 8260 }, + { 0x5557, 8263 }, + { 0x55EF, 8266 }, + { 0x5530, 8269 }, + { 0x55C7, 8272 }, + { 0x55A1, 8275 }, + { 0x5520, 8278 }, + { 0x5607, 8281 }, + { 0x5591, 8284 }, + { 0x554D, 8287 }, + { 0x5502, 8290 }, + { 0x55E5, 8293 }, + { 0x5527, 8296 }, + { 0x55BE, 8299 }, + { 0x5573, 8302 }, + { 0x5598, 8305 }, + { 0x551B, 8308 }, + { 0x558C, 8311 }, + { 0x556B, 8314 }, + { 0x551E, 8317 }, + { 0x558F, 8320 }, + { 0x5554, 8323 }, + { 0x55EC, 8326 }, + { 0x552E, 8329 }, + { 0x55C5, 8332 }, + { 0x559F, 8335 }, + { 0x5512, 8338 }, + { 0x5583, 8341 }, + { 0x5553, 8344 }, + { 0x55EB, 8347 }, + { 0x552D, 8350 }, + { 0x55C4, 8353 }, + { 0x559E, 8356 }, + { 0x5521, 8359 }, + { 0x5592, 8362 }, + { 0x5561, 8365 }, + { 0x55FA, 8368 }, + { 0x553A, 8371 }, + { 0x55D2, 8374 }, + { 0x55AB, 8377 }, + { 0x5522, 8380 }, + { 0x5568, 8383 }, + { 0x5601, 8386 }, + { 0x5541, 8389 }, + { 0x55D9, 8392 }, + { 0x55B2, 8395 }, + { 0x5593, 8398 }, + { 0x5570, 8401 }, + { 0x560A, 8404 }, + { 0x5548, 8407 }, + { 0x55E0, 8410 }, + { 0x55B9, 8413 }, + { 0x5572, 8416 }, + { 0x5505, 8419 }, + { 0x5576, 8422 }, + { 0x5513, 8425 }, + { 0x5584, 8428 }, + { 0x5516, 8431 }, + { 0x5563, 8434 }, + { 0x55FC, 8437 }, + { 0x553C, 8440 }, + { 0x55D4, 8443 }, + { 0x55AD, 8446 }, + { 0x5587, 8449 }, + { 0x550E, 8452 }, + { 0x555B, 8455 }, + { 0x55F4, 8458 }, + { 0x5534, 8461 }, + { 0x55CC, 8464 }, + { 0x55A5, 8467 }, + { 0x557F, 8470 }, + { 0x550D, 8473 }, + { 0x557E, 8476 }, + { 0x554F, 8479 }, + { 0x5503, 8482 }, + { 0x55E7, 8485 }, + { 0x5529, 8488 }, + { 0x55C0, 8491 }, + { 0x5574, 8494 }, + { 0x559A, 8497 }, + { 0x551D, 8500 }, + { 0x558E, 8503 }, + { 0x5518, 8506 }, + { 0x5565, 8509 }, + { 0x55FE, 8512 }, + { 0x553E, 8515 }, + { 0x55D6, 8518 }, + { 0x55AF, 8521 }, + { 0x5589, 8524 }, + { 0x5506, 8527 }, + { 0x5577, 8530 }, + { 0x5510, 8533 }, + { 0x555D, 8536 }, + { 0x55F6, 8539 }, + { 0x5536, 8542 }, + { 0x55CE, 8545 }, + { 0x55A7, 8548 }, + { 0x5581, 8551 }, + { 0x550B, 8554 }, + { 0x55F0, 8557 }, + { 0x55C8, 8560 }, + { 0x557C, 8563 }, + { 0x5555, 8566 }, + { 0x5509, 8569 }, + { 0x55ED, 8572 }, + { 0x557A, 8575 }, + { 0x5508, 8578 }, + { 0x5579, 8581 }, + { 0x5556, 8584 }, + { 0x55EE, 8587 }, + { 0x552F, 8590 }, + { 0x55C6, 8593 }, + { 0x55A0, 8596 }, + { 0x5515, 8599 }, + { 0x5586, 8602 }, + { 0x554B, 8605 }, + { 0x55E3, 8608 }, + { 0x556C, 8611 }, + { 0x5604, 8614 }, + { 0x5544, 8617 }, + { 0x55DC, 8620 }, + { 0x55B5, 8623 }, + { 0x55BC, 8626 }, + { 0x551C, 8629 }, + { 0x558D, 8632 }, + { 0x5523, 8635 }, + { 0x5594, 8638 }, + { 0x5517, 8641 }, + { 0x5588, 8644 }, + { 0x550F, 8647 }, + { 0x5580, 8650 }, + { 0x5504, 8653 }, + { 0x5575, 8656 }, + { 0x5519, 8659 }, + { 0x558A, 8662 }, + { 0x5511, 8665 }, + { 0x5582, 8668 }, + { 0x550A, 8671 }, + { 0x557B, 8674 }, + { 0x562B, 8677 }, + { 0x5610, 8681 }, + { 0x5611, 8685 }, + { 0x562A, 8689 }, + { 0x5612, 8693 }, + { 0x551F, 8697 }, + { 0x5605, 8700 }, + { 0x5590, 8703 }, + { 0x560C, 8706 }, + { 0x20A9, 8709 }, + { 0x22BB, 8711 }, + { 0x00A5, 8712 }, + { 0x262F, 8714 }, + { 0x2135, 8716 }, + { 0x2625, 8718 }, + { 0x269B, 8719 }, + { 0x237E, 8721 }, + { 0x2106, 8723 }, + { 0x2105, 8725 }, + { 0x20B5, 8727 }, + { 0x00A2, 8729 }, + { 0x5A51, 8731 }, + { 0x5A56, 8734 }, + { 0x5A52, 8737 }, + { 0x5A55, 8740 }, + { 0x5A54, 8743 }, + { 0x5A59, 8746 }, + { 0x5A50, 8749 }, + { 0x5A58, 8752 }, + { 0x5A57, 8755 }, + { 0x5A53, 8758 }, + { 0x5A2A, 8761 }, + { 0x5A2F, 8765 }, + { 0x5A2D, 8769 }, + { 0x5A29, 8773 }, + { 0x5A30, 8777 }, + { 0x5A31, 8781 }, + { 0x5A2C, 8785 }, + { 0x5A2B, 8789 }, + { 0x5A2E, 8793 }, + { 0x5A32, 8797 }, + { 0x5A00, 8801 }, + { 0x5A03, 8804 }, + { 0x5A01, 8807 }, + { 0x5A05, 8810 }, + { 0x5A02, 8813 }, + { 0x5A04, 8816 }, + { 0x5A1D, 8819 }, + { 0x5A15, 8822 }, + { 0x5A08, 8825 }, + { 0x5A28, 8828 }, + { 0x5A0E, 8831 }, + { 0x5A06, 8834 }, + { 0x5A24, 8837 }, + { 0x5A20, 8840 }, + { 0x5A18, 8843 }, + { 0x5A1A, 8846 }, + { 0x5A23, 8849 }, + { 0x5A27, 8852 }, + { 0x5A13, 8855 }, + { 0x5A25, 8858 }, + { 0x5A22, 8861 }, + { 0x5A21, 8864 }, + { 0x5A1E, 8867 }, + { 0x5A0C, 8870 }, + { 0x5A19, 8873 }, + { 0x5A16, 8876 }, + { 0x5A09, 8879 }, + { 0x5A0F, 8882 }, + { 0x5A07, 8885 }, + { 0x5A1F, 8888 }, + { 0x5A0B, 8891 }, + { 0x5A11, 8894 }, + { 0x5A17, 8897 }, + { 0x5A1C, 8900 }, + { 0x5A1B, 8903 }, + { 0x5A26, 8906 }, + { 0x5A14, 8909 }, + { 0x5A0D, 8912 }, + { 0x5A0A, 8915 }, + { 0x5A12, 8918 }, + { 0x5A10, 8921 }, + { 0x5A41, 8924 }, + { 0x5A40, 8928 }, + { 0x5A4A, 8932 }, + { 0x5A46, 8936 }, + { 0x5A47, 8940 }, + { 0x5A49, 8944 }, + { 0x5A45, 8948 }, + { 0x5A48, 8952 }, + { 0x5A44, 8956 }, + { 0x5A42, 8960 }, + { 0x5A4B, 8964 }, + { 0x5A35, 8968 }, + { 0x5A34, 8972 }, + { 0x5A36, 8976 }, + { 0x5A33, 8980 }, + { 0x5A4D, 8984 }, + { 0x5A4C, 8989 }, + { 0x5A43, 8994 }, + { 0x5A5D, 8999 }, + { 0x5A5E, 9002 }, + { 0x5A5C, 9006 }, + { 0x5A5F, 9009 }, + { 0x221B, 9013 }, + { 0x2593, 9015 }, + { 0x22AE, 9017 }, + { 0x22AC, 9020 }, + { 0x2224, 9023 }, + { 0x2AEE, 9026 }, + { 0x220C, 9033 }, + { 0x22EB, 9038 }, + { 0x22ED, 9044 }, + { 0x2280, 9052 }, + { 0x22E0, 9055 }, + { 0x2281, 9060 }, + { 0x22E1, 9063 }, + { 0x20AB, 9068 }, + { 0x297F, 9070 }, + { 0x22A4, 9073 }, + { 0x2AF1, 9075 }, + { 0x22F1, 9080 }, + { 0x2304, 9084 }, + { 0x2671, 9086 }, + { 0x20AC, 9089 }, + { 0x2E2D, 9091 }, + { 0x2059, 9094 }, + { 0x205B, 9097 }, + { 0x2058, 9100 }, + { 0x2725, 9103 }, + { 0x2723, 9106 }, + { 0x2722, 9109 }, + { 0x002E, 9112 }, + { 0x2588, 9114 }, + { 0x27D7, 9116 }, + { 0x23DB, 9119 }, + { 0x2699, 9120 }, + { 0x3013, 9121 }, + { 0x200A, 9123 }, + { 0x2388, 9125 }, + { 0x26A1, 9127 }, + { 0x2A1D, 9130 }, + { 0x26B5, 9131 }, + { 0x263E, 9132 }, + { 0x27DB, 9135 }, + { 0x27DA, 9139 }, + { 0x2993, 9144 }, + { 0x2E1C, 9148 }, + { 0x258F, 9152 }, + { 0x258E, 9156 }, + { 0x294E, 9160 }, + { 0x294A, 9167 }, + { 0x294B, 9174 }, + { 0x2950, 9181 }, + { 0x297C, 9188 }, + { 0x258B, 9191 }, + { 0x25D6, 9195 }, + { 0x258C, 9199 }, + { 0x22A3, 9202 }, + { 0x3008, 9204 }, + { 0x2991, 9207 }, + { 0x2B30, 9212 }, + { 0x2B32, 9217 }, + { 0x2997, 9222 }, + { 0x3010, 9227 }, + { 0x007B, 9231 }, + { 0x23A9, 9234 }, + { 0x23A7, 9239 }, + { 0x23A8, 9244 }, + { 0x230A, 9249 }, + { 0x27D5, 9251 }, + { 0x21AD, 9254 }, + { 0x2194, 9258 }, + { 0x21FC, 9261 }, + { 0x21AE, 9268 }, + { 0x21F9, 9273 }, + { 0x2948, 9279 }, + { 0x2B0C, 9285 }, + { 0x2B04, 9289 }, + { 0x21D4, 9293 }, + { 0x21CE, 9297 }, + { 0x2904, 9303 }, + { 0x21FF, 9310 }, + { 0x2589, 9314 }, + { 0x258D, 9318 }, + { 0x258A, 9322 }, + { 0x2983, 9326 }, + { 0x300E, 9330 }, + { 0x301A, 9334 }, + { 0x3018, 9338 }, + { 0x3016, 9343 }, + { 0x2985, 9347 }, + { 0x300C, 9350 }, + { 0x2E04, 9353 }, + { 0x300A, 9357 }, + { 0x29DA, 9361 }, + { 0x201C, 9365 }, + { 0x2E28, 9369 }, + { 0x22C9, 9372 }, + { 0x2E0C, 9377 }, + { 0x2018, 9381 }, + { 0x005B, 9385 }, + { 0x298D, 9388 }, + { 0x298F, 9396 }, + { 0x2045, 9404 }, + { 0x298B, 9409 }, + { 0x23A3, 9414 }, + { 0x23A1, 9419 }, + { 0x23A2, 9424 }, + { 0x29D8, 9428 }, + { 0x2308, 9431 }, + { 0x27DC, 9433 }, + { 0x27C5, 9435 }, + { 0x2E26, 9439 }, + { 0x3014, 9443 }, + { 0x29CF, 9447 }, + { 0x2E20, 9452 }, + { 0x23B8, 9457 }, + { 0x22CB, 9461 }, + { 0x0028, 9464 }, + { 0x239D, 9466 }, + { 0x239B, 9470 }, + { 0x239C, 9474 }, + { 0x2E02, 9477 }, + { 0x2E09, 9480 }, + { 0x2028, 9483 }, + { 0x2A14, 9485 }, + { 0x2A12, 9491 }, + { 0x2A13, 9498 }, + { 0x20A4, 9505 }, + { 0x2AE6, 9507 }, + { 0x27DE, 9515 }, + { 0x27F7, 9518 }, + { 0x27FA, 9522 }, + { 0x27DD, 9527 }, + { 0x27CC, 9530 }, + { 0x27F5, 9532 }, + { 0x27FB, 9535 }, + { 0x27F8, 9540 }, + { 0x27FD, 9544 }, + { 0x2B33, 9550 }, + { 0x27F6, 9554 }, + { 0x27FC, 9557 }, + { 0x27F9, 9562 }, + { 0x27FE, 9566 }, + { 0x27FF, 9572 }, + { 0x26A5, 9576 }, + { 0x2642, 9580 }, + { 0x26A7, 9582 }, + { 0x26A6, 9590 }, + { 0x303C, 9594 }, + { 0x20A5, 9596 }, + { 0x29FF, 9598 }, + { 0x226A, 9599 }, + { 0x226B, 9601 }, + { 0x22BC, 9603 }, + { 0x2398, 9604 }, + { 0x2423, 9606 }, + { 0x272B, 9608 }, + { 0x271B, 9612 }, + { 0x2732, 9615 }, + { 0x273C, 9618 }, + { 0x27C3, 9622 }, + { 0x27C4, 9624 }, + { 0x2E19, 9626 }, + { 0x303D, 9628 }, + { 0x20B1, 9631 }, + { 0x002B, 9633 }, + { 0x2A2D, 9635 }, + { 0x2A2E, 9641 }, + { 0x2A39, 9647 }, + { 0x2A25, 9651 }, + { 0x2A28, 9656 }, + { 0x2A22, 9661 }, + { 0x2A24, 9667 }, + { 0x2A26, 9672 }, + { 0x2A27, 9677 }, + { 0x2A23, 9682 }, + { 0x2A72, 9688 }, + { 0x6DFC, 9693 }, + { 0x2256, 9695 }, + { 0x02DA, 9699 }, + { 0x2257, 9701 }, + { 0x2E30, 9704 }, + { 0x2218, 9706 }, + { 0x223F, 9708 }, + { 0x00AD, 9710 }, + { 0x2721, 9712 }, + { 0x262A, 9715 }, + { 0x225B, 9718 }, + { 0x22C6, 9720 }, + { 0x2707, 9722 }, + { 0x0E51, 9724 }, + { 0x0E56, 9727 }, + { 0x0E52, 9730 }, + { 0x0E55, 9733 }, + { 0x0E54, 9736 }, + { 0x0E59, 9739 }, + { 0x0E50, 9742 }, + { 0x0E58, 9745 }, + { 0x0E57, 9748 }, + { 0x0E53, 9751 }, + { 0x0E3F, 9754 }, + { 0x0E2D, 9758 }, + { 0x0E1A, 9762 }, + { 0x0E14, 9766 }, + { 0x0E0E, 9770 }, + { 0x0E1D, 9774 }, + { 0x0E1F, 9778 }, + { 0x0E2B, 9782 }, + { 0x0E2E, 9786 }, + { 0x0E01, 9790 }, + { 0x0E25, 9794 }, + { 0x0E2C, 9798 }, + { 0x0E26, 9802 }, + { 0x0E21, 9805 }, + { 0x0E19, 9809 }, + { 0x0E13, 9813 }, + { 0x0E1B, 9817 }, + { 0x0E23, 9821 }, + { 0x0E24, 9825 }, + { 0x0E0B, 9828 }, + { 0x0E2A, 9832 }, + { 0x0E29, 9836 }, + { 0x0E28, 9840 }, + { 0x0E15, 9844 }, + { 0x0E0F, 9848 }, + { 0x0E27, 9852 }, + { 0x0E22, 9856 }, + { 0x0E0D, 9860 }, + { 0x0E08, 9864 }, + { 0x0E0C, 9868 }, + { 0x0E0A, 9872 }, + { 0x0E09, 9876 }, + { 0x0E02, 9880 }, + { 0x0E05, 9884 }, + { 0x0E03, 9888 }, + { 0x0E04, 9892 }, + { 0x0E06, 9896 }, + { 0x0E48, 9900 }, + { 0x0E49, 9904 }, + { 0x0E4A, 9908 }, + { 0x0E4B, 9912 }, + { 0x0E31, 9916 }, + { 0x0E07, 9920 }, + { 0x0E1E, 9924 }, + { 0x0E1C, 9928 }, + { 0x0E20, 9932 }, + { 0x0E10, 9936 }, + { 0x0E18, 9940 }, + { 0x0E16, 9944 }, + { 0x0E17, 9948 }, + { 0x0E12, 9952 }, + { 0x0E11, 9956 }, + { 0x0E30, 9960 }, + { 0x0E40, 9964 }, + { 0x0E34, 9968 }, + { 0x0E42, 9972 }, + { 0x0E38, 9976 }, + { 0x0E32, 9980 }, + { 0x0E41, 9984 }, + { 0x0E43, 9988 }, + { 0x0E44, 9993 }, + { 0x0E33, 9998 }, + { 0x0E35, 10002 }, + { 0x0E36, 10006 }, + { 0x0E39, 10010 }, + { 0x0E37, 10014 }, + { 0x0E5B, 10018 }, + { 0x0E4F, 10021 }, + { 0x0E3A, 10024 }, + { 0x0E46, 10027 }, + { 0x0E4D, 10030 }, + { 0x0E4E, 10033 }, + { 0x0E47, 10036 }, + { 0x0E2F, 10039 }, + { 0x0E5A, 10042 }, + { 0x0E45, 10045 }, + { 0x0E4C, 10048 }, + { 0x2009, 10051 }, + { 0x29FE, 10053 }, + { 0x22A8, 10054 }, + { 0x238C, 10055 }, + { 0x22D8, 10057 }, + { 0x22D9, 10060 }, + { 0x301C, 10063 }, + { 0x2B3F, 10065 }, + { 0x2933, 10070 }, + { 0x6E4F, 10075 }, + { 0x3030, 10078 }, + { 0x2307, 10080 }, + { 0x6E4B, 10082 }, + { 0x2670, 10084 }, + { 0x2060, 10087 }, + { 0x200B, 10089 }, + { 0x200D, 10092 }, + { 0x6EFF, 10095 }, + { 0x200C, 10099 }, + { 0x299F, 10102 }, + { 0x00B4, 10104 }, + { 0x2220, 10106 }, + { 0x299E, 10107 }, + { 0x29A4, 10111 }, + { 0x2648, 10114 }, + { 0x2936, 10115 }, + { 0x2937, 10121 }, + { 0x2934, 10127 }, + { 0x2935, 10133 }, + { 0x2712, 10139 }, + { 0x2600, 10141 }, + { 0x2663, 10145 }, + { 0x2691, 10148 }, + { 0x2726, 10150 }, + { 0x261A, 10154 }, + { 0x26B8, 10158 }, + { 0x2605, 10161 }, + { 0x2B1D, 10163 }, + { 0x265A, 10167 }, + { 0x265F, 10170 }, + { 0x265C, 10173 }, + { 0x265B, 10176 }, + { 0x265D, 10179 }, + { 0x265E, 10182 }, + { 0x2665, 10185 }, + { 0x2B24, 10188 }, + { 0x2B1B, 10191 }, + { 0x25E3, 10194 }, + { 0x25E2, 10198 }, + { 0x261B, 10202 }, + { 0x2617, 10206 }, + { 0x2B51, 10209 }, + { 0x25AA, 10212 }, + { 0x2B29, 10215 }, + { 0x2B2A, 10218 }, + { 0x2660, 10221 }, + { 0x25E4, 10224 }, + { 0x25E5, 10228 }, + { 0x29D3, 10232 }, + { 0x272C, 10234 }, + { 0x25CF, 10238 }, + { 0x2689, 10240 }, + { 0x29ED, 10246 }, + { 0x2688, 10251 }, + { 0x25FE, 10257 }, + { 0x25FC, 10261 }, + { 0x2B25, 10264 }, + { 0x2B27, 10267 }, + { 0x25A0, 10270 }, + { 0x25C6, 10272 }, + { 0x2666, 10274 }, + { 0x29EA, 10277 }, + { 0x2756, 10282 }, + { 0x2B22, 10287 }, + { 0x29EB, 10289 }, + { 0x263B, 10291 }, + { 0x26C2, 10294 }, + { 0x26C3, 10297 }, + { 0x273F, 10300 }, + { 0x2B1F, 10302 }, + { 0x2702, 10304 }, + { 0x2B2E, 10306 }, + { 0x25AE, 10309 }, + { 0x29D7, 10312 }, + { 0x204C, 10314 }, + { 0x25AC, 10317 }, + { 0x260E, 10319 }, + { 0x267B, 10321 }, + { 0x2B2C, 10325 }, + { 0x27A1, 10328 }, + { 0x204D, 10331 }, + { 0x27A4, 10334 }, + { 0x25B4, 10337 }, + { 0x25B2, 10341 }, + { 0x25BE, 10344 }, + { 0x25BC, 10348 }, + { 0x25C2, 10351 }, + { 0x25C4, 10355 }, + { 0x25C0, 10358 }, + { 0x25B0, 10361 }, + { 0x25B8, 10363 }, + { 0x25BA, 10367 }, + { 0x2B53, 10370 }, + { 0x25B6, 10373 }, + { 0x2422, 10376 }, + { 0x02D8, 10378 }, + { 0x1752, 10379 }, + { 0x1753, 10383 }, + { 0x1740, 10387 }, + { 0x1741, 10390 }, + { 0x1742, 10393 }, + { 0x174A, 10396 }, + { 0x1747, 10399 }, + { 0x1744, 10402 }, + { 0x1751, 10405 }, + { 0x1743, 10408 }, + { 0x174E, 10411 }, + { 0x174B, 10414 }, + { 0x1748, 10417 }, + { 0x1749, 10420 }, + { 0x174D, 10423 }, + { 0x1750, 10426 }, + { 0x1746, 10429 }, + { 0x174F, 10432 }, + { 0x174C, 10435 }, + { 0x1745, 10438 }, + { 0x2038, 10441 }, + { 0x2041, 10442 }, + { 0x02C7, 10445 }, + { 0x26B3, 10446 }, + { 0x2713, 10447 }, + { 0x239A, 10449 }, + { 0x2050, 10452 }, + { 0x2601, 10454 }, + { 0x003A, 10455 }, + { 0x20A1, 10456 }, + { 0x2254, 10458 }, + { 0x2604, 10460 }, + { 0x002C, 10461 }, + { 0x2628, 10462 }, + { 0x2629, 10465 }, + { 0x23AA, 10468 }, + { 0x22CE, 10471 }, + { 0x22CF, 10474 }, + { 0x2138, 10477 }, + { 0x225C, 10479 }, + { 0x0031, 10482 }, + { 0x2488, 10484 }, + { 0x0036, 10488 }, + { 0x248D, 10490 }, + { 0x0032, 10494 }, + { 0x2489, 10496 }, + { 0x0035, 10500 }, + { 0x248C, 10502 }, + { 0x0034, 10506 }, + { 0x248B, 10508 }, + { 0x0039, 10512 }, + { 0x2490, 10514 }, + { 0x0030, 10518 }, + { 0x0038, 10520 }, + { 0x248F, 10522 }, + { 0x0037, 10526 }, + { 0x248E, 10528 }, + { 0x0033, 10532 }, + { 0x248A, 10534 }, + { 0x3003, 10538 }, + { 0x2641, 10540 }, + { 0x23DA, 10541 }, + { 0x2733, 10543 }, + { 0x2734, 10546 }, + { 0x2735, 10550 }, + { 0x2737, 10554 }, + { 0x2741, 10559 }, + { 0x274A, 10564 }, + { 0x23CF, 10568 }, + { 0x2205, 10570 }, + { 0x29B4, 10572 }, + { 0x29B3, 10578 }, + { 0x29B2, 10584 }, + { 0x29B1, 10590 }, + { 0x2386, 10594 }, + { 0x225D, 10596 }, + { 0x22DE, 10600 }, + { 0x22DF, 10604 }, + { 0x22DC, 10608 }, + { 0x22DD, 10612 }, + { 0x22D5, 10616 }, + { 0x232B, 10620 }, + { 0x2326, 10624 }, + { 0x2107, 10628 }, + { 0x262B, 10630 }, + { 0x263D, 10632 }, + { 0x2322, 10635 }, + { 0x2137, 10636 }, + { 0x0060, 10638 }, + { 0x03D6, 10640 }, + { 0x0387, 10643 }, + { 0x03D7, 10646 }, + { 0x7175, 10649 }, + { 0x7176, 10653 }, + { 0x03D5, 10659 }, + { 0x03FC, 10662 }, + { 0x03F1, 10667 }, + { 0x717D, 10670 }, + { 0x7177, 10674 }, + { 0x03D0, 10678 }, + { 0x7180, 10681 }, + { 0x717F, 10685 }, + { 0x717C, 10689 }, + { 0x1FFD, 10692 }, + { 0x7179, 10694 }, + { 0x718A, 10697 }, + { 0x1FFE, 10700 }, + { 0x1FDE, 10702 }, + { 0x1FDD, 10706 }, + { 0x1FDF, 10710 }, + { 0x03F0, 10714 }, + { 0x7183, 10717 }, + { 0x0375, 10720 }, + { 0x1FBF, 10724 }, + { 0x1FCE, 10726 }, + { 0x1FCD, 10730 }, + { 0x1FCF, 10734 }, + { 0x037C, 10738 }, + { 0x03BC, 10744 }, + { 0x03BD, 10748 }, + { 0x03C0, 10752 }, + { 0x03BE, 10756 }, + { 0x03C7, 10760 }, + { 0x03B7, 10764 }, + { 0x1F75, 10768 }, + { 0x1FC4, 10774 }, + { 0x1F21, 10782 }, + { 0x1F25, 10788 }, + { 0x1F95, 10796 }, + { 0x1F23, 10806 }, + { 0x1F93, 10814 }, + { 0x1F27, 10824 }, + { 0x1F97, 10832 }, + { 0x1F91, 10842 }, + { 0x1F20, 10850 }, + { 0x1F24, 10856 }, + { 0x1F94, 10864 }, + { 0x1F22, 10874 }, + { 0x1F92, 10882 }, + { 0x1F26, 10892 }, + { 0x1F96, 10900 }, + { 0x1F90, 10910 }, + { 0x03AE, 10918 }, + { 0x1F74, 10924 }, + { 0x1FC2, 10930 }, + { 0x1FC6, 10938 }, + { 0x1FC7, 10944 }, + { 0x1FC3, 10952 }, + { 0x03C6, 10958 }, + { 0x03C8, 10962 }, + { 0x03C1, 10966 }, + { 0x1FE5, 10970 }, + { 0x1FE4, 10976 }, + { 0x03FB, 10982 }, + { 0x03F8, 10986 }, + { 0x03C4, 10990 }, + { 0x03B2, 10994 }, + { 0x0371, 10998 }, + { 0x03B9, 11002 }, + { 0x1F77, 11006 }, + { 0x1F31, 11012 }, + { 0x1F35, 11018 }, + { 0x1F33, 11026 }, + { 0x1F37, 11034 }, + { 0x1F30, 11042 }, + { 0x1F34, 11048 }, + { 0x1F32, 11056 }, + { 0x1F36, 11064 }, + { 0x03AF, 11072 }, + { 0x1F76, 11078 }, + { 0x1FD1, 11084 }, + { 0x1FD0, 11090 }, + { 0x03CA, 11096 }, + { 0x1FD3, 11102 }, + { 0x0390, 11110 }, + { 0x1FD2, 11118 }, + { 0x1FD7, 11126 }, + { 0x1FD6, 11134 }, + { 0x03B6, 11140 }, + { 0x03B1, 11144 }, + { 0x1F71, 11148 }, + { 0x1FB4, 11154 }, + { 0x1F01, 11162 }, + { 0x1F05, 11168 }, + { 0x1F85, 11176 }, + { 0x1F03, 11186 }, + { 0x1F83, 11194 }, + { 0x1F07, 11204 }, + { 0x1F87, 11212 }, + { 0x1F81, 11222 }, + { 0x1F00, 11230 }, + { 0x1F04, 11236 }, + { 0x1F84, 11244 }, + { 0x1F02, 11254 }, + { 0x1F82, 11262 }, + { 0x1F06, 11272 }, + { 0x1F86, 11280 }, + { 0x1F80, 11290 }, + { 0x03AC, 11298 }, + { 0x1F70, 11304 }, + { 0x1FB2, 11310 }, + { 0x1FB1, 11318 }, + { 0x1FB0, 11324 }, + { 0x1FB6, 11330 }, + { 0x1FB7, 11336 }, + { 0x1FB3, 11344 }, + { 0x03B4, 11350 }, + { 0x03C2, 11354 }, + { 0x03B3, 11359 }, + { 0x03BA, 11363 }, + { 0x03DF, 11367 }, + { 0x03BB, 11371 }, + { 0x03C9, 11375 }, + { 0x1F7D, 11379 }, + { 0x1FF4, 11385 }, + { 0x1F61, 11393 }, + { 0x1F65, 11399 }, + { 0x1FA5, 11407 }, + { 0x1F63, 11417 }, + { 0x1FA3, 11425 }, + { 0x1F67, 11435 }, + { 0x1FA7, 11443 }, + { 0x1FA1, 11453 }, + { 0x1F60, 11461 }, + { 0x1F64, 11467 }, + { 0x1FA4, 11475 }, + { 0x1F62, 11485 }, + { 0x1FA2, 11493 }, + { 0x1F66, 11503 }, + { 0x1FA6, 11511 }, + { 0x1FA0, 11521 }, + { 0x03CE, 11529 }, + { 0x1F7C, 11535 }, + { 0x1FF2, 11541 }, + { 0x1FF6, 11549 }, + { 0x1FF7, 11555 }, + { 0x1FF3, 11563 }, + { 0x03E1, 11569 }, + { 0x03C3, 11573 }, + { 0x03B8, 11577 }, + { 0x03DB, 11581 }, + { 0x03D9, 11585 }, + { 0x0373, 11590 }, + { 0x03DD, 11595 }, + { 0x03B5, 11599 }, + { 0x1F73, 11603 }, + { 0x1F11, 11609 }, + { 0x1F15, 11615 }, + { 0x1F13, 11623 }, + { 0x1F10, 11631 }, + { 0x1F14, 11637 }, + { 0x1F12, 11645 }, + { 0x03AD, 11653 }, + { 0x1F72, 11659 }, + { 0x03BF, 11665 }, + { 0x1F79, 11669 }, + { 0x1F41, 11675 }, + { 0x1F45, 11681 }, + { 0x1F43, 11689 }, + { 0x1F40, 11697 }, + { 0x1F44, 11703 }, + { 0x1F42, 11711 }, + { 0x03CC, 11719 }, + { 0x1F78, 11725 }, + { 0x03C5, 11731 }, + { 0x1F7B, 11735 }, + { 0x1F51, 11741 }, + { 0x1F55, 11747 }, + { 0x1F53, 11755 }, + { 0x1F57, 11763 }, + { 0x1F50, 11771 }, + { 0x1F54, 11777 }, + { 0x1F52, 11785 }, + { 0x1F56, 11793 }, + { 0x03CD, 11801 }, + { 0x1F7A, 11807 }, + { 0x1FE1, 11813 }, + { 0x1FE0, 11819 }, + { 0x03CB, 11825 }, + { 0x1FE3, 11831 }, + { 0x03B0, 11839 }, + { 0x1FE2, 11847 }, + { 0x1FE7, 11855 }, + { 0x1FE6, 11863 }, + { 0x0377, 11869 }, + { 0x037D, 11874 }, + { 0x037B, 11881 }, + { 0x03D1, 11887 }, + { 0x717E, 11890 }, + { 0x7178, 11894 }, + { 0x0384, 11898 }, + { 0x1FEF, 11900 }, + { 0x9200, 11902 }, + { 0x9201, 11906 }, + { 0x9202, 11910 }, + { 0x9203, 11914 }, + { 0x9204, 11918 }, + { 0x9205, 11922 }, + { 0x9206, 11926 }, + { 0x9207, 11930 }, + { 0x9208, 11934 }, + { 0x9209, 11938 }, + { 0x920A, 11942 }, + { 0x920B, 11946 }, + { 0x920C, 11950 }, + { 0x920D, 11954 }, + { 0x920E, 11958 }, + { 0x920F, 11962 }, + { 0x9210, 11966 }, + { 0x9211, 11970 }, + { 0x9212, 11974 }, + { 0x9213, 11978 }, + { 0x9214, 11982 }, + { 0x9215, 11986 }, + { 0x9216, 11990 }, + { 0x9217, 11994 }, + { 0x9218, 11998 }, + { 0x9219, 12002 }, + { 0x921A, 12006 }, + { 0x921B, 12010 }, + { 0x921C, 12014 }, + { 0x7187, 12018 }, + { 0x7186, 12021 }, + { 0x7188, 12024 }, + { 0x03F3, 12027 }, + { 0x03DE, 12030 }, + { 0x03E0, 12033 }, + { 0x1D28, 12036 }, + { 0x1D2A, 12041 }, + { 0x1D29, 12046 }, + { 0x1D26, 12051 }, + { 0x1D27, 12056 }, + { 0x03DA, 12061 }, + { 0x03D8, 12064 }, + { 0x03DC, 12068 }, + { 0x03F2, 12071 }, + { 0x03F5, 12075 }, + { 0x7184, 12079 }, + { 0x717A, 12082 }, + { 0x7185, 12085 }, + { 0x03CF, 12088 }, + { 0x03F4, 12092 }, + { 0x03FE, 12096 }, + { 0x039C, 12102 }, + { 0x039D, 12106 }, + { 0x03A0, 12110 }, + { 0x039E, 12114 }, + { 0x03A7, 12118 }, + { 0x0397, 12122 }, + { 0x1FCB, 12126 }, + { 0x1F29, 12132 }, + { 0x1F2D, 12138 }, + { 0x1F9D, 12146 }, + { 0x1F2B, 12156 }, + { 0x1F9B, 12164 }, + { 0x1F2F, 12174 }, + { 0x1F9F, 12182 }, + { 0x1F99, 12192 }, + { 0x1F28, 12200 }, + { 0x1F2C, 12206 }, + { 0x1F9C, 12214 }, + { 0x1F2A, 12224 }, + { 0x1F9A, 12232 }, + { 0x1F2E, 12242 }, + { 0x1F9E, 12250 }, + { 0x1F98, 12260 }, + { 0x0389, 12268 }, + { 0x1FCA, 12274 }, + { 0x1FCC, 12280 }, + { 0x03A6, 12286 }, + { 0x03A8, 12290 }, + { 0x03A1, 12294 }, + { 0x1FEC, 12298 }, + { 0x03FA, 12304 }, + { 0x03F7, 12308 }, + { 0x03A4, 12312 }, + { 0x0392, 12316 }, + { 0x0370, 12320 }, + { 0x0399, 12324 }, + { 0x1FDB, 12328 }, + { 0x1F39, 12334 }, + { 0x1F3D, 12340 }, + { 0x1F3B, 12348 }, + { 0x1F3F, 12356 }, + { 0x1F38, 12364 }, + { 0x1F3C, 12370 }, + { 0x1F3A, 12378 }, + { 0x1F3E, 12386 }, + { 0x038A, 12394 }, + { 0x1FDA, 12400 }, + { 0x1FD9, 12406 }, + { 0x1FD8, 12412 }, + { 0x03AA, 12418 }, + { 0x0396, 12424 }, + { 0x0391, 12428 }, + { 0x1FBB, 12432 }, + { 0x1F09, 12438 }, + { 0x1F0D, 12444 }, + { 0x1F8D, 12452 }, + { 0x1F0B, 12462 }, + { 0x1F8B, 12470 }, + { 0x1F0F, 12480 }, + { 0x1F8F, 12488 }, + { 0x1F89, 12498 }, + { 0x1F08, 12506 }, + { 0x1F0C, 12512 }, + { 0x1F8C, 12520 }, + { 0x1F0A, 12530 }, + { 0x1F8A, 12538 }, + { 0x1F0E, 12548 }, + { 0x1F8E, 12556 }, + { 0x1F88, 12566 }, + { 0x0386, 12574 }, + { 0x1FBA, 12580 }, + { 0x1FB9, 12586 }, + { 0x1FB8, 12592 }, + { 0x1FBC, 12598 }, + { 0x0394, 12604 }, + { 0x0393, 12608 }, + { 0x039A, 12612 }, + { 0x039B, 12616 }, + { 0x03A9, 12620 }, + { 0x1FFB, 12624 }, + { 0x1F69, 12630 }, + { 0x1F6D, 12636 }, + { 0x1FAD, 12644 }, + { 0x1F6B, 12654 }, + { 0x1FAB, 12662 }, + { 0x1F6F, 12672 }, + { 0x1FAF, 12680 }, + { 0x1FA9, 12690 }, + { 0x1F68, 12698 }, + { 0x1F6C, 12704 }, + { 0x1FAC, 12712 }, + { 0x1F6A, 12722 }, + { 0x1FAA, 12730 }, + { 0x1F6E, 12740 }, + { 0x1FAE, 12748 }, + { 0x1FA8, 12758 }, + { 0x038F, 12766 }, + { 0x1FFA, 12772 }, + { 0x1FFC, 12778 }, + { 0x03A3, 12784 }, + { 0x0398, 12788 }, + { 0x0372, 12792 }, + { 0x0395, 12797 }, + { 0x1FC9, 12801 }, + { 0x1F19, 12807 }, + { 0x1F1D, 12813 }, + { 0x1F1B, 12821 }, + { 0x1F18, 12829 }, + { 0x1F1C, 12835 }, + { 0x1F1A, 12843 }, + { 0x0388, 12851 }, + { 0x1FC8, 12857 }, + { 0x039F, 12863 }, + { 0x1FF9, 12867 }, + { 0x1F49, 12873 }, + { 0x1F4D, 12879 }, + { 0x1F4B, 12887 }, + { 0x1F48, 12895 }, + { 0x1F4C, 12901 }, + { 0x1F4A, 12909 }, + { 0x038C, 12917 }, + { 0x1FF8, 12923 }, + { 0x03A5, 12929 }, + { 0x1FEB, 12933 }, + { 0x1F59, 12939 }, + { 0x1F5D, 12945 }, + { 0x1F5B, 12953 }, + { 0x1F5F, 12961 }, + { 0x038E, 12969 }, + { 0x1FEA, 12975 }, + { 0x1FE9, 12981 }, + { 0x1FE8, 12987 }, + { 0x03AB, 12993 }, + { 0x0376, 12999 }, + { 0x03F9, 13004 }, + { 0x03FF, 13009 }, + { 0x03FD, 13016 }, + { 0x717B, 13022 }, + { 0x1FBD, 13025 }, + { 0x7182, 13027 }, + { 0x9245, 13031 }, + { 0x0374, 13034 }, + { 0x03D2, 13037 }, + { 0x03D3, 13042 }, + { 0x03D4, 13049 }, + { 0x7181, 13056 }, + { 0x037E, 13059 }, + { 0x03F6, 13062 }, + { 0x7189, 13067 }, + { 0x1FEE, 13071 }, + { 0x1FED, 13075 }, + { 0x1FC1, 13079 }, + { 0x0385, 13083 }, + { 0x1D6A, 13086 }, + { 0x1D69, 13091 }, + { 0x1D68, 13096 }, + { 0x1D66, 13101 }, + { 0x1D67, 13106 }, + { 0x7141, 13111 }, + { 0x7142, 13116 }, + { 0x7152, 13121 }, + { 0x714B, 13127 }, + { 0x7140, 13133 }, + { 0x7154, 13138 }, + { 0x714D, 13144 }, + { 0x7157, 13150 }, + { 0x7150, 13155 }, + { 0x7149, 13160 }, + { 0x7155, 13165 }, + { 0x7143, 13171 }, + { 0x7145, 13175 }, + { 0x7153, 13180 }, + { 0x714C, 13186 }, + { 0x714F, 13192 }, + { 0x7148, 13197 }, + { 0x7146, 13202 }, + { 0x714E, 13207 }, + { 0x7144, 13213 }, + { 0x7151, 13217 }, + { 0x714A, 13222 }, + { 0x7147, 13227 }, + { 0x7156, 13232 }, + { 0x7170, 13238 }, + { 0x7173, 13243 }, + { 0x7158, 13248 }, + { 0x715D, 13253 }, + { 0x7174, 13258 }, + { 0x7159, 13263 }, + { 0x716A, 13267 }, + { 0x7171, 13272 }, + { 0x7164, 13277 }, + { 0x715C, 13281 }, + { 0x716E, 13285 }, + { 0x7172, 13290 }, + { 0x7169, 13295 }, + { 0x716B, 13299 }, + { 0x7165, 13304 }, + { 0x716F, 13308 }, + { 0x7163, 13313 }, + { 0x715B, 13317 }, + { 0x715E, 13321 }, + { 0x716C, 13326 }, + { 0x715A, 13331 }, + { 0x7162, 13335 }, + { 0x7168, 13339 }, + { 0x7160, 13343 }, + { 0x7161, 13347 }, + { 0x715F, 13353 }, + { 0x716D, 13357 }, + { 0x7166, 13362 }, + { 0x7167, 13366 }, + { 0x1FC0, 13372 }, + { 0x921D, 13374 }, + { 0x921E, 13378 }, + { 0x921F, 13382 }, + { 0x9220, 13386 }, + { 0x9221, 13390 }, + { 0x9222, 13394 }, + { 0x9223, 13398 }, + { 0x9224, 13402 }, + { 0x9225, 13406 }, + { 0x9226, 13410 }, + { 0x9227, 13414 }, + { 0x9228, 13418 }, + { 0x9229, 13422 }, + { 0x922A, 13426 }, + { 0x922B, 13430 }, + { 0x922C, 13434 }, + { 0x922D, 13438 }, + { 0x922E, 13442 }, + { 0x922F, 13446 }, + { 0x9230, 13450 }, + { 0x9231, 13454 }, + { 0x9232, 13458 }, + { 0x9233, 13462 }, + { 0x9234, 13466 }, + { 0x9235, 13470 }, + { 0x9236, 13474 }, + { 0x9237, 13478 }, + { 0x9238, 13482 }, + { 0x9239, 13486 }, + { 0x923A, 13490 }, + { 0x923B, 13494 }, + { 0x923C, 13498 }, + { 0x923D, 13502 }, + { 0x923E, 13506 }, + { 0x923F, 13510 }, + { 0x9240, 13514 }, + { 0x9241, 13518 }, + { 0x037A, 13522 }, + { 0x1FBE, 13524 }, + { 0x2724, 13526 }, + { 0x271C, 13530 }, + { 0x2764, 13534 }, + { 0x27A6, 13537 }, + { 0x27A5, 13544 }, + { 0x2714, 13551 }, + { 0x2738, 13554 }, + { 0x274B, 13560 }, + { 0x271A, 13565 }, + { 0x2763, 13568 }, + { 0x27AD, 13573 }, + { 0x279A, 13579 }, + { 0x2798, 13583 }, + { 0x27AE, 13587 }, + { 0x2718, 13593 }, + { 0x27A0, 13596 }, + { 0x275E, 13601 }, + { 0x275D, 13607 }, + { 0x275C, 13614 }, + { 0x275B, 13620 }, + { 0x2746, 13627 }, + { 0x2748, 13630 }, + { 0x2731, 13632 }, + { 0x272E, 13634 }, + { 0x275A, 13638 }, + { 0x2799, 13641 }, + { 0x2762, 13644 }, + { 0x2794, 13648 }, + { 0x279C, 13652 }, + { 0x27BD, 13656 }, + { 0x2770, 13660 }, + { 0x276E, 13665 }, + { 0x2716, 13671 }, + { 0x2771, 13674 }, + { 0x276F, 13679 }, + { 0x27B9, 13685 }, + { 0x27B7, 13690 }, + { 0x27B8, 13695 }, + { 0x27A8, 13699 }, + { 0x273D, 13704 }, + { 0x2743, 13707 }, + { 0x279E, 13711 }, + { 0x27BB, 13715 }, + { 0x2302, 13719 }, + { 0x22B7, 13720 }, + { 0x2253, 13722 }, + { 0x592E, 13728 }, + { 0x592F, 13732 }, + { 0x592C, 13736 }, + { 0x592D, 13740 }, + { 0x592B, 13745 }, + { 0x5901, 13749 }, + { 0x5906, 13753 }, + { 0x5902, 13757 }, + { 0x5905, 13761 }, + { 0x5904, 13765 }, + { 0x5909, 13769 }, + { 0x5900, 13773 }, + { 0x5908, 13777 }, + { 0x5907, 13781 }, + { 0x5903, 13785 }, + { 0x5927, 13789 }, + { 0x592A, 13793 }, + { 0x5928, 13797 }, + { 0x5929, 13801 }, + { 0x5926, 13805 }, + { 0x5922, 13809 }, + { 0x5924, 13813 }, + { 0x5919, 13817 }, + { 0x5921, 13821 }, + { 0x5918, 13825 }, + { 0x590C, 13829 }, + { 0x591F, 13833 }, + { 0x590A, 13837 }, + { 0x591C, 13841 }, + { 0x5917, 13845 }, + { 0x5914, 13849 }, + { 0x5923, 13853 }, + { 0x5925, 13857 }, + { 0x5915, 13861 }, + { 0x591A, 13865 }, + { 0x590E, 13869 }, + { 0x5912, 13873 }, + { 0x5920, 13877 }, + { 0x591D, 13881 }, + { 0x591B, 13885 }, + { 0x5910, 13889 }, + { 0x5913, 13893 }, + { 0x590B, 13897 }, + { 0x590D, 13901 }, + { 0x5911, 13905 }, + { 0x5916, 13909 }, + { 0x590F, 13913 }, + { 0x591E, 13917 }, + { 0x17D7, 13921 }, + { 0x17D4, 13925 }, + { 0x17CF, 13928 }, + { 0x17D2, 13931 }, + { 0x17CC, 13934 }, + { 0x17CB, 13937 }, + { 0x17D8, 13940 }, + { 0x17D6, 13943 }, + { 0x17D9, 13948 }, + { 0x17D0, 13952 }, + { 0x17D1, 13956 }, + { 0x17CE, 13959 }, + { 0x17DA, 13962 }, + { 0x17C6, 13965 }, + { 0x17C7, 13968 }, + { 0x17CA, 13971 }, + { 0x17DD, 13974 }, + { 0x17D5, 13977 }, + { 0x17D3, 13980 }, + { 0x17C9, 13983 }, + { 0x17CD, 13986 }, + { 0x17DC, 13989 }, + { 0x17C8, 13992 }, + { 0x17E1, 13995 }, + { 0x17E6, 13998 }, + { 0x17E2, 14001 }, + { 0x17E5, 14004 }, + { 0x17E4, 14007 }, + { 0x17E9, 14010 }, + { 0x17E0, 14013 }, + { 0x17E8, 14016 }, + { 0x17E7, 14019 }, + { 0x17E3, 14022 }, + { 0x17C1, 14025 }, + { 0x17B7, 14029 }, + { 0x17BB, 14033 }, + { 0x17B9, 14037 }, + { 0x17B6, 14041 }, + { 0x17C2, 14045 }, + { 0x17C3, 14049 }, + { 0x17C5, 14053 }, + { 0x17C0, 14057 }, + { 0x17B8, 14061 }, + { 0x17BE, 14065 }, + { 0x17C4, 14069 }, + { 0x17BD, 14073 }, + { 0x17BC, 14077 }, + { 0x17BF, 14081 }, + { 0x17BA, 14085 }, + { 0x17B5, 14089 }, + { 0x17B4, 14093 }, + { 0x1794, 14097 }, + { 0x1785, 14100 }, + { 0x1787, 14103 }, + { 0x178A, 14106 }, + { 0x178C, 14109 }, + { 0x17A0, 14112 }, + { 0x1780, 14115 }, + { 0x1782, 14118 }, + { 0x17A1, 14121 }, + { 0x179B, 14124 }, + { 0x1798, 14127 }, + { 0x1793, 14130 }, + { 0x1796, 14133 }, + { 0x17A2, 14136 }, + { 0x179A, 14139 }, + { 0x179F, 14142 }, + { 0x178F, 14145 }, + { 0x1791, 14148 }, + { 0x179C, 14151 }, + { 0x1799, 14154 }, + { 0x1786, 14157 }, + { 0x1788, 14160 }, + { 0x1781, 14163 }, + { 0x1783, 14166 }, + { 0x1784, 14169 }, + { 0x178E, 14172 }, + { 0x1789, 14175 }, + { 0x1795, 14178 }, + { 0x1797, 14181 }, + { 0x179D, 14184 }, + { 0x179E, 14187 }, + { 0x1790, 14190 }, + { 0x1792, 14193 }, + { 0x178B, 14196 }, + { 0x178D, 14199 }, + { 0x19F3, 14202 }, + { 0x19E3, 14206 }, + { 0x19FA, 14210 }, + { 0x19EA, 14214 }, + { 0x17F3, 14218 }, + { 0x17F2, 14223 }, + { 0x17F0, 14228 }, + { 0x17F4, 14233 }, + { 0x17F1, 14238 }, + { 0x17F5, 14243 }, + { 0x17F8, 14248 }, + { 0x17F7, 14253 }, + { 0x17F9, 14258 }, + { 0x17F6, 14263 }, + { 0x19F2, 14268 }, + { 0x19E2, 14272 }, + { 0x19F4, 14276 }, + { 0x19E4, 14280 }, + { 0x19F1, 14284 }, + { 0x19E1, 14288 }, + { 0x19F5, 14292 }, + { 0x19E5, 14296 }, + { 0x19FD, 14300 }, + { 0x19ED, 14304 }, + { 0x19FC, 14308 }, + { 0x19EC, 14312 }, + { 0x19FE, 14316 }, + { 0x19EE, 14320 }, + { 0x19FB, 14324 }, + { 0x19EB, 14328 }, + { 0x19FF, 14332 }, + { 0x19EF, 14336 }, + { 0x19F8, 14340 }, + { 0x19E8, 14344 }, + { 0x19F7, 14348 }, + { 0x19E7, 14352 }, + { 0x19F9, 14356 }, + { 0x19E9, 14360 }, + { 0x19F6, 14364 }, + { 0x19E6, 14368 }, + { 0x19F0, 14372 }, + { 0x19E0, 14375 }, + { 0x17DB, 14378 }, + { 0x17AD, 14382 }, + { 0x17AF, 14386 }, + { 0x17A5, 14390 }, + { 0x17A7, 14394 }, + { 0x17AB, 14398 }, + { 0x17AE, 14402 }, + { 0x17A4, 14406 }, + { 0x17B0, 14410 }, + { 0x17A3, 14414 }, + { 0x17B3, 14418 }, + { 0x17A6, 14422 }, + { 0x17B1, 14426 }, + { 0x17B2, 14432 }, + { 0x17A8, 14438 }, + { 0x17A9, 14442 }, + { 0x17AC, 14446 }, + { 0x17AA, 14450 }, + { 0x27D8, 14454 }, + { 0x27D9, 14457 }, + { 0x2A1E, 14460 }, + { 0x25EF, 14464 }, + { 0x2AFC, 14466 }, + { 0x271D, 14471 }, + { 0x0061, 14473 }, + { 0x0227, 14477 }, + { 0x01E1, 14484 }, + { 0x1EA1, 14493 }, + { 0x1EA3, 14500 }, + { 0x00E5, 14507 }, + { 0x01FB, 14514 }, + { 0x1E01, 14523 }, + { 0x00E1, 14530 }, + { 0x0103, 14536 }, + { 0x1EB7, 14542 }, + { 0x1EB3, 14551 }, + { 0x1EAF, 14560 }, + { 0x1EB1, 14568 }, + { 0x1EB5, 14576 }, + { 0x01CE, 14584 }, + { 0x00E0, 14590 }, + { 0x1E9A, 14596 }, + { 0x00E3, 14604 }, + { 0x0201, 14610 }, + { 0x0101, 14617 }, + { 0x0105, 14623 }, + { 0x2C65, 14629 }, + { 0x0203, 14635 }, + { 0x00E4, 14642 }, + { 0x01DF, 14648 }, + { 0x1D8F, 14656 }, + { 0x00E2, 14663 }, + { 0x1EAD, 14669 }, + { 0x1EA9, 14678 }, + { 0x1EA5, 14687 }, + { 0x1EA7, 14695 }, + { 0x1EAB, 14703 }, + { 0x0062, 14711 }, + { 0x1E03, 14715 }, + { 0x1E05, 14722 }, + { 0x0253, 14729 }, + { 0x1E07, 14735 }, + { 0x1D6C, 14742 }, + { 0x0180, 14749 }, + { 0x0183, 14755 }, + { 0x1D80, 14761 }, + { 0x0063, 14768 }, + { 0x010B, 14772 }, + { 0x0255, 14779 }, + { 0x0188, 14785 }, + { 0x0107, 14791 }, + { 0x010D, 14797 }, + { 0x023C, 14803 }, + { 0x00E7, 14809 }, + { 0x1E09, 14815 }, + { 0x0109, 14823 }, + { 0x0064, 14829 }, + { 0x1E0B, 14833 }, + { 0x1E0D, 14840 }, + { 0x0221, 14847 }, + { 0x0257, 14853 }, + { 0x1D91, 14859 }, + { 0x1E0F, 14867 }, + { 0x0256, 14874 }, + { 0x010F, 14880 }, + { 0x1D6D, 14886 }, + { 0x0111, 14893 }, + { 0x018C, 14899 }, + { 0x1E11, 14905 }, + { 0x1D81, 14911 }, + { 0x1E13, 14918 }, + { 0x0065, 14925 }, + { 0x0117, 14929 }, + { 0x1EB9, 14936 }, + { 0x1EBB, 14943 }, + { 0x00E9, 14950 }, + { 0x0115, 14956 }, + { 0x011B, 14962 }, + { 0x00E8, 14968 }, + { 0x2C78, 14974 }, + { 0x1EBD, 14980 }, + { 0x1E1B, 14986 }, + { 0x0205, 14993 }, + { 0x0113, 15000 }, + { 0x1E17, 15006 }, + { 0x1E15, 15014 }, + { 0x0119, 15022 }, + { 0x0247, 15028 }, + { 0x0229, 15034 }, + { 0x1E1D, 15040 }, + { 0x0207, 15048 }, + { 0x00EB, 15055 }, + { 0x1D92, 15061 }, + { 0x00EA, 15068 }, + { 0x1EC7, 15074 }, + { 0x1EC3, 15083 }, + { 0x1EBF, 15092 }, + { 0x1EC1, 15100 }, + { 0x1EC5, 15108 }, + { 0x1E19, 15116 }, + { 0x0066, 15123 }, + { 0x1E1F, 15127 }, + { 0x0192, 15134 }, + { 0x1D6E, 15140 }, + { 0x1D82, 15147 }, + { 0x0067, 15154 }, + { 0x0121, 15158 }, + { 0x0260, 15165 }, + { 0x01F5, 15171 }, + { 0x011F, 15177 }, + { 0x01E7, 15183 }, + { 0x1E21, 15189 }, + { 0x01E5, 15195 }, + { 0x0123, 15201 }, + { 0x1D83, 15207 }, + { 0x011D, 15214 }, + { 0x0068, 15220 }, + { 0x1E23, 15224 }, + { 0x1E25, 15231 }, + { 0x0266, 15238 }, + { 0x1E96, 15244 }, + { 0x1E2B, 15251 }, + { 0x021F, 15258 }, + { 0x0127, 15264 }, + { 0x1E29, 15270 }, + { 0x2C68, 15276 }, + { 0x1E27, 15282 }, + { 0x0125, 15288 }, + { 0x0069, 15294 }, + { 0x1ECB, 15298 }, + { 0x1EC9, 15305 }, + { 0x00ED, 15312 }, + { 0x012D, 15318 }, + { 0x01D0, 15324 }, + { 0x00EC, 15330 }, + { 0x0129, 15336 }, + { 0x1E2D, 15342 }, + { 0x0209, 15349 }, + { 0x012B, 15356 }, + { 0x012F, 15362 }, + { 0x0268, 15368 }, + { 0x020B, 15374 }, + { 0x00EF, 15381 }, + { 0x1E2F, 15387 }, + { 0x1D96, 15395 }, + { 0x00EE, 15402 }, + { 0x006A, 15408 }, + { 0x01F0, 15412 }, + { 0x0249, 15418 }, + { 0x0135, 15424 }, + { 0x029D, 15430 }, + { 0x006B, 15436 }, + { 0x1E33, 15440 }, + { 0x0199, 15447 }, + { 0x1E35, 15453 }, + { 0x1E31, 15460 }, + { 0x01E9, 15466 }, + { 0x5741, 15472 }, + { 0x5745, 15478 }, + { 0x0137, 15487 }, + { 0x1D84, 15493 }, + { 0x5743, 15500 }, + { 0x2C6A, 15507 }, + { 0x006C, 15513 }, + { 0x019A, 15517 }, + { 0x1E37, 15523 }, + { 0x1E39, 15530 }, + { 0x026C, 15539 }, + { 0x0234, 15545 }, + { 0x5749, 15551 }, + { 0x1E3B, 15558 }, + { 0x013A, 15565 }, + { 0x013E, 15571 }, + { 0x2C61, 15577 }, + { 0x0140, 15584 }, + { 0x026B, 15591 }, + { 0x0142, 15598 }, + { 0x013C, 15604 }, + { 0x1D85, 15610 }, + { 0x026D, 15617 }, + { 0x1E3D, 15624 }, + { 0x006D, 15631 }, + { 0x1E41, 15635 }, + { 0x1E43, 15642 }, + { 0x0271, 15649 }, + { 0x1E3F, 15655 }, + { 0x1D6F, 15661 }, + { 0x1D86, 15668 }, + { 0x006E, 15675 }, + { 0x1E45, 15679 }, + { 0x1E47, 15686 }, + { 0x0235, 15693 }, + { 0x0272, 15699 }, + { 0x1E49, 15706 }, + { 0x019E, 15713 }, + { 0x0144, 15721 }, + { 0x0148, 15727 }, + { 0x01F9, 15733 }, + { 0x00F1, 15739 }, + { 0x1D70, 15745 }, + { 0x0146, 15752 }, + { 0x1D87, 15758 }, + { 0x0273, 15765 }, + { 0x1E4B, 15772 }, + { 0x0149, 15779 }, + { 0x006F, 15786 }, + { 0x022F, 15790 }, + { 0x0231, 15797 }, + { 0x1ECD, 15806 }, + { 0x2C7A, 15813 }, + { 0x1ECF, 15821 }, + { 0x01A1, 15828 }, + { 0x1EE3, 15834 }, + { 0x1EDF, 15843 }, + { 0x1EDB, 15852 }, + { 0x1EDD, 15860 }, + { 0x1EE1, 15868 }, + { 0x574B, 15876 }, + { 0x574D, 15884 }, + { 0x00F3, 15890 }, + { 0x014F, 15896 }, + { 0x01D2, 15902 }, + { 0x00F2, 15908 }, + { 0x00F5, 15914 }, + { 0x1E4D, 15920 }, + { 0x022D, 15928 }, + { 0x1E4F, 15936 }, + { 0x0151, 15944 }, + { 0x020D, 15951 }, + { 0x014D, 15958 }, + { 0x1E53, 15964 }, + { 0x1E51, 15972 }, + { 0x01EB, 15980 }, + { 0x01ED, 15986 }, + { 0x00F8, 15994 }, + { 0x01FF, 16000 }, + { 0x020F, 16008 }, + { 0x00F6, 16015 }, + { 0x022B, 16021 }, + { 0x00F4, 16029 }, + { 0x1ED9, 16035 }, + { 0x1ED5, 16044 }, + { 0x1ED1, 16053 }, + { 0x1ED3, 16061 }, + { 0x1ED7, 16069 }, + { 0x0070, 16077 }, + { 0x1E57, 16081 }, + { 0x01A5, 16088 }, + { 0x1E55, 16094 }, + { 0x1D71, 16100 }, + { 0x1D7D, 16107 }, + { 0x5751, 16113 }, + { 0x1D88, 16121 }, + { 0x5753, 16128 }, + { 0x5755, 16134 }, + { 0x0071, 16141 }, + { 0x02A0, 16145 }, + { 0x024B, 16151 }, + { 0x5757, 16158 }, + { 0x5759, 16166 }, + { 0x0072, 16173 }, + { 0x1E59, 16177 }, + { 0x1E5B, 16184 }, + { 0x1E5D, 16191 }, + { 0x1E5F, 16200 }, + { 0x027C, 16207 }, + { 0x027D, 16214 }, + { 0x0155, 16220 }, + { 0x0159, 16226 }, + { 0x0211, 16232 }, + { 0x1D72, 16239 }, + { 0x024D, 16246 }, + { 0x0157, 16252 }, + { 0x1D89, 16258 }, + { 0x027E, 16265 }, + { 0x1D73, 16271 }, + { 0x0213, 16280 }, + { 0x575B, 16287 }, + { 0x0073, 16292 }, + { 0x1E61, 16296 }, + { 0x1E63, 16303 }, + { 0x1E69, 16310 }, + { 0x0282, 16320 }, + { 0x015B, 16326 }, + { 0x1E65, 16332 }, + { 0x0161, 16341 }, + { 0x1E67, 16347 }, + { 0x0219, 16356 }, + { 0x023F, 16363 }, + { 0x1D74, 16370 }, + { 0x015F, 16377 }, + { 0x1D8A, 16383 }, + { 0x015D, 16390 }, + { 0x0074, 16396 }, + { 0x1E6B, 16400 }, + { 0x1E6D, 16407 }, + { 0x0236, 16414 }, + { 0x01AD, 16420 }, + { 0x1E6F, 16426 }, + { 0x0165, 16433 }, + { 0x021B, 16439 }, + { 0x1D75, 16446 }, + { 0x0167, 16453 }, + { 0x0163, 16459 }, + { 0x01AB, 16465 }, + { 0x2C66, 16472 }, + { 0x1E97, 16479 }, + { 0x0288, 16485 }, + { 0x1E71, 16492 }, + { 0x0075, 16499 }, + { 0x0289, 16503 }, + { 0x1EE5, 16508 }, + { 0x1EE7, 16515 }, + { 0x01B0, 16522 }, + { 0x1EF1, 16528 }, + { 0x1EED, 16537 }, + { 0x1EE9, 16546 }, + { 0x1EEB, 16554 }, + { 0x1EEF, 16562 }, + { 0x016F, 16570 }, + { 0x00FA, 16577 }, + { 0x016D, 16583 }, + { 0x01D4, 16589 }, + { 0x00F9, 16595 }, + { 0x0169, 16601 }, + { 0x1E79, 16607 }, + { 0x1E75, 16615 }, + { 0x0171, 16622 }, + { 0x0215, 16629 }, + { 0x016B, 16636 }, + { 0x1E7B, 16642 }, + { 0x0173, 16650 }, + { 0x0217, 16656 }, + { 0x00FC, 16663 }, + { 0x01D8, 16669 }, + { 0x01DA, 16677 }, + { 0x01DC, 16685 }, + { 0x01D6, 16693 }, + { 0x1E73, 16701 }, + { 0x1D99, 16708 }, + { 0x00FB, 16715 }, + { 0x1E77, 16721 }, + { 0x0076, 16728 }, + { 0x1E7F, 16732 }, + { 0x2C74, 16739 }, + { 0x028B, 16745 }, + { 0x2C71, 16751 }, + { 0x1E7D, 16758 }, + { 0x1D8C, 16764 }, + { 0x575F, 16771 }, + { 0x0077, 16778 }, + { 0x1E87, 16782 }, + { 0x1E89, 16789 }, + { 0x2C73, 16796 }, + { 0x1E98, 16802 }, + { 0x1E83, 16809 }, + { 0x1E81, 16815 }, + { 0x1E85, 16821 }, + { 0x0175, 16827 }, + { 0x0078, 16833 }, + { 0x1E8B, 16837 }, + { 0x1D8D, 16844 }, + { 0x1E8D, 16851 }, + { 0x0079, 16857 }, + { 0x1E8F, 16861 }, + { 0x1EF5, 16868 }, + { 0x01B4, 16875 }, + { 0x1EF7, 16881 }, + { 0x1EFF, 16888 }, + { 0x1E99, 16894 }, + { 0x00FD, 16901 }, + { 0x1EF3, 16907 }, + { 0x1EF9, 16913 }, + { 0x0233, 16919 }, + { 0x024F, 16925 }, + { 0x00FF, 16931 }, + { 0x0177, 16937 }, + { 0x007A, 16943 }, + { 0x017C, 16947 }, + { 0x1E93, 16954 }, + { 0x0291, 16961 }, + { 0x0225, 16967 }, + { 0x1E95, 16973 }, + { 0x017A, 16980 }, + { 0x017E, 16986 }, + { 0x0240, 16992 }, + { 0x1D76, 16999 }, + { 0x01B6, 17006 }, + { 0x1D8E, 17012 }, + { 0x2C6C, 17019 }, + { 0x0290, 17025 }, + { 0x1E91, 17032 }, + { 0x5733, 17038 }, + { 0x00E6, 17042 }, + { 0x01FD, 17046 }, + { 0x01E3, 17052 }, + { 0x5735, 17058 }, + { 0x5737, 17062 }, + { 0x5739, 17066 }, + { 0x573B, 17070 }, + { 0x573D, 17077 }, + { 0x0238, 17081 }, + { 0x01F3, 17086 }, + { 0x01C6, 17090 }, + { 0x02A3, 17096 }, + { 0x02A5, 17101 }, + { 0x576B, 17108 }, + { 0x0195, 17112 }, + { 0x576D, 17116 }, + { 0x01C9, 17120 }, + { 0x02AA, 17124 }, + { 0x02AB, 17129 }, + { 0x01CC, 17134 }, + { 0x01A3, 17138 }, + { 0x574F, 17142 }, + { 0x0223, 17146 }, + { 0x0239, 17150 }, + { 0x02A8, 17155 }, + { 0x1D7A, 17162 }, + { 0x02A6, 17168 }, + { 0x5729, 17173 }, + { 0x1D6B, 17177 }, + { 0x5778, 17181 }, + { 0x5761, 17185 }, + { 0x576F, 17189 }, + { 0x5771, 17193 }, + { 0x014B, 17197 }, + { 0x0283, 17201 }, + { 0x0286, 17205 }, + { 0x1D8B, 17211 }, + { 0x1D98, 17218 }, + { 0x00F0, 17225 }, + { 0x0292, 17229 }, + { 0x0293, 17233 }, + { 0x01BA, 17239 }, + { 0x01EF, 17245 }, + { 0x1D9A, 17251 }, + { 0x01B9, 17258 }, + { 0x0138, 17263 }, + { 0x5772, 17267 }, + { 0x5773, 17271 }, + { 0x5774, 17275 }, + { 0x0278, 17279 }, + { 0x5775, 17283 }, + { 0x575D, 17287 }, + { 0x1D16, 17292 }, + { 0x5777, 17298 }, + { 0x02A4, 17302 }, + { 0x02A9, 17307 }, + { 0x2C76, 17312 }, + { 0x5727, 17317 }, + { 0x0267, 17321 }, + { 0x0269, 17327 }, + { 0x1D7C, 17331 }, + { 0x026E, 17337 }, + { 0x017F, 17341 }, + { 0x1E9B, 17346 }, + { 0x1E9D, 17354 }, + { 0x1E9C, 17362 }, + { 0x025B, 17370 }, + { 0x1D93, 17375 }, + { 0x0254, 17383 }, + { 0x1D97, 17388 }, + { 0x0264, 17396 }, + { 0x02A7, 17401 }, + { 0x0185, 17406 }, + { 0x01A8, 17411 }, + { 0x01BD, 17416 }, + { 0x5769, 17421 }, + { 0x021D, 17425 }, + { 0x0251, 17429 }, + { 0x1D90, 17433 }, + { 0x1E9F, 17440 }, + { 0x0263, 17444 }, + { 0x0259, 17448 }, + { 0x025A, 17452 }, + { 0x1D95, 17458 }, + { 0x00DF, 17465 }, + { 0x0285, 17470 }, + { 0x00FE, 17476 }, + { 0x5765, 17480 }, + { 0x5767, 17486 }, + { 0x0275, 17494 }, + { 0x1D17, 17499 }, + { 0x5747, 17505 }, + { 0x029A, 17510 }, + { 0x0277, 17516 }, + { 0x025E, 17521 }, + { 0x019B, 17528 }, + { 0x0261, 17534 }, + { 0x0250, 17539 }, + { 0x01DD, 17544 }, + { 0x1D77, 17549 }, + { 0x0265, 17554 }, + { 0x02AE, 17559 }, + { 0x02AF, 17566 }, + { 0x1D09, 17575 }, + { 0x029E, 17580 }, + { 0x5781, 17585 }, + { 0x026F, 17590 }, + { 0x0270, 17595 }, + { 0x0279, 17603 }, + { 0x027B, 17608 }, + { 0x027A, 17615 }, + { 0x2C79, 17623 }, + { 0x0287, 17630 }, + { 0x028C, 17635 }, + { 0x028D, 17640 }, + { 0x028E, 17645 }, + { 0x1D02, 17650 }, + { 0x1D14, 17655 }, + { 0x1D08, 17660 }, + { 0x0252, 17666 }, + { 0x018D, 17671 }, + { 0x577F, 17676 }, + { 0x0131, 17682 }, + { 0x0237, 17687 }, + { 0x025F, 17692 }, + { 0x0284, 17699 }, + { 0x0242, 17708 }, + { 0x577A, 17713 }, + { 0x577C, 17718 }, + { 0x1D79, 17723 }, + { 0x5783, 17728 }, + { 0x5785, 17733 }, + { 0x5787, 17738 }, + { 0x028A, 17743 }, + { 0x1D7F, 17747 }, + { 0x2184, 17753 }, + { 0x573F, 17758 }, + { 0x0258, 17765 }, + { 0x027F, 17770 }, + { 0x025C, 17777 }, + { 0x025D, 17783 }, + { 0x1D94, 17791 }, + { 0x578C, 17800 }, + { 0x1D11, 17804 }, + { 0x1D13, 17809 }, + { 0x1D1D, 17816 }, + { 0x1D12, 17821 }, + { 0x1D1F, 17827 }, + { 0x1D1E, 17833 }, + { 0x2C77, 17839 }, + { 0x572B, 17844 }, + { 0x572D, 17848 }, + { 0x572F, 17852 }, + { 0x5763, 17858 }, + { 0x1EFD, 17863 }, + { 0x1EFB, 17868 }, + { 0x5725, 17873 }, + { 0x5723, 17878 }, + { 0x1D7B, 17883 }, + { 0x1D7E, 17890 }, + { 0x6B00, 17897 }, + { 0x6B01, 17901 }, + { 0x6B02, 17905 }, + { 0x0133, 17909 }, + { 0x0153, 17913 }, + { 0x6B06, 17917 }, + { 0x6B03, 17921 }, + { 0x6B04, 17925 }, + { 0x6B05, 17929 }, + { 0x01A6, 17935 }, + { 0x1D25, 17938 }, + { 0x01BB, 17941 }, + { 0x01BF, 17946 }, + { 0x1D00, 17949 }, + { 0x0299, 17954 }, + { 0x1D04, 17959 }, + { 0x1D05, 17964 }, + { 0x1D07, 17969 }, + { 0x5730, 17974 }, + { 0x0262, 17979 }, + { 0x029B, 17984 }, + { 0x029C, 17991 }, + { 0x026A, 17996 }, + { 0x1D0A, 18001 }, + { 0x1D0B, 18006 }, + { 0x029F, 18011 }, + { 0x1D0C, 18016 }, + { 0x1D0D, 18023 }, + { 0x0274, 18028 }, + { 0x1D0F, 18033 }, + { 0x1D18, 18038 }, + { 0x0280, 18043 }, + { 0x5731, 18048 }, + { 0x1D1B, 18053 }, + { 0x1D1C, 18058 }, + { 0x1D20, 18063 }, + { 0x1D21, 18068 }, + { 0x028F, 18073 }, + { 0x1D22, 18078 }, + { 0x1D01, 18083 }, + { 0x0276, 18088 }, + { 0x1D15, 18093 }, + { 0x1D06, 18098 }, + { 0x1D23, 18103 }, + { 0x5776, 18108 }, + { 0x1D10, 18113 }, + { 0x1D03, 18119 }, + { 0x2C7B, 18125 }, + { 0x1D1A, 18131 }, + { 0x0281, 18137 }, + { 0x1D0E, 18143 }, + { 0x1D19, 18149 }, + { 0x01C0, 18155 }, + { 0x1D24, 18159 }, + { 0x0294, 18164 }, + { 0x02A1, 18168 }, + { 0x01C1, 18174 }, + { 0x01C2, 18178 }, + { 0x02AD, 18182 }, + { 0x0298, 18186 }, + { 0x02AC, 18190 }, + { 0x0296, 18194 }, + { 0x01BE, 18199 }, + { 0x01AA, 18206 }, + { 0x02A2, 18211 }, + { 0x01C3, 18218 }, + { 0x0297, 18222 }, + { 0x0295, 18226 }, + { 0x0041, 18231 }, + { 0x0226, 18235 }, + { 0x01E0, 18242 }, + { 0x1EA0, 18251 }, + { 0x1EA2, 18258 }, + { 0x00C5, 18265 }, + { 0x01FA, 18272 }, + { 0x1E00, 18281 }, + { 0x00C1, 18288 }, + { 0x0102, 18294 }, + { 0x1EB6, 18300 }, + { 0x1EB2, 18309 }, + { 0x1EAE, 18318 }, + { 0x1EB0, 18326 }, + { 0x1EB4, 18334 }, + { 0x01CD, 18342 }, + { 0x00C0, 18348 }, + { 0x00C3, 18354 }, + { 0x0200, 18360 }, + { 0x0100, 18367 }, + { 0x0104, 18373 }, + { 0x023A, 18379 }, + { 0x0202, 18385 }, + { 0x00C4, 18392 }, + { 0x01DE, 18398 }, + { 0x00C2, 18406 }, + { 0x1EAC, 18412 }, + { 0x1EA8, 18421 }, + { 0x1EA4, 18430 }, + { 0x1EA6, 18438 }, + { 0x1EAA, 18446 }, + { 0x0042, 18454 }, + { 0x1E02, 18458 }, + { 0x1E04, 18465 }, + { 0x0181, 18472 }, + { 0x1E06, 18478 }, + { 0x0243, 18485 }, + { 0x0182, 18491 }, + { 0x0043, 18497 }, + { 0x010A, 18501 }, + { 0x0187, 18508 }, + { 0x0106, 18514 }, + { 0x010C, 18520 }, + { 0x023B, 18526 }, + { 0x00C7, 18532 }, + { 0x1E08, 18538 }, + { 0x0108, 18546 }, + { 0x0044, 18552 }, + { 0x1E0A, 18556 }, + { 0x1E0C, 18563 }, + { 0x018A, 18570 }, + { 0x1E0E, 18576 }, + { 0x010E, 18583 }, + { 0x01F2, 18589 }, + { 0x01C5, 18597 }, + { 0x0110, 18607 }, + { 0x018B, 18613 }, + { 0x1E10, 18619 }, + { 0x1E12, 18625 }, + { 0x0045, 18632 }, + { 0x0116, 18636 }, + { 0x1EB8, 18643 }, + { 0x1EBA, 18650 }, + { 0x00C9, 18657 }, + { 0x0114, 18663 }, + { 0x011A, 18669 }, + { 0x00C8, 18675 }, + { 0x1EBC, 18681 }, + { 0x1E1A, 18687 }, + { 0x0204, 18694 }, + { 0x0112, 18701 }, + { 0x1E16, 18707 }, + { 0x1E14, 18715 }, + { 0x0118, 18723 }, + { 0x0246, 18729 }, + { 0x0228, 18735 }, + { 0x1E1C, 18741 }, + { 0x0206, 18749 }, + { 0x00CB, 18756 }, + { 0x00CA, 18762 }, + { 0x1EC6, 18768 }, + { 0x1EC2, 18777 }, + { 0x1EBE, 18786 }, + { 0x1EC0, 18794 }, + { 0x1EC4, 18802 }, + { 0x1E18, 18810 }, + { 0x0046, 18817 }, + { 0x1E1E, 18821 }, + { 0x0191, 18828 }, + { 0x0047, 18834 }, + { 0x0120, 18838 }, + { 0x0193, 18845 }, + { 0x01F4, 18851 }, + { 0x011E, 18857 }, + { 0x01E6, 18863 }, + { 0x1E20, 18869 }, + { 0x01E4, 18875 }, + { 0x0122, 18881 }, + { 0x011C, 18887 }, + { 0x0048, 18893 }, + { 0x1E22, 18897 }, + { 0x1E24, 18904 }, + { 0x1E2A, 18911 }, + { 0x021E, 18918 }, + { 0x0126, 18924 }, + { 0x1E28, 18930 }, + { 0x2C67, 18936 }, + { 0x1E26, 18942 }, + { 0x0124, 18948 }, + { 0x0049, 18954 }, + { 0x0130, 18958 }, + { 0x1ECA, 18965 }, + { 0x1EC8, 18972 }, + { 0x00CD, 18979 }, + { 0x012C, 18985 }, + { 0x01CF, 18991 }, + { 0x00CC, 18997 }, + { 0x0128, 19003 }, + { 0x1E2C, 19009 }, + { 0x0208, 19016 }, + { 0x012A, 19023 }, + { 0x012E, 19029 }, + { 0x0197, 19035 }, + { 0x020A, 19041 }, + { 0x00CF, 19048 }, + { 0x1E2E, 19054 }, + { 0x00CE, 19062 }, + { 0x004A, 19068 }, + { 0x0248, 19072 }, + { 0x0134, 19078 }, + { 0x004B, 19084 }, + { 0x1E32, 19088 }, + { 0x0198, 19095 }, + { 0x1E34, 19101 }, + { 0x1E30, 19108 }, + { 0x01E8, 19114 }, + { 0x5740, 19120 }, + { 0x5744, 19126 }, + { 0x0136, 19135 }, + { 0x5742, 19141 }, + { 0x2C69, 19148 }, + { 0x004C, 19154 }, + { 0x023D, 19158 }, + { 0x1E36, 19164 }, + { 0x1E38, 19171 }, + { 0x5748, 19180 }, + { 0x1E3A, 19187 }, + { 0x0139, 19194 }, + { 0x013D, 19200 }, + { 0x01C8, 19206 }, + { 0x2C60, 19214 }, + { 0x013F, 19221 }, + { 0x2C62, 19228 }, + { 0x0141, 19235 }, + { 0x013B, 19241 }, + { 0x1E3C, 19247 }, + { 0x004D, 19254 }, + { 0x1E40, 19258 }, + { 0x1E42, 19265 }, + { 0x2C6E, 19272 }, + { 0x1E3E, 19278 }, + { 0x004E, 19284 }, + { 0x1E44, 19288 }, + { 0x1E46, 19295 }, + { 0x019D, 19302 }, + { 0x1E48, 19309 }, + { 0x0220, 19316 }, + { 0x0143, 19324 }, + { 0x0147, 19330 }, + { 0x01F8, 19336 }, + { 0x01CB, 19342 }, + { 0x00D1, 19350 }, + { 0x0145, 19356 }, + { 0x1E4A, 19362 }, + { 0x004F, 19369 }, + { 0x022E, 19373 }, + { 0x0230, 19380 }, + { 0x1ECC, 19389 }, + { 0x1ECE, 19396 }, + { 0x01A0, 19403 }, + { 0x1EE2, 19409 }, + { 0x1EDE, 19418 }, + { 0x1EDA, 19427 }, + { 0x1EDC, 19435 }, + { 0x1EE0, 19443 }, + { 0x574A, 19451 }, + { 0x574C, 19459 }, + { 0x00D3, 19465 }, + { 0x014E, 19471 }, + { 0x01D1, 19477 }, + { 0x00D2, 19483 }, + { 0x00D5, 19489 }, + { 0x1E4C, 19495 }, + { 0x022C, 19503 }, + { 0x1E4E, 19511 }, + { 0x0150, 19519 }, + { 0x020C, 19526 }, + { 0x014C, 19533 }, + { 0x1E52, 19539 }, + { 0x1E50, 19547 }, + { 0x019F, 19555 }, + { 0x01EA, 19562 }, + { 0x01EC, 19568 }, + { 0x00D8, 19576 }, + { 0x01FE, 19582 }, + { 0x020E, 19590 }, + { 0x00D6, 19597 }, + { 0x022A, 19603 }, + { 0x00D4, 19611 }, + { 0x1ED8, 19617 }, + { 0x1ED4, 19626 }, + { 0x1ED0, 19635 }, + { 0x1ED2, 19643 }, + { 0x1ED6, 19651 }, + { 0x0050, 19659 }, + { 0x1E56, 19663 }, + { 0x01A4, 19670 }, + { 0x1E54, 19676 }, + { 0x2C63, 19682 }, + { 0x5750, 19688 }, + { 0x5752, 19696 }, + { 0x5754, 19702 }, + { 0x0051, 19709 }, + { 0x5756, 19713 }, + { 0x5758, 19721 }, + { 0x0052, 19728 }, + { 0x1E58, 19732 }, + { 0x1E5A, 19739 }, + { 0x1E5C, 19746 }, + { 0x1E5E, 19755 }, + { 0x2C64, 19762 }, + { 0x0154, 19768 }, + { 0x0158, 19774 }, + { 0x0210, 19780 }, + { 0x024C, 19787 }, + { 0x0156, 19793 }, + { 0x0212, 19799 }, + { 0x575A, 19806 }, + { 0x0053, 19811 }, + { 0x1E60, 19815 }, + { 0x1E62, 19822 }, + { 0x1E68, 19829 }, + { 0x015A, 19839 }, + { 0x1E64, 19845 }, + { 0x0160, 19854 }, + { 0x1E66, 19860 }, + { 0x0218, 19869 }, + { 0x015E, 19876 }, + { 0x015C, 19882 }, + { 0x0054, 19888 }, + { 0x1E6A, 19892 }, + { 0x1E6C, 19899 }, + { 0x01AC, 19906 }, + { 0x1E6E, 19912 }, + { 0x0164, 19919 }, + { 0x021A, 19925 }, + { 0x0166, 19932 }, + { 0x0162, 19938 }, + { 0x023E, 19944 }, + { 0x01AE, 19951 }, + { 0x1E70, 19958 }, + { 0x0055, 19965 }, + { 0x0244, 19969 }, + { 0x1EE4, 19974 }, + { 0x1EE6, 19981 }, + { 0x01AF, 19988 }, + { 0x1EF0, 19994 }, + { 0x1EEC, 20003 }, + { 0x1EE8, 20012 }, + { 0x1EEA, 20020 }, + { 0x1EEE, 20028 }, + { 0x016E, 20036 }, + { 0x00DA, 20043 }, + { 0x016C, 20049 }, + { 0x01D3, 20055 }, + { 0x00D9, 20061 }, + { 0x0168, 20067 }, + { 0x1E78, 20073 }, + { 0x1E74, 20081 }, + { 0x0170, 20088 }, + { 0x0214, 20095 }, + { 0x016A, 20102 }, + { 0x1E7A, 20108 }, + { 0x0172, 20116 }, + { 0x0216, 20122 }, + { 0x00DC, 20129 }, + { 0x01D7, 20135 }, + { 0x01D9, 20143 }, + { 0x01DB, 20151 }, + { 0x01D5, 20159 }, + { 0x1E72, 20167 }, + { 0x00DB, 20174 }, + { 0x1E76, 20180 }, + { 0x0056, 20187 }, + { 0x1E7E, 20191 }, + { 0x01B2, 20198 }, + { 0x1E7C, 20204 }, + { 0x575E, 20210 }, + { 0x0057, 20217 }, + { 0x1E86, 20221 }, + { 0x1E88, 20228 }, + { 0x2C72, 20235 }, + { 0x1E82, 20241 }, + { 0x1E80, 20247 }, + { 0x1E84, 20253 }, + { 0x0174, 20259 }, + { 0x0058, 20265 }, + { 0x1E8A, 20269 }, + { 0x1E8C, 20276 }, + { 0x0059, 20282 }, + { 0x1E8E, 20286 }, + { 0x1EF4, 20293 }, + { 0x01B3, 20300 }, + { 0x1EF6, 20306 }, + { 0x1EFE, 20313 }, + { 0x00DD, 20319 }, + { 0x1EF2, 20325 }, + { 0x1EF8, 20331 }, + { 0x0232, 20337 }, + { 0x024E, 20343 }, + { 0x0178, 20349 }, + { 0x0176, 20355 }, + { 0x005A, 20361 }, + { 0x017B, 20365 }, + { 0x1E92, 20372 }, + { 0x0224, 20379 }, + { 0x1E94, 20385 }, + { 0x0179, 20392 }, + { 0x017D, 20398 }, + { 0x01B5, 20404 }, + { 0x2C6B, 20410 }, + { 0x1E90, 20416 }, + { 0x5732, 20422 }, + { 0x00C6, 20426 }, + { 0x01FC, 20430 }, + { 0x01E2, 20436 }, + { 0x5734, 20442 }, + { 0x5736, 20446 }, + { 0x5738, 20450 }, + { 0x573A, 20454 }, + { 0x573C, 20461 }, + { 0x01F1, 20465 }, + { 0x01C4, 20469 }, + { 0x576A, 20475 }, + { 0x576C, 20479 }, + { 0x01C7, 20483 }, + { 0x01CA, 20487 }, + { 0x01A2, 20491 }, + { 0x574E, 20495 }, + { 0x0222, 20499 }, + { 0x5728, 20503 }, + { 0x5760, 20507 }, + { 0x576E, 20511 }, + { 0x014A, 20515 }, + { 0x01A9, 20519 }, + { 0x00D0, 20523 }, + { 0x01B7, 20527 }, + { 0x01EE, 20531 }, + { 0x01B8, 20537 }, + { 0x575C, 20542 }, + { 0x2C75, 20547 }, + { 0x5726, 20552 }, + { 0x0196, 20556 }, + { 0x0190, 20560 }, + { 0x0186, 20565 }, + { 0x0184, 20570 }, + { 0x01A7, 20575 }, + { 0x01BC, 20580 }, + { 0x5768, 20585 }, + { 0x01F7, 20589 }, + { 0x021C, 20593 }, + { 0x2C6D, 20597 }, + { 0x0194, 20601 }, + { 0x01F6, 20605 }, + { 0x018F, 20609 }, + { 0x1E9E, 20613 }, + { 0x024A, 20618 }, + { 0x00DE, 20626 }, + { 0x5764, 20630 }, + { 0x5766, 20636 }, + { 0x5746, 20644 }, + { 0x2C6F, 20649 }, + { 0x5780, 20654 }, + { 0x019C, 20659 }, + { 0x0245, 20664 }, + { 0x577E, 20669 }, + { 0x0189, 20675 }, + { 0x0241, 20680 }, + { 0x5779, 20685 }, + { 0x577B, 20690 }, + { 0x577D, 20695 }, + { 0x5782, 20700 }, + { 0x5784, 20705 }, + { 0x5786, 20710 }, + { 0x01B1, 20715 }, + { 0x573E, 20719 }, + { 0x018E, 20726 }, + { 0x578B, 20731 }, + { 0x572A, 20735 }, + { 0x572C, 20739 }, + { 0x572E, 20743 }, + { 0x5762, 20749 }, + { 0x1EFC, 20754 }, + { 0x1EFA, 20759 }, + { 0x5724, 20764 }, + { 0x5722, 20769 }, + { 0x0132, 20774 }, + { 0x0152, 20778 }, + { 0x2090, 20782 }, + { 0x2091, 20787 }, + { 0x1D62, 20792 }, + { 0x2C7C, 20797 }, + { 0x2092, 20802 }, + { 0x1D63, 20807 }, + { 0x1D64, 20812 }, + { 0x1D65, 20817 }, + { 0x2093, 20822 }, + { 0x2094, 20827 }, + { 0x57FE, 20832 }, + { 0x57FF, 20837 }, + { 0x57FD, 20842 }, + { 0x57FB, 20847 }, + { 0x57FC, 20852 }, + { 0x264E, 20857 }, + { 0x2772, 20858 }, + { 0x2773, 20864 }, + { 0x2591, 20870 }, + { 0x2758, 20872 }, + { 0x1940, 20875 }, + { 0x193B, 20878 }, + { 0x193A, 20881 }, + { 0x1939, 20884 }, + { 0x1947, 20887 }, + { 0x194C, 20890 }, + { 0x1948, 20893 }, + { 0x194B, 20896 }, + { 0x194A, 20899 }, + { 0x194F, 20902 }, + { 0x1946, 20905 }, + { 0x194E, 20908 }, + { 0x194D, 20911 }, + { 0x1949, 20914 }, + { 0x1930, 20917 }, + { 0x1938, 20921 }, + { 0x1936, 20925 }, + { 0x1934, 20929 }, + { 0x1935, 20933 }, + { 0x1937, 20937 }, + { 0x1933, 20941 }, + { 0x1931, 20945 }, + { 0x1932, 20949 }, + { 0x1920, 20953 }, + { 0x1927, 20957 }, + { 0x1921, 20961 }, + { 0x1928, 20965 }, + { 0x1922, 20969 }, + { 0x1924, 20973 }, + { 0x1926, 20977 }, + { 0x1923, 20981 }, + { 0x1925, 20985 }, + { 0x1912, 20989 }, + { 0x1906, 20992 }, + { 0x190D, 20995 }, + { 0x1903, 20998 }, + { 0x191C, 21001 }, + { 0x1908, 21004 }, + { 0x1901, 21007 }, + { 0x1917, 21010 }, + { 0x1914, 21013 }, + { 0x190F, 21016 }, + { 0x1910, 21019 }, + { 0x1916, 21022 }, + { 0x191B, 21025 }, + { 0x190B, 21028 }, + { 0x1918, 21031 }, + { 0x1915, 21034 }, + { 0x1913, 21037 }, + { 0x1907, 21040 }, + { 0x190E, 21043 }, + { 0x1904, 21046 }, + { 0x1909, 21049 }, + { 0x1902, 21052 }, + { 0x1905, 21055 }, + { 0x1911, 21058 }, + { 0x1919, 21061 }, + { 0x191A, 21064 }, + { 0x190C, 21067 }, + { 0x190A, 21070 }, + { 0x1945, 21073 }, + { 0x192A, 21076 }, + { 0x192B, 21080 }, + { 0x1929, 21084 }, + { 0x1944, 21088 }, + { 0x1900, 21091 }, + { 0x2581, 21094 }, + { 0x2582, 21098 }, + { 0x2585, 21102 }, + { 0x2584, 21106 }, + { 0x25E1, 21109 }, + { 0x25DB, 21112 }, + { 0x25DF, 21117 }, + { 0x25FA, 21122 }, + { 0x293F, 21125 }, + { 0x2703, 21130 }, + { 0x27D3, 21133 }, + { 0x270E, 21138 }, + { 0x25DE, 21141 }, + { 0x2751, 21146 }, + { 0x25FF, 21151 }, + { 0x293E, 21154 }, + { 0x274F, 21159 }, + { 0x2587, 21164 }, + { 0x2583, 21168 }, + { 0x2586, 21172 }, + { 0x00B5, 21176 }, + { 0x2212, 21178 }, + { 0x2A3A, 21180 }, + { 0x2A2A, 21184 }, + { 0x2A29, 21189 }, + { 0x2A2C, 21194 }, + { 0x2A2B, 21199 }, + { 0x2242, 21204 }, + { 0x266D, 21206 }, + { 0x266F, 21209 }, + { 0x266E, 21212 }, + { 0x2A09, 21215 }, + { 0x22C3, 21218 }, + { 0x2A03, 21220 }, + { 0x2A04, 21225 }, + { 0x2AFF, 21230 }, + { 0x2A06, 21234 }, + { 0x2A05, 21238 }, + { 0x2A00, 21242 }, + { 0x2A01, 21246 }, + { 0x2A02, 21250 }, + { 0x22C1, 21254 }, + { 0x22C0, 21257 }, + { 0x220F, 21260 }, + { 0x2210, 21262 }, + { 0x2211, 21264 }, + { 0x22C2, 21266 }, + { 0x2207, 21268 }, + { 0x20A6, 21269 }, + { 0x2922, 21271 }, + { 0x2197, 21277 }, + { 0x2928, 21280 }, + { 0x2924, 21287 }, + { 0x2931, 21292 }, + { 0x292E, 21299 }, + { 0x2B08, 21306 }, + { 0x2B00, 21310 }, + { 0x21D7, 21314 }, + { 0x2921, 21318 }, + { 0x2196, 21324 }, + { 0x21B8, 21327 }, + { 0x21F1, 21333 }, + { 0x2927, 21338 }, + { 0x2923, 21345 }, + { 0x2932, 21350 }, + { 0x2B09, 21357 }, + { 0x2B01, 21361 }, + { 0x21D6, 21365 }, + { 0x1680, 21369 }, + { 0x1696, 21372 }, + { 0x1692, 21375 }, + { 0x1691, 21378 }, + { 0x1690, 21381 }, + { 0x1689, 21384 }, + { 0x1687, 21387 }, + { 0x168C, 21390 }, + { 0x1698, 21393 }, + { 0x1682, 21396 }, + { 0x168B, 21399 }, + { 0x1685, 21402 }, + { 0x168F, 21405 }, + { 0x1684, 21408 }, + { 0x1686, 21411 }, + { 0x1681, 21414 }, + { 0x168A, 21417 }, + { 0x1683, 21420 }, + { 0x169A, 21423 }, + { 0x1688, 21426 }, + { 0x168E, 21429 }, + { 0x1695, 21432 }, + { 0x1693, 21435 }, + { 0x1694, 21438 }, + { 0x168D, 21441 }, + { 0x1697, 21444 }, + { 0x1699, 21447 }, + { 0x169B, 21450 }, + { 0x169C, 21453 }, + { 0x0B56, 21457 }, + { 0x0B57, 21461 }, + { 0x0B3C, 21465 }, + { 0x0B4D, 21468 }, + { 0x0B03, 21471 }, + { 0x0B02, 21474 }, + { 0x0B3D, 21477 }, + { 0x0B01, 21480 }, + { 0x0B67, 21483 }, + { 0x0B6C, 21486 }, + { 0x0B68, 21489 }, + { 0x0B6B, 21492 }, + { 0x0B6A, 21495 }, + { 0x0B6F, 21498 }, + { 0x0B66, 21501 }, + { 0x0B6E, 21504 }, + { 0x0B6D, 21507 }, + { 0x0B69, 21510 }, + { 0x0B47, 21513 }, + { 0x0B3F, 21517 }, + { 0x0B4B, 21521 }, + { 0x0B41, 21525 }, + { 0x0B3E, 21529 }, + { 0x0B48, 21533 }, + { 0x0B4C, 21537 }, + { 0x0B40, 21541 }, + { 0x0B42, 21545 }, + { 0x0B62, 21549 }, + { 0x0B43, 21554 }, + { 0x0B63, 21559 }, + { 0x0B44, 21564 }, + { 0x0B70, 21569 }, + { 0x0B05, 21571 }, + { 0x0B0F, 21574 }, + { 0x0B07, 21577 }, + { 0x0B13, 21580 }, + { 0x0B09, 21583 }, + { 0x0B06, 21586 }, + { 0x0B10, 21589 }, + { 0x0B14, 21592 }, + { 0x0B2C, 21595 }, + { 0x0B1A, 21598 }, + { 0x0B26, 21601 }, + { 0x0B17, 21604 }, + { 0x0B39, 21607 }, + { 0x0B08, 21610 }, + { 0x0B1C, 21613 }, + { 0x0B15, 21616 }, + { 0x0B32, 21619 }, + { 0x0B2E, 21622 }, + { 0x0B28, 21625 }, + { 0x0B2A, 21628 }, + { 0x0B30, 21631 }, + { 0x0B38, 21634 }, + { 0x0B24, 21637 }, + { 0x0B0A, 21640 }, + { 0x0B35, 21643 }, + { 0x0B71, 21646 }, + { 0x0B2F, 21649 }, + { 0x0B2D, 21652 }, + { 0x0B1B, 21655 }, + { 0x0B21, 21658 }, + { 0x0B27, 21661 }, + { 0x0B18, 21664 }, + { 0x0B1D, 21667 }, + { 0x0B16, 21670 }, + { 0x0B33, 21673 }, + { 0x0B19, 21676 }, + { 0x0B23, 21679 }, + { 0x0B1E, 21682 }, + { 0x0B2B, 21685 }, + { 0x0B5D, 21688 }, + { 0x0B5C, 21691 }, + { 0x0B36, 21694 }, + { 0x0B37, 21697 }, + { 0x0B25, 21700 }, + { 0x0B1F, 21703 }, + { 0x0B5F, 21706 }, + { 0x0B22, 21709 }, + { 0x0B20, 21712 }, + { 0x0B0C, 21715 }, + { 0x0B0B, 21719 }, + { 0x0B61, 21723 }, + { 0x0B60, 21727 }, + { 0x2125, 21731 }, + { 0x262E, 21733 }, + { 0x2318, 21735 }, + { 0x2647, 21739 }, + { 0x00A3, 21740 }, + { 0x2032, 21742 }, + { 0x2399, 21743 }, + { 0x2236, 21746 }, + { 0x2994, 21747 }, + { 0x2E1D, 21751 }, + { 0x2595, 21755 }, + { 0x297D, 21759 }, + { 0x25D7, 21762 }, + { 0x2590, 21766 }, + { 0x22A2, 21769 }, + { 0x221F, 21771 }, + { 0x22BE, 21773 }, + { 0x237C, 21777 }, + { 0x2E01, 21783 }, + { 0x3009, 21788 }, + { 0x2992, 21791 }, + { 0x299C, 21796 }, + { 0x2E00, 21801 }, + { 0x21F4, 21805 }, + { 0x27F4, 21810 }, + { 0x2998, 21815 }, + { 0x3011, 21820 }, + { 0x007D, 21824 }, + { 0x23AD, 21827 }, + { 0x23AB, 21832 }, + { 0x23AC, 21837 }, + { 0x230B, 21842 }, + { 0x27D6, 21844 }, + { 0x2984, 21847 }, + { 0x300F, 21851 }, + { 0x301B, 21855 }, + { 0x3019, 21859 }, + { 0x3017, 21864 }, + { 0x2986, 21868 }, + { 0x300D, 21871 }, + { 0x2E05, 21874 }, + { 0x300B, 21878 }, + { 0x2970, 21882 }, + { 0x29DB, 21888 }, + { 0x201D, 21892 }, + { 0x2E29, 21896 }, + { 0x22CA, 21899 }, + { 0x2E0D, 21904 }, + { 0x2019, 21908 }, + { 0x005D, 21912 }, + { 0x2990, 21915 }, + { 0x298E, 21923 }, + { 0x2046, 21931 }, + { 0x298C, 21936 }, + { 0x23A6, 21941 }, + { 0x23A4, 21946 }, + { 0x23A5, 21951 }, + { 0x29D9, 21955 }, + { 0x2309, 21958 }, + { 0x27C6, 21960 }, + { 0x2E27, 21964 }, + { 0x3015, 21968 }, + { 0x22BF, 21972 }, + { 0x29CE, 21974 }, + { 0x2E21, 21979 }, + { 0x23B9, 21984 }, + { 0x22CC, 21988 }, + { 0x0029, 21991 }, + { 0x23A0, 21993 }, + { 0x239E, 21997 }, + { 0x239F, 22001 }, + { 0x2E03, 22004 }, + { 0x2E0A, 22007 }, + { 0x719A, 22010 }, + { 0x7191, 22013 }, + { 0x7194, 22016 }, + { 0x2160, 22020 }, + { 0x216D, 22023 }, + { 0x2188, 22027 }, + { 0x216F, 22032 }, + { 0x2180, 22036 }, + { 0x2165, 22042 }, + { 0x2185, 22045 }, + { 0x2169, 22050 }, + { 0x2182, 22053 }, + { 0x2161, 22057 }, + { 0x2164, 22060 }, + { 0x216E, 22063 }, + { 0x2181, 22067 }, + { 0x2163, 22071 }, + { 0x2168, 22074 }, + { 0x2167, 22077 }, + { 0x216C, 22080 }, + { 0x2186, 22083 }, + { 0x2187, 22088 }, + { 0x2166, 22092 }, + { 0x2162, 22095 }, + { 0x216A, 22098 }, + { 0x216B, 22101 }, + { 0x2183, 22104 }, + { 0x7190, 22109 }, + { 0x7193, 22112 }, + { 0x7195, 22115 }, + { 0x7196, 22118 }, + { 0x7192, 22121 }, + { 0x719B, 22124 }, + { 0x7199, 22127 }, + { 0x7197, 22130 }, + { 0x7198, 22133 }, + { 0x16ED, 22136 }, + { 0x16EE, 22139 }, + { 0x16CD, 22142 }, + { 0x16D1, 22145 }, + { 0x16C2, 22148 }, + { 0x16B5, 22151 }, + { 0x16AE, 22154 }, + { 0x16E9, 22157 }, + { 0x16A1, 22160 }, + { 0x16A5, 22163 }, + { 0x16EA, 22166 }, + { 0x16A4, 22169 }, + { 0x16CE, 22172 }, + { 0x16AA, 22175 }, + { 0x16AF, 22179 }, + { 0x16B0, 22182 }, + { 0x16A9, 22185 }, + { 0x16A3, 22189 }, + { 0x16B3, 22192 }, + { 0x16E0, 22195 }, + { 0x16B6, 22198 }, + { 0x16A7, 22201 }, + { 0x16B8, 22204 }, + { 0x16C4, 22207 }, + { 0x16DD, 22210 }, + { 0x16E1, 22213 }, + { 0x16AB, 22216 }, + { 0x16E3, 22219 }, + { 0x16A0, 22222 }, + { 0x16B7, 22228 }, + { 0x16C1, 22233 }, + { 0x16C7, 22239 }, + { 0x16B4, 22243 }, + { 0x16E5, 22247 }, + { 0x16A2, 22250 }, + { 0x16C9, 22255 }, + { 0x16A8, 22259 }, + { 0x16E4, 22263 }, + { 0x16DE, 22266 }, + { 0x16D6, 22271 }, + { 0x16BB, 22276 }, + { 0x16C3, 22280 }, + { 0x16B2, 22284 }, + { 0x16B1, 22287 }, + { 0x16CB, 22293 }, + { 0x16CF, 22298 }, + { 0x16B9, 22304 }, + { 0x16BA, 22309 }, + { 0x16DC, 22313 }, + { 0x16DA, 22316 }, + { 0x16D7, 22322 }, + { 0x16BE, 22327 }, + { 0x16D5, 22333 }, + { 0x16C8, 22336 }, + { 0x16CA, 22341 }, + { 0x16E2, 22345 }, + { 0x16DF, 22348 }, + { 0x16D2, 22353 }, + { 0x16DB, 22359 }, + { 0x16C0, 22362 }, + { 0x16D4, 22365 }, + { 0x16A6, 22368 }, + { 0x16E8, 22373 }, + { 0x16C6, 22376 }, + { 0x16E7, 22380 }, + { 0x16C5, 22383 }, + { 0x16E6, 22387 }, + { 0x16AD, 22390 }, + { 0x16CC, 22394 }, + { 0x16D0, 22398 }, + { 0x16AC, 22402 }, + { 0x16D9, 22406 }, + { 0x16BF, 22410 }, + { 0x16D8, 22414 }, + { 0x16BD, 22418 }, + { 0x16BC, 22422 }, + { 0x16D3, 22426 }, + { 0x16EB, 22430 }, + { 0x16F0, 22433 }, + { 0x16EC, 22436 }, + { 0x16EF, 22439 }, + { 0x20A8, 22442 }, + { 0x2AE0, 22444 }, + { 0x2AE8, 22447 }, + { 0x2AE9, 22452 }, + { 0x2ADF, 22459 }, + { 0x2AE7, 22462 }, + { 0x2ADE, 22467 }, + { 0x2944, 22470 }, + { 0x2620, 22476 }, + { 0x2333, 22479 }, + { 0x6E58, 22480 }, + { 0x2A61, 22483 }, + { 0x6E52, 22487 }, + { 0x6E5B, 22490 }, + { 0x6E5D, 22494 }, + { 0x6E59, 22499 }, + { 0x6E62, 22502 }, + { 0x6E55, 22505 }, + { 0x6E50, 22507 }, + { 0x6E5C, 22509 }, + { 0x6E5E, 22513 }, + { 0x6E5A, 22518 }, + { 0x2170, 22521 }, + { 0x217D, 22525 }, + { 0x217F, 22530 }, + { 0x2175, 22535 }, + { 0x2179, 22539 }, + { 0x2171, 22543 }, + { 0x2174, 22547 }, + { 0x217E, 22551 }, + { 0x2173, 22556 }, + { 0x2178, 22560 }, + { 0x2177, 22564 }, + { 0x217C, 22568 }, + { 0x2176, 22572 }, + { 0x2172, 22576 }, + { 0x217A, 22580 }, + { 0x217B, 22584 }, + { 0x02DC, 22588 }, + { 0x6E69, 22590 }, + { 0x6E66, 22593 }, + { 0x6E5F, 22596 }, + { 0x220A, 22599 }, + { 0x22F7, 22602 }, + { 0x22F4, 22607 }, + { 0x6E6A, 22618 }, + { 0x6E68, 22621 }, + { 0x6E61, 22624 }, + { 0x220D, 22626 }, + { 0x22FE, 22630 }, + { 0x22FC, 22634 }, + { 0x6E56, 22644 }, + { 0x6E60, 22647 }, + { 0x6E64, 22649 }, + { 0x6E54, 22652 }, + { 0x6E6B, 22654 }, + { 0x6E57, 22657 }, + { 0x6E51, 22660 }, + { 0x6E65, 22663 }, + { 0x6E63, 22666 }, + { 0x2A33, 22668 }, + { 0x2323, 22670 }, + { 0x2117, 22671 }, + { 0x2198, 22674 }, + { 0x21F2, 22677 }, + { 0x2929, 22682 }, + { 0x2925, 22689 }, + { 0x292D, 22694 }, + { 0x2B0A, 22701 }, + { 0x2B02, 22705 }, + { 0x21D8, 22709 }, + { 0x2199, 22713 }, + { 0x292A, 22716 }, + { 0x2926, 22723 }, + { 0x2B0B, 22728 }, + { 0x2B03, 22732 }, + { 0x21D9, 22736 }, + { 0x0020, 22740 }, + { 0x27A7, 22741 }, + { 0x269A, 22745 }, + { 0x2695, 22748 }, + { 0x2053, 22751 }, + { 0x0BF8, 22753 }, + { 0x0BD7, 22757 }, + { 0x0BD0, 22761 }, + { 0x0BF3, 22763 }, + { 0x0BCD, 22766 }, + { 0x0B83, 22769 }, + { 0x0B82, 22772 }, + { 0x0BF5, 22775 }, + { 0x0BF6, 22778 }, + { 0x0BE7, 22781 }, + { 0x0BEC, 22784 }, + { 0x0BE8, 22787 }, + { 0x0BEB, 22790 }, + { 0x0BEA, 22793 }, + { 0x0BEF, 22796 }, + { 0x0BE6, 22799 }, + { 0x0BEE, 22802 }, + { 0x0BED, 22805 }, + { 0x0BE9, 22808 }, + { 0x0BF4, 22811 }, + { 0x0BF9, 22814 }, + { 0x0BC6, 22817 }, + { 0x0BBF, 22821 }, + { 0x0BCA, 22825 }, + { 0x0BC1, 22829 }, + { 0x0BBE, 22833 }, + { 0x0BC8, 22837 }, + { 0x0BCC, 22841 }, + { 0x0BC7, 22845 }, + { 0x0BC0, 22849 }, + { 0x0BCB, 22853 }, + { 0x0BC2, 22857 }, + { 0x0BF7, 22861 }, + { 0x0B85, 22864 }, + { 0x0B8E, 22867 }, + { 0x0B87, 22870 }, + { 0x0B92, 22873 }, + { 0x0B89, 22876 }, + { 0x0B86, 22879 }, + { 0x0B90, 22882 }, + { 0x0B94, 22885 }, + { 0x0B9A, 22888 }, + { 0x0B8F, 22891 }, + { 0x0BB9, 22894 }, + { 0x0B88, 22897 }, + { 0x0B9C, 22900 }, + { 0x0B95, 22903 }, + { 0x0BB2, 22906 }, + { 0x0BAE, 22909 }, + { 0x0BA8, 22912 }, + { 0x0B93, 22915 }, + { 0x0BAA, 22918 }, + { 0x0BB0, 22921 }, + { 0x0BB8, 22924 }, + { 0x0BA4, 22927 }, + { 0x0B8A, 22930 }, + { 0x0BB5, 22933 }, + { 0x0BAF, 22936 }, + { 0x0BB3, 22939 }, + { 0x0B99, 22942 }, + { 0x0BA3, 22945 }, + { 0x0B9E, 22948 }, + { 0x0BB1, 22951 }, + { 0x0BB6, 22954 }, + { 0x0BB7, 22957 }, + { 0x0B9F, 22960 }, + { 0x0BB4, 22963 }, + { 0x0BA9, 22966 }, + { 0x0BF1, 22969 }, + { 0x0BF2, 22973 }, + { 0x0BF0, 22977 }, + { 0x0BFA, 22980 }, + { 0x2204, 22983 }, + { 0x2203, 22987 }, + { 0x2056, 22989 }, + { 0x2B31, 22992 }, + { 0x21F6, 22995 }, + { 0x2A76, 22998 }, + { 0x27C0, 23002 }, + { 0x2745, 23005 }, + { 0x007E, 23008 }, + { 0x2E1E, 23009 }, + { 0x2E1F, 23013 }, + { 0x2E1B, 23017 }, + { 0x223C, 23021 }, + { 0x2A6A, 23023 }, + { 0x2A6B, 23028 }, + { 0x2B49, 23033 }, + { 0x2972, 23038 }, + { 0x29D4, 23043 }, + { 0x29D5, 23048 }, + { 0x2330, 23053 }, + { 0x2122, 23055 }, + { 0x222A, 23058 }, + { 0x2A41, 23059 }, + { 0x2A45, 23063 }, + { 0x2A42, 23067 }, + { 0x2A48, 23070 }, + { 0x2A46, 23075 }, + { 0x2A4A, 23078 }, + { 0x2594, 23084 }, + { 0x2580, 23088 }, + { 0x25E0, 23091 }, + { 0x25DA, 23094 }, + { 0x23B0, 23099 }, + { 0x27D4, 23107 }, + { 0x25DC, 23112 }, + { 0x25F8, 23117 }, + { 0x2701, 23120 }, + { 0x23B1, 23123 }, + { 0x2710, 23131 }, + { 0x25DD, 23134 }, + { 0x2752, 23139 }, + { 0x25F9, 23144 }, + { 0x2750, 23147 }, + { 0x26B6, 23152 }, + { 0x264D, 23153 }, + { 0x231A, 23154 }, + { 0x2638, 23155 }, + { 0x261D, 23158 }, + { 0x2711, 23162 }, + { 0x263C, 23164 }, + { 0x2667, 23168 }, + { 0x261F, 23171 }, + { 0x2690, 23175 }, + { 0x2727, 23177 }, + { 0x261C, 23181 }, + { 0x2606, 23185 }, + { 0x2B1E, 23187 }, + { 0x2654, 23191 }, + { 0x2659, 23194 }, + { 0x2656, 23197 }, + { 0x2655, 23200 }, + { 0x2657, 23203 }, + { 0x2658, 23206 }, + { 0x2661, 23209 }, + { 0x2B1C, 23212 }, + { 0x261E, 23215 }, + { 0x2616, 23219 }, + { 0x2B52, 23222 }, + { 0x25AB, 23225 }, + { 0x2B2B, 23228 }, + { 0x2664, 23231 }, + { 0x25E6, 23234 }, + { 0x25CB, 23236 }, + { 0x2686, 23238 }, + { 0x2687, 23243 }, + { 0x29EC, 23248 }, + { 0x25F5, 23253 }, + { 0x25F6, 23259 }, + { 0x25F4, 23265 }, + { 0x25F7, 23271 }, + { 0x2B50, 23277 }, + { 0x25FD, 23280 }, + { 0x25FB, 23284 }, + { 0x2B26, 23287 }, + { 0x2B28, 23290 }, + { 0x6E46, 23293 }, + { 0x25A1, 23296 }, + { 0x25F1, 23298 }, + { 0x25F2, 23304 }, + { 0x25F0, 23310 }, + { 0x25F3, 23316 }, + { 0x2385, 23322 }, + { 0x25A2, 23328 }, + { 0x25EB, 23333 }, + { 0x27E4, 23339 }, + { 0x27E5, 23344 }, + { 0x25A3, 23349 }, + { 0x25C7, 23355 }, + { 0x2662, 23357 }, + { 0x27D0, 23360 }, + { 0x25C8, 23365 }, + { 0x2B21, 23371 }, + { 0x263A, 23373 }, + { 0x26C0, 23376 }, + { 0x26C1, 23379 }, + { 0x2740, 23382 }, + { 0x2639, 23384 }, + { 0x2B20, 23387 }, + { 0x2704, 23389 }, + { 0x27C1, 23391 }, + { 0x2AFE, 23397 }, + { 0x2B2F, 23400 }, + { 0x25AF, 23403 }, + { 0x29D6, 23406 }, + { 0x25AD, 23408 }, + { 0x260F, 23410 }, + { 0x23E2, 23412 }, + { 0x2B2D, 23414 }, + { 0x25B5, 23417 }, + { 0x25B3, 23421 }, + { 0x25EC, 23424 }, + { 0x27E1, 23429 }, + { 0x27E2, 23432 }, + { 0x27E3, 23438 }, + { 0x25BF, 23444 }, + { 0x25BD, 23448 }, + { 0x25C3, 23451 }, + { 0x25C5, 23455 }, + { 0x25C1, 23458 }, + { 0x25B1, 23461 }, + { 0x25B9, 23463 }, + { 0x25BB, 23467 }, + { 0x2B54, 23470 }, + { 0x25B7, 23473 }, + { 0x713C, 23476 }, + { 0x7101, 23481 }, + { 0x7100, 23485 }, + { 0x7102, 23489 }, + { 0x713D, 23492 }, + { 0x7107, 23497 }, + { 0x7119, 23500 }, + { 0x7122, 23504 }, + { 0x710C, 23508 }, + { 0x711E, 23511 }, + { 0x7127, 23515 }, + { 0x7110, 23519 }, + { 0x712B, 23522 }, + { 0x7108, 23526 }, + { 0x711A, 23529 }, + { 0x7123, 23533 }, + { 0x710B, 23537 }, + { 0x711D, 23540 }, + { 0x7126, 23544 }, + { 0x710A, 23548 }, + { 0x711C, 23551 }, + { 0x7125, 23555 }, + { 0x710F, 23559 }, + { 0x7121, 23562 }, + { 0x712A, 23566 }, + { 0x710E, 23570 }, + { 0x7120, 23573 }, + { 0x7129, 23577 }, + { 0x7114, 23581 }, + { 0x712F, 23584 }, + { 0x7113, 23588 }, + { 0x712E, 23591 }, + { 0x710D, 23595 }, + { 0x711F, 23598 }, + { 0x7128, 23602 }, + { 0x7115, 23606 }, + { 0x7130, 23609 }, + { 0x7109, 23613 }, + { 0x711B, 23616 }, + { 0x7124, 23620 }, + { 0x7117, 23624 }, + { 0x7132, 23627 }, + { 0x7118, 23631 }, + { 0x7133, 23634 }, + { 0x7112, 23638 }, + { 0x712D, 23641 }, + { 0x7111, 23645 }, + { 0x712C, 23648 }, + { 0x7116, 23652 }, + { 0x7131, 23655 }, + { 0x7137, 23659 }, + { 0x7138, 23663 }, + { 0x713A, 23667 }, + { 0x713B, 23671 }, + { 0x7139, 23675 }, + { 0x713F, 23679 }, + { 0x713E, 23683 }, + { 0x224A, 23687 }, + { 0x2248, 23692 }, + { 0x2A6F, 23695 }, + { 0x2693, 23701 }, + { 0x06DD, 23702 }, + { 0x0608, 23706 }, + { 0x060D, 23708 }, + { 0x066D, 23711 }, + { 0x06D4, 23715 }, + { 0x0658, 23718 }, + { 0x0613, 23722 }, + { 0x060F, 23727 }, + { 0x0603, 23730 }, + { 0x0601, 23733 }, + { 0x0611, 23736 }, + { 0x06FD, 23740 }, + { 0x06FE, 23744 }, + { 0x0614, 23749 }, + { 0x0612, 23752 }, + { 0x0610, 23756 }, + { 0x6E73, 23761 }, + { 0x060C, 23764 }, + { 0x064F, 23766 }, + { 0x6E79, 23768 }, + { 0x6E78, 23772 }, + { 0x06EA, 23776 }, + { 0x06EB, 23781 }, + { 0x064E, 23786 }, + { 0x065E, 23788 }, + { 0x6E77, 23793 }, + { 0x6E76, 23797 }, + { 0x0654, 23801 }, + { 0x0655, 23804 }, + { 0x0650, 23807 }, + { 0x6E7B, 23809 }, + { 0x6E7A, 23813 }, + { 0x06E9, 23817 }, + { 0x06ED, 23821 }, + { 0x06E3, 23825 }, + { 0x06E5, 23829 }, + { 0x06E6, 23832 }, + { 0x06D9, 23835 }, + { 0x0615, 23840 }, + { 0x06E7, 23844 }, + { 0x06DA, 23848 }, + { 0x06D8, 23852 }, + { 0x06E2, 23858 }, + { 0x06E8, 23864 }, + { 0x06DC, 23868 }, + { 0x0617, 23872 }, + { 0x06E4, 23876 }, + { 0x06DB, 23880 }, + { 0x06E1, 23885 }, + { 0x06DF, 23892 }, + { 0x06E0, 23897 }, + { 0x06D7, 23903 }, + { 0x06D6, 23913 }, + { 0x0616, 23923 }, + { 0x0619, 23932 }, + { 0x0618, 23935 }, + { 0x061A, 23938 }, + { 0x06DE, 23941 }, + { 0x0652, 23947 }, + { 0x6E7F, 23949 }, + { 0x6E7E, 23953 }, + { 0x065C, 23957 }, + { 0x065A, 23962 }, + { 0x065B, 23968 }, + { 0x06D0, 23975 }, + { 0x6BE5, 23978 }, + { 0x6BE7, 23983 }, + { 0x6BE6, 23988 }, + { 0x6BE4, 23993 }, + { 0x06C7, 23998 }, + { 0x0677, 24001 }, + { 0x6BDD, 24007 }, + { 0x6BD8, 24015 }, + { 0x6BD7, 24020 }, + { 0x06D5, 24025 }, + { 0x06AD, 24028 }, + { 0x6BD4, 24031 }, + { 0x6BD6, 24036 }, + { 0x6BD5, 24041 }, + { 0x6BD3, 24046 }, + { 0x06C6, 24051 }, + { 0x6BDA, 24054 }, + { 0x6BD9, 24059 }, + { 0x06CB, 24064 }, + { 0x6BDF, 24067 }, + { 0x6BDE, 24072 }, + { 0x06C8, 24077 }, + { 0x6BDC, 24080 }, + { 0x6BDB, 24085 }, + { 0x0639, 24090 }, + { 0x075D, 24093 }, + { 0x075F, 24100 }, + { 0x06A0, 24108 }, + { 0x075E, 24115 }, + { 0x6ECA, 24124 }, + { 0x6ECC, 24129 }, + { 0x6ECB, 24134 }, + { 0x6EC9, 24139 }, + { 0x0628, 24144 }, + { 0x0751, 24147 }, + { 0x0754, 24157 }, + { 0x0756, 24167 }, + { 0x0752, 24173 }, + { 0x0753, 24182 }, + { 0x0750, 24195 }, + { 0x0755, 24203 }, + { 0x6E90, 24211 }, + { 0x6E92, 24216 }, + { 0x6E91, 24221 }, + { 0x6E8F, 24226 }, + { 0x0636, 24231 }, + { 0x06FB, 24234 }, + { 0x6EBE, 24240 }, + { 0x6EC0, 24245 }, + { 0x6EBF, 24250 }, + { 0x6EBD, 24255 }, + { 0x062F, 24260 }, + { 0x068A, 24263 }, + { 0x068B, 24269 }, + { 0x0759, 24278 }, + { 0x0690, 24289 }, + { 0x0689, 24296 }, + { 0x068F, 24301 }, + { 0x06EE, 24309 }, + { 0x075A, 24315 }, + { 0x6EAA, 24323 }, + { 0x6EA9, 24328 }, + { 0x068E, 24333 }, + { 0x6B87, 24336 }, + { 0x6B86, 24341 }, + { 0x0641, 24346 }, + { 0x06A3, 24349 }, + { 0x06A2, 24355 }, + { 0x0760, 24362 }, + { 0x06A5, 24369 }, + { 0x0761, 24376 }, + { 0x6ED2, 24385 }, + { 0x6ED4, 24390 }, + { 0x6ED3, 24395 }, + { 0x6ED1, 24400 }, + { 0x06AF, 24405 }, + { 0x06B2, 24408 }, + { 0x06B0, 24415 }, + { 0x06B4, 24420 }, + { 0x6B93, 24427 }, + { 0x6B95, 24432 }, + { 0x6B94, 24437 }, + { 0x6B92, 24442 }, + { 0x062D, 24447 }, + { 0x0757, 24450 }, + { 0x0682, 24457 }, + { 0x0681, 24465 }, + { 0x076F, 24471 }, + { 0x0772, 24482 }, + { 0x076E, 24491 }, + { 0x0685, 24500 }, + { 0x0758, 24507 }, + { 0x077C, 24516 }, + { 0x6EA2, 24525 }, + { 0x6EA4, 24530 }, + { 0x6EA3, 24535 }, + { 0x6EA1, 24540 }, + { 0x0647, 24545 }, + { 0x06C1, 24548 }, + { 0x06C2, 24552 }, + { 0x6BA7, 24559 }, + { 0x6BA9, 24565 }, + { 0x6BA8, 24571 }, + { 0x6BA6, 24577 }, + { 0x06C0, 24583 }, + { 0x6BA5, 24589 }, + { 0x6BA4, 24597 }, + { 0x06FF, 24605 }, + { 0x6EEA, 24611 }, + { 0x6EEC, 24616 }, + { 0x6EEB, 24621 }, + { 0x6EE9, 24626 }, + { 0x06BE, 24631 }, + { 0x6BAB, 24635 }, + { 0x6BAD, 24641 }, + { 0x6BAC, 24647 }, + { 0x6BAA, 24653 }, + { 0x0698, 24659 }, + { 0x6B8B, 24662 }, + { 0x6B8A, 24667 }, + { 0x0643, 24672 }, + { 0x06AC, 24675 }, + { 0x077F, 24681 }, + { 0x06AB, 24688 }, + { 0x06AE, 24693 }, + { 0x6EDA, 24700 }, + { 0x6EDC, 24705 }, + { 0x6EDB, 24710 }, + { 0x6ED9, 24715 }, + { 0x0644, 24720 }, + { 0x076A, 24723 }, + { 0x06B6, 24728 }, + { 0x06B5, 24734 }, + { 0x06B7, 24740 }, + { 0x06B8, 24747 }, + { 0x6EDE, 24754 }, + { 0x6EE0, 24759 }, + { 0x6EDF, 24764 }, + { 0x6EDD, 24769 }, + { 0x067E, 24774 }, + { 0x6B57, 24777 }, + { 0x6B59, 24782 }, + { 0x6B58, 24787 }, + { 0x6B56, 24792 }, + { 0x0642, 24797 }, + { 0x06A7, 24800 }, + { 0x06A8, 24806 }, + { 0x6ED6, 24813 }, + { 0x6ED8, 24818 }, + { 0x6ED7, 24823 }, + { 0x6ED5, 24828 }, + { 0x0631, 24833 }, + { 0x0694, 24836 }, + { 0x0696, 24842 }, + { 0x0697, 24851 }, + { 0x076B, 24858 }, + { 0x0699, 24866 }, + { 0x0693, 24873 }, + { 0x076C, 24878 }, + { 0x0692, 24884 }, + { 0x0695, 24890 }, + { 0x0771, 24897 }, + { 0x075B, 24908 }, + { 0x06EF, 24913 }, + { 0x6EAE, 24919 }, + { 0x6EAD, 24924 }, + { 0x0635, 24929 }, + { 0x069D, 24932 }, + { 0x069E, 24939 }, + { 0x6EBA, 24946 }, + { 0x6EBC, 24951 }, + { 0x6EBB, 24956 }, + { 0x6EB9, 24961 }, + { 0x0637, 24966 }, + { 0x069F, 24969 }, + { 0x6EC2, 24976 }, + { 0x6EC4, 24981 }, + { 0x6EC3, 24986 }, + { 0x6EC1, 24991 }, + { 0x062A, 24996 }, + { 0x067C, 24999 }, + { 0x067D, 25004 }, + { 0x6E96, 25012 }, + { 0x6E98, 25017 }, + { 0x6E97, 25022 }, + { 0x0629, 25027 }, + { 0x06C3, 25031 }, + { 0x6E94, 25036 }, + { 0x6E93, 25042 }, + { 0x6E95, 25048 }, + { 0x06A4, 25053 }, + { 0x6B6B, 25056 }, + { 0x6B6D, 25061 }, + { 0x6B6C, 25066 }, + { 0x6B6A, 25071 }, + { 0x0648, 25076 }, + { 0x06CF, 25079 }, + { 0x06CA, 25085 }, + { 0x06C4, 25092 }, + { 0x0624, 25097 }, + { 0x6E86, 25103 }, + { 0x6E85, 25111 }, + { 0x0778, 25119 }, + { 0x0779, 25128 }, + { 0x6EEE, 25137 }, + { 0x6EED, 25142 }, + { 0x064A, 25147 }, + { 0x06CD, 25150 }, + { 0x0626, 25155 }, + { 0x6E8A, 25161 }, + { 0x6E8C, 25169 }, + { 0x6E8B, 25177 }, + { 0x6E89, 25185 }, + { 0x06CE, 25193 }, + { 0x06D1, 25199 }, + { 0x6EF2, 25206 }, + { 0x06D2, 25211 }, + { 0x06D3, 25215 }, + { 0x6BB1, 25222 }, + { 0x6BB0, 25231 }, + { 0x077A, 25240 }, + { 0x077B, 25250 }, + { 0x6BAF, 25260 }, + { 0x6BAE, 25266 }, + { 0x6EF4, 25272 }, + { 0x6EF3, 25277 }, + { 0x6EF1, 25282 }, + { 0x0638, 25287 }, + { 0x6EC6, 25290 }, + { 0x6EC8, 25295 }, + { 0x6EC7, 25300 }, + { 0x6EC5, 25305 }, + { 0x0627, 25310 }, + { 0x0672, 25313 }, + { 0x0673, 25320 }, + { 0x0623, 25327 }, + { 0x6E84, 25333 }, + { 0x6E83, 25341 }, + { 0x0625, 25349 }, + { 0x6E88, 25355 }, + { 0x6E87, 25363 }, + { 0x0622, 25371 }, + { 0x6E82, 25377 }, + { 0x6E81, 25385 }, + { 0x0773, 25393 }, + { 0x0774, 25402 }, + { 0x6E8E, 25411 }, + { 0x0671, 25416 }, + { 0x6B51, 25420 }, + { 0x6B50, 25426 }, + { 0x0649, 25432 }, + { 0x6EF0, 25436 }, + { 0x6EEF, 25442 }, + { 0x6E8D, 25448 }, + { 0x067B, 25453 }, + { 0x6B53, 25456 }, + { 0x6B55, 25461 }, + { 0x6B54, 25466 }, + { 0x6B52, 25471 }, + { 0x0688, 25476 }, + { 0x6B89, 25479 }, + { 0x6B88, 25484 }, + { 0x0684, 25489 }, + { 0x6B73, 25492 }, + { 0x6B75, 25497 }, + { 0x6B74, 25502 }, + { 0x6B72, 25507 }, + { 0x06B3, 25512 }, + { 0x6B97, 25515 }, + { 0x6B99, 25520 }, + { 0x6B98, 25525 }, + { 0x6B96, 25530 }, + { 0x0674, 25535 }, + { 0x0676, 25539 }, + { 0x0678, 25544 }, + { 0x0675, 25549 }, + { 0x062C, 25554 }, + { 0x6E9E, 25557 }, + { 0x6EA0, 25562 }, + { 0x6E9F, 25567 }, + { 0x6E9D, 25572 }, + { 0x062E, 25577 }, + { 0x6EA6, 25580 }, + { 0x6EA8, 25585 }, + { 0x6EA7, 25590 }, + { 0x6EA5, 25595 }, + { 0x0645, 25600 }, + { 0x0765, 25603 }, + { 0x0766, 25609 }, + { 0x6EE2, 25615 }, + { 0x6EE4, 25620 }, + { 0x6EE3, 25625 }, + { 0x6EE1, 25630 }, + { 0x0646, 25635 }, + { 0x06B9, 25638 }, + { 0x0767, 25644 }, + { 0x06BC, 25651 }, + { 0x0769, 25656 }, + { 0x0768, 25662 }, + { 0x06BD, 25668 }, + { 0x6EE6, 25675 }, + { 0x06BA, 25680 }, + { 0x6B9F, 25684 }, + { 0x6B9E, 25690 }, + { 0x6EE8, 25696 }, + { 0x6EE7, 25701 }, + { 0x6EE5, 25706 }, + { 0x0683, 25711 }, + { 0x6B77, 25714 }, + { 0x6B79, 25719 }, + { 0x6B78, 25724 }, + { 0x6B76, 25729 }, + { 0x0691, 25734 }, + { 0x6B8D, 25737 }, + { 0x6B8C, 25742 }, + { 0x0633, 25747 }, + { 0x069A, 25750 }, + { 0x076D, 25759 }, + { 0x075C, 25767 }, + { 0x0770, 25774 }, + { 0x069B, 25785 }, + { 0x069C, 25792 }, + { 0x077D, 25803 }, + { 0x077E, 25812 }, + { 0x6EB2, 25818 }, + { 0x6EB4, 25823 }, + { 0x6EB3, 25828 }, + { 0x6EB1, 25833 }, + { 0x0630, 25838 }, + { 0x6EAC, 25841 }, + { 0x6EAB, 25846 }, + { 0x062B, 25851 }, + { 0x6E9A, 25854 }, + { 0x6E9C, 25859 }, + { 0x6E9B, 25864 }, + { 0x6E99, 25869 }, + { 0x0679, 25874 }, + { 0x6B67, 25877 }, + { 0x6B69, 25882 }, + { 0x6B68, 25887 }, + { 0x6B66, 25892 }, + { 0x0632, 25897 }, + { 0x6EB0, 25900 }, + { 0x6EAF, 25905 }, + { 0x0680, 25910 }, + { 0x6B5B, 25913 }, + { 0x6B5D, 25918 }, + { 0x6B5C, 25923 }, + { 0x6B5A, 25928 }, + { 0x068C, 25933 }, + { 0x6B85, 25936 }, + { 0x6B84, 25941 }, + { 0x06CC, 25946 }, + { 0x063E, 25950 }, + { 0x063F, 25958 }, + { 0x0775, 25966 }, + { 0x0777, 25976 }, + { 0x0776, 25986 }, + { 0x063D, 25996 }, + { 0x6BFD, 26003 }, + { 0x6BFF, 26009 }, + { 0x6BFE, 26015 }, + { 0x6BFC, 26021 }, + { 0x063A, 26027 }, + { 0x06FC, 26030 }, + { 0x6ECE, 26036 }, + { 0x6ED0, 26041 }, + { 0x6ECF, 26046 }, + { 0x6ECD, 26051 }, + { 0x0621, 26056 }, + { 0x6E80, 26059 }, + { 0x06A9, 26064 }, + { 0x0762, 26067 }, + { 0x063B, 26073 }, + { 0x0763, 26080 }, + { 0x063C, 26087 }, + { 0x0764, 26094 }, + { 0x6B8F, 26103 }, + { 0x6B91, 26108 }, + { 0x6B90, 26113 }, + { 0x6B8E, 26118 }, + { 0x06B1, 26123 }, + { 0x6B9B, 26126 }, + { 0x6B9D, 26131 }, + { 0x6B9C, 26136 }, + { 0x6B9A, 26141 }, + { 0x06A6, 26146 }, + { 0x6B6F, 26149 }, + { 0x6B71, 26154 }, + { 0x6B70, 26159 }, + { 0x6B6E, 26164 }, + { 0x06BB, 26169 }, + { 0x6BA1, 26172 }, + { 0x6BA3, 26177 }, + { 0x6BA2, 26182 }, + { 0x6BA0, 26187 }, + { 0x0634, 26192 }, + { 0x06FA, 26195 }, + { 0x6EB6, 26201 }, + { 0x6EB8, 26206 }, + { 0x6EB7, 26211 }, + { 0x6EB5, 26216 }, + { 0x06AA, 26221 }, + { 0x0686, 26225 }, + { 0x06BF, 26228 }, + { 0x6B7B, 26234 }, + { 0x6B7D, 26239 }, + { 0x6B7C, 26244 }, + { 0x6B7A, 26249 }, + { 0x067F, 26254 }, + { 0x6B63, 26257 }, + { 0x6B65, 26262 }, + { 0x6B64, 26267 }, + { 0x6B62, 26272 }, + { 0x068D, 26277 }, + { 0x6B83, 26280 }, + { 0x6B82, 26285 }, + { 0x067A, 26290 }, + { 0x6B5F, 26293 }, + { 0x6B61, 26298 }, + { 0x6B60, 26303 }, + { 0x6B5E, 26308 }, + { 0x6BE9, 26313 }, + { 0x6BE8, 26322 }, + { 0x066E, 26331 }, + { 0x06A1, 26335 }, + { 0x066F, 26339 }, + { 0x06C5, 26343 }, + { 0x6BE1, 26347 }, + { 0x6BE0, 26353 }, + { 0x06C9, 26359 }, + { 0x6BE3, 26363 }, + { 0x6BE2, 26369 }, + { 0x0687, 26375 }, + { 0x6B7F, 26378 }, + { 0x6B81, 26383 }, + { 0x6B80, 26388 }, + { 0x6B7E, 26393 }, + { 0x0670, 26398 }, + { 0x0653, 26402 }, + { 0x0600, 26405 }, + { 0x060E, 26408 }, + { 0x0651, 26412 }, + { 0x6E7D, 26414 }, + { 0x6E7C, 26418 }, + { 0x061E, 26422 }, + { 0x066B, 26427 }, + { 0x066A, 26430 }, + { 0x06EC, 26433 }, + { 0x0640, 26440 }, + { 0x6E71, 26442 }, + { 0x064C, 26447 }, + { 0x6E72, 26449 }, + { 0x064B, 26453 }, + { 0x6E70, 26455 }, + { 0x0602, 26459 }, + { 0x0657, 26462 }, + { 0x064D, 26465 }, + { 0x6E74, 26467 }, + { 0x6D14, 26471 }, + { 0x6CF8, 26478 }, + { 0x6D13, 26485 }, + { 0x6CF7, 26493 }, + { 0x6D75, 26501 }, + { 0x6DC4, 26510 }, + { 0x6CBA, 26519 }, + { 0x6C29, 26526 }, + { 0x6DB6, 26533 }, + { 0x6D78, 26542 }, + { 0x6D76, 26552 }, + { 0x6D77, 26561 }, + { 0x6CBB, 26570 }, + { 0x6C2A, 26577 }, + { 0x6DC2, 26584 }, + { 0x6C9D, 26593 }, + { 0x6C06, 26600 }, + { 0x6CE2, 26607 }, + { 0x6CA0, 26614 }, + { 0x6C6A, 26621 }, + { 0x6C6F, 26628 }, + { 0x6C0A, 26635 }, + { 0x6C6E, 26642 }, + { 0x6C09, 26650 }, + { 0x6C9C, 26658 }, + { 0x6C05, 26665 }, + { 0x6D9E, 26672 }, + { 0x6C9E, 26681 }, + { 0x6C07, 26688 }, + { 0x6C6C, 26695 }, + { 0x6CE1, 26702 }, + { 0x6C9F, 26709 }, + { 0x6C08, 26716 }, + { 0x6C6D, 26723 }, + { 0x6C6B, 26730 }, + { 0x6DAB, 26737 }, + { 0x6D6E, 26746 }, + { 0x6CB5, 26756 }, + { 0x6C23, 26763 }, + { 0x6D2C, 26770 }, + { 0x6D10, 26777 }, + { 0x6D24, 26784 }, + { 0x6D08, 26791 }, + { 0x6D23, 26798 }, + { 0x6D07, 26806 }, + { 0x6CB4, 26814 }, + { 0x6C22, 26821 }, + { 0x6D6F, 26828 }, + { 0x6D70, 26837 }, + { 0x6CB6, 26846 }, + { 0x6C24, 26853 }, + { 0x6CB7, 26860 }, + { 0x6C25, 26867 }, + { 0x6CBF, 26874 }, + { 0x6C2E, 26881 }, + { 0x6C7D, 26888 }, + { 0x6C32, 26895 }, + { 0x6C7C, 26902 }, + { 0x6C31, 26910 }, + { 0x6CBE, 26918 }, + { 0x6C2D, 26925 }, + { 0x6D7C, 26932 }, + { 0x6D7D, 26941 }, + { 0x6CC0, 26950 }, + { 0x6C2F, 26957 }, + { 0x6DC1, 26964 }, + { 0x6CC1, 26973 }, + { 0x6C30, 26980 }, + { 0x6D1C, 26987 }, + { 0x6D00, 26994 }, + { 0x6D1B, 27001 }, + { 0x6CFF, 27009 }, + { 0x6DBF, 27017 }, + { 0x6CA9, 27026 }, + { 0x6C17, 27033 }, + { 0x6D5A, 27040 }, + { 0x6D5B, 27049 }, + { 0x6CAA, 27059 }, + { 0x6C18, 27066 }, + { 0x6C54, 27073 }, + { 0x6C53, 27080 }, + { 0x6CD7, 27088 }, + { 0x6C51, 27095 }, + { 0x6D93, 27102 }, + { 0x6D94, 27111 }, + { 0x6CD8, 27120 }, + { 0x6C52, 27127 }, + { 0x6CD9, 27134 }, + { 0x6CC5, 27142 }, + { 0x6C39, 27149 }, + { 0x6C81, 27156 }, + { 0x6CEB, 27163 }, + { 0x6CC7, 27170 }, + { 0x6C3B, 27177 }, + { 0x6C84, 27184 }, + { 0x6C3E, 27191 }, + { 0x6C80, 27198 }, + { 0x6C83, 27205 }, + { 0x6C3D, 27213 }, + { 0x6C37, 27221 }, + { 0x6CC4, 27228 }, + { 0x6C38, 27235 }, + { 0x6CC6, 27242 }, + { 0x6C3A, 27249 }, + { 0x6DB7, 27256 }, + { 0x6DBB, 27265 }, + { 0x6DC3, 27274 }, + { 0x6C82, 27283 }, + { 0x6CEC, 27290 }, + { 0x6CC8, 27297 }, + { 0x6C3C, 27304 }, + { 0x6D81, 27311 }, + { 0x6D82, 27320 }, + { 0x6D80, 27330 }, + { 0x6DB5, 27339 }, + { 0x6CCA, 27348 }, + { 0x6C40, 27355 }, + { 0x6CCD, 27362 }, + { 0x6C87, 27369 }, + { 0x6C44, 27376 }, + { 0x6EF8, 27383 }, + { 0x6EF7, 27393 }, + { 0x6EFA, 27403 }, + { 0x6EF9, 27413 }, + { 0x6EF6, 27423 }, + { 0x6EF5, 27433 }, + { 0x6EFC, 27443 }, + { 0x6C86, 27450 }, + { 0x6C43, 27458 }, + { 0x6EFB, 27466 }, + { 0x6DAC, 27473 }, + { 0x6D84, 27482 }, + { 0x6D83, 27491 }, + { 0x6DBC, 27500 }, + { 0x6DBA, 27509 }, + { 0x6CC9, 27518 }, + { 0x6C3F, 27525 }, + { 0x6D85, 27532 }, + { 0x6D86, 27541 }, + { 0x6CCB, 27550 }, + { 0x6C41, 27557 }, + { 0x6D87, 27564 }, + { 0x6D88, 27573 }, + { 0x6DAD, 27582 }, + { 0x6C85, 27591 }, + { 0x6CED, 27598 }, + { 0x6CCC, 27605 }, + { 0x6C42, 27612 }, + { 0x6CC2, 27619 }, + { 0x6C33, 27626 }, + { 0x6C7F, 27633 }, + { 0x6C36, 27640 }, + { 0x6C7E, 27647 }, + { 0x6C35, 27655 }, + { 0x6D7E, 27663 }, + { 0x6DB4, 27672 }, + { 0x6DB2, 27681 }, + { 0x6D7F, 27690 }, + { 0x6CC3, 27699 }, + { 0x6C34, 27706 }, + { 0x6C5C, 27713 }, + { 0x6D64, 27721 }, + { 0x6D65, 27730 }, + { 0x6DA9, 27739 }, + { 0x6CB1, 27748 }, + { 0x6C20, 27755 }, + { 0x6D2B, 27762 }, + { 0x6D0F, 27769 }, + { 0x6D22, 27776 }, + { 0x6D06, 27783 }, + { 0x6D21, 27790 }, + { 0x6D05, 27798 }, + { 0x6CB2, 27806 }, + { 0x6D66, 27813 }, + { 0x6DC5, 27822 }, + { 0x6CB3, 27831 }, + { 0x6C21, 27838 }, + { 0x6CB8, 27845 }, + { 0x6C26, 27852 }, + { 0x6D12, 27859 }, + { 0x6CF6, 27866 }, + { 0x6D11, 27873 }, + { 0x6CF5, 27881 }, + { 0x6D71, 27889 }, + { 0x6D72, 27898 }, + { 0x6D74, 27907 }, + { 0x6D73, 27916 }, + { 0x6D3A, 27925 }, + { 0x6D33, 27932 }, + { 0x6C27, 27939 }, + { 0x6D51, 27946 }, + { 0x6D52, 27955 }, + { 0x6D53, 27964 }, + { 0x6CA2, 27973 }, + { 0x6C0C, 27980 }, + { 0x6CE4, 27987 }, + { 0x6CA5, 27994 }, + { 0x6C70, 28001 }, + { 0x6C75, 28008 }, + { 0x6C10, 28015 }, + { 0x6C74, 28022 }, + { 0x6C0F, 28030 }, + { 0x6D9F, 28038 }, + { 0x6DA0, 28047 }, + { 0x6D50, 28057 }, + { 0x6CA1, 28066 }, + { 0x6C0B, 28073 }, + { 0x6DA1, 28080 }, + { 0x6DA2, 28089 }, + { 0x6D54, 28099 }, + { 0x6CA3, 28108 }, + { 0x6C0D, 28115 }, + { 0x6D56, 28122 }, + { 0x6DA3, 28131 }, + { 0x6DA4, 28140 }, + { 0x6D55, 28150 }, + { 0x6D57, 28159 }, + { 0x6C72, 28168 }, + { 0x6CE3, 28175 }, + { 0x6CA4, 28182 }, + { 0x6C0E, 28189 }, + { 0x6C73, 28196 }, + { 0x6C71, 28203 }, + { 0x6DAE, 28210 }, + { 0x6CDB, 28219 }, + { 0x6C56, 28226 }, + { 0x6CF1, 28233 }, + { 0x6CDE, 28240 }, + { 0x6C91, 28247 }, + { 0x6C96, 28254 }, + { 0x6C5A, 28261 }, + { 0x6C95, 28268 }, + { 0x6C59, 28276 }, + { 0x6DAF, 28284 }, + { 0x6CDA, 28293 }, + { 0x6C55, 28300 }, + { 0x6CDC, 28307 }, + { 0x6C57, 28314 }, + { 0x6DB0, 28321 }, + { 0x6D9C, 28330 }, + { 0x6D9D, 28339 }, + { 0x6C93, 28348 }, + { 0x6CF0, 28355 }, + { 0x6CDD, 28362 }, + { 0x6C58, 28369 }, + { 0x6C94, 28376 }, + { 0x6C92, 28383 }, + { 0x6BF7, 28390 }, + { 0x6BF8, 28400 }, + { 0x6BF6, 28410 }, + { 0x6BF1, 28420 }, + { 0x6BF0, 28430 }, + { 0x6BED, 28440 }, + { 0x6BEC, 28450 }, + { 0x6BF3, 28460 }, + { 0x6BF2, 28470 }, + { 0x6BF5, 28480 }, + { 0x6BF4, 28490 }, + { 0x6C98, 28500 }, + { 0x6C01, 28510 }, + { 0x6CE0, 28520 }, + { 0x6C9B, 28530 }, + { 0x6C64, 28540 }, + { 0x6BEF, 28550 }, + { 0x6BEE, 28560 }, + { 0x6C69, 28570 }, + { 0x6C04, 28580 }, + { 0x6BEB, 28590 }, + { 0x6C68, 28600 }, + { 0x6C03, 28611 }, + { 0x6BEA, 28622 }, + { 0x6C97, 28632 }, + { 0x6C00, 28642 }, + { 0x6C99, 28652 }, + { 0x6C66, 28662 }, + { 0x6CDF, 28672 }, + { 0x6C9A, 28682 }, + { 0x6C02, 28692 }, + { 0x6C67, 28702 }, + { 0x6C65, 28712 }, + { 0x6D3B, 28722 }, + { 0x6CB9, 28729 }, + { 0x6C28, 28736 }, + { 0x6D3C, 28743 }, + { 0x6D3D, 28750 }, + { 0x6C90, 28757 }, + { 0x6C5D, 28766 }, + { 0x6DBE, 28775 }, + { 0x6DA6, 28784 }, + { 0x6CA7, 28794 }, + { 0x6C15, 28801 }, + { 0x6D1E, 28808 }, + { 0x6D02, 28815 }, + { 0x6D1D, 28822 }, + { 0x6D01, 28830 }, + { 0x6D58, 28838 }, + { 0x6D59, 28847 }, + { 0x6DA5, 28856 }, + { 0x6DA7, 28865 }, + { 0x6CA8, 28875 }, + { 0x6C16, 28882 }, + { 0x6C1A, 28889 }, + { 0x6D20, 28896 }, + { 0x6D04, 28903 }, + { 0x6D1F, 28910 }, + { 0x6D03, 28918 }, + { 0x6CAB, 28926 }, + { 0x6C19, 28933 }, + { 0x6CAC, 28940 }, + { 0x6C1B, 28947 }, + { 0x6D8B, 28954 }, + { 0x6D89, 28963 }, + { 0x6D8A, 28972 }, + { 0x6CCF, 28981 }, + { 0x6C46, 28988 }, + { 0x6C4A, 28995 }, + { 0x6C88, 29002 }, + { 0x6C49, 29009 }, + { 0x6D8C, 29017 }, + { 0x6DC0, 29026 }, + { 0x6D92, 29035 }, + { 0x6D8D, 29044 }, + { 0x6CCE, 29053 }, + { 0x6C45, 29060 }, + { 0x6DB9, 29067 }, + { 0x6D8E, 29076 }, + { 0x6D8F, 29085 }, + { 0x6CD0, 29094 }, + { 0x6C47, 29101 }, + { 0x6DB1, 29108 }, + { 0x6C89, 29117 }, + { 0x6CD1, 29124 }, + { 0x6C48, 29131 }, + { 0x6DB3, 29138 }, + { 0x6D96, 29147 }, + { 0x6D95, 29157 }, + { 0x6CD3, 29166 }, + { 0x6C4C, 29173 }, + { 0x6CEF, 29180 }, + { 0x6CD6, 29187 }, + { 0x6C8A, 29194 }, + { 0x6C8F, 29201 }, + { 0x6C50, 29208 }, + { 0x6C8E, 29215 }, + { 0x6C4F, 29223 }, + { 0x6DBD, 29231 }, + { 0x6DB8, 29240 }, + { 0x6DC7, 29249 }, + { 0x6D99, 29258 }, + { 0x6D97, 29268 }, + { 0x6D98, 29277 }, + { 0x6CD2, 29286 }, + { 0x6C4B, 29293 }, + { 0x6CD4, 29300 }, + { 0x6C4D, 29307 }, + { 0x6D9A, 29314 }, + { 0x6D9B, 29323 }, + { 0x6C8C, 29333 }, + { 0x6CEE, 29340 }, + { 0x6CD5, 29347 }, + { 0x6C4E, 29354 }, + { 0x6C8D, 29361 }, + { 0x6C8B, 29368 }, + { 0x6DF1, 29375 }, + { 0x6D5C, 29385 }, + { 0x6D35, 29394 }, + { 0x6CAE, 29401 }, + { 0x6C1D, 29408 }, + { 0x6CE8, 29415 }, + { 0x6D31, 29422 }, + { 0x6D2A, 29429 }, + { 0x6D0E, 29436 }, + { 0x6D18, 29443 }, + { 0x6CFC, 29450 }, + { 0x6D17, 29457 }, + { 0x6CFB, 29465 }, + { 0x6D5D, 29473 }, + { 0x6D5E, 29482 }, + { 0x6D34, 29492 }, + { 0x6CAD, 29499 }, + { 0x6C1C, 29506 }, + { 0x6DC6, 29513 }, + { 0x6DA8, 29522 }, + { 0x6D36, 29532 }, + { 0x6CAF, 29539 }, + { 0x6C1E, 29546 }, + { 0x6D5F, 29553 }, + { 0x6D60, 29562 }, + { 0x6D61, 29571 }, + { 0x6D62, 29580 }, + { 0x6D63, 29589 }, + { 0x6CE7, 29598 }, + { 0x6CB0, 29605 }, + { 0x6C1F, 29612 }, + { 0x6C5B, 29619 }, + { 0x6CE6, 29627 }, + { 0x6C76, 29634 }, + { 0x6C7B, 29641 }, + { 0x6C14, 29648 }, + { 0x6C7A, 29655 }, + { 0x6C13, 29663 }, + { 0x6C11, 29671 }, + { 0x6C78, 29678 }, + { 0x6CE5, 29685 }, + { 0x6CA6, 29692 }, + { 0x6C12, 29699 }, + { 0x6C79, 29706 }, + { 0x6C77, 29713 }, + { 0x6DF3, 29720 }, + { 0x6DF2, 29725 }, + { 0x6D16, 29730 }, + { 0x6CFA, 29737 }, + { 0x6D15, 29744 }, + { 0x6CF9, 29752 }, + { 0x6CBC, 29760 }, + { 0x6C2B, 29767 }, + { 0x6D7A, 29774 }, + { 0x6D7B, 29783 }, + { 0x6D79, 29793 }, + { 0x6CBD, 29802 }, + { 0x6C2C, 29809 }, + { 0x6DF5, 29816 }, + { 0x6DF0, 29821 }, + { 0x6DF9, 29831 }, + { 0x6DAA, 29836 }, + { 0x6D67, 29845 }, + { 0x6D68, 29854 }, + { 0x6D26, 29863 }, + { 0x6D38, 29870 }, + { 0x6D2E, 29877 }, + { 0x6D0A, 29884 }, + { 0x6CEA, 29891 }, + { 0x6D32, 29898 }, + { 0x6D29, 29905 }, + { 0x6D0D, 29912 }, + { 0x6D1A, 29919 }, + { 0x6CFE, 29926 }, + { 0x6D19, 29933 }, + { 0x6CFD, 29941 }, + { 0x6D69, 29949 }, + { 0x6D25, 29958 }, + { 0x6D37, 29965 }, + { 0x6D2D, 29972 }, + { 0x6D09, 29979 }, + { 0x6D27, 29986 }, + { 0x6D39, 29993 }, + { 0x6D2F, 30000 }, + { 0x6D0B, 30007 }, + { 0x6D6A, 30014 }, + { 0x6D6B, 30023 }, + { 0x6D6C, 30032 }, + { 0x6D6D, 30041 }, + { 0x6D28, 30050 }, + { 0x6CE9, 30057 }, + { 0x6D30, 30064 }, + { 0x6D0C, 30071 }, + { 0x6DF7, 30078 }, + { 0x6DF6, 30083 }, + { 0x6CF3, 30088 }, + { 0x6C61, 30095 }, + { 0x6CF2, 30102 }, + { 0x6C60, 30109 }, + { 0x6CF4, 30116 }, + { 0x6C62, 30123 }, + { 0x6C5E, 30130 }, + { 0x6C5F, 30137 }, + { 0x6C63, 30144 }, + { 0x6BFA, 30152 }, + { 0x6BFB, 30165 }, + { 0x6BF9, 30178 }, + { 0x6DF4, 30191 }, + { 0x6DF8, 30196 }, + { 0x6DFD, 30201 }, + { 0x6DFA, 30206 }, + { 0x6DFB, 30211 }, + { 0x061F, 30214 }, + { 0x065D, 30217 }, + { 0x0659, 30220 }, + { 0x061B, 30222 }, + { 0x0656, 30224 }, + { 0x066C, 30227 }, + { 0x2717, 30230 }, + { 0x2610, 30232 }, + { 0x2612, 30234 }, + { 0x2611, 30238 }, + { 0x266B, 30242 }, + { 0x266C, 30245 }, + { 0x293B, 30248 }, + { 0x2321, 30252 }, + { 0x230D, 30255 }, + { 0x2E24, 30258 }, + { 0x231E, 30262 }, + { 0x23DF, 30265 }, + { 0x230C, 30268 }, + { 0x2E25, 30271 }, + { 0x231F, 30275 }, + { 0x23B5, 30278 }, + { 0x23B6, 30281 }, + { 0x23E1, 30288 }, + { 0x23DD, 30292 }, + { 0x22C8, 30294 }, + { 0x29D1, 30295 }, + { 0x29D2, 30300 }, + { 0x00A6, 30305 }, + { 0x238B, 30307 }, + { 0x2022, 30312 }, + { 0x2219, 30313 }, + { 0xC07F, 30315 }, + { 0x264B, 30317 }, + { 0x72A0, 30318 }, + { 0x72A9, 30321 }, + { 0x72A2, 30324 }, + { 0x72BA, 30327 }, + { 0x72C0, 30330 }, + { 0x72B9, 30333 }, + { 0x72BC, 30336 }, + { 0x72A3, 30339 }, + { 0x72AA, 30342 }, + { 0x72B5, 30345 }, + { 0x72AB, 30348 }, + { 0x72B7, 30351 }, + { 0x72A8, 30354 }, + { 0x72A5, 30357 }, + { 0x72B0, 30360 }, + { 0x72AD, 30363 }, + { 0x72B2, 30366 }, + { 0x72B4, 30369 }, + { 0x72A7, 30372 }, + { 0x72AC, 30375 }, + { 0x72CF, 30378 }, + { 0x72C1, 30381 }, + { 0x72C5, 30384 }, + { 0x72BD, 30387 }, + { 0x72A6, 30390 }, + { 0x72CA, 30393 }, + { 0x72BE, 30396 }, + { 0x72C4, 30399 }, + { 0x72B3, 30402 }, + { 0x72A1, 30405 }, + { 0x72C9, 30408 }, + { 0x72AE, 30411 }, + { 0x72B8, 30414 }, + { 0x72C2, 30417 }, + { 0x72C7, 30420 }, + { 0x72BF, 30423 }, + { 0x72CE, 30426 }, + { 0x72CB, 30429 }, + { 0x72CC, 30432 }, + { 0x72CD, 30435 }, + { 0x72AF, 30438 }, + { 0x72C3, 30441 }, + { 0x72B6, 30444 }, + { 0x72A4, 30447 }, + { 0x72B1, 30450 }, + { 0x72C6, 30453 }, + { 0x72C8, 30456 }, + { 0x72D0, 30459 }, + { 0x72BB, 30462 }, + { 0x2104, 30465 }, + { 0x26B7, 30468 }, + { 0x25D5, 30469 }, + { 0x29C3, 30477 }, + { 0x25D0, 30485 }, + { 0x25D2, 30490 }, + { 0x25D1, 30495 }, + { 0x29C2, 30500 }, + { 0x25D3, 30507 }, + { 0x25D4, 30512 }, + { 0x25CD, 30518 }, + { 0x29B5, 30522 }, + { 0x29BB, 30526 }, + { 0x29BA, 30530 }, + { 0x2A4C, 30542 }, + { 0x2A50, 30546 }, + { 0x2ACF, 30553 }, + { 0x2AD1, 30555 }, + { 0x2AD0, 30560 }, + { 0x2AD2, 30562 }, + { 0x2A4D, 30567 }, + { 0x26B0, 30571 }, + { 0x2CF9, 30572 }, + { 0x2CFC, 30577 }, + { 0x2CFA, 30582 }, + { 0x2CFB, 30588 }, + { 0x2CFE, 30594 }, + { 0x2C9F, 30597 }, + { 0x2CAB, 30601 }, + { 0x2C99, 30605 }, + { 0x2C9B, 30609 }, + { 0x2CA1, 30613 }, + { 0x2CA3, 30617 }, + { 0x2CA9, 30621 }, + { 0x03EF, 30625 }, + { 0x2C89, 30629 }, + { 0x03E5, 30633 }, + { 0x2CAD, 30637 }, + { 0x2C9D, 30641 }, + { 0x2CCF, 30645 }, + { 0x2CB5, 30651 }, + { 0x2CD9, 30657 }, + { 0x2CC7, 30663 }, + { 0x2CD5, 30669 }, + { 0x2CD3, 30675 }, + { 0x2CBF, 30681 }, + { 0x2CCD, 30687 }, + { 0x2CC5, 30693 }, + { 0x2CDB, 30699 }, + { 0x2CD7, 30705 }, + { 0x2CDF, 30711 }, + { 0x2CE1, 30717 }, + { 0x2CE3, 30723 }, + { 0x2CDD, 30729 }, + { 0x2CB1, 30735 }, + { 0x2CAF, 30739 }, + { 0x2C8B, 30743 }, + { 0x2CA7, 30747 }, + { 0x2C81, 30751 }, + { 0x2C8F, 30755 }, + { 0x03E9, 30759 }, + { 0x2C95, 30763 }, + { 0x03E7, 30767 }, + { 0x03E3, 30771 }, + { 0x2CA5, 30775 }, + { 0x2C83, 30779 }, + { 0x2C8D, 30783 }, + { 0x2C87, 30787 }, + { 0x2C85, 30791 }, + { 0x2C93, 30795 }, + { 0x2C97, 30799 }, + { 0x2CC1, 30803 }, + { 0x03ED, 30807 }, + { 0x03EB, 30811 }, + { 0x2C91, 30815 }, + { 0x2CC3, 30819 }, + { 0x2CC9, 30824 }, + { 0x2CD1, 30829 }, + { 0x2CBB, 30834 }, + { 0x2CB3, 30839 }, + { 0x2CCB, 30844 }, + { 0x2CB9, 30849 }, + { 0x2CBD, 30854 }, + { 0x2CB7, 30859 }, + { 0x2CE5, 30864 }, + { 0x2CE6, 30868 }, + { 0x2CE4, 30872 }, + { 0x2CE9, 30875 }, + { 0x2CE8, 30879 }, + { 0x2CEA, 30883 }, + { 0x2CE7, 30887 }, + { 0x2C9E, 30890 }, + { 0x2CAA, 30894 }, + { 0x2C98, 30898 }, + { 0x2C9A, 30902 }, + { 0x2CA0, 30906 }, + { 0x2CA2, 30910 }, + { 0x2CA8, 30914 }, + { 0x03EE, 30918 }, + { 0x2C88, 30922 }, + { 0x03E4, 30926 }, + { 0x2CAC, 30930 }, + { 0x2C9C, 30934 }, + { 0x2CCE, 30938 }, + { 0x2CB4, 30944 }, + { 0x2CD8, 30950 }, + { 0x2CC6, 30956 }, + { 0x2CD4, 30962 }, + { 0x2CD2, 30968 }, + { 0x2CBE, 30974 }, + { 0x2CCC, 30980 }, + { 0x2CC4, 30986 }, + { 0x2CDA, 30992 }, + { 0x2CD6, 30998 }, + { 0x2CDE, 31004 }, + { 0x2CE0, 31010 }, + { 0x2CE2, 31016 }, + { 0x2CDC, 31022 }, + { 0x2CB0, 31028 }, + { 0x2CAE, 31032 }, + { 0x2C8A, 31036 }, + { 0x2CA6, 31040 }, + { 0x2C80, 31044 }, + { 0x2C8E, 31048 }, + { 0x03E8, 31052 }, + { 0x2C94, 31056 }, + { 0x03E6, 31060 }, + { 0x03E2, 31064 }, + { 0x2CA4, 31068 }, + { 0x2C82, 31072 }, + { 0x2C8C, 31076 }, + { 0x2C86, 31080 }, + { 0x2C84, 31084 }, + { 0x2C92, 31088 }, + { 0x2C96, 31092 }, + { 0x2CC0, 31096 }, + { 0x03EC, 31100 }, + { 0x03EA, 31104 }, + { 0x2C90, 31108 }, + { 0x2CC2, 31112 }, + { 0x2CC8, 31117 }, + { 0x2CD0, 31122 }, + { 0x2CBA, 31127 }, + { 0x2CB2, 31132 }, + { 0x2CCA, 31137 }, + { 0x2CB8, 31142 }, + { 0x2CBC, 31147 }, + { 0x2CB6, 31152 }, + { 0x2CFD, 31157 }, + { 0x2CFF, 31161 }, + { 0x2761, 31164 }, + { 0x2020, 31169 }, + { 0x6E4D, 31170 }, + { 0x6E49, 31173 }, + { 0x279F, 31175 }, + { 0x00B0, 31179 }, + { 0x2103, 31181 }, + { 0x2109, 31183 }, + { 0x9305, 31185 }, + { 0x9302, 31188 }, + { 0x268D, 31192 }, + { 0x268E, 31196 }, + { 0x9304, 31200 }, + { 0x9303, 31204 }, + { 0x268F, 31208 }, + { 0x268C, 31212 }, + { 0x9301, 31216 }, + { 0x2393, 31220 }, + { 0x0024, 31225 }, + { 0xA062, 31227 }, + { 0xA030, 31231 }, + { 0xA063, 31235 }, + { 0xA064, 31238 }, + { 0xA065, 31241 }, + { 0xA066, 31244 }, + { 0xA067, 31247 }, + { 0xA068, 31250 }, + { 0xA069, 31253 }, + { 0xA06A, 31256 }, + { 0xA06B, 31259 }, + { 0xA06C, 31262 }, + { 0xA06D, 31265 }, + { 0xA06E, 31268 }, + { 0xA06F, 31271 }, + { 0xA070, 31274 }, + { 0xA071, 31277 }, + { 0xA072, 31280 }, + { 0xA073, 31283 }, + { 0xA074, 31286 }, + { 0xA075, 31289 }, + { 0xA076, 31292 }, + { 0xA077, 31295 }, + { 0xA078, 31298 }, + { 0xA079, 31301 }, + { 0xA07A, 31304 }, + { 0xA07B, 31307 }, + { 0xA07C, 31310 }, + { 0xA07D, 31313 }, + { 0xA07E, 31316 }, + { 0xA07F, 31319 }, + { 0xA080, 31322 }, + { 0xA081, 31325 }, + { 0xA082, 31328 }, + { 0xA083, 31331 }, + { 0xA084, 31334 }, + { 0xA085, 31337 }, + { 0xA086, 31340 }, + { 0xA087, 31343 }, + { 0xA088, 31346 }, + { 0xA089, 31349 }, + { 0xA08A, 31352 }, + { 0xA08B, 31355 }, + { 0xA08C, 31358 }, + { 0xA08D, 31361 }, + { 0xA08E, 31364 }, + { 0xA08F, 31367 }, + { 0xA090, 31370 }, + { 0xA091, 31373 }, + { 0xA092, 31376 }, + { 0xA093, 31379 }, + { 0xA031, 31382 }, + { 0xA032, 31385 }, + { 0xA033, 31388 }, + { 0xA034, 31391 }, + { 0xA035, 31394 }, + { 0xA036, 31397 }, + { 0xA037, 31400 }, + { 0xA038, 31403 }, + { 0xA039, 31406 }, + { 0xA03A, 31409 }, + { 0xA03B, 31412 }, + { 0xA03C, 31415 }, + { 0xA03D, 31418 }, + { 0xA03E, 31421 }, + { 0xA03F, 31424 }, + { 0xA040, 31427 }, + { 0xA041, 31430 }, + { 0xA042, 31433 }, + { 0xA043, 31436 }, + { 0xA044, 31439 }, + { 0xA045, 31442 }, + { 0xA046, 31445 }, + { 0xA047, 31448 }, + { 0xA048, 31451 }, + { 0xA049, 31454 }, + { 0xA04A, 31457 }, + { 0xA04B, 31460 }, + { 0xA04C, 31463 }, + { 0xA04D, 31466 }, + { 0xA04E, 31469 }, + { 0xA04F, 31472 }, + { 0xA050, 31475 }, + { 0xA051, 31478 }, + { 0xA052, 31481 }, + { 0xA053, 31484 }, + { 0xA054, 31487 }, + { 0xA055, 31490 }, + { 0xA056, 31493 }, + { 0xA057, 31496 }, + { 0xA058, 31499 }, + { 0xA059, 31502 }, + { 0xA05A, 31505 }, + { 0xA05B, 31508 }, + { 0xA05C, 31511 }, + { 0xA05D, 31514 }, + { 0xA05E, 31517 }, + { 0xA05F, 31520 }, + { 0xA060, 31523 }, + { 0xA061, 31526 }, + { 0x205C, 31529 }, + { 0x2999, 31531 }, + { 0x25CC, 31533 }, + { 0x2E13, 31535 }, + { 0x2B1A, 31537 }, + { 0x2E08, 31539 }, + { 0x2E16, 31542 }, + { 0x2AEB, 31545 }, + { 0x2017, 31548 }, + { 0x2AEA, 31551 }, + { 0x2995, 31554 }, + { 0x29FA, 31559 }, + { 0x6E4C, 31561 }, + { 0x02DD, 31564 }, + { 0x2A74, 31567 }, + { 0x201E, 31570 }, + { 0x2033, 31574 }, + { 0x301E, 31576 }, + { 0x2996, 31580 }, + { 0x22D3, 31585 }, + { 0x2021, 31587 }, + { 0x2AA1, 31589 }, + { 0x2AA3, 31592 }, + { 0x2AA2, 31597 }, + { 0x2A4F, 31600 }, + { 0x2A4E, 31603 }, + { 0x2AEC, 31606 }, + { 0x22D0, 31610 }, + { 0x24F5, 31612 }, + { 0x24FA, 31616 }, + { 0x24F6, 31620 }, + { 0x24F9, 31624 }, + { 0x24F8, 31628 }, + { 0x24FD, 31632 }, + { 0x24FC, 31636 }, + { 0x24FB, 31640 }, + { 0x24F7, 31644 }, + { 0x24FE, 31648 }, + { 0x2A54, 31652 }, + { 0x2A53, 31655 }, + { 0x2E17, 31658 }, + { 0x2AFD, 31661 }, + { 0x222C, 31664 }, + { 0x2ABB, 31666 }, + { 0x2047, 31668 }, + { 0x2ABC, 31671 }, + { 0x22D1, 31673 }, + { 0x2AE3, 31675 }, + { 0x2AE5, 31680 }, + { 0x22AB, 31686 }, + { 0x2016, 31692 }, + { 0x203C, 31695 }, + { 0x22D2, 31698 }, + { 0x201F, 31700 }, + { 0x266A, 31704 }, + { 0x003D, 31706 }, + { 0x29E3, 31708 }, + { 0x29E4, 31713 }, + { 0x2A66, 31721 }, + { 0x2A77, 31726 }, + { 0x2AAE, 31736 }, + { 0x2A71, 31741 }, + { 0x2A73, 31746 }, + { 0x2B40, 31751 }, + { 0x2971, 31756 }, + { 0x2A6E, 31761 }, + { 0x2255, 31764 }, + { 0x2239, 31766 }, + { 0x2640, 31767 }, + { 0x2012, 31769 }, + { 0x2007, 31771 }, + { 0x2A0D, 31773 }, + { 0x2766, 31776 }, + { 0x2698, 31778 }, + { 0x2055, 31779 }, + { 0x22A9, 31782 }, + { 0x2E10, 31783 }, + { 0x221C, 31785 }, + { 0x20A3, 31787 }, + { 0x264A, 31790 }, + { 0x20B0, 31791 }, + { 0x29E6, 31794 }, + { 0x7339, 31796 }, + { 0x733E, 31799 }, + { 0x7330, 31802 }, + { 0x7333, 31805 }, + { 0x7332, 31808 }, + { 0x7337, 31811 }, + { 0x7336, 31814 }, + { 0x734A, 31817 }, + { 0x733F, 31821 }, + { 0x7346, 31824 }, + { 0x7348, 31827 }, + { 0x7347, 31830 }, + { 0x733A, 31833 }, + { 0x733B, 31836 }, + { 0x733C, 31839 }, + { 0x7349, 31842 }, + { 0x7342, 31845 }, + { 0x7343, 31848 }, + { 0x7344, 31851 }, + { 0x7345, 31854 }, + { 0x7334, 31857 }, + { 0x733D, 31860 }, + { 0x7341, 31863 }, + { 0x7338, 31866 }, + { 0x7331, 31869 }, + { 0x7340, 31872 }, + { 0x7335, 31875 }, + { 0x2692, 31878 }, + { 0x262D, 31881 }, + { 0x302F, 31884 }, + { 0x3164, 31889 }, + { 0x314F, 31891 }, + { 0x3154, 31894 }, + { 0x3163, 31897 }, + { 0x3157, 31900 }, + { 0x315C, 31903 }, + { 0x3150, 31906 }, + { 0x3153, 31909 }, + { 0x3161, 31912 }, + { 0x315A, 31915 }, + { 0x3158, 31918 }, + { 0x315E, 31921 }, + { 0x315F, 31924 }, + { 0x3151, 31927 }, + { 0x3156, 31930 }, + { 0x3162, 31933 }, + { 0x315B, 31936 }, + { 0x3160, 31939 }, + { 0x3159, 31942 }, + { 0x315D, 31945 }, + { 0x3152, 31948 }, + { 0x3155, 31951 }, + { 0x3145, 31954 }, + { 0x3189, 31957 }, + { 0x318C, 31960 }, + { 0x318D, 31963 }, + { 0x3148, 31966 }, + { 0x314E, 31969 }, + { 0x3147, 31972 }, + { 0x3141, 31975 }, + { 0x3134, 31978 }, + { 0x3142, 31981 }, + { 0x3139, 31984 }, + { 0x3187, 31987 }, + { 0x318B, 31990 }, + { 0x318E, 31993 }, + { 0x3131, 31996 }, + { 0x3137, 31999 }, + { 0x3188, 32002 }, + { 0x318A, 32005 }, + { 0x314A, 32008 }, + { 0x314B, 32011 }, + { 0x317F, 32014 }, + { 0x314D, 32017 }, + { 0x314C, 32020 }, + { 0x3181, 32023 }, + { 0x3146, 32026 }, + { 0x316F, 32029 }, + { 0x3167, 32032 }, + { 0x3144, 32035 }, + { 0x313D, 32038 }, + { 0x317E, 32041 }, + { 0x317B, 32044 }, + { 0x317D, 32047 }, + { 0x3149, 32050 }, + { 0x3185, 32053 }, + { 0x3180, 32056 }, + { 0x3165, 32059 }, + { 0x3143, 32062 }, + { 0x3133, 32065 }, + { 0x316E, 32068 }, + { 0x3135, 32071 }, + { 0x3136, 32074 }, + { 0x3176, 32077 }, + { 0x3140, 32080 }, + { 0x313B, 32083 }, + { 0x313C, 32086 }, + { 0x317A, 32089 }, + { 0x317C, 32092 }, + { 0x3132, 32095 }, + { 0x3138, 32098 }, + { 0x3186, 32101 }, + { 0x3166, 32104 }, + { 0x3172, 32107 }, + { 0x3173, 32110 }, + { 0x313A, 32113 }, + { 0x316A, 32116 }, + { 0x3171, 32119 }, + { 0x3178, 32122 }, + { 0x3170, 32125 }, + { 0x3168, 32128 }, + { 0x3177, 32131 }, + { 0x316C, 32134 }, + { 0x313F, 32137 }, + { 0x313E, 32140 }, + { 0x3182, 32143 }, + { 0x3184, 32146 }, + { 0x316B, 32149 }, + { 0x3183, 32152 }, + { 0x3174, 32155 }, + { 0x3175, 32158 }, + { 0x3169, 32161 }, + { 0x316D, 32164 }, + { 0x3179, 32167 }, + { 0x302E, 32170 }, + { 0x1109, 32175 }, + { 0x110C, 32178 }, + { 0x1112, 32181 }, + { 0x110B, 32184 }, + { 0x1106, 32187 }, + { 0x1102, 32190 }, + { 0x1107, 32193 }, + { 0x1105, 32196 }, + { 0x115F, 32199 }, + { 0x1100, 32202 }, + { 0x1103, 32205 }, + { 0x110E, 32208 }, + { 0x110F, 32211 }, + { 0x1140, 32214 }, + { 0x1111, 32217 }, + { 0x1110, 32220 }, + { 0x114C, 32223 }, + { 0x110A, 32226 }, + { 0x1145, 32229 }, + { 0x1121, 32232 }, + { 0x1136, 32235 }, + { 0x113B, 32238 }, + { 0x1135, 32241 }, + { 0x1131, 32244 }, + { 0x112E, 32247 }, + { 0x1132, 32250 }, + { 0x1130, 32253 }, + { 0x110D, 32256 }, + { 0x1158, 32259 }, + { 0x1147, 32262 }, + { 0x1114, 32265 }, + { 0x1108, 32268 }, + { 0x1119, 32271 }, + { 0x114D, 32274 }, + { 0x1148, 32277 }, + { 0x1143, 32280 }, + { 0x1144, 32283 }, + { 0x111C, 32286 }, + { 0x1116, 32289 }, + { 0x1127, 32292 }, + { 0x111F, 32295 }, + { 0x111A, 32298 }, + { 0x1118, 32301 }, + { 0x112D, 32304 }, + { 0x112F, 32307 }, + { 0x1101, 32310 }, + { 0x1104, 32313 }, + { 0x1159, 32316 }, + { 0x113C, 32319 }, + { 0x1141, 32322 }, + { 0x1142, 32325 }, + { 0x1113, 32328 }, + { 0x1115, 32331 }, + { 0x111E, 32334 }, + { 0x1120, 32337 }, + { 0x1137, 32340 }, + { 0x1138, 32343 }, + { 0x113A, 32346 }, + { 0x1139, 32349 }, + { 0x1153, 32352 }, + { 0x114E, 32355 }, + { 0x1149, 32358 }, + { 0x1146, 32361 }, + { 0x114B, 32364 }, + { 0x114A, 32367 }, + { 0x111D, 32370 }, + { 0x112B, 32373 }, + { 0x111B, 32376 }, + { 0x1156, 32379 }, + { 0x1128, 32382 }, + { 0x112A, 32385 }, + { 0x1129, 32388 }, + { 0x1117, 32391 }, + { 0x1134, 32394 }, + { 0x113E, 32397 }, + { 0x1152, 32400 }, + { 0x1154, 32403 }, + { 0x1157, 32406 }, + { 0x1125, 32409 }, + { 0x1150, 32412 }, + { 0x1126, 32415 }, + { 0x1124, 32418 }, + { 0x113D, 32421 }, + { 0x1122, 32424 }, + { 0x1123, 32427 }, + { 0x1133, 32430 }, + { 0x1155, 32433 }, + { 0x114F, 32436 }, + { 0x112C, 32439 }, + { 0x113F, 32442 }, + { 0x1151, 32445 }, + { 0x11BA, 32448 }, + { 0x11BD, 32451 }, + { 0x11C2, 32454 }, + { 0x11BC, 32457 }, + { 0x11B7, 32460 }, + { 0x11AB, 32463 }, + { 0x11B8, 32466 }, + { 0x11AF, 32469 }, + { 0x11A8, 32472 }, + { 0x11AE, 32475 }, + { 0x11BE, 32478 }, + { 0x11BF, 32481 }, + { 0x11EB, 32484 }, + { 0x11C1, 32487 }, + { 0x11C0, 32490 }, + { 0x11F0, 32493 }, + { 0x11BB, 32496 }, + { 0x11DD, 32499 }, + { 0x11C7, 32502 }, + { 0x11B9, 32505 }, + { 0x11B3, 32508 }, + { 0x11EA, 32511 }, + { 0x11E9, 32514 }, + { 0x11EE, 32517 }, + { 0x11D0, 32520 }, + { 0x11F7, 32523 }, + { 0x11F5, 32526 }, + { 0x11F8, 32529 }, + { 0x11F6, 32532 }, + { 0x11AA, 32535 }, + { 0x11E1, 32538 }, + { 0x11DC, 32541 }, + { 0x11DB, 32544 }, + { 0x11AC, 32547 }, + { 0x11AD, 32550 }, + { 0x11E5, 32553 }, + { 0x11E3, 32556 }, + { 0x11B6, 32559 }, + { 0x11B1, 32562 }, + { 0x11CD, 32565 }, + { 0x11B2, 32568 }, + { 0x11E7, 32571 }, + { 0x11E8, 32574 }, + { 0x11A9, 32577 }, + { 0x11F9, 32580 }, + { 0x11EC, 32583 }, + { 0x11C3, 32586 }, + { 0x11DA, 32589 }, + { 0x11C5, 32592 }, + { 0x11C6, 32595 }, + { 0x11B0, 32598 }, + { 0x11CE, 32601 }, + { 0x11CB, 32604 }, + { 0x11EF, 32607 }, + { 0x11E2, 32610 }, + { 0x11E6, 32613 }, + { 0x11E0, 32616 }, + { 0x11DF, 32619 }, + { 0x11C8, 32622 }, + { 0x11C9, 32625 }, + { 0x11F3, 32628 }, + { 0x11E4, 32631 }, + { 0x11D8, 32634 }, + { 0x11D7, 32637 }, + { 0x11B5, 32640 }, + { 0x11B4, 32643 }, + { 0x11CA, 32646 }, + { 0x11F1, 32649 }, + { 0x11F4, 32652 }, + { 0x11DE, 32655 }, + { 0x11D6, 32658 }, + { 0x11D2, 32661 }, + { 0x11D3, 32664 }, + { 0x11F2, 32667 }, + { 0x11ED, 32670 }, + { 0x11CC, 32673 }, + { 0x11D4, 32676 }, + { 0x11D9, 32679 }, + { 0x11C4, 32682 }, + { 0x11D1, 32685 }, + { 0x11CF, 32688 }, + { 0x11D5, 32691 }, + { 0x1161, 32694 }, + { 0x1166, 32697 }, + { 0x1175, 32700 }, + { 0x1169, 32703 }, + { 0x116E, 32706 }, + { 0x1162, 32709 }, + { 0x1165, 32712 }, + { 0x1173, 32715 }, + { 0x116C, 32718 }, + { 0x116A, 32721 }, + { 0x1170, 32724 }, + { 0x1171, 32727 }, + { 0x1163, 32730 }, + { 0x1168, 32733 }, + { 0x1174, 32736 }, + { 0x116D, 32739 }, + { 0x1172, 32742 }, + { 0x1176, 32745 }, + { 0x1177, 32748 }, + { 0x1198, 32751 }, + { 0x119A, 32754 }, + { 0x119B, 32757 }, + { 0x1180, 32760 }, + { 0x1182, 32763 }, + { 0x1183, 32766 }, + { 0x1189, 32769 }, + { 0x118D, 32772 }, + { 0x116B, 32775 }, + { 0x116F, 32778 }, + { 0x1164, 32781 }, + { 0x1167, 32784 }, + { 0x117A, 32787 }, + { 0x117B, 32790 }, + { 0x1195, 32793 }, + { 0x119C, 32796 }, + { 0x1199, 32799 }, + { 0x117F, 32802 }, + { 0x1181, 32805 }, + { 0x118A, 32808 }, + { 0x118C, 32811 }, + { 0x1178, 32814 }, + { 0x1197, 32817 }, + { 0x1188, 32820 }, + { 0x1187, 32823 }, + { 0x118E, 32826 }, + { 0x1190, 32829 }, + { 0x1194, 32832 }, + { 0x1193, 32835 }, + { 0x119E, 32838 }, + { 0x117C, 32841 }, + { 0x1196, 32844 }, + { 0x1179, 32847 }, + { 0x117D, 32850 }, + { 0x117E, 32853 }, + { 0x1184, 32856 }, + { 0x118F, 32859 }, + { 0x1192, 32862 }, + { 0x1160, 32865 }, + { 0x1185, 32868 }, + { 0x1186, 32871 }, + { 0x1191, 32874 }, + { 0x11A1, 32877 }, + { 0x11A0, 32880 }, + { 0x119D, 32883 }, + { 0x118B, 32886 }, + { 0x119F, 32889 }, + { 0x11A2, 32892 }, + { 0x05C5, 32895 }, + { 0x05C4, 32899 }, + { 0x05AF, 32903 }, + { 0x05C2, 32907 }, + { 0x05BF, 32911 }, + { 0x05C1, 32914 }, + { 0x05B2, 32918 }, + { 0x05B1, 32922 }, + { 0x05B3, 32926 }, + { 0x05B4, 32930 }, + { 0x05B9, 32933 }, + { 0x05BA, 32936 }, + { 0x05BD, 32942 }, + { 0x05B7, 32945 }, + { 0x05B6, 32948 }, + { 0x05B0, 32951 }, + { 0x05B5, 32954 }, + { 0x05BC, 32957 }, + { 0x05B8, 32962 }, + { 0x05C7, 32965 }, + { 0x05BB, 32969 }, + { 0x6B1E, 32972 }, + { 0x05AB, 32976 }, + { 0x05AD, 32979 }, + { 0x05AC, 32982 }, + { 0x05A2, 32985 }, + { 0x05A7, 32989 }, + { 0x05A3, 32992 }, + { 0x05A1, 32995 }, + { 0x05A8, 32998 }, + { 0x0597, 33001 }, + { 0x0592, 33004 }, + { 0x059B, 33007 }, + { 0x05AA, 33010 }, + { 0x059A, 33015 }, + { 0x0595, 33018 }, + { 0x0594, 33022 }, + { 0x0598, 33026 }, + { 0x05AE, 33029 }, + { 0x059C, 33032 }, + { 0x059D, 33035 }, + { 0x05A5, 33039 }, + { 0x05A6, 33042 }, + { 0x0599, 33046 }, + { 0x059F, 33049 }, + { 0x0596, 33053 }, + { 0x0591, 33056 }, + { 0x05A0, 33059 }, + { 0x05A9, 33063 }, + { 0x05A4, 33067 }, + { 0x059E, 33070 }, + { 0x0593, 33073 }, + { 0x05D4, 33076 }, + { 0x6B34, 33079 }, + { 0x05E4, 33084 }, + { 0x6B4E, 33087 }, + { 0x6B44, 33092 }, + { 0x05D1, 33097 }, + { 0x6B4C, 33100 }, + { 0x6B31, 33105 }, + { 0x05D7, 33110 }, + { 0x05DB, 33113 }, + { 0x6B4D, 33116 }, + { 0x6B3B, 33121 }, + { 0x05DE, 33126 }, + { 0x6B3E, 33129 }, + { 0x05E0, 33134 }, + { 0x6B40, 33137 }, + { 0x05E7, 33142 }, + { 0x6B47, 33145 }, + { 0x05EA, 33150 }, + { 0x6B4A, 33153 }, + { 0x05D8, 33158 }, + { 0x6B38, 33161 }, + { 0x05D5, 33166 }, + { 0x6B4B, 33169 }, + { 0x6B35, 33174 }, + { 0x05D9, 33179 }, + { 0x6B1D, 33182 }, + { 0x6B39, 33187 }, + { 0x05D0, 33192 }, + { 0x6B30, 33195 }, + { 0x6B2E, 33200 }, + { 0x6B2F, 33205 }, + { 0x05E2, 33210 }, + { 0x05E8, 33213 }, + { 0x6B48, 33216 }, + { 0x05E9, 33221 }, + { 0x6B2B, 33224 }, + { 0x6B2A, 33230 }, + { 0x6B49, 33236 }, + { 0x6B2D, 33241 }, + { 0x6B2C, 33249 }, + { 0x6B23, 33257 }, + { 0x6B24, 33261 }, + { 0x6B28, 33265 }, + { 0x6B21, 33269 }, + { 0x6B27, 33273 }, + { 0x6B22, 33277 }, + { 0x6B26, 33281 }, + { 0x6B25, 33286 }, + { 0x05D3, 33290 }, + { 0x6B33, 33293 }, + { 0x05E3, 33298 }, + { 0x6B43, 33302 }, + { 0x05DA, 33308 }, + { 0x6B3A, 33312 }, + { 0x05DD, 33318 }, + { 0x05DF, 33322 }, + { 0x05E5, 33326 }, + { 0x05D2, 33330 }, + { 0x6B32, 33333 }, + { 0x05DC, 33338 }, + { 0x6B3C, 33341 }, + { 0x05E6, 33346 }, + { 0x6B46, 33349 }, + { 0x05D6, 33354 }, + { 0x6B36, 33357 }, + { 0x05E1, 33362 }, + { 0x6B41, 33365 }, + { 0x6B20, 33370 }, + { 0x6B29, 33374 }, + { 0x6B4F, 33379 }, + { 0x05F1, 33383 }, + { 0x6B1F, 33388 }, + { 0x05F0, 33394 }, + { 0x05F2, 33399 }, + { 0x05C6, 33404 }, + { 0x05C3, 33408 }, + { 0x05BE, 33412 }, + { 0x05C0, 33415 }, + { 0x05F3, 33418 }, + { 0x05F4, 33421 }, + { 0x2010, 33424 }, + { 0x2E1A, 33425 }, + { 0x2043, 33428 }, + { 0x2F4F, 33430 }, + { 0x2F21, 33434 }, + { 0x2F22, 33437 }, + { 0x2F7D, 33441 }, + { 0x2F44, 33444 }, + { 0x2F24, 33447 }, + { 0x2F38, 33450 }, + { 0x2F5C, 33453 }, + { 0x2F5D, 33456 }, + { 0x2F02, 33459 }, + { 0x2F32, 33462 }, + { 0x2F7F, 33465 }, + { 0x2FB7, 33468 }, + { 0x2F6C, 33471 }, + { 0x2FB6, 33474 }, + { 0x2F51, 33477 }, + { 0x2F0E, 33480 }, + { 0x2F78, 33483 }, + { 0x2F07, 33486 }, + { 0x2F08, 33489 }, + { 0x2F79, 33492 }, + { 0x2F46, 33495 }, + { 0x2F7C, 33498 }, + { 0x2F00, 33501 }, + { 0x2F97, 33504 }, + { 0x2F41, 33507 }, + { 0x2FCF, 33510 }, + { 0x2F9A, 33513 }, + { 0x2F9B, 33516 }, + { 0x2F48, 33519 }, + { 0x2F92, 33522 }, + { 0x2F47, 33525 }, + { 0x2F17, 33528 }, + { 0x2F06, 33531 }, + { 0x2F36, 33534 }, + { 0x2F64, 33538 }, + { 0x2F96, 33541 }, + { 0x2FC3, 33544 }, + { 0x2FAD, 33547 }, + { 0x2F88, 33550 }, + { 0x2F9D, 33553 }, + { 0x2F66, 33556 }, + { 0x2FBB, 33561 }, + { 0x2F9E, 33564 }, + { 0x2F73, 33567 }, + { 0x2FA2, 33570 }, + { 0x2F52, 33573 }, + { 0x2F56, 33576 }, + { 0x2FC5, 33579 }, + { 0x2F6B, 33582 }, + { 0x2F3E, 33585 }, + { 0x2F0C, 33588 }, + { 0x2FCE, 33592 }, + { 0x2FD1, 33595 }, + { 0x2FAF, 33598 }, + { 0x2F5B, 33601 }, + { 0x2F55, 33604 }, + { 0x2FC2, 33607 }, + { 0x2F9C, 33610 }, + { 0x2FCC, 33613 }, + { 0x2FA8, 33616 }, + { 0x2FA6, 33619 }, + { 0x2FBD, 33622 }, + { 0x2F59, 33625 }, + { 0x2F3F, 33630 }, + { 0x2FB8, 33633 }, + { 0x2FC7, 33636 }, + { 0x2F05, 33639 }, + { 0x2F93, 33642 }, + { 0x2F28, 33645 }, + { 0x2F5F, 33648 }, + { 0x2F4B, 33651 }, + { 0x2F2A, 33654 }, + { 0x2FB4, 33657 }, + { 0x2FB2, 33660 }, + { 0x2F09, 33663 }, + { 0x2F63, 33666 }, + { 0x2F01, 33669 }, + { 0x2FA7, 33672 }, + { 0x2F35, 33675 }, + { 0x2F81, 33679 }, + { 0x2F49, 33682 }, + { 0x2FD0, 33685 }, + { 0x2F10, 33688 }, + { 0x2F7E, 33692 }, + { 0x2FAC, 33695 }, + { 0x2F76, 33698 }, + { 0x2F27, 33701 }, + { 0x2FC4, 33704 }, + { 0x2F19, 33707 }, + { 0x2F83, 33710 }, + { 0x2F77, 33713 }, + { 0x2F6A, 33716 }, + { 0x2F3B, 33719 }, + { 0x2F4C, 33722 }, + { 0x2FBC, 33725 }, + { 0x2F61, 33728 }, + { 0x2F4A, 33731 }, + { 0x2FA1, 33734 }, + { 0x2F8F, 33737 }, + { 0x2F91, 33741 }, + { 0x2FB5, 33744 }, + { 0x2FA3, 33747 }, + { 0x2F2F, 33750 }, + { 0x2F13, 33753 }, + { 0x2F1C, 33756 }, + { 0x2F6E, 33759 }, + { 0x2FCA, 33762 }, + { 0x2F8E, 33765 }, + { 0x2F80, 33768 }, + { 0x2F26, 33771 }, + { 0x2F1A, 33774 }, + { 0x2F8A, 33777 }, + { 0x2F0D, 33780 }, + { 0x2F4D, 33783 }, + { 0x2F1F, 33786 }, + { 0x2F0B, 33789 }, + { 0x2F0A, 33792 }, + { 0x2F65, 33795 }, + { 0x2FBE, 33798 }, + { 0x2FD5, 33801 }, + { 0x2FC1, 33804 }, + { 0x2F72, 33807 }, + { 0x2F8B, 33810 }, + { 0x2F3C, 33813 }, + { 0x2FBA, 33816 }, + { 0x2F11, 33819 }, + { 0x2F60, 33822 }, + { 0x2FA9, 33825 }, + { 0x2F1D, 33828 }, + { 0x2F12, 33831 }, + { 0x2F15, 33834 }, + { 0x2F2E, 33839 }, + { 0x2F7A, 33842 }, + { 0x2F99, 33845 }, + { 0x2F37, 33848 }, + { 0x2FAB, 33851 }, + { 0x2F33, 33856 }, + { 0x2F03, 33860 }, + { 0x2FAA, 33863 }, + { 0x2F5A, 33866 }, + { 0x2F29, 33869 }, + { 0x2F39, 33872 }, + { 0x2FB3, 33875 }, + { 0x2F6D, 33878 }, + { 0x2F14, 33881 }, + { 0x2F74, 33884 }, + { 0x2F53, 33887 }, + { 0x2F6F, 33890 }, + { 0x2F62, 33893 }, + { 0x2F0F, 33896 }, + { 0x2F8C, 33899 }, + { 0x2FD2, 33902 }, + { 0x2F71, 33905 }, + { 0x2F54, 33908 }, + { 0x2FC6, 33911 }, + { 0x2F69, 33914 }, + { 0x2F25, 33917 }, + { 0x2FAE, 33920 }, + { 0x2F84, 33923 }, + { 0x2F98, 33926 }, + { 0x2F75, 33929 }, + { 0x2F9F, 33932 }, + { 0x2F40, 33935 }, + { 0x2F2B, 33938 }, + { 0x2F43, 33941 }, + { 0x2F68, 33944 }, + { 0x2F34, 33948 }, + { 0x2F58, 33952 }, + { 0x2FD3, 33956 }, + { 0x2F57, 33959 }, + { 0x2F16, 33962 }, + { 0x2F8D, 33966 }, + { 0x2FC9, 33969 }, + { 0x2F85, 33972 }, + { 0x2F87, 33975 }, + { 0x2F42, 33978 }, + { 0x2F04, 33981 }, + { 0x2F94, 33984 }, + { 0x2F70, 33987 }, + { 0x2F2C, 33990 }, + { 0x2F45, 33993 }, + { 0x2FB1, 33996 }, + { 0x2F86, 34000 }, + { 0x2FCD, 34003 }, + { 0x2F31, 34006 }, + { 0x2FD4, 34009 }, + { 0x2F95, 34012 }, + { 0x2F4E, 34015 }, + { 0x2FC8, 34018 }, + { 0x2F3A, 34021 }, + { 0x2F90, 34024 }, + { 0x2F50, 34027 }, + { 0x2F23, 34030 }, + { 0x2F7B, 34033 }, + { 0x2F3D, 34036 }, + { 0x2FB0, 34039 }, + { 0x2FA0, 34042 }, + { 0x2F30, 34045 }, + { 0x2F1B, 34048 }, + { 0x2F20, 34051 }, + { 0x2FA5, 34054 }, + { 0x2FC0, 34057 }, + { 0x2FB9, 34060 }, + { 0x2F82, 34063 }, + { 0x2F2D, 34066 }, + { 0x2F5E, 34069 }, + { 0x2F67, 34072 }, + { 0x2F89, 34075 }, + { 0x2F1E, 34078 }, + { 0x2F18, 34081 }, + { 0x2FCB, 34084 }, + { 0x2FA4, 34087 }, + { 0x2FBF, 34090 }, + { 0x212A, 34094 }, + { 0x327F, 34096 }, + { 0x2AAB, 34099 }, + { 0x2AAD, 34101 }, + { 0x1C36, 34106 }, + { 0x1C37, 34109 }, + { 0x1C41, 34112 }, + { 0x1C46, 34115 }, + { 0x1C42, 34118 }, + { 0x1C45, 34121 }, + { 0x1C44, 34124 }, + { 0x1C49, 34127 }, + { 0x1C40, 34130 }, + { 0x1C48, 34133 }, + { 0x1C47, 34136 }, + { 0x1C43, 34139 }, + { 0x1C2C, 34142 }, + { 0x1C27, 34146 }, + { 0x1C28, 34150 }, + { 0x1C2A, 34154 }, + { 0x1C26, 34158 }, + { 0x1C29, 34162 }, + { 0x1C2B, 34166 }, + { 0x1C23, 34170 }, + { 0x1C13, 34173 }, + { 0x1C06, 34176 }, + { 0x1C0C, 34179 }, + { 0x1C11, 34182 }, + { 0x1C03, 34185 }, + { 0x1C1D, 34188 }, + { 0x1C08, 34191 }, + { 0x1C00, 34194 }, + { 0x1C1C, 34197 }, + { 0x1C15, 34200 }, + { 0x1C0D, 34203 }, + { 0x1C0E, 34206 }, + { 0x1C1B, 34209 }, + { 0x1C20, 34212 }, + { 0x1C0A, 34215 }, + { 0x1C1F, 34218 }, + { 0x1C22, 34221 }, + { 0x1C1A, 34224 }, + { 0x1C14, 34227 }, + { 0x1C07, 34230 }, + { 0x1C4F, 34233 }, + { 0x1C19, 34236 }, + { 0x1C12, 34239 }, + { 0x1C04, 34242 }, + { 0x1C1E, 34245 }, + { 0x1C02, 34248 }, + { 0x1C01, 34251 }, + { 0x1C16, 34254 }, + { 0x1C05, 34257 }, + { 0x1C09, 34260 }, + { 0x1C10, 34263 }, + { 0x1C0F, 34266 }, + { 0x1C21, 34269 }, + { 0x1C0B, 34272 }, + { 0x1C17, 34275 }, + { 0x1C4D, 34278 }, + { 0x1C18, 34281 }, + { 0x1C4E, 34284 }, + { 0x1C2D, 34287 }, + { 0x1C2F, 34291 }, + { 0x1C2E, 34295 }, + { 0x1C30, 34299 }, + { 0x1C31, 34303 }, + { 0x1C32, 34307 }, + { 0x1C33, 34311 }, + { 0x1C35, 34315 }, + { 0x1C34, 34319 }, + { 0x1C25, 34323 }, + { 0x1C24, 34327 }, + { 0x1C3C, 34331 }, + { 0x1C3D, 34336 }, + { 0x1C3B, 34339 }, + { 0x1C3F, 34342 }, + { 0x1C3E, 34345 }, + { 0x7050, 34349 }, + { 0x7051, 34353 }, + { 0x7052, 34357 }, + { 0x7053, 34361 }, + { 0x7054, 34365 }, + { 0x7055, 34369 }, + { 0x7056, 34373 }, + { 0x7057, 34377 }, + { 0x7058, 34381 }, + { 0x7059, 34385 }, + { 0x705A, 34389 }, + { 0x705B, 34393 }, + { 0x705C, 34397 }, + { 0x705D, 34401 }, + { 0x7080, 34405 }, + { 0x7081, 34410 }, + { 0x7082, 34415 }, + { 0x7083, 34420 }, + { 0x708E, 34425 }, + { 0x708F, 34430 }, + { 0x7090, 34435 }, + { 0x7091, 34440 }, + { 0x7092, 34445 }, + { 0x7095, 34450 }, + { 0x7096, 34455 }, + { 0x7097, 34460 }, + { 0x709A, 34464 }, + { 0x709B, 34469 }, + { 0x709C, 34474 }, + { 0x709D, 34478 }, + { 0x709E, 34483 }, + { 0x709F, 34487 }, + { 0x70A0, 34491 }, + { 0x70A1, 34496 }, + { 0x70A2, 34500 }, + { 0x70A3, 34504 }, + { 0x70A5, 34508 }, + { 0x70A6, 34512 }, + { 0x70A7, 34516 }, + { 0x70A8, 34521 }, + { 0x70A9, 34525 }, + { 0x70AA, 34529 }, + { 0x70AB, 34534 }, + { 0x70AC, 34539 }, + { 0x70AD, 34543 }, + { 0x70AE, 34547 }, + { 0x70AF, 34551 }, + { 0x70B0, 34555 }, + { 0x70B1, 34559 }, + { 0x70B2, 34563 }, + { 0x70B3, 34567 }, + { 0x70B4, 34571 }, + { 0x70B5, 34575 }, + { 0x70B6, 34580 }, + { 0x70B7, 34584 }, + { 0x70B8, 34589 }, + { 0x70B9, 34593 }, + { 0x70BA, 34597 }, + { 0x70BB, 34601 }, + { 0x70BC, 34605 }, + { 0x70BD, 34609 }, + { 0x70BE, 34613 }, + { 0x70BF, 34617 }, + { 0x70C0, 34621 }, + { 0x70C1, 34625 }, + { 0x70C2, 34629 }, + { 0x70C3, 34633 }, + { 0x70C4, 34638 }, + { 0x70C5, 34643 }, + { 0x70C6, 34648 }, + { 0x70C7, 34653 }, + { 0x70C8, 34658 }, + { 0x70C9, 34662 }, + { 0x70CA, 34667 }, + { 0x70CB, 34671 }, + { 0x70CC, 34675 }, + { 0x70CD, 34681 }, + { 0x70CE, 34686 }, + { 0x70CF, 34692 }, + { 0x70D0, 34697 }, + { 0x70D1, 34701 }, + { 0x70D3, 34705 }, + { 0x70D4, 34709 }, + { 0x70D5, 34713 }, + { 0x70D6, 34717 }, + { 0x70D7, 34721 }, + { 0x70D8, 34725 }, + { 0x70D9, 34730 }, + { 0x70DA, 34734 }, + { 0x70DB, 34738 }, + { 0x70DC, 34742 }, + { 0x70DD, 34746 }, + { 0x7084, 34750 }, + { 0x7085, 34755 }, + { 0x7086, 34760 }, + { 0x7087, 34765 }, + { 0x7088, 34770 }, + { 0x7089, 34775 }, + { 0x708A, 34780 }, + { 0x708B, 34785 }, + { 0x708C, 34790 }, + { 0x708D, 34795 }, + { 0x70DE, 34800 }, + { 0x70DF, 34805 }, + { 0x70E0, 34810 }, + { 0x70E1, 34815 }, + { 0x70E2, 34820 }, + { 0x70E3, 34825 }, + { 0x70E4, 34830 }, + { 0x70E5, 34835 }, + { 0x70E6, 34840 }, + { 0x70E7, 34845 }, + { 0x70E8, 34850 }, + { 0x70E9, 34855 }, + { 0x70EA, 34860 }, + { 0x70EB, 34865 }, + { 0x70EC, 34870 }, + { 0x70ED, 34875 }, + { 0x70EE, 34880 }, + { 0x70EF, 34885 }, + { 0x70F0, 34890 }, + { 0x70F1, 34895 }, + { 0x70F2, 34900 }, + { 0x70F3, 34905 }, + { 0x70F4, 34910 }, + { 0x70F5, 34915 }, + { 0x70F6, 34920 }, + { 0x70F7, 34925 }, + { 0x70F8, 34930 }, + { 0x70F9, 34935 }, + { 0x70FA, 34940 }, + { 0x7093, 34945 }, + { 0x7094, 34950 }, + { 0x7098, 34955 }, + { 0x7099, 34960 }, + { 0x70A4, 34965 }, + { 0x70D2, 34970 }, + { 0x7005, 34975 }, + { 0x702B, 34980 }, + { 0x701E, 34985 }, + { 0x7033, 34990 }, + { 0x7035, 34995 }, + { 0x7019, 35000 }, + { 0x7007, 35005 }, + { 0x7000, 35010 }, + { 0x702E, 35015 }, + { 0x7004, 35020 }, + { 0x7021, 35025 }, + { 0x7030, 35030 }, + { 0x7015, 35035 }, + { 0x7008, 35040 }, + { 0x7017, 35045 }, + { 0x7023, 35050 }, + { 0x703C, 35055 }, + { 0x703F, 35060 }, + { 0x7025, 35065 }, + { 0x7018, 35070 }, + { 0x701A, 35075 }, + { 0x7040, 35080 }, + { 0x702C, 35085 }, + { 0x7029, 35090 }, + { 0x7002, 35095 }, + { 0x7046, 35100 }, + { 0x701B, 35105 }, + { 0x702D, 35110 }, + { 0x7026, 35115 }, + { 0x7049, 35120 }, + { 0x700D, 35125 }, + { 0x7034, 35130 }, + { 0x7001, 35135 }, + { 0x7020, 35140 }, + { 0x7039, 35145 }, + { 0x702F, 35150 }, + { 0x703A, 35155 }, + { 0x7041, 35160 }, + { 0x7010, 35165 }, + { 0x7006, 35170 }, + { 0x700B, 35175 }, + { 0x7045, 35180 }, + { 0x7022, 35185 }, + { 0x7009, 35190 }, + { 0x701C, 35195 }, + { 0x702A, 35200 }, + { 0x7037, 35205 }, + { 0x701D, 35210 }, + { 0x700A, 35215 }, + { 0x7031, 35220 }, + { 0x7032, 35225 }, + { 0x7028, 35230 }, + { 0x7003, 35235 }, + { 0x7047, 35240 }, + { 0x700E, 35245 }, + { 0x704B, 35250 }, + { 0x7011, 35255 }, + { 0x704A, 35260 }, + { 0x7036, 35265 }, + { 0x7012, 35270 }, + { 0x7043, 35275 }, + { 0x701F, 35280 }, + { 0x7016, 35285 }, + { 0x703D, 35290 }, + { 0x7038, 35295 }, + { 0x7048, 35300 }, + { 0x700F, 35305 }, + { 0x7024, 35310 }, + { 0x7014, 35315 }, + { 0x7013, 35320 }, + { 0x7042, 35325 }, + { 0x704C, 35330 }, + { 0x7044, 35335 }, + { 0x704D, 35340 }, + { 0x7280, 35345 }, + { 0x7282, 35348 }, + { 0x7285, 35351 }, + { 0x7281, 35354 }, + { 0x7284, 35357 }, + { 0x729B, 35360 }, + { 0x7286, 35363 }, + { 0x728A, 35366 }, + { 0x728B, 35369 }, + { 0x728D, 35372 }, + { 0x728E, 35375 }, + { 0x728F, 35378 }, + { 0x7293, 35381 }, + { 0x728C, 35384 }, + { 0x7295, 35387 }, + { 0x7296, 35390 }, + { 0x7297, 35393 }, + { 0x7292, 35396 }, + { 0x7287, 35399 }, + { 0x729C, 35402 }, + { 0x7288, 35405 }, + { 0x7299, 35408 }, + { 0x7283, 35411 }, + { 0x729A, 35414 }, + { 0x7294, 35417 }, + { 0x7290, 35420 }, + { 0x7291, 35423 }, + { 0x7289, 35426 }, + { 0x7298, 35429 }, + { 0x7920, 35432 }, + { 0x7921, 35435 }, + { 0x7939, 35438 }, + { 0x7923, 35441 }, + { 0x7924, 35444 }, + { 0x7931, 35447 }, + { 0x7922, 35450 }, + { 0x7926, 35453 }, + { 0x7928, 35456 }, + { 0x7929, 35459 }, + { 0x792A, 35462 }, + { 0x792B, 35465 }, + { 0x792C, 35468 }, + { 0x7932, 35471 }, + { 0x792D, 35474 }, + { 0x7933, 35477 }, + { 0x792F, 35480 }, + { 0x7930, 35483 }, + { 0x7925, 35486 }, + { 0x7927, 35489 }, + { 0x7935, 35492 }, + { 0x7936, 35495 }, + { 0x7937, 35498 }, + { 0x7938, 35501 }, + { 0x792E, 35504 }, + { 0x7934, 35507 }, + { 0x793F, 35510 }, + { 0x00AF, 35513 }, + { 0x2774, 35514 }, + { 0x2768, 35519 }, + { 0x26AB, 35523 }, + { 0x2775, 35526 }, + { 0x2769, 35531 }, + { 0x2592, 35535 }, + { 0x26AC, 35537 }, + { 0x26AA, 35541 }, + { 0x2759, 35544 }, + { 0x276A, 35547 }, + { 0x276B, 35552 }, + { 0x205F, 35557 }, + { 0x276C, 35560 }, + { 0x276D, 35565 }, + { 0x00B7, 35570 }, + { 0x22A7, 35572 }, + { 0x2A0A, 35573 }, + { 0x202F, 35576 }, + { 0x26B2, 35579 }, + { 0x22B2, 35580 }, + { 0x22B4, 35583 }, + { 0x2491, 35589 }, + { 0x0023, 35593 }, + { 0x2492, 35595 }, + { 0x2493, 35599 }, + { 0x249B, 35603 }, + { 0x2496, 35607 }, + { 0x2497, 35611 }, + { 0x2499, 35615 }, + { 0x2495, 35619 }, + { 0x249A, 35623 }, + { 0x2494, 35627 }, + { 0x2498, 35631 }, + { 0x2116, 35635 }, + { 0x6FFC, 35637 }, + { 0x02DB, 35640 }, + { 0x2325, 35641 }, + { 0x6D3E, 35643 }, + { 0x6D3F, 35646 }, + { 0x26B4, 35649 }, + { 0x270F, 35650 }, + { 0x20A7, 35651 }, + { 0x2653, 35653 }, + { 0x210E, 35654 }, + { 0x210F, 35656 }, + { 0x3012, 35661 }, + { 0x3020, 35663 }, + { 0x2E07, 35666 }, + { 0x2E0B, 35670 }, + { 0x2E06, 35672 }, + { 0x5949, 35675 }, + { 0x5947, 35679 }, + { 0x594B, 35683 }, + { 0x5948, 35687 }, + { 0x594A, 35691 }, + { 0x594C, 35695 }, + { 0x594E, 35699 }, + { 0x594D, 35703 }, + { 0x5946, 35707 }, + { 0x5937, 35710 }, + { 0x5939, 35713 }, + { 0x5934, 35716 }, + { 0x5931, 35719 }, + { 0x5941, 35722 }, + { 0x593A, 35725 }, + { 0x5930, 35728 }, + { 0x593E, 35731 }, + { 0x5938, 35734 }, + { 0x5935, 35737 }, + { 0x5936, 35740 }, + { 0x593D, 35743 }, + { 0x593C, 35746 }, + { 0x5933, 35749 }, + { 0x5940, 35752 }, + { 0x593F, 35755 }, + { 0x5942, 35758 }, + { 0x5944, 35761 }, + { 0x5932, 35764 }, + { 0x593B, 35767 }, + { 0x5943, 35770 }, + { 0x5945, 35773 }, + { 0x5953, 35776 }, + { 0x595F, 35778 }, + { 0x5952, 35781 }, + { 0x5950, 35785 }, + { 0x5951, 35789 }, + { 0x594F, 35793 }, + { 0x23CE, 35797 }, + { 0x2930, 35799 }, + { 0x292B, 35805 }, + { 0x2644, 35810 }, + { 0x2696, 35811 }, + { 0x212F, 35812 }, + { 0x210A, 35815 }, + { 0x2113, 35818 }, + { 0x2134, 35821 }, + { 0x212C, 35824 }, + { 0x2130, 35827 }, + { 0x2131, 35830 }, + { 0x210B, 35833 }, + { 0x2110, 35836 }, + { 0x2112, 35839 }, + { 0x2133, 35842 }, + { 0x2118, 35845 }, + { 0x211B, 35848 }, + { 0x2314, 35851 }, + { 0x6E45, 35852 }, + { 0x201A, 35854 }, + { 0x2039, 35858 }, + { 0x203A, 35863 }, + { 0x201B, 35868 }, + { 0x33DF, 35872 }, + { 0x33C6, 35876 }, + { 0x33C0, 35880 }, + { 0x33C1, 35883 }, + { 0x33A7, 35886 }, + { 0x33A8, 35890 }, + { 0x33A5, 35895 }, + { 0x33A1, 35898 }, + { 0x33DE, 35901 }, + { 0x33C2, 35905 }, + { 0x3373, 35907 }, + { 0x33C3, 35909 }, + { 0x33C4, 35911 }, + { 0x33C5, 35913 }, + { 0x339D, 35915 }, + { 0x33A4, 35917 }, + { 0x33A0, 35920 }, + { 0x33C7, 35923 }, + { 0x3372, 35925 }, + { 0x33C8, 35927 }, + { 0x3397, 35929 }, + { 0x3377, 35931 }, + { 0x3379, 35933 }, + { 0x3378, 35936 }, + { 0x32CE, 35939 }, + { 0x3399, 35941 }, + { 0x3387, 35943 }, + { 0x33C9, 35945 }, + { 0x33CA, 35947 }, + { 0x32CC, 35949 }, + { 0x33CB, 35951 }, + { 0x3390, 35953 }, + { 0x33CC, 35955 }, + { 0x337A, 35957 }, + { 0x3384, 35959 }, + { 0x3385, 35961 }, + { 0x338F, 35963 }, + { 0x33CD, 35965 }, + { 0x3398, 35967 }, + { 0x339E, 35969 }, + { 0x33A6, 35971 }, + { 0x33CE, 35974 }, + { 0x33A2, 35977 }, + { 0x33CF, 35980 }, + { 0x33B8, 35982 }, + { 0x33BE, 35984 }, + { 0x33D0, 35986 }, + { 0x33D1, 35988 }, + { 0x33D3, 35990 }, + { 0x3383, 35992 }, + { 0x3386, 35994 }, + { 0x33D4, 35996 }, + { 0x338E, 35999 }, + { 0x3396, 36001 }, + { 0x339C, 36003 }, + { 0x33A3, 36005 }, + { 0x339F, 36008 }, + { 0x33B3, 36011 }, + { 0x3382, 36013 }, + { 0x338C, 36016 }, + { 0x338D, 36019 }, + { 0x3395, 36022 }, + { 0x339B, 36025 }, + { 0x33B2, 36028 }, + { 0x33B6, 36031 }, + { 0x33BC, 36034 }, + { 0x33B7, 36037 }, + { 0x33B9, 36039 }, + { 0x33BD, 36042 }, + { 0x33BF, 36044 }, + { 0x3381, 36047 }, + { 0x338B, 36049 }, + { 0x339A, 36051 }, + { 0x33B1, 36053 }, + { 0x33B5, 36055 }, + { 0x33BB, 36057 }, + { 0x3375, 36059 }, + { 0x33A9, 36061 }, + { 0x3380, 36063 }, + { 0x3376, 36066 }, + { 0x338A, 36068 }, + { 0x33D7, 36070 }, + { 0x33D8, 36072 }, + { 0x33DA, 36074 }, + { 0x33B0, 36076 }, + { 0x33B4, 36078 }, + { 0x33BA, 36080 }, + { 0x33DB, 36082 }, + { 0x33DC, 36084 }, + { 0x33DD, 36086 }, + { 0x3374, 36088 }, + { 0x3388, 36090 }, + { 0x2293, 36092 }, + { 0x2294, 36094 }, + { 0x337E, 36096 }, + { 0x337B, 36100 }, + { 0x337C, 36104 }, + { 0x337D, 36108 }, + { 0x32CD, 36112 }, + { 0x33FF, 36114 }, + { 0x3393, 36116 }, + { 0x33AC, 36118 }, + { 0x333F, 36120 }, + { 0x3371, 36122 }, + { 0x3391, 36124 }, + { 0x33AA, 36126 }, + { 0x33D2, 36128 }, + { 0x3392, 36130 }, + { 0x33D5, 36132 }, + { 0x33D6, 36134 }, + { 0x33AB, 36136 }, + { 0x33D9, 36138 }, + { 0x33AD, 36140 }, + { 0x33AE, 36142 }, + { 0x33AF, 36146 }, + { 0x3394, 36151 }, + { 0x3327, 36153 }, + { 0x3306, 36155 }, + { 0x3303, 36157 }, + { 0x3331, 36159 }, + { 0x3325, 36161 }, + { 0x3326, 36163 }, + { 0x23CD, 36165 }, + { 0x3310, 36167 }, + { 0x3342, 36169 }, + { 0x3305, 36171 }, + { 0x3389, 36173 }, + { 0x3314, 36175 }, + { 0x2ACD, 36177 }, + { 0x334B, 36182 }, + { 0x3349, 36184 }, + { 0x3328, 36186 }, + { 0x3309, 36188 }, + { 0x330A, 36190 }, + { 0x3337, 36192 }, + { 0x3330, 36194 }, + { 0x3355, 36196 }, + { 0x3352, 36198 }, + { 0x221A, 36200 }, + { 0x2B12, 36202 }, + { 0x25E7, 36207 }, + { 0x2B15, 36212 }, + { 0x25EA, 36219 }, + { 0x25E8, 36226 }, + { 0x25A7, 36231 }, + { 0x25E9, 36239 }, + { 0x25A8, 36246 }, + { 0x2B14, 36254 }, + { 0x2B13, 36261 }, + { 0x25A9, 36266 }, + { 0x25A5, 36271 }, + { 0x29E0, 36275 }, + { 0x25A4, 36279 }, + { 0x25A6, 36283 }, + { 0x3350, 36288 }, + { 0x3302, 36290 }, + { 0x333C, 36292 }, + { 0x3324, 36294 }, + { 0x3308, 36296 }, + { 0x330F, 36298 }, + { 0x330E, 36300 }, + { 0x3311, 36302 }, + { 0x332A, 36304 }, + { 0x3341, 36306 }, + { 0x3335, 36308 }, + { 0x228F, 36310 }, + { 0x22E4, 36313 }, + { 0x2291, 36320 }, + { 0x330B, 36326 }, + { 0x331C, 36328 }, + { 0x331E, 36330 }, + { 0x3345, 36332 }, + { 0x3344, 36334 }, + { 0x3329, 36336 }, + { 0x332C, 36338 }, + { 0x333B, 36340 }, + { 0x333A, 36342 }, + { 0x3340, 36344 }, + { 0x2ACE, 36346 }, + { 0x3353, 36351 }, + { 0x3322, 36353 }, + { 0x3323, 36355 }, + { 0x3357, 36357 }, + { 0x334E, 36359 }, + { 0x334F, 36361 }, + { 0x3300, 36363 }, + { 0x3301, 36365 }, + { 0x333E, 36367 }, + { 0x3318, 36369 }, + { 0x3339, 36371 }, + { 0x3333, 36373 }, + { 0x3304, 36375 }, + { 0x331D, 36377 }, + { 0x3312, 36379 }, + { 0x3346, 36381 }, + { 0x3338, 36383 }, + { 0x332F, 36385 }, + { 0x333D, 36387 }, + { 0x332D, 36389 }, + { 0x3313, 36391 }, + { 0x330C, 36393 }, + { 0x330D, 36395 }, + { 0x331B, 36397 }, + { 0x2311, 36399 }, + { 0x3343, 36401 }, + { 0x3347, 36403 }, + { 0x334D, 36405 }, + { 0x334C, 36407 }, + { 0x3348, 36409 }, + { 0x3351, 36411 }, + { 0x3354, 36413 }, + { 0x331F, 36415 }, + { 0x3321, 36417 }, + { 0x3334, 36419 }, + { 0x3307, 36421 }, + { 0x3332, 36423 }, + { 0x2290, 36425 }, + { 0x22E5, 36428 }, + { 0x2292, 36435 }, + { 0x332B, 36441 }, + { 0x3356, 36443 }, + { 0x3320, 36445 }, + { 0x3319, 36447 }, + { 0x3336, 36449 }, + { 0x3317, 36451 }, + { 0x331A, 36453 }, + { 0x334A, 36455 }, + { 0x332E, 36457 }, + { 0x3315, 36459 }, + { 0x337F, 36461 }, + { 0x3316, 36463 }, + { 0x2729, 36465 }, + { 0x2282, 36469 }, + { 0x2286, 36471 }, + { 0x2AC3, 36476 }, + { 0x228A, 36484 }, + { 0x2ACB, 36490 }, + { 0x2AC7, 36496 }, + { 0x2AC9, 36501 }, + { 0x2AC5, 36507 }, + { 0x2ABD, 36512 }, + { 0x2ABF, 36515 }, + { 0x2AC1, 36520 }, + { 0x2AD5, 36525 }, + { 0x2AD3, 36528 }, + { 0x2979, 36531 }, + { 0x5806, 36535 }, + { 0x580B, 36539 }, + { 0x5802, 36543 }, + { 0x5823, 36547 }, + { 0x5826, 36552 }, + { 0x5824, 36557 }, + { 0x5825, 36562 }, + { 0x5827, 36567 }, + { 0x5800, 36572 }, + { 0x5804, 36576 }, + { 0x5801, 36580 }, + { 0x5805, 36584 }, + { 0x5803, 36588 }, + { 0x581B, 36592 }, + { 0x580C, 36596 }, + { 0x5816, 36600 }, + { 0x5809, 36604 }, + { 0x5822, 36608 }, + { 0x580E, 36612 }, + { 0x5807, 36616 }, + { 0x581F, 36620 }, + { 0x581D, 36624 }, + { 0x5818, 36628 }, + { 0x5819, 36632 }, + { 0x581E, 36636 }, + { 0x5821, 36640 }, + { 0x5814, 36644 }, + { 0x581C, 36648 }, + { 0x580D, 36652 }, + { 0x5812, 36656 }, + { 0x5817, 36660 }, + { 0x580A, 36664 }, + { 0x580F, 36668 }, + { 0x5808, 36672 }, + { 0x581A, 36676 }, + { 0x5820, 36680 }, + { 0x5815, 36684 }, + { 0x5810, 36688 }, + { 0x5813, 36692 }, + { 0x5811, 36696 }, + { 0x5828, 36700 }, + { 0x5829, 36704 }, + { 0x582A, 36708 }, + { 0x582B, 36712 }, + { 0x2403, 36716 }, + { 0x2419, 36721 }, + { 0x2404, 36726 }, + { 0x2417, 36731 }, + { 0x2407, 36737 }, + { 0x2410, 36740 }, + { 0x241C, 36745 }, + { 0x240C, 36749 }, + { 0x240A, 36753 }, + { 0x2400, 36757 }, + { 0x241F, 36760 }, + { 0x241D, 36764 }, + { 0x240F, 36768 }, + { 0x240E, 36772 }, + { 0x2420, 36776 }, + { 0x2402, 36779 }, + { 0x2401, 36784 }, + { 0x2418, 36789 }, + { 0x2421, 36792 }, + { 0x2425, 36795 }, + { 0x2411, 36800 }, + { 0x2412, 36805 }, + { 0x2414, 36810 }, + { 0x2413, 36815 }, + { 0x241B, 36820 }, + { 0x241E, 36823 }, + { 0x2405, 36827 }, + { 0x2424, 36830 }, + { 0x240D, 36833 }, + { 0x2415, 36837 }, + { 0x240B, 36841 }, + { 0x2408, 36845 }, + { 0x214F, 36848 }, + { 0x2409, 36852 }, + { 0x241A, 36856 }, + { 0x2426, 36859 }, + { 0x2406, 36864 }, + { 0x2416, 36867 }, + { 0x0700, 36871 }, + { 0x0743, 36875 }, + { 0x0744, 36880 }, + { 0x0706, 36885 }, + { 0x0707, 36889 }, + { 0x073D, 36893 }, + { 0x073E, 36896 }, + { 0x073A, 36899 }, + { 0x073B, 36902 }, + { 0x0749, 36905 }, + { 0x0736, 36907 }, + { 0x0737, 36910 }, + { 0x073F, 36913 }, + { 0x0745, 36915 }, + { 0x0746, 36919 }, + { 0x0739, 36923 }, + { 0x0738, 36927 }, + { 0x0725, 36931 }, + { 0x0717, 36934 }, + { 0x0726, 36937 }, + { 0x0721, 36940 }, + { 0x0722, 36943 }, + { 0x072C, 36946 }, + { 0x0718, 36949 }, + { 0x0712, 36952 }, + { 0x071A, 36955 }, + { 0x071F, 36958 }, + { 0x0729, 36961 }, + { 0x072A, 36964 }, + { 0x072B, 36967 }, + { 0x071B, 36970 }, + { 0x071C, 36973 }, + { 0x071D, 36977 }, + { 0x071E, 36980 }, + { 0x0719, 36984 }, + { 0x0710, 36987 }, + { 0x0724, 36990 }, + { 0x0713, 36994 }, + { 0x0714, 36997 }, + { 0x0728, 37001 }, + { 0x0715, 37004 }, + { 0x0720, 37007 }, + { 0x0716, 37010 }, + { 0x072D, 37015 }, + { 0x072E, 37019 }, + { 0x072F, 37023 }, + { 0x0723, 37027 }, + { 0x074F, 37030 }, + { 0x074E, 37034 }, + { 0x074D, 37038 }, + { 0x0727, 37042 }, + { 0x0711, 37046 }, + { 0x0730, 37050 }, + { 0x0731, 37053 }, + { 0x0732, 37056 }, + { 0x0733, 37059 }, + { 0x0734, 37062 }, + { 0x0735, 37065 }, + { 0x074A, 37068 }, + { 0x0747, 37070 }, + { 0x0748, 37074 }, + { 0x0740, 37078 }, + { 0x070B, 37081 }, + { 0x070C, 37084 }, + { 0x070D, 37087 }, + { 0x0742, 37090 }, + { 0x0741, 37092 }, + { 0x0702, 37094 }, + { 0x0704, 37098 }, + { 0x0709, 37101 }, + { 0x0705, 37106 }, + { 0x070A, 37109 }, + { 0x073C, 37111 }, + { 0x0701, 37114 }, + { 0x0703, 37118 }, + { 0x0708, 37121 }, + { 0x070F, 37126 }, + { 0x2649, 37129 }, + { 0x0C56, 37130 }, + { 0x0C7F, 37134 }, + { 0x0C4D, 37137 }, + { 0x0C03, 37140 }, + { 0x0C02, 37143 }, + { 0x0C3D, 37146 }, + { 0x0C01, 37149 }, + { 0x0C67, 37152 }, + { 0x0C6C, 37155 }, + { 0x0C68, 37158 }, + { 0x0C6B, 37161 }, + { 0x0C6A, 37164 }, + { 0x0C6F, 37167 }, + { 0x0C66, 37170 }, + { 0x0C6E, 37173 }, + { 0x0C6D, 37176 }, + { 0x0C69, 37179 }, + { 0x0C46, 37182 }, + { 0x0C3F, 37186 }, + { 0x0C4A, 37190 }, + { 0x0C41, 37194 }, + { 0x0C3E, 37198 }, + { 0x0C48, 37202 }, + { 0x0C4C, 37206 }, + { 0x0C47, 37210 }, + { 0x0C40, 37214 }, + { 0x0C4B, 37218 }, + { 0x0C42, 37222 }, + { 0x0C62, 37226 }, + { 0x0C43, 37231 }, + { 0x0C63, 37236 }, + { 0x0C44, 37241 }, + { 0x0C55, 37246 }, + { 0x0C05, 37249 }, + { 0x0C0E, 37252 }, + { 0x0C07, 37255 }, + { 0x0C12, 37258 }, + { 0x0C09, 37261 }, + { 0x0C06, 37264 }, + { 0x0C10, 37267 }, + { 0x0C14, 37270 }, + { 0x0C2C, 37273 }, + { 0x0C1A, 37276 }, + { 0x0C26, 37279 }, + { 0x0C0F, 37282 }, + { 0x0C17, 37285 }, + { 0x0C39, 37288 }, + { 0x0C08, 37291 }, + { 0x0C1C, 37294 }, + { 0x0C15, 37297 }, + { 0x0C32, 37300 }, + { 0x0C2E, 37303 }, + { 0x0C28, 37306 }, + { 0x0C13, 37309 }, + { 0x0C2A, 37312 }, + { 0x0C30, 37315 }, + { 0x0C38, 37318 }, + { 0x0C24, 37321 }, + { 0x0C0A, 37324 }, + { 0x0C35, 37327 }, + { 0x0C2F, 37330 }, + { 0x0C2D, 37333 }, + { 0x0C1B, 37336 }, + { 0x0C21, 37339 }, + { 0x0C27, 37342 }, + { 0x0C59, 37345 }, + { 0x0C18, 37348 }, + { 0x0C1D, 37351 }, + { 0x0C16, 37354 }, + { 0x0C33, 37357 }, + { 0x0C19, 37360 }, + { 0x0C23, 37363 }, + { 0x0C1E, 37366 }, + { 0x0C2B, 37369 }, + { 0x0C31, 37372 }, + { 0x0C36, 37375 }, + { 0x0C37, 37378 }, + { 0x0C25, 37381 }, + { 0x0C58, 37384 }, + { 0x0C1F, 37387 }, + { 0x0C22, 37390 }, + { 0x0C20, 37393 }, + { 0x0C0C, 37396 }, + { 0x0C0B, 37400 }, + { 0x0C61, 37404 }, + { 0x0C60, 37408 }, + { 0x0C79, 37412 }, + { 0x0C7C, 37421 }, + { 0x0C7A, 37430 }, + { 0x0C7D, 37439 }, + { 0x0C78, 37448 }, + { 0x0C7B, 37457 }, + { 0x0C7E, 37466 }, + { 0x07B0, 37475 }, + { 0x07A0, 37477 }, + { 0x07A1, 37480 }, + { 0x0784, 37483 }, + { 0x0780, 37486 }, + { 0x07B1, 37489 }, + { 0x0783, 37492 }, + { 0x0794, 37495 }, + { 0x079C, 37498 }, + { 0x07A2, 37501 }, + { 0x0799, 37504 }, + { 0x079A, 37507 }, + { 0x078C, 37510 }, + { 0x0798, 37513 }, + { 0x0787, 37516 }, + { 0x078A, 37519 }, + { 0x078E, 37522 }, + { 0x0786, 37525 }, + { 0x078D, 37528 }, + { 0x0789, 37531 }, + { 0x0782, 37534 }, + { 0x07A4, 37537 }, + { 0x0790, 37540 }, + { 0x0788, 37543 }, + { 0x07A5, 37546 }, + { 0x079F, 37549 }, + { 0x078B, 37552 }, + { 0x07A3, 37555 }, + { 0x079E, 37558 }, + { 0x079D, 37561 }, + { 0x079B, 37564 }, + { 0x0791, 37567 }, + { 0x0796, 37570 }, + { 0x0795, 37573 }, + { 0x0793, 37576 }, + { 0x0792, 37579 }, + { 0x0797, 37582 }, + { 0x078F, 37585 }, + { 0x0785, 37588 }, + { 0x0781, 37591 }, + { 0x07A6, 37594 }, + { 0x07AC, 37596 }, + { 0x07A8, 37598 }, + { 0x07AE, 37600 }, + { 0x07AA, 37602 }, + { 0x07A7, 37604 }, + { 0x07A9, 37606 }, + { 0x07AD, 37608 }, + { 0x07AF, 37610 }, + { 0x07AB, 37612 }, + { 0x29FB, 37614 }, + { 0x2AF6, 37616 }, + { 0x2034, 37619 }, + { 0x224B, 37621 }, + { 0x2AF7, 37623 }, + { 0x2AF8, 37626 }, + { 0x2AFB, 37629 }, + { 0x222D, 37633 }, + { 0x2AF5, 37635 }, + { 0x22AA, 37641 }, + { 0x2AF4, 37646 }, + { 0x2980, 37651 }, + { 0x2A68, 37655 }, + { 0x2A69, 37662 }, + { 0x20AE, 37669 }, + { 0x2319, 37671 }, + { 0x29A2, 37674 }, + { 0x2129, 37676 }, + { 0x214E, 37681 }, + { 0x2132, 37684 }, + { 0x214B, 37687 }, + { 0x2141, 37689 }, + { 0x2142, 37693 }, + { 0x2144, 37697 }, + { 0x2739, 37701 }, + { 0x2645, 37705 }, + { 0x2A2F, 37706 }, + { 0x2230, 37710 }, + { 0x00BD, 37712 }, + { 0x2155, 37716 }, + { 0x2159, 37720 }, + { 0x2153, 37724 }, + { 0x215B, 37728 }, + { 0x00BC, 37732 }, + { 0x2156, 37736 }, + { 0x2154, 37740 }, + { 0x215A, 37744 }, + { 0x215D, 37748 }, + { 0x2158, 37752 }, + { 0x215E, 37756 }, + { 0x2157, 37760 }, + { 0x215C, 37764 }, + { 0x00BE, 37768 }, + { 0x2240, 37772 }, + { 0x2100, 37774 }, + { 0x060B, 37776 }, + { 0x2697, 37778 }, + { 0x20B3, 37779 }, + { 0x2235, 37781 }, + { 0x09D7, 37782 }, + { 0x09BC, 37786 }, + { 0x09CD, 37789 }, + { 0x0983, 37792 }, + { 0x0982, 37795 }, + { 0x09BD, 37798 }, + { 0x0981, 37801 }, + { 0x09E7, 37804 }, + { 0x09EC, 37807 }, + { 0x09E8, 37810 }, + { 0x09EB, 37813 }, + { 0x09EA, 37816 }, + { 0x09EF, 37819 }, + { 0x09E6, 37822 }, + { 0x09EE, 37825 }, + { 0x09ED, 37828 }, + { 0x09E9, 37831 }, + { 0x09F2, 37834 }, + { 0x09F3, 37837 }, + { 0x09C7, 37840 }, + { 0x09BF, 37844 }, + { 0x09CB, 37848 }, + { 0x09C1, 37852 }, + { 0x09BE, 37856 }, + { 0x09C8, 37860 }, + { 0x09CC, 37864 }, + { 0x09C0, 37868 }, + { 0x09C2, 37872 }, + { 0x09E2, 37876 }, + { 0x09C3, 37881 }, + { 0x09E3, 37886 }, + { 0x09C4, 37891 }, + { 0x09FA, 37896 }, + { 0x0985, 37898 }, + { 0x098F, 37901 }, + { 0x0987, 37904 }, + { 0x0993, 37907 }, + { 0x0989, 37910 }, + { 0x0986, 37913 }, + { 0x0990, 37916 }, + { 0x0994, 37919 }, + { 0x09AC, 37922 }, + { 0x099A, 37925 }, + { 0x09A6, 37928 }, + { 0x0997, 37931 }, + { 0x09B9, 37934 }, + { 0x0988, 37937 }, + { 0x099C, 37940 }, + { 0x0995, 37943 }, + { 0x09B2, 37946 }, + { 0x09AE, 37949 }, + { 0x09A8, 37952 }, + { 0x09AA, 37955 }, + { 0x09B0, 37958 }, + { 0x09F1, 37961 }, + { 0x09F0, 37967 }, + { 0x09B8, 37973 }, + { 0x09A4, 37976 }, + { 0x098A, 37979 }, + { 0x09AF, 37982 }, + { 0x09AD, 37985 }, + { 0x099B, 37988 }, + { 0x09A1, 37991 }, + { 0x09A7, 37994 }, + { 0x0998, 37997 }, + { 0x099D, 38000 }, + { 0x0996, 38003 }, + { 0x0999, 38006 }, + { 0x09A3, 38009 }, + { 0x099E, 38012 }, + { 0x09AB, 38015 }, + { 0x09DD, 38018 }, + { 0x09DC, 38021 }, + { 0x09B6, 38024 }, + { 0x09B7, 38027 }, + { 0x09A5, 38030 }, + { 0x099F, 38033 }, + { 0x09DF, 38036 }, + { 0x09A2, 38039 }, + { 0x09A0, 38042 }, + { 0x09CE, 38045 }, + { 0x098C, 38049 }, + { 0x098B, 38053 }, + { 0x09E1, 38057 }, + { 0x09E0, 38061 }, + { 0x09F4, 38065 }, + { 0x09F8, 38069 }, + { 0x09F5, 38077 }, + { 0x09F7, 38081 }, + { 0x09F6, 38085 }, + { 0x09F9, 38089 }, + { 0x232C, 38093 }, + { 0x23E3, 38095 }, + { 0x226C, 38099 }, + { 0x2800, 38100 }, + { 0x2801, 38103 }, + { 0x2802, 38106 }, + { 0x2804, 38109 }, + { 0x2808, 38112 }, + { 0x2810, 38115 }, + { 0x2820, 38118 }, + { 0x2840, 38121 }, + { 0x2880, 38124 }, + { 0x2803, 38127 }, + { 0x2805, 38130 }, + { 0x2809, 38133 }, + { 0x2811, 38136 }, + { 0x2821, 38139 }, + { 0x2841, 38142 }, + { 0x2881, 38145 }, + { 0x2806, 38148 }, + { 0x280A, 38151 }, + { 0x2812, 38154 }, + { 0x2822, 38157 }, + { 0x2842, 38160 }, + { 0x2882, 38163 }, + { 0x280C, 38166 }, + { 0x2814, 38169 }, + { 0x2824, 38172 }, + { 0x2844, 38175 }, + { 0x2884, 38178 }, + { 0x2818, 38181 }, + { 0x2828, 38184 }, + { 0x2848, 38187 }, + { 0x2888, 38190 }, + { 0x2830, 38193 }, + { 0x2850, 38196 }, + { 0x2890, 38199 }, + { 0x2860, 38202 }, + { 0x28A0, 38205 }, + { 0x28C0, 38208 }, + { 0x2807, 38211 }, + { 0x280B, 38214 }, + { 0x2813, 38217 }, + { 0x2823, 38220 }, + { 0x2843, 38223 }, + { 0x2883, 38226 }, + { 0x280D, 38229 }, + { 0x2815, 38232 }, + { 0x2825, 38235 }, + { 0x2845, 38238 }, + { 0x2885, 38241 }, + { 0x2819, 38244 }, + { 0x2829, 38247 }, + { 0x2849, 38250 }, + { 0x2889, 38253 }, + { 0x2831, 38256 }, + { 0x2851, 38259 }, + { 0x2891, 38262 }, + { 0x2861, 38265 }, + { 0x28A1, 38268 }, + { 0x28C1, 38271 }, + { 0x280E, 38274 }, + { 0x2816, 38277 }, + { 0x2826, 38280 }, + { 0x2846, 38283 }, + { 0x2886, 38286 }, + { 0x281A, 38289 }, + { 0x282A, 38292 }, + { 0x284A, 38295 }, + { 0x288A, 38298 }, + { 0x2832, 38301 }, + { 0x2852, 38304 }, + { 0x2892, 38307 }, + { 0x2862, 38310 }, + { 0x28A2, 38313 }, + { 0x28C2, 38316 }, + { 0x281C, 38319 }, + { 0x282C, 38322 }, + { 0x284C, 38325 }, + { 0x288C, 38328 }, + { 0x2834, 38331 }, + { 0x2854, 38334 }, + { 0x2894, 38337 }, + { 0x2864, 38340 }, + { 0x28A4, 38343 }, + { 0x28C4, 38346 }, + { 0x2838, 38349 }, + { 0x2858, 38352 }, + { 0x2898, 38355 }, + { 0x2868, 38358 }, + { 0x28A8, 38361 }, + { 0x28C8, 38364 }, + { 0x2870, 38367 }, + { 0x28B0, 38370 }, + { 0x28D0, 38373 }, + { 0x28E0, 38376 }, + { 0x280F, 38379 }, + { 0x2817, 38382 }, + { 0x2827, 38385 }, + { 0x2847, 38388 }, + { 0x2887, 38391 }, + { 0x281B, 38394 }, + { 0x282B, 38397 }, + { 0x284B, 38400 }, + { 0x288B, 38403 }, + { 0x2833, 38406 }, + { 0x2853, 38409 }, + { 0x2893, 38412 }, + { 0x2863, 38415 }, + { 0x28A3, 38418 }, + { 0x28C3, 38421 }, + { 0x281D, 38424 }, + { 0x282D, 38427 }, + { 0x284D, 38430 }, + { 0x288D, 38433 }, + { 0x2835, 38436 }, + { 0x2855, 38439 }, + { 0x2895, 38442 }, + { 0x2865, 38445 }, + { 0x28A5, 38448 }, + { 0x28C5, 38451 }, + { 0x2839, 38454 }, + { 0x2859, 38457 }, + { 0x2899, 38460 }, + { 0x2869, 38463 }, + { 0x28A9, 38466 }, + { 0x28C9, 38469 }, + { 0x2871, 38472 }, + { 0x28B1, 38475 }, + { 0x28D1, 38478 }, + { 0x28E1, 38481 }, + { 0x281E, 38484 }, + { 0x282E, 38487 }, + { 0x284E, 38490 }, + { 0x288E, 38493 }, + { 0x2836, 38496 }, + { 0x2856, 38499 }, + { 0x2896, 38502 }, + { 0x2866, 38505 }, + { 0x28A6, 38508 }, + { 0x28C6, 38511 }, + { 0x283A, 38514 }, + { 0x285A, 38517 }, + { 0x289A, 38520 }, + { 0x286A, 38523 }, + { 0x28AA, 38526 }, + { 0x28CA, 38529 }, + { 0x2872, 38532 }, + { 0x28B2, 38535 }, + { 0x28D2, 38538 }, + { 0x28E2, 38541 }, + { 0x283C, 38544 }, + { 0x285C, 38547 }, + { 0x289C, 38550 }, + { 0x286C, 38553 }, + { 0x28AC, 38556 }, + { 0x28CC, 38559 }, + { 0x2874, 38562 }, + { 0x28B4, 38565 }, + { 0x28D4, 38568 }, + { 0x28E4, 38571 }, + { 0x2878, 38574 }, + { 0x28B8, 38577 }, + { 0x28D8, 38580 }, + { 0x28E8, 38583 }, + { 0x28F0, 38586 }, + { 0x281F, 38589 }, + { 0x282F, 38592 }, + { 0x284F, 38595 }, + { 0x288F, 38598 }, + { 0x2837, 38601 }, + { 0x2857, 38604 }, + { 0x2897, 38607 }, + { 0x2867, 38610 }, + { 0x28A7, 38613 }, + { 0x28C7, 38616 }, + { 0x283B, 38619 }, + { 0x285B, 38622 }, + { 0x289B, 38625 }, + { 0x286B, 38628 }, + { 0x28AB, 38631 }, + { 0x28CB, 38634 }, + { 0x2873, 38637 }, + { 0x28B3, 38640 }, + { 0x28D3, 38643 }, + { 0x28E3, 38646 }, + { 0x283D, 38649 }, + { 0x285D, 38652 }, + { 0x289D, 38655 }, + { 0x286D, 38658 }, + { 0x28AD, 38661 }, + { 0x28CD, 38664 }, + { 0x2875, 38667 }, + { 0x28B5, 38670 }, + { 0x28D5, 38673 }, + { 0x28E5, 38676 }, + { 0x2879, 38679 }, + { 0x28B9, 38682 }, + { 0x28D9, 38685 }, + { 0x28E9, 38688 }, + { 0x28F1, 38691 }, + { 0x283E, 38694 }, + { 0x285E, 38697 }, + { 0x289E, 38700 }, + { 0x286E, 38703 }, + { 0x28AE, 38706 }, + { 0x28CE, 38709 }, + { 0x2876, 38712 }, + { 0x28B6, 38715 }, + { 0x28D6, 38718 }, + { 0x28E6, 38721 }, + { 0x287A, 38724 }, + { 0x28BA, 38727 }, + { 0x28DA, 38730 }, + { 0x28EA, 38733 }, + { 0x28F2, 38736 }, + { 0x287C, 38739 }, + { 0x28BC, 38742 }, + { 0x28DC, 38745 }, + { 0x28EC, 38748 }, + { 0x28F4, 38751 }, + { 0x28F8, 38754 }, + { 0x283F, 38757 }, + { 0x285F, 38760 }, + { 0x289F, 38763 }, + { 0x286F, 38766 }, + { 0x28AF, 38769 }, + { 0x28CF, 38772 }, + { 0x2877, 38775 }, + { 0x28B7, 38778 }, + { 0x28D7, 38781 }, + { 0x28E7, 38784 }, + { 0x287B, 38787 }, + { 0x28BB, 38790 }, + { 0x28DB, 38793 }, + { 0x28EB, 38796 }, + { 0x28F3, 38799 }, + { 0x287D, 38802 }, + { 0x28BD, 38805 }, + { 0x28DD, 38808 }, + { 0x28ED, 38811 }, + { 0x28F5, 38814 }, + { 0x28F9, 38817 }, + { 0x287E, 38820 }, + { 0x28BE, 38823 }, + { 0x28DE, 38826 }, + { 0x28EE, 38829 }, + { 0x28F6, 38832 }, + { 0x28FA, 38835 }, + { 0x28FC, 38838 }, + { 0x287F, 38841 }, + { 0x28BF, 38844 }, + { 0x28DF, 38847 }, + { 0x28EF, 38850 }, + { 0x28F7, 38853 }, + { 0x28FB, 38856 }, + { 0x28FD, 38859 }, + { 0x28FE, 38862 }, + { 0x28FF, 38865 }, + { 0x2621, 38868 }, + { 0x00B8, 38870 }, + { 0x2299, 38871 }, + { 0x229D, 38874 }, + { 0x2742, 38876 }, + { 0x2295, 38882 }, + { 0x229A, 38884 }, + { 0x2460, 38887 }, + { 0x2465, 38890 }, + { 0x2461, 38893 }, + { 0x2464, 38896 }, + { 0x2463, 38899 }, + { 0x2468, 38902 }, + { 0x24EA, 38905 }, + { 0x2467, 38908 }, + { 0x2466, 38911 }, + { 0x2462, 38914 }, + { 0x27B2, 38917 }, + { 0x24D0, 38922 }, + { 0x24D1, 38927 }, + { 0x24D2, 38932 }, + { 0x24D3, 38937 }, + { 0x24D4, 38942 }, + { 0x24D5, 38947 }, + { 0x24D6, 38952 }, + { 0x24D7, 38957 }, + { 0x24D8, 38962 }, + { 0x24D9, 38967 }, + { 0x24DA, 38972 }, + { 0x24DB, 38977 }, + { 0x24DC, 38982 }, + { 0x24DD, 38987 }, + { 0x24DE, 38992 }, + { 0x24DF, 38997 }, + { 0x24E0, 39002 }, + { 0x24E1, 39007 }, + { 0x24E2, 39012 }, + { 0x24E3, 39017 }, + { 0x24E4, 39022 }, + { 0x24E5, 39027 }, + { 0x24E6, 39032 }, + { 0x24E7, 39037 }, + { 0x24E8, 39042 }, + { 0x24E9, 39047 }, + { 0x24B6, 39052 }, + { 0x24B7, 39057 }, + { 0x24B8, 39062 }, + { 0x24B9, 39067 }, + { 0x24BA, 39072 }, + { 0x24BB, 39077 }, + { 0x24BC, 39082 }, + { 0x24BD, 39087 }, + { 0x24BE, 39092 }, + { 0x24BF, 39097 }, + { 0x24C0, 39102 }, + { 0x24C1, 39107 }, + { 0x24C2, 39112 }, + { 0x24C3, 39117 }, + { 0x24C4, 39122 }, + { 0x24C5, 39127 }, + { 0x24C6, 39132 }, + { 0x24C7, 39137 }, + { 0x24C8, 39142 }, + { 0x24C9, 39147 }, + { 0x24CA, 39152 }, + { 0x24CB, 39157 }, + { 0x24CC, 39162 }, + { 0x24CD, 39167 }, + { 0x24CE, 39172 }, + { 0x24CF, 39177 }, + { 0x2296, 39182 }, + { 0x2297, 39184 }, + { 0x272A, 39186 }, + { 0x29BE, 39189 }, + { 0x29BF, 39192 }, + { 0x229C, 39194 }, + { 0x3266, 39196 }, + { 0x3274, 39199 }, + { 0x3268, 39203 }, + { 0x3276, 39206 }, + { 0x326D, 39210 }, + { 0x327B, 39213 }, + { 0x3267, 39217 }, + { 0x3275, 39220 }, + { 0x327E, 39224 }, + { 0x3264, 39228 }, + { 0x3272, 39231 }, + { 0x3261, 39235 }, + { 0x326F, 39238 }, + { 0x3265, 39242 }, + { 0x3273, 39245 }, + { 0x3263, 39249 }, + { 0x3271, 39252 }, + { 0x3260, 39256 }, + { 0x326E, 39259 }, + { 0x3262, 39263 }, + { 0x3270, 39266 }, + { 0x3269, 39270 }, + { 0x3277, 39273 }, + { 0x326A, 39277 }, + { 0x3278, 39280 }, + { 0x326C, 39284 }, + { 0x327A, 39287 }, + { 0x326B, 39291 }, + { 0x3279, 39294 }, + { 0x327D, 39298 }, + { 0x327C, 39302 }, + { 0x2469, 39306 }, + { 0x32BF, 39309 }, + { 0x32B5, 39312 }, + { 0x32B6, 39315 }, + { 0x32BB, 39319 }, + { 0x32B7, 39323 }, + { 0x32BA, 39327 }, + { 0x32B9, 39331 }, + { 0x32BE, 39335 }, + { 0x32BD, 39339 }, + { 0x32BC, 39343 }, + { 0x32B8, 39347 }, + { 0x246A, 39351 }, + { 0x325A, 39354 }, + { 0x325B, 39357 }, + { 0x32B1, 39361 }, + { 0x325C, 39365 }, + { 0x325F, 39369 }, + { 0x325E, 39373 }, + { 0x32B4, 39377 }, + { 0x32B3, 39381 }, + { 0x32B2, 39385 }, + { 0x325D, 39389 }, + { 0x246B, 39393 }, + { 0x2473, 39396 }, + { 0x3251, 39399 }, + { 0x3256, 39403 }, + { 0x3252, 39407 }, + { 0x3255, 39411 }, + { 0x3254, 39415 }, + { 0x3259, 39419 }, + { 0x3258, 39423 }, + { 0x3257, 39427 }, + { 0x3253, 39431 }, + { 0x246E, 39435 }, + { 0x246F, 39438 }, + { 0x2471, 39441 }, + { 0x246D, 39444 }, + { 0x2472, 39447 }, + { 0x246C, 39450 }, + { 0x2470, 39453 }, + { 0x3036, 39456 }, + { 0x29B8, 39459 }, + { 0x229B, 39462 }, + { 0x2A38, 39465 }, + { 0x2298, 39468 }, + { 0x32D0, 39471 }, + { 0x32D3, 39474 }, + { 0x32D1, 39477 }, + { 0x32D4, 39480 }, + { 0x32D2, 39483 }, + { 0x32E9, 39486 }, + { 0x32EC, 39489 }, + { 0x32EA, 39492 }, + { 0x32ED, 39495 }, + { 0x32EB, 39498 }, + { 0x32D5, 39501 }, + { 0x32D8, 39504 }, + { 0x32D6, 39507 }, + { 0x32D9, 39510 }, + { 0x32D7, 39513 }, + { 0x32EE, 39516 }, + { 0x32F1, 39519 }, + { 0x32EF, 39522 }, + { 0x32F2, 39525 }, + { 0x32F0, 39528 }, + { 0x32E4, 39531 }, + { 0x32E7, 39534 }, + { 0x32E5, 39537 }, + { 0x32E8, 39540 }, + { 0x32E6, 39543 }, + { 0x32F6, 39546 }, + { 0x32F9, 39549 }, + { 0x32F7, 39552 }, + { 0x32FA, 39555 }, + { 0x32F8, 39558 }, + { 0x32DA, 39561 }, + { 0x32DD, 39564 }, + { 0x32DB, 39567 }, + { 0x32DE, 39570 }, + { 0x32DC, 39573 }, + { 0x32DF, 39576 }, + { 0x32E2, 39579 }, + { 0x32E0, 39582 }, + { 0x32E3, 39585 }, + { 0x32E1, 39588 }, + { 0x32FB, 39591 }, + { 0x32FD, 39594 }, + { 0x32FC, 39597 }, + { 0x32FE, 39600 }, + { 0x32F3, 39603 }, + { 0x32F5, 39606 }, + { 0x32F4, 39609 }, + { 0x29B7, 39612 }, + { 0x238A, 39614 }, + { 0x29B6, 39617 }, + { 0x32A6, 39620 }, + { 0x3280, 39623 }, + { 0x3285, 39626 }, + { 0x3290, 39629 }, + { 0x3289, 39632 }, + { 0x3281, 39635 }, + { 0x32A2, 39638 }, + { 0x328B, 39641 }, + { 0x3284, 39644 }, + { 0x3283, 39647 }, + { 0x3292, 39650 }, + { 0x32A4, 39653 }, + { 0x32A0, 39656 }, + { 0x32A7, 39659 }, + { 0x329A, 39662 }, + { 0x328A, 39665 }, + { 0x3294, 39668 }, + { 0x3288, 39671 }, + { 0x32A1, 39674 }, + { 0x328D, 39677 }, + { 0x328F, 39680 }, + { 0x3287, 39683 }, + { 0x3298, 39686 }, + { 0x328E, 39689 }, + { 0x32B0, 39692 }, + { 0x329E, 39695 }, + { 0x32A8, 39698 }, + { 0x3286, 39701 }, + { 0x3291, 39704 }, + { 0x32AB, 39707 }, + { 0x3282, 39710 }, + { 0x328C, 39713 }, + { 0x32A5, 39716 }, + { 0x329B, 39719 }, + { 0x3299, 39722 }, + { 0x32A3, 39725 }, + { 0x3293, 39728 }, + { 0x3295, 39731 }, + { 0x32AF, 39734 }, + { 0x32A9, 39737 }, + { 0x32AA, 39740 }, + { 0x32AE, 39743 }, + { 0x329C, 39746 }, + { 0x329F, 39749 }, + { 0x329D, 39752 }, + { 0x3296, 39755 }, + { 0x32AC, 39758 }, + { 0x32AD, 39761 }, + { 0x3297, 39764 }, + { 0x29C0, 39767 }, + { 0x2389, 39769 }, + { 0x29C1, 39774 }, + { 0x29B9, 39776 }, + { 0x2A36, 39778 }, + { 0x29BC, 39784 }, + { 0x2332, 39788 }, + { 0x222E, 39790 }, + { 0x2694, 39792 }, + { 0x7800, 39794 }, + { 0x7801, 39797 }, + { 0x7802, 39800 }, + { 0x7803, 39803 }, + { 0x7804, 39806 }, + { 0x7805, 39809 }, + { 0x7808, 39812 }, + { 0x780A, 39815 }, + { 0x780B, 39818 }, + { 0x780C, 39821 }, + { 0x780D, 39824 }, + { 0x780E, 39827 }, + { 0x780F, 39830 }, + { 0x7810, 39833 }, + { 0x7811, 39836 }, + { 0x7812, 39839 }, + { 0x7813, 39842 }, + { 0x7814, 39845 }, + { 0x7815, 39848 }, + { 0x7816, 39851 }, + { 0x7817, 39854 }, + { 0x7818, 39857 }, + { 0x7819, 39860 }, + { 0x781A, 39863 }, + { 0x781B, 39866 }, + { 0x781C, 39869 }, + { 0x781D, 39872 }, + { 0x781E, 39875 }, + { 0x781F, 39878 }, + { 0x7820, 39881 }, + { 0x7821, 39884 }, + { 0x7822, 39887 }, + { 0x7823, 39890 }, + { 0x7824, 39893 }, + { 0x7825, 39896 }, + { 0x7826, 39899 }, + { 0x7827, 39902 }, + { 0x7828, 39905 }, + { 0x7829, 39908 }, + { 0x782A, 39911 }, + { 0x782B, 39914 }, + { 0x782C, 39917 }, + { 0x782D, 39920 }, + { 0x782E, 39923 }, + { 0x782F, 39926 }, + { 0x7830, 39929 }, + { 0x7831, 39932 }, + { 0x7832, 39935 }, + { 0x7833, 39938 }, + { 0x7834, 39941 }, + { 0x7835, 39944 }, + { 0x7837, 39947 }, + { 0x7838, 39950 }, + { 0x783C, 39953 }, + { 0x783F, 39956 }, + { 0x2396, 39959 }, + { 0x7438, 39963 }, + { 0x7434, 39967 }, + { 0x7441, 39971 }, + { 0x744A, 39975 }, + { 0x744B, 39979 }, + { 0x744C, 39983 }, + { 0x7449, 39987 }, + { 0x7445, 39991 }, + { 0x744F, 39995 }, + { 0x744E, 39999 }, + { 0x7435, 40003 }, + { 0x7436, 40007 }, + { 0x743A, 40011 }, + { 0x743C, 40015 }, + { 0x744D, 40019 }, + { 0x7447, 40023 }, + { 0x7443, 40027 }, + { 0x7440, 40031 }, + { 0x743E, 40035 }, + { 0x743F, 40039 }, + { 0x7439, 40043 }, + { 0x743B, 40047 }, + { 0x7442, 40051 }, + { 0x7437, 40055 }, + { 0x7446, 40059 }, + { 0x743D, 40063 }, + { 0x742A, 40067 }, + { 0x7429, 40072 }, + { 0x7428, 40077 }, + { 0x742C, 40082 }, + { 0x742B, 40087 }, + { 0x742D, 40092 }, + { 0x7444, 40097 }, + { 0x7448, 40101 }, + { 0x7430, 40105 }, + { 0x742F, 40110 }, + { 0x742E, 40115 }, + { 0x7432, 40120 }, + { 0x7431, 40125 }, + { 0x7433, 40130 }, + { 0x7410, 40135 }, + { 0x740C, 40139 }, + { 0x7419, 40143 }, + { 0x7422, 40147 }, + { 0x7423, 40151 }, + { 0x7424, 40155 }, + { 0x7421, 40159 }, + { 0x741D, 40163 }, + { 0x7427, 40167 }, + { 0x7426, 40171 }, + { 0x740D, 40175 }, + { 0x740E, 40179 }, + { 0x7412, 40183 }, + { 0x7414, 40187 }, + { 0x7425, 40191 }, + { 0x741F, 40195 }, + { 0x741B, 40199 }, + { 0x7418, 40203 }, + { 0x7416, 40207 }, + { 0x7417, 40211 }, + { 0x7411, 40215 }, + { 0x7413, 40219 }, + { 0x741A, 40223 }, + { 0x740F, 40227 }, + { 0x741E, 40231 }, + { 0x7415, 40235 }, + { 0x7402, 40239 }, + { 0x7401, 40244 }, + { 0x7400, 40249 }, + { 0x7404, 40254 }, + { 0x7403, 40259 }, + { 0x7405, 40264 }, + { 0x741C, 40269 }, + { 0x7420, 40273 }, + { 0x7408, 40277 }, + { 0x7407, 40282 }, + { 0x7406, 40287 }, + { 0x740A, 40292 }, + { 0x7409, 40297 }, + { 0x740B, 40302 }, + { 0x2B18, 40307 }, + { 0x2B16, 40312 }, + { 0x2B17, 40317 }, + { 0x2B19, 40322 }, + { 0x22C4, 40327 }, + { 0x2780, 40329 }, + { 0x2785, 40334 }, + { 0x2781, 40339 }, + { 0x2784, 40344 }, + { 0x2783, 40349 }, + { 0x2788, 40354 }, + { 0x2787, 40359 }, + { 0x2786, 40364 }, + { 0x2782, 40369 }, + { 0x2789, 40374 }, + { 0x2776, 40379 }, + { 0x277B, 40384 }, + { 0x2777, 40389 }, + { 0x277A, 40394 }, + { 0x2779, 40399 }, + { 0x277E, 40404 }, + { 0x277D, 40409 }, + { 0x277C, 40414 }, + { 0x2778, 40419 }, + { 0x277F, 40424 }, + { 0x278A, 40429 }, + { 0x278F, 40435 }, + { 0x278B, 40441 }, + { 0x278E, 40447 }, + { 0x278D, 40453 }, + { 0x2792, 40459 }, + { 0x2791, 40465 }, + { 0x2790, 40471 }, + { 0x278C, 40477 }, + { 0x2793, 40483 }, + { 0x2223, 40489 }, + { 0x26AE, 40490 }, + { 0x26A3, 40492 }, + { 0x26A2, 40495 }, + { 0x20AF, 40498 }, + { 0x2208, 40500 }, + { 0x22F5, 40502 }, + { 0x22F9, 40507 }, + { 0x22F2, 40513 }, + { 0x22F6, 40519 }, + { 0x22F8, 40523 }, + { 0x22F3, 40527 }, + { 0x27D2, 40537 }, + { 0x2AD9, 40541 }, + { 0x292F, 40545 }, + { 0x292C, 40551 }, + { 0x25C9, 40556 }, + { 0x2ADC, 40557 }, + { 0x26B1, 40558 }, + { 0x20B2, 40560 }, + { 0x1734, 40562 }, + { 0x1732, 40565 }, + { 0x1733, 40569 }, + { 0x1720, 40573 }, + { 0x1721, 40576 }, + { 0x1722, 40579 }, + { 0x172A, 40582 }, + { 0x1727, 40585 }, + { 0x1724, 40588 }, + { 0x1731, 40591 }, + { 0x1723, 40594 }, + { 0x172E, 40597 }, + { 0x172B, 40600 }, + { 0x1728, 40603 }, + { 0x1729, 40606 }, + { 0x172D, 40609 }, + { 0x1730, 40612 }, + { 0x1726, 40615 }, + { 0x172F, 40618 }, + { 0x172C, 40621 }, + { 0x1725, 40624 }, + { 0x20B4, 40627 }, + { 0x206C, 40629 }, + { 0x206A, 40633 }, + { 0x25D9, 40636 }, + { 0x25D8, 40639 }, + { 0x2643, 40641 }, + { 0x0CD6, 40642 }, + { 0x0CBC, 40646 }, + { 0x0CCD, 40649 }, + { 0x0C83, 40652 }, + { 0x0C82, 40655 }, + { 0x0CBD, 40658 }, + { 0x0CF1, 40661 }, + { 0x0CF2, 40664 }, + { 0x0CE7, 40667 }, + { 0x0CEC, 40670 }, + { 0x0CE8, 40673 }, + { 0x0CEB, 40676 }, + { 0x0CEA, 40679 }, + { 0x0CEF, 40682 }, + { 0x0CE6, 40685 }, + { 0x0CEE, 40688 }, + { 0x0CED, 40691 }, + { 0x0CE9, 40694 }, + { 0x0CC6, 40697 }, + { 0x0CBF, 40701 }, + { 0x0CCA, 40705 }, + { 0x0CC1, 40709 }, + { 0x0CBE, 40713 }, + { 0x0CC8, 40717 }, + { 0x0CCC, 40721 }, + { 0x0CC7, 40725 }, + { 0x0CC0, 40729 }, + { 0x0CCB, 40733 }, + { 0x0CC2, 40737 }, + { 0x0CE2, 40741 }, + { 0x0CC3, 40746 }, + { 0x0CE3, 40751 }, + { 0x0CC4, 40756 }, + { 0x0CD5, 40761 }, + { 0x0C85, 40764 }, + { 0x0C8E, 40767 }, + { 0x0C87, 40770 }, + { 0x0C92, 40773 }, + { 0x0C89, 40776 }, + { 0x0C86, 40779 }, + { 0x0C90, 40782 }, + { 0x0C94, 40785 }, + { 0x0CAC, 40788 }, + { 0x0C9A, 40791 }, + { 0x0CA6, 40794 }, + { 0x0C8F, 40797 }, + { 0x0CDE, 40800 }, + { 0x0C97, 40803 }, + { 0x0CB9, 40806 }, + { 0x0C88, 40809 }, + { 0x0C9C, 40812 }, + { 0x0C95, 40815 }, + { 0x0CB2, 40818 }, + { 0x0CAE, 40821 }, + { 0x0CA8, 40824 }, + { 0x0C93, 40827 }, + { 0x0CAA, 40830 }, + { 0x0CB0, 40833 }, + { 0x0CB8, 40836 }, + { 0x0CA4, 40839 }, + { 0x0C8A, 40842 }, + { 0x0CB5, 40845 }, + { 0x0CAF, 40848 }, + { 0x0CAD, 40851 }, + { 0x0C9B, 40854 }, + { 0x0CA1, 40857 }, + { 0x0CA7, 40860 }, + { 0x0C98, 40863 }, + { 0x0C9D, 40866 }, + { 0x0C96, 40869 }, + { 0x0CB3, 40872 }, + { 0x0C99, 40875 }, + { 0x0CA3, 40878 }, + { 0x0C9E, 40881 }, + { 0x0CAB, 40884 }, + { 0x0CB1, 40887 }, + { 0x0CB6, 40890 }, + { 0x0CB7, 40893 }, + { 0x0CA5, 40896 }, + { 0x0C9F, 40899 }, + { 0x0CA2, 40902 }, + { 0x0CA0, 40905 }, + { 0x0C8C, 40908 }, + { 0x0C8B, 40912 }, + { 0x0CE1, 40916 }, + { 0x0CE0, 40920 }, + { 0x32CF, 40924 }, + { 0x2228, 40927 }, + { 0x2A52, 40929 }, + { 0x2A62, 40934 }, + { 0x2A63, 40939 }, + { 0x2A5B, 40944 }, + { 0x2A5D, 40949 }, + { 0x2A59, 40954 }, + { 0x2227, 40959 }, + { 0x2A51, 40961 }, + { 0x2A5E, 40966 }, + { 0x2A60, 40971 }, + { 0x2A5A, 40976 }, + { 0x2A5F, 40981 }, + { 0x2A5C, 40985 }, + { 0x25CA, 40990 }, + { 0x27E0, 40991 }, + { 0xA010, 40996 }, + { 0xA019, 41001 }, + { 0xA007, 41006 }, + { 0xA004, 41011 }, + { 0xA015, 41015 }, + { 0xA01E, 41020 }, + { 0xA00C, 41025 }, + { 0xA011, 41030 }, + { 0xA01A, 41035 }, + { 0xA008, 41040 }, + { 0xA02B, 41045 }, + { 0xA000, 41048 }, + { 0xA014, 41052 }, + { 0xA01D, 41057 }, + { 0xA00B, 41062 }, + { 0xA013, 41067 }, + { 0xA01C, 41072 }, + { 0xA00A, 41077 }, + { 0xA018, 41082 }, + { 0xA021, 41087 }, + { 0xA00F, 41092 }, + { 0xA022, 41097 }, + { 0xA002, 41100 }, + { 0xA017, 41104 }, + { 0xA020, 41109 }, + { 0xA00E, 41114 }, + { 0xA005, 41119 }, + { 0xA02A, 41123 }, + { 0xA003, 41126 }, + { 0xA016, 41130 }, + { 0xA01F, 41135 }, + { 0xA00D, 41140 }, + { 0xA001, 41145 }, + { 0xA012, 41149 }, + { 0xA01B, 41154 }, + { 0xA009, 41159 }, + { 0xA006, 41164 }, + { 0xA028, 41168 }, + { 0xA024, 41171 }, + { 0xA023, 41174 }, + { 0xA026, 41177 }, + { 0xA027, 41180 }, + { 0xA029, 41183 }, + { 0xA025, 41186 }, + { 0x2720, 41189 }, + { 0x263F, 41191 }, + { 0x22EF, 41192 }, + { 0x9121, 41195 }, + { 0x9122, 41199 }, + { 0x9123, 41203 }, + { 0x9124, 41209 }, + { 0x911E, 41215 }, + { 0x911F, 41219 }, + { 0x9120, 41225 }, + { 0x9143, 41231 }, + { 0x918E, 41235 }, + { 0x910A, 41238 }, + { 0x9196, 41242 }, + { 0x9135, 41245 }, + { 0x9109, 41249 }, + { 0x91A8, 41253 }, + { 0x9176, 41258 }, + { 0x9174, 41262 }, + { 0x9178, 41266 }, + { 0x917A, 41270 }, + { 0x9164, 41274 }, + { 0x9142, 41280 }, + { 0x91DD, 41286 }, + { 0x910C, 41290 }, + { 0x91B4, 41293 }, + { 0x91B5, 41296 }, + { 0x9125, 41300 }, + { 0x9126, 41304 }, + { 0x912C, 41308 }, + { 0x912D, 41312 }, + { 0x91C0, 41316 }, + { 0x91BF, 41320 }, + { 0x915E, 41324 }, + { 0x913C, 41328 }, + { 0x91B0, 41332 }, + { 0x9106, 41337 }, + { 0x9153, 41342 }, + { 0x9152, 41347 }, + { 0x9159, 41352 }, + { 0x9144, 41356 }, + { 0x9197, 41360 }, + { 0x919A, 41363 }, + { 0x9199, 41367 }, + { 0x9157, 41371 }, + { 0x91B3, 41375 }, + { 0x9175, 41379 }, + { 0x9173, 41383 }, + { 0x9177, 41387 }, + { 0x9179, 41391 }, + { 0x9114, 41395 }, + { 0x915C, 41398 }, + { 0x91CF, 41401 }, + { 0x9102, 41404 }, + { 0x9191, 41408 }, + { 0x9195, 41411 }, + { 0x9194, 41417 }, + { 0x91B7, 41422 }, + { 0x91C1, 41425 }, + { 0x91C2, 41430 }, + { 0x9190, 41435 }, + { 0x913A, 41438 }, + { 0x91AF, 41442 }, + { 0x91AE, 41447 }, + { 0x918F, 41451 }, + { 0x9107, 41454 }, + { 0x910B, 41459 }, + { 0x9130, 41462 }, + { 0x9131, 41466 }, + { 0x9105, 41470 }, + { 0x91D3, 41474 }, + { 0x915D, 41477 }, + { 0x913B, 41481 }, + { 0x9112, 41485 }, + { 0x91B8, 41489 }, + { 0x91C3, 41492 }, + { 0x9145, 41496 }, + { 0x91D5, 41501 }, + { 0x9134, 41504 }, + { 0x9104, 41508 }, + { 0x91A9, 41512 }, + { 0x912B, 41516 }, + { 0x912A, 41520 }, + { 0x9101, 41524 }, + { 0x9160, 41528 }, + { 0x913E, 41532 }, + { 0x91B6, 41536 }, + { 0x91BB, 41539 }, + { 0x91C5, 41542 }, + { 0x91BC, 41546 }, + { 0x9136, 41550 }, + { 0x9137, 41554 }, + { 0x9108, 41558 }, + { 0x9100, 41562 }, + { 0x91D2, 41566 }, + { 0x9147, 41570 }, + { 0x9146, 41575 }, + { 0x918D, 41580 }, + { 0x91C7, 41583 }, + { 0x91C9, 41590 }, + { 0x91C8, 41598 }, + { 0x91CA, 41605 }, + { 0x91CB, 41612 }, + { 0x91CC, 41619 }, + { 0x91CD, 41627 }, + { 0x91CE, 41635 }, + { 0x9115, 41643 }, + { 0x9113, 41646 }, + { 0x915B, 41649 }, + { 0x915A, 41654 }, + { 0x9110, 41659 }, + { 0x9111, 41662 }, + { 0x912E, 41666 }, + { 0x912F, 41670 }, + { 0x91D4, 41674 }, + { 0x915F, 41677 }, + { 0x913D, 41681 }, + { 0x9133, 41685 }, + { 0x9132, 41690 }, + { 0x9103, 41695 }, + { 0x91D7, 41700 }, + { 0x916A, 41703 }, + { 0x916B, 41707 }, + { 0x916C, 41711 }, + { 0x9198, 41715 }, + { 0x9129, 41719 }, + { 0x9158, 41724 }, + { 0x9116, 41728 }, + { 0x919B, 41732 }, + { 0x919C, 41736 }, + { 0x919D, 41740 }, + { 0x919E, 41744 }, + { 0x919F, 41748 }, + { 0x91A0, 41752 }, + { 0x91A1, 41756 }, + { 0x91A2, 41760 }, + { 0x91A3, 41764 }, + { 0x91A4, 41768 }, + { 0x91A5, 41772 }, + { 0x910D, 41776 }, + { 0x910E, 41780 }, + { 0x910F, 41784 }, + { 0x911B, 41788 }, + { 0x91D8, 41792 }, + { 0x91DC, 41795 }, + { 0x9149, 41799 }, + { 0x9151, 41805 }, + { 0x9150, 41812 }, + { 0x9148, 41819 }, + { 0x914F, 41825 }, + { 0x914E, 41831 }, + { 0x914B, 41837 }, + { 0x914A, 41843 }, + { 0x914D, 41849 }, + { 0x914C, 41855 }, + { 0x9117, 41861 }, + { 0x91AB, 41865 }, + { 0x9186, 41870 }, + { 0x9189, 41874 }, + { 0x9185, 41878 }, + { 0x91AA, 41882 }, + { 0x9187, 41887 }, + { 0x91AD, 41891 }, + { 0x9165, 41896 }, + { 0x9182, 41900 }, + { 0x9188, 41904 }, + { 0x917B, 41908 }, + { 0x918A, 41912 }, + { 0x916E, 41917 }, + { 0x916F, 41921 }, + { 0x9170, 41925 }, + { 0x9171, 41929 }, + { 0x9172, 41933 }, + { 0x917D, 41937 }, + { 0x918B, 41941 }, + { 0x917F, 41946 }, + { 0x91AC, 41950 }, + { 0x917C, 41954 }, + { 0x9167, 41958 }, + { 0x9168, 41962 }, + { 0x9169, 41966 }, + { 0x916D, 41970 }, + { 0x9166, 41975 }, + { 0x917E, 41980 }, + { 0x9181, 41984 }, + { 0x9180, 41988 }, + { 0x9192, 41992 }, + { 0x911A, 41995 }, + { 0x9119, 41999 }, + { 0x91B1, 42003 }, + { 0x91B2, 42007 }, + { 0x91D0, 42011 }, + { 0x91D1, 42016 }, + { 0x91D9, 42021 }, + { 0x91DA, 42024 }, + { 0x91D6, 42028 }, + { 0x91DB, 42031 }, + { 0x9161, 42035 }, + { 0x913F, 42039 }, + { 0x9183, 42043 }, + { 0x9184, 42047 }, + { 0x91C4, 42051 }, + { 0x91BA, 42055 }, + { 0x91B9, 42059 }, + { 0x91C6, 42063 }, + { 0x91BE, 42067 }, + { 0x91BD, 42071 }, + { 0x911C, 42075 }, + { 0x9118, 42079 }, + { 0x9193, 42083 }, + { 0x911D, 42086 }, + { 0x91A6, 42090 }, + { 0x91A7, 42093 }, + { 0x9156, 42096 }, + { 0x918C, 42100 }, + { 0x9138, 42103 }, + { 0x9139, 42107 }, + { 0x9163, 42111 }, + { 0x9141, 42115 }, + { 0x9162, 42119 }, + { 0x9140, 42123 }, + { 0x9155, 42127 }, + { 0x9154, 42133 }, + { 0x1091, 42139 }, + { 0x1096, 42143 }, + { 0x1092, 42147 }, + { 0x1095, 42151 }, + { 0x1094, 42155 }, + { 0x1099, 42159 }, + { 0x1090, 42163 }, + { 0x1098, 42167 }, + { 0x1097, 42171 }, + { 0x1093, 42175 }, + { 0x1037, 42179 }, + { 0x103A, 42183 }, + { 0x1087, 42186 }, + { 0x1088, 42190 }, + { 0x1089, 42194 }, + { 0x108A, 42198 }, + { 0x108B, 42202 }, + { 0x108C, 42207 }, + { 0x108D, 42212 }, + { 0x108F, 42218 }, + { 0x104A, 42223 }, + { 0x1039, 42227 }, + { 0x104B, 42230 }, + { 0x1038, 42233 }, + { 0x1069, 42236 }, + { 0x106A, 42242 }, + { 0x106B, 42248 }, + { 0x106C, 42254 }, + { 0x106D, 42260 }, + { 0x1036, 42266 }, + { 0x1064, 42269 }, + { 0x1063, 42276 }, + { 0x1041, 42282 }, + { 0x1046, 42285 }, + { 0x1042, 42288 }, + { 0x1045, 42291 }, + { 0x1044, 42294 }, + { 0x1049, 42297 }, + { 0x1040, 42300 }, + { 0x1048, 42303 }, + { 0x1047, 42306 }, + { 0x1043, 42309 }, + { 0x1031, 42312 }, + { 0x1035, 42316 }, + { 0x102D, 42321 }, + { 0x102F, 42325 }, + { 0x102C, 42329 }, + { 0x1032, 42333 }, + { 0x102E, 42337 }, + { 0x1030, 42341 }, + { 0x1034, 42345 }, + { 0x1033, 42350 }, + { 0x1071, 42355 }, + { 0x1062, 42361 }, + { 0x1084, 42367 }, + { 0x1085, 42372 }, + { 0x1083, 42378 }, + { 0x1086, 42383 }, + { 0x102B, 42389 }, + { 0x1073, 42394 }, + { 0x1074, 42399 }, + { 0x1072, 42404 }, + { 0x1058, 42409 }, + { 0x1056, 42414 }, + { 0x1059, 42419 }, + { 0x1057, 42424 }, + { 0x1067, 42429 }, + { 0x1068, 42436 }, + { 0x1021, 42443 }, + { 0x1027, 42446 }, + { 0x1023, 42449 }, + { 0x1029, 42452 }, + { 0x1025, 42455 }, + { 0x102A, 42458 }, + { 0x1017, 42461 }, + { 0x1005, 42464 }, + { 0x1012, 42467 }, + { 0x1002, 42470 }, + { 0x101F, 42473 }, + { 0x1024, 42476 }, + { 0x1007, 42479 }, + { 0x1000, 42482 }, + { 0x101C, 42485 }, + { 0x1019, 42488 }, + { 0x1014, 42491 }, + { 0x1015, 42494 }, + { 0x101B, 42497 }, + { 0x101E, 42500 }, + { 0x1010, 42503 }, + { 0x1026, 42506 }, + { 0x101D, 42509 }, + { 0x101A, 42512 }, + { 0x1018, 42515 }, + { 0x1006, 42518 }, + { 0x100D, 42521 }, + { 0x1013, 42524 }, + { 0x1003, 42527 }, + { 0x1008, 42530 }, + { 0x1001, 42533 }, + { 0x1020, 42536 }, + { 0x1028, 42539 }, + { 0x105C, 42543 }, + { 0x105D, 42547 }, + { 0x105B, 42551 }, + { 0x105A, 42555 }, + { 0x1004, 42559 }, + { 0x100F, 42562 }, + { 0x1009, 42565 }, + { 0x1016, 42568 }, + { 0x1050, 42571 }, + { 0x1051, 42574 }, + { 0x1011, 42577 }, + { 0x100B, 42580 }, + { 0x100E, 42583 }, + { 0x100A, 42586 }, + { 0x1061, 42589 }, + { 0x1022, 42594 }, + { 0x107F, 42598 }, + { 0x1078, 42602 }, + { 0x107B, 42606 }, + { 0x107E, 42610 }, + { 0x1077, 42614 }, + { 0x1081, 42618 }, + { 0x1075, 42622 }, + { 0x107C, 42626 }, + { 0x1079, 42630 }, + { 0x1076, 42634 }, + { 0x107A, 42638 }, + { 0x107D, 42642 }, + { 0x1080, 42646 }, + { 0x100C, 42650 }, + { 0x103F, 42653 }, + { 0x108E, 42657 }, + { 0x106E, 42662 }, + { 0x106F, 42668 }, + { 0x1070, 42674 }, + { 0x1054, 42680 }, + { 0x1052, 42684 }, + { 0x1055, 42688 }, + { 0x1053, 42692 }, + { 0x1066, 42696 }, + { 0x1065, 42702 }, + { 0x109E, 42708 }, + { 0x109F, 42712 }, + { 0x104F, 42716 }, + { 0x104C, 42719 }, + { 0x104D, 42722 }, + { 0x104E, 42725 }, + { 0x1060, 42728 }, + { 0x105F, 42734 }, + { 0x105E, 42740 }, + { 0x1082, 42746 }, + { 0x103E, 42752 }, + { 0x103C, 42757 }, + { 0x103D, 42762 }, + { 0x103B, 42767 }, + { 0x22AF, 42772 }, + { 0x2288, 42779 }, + { 0x2289, 42786 }, + { 0x2270, 42793 }, + { 0x2274, 42798 }, + { 0x2278, 42803 }, + { 0x2271, 42807 }, + { 0x2279, 42812 }, + { 0x2275, 42816 }, + { 0x2247, 42821 }, + { 0x2646, 42827 }, + { 0x206F, 42828 }, + { 0x27AF, 42831 }, + { 0x27B1, 42837 }, + { 0x29A6, 42843 }, + { 0x29A7, 42847 }, + { 0x74A1, 42851 }, + { 0x74A6, 42854 }, + { 0x74A2, 42857 }, + { 0x74A5, 42860 }, + { 0x74A4, 42863 }, + { 0x74A9, 42866 }, + { 0x74A0, 42869 }, + { 0x74A8, 42872 }, + { 0x74A7, 42875 }, + { 0x74A3, 42878 }, + { 0x7496, 42881 }, + { 0x7497, 42884 }, + { 0x7498, 42887 }, + { 0x7499, 42890 }, + { 0x749A, 42893 }, + { 0x749B, 42896 }, + { 0x7481, 42899 }, + { 0x749C, 42902 }, + { 0x748D, 42905 }, + { 0x748C, 42908 }, + { 0x7494, 42911 }, + { 0x7483, 42914 }, + { 0x749D, 42917 }, + { 0x7487, 42920 }, + { 0x7488, 42923 }, + { 0x7482, 42926 }, + { 0x7484, 42929 }, + { 0x7495, 42932 }, + { 0x748A, 42935 }, + { 0x7485, 42938 }, + { 0x7493, 42941 }, + { 0x7480, 42944 }, + { 0x748B, 42947 }, + { 0x7486, 42950 }, + { 0x748F, 42953 }, + { 0x7490, 42956 }, + { 0x7491, 42959 }, + { 0x7492, 42962 }, + { 0x748E, 42965 }, + { 0x7489, 42968 }, + { 0x2202, 42971 }, + { 0x0025, 42973 }, + { 0x00B6, 42975 }, + { 0x2669, 42977 }, + { 0x23B7, 42979 }, + { 0x2B41, 42982 }, + { 0x2B47, 42988 }, + { 0x005C, 42994 }, + { 0x29F7, 42996 }, + { 0x29F5, 43001 }, + { 0x27C8, 43004 }, + { 0x2765, 43008 }, + { 0x2767, 43013 }, + { 0x213A, 43017 }, + { 0x2613, 43020 }, + { 0x2108, 43021 }, + { 0x00A7, 43022 }, + { 0x2313, 43024 }, + { 0x2120, 43025 }, + { 0x26B9, 43027 }, + { 0x746D, 43028 }, + { 0x7466, 43031 }, + { 0x746A, 43034 }, + { 0x7479, 43037 }, + { 0x7455, 43040 }, + { 0x7473, 43043 }, + { 0x7469, 43046 }, + { 0x7471, 43049 }, + { 0x747A, 43052 }, + { 0x7478, 43055 }, + { 0x7468, 43058 }, + { 0x7477, 43061 }, + { 0x745A, 43064 }, + { 0x747D, 43067 }, + { 0x7470, 43070 }, + { 0x7467, 43073 }, + { 0x747B, 43076 }, + { 0x7453, 43079 }, + { 0x745C, 43082 }, + { 0x747E, 43085 }, + { 0x7472, 43088 }, + { 0x746F, 43091 }, + { 0x7474, 43094 }, + { 0x7476, 43097 }, + { 0x746C, 43100 }, + { 0x7451, 43103 }, + { 0x745D, 43106 }, + { 0x7462, 43109 }, + { 0x7458, 43112 }, + { 0x747F, 43115 }, + { 0x745F, 43118 }, + { 0x745B, 43121 }, + { 0x7459, 43124 }, + { 0x7452, 43127 }, + { 0x7464, 43130 }, + { 0x7465, 43133 }, + { 0x7475, 43136 }, + { 0x7450, 43139 }, + { 0x746E, 43142 }, + { 0x7456, 43145 }, + { 0x745E, 43148 }, + { 0x746B, 43151 }, + { 0x747C, 43154 }, + { 0x7463, 43157 }, + { 0x7461, 43160 }, + { 0x7454, 43163 }, + { 0x7457, 43166 }, + { 0x7460, 43169 }, + { 0x29E2, 43172 }, + { 0x2A9D, 43174 }, + { 0x2A9E, 43177 }, + { 0x2A9F, 43180 }, + { 0x2AA0, 43186 }, + { 0x2A6C, 43192 }, + { 0x0DCA, 43195 }, + { 0x0D83, 43198 }, + { 0x0D82, 43201 }, + { 0x0DDA, 43204 }, + { 0x0DD3, 43209 }, + { 0x0DD6, 43214 }, + { 0x0DD1, 43219 }, + { 0x0DF3, 43224 }, + { 0x0DF2, 43229 }, + { 0x0DD2, 43234 }, + { 0x0DD4, 43239 }, + { 0x0DD0, 43244 }, + { 0x0DDB, 43249 }, + { 0x0DD9, 43254 }, + { 0x0DDD, 43258 }, + { 0x0DDC, 43265 }, + { 0x0DDE, 43271 }, + { 0x0DCF, 43277 }, + { 0x0DDF, 43281 }, + { 0x0DD8, 43285 }, + { 0x0DB9, 43289 }, + { 0x0D85, 43293 }, + { 0x0D91, 43296 }, + { 0x0D89, 43299 }, + { 0x0D94, 43302 }, + { 0x0D8B, 43305 }, + { 0x0D86, 43308 }, + { 0x0D87, 43311 }, + { 0x0D93, 43314 }, + { 0x0D96, 43317 }, + { 0x0DBD, 43320 }, + { 0x0DB1, 43324 }, + { 0x0DC3, 43328 }, + { 0x0D92, 43332 }, + { 0x0DC6, 43335 }, + { 0x0DC4, 43338 }, + { 0x0D8A, 43341 }, + { 0x0D9E, 43344 }, + { 0x0DB8, 43348 }, + { 0x0D95, 43351 }, + { 0x0DBB, 43354 }, + { 0x0DB3, 43357 }, + { 0x0D9F, 43361 }, + { 0x0DA6, 43365 }, + { 0x0DAC, 43369 }, + { 0x0DC1, 43373 }, + { 0x0DA5, 43377 }, + { 0x0DA4, 43382 }, + { 0x0D8C, 43386 }, + { 0x0DC0, 43389 }, + { 0x0DBA, 43392 }, + { 0x0D88, 43395 }, + { 0x0D8F, 43398 }, + { 0x0D8D, 43401 }, + { 0x0D90, 43404 }, + { 0x0D8E, 43407 }, + { 0x0DC5, 43410 }, + { 0x0DAB, 43414 }, + { 0x0DC2, 43418 }, + { 0x0DB6, 43422 }, + { 0x0DA0, 43426 }, + { 0x0DAF, 43430 }, + { 0x0D9C, 43434 }, + { 0x0DA2, 43438 }, + { 0x0D9A, 43442 }, + { 0x0DB4, 43446 }, + { 0x0DAD, 43450 }, + { 0x0DA9, 43454 }, + { 0x0DA7, 43458 }, + { 0x0DB7, 43462 }, + { 0x0DA1, 43466 }, + { 0x0DB0, 43470 }, + { 0x0D9D, 43474 }, + { 0x0DA3, 43478 }, + { 0x0D9B, 43482 }, + { 0x0DB5, 43486 }, + { 0x0DAE, 43490 }, + { 0x0DAA, 43494 }, + { 0x0DA8, 43498 }, + { 0x0DF4, 43502 }, + { 0x273A, 43505 }, + { 0x2A95, 43508 }, + { 0x2A97, 43513 }, + { 0x2A96, 43521 }, + { 0x2A98, 43526 }, + { 0x2A57, 43534 }, + { 0x2A58, 43537 }, + { 0x2AAA, 43540 }, + { 0x2AAC, 43542 }, + { 0x2603, 43547 }, + { 0x002F, 43548 }, + { 0x29F6, 43549 }, + { 0x2747, 43552 }, + { 0x22A1, 43553 }, + { 0x2E2C, 43556 }, + { 0x229E, 43560 }, + { 0x229F, 43562 }, + { 0x29C7, 43564 }, + { 0x22A0, 43567 }, + { 0x29C4, 43569 }, + { 0x29C8, 43573 }, + { 0x29C5, 43575 }, + { 0x29C6, 43579 }, + { 0x222F, 43581 }, + { 0x1714, 43583 }, + { 0x1712, 43586 }, + { 0x1713, 43590 }, + { 0x1700, 43594 }, + { 0x1701, 43597 }, + { 0x1702, 43600 }, + { 0x170A, 43603 }, + { 0x1707, 43606 }, + { 0x1704, 43609 }, + { 0x1711, 43612 }, + { 0x1703, 43615 }, + { 0x170E, 43618 }, + { 0x170B, 43621 }, + { 0x1708, 43624 }, + { 0x1709, 43627 }, + { 0x1710, 43630 }, + { 0x1706, 43633 }, + { 0x170F, 43636 }, + { 0x170C, 43639 }, + { 0x1705, 43642 }, + { 0x27A2, 43645 }, + { 0x27A3, 43649 }, + { 0x0FBE, 43653 }, + { 0x0FBF, 43657 }, + { 0x0F3D, 43664 }, + { 0x0F3C, 43669 }, + { 0x0F38, 43674 }, + { 0x0F3B, 43678 }, + { 0x0F3A, 43683 }, + { 0x0F11, 43688 }, + { 0x0F39, 43694 }, + { 0x0F07, 43698 }, + { 0x0F0A, 43705 }, + { 0x0F03, 43711 }, + { 0x0F02, 43720 }, + { 0x0F01, 43729 }, + { 0x0F14, 43736 }, + { 0x0F35, 43740 }, + { 0x0F37, 43746 }, + { 0x0F0E, 43752 }, + { 0x0FD2, 43756 }, + { 0x0F10, 43760 }, + { 0x0F12, 43765 }, + { 0x0F0D, 43770 }, + { 0x0F34, 43773 }, + { 0x0FD0, 43777 }, + { 0x0F09, 43784 }, + { 0x0F06, 43789 }, + { 0x0F13, 43797 }, + { 0x0F36, 43805 }, + { 0x0FD1, 43813 }, + { 0x0F08, 43820 }, + { 0x0F0F, 43824 }, + { 0x0F85, 43828 }, + { 0x0F05, 43831 }, + { 0x0FD4, 43838 }, + { 0x0F84, 43847 }, + { 0x0F04, 43850 }, + { 0x0FD3, 43857 }, + { 0x0F0C, 43866 }, + { 0x0F0B, 43871 }, + { 0x0F8A, 43875 }, + { 0x0F8B, 43880 }, + { 0x0F88, 43885 }, + { 0x0F86, 43890 }, + { 0x0F3F, 43894 }, + { 0x0F82, 43898 }, + { 0x0F83, 43904 }, + { 0x0F3E, 43908 }, + { 0x0F89, 43912 }, + { 0x0F1D, 43916 }, + { 0x0FCF, 43921 }, + { 0x0FCE, 43926 }, + { 0x0F1E, 43932 }, + { 0x0F1A, 43937 }, + { 0x0F1C, 43942 }, + { 0x0F1F, 43947 }, + { 0x0F1B, 43953 }, + { 0x0F7E, 43958 }, + { 0x0F7F, 43964 }, + { 0x0F87, 43968 }, + { 0x0F21, 43972 }, + { 0x0F26, 43975 }, + { 0x0F22, 43978 }, + { 0x0F25, 43981 }, + { 0x0F24, 43984 }, + { 0x0F2A, 43987 }, + { 0x0F2F, 43991 }, + { 0x0F2B, 43995 }, + { 0x0F2E, 43999 }, + { 0x0F2D, 44003 }, + { 0x0F32, 44007 }, + { 0x0F33, 44011 }, + { 0x0F31, 44015 }, + { 0x0F30, 44019 }, + { 0x0F2C, 44023 }, + { 0x0F29, 44027 }, + { 0x0F20, 44030 }, + { 0x0F28, 44033 }, + { 0x0F27, 44036 }, + { 0x0F23, 44039 }, + { 0x0F7A, 44042 }, + { 0x0F72, 44046 }, + { 0x0F7C, 44050 }, + { 0x0F74, 44054 }, + { 0x0F71, 44058 }, + { 0x0F7B, 44062 }, + { 0x0F73, 44066 }, + { 0x0F7D, 44070 }, + { 0x0F75, 44074 }, + { 0x0F78, 44078 }, + { 0x0F76, 44083 }, + { 0x0F79, 44088 }, + { 0x0F77, 44093 }, + { 0x0F80, 44098 }, + { 0x0F81, 44103 }, + { 0x0F68, 44108 }, + { 0x0F60, 44111 }, + { 0x0F56, 44114 }, + { 0x0F45, 44117 }, + { 0x0F51, 44120 }, + { 0x0F42, 44123 }, + { 0x0F67, 44126 }, + { 0x0F47, 44129 }, + { 0x0F40, 44132 }, + { 0x0F63, 44135 }, + { 0x0F58, 44138 }, + { 0x0F53, 44141 }, + { 0x0F54, 44144 }, + { 0x0F62, 44147 }, + { 0x0F66, 44150 }, + { 0x0F4F, 44153 }, + { 0x0F5D, 44156 }, + { 0x0F61, 44159 }, + { 0x0F5F, 44162 }, + { 0x0F57, 44165 }, + { 0x0F46, 44168 }, + { 0x0F4C, 44171 }, + { 0x0F52, 44174 }, + { 0x0F5B, 44177 }, + { 0x0F43, 44180 }, + { 0x0F41, 44183 }, + { 0x0F6B, 44186 }, + { 0x0F44, 44189 }, + { 0x0F4E, 44192 }, + { 0x0F49, 44195 }, + { 0x0F55, 44198 }, + { 0x0F6C, 44201 }, + { 0x0F64, 44204 }, + { 0x0F65, 44207 }, + { 0x0F50, 44210 }, + { 0x0F59, 44213 }, + { 0x0F4A, 44216 }, + { 0x0F5E, 44219 }, + { 0x0F4D, 44222 }, + { 0x0F5C, 44225 }, + { 0x0F69, 44228 }, + { 0x0F5A, 44231 }, + { 0x0F4B, 44234 }, + { 0x0F6A, 44237 }, + { 0x0FC9, 44241 }, + { 0x0FCC, 44245 }, + { 0x0FCB, 44251 }, + { 0x0FCA, 44257 }, + { 0x0FC5, 44263 }, + { 0x0FC7, 44267 }, + { 0x0FC4, 44273 }, + { 0x0FC8, 44277 }, + { 0x0FC6, 44281 }, + { 0x0F15, 44285 }, + { 0x0F16, 44290 }, + { 0x0F00, 44295 }, + { 0x0FB8, 44298 }, + { 0x0FB0, 44302 }, + { 0x0FA6, 44306 }, + { 0x0F95, 44310 }, + { 0x0FA1, 44314 }, + { 0x0F92, 44318 }, + { 0x0FB7, 44322 }, + { 0x0F97, 44326 }, + { 0x0F90, 44330 }, + { 0x0FB3, 44334 }, + { 0x0FA8, 44338 }, + { 0x0FA3, 44342 }, + { 0x0FA4, 44346 }, + { 0x0FB2, 44350 }, + { 0x0FB6, 44354 }, + { 0x0F9F, 44358 }, + { 0x0FAD, 44362 }, + { 0x0FB1, 44366 }, + { 0x0FAF, 44370 }, + { 0x0FA7, 44374 }, + { 0x0F96, 44378 }, + { 0x0F9C, 44382 }, + { 0x0FA2, 44386 }, + { 0x0FAB, 44390 }, + { 0x0F93, 44394 }, + { 0x0F91, 44398 }, + { 0x0F94, 44402 }, + { 0x0F9E, 44406 }, + { 0x0F99, 44410 }, + { 0x0FA5, 44414 }, + { 0x0FB4, 44418 }, + { 0x0FB5, 44422 }, + { 0x0FA0, 44426 }, + { 0x0FA9, 44430 }, + { 0x0F9A, 44434 }, + { 0x0FAE, 44438 }, + { 0x0F9D, 44442 }, + { 0x0FAC, 44446 }, + { 0x0FB9, 44450 }, + { 0x0FAA, 44454 }, + { 0x0F9B, 44458 }, + { 0x0FBC, 44462 }, + { 0x0FBA, 44467 }, + { 0x0FBB, 44472 }, + { 0x0F17, 44477 }, + { 0x0F19, 44484 }, + { 0x0F18, 44489 }, + { 0x0FC2, 44494 }, + { 0x0FC3, 44499 }, + { 0x0FC0, 44504 }, + { 0x0FC1, 44509 }, + { 0x2632, 44514 }, + { 0x2631, 44517 }, + { 0x2634, 44520 }, + { 0x2637, 44523 }, + { 0x2635, 44526 }, + { 0x2630, 44529 }, + { 0x2633, 44532 }, + { 0x2636, 44535 }, + { 0x219F, 44538 }, + { 0x2191, 44542 }, + { 0x2912, 44544 }, + { 0x21A5, 44548 }, + { 0x21B0, 44552 }, + { 0x21B1, 44557 }, + { 0x21DE, 44562 }, + { 0x2909, 44567 }, + { 0x21C5, 44572 }, + { 0x2B06, 44578 }, + { 0x21E7, 44581 }, + { 0x21EB, 44584 }, + { 0x21ED, 44589 }, + { 0x21EC, 44597 }, + { 0x21EA, 44605 }, + { 0x21EE, 44610 }, + { 0x21EF, 44614 }, + { 0x2E15, 44620 }, + { 0x21E1, 44622 }, + { 0x21D1, 44625 }, + { 0x21C8, 44628 }, + { 0x290A, 44631 }, + { 0x2958, 44634 }, + { 0x2960, 44641 }, + { 0x2963, 44648 }, + { 0x296E, 44659 }, + { 0x2954, 44670 }, + { 0x295C, 44677 }, + { 0x21BF, 44684 }, + { 0x21BE, 44689 }, + { 0x27F0, 44694 }, + { 0x2949, 44697 }, + { 0x270C, 44703 }, + { 0x26A0, 44705 }, + { 0x270D, 44707 }, + { 0x206D, 44709 }, + { 0x206B, 44713 }, + { 0x2708, 44716 }, + { 0x212B, 44717 }, + { 0x2652, 44719 }, + { 0x0589, 44720 }, + { 0x055D, 44723 }, + { 0x056E, 44725 }, + { 0x0581, 44729 }, + { 0x0564, 44733 }, + { 0x0567, 44737 }, + { 0x0568, 44741 }, + { 0x0570, 44745 }, + { 0x0571, 44749 }, + { 0x0585, 44753 }, + { 0x057C, 44757 }, + { 0x0569, 44761 }, + { 0x0578, 44765 }, + { 0x0575, 44769 }, + { 0x0566, 44773 }, + { 0x0561, 44777 }, + { 0x0562, 44781 }, + { 0x0579, 44785 }, + { 0x0565, 44789 }, + { 0x0586, 44793 }, + { 0x0563, 44797 }, + { 0x056B, 44801 }, + { 0x0584, 44805 }, + { 0x056F, 44809 }, + { 0x0574, 44813 }, + { 0x0576, 44817 }, + { 0x057A, 44821 }, + { 0x0580, 44825 }, + { 0x057D, 44829 }, + { 0x0577, 44833 }, + { 0x057E, 44837 }, + { 0x056D, 44841 }, + { 0x056A, 44845 }, + { 0x0573, 44849 }, + { 0x0572, 44853 }, + { 0x057B, 44857 }, + { 0x056C, 44861 }, + { 0x0583, 44865 }, + { 0x057F, 44869 }, + { 0x0582, 44873 }, + { 0x0587, 44877 }, + { 0x6B14, 44882 }, + { 0x6B15, 44887 }, + { 0x6B13, 44892 }, + { 0x6B17, 44897 }, + { 0x6B16, 44902 }, + { 0x058A, 44907 }, + { 0x053E, 44909 }, + { 0x0551, 44913 }, + { 0x0534, 44917 }, + { 0x0537, 44921 }, + { 0x0538, 44925 }, + { 0x0540, 44929 }, + { 0x0541, 44933 }, + { 0x0555, 44937 }, + { 0x054C, 44941 }, + { 0x0539, 44945 }, + { 0x0548, 44949 }, + { 0x0545, 44953 }, + { 0x0536, 44957 }, + { 0x0531, 44961 }, + { 0x0532, 44965 }, + { 0x0549, 44969 }, + { 0x0535, 44973 }, + { 0x0556, 44977 }, + { 0x0533, 44981 }, + { 0x053B, 44985 }, + { 0x0554, 44989 }, + { 0x053F, 44993 }, + { 0x0544, 44997 }, + { 0x0546, 45001 }, + { 0x054A, 45005 }, + { 0x0550, 45009 }, + { 0x054D, 45013 }, + { 0x0547, 45017 }, + { 0x054E, 45021 }, + { 0x053D, 45025 }, + { 0x053A, 45029 }, + { 0x0543, 45033 }, + { 0x0542, 45037 }, + { 0x054B, 45041 }, + { 0x053C, 45045 }, + { 0x0553, 45049 }, + { 0x054F, 45053 }, + { 0x0552, 45057 }, + { 0x055B, 45061 }, + { 0x0559, 45064 }, + { 0x055E, 45070 }, + { 0x055A, 45073 }, + { 0x055C, 45075 }, + { 0x055F, 45078 }, + { 0x002A, 45081 }, + { 0x2217, 45082 }, + { 0x2042, 45084 }, + { 0x1B44, 45085 }, + { 0x1B00, 45088 }, + { 0x1B01, 45092 }, + { 0x1B04, 45096 }, + { 0x1B02, 45099 }, + { 0x1B03, 45102 }, + { 0x1B34, 45105 }, + { 0x1B5E, 45108 }, + { 0x1B5F, 45111 }, + { 0x1B5D, 45114 }, + { 0x1B51, 45117 }, + { 0x1B56, 45120 }, + { 0x1B52, 45123 }, + { 0x1B55, 45126 }, + { 0x1B54, 45129 }, + { 0x1B59, 45132 }, + { 0x1B50, 45135 }, + { 0x1B58, 45138 }, + { 0x1B57, 45141 }, + { 0x1B53, 45144 }, + { 0x1B5A, 45147 }, + { 0x1B3C, 45149 }, + { 0x1B3D, 45154 }, + { 0x1B3A, 45160 }, + { 0x1B3B, 45165 }, + { 0x1B36, 45171 }, + { 0x1B37, 45175 }, + { 0x1B38, 45180 }, + { 0x1B39, 45184 }, + { 0x1B42, 45189 }, + { 0x1B43, 45193 }, + { 0x1B3E, 45198 }, + { 0x1B3F, 45202 }, + { 0x1B41, 45207 }, + { 0x1B40, 45213 }, + { 0x1B35, 45218 }, + { 0x1B5C, 45222 }, + { 0x1B29, 45224 }, + { 0x1B2A, 45227 }, + { 0x1B18, 45231 }, + { 0x1B19, 45234 }, + { 0x1B24, 45238 }, + { 0x1B25, 45241 }, + { 0x1B1F, 45245 }, + { 0x1B20, 45250 }, + { 0x1B48, 45255 }, + { 0x1B15, 45259 }, + { 0x1B16, 45262 }, + { 0x1B33, 45266 }, + { 0x1B1A, 45269 }, + { 0x1B1B, 45272 }, + { 0x1B13, 45276 }, + { 0x1B14, 45279 }, + { 0x1B2E, 45283 }, + { 0x1B0D, 45286 }, + { 0x1B0E, 45290 }, + { 0x1B2B, 45295 }, + { 0x1B26, 45298 }, + { 0x1B21, 45301 }, + { 0x1B27, 45305 }, + { 0x1B28, 45308 }, + { 0x1B2D, 45312 }, + { 0x1B0B, 45315 }, + { 0x1B0C, 45319 }, + { 0x1B32, 45324 }, + { 0x1B30, 45327 }, + { 0x1B31, 45331 }, + { 0x1B22, 45335 }, + { 0x1B23, 45338 }, + { 0x1B1D, 45342 }, + { 0x1B1E, 45346 }, + { 0x1B49, 45351 }, + { 0x1B2F, 45355 }, + { 0x1B2C, 45358 }, + { 0x1B45, 45361 }, + { 0x1B17, 45365 }, + { 0x1B1C, 45368 }, + { 0x1B4A, 45371 }, + { 0x1B46, 45375 }, + { 0x1B47, 45379 }, + { 0x1B05, 45383 }, + { 0x1B06, 45386 }, + { 0x1B0F, 45390 }, + { 0x1B07, 45393 }, + { 0x1B08, 45396 }, + { 0x1B11, 45400 }, + { 0x1B12, 45403 }, + { 0x1B09, 45407 }, + { 0x1B0A, 45410 }, + { 0x1B10, 45414 }, + { 0x1B4B, 45417 }, + { 0x1B5B, 45421 }, + { 0x1B64, 45423 }, + { 0x1B6A, 45427 }, + { 0x1B65, 45432 }, + { 0x1B62, 45437 }, + { 0x1B66, 45441 }, + { 0x1B61, 45445 }, + { 0x1B63, 45449 }, + { 0x1B67, 45453 }, + { 0x1B69, 45457 }, + { 0x1B68, 45461 }, + { 0x1B73, 45465 }, + { 0x1B72, 45470 }, + { 0x1B6C, 45475 }, + { 0x1B6B, 45480 }, + { 0x1B6E, 45485 }, + { 0x1B71, 45490 }, + { 0x1B6D, 45497 }, + { 0x1B70, 45502 }, + { 0x1B6F, 45509 }, + { 0x1B78, 45514 }, + { 0x1B7C, 45520 }, + { 0x1B79, 45526 }, + { 0x1B7A, 45532 }, + { 0x1B7B, 45538 }, + { 0x1B75, 45544 }, + { 0x1B74, 45550 }, + { 0x1B77, 45556 }, + { 0x1B76, 45562 }, + { 0x1B60, 45568 }, + { 0x31B7, 45570 }, + { 0x31B6, 45574 }, + { 0x31B4, 45578 }, + { 0x31B5, 45582 }, + { 0x311A, 45586 }, + { 0x3105, 45589 }, + { 0x3118, 45592 }, + { 0x3109, 45595 }, + { 0x311C, 45598 }, + { 0x3108, 45601 }, + { 0x310D, 45604 }, + { 0x310F, 45607 }, + { 0x3127, 45610 }, + { 0x3110, 45613 }, + { 0x310E, 45616 }, + { 0x310C, 45619 }, + { 0x3107, 45622 }, + { 0x310B, 45625 }, + { 0x311B, 45628 }, + { 0x3106, 45631 }, + { 0x3111, 45634 }, + { 0x3116, 45637 }, + { 0x3119, 45640 }, + { 0x310A, 45643 }, + { 0x3128, 45646 }, + { 0x312A, 45649 }, + { 0x3112, 45652 }, + { 0x3117, 45655 }, + { 0x311E, 45658 }, + { 0x31B0, 45661 }, + { 0x3122, 45664 }, + { 0x3120, 45667 }, + { 0x31A0, 45670 }, + { 0x3114, 45673 }, + { 0x31A4, 45676 }, + { 0x311D, 45679 }, + { 0x311F, 45682 }, + { 0x3123, 45685 }, + { 0x3126, 45688 }, + { 0x312C, 45691 }, + { 0x31A3, 45694 }, + { 0x312D, 45697 }, + { 0x31AC, 45700 }, + { 0x31A8, 45703 }, + { 0x3129, 45706 }, + { 0x31A2, 45709 }, + { 0x312B, 45712 }, + { 0x31B1, 45715 }, + { 0x31A6, 45718 }, + { 0x3121, 45721 }, + { 0x3115, 45724 }, + { 0x3113, 45727 }, + { 0x31A1, 45730 }, + { 0x3124, 45733 }, + { 0x31A9, 45736 }, + { 0x3125, 45739 }, + { 0x31A5, 45742 }, + { 0x31AA, 45745 }, + { 0x31AD, 45748 }, + { 0x31B2, 45751 }, + { 0x31A7, 45754 }, + { 0x31AB, 45757 }, + { 0x31AE, 45760 }, + { 0x31AF, 45763 }, + { 0x31B3, 45766 }, + { 0x1A1F, 45769 }, + { 0x1A19, 45773 }, + { 0x1A17, 45777 }, + { 0x1A1A, 45781 }, + { 0x1A18, 45785 }, + { 0x1A1B, 45789 }, + { 0x1A15, 45793 }, + { 0x1A05, 45796 }, + { 0x1A0C, 45799 }, + { 0x1A09, 45802 }, + { 0x1A01, 45805 }, + { 0x1A16, 45808 }, + { 0x1A0D, 45811 }, + { 0x1A00, 45814 }, + { 0x1A12, 45817 }, + { 0x1A06, 45820 }, + { 0x1A0A, 45823 }, + { 0x1A04, 45826 }, + { 0x1A11, 45829 }, + { 0x1A14, 45832 }, + { 0x1A08, 45835 }, + { 0x1A13, 45838 }, + { 0x1A10, 45841 }, + { 0x1A07, 45844 }, + { 0x1A02, 45847 }, + { 0x1A0B, 45850 }, + { 0x1A0E, 45853 }, + { 0x1A03, 45856 }, + { 0x1A0F, 45859 }, + { 0x1A1E, 45862 }, + { 0x25CE, 45864 }, + { 0x2624, 45865 }, + { 0x140A, 45866 }, + { 0x14A1, 45869 }, + { 0x1401, 45872 }, + { 0x155D, 45875 }, + { 0x1403, 45878 }, + { 0x1483, 45881 }, + { 0x14EA, 45884 }, + { 0x14BB, 45887 }, + { 0x14D0, 45890 }, + { 0x1405, 45893 }, + { 0x1449, 45896 }, + { 0x1585, 45899 }, + { 0x1550, 45902 }, + { 0x1505, 45905 }, + { 0x1466, 45908 }, + { 0x153E, 45911 }, + { 0x140B, 45914 }, + { 0x141C, 45917 }, + { 0x142E, 45920 }, + { 0x1490, 45923 }, + { 0x1489, 45926 }, + { 0x148B, 45929 }, + { 0x148D, 45932 }, + { 0x142B, 45935 }, + { 0x1559, 45938 }, + { 0x1553, 45941 }, + { 0x1555, 45944 }, + { 0x1557, 45947 }, + { 0x157D, 45950 }, + { 0x1404, 45953 }, + { 0x142C, 45956 }, + { 0x1472, 45959 }, + { 0x146B, 45962 }, + { 0x146D, 45965 }, + { 0x146F, 45968 }, + { 0x1484, 45971 }, + { 0x14DA, 45974 }, + { 0x14D3, 45977 }, + { 0x15A6, 45980 }, + { 0x14D5, 45983 }, + { 0x14D7, 45986 }, + { 0x14AA, 45989 }, + { 0x14A3, 45992 }, + { 0x14BD, 45995 }, + { 0x14A5, 45998 }, + { 0x14A7, 46001 }, + { 0x14C7, 46004 }, + { 0x14C0, 46007 }, + { 0x1595, 46010 }, + { 0x14D2, 46013 }, + { 0x14C2, 46016 }, + { 0x14C4, 46019 }, + { 0x142D, 46022 }, + { 0x1406, 46025 }, + { 0x1438, 46028 }, + { 0x142F, 46031 }, + { 0x1431, 46034 }, + { 0x1433, 46037 }, + { 0x1583, 46040 }, + { 0x157F, 46043 }, + { 0x1581, 46046 }, + { 0x154B, 46049 }, + { 0x1542, 46052 }, + { 0x1546, 46055 }, + { 0x1548, 46058 }, + { 0x14F4, 46061 }, + { 0x14ED, 46064 }, + { 0x1525, 46067 }, + { 0x14EF, 46070 }, + { 0x14F1, 46073 }, + { 0x1507, 46076 }, + { 0x1455, 46079 }, + { 0x144C, 46082 }, + { 0x156A, 46085 }, + { 0x144E, 46088 }, + { 0x1450, 46091 }, + { 0x1417, 46094 }, + { 0x140C, 46097 }, + { 0x140E, 46100 }, + { 0x1412, 46103 }, + { 0x152D, 46106 }, + { 0x1526, 46109 }, + { 0x1528, 46112 }, + { 0x152A, 46115 }, + { 0x1402, 46118 }, + { 0x1491, 46121 }, + { 0x166D, 46124 }, + { 0x148C, 46128 }, + { 0x148E, 46131 }, + { 0x149C, 46134 }, + { 0x1492, 46137 }, + { 0x1494, 46140 }, + { 0x1498, 46143 }, + { 0x155A, 46146 }, + { 0x1556, 46149 }, + { 0x1558, 46152 }, + { 0x1473, 46155 }, + { 0x146E, 46158 }, + { 0x1470, 46161 }, + { 0x147E, 46164 }, + { 0x1474, 46167 }, + { 0x1476, 46170 }, + { 0x147A, 46173 }, + { 0x14DB, 46176 }, + { 0x15A4, 46179 }, + { 0x15A0, 46182 }, + { 0x15A2, 46185 }, + { 0x14D6, 46188 }, + { 0x14D8, 46191 }, + { 0x14E6, 46194 }, + { 0x14DC, 46197 }, + { 0x14DE, 46200 }, + { 0x14E2, 46203 }, + { 0x14AB, 46206 }, + { 0x14A6, 46209 }, + { 0x14A8, 46212 }, + { 0x14B6, 46215 }, + { 0x14AC, 46218 }, + { 0x14AE, 46221 }, + { 0x14B2, 46224 }, + { 0x14C8, 46227 }, + { 0x1593, 46230 }, + { 0x158F, 46233 }, + { 0x1591, 46236 }, + { 0x14C3, 46239 }, + { 0x1596, 46242 }, + { 0x14C5, 46245 }, + { 0x14CB, 46248 }, + { 0x14C9, 46251 }, + { 0x1439, 46254 }, + { 0x1432, 46257 }, + { 0x1434, 46260 }, + { 0x1444, 46263 }, + { 0x143A, 46266 }, + { 0x143C, 46269 }, + { 0x1440, 46272 }, + { 0x1584, 46275 }, + { 0x166F, 46278 }, + { 0x1580, 46281 }, + { 0x1582, 46284 }, + { 0x154C, 46287 }, + { 0x1547, 46290 }, + { 0x1549, 46293 }, + { 0x14F5, 46296 }, + { 0x1515, 46299 }, + { 0x1510, 46302 }, + { 0x1511, 46305 }, + { 0x1513, 46308 }, + { 0x14F0, 46311 }, + { 0x14F2, 46314 }, + { 0x1500, 46317 }, + { 0x14F6, 46320 }, + { 0x14F8, 46323 }, + { 0x14FC, 46326 }, + { 0x1456, 46329 }, + { 0x1566, 46332 }, + { 0x155E, 46335 }, + { 0x1560, 46338 }, + { 0x1564, 46341 }, + { 0x144F, 46344 }, + { 0x1451, 46347 }, + { 0x146A, 46350 }, + { 0x1467, 46353 }, + { 0x156F, 46356 }, + { 0x1468, 46359 }, + { 0x1469, 46362 }, + { 0x1461, 46365 }, + { 0x1457, 46368 }, + { 0x1459, 46371 }, + { 0x145D, 46374 }, + { 0x1573, 46377 }, + { 0x1570, 46380 }, + { 0x1571, 46383 }, + { 0x1572, 46386 }, + { 0x1419, 46389 }, + { 0x1410, 46392 }, + { 0x1414, 46395 }, + { 0x152E, 46398 }, + { 0x1529, 46401 }, + { 0x152B, 46404 }, + { 0x1539, 46407 }, + { 0x152F, 46410 }, + { 0x1531, 46413 }, + { 0x1535, 46416 }, + { 0x148A, 46419 }, + { 0x149E, 46422 }, + { 0x1496, 46425 }, + { 0x149A, 46428 }, + { 0x1554, 46431 }, + { 0x166E, 46434 }, + { 0x155B, 46438 }, + { 0x146C, 46441 }, + { 0x1480, 46444 }, + { 0x1478, 46447 }, + { 0x147C, 46450 }, + { 0x14D4, 46453 }, + { 0x15A5, 46456 }, + { 0x15A1, 46459 }, + { 0x15A3, 46462 }, + { 0x14E8, 46465 }, + { 0x14E0, 46468 }, + { 0x14E4, 46471 }, + { 0x14A4, 46474 }, + { 0x14B8, 46477 }, + { 0x14B0, 46480 }, + { 0x14B4, 46483 }, + { 0x14C1, 46486 }, + { 0x1594, 46489 }, + { 0x1670, 46492 }, + { 0x1590, 46495 }, + { 0x1592, 46498 }, + { 0x1675, 46501 }, + { 0x1671, 46504 }, + { 0x1673, 46507 }, + { 0x14CD, 46510 }, + { 0x1430, 46513 }, + { 0x1446, 46516 }, + { 0x143E, 46519 }, + { 0x1442, 46522 }, + { 0x157E, 46525 }, + { 0x1545, 46528 }, + { 0x154E, 46531 }, + { 0x14EE, 46534 }, + { 0x1516, 46537 }, + { 0x1512, 46540 }, + { 0x1514, 46543 }, + { 0x1521, 46546 }, + { 0x1517, 46549 }, + { 0x1519, 46552 }, + { 0x151D, 46555 }, + { 0x1502, 46558 }, + { 0x14FA, 46561 }, + { 0x14FE, 46564 }, + { 0x144D, 46567 }, + { 0x1567, 46570 }, + { 0x1562, 46573 }, + { 0x1565, 46576 }, + { 0x1589, 46579 }, + { 0x1586, 46582 }, + { 0x1587, 46585 }, + { 0x1588, 46588 }, + { 0x156E, 46591 }, + { 0x156B, 46594 }, + { 0x156C, 46597 }, + { 0x156D, 46600 }, + { 0x1463, 46603 }, + { 0x145B, 46606 }, + { 0x145F, 46609 }, + { 0x1527, 46612 }, + { 0x153B, 46615 }, + { 0x1533, 46618 }, + { 0x1537, 46621 }, + { 0x1422, 46624 }, + { 0x142A, 46630 }, + { 0x1429, 46635 }, + { 0x1424, 46639 }, + { 0x141F, 46643 }, + { 0x1420, 46647 }, + { 0x1423, 46651 }, + { 0x1428, 46657 }, + { 0x1421, 46663 }, + { 0x1425, 46669 }, + { 0x1426, 46674 }, + { 0x1427, 46681 }, + { 0x158E, 46686 }, + { 0x1676, 46689 }, + { 0x1672, 46692 }, + { 0x1674, 46695 }, + { 0x1523, 46698 }, + { 0x151B, 46701 }, + { 0x151F, 46704 }, + { 0x1568, 46707 }, + { 0x14EC, 46710 }, + { 0x1552, 46714 }, + { 0x155F, 46718 }, + { 0x1561, 46722 }, + { 0x1563, 46726 }, + { 0x1543, 46730 }, + { 0x14BF, 46734 }, + { 0x15C3, 46738 }, + { 0x15C0, 46742 }, + { 0x15C1, 46746 }, + { 0x15C2, 46750 }, + { 0x161A, 46754 }, + { 0x1615, 46758 }, + { 0x14A2, 46762 }, + { 0x1541, 46766 }, + { 0x159A, 46770 }, + { 0x1597, 46774 }, + { 0x1598, 46778 }, + { 0x1599, 46782 }, + { 0x141D, 46786 }, + { 0x1407, 46790 }, + { 0x148F, 46794 }, + { 0x1471, 46798 }, + { 0x14D9, 46802 }, + { 0x14A9, 46806 }, + { 0x14C6, 46810 }, + { 0x1435, 46814 }, + { 0x14F3, 46818 }, + { 0x1452, 46822 }, + { 0x152C, 46826 }, + { 0x1448, 46830 }, + { 0x15AF, 46834 }, + { 0x144B, 46838 }, + { 0x1409, 46842 }, + { 0x15EE, 46846 }, + { 0x1646, 46850 }, + { 0x1454, 46854 }, + { 0x1408, 46858 }, + { 0x15F4, 46862 }, + { 0x15F1, 46866 }, + { 0x15F3, 46870 }, + { 0x15F0, 46874 }, + { 0x15EF, 46878 }, + { 0x1437, 46882 }, + { 0x161B, 46886 }, + { 0x1617, 46890 }, + { 0x1619, 46894 }, + { 0x1616, 46898 }, + { 0x1614, 46902 }, + { 0x1601, 46906 }, + { 0x1627, 46910 }, + { 0x1624, 46914 }, + { 0x1626, 46918 }, + { 0x1623, 46922 }, + { 0x1622, 46926 }, + { 0x160D, 46930 }, + { 0x160A, 46934 }, + { 0x160C, 46938 }, + { 0x1609, 46942 }, + { 0x1608, 46946 }, + { 0x1607, 46950 }, + { 0x1604, 46954 }, + { 0x14D1, 46958 }, + { 0x1606, 46962 }, + { 0x1603, 46966 }, + { 0x1602, 46970 }, + { 0x15ED, 46974 }, + { 0x15EA, 46978 }, + { 0x15EC, 46982 }, + { 0x15E9, 46986 }, + { 0x15E8, 46990 }, + { 0x15CF, 46994 }, + { 0x15CC, 46998 }, + { 0x15CE, 47002 }, + { 0x15CB, 47006 }, + { 0x15CA, 47010 }, + { 0x1653, 47014 }, + { 0x1650, 47018 }, + { 0x165A, 47022 }, + { 0x1652, 47026 }, + { 0x164F, 47030 }, + { 0x164E, 47034 }, + { 0x15D5, 47038 }, + { 0x15D2, 47042 }, + { 0x15D4, 47046 }, + { 0x15D1, 47050 }, + { 0x15D0, 47054 }, + { 0x1613, 47058 }, + { 0x1610, 47062 }, + { 0x1612, 47066 }, + { 0x160F, 47070 }, + { 0x160E, 47074 }, + { 0x1645, 47078 }, + { 0x1642, 47082 }, + { 0x1644, 47086 }, + { 0x1641, 47090 }, + { 0x1640, 47094 }, + { 0x1666, 47098 }, + { 0x1663, 47102 }, + { 0x1665, 47106 }, + { 0x1662, 47110 }, + { 0x1661, 47114 }, + { 0x1453, 47118 }, + { 0x162D, 47122 }, + { 0x162A, 47126 }, + { 0x162C, 47130 }, + { 0x1629, 47134 }, + { 0x1628, 47138 }, + { 0x164D, 47142 }, + { 0x164A, 47146 }, + { 0x164C, 47150 }, + { 0x1649, 47154 }, + { 0x1648, 47158 }, + { 0x15F2, 47162 }, + { 0x15C9, 47166 }, + { 0x15C6, 47170 }, + { 0x15C8, 47174 }, + { 0x15C5, 47178 }, + { 0x15C4, 47182 }, + { 0x1436, 47186 }, + { 0x15DB, 47190 }, + { 0x15D8, 47194 }, + { 0x15DA, 47198 }, + { 0x15D7, 47202 }, + { 0x15D6, 47206 }, + { 0x1618, 47210 }, + { 0x1621, 47214 }, + { 0x161E, 47218 }, + { 0x1620, 47222 }, + { 0x161D, 47226 }, + { 0x161C, 47230 }, + { 0x15FA, 47234 }, + { 0x15F7, 47238 }, + { 0x15F9, 47242 }, + { 0x15F6, 47246 }, + { 0x15F5, 47250 }, + { 0x1600, 47254 }, + { 0x15FD, 47258 }, + { 0x15FF, 47262 }, + { 0x15FC, 47266 }, + { 0x15FB, 47270 }, + { 0x1625, 47274 }, + { 0x1633, 47278 }, + { 0x1630, 47282 }, + { 0x1632, 47286 }, + { 0x162F, 47290 }, + { 0x162E, 47294 }, + { 0x160B, 47298 }, + { 0x1605, 47302 }, + { 0x15EB, 47306 }, + { 0x15CD, 47310 }, + { 0x1651, 47314 }, + { 0x1659, 47318 }, + { 0x1656, 47322 }, + { 0x1658, 47326 }, + { 0x1655, 47330 }, + { 0x1654, 47334 }, + { 0x15E1, 47338 }, + { 0x15DE, 47342 }, + { 0x15E0, 47346 }, + { 0x15DD, 47350 }, + { 0x15DC, 47354 }, + { 0x163F, 47358 }, + { 0x163C, 47362 }, + { 0x163E, 47366 }, + { 0x163B, 47370 }, + { 0x163A, 47374 }, + { 0x1660, 47378 }, + { 0x165D, 47382 }, + { 0x165F, 47386 }, + { 0x165C, 47390 }, + { 0x165B, 47394 }, + { 0x15E7, 47398 }, + { 0x15E4, 47402 }, + { 0x15E6, 47406 }, + { 0x15E3, 47410 }, + { 0x15E2, 47414 }, + { 0x15D3, 47418 }, + { 0x1611, 47422 }, + { 0x1643, 47426 }, + { 0x1664, 47430 }, + { 0x162B, 47434 }, + { 0x164B, 47438 }, + { 0x15C7, 47442 }, + { 0x15D9, 47446 }, + { 0x161F, 47450 }, + { 0x15F8, 47454 }, + { 0x15FE, 47458 }, + { 0x1631, 47462 }, + { 0x1657, 47466 }, + { 0x15DF, 47470 }, + { 0x163D, 47474 }, + { 0x1639, 47478 }, + { 0x1636, 47482 }, + { 0x1638, 47486 }, + { 0x1635, 47490 }, + { 0x1634, 47494 }, + { 0x165E, 47498 }, + { 0x15E5, 47502 }, + { 0x166C, 47506 }, + { 0x1669, 47510 }, + { 0x166B, 47514 }, + { 0x1668, 47518 }, + { 0x1667, 47522 }, + { 0x1637, 47526 }, + { 0x166A, 47530 }, + { 0x1647, 47534 }, + { 0x141E, 47539 }, + { 0x150B, 47543 }, + { 0x150A, 47547 }, + { 0x141B, 47551 }, + { 0x1416, 47555 }, + { 0x14A0, 47559 }, + { 0x1482, 47563 }, + { 0x14BA, 47567 }, + { 0x14CF, 47571 }, + { 0x150F, 47575 }, + { 0x150E, 47579 }, + { 0x150C, 47583 }, + { 0x150D, 47587 }, + { 0x1504, 47591 }, + { 0x1465, 47595 }, + { 0x153D, 47599 }, + { 0x157B, 47603 }, + { 0x1579, 47607 }, + { 0x1574, 47611 }, + { 0x1575, 47615 }, + { 0x1577, 47619 }, + { 0x157A, 47623 }, + { 0x1576, 47627 }, + { 0x1578, 47631 }, + { 0x157C, 47635 }, + { 0x15AE, 47639 }, + { 0x15AC, 47643 }, + { 0x15A7, 47647 }, + { 0x15A8, 47651 }, + { 0x15AA, 47655 }, + { 0x15AD, 47659 }, + { 0x15A9, 47663 }, + { 0x15AB, 47667 }, + { 0x15B3, 47671 }, + { 0x15B0, 47675 }, + { 0x15B1, 47679 }, + { 0x15B2, 47683 }, + { 0x1508, 47687 }, + { 0x15BF, 47691 }, + { 0x15BC, 47695 }, + { 0x15BD, 47699 }, + { 0x15BE, 47703 }, + { 0x15BB, 47707 }, + { 0x15B8, 47711 }, + { 0x15B9, 47715 }, + { 0x15BA, 47719 }, + { 0x15B7, 47723 }, + { 0x15B4, 47727 }, + { 0x15B5, 47731 }, + { 0x15B6, 47735 }, + { 0x14EB, 47739 }, + { 0x14BC, 47743 }, + { 0x144A, 47747 }, + { 0x1551, 47751 }, + { 0x1540, 47755 }, + { 0x154D, 47759 }, + { 0x1544, 47763 }, + { 0x154A, 47767 }, + { 0x158D, 47771 }, + { 0x158A, 47775 }, + { 0x158B, 47779 }, + { 0x158C, 47783 }, + { 0x1418, 47787 }, + { 0x140D, 47791 }, + { 0x140F, 47795 }, + { 0x1413, 47799 }, + { 0x149D, 47803 }, + { 0x1493, 47807 }, + { 0x1495, 47811 }, + { 0x1499, 47815 }, + { 0x147F, 47819 }, + { 0x1475, 47823 }, + { 0x1477, 47827 }, + { 0x147B, 47831 }, + { 0x14E7, 47835 }, + { 0x14DD, 47839 }, + { 0x14DF, 47843 }, + { 0x14E3, 47847 }, + { 0x14B7, 47851 }, + { 0x14AD, 47855 }, + { 0x14AF, 47859 }, + { 0x14B3, 47863 }, + { 0x14CC, 47867 }, + { 0x14CA, 47871 }, + { 0x1445, 47875 }, + { 0x143B, 47879 }, + { 0x143D, 47883 }, + { 0x1441, 47887 }, + { 0x1501, 47891 }, + { 0x14F7, 47895 }, + { 0x14F9, 47899 }, + { 0x14FD, 47903 }, + { 0x1462, 47907 }, + { 0x1458, 47911 }, + { 0x145A, 47915 }, + { 0x145E, 47919 }, + { 0x141A, 47923 }, + { 0x1411, 47927 }, + { 0x1415, 47931 }, + { 0x153A, 47935 }, + { 0x1530, 47939 }, + { 0x1532, 47943 }, + { 0x1536, 47947 }, + { 0x149F, 47951 }, + { 0x1497, 47955 }, + { 0x149B, 47959 }, + { 0x155C, 47963 }, + { 0x1481, 47967 }, + { 0x1479, 47971 }, + { 0x147D, 47975 }, + { 0x14E9, 47979 }, + { 0x14E1, 47983 }, + { 0x14E5, 47987 }, + { 0x14B9, 47991 }, + { 0x14B1, 47995 }, + { 0x14B5, 47999 }, + { 0x14CE, 48003 }, + { 0x1447, 48007 }, + { 0x143F, 48011 }, + { 0x1443, 48015 }, + { 0x154F, 48019 }, + { 0x1522, 48023 }, + { 0x1518, 48027 }, + { 0x151A, 48031 }, + { 0x151E, 48035 }, + { 0x1503, 48039 }, + { 0x14FB, 48043 }, + { 0x14FF, 48047 }, + { 0x1464, 48051 }, + { 0x145C, 48055 }, + { 0x1460, 48059 }, + { 0x153C, 48063 }, + { 0x1534, 48067 }, + { 0x1538, 48071 }, + { 0x1524, 48075 }, + { 0x151C, 48079 }, + { 0x1520, 48083 }, + { 0x1569, 48087 }, + { 0x14BE, 48091 }, + { 0x1506, 48095 }, + { 0x153F, 48099 }, + { 0x1509, 48103 }, + { 0x159F, 48107 }, + { 0x159E, 48111 }, + { 0x159B, 48115 }, + { 0x159C, 48119 }, + { 0x159D, 48123 }, + { 0x1488, 48127 }, + { 0x1485, 48131 }, + { 0x1486, 48135 }, + { 0x1487, 48139 }, + { 0x13A0, 48143 }, + { 0x13A1, 48146 }, + { 0x13A2, 48149 }, + { 0x13A3, 48152 }, + { 0x13CD, 48155 }, + { 0x13A4, 48158 }, + { 0x13A5, 48161 }, + { 0x13D3, 48164 }, + { 0x13D5, 48167 }, + { 0x13D7, 48170 }, + { 0x13D9, 48173 }, + { 0x13DA, 48176 }, + { 0x13DB, 48179 }, + { 0x13A6, 48182 }, + { 0x13A8, 48185 }, + { 0x13A9, 48188 }, + { 0x13AA, 48191 }, + { 0x13AB, 48194 }, + { 0x13AC, 48197 }, + { 0x13AD, 48200 }, + { 0x13AE, 48203 }, + { 0x13AF, 48206 }, + { 0x13B0, 48209 }, + { 0x13B1, 48212 }, + { 0x13B2, 48215 }, + { 0x13A7, 48218 }, + { 0x13B3, 48221 }, + { 0x13B4, 48224 }, + { 0x13B5, 48227 }, + { 0x13B6, 48230 }, + { 0x13B7, 48233 }, + { 0x13B8, 48236 }, + { 0x13B9, 48239 }, + { 0x13BA, 48242 }, + { 0x13BB, 48245 }, + { 0x13BC, 48248 }, + { 0x13BD, 48251 }, + { 0x13BE, 48254 }, + { 0x13C1, 48257 }, + { 0x13C2, 48260 }, + { 0x13C3, 48263 }, + { 0x13C4, 48266 }, + { 0x13C5, 48269 }, + { 0x13CC, 48272 }, + { 0x13CE, 48275 }, + { 0x13CF, 48278 }, + { 0x13D0, 48281 }, + { 0x13D1, 48284 }, + { 0x13D2, 48287 }, + { 0x13D4, 48290 }, + { 0x13D6, 48293 }, + { 0x13D8, 48296 }, + { 0x13E9, 48299 }, + { 0x13EA, 48302 }, + { 0x13EB, 48305 }, + { 0x13EC, 48308 }, + { 0x13ED, 48311 }, + { 0x13EE, 48314 }, + { 0x13EF, 48317 }, + { 0x13F0, 48320 }, + { 0x13F1, 48323 }, + { 0x13F2, 48326 }, + { 0x13F3, 48329 }, + { 0x13F4, 48332 }, + { 0x13DC, 48335 }, + { 0x13BF, 48338 }, + { 0x13C0, 48341 }, + { 0x13C6, 48344 }, + { 0x13C7, 48347 }, + { 0x13C8, 48350 }, + { 0x13C9, 48353 }, + { 0x13CA, 48356 }, + { 0x13CB, 48359 }, + { 0x13DD, 48362 }, + { 0x13DE, 48365 }, + { 0x13DF, 48368 }, + { 0x13E0, 48371 }, + { 0x13E1, 48374 }, + { 0x13E2, 48377 }, + { 0x13E3, 48380 }, + { 0x13E4, 48383 }, + { 0x13E5, 48386 }, + { 0x13E6, 48389 }, + { 0x13E7, 48392 }, + { 0x13E8, 48395 }, + { 0x220B, 48398 }, + { 0x22B3, 48401 }, + { 0x22B5, 48405 }, + { 0x22FA, 48412 }, + { 0x22FD, 48417 }, + { 0x22FB, 48420 }, + { 0x9369, 48429 }, + { 0x936E, 48434 }, + { 0x936A, 48439 }, + { 0x936D, 48444 }, + { 0x936C, 48449 }, + { 0x9371, 48454 }, + { 0x9370, 48459 }, + { 0x936F, 48464 }, + { 0x936B, 48469 }, + { 0x9360, 48474 }, + { 0x9365, 48479 }, + { 0x9361, 48484 }, + { 0x9364, 48489 }, + { 0x9363, 48494 }, + { 0x9368, 48499 }, + { 0x9367, 48504 }, + { 0x9366, 48509 }, + { 0x9362, 48514 }, + { 0x20A2, 48519 }, + { 0x00A4, 48521 }, + { 0x0430, 48523 }, + { 0x04D1, 48527 }, + { 0x04D3, 48533 }, + { 0x044D, 48539 }, + { 0x04ED, 48543 }, + { 0x0438, 48549 }, + { 0x045D, 48553 }, + { 0x04E3, 48559 }, + { 0x04E5, 48565 }, + { 0x043E, 48571 }, + { 0x04E7, 48575 }, + { 0x0443, 48581 }, + { 0x04F3, 48585 }, + { 0x04EF, 48592 }, + { 0x04F1, 48598 }, + { 0x0431, 48604 }, + { 0x0434, 48608 }, + { 0x0444, 48612 }, + { 0x043B, 48616 }, + { 0x0513, 48620 }, + { 0x04C6, 48626 }, + { 0x0521, 48632 }, + { 0x043C, 48639 }, + { 0x04CE, 48643 }, + { 0x043D, 48649 }, + { 0x04C8, 48653 }, + { 0x04CA, 48659 }, + { 0x0523, 48665 }, + { 0x04A3, 48672 }, + { 0x0440, 48678 }, + { 0x048F, 48682 }, + { 0x0441, 48688 }, + { 0x04AB, 48692 }, + { 0x0445, 48698 }, + { 0x04FD, 48702 }, + { 0x04FF, 48708 }, + { 0x04B3, 48714 }, + { 0x0435, 48720 }, + { 0x04D7, 48724 }, + { 0x0450, 48730 }, + { 0x0451, 48736 }, + { 0x0458, 48740 }, + { 0x043A, 48744 }, + { 0x04C4, 48748 }, + { 0x049F, 48754 }, + { 0x049D, 48760 }, + { 0x049B, 48767 }, + { 0x047F, 48773 }, + { 0x043F, 48777 }, + { 0x04A7, 48781 }, + { 0x051B, 48788 }, + { 0x0442, 48792 }, + { 0x568B, 48796 }, + { 0x04AD, 48803 }, + { 0x0479, 48809 }, + { 0x0432, 48813 }, + { 0x051D, 48817 }, + { 0x044F, 48821 }, + { 0x0457, 48825 }, + { 0x565F, 48829 }, + { 0x044E, 48833 }, + { 0x0437, 48837 }, + { 0x0499, 48841 }, + { 0x04DF, 48847 }, + { 0x046B, 48853 }, + { 0x0447, 48858 }, + { 0x04B9, 48862 }, + { 0x04B7, 48869 }, + { 0x04F5, 48875 }, + { 0x0452, 48881 }, + { 0x5681, 48885 }, + { 0x0455, 48889 }, + { 0x0433, 48893 }, + { 0x0495, 48897 }, + { 0x0493, 48904 }, + { 0x04FB, 48910 }, + { 0x0491, 48918 }, + { 0x04F7, 48924 }, + { 0x0453, 48930 }, + { 0x5695, 48934 }, + { 0x045C, 48938 }, + { 0x046F, 48942 }, + { 0x0515, 48946 }, + { 0x0459, 48950 }, + { 0x045A, 48954 }, + { 0x0471, 48958 }, + { 0x0517, 48962 }, + { 0x0448, 48966 }, + { 0x0446, 48970 }, + { 0x568D, 48974 }, + { 0x0519, 48978 }, + { 0x0463, 48982 }, + { 0x0436, 48986 }, + { 0x04C2, 48990 }, + { 0x0497, 48996 }, + { 0x04DD, 49002 }, + { 0x5687, 49008 }, + { 0x045F, 49012 }, + { 0x5683, 49016 }, + { 0x5689, 49020 }, + { 0x0473, 49024 }, + { 0x044A, 49028 }, + { 0x5647, 49033 }, + { 0x0501, 49037 }, + { 0x0503, 49042 }, + { 0x0509, 49047 }, + { 0x050B, 49052 }, + { 0x050D, 49057 }, + { 0x050F, 49062 }, + { 0x0505, 49067 }, + { 0x0507, 49072 }, + { 0x04BB, 49077 }, + { 0x5697, 49081 }, + { 0x5663, 49085 }, + { 0x5665, 49090 }, + { 0x5667, 49095 }, + { 0x044C, 49100 }, + { 0x5693, 49105 }, + { 0x045B, 49109 }, + { 0x5691, 49113 }, + { 0x568F, 49117 }, + { 0x044B, 49121 }, + { 0x5651, 49125 }, + { 0x04F9, 49132 }, + { 0x5685, 49138 }, + { 0x051F, 49142 }, + { 0x564D, 49147 }, + { 0x5649, 49152 }, + { 0x5643, 49156 }, + { 0x0481, 49160 }, + { 0x0461, 49164 }, + { 0x047D, 49168 }, + { 0x047B, 49174 }, + { 0x04D9, 49179 }, + { 0x04DB, 49183 }, + { 0x0449, 49189 }, + { 0x0439, 49193 }, + { 0x048B, 49198 }, + { 0x045E, 49205 }, + { 0x04E9, 49210 }, + { 0x04EB, 49215 }, + { 0x5659, 49222 }, + { 0x566D, 49228 }, + { 0x0467, 49234 }, + { 0x5641, 49239 }, + { 0x04A1, 49243 }, + { 0x565B, 49248 }, + { 0x0475, 49253 }, + { 0x0477, 49257 }, + { 0x564F, 49265 }, + { 0x5657, 49270 }, + { 0x0465, 49275 }, + { 0x046D, 49280 }, + { 0x5653, 49286 }, + { 0x565D, 49291 }, + { 0x0469, 49298 }, + { 0x04CF, 49304 }, + { 0x5655, 49308 }, + { 0x0511, 49313 }, + { 0x5645, 49318 }, + { 0x048D, 49323 }, + { 0x04AF, 49328 }, + { 0x04B1, 49333 }, + { 0x04A9, 49340 }, + { 0x04BD, 49345 }, + { 0x04BF, 49350 }, + { 0x04E1, 49357 }, + { 0x566B, 49362 }, + { 0x5669, 49367 }, + { 0x564B, 49372 }, + { 0x0454, 49377 }, + { 0x04CC, 49382 }, + { 0x0456, 49387 }, + { 0x04D5, 49392 }, + { 0x04A5, 49397 }, + { 0x04B5, 49402 }, + { 0x567E, 49407 }, + { 0x1D2B, 49409 }, + { 0x04C0, 49414 }, + { 0x566E, 49417 }, + { 0x0410, 49421 }, + { 0x04D0, 49425 }, + { 0x04D2, 49431 }, + { 0x042D, 49437 }, + { 0x04EC, 49441 }, + { 0x0418, 49447 }, + { 0x040D, 49451 }, + { 0x04E2, 49457 }, + { 0x04E4, 49463 }, + { 0x041E, 49469 }, + { 0x04E6, 49473 }, + { 0x0423, 49479 }, + { 0x04F2, 49483 }, + { 0x04EE, 49490 }, + { 0x04F0, 49496 }, + { 0x0411, 49502 }, + { 0x0414, 49506 }, + { 0x0424, 49510 }, + { 0x041B, 49514 }, + { 0x0512, 49518 }, + { 0x04C5, 49524 }, + { 0x0520, 49530 }, + { 0x041C, 49537 }, + { 0x04CD, 49541 }, + { 0x041D, 49547 }, + { 0x04C7, 49551 }, + { 0x04C9, 49557 }, + { 0x0522, 49563 }, + { 0x04A2, 49570 }, + { 0x0420, 49576 }, + { 0x048E, 49580 }, + { 0x0421, 49586 }, + { 0x04AA, 49590 }, + { 0x0425, 49596 }, + { 0x04FC, 49600 }, + { 0x04FE, 49606 }, + { 0x04B2, 49612 }, + { 0x0415, 49618 }, + { 0x04D6, 49622 }, + { 0x0400, 49628 }, + { 0x0401, 49634 }, + { 0x0408, 49638 }, + { 0x041A, 49642 }, + { 0x04C3, 49646 }, + { 0x049E, 49652 }, + { 0x049C, 49658 }, + { 0x049A, 49665 }, + { 0x047E, 49671 }, + { 0x041F, 49675 }, + { 0x04A6, 49679 }, + { 0x051A, 49686 }, + { 0x0422, 49690 }, + { 0x568A, 49694 }, + { 0x04AC, 49701 }, + { 0x0478, 49707 }, + { 0x0412, 49711 }, + { 0x051C, 49715 }, + { 0x042F, 49719 }, + { 0x0407, 49723 }, + { 0x565E, 49727 }, + { 0x042E, 49731 }, + { 0x0417, 49735 }, + { 0x0498, 49739 }, + { 0x04DE, 49745 }, + { 0x046A, 49751 }, + { 0x0427, 49756 }, + { 0x04B8, 49760 }, + { 0x04B6, 49767 }, + { 0x04F4, 49773 }, + { 0x0402, 49779 }, + { 0x5680, 49783 }, + { 0x0405, 49787 }, + { 0x0413, 49791 }, + { 0x0494, 49795 }, + { 0x0492, 49802 }, + { 0x04FA, 49808 }, + { 0x0490, 49816 }, + { 0x04F6, 49822 }, + { 0x0403, 49828 }, + { 0x5694, 49832 }, + { 0x040C, 49836 }, + { 0x046E, 49840 }, + { 0x0514, 49844 }, + { 0x0409, 49848 }, + { 0x040A, 49852 }, + { 0x0470, 49856 }, + { 0x0516, 49860 }, + { 0x0428, 49864 }, + { 0x0426, 49868 }, + { 0x568C, 49872 }, + { 0x0518, 49876 }, + { 0x0462, 49880 }, + { 0x0416, 49884 }, + { 0x04C1, 49888 }, + { 0x0496, 49894 }, + { 0x04DC, 49900 }, + { 0x5686, 49906 }, + { 0x040F, 49910 }, + { 0x5682, 49914 }, + { 0x5688, 49918 }, + { 0x0472, 49922 }, + { 0x042A, 49926 }, + { 0x5646, 49931 }, + { 0x0500, 49935 }, + { 0x0502, 49940 }, + { 0x0508, 49945 }, + { 0x050A, 49950 }, + { 0x050C, 49955 }, + { 0x050E, 49960 }, + { 0x0504, 49965 }, + { 0x0506, 49970 }, + { 0x04BA, 49975 }, + { 0x5696, 49979 }, + { 0x5662, 49983 }, + { 0x5664, 49988 }, + { 0x5666, 49993 }, + { 0x042C, 49998 }, + { 0x5692, 50003 }, + { 0x040B, 50007 }, + { 0x5690, 50011 }, + { 0x568E, 50015 }, + { 0x042B, 50019 }, + { 0x5650, 50023 }, + { 0x04F8, 50030 }, + { 0x5684, 50036 }, + { 0x051E, 50040 }, + { 0x564C, 50045 }, + { 0x5648, 50050 }, + { 0x5642, 50054 }, + { 0x0480, 50058 }, + { 0x0460, 50062 }, + { 0x047C, 50066 }, + { 0x047A, 50072 }, + { 0x04D8, 50077 }, + { 0x04DA, 50081 }, + { 0x0429, 50087 }, + { 0x0419, 50091 }, + { 0x048A, 50096 }, + { 0x040E, 50103 }, + { 0x04E8, 50108 }, + { 0x04EA, 50113 }, + { 0x5658, 50120 }, + { 0x566C, 50126 }, + { 0x0466, 50132 }, + { 0x5640, 50137 }, + { 0x04A0, 50141 }, + { 0x565A, 50146 }, + { 0x0474, 50151 }, + { 0x0476, 50155 }, + { 0x564E, 50163 }, + { 0x5656, 50168 }, + { 0x0464, 50173 }, + { 0x046C, 50178 }, + { 0x5652, 50184 }, + { 0x565C, 50189 }, + { 0x0468, 50196 }, + { 0x5654, 50202 }, + { 0x0510, 50207 }, + { 0x5644, 50212 }, + { 0x048C, 50217 }, + { 0x04AE, 50222 }, + { 0x04B0, 50227 }, + { 0x04A8, 50234 }, + { 0x04BC, 50239 }, + { 0x04BE, 50244 }, + { 0x04E0, 50251 }, + { 0x566A, 50256 }, + { 0x5668, 50261 }, + { 0x564A, 50266 }, + { 0x0404, 50271 }, + { 0x04CB, 50276 }, + { 0x0406, 50281 }, + { 0x04D4, 50286 }, + { 0x04A4, 50291 }, + { 0x04B4, 50296 }, + { 0x567F, 50301 }, + { 0x0482, 50303 }, + { 0x2300, 50306 }, + { 0x00F7, 50308 }, + { 0x2215, 50310 }, + { 0x22C7, 50312 }, + { 0x279B, 50314 }, + { 0x2301, 50318 }, + { 0x2383, 50320 }, + { 0x2709, 50322 }, + { 0x1362, 50323 }, + { 0x1365, 50326 }, + { 0x1363, 50328 }, + { 0x1369, 50330 }, + { 0x136E, 50333 }, + { 0x136A, 50336 }, + { 0x136D, 50339 }, + { 0x136C, 50342 }, + { 0x1371, 50345 }, + { 0x1370, 50348 }, + { 0x136F, 50351 }, + { 0x136B, 50354 }, + { 0x1399, 50357 }, + { 0x1391, 50361 }, + { 0x1394, 50365 }, + { 0x1397, 50369 }, + { 0x1395, 50373 }, + { 0x1393, 50377 }, + { 0x1390, 50382 }, + { 0x1396, 50386 }, + { 0x1392, 50390 }, + { 0x1398, 50394 }, + { 0x1372, 50398 }, + { 0x137C, 50401 }, + { 0x1376, 50405 }, + { 0x1375, 50408 }, + { 0x1377, 50411 }, + { 0x1379, 50414 }, + { 0x137A, 50417 }, + { 0x1374, 50420 }, + { 0x1373, 50423 }, + { 0x137B, 50426 }, + { 0x1378, 50429 }, + { 0x1366, 50432 }, + { 0x1360, 50435 }, + { 0x1367, 50438 }, + { 0x1260, 50441 }, + { 0x1265, 50444 }, + { 0x1262, 50447 }, + { 0x1266, 50450 }, + { 0x1261, 50453 }, + { 0x1278, 50456 }, + { 0x127D, 50459 }, + { 0x127A, 50462 }, + { 0x127E, 50465 }, + { 0x1279, 50468 }, + { 0x12F0, 50471 }, + { 0x12F5, 50474 }, + { 0x12F2, 50477 }, + { 0x12F6, 50480 }, + { 0x12F1, 50483 }, + { 0x1348, 50486 }, + { 0x134D, 50489 }, + { 0x134A, 50492 }, + { 0x134E, 50495 }, + { 0x1349, 50498 }, + { 0x1308, 50501 }, + { 0x130D, 50504 }, + { 0x130A, 50507 }, + { 0x130E, 50510 }, + { 0x1309, 50513 }, + { 0x1200, 50516 }, + { 0x1205, 50519 }, + { 0x1202, 50522 }, + { 0x1206, 50525 }, + { 0x1201, 50528 }, + { 0x1300, 50531 }, + { 0x1305, 50534 }, + { 0x1302, 50537 }, + { 0x1306, 50540 }, + { 0x1301, 50543 }, + { 0x12A8, 50546 }, + { 0x12AD, 50549 }, + { 0x12AA, 50552 }, + { 0x12AE, 50555 }, + { 0x12A9, 50558 }, + { 0x1208, 50561 }, + { 0x120D, 50564 }, + { 0x120A, 50567 }, + { 0x120E, 50570 }, + { 0x1209, 50573 }, + { 0x1218, 50576 }, + { 0x121D, 50579 }, + { 0x121A, 50582 }, + { 0x121E, 50585 }, + { 0x1219, 50588 }, + { 0x1290, 50591 }, + { 0x1295, 50594 }, + { 0x1292, 50597 }, + { 0x1296, 50600 }, + { 0x1291, 50603 }, + { 0x1350, 50606 }, + { 0x1355, 50609 }, + { 0x1352, 50612 }, + { 0x1356, 50615 }, + { 0x1351, 50618 }, + { 0x1240, 50621 }, + { 0x1245, 50624 }, + { 0x1242, 50627 }, + { 0x1246, 50630 }, + { 0x1241, 50633 }, + { 0x1228, 50636 }, + { 0x122D, 50639 }, + { 0x122A, 50642 }, + { 0x122E, 50645 }, + { 0x1229, 50648 }, + { 0x1230, 50651 }, + { 0x1235, 50654 }, + { 0x1232, 50657 }, + { 0x1236, 50660 }, + { 0x1231, 50663 }, + { 0x1270, 50666 }, + { 0x1275, 50669 }, + { 0x1272, 50672 }, + { 0x1276, 50675 }, + { 0x1271, 50678 }, + { 0x1268, 50681 }, + { 0x126D, 50684 }, + { 0x126A, 50687 }, + { 0x126E, 50690 }, + { 0x1269, 50693 }, + { 0x12C8, 50696 }, + { 0x12CD, 50699 }, + { 0x12CA, 50702 }, + { 0x12CE, 50705 }, + { 0x12C9, 50708 }, + { 0x1280, 50711 }, + { 0x1285, 50714 }, + { 0x1282, 50717 }, + { 0x1286, 50720 }, + { 0x1281, 50723 }, + { 0x12E8, 50726 }, + { 0x12ED, 50729 }, + { 0x12EA, 50732 }, + { 0x12EE, 50735 }, + { 0x12E9, 50738 }, + { 0x12D8, 50741 }, + { 0x12DD, 50744 }, + { 0x12DA, 50747 }, + { 0x12DE, 50750 }, + { 0x12D9, 50753 }, + { 0x1263, 50756 }, + { 0x1264, 50759 }, + { 0x2D85, 50762 }, + { 0x1267, 50765 }, + { 0x1387, 50768 }, + { 0x1385, 50771 }, + { 0x127B, 50774 }, + { 0x2DA8, 50777 }, + { 0x2DAD, 50780 }, + { 0x2DAA, 50783 }, + { 0x2DAE, 50786 }, + { 0x2DA9, 50789 }, + { 0x127C, 50792 }, + { 0x1328, 50795 }, + { 0x132D, 50798 }, + { 0x132A, 50801 }, + { 0x132E, 50804 }, + { 0x1329, 50807 }, + { 0x2D87, 50810 }, + { 0x127F, 50813 }, + { 0x12F3, 50816 }, + { 0x12F8, 50819 }, + { 0x12FD, 50822 }, + { 0x12FA, 50825 }, + { 0x12FE, 50828 }, + { 0x12F9, 50831 }, + { 0x12F4, 50834 }, + { 0x2D8C, 50837 }, + { 0x12F7, 50840 }, + { 0x134B, 50843 }, + { 0x134C, 50846 }, + { 0x134F, 50849 }, + { 0x138B, 50852 }, + { 0x1389, 50855 }, + { 0x135A, 50858 }, + { 0x130B, 50861 }, + { 0x130C, 50864 }, + { 0x1318, 50867 }, + { 0x131D, 50870 }, + { 0x131A, 50873 }, + { 0x131E, 50876 }, + { 0x1319, 50879 }, + { 0x130F, 50882 }, + { 0x1310, 50885 }, + { 0x1315, 50888 }, + { 0x1312, 50891 }, + { 0x2DD8, 50894 }, + { 0x2DDD, 50897 }, + { 0x2DDA, 50900 }, + { 0x2DDE, 50903 }, + { 0x2DD9, 50906 }, + { 0x1203, 50909 }, + { 0x1204, 50912 }, + { 0x1210, 50915 }, + { 0x1215, 50918 }, + { 0x1212, 50921 }, + { 0x1216, 50924 }, + { 0x1211, 50927 }, + { 0x1207, 50930 }, + { 0x1303, 50933 }, + { 0x1304, 50936 }, + { 0x2D8E, 50939 }, + { 0x1307, 50942 }, + { 0x12AB, 50945 }, + { 0x12AC, 50948 }, + { 0x12AF, 50951 }, + { 0x12B0, 50954 }, + { 0x12B5, 50957 }, + { 0x12B2, 50960 }, + { 0x12B8, 50963 }, + { 0x12BD, 50966 }, + { 0x12BA, 50969 }, + { 0x12BE, 50972 }, + { 0x12B9, 50975 }, + { 0x2DC8, 50978 }, + { 0x2DCD, 50981 }, + { 0x2DCA, 50984 }, + { 0x2DCE, 50987 }, + { 0x2DC9, 50990 }, + { 0x120B, 50993 }, + { 0x120C, 50996 }, + { 0x2D80, 50999 }, + { 0x120F, 51002 }, + { 0x121B, 51005 }, + { 0x121C, 51008 }, + { 0x2D81, 51011 }, + { 0x121F, 51014 }, + { 0x1383, 51017 }, + { 0x1381, 51020 }, + { 0x1359, 51023 }, + { 0x1293, 51026 }, + { 0x1294, 51029 }, + { 0x2D88, 51032 }, + { 0x1297, 51035 }, + { 0x1298, 51038 }, + { 0x129D, 51041 }, + { 0x129A, 51044 }, + { 0x129E, 51047 }, + { 0x1299, 51050 }, + { 0x1353, 51053 }, + { 0x1354, 51056 }, + { 0x1330, 51059 }, + { 0x1335, 51062 }, + { 0x1332, 51065 }, + { 0x1336, 51068 }, + { 0x1331, 51071 }, + { 0x2D92, 51074 }, + { 0x1357, 51077 }, + { 0x138F, 51080 }, + { 0x138D, 51083 }, + { 0x1243, 51086 }, + { 0x1244, 51089 }, + { 0x1250, 51092 }, + { 0x1255, 51095 }, + { 0x1252, 51098 }, + { 0x1256, 51101 }, + { 0x1251, 51104 }, + { 0x1247, 51107 }, + { 0x1248, 51110 }, + { 0x124D, 51113 }, + { 0x124A, 51116 }, + { 0x2DC0, 51119 }, + { 0x2DC5, 51122 }, + { 0x2DC2, 51125 }, + { 0x2DC6, 51128 }, + { 0x2DC1, 51131 }, + { 0x122B, 51134 }, + { 0x122C, 51137 }, + { 0x2D82, 51140 }, + { 0x122F, 51143 }, + { 0x1358, 51146 }, + { 0x1233, 51149 }, + { 0x1234, 51152 }, + { 0x1238, 51155 }, + { 0x123D, 51158 }, + { 0x123A, 51161 }, + { 0x123E, 51164 }, + { 0x1239, 51167 }, + { 0x2D83, 51170 }, + { 0x2DA0, 51173 }, + { 0x2DA5, 51176 }, + { 0x2DA2, 51179 }, + { 0x2DA6, 51182 }, + { 0x2DA1, 51185 }, + { 0x1237, 51188 }, + { 0x1220, 51191 }, + { 0x1225, 51194 }, + { 0x1222, 51197 }, + { 0x1226, 51200 }, + { 0x1221, 51203 }, + { 0x1273, 51206 }, + { 0x1274, 51209 }, + { 0x1320, 51212 }, + { 0x1325, 51215 }, + { 0x1322, 51218 }, + { 0x1326, 51221 }, + { 0x1321, 51224 }, + { 0x2D86, 51227 }, + { 0x1338, 51230 }, + { 0x133D, 51233 }, + { 0x133A, 51236 }, + { 0x133E, 51239 }, + { 0x1339, 51242 }, + { 0x1277, 51245 }, + { 0x1340, 51248 }, + { 0x1345, 51251 }, + { 0x1342, 51254 }, + { 0x1346, 51257 }, + { 0x1341, 51260 }, + { 0x126B, 51263 }, + { 0x126C, 51266 }, + { 0x126F, 51269 }, + { 0x12CB, 51272 }, + { 0x12CC, 51275 }, + { 0x12CF, 51278 }, + { 0x1283, 51281 }, + { 0x1284, 51284 }, + { 0x1287, 51287 }, + { 0x1288, 51290 }, + { 0x128D, 51293 }, + { 0x128A, 51296 }, + { 0x2DD0, 51299 }, + { 0x2DD5, 51302 }, + { 0x2DD2, 51305 }, + { 0x2DD6, 51308 }, + { 0x2DD1, 51311 }, + { 0x12EB, 51314 }, + { 0x12EC, 51317 }, + { 0x12EF, 51320 }, + { 0x12DB, 51323 }, + { 0x12DC, 51326 }, + { 0x12E0, 51329 }, + { 0x12E5, 51332 }, + { 0x12E2, 51335 }, + { 0x12E6, 51338 }, + { 0x12E1, 51341 }, + { 0x2D8B, 51344 }, + { 0x12DF, 51347 }, + { 0x2DB0, 51350 }, + { 0x2DB5, 51353 }, + { 0x2DB2, 51356 }, + { 0x2DB6, 51359 }, + { 0x2DB1, 51362 }, + { 0x1386, 51365 }, + { 0x2DAB, 51368 }, + { 0x2DAC, 51371 }, + { 0x2DB8, 51374 }, + { 0x2DBD, 51377 }, + { 0x2DBA, 51380 }, + { 0x2DBE, 51383 }, + { 0x2DB9, 51386 }, + { 0x132B, 51389 }, + { 0x132C, 51392 }, + { 0x2D90, 51395 }, + { 0x132F, 51398 }, + { 0x12FB, 51401 }, + { 0x12FC, 51404 }, + { 0x2D8D, 51407 }, + { 0x12FF, 51410 }, + { 0x138A, 51413 }, + { 0x131B, 51416 }, + { 0x131C, 51419 }, + { 0x2D93, 51422 }, + { 0x2D96, 51425 }, + { 0x2D94, 51428 }, + { 0x1313, 51431 }, + { 0x1314, 51434 }, + { 0x2DDB, 51437 }, + { 0x2DDC, 51440 }, + { 0x1213, 51443 }, + { 0x1214, 51446 }, + { 0x1217, 51449 }, + { 0x12B3, 51452 }, + { 0x12B4, 51455 }, + { 0x12BB, 51458 }, + { 0x12BC, 51461 }, + { 0x12C0, 51464 }, + { 0x12C5, 51467 }, + { 0x12C2, 51470 }, + { 0x2DCB, 51473 }, + { 0x2DCC, 51476 }, + { 0x1382, 51479 }, + { 0x129B, 51482 }, + { 0x129C, 51485 }, + { 0x2D89, 51488 }, + { 0x129F, 51491 }, + { 0x1333, 51494 }, + { 0x1334, 51497 }, + { 0x2D91, 51500 }, + { 0x1337, 51503 }, + { 0x138E, 51506 }, + { 0x1253, 51509 }, + { 0x1254, 51512 }, + { 0x1258, 51515 }, + { 0x125D, 51518 }, + { 0x125A, 51521 }, + { 0x124B, 51524 }, + { 0x124C, 51527 }, + { 0x2DC3, 51530 }, + { 0x2DC4, 51533 }, + { 0x123B, 51536 }, + { 0x123C, 51539 }, + { 0x2D84, 51542 }, + { 0x123F, 51545 }, + { 0x2DA3, 51548 }, + { 0x2DA4, 51551 }, + { 0x1223, 51554 }, + { 0x1224, 51557 }, + { 0x1227, 51560 }, + { 0x1323, 51563 }, + { 0x1324, 51566 }, + { 0x2D8F, 51569 }, + { 0x1327, 51572 }, + { 0x133B, 51575 }, + { 0x133C, 51578 }, + { 0x133F, 51581 }, + { 0x1343, 51584 }, + { 0x1344, 51587 }, + { 0x1347, 51590 }, + { 0x128B, 51593 }, + { 0x128C, 51596 }, + { 0x2DD3, 51599 }, + { 0x2DD4, 51602 }, + { 0x12E3, 51605 }, + { 0x12E4, 51608 }, + { 0x12E7, 51611 }, + { 0x2DB3, 51614 }, + { 0x2DB4, 51617 }, + { 0x2DBB, 51620 }, + { 0x2DBC, 51623 }, + { 0x131F, 51626 }, + { 0x2D95, 51629 }, + { 0x12C3, 51632 }, + { 0x12C4, 51635 }, + { 0x125B, 51638 }, + { 0x125C, 51641 }, + { 0x12A0, 51644 }, + { 0x12A5, 51648 }, + { 0x12A2, 51652 }, + { 0x12A6, 51656 }, + { 0x12A1, 51660 }, + { 0x12A3, 51664 }, + { 0x12A4, 51668 }, + { 0x2D8A, 51672 }, + { 0x12A7, 51676 }, + { 0x1384, 51680 }, + { 0x1388, 51684 }, + { 0x1380, 51688 }, + { 0x138C, 51692 }, + { 0x12D0, 51696 }, + { 0x12D5, 51700 }, + { 0x12D2, 51704 }, + { 0x12D6, 51708 }, + { 0x12D1, 51712 }, + { 0x12D3, 51716 }, + { 0x12D4, 51720 }, + { 0x135F, 51724 }, + { 0x1368, 51728 }, + { 0x1364, 51731 }, + { 0x1361, 51733 }, + { 0x06F1, 51735 }, + { 0x06F6, 51739 }, + { 0x06F2, 51743 }, + { 0x06F5, 51747 }, + { 0x06F4, 51751 }, + { 0x06F9, 51755 }, + { 0x06F0, 51759 }, + { 0x06F8, 51763 }, + { 0x06F7, 51767 }, + { 0x06F3, 51771 }, + { 0x00AA, 51775 }, + { 0x23E5, 51778 }, + { 0x2044, 51779 }, + { 0x215F, 51781 }, + { 0x2061, 51784 }, + { 0x2D00, 51786 }, + { 0x2D04, 51790 }, + { 0x2D21, 51794 }, + { 0x2D08, 51798 }, + { 0x2D0D, 51802 }, + { 0x2D13, 51806 }, + { 0x2D23, 51810 }, + { 0x2D01, 51814 }, + { 0x2D1A, 51818 }, + { 0x2D1C, 51822 }, + { 0x2D03, 51826 }, + { 0x2D02, 51830 }, + { 0x2D20, 51834 }, + { 0x2D24, 51838 }, + { 0x2D22, 51842 }, + { 0x2D25, 51846 }, + { 0x2D1B, 51850 }, + { 0x2D09, 51854 }, + { 0x2D0A, 51858 }, + { 0x2D0B, 51862 }, + { 0x2D0C, 51866 }, + { 0x2D0E, 51870 }, + { 0x2D17, 51874 }, + { 0x2D10, 51878 }, + { 0x2D11, 51882 }, + { 0x2D07, 51886 }, + { 0x2D12, 51890 }, + { 0x2D05, 51894 }, + { 0x2D1E, 51898 }, + { 0x2D06, 51902 }, + { 0x2D1D, 51906 }, + { 0x2D19, 51910 }, + { 0x2D16, 51914 }, + { 0x2D1F, 51918 }, + { 0x2D15, 51922 }, + { 0x2D14, 51926 }, + { 0x2D18, 51930 }, + { 0x2D0F, 51934 }, + { 0x10D0, 51938 }, + { 0x10D4, 51941 }, + { 0x10F6, 51944 }, + { 0x10F1, 51947 }, + { 0x10D8, 51950 }, + { 0x10DD, 51953 }, + { 0x10E3, 51956 }, + { 0x10F3, 51959 }, + { 0x10F7, 51962 }, + { 0x10FA, 51965 }, + { 0x10D1, 51968 }, + { 0x10EA, 51971 }, + { 0x10EC, 51974 }, + { 0x10D3, 51977 }, + { 0x10D2, 51980 }, + { 0x10F0, 51983 }, + { 0x10F4, 51986 }, + { 0x10F2, 51989 }, + { 0x10F5, 51992 }, + { 0x10EB, 51995 }, + { 0x10D9, 51998 }, + { 0x10DA, 52001 }, + { 0x10DB, 52004 }, + { 0x10DC, 52007 }, + { 0x10DE, 52010 }, + { 0x10E7, 52013 }, + { 0x10E0, 52016 }, + { 0x10E1, 52019 }, + { 0x10D7, 52022 }, + { 0x10E2, 52025 }, + { 0x10D5, 52028 }, + { 0x10EE, 52031 }, + { 0x10D6, 52034 }, + { 0x10ED, 52037 }, + { 0x10E9, 52040 }, + { 0x10E6, 52043 }, + { 0x10EF, 52046 }, + { 0x10E5, 52049 }, + { 0x10E4, 52052 }, + { 0x10E8, 52055 }, + { 0x10DF, 52058 }, + { 0x10F8, 52061 }, + { 0x10F9, 52064 }, + { 0x10A0, 52068 }, + { 0x10A4, 52072 }, + { 0x10C1, 52076 }, + { 0x10A8, 52080 }, + { 0x10AD, 52084 }, + { 0x10B3, 52088 }, + { 0x10C3, 52092 }, + { 0x10A1, 52096 }, + { 0x10BA, 52100 }, + { 0x10BC, 52104 }, + { 0x10A3, 52108 }, + { 0x10A2, 52112 }, + { 0x10C0, 52116 }, + { 0x10C4, 52120 }, + { 0x10C2, 52124 }, + { 0x10C5, 52128 }, + { 0x10BB, 52132 }, + { 0x10A9, 52136 }, + { 0x10AA, 52140 }, + { 0x10AB, 52144 }, + { 0x10AC, 52148 }, + { 0x10AE, 52152 }, + { 0x10B7, 52156 }, + { 0x10B0, 52160 }, + { 0x10B1, 52164 }, + { 0x10A7, 52168 }, + { 0x10B2, 52172 }, + { 0x10A5, 52176 }, + { 0x10BE, 52180 }, + { 0x10A6, 52184 }, + { 0x10BD, 52188 }, + { 0x10B9, 52192 }, + { 0x10B6, 52196 }, + { 0x10BF, 52200 }, + { 0x10B5, 52204 }, + { 0x10B4, 52208 }, + { 0x10B8, 52212 }, + { 0x10AF, 52216 }, + { 0x10FB, 52220 }, + { 0x0AD0, 52223 }, + { 0x0ABC, 52225 }, + { 0x0ACD, 52228 }, + { 0x0A83, 52231 }, + { 0x0A82, 52234 }, + { 0x0ABD, 52237 }, + { 0x0A81, 52240 }, + { 0x0AE7, 52243 }, + { 0x0AEC, 52246 }, + { 0x0AE8, 52249 }, + { 0x0AEB, 52252 }, + { 0x0AEA, 52255 }, + { 0x0AEF, 52258 }, + { 0x0AE6, 52261 }, + { 0x0AEE, 52264 }, + { 0x0AED, 52267 }, + { 0x0AE9, 52270 }, + { 0x0AF1, 52273 }, + { 0x0AC7, 52276 }, + { 0x0ABF, 52280 }, + { 0x0ACB, 52284 }, + { 0x0AC1, 52288 }, + { 0x0ABE, 52292 }, + { 0x0AC8, 52296 }, + { 0x0ACC, 52300 }, + { 0x0AC0, 52304 }, + { 0x0AC2, 52308 }, + { 0x0AC5, 52312 }, + { 0x0AC9, 52317 }, + { 0x0AE2, 52322 }, + { 0x0AC3, 52327 }, + { 0x0AE3, 52332 }, + { 0x0AC4, 52337 }, + { 0x0A8D, 52342 }, + { 0x0A91, 52346 }, + { 0x0A85, 52350 }, + { 0x0A8F, 52353 }, + { 0x0A87, 52356 }, + { 0x0A93, 52359 }, + { 0x0A89, 52362 }, + { 0x0A86, 52365 }, + { 0x0A90, 52368 }, + { 0x0A94, 52371 }, + { 0x0AAC, 52374 }, + { 0x0A9A, 52377 }, + { 0x0AA6, 52380 }, + { 0x0A97, 52383 }, + { 0x0AB9, 52386 }, + { 0x0A88, 52389 }, + { 0x0A9C, 52392 }, + { 0x0A95, 52395 }, + { 0x0AB2, 52398 }, + { 0x0AAE, 52401 }, + { 0x0AA8, 52404 }, + { 0x0AAA, 52407 }, + { 0x0AB0, 52410 }, + { 0x0AB8, 52413 }, + { 0x0AA4, 52416 }, + { 0x0A8A, 52419 }, + { 0x0AB5, 52422 }, + { 0x0AAF, 52425 }, + { 0x0AAD, 52428 }, + { 0x0A9B, 52431 }, + { 0x0AA1, 52434 }, + { 0x0AA7, 52437 }, + { 0x0A98, 52440 }, + { 0x0A9D, 52443 }, + { 0x0A96, 52446 }, + { 0x0AB3, 52449 }, + { 0x0A99, 52452 }, + { 0x0AA3, 52455 }, + { 0x0A9E, 52458 }, + { 0x0AAB, 52461 }, + { 0x0AB6, 52464 }, + { 0x0AB7, 52467 }, + { 0x0AA5, 52470 }, + { 0x0A9F, 52473 }, + { 0x0AA2, 52476 }, + { 0x0AA0, 52479 }, + { 0x0A8C, 52482 }, + { 0x0A8B, 52486 }, + { 0x0AE1, 52490 }, + { 0x0AE0, 52494 }, + { 0x0A74, 52498 }, + { 0x0A72, 52501 }, + { 0x0A73, 52503 }, + { 0x0A01, 52505 }, + { 0x0A02, 52509 }, + { 0x0A3C, 52512 }, + { 0x0A51, 52515 }, + { 0x0A4D, 52518 }, + { 0x0A75, 52521 }, + { 0x0A03, 52524 }, + { 0x0A71, 52527 }, + { 0x0A67, 52529 }, + { 0x0A6C, 52532 }, + { 0x0A68, 52535 }, + { 0x0A6B, 52538 }, + { 0x0A6A, 52541 }, + { 0x0A6F, 52544 }, + { 0x0A66, 52547 }, + { 0x0A6E, 52550 }, + { 0x0A6D, 52553 }, + { 0x0A69, 52556 }, + { 0x0A70, 52559 }, + { 0x0A3F, 52561 }, + { 0x0A41, 52565 }, + { 0x0A3E, 52569 }, + { 0x0A48, 52573 }, + { 0x0A4C, 52577 }, + { 0x0A47, 52581 }, + { 0x0A40, 52585 }, + { 0x0A4B, 52589 }, + { 0x0A42, 52593 }, + { 0x0A05, 52597 }, + { 0x0A07, 52600 }, + { 0x0A09, 52603 }, + { 0x0A06, 52606 }, + { 0x0A10, 52609 }, + { 0x0A14, 52612 }, + { 0x0A2C, 52615 }, + { 0x0A1A, 52618 }, + { 0x0A26, 52621 }, + { 0x0A0F, 52624 }, + { 0x0A5E, 52627 }, + { 0x0A17, 52630 }, + { 0x0A39, 52633 }, + { 0x0A08, 52636 }, + { 0x0A1C, 52639 }, + { 0x0A15, 52642 }, + { 0x0A32, 52645 }, + { 0x0A2E, 52648 }, + { 0x0A28, 52651 }, + { 0x0A13, 52654 }, + { 0x0A2A, 52657 }, + { 0x0A30, 52660 }, + { 0x0A38, 52663 }, + { 0x0A24, 52666 }, + { 0x0A0A, 52669 }, + { 0x0A35, 52672 }, + { 0x0A2F, 52675 }, + { 0x0A5B, 52678 }, + { 0x0A2D, 52681 }, + { 0x0A1B, 52684 }, + { 0x0A21, 52687 }, + { 0x0A27, 52690 }, + { 0x0A18, 52693 }, + { 0x0A1D, 52696 }, + { 0x0A16, 52699 }, + { 0x0A33, 52702 }, + { 0x0A19, 52705 }, + { 0x0A23, 52708 }, + { 0x0A1E, 52711 }, + { 0x0A2B, 52714 }, + { 0x0A5C, 52717 }, + { 0x0A36, 52720 }, + { 0x0A25, 52723 }, + { 0x0A1F, 52726 }, + { 0x0A22, 52729 }, + { 0x0A5A, 52732 }, + { 0x0A59, 52735 }, + { 0x0A20, 52738 }, + { 0x3021, 52741 }, + { 0x3026, 52744 }, + { 0x3038, 52747 }, + { 0x3022, 52750 }, + { 0x3025, 52753 }, + { 0x3024, 52756 }, + { 0x3029, 52759 }, + { 0x3028, 52762 }, + { 0x3027, 52765 }, + { 0x3023, 52768 }, + { 0x303A, 52771 }, + { 0x3039, 52774 }, + { 0x4DC6, 52777 }, + { 0x4DEF, 52781 }, + { 0x4DE4, 52785 }, + { 0x4DF8, 52789 }, + { 0x4DF9, 52794 }, + { 0x4DDC, 52799 }, + { 0x4DF3, 52804 }, + { 0x4DF2, 52810 }, + { 0x4DF1, 52815 }, + { 0x4DDD, 52819 }, + { 0x4DC0, 52824 }, + { 0x4DF5, 52829 }, + { 0x4DF7, 52834 }, + { 0x4DC1, 52838 }, + { 0x4DD1, 52843 }, + { 0x4DFE, 52849 }, + { 0x4DD5, 52853 }, + { 0x4DE1, 52856 }, + { 0x4DD9, 52860 }, + { 0x4DCD, 52864 }, + { 0x4DDB, 52868 }, + { 0x4DFC, 52872 }, + { 0x4DDA, 52876 }, + { 0x4DCA, 52880 }, + { 0x4DC8, 52883 }, + { 0x4DFD, 52887 }, + { 0x4DFF, 52891 }, + { 0x4DD4, 52895 }, + { 0x4DEB, 52899 }, + { 0x4DD7, 52904 }, + { 0x4DC7, 52907 }, + { 0x4DCE, 52911 }, + { 0x4DED, 52914 }, + { 0x4DE0, 52918 }, + { 0x4DC4, 52921 }, + { 0x4DD2, 52924 }, + { 0x4DC5, 52927 }, + { 0x4DE8, 52930 }, + { 0x4DDF, 52933 }, + { 0x4DE9, 52936 }, + { 0x4DE2, 52939 }, + { 0x4DC9, 52942 }, + { 0x4DC3, 52945 }, + { 0x4DF6, 52949 }, + { 0x4DE3, 52952 }, + { 0x4DD0, 52958 }, + { 0x4DEC, 52961 }, + { 0x4DDE, 52965 }, + { 0x4DD8, 52968 }, + { 0x4DD6, 52971 }, + { 0x4DC2, 52975 }, + { 0x4DFA, 52981 }, + { 0x4DCF, 52984 }, + { 0x4DCC, 52987 }, + { 0x4DFB, 52990 }, + { 0x4DE5, 52993 }, + { 0x4DEE, 52996 }, + { 0x4DF0, 52999 }, + { 0x4DCB, 53002 }, + { 0x4DE7, 53005 }, + { 0x4DF4, 53008 }, + { 0x4DE6, 53011 }, + { 0x4DEA, 53014 }, + { 0x4DD3, 53017 }, + { 0x3042, 53020 }, + { 0x3048, 53023 }, + { 0x3044, 53026 }, + { 0x3093, 53029 }, + { 0x304A, 53032 }, + { 0x3046, 53035 }, + { 0x3070, 53038 }, + { 0x3079, 53041 }, + { 0x3073, 53044 }, + { 0x307C, 53047 }, + { 0x3076, 53050 }, + { 0x3060, 53053 }, + { 0x3067, 53056 }, + { 0x3062, 53059 }, + { 0x3069, 53062 }, + { 0x3065, 53065 }, + { 0x304C, 53068 }, + { 0x3052, 53071 }, + { 0x304E, 53074 }, + { 0x3054, 53077 }, + { 0x3050, 53080 }, + { 0x306F, 53083 }, + { 0x3078, 53086 }, + { 0x3072, 53089 }, + { 0x307B, 53092 }, + { 0x3075, 53095 }, + { 0x304B, 53098 }, + { 0x3051, 53101 }, + { 0x304D, 53104 }, + { 0x3053, 53107 }, + { 0x304F, 53110 }, + { 0x307E, 53113 }, + { 0x3081, 53116 }, + { 0x307F, 53119 }, + { 0x3082, 53122 }, + { 0x3080, 53125 }, + { 0x306A, 53128 }, + { 0x306D, 53131 }, + { 0x306B, 53134 }, + { 0x306E, 53137 }, + { 0x306C, 53140 }, + { 0x3071, 53143 }, + { 0x307A, 53146 }, + { 0x3074, 53149 }, + { 0x307D, 53152 }, + { 0x3077, 53155 }, + { 0x3089, 53158 }, + { 0x308C, 53161 }, + { 0x308A, 53164 }, + { 0x308D, 53167 }, + { 0x308B, 53170 }, + { 0x3055, 53173 }, + { 0x305B, 53176 }, + { 0x3057, 53179 }, + { 0x305D, 53182 }, + { 0x3059, 53185 }, + { 0x305F, 53188 }, + { 0x3066, 53191 }, + { 0x3061, 53194 }, + { 0x3068, 53197 }, + { 0x3064, 53200 }, + { 0x3094, 53203 }, + { 0x308F, 53206 }, + { 0x3091, 53209 }, + { 0x3090, 53212 }, + { 0x3092, 53215 }, + { 0x3084, 53218 }, + { 0x3088, 53221 }, + { 0x3086, 53224 }, + { 0x3056, 53227 }, + { 0x305C, 53230 }, + { 0x3058, 53233 }, + { 0x305E, 53236 }, + { 0x305A, 53239 }, + { 0x3041, 53242 }, + { 0x3047, 53246 }, + { 0x3043, 53250 }, + { 0x3049, 53254 }, + { 0x3045, 53258 }, + { 0x3095, 53262 }, + { 0x3096, 53266 }, + { 0x3063, 53270 }, + { 0x308E, 53274 }, + { 0x3083, 53278 }, + { 0x3087, 53282 }, + { 0x3085, 53286 }, + { 0x309E, 53290 }, + { 0x309F, 53294 }, + { 0x309D, 53297 }, + { 0x221E, 53300 }, + { 0x29DE, 53301 }, + { 0x222B, 53306 }, + { 0x2A18, 53307 }, + { 0x2A1A, 53311 }, + { 0x2A0E, 53314 }, + { 0x2A1B, 53318 }, + { 0x2A1C, 53321 }, + { 0x2A17, 53324 }, + { 0x2A19, 53330 }, + { 0x2A15, 53333 }, + { 0x2A0F, 53338 }, + { 0x23AE, 53342 }, + { 0x2A3C, 53344 }, + { 0x2127, 53346 }, + { 0x223E, 53349 }, + { 0x00BF, 53352 }, + { 0x2054, 53355 }, + { 0x00A1, 53357 }, + { 0x2E18, 53360 }, + { 0x3004, 53362 }, + { 0x30A2, 53366 }, + { 0x30A8, 53369 }, + { 0x30A4, 53372 }, + { 0x30F3, 53375 }, + { 0x30AA, 53378 }, + { 0x30A6, 53381 }, + { 0x30D0, 53384 }, + { 0x30D9, 53387 }, + { 0x30D3, 53390 }, + { 0x30DC, 53393 }, + { 0x30D6, 53396 }, + { 0x30C0, 53399 }, + { 0x30C7, 53402 }, + { 0x30C2, 53405 }, + { 0x30C9, 53408 }, + { 0x30C5, 53411 }, + { 0x30AC, 53414 }, + { 0x30B2, 53417 }, + { 0x30AE, 53420 }, + { 0x30B4, 53423 }, + { 0x30B0, 53426 }, + { 0x30CF, 53429 }, + { 0x30D8, 53432 }, + { 0x30D2, 53435 }, + { 0x30DB, 53438 }, + { 0x30D5, 53441 }, + { 0x30AB, 53444 }, + { 0x30B1, 53447 }, + { 0x30AD, 53450 }, + { 0x30B3, 53453 }, + { 0x30AF, 53456 }, + { 0x30DE, 53459 }, + { 0x30E1, 53462 }, + { 0x30DF, 53465 }, + { 0x30E2, 53468 }, + { 0x30E0, 53471 }, + { 0x30CA, 53474 }, + { 0x30CD, 53477 }, + { 0x30CB, 53480 }, + { 0x30CE, 53483 }, + { 0x30CC, 53486 }, + { 0x30D1, 53489 }, + { 0x30DA, 53492 }, + { 0x30D4, 53495 }, + { 0x30DD, 53498 }, + { 0x30D7, 53501 }, + { 0x30E9, 53504 }, + { 0x30EC, 53507 }, + { 0x30EA, 53510 }, + { 0x30ED, 53513 }, + { 0x30EB, 53516 }, + { 0x30B5, 53519 }, + { 0x30BB, 53522 }, + { 0x30B7, 53525 }, + { 0x30BD, 53528 }, + { 0x30B9, 53531 }, + { 0x30BF, 53534 }, + { 0x30C6, 53537 }, + { 0x30C1, 53540 }, + { 0x30C8, 53543 }, + { 0x30C4, 53546 }, + { 0x30F7, 53549 }, + { 0x30F9, 53552 }, + { 0x30F8, 53555 }, + { 0x30FA, 53558 }, + { 0x30F4, 53561 }, + { 0x30EF, 53564 }, + { 0x30F1, 53567 }, + { 0x30F0, 53570 }, + { 0x30F2, 53573 }, + { 0x30E4, 53576 }, + { 0x30E8, 53579 }, + { 0x30E6, 53582 }, + { 0x30B6, 53585 }, + { 0x30BC, 53588 }, + { 0x30B8, 53591 }, + { 0x30BE, 53594 }, + { 0x30BA, 53597 }, + { 0x30A1, 53600 }, + { 0x30A7, 53604 }, + { 0x30A3, 53608 }, + { 0x30A9, 53612 }, + { 0x30A5, 53616 }, + { 0x31F5, 53620 }, + { 0x31F8, 53624 }, + { 0x31F6, 53628 }, + { 0x31F9, 53632 }, + { 0x31F7, 53636 }, + { 0x30F5, 53640 }, + { 0x30F6, 53644 }, + { 0x31F0, 53648 }, + { 0x31FA, 53652 }, + { 0x31F4, 53656 }, + { 0x31FB, 53660 }, + { 0x31FE, 53664 }, + { 0x31FC, 53668 }, + { 0x31FF, 53672 }, + { 0x31FD, 53676 }, + { 0x31F1, 53680 }, + { 0x31F2, 53684 }, + { 0x31F3, 53688 }, + { 0x30C3, 53692 }, + { 0x30EE, 53696 }, + { 0x30E3, 53700 }, + { 0x30E7, 53704 }, + { 0x30E5, 53708 }, + { 0x30FB, 53712 }, + { 0x30FE, 53715 }, + { 0x30FF, 53719 }, + { 0x30FD, 53722 }, + { 0x2328, 53725 }, + { 0xC001, 53726 }, + { 0x26AD, 53728 }, + { 0x225E, 53730 }, + { 0x2221, 53732 }, + { 0x29A9, 53734 }, + { 0x29A8, 53746 }, + { 0x29AB, 53758 }, + { 0x29AA, 53770 }, + { 0x29AD, 53782 }, + { 0x29AF, 53794 }, + { 0x29AC, 53806 }, + { 0x29AE, 53818 }, + { 0x299B, 53830 }, + { 0x299D, 53834 }, + { 0x23D5, 53839 }, + { 0x23D6, 53844 }, + { 0x23D4, 53848 }, + { 0x23D2, 53853 }, + { 0x23D1, 53857 }, + { 0x23D3, 53859 }, + { 0x23D7, 53863 }, + { 0x23D9, 53865 }, + { 0x23D8, 53867 }, + { 0x02D4, 53869 }, + { 0x02C4, 53873 }, + { 0x5770, 53877 }, + { 0x5718, 53880 }, + { 0x5717, 53884 }, + { 0x5719, 53889 }, + { 0x02FC, 53894 }, + { 0x02FA, 53899 }, + { 0x02F0, 53904 }, + { 0x02EF, 53909 }, + { 0x02FF, 53914 }, + { 0x02F1, 53919 }, + { 0x02F3, 53924 }, + { 0x02E8, 53928 }, + { 0x02CF, 53933 }, + { 0x02CE, 53938 }, + { 0x02F2, 53943 }, + { 0x02F7, 53948 }, + { 0x570B, 53952 }, + { 0x5710, 53958 }, + { 0x02CD, 53965 }, + { 0x571F, 53969 }, + { 0x02CC, 53975 }, + { 0x5715, 53980 }, + { 0x5788, 53986 }, + { 0x02E7, 53991 }, + { 0x570A, 53996 }, + { 0x570F, 54002 }, + { 0x5714, 54009 }, + { 0x02EA, 54015 }, + { 0x02D5, 54021 }, + { 0x02C5, 54025 }, + { 0x02D1, 54029 }, + { 0x02E6, 54034 }, + { 0x5709, 54039 }, + { 0x570E, 54045 }, + { 0x5713, 54052 }, + { 0x02BF, 54058 }, + { 0x02C2, 54063 }, + { 0x02FE, 54067 }, + { 0x02D6, 54071 }, + { 0x02EB, 54075 }, + { 0x02CA, 54081 }, + { 0x02FB, 54085 }, + { 0x02F9, 54090 }, + { 0x5789, 54095 }, + { 0x02DF, 54098 }, + { 0x02CB, 54102 }, + { 0x571A, 54106 }, + { 0x02D7, 54112 }, + { 0x02B9, 54116 }, + { 0x02BE, 54119 }, + { 0x02C3, 54124 }, + { 0x02FD, 54128 }, + { 0x578A, 54131 }, + { 0x1D43, 54136 }, + { 0x1D47, 54140 }, + { 0x1D9C, 54144 }, + { 0x1D9D, 54148 }, + { 0x1D48, 54154 }, + { 0x1D49, 54158 }, + { 0x1DA0, 54162 }, + { 0x1D4D, 54166 }, + { 0x02B0, 54170 }, + { 0x02B1, 54174 }, + { 0x1DA4, 54180 }, + { 0x02B2, 54186 }, + { 0x1DA8, 54190 }, + { 0x1D4F, 54196 }, + { 0x02E1, 54200 }, + { 0x1DAA, 54204 }, + { 0x1DA9, 54211 }, + { 0x1D50, 54218 }, + { 0x1DAC, 54222 }, + { 0x1DAE, 54228 }, + { 0x1DAF, 54235 }, + { 0x1D52, 54242 }, + { 0x1D56, 54246 }, + { 0x02B3, 54250 }, + { 0x02E2, 54254 }, + { 0x1DB3, 54258 }, + { 0x1D57, 54264 }, + { 0x1DB5, 54268 }, + { 0x1D58, 54275 }, + { 0x1DB6, 54279 }, + { 0x1D5B, 54284 }, + { 0x1DB9, 54288 }, + { 0x02B7, 54294 }, + { 0x02E3, 54298 }, + { 0x02B8, 54302 }, + { 0x1DBB, 54306 }, + { 0x1DBD, 54310 }, + { 0x1DBC, 54316 }, + { 0x1D5C, 54323 }, + { 0x1D61, 54327 }, + { 0x1D51, 54331 }, + { 0x1DB4, 54335 }, + { 0x1D9E, 54339 }, + { 0x1DBE, 54343 }, + { 0x1DB2, 54347 }, + { 0x1D54, 54351 }, + { 0x1D5D, 54357 }, + { 0x1DA5, 54361 }, + { 0x1D4B, 54365 }, + { 0x1D53, 54370 }, + { 0x1D45, 54375 }, + { 0x1D5F, 54379 }, + { 0x02E0, 54383 }, + { 0x1D60, 54387 }, + { 0x1D5E, 54392 }, + { 0x1D4A, 54397 }, + { 0x1DBF, 54401 }, + { 0x1DB1, 54405 }, + { 0x1D55, 54410 }, + { 0x1DA2, 54416 }, + { 0x1D44, 54421 }, + { 0x1DA3, 54426 }, + { 0x1D4E, 54431 }, + { 0x1D5A, 54436 }, + { 0x1DAD, 54441 }, + { 0x02B4, 54449 }, + { 0x02B5, 54454 }, + { 0x1DBA, 54461 }, + { 0x1D46, 54466 }, + { 0x1D4C, 54471 }, + { 0x1D9B, 54477 }, + { 0x1DA6, 54482 }, + { 0x1DA7, 54487 }, + { 0x1DAB, 54494 }, + { 0x1DB0, 54499 }, + { 0x1DB8, 54504 }, + { 0x02B6, 54509 }, + { 0x1DA1, 54515 }, + { 0x1DB7, 54522 }, + { 0x1D9F, 54526 }, + { 0x02E4, 54532 }, + { 0x1D59, 54538 }, + { 0x02BA, 54543 }, + { 0x02EE, 54547 }, + { 0x02C9, 54551 }, + { 0x02F4, 54554 }, + { 0x02F6, 54559 }, + { 0x02F5, 54565 }, + { 0x571B, 54571 }, + { 0x571C, 54576 }, + { 0x02F8, 54581 }, + { 0x571E, 54585 }, + { 0x571D, 54591 }, + { 0x02DE, 54596 }, + { 0x5721, 54600 }, + { 0x5720, 54606 }, + { 0x02BB, 54612 }, + { 0x1D2C, 54616 }, + { 0x1D2E, 54620 }, + { 0x1D30, 54624 }, + { 0x1D31, 54628 }, + { 0x1D33, 54632 }, + { 0x1D34, 54636 }, + { 0x1D35, 54640 }, + { 0x1D36, 54644 }, + { 0x1D37, 54648 }, + { 0x1D38, 54652 }, + { 0x1D39, 54656 }, + { 0x1D3A, 54660 }, + { 0x1D3C, 54664 }, + { 0x1D3E, 54668 }, + { 0x1D3F, 54672 }, + { 0x1D40, 54676 }, + { 0x1D41, 54680 }, + { 0x2C7D, 54684 }, + { 0x1D42, 54688 }, + { 0x1D2D, 54692 }, + { 0x1D3D, 54696 }, + { 0x1D2F, 54700 }, + { 0x1D32, 54705 }, + { 0x1D3B, 54710 }, + { 0x02D3, 54715 }, + { 0x02D2, 54721 }, + { 0x5704, 54727 }, + { 0x5706, 54733 }, + { 0x5700, 54739 }, + { 0x5702, 54745 }, + { 0x5705, 54751 }, + { 0x5707, 54757 }, + { 0x5701, 54763 }, + { 0x5703, 54769 }, + { 0x02C0, 54775 }, + { 0x02EC, 54779 }, + { 0x1D78, 54782 }, + { 0x10FC, 54786 }, + { 0x02BD, 54790 }, + { 0x02C1, 54794 }, + { 0x02C8, 54799 }, + { 0x02E9, 54803 }, + { 0x570C, 54808 }, + { 0x5711, 54814 }, + { 0x5716, 54821 }, + { 0x02BC, 54827 }, + { 0x02C6, 54830 }, + { 0x02E5, 54834 }, + { 0x5708, 54839 }, + { 0x570D, 54845 }, + { 0x5712, 54852 }, + { 0x02D0, 54858 }, + { 0x02ED, 54862 }, + { 0x268B, 54865 }, + { 0x268A, 54868 }, + { 0x9300, 54871 }, + { 0x22B8, 54874 }, + { 0x228C, 54875 }, + { 0x228E, 54876 }, + { 0x228D, 54878 }, + { 0x206E, 54880 }, + { 0x24FF, 54883 }, + { 0x24EB, 54887 }, + { 0x24EC, 54891 }, + { 0x24F4, 54895 }, + { 0x24EF, 54899 }, + { 0x24F0, 54903 }, + { 0x24F2, 54907 }, + { 0x24EE, 54911 }, + { 0x24F3, 54915 }, + { 0x24ED, 54919 }, + { 0x24F1, 54923 }, + { 0x00A0, 54927 }, + { 0x22B6, 54929 }, + { 0x2626, 54931 }, + { 0x272D, 54933 }, + { 0x2719, 54936 }, + { 0x271F, 54939 }, + { 0x269D, 54942 }, + { 0x203E, 54945 }, + { 0x2225, 54946 }, + { 0x2AF3, 54948 }, + { 0x2AF2, 54952 }, + { 0x5876, 54956 }, + { 0x5877, 54959 }, + { 0x5875, 54963 }, + { 0x585D, 54967 }, + { 0x5860, 54970 }, + { 0x585E, 54973 }, + { 0x5861, 54976 }, + { 0x585F, 54979 }, + { 0x584E, 54982 }, + { 0x5844, 54985 }, + { 0x584A, 54988 }, + { 0x5866, 54991 }, + { 0x5864, 54994 }, + { 0x5842, 54997 }, + { 0x585C, 55000 }, + { 0x5846, 55003 }, + { 0x5840, 55006 }, + { 0x5859, 55009 }, + { 0x584F, 55012 }, + { 0x584B, 55015 }, + { 0x584C, 55018 }, + { 0x5862, 55021 }, + { 0x5858, 55024 }, + { 0x585B, 55027 }, + { 0x5848, 55030 }, + { 0x5853, 55033 }, + { 0x5863, 55036 }, + { 0x5857, 55039 }, + { 0x5855, 55042 }, + { 0x5845, 55045 }, + { 0x586B, 55048 }, + { 0x5852, 55051 }, + { 0x5865, 55054 }, + { 0x5841, 55057 }, + { 0x5843, 55060 }, + { 0x586C, 55063 }, + { 0x5847, 55066 }, + { 0x584D, 55069 }, + { 0x585A, 55072 }, + { 0x5849, 55075 }, + { 0x5850, 55078 }, + { 0x5869, 55081 }, + { 0x5854, 55084 }, + { 0x5851, 55087 }, + { 0x586A, 55090 }, + { 0x5856, 55093 }, + { 0x586F, 55097 }, + { 0x586D, 55101 }, + { 0x5870, 55105 }, + { 0x586E, 55109 }, + { 0x5873, 55113 }, + { 0x5874, 55116 }, + { 0x5871, 55120 }, + { 0x5867, 55124 }, + { 0x5868, 55128 }, + { 0x5872, 55132 }, + { 0x71F7, 55136 }, + { 0x71F1, 55141 }, + { 0x71DA, 55145 }, + { 0x71EC, 55149 }, + { 0x71E0, 55153 }, + { 0x71ED, 55157 }, + { 0x71DF, 55161 }, + { 0x71DC, 55165 }, + { 0x71E4, 55169 }, + { 0x71EF, 55173 }, + { 0x71EA, 55177 }, + { 0x71E9, 55181 }, + { 0x71F6, 55185 }, + { 0x71E8, 55189 }, + { 0x71F3, 55193 }, + { 0x71FC, 55197 }, + { 0x71D9, 55202 }, + { 0x71EB, 55206 }, + { 0x71D4, 55211 }, + { 0x71EE, 55215 }, + { 0x71F8, 55219 }, + { 0x71F2, 55223 }, + { 0x71E5, 55228 }, + { 0x71FB, 55232 }, + { 0x71D8, 55237 }, + { 0x71F0, 55241 }, + { 0x71D5, 55245 }, + { 0x71E6, 55249 }, + { 0x71E3, 55253 }, + { 0x71F9, 55257 }, + { 0x71D6, 55261 }, + { 0x71D1, 55265 }, + { 0x71DB, 55270 }, + { 0x71E7, 55274 }, + { 0x71D3, 55278 }, + { 0x71DE, 55282 }, + { 0x71F4, 55286 }, + { 0x71F5, 55290 }, + { 0x71D7, 55294 }, + { 0x71DD, 55298 }, + { 0x71FA, 55302 }, + { 0x71D2, 55306 }, + { 0x71E1, 55311 }, + { 0x71E2, 55315 }, + { 0x71FD, 55320 }, + { 0x71D0, 55326 }, + { 0x272F, 55330 }, + { 0x2316, 55332 }, + { 0x227A, 55334 }, + { 0x227C, 55335 }, + { 0x227E, 55339 }, + { 0x22E8, 55343 }, + { 0x2AB5, 55348 }, + { 0x2AB9, 55353 }, + { 0x2AB7, 55359 }, + { 0x2AB3, 55364 }, + { 0x2AB1, 55368 }, + { 0x2AAF, 55374 }, + { 0x22B0, 55379 }, + { 0x2397, 55382 }, + { 0x214A, 55384 }, + { 0x2596, 55386 }, + { 0x2597, 55389 }, + { 0x2598, 55392 }, + { 0x2599, 55395 }, + { 0x259A, 55404 }, + { 0x259B, 55410 }, + { 0x259C, 55419 }, + { 0x259D, 55428 }, + { 0x259E, 55431 }, + { 0x259F, 55437 }, + { 0x003F, 55446 }, + { 0x2048, 55448 }, + { 0x26BB, 55451 }, + { 0x267C, 55452 }, + { 0x211F, 55455 }, + { 0x2310, 55456 }, + { 0x29A3, 55459 }, + { 0x29A5, 55461 }, + { 0x29B0, 55465 }, + { 0x2035, 55468 }, + { 0x223D, 55470 }, + { 0x22CD, 55472 }, + { 0x2036, 55475 }, + { 0x301D, 55478 }, + { 0x2AED, 55483 }, + { 0x2E11, 55488 }, + { 0x2037, 55491 }, + { 0x204B, 55494 }, + { 0x2619, 55497 }, + { 0x2E2E, 55502 }, + { 0x204F, 55505 }, + { 0x2143, 55507 }, + { 0x264F, 55511 }, + { 0x2730, 55512 }, + { 0x271E, 55515 }, + { 0x274D, 55519 }, + { 0x2618, 55522 }, + { 0x5673, 55523 }, + { 0x2263, 55525 }, + { 0x227B, 55528 }, + { 0x227D, 55529 }, + { 0x227F, 55533 }, + { 0x22E9, 55537 }, + { 0x2AB6, 55542 }, + { 0x2ABA, 55547 }, + { 0x2AB8, 55553 }, + { 0x2AB4, 55558 }, + { 0x2AB2, 55562 }, + { 0x2AB0, 55568 }, + { 0x22B1, 55573 }, + { 0x2283, 55576 }, + { 0x2287, 55578 }, + { 0x2AC4, 55583 }, + { 0x228B, 55591 }, + { 0x2ACC, 55597 }, + { 0x2AC8, 55603 }, + { 0x2ACA, 55608 }, + { 0x2AC6, 55614 }, + { 0x2ABE, 55619 }, + { 0x2AC0, 55622 }, + { 0x2AC2, 55627 }, + { 0x2AD4, 55632 }, + { 0x2AD6, 55635 }, + { 0x297B, 55638 }, + { 0x2AD8, 55642 }, + { 0x2AD7, 55650 }, + { 0x27C9, 55653 }, + { 0x232F, 55656 }, + { 0x1772, 55657 }, + { 0x1773, 55661 }, + { 0x1760, 55665 }, + { 0x1761, 55668 }, + { 0x1762, 55671 }, + { 0x176A, 55674 }, + { 0x1767, 55677 }, + { 0x1764, 55680 }, + { 0x1763, 55683 }, + { 0x176E, 55686 }, + { 0x176B, 55689 }, + { 0x1768, 55692 }, + { 0x1769, 55695 }, + { 0x1770, 55698 }, + { 0x1766, 55701 }, + { 0x176F, 55704 }, + { 0x176C, 55707 }, + { 0x1765, 55710 }, + { 0x2D30, 55713 }, + { 0x2D49, 55716 }, + { 0x2D53, 55719 }, + { 0x2D44, 55722 }, + { 0x2D31, 55725 }, + { 0x2D37, 55728 }, + { 0x2D3C, 55731 }, + { 0x2D33, 55734 }, + { 0x2D40, 55737 }, + { 0x2D36, 55740 }, + { 0x2D3D, 55743 }, + { 0x2D4D, 55746 }, + { 0x2D4E, 55749 }, + { 0x2D4F, 55752 }, + { 0x2D52, 55755 }, + { 0x2D47, 55758 }, + { 0x2D54, 55761 }, + { 0x2D59, 55764 }, + { 0x2D5C, 55767 }, + { 0x2D60, 55770 }, + { 0x2D61, 55773 }, + { 0x2D62, 55776 }, + { 0x2D63, 55779 }, + { 0x2D3B, 55782 }, + { 0x2D58, 55785 }, + { 0x2D32, 55789 }, + { 0x2D5E, 55792 }, + { 0x2D39, 55795 }, + { 0x2D38, 55798 }, + { 0x2D56, 55801 }, + { 0x2D43, 55804 }, + { 0x2D45, 55807 }, + { 0x2D55, 55810 }, + { 0x2D5B, 55813 }, + { 0x2D5A, 55816 }, + { 0x2D5D, 55819 }, + { 0x2D5F, 55822 }, + { 0x2D4A, 55825 }, + { 0x2D65, 55828 }, + { 0x2D3A, 55831 }, + { 0x2D34, 55834 }, + { 0x2D3F, 55837 }, + { 0x2D41, 55840 }, + { 0x2D35, 55845 }, + { 0x2D42, 55850 }, + { 0x2D3E, 55854 }, + { 0x2D48, 55858 }, + { 0x2D57, 55862 }, + { 0x2D50, 55866 }, + { 0x2D46, 55870 }, + { 0x2D51, 55874 }, + { 0x2D4C, 55878 }, + { 0x2D4B, 55882 }, + { 0x2D64, 55886 }, + { 0x2D6F, 55890 }, + { 0x204A, 55895 }, + { 0x29CA, 55898 }, + { 0x29CD, 55902 }, + { 0x29CB, 55907 }, + { 0x205D, 55910 }, + { 0x739F, 55911 }, + { 0x739B, 55914 }, + { 0x739C, 55917 }, + { 0x7385, 55920 }, + { 0x7394, 55923 }, + { 0x739A, 55926 }, + { 0x7386, 55929 }, + { 0x7391, 55932 }, + { 0x7393, 55935 }, + { 0x738B, 55938 }, + { 0x7383, 55941 }, + { 0x738E, 55944 }, + { 0x7390, 55947 }, + { 0x739D, 55950 }, + { 0x7389, 55953 }, + { 0x738A, 55956 }, + { 0x7380, 55959 }, + { 0x7381, 55962 }, + { 0x738F, 55965 }, + { 0x7388, 55968 }, + { 0x7396, 55971 }, + { 0x7395, 55974 }, + { 0x738C, 55977 }, + { 0x7387, 55980 }, + { 0x7384, 55983 }, + { 0x7382, 55986 }, + { 0x7399, 55989 }, + { 0x738D, 55992 }, + { 0x7397, 55995 }, + { 0x7392, 55998 }, + { 0x7398, 56001 }, + { 0x2602, 56004 }, + { 0x2614, 56005 }, + { 0x203F, 56009 }, + { 0x2123, 56010 }, + { 0x27CA, 56011 }, + { 0x29D0, 56016 }, + { 0x2AE4, 56021 }, + { 0x2AE2, 56026 }, + { 0x205E, 56031 }, + { 0x3031, 56034 }, + { 0x3035, 56038 }, + { 0x3033, 56044 }, + { 0x3032, 56050 }, + { 0x3034, 56057 }, + { 0x007C, 56066 }, + { 0x2AEF, 56068 }, + { 0x2AF0, 56073 }, + { 0x237F, 56078 }, + { 0x23D0, 56083 }, + { 0x26A8, 56086 }, + { 0x2E2F, 56091 }, + { 0x299A, 56093 }, + { 0x22EE, 56096 }, + { 0x303B, 56098 }, + { 0x2317, 56102 }, + { 0x2101, 56104 }, + { 0x0026, 56108 }, + { 0x260A, 56109 }, + { 0x22A6, 56111 }, + { 0x2623, 56112 }, + { 0x902F, 56114 }, + { 0x900E, 56118 }, + { 0x9085, 56123 }, + { 0x9046, 56127 }, + { 0x901A, 56132 }, + { 0x9040, 56137 }, + { 0x9079, 56141 }, + { 0x9030, 56147 }, + { 0x907D, 56151 }, + { 0x907C, 56156 }, + { 0x909C, 56161 }, + { 0x909E, 56166 }, + { 0x909A, 56171 }, + { 0x90A1, 56177 }, + { 0x909F, 56183 }, + { 0x909D, 56188 }, + { 0x909B, 56193 }, + { 0x90A0, 56198 }, + { 0x9033, 56203 }, + { 0x900D, 56209 }, + { 0x9097, 56214 }, + { 0x90C8, 56218 }, + { 0x90C9, 56223 }, + { 0x90CA, 56228 }, + { 0x9086, 56233 }, + { 0x9080, 56237 }, + { 0x902E, 56242 }, + { 0x9048, 56246 }, + { 0x9004, 56251 }, + { 0x9003, 56256 }, + { 0x9000, 56261 }, + { 0x9025, 56265 }, + { 0x9066, 56269 }, + { 0x902D, 56273 }, + { 0x9078, 56277 }, + { 0x9014, 56282 }, + { 0x9019, 56286 }, + { 0x906A, 56290 }, + { 0x9001, 56295 }, + { 0x90D0, 56299 }, + { 0x90D2, 56306 }, + { 0x90D3, 56313 }, + { 0x90D1, 56320 }, + { 0x90CE, 56327 }, + { 0x90CF, 56332 }, + { 0x9060, 56337 }, + { 0x9074, 56342 }, + { 0x90C5, 56347 }, + { 0x90CB, 56354 }, + { 0x90BC, 56361 }, + { 0x90C7, 56367 }, + { 0x90C3, 56372 }, + { 0x90C4, 56379 }, + { 0x90C6, 56386 }, + { 0x90BE, 56393 }, + { 0x9034, 56400 }, + { 0x90B9, 56405 }, + { 0x90BD, 56412 }, + { 0x90BF, 56418 }, + { 0x90C2, 56424 }, + { 0x90C1, 56431 }, + { 0x90BA, 56438 }, + { 0x90C0, 56444 }, + { 0x90BB, 56450 }, + { 0x90CC, 56456 }, + { 0x90D8, 56462 }, + { 0x90D9, 56467 }, + { 0x908F, 56472 }, + { 0x90F5, 56478 }, + { 0x9016, 56484 }, + { 0x9091, 56489 }, + { 0x9090, 56495 }, + { 0x90AC, 56501 }, + { 0x9037, 56507 }, + { 0x9024, 56512 }, + { 0x907F, 56516 }, + { 0x90F4, 56521 }, + { 0x908B, 56526 }, + { 0x908A, 56532 }, + { 0x908C, 56538 }, + { 0x908E, 56544 }, + { 0x908D, 56550 }, + { 0x9057, 56556 }, + { 0x9047, 56561 }, + { 0x9015, 56566 }, + { 0x905B, 56571 }, + { 0x9020, 56575 }, + { 0x9059, 56580 }, + { 0x9026, 56585 }, + { 0x9017, 56590 }, + { 0x9029, 56594 }, + { 0x9069, 56598 }, + { 0x90E8, 56603 }, + { 0x900F, 56607 }, + { 0x9087, 56611 }, + { 0x9058, 56615 }, + { 0x9006, 56620 }, + { 0x9005, 56625 }, + { 0x90D4, 56630 }, + { 0x90D6, 56637 }, + { 0x90D7, 56644 }, + { 0x90D5, 56651 }, + { 0x90CD, 56658 }, + { 0x9050, 56663 }, + { 0x90EC, 56667 }, + { 0x90EB, 56672 }, + { 0x90ED, 56677 }, + { 0x90EF, 56682 }, + { 0x90E9, 56687 }, + { 0x90EE, 56692 }, + { 0x90EA, 56697 }, + { 0x9056, 56702 }, + { 0x9099, 56706 }, + { 0x9055, 56710 }, + { 0x90B6, 56714 }, + { 0x903F, 56721 }, + { 0x904F, 56725 }, + { 0x90F3, 56731 }, + { 0x90F1, 56737 }, + { 0x901B, 56743 }, + { 0x9089, 56748 }, + { 0x9083, 56752 }, + { 0x9082, 56757 }, + { 0x9081, 56762 }, + { 0x9061, 56767 }, + { 0x905D, 56771 }, + { 0x9041, 56775 }, + { 0x9049, 56779 }, + { 0x903C, 56783 }, + { 0x907E, 56787 }, + { 0x901F, 56791 }, + { 0x9065, 56796 }, + { 0x902B, 56801 }, + { 0x902A, 56807 }, + { 0x9013, 56812 }, + { 0x9031, 56816 }, + { 0x9027, 56820 }, + { 0x9021, 56824 }, + { 0x9053, 56829 }, + { 0x9084, 56833 }, + { 0x9022, 56838 }, + { 0x9023, 56843 }, + { 0x9018, 56847 }, + { 0x9067, 56851 }, + { 0x903B, 56856 }, + { 0x90DA, 56861 }, + { 0x90DB, 56867 }, + { 0x90DC, 56873 }, + { 0x90DD, 56878 }, + { 0x9092, 56883 }, + { 0x9095, 56887 }, + { 0x9094, 56893 }, + { 0x9093, 56900 }, + { 0x90E6, 56907 }, + { 0x9068, 56912 }, + { 0x90B7, 56916 }, + { 0x9007, 56920 }, + { 0x903A, 56924 }, + { 0x9042, 56928 }, + { 0x904A, 56933 }, + { 0x900C, 56937 }, + { 0x90A3, 56941 }, + { 0x90A5, 56948 }, + { 0x90B1, 56955 }, + { 0x90A2, 56961 }, + { 0x90A6, 56967 }, + { 0x90AA, 56973 }, + { 0x90AB, 56979 }, + { 0x90B3, 56985 }, + { 0x90A4, 56992 }, + { 0x90A8, 56998 }, + { 0x90A9, 57004 }, + { 0x90A7, 57011 }, + { 0x90B2, 57016 }, + { 0x901E, 57022 }, + { 0x9038, 57026 }, + { 0x904D, 57030 }, + { 0x901D, 57035 }, + { 0x90E2, 57039 }, + { 0x90E3, 57044 }, + { 0x90E4, 57050 }, + { 0x90E5, 57056 }, + { 0x90DE, 57062 }, + { 0x90DF, 57067 }, + { 0x90E0, 57073 }, + { 0x90E1, 57079 }, + { 0x9088, 57085 }, + { 0x9063, 57089 }, + { 0x9043, 57094 }, + { 0x9036, 57099 }, + { 0x90E7, 57104 }, + { 0x907B, 57109 }, + { 0x90B0, 57113 }, + { 0x90AF, 57118 }, + { 0x90AE, 57123 }, + { 0x9035, 57128 }, + { 0x907A, 57132 }, + { 0x9010, 57136 }, + { 0x904E, 57140 }, + { 0x90F2, 57146 }, + { 0x90F0, 57152 }, + { 0x901C, 57158 }, + { 0x9032, 57163 }, + { 0x9075, 57167 }, + { 0x902C, 57172 }, + { 0x9039, 57177 }, + { 0x905A, 57181 }, + { 0x9008, 57186 }, + { 0x9096, 57190 }, + { 0x900A, 57194 }, + { 0x900B, 57198 }, + { 0x905C, 57203 }, + { 0x90AD, 57207 }, + { 0x9052, 57213 }, + { 0x9011, 57219 }, + { 0x9051, 57223 }, + { 0x9012, 57228 }, + { 0x9064, 57233 }, + { 0x90B4, 57237 }, + { 0x90B5, 57243 }, + { 0x9098, 57249 }, + { 0x90B8, 57253 }, + { 0x905F, 57257 }, + { 0x903D, 57262 }, + { 0x9009, 57267 }, + { 0x905E, 57271 }, + { 0x903E, 57276 }, + { 0x9002, 57281 }, + { 0x9076, 57285 }, + { 0x9077, 57290 }, + { 0x9028, 57295 }, + { 0x9045, 57299 }, + { 0x9044, 57303 }, + { 0x9073, 57307 }, + { 0x9072, 57311 }, + { 0x906D, 57315 }, + { 0x9070, 57319 }, + { 0x9062, 57323 }, + { 0x904C, 57327 }, + { 0x9054, 57331 }, + { 0x904B, 57335 }, + { 0x906C, 57339 }, + { 0x9071, 57343 }, + { 0x906B, 57347 }, + { 0x906E, 57351 }, + { 0x906F, 57355 }, + { 0x2651, 57359 }, + { 0x2040, 57360 }, + { 0x21B7, 57362 }, + { 0x21BB, 57366 }, + { 0x2941, 57370 }, + { 0x27F3, 57374 }, + { 0x2232, 57378 }, + { 0x2231, 57381 }, + { 0x033D, 57383 }, + { 0x0353, 57386 }, + { 0x1DD0, 57389 }, + { 0x031D, 57392 }, + { 0x1DD1, 57396 }, + { 0x1DD2, 57399 }, + { 0x0307, 57402 }, + { 0x0358, 57405 }, + { 0x0323, 57409 }, + { 0x0332, 57412 }, + { 0x034A, 57415 }, + { 0x031E, 57419 }, + { 0x20DC, 57423 }, + { 0x0309, 57427 }, + { 0x031B, 57430 }, + { 0x0351, 57432 }, + { 0x031C, 57437 }, + { 0x0318, 57442 }, + { 0x031A, 57446 }, + { 0x0349, 57450 }, + { 0x20D6, 57454 }, + { 0x20EE, 57458 }, + { 0x20E1, 57462 }, + { 0x034D, 57467 }, + { 0x20D0, 57472 }, + { 0x1DFE, 57476 }, + { 0x0354, 57480 }, + { 0x20EB, 57484 }, + { 0x0336, 57489 }, + { 0x0338, 57493 }, + { 0x20D2, 57497 }, + { 0x031F, 57502 }, + { 0x030A, 57506 }, + { 0x0325, 57509 }, + { 0x20D8, 57512 }, + { 0x20E9, 57515 }, + { 0x0341, 57519 }, + { 0x0301, 57523 }, + { 0x0317, 57526 }, + { 0x0306, 57530 }, + { 0x032E, 57532 }, + { 0x030C, 57535 }, + { 0x032C, 57537 }, + { 0x0313, 57540 }, + { 0x0315, 57543 }, + { 0x0326, 57547 }, + { 0x0340, 57550 }, + { 0x0300, 57554 }, + { 0x0316, 57557 }, + { 0x0343, 57561 }, + { 0x9242, 57564 }, + { 0x9244, 57568 }, + { 0x9243, 57572 }, + { 0x0344, 57576 }, + { 0x0342, 57580 }, + { 0x0345, 57583 }, + { 0x0363, 57586 }, + { 0x0368, 57591 }, + { 0x1DD7, 57596 }, + { 0x0369, 57602 }, + { 0x0364, 57607 }, + { 0x1DDA, 57612 }, + { 0x036A, 57617 }, + { 0x0365, 57622 }, + { 0x1DDC, 57627 }, + { 0x1DDD, 57632 }, + { 0x036B, 57637 }, + { 0x1DE0, 57642 }, + { 0x0366, 57647 }, + { 0x036C, 57652 }, + { 0x1DCA, 57657 }, + { 0x1DE3, 57663 }, + { 0x1DE4, 57669 }, + { 0x036D, 57674 }, + { 0x0367, 57679 }, + { 0x036E, 57684 }, + { 0x036F, 57689 }, + { 0x1DE6, 57694 }, + { 0x1DD4, 57699 }, + { 0x1DD5, 57704 }, + { 0x1DD6, 57709 }, + { 0x1DD9, 57714 }, + { 0x1DE5, 57719 }, + { 0x1DD8, 57725 }, + { 0x1DD3, 57731 }, + { 0x1DDB, 57739 }, + { 0x1DDE, 57745 }, + { 0x1DDF, 57751 }, + { 0x1DE1, 57757 }, + { 0x1DE2, 57763 }, + { 0x0320, 57769 }, + { 0x0357, 57773 }, + { 0x0339, 57778 }, + { 0x0319, 57783 }, + { 0x20D7, 57787 }, + { 0x20EF, 57791 }, + { 0x20D1, 57795 }, + { 0x0356, 57799 }, + { 0x1DFF, 57806 }, + { 0x0350, 57813 }, + { 0x0355, 57817 }, + { 0x0335, 57821 }, + { 0x0337, 57825 }, + { 0x20D3, 57829 }, + { 0x1DC2, 57834 }, + { 0x20DB, 57837 }, + { 0x0303, 57841 }, + { 0x0330, 57843 }, + { 0x0334, 57846 }, + { 0x034C, 57849 }, + { 0x0346, 57854 }, + { 0x032A, 57857 }, + { 0x1DC1, 57860 }, + { 0x1DC0, 57864 }, + { 0x0333, 57868 }, + { 0x035A, 57872 }, + { 0x030B, 57876 }, + { 0x035D, 57880 }, + { 0x035C, 57883 }, + { 0x030F, 57887 }, + { 0x0360, 57891 }, + { 0x6E22, 57894 }, + { 0x6E23, 57899 }, + { 0x035E, 57904 }, + { 0x035F, 57907 }, + { 0x0361, 57911 }, + { 0x033F, 57915 }, + { 0x030E, 57918 }, + { 0x0348, 57923 }, + { 0x20E6, 57928 }, + { 0x1DCD, 57933 }, + { 0x0362, 57937 }, + { 0x0347, 57942 }, + { 0x0304, 57946 }, + { 0x6E24, 57948 }, + { 0x0331, 57952 }, + { 0x6E25, 57955 }, + { 0x0328, 57959 }, + { 0x1DCE, 57961 }, + { 0x033B, 57964 }, + { 0x20E8, 57967 }, + { 0x0312, 57970 }, + { 0x035B, 57974 }, + { 0x1DCF, 57977 }, + { 0x20E7, 57980 }, + { 0x0327, 57983 }, + { 0x0352, 57985 }, + { 0x20E5, 57987 }, + { 0x033C, 57991 }, + { 0x034E, 57994 }, + { 0x20F0, 57998 }, + { 0x0359, 58001 }, + { 0x5670, 58004 }, + { 0x0485, 58009 }, + { 0x0486, 58013 }, + { 0x0483, 58017 }, + { 0x566F, 58020 }, + { 0x567C, 58023 }, + { 0x2DF6, 58026 }, + { 0x2DEA, 58030 }, + { 0x2DE0, 58034 }, + { 0x2DE3, 58038 }, + { 0x2DE7, 58042 }, + { 0x2DE8, 58046 }, + { 0x2DE9, 58050 }, + { 0x2DEC, 58054 }, + { 0x2DED, 58058 }, + { 0x2DEF, 58062 }, + { 0x2DF7, 58066 }, + { 0x2DE6, 58070 }, + { 0x2DEB, 58074 }, + { 0x2DEE, 58078 }, + { 0x2DE1, 58082 }, + { 0x2DFB, 58086 }, + { 0x2DE5, 58090 }, + { 0x2DFE, 58094 }, + { 0x2DF1, 58099 }, + { 0x2DE2, 58103 }, + { 0x2DF2, 58107 }, + { 0x2DF0, 58111 }, + { 0x2DFA, 58115 }, + { 0x2DE4, 58119 }, + { 0x2DF4, 58123 }, + { 0x2DF8, 58127 }, + { 0x2DF5, 58131 }, + { 0x2DF3, 58135 }, + { 0x2DFD, 58139 }, + { 0x2DFC, 58144 }, + { 0x2DFF, 58149 }, + { 0x2DF9, 58155 }, + { 0x5671, 58160 }, + { 0x0488, 58165 }, + { 0x567D, 58170 }, + { 0x0489, 58173 }, + { 0x0487, 58177 }, + { 0x5672, 58180 }, + { 0x0484, 58185 }, + { 0x034F, 58188 }, + { 0x0311, 58191 }, + { 0x032F, 58194 }, + { 0x033A, 58198 }, + { 0x032B, 58202 }, + { 0x6E20, 58207 }, + { 0x6E21, 58211 }, + { 0x0305, 58215 }, + { 0x0314, 58217 }, + { 0x030D, 58221 }, + { 0x0329, 58225 }, + { 0x033E, 58229 }, + { 0x20D9, 58232 }, + { 0x20D5, 58236 }, + { 0x0308, 58240 }, + { 0x0324, 58242 }, + { 0x20DD, 58245 }, + { 0x20E0, 58248 }, + { 0x20E3, 58252 }, + { 0x20E2, 58255 }, + { 0x20DE, 58258 }, + { 0x20E4, 58261 }, + { 0x20DF, 58266 }, + { 0x20EA, 58269 }, + { 0x20ED, 58273 }, + { 0x0322, 58279 }, + { 0x0302, 58283 }, + { 0x032D, 58286 }, + { 0x6E26, 58290 }, + { 0x034B, 58293 }, + { 0x20EC, 58296 }, + { 0x1DC3, 58302 }, + { 0x0310, 58305 }, + { 0x0321, 58307 }, + { 0x1DC7, 58311 }, + { 0x1DCB, 58313 }, + { 0x1DC5, 58315 }, + { 0x1DC4, 58317 }, + { 0x1DCC, 58319 }, + { 0x1DC6, 58321 }, + { 0x20DA, 58323 }, + { 0x20D4, 58327 }, + { 0x1DC9, 58331 }, + { 0x1DC8, 58333 }, + { 0x3099, 58335 }, + { 0x309A, 58340 }, + { 0x2A6D, 58345 }, + { 0x00A9, 58349 }, + { 0x8000, 58351 }, + { 0x8001, 58354 }, + { 0x8004, 58359 }, + { 0x8002, 58364 }, + { 0x8005, 58369 }, + { 0x8008, 58374 }, + { 0x8003, 58379 }, + { 0x8007, 58385 }, + { 0x8006, 58390 }, + { 0x808A, 58396 }, + { 0x808C, 58399 }, + { 0x808B, 58407 }, + { 0x813F, 58412 }, + { 0x8140, 58415 }, + { 0x830B, 58419 }, + { 0x830D, 58422 }, + { 0x830C, 58427 }, + { 0x8310, 58431 }, + { 0x830E, 58441 }, + { 0x830F, 58452 }, + { 0x8009, 58460 }, + { 0x800A, 58463 }, + { 0x8015, 58466 }, + { 0x8014, 58470 }, + { 0x800F, 58479 }, + { 0x800D, 58484 }, + { 0x8010, 58489 }, + { 0x800B, 58495 }, + { 0x800C, 58500 }, + { 0x800E, 58506 }, + { 0x8011, 58512 }, + { 0x8012, 58517 }, + { 0x8013, 58522 }, + { 0x801C, 58527 }, + { 0x801D, 58530 }, + { 0x801E, 58533 }, + { 0x801F, 58538 }, + { 0x8020, 58545 }, + { 0x8021, 58548 }, + { 0x8024, 58553 }, + { 0x8026, 58558 }, + { 0x8027, 58563 }, + { 0x8028, 58568 }, + { 0x8022, 58573 }, + { 0x8023, 58578 }, + { 0x8025, 58583 }, + { 0x802D, 58588 }, + { 0x802E, 58591 }, + { 0x8031, 58596 }, + { 0x8030, 58602 }, + { 0x802F, 58611 }, + { 0x8040, 58616 }, + { 0x8049, 58619 }, + { 0x804A, 58622 }, + { 0x804B, 58627 }, + { 0x804C, 58632 }, + { 0x804D, 58638 }, + { 0x804E, 58641 }, + { 0x804F, 58647 }, + { 0x8050, 58653 }, + { 0x8055, 58658 }, + { 0x8072, 58661 }, + { 0x807A, 58664 }, + { 0x807C, 58667 }, + { 0x807B, 58671 }, + { 0x807D, 58676 }, + { 0x808D, 58680 }, + { 0x808E, 58683 }, + { 0x8093, 58692 }, + { 0x8090, 58697 }, + { 0x808F, 58702 }, + { 0x8091, 58707 }, + { 0x8092, 58712 }, + { 0x8096, 58717 }, + { 0x8097, 58720 }, + { 0x809A, 58723 }, + { 0x8098, 58728 }, + { 0x8099, 58733 }, + { 0x809D, 58739 }, + { 0x809B, 58743 }, + { 0x809C, 58748 }, + { 0x80B5, 58753 }, + { 0x80B6, 58756 }, + { 0x8100, 58760 }, + { 0x8101, 58763 }, + { 0x8102, 58768 }, + { 0x8103, 58773 }, + { 0x8116, 58778 }, + { 0x8117, 58781 }, + { 0x8129, 58786 }, + { 0x812B, 58789 }, + { 0x812A, 58793 }, + { 0x812D, 58797 }, + { 0x8136, 58800 }, + { 0x812E, 58805 }, + { 0x8130, 58810 }, + { 0x8132, 58815 }, + { 0x8133, 58820 }, + { 0x8134, 58825 }, + { 0x8135, 58830 }, + { 0x812F, 58835 }, + { 0x8131, 58840 }, + { 0x8137, 58845 }, + { 0x8141, 58848 }, + { 0x8145, 58851 }, + { 0x814B, 58854 }, + { 0x814C, 58857 }, + { 0x814E, 58863 }, + { 0x814F, 58866 }, + { 0x8152, 58871 }, + { 0x8150, 58875 }, + { 0x8151, 58880 }, + { 0x8154, 58885 }, + { 0x8155, 58888 }, + { 0x8157, 58891 }, + { 0x8158, 58894 }, + { 0x8187, 58899 }, + { 0x8159, 58904 }, + { 0x815A, 58909 }, + { 0x815F, 58916 }, + { 0x8162, 58921 }, + { 0x8167, 58926 }, + { 0x816B, 58931 }, + { 0x816E, 58936 }, + { 0x8170, 58941 }, + { 0x8172, 58946 }, + { 0x8173, 58951 }, + { 0x8174, 58956 }, + { 0x8175, 58961 }, + { 0x8176, 58968 }, + { 0x8177, 58975 }, + { 0x8178, 58982 }, + { 0x8179, 58987 }, + { 0x817A, 58994 }, + { 0x817C, 58999 }, + { 0x817D, 59004 }, + { 0x817E, 59009 }, + { 0x8188, 59014 }, + { 0x8189, 59019 }, + { 0x818C, 59024 }, + { 0x815C, 59029 }, + { 0x815E, 59034 }, + { 0x8163, 59039 }, + { 0x8165, 59044 }, + { 0x8166, 59049 }, + { 0x816D, 59058 }, + { 0x816F, 59063 }, + { 0x8171, 59068 }, + { 0x817B, 59073 }, + { 0x817F, 59078 }, + { 0x8180, 59083 }, + { 0x8181, 59088 }, + { 0x8183, 59093 }, + { 0x8184, 59098 }, + { 0x8186, 59103 }, + { 0x818B, 59108 }, + { 0x815B, 59113 }, + { 0x8161, 59118 }, + { 0x8164, 59123 }, + { 0x8168, 59129 }, + { 0x8169, 59134 }, + { 0x816A, 59141 }, + { 0x816C, 59148 }, + { 0x8182, 59153 }, + { 0x818A, 59158 }, + { 0x815D, 59165 }, + { 0x8160, 59170 }, + { 0x8185, 59175 }, + { 0x81A0, 59180 }, + { 0x81A2, 59183 }, + { 0x81A3, 59188 }, + { 0x81A1, 59193 }, + { 0x81AA, 59198 }, + { 0x81AB, 59201 }, + { 0x81B7, 59213 }, + { 0x81F7, 59216 }, + { 0x81FB, 59219 }, + { 0x81FC, 59222 }, + { 0x8220, 59227 }, + { 0x8222, 59230 }, + { 0x8221, 59234 }, + { 0x8228, 59239 }, + { 0x822A, 59242 }, + { 0x822C, 59245 }, + { 0x822D, 59248 }, + { 0x823E, 59253 }, + { 0x8248, 59256 }, + { 0x8249, 59259 }, + { 0x824A, 59264 }, + { 0x824B, 59269 }, + { 0x824C, 59273 }, + { 0x824D, 59276 }, + { 0x8261, 59281 }, + { 0x827A, 59284 }, + { 0x827F, 59287 }, + { 0x8280, 59290 }, + { 0x8284, 59295 }, + { 0x8285, 59300 }, + { 0x8287, 59305 }, + { 0x8281, 59310 }, + { 0x8282, 59315 }, + { 0x8283, 59320 }, + { 0x8286, 59325 }, + { 0x8288, 59330 }, + { 0x8289, 59335 }, + { 0x828F, 59340 }, + { 0x8291, 59343 }, + { 0x8292, 59346 }, + { 0x8293, 59349 }, + { 0x82DB, 59352 }, + { 0x82DC, 59355 }, + { 0x82E2, 59359 }, + { 0x82E3, 59362 }, + { 0x82EB, 59367 }, + { 0x82EF, 59370 }, + { 0x82ED, 59374 }, + { 0x82EE, 59379 }, + { 0x82EC, 59384 }, + { 0x82FC, 59388 }, + { 0x82FD, 59391 }, + { 0x82FE, 59395 }, + { 0x82FF, 59398 }, + { 0x8305, 59402 }, + { 0x8311, 59405 }, + { 0x8312, 59408 }, + { 0x8313, 59411 }, + { 0x8319, 59414 }, + { 0x8317, 59418 }, + { 0x8318, 59427 }, + { 0x8316, 59437 }, + { 0x8315, 59442 }, + { 0x8314, 59447 }, + { 0x831A, 59451 }, + { 0x831B, 59455 }, + { 0x831D, 59461 }, + { 0x8321, 59464 }, + { 0x831F, 59469 }, + { 0x8320, 59476 }, + { 0x831E, 59481 }, + { 0x8326, 59486 }, + { 0x8327, 59489 }, + { 0x8328, 59493 }, + { 0x832A, 59496 }, + { 0x8329, 59500 }, + { 0x835D, 59505 }, + { 0x835E, 59508 }, + { 0x835F, 59512 }, + { 0x8363, 59518 }, + { 0x8364, 59521 }, + { 0x836A, 59526 }, + { 0x8016, 59529 }, + { 0x8019, 59532 }, + { 0x8018, 59539 }, + { 0x801A, 59545 }, + { 0x801B, 59550 }, + { 0x8017, 59555 }, + { 0x8038, 59560 }, + { 0x803A, 59563 }, + { 0x803C, 59568 }, + { 0x803D, 59575 }, + { 0x803B, 59588 }, + { 0x8039, 59600 }, + { 0x8041, 59605 }, + { 0x8044, 59608 }, + { 0x8045, 59611 }, + { 0x8047, 59616 }, + { 0x8053, 59619 }, + { 0x8056, 59622 }, + { 0x8057, 59625 }, + { 0x805A, 59633 }, + { 0x805B, 59639 }, + { 0x805C, 59645 }, + { 0x805D, 59653 }, + { 0x8060, 59659 }, + { 0x8061, 59665 }, + { 0x8062, 59671 }, + { 0x8064, 59679 }, + { 0x8065, 59685 }, + { 0x8066, 59691 }, + { 0x8068, 59699 }, + { 0x806A, 59705 }, + { 0x806C, 59711 }, + { 0x805F, 59719 }, + { 0x8063, 59725 }, + { 0x8067, 59731 }, + { 0x8069, 59737 }, + { 0x806D, 59745 }, + { 0x8058, 59751 }, + { 0x805E, 59757 }, + { 0x806B, 59763 }, + { 0x8059, 59769 }, + { 0x806E, 59775 }, + { 0x806F, 59778 }, + { 0x8073, 59781 }, + { 0x8074, 59784 }, + { 0x8075, 59787 }, + { 0x8077, 59792 }, + { 0x8078, 59795 }, + { 0x807E, 59802 }, + { 0x807F, 59805 }, + { 0x8081, 59810 }, + { 0x8083, 59813 }, + { 0x8084, 59816 }, + { 0x80B7, 59819 }, + { 0x80ED, 59822 }, + { 0x80B8, 59827 }, + { 0x80B9, 59836 }, + { 0x80BA, 59843 }, + { 0x80EA, 59850 }, + { 0x80BC, 59855 }, + { 0x80C3, 59860 }, + { 0x80C4, 59865 }, + { 0x80C7, 59870 }, + { 0x80C8, 59875 }, + { 0x80C9, 59882 }, + { 0x80CA, 59887 }, + { 0x80CD, 59895 }, + { 0x80D1, 59900 }, + { 0x80D4, 59909 }, + { 0x80DD, 59916 }, + { 0x80DE, 59921 }, + { 0x80DF, 59928 }, + { 0x80E2, 59933 }, + { 0x80EB, 59938 }, + { 0x80EC, 59943 }, + { 0x80BB, 59950 }, + { 0x80BD, 59958 }, + { 0x80BF, 59963 }, + { 0x80C0, 59968 }, + { 0x80C1, 59975 }, + { 0x80C2, 59980 }, + { 0x80C5, 59987 }, + { 0x80C6, 59994 }, + { 0x80CC, 59999 }, + { 0x80CE, 60004 }, + { 0x80CF, 60009 }, + { 0x80D2, 60016 }, + { 0x80D3, 60021 }, + { 0x80D6, 60028 }, + { 0x80D7, 60034 }, + { 0x80D8, 60043 }, + { 0x80DA, 60048 }, + { 0x80DB, 60053 }, + { 0x80DC, 60060 }, + { 0x80E0, 60067 }, + { 0x80E1, 60072 }, + { 0x80E3, 60079 }, + { 0x80E4, 60084 }, + { 0x80E5, 60089 }, + { 0x80E6, 60094 }, + { 0x80E8, 60101 }, + { 0x80BE, 60106 }, + { 0x80CB, 60113 }, + { 0x80D0, 60119 }, + { 0x80D5, 60126 }, + { 0x80E7, 60131 }, + { 0x80E9, 60136 }, + { 0x80D9, 60141 }, + { 0x80F0, 60146 }, + { 0x80F1, 60149 }, + { 0x80F2, 60157 }, + { 0x80F3, 60160 }, + { 0x80F5, 60169 }, + { 0x80F6, 60172 }, + { 0x80FB, 60175 }, + { 0x8104, 60178 }, + { 0x8105, 60181 }, + { 0x8106, 60186 }, + { 0x8118, 60191 }, + { 0x811D, 60194 }, + { 0x8119, 60198 }, + { 0x811A, 60203 }, + { 0x811B, 60211 }, + { 0x811C, 60216 }, + { 0x811E, 60223 }, + { 0x8121, 60226 }, + { 0x811F, 60232 }, + { 0x8120, 60239 }, + { 0x8122, 60244 }, + { 0x8123, 60247 }, + { 0x8124, 60250 }, + { 0x8125, 60255 }, + { 0x812C, 60258 }, + { 0x8146, 60261 }, + { 0x8148, 60264 }, + { 0x8147, 60268 }, + { 0x814A, 60272 }, + { 0x8149, 60276 }, + { 0x814D, 60287 }, + { 0x8156, 60290 }, + { 0x818D, 60293 }, + { 0x818E, 60296 }, + { 0x818F, 60301 }, + { 0x8195, 60304 }, + { 0x8196, 60307 }, + { 0x8197, 60313 }, + { 0x8198, 60316 }, + { 0x8199, 60321 }, + { 0x81A4, 60326 }, + { 0x81A5, 60329 }, + { 0x81AC, 60332 }, + { 0x81AD, 60335 }, + { 0x81AE, 60338 }, + { 0x81AF, 60343 }, + { 0x81B0, 60346 }, + { 0x81B1, 60349 }, + { 0x81B2, 60353 }, + { 0x81B3, 60356 }, + { 0x81B4, 60359 }, + { 0x81F2, 60364 }, + { 0x81F3, 60367 }, + { 0x81F4, 60372 }, + { 0x81F5, 60375 }, + { 0x81F6, 60380 }, + { 0x81F8, 60387 }, + { 0x81FD, 60390 }, + { 0x8211, 60393 }, + { 0x81FE, 60397 }, + { 0x8203, 60402 }, + { 0x8204, 60409 }, + { 0x8208, 60414 }, + { 0x8209, 60419 }, + { 0x820B, 60426 }, + { 0x820C, 60433 }, + { 0x820D, 60438 }, + { 0x820E, 60443 }, + { 0x81FF, 60450 }, + { 0x8200, 60455 }, + { 0x8201, 60460 }, + { 0x8202, 60466 }, + { 0x8205, 60472 }, + { 0x8206, 60477 }, + { 0x8207, 60482 }, + { 0x820F, 60489 }, + { 0x8210, 60496 }, + { 0x820A, 60501 }, + { 0x8215, 60506 }, + { 0x8214, 60510 }, + { 0x8212, 60514 }, + { 0x8213, 60519 }, + { 0x8216, 60524 }, + { 0x821B, 60527 }, + { 0x821C, 60530 }, + { 0x821D, 60533 }, + { 0x821E, 60536 }, + { 0x821F, 60541 }, + { 0x8223, 60549 }, + { 0x8224, 60552 }, + { 0x8225, 60555 }, + { 0x8229, 60558 }, + { 0x822B, 60561 }, + { 0x822E, 60564 }, + { 0x822F, 60567 }, + { 0x823F, 60571 }, + { 0x8246, 60574 }, + { 0x8245, 60577 }, + { 0x824E, 60581 }, + { 0x824F, 60584 }, + { 0x8251, 60587 }, + { 0x8250, 60595 }, + { 0x8263, 60601 }, + { 0x826A, 60604 }, + { 0x8269, 60609 }, + { 0x8264, 60613 }, + { 0x8266, 60619 }, + { 0x8267, 60625 }, + { 0x8268, 60636 }, + { 0x8265, 60642 }, + { 0x826B, 60648 }, + { 0x826C, 60653 }, + { 0x827B, 60661 }, + { 0x827C, 60664 }, + { 0x827D, 60667 }, + { 0x8290, 60670 }, + { 0x8295, 60673 }, + { 0x82A8, 60676 }, + { 0x82A7, 60680 }, + { 0x8296, 60685 }, + { 0x8297, 60690 }, + { 0x8299, 60695 }, + { 0x829D, 60700 }, + { 0x82A2, 60705 }, + { 0x82A3, 60710 }, + { 0x82A4, 60715 }, + { 0x82A5, 60720 }, + { 0x8298, 60725 }, + { 0x829A, 60730 }, + { 0x829B, 60735 }, + { 0x829C, 60740 }, + { 0x829E, 60745 }, + { 0x829F, 60750 }, + { 0x82A1, 60755 }, + { 0x82A6, 60760 }, + { 0x82A0, 60765 }, + { 0x8294, 60770 }, + { 0x82A9, 60774 }, + { 0x82AA, 60777 }, + { 0x82AC, 60783 }, + { 0x82AD, 60786 }, + { 0x82BA, 60789 }, + { 0x82BB, 60792 }, + { 0x82BC, 60796 }, + { 0x82BD, 60807 }, + { 0x82D7, 60818 }, + { 0x82D8, 60821 }, + { 0x82DD, 60827 }, + { 0x82E4, 60830 }, + { 0x82E7, 60833 }, + { 0x82E9, 60836 }, + { 0x82F0, 60839 }, + { 0x82F1, 60842 }, + { 0x82F2, 60853 }, + { 0x82F3, 60857 }, + { 0x82F4, 60860 }, + { 0x82F9, 60865 }, + { 0x82F5, 60870 }, + { 0x82F6, 60875 }, + { 0x82F7, 60880 }, + { 0x82F8, 60885 }, + { 0x82FB, 60890 }, + { 0x8300, 60893 }, + { 0x8301, 60896 }, + { 0x8303, 60899 }, + { 0x8304, 60904 }, + { 0x8302, 60915 }, + { 0x8307, 60920 }, + { 0x8308, 60923 }, + { 0x8309, 60926 }, + { 0x830A, 60929 }, + { 0x832B, 60937 }, + { 0x832C, 60940 }, + { 0x832D, 60947 }, + { 0x832E, 60954 }, + { 0x832F, 60959 }, + { 0x8331, 60964 }, + { 0x8333, 60969 }, + { 0x8332, 60976 }, + { 0x8330, 60983 }, + { 0x8334, 60988 }, + { 0x8335, 60991 }, + { 0x8337, 60994 }, + { 0x8338, 60997 }, + { 0x834C, 61002 }, + { 0x833C, 61009 }, + { 0x8340, 61014 }, + { 0x8341, 61019 }, + { 0x8343, 61024 }, + { 0x8345, 61029 }, + { 0x8348, 61034 }, + { 0x834B, 61039 }, + { 0x834D, 61044 }, + { 0x833A, 61049 }, + { 0x833B, 61054 }, + { 0x833D, 61059 }, + { 0x833F, 61064 }, + { 0x8342, 61069 }, + { 0x8344, 61074 }, + { 0x8346, 61079 }, + { 0x8347, 61084 }, + { 0x8349, 61089 }, + { 0x833E, 61094 }, + { 0x834A, 61100 }, + { 0x834E, 61105 }, + { 0x8339, 61110 }, + { 0x8351, 61115 }, + { 0x8352, 61118 }, + { 0x8353, 61123 }, + { 0x8354, 61128 }, + { 0x8355, 61133 }, + { 0x835A, 61138 }, + { 0x835B, 61141 }, + { 0x835C, 61146 }, + { 0x8360, 61149 }, + { 0x8362, 61152 }, + { 0x8365, 61155 }, + { 0x8366, 61158 }, + { 0x8367, 61161 }, + { 0x8368, 61166 }, + { 0x836B, 61169 }, + { 0x836C, 61172 }, + { 0x836E, 61177 }, + { 0x8029, 61180 }, + { 0x802B, 61183 }, + { 0x802C, 61186 }, + { 0x8033, 61191 }, + { 0x8034, 61194 }, + { 0x8035, 61197 }, + { 0x803E, 61202 }, + { 0x8042, 61205 }, + { 0x8054, 61208 }, + { 0x8076, 61211 }, + { 0x8079, 61214 }, + { 0x8080, 61217 }, + { 0x8085, 61220 }, + { 0x8086, 61223 }, + { 0x8087, 61227 }, + { 0x8088, 61232 }, + { 0x8089, 61235 }, + { 0x8094, 61238 }, + { 0x8095, 61241 }, + { 0x809E, 61244 }, + { 0x80A0, 61247 }, + { 0x80A1, 61250 }, + { 0x80A2, 61253 }, + { 0x80A3, 61258 }, + { 0x80A4, 61265 }, + { 0x80A5, 61274 }, + { 0x80A9, 61279 }, + { 0x80AA, 61284 }, + { 0x80AF, 61290 }, + { 0x80B1, 61295 }, + { 0x80B2, 61300 }, + { 0x80B3, 61305 }, + { 0x80B4, 61310 }, + { 0x80A6, 61315 }, + { 0x80AB, 61320 }, + { 0x80AE, 61326 }, + { 0x80B0, 61331 }, + { 0x80A7, 61338 }, + { 0x80A8, 61344 }, + { 0x80AC, 61351 }, + { 0x80AD, 61356 }, + { 0x80EE, 61362 }, + { 0x80EF, 61365 }, + { 0x80F7, 61370 }, + { 0x80F9, 61373 }, + { 0x80F8, 61378 }, + { 0x80FA, 61382 }, + { 0x80FC, 61387 }, + { 0x8108, 61390 }, + { 0x8109, 61393 }, + { 0x810A, 61397 }, + { 0x810B, 61400 }, + { 0x810E, 61407 }, + { 0x810F, 61414 }, + { 0x810D, 61419 }, + { 0x810C, 61424 }, + { 0x8111, 61430 }, + { 0x8115, 61433 }, + { 0x8113, 61437 }, + { 0x8114, 61442 }, + { 0x8112, 61447 }, + { 0x8126, 61452 }, + { 0x8138, 61455 }, + { 0x8139, 61458 }, + { 0x813D, 61463 }, + { 0x813A, 61468 }, + { 0x813C, 61473 }, + { 0x813B, 61478 }, + { 0x813E, 61483 }, + { 0x8142, 61486 }, + { 0x8143, 61489 }, + { 0x8144, 61495 }, + { 0x8153, 61501 }, + { 0x8190, 61504 }, + { 0x8191, 61507 }, + { 0x8192, 61510 }, + { 0x8193, 61513 }, + { 0x8194, 61516 }, + { 0x819A, 61521 }, + { 0x819B, 61524 }, + { 0x81A7, 61527 }, + { 0x81FA, 61530 }, + { 0x8226, 61533 }, + { 0x8232, 61536 }, + { 0x8236, 61539 }, + { 0x8237, 61544 }, + { 0x8233, 61553 }, + { 0x8235, 61558 }, + { 0x8234, 61563 }, + { 0x8238, 61568 }, + { 0x8240, 61573 }, + { 0x8242, 61576 }, + { 0x8241, 61582 }, + { 0x8243, 61586 }, + { 0x8247, 61591 }, + { 0x8262, 61594 }, + { 0x82AE, 61597 }, + { 0x82AF, 61600 }, + { 0x82B5, 61605 }, + { 0x82B6, 61610 }, + { 0x82B2, 61617 }, + { 0x82B0, 61622 }, + { 0x82B4, 61627 }, + { 0x82B1, 61632 }, + { 0x82B3, 61637 }, + { 0x82B7, 61642 }, + { 0x82BF, 61645 }, + { 0x82C3, 61648 }, + { 0x82C4, 61651 }, + { 0x82C5, 61656 }, + { 0x82C6, 61661 }, + { 0x82C7, 61664 }, + { 0x82C8, 61669 }, + { 0x82CA, 61674 }, + { 0x82CB, 61679 }, + { 0x82CC, 61684 }, + { 0x82CD, 61689 }, + { 0x82CF, 61695 }, + { 0x82D0, 61700 }, + { 0x82D1, 61705 }, + { 0x82C9, 61710 }, + { 0x82CE, 61715 }, + { 0x82D3, 61720 }, + { 0x82D5, 61723 }, + { 0x82D4, 61731 }, + { 0x82D9, 61735 }, + { 0x82DE, 61738 }, + { 0x82DF, 61741 }, + { 0x82E0, 61747 }, + { 0x82E5, 61750 }, + { 0x82EA, 61753 }, + { 0x82FA, 61756 }, + { 0x8306, 61759 }, + { 0x831C, 61762 }, + { 0x8323, 61765 }, + { 0x8325, 61768 }, + { 0x8324, 61773 }, + { 0x8336, 61778 }, + { 0x8357, 61781 }, + { 0x8356, 61784 }, + { 0x8361, 61787 }, + { 0x8369, 61790 }, + { 0x802A, 61793 }, + { 0x8032, 61796 }, + { 0x8036, 61799 }, + { 0x8037, 61802 }, + { 0x8046, 61805 }, + { 0x8048, 61808 }, + { 0x8051, 61811 }, + { 0x8052, 61814 }, + { 0x8070, 61819 }, + { 0x8071, 61822 }, + { 0x8082, 61825 }, + { 0x809F, 61828 }, + { 0x80F4, 61831 }, + { 0x8107, 61834 }, + { 0x8110, 61837 }, + { 0x8127, 61840 }, + { 0x819F, 61843 }, + { 0x81A6, 61846 }, + { 0x81B8, 61849 }, + { 0x81B9, 61852 }, + { 0x81BA, 61857 }, + { 0x81BB, 61866 }, + { 0x81BC, 61873 }, + { 0x81E5, 61880 }, + { 0x81E6, 61885 }, + { 0x81E7, 61892 }, + { 0x81BD, 61901 }, + { 0x81BE, 61906 }, + { 0x81C1, 61911 }, + { 0x81C3, 61916 }, + { 0x81C4, 61921 }, + { 0x81C8, 61926 }, + { 0x81CA, 61931 }, + { 0x81CC, 61938 }, + { 0x81CD, 61943 }, + { 0x81CE, 61950 }, + { 0x81CF, 61957 }, + { 0x81D6, 61962 }, + { 0x81D8, 61967 }, + { 0x81D9, 61972 }, + { 0x81DB, 61979 }, + { 0x81E4, 61984 }, + { 0x81E8, 61995 }, + { 0x81E9, 62002 }, + { 0x81BF, 62007 }, + { 0x81C0, 62014 }, + { 0x81C2, 62019 }, + { 0x81C5, 62024 }, + { 0x81C6, 62029 }, + { 0x81C7, 62034 }, + { 0x81C9, 62041 }, + { 0x81CB, 62046 }, + { 0x81D0, 62052 }, + { 0x81D1, 62057 }, + { 0x81D2, 62062 }, + { 0x81D3, 62067 }, + { 0x81D7, 62076 }, + { 0x81DC, 62081 }, + { 0x81E1, 62088 }, + { 0x81E2, 62093 }, + { 0x81EA, 62098 }, + { 0x81D5, 62103 }, + { 0x81DA, 62108 }, + { 0x81DF, 62113 }, + { 0x81E0, 62118 }, + { 0x81E3, 62125 }, + { 0x81D4, 62130 }, + { 0x81DD, 62135 }, + { 0x81DE, 62144 }, + { 0x81EB, 62152 }, + { 0x81EC, 62156 }, + { 0x81EF, 62159 }, + { 0x81F0, 62163 }, + { 0x81ED, 62171 }, + { 0x81EE, 62176 }, + { 0x8217, 62183 }, + { 0x8218, 62186 }, + { 0x821A, 62191 }, + { 0x8219, 62195 }, + { 0x8227, 62200 }, + { 0x8239, 62203 }, + { 0x823D, 62206 }, + { 0x823A, 62210 }, + { 0x823B, 62215 }, + { 0x823C, 62222 }, + { 0x8244, 62227 }, + { 0x8260, 62230 }, + { 0x826D, 62233 }, + { 0x826F, 62236 }, + { 0x8274, 62242 }, + { 0x8275, 62248 }, + { 0x8277, 62254 }, + { 0x8270, 62260 }, + { 0x8271, 62266 }, + { 0x8272, 62272 }, + { 0x8273, 62279 }, + { 0x8276, 62285 }, + { 0x826E, 62291 }, + { 0x8278, 62297 }, + { 0x8279, 62303 }, + { 0x827E, 62310 }, + { 0x828A, 62313 }, + { 0x828C, 62316 }, + { 0x828D, 62321 }, + { 0x828B, 62326 }, + { 0x828E, 62331 }, + { 0x82B8, 62336 }, + { 0x82B9, 62339 }, + { 0x82BE, 62342 }, + { 0x82C0, 62345 }, + { 0x82D6, 62348 }, + { 0x82E1, 62351 }, + { 0x82E6, 62354 }, + { 0x8322, 62357 }, + { 0x834F, 62360 }, + { 0x8350, 62363 }, + { 0x8359, 62368 }, + { 0x836D, 62371 }, + { 0x803F, 62374 }, + { 0x8043, 62377 }, + { 0x80FD, 62380 }, + { 0x8128, 62383 }, + { 0x819C, 62386 }, + { 0x819E, 62389 }, + { 0x819D, 62401 }, + { 0x81A8, 62411 }, + { 0x81A9, 62414 }, + { 0x81B5, 62419 }, + { 0x81B6, 62422 }, + { 0x81F1, 62425 }, + { 0x81F9, 62428 }, + { 0x8230, 62431 }, + { 0x8231, 62434 }, + { 0x8252, 62437 }, + { 0x8253, 62440 }, + { 0x8257, 62445 }, + { 0x8258, 62453 }, + { 0x825E, 62458 }, + { 0x8254, 62465 }, + { 0x8255, 62470 }, + { 0x8256, 62477 }, + { 0x8259, 62482 }, + { 0x825A, 62487 }, + { 0x825B, 62492 }, + { 0x825C, 62500 }, + { 0x825D, 62507 }, + { 0x825F, 62516 }, + { 0x82AB, 62521 }, + { 0x82C1, 62524 }, + { 0x82D2, 62527 }, + { 0x82DA, 62530 }, + { 0x82E8, 62533 }, + { 0x8358, 62536 }, + { 0x80FE, 62539 }, + { 0x80FF, 62542 }, + { 0x82C2, 62547 }, + { 0x8461, 62550 }, + { 0x8462, 62557 }, + { 0x844F, 62564 }, + { 0x8434, 62569 }, + { 0x8458, 62574 }, + { 0x8415, 62579 }, + { 0x841E, 62584 }, + { 0x842C, 62589 }, + { 0x845A, 62594 }, + { 0x845D, 62600 }, + { 0x845F, 62608 }, + { 0x8460, 62614 }, + { 0x8411, 62620 }, + { 0x8404, 62625 }, + { 0x844E, 62630 }, + { 0x840B, 62636 }, + { 0x841A, 62641 }, + { 0x8428, 62646 }, + { 0x8440, 62651 }, + { 0x8400, 62658 }, + { 0x844A, 62663 }, + { 0x8450, 62669 }, + { 0x8435, 62674 }, + { 0x8459, 62679 }, + { 0x8416, 62684 }, + { 0x841F, 62689 }, + { 0x8423, 62694 }, + { 0x842D, 62699 }, + { 0x845B, 62704 }, + { 0x845E, 62710 }, + { 0x8410, 62718 }, + { 0x8403, 62723 }, + { 0x844D, 62728 }, + { 0x8454, 62734 }, + { 0x8455, 62739 }, + { 0x8439, 62746 }, + { 0x840A, 62751 }, + { 0x8419, 62756 }, + { 0x8422, 62761 }, + { 0x8427, 62766 }, + { 0x8431, 62771 }, + { 0x845C, 62776 }, + { 0x840F, 62782 }, + { 0x8402, 62787 }, + { 0x844C, 62792 }, + { 0x8452, 62798 }, + { 0x8453, 62803 }, + { 0x8438, 62810 }, + { 0x8409, 62815 }, + { 0x8418, 62820 }, + { 0x8421, 62825 }, + { 0x8426, 62830 }, + { 0x8430, 62835 }, + { 0x843C, 62840 }, + { 0x843E, 62847 }, + { 0x843F, 62855 }, + { 0x843D, 62863 }, + { 0x8414, 62870 }, + { 0x8407, 62875 }, + { 0x840E, 62880 }, + { 0x841D, 62885 }, + { 0x842B, 62890 }, + { 0x8446, 62895 }, + { 0x8449, 62902 }, + { 0x8447, 62910 }, + { 0x8448, 62917 }, + { 0x8413, 62924 }, + { 0x8406, 62929 }, + { 0x840D, 62934 }, + { 0x841C, 62939 }, + { 0x842A, 62944 }, + { 0x8444, 62949 }, + { 0x8445, 62956 }, + { 0x8412, 62963 }, + { 0x8405, 62968 }, + { 0x840C, 62973 }, + { 0x841B, 62978 }, + { 0x8429, 62983 }, + { 0x8442, 62988 }, + { 0x8443, 62996 }, + { 0x8441, 63004 }, + { 0x8433, 63011 }, + { 0x8432, 63019 }, + { 0x8401, 63027 }, + { 0x844B, 63032 }, + { 0x8451, 63038 }, + { 0x8436, 63043 }, + { 0x8437, 63048 }, + { 0x8408, 63055 }, + { 0x8417, 63060 }, + { 0x8420, 63065 }, + { 0x8424, 63070 }, + { 0x8425, 63075 }, + { 0x842E, 63082 }, + { 0x842F, 63087 }, + { 0x843A, 63094 }, + { 0x843B, 63101 }, + { 0x8457, 63108 }, + { 0x8456, 63112 }, + { 0x8470, 63116 }, + { 0x8472, 63123 }, + { 0x8473, 63128 }, + { 0x8471, 63133 }, + { 0x23CA, 63138 }, + { 0x23C8, 63144 }, + { 0x23C2, 63152 }, + { 0x23C5, 63160 }, + { 0x23C9, 63168 }, + { 0x23C7, 63174 }, + { 0x23C1, 63182 }, + { 0x23C4, 63190 }, + { 0x23CB, 63198 }, + { 0x23BE, 63205 }, + { 0x23C6, 63212 }, + { 0x23CC, 63218 }, + { 0x23BF, 63225 }, + { 0x23C0, 63232 }, + { 0x23C3, 63238 }, + { 0x00A8, 63244 }, + { 0x2331, 63245 }, + { 0x21A1, 63247 }, + { 0x2193, 63251 }, + { 0x2913, 63253 }, + { 0x21A7, 63257 }, + { 0x21B2, 63261 }, + { 0x21B3, 63266 }, + { 0x21B5, 63271 }, + { 0x21DF, 63276 }, + { 0x2908, 63281 }, + { 0x21F5, 63286 }, + { 0x2B07, 63292 }, + { 0x21E9, 63295 }, + { 0x2E14, 63298 }, + { 0x21E3, 63300 }, + { 0x21D3, 63303 }, + { 0x21CA, 63306 }, + { 0x290B, 63309 }, + { 0x21AF, 63312 }, + { 0x2959, 63315 }, + { 0x2961, 63322 }, + { 0x296F, 63329 }, + { 0x2965, 63340 }, + { 0x2955, 63351 }, + { 0x295D, 63358 }, + { 0x21C3, 63365 }, + { 0x21C2, 63370 }, + { 0x27F1, 63375 }, + { 0x2E0E, 63378 }, + { 0x212E, 63380 }, + { 0x2259, 63382 }, + { 0x213B, 63383 }, + { 0x6F3F, 63385 }, + { 0x6FE2, 63388 }, + { 0x6FE6, 63391 }, + { 0x6FE5, 63394 }, + { 0x6FE0, 63397 }, + { 0x6F0E, 63400 }, + { 0x6F5B, 63403 }, + { 0x6F5F, 63407 }, + { 0x6F3B, 63411 }, + { 0x6F08, 63415 }, + { 0x6F0B, 63418 }, + { 0x6F1A, 63421 }, + { 0x6F0C, 63423 }, + { 0x6F11, 63425 }, + { 0x6F16, 63428 }, + { 0x6F12, 63431 }, + { 0x6F15, 63434 }, + { 0x6F14, 63437 }, + { 0x6F19, 63440 }, + { 0x6F10, 63443 }, + { 0x6F18, 63446 }, + { 0x6F17, 63449 }, + { 0x6F13, 63452 }, + { 0x6F40, 63455 }, + { 0x6F41, 63458 }, + { 0x6F42, 63463 }, + { 0x6F43, 63468 }, + { 0x6F44, 63473 }, + { 0x6F45, 63478 }, + { 0x6F46, 63483 }, + { 0x6F47, 63488 }, + { 0x6F48, 63493 }, + { 0x6F49, 63498 }, + { 0x6F4A, 63503 }, + { 0x6F4B, 63508 }, + { 0x6F4C, 63513 }, + { 0x6F4D, 63518 }, + { 0x6F4E, 63523 }, + { 0x6F4F, 63528 }, + { 0x6F50, 63533 }, + { 0x6F51, 63538 }, + { 0x6F52, 63543 }, + { 0x6F53, 63548 }, + { 0x6F54, 63553 }, + { 0x6F55, 63558 }, + { 0x6F56, 63563 }, + { 0x6F57, 63568 }, + { 0x6F58, 63573 }, + { 0x6F59, 63578 }, + { 0x6F5A, 63583 }, + { 0x6F21, 63588 }, + { 0x6F22, 63593 }, + { 0x6F23, 63598 }, + { 0x6F24, 63603 }, + { 0x6F25, 63608 }, + { 0x6F26, 63613 }, + { 0x6F27, 63618 }, + { 0x6F28, 63623 }, + { 0x6F29, 63628 }, + { 0x6F2A, 63633 }, + { 0x6F2B, 63638 }, + { 0x6F2C, 63643 }, + { 0x6F2D, 63648 }, + { 0x6F2E, 63653 }, + { 0x6F2F, 63658 }, + { 0x6F30, 63663 }, + { 0x6F31, 63668 }, + { 0x6F32, 63673 }, + { 0x6F33, 63678 }, + { 0x6F34, 63683 }, + { 0x6F35, 63688 }, + { 0x6F36, 63693 }, + { 0x6F37, 63698 }, + { 0x6F38, 63703 }, + { 0x6F39, 63708 }, + { 0x6F3A, 63713 }, + { 0x6FE1, 63718 }, + { 0x6F5D, 63721 }, + { 0x6F60, 63725 }, + { 0x6F3D, 63729 }, + { 0x6F09, 63733 }, + { 0x6F5E, 63736 }, + { 0x6FE4, 63738 }, + { 0x6F04, 63741 }, + { 0x6F1D, 63744 }, + { 0x6FE3, 63747 }, + { 0x6F03, 63749 }, + { 0x6F05, 63752 }, + { 0x6F3C, 63755 }, + { 0x6F0F, 63758 }, + { 0x6F0A, 63760 }, + { 0x6F1F, 63762 }, + { 0x6F5C, 63765 }, + { 0x6F06, 63768 }, + { 0x6F1C, 63770 }, + { 0x6F02, 63773 }, + { 0x6F1B, 63776 }, + { 0x6F07, 63778 }, + { 0x6F3E, 63780 }, + { 0x6F20, 63783 }, + { 0x6F01, 63786 }, + { 0x6F1E, 63789 }, + { 0x6F0D, 63792 }, + { 0x223A, 63794 }, + { 0x6F62, 63796 }, + { 0x6FED, 63800 }, + { 0x6FE8, 63803 }, + { 0x6F63, 63807 }, + { 0x6FEE, 63811 }, + { 0x6FA0, 63814 }, + { 0x6FC2, 63817 }, + { 0x6FC7, 63821 }, + { 0x6FDC, 63825 }, + { 0x6FCC, 63829 }, + { 0x6FD3, 63833 }, + { 0x6FC3, 63837 }, + { 0x6FC6, 63841 }, + { 0x6FDA, 63845 }, + { 0x6FCF, 63849 }, + { 0x6FCD, 63853 }, + { 0x6FD5, 63857 }, + { 0x6FD6, 63861 }, + { 0x6FC4, 63865 }, + { 0x6FCB, 63869 }, + { 0x6FDB, 63873 }, + { 0x6FD2, 63877 }, + { 0x6FD7, 63881 }, + { 0x6FCE, 63885 }, + { 0x6FD4, 63889 }, + { 0x6FC5, 63893 }, + { 0x6FCA, 63897 }, + { 0x6FB5, 63901 }, + { 0x6FB8, 63905 }, + { 0x6FBE, 63909 }, + { 0x6FB7, 63913 }, + { 0x6FB1, 63917 }, + { 0x6FA4, 63921 }, + { 0x6FB2, 63925 }, + { 0x6FA9, 63929 }, + { 0x6FA1, 63933 }, + { 0x6FA7, 63937 }, + { 0x6FBA, 63941 }, + { 0x6FBB, 63945 }, + { 0x6FBD, 63949 }, + { 0x6FBC, 63953 }, + { 0x6FB6, 63957 }, + { 0x6FB4, 63961 }, + { 0x6FAD, 63965 }, + { 0x6FB9, 63969 }, + { 0x6FB3, 63973 }, + { 0x6FA3, 63977 }, + { 0x6FA5, 63981 }, + { 0x6FA6, 63985 }, + { 0x6FB0, 63989 }, + { 0x6FAB, 63993 }, + { 0x6FAC, 63997 }, + { 0x6FA2, 64001 }, + { 0x6FA8, 64005 }, + { 0x6FAA, 64009 }, + { 0x6FAF, 64013 }, + { 0x6FAE, 64017 }, + { 0x6FEA, 64021 }, + { 0x6F71, 64024 }, + { 0x6F74, 64028 }, + { 0x6F72, 64032 }, + { 0x6F9D, 64036 }, + { 0x6F75, 64040 }, + { 0x6F73, 64044 }, + { 0x6F8A, 64048 }, + { 0x6F8D, 64052 }, + { 0x6F8B, 64056 }, + { 0x6F8E, 64060 }, + { 0x6F8C, 64064 }, + { 0x6F76, 64068 }, + { 0x6F79, 64072 }, + { 0x6F77, 64076 }, + { 0x6F7A, 64080 }, + { 0x6F78, 64084 }, + { 0x6F8F, 64088 }, + { 0x6F92, 64092 }, + { 0x6F90, 64096 }, + { 0x6F93, 64100 }, + { 0x6F91, 64104 }, + { 0x6F85, 64108 }, + { 0x6F88, 64112 }, + { 0x6F86, 64116 }, + { 0x6F89, 64120 }, + { 0x6F87, 64124 }, + { 0x6F97, 64128 }, + { 0x6F9A, 64132 }, + { 0x6F98, 64136 }, + { 0x6F9B, 64140 }, + { 0x6F99, 64144 }, + { 0x6F7B, 64148 }, + { 0x6F7E, 64152 }, + { 0x6F7C, 64156 }, + { 0x6F7F, 64160 }, + { 0x6F7D, 64164 }, + { 0x6F80, 64168 }, + { 0x6F83, 64172 }, + { 0x6F81, 64176 }, + { 0x6F84, 64180 }, + { 0x6F82, 64184 }, + { 0x6F9C, 64188 }, + { 0x6F66, 64192 }, + { 0x6F94, 64196 }, + { 0x6F96, 64200 }, + { 0x6F95, 64204 }, + { 0x6F67, 64208 }, + { 0x6F6A, 64213 }, + { 0x6F68, 64218 }, + { 0x6F6B, 64223 }, + { 0x6F69, 64228 }, + { 0x6F6F, 64233 }, + { 0x6F6C, 64238 }, + { 0x6F6E, 64243 }, + { 0x6F6D, 64248 }, + { 0x6F65, 64253 }, + { 0x6F9E, 64257 }, + { 0x6F9F, 64262 }, + { 0x6FEC, 64267 }, + { 0x6FE9, 64270 }, + { 0x6FEB, 64273 }, + { 0x6F61, 64276 }, + { 0x6F64, 64280 }, + { 0x6F70, 64283 }, + { 0x22B9, 64288 }, + { 0x231B, 64291 }, + { 0x2261, 64292 }, + { 0x29E5, 64294 }, + { 0x2A67, 64299 }, + { 0x29E1, 64303 }, + { 0x2206, 64305 }, + { 0x2380, 64306 }, + { 0x2064, 64308 }, + { 0x2062, 64310 }, + { 0x2063, 64312 }, + { 0x2939, 64314 }, + { 0x219E, 64318 }, + { 0x219C, 64322 }, + { 0x2190, 64325 }, + { 0x21E4, 64327 }, + { 0x21B9, 64331 }, + { 0x291D, 64340 }, + { 0x21A4, 64345 }, + { 0x291F, 64349 }, + { 0x21C6, 64356 }, + { 0x2B11, 64361 }, + { 0x2B10, 64366 }, + { 0x21A9, 64371 }, + { 0x21AB, 64375 }, + { 0x2946, 64379 }, + { 0x21A2, 64384 }, + { 0x2B3A, 64388 }, + { 0x2B39, 64396 }, + { 0x2B38, 64403 }, + { 0x21FA, 64408 }, + { 0x219A, 64414 }, + { 0x21F7, 64418 }, + { 0x2943, 64423 }, + { 0x2973, 64429 }, + { 0x2B4A, 64434 }, + { 0x2B4B, 64440 }, + { 0x2B42, 64446 }, + { 0x2B3E, 64453 }, + { 0x297A, 64457 }, + { 0x2977, 64461 }, + { 0x2B05, 64465 }, + { 0x21E6, 64468 }, + { 0x21E0, 64471 }, + { 0x290C, 64474 }, + { 0x21D0, 64478 }, + { 0x2906, 64481 }, + { 0x21CD, 64486 }, + { 0x2902, 64491 }, + { 0x291B, 64497 }, + { 0x21C7, 64500 }, + { 0x290E, 64503 }, + { 0x21DA, 64507 }, + { 0x21CB, 64510 }, + { 0x2952, 64515 }, + { 0x295A, 64522 }, + { 0x296A, 64529 }, + { 0x2962, 64537 }, + { 0x2966, 64548 }, + { 0x2956, 64559 }, + { 0x295E, 64566 }, + { 0x2967, 64573 }, + { 0x296B, 64584 }, + { 0x21BC, 64592 }, + { 0x21BD, 64597 }, + { 0x21DC, 64602 }, + { 0x2B45, 64605 }, + { 0x2919, 64608 }, + { 0x2B36, 64610 }, + { 0x2B3B, 64615 }, + { 0x2B3D, 64620 }, + { 0x2B3C, 64629 }, + { 0x2B35, 64637 }, + { 0x2B34, 64644 }, + { 0x2B37, 64650 }, + { 0x21FD, 64655 }, + { 0x2264, 64658 }, + { 0x2A7D, 64662 }, + { 0x2A81, 64667 }, + { 0x2A83, 64675 }, + { 0x2A7F, 64684 }, + { 0x2272, 64692 }, + { 0x2A85, 64696 }, + { 0x2276, 64699 }, + { 0x2A89, 64702 }, + { 0x2A87, 64706 }, + { 0x2268, 64712 }, + { 0x22E6, 64717 }, + { 0x2266, 64722 }, + { 0x003C, 64726 }, + { 0x22D6, 64728 }, + { 0x2A79, 64731 }, + { 0x2A7B, 64735 }, + { 0x2A8D, 64740 }, + { 0x2A8F, 64745 }, + { 0x2A93, 64750 }, + { 0x2976, 64759 }, + { 0x2A8B, 64763 }, + { 0x2A91, 64769 }, + { 0x22DA, 64775 }, + { 0x2AA6, 64780 }, + { 0x2AA8, 64784 }, + { 0x2607, 64791 }, + { 0x0D57, 64792 }, + { 0x0D79, 64796 }, + { 0x0D4D, 64799 }, + { 0x0D03, 64802 }, + { 0x0D02, 64805 }, + { 0x0D3D, 64808 }, + { 0x0D67, 64811 }, + { 0x0D6C, 64814 }, + { 0x0D68, 64817 }, + { 0x0D6B, 64820 }, + { 0x0D6A, 64823 }, + { 0x0D6F, 64826 }, + { 0x0D66, 64829 }, + { 0x0D6E, 64832 }, + { 0x0D6D, 64835 }, + { 0x0D69, 64838 }, + { 0x0D46, 64841 }, + { 0x0D3F, 64845 }, + { 0x0D4A, 64849 }, + { 0x0D41, 64853 }, + { 0x0D3E, 64857 }, + { 0x0D48, 64861 }, + { 0x0D4C, 64865 }, + { 0x0D47, 64869 }, + { 0x0D40, 64873 }, + { 0x0D4B, 64877 }, + { 0x0D42, 64881 }, + { 0x0D62, 64885 }, + { 0x0D43, 64890 }, + { 0x0D63, 64895 }, + { 0x0D44, 64900 }, + { 0x0D05, 64905 }, + { 0x0D0E, 64908 }, + { 0x0D07, 64911 }, + { 0x0D12, 64914 }, + { 0x0D09, 64917 }, + { 0x0D06, 64920 }, + { 0x0D10, 64923 }, + { 0x0D14, 64926 }, + { 0x0D2C, 64929 }, + { 0x0D1A, 64932 }, + { 0x0D26, 64935 }, + { 0x0D0F, 64938 }, + { 0x0D17, 64941 }, + { 0x0D39, 64944 }, + { 0x0D08, 64947 }, + { 0x0D1C, 64950 }, + { 0x0D15, 64953 }, + { 0x0D32, 64956 }, + { 0x0D2E, 64959 }, + { 0x0D28, 64962 }, + { 0x0D13, 64965 }, + { 0x0D2A, 64968 }, + { 0x0D30, 64971 }, + { 0x0D38, 64974 }, + { 0x0D24, 64977 }, + { 0x0D0A, 64980 }, + { 0x0D35, 64983 }, + { 0x0D2F, 64986 }, + { 0x0D2D, 64989 }, + { 0x0D1B, 64992 }, + { 0x0D21, 64995 }, + { 0x0D27, 64998 }, + { 0x0D18, 65001 }, + { 0x0D1D, 65004 }, + { 0x0D16, 65007 }, + { 0x0D33, 65010 }, + { 0x0D19, 65013 }, + { 0x0D23, 65016 }, + { 0x0D1E, 65019 }, + { 0x0D2B, 65022 }, + { 0x0D31, 65025 }, + { 0x0D36, 65028 }, + { 0x0D37, 65031 }, + { 0x0D25, 65034 }, + { 0x0D1F, 65037 }, + { 0x0D22, 65040 }, + { 0x0D34, 65043 }, + { 0x0D20, 65046 }, + { 0x0D7F, 65049 }, + { 0x0D7D, 65053 }, + { 0x0D7B, 65057 }, + { 0x0D7E, 65061 }, + { 0x0D7A, 65065 }, + { 0x0D7C, 65069 }, + { 0x0D0C, 65073 }, + { 0x0D0B, 65077 }, + { 0x0D61, 65081 }, + { 0x0D60, 65085 }, + { 0x0D71, 65089 }, + { 0x0D72, 65093 }, + { 0x0D70, 65097 }, + { 0x0D74, 65100 }, + { 0x0D73, 65104 }, + { 0x0D75, 65108 }, + { 0x00BA, 65112 }, + { 0x1805, 65115 }, + { 0x180B, 65118 }, + { 0x180C, 65123 }, + { 0x180D, 65128 }, + { 0x1803, 65133 }, + { 0x1807, 65136 }, + { 0x1806, 65141 }, + { 0x1800, 65145 }, + { 0x1804, 65147 }, + { 0x1802, 65149 }, + { 0x1811, 65151 }, + { 0x1816, 65154 }, + { 0x1812, 65157 }, + { 0x1815, 65160 }, + { 0x1814, 65163 }, + { 0x1819, 65166 }, + { 0x1810, 65169 }, + { 0x1818, 65172 }, + { 0x1817, 65175 }, + { 0x1813, 65178 }, + { 0x180E, 65181 }, + { 0x1820, 65184 }, + { 0x1821, 65187 }, + { 0x1822, 65190 }, + { 0x1823, 65193 }, + { 0x1824, 65196 }, + { 0x182A, 65199 }, + { 0x1833, 65202 }, + { 0x1827, 65205 }, + { 0x1839, 65208 }, + { 0x182D, 65211 }, + { 0x1835, 65214 }, + { 0x183A, 65217 }, + { 0x182F, 65220 }, + { 0x182E, 65223 }, + { 0x1828, 65226 }, + { 0x1825, 65229 }, + { 0x182B, 65232 }, + { 0x182C, 65235 }, + { 0x1837, 65238 }, + { 0x1830, 65241 }, + { 0x1832, 65244 }, + { 0x1826, 65247 }, + { 0x1838, 65250 }, + { 0x1836, 65253 }, + { 0x183D, 65256 }, + { 0x1887, 65259 }, + { 0x1888, 65264 }, + { 0x1897, 65269 }, + { 0x188B, 65274 }, + { 0x1891, 65279 }, + { 0x1889, 65284 }, + { 0x1892, 65289 }, + { 0x1890, 65294 }, + { 0x1896, 65299 }, + { 0x188E, 65304 }, + { 0x188A, 65309 }, + { 0x188F, 65314 }, + { 0x1893, 65319 }, + { 0x1894, 65324 }, + { 0x188C, 65329 }, + { 0x1895, 65334 }, + { 0x18A6, 65339 }, + { 0x18A7, 65345 }, + { 0x188D, 65351 }, + { 0x1886, 65356 }, + { 0x1885, 65362 }, + { 0x1882, 65367 }, + { 0x18A9, 65372 }, + { 0x1883, 65377 }, + { 0x1881, 65382 }, + { 0x1880, 65388 }, + { 0x1884, 65394 }, + { 0x1829, 65400 }, + { 0x1834, 65403 }, + { 0x1842, 65406 }, + { 0x183E, 65409 }, + { 0x183B, 65412 }, + { 0x1840, 65415 }, + { 0x1831, 65418 }, + { 0x183C, 65421 }, + { 0x1841, 65424 }, + { 0x183F, 65427 }, + { 0x185D, 65430 }, + { 0x185E, 65434 }, + { 0x1861, 65438 }, + { 0x1869, 65442 }, + { 0x186B, 65446 }, + { 0x1864, 65450 }, + { 0x1865, 65454 }, + { 0x185F, 65458 }, + { 0x186A, 65462 }, + { 0x1863, 65466 }, + { 0x1866, 65470 }, + { 0x1868, 65474 }, + { 0x1860, 65478 }, + { 0x186F, 65482 }, + { 0x1862, 65486 }, + { 0x1871, 65490 }, + { 0x186C, 65494 }, + { 0x186D, 65498 }, + { 0x1870, 65502 }, + { 0x1867, 65506 }, + { 0x186E, 65510 }, + { 0x1872, 65514 }, + { 0x1844, 65518 }, + { 0x1845, 65522 }, + { 0x1846, 65526 }, + { 0x1847, 65530 }, + { 0x184B, 65534 }, + { 0x1851, 65538 }, + { 0x184E, 65542 }, + { 0x1853, 65546 }, + { 0x1857, 65550 }, + { 0x184F, 65554 }, + { 0x1848, 65558 }, + { 0x184C, 65562 }, + { 0x184D, 65566 }, + { 0x1850, 65570 }, + { 0x1849, 65574 }, + { 0x1856, 65578 }, + { 0x1855, 65582 }, + { 0x1898, 65586 }, + { 0x1899, 65592 }, + { 0x184A, 65598 }, + { 0x1852, 65602 }, + { 0x185C, 65606 }, + { 0x1858, 65610 }, + { 0x1859, 65614 }, + { 0x185A, 65618 }, + { 0x185B, 65622 }, + { 0x1854, 65626 }, + { 0x1843, 65630 }, + { 0x1873, 65636 }, + { 0x1876, 65640 }, + { 0x1874, 65644 }, + { 0x1875, 65648 }, + { 0x189C, 65652 }, + { 0x18A0, 65658 }, + { 0x18A5, 65664 }, + { 0x18A8, 65670 }, + { 0x18A3, 65676 }, + { 0x18A1, 65682 }, + { 0x189A, 65688 }, + { 0x189D, 65694 }, + { 0x18AA, 65700 }, + { 0x189B, 65706 }, + { 0x18A2, 65712 }, + { 0x189E, 65718 }, + { 0x18A4, 65724 }, + { 0x189F, 65730 }, + { 0x1877, 65736 }, + { 0x1809, 65740 }, + { 0x1808, 65744 }, + { 0x180A, 65747 }, + { 0x1801, 65749 }, + { 0x2029, 65751 }, + { 0x267E, 65753 }, + { 0x22D4, 65756 }, + { 0x2ADA, 65757 }, + { 0x2057, 65761 }, + { 0x2A0C, 65763 }, + { 0x0022, 65766 }, + { 0x2673, 65768 }, + { 0x2674, 65773 }, + { 0x2675, 65778 }, + { 0x2676, 65783 }, + { 0x2677, 65788 }, + { 0x2678, 65793 }, + { 0x2679, 65798 }, + { 0x267A, 65803 }, + { 0x203B, 65808 }, + { 0x2A3D, 65810 }, + { 0x003B, 65813 }, + { 0x2744, 65814 }, + { 0x2222, 65815 }, + { 0x29A1, 65817 }, + { 0x29A0, 65821 }, + { 0x2081, 65825 }, + { 0x2086, 65827 }, + { 0x2082, 65829 }, + { 0x2085, 65831 }, + { 0x2084, 65833 }, + { 0x208D, 65835 }, + { 0x2089, 65838 }, + { 0x208A, 65840 }, + { 0x2080, 65843 }, + { 0x2088, 65845 }, + { 0x208B, 65847 }, + { 0x208E, 65849 }, + { 0x2087, 65852 }, + { 0x2083, 65854 }, + { 0x208C, 65856 }, + { 0x23B2, 65859 }, + { 0x2A0B, 65861 }, + { 0x23B3, 65864 }, + { 0x1BAA, 65866 }, + { 0x1B80, 65869 }, + { 0x1B81, 65872 }, + { 0x1B82, 65875 }, + { 0x1BB1, 65878 }, + { 0x1BB6, 65881 }, + { 0x1BB2, 65884 }, + { 0x1BB5, 65887 }, + { 0x1BB4, 65890 }, + { 0x1BB9, 65893 }, + { 0x1BB0, 65896 }, + { 0x1BB8, 65899 }, + { 0x1BB7, 65902 }, + { 0x1BB3, 65905 }, + { 0x1BA8, 65908 }, + { 0x1BA5, 65912 }, + { 0x1BA4, 65916 }, + { 0x1BA7, 65920 }, + { 0x1BA6, 65924 }, + { 0x1BA9, 65928 }, + { 0x1B83, 65932 }, + { 0x1B88, 65935 }, + { 0x1B84, 65938 }, + { 0x1B87, 65941 }, + { 0x1B85, 65944 }, + { 0x1B86, 65947 }, + { 0x1B98, 65950 }, + { 0x1B8E, 65953 }, + { 0x1B93, 65956 }, + { 0x1B89, 65959 }, + { 0x1B96, 65962 }, + { 0x1B8C, 65965 }, + { 0x1BA0, 65968 }, + { 0x1B8F, 65971 }, + { 0x1B8A, 65974 }, + { 0x1B9C, 65977 }, + { 0x1B99, 65980 }, + { 0x1B94, 65983 }, + { 0x1B95, 65986 }, + { 0x1B8B, 65989 }, + { 0x1B9B, 65992 }, + { 0x1B9E, 65995 }, + { 0x1B92, 65998 }, + { 0x1B97, 66001 }, + { 0x1B9D, 66004 }, + { 0x1B9F, 66007 }, + { 0x1B9A, 66010 }, + { 0x1B90, 66013 }, + { 0x1BAE, 66016 }, + { 0x1B8D, 66019 }, + { 0x1B91, 66022 }, + { 0x1BAF, 66025 }, + { 0x1BA3, 66028 }, + { 0x1BA2, 66032 }, + { 0x1BA1, 66036 }, + { 0x2121, 66040 }, + { 0x2706, 66042 }, + { 0x2315, 66045 }, + { 0x9353, 66047 }, + { 0x931D, 66052 }, + { 0x932D, 66055 }, + { 0x9323, 66060 }, + { 0x931C, 66064 }, + { 0x9307, 66067 }, + { 0x9343, 66071 }, + { 0x932F, 66074 }, + { 0x9346, 66079 }, + { 0x9308, 66082 }, + { 0x9314, 66085 }, + { 0x9331, 66088 }, + { 0x933B, 66091 }, + { 0x9344, 66094 }, + { 0x930C, 66097 }, + { 0x9306, 66100 }, + { 0x9321, 66103 }, + { 0x933D, 66106 }, + { 0x9320, 66110 }, + { 0x9336, 66113 }, + { 0x9325, 66116 }, + { 0x932A, 66119 }, + { 0x9335, 66122 }, + { 0x9319, 66125 }, + { 0x9309, 66128 }, + { 0x934F, 66131 }, + { 0x9315, 66134 }, + { 0x9349, 66137 }, + { 0x9350, 66140 }, + { 0x9316, 66143 }, + { 0x930A, 66147 }, + { 0x9327, 66151 }, + { 0x9340, 66154 }, + { 0x9339, 66157 }, + { 0x9324, 66160 }, + { 0x9334, 66163 }, + { 0x931A, 66166 }, + { 0x9345, 66169 }, + { 0x9317, 66172 }, + { 0x933A, 66175 }, + { 0x932B, 66178 }, + { 0x934D, 66181 }, + { 0x9312, 66184 }, + { 0x932E, 66187 }, + { 0x934C, 66190 }, + { 0x9329, 66193 }, + { 0x9337, 66196 }, + { 0x930E, 66201 }, + { 0x9326, 66205 }, + { 0x9338, 66208 }, + { 0x9348, 66211 }, + { 0x9347, 66214 }, + { 0x931F, 66217 }, + { 0x9318, 66220 }, + { 0x9356, 66223 }, + { 0x9328, 66226 }, + { 0x933F, 66229 }, + { 0x9332, 66233 }, + { 0x9355, 66236 }, + { 0x932C, 66239 }, + { 0x934B, 66242 }, + { 0x934E, 66245 }, + { 0x9352, 66248 }, + { 0x931E, 66251 }, + { 0x9310, 66254 }, + { 0x9330, 66257 }, + { 0x934A, 66260 }, + { 0x930D, 66263 }, + { 0x931B, 66266 }, + { 0x9351, 66269 }, + { 0x930B, 66272 }, + { 0x9333, 66275 }, + { 0x933E, 66278 }, + { 0x9313, 66281 }, + { 0x9341, 66284 }, + { 0x9322, 66287 }, + { 0x9354, 66290 }, + { 0x933C, 66293 }, + { 0x9311, 66296 }, + { 0x930F, 66299 }, + { 0x9342, 66304 }, + { 0x2234, 66307 }, + { 0x2672, 66308 }, + { 0x26AF, 66311 }, + { 0x6E00, 66314 }, + { 0x6E01, 66316 }, + { 0x6E02, 66318 }, + { 0x6E03, 66320 }, + { 0x6E04, 66322 }, + { 0x6E05, 66324 }, + { 0x6E06, 66326 }, + { 0x6E07, 66328 }, + { 0x6E08, 66330 }, + { 0x6E09, 66332 }, + { 0x6E0A, 66334 }, + { 0x6E0B, 66336 }, + { 0x6E0C, 66338 }, + { 0x6E0D, 66340 }, + { 0x6E0E, 66342 }, + { 0x6E0F, 66344 }, + { 0xC100, 66346 }, + { 0xC101, 66348 }, + { 0xC102, 66350 }, + { 0xC103, 66352 }, + { 0xC104, 66354 }, + { 0xC105, 66356 }, + { 0xC106, 66358 }, + { 0xC107, 66360 }, + { 0xC108, 66362 }, + { 0xC109, 66364 }, + { 0xC10A, 66366 }, + { 0xC10B, 66368 }, + { 0xC10C, 66370 }, + { 0xC10D, 66372 }, + { 0xC10E, 66374 }, + { 0xC10F, 66376 }, + { 0xC110, 66378 }, + { 0xC111, 66380 }, + { 0xC112, 66382 }, + { 0xC113, 66384 }, + { 0xC114, 66386 }, + { 0xC115, 66388 }, + { 0xC116, 66390 }, + { 0xC117, 66392 }, + { 0xC118, 66394 }, + { 0xC119, 66396 }, + { 0xC11A, 66398 }, + { 0xC11B, 66400 }, + { 0xC11C, 66402 }, + { 0xC11D, 66404 }, + { 0xC11E, 66406 }, + { 0xC11F, 66408 }, + { 0xC120, 66410 }, + { 0xC121, 66412 }, + { 0xC122, 66414 }, + { 0xC123, 66416 }, + { 0xC124, 66418 }, + { 0xC125, 66420 }, + { 0xC126, 66422 }, + { 0xC127, 66424 }, + { 0xC128, 66426 }, + { 0xC129, 66428 }, + { 0xC12A, 66430 }, + { 0xC12B, 66432 }, + { 0xC12C, 66434 }, + { 0xC12D, 66436 }, + { 0xC12E, 66438 }, + { 0xC12F, 66440 }, + { 0xC130, 66442 }, + { 0xC131, 66444 }, + { 0xC132, 66446 }, + { 0xC133, 66448 }, + { 0xC134, 66450 }, + { 0xC135, 66452 }, + { 0xC136, 66454 }, + { 0xC137, 66456 }, + { 0xC138, 66458 }, + { 0xC139, 66460 }, + { 0xC13A, 66462 }, + { 0xC13B, 66464 }, + { 0xC13C, 66466 }, + { 0xC13D, 66468 }, + { 0xC13E, 66470 }, + { 0xC13F, 66472 }, + { 0xC140, 66474 }, + { 0xC141, 66476 }, + { 0xC142, 66478 }, + { 0xC143, 66480 }, + { 0xC144, 66482 }, + { 0xC145, 66484 }, + { 0xC146, 66486 }, + { 0xC147, 66488 }, + { 0xC148, 66490 }, + { 0xC149, 66492 }, + { 0xC14A, 66494 }, + { 0xC14B, 66496 }, + { 0xC14C, 66498 }, + { 0xC14D, 66500 }, + { 0xC14E, 66502 }, + { 0xC14F, 66504 }, + { 0xC150, 66506 }, + { 0xC151, 66508 }, + { 0xC152, 66510 }, + { 0xC153, 66512 }, + { 0xC154, 66514 }, + { 0xC155, 66516 }, + { 0xC156, 66518 }, + { 0xC157, 66520 }, + { 0xC158, 66522 }, + { 0xC159, 66524 }, + { 0xC15A, 66526 }, + { 0xC15B, 66528 }, + { 0xC15C, 66530 }, + { 0xC15D, 66532 }, + { 0xC15E, 66534 }, + { 0xC15F, 66536 }, + { 0xC160, 66538 }, + { 0xC161, 66540 }, + { 0xC162, 66542 }, + { 0xC163, 66544 }, + { 0xC164, 66546 }, + { 0xC165, 66548 }, + { 0xC166, 66550 }, + { 0xC167, 66552 }, + { 0xC168, 66554 }, + { 0xC169, 66556 }, + { 0xC16A, 66558 }, + { 0xC16B, 66560 }, + { 0xC16C, 66562 }, + { 0xC16D, 66564 }, + { 0xC16E, 66566 }, + { 0xC16F, 66568 }, + { 0xC170, 66570 }, + { 0xC171, 66572 }, + { 0xC172, 66574 }, + { 0xC173, 66576 }, + { 0xC174, 66578 }, + { 0xC175, 66580 }, + { 0xC176, 66582 }, + { 0xC177, 66584 }, + { 0xC178, 66586 }, + { 0xC179, 66588 }, + { 0xC17A, 66590 }, + { 0xC17B, 66592 }, + { 0xC17C, 66594 }, + { 0xC17D, 66596 }, + { 0xC17E, 66598 }, + { 0xC17F, 66600 }, + { 0xC180, 66602 }, + { 0xC181, 66604 }, + { 0xC182, 66606 }, + { 0xC183, 66608 }, + { 0xC184, 66610 }, + { 0xC185, 66612 }, + { 0xC186, 66614 }, + { 0xC187, 66616 }, + { 0xC188, 66618 }, + { 0xC189, 66620 }, + { 0xC18A, 66622 }, + { 0xC18B, 66624 }, + { 0xC18C, 66626 }, + { 0xC18D, 66628 }, + { 0xC18E, 66630 }, + { 0xC18F, 66632 }, + { 0xC190, 66634 }, + { 0xC191, 66636 }, + { 0xC192, 66638 }, + { 0xC193, 66640 }, + { 0xC194, 66642 }, + { 0xC195, 66644 }, + { 0xC196, 66646 }, + { 0xC197, 66648 }, + { 0xC198, 66650 }, + { 0xC199, 66652 }, + { 0xC19A, 66654 }, + { 0xC19B, 66656 }, + { 0xC19C, 66658 }, + { 0xC19D, 66660 }, + { 0xC19E, 66662 }, + { 0xC19F, 66664 }, + { 0xC1A0, 66666 }, + { 0xC1A1, 66668 }, + { 0xC1A2, 66670 }, + { 0xC1A3, 66672 }, + { 0xC1A4, 66674 }, + { 0xC1A5, 66676 }, + { 0xC1A6, 66678 }, + { 0xC1A7, 66680 }, + { 0xC1A8, 66682 }, + { 0xC1A9, 66684 }, + { 0xC1AA, 66686 }, + { 0xC1AB, 66688 }, + { 0xC1AC, 66690 }, + { 0xC1AD, 66692 }, + { 0xC1AE, 66694 }, + { 0xC1AF, 66696 }, + { 0xC1B0, 66698 }, + { 0xC1B1, 66700 }, + { 0xC1B2, 66702 }, + { 0xC1B3, 66704 }, + { 0xC1B4, 66706 }, + { 0xC1B5, 66708 }, + { 0xC1B6, 66710 }, + { 0xC1B7, 66712 }, + { 0xC1B8, 66714 }, + { 0xC1B9, 66716 }, + { 0xC1BA, 66718 }, + { 0xC1BB, 66720 }, + { 0xC1BC, 66722 }, + { 0xC1BD, 66724 }, + { 0xC1BE, 66726 }, + { 0xC1BF, 66728 }, + { 0xC1C0, 66730 }, + { 0xC1C1, 66732 }, + { 0xC1C2, 66734 }, + { 0xC1C3, 66736 }, + { 0xC1C4, 66738 }, + { 0xC1C5, 66740 }, + { 0xC1C6, 66742 }, + { 0xC1C7, 66744 }, + { 0xC1C8, 66746 }, + { 0xC1C9, 66748 }, + { 0xC1CA, 66750 }, + { 0xC1CB, 66752 }, + { 0xC1CC, 66754 }, + { 0xC1CD, 66756 }, + { 0xC1CE, 66758 }, + { 0xC1CF, 66760 }, + { 0xC1D0, 66762 }, + { 0xC1D1, 66764 }, + { 0xC1D2, 66766 }, + { 0xC1D3, 66768 }, + { 0xC1D4, 66770 }, + { 0xC1D5, 66772 }, + { 0xC1D6, 66774 }, + { 0xC1D7, 66776 }, + { 0xC1D8, 66778 }, + { 0xC1D9, 66780 }, + { 0xC1DA, 66782 }, + { 0xC1DB, 66784 }, + { 0xC1DC, 66786 }, + { 0xC1DD, 66788 }, + { 0xC1DE, 66790 }, + { 0xC1DF, 66792 }, + { 0xC1E0, 66794 }, + { 0xC1E1, 66796 }, + { 0xC1E2, 66798 }, + { 0xC1E3, 66800 }, + { 0xC1E4, 66802 }, + { 0xC1E5, 66804 }, + { 0xC1E6, 66806 }, + { 0xC1E7, 66808 }, + { 0xC1E8, 66810 }, + { 0xC1E9, 66812 }, + { 0xC1EA, 66814 }, + { 0xC1EB, 66816 }, + { 0xC1EC, 66818 }, + { 0xC1ED, 66820 }, + { 0xC1EE, 66822 }, + { 0xC1EF, 66824 }, + { 0x0027, 66826 }, + { 0x2250, 66827 }, + { 0x6E4E, 66830 }, + { 0x6E4A, 66833 }, + { 0x005E, 66835 }, + { 0x0040, 66837 }, + { 0x2052, 66839 }, + { 0x2201, 66842 }, + { 0x2381, 66843 }, + { 0x260B, 66846 }, + { 0x0950, 66848 }, + { 0x0971, 66850 }, + { 0x093C, 66855 }, + { 0x094D, 66858 }, + { 0x0903, 66861 }, + { 0x0902, 66864 }, + { 0x093D, 66867 }, + { 0x0901, 66870 }, + { 0x0954, 66873 }, + { 0x0964, 66876 }, + { 0x0967, 66878 }, + { 0x096C, 66881 }, + { 0x0968, 66884 }, + { 0x096B, 66887 }, + { 0x096A, 66890 }, + { 0x096F, 66893 }, + { 0x0966, 66896 }, + { 0x096E, 66899 }, + { 0x096D, 66902 }, + { 0x0969, 66905 }, + { 0x0953, 66908 }, + { 0x0947, 66911 }, + { 0x093F, 66915 }, + { 0x094B, 66919 }, + { 0x0941, 66923 }, + { 0x093E, 66927 }, + { 0x0948, 66931 }, + { 0x094C, 66935 }, + { 0x0940, 66939 }, + { 0x0942, 66943 }, + { 0x0946, 66947 }, + { 0x094A, 66952 }, + { 0x0945, 66957 }, + { 0x0949, 66962 }, + { 0x0962, 66967 }, + { 0x0943, 66972 }, + { 0x0963, 66977 }, + { 0x0944, 66982 }, + { 0x0965, 66987 }, + { 0x0905, 66990 }, + { 0x090F, 66993 }, + { 0x0907, 66996 }, + { 0x0913, 66999 }, + { 0x0909, 67002 }, + { 0x0906, 67005 }, + { 0x0910, 67008 }, + { 0x0914, 67011 }, + { 0x092C, 67014 }, + { 0x091A, 67017 }, + { 0x0926, 67020 }, + { 0x095E, 67023 }, + { 0x0917, 67026 }, + { 0x0939, 67029 }, + { 0x0908, 67032 }, + { 0x091C, 67035 }, + { 0x0915, 67038 }, + { 0x0932, 67041 }, + { 0x092E, 67044 }, + { 0x0928, 67047 }, + { 0x092A, 67050 }, + { 0x0958, 67053 }, + { 0x0930, 67056 }, + { 0x0938, 67059 }, + { 0x0924, 67062 }, + { 0x090A, 67065 }, + { 0x0935, 67068 }, + { 0x092F, 67071 }, + { 0x095B, 67074 }, + { 0x097F, 67077 }, + { 0x092D, 67080 }, + { 0x091B, 67083 }, + { 0x0921, 67086 }, + { 0x0927, 67089 }, + { 0x097B, 67092 }, + { 0x0918, 67095 }, + { 0x091D, 67098 }, + { 0x097C, 67101 }, + { 0x0916, 67104 }, + { 0x0933, 67107 }, + { 0x0919, 67110 }, + { 0x0923, 67113 }, + { 0x091E, 67116 }, + { 0x092B, 67119 }, + { 0x095D, 67122 }, + { 0x0931, 67125 }, + { 0x0936, 67128 }, + { 0x0937, 67131 }, + { 0x0925, 67134 }, + { 0x091F, 67137 }, + { 0x095F, 67140 }, + { 0x097E, 67143 }, + { 0x0922, 67146 }, + { 0x095A, 67149 }, + { 0x0959, 67152 }, + { 0x0934, 67155 }, + { 0x0929, 67158 }, + { 0x0920, 67161 }, + { 0x095C, 67164 }, + { 0x0904, 67167 }, + { 0x090E, 67171 }, + { 0x0912, 67175 }, + { 0x0972, 67179 }, + { 0x090D, 67183 }, + { 0x0911, 67187 }, + { 0x097D, 67191 }, + { 0x090C, 67195 }, + { 0x090B, 67199 }, + { 0x0961, 67203 }, + { 0x0960, 67207 }, + { 0x0951, 67211 }, + { 0x0952, 67215 }, + { 0x0970, 67219 }, + { 0x224F, 67222 }, + { 0x23E7, 67224 }, + { 0x224D, 67226 }, + { 0x2A78, 67228 }, + { 0x2C3B, 67233 }, + { 0x2C4A, 67237 }, + { 0x2C56, 67241 }, + { 0x2C53, 67245 }, + { 0x2C30, 67249 }, + { 0x2C58, 67253 }, + { 0x2C41, 67258 }, + { 0x2C49, 67262 }, + { 0x2C4E, 67266 }, + { 0x2C4C, 67270 }, + { 0x2C46, 67274 }, + { 0x2C31, 67278 }, + { 0x2C5A, 67282 }, + { 0x2C48, 67286 }, + { 0x2C39, 67290 }, + { 0x2C3D, 67294 }, + { 0x2C4B, 67298 }, + { 0x2C32, 67302 }, + { 0x2C51, 67306 }, + { 0x2C50, 67310 }, + { 0x2C4F, 67314 }, + { 0x2C34, 67318 }, + { 0x2C37, 67322 }, + { 0x2C47, 67326 }, + { 0x2C40, 67330 }, + { 0x2C43, 67334 }, + { 0x2C44, 67338 }, + { 0x2C54, 67342 }, + { 0x2C55, 67347 }, + { 0x2C35, 67354 }, + { 0x2C4D, 67358 }, + { 0x2C3C, 67362 }, + { 0x2C42, 67366 }, + { 0x2C45, 67370 }, + { 0x2C38, 67374 }, + { 0x2C33, 67378 }, + { 0x2C3A, 67382 }, + { 0x2C59, 67387 }, + { 0x2C57, 67393 }, + { 0x2C5B, 67399 }, + { 0x2C3E, 67403 }, + { 0x2C3F, 67407 }, + { 0x2C5C, 67411 }, + { 0x2C52, 67415 }, + { 0x2C36, 67420 }, + { 0x2C5E, 67424 }, + { 0x2C5D, 67429 }, + { 0x2C0B, 67434 }, + { 0x2C1A, 67438 }, + { 0x2C26, 67442 }, + { 0x2C23, 67446 }, + { 0x2C00, 67450 }, + { 0x2C28, 67454 }, + { 0x2C11, 67459 }, + { 0x2C19, 67463 }, + { 0x2C1E, 67467 }, + { 0x2C1C, 67471 }, + { 0x2C16, 67475 }, + { 0x2C01, 67479 }, + { 0x2C2A, 67483 }, + { 0x2C18, 67487 }, + { 0x2C09, 67491 }, + { 0x2C0D, 67495 }, + { 0x2C1B, 67499 }, + { 0x2C02, 67503 }, + { 0x2C21, 67507 }, + { 0x2C20, 67511 }, + { 0x2C1F, 67515 }, + { 0x2C04, 67519 }, + { 0x2C07, 67523 }, + { 0x2C17, 67527 }, + { 0x2C10, 67531 }, + { 0x2C13, 67535 }, + { 0x2C14, 67539 }, + { 0x2C24, 67543 }, + { 0x2C25, 67548 }, + { 0x2C05, 67555 }, + { 0x2C1D, 67559 }, + { 0x2C0C, 67563 }, + { 0x2C12, 67567 }, + { 0x2C15, 67571 }, + { 0x2C08, 67575 }, + { 0x2C03, 67579 }, + { 0x2C0A, 67583 }, + { 0x2C29, 67588 }, + { 0x2C27, 67594 }, + { 0x2C2B, 67600 }, + { 0x2C0E, 67604 }, + { 0x2C0F, 67608 }, + { 0x2C2C, 67612 }, + { 0x2C22, 67616 }, + { 0x2C06, 67621 }, + { 0x2C2E, 67625 }, + { 0x2C2D, 67630 }, + { 0x223B, 67635 }, + { 0x2015, 67636 }, + { 0x23AF, 67638 }, + { 0x26A9, 67641 }, + { 0x23BA, 67646 }, + { 0x23BB, 67649 }, + { 0x23BC, 67652 }, + { 0x23BD, 67655 }, + { 0x2B23, 67658 }, + { 0x2026, 67661 }, + { 0x238E, 67663 }, + { 0x29DC, 67665 }, + { 0x7A38, 67667 }, + { 0x7A3A, 67671 }, + { 0x7A39, 67675 }, + { 0x7A0D, 67678 }, + { 0x7A0F, 67683 }, + { 0x7A0E, 67686 }, + { 0x7A40, 67689 }, + { 0x7A41, 67692 }, + { 0x7A43, 67695 }, + { 0x7A42, 67698 }, + { 0x7A05, 67701 }, + { 0x7A01, 67705 }, + { 0x7A06, 67709 }, + { 0x7A02, 67713 }, + { 0x7A03, 67717 }, + { 0x7A0C, 67722 }, + { 0x7A00, 67726 }, + { 0x7A26, 67729 }, + { 0x7A15, 67732 }, + { 0x7A21, 67735 }, + { 0x7A12, 67738 }, + { 0x7A31, 67741 }, + { 0x7A17, 67744 }, + { 0x7A10, 67747 }, + { 0x7A2B, 67750 }, + { 0x7A28, 67753 }, + { 0x7A23, 67756 }, + { 0x7A24, 67759 }, + { 0x7A2A, 67762 }, + { 0x7A2F, 67765 }, + { 0x7A1F, 67768 }, + { 0x7A2C, 67771 }, + { 0x7A29, 67774 }, + { 0x7A30, 67777 }, + { 0x7A27, 67780 }, + { 0x7A16, 67783 }, + { 0x7A1C, 67786 }, + { 0x7A22, 67789 }, + { 0x7A13, 67792 }, + { 0x7A11, 67795 }, + { 0x7A32, 67798 }, + { 0x7A1E, 67801 }, + { 0x7A19, 67804 }, + { 0x7A25, 67807 }, + { 0x7A2D, 67810 }, + { 0x7A2E, 67813 }, + { 0x7A20, 67816 }, + { 0x7A1A, 67819 }, + { 0x7A1D, 67822 }, + { 0x7A1B, 67825 }, + { 0x7A33, 67828 }, + { 0x7A46, 67831 }, + { 0x7A47, 67835 }, + { 0x7A44, 67839 }, + { 0x7A45, 67842 }, + { 0x7A3F, 67845 }, + { 0x7A50, 67847 }, + { 0x7A56, 67850 }, + { 0x7A58, 67853 }, + { 0x7A55, 67856 }, + { 0x7A51, 67859 }, + { 0x7A52, 67863 }, + { 0x7A57, 67866 }, + { 0x7A53, 67870 }, + { 0x7A54, 67874 }, + { 0x238D, 67877 }, + { 0x2ADD, 67879 }, + { 0x260D, 67880 }, + { 0x1736, 67881 }, + { 0x1735, 67884 }, + { 0x791F, 67887 }, + { 0x7904, 67890 }, + { 0x7910, 67893 }, + { 0x790F, 67896 }, + { 0x7900, 67899 }, + { 0x7901, 67902 }, + { 0x7907, 67905 }, + { 0x790A, 67908 }, + { 0x790C, 67911 }, + { 0x790D, 67914 }, + { 0x7912, 67917 }, + { 0x7915, 67920 }, + { 0x7908, 67923 }, + { 0x7905, 67926 }, + { 0x7909, 67929 }, + { 0x7906, 67932 }, + { 0x7903, 67935 }, + { 0x7902, 67938 }, + { 0x790B, 67941 }, + { 0x7913, 67944 }, + { 0x7911, 67947 }, + { 0x790E, 67950 }, + { 0x7914, 67953 }, + { 0x7916, 67956 }, + { 0x7919, 67959 }, + { 0x7917, 67963 }, + { 0x7918, 67966 }, + { 0x00B1, 67969 }, + { 0x2305, 67971 }, + { 0x2237, 67972 }, + { 0x2A16, 67973 }, + { 0x225F, 67976 }, + { 0x00AE, 67979 }, + { 0x2938, 67981 }, + { 0x21A0, 67985 }, + { 0x219D, 67989 }, + { 0x2192, 67992 }, + { 0x21E5, 67994 }, + { 0x291E, 67998 }, + { 0x21A6, 68003 }, + { 0x2920, 68007 }, + { 0x21C4, 68014 }, + { 0x2B0F, 68019 }, + { 0x2B0E, 68024 }, + { 0x21AA, 68029 }, + { 0x21AC, 68033 }, + { 0x2945, 68037 }, + { 0x21A3, 68042 }, + { 0x2915, 68046 }, + { 0x2914, 68054 }, + { 0x21B4, 68061 }, + { 0x2911, 68066 }, + { 0x21FB, 68071 }, + { 0x219B, 68077 }, + { 0x21F8, 68081 }, + { 0x2942, 68086 }, + { 0x2974, 68092 }, + { 0x2975, 68097 }, + { 0x2B4C, 68103 }, + { 0x2B48, 68109 }, + { 0x2947, 68116 }, + { 0x2B44, 68120 }, + { 0x2B43, 68124 }, + { 0x21E8, 68128 }, + { 0x21F0, 68131 }, + { 0x21E2, 68136 }, + { 0x290D, 68139 }, + { 0x21D2, 68143 }, + { 0x2907, 68146 }, + { 0x21CF, 68151 }, + { 0x2903, 68156 }, + { 0x291C, 68162 }, + { 0x21C9, 68165 }, + { 0x290F, 68168 }, + { 0x21DB, 68172 }, + { 0x21CC, 68175 }, + { 0x2953, 68180 }, + { 0x295B, 68187 }, + { 0x296C, 68194 }, + { 0x2968, 68202 }, + { 0x2964, 68213 }, + { 0x2957, 68224 }, + { 0x295F, 68231 }, + { 0x2969, 68238 }, + { 0x296D, 68249 }, + { 0x21C0, 68257 }, + { 0x21C1, 68262 }, + { 0x21DD, 68267 }, + { 0x2B46, 68270 }, + { 0x291A, 68273 }, + { 0x2905, 68275 }, + { 0x2916, 68280 }, + { 0x2918, 68285 }, + { 0x2917, 68294 }, + { 0x2901, 68302 }, + { 0x2900, 68309 }, + { 0x2910, 68315 }, + { 0x21FE, 68320 }, + { 0x58C4, 68323 }, + { 0x5881, 68326 }, + { 0x5880, 68329 }, + { 0x58CE, 68332 }, + { 0x58D1, 68334 }, + { 0x58D6, 68337 }, + { 0x58D2, 68340 }, + { 0x58D5, 68343 }, + { 0x58D4, 68346 }, + { 0x58D9, 68349 }, + { 0x58D0, 68352 }, + { 0x58D8, 68355 }, + { 0x58D7, 68358 }, + { 0x58D3, 68361 }, + { 0x58BE, 68364 }, + { 0x58B6, 68368 }, + { 0x58C1, 68372 }, + { 0x58B8, 68376 }, + { 0x58B5, 68380 }, + { 0x58C0, 68384 }, + { 0x58C3, 68388 }, + { 0x58BF, 68392 }, + { 0x58B7, 68396 }, + { 0x58C2, 68400 }, + { 0x58B9, 68404 }, + { 0x58BC, 68408 }, + { 0x58BA, 68413 }, + { 0x58BD, 68418 }, + { 0x58BB, 68423 }, + { 0x58CF, 68428 }, + { 0x5882, 68431 }, + { 0x588C, 68434 }, + { 0x5884, 68437 }, + { 0x588F, 68440 }, + { 0x5886, 68443 }, + { 0x5883, 68446 }, + { 0x588E, 68449 }, + { 0x5891, 68452 }, + { 0x58A8, 68455 }, + { 0x5897, 68458 }, + { 0x58A3, 68461 }, + { 0x588D, 68464 }, + { 0x5894, 68467 }, + { 0x58B2, 68470 }, + { 0x5885, 68473 }, + { 0x5899, 68476 }, + { 0x5892, 68479 }, + { 0x58AD, 68482 }, + { 0x58AA, 68485 }, + { 0x58A5, 68488 }, + { 0x5890, 68491 }, + { 0x58A6, 68494 }, + { 0x58AC, 68497 }, + { 0x58B1, 68500 }, + { 0x58A1, 68503 }, + { 0x5887, 68506 }, + { 0x58AE, 68509 }, + { 0x58AB, 68512 }, + { 0x58A9, 68515 }, + { 0x5898, 68518 }, + { 0x589E, 68521 }, + { 0x58A4, 68524 }, + { 0x5895, 68527 }, + { 0x589A, 68530 }, + { 0x5893, 68533 }, + { 0x58B3, 68536 }, + { 0x5896, 68539 }, + { 0x58A0, 68542 }, + { 0x589B, 68545 }, + { 0x58A7, 68548 }, + { 0x58AF, 68551 }, + { 0x58B0, 68554 }, + { 0x58A2, 68557 }, + { 0x589C, 68560 }, + { 0x589F, 68563 }, + { 0x589D, 68566 }, + { 0x588A, 68569 }, + { 0x5888, 68573 }, + { 0x588B, 68577 }, + { 0x5889, 68581 }, + { 0x58B4, 68585 }, + { 0x2A32, 68589 }, + { 0x237D, 68594 }, + { 0x2006, 68597 }, + { 0x2023, 68599 }, + { 0x267F, 68601 }, + { 0x2387, 68603 }, + { 0x27AB, 68606 }, + { 0x2A10, 68611 }, + { 0x2384, 68613 }, + { 0x260C, 68615 }, + { 0x2258, 68616 }, + { 0x2334, 68618 }, + { 0x2335, 68619 }, + { 0x2A99, 68620 }, + { 0x2A9A, 68625 }, + { 0x2A9B, 68630 }, + { 0x2A9C, 68636 }, + { 0x2AF9, 68642 }, + { 0x2AFA, 68648 }, + { 0x225A, 68654 }, + { 0x0021, 68656 }, + { 0x2049, 68658 }, + { 0x2005, 68661 }, + { 0x2027, 68663 }, + { 0x3002, 68665 }, + { 0x303F, 68668 }, + { 0x3001, 68672 }, + { 0x302A, 68674 }, + { 0x3000, 68678 }, + { 0x3007, 68680 }, + { 0x302B, 68683 }, + { 0x3006, 68687 }, + { 0x302D, 68690 }, + { 0x302C, 68694 }, + { 0x3005, 68698 }, + { 0x3037, 68701 }, + { 0x33E0, 68707 }, + { 0x33E5, 68713 }, + { 0x33E9, 68719 }, + { 0x33E1, 68725 }, + { 0x33E4, 68731 }, + { 0x33E3, 68737 }, + { 0x33E8, 68743 }, + { 0x33E7, 68749 }, + { 0x33E6, 68755 }, + { 0x33E2, 68761 }, + { 0x33EA, 68767 }, + { 0x33FD, 68773 }, + { 0x33EB, 68779 }, + { 0x33F3, 68785 }, + { 0x33EE, 68791 }, + { 0x33EF, 68797 }, + { 0x33F1, 68803 }, + { 0x33ED, 68809 }, + { 0x33F2, 68815 }, + { 0x33EC, 68821 }, + { 0x33F0, 68827 }, + { 0x33FE, 68833 }, + { 0x33F4, 68839 }, + { 0x33F9, 68845 }, + { 0x33F5, 68851 }, + { 0x33F8, 68857 }, + { 0x33F7, 68863 }, + { 0x33FC, 68869 }, + { 0x33FB, 68875 }, + { 0x33FA, 68881 }, + { 0x33F6, 68887 }, + { 0x32C4, 68893 }, + { 0x3359, 68898 }, + { 0x335E, 68904 }, + { 0x3362, 68910 }, + { 0x335A, 68916 }, + { 0x335D, 68922 }, + { 0x335C, 68928 }, + { 0x3361, 68934 }, + { 0x3358, 68940 }, + { 0x3360, 68946 }, + { 0x335F, 68952 }, + { 0x335B, 68958 }, + { 0x3363, 68964 }, + { 0x3364, 68970 }, + { 0x336C, 68976 }, + { 0x3367, 68982 }, + { 0x3368, 68988 }, + { 0x336A, 68994 }, + { 0x3366, 69000 }, + { 0x336B, 69006 }, + { 0x3365, 69012 }, + { 0x3369, 69018 }, + { 0x336D, 69024 }, + { 0x336E, 69030 }, + { 0x3370, 69036 }, + { 0x336F, 69042 }, + { 0x32C6, 69048 }, + { 0x32C5, 69053 }, + { 0x32C3, 69058 }, + { 0x32C2, 69063 }, + { 0x32C7, 69068 }, + { 0x32C0, 69073 }, + { 0x32C9, 69078 }, + { 0x32CB, 69083 }, + { 0x32C1, 69088 }, + { 0x32CA, 69093 }, + { 0x32C8, 69098 }, + { 0x303E, 69103 }, + { 0x319F, 69106 }, + { 0x3192, 69110 }, + { 0x3196, 69114 }, + { 0x3193, 69118 }, + { 0x3195, 69122 }, + { 0x319E, 69126 }, + { 0x3199, 69130 }, + { 0x319B, 69134 }, + { 0x3194, 69138 }, + { 0x3198, 69142 }, + { 0x319C, 69146 }, + { 0x319D, 69150 }, + { 0x3197, 69154 }, + { 0x319A, 69158 }, + { 0x3190, 69162 }, + { 0x3191, 69166 }, + { 0x2FF4, 69170 }, + { 0x2FF0, 69175 }, + { 0x2FF2, 69181 }, + { 0x2FF1, 69189 }, + { 0x2FF3, 69195 }, + { 0x2FFB, 69203 }, + { 0x2FF7, 69207 }, + { 0x2FF5, 69213 }, + { 0x2FF6, 69219 }, + { 0x2FFA, 69225 }, + { 0x2FF8, 69232 }, + { 0x2FF9, 69239 }, + { 0x2139, 69246 }, + { 0x22BA, 69248 }, + { 0x6FF9, 69249 }, + { 0x6FFA, 69252 }, + { 0x6FFB, 69255 }, + { 0x26A4, 69258 }, + { 0x203D, 69263 }, + { 0x27AA, 69264 }, + { 0x2E0F, 69268 }, + { 0x3250, 69269 }, + { 0x2306, 69271 }, + { 0x2008, 69272 }, + { 0x2622, 69274 }, + { 0x6FFD, 69276 }, + { 0x2650, 69278 }, + { 0x26BA, 69279 }, + { 0x00B9, 69280 }, + { 0x2076, 69282 }, + { 0x00B2, 69284 }, + { 0x2075, 69286 }, + { 0x2074, 69288 }, + { 0x207D, 69290 }, + { 0x2079, 69293 }, + { 0x207A, 69295 }, + { 0x2070, 69298 }, + { 0x2078, 69300 }, + { 0x2071, 69302 }, + { 0x207F, 69307 }, + { 0x207B, 69312 }, + { 0x207E, 69314 }, + { 0x2077, 69317 }, + { 0x00B3, 69319 }, + { 0x207C, 69321 }, + { 0x2ADB, 69324 }, + { 0x25ED, 69326 }, + { 0x25EE, 69332 }, + { 0x214D, 69338 }, + { 0x2A3F, 69339 }, + { 0x060A, 69342 }, + { 0x0609, 69347 }, + { 0x0606, 69351 }, + { 0x0661, 69354 }, + { 0x0666, 69357 }, + { 0x0662, 69360 }, + { 0x0665, 69363 }, + { 0x0664, 69366 }, + { 0x0669, 69369 }, + { 0x0660, 69372 }, + { 0x0668, 69375 }, + { 0x0667, 69378 }, + { 0x0663, 69381 }, + { 0x0607, 69384 }, + { 0x212D, 69387 }, + { 0x210C, 69390 }, + { 0x2111, 69393 }, + { 0x211C, 69396 }, + { 0x2128, 69399 }, + { 0x232D, 69402 }, + { 0x29DF, 69403 }, + { 0x29F3, 69405 }, + { 0x29EF, 69408 }, + { 0x29F1, 69411 }, + { 0x29F2, 69414 }, + { 0x29EE, 69417 }, + { 0x29F0, 69420 }, + { 0x269C, 69423 }, + { 0x27AC, 69424 }, + { 0x2265, 69429 }, + { 0x2A7E, 69433 }, + { 0x2A82, 69438 }, + { 0x2A84, 69446 }, + { 0x2A80, 69455 }, + { 0x2277, 69463 }, + { 0x2273, 69466 }, + { 0x2A86, 69470 }, + { 0x2A8A, 69473 }, + { 0x2A88, 69477 }, + { 0x2269, 69483 }, + { 0x22E7, 69488 }, + { 0x2267, 69493 }, + { 0x003E, 69497 }, + { 0x22D7, 69499 }, + { 0x2A7A, 69502 }, + { 0x2A7C, 69506 }, + { 0x2A8E, 69511 }, + { 0x2A90, 69516 }, + { 0x2A94, 69521 }, + { 0x2A92, 69530 }, + { 0x2978, 69536 }, + { 0x2A8C, 69540 }, + { 0x22DB, 69546 }, + { 0x2AA5, 69551 }, + { 0x2AA7, 69554 }, + { 0x2AA9, 69558 }, + { 0x2AA4, 69565 }, + { 0x002D, 69568 }, + { 0x2E12, 69569 }, + { 0x2229, 69570 }, + { 0x2A40, 69571 }, + { 0x2A44, 69574 }, + { 0x2A43, 69578 }, + { 0x2A49, 69581 }, + { 0x2A47, 69586 }, + { 0x2A4B, 69589 }, + { 0x96E1, 69595 }, + { 0x96DF, 69599 }, + { 0x96E0, 69603 }, + { 0x97CF, 69607 }, + { 0x97D4, 69611 }, + { 0x97D0, 69615 }, + { 0x97D3, 69619 }, + { 0x97D2, 69623 }, + { 0x97D7, 69627 }, + { 0x97CE, 69631 }, + { 0x97D6, 69635 }, + { 0x97D5, 69639 }, + { 0x97D1, 69643 }, + { 0x96DE, 69647 }, + { 0x96C1, 69651 }, + { 0x941A, 69654 }, + { 0x941B, 69658 }, + { 0x941C, 69662 }, + { 0x941D, 69666 }, + { 0x941E, 69670 }, + { 0x941F, 69674 }, + { 0x9420, 69678 }, + { 0x9421, 69682 }, + { 0x9422, 69686 }, + { 0x9423, 69690 }, + { 0x9424, 69694 }, + { 0x9425, 69698 }, + { 0x9426, 69702 }, + { 0x9427, 69706 }, + { 0x9428, 69710 }, + { 0x9429, 69714 }, + { 0x942A, 69718 }, + { 0x942B, 69722 }, + { 0x942C, 69726 }, + { 0x942D, 69730 }, + { 0x942E, 69734 }, + { 0x942F, 69738 }, + { 0x9430, 69742 }, + { 0x9431, 69746 }, + { 0x9432, 69750 }, + { 0x9433, 69754 }, + { 0x96CD, 69758 }, + { 0x96CE, 69762 }, + { 0x96D1, 69766 }, + { 0x96CF, 69770 }, + { 0x96D8, 69774 }, + { 0x96C8, 69778 }, + { 0x96D7, 69782 }, + { 0x96D9, 69786 }, + { 0x96D2, 69790 }, + { 0x96D5, 69794 }, + { 0x96C3, 69798 }, + { 0x96CA, 69802 }, + { 0x96C7, 69806 }, + { 0x96C2, 69810 }, + { 0x96C5, 69814 }, + { 0x96D3, 69818 }, + { 0x96C4, 69823 }, + { 0x96CB, 69827 }, + { 0x96CC, 69831 }, + { 0x96DA, 69835 }, + { 0x96D4, 69839 }, + { 0x96C9, 69843 }, + { 0x97CB, 69847 }, + { 0x96C6, 69851 }, + { 0x96D0, 69855 }, + { 0x96D6, 69859 }, + { 0x96DD, 69863 }, + { 0x9755, 69867 }, + { 0x9753, 69872 }, + { 0x9754, 69877 }, + { 0x9752, 69882 }, + { 0x9735, 69887 }, + { 0x9482, 69891 }, + { 0x9483, 69896 }, + { 0x9484, 69901 }, + { 0x9485, 69906 }, + { 0x9486, 69911 }, + { 0x9487, 69916 }, + { 0x9488, 69921 }, + { 0x9489, 69926 }, + { 0x948A, 69931 }, + { 0x948B, 69936 }, + { 0x948C, 69941 }, + { 0x948D, 69946 }, + { 0x948E, 69951 }, + { 0x948F, 69956 }, + { 0x9490, 69961 }, + { 0x9491, 69966 }, + { 0x9492, 69971 }, + { 0x9493, 69976 }, + { 0x9494, 69981 }, + { 0x9495, 69986 }, + { 0x9496, 69991 }, + { 0x9497, 69996 }, + { 0x9498, 70001 }, + { 0x9499, 70006 }, + { 0x949A, 70011 }, + { 0x949B, 70016 }, + { 0x9741, 70021 }, + { 0x9742, 70026 }, + { 0x9745, 70031 }, + { 0x9743, 70036 }, + { 0x974C, 70041 }, + { 0x973C, 70046 }, + { 0x974B, 70051 }, + { 0x974D, 70056 }, + { 0x9746, 70061 }, + { 0x9749, 70066 }, + { 0x9737, 70071 }, + { 0x973E, 70076 }, + { 0x973B, 70081 }, + { 0x9736, 70086 }, + { 0x9739, 70091 }, + { 0x9747, 70096 }, + { 0x9738, 70102 }, + { 0x973F, 70107 }, + { 0x9740, 70112 }, + { 0x974E, 70117 }, + { 0x9748, 70122 }, + { 0x973D, 70127 }, + { 0x973A, 70132 }, + { 0x9744, 70137 }, + { 0x974A, 70142 }, + { 0x9751, 70147 }, + { 0x9468, 70152 }, + { 0x9469, 70157 }, + { 0x946A, 70162 }, + { 0x946B, 70167 }, + { 0x946C, 70172 }, + { 0x946D, 70177 }, + { 0x946E, 70182 }, + { 0x946F, 70187 }, + { 0x9470, 70192 }, + { 0x9471, 70197 }, + { 0x9472, 70202 }, + { 0x9473, 70207 }, + { 0x9474, 70212 }, + { 0x9475, 70217 }, + { 0x9476, 70222 }, + { 0x9477, 70227 }, + { 0x9478, 70232 }, + { 0x9479, 70237 }, + { 0x947A, 70242 }, + { 0x947B, 70247 }, + { 0x947C, 70252 }, + { 0x947D, 70257 }, + { 0x947E, 70262 }, + { 0x947F, 70267 }, + { 0x9480, 70272 }, + { 0x9481, 70277 }, + { 0x9727, 70282 }, + { 0x9728, 70287 }, + { 0x972B, 70292 }, + { 0x9729, 70297 }, + { 0x9732, 70302 }, + { 0x9722, 70307 }, + { 0x9731, 70312 }, + { 0x9733, 70317 }, + { 0x972C, 70322 }, + { 0x972F, 70327 }, + { 0x971D, 70332 }, + { 0x9724, 70337 }, + { 0x9721, 70342 }, + { 0x971C, 70347 }, + { 0x971F, 70352 }, + { 0x971E, 70357 }, + { 0x9725, 70362 }, + { 0x9726, 70367 }, + { 0x9734, 70372 }, + { 0x972E, 70377 }, + { 0x9723, 70382 }, + { 0x972D, 70387 }, + { 0x9720, 70393 }, + { 0x972A, 70398 }, + { 0x9730, 70403 }, + { 0x9750, 70408 }, + { 0x974F, 70413 }, + { 0x94EA, 70418 }, + { 0x94EB, 70423 }, + { 0x94EC, 70428 }, + { 0x94ED, 70433 }, + { 0x94EE, 70438 }, + { 0x94EF, 70443 }, + { 0x94F0, 70448 }, + { 0x94F1, 70453 }, + { 0x94F2, 70458 }, + { 0x94F3, 70463 }, + { 0x94F4, 70468 }, + { 0x94F5, 70473 }, + { 0x94F6, 70478 }, + { 0x94F7, 70483 }, + { 0x94F8, 70488 }, + { 0x94F9, 70493 }, + { 0x94FA, 70498 }, + { 0x94FB, 70503 }, + { 0x94FC, 70508 }, + { 0x94FD, 70513 }, + { 0x94FE, 70518 }, + { 0x94FF, 70523 }, + { 0x9500, 70528 }, + { 0x9501, 70533 }, + { 0x9502, 70538 }, + { 0x9503, 70543 }, + { 0x94D0, 70548 }, + { 0x94D1, 70553 }, + { 0x94D2, 70558 }, + { 0x94D3, 70563 }, + { 0x94D4, 70568 }, + { 0x94D5, 70573 }, + { 0x94D6, 70578 }, + { 0x94D7, 70583 }, + { 0x94D8, 70588 }, + { 0x94D9, 70593 }, + { 0x94DA, 70598 }, + { 0x94DB, 70603 }, + { 0x94DC, 70608 }, + { 0x94DD, 70613 }, + { 0x94DE, 70618 }, + { 0x94DF, 70623 }, + { 0x94E0, 70628 }, + { 0x94E1, 70633 }, + { 0x94E2, 70638 }, + { 0x94E3, 70643 }, + { 0x94E4, 70648 }, + { 0x94E5, 70653 }, + { 0x94E6, 70658 }, + { 0x94E7, 70663 }, + { 0x94E8, 70668 }, + { 0x94E9, 70673 }, + { 0x9400, 70678 }, + { 0x9401, 70682 }, + { 0x9402, 70686 }, + { 0x9403, 70690 }, + { 0x9404, 70694 }, + { 0x9405, 70698 }, + { 0x9406, 70702 }, + { 0x9407, 70706 }, + { 0x9408, 70710 }, + { 0x9409, 70714 }, + { 0x940A, 70718 }, + { 0x940B, 70722 }, + { 0x940C, 70726 }, + { 0x940D, 70730 }, + { 0x940E, 70734 }, + { 0x940F, 70738 }, + { 0x9410, 70742 }, + { 0x9411, 70746 }, + { 0x9412, 70750 }, + { 0x9413, 70754 }, + { 0x9414, 70758 }, + { 0x9415, 70762 }, + { 0x9416, 70766 }, + { 0x9417, 70770 }, + { 0x9418, 70774 }, + { 0x9419, 70778 }, + { 0x96B3, 70782 }, + { 0x96B4, 70786 }, + { 0x96B7, 70790 }, + { 0x96B5, 70794 }, + { 0x96BE, 70798 }, + { 0x96AE, 70802 }, + { 0x96BD, 70806 }, + { 0x96BF, 70810 }, + { 0x96B8, 70814 }, + { 0x96BB, 70818 }, + { 0x96A9, 70822 }, + { 0x96B0, 70826 }, + { 0x96AD, 70830 }, + { 0x96A8, 70834 }, + { 0x96AB, 70838 }, + { 0x96AA, 70842 }, + { 0x96B1, 70846 }, + { 0x96B2, 70850 }, + { 0x96C0, 70854 }, + { 0x96BA, 70858 }, + { 0x96AF, 70862 }, + { 0x96B9, 70866 }, + { 0x97CA, 70871 }, + { 0x96AC, 70875 }, + { 0x96B6, 70879 }, + { 0x96BC, 70883 }, + { 0x96DC, 70887 }, + { 0x9586, 70891 }, + { 0x9587, 70896 }, + { 0x9588, 70901 }, + { 0x9589, 70906 }, + { 0x958A, 70911 }, + { 0x958B, 70916 }, + { 0x958C, 70921 }, + { 0x958D, 70926 }, + { 0x958E, 70931 }, + { 0x958F, 70936 }, + { 0x9590, 70941 }, + { 0x9591, 70946 }, + { 0x9592, 70951 }, + { 0x9593, 70956 }, + { 0x9594, 70961 }, + { 0x9595, 70966 }, + { 0x9596, 70971 }, + { 0x9597, 70976 }, + { 0x9598, 70981 }, + { 0x9599, 70986 }, + { 0x959A, 70991 }, + { 0x959B, 70996 }, + { 0x959C, 71001 }, + { 0x959D, 71006 }, + { 0x959E, 71011 }, + { 0x959F, 71016 }, + { 0x956C, 71021 }, + { 0x956D, 71026 }, + { 0x956E, 71031 }, + { 0x956F, 71036 }, + { 0x9570, 71041 }, + { 0x9571, 71046 }, + { 0x9572, 71051 }, + { 0x9573, 71056 }, + { 0x9574, 71061 }, + { 0x9575, 71066 }, + { 0x9576, 71071 }, + { 0x9577, 71076 }, + { 0x9578, 71081 }, + { 0x9579, 71086 }, + { 0x957A, 71091 }, + { 0x957B, 71096 }, + { 0x957C, 71101 }, + { 0x957D, 71106 }, + { 0x957E, 71111 }, + { 0x957F, 71116 }, + { 0x9580, 71121 }, + { 0x9581, 71126 }, + { 0x9582, 71131 }, + { 0x9583, 71136 }, + { 0x9584, 71141 }, + { 0x9585, 71146 }, + { 0x96DB, 71151 }, + { 0x27E8, 71155 }, + { 0x27E6, 71159 }, + { 0x27EC, 71164 }, + { 0x27EA, 71170 }, + { 0x27EE, 71175 }, + { 0x27E9, 71179 }, + { 0x27E7, 71183 }, + { 0x27ED, 71188 }, + { 0x27EB, 71194 }, + { 0x27EF, 71199 }, + { 0x971B, 71203 }, + { 0x9719, 71207 }, + { 0x971A, 71211 }, + { 0x9718, 71215 }, + { 0x96FB, 71219 }, + { 0x944E, 71222 }, + { 0x944F, 71226 }, + { 0x9450, 71230 }, + { 0x9451, 71234 }, + { 0x9452, 71238 }, + { 0x9453, 71242 }, + { 0x9454, 71246 }, + { 0x9456, 71250 }, + { 0x9457, 71254 }, + { 0x9458, 71258 }, + { 0x9459, 71262 }, + { 0x945A, 71266 }, + { 0x945B, 71270 }, + { 0x945C, 71274 }, + { 0x945D, 71278 }, + { 0x945E, 71282 }, + { 0x945F, 71286 }, + { 0x9460, 71290 }, + { 0x9461, 71294 }, + { 0x9462, 71298 }, + { 0x9463, 71302 }, + { 0x9464, 71306 }, + { 0x9465, 71310 }, + { 0x9466, 71314 }, + { 0x9467, 71318 }, + { 0x9707, 71322 }, + { 0x9708, 71326 }, + { 0x970B, 71330 }, + { 0x9709, 71334 }, + { 0x9712, 71338 }, + { 0x9702, 71342 }, + { 0x9711, 71346 }, + { 0x9713, 71350 }, + { 0x970C, 71354 }, + { 0x970F, 71358 }, + { 0x96FD, 71362 }, + { 0x9704, 71366 }, + { 0x9701, 71370 }, + { 0x96FC, 71374 }, + { 0x96FF, 71378 }, + { 0x970D, 71382 }, + { 0x96FE, 71387 }, + { 0x9705, 71391 }, + { 0x9706, 71395 }, + { 0x9714, 71399 }, + { 0x970E, 71403 }, + { 0x9703, 71407 }, + { 0x96A4, 71411 }, + { 0x96A5, 71416 }, + { 0x9700, 71421 }, + { 0x970A, 71425 }, + { 0x9710, 71429 }, + { 0x9717, 71433 }, + { 0x9434, 71437 }, + { 0x9435, 71441 }, + { 0x9436, 71445 }, + { 0x9437, 71449 }, + { 0x9438, 71453 }, + { 0x9439, 71457 }, + { 0x943A, 71461 }, + { 0x943B, 71465 }, + { 0x943C, 71469 }, + { 0x943D, 71473 }, + { 0x943E, 71477 }, + { 0x943F, 71481 }, + { 0x9440, 71485 }, + { 0x9441, 71489 }, + { 0x9442, 71493 }, + { 0x9443, 71497 }, + { 0x9444, 71501 }, + { 0x9445, 71505 }, + { 0x9446, 71509 }, + { 0x9447, 71513 }, + { 0x9448, 71517 }, + { 0x9449, 71521 }, + { 0x944A, 71525 }, + { 0x944B, 71529 }, + { 0x944C, 71533 }, + { 0x944D, 71537 }, + { 0x96ED, 71541 }, + { 0x96EE, 71545 }, + { 0x96F1, 71549 }, + { 0x96EF, 71553 }, + { 0x96F8, 71557 }, + { 0x96E8, 71561 }, + { 0x96F7, 71565 }, + { 0x96F9, 71569 }, + { 0x96F2, 71573 }, + { 0x96F5, 71577 }, + { 0x96E3, 71581 }, + { 0x96EA, 71585 }, + { 0x96E7, 71589 }, + { 0x96E2, 71593 }, + { 0x96E5, 71597 }, + { 0x96E4, 71601 }, + { 0x96EB, 71605 }, + { 0x96EC, 71609 }, + { 0x96FA, 71613 }, + { 0x96F4, 71617 }, + { 0x96E9, 71621 }, + { 0x96F3, 71625 }, + { 0x96E6, 71630 }, + { 0x96F0, 71634 }, + { 0x96F6, 71638 }, + { 0x9716, 71642 }, + { 0x9715, 71646 }, + { 0x94B6, 71650 }, + { 0x94B7, 71654 }, + { 0x94B8, 71658 }, + { 0x94B9, 71662 }, + { 0x94BB, 71666 }, + { 0x94BD, 71670 }, + { 0x94BE, 71674 }, + { 0x94BF, 71678 }, + { 0x94C0, 71682 }, + { 0x94C1, 71686 }, + { 0x94C2, 71690 }, + { 0x94C3, 71694 }, + { 0x94C5, 71698 }, + { 0x94C6, 71702 }, + { 0x94C7, 71706 }, + { 0x94C8, 71710 }, + { 0x94C9, 71714 }, + { 0x94CA, 71718 }, + { 0x94CB, 71722 }, + { 0x94CC, 71726 }, + { 0x94CD, 71730 }, + { 0x94CE, 71734 }, + { 0x94CF, 71738 }, + { 0x949C, 71742 }, + { 0x949E, 71746 }, + { 0x949F, 71750 }, + { 0x94A2, 71754 }, + { 0x94A5, 71758 }, + { 0x94A6, 71762 }, + { 0x94A9, 71766 }, + { 0x94AA, 71770 }, + { 0x94AB, 71774 }, + { 0x94AC, 71778 }, + { 0x94AE, 71782 }, + { 0x94AF, 71786 }, + { 0x94B0, 71790 }, + { 0x94B1, 71794 }, + { 0x94B2, 71798 }, + { 0x94B3, 71802 }, + { 0x94B4, 71806 }, + { 0x94B5, 71810 }, + { 0x951E, 71814 }, + { 0x951F, 71818 }, + { 0x9520, 71822 }, + { 0x9521, 71826 }, + { 0x9522, 71830 }, + { 0x9523, 71834 }, + { 0x9524, 71838 }, + { 0x9525, 71842 }, + { 0x9526, 71846 }, + { 0x9527, 71850 }, + { 0x9528, 71854 }, + { 0x9529, 71858 }, + { 0x952A, 71862 }, + { 0x952B, 71866 }, + { 0x952C, 71870 }, + { 0x952D, 71874 }, + { 0x952E, 71878 }, + { 0x952F, 71882 }, + { 0x9530, 71886 }, + { 0x9531, 71890 }, + { 0x9532, 71894 }, + { 0x9533, 71898 }, + { 0x9534, 71902 }, + { 0x9535, 71906 }, + { 0x9536, 71910 }, + { 0x9537, 71914 }, + { 0x9504, 71918 }, + { 0x9505, 71922 }, + { 0x9507, 71926 }, + { 0x9508, 71930 }, + { 0x9509, 71934 }, + { 0x950A, 71938 }, + { 0x950D, 71942 }, + { 0x950E, 71946 }, + { 0x950F, 71950 }, + { 0x9510, 71954 }, + { 0x9511, 71958 }, + { 0x9512, 71962 }, + { 0x9513, 71966 }, + { 0x9514, 71970 }, + { 0x9516, 71974 }, + { 0x9517, 71978 }, + { 0x9518, 71982 }, + { 0x9519, 71986 }, + { 0x951A, 71990 }, + { 0x951B, 71994 }, + { 0x951C, 71998 }, + { 0x97F7, 72002 }, + { 0x97FC, 72006 }, + { 0x97F8, 72010 }, + { 0x97FB, 72014 }, + { 0x97FA, 72018 }, + { 0x97FF, 72022 }, + { 0x97F6, 72026 }, + { 0x97FE, 72030 }, + { 0x97FD, 72034 }, + { 0x97F9, 72038 }, + { 0x968A, 72042 }, + { 0x968B, 72046 }, + { 0x968C, 72050 }, + { 0x968D, 72054 }, + { 0x968E, 72058 }, + { 0x968F, 72062 }, + { 0x9690, 72066 }, + { 0x9691, 72070 }, + { 0x9692, 72074 }, + { 0x9693, 72078 }, + { 0x9694, 72082 }, + { 0x9695, 72086 }, + { 0x9696, 72090 }, + { 0x9697, 72094 }, + { 0x9698, 72098 }, + { 0x9699, 72102 }, + { 0x969A, 72106 }, + { 0x969B, 72110 }, + { 0x969C, 72114 }, + { 0x969D, 72118 }, + { 0x969E, 72122 }, + { 0x969F, 72126 }, + { 0x96A0, 72130 }, + { 0x96A1, 72134 }, + { 0x96A2, 72138 }, + { 0x96A3, 72142 }, + { 0x9670, 72146 }, + { 0x9671, 72150 }, + { 0x9672, 72154 }, + { 0x9673, 72158 }, + { 0x9674, 72162 }, + { 0x9675, 72166 }, + { 0x9676, 72170 }, + { 0x9677, 72174 }, + { 0x9678, 72178 }, + { 0x9679, 72182 }, + { 0x967A, 72186 }, + { 0x967B, 72190 }, + { 0x967C, 72194 }, + { 0x967D, 72198 }, + { 0x967E, 72202 }, + { 0x967F, 72206 }, + { 0x9680, 72210 }, + { 0x9681, 72214 }, + { 0x9682, 72218 }, + { 0x9683, 72222 }, + { 0x9684, 72226 }, + { 0x9685, 72230 }, + { 0x9686, 72234 }, + { 0x9687, 72238 }, + { 0x9688, 72242 }, + { 0x9689, 72246 }, + { 0x978F, 72250 }, + { 0x978D, 72255 }, + { 0x978E, 72260 }, + { 0x97ED, 72265 }, + { 0x97F2, 72270 }, + { 0x97EE, 72275 }, + { 0x97F1, 72280 }, + { 0x97F0, 72285 }, + { 0x97F5, 72290 }, + { 0x97EC, 72295 }, + { 0x97F4, 72300 }, + { 0x97F3, 72305 }, + { 0x97EF, 72310 }, + { 0x978C, 72315 }, + { 0x976F, 72320 }, + { 0x95EE, 72324 }, + { 0x95EF, 72329 }, + { 0x95F0, 72334 }, + { 0x95F1, 72339 }, + { 0x95F2, 72344 }, + { 0x95F3, 72349 }, + { 0x95F4, 72354 }, + { 0x95F5, 72359 }, + { 0x95F6, 72364 }, + { 0x95F7, 72369 }, + { 0x95F8, 72374 }, + { 0x95F9, 72379 }, + { 0x95FA, 72384 }, + { 0x95FB, 72389 }, + { 0x95FC, 72394 }, + { 0x95FD, 72399 }, + { 0x95FE, 72404 }, + { 0x95FF, 72409 }, + { 0x9600, 72414 }, + { 0x9601, 72419 }, + { 0x9602, 72424 }, + { 0x9603, 72429 }, + { 0x9604, 72434 }, + { 0x9605, 72439 }, + { 0x9606, 72444 }, + { 0x9607, 72449 }, + { 0x977B, 72454 }, + { 0x977C, 72459 }, + { 0x977F, 72464 }, + { 0x977D, 72469 }, + { 0x9786, 72474 }, + { 0x9776, 72479 }, + { 0x9785, 72484 }, + { 0x9787, 72489 }, + { 0x9780, 72494 }, + { 0x9783, 72499 }, + { 0x9771, 72504 }, + { 0x9778, 72509 }, + { 0x9775, 72514 }, + { 0x9770, 72519 }, + { 0x9773, 72524 }, + { 0x9781, 72529 }, + { 0x9772, 72535 }, + { 0x9779, 72540 }, + { 0x977A, 72545 }, + { 0x9788, 72550 }, + { 0x9782, 72555 }, + { 0x9777, 72560 }, + { 0x9774, 72565 }, + { 0x977E, 72570 }, + { 0x9784, 72575 }, + { 0x978B, 72580 }, + { 0x97C9, 72585 }, + { 0x97C7, 72591 }, + { 0x97C8, 72597 }, + { 0x97C6, 72603 }, + { 0x97A9, 72609 }, + { 0x9656, 72614 }, + { 0x9657, 72620 }, + { 0x9658, 72626 }, + { 0x9659, 72632 }, + { 0x965A, 72638 }, + { 0x965B, 72644 }, + { 0x965C, 72650 }, + { 0x965D, 72656 }, + { 0x965E, 72662 }, + { 0x965F, 72668 }, + { 0x9660, 72674 }, + { 0x9661, 72680 }, + { 0x9662, 72686 }, + { 0x9663, 72692 }, + { 0x9664, 72698 }, + { 0x9665, 72704 }, + { 0x9666, 72710 }, + { 0x9667, 72716 }, + { 0x9668, 72722 }, + { 0x9669, 72728 }, + { 0x966A, 72734 }, + { 0x966B, 72740 }, + { 0x966C, 72746 }, + { 0x966D, 72752 }, + { 0x966E, 72758 }, + { 0x966F, 72764 }, + { 0x97B5, 72770 }, + { 0x97B6, 72776 }, + { 0x97B9, 72782 }, + { 0x97B7, 72788 }, + { 0x97C0, 72794 }, + { 0x97B0, 72800 }, + { 0x97BF, 72806 }, + { 0x97C1, 72812 }, + { 0x97BA, 72818 }, + { 0x97BD, 72824 }, + { 0x97AB, 72830 }, + { 0x97B2, 72836 }, + { 0x97AF, 72842 }, + { 0x97AA, 72848 }, + { 0x97AD, 72854 }, + { 0x97BB, 72860 }, + { 0x97AC, 72867 }, + { 0x97B3, 72873 }, + { 0x97B4, 72879 }, + { 0x97C2, 72885 }, + { 0x97BC, 72891 }, + { 0x97B1, 72897 }, + { 0x97AE, 72903 }, + { 0x97B8, 72909 }, + { 0x97BE, 72915 }, + { 0x97C5, 72921 }, + { 0x963C, 72927 }, + { 0x963D, 72933 }, + { 0x963E, 72939 }, + { 0x963F, 72945 }, + { 0x9640, 72951 }, + { 0x9641, 72957 }, + { 0x9642, 72963 }, + { 0x9643, 72969 }, + { 0x9644, 72975 }, + { 0x9645, 72981 }, + { 0x9646, 72987 }, + { 0x9647, 72993 }, + { 0x9648, 72999 }, + { 0x9649, 73005 }, + { 0x964A, 73011 }, + { 0x964B, 73017 }, + { 0x964C, 73023 }, + { 0x964D, 73029 }, + { 0x964E, 73035 }, + { 0x964F, 73041 }, + { 0x9650, 73047 }, + { 0x9651, 73053 }, + { 0x9652, 73059 }, + { 0x9653, 73065 }, + { 0x9654, 73071 }, + { 0x9655, 73077 }, + { 0x979B, 73083 }, + { 0x979C, 73089 }, + { 0x979F, 73095 }, + { 0x979D, 73101 }, + { 0x97A6, 73107 }, + { 0x9796, 73113 }, + { 0x97A5, 73119 }, + { 0x97A7, 73125 }, + { 0x97A0, 73131 }, + { 0x97A3, 73137 }, + { 0x9791, 73143 }, + { 0x9798, 73149 }, + { 0x9795, 73155 }, + { 0x9790, 73161 }, + { 0x9793, 73167 }, + { 0x9792, 73173 }, + { 0x9799, 73179 }, + { 0x979A, 73185 }, + { 0x97A8, 73191 }, + { 0x97A2, 73197 }, + { 0x9797, 73203 }, + { 0x97A1, 73209 }, + { 0x9794, 73216 }, + { 0x979E, 73222 }, + { 0x97A4, 73228 }, + { 0x97C4, 73234 }, + { 0x97C3, 73240 }, + { 0x95D4, 73246 }, + { 0x95D5, 73251 }, + { 0x95D6, 73256 }, + { 0x95D7, 73261 }, + { 0x95D8, 73266 }, + { 0x95D9, 73271 }, + { 0x95DA, 73276 }, + { 0x95DB, 73281 }, + { 0x95DC, 73286 }, + { 0x95DD, 73291 }, + { 0x95DE, 73296 }, + { 0x95DF, 73301 }, + { 0x95E0, 73306 }, + { 0x95E1, 73311 }, + { 0x95E2, 73316 }, + { 0x95E3, 73321 }, + { 0x95E4, 73326 }, + { 0x95E5, 73331 }, + { 0x95E6, 73336 }, + { 0x95E7, 73341 }, + { 0x95E8, 73346 }, + { 0x95E9, 73351 }, + { 0x95EA, 73356 }, + { 0x95EB, 73361 }, + { 0x95EC, 73366 }, + { 0x95ED, 73371 }, + { 0x9761, 73376 }, + { 0x9762, 73381 }, + { 0x9765, 73386 }, + { 0x9763, 73391 }, + { 0x976C, 73396 }, + { 0x975C, 73401 }, + { 0x976B, 73406 }, + { 0x976D, 73411 }, + { 0x9766, 73416 }, + { 0x9769, 73421 }, + { 0x9757, 73426 }, + { 0x975E, 73431 }, + { 0x975B, 73436 }, + { 0x9756, 73441 }, + { 0x9759, 73446 }, + { 0x9758, 73451 }, + { 0x975F, 73456 }, + { 0x9760, 73461 }, + { 0x976E, 73466 }, + { 0x9768, 73471 }, + { 0x975D, 73476 }, + { 0x9767, 73481 }, + { 0x975A, 73487 }, + { 0x9764, 73492 }, + { 0x976A, 73497 }, + { 0x978A, 73502 }, + { 0x9789, 73507 }, + { 0x97E3, 73512 }, + { 0x97E8, 73516 }, + { 0x97E4, 73520 }, + { 0x97E7, 73524 }, + { 0x97E6, 73528 }, + { 0x97EB, 73532 }, + { 0x97E2, 73536 }, + { 0x97EA, 73540 }, + { 0x97E9, 73544 }, + { 0x97E5, 73548 }, + { 0x95BA, 73552 }, + { 0x95BB, 73556 }, + { 0x95BC, 73560 }, + { 0x95BD, 73564 }, + { 0x95BE, 73568 }, + { 0x95BF, 73572 }, + { 0x95C0, 73576 }, + { 0x95C1, 73580 }, + { 0x95C2, 73584 }, + { 0x95C3, 73588 }, + { 0x95C4, 73592 }, + { 0x95C5, 73596 }, + { 0x95C6, 73600 }, + { 0x95C7, 73604 }, + { 0x95C8, 73608 }, + { 0x95C9, 73612 }, + { 0x95CA, 73616 }, + { 0x95CB, 73620 }, + { 0x95CC, 73624 }, + { 0x95CD, 73628 }, + { 0x95CE, 73632 }, + { 0x95CF, 73636 }, + { 0x95D0, 73640 }, + { 0x95D1, 73644 }, + { 0x95D2, 73648 }, + { 0x95D3, 73652 }, + { 0x9622, 73656 }, + { 0x9623, 73661 }, + { 0x9624, 73666 }, + { 0x9625, 73671 }, + { 0x9626, 73676 }, + { 0x9627, 73681 }, + { 0x9628, 73686 }, + { 0x9629, 73691 }, + { 0x962A, 73696 }, + { 0x962B, 73701 }, + { 0x962C, 73706 }, + { 0x962D, 73711 }, + { 0x962E, 73716 }, + { 0x962F, 73721 }, + { 0x9630, 73726 }, + { 0x9631, 73731 }, + { 0x9632, 73736 }, + { 0x9633, 73741 }, + { 0x9634, 73746 }, + { 0x9635, 73751 }, + { 0x9636, 73756 }, + { 0x9637, 73761 }, + { 0x9638, 73766 }, + { 0x9639, 73771 }, + { 0x963A, 73776 }, + { 0x963B, 73781 }, + { 0x9608, 73786 }, + { 0x9609, 73791 }, + { 0x960A, 73796 }, + { 0x960B, 73801 }, + { 0x960C, 73806 }, + { 0x960D, 73811 }, + { 0x960E, 73816 }, + { 0x960F, 73821 }, + { 0x9610, 73826 }, + { 0x9611, 73831 }, + { 0x9612, 73836 }, + { 0x9613, 73841 }, + { 0x9614, 73846 }, + { 0x9615, 73851 }, + { 0x9616, 73856 }, + { 0x9617, 73861 }, + { 0x9618, 73866 }, + { 0x9619, 73871 }, + { 0x961A, 73876 }, + { 0x961B, 73881 }, + { 0x961C, 73886 }, + { 0x961D, 73891 }, + { 0x961E, 73896 }, + { 0x961F, 73901 }, + { 0x9620, 73906 }, + { 0x9621, 73911 }, + { 0x95A0, 73916 }, + { 0x95A1, 73920 }, + { 0x95A2, 73924 }, + { 0x95A3, 73928 }, + { 0x95A4, 73932 }, + { 0x95A5, 73936 }, + { 0x95A6, 73940 }, + { 0x95A7, 73944 }, + { 0x95A8, 73948 }, + { 0x95A9, 73952 }, + { 0x95AA, 73956 }, + { 0x95AB, 73960 }, + { 0x95AC, 73964 }, + { 0x95AD, 73968 }, + { 0x95AE, 73972 }, + { 0x95AF, 73976 }, + { 0x95B0, 73980 }, + { 0x95B1, 73984 }, + { 0x95B2, 73988 }, + { 0x95B3, 73992 }, + { 0x95B4, 73996 }, + { 0x95B5, 74000 }, + { 0x95B6, 74004 }, + { 0x95B7, 74008 }, + { 0x95B8, 74012 }, + { 0x95B9, 74016 }, + { 0x97D9, 74020 }, + { 0x97DE, 74024 }, + { 0x97DA, 74028 }, + { 0x97DD, 74032 }, + { 0x97DC, 74036 }, + { 0x97E1, 74040 }, + { 0x97D8, 74044 }, + { 0x97E0, 74048 }, + { 0x97DF, 74052 }, + { 0x97DB, 74056 }, + { 0x9552, 74060 }, + { 0x9553, 74064 }, + { 0x9554, 74068 }, + { 0x9555, 74072 }, + { 0x9556, 74076 }, + { 0x9557, 74080 }, + { 0x9558, 74084 }, + { 0x9559, 74088 }, + { 0x955A, 74092 }, + { 0x955B, 74096 }, + { 0x955C, 74100 }, + { 0x955D, 74104 }, + { 0x955E, 74108 }, + { 0x955F, 74112 }, + { 0x9560, 74116 }, + { 0x9561, 74120 }, + { 0x9562, 74124 }, + { 0x9563, 74128 }, + { 0x9564, 74132 }, + { 0x9565, 74136 }, + { 0x9566, 74140 }, + { 0x9567, 74144 }, + { 0x9568, 74148 }, + { 0x9569, 74152 }, + { 0x956A, 74156 }, + { 0x956B, 74160 }, + { 0x9538, 74164 }, + { 0x9539, 74168 }, + { 0x953B, 74172 }, + { 0x953C, 74176 }, + { 0x953D, 74180 }, + { 0x953E, 74184 }, + { 0x9540, 74188 }, + { 0x9541, 74192 }, + { 0x9542, 74196 }, + { 0x9543, 74200 }, + { 0x9544, 74204 }, + { 0x9546, 74208 }, + { 0x954A, 74212 }, + { 0x954B, 74216 }, + { 0x954C, 74220 }, + { 0x954D, 74224 }, + { 0x954E, 74228 }, + { 0x954F, 74232 }, + { 0x9550, 74236 }, + { 0x2011, 74240 }, + { 0x211E, 74242 }, + { 0x6E31, 74244 }, + { 0x6E32, 74250 }, + { 0x6E33, 74256 }, + { 0x6E30, 74262 }, + { 0x6E3F, 74269 }, + { 0x6E3B, 74276 }, + { 0x6E37, 74284 }, + { 0x6E43, 74291 }, + { 0x6E17, 74299 }, + { 0x6E41, 74307 }, + { 0x6E3D, 74314 }, + { 0x6E47, 74322 }, + { 0x6E39, 74329 }, + { 0x6E35, 74337 }, + { 0x6E34, 74343 }, + { 0x6E13, 74350 }, + { 0x6E10, 74355 }, + { 0x6E40, 74360 }, + { 0x6E3C, 74367 }, + { 0x6E38, 74375 }, + { 0x6E44, 74382 }, + { 0x6E18, 74390 }, + { 0x6E42, 74398 }, + { 0x6E3E, 74405 }, + { 0x6E48, 74413 }, + { 0x6E3A, 74420 }, + { 0x6E36, 74428 }, + { 0x6E16, 74434 }, + { 0x6E14, 74440 }, + { 0x6E19, 74445 }, + { 0x6E15, 74451 }, + { 0x6E12, 74457 }, + { 0x6E11, 74464 }, + { 0x221D, 74470 }, + { 0x27A9, 74472 }, + { 0x29F4, 74476 }, + { 0x23E4, 74477 }, + { 0x2004, 74478 }, + { 0x2608, 74480 }, + { 0x27BC, 74481 }, + { 0x21B6, 74484 }, + { 0x21BA, 74488 }, + { 0x2940, 74492 }, + { 0x27F2, 74496 }, + { 0x2233, 74500 }, + { 0x2A11, 74503 }, + { 0x2246, 74505 }, + { 0x2A70, 74511 }, + { 0x2245, 74516 }, + { 0x2252, 74519 }, + { 0x2382, 74526 }, + { 0x2140, 74529 }, + { 0x213C, 74532 }, + { 0x213D, 74535 }, + { 0x2146, 74538 }, + { 0x2147, 74542 }, + { 0x2148, 74546 }, + { 0x2149, 74550 }, + { 0x2145, 74554 }, + { 0x2102, 74558 }, + { 0x210D, 74561 }, + { 0x2115, 74564 }, + { 0x2119, 74567 }, + { 0x211A, 74570 }, + { 0x211D, 74573 }, + { 0x2124, 74576 }, + { 0x213F, 74579 }, + { 0x213E, 74582 }, + { 0x29E8, 74585 }, + { 0x29E9, 74591 }, + { 0x20A0, 74597 }, + { 0x2251, 74599 }, + { 0x224E, 74602 }, + { 0x2329, 74605 }, + { 0x29FC, 74608 }, + { 0x00AB, 74612 }, + { 0x200E, 74617 }, + { 0x202D, 74619 }, + { 0x202A, 74621 }, + { 0x2213, 74623 }, + { 0x27BE, 74625 }, + { 0x2474, 74628 }, + { 0x2479, 74631 }, + { 0x2475, 74634 }, + { 0x2478, 74637 }, + { 0x2477, 74640 }, + { 0x247C, 74643 }, + { 0x247B, 74646 }, + { 0x247A, 74649 }, + { 0x2476, 74652 }, + { 0x249C, 74655 }, + { 0x249D, 74660 }, + { 0x249E, 74665 }, + { 0x249F, 74670 }, + { 0x24A0, 74675 }, + { 0x24A1, 74680 }, + { 0x24A2, 74685 }, + { 0x24A3, 74690 }, + { 0x24A4, 74695 }, + { 0x24A5, 74700 }, + { 0x24A6, 74705 }, + { 0x24A7, 74710 }, + { 0x24A8, 74715 }, + { 0x24A9, 74720 }, + { 0x24AA, 74725 }, + { 0x24AB, 74730 }, + { 0x24AC, 74735 }, + { 0x24AD, 74740 }, + { 0x24AE, 74745 }, + { 0x24AF, 74750 }, + { 0x24B0, 74755 }, + { 0x24B1, 74760 }, + { 0x24B2, 74765 }, + { 0x24B3, 74770 }, + { 0x24B4, 74775 }, + { 0x24B5, 74780 }, + { 0x3206, 74785 }, + { 0x3214, 74788 }, + { 0x3208, 74792 }, + { 0x3216, 74795 }, + { 0x321C, 74799 }, + { 0x320D, 74803 }, + { 0x321B, 74806 }, + { 0x3207, 74810 }, + { 0x3215, 74813 }, + { 0x3204, 74817 }, + { 0x3212, 74820 }, + { 0x3201, 74824 }, + { 0x320F, 74827 }, + { 0x3205, 74831 }, + { 0x3213, 74834 }, + { 0x3203, 74838 }, + { 0x3211, 74841 }, + { 0x3200, 74845 }, + { 0x320E, 74848 }, + { 0x3202, 74852 }, + { 0x3210, 74855 }, + { 0x3209, 74859 }, + { 0x3217, 74862 }, + { 0x320A, 74866 }, + { 0x3218, 74869 }, + { 0x320C, 74873 }, + { 0x321A, 74876 }, + { 0x320B, 74880 }, + { 0x3219, 74883 }, + { 0x321E, 74887 }, + { 0x321D, 74892 }, + { 0x247D, 74896 }, + { 0x247E, 74899 }, + { 0x247F, 74902 }, + { 0x2487, 74905 }, + { 0x2482, 74908 }, + { 0x2483, 74911 }, + { 0x2485, 74914 }, + { 0x2481, 74917 }, + { 0x2486, 74920 }, + { 0x2480, 74923 }, + { 0x2484, 74926 }, + { 0x3220, 74929 }, + { 0x3225, 74932 }, + { 0x3230, 74935 }, + { 0x3229, 74938 }, + { 0x3221, 74941 }, + { 0x323A, 74944 }, + { 0x322B, 74947 }, + { 0x3224, 74950 }, + { 0x3223, 74953 }, + { 0x3232, 74956 }, + { 0x322A, 74959 }, + { 0x3234, 74962 }, + { 0x3228, 74965 }, + { 0x3241, 74968 }, + { 0x3242, 74971 }, + { 0x322D, 74974 }, + { 0x322F, 74977 }, + { 0x3227, 74980 }, + { 0x3238, 74983 }, + { 0x322E, 74986 }, + { 0x3243, 74989 }, + { 0x3226, 74992 }, + { 0x3231, 74995 }, + { 0x323B, 74998 }, + { 0x3222, 75001 }, + { 0x322C, 75004 }, + { 0x3233, 75007 }, + { 0x3235, 75010 }, + { 0x323F, 75013 }, + { 0x3240, 75016 }, + { 0x323E, 75019 }, + { 0x3236, 75022 }, + { 0x3239, 75025 }, + { 0x323C, 75028 }, + { 0x323D, 75031 }, + { 0x3237, 75034 }, + { 0x27C2, 75037 }, + { 0x2AE1, 75038 }, + { 0x200F, 75041 }, + { 0x202E, 75043 }, + { 0x202B, 75045 }, + { 0x29E7, 75047 }, + { 0x2243, 75048 }, + { 0x2749, 75051 }, + { 0x2715, 75053 }, + { 0x00D7, 75055 }, + { 0x2A34, 75057 }, + { 0x2A35, 75063 }, + { 0x2A37, 75069 }, + { 0x2A3B, 75074 }, + { 0x2A30, 75078 }, + { 0x2A31, 75083 }, + { 0x232A, 75087 }, + { 0x29FD, 75090 }, + { 0x00BB, 75094 }, + { 0x26BC, 75099 }, + { 0x27B6, 75100 }, + { 0x27B4, 75104 }, + { 0x27B5, 75108 }, + { 0x27BA, 75111 }, + { 0x273B, 75114 }, + { 0x279D, 75116 }, + { 0x27B3, 75119 }, + { 0x30A0, 75122 }, + { 0x309B, 75125 }, + { 0x30FC, 75129 }, + { 0x309C, 75133 }, + { 0x2394, 75137 }, + { 0x267D, 75139 }, + { 0x238F, 75142 }, + { 0x2390, 75145 }, + { 0x2392, 75148 }, + { 0x2391, 75150 }, }; static const struct { uint16_t code; uint32_t name:24; } #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) __attribute__((__packed__)) #endif -unicode_code_to_name[16626] = { - { 0x0020, 20193 }, - { 0x0021, 62481 }, - { 0x0022, 60064 }, - { 0x0023, 31880 }, - { 0x0024, 28233 }, - { 0x0025, 38472 }, - { 0x0026, 50883 }, - { 0x0027, 60950 }, - { 0x0028, 7982 }, - { 0x0029, 19500 }, - { 0x002A, 40529 }, - { 0x002B, 8143 }, - { 0x002C, 8918 }, - { 0x002D, 63377 }, - { 0x002E, 7653 }, - { 0x002F, 39034 }, - { 0x0030, 8975 }, - { 0x0031, 8939 }, - { 0x0032, 8951 }, - { 0x0033, 8989 }, - { 0x0034, 8963 }, - { 0x0035, 8957 }, - { 0x0036, 8945 }, - { 0x0037, 8983 }, - { 0x0038, 8977 }, - { 0x0039, 8969 }, - { 0x003A, 8912 }, - { 0x003B, 60111 }, - { 0x003C, 59098 }, - { 0x003D, 28412 }, - { 0x003E, 63306 }, - { 0x003F, 50229 }, - { 0x0040, 60961 }, - { 0x0041, 16094 }, - { 0x0042, 16317 }, - { 0x0043, 16360 }, - { 0x0044, 16415 }, - { 0x0045, 16495 }, - { 0x0046, 16680 }, - { 0x0047, 16697 }, - { 0x0048, 16756 }, - { 0x0049, 16817 }, - { 0x004A, 16931 }, - { 0x004B, 16947 }, - { 0x004C, 16995 }, - { 0x004D, 17088 }, - { 0x004E, 17112 }, - { 0x004F, 17197 }, - { 0x0050, 17473 }, - { 0x0051, 17502 }, - { 0x0052, 17506 }, - { 0x0053, 17584 }, - { 0x0054, 17661 }, - { 0x0055, 17738 }, - { 0x0056, 17960 }, - { 0x0057, 17983 }, - { 0x0058, 18025 }, - { 0x0059, 18042 }, - { 0x005A, 18115 }, - { 0x005B, 7912 }, - { 0x005C, 38481 }, - { 0x005D, 19430 }, - { 0x005E, 60959 }, - { 0x005F, 5781 }, - { 0x0060, 9095 }, - { 0x0061, 12705 }, - { 0x0062, 12943 }, - { 0x0063, 13000 }, - { 0x0064, 13061 }, - { 0x0065, 13157 }, - { 0x0066, 13349 }, - { 0x0067, 13380 }, - { 0x0068, 13446 }, - { 0x0069, 13520 }, - { 0x006A, 13634 }, - { 0x006B, 13662 }, - { 0x006C, 13717 }, - { 0x006D, 13828 }, - { 0x006E, 13872 }, - { 0x006F, 13983 }, - { 0x0070, 14252 }, - { 0x0071, 14295 }, - { 0x0072, 14312 }, - { 0x0073, 14426 }, - { 0x0074, 14530 }, - { 0x0075, 14633 }, - { 0x0076, 14862 }, - { 0x0077, 14898 }, - { 0x0078, 14947 }, - { 0x0079, 14971 }, - { 0x007A, 15051 }, - { 0x007B, 7761 }, - { 0x007C, 50843 }, - { 0x007D, 19345 }, - { 0x007E, 20456 }, - { 0x00A0, 49907 }, - { 0x00A1, 48386 }, - { 0x00A2, 7555 }, - { 0x00A3, 19261 }, - { 0x00A4, 43966 }, - { 0x00A5, 7538 }, - { 0x00A6, 27461 }, - { 0x00A7, 38509 }, - { 0x00A8, 57709 }, - { 0x00A9, 52814 }, - { 0x00AA, 46810 }, - { 0x00AB, 68401 }, - { 0x00AC, 6473 }, - { 0x00AD, 8218 }, - { 0x00AE, 62094 }, - { 0x00AF, 31800 }, - { 0x00B0, 28187 }, - { 0x00B1, 62084 }, - { 0x00B2, 63108 }, - { 0x00B3, 63143 }, - { 0x00B4, 8607 }, - { 0x00B5, 18712 }, - { 0x00B6, 38474 }, - { 0x00B7, 31857 }, - { 0x00B8, 34945 }, - { 0x00B9, 63104 }, - { 0x00BA, 59416 }, - { 0x00BB, 68883 }, - { 0x00BC, 33807 }, - { 0x00BD, 33787 }, - { 0x00BE, 33843 }, - { 0x00BF, 48381 }, - { 0x00C0, 16211 }, - { 0x00C1, 16151 }, - { 0x00C2, 16269 }, - { 0x00C3, 16217 }, - { 0x00C4, 16255 }, - { 0x00C5, 16128 }, - { 0x00C6, 18176 }, - { 0x00C7, 16395 }, - { 0x00C8, 16538 }, - { 0x00C9, 16520 }, - { 0x00CA, 16625 }, - { 0x00CB, 16619 }, - { 0x00CC, 16860 }, - { 0x00CD, 16842 }, - { 0x00CE, 16925 }, - { 0x00CF, 16911 }, - { 0x00D0, 18226 }, - { 0x00D1, 17178 }, - { 0x00D2, 17297 }, - { 0x00D3, 17279 }, - { 0x00D4, 17425 }, - { 0x00D5, 17303 }, - { 0x00D6, 17411 }, - { 0x00D7, 68844 }, - { 0x00D8, 17390 }, - { 0x00D9, 17834 }, - { 0x00DA, 17816 }, - { 0x00DB, 17947 }, - { 0x00DC, 17902 }, - { 0x00DD, 18073 }, - { 0x00DE, 18307 }, - { 0x00DF, 15461 }, - { 0x00E0, 12822 }, - { 0x00E1, 12762 }, - { 0x00E2, 12895 }, - { 0x00E3, 12836 }, - { 0x00E4, 12874 }, - { 0x00E5, 12739 }, - { 0x00E6, 15146 }, - { 0x00E7, 13041 }, - { 0x00E8, 13200 }, - { 0x00E9, 13182 }, - { 0x00EA, 13294 }, - { 0x00EB, 13281 }, - { 0x00EC, 13556 }, - { 0x00ED, 13538 }, - { 0x00EE, 13628 }, - { 0x00EF, 13607 }, - { 0x00F0, 15274 }, - { 0x00F1, 13936 }, - { 0x00F2, 14083 }, - { 0x00F3, 14065 }, - { 0x00F4, 14204 }, - { 0x00F5, 14089 }, - { 0x00F6, 14190 }, - { 0x00F7, 45343 }, - { 0x00F8, 14169 }, - { 0x00F9, 14729 }, - { 0x00FA, 14711 }, - { 0x00FB, 14849 }, - { 0x00FC, 14797 }, - { 0x00FD, 15009 }, - { 0x00FE, 15472 }, - { 0x00FF, 15039 }, - { 0x0100, 16230 }, - { 0x0101, 12849 }, - { 0x0102, 16157 }, - { 0x0103, 12768 }, - { 0x0104, 16236 }, - { 0x0105, 12855 }, - { 0x0106, 16377 }, - { 0x0107, 13023 }, - { 0x0108, 16409 }, - { 0x0109, 13055 }, - { 0x010A, 16364 }, - { 0x010B, 13004 }, - { 0x010C, 16383 }, - { 0x010D, 13029 }, - { 0x010E, 16446 }, - { 0x010F, 13112 }, - { 0x0110, 16470 }, - { 0x0111, 13125 }, - { 0x0112, 16564 }, - { 0x0113, 13226 }, - { 0x0114, 16526 }, - { 0x0115, 13188 }, - { 0x0116, 16499 }, - { 0x0117, 13161 }, - { 0x0118, 16586 }, - { 0x0119, 13248 }, - { 0x011A, 16532 }, - { 0x011B, 13194 }, - { 0x011C, 16750 }, - { 0x011D, 13440 }, - { 0x011E, 16720 }, - { 0x011F, 13403 }, - { 0x0120, 16701 }, - { 0x0121, 13384 }, - { 0x0122, 16744 }, - { 0x0123, 13427 }, - { 0x0124, 16811 }, - { 0x0125, 13514 }, - { 0x0126, 16787 }, - { 0x0127, 13490 }, - { 0x0128, 16866 }, - { 0x0129, 13562 }, - { 0x012A, 16886 }, - { 0x012B, 13582 }, - { 0x012C, 16848 }, - { 0x012D, 13544 }, - { 0x012E, 16892 }, - { 0x012F, 13588 }, - { 0x0130, 16821 }, - { 0x0131, 15641 }, - { 0x0132, 18340 }, - { 0x0133, 15793 }, - { 0x0134, 16941 }, - { 0x0135, 13650 }, - { 0x0136, 16983 }, - { 0x0137, 13698 }, - { 0x0138, 15312 }, - { 0x0139, 17028 }, - { 0x013A, 13762 }, - { 0x013B, 17075 }, - { 0x013C, 13801 }, - { 0x013D, 17034 }, - { 0x013E, 13768 }, - { 0x013F, 17055 }, - { 0x0140, 13781 }, - { 0x0141, 17069 }, - { 0x0142, 13795 }, - { 0x0143, 17152 }, - { 0x0144, 13918 }, - { 0x0145, 17184 }, - { 0x0146, 13949 }, - { 0x0147, 17158 }, - { 0x0148, 13924 }, - { 0x0149, 13976 }, - { 0x014A, 18218 }, - { 0x014B, 15246 }, - { 0x014C, 17347 }, - { 0x014D, 14133 }, - { 0x014E, 17285 }, - { 0x014F, 14071 }, - { 0x0150, 17333 }, - { 0x0151, 14119 }, - { 0x0152, 18344 }, - { 0x0153, 15797 }, - { 0x0154, 17546 }, - { 0x0155, 14359 }, - { 0x0156, 17571 }, - { 0x0157, 14391 }, - { 0x0158, 17552 }, - { 0x0159, 14365 }, - { 0x015A, 17612 }, - { 0x015B, 14460 }, - { 0x015C, 17655 }, - { 0x015D, 14524 }, - { 0x015E, 17649 }, - { 0x015F, 14511 }, - { 0x0160, 17627 }, - { 0x0161, 14475 }, - { 0x0162, 17711 }, - { 0x0163, 14593 }, - { 0x0164, 17692 }, - { 0x0165, 14567 }, - { 0x0166, 17705 }, - { 0x0167, 14587 }, - { 0x0168, 17840 }, - { 0x0169, 14735 }, - { 0x016A, 17875 }, - { 0x016B, 14770 }, - { 0x016C, 17822 }, - { 0x016D, 14717 }, - { 0x016E, 17809 }, - { 0x016F, 14704 }, - { 0x0170, 17861 }, - { 0x0171, 14756 }, - { 0x0172, 17889 }, - { 0x0173, 14784 }, - { 0x0174, 18019 }, - { 0x0175, 14941 }, - { 0x0176, 18109 }, - { 0x0177, 15045 }, - { 0x0178, 18103 }, - { 0x0179, 18146 }, - { 0x017A, 15088 }, - { 0x017B, 18119 }, - { 0x017C, 15055 }, - { 0x017D, 18152 }, - { 0x017E, 15094 }, - { 0x017F, 15361 }, - { 0x0180, 12981 }, - { 0x0181, 16335 }, - { 0x0182, 16354 }, - { 0x0183, 12987 }, - { 0x0184, 18264 }, - { 0x0185, 15410 }, - { 0x0186, 18259 }, - { 0x0187, 16371 }, - { 0x0188, 13017 }, - { 0x0189, 18321 }, - { 0x018A, 16433 }, - { 0x018B, 16476 }, - { 0x018C, 13131 }, - { 0x018D, 15636 }, - { 0x018E, 18335 }, - { 0x018F, 18295 }, - { 0x0190, 18254 }, - { 0x0191, 16691 }, - { 0x0192, 13360 }, - { 0x0193, 16708 }, - { 0x0194, 18287 }, - { 0x0195, 15189 }, - { 0x0196, 18250 }, - { 0x0197, 16898 }, - { 0x0198, 16958 }, - { 0x0199, 13673 }, - { 0x019A, 13721 }, - { 0x019B, 15505 }, - { 0x019C, 18311 }, - { 0x019D, 17130 }, - { 0x019E, 13910 }, - { 0x019F, 17369 }, - { 0x01A0, 17231 }, - { 0x01A1, 14017 }, - { 0x01A2, 18210 }, - { 0x01A3, 15211 }, - { 0x01A4, 17484 }, - { 0x01A5, 14263 }, - { 0x01A6, 15819 }, - { 0x01A7, 18269 }, - { 0x01A8, 15415 }, - { 0x01A9, 18222 }, - { 0x01AA, 16069 }, - { 0x01AB, 14599 }, - { 0x01AC, 17679 }, - { 0x01AD, 14554 }, - { 0x01AE, 17724 }, - { 0x01AF, 17761 }, - { 0x01B0, 14656 }, - { 0x01B1, 18331 }, - { 0x01B2, 17971 }, - { 0x01B3, 18060 }, - { 0x01B4, 14989 }, - { 0x01B5, 18158 }, - { 0x01B6, 15114 }, - { 0x01B7, 18230 }, - { 0x01B8, 18240 }, - { 0x01B9, 15307 }, - { 0x01BA, 15288 }, - { 0x01BB, 15825 }, - { 0x01BC, 18274 }, - { 0x01BD, 15420 }, - { 0x01BE, 16062 }, - { 0x01BF, 15830 }, - { 0x01C0, 16018 }, - { 0x01C1, 16037 }, - { 0x01C2, 16041 }, - { 0x01C3, 16081 }, - { 0x01C4, 18196 }, - { 0x01C5, 16460 }, - { 0x01C6, 15171 }, - { 0x01C7, 18202 }, - { 0x01C8, 17040 }, - { 0x01C9, 15193 }, - { 0x01CA, 18206 }, - { 0x01CB, 17170 }, - { 0x01CC, 15207 }, - { 0x01CD, 16205 }, - { 0x01CE, 12816 }, - { 0x01CF, 16854 }, - { 0x01D0, 13550 }, - { 0x01D1, 17291 }, - { 0x01D2, 14077 }, - { 0x01D3, 17828 }, - { 0x01D4, 14723 }, - { 0x01D5, 17932 }, - { 0x01D6, 14827 }, - { 0x01D7, 17908 }, - { 0x01D8, 14803 }, - { 0x01D9, 17916 }, - { 0x01DA, 14811 }, - { 0x01DB, 17924 }, - { 0x01DC, 14819 }, - { 0x01DD, 15521 }, - { 0x01DE, 16261 }, - { 0x01DF, 12880 }, - { 0x01E0, 16105 }, - { 0x01E1, 12716 }, - { 0x01E2, 18186 }, - { 0x01E3, 15156 }, - { 0x01E4, 16738 }, - { 0x01E5, 13421 }, - { 0x01E6, 16726 }, - { 0x01E7, 13409 }, - { 0x01E8, 16977 }, - { 0x01E9, 13692 }, - { 0x01EA, 17376 }, - { 0x01EB, 14155 }, - { 0x01EC, 17382 }, - { 0x01ED, 14161 }, - { 0x01EE, 18234 }, - { 0x01EF, 15294 }, - { 0x01F0, 13638 }, - { 0x01F1, 18192 }, - { 0x01F2, 16452 }, - { 0x01F3, 15167 }, - { 0x01F4, 16714 }, - { 0x01F5, 13397 }, - { 0x01F6, 18291 }, - { 0x01F7, 18279 }, - { 0x01F8, 17164 }, - { 0x01F9, 13930 }, - { 0x01FA, 16135 }, - { 0x01FB, 12746 }, - { 0x01FC, 18180 }, - { 0x01FD, 15150 }, - { 0x01FE, 17396 }, - { 0x01FF, 14175 }, - { 0x0200, 16223 }, - { 0x0201, 12842 }, - { 0x0202, 16248 }, - { 0x0203, 12867 }, - { 0x0204, 16557 }, - { 0x0205, 13219 }, - { 0x0206, 16612 }, - { 0x0207, 13274 }, - { 0x0208, 16879 }, - { 0x0209, 13575 }, - { 0x020A, 16904 }, - { 0x020B, 13600 }, - { 0x020C, 17340 }, - { 0x020D, 14126 }, - { 0x020E, 17404 }, - { 0x020F, 14183 }, - { 0x0210, 17558 }, - { 0x0211, 14371 }, - { 0x0212, 17577 }, - { 0x0213, 14419 }, - { 0x0214, 17868 }, - { 0x0215, 14763 }, - { 0x0216, 17895 }, - { 0x0217, 14790 }, - { 0x0218, 17642 }, - { 0x0219, 14490 }, - { 0x021A, 17698 }, - { 0x021B, 14573 }, - { 0x021C, 18283 }, - { 0x021D, 15425 }, - { 0x021E, 16781 }, - { 0x021F, 13484 }, - { 0x0220, 17144 }, - { 0x0221, 13079 }, - { 0x0222, 18214 }, - { 0x0223, 15215 }, - { 0x0224, 18133 }, - { 0x0225, 15075 }, - { 0x0226, 16098 }, - { 0x0227, 12709 }, - { 0x0228, 16598 }, - { 0x0229, 13260 }, - { 0x022A, 17417 }, - { 0x022B, 14196 }, - { 0x022C, 17317 }, - { 0x022D, 14103 }, - { 0x022E, 17201 }, - { 0x022F, 13987 }, - { 0x0230, 17208 }, - { 0x0231, 13994 }, - { 0x0232, 18091 }, - { 0x0233, 15027 }, - { 0x0234, 13749 }, - { 0x0235, 13890 }, - { 0x0236, 14548 }, - { 0x0237, 15646 }, - { 0x0238, 15162 }, - { 0x0239, 15219 }, - { 0x023A, 16242 }, - { 0x023B, 16389 }, - { 0x023C, 13035 }, - { 0x023D, 16999 }, - { 0x023E, 17717 }, - { 0x023F, 14497 }, - { 0x0240, 15100 }, - { 0x0241, 18326 }, - { 0x0242, 15667 }, - { 0x0243, 16348 }, - { 0x0244, 17742 }, - { 0x0245, 18316 }, - { 0x0246, 16592 }, - { 0x0247, 13254 }, - { 0x0248, 16935 }, - { 0x0249, 13644 }, - { 0x024A, 18299 }, - { 0x024B, 14305 }, - { 0x024C, 17565 }, - { 0x024D, 14385 }, - { 0x024E, 18097 }, - { 0x024F, 15033 }, - { 0x0250, 15516 }, - { 0x0251, 15429 }, - { 0x0252, 15631 }, - { 0x0253, 12961 }, - { 0x0254, 15387 }, - { 0x0255, 13011 }, - { 0x0256, 13106 }, - { 0x0257, 13085 }, - { 0x0258, 15692 }, - { 0x0259, 15444 }, - { 0x025A, 15448 }, - { 0x025B, 15374 }, - { 0x025C, 15704 }, - { 0x025D, 15710 }, - { 0x025E, 15498 }, - { 0x025F, 15651 }, - { 0x0260, 13391 }, - { 0x0261, 15511 }, - { 0x0262, 15858 }, - { 0x0263, 15440 }, - { 0x0264, 15400 }, - { 0x0265, 15531 }, - { 0x0266, 13464 }, - { 0x0267, 15341 }, - { 0x0268, 13594 }, - { 0x0269, 15347 }, - { 0x026A, 15875 }, - { 0x026B, 13788 }, - { 0x026C, 13743 }, - { 0x026D, 13814 }, - { 0x026E, 15357 }, - { 0x026F, 15562 }, - { 0x0270, 15567 }, - { 0x0271, 13846 }, - { 0x0272, 13896 }, - { 0x0273, 13962 }, - { 0x0274, 15907 }, - { 0x0275, 15476 }, - { 0x0276, 15962 }, - { 0x0277, 15493 }, - { 0x0278, 15316 }, - { 0x0279, 15575 }, - { 0x027A, 15587 }, - { 0x027B, 15580 }, - { 0x027C, 14346 }, - { 0x027D, 14353 }, - { 0x027E, 14404 }, - { 0x027F, 15697 }, - { 0x0280, 15922 }, - { 0x0281, 16000 }, - { 0x0282, 14454 }, - { 0x0283, 15250 }, - { 0x0284, 15658 }, - { 0x0285, 15466 }, - { 0x0286, 15254 }, - { 0x0287, 15595 }, - { 0x0288, 14619 }, - { 0x0289, 14637 }, - { 0x028A, 15677 }, - { 0x028B, 14879 }, - { 0x028C, 15600 }, - { 0x028D, 15605 }, - { 0x028E, 15610 }, - { 0x028F, 15947 }, - { 0x0290, 15133 }, - { 0x0291, 15069 }, - { 0x0292, 15278 }, - { 0x0293, 15282 }, - { 0x0294, 16027 }, - { 0x0295, 16089 }, - { 0x0296, 16057 }, - { 0x0297, 16085 }, - { 0x0298, 16049 }, - { 0x0299, 15838 }, - { 0x029A, 15487 }, - { 0x029B, 15863 }, - { 0x029C, 15870 }, - { 0x029D, 13656 }, - { 0x029E, 15557 }, - { 0x029F, 15890 }, - { 0x02A0, 14299 }, - { 0x02A1, 16031 }, - { 0x02A2, 16074 }, - { 0x02A3, 15177 }, - { 0x02A4, 15326 }, - { 0x02A5, 15182 }, - { 0x02A6, 15237 }, - { 0x02A7, 15405 }, - { 0x02A8, 15224 }, - { 0x02A9, 15331 }, - { 0x02AA, 15197 }, - { 0x02AB, 15202 }, - { 0x02AC, 16053 }, - { 0x02AD, 16045 }, - { 0x02AE, 15536 }, - { 0x02AF, 15543 }, - { 0x02B0, 49175 }, - { 0x02B1, 49179 }, - { 0x02B2, 49191 }, - { 0x02B3, 49255 }, - { 0x02B4, 49454 }, - { 0x02B5, 49459 }, - { 0x02B6, 49514 }, - { 0x02B7, 49299 }, - { 0x02B8, 49307 }, - { 0x02B9, 49126 }, - { 0x02BA, 49548 }, - { 0x02BB, 49596 }, - { 0x02BC, 49807 }, - { 0x02BD, 49770 }, - { 0x02BE, 49129 }, - { 0x02BF, 49071 }, - { 0x02C0, 49755 }, - { 0x02C1, 49774 }, - { 0x02C2, 49076 }, - { 0x02C3, 49134 }, - { 0x02C4, 48900 }, - { 0x02C5, 49038 }, - { 0x02C6, 49810 }, - { 0x02C7, 8903 }, - { 0x02C8, 49779 }, - { 0x02C9, 49556 }, - { 0x02CA, 49094 }, - { 0x02CB, 49112 }, - { 0x02CC, 48993 }, - { 0x02CD, 48989 }, - { 0x02CE, 48962 }, - { 0x02CF, 48957 }, - { 0x02D0, 49838 }, - { 0x02D1, 49042 }, - { 0x02D2, 49701 }, - { 0x02D3, 49695 }, - { 0x02D4, 48896 }, - { 0x02D5, 49034 }, - { 0x02D6, 49084 }, - { 0x02D7, 49122 }, - { 0x02D8, 8836 }, - { 0x02D9, 5532 }, - { 0x02DA, 8209 }, - { 0x02DB, 31927 }, - { 0x02DC, 20041 }, - { 0x02DD, 28270 }, - { 0x02DE, 49580 }, - { 0x02DF, 49108 }, - { 0x02E0, 49388 }, - { 0x02E1, 49205 }, - { 0x02E2, 49259 }, - { 0x02E3, 49303 }, - { 0x02E4, 49537 }, - { 0x02E5, 49814 }, - { 0x02E6, 49047 }, - { 0x02E7, 49004 }, - { 0x02E8, 48952 }, - { 0x02E9, 49783 }, - { 0x02EA, 49028 }, - { 0x02EB, 49088 }, - { 0x02EC, 49759 }, - { 0x02ED, 49842 }, - { 0x02EE, 49552 }, - { 0x02EF, 48933 }, - { 0x02F0, 48928 }, - { 0x02F1, 48943 }, - { 0x02F2, 48967 }, - { 0x02F3, 48948 }, - { 0x02F4, 49559 }, - { 0x02F5, 49570 }, - { 0x02F6, 49564 }, - { 0x02F7, 48972 }, - { 0x02F8, 49576 }, - { 0x02F9, 49103 }, - { 0x02FA, 48923 }, - { 0x02FB, 49098 }, - { 0x02FC, 48918 }, - { 0x02FD, 49138 }, - { 0x02FE, 49080 }, - { 0x02FF, 48938 }, - { 0x0300, 52320 }, - { 0x0301, 52289 }, - { 0x0302, 52755 }, - { 0x0303, 52495 }, - { 0x0304, 52596 }, - { 0x0305, 52687 }, - { 0x0306, 52296 }, - { 0x0307, 52168 }, - { 0x0308, 52712 }, - { 0x0309, 52193 }, - { 0x030A, 52272 }, - { 0x030B, 52530 }, - { 0x030C, 52301 }, - { 0x030D, 52693 }, - { 0x030E, 52572 }, - { 0x030F, 52541 }, - { 0x0310, 52774 }, - { 0x0311, 52663 }, - { 0x0312, 52609 }, - { 0x0313, 52306 }, - { 0x0314, 52689 }, - { 0x0315, 52309 }, - { 0x0316, 52323 }, - { 0x0317, 52292 }, - { 0x0318, 52208 }, - { 0x0319, 52437 }, - { 0x031A, 52212 }, - { 0x031B, 52196 }, - { 0x031C, 52203 }, - { 0x031D, 52164 }, - { 0x031E, 52185 }, - { 0x031F, 52268 }, - { 0x0320, 52423 }, - { 0x0321, 52776 }, - { 0x0322, 52751 }, - { 0x0323, 52175 }, - { 0x0324, 52714 }, - { 0x0325, 52275 }, - { 0x0326, 52313 }, - { 0x0327, 52619 }, - { 0x0328, 52601 }, - { 0x0329, 52697 }, - { 0x032A, 52511 }, - { 0x032B, 52674 }, - { 0x032C, 52303 }, - { 0x032D, 52758 }, - { 0x032E, 52298 }, - { 0x032F, 52666 }, - { 0x0330, 52497 }, - { 0x0331, 52598 }, - { 0x0332, 52178 }, - { 0x0333, 52522 }, - { 0x0334, 52500 }, - { 0x0335, 52475 }, - { 0x0336, 52255 }, - { 0x0337, 52479 }, - { 0x0338, 52259 }, - { 0x0339, 52432 }, - { 0x033A, 52670 }, - { 0x033B, 52603 }, - { 0x033C, 52627 }, - { 0x033D, 52158 }, - { 0x033E, 52701 }, - { 0x033F, 52569 }, - { 0x0340, 52316 }, - { 0x0341, 52285 }, - { 0x0342, 52346 }, - { 0x0343, 52327 }, - { 0x0344, 52342 }, - { 0x0345, 52349 }, - { 0x0346, 52508 }, - { 0x0347, 52592 }, - { 0x0348, 52577 }, - { 0x0349, 52216 }, - { 0x034A, 52181 }, - { 0x034B, 52762 }, - { 0x034C, 52503 }, - { 0x034D, 52233 }, - { 0x034E, 52630 }, - { 0x034F, 52660 }, - { 0x0350, 52467 }, - { 0x0351, 52198 }, - { 0x0352, 52621 }, - { 0x0353, 52161 }, - { 0x0354, 52246 }, - { 0x0355, 52471 }, - { 0x0356, 52453 }, - { 0x0357, 52427 }, - { 0x0358, 52171 }, - { 0x0359, 52634 }, - { 0x035A, 52526 }, - { 0x035B, 52613 }, - { 0x035C, 52537 }, - { 0x035D, 52534 }, - { 0x035E, 52558 }, - { 0x035F, 52561 }, - { 0x0360, 52545 }, - { 0x0361, 52565 }, - { 0x0362, 52587 }, - { 0x0363, 52352 }, - { 0x0364, 52367 }, - { 0x0365, 52377 }, - { 0x0366, 52387 }, - { 0x0367, 52408 }, - { 0x0368, 52357 }, - { 0x0369, 52362 }, - { 0x036A, 52372 }, - { 0x036B, 52382 }, - { 0x036C, 52392 }, - { 0x036D, 52403 }, - { 0x036E, 52413 }, - { 0x036F, 52418 }, - { 0x0374, 11459 }, - { 0x0375, 9177 }, - { 0x037A, 11947 }, - { 0x037B, 10324 }, - { 0x037C, 9195 }, - { 0x037D, 10317 }, - { 0x037E, 11484 }, - { 0x0384, 10341 }, - { 0x0385, 11508 }, - { 0x0386, 11009 }, - { 0x0387, 9100 }, - { 0x0388, 11281 }, - { 0x0389, 10707 }, - { 0x038A, 10829 }, - { 0x038C, 11347 }, - { 0x038E, 11399 }, - { 0x038F, 11201 }, - { 0x0390, 9563 }, - { 0x0391, 10863 }, - { 0x0392, 10755 }, - { 0x0393, 11043 }, - { 0x0394, 11039 }, - { 0x0395, 11227 }, - { 0x0396, 10859 }, - { 0x0397, 10561 }, - { 0x0398, 11223 }, - { 0x0399, 10759 }, - { 0x039A, 11047 }, - { 0x039B, 11051 }, - { 0x039C, 10541 }, - { 0x039D, 10545 }, - { 0x039E, 10553 }, - { 0x039F, 11293 }, - { 0x03A0, 10549 }, - { 0x03A1, 10733 }, - { 0x03A3, 11219 }, - { 0x03A4, 10751 }, - { 0x03A5, 11359 }, - { 0x03A6, 10725 }, - { 0x03A7, 10557 }, - { 0x03A8, 10729 }, - { 0x03A9, 11055 }, - { 0x03AA, 10853 }, - { 0x03AB, 11423 }, - { 0x03AC, 9751 }, - { 0x03AD, 10101 }, - { 0x03AE, 9375 }, - { 0x03AF, 9525 }, - { 0x03B0, 10287 }, - { 0x03B1, 9597 }, - { 0x03B2, 9451 }, - { 0x03B3, 9812 }, - { 0x03B4, 9803 }, - { 0x03B5, 10047 }, - { 0x03B6, 9593 }, - { 0x03B7, 9221 }, - { 0x03B8, 10030 }, - { 0x03B9, 9455 }, - { 0x03BA, 9816 }, - { 0x03BB, 9824 }, - { 0x03BC, 9201 }, - { 0x03BD, 9205 }, - { 0x03BE, 9213 }, - { 0x03BF, 10113 }, - { 0x03C0, 9209 }, - { 0x03C1, 9423 }, - { 0x03C2, 9807 }, - { 0x03C3, 10026 }, - { 0x03C4, 9447 }, - { 0x03C5, 10179 }, - { 0x03C6, 9415 }, - { 0x03C7, 9217 }, - { 0x03C8, 9419 }, - { 0x03C9, 9828 }, - { 0x03CA, 9549 }, - { 0x03CB, 10273 }, - { 0x03CC, 10167 }, - { 0x03CD, 10249 }, - { 0x03CE, 9982 }, - { 0x03D0, 9135 }, - { 0x03D1, 10330 }, - { 0x03D2, 11462 }, - { 0x03D3, 11467 }, - { 0x03D4, 11474 }, - { 0x03D5, 9116 }, - { 0x03D6, 9097 }, - { 0x03D7, 9103 }, - { 0x03D8, 10507 }, - { 0x03D9, 10038 }, - { 0x03DA, 10504 }, - { 0x03DB, 10034 }, - { 0x03DC, 10511 }, - { 0x03DD, 10043 }, - { 0x03DE, 10473 }, - { 0x03DF, 9820 }, - { 0x03E0, 10476 }, - { 0x03E1, 10022 }, - { 0x03E2, 28072 }, - { 0x03E3, 27779 }, - { 0x03E4, 27934 }, - { 0x03E5, 27641 }, - { 0x03E6, 28068 }, - { 0x03E7, 27775 }, - { 0x03E8, 28060 }, - { 0x03E9, 27767 }, - { 0x03EA, 28112 }, - { 0x03EB, 27819 }, - { 0x03EC, 28108 }, - { 0x03ED, 27815 }, - { 0x03EE, 27926 }, - { 0x03EF, 27633 }, - { 0x03F0, 9171 }, - { 0x03F1, 9124 }, - { 0x03F2, 10514 }, - { 0x03F3, 10470 }, - { 0x03F4, 10531 }, - { 0x03F5, 10518 }, - { 0x03F6, 11487 }, - { 0x03F7, 10747 }, - { 0x03F8, 9443 }, - { 0x03F9, 11429 }, - { 0x03FA, 10743 }, - { 0x03FB, 9439 }, - { 0x03FC, 9119 }, - { 0x03FD, 11441 }, - { 0x03FE, 10535 }, - { 0x03FF, 11434 }, - { 0x0400, 44852 }, - { 0x0401, 44858 }, - { 0x0402, 44984 }, - { 0x0403, 45029 }, - { 0x0404, 45308 }, - { 0x0405, 44988 }, - { 0x0406, 45318 }, - { 0x0407, 44932 }, - { 0x0408, 44862 }, - { 0x0409, 45041 }, - { 0x040A, 45045 }, - { 0x040B, 45149 }, - { 0x040C, 45033 }, - { 0x040D, 44689 }, - { 0x040E, 45208 }, - { 0x040F, 45087 }, - { 0x0410, 44659 }, - { 0x0411, 44740 }, - { 0x0412, 44924 }, - { 0x0413, 44992 }, - { 0x0414, 44744 }, - { 0x0415, 44842 }, - { 0x0416, 45065 }, - { 0x0417, 44940 }, - { 0x0418, 44685 }, - { 0x0419, 45196 }, - { 0x041A, 44866 }, - { 0x041B, 44752 }, - { 0x041C, 44768 }, - { 0x041D, 44778 }, - { 0x041E, 44707 }, - { 0x041F, 44899 }, - { 0x0420, 44800 }, - { 0x0421, 44810 }, - { 0x0422, 44910 }, - { 0x0423, 44717 }, - { 0x0424, 44748 }, - { 0x0425, 44820 }, - { 0x0426, 45057 }, - { 0x0427, 44961 }, - { 0x0428, 45053 }, - { 0x0429, 45192 }, - { 0x042A, 45095 }, - { 0x042B, 45153 }, - { 0x042C, 45144 }, - { 0x042D, 44675 }, - { 0x042E, 44936 }, - { 0x042F, 44928 }, - { 0x0430, 43968 }, - { 0x0431, 44049 }, - { 0x0432, 44233 }, - { 0x0433, 44301 }, - { 0x0434, 44053 }, - { 0x0435, 44151 }, - { 0x0436, 44374 }, - { 0x0437, 44249 }, - { 0x0438, 43994 }, - { 0x0439, 44505 }, - { 0x043A, 44175 }, - { 0x043B, 44061 }, - { 0x043C, 44077 }, - { 0x043D, 44087 }, - { 0x043E, 44016 }, - { 0x043F, 44208 }, - { 0x0440, 44109 }, - { 0x0441, 44119 }, - { 0x0442, 44219 }, - { 0x0443, 44026 }, - { 0x0444, 44057 }, - { 0x0445, 44129 }, - { 0x0446, 44366 }, - { 0x0447, 44270 }, - { 0x0448, 44362 }, - { 0x0449, 44501 }, - { 0x044A, 44404 }, - { 0x044B, 44462 }, - { 0x044C, 44453 }, - { 0x044D, 43984 }, - { 0x044E, 44245 }, - { 0x044F, 44237 }, - { 0x0450, 44161 }, - { 0x0451, 44167 }, - { 0x0452, 44293 }, - { 0x0453, 44338 }, - { 0x0454, 44621 }, - { 0x0455, 44297 }, - { 0x0456, 44631 }, - { 0x0457, 44241 }, - { 0x0458, 44171 }, - { 0x0459, 44350 }, - { 0x045A, 44354 }, - { 0x045B, 44458 }, - { 0x045C, 44342 }, - { 0x045D, 43998 }, - { 0x045E, 44517 }, - { 0x045F, 44396 }, - { 0x0460, 45167 }, - { 0x0461, 44476 }, - { 0x0462, 45061 }, - { 0x0463, 44370 }, - { 0x0464, 45247 }, - { 0x0465, 44556 }, - { 0x0466, 45225 }, - { 0x0467, 44534 }, - { 0x0468, 45258 }, - { 0x0469, 44567 }, - { 0x046A, 44956 }, - { 0x046B, 44265 }, - { 0x046C, 45252 }, - { 0x046D, 44561 }, - { 0x046E, 45037 }, - { 0x046F, 44346 }, - { 0x0470, 45049 }, - { 0x0471, 44358 }, - { 0x0472, 45091 }, - { 0x0473, 44400 }, - { 0x0474, 45235 }, - { 0x0475, 44544 }, - { 0x0476, 45239 }, - { 0x0477, 44548 }, - { 0x0478, 44920 }, - { 0x0479, 44229 }, - { 0x047A, 45177 }, - { 0x047B, 44486 }, - { 0x047C, 45171 }, - { 0x047D, 44480 }, - { 0x047E, 44895 }, - { 0x047F, 44204 }, - { 0x0480, 45163 }, - { 0x0481, 44472 }, - { 0x0482, 45338 }, - { 0x0483, 52645 }, - { 0x0484, 52657 }, - { 0x0485, 52637 }, - { 0x0486, 52641 }, - { 0x0488, 52648 }, - { 0x0489, 52653 }, - { 0x048A, 45201 }, - { 0x048B, 44510 }, - { 0x048C, 45269 }, - { 0x048D, 44582 }, - { 0x048E, 44804 }, - { 0x048F, 44113 }, - { 0x0490, 45017 }, - { 0x0491, 44326 }, - { 0x0492, 45003 }, - { 0x0493, 44312 }, - { 0x0494, 44996 }, - { 0x0495, 44305 }, - { 0x0496, 45075 }, - { 0x0497, 44384 }, - { 0x0498, 44944 }, - { 0x0499, 44253 }, - { 0x049A, 44889 }, - { 0x049B, 44198 }, - { 0x049C, 44882 }, - { 0x049D, 44191 }, - { 0x049E, 44876 }, - { 0x049F, 44185 }, - { 0x04A0, 45230 }, - { 0x04A1, 44539 }, - { 0x04A2, 44794 }, - { 0x04A3, 44103 }, - { 0x04A4, 45328 }, - { 0x04A5, 44641 }, - { 0x04A6, 44903 }, - { 0x04A7, 44212 }, - { 0x04A8, 45286 }, - { 0x04A9, 44599 }, - { 0x04AA, 44814 }, - { 0x04AB, 44123 }, - { 0x04AC, 44914 }, - { 0x04AD, 44223 }, - { 0x04AE, 45274 }, - { 0x04AF, 44587 }, - { 0x04B0, 45279 }, - { 0x04B1, 44592 }, - { 0x04B2, 44836 }, - { 0x04B3, 44145 }, - { 0x04B4, 45333 }, - { 0x04B5, 44646 }, - { 0x04B6, 44972 }, - { 0x04B7, 44281 }, - { 0x04B8, 44965 }, - { 0x04B9, 44274 }, - { 0x04BA, 45140 }, - { 0x04BB, 44449 }, - { 0x04BC, 45291 }, - { 0x04BD, 44604 }, - { 0x04BE, 45296 }, - { 0x04BF, 44609 }, - { 0x04C0, 44656 }, - { 0x04C1, 45069 }, - { 0x04C2, 44378 }, - { 0x04C3, 44870 }, - { 0x04C4, 44179 }, - { 0x04C5, 44762 }, - { 0x04C6, 44071 }, - { 0x04C7, 44782 }, - { 0x04C8, 44091 }, - { 0x04C9, 44788 }, - { 0x04CA, 44097 }, - { 0x04CB, 45313 }, - { 0x04CC, 44626 }, - { 0x04CD, 44772 }, - { 0x04CE, 44081 }, - { 0x04CF, 44573 }, - { 0x04D0, 44663 }, - { 0x04D1, 43972 }, - { 0x04D2, 44669 }, - { 0x04D3, 43978 }, - { 0x04D4, 45323 }, - { 0x04D5, 44636 }, - { 0x04D6, 44846 }, - { 0x04D7, 44155 }, - { 0x04D8, 45182 }, - { 0x04D9, 44491 }, - { 0x04DA, 45186 }, - { 0x04DB, 44495 }, - { 0x04DC, 45081 }, - { 0x04DD, 44390 }, - { 0x04DE, 44950 }, - { 0x04DF, 44259 }, - { 0x04E0, 45303 }, - { 0x04E1, 44616 }, - { 0x04E2, 44695 }, - { 0x04E3, 44004 }, - { 0x04E4, 44701 }, - { 0x04E5, 44010 }, - { 0x04E6, 44711 }, - { 0x04E7, 44020 }, - { 0x04E8, 45213 }, - { 0x04E9, 44522 }, - { 0x04EA, 45218 }, - { 0x04EB, 44527 }, - { 0x04EC, 44679 }, - { 0x04ED, 43988 }, - { 0x04EE, 44728 }, - { 0x04EF, 44037 }, - { 0x04F0, 44734 }, - { 0x04F1, 44043 }, - { 0x04F2, 44721 }, - { 0x04F3, 44030 }, - { 0x04F4, 44978 }, - { 0x04F5, 44287 }, - { 0x04F6, 45023 }, - { 0x04F7, 44332 }, - { 0x04F8, 45157 }, - { 0x04F9, 44466 }, - { 0x04FA, 45009 }, - { 0x04FB, 44318 }, - { 0x04FC, 44824 }, - { 0x04FD, 44133 }, - { 0x04FE, 44830 }, - { 0x04FF, 44139 }, - { 0x0500, 45100 }, - { 0x0501, 44409 }, - { 0x0502, 45105 }, - { 0x0503, 44414 }, - { 0x0504, 45130 }, - { 0x0505, 44439 }, - { 0x0506, 45135 }, - { 0x0507, 44444 }, - { 0x0508, 45110 }, - { 0x0509, 44419 }, - { 0x050A, 45115 }, - { 0x050B, 44424 }, - { 0x050C, 45120 }, - { 0x050D, 44429 }, - { 0x050E, 45125 }, - { 0x050F, 44434 }, - { 0x0510, 45264 }, - { 0x0511, 44577 }, - { 0x0512, 44756 }, - { 0x0513, 44065 }, - { 0x0531, 40409 }, - { 0x0532, 40413 }, - { 0x0533, 40429 }, - { 0x0534, 40365 }, - { 0x0535, 40421 }, - { 0x0536, 40405 }, - { 0x0537, 40369 }, - { 0x0538, 40373 }, - { 0x0539, 40393 }, - { 0x053A, 40477 }, - { 0x053B, 40433 }, - { 0x053C, 40493 }, - { 0x053D, 40473 }, - { 0x053E, 40357 }, - { 0x053F, 40441 }, - { 0x0540, 40377 }, - { 0x0541, 40381 }, - { 0x0542, 40485 }, - { 0x0543, 40481 }, - { 0x0544, 40445 }, - { 0x0545, 40401 }, - { 0x0546, 40449 }, - { 0x0547, 40465 }, - { 0x0548, 40397 }, - { 0x0549, 40417 }, - { 0x054A, 40453 }, - { 0x054B, 40489 }, - { 0x054C, 40389 }, - { 0x054D, 40461 }, - { 0x054E, 40469 }, - { 0x054F, 40501 }, - { 0x0550, 40457 }, - { 0x0551, 40361 }, - { 0x0552, 40505 }, - { 0x0553, 40497 }, - { 0x0554, 40437 }, - { 0x0555, 40385 }, - { 0x0556, 40425 }, - { 0x0559, 40512 }, - { 0x055A, 40521 }, - { 0x055B, 40509 }, - { 0x055C, 40523 }, - { 0x055D, 40171 }, - { 0x055E, 40518 }, - { 0x055F, 40526 }, - { 0x0561, 40225 }, - { 0x0562, 40229 }, - { 0x0563, 40245 }, - { 0x0564, 40181 }, - { 0x0565, 40237 }, - { 0x0566, 40221 }, - { 0x0567, 40185 }, - { 0x0568, 40189 }, - { 0x0569, 40209 }, - { 0x056A, 40293 }, - { 0x056B, 40249 }, - { 0x056C, 40309 }, - { 0x056D, 40289 }, - { 0x056E, 40173 }, - { 0x056F, 40257 }, - { 0x0570, 40193 }, - { 0x0571, 40197 }, - { 0x0572, 40301 }, - { 0x0573, 40297 }, - { 0x0574, 40261 }, - { 0x0575, 40217 }, - { 0x0576, 40265 }, - { 0x0577, 40281 }, - { 0x0578, 40213 }, - { 0x0579, 40233 }, - { 0x057A, 40269 }, - { 0x057B, 40305 }, - { 0x057C, 40205 }, - { 0x057D, 40277 }, - { 0x057E, 40285 }, - { 0x057F, 40317 }, - { 0x0580, 40273 }, - { 0x0581, 40177 }, - { 0x0582, 40321 }, - { 0x0583, 40313 }, - { 0x0584, 40253 }, - { 0x0585, 40201 }, - { 0x0586, 40241 }, - { 0x0587, 40325 }, - { 0x0589, 40168 }, - { 0x058A, 40355 }, - { 0x0591, 29757 }, - { 0x0592, 29705 }, - { 0x0593, 29774 }, - { 0x0594, 29723 }, - { 0x0595, 29719 }, - { 0x0596, 29754 }, - { 0x0597, 29702 }, - { 0x0598, 29727 }, - { 0x0599, 29747 }, - { 0x059A, 29716 }, - { 0x059B, 29708 }, - { 0x059C, 29733 }, - { 0x059D, 29736 }, - { 0x059E, 29771 }, - { 0x059F, 29750 }, - { 0x05A0, 29760 }, - { 0x05A1, 29696 }, - { 0x05A2, 29686 }, - { 0x05A3, 29693 }, - { 0x05A4, 29768 }, - { 0x05A5, 29740 }, - { 0x05A6, 29743 }, - { 0x05A7, 29690 }, - { 0x05A8, 29699 }, - { 0x05A9, 29764 }, - { 0x05AA, 29711 }, - { 0x05AB, 29677 }, - { 0x05AC, 29683 }, - { 0x05AD, 29680 }, - { 0x05AE, 29730 }, - { 0x05AF, 29604 }, - { 0x05B0, 29652 }, - { 0x05B1, 29623 }, - { 0x05B2, 29619 }, - { 0x05B3, 29627 }, - { 0x05B4, 29631 }, - { 0x05B5, 29655 }, - { 0x05B6, 29649 }, - { 0x05B7, 29646 }, - { 0x05B8, 29663 }, - { 0x05B9, 29634 }, - { 0x05BA, 29637 }, - { 0x05BB, 29670 }, - { 0x05BC, 29658 }, - { 0x05BD, 29643 }, - { 0x05BE, 30113 }, - { 0x05BF, 29612 }, - { 0x05C0, 30116 }, - { 0x05C1, 29615 }, - { 0x05C2, 29608 }, - { 0x05C3, 30109 }, - { 0x05C4, 29600 }, - { 0x05C5, 29596 }, - { 0x05C6, 30105 }, - { 0x05C7, 29666 }, - { 0x05D0, 29893 }, - { 0x05D1, 29798 }, - { 0x05D2, 30031 }, - { 0x05D3, 29991 }, - { 0x05D4, 29777 }, - { 0x05D5, 29867 }, - { 0x05D6, 30055 }, - { 0x05D7, 29811 }, - { 0x05D8, 29859 }, - { 0x05D9, 29880 }, - { 0x05DA, 30009 }, - { 0x05DB, 29814 }, - { 0x05DC, 30039 }, - { 0x05DD, 30019 }, - { 0x05DE, 29827 }, - { 0x05DF, 30023 }, - { 0x05E0, 29835 }, - { 0x05E1, 30063 }, - { 0x05E2, 29911 }, - { 0x05E3, 29999 }, - { 0x05E4, 29785 }, - { 0x05E5, 30027 }, - { 0x05E6, 30047 }, - { 0x05E7, 29843 }, - { 0x05E8, 29914 }, - { 0x05E9, 29922 }, - { 0x05EA, 29851 }, - { 0x05F0, 30095 }, - { 0x05F1, 30084 }, - { 0x05F2, 30100 }, - { 0x05F3, 30119 }, - { 0x05F4, 30122 }, - { 0x0600, 23569 }, - { 0x0601, 21124 }, - { 0x0602, 23623 }, - { 0x0603, 21121 }, - { 0x060B, 33851 }, - { 0x060C, 21155 }, - { 0x060D, 21099 }, - { 0x060E, 23572 }, - { 0x060F, 21118 }, - { 0x0610, 21147 }, - { 0x0611, 21127 }, - { 0x0612, 21143 }, - { 0x0613, 21113 }, - { 0x0614, 21140 }, - { 0x0615, 21231 }, - { 0x061B, 27386 }, - { 0x061E, 23586 }, - { 0x061F, 27378 }, - { 0x0621, 23234 }, - { 0x0622, 22646 }, - { 0x0623, 22602 }, - { 0x0624, 22410 }, - { 0x0625, 22624 }, - { 0x0626, 22450 }, - { 0x0627, 22585 }, - { 0x0628, 21513 }, - { 0x0629, 22340 }, - { 0x062A, 22309 }, - { 0x062B, 23082 }, - { 0x062C, 22811 }, - { 0x062D, 21816 }, - { 0x062E, 22834 }, - { 0x062F, 21629 }, - { 0x0630, 23069 }, - { 0x0631, 22157 }, - { 0x0632, 23128 }, - { 0x0633, 23004 }, - { 0x0634, 23356 }, - { 0x0635, 22242 }, - { 0x0636, 21600 }, - { 0x0637, 22279 }, - { 0x0638, 22562 }, - { 0x0639, 21459 }, - { 0x063A, 23205 }, - { 0x0640, 23604 }, - { 0x0641, 21715 }, - { 0x0642, 22121 }, - { 0x0643, 22003 }, - { 0x0644, 22044 }, - { 0x0645, 22857 }, - { 0x0646, 22892 }, - { 0x0647, 21876 }, - { 0x0648, 22389 }, - { 0x0649, 22689 }, - { 0x064A, 22442 }, - { 0x064B, 23617 }, - { 0x064C, 23611 }, - { 0x064D, 23629 }, - { 0x064E, 21177 }, - { 0x064F, 21157 }, - { 0x0650, 21198 }, - { 0x0651, 23576 }, - { 0x0652, 21316 }, - { 0x0653, 23566 }, - { 0x0654, 21192 }, - { 0x0655, 21195 }, - { 0x0656, 27388 }, - { 0x0657, 23626 }, - { 0x0658, 21109 }, - { 0x0659, 27384 }, - { 0x065A, 21331 }, - { 0x065B, 21337 }, - { 0x065C, 21326 }, - { 0x065D, 27381 }, - { 0x065E, 21179 }, - { 0x0660, 63184 }, - { 0x0661, 63166 }, - { 0x0662, 63172 }, - { 0x0663, 63193 }, - { 0x0664, 63178 }, - { 0x0665, 63175 }, - { 0x0666, 63169 }, - { 0x0667, 63190 }, - { 0x0668, 63187 }, - { 0x0669, 63181 }, - { 0x066A, 23594 }, - { 0x066B, 23591 }, - { 0x066C, 27391 }, - { 0x066D, 21102 }, - { 0x066E, 23495 }, - { 0x066F, 23503 }, - { 0x0670, 23562 }, - { 0x0671, 22673 }, - { 0x0672, 22588 }, - { 0x0673, 22595 }, - { 0x0674, 22792 }, - { 0x0675, 22806 }, - { 0x0676, 22796 }, - { 0x0677, 21370 }, - { 0x0678, 22801 }, - { 0x0679, 23105 }, - { 0x067A, 23454 }, - { 0x067B, 22710 }, - { 0x067C, 22312 }, - { 0x067D, 22317 }, - { 0x067E, 22098 }, - { 0x067F, 23418 }, - { 0x0680, 23141 }, - { 0x0681, 21834 }, - { 0x0682, 21826 }, - { 0x0683, 22968 }, - { 0x0684, 22746 }, - { 0x0685, 21840 }, - { 0x0686, 23389 }, - { 0x0687, 23539 }, - { 0x0688, 22733 }, - { 0x0689, 21665 }, - { 0x068A, 21632 }, - { 0x068B, 21638 }, - { 0x068C, 23164 }, - { 0x068D, 23441 }, - { 0x068E, 21702 }, - { 0x068F, 21670 }, - { 0x0690, 21658 }, - { 0x0691, 22991 }, - { 0x0692, 22208 }, - { 0x0693, 22197 }, - { 0x0694, 22160 }, - { 0x0695, 22214 }, - { 0x0696, 22166 }, - { 0x0697, 22175 }, - { 0x0698, 21990 }, - { 0x0699, 22190 }, - { 0x069A, 23007 }, - { 0x069B, 23031 }, - { 0x069C, 23038 }, - { 0x069D, 22245 }, - { 0x069E, 22252 }, - { 0x069F, 22282 }, - { 0x06A0, 21477 }, - { 0x06A1, 23499 }, - { 0x06A2, 21724 }, - { 0x06A3, 21718 }, - { 0x06A4, 22366 }, - { 0x06A5, 21738 }, - { 0x06A6, 23310 }, - { 0x06A7, 22124 }, - { 0x06A8, 22130 }, - { 0x06A9, 23242 }, - { 0x06AA, 23385 }, - { 0x06AB, 22012 }, - { 0x06AC, 22006 }, - { 0x06AD, 21397 }, - { 0x06AE, 22017 }, - { 0x06AF, 21774 }, - { 0x06B0, 21784 }, - { 0x06B1, 23287 }, - { 0x06B2, 21777 }, - { 0x06B3, 22769 }, - { 0x06B4, 21789 }, - { 0x06B5, 22058 }, - { 0x06B6, 22052 }, - { 0x06B7, 22064 }, - { 0x06B8, 22071 }, - { 0x06B9, 22895 }, - { 0x06BA, 22937 }, - { 0x06BB, 23333 }, - { 0x06BC, 22908 }, - { 0x06BD, 22925 }, - { 0x06BE, 21962 }, - { 0x06BF, 23392 }, - { 0x06C0, 21914 }, - { 0x06C1, 21879 }, - { 0x06C2, 21883 }, - { 0x06C3, 22344 }, - { 0x06C4, 22405 }, - { 0x06C5, 23507 }, - { 0x06C6, 21420 }, - { 0x06C7, 21367 }, - { 0x06C8, 21446 }, - { 0x06C9, 23523 }, - { 0x06CA, 22398 }, - { 0x06CB, 21433 }, - { 0x06CC, 23177 }, - { 0x06CD, 22445 }, - { 0x06CE, 22488 }, - { 0x06CF, 22392 }, - { 0x06D0, 21344 }, - { 0x06D1, 22494 }, - { 0x06D2, 22506 }, - { 0x06D3, 22510 }, - { 0x06D4, 21106 }, - { 0x06D5, 21394 }, - { 0x06D6, 21300 }, - { 0x06D7, 21290 }, - { 0x06D8, 21243 }, - { 0x06D9, 21226 }, - { 0x06DA, 21239 }, - { 0x06DB, 21267 }, - { 0x06DC, 21259 }, - { 0x06DD, 21095 }, - { 0x06DE, 21310 }, - { 0x06DF, 21279 }, - { 0x06E0, 21284 }, - { 0x06E1, 21272 }, - { 0x06E2, 21249 }, - { 0x06E3, 21216 }, - { 0x06E4, 21263 }, - { 0x06E5, 21220 }, - { 0x06E6, 21223 }, - { 0x06E7, 21235 }, - { 0x06E8, 21255 }, - { 0x06E9, 21208 }, - { 0x06EA, 21167 }, - { 0x06EB, 21172 }, - { 0x06EC, 23597 }, - { 0x06ED, 21212 }, - { 0x06EE, 21678 }, - { 0x06EF, 22226 }, - { 0x06F0, 46794 }, - { 0x06F1, 46770 }, - { 0x06F2, 46778 }, - { 0x06F3, 46806 }, - { 0x06F4, 46786 }, - { 0x06F5, 46782 }, - { 0x06F6, 46774 }, - { 0x06F7, 46802 }, - { 0x06F8, 46798 }, - { 0x06F9, 46790 }, - { 0x06FA, 23359 }, - { 0x06FB, 21603 }, - { 0x06FC, 23208 }, - { 0x06FD, 21131 }, - { 0x06FE, 21135 }, - { 0x06FF, 21936 }, - { 0x0700, 33031 }, - { 0x0701, 33274 }, - { 0x0702, 33254 }, - { 0x0703, 33278 }, - { 0x0704, 33258 }, - { 0x0705, 33266 }, - { 0x0706, 33045 }, - { 0x0707, 33049 }, - { 0x0708, 33281 }, - { 0x0709, 33261 }, - { 0x070A, 33269 }, - { 0x070B, 33241 }, - { 0x070C, 33244 }, - { 0x070D, 33247 }, - { 0x070F, 33286 }, - { 0x0710, 33147 }, - { 0x0711, 33206 }, - { 0x0712, 33112 }, - { 0x0713, 33154 }, - { 0x0714, 33157 }, - { 0x0715, 33164 }, - { 0x0716, 33170 }, - { 0x0717, 33094 }, - { 0x0718, 33109 }, - { 0x0719, 33144 }, - { 0x071A, 33115 }, - { 0x071B, 33130 }, - { 0x071C, 33133 }, - { 0x071D, 33137 }, - { 0x071E, 33140 }, - { 0x071F, 33118 }, - { 0x0720, 33167 }, - { 0x0721, 33100 }, - { 0x0722, 33103 }, - { 0x0723, 33187 }, - { 0x0724, 33150 }, - { 0x0725, 33091 }, - { 0x0726, 33097 }, - { 0x0727, 33202 }, - { 0x0728, 33161 }, - { 0x0729, 33121 }, - { 0x072A, 33124 }, - { 0x072B, 33127 }, - { 0x072C, 33106 }, - { 0x072D, 33175 }, - { 0x072E, 33179 }, - { 0x072F, 33183 }, - { 0x0730, 33210 }, - { 0x0731, 33213 }, - { 0x0732, 33216 }, - { 0x0733, 33219 }, - { 0x0734, 33222 }, - { 0x0735, 33225 }, - { 0x0736, 33067 }, - { 0x0737, 33070 }, - { 0x0738, 33087 }, - { 0x0739, 33083 }, - { 0x073A, 33059 }, - { 0x073B, 33062 }, - { 0x073C, 33271 }, - { 0x073D, 33053 }, - { 0x073E, 33056 }, - { 0x073F, 33073 }, - { 0x0740, 33238 }, - { 0x0741, 33252 }, - { 0x0742, 33250 }, - { 0x0743, 33035 }, - { 0x0744, 33040 }, - { 0x0745, 33075 }, - { 0x0746, 33079 }, - { 0x0747, 33230 }, - { 0x0748, 33234 }, - { 0x0749, 33065 }, - { 0x074A, 33228 }, - { 0x074D, 33198 }, - { 0x074E, 33194 }, - { 0x074F, 33190 }, - { 0x0750, 21564 }, - { 0x0751, 21516 }, - { 0x0752, 21542 }, - { 0x0753, 21551 }, - { 0x0754, 21526 }, - { 0x0755, 21572 }, - { 0x0756, 21536 }, - { 0x0757, 21819 }, - { 0x0758, 21847 }, - { 0x0759, 21647 }, - { 0x075A, 21684 }, - { 0x075B, 22221 }, - { 0x075C, 23024 }, - { 0x075D, 21462 }, - { 0x075E, 21484 }, - { 0x075F, 21469 }, - { 0x0760, 21731 }, - { 0x0761, 21745 }, - { 0x0762, 23245 }, - { 0x0763, 23251 }, - { 0x0764, 23258 }, - { 0x0765, 22860 }, - { 0x0766, 22866 }, - { 0x0767, 22901 }, - { 0x0768, 22919 }, - { 0x0769, 22913 }, - { 0x076A, 22047 }, - { 0x076B, 22182 }, - { 0x076C, 22202 }, - { 0x076D, 23016 }, - { 0x0780, 33561 }, - { 0x0781, 33666 }, - { 0x0782, 33609 }, - { 0x0783, 33567 }, - { 0x0784, 33558 }, - { 0x0785, 33663 }, - { 0x0786, 33600 }, - { 0x0787, 33591 }, - { 0x0788, 33618 }, - { 0x0789, 33606 }, - { 0x078A, 33594 }, - { 0x078B, 33627 }, - { 0x078C, 33585 }, - { 0x078D, 33603 }, - { 0x078E, 33597 }, - { 0x078F, 33660 }, - { 0x0790, 33615 }, - { 0x0791, 33642 }, - { 0x0792, 33654 }, - { 0x0793, 33651 }, - { 0x0794, 33570 }, - { 0x0795, 33648 }, - { 0x0796, 33645 }, - { 0x0797, 33657 }, - { 0x0798, 33588 }, - { 0x0799, 33579 }, - { 0x079A, 33582 }, - { 0x079B, 33639 }, - { 0x079C, 33573 }, - { 0x079D, 33636 }, - { 0x079E, 33633 }, - { 0x079F, 33624 }, - { 0x07A0, 33552 }, - { 0x07A1, 33555 }, - { 0x07A2, 33576 }, - { 0x07A3, 33630 }, - { 0x07A4, 33612 }, - { 0x07A5, 33621 }, - { 0x07A6, 33669 }, - { 0x07A7, 33679 }, - { 0x07A8, 33673 }, - { 0x07A9, 33681 }, - { 0x07AA, 33677 }, - { 0x07AB, 33687 }, - { 0x07AC, 33671 }, - { 0x07AD, 33683 }, - { 0x07AE, 33675 }, - { 0x07AF, 33685 }, - { 0x07B0, 33550 }, - { 0x07B1, 33564 }, - { 0x07C0, 6288 }, - { 0x07C1, 6270 }, - { 0x07C2, 6276 }, - { 0x07C3, 6297 }, - { 0x07C4, 6282 }, - { 0x07C5, 6279 }, - { 0x07C6, 6273 }, - { 0x07C7, 6294 }, - { 0x07C8, 6291 }, - { 0x07C9, 6285 }, - { 0x07CA, 6300 }, - { 0x07CB, 6324 }, - { 0x07CC, 6306 }, - { 0x07CD, 6303 }, - { 0x07CE, 6315 }, - { 0x07CF, 6352 }, - { 0x07D0, 6312 }, - { 0x07D1, 6401 }, - { 0x07D2, 6309 }, - { 0x07D3, 6318 }, - { 0x07D4, 6355 }, - { 0x07D5, 6364 }, - { 0x07D6, 6333 }, - { 0x07D7, 6373 }, - { 0x07D8, 6321 }, - { 0x07D9, 6358 }, - { 0x07DA, 6386 }, - { 0x07DB, 6361 }, - { 0x07DC, 6376 }, - { 0x07DD, 6327 }, - { 0x07DE, 6336 }, - { 0x07DF, 6339 }, - { 0x07E0, 6348 }, - { 0x07E1, 6342 }, - { 0x07E2, 6379 }, - { 0x07E3, 6345 }, - { 0x07E4, 6330 }, - { 0x07E5, 6367 }, - { 0x07E6, 6370 }, - { 0x07E7, 6382 }, - { 0x07E8, 6389 }, - { 0x07E9, 6397 }, - { 0x07EA, 6393 }, - { 0x07EB, 6436 }, - { 0x07EC, 6431 }, - { 0x07ED, 6441 }, - { 0x07EE, 6426 }, - { 0x07EF, 6416 }, - { 0x07F0, 6411 }, - { 0x07F1, 6421 }, - { 0x07F2, 6451 }, - { 0x07F3, 6446 }, - { 0x07F4, 6264 }, - { 0x07F5, 6260 }, - { 0x07F6, 6404 }, - { 0x07F7, 6408 }, - { 0x07F8, 6268 }, - { 0x07F9, 6457 }, - { 0x07FA, 6455 }, - { 0x0901, 60989 }, - { 0x0902, 60983 }, - { 0x0903, 60980 }, - { 0x0904, 61286 }, - { 0x0905, 61109 }, - { 0x0906, 61124 }, - { 0x0907, 61115 }, - { 0x0908, 61151 }, - { 0x0909, 61121 }, - { 0x090A, 61184 }, - { 0x090B, 61314 }, - { 0x090C, 61310 }, - { 0x090D, 61298 }, - { 0x090E, 61290 }, - { 0x090F, 61112 }, - { 0x0910, 61127 }, - { 0x0911, 61302 }, - { 0x0912, 61294 }, - { 0x0913, 61118 }, - { 0x0914, 61130 }, - { 0x0915, 61157 }, - { 0x0916, 61223 }, - { 0x0917, 61145 }, - { 0x0918, 61214 }, - { 0x0919, 61229 }, - { 0x091A, 61136 }, - { 0x091B, 61202 }, - { 0x091C, 61154 }, - { 0x091D, 61217 }, - { 0x091E, 61235 }, - { 0x091F, 61256 }, - { 0x0920, 61280 }, - { 0x0921, 61205 }, - { 0x0922, 61265 }, - { 0x0923, 61232 }, - { 0x0924, 61181 }, - { 0x0925, 61253 }, - { 0x0926, 61139 }, - { 0x0927, 61208 }, - { 0x0928, 61166 }, - { 0x0929, 61277 }, - { 0x092A, 61169 }, - { 0x092B, 61238 }, - { 0x092C, 61133 }, - { 0x092D, 61199 }, - { 0x092E, 61163 }, - { 0x092F, 61190 }, - { 0x0930, 61175 }, - { 0x0931, 61244 }, - { 0x0932, 61160 }, - { 0x0933, 61226 }, - { 0x0934, 61274 }, - { 0x0935, 61187 }, - { 0x0936, 61247 }, - { 0x0937, 61250 }, - { 0x0938, 61178 }, - { 0x0939, 61148 }, - { 0x093C, 60974 }, - { 0x093D, 60986 }, - { 0x093E, 61046 }, - { 0x093F, 61034 }, - { 0x0940, 61058 }, - { 0x0941, 61042 }, - { 0x0942, 61062 }, - { 0x0943, 61091 }, - { 0x0944, 61101 }, - { 0x0945, 61076 }, - { 0x0946, 61066 }, - { 0x0947, 61030 }, - { 0x0948, 61050 }, - { 0x0949, 61081 }, - { 0x094A, 61071 }, - { 0x094B, 61038 }, - { 0x094C, 61054 }, - { 0x094D, 60977 }, - { 0x0950, 60972 }, - { 0x0951, 61326 }, - { 0x0952, 61330 }, - { 0x0953, 61027 }, - { 0x0954, 60992 }, - { 0x0958, 61172 }, - { 0x0959, 61271 }, - { 0x095A, 61268 }, - { 0x095B, 61193 }, - { 0x095C, 61283 }, - { 0x095D, 61241 }, - { 0x095E, 61142 }, - { 0x095F, 61259 }, - { 0x0960, 61322 }, - { 0x0961, 61318 }, - { 0x0962, 61086 }, - { 0x0963, 61096 }, - { 0x0964, 60995 }, - { 0x0965, 61106 }, - { 0x0966, 61015 }, - { 0x0967, 60997 }, - { 0x0968, 61003 }, - { 0x0969, 61024 }, - { 0x096A, 61009 }, - { 0x096B, 61006 }, - { 0x096C, 61000 }, - { 0x096D, 61021 }, - { 0x096E, 61018 }, - { 0x096F, 61012 }, - { 0x0970, 61334 }, - { 0x097B, 61211 }, - { 0x097C, 61220 }, - { 0x097D, 61306 }, - { 0x097E, 61262 }, - { 0x097F, 61196 }, - { 0x0981, 33876 }, - { 0x0982, 33870 }, - { 0x0983, 33867 }, - { 0x0985, 33973 }, - { 0x0986, 33988 }, - { 0x0987, 33979 }, - { 0x0988, 34012 }, - { 0x0989, 33985 }, - { 0x098A, 34054 }, - { 0x098B, 34128 }, - { 0x098C, 34124 }, - { 0x098F, 33976 }, - { 0x0990, 33991 }, - { 0x0993, 33982 }, - { 0x0994, 33994 }, - { 0x0995, 34018 }, - { 0x0996, 34078 }, - { 0x0997, 34006 }, - { 0x0998, 34072 }, - { 0x0999, 34081 }, - { 0x099A, 34000 }, - { 0x099B, 34063 }, - { 0x099C, 34015 }, - { 0x099D, 34075 }, - { 0x099E, 34087 }, - { 0x099F, 34108 }, - { 0x09A0, 34117 }, - { 0x09A1, 34066 }, - { 0x09A2, 34114 }, - { 0x09A3, 34084 }, - { 0x09A4, 34051 }, - { 0x09A5, 34105 }, - { 0x09A6, 34003 }, - { 0x09A7, 34069 }, - { 0x09A8, 34027 }, - { 0x09AA, 34030 }, - { 0x09AB, 34090 }, - { 0x09AC, 33997 }, - { 0x09AD, 34060 }, - { 0x09AE, 34024 }, - { 0x09AF, 34057 }, - { 0x09B0, 34033 }, - { 0x09B2, 34021 }, - { 0x09B6, 34099 }, - { 0x09B7, 34102 }, - { 0x09B8, 34048 }, - { 0x09B9, 34009 }, - { 0x09BC, 33861 }, - { 0x09BD, 33873 }, - { 0x09BE, 33931 }, - { 0x09BF, 33919 }, - { 0x09C0, 33943 }, - { 0x09C1, 33927 }, - { 0x09C2, 33947 }, - { 0x09C3, 33956 }, - { 0x09C4, 33966 }, - { 0x09C7, 33915 }, - { 0x09C8, 33935 }, - { 0x09CB, 33923 }, - { 0x09CC, 33939 }, - { 0x09CD, 33864 }, - { 0x09CE, 34120 }, - { 0x09D7, 33857 }, - { 0x09DC, 34096 }, - { 0x09DD, 34093 }, - { 0x09DF, 34111 }, - { 0x09E0, 34136 }, - { 0x09E1, 34132 }, - { 0x09E2, 33951 }, - { 0x09E3, 33961 }, - { 0x09E6, 33897 }, - { 0x09E7, 33879 }, - { 0x09E8, 33885 }, - { 0x09E9, 33906 }, - { 0x09EA, 33891 }, - { 0x09EB, 33888 }, - { 0x09EC, 33882 }, - { 0x09ED, 33903 }, - { 0x09EE, 33900 }, - { 0x09EF, 33894 }, - { 0x09F0, 34042 }, - { 0x09F1, 34036 }, - { 0x09F2, 33909 }, - { 0x09F3, 33912 }, - { 0x09F4, 34140 }, - { 0x09F5, 34152 }, - { 0x09F6, 34160 }, - { 0x09F7, 34156 }, - { 0x09F8, 34144 }, - { 0x09F9, 34164 }, - { 0x09FA, 33971 }, - { 0x0A01, 47540 }, - { 0x0A02, 47544 }, - { 0x0A03, 47553 }, - { 0x0A05, 47626 }, - { 0x0A06, 47635 }, - { 0x0A07, 47629 }, - { 0x0A08, 47665 }, - { 0x0A09, 47632 }, - { 0x0A0A, 47698 }, - { 0x0A0F, 47653 }, - { 0x0A10, 47638 }, - { 0x0A13, 47683 }, - { 0x0A14, 47641 }, - { 0x0A15, 47671 }, - { 0x0A16, 47728 }, - { 0x0A17, 47659 }, - { 0x0A18, 47722 }, - { 0x0A19, 47734 }, - { 0x0A1A, 47647 }, - { 0x0A1B, 47713 }, - { 0x0A1C, 47668 }, - { 0x0A1D, 47725 }, - { 0x0A1E, 47740 }, - { 0x0A1F, 47755 }, - { 0x0A20, 47767 }, - { 0x0A21, 47716 }, - { 0x0A22, 47758 }, - { 0x0A23, 47737 }, - { 0x0A24, 47695 }, - { 0x0A25, 47752 }, - { 0x0A26, 47650 }, - { 0x0A27, 47719 }, - { 0x0A28, 47680 }, - { 0x0A2A, 47686 }, - { 0x0A2B, 47743 }, - { 0x0A2C, 47644 }, - { 0x0A2D, 47710 }, - { 0x0A2E, 47677 }, - { 0x0A2F, 47704 }, - { 0x0A30, 47689 }, - { 0x0A32, 47674 }, - { 0x0A33, 47731 }, - { 0x0A35, 47701 }, - { 0x0A36, 47749 }, - { 0x0A38, 47692 }, - { 0x0A39, 47662 }, - { 0x0A3C, 47547 }, - { 0x0A3E, 47598 }, - { 0x0A3F, 47590 }, - { 0x0A40, 47614 }, - { 0x0A41, 47594 }, - { 0x0A42, 47622 }, - { 0x0A47, 47610 }, - { 0x0A48, 47602 }, - { 0x0A4B, 47618 }, - { 0x0A4C, 47606 }, - { 0x0A4D, 47550 }, - { 0x0A59, 47764 }, - { 0x0A5A, 47761 }, - { 0x0A5B, 47707 }, - { 0x0A5C, 47746 }, - { 0x0A5E, 47656 }, - { 0x0A66, 47576 }, - { 0x0A67, 47558 }, - { 0x0A68, 47564 }, - { 0x0A69, 47585 }, - { 0x0A6A, 47570 }, - { 0x0A6B, 47567 }, - { 0x0A6C, 47561 }, - { 0x0A6D, 47582 }, - { 0x0A6E, 47579 }, - { 0x0A6F, 47573 }, - { 0x0A70, 47588 }, - { 0x0A71, 47556 }, - { 0x0A72, 47536 }, - { 0x0A73, 47538 }, - { 0x0A74, 47533 }, - { 0x0A81, 47275 }, - { 0x0A82, 47269 }, - { 0x0A83, 47266 }, - { 0x0A85, 47385 }, - { 0x0A86, 47400 }, - { 0x0A87, 47391 }, - { 0x0A88, 47424 }, - { 0x0A89, 47397 }, - { 0x0A8A, 47454 }, - { 0x0A8B, 47521 }, - { 0x0A8C, 47517 }, - { 0x0A8D, 47377 }, - { 0x0A8F, 47388 }, - { 0x0A90, 47403 }, - { 0x0A91, 47381 }, - { 0x0A93, 47394 }, - { 0x0A94, 47406 }, - { 0x0A95, 47430 }, - { 0x0A96, 47481 }, - { 0x0A97, 47418 }, - { 0x0A98, 47475 }, - { 0x0A99, 47487 }, - { 0x0A9A, 47412 }, - { 0x0A9B, 47466 }, - { 0x0A9C, 47427 }, - { 0x0A9D, 47478 }, - { 0x0A9E, 47493 }, - { 0x0A9F, 47508 }, - { 0x0AA0, 47514 }, - { 0x0AA1, 47469 }, - { 0x0AA2, 47511 }, - { 0x0AA3, 47490 }, - { 0x0AA4, 47451 }, - { 0x0AA5, 47505 }, - { 0x0AA6, 47415 }, - { 0x0AA7, 47472 }, - { 0x0AA8, 47439 }, - { 0x0AAA, 47442 }, - { 0x0AAB, 47496 }, - { 0x0AAC, 47409 }, - { 0x0AAD, 47463 }, - { 0x0AAE, 47436 }, - { 0x0AAF, 47460 }, - { 0x0AB0, 47445 }, - { 0x0AB2, 47433 }, - { 0x0AB3, 47484 }, - { 0x0AB5, 47457 }, - { 0x0AB6, 47499 }, - { 0x0AB7, 47502 }, - { 0x0AB8, 47448 }, - { 0x0AB9, 47421 }, - { 0x0ABC, 47260 }, - { 0x0ABD, 47272 }, - { 0x0ABE, 47327 }, - { 0x0ABF, 47315 }, - { 0x0AC0, 47339 }, - { 0x0AC1, 47323 }, - { 0x0AC2, 47343 }, - { 0x0AC3, 47362 }, - { 0x0AC4, 47372 }, - { 0x0AC5, 47347 }, - { 0x0AC7, 47311 }, - { 0x0AC8, 47331 }, - { 0x0AC9, 47352 }, - { 0x0ACB, 47319 }, - { 0x0ACC, 47335 }, - { 0x0ACD, 47263 }, - { 0x0AD0, 47258 }, - { 0x0AE0, 47529 }, - { 0x0AE1, 47525 }, - { 0x0AE2, 47357 }, - { 0x0AE3, 47367 }, - { 0x0AE6, 47296 }, - { 0x0AE7, 47278 }, - { 0x0AE8, 47284 }, - { 0x0AE9, 47305 }, - { 0x0AEA, 47290 }, - { 0x0AEB, 47287 }, - { 0x0AEC, 47281 }, - { 0x0AED, 47302 }, - { 0x0AEE, 47299 }, - { 0x0AEF, 47293 }, - { 0x0AF1, 47308 }, - { 0x0B01, 19016 }, - { 0x0B02, 19010 }, - { 0x0B03, 19007 }, - { 0x0B05, 19092 }, - { 0x0B06, 19107 }, - { 0x0B07, 19098 }, - { 0x0B08, 19131 }, - { 0x0B09, 19104 }, - { 0x0B0A, 19161 }, - { 0x0B0B, 19240 }, - { 0x0B0C, 19236 }, - { 0x0B0F, 19095 }, - { 0x0B10, 19110 }, - { 0x0B13, 19101 }, - { 0x0B14, 19113 }, - { 0x0B15, 19137 }, - { 0x0B16, 19191 }, - { 0x0B17, 19125 }, - { 0x0B18, 19185 }, - { 0x0B19, 19197 }, - { 0x0B1A, 19119 }, - { 0x0B1B, 19176 }, - { 0x0B1C, 19134 }, - { 0x0B1D, 19188 }, - { 0x0B1E, 19203 }, - { 0x0B1F, 19224 }, - { 0x0B20, 19233 }, - { 0x0B21, 19179 }, - { 0x0B22, 19230 }, - { 0x0B23, 19200 }, - { 0x0B24, 19158 }, - { 0x0B25, 19221 }, - { 0x0B26, 19122 }, - { 0x0B27, 19182 }, - { 0x0B28, 19146 }, - { 0x0B2A, 19149 }, - { 0x0B2B, 19206 }, - { 0x0B2C, 19116 }, - { 0x0B2D, 19173 }, - { 0x0B2E, 19143 }, - { 0x0B2F, 19170 }, - { 0x0B30, 19152 }, - { 0x0B32, 19140 }, - { 0x0B33, 19194 }, - { 0x0B35, 19164 }, - { 0x0B36, 19215 }, - { 0x0B37, 19218 }, - { 0x0B38, 19155 }, - { 0x0B39, 19128 }, - { 0x0B3C, 19001 }, - { 0x0B3D, 19013 }, - { 0x0B3E, 19065 }, - { 0x0B3F, 19053 }, - { 0x0B40, 19077 }, - { 0x0B41, 19061 }, - { 0x0B42, 19081 }, - { 0x0B43, 19085 }, - { 0x0B47, 19049 }, - { 0x0B48, 19069 }, - { 0x0B4B, 19057 }, - { 0x0B4C, 19073 }, - { 0x0B4D, 19004 }, - { 0x0B56, 18993 }, - { 0x0B57, 18997 }, - { 0x0B5C, 19212 }, - { 0x0B5D, 19209 }, - { 0x0B5F, 19227 }, - { 0x0B60, 19248 }, - { 0x0B61, 19244 }, - { 0x0B66, 19037 }, - { 0x0B67, 19019 }, - { 0x0B68, 19025 }, - { 0x0B69, 19046 }, - { 0x0B6A, 19031 }, - { 0x0B6B, 19028 }, - { 0x0B6C, 19022 }, - { 0x0B6D, 19043 }, - { 0x0B6E, 19040 }, - { 0x0B6F, 19034 }, - { 0x0B70, 19090 }, - { 0x0B71, 19167 }, - { 0x0B82, 20223 }, - { 0x0B83, 20220 }, - { 0x0B85, 20315 }, - { 0x0B86, 20330 }, - { 0x0B87, 20321 }, - { 0x0B88, 20348 }, - { 0x0B89, 20327 }, - { 0x0B8A, 20381 }, - { 0x0B8E, 20318 }, - { 0x0B8F, 20342 }, - { 0x0B90, 20333 }, - { 0x0B92, 20324 }, - { 0x0B93, 20366 }, - { 0x0B94, 20336 }, - { 0x0B95, 20354 }, - { 0x0B99, 20393 }, - { 0x0B9A, 20339 }, - { 0x0B9C, 20351 }, - { 0x0B9E, 20399 }, - { 0x0B9F, 20411 }, - { 0x0BA3, 20396 }, - { 0x0BA4, 20378 }, - { 0x0BA8, 20363 }, - { 0x0BA9, 20417 }, - { 0x0BAA, 20369 }, - { 0x0BAE, 20360 }, - { 0x0BAF, 20387 }, - { 0x0BB0, 20372 }, - { 0x0BB1, 20402 }, - { 0x0BB2, 20357 }, - { 0x0BB3, 20390 }, - { 0x0BB4, 20414 }, - { 0x0BB5, 20384 }, - { 0x0BB6, 20405 }, - { 0x0BB7, 20408 }, - { 0x0BB8, 20375 }, - { 0x0BB9, 20345 }, - { 0x0BBE, 20284 }, - { 0x0BBF, 20272 }, - { 0x0BC0, 20300 }, - { 0x0BC1, 20280 }, - { 0x0BC2, 20308 }, - { 0x0BC6, 20268 }, - { 0x0BC7, 20296 }, - { 0x0BC8, 20288 }, - { 0x0BCA, 20276 }, - { 0x0BCB, 20304 }, - { 0x0BCC, 20292 }, - { 0x0BCD, 20217 }, - { 0x0BD7, 20210 }, - { 0x0BE6, 20250 }, - { 0x0BE7, 20232 }, - { 0x0BE8, 20238 }, - { 0x0BE9, 20259 }, - { 0x0BEA, 20244 }, - { 0x0BEB, 20241 }, - { 0x0BEC, 20235 }, - { 0x0BED, 20256 }, - { 0x0BEE, 20253 }, - { 0x0BEF, 20247 }, - { 0x0BF0, 20428 }, - { 0x0BF1, 20420 }, - { 0x0BF2, 20424 }, - { 0x0BF3, 20214 }, - { 0x0BF4, 20262 }, - { 0x0BF5, 20226 }, - { 0x0BF6, 20229 }, - { 0x0BF7, 20312 }, - { 0x0BF8, 20206 }, - { 0x0BF9, 20265 }, - { 0x0BFA, 20431 }, - { 0x0C01, 33303 }, - { 0x0C02, 33300 }, - { 0x0C03, 33297 }, - { 0x0C05, 33393 }, - { 0x0C06, 33408 }, - { 0x0C07, 33399 }, - { 0x0C08, 33435 }, - { 0x0C09, 33405 }, - { 0x0C0A, 33468 }, - { 0x0C0B, 33538 }, - { 0x0C0C, 33534 }, - { 0x0C0E, 33396 }, - { 0x0C0F, 33426 }, - { 0x0C10, 33411 }, - { 0x0C12, 33402 }, - { 0x0C13, 33453 }, - { 0x0C14, 33414 }, - { 0x0C15, 33441 }, - { 0x0C16, 33495 }, - { 0x0C17, 33429 }, - { 0x0C18, 33489 }, - { 0x0C19, 33501 }, - { 0x0C1A, 33420 }, - { 0x0C1B, 33480 }, - { 0x0C1C, 33438 }, - { 0x0C1D, 33492 }, - { 0x0C1E, 33507 }, - { 0x0C1F, 33525 }, - { 0x0C20, 33531 }, - { 0x0C21, 33483 }, - { 0x0C22, 33528 }, - { 0x0C23, 33504 }, - { 0x0C24, 33465 }, - { 0x0C25, 33522 }, - { 0x0C26, 33423 }, - { 0x0C27, 33486 }, - { 0x0C28, 33450 }, - { 0x0C2A, 33456 }, - { 0x0C2B, 33510 }, - { 0x0C2C, 33417 }, - { 0x0C2D, 33477 }, - { 0x0C2E, 33447 }, - { 0x0C2F, 33474 }, - { 0x0C30, 33459 }, - { 0x0C31, 33513 }, - { 0x0C32, 33444 }, - { 0x0C33, 33498 }, - { 0x0C35, 33471 }, - { 0x0C36, 33516 }, - { 0x0C37, 33519 }, - { 0x0C38, 33462 }, - { 0x0C39, 33432 }, - { 0x0C3E, 33352 }, - { 0x0C3F, 33340 }, - { 0x0C40, 33368 }, - { 0x0C41, 33348 }, - { 0x0C42, 33376 }, - { 0x0C43, 33380 }, - { 0x0C44, 33385 }, - { 0x0C46, 33336 }, - { 0x0C47, 33364 }, - { 0x0C48, 33356 }, - { 0x0C4A, 33344 }, - { 0x0C4B, 33372 }, - { 0x0C4C, 33360 }, - { 0x0C4D, 33294 }, - { 0x0C55, 33390 }, - { 0x0C56, 33290 }, - { 0x0C60, 33546 }, - { 0x0C61, 33542 }, - { 0x0C66, 33324 }, - { 0x0C67, 33306 }, - { 0x0C68, 33312 }, - { 0x0C69, 33333 }, - { 0x0C6A, 33318 }, - { 0x0C6B, 33315 }, - { 0x0C6C, 33309 }, - { 0x0C6D, 33330 }, - { 0x0C6E, 33327 }, - { 0x0C6F, 33321 }, - { 0x0C82, 36730 }, - { 0x0C83, 36727 }, - { 0x0C85, 36839 }, - { 0x0C86, 36854 }, - { 0x0C87, 36845 }, - { 0x0C88, 36884 }, - { 0x0C89, 36851 }, - { 0x0C8A, 36917 }, - { 0x0C8B, 36987 }, - { 0x0C8C, 36983 }, - { 0x0C8E, 36842 }, - { 0x0C8F, 36872 }, - { 0x0C90, 36857 }, - { 0x0C92, 36848 }, - { 0x0C93, 36902 }, - { 0x0C94, 36860 }, - { 0x0C95, 36890 }, - { 0x0C96, 36944 }, - { 0x0C97, 36878 }, - { 0x0C98, 36938 }, - { 0x0C99, 36950 }, - { 0x0C9A, 36866 }, - { 0x0C9B, 36929 }, - { 0x0C9C, 36887 }, - { 0x0C9D, 36941 }, - { 0x0C9E, 36956 }, - { 0x0C9F, 36974 }, - { 0x0CA0, 36980 }, - { 0x0CA1, 36932 }, - { 0x0CA2, 36977 }, - { 0x0CA3, 36953 }, - { 0x0CA4, 36914 }, - { 0x0CA5, 36971 }, - { 0x0CA6, 36869 }, - { 0x0CA7, 36935 }, - { 0x0CA8, 36899 }, - { 0x0CAA, 36905 }, - { 0x0CAB, 36959 }, - { 0x0CAC, 36863 }, - { 0x0CAD, 36926 }, - { 0x0CAE, 36896 }, - { 0x0CAF, 36923 }, - { 0x0CB0, 36908 }, - { 0x0CB1, 36962 }, - { 0x0CB2, 36893 }, - { 0x0CB3, 36947 }, - { 0x0CB5, 36920 }, - { 0x0CB6, 36965 }, - { 0x0CB7, 36968 }, - { 0x0CB8, 36911 }, - { 0x0CB9, 36881 }, - { 0x0CBC, 36721 }, - { 0x0CBD, 36733 }, - { 0x0CBE, 36788 }, - { 0x0CBF, 36776 }, - { 0x0CC0, 36804 }, - { 0x0CC1, 36784 }, - { 0x0CC2, 36812 }, - { 0x0CC3, 36821 }, - { 0x0CC4, 36831 }, - { 0x0CC6, 36772 }, - { 0x0CC7, 36800 }, - { 0x0CC8, 36792 }, - { 0x0CCA, 36780 }, - { 0x0CCB, 36808 }, - { 0x0CCC, 36796 }, - { 0x0CCD, 36724 }, - { 0x0CD5, 36836 }, - { 0x0CD6, 36717 }, - { 0x0CDE, 36875 }, - { 0x0CE0, 36995 }, - { 0x0CE1, 36991 }, - { 0x0CE2, 36816 }, - { 0x0CE3, 36826 }, - { 0x0CE6, 36760 }, - { 0x0CE7, 36742 }, - { 0x0CE8, 36748 }, - { 0x0CE9, 36769 }, - { 0x0CEA, 36754 }, - { 0x0CEB, 36751 }, - { 0x0CEC, 36745 }, - { 0x0CED, 36766 }, - { 0x0CEE, 36763 }, - { 0x0CEF, 36757 }, - { 0x0CF1, 36736 }, - { 0x0CF2, 36739 }, - { 0x0D02, 59174 }, - { 0x0D03, 59171 }, - { 0x0D05, 59256 }, - { 0x0D06, 59271 }, - { 0x0D07, 59262 }, - { 0x0D08, 59298 }, - { 0x0D09, 59268 }, - { 0x0D0A, 59331 }, - { 0x0D0B, 59404 }, - { 0x0D0C, 59400 }, - { 0x0D0E, 59259 }, - { 0x0D0F, 59289 }, - { 0x0D10, 59274 }, - { 0x0D12, 59265 }, - { 0x0D13, 59316 }, - { 0x0D14, 59277 }, - { 0x0D15, 59304 }, - { 0x0D16, 59358 }, - { 0x0D17, 59292 }, - { 0x0D18, 59352 }, - { 0x0D19, 59364 }, - { 0x0D1A, 59283 }, - { 0x0D1B, 59343 }, - { 0x0D1C, 59301 }, - { 0x0D1D, 59355 }, - { 0x0D1E, 59370 }, - { 0x0D1F, 59388 }, - { 0x0D20, 59397 }, - { 0x0D21, 59346 }, - { 0x0D22, 59391 }, - { 0x0D23, 59367 }, - { 0x0D24, 59328 }, - { 0x0D25, 59385 }, - { 0x0D26, 59286 }, - { 0x0D27, 59349 }, - { 0x0D28, 59313 }, - { 0x0D2A, 59319 }, - { 0x0D2B, 59373 }, - { 0x0D2C, 59280 }, - { 0x0D2D, 59340 }, - { 0x0D2E, 59310 }, - { 0x0D2F, 59337 }, - { 0x0D30, 59322 }, - { 0x0D31, 59376 }, - { 0x0D32, 59307 }, - { 0x0D33, 59361 }, - { 0x0D34, 59394 }, - { 0x0D35, 59334 }, - { 0x0D36, 59379 }, - { 0x0D37, 59382 }, - { 0x0D38, 59325 }, - { 0x0D39, 59295 }, - { 0x0D3E, 59223 }, - { 0x0D3F, 59211 }, - { 0x0D40, 59239 }, - { 0x0D41, 59219 }, - { 0x0D42, 59247 }, - { 0x0D43, 59251 }, - { 0x0D46, 59207 }, - { 0x0D47, 59235 }, - { 0x0D48, 59227 }, - { 0x0D4A, 59215 }, - { 0x0D4B, 59243 }, - { 0x0D4C, 59231 }, - { 0x0D4D, 59168 }, - { 0x0D57, 59164 }, - { 0x0D60, 59412 }, - { 0x0D61, 59408 }, - { 0x0D66, 59195 }, - { 0x0D67, 59177 }, - { 0x0D68, 59183 }, - { 0x0D69, 59204 }, - { 0x0D6A, 59189 }, - { 0x0D6B, 59186 }, - { 0x0D6C, 59180 }, - { 0x0D6D, 59201 }, - { 0x0D6E, 59198 }, - { 0x0D6F, 59192 }, - { 0x0D82, 38687 }, - { 0x0D83, 38684 }, - { 0x0D85, 38779 }, - { 0x0D86, 38794 }, - { 0x0D87, 38797 }, - { 0x0D88, 38881 }, - { 0x0D89, 38785 }, - { 0x0D8A, 38827 }, - { 0x0D8B, 38791 }, - { 0x0D8C, 38872 }, - { 0x0D8D, 38887 }, - { 0x0D8E, 38893 }, - { 0x0D8F, 38884 }, - { 0x0D90, 38890 }, - { 0x0D91, 38782 }, - { 0x0D92, 38818 }, - { 0x0D93, 38800 }, - { 0x0D94, 38788 }, - { 0x0D95, 38837 }, - { 0x0D96, 38803 }, - { 0x0D9A, 38928 }, - { 0x0D9B, 38968 }, - { 0x0D9C, 38920 }, - { 0x0D9D, 38960 }, - { 0x0D9E, 38830 }, - { 0x0D9F, 38847 }, - { 0x0DA0, 38912 }, - { 0x0DA1, 38952 }, - { 0x0DA2, 38924 }, - { 0x0DA3, 38964 }, - { 0x0DA4, 38868 }, - { 0x0DA5, 38863 }, - { 0x0DA6, 38851 }, - { 0x0DA7, 38944 }, - { 0x0DA8, 38984 }, - { 0x0DA9, 38940 }, - { 0x0DAA, 38980 }, - { 0x0DAB, 38900 }, - { 0x0DAC, 38855 }, - { 0x0DAD, 38936 }, - { 0x0DAE, 38976 }, - { 0x0DAF, 38916 }, - { 0x0DB0, 38956 }, - { 0x0DB1, 38810 }, - { 0x0DB3, 38843 }, - { 0x0DB4, 38932 }, - { 0x0DB5, 38972 }, - { 0x0DB6, 38908 }, - { 0x0DB7, 38948 }, - { 0x0DB8, 38834 }, - { 0x0DB9, 38775 }, - { 0x0DBA, 38878 }, - { 0x0DBB, 38840 }, - { 0x0DBD, 38806 }, - { 0x0DC0, 38875 }, - { 0x0DC1, 38859 }, - { 0x0DC2, 38904 }, - { 0x0DC3, 38814 }, - { 0x0DC4, 38824 }, - { 0x0DC5, 38896 }, - { 0x0DC6, 38821 }, - { 0x0DCA, 38681 }, - { 0x0DCF, 38763 }, - { 0x0DD0, 38730 }, - { 0x0DD1, 38705 }, - { 0x0DD2, 38720 }, - { 0x0DD3, 38695 }, - { 0x0DD4, 38725 }, - { 0x0DD6, 38700 }, - { 0x0DD8, 38771 }, - { 0x0DD9, 38740 }, - { 0x0DDA, 38690 }, - { 0x0DDB, 38735 }, - { 0x0DDC, 38751 }, - { 0x0DDD, 38744 }, - { 0x0DDE, 38757 }, - { 0x0DDF, 38767 }, - { 0x0DF2, 38715 }, - { 0x0DF3, 38710 }, - { 0x0DF4, 38988 }, - { 0x0E01, 8298 }, - { 0x0E02, 8388 }, - { 0x0E03, 8396 }, - { 0x0E04, 8400 }, - { 0x0E05, 8392 }, - { 0x0E06, 8404 }, - { 0x0E07, 8428 }, - { 0x0E08, 8372 }, - { 0x0E09, 8384 }, - { 0x0E0A, 8380 }, - { 0x0E0B, 8336 }, - { 0x0E0C, 8376 }, - { 0x0E0D, 8368 }, - { 0x0E0E, 8278 }, - { 0x0E0F, 8356 }, - { 0x0E10, 8444 }, - { 0x0E11, 8464 }, - { 0x0E12, 8460 }, - { 0x0E13, 8321 }, - { 0x0E14, 8274 }, - { 0x0E15, 8352 }, - { 0x0E16, 8452 }, - { 0x0E17, 8456 }, - { 0x0E18, 8448 }, - { 0x0E19, 8317 }, - { 0x0E1A, 8270 }, - { 0x0E1B, 8325 }, - { 0x0E1C, 8436 }, - { 0x0E1D, 8282 }, - { 0x0E1E, 8432 }, - { 0x0E1F, 8286 }, - { 0x0E20, 8440 }, - { 0x0E21, 8313 }, - { 0x0E22, 8364 }, - { 0x0E23, 8329 }, - { 0x0E24, 8333 }, - { 0x0E25, 8302 }, - { 0x0E26, 8310 }, - { 0x0E27, 8360 }, - { 0x0E28, 8348 }, - { 0x0E29, 8344 }, - { 0x0E2A, 8340 }, - { 0x0E2B, 8290 }, - { 0x0E2C, 8306 }, - { 0x0E2D, 8266 }, - { 0x0E2E, 8294 }, - { 0x0E2F, 8547 }, - { 0x0E30, 8468 }, - { 0x0E31, 8424 }, - { 0x0E32, 8488 }, - { 0x0E33, 8506 }, - { 0x0E34, 8476 }, - { 0x0E35, 8510 }, - { 0x0E36, 8514 }, - { 0x0E37, 8522 }, - { 0x0E38, 8484 }, - { 0x0E39, 8518 }, - { 0x0E3A, 8532 }, - { 0x0E3F, 8262 }, - { 0x0E40, 8472 }, - { 0x0E41, 8492 }, - { 0x0E42, 8480 }, - { 0x0E43, 8496 }, - { 0x0E44, 8501 }, - { 0x0E45, 8553 }, - { 0x0E46, 8535 }, - { 0x0E47, 8544 }, - { 0x0E48, 8408 }, - { 0x0E49, 8412 }, - { 0x0E4A, 8416 }, - { 0x0E4B, 8420 }, - { 0x0E4C, 8556 }, - { 0x0E4D, 8538 }, - { 0x0E4E, 8541 }, - { 0x0E4F, 8529 }, - { 0x0E50, 8250 }, - { 0x0E51, 8232 }, - { 0x0E52, 8238 }, - { 0x0E53, 8259 }, - { 0x0E54, 8244 }, - { 0x0E55, 8241 }, - { 0x0E56, 8235 }, - { 0x0E57, 8256 }, - { 0x0E58, 8253 }, - { 0x0E59, 8247 }, - { 0x0E5A, 8550 }, - { 0x0E5B, 8526 }, - { 0x0E81, 5698 }, - { 0x0E82, 5739 }, - { 0x0E84, 5735 }, - { 0x0E87, 5743 }, - { 0x0E88, 5676 }, - { 0x0E8A, 5718 }, - { 0x0E8D, 5746 }, - { 0x0E94, 5679 }, - { 0x0E95, 5726 }, - { 0x0E96, 5761 }, - { 0x0E97, 5757 }, - { 0x0E99, 5712 }, - { 0x0E9A, 5673 }, - { 0x0E9B, 5715 }, - { 0x0E9C, 5753 }, - { 0x0E9D, 5682 }, - { 0x0E9E, 5749 }, - { 0x0E9F, 5686 }, - { 0x0EA1, 5709 }, - { 0x0EA2, 5732 }, - { 0x0EA3, 5701 }, - { 0x0EA5, 5705 }, - { 0x0EA7, 5729 }, - { 0x0EAA, 5722 }, - { 0x0EAB, 5694 }, - { 0x0EAD, 5670 }, - { 0x0EAE, 5690 }, - { 0x0EAF, 5765 }, - { 0x0EB0, 5604 }, - { 0x0EB1, 5660 }, - { 0x0EB2, 5628 }, - { 0x0EB3, 5636 }, - { 0x0EB4, 5612 }, - { 0x0EB5, 5648 }, - { 0x0EB6, 5624 }, - { 0x0EB7, 5656 }, - { 0x0EB8, 5620 }, - { 0x0EB9, 5652 }, - { 0x0EBB, 5665 }, - { 0x0EBC, 5769 }, - { 0x0EBD, 5773 }, - { 0x0EC0, 5608 }, - { 0x0EC1, 5644 }, - { 0x0EC2, 5616 }, - { 0x0EC3, 5640 }, - { 0x0EC4, 5632 }, - { 0x0EC6, 5555 }, - { 0x0EC8, 5558 }, - { 0x0EC9, 5566 }, - { 0x0ECA, 5562 }, - { 0x0ECB, 5570 }, - { 0x0ECC, 5777 }, - { 0x0ECD, 5767 }, - { 0x0ED0, 5592 }, - { 0x0ED1, 5574 }, - { 0x0ED2, 5580 }, - { 0x0ED3, 5601 }, - { 0x0ED4, 5586 }, - { 0x0ED5, 5583 }, - { 0x0ED6, 5577 }, - { 0x0ED7, 5598 }, - { 0x0ED8, 5595 }, - { 0x0ED9, 5589 }, - { 0x0EDC, 5552 }, - { 0x0EDD, 5549 }, - { 0x0F00, 39743 }, - { 0x0F01, 39211 }, - { 0x0F02, 39202 }, - { 0x0F03, 39193 }, - { 0x0F04, 39319 }, - { 0x0F05, 39309 }, - { 0x0F06, 39267 }, - { 0x0F07, 39180 }, - { 0x0F08, 39298 }, - { 0x0F09, 39262 }, - { 0x0F0A, 39187 }, - { 0x0F0B, 39331 }, - { 0x0F0C, 39326 }, - { 0x0F0D, 39248 }, - { 0x0F0E, 39234 }, - { 0x0F0F, 39302 }, - { 0x0F10, 39238 }, - { 0x0F11, 39170 }, - { 0x0F12, 39243 }, - { 0x0F13, 39275 }, - { 0x0F14, 39218 }, - { 0x0F15, 39733 }, - { 0x0F16, 39738 }, - { 0x0F17, 39925 }, - { 0x0F18, 39937 }, - { 0x0F19, 39932 }, - { 0x0F1A, 39391 }, - { 0x0F1B, 39407 }, - { 0x0F1C, 39396 }, - { 0x0F1D, 39376 }, - { 0x0F1E, 39386 }, - { 0x0F1F, 39401 }, - { 0x0F20, 39484 }, - { 0x0F21, 39426 }, - { 0x0F22, 39432 }, - { 0x0F23, 39493 }, - { 0x0F24, 39438 }, - { 0x0F25, 39435 }, - { 0x0F26, 39429 }, - { 0x0F27, 39490 }, - { 0x0F28, 39487 }, - { 0x0F29, 39481 }, - { 0x0F2A, 39441 }, - { 0x0F2B, 39449 }, - { 0x0F2C, 39477 }, - { 0x0F2D, 39457 }, - { 0x0F2E, 39453 }, - { 0x0F2F, 39445 }, - { 0x0F30, 39473 }, - { 0x0F31, 39469 }, - { 0x0F32, 39461 }, - { 0x0F33, 39465 }, - { 0x0F34, 39251 }, - { 0x0F35, 39222 }, - { 0x0F36, 39283 }, - { 0x0F37, 39228 }, - { 0x0F38, 39156 }, - { 0x0F39, 39176 }, - { 0x0F3A, 39165 }, - { 0x0F3B, 39160 }, - { 0x0F3C, 39151 }, - { 0x0F3D, 39146 }, - { 0x0F3E, 39368 }, - { 0x0F3F, 39354 }, - { 0x0F40, 39586 }, - { 0x0F41, 39637 }, - { 0x0F42, 39577 }, - { 0x0F43, 39634 }, - { 0x0F44, 39640 }, - { 0x0F45, 39571 }, - { 0x0F46, 39622 }, - { 0x0F47, 39583 }, - { 0x0F49, 39646 }, - { 0x0F4A, 39664 }, - { 0x0F4B, 39682 }, - { 0x0F4C, 39625 }, - { 0x0F4D, 39670 }, - { 0x0F4E, 39643 }, - { 0x0F4F, 39607 }, - { 0x0F50, 39658 }, - { 0x0F51, 39574 }, - { 0x0F52, 39628 }, - { 0x0F53, 39595 }, - { 0x0F54, 39598 }, - { 0x0F55, 39649 }, - { 0x0F56, 39568 }, - { 0x0F57, 39619 }, - { 0x0F58, 39592 }, - { 0x0F59, 39661 }, - { 0x0F5A, 39679 }, - { 0x0F5B, 39631 }, - { 0x0F5C, 39673 }, - { 0x0F5D, 39610 }, - { 0x0F5E, 39667 }, - { 0x0F5F, 39616 }, - { 0x0F60, 39565 }, - { 0x0F61, 39613 }, - { 0x0F62, 39601 }, - { 0x0F63, 39589 }, - { 0x0F64, 39652 }, - { 0x0F65, 39655 }, - { 0x0F66, 39604 }, - { 0x0F67, 39580 }, - { 0x0F68, 39562 }, - { 0x0F69, 39676 }, - { 0x0F6A, 39685 }, - { 0x0F71, 39512 }, - { 0x0F72, 39500 }, - { 0x0F73, 39520 }, - { 0x0F74, 39508 }, - { 0x0F75, 39528 }, - { 0x0F76, 39537 }, - { 0x0F77, 39547 }, - { 0x0F78, 39532 }, - { 0x0F79, 39542 }, - { 0x0F7A, 39496 }, - { 0x0F7B, 39516 }, - { 0x0F7C, 39504 }, - { 0x0F7D, 39524 }, - { 0x0F7E, 39412 }, - { 0x0F7F, 39418 }, - { 0x0F80, 39552 }, - { 0x0F81, 39557 }, - { 0x0F82, 39358 }, - { 0x0F83, 39364 }, - { 0x0F84, 39316 }, - { 0x0F85, 39306 }, - { 0x0F86, 39350 }, - { 0x0F87, 39422 }, - { 0x0F88, 39345 }, - { 0x0F89, 39372 }, - { 0x0F8A, 39335 }, - { 0x0F8B, 39340 }, - { 0x0F90, 39778 }, - { 0x0F91, 39846 }, - { 0x0F92, 39766 }, - { 0x0F93, 39842 }, - { 0x0F94, 39850 }, - { 0x0F95, 39758 }, - { 0x0F96, 39826 }, - { 0x0F97, 39774 }, - { 0x0F99, 39858 }, - { 0x0F9A, 39882 }, - { 0x0F9B, 39906 }, - { 0x0F9C, 39830 }, - { 0x0F9D, 39890 }, - { 0x0F9E, 39854 }, - { 0x0F9F, 39806 }, - { 0x0FA0, 39874 }, - { 0x0FA1, 39762 }, - { 0x0FA2, 39834 }, - { 0x0FA3, 39790 }, - { 0x0FA4, 39794 }, - { 0x0FA5, 39862 }, - { 0x0FA6, 39754 }, - { 0x0FA7, 39822 }, - { 0x0FA8, 39786 }, - { 0x0FA9, 39878 }, - { 0x0FAA, 39902 }, - { 0x0FAB, 39838 }, - { 0x0FAC, 39894 }, - { 0x0FAD, 39810 }, - { 0x0FAE, 39886 }, - { 0x0FAF, 39818 }, - { 0x0FB0, 39750 }, - { 0x0FB1, 39814 }, - { 0x0FB2, 39798 }, - { 0x0FB3, 39782 }, - { 0x0FB4, 39866 }, - { 0x0FB5, 39870 }, - { 0x0FB6, 39802 }, - { 0x0FB7, 39770 }, - { 0x0FB8, 39746 }, - { 0x0FB9, 39898 }, - { 0x0FBA, 39915 }, - { 0x0FBB, 39920 }, - { 0x0FBC, 39910 }, - { 0x0FBE, 39135 }, - { 0x0FBF, 39139 }, - { 0x0FC0, 39952 }, - { 0x0FC1, 39957 }, - { 0x0FC2, 39942 }, - { 0x0FC3, 39947 }, - { 0x0FC4, 39721 }, - { 0x0FC5, 39711 }, - { 0x0FC6, 39729 }, - { 0x0FC7, 39715 }, - { 0x0FC8, 39725 }, - { 0x0FC9, 39689 }, - { 0x0FCA, 39705 }, - { 0x0FCB, 39699 }, - { 0x0FCC, 39693 }, - { 0x0FCF, 39381 }, - { 0x0FD0, 39255 }, - { 0x0FD1, 39291 }, - { 0x1000, 38153 }, - { 0x1001, 38204 }, - { 0x1002, 38141 }, - { 0x1003, 38198 }, - { 0x1004, 38210 }, - { 0x1005, 38135 }, - { 0x1006, 38189 }, - { 0x1007, 38150 }, - { 0x1008, 38201 }, - { 0x1009, 38216 }, - { 0x100A, 38237 }, - { 0x100B, 38231 }, - { 0x100C, 38240 }, - { 0x100D, 38192 }, - { 0x100E, 38234 }, - { 0x100F, 38213 }, - { 0x1010, 38174 }, - { 0x1011, 38228 }, - { 0x1012, 38138 }, - { 0x1013, 38195 }, - { 0x1014, 38162 }, - { 0x1015, 38165 }, - { 0x1016, 38219 }, - { 0x1017, 38132 }, - { 0x1018, 38186 }, - { 0x1019, 38159 }, - { 0x101A, 38183 }, - { 0x101B, 38168 }, - { 0x101C, 38156 }, - { 0x101D, 38180 }, - { 0x101E, 38171 }, - { 0x101F, 38144 }, - { 0x1020, 38207 }, - { 0x1021, 38114 }, - { 0x1023, 38120 }, - { 0x1024, 38147 }, - { 0x1025, 38126 }, - { 0x1026, 38177 }, - { 0x1027, 38117 }, - { 0x1029, 38123 }, - { 0x102A, 38129 }, - { 0x102C, 38078 }, - { 0x102D, 38070 }, - { 0x102E, 38086 }, - { 0x102F, 38074 }, - { 0x1030, 38090 }, - { 0x1031, 38066 }, - { 0x1032, 38082 }, - { 0x1036, 38033 }, - { 0x1037, 38016 }, - { 0x1038, 38030 }, - { 0x1039, 38024 }, - { 0x1040, 38054 }, - { 0x1041, 38036 }, - { 0x1042, 38042 }, - { 0x1043, 38063 }, - { 0x1044, 38048 }, - { 0x1045, 38045 }, - { 0x1046, 38039 }, - { 0x1047, 38060 }, - { 0x1048, 38057 }, - { 0x1049, 38051 }, - { 0x104A, 38020 }, - { 0x104B, 38027 }, - { 0x104C, 38262 }, - { 0x104D, 38265 }, - { 0x104E, 38268 }, - { 0x104F, 38259 }, - { 0x1050, 38222 }, - { 0x1051, 38225 }, - { 0x1052, 38247 }, - { 0x1053, 38255 }, - { 0x1054, 38243 }, - { 0x1055, 38251 }, - { 0x1056, 38099 }, - { 0x1057, 38109 }, - { 0x1058, 38094 }, - { 0x1059, 38104 }, - { 0x10A0, 47103 }, - { 0x10A1, 47131 }, - { 0x10A2, 47147 }, - { 0x10A3, 47143 }, - { 0x10A4, 47107 }, - { 0x10A5, 47211 }, - { 0x10A6, 47219 }, - { 0x10A7, 47203 }, - { 0x10A8, 47115 }, - { 0x10A9, 47171 }, - { 0x10AA, 47175 }, - { 0x10AB, 47179 }, - { 0x10AC, 47183 }, - { 0x10AD, 47119 }, - { 0x10AE, 47187 }, - { 0x10AF, 47251 }, - { 0x10B0, 47195 }, - { 0x10B1, 47199 }, - { 0x10B2, 47207 }, - { 0x10B3, 47123 }, - { 0x10B4, 47243 }, - { 0x10B5, 47239 }, - { 0x10B6, 47231 }, - { 0x10B7, 47191 }, - { 0x10B8, 47247 }, - { 0x10B9, 47227 }, - { 0x10BA, 47135 }, - { 0x10BB, 47167 }, - { 0x10BC, 47139 }, - { 0x10BD, 47223 }, - { 0x10BE, 47215 }, - { 0x10BF, 47235 }, - { 0x10C0, 47151 }, - { 0x10C1, 47111 }, - { 0x10C2, 47159 }, - { 0x10C3, 47127 }, - { 0x10C4, 47155 }, - { 0x10C5, 47163 }, - { 0x10D0, 46973 }, - { 0x10D1, 47003 }, - { 0x10D2, 47015 }, - { 0x10D3, 47012 }, - { 0x10D4, 46976 }, - { 0x10D5, 47063 }, - { 0x10D6, 47069 }, - { 0x10D7, 47057 }, - { 0x10D8, 46985 }, - { 0x10D9, 47033 }, - { 0x10DA, 47036 }, - { 0x10DB, 47039 }, - { 0x10DC, 47042 }, - { 0x10DD, 46988 }, - { 0x10DE, 47045 }, - { 0x10DF, 47093 }, - { 0x10E0, 47051 }, - { 0x10E1, 47054 }, - { 0x10E2, 47060 }, - { 0x10E3, 46991 }, - { 0x10E4, 47087 }, - { 0x10E5, 47084 }, - { 0x10E6, 47078 }, - { 0x10E7, 47048 }, - { 0x10E8, 47090 }, - { 0x10E9, 47075 }, - { 0x10EA, 47006 }, - { 0x10EB, 47030 }, - { 0x10EC, 47009 }, - { 0x10ED, 47072 }, - { 0x10EE, 47066 }, - { 0x10EF, 47081 }, - { 0x10F0, 47018 }, - { 0x10F1, 46982 }, - { 0x10F2, 47024 }, - { 0x10F3, 46994 }, - { 0x10F4, 47021 }, - { 0x10F5, 47027 }, - { 0x10F6, 46979 }, - { 0x10F7, 46997 }, - { 0x10F8, 47096 }, - { 0x10F9, 47099 }, - { 0x10FA, 47000 }, - { 0x10FB, 47255 }, - { 0x10FC, 49766 }, - { 0x1100, 28903 }, - { 0x1101, 29011 }, - { 0x1102, 28891 }, - { 0x1103, 28906 }, - { 0x1104, 29014 }, - { 0x1105, 28897 }, - { 0x1106, 28888 }, - { 0x1107, 28894 }, - { 0x1108, 28969 }, - { 0x1109, 28876 }, - { 0x110A, 28927 }, - { 0x110B, 28885 }, - { 0x110C, 28879 }, - { 0x110D, 28957 }, - { 0x110E, 28909 }, - { 0x110F, 28912 }, - { 0x1110, 28921 }, - { 0x1111, 28918 }, - { 0x1112, 28882 }, - { 0x1113, 29029 }, - { 0x1114, 28966 }, - { 0x1115, 29032 }, - { 0x1116, 28990 }, - { 0x1117, 29092 }, - { 0x1118, 29002 }, - { 0x1119, 28972 }, - { 0x111A, 28999 }, - { 0x111B, 29077 }, - { 0x111C, 28987 }, - { 0x111D, 29071 }, - { 0x111E, 29035 }, - { 0x111F, 28996 }, - { 0x1120, 29038 }, - { 0x1121, 28933 }, - { 0x1122, 29125 }, - { 0x1123, 29128 }, - { 0x1124, 29119 }, - { 0x1125, 29110 }, - { 0x1126, 29116 }, - { 0x1127, 28993 }, - { 0x1128, 29083 }, - { 0x1129, 29089 }, - { 0x112A, 29086 }, - { 0x112B, 29074 }, - { 0x112C, 29140 }, - { 0x112D, 29005 }, - { 0x112E, 28948 }, - { 0x112F, 29008 }, - { 0x1130, 28954 }, - { 0x1131, 28945 }, - { 0x1132, 28951 }, - { 0x1133, 29131 }, - { 0x1134, 29095 }, - { 0x1135, 28942 }, - { 0x1136, 28936 }, - { 0x1137, 29041 }, - { 0x1138, 29044 }, - { 0x1139, 29050 }, - { 0x113A, 29047 }, - { 0x113B, 28939 }, - { 0x113C, 29020 }, - { 0x113D, 29122 }, - { 0x113E, 29098 }, - { 0x113F, 29143 }, - { 0x1140, 28915 }, - { 0x1141, 29023 }, - { 0x1142, 29026 }, - { 0x1143, 28981 }, - { 0x1144, 28984 }, - { 0x1145, 28930 }, - { 0x1146, 29062 }, - { 0x1147, 28963 }, - { 0x1148, 28978 }, - { 0x1149, 29059 }, - { 0x114A, 29068 }, - { 0x114B, 29065 }, - { 0x114C, 28924 }, - { 0x114D, 28975 }, - { 0x114E, 29056 }, - { 0x114F, 29137 }, - { 0x1150, 29113 }, - { 0x1151, 29146 }, - { 0x1152, 29101 }, - { 0x1153, 29053 }, - { 0x1154, 29104 }, - { 0x1155, 29134 }, - { 0x1156, 29080 }, - { 0x1157, 29107 }, - { 0x1158, 28960 }, - { 0x1159, 29017 }, - { 0x115F, 28900 }, - { 0x1160, 29566 }, - { 0x1161, 29395 }, - { 0x1162, 29410 }, - { 0x1163, 29431 }, - { 0x1164, 29482 }, - { 0x1165, 29413 }, - { 0x1166, 29398 }, - { 0x1167, 29485 }, - { 0x1168, 29434 }, - { 0x1169, 29404 }, - { 0x116A, 29422 }, - { 0x116B, 29476 }, - { 0x116C, 29419 }, - { 0x116D, 29440 }, - { 0x116E, 29407 }, - { 0x116F, 29479 }, - { 0x1170, 29425 }, - { 0x1171, 29428 }, - { 0x1172, 29443 }, - { 0x1173, 29416 }, - { 0x1174, 29437 }, - { 0x1175, 29401 }, - { 0x1176, 29446 }, - { 0x1177, 29449 }, - { 0x1178, 29515 }, - { 0x1179, 29548 }, - { 0x117A, 29488 }, - { 0x117B, 29491 }, - { 0x117C, 29542 }, - { 0x117D, 29551 }, - { 0x117E, 29554 }, - { 0x117F, 29503 }, - { 0x1180, 29461 }, - { 0x1181, 29506 }, - { 0x1182, 29464 }, - { 0x1183, 29467 }, - { 0x1184, 29557 }, - { 0x1185, 29569 }, - { 0x1186, 29572 }, - { 0x1187, 29524 }, - { 0x1188, 29521 }, - { 0x1189, 29470 }, - { 0x118A, 29509 }, - { 0x118B, 29587 }, - { 0x118C, 29512 }, - { 0x118D, 29473 }, - { 0x118E, 29527 }, - { 0x118F, 29560 }, - { 0x1190, 29530 }, - { 0x1191, 29575 }, - { 0x1192, 29563 }, - { 0x1193, 29536 }, - { 0x1194, 29533 }, - { 0x1195, 29494 }, - { 0x1196, 29545 }, - { 0x1197, 29518 }, - { 0x1198, 29452 }, - { 0x1199, 29500 }, - { 0x119A, 29455 }, - { 0x119B, 29458 }, - { 0x119C, 29497 }, - { 0x119D, 29584 }, - { 0x119E, 29539 }, - { 0x119F, 29590 }, - { 0x11A0, 29581 }, - { 0x11A1, 29578 }, - { 0x11A2, 29593 }, - { 0x11A8, 29173 }, - { 0x11A9, 29278 }, - { 0x11AA, 29236 }, - { 0x11AB, 29164 }, - { 0x11AC, 29248 }, - { 0x11AD, 29251 }, - { 0x11AE, 29176 }, - { 0x11AF, 29170 }, - { 0x11B0, 29299 }, - { 0x11B1, 29263 }, - { 0x11B2, 29269 }, - { 0x11B3, 29209 }, - { 0x11B4, 29344 }, - { 0x11B5, 29341 }, - { 0x11B6, 29260 }, - { 0x11B7, 29161 }, - { 0x11B8, 29167 }, - { 0x11B9, 29206 }, - { 0x11BA, 29149 }, - { 0x11BB, 29197 }, - { 0x11BC, 29158 }, - { 0x11BD, 29152 }, - { 0x11BE, 29179 }, - { 0x11BF, 29182 }, - { 0x11C0, 29191 }, - { 0x11C1, 29188 }, - { 0x11C2, 29155 }, - { 0x11C3, 29287 }, - { 0x11C4, 29383 }, - { 0x11C5, 29293 }, - { 0x11C6, 29296 }, - { 0x11C7, 29203 }, - { 0x11C8, 29323 }, - { 0x11C9, 29326 }, - { 0x11CA, 29347 }, - { 0x11CB, 29305 }, - { 0x11CC, 29374 }, - { 0x11CD, 29266 }, - { 0x11CE, 29302 }, - { 0x11CF, 29389 }, - { 0x11D0, 29221 }, - { 0x11D1, 29386 }, - { 0x11D2, 29362 }, - { 0x11D3, 29365 }, - { 0x11D4, 29377 }, - { 0x11D5, 29392 }, - { 0x11D6, 29359 }, - { 0x11D7, 29338 }, - { 0x11D8, 29335 }, - { 0x11D9, 29380 }, - { 0x11DA, 29290 }, - { 0x11DB, 29245 }, - { 0x11DC, 29242 }, - { 0x11DD, 29200 }, - { 0x11DE, 29356 }, - { 0x11DF, 29320 }, - { 0x11E0, 29317 }, - { 0x11E1, 29239 }, - { 0x11E2, 29311 }, - { 0x11E3, 29257 }, - { 0x11E4, 29332 }, - { 0x11E5, 29254 }, - { 0x11E6, 29314 }, - { 0x11E7, 29272 }, - { 0x11E8, 29275 }, - { 0x11E9, 29215 }, - { 0x11EA, 29212 }, - { 0x11EB, 29185 }, - { 0x11EC, 29284 }, - { 0x11ED, 29371 }, - { 0x11EE, 29218 }, - { 0x11EF, 29308 }, - { 0x11F0, 29194 }, - { 0x11F1, 29350 }, - { 0x11F2, 29368 }, - { 0x11F3, 29329 }, - { 0x11F4, 29353 }, - { 0x11F5, 29227 }, - { 0x11F6, 29233 }, - { 0x11F7, 29224 }, - { 0x11F8, 29230 }, - { 0x11F9, 29281 }, - { 0x1200, 45551 }, - { 0x1201, 45563 }, - { 0x1202, 45557 }, - { 0x1203, 45944 }, - { 0x1204, 45947 }, - { 0x1205, 45554 }, - { 0x1206, 45560 }, - { 0x1207, 45965 }, - { 0x1208, 45596 }, - { 0x1209, 45608 }, - { 0x120A, 45602 }, - { 0x120B, 46028 }, - { 0x120C, 46031 }, - { 0x120D, 45599 }, - { 0x120E, 45605 }, - { 0x120F, 46037 }, - { 0x1210, 45950 }, - { 0x1211, 45962 }, - { 0x1212, 45956 }, - { 0x1213, 46478 }, - { 0x1214, 46481 }, - { 0x1215, 45953 }, - { 0x1216, 45959 }, - { 0x1217, 46484 }, - { 0x1218, 45611 }, - { 0x1219, 45623 }, - { 0x121A, 45617 }, - { 0x121B, 46040 }, - { 0x121C, 46043 }, - { 0x121D, 45614 }, - { 0x121E, 45620 }, - { 0x121F, 46049 }, - { 0x1220, 46226 }, - { 0x1221, 46238 }, - { 0x1222, 46232 }, - { 0x1223, 46589 }, - { 0x1224, 46592 }, - { 0x1225, 46229 }, - { 0x1226, 46235 }, - { 0x1227, 46595 }, - { 0x1228, 45671 }, - { 0x1229, 45683 }, - { 0x122A, 45677 }, - { 0x122B, 46169 }, - { 0x122C, 46172 }, - { 0x122D, 45674 }, - { 0x122E, 45680 }, - { 0x122F, 46178 }, - { 0x1230, 45686 }, - { 0x1231, 45698 }, - { 0x1232, 45692 }, - { 0x1233, 46184 }, - { 0x1234, 46187 }, - { 0x1235, 45689 }, - { 0x1236, 45695 }, - { 0x1237, 46223 }, - { 0x1238, 46190 }, - { 0x1239, 46202 }, - { 0x123A, 46196 }, - { 0x123B, 46571 }, - { 0x123C, 46574 }, - { 0x123D, 46193 }, - { 0x123E, 46199 }, - { 0x123F, 46580 }, - { 0x1240, 45656 }, - { 0x1241, 45668 }, - { 0x1242, 45662 }, - { 0x1243, 46121 }, - { 0x1244, 46124 }, - { 0x1245, 45659 }, - { 0x1246, 45665 }, - { 0x1247, 46142 }, - { 0x1248, 46145 }, - { 0x124A, 46151 }, - { 0x124B, 46559 }, - { 0x124C, 46562 }, - { 0x124D, 46148 }, - { 0x1250, 46127 }, - { 0x1251, 46139 }, - { 0x1252, 46133 }, - { 0x1253, 46544 }, - { 0x1254, 46547 }, - { 0x1255, 46130 }, - { 0x1256, 46136 }, - { 0x1258, 46550 }, - { 0x125A, 46556 }, - { 0x125B, 46673 }, - { 0x125C, 46676 }, - { 0x125D, 46553 }, - { 0x1260, 45476 }, - { 0x1261, 45488 }, - { 0x1262, 45482 }, - { 0x1263, 45791 }, - { 0x1264, 45794 }, - { 0x1265, 45479 }, - { 0x1266, 45485 }, - { 0x1267, 45800 }, - { 0x1268, 45716 }, - { 0x1269, 45728 }, - { 0x126A, 45722 }, - { 0x126B, 46298 }, - { 0x126C, 46301 }, - { 0x126D, 45719 }, - { 0x126E, 45725 }, - { 0x126F, 46304 }, - { 0x1270, 45701 }, - { 0x1271, 45713 }, - { 0x1272, 45707 }, - { 0x1273, 46241 }, - { 0x1274, 46244 }, - { 0x1275, 45704 }, - { 0x1276, 45710 }, - { 0x1277, 46280 }, - { 0x1278, 45491 }, - { 0x1279, 45503 }, - { 0x127A, 45497 }, - { 0x127B, 45809 }, - { 0x127C, 45827 }, - { 0x127D, 45494 }, - { 0x127E, 45500 }, - { 0x127F, 45848 }, - { 0x1280, 45746 }, - { 0x1281, 45758 }, - { 0x1282, 45752 }, - { 0x1283, 46316 }, - { 0x1284, 46319 }, - { 0x1285, 45749 }, - { 0x1286, 45755 }, - { 0x1287, 46322 }, - { 0x1288, 46325 }, - { 0x128A, 46331 }, - { 0x128B, 46628 }, - { 0x128C, 46631 }, - { 0x128D, 46328 }, - { 0x1290, 45626 }, - { 0x1291, 45638 }, - { 0x1292, 45632 }, - { 0x1293, 46061 }, - { 0x1294, 46064 }, - { 0x1295, 45629 }, - { 0x1296, 45635 }, - { 0x1297, 46070 }, - { 0x1298, 46073 }, - { 0x1299, 46085 }, - { 0x129A, 46079 }, - { 0x129B, 46517 }, - { 0x129C, 46520 }, - { 0x129D, 46076 }, - { 0x129E, 46082 }, - { 0x129F, 46526 }, - { 0x12A0, 46679 }, - { 0x12A1, 46695 }, - { 0x12A2, 46687 }, - { 0x12A3, 46699 }, - { 0x12A4, 46703 }, - { 0x12A5, 46683 }, - { 0x12A6, 46691 }, - { 0x12A7, 46711 }, - { 0x12A8, 45581 }, - { 0x12A9, 45593 }, - { 0x12AA, 45587 }, - { 0x12AB, 45980 }, - { 0x12AC, 45983 }, - { 0x12AD, 45584 }, - { 0x12AE, 45590 }, - { 0x12AF, 45986 }, - { 0x12B0, 45989 }, - { 0x12B2, 45995 }, - { 0x12B3, 46487 }, - { 0x12B4, 46490 }, - { 0x12B5, 45992 }, - { 0x12B8, 45998 }, - { 0x12B9, 46010 }, - { 0x12BA, 46004 }, - { 0x12BB, 46493 }, - { 0x12BC, 46496 }, - { 0x12BD, 46001 }, - { 0x12BE, 46007 }, - { 0x12C0, 46499 }, - { 0x12C2, 46505 }, - { 0x12C3, 46667 }, - { 0x12C4, 46670 }, - { 0x12C5, 46502 }, - { 0x12C8, 45731 }, - { 0x12C9, 45743 }, - { 0x12CA, 45737 }, - { 0x12CB, 46307 }, - { 0x12CC, 46310 }, - { 0x12CD, 45734 }, - { 0x12CE, 45740 }, - { 0x12CF, 46313 }, - { 0x12D0, 46731 }, - { 0x12D1, 46747 }, - { 0x12D2, 46739 }, - { 0x12D3, 46751 }, - { 0x12D4, 46755 }, - { 0x12D5, 46735 }, - { 0x12D6, 46743 }, - { 0x12D8, 45776 }, - { 0x12D9, 45788 }, - { 0x12DA, 45782 }, - { 0x12DB, 46358 }, - { 0x12DC, 46361 }, - { 0x12DD, 45779 }, - { 0x12DE, 45785 }, - { 0x12DF, 46382 }, - { 0x12E0, 46364 }, - { 0x12E1, 46376 }, - { 0x12E2, 46370 }, - { 0x12E3, 46640 }, - { 0x12E4, 46643 }, - { 0x12E5, 46367 }, - { 0x12E6, 46373 }, - { 0x12E7, 46646 }, - { 0x12E8, 45761 }, - { 0x12E9, 45773 }, - { 0x12EA, 45767 }, - { 0x12EB, 46349 }, - { 0x12EC, 46352 }, - { 0x12ED, 45764 }, - { 0x12EE, 45770 }, - { 0x12EF, 46355 }, - { 0x12F0, 45506 }, - { 0x12F1, 45518 }, - { 0x12F2, 45512 }, - { 0x12F3, 45851 }, - { 0x12F4, 45869 }, - { 0x12F5, 45509 }, - { 0x12F6, 45515 }, - { 0x12F7, 45875 }, - { 0x12F8, 45854 }, - { 0x12F9, 45866 }, - { 0x12FA, 45860 }, - { 0x12FB, 46436 }, - { 0x12FC, 46439 }, - { 0x12FD, 45857 }, - { 0x12FE, 45863 }, - { 0x12FF, 46445 }, - { 0x1300, 45566 }, - { 0x1301, 45578 }, - { 0x1302, 45572 }, - { 0x1303, 45968 }, - { 0x1304, 45971 }, - { 0x1305, 45569 }, - { 0x1306, 45575 }, - { 0x1307, 45977 }, - { 0x1308, 45536 }, - { 0x1309, 45548 }, - { 0x130A, 45542 }, - { 0x130B, 45896 }, - { 0x130C, 45899 }, - { 0x130D, 45539 }, - { 0x130E, 45545 }, - { 0x130F, 45917 }, - { 0x1310, 45920 }, - { 0x1312, 45926 }, - { 0x1313, 46466 }, - { 0x1314, 46469 }, - { 0x1315, 45923 }, - { 0x1318, 45902 }, - { 0x1319, 45914 }, - { 0x131A, 45908 }, - { 0x131B, 46451 }, - { 0x131C, 46454 }, - { 0x131D, 45905 }, - { 0x131E, 45911 }, - { 0x131F, 46661 }, - { 0x1320, 46247 }, - { 0x1321, 46259 }, - { 0x1322, 46253 }, - { 0x1323, 46598 }, - { 0x1324, 46601 }, - { 0x1325, 46250 }, - { 0x1326, 46256 }, - { 0x1327, 46607 }, - { 0x1328, 45830 }, - { 0x1329, 45842 }, - { 0x132A, 45836 }, - { 0x132B, 46424 }, - { 0x132C, 46427 }, - { 0x132D, 45833 }, - { 0x132E, 45839 }, - { 0x132F, 46433 }, - { 0x1330, 46094 }, - { 0x1331, 46106 }, - { 0x1332, 46100 }, - { 0x1333, 46529 }, - { 0x1334, 46532 }, - { 0x1335, 46097 }, - { 0x1336, 46103 }, - { 0x1337, 46538 }, - { 0x1338, 46265 }, - { 0x1339, 46277 }, - { 0x133A, 46271 }, - { 0x133B, 46610 }, - { 0x133C, 46613 }, - { 0x133D, 46268 }, - { 0x133E, 46274 }, - { 0x133F, 46616 }, - { 0x1340, 46283 }, - { 0x1341, 46295 }, - { 0x1342, 46289 }, - { 0x1343, 46619 }, - { 0x1344, 46622 }, - { 0x1345, 46286 }, - { 0x1346, 46292 }, - { 0x1347, 46625 }, - { 0x1348, 45521 }, - { 0x1349, 45533 }, - { 0x134A, 45527 }, - { 0x134B, 45878 }, - { 0x134C, 45881 }, - { 0x134D, 45524 }, - { 0x134E, 45530 }, - { 0x134F, 45884 }, - { 0x1350, 45641 }, - { 0x1351, 45653 }, - { 0x1352, 45647 }, - { 0x1353, 46088 }, - { 0x1354, 46091 }, - { 0x1355, 45644 }, - { 0x1356, 45650 }, - { 0x1357, 46112 }, - { 0x1358, 46181 }, - { 0x1359, 46058 }, - { 0x135A, 45893 }, - { 0x135F, 46759 }, - { 0x1360, 45470 }, - { 0x1361, 46768 }, - { 0x1362, 45358 }, - { 0x1363, 45363 }, - { 0x1364, 46766 }, - { 0x1365, 45361 }, - { 0x1366, 45467 }, - { 0x1367, 45473 }, - { 0x1368, 46763 }, - { 0x1369, 45365 }, - { 0x136A, 45371 }, - { 0x136B, 45389 }, - { 0x136C, 45377 }, - { 0x136D, 45374 }, - { 0x136E, 45368 }, - { 0x136F, 45386 }, - { 0x1370, 45383 }, - { 0x1371, 45380 }, - { 0x1372, 45433 }, - { 0x1373, 45458 }, - { 0x1374, 45455 }, - { 0x1375, 45443 }, - { 0x1376, 45440 }, - { 0x1377, 45446 }, - { 0x1378, 45464 }, - { 0x1379, 45449 }, - { 0x137A, 45452 }, - { 0x137B, 45461 }, - { 0x137C, 45436 }, - { 0x1380, 46723 }, - { 0x1381, 46055 }, - { 0x1382, 46514 }, - { 0x1383, 46052 }, - { 0x1384, 46715 }, - { 0x1385, 45806 }, - { 0x1386, 46400 }, - { 0x1387, 45803 }, - { 0x1388, 46719 }, - { 0x1389, 45890 }, - { 0x138A, 46448 }, - { 0x138B, 45887 }, - { 0x138C, 46727 }, - { 0x138D, 46118 }, - { 0x138E, 46541 }, - { 0x138F, 46115 }, - { 0x1390, 45417 }, - { 0x1391, 45396 }, - { 0x1392, 45425 }, - { 0x1393, 45412 }, - { 0x1394, 45400 }, - { 0x1395, 45408 }, - { 0x1396, 45421 }, - { 0x1397, 45404 }, - { 0x1398, 45429 }, - { 0x1399, 45392 }, - { 0x13A0, 43588 }, - { 0x13A1, 43591 }, - { 0x13A2, 43594 }, - { 0x13A3, 43597 }, - { 0x13A4, 43603 }, - { 0x13A5, 43606 }, - { 0x13A6, 43627 }, - { 0x13A7, 43663 }, - { 0x13A8, 43630 }, - { 0x13A9, 43633 }, - { 0x13AA, 43636 }, - { 0x13AB, 43639 }, - { 0x13AC, 43642 }, - { 0x13AD, 43645 }, - { 0x13AE, 43648 }, - { 0x13AF, 43651 }, - { 0x13B0, 43654 }, - { 0x13B1, 43657 }, - { 0x13B2, 43660 }, - { 0x13B3, 43666 }, - { 0x13B4, 43669 }, - { 0x13B5, 43672 }, - { 0x13B6, 43675 }, - { 0x13B7, 43678 }, - { 0x13B8, 43681 }, - { 0x13B9, 43684 }, - { 0x13BA, 43687 }, - { 0x13BB, 43690 }, - { 0x13BC, 43693 }, - { 0x13BD, 43696 }, - { 0x13BE, 43699 }, - { 0x13BF, 43783 }, - { 0x13C0, 43786 }, - { 0x13C1, 43702 }, - { 0x13C2, 43705 }, - { 0x13C3, 43708 }, - { 0x13C4, 43711 }, - { 0x13C5, 43714 }, - { 0x13C6, 43789 }, - { 0x13C7, 43792 }, - { 0x13C8, 43795 }, - { 0x13C9, 43798 }, - { 0x13CA, 43801 }, - { 0x13CB, 43804 }, - { 0x13CC, 43717 }, - { 0x13CD, 43600 }, - { 0x13CE, 43720 }, - { 0x13CF, 43723 }, - { 0x13D0, 43726 }, - { 0x13D1, 43729 }, - { 0x13D2, 43732 }, - { 0x13D3, 43609 }, - { 0x13D4, 43735 }, - { 0x13D5, 43612 }, - { 0x13D6, 43738 }, - { 0x13D7, 43615 }, - { 0x13D8, 43741 }, - { 0x13D9, 43618 }, - { 0x13DA, 43621 }, - { 0x13DB, 43624 }, - { 0x13DC, 43780 }, - { 0x13DD, 43807 }, - { 0x13DE, 43810 }, - { 0x13DF, 43813 }, - { 0x13E0, 43816 }, - { 0x13E1, 43819 }, - { 0x13E2, 43822 }, - { 0x13E3, 43825 }, - { 0x13E4, 43828 }, - { 0x13E5, 43831 }, - { 0x13E6, 43834 }, - { 0x13E7, 43837 }, - { 0x13E8, 43840 }, - { 0x13E9, 43744 }, - { 0x13EA, 43747 }, - { 0x13EB, 43750 }, - { 0x13EC, 43753 }, - { 0x13ED, 43756 }, - { 0x13EE, 43759 }, - { 0x13EF, 43762 }, - { 0x13F0, 43765 }, - { 0x13F1, 43768 }, - { 0x13F2, 43771 }, - { 0x13F3, 43774 }, - { 0x13F4, 43777 }, - { 0x1401, 41317 }, - { 0x1402, 41563 }, - { 0x1403, 41323 }, - { 0x1404, 41398 }, - { 0x1405, 41338 }, - { 0x1406, 41470 }, - { 0x1407, 42235 }, - { 0x1408, 42303 }, - { 0x1409, 42287 }, - { 0x140A, 41311 }, - { 0x140B, 41359 }, - { 0x140C, 41542 }, - { 0x140D, 43236 }, - { 0x140E, 41545 }, - { 0x140F, 43240 }, - { 0x1410, 41837 }, - { 0x1411, 43372 }, - { 0x1412, 41548 }, - { 0x1413, 43244 }, - { 0x1414, 41840 }, - { 0x1415, 43376 }, - { 0x1416, 43000 }, - { 0x1417, 41539 }, - { 0x1418, 43232 }, - { 0x1419, 41834 }, - { 0x141A, 43368 }, - { 0x141B, 42996 }, - { 0x141C, 41362 }, - { 0x141D, 42231 }, - { 0x141E, 42984 }, - { 0x141F, 42088 }, - { 0x1420, 42092 }, - { 0x1421, 42108 }, - { 0x1422, 42069 }, - { 0x1423, 42096 }, - { 0x1424, 42084 }, - { 0x1425, 42114 }, - { 0x1426, 42119 }, - { 0x1427, 42126 }, - { 0x1428, 42102 }, - { 0x1429, 42080 }, - { 0x142A, 42075 }, - { 0x142B, 41380 }, - { 0x142C, 41401 }, - { 0x142D, 41467 }, - { 0x142E, 41365 }, - { 0x142F, 41476 }, - { 0x1430, 41958 }, - { 0x1431, 41479 }, - { 0x1432, 41702 }, - { 0x1433, 41482 }, - { 0x1434, 41705 }, - { 0x1435, 42259 }, - { 0x1436, 42631 }, - { 0x1437, 42327 }, - { 0x1438, 41473 }, - { 0x1439, 41699 }, - { 0x143A, 41711 }, - { 0x143B, 43324 }, - { 0x143C, 41714 }, - { 0x143D, 43328 }, - { 0x143E, 41964 }, - { 0x143F, 43456 }, - { 0x1440, 41717 }, - { 0x1441, 43332 }, - { 0x1442, 41967 }, - { 0x1443, 43460 }, - { 0x1444, 41708 }, - { 0x1445, 43320 }, - { 0x1446, 41961 }, - { 0x1447, 43452 }, - { 0x1448, 42275 }, - { 0x1449, 41341 }, - { 0x144A, 43192 }, - { 0x144B, 42283 }, - { 0x144C, 41527 }, - { 0x144D, 42012 }, - { 0x144E, 41533 }, - { 0x144F, 41789 }, - { 0x1450, 41536 }, - { 0x1451, 41792 }, - { 0x1452, 42267 }, - { 0x1453, 42563 }, - { 0x1454, 42299 }, - { 0x1455, 41524 }, - { 0x1456, 41774 }, - { 0x1457, 41813 }, - { 0x1458, 43356 }, - { 0x1459, 41816 }, - { 0x145A, 43360 }, - { 0x145B, 42051 }, - { 0x145C, 43500 }, - { 0x145D, 41819 }, - { 0x145E, 43364 }, - { 0x145F, 42054 }, - { 0x1460, 43504 }, - { 0x1461, 41810 }, - { 0x1462, 43352 }, - { 0x1463, 42048 }, - { 0x1464, 43496 }, - { 0x1465, 43040 }, - { 0x1466, 41353 }, - { 0x1467, 41798 }, - { 0x1468, 41804 }, - { 0x1469, 41807 }, - { 0x146A, 41795 }, - { 0x146B, 41407 }, - { 0x146C, 41886 }, - { 0x146D, 41410 }, - { 0x146E, 41603 }, - { 0x146F, 41413 }, - { 0x1470, 41606 }, - { 0x1471, 42243 }, - { 0x1472, 41404 }, - { 0x1473, 41600 }, - { 0x1474, 41612 }, - { 0x1475, 43268 }, - { 0x1476, 41615 }, - { 0x1477, 43272 }, - { 0x1478, 41892 }, - { 0x1479, 43416 }, - { 0x147A, 41618 }, - { 0x147B, 43276 }, - { 0x147C, 41895 }, - { 0x147D, 43420 }, - { 0x147E, 41609 }, - { 0x147F, 43264 }, - { 0x1480, 41889 }, - { 0x1481, 43412 }, - { 0x1482, 43008 }, - { 0x1483, 41326 }, - { 0x1484, 41416 }, - { 0x1485, 43576 }, - { 0x1486, 43580 }, - { 0x1487, 43584 }, - { 0x1488, 43572 }, - { 0x1489, 41371 }, - { 0x148A, 41864 }, - { 0x148B, 41374 }, - { 0x148C, 41573 }, - { 0x148D, 41377 }, - { 0x148E, 41576 }, - { 0x148F, 42239 }, - { 0x1490, 41368 }, - { 0x1491, 41566 }, - { 0x1492, 41582 }, - { 0x1493, 43252 }, - { 0x1494, 41585 }, - { 0x1495, 43256 }, - { 0x1496, 41870 }, - { 0x1497, 43400 }, - { 0x1498, 41588 }, - { 0x1499, 43260 }, - { 0x149A, 41873 }, - { 0x149B, 43404 }, - { 0x149C, 41579 }, - { 0x149D, 43248 }, - { 0x149E, 41867 }, - { 0x149F, 43396 }, - { 0x14A0, 43004 }, - { 0x14A1, 41314 }, - { 0x14A2, 42207 }, - { 0x14A3, 41437 }, - { 0x14A4, 41919 }, - { 0x14A5, 41443 }, - { 0x14A6, 41654 }, - { 0x14A7, 41446 }, - { 0x14A8, 41657 }, - { 0x14A9, 42251 }, - { 0x14AA, 41434 }, - { 0x14AB, 41651 }, - { 0x14AC, 41663 }, - { 0x14AD, 43300 }, - { 0x14AE, 41666 }, - { 0x14AF, 43304 }, - { 0x14B0, 41925 }, - { 0x14B1, 43440 }, - { 0x14B2, 41669 }, - { 0x14B3, 43308 }, - { 0x14B4, 41928 }, - { 0x14B5, 43444 }, - { 0x14B6, 41660 }, - { 0x14B7, 43296 }, - { 0x14B8, 41922 }, - { 0x14B9, 43436 }, - { 0x14BA, 43012 }, - { 0x14BB, 41332 }, - { 0x14BC, 43188 }, - { 0x14BD, 41440 }, - { 0x14BE, 43536 }, - { 0x14BF, 42179 }, - { 0x14C0, 41452 }, - { 0x14C1, 41931 }, - { 0x14C2, 41461 }, - { 0x14C3, 41684 }, - { 0x14C4, 41464 }, - { 0x14C5, 41690 }, - { 0x14C6, 42255 }, - { 0x14C7, 41449 }, - { 0x14C8, 41672 }, - { 0x14C9, 41696 }, - { 0x14CA, 43316 }, - { 0x14CB, 41693 }, - { 0x14CC, 43312 }, - { 0x14CD, 41955 }, - { 0x14CE, 43448 }, - { 0x14CF, 43016 }, - { 0x14D0, 41335 }, - { 0x14D1, 42403 }, - { 0x14D2, 41458 }, - { 0x14D3, 41422 }, - { 0x14D4, 41898 }, - { 0x14D5, 41428 }, - { 0x14D6, 41633 }, - { 0x14D7, 41431 }, - { 0x14D8, 41636 }, - { 0x14D9, 42247 }, - { 0x14DA, 41419 }, - { 0x14DB, 41621 }, - { 0x14DC, 41642 }, - { 0x14DD, 43284 }, - { 0x14DE, 41645 }, - { 0x14DF, 43288 }, - { 0x14E0, 41913 }, - { 0x14E1, 43428 }, - { 0x14E2, 41648 }, - { 0x14E3, 43292 }, - { 0x14E4, 41916 }, - { 0x14E5, 43432 }, - { 0x14E6, 41639 }, - { 0x14E7, 43280 }, - { 0x14E8, 41910 }, - { 0x14E9, 43424 }, - { 0x14EA, 41329 }, - { 0x14EB, 43184 }, - { 0x14EC, 42155 }, - { 0x14ED, 41509 }, - { 0x14EE, 41979 }, - { 0x14EF, 41515 }, - { 0x14F0, 41756 }, - { 0x14F1, 41518 }, - { 0x14F2, 41759 }, - { 0x14F3, 42263 }, - { 0x14F4, 41506 }, - { 0x14F5, 41741 }, - { 0x14F6, 41765 }, - { 0x14F7, 43340 }, - { 0x14F8, 41768 }, - { 0x14F9, 43344 }, - { 0x14FA, 42006 }, - { 0x14FB, 43488 }, - { 0x14FC, 41771 }, - { 0x14FD, 43348 }, - { 0x14FE, 42009 }, - { 0x14FF, 43492 }, - { 0x1500, 41762 }, - { 0x1501, 43336 }, - { 0x1502, 42003 }, - { 0x1503, 43484 }, - { 0x1504, 43036 }, - { 0x1505, 41350 }, - { 0x1506, 43540 }, - { 0x1507, 41521 }, - { 0x1508, 43132 }, - { 0x1509, 43548 }, - { 0x150A, 42992 }, - { 0x150B, 42988 }, - { 0x150C, 43028 }, - { 0x150D, 43032 }, - { 0x150E, 43024 }, - { 0x150F, 43020 }, - { 0x1510, 41747 }, - { 0x1511, 41750 }, - { 0x1512, 41985 }, - { 0x1513, 41753 }, - { 0x1514, 41988 }, - { 0x1515, 41744 }, - { 0x1516, 41982 }, - { 0x1517, 41994 }, - { 0x1518, 43472 }, - { 0x1519, 41997 }, - { 0x151A, 43476 }, - { 0x151B, 42146 }, - { 0x151C, 43524 }, - { 0x151D, 42000 }, - { 0x151E, 43480 }, - { 0x151F, 42149 }, - { 0x1520, 43528 }, - { 0x1521, 41991 }, - { 0x1522, 43468 }, - { 0x1523, 42143 }, - { 0x1524, 43520 }, - { 0x1525, 41512 }, - { 0x1526, 41554 }, - { 0x1527, 42057 }, - { 0x1528, 41557 }, - { 0x1529, 41846 }, - { 0x152A, 41560 }, - { 0x152B, 41849 }, - { 0x152C, 42271 }, - { 0x152D, 41551 }, - { 0x152E, 41843 }, - { 0x152F, 41855 }, - { 0x1530, 43384 }, - { 0x1531, 41858 }, - { 0x1532, 43388 }, - { 0x1533, 42063 }, - { 0x1534, 43512 }, - { 0x1535, 41861 }, - { 0x1536, 43392 }, - { 0x1537, 42066 }, - { 0x1538, 43516 }, - { 0x1539, 41852 }, - { 0x153A, 43380 }, - { 0x153B, 42060 }, - { 0x153C, 43508 }, - { 0x153D, 43044 }, - { 0x153E, 41356 }, - { 0x153F, 43544 }, - { 0x1540, 43200 }, - { 0x1541, 42211 }, - { 0x1542, 41497 }, - { 0x1543, 42175 }, - { 0x1544, 43208 }, - { 0x1545, 41973 }, - { 0x1546, 41500 }, - { 0x1547, 41735 }, - { 0x1548, 41503 }, - { 0x1549, 41738 }, - { 0x154A, 43212 }, - { 0x154B, 41494 }, - { 0x154C, 41732 }, - { 0x154D, 43204 }, - { 0x154E, 41976 }, - { 0x154F, 43464 }, - { 0x1550, 41347 }, - { 0x1551, 43196 }, - { 0x1552, 42159 }, - { 0x1553, 41386 }, - { 0x1554, 41876 }, - { 0x1555, 41389 }, - { 0x1556, 41594 }, - { 0x1557, 41392 }, - { 0x1558, 41597 }, - { 0x1559, 41383 }, - { 0x155A, 41591 }, - { 0x155B, 41883 }, - { 0x155C, 43408 }, - { 0x155D, 41320 }, - { 0x155E, 41780 }, - { 0x155F, 42163 }, - { 0x1560, 41783 }, - { 0x1561, 42167 }, - { 0x1562, 42018 }, - { 0x1563, 42171 }, - { 0x1564, 41786 }, - { 0x1565, 42021 }, - { 0x1566, 41777 }, - { 0x1567, 42015 }, - { 0x1568, 42152 }, - { 0x1569, 43532 }, - { 0x156A, 41530 }, - { 0x156B, 42039 }, - { 0x156C, 42042 }, - { 0x156D, 42045 }, - { 0x156E, 42036 }, - { 0x156F, 41801 }, - { 0x1570, 41825 }, - { 0x1571, 41828 }, - { 0x1572, 41831 }, - { 0x1573, 41822 }, - { 0x1574, 43056 }, - { 0x1575, 43060 }, - { 0x1576, 43072 }, - { 0x1577, 43064 }, - { 0x1578, 43076 }, - { 0x1579, 43052 }, - { 0x157A, 43068 }, - { 0x157B, 43048 }, - { 0x157C, 43080 }, - { 0x157D, 41395 }, - { 0x157E, 41970 }, - { 0x157F, 41488 }, - { 0x1580, 41726 }, - { 0x1581, 41491 }, - { 0x1582, 41729 }, - { 0x1583, 41485 }, - { 0x1584, 41720 }, - { 0x1585, 41344 }, - { 0x1586, 42027 }, - { 0x1587, 42030 }, - { 0x1588, 42033 }, - { 0x1589, 42024 }, - { 0x158A, 43220 }, - { 0x158B, 43224 }, - { 0x158C, 43228 }, - { 0x158D, 43216 }, - { 0x158E, 42131 }, - { 0x158F, 41678 }, - { 0x1590, 41940 }, - { 0x1591, 41681 }, - { 0x1592, 41943 }, - { 0x1593, 41675 }, - { 0x1594, 41934 }, - { 0x1595, 41455 }, - { 0x1596, 41687 }, - { 0x1597, 42219 }, - { 0x1598, 42223 }, - { 0x1599, 42227 }, - { 0x159A, 42215 }, - { 0x159B, 43560 }, - { 0x159C, 43564 }, - { 0x159D, 43568 }, - { 0x159E, 43556 }, - { 0x159F, 43552 }, - { 0x15A0, 41627 }, - { 0x15A1, 41904 }, - { 0x15A2, 41630 }, - { 0x15A3, 41907 }, - { 0x15A4, 41624 }, - { 0x15A5, 41901 }, - { 0x15A6, 41425 }, - { 0x15A7, 43092 }, - { 0x15A8, 43096 }, - { 0x15A9, 43108 }, - { 0x15AA, 43100 }, - { 0x15AB, 43112 }, - { 0x15AC, 43088 }, - { 0x15AD, 43104 }, - { 0x15AE, 43084 }, - { 0x15AF, 42279 }, - { 0x15B0, 43120 }, - { 0x15B1, 43124 }, - { 0x15B2, 43128 }, - { 0x15B3, 43116 }, - { 0x15B4, 43172 }, - { 0x15B5, 43176 }, - { 0x15B6, 43180 }, - { 0x15B7, 43168 }, - { 0x15B8, 43156 }, - { 0x15B9, 43160 }, - { 0x15BA, 43164 }, - { 0x15BB, 43152 }, - { 0x15BC, 43140 }, - { 0x15BD, 43144 }, - { 0x15BE, 43148 }, - { 0x15BF, 43136 }, - { 0x15C0, 42187 }, - { 0x15C1, 42191 }, - { 0x15C2, 42195 }, - { 0x15C3, 42183 }, - { 0x15C4, 42627 }, - { 0x15C5, 42623 }, - { 0x15C6, 42615 }, - { 0x15C7, 42887 }, - { 0x15C8, 42619 }, - { 0x15C9, 42611 }, - { 0x15CA, 42455 }, - { 0x15CB, 42451 }, - { 0x15CC, 42443 }, - { 0x15CD, 42755 }, - { 0x15CE, 42447 }, - { 0x15CF, 42439 }, - { 0x15D0, 42499 }, - { 0x15D1, 42495 }, - { 0x15D2, 42487 }, - { 0x15D3, 42863 }, - { 0x15D4, 42491 }, - { 0x15D5, 42483 }, - { 0x15D6, 42651 }, - { 0x15D7, 42647 }, - { 0x15D8, 42639 }, - { 0x15D9, 42891 }, - { 0x15DA, 42643 }, - { 0x15DB, 42635 }, - { 0x15DC, 42799 }, - { 0x15DD, 42795 }, - { 0x15DE, 42787 }, - { 0x15DF, 42915 }, - { 0x15E0, 42791 }, - { 0x15E1, 42783 }, - { 0x15E2, 42859 }, - { 0x15E3, 42855 }, - { 0x15E4, 42847 }, - { 0x15E5, 42947 }, - { 0x15E6, 42851 }, - { 0x15E7, 42843 }, - { 0x15E8, 42435 }, - { 0x15E9, 42431 }, - { 0x15EA, 42423 }, - { 0x15EB, 42751 }, - { 0x15EC, 42427 }, - { 0x15ED, 42419 }, - { 0x15EE, 42291 }, - { 0x15EF, 42323 }, - { 0x15F0, 42319 }, - { 0x15F1, 42311 }, - { 0x15F2, 42607 }, - { 0x15F3, 42315 }, - { 0x15F4, 42307 }, - { 0x15F5, 42695 }, - { 0x15F6, 42691 }, - { 0x15F7, 42683 }, - { 0x15F8, 42899 }, - { 0x15F9, 42687 }, - { 0x15FA, 42679 }, - { 0x15FB, 42715 }, - { 0x15FC, 42711 }, - { 0x15FD, 42703 }, - { 0x15FE, 42903 }, - { 0x15FF, 42707 }, - { 0x1600, 42699 }, - { 0x1601, 42351 }, - { 0x1602, 42415 }, - { 0x1603, 42411 }, - { 0x1604, 42399 }, - { 0x1605, 42747 }, - { 0x1606, 42407 }, - { 0x1607, 42395 }, - { 0x1608, 42391 }, - { 0x1609, 42387 }, - { 0x160A, 42379 }, - { 0x160B, 42743 }, - { 0x160C, 42383 }, - { 0x160D, 42375 }, - { 0x160E, 42519 }, - { 0x160F, 42515 }, - { 0x1610, 42507 }, - { 0x1611, 42867 }, - { 0x1612, 42511 }, - { 0x1613, 42503 }, - { 0x1614, 42347 }, - { 0x1615, 42203 }, - { 0x1616, 42343 }, - { 0x1617, 42335 }, - { 0x1618, 42655 }, - { 0x1619, 42339 }, - { 0x161A, 42199 }, - { 0x161B, 42331 }, - { 0x161C, 42675 }, - { 0x161D, 42671 }, - { 0x161E, 42663 }, - { 0x161F, 42895 }, - { 0x1620, 42667 }, - { 0x1621, 42659 }, - { 0x1622, 42371 }, - { 0x1623, 42367 }, - { 0x1624, 42359 }, - { 0x1625, 42719 }, - { 0x1626, 42363 }, - { 0x1627, 42355 }, - { 0x1628, 42583 }, - { 0x1629, 42579 }, - { 0x162A, 42571 }, - { 0x162B, 42879 }, - { 0x162C, 42575 }, - { 0x162D, 42567 }, - { 0x162E, 42739 }, - { 0x162F, 42735 }, - { 0x1630, 42727 }, - { 0x1631, 42907 }, - { 0x1632, 42731 }, - { 0x1633, 42723 }, - { 0x1634, 42939 }, - { 0x1635, 42935 }, - { 0x1636, 42927 }, - { 0x1637, 42971 }, - { 0x1638, 42931 }, - { 0x1639, 42923 }, - { 0x163A, 42819 }, - { 0x163B, 42815 }, - { 0x163C, 42807 }, - { 0x163D, 42919 }, - { 0x163E, 42811 }, - { 0x163F, 42803 }, - { 0x1640, 42539 }, - { 0x1641, 42535 }, - { 0x1642, 42527 }, - { 0x1643, 42871 }, - { 0x1644, 42531 }, - { 0x1645, 42523 }, - { 0x1646, 42295 }, - { 0x1647, 42979 }, - { 0x1648, 42603 }, - { 0x1649, 42599 }, - { 0x164A, 42591 }, - { 0x164B, 42883 }, - { 0x164C, 42595 }, - { 0x164D, 42587 }, - { 0x164E, 42479 }, - { 0x164F, 42475 }, - { 0x1650, 42463 }, - { 0x1651, 42759 }, - { 0x1652, 42471 }, - { 0x1653, 42459 }, - { 0x1654, 42779 }, - { 0x1655, 42775 }, - { 0x1656, 42767 }, - { 0x1657, 42911 }, - { 0x1658, 42771 }, - { 0x1659, 42763 }, - { 0x165A, 42467 }, - { 0x165B, 42839 }, - { 0x165C, 42835 }, - { 0x165D, 42827 }, - { 0x165E, 42943 }, - { 0x165F, 42831 }, - { 0x1660, 42823 }, - { 0x1661, 42559 }, - { 0x1662, 42555 }, - { 0x1663, 42547 }, - { 0x1664, 42875 }, - { 0x1665, 42551 }, - { 0x1666, 42543 }, - { 0x1667, 42967 }, - { 0x1668, 42963 }, - { 0x1669, 42955 }, - { 0x166A, 42975 }, - { 0x166B, 42959 }, - { 0x166C, 42951 }, - { 0x166D, 41569 }, - { 0x166E, 41879 }, - { 0x166F, 41723 }, - { 0x1670, 41937 }, - { 0x1671, 41949 }, - { 0x1672, 42137 }, - { 0x1673, 41952 }, - { 0x1674, 42140 }, - { 0x1675, 41946 }, - { 0x1676, 42134 }, - { 0x1680, 18905 }, - { 0x1681, 18950 }, - { 0x1682, 18932 }, - { 0x1683, 18956 }, - { 0x1684, 18944 }, - { 0x1685, 18938 }, - { 0x1686, 18947 }, - { 0x1687, 18923 }, - { 0x1688, 18962 }, - { 0x1689, 18920 }, - { 0x168A, 18953 }, - { 0x168B, 18935 }, - { 0x168C, 18926 }, - { 0x168D, 18977 }, - { 0x168E, 18965 }, - { 0x168F, 18941 }, - { 0x1690, 18917 }, - { 0x1691, 18914 }, - { 0x1692, 18911 }, - { 0x1693, 18971 }, - { 0x1694, 18974 }, - { 0x1695, 18968 }, - { 0x1696, 18908 }, - { 0x1697, 18980 }, - { 0x1698, 18929 }, - { 0x1699, 18983 }, - { 0x169A, 18959 }, - { 0x169B, 18986 }, - { 0x169C, 18989 }, - { 0x16A0, 19675 }, - { 0x16A1, 19613 }, - { 0x16A2, 19703 }, - { 0x16A3, 19642 }, - { 0x16A4, 19622 }, - { 0x16A5, 19616 }, - { 0x16A6, 19821 }, - { 0x16A7, 19654 }, - { 0x16A8, 19712 }, - { 0x16A9, 19638 }, - { 0x16AA, 19628 }, - { 0x16AB, 19669 }, - { 0x16AC, 19855 }, - { 0x16AD, 19843 }, - { 0x16AE, 19607 }, - { 0x16AF, 19632 }, - { 0x16B0, 19635 }, - { 0x16B1, 19740 }, - { 0x16B2, 19737 }, - { 0x16B3, 19645 }, - { 0x16B4, 19696 }, - { 0x16B5, 19604 }, - { 0x16B6, 19651 }, - { 0x16B7, 19681 }, - { 0x16B8, 19657 }, - { 0x16B9, 19757 }, - { 0x16BA, 19762 }, - { 0x16BB, 19729 }, - { 0x16BC, 19875 }, - { 0x16BD, 19871 }, - { 0x16BE, 19780 }, - { 0x16BF, 19863 }, - { 0x16C0, 19815 }, - { 0x16C1, 19686 }, - { 0x16C2, 19601 }, - { 0x16C3, 19733 }, - { 0x16C4, 19660 }, - { 0x16C5, 19836 }, - { 0x16C6, 19829 }, - { 0x16C7, 19692 }, - { 0x16C8, 19789 }, - { 0x16C9, 19708 }, - { 0x16CA, 19794 }, - { 0x16CB, 19746 }, - { 0x16CC, 19847 }, - { 0x16CD, 19595 }, - { 0x16CE, 19625 }, - { 0x16CF, 19751 }, - { 0x16D0, 19851 }, - { 0x16D1, 19598 }, - { 0x16D2, 19806 }, - { 0x16D3, 19879 }, - { 0x16D4, 19818 }, - { 0x16D5, 19786 }, - { 0x16D6, 19724 }, - { 0x16D7, 19775 }, - { 0x16D8, 19867 }, - { 0x16D9, 19859 }, - { 0x16DA, 19769 }, - { 0x16DB, 19812 }, - { 0x16DC, 19766 }, - { 0x16DD, 19663 }, - { 0x16DE, 19719 }, - { 0x16DF, 19801 }, - { 0x16E0, 19648 }, - { 0x16E1, 19666 }, - { 0x16E2, 19798 }, - { 0x16E3, 19672 }, - { 0x16E4, 19716 }, - { 0x16E5, 19700 }, - { 0x16E6, 19840 }, - { 0x16E7, 19833 }, - { 0x16E8, 19826 }, - { 0x16E9, 19610 }, - { 0x16EA, 19619 }, - { 0x16EB, 19883 }, - { 0x16EC, 19889 }, - { 0x16ED, 19589 }, - { 0x16EE, 19592 }, - { 0x16EF, 19892 }, - { 0x16F0, 19886 }, - { 0x1700, 39076 }, - { 0x1701, 39079 }, - { 0x1702, 39082 }, - { 0x1703, 39097 }, - { 0x1704, 39091 }, - { 0x1705, 39124 }, - { 0x1706, 39115 }, - { 0x1707, 39088 }, - { 0x1708, 39106 }, - { 0x1709, 39109 }, - { 0x170A, 39085 }, - { 0x170B, 39103 }, - { 0x170C, 39121 }, - { 0x170E, 39100 }, - { 0x170F, 39118 }, - { 0x1710, 39112 }, - { 0x1711, 39094 }, - { 0x1712, 39068 }, - { 0x1713, 39072 }, - { 0x1714, 39065 }, - { 0x1720, 36648 }, - { 0x1721, 36651 }, - { 0x1722, 36654 }, - { 0x1723, 36669 }, - { 0x1724, 36663 }, - { 0x1725, 36699 }, - { 0x1726, 36690 }, - { 0x1727, 36660 }, - { 0x1728, 36678 }, - { 0x1729, 36681 }, - { 0x172A, 36657 }, - { 0x172B, 36675 }, - { 0x172C, 36696 }, - { 0x172D, 36684 }, - { 0x172E, 36672 }, - { 0x172F, 36693 }, - { 0x1730, 36687 }, - { 0x1731, 36666 }, - { 0x1732, 36640 }, - { 0x1733, 36644 }, - { 0x1734, 36637 }, - { 0x1735, 61999 }, - { 0x1736, 61996 }, - { 0x1740, 8845 }, - { 0x1741, 8848 }, - { 0x1742, 8851 }, - { 0x1743, 8866 }, - { 0x1744, 8860 }, - { 0x1745, 8896 }, - { 0x1746, 8887 }, - { 0x1747, 8857 }, - { 0x1748, 8875 }, - { 0x1749, 8878 }, - { 0x174A, 8854 }, - { 0x174B, 8872 }, - { 0x174C, 8893 }, - { 0x174D, 8881 }, - { 0x174E, 8869 }, - { 0x174F, 8890 }, - { 0x1750, 8884 }, - { 0x1751, 8863 }, - { 0x1752, 8837 }, - { 0x1753, 8841 }, - { 0x1760, 50442 }, - { 0x1761, 50445 }, - { 0x1762, 50448 }, - { 0x1763, 50460 }, - { 0x1764, 50457 }, - { 0x1765, 50487 }, - { 0x1766, 50478 }, - { 0x1767, 50454 }, - { 0x1768, 50469 }, - { 0x1769, 50472 }, - { 0x176A, 50451 }, - { 0x176B, 50466 }, - { 0x176C, 50484 }, - { 0x176E, 50463 }, - { 0x176F, 50481 }, - { 0x1770, 50475 }, - { 0x1772, 50434 }, - { 0x1773, 50438 }, - { 0x1780, 12347 }, - { 0x1781, 12395 }, - { 0x1782, 12350 }, - { 0x1783, 12398 }, - { 0x1784, 12401 }, - { 0x1785, 12332 }, - { 0x1786, 12389 }, - { 0x1787, 12335 }, - { 0x1788, 12392 }, - { 0x1789, 12407 }, - { 0x178A, 12338 }, - { 0x178B, 12428 }, - { 0x178C, 12341 }, - { 0x178D, 12431 }, - { 0x178E, 12404 }, - { 0x178F, 12377 }, - { 0x1790, 12422 }, - { 0x1791, 12380 }, - { 0x1792, 12425 }, - { 0x1793, 12362 }, - { 0x1794, 12329 }, - { 0x1795, 12410 }, - { 0x1796, 12365 }, - { 0x1797, 12413 }, - { 0x1798, 12359 }, - { 0x1799, 12386 }, - { 0x179A, 12371 }, - { 0x179B, 12356 }, - { 0x179C, 12383 }, - { 0x179D, 12416 }, - { 0x179E, 12419 }, - { 0x179F, 12374 }, - { 0x17A0, 12344 }, - { 0x17A1, 12353 }, - { 0x17A2, 12368 }, - { 0x17A3, 12646 }, - { 0x17A4, 12638 }, - { 0x17A5, 12622 }, - { 0x17A6, 12654 }, - { 0x17A7, 12626 }, - { 0x17A8, 12670 }, - { 0x17A9, 12674 }, - { 0x17AA, 12682 }, - { 0x17AB, 12630 }, - { 0x17AC, 12678 }, - { 0x17AD, 12614 }, - { 0x17AE, 12634 }, - { 0x17AF, 12618 }, - { 0x17B0, 12642 }, - { 0x17B1, 12658 }, - { 0x17B2, 12664 }, - { 0x17B3, 12650 }, - { 0x17B4, 12325 }, - { 0x17B5, 12321 }, - { 0x17B6, 12273 }, - { 0x17B7, 12261 }, - { 0x17B8, 12293 }, - { 0x17B9, 12269 }, - { 0x17BA, 12317 }, - { 0x17BB, 12265 }, - { 0x17BC, 12309 }, - { 0x17BD, 12305 }, - { 0x17BE, 12297 }, - { 0x17BF, 12313 }, - { 0x17C0, 12289 }, - { 0x17C1, 12257 }, - { 0x17C2, 12277 }, - { 0x17C3, 12281 }, - { 0x17C4, 12301 }, - { 0x17C5, 12285 }, - { 0x17C6, 12197 }, - { 0x17C7, 12200 }, - { 0x17C8, 12224 }, - { 0x17C9, 12215 }, - { 0x17CA, 12203 }, - { 0x17CB, 12169 }, - { 0x17CC, 12166 }, - { 0x17CD, 12218 }, - { 0x17CE, 12191 }, - { 0x17CF, 12160 }, - { 0x17D0, 12184 }, - { 0x17D1, 12188 }, - { 0x17D2, 12163 }, - { 0x17D3, 12212 }, - { 0x17D4, 12157 }, - { 0x17D5, 12209 }, - { 0x17D6, 12175 }, - { 0x17D7, 12153 }, - { 0x17D8, 12172 }, - { 0x17D9, 12180 }, - { 0x17DA, 12194 }, - { 0x17DB, 12610 }, - { 0x17DC, 12221 }, - { 0x17DD, 12206 }, - { 0x17E0, 12245 }, - { 0x17E1, 12227 }, - { 0x17E2, 12233 }, - { 0x17E3, 12254 }, - { 0x17E4, 12239 }, - { 0x17E5, 12236 }, - { 0x17E6, 12230 }, - { 0x17E7, 12251 }, - { 0x17E8, 12248 }, - { 0x17E9, 12242 }, - { 0x17F0, 12460 }, - { 0x17F1, 12470 }, - { 0x17F2, 12455 }, - { 0x17F3, 12450 }, - { 0x17F4, 12465 }, - { 0x17F5, 12475 }, - { 0x17F6, 12495 }, - { 0x17F7, 12485 }, - { 0x17F8, 12480 }, - { 0x17F9, 12490 }, - { 0x1800, 59449 }, - { 0x1801, 60047 }, - { 0x1802, 59453 }, - { 0x1803, 59437 }, - { 0x1804, 59451 }, - { 0x1805, 59419 }, - { 0x1806, 59445 }, - { 0x1807, 59440 }, - { 0x1808, 60042 }, - { 0x1809, 60038 }, - { 0x180A, 60045 }, - { 0x180B, 59422 }, - { 0x180C, 59427 }, - { 0x180D, 59432 }, - { 0x180E, 59485 }, - { 0x1810, 59473 }, - { 0x1811, 59455 }, - { 0x1812, 59461 }, - { 0x1813, 59482 }, - { 0x1814, 59467 }, - { 0x1815, 59464 }, - { 0x1816, 59458 }, - { 0x1817, 59479 }, - { 0x1818, 59476 }, - { 0x1819, 59470 }, - { 0x1820, 59488 }, - { 0x1821, 59491 }, - { 0x1822, 59494 }, - { 0x1823, 59497 }, - { 0x1824, 59500 }, - { 0x1825, 59533 }, - { 0x1826, 59551 }, - { 0x1827, 59509 }, - { 0x1828, 59530 }, - { 0x1829, 59704 }, - { 0x182A, 59503 }, - { 0x182B, 59536 }, - { 0x182C, 59539 }, - { 0x182D, 59515 }, - { 0x182E, 59527 }, - { 0x182F, 59524 }, - { 0x1830, 59545 }, - { 0x1831, 59722 }, - { 0x1832, 59548 }, - { 0x1833, 59506 }, - { 0x1834, 59707 }, - { 0x1835, 59518 }, - { 0x1836, 59557 }, - { 0x1837, 59542 }, - { 0x1838, 59554 }, - { 0x1839, 59512 }, - { 0x183A, 59521 }, - { 0x183B, 59716 }, - { 0x183C, 59725 }, - { 0x183D, 59560 }, - { 0x183E, 59713 }, - { 0x183F, 59731 }, - { 0x1840, 59719 }, - { 0x1841, 59728 }, - { 0x1842, 59710 }, - { 0x1843, 59934 }, - { 0x1844, 59822 }, - { 0x1845, 59826 }, - { 0x1846, 59830 }, - { 0x1847, 59834 }, - { 0x1848, 59862 }, - { 0x1849, 59878 }, - { 0x184A, 59902 }, - { 0x184B, 59838 }, - { 0x184C, 59866 }, - { 0x184D, 59870 }, - { 0x184E, 59846 }, - { 0x184F, 59858 }, - { 0x1850, 59874 }, - { 0x1851, 59842 }, - { 0x1852, 59906 }, - { 0x1853, 59850 }, - { 0x1854, 59930 }, - { 0x1855, 59886 }, - { 0x1856, 59882 }, - { 0x1857, 59854 }, - { 0x1858, 59914 }, - { 0x1859, 59918 }, - { 0x185A, 59922 }, - { 0x185B, 59926 }, - { 0x185C, 59910 }, - { 0x185D, 59734 }, - { 0x185E, 59738 }, - { 0x185F, 59762 }, - { 0x1860, 59782 }, - { 0x1861, 59742 }, - { 0x1862, 59790 }, - { 0x1863, 59770 }, - { 0x1864, 59754 }, - { 0x1865, 59758 }, - { 0x1866, 59774 }, - { 0x1867, 59810 }, - { 0x1868, 59778 }, - { 0x1869, 59746 }, - { 0x186A, 59766 }, - { 0x186B, 59750 }, - { 0x186C, 59798 }, - { 0x186D, 59802 }, - { 0x186E, 59814 }, - { 0x186F, 59786 }, - { 0x1870, 59806 }, - { 0x1871, 59794 }, - { 0x1872, 59818 }, - { 0x1873, 59940 }, - { 0x1874, 59948 }, - { 0x1875, 59952 }, - { 0x1876, 59944 }, - { 0x1877, 60034 }, - { 0x1880, 59692 }, - { 0x1881, 59686 }, - { 0x1882, 59671 }, - { 0x1883, 59681 }, - { 0x1884, 59698 }, - { 0x1885, 59666 }, - { 0x1886, 59660 }, - { 0x1887, 59563 }, - { 0x1888, 59568 }, - { 0x1889, 59588 }, - { 0x188A, 59613 }, - { 0x188B, 59578 }, - { 0x188C, 59633 }, - { 0x188D, 59655 }, - { 0x188E, 59608 }, - { 0x188F, 59618 }, - { 0x1890, 59598 }, - { 0x1891, 59583 }, - { 0x1892, 59593 }, - { 0x1893, 59623 }, - { 0x1894, 59628 }, - { 0x1895, 59638 }, - { 0x1896, 59603 }, - { 0x1897, 59573 }, - { 0x1898, 59890 }, - { 0x1899, 59896 }, - { 0x189A, 59992 }, - { 0x189B, 60004 }, - { 0x189C, 59956 }, - { 0x189D, 59998 }, - { 0x189E, 60016 }, - { 0x189F, 60028 }, - { 0x18A0, 59962 }, - { 0x18A1, 59986 }, - { 0x18A2, 60010 }, - { 0x18A3, 59980 }, - { 0x18A4, 60022 }, - { 0x18A5, 59968 }, - { 0x18A6, 59643 }, - { 0x18A7, 59649 }, - { 0x18A8, 59974 }, - { 0x18A9, 59676 }, - { 0x1900, 18627 }, - { 0x1901, 18543 }, - { 0x1902, 18588 }, - { 0x1903, 18534 }, - { 0x1904, 18582 }, - { 0x1905, 18591 }, - { 0x1906, 18528 }, - { 0x1907, 18576 }, - { 0x1908, 18540 }, - { 0x1909, 18585 }, - { 0x190A, 18606 }, - { 0x190B, 18564 }, - { 0x190C, 18603 }, - { 0x190D, 18531 }, - { 0x190E, 18579 }, - { 0x190F, 18552 }, - { 0x1910, 18555 }, - { 0x1911, 18594 }, - { 0x1912, 18525 }, - { 0x1913, 18573 }, - { 0x1914, 18549 }, - { 0x1915, 18570 }, - { 0x1916, 18558 }, - { 0x1917, 18546 }, - { 0x1918, 18567 }, - { 0x1919, 18597 }, - { 0x191A, 18600 }, - { 0x191B, 18561 }, - { 0x191C, 18537 }, - { 0x1920, 18489 }, - { 0x1921, 18497 }, - { 0x1922, 18505 }, - { 0x1923, 18517 }, - { 0x1924, 18509 }, - { 0x1925, 18521 }, - { 0x1926, 18513 }, - { 0x1927, 18493 }, - { 0x1928, 18501 }, - { 0x1929, 18620 }, - { 0x192A, 18612 }, - { 0x192B, 18616 }, - { 0x1930, 18453 }, - { 0x1931, 18481 }, - { 0x1932, 18485 }, - { 0x1933, 18477 }, - { 0x1934, 18465 }, - { 0x1935, 18469 }, - { 0x1936, 18461 }, - { 0x1937, 18473 }, - { 0x1938, 18457 }, - { 0x1939, 18420 }, - { 0x193A, 18417 }, - { 0x193B, 18414 }, - { 0x1940, 18411 }, - { 0x1944, 18624 }, - { 0x1945, 18609 }, - { 0x1946, 18441 }, - { 0x1947, 18423 }, - { 0x1948, 18429 }, - { 0x1949, 18450 }, - { 0x194A, 18435 }, - { 0x194B, 18432 }, - { 0x194C, 18426 }, - { 0x194D, 18447 }, - { 0x194E, 18444 }, - { 0x194F, 18438 }, - { 0x1950, 7356 }, - { 0x1951, 7400 }, - { 0x1952, 7416 }, - { 0x1953, 7428 }, - { 0x1954, 7384 }, - { 0x1955, 7404 }, - { 0x1956, 7388 }, - { 0x1957, 7424 }, - { 0x1958, 7360 }, - { 0x1959, 7376 }, - { 0x195A, 7420 }, - { 0x195B, 7364 }, - { 0x195C, 7348 }, - { 0x195D, 7396 }, - { 0x195E, 7352 }, - { 0x195F, 7380 }, - { 0x1960, 7412 }, - { 0x1961, 7432 }, - { 0x1962, 7368 }, - { 0x1963, 7316 }, - { 0x1964, 7324 }, - { 0x1965, 7340 }, - { 0x1966, 7344 }, - { 0x1967, 7332 }, - { 0x1968, 7372 }, - { 0x1969, 7328 }, - { 0x196A, 7392 }, - { 0x196B, 7320 }, - { 0x196C, 7408 }, - { 0x196D, 7336 }, - { 0x1970, 7436 }, - { 0x1971, 7440 }, - { 0x1972, 7444 }, - { 0x1973, 7448 }, - { 0x1974, 7452 }, - { 0x1980, 6143 }, - { 0x1981, 6017 }, - { 0x1982, 6113 }, - { 0x1983, 6167 }, - { 0x1984, 6185 }, - { 0x1985, 5987 }, - { 0x1986, 6041 }, - { 0x1987, 6059 }, - { 0x1988, 6203 }, - { 0x1989, 6149 }, - { 0x198A, 6173 }, - { 0x198B, 6077 }, - { 0x198C, 6023 }, - { 0x198D, 6047 }, - { 0x198E, 6155 }, - { 0x198F, 6197 }, - { 0x1990, 6131 }, - { 0x1991, 6029 }, - { 0x1992, 6071 }, - { 0x1993, 6005 }, - { 0x1994, 6137 }, - { 0x1995, 6191 }, - { 0x1996, 6125 }, - { 0x1997, 6011 }, - { 0x1998, 6065 }, - { 0x1999, 5999 }, - { 0x199A, 6101 }, - { 0x199B, 6161 }, - { 0x199C, 6119 }, - { 0x199D, 5975 }, - { 0x199E, 6035 }, - { 0x199F, 5993 }, - { 0x19A0, 6107 }, - { 0x19A1, 6095 }, - { 0x19A2, 6089 }, - { 0x19A3, 5981 }, - { 0x19A4, 5969 }, - { 0x19A5, 5963 }, - { 0x19A6, 6179 }, - { 0x19A7, 6209 }, - { 0x19A8, 6053 }, - { 0x19A9, 6083 }, - { 0x19B0, 5956 }, - { 0x19B1, 5878 }, - { 0x19B2, 5896 }, - { 0x19B3, 5872 }, - { 0x19B4, 5926 }, - { 0x19B5, 5860 }, - { 0x19B6, 5884 }, - { 0x19B7, 5866 }, - { 0x19B8, 5908 }, - { 0x19B9, 5920 }, - { 0x19BA, 5890 }, - { 0x19BB, 5938 }, - { 0x19BC, 5932 }, - { 0x19BD, 5914 }, - { 0x19BE, 5944 }, - { 0x19BF, 5950 }, - { 0x19C0, 5902 }, - { 0x19C1, 6245 }, - { 0x19C2, 6251 }, - { 0x19C3, 6239 }, - { 0x19C4, 6233 }, - { 0x19C5, 6227 }, - { 0x19C6, 6221 }, - { 0x19C7, 6215 }, - { 0x19C8, 5800 }, - { 0x19C9, 5805 }, - { 0x19D0, 5840 }, - { 0x19D1, 5810 }, - { 0x19D2, 5820 }, - { 0x19D3, 5855 }, - { 0x19D4, 5830 }, - { 0x19D5, 5825 }, - { 0x19D6, 5815 }, - { 0x19D7, 5850 }, - { 0x19D8, 5845 }, - { 0x19D9, 5835 }, - { 0x19DE, 5790 }, - { 0x19DF, 5795 }, - { 0x19E0, 12607 }, - { 0x19E1, 12520 }, - { 0x19E2, 12504 }, - { 0x19E3, 12438 }, - { 0x19E4, 12512 }, - { 0x19E5, 12528 }, - { 0x19E6, 12600 }, - { 0x19E7, 12584 }, - { 0x19E8, 12576 }, - { 0x19E9, 12592 }, - { 0x19EA, 12446 }, - { 0x19EB, 12560 }, - { 0x19EC, 12544 }, - { 0x19ED, 12536 }, - { 0x19EE, 12552 }, - { 0x19EF, 12568 }, - { 0x19F0, 12604 }, - { 0x19F1, 12516 }, - { 0x19F2, 12500 }, - { 0x19F3, 12434 }, - { 0x19F4, 12508 }, - { 0x19F5, 12524 }, - { 0x19F6, 12596 }, - { 0x19F7, 12580 }, - { 0x19F8, 12572 }, - { 0x19F9, 12588 }, - { 0x19FA, 12442 }, - { 0x19FB, 12556 }, - { 0x19FC, 12540 }, - { 0x19FD, 12532 }, - { 0x19FE, 12548 }, - { 0x19FF, 12564 }, - { 0x1A00, 41259 }, - { 0x1A01, 41250 }, - { 0x1A02, 41292 }, - { 0x1A03, 41301 }, - { 0x1A04, 41271 }, - { 0x1A05, 41241 }, - { 0x1A06, 41265 }, - { 0x1A07, 41289 }, - { 0x1A08, 41280 }, - { 0x1A09, 41247 }, - { 0x1A0A, 41268 }, - { 0x1A0B, 41295 }, - { 0x1A0C, 41244 }, - { 0x1A0D, 41256 }, - { 0x1A0E, 41298 }, - { 0x1A0F, 41304 }, - { 0x1A10, 41286 }, - { 0x1A11, 41274 }, - { 0x1A12, 41262 }, - { 0x1A13, 41283 }, - { 0x1A14, 41277 }, - { 0x1A15, 41238 }, - { 0x1A16, 41253 }, - { 0x1A17, 41222 }, - { 0x1A18, 41230 }, - { 0x1A19, 41218 }, - { 0x1A1A, 41226 }, - { 0x1A1B, 41234 }, - { 0x1A1E, 41307 }, - { 0x1A1F, 41214 }, - { 0x1B00, 40536 }, - { 0x1B01, 40540 }, - { 0x1B02, 40547 }, - { 0x1B03, 40550 }, - { 0x1B04, 40544 }, - { 0x1B05, 40831 }, - { 0x1B06, 40834 }, - { 0x1B07, 40841 }, - { 0x1B08, 40844 }, - { 0x1B09, 40855 }, - { 0x1B0A, 40858 }, - { 0x1B0B, 40763 }, - { 0x1B0C, 40767 }, - { 0x1B0D, 40734 }, - { 0x1B0E, 40738 }, - { 0x1B0F, 40838 }, - { 0x1B10, 40862 }, - { 0x1B11, 40848 }, - { 0x1B12, 40851 }, - { 0x1B13, 40724 }, - { 0x1B14, 40727 }, - { 0x1B15, 40707 }, - { 0x1B16, 40710 }, - { 0x1B17, 40813 }, - { 0x1B18, 40679 }, - { 0x1B19, 40682 }, - { 0x1B1A, 40717 }, - { 0x1B1B, 40720 }, - { 0x1B1C, 40816 }, - { 0x1B1D, 40790 }, - { 0x1B1E, 40794 }, - { 0x1B1F, 40693 }, - { 0x1B20, 40698 }, - { 0x1B21, 40749 }, - { 0x1B22, 40783 }, - { 0x1B23, 40786 }, - { 0x1B24, 40686 }, - { 0x1B25, 40689 }, - { 0x1B26, 40746 }, - { 0x1B27, 40753 }, - { 0x1B28, 40756 }, - { 0x1B29, 40672 }, - { 0x1B2A, 40675 }, - { 0x1B2B, 40743 }, - { 0x1B2C, 40806 }, - { 0x1B2D, 40760 }, - { 0x1B2E, 40731 }, - { 0x1B2F, 40803 }, - { 0x1B30, 40775 }, - { 0x1B31, 40779 }, - { 0x1B32, 40772 }, - { 0x1B33, 40714 }, - { 0x1B34, 40553 }, - { 0x1B35, 40666 }, - { 0x1B36, 40619 }, - { 0x1B37, 40623 }, - { 0x1B38, 40628 }, - { 0x1B39, 40632 }, - { 0x1B3A, 40608 }, - { 0x1B3B, 40613 }, - { 0x1B3C, 40597 }, - { 0x1B3D, 40602 }, - { 0x1B3E, 40646 }, - { 0x1B3F, 40650 }, - { 0x1B40, 40661 }, - { 0x1B41, 40655 }, - { 0x1B42, 40637 }, - { 0x1B43, 40641 }, - { 0x1B44, 40533 }, - { 0x1B45, 40809 }, - { 0x1B46, 40823 }, - { 0x1B47, 40827 }, - { 0x1B48, 40703 }, - { 0x1B49, 40799 }, - { 0x1B4A, 40819 }, - { 0x1B4B, 40865 }, - { 0x1B50, 40583 }, - { 0x1B51, 40565 }, - { 0x1B52, 40571 }, - { 0x1B53, 40592 }, - { 0x1B54, 40577 }, - { 0x1B55, 40574 }, - { 0x1B56, 40568 }, - { 0x1B57, 40589 }, - { 0x1B58, 40586 }, - { 0x1B59, 40580 }, - { 0x1B5A, 40595 }, - { 0x1B5B, 40869 }, - { 0x1B5C, 40670 }, - { 0x1B5D, 40562 }, - { 0x1B5E, 40556 }, - { 0x1B5F, 40559 }, - { 0x1B60, 41016 }, - { 0x1B61, 40893 }, - { 0x1B62, 40885 }, - { 0x1B63, 40897 }, - { 0x1B64, 40871 }, - { 0x1B65, 40880 }, - { 0x1B66, 40889 }, - { 0x1B67, 40901 }, - { 0x1B68, 40909 }, - { 0x1B69, 40905 }, - { 0x1B6A, 40875 }, - { 0x1B6B, 40928 }, - { 0x1B6C, 40923 }, - { 0x1B6D, 40945 }, - { 0x1B6E, 40933 }, - { 0x1B6F, 40957 }, - { 0x1B70, 40950 }, - { 0x1B71, 40938 }, - { 0x1B72, 40918 }, - { 0x1B73, 40913 }, - { 0x1B74, 40998 }, - { 0x1B75, 40992 }, - { 0x1B76, 41010 }, - { 0x1B77, 41004 }, - { 0x1B78, 40962 }, - { 0x1B79, 40974 }, - { 0x1B7A, 40980 }, - { 0x1B7B, 40986 }, - { 0x1B7C, 40968 }, - { 0x1D00, 15833 }, - { 0x1D01, 15957 }, - { 0x1D02, 15615 }, - { 0x1D03, 15988 }, - { 0x1D04, 15843 }, - { 0x1D05, 15848 }, - { 0x1D06, 15972 }, - { 0x1D07, 15853 }, - { 0x1D08, 15625 }, - { 0x1D09, 15552 }, - { 0x1D0A, 15880 }, - { 0x1D0B, 15885 }, - { 0x1D0C, 15895 }, - { 0x1D0D, 15902 }, - { 0x1D0E, 16006 }, - { 0x1D0F, 15912 }, - { 0x1D10, 15982 }, - { 0x1D11, 15727 }, - { 0x1D12, 15744 }, - { 0x1D13, 15732 }, - { 0x1D14, 15620 }, - { 0x1D15, 15967 }, - { 0x1D16, 15320 }, - { 0x1D17, 15481 }, - { 0x1D18, 15917 }, - { 0x1D19, 16012 }, - { 0x1D1A, 15994 }, - { 0x1D1B, 15927 }, - { 0x1D1C, 15932 }, - { 0x1D1D, 15739 }, - { 0x1D1E, 15756 }, - { 0x1D1F, 15750 }, - { 0x1D20, 15937 }, - { 0x1D21, 15942 }, - { 0x1D22, 15952 }, - { 0x1D23, 15977 }, - { 0x1D24, 16022 }, - { 0x1D25, 15822 }, - { 0x1D26, 10494 }, - { 0x1D27, 10499 }, - { 0x1D28, 10479 }, - { 0x1D29, 10489 }, - { 0x1D2A, 10484 }, - { 0x1D2B, 44651 }, - { 0x1D2C, 49600 }, - { 0x1D2D, 49672 }, - { 0x1D2E, 49604 }, - { 0x1D2F, 49680 }, - { 0x1D30, 49608 }, - { 0x1D31, 49612 }, - { 0x1D32, 49685 }, - { 0x1D33, 49616 }, - { 0x1D34, 49620 }, - { 0x1D35, 49624 }, - { 0x1D36, 49628 }, - { 0x1D37, 49632 }, - { 0x1D38, 49636 }, - { 0x1D39, 49640 }, - { 0x1D3A, 49644 }, - { 0x1D3B, 49690 }, - { 0x1D3C, 49648 }, - { 0x1D3D, 49676 }, - { 0x1D3E, 49652 }, - { 0x1D3F, 49656 }, - { 0x1D40, 49660 }, - { 0x1D41, 49664 }, - { 0x1D42, 49668 }, - { 0x1D43, 49141 }, - { 0x1D44, 49426 }, - { 0x1D45, 49380 }, - { 0x1D46, 49471 }, - { 0x1D47, 49145 }, - { 0x1D48, 49159 }, - { 0x1D49, 49163 }, - { 0x1D4A, 49402 }, - { 0x1D4B, 49370 }, - { 0x1D4C, 49476 }, - { 0x1D4D, 49171 }, - { 0x1D4E, 49436 }, - { 0x1D4F, 49201 }, - { 0x1D50, 49223 }, - { 0x1D51, 49336 }, - { 0x1D52, 49247 }, - { 0x1D53, 49375 }, - { 0x1D54, 49356 }, - { 0x1D55, 49415 }, - { 0x1D56, 49251 }, - { 0x1D57, 49269 }, - { 0x1D58, 49280 }, - { 0x1D59, 49543 }, - { 0x1D5A, 49441 }, - { 0x1D5B, 49289 }, - { 0x1D5C, 49328 }, - { 0x1D5D, 49362 }, - { 0x1D5E, 49397 }, - { 0x1D5F, 49384 }, - { 0x1D60, 49392 }, - { 0x1D61, 49332 }, - { 0x1D62, 18358 }, - { 0x1D63, 18368 }, - { 0x1D64, 18373 }, - { 0x1D65, 18378 }, - { 0x1D66, 11526 }, - { 0x1D67, 11531 }, - { 0x1D68, 11521 }, - { 0x1D69, 11516 }, - { 0x1D6A, 11511 }, - { 0x1D6B, 15242 }, - { 0x1D6C, 12974 }, - { 0x1D6D, 13118 }, - { 0x1D6E, 13366 }, - { 0x1D6F, 13858 }, - { 0x1D70, 13942 }, - { 0x1D71, 14275 }, - { 0x1D72, 14378 }, - { 0x1D73, 14410 }, - { 0x1D74, 14504 }, - { 0x1D75, 14580 }, - { 0x1D76, 15107 }, - { 0x1D77, 15526 }, - { 0x1D78, 49762 }, - { 0x1D79, 15672 }, - { 0x1D7A, 15231 }, - { 0x1D7B, 15767 }, - { 0x1D7C, 15351 }, - { 0x1D7D, 14282 }, - { 0x1D7E, 15774 }, - { 0x1D7F, 15681 }, - { 0x1D80, 12993 }, - { 0x1D81, 13143 }, - { 0x1D82, 13373 }, - { 0x1D83, 13433 }, - { 0x1D84, 13704 }, - { 0x1D85, 13807 }, - { 0x1D86, 13865 }, - { 0x1D87, 13955 }, - { 0x1D88, 14288 }, - { 0x1D89, 14397 }, - { 0x1D8A, 14517 }, - { 0x1D8B, 15260 }, - { 0x1D8C, 14891 }, - { 0x1D8D, 14958 }, - { 0x1D8E, 15120 }, - { 0x1D8F, 12888 }, - { 0x1D90, 15433 }, - { 0x1D91, 13091 }, - { 0x1D92, 13287 }, - { 0x1D93, 15379 }, - { 0x1D94, 15718 }, - { 0x1D95, 15454 }, - { 0x1D96, 13621 }, - { 0x1D97, 15392 }, - { 0x1D98, 15267 }, - { 0x1D99, 14842 }, - { 0x1D9A, 15300 }, - { 0x1D9B, 49482 }, - { 0x1D9C, 49149 }, - { 0x1D9D, 49153 }, - { 0x1D9E, 49344 }, - { 0x1D9F, 49531 }, - { 0x1DA0, 49167 }, - { 0x1DA1, 49520 }, - { 0x1DA2, 49421 }, - { 0x1DA3, 49431 }, - { 0x1DA4, 49185 }, - { 0x1DA5, 49366 }, - { 0x1DA6, 49487 }, - { 0x1DA7, 49492 }, - { 0x1DA8, 49195 }, - { 0x1DA9, 49216 }, - { 0x1DAA, 49209 }, - { 0x1DAB, 49499 }, - { 0x1DAC, 49227 }, - { 0x1DAD, 49446 }, - { 0x1DAE, 49233 }, - { 0x1DAF, 49240 }, - { 0x1DB0, 49504 }, - { 0x1DB1, 49410 }, - { 0x1DB2, 49352 }, - { 0x1DB3, 49263 }, - { 0x1DB4, 49340 }, - { 0x1DB5, 49273 }, - { 0x1DB6, 49284 }, - { 0x1DB7, 49527 }, - { 0x1DB8, 49509 }, - { 0x1DB9, 49293 }, - { 0x1DBA, 49466 }, - { 0x1DBB, 49311 }, - { 0x1DBC, 49321 }, - { 0x1DBD, 49315 }, - { 0x1DBE, 49348 }, - { 0x1DBF, 49406 }, - { 0x1DC0, 52518 }, - { 0x1DC1, 52514 }, - { 0x1DC2, 52488 }, - { 0x1DC3, 52771 }, - { 0x1DC4, 52784 }, - { 0x1DC5, 52782 }, - { 0x1DC6, 52786 }, - { 0x1DC7, 52780 }, - { 0x1DC8, 52798 }, - { 0x1DC9, 52796 }, - { 0x1DCA, 52397 }, - { 0x1DFE, 52242 }, - { 0x1DFF, 52460 }, - { 0x1E00, 16144 }, - { 0x1E01, 12755 }, - { 0x1E02, 16321 }, - { 0x1E03, 12947 }, - { 0x1E04, 16328 }, - { 0x1E05, 12954 }, - { 0x1E06, 16341 }, - { 0x1E07, 12967 }, - { 0x1E08, 16401 }, - { 0x1E09, 13047 }, - { 0x1E0A, 16419 }, - { 0x1E0B, 13065 }, - { 0x1E0C, 16426 }, - { 0x1E0D, 13072 }, - { 0x1E0E, 16439 }, - { 0x1E0F, 13099 }, - { 0x1E10, 16482 }, - { 0x1E11, 13137 }, - { 0x1E12, 16488 }, - { 0x1E13, 13150 }, - { 0x1E14, 16578 }, - { 0x1E15, 13240 }, - { 0x1E16, 16570 }, - { 0x1E17, 13232 }, - { 0x1E18, 16673 }, - { 0x1E19, 13342 }, - { 0x1E1A, 16550 }, - { 0x1E1B, 13212 }, - { 0x1E1C, 16604 }, - { 0x1E1D, 13266 }, - { 0x1E1E, 16684 }, - { 0x1E1F, 13353 }, - { 0x1E20, 16732 }, - { 0x1E21, 13415 }, - { 0x1E22, 16760 }, - { 0x1E23, 13450 }, - { 0x1E24, 16767 }, - { 0x1E25, 13457 }, - { 0x1E26, 16805 }, - { 0x1E27, 13508 }, - { 0x1E28, 16793 }, - { 0x1E29, 13496 }, - { 0x1E2A, 16774 }, - { 0x1E2B, 13477 }, - { 0x1E2C, 16872 }, - { 0x1E2D, 13568 }, - { 0x1E2E, 16917 }, - { 0x1E2F, 13613 }, - { 0x1E30, 16971 }, - { 0x1E31, 13686 }, - { 0x1E32, 16951 }, - { 0x1E33, 13666 }, - { 0x1E34, 16964 }, - { 0x1E35, 13679 }, - { 0x1E36, 17005 }, - { 0x1E37, 13727 }, - { 0x1E38, 17012 }, - { 0x1E39, 13734 }, - { 0x1E3A, 17021 }, - { 0x1E3B, 13755 }, - { 0x1E3C, 17081 }, - { 0x1E3D, 13821 }, - { 0x1E3E, 17106 }, - { 0x1E3F, 13852 }, - { 0x1E40, 17092 }, - { 0x1E41, 13832 }, - { 0x1E42, 17099 }, - { 0x1E43, 13839 }, - { 0x1E44, 17116 }, - { 0x1E45, 13876 }, - { 0x1E46, 17123 }, - { 0x1E47, 13883 }, - { 0x1E48, 17137 }, - { 0x1E49, 13903 }, - { 0x1E4A, 17190 }, - { 0x1E4B, 13969 }, - { 0x1E4C, 17309 }, - { 0x1E4D, 14095 }, - { 0x1E4E, 17325 }, - { 0x1E4F, 14111 }, - { 0x1E50, 17361 }, - { 0x1E51, 14147 }, - { 0x1E52, 17353 }, - { 0x1E53, 14139 }, - { 0x1E54, 17490 }, - { 0x1E55, 14269 }, - { 0x1E56, 17477 }, - { 0x1E57, 14256 }, - { 0x1E58, 17510 }, - { 0x1E59, 14316 }, - { 0x1E5A, 17517 }, - { 0x1E5B, 14323 }, - { 0x1E5C, 17524 }, - { 0x1E5D, 14330 }, - { 0x1E5E, 17533 }, - { 0x1E5F, 14339 }, - { 0x1E60, 17588 }, - { 0x1E61, 14430 }, - { 0x1E62, 17595 }, - { 0x1E63, 14437 }, - { 0x1E64, 17618 }, - { 0x1E65, 14466 }, - { 0x1E66, 17633 }, - { 0x1E67, 14481 }, - { 0x1E68, 17602 }, - { 0x1E69, 14444 }, - { 0x1E6A, 17665 }, - { 0x1E6B, 14534 }, - { 0x1E6C, 17672 }, - { 0x1E6D, 14541 }, - { 0x1E6E, 17685 }, - { 0x1E6F, 14560 }, - { 0x1E70, 17731 }, - { 0x1E71, 14626 }, - { 0x1E72, 17940 }, - { 0x1E73, 14835 }, - { 0x1E74, 17854 }, - { 0x1E75, 14749 }, - { 0x1E76, 17953 }, - { 0x1E77, 14855 }, - { 0x1E78, 17846 }, - { 0x1E79, 14741 }, - { 0x1E7A, 17881 }, - { 0x1E7B, 14776 }, - { 0x1E7C, 17977 }, - { 0x1E7D, 14885 }, - { 0x1E7E, 17964 }, - { 0x1E7F, 14866 }, - { 0x1E80, 18007 }, - { 0x1E81, 14929 }, - { 0x1E82, 18001 }, - { 0x1E83, 14923 }, - { 0x1E84, 18013 }, - { 0x1E85, 14935 }, - { 0x1E86, 17987 }, - { 0x1E87, 14902 }, - { 0x1E88, 17994 }, - { 0x1E89, 14909 }, - { 0x1E8A, 18029 }, - { 0x1E8B, 14951 }, - { 0x1E8C, 18036 }, - { 0x1E8D, 14965 }, - { 0x1E8E, 18046 }, - { 0x1E8F, 14975 }, - { 0x1E90, 18170 }, - { 0x1E91, 15140 }, - { 0x1E92, 18126 }, - { 0x1E93, 15062 }, - { 0x1E94, 18139 }, - { 0x1E95, 15081 }, - { 0x1E96, 13470 }, - { 0x1E97, 14613 }, - { 0x1E98, 14916 }, - { 0x1E99, 15002 }, - { 0x1E9A, 12828 }, - { 0x1E9B, 15366 }, - { 0x1EA0, 16114 }, - { 0x1EA1, 12725 }, - { 0x1EA2, 16121 }, - { 0x1EA3, 12732 }, - { 0x1EA4, 16293 }, - { 0x1EA5, 12919 }, - { 0x1EA6, 16301 }, - { 0x1EA7, 12927 }, - { 0x1EA8, 16284 }, - { 0x1EA9, 12910 }, - { 0x1EAA, 16309 }, - { 0x1EAB, 12935 }, - { 0x1EAC, 16275 }, - { 0x1EAD, 12901 }, - { 0x1EAE, 16181 }, - { 0x1EAF, 12792 }, - { 0x1EB0, 16189 }, - { 0x1EB1, 12800 }, - { 0x1EB2, 16172 }, - { 0x1EB3, 12783 }, - { 0x1EB4, 16197 }, - { 0x1EB5, 12808 }, - { 0x1EB6, 16163 }, - { 0x1EB7, 12774 }, - { 0x1EB8, 16506 }, - { 0x1EB9, 13168 }, - { 0x1EBA, 16513 }, - { 0x1EBB, 13175 }, - { 0x1EBC, 16544 }, - { 0x1EBD, 13206 }, - { 0x1EBE, 16649 }, - { 0x1EBF, 13318 }, - { 0x1EC0, 16657 }, - { 0x1EC1, 13326 }, - { 0x1EC2, 16640 }, - { 0x1EC3, 13309 }, - { 0x1EC4, 16665 }, - { 0x1EC5, 13334 }, - { 0x1EC6, 16631 }, - { 0x1EC7, 13300 }, - { 0x1EC8, 16835 }, - { 0x1EC9, 13531 }, - { 0x1ECA, 16828 }, - { 0x1ECB, 13524 }, - { 0x1ECC, 17217 }, - { 0x1ECD, 14003 }, - { 0x1ECE, 17224 }, - { 0x1ECF, 14010 }, - { 0x1ED0, 17449 }, - { 0x1ED1, 14228 }, - { 0x1ED2, 17457 }, - { 0x1ED3, 14236 }, - { 0x1ED4, 17440 }, - { 0x1ED5, 14219 }, - { 0x1ED6, 17465 }, - { 0x1ED7, 14244 }, - { 0x1ED8, 17431 }, - { 0x1ED9, 14210 }, - { 0x1EDA, 17255 }, - { 0x1EDB, 14041 }, - { 0x1EDC, 17263 }, - { 0x1EDD, 14049 }, - { 0x1EDE, 17246 }, - { 0x1EDF, 14032 }, - { 0x1EE0, 17271 }, - { 0x1EE1, 14057 }, - { 0x1EE2, 17237 }, - { 0x1EE3, 14023 }, - { 0x1EE4, 17747 }, - { 0x1EE5, 14642 }, - { 0x1EE6, 17754 }, - { 0x1EE7, 14649 }, - { 0x1EE8, 17785 }, - { 0x1EE9, 14680 }, - { 0x1EEA, 17793 }, - { 0x1EEB, 14688 }, - { 0x1EEC, 17776 }, - { 0x1EED, 14671 }, - { 0x1EEE, 17801 }, - { 0x1EEF, 14696 }, - { 0x1EF0, 17767 }, - { 0x1EF1, 14662 }, - { 0x1EF2, 18079 }, - { 0x1EF3, 15015 }, - { 0x1EF4, 18053 }, - { 0x1EF5, 14982 }, - { 0x1EF6, 18066 }, - { 0x1EF7, 14995 }, - { 0x1EF8, 18085 }, - { 0x1EF9, 15021 }, - { 0x1F00, 9683 }, - { 0x1F01, 9615 }, - { 0x1F02, 9707 }, - { 0x1F03, 9639 }, - { 0x1F04, 9689 }, - { 0x1F05, 9621 }, - { 0x1F06, 9725 }, - { 0x1F07, 9657 }, - { 0x1F08, 10941 }, - { 0x1F09, 10873 }, - { 0x1F0A, 10965 }, - { 0x1F0B, 10897 }, - { 0x1F0C, 10947 }, - { 0x1F0D, 10879 }, - { 0x1F0E, 10983 }, - { 0x1F0F, 10915 }, - { 0x1F10, 10079 }, - { 0x1F11, 10057 }, - { 0x1F12, 10093 }, - { 0x1F13, 10071 }, - { 0x1F14, 10085 }, - { 0x1F15, 10063 }, - { 0x1F18, 11259 }, - { 0x1F19, 11237 }, - { 0x1F1A, 11273 }, - { 0x1F1B, 11251 }, - { 0x1F1C, 11265 }, - { 0x1F1D, 11243 }, - { 0x1F20, 9307 }, - { 0x1F21, 9239 }, - { 0x1F22, 9331 }, - { 0x1F23, 9263 }, - { 0x1F24, 9313 }, - { 0x1F25, 9245 }, - { 0x1F26, 9349 }, - { 0x1F27, 9281 }, - { 0x1F28, 10639 }, - { 0x1F29, 10571 }, - { 0x1F2A, 10663 }, - { 0x1F2B, 10595 }, - { 0x1F2C, 10645 }, - { 0x1F2D, 10577 }, - { 0x1F2E, 10681 }, - { 0x1F2F, 10613 }, - { 0x1F30, 9495 }, - { 0x1F31, 9465 }, - { 0x1F32, 9509 }, - { 0x1F33, 9479 }, - { 0x1F34, 9501 }, - { 0x1F35, 9471 }, - { 0x1F36, 9517 }, - { 0x1F37, 9487 }, - { 0x1F38, 10799 }, - { 0x1F39, 10769 }, - { 0x1F3A, 10813 }, - { 0x1F3B, 10783 }, - { 0x1F3C, 10805 }, - { 0x1F3D, 10775 }, - { 0x1F3E, 10821 }, - { 0x1F3F, 10791 }, - { 0x1F40, 10145 }, - { 0x1F41, 10123 }, - { 0x1F42, 10159 }, - { 0x1F43, 10137 }, - { 0x1F44, 10151 }, - { 0x1F45, 10129 }, - { 0x1F48, 11325 }, - { 0x1F49, 11303 }, - { 0x1F4A, 11339 }, - { 0x1F4B, 11317 }, - { 0x1F4C, 11331 }, - { 0x1F4D, 11309 }, - { 0x1F50, 10219 }, - { 0x1F51, 10189 }, - { 0x1F52, 10233 }, - { 0x1F53, 10203 }, - { 0x1F54, 10225 }, - { 0x1F55, 10195 }, - { 0x1F56, 10241 }, - { 0x1F57, 10211 }, - { 0x1F59, 11369 }, - { 0x1F5B, 11383 }, - { 0x1F5D, 11375 }, - { 0x1F5F, 11391 }, - { 0x1F60, 9914 }, - { 0x1F61, 9846 }, - { 0x1F62, 9938 }, - { 0x1F63, 9870 }, - { 0x1F64, 9920 }, - { 0x1F65, 9852 }, - { 0x1F66, 9956 }, - { 0x1F67, 9888 }, - { 0x1F68, 11133 }, - { 0x1F69, 11065 }, - { 0x1F6A, 11157 }, - { 0x1F6B, 11089 }, - { 0x1F6C, 11139 }, - { 0x1F6D, 11071 }, - { 0x1F6E, 11175 }, - { 0x1F6F, 11107 }, - { 0x1F70, 9757 }, - { 0x1F71, 9601 }, - { 0x1F72, 10107 }, - { 0x1F73, 10051 }, - { 0x1F74, 9381 }, - { 0x1F75, 9225 }, - { 0x1F76, 9531 }, - { 0x1F77, 9459 }, - { 0x1F78, 10173 }, - { 0x1F79, 10117 }, - { 0x1F7A, 10255 }, - { 0x1F7B, 10183 }, - { 0x1F7C, 9988 }, - { 0x1F7D, 9832 }, - { 0x1F80, 9743 }, - { 0x1F81, 9675 }, - { 0x1F82, 9715 }, - { 0x1F83, 9647 }, - { 0x1F84, 9697 }, - { 0x1F85, 9629 }, - { 0x1F86, 9733 }, - { 0x1F87, 9665 }, - { 0x1F88, 11001 }, - { 0x1F89, 10933 }, - { 0x1F8A, 10973 }, - { 0x1F8B, 10905 }, - { 0x1F8C, 10955 }, - { 0x1F8D, 10887 }, - { 0x1F8E, 10991 }, - { 0x1F8F, 10923 }, - { 0x1F90, 9367 }, - { 0x1F91, 9299 }, - { 0x1F92, 9339 }, - { 0x1F93, 9271 }, - { 0x1F94, 9321 }, - { 0x1F95, 9253 }, - { 0x1F96, 9357 }, - { 0x1F97, 9289 }, - { 0x1F98, 10699 }, - { 0x1F99, 10631 }, - { 0x1F9A, 10671 }, - { 0x1F9B, 10603 }, - { 0x1F9C, 10653 }, - { 0x1F9D, 10585 }, - { 0x1F9E, 10689 }, - { 0x1F9F, 10621 }, - { 0x1FA0, 9974 }, - { 0x1FA1, 9906 }, - { 0x1FA2, 9946 }, - { 0x1FA3, 9878 }, - { 0x1FA4, 9928 }, - { 0x1FA5, 9860 }, - { 0x1FA6, 9964 }, - { 0x1FA7, 9896 }, - { 0x1FA8, 11193 }, - { 0x1FA9, 11125 }, - { 0x1FAA, 11165 }, - { 0x1FAB, 11097 }, - { 0x1FAC, 11147 }, - { 0x1FAD, 11079 }, - { 0x1FAE, 11183 }, - { 0x1FAF, 11115 }, - { 0x1FB0, 9777 }, - { 0x1FB1, 9771 }, - { 0x1FB2, 9763 }, - { 0x1FB3, 9797 }, - { 0x1FB4, 9607 }, - { 0x1FB6, 9783 }, - { 0x1FB7, 9789 }, - { 0x1FB8, 11027 }, - { 0x1FB9, 11021 }, - { 0x1FBA, 11015 }, - { 0x1FBB, 10867 }, - { 0x1FBC, 11033 }, - { 0x1FBD, 11450 }, - { 0x1FBE, 11949 }, - { 0x1FBF, 9181 }, - { 0x1FC0, 11797 }, - { 0x1FC1, 11504 }, - { 0x1FC2, 9387 }, - { 0x1FC3, 9409 }, - { 0x1FC4, 9231 }, - { 0x1FC6, 9395 }, - { 0x1FC7, 9401 }, - { 0x1FC8, 11287 }, - { 0x1FC9, 11231 }, - { 0x1FCA, 10713 }, - { 0x1FCB, 10565 }, - { 0x1FCC, 10719 }, - { 0x1FCD, 9187 }, - { 0x1FCE, 9183 }, - { 0x1FCF, 9191 }, - { 0x1FD0, 9543 }, - { 0x1FD1, 9537 }, - { 0x1FD2, 9571 }, - { 0x1FD3, 9555 }, - { 0x1FD6, 9587 }, - { 0x1FD7, 9579 }, - { 0x1FD8, 10847 }, - { 0x1FD9, 10841 }, - { 0x1FDA, 10835 }, - { 0x1FDB, 10763 }, - { 0x1FDD, 9163 }, - { 0x1FDE, 9159 }, - { 0x1FDF, 9167 }, - { 0x1FE0, 10267 }, - { 0x1FE1, 10261 }, - { 0x1FE2, 10295 }, - { 0x1FE3, 10279 }, - { 0x1FE4, 9433 }, - { 0x1FE5, 9427 }, - { 0x1FE6, 10311 }, - { 0x1FE7, 10303 }, - { 0x1FE8, 11417 }, - { 0x1FE9, 11411 }, - { 0x1FEA, 11405 }, - { 0x1FEB, 11363 }, - { 0x1FEC, 10737 }, - { 0x1FED, 11500 }, - { 0x1FEE, 11496 }, - { 0x1FEF, 10343 }, - { 0x1FF2, 9994 }, - { 0x1FF3, 10016 }, - { 0x1FF4, 9838 }, - { 0x1FF6, 10002 }, - { 0x1FF7, 10008 }, - { 0x1FF8, 11353 }, - { 0x1FF9, 11297 }, - { 0x1FFA, 11207 }, - { 0x1FFB, 11059 }, - { 0x1FFC, 11213 }, - { 0x1FFD, 9149 }, - { 0x1FFE, 9157 }, +unicode_code_to_name[18242] = { + { 0x0020, 22740 }, + { 0x0021, 68656 }, + { 0x0022, 65766 }, + { 0x0023, 35593 }, + { 0x0024, 31225 }, + { 0x0025, 42973 }, + { 0x0026, 56108 }, + { 0x0027, 66826 }, + { 0x0028, 9464 }, + { 0x0029, 21991 }, + { 0x002A, 45081 }, + { 0x002B, 9633 }, + { 0x002C, 10461 }, + { 0x002D, 69568 }, + { 0x002E, 9112 }, + { 0x002F, 43548 }, + { 0x0030, 10518 }, + { 0x0031, 10482 }, + { 0x0032, 10494 }, + { 0x0033, 10532 }, + { 0x0034, 10506 }, + { 0x0035, 10500 }, + { 0x0036, 10488 }, + { 0x0037, 10526 }, + { 0x0038, 10520 }, + { 0x0039, 10512 }, + { 0x003A, 10455 }, + { 0x003B, 65813 }, + { 0x003C, 64726 }, + { 0x003D, 31706 }, + { 0x003E, 69497 }, + { 0x003F, 55446 }, + { 0x0040, 66837 }, + { 0x0041, 18231 }, + { 0x0042, 18454 }, + { 0x0043, 18497 }, + { 0x0044, 18552 }, + { 0x0045, 18632 }, + { 0x0046, 18817 }, + { 0x0047, 18834 }, + { 0x0048, 18893 }, + { 0x0049, 18954 }, + { 0x004A, 19068 }, + { 0x004B, 19084 }, + { 0x004C, 19154 }, + { 0x004D, 19254 }, + { 0x004E, 19284 }, + { 0x004F, 19369 }, + { 0x0050, 19659 }, + { 0x0051, 19709 }, + { 0x0052, 19728 }, + { 0x0053, 19811 }, + { 0x0054, 19888 }, + { 0x0055, 19965 }, + { 0x0056, 20187 }, + { 0x0057, 20217 }, + { 0x0058, 20265 }, + { 0x0059, 20282 }, + { 0x005A, 20361 }, + { 0x005B, 9385 }, + { 0x005C, 42994 }, + { 0x005D, 21912 }, + { 0x005E, 66835 }, + { 0x005F, 6031 }, + { 0x0060, 10638 }, + { 0x0061, 14473 }, + { 0x0062, 14711 }, + { 0x0063, 14768 }, + { 0x0064, 14829 }, + { 0x0065, 14925 }, + { 0x0066, 15123 }, + { 0x0067, 15154 }, + { 0x0068, 15220 }, + { 0x0069, 15294 }, + { 0x006A, 15408 }, + { 0x006B, 15436 }, + { 0x006C, 15513 }, + { 0x006D, 15631 }, + { 0x006E, 15675 }, + { 0x006F, 15786 }, + { 0x0070, 16077 }, + { 0x0071, 16141 }, + { 0x0072, 16173 }, + { 0x0073, 16292 }, + { 0x0074, 16396 }, + { 0x0075, 16499 }, + { 0x0076, 16728 }, + { 0x0077, 16778 }, + { 0x0078, 16833 }, + { 0x0079, 16857 }, + { 0x007A, 16943 }, + { 0x007B, 9231 }, + { 0x007C, 56066 }, + { 0x007D, 21824 }, + { 0x007E, 23008 }, + { 0x00A0, 54927 }, + { 0x00A1, 53357 }, + { 0x00A2, 8729 }, + { 0x00A3, 21740 }, + { 0x00A4, 48521 }, + { 0x00A5, 8712 }, + { 0x00A6, 30305 }, + { 0x00A7, 43022 }, + { 0x00A8, 63244 }, + { 0x00A9, 58349 }, + { 0x00AA, 51775 }, + { 0x00AB, 74612 }, + { 0x00AC, 6723 }, + { 0x00AD, 9710 }, + { 0x00AE, 67979 }, + { 0x00AF, 35513 }, + { 0x00B0, 31179 }, + { 0x00B1, 67969 }, + { 0x00B2, 69284 }, + { 0x00B3, 69319 }, + { 0x00B4, 10104 }, + { 0x00B5, 21176 }, + { 0x00B6, 42975 }, + { 0x00B7, 35570 }, + { 0x00B8, 38870 }, + { 0x00B9, 69280 }, + { 0x00BA, 65112 }, + { 0x00BB, 75094 }, + { 0x00BC, 37732 }, + { 0x00BD, 37712 }, + { 0x00BE, 37768 }, + { 0x00BF, 53352 }, + { 0x00C0, 18348 }, + { 0x00C1, 18288 }, + { 0x00C2, 18406 }, + { 0x00C3, 18354 }, + { 0x00C4, 18392 }, + { 0x00C5, 18265 }, + { 0x00C6, 20426 }, + { 0x00C7, 18532 }, + { 0x00C8, 18675 }, + { 0x00C9, 18657 }, + { 0x00CA, 18762 }, + { 0x00CB, 18756 }, + { 0x00CC, 18997 }, + { 0x00CD, 18979 }, + { 0x00CE, 19062 }, + { 0x00CF, 19048 }, + { 0x00D0, 20523 }, + { 0x00D1, 19350 }, + { 0x00D2, 19483 }, + { 0x00D3, 19465 }, + { 0x00D4, 19611 }, + { 0x00D5, 19489 }, + { 0x00D6, 19597 }, + { 0x00D7, 75055 }, + { 0x00D8, 19576 }, + { 0x00D9, 20061 }, + { 0x00DA, 20043 }, + { 0x00DB, 20174 }, + { 0x00DC, 20129 }, + { 0x00DD, 20319 }, + { 0x00DE, 20626 }, + { 0x00DF, 17465 }, + { 0x00E0, 14590 }, + { 0x00E1, 14530 }, + { 0x00E2, 14663 }, + { 0x00E3, 14604 }, + { 0x00E4, 14642 }, + { 0x00E5, 14507 }, + { 0x00E6, 17042 }, + { 0x00E7, 14809 }, + { 0x00E8, 14968 }, + { 0x00E9, 14950 }, + { 0x00EA, 15068 }, + { 0x00EB, 15055 }, + { 0x00EC, 15330 }, + { 0x00ED, 15312 }, + { 0x00EE, 15402 }, + { 0x00EF, 15381 }, + { 0x00F0, 17225 }, + { 0x00F1, 15739 }, + { 0x00F2, 15908 }, + { 0x00F3, 15890 }, + { 0x00F4, 16029 }, + { 0x00F5, 15914 }, + { 0x00F6, 16015 }, + { 0x00F7, 50308 }, + { 0x00F8, 15994 }, + { 0x00F9, 16595 }, + { 0x00FA, 16577 }, + { 0x00FB, 16715 }, + { 0x00FC, 16663 }, + { 0x00FD, 16901 }, + { 0x00FE, 17476 }, + { 0x00FF, 16931 }, + { 0x0100, 18367 }, + { 0x0101, 14617 }, + { 0x0102, 18294 }, + { 0x0103, 14536 }, + { 0x0104, 18373 }, + { 0x0105, 14623 }, + { 0x0106, 18514 }, + { 0x0107, 14791 }, + { 0x0108, 18546 }, + { 0x0109, 14823 }, + { 0x010A, 18501 }, + { 0x010B, 14772 }, + { 0x010C, 18520 }, + { 0x010D, 14797 }, + { 0x010E, 18583 }, + { 0x010F, 14880 }, + { 0x0110, 18607 }, + { 0x0111, 14893 }, + { 0x0112, 18701 }, + { 0x0113, 15000 }, + { 0x0114, 18663 }, + { 0x0115, 14956 }, + { 0x0116, 18636 }, + { 0x0117, 14929 }, + { 0x0118, 18723 }, + { 0x0119, 15022 }, + { 0x011A, 18669 }, + { 0x011B, 14962 }, + { 0x011C, 18887 }, + { 0x011D, 15214 }, + { 0x011E, 18857 }, + { 0x011F, 15177 }, + { 0x0120, 18838 }, + { 0x0121, 15158 }, + { 0x0122, 18881 }, + { 0x0123, 15201 }, + { 0x0124, 18948 }, + { 0x0125, 15288 }, + { 0x0126, 18924 }, + { 0x0127, 15264 }, + { 0x0128, 19003 }, + { 0x0129, 15336 }, + { 0x012A, 19023 }, + { 0x012B, 15356 }, + { 0x012C, 18985 }, + { 0x012D, 15318 }, + { 0x012E, 19029 }, + { 0x012F, 15362 }, + { 0x0130, 18958 }, + { 0x0131, 17682 }, + { 0x0132, 20774 }, + { 0x0133, 17909 }, + { 0x0134, 19078 }, + { 0x0135, 15424 }, + { 0x0136, 19135 }, + { 0x0137, 15487 }, + { 0x0138, 17263 }, + { 0x0139, 19194 }, + { 0x013A, 15565 }, + { 0x013B, 19241 }, + { 0x013C, 15604 }, + { 0x013D, 19200 }, + { 0x013E, 15571 }, + { 0x013F, 19221 }, + { 0x0140, 15584 }, + { 0x0141, 19235 }, + { 0x0142, 15598 }, + { 0x0143, 19324 }, + { 0x0144, 15721 }, + { 0x0145, 19356 }, + { 0x0146, 15752 }, + { 0x0147, 19330 }, + { 0x0148, 15727 }, + { 0x0149, 15779 }, + { 0x014A, 20515 }, + { 0x014B, 17197 }, + { 0x014C, 19533 }, + { 0x014D, 15958 }, + { 0x014E, 19471 }, + { 0x014F, 15896 }, + { 0x0150, 19519 }, + { 0x0151, 15944 }, + { 0x0152, 20778 }, + { 0x0153, 17913 }, + { 0x0154, 19768 }, + { 0x0155, 16220 }, + { 0x0156, 19793 }, + { 0x0157, 16252 }, + { 0x0158, 19774 }, + { 0x0159, 16226 }, + { 0x015A, 19839 }, + { 0x015B, 16326 }, + { 0x015C, 19882 }, + { 0x015D, 16390 }, + { 0x015E, 19876 }, + { 0x015F, 16377 }, + { 0x0160, 19854 }, + { 0x0161, 16341 }, + { 0x0162, 19938 }, + { 0x0163, 16459 }, + { 0x0164, 19919 }, + { 0x0165, 16433 }, + { 0x0166, 19932 }, + { 0x0167, 16453 }, + { 0x0168, 20067 }, + { 0x0169, 16601 }, + { 0x016A, 20102 }, + { 0x016B, 16636 }, + { 0x016C, 20049 }, + { 0x016D, 16583 }, + { 0x016E, 20036 }, + { 0x016F, 16570 }, + { 0x0170, 20088 }, + { 0x0171, 16622 }, + { 0x0172, 20116 }, + { 0x0173, 16650 }, + { 0x0174, 20259 }, + { 0x0175, 16827 }, + { 0x0176, 20355 }, + { 0x0177, 16937 }, + { 0x0178, 20349 }, + { 0x0179, 20392 }, + { 0x017A, 16980 }, + { 0x017B, 20365 }, + { 0x017C, 16947 }, + { 0x017D, 20398 }, + { 0x017E, 16986 }, + { 0x017F, 17341 }, + { 0x0180, 14749 }, + { 0x0181, 18472 }, + { 0x0182, 18491 }, + { 0x0183, 14755 }, + { 0x0184, 20570 }, + { 0x0185, 17406 }, + { 0x0186, 20565 }, + { 0x0187, 18508 }, + { 0x0188, 14785 }, + { 0x0189, 20675 }, + { 0x018A, 18570 }, + { 0x018B, 18613 }, + { 0x018C, 14899 }, + { 0x018D, 17671 }, + { 0x018E, 20726 }, + { 0x018F, 20609 }, + { 0x0190, 20560 }, + { 0x0191, 18828 }, + { 0x0192, 15134 }, + { 0x0193, 18845 }, + { 0x0194, 20601 }, + { 0x0195, 17112 }, + { 0x0196, 20556 }, + { 0x0197, 19035 }, + { 0x0198, 19095 }, + { 0x0199, 15447 }, + { 0x019A, 15517 }, + { 0x019B, 17528 }, + { 0x019C, 20659 }, + { 0x019D, 19302 }, + { 0x019E, 15713 }, + { 0x019F, 19555 }, + { 0x01A0, 19403 }, + { 0x01A1, 15828 }, + { 0x01A2, 20491 }, + { 0x01A3, 17138 }, + { 0x01A4, 19670 }, + { 0x01A5, 16088 }, + { 0x01A6, 17935 }, + { 0x01A7, 20575 }, + { 0x01A8, 17411 }, + { 0x01A9, 20519 }, + { 0x01AA, 18206 }, + { 0x01AB, 16465 }, + { 0x01AC, 19906 }, + { 0x01AD, 16420 }, + { 0x01AE, 19951 }, + { 0x01AF, 19988 }, + { 0x01B0, 16522 }, + { 0x01B1, 20715 }, + { 0x01B2, 20198 }, + { 0x01B3, 20300 }, + { 0x01B4, 16875 }, + { 0x01B5, 20404 }, + { 0x01B6, 17006 }, + { 0x01B7, 20527 }, + { 0x01B8, 20537 }, + { 0x01B9, 17258 }, + { 0x01BA, 17239 }, + { 0x01BB, 17941 }, + { 0x01BC, 20580 }, + { 0x01BD, 17416 }, + { 0x01BE, 18199 }, + { 0x01BF, 17946 }, + { 0x01C0, 18155 }, + { 0x01C1, 18174 }, + { 0x01C2, 18178 }, + { 0x01C3, 18218 }, + { 0x01C4, 20469 }, + { 0x01C5, 18597 }, + { 0x01C6, 17090 }, + { 0x01C7, 20483 }, + { 0x01C8, 19206 }, + { 0x01C9, 17120 }, + { 0x01CA, 20487 }, + { 0x01CB, 19342 }, + { 0x01CC, 17134 }, + { 0x01CD, 18342 }, + { 0x01CE, 14584 }, + { 0x01CF, 18991 }, + { 0x01D0, 15324 }, + { 0x01D1, 19477 }, + { 0x01D2, 15902 }, + { 0x01D3, 20055 }, + { 0x01D4, 16589 }, + { 0x01D5, 20159 }, + { 0x01D6, 16693 }, + { 0x01D7, 20135 }, + { 0x01D8, 16669 }, + { 0x01D9, 20143 }, + { 0x01DA, 16677 }, + { 0x01DB, 20151 }, + { 0x01DC, 16685 }, + { 0x01DD, 17544 }, + { 0x01DE, 18398 }, + { 0x01DF, 14648 }, + { 0x01E0, 18242 }, + { 0x01E1, 14484 }, + { 0x01E2, 20436 }, + { 0x01E3, 17052 }, + { 0x01E4, 18875 }, + { 0x01E5, 15195 }, + { 0x01E6, 18863 }, + { 0x01E7, 15183 }, + { 0x01E8, 19114 }, + { 0x01E9, 15466 }, + { 0x01EA, 19562 }, + { 0x01EB, 15980 }, + { 0x01EC, 19568 }, + { 0x01ED, 15986 }, + { 0x01EE, 20531 }, + { 0x01EF, 17245 }, + { 0x01F0, 15412 }, + { 0x01F1, 20465 }, + { 0x01F2, 18589 }, + { 0x01F3, 17086 }, + { 0x01F4, 18851 }, + { 0x01F5, 15171 }, + { 0x01F6, 20605 }, + { 0x01F7, 20589 }, + { 0x01F8, 19336 }, + { 0x01F9, 15733 }, + { 0x01FA, 18272 }, + { 0x01FB, 14514 }, + { 0x01FC, 20430 }, + { 0x01FD, 17046 }, + { 0x01FE, 19582 }, + { 0x01FF, 16000 }, + { 0x0200, 18360 }, + { 0x0201, 14610 }, + { 0x0202, 18385 }, + { 0x0203, 14635 }, + { 0x0204, 18694 }, + { 0x0205, 14993 }, + { 0x0206, 18749 }, + { 0x0207, 15048 }, + { 0x0208, 19016 }, + { 0x0209, 15349 }, + { 0x020A, 19041 }, + { 0x020B, 15374 }, + { 0x020C, 19526 }, + { 0x020D, 15951 }, + { 0x020E, 19590 }, + { 0x020F, 16008 }, + { 0x0210, 19780 }, + { 0x0211, 16232 }, + { 0x0212, 19799 }, + { 0x0213, 16280 }, + { 0x0214, 20095 }, + { 0x0215, 16629 }, + { 0x0216, 20122 }, + { 0x0217, 16656 }, + { 0x0218, 19869 }, + { 0x0219, 16356 }, + { 0x021A, 19925 }, + { 0x021B, 16439 }, + { 0x021C, 20593 }, + { 0x021D, 17425 }, + { 0x021E, 18918 }, + { 0x021F, 15258 }, + { 0x0220, 19316 }, + { 0x0221, 14847 }, + { 0x0222, 20499 }, + { 0x0223, 17146 }, + { 0x0224, 20379 }, + { 0x0225, 16967 }, + { 0x0226, 18235 }, + { 0x0227, 14477 }, + { 0x0228, 18735 }, + { 0x0229, 15034 }, + { 0x022A, 19603 }, + { 0x022B, 16021 }, + { 0x022C, 19503 }, + { 0x022D, 15928 }, + { 0x022E, 19373 }, + { 0x022F, 15790 }, + { 0x0230, 19380 }, + { 0x0231, 15797 }, + { 0x0232, 20337 }, + { 0x0233, 16919 }, + { 0x0234, 15545 }, + { 0x0235, 15693 }, + { 0x0236, 16414 }, + { 0x0237, 17687 }, + { 0x0238, 17081 }, + { 0x0239, 17150 }, + { 0x023A, 18379 }, + { 0x023B, 18526 }, + { 0x023C, 14803 }, + { 0x023D, 19158 }, + { 0x023E, 19944 }, + { 0x023F, 16363 }, + { 0x0240, 16992 }, + { 0x0241, 20680 }, + { 0x0242, 17708 }, + { 0x0243, 18485 }, + { 0x0244, 19969 }, + { 0x0245, 20664 }, + { 0x0246, 18729 }, + { 0x0247, 15028 }, + { 0x0248, 19072 }, + { 0x0249, 15418 }, + { 0x024A, 20618 }, + { 0x024B, 16151 }, + { 0x024C, 19787 }, + { 0x024D, 16246 }, + { 0x024E, 20343 }, + { 0x024F, 16925 }, + { 0x0250, 17539 }, + { 0x0251, 17429 }, + { 0x0252, 17666 }, + { 0x0253, 14729 }, + { 0x0254, 17383 }, + { 0x0255, 14779 }, + { 0x0256, 14874 }, + { 0x0257, 14853 }, + { 0x0258, 17765 }, + { 0x0259, 17448 }, + { 0x025A, 17452 }, + { 0x025B, 17370 }, + { 0x025C, 17777 }, + { 0x025D, 17783 }, + { 0x025E, 17521 }, + { 0x025F, 17692 }, + { 0x0260, 15165 }, + { 0x0261, 17534 }, + { 0x0262, 17979 }, + { 0x0263, 17444 }, + { 0x0264, 17396 }, + { 0x0265, 17554 }, + { 0x0266, 15238 }, + { 0x0267, 17321 }, + { 0x0268, 15368 }, + { 0x0269, 17327 }, + { 0x026A, 17996 }, + { 0x026B, 15591 }, + { 0x026C, 15539 }, + { 0x026D, 15617 }, + { 0x026E, 17337 }, + { 0x026F, 17590 }, + { 0x0270, 17595 }, + { 0x0271, 15649 }, + { 0x0272, 15699 }, + { 0x0273, 15765 }, + { 0x0274, 18028 }, + { 0x0275, 17494 }, + { 0x0276, 18088 }, + { 0x0277, 17516 }, + { 0x0278, 17279 }, + { 0x0279, 17603 }, + { 0x027A, 17615 }, + { 0x027B, 17608 }, + { 0x027C, 16207 }, + { 0x027D, 16214 }, + { 0x027E, 16265 }, + { 0x027F, 17770 }, + { 0x0280, 18043 }, + { 0x0281, 18137 }, + { 0x0282, 16320 }, + { 0x0283, 17201 }, + { 0x0284, 17699 }, + { 0x0285, 17470 }, + { 0x0286, 17205 }, + { 0x0287, 17630 }, + { 0x0288, 16485 }, + { 0x0289, 16503 }, + { 0x028A, 17743 }, + { 0x028B, 16745 }, + { 0x028C, 17635 }, + { 0x028D, 17640 }, + { 0x028E, 17645 }, + { 0x028F, 18073 }, + { 0x0290, 17025 }, + { 0x0291, 16961 }, + { 0x0292, 17229 }, + { 0x0293, 17233 }, + { 0x0294, 18164 }, + { 0x0295, 18226 }, + { 0x0296, 18194 }, + { 0x0297, 18222 }, + { 0x0298, 18186 }, + { 0x0299, 17954 }, + { 0x029A, 17510 }, + { 0x029B, 17984 }, + { 0x029C, 17991 }, + { 0x029D, 15430 }, + { 0x029E, 17580 }, + { 0x029F, 18011 }, + { 0x02A0, 16145 }, + { 0x02A1, 18168 }, + { 0x02A2, 18211 }, + { 0x02A3, 17096 }, + { 0x02A4, 17302 }, + { 0x02A5, 17101 }, + { 0x02A6, 17168 }, + { 0x02A7, 17401 }, + { 0x02A8, 17155 }, + { 0x02A9, 17307 }, + { 0x02AA, 17124 }, + { 0x02AB, 17129 }, + { 0x02AC, 18190 }, + { 0x02AD, 18182 }, + { 0x02AE, 17559 }, + { 0x02AF, 17566 }, + { 0x02B0, 54170 }, + { 0x02B1, 54174 }, + { 0x02B2, 54186 }, + { 0x02B3, 54250 }, + { 0x02B4, 54449 }, + { 0x02B5, 54454 }, + { 0x02B6, 54509 }, + { 0x02B7, 54294 }, + { 0x02B8, 54302 }, + { 0x02B9, 54116 }, + { 0x02BA, 54543 }, + { 0x02BB, 54612 }, + { 0x02BC, 54827 }, + { 0x02BD, 54790 }, + { 0x02BE, 54119 }, + { 0x02BF, 54058 }, + { 0x02C0, 54775 }, + { 0x02C1, 54794 }, + { 0x02C2, 54063 }, + { 0x02C3, 54124 }, + { 0x02C4, 53873 }, + { 0x02C5, 54025 }, + { 0x02C6, 54830 }, + { 0x02C7, 10445 }, + { 0x02C8, 54799 }, + { 0x02C9, 54551 }, + { 0x02CA, 54081 }, + { 0x02CB, 54102 }, + { 0x02CC, 53975 }, + { 0x02CD, 53965 }, + { 0x02CE, 53938 }, + { 0x02CF, 53933 }, + { 0x02D0, 54858 }, + { 0x02D1, 54029 }, + { 0x02D2, 54721 }, + { 0x02D3, 54715 }, + { 0x02D4, 53869 }, + { 0x02D5, 54021 }, + { 0x02D6, 54071 }, + { 0x02D7, 54112 }, + { 0x02D8, 10378 }, + { 0x02D9, 5782 }, + { 0x02DA, 9699 }, + { 0x02DB, 35640 }, + { 0x02DC, 22588 }, + { 0x02DD, 31564 }, + { 0x02DE, 54596 }, + { 0x02DF, 54098 }, + { 0x02E0, 54383 }, + { 0x02E1, 54200 }, + { 0x02E2, 54254 }, + { 0x02E3, 54298 }, + { 0x02E4, 54532 }, + { 0x02E5, 54834 }, + { 0x02E6, 54034 }, + { 0x02E7, 53991 }, + { 0x02E8, 53928 }, + { 0x02E9, 54803 }, + { 0x02EA, 54015 }, + { 0x02EB, 54075 }, + { 0x02EC, 54779 }, + { 0x02ED, 54862 }, + { 0x02EE, 54547 }, + { 0x02EF, 53909 }, + { 0x02F0, 53904 }, + { 0x02F1, 53919 }, + { 0x02F2, 53943 }, + { 0x02F3, 53924 }, + { 0x02F4, 54554 }, + { 0x02F5, 54565 }, + { 0x02F6, 54559 }, + { 0x02F7, 53948 }, + { 0x02F8, 54581 }, + { 0x02F9, 54090 }, + { 0x02FA, 53899 }, + { 0x02FB, 54085 }, + { 0x02FC, 53894 }, + { 0x02FD, 54128 }, + { 0x02FE, 54067 }, + { 0x02FF, 53914 }, + { 0x0300, 57554 }, + { 0x0301, 57523 }, + { 0x0302, 58283 }, + { 0x0303, 57841 }, + { 0x0304, 57946 }, + { 0x0305, 58215 }, + { 0x0306, 57530 }, + { 0x0307, 57402 }, + { 0x0308, 58240 }, + { 0x0309, 57427 }, + { 0x030A, 57506 }, + { 0x030B, 57876 }, + { 0x030C, 57535 }, + { 0x030D, 58221 }, + { 0x030E, 57918 }, + { 0x030F, 57887 }, + { 0x0310, 58305 }, + { 0x0311, 58191 }, + { 0x0312, 57970 }, + { 0x0313, 57540 }, + { 0x0314, 58217 }, + { 0x0315, 57543 }, + { 0x0316, 57557 }, + { 0x0317, 57526 }, + { 0x0318, 57442 }, + { 0x0319, 57783 }, + { 0x031A, 57446 }, + { 0x031B, 57430 }, + { 0x031C, 57437 }, + { 0x031D, 57392 }, + { 0x031E, 57419 }, + { 0x031F, 57502 }, + { 0x0320, 57769 }, + { 0x0321, 58307 }, + { 0x0322, 58279 }, + { 0x0323, 57409 }, + { 0x0324, 58242 }, + { 0x0325, 57509 }, + { 0x0326, 57547 }, + { 0x0327, 57983 }, + { 0x0328, 57959 }, + { 0x0329, 58225 }, + { 0x032A, 57857 }, + { 0x032B, 58202 }, + { 0x032C, 57537 }, + { 0x032D, 58286 }, + { 0x032E, 57532 }, + { 0x032F, 58194 }, + { 0x0330, 57843 }, + { 0x0331, 57952 }, + { 0x0332, 57412 }, + { 0x0333, 57868 }, + { 0x0334, 57846 }, + { 0x0335, 57821 }, + { 0x0336, 57489 }, + { 0x0337, 57825 }, + { 0x0338, 57493 }, + { 0x0339, 57778 }, + { 0x033A, 58198 }, + { 0x033B, 57964 }, + { 0x033C, 57991 }, + { 0x033D, 57383 }, + { 0x033E, 58229 }, + { 0x033F, 57915 }, + { 0x0340, 57550 }, + { 0x0341, 57519 }, + { 0x0342, 57580 }, + { 0x0343, 57561 }, + { 0x0344, 57576 }, + { 0x0345, 57583 }, + { 0x0346, 57854 }, + { 0x0347, 57942 }, + { 0x0348, 57923 }, + { 0x0349, 57450 }, + { 0x034A, 57415 }, + { 0x034B, 58293 }, + { 0x034C, 57849 }, + { 0x034D, 57467 }, + { 0x034E, 57994 }, + { 0x034F, 58188 }, + { 0x0350, 57813 }, + { 0x0351, 57432 }, + { 0x0352, 57985 }, + { 0x0353, 57386 }, + { 0x0354, 57480 }, + { 0x0355, 57817 }, + { 0x0356, 57799 }, + { 0x0357, 57773 }, + { 0x0358, 57405 }, + { 0x0359, 58001 }, + { 0x035A, 57872 }, + { 0x035B, 57974 }, + { 0x035C, 57883 }, + { 0x035D, 57880 }, + { 0x035E, 57904 }, + { 0x035F, 57907 }, + { 0x0360, 57891 }, + { 0x0361, 57911 }, + { 0x0362, 57937 }, + { 0x0363, 57586 }, + { 0x0364, 57607 }, + { 0x0365, 57622 }, + { 0x0366, 57647 }, + { 0x0367, 57679 }, + { 0x0368, 57591 }, + { 0x0369, 57602 }, + { 0x036A, 57617 }, + { 0x036B, 57637 }, + { 0x036C, 57652 }, + { 0x036D, 57674 }, + { 0x036E, 57684 }, + { 0x036F, 57689 }, + { 0x0370, 12320 }, + { 0x0371, 10998 }, + { 0x0372, 12792 }, + { 0x0373, 11590 }, + { 0x0374, 13034 }, + { 0x0375, 10720 }, + { 0x0376, 12999 }, + { 0x0377, 11869 }, + { 0x037A, 13522 }, + { 0x037B, 11881 }, + { 0x037C, 10738 }, + { 0x037D, 11874 }, + { 0x037E, 13059 }, + { 0x0384, 11898 }, + { 0x0385, 13083 }, + { 0x0386, 12574 }, + { 0x0387, 10643 }, + { 0x0388, 12851 }, + { 0x0389, 12268 }, + { 0x038A, 12394 }, + { 0x038C, 12917 }, + { 0x038E, 12969 }, + { 0x038F, 12766 }, + { 0x0390, 11110 }, + { 0x0391, 12428 }, + { 0x0392, 12316 }, + { 0x0393, 12608 }, + { 0x0394, 12604 }, + { 0x0395, 12797 }, + { 0x0396, 12424 }, + { 0x0397, 12122 }, + { 0x0398, 12788 }, + { 0x0399, 12324 }, + { 0x039A, 12612 }, + { 0x039B, 12616 }, + { 0x039C, 12102 }, + { 0x039D, 12106 }, + { 0x039E, 12114 }, + { 0x039F, 12863 }, + { 0x03A0, 12110 }, + { 0x03A1, 12294 }, + { 0x03A3, 12784 }, + { 0x03A4, 12312 }, + { 0x03A5, 12929 }, + { 0x03A6, 12286 }, + { 0x03A7, 12118 }, + { 0x03A8, 12290 }, + { 0x03A9, 12620 }, + { 0x03AA, 12418 }, + { 0x03AB, 12993 }, + { 0x03AC, 11298 }, + { 0x03AD, 11653 }, + { 0x03AE, 10918 }, + { 0x03AF, 11072 }, + { 0x03B0, 11839 }, + { 0x03B1, 11144 }, + { 0x03B2, 10994 }, + { 0x03B3, 11359 }, + { 0x03B4, 11350 }, + { 0x03B5, 11599 }, + { 0x03B6, 11140 }, + { 0x03B7, 10764 }, + { 0x03B8, 11577 }, + { 0x03B9, 11002 }, + { 0x03BA, 11363 }, + { 0x03BB, 11371 }, + { 0x03BC, 10744 }, + { 0x03BD, 10748 }, + { 0x03BE, 10756 }, + { 0x03BF, 11665 }, + { 0x03C0, 10752 }, + { 0x03C1, 10966 }, + { 0x03C2, 11354 }, + { 0x03C3, 11573 }, + { 0x03C4, 10990 }, + { 0x03C5, 11731 }, + { 0x03C6, 10958 }, + { 0x03C7, 10760 }, + { 0x03C8, 10962 }, + { 0x03C9, 11375 }, + { 0x03CA, 11096 }, + { 0x03CB, 11825 }, + { 0x03CC, 11719 }, + { 0x03CD, 11801 }, + { 0x03CE, 11529 }, + { 0x03CF, 12088 }, + { 0x03D0, 10678 }, + { 0x03D1, 11887 }, + { 0x03D2, 13037 }, + { 0x03D3, 13042 }, + { 0x03D4, 13049 }, + { 0x03D5, 10659 }, + { 0x03D6, 10640 }, + { 0x03D7, 10646 }, + { 0x03D8, 12064 }, + { 0x03D9, 11585 }, + { 0x03DA, 12061 }, + { 0x03DB, 11581 }, + { 0x03DC, 12068 }, + { 0x03DD, 11595 }, + { 0x03DE, 12030 }, + { 0x03DF, 11367 }, + { 0x03E0, 12033 }, + { 0x03E1, 11569 }, + { 0x03E2, 31064 }, + { 0x03E3, 30771 }, + { 0x03E4, 30926 }, + { 0x03E5, 30633 }, + { 0x03E6, 31060 }, + { 0x03E7, 30767 }, + { 0x03E8, 31052 }, + { 0x03E9, 30759 }, + { 0x03EA, 31104 }, + { 0x03EB, 30811 }, + { 0x03EC, 31100 }, + { 0x03ED, 30807 }, + { 0x03EE, 30918 }, + { 0x03EF, 30625 }, + { 0x03F0, 10714 }, + { 0x03F1, 10667 }, + { 0x03F2, 12071 }, + { 0x03F3, 12027 }, + { 0x03F4, 12092 }, + { 0x03F5, 12075 }, + { 0x03F6, 13062 }, + { 0x03F7, 12308 }, + { 0x03F8, 10986 }, + { 0x03F9, 13004 }, + { 0x03FA, 12304 }, + { 0x03FB, 10982 }, + { 0x03FC, 10662 }, + { 0x03FD, 13016 }, + { 0x03FE, 12096 }, + { 0x03FF, 13009 }, + { 0x0400, 49628 }, + { 0x0401, 49634 }, + { 0x0402, 49779 }, + { 0x0403, 49828 }, + { 0x0404, 50271 }, + { 0x0405, 49787 }, + { 0x0406, 50281 }, + { 0x0407, 49723 }, + { 0x0408, 49638 }, + { 0x0409, 49848 }, + { 0x040A, 49852 }, + { 0x040B, 50007 }, + { 0x040C, 49836 }, + { 0x040D, 49451 }, + { 0x040E, 50103 }, + { 0x040F, 49910 }, + { 0x0410, 49421 }, + { 0x0411, 49502 }, + { 0x0412, 49711 }, + { 0x0413, 49791 }, + { 0x0414, 49506 }, + { 0x0415, 49618 }, + { 0x0416, 49884 }, + { 0x0417, 49735 }, + { 0x0418, 49447 }, + { 0x0419, 50091 }, + { 0x041A, 49642 }, + { 0x041B, 49514 }, + { 0x041C, 49537 }, + { 0x041D, 49547 }, + { 0x041E, 49469 }, + { 0x041F, 49675 }, + { 0x0420, 49576 }, + { 0x0421, 49586 }, + { 0x0422, 49690 }, + { 0x0423, 49479 }, + { 0x0424, 49510 }, + { 0x0425, 49596 }, + { 0x0426, 49868 }, + { 0x0427, 49756 }, + { 0x0428, 49864 }, + { 0x0429, 50087 }, + { 0x042A, 49926 }, + { 0x042B, 50019 }, + { 0x042C, 49998 }, + { 0x042D, 49437 }, + { 0x042E, 49731 }, + { 0x042F, 49719 }, + { 0x0430, 48523 }, + { 0x0431, 48604 }, + { 0x0432, 48813 }, + { 0x0433, 48893 }, + { 0x0434, 48608 }, + { 0x0435, 48720 }, + { 0x0436, 48986 }, + { 0x0437, 48837 }, + { 0x0438, 48549 }, + { 0x0439, 49193 }, + { 0x043A, 48744 }, + { 0x043B, 48616 }, + { 0x043C, 48639 }, + { 0x043D, 48649 }, + { 0x043E, 48571 }, + { 0x043F, 48777 }, + { 0x0440, 48678 }, + { 0x0441, 48688 }, + { 0x0442, 48792 }, + { 0x0443, 48581 }, + { 0x0444, 48612 }, + { 0x0445, 48698 }, + { 0x0446, 48970 }, + { 0x0447, 48858 }, + { 0x0448, 48966 }, + { 0x0449, 49189 }, + { 0x044A, 49028 }, + { 0x044B, 49121 }, + { 0x044C, 49100 }, + { 0x044D, 48539 }, + { 0x044E, 48833 }, + { 0x044F, 48821 }, + { 0x0450, 48730 }, + { 0x0451, 48736 }, + { 0x0452, 48881 }, + { 0x0453, 48930 }, + { 0x0454, 49377 }, + { 0x0455, 48889 }, + { 0x0456, 49387 }, + { 0x0457, 48825 }, + { 0x0458, 48740 }, + { 0x0459, 48950 }, + { 0x045A, 48954 }, + { 0x045B, 49109 }, + { 0x045C, 48938 }, + { 0x045D, 48553 }, + { 0x045E, 49205 }, + { 0x045F, 49012 }, + { 0x0460, 50062 }, + { 0x0461, 49164 }, + { 0x0462, 49880 }, + { 0x0463, 48982 }, + { 0x0464, 50173 }, + { 0x0465, 49275 }, + { 0x0466, 50132 }, + { 0x0467, 49234 }, + { 0x0468, 50196 }, + { 0x0469, 49298 }, + { 0x046A, 49751 }, + { 0x046B, 48853 }, + { 0x046C, 50178 }, + { 0x046D, 49280 }, + { 0x046E, 49840 }, + { 0x046F, 48942 }, + { 0x0470, 49856 }, + { 0x0471, 48958 }, + { 0x0472, 49922 }, + { 0x0473, 49024 }, + { 0x0474, 50151 }, + { 0x0475, 49253 }, + { 0x0476, 50155 }, + { 0x0477, 49257 }, + { 0x0478, 49707 }, + { 0x0479, 48809 }, + { 0x047A, 50072 }, + { 0x047B, 49174 }, + { 0x047C, 50066 }, + { 0x047D, 49168 }, + { 0x047E, 49671 }, + { 0x047F, 48773 }, + { 0x0480, 50058 }, + { 0x0481, 49160 }, + { 0x0482, 50303 }, + { 0x0483, 58017 }, + { 0x0484, 58185 }, + { 0x0485, 58009 }, + { 0x0486, 58013 }, + { 0x0487, 58177 }, + { 0x0488, 58165 }, + { 0x0489, 58173 }, + { 0x048A, 50096 }, + { 0x048B, 49198 }, + { 0x048C, 50217 }, + { 0x048D, 49323 }, + { 0x048E, 49580 }, + { 0x048F, 48682 }, + { 0x0490, 49816 }, + { 0x0491, 48918 }, + { 0x0492, 49802 }, + { 0x0493, 48904 }, + { 0x0494, 49795 }, + { 0x0495, 48897 }, + { 0x0496, 49894 }, + { 0x0497, 48996 }, + { 0x0498, 49739 }, + { 0x0499, 48841 }, + { 0x049A, 49665 }, + { 0x049B, 48767 }, + { 0x049C, 49658 }, + { 0x049D, 48760 }, + { 0x049E, 49652 }, + { 0x049F, 48754 }, + { 0x04A0, 50141 }, + { 0x04A1, 49243 }, + { 0x04A2, 49570 }, + { 0x04A3, 48672 }, + { 0x04A4, 50291 }, + { 0x04A5, 49397 }, + { 0x04A6, 49679 }, + { 0x04A7, 48781 }, + { 0x04A8, 50234 }, + { 0x04A9, 49340 }, + { 0x04AA, 49590 }, + { 0x04AB, 48692 }, + { 0x04AC, 49701 }, + { 0x04AD, 48803 }, + { 0x04AE, 50222 }, + { 0x04AF, 49328 }, + { 0x04B0, 50227 }, + { 0x04B1, 49333 }, + { 0x04B2, 49612 }, + { 0x04B3, 48714 }, + { 0x04B4, 50296 }, + { 0x04B5, 49402 }, + { 0x04B6, 49767 }, + { 0x04B7, 48869 }, + { 0x04B8, 49760 }, + { 0x04B9, 48862 }, + { 0x04BA, 49975 }, + { 0x04BB, 49077 }, + { 0x04BC, 50239 }, + { 0x04BD, 49345 }, + { 0x04BE, 50244 }, + { 0x04BF, 49350 }, + { 0x04C0, 49414 }, + { 0x04C1, 49888 }, + { 0x04C2, 48990 }, + { 0x04C3, 49646 }, + { 0x04C4, 48748 }, + { 0x04C5, 49524 }, + { 0x04C6, 48626 }, + { 0x04C7, 49551 }, + { 0x04C8, 48653 }, + { 0x04C9, 49557 }, + { 0x04CA, 48659 }, + { 0x04CB, 50276 }, + { 0x04CC, 49382 }, + { 0x04CD, 49541 }, + { 0x04CE, 48643 }, + { 0x04CF, 49304 }, + { 0x04D0, 49425 }, + { 0x04D1, 48527 }, + { 0x04D2, 49431 }, + { 0x04D3, 48533 }, + { 0x04D4, 50286 }, + { 0x04D5, 49392 }, + { 0x04D6, 49622 }, + { 0x04D7, 48724 }, + { 0x04D8, 50077 }, + { 0x04D9, 49179 }, + { 0x04DA, 50081 }, + { 0x04DB, 49183 }, + { 0x04DC, 49900 }, + { 0x04DD, 49002 }, + { 0x04DE, 49745 }, + { 0x04DF, 48847 }, + { 0x04E0, 50251 }, + { 0x04E1, 49357 }, + { 0x04E2, 49457 }, + { 0x04E3, 48559 }, + { 0x04E4, 49463 }, + { 0x04E5, 48565 }, + { 0x04E6, 49473 }, + { 0x04E7, 48575 }, + { 0x04E8, 50108 }, + { 0x04E9, 49210 }, + { 0x04EA, 50113 }, + { 0x04EB, 49215 }, + { 0x04EC, 49441 }, + { 0x04ED, 48543 }, + { 0x04EE, 49490 }, + { 0x04EF, 48592 }, + { 0x04F0, 49496 }, + { 0x04F1, 48598 }, + { 0x04F2, 49483 }, + { 0x04F3, 48585 }, + { 0x04F4, 49773 }, + { 0x04F5, 48875 }, + { 0x04F6, 49822 }, + { 0x04F7, 48924 }, + { 0x04F8, 50030 }, + { 0x04F9, 49132 }, + { 0x04FA, 49808 }, + { 0x04FB, 48910 }, + { 0x04FC, 49600 }, + { 0x04FD, 48702 }, + { 0x04FE, 49606 }, + { 0x04FF, 48708 }, + { 0x0500, 49935 }, + { 0x0501, 49037 }, + { 0x0502, 49940 }, + { 0x0503, 49042 }, + { 0x0504, 49965 }, + { 0x0505, 49067 }, + { 0x0506, 49970 }, + { 0x0507, 49072 }, + { 0x0508, 49945 }, + { 0x0509, 49047 }, + { 0x050A, 49950 }, + { 0x050B, 49052 }, + { 0x050C, 49955 }, + { 0x050D, 49057 }, + { 0x050E, 49960 }, + { 0x050F, 49062 }, + { 0x0510, 50207 }, + { 0x0511, 49313 }, + { 0x0512, 49518 }, + { 0x0513, 48620 }, + { 0x0514, 49844 }, + { 0x0515, 48946 }, + { 0x0516, 49860 }, + { 0x0517, 48962 }, + { 0x0518, 49876 }, + { 0x0519, 48978 }, + { 0x051A, 49686 }, + { 0x051B, 48788 }, + { 0x051C, 49715 }, + { 0x051D, 48817 }, + { 0x051E, 50040 }, + { 0x051F, 49142 }, + { 0x0520, 49530 }, + { 0x0521, 48632 }, + { 0x0522, 49563 }, + { 0x0523, 48665 }, + { 0x0531, 44961 }, + { 0x0532, 44965 }, + { 0x0533, 44981 }, + { 0x0534, 44917 }, + { 0x0535, 44973 }, + { 0x0536, 44957 }, + { 0x0537, 44921 }, + { 0x0538, 44925 }, + { 0x0539, 44945 }, + { 0x053A, 45029 }, + { 0x053B, 44985 }, + { 0x053C, 45045 }, + { 0x053D, 45025 }, + { 0x053E, 44909 }, + { 0x053F, 44993 }, + { 0x0540, 44929 }, + { 0x0541, 44933 }, + { 0x0542, 45037 }, + { 0x0543, 45033 }, + { 0x0544, 44997 }, + { 0x0545, 44953 }, + { 0x0546, 45001 }, + { 0x0547, 45017 }, + { 0x0548, 44949 }, + { 0x0549, 44969 }, + { 0x054A, 45005 }, + { 0x054B, 45041 }, + { 0x054C, 44941 }, + { 0x054D, 45013 }, + { 0x054E, 45021 }, + { 0x054F, 45053 }, + { 0x0550, 45009 }, + { 0x0551, 44913 }, + { 0x0552, 45057 }, + { 0x0553, 45049 }, + { 0x0554, 44989 }, + { 0x0555, 44937 }, + { 0x0556, 44977 }, + { 0x0559, 45064 }, + { 0x055A, 45073 }, + { 0x055B, 45061 }, + { 0x055C, 45075 }, + { 0x055D, 44723 }, + { 0x055E, 45070 }, + { 0x055F, 45078 }, + { 0x0561, 44777 }, + { 0x0562, 44781 }, + { 0x0563, 44797 }, + { 0x0564, 44733 }, + { 0x0565, 44789 }, + { 0x0566, 44773 }, + { 0x0567, 44737 }, + { 0x0568, 44741 }, + { 0x0569, 44761 }, + { 0x056A, 44845 }, + { 0x056B, 44801 }, + { 0x056C, 44861 }, + { 0x056D, 44841 }, + { 0x056E, 44725 }, + { 0x056F, 44809 }, + { 0x0570, 44745 }, + { 0x0571, 44749 }, + { 0x0572, 44853 }, + { 0x0573, 44849 }, + { 0x0574, 44813 }, + { 0x0575, 44769 }, + { 0x0576, 44817 }, + { 0x0577, 44833 }, + { 0x0578, 44765 }, + { 0x0579, 44785 }, + { 0x057A, 44821 }, + { 0x057B, 44857 }, + { 0x057C, 44757 }, + { 0x057D, 44829 }, + { 0x057E, 44837 }, + { 0x057F, 44869 }, + { 0x0580, 44825 }, + { 0x0581, 44729 }, + { 0x0582, 44873 }, + { 0x0583, 44865 }, + { 0x0584, 44805 }, + { 0x0585, 44753 }, + { 0x0586, 44793 }, + { 0x0587, 44877 }, + { 0x0589, 44720 }, + { 0x058A, 44907 }, + { 0x0591, 33056 }, + { 0x0592, 33004 }, + { 0x0593, 33073 }, + { 0x0594, 33022 }, + { 0x0595, 33018 }, + { 0x0596, 33053 }, + { 0x0597, 33001 }, + { 0x0598, 33026 }, + { 0x0599, 33046 }, + { 0x059A, 33015 }, + { 0x059B, 33007 }, + { 0x059C, 33032 }, + { 0x059D, 33035 }, + { 0x059E, 33070 }, + { 0x059F, 33049 }, + { 0x05A0, 33059 }, + { 0x05A1, 32995 }, + { 0x05A2, 32985 }, + { 0x05A3, 32992 }, + { 0x05A4, 33067 }, + { 0x05A5, 33039 }, + { 0x05A6, 33042 }, + { 0x05A7, 32989 }, + { 0x05A8, 32998 }, + { 0x05A9, 33063 }, + { 0x05AA, 33010 }, + { 0x05AB, 32976 }, + { 0x05AC, 32982 }, + { 0x05AD, 32979 }, + { 0x05AE, 33029 }, + { 0x05AF, 32903 }, + { 0x05B0, 32951 }, + { 0x05B1, 32922 }, + { 0x05B2, 32918 }, + { 0x05B3, 32926 }, + { 0x05B4, 32930 }, + { 0x05B5, 32954 }, + { 0x05B6, 32948 }, + { 0x05B7, 32945 }, + { 0x05B8, 32962 }, + { 0x05B9, 32933 }, + { 0x05BA, 32936 }, + { 0x05BB, 32969 }, + { 0x05BC, 32957 }, + { 0x05BD, 32942 }, + { 0x05BE, 33412 }, + { 0x05BF, 32911 }, + { 0x05C0, 33415 }, + { 0x05C1, 32914 }, + { 0x05C2, 32907 }, + { 0x05C3, 33408 }, + { 0x05C4, 32899 }, + { 0x05C5, 32895 }, + { 0x05C6, 33404 }, + { 0x05C7, 32965 }, + { 0x05D0, 33192 }, + { 0x05D1, 33097 }, + { 0x05D2, 33330 }, + { 0x05D3, 33290 }, + { 0x05D4, 33076 }, + { 0x05D5, 33166 }, + { 0x05D6, 33354 }, + { 0x05D7, 33110 }, + { 0x05D8, 33158 }, + { 0x05D9, 33179 }, + { 0x05DA, 33308 }, + { 0x05DB, 33113 }, + { 0x05DC, 33338 }, + { 0x05DD, 33318 }, + { 0x05DE, 33126 }, + { 0x05DF, 33322 }, + { 0x05E0, 33134 }, + { 0x05E1, 33362 }, + { 0x05E2, 33210 }, + { 0x05E3, 33298 }, + { 0x05E4, 33084 }, + { 0x05E5, 33326 }, + { 0x05E6, 33346 }, + { 0x05E7, 33142 }, + { 0x05E8, 33213 }, + { 0x05E9, 33221 }, + { 0x05EA, 33150 }, + { 0x05F0, 33394 }, + { 0x05F1, 33383 }, + { 0x05F2, 33399 }, + { 0x05F3, 33418 }, + { 0x05F4, 33421 }, + { 0x0600, 26405 }, + { 0x0601, 23733 }, + { 0x0602, 26459 }, + { 0x0603, 23730 }, + { 0x0606, 69351 }, + { 0x0607, 69384 }, + { 0x0608, 23706 }, + { 0x0609, 69347 }, + { 0x060A, 69342 }, + { 0x060B, 37776 }, + { 0x060C, 23764 }, + { 0x060D, 23708 }, + { 0x060E, 26408 }, + { 0x060F, 23727 }, + { 0x0610, 23756 }, + { 0x0611, 23736 }, + { 0x0612, 23752 }, + { 0x0613, 23722 }, + { 0x0614, 23749 }, + { 0x0615, 23840 }, + { 0x0616, 23923 }, + { 0x0617, 23872 }, + { 0x0618, 23935 }, + { 0x0619, 23932 }, + { 0x061A, 23938 }, + { 0x061B, 30222 }, + { 0x061E, 26422 }, + { 0x061F, 30214 }, + { 0x0621, 26056 }, + { 0x0622, 25371 }, + { 0x0623, 25327 }, + { 0x0624, 25097 }, + { 0x0625, 25349 }, + { 0x0626, 25155 }, + { 0x0627, 25310 }, + { 0x0628, 24144 }, + { 0x0629, 25027 }, + { 0x062A, 24996 }, + { 0x062B, 25851 }, + { 0x062C, 25554 }, + { 0x062D, 24447 }, + { 0x062E, 25577 }, + { 0x062F, 24260 }, + { 0x0630, 25838 }, + { 0x0631, 24833 }, + { 0x0632, 25897 }, + { 0x0633, 25747 }, + { 0x0634, 26192 }, + { 0x0635, 24929 }, + { 0x0636, 24231 }, + { 0x0637, 24966 }, + { 0x0638, 25287 }, + { 0x0639, 24090 }, + { 0x063A, 26027 }, + { 0x063B, 26073 }, + { 0x063C, 26087 }, + { 0x063D, 25996 }, + { 0x063E, 25950 }, + { 0x063F, 25958 }, + { 0x0640, 26440 }, + { 0x0641, 24346 }, + { 0x0642, 24797 }, + { 0x0643, 24672 }, + { 0x0644, 24720 }, + { 0x0645, 25600 }, + { 0x0646, 25635 }, + { 0x0647, 24545 }, + { 0x0648, 25076 }, + { 0x0649, 25432 }, + { 0x064A, 25147 }, + { 0x064B, 26453 }, + { 0x064C, 26447 }, + { 0x064D, 26465 }, + { 0x064E, 23786 }, + { 0x064F, 23766 }, + { 0x0650, 23807 }, + { 0x0651, 26412 }, + { 0x0652, 23947 }, + { 0x0653, 26402 }, + { 0x0654, 23801 }, + { 0x0655, 23804 }, + { 0x0656, 30224 }, + { 0x0657, 26462 }, + { 0x0658, 23718 }, + { 0x0659, 30220 }, + { 0x065A, 23962 }, + { 0x065B, 23968 }, + { 0x065C, 23957 }, + { 0x065D, 30217 }, + { 0x065E, 23788 }, + { 0x0660, 69372 }, + { 0x0661, 69354 }, + { 0x0662, 69360 }, + { 0x0663, 69381 }, + { 0x0664, 69366 }, + { 0x0665, 69363 }, + { 0x0666, 69357 }, + { 0x0667, 69378 }, + { 0x0668, 69375 }, + { 0x0669, 69369 }, + { 0x066A, 26430 }, + { 0x066B, 26427 }, + { 0x066C, 30227 }, + { 0x066D, 23711 }, + { 0x066E, 26331 }, + { 0x066F, 26339 }, + { 0x0670, 26398 }, + { 0x0671, 25416 }, + { 0x0672, 25313 }, + { 0x0673, 25320 }, + { 0x0674, 25535 }, + { 0x0675, 25549 }, + { 0x0676, 25539 }, + { 0x0677, 24001 }, + { 0x0678, 25544 }, + { 0x0679, 25874 }, + { 0x067A, 26290 }, + { 0x067B, 25453 }, + { 0x067C, 24999 }, + { 0x067D, 25004 }, + { 0x067E, 24774 }, + { 0x067F, 26254 }, + { 0x0680, 25910 }, + { 0x0681, 24465 }, + { 0x0682, 24457 }, + { 0x0683, 25711 }, + { 0x0684, 25489 }, + { 0x0685, 24500 }, + { 0x0686, 26225 }, + { 0x0687, 26375 }, + { 0x0688, 25476 }, + { 0x0689, 24296 }, + { 0x068A, 24263 }, + { 0x068B, 24269 }, + { 0x068C, 25933 }, + { 0x068D, 26277 }, + { 0x068E, 24333 }, + { 0x068F, 24301 }, + { 0x0690, 24289 }, + { 0x0691, 25734 }, + { 0x0692, 24884 }, + { 0x0693, 24873 }, + { 0x0694, 24836 }, + { 0x0695, 24890 }, + { 0x0696, 24842 }, + { 0x0697, 24851 }, + { 0x0698, 24659 }, + { 0x0699, 24866 }, + { 0x069A, 25750 }, + { 0x069B, 25785 }, + { 0x069C, 25792 }, + { 0x069D, 24932 }, + { 0x069E, 24939 }, + { 0x069F, 24969 }, + { 0x06A0, 24108 }, + { 0x06A1, 26335 }, + { 0x06A2, 24355 }, + { 0x06A3, 24349 }, + { 0x06A4, 25053 }, + { 0x06A5, 24369 }, + { 0x06A6, 26146 }, + { 0x06A7, 24800 }, + { 0x06A8, 24806 }, + { 0x06A9, 26064 }, + { 0x06AA, 26221 }, + { 0x06AB, 24688 }, + { 0x06AC, 24675 }, + { 0x06AD, 24028 }, + { 0x06AE, 24693 }, + { 0x06AF, 24405 }, + { 0x06B0, 24415 }, + { 0x06B1, 26123 }, + { 0x06B2, 24408 }, + { 0x06B3, 25512 }, + { 0x06B4, 24420 }, + { 0x06B5, 24734 }, + { 0x06B6, 24728 }, + { 0x06B7, 24740 }, + { 0x06B8, 24747 }, + { 0x06B9, 25638 }, + { 0x06BA, 25680 }, + { 0x06BB, 26169 }, + { 0x06BC, 25651 }, + { 0x06BD, 25668 }, + { 0x06BE, 24631 }, + { 0x06BF, 26228 }, + { 0x06C0, 24583 }, + { 0x06C1, 24548 }, + { 0x06C2, 24552 }, + { 0x06C3, 25031 }, + { 0x06C4, 25092 }, + { 0x06C5, 26343 }, + { 0x06C6, 24051 }, + { 0x06C7, 23998 }, + { 0x06C8, 24077 }, + { 0x06C9, 26359 }, + { 0x06CA, 25085 }, + { 0x06CB, 24064 }, + { 0x06CC, 25946 }, + { 0x06CD, 25150 }, + { 0x06CE, 25193 }, + { 0x06CF, 25079 }, + { 0x06D0, 23975 }, + { 0x06D1, 25199 }, + { 0x06D2, 25211 }, + { 0x06D3, 25215 }, + { 0x06D4, 23715 }, + { 0x06D5, 24025 }, + { 0x06D6, 23913 }, + { 0x06D7, 23903 }, + { 0x06D8, 23852 }, + { 0x06D9, 23835 }, + { 0x06DA, 23848 }, + { 0x06DB, 23880 }, + { 0x06DC, 23868 }, + { 0x06DD, 23702 }, + { 0x06DE, 23941 }, + { 0x06DF, 23892 }, + { 0x06E0, 23897 }, + { 0x06E1, 23885 }, + { 0x06E2, 23858 }, + { 0x06E3, 23825 }, + { 0x06E4, 23876 }, + { 0x06E5, 23829 }, + { 0x06E6, 23832 }, + { 0x06E7, 23844 }, + { 0x06E8, 23864 }, + { 0x06E9, 23817 }, + { 0x06EA, 23776 }, + { 0x06EB, 23781 }, + { 0x06EC, 26433 }, + { 0x06ED, 23821 }, + { 0x06EE, 24309 }, + { 0x06EF, 24913 }, + { 0x06F0, 51759 }, + { 0x06F1, 51735 }, + { 0x06F2, 51743 }, + { 0x06F3, 51771 }, + { 0x06F4, 51751 }, + { 0x06F5, 51747 }, + { 0x06F6, 51739 }, + { 0x06F7, 51767 }, + { 0x06F8, 51763 }, + { 0x06F9, 51755 }, + { 0x06FA, 26195 }, + { 0x06FB, 24234 }, + { 0x06FC, 26030 }, + { 0x06FD, 23740 }, + { 0x06FE, 23744 }, + { 0x06FF, 24605 }, + { 0x0700, 36871 }, + { 0x0701, 37114 }, + { 0x0702, 37094 }, + { 0x0703, 37118 }, + { 0x0704, 37098 }, + { 0x0705, 37106 }, + { 0x0706, 36885 }, + { 0x0707, 36889 }, + { 0x0708, 37121 }, + { 0x0709, 37101 }, + { 0x070A, 37109 }, + { 0x070B, 37081 }, + { 0x070C, 37084 }, + { 0x070D, 37087 }, + { 0x070F, 37126 }, + { 0x0710, 36987 }, + { 0x0711, 37046 }, + { 0x0712, 36952 }, + { 0x0713, 36994 }, + { 0x0714, 36997 }, + { 0x0715, 37004 }, + { 0x0716, 37010 }, + { 0x0717, 36934 }, + { 0x0718, 36949 }, + { 0x0719, 36984 }, + { 0x071A, 36955 }, + { 0x071B, 36970 }, + { 0x071C, 36973 }, + { 0x071D, 36977 }, + { 0x071E, 36980 }, + { 0x071F, 36958 }, + { 0x0720, 37007 }, + { 0x0721, 36940 }, + { 0x0722, 36943 }, + { 0x0723, 37027 }, + { 0x0724, 36990 }, + { 0x0725, 36931 }, + { 0x0726, 36937 }, + { 0x0727, 37042 }, + { 0x0728, 37001 }, + { 0x0729, 36961 }, + { 0x072A, 36964 }, + { 0x072B, 36967 }, + { 0x072C, 36946 }, + { 0x072D, 37015 }, + { 0x072E, 37019 }, + { 0x072F, 37023 }, + { 0x0730, 37050 }, + { 0x0731, 37053 }, + { 0x0732, 37056 }, + { 0x0733, 37059 }, + { 0x0734, 37062 }, + { 0x0735, 37065 }, + { 0x0736, 36907 }, + { 0x0737, 36910 }, + { 0x0738, 36927 }, + { 0x0739, 36923 }, + { 0x073A, 36899 }, + { 0x073B, 36902 }, + { 0x073C, 37111 }, + { 0x073D, 36893 }, + { 0x073E, 36896 }, + { 0x073F, 36913 }, + { 0x0740, 37078 }, + { 0x0741, 37092 }, + { 0x0742, 37090 }, + { 0x0743, 36875 }, + { 0x0744, 36880 }, + { 0x0745, 36915 }, + { 0x0746, 36919 }, + { 0x0747, 37070 }, + { 0x0748, 37074 }, + { 0x0749, 36905 }, + { 0x074A, 37068 }, + { 0x074D, 37038 }, + { 0x074E, 37034 }, + { 0x074F, 37030 }, + { 0x0750, 24195 }, + { 0x0751, 24147 }, + { 0x0752, 24173 }, + { 0x0753, 24182 }, + { 0x0754, 24157 }, + { 0x0755, 24203 }, + { 0x0756, 24167 }, + { 0x0757, 24450 }, + { 0x0758, 24507 }, + { 0x0759, 24278 }, + { 0x075A, 24315 }, + { 0x075B, 24908 }, + { 0x075C, 25767 }, + { 0x075D, 24093 }, + { 0x075E, 24115 }, + { 0x075F, 24100 }, + { 0x0760, 24362 }, + { 0x0761, 24376 }, + { 0x0762, 26067 }, + { 0x0763, 26080 }, + { 0x0764, 26094 }, + { 0x0765, 25603 }, + { 0x0766, 25609 }, + { 0x0767, 25644 }, + { 0x0768, 25662 }, + { 0x0769, 25656 }, + { 0x076A, 24723 }, + { 0x076B, 24858 }, + { 0x076C, 24878 }, + { 0x076D, 25759 }, + { 0x076E, 24491 }, + { 0x076F, 24471 }, + { 0x0770, 25774 }, + { 0x0771, 24897 }, + { 0x0772, 24482 }, + { 0x0773, 25393 }, + { 0x0774, 25402 }, + { 0x0775, 25966 }, + { 0x0776, 25986 }, + { 0x0777, 25976 }, + { 0x0778, 25119 }, + { 0x0779, 25128 }, + { 0x077A, 25240 }, + { 0x077B, 25250 }, + { 0x077C, 24516 }, + { 0x077D, 25803 }, + { 0x077E, 25812 }, + { 0x077F, 24681 }, + { 0x0780, 37486 }, + { 0x0781, 37591 }, + { 0x0782, 37534 }, + { 0x0783, 37492 }, + { 0x0784, 37483 }, + { 0x0785, 37588 }, + { 0x0786, 37525 }, + { 0x0787, 37516 }, + { 0x0788, 37543 }, + { 0x0789, 37531 }, + { 0x078A, 37519 }, + { 0x078B, 37552 }, + { 0x078C, 37510 }, + { 0x078D, 37528 }, + { 0x078E, 37522 }, + { 0x078F, 37585 }, + { 0x0790, 37540 }, + { 0x0791, 37567 }, + { 0x0792, 37579 }, + { 0x0793, 37576 }, + { 0x0794, 37495 }, + { 0x0795, 37573 }, + { 0x0796, 37570 }, + { 0x0797, 37582 }, + { 0x0798, 37513 }, + { 0x0799, 37504 }, + { 0x079A, 37507 }, + { 0x079B, 37564 }, + { 0x079C, 37498 }, + { 0x079D, 37561 }, + { 0x079E, 37558 }, + { 0x079F, 37549 }, + { 0x07A0, 37477 }, + { 0x07A1, 37480 }, + { 0x07A2, 37501 }, + { 0x07A3, 37555 }, + { 0x07A4, 37537 }, + { 0x07A5, 37546 }, + { 0x07A6, 37594 }, + { 0x07A7, 37604 }, + { 0x07A8, 37598 }, + { 0x07A9, 37606 }, + { 0x07AA, 37602 }, + { 0x07AB, 37612 }, + { 0x07AC, 37596 }, + { 0x07AD, 37608 }, + { 0x07AE, 37600 }, + { 0x07AF, 37610 }, + { 0x07B0, 37475 }, + { 0x07B1, 37489 }, + { 0x07C0, 6538 }, + { 0x07C1, 6520 }, + { 0x07C2, 6526 }, + { 0x07C3, 6547 }, + { 0x07C4, 6532 }, + { 0x07C5, 6529 }, + { 0x07C6, 6523 }, + { 0x07C7, 6544 }, + { 0x07C8, 6541 }, + { 0x07C9, 6535 }, + { 0x07CA, 6550 }, + { 0x07CB, 6574 }, + { 0x07CC, 6556 }, + { 0x07CD, 6553 }, + { 0x07CE, 6565 }, + { 0x07CF, 6602 }, + { 0x07D0, 6562 }, + { 0x07D1, 6651 }, + { 0x07D2, 6559 }, + { 0x07D3, 6568 }, + { 0x07D4, 6605 }, + { 0x07D5, 6614 }, + { 0x07D6, 6583 }, + { 0x07D7, 6623 }, + { 0x07D8, 6571 }, + { 0x07D9, 6608 }, + { 0x07DA, 6636 }, + { 0x07DB, 6611 }, + { 0x07DC, 6626 }, + { 0x07DD, 6577 }, + { 0x07DE, 6586 }, + { 0x07DF, 6589 }, + { 0x07E0, 6598 }, + { 0x07E1, 6592 }, + { 0x07E2, 6629 }, + { 0x07E3, 6595 }, + { 0x07E4, 6580 }, + { 0x07E5, 6617 }, + { 0x07E6, 6620 }, + { 0x07E7, 6632 }, + { 0x07E8, 6639 }, + { 0x07E9, 6647 }, + { 0x07EA, 6643 }, + { 0x07EB, 6686 }, + { 0x07EC, 6681 }, + { 0x07ED, 6691 }, + { 0x07EE, 6676 }, + { 0x07EF, 6666 }, + { 0x07F0, 6661 }, + { 0x07F1, 6671 }, + { 0x07F2, 6701 }, + { 0x07F3, 6696 }, + { 0x07F4, 6514 }, + { 0x07F5, 6510 }, + { 0x07F6, 6654 }, + { 0x07F7, 6658 }, + { 0x07F8, 6518 }, + { 0x07F9, 6707 }, + { 0x07FA, 6705 }, + { 0x0901, 66870 }, + { 0x0902, 66864 }, + { 0x0903, 66861 }, + { 0x0904, 67167 }, + { 0x0905, 66990 }, + { 0x0906, 67005 }, + { 0x0907, 66996 }, + { 0x0908, 67032 }, + { 0x0909, 67002 }, + { 0x090A, 67065 }, + { 0x090B, 67199 }, + { 0x090C, 67195 }, + { 0x090D, 67183 }, + { 0x090E, 67171 }, + { 0x090F, 66993 }, + { 0x0910, 67008 }, + { 0x0911, 67187 }, + { 0x0912, 67175 }, + { 0x0913, 66999 }, + { 0x0914, 67011 }, + { 0x0915, 67038 }, + { 0x0916, 67104 }, + { 0x0917, 67026 }, + { 0x0918, 67095 }, + { 0x0919, 67110 }, + { 0x091A, 67017 }, + { 0x091B, 67083 }, + { 0x091C, 67035 }, + { 0x091D, 67098 }, + { 0x091E, 67116 }, + { 0x091F, 67137 }, + { 0x0920, 67161 }, + { 0x0921, 67086 }, + { 0x0922, 67146 }, + { 0x0923, 67113 }, + { 0x0924, 67062 }, + { 0x0925, 67134 }, + { 0x0926, 67020 }, + { 0x0927, 67089 }, + { 0x0928, 67047 }, + { 0x0929, 67158 }, + { 0x092A, 67050 }, + { 0x092B, 67119 }, + { 0x092C, 67014 }, + { 0x092D, 67080 }, + { 0x092E, 67044 }, + { 0x092F, 67071 }, + { 0x0930, 67056 }, + { 0x0931, 67125 }, + { 0x0932, 67041 }, + { 0x0933, 67107 }, + { 0x0934, 67155 }, + { 0x0935, 67068 }, + { 0x0936, 67128 }, + { 0x0937, 67131 }, + { 0x0938, 67059 }, + { 0x0939, 67029 }, + { 0x093C, 66855 }, + { 0x093D, 66867 }, + { 0x093E, 66927 }, + { 0x093F, 66915 }, + { 0x0940, 66939 }, + { 0x0941, 66923 }, + { 0x0942, 66943 }, + { 0x0943, 66972 }, + { 0x0944, 66982 }, + { 0x0945, 66957 }, + { 0x0946, 66947 }, + { 0x0947, 66911 }, + { 0x0948, 66931 }, + { 0x0949, 66962 }, + { 0x094A, 66952 }, + { 0x094B, 66919 }, + { 0x094C, 66935 }, + { 0x094D, 66858 }, + { 0x0950, 66848 }, + { 0x0951, 67211 }, + { 0x0952, 67215 }, + { 0x0953, 66908 }, + { 0x0954, 66873 }, + { 0x0958, 67053 }, + { 0x0959, 67152 }, + { 0x095A, 67149 }, + { 0x095B, 67074 }, + { 0x095C, 67164 }, + { 0x095D, 67122 }, + { 0x095E, 67023 }, + { 0x095F, 67140 }, + { 0x0960, 67207 }, + { 0x0961, 67203 }, + { 0x0962, 66967 }, + { 0x0963, 66977 }, + { 0x0964, 66876 }, + { 0x0965, 66987 }, + { 0x0966, 66896 }, + { 0x0967, 66878 }, + { 0x0968, 66884 }, + { 0x0969, 66905 }, + { 0x096A, 66890 }, + { 0x096B, 66887 }, + { 0x096C, 66881 }, + { 0x096D, 66902 }, + { 0x096E, 66899 }, + { 0x096F, 66893 }, + { 0x0970, 67219 }, + { 0x0971, 66850 }, + { 0x0972, 67179 }, + { 0x097B, 67092 }, + { 0x097C, 67101 }, + { 0x097D, 67191 }, + { 0x097E, 67143 }, + { 0x097F, 67077 }, + { 0x0981, 37801 }, + { 0x0982, 37795 }, + { 0x0983, 37792 }, + { 0x0985, 37898 }, + { 0x0986, 37913 }, + { 0x0987, 37904 }, + { 0x0988, 37937 }, + { 0x0989, 37910 }, + { 0x098A, 37979 }, + { 0x098B, 38053 }, + { 0x098C, 38049 }, + { 0x098F, 37901 }, + { 0x0990, 37916 }, + { 0x0993, 37907 }, + { 0x0994, 37919 }, + { 0x0995, 37943 }, + { 0x0996, 38003 }, + { 0x0997, 37931 }, + { 0x0998, 37997 }, + { 0x0999, 38006 }, + { 0x099A, 37925 }, + { 0x099B, 37988 }, + { 0x099C, 37940 }, + { 0x099D, 38000 }, + { 0x099E, 38012 }, + { 0x099F, 38033 }, + { 0x09A0, 38042 }, + { 0x09A1, 37991 }, + { 0x09A2, 38039 }, + { 0x09A3, 38009 }, + { 0x09A4, 37976 }, + { 0x09A5, 38030 }, + { 0x09A6, 37928 }, + { 0x09A7, 37994 }, + { 0x09A8, 37952 }, + { 0x09AA, 37955 }, + { 0x09AB, 38015 }, + { 0x09AC, 37922 }, + { 0x09AD, 37985 }, + { 0x09AE, 37949 }, + { 0x09AF, 37982 }, + { 0x09B0, 37958 }, + { 0x09B2, 37946 }, + { 0x09B6, 38024 }, + { 0x09B7, 38027 }, + { 0x09B8, 37973 }, + { 0x09B9, 37934 }, + { 0x09BC, 37786 }, + { 0x09BD, 37798 }, + { 0x09BE, 37856 }, + { 0x09BF, 37844 }, + { 0x09C0, 37868 }, + { 0x09C1, 37852 }, + { 0x09C2, 37872 }, + { 0x09C3, 37881 }, + { 0x09C4, 37891 }, + { 0x09C7, 37840 }, + { 0x09C8, 37860 }, + { 0x09CB, 37848 }, + { 0x09CC, 37864 }, + { 0x09CD, 37789 }, + { 0x09CE, 38045 }, + { 0x09D7, 37782 }, + { 0x09DC, 38021 }, + { 0x09DD, 38018 }, + { 0x09DF, 38036 }, + { 0x09E0, 38061 }, + { 0x09E1, 38057 }, + { 0x09E2, 37876 }, + { 0x09E3, 37886 }, + { 0x09E6, 37822 }, + { 0x09E7, 37804 }, + { 0x09E8, 37810 }, + { 0x09E9, 37831 }, + { 0x09EA, 37816 }, + { 0x09EB, 37813 }, + { 0x09EC, 37807 }, + { 0x09ED, 37828 }, + { 0x09EE, 37825 }, + { 0x09EF, 37819 }, + { 0x09F0, 37967 }, + { 0x09F1, 37961 }, + { 0x09F2, 37834 }, + { 0x09F3, 37837 }, + { 0x09F4, 38065 }, + { 0x09F5, 38077 }, + { 0x09F6, 38085 }, + { 0x09F7, 38081 }, + { 0x09F8, 38069 }, + { 0x09F9, 38089 }, + { 0x09FA, 37896 }, + { 0x0A01, 52505 }, + { 0x0A02, 52509 }, + { 0x0A03, 52524 }, + { 0x0A05, 52597 }, + { 0x0A06, 52606 }, + { 0x0A07, 52600 }, + { 0x0A08, 52636 }, + { 0x0A09, 52603 }, + { 0x0A0A, 52669 }, + { 0x0A0F, 52624 }, + { 0x0A10, 52609 }, + { 0x0A13, 52654 }, + { 0x0A14, 52612 }, + { 0x0A15, 52642 }, + { 0x0A16, 52699 }, + { 0x0A17, 52630 }, + { 0x0A18, 52693 }, + { 0x0A19, 52705 }, + { 0x0A1A, 52618 }, + { 0x0A1B, 52684 }, + { 0x0A1C, 52639 }, + { 0x0A1D, 52696 }, + { 0x0A1E, 52711 }, + { 0x0A1F, 52726 }, + { 0x0A20, 52738 }, + { 0x0A21, 52687 }, + { 0x0A22, 52729 }, + { 0x0A23, 52708 }, + { 0x0A24, 52666 }, + { 0x0A25, 52723 }, + { 0x0A26, 52621 }, + { 0x0A27, 52690 }, + { 0x0A28, 52651 }, + { 0x0A2A, 52657 }, + { 0x0A2B, 52714 }, + { 0x0A2C, 52615 }, + { 0x0A2D, 52681 }, + { 0x0A2E, 52648 }, + { 0x0A2F, 52675 }, + { 0x0A30, 52660 }, + { 0x0A32, 52645 }, + { 0x0A33, 52702 }, + { 0x0A35, 52672 }, + { 0x0A36, 52720 }, + { 0x0A38, 52663 }, + { 0x0A39, 52633 }, + { 0x0A3C, 52512 }, + { 0x0A3E, 52569 }, + { 0x0A3F, 52561 }, + { 0x0A40, 52585 }, + { 0x0A41, 52565 }, + { 0x0A42, 52593 }, + { 0x0A47, 52581 }, + { 0x0A48, 52573 }, + { 0x0A4B, 52589 }, + { 0x0A4C, 52577 }, + { 0x0A4D, 52518 }, + { 0x0A51, 52515 }, + { 0x0A59, 52735 }, + { 0x0A5A, 52732 }, + { 0x0A5B, 52678 }, + { 0x0A5C, 52717 }, + { 0x0A5E, 52627 }, + { 0x0A66, 52547 }, + { 0x0A67, 52529 }, + { 0x0A68, 52535 }, + { 0x0A69, 52556 }, + { 0x0A6A, 52541 }, + { 0x0A6B, 52538 }, + { 0x0A6C, 52532 }, + { 0x0A6D, 52553 }, + { 0x0A6E, 52550 }, + { 0x0A6F, 52544 }, + { 0x0A70, 52559 }, + { 0x0A71, 52527 }, + { 0x0A72, 52501 }, + { 0x0A73, 52503 }, + { 0x0A74, 52498 }, + { 0x0A75, 52521 }, + { 0x0A81, 52240 }, + { 0x0A82, 52234 }, + { 0x0A83, 52231 }, + { 0x0A85, 52350 }, + { 0x0A86, 52365 }, + { 0x0A87, 52356 }, + { 0x0A88, 52389 }, + { 0x0A89, 52362 }, + { 0x0A8A, 52419 }, + { 0x0A8B, 52486 }, + { 0x0A8C, 52482 }, + { 0x0A8D, 52342 }, + { 0x0A8F, 52353 }, + { 0x0A90, 52368 }, + { 0x0A91, 52346 }, + { 0x0A93, 52359 }, + { 0x0A94, 52371 }, + { 0x0A95, 52395 }, + { 0x0A96, 52446 }, + { 0x0A97, 52383 }, + { 0x0A98, 52440 }, + { 0x0A99, 52452 }, + { 0x0A9A, 52377 }, + { 0x0A9B, 52431 }, + { 0x0A9C, 52392 }, + { 0x0A9D, 52443 }, + { 0x0A9E, 52458 }, + { 0x0A9F, 52473 }, + { 0x0AA0, 52479 }, + { 0x0AA1, 52434 }, + { 0x0AA2, 52476 }, + { 0x0AA3, 52455 }, + { 0x0AA4, 52416 }, + { 0x0AA5, 52470 }, + { 0x0AA6, 52380 }, + { 0x0AA7, 52437 }, + { 0x0AA8, 52404 }, + { 0x0AAA, 52407 }, + { 0x0AAB, 52461 }, + { 0x0AAC, 52374 }, + { 0x0AAD, 52428 }, + { 0x0AAE, 52401 }, + { 0x0AAF, 52425 }, + { 0x0AB0, 52410 }, + { 0x0AB2, 52398 }, + { 0x0AB3, 52449 }, + { 0x0AB5, 52422 }, + { 0x0AB6, 52464 }, + { 0x0AB7, 52467 }, + { 0x0AB8, 52413 }, + { 0x0AB9, 52386 }, + { 0x0ABC, 52225 }, + { 0x0ABD, 52237 }, + { 0x0ABE, 52292 }, + { 0x0ABF, 52280 }, + { 0x0AC0, 52304 }, + { 0x0AC1, 52288 }, + { 0x0AC2, 52308 }, + { 0x0AC3, 52327 }, + { 0x0AC4, 52337 }, + { 0x0AC5, 52312 }, + { 0x0AC7, 52276 }, + { 0x0AC8, 52296 }, + { 0x0AC9, 52317 }, + { 0x0ACB, 52284 }, + { 0x0ACC, 52300 }, + { 0x0ACD, 52228 }, + { 0x0AD0, 52223 }, + { 0x0AE0, 52494 }, + { 0x0AE1, 52490 }, + { 0x0AE2, 52322 }, + { 0x0AE3, 52332 }, + { 0x0AE6, 52261 }, + { 0x0AE7, 52243 }, + { 0x0AE8, 52249 }, + { 0x0AE9, 52270 }, + { 0x0AEA, 52255 }, + { 0x0AEB, 52252 }, + { 0x0AEC, 52246 }, + { 0x0AED, 52267 }, + { 0x0AEE, 52264 }, + { 0x0AEF, 52258 }, + { 0x0AF1, 52273 }, + { 0x0B01, 21480 }, + { 0x0B02, 21474 }, + { 0x0B03, 21471 }, + { 0x0B05, 21571 }, + { 0x0B06, 21586 }, + { 0x0B07, 21577 }, + { 0x0B08, 21610 }, + { 0x0B09, 21583 }, + { 0x0B0A, 21640 }, + { 0x0B0B, 21719 }, + { 0x0B0C, 21715 }, + { 0x0B0F, 21574 }, + { 0x0B10, 21589 }, + { 0x0B13, 21580 }, + { 0x0B14, 21592 }, + { 0x0B15, 21616 }, + { 0x0B16, 21670 }, + { 0x0B17, 21604 }, + { 0x0B18, 21664 }, + { 0x0B19, 21676 }, + { 0x0B1A, 21598 }, + { 0x0B1B, 21655 }, + { 0x0B1C, 21613 }, + { 0x0B1D, 21667 }, + { 0x0B1E, 21682 }, + { 0x0B1F, 21703 }, + { 0x0B20, 21712 }, + { 0x0B21, 21658 }, + { 0x0B22, 21709 }, + { 0x0B23, 21679 }, + { 0x0B24, 21637 }, + { 0x0B25, 21700 }, + { 0x0B26, 21601 }, + { 0x0B27, 21661 }, + { 0x0B28, 21625 }, + { 0x0B2A, 21628 }, + { 0x0B2B, 21685 }, + { 0x0B2C, 21595 }, + { 0x0B2D, 21652 }, + { 0x0B2E, 21622 }, + { 0x0B2F, 21649 }, + { 0x0B30, 21631 }, + { 0x0B32, 21619 }, + { 0x0B33, 21673 }, + { 0x0B35, 21643 }, + { 0x0B36, 21694 }, + { 0x0B37, 21697 }, + { 0x0B38, 21634 }, + { 0x0B39, 21607 }, + { 0x0B3C, 21465 }, + { 0x0B3D, 21477 }, + { 0x0B3E, 21529 }, + { 0x0B3F, 21517 }, + { 0x0B40, 21541 }, + { 0x0B41, 21525 }, + { 0x0B42, 21545 }, + { 0x0B43, 21554 }, + { 0x0B44, 21564 }, + { 0x0B47, 21513 }, + { 0x0B48, 21533 }, + { 0x0B4B, 21521 }, + { 0x0B4C, 21537 }, + { 0x0B4D, 21468 }, + { 0x0B56, 21457 }, + { 0x0B57, 21461 }, + { 0x0B5C, 21691 }, + { 0x0B5D, 21688 }, + { 0x0B5F, 21706 }, + { 0x0B60, 21727 }, + { 0x0B61, 21723 }, + { 0x0B62, 21549 }, + { 0x0B63, 21559 }, + { 0x0B66, 21501 }, + { 0x0B67, 21483 }, + { 0x0B68, 21489 }, + { 0x0B69, 21510 }, + { 0x0B6A, 21495 }, + { 0x0B6B, 21492 }, + { 0x0B6C, 21486 }, + { 0x0B6D, 21507 }, + { 0x0B6E, 21504 }, + { 0x0B6F, 21498 }, + { 0x0B70, 21569 }, + { 0x0B71, 21646 }, + { 0x0B82, 22772 }, + { 0x0B83, 22769 }, + { 0x0B85, 22864 }, + { 0x0B86, 22879 }, + { 0x0B87, 22870 }, + { 0x0B88, 22897 }, + { 0x0B89, 22876 }, + { 0x0B8A, 22930 }, + { 0x0B8E, 22867 }, + { 0x0B8F, 22891 }, + { 0x0B90, 22882 }, + { 0x0B92, 22873 }, + { 0x0B93, 22915 }, + { 0x0B94, 22885 }, + { 0x0B95, 22903 }, + { 0x0B99, 22942 }, + { 0x0B9A, 22888 }, + { 0x0B9C, 22900 }, + { 0x0B9E, 22948 }, + { 0x0B9F, 22960 }, + { 0x0BA3, 22945 }, + { 0x0BA4, 22927 }, + { 0x0BA8, 22912 }, + { 0x0BA9, 22966 }, + { 0x0BAA, 22918 }, + { 0x0BAE, 22909 }, + { 0x0BAF, 22936 }, + { 0x0BB0, 22921 }, + { 0x0BB1, 22951 }, + { 0x0BB2, 22906 }, + { 0x0BB3, 22939 }, + { 0x0BB4, 22963 }, + { 0x0BB5, 22933 }, + { 0x0BB6, 22954 }, + { 0x0BB7, 22957 }, + { 0x0BB8, 22924 }, + { 0x0BB9, 22894 }, + { 0x0BBE, 22833 }, + { 0x0BBF, 22821 }, + { 0x0BC0, 22849 }, + { 0x0BC1, 22829 }, + { 0x0BC2, 22857 }, + { 0x0BC6, 22817 }, + { 0x0BC7, 22845 }, + { 0x0BC8, 22837 }, + { 0x0BCA, 22825 }, + { 0x0BCB, 22853 }, + { 0x0BCC, 22841 }, + { 0x0BCD, 22766 }, + { 0x0BD0, 22761 }, + { 0x0BD7, 22757 }, + { 0x0BE6, 22799 }, + { 0x0BE7, 22781 }, + { 0x0BE8, 22787 }, + { 0x0BE9, 22808 }, + { 0x0BEA, 22793 }, + { 0x0BEB, 22790 }, + { 0x0BEC, 22784 }, + { 0x0BED, 22805 }, + { 0x0BEE, 22802 }, + { 0x0BEF, 22796 }, + { 0x0BF0, 22977 }, + { 0x0BF1, 22969 }, + { 0x0BF2, 22973 }, + { 0x0BF3, 22763 }, + { 0x0BF4, 22811 }, + { 0x0BF5, 22775 }, + { 0x0BF6, 22778 }, + { 0x0BF7, 22861 }, + { 0x0BF8, 22753 }, + { 0x0BF9, 22814 }, + { 0x0BFA, 22980 }, + { 0x0C01, 37149 }, + { 0x0C02, 37143 }, + { 0x0C03, 37140 }, + { 0x0C05, 37249 }, + { 0x0C06, 37264 }, + { 0x0C07, 37255 }, + { 0x0C08, 37291 }, + { 0x0C09, 37261 }, + { 0x0C0A, 37324 }, + { 0x0C0B, 37400 }, + { 0x0C0C, 37396 }, + { 0x0C0E, 37252 }, + { 0x0C0F, 37282 }, + { 0x0C10, 37267 }, + { 0x0C12, 37258 }, + { 0x0C13, 37309 }, + { 0x0C14, 37270 }, + { 0x0C15, 37297 }, + { 0x0C16, 37354 }, + { 0x0C17, 37285 }, + { 0x0C18, 37348 }, + { 0x0C19, 37360 }, + { 0x0C1A, 37276 }, + { 0x0C1B, 37336 }, + { 0x0C1C, 37294 }, + { 0x0C1D, 37351 }, + { 0x0C1E, 37366 }, + { 0x0C1F, 37387 }, + { 0x0C20, 37393 }, + { 0x0C21, 37339 }, + { 0x0C22, 37390 }, + { 0x0C23, 37363 }, + { 0x0C24, 37321 }, + { 0x0C25, 37381 }, + { 0x0C26, 37279 }, + { 0x0C27, 37342 }, + { 0x0C28, 37306 }, + { 0x0C2A, 37312 }, + { 0x0C2B, 37369 }, + { 0x0C2C, 37273 }, + { 0x0C2D, 37333 }, + { 0x0C2E, 37303 }, + { 0x0C2F, 37330 }, + { 0x0C30, 37315 }, + { 0x0C31, 37372 }, + { 0x0C32, 37300 }, + { 0x0C33, 37357 }, + { 0x0C35, 37327 }, + { 0x0C36, 37375 }, + { 0x0C37, 37378 }, + { 0x0C38, 37318 }, + { 0x0C39, 37288 }, + { 0x0C3D, 37146 }, + { 0x0C3E, 37198 }, + { 0x0C3F, 37186 }, + { 0x0C40, 37214 }, + { 0x0C41, 37194 }, + { 0x0C42, 37222 }, + { 0x0C43, 37231 }, + { 0x0C44, 37241 }, + { 0x0C46, 37182 }, + { 0x0C47, 37210 }, + { 0x0C48, 37202 }, + { 0x0C4A, 37190 }, + { 0x0C4B, 37218 }, + { 0x0C4C, 37206 }, + { 0x0C4D, 37137 }, + { 0x0C55, 37246 }, + { 0x0C56, 37130 }, + { 0x0C58, 37384 }, + { 0x0C59, 37345 }, + { 0x0C60, 37408 }, + { 0x0C61, 37404 }, + { 0x0C62, 37226 }, + { 0x0C63, 37236 }, + { 0x0C66, 37170 }, + { 0x0C67, 37152 }, + { 0x0C68, 37158 }, + { 0x0C69, 37179 }, + { 0x0C6A, 37164 }, + { 0x0C6B, 37161 }, + { 0x0C6C, 37155 }, + { 0x0C6D, 37176 }, + { 0x0C6E, 37173 }, + { 0x0C6F, 37167 }, + { 0x0C78, 37448 }, + { 0x0C79, 37412 }, + { 0x0C7A, 37430 }, + { 0x0C7B, 37457 }, + { 0x0C7C, 37421 }, + { 0x0C7D, 37439 }, + { 0x0C7E, 37466 }, + { 0x0C7F, 37134 }, + { 0x0C82, 40655 }, + { 0x0C83, 40652 }, + { 0x0C85, 40764 }, + { 0x0C86, 40779 }, + { 0x0C87, 40770 }, + { 0x0C88, 40809 }, + { 0x0C89, 40776 }, + { 0x0C8A, 40842 }, + { 0x0C8B, 40912 }, + { 0x0C8C, 40908 }, + { 0x0C8E, 40767 }, + { 0x0C8F, 40797 }, + { 0x0C90, 40782 }, + { 0x0C92, 40773 }, + { 0x0C93, 40827 }, + { 0x0C94, 40785 }, + { 0x0C95, 40815 }, + { 0x0C96, 40869 }, + { 0x0C97, 40803 }, + { 0x0C98, 40863 }, + { 0x0C99, 40875 }, + { 0x0C9A, 40791 }, + { 0x0C9B, 40854 }, + { 0x0C9C, 40812 }, + { 0x0C9D, 40866 }, + { 0x0C9E, 40881 }, + { 0x0C9F, 40899 }, + { 0x0CA0, 40905 }, + { 0x0CA1, 40857 }, + { 0x0CA2, 40902 }, + { 0x0CA3, 40878 }, + { 0x0CA4, 40839 }, + { 0x0CA5, 40896 }, + { 0x0CA6, 40794 }, + { 0x0CA7, 40860 }, + { 0x0CA8, 40824 }, + { 0x0CAA, 40830 }, + { 0x0CAB, 40884 }, + { 0x0CAC, 40788 }, + { 0x0CAD, 40851 }, + { 0x0CAE, 40821 }, + { 0x0CAF, 40848 }, + { 0x0CB0, 40833 }, + { 0x0CB1, 40887 }, + { 0x0CB2, 40818 }, + { 0x0CB3, 40872 }, + { 0x0CB5, 40845 }, + { 0x0CB6, 40890 }, + { 0x0CB7, 40893 }, + { 0x0CB8, 40836 }, + { 0x0CB9, 40806 }, + { 0x0CBC, 40646 }, + { 0x0CBD, 40658 }, + { 0x0CBE, 40713 }, + { 0x0CBF, 40701 }, + { 0x0CC0, 40729 }, + { 0x0CC1, 40709 }, + { 0x0CC2, 40737 }, + { 0x0CC3, 40746 }, + { 0x0CC4, 40756 }, + { 0x0CC6, 40697 }, + { 0x0CC7, 40725 }, + { 0x0CC8, 40717 }, + { 0x0CCA, 40705 }, + { 0x0CCB, 40733 }, + { 0x0CCC, 40721 }, + { 0x0CCD, 40649 }, + { 0x0CD5, 40761 }, + { 0x0CD6, 40642 }, + { 0x0CDE, 40800 }, + { 0x0CE0, 40920 }, + { 0x0CE1, 40916 }, + { 0x0CE2, 40741 }, + { 0x0CE3, 40751 }, + { 0x0CE6, 40685 }, + { 0x0CE7, 40667 }, + { 0x0CE8, 40673 }, + { 0x0CE9, 40694 }, + { 0x0CEA, 40679 }, + { 0x0CEB, 40676 }, + { 0x0CEC, 40670 }, + { 0x0CED, 40691 }, + { 0x0CEE, 40688 }, + { 0x0CEF, 40682 }, + { 0x0CF1, 40661 }, + { 0x0CF2, 40664 }, + { 0x0D02, 64805 }, + { 0x0D03, 64802 }, + { 0x0D05, 64905 }, + { 0x0D06, 64920 }, + { 0x0D07, 64911 }, + { 0x0D08, 64947 }, + { 0x0D09, 64917 }, + { 0x0D0A, 64980 }, + { 0x0D0B, 65077 }, + { 0x0D0C, 65073 }, + { 0x0D0E, 64908 }, + { 0x0D0F, 64938 }, + { 0x0D10, 64923 }, + { 0x0D12, 64914 }, + { 0x0D13, 64965 }, + { 0x0D14, 64926 }, + { 0x0D15, 64953 }, + { 0x0D16, 65007 }, + { 0x0D17, 64941 }, + { 0x0D18, 65001 }, + { 0x0D19, 65013 }, + { 0x0D1A, 64932 }, + { 0x0D1B, 64992 }, + { 0x0D1C, 64950 }, + { 0x0D1D, 65004 }, + { 0x0D1E, 65019 }, + { 0x0D1F, 65037 }, + { 0x0D20, 65046 }, + { 0x0D21, 64995 }, + { 0x0D22, 65040 }, + { 0x0D23, 65016 }, + { 0x0D24, 64977 }, + { 0x0D25, 65034 }, + { 0x0D26, 64935 }, + { 0x0D27, 64998 }, + { 0x0D28, 64962 }, + { 0x0D2A, 64968 }, + { 0x0D2B, 65022 }, + { 0x0D2C, 64929 }, + { 0x0D2D, 64989 }, + { 0x0D2E, 64959 }, + { 0x0D2F, 64986 }, + { 0x0D30, 64971 }, + { 0x0D31, 65025 }, + { 0x0D32, 64956 }, + { 0x0D33, 65010 }, + { 0x0D34, 65043 }, + { 0x0D35, 64983 }, + { 0x0D36, 65028 }, + { 0x0D37, 65031 }, + { 0x0D38, 64974 }, + { 0x0D39, 64944 }, + { 0x0D3D, 64808 }, + { 0x0D3E, 64857 }, + { 0x0D3F, 64845 }, + { 0x0D40, 64873 }, + { 0x0D41, 64853 }, + { 0x0D42, 64881 }, + { 0x0D43, 64890 }, + { 0x0D44, 64900 }, + { 0x0D46, 64841 }, + { 0x0D47, 64869 }, + { 0x0D48, 64861 }, + { 0x0D4A, 64849 }, + { 0x0D4B, 64877 }, + { 0x0D4C, 64865 }, + { 0x0D4D, 64799 }, + { 0x0D57, 64792 }, + { 0x0D60, 65085 }, + { 0x0D61, 65081 }, + { 0x0D62, 64885 }, + { 0x0D63, 64895 }, + { 0x0D66, 64829 }, + { 0x0D67, 64811 }, + { 0x0D68, 64817 }, + { 0x0D69, 64838 }, + { 0x0D6A, 64823 }, + { 0x0D6B, 64820 }, + { 0x0D6C, 64814 }, + { 0x0D6D, 64835 }, + { 0x0D6E, 64832 }, + { 0x0D6F, 64826 }, + { 0x0D70, 65097 }, + { 0x0D71, 65089 }, + { 0x0D72, 65093 }, + { 0x0D73, 65104 }, + { 0x0D74, 65100 }, + { 0x0D75, 65108 }, + { 0x0D79, 64796 }, + { 0x0D7A, 65065 }, + { 0x0D7B, 65057 }, + { 0x0D7C, 65069 }, + { 0x0D7D, 65053 }, + { 0x0D7E, 65061 }, + { 0x0D7F, 65049 }, + { 0x0D82, 43201 }, + { 0x0D83, 43198 }, + { 0x0D85, 43293 }, + { 0x0D86, 43308 }, + { 0x0D87, 43311 }, + { 0x0D88, 43395 }, + { 0x0D89, 43299 }, + { 0x0D8A, 43341 }, + { 0x0D8B, 43305 }, + { 0x0D8C, 43386 }, + { 0x0D8D, 43401 }, + { 0x0D8E, 43407 }, + { 0x0D8F, 43398 }, + { 0x0D90, 43404 }, + { 0x0D91, 43296 }, + { 0x0D92, 43332 }, + { 0x0D93, 43314 }, + { 0x0D94, 43302 }, + { 0x0D95, 43351 }, + { 0x0D96, 43317 }, + { 0x0D9A, 43442 }, + { 0x0D9B, 43482 }, + { 0x0D9C, 43434 }, + { 0x0D9D, 43474 }, + { 0x0D9E, 43344 }, + { 0x0D9F, 43361 }, + { 0x0DA0, 43426 }, + { 0x0DA1, 43466 }, + { 0x0DA2, 43438 }, + { 0x0DA3, 43478 }, + { 0x0DA4, 43382 }, + { 0x0DA5, 43377 }, + { 0x0DA6, 43365 }, + { 0x0DA7, 43458 }, + { 0x0DA8, 43498 }, + { 0x0DA9, 43454 }, + { 0x0DAA, 43494 }, + { 0x0DAB, 43414 }, + { 0x0DAC, 43369 }, + { 0x0DAD, 43450 }, + { 0x0DAE, 43490 }, + { 0x0DAF, 43430 }, + { 0x0DB0, 43470 }, + { 0x0DB1, 43324 }, + { 0x0DB3, 43357 }, + { 0x0DB4, 43446 }, + { 0x0DB5, 43486 }, + { 0x0DB6, 43422 }, + { 0x0DB7, 43462 }, + { 0x0DB8, 43348 }, + { 0x0DB9, 43289 }, + { 0x0DBA, 43392 }, + { 0x0DBB, 43354 }, + { 0x0DBD, 43320 }, + { 0x0DC0, 43389 }, + { 0x0DC1, 43373 }, + { 0x0DC2, 43418 }, + { 0x0DC3, 43328 }, + { 0x0DC4, 43338 }, + { 0x0DC5, 43410 }, + { 0x0DC6, 43335 }, + { 0x0DCA, 43195 }, + { 0x0DCF, 43277 }, + { 0x0DD0, 43244 }, + { 0x0DD1, 43219 }, + { 0x0DD2, 43234 }, + { 0x0DD3, 43209 }, + { 0x0DD4, 43239 }, + { 0x0DD6, 43214 }, + { 0x0DD8, 43285 }, + { 0x0DD9, 43254 }, + { 0x0DDA, 43204 }, + { 0x0DDB, 43249 }, + { 0x0DDC, 43265 }, + { 0x0DDD, 43258 }, + { 0x0DDE, 43271 }, + { 0x0DDF, 43281 }, + { 0x0DF2, 43229 }, + { 0x0DF3, 43224 }, + { 0x0DF4, 43502 }, + { 0x0E01, 9790 }, + { 0x0E02, 9880 }, + { 0x0E03, 9888 }, + { 0x0E04, 9892 }, + { 0x0E05, 9884 }, + { 0x0E06, 9896 }, + { 0x0E07, 9920 }, + { 0x0E08, 9864 }, + { 0x0E09, 9876 }, + { 0x0E0A, 9872 }, + { 0x0E0B, 9828 }, + { 0x0E0C, 9868 }, + { 0x0E0D, 9860 }, + { 0x0E0E, 9770 }, + { 0x0E0F, 9848 }, + { 0x0E10, 9936 }, + { 0x0E11, 9956 }, + { 0x0E12, 9952 }, + { 0x0E13, 9813 }, + { 0x0E14, 9766 }, + { 0x0E15, 9844 }, + { 0x0E16, 9944 }, + { 0x0E17, 9948 }, + { 0x0E18, 9940 }, + { 0x0E19, 9809 }, + { 0x0E1A, 9762 }, + { 0x0E1B, 9817 }, + { 0x0E1C, 9928 }, + { 0x0E1D, 9774 }, + { 0x0E1E, 9924 }, + { 0x0E1F, 9778 }, + { 0x0E20, 9932 }, + { 0x0E21, 9805 }, + { 0x0E22, 9856 }, + { 0x0E23, 9821 }, + { 0x0E24, 9825 }, + { 0x0E25, 9794 }, + { 0x0E26, 9802 }, + { 0x0E27, 9852 }, + { 0x0E28, 9840 }, + { 0x0E29, 9836 }, + { 0x0E2A, 9832 }, + { 0x0E2B, 9782 }, + { 0x0E2C, 9798 }, + { 0x0E2D, 9758 }, + { 0x0E2E, 9786 }, + { 0x0E2F, 10039 }, + { 0x0E30, 9960 }, + { 0x0E31, 9916 }, + { 0x0E32, 9980 }, + { 0x0E33, 9998 }, + { 0x0E34, 9968 }, + { 0x0E35, 10002 }, + { 0x0E36, 10006 }, + { 0x0E37, 10014 }, + { 0x0E38, 9976 }, + { 0x0E39, 10010 }, + { 0x0E3A, 10024 }, + { 0x0E3F, 9754 }, + { 0x0E40, 9964 }, + { 0x0E41, 9984 }, + { 0x0E42, 9972 }, + { 0x0E43, 9988 }, + { 0x0E44, 9993 }, + { 0x0E45, 10045 }, + { 0x0E46, 10027 }, + { 0x0E47, 10036 }, + { 0x0E48, 9900 }, + { 0x0E49, 9904 }, + { 0x0E4A, 9908 }, + { 0x0E4B, 9912 }, + { 0x0E4C, 10048 }, + { 0x0E4D, 10030 }, + { 0x0E4E, 10033 }, + { 0x0E4F, 10021 }, + { 0x0E50, 9742 }, + { 0x0E51, 9724 }, + { 0x0E52, 9730 }, + { 0x0E53, 9751 }, + { 0x0E54, 9736 }, + { 0x0E55, 9733 }, + { 0x0E56, 9727 }, + { 0x0E57, 9748 }, + { 0x0E58, 9745 }, + { 0x0E59, 9739 }, + { 0x0E5A, 10042 }, + { 0x0E5B, 10018 }, + { 0x0E81, 5948 }, + { 0x0E82, 5989 }, + { 0x0E84, 5985 }, + { 0x0E87, 5993 }, + { 0x0E88, 5926 }, + { 0x0E8A, 5968 }, + { 0x0E8D, 5996 }, + { 0x0E94, 5929 }, + { 0x0E95, 5976 }, + { 0x0E96, 6011 }, + { 0x0E97, 6007 }, + { 0x0E99, 5962 }, + { 0x0E9A, 5923 }, + { 0x0E9B, 5965 }, + { 0x0E9C, 6003 }, + { 0x0E9D, 5932 }, + { 0x0E9E, 5999 }, + { 0x0E9F, 5936 }, + { 0x0EA1, 5959 }, + { 0x0EA2, 5982 }, + { 0x0EA3, 5951 }, + { 0x0EA5, 5955 }, + { 0x0EA7, 5979 }, + { 0x0EAA, 5972 }, + { 0x0EAB, 5944 }, + { 0x0EAD, 5920 }, + { 0x0EAE, 5940 }, + { 0x0EAF, 6015 }, + { 0x0EB0, 5854 }, + { 0x0EB1, 5910 }, + { 0x0EB2, 5878 }, + { 0x0EB3, 5886 }, + { 0x0EB4, 5862 }, + { 0x0EB5, 5898 }, + { 0x0EB6, 5874 }, + { 0x0EB7, 5906 }, + { 0x0EB8, 5870 }, + { 0x0EB9, 5902 }, + { 0x0EBB, 5915 }, + { 0x0EBC, 6019 }, + { 0x0EBD, 6023 }, + { 0x0EC0, 5858 }, + { 0x0EC1, 5894 }, + { 0x0EC2, 5866 }, + { 0x0EC3, 5890 }, + { 0x0EC4, 5882 }, + { 0x0EC6, 5805 }, + { 0x0EC8, 5808 }, + { 0x0EC9, 5816 }, + { 0x0ECA, 5812 }, + { 0x0ECB, 5820 }, + { 0x0ECC, 6027 }, + { 0x0ECD, 6017 }, + { 0x0ED0, 5842 }, + { 0x0ED1, 5824 }, + { 0x0ED2, 5830 }, + { 0x0ED3, 5851 }, + { 0x0ED4, 5836 }, + { 0x0ED5, 5833 }, + { 0x0ED6, 5827 }, + { 0x0ED7, 5848 }, + { 0x0ED8, 5845 }, + { 0x0ED9, 5839 }, + { 0x0EDC, 5802 }, + { 0x0EDD, 5799 }, + { 0x0F00, 44295 }, + { 0x0F01, 43729 }, + { 0x0F02, 43720 }, + { 0x0F03, 43711 }, + { 0x0F04, 43850 }, + { 0x0F05, 43831 }, + { 0x0F06, 43789 }, + { 0x0F07, 43698 }, + { 0x0F08, 43820 }, + { 0x0F09, 43784 }, + { 0x0F0A, 43705 }, + { 0x0F0B, 43871 }, + { 0x0F0C, 43866 }, + { 0x0F0D, 43770 }, + { 0x0F0E, 43752 }, + { 0x0F0F, 43824 }, + { 0x0F10, 43760 }, + { 0x0F11, 43688 }, + { 0x0F12, 43765 }, + { 0x0F13, 43797 }, + { 0x0F14, 43736 }, + { 0x0F15, 44285 }, + { 0x0F16, 44290 }, + { 0x0F17, 44477 }, + { 0x0F18, 44489 }, + { 0x0F19, 44484 }, + { 0x0F1A, 43937 }, + { 0x0F1B, 43953 }, + { 0x0F1C, 43942 }, + { 0x0F1D, 43916 }, + { 0x0F1E, 43932 }, + { 0x0F1F, 43947 }, + { 0x0F20, 44030 }, + { 0x0F21, 43972 }, + { 0x0F22, 43978 }, + { 0x0F23, 44039 }, + { 0x0F24, 43984 }, + { 0x0F25, 43981 }, + { 0x0F26, 43975 }, + { 0x0F27, 44036 }, + { 0x0F28, 44033 }, + { 0x0F29, 44027 }, + { 0x0F2A, 43987 }, + { 0x0F2B, 43995 }, + { 0x0F2C, 44023 }, + { 0x0F2D, 44003 }, + { 0x0F2E, 43999 }, + { 0x0F2F, 43991 }, + { 0x0F30, 44019 }, + { 0x0F31, 44015 }, + { 0x0F32, 44007 }, + { 0x0F33, 44011 }, + { 0x0F34, 43773 }, + { 0x0F35, 43740 }, + { 0x0F36, 43805 }, + { 0x0F37, 43746 }, + { 0x0F38, 43674 }, + { 0x0F39, 43694 }, + { 0x0F3A, 43683 }, + { 0x0F3B, 43678 }, + { 0x0F3C, 43669 }, + { 0x0F3D, 43664 }, + { 0x0F3E, 43908 }, + { 0x0F3F, 43894 }, + { 0x0F40, 44132 }, + { 0x0F41, 44183 }, + { 0x0F42, 44123 }, + { 0x0F43, 44180 }, + { 0x0F44, 44189 }, + { 0x0F45, 44117 }, + { 0x0F46, 44168 }, + { 0x0F47, 44129 }, + { 0x0F49, 44195 }, + { 0x0F4A, 44216 }, + { 0x0F4B, 44234 }, + { 0x0F4C, 44171 }, + { 0x0F4D, 44222 }, + { 0x0F4E, 44192 }, + { 0x0F4F, 44153 }, + { 0x0F50, 44210 }, + { 0x0F51, 44120 }, + { 0x0F52, 44174 }, + { 0x0F53, 44141 }, + { 0x0F54, 44144 }, + { 0x0F55, 44198 }, + { 0x0F56, 44114 }, + { 0x0F57, 44165 }, + { 0x0F58, 44138 }, + { 0x0F59, 44213 }, + { 0x0F5A, 44231 }, + { 0x0F5B, 44177 }, + { 0x0F5C, 44225 }, + { 0x0F5D, 44156 }, + { 0x0F5E, 44219 }, + { 0x0F5F, 44162 }, + { 0x0F60, 44111 }, + { 0x0F61, 44159 }, + { 0x0F62, 44147 }, + { 0x0F63, 44135 }, + { 0x0F64, 44204 }, + { 0x0F65, 44207 }, + { 0x0F66, 44150 }, + { 0x0F67, 44126 }, + { 0x0F68, 44108 }, + { 0x0F69, 44228 }, + { 0x0F6A, 44237 }, + { 0x0F6B, 44186 }, + { 0x0F6C, 44201 }, + { 0x0F71, 44058 }, + { 0x0F72, 44046 }, + { 0x0F73, 44066 }, + { 0x0F74, 44054 }, + { 0x0F75, 44074 }, + { 0x0F76, 44083 }, + { 0x0F77, 44093 }, + { 0x0F78, 44078 }, + { 0x0F79, 44088 }, + { 0x0F7A, 44042 }, + { 0x0F7B, 44062 }, + { 0x0F7C, 44050 }, + { 0x0F7D, 44070 }, + { 0x0F7E, 43958 }, + { 0x0F7F, 43964 }, + { 0x0F80, 44098 }, + { 0x0F81, 44103 }, + { 0x0F82, 43898 }, + { 0x0F83, 43904 }, + { 0x0F84, 43847 }, + { 0x0F85, 43828 }, + { 0x0F86, 43890 }, + { 0x0F87, 43968 }, + { 0x0F88, 43885 }, + { 0x0F89, 43912 }, + { 0x0F8A, 43875 }, + { 0x0F8B, 43880 }, + { 0x0F90, 44330 }, + { 0x0F91, 44398 }, + { 0x0F92, 44318 }, + { 0x0F93, 44394 }, + { 0x0F94, 44402 }, + { 0x0F95, 44310 }, + { 0x0F96, 44378 }, + { 0x0F97, 44326 }, + { 0x0F99, 44410 }, + { 0x0F9A, 44434 }, + { 0x0F9B, 44458 }, + { 0x0F9C, 44382 }, + { 0x0F9D, 44442 }, + { 0x0F9E, 44406 }, + { 0x0F9F, 44358 }, + { 0x0FA0, 44426 }, + { 0x0FA1, 44314 }, + { 0x0FA2, 44386 }, + { 0x0FA3, 44342 }, + { 0x0FA4, 44346 }, + { 0x0FA5, 44414 }, + { 0x0FA6, 44306 }, + { 0x0FA7, 44374 }, + { 0x0FA8, 44338 }, + { 0x0FA9, 44430 }, + { 0x0FAA, 44454 }, + { 0x0FAB, 44390 }, + { 0x0FAC, 44446 }, + { 0x0FAD, 44362 }, + { 0x0FAE, 44438 }, + { 0x0FAF, 44370 }, + { 0x0FB0, 44302 }, + { 0x0FB1, 44366 }, + { 0x0FB2, 44350 }, + { 0x0FB3, 44334 }, + { 0x0FB4, 44418 }, + { 0x0FB5, 44422 }, + { 0x0FB6, 44354 }, + { 0x0FB7, 44322 }, + { 0x0FB8, 44298 }, + { 0x0FB9, 44450 }, + { 0x0FBA, 44467 }, + { 0x0FBB, 44472 }, + { 0x0FBC, 44462 }, + { 0x0FBE, 43653 }, + { 0x0FBF, 43657 }, + { 0x0FC0, 44504 }, + { 0x0FC1, 44509 }, + { 0x0FC2, 44494 }, + { 0x0FC3, 44499 }, + { 0x0FC4, 44273 }, + { 0x0FC5, 44263 }, + { 0x0FC6, 44281 }, + { 0x0FC7, 44267 }, + { 0x0FC8, 44277 }, + { 0x0FC9, 44241 }, + { 0x0FCA, 44257 }, + { 0x0FCB, 44251 }, + { 0x0FCC, 44245 }, + { 0x0FCE, 43926 }, + { 0x0FCF, 43921 }, + { 0x0FD0, 43777 }, + { 0x0FD1, 43813 }, + { 0x0FD2, 43756 }, + { 0x0FD3, 43857 }, + { 0x0FD4, 43838 }, + { 0x1000, 42482 }, + { 0x1001, 42533 }, + { 0x1002, 42470 }, + { 0x1003, 42527 }, + { 0x1004, 42559 }, + { 0x1005, 42464 }, + { 0x1006, 42518 }, + { 0x1007, 42479 }, + { 0x1008, 42530 }, + { 0x1009, 42565 }, + { 0x100A, 42586 }, + { 0x100B, 42580 }, + { 0x100C, 42650 }, + { 0x100D, 42521 }, + { 0x100E, 42583 }, + { 0x100F, 42562 }, + { 0x1010, 42503 }, + { 0x1011, 42577 }, + { 0x1012, 42467 }, + { 0x1013, 42524 }, + { 0x1014, 42491 }, + { 0x1015, 42494 }, + { 0x1016, 42568 }, + { 0x1017, 42461 }, + { 0x1018, 42515 }, + { 0x1019, 42488 }, + { 0x101A, 42512 }, + { 0x101B, 42497 }, + { 0x101C, 42485 }, + { 0x101D, 42509 }, + { 0x101E, 42500 }, + { 0x101F, 42473 }, + { 0x1020, 42536 }, + { 0x1021, 42443 }, + { 0x1022, 42594 }, + { 0x1023, 42449 }, + { 0x1024, 42476 }, + { 0x1025, 42455 }, + { 0x1026, 42506 }, + { 0x1027, 42446 }, + { 0x1028, 42539 }, + { 0x1029, 42452 }, + { 0x102A, 42458 }, + { 0x102B, 42389 }, + { 0x102C, 42329 }, + { 0x102D, 42321 }, + { 0x102E, 42337 }, + { 0x102F, 42325 }, + { 0x1030, 42341 }, + { 0x1031, 42312 }, + { 0x1032, 42333 }, + { 0x1033, 42350 }, + { 0x1034, 42345 }, + { 0x1035, 42316 }, + { 0x1036, 42266 }, + { 0x1037, 42179 }, + { 0x1038, 42233 }, + { 0x1039, 42227 }, + { 0x103A, 42183 }, + { 0x103B, 42767 }, + { 0x103C, 42757 }, + { 0x103D, 42762 }, + { 0x103E, 42752 }, + { 0x103F, 42653 }, + { 0x1040, 42300 }, + { 0x1041, 42282 }, + { 0x1042, 42288 }, + { 0x1043, 42309 }, + { 0x1044, 42294 }, + { 0x1045, 42291 }, + { 0x1046, 42285 }, + { 0x1047, 42306 }, + { 0x1048, 42303 }, + { 0x1049, 42297 }, + { 0x104A, 42223 }, + { 0x104B, 42230 }, + { 0x104C, 42719 }, + { 0x104D, 42722 }, + { 0x104E, 42725 }, + { 0x104F, 42716 }, + { 0x1050, 42571 }, + { 0x1051, 42574 }, + { 0x1052, 42684 }, + { 0x1053, 42692 }, + { 0x1054, 42680 }, + { 0x1055, 42688 }, + { 0x1056, 42414 }, + { 0x1057, 42424 }, + { 0x1058, 42409 }, + { 0x1059, 42419 }, + { 0x105A, 42555 }, + { 0x105B, 42551 }, + { 0x105C, 42543 }, + { 0x105D, 42547 }, + { 0x105E, 42740 }, + { 0x105F, 42734 }, + { 0x1060, 42728 }, + { 0x1061, 42589 }, + { 0x1062, 42361 }, + { 0x1063, 42276 }, + { 0x1064, 42269 }, + { 0x1065, 42702 }, + { 0x1066, 42696 }, + { 0x1067, 42429 }, + { 0x1068, 42436 }, + { 0x1069, 42236 }, + { 0x106A, 42242 }, + { 0x106B, 42248 }, + { 0x106C, 42254 }, + { 0x106D, 42260 }, + { 0x106E, 42662 }, + { 0x106F, 42668 }, + { 0x1070, 42674 }, + { 0x1071, 42355 }, + { 0x1072, 42404 }, + { 0x1073, 42394 }, + { 0x1074, 42399 }, + { 0x1075, 42622 }, + { 0x1076, 42634 }, + { 0x1077, 42614 }, + { 0x1078, 42602 }, + { 0x1079, 42630 }, + { 0x107A, 42638 }, + { 0x107B, 42606 }, + { 0x107C, 42626 }, + { 0x107D, 42642 }, + { 0x107E, 42610 }, + { 0x107F, 42598 }, + { 0x1080, 42646 }, + { 0x1081, 42618 }, + { 0x1082, 42746 }, + { 0x1083, 42378 }, + { 0x1084, 42367 }, + { 0x1085, 42372 }, + { 0x1086, 42383 }, + { 0x1087, 42186 }, + { 0x1088, 42190 }, + { 0x1089, 42194 }, + { 0x108A, 42198 }, + { 0x108B, 42202 }, + { 0x108C, 42207 }, + { 0x108D, 42212 }, + { 0x108E, 42657 }, + { 0x108F, 42218 }, + { 0x1090, 42163 }, + { 0x1091, 42139 }, + { 0x1092, 42147 }, + { 0x1093, 42175 }, + { 0x1094, 42155 }, + { 0x1095, 42151 }, + { 0x1096, 42143 }, + { 0x1097, 42171 }, + { 0x1098, 42167 }, + { 0x1099, 42159 }, + { 0x109E, 42708 }, + { 0x109F, 42712 }, + { 0x10A0, 52068 }, + { 0x10A1, 52096 }, + { 0x10A2, 52112 }, + { 0x10A3, 52108 }, + { 0x10A4, 52072 }, + { 0x10A5, 52176 }, + { 0x10A6, 52184 }, + { 0x10A7, 52168 }, + { 0x10A8, 52080 }, + { 0x10A9, 52136 }, + { 0x10AA, 52140 }, + { 0x10AB, 52144 }, + { 0x10AC, 52148 }, + { 0x10AD, 52084 }, + { 0x10AE, 52152 }, + { 0x10AF, 52216 }, + { 0x10B0, 52160 }, + { 0x10B1, 52164 }, + { 0x10B2, 52172 }, + { 0x10B3, 52088 }, + { 0x10B4, 52208 }, + { 0x10B5, 52204 }, + { 0x10B6, 52196 }, + { 0x10B7, 52156 }, + { 0x10B8, 52212 }, + { 0x10B9, 52192 }, + { 0x10BA, 52100 }, + { 0x10BB, 52132 }, + { 0x10BC, 52104 }, + { 0x10BD, 52188 }, + { 0x10BE, 52180 }, + { 0x10BF, 52200 }, + { 0x10C0, 52116 }, + { 0x10C1, 52076 }, + { 0x10C2, 52124 }, + { 0x10C3, 52092 }, + { 0x10C4, 52120 }, + { 0x10C5, 52128 }, + { 0x10D0, 51938 }, + { 0x10D1, 51968 }, + { 0x10D2, 51980 }, + { 0x10D3, 51977 }, + { 0x10D4, 51941 }, + { 0x10D5, 52028 }, + { 0x10D6, 52034 }, + { 0x10D7, 52022 }, + { 0x10D8, 51950 }, + { 0x10D9, 51998 }, + { 0x10DA, 52001 }, + { 0x10DB, 52004 }, + { 0x10DC, 52007 }, + { 0x10DD, 51953 }, + { 0x10DE, 52010 }, + { 0x10DF, 52058 }, + { 0x10E0, 52016 }, + { 0x10E1, 52019 }, + { 0x10E2, 52025 }, + { 0x10E3, 51956 }, + { 0x10E4, 52052 }, + { 0x10E5, 52049 }, + { 0x10E6, 52043 }, + { 0x10E7, 52013 }, + { 0x10E8, 52055 }, + { 0x10E9, 52040 }, + { 0x10EA, 51971 }, + { 0x10EB, 51995 }, + { 0x10EC, 51974 }, + { 0x10ED, 52037 }, + { 0x10EE, 52031 }, + { 0x10EF, 52046 }, + { 0x10F0, 51983 }, + { 0x10F1, 51947 }, + { 0x10F2, 51989 }, + { 0x10F3, 51959 }, + { 0x10F4, 51986 }, + { 0x10F5, 51992 }, + { 0x10F6, 51944 }, + { 0x10F7, 51962 }, + { 0x10F8, 52061 }, + { 0x10F9, 52064 }, + { 0x10FA, 51965 }, + { 0x10FB, 52220 }, + { 0x10FC, 54786 }, + { 0x1100, 32202 }, + { 0x1101, 32310 }, + { 0x1102, 32190 }, + { 0x1103, 32205 }, + { 0x1104, 32313 }, + { 0x1105, 32196 }, + { 0x1106, 32187 }, + { 0x1107, 32193 }, + { 0x1108, 32268 }, + { 0x1109, 32175 }, + { 0x110A, 32226 }, + { 0x110B, 32184 }, + { 0x110C, 32178 }, + { 0x110D, 32256 }, + { 0x110E, 32208 }, + { 0x110F, 32211 }, + { 0x1110, 32220 }, + { 0x1111, 32217 }, + { 0x1112, 32181 }, + { 0x1113, 32328 }, + { 0x1114, 32265 }, + { 0x1115, 32331 }, + { 0x1116, 32289 }, + { 0x1117, 32391 }, + { 0x1118, 32301 }, + { 0x1119, 32271 }, + { 0x111A, 32298 }, + { 0x111B, 32376 }, + { 0x111C, 32286 }, + { 0x111D, 32370 }, + { 0x111E, 32334 }, + { 0x111F, 32295 }, + { 0x1120, 32337 }, + { 0x1121, 32232 }, + { 0x1122, 32424 }, + { 0x1123, 32427 }, + { 0x1124, 32418 }, + { 0x1125, 32409 }, + { 0x1126, 32415 }, + { 0x1127, 32292 }, + { 0x1128, 32382 }, + { 0x1129, 32388 }, + { 0x112A, 32385 }, + { 0x112B, 32373 }, + { 0x112C, 32439 }, + { 0x112D, 32304 }, + { 0x112E, 32247 }, + { 0x112F, 32307 }, + { 0x1130, 32253 }, + { 0x1131, 32244 }, + { 0x1132, 32250 }, + { 0x1133, 32430 }, + { 0x1134, 32394 }, + { 0x1135, 32241 }, + { 0x1136, 32235 }, + { 0x1137, 32340 }, + { 0x1138, 32343 }, + { 0x1139, 32349 }, + { 0x113A, 32346 }, + { 0x113B, 32238 }, + { 0x113C, 32319 }, + { 0x113D, 32421 }, + { 0x113E, 32397 }, + { 0x113F, 32442 }, + { 0x1140, 32214 }, + { 0x1141, 32322 }, + { 0x1142, 32325 }, + { 0x1143, 32280 }, + { 0x1144, 32283 }, + { 0x1145, 32229 }, + { 0x1146, 32361 }, + { 0x1147, 32262 }, + { 0x1148, 32277 }, + { 0x1149, 32358 }, + { 0x114A, 32367 }, + { 0x114B, 32364 }, + { 0x114C, 32223 }, + { 0x114D, 32274 }, + { 0x114E, 32355 }, + { 0x114F, 32436 }, + { 0x1150, 32412 }, + { 0x1151, 32445 }, + { 0x1152, 32400 }, + { 0x1153, 32352 }, + { 0x1154, 32403 }, + { 0x1155, 32433 }, + { 0x1156, 32379 }, + { 0x1157, 32406 }, + { 0x1158, 32259 }, + { 0x1159, 32316 }, + { 0x115F, 32199 }, + { 0x1160, 32865 }, + { 0x1161, 32694 }, + { 0x1162, 32709 }, + { 0x1163, 32730 }, + { 0x1164, 32781 }, + { 0x1165, 32712 }, + { 0x1166, 32697 }, + { 0x1167, 32784 }, + { 0x1168, 32733 }, + { 0x1169, 32703 }, + { 0x116A, 32721 }, + { 0x116B, 32775 }, + { 0x116C, 32718 }, + { 0x116D, 32739 }, + { 0x116E, 32706 }, + { 0x116F, 32778 }, + { 0x1170, 32724 }, + { 0x1171, 32727 }, + { 0x1172, 32742 }, + { 0x1173, 32715 }, + { 0x1174, 32736 }, + { 0x1175, 32700 }, + { 0x1176, 32745 }, + { 0x1177, 32748 }, + { 0x1178, 32814 }, + { 0x1179, 32847 }, + { 0x117A, 32787 }, + { 0x117B, 32790 }, + { 0x117C, 32841 }, + { 0x117D, 32850 }, + { 0x117E, 32853 }, + { 0x117F, 32802 }, + { 0x1180, 32760 }, + { 0x1181, 32805 }, + { 0x1182, 32763 }, + { 0x1183, 32766 }, + { 0x1184, 32856 }, + { 0x1185, 32868 }, + { 0x1186, 32871 }, + { 0x1187, 32823 }, + { 0x1188, 32820 }, + { 0x1189, 32769 }, + { 0x118A, 32808 }, + { 0x118B, 32886 }, + { 0x118C, 32811 }, + { 0x118D, 32772 }, + { 0x118E, 32826 }, + { 0x118F, 32859 }, + { 0x1190, 32829 }, + { 0x1191, 32874 }, + { 0x1192, 32862 }, + { 0x1193, 32835 }, + { 0x1194, 32832 }, + { 0x1195, 32793 }, + { 0x1196, 32844 }, + { 0x1197, 32817 }, + { 0x1198, 32751 }, + { 0x1199, 32799 }, + { 0x119A, 32754 }, + { 0x119B, 32757 }, + { 0x119C, 32796 }, + { 0x119D, 32883 }, + { 0x119E, 32838 }, + { 0x119F, 32889 }, + { 0x11A0, 32880 }, + { 0x11A1, 32877 }, + { 0x11A2, 32892 }, + { 0x11A8, 32472 }, + { 0x11A9, 32577 }, + { 0x11AA, 32535 }, + { 0x11AB, 32463 }, + { 0x11AC, 32547 }, + { 0x11AD, 32550 }, + { 0x11AE, 32475 }, + { 0x11AF, 32469 }, + { 0x11B0, 32598 }, + { 0x11B1, 32562 }, + { 0x11B2, 32568 }, + { 0x11B3, 32508 }, + { 0x11B4, 32643 }, + { 0x11B5, 32640 }, + { 0x11B6, 32559 }, + { 0x11B7, 32460 }, + { 0x11B8, 32466 }, + { 0x11B9, 32505 }, + { 0x11BA, 32448 }, + { 0x11BB, 32496 }, + { 0x11BC, 32457 }, + { 0x11BD, 32451 }, + { 0x11BE, 32478 }, + { 0x11BF, 32481 }, + { 0x11C0, 32490 }, + { 0x11C1, 32487 }, + { 0x11C2, 32454 }, + { 0x11C3, 32586 }, + { 0x11C4, 32682 }, + { 0x11C5, 32592 }, + { 0x11C6, 32595 }, + { 0x11C7, 32502 }, + { 0x11C8, 32622 }, + { 0x11C9, 32625 }, + { 0x11CA, 32646 }, + { 0x11CB, 32604 }, + { 0x11CC, 32673 }, + { 0x11CD, 32565 }, + { 0x11CE, 32601 }, + { 0x11CF, 32688 }, + { 0x11D0, 32520 }, + { 0x11D1, 32685 }, + { 0x11D2, 32661 }, + { 0x11D3, 32664 }, + { 0x11D4, 32676 }, + { 0x11D5, 32691 }, + { 0x11D6, 32658 }, + { 0x11D7, 32637 }, + { 0x11D8, 32634 }, + { 0x11D9, 32679 }, + { 0x11DA, 32589 }, + { 0x11DB, 32544 }, + { 0x11DC, 32541 }, + { 0x11DD, 32499 }, + { 0x11DE, 32655 }, + { 0x11DF, 32619 }, + { 0x11E0, 32616 }, + { 0x11E1, 32538 }, + { 0x11E2, 32610 }, + { 0x11E3, 32556 }, + { 0x11E4, 32631 }, + { 0x11E5, 32553 }, + { 0x11E6, 32613 }, + { 0x11E7, 32571 }, + { 0x11E8, 32574 }, + { 0x11E9, 32514 }, + { 0x11EA, 32511 }, + { 0x11EB, 32484 }, + { 0x11EC, 32583 }, + { 0x11ED, 32670 }, + { 0x11EE, 32517 }, + { 0x11EF, 32607 }, + { 0x11F0, 32493 }, + { 0x11F1, 32649 }, + { 0x11F2, 32667 }, + { 0x11F3, 32628 }, + { 0x11F4, 32652 }, + { 0x11F5, 32526 }, + { 0x11F6, 32532 }, + { 0x11F7, 32523 }, + { 0x11F8, 32529 }, + { 0x11F9, 32580 }, + { 0x1200, 50516 }, + { 0x1201, 50528 }, + { 0x1202, 50522 }, + { 0x1203, 50909 }, + { 0x1204, 50912 }, + { 0x1205, 50519 }, + { 0x1206, 50525 }, + { 0x1207, 50930 }, + { 0x1208, 50561 }, + { 0x1209, 50573 }, + { 0x120A, 50567 }, + { 0x120B, 50993 }, + { 0x120C, 50996 }, + { 0x120D, 50564 }, + { 0x120E, 50570 }, + { 0x120F, 51002 }, + { 0x1210, 50915 }, + { 0x1211, 50927 }, + { 0x1212, 50921 }, + { 0x1213, 51443 }, + { 0x1214, 51446 }, + { 0x1215, 50918 }, + { 0x1216, 50924 }, + { 0x1217, 51449 }, + { 0x1218, 50576 }, + { 0x1219, 50588 }, + { 0x121A, 50582 }, + { 0x121B, 51005 }, + { 0x121C, 51008 }, + { 0x121D, 50579 }, + { 0x121E, 50585 }, + { 0x121F, 51014 }, + { 0x1220, 51191 }, + { 0x1221, 51203 }, + { 0x1222, 51197 }, + { 0x1223, 51554 }, + { 0x1224, 51557 }, + { 0x1225, 51194 }, + { 0x1226, 51200 }, + { 0x1227, 51560 }, + { 0x1228, 50636 }, + { 0x1229, 50648 }, + { 0x122A, 50642 }, + { 0x122B, 51134 }, + { 0x122C, 51137 }, + { 0x122D, 50639 }, + { 0x122E, 50645 }, + { 0x122F, 51143 }, + { 0x1230, 50651 }, + { 0x1231, 50663 }, + { 0x1232, 50657 }, + { 0x1233, 51149 }, + { 0x1234, 51152 }, + { 0x1235, 50654 }, + { 0x1236, 50660 }, + { 0x1237, 51188 }, + { 0x1238, 51155 }, + { 0x1239, 51167 }, + { 0x123A, 51161 }, + { 0x123B, 51536 }, + { 0x123C, 51539 }, + { 0x123D, 51158 }, + { 0x123E, 51164 }, + { 0x123F, 51545 }, + { 0x1240, 50621 }, + { 0x1241, 50633 }, + { 0x1242, 50627 }, + { 0x1243, 51086 }, + { 0x1244, 51089 }, + { 0x1245, 50624 }, + { 0x1246, 50630 }, + { 0x1247, 51107 }, + { 0x1248, 51110 }, + { 0x124A, 51116 }, + { 0x124B, 51524 }, + { 0x124C, 51527 }, + { 0x124D, 51113 }, + { 0x1250, 51092 }, + { 0x1251, 51104 }, + { 0x1252, 51098 }, + { 0x1253, 51509 }, + { 0x1254, 51512 }, + { 0x1255, 51095 }, + { 0x1256, 51101 }, + { 0x1258, 51515 }, + { 0x125A, 51521 }, + { 0x125B, 51638 }, + { 0x125C, 51641 }, + { 0x125D, 51518 }, + { 0x1260, 50441 }, + { 0x1261, 50453 }, + { 0x1262, 50447 }, + { 0x1263, 50756 }, + { 0x1264, 50759 }, + { 0x1265, 50444 }, + { 0x1266, 50450 }, + { 0x1267, 50765 }, + { 0x1268, 50681 }, + { 0x1269, 50693 }, + { 0x126A, 50687 }, + { 0x126B, 51263 }, + { 0x126C, 51266 }, + { 0x126D, 50684 }, + { 0x126E, 50690 }, + { 0x126F, 51269 }, + { 0x1270, 50666 }, + { 0x1271, 50678 }, + { 0x1272, 50672 }, + { 0x1273, 51206 }, + { 0x1274, 51209 }, + { 0x1275, 50669 }, + { 0x1276, 50675 }, + { 0x1277, 51245 }, + { 0x1278, 50456 }, + { 0x1279, 50468 }, + { 0x127A, 50462 }, + { 0x127B, 50774 }, + { 0x127C, 50792 }, + { 0x127D, 50459 }, + { 0x127E, 50465 }, + { 0x127F, 50813 }, + { 0x1280, 50711 }, + { 0x1281, 50723 }, + { 0x1282, 50717 }, + { 0x1283, 51281 }, + { 0x1284, 51284 }, + { 0x1285, 50714 }, + { 0x1286, 50720 }, + { 0x1287, 51287 }, + { 0x1288, 51290 }, + { 0x128A, 51296 }, + { 0x128B, 51593 }, + { 0x128C, 51596 }, + { 0x128D, 51293 }, + { 0x1290, 50591 }, + { 0x1291, 50603 }, + { 0x1292, 50597 }, + { 0x1293, 51026 }, + { 0x1294, 51029 }, + { 0x1295, 50594 }, + { 0x1296, 50600 }, + { 0x1297, 51035 }, + { 0x1298, 51038 }, + { 0x1299, 51050 }, + { 0x129A, 51044 }, + { 0x129B, 51482 }, + { 0x129C, 51485 }, + { 0x129D, 51041 }, + { 0x129E, 51047 }, + { 0x129F, 51491 }, + { 0x12A0, 51644 }, + { 0x12A1, 51660 }, + { 0x12A2, 51652 }, + { 0x12A3, 51664 }, + { 0x12A4, 51668 }, + { 0x12A5, 51648 }, + { 0x12A6, 51656 }, + { 0x12A7, 51676 }, + { 0x12A8, 50546 }, + { 0x12A9, 50558 }, + { 0x12AA, 50552 }, + { 0x12AB, 50945 }, + { 0x12AC, 50948 }, + { 0x12AD, 50549 }, + { 0x12AE, 50555 }, + { 0x12AF, 50951 }, + { 0x12B0, 50954 }, + { 0x12B2, 50960 }, + { 0x12B3, 51452 }, + { 0x12B4, 51455 }, + { 0x12B5, 50957 }, + { 0x12B8, 50963 }, + { 0x12B9, 50975 }, + { 0x12BA, 50969 }, + { 0x12BB, 51458 }, + { 0x12BC, 51461 }, + { 0x12BD, 50966 }, + { 0x12BE, 50972 }, + { 0x12C0, 51464 }, + { 0x12C2, 51470 }, + { 0x12C3, 51632 }, + { 0x12C4, 51635 }, + { 0x12C5, 51467 }, + { 0x12C8, 50696 }, + { 0x12C9, 50708 }, + { 0x12CA, 50702 }, + { 0x12CB, 51272 }, + { 0x12CC, 51275 }, + { 0x12CD, 50699 }, + { 0x12CE, 50705 }, + { 0x12CF, 51278 }, + { 0x12D0, 51696 }, + { 0x12D1, 51712 }, + { 0x12D2, 51704 }, + { 0x12D3, 51716 }, + { 0x12D4, 51720 }, + { 0x12D5, 51700 }, + { 0x12D6, 51708 }, + { 0x12D8, 50741 }, + { 0x12D9, 50753 }, + { 0x12DA, 50747 }, + { 0x12DB, 51323 }, + { 0x12DC, 51326 }, + { 0x12DD, 50744 }, + { 0x12DE, 50750 }, + { 0x12DF, 51347 }, + { 0x12E0, 51329 }, + { 0x12E1, 51341 }, + { 0x12E2, 51335 }, + { 0x12E3, 51605 }, + { 0x12E4, 51608 }, + { 0x12E5, 51332 }, + { 0x12E6, 51338 }, + { 0x12E7, 51611 }, + { 0x12E8, 50726 }, + { 0x12E9, 50738 }, + { 0x12EA, 50732 }, + { 0x12EB, 51314 }, + { 0x12EC, 51317 }, + { 0x12ED, 50729 }, + { 0x12EE, 50735 }, + { 0x12EF, 51320 }, + { 0x12F0, 50471 }, + { 0x12F1, 50483 }, + { 0x12F2, 50477 }, + { 0x12F3, 50816 }, + { 0x12F4, 50834 }, + { 0x12F5, 50474 }, + { 0x12F6, 50480 }, + { 0x12F7, 50840 }, + { 0x12F8, 50819 }, + { 0x12F9, 50831 }, + { 0x12FA, 50825 }, + { 0x12FB, 51401 }, + { 0x12FC, 51404 }, + { 0x12FD, 50822 }, + { 0x12FE, 50828 }, + { 0x12FF, 51410 }, + { 0x1300, 50531 }, + { 0x1301, 50543 }, + { 0x1302, 50537 }, + { 0x1303, 50933 }, + { 0x1304, 50936 }, + { 0x1305, 50534 }, + { 0x1306, 50540 }, + { 0x1307, 50942 }, + { 0x1308, 50501 }, + { 0x1309, 50513 }, + { 0x130A, 50507 }, + { 0x130B, 50861 }, + { 0x130C, 50864 }, + { 0x130D, 50504 }, + { 0x130E, 50510 }, + { 0x130F, 50882 }, + { 0x1310, 50885 }, + { 0x1312, 50891 }, + { 0x1313, 51431 }, + { 0x1314, 51434 }, + { 0x1315, 50888 }, + { 0x1318, 50867 }, + { 0x1319, 50879 }, + { 0x131A, 50873 }, + { 0x131B, 51416 }, + { 0x131C, 51419 }, + { 0x131D, 50870 }, + { 0x131E, 50876 }, + { 0x131F, 51626 }, + { 0x1320, 51212 }, + { 0x1321, 51224 }, + { 0x1322, 51218 }, + { 0x1323, 51563 }, + { 0x1324, 51566 }, + { 0x1325, 51215 }, + { 0x1326, 51221 }, + { 0x1327, 51572 }, + { 0x1328, 50795 }, + { 0x1329, 50807 }, + { 0x132A, 50801 }, + { 0x132B, 51389 }, + { 0x132C, 51392 }, + { 0x132D, 50798 }, + { 0x132E, 50804 }, + { 0x132F, 51398 }, + { 0x1330, 51059 }, + { 0x1331, 51071 }, + { 0x1332, 51065 }, + { 0x1333, 51494 }, + { 0x1334, 51497 }, + { 0x1335, 51062 }, + { 0x1336, 51068 }, + { 0x1337, 51503 }, + { 0x1338, 51230 }, + { 0x1339, 51242 }, + { 0x133A, 51236 }, + { 0x133B, 51575 }, + { 0x133C, 51578 }, + { 0x133D, 51233 }, + { 0x133E, 51239 }, + { 0x133F, 51581 }, + { 0x1340, 51248 }, + { 0x1341, 51260 }, + { 0x1342, 51254 }, + { 0x1343, 51584 }, + { 0x1344, 51587 }, + { 0x1345, 51251 }, + { 0x1346, 51257 }, + { 0x1347, 51590 }, + { 0x1348, 50486 }, + { 0x1349, 50498 }, + { 0x134A, 50492 }, + { 0x134B, 50843 }, + { 0x134C, 50846 }, + { 0x134D, 50489 }, + { 0x134E, 50495 }, + { 0x134F, 50849 }, + { 0x1350, 50606 }, + { 0x1351, 50618 }, + { 0x1352, 50612 }, + { 0x1353, 51053 }, + { 0x1354, 51056 }, + { 0x1355, 50609 }, + { 0x1356, 50615 }, + { 0x1357, 51077 }, + { 0x1358, 51146 }, + { 0x1359, 51023 }, + { 0x135A, 50858 }, + { 0x135F, 51724 }, + { 0x1360, 50435 }, + { 0x1361, 51733 }, + { 0x1362, 50323 }, + { 0x1363, 50328 }, + { 0x1364, 51731 }, + { 0x1365, 50326 }, + { 0x1366, 50432 }, + { 0x1367, 50438 }, + { 0x1368, 51728 }, + { 0x1369, 50330 }, + { 0x136A, 50336 }, + { 0x136B, 50354 }, + { 0x136C, 50342 }, + { 0x136D, 50339 }, + { 0x136E, 50333 }, + { 0x136F, 50351 }, + { 0x1370, 50348 }, + { 0x1371, 50345 }, + { 0x1372, 50398 }, + { 0x1373, 50423 }, + { 0x1374, 50420 }, + { 0x1375, 50408 }, + { 0x1376, 50405 }, + { 0x1377, 50411 }, + { 0x1378, 50429 }, + { 0x1379, 50414 }, + { 0x137A, 50417 }, + { 0x137B, 50426 }, + { 0x137C, 50401 }, + { 0x1380, 51688 }, + { 0x1381, 51020 }, + { 0x1382, 51479 }, + { 0x1383, 51017 }, + { 0x1384, 51680 }, + { 0x1385, 50771 }, + { 0x1386, 51365 }, + { 0x1387, 50768 }, + { 0x1388, 51684 }, + { 0x1389, 50855 }, + { 0x138A, 51413 }, + { 0x138B, 50852 }, + { 0x138C, 51692 }, + { 0x138D, 51083 }, + { 0x138E, 51506 }, + { 0x138F, 51080 }, + { 0x1390, 50382 }, + { 0x1391, 50361 }, + { 0x1392, 50390 }, + { 0x1393, 50377 }, + { 0x1394, 50365 }, + { 0x1395, 50373 }, + { 0x1396, 50386 }, + { 0x1397, 50369 }, + { 0x1398, 50394 }, + { 0x1399, 50357 }, + { 0x13A0, 48143 }, + { 0x13A1, 48146 }, + { 0x13A2, 48149 }, + { 0x13A3, 48152 }, + { 0x13A4, 48158 }, + { 0x13A5, 48161 }, + { 0x13A6, 48182 }, + { 0x13A7, 48218 }, + { 0x13A8, 48185 }, + { 0x13A9, 48188 }, + { 0x13AA, 48191 }, + { 0x13AB, 48194 }, + { 0x13AC, 48197 }, + { 0x13AD, 48200 }, + { 0x13AE, 48203 }, + { 0x13AF, 48206 }, + { 0x13B0, 48209 }, + { 0x13B1, 48212 }, + { 0x13B2, 48215 }, + { 0x13B3, 48221 }, + { 0x13B4, 48224 }, + { 0x13B5, 48227 }, + { 0x13B6, 48230 }, + { 0x13B7, 48233 }, + { 0x13B8, 48236 }, + { 0x13B9, 48239 }, + { 0x13BA, 48242 }, + { 0x13BB, 48245 }, + { 0x13BC, 48248 }, + { 0x13BD, 48251 }, + { 0x13BE, 48254 }, + { 0x13BF, 48338 }, + { 0x13C0, 48341 }, + { 0x13C1, 48257 }, + { 0x13C2, 48260 }, + { 0x13C3, 48263 }, + { 0x13C4, 48266 }, + { 0x13C5, 48269 }, + { 0x13C6, 48344 }, + { 0x13C7, 48347 }, + { 0x13C8, 48350 }, + { 0x13C9, 48353 }, + { 0x13CA, 48356 }, + { 0x13CB, 48359 }, + { 0x13CC, 48272 }, + { 0x13CD, 48155 }, + { 0x13CE, 48275 }, + { 0x13CF, 48278 }, + { 0x13D0, 48281 }, + { 0x13D1, 48284 }, + { 0x13D2, 48287 }, + { 0x13D3, 48164 }, + { 0x13D4, 48290 }, + { 0x13D5, 48167 }, + { 0x13D6, 48293 }, + { 0x13D7, 48170 }, + { 0x13D8, 48296 }, + { 0x13D9, 48173 }, + { 0x13DA, 48176 }, + { 0x13DB, 48179 }, + { 0x13DC, 48335 }, + { 0x13DD, 48362 }, + { 0x13DE, 48365 }, + { 0x13DF, 48368 }, + { 0x13E0, 48371 }, + { 0x13E1, 48374 }, + { 0x13E2, 48377 }, + { 0x13E3, 48380 }, + { 0x13E4, 48383 }, + { 0x13E5, 48386 }, + { 0x13E6, 48389 }, + { 0x13E7, 48392 }, + { 0x13E8, 48395 }, + { 0x13E9, 48299 }, + { 0x13EA, 48302 }, + { 0x13EB, 48305 }, + { 0x13EC, 48308 }, + { 0x13ED, 48311 }, + { 0x13EE, 48314 }, + { 0x13EF, 48317 }, + { 0x13F0, 48320 }, + { 0x13F1, 48323 }, + { 0x13F2, 48326 }, + { 0x13F3, 48329 }, + { 0x13F4, 48332 }, + { 0x1401, 45872 }, + { 0x1402, 46118 }, + { 0x1403, 45878 }, + { 0x1404, 45953 }, + { 0x1405, 45893 }, + { 0x1406, 46025 }, + { 0x1407, 46790 }, + { 0x1408, 46858 }, + { 0x1409, 46842 }, + { 0x140A, 45866 }, + { 0x140B, 45914 }, + { 0x140C, 46097 }, + { 0x140D, 47791 }, + { 0x140E, 46100 }, + { 0x140F, 47795 }, + { 0x1410, 46392 }, + { 0x1411, 47927 }, + { 0x1412, 46103 }, + { 0x1413, 47799 }, + { 0x1414, 46395 }, + { 0x1415, 47931 }, + { 0x1416, 47555 }, + { 0x1417, 46094 }, + { 0x1418, 47787 }, + { 0x1419, 46389 }, + { 0x141A, 47923 }, + { 0x141B, 47551 }, + { 0x141C, 45917 }, + { 0x141D, 46786 }, + { 0x141E, 47539 }, + { 0x141F, 46643 }, + { 0x1420, 46647 }, + { 0x1421, 46663 }, + { 0x1422, 46624 }, + { 0x1423, 46651 }, + { 0x1424, 46639 }, + { 0x1425, 46669 }, + { 0x1426, 46674 }, + { 0x1427, 46681 }, + { 0x1428, 46657 }, + { 0x1429, 46635 }, + { 0x142A, 46630 }, + { 0x142B, 45935 }, + { 0x142C, 45956 }, + { 0x142D, 46022 }, + { 0x142E, 45920 }, + { 0x142F, 46031 }, + { 0x1430, 46513 }, + { 0x1431, 46034 }, + { 0x1432, 46257 }, + { 0x1433, 46037 }, + { 0x1434, 46260 }, + { 0x1435, 46814 }, + { 0x1436, 47186 }, + { 0x1437, 46882 }, + { 0x1438, 46028 }, + { 0x1439, 46254 }, + { 0x143A, 46266 }, + { 0x143B, 47879 }, + { 0x143C, 46269 }, + { 0x143D, 47883 }, + { 0x143E, 46519 }, + { 0x143F, 48011 }, + { 0x1440, 46272 }, + { 0x1441, 47887 }, + { 0x1442, 46522 }, + { 0x1443, 48015 }, + { 0x1444, 46263 }, + { 0x1445, 47875 }, + { 0x1446, 46516 }, + { 0x1447, 48007 }, + { 0x1448, 46830 }, + { 0x1449, 45896 }, + { 0x144A, 47747 }, + { 0x144B, 46838 }, + { 0x144C, 46082 }, + { 0x144D, 46567 }, + { 0x144E, 46088 }, + { 0x144F, 46344 }, + { 0x1450, 46091 }, + { 0x1451, 46347 }, + { 0x1452, 46822 }, + { 0x1453, 47118 }, + { 0x1454, 46854 }, + { 0x1455, 46079 }, + { 0x1456, 46329 }, + { 0x1457, 46368 }, + { 0x1458, 47911 }, + { 0x1459, 46371 }, + { 0x145A, 47915 }, + { 0x145B, 46606 }, + { 0x145C, 48055 }, + { 0x145D, 46374 }, + { 0x145E, 47919 }, + { 0x145F, 46609 }, + { 0x1460, 48059 }, + { 0x1461, 46365 }, + { 0x1462, 47907 }, + { 0x1463, 46603 }, + { 0x1464, 48051 }, + { 0x1465, 47595 }, + { 0x1466, 45908 }, + { 0x1467, 46353 }, + { 0x1468, 46359 }, + { 0x1469, 46362 }, + { 0x146A, 46350 }, + { 0x146B, 45962 }, + { 0x146C, 46441 }, + { 0x146D, 45965 }, + { 0x146E, 46158 }, + { 0x146F, 45968 }, + { 0x1470, 46161 }, + { 0x1471, 46798 }, + { 0x1472, 45959 }, + { 0x1473, 46155 }, + { 0x1474, 46167 }, + { 0x1475, 47823 }, + { 0x1476, 46170 }, + { 0x1477, 47827 }, + { 0x1478, 46447 }, + { 0x1479, 47971 }, + { 0x147A, 46173 }, + { 0x147B, 47831 }, + { 0x147C, 46450 }, + { 0x147D, 47975 }, + { 0x147E, 46164 }, + { 0x147F, 47819 }, + { 0x1480, 46444 }, + { 0x1481, 47967 }, + { 0x1482, 47563 }, + { 0x1483, 45881 }, + { 0x1484, 45971 }, + { 0x1485, 48131 }, + { 0x1486, 48135 }, + { 0x1487, 48139 }, + { 0x1488, 48127 }, + { 0x1489, 45926 }, + { 0x148A, 46419 }, + { 0x148B, 45929 }, + { 0x148C, 46128 }, + { 0x148D, 45932 }, + { 0x148E, 46131 }, + { 0x148F, 46794 }, + { 0x1490, 45923 }, + { 0x1491, 46121 }, + { 0x1492, 46137 }, + { 0x1493, 47807 }, + { 0x1494, 46140 }, + { 0x1495, 47811 }, + { 0x1496, 46425 }, + { 0x1497, 47955 }, + { 0x1498, 46143 }, + { 0x1499, 47815 }, + { 0x149A, 46428 }, + { 0x149B, 47959 }, + { 0x149C, 46134 }, + { 0x149D, 47803 }, + { 0x149E, 46422 }, + { 0x149F, 47951 }, + { 0x14A0, 47559 }, + { 0x14A1, 45869 }, + { 0x14A2, 46762 }, + { 0x14A3, 45992 }, + { 0x14A4, 46474 }, + { 0x14A5, 45998 }, + { 0x14A6, 46209 }, + { 0x14A7, 46001 }, + { 0x14A8, 46212 }, + { 0x14A9, 46806 }, + { 0x14AA, 45989 }, + { 0x14AB, 46206 }, + { 0x14AC, 46218 }, + { 0x14AD, 47855 }, + { 0x14AE, 46221 }, + { 0x14AF, 47859 }, + { 0x14B0, 46480 }, + { 0x14B1, 47995 }, + { 0x14B2, 46224 }, + { 0x14B3, 47863 }, + { 0x14B4, 46483 }, + { 0x14B5, 47999 }, + { 0x14B6, 46215 }, + { 0x14B7, 47851 }, + { 0x14B8, 46477 }, + { 0x14B9, 47991 }, + { 0x14BA, 47567 }, + { 0x14BB, 45887 }, + { 0x14BC, 47743 }, + { 0x14BD, 45995 }, + { 0x14BE, 48091 }, + { 0x14BF, 46734 }, + { 0x14C0, 46007 }, + { 0x14C1, 46486 }, + { 0x14C2, 46016 }, + { 0x14C3, 46239 }, + { 0x14C4, 46019 }, + { 0x14C5, 46245 }, + { 0x14C6, 46810 }, + { 0x14C7, 46004 }, + { 0x14C8, 46227 }, + { 0x14C9, 46251 }, + { 0x14CA, 47871 }, + { 0x14CB, 46248 }, + { 0x14CC, 47867 }, + { 0x14CD, 46510 }, + { 0x14CE, 48003 }, + { 0x14CF, 47571 }, + { 0x14D0, 45890 }, + { 0x14D1, 46958 }, + { 0x14D2, 46013 }, + { 0x14D3, 45977 }, + { 0x14D4, 46453 }, + { 0x14D5, 45983 }, + { 0x14D6, 46188 }, + { 0x14D7, 45986 }, + { 0x14D8, 46191 }, + { 0x14D9, 46802 }, + { 0x14DA, 45974 }, + { 0x14DB, 46176 }, + { 0x14DC, 46197 }, + { 0x14DD, 47839 }, + { 0x14DE, 46200 }, + { 0x14DF, 47843 }, + { 0x14E0, 46468 }, + { 0x14E1, 47983 }, + { 0x14E2, 46203 }, + { 0x14E3, 47847 }, + { 0x14E4, 46471 }, + { 0x14E5, 47987 }, + { 0x14E6, 46194 }, + { 0x14E7, 47835 }, + { 0x14E8, 46465 }, + { 0x14E9, 47979 }, + { 0x14EA, 45884 }, + { 0x14EB, 47739 }, + { 0x14EC, 46710 }, + { 0x14ED, 46064 }, + { 0x14EE, 46534 }, + { 0x14EF, 46070 }, + { 0x14F0, 46311 }, + { 0x14F1, 46073 }, + { 0x14F2, 46314 }, + { 0x14F3, 46818 }, + { 0x14F4, 46061 }, + { 0x14F5, 46296 }, + { 0x14F6, 46320 }, + { 0x14F7, 47895 }, + { 0x14F8, 46323 }, + { 0x14F9, 47899 }, + { 0x14FA, 46561 }, + { 0x14FB, 48043 }, + { 0x14FC, 46326 }, + { 0x14FD, 47903 }, + { 0x14FE, 46564 }, + { 0x14FF, 48047 }, + { 0x1500, 46317 }, + { 0x1501, 47891 }, + { 0x1502, 46558 }, + { 0x1503, 48039 }, + { 0x1504, 47591 }, + { 0x1505, 45905 }, + { 0x1506, 48095 }, + { 0x1507, 46076 }, + { 0x1508, 47687 }, + { 0x1509, 48103 }, + { 0x150A, 47547 }, + { 0x150B, 47543 }, + { 0x150C, 47583 }, + { 0x150D, 47587 }, + { 0x150E, 47579 }, + { 0x150F, 47575 }, + { 0x1510, 46302 }, + { 0x1511, 46305 }, + { 0x1512, 46540 }, + { 0x1513, 46308 }, + { 0x1514, 46543 }, + { 0x1515, 46299 }, + { 0x1516, 46537 }, + { 0x1517, 46549 }, + { 0x1518, 48027 }, + { 0x1519, 46552 }, + { 0x151A, 48031 }, + { 0x151B, 46701 }, + { 0x151C, 48079 }, + { 0x151D, 46555 }, + { 0x151E, 48035 }, + { 0x151F, 46704 }, + { 0x1520, 48083 }, + { 0x1521, 46546 }, + { 0x1522, 48023 }, + { 0x1523, 46698 }, + { 0x1524, 48075 }, + { 0x1525, 46067 }, + { 0x1526, 46109 }, + { 0x1527, 46612 }, + { 0x1528, 46112 }, + { 0x1529, 46401 }, + { 0x152A, 46115 }, + { 0x152B, 46404 }, + { 0x152C, 46826 }, + { 0x152D, 46106 }, + { 0x152E, 46398 }, + { 0x152F, 46410 }, + { 0x1530, 47939 }, + { 0x1531, 46413 }, + { 0x1532, 47943 }, + { 0x1533, 46618 }, + { 0x1534, 48067 }, + { 0x1535, 46416 }, + { 0x1536, 47947 }, + { 0x1537, 46621 }, + { 0x1538, 48071 }, + { 0x1539, 46407 }, + { 0x153A, 47935 }, + { 0x153B, 46615 }, + { 0x153C, 48063 }, + { 0x153D, 47599 }, + { 0x153E, 45911 }, + { 0x153F, 48099 }, + { 0x1540, 47755 }, + { 0x1541, 46766 }, + { 0x1542, 46052 }, + { 0x1543, 46730 }, + { 0x1544, 47763 }, + { 0x1545, 46528 }, + { 0x1546, 46055 }, + { 0x1547, 46290 }, + { 0x1548, 46058 }, + { 0x1549, 46293 }, + { 0x154A, 47767 }, + { 0x154B, 46049 }, + { 0x154C, 46287 }, + { 0x154D, 47759 }, + { 0x154E, 46531 }, + { 0x154F, 48019 }, + { 0x1550, 45902 }, + { 0x1551, 47751 }, + { 0x1552, 46714 }, + { 0x1553, 45941 }, + { 0x1554, 46431 }, + { 0x1555, 45944 }, + { 0x1556, 46149 }, + { 0x1557, 45947 }, + { 0x1558, 46152 }, + { 0x1559, 45938 }, + { 0x155A, 46146 }, + { 0x155B, 46438 }, + { 0x155C, 47963 }, + { 0x155D, 45875 }, + { 0x155E, 46335 }, + { 0x155F, 46718 }, + { 0x1560, 46338 }, + { 0x1561, 46722 }, + { 0x1562, 46573 }, + { 0x1563, 46726 }, + { 0x1564, 46341 }, + { 0x1565, 46576 }, + { 0x1566, 46332 }, + { 0x1567, 46570 }, + { 0x1568, 46707 }, + { 0x1569, 48087 }, + { 0x156A, 46085 }, + { 0x156B, 46594 }, + { 0x156C, 46597 }, + { 0x156D, 46600 }, + { 0x156E, 46591 }, + { 0x156F, 46356 }, + { 0x1570, 46380 }, + { 0x1571, 46383 }, + { 0x1572, 46386 }, + { 0x1573, 46377 }, + { 0x1574, 47611 }, + { 0x1575, 47615 }, + { 0x1576, 47627 }, + { 0x1577, 47619 }, + { 0x1578, 47631 }, + { 0x1579, 47607 }, + { 0x157A, 47623 }, + { 0x157B, 47603 }, + { 0x157C, 47635 }, + { 0x157D, 45950 }, + { 0x157E, 46525 }, + { 0x157F, 46043 }, + { 0x1580, 46281 }, + { 0x1581, 46046 }, + { 0x1582, 46284 }, + { 0x1583, 46040 }, + { 0x1584, 46275 }, + { 0x1585, 45899 }, + { 0x1586, 46582 }, + { 0x1587, 46585 }, + { 0x1588, 46588 }, + { 0x1589, 46579 }, + { 0x158A, 47775 }, + { 0x158B, 47779 }, + { 0x158C, 47783 }, + { 0x158D, 47771 }, + { 0x158E, 46686 }, + { 0x158F, 46233 }, + { 0x1590, 46495 }, + { 0x1591, 46236 }, + { 0x1592, 46498 }, + { 0x1593, 46230 }, + { 0x1594, 46489 }, + { 0x1595, 46010 }, + { 0x1596, 46242 }, + { 0x1597, 46774 }, + { 0x1598, 46778 }, + { 0x1599, 46782 }, + { 0x159A, 46770 }, + { 0x159B, 48115 }, + { 0x159C, 48119 }, + { 0x159D, 48123 }, + { 0x159E, 48111 }, + { 0x159F, 48107 }, + { 0x15A0, 46182 }, + { 0x15A1, 46459 }, + { 0x15A2, 46185 }, + { 0x15A3, 46462 }, + { 0x15A4, 46179 }, + { 0x15A5, 46456 }, + { 0x15A6, 45980 }, + { 0x15A7, 47647 }, + { 0x15A8, 47651 }, + { 0x15A9, 47663 }, + { 0x15AA, 47655 }, + { 0x15AB, 47667 }, + { 0x15AC, 47643 }, + { 0x15AD, 47659 }, + { 0x15AE, 47639 }, + { 0x15AF, 46834 }, + { 0x15B0, 47675 }, + { 0x15B1, 47679 }, + { 0x15B2, 47683 }, + { 0x15B3, 47671 }, + { 0x15B4, 47727 }, + { 0x15B5, 47731 }, + { 0x15B6, 47735 }, + { 0x15B7, 47723 }, + { 0x15B8, 47711 }, + { 0x15B9, 47715 }, + { 0x15BA, 47719 }, + { 0x15BB, 47707 }, + { 0x15BC, 47695 }, + { 0x15BD, 47699 }, + { 0x15BE, 47703 }, + { 0x15BF, 47691 }, + { 0x15C0, 46742 }, + { 0x15C1, 46746 }, + { 0x15C2, 46750 }, + { 0x15C3, 46738 }, + { 0x15C4, 47182 }, + { 0x15C5, 47178 }, + { 0x15C6, 47170 }, + { 0x15C7, 47442 }, + { 0x15C8, 47174 }, + { 0x15C9, 47166 }, + { 0x15CA, 47010 }, + { 0x15CB, 47006 }, + { 0x15CC, 46998 }, + { 0x15CD, 47310 }, + { 0x15CE, 47002 }, + { 0x15CF, 46994 }, + { 0x15D0, 47054 }, + { 0x15D1, 47050 }, + { 0x15D2, 47042 }, + { 0x15D3, 47418 }, + { 0x15D4, 47046 }, + { 0x15D5, 47038 }, + { 0x15D6, 47206 }, + { 0x15D7, 47202 }, + { 0x15D8, 47194 }, + { 0x15D9, 47446 }, + { 0x15DA, 47198 }, + { 0x15DB, 47190 }, + { 0x15DC, 47354 }, + { 0x15DD, 47350 }, + { 0x15DE, 47342 }, + { 0x15DF, 47470 }, + { 0x15E0, 47346 }, + { 0x15E1, 47338 }, + { 0x15E2, 47414 }, + { 0x15E3, 47410 }, + { 0x15E4, 47402 }, + { 0x15E5, 47502 }, + { 0x15E6, 47406 }, + { 0x15E7, 47398 }, + { 0x15E8, 46990 }, + { 0x15E9, 46986 }, + { 0x15EA, 46978 }, + { 0x15EB, 47306 }, + { 0x15EC, 46982 }, + { 0x15ED, 46974 }, + { 0x15EE, 46846 }, + { 0x15EF, 46878 }, + { 0x15F0, 46874 }, + { 0x15F1, 46866 }, + { 0x15F2, 47162 }, + { 0x15F3, 46870 }, + { 0x15F4, 46862 }, + { 0x15F5, 47250 }, + { 0x15F6, 47246 }, + { 0x15F7, 47238 }, + { 0x15F8, 47454 }, + { 0x15F9, 47242 }, + { 0x15FA, 47234 }, + { 0x15FB, 47270 }, + { 0x15FC, 47266 }, + { 0x15FD, 47258 }, + { 0x15FE, 47458 }, + { 0x15FF, 47262 }, + { 0x1600, 47254 }, + { 0x1601, 46906 }, + { 0x1602, 46970 }, + { 0x1603, 46966 }, + { 0x1604, 46954 }, + { 0x1605, 47302 }, + { 0x1606, 46962 }, + { 0x1607, 46950 }, + { 0x1608, 46946 }, + { 0x1609, 46942 }, + { 0x160A, 46934 }, + { 0x160B, 47298 }, + { 0x160C, 46938 }, + { 0x160D, 46930 }, + { 0x160E, 47074 }, + { 0x160F, 47070 }, + { 0x1610, 47062 }, + { 0x1611, 47422 }, + { 0x1612, 47066 }, + { 0x1613, 47058 }, + { 0x1614, 46902 }, + { 0x1615, 46758 }, + { 0x1616, 46898 }, + { 0x1617, 46890 }, + { 0x1618, 47210 }, + { 0x1619, 46894 }, + { 0x161A, 46754 }, + { 0x161B, 46886 }, + { 0x161C, 47230 }, + { 0x161D, 47226 }, + { 0x161E, 47218 }, + { 0x161F, 47450 }, + { 0x1620, 47222 }, + { 0x1621, 47214 }, + { 0x1622, 46926 }, + { 0x1623, 46922 }, + { 0x1624, 46914 }, + { 0x1625, 47274 }, + { 0x1626, 46918 }, + { 0x1627, 46910 }, + { 0x1628, 47138 }, + { 0x1629, 47134 }, + { 0x162A, 47126 }, + { 0x162B, 47434 }, + { 0x162C, 47130 }, + { 0x162D, 47122 }, + { 0x162E, 47294 }, + { 0x162F, 47290 }, + { 0x1630, 47282 }, + { 0x1631, 47462 }, + { 0x1632, 47286 }, + { 0x1633, 47278 }, + { 0x1634, 47494 }, + { 0x1635, 47490 }, + { 0x1636, 47482 }, + { 0x1637, 47526 }, + { 0x1638, 47486 }, + { 0x1639, 47478 }, + { 0x163A, 47374 }, + { 0x163B, 47370 }, + { 0x163C, 47362 }, + { 0x163D, 47474 }, + { 0x163E, 47366 }, + { 0x163F, 47358 }, + { 0x1640, 47094 }, + { 0x1641, 47090 }, + { 0x1642, 47082 }, + { 0x1643, 47426 }, + { 0x1644, 47086 }, + { 0x1645, 47078 }, + { 0x1646, 46850 }, + { 0x1647, 47534 }, + { 0x1648, 47158 }, + { 0x1649, 47154 }, + { 0x164A, 47146 }, + { 0x164B, 47438 }, + { 0x164C, 47150 }, + { 0x164D, 47142 }, + { 0x164E, 47034 }, + { 0x164F, 47030 }, + { 0x1650, 47018 }, + { 0x1651, 47314 }, + { 0x1652, 47026 }, + { 0x1653, 47014 }, + { 0x1654, 47334 }, + { 0x1655, 47330 }, + { 0x1656, 47322 }, + { 0x1657, 47466 }, + { 0x1658, 47326 }, + { 0x1659, 47318 }, + { 0x165A, 47022 }, + { 0x165B, 47394 }, + { 0x165C, 47390 }, + { 0x165D, 47382 }, + { 0x165E, 47498 }, + { 0x165F, 47386 }, + { 0x1660, 47378 }, + { 0x1661, 47114 }, + { 0x1662, 47110 }, + { 0x1663, 47102 }, + { 0x1664, 47430 }, + { 0x1665, 47106 }, + { 0x1666, 47098 }, + { 0x1667, 47522 }, + { 0x1668, 47518 }, + { 0x1669, 47510 }, + { 0x166A, 47530 }, + { 0x166B, 47514 }, + { 0x166C, 47506 }, + { 0x166D, 46124 }, + { 0x166E, 46434 }, + { 0x166F, 46278 }, + { 0x1670, 46492 }, + { 0x1671, 46504 }, + { 0x1672, 46692 }, + { 0x1673, 46507 }, + { 0x1674, 46695 }, + { 0x1675, 46501 }, + { 0x1676, 46689 }, + { 0x1680, 21369 }, + { 0x1681, 21414 }, + { 0x1682, 21396 }, + { 0x1683, 21420 }, + { 0x1684, 21408 }, + { 0x1685, 21402 }, + { 0x1686, 21411 }, + { 0x1687, 21387 }, + { 0x1688, 21426 }, + { 0x1689, 21384 }, + { 0x168A, 21417 }, + { 0x168B, 21399 }, + { 0x168C, 21390 }, + { 0x168D, 21441 }, + { 0x168E, 21429 }, + { 0x168F, 21405 }, + { 0x1690, 21381 }, + { 0x1691, 21378 }, + { 0x1692, 21375 }, + { 0x1693, 21435 }, + { 0x1694, 21438 }, + { 0x1695, 21432 }, + { 0x1696, 21372 }, + { 0x1697, 21444 }, + { 0x1698, 21393 }, + { 0x1699, 21447 }, + { 0x169A, 21423 }, + { 0x169B, 21450 }, + { 0x169C, 21453 }, + { 0x16A0, 22222 }, + { 0x16A1, 22160 }, + { 0x16A2, 22250 }, + { 0x16A3, 22189 }, + { 0x16A4, 22169 }, + { 0x16A5, 22163 }, + { 0x16A6, 22368 }, + { 0x16A7, 22201 }, + { 0x16A8, 22259 }, + { 0x16A9, 22185 }, + { 0x16AA, 22175 }, + { 0x16AB, 22216 }, + { 0x16AC, 22402 }, + { 0x16AD, 22390 }, + { 0x16AE, 22154 }, + { 0x16AF, 22179 }, + { 0x16B0, 22182 }, + { 0x16B1, 22287 }, + { 0x16B2, 22284 }, + { 0x16B3, 22192 }, + { 0x16B4, 22243 }, + { 0x16B5, 22151 }, + { 0x16B6, 22198 }, + { 0x16B7, 22228 }, + { 0x16B8, 22204 }, + { 0x16B9, 22304 }, + { 0x16BA, 22309 }, + { 0x16BB, 22276 }, + { 0x16BC, 22422 }, + { 0x16BD, 22418 }, + { 0x16BE, 22327 }, + { 0x16BF, 22410 }, + { 0x16C0, 22362 }, + { 0x16C1, 22233 }, + { 0x16C2, 22148 }, + { 0x16C3, 22280 }, + { 0x16C4, 22207 }, + { 0x16C5, 22383 }, + { 0x16C6, 22376 }, + { 0x16C7, 22239 }, + { 0x16C8, 22336 }, + { 0x16C9, 22255 }, + { 0x16CA, 22341 }, + { 0x16CB, 22293 }, + { 0x16CC, 22394 }, + { 0x16CD, 22142 }, + { 0x16CE, 22172 }, + { 0x16CF, 22298 }, + { 0x16D0, 22398 }, + { 0x16D1, 22145 }, + { 0x16D2, 22353 }, + { 0x16D3, 22426 }, + { 0x16D4, 22365 }, + { 0x16D5, 22333 }, + { 0x16D6, 22271 }, + { 0x16D7, 22322 }, + { 0x16D8, 22414 }, + { 0x16D9, 22406 }, + { 0x16DA, 22316 }, + { 0x16DB, 22359 }, + { 0x16DC, 22313 }, + { 0x16DD, 22210 }, + { 0x16DE, 22266 }, + { 0x16DF, 22348 }, + { 0x16E0, 22195 }, + { 0x16E1, 22213 }, + { 0x16E2, 22345 }, + { 0x16E3, 22219 }, + { 0x16E4, 22263 }, + { 0x16E5, 22247 }, + { 0x16E6, 22387 }, + { 0x16E7, 22380 }, + { 0x16E8, 22373 }, + { 0x16E9, 22157 }, + { 0x16EA, 22166 }, + { 0x16EB, 22430 }, + { 0x16EC, 22436 }, + { 0x16ED, 22136 }, + { 0x16EE, 22139 }, + { 0x16EF, 22439 }, + { 0x16F0, 22433 }, + { 0x1700, 43594 }, + { 0x1701, 43597 }, + { 0x1702, 43600 }, + { 0x1703, 43615 }, + { 0x1704, 43609 }, + { 0x1705, 43642 }, + { 0x1706, 43633 }, + { 0x1707, 43606 }, + { 0x1708, 43624 }, + { 0x1709, 43627 }, + { 0x170A, 43603 }, + { 0x170B, 43621 }, + { 0x170C, 43639 }, + { 0x170E, 43618 }, + { 0x170F, 43636 }, + { 0x1710, 43630 }, + { 0x1711, 43612 }, + { 0x1712, 43586 }, + { 0x1713, 43590 }, + { 0x1714, 43583 }, + { 0x1720, 40573 }, + { 0x1721, 40576 }, + { 0x1722, 40579 }, + { 0x1723, 40594 }, + { 0x1724, 40588 }, + { 0x1725, 40624 }, + { 0x1726, 40615 }, + { 0x1727, 40585 }, + { 0x1728, 40603 }, + { 0x1729, 40606 }, + { 0x172A, 40582 }, + { 0x172B, 40600 }, + { 0x172C, 40621 }, + { 0x172D, 40609 }, + { 0x172E, 40597 }, + { 0x172F, 40618 }, + { 0x1730, 40612 }, + { 0x1731, 40591 }, + { 0x1732, 40565 }, + { 0x1733, 40569 }, + { 0x1734, 40562 }, + { 0x1735, 67884 }, + { 0x1736, 67881 }, + { 0x1740, 10387 }, + { 0x1741, 10390 }, + { 0x1742, 10393 }, + { 0x1743, 10408 }, + { 0x1744, 10402 }, + { 0x1745, 10438 }, + { 0x1746, 10429 }, + { 0x1747, 10399 }, + { 0x1748, 10417 }, + { 0x1749, 10420 }, + { 0x174A, 10396 }, + { 0x174B, 10414 }, + { 0x174C, 10435 }, + { 0x174D, 10423 }, + { 0x174E, 10411 }, + { 0x174F, 10432 }, + { 0x1750, 10426 }, + { 0x1751, 10405 }, + { 0x1752, 10379 }, + { 0x1753, 10383 }, + { 0x1760, 55665 }, + { 0x1761, 55668 }, + { 0x1762, 55671 }, + { 0x1763, 55683 }, + { 0x1764, 55680 }, + { 0x1765, 55710 }, + { 0x1766, 55701 }, + { 0x1767, 55677 }, + { 0x1768, 55692 }, + { 0x1769, 55695 }, + { 0x176A, 55674 }, + { 0x176B, 55689 }, + { 0x176C, 55707 }, + { 0x176E, 55686 }, + { 0x176F, 55704 }, + { 0x1770, 55698 }, + { 0x1772, 55657 }, + { 0x1773, 55661 }, + { 0x1780, 14115 }, + { 0x1781, 14163 }, + { 0x1782, 14118 }, + { 0x1783, 14166 }, + { 0x1784, 14169 }, + { 0x1785, 14100 }, + { 0x1786, 14157 }, + { 0x1787, 14103 }, + { 0x1788, 14160 }, + { 0x1789, 14175 }, + { 0x178A, 14106 }, + { 0x178B, 14196 }, + { 0x178C, 14109 }, + { 0x178D, 14199 }, + { 0x178E, 14172 }, + { 0x178F, 14145 }, + { 0x1790, 14190 }, + { 0x1791, 14148 }, + { 0x1792, 14193 }, + { 0x1793, 14130 }, + { 0x1794, 14097 }, + { 0x1795, 14178 }, + { 0x1796, 14133 }, + { 0x1797, 14181 }, + { 0x1798, 14127 }, + { 0x1799, 14154 }, + { 0x179A, 14139 }, + { 0x179B, 14124 }, + { 0x179C, 14151 }, + { 0x179D, 14184 }, + { 0x179E, 14187 }, + { 0x179F, 14142 }, + { 0x17A0, 14112 }, + { 0x17A1, 14121 }, + { 0x17A2, 14136 }, + { 0x17A3, 14414 }, + { 0x17A4, 14406 }, + { 0x17A5, 14390 }, + { 0x17A6, 14422 }, + { 0x17A7, 14394 }, + { 0x17A8, 14438 }, + { 0x17A9, 14442 }, + { 0x17AA, 14450 }, + { 0x17AB, 14398 }, + { 0x17AC, 14446 }, + { 0x17AD, 14382 }, + { 0x17AE, 14402 }, + { 0x17AF, 14386 }, + { 0x17B0, 14410 }, + { 0x17B1, 14426 }, + { 0x17B2, 14432 }, + { 0x17B3, 14418 }, + { 0x17B4, 14093 }, + { 0x17B5, 14089 }, + { 0x17B6, 14041 }, + { 0x17B7, 14029 }, + { 0x17B8, 14061 }, + { 0x17B9, 14037 }, + { 0x17BA, 14085 }, + { 0x17BB, 14033 }, + { 0x17BC, 14077 }, + { 0x17BD, 14073 }, + { 0x17BE, 14065 }, + { 0x17BF, 14081 }, + { 0x17C0, 14057 }, + { 0x17C1, 14025 }, + { 0x17C2, 14045 }, + { 0x17C3, 14049 }, + { 0x17C4, 14069 }, + { 0x17C5, 14053 }, + { 0x17C6, 13965 }, + { 0x17C7, 13968 }, + { 0x17C8, 13992 }, + { 0x17C9, 13983 }, + { 0x17CA, 13971 }, + { 0x17CB, 13937 }, + { 0x17CC, 13934 }, + { 0x17CD, 13986 }, + { 0x17CE, 13959 }, + { 0x17CF, 13928 }, + { 0x17D0, 13952 }, + { 0x17D1, 13956 }, + { 0x17D2, 13931 }, + { 0x17D3, 13980 }, + { 0x17D4, 13925 }, + { 0x17D5, 13977 }, + { 0x17D6, 13943 }, + { 0x17D7, 13921 }, + { 0x17D8, 13940 }, + { 0x17D9, 13948 }, + { 0x17DA, 13962 }, + { 0x17DB, 14378 }, + { 0x17DC, 13989 }, + { 0x17DD, 13974 }, + { 0x17E0, 14013 }, + { 0x17E1, 13995 }, + { 0x17E2, 14001 }, + { 0x17E3, 14022 }, + { 0x17E4, 14007 }, + { 0x17E5, 14004 }, + { 0x17E6, 13998 }, + { 0x17E7, 14019 }, + { 0x17E8, 14016 }, + { 0x17E9, 14010 }, + { 0x17F0, 14228 }, + { 0x17F1, 14238 }, + { 0x17F2, 14223 }, + { 0x17F3, 14218 }, + { 0x17F4, 14233 }, + { 0x17F5, 14243 }, + { 0x17F6, 14263 }, + { 0x17F7, 14253 }, + { 0x17F8, 14248 }, + { 0x17F9, 14258 }, + { 0x1800, 65145 }, + { 0x1801, 65749 }, + { 0x1802, 65149 }, + { 0x1803, 65133 }, + { 0x1804, 65147 }, + { 0x1805, 65115 }, + { 0x1806, 65141 }, + { 0x1807, 65136 }, + { 0x1808, 65744 }, + { 0x1809, 65740 }, + { 0x180A, 65747 }, + { 0x180B, 65118 }, + { 0x180C, 65123 }, + { 0x180D, 65128 }, + { 0x180E, 65181 }, + { 0x1810, 65169 }, + { 0x1811, 65151 }, + { 0x1812, 65157 }, + { 0x1813, 65178 }, + { 0x1814, 65163 }, + { 0x1815, 65160 }, + { 0x1816, 65154 }, + { 0x1817, 65175 }, + { 0x1818, 65172 }, + { 0x1819, 65166 }, + { 0x1820, 65184 }, + { 0x1821, 65187 }, + { 0x1822, 65190 }, + { 0x1823, 65193 }, + { 0x1824, 65196 }, + { 0x1825, 65229 }, + { 0x1826, 65247 }, + { 0x1827, 65205 }, + { 0x1828, 65226 }, + { 0x1829, 65400 }, + { 0x182A, 65199 }, + { 0x182B, 65232 }, + { 0x182C, 65235 }, + { 0x182D, 65211 }, + { 0x182E, 65223 }, + { 0x182F, 65220 }, + { 0x1830, 65241 }, + { 0x1831, 65418 }, + { 0x1832, 65244 }, + { 0x1833, 65202 }, + { 0x1834, 65403 }, + { 0x1835, 65214 }, + { 0x1836, 65253 }, + { 0x1837, 65238 }, + { 0x1838, 65250 }, + { 0x1839, 65208 }, + { 0x183A, 65217 }, + { 0x183B, 65412 }, + { 0x183C, 65421 }, + { 0x183D, 65256 }, + { 0x183E, 65409 }, + { 0x183F, 65427 }, + { 0x1840, 65415 }, + { 0x1841, 65424 }, + { 0x1842, 65406 }, + { 0x1843, 65630 }, + { 0x1844, 65518 }, + { 0x1845, 65522 }, + { 0x1846, 65526 }, + { 0x1847, 65530 }, + { 0x1848, 65558 }, + { 0x1849, 65574 }, + { 0x184A, 65598 }, + { 0x184B, 65534 }, + { 0x184C, 65562 }, + { 0x184D, 65566 }, + { 0x184E, 65542 }, + { 0x184F, 65554 }, + { 0x1850, 65570 }, + { 0x1851, 65538 }, + { 0x1852, 65602 }, + { 0x1853, 65546 }, + { 0x1854, 65626 }, + { 0x1855, 65582 }, + { 0x1856, 65578 }, + { 0x1857, 65550 }, + { 0x1858, 65610 }, + { 0x1859, 65614 }, + { 0x185A, 65618 }, + { 0x185B, 65622 }, + { 0x185C, 65606 }, + { 0x185D, 65430 }, + { 0x185E, 65434 }, + { 0x185F, 65458 }, + { 0x1860, 65478 }, + { 0x1861, 65438 }, + { 0x1862, 65486 }, + { 0x1863, 65466 }, + { 0x1864, 65450 }, + { 0x1865, 65454 }, + { 0x1866, 65470 }, + { 0x1867, 65506 }, + { 0x1868, 65474 }, + { 0x1869, 65442 }, + { 0x186A, 65462 }, + { 0x186B, 65446 }, + { 0x186C, 65494 }, + { 0x186D, 65498 }, + { 0x186E, 65510 }, + { 0x186F, 65482 }, + { 0x1870, 65502 }, + { 0x1871, 65490 }, + { 0x1872, 65514 }, + { 0x1873, 65636 }, + { 0x1874, 65644 }, + { 0x1875, 65648 }, + { 0x1876, 65640 }, + { 0x1877, 65736 }, + { 0x1880, 65388 }, + { 0x1881, 65382 }, + { 0x1882, 65367 }, + { 0x1883, 65377 }, + { 0x1884, 65394 }, + { 0x1885, 65362 }, + { 0x1886, 65356 }, + { 0x1887, 65259 }, + { 0x1888, 65264 }, + { 0x1889, 65284 }, + { 0x188A, 65309 }, + { 0x188B, 65274 }, + { 0x188C, 65329 }, + { 0x188D, 65351 }, + { 0x188E, 65304 }, + { 0x188F, 65314 }, + { 0x1890, 65294 }, + { 0x1891, 65279 }, + { 0x1892, 65289 }, + { 0x1893, 65319 }, + { 0x1894, 65324 }, + { 0x1895, 65334 }, + { 0x1896, 65299 }, + { 0x1897, 65269 }, + { 0x1898, 65586 }, + { 0x1899, 65592 }, + { 0x189A, 65688 }, + { 0x189B, 65706 }, + { 0x189C, 65652 }, + { 0x189D, 65694 }, + { 0x189E, 65718 }, + { 0x189F, 65730 }, + { 0x18A0, 65658 }, + { 0x18A1, 65682 }, + { 0x18A2, 65712 }, + { 0x18A3, 65676 }, + { 0x18A4, 65724 }, + { 0x18A5, 65664 }, + { 0x18A6, 65339 }, + { 0x18A7, 65345 }, + { 0x18A8, 65670 }, + { 0x18A9, 65372 }, + { 0x18AA, 65700 }, + { 0x1900, 21091 }, + { 0x1901, 21007 }, + { 0x1902, 21052 }, + { 0x1903, 20998 }, + { 0x1904, 21046 }, + { 0x1905, 21055 }, + { 0x1906, 20992 }, + { 0x1907, 21040 }, + { 0x1908, 21004 }, + { 0x1909, 21049 }, + { 0x190A, 21070 }, + { 0x190B, 21028 }, + { 0x190C, 21067 }, + { 0x190D, 20995 }, + { 0x190E, 21043 }, + { 0x190F, 21016 }, + { 0x1910, 21019 }, + { 0x1911, 21058 }, + { 0x1912, 20989 }, + { 0x1913, 21037 }, + { 0x1914, 21013 }, + { 0x1915, 21034 }, + { 0x1916, 21022 }, + { 0x1917, 21010 }, + { 0x1918, 21031 }, + { 0x1919, 21061 }, + { 0x191A, 21064 }, + { 0x191B, 21025 }, + { 0x191C, 21001 }, + { 0x1920, 20953 }, + { 0x1921, 20961 }, + { 0x1922, 20969 }, + { 0x1923, 20981 }, + { 0x1924, 20973 }, + { 0x1925, 20985 }, + { 0x1926, 20977 }, + { 0x1927, 20957 }, + { 0x1928, 20965 }, + { 0x1929, 21084 }, + { 0x192A, 21076 }, + { 0x192B, 21080 }, + { 0x1930, 20917 }, + { 0x1931, 20945 }, + { 0x1932, 20949 }, + { 0x1933, 20941 }, + { 0x1934, 20929 }, + { 0x1935, 20933 }, + { 0x1936, 20925 }, + { 0x1937, 20937 }, + { 0x1938, 20921 }, + { 0x1939, 20884 }, + { 0x193A, 20881 }, + { 0x193B, 20878 }, + { 0x1940, 20875 }, + { 0x1944, 21088 }, + { 0x1945, 21073 }, + { 0x1946, 20905 }, + { 0x1947, 20887 }, + { 0x1948, 20893 }, + { 0x1949, 20914 }, + { 0x194A, 20899 }, + { 0x194B, 20896 }, + { 0x194C, 20890 }, + { 0x194D, 20911 }, + { 0x194E, 20908 }, + { 0x194F, 20902 }, + { 0x1950, 7612 }, + { 0x1951, 7656 }, + { 0x1952, 7672 }, + { 0x1953, 7684 }, + { 0x1954, 7640 }, + { 0x1955, 7660 }, + { 0x1956, 7644 }, + { 0x1957, 7680 }, + { 0x1958, 7616 }, + { 0x1959, 7632 }, + { 0x195A, 7676 }, + { 0x195B, 7620 }, + { 0x195C, 7604 }, + { 0x195D, 7652 }, + { 0x195E, 7608 }, + { 0x195F, 7636 }, + { 0x1960, 7668 }, + { 0x1961, 7688 }, + { 0x1962, 7624 }, + { 0x1963, 7572 }, + { 0x1964, 7580 }, + { 0x1965, 7596 }, + { 0x1966, 7600 }, + { 0x1967, 7588 }, + { 0x1968, 7628 }, + { 0x1969, 7584 }, + { 0x196A, 7648 }, + { 0x196B, 7576 }, + { 0x196C, 7664 }, + { 0x196D, 7592 }, + { 0x1970, 7692 }, + { 0x1971, 7696 }, + { 0x1972, 7700 }, + { 0x1973, 7704 }, + { 0x1974, 7708 }, + { 0x1980, 6393 }, + { 0x1981, 6267 }, + { 0x1982, 6363 }, + { 0x1983, 6417 }, + { 0x1984, 6435 }, + { 0x1985, 6237 }, + { 0x1986, 6291 }, + { 0x1987, 6309 }, + { 0x1988, 6453 }, + { 0x1989, 6399 }, + { 0x198A, 6423 }, + { 0x198B, 6327 }, + { 0x198C, 6273 }, + { 0x198D, 6297 }, + { 0x198E, 6405 }, + { 0x198F, 6447 }, + { 0x1990, 6381 }, + { 0x1991, 6279 }, + { 0x1992, 6321 }, + { 0x1993, 6255 }, + { 0x1994, 6387 }, + { 0x1995, 6441 }, + { 0x1996, 6375 }, + { 0x1997, 6261 }, + { 0x1998, 6315 }, + { 0x1999, 6249 }, + { 0x199A, 6351 }, + { 0x199B, 6411 }, + { 0x199C, 6369 }, + { 0x199D, 6225 }, + { 0x199E, 6285 }, + { 0x199F, 6243 }, + { 0x19A0, 6357 }, + { 0x19A1, 6345 }, + { 0x19A2, 6339 }, + { 0x19A3, 6231 }, + { 0x19A4, 6219 }, + { 0x19A5, 6213 }, + { 0x19A6, 6429 }, + { 0x19A7, 6459 }, + { 0x19A8, 6303 }, + { 0x19A9, 6333 }, + { 0x19B0, 6206 }, + { 0x19B1, 6128 }, + { 0x19B2, 6146 }, + { 0x19B3, 6122 }, + { 0x19B4, 6176 }, + { 0x19B5, 6110 }, + { 0x19B6, 6134 }, + { 0x19B7, 6116 }, + { 0x19B8, 6158 }, + { 0x19B9, 6170 }, + { 0x19BA, 6140 }, + { 0x19BB, 6188 }, + { 0x19BC, 6182 }, + { 0x19BD, 6164 }, + { 0x19BE, 6194 }, + { 0x19BF, 6200 }, + { 0x19C0, 6152 }, + { 0x19C1, 6495 }, + { 0x19C2, 6501 }, + { 0x19C3, 6489 }, + { 0x19C4, 6483 }, + { 0x19C5, 6477 }, + { 0x19C6, 6471 }, + { 0x19C7, 6465 }, + { 0x19C8, 6050 }, + { 0x19C9, 6055 }, + { 0x19D0, 6090 }, + { 0x19D1, 6060 }, + { 0x19D2, 6070 }, + { 0x19D3, 6105 }, + { 0x19D4, 6080 }, + { 0x19D5, 6075 }, + { 0x19D6, 6065 }, + { 0x19D7, 6100 }, + { 0x19D8, 6095 }, + { 0x19D9, 6085 }, + { 0x19DE, 6040 }, + { 0x19DF, 6045 }, + { 0x19E0, 14375 }, + { 0x19E1, 14288 }, + { 0x19E2, 14272 }, + { 0x19E3, 14206 }, + { 0x19E4, 14280 }, + { 0x19E5, 14296 }, + { 0x19E6, 14368 }, + { 0x19E7, 14352 }, + { 0x19E8, 14344 }, + { 0x19E9, 14360 }, + { 0x19EA, 14214 }, + { 0x19EB, 14328 }, + { 0x19EC, 14312 }, + { 0x19ED, 14304 }, + { 0x19EE, 14320 }, + { 0x19EF, 14336 }, + { 0x19F0, 14372 }, + { 0x19F1, 14284 }, + { 0x19F2, 14268 }, + { 0x19F3, 14202 }, + { 0x19F4, 14276 }, + { 0x19F5, 14292 }, + { 0x19F6, 14364 }, + { 0x19F7, 14348 }, + { 0x19F8, 14340 }, + { 0x19F9, 14356 }, + { 0x19FA, 14210 }, + { 0x19FB, 14324 }, + { 0x19FC, 14308 }, + { 0x19FD, 14300 }, + { 0x19FE, 14316 }, + { 0x19FF, 14332 }, + { 0x1A00, 45814 }, + { 0x1A01, 45805 }, + { 0x1A02, 45847 }, + { 0x1A03, 45856 }, + { 0x1A04, 45826 }, + { 0x1A05, 45796 }, + { 0x1A06, 45820 }, + { 0x1A07, 45844 }, + { 0x1A08, 45835 }, + { 0x1A09, 45802 }, + { 0x1A0A, 45823 }, + { 0x1A0B, 45850 }, + { 0x1A0C, 45799 }, + { 0x1A0D, 45811 }, + { 0x1A0E, 45853 }, + { 0x1A0F, 45859 }, + { 0x1A10, 45841 }, + { 0x1A11, 45829 }, + { 0x1A12, 45817 }, + { 0x1A13, 45838 }, + { 0x1A14, 45832 }, + { 0x1A15, 45793 }, + { 0x1A16, 45808 }, + { 0x1A17, 45777 }, + { 0x1A18, 45785 }, + { 0x1A19, 45773 }, + { 0x1A1A, 45781 }, + { 0x1A1B, 45789 }, + { 0x1A1E, 45862 }, + { 0x1A1F, 45769 }, + { 0x1B00, 45088 }, + { 0x1B01, 45092 }, + { 0x1B02, 45099 }, + { 0x1B03, 45102 }, + { 0x1B04, 45096 }, + { 0x1B05, 45383 }, + { 0x1B06, 45386 }, + { 0x1B07, 45393 }, + { 0x1B08, 45396 }, + { 0x1B09, 45407 }, + { 0x1B0A, 45410 }, + { 0x1B0B, 45315 }, + { 0x1B0C, 45319 }, + { 0x1B0D, 45286 }, + { 0x1B0E, 45290 }, + { 0x1B0F, 45390 }, + { 0x1B10, 45414 }, + { 0x1B11, 45400 }, + { 0x1B12, 45403 }, + { 0x1B13, 45276 }, + { 0x1B14, 45279 }, + { 0x1B15, 45259 }, + { 0x1B16, 45262 }, + { 0x1B17, 45365 }, + { 0x1B18, 45231 }, + { 0x1B19, 45234 }, + { 0x1B1A, 45269 }, + { 0x1B1B, 45272 }, + { 0x1B1C, 45368 }, + { 0x1B1D, 45342 }, + { 0x1B1E, 45346 }, + { 0x1B1F, 45245 }, + { 0x1B20, 45250 }, + { 0x1B21, 45301 }, + { 0x1B22, 45335 }, + { 0x1B23, 45338 }, + { 0x1B24, 45238 }, + { 0x1B25, 45241 }, + { 0x1B26, 45298 }, + { 0x1B27, 45305 }, + { 0x1B28, 45308 }, + { 0x1B29, 45224 }, + { 0x1B2A, 45227 }, + { 0x1B2B, 45295 }, + { 0x1B2C, 45358 }, + { 0x1B2D, 45312 }, + { 0x1B2E, 45283 }, + { 0x1B2F, 45355 }, + { 0x1B30, 45327 }, + { 0x1B31, 45331 }, + { 0x1B32, 45324 }, + { 0x1B33, 45266 }, + { 0x1B34, 45105 }, + { 0x1B35, 45218 }, + { 0x1B36, 45171 }, + { 0x1B37, 45175 }, + { 0x1B38, 45180 }, + { 0x1B39, 45184 }, + { 0x1B3A, 45160 }, + { 0x1B3B, 45165 }, + { 0x1B3C, 45149 }, + { 0x1B3D, 45154 }, + { 0x1B3E, 45198 }, + { 0x1B3F, 45202 }, + { 0x1B40, 45213 }, + { 0x1B41, 45207 }, + { 0x1B42, 45189 }, + { 0x1B43, 45193 }, + { 0x1B44, 45085 }, + { 0x1B45, 45361 }, + { 0x1B46, 45375 }, + { 0x1B47, 45379 }, + { 0x1B48, 45255 }, + { 0x1B49, 45351 }, + { 0x1B4A, 45371 }, + { 0x1B4B, 45417 }, + { 0x1B50, 45135 }, + { 0x1B51, 45117 }, + { 0x1B52, 45123 }, + { 0x1B53, 45144 }, + { 0x1B54, 45129 }, + { 0x1B55, 45126 }, + { 0x1B56, 45120 }, + { 0x1B57, 45141 }, + { 0x1B58, 45138 }, + { 0x1B59, 45132 }, + { 0x1B5A, 45147 }, + { 0x1B5B, 45421 }, + { 0x1B5C, 45222 }, + { 0x1B5D, 45114 }, + { 0x1B5E, 45108 }, + { 0x1B5F, 45111 }, + { 0x1B60, 45568 }, + { 0x1B61, 45445 }, + { 0x1B62, 45437 }, + { 0x1B63, 45449 }, + { 0x1B64, 45423 }, + { 0x1B65, 45432 }, + { 0x1B66, 45441 }, + { 0x1B67, 45453 }, + { 0x1B68, 45461 }, + { 0x1B69, 45457 }, + { 0x1B6A, 45427 }, + { 0x1B6B, 45480 }, + { 0x1B6C, 45475 }, + { 0x1B6D, 45497 }, + { 0x1B6E, 45485 }, + { 0x1B6F, 45509 }, + { 0x1B70, 45502 }, + { 0x1B71, 45490 }, + { 0x1B72, 45470 }, + { 0x1B73, 45465 }, + { 0x1B74, 45550 }, + { 0x1B75, 45544 }, + { 0x1B76, 45562 }, + { 0x1B77, 45556 }, + { 0x1B78, 45514 }, + { 0x1B79, 45526 }, + { 0x1B7A, 45532 }, + { 0x1B7B, 45538 }, + { 0x1B7C, 45520 }, + { 0x1B80, 65869 }, + { 0x1B81, 65872 }, + { 0x1B82, 65875 }, + { 0x1B83, 65932 }, + { 0x1B84, 65938 }, + { 0x1B85, 65944 }, + { 0x1B86, 65947 }, + { 0x1B87, 65941 }, + { 0x1B88, 65935 }, + { 0x1B89, 65959 }, + { 0x1B8A, 65974 }, + { 0x1B8B, 65989 }, + { 0x1B8C, 65965 }, + { 0x1B8D, 66019 }, + { 0x1B8E, 65953 }, + { 0x1B8F, 65971 }, + { 0x1B90, 66013 }, + { 0x1B91, 66022 }, + { 0x1B92, 65998 }, + { 0x1B93, 65956 }, + { 0x1B94, 65983 }, + { 0x1B95, 65986 }, + { 0x1B96, 65962 }, + { 0x1B97, 66001 }, + { 0x1B98, 65950 }, + { 0x1B99, 65980 }, + { 0x1B9A, 66010 }, + { 0x1B9B, 65992 }, + { 0x1B9C, 65977 }, + { 0x1B9D, 66004 }, + { 0x1B9E, 65995 }, + { 0x1B9F, 66007 }, + { 0x1BA0, 65968 }, + { 0x1BA1, 66036 }, + { 0x1BA2, 66032 }, + { 0x1BA3, 66028 }, + { 0x1BA4, 65916 }, + { 0x1BA5, 65912 }, + { 0x1BA6, 65924 }, + { 0x1BA7, 65920 }, + { 0x1BA8, 65908 }, + { 0x1BA9, 65928 }, + { 0x1BAA, 65866 }, + { 0x1BAE, 66016 }, + { 0x1BAF, 66025 }, + { 0x1BB0, 65896 }, + { 0x1BB1, 65878 }, + { 0x1BB2, 65884 }, + { 0x1BB3, 65905 }, + { 0x1BB4, 65890 }, + { 0x1BB5, 65887 }, + { 0x1BB6, 65881 }, + { 0x1BB7, 65902 }, + { 0x1BB8, 65899 }, + { 0x1BB9, 65893 }, + { 0x1C00, 34194 }, + { 0x1C01, 34251 }, + { 0x1C02, 34248 }, + { 0x1C03, 34185 }, + { 0x1C04, 34242 }, + { 0x1C05, 34257 }, + { 0x1C06, 34176 }, + { 0x1C07, 34230 }, + { 0x1C08, 34191 }, + { 0x1C09, 34260 }, + { 0x1C0A, 34215 }, + { 0x1C0B, 34272 }, + { 0x1C0C, 34179 }, + { 0x1C0D, 34203 }, + { 0x1C0E, 34206 }, + { 0x1C0F, 34266 }, + { 0x1C10, 34263 }, + { 0x1C11, 34182 }, + { 0x1C12, 34239 }, + { 0x1C13, 34173 }, + { 0x1C14, 34227 }, + { 0x1C15, 34200 }, + { 0x1C16, 34254 }, + { 0x1C17, 34275 }, + { 0x1C18, 34281 }, + { 0x1C19, 34236 }, + { 0x1C1A, 34224 }, + { 0x1C1B, 34209 }, + { 0x1C1C, 34197 }, + { 0x1C1D, 34188 }, + { 0x1C1E, 34245 }, + { 0x1C1F, 34218 }, + { 0x1C20, 34212 }, + { 0x1C21, 34269 }, + { 0x1C22, 34221 }, + { 0x1C23, 34170 }, + { 0x1C24, 34327 }, + { 0x1C25, 34323 }, + { 0x1C26, 34158 }, + { 0x1C27, 34146 }, + { 0x1C28, 34150 }, + { 0x1C29, 34162 }, + { 0x1C2A, 34154 }, + { 0x1C2B, 34166 }, + { 0x1C2C, 34142 }, + { 0x1C2D, 34287 }, + { 0x1C2E, 34295 }, + { 0x1C2F, 34291 }, + { 0x1C30, 34299 }, + { 0x1C31, 34303 }, + { 0x1C32, 34307 }, + { 0x1C33, 34311 }, + { 0x1C34, 34319 }, + { 0x1C35, 34315 }, + { 0x1C36, 34106 }, + { 0x1C37, 34109 }, + { 0x1C3B, 34339 }, + { 0x1C3C, 34331 }, + { 0x1C3D, 34336 }, + { 0x1C3E, 34345 }, + { 0x1C3F, 34342 }, + { 0x1C40, 34130 }, + { 0x1C41, 34112 }, + { 0x1C42, 34118 }, + { 0x1C43, 34139 }, + { 0x1C44, 34124 }, + { 0x1C45, 34121 }, + { 0x1C46, 34115 }, + { 0x1C47, 34136 }, + { 0x1C48, 34133 }, + { 0x1C49, 34127 }, + { 0x1C4D, 34278 }, + { 0x1C4E, 34284 }, + { 0x1C4F, 34233 }, + { 0x1C50, 112 }, + { 0x1C51, 88 }, + { 0x1C52, 96 }, + { 0x1C53, 124 }, + { 0x1C54, 104 }, + { 0x1C55, 100 }, + { 0x1C56, 92 }, + { 0x1C57, 120 }, + { 0x1C58, 116 }, + { 0x1C59, 108 }, + { 0x1C5A, 163 }, + { 0x1C5B, 139 }, + { 0x1C5C, 131 }, + { 0x1C5D, 223 }, + { 0x1C5E, 135 }, + { 0x1C5F, 239 }, + { 0x1C60, 211 }, + { 0x1C61, 207 }, + { 0x1C62, 215 }, + { 0x1C63, 219 }, + { 0x1C64, 171 }, + { 0x1C65, 159 }, + { 0x1C66, 151 }, + { 0x1C67, 235 }, + { 0x1C68, 155 }, + { 0x1C69, 179 }, + { 0x1C6A, 195 }, + { 0x1C6B, 199 }, + { 0x1C6C, 247 }, + { 0x1C6D, 203 }, + { 0x1C6E, 167 }, + { 0x1C6F, 147 }, + { 0x1C70, 227 }, + { 0x1C71, 143 }, + { 0x1C72, 231 }, + { 0x1C73, 175 }, + { 0x1C74, 243 }, + { 0x1C75, 183 }, + { 0x1C76, 191 }, + { 0x1C77, 187 }, + { 0x1C78, 81 }, + { 0x1C79, 251 }, + { 0x1C7A, 258 }, + { 0x1C7B, 128 }, + { 0x1C7C, 255 }, + { 0x1C7D, 85 }, + { 0x1C7E, 267 }, + { 0x1C7F, 262 }, + { 0x1D00, 17949 }, + { 0x1D01, 18083 }, + { 0x1D02, 17650 }, + { 0x1D03, 18119 }, + { 0x1D04, 17959 }, + { 0x1D05, 17964 }, + { 0x1D06, 18098 }, + { 0x1D07, 17969 }, + { 0x1D08, 17660 }, + { 0x1D09, 17575 }, + { 0x1D0A, 18001 }, + { 0x1D0B, 18006 }, + { 0x1D0C, 18016 }, + { 0x1D0D, 18023 }, + { 0x1D0E, 18143 }, + { 0x1D0F, 18033 }, + { 0x1D10, 18113 }, + { 0x1D11, 17804 }, + { 0x1D12, 17821 }, + { 0x1D13, 17809 }, + { 0x1D14, 17655 }, + { 0x1D15, 18093 }, + { 0x1D16, 17292 }, + { 0x1D17, 17499 }, + { 0x1D18, 18038 }, + { 0x1D19, 18149 }, + { 0x1D1A, 18131 }, + { 0x1D1B, 18053 }, + { 0x1D1C, 18058 }, + { 0x1D1D, 17816 }, + { 0x1D1E, 17833 }, + { 0x1D1F, 17827 }, + { 0x1D20, 18063 }, + { 0x1D21, 18068 }, + { 0x1D22, 18078 }, + { 0x1D23, 18103 }, + { 0x1D24, 18159 }, + { 0x1D25, 17938 }, + { 0x1D26, 12051 }, + { 0x1D27, 12056 }, + { 0x1D28, 12036 }, + { 0x1D29, 12046 }, + { 0x1D2A, 12041 }, + { 0x1D2B, 49409 }, + { 0x1D2C, 54616 }, + { 0x1D2D, 54692 }, + { 0x1D2E, 54620 }, + { 0x1D2F, 54700 }, + { 0x1D30, 54624 }, + { 0x1D31, 54628 }, + { 0x1D32, 54705 }, + { 0x1D33, 54632 }, + { 0x1D34, 54636 }, + { 0x1D35, 54640 }, + { 0x1D36, 54644 }, + { 0x1D37, 54648 }, + { 0x1D38, 54652 }, + { 0x1D39, 54656 }, + { 0x1D3A, 54660 }, + { 0x1D3B, 54710 }, + { 0x1D3C, 54664 }, + { 0x1D3D, 54696 }, + { 0x1D3E, 54668 }, + { 0x1D3F, 54672 }, + { 0x1D40, 54676 }, + { 0x1D41, 54680 }, + { 0x1D42, 54688 }, + { 0x1D43, 54136 }, + { 0x1D44, 54421 }, + { 0x1D45, 54375 }, + { 0x1D46, 54466 }, + { 0x1D47, 54140 }, + { 0x1D48, 54154 }, + { 0x1D49, 54158 }, + { 0x1D4A, 54397 }, + { 0x1D4B, 54365 }, + { 0x1D4C, 54471 }, + { 0x1D4D, 54166 }, + { 0x1D4E, 54431 }, + { 0x1D4F, 54196 }, + { 0x1D50, 54218 }, + { 0x1D51, 54331 }, + { 0x1D52, 54242 }, + { 0x1D53, 54370 }, + { 0x1D54, 54351 }, + { 0x1D55, 54410 }, + { 0x1D56, 54246 }, + { 0x1D57, 54264 }, + { 0x1D58, 54275 }, + { 0x1D59, 54538 }, + { 0x1D5A, 54436 }, + { 0x1D5B, 54284 }, + { 0x1D5C, 54323 }, + { 0x1D5D, 54357 }, + { 0x1D5E, 54392 }, + { 0x1D5F, 54379 }, + { 0x1D60, 54387 }, + { 0x1D61, 54327 }, + { 0x1D62, 20792 }, + { 0x1D63, 20807 }, + { 0x1D64, 20812 }, + { 0x1D65, 20817 }, + { 0x1D66, 13101 }, + { 0x1D67, 13106 }, + { 0x1D68, 13096 }, + { 0x1D69, 13091 }, + { 0x1D6A, 13086 }, + { 0x1D6B, 17177 }, + { 0x1D6C, 14742 }, + { 0x1D6D, 14886 }, + { 0x1D6E, 15140 }, + { 0x1D6F, 15661 }, + { 0x1D70, 15745 }, + { 0x1D71, 16100 }, + { 0x1D72, 16239 }, + { 0x1D73, 16271 }, + { 0x1D74, 16370 }, + { 0x1D75, 16446 }, + { 0x1D76, 16999 }, + { 0x1D77, 17549 }, + { 0x1D78, 54782 }, + { 0x1D79, 17723 }, + { 0x1D7A, 17162 }, + { 0x1D7B, 17883 }, + { 0x1D7C, 17331 }, + { 0x1D7D, 16107 }, + { 0x1D7E, 17890 }, + { 0x1D7F, 17747 }, + { 0x1D80, 14761 }, + { 0x1D81, 14911 }, + { 0x1D82, 15147 }, + { 0x1D83, 15207 }, + { 0x1D84, 15493 }, + { 0x1D85, 15610 }, + { 0x1D86, 15668 }, + { 0x1D87, 15758 }, + { 0x1D88, 16121 }, + { 0x1D89, 16258 }, + { 0x1D8A, 16383 }, + { 0x1D8B, 17211 }, + { 0x1D8C, 16764 }, + { 0x1D8D, 16844 }, + { 0x1D8E, 17012 }, + { 0x1D8F, 14656 }, + { 0x1D90, 17433 }, + { 0x1D91, 14859 }, + { 0x1D92, 15061 }, + { 0x1D93, 17375 }, + { 0x1D94, 17791 }, + { 0x1D95, 17458 }, + { 0x1D96, 15395 }, + { 0x1D97, 17388 }, + { 0x1D98, 17218 }, + { 0x1D99, 16708 }, + { 0x1D9A, 17251 }, + { 0x1D9B, 54477 }, + { 0x1D9C, 54144 }, + { 0x1D9D, 54148 }, + { 0x1D9E, 54339 }, + { 0x1D9F, 54526 }, + { 0x1DA0, 54162 }, + { 0x1DA1, 54515 }, + { 0x1DA2, 54416 }, + { 0x1DA3, 54426 }, + { 0x1DA4, 54180 }, + { 0x1DA5, 54361 }, + { 0x1DA6, 54482 }, + { 0x1DA7, 54487 }, + { 0x1DA8, 54190 }, + { 0x1DA9, 54211 }, + { 0x1DAA, 54204 }, + { 0x1DAB, 54494 }, + { 0x1DAC, 54222 }, + { 0x1DAD, 54441 }, + { 0x1DAE, 54228 }, + { 0x1DAF, 54235 }, + { 0x1DB0, 54499 }, + { 0x1DB1, 54405 }, + { 0x1DB2, 54347 }, + { 0x1DB3, 54258 }, + { 0x1DB4, 54335 }, + { 0x1DB5, 54268 }, + { 0x1DB6, 54279 }, + { 0x1DB7, 54522 }, + { 0x1DB8, 54504 }, + { 0x1DB9, 54288 }, + { 0x1DBA, 54461 }, + { 0x1DBB, 54306 }, + { 0x1DBC, 54316 }, + { 0x1DBD, 54310 }, + { 0x1DBE, 54343 }, + { 0x1DBF, 54401 }, + { 0x1DC0, 57864 }, + { 0x1DC1, 57860 }, + { 0x1DC2, 57834 }, + { 0x1DC3, 58302 }, + { 0x1DC4, 58317 }, + { 0x1DC5, 58315 }, + { 0x1DC6, 58321 }, + { 0x1DC7, 58311 }, + { 0x1DC8, 58333 }, + { 0x1DC9, 58331 }, + { 0x1DCA, 57657 }, + { 0x1DCB, 58313 }, + { 0x1DCC, 58319 }, + { 0x1DCD, 57933 }, + { 0x1DCE, 57961 }, + { 0x1DCF, 57977 }, + { 0x1DD0, 57389 }, + { 0x1DD1, 57396 }, + { 0x1DD2, 57399 }, + { 0x1DD3, 57731 }, + { 0x1DD4, 57699 }, + { 0x1DD5, 57704 }, + { 0x1DD6, 57709 }, + { 0x1DD7, 57596 }, + { 0x1DD8, 57725 }, + { 0x1DD9, 57714 }, + { 0x1DDA, 57612 }, + { 0x1DDB, 57739 }, + { 0x1DDC, 57627 }, + { 0x1DDD, 57632 }, + { 0x1DDE, 57745 }, + { 0x1DDF, 57751 }, + { 0x1DE0, 57642 }, + { 0x1DE1, 57757 }, + { 0x1DE2, 57763 }, + { 0x1DE3, 57663 }, + { 0x1DE4, 57669 }, + { 0x1DE5, 57719 }, + { 0x1DE6, 57694 }, + { 0x1DFE, 57476 }, + { 0x1DFF, 57806 }, + { 0x1E00, 18281 }, + { 0x1E01, 14523 }, + { 0x1E02, 18458 }, + { 0x1E03, 14715 }, + { 0x1E04, 18465 }, + { 0x1E05, 14722 }, + { 0x1E06, 18478 }, + { 0x1E07, 14735 }, + { 0x1E08, 18538 }, + { 0x1E09, 14815 }, + { 0x1E0A, 18556 }, + { 0x1E0B, 14833 }, + { 0x1E0C, 18563 }, + { 0x1E0D, 14840 }, + { 0x1E0E, 18576 }, + { 0x1E0F, 14867 }, + { 0x1E10, 18619 }, + { 0x1E11, 14905 }, + { 0x1E12, 18625 }, + { 0x1E13, 14918 }, + { 0x1E14, 18715 }, + { 0x1E15, 15014 }, + { 0x1E16, 18707 }, + { 0x1E17, 15006 }, + { 0x1E18, 18810 }, + { 0x1E19, 15116 }, + { 0x1E1A, 18687 }, + { 0x1E1B, 14986 }, + { 0x1E1C, 18741 }, + { 0x1E1D, 15040 }, + { 0x1E1E, 18821 }, + { 0x1E1F, 15127 }, + { 0x1E20, 18869 }, + { 0x1E21, 15189 }, + { 0x1E22, 18897 }, + { 0x1E23, 15224 }, + { 0x1E24, 18904 }, + { 0x1E25, 15231 }, + { 0x1E26, 18942 }, + { 0x1E27, 15282 }, + { 0x1E28, 18930 }, + { 0x1E29, 15270 }, + { 0x1E2A, 18911 }, + { 0x1E2B, 15251 }, + { 0x1E2C, 19009 }, + { 0x1E2D, 15342 }, + { 0x1E2E, 19054 }, + { 0x1E2F, 15387 }, + { 0x1E30, 19108 }, + { 0x1E31, 15460 }, + { 0x1E32, 19088 }, + { 0x1E33, 15440 }, + { 0x1E34, 19101 }, + { 0x1E35, 15453 }, + { 0x1E36, 19164 }, + { 0x1E37, 15523 }, + { 0x1E38, 19171 }, + { 0x1E39, 15530 }, + { 0x1E3A, 19187 }, + { 0x1E3B, 15558 }, + { 0x1E3C, 19247 }, + { 0x1E3D, 15624 }, + { 0x1E3E, 19278 }, + { 0x1E3F, 15655 }, + { 0x1E40, 19258 }, + { 0x1E41, 15635 }, + { 0x1E42, 19265 }, + { 0x1E43, 15642 }, + { 0x1E44, 19288 }, + { 0x1E45, 15679 }, + { 0x1E46, 19295 }, + { 0x1E47, 15686 }, + { 0x1E48, 19309 }, + { 0x1E49, 15706 }, + { 0x1E4A, 19362 }, + { 0x1E4B, 15772 }, + { 0x1E4C, 19495 }, + { 0x1E4D, 15920 }, + { 0x1E4E, 19511 }, + { 0x1E4F, 15936 }, + { 0x1E50, 19547 }, + { 0x1E51, 15972 }, + { 0x1E52, 19539 }, + { 0x1E53, 15964 }, + { 0x1E54, 19676 }, + { 0x1E55, 16094 }, + { 0x1E56, 19663 }, + { 0x1E57, 16081 }, + { 0x1E58, 19732 }, + { 0x1E59, 16177 }, + { 0x1E5A, 19739 }, + { 0x1E5B, 16184 }, + { 0x1E5C, 19746 }, + { 0x1E5D, 16191 }, + { 0x1E5E, 19755 }, + { 0x1E5F, 16200 }, + { 0x1E60, 19815 }, + { 0x1E61, 16296 }, + { 0x1E62, 19822 }, + { 0x1E63, 16303 }, + { 0x1E64, 19845 }, + { 0x1E65, 16332 }, + { 0x1E66, 19860 }, + { 0x1E67, 16347 }, + { 0x1E68, 19829 }, + { 0x1E69, 16310 }, + { 0x1E6A, 19892 }, + { 0x1E6B, 16400 }, + { 0x1E6C, 19899 }, + { 0x1E6D, 16407 }, + { 0x1E6E, 19912 }, + { 0x1E6F, 16426 }, + { 0x1E70, 19958 }, + { 0x1E71, 16492 }, + { 0x1E72, 20167 }, + { 0x1E73, 16701 }, + { 0x1E74, 20081 }, + { 0x1E75, 16615 }, + { 0x1E76, 20180 }, + { 0x1E77, 16721 }, + { 0x1E78, 20073 }, + { 0x1E79, 16607 }, + { 0x1E7A, 20108 }, + { 0x1E7B, 16642 }, + { 0x1E7C, 20204 }, + { 0x1E7D, 16758 }, + { 0x1E7E, 20191 }, + { 0x1E7F, 16732 }, + { 0x1E80, 20247 }, + { 0x1E81, 16815 }, + { 0x1E82, 20241 }, + { 0x1E83, 16809 }, + { 0x1E84, 20253 }, + { 0x1E85, 16821 }, + { 0x1E86, 20221 }, + { 0x1E87, 16782 }, + { 0x1E88, 20228 }, + { 0x1E89, 16789 }, + { 0x1E8A, 20269 }, + { 0x1E8B, 16837 }, + { 0x1E8C, 20276 }, + { 0x1E8D, 16851 }, + { 0x1E8E, 20286 }, + { 0x1E8F, 16861 }, + { 0x1E90, 20416 }, + { 0x1E91, 17032 }, + { 0x1E92, 20372 }, + { 0x1E93, 16954 }, + { 0x1E94, 20385 }, + { 0x1E95, 16973 }, + { 0x1E96, 15244 }, + { 0x1E97, 16479 }, + { 0x1E98, 16802 }, + { 0x1E99, 16894 }, + { 0x1E9A, 14596 }, + { 0x1E9B, 17346 }, + { 0x1E9C, 17362 }, + { 0x1E9D, 17354 }, + { 0x1E9E, 20613 }, + { 0x1E9F, 17440 }, + { 0x1EA0, 18251 }, + { 0x1EA1, 14493 }, + { 0x1EA2, 18258 }, + { 0x1EA3, 14500 }, + { 0x1EA4, 18430 }, + { 0x1EA5, 14687 }, + { 0x1EA6, 18438 }, + { 0x1EA7, 14695 }, + { 0x1EA8, 18421 }, + { 0x1EA9, 14678 }, + { 0x1EAA, 18446 }, + { 0x1EAB, 14703 }, + { 0x1EAC, 18412 }, + { 0x1EAD, 14669 }, + { 0x1EAE, 18318 }, + { 0x1EAF, 14560 }, + { 0x1EB0, 18326 }, + { 0x1EB1, 14568 }, + { 0x1EB2, 18309 }, + { 0x1EB3, 14551 }, + { 0x1EB4, 18334 }, + { 0x1EB5, 14576 }, + { 0x1EB6, 18300 }, + { 0x1EB7, 14542 }, + { 0x1EB8, 18643 }, + { 0x1EB9, 14936 }, + { 0x1EBA, 18650 }, + { 0x1EBB, 14943 }, + { 0x1EBC, 18681 }, + { 0x1EBD, 14980 }, + { 0x1EBE, 18786 }, + { 0x1EBF, 15092 }, + { 0x1EC0, 18794 }, + { 0x1EC1, 15100 }, + { 0x1EC2, 18777 }, + { 0x1EC3, 15083 }, + { 0x1EC4, 18802 }, + { 0x1EC5, 15108 }, + { 0x1EC6, 18768 }, + { 0x1EC7, 15074 }, + { 0x1EC8, 18972 }, + { 0x1EC9, 15305 }, + { 0x1ECA, 18965 }, + { 0x1ECB, 15298 }, + { 0x1ECC, 19389 }, + { 0x1ECD, 15806 }, + { 0x1ECE, 19396 }, + { 0x1ECF, 15821 }, + { 0x1ED0, 19635 }, + { 0x1ED1, 16053 }, + { 0x1ED2, 19643 }, + { 0x1ED3, 16061 }, + { 0x1ED4, 19626 }, + { 0x1ED5, 16044 }, + { 0x1ED6, 19651 }, + { 0x1ED7, 16069 }, + { 0x1ED8, 19617 }, + { 0x1ED9, 16035 }, + { 0x1EDA, 19427 }, + { 0x1EDB, 15852 }, + { 0x1EDC, 19435 }, + { 0x1EDD, 15860 }, + { 0x1EDE, 19418 }, + { 0x1EDF, 15843 }, + { 0x1EE0, 19443 }, + { 0x1EE1, 15868 }, + { 0x1EE2, 19409 }, + { 0x1EE3, 15834 }, + { 0x1EE4, 19974 }, + { 0x1EE5, 16508 }, + { 0x1EE6, 19981 }, + { 0x1EE7, 16515 }, + { 0x1EE8, 20012 }, + { 0x1EE9, 16546 }, + { 0x1EEA, 20020 }, + { 0x1EEB, 16554 }, + { 0x1EEC, 20003 }, + { 0x1EED, 16537 }, + { 0x1EEE, 20028 }, + { 0x1EEF, 16562 }, + { 0x1EF0, 19994 }, + { 0x1EF1, 16528 }, + { 0x1EF2, 20325 }, + { 0x1EF3, 16907 }, + { 0x1EF4, 20293 }, + { 0x1EF5, 16868 }, + { 0x1EF6, 20306 }, + { 0x1EF7, 16881 }, + { 0x1EF8, 20331 }, + { 0x1EF9, 16913 }, + { 0x1EFA, 20759 }, + { 0x1EFB, 17868 }, + { 0x1EFC, 20754 }, + { 0x1EFD, 17863 }, + { 0x1EFE, 20313 }, + { 0x1EFF, 16888 }, + { 0x1F00, 11230 }, + { 0x1F01, 11162 }, + { 0x1F02, 11254 }, + { 0x1F03, 11186 }, + { 0x1F04, 11236 }, + { 0x1F05, 11168 }, + { 0x1F06, 11272 }, + { 0x1F07, 11204 }, + { 0x1F08, 12506 }, + { 0x1F09, 12438 }, + { 0x1F0A, 12530 }, + { 0x1F0B, 12462 }, + { 0x1F0C, 12512 }, + { 0x1F0D, 12444 }, + { 0x1F0E, 12548 }, + { 0x1F0F, 12480 }, + { 0x1F10, 11631 }, + { 0x1F11, 11609 }, + { 0x1F12, 11645 }, + { 0x1F13, 11623 }, + { 0x1F14, 11637 }, + { 0x1F15, 11615 }, + { 0x1F18, 12829 }, + { 0x1F19, 12807 }, + { 0x1F1A, 12843 }, + { 0x1F1B, 12821 }, + { 0x1F1C, 12835 }, + { 0x1F1D, 12813 }, + { 0x1F20, 10850 }, + { 0x1F21, 10782 }, + { 0x1F22, 10874 }, + { 0x1F23, 10806 }, + { 0x1F24, 10856 }, + { 0x1F25, 10788 }, + { 0x1F26, 10892 }, + { 0x1F27, 10824 }, + { 0x1F28, 12200 }, + { 0x1F29, 12132 }, + { 0x1F2A, 12224 }, + { 0x1F2B, 12156 }, + { 0x1F2C, 12206 }, + { 0x1F2D, 12138 }, + { 0x1F2E, 12242 }, + { 0x1F2F, 12174 }, + { 0x1F30, 11042 }, + { 0x1F31, 11012 }, + { 0x1F32, 11056 }, + { 0x1F33, 11026 }, + { 0x1F34, 11048 }, + { 0x1F35, 11018 }, + { 0x1F36, 11064 }, + { 0x1F37, 11034 }, + { 0x1F38, 12364 }, + { 0x1F39, 12334 }, + { 0x1F3A, 12378 }, + { 0x1F3B, 12348 }, + { 0x1F3C, 12370 }, + { 0x1F3D, 12340 }, + { 0x1F3E, 12386 }, + { 0x1F3F, 12356 }, + { 0x1F40, 11697 }, + { 0x1F41, 11675 }, + { 0x1F42, 11711 }, + { 0x1F43, 11689 }, + { 0x1F44, 11703 }, + { 0x1F45, 11681 }, + { 0x1F48, 12895 }, + { 0x1F49, 12873 }, + { 0x1F4A, 12909 }, + { 0x1F4B, 12887 }, + { 0x1F4C, 12901 }, + { 0x1F4D, 12879 }, + { 0x1F50, 11771 }, + { 0x1F51, 11741 }, + { 0x1F52, 11785 }, + { 0x1F53, 11755 }, + { 0x1F54, 11777 }, + { 0x1F55, 11747 }, + { 0x1F56, 11793 }, + { 0x1F57, 11763 }, + { 0x1F59, 12939 }, + { 0x1F5B, 12953 }, + { 0x1F5D, 12945 }, + { 0x1F5F, 12961 }, + { 0x1F60, 11461 }, + { 0x1F61, 11393 }, + { 0x1F62, 11485 }, + { 0x1F63, 11417 }, + { 0x1F64, 11467 }, + { 0x1F65, 11399 }, + { 0x1F66, 11503 }, + { 0x1F67, 11435 }, + { 0x1F68, 12698 }, + { 0x1F69, 12630 }, + { 0x1F6A, 12722 }, + { 0x1F6B, 12654 }, + { 0x1F6C, 12704 }, + { 0x1F6D, 12636 }, + { 0x1F6E, 12740 }, + { 0x1F6F, 12672 }, + { 0x1F70, 11304 }, + { 0x1F71, 11148 }, + { 0x1F72, 11659 }, + { 0x1F73, 11603 }, + { 0x1F74, 10924 }, + { 0x1F75, 10768 }, + { 0x1F76, 11078 }, + { 0x1F77, 11006 }, + { 0x1F78, 11725 }, + { 0x1F79, 11669 }, + { 0x1F7A, 11807 }, + { 0x1F7B, 11735 }, + { 0x1F7C, 11535 }, + { 0x1F7D, 11379 }, + { 0x1F80, 11290 }, + { 0x1F81, 11222 }, + { 0x1F82, 11262 }, + { 0x1F83, 11194 }, + { 0x1F84, 11244 }, + { 0x1F85, 11176 }, + { 0x1F86, 11280 }, + { 0x1F87, 11212 }, + { 0x1F88, 12566 }, + { 0x1F89, 12498 }, + { 0x1F8A, 12538 }, + { 0x1F8B, 12470 }, + { 0x1F8C, 12520 }, + { 0x1F8D, 12452 }, + { 0x1F8E, 12556 }, + { 0x1F8F, 12488 }, + { 0x1F90, 10910 }, + { 0x1F91, 10842 }, + { 0x1F92, 10882 }, + { 0x1F93, 10814 }, + { 0x1F94, 10864 }, + { 0x1F95, 10796 }, + { 0x1F96, 10900 }, + { 0x1F97, 10832 }, + { 0x1F98, 12260 }, + { 0x1F99, 12192 }, + { 0x1F9A, 12232 }, + { 0x1F9B, 12164 }, + { 0x1F9C, 12214 }, + { 0x1F9D, 12146 }, + { 0x1F9E, 12250 }, + { 0x1F9F, 12182 }, + { 0x1FA0, 11521 }, + { 0x1FA1, 11453 }, + { 0x1FA2, 11493 }, + { 0x1FA3, 11425 }, + { 0x1FA4, 11475 }, + { 0x1FA5, 11407 }, + { 0x1FA6, 11511 }, + { 0x1FA7, 11443 }, + { 0x1FA8, 12758 }, + { 0x1FA9, 12690 }, + { 0x1FAA, 12730 }, + { 0x1FAB, 12662 }, + { 0x1FAC, 12712 }, + { 0x1FAD, 12644 }, + { 0x1FAE, 12748 }, + { 0x1FAF, 12680 }, + { 0x1FB0, 11324 }, + { 0x1FB1, 11318 }, + { 0x1FB2, 11310 }, + { 0x1FB3, 11344 }, + { 0x1FB4, 11154 }, + { 0x1FB6, 11330 }, + { 0x1FB7, 11336 }, + { 0x1FB8, 12592 }, + { 0x1FB9, 12586 }, + { 0x1FBA, 12580 }, + { 0x1FBB, 12432 }, + { 0x1FBC, 12598 }, + { 0x1FBD, 13025 }, + { 0x1FBE, 13524 }, + { 0x1FBF, 10724 }, + { 0x1FC0, 13372 }, + { 0x1FC1, 13079 }, + { 0x1FC2, 10930 }, + { 0x1FC3, 10952 }, + { 0x1FC4, 10774 }, + { 0x1FC6, 10938 }, + { 0x1FC7, 10944 }, + { 0x1FC8, 12857 }, + { 0x1FC9, 12801 }, + { 0x1FCA, 12274 }, + { 0x1FCB, 12126 }, + { 0x1FCC, 12280 }, + { 0x1FCD, 10730 }, + { 0x1FCE, 10726 }, + { 0x1FCF, 10734 }, + { 0x1FD0, 11090 }, + { 0x1FD1, 11084 }, + { 0x1FD2, 11118 }, + { 0x1FD3, 11102 }, + { 0x1FD6, 11134 }, + { 0x1FD7, 11126 }, + { 0x1FD8, 12412 }, + { 0x1FD9, 12406 }, + { 0x1FDA, 12400 }, + { 0x1FDB, 12328 }, + { 0x1FDD, 10706 }, + { 0x1FDE, 10702 }, + { 0x1FDF, 10710 }, + { 0x1FE0, 11819 }, + { 0x1FE1, 11813 }, + { 0x1FE2, 11847 }, + { 0x1FE3, 11831 }, + { 0x1FE4, 10976 }, + { 0x1FE5, 10970 }, + { 0x1FE6, 11863 }, + { 0x1FE7, 11855 }, + { 0x1FE8, 12987 }, + { 0x1FE9, 12981 }, + { 0x1FEA, 12975 }, + { 0x1FEB, 12933 }, + { 0x1FEC, 12298 }, + { 0x1FED, 13075 }, + { 0x1FEE, 13071 }, + { 0x1FEF, 11900 }, + { 0x1FF2, 11541 }, + { 0x1FF3, 11563 }, + { 0x1FF4, 11385 }, + { 0x1FF6, 11549 }, + { 0x1FF7, 11555 }, + { 0x1FF8, 12923 }, + { 0x1FF9, 12867 }, + { 0x1FFA, 12772 }, + { 0x1FFB, 12624 }, + { 0x1FFC, 12778 }, + { 0x1FFD, 10692 }, + { 0x1FFE, 10700 }, { 0x2000, 77 }, { 0x2001, 71 }, { 0x2002, 79 }, { 0x2003, 73 }, - { 0x2004, 68267 }, - { 0x2005, 62486 }, - { 0x2006, 62422 }, - { 0x2007, 28472 }, - { 0x2008, 63097 }, - { 0x2009, 8559 }, - { 0x200A, 7664 }, - { 0x200B, 8592 }, - { 0x200C, 8602 }, - { 0x200D, 8595 }, - { 0x200E, 68406 }, - { 0x200F, 68830 }, - { 0x2010, 30125 }, - { 0x2011, 68029 }, - { 0x2012, 28470 }, + { 0x2004, 74478 }, + { 0x2005, 68661 }, + { 0x2006, 68597 }, + { 0x2007, 31771 }, + { 0x2008, 69272 }, + { 0x2009, 10051 }, + { 0x200A, 9123 }, + { 0x200B, 10089 }, + { 0x200C, 10099 }, + { 0x200D, 10092 }, + { 0x200E, 74617 }, + { 0x200F, 75041 }, + { 0x2010, 33424 }, + { 0x2011, 74240 }, + { 0x2012, 31769 }, { 0x2013, 75 }, { 0x2014, 69 }, - { 0x2015, 61751 }, - { 0x2016, 28398 }, - { 0x2017, 28254 }, - { 0x2018, 7908 }, - { 0x2019, 19426 }, - { 0x201A, 32018 }, - { 0x201B, 32032 }, - { 0x201C, 7895 }, - { 0x201D, 19413 }, - { 0x201E, 28276 }, - { 0x201F, 28406 }, - { 0x2020, 28177 }, - { 0x2021, 28293 }, - { 0x2022, 27468 }, - { 0x2023, 62424 }, - { 0x2024, 6905 }, - { 0x2025, 7502 }, - { 0x2026, 61776 }, - { 0x2027, 62488 }, - { 0x2028, 8001 }, - { 0x2029, 60049 }, - { 0x202A, 68410 }, - { 0x202B, 68834 }, - { 0x202C, 6917 }, - { 0x202D, 68408 }, - { 0x202E, 68832 }, - { 0x202F, 31863 }, - { 0x2030, 6914 }, - { 0x2031, 6908 }, - { 0x2032, 19263 }, - { 0x2033, 28280 }, - { 0x2034, 33694 }, - { 0x2035, 50250 }, - { 0x2036, 50257 }, - { 0x2037, 50273 }, - { 0x2038, 8899 }, - { 0x2039, 32022 }, - { 0x203A, 32027 }, - { 0x203B, 60106 }, - { 0x203C, 28401 }, - { 0x203D, 63088 }, - { 0x203E, 49922 }, - { 0x203F, 50786 }, - { 0x2040, 52135 }, - { 0x2041, 8900 }, - { 0x2042, 40532 }, - { 0x2043, 30126 }, - { 0x2044, 46814 }, - { 0x2045, 7931 }, - { 0x2046, 19449 }, - { 0x2047, 28374 }, - { 0x2048, 50231 }, - { 0x2049, 62483 }, - { 0x204A, 50672 }, - { 0x204B, 50276 }, - { 0x204C, 8778 }, - { 0x204D, 8792 }, - { 0x204E, 5788 }, - { 0x204F, 50284 }, - { 0x2050, 8909 }, - { 0x2051, 7519 }, - { 0x2052, 60963 }, - { 0x2053, 20204 }, - { 0x2054, 48384 }, - { 0x2055, 28480 }, - { 0x2056, 20440 }, - { 0x2057, 60059 }, - { 0x2058, 7641 }, - { 0x2059, 7635 }, - { 0x205A, 7505 }, - { 0x205B, 7638 }, - { 0x205C, 28235 }, - { 0x205D, 50687 }, - { 0x205E, 50808 }, - { 0x205F, 31844 }, - { 0x2060, 8590 }, - { 0x2061, 46819 }, - { 0x2062, 58773 }, - { 0x2063, 58775 }, - { 0x206A, 36708 }, - { 0x206B, 40161 }, - { 0x206C, 36704 }, - { 0x206D, 40157 }, - { 0x206E, 49860 }, - { 0x206F, 38327 }, - { 0x2070, 63122 }, - { 0x2071, 63126 }, - { 0x2074, 63112 }, - { 0x2075, 63110 }, - { 0x2076, 63106 }, - { 0x2077, 63141 }, - { 0x2078, 63124 }, - { 0x2079, 63117 }, - { 0x207A, 63119 }, - { 0x207B, 63136 }, - { 0x207C, 63145 }, - { 0x207D, 63114 }, - { 0x207E, 63138 }, - { 0x207F, 63131 }, - { 0x2080, 60141 }, - { 0x2081, 60123 }, - { 0x2082, 60127 }, - { 0x2083, 60152 }, - { 0x2084, 60131 }, - { 0x2085, 60129 }, - { 0x2086, 60125 }, - { 0x2087, 60150 }, - { 0x2088, 60143 }, - { 0x2089, 60136 }, - { 0x208A, 60138 }, - { 0x208B, 60145 }, - { 0x208C, 60154 }, - { 0x208D, 60133 }, - { 0x208E, 60147 }, - { 0x2090, 18348 }, - { 0x2091, 18353 }, - { 0x2092, 18363 }, - { 0x2093, 18383 }, - { 0x2094, 18388 }, - { 0x20A0, 68386 }, - { 0x20A1, 8913 }, - { 0x20A2, 43964 }, - { 0x20A3, 28488 }, - { 0x20A4, 8023 }, - { 0x20A5, 8108 }, - { 0x20A6, 18805 }, - { 0x20A7, 31937 }, - { 0x20A8, 19895 }, - { 0x20A9, 7535 }, - { 0x20AA, 6257 }, - { 0x20AB, 7612 }, - { 0x20AC, 7633 }, - { 0x20AD, 5547 }, - { 0x20AE, 33744 }, - { 0x20AF, 36573 }, - { 0x20B0, 28492 }, - { 0x20B1, 8141 }, - { 0x20B2, 36635 }, - { 0x20B3, 33854 }, - { 0x20B4, 36702 }, - { 0x20B5, 7553 }, - { 0x20D0, 52238 }, - { 0x20D1, 52449 }, - { 0x20D2, 52263 }, - { 0x20D3, 52483 }, - { 0x20D4, 52792 }, - { 0x20D5, 52708 }, - { 0x20D6, 52220 }, - { 0x20D7, 52441 }, - { 0x20D8, 52278 }, - { 0x20D9, 52704 }, - { 0x20DA, 52788 }, - { 0x20DB, 52491 }, - { 0x20DC, 52189 }, - { 0x20DD, 52717 }, - { 0x20DE, 52730 }, - { 0x20DF, 52738 }, - { 0x20E0, 52720 }, - { 0x20E1, 52228 }, - { 0x20E2, 52727 }, - { 0x20E3, 52724 }, - { 0x20E4, 52733 }, - { 0x20E5, 52623 }, - { 0x20E6, 52582 }, - { 0x20E7, 52616 }, - { 0x20E8, 52606 }, - { 0x20E9, 52281 }, - { 0x20EA, 52741 }, - { 0x20EB, 52250 }, - { 0x20EC, 52765 }, - { 0x20ED, 52745 }, - { 0x20EE, 52224 }, - { 0x20EF, 52445 }, - { 0x2100, 33849 }, - { 0x2101, 50879 }, - { 0x2102, 68347 }, - { 0x2103, 28189 }, - { 0x2104, 27474 }, - { 0x2105, 7551 }, - { 0x2106, 7549 }, - { 0x2107, 9085 }, - { 0x2108, 38508 }, - { 0x2109, 28191 }, - { 0x210A, 31979 }, - { 0x210B, 31997 }, - { 0x210C, 63199 }, - { 0x210D, 68350 }, - { 0x210E, 31940 }, - { 0x210F, 31942 }, - { 0x2110, 32000 }, - { 0x2111, 63202 }, - { 0x2112, 32003 }, - { 0x2113, 31982 }, + { 0x2015, 67636 }, + { 0x2016, 31692 }, + { 0x2017, 31548 }, + { 0x2018, 9381 }, + { 0x2019, 21908 }, + { 0x201A, 35854 }, + { 0x201B, 35868 }, + { 0x201C, 9365 }, + { 0x201D, 21892 }, + { 0x201E, 31570 }, + { 0x201F, 31700 }, + { 0x2020, 31169 }, + { 0x2021, 31587 }, + { 0x2022, 30312 }, + { 0x2023, 68599 }, + { 0x2024, 7161 }, + { 0x2025, 7766 }, + { 0x2026, 67661 }, + { 0x2027, 68663 }, + { 0x2028, 9483 }, + { 0x2029, 65751 }, + { 0x202A, 74621 }, + { 0x202B, 75045 }, + { 0x202C, 7173 }, + { 0x202D, 74619 }, + { 0x202E, 75043 }, + { 0x202F, 35576 }, + { 0x2030, 7170 }, + { 0x2031, 7164 }, + { 0x2032, 21742 }, + { 0x2033, 31574 }, + { 0x2034, 37619 }, + { 0x2035, 55468 }, + { 0x2036, 55475 }, + { 0x2037, 55491 }, + { 0x2038, 10441 }, + { 0x2039, 35858 }, + { 0x203A, 35863 }, + { 0x203B, 65808 }, + { 0x203C, 31695 }, + { 0x203D, 69263 }, + { 0x203E, 54945 }, + { 0x203F, 56009 }, + { 0x2040, 57360 }, + { 0x2041, 10442 }, + { 0x2042, 45084 }, + { 0x2043, 33428 }, + { 0x2044, 51779 }, + { 0x2045, 9404 }, + { 0x2046, 21931 }, + { 0x2047, 31668 }, + { 0x2048, 55448 }, + { 0x2049, 68658 }, + { 0x204A, 55895 }, + { 0x204B, 55494 }, + { 0x204C, 10314 }, + { 0x204D, 10331 }, + { 0x204E, 6038 }, + { 0x204F, 55505 }, + { 0x2050, 10452 }, + { 0x2051, 7789 }, + { 0x2052, 66839 }, + { 0x2053, 22751 }, + { 0x2054, 53355 }, + { 0x2055, 31779 }, + { 0x2056, 22989 }, + { 0x2057, 65761 }, + { 0x2058, 9100 }, + { 0x2059, 9094 }, + { 0x205A, 7769 }, + { 0x205B, 9097 }, + { 0x205C, 31529 }, + { 0x205D, 55910 }, + { 0x205E, 56031 }, + { 0x205F, 35557 }, + { 0x2060, 10087 }, + { 0x2061, 51784 }, + { 0x2062, 64310 }, + { 0x2063, 64312 }, + { 0x2064, 64308 }, + { 0x206A, 40633 }, + { 0x206B, 44713 }, + { 0x206C, 40629 }, + { 0x206D, 44709 }, + { 0x206E, 54880 }, + { 0x206F, 42828 }, + { 0x2070, 69298 }, + { 0x2071, 69302 }, + { 0x2074, 69288 }, + { 0x2075, 69286 }, + { 0x2076, 69282 }, + { 0x2077, 69317 }, + { 0x2078, 69300 }, + { 0x2079, 69293 }, + { 0x207A, 69295 }, + { 0x207B, 69312 }, + { 0x207C, 69321 }, + { 0x207D, 69290 }, + { 0x207E, 69314 }, + { 0x207F, 69307 }, + { 0x2080, 65843 }, + { 0x2081, 65825 }, + { 0x2082, 65829 }, + { 0x2083, 65854 }, + { 0x2084, 65833 }, + { 0x2085, 65831 }, + { 0x2086, 65827 }, + { 0x2087, 65852 }, + { 0x2088, 65845 }, + { 0x2089, 65838 }, + { 0x208A, 65840 }, + { 0x208B, 65847 }, + { 0x208C, 65856 }, + { 0x208D, 65835 }, + { 0x208E, 65849 }, + { 0x2090, 20782 }, + { 0x2091, 20787 }, + { 0x2092, 20802 }, + { 0x2093, 20822 }, + { 0x2094, 20827 }, + { 0x20A0, 74597 }, + { 0x20A1, 10456 }, + { 0x20A2, 48519 }, + { 0x20A3, 31787 }, + { 0x20A4, 9505 }, + { 0x20A5, 9596 }, + { 0x20A6, 21269 }, + { 0x20A7, 35651 }, + { 0x20A8, 22442 }, + { 0x20A9, 8709 }, + { 0x20AA, 6507 }, + { 0x20AB, 9068 }, + { 0x20AC, 9089 }, + { 0x20AD, 5797 }, + { 0x20AE, 37669 }, + { 0x20AF, 40498 }, + { 0x20B0, 31791 }, + { 0x20B1, 9631 }, + { 0x20B2, 40560 }, + { 0x20B3, 37779 }, + { 0x20B4, 40627 }, + { 0x20B5, 8727 }, + { 0x20D0, 57472 }, + { 0x20D1, 57795 }, + { 0x20D2, 57497 }, + { 0x20D3, 57829 }, + { 0x20D4, 58327 }, + { 0x20D5, 58236 }, + { 0x20D6, 57454 }, + { 0x20D7, 57787 }, + { 0x20D8, 57512 }, + { 0x20D9, 58232 }, + { 0x20DA, 58323 }, + { 0x20DB, 57837 }, + { 0x20DC, 57423 }, + { 0x20DD, 58245 }, + { 0x20DE, 58258 }, + { 0x20DF, 58266 }, + { 0x20E0, 58248 }, + { 0x20E1, 57462 }, + { 0x20E2, 58255 }, + { 0x20E3, 58252 }, + { 0x20E4, 58261 }, + { 0x20E5, 57987 }, + { 0x20E6, 57928 }, + { 0x20E7, 57980 }, + { 0x20E8, 57967 }, + { 0x20E9, 57515 }, + { 0x20EA, 58269 }, + { 0x20EB, 57484 }, + { 0x20EC, 58296 }, + { 0x20ED, 58273 }, + { 0x20EE, 57458 }, + { 0x20EF, 57791 }, + { 0x20F0, 57998 }, + { 0x2100, 37774 }, + { 0x2101, 56104 }, + { 0x2102, 74558 }, + { 0x2103, 31181 }, + { 0x2104, 30465 }, + { 0x2105, 8725 }, + { 0x2106, 8723 }, + { 0x2107, 10628 }, + { 0x2108, 43021 }, + { 0x2109, 31183 }, + { 0x210A, 35815 }, + { 0x210B, 35833 }, + { 0x210C, 69390 }, + { 0x210D, 74561 }, + { 0x210E, 35654 }, + { 0x210F, 35656 }, + { 0x2110, 35836 }, + { 0x2111, 69393 }, + { 0x2112, 35839 }, + { 0x2113, 35818 }, { 0x2114, 0 }, - { 0x2115, 68353 }, - { 0x2116, 31922 }, - { 0x2117, 20124 }, - { 0x2118, 32009 }, - { 0x2119, 68356 }, - { 0x211A, 68359 }, - { 0x211B, 32012 }, - { 0x211C, 63205 }, - { 0x211D, 68362 }, - { 0x211E, 68031 }, - { 0x211F, 50237 }, - { 0x2120, 38512 }, - { 0x2121, 60164 }, - { 0x2122, 20486 }, - { 0x2123, 50787 }, - { 0x2124, 68365 }, - { 0x2125, 19252 }, - { 0x2126, 6563 }, - { 0x2127, 48375 }, - { 0x2128, 63208 }, - { 0x2129, 33751 }, - { 0x212A, 30792 }, - { 0x212B, 40165 }, - { 0x212C, 31988 }, - { 0x212D, 63196 }, - { 0x212E, 57845 }, - { 0x212F, 31976 }, - { 0x2130, 31991 }, - { 0x2131, 31994 }, - { 0x2132, 33759 }, - { 0x2133, 32006 }, - { 0x2134, 31985 }, - { 0x2135, 7542 }, - { 0x2136, 4190 }, - { 0x2137, 9093 }, - { 0x2138, 8934 }, - { 0x2139, 63071 }, - { 0x213A, 38504 }, - { 0x213B, 57848 }, - { 0x213C, 68321 }, - { 0x213D, 68324 }, - { 0x213E, 68371 }, - { 0x213F, 68368 }, - { 0x2140, 68318 }, - { 0x2141, 33764 }, - { 0x2142, 33768 }, - { 0x2143, 50286 }, - { 0x2144, 33772 }, - { 0x2145, 68343 }, - { 0x2146, 68327 }, - { 0x2147, 68331 }, - { 0x2148, 68335 }, - { 0x2149, 68339 }, - { 0x214A, 50167 }, - { 0x214B, 33762 }, - { 0x214C, 6912 }, - { 0x214D, 63162 }, - { 0x214E, 33756 }, - { 0x2153, 33799 }, - { 0x2154, 33815 }, - { 0x2155, 33791 }, - { 0x2156, 33811 }, - { 0x2157, 33835 }, - { 0x2158, 33827 }, - { 0x2159, 33795 }, - { 0x215A, 33819 }, - { 0x215B, 33803 }, - { 0x215C, 33839 }, - { 0x215D, 33823 }, - { 0x215E, 33831 }, - { 0x215F, 46816 }, - { 0x2160, 19519 }, - { 0x2161, 19546 }, - { 0x2162, 19575 }, - { 0x2163, 19560 }, - { 0x2164, 19549 }, - { 0x2165, 19536 }, - { 0x2166, 19572 }, - { 0x2167, 19566 }, - { 0x2168, 19563 }, - { 0x2169, 19539 }, - { 0x216A, 19578 }, - { 0x216B, 19581 }, - { 0x216C, 19569 }, - { 0x216D, 19522 }, - { 0x216E, 19552 }, - { 0x216F, 19526 }, - { 0x2170, 19974 }, - { 0x2171, 19996 }, - { 0x2172, 20029 }, - { 0x2173, 20009 }, - { 0x2174, 20000 }, - { 0x2175, 19988 }, - { 0x2176, 20025 }, - { 0x2177, 20017 }, - { 0x2178, 20013 }, - { 0x2179, 19992 }, - { 0x217A, 20033 }, - { 0x217B, 20037 }, - { 0x217C, 20021 }, - { 0x217D, 19978 }, - { 0x217E, 20004 }, - { 0x217F, 19983 }, - { 0x2180, 19530 }, - { 0x2181, 19556 }, - { 0x2182, 19542 }, - { 0x2183, 19584 }, - { 0x2184, 15687 }, - { 0x2190, 58788 }, - { 0x2191, 39990 }, - { 0x2192, 62107 }, - { 0x2193, 57716 }, - { 0x2194, 7788 }, - { 0x2195, 113 }, - { 0x2196, 18860 }, - { 0x2197, 18813 }, - { 0x2198, 20127 }, - { 0x2199, 20166 }, - { 0x219A, 58857 }, - { 0x219B, 62192 }, - { 0x219C, 58785 }, - { 0x219D, 62104 }, - { 0x219E, 58781 }, - { 0x219F, 39986 }, - { 0x21A0, 62100 }, - { 0x21A1, 57712 }, - { 0x21A2, 58847 }, - { 0x21A3, 62157 }, - { 0x21A4, 58808 }, - { 0x21A5, 39996 }, - { 0x21A6, 62118 }, - { 0x21A7, 57722 }, - { 0x21A8, 116 }, - { 0x21A9, 58834 }, - { 0x21AA, 62144 }, - { 0x21AB, 58838 }, - { 0x21AC, 62148 }, - { 0x21AD, 7784 }, - { 0x21AE, 7798 }, - { 0x21AF, 57777 }, - { 0x21B0, 40000 }, - { 0x21B1, 40005 }, - { 0x21B2, 57726 }, - { 0x21B3, 57731 }, - { 0x21B4, 62176 }, - { 0x21B5, 57736 }, - { 0x21B6, 68273 }, - { 0x21B7, 52137 }, - { 0x21B8, 18863 }, - { 0x21B9, 58794 }, - { 0x21BA, 68277 }, - { 0x21BB, 52141 }, - { 0x21BC, 59012 }, - { 0x21BD, 59017 }, - { 0x21BE, 40137 }, - { 0x21BF, 40132 }, - { 0x21C0, 62351 }, - { 0x21C1, 62356 }, - { 0x21C2, 57835 }, - { 0x21C3, 57830 }, - { 0x21C4, 62129 }, - { 0x21C5, 40020 }, - { 0x21C6, 58819 }, - { 0x21C7, 58920 }, - { 0x21C8, 40076 }, - { 0x21C9, 62259 }, - { 0x21CA, 57771 }, - { 0x21CB, 58930 }, - { 0x21CC, 62269 }, - { 0x21CD, 58906 }, - { 0x21CE, 7827 }, - { 0x21CF, 62245 }, - { 0x21D0, 58898 }, - { 0x21D1, 40073 }, - { 0x21D2, 62237 }, - { 0x21D3, 57768 }, - { 0x21D4, 7823 }, - { 0x21D5, 129 }, - { 0x21D6, 18901 }, - { 0x21D7, 18850 }, - { 0x21D8, 20162 }, - { 0x21D9, 20189 }, - { 0x21DA, 58927 }, - { 0x21DB, 62266 }, - { 0x21DC, 59022 }, - { 0x21DD, 62361 }, - { 0x21DE, 40010 }, - { 0x21DF, 57741 }, - { 0x21E0, 58891 }, - { 0x21E1, 40070 }, - { 0x21E2, 62230 }, - { 0x21E3, 57765 }, - { 0x21E4, 58790 }, - { 0x21E5, 62109 }, - { 0x21E6, 58888 }, - { 0x21E7, 40029 }, - { 0x21E8, 62222 }, - { 0x21E9, 57760 }, - { 0x21EA, 40053 }, - { 0x21EB, 40032 }, - { 0x21EC, 40045 }, - { 0x21ED, 40037 }, - { 0x21EE, 40058 }, - { 0x21EF, 40062 }, - { 0x21F0, 62225 }, - { 0x21F1, 18869 }, - { 0x21F2, 20130 }, - { 0x21F3, 125 }, - { 0x21F4, 19326 }, - { 0x21F5, 57751 }, - { 0x21F6, 20443 }, - { 0x21F7, 58861 }, - { 0x21F8, 62196 }, - { 0x21F9, 7803 }, - { 0x21FA, 58851 }, - { 0x21FB, 62186 }, - { 0x21FC, 7791 }, - { 0x21FD, 59027 }, - { 0x21FE, 62411 }, - { 0x21FF, 7840 }, - { 0x2200, 5541 }, - { 0x2201, 60966 }, - { 0x2202, 38470 }, - { 0x2203, 20438 }, - { 0x2204, 20434 }, - { 0x2205, 9027 }, - { 0x2206, 58770 }, - { 0x2207, 18804 }, - { 0x2208, 36575 }, - { 0x2209, 6469 }, - { 0x220A, 20052 }, - { 0x220B, 43843 }, - { 0x220C, 7577 }, - { 0x220D, 20079 }, - { 0x220E, 5538 }, - { 0x220F, 18796 }, - { 0x2210, 18798 }, - { 0x2211, 18800 }, - { 0x2212, 18714 }, - { 0x2213, 68412 }, - { 0x2214, 5530 }, - { 0x2215, 45345 }, - { 0x2216, 6920 }, - { 0x2217, 40530 }, - { 0x2218, 8214 }, - { 0x2219, 27469 }, - { 0x221A, 32364 }, - { 0x221B, 7557 }, - { 0x221C, 28486 }, - { 0x221D, 68259 }, - { 0x221E, 48329 }, - { 0x221F, 19292 }, - { 0x2220, 8609 }, - { 0x2221, 48759 }, - { 0x2222, 60113 }, - { 0x2223, 36564 }, - { 0x2224, 7567 }, - { 0x2225, 49923 }, - { 0x2226, 6514 }, - { 0x2227, 37034 }, - { 0x2228, 37002 }, - { 0x2229, 63379 }, - { 0x222A, 20489 }, - { 0x222B, 48335 }, - { 0x222C, 28370 }, - { 0x222D, 33708 }, - { 0x222E, 35865 }, - { 0x222F, 39063 }, - { 0x2230, 33785 }, - { 0x2231, 52156 }, - { 0x2232, 52153 }, - { 0x2233, 68289 }, - { 0x2234, 60431 }, - { 0x2235, 33856 }, - { 0x2236, 19267 }, - { 0x2237, 62087 }, - { 0x2238, 5534 }, - { 0x2239, 28467 }, - { 0x223A, 58259 }, - { 0x223B, 61750 }, - { 0x223C, 20457 }, - { 0x223D, 50252 }, - { 0x223E, 48378 }, - { 0x223F, 8216 }, - { 0x2240, 33847 }, - { 0x2241, 6483 }, - { 0x2242, 18740 }, - { 0x2243, 68837 }, - { 0x2244, 6527 }, - { 0x2245, 68305 }, - { 0x2246, 68294 }, - { 0x2247, 38320 }, - { 0x2248, 21085 }, - { 0x2249, 6485 }, - { 0x224A, 21080 }, - { 0x224B, 33696 }, - { 0x224C, 3821 }, - { 0x224D, 61341 }, - { 0x224E, 68391 }, - { 0x224F, 61337 }, - { 0x2250, 60951 }, - { 0x2251, 68388 }, - { 0x2252, 68308 }, - { 0x2253, 12147 }, - { 0x2254, 8915 }, - { 0x2255, 28465 }, - { 0x2256, 8205 }, - { 0x2257, 8211 }, - { 0x2258, 62441 }, - { 0x2259, 57847 }, - { 0x225A, 62479 }, - { 0x225B, 8226 }, - { 0x225C, 8936 }, - { 0x225D, 9053 }, - { 0x225E, 48757 }, - { 0x225F, 62091 }, - { 0x2260, 6480 }, - { 0x2261, 58757 }, - { 0x2262, 6517 }, - { 0x2263, 50302 }, - { 0x2264, 59030 }, - { 0x2265, 63238 }, - { 0x2266, 59094 }, - { 0x2267, 63302 }, - { 0x2268, 59084 }, - { 0x2269, 63292 }, - { 0x226A, 8111 }, - { 0x226B, 8113 }, - { 0x226C, 34174 }, - { 0x226D, 6522 }, - { 0x226E, 6520 }, - { 0x226F, 6525 }, - { 0x2270, 38292 }, - { 0x2271, 38306 }, - { 0x2272, 59064 }, - { 0x2273, 63275 }, - { 0x2274, 38297 }, - { 0x2275, 38315 }, - { 0x2276, 59071 }, - { 0x2277, 63272 }, - { 0x2278, 38302 }, - { 0x2279, 38311 }, - { 0x227A, 50117 }, - { 0x227B, 50305 }, - { 0x227C, 50118 }, - { 0x227D, 50306 }, - { 0x227E, 50122 }, - { 0x227F, 50310 }, - { 0x2280, 7596 }, - { 0x2281, 7604 }, - { 0x2282, 32633 }, - { 0x2283, 50353 }, - { 0x2284, 6461 }, - { 0x2285, 6465 }, - { 0x2286, 32635 }, - { 0x2287, 50355 }, - { 0x2288, 38278 }, - { 0x2289, 38285 }, - { 0x228A, 32648 }, - { 0x228B, 50368 }, - { 0x228C, 49855 }, - { 0x228D, 49858 }, - { 0x228E, 49856 }, - { 0x228F, 32474 }, - { 0x2290, 32589 }, - { 0x2291, 32484 }, - { 0x2292, 32599 }, - { 0x2293, 32256 }, - { 0x2294, 32258 }, - { 0x2295, 34957 }, - { 0x2296, 35257 }, - { 0x2297, 35259 }, - { 0x2298, 35543 }, - { 0x2299, 34946 }, - { 0x229A, 34959 }, - { 0x229B, 35537 }, - { 0x229C, 35269 }, - { 0x229D, 34949 }, - { 0x229E, 39042 }, - { 0x229F, 39044 }, - { 0x22A0, 39049 }, - { 0x22A1, 39039 }, - { 0x22A2, 19290 }, - { 0x22A3, 7742 }, - { 0x22A4, 7617 }, - { 0x22A5, 136 }, - { 0x22A6, 50886 }, - { 0x22A7, 31859 }, - { 0x22A8, 8562 }, - { 0x22A9, 28483 }, - { 0x22AA, 33716 }, - { 0x22AB, 28392 }, - { 0x22AC, 7564 }, - { 0x22AD, 6475 }, - { 0x22AE, 7561 }, - { 0x22AF, 38271 }, - { 0x22B0, 50162 }, - { 0x22B1, 50350 }, - { 0x22B2, 31867 }, - { 0x22B3, 43846 }, - { 0x22B4, 31870 }, - { 0x22B5, 43850 }, - { 0x22B6, 49909 }, - { 0x22B7, 12145 }, - { 0x22B8, 49854 }, - { 0x22B9, 58753 }, - { 0x22BA, 63073 }, - { 0x22BB, 7537 }, - { 0x22BC, 8115 }, - { 0x22BD, 6460 }, - { 0x22BE, 19294 }, - { 0x22BF, 19486 }, - { 0x22C0, 18793 }, - { 0x22C1, 18790 }, - { 0x22C2, 18802 }, - { 0x22C3, 18754 }, - { 0x22C4, 36402 }, - { 0x22C5, 5536 }, - { 0x22C6, 8228 }, - { 0x22C7, 45347 }, - { 0x22C8, 27450 }, - { 0x22C9, 7899 }, - { 0x22CA, 19417 }, - { 0x22CB, 7979 }, - { 0x22CC, 19497 }, - { 0x22CD, 50254 }, - { 0x22CE, 8928 }, - { 0x22CF, 8931 }, - { 0x22D0, 28316 }, - { 0x22D1, 28379 }, - { 0x22D2, 28404 }, - { 0x22D3, 28291 }, - { 0x22D4, 60054 }, - { 0x22D5, 9073 }, - { 0x22D6, 59100 }, - { 0x22D7, 63308 }, - { 0x22D8, 8565 }, - { 0x22D9, 8568 }, - { 0x22DA, 59147 }, - { 0x22DB, 63355 }, - { 0x22DC, 9065 }, - { 0x22DD, 9069 }, - { 0x22DE, 9057 }, - { 0x22DF, 9061 }, - { 0x22E0, 7599 }, - { 0x22E1, 7607 }, - { 0x22E2, 6500 }, - { 0x22E3, 6507 }, - { 0x22E4, 32477 }, - { 0x22E5, 32592 }, - { 0x22E6, 59089 }, - { 0x22E7, 63297 }, - { 0x22E8, 50126 }, - { 0x22E9, 50314 }, - { 0x22EA, 6489 }, - { 0x22EB, 7582 }, - { 0x22EC, 6493 }, - { 0x22ED, 7588 }, - { 0x22EE, 50871 }, - { 0x22EF, 37074 }, - { 0x22F0, 147 }, - { 0x22F1, 7624 }, - { 0x22F2, 36588 }, - { 0x22F3, 36602 }, - { 0x22F4, 20060 }, - { 0x22F5, 36577 }, - { 0x22F6, 36594 }, - { 0x22F7, 20055 }, - { 0x22F8, 36598 }, - { 0x22F9, 36582 }, - { 0x22FA, 43857 }, - { 0x22FB, 43865 }, - { 0x22FC, 20087 }, - { 0x22FD, 43862 }, - { 0x22FE, 20083 }, + { 0x2115, 74564 }, + { 0x2116, 35635 }, + { 0x2117, 22671 }, + { 0x2118, 35845 }, + { 0x2119, 74567 }, + { 0x211A, 74570 }, + { 0x211B, 35848 }, + { 0x211C, 69396 }, + { 0x211D, 74573 }, + { 0x211E, 74242 }, + { 0x211F, 55455 }, + { 0x2120, 43025 }, + { 0x2121, 66040 }, + { 0x2122, 23055 }, + { 0x2123, 56010 }, + { 0x2124, 74576 }, + { 0x2125, 21731 }, + { 0x2126, 6813 }, + { 0x2127, 53346 }, + { 0x2128, 69399 }, + { 0x2129, 37676 }, + { 0x212A, 34094 }, + { 0x212B, 44717 }, + { 0x212C, 35824 }, + { 0x212D, 69387 }, + { 0x212E, 63380 }, + { 0x212F, 35812 }, + { 0x2130, 35827 }, + { 0x2131, 35830 }, + { 0x2132, 37684 }, + { 0x2133, 35842 }, + { 0x2134, 35821 }, + { 0x2135, 8716 }, + { 0x2136, 4380 }, + { 0x2137, 10636 }, + { 0x2138, 10477 }, + { 0x2139, 69246 }, + { 0x213A, 43017 }, + { 0x213B, 63383 }, + { 0x213C, 74532 }, + { 0x213D, 74535 }, + { 0x213E, 74582 }, + { 0x213F, 74579 }, + { 0x2140, 74529 }, + { 0x2141, 37689 }, + { 0x2142, 37693 }, + { 0x2143, 55507 }, + { 0x2144, 37697 }, + { 0x2145, 74554 }, + { 0x2146, 74538 }, + { 0x2147, 74542 }, + { 0x2148, 74546 }, + { 0x2149, 74550 }, + { 0x214A, 55384 }, + { 0x214B, 37687 }, + { 0x214C, 7168 }, + { 0x214D, 69338 }, + { 0x214E, 37681 }, + { 0x214F, 36848 }, + { 0x2153, 37724 }, + { 0x2154, 37740 }, + { 0x2155, 37716 }, + { 0x2156, 37736 }, + { 0x2157, 37760 }, + { 0x2158, 37752 }, + { 0x2159, 37720 }, + { 0x215A, 37744 }, + { 0x215B, 37728 }, + { 0x215C, 37764 }, + { 0x215D, 37748 }, + { 0x215E, 37756 }, + { 0x215F, 51781 }, + { 0x2160, 22020 }, + { 0x2161, 22057 }, + { 0x2162, 22095 }, + { 0x2163, 22071 }, + { 0x2164, 22060 }, + { 0x2165, 22042 }, + { 0x2166, 22092 }, + { 0x2167, 22077 }, + { 0x2168, 22074 }, + { 0x2169, 22050 }, + { 0x216A, 22098 }, + { 0x216B, 22101 }, + { 0x216C, 22080 }, + { 0x216D, 22023 }, + { 0x216E, 22063 }, + { 0x216F, 22032 }, + { 0x2170, 22521 }, + { 0x2171, 22543 }, + { 0x2172, 22576 }, + { 0x2173, 22556 }, + { 0x2174, 22547 }, + { 0x2175, 22535 }, + { 0x2176, 22572 }, + { 0x2177, 22564 }, + { 0x2178, 22560 }, + { 0x2179, 22539 }, + { 0x217A, 22580 }, + { 0x217B, 22584 }, + { 0x217C, 22568 }, + { 0x217D, 22525 }, + { 0x217E, 22551 }, + { 0x217F, 22530 }, + { 0x2180, 22036 }, + { 0x2181, 22067 }, + { 0x2182, 22053 }, + { 0x2183, 22104 }, + { 0x2184, 17753 }, + { 0x2185, 22045 }, + { 0x2186, 22083 }, + { 0x2187, 22088 }, + { 0x2188, 22027 }, + { 0x2190, 64325 }, + { 0x2191, 44542 }, + { 0x2192, 67992 }, + { 0x2193, 63251 }, + { 0x2194, 9258 }, + { 0x2195, 303 }, + { 0x2196, 21324 }, + { 0x2197, 21277 }, + { 0x2198, 22674 }, + { 0x2199, 22713 }, + { 0x219A, 64414 }, + { 0x219B, 68077 }, + { 0x219C, 64322 }, + { 0x219D, 67989 }, + { 0x219E, 64318 }, + { 0x219F, 44538 }, + { 0x21A0, 67985 }, + { 0x21A1, 63247 }, + { 0x21A2, 64384 }, + { 0x21A3, 68042 }, + { 0x21A4, 64345 }, + { 0x21A5, 44548 }, + { 0x21A6, 68003 }, + { 0x21A7, 63257 }, + { 0x21A8, 306 }, + { 0x21A9, 64371 }, + { 0x21AA, 68029 }, + { 0x21AB, 64375 }, + { 0x21AC, 68033 }, + { 0x21AD, 9254 }, + { 0x21AE, 9268 }, + { 0x21AF, 63312 }, + { 0x21B0, 44552 }, + { 0x21B1, 44557 }, + { 0x21B2, 63261 }, + { 0x21B3, 63266 }, + { 0x21B4, 68061 }, + { 0x21B5, 63271 }, + { 0x21B6, 74484 }, + { 0x21B7, 57362 }, + { 0x21B8, 21327 }, + { 0x21B9, 64331 }, + { 0x21BA, 74488 }, + { 0x21BB, 57366 }, + { 0x21BC, 64592 }, + { 0x21BD, 64597 }, + { 0x21BE, 44689 }, + { 0x21BF, 44684 }, + { 0x21C0, 68257 }, + { 0x21C1, 68262 }, + { 0x21C2, 63370 }, + { 0x21C3, 63365 }, + { 0x21C4, 68014 }, + { 0x21C5, 44572 }, + { 0x21C6, 64356 }, + { 0x21C7, 64500 }, + { 0x21C8, 44628 }, + { 0x21C9, 68165 }, + { 0x21CA, 63306 }, + { 0x21CB, 64510 }, + { 0x21CC, 68175 }, + { 0x21CD, 64486 }, + { 0x21CE, 9297 }, + { 0x21CF, 68151 }, + { 0x21D0, 64478 }, + { 0x21D1, 44625 }, + { 0x21D2, 68143 }, + { 0x21D3, 63303 }, + { 0x21D4, 9293 }, + { 0x21D5, 319 }, + { 0x21D6, 21365 }, + { 0x21D7, 21314 }, + { 0x21D8, 22709 }, + { 0x21D9, 22736 }, + { 0x21DA, 64507 }, + { 0x21DB, 68172 }, + { 0x21DC, 64602 }, + { 0x21DD, 68267 }, + { 0x21DE, 44562 }, + { 0x21DF, 63276 }, + { 0x21E0, 64471 }, + { 0x21E1, 44622 }, + { 0x21E2, 68136 }, + { 0x21E3, 63300 }, + { 0x21E4, 64327 }, + { 0x21E5, 67994 }, + { 0x21E6, 64468 }, + { 0x21E7, 44581 }, + { 0x21E8, 68128 }, + { 0x21E9, 63295 }, + { 0x21EA, 44605 }, + { 0x21EB, 44584 }, + { 0x21EC, 44597 }, + { 0x21ED, 44589 }, + { 0x21EE, 44610 }, + { 0x21EF, 44614 }, + { 0x21F0, 68131 }, + { 0x21F1, 21333 }, + { 0x21F2, 22677 }, + { 0x21F3, 315 }, + { 0x21F4, 21805 }, + { 0x21F5, 63286 }, + { 0x21F6, 22995 }, + { 0x21F7, 64418 }, + { 0x21F8, 68081 }, + { 0x21F9, 9273 }, + { 0x21FA, 64408 }, + { 0x21FB, 68071 }, + { 0x21FC, 9261 }, + { 0x21FD, 64655 }, + { 0x21FE, 68320 }, + { 0x21FF, 9310 }, + { 0x2200, 5791 }, + { 0x2201, 66842 }, + { 0x2202, 42971 }, + { 0x2203, 22987 }, + { 0x2204, 22983 }, + { 0x2205, 10570 }, + { 0x2206, 64305 }, + { 0x2207, 21268 }, + { 0x2208, 40500 }, + { 0x2209, 6719 }, + { 0x220A, 22599 }, + { 0x220B, 48398 }, + { 0x220C, 9033 }, + { 0x220D, 22626 }, + { 0x220E, 5788 }, + { 0x220F, 21260 }, + { 0x2210, 21262 }, + { 0x2211, 21264 }, + { 0x2212, 21178 }, + { 0x2213, 74623 }, + { 0x2214, 5780 }, + { 0x2215, 50310 }, + { 0x2216, 7176 }, + { 0x2217, 45082 }, + { 0x2218, 9706 }, + { 0x2219, 30313 }, + { 0x221A, 36200 }, + { 0x221B, 9013 }, + { 0x221C, 31785 }, + { 0x221D, 74470 }, + { 0x221E, 53300 }, + { 0x221F, 21771 }, + { 0x2220, 10106 }, + { 0x2221, 53732 }, + { 0x2222, 65815 }, + { 0x2223, 40489 }, + { 0x2224, 9023 }, + { 0x2225, 54946 }, + { 0x2226, 6764 }, + { 0x2227, 40959 }, + { 0x2228, 40927 }, + { 0x2229, 69570 }, + { 0x222A, 23058 }, + { 0x222B, 53306 }, + { 0x222C, 31664 }, + { 0x222D, 37633 }, + { 0x222E, 39790 }, + { 0x222F, 43581 }, + { 0x2230, 37710 }, + { 0x2231, 57381 }, + { 0x2232, 57378 }, + { 0x2233, 74500 }, + { 0x2234, 66307 }, + { 0x2235, 37781 }, + { 0x2236, 21746 }, + { 0x2237, 67972 }, + { 0x2238, 5784 }, + { 0x2239, 31766 }, + { 0x223A, 63794 }, + { 0x223B, 67635 }, + { 0x223C, 23021 }, + { 0x223D, 55470 }, + { 0x223E, 53349 }, + { 0x223F, 9708 }, + { 0x2240, 37772 }, + { 0x2241, 6733 }, + { 0x2242, 21204 }, + { 0x2243, 75048 }, + { 0x2244, 6777 }, + { 0x2245, 74516 }, + { 0x2246, 74505 }, + { 0x2247, 42821 }, + { 0x2248, 23692 }, + { 0x2249, 6735 }, + { 0x224A, 23687 }, + { 0x224B, 37621 }, + { 0x224C, 4011 }, + { 0x224D, 67226 }, + { 0x224E, 74602 }, + { 0x224F, 67222 }, + { 0x2250, 66827 }, + { 0x2251, 74599 }, + { 0x2252, 74519 }, + { 0x2253, 13722 }, + { 0x2254, 10458 }, + { 0x2255, 31764 }, + { 0x2256, 9695 }, + { 0x2257, 9701 }, + { 0x2258, 68616 }, + { 0x2259, 63382 }, + { 0x225A, 68654 }, + { 0x225B, 9718 }, + { 0x225C, 10479 }, + { 0x225D, 10596 }, + { 0x225E, 53730 }, + { 0x225F, 67976 }, + { 0x2260, 6730 }, + { 0x2261, 64292 }, + { 0x2262, 6767 }, + { 0x2263, 55525 }, + { 0x2264, 64658 }, + { 0x2265, 69429 }, + { 0x2266, 64722 }, + { 0x2267, 69493 }, + { 0x2268, 64712 }, + { 0x2269, 69483 }, + { 0x226A, 9599 }, + { 0x226B, 9601 }, + { 0x226C, 38099 }, + { 0x226D, 6772 }, + { 0x226E, 6770 }, + { 0x226F, 6775 }, + { 0x2270, 42793 }, + { 0x2271, 42807 }, + { 0x2272, 64692 }, + { 0x2273, 69466 }, + { 0x2274, 42798 }, + { 0x2275, 42816 }, + { 0x2276, 64699 }, + { 0x2277, 69463 }, + { 0x2278, 42803 }, + { 0x2279, 42812 }, + { 0x227A, 55334 }, + { 0x227B, 55528 }, + { 0x227C, 55335 }, + { 0x227D, 55529 }, + { 0x227E, 55339 }, + { 0x227F, 55533 }, + { 0x2280, 9052 }, + { 0x2281, 9060 }, + { 0x2282, 36469 }, + { 0x2283, 55576 }, + { 0x2284, 6711 }, + { 0x2285, 6715 }, + { 0x2286, 36471 }, + { 0x2287, 55578 }, + { 0x2288, 42779 }, + { 0x2289, 42786 }, + { 0x228A, 36484 }, + { 0x228B, 55591 }, + { 0x228C, 54875 }, + { 0x228D, 54878 }, + { 0x228E, 54876 }, + { 0x228F, 36310 }, + { 0x2290, 36425 }, + { 0x2291, 36320 }, + { 0x2292, 36435 }, + { 0x2293, 36092 }, + { 0x2294, 36094 }, + { 0x2295, 38882 }, + { 0x2296, 39182 }, + { 0x2297, 39184 }, + { 0x2298, 39468 }, + { 0x2299, 38871 }, + { 0x229A, 38884 }, + { 0x229B, 39462 }, + { 0x229C, 39194 }, + { 0x229D, 38874 }, + { 0x229E, 43560 }, + { 0x229F, 43562 }, + { 0x22A0, 43567 }, + { 0x22A1, 43553 }, + { 0x22A2, 21769 }, + { 0x22A3, 9202 }, + { 0x22A4, 9073 }, + { 0x22A5, 326 }, + { 0x22A6, 56111 }, + { 0x22A7, 35572 }, + { 0x22A8, 10054 }, + { 0x22A9, 31782 }, + { 0x22AA, 37641 }, + { 0x22AB, 31686 }, + { 0x22AC, 9020 }, + { 0x22AD, 6725 }, + { 0x22AE, 9017 }, + { 0x22AF, 42772 }, + { 0x22B0, 55379 }, + { 0x22B1, 55573 }, + { 0x22B2, 35580 }, + { 0x22B3, 48401 }, + { 0x22B4, 35583 }, + { 0x22B5, 48405 }, + { 0x22B6, 54929 }, + { 0x22B7, 13720 }, + { 0x22B8, 54874 }, + { 0x22B9, 64288 }, + { 0x22BA, 69248 }, + { 0x22BB, 8711 }, + { 0x22BC, 9603 }, + { 0x22BD, 6710 }, + { 0x22BE, 21773 }, + { 0x22BF, 21972 }, + { 0x22C0, 21257 }, + { 0x22C1, 21254 }, + { 0x22C2, 21266 }, + { 0x22C3, 21218 }, + { 0x22C4, 40327 }, + { 0x22C5, 5786 }, + { 0x22C6, 9720 }, + { 0x22C7, 50312 }, + { 0x22C8, 30294 }, + { 0x22C9, 9372 }, + { 0x22CA, 21899 }, + { 0x22CB, 9461 }, + { 0x22CC, 21988 }, + { 0x22CD, 55472 }, + { 0x22CE, 10471 }, + { 0x22CF, 10474 }, + { 0x22D0, 31610 }, + { 0x22D1, 31673 }, + { 0x22D2, 31698 }, + { 0x22D3, 31585 }, + { 0x22D4, 65756 }, + { 0x22D5, 10616 }, + { 0x22D6, 64728 }, + { 0x22D7, 69499 }, + { 0x22D8, 10057 }, + { 0x22D9, 10060 }, + { 0x22DA, 64775 }, + { 0x22DB, 69546 }, + { 0x22DC, 10608 }, + { 0x22DD, 10612 }, + { 0x22DE, 10600 }, + { 0x22DF, 10604 }, + { 0x22E0, 9055 }, + { 0x22E1, 9063 }, + { 0x22E2, 6750 }, + { 0x22E3, 6757 }, + { 0x22E4, 36313 }, + { 0x22E5, 36428 }, + { 0x22E6, 64717 }, + { 0x22E7, 69488 }, + { 0x22E8, 55343 }, + { 0x22E9, 55537 }, + { 0x22EA, 6739 }, + { 0x22EB, 9038 }, + { 0x22EC, 6743 }, + { 0x22ED, 9044 }, + { 0x22EE, 56096 }, + { 0x22EF, 41192 }, + { 0x22F0, 337 }, + { 0x22F1, 9080 }, + { 0x22F2, 40513 }, + { 0x22F3, 40527 }, + { 0x22F4, 22607 }, + { 0x22F5, 40502 }, + { 0x22F6, 40519 }, + { 0x22F7, 22602 }, + { 0x22F8, 40523 }, + { 0x22F9, 40507 }, + { 0x22FA, 48412 }, + { 0x22FB, 48420 }, + { 0x22FC, 22634 }, + { 0x22FD, 48417 }, + { 0x22FE, 22630 }, { 0x22FF, 12 }, - { 0x2300, 45341 }, - { 0x2301, 45353 }, - { 0x2302, 12144 }, - { 0x2303, 151 }, - { 0x2304, 7628 }, - { 0x2305, 62086 }, - { 0x2306, 63096 }, - { 0x2307, 8583 }, - { 0x2308, 7958 }, - { 0x2309, 19476 }, - { 0x230A, 7779 }, - { 0x230B, 19363 }, - { 0x230C, 27428 }, - { 0x230D, 27419 }, - { 0x230E, 7487 }, - { 0x230F, 7478 }, - { 0x2310, 50238 }, - { 0x2311, 32563 }, - { 0x2312, 4189 }, - { 0x2313, 38511 }, - { 0x2314, 32015 }, - { 0x2315, 60169 }, - { 0x2316, 50115 }, - { 0x2317, 50877 }, - { 0x2318, 19256 }, - { 0x2319, 33746 }, - { 0x231A, 20584 }, - { 0x231B, 58756 }, - { 0x231C, 7481 }, - { 0x231D, 7490 }, - { 0x231E, 27422 }, - { 0x231F, 27431 }, - { 0x2320, 7475 }, - { 0x2321, 27416 }, - { 0x2322, 9092 }, - { 0x2323, 20123 }, - { 0x2324, 153 }, - { 0x2325, 31928 }, - { 0x2326, 9081 }, + { 0x2300, 50306 }, + { 0x2301, 50318 }, + { 0x2302, 13719 }, + { 0x2303, 341 }, + { 0x2304, 9084 }, + { 0x2305, 67971 }, + { 0x2306, 69271 }, + { 0x2307, 10080 }, + { 0x2308, 9431 }, + { 0x2309, 21958 }, + { 0x230A, 9249 }, + { 0x230B, 21842 }, + { 0x230C, 30268 }, + { 0x230D, 30255 }, + { 0x230E, 7747 }, + { 0x230F, 7734 }, + { 0x2310, 55456 }, + { 0x2311, 36399 }, + { 0x2312, 4379 }, + { 0x2313, 43024 }, + { 0x2314, 35851 }, + { 0x2315, 66045 }, + { 0x2316, 55332 }, + { 0x2317, 56102 }, + { 0x2318, 21735 }, + { 0x2319, 37671 }, + { 0x231A, 23154 }, + { 0x231B, 64291 }, + { 0x231C, 7741 }, + { 0x231D, 7754 }, + { 0x231E, 30262 }, + { 0x231F, 30275 }, + { 0x2320, 7731 }, + { 0x2321, 30252 }, + { 0x2322, 10635 }, + { 0x2323, 22670 }, + { 0x2324, 343 }, + { 0x2325, 35641 }, + { 0x2326, 10624 }, { 0x2327, 7 }, - { 0x2328, 48752 }, - { 0x2329, 68394 }, - { 0x232A, 68876 }, - { 0x232B, 9077 }, - { 0x232C, 34168 }, - { 0x232D, 63211 }, - { 0x232E, 3824 }, - { 0x232F, 50433 }, - { 0x2330, 20484 }, - { 0x2331, 57710 }, - { 0x2332, 35863 }, - { 0x2333, 19932 }, - { 0x2334, 62443 }, - { 0x2335, 62444 }, - { 0x2336, 4135 }, - { 0x2337, 4139 }, - { 0x2338, 3969 }, - { 0x2339, 3984 }, - { 0x233A, 3989 }, - { 0x233B, 3942 }, - { 0x233C, 3979 }, - { 0x233D, 4115 }, - { 0x233E, 4105 }, - { 0x233F, 4086 }, - { 0x2340, 4159 }, - { 0x2341, 3974 }, - { 0x2342, 4005 }, - { 0x2343, 4022 }, - { 0x2344, 4033 }, - { 0x2345, 4169 }, - { 0x2346, 4179 }, - { 0x2347, 4016 }, - { 0x2348, 4027 }, - { 0x2349, 4125 }, - { 0x234A, 3900 }, - { 0x234B, 4057 }, - { 0x234C, 3953 }, - { 0x234D, 3964 }, - { 0x234E, 3894 }, - { 0x234F, 4154 }, - { 0x2350, 3994 }, - { 0x2351, 3841 }, - { 0x2352, 3859 }, - { 0x2353, 3931 }, - { 0x2354, 3937 }, - { 0x2355, 3835 }, - { 0x2356, 4164 }, - { 0x2357, 4010 }, - { 0x2358, 4081 }, - { 0x2359, 4062 }, - { 0x235A, 4144 }, - { 0x235B, 3874 }, - { 0x235C, 4120 }, - { 0x235D, 3829 }, - { 0x235E, 4076 }, - { 0x235F, 4110 }, - { 0x2360, 3959 }, - { 0x2361, 3847 }, - { 0x2362, 3869 }, - { 0x2363, 4038 }, - { 0x2364, 3879 }, - { 0x2365, 4130 }, - { 0x2366, 3888 }, - { 0x2367, 3921 }, - { 0x2368, 4096 }, - { 0x2369, 4184 }, - { 0x236A, 4052 }, - { 0x236B, 3864 }, - { 0x236C, 4101 }, - { 0x236D, 4091 }, - { 0x236E, 4174 }, - { 0x236F, 3947 }, - { 0x2370, 4000 }, - { 0x2371, 3906 }, - { 0x2372, 3853 }, - { 0x2373, 3912 }, - { 0x2374, 3884 }, - { 0x2375, 4067 }, - { 0x2376, 4047 }, - { 0x2377, 4149 }, - { 0x2378, 3916 }, - { 0x2379, 4071 }, - { 0x237A, 4043 }, - { 0x237B, 6477 }, - { 0x237C, 19298 }, - { 0x237D, 62419 }, - { 0x237E, 7547 }, - { 0x237F, 50855 }, - { 0x2380, 58771 }, - { 0x2381, 60967 }, - { 0x2382, 68315 }, - { 0x2383, 45355 }, - { 0x2384, 62438 }, - { 0x2385, 20730 }, - { 0x2386, 9051 }, - { 0x2387, 62428 }, - { 0x2388, 7666 }, - { 0x2389, 35844 }, - { 0x238A, 35689 }, - { 0x238B, 27463 }, - { 0x238C, 8563 }, - { 0x238D, 61992 }, - { 0x238E, 61778 }, - { 0x238F, 68930 }, - { 0x2390, 68933 }, - { 0x2391, 68938 }, - { 0x2392, 68936 }, - { 0x2393, 28228 }, - { 0x2394, 68925 }, - { 0x2395, 3927 }, - { 0x2396, 36034 }, - { 0x2397, 50165 }, - { 0x2398, 8116 }, - { 0x2399, 19264 }, - { 0x239A, 8906 }, - { 0x239B, 7988 }, - { 0x239C, 7992 }, - { 0x239D, 7984 }, - { 0x239E, 19506 }, - { 0x239F, 19510 }, - { 0x23A0, 19502 }, - { 0x23A1, 7946 }, - { 0x23A2, 7951 }, - { 0x23A3, 7941 }, - { 0x23A4, 19464 }, - { 0x23A5, 19469 }, - { 0x23A6, 19459 }, - { 0x23A7, 7769 }, - { 0x23A8, 7774 }, - { 0x23A9, 7764 }, - { 0x23AA, 8925 }, - { 0x23AB, 19353 }, - { 0x23AC, 19358 }, - { 0x23AD, 19348 }, - { 0x23AE, 48371 }, - { 0x23AF, 61753 }, - { 0x23B0, 20530 }, - { 0x23B1, 20554 }, - { 0x23B2, 60157 }, - { 0x23B3, 60162 }, - { 0x23B4, 7493 }, - { 0x23B5, 27434 }, - { 0x23B6, 27437 }, - { 0x23B7, 38478 }, - { 0x23B8, 7975 }, - { 0x23B9, 19493 }, - { 0x23BA, 61761 }, - { 0x23BB, 61764 }, - { 0x23BC, 61767 }, - { 0x23BD, 61770 }, - { 0x23BE, 57670 }, - { 0x23BF, 57690 }, - { 0x23C0, 57697 }, - { 0x23C1, 57647 }, - { 0x23C2, 57617 }, - { 0x23C3, 57703 }, - { 0x23C4, 57655 }, - { 0x23C5, 57625 }, - { 0x23C6, 57677 }, - { 0x23C7, 57639 }, - { 0x23C8, 57609 }, - { 0x23C9, 57633 }, - { 0x23CA, 57603 }, - { 0x23CB, 57663 }, - { 0x23CC, 57683 }, - { 0x23CD, 32329 }, - { 0x23CE, 31961 }, - { 0x23CF, 9025 }, - { 0x23D0, 50860 }, - { 0x23D1, 48884 }, - { 0x23D2, 48880 }, - { 0x23D3, 48886 }, - { 0x23D4, 48875 }, - { 0x23D5, 48866 }, - { 0x23D6, 48871 }, - { 0x23D7, 48890 }, - { 0x23D8, 48894 }, - { 0x23D9, 48892 }, - { 0x23DA, 8998 }, - { 0x23DB, 7660 }, - { 0x23DC, 7500 }, - { 0x23DD, 27448 }, - { 0x23DE, 7484 }, - { 0x23DF, 27425 }, - { 0x23E0, 7496 }, - { 0x23E1, 27444 }, - { 0x23E2, 20811 }, - { 0x23E3, 34170 }, - { 0x23E4, 68266 }, - { 0x23E5, 46813 }, + { 0x2328, 53725 }, + { 0x2329, 74605 }, + { 0x232A, 75087 }, + { 0x232B, 10620 }, + { 0x232C, 38093 }, + { 0x232D, 69402 }, + { 0x232E, 4014 }, + { 0x232F, 55656 }, + { 0x2330, 23053 }, + { 0x2331, 63245 }, + { 0x2332, 39788 }, + { 0x2333, 22479 }, + { 0x2334, 68618 }, + { 0x2335, 68619 }, + { 0x2336, 4325 }, + { 0x2337, 4329 }, + { 0x2338, 4159 }, + { 0x2339, 4174 }, + { 0x233A, 4179 }, + { 0x233B, 4132 }, + { 0x233C, 4169 }, + { 0x233D, 4305 }, + { 0x233E, 4295 }, + { 0x233F, 4276 }, + { 0x2340, 4349 }, + { 0x2341, 4164 }, + { 0x2342, 4195 }, + { 0x2343, 4212 }, + { 0x2344, 4223 }, + { 0x2345, 4359 }, + { 0x2346, 4369 }, + { 0x2347, 4206 }, + { 0x2348, 4217 }, + { 0x2349, 4315 }, + { 0x234A, 4090 }, + { 0x234B, 4247 }, + { 0x234C, 4143 }, + { 0x234D, 4154 }, + { 0x234E, 4084 }, + { 0x234F, 4344 }, + { 0x2350, 4184 }, + { 0x2351, 4031 }, + { 0x2352, 4049 }, + { 0x2353, 4121 }, + { 0x2354, 4127 }, + { 0x2355, 4025 }, + { 0x2356, 4354 }, + { 0x2357, 4200 }, + { 0x2358, 4271 }, + { 0x2359, 4252 }, + { 0x235A, 4334 }, + { 0x235B, 4064 }, + { 0x235C, 4310 }, + { 0x235D, 4019 }, + { 0x235E, 4266 }, + { 0x235F, 4300 }, + { 0x2360, 4149 }, + { 0x2361, 4037 }, + { 0x2362, 4059 }, + { 0x2363, 4228 }, + { 0x2364, 4069 }, + { 0x2365, 4320 }, + { 0x2366, 4078 }, + { 0x2367, 4111 }, + { 0x2368, 4286 }, + { 0x2369, 4374 }, + { 0x236A, 4242 }, + { 0x236B, 4054 }, + { 0x236C, 4291 }, + { 0x236D, 4281 }, + { 0x236E, 4364 }, + { 0x236F, 4137 }, + { 0x2370, 4190 }, + { 0x2371, 4096 }, + { 0x2372, 4043 }, + { 0x2373, 4102 }, + { 0x2374, 4074 }, + { 0x2375, 4257 }, + { 0x2376, 4237 }, + { 0x2377, 4339 }, + { 0x2378, 4106 }, + { 0x2379, 4261 }, + { 0x237A, 4233 }, + { 0x237B, 6727 }, + { 0x237C, 21777 }, + { 0x237D, 68594 }, + { 0x237E, 8721 }, + { 0x237F, 56078 }, + { 0x2380, 64306 }, + { 0x2381, 66843 }, + { 0x2382, 74526 }, + { 0x2383, 50320 }, + { 0x2384, 68613 }, + { 0x2385, 23322 }, + { 0x2386, 10594 }, + { 0x2387, 68603 }, + { 0x2388, 9125 }, + { 0x2389, 39769 }, + { 0x238A, 39614 }, + { 0x238B, 30307 }, + { 0x238C, 10055 }, + { 0x238D, 67877 }, + { 0x238E, 67663 }, + { 0x238F, 75142 }, + { 0x2390, 75145 }, + { 0x2391, 75150 }, + { 0x2392, 75148 }, + { 0x2393, 31220 }, + { 0x2394, 75137 }, + { 0x2395, 4117 }, + { 0x2396, 39959 }, + { 0x2397, 55382 }, + { 0x2398, 9604 }, + { 0x2399, 21743 }, + { 0x239A, 10449 }, + { 0x239B, 9470 }, + { 0x239C, 9474 }, + { 0x239D, 9466 }, + { 0x239E, 21997 }, + { 0x239F, 22001 }, + { 0x23A0, 21993 }, + { 0x23A1, 9419 }, + { 0x23A2, 9424 }, + { 0x23A3, 9414 }, + { 0x23A4, 21946 }, + { 0x23A5, 21951 }, + { 0x23A6, 21941 }, + { 0x23A7, 9239 }, + { 0x23A8, 9244 }, + { 0x23A9, 9234 }, + { 0x23AA, 10468 }, + { 0x23AB, 21832 }, + { 0x23AC, 21837 }, + { 0x23AD, 21827 }, + { 0x23AE, 53342 }, + { 0x23AF, 67638 }, + { 0x23B0, 23099 }, + { 0x23B1, 23123 }, + { 0x23B2, 65859 }, + { 0x23B3, 65864 }, + { 0x23B4, 7757 }, + { 0x23B5, 30278 }, + { 0x23B6, 30281 }, + { 0x23B7, 42979 }, + { 0x23B8, 9457 }, + { 0x23B9, 21984 }, + { 0x23BA, 67646 }, + { 0x23BB, 67649 }, + { 0x23BC, 67652 }, + { 0x23BD, 67655 }, + { 0x23BE, 63205 }, + { 0x23BF, 63225 }, + { 0x23C0, 63232 }, + { 0x23C1, 63182 }, + { 0x23C2, 63152 }, + { 0x23C3, 63238 }, + { 0x23C4, 63190 }, + { 0x23C5, 63160 }, + { 0x23C6, 63212 }, + { 0x23C7, 63174 }, + { 0x23C8, 63144 }, + { 0x23C9, 63168 }, + { 0x23CA, 63138 }, + { 0x23CB, 63198 }, + { 0x23CC, 63218 }, + { 0x23CD, 36165 }, + { 0x23CE, 35797 }, + { 0x23CF, 10568 }, + { 0x23D0, 56083 }, + { 0x23D1, 53857 }, + { 0x23D2, 53853 }, + { 0x23D3, 53859 }, + { 0x23D4, 53848 }, + { 0x23D5, 53839 }, + { 0x23D6, 53844 }, + { 0x23D7, 53863 }, + { 0x23D8, 53867 }, + { 0x23D9, 53865 }, + { 0x23DA, 10541 }, + { 0x23DB, 9119 }, + { 0x23DC, 7764 }, + { 0x23DD, 30292 }, + { 0x23DE, 7744 }, + { 0x23DF, 30265 }, + { 0x23E0, 7760 }, + { 0x23E1, 30288 }, + { 0x23E2, 23412 }, + { 0x23E3, 38095 }, + { 0x23E4, 74477 }, + { 0x23E5, 51778 }, { 0x23E6, 67 }, - { 0x23E7, 61339 }, - { 0x2400, 32921 }, - { 0x2401, 32948 }, - { 0x2402, 32943 }, - { 0x2403, 32880 }, - { 0x2404, 32890 }, - { 0x2405, 32991 }, - { 0x2406, 33024 }, - { 0x2407, 32901 }, - { 0x2408, 33009 }, - { 0x2409, 33012 }, - { 0x240A, 32917 }, - { 0x240B, 33005 }, - { 0x240C, 32913 }, - { 0x240D, 32997 }, - { 0x240E, 32936 }, - { 0x240F, 32932 }, - { 0x2410, 32904 }, - { 0x2411, 32964 }, - { 0x2412, 32969 }, - { 0x2413, 32979 }, - { 0x2414, 32974 }, - { 0x2415, 33001 }, - { 0x2416, 33027 }, - { 0x2417, 32895 }, - { 0x2418, 32953 }, - { 0x2419, 32885 }, - { 0x241A, 33016 }, - { 0x241B, 32984 }, - { 0x241C, 32909 }, - { 0x241D, 32928 }, - { 0x241E, 32987 }, - { 0x241F, 32924 }, - { 0x2420, 32940 }, - { 0x2421, 32956 }, - { 0x2422, 8834 }, - { 0x2423, 8118 }, - { 0x2424, 32994 }, - { 0x2425, 32959 }, - { 0x2426, 33019 }, - { 0x2440, 6541 }, - { 0x2441, 6543 }, - { 0x2442, 6539 }, - { 0x2443, 6560 }, - { 0x2444, 6534 }, - { 0x2445, 6531 }, - { 0x2446, 6549 }, - { 0x2447, 6545 }, - { 0x2448, 6537 }, - { 0x2449, 6556 }, - { 0x244A, 6553 }, - { 0x2460, 34962 }, - { 0x2461, 34968 }, - { 0x2462, 34989 }, - { 0x2463, 34974 }, - { 0x2464, 34971 }, - { 0x2465, 34965 }, - { 0x2466, 34986 }, - { 0x2467, 34983 }, - { 0x2468, 34977 }, - { 0x2469, 35381 }, - { 0x246A, 35426 }, - { 0x246B, 35468 }, - { 0x246C, 35525 }, - { 0x246D, 35519 }, - { 0x246E, 35510 }, - { 0x246F, 35513 }, - { 0x2470, 35528 }, - { 0x2471, 35516 }, - { 0x2472, 35522 }, - { 0x2473, 35471 }, - { 0x2474, 68417 }, - { 0x2475, 68423 }, - { 0x2476, 68441 }, - { 0x2477, 68429 }, - { 0x2478, 68426 }, - { 0x2479, 68420 }, - { 0x247A, 68438 }, - { 0x247B, 68435 }, - { 0x247C, 68432 }, - { 0x247D, 68685 }, - { 0x247E, 68688 }, - { 0x247F, 68691 }, - { 0x2480, 68712 }, - { 0x2481, 68706 }, - { 0x2482, 68697 }, - { 0x2483, 68700 }, - { 0x2484, 68715 }, - { 0x2485, 68703 }, - { 0x2486, 68709 }, - { 0x2487, 68694 }, - { 0x2488, 8941 }, - { 0x2489, 8953 }, - { 0x248A, 8991 }, - { 0x248B, 8965 }, - { 0x248C, 8959 }, - { 0x248D, 8947 }, - { 0x248E, 8985 }, - { 0x248F, 8979 }, - { 0x2490, 8971 }, - { 0x2491, 31876 }, - { 0x2492, 31882 }, - { 0x2493, 31886 }, - { 0x2494, 31914 }, - { 0x2495, 31906 }, - { 0x2496, 31894 }, - { 0x2497, 31898 }, - { 0x2498, 31918 }, - { 0x2499, 31902 }, - { 0x249A, 31910 }, - { 0x249B, 31890 }, - { 0x249C, 68444 }, - { 0x249D, 68449 }, - { 0x249E, 68454 }, - { 0x249F, 68459 }, - { 0x24A0, 68464 }, - { 0x24A1, 68469 }, - { 0x24A2, 68474 }, - { 0x24A3, 68479 }, - { 0x24A4, 68484 }, - { 0x24A5, 68489 }, - { 0x24A6, 68494 }, - { 0x24A7, 68499 }, - { 0x24A8, 68504 }, - { 0x24A9, 68509 }, - { 0x24AA, 68514 }, - { 0x24AB, 68519 }, - { 0x24AC, 68524 }, - { 0x24AD, 68529 }, - { 0x24AE, 68534 }, - { 0x24AF, 68539 }, - { 0x24B0, 68544 }, - { 0x24B1, 68549 }, - { 0x24B2, 68554 }, - { 0x24B3, 68559 }, - { 0x24B4, 68564 }, - { 0x24B5, 68569 }, - { 0x24B6, 35127 }, - { 0x24B7, 35132 }, - { 0x24B8, 35137 }, - { 0x24B9, 35142 }, - { 0x24BA, 35147 }, - { 0x24BB, 35152 }, - { 0x24BC, 35157 }, - { 0x24BD, 35162 }, - { 0x24BE, 35167 }, - { 0x24BF, 35172 }, - { 0x24C0, 35177 }, - { 0x24C1, 35182 }, - { 0x24C2, 35187 }, - { 0x24C3, 35192 }, - { 0x24C4, 35197 }, - { 0x24C5, 35202 }, - { 0x24C6, 35207 }, - { 0x24C7, 35212 }, - { 0x24C8, 35217 }, - { 0x24C9, 35222 }, - { 0x24CA, 35227 }, - { 0x24CB, 35232 }, - { 0x24CC, 35237 }, - { 0x24CD, 35242 }, - { 0x24CE, 35247 }, - { 0x24CF, 35252 }, - { 0x24D0, 34997 }, - { 0x24D1, 35002 }, - { 0x24D2, 35007 }, - { 0x24D3, 35012 }, - { 0x24D4, 35017 }, - { 0x24D5, 35022 }, - { 0x24D6, 35027 }, - { 0x24D7, 35032 }, - { 0x24D8, 35037 }, - { 0x24D9, 35042 }, - { 0x24DA, 35047 }, - { 0x24DB, 35052 }, - { 0x24DC, 35057 }, - { 0x24DD, 35062 }, - { 0x24DE, 35067 }, - { 0x24DF, 35072 }, - { 0x24E0, 35077 }, - { 0x24E1, 35082 }, - { 0x24E2, 35087 }, - { 0x24E3, 35092 }, - { 0x24E4, 35097 }, - { 0x24E5, 35102 }, - { 0x24E6, 35107 }, - { 0x24E7, 35112 }, - { 0x24E8, 35117 }, - { 0x24E9, 35122 }, - { 0x24EA, 34980 }, - { 0x24EB, 49867 }, - { 0x24EC, 49871 }, - { 0x24ED, 49899 }, - { 0x24EE, 49891 }, - { 0x24EF, 49879 }, - { 0x24F0, 49883 }, - { 0x24F1, 49903 }, - { 0x24F2, 49887 }, - { 0x24F3, 49895 }, - { 0x24F4, 49875 }, - { 0x24F5, 28318 }, - { 0x24F6, 28326 }, - { 0x24F7, 28350 }, - { 0x24F8, 28334 }, - { 0x24F9, 28330 }, - { 0x24FA, 28322 }, - { 0x24FB, 28346 }, - { 0x24FC, 28342 }, - { 0x24FD, 28338 }, - { 0x24FE, 28354 }, - { 0x24FF, 49863 }, - { 0x2500, 4830 }, - { 0x2501, 4651 }, - { 0x2502, 4796 }, - { 0x2503, 4617 }, - { 0x2504, 4767 }, - { 0x2505, 4611 }, - { 0x2506, 4761 }, - { 0x2507, 4605 }, - { 0x2508, 4824 }, - { 0x2509, 4645 }, - { 0x250A, 4818 }, - { 0x250B, 4639 }, - { 0x250C, 4722 }, - { 0x250D, 4405 }, - { 0x250E, 4360 }, - { 0x250F, 4566 }, - { 0x2510, 4716 }, - { 0x2511, 4390 }, - { 0x2512, 4345 }, - { 0x2513, 4560 }, - { 0x2514, 4672 }, - { 0x2515, 4273 }, - { 0x2516, 4228 }, - { 0x2517, 4544 }, - { 0x2518, 4659 }, - { 0x2519, 4258 }, - { 0x251A, 4213 }, - { 0x251B, 4531 }, - { 0x251C, 4806 }, - { 0x251D, 4990 }, - { 0x251E, 4220 }, - { 0x251F, 4352 }, - { 0x2520, 4969 }, - { 0x2521, 4397 }, - { 0x2522, 4265 }, - { 0x2523, 4627 }, - { 0x2524, 4800 }, - { 0x2525, 4983 }, - { 0x2526, 4205 }, - { 0x2527, 4337 }, - { 0x2528, 4962 }, - { 0x2529, 4382 }, - { 0x252A, 4250 }, - { 0x252B, 4621 }, - { 0x252C, 4728 }, - { 0x252D, 4487 }, - { 0x252E, 4860 }, - { 0x252F, 4412 }, - { 0x2530, 4367 }, - { 0x2531, 4884 }, - { 0x2532, 4511 }, - { 0x2533, 4572 }, - { 0x2534, 4678 }, - { 0x2535, 4479 }, - { 0x2536, 4852 }, - { 0x2537, 4280 }, - { 0x2538, 4235 }, - { 0x2539, 4876 }, - { 0x253A, 4503 }, - { 0x253B, 4550 }, - { 0x253C, 4812 }, - { 0x253D, 4495 }, - { 0x253E, 4868 }, - { 0x253F, 4997 }, - { 0x2540, 4197 }, - { 0x2541, 4329 }, - { 0x2542, 4976 }, - { 0x2543, 4461 }, - { 0x2544, 4834 }, - { 0x2545, 4470 }, - { 0x2546, 4843 }, - { 0x2547, 4374 }, - { 0x2548, 4242 }, - { 0x2549, 4892 }, - { 0x254A, 4519 }, - { 0x254B, 4633 }, - { 0x254C, 4755 }, - { 0x254D, 4599 }, - { 0x254E, 4749 }, - { 0x254F, 4593 }, - { 0x2550, 4958 }, - { 0x2551, 4936 }, - { 0x2552, 4447 }, - { 0x2553, 4426 }, - { 0x2554, 4924 }, - { 0x2555, 4440 }, - { 0x2556, 4419 }, - { 0x2557, 4918 }, - { 0x2558, 4315 }, - { 0x2559, 4294 }, - { 0x255A, 4906 }, - { 0x255B, 4308 }, - { 0x255C, 4287 }, - { 0x255D, 4900 }, - { 0x255E, 5032 }, - { 0x255F, 5011 }, - { 0x2560, 4946 }, - { 0x2561, 5025 }, - { 0x2562, 5004 }, - { 0x2563, 4940 }, - { 0x2564, 4454 }, - { 0x2565, 4433 }, - { 0x2566, 4930 }, - { 0x2567, 4322 }, - { 0x2568, 4301 }, - { 0x2569, 4912 }, - { 0x256A, 5039 }, - { 0x256B, 5018 }, - { 0x256C, 4952 }, - { 0x256D, 4705 }, - { 0x256E, 4698 }, - { 0x256F, 4684 }, - { 0x2570, 4691 }, - { 0x2571, 4787 }, - { 0x2572, 4778 }, - { 0x2573, 4773 }, - { 0x2574, 4734 }, - { 0x2575, 4655 }, - { 0x2576, 4745 }, - { 0x2577, 4712 }, - { 0x2578, 4578 }, - { 0x2579, 4527 }, - { 0x257A, 4589 }, - { 0x257B, 4556 }, - { 0x257C, 4738 }, - { 0x257D, 4665 }, - { 0x257E, 4582 }, - { 0x257F, 4537 }, - { 0x2580, 20519 }, - { 0x2581, 18630 }, - { 0x2582, 18634 }, - { 0x2583, 18704 }, - { 0x2584, 18642 }, - { 0x2585, 18638 }, - { 0x2586, 18708 }, - { 0x2587, 18700 }, - { 0x2588, 7655 }, - { 0x2589, 7844 }, - { 0x258A, 7852 }, - { 0x258B, 7731 }, - { 0x258C, 7739 }, - { 0x258D, 7848 }, - { 0x258E, 7696 }, - { 0x258F, 7692 }, - { 0x2590, 19287 }, - { 0x2591, 18406 }, - { 0x2592, 31822 }, - { 0x2593, 7559 }, - { 0x2594, 20515 }, - { 0x2595, 19276 }, - { 0x2596, 50169 }, - { 0x2597, 50172 }, - { 0x2598, 50175 }, - { 0x2599, 50178 }, - { 0x259A, 50187 }, - { 0x259B, 50193 }, - { 0x259C, 50202 }, - { 0x259D, 50211 }, - { 0x259E, 50214 }, - { 0x259F, 50220 }, - { 0x25A0, 8745 }, - { 0x25A1, 20704 }, - { 0x25A2, 20736 }, - { 0x25A3, 20757 }, - { 0x25A4, 32443 }, - { 0x25A5, 32435 }, - { 0x25A6, 32447 }, - { 0x25A7, 32395 }, - { 0x25A8, 32410 }, - { 0x25A9, 32430 }, - { 0x25AA, 8699 }, - { 0x25AB, 20645 }, - { 0x25AC, 8781 }, - { 0x25AD, 20807 }, - { 0x25AE, 8773 }, - { 0x25AF, 20802 }, - { 0x25B0, 8822 }, - { 0x25B1, 20857 }, - { 0x25B2, 8802 }, - { 0x25B3, 20817 }, - { 0x25B4, 8798 }, - { 0x25B5, 20813 }, - { 0x25B6, 8831 }, - { 0x25B7, 20866 }, - { 0x25B8, 8824 }, - { 0x25B9, 20859 }, - { 0x25BA, 8828 }, - { 0x25BB, 20863 }, - { 0x25BC, 8809 }, - { 0x25BD, 20844 }, - { 0x25BE, 8805 }, - { 0x25BF, 20840 }, - { 0x25C0, 8819 }, - { 0x25C1, 20854 }, - { 0x25C2, 8812 }, - { 0x25C3, 20847 }, - { 0x25C4, 8816 }, - { 0x25C5, 20851 }, - { 0x25C6, 8747 }, - { 0x25C7, 20763 }, - { 0x25C8, 20773 }, - { 0x25C9, 36631 }, - { 0x25CA, 37065 }, - { 0x25CB, 20653 }, - { 0x25CC, 28239 }, - { 0x25CD, 27526 }, - { 0x25CE, 41309 }, - { 0x25CF, 8719 }, - { 0x25D0, 27493 }, - { 0x25D1, 27503 }, - { 0x25D2, 27498 }, - { 0x25D3, 27515 }, - { 0x25D4, 27520 }, - { 0x25D5, 27477 }, - { 0x25D6, 7735 }, - { 0x25D7, 19283 }, - { 0x25D8, 36714 }, - { 0x25D9, 36711 }, - { 0x25DA, 20525 }, - { 0x25DB, 18648 }, - { 0x25DC, 20543 }, - { 0x25DD, 20565 }, - { 0x25DE, 18677 }, - { 0x25DF, 18653 }, - { 0x25E0, 20522 }, - { 0x25E1, 18645 }, - { 0x25E2, 8688 }, - { 0x25E3, 8684 }, - { 0x25E4, 8705 }, - { 0x25E5, 8709 }, - { 0x25E6, 20651 }, - { 0x25E7, 32371 }, - { 0x25E8, 32390 }, - { 0x25E9, 32403 }, - { 0x25EA, 32383 }, - { 0x25EB, 20741 }, - { 0x25EC, 20820 }, - { 0x25ED, 63150 }, - { 0x25EE, 63156 }, - { 0x25EF, 12696 }, - { 0x25F0, 20718 }, - { 0x25F1, 20706 }, - { 0x25F2, 20712 }, - { 0x25F3, 20724 }, - { 0x25F4, 20682 }, - { 0x25F5, 20670 }, - { 0x25F6, 20676 }, - { 0x25F7, 20688 }, - { 0x25F8, 20548 }, - { 0x25F9, 20575 }, - { 0x25FA, 18658 }, - { 0x25FB, 20698 }, - { 0x25FC, 8742 }, - { 0x25FD, 20694 }, - { 0x25FE, 8738 }, - { 0x25FF, 18687 }, - { 0x2600, 8644 }, - { 0x2601, 8911 }, - { 0x2602, 50781 }, - { 0x2603, 39033 }, - { 0x2604, 8917 }, - { 0x2605, 8661 }, - { 0x2606, 20615 }, - { 0x2607, 59163 }, - { 0x2608, 68269 }, - { 0x2609, 6932 }, - { 0x260A, 50884 }, - { 0x260B, 60970 }, - { 0x260C, 62440 }, - { 0x260D, 61995 }, - { 0x260E, 8783 }, - { 0x260F, 20809 }, - { 0x2610, 27396 }, - { 0x2611, 27402 }, - { 0x2612, 27398 }, - { 0x2613, 38507 }, - { 0x2614, 50782 }, - { 0x2615, 5545 }, - { 0x2616, 20642 }, - { 0x2617, 8696 }, - { 0x2618, 50301 }, - { 0x2619, 50279 }, - { 0x261A, 8657 }, - { 0x261B, 8692 }, - { 0x261C, 20611 }, - { 0x261D, 20588 }, - { 0x261E, 20638 }, - { 0x261F, 20601 }, - { 0x2620, 19929 }, - { 0x2621, 34943 }, - { 0x2622, 63099 }, - { 0x2623, 50887 }, - { 0x2624, 41310 }, - { 0x2625, 7544 }, - { 0x2626, 49911 }, - { 0x2627, 5046 }, - { 0x2628, 8919 }, - { 0x2629, 8922 }, - { 0x262A, 8223 }, - { 0x262B, 9087 }, - { 0x262C, 3819 }, - { 0x262D, 28582 }, - { 0x262E, 19254 }, - { 0x262F, 7540 }, - { 0x2630, 39977 }, - { 0x2631, 39965 }, - { 0x2632, 39962 }, - { 0x2633, 39980 }, - { 0x2634, 39968 }, - { 0x2635, 39974 }, - { 0x2636, 39983 }, - { 0x2637, 39971 }, - { 0x2638, 20585 }, - { 0x2639, 20786 }, - { 0x263A, 20781 }, - { 0x263B, 8766 }, - { 0x263C, 20594 }, - { 0x263D, 9089 }, - { 0x263E, 7672 }, - { 0x263F, 37073 }, - { 0x2640, 28468 }, - { 0x2641, 8997 }, - { 0x2642, 8092 }, - { 0x2643, 36716 }, - { 0x2644, 31974 }, - { 0x2645, 33780 }, - { 0x2646, 38326 }, - { 0x2647, 19260 }, - { 0x2648, 8617 }, - { 0x2649, 33289 }, - { 0x264A, 28491 }, - { 0x264B, 27473 }, - { 0x264C, 5780 }, - { 0x264D, 20583 }, - { 0x264E, 18393 }, - { 0x264F, 50290 }, - { 0x2650, 63103 }, - { 0x2651, 52134 }, - { 0x2652, 40167 }, - { 0x2653, 31939 }, - { 0x2654, 20617 }, - { 0x2655, 20626 }, - { 0x2656, 20623 }, - { 0x2657, 20629 }, - { 0x2658, 20632 }, - { 0x2659, 20620 }, - { 0x265A, 8663 }, - { 0x265B, 8672 }, - { 0x265C, 8669 }, - { 0x265D, 8675 }, - { 0x265E, 8678 }, - { 0x265F, 8666 }, - { 0x2660, 8702 }, - { 0x2661, 20635 }, - { 0x2662, 20765 }, - { 0x2663, 8648 }, - { 0x2664, 20648 }, - { 0x2665, 8681 }, - { 0x2666, 8749 }, - { 0x2667, 20598 }, - { 0x2668, 5543 }, - { 0x2669, 38476 }, - { 0x266A, 28410 }, - { 0x266B, 27406 }, - { 0x266C, 27409 }, - { 0x266D, 18742 }, - { 0x266E, 18748 }, - { 0x266F, 18745 }, - { 0x2670, 8587 }, - { 0x2671, 7630 }, - { 0x2672, 60432 }, - { 0x2673, 60066 }, - { 0x2674, 60071 }, - { 0x2675, 60076 }, - { 0x2676, 60081 }, - { 0x2677, 60086 }, - { 0x2678, 60091 }, - { 0x2679, 60096 }, - { 0x267A, 60101 }, - { 0x267B, 8785 }, - { 0x267C, 50234 }, - { 0x267D, 68927 }, - { 0x267E, 60051 }, - { 0x267F, 62426 }, - { 0x2680, 5518 }, - { 0x2681, 5520 }, - { 0x2682, 5522 }, - { 0x2683, 5524 }, - { 0x2684, 5526 }, - { 0x2685, 5528 }, - { 0x2686, 20655 }, - { 0x2687, 20660 }, - { 0x2688, 8732 }, - { 0x2689, 8721 }, - { 0x268A, 49848 }, - { 0x268B, 49845 }, - { 0x268C, 28220 }, - { 0x268D, 28200 }, - { 0x268E, 28204 }, - { 0x268F, 28216 }, - { 0x2690, 20605 }, - { 0x2691, 8651 }, - { 0x2692, 28579 }, - { 0x2693, 21094 }, - { 0x2694, 35867 }, - { 0x2695, 20201 }, - { 0x2696, 31975 }, - { 0x2697, 33853 }, - { 0x2698, 28479 }, - { 0x2699, 7661 }, - { 0x269A, 20198 }, - { 0x269B, 7545 }, - { 0x269C, 63232 }, - { 0x26A0, 40153 }, - { 0x26A1, 7668 }, - { 0x26A2, 36570 }, - { 0x26A3, 36567 }, - { 0x26A4, 63083 }, - { 0x26A5, 8088 }, - { 0x26A6, 8102 }, - { 0x26A7, 8094 }, - { 0x26A8, 50863 }, - { 0x26A9, 61756 }, - { 0x26AA, 31828 }, - { 0x26AB, 31810 }, - { 0x26AC, 31824 }, - { 0x26AD, 48755 }, - { 0x26AE, 36565 }, - { 0x26AF, 60435 }, - { 0x26B0, 27579 }, - { 0x26B1, 36633 }, - { 0x26B2, 31866 }, - { 0x2701, 20551 }, - { 0x2702, 8771 }, - { 0x2703, 18666 }, - { 0x2704, 20791 }, - { 0x2706, 60166 }, - { 0x2707, 8230 }, - { 0x2708, 40164 }, - { 0x2709, 45357 }, - { 0x270C, 40151 }, - { 0x270D, 40155 }, - { 0x270E, 18674 }, - { 0x270F, 31936 }, - { 0x2710, 20562 }, - { 0x2711, 20592 }, - { 0x2712, 8642 }, - { 0x2713, 8904 }, - { 0x2714, 11976 }, - { 0x2715, 68842 }, - { 0x2716, 12096 }, - { 0x2717, 27394 }, - { 0x2718, 12018 }, - { 0x2719, 49916 }, - { 0x271A, 11990 }, - { 0x271B, 8124 }, - { 0x271C, 11955 }, - { 0x271D, 12703 }, - { 0x271E, 50294 }, - { 0x271F, 49919 }, - { 0x2720, 37071 }, - { 0x2721, 8220 }, - { 0x2722, 7650 }, - { 0x2723, 7647 }, - { 0x2724, 11951 }, - { 0x2725, 7644 }, - { 0x2726, 8653 }, - { 0x2727, 20607 }, - { 0x2729, 32629 }, - { 0x272A, 35261 }, - { 0x272B, 8120 }, - { 0x272C, 8715 }, - { 0x272D, 49913 }, - { 0x272E, 12059 }, - { 0x272F, 50113 }, - { 0x2730, 50291 }, - { 0x2731, 12057 }, - { 0x2732, 8127 }, - { 0x2733, 9000 }, - { 0x2734, 9003 }, - { 0x2735, 9007 }, - { 0x2736, 6922 }, - { 0x2737, 9011 }, - { 0x2738, 11979 }, - { 0x2739, 33776 }, - { 0x273A, 38991 }, - { 0x273B, 68902 }, - { 0x273C, 8130 }, - { 0x273D, 12129 }, - { 0x273E, 6926 }, - { 0x273F, 8769 }, - { 0x2740, 20784 }, - { 0x2741, 9016 }, - { 0x2742, 34951 }, - { 0x2743, 12132 }, - { 0x2744, 60112 }, - { 0x2745, 20453 }, - { 0x2746, 12052 }, - { 0x2747, 39038 }, - { 0x2748, 12055 }, - { 0x2749, 68840 }, - { 0x274A, 9021 }, - { 0x274B, 11985 }, - { 0x274D, 50298 }, - { 0x274F, 18695 }, - { 0x2750, 20578 }, - { 0x2751, 18682 }, - { 0x2752, 20570 }, - { 0x2756, 8757 }, - { 0x2758, 18408 }, - { 0x2759, 31831 }, - { 0x275A, 12063 }, - { 0x275B, 12045 }, - { 0x275C, 12039 }, - { 0x275D, 12032 }, - { 0x275E, 12026 }, - { 0x2761, 28172 }, - { 0x2762, 12069 }, - { 0x2763, 11993 }, - { 0x2764, 11959 }, - { 0x2765, 38495 }, - { 0x2766, 28477 }, - { 0x2767, 38500 }, - { 0x2768, 31806 }, - { 0x2769, 31818 }, - { 0x276A, 31834 }, - { 0x276B, 31839 }, - { 0x276C, 31847 }, - { 0x276D, 31852 }, - { 0x276E, 12090 }, - { 0x276F, 12104 }, - { 0x2770, 12085 }, - { 0x2771, 12099 }, - { 0x2772, 18394 }, - { 0x2773, 18400 }, - { 0x2774, 31801 }, - { 0x2775, 31813 }, - { 0x2776, 36454 }, - { 0x2777, 36464 }, - { 0x2778, 36494 }, - { 0x2779, 36474 }, - { 0x277A, 36469 }, - { 0x277B, 36459 }, - { 0x277C, 36489 }, - { 0x277D, 36484 }, - { 0x277E, 36479 }, - { 0x277F, 36499 }, - { 0x2780, 36404 }, - { 0x2781, 36414 }, - { 0x2782, 36444 }, - { 0x2783, 36424 }, - { 0x2784, 36419 }, - { 0x2785, 36409 }, - { 0x2786, 36439 }, - { 0x2787, 36434 }, - { 0x2788, 36429 }, - { 0x2789, 36449 }, - { 0x278A, 36504 }, - { 0x278B, 36516 }, - { 0x278C, 36552 }, - { 0x278D, 36528 }, - { 0x278E, 36522 }, - { 0x278F, 36510 }, - { 0x2790, 36546 }, - { 0x2791, 36540 }, - { 0x2792, 36534 }, - { 0x2793, 36558 }, - { 0x2794, 12073 }, - { 0x2798, 12008 }, - { 0x2799, 12066 }, - { 0x279A, 12004 }, - { 0x279B, 45349 }, - { 0x279C, 12077 }, - { 0x279D, 68904 }, - { 0x279E, 12136 }, - { 0x279F, 28183 }, - { 0x27A0, 12021 }, - { 0x27A1, 8789 }, - { 0x27A2, 39127 }, - { 0x27A3, 39131 }, - { 0x27A4, 8795 }, - { 0x27A5, 11969 }, - { 0x27A6, 11962 }, - { 0x27A7, 20194 }, - { 0x27A8, 12124 }, - { 0x27A9, 68261 }, - { 0x27AA, 63089 }, - { 0x27AB, 62431 }, - { 0x27AC, 63233 }, - { 0x27AD, 11998 }, - { 0x27AE, 12012 }, - { 0x27AF, 38330 }, - { 0x27B1, 38336 }, - { 0x27B2, 34992 }, - { 0x27B3, 68907 }, - { 0x27B4, 68892 }, - { 0x27B5, 68896 }, - { 0x27B6, 68888 }, - { 0x27B7, 12115 }, - { 0x27B8, 12120 }, - { 0x27B9, 12110 }, - { 0x27BA, 68899 }, - { 0x27BB, 12140 }, - { 0x27BC, 68270 }, - { 0x27BD, 12081 }, - { 0x27BE, 68414 }, - { 0x27C0, 20450 }, - { 0x27C1, 20793 }, - { 0x27C2, 68826 }, - { 0x27C3, 8134 }, - { 0x27C4, 8136 }, - { 0x27C5, 7962 }, - { 0x27C6, 19478 }, - { 0x27C7, 81 }, - { 0x27C8, 38491 }, - { 0x27C9, 50430 }, - { 0x27CA, 50788 }, - { 0x27D0, 20768 }, - { 0x27D1, 3826 }, - { 0x27D2, 36612 }, - { 0x27D3, 18669 }, - { 0x27D4, 20538 }, - { 0x27D5, 7781 }, - { 0x27D6, 19365 }, - { 0x27D7, 7657 }, - { 0x27D8, 12686 }, - { 0x27D9, 12689 }, - { 0x27DA, 7679 }, - { 0x27DB, 7675 }, - { 0x27DC, 7960 }, - { 0x27DD, 8045 }, - { 0x27DE, 8033 }, - { 0x27DF, 138 }, - { 0x27E0, 37066 }, - { 0x27E1, 20825 }, - { 0x27E2, 20828 }, - { 0x27E3, 20834 }, - { 0x27E4, 20747 }, - { 0x27E5, 20752 }, - { 0x27E6, 64968 }, - { 0x27E7, 64982 }, - { 0x27E8, 64964 }, - { 0x27E9, 64978 }, - { 0x27EA, 64973 }, - { 0x27EB, 64987 }, - { 0x27F0, 40142 }, - { 0x27F1, 57840 }, - { 0x27F2, 68285 }, - { 0x27F3, 52149 }, - { 0x27F4, 19331 }, - { 0x27F5, 8048 }, - { 0x27F6, 8066 }, - { 0x27F7, 8036 }, - { 0x27F8, 8056 }, - { 0x27F9, 8074 }, - { 0x27FA, 8040 }, - { 0x27FB, 8051 }, - { 0x27FC, 8069 }, - { 0x27FD, 8060 }, - { 0x27FE, 8078 }, - { 0x27FF, 8084 }, - { 0x2800, 34175 }, - { 0x2801, 34178 }, - { 0x2802, 34181 }, - { 0x2803, 34202 }, - { 0x2804, 34184 }, - { 0x2805, 34205 }, - { 0x2806, 34223 }, - { 0x2807, 34286 }, - { 0x2808, 34187 }, - { 0x2809, 34208 }, - { 0x280A, 34226 }, - { 0x280B, 34289 }, - { 0x280C, 34241 }, - { 0x280D, 34304 }, - { 0x280E, 34349 }, - { 0x280F, 34454 }, - { 0x2810, 34190 }, - { 0x2811, 34211 }, - { 0x2812, 34229 }, - { 0x2813, 34292 }, - { 0x2814, 34244 }, - { 0x2815, 34307 }, - { 0x2816, 34352 }, - { 0x2817, 34457 }, - { 0x2818, 34256 }, - { 0x2819, 34319 }, - { 0x281A, 34364 }, - { 0x281B, 34469 }, - { 0x281C, 34394 }, - { 0x281D, 34499 }, - { 0x281E, 34559 }, - { 0x281F, 34664 }, - { 0x2820, 34193 }, - { 0x2821, 34214 }, - { 0x2822, 34232 }, - { 0x2823, 34295 }, - { 0x2824, 34247 }, - { 0x2825, 34310 }, - { 0x2826, 34355 }, - { 0x2827, 34460 }, - { 0x2828, 34259 }, - { 0x2829, 34322 }, - { 0x282A, 34367 }, - { 0x282B, 34472 }, - { 0x282C, 34397 }, - { 0x282D, 34502 }, - { 0x282E, 34562 }, - { 0x282F, 34667 }, - { 0x2830, 34268 }, - { 0x2831, 34331 }, - { 0x2832, 34376 }, - { 0x2833, 34481 }, - { 0x2834, 34406 }, - { 0x2835, 34511 }, - { 0x2836, 34571 }, - { 0x2837, 34676 }, - { 0x2838, 34424 }, - { 0x2839, 34529 }, - { 0x283A, 34589 }, - { 0x283B, 34694 }, - { 0x283C, 34619 }, - { 0x283D, 34724 }, - { 0x283E, 34769 }, - { 0x283F, 34832 }, - { 0x2840, 34196 }, - { 0x2841, 34217 }, - { 0x2842, 34235 }, - { 0x2843, 34298 }, - { 0x2844, 34250 }, - { 0x2845, 34313 }, - { 0x2846, 34358 }, - { 0x2847, 34463 }, - { 0x2848, 34262 }, - { 0x2849, 34325 }, - { 0x284A, 34370 }, - { 0x284B, 34475 }, - { 0x284C, 34400 }, - { 0x284D, 34505 }, - { 0x284E, 34565 }, - { 0x284F, 34670 }, - { 0x2850, 34271 }, - { 0x2851, 34334 }, - { 0x2852, 34379 }, - { 0x2853, 34484 }, - { 0x2854, 34409 }, - { 0x2855, 34514 }, - { 0x2856, 34574 }, - { 0x2857, 34679 }, - { 0x2858, 34427 }, - { 0x2859, 34532 }, - { 0x285A, 34592 }, - { 0x285B, 34697 }, - { 0x285C, 34622 }, - { 0x285D, 34727 }, - { 0x285E, 34772 }, - { 0x285F, 34835 }, - { 0x2860, 34277 }, - { 0x2861, 34340 }, - { 0x2862, 34385 }, - { 0x2863, 34490 }, - { 0x2864, 34415 }, - { 0x2865, 34520 }, - { 0x2866, 34580 }, - { 0x2867, 34685 }, - { 0x2868, 34433 }, - { 0x2869, 34538 }, - { 0x286A, 34598 }, - { 0x286B, 34703 }, - { 0x286C, 34628 }, - { 0x286D, 34733 }, - { 0x286E, 34778 }, - { 0x286F, 34841 }, - { 0x2870, 34442 }, - { 0x2871, 34547 }, - { 0x2872, 34607 }, - { 0x2873, 34712 }, - { 0x2874, 34637 }, - { 0x2875, 34742 }, - { 0x2876, 34787 }, - { 0x2877, 34850 }, - { 0x2878, 34649 }, - { 0x2879, 34754 }, - { 0x287A, 34799 }, - { 0x287B, 34862 }, - { 0x287C, 34814 }, - { 0x287D, 34877 }, - { 0x287E, 34895 }, - { 0x287F, 34916 }, - { 0x2880, 34199 }, - { 0x2881, 34220 }, - { 0x2882, 34238 }, - { 0x2883, 34301 }, - { 0x2884, 34253 }, - { 0x2885, 34316 }, - { 0x2886, 34361 }, - { 0x2887, 34466 }, - { 0x2888, 34265 }, - { 0x2889, 34328 }, - { 0x288A, 34373 }, - { 0x288B, 34478 }, - { 0x288C, 34403 }, - { 0x288D, 34508 }, - { 0x288E, 34568 }, - { 0x288F, 34673 }, - { 0x2890, 34274 }, - { 0x2891, 34337 }, - { 0x2892, 34382 }, - { 0x2893, 34487 }, - { 0x2894, 34412 }, - { 0x2895, 34517 }, - { 0x2896, 34577 }, - { 0x2897, 34682 }, - { 0x2898, 34430 }, - { 0x2899, 34535 }, - { 0x289A, 34595 }, - { 0x289B, 34700 }, - { 0x289C, 34625 }, - { 0x289D, 34730 }, - { 0x289E, 34775 }, - { 0x289F, 34838 }, - { 0x28A0, 34280 }, - { 0x28A1, 34343 }, - { 0x28A2, 34388 }, - { 0x28A3, 34493 }, - { 0x28A4, 34418 }, - { 0x28A5, 34523 }, - { 0x28A6, 34583 }, - { 0x28A7, 34688 }, - { 0x28A8, 34436 }, - { 0x28A9, 34541 }, - { 0x28AA, 34601 }, - { 0x28AB, 34706 }, - { 0x28AC, 34631 }, - { 0x28AD, 34736 }, - { 0x28AE, 34781 }, - { 0x28AF, 34844 }, - { 0x28B0, 34445 }, - { 0x28B1, 34550 }, - { 0x28B2, 34610 }, - { 0x28B3, 34715 }, - { 0x28B4, 34640 }, - { 0x28B5, 34745 }, - { 0x28B6, 34790 }, - { 0x28B7, 34853 }, - { 0x28B8, 34652 }, - { 0x28B9, 34757 }, - { 0x28BA, 34802 }, - { 0x28BB, 34865 }, - { 0x28BC, 34817 }, - { 0x28BD, 34880 }, - { 0x28BE, 34898 }, - { 0x28BF, 34919 }, - { 0x28C0, 34283 }, - { 0x28C1, 34346 }, - { 0x28C2, 34391 }, - { 0x28C3, 34496 }, - { 0x28C4, 34421 }, - { 0x28C5, 34526 }, - { 0x28C6, 34586 }, - { 0x28C7, 34691 }, - { 0x28C8, 34439 }, - { 0x28C9, 34544 }, - { 0x28CA, 34604 }, - { 0x28CB, 34709 }, - { 0x28CC, 34634 }, - { 0x28CD, 34739 }, - { 0x28CE, 34784 }, - { 0x28CF, 34847 }, - { 0x28D0, 34448 }, - { 0x28D1, 34553 }, - { 0x28D2, 34613 }, - { 0x28D3, 34718 }, - { 0x28D4, 34643 }, - { 0x28D5, 34748 }, - { 0x28D6, 34793 }, - { 0x28D7, 34856 }, - { 0x28D8, 34655 }, - { 0x28D9, 34760 }, - { 0x28DA, 34805 }, - { 0x28DB, 34868 }, - { 0x28DC, 34820 }, - { 0x28DD, 34883 }, - { 0x28DE, 34901 }, - { 0x28DF, 34922 }, - { 0x28E0, 34451 }, - { 0x28E1, 34556 }, - { 0x28E2, 34616 }, - { 0x28E3, 34721 }, - { 0x28E4, 34646 }, - { 0x28E5, 34751 }, - { 0x28E6, 34796 }, - { 0x28E7, 34859 }, - { 0x28E8, 34658 }, - { 0x28E9, 34763 }, - { 0x28EA, 34808 }, - { 0x28EB, 34871 }, - { 0x28EC, 34823 }, - { 0x28ED, 34886 }, - { 0x28EE, 34904 }, - { 0x28EF, 34925 }, - { 0x28F0, 34661 }, - { 0x28F1, 34766 }, - { 0x28F2, 34811 }, - { 0x28F3, 34874 }, - { 0x28F4, 34826 }, - { 0x28F5, 34889 }, - { 0x28F6, 34907 }, - { 0x28F7, 34928 }, - { 0x28F8, 34829 }, - { 0x28F9, 34892 }, - { 0x28FA, 34910 }, - { 0x28FB, 34931 }, - { 0x28FC, 34913 }, - { 0x28FD, 34934 }, - { 0x28FE, 34937 }, - { 0x28FF, 34940 }, - { 0x2900, 62400 }, - { 0x2901, 62393 }, - { 0x2902, 58911 }, - { 0x2903, 62250 }, - { 0x2904, 7833 }, - { 0x2905, 62366 }, - { 0x2906, 58901 }, - { 0x2907, 62240 }, - { 0x2908, 57746 }, - { 0x2909, 40015 }, - { 0x290A, 40079 }, - { 0x290B, 57774 }, - { 0x290C, 58894 }, - { 0x290D, 62233 }, - { 0x290E, 58923 }, - { 0x290F, 62262 }, - { 0x2910, 62406 }, - { 0x2911, 62181 }, - { 0x2912, 39992 }, - { 0x2913, 57718 }, - { 0x2914, 62169 }, - { 0x2915, 62161 }, - { 0x2916, 62371 }, - { 0x2917, 62385 }, - { 0x2918, 62376 }, - { 0x2919, 59025 }, - { 0x291A, 62364 }, - { 0x291B, 58917 }, - { 0x291C, 62256 }, - { 0x291D, 58803 }, - { 0x291E, 62113 }, - { 0x291F, 58812 }, - { 0x2920, 62122 }, - { 0x2921, 18854 }, - { 0x2922, 18807 }, - { 0x2923, 18881 }, - { 0x2924, 18823 }, - { 0x2925, 20142 }, - { 0x2926, 20176 }, - { 0x2927, 18874 }, - { 0x2928, 18816 }, - { 0x2929, 20135 }, - { 0x292A, 20169 }, - { 0x292B, 31969 }, - { 0x292C, 36626 }, - { 0x292D, 20147 }, - { 0x292E, 18835 }, - { 0x292F, 36620 }, - { 0x2930, 31963 }, - { 0x2931, 18828 }, - { 0x2932, 18886 }, - { 0x2933, 8573 }, - { 0x2934, 8630 }, - { 0x2935, 8636 }, - { 0x2936, 8618 }, - { 0x2937, 8624 }, - { 0x2938, 62096 }, - { 0x2939, 58777 }, - { 0x293A, 7465 }, - { 0x293B, 27412 }, - { 0x293C, 7459 }, - { 0x293D, 7469 }, - { 0x293E, 18690 }, - { 0x293F, 18661 }, - { 0x2940, 68281 }, - { 0x2941, 52145 }, - { 0x2942, 62201 }, - { 0x2943, 58866 }, - { 0x2944, 19923 }, - { 0x2945, 62152 }, - { 0x2946, 58842 }, - { 0x2947, 62218 }, - { 0x2948, 7809 }, - { 0x2949, 40145 }, - { 0x294A, 7707 }, - { 0x294B, 7714 }, - { 0x294C, 99 }, - { 0x294D, 92 }, - { 0x294E, 7700 }, - { 0x294F, 106 }, - { 0x2950, 7721 }, - { 0x2951, 85 }, - { 0x2952, 58935 }, - { 0x2953, 62274 }, - { 0x2954, 40118 }, - { 0x2955, 57816 }, - { 0x2956, 58979 }, - { 0x2957, 62318 }, - { 0x2958, 40082 }, - { 0x2959, 57780 }, - { 0x295A, 58942 }, - { 0x295B, 62281 }, - { 0x295C, 40125 }, - { 0x295D, 57823 }, - { 0x295E, 58986 }, - { 0x295F, 62325 }, - { 0x2960, 40089 }, - { 0x2961, 57787 }, - { 0x2962, 58957 }, - { 0x2963, 40096 }, - { 0x2964, 62307 }, - { 0x2965, 57805 }, - { 0x2966, 58968 }, - { 0x2967, 58993 }, - { 0x2968, 62296 }, - { 0x2969, 62332 }, - { 0x296A, 58949 }, - { 0x296B, 59004 }, - { 0x296C, 62288 }, - { 0x296D, 62343 }, - { 0x296E, 40107 }, - { 0x296F, 57794 }, - { 0x2970, 19403 }, - { 0x2971, 28457 }, - { 0x2972, 20469 }, - { 0x2973, 58872 }, - { 0x2974, 62207 }, - { 0x2975, 62212 }, - { 0x2976, 59131 }, - { 0x2977, 58881 }, - { 0x2978, 63345 }, - { 0x2979, 32695 }, - { 0x297A, 58877 }, - { 0x297B, 50415 }, - { 0x297C, 7728 }, - { 0x297D, 19280 }, - { 0x297E, 133 }, - { 0x297F, 7614 }, - { 0x2980, 33726 }, + { 0x23E7, 67224 }, + { 0x2400, 36757 }, + { 0x2401, 36784 }, + { 0x2402, 36779 }, + { 0x2403, 36716 }, + { 0x2404, 36726 }, + { 0x2405, 36827 }, + { 0x2406, 36864 }, + { 0x2407, 36737 }, + { 0x2408, 36845 }, + { 0x2409, 36852 }, + { 0x240A, 36753 }, + { 0x240B, 36841 }, + { 0x240C, 36749 }, + { 0x240D, 36833 }, + { 0x240E, 36772 }, + { 0x240F, 36768 }, + { 0x2410, 36740 }, + { 0x2411, 36800 }, + { 0x2412, 36805 }, + { 0x2413, 36815 }, + { 0x2414, 36810 }, + { 0x2415, 36837 }, + { 0x2416, 36867 }, + { 0x2417, 36731 }, + { 0x2418, 36789 }, + { 0x2419, 36721 }, + { 0x241A, 36856 }, + { 0x241B, 36820 }, + { 0x241C, 36745 }, + { 0x241D, 36764 }, + { 0x241E, 36823 }, + { 0x241F, 36760 }, + { 0x2420, 36776 }, + { 0x2421, 36792 }, + { 0x2422, 10376 }, + { 0x2423, 9606 }, + { 0x2424, 36830 }, + { 0x2425, 36795 }, + { 0x2426, 36859 }, + { 0x2440, 6791 }, + { 0x2441, 6793 }, + { 0x2442, 6789 }, + { 0x2443, 6810 }, + { 0x2444, 6784 }, + { 0x2445, 6781 }, + { 0x2446, 6799 }, + { 0x2447, 6795 }, + { 0x2448, 6787 }, + { 0x2449, 6806 }, + { 0x244A, 6803 }, + { 0x2460, 38887 }, + { 0x2461, 38893 }, + { 0x2462, 38914 }, + { 0x2463, 38899 }, + { 0x2464, 38896 }, + { 0x2465, 38890 }, + { 0x2466, 38911 }, + { 0x2467, 38908 }, + { 0x2468, 38902 }, + { 0x2469, 39306 }, + { 0x246A, 39351 }, + { 0x246B, 39393 }, + { 0x246C, 39450 }, + { 0x246D, 39444 }, + { 0x246E, 39435 }, + { 0x246F, 39438 }, + { 0x2470, 39453 }, + { 0x2471, 39441 }, + { 0x2472, 39447 }, + { 0x2473, 39396 }, + { 0x2474, 74628 }, + { 0x2475, 74634 }, + { 0x2476, 74652 }, + { 0x2477, 74640 }, + { 0x2478, 74637 }, + { 0x2479, 74631 }, + { 0x247A, 74649 }, + { 0x247B, 74646 }, + { 0x247C, 74643 }, + { 0x247D, 74896 }, + { 0x247E, 74899 }, + { 0x247F, 74902 }, + { 0x2480, 74923 }, + { 0x2481, 74917 }, + { 0x2482, 74908 }, + { 0x2483, 74911 }, + { 0x2484, 74926 }, + { 0x2485, 74914 }, + { 0x2486, 74920 }, + { 0x2487, 74905 }, + { 0x2488, 10484 }, + { 0x2489, 10496 }, + { 0x248A, 10534 }, + { 0x248B, 10508 }, + { 0x248C, 10502 }, + { 0x248D, 10490 }, + { 0x248E, 10528 }, + { 0x248F, 10522 }, + { 0x2490, 10514 }, + { 0x2491, 35589 }, + { 0x2492, 35595 }, + { 0x2493, 35599 }, + { 0x2494, 35627 }, + { 0x2495, 35619 }, + { 0x2496, 35607 }, + { 0x2497, 35611 }, + { 0x2498, 35631 }, + { 0x2499, 35615 }, + { 0x249A, 35623 }, + { 0x249B, 35603 }, + { 0x249C, 74655 }, + { 0x249D, 74660 }, + { 0x249E, 74665 }, + { 0x249F, 74670 }, + { 0x24A0, 74675 }, + { 0x24A1, 74680 }, + { 0x24A2, 74685 }, + { 0x24A3, 74690 }, + { 0x24A4, 74695 }, + { 0x24A5, 74700 }, + { 0x24A6, 74705 }, + { 0x24A7, 74710 }, + { 0x24A8, 74715 }, + { 0x24A9, 74720 }, + { 0x24AA, 74725 }, + { 0x24AB, 74730 }, + { 0x24AC, 74735 }, + { 0x24AD, 74740 }, + { 0x24AE, 74745 }, + { 0x24AF, 74750 }, + { 0x24B0, 74755 }, + { 0x24B1, 74760 }, + { 0x24B2, 74765 }, + { 0x24B3, 74770 }, + { 0x24B4, 74775 }, + { 0x24B5, 74780 }, + { 0x24B6, 39052 }, + { 0x24B7, 39057 }, + { 0x24B8, 39062 }, + { 0x24B9, 39067 }, + { 0x24BA, 39072 }, + { 0x24BB, 39077 }, + { 0x24BC, 39082 }, + { 0x24BD, 39087 }, + { 0x24BE, 39092 }, + { 0x24BF, 39097 }, + { 0x24C0, 39102 }, + { 0x24C1, 39107 }, + { 0x24C2, 39112 }, + { 0x24C3, 39117 }, + { 0x24C4, 39122 }, + { 0x24C5, 39127 }, + { 0x24C6, 39132 }, + { 0x24C7, 39137 }, + { 0x24C8, 39142 }, + { 0x24C9, 39147 }, + { 0x24CA, 39152 }, + { 0x24CB, 39157 }, + { 0x24CC, 39162 }, + { 0x24CD, 39167 }, + { 0x24CE, 39172 }, + { 0x24CF, 39177 }, + { 0x24D0, 38922 }, + { 0x24D1, 38927 }, + { 0x24D2, 38932 }, + { 0x24D3, 38937 }, + { 0x24D4, 38942 }, + { 0x24D5, 38947 }, + { 0x24D6, 38952 }, + { 0x24D7, 38957 }, + { 0x24D8, 38962 }, + { 0x24D9, 38967 }, + { 0x24DA, 38972 }, + { 0x24DB, 38977 }, + { 0x24DC, 38982 }, + { 0x24DD, 38987 }, + { 0x24DE, 38992 }, + { 0x24DF, 38997 }, + { 0x24E0, 39002 }, + { 0x24E1, 39007 }, + { 0x24E2, 39012 }, + { 0x24E3, 39017 }, + { 0x24E4, 39022 }, + { 0x24E5, 39027 }, + { 0x24E6, 39032 }, + { 0x24E7, 39037 }, + { 0x24E8, 39042 }, + { 0x24E9, 39047 }, + { 0x24EA, 38905 }, + { 0x24EB, 54887 }, + { 0x24EC, 54891 }, + { 0x24ED, 54919 }, + { 0x24EE, 54911 }, + { 0x24EF, 54899 }, + { 0x24F0, 54903 }, + { 0x24F1, 54923 }, + { 0x24F2, 54907 }, + { 0x24F3, 54915 }, + { 0x24F4, 54895 }, + { 0x24F5, 31612 }, + { 0x24F6, 31620 }, + { 0x24F7, 31644 }, + { 0x24F8, 31628 }, + { 0x24F9, 31624 }, + { 0x24FA, 31616 }, + { 0x24FB, 31640 }, + { 0x24FC, 31636 }, + { 0x24FD, 31632 }, + { 0x24FE, 31648 }, + { 0x24FF, 54883 }, + { 0x2500, 5020 }, + { 0x2501, 4841 }, + { 0x2502, 4986 }, + { 0x2503, 4807 }, + { 0x2504, 4957 }, + { 0x2505, 4801 }, + { 0x2506, 4951 }, + { 0x2507, 4795 }, + { 0x2508, 5014 }, + { 0x2509, 4835 }, + { 0x250A, 5008 }, + { 0x250B, 4829 }, + { 0x250C, 4912 }, + { 0x250D, 4595 }, + { 0x250E, 4550 }, + { 0x250F, 4756 }, + { 0x2510, 4906 }, + { 0x2511, 4580 }, + { 0x2512, 4535 }, + { 0x2513, 4750 }, + { 0x2514, 4862 }, + { 0x2515, 4463 }, + { 0x2516, 4418 }, + { 0x2517, 4734 }, + { 0x2518, 4849 }, + { 0x2519, 4448 }, + { 0x251A, 4403 }, + { 0x251B, 4721 }, + { 0x251C, 4996 }, + { 0x251D, 5180 }, + { 0x251E, 4410 }, + { 0x251F, 4542 }, + { 0x2520, 5159 }, + { 0x2521, 4587 }, + { 0x2522, 4455 }, + { 0x2523, 4817 }, + { 0x2524, 4990 }, + { 0x2525, 5173 }, + { 0x2526, 4395 }, + { 0x2527, 4527 }, + { 0x2528, 5152 }, + { 0x2529, 4572 }, + { 0x252A, 4440 }, + { 0x252B, 4811 }, + { 0x252C, 4918 }, + { 0x252D, 4677 }, + { 0x252E, 5050 }, + { 0x252F, 4602 }, + { 0x2530, 4557 }, + { 0x2531, 5074 }, + { 0x2532, 4701 }, + { 0x2533, 4762 }, + { 0x2534, 4868 }, + { 0x2535, 4669 }, + { 0x2536, 5042 }, + { 0x2537, 4470 }, + { 0x2538, 4425 }, + { 0x2539, 5066 }, + { 0x253A, 4693 }, + { 0x253B, 4740 }, + { 0x253C, 5002 }, + { 0x253D, 4685 }, + { 0x253E, 5058 }, + { 0x253F, 5187 }, + { 0x2540, 4387 }, + { 0x2541, 4519 }, + { 0x2542, 5166 }, + { 0x2543, 4651 }, + { 0x2544, 5024 }, + { 0x2545, 4660 }, + { 0x2546, 5033 }, + { 0x2547, 4564 }, + { 0x2548, 4432 }, + { 0x2549, 5082 }, + { 0x254A, 4709 }, + { 0x254B, 4823 }, + { 0x254C, 4945 }, + { 0x254D, 4789 }, + { 0x254E, 4939 }, + { 0x254F, 4783 }, + { 0x2550, 5148 }, + { 0x2551, 5126 }, + { 0x2552, 4637 }, + { 0x2553, 4616 }, + { 0x2554, 5114 }, + { 0x2555, 4630 }, + { 0x2556, 4609 }, + { 0x2557, 5108 }, + { 0x2558, 4505 }, + { 0x2559, 4484 }, + { 0x255A, 5096 }, + { 0x255B, 4498 }, + { 0x255C, 4477 }, + { 0x255D, 5090 }, + { 0x255E, 5222 }, + { 0x255F, 5201 }, + { 0x2560, 5136 }, + { 0x2561, 5215 }, + { 0x2562, 5194 }, + { 0x2563, 5130 }, + { 0x2564, 4644 }, + { 0x2565, 4623 }, + { 0x2566, 5120 }, + { 0x2567, 4512 }, + { 0x2568, 4491 }, + { 0x2569, 5102 }, + { 0x256A, 5229 }, + { 0x256B, 5208 }, + { 0x256C, 5142 }, + { 0x256D, 4895 }, + { 0x256E, 4888 }, + { 0x256F, 4874 }, + { 0x2570, 4881 }, + { 0x2571, 4977 }, + { 0x2572, 4968 }, + { 0x2573, 4963 }, + { 0x2574, 4924 }, + { 0x2575, 4845 }, + { 0x2576, 4935 }, + { 0x2577, 4902 }, + { 0x2578, 4768 }, + { 0x2579, 4717 }, + { 0x257A, 4779 }, + { 0x257B, 4746 }, + { 0x257C, 4928 }, + { 0x257D, 4855 }, + { 0x257E, 4772 }, + { 0x257F, 4727 }, + { 0x2580, 23088 }, + { 0x2581, 21094 }, + { 0x2582, 21098 }, + { 0x2583, 21168 }, + { 0x2584, 21106 }, + { 0x2585, 21102 }, + { 0x2586, 21172 }, + { 0x2587, 21164 }, + { 0x2588, 9114 }, + { 0x2589, 9314 }, + { 0x258A, 9322 }, + { 0x258B, 9191 }, + { 0x258C, 9199 }, + { 0x258D, 9318 }, + { 0x258E, 9156 }, + { 0x258F, 9152 }, + { 0x2590, 21766 }, + { 0x2591, 20870 }, + { 0x2592, 35535 }, + { 0x2593, 9015 }, + { 0x2594, 23084 }, + { 0x2595, 21755 }, + { 0x2596, 55386 }, + { 0x2597, 55389 }, + { 0x2598, 55392 }, + { 0x2599, 55395 }, + { 0x259A, 55404 }, + { 0x259B, 55410 }, + { 0x259C, 55419 }, + { 0x259D, 55428 }, + { 0x259E, 55431 }, + { 0x259F, 55437 }, + { 0x25A0, 10270 }, + { 0x25A1, 23296 }, + { 0x25A2, 23328 }, + { 0x25A3, 23349 }, + { 0x25A4, 36279 }, + { 0x25A5, 36271 }, + { 0x25A6, 36283 }, + { 0x25A7, 36231 }, + { 0x25A8, 36246 }, + { 0x25A9, 36266 }, + { 0x25AA, 10212 }, + { 0x25AB, 23225 }, + { 0x25AC, 10317 }, + { 0x25AD, 23408 }, + { 0x25AE, 10309 }, + { 0x25AF, 23403 }, + { 0x25B0, 10361 }, + { 0x25B1, 23461 }, + { 0x25B2, 10341 }, + { 0x25B3, 23421 }, + { 0x25B4, 10337 }, + { 0x25B5, 23417 }, + { 0x25B6, 10373 }, + { 0x25B7, 23473 }, + { 0x25B8, 10363 }, + { 0x25B9, 23463 }, + { 0x25BA, 10367 }, + { 0x25BB, 23467 }, + { 0x25BC, 10348 }, + { 0x25BD, 23448 }, + { 0x25BE, 10344 }, + { 0x25BF, 23444 }, + { 0x25C0, 10358 }, + { 0x25C1, 23458 }, + { 0x25C2, 10351 }, + { 0x25C3, 23451 }, + { 0x25C4, 10355 }, + { 0x25C5, 23455 }, + { 0x25C6, 10272 }, + { 0x25C7, 23355 }, + { 0x25C8, 23365 }, + { 0x25C9, 40556 }, + { 0x25CA, 40990 }, + { 0x25CB, 23236 }, + { 0x25CC, 31533 }, + { 0x25CD, 30518 }, + { 0x25CE, 45864 }, + { 0x25CF, 10238 }, + { 0x25D0, 30485 }, + { 0x25D1, 30495 }, + { 0x25D2, 30490 }, + { 0x25D3, 30507 }, + { 0x25D4, 30512 }, + { 0x25D5, 30469 }, + { 0x25D6, 9195 }, + { 0x25D7, 21762 }, + { 0x25D8, 40639 }, + { 0x25D9, 40636 }, + { 0x25DA, 23094 }, + { 0x25DB, 21112 }, + { 0x25DC, 23112 }, + { 0x25DD, 23134 }, + { 0x25DE, 21141 }, + { 0x25DF, 21117 }, + { 0x25E0, 23091 }, + { 0x25E1, 21109 }, + { 0x25E2, 10198 }, + { 0x25E3, 10194 }, + { 0x25E4, 10224 }, + { 0x25E5, 10228 }, + { 0x25E6, 23234 }, + { 0x25E7, 36207 }, + { 0x25E8, 36226 }, + { 0x25E9, 36239 }, + { 0x25EA, 36219 }, + { 0x25EB, 23333 }, + { 0x25EC, 23424 }, + { 0x25ED, 69326 }, + { 0x25EE, 69332 }, + { 0x25EF, 14464 }, + { 0x25F0, 23310 }, + { 0x25F1, 23298 }, + { 0x25F2, 23304 }, + { 0x25F3, 23316 }, + { 0x25F4, 23265 }, + { 0x25F5, 23253 }, + { 0x25F6, 23259 }, + { 0x25F7, 23271 }, + { 0x25F8, 23117 }, + { 0x25F9, 23144 }, + { 0x25FA, 21122 }, + { 0x25FB, 23284 }, + { 0x25FC, 10261 }, + { 0x25FD, 23280 }, + { 0x25FE, 10257 }, + { 0x25FF, 21151 }, + { 0x2600, 10141 }, + { 0x2601, 10454 }, + { 0x2602, 56004 }, + { 0x2603, 43547 }, + { 0x2604, 10460 }, + { 0x2605, 10161 }, + { 0x2606, 23185 }, + { 0x2607, 64791 }, + { 0x2608, 74480 }, + { 0x2609, 7188 }, + { 0x260A, 56109 }, + { 0x260B, 66846 }, + { 0x260C, 68615 }, + { 0x260D, 67880 }, + { 0x260E, 10319 }, + { 0x260F, 23410 }, + { 0x2610, 30232 }, + { 0x2611, 30238 }, + { 0x2612, 30234 }, + { 0x2613, 43020 }, + { 0x2614, 56005 }, + { 0x2615, 5795 }, + { 0x2616, 23219 }, + { 0x2617, 10206 }, + { 0x2618, 55522 }, + { 0x2619, 55497 }, + { 0x261A, 10154 }, + { 0x261B, 10202 }, + { 0x261C, 23181 }, + { 0x261D, 23158 }, + { 0x261E, 23215 }, + { 0x261F, 23171 }, + { 0x2620, 22476 }, + { 0x2621, 38868 }, + { 0x2622, 69274 }, + { 0x2623, 56112 }, + { 0x2624, 45865 }, + { 0x2625, 8718 }, + { 0x2626, 54931 }, + { 0x2627, 5236 }, + { 0x2628, 10462 }, + { 0x2629, 10465 }, + { 0x262A, 9715 }, + { 0x262B, 10630 }, + { 0x262C, 4009 }, + { 0x262D, 31881 }, + { 0x262E, 21733 }, + { 0x262F, 8714 }, + { 0x2630, 44529 }, + { 0x2631, 44517 }, + { 0x2632, 44514 }, + { 0x2633, 44532 }, + { 0x2634, 44520 }, + { 0x2635, 44526 }, + { 0x2636, 44535 }, + { 0x2637, 44523 }, + { 0x2638, 23155 }, + { 0x2639, 23384 }, + { 0x263A, 23373 }, + { 0x263B, 10291 }, + { 0x263C, 23164 }, + { 0x263D, 10632 }, + { 0x263E, 9132 }, + { 0x263F, 41191 }, + { 0x2640, 31767 }, + { 0x2641, 10540 }, + { 0x2642, 9580 }, + { 0x2643, 40641 }, + { 0x2644, 35810 }, + { 0x2645, 37705 }, + { 0x2646, 42827 }, + { 0x2647, 21739 }, + { 0x2648, 10114 }, + { 0x2649, 37129 }, + { 0x264A, 31790 }, + { 0x264B, 30317 }, + { 0x264C, 6030 }, + { 0x264D, 23153 }, + { 0x264E, 20857 }, + { 0x264F, 55511 }, + { 0x2650, 69278 }, + { 0x2651, 57359 }, + { 0x2652, 44719 }, + { 0x2653, 35653 }, + { 0x2654, 23191 }, + { 0x2655, 23200 }, + { 0x2656, 23197 }, + { 0x2657, 23203 }, + { 0x2658, 23206 }, + { 0x2659, 23194 }, + { 0x265A, 10167 }, + { 0x265B, 10176 }, + { 0x265C, 10173 }, + { 0x265D, 10179 }, + { 0x265E, 10182 }, + { 0x265F, 10170 }, + { 0x2660, 10221 }, + { 0x2661, 23209 }, + { 0x2662, 23357 }, + { 0x2663, 10145 }, + { 0x2664, 23231 }, + { 0x2665, 10185 }, + { 0x2666, 10274 }, + { 0x2667, 23168 }, + { 0x2668, 5793 }, + { 0x2669, 42977 }, + { 0x266A, 31704 }, + { 0x266B, 30242 }, + { 0x266C, 30245 }, + { 0x266D, 21206 }, + { 0x266E, 21212 }, + { 0x266F, 21209 }, + { 0x2670, 10084 }, + { 0x2671, 9086 }, + { 0x2672, 66308 }, + { 0x2673, 65768 }, + { 0x2674, 65773 }, + { 0x2675, 65778 }, + { 0x2676, 65783 }, + { 0x2677, 65788 }, + { 0x2678, 65793 }, + { 0x2679, 65798 }, + { 0x267A, 65803 }, + { 0x267B, 10321 }, + { 0x267C, 55452 }, + { 0x267D, 75139 }, + { 0x267E, 65753 }, + { 0x267F, 68601 }, + { 0x2680, 5768 }, + { 0x2681, 5770 }, + { 0x2682, 5772 }, + { 0x2683, 5774 }, + { 0x2684, 5776 }, + { 0x2685, 5778 }, + { 0x2686, 23238 }, + { 0x2687, 23243 }, + { 0x2688, 10251 }, + { 0x2689, 10240 }, + { 0x268A, 54868 }, + { 0x268B, 54865 }, + { 0x268C, 31212 }, + { 0x268D, 31192 }, + { 0x268E, 31196 }, + { 0x268F, 31208 }, + { 0x2690, 23175 }, + { 0x2691, 10148 }, + { 0x2692, 31878 }, + { 0x2693, 23701 }, + { 0x2694, 39792 }, + { 0x2695, 22748 }, + { 0x2696, 35811 }, + { 0x2697, 37778 }, + { 0x2698, 31778 }, + { 0x2699, 9120 }, + { 0x269A, 22745 }, + { 0x269B, 8719 }, + { 0x269C, 69423 }, + { 0x269D, 54942 }, + { 0x26A0, 44705 }, + { 0x26A1, 9127 }, + { 0x26A2, 40495 }, + { 0x26A3, 40492 }, + { 0x26A4, 69258 }, + { 0x26A5, 9576 }, + { 0x26A6, 9590 }, + { 0x26A7, 9582 }, + { 0x26A8, 56086 }, + { 0x26A9, 67641 }, + { 0x26AA, 35541 }, + { 0x26AB, 35523 }, + { 0x26AC, 35537 }, + { 0x26AD, 53728 }, + { 0x26AE, 40490 }, + { 0x26AF, 66311 }, + { 0x26B0, 30571 }, + { 0x26B1, 40558 }, + { 0x26B2, 35579 }, + { 0x26B3, 10446 }, + { 0x26B4, 35649 }, + { 0x26B5, 9131 }, + { 0x26B6, 23152 }, + { 0x26B7, 30468 }, + { 0x26B8, 10158 }, + { 0x26B9, 43027 }, + { 0x26BA, 69279 }, + { 0x26BB, 55451 }, + { 0x26BC, 75099 }, + { 0x26C0, 23376 }, + { 0x26C1, 23379 }, + { 0x26C2, 10294 }, + { 0x26C3, 10297 }, + { 0x2701, 23120 }, + { 0x2702, 10304 }, + { 0x2703, 21130 }, + { 0x2704, 23389 }, + { 0x2706, 66042 }, + { 0x2707, 9722 }, + { 0x2708, 44716 }, + { 0x2709, 50322 }, + { 0x270C, 44703 }, + { 0x270D, 44707 }, + { 0x270E, 21138 }, + { 0x270F, 35650 }, + { 0x2710, 23131 }, + { 0x2711, 23162 }, + { 0x2712, 10139 }, + { 0x2713, 10447 }, + { 0x2714, 13551 }, + { 0x2715, 75053 }, + { 0x2716, 13671 }, + { 0x2717, 30230 }, + { 0x2718, 13593 }, + { 0x2719, 54936 }, + { 0x271A, 13565 }, + { 0x271B, 9612 }, + { 0x271C, 13530 }, + { 0x271D, 14471 }, + { 0x271E, 55515 }, + { 0x271F, 54939 }, + { 0x2720, 41189 }, + { 0x2721, 9712 }, + { 0x2722, 9109 }, + { 0x2723, 9106 }, + { 0x2724, 13526 }, + { 0x2725, 9103 }, + { 0x2726, 10150 }, + { 0x2727, 23177 }, + { 0x2729, 36465 }, + { 0x272A, 39186 }, + { 0x272B, 9608 }, + { 0x272C, 10234 }, + { 0x272D, 54933 }, + { 0x272E, 13634 }, + { 0x272F, 55330 }, + { 0x2730, 55512 }, + { 0x2731, 13632 }, + { 0x2732, 9615 }, + { 0x2733, 10543 }, + { 0x2734, 10546 }, + { 0x2735, 10550 }, + { 0x2736, 7178 }, + { 0x2737, 10554 }, + { 0x2738, 13554 }, + { 0x2739, 37701 }, + { 0x273A, 43505 }, + { 0x273B, 75114 }, + { 0x273C, 9618 }, + { 0x273D, 13704 }, + { 0x273E, 7182 }, + { 0x273F, 10300 }, + { 0x2740, 23382 }, + { 0x2741, 10559 }, + { 0x2742, 38876 }, + { 0x2743, 13707 }, + { 0x2744, 65814 }, + { 0x2745, 23005 }, + { 0x2746, 13627 }, + { 0x2747, 43552 }, + { 0x2748, 13630 }, + { 0x2749, 75051 }, + { 0x274A, 10564 }, + { 0x274B, 13560 }, + { 0x274D, 55519 }, + { 0x274F, 21159 }, + { 0x2750, 23147 }, + { 0x2751, 21146 }, + { 0x2752, 23139 }, + { 0x2756, 10282 }, + { 0x2758, 20872 }, + { 0x2759, 35544 }, + { 0x275A, 13638 }, + { 0x275B, 13620 }, + { 0x275C, 13614 }, + { 0x275D, 13607 }, + { 0x275E, 13601 }, + { 0x2761, 31164 }, + { 0x2762, 13644 }, + { 0x2763, 13568 }, + { 0x2764, 13534 }, + { 0x2765, 43008 }, + { 0x2766, 31776 }, + { 0x2767, 43013 }, + { 0x2768, 35519 }, + { 0x2769, 35531 }, + { 0x276A, 35547 }, + { 0x276B, 35552 }, + { 0x276C, 35560 }, + { 0x276D, 35565 }, + { 0x276E, 13665 }, + { 0x276F, 13679 }, + { 0x2770, 13660 }, + { 0x2771, 13674 }, + { 0x2772, 20858 }, + { 0x2773, 20864 }, + { 0x2774, 35514 }, + { 0x2775, 35526 }, + { 0x2776, 40379 }, + { 0x2777, 40389 }, + { 0x2778, 40419 }, + { 0x2779, 40399 }, + { 0x277A, 40394 }, + { 0x277B, 40384 }, + { 0x277C, 40414 }, + { 0x277D, 40409 }, + { 0x277E, 40404 }, + { 0x277F, 40424 }, + { 0x2780, 40329 }, + { 0x2781, 40339 }, + { 0x2782, 40369 }, + { 0x2783, 40349 }, + { 0x2784, 40344 }, + { 0x2785, 40334 }, + { 0x2786, 40364 }, + { 0x2787, 40359 }, + { 0x2788, 40354 }, + { 0x2789, 40374 }, + { 0x278A, 40429 }, + { 0x278B, 40441 }, + { 0x278C, 40477 }, + { 0x278D, 40453 }, + { 0x278E, 40447 }, + { 0x278F, 40435 }, + { 0x2790, 40471 }, + { 0x2791, 40465 }, + { 0x2792, 40459 }, + { 0x2793, 40483 }, + { 0x2794, 13648 }, + { 0x2798, 13583 }, + { 0x2799, 13641 }, + { 0x279A, 13579 }, + { 0x279B, 50314 }, + { 0x279C, 13652 }, + { 0x279D, 75116 }, + { 0x279E, 13711 }, + { 0x279F, 31175 }, + { 0x27A0, 13596 }, + { 0x27A1, 10328 }, + { 0x27A2, 43645 }, + { 0x27A3, 43649 }, + { 0x27A4, 10334 }, + { 0x27A5, 13544 }, + { 0x27A6, 13537 }, + { 0x27A7, 22741 }, + { 0x27A8, 13699 }, + { 0x27A9, 74472 }, + { 0x27AA, 69264 }, + { 0x27AB, 68606 }, + { 0x27AC, 69424 }, + { 0x27AD, 13573 }, + { 0x27AE, 13587 }, + { 0x27AF, 42831 }, + { 0x27B1, 42837 }, + { 0x27B2, 38917 }, + { 0x27B3, 75119 }, + { 0x27B4, 75104 }, + { 0x27B5, 75108 }, + { 0x27B6, 75100 }, + { 0x27B7, 13690 }, + { 0x27B8, 13695 }, + { 0x27B9, 13685 }, + { 0x27BA, 75111 }, + { 0x27BB, 13715 }, + { 0x27BC, 74481 }, + { 0x27BD, 13656 }, + { 0x27BE, 74625 }, + { 0x27C0, 23002 }, + { 0x27C1, 23391 }, + { 0x27C2, 75037 }, + { 0x27C3, 9622 }, + { 0x27C4, 9624 }, + { 0x27C5, 9435 }, + { 0x27C6, 21960 }, + { 0x27C7, 271 }, + { 0x27C8, 43004 }, + { 0x27C9, 55653 }, + { 0x27CA, 56011 }, + { 0x27CC, 9530 }, + { 0x27D0, 23360 }, + { 0x27D1, 4016 }, + { 0x27D2, 40537 }, + { 0x27D3, 21133 }, + { 0x27D4, 23107 }, + { 0x27D5, 9251 }, + { 0x27D6, 21844 }, + { 0x27D7, 9116 }, + { 0x27D8, 14454 }, + { 0x27D9, 14457 }, + { 0x27DA, 9139 }, + { 0x27DB, 9135 }, + { 0x27DC, 9433 }, + { 0x27DD, 9527 }, + { 0x27DE, 9515 }, + { 0x27DF, 328 }, + { 0x27E0, 40991 }, + { 0x27E1, 23429 }, + { 0x27E2, 23432 }, + { 0x27E3, 23438 }, + { 0x27E4, 23339 }, + { 0x27E5, 23344 }, + { 0x27E6, 71159 }, + { 0x27E7, 71183 }, + { 0x27E8, 71155 }, + { 0x27E9, 71179 }, + { 0x27EA, 71170 }, + { 0x27EB, 71194 }, + { 0x27EC, 71164 }, + { 0x27ED, 71188 }, + { 0x27EE, 71175 }, + { 0x27EF, 71199 }, + { 0x27F0, 44694 }, + { 0x27F1, 63375 }, + { 0x27F2, 74496 }, + { 0x27F3, 57374 }, + { 0x27F4, 21810 }, + { 0x27F5, 9532 }, + { 0x27F6, 9554 }, + { 0x27F7, 9518 }, + { 0x27F8, 9540 }, + { 0x27F9, 9562 }, + { 0x27FA, 9522 }, + { 0x27FB, 9535 }, + { 0x27FC, 9557 }, + { 0x27FD, 9544 }, + { 0x27FE, 9566 }, + { 0x27FF, 9572 }, + { 0x2800, 38100 }, + { 0x2801, 38103 }, + { 0x2802, 38106 }, + { 0x2803, 38127 }, + { 0x2804, 38109 }, + { 0x2805, 38130 }, + { 0x2806, 38148 }, + { 0x2807, 38211 }, + { 0x2808, 38112 }, + { 0x2809, 38133 }, + { 0x280A, 38151 }, + { 0x280B, 38214 }, + { 0x280C, 38166 }, + { 0x280D, 38229 }, + { 0x280E, 38274 }, + { 0x280F, 38379 }, + { 0x2810, 38115 }, + { 0x2811, 38136 }, + { 0x2812, 38154 }, + { 0x2813, 38217 }, + { 0x2814, 38169 }, + { 0x2815, 38232 }, + { 0x2816, 38277 }, + { 0x2817, 38382 }, + { 0x2818, 38181 }, + { 0x2819, 38244 }, + { 0x281A, 38289 }, + { 0x281B, 38394 }, + { 0x281C, 38319 }, + { 0x281D, 38424 }, + { 0x281E, 38484 }, + { 0x281F, 38589 }, + { 0x2820, 38118 }, + { 0x2821, 38139 }, + { 0x2822, 38157 }, + { 0x2823, 38220 }, + { 0x2824, 38172 }, + { 0x2825, 38235 }, + { 0x2826, 38280 }, + { 0x2827, 38385 }, + { 0x2828, 38184 }, + { 0x2829, 38247 }, + { 0x282A, 38292 }, + { 0x282B, 38397 }, + { 0x282C, 38322 }, + { 0x282D, 38427 }, + { 0x282E, 38487 }, + { 0x282F, 38592 }, + { 0x2830, 38193 }, + { 0x2831, 38256 }, + { 0x2832, 38301 }, + { 0x2833, 38406 }, + { 0x2834, 38331 }, + { 0x2835, 38436 }, + { 0x2836, 38496 }, + { 0x2837, 38601 }, + { 0x2838, 38349 }, + { 0x2839, 38454 }, + { 0x283A, 38514 }, + { 0x283B, 38619 }, + { 0x283C, 38544 }, + { 0x283D, 38649 }, + { 0x283E, 38694 }, + { 0x283F, 38757 }, + { 0x2840, 38121 }, + { 0x2841, 38142 }, + { 0x2842, 38160 }, + { 0x2843, 38223 }, + { 0x2844, 38175 }, + { 0x2845, 38238 }, + { 0x2846, 38283 }, + { 0x2847, 38388 }, + { 0x2848, 38187 }, + { 0x2849, 38250 }, + { 0x284A, 38295 }, + { 0x284B, 38400 }, + { 0x284C, 38325 }, + { 0x284D, 38430 }, + { 0x284E, 38490 }, + { 0x284F, 38595 }, + { 0x2850, 38196 }, + { 0x2851, 38259 }, + { 0x2852, 38304 }, + { 0x2853, 38409 }, + { 0x2854, 38334 }, + { 0x2855, 38439 }, + { 0x2856, 38499 }, + { 0x2857, 38604 }, + { 0x2858, 38352 }, + { 0x2859, 38457 }, + { 0x285A, 38517 }, + { 0x285B, 38622 }, + { 0x285C, 38547 }, + { 0x285D, 38652 }, + { 0x285E, 38697 }, + { 0x285F, 38760 }, + { 0x2860, 38202 }, + { 0x2861, 38265 }, + { 0x2862, 38310 }, + { 0x2863, 38415 }, + { 0x2864, 38340 }, + { 0x2865, 38445 }, + { 0x2866, 38505 }, + { 0x2867, 38610 }, + { 0x2868, 38358 }, + { 0x2869, 38463 }, + { 0x286A, 38523 }, + { 0x286B, 38628 }, + { 0x286C, 38553 }, + { 0x286D, 38658 }, + { 0x286E, 38703 }, + { 0x286F, 38766 }, + { 0x2870, 38367 }, + { 0x2871, 38472 }, + { 0x2872, 38532 }, + { 0x2873, 38637 }, + { 0x2874, 38562 }, + { 0x2875, 38667 }, + { 0x2876, 38712 }, + { 0x2877, 38775 }, + { 0x2878, 38574 }, + { 0x2879, 38679 }, + { 0x287A, 38724 }, + { 0x287B, 38787 }, + { 0x287C, 38739 }, + { 0x287D, 38802 }, + { 0x287E, 38820 }, + { 0x287F, 38841 }, + { 0x2880, 38124 }, + { 0x2881, 38145 }, + { 0x2882, 38163 }, + { 0x2883, 38226 }, + { 0x2884, 38178 }, + { 0x2885, 38241 }, + { 0x2886, 38286 }, + { 0x2887, 38391 }, + { 0x2888, 38190 }, + { 0x2889, 38253 }, + { 0x288A, 38298 }, + { 0x288B, 38403 }, + { 0x288C, 38328 }, + { 0x288D, 38433 }, + { 0x288E, 38493 }, + { 0x288F, 38598 }, + { 0x2890, 38199 }, + { 0x2891, 38262 }, + { 0x2892, 38307 }, + { 0x2893, 38412 }, + { 0x2894, 38337 }, + { 0x2895, 38442 }, + { 0x2896, 38502 }, + { 0x2897, 38607 }, + { 0x2898, 38355 }, + { 0x2899, 38460 }, + { 0x289A, 38520 }, + { 0x289B, 38625 }, + { 0x289C, 38550 }, + { 0x289D, 38655 }, + { 0x289E, 38700 }, + { 0x289F, 38763 }, + { 0x28A0, 38205 }, + { 0x28A1, 38268 }, + { 0x28A2, 38313 }, + { 0x28A3, 38418 }, + { 0x28A4, 38343 }, + { 0x28A5, 38448 }, + { 0x28A6, 38508 }, + { 0x28A7, 38613 }, + { 0x28A8, 38361 }, + { 0x28A9, 38466 }, + { 0x28AA, 38526 }, + { 0x28AB, 38631 }, + { 0x28AC, 38556 }, + { 0x28AD, 38661 }, + { 0x28AE, 38706 }, + { 0x28AF, 38769 }, + { 0x28B0, 38370 }, + { 0x28B1, 38475 }, + { 0x28B2, 38535 }, + { 0x28B3, 38640 }, + { 0x28B4, 38565 }, + { 0x28B5, 38670 }, + { 0x28B6, 38715 }, + { 0x28B7, 38778 }, + { 0x28B8, 38577 }, + { 0x28B9, 38682 }, + { 0x28BA, 38727 }, + { 0x28BB, 38790 }, + { 0x28BC, 38742 }, + { 0x28BD, 38805 }, + { 0x28BE, 38823 }, + { 0x28BF, 38844 }, + { 0x28C0, 38208 }, + { 0x28C1, 38271 }, + { 0x28C2, 38316 }, + { 0x28C3, 38421 }, + { 0x28C4, 38346 }, + { 0x28C5, 38451 }, + { 0x28C6, 38511 }, + { 0x28C7, 38616 }, + { 0x28C8, 38364 }, + { 0x28C9, 38469 }, + { 0x28CA, 38529 }, + { 0x28CB, 38634 }, + { 0x28CC, 38559 }, + { 0x28CD, 38664 }, + { 0x28CE, 38709 }, + { 0x28CF, 38772 }, + { 0x28D0, 38373 }, + { 0x28D1, 38478 }, + { 0x28D2, 38538 }, + { 0x28D3, 38643 }, + { 0x28D4, 38568 }, + { 0x28D5, 38673 }, + { 0x28D6, 38718 }, + { 0x28D7, 38781 }, + { 0x28D8, 38580 }, + { 0x28D9, 38685 }, + { 0x28DA, 38730 }, + { 0x28DB, 38793 }, + { 0x28DC, 38745 }, + { 0x28DD, 38808 }, + { 0x28DE, 38826 }, + { 0x28DF, 38847 }, + { 0x28E0, 38376 }, + { 0x28E1, 38481 }, + { 0x28E2, 38541 }, + { 0x28E3, 38646 }, + { 0x28E4, 38571 }, + { 0x28E5, 38676 }, + { 0x28E6, 38721 }, + { 0x28E7, 38784 }, + { 0x28E8, 38583 }, + { 0x28E9, 38688 }, + { 0x28EA, 38733 }, + { 0x28EB, 38796 }, + { 0x28EC, 38748 }, + { 0x28ED, 38811 }, + { 0x28EE, 38829 }, + { 0x28EF, 38850 }, + { 0x28F0, 38586 }, + { 0x28F1, 38691 }, + { 0x28F2, 38736 }, + { 0x28F3, 38799 }, + { 0x28F4, 38751 }, + { 0x28F5, 38814 }, + { 0x28F6, 38832 }, + { 0x28F7, 38853 }, + { 0x28F8, 38754 }, + { 0x28F9, 38817 }, + { 0x28FA, 38835 }, + { 0x28FB, 38856 }, + { 0x28FC, 38838 }, + { 0x28FD, 38859 }, + { 0x28FE, 38862 }, + { 0x28FF, 38865 }, + { 0x2900, 68309 }, + { 0x2901, 68302 }, + { 0x2902, 64491 }, + { 0x2903, 68156 }, + { 0x2904, 9303 }, + { 0x2905, 68275 }, + { 0x2906, 64481 }, + { 0x2907, 68146 }, + { 0x2908, 63281 }, + { 0x2909, 44567 }, + { 0x290A, 44631 }, + { 0x290B, 63309 }, + { 0x290C, 64474 }, + { 0x290D, 68139 }, + { 0x290E, 64503 }, + { 0x290F, 68168 }, + { 0x2910, 68315 }, + { 0x2911, 68066 }, + { 0x2912, 44544 }, + { 0x2913, 63253 }, + { 0x2914, 68054 }, + { 0x2915, 68046 }, + { 0x2916, 68280 }, + { 0x2917, 68294 }, + { 0x2918, 68285 }, + { 0x2919, 64608 }, + { 0x291A, 68273 }, + { 0x291B, 64497 }, + { 0x291C, 68162 }, + { 0x291D, 64340 }, + { 0x291E, 67998 }, + { 0x291F, 64349 }, + { 0x2920, 68007 }, + { 0x2921, 21318 }, + { 0x2922, 21271 }, + { 0x2923, 21345 }, + { 0x2924, 21287 }, + { 0x2925, 22689 }, + { 0x2926, 22723 }, + { 0x2927, 21338 }, + { 0x2928, 21280 }, + { 0x2929, 22682 }, + { 0x292A, 22716 }, + { 0x292B, 35805 }, + { 0x292C, 40551 }, + { 0x292D, 22694 }, + { 0x292E, 21299 }, + { 0x292F, 40545 }, + { 0x2930, 35799 }, + { 0x2931, 21292 }, + { 0x2932, 21350 }, + { 0x2933, 10070 }, + { 0x2934, 10127 }, + { 0x2935, 10133 }, + { 0x2936, 10115 }, + { 0x2937, 10121 }, + { 0x2938, 67981 }, + { 0x2939, 64314 }, + { 0x293A, 7721 }, + { 0x293B, 30248 }, + { 0x293C, 7715 }, + { 0x293D, 7725 }, + { 0x293E, 21154 }, + { 0x293F, 21125 }, + { 0x2940, 74492 }, + { 0x2941, 57370 }, + { 0x2942, 68086 }, + { 0x2943, 64423 }, + { 0x2944, 22470 }, + { 0x2945, 68037 }, + { 0x2946, 64379 }, + { 0x2947, 68116 }, + { 0x2948, 9279 }, + { 0x2949, 44697 }, + { 0x294A, 9167 }, + { 0x294B, 9174 }, + { 0x294C, 289 }, + { 0x294D, 282 }, + { 0x294E, 9160 }, + { 0x294F, 296 }, + { 0x2950, 9181 }, + { 0x2951, 275 }, + { 0x2952, 64515 }, + { 0x2953, 68180 }, + { 0x2954, 44670 }, + { 0x2955, 63351 }, + { 0x2956, 64559 }, + { 0x2957, 68224 }, + { 0x2958, 44634 }, + { 0x2959, 63315 }, + { 0x295A, 64522 }, + { 0x295B, 68187 }, + { 0x295C, 44677 }, + { 0x295D, 63358 }, + { 0x295E, 64566 }, + { 0x295F, 68231 }, + { 0x2960, 44641 }, + { 0x2961, 63322 }, + { 0x2962, 64537 }, + { 0x2963, 44648 }, + { 0x2964, 68213 }, + { 0x2965, 63340 }, + { 0x2966, 64548 }, + { 0x2967, 64573 }, + { 0x2968, 68202 }, + { 0x2969, 68238 }, + { 0x296A, 64529 }, + { 0x296B, 64584 }, + { 0x296C, 68194 }, + { 0x296D, 68249 }, + { 0x296E, 44659 }, + { 0x296F, 63329 }, + { 0x2970, 21882 }, + { 0x2971, 31756 }, + { 0x2972, 23038 }, + { 0x2973, 64429 }, + { 0x2974, 68092 }, + { 0x2975, 68097 }, + { 0x2976, 64759 }, + { 0x2977, 64461 }, + { 0x2978, 69536 }, + { 0x2979, 36531 }, + { 0x297A, 64457 }, + { 0x297B, 55638 }, + { 0x297C, 9188 }, + { 0x297D, 21759 }, + { 0x297E, 323 }, + { 0x297F, 9070 }, + { 0x2980, 37651 }, { 0x2981, 26 }, { 0x2982, 29 }, - { 0x2983, 7856 }, - { 0x2984, 19368 }, - { 0x2985, 7877 }, - { 0x2986, 19389 }, + { 0x2983, 9326 }, + { 0x2984, 21847 }, + { 0x2985, 9347 }, + { 0x2986, 21868 }, { 0x2987, 16 }, { 0x2988, 37 }, { 0x2989, 21 }, { 0x298A, 42 }, - { 0x298B, 7936 }, - { 0x298C, 19454 }, - { 0x298D, 7915 }, - { 0x298E, 19441 }, - { 0x298F, 7923 }, - { 0x2990, 19433 }, - { 0x2991, 7747 }, - { 0x2992, 19312 }, - { 0x2993, 7684 }, - { 0x2994, 19268 }, - { 0x2995, 28260 }, - { 0x2996, 28286 }, - { 0x2997, 7752 }, - { 0x2998, 19336 }, - { 0x2999, 28237 }, - { 0x299A, 50868 }, - { 0x299B, 48857 }, - { 0x299C, 19317 }, - { 0x299D, 48861 }, - { 0x299E, 8610 }, - { 0x299F, 8605 }, - { 0x29A0, 60119 }, - { 0x29A1, 60115 }, - { 0x29A2, 33749 }, - { 0x29A3, 50241 }, - { 0x29A4, 8614 }, - { 0x29A5, 50243 }, - { 0x29A6, 38342 }, - { 0x29A7, 38346 }, - { 0x29A8, 48773 }, - { 0x29A9, 48761 }, - { 0x29AA, 48797 }, - { 0x29AB, 48785 }, - { 0x29AC, 48833 }, - { 0x29AD, 48809 }, - { 0x29AE, 48845 }, - { 0x29AF, 48821 }, - { 0x29B0, 50247 }, - { 0x29B1, 9047 }, - { 0x29B2, 9041 }, - { 0x29B3, 9035 }, - { 0x29B4, 9029 }, - { 0x29B5, 27530 }, - { 0x29B6, 35692 }, - { 0x29B7, 35687 }, - { 0x29B8, 35534 }, - { 0x29B9, 35851 }, - { 0x29BA, 27538 }, - { 0x29BB, 27534 }, - { 0x29BC, 35859 }, - { 0x29BD, 143 }, - { 0x29BE, 35264 }, - { 0x29BF, 35267 }, - { 0x29C0, 35842 }, - { 0x29C1, 35849 }, - { 0x29C2, 27508 }, - { 0x29C3, 27485 }, - { 0x29C4, 39051 }, - { 0x29C5, 39057 }, - { 0x29C6, 39061 }, - { 0x29C7, 39046 }, - { 0x29C8, 39055 }, - { 0x29C9, 7508 }, - { 0x29CA, 50675 }, - { 0x29CB, 50684 }, + { 0x298B, 9409 }, + { 0x298C, 21936 }, + { 0x298D, 9388 }, + { 0x298E, 21923 }, + { 0x298F, 9396 }, + { 0x2990, 21915 }, + { 0x2991, 9207 }, + { 0x2992, 21791 }, + { 0x2993, 9144 }, + { 0x2994, 21747 }, + { 0x2995, 31554 }, + { 0x2996, 31580 }, + { 0x2997, 9222 }, + { 0x2998, 21815 }, + { 0x2999, 31531 }, + { 0x299A, 56093 }, + { 0x299B, 53830 }, + { 0x299C, 21796 }, + { 0x299D, 53834 }, + { 0x299E, 10107 }, + { 0x299F, 10102 }, + { 0x29A0, 65821 }, + { 0x29A1, 65817 }, + { 0x29A2, 37674 }, + { 0x29A3, 55459 }, + { 0x29A4, 10111 }, + { 0x29A5, 55461 }, + { 0x29A6, 42843 }, + { 0x29A7, 42847 }, + { 0x29A8, 53746 }, + { 0x29A9, 53734 }, + { 0x29AA, 53770 }, + { 0x29AB, 53758 }, + { 0x29AC, 53806 }, + { 0x29AD, 53782 }, + { 0x29AE, 53818 }, + { 0x29AF, 53794 }, + { 0x29B0, 55465 }, + { 0x29B1, 10590 }, + { 0x29B2, 10584 }, + { 0x29B3, 10578 }, + { 0x29B4, 10572 }, + { 0x29B5, 30522 }, + { 0x29B6, 39617 }, + { 0x29B7, 39612 }, + { 0x29B8, 39459 }, + { 0x29B9, 39776 }, + { 0x29BA, 30530 }, + { 0x29BB, 30526 }, + { 0x29BC, 39784 }, + { 0x29BD, 333 }, + { 0x29BE, 39189 }, + { 0x29BF, 39192 }, + { 0x29C0, 39767 }, + { 0x29C1, 39774 }, + { 0x29C2, 30500 }, + { 0x29C3, 30477 }, + { 0x29C4, 43569 }, + { 0x29C5, 43575 }, + { 0x29C6, 43579 }, + { 0x29C7, 43564 }, + { 0x29C8, 43573 }, + { 0x29C9, 7778 }, + { 0x29CA, 55898 }, + { 0x29CB, 55907 }, { 0x29CC, 4 }, - { 0x29CD, 50679 }, - { 0x29CE, 19488 }, - { 0x29CF, 7970 }, - { 0x29D0, 50793 }, - { 0x29D1, 27451 }, - { 0x29D2, 27456 }, - { 0x29D3, 8713 }, - { 0x29D4, 20474 }, - { 0x29D5, 20479 }, - { 0x29D6, 20805 }, - { 0x29D7, 8776 }, - { 0x29D8, 7955 }, - { 0x29D9, 19473 }, - { 0x29DA, 7891 }, - { 0x29DB, 19409 }, - { 0x29DC, 61780 }, - { 0x29DD, 7456 }, - { 0x29DE, 48330 }, - { 0x29DF, 63212 }, - { 0x29E0, 32439 }, - { 0x29E1, 58768 }, - { 0x29E2, 38658 }, - { 0x29E3, 28414 }, - { 0x29E4, 28419 }, - { 0x29E5, 58759 }, - { 0x29E6, 28495 }, - { 0x29E7, 68836 }, - { 0x29E8, 68374 }, - { 0x29E9, 68380 }, - { 0x29EA, 8752 }, - { 0x29EB, 8764 }, - { 0x29EC, 20665 }, - { 0x29ED, 8727 }, - { 0x29EE, 63226 }, - { 0x29EF, 63217 }, - { 0x29F0, 63229 }, - { 0x29F1, 63220 }, - { 0x29F2, 63223 }, - { 0x29F3, 63214 }, - { 0x29F4, 68265 }, - { 0x29F5, 38488 }, - { 0x29F6, 39035 }, - { 0x29F7, 38483 }, - { 0x29F8, 4195 }, - { 0x29F9, 4192 }, - { 0x29FA, 28265 }, - { 0x29FB, 33689 }, - { 0x29FC, 68397 }, - { 0x29FD, 68879 }, - { 0x29FE, 8561 }, - { 0x29FF, 8110 }, - { 0x2A00, 18778 }, - { 0x2A01, 18782 }, - { 0x2A02, 18786 }, - { 0x2A03, 18756 }, - { 0x2A04, 18761 }, - { 0x2A05, 18774 }, - { 0x2A06, 18770 }, - { 0x2A07, 7515 }, - { 0x2A08, 7511 }, - { 0x2A09, 18751 }, - { 0x2A0A, 31860 }, - { 0x2A0B, 60159 }, - { 0x2A0C, 60061 }, - { 0x2A0D, 28474 }, - { 0x2A0E, 48343 }, - { 0x2A0F, 48367 }, - { 0x2A10, 62436 }, - { 0x2A11, 68292 }, - { 0x2A12, 8009 }, - { 0x2A13, 8016 }, - { 0x2A14, 8003 }, - { 0x2A15, 48362 }, - { 0x2A16, 62088 }, - { 0x2A17, 48353 }, - { 0x2A18, 48336 }, - { 0x2A19, 48359 }, - { 0x2A1A, 48340 }, - { 0x2A1B, 48347 }, - { 0x2A1C, 48350 }, - { 0x2A1D, 7671 }, - { 0x2A1E, 12692 }, + { 0x29CD, 55902 }, + { 0x29CE, 21974 }, + { 0x29CF, 9447 }, + { 0x29D0, 56016 }, + { 0x29D1, 30295 }, + { 0x29D2, 30300 }, + { 0x29D3, 10232 }, + { 0x29D4, 23043 }, + { 0x29D5, 23048 }, + { 0x29D6, 23406 }, + { 0x29D7, 10312 }, + { 0x29D8, 9428 }, + { 0x29D9, 21955 }, + { 0x29DA, 9361 }, + { 0x29DB, 21888 }, + { 0x29DC, 67665 }, + { 0x29DD, 7712 }, + { 0x29DE, 53301 }, + { 0x29DF, 69403 }, + { 0x29E0, 36275 }, + { 0x29E1, 64303 }, + { 0x29E2, 43172 }, + { 0x29E3, 31708 }, + { 0x29E4, 31713 }, + { 0x29E5, 64294 }, + { 0x29E6, 31794 }, + { 0x29E7, 75047 }, + { 0x29E8, 74585 }, + { 0x29E9, 74591 }, + { 0x29EA, 10277 }, + { 0x29EB, 10289 }, + { 0x29EC, 23248 }, + { 0x29ED, 10246 }, + { 0x29EE, 69417 }, + { 0x29EF, 69408 }, + { 0x29F0, 69420 }, + { 0x29F1, 69411 }, + { 0x29F2, 69414 }, + { 0x29F3, 69405 }, + { 0x29F4, 74476 }, + { 0x29F5, 43001 }, + { 0x29F6, 43549 }, + { 0x29F7, 42996 }, + { 0x29F8, 4385 }, + { 0x29F9, 4382 }, + { 0x29FA, 31559 }, + { 0x29FB, 37614 }, + { 0x29FC, 74608 }, + { 0x29FD, 75090 }, + { 0x29FE, 10053 }, + { 0x29FF, 9598 }, + { 0x2A00, 21242 }, + { 0x2A01, 21246 }, + { 0x2A02, 21250 }, + { 0x2A03, 21220 }, + { 0x2A04, 21225 }, + { 0x2A05, 21238 }, + { 0x2A06, 21234 }, + { 0x2A07, 7785 }, + { 0x2A08, 7781 }, + { 0x2A09, 21215 }, + { 0x2A0A, 35573 }, + { 0x2A0B, 65861 }, + { 0x2A0C, 65763 }, + { 0x2A0D, 31773 }, + { 0x2A0E, 53314 }, + { 0x2A0F, 53338 }, + { 0x2A10, 68611 }, + { 0x2A11, 74503 }, + { 0x2A12, 9491 }, + { 0x2A13, 9498 }, + { 0x2A14, 9485 }, + { 0x2A15, 53333 }, + { 0x2A16, 67973 }, + { 0x2A17, 53324 }, + { 0x2A18, 53307 }, + { 0x2A19, 53330 }, + { 0x2A1A, 53311 }, + { 0x2A1B, 53318 }, + { 0x2A1C, 53321 }, + { 0x2A1D, 9130 }, + { 0x2A1E, 14460 }, { 0x2A1F, 59 }, { 0x2A20, 51 }, { 0x2A21, 55 }, - { 0x2A22, 8171 }, - { 0x2A23, 8192 }, - { 0x2A24, 8177 }, - { 0x2A25, 8161 }, - { 0x2A26, 8182 }, - { 0x2A27, 8187 }, - { 0x2A28, 8166 }, - { 0x2A29, 18725 }, - { 0x2A2A, 18720 }, - { 0x2A2B, 18735 }, - { 0x2A2C, 18730 }, - { 0x2A2D, 8145 }, - { 0x2A2E, 8151 }, - { 0x2A2F, 33781 }, - { 0x2A30, 68867 }, - { 0x2A31, 68872 }, - { 0x2A32, 62414 }, - { 0x2A33, 20121 }, - { 0x2A34, 68846 }, - { 0x2A35, 68852 }, - { 0x2A36, 35853 }, - { 0x2A37, 68858 }, - { 0x2A38, 35540 }, - { 0x2A39, 8157 }, - { 0x2A3A, 18716 }, - { 0x2A3B, 68863 }, - { 0x2A3C, 48373 }, - { 0x2A3D, 60108 }, + { 0x2A22, 9661 }, + { 0x2A23, 9682 }, + { 0x2A24, 9667 }, + { 0x2A25, 9651 }, + { 0x2A26, 9672 }, + { 0x2A27, 9677 }, + { 0x2A28, 9656 }, + { 0x2A29, 21189 }, + { 0x2A2A, 21184 }, + { 0x2A2B, 21199 }, + { 0x2A2C, 21194 }, + { 0x2A2D, 9635 }, + { 0x2A2E, 9641 }, + { 0x2A2F, 37706 }, + { 0x2A30, 75078 }, + { 0x2A31, 75083 }, + { 0x2A32, 68589 }, + { 0x2A33, 22668 }, + { 0x2A34, 75057 }, + { 0x2A35, 75063 }, + { 0x2A36, 39778 }, + { 0x2A37, 75069 }, + { 0x2A38, 39465 }, + { 0x2A39, 9647 }, + { 0x2A3A, 21180 }, + { 0x2A3B, 75074 }, + { 0x2A3C, 53344 }, + { 0x2A3D, 65810 }, { 0x2A3E, 63 }, - { 0x2A3F, 63163 }, - { 0x2A40, 63380 }, - { 0x2A41, 20490 }, - { 0x2A42, 20498 }, - { 0x2A43, 63387 }, - { 0x2A44, 63383 }, - { 0x2A45, 20494 }, - { 0x2A46, 20506 }, - { 0x2A47, 63395 }, - { 0x2A48, 20501 }, - { 0x2A49, 63390 }, - { 0x2A4A, 20509 }, - { 0x2A4B, 63398 }, - { 0x2A4C, 27550 }, - { 0x2A4D, 27575 }, - { 0x2A4E, 28309 }, - { 0x2A4F, 28306 }, - { 0x2A50, 27554 }, - { 0x2A51, 37036 }, - { 0x2A52, 37004 }, - { 0x2A53, 28361 }, - { 0x2A54, 28358 }, - { 0x2A55, 7531 }, - { 0x2A56, 7527 }, - { 0x2A57, 39020 }, - { 0x2A58, 39023 }, - { 0x2A59, 37029 }, - { 0x2A5A, 37051 }, - { 0x2A5B, 37019 }, - { 0x2A5C, 37060 }, - { 0x2A5D, 37024 }, - { 0x2A5E, 37041 }, - { 0x2A5F, 37056 }, - { 0x2A60, 37046 }, - { 0x2A61, 19936 }, - { 0x2A62, 37009 }, - { 0x2A63, 37014 }, + { 0x2A3F, 69339 }, + { 0x2A40, 69571 }, + { 0x2A41, 23059 }, + { 0x2A42, 23067 }, + { 0x2A43, 69578 }, + { 0x2A44, 69574 }, + { 0x2A45, 23063 }, + { 0x2A46, 23075 }, + { 0x2A47, 69586 }, + { 0x2A48, 23070 }, + { 0x2A49, 69581 }, + { 0x2A4A, 23078 }, + { 0x2A4B, 69589 }, + { 0x2A4C, 30542 }, + { 0x2A4D, 30567 }, + { 0x2A4E, 31603 }, + { 0x2A4F, 31600 }, + { 0x2A50, 30546 }, + { 0x2A51, 40961 }, + { 0x2A52, 40929 }, + { 0x2A53, 31655 }, + { 0x2A54, 31652 }, + { 0x2A55, 7801 }, + { 0x2A56, 7797 }, + { 0x2A57, 43534 }, + { 0x2A58, 43537 }, + { 0x2A59, 40954 }, + { 0x2A5A, 40976 }, + { 0x2A5B, 40944 }, + { 0x2A5C, 40985 }, + { 0x2A5D, 40949 }, + { 0x2A5E, 40966 }, + { 0x2A5F, 40981 }, + { 0x2A60, 40971 }, + { 0x2A61, 22483 }, + { 0x2A62, 40934 }, + { 0x2A63, 40939 }, { 0x2A64, 47 }, { 0x2A65, 33 }, - { 0x2A66, 28427 }, - { 0x2A67, 58764 }, - { 0x2A68, 33730 }, - { 0x2A69, 33737 }, - { 0x2A6A, 20459 }, - { 0x2A6B, 20464 }, - { 0x2A6C, 38678 }, - { 0x2A6D, 52810 }, - { 0x2A6E, 28462 }, - { 0x2A6F, 21088 }, - { 0x2A70, 68300 }, - { 0x2A71, 28447 }, - { 0x2A72, 8198 }, - { 0x2A73, 28452 }, - { 0x2A74, 28273 }, - { 0x2A75, 7523 }, - { 0x2A76, 20446 }, - { 0x2A77, 28432 }, - { 0x2A78, 61343 }, - { 0x2A79, 59103 }, - { 0x2A7A, 63311 }, - { 0x2A7B, 59107 }, - { 0x2A7C, 63315 }, - { 0x2A7D, 59034 }, - { 0x2A7E, 63242 }, - { 0x2A7F, 59056 }, - { 0x2A80, 63264 }, - { 0x2A81, 59039 }, - { 0x2A82, 63247 }, - { 0x2A83, 59047 }, - { 0x2A84, 63255 }, - { 0x2A85, 59068 }, - { 0x2A86, 63279 }, - { 0x2A87, 59078 }, - { 0x2A88, 63286 }, - { 0x2A89, 59074 }, - { 0x2A8A, 63282 }, - { 0x2A8B, 59135 }, - { 0x2A8C, 63349 }, - { 0x2A8D, 59112 }, - { 0x2A8E, 63320 }, - { 0x2A8F, 59117 }, - { 0x2A90, 63325 }, - { 0x2A91, 59141 }, - { 0x2A92, 63339 }, - { 0x2A93, 59122 }, - { 0x2A94, 63330 }, - { 0x2A95, 38994 }, - { 0x2A96, 39007 }, - { 0x2A97, 38999 }, - { 0x2A98, 39012 }, - { 0x2A99, 62445 }, - { 0x2A9A, 62450 }, - { 0x2A9B, 62455 }, - { 0x2A9C, 62461 }, - { 0x2A9D, 38660 }, - { 0x2A9E, 38663 }, - { 0x2A9F, 38666 }, - { 0x2AA0, 38672 }, - { 0x2AA1, 28295 }, - { 0x2AA2, 28303 }, - { 0x2AA3, 28298 }, - { 0x2AA4, 63374 }, - { 0x2AA5, 63360 }, - { 0x2AA6, 59152 }, - { 0x2AA7, 63363 }, - { 0x2AA8, 59156 }, - { 0x2AA9, 63367 }, - { 0x2AAA, 39026 }, - { 0x2AAB, 30797 }, - { 0x2AAC, 39028 }, - { 0x2AAD, 30799 }, - { 0x2AAE, 28442 }, - { 0x2AAF, 50157 }, - { 0x2AB0, 50345 }, - { 0x2AB1, 50151 }, - { 0x2AB2, 50339 }, - { 0x2AB3, 50147 }, - { 0x2AB4, 50335 }, - { 0x2AB5, 50131 }, - { 0x2AB6, 50319 }, - { 0x2AB7, 50142 }, - { 0x2AB8, 50330 }, - { 0x2AB9, 50136 }, - { 0x2ABA, 50324 }, - { 0x2ABB, 28372 }, - { 0x2ABC, 28377 }, - { 0x2ABD, 32676 }, - { 0x2ABE, 50396 }, - { 0x2ABF, 32679 }, - { 0x2AC0, 50399 }, - { 0x2AC1, 32684 }, - { 0x2AC2, 50404 }, - { 0x2AC3, 32640 }, - { 0x2AC4, 50360 }, - { 0x2AC5, 32671 }, - { 0x2AC6, 50391 }, - { 0x2AC7, 32660 }, - { 0x2AC8, 50380 }, - { 0x2AC9, 32665 }, - { 0x2ACA, 50385 }, - { 0x2ACB, 32654 }, - { 0x2ACC, 50374 }, - { 0x2ACD, 32341 }, - { 0x2ACE, 32510 }, - { 0x2ACF, 27561 }, - { 0x2AD0, 27568 }, - { 0x2AD1, 27563 }, - { 0x2AD2, 27570 }, - { 0x2AD3, 32692 }, - { 0x2AD4, 50409 }, - { 0x2AD5, 32689 }, - { 0x2AD6, 50412 }, - { 0x2AD7, 50427 }, - { 0x2AD8, 50419 }, - { 0x2AD9, 36616 }, - { 0x2ADA, 60055 }, - { 0x2ADB, 63148 }, - { 0x2ADC, 36632 }, - { 0x2ADD, 61994 }, - { 0x2ADE, 19920 }, - { 0x2ADF, 19912 }, - { 0x2AE0, 19897 }, - { 0x2AE1, 68827 }, - { 0x2AE2, 50803 }, - { 0x2AE3, 28381 }, - { 0x2AE4, 50798 }, - { 0x2AE5, 28386 }, - { 0x2AE6, 8025 }, - { 0x2AE7, 19915 }, - { 0x2AE8, 19900 }, - { 0x2AE9, 19905 }, - { 0x2AEA, 28257 }, - { 0x2AEB, 28251 }, - { 0x2AEC, 28312 }, - { 0x2AED, 50265 }, - { 0x2AEE, 7570 }, - { 0x2AEF, 50845 }, - { 0x2AF0, 50850 }, - { 0x2AF1, 7619 }, - { 0x2AF2, 49929 }, - { 0x2AF3, 49925 }, - { 0x2AF4, 33721 }, - { 0x2AF5, 33710 }, - { 0x2AF6, 33691 }, - { 0x2AF7, 33698 }, - { 0x2AF8, 33701 }, - { 0x2AF9, 62467 }, - { 0x2AFA, 62473 }, - { 0x2AFB, 33704 }, - { 0x2AFC, 12698 }, - { 0x2AFD, 28367 }, - { 0x2AFE, 20799 }, - { 0x2AFF, 18766 }, - { 0x2B00, 18846 }, - { 0x2B01, 18897 }, - { 0x2B02, 20158 }, - { 0x2B03, 20185 }, - { 0x2B04, 7819 }, - { 0x2B05, 58885 }, - { 0x2B06, 40026 }, - { 0x2B07, 57757 }, - { 0x2B08, 18842 }, - { 0x2B09, 18893 }, - { 0x2B0A, 20154 }, - { 0x2B0B, 20181 }, - { 0x2B0C, 7815 }, - { 0x2B0D, 121 }, - { 0x2B0E, 62139 }, - { 0x2B0F, 62134 }, - { 0x2B10, 58829 }, - { 0x2B11, 58824 }, - { 0x2B12, 32366 }, - { 0x2B13, 32425 }, - { 0x2B14, 32418 }, - { 0x2B15, 32376 }, - { 0x2B16, 36387 }, - { 0x2B17, 36392 }, - { 0x2B18, 36382 }, - { 0x2B19, 36397 }, - { 0x2B1A, 28243 }, - { 0x2B20, 20789 }, - { 0x2B21, 20779 }, - { 0x2B22, 8762 }, - { 0x2B23, 61773 }, - { 0x2C00, 61565 }, - { 0x2C01, 61594 }, - { 0x2C02, 61618 }, - { 0x2C03, 61694 }, - { 0x2C04, 61634 }, - { 0x2C05, 61670 }, - { 0x2C06, 61736 }, - { 0x2C07, 61638 }, - { 0x2C08, 61690 }, - { 0x2C09, 61606 }, - { 0x2C0A, 61698 }, - { 0x2C0B, 61549 }, - { 0x2C0C, 61678 }, - { 0x2C0D, 61610 }, - { 0x2C0E, 61719 }, - { 0x2C0F, 61723 }, - { 0x2C10, 61646 }, - { 0x2C11, 61574 }, - { 0x2C12, 61682 }, - { 0x2C13, 61650 }, - { 0x2C14, 61654 }, - { 0x2C15, 61686 }, - { 0x2C16, 61590 }, - { 0x2C17, 61642 }, - { 0x2C18, 61602 }, - { 0x2C19, 61578 }, - { 0x2C1A, 61553 }, - { 0x2C1B, 61614 }, - { 0x2C1C, 61586 }, - { 0x2C1D, 61674 }, - { 0x2C1E, 61582 }, - { 0x2C1F, 61630 }, - { 0x2C20, 61626 }, - { 0x2C21, 61622 }, - { 0x2C22, 61731 }, - { 0x2C23, 61561 }, - { 0x2C24, 61658 }, - { 0x2C25, 61663 }, - { 0x2C26, 61557 }, - { 0x2C27, 61709 }, - { 0x2C28, 61569 }, - { 0x2C29, 61703 }, - { 0x2C2A, 61598 }, - { 0x2C2B, 61715 }, - { 0x2C2C, 61727 }, - { 0x2C2D, 61745 }, - { 0x2C2E, 61740 }, - { 0x2C30, 61364 }, - { 0x2C31, 61393 }, - { 0x2C32, 61417 }, - { 0x2C33, 61493 }, - { 0x2C34, 61433 }, - { 0x2C35, 61469 }, - { 0x2C36, 61535 }, - { 0x2C37, 61437 }, - { 0x2C38, 61489 }, - { 0x2C39, 61405 }, - { 0x2C3A, 61497 }, - { 0x2C3B, 61348 }, - { 0x2C3C, 61477 }, - { 0x2C3D, 61409 }, - { 0x2C3E, 61518 }, - { 0x2C3F, 61522 }, - { 0x2C40, 61445 }, - { 0x2C41, 61373 }, - { 0x2C42, 61481 }, - { 0x2C43, 61449 }, - { 0x2C44, 61453 }, - { 0x2C45, 61485 }, - { 0x2C46, 61389 }, - { 0x2C47, 61441 }, - { 0x2C48, 61401 }, - { 0x2C49, 61377 }, - { 0x2C4A, 61352 }, - { 0x2C4B, 61413 }, - { 0x2C4C, 61385 }, - { 0x2C4D, 61473 }, - { 0x2C4E, 61381 }, - { 0x2C4F, 61429 }, - { 0x2C50, 61425 }, - { 0x2C51, 61421 }, - { 0x2C52, 61530 }, - { 0x2C53, 61360 }, - { 0x2C54, 61457 }, - { 0x2C55, 61462 }, - { 0x2C56, 61356 }, - { 0x2C57, 61508 }, - { 0x2C58, 61368 }, - { 0x2C59, 61502 }, - { 0x2C5A, 61397 }, - { 0x2C5B, 61514 }, - { 0x2C5C, 61526 }, - { 0x2C5D, 61544 }, - { 0x2C5E, 61539 }, - { 0x2C60, 17048 }, - { 0x2C61, 13774 }, - { 0x2C62, 17062 }, - { 0x2C63, 17496 }, - { 0x2C64, 17540 }, - { 0x2C65, 12861 }, - { 0x2C66, 14606 }, - { 0x2C67, 16799 }, - { 0x2C68, 13502 }, - { 0x2C69, 16989 }, - { 0x2C6A, 13711 }, - { 0x2C6B, 18164 }, - { 0x2C6C, 15127 }, - { 0x2C74, 14873 }, - { 0x2C75, 18245 }, - { 0x2C76, 15336 }, - { 0x2C77, 15762 }, - { 0x2C80, 28052 }, - { 0x2C81, 27759 }, - { 0x2C82, 28080 }, - { 0x2C83, 27787 }, - { 0x2C84, 28092 }, - { 0x2C85, 27799 }, - { 0x2C86, 28088 }, - { 0x2C87, 27795 }, - { 0x2C88, 27930 }, - { 0x2C89, 27637 }, - { 0x2C8A, 28044 }, - { 0x2C8B, 27751 }, - { 0x2C8C, 28084 }, - { 0x2C8D, 27791 }, - { 0x2C8E, 28056 }, - { 0x2C8F, 27763 }, - { 0x2C90, 28116 }, - { 0x2C91, 27823 }, - { 0x2C92, 28096 }, - { 0x2C93, 27803 }, - { 0x2C94, 28064 }, - { 0x2C95, 27771 }, - { 0x2C96, 28100 }, - { 0x2C97, 27807 }, - { 0x2C98, 27906 }, - { 0x2C99, 27613 }, - { 0x2C9A, 27910 }, - { 0x2C9B, 27617 }, - { 0x2C9C, 27942 }, - { 0x2C9D, 27649 }, - { 0x2C9E, 27898 }, - { 0x2C9F, 27605 }, - { 0x2CA0, 27914 }, - { 0x2CA1, 27621 }, - { 0x2CA2, 27918 }, - { 0x2CA3, 27625 }, - { 0x2CA4, 28076 }, - { 0x2CA5, 27783 }, - { 0x2CA6, 28048 }, - { 0x2CA7, 27755 }, - { 0x2CA8, 27922 }, - { 0x2CA9, 27629 }, - { 0x2CAA, 27902 }, - { 0x2CAB, 27609 }, - { 0x2CAC, 27938 }, - { 0x2CAD, 27645 }, - { 0x2CAE, 28040 }, - { 0x2CAF, 27747 }, - { 0x2CB0, 28036 }, - { 0x2CB1, 27743 }, - { 0x2CB2, 28140 }, - { 0x2CB3, 27847 }, - { 0x2CB4, 27952 }, - { 0x2CB5, 27659 }, - { 0x2CB6, 28160 }, - { 0x2CB7, 27867 }, - { 0x2CB8, 28150 }, - { 0x2CB9, 27857 }, - { 0x2CBA, 28135 }, - { 0x2CBB, 27842 }, - { 0x2CBC, 28155 }, - { 0x2CBD, 27862 }, - { 0x2CBE, 27982 }, - { 0x2CBF, 27689 }, - { 0x2CC0, 28104 }, - { 0x2CC1, 27811 }, - { 0x2CC2, 28120 }, - { 0x2CC3, 27827 }, - { 0x2CC4, 27994 }, - { 0x2CC5, 27701 }, - { 0x2CC6, 27964 }, - { 0x2CC7, 27671 }, - { 0x2CC8, 28125 }, - { 0x2CC9, 27832 }, - { 0x2CCA, 28145 }, - { 0x2CCB, 27852 }, - { 0x2CCC, 27988 }, - { 0x2CCD, 27695 }, - { 0x2CCE, 27946 }, - { 0x2CCF, 27653 }, - { 0x2CD0, 28130 }, - { 0x2CD1, 27837 }, - { 0x2CD2, 27976 }, - { 0x2CD3, 27683 }, - { 0x2CD4, 27970 }, - { 0x2CD5, 27677 }, - { 0x2CD6, 28006 }, - { 0x2CD7, 27713 }, - { 0x2CD8, 27958 }, - { 0x2CD9, 27665 }, - { 0x2CDA, 28000 }, - { 0x2CDB, 27707 }, - { 0x2CDC, 28030 }, - { 0x2CDD, 27737 }, - { 0x2CDE, 28012 }, - { 0x2CDF, 27719 }, - { 0x2CE0, 28018 }, - { 0x2CE1, 27725 }, - { 0x2CE2, 28024 }, - { 0x2CE3, 27731 }, - { 0x2CE4, 27880 }, - { 0x2CE5, 27872 }, - { 0x2CE6, 27876 }, - { 0x2CE7, 27895 }, - { 0x2CE8, 27887 }, - { 0x2CE9, 27883 }, - { 0x2CEA, 27891 }, - { 0x2CF9, 27580 }, - { 0x2CFA, 27590 }, - { 0x2CFB, 27596 }, - { 0x2CFC, 27585 }, - { 0x2CFD, 28165 }, - { 0x2CFE, 27602 }, - { 0x2CFF, 28169 }, - { 0x2D00, 46821 }, - { 0x2D01, 46849 }, - { 0x2D02, 46865 }, - { 0x2D03, 46861 }, - { 0x2D04, 46825 }, - { 0x2D05, 46929 }, - { 0x2D06, 46937 }, - { 0x2D07, 46921 }, - { 0x2D08, 46833 }, - { 0x2D09, 46889 }, - { 0x2D0A, 46893 }, - { 0x2D0B, 46897 }, - { 0x2D0C, 46901 }, - { 0x2D0D, 46837 }, - { 0x2D0E, 46905 }, - { 0x2D0F, 46969 }, - { 0x2D10, 46913 }, - { 0x2D11, 46917 }, - { 0x2D12, 46925 }, - { 0x2D13, 46841 }, - { 0x2D14, 46961 }, - { 0x2D15, 46957 }, - { 0x2D16, 46949 }, - { 0x2D17, 46909 }, - { 0x2D18, 46965 }, - { 0x2D19, 46945 }, - { 0x2D1A, 46853 }, - { 0x2D1B, 46885 }, - { 0x2D1C, 46857 }, - { 0x2D1D, 46941 }, - { 0x2D1E, 46933 }, - { 0x2D1F, 46953 }, - { 0x2D20, 46869 }, - { 0x2D21, 46829 }, - { 0x2D22, 46877 }, - { 0x2D23, 46845 }, - { 0x2D24, 46873 }, - { 0x2D25, 46881 }, - { 0x2D30, 50490 }, - { 0x2D31, 50502 }, - { 0x2D32, 50566 }, - { 0x2D33, 50511 }, - { 0x2D34, 50611 }, - { 0x2D35, 50622 }, - { 0x2D36, 50517 }, - { 0x2D37, 50505 }, - { 0x2D38, 50575 }, - { 0x2D39, 50572 }, - { 0x2D3A, 50608 }, - { 0x2D3B, 50559 }, - { 0x2D3C, 50508 }, - { 0x2D3D, 50520 }, - { 0x2D3E, 50631 }, - { 0x2D3F, 50614 }, - { 0x2D40, 50514 }, - { 0x2D41, 50617 }, - { 0x2D42, 50627 }, - { 0x2D43, 50581 }, - { 0x2D44, 50499 }, - { 0x2D45, 50584 }, - { 0x2D46, 50647 }, - { 0x2D47, 50535 }, - { 0x2D48, 50635 }, - { 0x2D49, 50493 }, - { 0x2D4A, 50602 }, - { 0x2D4B, 50659 }, - { 0x2D4C, 50655 }, - { 0x2D4D, 50523 }, - { 0x2D4E, 50526 }, - { 0x2D4F, 50529 }, - { 0x2D50, 50643 }, - { 0x2D51, 50651 }, - { 0x2D52, 50532 }, - { 0x2D53, 50496 }, - { 0x2D54, 50538 }, - { 0x2D55, 50587 }, - { 0x2D56, 50578 }, - { 0x2D57, 50639 }, - { 0x2D58, 50562 }, - { 0x2D59, 50541 }, - { 0x2D5A, 50593 }, - { 0x2D5B, 50590 }, - { 0x2D5C, 50544 }, - { 0x2D5D, 50596 }, - { 0x2D5E, 50569 }, - { 0x2D5F, 50599 }, - { 0x2D60, 50547 }, - { 0x2D61, 50550 }, - { 0x2D62, 50553 }, - { 0x2D63, 50556 }, - { 0x2D64, 50663 }, - { 0x2D65, 50605 }, - { 0x2D6F, 50667 }, - { 0x2D80, 46034 }, - { 0x2D81, 46046 }, - { 0x2D82, 46175 }, - { 0x2D83, 46205 }, - { 0x2D84, 46577 }, - { 0x2D85, 45797 }, - { 0x2D86, 46262 }, - { 0x2D87, 45845 }, - { 0x2D88, 46067 }, - { 0x2D89, 46523 }, - { 0x2D8A, 46707 }, - { 0x2D8B, 46379 }, - { 0x2D8C, 45872 }, - { 0x2D8D, 46442 }, - { 0x2D8E, 45974 }, - { 0x2D8F, 46604 }, - { 0x2D90, 46430 }, - { 0x2D91, 46535 }, - { 0x2D92, 46109 }, - { 0x2D93, 46457 }, - { 0x2D94, 46463 }, - { 0x2D95, 46664 }, - { 0x2D96, 46460 }, - { 0x2DA0, 46208 }, - { 0x2DA1, 46220 }, - { 0x2DA2, 46214 }, - { 0x2DA3, 46583 }, - { 0x2DA4, 46586 }, - { 0x2DA5, 46211 }, - { 0x2DA6, 46217 }, - { 0x2DA8, 45812 }, - { 0x2DA9, 45824 }, - { 0x2DAA, 45818 }, - { 0x2DAB, 46403 }, - { 0x2DAC, 46406 }, - { 0x2DAD, 45815 }, - { 0x2DAE, 45821 }, - { 0x2DB0, 46385 }, - { 0x2DB1, 46397 }, - { 0x2DB2, 46391 }, - { 0x2DB3, 46649 }, - { 0x2DB4, 46652 }, - { 0x2DB5, 46388 }, - { 0x2DB6, 46394 }, - { 0x2DB8, 46409 }, - { 0x2DB9, 46421 }, - { 0x2DBA, 46415 }, - { 0x2DBB, 46655 }, - { 0x2DBC, 46658 }, - { 0x2DBD, 46412 }, - { 0x2DBE, 46418 }, - { 0x2DC0, 46154 }, - { 0x2DC1, 46166 }, - { 0x2DC2, 46160 }, - { 0x2DC3, 46565 }, - { 0x2DC4, 46568 }, - { 0x2DC5, 46157 }, - { 0x2DC6, 46163 }, - { 0x2DC8, 46013 }, - { 0x2DC9, 46025 }, - { 0x2DCA, 46019 }, - { 0x2DCB, 46508 }, - { 0x2DCC, 46511 }, - { 0x2DCD, 46016 }, - { 0x2DCE, 46022 }, - { 0x2DD0, 46334 }, - { 0x2DD1, 46346 }, - { 0x2DD2, 46340 }, - { 0x2DD3, 46634 }, - { 0x2DD4, 46637 }, - { 0x2DD5, 46337 }, - { 0x2DD6, 46343 }, - { 0x2DD8, 45929 }, - { 0x2DD9, 45941 }, - { 0x2DDA, 45935 }, - { 0x2DDB, 46472 }, - { 0x2DDC, 46475 }, - { 0x2DDD, 45932 }, - { 0x2DDE, 45938 }, - { 0x2E00, 19322 }, - { 0x2E01, 19304 }, - { 0x2E02, 7995 }, - { 0x2E03, 19513 }, - { 0x2E04, 7883 }, - { 0x2E05, 19395 }, - { 0x2E06, 31958 }, - { 0x2E07, 31952 }, - { 0x2E08, 28245 }, - { 0x2E09, 7998 }, - { 0x2E0A, 19516 }, - { 0x2E0B, 31956 }, - { 0x2E0C, 7904 }, - { 0x2E0D, 19422 }, - { 0x2E0E, 57843 }, - { 0x2E0F, 63093 }, - { 0x2E10, 28484 }, - { 0x2E11, 50270 }, - { 0x2E12, 63378 }, - { 0x2E13, 28241 }, - { 0x2E14, 57763 }, - { 0x2E15, 40068 }, - { 0x2E16, 28248 }, - { 0x2E17, 28364 }, - { 0x2E1C, 7688 }, - { 0x2E1D, 19272 }, - { 0x2E80, 5353 }, - { 0x2E81, 5260 }, - { 0x2E82, 5356 }, - { 0x2E83, 5360 }, - { 0x2E84, 5364 }, - { 0x2E85, 5350 }, - { 0x2E86, 5096 }, - { 0x2E87, 5327 }, - { 0x2E88, 5289 }, - { 0x2E89, 5293 }, - { 0x2E8A, 5388 }, - { 0x2E8B, 5227 }, - { 0x2E8C, 5308 }, - { 0x2E8D, 5312 }, - { 0x2E8E, 5191 }, - { 0x2E8F, 5195 }, - { 0x2E90, 5203 }, - { 0x2E91, 5199 }, - { 0x2E92, 5316 }, - { 0x2E93, 5376 }, - { 0x2E94, 5319 }, - { 0x2E95, 5323 }, - { 0x2E96, 5281 }, - { 0x2E97, 5285 }, - { 0x2E98, 5179 }, - { 0x2E99, 5153 }, - { 0x2E9B, 5257 }, - { 0x2E9C, 5156 }, - { 0x2E9D, 5221 }, - { 0x2E9E, 5263 }, - { 0x2E9F, 5347 }, - { 0x2EA0, 5385 }, - { 0x2EA1, 5333 }, - { 0x2EA2, 5337 }, - { 0x2EA3, 5173 }, - { 0x2EA4, 5142 }, - { 0x2EA5, 5146 }, - { 0x2EA6, 5391 }, - { 0x2EA7, 5099 }, - { 0x2EA8, 5102 }, - { 0x2EA9, 5188 }, - { 0x2EAA, 5162 }, - { 0x2EAB, 5120 }, - { 0x2EAC, 5368 }, - { 0x2EAD, 5372 }, - { 0x2EAE, 5341 }, - { 0x2EAF, 5230 }, - { 0x2EB0, 5465 }, - { 0x2EB1, 5123 }, - { 0x2EB2, 5127 }, - { 0x2EB3, 5135 }, - { 0x2EB4, 5131 }, - { 0x2EB5, 5218 }, - { 0x2EB6, 5305 }, - { 0x2EB7, 5150 }, - { 0x2EB8, 5117 }, - { 0x2EB9, 5139 }, - { 0x2EBA, 5249 }, - { 0x2EBB, 5253 }, - { 0x2EBC, 5215 }, - { 0x2EBD, 5344 }, - { 0x2EBE, 5269 }, - { 0x2EBF, 5273 }, - { 0x2EC0, 5277 }, - { 0x2EC1, 5330 }, - { 0x2EC2, 5382 }, - { 0x2EC3, 5241 }, - { 0x2EC4, 5245 }, - { 0x2EC5, 5421 }, - { 0x2EC6, 5397 }, - { 0x2EC7, 5185 }, - { 0x2EC8, 5489 }, - { 0x2EC9, 5477 }, - { 0x2ECA, 5176 }, - { 0x2ECB, 5429 }, - { 0x2ECC, 5401 }, - { 0x2ECD, 5233 }, - { 0x2ECE, 5237 }, - { 0x2ECF, 5170 }, - { 0x2ED0, 5449 }, - { 0x2ED1, 5207 }, - { 0x2ED2, 5211 }, - { 0x2ED3, 5457 }, - { 0x2ED4, 5445 }, - { 0x2ED5, 5297 }, - { 0x2ED6, 5301 }, - { 0x2ED7, 5224 }, - { 0x2ED8, 5159 }, - { 0x2ED9, 5493 }, - { 0x2EDA, 5453 }, - { 0x2EDB, 5469 }, - { 0x2EDC, 5417 }, - { 0x2EDD, 5105 }, - { 0x2EDE, 5109 }, - { 0x2EDF, 5113 }, - { 0x2EE0, 5413 }, - { 0x2EE1, 5182 }, - { 0x2EE2, 5473 }, - { 0x2EE3, 5167 }, - { 0x2EE4, 5266 }, - { 0x2EE5, 5437 }, - { 0x2EE6, 5425 }, - { 0x2EE7, 5461 }, - { 0x2EE8, 5405 }, - { 0x2EE9, 5409 }, - { 0x2EEA, 5441 }, - { 0x2EEB, 5502 }, - { 0x2EEC, 5433 }, - { 0x2EED, 5506 }, - { 0x2EEE, 5481 }, - { 0x2EEF, 5510 }, - { 0x2EF0, 5485 }, - { 0x2EF1, 5379 }, - { 0x2EF2, 5514 }, - { 0x2EF3, 5498 }, - { 0x2F00, 30199 }, - { 0x2F01, 30367 }, - { 0x2F02, 30157 }, - { 0x2F03, 30558 }, - { 0x2F04, 30679 }, - { 0x2F05, 30337 }, - { 0x2F06, 30229 }, - { 0x2F07, 30184 }, - { 0x2F08, 30187 }, - { 0x2F09, 30361 }, - { 0x2F0A, 30490 }, - { 0x2F0B, 30487 }, - { 0x2F0C, 30286 }, - { 0x2F0D, 30478 }, - { 0x2F0E, 30178 }, - { 0x2F0F, 30594 }, - { 0x2F10, 30386 }, - { 0x2F11, 30517 }, - { 0x2F12, 30529 }, - { 0x2F13, 30451 }, - { 0x2F14, 30579 }, - { 0x2F15, 30532 }, - { 0x2F16, 30660 }, - { 0x2F17, 30226 }, - { 0x2F18, 30779 }, - { 0x2F19, 30405 }, - { 0x2F1A, 30472 }, - { 0x2F1B, 30746 }, - { 0x2F1C, 30454 }, - { 0x2F1D, 30526 }, - { 0x2F1E, 30776 }, - { 0x2F1F, 30484 }, - { 0x2F20, 30749 }, - { 0x2F21, 30132 }, - { 0x2F22, 30135 }, - { 0x2F23, 30728 }, - { 0x2F24, 30145 }, - { 0x2F25, 30615 }, - { 0x2F26, 30469 }, - { 0x2F27, 30399 }, - { 0x2F28, 30343 }, - { 0x2F29, 30567 }, - { 0x2F2A, 30352 }, - { 0x2F2B, 30636 }, - { 0x2F2C, 30688 }, - { 0x2F2D, 30764 }, - { 0x2F2E, 30537 }, - { 0x2F2F, 30448 }, - { 0x2F30, 30743 }, - { 0x2F31, 30704 }, - { 0x2F32, 30160 }, - { 0x2F33, 30554 }, - { 0x2F34, 30646 }, - { 0x2F35, 30373 }, - { 0x2F36, 30232 }, - { 0x2F37, 30546 }, - { 0x2F38, 30148 }, - { 0x2F39, 30570 }, - { 0x2F3A, 30719 }, - { 0x2F3B, 30417 }, - { 0x2F3C, 30511 }, - { 0x2F3D, 30734 }, - { 0x2F3E, 30283 }, - { 0x2F3F, 30328 }, - { 0x2F40, 30633 }, - { 0x2F41, 30205 }, - { 0x2F42, 30676 }, - { 0x2F43, 30639 }, - { 0x2F44, 30142 }, - { 0x2F45, 30691 }, - { 0x2F46, 30193 }, - { 0x2F47, 30223 }, - { 0x2F48, 30217 }, - { 0x2F49, 30380 }, - { 0x2F4A, 30429 }, - { 0x2F4B, 30349 }, - { 0x2F4C, 30420 }, - { 0x2F4D, 30481 }, - { 0x2F4E, 30713 }, - { 0x2F4F, 30128 }, - { 0x2F50, 30725 }, - { 0x2F51, 30175 }, - { 0x2F52, 30271 }, - { 0x2F53, 30585 }, - { 0x2F54, 30606 }, - { 0x2F55, 30302 }, - { 0x2F56, 30274 }, - { 0x2F57, 30657 }, - { 0x2F58, 30650 }, - { 0x2F59, 30323 }, - { 0x2F5A, 30564 }, - { 0x2F5B, 30299 }, - { 0x2F5C, 30151 }, - { 0x2F5D, 30154 }, - { 0x2F5E, 30767 }, - { 0x2F5F, 30346 }, - { 0x2F60, 30520 }, - { 0x2F61, 30426 }, - { 0x2F62, 30591 }, - { 0x2F63, 30364 }, - { 0x2F64, 30236 }, - { 0x2F65, 30493 }, - { 0x2F66, 30254 }, - { 0x2F67, 30770 }, - { 0x2F68, 30642 }, - { 0x2F69, 30612 }, - { 0x2F6A, 30414 }, - { 0x2F6B, 30280 }, - { 0x2F6C, 30169 }, - { 0x2F6D, 30576 }, - { 0x2F6E, 30457 }, - { 0x2F6F, 30588 }, - { 0x2F70, 30685 }, - { 0x2F71, 30603 }, - { 0x2F72, 30505 }, - { 0x2F73, 30265 }, - { 0x2F74, 30582 }, - { 0x2F75, 30627 }, - { 0x2F76, 30396 }, - { 0x2F77, 30411 }, - { 0x2F78, 30181 }, - { 0x2F79, 30190 }, - { 0x2F7A, 30540 }, - { 0x2F7B, 30731 }, - { 0x2F7C, 30196 }, - { 0x2F7D, 30139 }, - { 0x2F7E, 30390 }, - { 0x2F7F, 30163 }, - { 0x2F80, 30466 }, - { 0x2F81, 30377 }, - { 0x2F82, 30761 }, - { 0x2F83, 30408 }, - { 0x2F84, 30621 }, - { 0x2F85, 30670 }, - { 0x2F86, 30698 }, - { 0x2F87, 30673 }, - { 0x2F88, 30248 }, - { 0x2F89, 30773 }, - { 0x2F8A, 30475 }, - { 0x2F8B, 30508 }, - { 0x2F8C, 30597 }, - { 0x2F8D, 30664 }, - { 0x2F8E, 30463 }, - { 0x2F8F, 30435 }, - { 0x2F90, 30722 }, - { 0x2F91, 30439 }, - { 0x2F92, 30220 }, - { 0x2F93, 30340 }, - { 0x2F94, 30682 }, - { 0x2F95, 30710 }, - { 0x2F96, 30239 }, - { 0x2F97, 30202 }, - { 0x2F98, 30624 }, - { 0x2F99, 30543 }, - { 0x2F9A, 30211 }, - { 0x2F9B, 30214 }, - { 0x2F9C, 30308 }, - { 0x2F9D, 30251 }, - { 0x2F9E, 30262 }, - { 0x2F9F, 30630 }, - { 0x2FA0, 30740 }, - { 0x2FA1, 30432 }, - { 0x2FA2, 30268 }, - { 0x2FA3, 30445 }, - { 0x2FA4, 30785 }, - { 0x2FA5, 30752 }, - { 0x2FA6, 30317 }, - { 0x2FA7, 30370 }, - { 0x2FA8, 30314 }, - { 0x2FA9, 30523 }, - { 0x2FAA, 30561 }, - { 0x2FAB, 30549 }, - { 0x2FAC, 30393 }, - { 0x2FAD, 30245 }, - { 0x2FAE, 30618 }, - { 0x2FAF, 30296 }, - { 0x2FB0, 30737 }, - { 0x2FB1, 30694 }, - { 0x2FB2, 30358 }, - { 0x2FB3, 30573 }, - { 0x2FB4, 30355 }, - { 0x2FB5, 30442 }, - { 0x2FB6, 30172 }, - { 0x2FB7, 30166 }, - { 0x2FB8, 30331 }, - { 0x2FB9, 30758 }, - { 0x2FBA, 30514 }, - { 0x2FBB, 30259 }, - { 0x2FBC, 30423 }, - { 0x2FBD, 30320 }, - { 0x2FBE, 30496 }, - { 0x2FBF, 30788 }, - { 0x2FC0, 30755 }, - { 0x2FC1, 30502 }, - { 0x2FC2, 30305 }, - { 0x2FC3, 30242 }, - { 0x2FC4, 30402 }, - { 0x2FC5, 30277 }, - { 0x2FC6, 30609 }, - { 0x2FC7, 30334 }, - { 0x2FC8, 30716 }, - { 0x2FC9, 30667 }, - { 0x2FCA, 30460 }, - { 0x2FCB, 30782 }, - { 0x2FCC, 30311 }, - { 0x2FCD, 30701 }, - { 0x2FCE, 30290 }, - { 0x2FCF, 30208 }, - { 0x2FD0, 30383 }, - { 0x2FD1, 30293 }, - { 0x2FD2, 30600 }, - { 0x2FD3, 30654 }, - { 0x2FD4, 30707 }, - { 0x2FD5, 30499 }, - { 0x2FF0, 63000 }, - { 0x2FF1, 63014 }, - { 0x2FF2, 63006 }, - { 0x2FF3, 63020 }, - { 0x2FF4, 62995 }, - { 0x2FF5, 63038 }, - { 0x2FF6, 63044 }, - { 0x2FF7, 63032 }, - { 0x2FF8, 63057 }, - { 0x2FF9, 63064 }, - { 0x2FFA, 63050 }, - { 0x2FFB, 63028 }, - { 0x3000, 62503 }, - { 0x3001, 62497 }, - { 0x3002, 62490 }, - { 0x3003, 8995 }, - { 0x3004, 48389 }, - { 0x3005, 62523 }, - { 0x3006, 62512 }, - { 0x3007, 62505 }, - { 0x3008, 7744 }, - { 0x3009, 19309 }, - { 0x300A, 7887 }, - { 0x300B, 19399 }, - { 0x300C, 7880 }, - { 0x300D, 19392 }, - { 0x300E, 7860 }, - { 0x300F, 19372 }, - { 0x3010, 7757 }, - { 0x3011, 19341 }, - { 0x3012, 31947 }, - { 0x3013, 7662 }, - { 0x3014, 7966 }, - { 0x3015, 19482 }, - { 0x3016, 7873 }, - { 0x3017, 19385 }, - { 0x3018, 7868 }, - { 0x3019, 19380 }, - { 0x301A, 7864 }, - { 0x301B, 19376 }, - { 0x301C, 8571 }, - { 0x301D, 50260 }, - { 0x301E, 28282 }, - { 0x301F, 5783 }, - { 0x3020, 31949 }, - { 0x3021, 47770 }, - { 0x3022, 47779 }, - { 0x3023, 47797 }, - { 0x3024, 47785 }, - { 0x3025, 47782 }, - { 0x3026, 47773 }, - { 0x3027, 47794 }, - { 0x3028, 47791 }, - { 0x3029, 47788 }, - { 0x302A, 62499 }, - { 0x302B, 62508 }, - { 0x302C, 62519 }, - { 0x302D, 62515 }, - { 0x302E, 28871 }, - { 0x302F, 28585 }, - { 0x3030, 8581 }, - { 0x3031, 50811 }, - { 0x3032, 50827 }, - { 0x3033, 50821 }, - { 0x3034, 50834 }, - { 0x3035, 50815 }, - { 0x3036, 35531 }, - { 0x3037, 62526 }, - { 0x3038, 47776 }, - { 0x3039, 47803 }, - { 0x303A, 47800 }, - { 0x303B, 50873 }, - { 0x303C, 8106 }, - { 0x303D, 8138 }, - { 0x303E, 62928 }, - { 0x303F, 62493 }, - { 0x3041, 48271 }, - { 0x3042, 48049 }, - { 0x3043, 48279 }, - { 0x3044, 48055 }, - { 0x3045, 48287 }, - { 0x3046, 48064 }, - { 0x3047, 48275 }, - { 0x3048, 48052 }, - { 0x3049, 48283 }, - { 0x304A, 48061 }, - { 0x304B, 48127 }, - { 0x304C, 48097 }, - { 0x304D, 48133 }, - { 0x304E, 48103 }, - { 0x304F, 48139 }, - { 0x3050, 48109 }, - { 0x3051, 48130 }, - { 0x3052, 48100 }, - { 0x3053, 48136 }, - { 0x3054, 48106 }, - { 0x3055, 48202 }, - { 0x3056, 48256 }, - { 0x3057, 48208 }, - { 0x3058, 48262 }, - { 0x3059, 48214 }, - { 0x305A, 48268 }, - { 0x305B, 48205 }, - { 0x305C, 48259 }, - { 0x305D, 48211 }, - { 0x305E, 48265 }, - { 0x305F, 48217 }, - { 0x3060, 48082 }, - { 0x3061, 48223 }, - { 0x3062, 48088 }, - { 0x3063, 48299 }, - { 0x3064, 48229 }, - { 0x3065, 48094 }, - { 0x3066, 48220 }, - { 0x3067, 48085 }, - { 0x3068, 48226 }, - { 0x3069, 48091 }, - { 0x306A, 48157 }, - { 0x306B, 48163 }, - { 0x306C, 48169 }, - { 0x306D, 48160 }, - { 0x306E, 48166 }, - { 0x306F, 48112 }, - { 0x3070, 48067 }, - { 0x3071, 48172 }, - { 0x3072, 48118 }, - { 0x3073, 48073 }, - { 0x3074, 48178 }, - { 0x3075, 48124 }, - { 0x3076, 48079 }, - { 0x3077, 48184 }, - { 0x3078, 48115 }, - { 0x3079, 48070 }, - { 0x307A, 48175 }, - { 0x307B, 48121 }, - { 0x307C, 48076 }, - { 0x307D, 48181 }, - { 0x307E, 48142 }, - { 0x307F, 48148 }, - { 0x3080, 48154 }, - { 0x3081, 48145 }, - { 0x3082, 48151 }, - { 0x3083, 48307 }, - { 0x3084, 48247 }, - { 0x3085, 48315 }, - { 0x3086, 48253 }, - { 0x3087, 48311 }, - { 0x3088, 48250 }, - { 0x3089, 48187 }, - { 0x308A, 48193 }, - { 0x308B, 48199 }, - { 0x308C, 48190 }, - { 0x308D, 48196 }, - { 0x308E, 48303 }, - { 0x308F, 48235 }, - { 0x3090, 48241 }, - { 0x3091, 48238 }, - { 0x3092, 48244 }, - { 0x3093, 48058 }, - { 0x3094, 48232 }, - { 0x3095, 48291 }, - { 0x3096, 48295 }, - { 0x3099, 52800 }, - { 0x309A, 52805 }, - { 0x309B, 68913 }, - { 0x309C, 68921 }, - { 0x309D, 48326 }, - { 0x309E, 48319 }, - { 0x309F, 48323 }, - { 0x30A0, 68910 }, - { 0x30A1, 48627 }, - { 0x30A2, 48393 }, - { 0x30A3, 48635 }, - { 0x30A4, 48399 }, - { 0x30A5, 48643 }, - { 0x30A6, 48408 }, - { 0x30A7, 48631 }, - { 0x30A8, 48396 }, - { 0x30A9, 48639 }, - { 0x30AA, 48405 }, - { 0x30AB, 48471 }, - { 0x30AC, 48441 }, - { 0x30AD, 48477 }, - { 0x30AE, 48447 }, - { 0x30AF, 48483 }, - { 0x30B0, 48453 }, - { 0x30B1, 48474 }, - { 0x30B2, 48444 }, - { 0x30B3, 48480 }, - { 0x30B4, 48450 }, - { 0x30B5, 48546 }, - { 0x30B6, 48612 }, - { 0x30B7, 48552 }, - { 0x30B8, 48618 }, - { 0x30B9, 48558 }, - { 0x30BA, 48624 }, - { 0x30BB, 48549 }, - { 0x30BC, 48615 }, - { 0x30BD, 48555 }, - { 0x30BE, 48621 }, - { 0x30BF, 48561 }, - { 0x30C0, 48426 }, - { 0x30C1, 48567 }, - { 0x30C2, 48432 }, - { 0x30C3, 48719 }, - { 0x30C4, 48573 }, - { 0x30C5, 48438 }, - { 0x30C6, 48564 }, - { 0x30C7, 48429 }, - { 0x30C8, 48570 }, - { 0x30C9, 48435 }, - { 0x30CA, 48501 }, - { 0x30CB, 48507 }, - { 0x30CC, 48513 }, - { 0x30CD, 48504 }, - { 0x30CE, 48510 }, - { 0x30CF, 48456 }, - { 0x30D0, 48411 }, - { 0x30D1, 48516 }, - { 0x30D2, 48462 }, - { 0x30D3, 48417 }, - { 0x30D4, 48522 }, - { 0x30D5, 48468 }, - { 0x30D6, 48423 }, - { 0x30D7, 48528 }, - { 0x30D8, 48459 }, - { 0x30D9, 48414 }, - { 0x30DA, 48519 }, - { 0x30DB, 48465 }, - { 0x30DC, 48420 }, - { 0x30DD, 48525 }, - { 0x30DE, 48486 }, - { 0x30DF, 48492 }, - { 0x30E0, 48498 }, - { 0x30E1, 48489 }, - { 0x30E2, 48495 }, - { 0x30E3, 48727 }, - { 0x30E4, 48603 }, - { 0x30E5, 48735 }, - { 0x30E6, 48609 }, - { 0x30E7, 48731 }, - { 0x30E8, 48606 }, - { 0x30E9, 48531 }, - { 0x30EA, 48537 }, - { 0x30EB, 48543 }, - { 0x30EC, 48534 }, - { 0x30ED, 48540 }, - { 0x30EE, 48723 }, - { 0x30EF, 48591 }, - { 0x30F0, 48597 }, - { 0x30F1, 48594 }, - { 0x30F2, 48600 }, - { 0x30F3, 48402 }, - { 0x30F4, 48588 }, - { 0x30F5, 48667 }, - { 0x30F6, 48671 }, - { 0x30F7, 48576 }, - { 0x30F8, 48582 }, - { 0x30F9, 48579 }, - { 0x30FA, 48585 }, - { 0x30FB, 48739 }, - { 0x30FC, 68917 }, - { 0x30FD, 48749 }, - { 0x30FE, 48742 }, - { 0x30FF, 48746 }, - { 0x3105, 41037 }, - { 0x3106, 41079 }, - { 0x3107, 41070 }, - { 0x3108, 41049 }, - { 0x3109, 41043 }, - { 0x310A, 41091 }, - { 0x310B, 41073 }, - { 0x310C, 41067 }, - { 0x310D, 41052 }, - { 0x310E, 41064 }, - { 0x310F, 41055 }, - { 0x3110, 41061 }, - { 0x3111, 41082 }, - { 0x3112, 41100 }, - { 0x3113, 41172 }, - { 0x3114, 41121 }, - { 0x3115, 41169 }, - { 0x3116, 41085 }, - { 0x3117, 41103 }, - { 0x3118, 41040 }, - { 0x3119, 41088 }, - { 0x311A, 41034 }, - { 0x311B, 41076 }, - { 0x311C, 41046 }, - { 0x311D, 41127 }, - { 0x311E, 41106 }, - { 0x311F, 41130 }, - { 0x3120, 41115 }, - { 0x3121, 41166 }, - { 0x3122, 41112 }, - { 0x3123, 41133 }, - { 0x3124, 41178 }, - { 0x3125, 41184 }, - { 0x3126, 41136 }, - { 0x3127, 41058 }, - { 0x3128, 41094 }, - { 0x3129, 41151 }, - { 0x312A, 41097 }, - { 0x312B, 41157 }, - { 0x312C, 41139 }, - { 0x3131, 28697 }, - { 0x3132, 28796 }, - { 0x3133, 28766 }, - { 0x3134, 28679 }, - { 0x3135, 28772 }, - { 0x3136, 28775 }, - { 0x3137, 28700 }, - { 0x3138, 28799 }, - { 0x3139, 28685 }, - { 0x313A, 28814 }, - { 0x313B, 28784 }, - { 0x313C, 28787 }, - { 0x313D, 28739 }, - { 0x313E, 28841 }, - { 0x313F, 28838 }, - { 0x3140, 28781 }, - { 0x3141, 28676 }, - { 0x3142, 28682 }, - { 0x3143, 28763 }, - { 0x3144, 28736 }, - { 0x3145, 28655 }, - { 0x3146, 28727 }, - { 0x3147, 28673 }, - { 0x3148, 28667 }, - { 0x3149, 28751 }, - { 0x314A, 28709 }, - { 0x314B, 28712 }, - { 0x314C, 28721 }, - { 0x314D, 28718 }, - { 0x314E, 28670 }, - { 0x314F, 28592 }, - { 0x3150, 28607 }, - { 0x3151, 28628 }, - { 0x3152, 28649 }, - { 0x3153, 28610 }, - { 0x3154, 28595 }, - { 0x3155, 28652 }, - { 0x3156, 28631 }, - { 0x3157, 28601 }, - { 0x3158, 28619 }, - { 0x3159, 28643 }, - { 0x315A, 28616 }, - { 0x315B, 28637 }, - { 0x315C, 28604 }, - { 0x315D, 28646 }, - { 0x315E, 28622 }, - { 0x315F, 28625 }, - { 0x3160, 28640 }, - { 0x3161, 28613 }, - { 0x3162, 28634 }, - { 0x3163, 28598 }, - { 0x3164, 28590 }, - { 0x3165, 28760 }, - { 0x3166, 28805 }, - { 0x3167, 28733 }, - { 0x3168, 28829 }, - { 0x3169, 28862 }, - { 0x316A, 28817 }, - { 0x316B, 28850 }, - { 0x316C, 28835 }, - { 0x316D, 28865 }, - { 0x316E, 28769 }, - { 0x316F, 28730 }, - { 0x3170, 28826 }, - { 0x3171, 28820 }, - { 0x3172, 28808 }, - { 0x3173, 28811 }, - { 0x3174, 28856 }, - { 0x3175, 28859 }, - { 0x3176, 28778 }, - { 0x3177, 28832 }, - { 0x3178, 28823 }, - { 0x3179, 28868 }, - { 0x317A, 28790 }, - { 0x317B, 28745 }, - { 0x317C, 28793 }, - { 0x317D, 28748 }, - { 0x317E, 28742 }, - { 0x317F, 28715 }, - { 0x3180, 28757 }, - { 0x3181, 28724 }, - { 0x3182, 28844 }, - { 0x3183, 28853 }, - { 0x3184, 28847 }, - { 0x3185, 28754 }, - { 0x3186, 28802 }, - { 0x3187, 28688 }, - { 0x3188, 28703 }, - { 0x3189, 28658 }, - { 0x318A, 28706 }, - { 0x318B, 28691 }, - { 0x318C, 28661 }, - { 0x318D, 28664 }, - { 0x318E, 28694 }, - { 0x3190, 62987 }, - { 0x3191, 62991 }, - { 0x3192, 62935 }, - { 0x3193, 62943 }, - { 0x3194, 62963 }, - { 0x3195, 62947 }, - { 0x3196, 62939 }, - { 0x3197, 62979 }, - { 0x3198, 62967 }, - { 0x3199, 62955 }, - { 0x319A, 62983 }, - { 0x319B, 62959 }, - { 0x319C, 62971 }, - { 0x319D, 62975 }, - { 0x319E, 62951 }, - { 0x319F, 62931 }, - { 0x31A0, 41118 }, - { 0x31A1, 41175 }, - { 0x31A2, 41154 }, - { 0x31A3, 41142 }, - { 0x31A4, 41124 }, - { 0x31A5, 41187 }, - { 0x31A6, 41163 }, - { 0x31A7, 41199 }, - { 0x31A8, 41148 }, - { 0x31A9, 41181 }, - { 0x31AA, 41190 }, - { 0x31AB, 41202 }, - { 0x31AC, 41145 }, - { 0x31AD, 41193 }, - { 0x31AE, 41205 }, - { 0x31AF, 41208 }, - { 0x31B0, 41109 }, - { 0x31B1, 41160 }, - { 0x31B2, 41196 }, - { 0x31B3, 41211 }, - { 0x31B4, 41026 }, - { 0x31B5, 41030 }, - { 0x31B6, 41022 }, - { 0x31B7, 41018 }, - { 0x31C0, 5051 }, - { 0x31C1, 5060 }, - { 0x31C2, 5063 }, - { 0x31C3, 5066 }, - { 0x31C4, 5057 }, - { 0x31C5, 5078 }, - { 0x31C6, 5069 }, - { 0x31C7, 5054 }, - { 0x31C8, 5084 }, - { 0x31C9, 5093 }, - { 0x31CA, 5072 }, - { 0x31CB, 5087 }, - { 0x31CC, 5081 }, - { 0x31CD, 5075 }, - { 0x31CE, 5090 }, - { 0x31CF, 5048 }, - { 0x31F0, 48675 }, - { 0x31F1, 48707 }, - { 0x31F2, 48711 }, - { 0x31F3, 48715 }, - { 0x31F4, 48683 }, - { 0x31F5, 48647 }, - { 0x31F6, 48655 }, - { 0x31F7, 48663 }, - { 0x31F8, 48651 }, - { 0x31F9, 48659 }, - { 0x31FA, 48679 }, - { 0x31FB, 48687 }, - { 0x31FC, 48695 }, - { 0x31FD, 48703 }, - { 0x31FE, 48691 }, - { 0x31FF, 48699 }, - { 0x3200, 68634 }, - { 0x3201, 68613 }, - { 0x3202, 68641 }, - { 0x3203, 68627 }, - { 0x3204, 68606 }, - { 0x3205, 68620 }, - { 0x3206, 68574 }, - { 0x3207, 68599 }, - { 0x3208, 68581 }, - { 0x3209, 68648 }, - { 0x320A, 68655 }, - { 0x320B, 68669 }, - { 0x320C, 68662 }, - { 0x320D, 68592 }, - { 0x320E, 68637 }, - { 0x320F, 68616 }, - { 0x3210, 68644 }, - { 0x3211, 68630 }, - { 0x3212, 68609 }, - { 0x3213, 68623 }, - { 0x3214, 68577 }, - { 0x3215, 68602 }, - { 0x3216, 68584 }, - { 0x3217, 68651 }, - { 0x3218, 68658 }, - { 0x3219, 68672 }, - { 0x321A, 68665 }, - { 0x321B, 68595 }, - { 0x321C, 68588 }, - { 0x321D, 68681 }, - { 0x321E, 68676 }, - { 0x3220, 68718 }, - { 0x3221, 68730 }, - { 0x3222, 68790 }, - { 0x3223, 68742 }, - { 0x3224, 68739 }, - { 0x3225, 68721 }, - { 0x3226, 68781 }, - { 0x3227, 68769 }, - { 0x3228, 68754 }, - { 0x3229, 68727 }, - { 0x322A, 68748 }, - { 0x322B, 68736 }, - { 0x322C, 68793 }, - { 0x322D, 68763 }, - { 0x322E, 68775 }, - { 0x322F, 68766 }, - { 0x3230, 68724 }, - { 0x3231, 68784 }, - { 0x3232, 68745 }, - { 0x3233, 68796 }, - { 0x3234, 68751 }, - { 0x3235, 68799 }, - { 0x3236, 68811 }, - { 0x3237, 68823 }, - { 0x3238, 68772 }, - { 0x3239, 68814 }, - { 0x323A, 68733 }, - { 0x323B, 68787 }, - { 0x323C, 68817 }, - { 0x323D, 68820 }, - { 0x323E, 68808 }, - { 0x323F, 68802 }, - { 0x3240, 68805 }, - { 0x3241, 68757 }, - { 0x3242, 68760 }, - { 0x3243, 68778 }, - { 0x3250, 63094 }, - { 0x3251, 35474 }, - { 0x3252, 35482 }, - { 0x3253, 35506 }, - { 0x3254, 35490 }, - { 0x3255, 35486 }, - { 0x3256, 35478 }, - { 0x3257, 35502 }, - { 0x3258, 35498 }, - { 0x3259, 35494 }, - { 0x325A, 35429 }, - { 0x325B, 35432 }, - { 0x325C, 35440 }, - { 0x325D, 35464 }, - { 0x325E, 35448 }, - { 0x325F, 35444 }, - { 0x3260, 35331 }, - { 0x3261, 35310 }, - { 0x3262, 35338 }, - { 0x3263, 35324 }, - { 0x3264, 35303 }, - { 0x3265, 35317 }, - { 0x3266, 35271 }, - { 0x3267, 35292 }, - { 0x3268, 35278 }, - { 0x3269, 35345 }, - { 0x326A, 35352 }, - { 0x326B, 35366 }, - { 0x326C, 35359 }, - { 0x326D, 35285 }, - { 0x326E, 35334 }, - { 0x326F, 35313 }, - { 0x3270, 35341 }, - { 0x3271, 35327 }, - { 0x3272, 35306 }, - { 0x3273, 35320 }, - { 0x3274, 35274 }, - { 0x3275, 35295 }, - { 0x3276, 35281 }, - { 0x3277, 35348 }, - { 0x3278, 35355 }, - { 0x3279, 35369 }, - { 0x327A, 35362 }, - { 0x327B, 35288 }, - { 0x327C, 35377 }, - { 0x327D, 35373 }, - { 0x327E, 35299 }, - { 0x327F, 30794 }, - { 0x3280, 35698 }, - { 0x3281, 35710 }, - { 0x3282, 35785 }, - { 0x3283, 35722 }, - { 0x3284, 35719 }, - { 0x3285, 35701 }, - { 0x3286, 35776 }, - { 0x3287, 35758 }, - { 0x3288, 35746 }, - { 0x3289, 35707 }, - { 0x328A, 35740 }, - { 0x328B, 35716 }, - { 0x328C, 35788 }, - { 0x328D, 35752 }, - { 0x328E, 35764 }, - { 0x328F, 35755 }, - { 0x3290, 35704 }, - { 0x3291, 35779 }, - { 0x3292, 35725 }, - { 0x3293, 35803 }, - { 0x3294, 35743 }, - { 0x3295, 35806 }, - { 0x3296, 35830 }, - { 0x3297, 35839 }, - { 0x3298, 35761 }, - { 0x3299, 35797 }, - { 0x329A, 35737 }, - { 0x329B, 35794 }, - { 0x329C, 35821 }, - { 0x329D, 35827 }, - { 0x329E, 35770 }, - { 0x329F, 35824 }, - { 0x32A0, 35731 }, - { 0x32A1, 35749 }, - { 0x32A2, 35713 }, - { 0x32A3, 35800 }, - { 0x32A4, 35728 }, - { 0x32A5, 35791 }, - { 0x32A6, 35695 }, - { 0x32A7, 35734 }, - { 0x32A8, 35773 }, - { 0x32A9, 35812 }, - { 0x32AA, 35815 }, - { 0x32AB, 35782 }, - { 0x32AC, 35833 }, - { 0x32AD, 35836 }, - { 0x32AE, 35818 }, - { 0x32AF, 35809 }, - { 0x32B0, 35767 }, - { 0x32B1, 35436 }, - { 0x32B2, 35460 }, - { 0x32B3, 35456 }, - { 0x32B4, 35452 }, - { 0x32B5, 35387 }, - { 0x32B6, 35390 }, - { 0x32B7, 35398 }, - { 0x32B8, 35422 }, - { 0x32B9, 35406 }, - { 0x32BA, 35402 }, - { 0x32BB, 35394 }, - { 0x32BC, 35418 }, - { 0x32BD, 35414 }, - { 0x32BE, 35410 }, - { 0x32BF, 35384 }, - { 0x32C0, 62898 }, - { 0x32C1, 62913 }, - { 0x32C2, 62888 }, - { 0x32C3, 62883 }, - { 0x32C4, 62718 }, - { 0x32C5, 62878 }, - { 0x32C6, 62873 }, - { 0x32C7, 62893 }, - { 0x32C8, 62923 }, - { 0x32C9, 62903 }, - { 0x32CA, 62918 }, - { 0x32CB, 62908 }, - { 0x32CC, 32113 }, - { 0x32CD, 32276 }, - { 0x32CE, 32103 }, - { 0x32CF, 36999 }, - { 0x32D0, 35546 }, - { 0x32D1, 35552 }, - { 0x32D2, 35558 }, - { 0x32D3, 35549 }, - { 0x32D4, 35555 }, - { 0x32D5, 35576 }, - { 0x32D6, 35582 }, - { 0x32D7, 35588 }, - { 0x32D8, 35579 }, - { 0x32D9, 35585 }, - { 0x32DA, 35636 }, - { 0x32DB, 35642 }, - { 0x32DC, 35648 }, - { 0x32DD, 35639 }, - { 0x32DE, 35645 }, - { 0x32DF, 35651 }, - { 0x32E0, 35657 }, - { 0x32E1, 35663 }, - { 0x32E2, 35654 }, - { 0x32E3, 35660 }, - { 0x32E4, 35606 }, - { 0x32E5, 35612 }, - { 0x32E6, 35618 }, - { 0x32E7, 35609 }, - { 0x32E8, 35615 }, - { 0x32E9, 35561 }, - { 0x32EA, 35567 }, - { 0x32EB, 35573 }, - { 0x32EC, 35564 }, - { 0x32ED, 35570 }, - { 0x32EE, 35591 }, - { 0x32EF, 35597 }, - { 0x32F0, 35603 }, - { 0x32F1, 35594 }, - { 0x32F2, 35600 }, - { 0x32F3, 35678 }, - { 0x32F4, 35684 }, - { 0x32F5, 35681 }, - { 0x32F6, 35621 }, - { 0x32F7, 35627 }, - { 0x32F8, 35633 }, - { 0x32F9, 35624 }, - { 0x32FA, 35630 }, - { 0x32FB, 35666 }, - { 0x32FC, 35672 }, - { 0x32FD, 35669 }, - { 0x32FE, 35675 }, - { 0x3300, 32527 }, - { 0x3301, 32529 }, - { 0x3302, 32454 }, - { 0x3303, 32321 }, - { 0x3304, 32539 }, - { 0x3305, 32335 }, - { 0x3306, 32319 }, - { 0x3307, 32585 }, - { 0x3308, 32460 }, - { 0x3309, 32352 }, - { 0x330A, 32354 }, - { 0x330B, 32490 }, - { 0x330C, 32557 }, - { 0x330D, 32559 }, - { 0x330E, 32464 }, - { 0x330F, 32462 }, - { 0x3310, 32331 }, - { 0x3311, 32466 }, - { 0x3312, 32543 }, - { 0x3313, 32555 }, - { 0x3314, 32339 }, - { 0x3315, 32623 }, - { 0x3316, 32627 }, - { 0x3317, 32615 }, - { 0x3318, 32533 }, - { 0x3319, 32611 }, - { 0x331A, 32617 }, - { 0x331B, 32561 }, - { 0x331C, 32492 }, - { 0x331D, 32541 }, - { 0x331E, 32494 }, - { 0x331F, 32579 }, - { 0x3320, 32609 }, - { 0x3321, 32581 }, - { 0x3322, 32517 }, - { 0x3323, 32519 }, - { 0x3324, 32458 }, - { 0x3325, 32325 }, - { 0x3326, 32327 }, - { 0x3327, 32317 }, - { 0x3328, 32350 }, - { 0x3329, 32500 }, - { 0x332A, 32468 }, - { 0x332B, 32605 }, - { 0x332C, 32502 }, - { 0x332D, 32553 }, - { 0x332E, 32621 }, - { 0x332F, 32549 }, - { 0x3330, 32358 }, - { 0x3331, 32323 }, - { 0x3332, 32587 }, - { 0x3333, 32537 }, - { 0x3334, 32583 }, - { 0x3335, 32472 }, - { 0x3336, 32613 }, - { 0x3337, 32356 }, - { 0x3338, 32547 }, - { 0x3339, 32535 }, - { 0x333A, 32506 }, - { 0x333B, 32504 }, - { 0x333C, 32456 }, - { 0x333D, 32551 }, - { 0x333E, 32531 }, - { 0x333F, 32284 }, - { 0x3340, 32508 }, - { 0x3341, 32470 }, - { 0x3342, 32333 }, - { 0x3343, 32565 }, - { 0x3344, 32498 }, - { 0x3345, 32496 }, - { 0x3346, 32545 }, - { 0x3347, 32567 }, - { 0x3348, 32573 }, - { 0x3349, 32348 }, - { 0x334A, 32619 }, - { 0x334B, 32346 }, - { 0x334C, 32571 }, - { 0x334D, 32569 }, - { 0x334E, 32523 }, - { 0x334F, 32525 }, - { 0x3350, 32452 }, - { 0x3351, 32575 }, - { 0x3352, 32362 }, - { 0x3353, 32515 }, - { 0x3354, 32577 }, - { 0x3355, 32360 }, - { 0x3356, 32607 }, - { 0x3357, 32521 }, - { 0x3358, 62765 }, - { 0x3359, 62723 }, - { 0x335A, 62741 }, - { 0x335B, 62783 }, - { 0x335C, 62753 }, - { 0x335D, 62747 }, - { 0x335E, 62729 }, - { 0x335F, 62777 }, - { 0x3360, 62771 }, - { 0x3361, 62759 }, - { 0x3362, 62735 }, - { 0x3363, 62789 }, - { 0x3364, 62795 }, - { 0x3365, 62837 }, - { 0x3366, 62825 }, - { 0x3367, 62807 }, - { 0x3368, 62813 }, - { 0x3369, 62843 }, - { 0x336A, 62819 }, - { 0x336B, 62831 }, - { 0x336C, 62801 }, - { 0x336D, 62849 }, - { 0x336E, 62855 }, - { 0x336F, 62867 }, - { 0x3370, 62861 }, - { 0x3371, 32286 }, - { 0x3372, 32089 }, - { 0x3373, 32071 }, - { 0x3374, 32252 }, - { 0x3375, 32223 }, - { 0x3376, 32230 }, - { 0x3377, 32095 }, - { 0x3378, 32100 }, - { 0x3379, 32097 }, - { 0x337A, 32121 }, - { 0x337B, 32264 }, - { 0x337C, 32268 }, - { 0x337D, 32272 }, - { 0x337E, 32260 }, - { 0x337F, 32625 }, - { 0x3380, 32227 }, - { 0x3381, 32211 }, - { 0x3382, 32177 }, - { 0x3383, 32156 }, - { 0x3384, 32123 }, - { 0x3385, 32125 }, - { 0x3386, 32158 }, - { 0x3387, 32107 }, - { 0x3388, 32254 }, - { 0x3389, 32337 }, - { 0x338A, 32232 }, - { 0x338B, 32213 }, - { 0x338C, 32180 }, - { 0x338D, 32183 }, - { 0x338E, 32163 }, - { 0x338F, 32127 }, - { 0x3390, 32117 }, - { 0x3391, 32288 }, - { 0x3392, 32294 }, - { 0x3393, 32280 }, - { 0x3394, 32315 }, - { 0x3395, 32186 }, - { 0x3396, 32165 }, - { 0x3397, 32093 }, - { 0x3398, 32131 }, - { 0x3399, 32105 }, - { 0x339A, 32215 }, - { 0x339B, 32189 }, - { 0x339C, 32167 }, - { 0x339D, 32079 }, - { 0x339E, 32133 }, - { 0x339F, 32172 }, - { 0x33A0, 32084 }, - { 0x33A1, 32062 }, - { 0x33A2, 32141 }, - { 0x33A3, 32169 }, - { 0x33A4, 32081 }, - { 0x33A5, 32059 }, - { 0x33A6, 32135 }, - { 0x33A7, 32050 }, - { 0x33A8, 32054 }, - { 0x33A9, 32225 }, - { 0x33AA, 32290 }, - { 0x33AB, 32300 }, - { 0x33AC, 32282 }, - { 0x33AD, 32304 }, - { 0x33AE, 32306 }, - { 0x33AF, 32310 }, - { 0x33B0, 32240 }, - { 0x33B1, 32217 }, - { 0x33B2, 32192 }, - { 0x33B3, 32175 }, - { 0x33B4, 32242 }, - { 0x33B5, 32219 }, - { 0x33B6, 32195 }, - { 0x33B7, 32201 }, - { 0x33B8, 32146 }, - { 0x33B9, 32203 }, - { 0x33BA, 32244 }, - { 0x33BB, 32221 }, - { 0x33BC, 32198 }, - { 0x33BD, 32206 }, - { 0x33BE, 32148 }, - { 0x33BF, 32208 }, - { 0x33C0, 32044 }, - { 0x33C1, 32047 }, - { 0x33C2, 32069 }, - { 0x33C3, 32073 }, - { 0x33C4, 32075 }, - { 0x33C5, 32077 }, - { 0x33C6, 32040 }, - { 0x33C7, 32087 }, - { 0x33C8, 32091 }, - { 0x33C9, 32109 }, - { 0x33CA, 32111 }, - { 0x33CB, 32115 }, - { 0x33CC, 32119 }, - { 0x33CD, 32129 }, - { 0x33CE, 32138 }, - { 0x33CF, 32144 }, - { 0x33D0, 32150 }, - { 0x33D1, 32152 }, - { 0x33D2, 32292 }, - { 0x33D3, 32154 }, - { 0x33D4, 32160 }, - { 0x33D5, 32296 }, - { 0x33D6, 32298 }, - { 0x33D7, 32234 }, - { 0x33D8, 32236 }, - { 0x33D9, 32302 }, - { 0x33DA, 32238 }, - { 0x33DB, 32246 }, - { 0x33DC, 32248 }, - { 0x33DD, 32250 }, - { 0x33DE, 32065 }, - { 0x33DF, 32036 }, - { 0x33E0, 62532 }, - { 0x33E1, 62550 }, - { 0x33E2, 62586 }, - { 0x33E3, 62562 }, - { 0x33E4, 62556 }, - { 0x33E5, 62538 }, - { 0x33E6, 62580 }, - { 0x33E7, 62574 }, - { 0x33E8, 62568 }, - { 0x33E9, 62544 }, - { 0x33EA, 62592 }, - { 0x33EB, 62604 }, - { 0x33EC, 62646 }, - { 0x33ED, 62634 }, - { 0x33EE, 62616 }, - { 0x33EF, 62622 }, - { 0x33F0, 62652 }, - { 0x33F1, 62628 }, - { 0x33F2, 62640 }, - { 0x33F3, 62610 }, - { 0x33F4, 62664 }, - { 0x33F5, 62676 }, - { 0x33F6, 62712 }, - { 0x33F7, 62688 }, - { 0x33F8, 62682 }, - { 0x33F9, 62670 }, - { 0x33FA, 62706 }, - { 0x33FB, 62700 }, - { 0x33FC, 62694 }, - { 0x33FD, 62598 }, - { 0x33FE, 62658 }, - { 0x33FF, 32278 }, - { 0x4DC0, 47853 }, - { 0x4DC1, 47867 }, - { 0x4DC2, 48004 }, - { 0x4DC3, 47974 }, - { 0x4DC4, 47950 }, - { 0x4DC5, 47956 }, - { 0x4DC6, 47806 }, - { 0x4DC7, 47936 }, - { 0x4DC8, 47912 }, - { 0x4DC9, 47971 }, - { 0x4DCA, 47909 }, - { 0x4DCB, 48031 }, - { 0x4DCC, 48016 }, - { 0x4DCD, 47893 }, - { 0x4DCE, 47940 }, - { 0x4DCF, 48013 }, - { 0x4DD0, 47987 }, - { 0x4DD1, 47872 }, - { 0x4DD2, 47953 }, - { 0x4DD3, 48046 }, - { 0x4DD4, 47924 }, - { 0x4DD5, 47882 }, - { 0x4DD6, 48000 }, - { 0x4DD7, 47933 }, - { 0x4DD8, 47997 }, - { 0x4DD9, 47889 }, - { 0x4DDA, 47905 }, - { 0x4DDB, 47897 }, - { 0x4DDC, 47828 }, - { 0x4DDD, 47848 }, - { 0x4DDE, 47994 }, - { 0x4DDF, 47962 }, - { 0x4DE0, 47947 }, - { 0x4DE1, 47885 }, - { 0x4DE2, 47968 }, - { 0x4DE3, 47981 }, - { 0x4DE4, 47814 }, - { 0x4DE5, 48022 }, - { 0x4DE6, 48040 }, - { 0x4DE7, 48034 }, - { 0x4DE8, 47959 }, - { 0x4DE9, 47965 }, - { 0x4DEA, 48043 }, - { 0x4DEB, 47928 }, - { 0x4DEC, 47990 }, - { 0x4DED, 47943 }, - { 0x4DEE, 48025 }, - { 0x4DEF, 47810 }, - { 0x4DF0, 48028 }, - { 0x4DF1, 47844 }, - { 0x4DF2, 47839 }, - { 0x4DF3, 47833 }, - { 0x4DF4, 48037 }, - { 0x4DF5, 47858 }, - { 0x4DF6, 47978 }, - { 0x4DF7, 47863 }, - { 0x4DF8, 47818 }, - { 0x4DF9, 47823 }, - { 0x4DFA, 48010 }, - { 0x4DFB, 48019 }, - { 0x4DFC, 47901 }, - { 0x4DFD, 47916 }, - { 0x4DFE, 47878 }, - { 0x4DFF, 47920 }, - { 0x5000, 444 }, - { 0x5001, 447 }, - { 0x5002, 330 }, - { 0x5003, 441 }, - { 0x5004, 1110 }, - { 0x5005, 1113 }, - { 0x5006, 438 }, - { 0x5007, 1107 }, - { 0x5008, 339 }, - { 0x5009, 342 }, - { 0x500A, 324 }, - { 0x500B, 336 }, - { 0x500C, 1821 }, - { 0x500D, 612 }, - { 0x500E, 1818 }, - { 0x500F, 531 }, - { 0x5010, 534 }, - { 0x5011, 333 }, - { 0x5012, 528 }, - { 0x5013, 396 }, - { 0x5014, 327 }, - { 0x5015, 639 }, - { 0x5016, 720 }, - { 0x5017, 723 }, - { 0x5018, 351 }, - { 0x5019, 717 }, - { 0x501A, 2151 }, - { 0x501B, 2154 }, - { 0x501C, 714 }, - { 0x501D, 2148 }, - { 0x501E, 684 }, - { 0x501F, 687 }, - { 0x5020, 345 }, - { 0x5021, 681 }, - { 0x5022, 2160 }, - { 0x5023, 735 }, - { 0x5024, 2157 }, - { 0x5025, 729 }, - { 0x5026, 732 }, - { 0x5027, 354 }, - { 0x5028, 726 }, - { 0x5029, 711 }, - { 0x502A, 348 }, - { 0x502B, 708 }, - { 0x502C, 744 }, - { 0x502D, 747 }, - { 0x502E, 357 }, - { 0x502F, 738 }, - { 0x5030, 2163 }, - { 0x5031, 741 }, - { 0x5032, 756 }, - { 0x5033, 759 }, - { 0x5034, 360 }, - { 0x5035, 750 }, - { 0x5036, 2166 }, - { 0x5037, 753 }, - { 0x5038, 1515 }, - { 0x5039, 1518 }, - { 0x503A, 540 }, - { 0x503B, 1512 }, - { 0x503C, 3084 }, - { 0x503D, 1509 }, - { 0x503E, 3081 }, - { 0x503F, 1503 }, - { 0x5040, 1506 }, - { 0x5041, 537 }, - { 0x5042, 1500 }, - { 0x5043, 3090 }, - { 0x5044, 1530 }, - { 0x5045, 3087 }, - { 0x5046, 1524 }, - { 0x5047, 1527 }, - { 0x5048, 543 }, - { 0x5049, 1521 }, - { 0x504A, 1539 }, - { 0x504B, 1542 }, - { 0x504C, 546 }, - { 0x504D, 1533 }, - { 0x504E, 3093 }, - { 0x504F, 1536 }, - { 0x5050, 1551 }, - { 0x5051, 1554 }, - { 0x5052, 549 }, - { 0x5053, 1545 }, - { 0x5054, 3096 }, - { 0x5055, 1548 }, - { 0x5056, 2109 }, - { 0x5057, 2112 }, - { 0x5058, 696 }, - { 0x5059, 2106 }, - { 0x505A, 3519 }, - { 0x505B, 3522 }, - { 0x505C, 2103 }, - { 0x505D, 3516 }, - { 0x505E, 2091 }, - { 0x505F, 2094 }, - { 0x5060, 690 }, - { 0x5061, 2088 }, - { 0x5062, 3528 }, - { 0x5063, 2124 }, - { 0x5064, 3525 }, - { 0x5065, 2118 }, - { 0x5066, 2121 }, - { 0x5067, 699 }, - { 0x5068, 2115 }, - { 0x5069, 2100 }, - { 0x506A, 693 }, - { 0x506B, 2097 }, - { 0x506C, 2133 }, - { 0x506D, 2136 }, - { 0x506E, 702 }, - { 0x506F, 2127 }, - { 0x5070, 3531 }, - { 0x5071, 2130 }, - { 0x5072, 2142 }, - { 0x5073, 2145 }, - { 0x5074, 705 }, - { 0x5075, 2139 }, - { 0x5076, 2769 }, - { 0x5077, 2772 }, - { 0x5078, 1371 }, - { 0x5079, 2766 }, - { 0x507A, 3681 }, - { 0x507B, 2763 }, - { 0x507C, 3678 }, - { 0x507D, 2757 }, - { 0x507E, 2760 }, - { 0x507F, 1368 }, - { 0x5080, 2754 }, - { 0x5081, 2778 }, - { 0x5082, 2781 }, - { 0x5083, 1374 }, - { 0x5084, 2775 }, - { 0x5085, 2790 }, - { 0x5086, 2793 }, - { 0x5087, 1377 }, - { 0x5088, 2784 }, - { 0x5089, 3684 }, - { 0x508A, 2787 }, - { 0x508B, 2802 }, - { 0x508C, 2805 }, - { 0x508D, 1380 }, - { 0x508E, 2796 }, - { 0x508F, 3687 }, - { 0x5090, 2799 }, - { 0x5091, 2457 }, - { 0x5092, 2460 }, - { 0x5093, 1062 }, - { 0x5094, 2454 }, - { 0x5095, 3603 }, - { 0x5096, 2451 }, - { 0x5097, 3600 }, - { 0x5098, 2445 }, - { 0x5099, 2448 }, - { 0x509A, 1059 }, - { 0x509B, 2442 }, - { 0x509C, 3609 }, - { 0x509D, 2472 }, - { 0x509E, 3606 }, - { 0x509F, 2466 }, - { 0x50A0, 2469 }, - { 0x50A1, 1065 }, - { 0x50A2, 2463 }, - { 0x50A3, 2481 }, - { 0x50A4, 2484 }, - { 0x50A5, 1068 }, - { 0x50A6, 2475 }, - { 0x50A7, 3612 }, - { 0x50A8, 2478 }, - { 0x50A9, 2493 }, - { 0x50AA, 1071 }, - { 0x50AB, 2487 }, - { 0x50AC, 3615 }, - { 0x50AD, 2490 }, - { 0x50AE, 1323 }, - { 0x50AF, 1326 }, - { 0x50B0, 501 }, - { 0x50B1, 1320 }, - { 0x50B2, 2739 }, - { 0x50B3, 1317 }, - { 0x50B4, 2736 }, - { 0x50B5, 1296 }, - { 0x50B6, 1299 }, - { 0x50B7, 495 }, - { 0x50B8, 1293 }, - { 0x50B9, 2745 }, - { 0x50BA, 2748 }, - { 0x50BB, 1338 }, - { 0x50BC, 2742 }, - { 0x50BD, 1332 }, - { 0x50BE, 1335 }, - { 0x50BF, 504 }, - { 0x50C0, 1329 }, - { 0x50C1, 1302 }, - { 0x50C2, 498 }, - { 0x50C3, 1347 }, - { 0x50C4, 1350 }, - { 0x50C5, 507 }, - { 0x50C6, 1341 }, - { 0x50C7, 2751 }, - { 0x50C8, 1344 }, - { 0x50C9, 1356 }, - { 0x50CA, 1359 }, - { 0x50CB, 510 }, - { 0x50CC, 1353 }, - { 0x50CD, 918 }, - { 0x50CE, 921 }, - { 0x50CF, 402 }, - { 0x50D0, 915 }, - { 0x50D1, 909 }, - { 0x50D2, 912 }, - { 0x50D3, 399 }, - { 0x50D4, 906 }, - { 0x50D5, 927 }, - { 0x50D6, 405 }, - { 0x50D7, 924 }, - { 0x50D8, 936 }, - { 0x50D9, 939 }, - { 0x50DA, 408 }, - { 0x50DB, 930 }, - { 0x50DC, 2304 }, - { 0x50DD, 933 }, - { 0x50DE, 945 }, - { 0x50DF, 948 }, - { 0x50E0, 411 }, - { 0x50E1, 942 }, - { 0x50E2, 1845 }, - { 0x50E3, 1848 }, - { 0x50E4, 618 }, - { 0x50E5, 1842 }, - { 0x50E6, 3333 }, - { 0x50E7, 3336 }, - { 0x50E8, 1839 }, - { 0x50E9, 3330 }, - { 0x50EA, 1827 }, - { 0x50EB, 1830 }, - { 0x50EC, 615 }, - { 0x50ED, 1824 }, - { 0x50EE, 1854 }, - { 0x50EF, 1857 }, - { 0x50F0, 621 }, - { 0x50F1, 1851 }, - { 0x50F2, 1836 }, - { 0x50F3, 1833 }, - { 0x50F4, 1866 }, - { 0x50F5, 1869 }, - { 0x50F6, 624 }, - { 0x50F7, 1860 }, - { 0x50F8, 3339 }, - { 0x50F9, 1863 }, - { 0x50FA, 1878 }, - { 0x50FB, 1881 }, - { 0x50FC, 627 }, - { 0x50FD, 1872 }, - { 0x50FE, 3342 }, - { 0x50FF, 1875 }, - { 0x5100, 876 }, - { 0x5101, 879 }, - { 0x5102, 387 }, - { 0x5103, 873 }, - { 0x5104, 2295 }, - { 0x5105, 870 }, - { 0x5106, 2292 }, - { 0x5107, 843 }, - { 0x5108, 846 }, - { 0x5109, 381 }, - { 0x510A, 840 }, - { 0x510B, 2298 }, - { 0x510C, 891 }, - { 0x510D, 885 }, - { 0x510E, 888 }, - { 0x510F, 390 }, - { 0x5110, 882 }, - { 0x5111, 867 }, - { 0x5112, 384 }, - { 0x5113, 864 }, - { 0x5114, 900 }, - { 0x5115, 903 }, - { 0x5116, 393 }, - { 0x5117, 894 }, - { 0x5118, 2301 }, - { 0x5119, 897 }, - { 0x511A, 1788 }, - { 0x511B, 1791 }, - { 0x511C, 603 }, - { 0x511D, 1785 }, - { 0x511E, 3315 }, - { 0x511F, 1782 }, - { 0x5120, 3312 }, - { 0x5121, 1770 }, - { 0x5122, 1773 }, - { 0x5123, 597 }, - { 0x5124, 1767 }, - { 0x5125, 3321 }, - { 0x5126, 3324 }, - { 0x5127, 1803 }, - { 0x5128, 3318 }, - { 0x5129, 1797 }, - { 0x512A, 1800 }, - { 0x512B, 606 }, - { 0x512C, 1794 }, - { 0x512D, 1779 }, - { 0x512E, 600 }, - { 0x512F, 1776 }, - { 0x5130, 1812 }, - { 0x5131, 1815 }, - { 0x5132, 609 }, - { 0x5133, 1806 }, - { 0x5134, 3327 }, - { 0x5135, 1809 }, - { 0x5136, 2262 }, - { 0x5137, 2265 }, - { 0x5138, 855 }, - { 0x5139, 2259 }, - { 0x513A, 3552 }, - { 0x513B, 2256 }, - { 0x513C, 3549 }, - { 0x513D, 2244 }, - { 0x513E, 2247 }, - { 0x513F, 849 }, - { 0x5140, 2241 }, - { 0x5141, 3558 }, - { 0x5142, 2277 }, - { 0x5143, 3555 }, - { 0x5144, 2271 }, - { 0x5145, 2274 }, - { 0x5146, 858 }, - { 0x5147, 2268 }, - { 0x5148, 2253 }, - { 0x5149, 852 }, - { 0x514A, 2250 }, - { 0x514B, 2286 }, - { 0x514C, 2289 }, - { 0x514D, 861 }, - { 0x514E, 2280 }, - { 0x514F, 3561 }, - { 0x5150, 2283 }, - { 0x5151, 2829 }, - { 0x5152, 2832 }, - { 0x5153, 1389 }, - { 0x5154, 2826 }, - { 0x5155, 3690 }, - { 0x5156, 2823 }, - { 0x5157, 2811 }, - { 0x5158, 2814 }, - { 0x5159, 1383 }, - { 0x515A, 2808 }, - { 0x515B, 2838 }, - { 0x515C, 2841 }, - { 0x515D, 1392 }, - { 0x515E, 2835 }, - { 0x515F, 2820 }, - { 0x5160, 1386 }, - { 0x5161, 2817 }, - { 0x5162, 2850 }, - { 0x5163, 2853 }, - { 0x5164, 1395 }, - { 0x5165, 2844 }, - { 0x5166, 3693 }, - { 0x5167, 2847 }, - { 0x5168, 2517 }, - { 0x5169, 2520 }, - { 0x516A, 1080 }, - { 0x516B, 2514 }, - { 0x516C, 3621 }, - { 0x516D, 3624 }, - { 0x516E, 2511 }, - { 0x516F, 3618 }, - { 0x5170, 2499 }, - { 0x5171, 2502 }, - { 0x5172, 1074 }, - { 0x5173, 2496 }, - { 0x5174, 3627 }, - { 0x5175, 2532 }, - { 0x5176, 2526 }, - { 0x5177, 2529 }, - { 0x5178, 2523 }, - { 0x5179, 2508 }, - { 0x517A, 1077 }, - { 0x517B, 2505 }, - { 0x517C, 2535 }, - { 0x517D, 1419 }, - { 0x517E, 1422 }, - { 0x517F, 519 }, - { 0x5180, 1416 }, - { 0x5181, 2889 }, - { 0x5182, 1413 }, - { 0x5183, 2886 }, - { 0x5184, 1365 }, - { 0x5185, 513 }, - { 0x5186, 1362 }, - { 0x5187, 2988 }, - { 0x5188, 1461 }, - { 0x5189, 2985 }, - { 0x518A, 1440 }, - { 0x518B, 1443 }, - { 0x518C, 522 }, - { 0x518D, 1437 }, - { 0x518E, 1401 }, - { 0x518F, 516 }, - { 0x5190, 1398 }, - { 0x5191, 1470 }, - { 0x5192, 1473 }, - { 0x5193, 525 }, - { 0x5194, 1464 }, - { 0x5195, 2991 }, - { 0x5196, 1467 }, - { 0x5197, 2403 }, - { 0x5198, 2406 }, - { 0x5199, 1047 }, - { 0x519A, 2400 }, - { 0x519B, 3585 }, - { 0x519C, 2397 }, - { 0x519D, 3582 }, - { 0x519E, 2385 }, - { 0x519F, 2388 }, - { 0x51A0, 1041 }, - { 0x51A1, 2382 }, - { 0x51A2, 3591 }, - { 0x51A3, 2415 }, - { 0x51A4, 3588 }, - { 0x51A5, 2412 }, - { 0x51A6, 1050 }, - { 0x51A7, 2409 }, - { 0x51A8, 2394 }, - { 0x51A9, 1044 }, - { 0x51AA, 2391 }, - { 0x51AB, 2424 }, - { 0x51AC, 2427 }, - { 0x51AD, 1053 }, - { 0x51AE, 2418 }, - { 0x51AF, 3594 }, - { 0x51B0, 2421 }, - { 0x51B1, 2436 }, - { 0x51B2, 2439 }, - { 0x51B3, 1056 }, - { 0x51B4, 2430 }, - { 0x51B5, 3597 }, - { 0x51B6, 2433 }, - { 0x51B7, 1251 }, - { 0x51B8, 1254 }, - { 0x51B9, 483 }, - { 0x51BA, 1248 }, - { 0x51BB, 2673 }, - { 0x51BC, 2676 }, - { 0x51BD, 1245 }, - { 0x51BE, 2670 }, - { 0x51BF, 1233 }, - { 0x51C0, 1236 }, - { 0x51C1, 477 }, - { 0x51C2, 1230 }, - { 0x51C3, 2682 }, - { 0x51C4, 2685 }, - { 0x51C5, 1266 }, - { 0x51C6, 2679 }, - { 0x51C7, 1260 }, - { 0x51C8, 1263 }, - { 0x51C9, 486 }, - { 0x51CA, 1257 }, - { 0x51CB, 1242 }, - { 0x51CC, 480 }, - { 0x51CD, 1239 }, - { 0x51CE, 1275 }, - { 0x51CF, 1278 }, - { 0x51D0, 489 }, - { 0x51D1, 1269 }, - { 0x51D2, 2688 }, - { 0x51D3, 1272 }, - { 0x51D4, 1287 }, - { 0x51D5, 1290 }, - { 0x51D6, 492 }, - { 0x51D7, 1281 }, - { 0x51D8, 2691 }, - { 0x51D9, 1284 }, - { 0x51DA, 990 }, - { 0x51DB, 993 }, - { 0x51DC, 420 }, - { 0x51DD, 987 }, - { 0x51DE, 2361 }, - { 0x51DF, 2364 }, - { 0x51E0, 984 }, - { 0x51E1, 2358 }, - { 0x51E2, 954 }, - { 0x51E3, 957 }, - { 0x51E4, 414 }, - { 0x51E5, 951 }, - { 0x51E6, 2370 }, - { 0x51E7, 2373 }, - { 0x51E8, 1005 }, - { 0x51E9, 2367 }, - { 0x51EA, 999 }, - { 0x51EB, 1002 }, - { 0x51EC, 423 }, - { 0x51ED, 996 }, - { 0x51EE, 963 }, - { 0x51EF, 966 }, - { 0x51F0, 417 }, - { 0x51F1, 960 }, - { 0x51F2, 1014 }, - { 0x51F3, 1017 }, - { 0x51F4, 426 }, - { 0x51F5, 1008 }, - { 0x51F6, 2376 }, - { 0x51F7, 1011 }, - { 0x51F8, 1200 }, - { 0x51F9, 1203 }, - { 0x51FA, 468 }, - { 0x51FB, 1197 }, - { 0x51FC, 2658 }, - { 0x51FD, 1194 }, - { 0x51FE, 2655 }, - { 0x51FF, 1179 }, - { 0x5200, 1182 }, - { 0x5201, 462 }, - { 0x5202, 1176 }, - { 0x5203, 2664 }, - { 0x5204, 1215 }, - { 0x5205, 2661 }, - { 0x5206, 1209 }, - { 0x5207, 1212 }, - { 0x5208, 471 }, - { 0x5209, 1206 }, - { 0x520A, 1188 }, - { 0x520B, 1191 }, - { 0x520C, 465 }, - { 0x520D, 1185 }, - { 0x520E, 1224 }, - { 0x520F, 1227 }, - { 0x5210, 474 }, - { 0x5211, 1218 }, - { 0x5212, 2667 }, - { 0x5213, 1221 }, - { 0x5214, 2328 }, - { 0x5215, 2331 }, - { 0x5216, 975 }, - { 0x5217, 3567 }, - { 0x5218, 2325 }, - { 0x5219, 3564 }, - { 0x521A, 2310 }, - { 0x521B, 2313 }, - { 0x521C, 969 }, - { 0x521D, 2307 }, - { 0x521E, 3573 }, - { 0x521F, 3576 }, - { 0x5220, 2343 }, - { 0x5221, 3570 }, - { 0x5222, 2337 }, - { 0x5223, 2340 }, - { 0x5224, 978 }, - { 0x5225, 2334 }, - { 0x5226, 2319 }, - { 0x5227, 2322 }, - { 0x5228, 972 }, - { 0x5229, 2316 }, - { 0x522A, 2352 }, - { 0x522B, 2355 }, - { 0x522C, 981 }, - { 0x522D, 2346 }, - { 0x522E, 3579 }, - { 0x522F, 2349 }, - { 0x5230, 3666 }, - { 0x5231, 2709 }, - { 0x5232, 2697 }, - { 0x5233, 2700 }, - { 0x5234, 1305 }, - { 0x5235, 2694 }, - { 0x5236, 3672 }, - { 0x5237, 2721 }, - { 0x5238, 3669 }, - { 0x5239, 2715 }, - { 0x523A, 2718 }, - { 0x523B, 1311 }, - { 0x523C, 2712 }, - { 0x523D, 2706 }, - { 0x523E, 1308 }, - { 0x523F, 2703 }, - { 0x5240, 2730 }, - { 0x5241, 2733 }, - { 0x5242, 1314 }, - { 0x5243, 2724 }, - { 0x5244, 3675 }, - { 0x5245, 2727 }, - { 0x5246, 2568 }, - { 0x5247, 2571 }, - { 0x5248, 1101 }, - { 0x5249, 2565 }, - { 0x524A, 3633 }, - { 0x524B, 3636 }, - { 0x524C, 2562 }, - { 0x524D, 3630 }, - { 0x524E, 2550 }, - { 0x524F, 2553 }, - { 0x5250, 1095 }, - { 0x5251, 2547 }, - { 0x5252, 3642 }, - { 0x5253, 3645 }, - { 0x5254, 2583 }, - { 0x5255, 3639 }, - { 0x5256, 2577 }, - { 0x5257, 2580 }, - { 0x5258, 1104 }, - { 0x5259, 2574 }, - { 0x525A, 2559 }, - { 0x525B, 1098 }, - { 0x525C, 2556 }, - { 0x525D, 3699 }, - { 0x525E, 2871 }, - { 0x525F, 3696 }, - { 0x5260, 2859 }, - { 0x5261, 2862 }, - { 0x5262, 1404 }, - { 0x5263, 2856 }, - { 0x5264, 3702 }, - { 0x5265, 3705 }, - { 0x5266, 2883 }, - { 0x5267, 2877 }, - { 0x5268, 2880 }, - { 0x5269, 1410 }, - { 0x526A, 2874 }, - { 0x526B, 2868 }, - { 0x526C, 1407 }, - { 0x526D, 2865 }, - { 0x526E, 1038 }, - { 0x526F, 2379 }, - { 0x5270, 1035 }, - { 0x5271, 1023 }, - { 0x5272, 1026 }, - { 0x5273, 429 }, - { 0x5274, 1020 }, - { 0x5275, 2541 }, - { 0x5276, 2544 }, - { 0x5277, 1092 }, - { 0x5278, 2538 }, - { 0x5279, 1086 }, - { 0x527A, 1089 }, - { 0x527B, 435 }, - { 0x527C, 1083 }, - { 0x527D, 1032 }, - { 0x527E, 432 }, - { 0x527F, 1029 }, - { 0x5280, 1887 }, - { 0x5281, 1890 }, - { 0x5282, 630 }, - { 0x5283, 1884 }, - { 0x5284, 3348 }, - { 0x5285, 1905 }, - { 0x5286, 3345 }, - { 0x5287, 1902 }, - { 0x5288, 636 }, - { 0x5289, 1899 }, - { 0x528A, 1896 }, - { 0x528B, 633 }, - { 0x528C, 1893 }, - { 0x528D, 2028 }, - { 0x528E, 2031 }, - { 0x528F, 669 }, - { 0x5290, 2025 }, - { 0x5291, 3447 }, - { 0x5292, 2022 }, - { 0x5293, 3444 }, - { 0x5294, 1995 }, - { 0x5295, 1998 }, - { 0x5296, 663 }, - { 0x5297, 1992 }, - { 0x5298, 3453 }, - { 0x5299, 2043 }, - { 0x529A, 3450 }, - { 0x529B, 2037 }, - { 0x529C, 2040 }, - { 0x529D, 672 }, - { 0x529E, 2034 }, - { 0x529F, 2004 }, - { 0x52A0, 666 }, - { 0x52A1, 2001 }, - { 0x52A2, 2052 }, - { 0x52A3, 2055 }, - { 0x52A4, 675 }, - { 0x52A5, 2046 }, - { 0x52A6, 3456 }, - { 0x52A7, 2049 }, - { 0x52A8, 2064 }, - { 0x52A9, 2067 }, - { 0x52AA, 678 }, - { 0x52AB, 2058 }, - { 0x52AC, 3459 }, - { 0x52AD, 2061 }, - { 0x52AE, 798 }, - { 0x52AF, 801 }, - { 0x52B0, 369 }, - { 0x52B1, 795 }, - { 0x52B2, 2223 }, - { 0x52B3, 2226 }, - { 0x52B4, 792 }, - { 0x52B5, 2220 }, - { 0x52B6, 765 }, - { 0x52B7, 768 }, - { 0x52B8, 363 }, - { 0x52B9, 762 }, - { 0x52BA, 2232 }, - { 0x52BB, 813 }, - { 0x52BC, 2229 }, - { 0x52BD, 807 }, - { 0x52BE, 810 }, - { 0x52BF, 372 }, - { 0x52C0, 804 }, - { 0x52C1, 774 }, - { 0x52C2, 366 }, - { 0x52C3, 771 }, - { 0x52C4, 822 }, - { 0x52C5, 825 }, - { 0x52C6, 375 }, - { 0x52C7, 816 }, - { 0x52C8, 2235 }, - { 0x52C9, 819 }, - { 0x52CA, 834 }, - { 0x52CB, 837 }, - { 0x52CC, 378 }, - { 0x52CD, 828 }, - { 0x52CE, 2238 }, - { 0x52CF, 831 }, - { 0x52D0, 3483 }, - { 0x52D1, 3486 }, - { 0x52D2, 2076 }, - { 0x52D3, 3480 }, - { 0x52D4, 3807 }, - { 0x52D5, 3810 }, - { 0x52D6, 3477 }, - { 0x52D7, 3804 }, - { 0x52D8, 3465 }, - { 0x52D9, 3468 }, - { 0x52DA, 2070 }, - { 0x52DB, 3462 }, - { 0x52DC, 3492 }, - { 0x52DD, 2079 }, - { 0x52DE, 3489 }, - { 0x52DF, 3474 }, - { 0x52E0, 2073 }, - { 0x52E1, 3471 }, - { 0x52E2, 3501 }, - { 0x52E3, 2082 }, - { 0x52E4, 3495 }, - { 0x52E5, 3813 }, - { 0x52E6, 3498 }, - { 0x52E7, 3510 }, - { 0x52E8, 3513 }, - { 0x52E9, 2085 }, - { 0x52EA, 3504 }, - { 0x52EB, 3816 }, - { 0x52EC, 3507 }, - { 0x52ED, 3045 }, - { 0x52EE, 3048 }, - { 0x52EF, 1491 }, - { 0x52F0, 3042 }, - { 0x52F1, 3750 }, - { 0x52F2, 3039 }, - { 0x52F3, 3747 }, - { 0x52F4, 3030 }, - { 0x52F5, 3033 }, - { 0x52F6, 1485 }, - { 0x52F7, 3027 }, - { 0x52F8, 3753 }, - { 0x52F9, 3057 }, - { 0x52FA, 3054 }, - { 0x52FB, 3051 }, - { 0x52FC, 3036 }, - { 0x52FD, 1488 }, - { 0x52FE, 3066 }, - { 0x52FF, 1494 }, - { 0x5300, 3060 }, - { 0x5301, 3756 }, - { 0x5302, 3063 }, - { 0x5303, 3075 }, - { 0x5304, 3078 }, - { 0x5305, 1497 }, - { 0x5306, 3069 }, - { 0x5307, 3759 }, - { 0x5308, 3072 }, - { 0x5309, 1707 }, - { 0x530A, 1710 }, - { 0x530B, 585 }, - { 0x530C, 1704 }, - { 0x530D, 3240 }, - { 0x530E, 1701 }, - { 0x530F, 3237 }, - { 0x5310, 1674 }, - { 0x5311, 1677 }, - { 0x5312, 579 }, - { 0x5313, 1671 }, - { 0x5314, 3303 }, - { 0x5315, 1740 }, - { 0x5316, 3300 }, - { 0x5317, 1716 }, - { 0x5318, 1719 }, - { 0x5319, 588 }, - { 0x531A, 1713 }, - { 0x531B, 1683 }, - { 0x531C, 582 }, - { 0x531D, 1680 }, - { 0x531E, 1749 }, - { 0x531F, 1752 }, - { 0x5320, 591 }, - { 0x5321, 1743 }, - { 0x5322, 3306 }, - { 0x5323, 1746 }, - { 0x5324, 1761 }, - { 0x5325, 1764 }, - { 0x5326, 594 }, - { 0x5327, 1755 }, - { 0x5328, 3309 }, - { 0x5329, 1758 }, - { 0x532A, 3264 }, - { 0x532B, 3267 }, - { 0x532C, 1728 }, - { 0x532D, 3261 }, - { 0x532E, 3786 }, - { 0x532F, 3258 }, - { 0x5330, 3783 }, - { 0x5331, 3246 }, - { 0x5332, 3249 }, - { 0x5333, 1722 }, - { 0x5334, 3243 }, - { 0x5335, 3273 }, - { 0x5336, 3276 }, - { 0x5337, 1731 }, - { 0x5338, 3270 }, - { 0x5339, 3255 }, - { 0x533A, 1725 }, - { 0x533B, 3252 }, - { 0x533C, 3282 }, - { 0x533D, 3285 }, - { 0x533E, 1734 }, - { 0x533F, 3279 }, - { 0x5340, 3294 }, - { 0x5341, 3297 }, - { 0x5342, 1737 }, - { 0x5343, 3288 }, - { 0x5344, 3789 }, - { 0x5345, 3291 }, - { 0x5346, 3393 }, - { 0x5347, 3396 }, - { 0x5348, 2007 }, - { 0x5349, 3390 }, - { 0x534A, 3795 }, - { 0x534B, 3417 }, - { 0x534C, 3792 }, - { 0x534D, 3411 }, - { 0x534E, 3414 }, - { 0x534F, 2013 }, - { 0x5350, 3408 }, - { 0x5351, 3402 }, - { 0x5352, 3405 }, - { 0x5353, 2010 }, - { 0x5354, 3399 }, - { 0x5355, 3426 }, - { 0x5356, 3429 }, - { 0x5357, 2016 }, - { 0x5358, 3420 }, - { 0x5359, 3798 }, - { 0x535A, 3423 }, - { 0x535B, 3438 }, - { 0x535C, 3441 }, - { 0x535D, 2019 }, - { 0x535E, 3432 }, - { 0x535F, 3801 }, - { 0x5360, 3435 }, - { 0x5361, 2172 }, - { 0x5362, 2175 }, - { 0x5363, 777 }, - { 0x5364, 2169 }, - { 0x5365, 3537 }, - { 0x5366, 3540 }, - { 0x5367, 2196 }, - { 0x5368, 3534 }, - { 0x5369, 2190 }, - { 0x536A, 2193 }, - { 0x536B, 783 }, - { 0x536C, 2187 }, - { 0x536D, 2181 }, - { 0x536E, 2184 }, - { 0x536F, 780 }, - { 0x5370, 2178 }, - { 0x5371, 2205 }, - { 0x5372, 786 }, - { 0x5373, 2199 }, - { 0x5374, 3543 }, - { 0x5375, 2202 }, - { 0x5376, 2214 }, - { 0x5377, 2217 }, - { 0x5378, 789 }, - { 0x5379, 2208 }, - { 0x537A, 3546 }, - { 0x537B, 2211 }, - { 0x537C, 3123 }, - { 0x537D, 1629 }, - { 0x537E, 3762 }, - { 0x537F, 3144 }, - { 0x5380, 3138 }, - { 0x5381, 3141 }, - { 0x5382, 1635 }, - { 0x5383, 3135 }, - { 0x5384, 3129 }, - { 0x5385, 3132 }, - { 0x5386, 1632 }, - { 0x5387, 3126 }, - { 0x5388, 3153 }, - { 0x5389, 3156 }, - { 0x538A, 1638 }, - { 0x538B, 3147 }, - { 0x538C, 3765 }, - { 0x538D, 3150 }, - { 0x538E, 3165 }, - { 0x538F, 3168 }, - { 0x5390, 1641 }, - { 0x5391, 3159 }, - { 0x5392, 3768 }, - { 0x5393, 3162 }, - { 0x5394, 2940 }, - { 0x5395, 2943 }, - { 0x5396, 1446 }, - { 0x5397, 2937 }, - { 0x5398, 2958 }, - { 0x5399, 1452 }, - { 0x539A, 2955 }, - { 0x539B, 2949 }, - { 0x539C, 2952 }, - { 0x539D, 1449 }, - { 0x539E, 2946 }, - { 0x539F, 2967 }, - { 0x53A0, 2970 }, - { 0x53A1, 1455 }, - { 0x53A2, 2961 }, - { 0x53A3, 3726 }, - { 0x53A4, 2964 }, - { 0x53A5, 2979 }, - { 0x53A6, 2982 }, - { 0x53A7, 1458 }, - { 0x53A8, 2973 }, - { 0x53A9, 3729 }, - { 0x53AA, 2976 }, - { 0x53AB, 3186 }, - { 0x53AC, 3189 }, - { 0x53AD, 1686 }, - { 0x53AE, 3183 }, - { 0x53AF, 3774 }, - { 0x53B0, 3210 }, - { 0x53B1, 3771 }, - { 0x53B2, 3204 }, - { 0x53B3, 3207 }, - { 0x53B4, 1692 }, - { 0x53B5, 3201 }, - { 0x53B6, 3195 }, - { 0x53B7, 3198 }, - { 0x53B8, 1689 }, - { 0x53B9, 3192 }, - { 0x53BA, 3219 }, - { 0x53BB, 3222 }, - { 0x53BC, 1695 }, - { 0x53BD, 3213 }, - { 0x53BE, 3777 }, - { 0x53BF, 3216 }, - { 0x53C0, 3231 }, - { 0x53C1, 3234 }, - { 0x53C2, 1698 }, - { 0x53C3, 3225 }, - { 0x53C4, 3780 }, - { 0x53C5, 3228 }, - { 0x53C6, 1608 }, - { 0x53C7, 1611 }, - { 0x53C8, 564 }, - { 0x53C9, 1605 }, - { 0x53CA, 3174 }, - { 0x53CB, 1644 }, - { 0x53CC, 3171 }, - { 0x53CD, 1623 }, - { 0x53CE, 1626 }, - { 0x53CF, 570 }, - { 0x53D0, 1620 }, - { 0x53D1, 1617 }, - { 0x53D2, 567 }, - { 0x53D3, 1614 }, - { 0x53D4, 1653 }, - { 0x53D5, 1656 }, - { 0x53D6, 573 }, - { 0x53D7, 1647 }, - { 0x53D8, 3177 }, - { 0x53D9, 1650 }, - { 0x53DA, 1665 }, - { 0x53DB, 1668 }, - { 0x53DC, 576 }, - { 0x53DD, 1659 }, - { 0x53DE, 3180 }, - { 0x53DF, 1662 }, - { 0x53E0, 1122 }, - { 0x53E1, 1125 }, - { 0x53E2, 450 }, - { 0x53E3, 1119 }, - { 0x53E4, 2589 }, - { 0x53E5, 2592 }, - { 0x53E6, 1116 }, - { 0x53E7, 2586 }, - { 0x53E8, 2643 }, - { 0x53E9, 2646 }, - { 0x53EA, 1149 }, - { 0x53EB, 2640 }, - { 0x53EC, 1143 }, - { 0x53ED, 1146 }, - { 0x53EE, 453 }, - { 0x53EF, 1140 }, - { 0x53F0, 1158 }, - { 0x53F1, 1161 }, - { 0x53F2, 456 }, - { 0x53F3, 1152 }, - { 0x53F4, 2649 }, - { 0x53F5, 1155 }, - { 0x53F6, 1170 }, - { 0x53F7, 1173 }, - { 0x53F8, 459 }, - { 0x53F9, 1164 }, - { 0x53FA, 2652 }, - { 0x53FB, 1167 }, - { 0x53FC, 1563 }, - { 0x53FD, 1566 }, - { 0x53FE, 552 }, - { 0x53FF, 1560 }, - { 0x5400, 3102 }, - { 0x5401, 3105 }, - { 0x5402, 1557 }, - { 0x5403, 3099 }, - { 0x5404, 3111 }, - { 0x5405, 3114 }, - { 0x5406, 1578 }, - { 0x5407, 3108 }, - { 0x5408, 1572 }, - { 0x5409, 1575 }, - { 0x540A, 555 }, - { 0x540B, 1569 }, - { 0x540C, 1587 }, - { 0x540D, 1590 }, - { 0x540E, 558 }, - { 0x540F, 1581 }, - { 0x5410, 3117 }, - { 0x5411, 1584 }, - { 0x5412, 1599 }, - { 0x5413, 1602 }, - { 0x5414, 561 }, - { 0x5415, 1593 }, - { 0x5416, 3120 }, - { 0x5417, 1596 }, - { 0x5418, 2601 }, - { 0x5419, 2604 }, - { 0x541A, 1128 }, - { 0x541B, 2598 }, - { 0x541C, 3651 }, - { 0x541D, 3654 }, - { 0x541E, 2595 }, - { 0x541F, 3648 }, - { 0x5420, 3660 }, - { 0x5421, 2616 }, - { 0x5422, 3657 }, - { 0x5423, 2610 }, - { 0x5424, 2613 }, - { 0x5425, 1131 }, - { 0x5426, 2607 }, - { 0x5427, 2625 }, - { 0x5428, 2628 }, - { 0x5429, 1134 }, - { 0x542A, 2619 }, - { 0x542B, 3663 }, - { 0x542C, 2622 }, - { 0x542D, 2634 }, - { 0x542E, 2637 }, - { 0x542F, 1137 }, - { 0x5430, 2631 }, - { 0x5431, 2898 }, - { 0x5432, 2901 }, - { 0x5433, 1425 }, - { 0x5434, 2895 }, - { 0x5435, 3711 }, - { 0x5436, 3714 }, - { 0x5437, 2892 }, - { 0x5438, 3708 }, - { 0x5439, 3717 }, - { 0x543A, 2913 }, - { 0x543B, 2907 }, - { 0x543C, 2910 }, - { 0x543D, 1428 }, - { 0x543E, 2904 }, - { 0x543F, 2922 }, - { 0x5440, 1431 }, - { 0x5441, 2916 }, - { 0x5442, 3720 }, - { 0x5443, 2919 }, - { 0x5444, 2931 }, - { 0x5445, 2934 }, - { 0x5446, 1434 }, - { 0x5447, 2925 }, - { 0x5448, 3723 }, - { 0x5449, 2928 }, - { 0x544A, 3000 }, - { 0x544B, 3003 }, - { 0x544C, 1476 }, - { 0x544D, 2997 }, - { 0x544E, 3735 }, - { 0x544F, 3738 }, - { 0x5450, 2994 }, - { 0x5451, 3732 }, - { 0x5452, 3744 }, - { 0x5453, 3015 }, - { 0x5454, 3741 }, - { 0x5455, 3009 }, - { 0x5456, 3012 }, - { 0x5457, 1479 }, - { 0x5458, 3006 }, - { 0x5459, 3021 }, - { 0x545A, 3024 }, - { 0x545B, 1482 }, - { 0x545C, 3018 }, - { 0x545D, 1914 }, - { 0x545E, 1917 }, - { 0x545F, 642 }, - { 0x5460, 1911 }, - { 0x5461, 3354 }, - { 0x5462, 3357 }, - { 0x5463, 1908 }, - { 0x5464, 3351 }, - { 0x5465, 3360 }, - { 0x5466, 1929 }, - { 0x5467, 1923 }, - { 0x5468, 1926 }, - { 0x5469, 645 }, - { 0x546A, 1920 }, - { 0x546B, 1938 }, - { 0x546C, 1941 }, - { 0x546D, 648 }, - { 0x546E, 1932 }, - { 0x546F, 3363 }, - { 0x5470, 1935 }, - { 0x5471, 1950 }, - { 0x5472, 1953 }, - { 0x5473, 651 }, - { 0x5474, 1947 }, - { 0x5475, 3369 }, - { 0x5476, 3372 }, - { 0x5477, 1944 }, - { 0x5478, 3366 }, - { 0x5479, 3378 }, - { 0x547A, 3381 }, - { 0x547B, 1965 }, - { 0x547C, 3375 }, - { 0x547D, 1959 }, - { 0x547E, 1962 }, - { 0x547F, 654 }, - { 0x5480, 1956 }, - { 0x5481, 1974 }, - { 0x5482, 1977 }, - { 0x5483, 657 }, - { 0x5484, 1968 }, - { 0x5485, 3384 }, - { 0x5486, 1971 }, - { 0x5487, 1986 }, - { 0x5488, 1989 }, - { 0x5489, 660 }, - { 0x548A, 1980 }, - { 0x548B, 3387 }, - { 0x548C, 1983 }, - { 0x5490, 240 }, - { 0x5491, 174 }, - { 0x5492, 222 }, - { 0x5493, 303 }, - { 0x5494, 204 }, - { 0x5495, 246 }, - { 0x5496, 279 }, - { 0x5497, 210 }, - { 0x5498, 177 }, - { 0x5499, 285 }, - { 0x549A, 228 }, - { 0x549B, 270 }, - { 0x549C, 231 }, - { 0x549D, 189 }, - { 0x549E, 234 }, - { 0x549F, 291 }, - { 0x54A0, 249 }, - { 0x54A1, 165 }, - { 0x54A2, 264 }, - { 0x54A3, 207 }, - { 0x54A4, 276 }, - { 0x54A5, 195 }, - { 0x54A6, 282 }, - { 0x54A7, 306 }, - { 0x54A8, 183 }, - { 0x54A9, 180 }, - { 0x54AA, 297 }, - { 0x54AB, 261 }, - { 0x54AC, 237 }, - { 0x54AD, 216 }, - { 0x54AE, 258 }, - { 0x54AF, 255 }, - { 0x54B0, 243 }, - { 0x54B1, 252 }, - { 0x54B2, 192 }, - { 0x54B3, 168 }, - { 0x54B4, 309 }, - { 0x54B5, 219 }, - { 0x54B6, 213 }, - { 0x54B7, 294 }, - { 0x54B8, 186 }, - { 0x54B9, 162 }, - { 0x54BA, 318 }, - { 0x54BB, 225 }, - { 0x54BC, 159 }, - { 0x54BD, 273 }, - { 0x54BE, 201 }, - { 0x54BF, 288 }, - { 0x54C0, 312 }, - { 0x54C1, 267 }, - { 0x54C2, 315 }, - { 0x54C3, 198 }, - { 0x54C4, 321 }, - { 0x54C5, 300 }, - { 0x54C6, 171 }, - { 0x5700, 49719 }, - { 0x5701, 49743 }, - { 0x5702, 49725 }, - { 0x5703, 49749 }, - { 0x5704, 49707 }, - { 0x5705, 49731 }, - { 0x5706, 49713 }, - { 0x5707, 49737 }, - { 0x5708, 49819 }, - { 0x5709, 49052 }, - { 0x570A, 49009 }, - { 0x570B, 48976 }, - { 0x570C, 49788 }, - { 0x570D, 49825 }, - { 0x570E, 49058 }, - { 0x570F, 49015 }, - { 0x5710, 48982 }, - { 0x5711, 49794 }, - { 0x5712, 49832 }, - { 0x5713, 49065 }, - { 0x5714, 49022 }, - { 0x5715, 48998 }, - { 0x5716, 49801 }, - { 0x5717, 48908 }, - { 0x5718, 48904 }, - { 0x5719, 48913 }, - { 0x571A, 49116 }, - { 0x5720, 49590 }, - { 0x5721, 49584 }, - { 0x5800, 32736 }, - { 0x5801, 32744 }, - { 0x5802, 32707 }, - { 0x5803, 32752 }, - { 0x5804, 32740 }, - { 0x5805, 32748 }, - { 0x5806, 32699 }, - { 0x5807, 32780 }, - { 0x5808, 32836 }, - { 0x5809, 32768 }, - { 0x580A, 32828 }, - { 0x580B, 32703 }, - { 0x580C, 32760 }, - { 0x580D, 32816 }, - { 0x580E, 32776 }, - { 0x580F, 32832 }, - { 0x5810, 32852 }, - { 0x5811, 32860 }, - { 0x5812, 32820 }, - { 0x5813, 32856 }, - { 0x5814, 32808 }, - { 0x5815, 32848 }, - { 0x5816, 32764 }, - { 0x5817, 32824 }, - { 0x5818, 32792 }, - { 0x5819, 32796 }, - { 0x581A, 32840 }, - { 0x581B, 32756 }, - { 0x581C, 32812 }, - { 0x581D, 32788 }, - { 0x581E, 32800 }, - { 0x581F, 32784 }, - { 0x5820, 32844 }, - { 0x5821, 32804 }, - { 0x5822, 32772 }, - { 0x5823, 32711 }, - { 0x5824, 32721 }, - { 0x5825, 32726 }, - { 0x5826, 32716 }, - { 0x5827, 32731 }, - { 0x5828, 32864 }, - { 0x5829, 32868 }, - { 0x582A, 32872 }, - { 0x582B, 32876 }, - { 0x5840, 49983 }, - { 0x5841, 50034 }, - { 0x5842, 49974 }, - { 0x5843, 50037 }, - { 0x5844, 49962 }, - { 0x5845, 50022 }, - { 0x5846, 49980 }, - { 0x5847, 50043 }, - { 0x5848, 50007 }, - { 0x5849, 50052 }, - { 0x584A, 49965 }, - { 0x584B, 49992 }, - { 0x584C, 49995 }, - { 0x584D, 50046 }, - { 0x584E, 49959 }, - { 0x584F, 49989 }, - { 0x5850, 50055 }, - { 0x5851, 50064 }, - { 0x5852, 50028 }, - { 0x5853, 50010 }, - { 0x5854, 50061 }, - { 0x5855, 50019 }, - { 0x5856, 50070 }, - { 0x5857, 50016 }, - { 0x5858, 50001 }, - { 0x5859, 49986 }, - { 0x585A, 50049 }, - { 0x585B, 50004 }, - { 0x585C, 49977 }, - { 0x585D, 49944 }, - { 0x585E, 49950 }, - { 0x585F, 49956 }, - { 0x5860, 49947 }, - { 0x5861, 49953 }, - { 0x5862, 49998 }, - { 0x5863, 50013 }, - { 0x5864, 49971 }, - { 0x5865, 50031 }, - { 0x5866, 49968 }, - { 0x5867, 50101 }, - { 0x5868, 50105 }, - { 0x5869, 50058 }, - { 0x586A, 50067 }, - { 0x586B, 50025 }, - { 0x586C, 50040 }, - { 0x586D, 50078 }, - { 0x586E, 50086 }, - { 0x586F, 50074 }, - { 0x5870, 50082 }, - { 0x5871, 50097 }, - { 0x5872, 50109 }, - { 0x5873, 50090 }, - { 0x5874, 50093 }, - { 0x5875, 49940 }, - { 0x5876, 49933 }, - { 0x5877, 49936 }, - { 0x6B00, 15781 }, - { 0x6B01, 15785 }, - { 0x6B02, 15789 }, - { 0x6B03, 15805 }, - { 0x6B04, 15809 }, - { 0x6B05, 15813 }, - { 0x6B06, 15801 }, - { 0x6B13, 40340 }, - { 0x6B14, 40330 }, - { 0x6B15, 40335 }, - { 0x6B16, 40350 }, - { 0x6B17, 40345 }, - { 0x6B1D, 29883 }, - { 0x6B1E, 29673 }, - { 0x6B1F, 30089 }, - { 0x6B20, 30071 }, - { 0x6B21, 29970 }, - { 0x6B22, 29978 }, - { 0x6B23, 29958 }, - { 0x6B24, 29962 }, - { 0x6B25, 29987 }, - { 0x6B26, 29982 }, - { 0x6B27, 29974 }, - { 0x6B28, 29966 }, - { 0x6B29, 30075 }, - { 0x6B2A, 29931 }, - { 0x6B2B, 29925 }, - { 0x6B2C, 29950 }, - { 0x6B2D, 29942 }, - { 0x6B2E, 29901 }, - { 0x6B2F, 29906 }, - { 0x6B30, 29896 }, - { 0x6B31, 29806 }, - { 0x6B32, 30034 }, - { 0x6B33, 29994 }, - { 0x6B34, 29780 }, - { 0x6B35, 29875 }, - { 0x6B36, 30058 }, - { 0x6B38, 29862 }, - { 0x6B39, 29888 }, - { 0x6B3A, 30013 }, - { 0x6B3B, 29822 }, - { 0x6B3C, 30042 }, - { 0x6B3E, 29830 }, - { 0x6B40, 29838 }, - { 0x6B41, 30066 }, - { 0x6B43, 30003 }, - { 0x6B44, 29793 }, - { 0x6B46, 30050 }, - { 0x6B47, 29846 }, - { 0x6B48, 29917 }, - { 0x6B49, 29937 }, - { 0x6B4A, 29854 }, - { 0x6B4B, 29870 }, - { 0x6B4C, 29801 }, - { 0x6B4D, 29817 }, - { 0x6B4E, 29788 }, - { 0x6B4F, 30080 }, - { 0x6B50, 22683 }, - { 0x6B51, 22677 }, - { 0x6B52, 22728 }, - { 0x6B53, 22713 }, - { 0x6B54, 22723 }, - { 0x6B55, 22718 }, - { 0x6B56, 22116 }, - { 0x6B57, 22101 }, - { 0x6B58, 22111 }, - { 0x6B59, 22106 }, - { 0x6B5A, 23159 }, - { 0x6B5B, 23144 }, - { 0x6B5C, 23154 }, - { 0x6B5D, 23149 }, - { 0x6B5E, 23472 }, - { 0x6B5F, 23457 }, - { 0x6B60, 23467 }, - { 0x6B61, 23462 }, - { 0x6B62, 23436 }, - { 0x6B63, 23421 }, - { 0x6B64, 23431 }, - { 0x6B65, 23426 }, - { 0x6B66, 23123 }, - { 0x6B67, 23108 }, - { 0x6B68, 23118 }, - { 0x6B69, 23113 }, - { 0x6B6A, 22384 }, - { 0x6B6B, 22369 }, - { 0x6B6C, 22379 }, - { 0x6B6D, 22374 }, - { 0x6B6E, 23328 }, - { 0x6B6F, 23313 }, - { 0x6B70, 23323 }, - { 0x6B71, 23318 }, - { 0x6B72, 22764 }, - { 0x6B73, 22749 }, - { 0x6B74, 22759 }, - { 0x6B75, 22754 }, - { 0x6B76, 22986 }, - { 0x6B77, 22971 }, - { 0x6B78, 22981 }, - { 0x6B79, 22976 }, - { 0x6B7A, 23413 }, - { 0x6B7B, 23398 }, - { 0x6B7C, 23408 }, - { 0x6B7D, 23403 }, - { 0x6B7E, 23557 }, - { 0x6B7F, 23542 }, - { 0x6B80, 23552 }, - { 0x6B81, 23547 }, - { 0x6B82, 23449 }, - { 0x6B83, 23444 }, - { 0x6B84, 23172 }, - { 0x6B85, 23167 }, - { 0x6B86, 21710 }, - { 0x6B87, 21705 }, - { 0x6B88, 22741 }, - { 0x6B89, 22736 }, - { 0x6B8A, 21998 }, - { 0x6B8B, 21993 }, - { 0x6B8C, 22999 }, - { 0x6B8D, 22994 }, - { 0x6B8E, 23282 }, - { 0x6B8F, 23267 }, - { 0x6B90, 23277 }, - { 0x6B91, 23272 }, - { 0x6B92, 21811 }, - { 0x6B93, 21796 }, - { 0x6B94, 21806 }, - { 0x6B95, 21801 }, - { 0x6B96, 22787 }, - { 0x6B97, 22772 }, - { 0x6B98, 22782 }, - { 0x6B99, 22777 }, - { 0x6B9A, 23305 }, - { 0x6B9B, 23290 }, - { 0x6B9C, 23300 }, - { 0x6B9D, 23295 }, - { 0x6B9E, 22947 }, - { 0x6B9F, 22941 }, - { 0x6BA0, 23351 }, - { 0x6BA1, 23336 }, - { 0x6BA2, 23346 }, - { 0x6BA3, 23341 }, - { 0x6BA4, 21928 }, - { 0x6BA5, 21920 }, - { 0x6BA6, 21908 }, - { 0x6BA7, 21890 }, - { 0x6BA8, 21902 }, - { 0x6BA9, 21896 }, - { 0x6BAA, 21984 }, - { 0x6BAB, 21966 }, - { 0x6BAC, 21978 }, - { 0x6BAD, 21972 }, - { 0x6BAE, 22541 }, - { 0x6BAF, 22535 }, - { 0x6BB0, 22526 }, - { 0x6BB1, 22517 }, - { 0x6BD3, 21415 }, - { 0x6BD4, 21400 }, - { 0x6BD5, 21410 }, - { 0x6BD6, 21405 }, - { 0x6BD7, 21389 }, - { 0x6BD8, 21384 }, - { 0x6BD9, 21428 }, - { 0x6BDA, 21423 }, - { 0x6BDB, 21454 }, - { 0x6BDC, 21449 }, - { 0x6BDD, 21376 }, - { 0x6BDE, 21441 }, - { 0x6BDF, 21436 }, - { 0x6BE0, 23517 }, - { 0x6BE1, 23511 }, - { 0x6BE2, 23533 }, - { 0x6BE3, 23527 }, - { 0x6BE4, 21362 }, - { 0x6BE5, 21347 }, - { 0x6BE6, 21357 }, - { 0x6BE7, 21352 }, - { 0x6BE8, 23486 }, - { 0x6BE9, 23477 }, - { 0x6BEA, 25786 }, - { 0x6BEB, 25754 }, - { 0x6BEC, 25614 }, - { 0x6BED, 25604 }, - { 0x6BEE, 25724 }, - { 0x6BEF, 25714 }, - { 0x6BF0, 25594 }, - { 0x6BF1, 25584 }, - { 0x6BF2, 25634 }, - { 0x6BF3, 25624 }, - { 0x6BF4, 25654 }, - { 0x6BF5, 25644 }, - { 0x6BF6, 25574 }, - { 0x6BF7, 25554 }, - { 0x6BF8, 25564 }, - { 0x6BF9, 27342 }, - { 0x6BFA, 27316 }, - { 0x6BFB, 27329 }, - { 0x6BFC, 23199 }, - { 0x6BFD, 23181 }, - { 0x6BFE, 23193 }, - { 0x6BFF, 23187 }, - { 0x6C00, 25806 }, - { 0x6C01, 25674 }, - { 0x6C02, 25856 }, - { 0x6C03, 25775 }, - { 0x6C04, 25744 }, - { 0x6C05, 23829 }, - { 0x6C06, 23764 }, - { 0x6C07, 23852 }, - { 0x6C08, 23880 }, - { 0x6C09, 23814 }, - { 0x6C0A, 23799 }, - { 0x6C0B, 25237 }, - { 0x6C0C, 25144 }, - { 0x6C0D, 25279 }, - { 0x6C0E, 25353 }, - { 0x6C0F, 25194 }, - { 0x6C10, 25179 }, - { 0x6C11, 26835 }, - { 0x6C12, 26863 }, - { 0x6C13, 26827 }, - { 0x6C14, 26812 }, - { 0x6C15, 25965 }, - { 0x6C16, 26046 }, - { 0x6C17, 24197 }, - { 0x6C18, 24230 }, - { 0x6C19, 26097 }, - { 0x6C1A, 26053 }, - { 0x6C1B, 26111 }, - { 0x6C1C, 26670 }, - { 0x6C1D, 26572 }, - { 0x6C1E, 26710 }, - { 0x6C1F, 26776 }, - { 0x6C20, 24919 }, - { 0x6C21, 25002 }, - { 0x6C22, 23985 }, - { 0x6C23, 23927 }, - { 0x6C24, 24017 }, - { 0x6C25, 24031 }, - { 0x6C26, 25016 }, - { 0x6C27, 25103 }, - { 0x6C28, 25900 }, - { 0x6C29, 23690 }, - { 0x6C2A, 23741 }, - { 0x6C2B, 26931 }, - { 0x6C2C, 26973 }, - { 0x6C2D, 24089 }, - { 0x6C2E, 24045 }, - { 0x6C2F, 24121 }, - { 0x6C30, 24144 }, - { 0x6C31, 24074 }, - { 0x6C32, 24059 }, - { 0x6C33, 24790 }, - { 0x6C34, 24870 }, - { 0x6C35, 24819 }, - { 0x6C36, 24804 }, - { 0x6C37, 24385 }, - { 0x6C38, 24399 }, - { 0x6C39, 24313 }, - { 0x6C3A, 24413 }, - { 0x6C3B, 24341 }, - { 0x6C3C, 24468 }, - { 0x6C3D, 24377 }, - { 0x6C3E, 24355 }, - { 0x6C3F, 24689 }, - { 0x6C40, 24519 }, - { 0x6C41, 24721 }, - { 0x6C42, 24776 }, - { 0x6C43, 24622 }, - { 0x6C44, 24540 }, - { 0x6C45, 26224 }, - { 0x6C46, 26152 }, - { 0x6C47, 26265 }, - { 0x6C48, 26295 }, - { 0x6C49, 26173 }, - { 0x6C4A, 26159 }, - { 0x6C4B, 26457 }, - { 0x6C4C, 26337 }, - { 0x6C4D, 26471 }, - { 0x6C4E, 26518 }, - { 0x6C4F, 26387 }, - { 0x6C50, 26372 }, - { 0x6C51, 24259 }, - { 0x6C52, 24291 }, - { 0x6C53, 24244 }, - { 0x6C54, 24237 }, - { 0x6C55, 25464 }, - { 0x6C56, 25390 }, - { 0x6C57, 25478 }, - { 0x6C58, 25533 }, - { 0x6C59, 25440 }, - { 0x6C5A, 25425 }, - { 0x6C5B, 26783 }, - { 0x6C5C, 24877 }, - { 0x6C5D, 25930 }, - { 0x6C5E, 27294 }, - { 0x6C5F, 27301 }, - { 0x6C60, 27273 }, - { 0x6C61, 27259 }, - { 0x6C62, 27287 }, - { 0x6C63, 27308 }, - { 0x6C64, 25704 }, - { 0x6C65, 25876 }, - { 0x6C66, 25826 }, - { 0x6C67, 25866 }, - { 0x6C68, 25764 }, - { 0x6C69, 25734 }, - { 0x6C6A, 23785 }, - { 0x6C6B, 23894 }, - { 0x6C6C, 23859 }, - { 0x6C6D, 23887 }, - { 0x6C6E, 23806 }, - { 0x6C6F, 23792 }, - { 0x6C70, 25165 }, - { 0x6C71, 25367 }, - { 0x6C72, 25332 }, - { 0x6C73, 25360 }, - { 0x6C74, 25186 }, - { 0x6C75, 25172 }, - { 0x6C76, 26798 }, - { 0x6C77, 26877 }, - { 0x6C78, 26842 }, - { 0x6C79, 26870 }, - { 0x6C7A, 26819 }, - { 0x6C7B, 26805 }, - { 0x6C7C, 24066 }, - { 0x6C7D, 24052 }, - { 0x6C7E, 24811 }, - { 0x6C7F, 24797 }, - { 0x6C80, 24362 }, - { 0x6C81, 24320 }, - { 0x6C82, 24447 }, - { 0x6C83, 24369 }, - { 0x6C84, 24348 }, - { 0x6C85, 24755 }, - { 0x6C86, 24614 }, - { 0x6C87, 24533 }, - { 0x6C88, 26166 }, - { 0x6C89, 26281 }, - { 0x6C8A, 26358 }, - { 0x6C8B, 26532 }, - { 0x6C8C, 26497 }, - { 0x6C8D, 26525 }, - { 0x6C8E, 26379 }, - { 0x6C8F, 26365 }, - { 0x6C90, 25921 }, - { 0x6C91, 25411 }, - { 0x6C92, 25547 }, - { 0x6C93, 25512 }, - { 0x6C94, 25540 }, - { 0x6C95, 25432 }, - { 0x6C96, 25418 }, - { 0x6C97, 25796 }, - { 0x6C98, 25664 }, - { 0x6C99, 25816 }, - { 0x6C9A, 25846 }, - { 0x6C9B, 25694 }, - { 0x6C9C, 23822 }, - { 0x6C9D, 23757 }, - { 0x6C9E, 23845 }, - { 0x6C9F, 23873 }, - { 0x6CA0, 23778 }, - { 0x6CA1, 25230 }, - { 0x6CA2, 25137 }, - { 0x6CA3, 25272 }, - { 0x6CA4, 25346 }, - { 0x6CA5, 25158 }, - { 0x6CA6, 26856 }, - { 0x6CA7, 25958 }, - { 0x6CA8, 26039 }, - { 0x6CA9, 24190 }, - { 0x6CAA, 24223 }, - { 0x6CAB, 26090 }, - { 0x6CAC, 26104 }, - { 0x6CAD, 26663 }, - { 0x6CAE, 26565 }, - { 0x6CAF, 26703 }, - { 0x6CB0, 26769 }, - { 0x6CB1, 24912 }, - { 0x6CB2, 24970 }, - { 0x6CB3, 24995 }, - { 0x6CB4, 23978 }, - { 0x6CB5, 23920 }, - { 0x6CB6, 24010 }, - { 0x6CB7, 24024 }, - { 0x6CB8, 25009 }, - { 0x6CB9, 25893 }, - { 0x6CBA, 23683 }, - { 0x6CBB, 23734 }, - { 0x6CBC, 26924 }, - { 0x6CBD, 26966 }, - { 0x6CBE, 24082 }, - { 0x6CBF, 24038 }, - { 0x6CC0, 24114 }, - { 0x6CC1, 24137 }, - { 0x6CC2, 24783 }, - { 0x6CC3, 24863 }, - { 0x6CC4, 24392 }, - { 0x6CC5, 24306 }, - { 0x6CC6, 24406 }, - { 0x6CC7, 24334 }, - { 0x6CC8, 24461 }, - { 0x6CC9, 24682 }, - { 0x6CCA, 24512 }, - { 0x6CCB, 24714 }, - { 0x6CCC, 24769 }, - { 0x6CCD, 24526 }, - { 0x6CCE, 26217 }, - { 0x6CCF, 26145 }, - { 0x6CD0, 26258 }, - { 0x6CD1, 26288 }, - { 0x6CD2, 26450 }, - { 0x6CD3, 26330 }, - { 0x6CD4, 26464 }, - { 0x6CD5, 26511 }, - { 0x6CD6, 26351 }, - { 0x6CD7, 24252 }, - { 0x6CD8, 24284 }, - { 0x6CD9, 24298 }, - { 0x6CDA, 25457 }, - { 0x6CDB, 25383 }, - { 0x6CDC, 25471 }, - { 0x6CDD, 25526 }, - { 0x6CDE, 25404 }, - { 0x6CDF, 25836 }, - { 0x6CE0, 25684 }, - { 0x6CE1, 23866 }, - { 0x6CE2, 23771 }, - { 0x6CE3, 25339 }, - { 0x6CE4, 25151 }, - { 0x6CE5, 26849 }, - { 0x6CE6, 26791 }, - { 0x6CE7, 26762 }, - { 0x6CE8, 26579 }, - { 0x6CE9, 27221 }, - { 0x6CEA, 27055 }, - { 0x6CEB, 24327 }, - { 0x6CEC, 24454 }, - { 0x6CED, 24762 }, - { 0x6CEE, 26504 }, - { 0x6CEF, 26344 }, - { 0x6CF0, 25519 }, - { 0x6CF1, 25397 }, - { 0x6CF2, 27266 }, - { 0x6CF3, 27252 }, - { 0x6CF4, 27280 }, - { 0x6CF5, 25045 }, - { 0x6CF6, 25030 }, - { 0x6CF7, 23657 }, - { 0x6CF8, 23642 }, - { 0x6CF9, 26916 }, - { 0x6CFA, 26901 }, - { 0x6CFB, 26629 }, - { 0x6CFC, 26614 }, - { 0x6CFD, 27105 }, - { 0x6CFE, 27090 }, - { 0x6CFF, 24173 }, - { 0x6D00, 24158 }, - { 0x6D01, 25994 }, - { 0x6D02, 25979 }, - { 0x6D03, 26082 }, - { 0x6D04, 26067 }, - { 0x6D05, 24962 }, - { 0x6D06, 24947 }, - { 0x6D07, 23970 }, - { 0x6D08, 23955 }, - { 0x6D09, 27143 }, - { 0x6D0A, 27048 }, - { 0x6D0B, 27171 }, - { 0x6D0C, 27235 }, - { 0x6D0D, 27076 }, - { 0x6D0E, 26600 }, - { 0x6D0F, 24933 }, - { 0x6D10, 23941 }, - { 0x6D11, 25037 }, - { 0x6D12, 25023 }, - { 0x6D13, 23649 }, - { 0x6D14, 23635 }, - { 0x6D15, 26908 }, - { 0x6D16, 26894 }, - { 0x6D17, 26621 }, - { 0x6D18, 26607 }, - { 0x6D19, 27097 }, - { 0x6D1A, 27083 }, - { 0x6D1B, 24165 }, - { 0x6D1C, 24151 }, - { 0x6D1D, 25986 }, - { 0x6D1E, 25972 }, - { 0x6D1F, 26074 }, - { 0x6D20, 26060 }, - { 0x6D21, 24954 }, - { 0x6D22, 24940 }, - { 0x6D23, 23962 }, - { 0x6D24, 23948 }, - { 0x6D25, 27122 }, - { 0x6D26, 27027 }, - { 0x6D27, 27150 }, - { 0x6D28, 27214 }, - { 0x6D29, 27069 }, - { 0x6D2A, 26593 }, - { 0x6D2B, 24926 }, - { 0x6D2C, 23934 }, - { 0x6D2D, 27136 }, - { 0x6D2E, 27041 }, - { 0x6D2F, 27164 }, - { 0x6D30, 27228 }, - { 0x6D31, 26586 }, - { 0x6D32, 27062 }, - { 0x6D33, 25096 }, - { 0x6D34, 26656 }, - { 0x6D35, 26558 }, - { 0x6D36, 26696 }, - { 0x6D37, 27129 }, - { 0x6D38, 27034 }, - { 0x6D39, 27157 }, - { 0x6D3A, 25089 }, - { 0x6D3B, 25886 }, - { 0x6D3C, 25907 }, - { 0x6D3D, 25914 }, - { 0x6D3E, 31930 }, - { 0x6D3F, 31933 }, - { 0x6D50, 25221 }, - { 0x6D51, 25110 }, - { 0x6D52, 25119 }, - { 0x6D53, 25128 }, - { 0x6D54, 25263 }, - { 0x6D55, 25314 }, - { 0x6D56, 25286 }, - { 0x6D57, 25323 }, - { 0x6D58, 26002 }, - { 0x6D59, 26011 }, - { 0x6D5A, 24204 }, - { 0x6D5B, 24213 }, - { 0x6D5C, 26549 }, - { 0x6D5D, 26637 }, - { 0x6D5E, 26646 }, - { 0x6D5F, 26717 }, - { 0x6D60, 26726 }, - { 0x6D61, 26735 }, - { 0x6D62, 26744 }, - { 0x6D63, 26753 }, - { 0x6D64, 24885 }, - { 0x6D65, 24894 }, - { 0x6D66, 24977 }, - { 0x6D67, 27009 }, - { 0x6D68, 27018 }, - { 0x6D69, 27113 }, - { 0x6D6A, 27178 }, - { 0x6D6B, 27187 }, - { 0x6D6C, 27196 }, - { 0x6D6D, 27205 }, - { 0x6D6E, 23910 }, - { 0x6D6F, 23992 }, - { 0x6D70, 24001 }, - { 0x6D71, 25053 }, - { 0x6D72, 25062 }, - { 0x6D73, 25080 }, - { 0x6D74, 25071 }, - { 0x6D75, 23665 }, - { 0x6D76, 23716 }, - { 0x6D77, 23725 }, - { 0x6D78, 23706 }, - { 0x6D79, 26957 }, - { 0x6D7A, 26938 }, - { 0x6D7B, 26947 }, - { 0x6D7C, 24096 }, - { 0x6D7D, 24105 }, - { 0x6D7E, 24827 }, - { 0x6D7F, 24854 }, - { 0x6D80, 24494 }, - { 0x6D81, 24475 }, - { 0x6D82, 24484 }, - { 0x6D83, 24655 }, - { 0x6D84, 24646 }, - { 0x6D85, 24696 }, - { 0x6D86, 24705 }, - { 0x6D87, 24728 }, - { 0x6D88, 24737 }, - { 0x6D89, 26127 }, - { 0x6D8A, 26136 }, - { 0x6D8B, 26118 }, - { 0x6D8C, 26181 }, - { 0x6D8D, 26208 }, - { 0x6D8E, 26240 }, - { 0x6D8F, 26249 }, - { 0x6D92, 26199 }, - { 0x6D93, 24266 }, - { 0x6D94, 24275 }, - { 0x6D95, 26321 }, - { 0x6D96, 26311 }, - { 0x6D97, 26432 }, - { 0x6D98, 26441 }, - { 0x6D99, 26422 }, - { 0x6D9A, 26478 }, - { 0x6D9B, 26487 }, - { 0x6D9C, 25494 }, - { 0x6D9D, 25503 }, - { 0x6D9E, 23836 }, - { 0x6D9F, 25202 }, - { 0x6DA0, 25211 }, - { 0x6DA1, 25244 }, - { 0x6DA2, 25253 }, - { 0x6DA3, 25295 }, - { 0x6DA4, 25304 }, - { 0x6DA5, 26020 }, - { 0x6DA6, 25948 }, - { 0x6DA7, 26029 }, - { 0x6DA8, 26686 }, - { 0x6DA9, 24903 }, - { 0x6DAA, 27000 }, - { 0x6DAB, 23901 }, - { 0x6DAC, 24637 }, - { 0x6DAD, 24746 }, - { 0x6DAE, 25374 }, - { 0x6DAF, 25448 }, - { 0x6DB0, 25485 }, - { 0x6DB1, 26272 }, - { 0x6DB2, 24845 }, - { 0x6DB3, 26302 }, - { 0x6DB4, 24836 }, - { 0x6DB5, 24503 }, - { 0x6DB6, 23697 }, - { 0x6DB7, 24420 }, - { 0x6DB8, 26404 }, - { 0x6DB9, 26231 }, - { 0x6DBA, 24673 }, - { 0x6DBB, 24429 }, - { 0x6DBC, 24664 }, - { 0x6DBD, 26395 }, - { 0x6DBE, 25939 }, - { 0x6DBF, 24181 }, - { 0x6DC0, 26190 }, - { 0x6DC1, 24128 }, - { 0x6DC2, 23748 }, - { 0x6DC3, 24438 }, - { 0x6DC4, 23674 }, - { 0x6DC5, 24986 }, - { 0x6DC6, 26677 }, - { 0x6DC7, 26413 }, - { 0x6DF0, 26985 }, - { 0x6DF1, 26539 }, - { 0x6DF2, 26889 }, - { 0x6DF3, 26884 }, - { 0x6DF4, 27355 }, - { 0x6DF5, 26980 }, - { 0x6DF6, 27247 }, - { 0x6DF7, 27242 }, - { 0x6DF8, 27360 }, - { 0x6DF9, 26995 }, - { 0x6DFA, 27370 }, - { 0x6DFB, 27375 }, - { 0x6DFC, 8203 }, - { 0x6DFD, 27365 }, - { 0x6E00, 60438 }, - { 0x6E01, 60440 }, - { 0x6E02, 60442 }, - { 0x6E03, 60444 }, - { 0x6E04, 60446 }, - { 0x6E05, 60448 }, - { 0x6E06, 60450 }, - { 0x6E07, 60452 }, - { 0x6E08, 60454 }, - { 0x6E09, 60456 }, - { 0x6E0A, 60458 }, - { 0x6E0B, 60460 }, - { 0x6E0C, 60462 }, - { 0x6E0D, 60464 }, - { 0x6E0E, 60466 }, - { 0x6E0F, 60468 }, - { 0x6E10, 68144 }, - { 0x6E11, 68253 }, - { 0x6E12, 68246 }, - { 0x6E13, 68139 }, - { 0x6E14, 68229 }, - { 0x6E15, 68240 }, - { 0x6E16, 68223 }, - { 0x6E17, 68088 }, - { 0x6E18, 68179 }, - { 0x6E19, 68234 }, - { 0x6E20, 52679 }, - { 0x6E21, 52683 }, - { 0x6E22, 52548 }, - { 0x6E23, 52553 }, - { 0x6E30, 68051 }, - { 0x6E31, 68033 }, - { 0x6E32, 68039 }, - { 0x6E33, 68045 }, - { 0x6E34, 68132 }, - { 0x6E35, 68126 }, - { 0x6E36, 68217 }, - { 0x6E37, 68073 }, - { 0x6E38, 68164 }, - { 0x6E39, 68118 }, - { 0x6E3A, 68209 }, - { 0x6E3B, 68065 }, - { 0x6E3C, 68156 }, - { 0x6E3D, 68103 }, - { 0x6E3E, 68194 }, - { 0x6E3F, 68058 }, - { 0x6E40, 68149 }, - { 0x6E41, 68096 }, - { 0x6E42, 68187 }, - { 0x6E43, 68080 }, - { 0x6E44, 68171 }, - { 0x6E45, 32016 }, - { 0x6E46, 20701 }, - { 0x6E47, 68111 }, - { 0x6E48, 68202 }, - { 0x6E49, 28181 }, - { 0x6E4A, 60957 }, - { 0x6E4B, 8585 }, - { 0x6E4C, 28267 }, - { 0x6E4D, 28178 }, - { 0x6E4E, 60954 }, - { 0x6E4F, 8578 }, - { 0x6E50, 19960 }, - { 0x6E51, 20113 }, - { 0x6E52, 19940 }, - { 0x6E54, 20105 }, - { 0x6E55, 19958 }, - { 0x6E56, 20097 }, - { 0x6E57, 20110 }, - { 0x6E58, 19933 }, - { 0x6E59, 19952 }, - { 0x6E5A, 19971 }, - { 0x6E5B, 19943 }, - { 0x6E5C, 19962 }, - { 0x6E5D, 19947 }, - { 0x6E5E, 19966 }, - { 0x6E5F, 20049 }, - { 0x6E60, 20100 }, - { 0x6E61, 20077 }, - { 0x6E62, 19955 }, - { 0x6E63, 20119 }, - { 0x6E64, 20102 }, - { 0x6E65, 20116 }, - { 0x6E66, 20046 }, - { 0x6E68, 20074 }, - { 0x6E69, 20043 }, - { 0x6E6A, 20071 }, - { 0x6E6B, 20107 }, - { 0x6E70, 23619 }, - { 0x6E71, 23606 }, - { 0x6E72, 23613 }, - { 0x6E73, 21152 }, - { 0x6E74, 23631 }, - { 0x6E76, 21188 }, - { 0x6E77, 21184 }, - { 0x6E78, 21163 }, - { 0x6E79, 21159 }, - { 0x6E7A, 21204 }, - { 0x6E7B, 21200 }, - { 0x6E7C, 23582 }, - { 0x6E7D, 23578 }, - { 0x6E7E, 21322 }, - { 0x6E7F, 21318 }, - { 0x6E80, 23237 }, - { 0x6E81, 22660 }, - { 0x6E82, 22652 }, - { 0x6E83, 22616 }, - { 0x6E84, 22608 }, - { 0x6E85, 22424 }, - { 0x6E86, 22416 }, - { 0x6E87, 22638 }, - { 0x6E88, 22630 }, - { 0x6E89, 22480 }, - { 0x6E8A, 22456 }, - { 0x6E8B, 22472 }, - { 0x6E8C, 22464 }, - { 0x6E8D, 22705 }, - { 0x6E8E, 22668 }, - { 0x6E8F, 21595 }, - { 0x6E90, 21580 }, - { 0x6E91, 21590 }, - { 0x6E92, 21585 }, - { 0x6E93, 22355 }, - { 0x6E94, 22349 }, - { 0x6E95, 22361 }, - { 0x6E96, 22325 }, - { 0x6E97, 22335 }, - { 0x6E98, 22330 }, - { 0x6E99, 23100 }, - { 0x6E9A, 23085 }, - { 0x6E9B, 23095 }, - { 0x6E9C, 23090 }, - { 0x6E9D, 22829 }, - { 0x6E9E, 22814 }, - { 0x6E9F, 22824 }, - { 0x6EA0, 22819 }, - { 0x6EA1, 21871 }, - { 0x6EA2, 21856 }, - { 0x6EA3, 21866 }, - { 0x6EA4, 21861 }, - { 0x6EA5, 22852 }, - { 0x6EA6, 22837 }, - { 0x6EA7, 22847 }, - { 0x6EA8, 22842 }, - { 0x6EA9, 21697 }, - { 0x6EAA, 21692 }, - { 0x6EAB, 23077 }, - { 0x6EAC, 23072 }, - { 0x6EAD, 22237 }, - { 0x6EAE, 22232 }, - { 0x6EAF, 23136 }, - { 0x6EB0, 23131 }, - { 0x6EB1, 23064 }, - { 0x6EB2, 23049 }, - { 0x6EB3, 23059 }, - { 0x6EB4, 23054 }, - { 0x6EB5, 23380 }, - { 0x6EB6, 23365 }, - { 0x6EB7, 23375 }, - { 0x6EB8, 23370 }, - { 0x6EB9, 22274 }, - { 0x6EBA, 22259 }, - { 0x6EBB, 22269 }, - { 0x6EBC, 22264 }, - { 0x6EBD, 21624 }, - { 0x6EBE, 21609 }, - { 0x6EBF, 21619 }, - { 0x6EC0, 21614 }, - { 0x6EC1, 22304 }, - { 0x6EC2, 22289 }, - { 0x6EC3, 22299 }, - { 0x6EC4, 22294 }, - { 0x6EC5, 22580 }, - { 0x6EC6, 22565 }, - { 0x6EC7, 22575 }, - { 0x6EC8, 22570 }, - { 0x6EC9, 21508 }, - { 0x6ECA, 21493 }, - { 0x6ECB, 21503 }, - { 0x6ECC, 21498 }, - { 0x6ECD, 23229 }, - { 0x6ECE, 23214 }, - { 0x6ECF, 23224 }, - { 0x6ED0, 23219 }, - { 0x6ED1, 21769 }, - { 0x6ED2, 21754 }, - { 0x6ED3, 21764 }, - { 0x6ED4, 21759 }, - { 0x6ED5, 22152 }, - { 0x6ED6, 22137 }, - { 0x6ED7, 22147 }, - { 0x6ED8, 22142 }, - { 0x6ED9, 22039 }, - { 0x6EDA, 22024 }, - { 0x6EDB, 22034 }, - { 0x6EDC, 22029 }, - { 0x6EDD, 22093 }, - { 0x6EDE, 22078 }, - { 0x6EDF, 22088 }, - { 0x6EE0, 22083 }, - { 0x6EE1, 22887 }, - { 0x6EE2, 22872 }, - { 0x6EE3, 22882 }, - { 0x6EE4, 22877 }, - { 0x6EE5, 22963 }, - { 0x6EE6, 22932 }, - { 0x6EE7, 22958 }, - { 0x6EE8, 22953 }, - { 0x6EE9, 21957 }, - { 0x6EEA, 21942 }, - { 0x6EEB, 21952 }, - { 0x6EEC, 21947 }, - { 0x6EED, 22437 }, - { 0x6EEE, 22432 }, - { 0x6EEF, 22699 }, - { 0x6EF0, 22693 }, - { 0x6EF1, 22557 }, - { 0x6EF2, 22501 }, - { 0x6EF3, 22552 }, - { 0x6EF4, 22547 }, - { 0x6EF5, 24597 }, - { 0x6EF6, 24587 }, - { 0x6EF7, 24557 }, - { 0x6EF8, 24547 }, - { 0x6EF9, 24577 }, - { 0x6EFA, 24567 }, - { 0x6EFB, 24630 }, - { 0x6EFC, 24607 }, - { 0x6EFF, 8598 }, - { 0x6F01, 58251 }, - { 0x6F02, 58238 }, - { 0x6F03, 58214 }, - { 0x6F04, 58206 }, - { 0x6F05, 58217 }, - { 0x6F06, 58233 }, - { 0x6F07, 58243 }, - { 0x6F08, 57880 }, - { 0x6F09, 58198 }, - { 0x6F0A, 58225 }, - { 0x6F0B, 57883 }, - { 0x6F0C, 57888 }, - { 0x6F0D, 58257 }, - { 0x6F0E, 57865 }, - { 0x6F0F, 58223 }, - { 0x6F10, 57908 }, - { 0x6F11, 57890 }, - { 0x6F12, 57896 }, - { 0x6F13, 57917 }, - { 0x6F14, 57902 }, - { 0x6F15, 57899 }, - { 0x6F16, 57893 }, - { 0x6F17, 57914 }, - { 0x6F18, 57911 }, - { 0x6F19, 57905 }, - { 0x6F1A, 57886 }, - { 0x6F1B, 58241 }, - { 0x6F1C, 58235 }, - { 0x6F1D, 58209 }, - { 0x6F1E, 58254 }, - { 0x6F1F, 58227 }, - { 0x6F20, 58248 }, - { 0x6F21, 58053 }, - { 0x6F22, 58058 }, - { 0x6F23, 58063 }, - { 0x6F24, 58068 }, - { 0x6F25, 58073 }, - { 0x6F26, 58078 }, - { 0x6F27, 58083 }, - { 0x6F28, 58088 }, - { 0x6F29, 58093 }, - { 0x6F2A, 58098 }, - { 0x6F2B, 58103 }, - { 0x6F2C, 58108 }, - { 0x6F2D, 58113 }, - { 0x6F2E, 58118 }, - { 0x6F2F, 58123 }, - { 0x6F30, 58128 }, - { 0x6F31, 58133 }, - { 0x6F32, 58138 }, - { 0x6F33, 58143 }, - { 0x6F34, 58148 }, - { 0x6F35, 58153 }, - { 0x6F36, 58158 }, - { 0x6F37, 58163 }, - { 0x6F38, 58168 }, - { 0x6F39, 58173 }, - { 0x6F3A, 58178 }, - { 0x6F3B, 57876 }, - { 0x6F3C, 58220 }, - { 0x6F3D, 58194 }, - { 0x6F3E, 58245 }, - { 0x6F3F, 57850 }, - { 0x6F40, 57920 }, - { 0x6F41, 57923 }, - { 0x6F42, 57928 }, - { 0x6F43, 57933 }, - { 0x6F44, 57938 }, - { 0x6F45, 57943 }, - { 0x6F46, 57948 }, - { 0x6F47, 57953 }, - { 0x6F48, 57958 }, - { 0x6F49, 57963 }, - { 0x6F4A, 57968 }, - { 0x6F4B, 57973 }, - { 0x6F4C, 57978 }, - { 0x6F4D, 57983 }, - { 0x6F4E, 57988 }, - { 0x6F4F, 57993 }, - { 0x6F50, 57998 }, - { 0x6F51, 58003 }, - { 0x6F52, 58008 }, - { 0x6F53, 58013 }, - { 0x6F54, 58018 }, - { 0x6F55, 58023 }, - { 0x6F56, 58028 }, - { 0x6F57, 58033 }, - { 0x6F58, 58038 }, - { 0x6F59, 58043 }, - { 0x6F5A, 58048 }, - { 0x6F5B, 57868 }, - { 0x6F5C, 58230 }, - { 0x6F5D, 58186 }, - { 0x6F5E, 58201 }, - { 0x6F5F, 57872 }, - { 0x6F60, 58190 }, - { 0x6F61, 58741 }, - { 0x6F62, 58261 }, - { 0x6F63, 58272 }, - { 0x6F64, 58745 }, - { 0x6F65, 58718 }, - { 0x6F66, 58657 }, - { 0x6F67, 58673 }, - { 0x6F68, 58683 }, - { 0x6F69, 58693 }, - { 0x6F6A, 58678 }, - { 0x6F6B, 58688 }, - { 0x6F6C, 58703 }, - { 0x6F6D, 58713 }, - { 0x6F6E, 58708 }, - { 0x6F6F, 58698 }, - { 0x6F70, 58748 }, - { 0x6F71, 58489 }, - { 0x6F72, 58497 }, - { 0x6F73, 58509 }, - { 0x6F74, 58493 }, - { 0x6F75, 58505 }, - { 0x6F76, 58533 }, - { 0x6F77, 58541 }, - { 0x6F78, 58549 }, - { 0x6F79, 58537 }, - { 0x6F7A, 58545 }, - { 0x6F7B, 58613 }, - { 0x6F7C, 58621 }, - { 0x6F7D, 58629 }, - { 0x6F7E, 58617 }, - { 0x6F7F, 58625 }, - { 0x6F80, 58633 }, - { 0x6F81, 58641 }, - { 0x6F82, 58649 }, - { 0x6F83, 58637 }, - { 0x6F84, 58645 }, - { 0x6F85, 58573 }, - { 0x6F86, 58581 }, - { 0x6F87, 58589 }, - { 0x6F88, 58577 }, - { 0x6F89, 58585 }, - { 0x6F8A, 58513 }, - { 0x6F8B, 58521 }, - { 0x6F8C, 58529 }, - { 0x6F8D, 58517 }, - { 0x6F8E, 58525 }, - { 0x6F8F, 58553 }, - { 0x6F90, 58561 }, - { 0x6F91, 58569 }, - { 0x6F92, 58557 }, - { 0x6F93, 58565 }, - { 0x6F94, 58661 }, - { 0x6F95, 58669 }, - { 0x6F96, 58665 }, - { 0x6F97, 58593 }, - { 0x6F98, 58601 }, - { 0x6F99, 58609 }, - { 0x6F9A, 58597 }, - { 0x6F9B, 58605 }, - { 0x6F9C, 58653 }, - { 0x6F9D, 58501 }, - { 0x6F9E, 58722 }, - { 0x6F9F, 58727 }, - { 0x6FA0, 58279 }, - { 0x6FA1, 58398 }, - { 0x6FA2, 58466 }, - { 0x6FA3, 58442 }, - { 0x6FA4, 58386 }, - { 0x6FA5, 58446 }, - { 0x6FA6, 58450 }, - { 0x6FA7, 58402 }, - { 0x6FA8, 58470 }, - { 0x6FA9, 58394 }, - { 0x6FAA, 58474 }, - { 0x6FAB, 58458 }, - { 0x6FAC, 58462 }, - { 0x6FAD, 58430 }, - { 0x6FAE, 58482 }, - { 0x6FAF, 58478 }, - { 0x6FB0, 58454 }, - { 0x6FB1, 58382 }, - { 0x6FB2, 58390 }, - { 0x6FB3, 58438 }, - { 0x6FB4, 58426 }, - { 0x6FB5, 58366 }, - { 0x6FB6, 58422 }, - { 0x6FB7, 58378 }, - { 0x6FB8, 58370 }, - { 0x6FB9, 58434 }, - { 0x6FBA, 58406 }, - { 0x6FBB, 58410 }, - { 0x6FBC, 58418 }, - { 0x6FBD, 58414 }, - { 0x6FBE, 58374 }, - { 0x6FC2, 58282 }, - { 0x6FC3, 58302 }, - { 0x6FC4, 58330 }, - { 0x6FC5, 58358 }, - { 0x6FC6, 58306 }, - { 0x6FC7, 58286 }, - { 0x6FCA, 58362 }, - { 0x6FCB, 58334 }, - { 0x6FCC, 58294 }, - { 0x6FCD, 58318 }, - { 0x6FCE, 58350 }, - { 0x6FCF, 58314 }, - { 0x6FD2, 58342 }, - { 0x6FD3, 58298 }, - { 0x6FD4, 58354 }, - { 0x6FD5, 58322 }, - { 0x6FD6, 58326 }, - { 0x6FD7, 58346 }, - { 0x6FDA, 58310 }, - { 0x6FDB, 58338 }, - { 0x6FDC, 58290 }, - { 0x6FE0, 57862 }, - { 0x6FE1, 58183 }, - { 0x6FE2, 57853 }, - { 0x6FE3, 58212 }, - { 0x6FE4, 58203 }, - { 0x6FE5, 57859 }, - { 0x6FE6, 57856 }, - { 0x6FE8, 58268 }, - { 0x6FE9, 58735 }, - { 0x6FEA, 58486 }, - { 0x6FEB, 58738 }, - { 0x6FEC, 58732 }, - { 0x6FED, 58265 }, - { 0x6FEE, 58276 }, - { 0x6FF9, 63074 }, - { 0x6FFA, 63077 }, - { 0x6FFB, 63080 }, - { 0x6FFC, 31924 }, - { 0x6FFD, 63101 }, - { 0x7000, 31465 }, - { 0x7001, 31590 }, - { 0x7002, 31550 }, - { 0x7003, 31690 }, - { 0x7004, 31475 }, - { 0x7005, 31430 }, - { 0x7006, 31625 }, - { 0x7007, 31460 }, - { 0x7008, 31495 }, - { 0x7009, 31645 }, - { 0x700A, 31670 }, - { 0x700B, 31630 }, - { 0x700D, 31580 }, - { 0x700E, 31700 }, - { 0x700F, 31760 }, - { 0x7010, 31620 }, - { 0x7011, 31710 }, - { 0x7012, 31725 }, - { 0x7013, 31775 }, - { 0x7014, 31770 }, - { 0x7015, 31490 }, - { 0x7016, 31740 }, - { 0x7017, 31500 }, - { 0x7018, 31525 }, - { 0x7019, 31455 }, - { 0x701A, 31530 }, - { 0x701B, 31560 }, - { 0x701C, 31650 }, - { 0x701D, 31665 }, - { 0x701E, 31440 }, - { 0x701F, 31735 }, - { 0x7020, 31595 }, - { 0x7021, 31480 }, - { 0x7022, 31640 }, - { 0x7023, 31505 }, - { 0x7024, 31765 }, - { 0x7025, 31520 }, - { 0x7026, 31570 }, - { 0x7028, 31685 }, - { 0x7029, 31545 }, - { 0x702A, 31655 }, - { 0x702B, 31435 }, - { 0x702C, 31540 }, - { 0x702D, 31565 }, - { 0x702E, 31470 }, - { 0x702F, 31605 }, - { 0x7030, 31485 }, - { 0x7031, 31675 }, - { 0x7032, 31680 }, - { 0x7033, 31445 }, - { 0x7034, 31585 }, - { 0x7035, 31450 }, - { 0x7036, 31720 }, - { 0x7037, 31660 }, - { 0x7038, 31750 }, - { 0x7039, 31600 }, - { 0x703A, 31610 }, - { 0x703C, 31510 }, - { 0x703D, 31745 }, - { 0x703F, 31515 }, - { 0x7040, 31535 }, - { 0x7041, 31615 }, - { 0x7042, 31780 }, - { 0x7043, 31730 }, - { 0x7044, 31790 }, - { 0x7045, 31635 }, - { 0x7046, 31555 }, - { 0x7047, 31695 }, - { 0x7048, 31755 }, - { 0x7049, 31575 }, - { 0x704A, 31715 }, - { 0x704B, 31705 }, - { 0x704C, 31785 }, - { 0x704D, 31795 }, - { 0x7050, 30804 }, - { 0x7051, 30808 }, - { 0x7052, 30812 }, - { 0x7053, 30816 }, - { 0x7054, 30820 }, - { 0x7055, 30824 }, - { 0x7056, 30828 }, - { 0x7057, 30832 }, - { 0x7058, 30836 }, - { 0x7059, 30840 }, - { 0x705A, 30844 }, - { 0x705B, 30848 }, - { 0x705C, 30852 }, - { 0x705D, 30856 }, - { 0x7080, 30860 }, - { 0x7081, 30865 }, - { 0x7082, 30870 }, - { 0x7083, 30875 }, - { 0x7084, 31205 }, - { 0x7085, 31210 }, - { 0x7086, 31215 }, - { 0x7087, 31220 }, - { 0x7088, 31225 }, - { 0x7089, 31230 }, - { 0x708A, 31235 }, - { 0x708B, 31240 }, - { 0x708C, 31245 }, - { 0x708D, 31250 }, - { 0x708E, 30880 }, - { 0x708F, 30885 }, - { 0x7090, 30890 }, - { 0x7091, 30895 }, - { 0x7092, 30900 }, - { 0x7093, 31400 }, - { 0x7094, 31405 }, - { 0x7095, 30905 }, - { 0x7096, 30910 }, - { 0x7097, 30915 }, - { 0x7098, 31410 }, - { 0x7099, 31415 }, - { 0x709A, 30919 }, - { 0x709B, 30924 }, - { 0x709C, 30929 }, - { 0x709D, 30933 }, - { 0x709E, 30938 }, - { 0x709F, 30942 }, - { 0x70A0, 30946 }, - { 0x70A1, 30951 }, - { 0x70A2, 30955 }, - { 0x70A3, 30959 }, - { 0x70A4, 31420 }, - { 0x70A5, 30963 }, - { 0x70A6, 30967 }, - { 0x70A7, 30971 }, - { 0x70A8, 30976 }, - { 0x70A9, 30980 }, - { 0x70AA, 30984 }, - { 0x70AB, 30989 }, - { 0x70AC, 30994 }, - { 0x70AD, 30998 }, - { 0x70AE, 31002 }, - { 0x70AF, 31006 }, - { 0x70B0, 31010 }, - { 0x70B1, 31014 }, - { 0x70B2, 31018 }, - { 0x70B3, 31022 }, - { 0x70B4, 31026 }, - { 0x70B5, 31030 }, - { 0x70B6, 31035 }, - { 0x70B7, 31039 }, - { 0x70B8, 31044 }, - { 0x70B9, 31048 }, - { 0x70BA, 31052 }, - { 0x70BB, 31056 }, - { 0x70BC, 31060 }, - { 0x70BD, 31064 }, - { 0x70BE, 31068 }, - { 0x70BF, 31072 }, - { 0x70C0, 31076 }, - { 0x70C1, 31080 }, - { 0x70C2, 31084 }, - { 0x70C3, 31088 }, - { 0x70C4, 31093 }, - { 0x70C5, 31098 }, - { 0x70C6, 31103 }, - { 0x70C7, 31108 }, - { 0x70C8, 31113 }, - { 0x70C9, 31117 }, - { 0x70CA, 31122 }, - { 0x70CB, 31126 }, - { 0x70CC, 31130 }, - { 0x70CD, 31136 }, - { 0x70CE, 31141 }, - { 0x70CF, 31147 }, - { 0x70D0, 31152 }, - { 0x70D1, 31156 }, - { 0x70D2, 31425 }, - { 0x70D3, 31160 }, - { 0x70D4, 31164 }, - { 0x70D5, 31168 }, - { 0x70D6, 31172 }, - { 0x70D7, 31176 }, - { 0x70D8, 31180 }, - { 0x70D9, 31185 }, - { 0x70DA, 31189 }, - { 0x70DB, 31193 }, - { 0x70DC, 31197 }, - { 0x70DD, 31201 }, - { 0x70DE, 31255 }, - { 0x70DF, 31260 }, - { 0x70E0, 31265 }, - { 0x70E1, 31270 }, - { 0x70E2, 31275 }, - { 0x70E3, 31280 }, - { 0x70E4, 31285 }, - { 0x70E5, 31290 }, - { 0x70E6, 31295 }, - { 0x70E7, 31300 }, - { 0x70E8, 31305 }, - { 0x70E9, 31310 }, - { 0x70EA, 31315 }, - { 0x70EB, 31320 }, - { 0x70EC, 31325 }, - { 0x70ED, 31330 }, - { 0x70EE, 31335 }, - { 0x70EF, 31340 }, - { 0x70F0, 31345 }, - { 0x70F1, 31350 }, - { 0x70F2, 31355 }, - { 0x70F3, 31360 }, - { 0x70F4, 31365 }, - { 0x70F5, 31370 }, - { 0x70F6, 31375 }, - { 0x70F7, 31380 }, - { 0x70F8, 31385 }, - { 0x70F9, 31390 }, - { 0x70FA, 31395 }, - { 0x7100, 20878 }, - { 0x7101, 20874 }, - { 0x7102, 20882 }, - { 0x7107, 20890 }, - { 0x7108, 20919 }, - { 0x7109, 21006 }, - { 0x710A, 20941 }, - { 0x710B, 20930 }, - { 0x710C, 20901 }, - { 0x710D, 20988 }, - { 0x710E, 20963 }, - { 0x710F, 20952 }, - { 0x7110, 20912 }, - { 0x7111, 21038 }, - { 0x7112, 21031 }, - { 0x7113, 20981 }, - { 0x7114, 20974 }, - { 0x7115, 20999 }, - { 0x7116, 21045 }, - { 0x7117, 21017 }, - { 0x7118, 21024 }, - { 0x7119, 20893 }, - { 0x711A, 20922 }, - { 0x711B, 21009 }, - { 0x711C, 20944 }, - { 0x711D, 20933 }, - { 0x711E, 20904 }, - { 0x711F, 20991 }, - { 0x7120, 20966 }, - { 0x7121, 20955 }, - { 0x7122, 20897 }, - { 0x7123, 20926 }, - { 0x7124, 21013 }, - { 0x7125, 20948 }, - { 0x7126, 20937 }, - { 0x7127, 20908 }, - { 0x7128, 20995 }, - { 0x7129, 20970 }, - { 0x712A, 20959 }, - { 0x712B, 20915 }, - { 0x712C, 21041 }, - { 0x712D, 21034 }, - { 0x712E, 20984 }, - { 0x712F, 20977 }, - { 0x7130, 21002 }, - { 0x7131, 21048 }, - { 0x7132, 21020 }, - { 0x7133, 21027 }, - { 0x7137, 21052 }, - { 0x7138, 21056 }, - { 0x7139, 21068 }, - { 0x713A, 21060 }, - { 0x713B, 21064 }, - { 0x713C, 20869 }, - { 0x713D, 20885 }, - { 0x713E, 21076 }, - { 0x713F, 21072 }, - { 0x7140, 11558 }, - { 0x7141, 11536 }, - { 0x7142, 11541 }, - { 0x7143, 11596 }, - { 0x7144, 11638 }, - { 0x7145, 11600 }, - { 0x7146, 11627 }, - { 0x7147, 11652 }, - { 0x7148, 11622 }, - { 0x7149, 11585 }, - { 0x714A, 11647 }, - { 0x714B, 11552 }, - { 0x714C, 11611 }, - { 0x714D, 11569 }, - { 0x714E, 11632 }, - { 0x714F, 11617 }, - { 0x7150, 11580 }, - { 0x7151, 11642 }, - { 0x7152, 11546 }, - { 0x7153, 11605 }, - { 0x7154, 11563 }, - { 0x7155, 11590 }, - { 0x7156, 11657 }, - { 0x7157, 11575 }, - { 0x7158, 11673 }, - { 0x7159, 11688 }, - { 0x715A, 11756 }, - { 0x715B, 11742 }, - { 0x715C, 11706 }, - { 0x715D, 11678 }, - { 0x715E, 11746 }, - { 0x715F, 11778 }, - { 0x7160, 11768 }, - { 0x7161, 11772 }, - { 0x7162, 11760 }, - { 0x7163, 11738 }, - { 0x7164, 11702 }, - { 0x7165, 11729 }, - { 0x7166, 11787 }, - { 0x7167, 11791 }, - { 0x7168, 11764 }, - { 0x7169, 11720 }, - { 0x716A, 11692 }, - { 0x716B, 11724 }, - { 0x716C, 11751 }, - { 0x716D, 11782 }, - { 0x716E, 11710 }, - { 0x716F, 11733 }, - { 0x7170, 11663 }, - { 0x7171, 11697 }, - { 0x7172, 11715 }, - { 0x7173, 11668 }, - { 0x7174, 11683 }, - { 0x7175, 9106 }, - { 0x7176, 9110 }, - { 0x7177, 9131 }, - { 0x7178, 10337 }, - { 0x7179, 9151 }, - { 0x717A, 10525 }, - { 0x717B, 11447 }, - { 0x717C, 9146 }, - { 0x717D, 9127 }, - { 0x717E, 10333 }, - { 0x717F, 9142 }, - { 0x7180, 9138 }, - { 0x7181, 11481 }, - { 0x7182, 11452 }, - { 0x7183, 9174 }, - { 0x7184, 10522 }, - { 0x7185, 10528 }, - { 0x7186, 10464 }, - { 0x7187, 10461 }, - { 0x7188, 10467 }, - { 0x7189, 11492 }, - { 0x718A, 9154 }, - { 0x7300, 6565 }, - { 0x7301, 6585 }, - { 0x7302, 6629 }, - { 0x7303, 6589 }, - { 0x7304, 6569 }, - { 0x7305, 6649 }, - { 0x7306, 6653 }, - { 0x7307, 6617 }, - { 0x7308, 6685 }, - { 0x7309, 6573 }, - { 0x730A, 6625 }, - { 0x730B, 6597 }, - { 0x730C, 6601 }, - { 0x730D, 6605 }, - { 0x730E, 6669 }, - { 0x730F, 6577 }, - { 0x7310, 6637 }, - { 0x7311, 6681 }, - { 0x7312, 6633 }, - { 0x7313, 6609 }, - { 0x7314, 6613 }, - { 0x7315, 6641 }, - { 0x7316, 6581 }, - { 0x7317, 6661 }, - { 0x7318, 6677 }, - { 0x7319, 6673 }, - { 0x731A, 6593 }, - { 0x731B, 6665 }, - { 0x731C, 6657 }, - { 0x731D, 6621 }, - { 0x731E, 6645 }, - { 0x7320, 6689 }, - { 0x7321, 6697 }, - { 0x7322, 6693 }, - { 0x7323, 6701 }, - { 0x7330, 28503 }, - { 0x7331, 28570 }, - { 0x7332, 28509 }, - { 0x7333, 28506 }, - { 0x7334, 28558 }, - { 0x7335, 28576 }, - { 0x7336, 28515 }, - { 0x7337, 28512 }, - { 0x7338, 28567 }, - { 0x7339, 28497 }, - { 0x733A, 28534 }, - { 0x733B, 28537 }, - { 0x733C, 28540 }, - { 0x733D, 28561 }, - { 0x733E, 28500 }, - { 0x733F, 28522 }, - { 0x7340, 28573 }, - { 0x7341, 28564 }, - { 0x7342, 28546 }, - { 0x7343, 28549 }, - { 0x7344, 28552 }, - { 0x7345, 28555 }, - { 0x7346, 28525 }, - { 0x7347, 28531 }, - { 0x7348, 28528 }, - { 0x7349, 28543 }, - { 0x734A, 28518 }, - { 0x7380, 50736 }, - { 0x7381, 50739 }, - { 0x7382, 50763 }, - { 0x7383, 50718 }, - { 0x7384, 50760 }, - { 0x7385, 50697 }, - { 0x7386, 50706 }, - { 0x7387, 50757 }, - { 0x7388, 50745 }, - { 0x7389, 50730 }, - { 0x738A, 50733 }, - { 0x738B, 50715 }, - { 0x738C, 50754 }, - { 0x738D, 50769 }, - { 0x738E, 50721 }, - { 0x738F, 50742 }, - { 0x7390, 50724 }, - { 0x7391, 50709 }, - { 0x7392, 50775 }, - { 0x7393, 50712 }, - { 0x7394, 50700 }, - { 0x7395, 50751 }, - { 0x7396, 50748 }, - { 0x7397, 50772 }, - { 0x7398, 50778 }, - { 0x7399, 50766 }, - { 0x739A, 50703 }, - { 0x739B, 50691 }, - { 0x739C, 50694 }, - { 0x739D, 50727 }, - { 0x739F, 50688 }, - { 0x73A0, 6705 }, - { 0x73A1, 6709 }, - { 0x73A2, 6713 }, - { 0x73A3, 6761 }, - { 0x73A4, 6765 }, - { 0x73A5, 6741 }, - { 0x73A6, 6745 }, - { 0x73A7, 6825 }, - { 0x73A8, 6721 }, - { 0x73A9, 6753 }, - { 0x73AA, 6757 }, - { 0x73AB, 6809 }, - { 0x73AC, 6813 }, - { 0x73AD, 6725 }, - { 0x73AE, 6729 }, - { 0x73AF, 6733 }, - { 0x73B0, 6845 }, - { 0x73B1, 6793 }, - { 0x73B2, 6717 }, - { 0x73B3, 6737 }, - { 0x73B4, 6785 }, - { 0x73B5, 6789 }, - { 0x73B6, 6773 }, - { 0x73B7, 6777 }, - { 0x73B8, 6781 }, - { 0x73B9, 6829 }, - { 0x73BA, 6817 }, - { 0x73BB, 6821 }, - { 0x73BC, 6797 }, - { 0x73BD, 6801 }, - { 0x73BE, 6769 }, - { 0x73BF, 6805 }, - { 0x73C0, 6833 }, - { 0x73C1, 6837 }, - { 0x73C2, 6841 }, - { 0x73C3, 6749 }, - { 0x73C8, 6861 }, - { 0x73C9, 6869 }, - { 0x73CA, 6873 }, - { 0x73CB, 6877 }, - { 0x73CC, 6857 }, - { 0x73CD, 6865 }, - { 0x73CE, 6849 }, - { 0x73CF, 6853 }, - { 0x73D0, 6881 }, - { 0x73D1, 6885 }, - { 0x73D2, 6893 }, - { 0x73D3, 6889 }, - { 0x73D4, 6897 }, - { 0x73D5, 6901 }, - { 0x7400, 36324 }, - { 0x7401, 36319 }, - { 0x7402, 36314 }, - { 0x7403, 36334 }, - { 0x7404, 36329 }, - { 0x7405, 36339 }, - { 0x7406, 36362 }, - { 0x7407, 36357 }, - { 0x7408, 36352 }, - { 0x7409, 36372 }, - { 0x740A, 36367 }, - { 0x740B, 36377 }, - { 0x740C, 36214 }, - { 0x740D, 36250 }, - { 0x740E, 36254 }, - { 0x740F, 36302 }, - { 0x7410, 36210 }, - { 0x7411, 36290 }, - { 0x7412, 36258 }, - { 0x7413, 36294 }, - { 0x7414, 36262 }, - { 0x7415, 36310 }, - { 0x7416, 36282 }, - { 0x7417, 36286 }, - { 0x7418, 36278 }, - { 0x7419, 36218 }, - { 0x741A, 36298 }, - { 0x741B, 36274 }, - { 0x741C, 36344 }, - { 0x741D, 36238 }, - { 0x741E, 36306 }, - { 0x741F, 36270 }, - { 0x7420, 36348 }, - { 0x7421, 36234 }, - { 0x7422, 36222 }, - { 0x7423, 36226 }, - { 0x7424, 36230 }, - { 0x7425, 36266 }, - { 0x7426, 36246 }, - { 0x7427, 36242 }, - { 0x7428, 36152 }, - { 0x7429, 36147 }, - { 0x742A, 36142 }, - { 0x742B, 36162 }, - { 0x742C, 36157 }, - { 0x742D, 36167 }, - { 0x742E, 36190 }, - { 0x742F, 36185 }, - { 0x7430, 36180 }, - { 0x7431, 36200 }, - { 0x7432, 36195 }, - { 0x7433, 36205 }, - { 0x7434, 36042 }, - { 0x7435, 36078 }, - { 0x7436, 36082 }, - { 0x7437, 36130 }, - { 0x7438, 36038 }, - { 0x7439, 36118 }, - { 0x743A, 36086 }, - { 0x743B, 36122 }, - { 0x743C, 36090 }, - { 0x743D, 36138 }, - { 0x743E, 36110 }, - { 0x743F, 36114 }, - { 0x7440, 36106 }, - { 0x7441, 36046 }, - { 0x7442, 36126 }, - { 0x7443, 36102 }, - { 0x7444, 36172 }, - { 0x7445, 36066 }, - { 0x7446, 36134 }, - { 0x7447, 36098 }, - { 0x7448, 36176 }, - { 0x7449, 36062 }, - { 0x744A, 36050 }, - { 0x744B, 36054 }, - { 0x744C, 36058 }, - { 0x744D, 36094 }, - { 0x744E, 36074 }, - { 0x744F, 36070 }, - { 0x7450, 38625 }, - { 0x7451, 38589 }, - { 0x7452, 38613 }, - { 0x7453, 38565 }, - { 0x7454, 38649 }, - { 0x7455, 38526 }, - { 0x7456, 38631 }, - { 0x7457, 38652 }, - { 0x7458, 38598 }, - { 0x7459, 38610 }, - { 0x745A, 38550 }, - { 0x745B, 38607 }, - { 0x745C, 38568 }, - { 0x745D, 38592 }, - { 0x745E, 38634 }, - { 0x745F, 38604 }, - { 0x7460, 38655 }, - { 0x7461, 38646 }, - { 0x7462, 38595 }, - { 0x7463, 38643 }, - { 0x7464, 38616 }, - { 0x7465, 38619 }, - { 0x7466, 38517 }, - { 0x7467, 38559 }, - { 0x7468, 38544 }, - { 0x7469, 38532 }, - { 0x746A, 38520 }, - { 0x746B, 38637 }, - { 0x746C, 38586 }, - { 0x746D, 38514 }, - { 0x746E, 38628 }, - { 0x746F, 38577 }, - { 0x7470, 38556 }, - { 0x7471, 38535 }, - { 0x7472, 38574 }, - { 0x7473, 38529 }, - { 0x7474, 38580 }, - { 0x7475, 38622 }, - { 0x7476, 38583 }, - { 0x7477, 38547 }, - { 0x7478, 38541 }, - { 0x7479, 38523 }, - { 0x747A, 38538 }, - { 0x747B, 38562 }, - { 0x747C, 38640 }, - { 0x747D, 38553 }, - { 0x747E, 38571 }, - { 0x747F, 38601 }, - { 0x7480, 38443 }, - { 0x7481, 38398 }, - { 0x7482, 38425 }, - { 0x7483, 38413 }, - { 0x7484, 38428 }, - { 0x7485, 38437 }, - { 0x7486, 38449 }, - { 0x7487, 38419 }, - { 0x7488, 38422 }, - { 0x7489, 38467 }, - { 0x748A, 38434 }, - { 0x748B, 38446 }, - { 0x748C, 38407 }, - { 0x748D, 38404 }, - { 0x748E, 38464 }, - { 0x748F, 38452 }, - { 0x7490, 38455 }, - { 0x7491, 38458 }, - { 0x7492, 38461 }, - { 0x7493, 38440 }, - { 0x7494, 38410 }, - { 0x7495, 38431 }, - { 0x7496, 38380 }, - { 0x7497, 38383 }, - { 0x7498, 38386 }, - { 0x7499, 38389 }, - { 0x749A, 38392 }, - { 0x749B, 38395 }, - { 0x749C, 38401 }, - { 0x749D, 38416 }, - { 0x74A0, 38368 }, - { 0x74A1, 38350 }, - { 0x74A2, 38356 }, - { 0x74A3, 38377 }, - { 0x74A4, 38362 }, - { 0x74A5, 38359 }, - { 0x74A6, 38353 }, - { 0x74A7, 38374 }, - { 0x74A8, 38371 }, - { 0x74A9, 38365 }, - { 0x7800, 35869 }, - { 0x7801, 35872 }, - { 0x7802, 35875 }, - { 0x7803, 35878 }, - { 0x7804, 35881 }, - { 0x7805, 35884 }, - { 0x7808, 35887 }, - { 0x780A, 35890 }, - { 0x780B, 35893 }, - { 0x780C, 35896 }, - { 0x780D, 35899 }, - { 0x780E, 35902 }, - { 0x780F, 35905 }, - { 0x7810, 35908 }, - { 0x7811, 35911 }, - { 0x7812, 35914 }, - { 0x7813, 35917 }, - { 0x7814, 35920 }, - { 0x7815, 35923 }, - { 0x7816, 35926 }, - { 0x7817, 35929 }, - { 0x7818, 35932 }, - { 0x7819, 35935 }, - { 0x781A, 35938 }, - { 0x781B, 35941 }, - { 0x781C, 35944 }, - { 0x781D, 35947 }, - { 0x781E, 35950 }, - { 0x781F, 35953 }, - { 0x7820, 35956 }, - { 0x7821, 35959 }, - { 0x7822, 35962 }, - { 0x7823, 35965 }, - { 0x7824, 35968 }, - { 0x7825, 35971 }, - { 0x7826, 35974 }, - { 0x7827, 35977 }, - { 0x7828, 35980 }, - { 0x7829, 35983 }, - { 0x782A, 35986 }, - { 0x782B, 35989 }, - { 0x782C, 35992 }, - { 0x782D, 35995 }, - { 0x782E, 35998 }, - { 0x782F, 36001 }, - { 0x7830, 36004 }, - { 0x7831, 36007 }, - { 0x7832, 36010 }, - { 0x7833, 36013 }, - { 0x7834, 36016 }, - { 0x7835, 36019 }, - { 0x7837, 36022 }, - { 0x7838, 36025 }, - { 0x783C, 36028 }, - { 0x783F, 36031 }, - { 0x7900, 62014 }, - { 0x7901, 62017 }, - { 0x7902, 62053 }, - { 0x7903, 62050 }, - { 0x7904, 62005 }, - { 0x7905, 62041 }, - { 0x7906, 62047 }, - { 0x7907, 62020 }, - { 0x7908, 62038 }, - { 0x7909, 62044 }, - { 0x790A, 62023 }, - { 0x790B, 62056 }, - { 0x790C, 62026 }, - { 0x790D, 62029 }, - { 0x790E, 62065 }, - { 0x790F, 62011 }, - { 0x7910, 62008 }, - { 0x7911, 62062 }, - { 0x7912, 62032 }, - { 0x7913, 62059 }, - { 0x7914, 62068 }, - { 0x7915, 62035 }, - { 0x7916, 62071 }, - { 0x7917, 62078 }, - { 0x7918, 62081 }, - { 0x7919, 62074 }, - { 0x791F, 62002 }, - { 0x7A00, 61841 }, - { 0x7A01, 61820 }, - { 0x7A02, 61828 }, - { 0x7A03, 61832 }, - { 0x7A05, 61816 }, - { 0x7A06, 61824 }, - { 0x7A0C, 61837 }, - { 0x7A0D, 61793 }, - { 0x7A0E, 61801 }, - { 0x7A0F, 61798 }, - { 0x7A10, 61862 }, - { 0x7A11, 61910 }, - { 0x7A12, 61853 }, - { 0x7A13, 61907 }, - { 0x7A15, 61847 }, - { 0x7A16, 61898 }, - { 0x7A17, 61859 }, - { 0x7A19, 61919 }, - { 0x7A1A, 61934 }, - { 0x7A1B, 61940 }, - { 0x7A1C, 61901 }, - { 0x7A1D, 61937 }, - { 0x7A1E, 61916 }, - { 0x7A1F, 61883 }, - { 0x7A20, 61931 }, - { 0x7A21, 61850 }, - { 0x7A22, 61904 }, - { 0x7A23, 61871 }, - { 0x7A24, 61874 }, - { 0x7A25, 61922 }, - { 0x7A26, 61844 }, - { 0x7A27, 61895 }, - { 0x7A28, 61868 }, - { 0x7A29, 61889 }, - { 0x7A2A, 61877 }, - { 0x7A2B, 61865 }, - { 0x7A2C, 61886 }, - { 0x7A2D, 61925 }, - { 0x7A2E, 61928 }, - { 0x7A2F, 61880 }, - { 0x7A30, 61892 }, - { 0x7A31, 61856 }, - { 0x7A32, 61913 }, - { 0x7A33, 61943 }, - { 0x7A38, 61782 }, - { 0x7A39, 61790 }, - { 0x7A3A, 61786 }, - { 0x7A3F, 61960 }, - { 0x7A40, 61804 }, - { 0x7A41, 61807 }, - { 0x7A42, 61813 }, - { 0x7A43, 61810 }, - { 0x7A44, 61954 }, - { 0x7A45, 61957 }, - { 0x7A46, 61946 }, - { 0x7A47, 61950 }, - { 0x7A50, 61962 }, - { 0x7A51, 61974 }, - { 0x7A52, 61978 }, - { 0x7A53, 61985 }, - { 0x7A54, 61989 }, - { 0x7A55, 61971 }, - { 0x7A56, 61965 }, - { 0x7A57, 61981 }, - { 0x7A58, 61968 }, - { 0x8000, 52816 }, - { 0x8001, 52819 }, - { 0x8002, 52829 }, - { 0x8003, 52844 }, - { 0x8004, 52824 }, - { 0x8005, 52834 }, - { 0x8006, 52855 }, - { 0x8007, 52850 }, - { 0x8008, 52839 }, - { 0x8009, 52925 }, - { 0x800A, 52928 }, - { 0x800B, 52960 }, - { 0x800C, 52965 }, - { 0x800D, 52949 }, - { 0x800E, 52971 }, - { 0x800F, 52944 }, - { 0x8010, 52954 }, - { 0x8011, 52977 }, - { 0x8012, 52982 }, - { 0x8013, 52987 }, - { 0x8014, 52935 }, - { 0x8015, 52931 }, - { 0x8016, 53994 }, - { 0x8017, 54020 }, - { 0x8018, 54004 }, - { 0x8019, 53997 }, - { 0x801A, 54010 }, - { 0x801B, 54015 }, - { 0x801C, 52992 }, - { 0x801D, 52995 }, - { 0x801E, 52998 }, - { 0x801F, 53003 }, - { 0x8020, 53010 }, - { 0x8021, 53013 }, - { 0x8022, 53038 }, - { 0x8023, 53043 }, - { 0x8024, 53018 }, - { 0x8025, 53048 }, - { 0x8026, 53023 }, - { 0x8027, 53028 }, - { 0x8028, 53033 }, - { 0x8029, 55645 }, - { 0x802A, 56258 }, - { 0x802B, 55648 }, - { 0x802C, 55651 }, - { 0x802D, 53053 }, - { 0x802E, 53056 }, - { 0x802F, 53076 }, - { 0x8030, 53067 }, - { 0x8031, 53061 }, - { 0x8032, 56261 }, - { 0x8033, 55656 }, - { 0x8034, 55659 }, - { 0x8035, 55662 }, - { 0x8036, 56264 }, - { 0x8037, 56267 }, - { 0x8038, 54025 }, - { 0x8039, 54065 }, - { 0x803A, 54028 }, - { 0x803B, 54053 }, - { 0x803C, 54033 }, - { 0x803D, 54040 }, - { 0x803E, 55667 }, - { 0x803F, 56839 }, - { 0x8040, 53081 }, - { 0x8041, 54070 }, - { 0x8042, 55670 }, - { 0x8043, 56842 }, - { 0x8044, 54073 }, - { 0x8045, 54076 }, - { 0x8046, 56270 }, - { 0x8047, 54081 }, - { 0x8048, 56273 }, - { 0x8049, 53084 }, - { 0x804A, 53087 }, - { 0x804B, 53092 }, - { 0x804C, 53097 }, - { 0x804D, 53103 }, - { 0x804E, 53106 }, - { 0x804F, 53112 }, - { 0x8050, 53118 }, - { 0x8051, 56276 }, - { 0x8052, 56279 }, - { 0x8053, 54084 }, - { 0x8054, 55673 }, - { 0x8055, 53123 }, - { 0x8056, 54087 }, - { 0x8057, 54090 }, - { 0x8058, 54216 }, - { 0x8059, 54234 }, - { 0x805A, 54098 }, - { 0x805B, 54104 }, - { 0x805C, 54110 }, - { 0x805D, 54118 }, - { 0x805E, 54222 }, - { 0x805F, 54184 }, - { 0x8060, 54124 }, - { 0x8061, 54130 }, - { 0x8062, 54136 }, - { 0x8063, 54190 }, - { 0x8064, 54144 }, - { 0x8065, 54150 }, - { 0x8066, 54156 }, - { 0x8067, 54196 }, - { 0x8068, 54164 }, - { 0x8069, 54202 }, - { 0x806A, 54170 }, - { 0x806B, 54228 }, - { 0x806C, 54176 }, - { 0x806D, 54210 }, - { 0x806E, 54240 }, - { 0x806F, 54243 }, - { 0x8070, 56284 }, - { 0x8071, 56287 }, - { 0x8072, 53126 }, - { 0x8073, 54246 }, - { 0x8074, 54249 }, - { 0x8075, 54252 }, - { 0x8076, 55676 }, - { 0x8077, 54257 }, - { 0x8078, 54260 }, - { 0x8079, 55679 }, - { 0x807A, 53129 }, - { 0x807B, 53136 }, - { 0x807C, 53132 }, - { 0x807D, 53141 }, - { 0x807E, 54267 }, - { 0x807F, 54270 }, - { 0x8080, 55682 }, - { 0x8081, 54275 }, - { 0x8082, 56290 }, - { 0x8083, 54278 }, - { 0x8084, 54281 }, - { 0x8085, 55685 }, - { 0x8086, 55688 }, - { 0x8087, 55692 }, - { 0x8088, 55697 }, - { 0x8089, 55700 }, - { 0x808A, 52861 }, - { 0x808B, 52872 }, - { 0x808C, 52864 }, - { 0x808D, 53145 }, - { 0x808E, 53148 }, - { 0x808F, 53167 }, - { 0x8090, 53162 }, - { 0x8091, 53172 }, - { 0x8092, 53177 }, - { 0x8093, 53157 }, - { 0x8094, 55703 }, - { 0x8095, 55706 }, - { 0x8096, 53182 }, - { 0x8097, 53185 }, - { 0x8098, 53193 }, - { 0x8099, 53198 }, - { 0x809A, 53188 }, - { 0x809B, 53208 }, - { 0x809C, 53213 }, - { 0x809D, 53204 }, - { 0x809E, 55709 }, - { 0x809F, 56293 }, - { 0x80A0, 55712 }, - { 0x80A1, 55715 }, - { 0x80A2, 55718 }, - { 0x80A3, 55723 }, - { 0x80A4, 55730 }, - { 0x80A5, 55739 }, - { 0x80A6, 55780 }, - { 0x80A7, 55803 }, - { 0x80A8, 55809 }, - { 0x80A9, 55744 }, - { 0x80AA, 55749 }, - { 0x80AB, 55785 }, - { 0x80AC, 55816 }, - { 0x80AD, 55821 }, - { 0x80AE, 55791 }, - { 0x80AF, 55755 }, - { 0x80B0, 55796 }, - { 0x80B1, 55760 }, - { 0x80B2, 55765 }, - { 0x80B3, 55770 }, - { 0x80B4, 55775 }, - { 0x80B5, 53218 }, - { 0x80B6, 53221 }, - { 0x80B7, 54284 }, - { 0x80B8, 54292 }, - { 0x80B9, 54301 }, - { 0x80BA, 54308 }, - { 0x80BB, 54415 }, - { 0x80BC, 54320 }, - { 0x80BD, 54423 }, - { 0x80BE, 54571 }, - { 0x80BF, 54428 }, - { 0x80C0, 54433 }, - { 0x80C1, 54440 }, - { 0x80C2, 54445 }, - { 0x80C3, 54325 }, - { 0x80C4, 54330 }, - { 0x80C5, 54452 }, - { 0x80C6, 54459 }, - { 0x80C7, 54335 }, - { 0x80C8, 54340 }, - { 0x80C9, 54347 }, - { 0x80CA, 54352 }, - { 0x80CB, 54578 }, - { 0x80CC, 54464 }, - { 0x80CD, 54360 }, - { 0x80CE, 54469 }, - { 0x80CF, 54474 }, - { 0x80D0, 54584 }, - { 0x80D1, 54365 }, - { 0x80D2, 54481 }, - { 0x80D3, 54486 }, - { 0x80D4, 54374 }, - { 0x80D5, 54591 }, - { 0x80D6, 54493 }, - { 0x80D7, 54499 }, - { 0x80D8, 54508 }, - { 0x80D9, 54606 }, - { 0x80DA, 54513 }, - { 0x80DB, 54518 }, - { 0x80DC, 54525 }, - { 0x80DD, 54381 }, - { 0x80DE, 54386 }, - { 0x80DF, 54393 }, - { 0x80E0, 54532 }, - { 0x80E1, 54537 }, - { 0x80E2, 54398 }, - { 0x80E3, 54544 }, - { 0x80E4, 54549 }, - { 0x80E5, 54554 }, - { 0x80E6, 54559 }, - { 0x80E7, 54596 }, - { 0x80E8, 54566 }, - { 0x80E9, 54601 }, - { 0x80EA, 54315 }, - { 0x80EB, 54403 }, - { 0x80EC, 54408 }, - { 0x80ED, 54287 }, - { 0x80EE, 55827 }, - { 0x80EF, 55830 }, - { 0x80F0, 54611 }, - { 0x80F1, 54614 }, - { 0x80F2, 54622 }, - { 0x80F3, 54625 }, - { 0x80F4, 56296 }, - { 0x80F5, 54634 }, - { 0x80F6, 54637 }, - { 0x80F7, 55835 }, - { 0x80F8, 55843 }, - { 0x80F9, 55838 }, - { 0x80FA, 55847 }, - { 0x80FB, 54640 }, - { 0x80FC, 55852 }, - { 0x80FD, 56845 }, - { 0x80FE, 57004 }, - { 0x80FF, 57007 }, - { 0x8100, 53225 }, - { 0x8101, 53228 }, - { 0x8102, 53233 }, - { 0x8103, 53238 }, - { 0x8104, 54643 }, - { 0x8105, 54646 }, - { 0x8106, 54651 }, - { 0x8107, 56299 }, - { 0x8108, 55855 }, - { 0x8109, 55858 }, - { 0x810A, 55862 }, - { 0x810B, 55865 }, - { 0x810C, 55889 }, - { 0x810D, 55884 }, - { 0x810E, 55872 }, - { 0x810F, 55879 }, - { 0x8110, 56302 }, - { 0x8111, 55895 }, - { 0x8112, 55912 }, - { 0x8113, 55902 }, - { 0x8114, 55907 }, - { 0x8115, 55898 }, - { 0x8116, 53243 }, - { 0x8117, 53246 }, - { 0x8118, 54656 }, - { 0x8119, 54663 }, - { 0x811A, 54668 }, - { 0x811B, 54676 }, - { 0x811C, 54681 }, - { 0x811D, 54659 }, - { 0x811E, 54688 }, - { 0x811F, 54697 }, - { 0x8120, 54704 }, - { 0x8121, 54691 }, - { 0x8122, 54709 }, - { 0x8123, 54712 }, - { 0x8124, 54715 }, - { 0x8125, 54720 }, - { 0x8126, 55917 }, - { 0x8127, 56305 }, - { 0x8128, 56848 }, - { 0x8129, 53251 }, - { 0x812A, 53258 }, - { 0x812B, 53254 }, - { 0x812C, 54723 }, - { 0x812D, 53262 }, - { 0x812E, 53270 }, - { 0x812F, 53300 }, - { 0x8130, 53275 }, - { 0x8131, 53305 }, - { 0x8132, 53280 }, - { 0x8133, 53285 }, - { 0x8134, 53290 }, - { 0x8135, 53295 }, - { 0x8136, 53265 }, - { 0x8137, 53310 }, - { 0x8138, 55920 }, - { 0x8139, 55923 }, - { 0x813A, 55933 }, - { 0x813B, 55943 }, - { 0x813C, 55938 }, - { 0x813D, 55928 }, - { 0x813E, 55948 }, - { 0x813F, 52877 }, - { 0x8140, 52880 }, - { 0x8141, 53313 }, - { 0x8142, 55951 }, - { 0x8143, 55954 }, - { 0x8144, 55960 }, - { 0x8145, 53316 }, - { 0x8146, 54726 }, - { 0x8147, 54733 }, - { 0x8148, 54729 }, - { 0x8149, 54741 }, - { 0x814A, 54737 }, - { 0x814B, 53319 }, - { 0x814C, 53322 }, - { 0x814D, 54752 }, - { 0x814E, 53328 }, - { 0x814F, 53331 }, - { 0x8150, 53340 }, - { 0x8151, 53345 }, - { 0x8152, 53336 }, - { 0x8153, 55966 }, - { 0x8154, 53350 }, - { 0x8155, 53353 }, - { 0x8156, 54755 }, - { 0x8157, 53356 }, - { 0x8158, 53359 }, - { 0x8159, 53369 }, - { 0x815A, 53374 }, - { 0x815B, 53578 }, - { 0x815C, 53494 }, - { 0x815D, 53630 }, - { 0x815E, 53499 }, - { 0x815F, 53381 }, - { 0x8160, 53635 }, - { 0x8161, 53583 }, - { 0x8162, 53386 }, - { 0x8163, 53504 }, - { 0x8164, 53588 }, - { 0x8165, 53509 }, - { 0x8166, 53514 }, - { 0x8167, 53391 }, - { 0x8168, 53594 }, - { 0x8169, 53599 }, - { 0x816A, 53606 }, - { 0x816B, 53396 }, - { 0x816C, 53613 }, - { 0x816D, 53523 }, - { 0x816E, 53401 }, - { 0x816F, 53528 }, - { 0x8170, 53406 }, - { 0x8171, 53533 }, - { 0x8172, 53411 }, - { 0x8173, 53416 }, - { 0x8174, 53421 }, - { 0x8175, 53426 }, - { 0x8176, 53433 }, - { 0x8177, 53440 }, - { 0x8178, 53447 }, - { 0x8179, 53452 }, - { 0x817A, 53459 }, - { 0x817B, 53538 }, - { 0x817C, 53464 }, - { 0x817D, 53469 }, - { 0x817E, 53474 }, - { 0x817F, 53543 }, - { 0x8180, 53548 }, - { 0x8181, 53553 }, - { 0x8182, 53618 }, - { 0x8183, 53558 }, - { 0x8184, 53563 }, - { 0x8185, 53640 }, - { 0x8186, 53568 }, - { 0x8187, 53364 }, - { 0x8188, 53479 }, - { 0x8189, 53484 }, - { 0x818A, 53623 }, - { 0x818B, 53573 }, - { 0x818C, 53489 }, - { 0x818D, 54758 }, - { 0x818E, 54761 }, - { 0x818F, 54766 }, - { 0x8190, 55969 }, - { 0x8191, 55972 }, - { 0x8192, 55975 }, - { 0x8193, 55978 }, - { 0x8194, 55981 }, - { 0x8195, 54769 }, - { 0x8196, 54772 }, - { 0x8197, 54778 }, - { 0x8198, 54781 }, - { 0x8199, 54786 }, - { 0x819A, 55986 }, - { 0x819B, 55989 }, - { 0x819C, 56851 }, - { 0x819D, 56866 }, - { 0x819E, 56854 }, - { 0x819F, 56308 }, - { 0x81A0, 53645 }, - { 0x81A1, 53658 }, - { 0x81A2, 53648 }, - { 0x81A3, 53653 }, - { 0x81A4, 54791 }, - { 0x81A5, 54794 }, - { 0x81A6, 56311 }, - { 0x81A7, 55992 }, - { 0x81A8, 56876 }, - { 0x81A9, 56879 }, - { 0x81AA, 53663 }, - { 0x81AB, 53666 }, - { 0x81AC, 54797 }, - { 0x81AD, 54800 }, - { 0x81AE, 54803 }, - { 0x81AF, 54808 }, - { 0x81B0, 54811 }, - { 0x81B1, 54814 }, - { 0x81B2, 54818 }, - { 0x81B3, 54821 }, - { 0x81B4, 54824 }, - { 0x81B5, 56884 }, - { 0x81B6, 56887 }, - { 0x81B7, 53678 }, - { 0x81B8, 56314 }, - { 0x81B9, 56317 }, - { 0x81BA, 56322 }, - { 0x81BB, 56331 }, - { 0x81BC, 56338 }, - { 0x81BD, 56366 }, - { 0x81BE, 56371 }, - { 0x81BF, 56472 }, - { 0x81C0, 56479 }, - { 0x81C1, 56376 }, - { 0x81C2, 56484 }, - { 0x81C3, 56381 }, - { 0x81C4, 56386 }, - { 0x81C5, 56489 }, - { 0x81C6, 56494 }, - { 0x81C7, 56499 }, - { 0x81C8, 56391 }, - { 0x81C9, 56506 }, - { 0x81CA, 56396 }, - { 0x81CB, 56511 }, - { 0x81CC, 56403 }, - { 0x81CD, 56408 }, - { 0x81CE, 56415 }, - { 0x81CF, 56422 }, - { 0x81D0, 56517 }, - { 0x81D1, 56522 }, - { 0x81D2, 56527 }, - { 0x81D3, 56532 }, - { 0x81D4, 56595 }, - { 0x81D5, 56568 }, - { 0x81D6, 56427 }, - { 0x81D7, 56541 }, - { 0x81D8, 56432 }, - { 0x81D9, 56437 }, - { 0x81DA, 56573 }, - { 0x81DB, 56444 }, - { 0x81DC, 56546 }, - { 0x81DD, 56600 }, - { 0x81DE, 56609 }, - { 0x81DF, 56578 }, - { 0x81E0, 56583 }, - { 0x81E1, 56553 }, - { 0x81E2, 56558 }, - { 0x81E3, 56590 }, - { 0x81E4, 56449 }, - { 0x81E5, 56345 }, - { 0x81E6, 56350 }, - { 0x81E7, 56357 }, - { 0x81E8, 56460 }, - { 0x81E9, 56467 }, - { 0x81EA, 56563 }, - { 0x81EB, 56617 }, - { 0x81EC, 56621 }, - { 0x81ED, 56636 }, - { 0x81EE, 56641 }, - { 0x81EF, 56624 }, - { 0x81F0, 56628 }, - { 0x81F1, 56890 }, - { 0x81F2, 54829 }, - { 0x81F3, 54832 }, - { 0x81F4, 54837 }, - { 0x81F5, 54840 }, - { 0x81F6, 54845 }, - { 0x81F7, 53681 }, - { 0x81F8, 54852 }, - { 0x81F9, 56893 }, - { 0x81FA, 55995 }, - { 0x81FB, 53684 }, - { 0x81FC, 53687 }, - { 0x81FD, 54855 }, - { 0x81FE, 54862 }, - { 0x81FF, 54915 }, - { 0x8200, 54920 }, - { 0x8201, 54925 }, - { 0x8202, 54931 }, - { 0x8203, 54867 }, - { 0x8204, 54874 }, - { 0x8205, 54937 }, - { 0x8206, 54942 }, - { 0x8207, 54947 }, - { 0x8208, 54879 }, - { 0x8209, 54884 }, - { 0x820A, 54966 }, - { 0x820B, 54891 }, - { 0x820C, 54898 }, - { 0x820D, 54903 }, - { 0x820E, 54908 }, - { 0x820F, 54954 }, - { 0x8210, 54961 }, - { 0x8211, 54858 }, - { 0x8212, 54979 }, - { 0x8213, 54984 }, - { 0x8214, 54975 }, - { 0x8215, 54971 }, - { 0x8216, 54989 }, - { 0x8217, 56648 }, - { 0x8218, 56651 }, - { 0x8219, 56660 }, - { 0x821A, 56656 }, - { 0x821B, 54992 }, - { 0x821C, 54995 }, - { 0x821D, 54998 }, - { 0x821E, 55001 }, - { 0x821F, 55006 }, - { 0x8220, 53692 }, - { 0x8221, 53699 }, - { 0x8222, 53695 }, - { 0x8223, 55014 }, - { 0x8224, 55017 }, - { 0x8225, 55020 }, - { 0x8226, 55998 }, - { 0x8227, 56665 }, - { 0x8228, 53704 }, - { 0x8229, 55023 }, - { 0x822A, 53707 }, - { 0x822B, 55026 }, - { 0x822C, 53710 }, - { 0x822D, 53713 }, - { 0x822E, 55029 }, - { 0x822F, 55032 }, - { 0x8230, 56896 }, - { 0x8231, 56899 }, - { 0x8232, 56001 }, - { 0x8233, 56018 }, - { 0x8234, 56028 }, - { 0x8235, 56023 }, - { 0x8236, 56004 }, - { 0x8237, 56009 }, - { 0x8238, 56033 }, - { 0x8239, 56668 }, - { 0x823A, 56675 }, - { 0x823B, 56680 }, - { 0x823C, 56687 }, - { 0x823D, 56671 }, - { 0x823E, 53718 }, - { 0x823F, 55036 }, - { 0x8240, 56038 }, - { 0x8241, 56047 }, - { 0x8242, 56041 }, - { 0x8243, 56051 }, - { 0x8244, 56692 }, - { 0x8245, 55042 }, - { 0x8246, 55039 }, - { 0x8247, 56056 }, - { 0x8248, 53721 }, - { 0x8249, 53724 }, - { 0x824A, 53729 }, - { 0x824B, 53734 }, - { 0x824C, 53738 }, - { 0x824D, 53741 }, - { 0x824E, 55046 }, - { 0x824F, 55049 }, - { 0x8250, 55060 }, - { 0x8251, 55052 }, - { 0x8252, 56902 }, - { 0x8253, 56905 }, - { 0x8254, 56930 }, - { 0x8255, 56935 }, - { 0x8256, 56942 }, - { 0x8257, 56910 }, - { 0x8258, 56918 }, - { 0x8259, 56947 }, - { 0x825A, 56952 }, - { 0x825B, 56957 }, - { 0x825C, 56965 }, - { 0x825D, 56972 }, - { 0x825E, 56923 }, - { 0x825F, 56981 }, - { 0x8260, 56695 }, - { 0x8261, 53746 }, - { 0x8262, 56059 }, - { 0x8263, 55066 }, - { 0x8264, 55078 }, - { 0x8265, 55107 }, - { 0x8266, 55084 }, - { 0x8267, 55090 }, - { 0x8268, 55101 }, - { 0x8269, 55074 }, - { 0x826A, 55069 }, - { 0x826B, 55113 }, - { 0x826C, 55118 }, - { 0x826D, 56698 }, - { 0x826E, 56756 }, - { 0x826F, 56701 }, - { 0x8270, 56725 }, - { 0x8271, 56731 }, - { 0x8272, 56737 }, - { 0x8273, 56744 }, - { 0x8274, 56707 }, - { 0x8275, 56713 }, - { 0x8276, 56750 }, - { 0x8277, 56719 }, - { 0x8278, 56762 }, - { 0x8279, 56768 }, - { 0x827A, 53749 }, - { 0x827B, 55126 }, - { 0x827C, 55129 }, - { 0x827D, 55132 }, - { 0x827E, 56775 }, - { 0x827F, 53752 }, - { 0x8280, 53755 }, - { 0x8281, 53775 }, - { 0x8282, 53780 }, - { 0x8283, 53785 }, - { 0x8284, 53760 }, - { 0x8285, 53765 }, - { 0x8286, 53790 }, - { 0x8287, 53770 }, - { 0x8288, 53795 }, - { 0x8289, 53800 }, - { 0x828A, 56778 }, - { 0x828B, 56791 }, - { 0x828C, 56781 }, - { 0x828D, 56786 }, - { 0x828E, 56796 }, - { 0x828F, 53805 }, - { 0x8290, 55135 }, - { 0x8291, 53808 }, - { 0x8292, 53811 }, - { 0x8293, 53814 }, - { 0x8294, 55235 }, - { 0x8295, 55138 }, - { 0x8296, 55150 }, - { 0x8297, 55155 }, - { 0x8298, 55190 }, - { 0x8299, 55160 }, - { 0x829A, 55195 }, - { 0x829B, 55200 }, - { 0x829C, 55205 }, - { 0x829D, 55165 }, - { 0x829E, 55210 }, - { 0x829F, 55215 }, - { 0x82A0, 55230 }, - { 0x82A1, 55220 }, - { 0x82A2, 55170 }, - { 0x82A3, 55175 }, - { 0x82A4, 55180 }, - { 0x82A5, 55185 }, - { 0x82A6, 55225 }, - { 0x82A7, 55145 }, - { 0x82A8, 55141 }, - { 0x82A9, 55239 }, - { 0x82AA, 55242 }, - { 0x82AB, 56986 }, - { 0x82AC, 55248 }, - { 0x82AD, 55251 }, - { 0x82AE, 56062 }, - { 0x82AF, 56065 }, - { 0x82B0, 56087 }, - { 0x82B1, 56097 }, - { 0x82B2, 56082 }, - { 0x82B3, 56102 }, - { 0x82B4, 56092 }, - { 0x82B5, 56070 }, - { 0x82B6, 56075 }, - { 0x82B7, 56107 }, - { 0x82B8, 56801 }, - { 0x82B9, 56804 }, - { 0x82BA, 55254 }, - { 0x82BB, 55257 }, - { 0x82BC, 55261 }, - { 0x82BD, 55272 }, - { 0x82BE, 56807 }, - { 0x82BF, 56110 }, - { 0x82C0, 56810 }, - { 0x82C1, 56989 }, - { 0x82C2, 57012 }, - { 0x82C3, 56113 }, - { 0x82C4, 56116 }, - { 0x82C5, 56121 }, - { 0x82C6, 56126 }, - { 0x82C7, 56129 }, - { 0x82C8, 56134 }, - { 0x82C9, 56175 }, - { 0x82CA, 56139 }, - { 0x82CB, 56144 }, - { 0x82CC, 56149 }, - { 0x82CD, 56154 }, - { 0x82CE, 56180 }, - { 0x82CF, 56160 }, - { 0x82D0, 56165 }, - { 0x82D1, 56170 }, - { 0x82D2, 56992 }, - { 0x82D3, 56185 }, - { 0x82D4, 56196 }, - { 0x82D5, 56188 }, - { 0x82D6, 56813 }, - { 0x82D7, 55283 }, - { 0x82D8, 55286 }, - { 0x82D9, 56200 }, - { 0x82DA, 56995 }, - { 0x82DB, 53817 }, - { 0x82DC, 53820 }, - { 0x82DD, 55292 }, - { 0x82DE, 56203 }, - { 0x82DF, 56206 }, - { 0x82E0, 56212 }, - { 0x82E1, 56816 }, - { 0x82E2, 53824 }, - { 0x82E3, 53827 }, - { 0x82E4, 55295 }, - { 0x82E5, 56215 }, - { 0x82E6, 56819 }, - { 0x82E7, 55298 }, - { 0x82E8, 56998 }, - { 0x82E9, 55301 }, - { 0x82EA, 56218 }, - { 0x82EB, 53832 }, - { 0x82EC, 53849 }, - { 0x82ED, 53839 }, - { 0x82EE, 53844 }, - { 0x82EF, 53835 }, - { 0x82F0, 55304 }, - { 0x82F1, 55307 }, - { 0x82F2, 55318 }, - { 0x82F3, 55322 }, - { 0x82F4, 55325 }, - { 0x82F5, 55335 }, - { 0x82F6, 55340 }, - { 0x82F7, 55345 }, - { 0x82F8, 55350 }, - { 0x82F9, 55330 }, - { 0x82FA, 56221 }, - { 0x82FB, 55355 }, - { 0x82FC, 53853 }, - { 0x82FD, 53856 }, - { 0x82FE, 53860 }, - { 0x82FF, 53863 }, - { 0x8300, 55358 }, - { 0x8301, 55361 }, - { 0x8302, 55380 }, - { 0x8303, 55364 }, - { 0x8304, 55369 }, - { 0x8305, 53867 }, - { 0x8306, 56224 }, - { 0x8307, 55385 }, - { 0x8308, 55388 }, - { 0x8309, 55391 }, - { 0x830A, 55394 }, - { 0x830B, 52884 }, - { 0x830C, 52892 }, - { 0x830D, 52887 }, - { 0x830E, 52906 }, - { 0x830F, 52917 }, - { 0x8310, 52896 }, - { 0x8311, 53870 }, - { 0x8312, 53873 }, - { 0x8313, 53876 }, - { 0x8314, 53912 }, - { 0x8315, 53907 }, - { 0x8316, 53902 }, - { 0x8317, 53883 }, - { 0x8318, 53892 }, - { 0x8319, 53879 }, - { 0x831A, 53916 }, - { 0x831B, 53920 }, - { 0x831C, 56227 }, - { 0x831D, 53926 }, - { 0x831E, 53946 }, - { 0x831F, 53934 }, - { 0x8320, 53941 }, - { 0x8321, 53929 }, - { 0x8322, 56822 }, - { 0x8323, 56230 }, - { 0x8324, 56238 }, - { 0x8325, 56233 }, - { 0x8326, 53951 }, - { 0x8327, 53954 }, - { 0x8328, 53958 }, - { 0x8329, 53965 }, - { 0x832A, 53961 }, - { 0x832B, 55402 }, - { 0x832C, 55405 }, - { 0x832D, 55412 }, - { 0x832E, 55419 }, - { 0x832F, 55424 }, - { 0x8330, 55448 }, - { 0x8331, 55429 }, - { 0x8332, 55441 }, - { 0x8333, 55434 }, - { 0x8334, 55453 }, - { 0x8335, 55456 }, - { 0x8336, 56243 }, - { 0x8337, 55459 }, - { 0x8338, 55462 }, - { 0x8339, 55575 }, - { 0x833A, 55514 }, - { 0x833B, 55519 }, - { 0x833C, 55474 }, - { 0x833D, 55524 }, - { 0x833E, 55559 }, - { 0x833F, 55529 }, - { 0x8340, 55479 }, - { 0x8341, 55484 }, - { 0x8342, 55534 }, - { 0x8343, 55489 }, - { 0x8344, 55539 }, - { 0x8345, 55494 }, - { 0x8346, 55544 }, - { 0x8347, 55549 }, - { 0x8348, 55499 }, - { 0x8349, 55554 }, - { 0x834A, 55565 }, - { 0x834B, 55504 }, - { 0x834C, 55467 }, - { 0x834D, 55509 }, - { 0x834E, 55570 }, - { 0x834F, 56825 }, - { 0x8350, 56828 }, - { 0x8351, 55580 }, - { 0x8352, 55583 }, - { 0x8353, 55588 }, - { 0x8354, 55593 }, - { 0x8355, 55598 }, - { 0x8356, 56249 }, - { 0x8357, 56246 }, - { 0x8358, 57001 }, - { 0x8359, 56833 }, - { 0x835A, 55603 }, - { 0x835B, 55606 }, - { 0x835C, 55611 }, - { 0x835D, 53970 }, - { 0x835E, 53973 }, - { 0x835F, 53977 }, - { 0x8360, 55614 }, - { 0x8361, 56252 }, - { 0x8362, 55617 }, - { 0x8363, 53983 }, - { 0x8364, 53986 }, - { 0x8365, 55620 }, - { 0x8366, 55623 }, - { 0x8367, 55626 }, - { 0x8368, 55631 }, - { 0x8369, 56255 }, - { 0x836A, 53991 }, - { 0x836B, 55634 }, - { 0x836C, 55637 }, - { 0x836D, 56836 }, - { 0x836E, 55642 }, - { 0x8400, 57123 }, - { 0x8401, 57492 }, - { 0x8402, 57252 }, - { 0x8403, 57188 }, - { 0x8404, 57090 }, - { 0x8405, 57433 }, - { 0x8406, 57394 }, - { 0x8407, 57340 }, - { 0x8408, 57520 }, - { 0x8409, 57280 }, - { 0x840A, 57216 }, - { 0x840B, 57101 }, - { 0x840C, 57438 }, - { 0x840D, 57399 }, - { 0x840E, 57345 }, - { 0x840F, 57247 }, - { 0x8410, 57183 }, - { 0x8411, 57085 }, - { 0x8412, 57428 }, - { 0x8413, 57389 }, - { 0x8414, 57335 }, - { 0x8415, 57044 }, - { 0x8416, 57149 }, - { 0x8417, 57525 }, - { 0x8418, 57285 }, - { 0x8419, 57221 }, - { 0x841A, 57106 }, - { 0x841B, 57443 }, - { 0x841C, 57404 }, - { 0x841D, 57350 }, - { 0x841E, 57049 }, - { 0x841F, 57154 }, - { 0x8420, 57530 }, - { 0x8421, 57290 }, - { 0x8422, 57226 }, - { 0x8423, 57159 }, - { 0x8424, 57535 }, - { 0x8425, 57540 }, - { 0x8426, 57295 }, - { 0x8427, 57231 }, - { 0x8428, 57111 }, - { 0x8429, 57448 }, - { 0x842A, 57409 }, - { 0x842B, 57355 }, - { 0x842C, 57054 }, - { 0x842D, 57164 }, - { 0x842E, 57547 }, - { 0x842F, 57552 }, - { 0x8430, 57300 }, - { 0x8431, 57236 }, - { 0x8432, 57484 }, - { 0x8433, 57476 }, - { 0x8434, 57034 }, - { 0x8435, 57139 }, - { 0x8436, 57508 }, - { 0x8437, 57513 }, - { 0x8438, 57275 }, - { 0x8439, 57211 }, - { 0x843A, 57559 }, - { 0x843B, 57566 }, - { 0x843C, 57305 }, - { 0x843D, 57328 }, - { 0x843E, 57312 }, - { 0x843F, 57320 }, - { 0x8440, 57116 }, - { 0x8441, 57469 }, - { 0x8442, 57453 }, - { 0x8443, 57461 }, - { 0x8444, 57414 }, - { 0x8445, 57421 }, - { 0x8446, 57360 }, - { 0x8447, 57375 }, - { 0x8448, 57382 }, - { 0x8449, 57367 }, - { 0x844A, 57128 }, - { 0x844B, 57497 }, - { 0x844C, 57257 }, - { 0x844D, 57193 }, - { 0x844E, 57095 }, - { 0x844F, 57029 }, - { 0x8450, 57134 }, - { 0x8451, 57503 }, - { 0x8452, 57263 }, - { 0x8453, 57268 }, - { 0x8454, 57199 }, - { 0x8455, 57204 }, - { 0x8456, 57577 }, - { 0x8457, 57573 }, - { 0x8458, 57039 }, - { 0x8459, 57144 }, - { 0x845A, 57059 }, - { 0x845B, 57169 }, - { 0x845C, 57241 }, - { 0x845D, 57065 }, - { 0x845E, 57175 }, - { 0x845F, 57073 }, - { 0x8460, 57079 }, - { 0x8461, 57015 }, - { 0x8462, 57022 }, - { 0x8470, 57581 }, - { 0x8471, 57598 }, - { 0x8472, 57588 }, - { 0x8473, 57593 }, - { 0x9000, 51036 }, - { 0x9001, 51070 }, - { 0x9002, 52056 }, - { 0x9003, 51031 }, - { 0x9004, 51026 }, - { 0x9005, 51400 }, - { 0x9006, 51395 }, - { 0x9007, 51695 }, - { 0x9008, 51961 }, - { 0x9009, 52042 }, - { 0x900A, 51969 }, - { 0x900B, 51973 }, - { 0x900C, 51712 }, - { 0x900D, 50984 }, - { 0x900E, 50893 }, - { 0x900F, 51382 }, - { 0x9010, 51911 }, - { 0x9011, 51994 }, - { 0x9012, 52003 }, - { 0x9013, 51587 }, - { 0x9014, 51057 }, - { 0x9015, 51341 }, - { 0x9016, 51259 }, - { 0x9017, 51365 }, - { 0x9018, 51622 }, - { 0x9019, 51061 }, - { 0x901A, 50907 }, - { 0x901B, 51518 }, - { 0x901C, 51933 }, - { 0x901D, 51810 }, - { 0x901E, 51797 }, - { 0x901F, 51566 }, - { 0x9020, 51350 }, - { 0x9021, 51599 }, - { 0x9022, 51613 }, - { 0x9023, 51618 }, - { 0x9024, 51287 }, - { 0x9025, 51040 }, - { 0x9026, 51360 }, - { 0x9027, 51595 }, - { 0x9028, 52070 }, - { 0x9029, 51369 }, - { 0x902A, 51582 }, - { 0x902B, 51576 }, - { 0x902C, 51947 }, - { 0x902D, 51048 }, - { 0x902E, 51017 }, - { 0x902F, 50889 }, - { 0x9030, 50922 }, - { 0x9031, 51591 }, - { 0x9032, 51938 }, - { 0x9033, 50978 }, - { 0x9034, 51175 }, - { 0x9035, 51903 }, - { 0x9036, 51874 }, - { 0x9037, 51282 }, - { 0x9038, 51801 }, - { 0x9039, 51952 }, - { 0x903A, 51699 }, - { 0x903B, 51631 }, - { 0x903C, 51558 }, - { 0x903D, 52037 }, - { 0x903E, 52051 }, - { 0x903F, 51496 }, - { 0x9040, 50912 }, - { 0x9041, 51550 }, - { 0x9042, 51703 }, - { 0x9043, 51869 }, - { 0x9044, 52078 }, - { 0x9045, 52074 }, - { 0x9046, 50902 }, - { 0x9047, 51336 }, - { 0x9048, 51021 }, - { 0x9049, 51554 }, - { 0x904A, 51708 }, - { 0x904B, 52110 }, - { 0x904C, 52102 }, - { 0x904D, 51805 }, - { 0x904E, 51915 }, - { 0x904F, 51500 }, - { 0x9050, 51438 }, - { 0x9051, 51998 }, - { 0x9052, 51988 }, - { 0x9053, 51604 }, - { 0x9054, 52106 }, - { 0x9055, 51485 }, - { 0x9056, 51477 }, - { 0x9057, 51331 }, - { 0x9058, 51390 }, - { 0x9059, 51355 }, - { 0x905A, 51956 }, - { 0x905B, 51346 }, - { 0x905C, 51978 }, - { 0x905D, 51546 }, - { 0x905E, 52046 }, - { 0x905F, 52032 }, - { 0x9060, 51112 }, - { 0x9061, 51542 }, - { 0x9062, 52098 }, - { 0x9063, 51864 }, - { 0x9064, 52008 }, - { 0x9065, 51571 }, - { 0x9066, 51044 }, - { 0x9067, 51626 }, - { 0x9068, 51687 }, - { 0x9069, 51373 }, - { 0x906A, 51065 }, - { 0x906B, 52122 }, - { 0x906C, 52114 }, - { 0x906D, 52090 }, - { 0x906E, 52126 }, - { 0x906F, 52130 }, - { 0x9070, 52094 }, - { 0x9071, 52118 }, - { 0x9072, 52086 }, - { 0x9073, 52082 }, - { 0x9074, 51117 }, - { 0x9075, 51942 }, - { 0x9076, 52060 }, - { 0x9077, 52065 }, - { 0x9078, 51052 }, - { 0x9079, 50916 }, - { 0x907A, 51907 }, - { 0x907B, 51884 }, - { 0x907C, 50931 }, - { 0x907D, 50926 }, - { 0x907E, 51562 }, - { 0x907F, 51291 }, - { 0x9080, 51012 }, - { 0x9081, 51537 }, - { 0x9082, 51532 }, - { 0x9083, 51527 }, - { 0x9084, 51608 }, - { 0x9085, 50898 }, - { 0x9086, 51008 }, - { 0x9087, 51386 }, - { 0x9088, 51860 }, - { 0x9089, 51523 }, - { 0x908A, 51307 }, - { 0x908B, 51301 }, - { 0x908C, 51313 }, - { 0x908D, 51325 }, - { 0x908E, 51319 }, - { 0x908F, 51247 }, - { 0x9090, 51270 }, - { 0x9091, 51264 }, - { 0x9092, 51658 }, - { 0x9093, 51675 }, - { 0x9094, 51668 }, - { 0x9095, 51662 }, - { 0x9096, 51965 }, - { 0x9097, 50989 }, - { 0x9098, 52024 }, - { 0x9099, 51481 }, - { 0x909A, 50946 }, - { 0x909B, 50968 }, - { 0x909C, 50936 }, - { 0x909D, 50963 }, - { 0x909E, 50941 }, - { 0x909F, 50958 }, - { 0x90A0, 50973 }, - { 0x90A1, 50952 }, - { 0x90A2, 51736 }, - { 0x90A3, 51716 }, - { 0x90A4, 51767 }, - { 0x90A5, 51723 }, - { 0x90A6, 51742 }, - { 0x90A7, 51786 }, - { 0x90A8, 51773 }, - { 0x90A9, 51779 }, - { 0x90AA, 51748 }, - { 0x90AB, 51754 }, - { 0x90AC, 51276 }, - { 0x90AD, 51982 }, - { 0x90AE, 51898 }, - { 0x90AF, 51893 }, - { 0x90B0, 51888 }, - { 0x90B1, 51730 }, - { 0x90B2, 51791 }, - { 0x90B3, 51760 }, - { 0x90B4, 52012 }, - { 0x90B5, 52018 }, - { 0x90B6, 51489 }, - { 0x90B7, 51691 }, - { 0x90B8, 52028 }, - { 0x90B9, 51180 }, - { 0x90BA, 51213 }, - { 0x90BB, 51225 }, - { 0x90BC, 51136 }, - { 0x90BD, 51187 }, - { 0x90BE, 51168 }, - { 0x90BF, 51193 }, - { 0x90C0, 51219 }, - { 0x90C1, 51206 }, - { 0x90C2, 51199 }, - { 0x90C3, 51147 }, - { 0x90C4, 51154 }, - { 0x90C5, 51122 }, - { 0x90C6, 51161 }, - { 0x90C7, 51142 }, - { 0x90C8, 50993 }, - { 0x90C9, 50998 }, - { 0x90CA, 51003 }, - { 0x90CB, 51129 }, - { 0x90CC, 51231 }, - { 0x90CD, 51433 }, - { 0x90CE, 51102 }, - { 0x90CF, 51107 }, - { 0x90D0, 51074 }, - { 0x90D1, 51095 }, - { 0x90D2, 51081 }, - { 0x90D3, 51088 }, - { 0x90D4, 51405 }, - { 0x90D5, 51426 }, - { 0x90D6, 51412 }, - { 0x90D7, 51419 }, - { 0x90D8, 51237 }, - { 0x90D9, 51242 }, - { 0x90DA, 51636 }, - { 0x90DB, 51642 }, - { 0x90DC, 51648 }, - { 0x90DD, 51653 }, - { 0x90DE, 51837 }, - { 0x90DF, 51842 }, - { 0x90E0, 51848 }, - { 0x90E1, 51854 }, - { 0x90E2, 51814 }, - { 0x90E3, 51819 }, - { 0x90E4, 51825 }, - { 0x90E5, 51831 }, - { 0x90E6, 51682 }, - { 0x90E7, 51879 }, - { 0x90E8, 51378 }, - { 0x90E9, 51462 }, - { 0x90EA, 51472 }, - { 0x90EB, 51447 }, - { 0x90EC, 51442 }, - { 0x90ED, 51452 }, - { 0x90EE, 51467 }, - { 0x90EF, 51457 }, - { 0x90F0, 51927 }, - { 0x90F1, 51512 }, - { 0x90F2, 51921 }, - { 0x90F3, 51506 }, - { 0x90F4, 51296 }, - { 0x90F5, 51253 }, - { 0x9100, 37444 }, - { 0x9101, 37406 }, - { 0x9102, 37286 }, - { 0x9103, 37577 }, - { 0x9104, 37390 }, - { 0x9105, 37352 }, - { 0x9106, 37219 }, - { 0x9107, 37336 }, - { 0x9108, 37440 }, - { 0x9109, 37131 }, - { 0x910A, 37120 }, - { 0x910B, 37341 }, - { 0x910C, 37172 }, - { 0x910D, 37653 }, - { 0x910E, 37657 }, - { 0x910F, 37661 }, - { 0x9110, 37541 }, - { 0x9111, 37544 }, - { 0x9112, 37367 }, - { 0x9113, 37528 }, - { 0x9114, 37277 }, - { 0x9115, 37525 }, - { 0x9116, 37605 }, - { 0x9117, 37738 }, - { 0x9118, 37956 }, - { 0x9119, 37876 }, - { 0x911A, 37872 }, - { 0x911B, 37665 }, - { 0x911C, 37952 }, - { 0x911D, 37963 }, - { 0x911E, 37097 }, - { 0x911F, 37101 }, - { 0x9120, 37107 }, - { 0x9121, 37077 }, - { 0x9122, 37081 }, - { 0x9123, 37085 }, - { 0x9124, 37091 }, - { 0x9125, 37182 }, - { 0x9126, 37186 }, - { 0x912A, 37402 }, - { 0x912B, 37398 }, - { 0x912C, 37190 }, - { 0x912D, 37194 }, - { 0x912E, 37548 }, - { 0x912F, 37552 }, - { 0x9130, 37344 }, - { 0x9131, 37348 }, - { 0x9132, 37572 }, - { 0x9133, 37567 }, - { 0x9134, 37386 }, - { 0x9135, 37127 }, - { 0x9136, 37432 }, - { 0x9137, 37436 }, - { 0x9138, 37980 }, - { 0x9139, 37984 }, - { 0x913A, 37320 }, - { 0x913B, 37363 }, - { 0x913C, 37210 }, - { 0x913D, 37563 }, - { 0x913E, 37414 }, - { 0x913F, 37916 }, - { 0x9140, 38000 }, - { 0x9141, 37992 }, - { 0x9142, 37162 }, - { 0x9143, 37113 }, - { 0x9144, 37238 }, - { 0x9145, 37378 }, - { 0x9146, 37457 }, - { 0x9147, 37452 }, - { 0x9148, 37696 }, - { 0x9149, 37676 }, - { 0x914A, 37720 }, - { 0x914B, 37714 }, - { 0x914C, 37732 }, - { 0x914D, 37726 }, - { 0x914E, 37708 }, - { 0x914F, 37702 }, - { 0x9150, 37689 }, - { 0x9151, 37682 }, - { 0x9152, 37229 }, - { 0x9153, 37224 }, - { 0x9154, 38010 }, - { 0x9155, 38004 }, - { 0x9156, 37973 }, - { 0x9157, 37253 }, - { 0x9158, 37601 }, - { 0x9159, 37234 }, - { 0x915A, 37536 }, - { 0x915B, 37531 }, - { 0x915C, 37280 }, - { 0x915D, 37359 }, - { 0x915E, 37206 }, - { 0x915F, 37559 }, - { 0x9160, 37410 }, - { 0x9161, 37912 }, - { 0x9162, 37996 }, - { 0x9163, 37988 }, - { 0x9164, 37156 }, - { 0x9165, 37773 }, - { 0x9166, 37852 }, - { 0x9167, 37835 }, - { 0x9168, 37839 }, - { 0x9169, 37843 }, - { 0x916A, 37585 }, - { 0x916B, 37589 }, - { 0x916C, 37593 }, - { 0x916D, 37847 }, - { 0x916E, 37794 }, - { 0x916F, 37798 }, - { 0x9170, 37802 }, - { 0x9171, 37806 }, - { 0x9172, 37810 }, - { 0x9173, 37265 }, - { 0x9174, 37144 }, - { 0x9175, 37261 }, - { 0x9176, 37140 }, - { 0x9177, 37269 }, - { 0x9178, 37148 }, - { 0x9179, 37273 }, - { 0x917A, 37152 }, - { 0x917B, 37785 }, - { 0x917C, 37831 }, - { 0x917D, 37814 }, - { 0x917E, 37857 }, - { 0x917F, 37823 }, - { 0x9180, 37865 }, - { 0x9181, 37861 }, - { 0x9182, 37777 }, - { 0x9183, 37920 }, - { 0x9184, 37924 }, - { 0x9185, 37755 }, - { 0x9186, 37747 }, - { 0x9187, 37764 }, - { 0x9188, 37781 }, - { 0x9189, 37751 }, - { 0x918A, 37789 }, - { 0x918B, 37818 }, - { 0x918C, 37977 }, - { 0x918D, 37462 }, - { 0x918E, 37117 }, - { 0x918F, 37333 }, - { 0x9190, 37317 }, - { 0x9191, 37290 }, - { 0x9192, 37869 }, - { 0x9193, 37960 }, - { 0x9194, 37299 }, - { 0x9195, 37293 }, - { 0x9196, 37124 }, - { 0x9197, 37242 }, - { 0x9198, 37597 }, - { 0x9199, 37249 }, - { 0x919A, 37245 }, - { 0x919B, 37609 }, - { 0x919C, 37613 }, - { 0x919D, 37617 }, - { 0x919E, 37621 }, - { 0x919F, 37625 }, - { 0x91A0, 37629 }, - { 0x91A1, 37633 }, - { 0x91A2, 37637 }, - { 0x91A3, 37641 }, - { 0x91A4, 37645 }, - { 0x91A5, 37649 }, - { 0x91A6, 37967 }, - { 0x91A7, 37970 }, - { 0x91A8, 37135 }, - { 0x91A9, 37394 }, - { 0x91AA, 37759 }, - { 0x91AB, 37742 }, - { 0x91AC, 37827 }, - { 0x91AD, 37768 }, - { 0x91AE, 37329 }, - { 0x91AF, 37324 }, - { 0x91B0, 37214 }, - { 0x91B1, 37880 }, - { 0x91B2, 37884 }, - { 0x91B3, 37257 }, - { 0x91B4, 37175 }, - { 0x91B5, 37178 }, - { 0x91B6, 37418 }, - { 0x91B7, 37304 }, - { 0x91B8, 37371 }, - { 0x91B9, 37936 }, - { 0x91BA, 37932 }, - { 0x91BB, 37421 }, - { 0x91BC, 37428 }, - { 0x91BD, 37948 }, - { 0x91BE, 37944 }, - { 0x91BF, 37202 }, - { 0x91C0, 37198 }, - { 0x91C1, 37307 }, - { 0x91C2, 37312 }, - { 0x91C3, 37374 }, - { 0x91C4, 37928 }, - { 0x91C5, 37424 }, - { 0x91C6, 37940 }, - { 0x91C7, 37465 }, - { 0x91C8, 37480 }, - { 0x91C9, 37472 }, - { 0x91CA, 37487 }, - { 0x91CB, 37494 }, - { 0x91CC, 37501 }, - { 0x91CD, 37509 }, - { 0x91CE, 37517 }, - { 0x91CF, 37283 }, - { 0x91D0, 37888 }, - { 0x91D1, 37893 }, - { 0x91D2, 37448 }, - { 0x91D3, 37356 }, - { 0x91D4, 37556 }, - { 0x91D5, 37383 }, - { 0x91D6, 37905 }, - { 0x91D7, 37582 }, - { 0x91D8, 37669 }, - { 0x91D9, 37898 }, - { 0x91DA, 37901 }, - { 0x91DB, 37908 }, - { 0x91DC, 37672 }, - { 0x91DD, 37168 }, - { 0x9200, 10345 }, - { 0x9201, 10349 }, - { 0x9202, 10353 }, - { 0x9203, 10357 }, - { 0x9204, 10361 }, - { 0x9205, 10365 }, - { 0x9206, 10369 }, - { 0x9207, 10373 }, - { 0x9208, 10377 }, - { 0x9209, 10381 }, - { 0x920A, 10385 }, - { 0x920B, 10389 }, - { 0x920C, 10393 }, - { 0x920D, 10397 }, - { 0x920E, 10401 }, - { 0x920F, 10405 }, - { 0x9210, 10409 }, - { 0x9211, 10413 }, - { 0x9212, 10417 }, - { 0x9213, 10421 }, - { 0x9214, 10425 }, - { 0x9215, 10429 }, - { 0x9216, 10433 }, - { 0x9217, 10437 }, - { 0x9218, 10441 }, - { 0x9219, 10445 }, - { 0x921A, 10449 }, - { 0x921B, 10453 }, - { 0x921C, 10457 }, - { 0x921D, 11799 }, - { 0x921E, 11803 }, - { 0x921F, 11807 }, - { 0x9220, 11811 }, - { 0x9221, 11815 }, - { 0x9222, 11819 }, - { 0x9223, 11823 }, - { 0x9224, 11827 }, - { 0x9225, 11831 }, - { 0x9226, 11835 }, - { 0x9227, 11839 }, - { 0x9228, 11843 }, - { 0x9229, 11847 }, - { 0x922A, 11851 }, - { 0x922B, 11855 }, - { 0x922C, 11859 }, - { 0x922D, 11863 }, - { 0x922E, 11867 }, - { 0x922F, 11871 }, - { 0x9230, 11875 }, - { 0x9231, 11879 }, - { 0x9232, 11883 }, - { 0x9233, 11887 }, - { 0x9234, 11891 }, - { 0x9235, 11895 }, - { 0x9236, 11899 }, - { 0x9237, 11903 }, - { 0x9238, 11907 }, - { 0x9239, 11911 }, - { 0x923A, 11915 }, - { 0x923B, 11919 }, - { 0x923C, 11923 }, - { 0x923D, 11927 }, - { 0x923E, 11931 }, - { 0x923F, 11935 }, - { 0x9240, 11939 }, - { 0x9241, 11943 }, - { 0x9242, 52330 }, - { 0x9243, 52338 }, - { 0x9244, 52334 }, - { 0x9245, 11456 }, - { 0x9300, 49851 }, - { 0x9301, 28224 }, - { 0x9302, 28196 }, - { 0x9303, 28212 }, - { 0x9304, 28208 }, - { 0x9305, 28193 }, - { 0x9306, 60224 }, - { 0x9307, 60191 }, - { 0x9308, 60206 }, - { 0x9309, 60252 }, - { 0x930A, 60271 }, - { 0x930B, 60396 }, - { 0x930C, 60221 }, - { 0x930D, 60387 }, - { 0x930E, 60325 }, - { 0x930F, 60423 }, - { 0x9310, 60378 }, - { 0x9311, 60420 }, - { 0x9312, 60308 }, - { 0x9313, 60405 }, - { 0x9314, 60209 }, - { 0x9315, 60258 }, - { 0x9316, 60267 }, - { 0x9317, 60296 }, - { 0x9318, 60344 }, - { 0x9319, 60249 }, - { 0x931A, 60290 }, - { 0x931B, 60390 }, - { 0x931C, 60188 }, - { 0x931D, 60176 }, - { 0x931E, 60375 }, - { 0x931F, 60341 }, - { 0x9320, 60234 }, - { 0x9321, 60227 }, - { 0x9322, 60411 }, - { 0x9323, 60184 }, - { 0x9324, 60284 }, - { 0x9325, 60240 }, - { 0x9326, 60329 }, - { 0x9327, 60275 }, - { 0x9328, 60350 }, - { 0x9329, 60317 }, - { 0x932A, 60243 }, - { 0x932B, 60302 }, - { 0x932C, 60363 }, - { 0x932D, 60179 }, - { 0x932E, 60311 }, - { 0x932F, 60198 }, - { 0x9330, 60381 }, - { 0x9331, 60212 }, - { 0x9332, 60357 }, - { 0x9333, 60399 }, - { 0x9334, 60287 }, - { 0x9335, 60246 }, - { 0x9336, 60237 }, - { 0x9337, 60320 }, - { 0x9338, 60332 }, - { 0x9339, 60281 }, - { 0x933A, 60299 }, - { 0x933B, 60215 }, - { 0x933C, 60417 }, - { 0x933D, 60230 }, - { 0x933E, 60402 }, - { 0x933F, 60353 }, - { 0x9340, 60278 }, - { 0x9341, 60408 }, - { 0x9342, 60428 }, - { 0x9343, 60195 }, - { 0x9344, 60218 }, - { 0x9345, 60293 }, - { 0x9346, 60203 }, - { 0x9347, 60338 }, - { 0x9348, 60335 }, - { 0x9349, 60261 }, - { 0x934A, 60384 }, - { 0x934B, 60366 }, - { 0x934C, 60314 }, - { 0x934D, 60305 }, - { 0x934E, 60369 }, - { 0x934F, 60255 }, - { 0x9350, 60264 }, - { 0x9351, 60393 }, - { 0x9352, 60372 }, - { 0x9353, 60171 }, - { 0x9354, 60414 }, - { 0x9355, 60360 }, - { 0x9356, 60347 }, - { 0x9360, 43919 }, - { 0x9361, 43929 }, - { 0x9362, 43959 }, - { 0x9363, 43939 }, - { 0x9364, 43934 }, - { 0x9365, 43924 }, - { 0x9366, 43954 }, - { 0x9367, 43949 }, - { 0x9368, 43944 }, - { 0x9369, 43874 }, - { 0x936A, 43884 }, - { 0x936B, 43914 }, - { 0x936C, 43894 }, - { 0x936D, 43889 }, - { 0x936E, 43879 }, - { 0x936F, 43909 }, - { 0x9370, 43904 }, - { 0x9371, 43899 }, - { 0x9400, 64487 }, - { 0x9401, 64491 }, - { 0x9402, 64495 }, - { 0x9403, 64499 }, - { 0x9404, 64503 }, - { 0x9405, 64507 }, - { 0x9406, 64511 }, - { 0x9407, 64515 }, - { 0x9408, 64519 }, - { 0x9409, 64523 }, - { 0x940A, 64527 }, - { 0x940B, 64531 }, - { 0x940C, 64535 }, - { 0x940D, 64539 }, - { 0x940E, 64543 }, - { 0x940F, 64547 }, - { 0x9410, 64551 }, - { 0x9411, 64555 }, - { 0x9412, 64559 }, - { 0x9413, 64563 }, - { 0x9414, 64567 }, - { 0x9415, 64571 }, - { 0x9416, 64575 }, - { 0x9417, 64579 }, - { 0x9418, 64583 }, - { 0x9419, 64587 }, - { 0x941A, 63463 }, - { 0x941B, 63467 }, - { 0x941C, 63471 }, - { 0x941D, 63475 }, - { 0x941E, 63479 }, - { 0x941F, 63483 }, - { 0x9420, 63487 }, - { 0x9421, 63491 }, - { 0x9422, 63495 }, - { 0x9423, 63499 }, - { 0x9424, 63503 }, - { 0x9425, 63507 }, - { 0x9426, 63511 }, - { 0x9427, 63515 }, - { 0x9428, 63519 }, - { 0x9429, 63523 }, - { 0x942A, 63527 }, - { 0x942B, 63531 }, - { 0x942C, 63535 }, - { 0x942D, 63539 }, - { 0x942E, 63543 }, - { 0x942F, 63547 }, - { 0x9430, 63551 }, - { 0x9431, 63555 }, - { 0x9432, 63559 }, - { 0x9433, 63563 }, - { 0x9434, 65226 }, - { 0x9435, 65230 }, - { 0x9436, 65234 }, - { 0x9437, 65238 }, - { 0x9438, 65242 }, - { 0x9439, 65246 }, - { 0x943A, 65250 }, - { 0x943B, 65254 }, - { 0x943C, 65258 }, - { 0x943D, 65262 }, - { 0x943E, 65266 }, - { 0x943F, 65270 }, - { 0x9440, 65274 }, - { 0x9441, 65278 }, - { 0x9442, 65282 }, - { 0x9443, 65286 }, - { 0x9444, 65290 }, - { 0x9445, 65294 }, - { 0x9446, 65298 }, - { 0x9447, 65302 }, - { 0x9448, 65306 }, - { 0x9449, 65310 }, - { 0x944A, 65314 }, - { 0x944B, 65318 }, - { 0x944C, 65322 }, - { 0x944D, 65326 }, - { 0x944E, 65011 }, - { 0x944F, 65015 }, - { 0x9450, 65019 }, - { 0x9451, 65023 }, - { 0x9452, 65027 }, - { 0x9453, 65031 }, - { 0x9454, 65035 }, - { 0x9456, 65039 }, - { 0x9457, 65043 }, - { 0x9458, 65047 }, - { 0x9459, 65051 }, - { 0x945A, 65055 }, - { 0x945B, 65059 }, - { 0x945C, 65063 }, - { 0x945D, 65067 }, - { 0x945E, 65071 }, - { 0x945F, 65075 }, - { 0x9460, 65079 }, - { 0x9461, 65083 }, - { 0x9462, 65087 }, - { 0x9463, 65091 }, - { 0x9464, 65095 }, - { 0x9465, 65099 }, - { 0x9466, 65103 }, - { 0x9467, 65107 }, - { 0x9468, 63961 }, - { 0x9469, 63966 }, - { 0x946A, 63971 }, - { 0x946B, 63976 }, - { 0x946C, 63981 }, - { 0x946D, 63986 }, - { 0x946E, 63991 }, - { 0x946F, 63996 }, - { 0x9470, 64001 }, - { 0x9471, 64006 }, - { 0x9472, 64011 }, - { 0x9473, 64016 }, - { 0x9474, 64021 }, - { 0x9475, 64026 }, - { 0x9476, 64031 }, - { 0x9477, 64036 }, - { 0x9478, 64041 }, - { 0x9479, 64046 }, - { 0x947A, 64051 }, - { 0x947B, 64056 }, - { 0x947C, 64061 }, - { 0x947D, 64066 }, - { 0x947E, 64071 }, - { 0x947F, 64076 }, - { 0x9480, 64081 }, - { 0x9481, 64086 }, - { 0x9482, 63700 }, - { 0x9483, 63705 }, - { 0x9484, 63710 }, - { 0x9485, 63715 }, - { 0x9486, 63720 }, - { 0x9487, 63725 }, - { 0x9488, 63730 }, - { 0x9489, 63735 }, - { 0x948A, 63740 }, - { 0x948B, 63745 }, - { 0x948C, 63750 }, - { 0x948D, 63755 }, - { 0x948E, 63760 }, - { 0x948F, 63765 }, - { 0x9490, 63770 }, - { 0x9491, 63775 }, - { 0x9492, 63780 }, - { 0x9493, 63785 }, - { 0x9494, 63790 }, - { 0x9495, 63795 }, - { 0x9496, 63800 }, - { 0x9497, 63805 }, - { 0x9498, 63810 }, - { 0x9499, 63815 }, - { 0x949A, 63820 }, - { 0x949B, 63825 }, - { 0x949C, 65531 }, - { 0x949E, 65535 }, - { 0x949F, 65539 }, - { 0x94A2, 65543 }, - { 0x94A5, 65547 }, - { 0x94A6, 65551 }, - { 0x94A9, 65555 }, - { 0x94AA, 65559 }, - { 0x94AB, 65563 }, - { 0x94AC, 65567 }, - { 0x94AE, 65571 }, - { 0x94AF, 65575 }, - { 0x94B0, 65579 }, - { 0x94B1, 65583 }, - { 0x94B2, 65587 }, - { 0x94B3, 65591 }, - { 0x94B4, 65595 }, - { 0x94B5, 65599 }, - { 0x94B6, 65439 }, - { 0x94B7, 65443 }, - { 0x94B8, 65447 }, - { 0x94B9, 65451 }, - { 0x94BB, 65455 }, - { 0x94BD, 65459 }, - { 0x94BE, 65463 }, - { 0x94BF, 65467 }, - { 0x94C0, 65471 }, - { 0x94C1, 65475 }, - { 0x94C2, 65479 }, - { 0x94C3, 65483 }, - { 0x94C5, 65487 }, - { 0x94C6, 65491 }, - { 0x94C7, 65495 }, - { 0x94C8, 65499 }, - { 0x94C9, 65503 }, - { 0x94CA, 65507 }, - { 0x94CB, 65511 }, - { 0x94CC, 65515 }, - { 0x94CD, 65519 }, - { 0x94CE, 65523 }, - { 0x94CF, 65527 }, - { 0x94D0, 64357 }, - { 0x94D1, 64362 }, - { 0x94D2, 64367 }, - { 0x94D3, 64372 }, - { 0x94D4, 64377 }, - { 0x94D5, 64382 }, - { 0x94D6, 64387 }, - { 0x94D7, 64392 }, - { 0x94D8, 64397 }, - { 0x94D9, 64402 }, - { 0x94DA, 64407 }, - { 0x94DB, 64412 }, - { 0x94DC, 64417 }, - { 0x94DD, 64422 }, - { 0x94DE, 64427 }, - { 0x94DF, 64432 }, - { 0x94E0, 64437 }, - { 0x94E1, 64442 }, - { 0x94E2, 64447 }, - { 0x94E3, 64452 }, - { 0x94E4, 64457 }, - { 0x94E5, 64462 }, - { 0x94E6, 64467 }, - { 0x94E7, 64472 }, - { 0x94E8, 64477 }, - { 0x94E9, 64482 }, - { 0x94EA, 64227 }, - { 0x94EB, 64232 }, - { 0x94EC, 64237 }, - { 0x94ED, 64242 }, - { 0x94EE, 64247 }, - { 0x94EF, 64252 }, - { 0x94F0, 64257 }, - { 0x94F1, 64262 }, - { 0x94F2, 64267 }, - { 0x94F3, 64272 }, - { 0x94F4, 64277 }, - { 0x94F5, 64282 }, - { 0x94F6, 64287 }, - { 0x94F7, 64292 }, - { 0x94F8, 64297 }, - { 0x94F9, 64302 }, - { 0x94FA, 64307 }, - { 0x94FB, 64312 }, - { 0x94FC, 64317 }, - { 0x94FD, 64322 }, - { 0x94FE, 64327 }, - { 0x94FF, 64332 }, - { 0x9500, 64337 }, - { 0x9501, 64342 }, - { 0x9502, 64347 }, - { 0x9503, 64352 }, - { 0x9504, 65707 }, - { 0x9505, 65711 }, - { 0x9507, 65715 }, - { 0x9508, 65719 }, - { 0x9509, 65723 }, - { 0x950A, 65727 }, - { 0x950D, 65731 }, - { 0x950E, 65735 }, - { 0x950F, 65739 }, - { 0x9510, 65743 }, - { 0x9511, 65747 }, - { 0x9512, 65751 }, - { 0x9513, 65755 }, - { 0x9514, 65759 }, - { 0x9516, 65763 }, - { 0x9517, 65767 }, - { 0x9518, 65771 }, - { 0x9519, 65775 }, - { 0x951A, 65779 }, - { 0x951B, 65783 }, - { 0x951C, 65787 }, - { 0x951E, 65603 }, - { 0x951F, 65607 }, - { 0x9520, 65611 }, - { 0x9521, 65615 }, - { 0x9522, 65619 }, - { 0x9523, 65623 }, - { 0x9524, 65627 }, - { 0x9525, 65631 }, - { 0x9526, 65635 }, - { 0x9527, 65639 }, - { 0x9528, 65643 }, - { 0x9529, 65647 }, - { 0x952A, 65651 }, - { 0x952B, 65655 }, - { 0x952C, 65659 }, - { 0x952D, 65663 }, - { 0x952E, 65667 }, - { 0x952F, 65671 }, - { 0x9530, 65675 }, - { 0x9531, 65679 }, - { 0x9532, 65683 }, - { 0x9533, 65687 }, - { 0x9534, 65691 }, - { 0x9535, 65695 }, - { 0x9536, 65699 }, - { 0x9537, 65703 }, - { 0x9538, 67953 }, - { 0x9539, 67957 }, - { 0x953B, 67961 }, - { 0x953C, 67965 }, - { 0x953D, 67969 }, - { 0x953E, 67973 }, - { 0x9540, 67977 }, - { 0x9541, 67981 }, - { 0x9542, 67985 }, - { 0x9543, 67989 }, - { 0x9544, 67993 }, - { 0x9546, 67997 }, - { 0x954A, 68001 }, - { 0x954B, 68005 }, - { 0x954C, 68009 }, - { 0x954D, 68013 }, - { 0x954E, 68017 }, - { 0x954F, 68021 }, - { 0x9550, 68025 }, - { 0x9552, 67849 }, - { 0x9553, 67853 }, - { 0x9554, 67857 }, - { 0x9555, 67861 }, - { 0x9556, 67865 }, - { 0x9557, 67869 }, - { 0x9558, 67873 }, - { 0x9559, 67877 }, - { 0x955A, 67881 }, - { 0x955B, 67885 }, - { 0x955C, 67889 }, - { 0x955D, 67893 }, - { 0x955E, 67897 }, - { 0x955F, 67901 }, - { 0x9560, 67905 }, - { 0x9561, 67909 }, - { 0x9562, 67913 }, - { 0x9563, 67917 }, - { 0x9564, 67921 }, - { 0x9565, 67925 }, - { 0x9566, 67929 }, - { 0x9567, 67933 }, - { 0x9568, 67937 }, - { 0x9569, 67941 }, - { 0x956A, 67945 }, - { 0x956B, 67949 }, - { 0x956C, 64830 }, - { 0x956D, 64835 }, - { 0x956E, 64840 }, - { 0x956F, 64845 }, - { 0x9570, 64850 }, - { 0x9571, 64855 }, - { 0x9572, 64860 }, - { 0x9573, 64865 }, - { 0x9574, 64870 }, - { 0x9575, 64875 }, - { 0x9576, 64880 }, - { 0x9577, 64885 }, - { 0x9578, 64890 }, - { 0x9579, 64895 }, - { 0x957A, 64900 }, - { 0x957B, 64905 }, - { 0x957C, 64910 }, - { 0x957D, 64915 }, - { 0x957E, 64920 }, - { 0x957F, 64925 }, - { 0x9580, 64930 }, - { 0x9581, 64935 }, - { 0x9582, 64940 }, - { 0x9583, 64945 }, - { 0x9584, 64950 }, - { 0x9585, 64955 }, - { 0x9586, 64700 }, - { 0x9587, 64705 }, - { 0x9588, 64710 }, - { 0x9589, 64715 }, - { 0x958A, 64720 }, - { 0x958B, 64725 }, - { 0x958C, 64730 }, - { 0x958D, 64735 }, - { 0x958E, 64740 }, - { 0x958F, 64745 }, - { 0x9590, 64750 }, - { 0x9591, 64755 }, - { 0x9592, 64760 }, - { 0x9593, 64765 }, - { 0x9594, 64770 }, - { 0x9595, 64775 }, - { 0x9596, 64780 }, - { 0x9597, 64785 }, - { 0x9598, 64790 }, - { 0x9599, 64795 }, - { 0x959A, 64800 }, - { 0x959B, 64805 }, - { 0x959C, 64810 }, - { 0x959D, 64815 }, - { 0x959E, 64820 }, - { 0x959F, 64825 }, - { 0x95A0, 67705 }, - { 0x95A1, 67709 }, - { 0x95A2, 67713 }, - { 0x95A3, 67717 }, - { 0x95A4, 67721 }, - { 0x95A5, 67725 }, - { 0x95A6, 67729 }, - { 0x95A7, 67733 }, - { 0x95A8, 67737 }, - { 0x95A9, 67741 }, - { 0x95AA, 67745 }, - { 0x95AB, 67749 }, - { 0x95AC, 67753 }, - { 0x95AD, 67757 }, - { 0x95AE, 67761 }, - { 0x95AF, 67765 }, - { 0x95B0, 67769 }, - { 0x95B1, 67773 }, - { 0x95B2, 67777 }, - { 0x95B3, 67781 }, - { 0x95B4, 67785 }, - { 0x95B5, 67789 }, - { 0x95B6, 67793 }, - { 0x95B7, 67797 }, - { 0x95B8, 67801 }, - { 0x95B9, 67805 }, - { 0x95BA, 67341 }, - { 0x95BB, 67345 }, - { 0x95BC, 67349 }, - { 0x95BD, 67353 }, - { 0x95BE, 67357 }, - { 0x95BF, 67361 }, - { 0x95C0, 67365 }, - { 0x95C1, 67369 }, - { 0x95C2, 67373 }, - { 0x95C3, 67377 }, - { 0x95C4, 67381 }, - { 0x95C5, 67385 }, - { 0x95C6, 67389 }, - { 0x95C7, 67393 }, - { 0x95C8, 67397 }, - { 0x95C9, 67401 }, - { 0x95CA, 67405 }, - { 0x95CB, 67409 }, - { 0x95CC, 67413 }, - { 0x95CD, 67417 }, - { 0x95CE, 67421 }, - { 0x95CF, 67425 }, - { 0x95D0, 67429 }, - { 0x95D1, 67433 }, - { 0x95D2, 67437 }, - { 0x95D3, 67441 }, - { 0x95D4, 67035 }, - { 0x95D5, 67040 }, - { 0x95D6, 67045 }, - { 0x95D7, 67050 }, - { 0x95D8, 67055 }, - { 0x95D9, 67060 }, - { 0x95DA, 67065 }, - { 0x95DB, 67070 }, - { 0x95DC, 67075 }, - { 0x95DD, 67080 }, - { 0x95DE, 67085 }, - { 0x95DF, 67090 }, - { 0x95E0, 67095 }, - { 0x95E1, 67100 }, - { 0x95E2, 67105 }, - { 0x95E3, 67110 }, - { 0x95E4, 67115 }, - { 0x95E5, 67120 }, - { 0x95E6, 67125 }, - { 0x95E7, 67130 }, - { 0x95E8, 67135 }, - { 0x95E9, 67140 }, - { 0x95EA, 67145 }, - { 0x95EB, 67150 }, - { 0x95EC, 67155 }, - { 0x95ED, 67160 }, - { 0x95EE, 66113 }, - { 0x95EF, 66118 }, - { 0x95F0, 66123 }, - { 0x95F1, 66128 }, - { 0x95F2, 66133 }, - { 0x95F3, 66138 }, - { 0x95F4, 66143 }, - { 0x95F5, 66148 }, - { 0x95F6, 66153 }, - { 0x95F7, 66158 }, - { 0x95F8, 66163 }, - { 0x95F9, 66168 }, - { 0x95FA, 66173 }, - { 0x95FB, 66178 }, - { 0x95FC, 66183 }, - { 0x95FD, 66188 }, - { 0x95FE, 66193 }, - { 0x95FF, 66198 }, - { 0x9600, 66203 }, - { 0x9601, 66208 }, - { 0x9602, 66213 }, - { 0x9603, 66218 }, - { 0x9604, 66223 }, - { 0x9605, 66228 }, - { 0x9606, 66233 }, - { 0x9607, 66238 }, - { 0x9608, 67575 }, - { 0x9609, 67580 }, - { 0x960A, 67585 }, - { 0x960B, 67590 }, - { 0x960C, 67595 }, - { 0x960D, 67600 }, - { 0x960E, 67605 }, - { 0x960F, 67610 }, - { 0x9610, 67615 }, - { 0x9611, 67620 }, - { 0x9612, 67625 }, - { 0x9613, 67630 }, - { 0x9614, 67635 }, - { 0x9615, 67640 }, - { 0x9616, 67645 }, - { 0x9617, 67650 }, - { 0x9618, 67655 }, - { 0x9619, 67660 }, - { 0x961A, 67665 }, - { 0x961B, 67670 }, - { 0x961C, 67675 }, - { 0x961D, 67680 }, - { 0x961E, 67685 }, - { 0x961F, 67690 }, - { 0x9620, 67695 }, - { 0x9621, 67700 }, - { 0x9622, 67445 }, - { 0x9623, 67450 }, - { 0x9624, 67455 }, - { 0x9625, 67460 }, - { 0x9626, 67465 }, - { 0x9627, 67470 }, - { 0x9628, 67475 }, - { 0x9629, 67480 }, - { 0x962A, 67485 }, - { 0x962B, 67490 }, - { 0x962C, 67495 }, - { 0x962D, 67500 }, - { 0x962E, 67505 }, - { 0x962F, 67510 }, - { 0x9630, 67515 }, - { 0x9631, 67520 }, - { 0x9632, 67525 }, - { 0x9633, 67530 }, - { 0x9634, 67535 }, - { 0x9635, 67540 }, - { 0x9636, 67545 }, - { 0x9637, 67550 }, - { 0x9638, 67555 }, - { 0x9639, 67560 }, - { 0x963A, 67565 }, - { 0x963B, 67570 }, - { 0x963C, 66716 }, - { 0x963D, 66722 }, - { 0x963E, 66728 }, - { 0x963F, 66734 }, - { 0x9640, 66740 }, - { 0x9641, 66746 }, - { 0x9642, 66752 }, - { 0x9643, 66758 }, - { 0x9644, 66764 }, - { 0x9645, 66770 }, - { 0x9646, 66776 }, - { 0x9647, 66782 }, - { 0x9648, 66788 }, - { 0x9649, 66794 }, - { 0x964A, 66800 }, - { 0x964B, 66806 }, - { 0x964C, 66812 }, - { 0x964D, 66818 }, - { 0x964E, 66824 }, - { 0x964F, 66830 }, - { 0x9650, 66836 }, - { 0x9651, 66842 }, - { 0x9652, 66848 }, - { 0x9653, 66854 }, - { 0x9654, 66860 }, - { 0x9655, 66866 }, - { 0x9656, 66403 }, - { 0x9657, 66409 }, - { 0x9658, 66415 }, - { 0x9659, 66421 }, - { 0x965A, 66427 }, - { 0x965B, 66433 }, - { 0x965C, 66439 }, - { 0x965D, 66445 }, - { 0x965E, 66451 }, - { 0x965F, 66457 }, - { 0x9660, 66463 }, - { 0x9661, 66469 }, - { 0x9662, 66475 }, - { 0x9663, 66481 }, - { 0x9664, 66487 }, - { 0x9665, 66493 }, - { 0x9666, 66499 }, - { 0x9667, 66505 }, - { 0x9668, 66511 }, - { 0x9669, 66517 }, - { 0x966A, 66523 }, - { 0x966B, 66529 }, - { 0x966C, 66535 }, - { 0x966D, 66541 }, - { 0x966E, 66547 }, - { 0x966F, 66553 }, - { 0x9670, 65935 }, - { 0x9671, 65939 }, - { 0x9672, 65943 }, - { 0x9673, 65947 }, - { 0x9674, 65951 }, - { 0x9675, 65955 }, - { 0x9676, 65959 }, - { 0x9677, 65963 }, - { 0x9678, 65967 }, - { 0x9679, 65971 }, - { 0x967A, 65975 }, - { 0x967B, 65979 }, - { 0x967C, 65983 }, - { 0x967D, 65987 }, - { 0x967E, 65991 }, - { 0x967F, 65995 }, - { 0x9680, 65999 }, - { 0x9681, 66003 }, - { 0x9682, 66007 }, - { 0x9683, 66011 }, - { 0x9684, 66015 }, - { 0x9685, 66019 }, - { 0x9686, 66023 }, - { 0x9687, 66027 }, - { 0x9688, 66031 }, - { 0x9689, 66035 }, - { 0x968A, 65831 }, - { 0x968B, 65835 }, - { 0x968C, 65839 }, - { 0x968D, 65843 }, - { 0x968E, 65847 }, - { 0x968F, 65851 }, - { 0x9690, 65855 }, - { 0x9691, 65859 }, - { 0x9692, 65863 }, - { 0x9693, 65867 }, - { 0x9694, 65871 }, - { 0x9695, 65875 }, - { 0x9696, 65879 }, - { 0x9697, 65883 }, - { 0x9698, 65887 }, - { 0x9699, 65891 }, - { 0x969A, 65895 }, - { 0x969B, 65899 }, - { 0x969C, 65903 }, - { 0x969D, 65907 }, - { 0x969E, 65911 }, - { 0x969F, 65915 }, - { 0x96A0, 65919 }, - { 0x96A1, 65923 }, - { 0x96A2, 65927 }, - { 0x96A3, 65931 }, - { 0x96A4, 65200 }, - { 0x96A5, 65205 }, - { 0x96A8, 64643 }, - { 0x96A9, 64631 }, - { 0x96AA, 64651 }, - { 0x96AB, 64647 }, - { 0x96AC, 64684 }, - { 0x96AD, 64639 }, - { 0x96AE, 64611 }, - { 0x96AF, 64671 }, - { 0x96B0, 64635 }, - { 0x96B1, 64655 }, - { 0x96B2, 64659 }, - { 0x96B3, 64591 }, - { 0x96B4, 64595 }, - { 0x96B5, 64603 }, - { 0x96B6, 64688 }, - { 0x96B7, 64599 }, - { 0x96B8, 64623 }, - { 0x96B9, 64675 }, - { 0x96BA, 64667 }, - { 0x96BB, 64627 }, - { 0x96BC, 64692 }, - { 0x96BD, 64615 }, - { 0x96BE, 64607 }, - { 0x96BF, 64619 }, - { 0x96C0, 64663 }, - { 0x96C1, 63460 }, - { 0x96C2, 63619 }, - { 0x96C3, 63607 }, - { 0x96C4, 63632 }, - { 0x96C5, 63623 }, - { 0x96C6, 63660 }, - { 0x96C7, 63615 }, - { 0x96C8, 63587 }, - { 0x96C9, 63652 }, - { 0x96CA, 63611 }, - { 0x96CB, 63636 }, - { 0x96CC, 63640 }, - { 0x96CD, 63567 }, - { 0x96CE, 63571 }, - { 0x96CF, 63579 }, - { 0x96D0, 63664 }, - { 0x96D1, 63575 }, - { 0x96D2, 63599 }, - { 0x96D3, 63627 }, - { 0x96D4, 63648 }, - { 0x96D5, 63603 }, - { 0x96D6, 63668 }, - { 0x96D7, 63591 }, - { 0x96D8, 63583 }, - { 0x96D9, 63595 }, - { 0x96DA, 63644 }, - { 0x96DB, 64960 }, - { 0x96DC, 64696 }, - { 0x96DD, 63672 }, - { 0x96DE, 63456 }, - { 0x96DF, 63408 }, - { 0x96E0, 63412 }, - { 0x96E1, 63404 }, - { 0x96E2, 65382 }, - { 0x96E3, 65370 }, - { 0x96E4, 65390 }, - { 0x96E5, 65386 }, - { 0x96E6, 65419 }, - { 0x96E7, 65378 }, - { 0x96E8, 65350 }, - { 0x96E9, 65410 }, - { 0x96EA, 65374 }, - { 0x96EB, 65394 }, - { 0x96EC, 65398 }, - { 0x96ED, 65330 }, - { 0x96EE, 65334 }, - { 0x96EF, 65342 }, - { 0x96F0, 65423 }, - { 0x96F1, 65338 }, - { 0x96F2, 65362 }, - { 0x96F3, 65414 }, - { 0x96F4, 65406 }, - { 0x96F5, 65366 }, - { 0x96F6, 65427 }, - { 0x96F7, 65354 }, - { 0x96F8, 65346 }, - { 0x96F9, 65358 }, - { 0x96FA, 65402 }, - { 0x96FB, 65008 }, - { 0x96FC, 65163 }, - { 0x96FD, 65151 }, - { 0x96FE, 65176 }, - { 0x96FF, 65167 }, - { 0x9700, 65210 }, - { 0x9701, 65159 }, - { 0x9702, 65131 }, - { 0x9703, 65196 }, - { 0x9704, 65155 }, - { 0x9705, 65180 }, - { 0x9706, 65184 }, - { 0x9707, 65111 }, - { 0x9708, 65115 }, - { 0x9709, 65123 }, - { 0x970A, 65214 }, - { 0x970B, 65119 }, - { 0x970C, 65143 }, - { 0x970D, 65171 }, - { 0x970E, 65192 }, - { 0x970F, 65147 }, - { 0x9710, 65218 }, - { 0x9711, 65135 }, - { 0x9712, 65127 }, - { 0x9713, 65139 }, - { 0x9714, 65188 }, - { 0x9715, 65435 }, - { 0x9716, 65431 }, - { 0x9717, 65222 }, - { 0x9718, 65004 }, - { 0x9719, 64996 }, - { 0x971A, 65000 }, - { 0x971B, 64992 }, - { 0x971C, 64156 }, - { 0x971D, 64141 }, - { 0x971E, 64166 }, - { 0x971F, 64161 }, - { 0x9720, 64202 }, - { 0x9721, 64151 }, - { 0x9722, 64116 }, - { 0x9723, 64191 }, - { 0x9724, 64146 }, - { 0x9725, 64171 }, - { 0x9726, 64176 }, - { 0x9727, 64091 }, - { 0x9728, 64096 }, - { 0x9729, 64106 }, - { 0x972A, 64207 }, - { 0x972B, 64101 }, - { 0x972C, 64131 }, - { 0x972D, 64196 }, - { 0x972E, 64186 }, - { 0x972F, 64136 }, - { 0x9730, 64212 }, - { 0x9731, 64121 }, - { 0x9732, 64111 }, - { 0x9733, 64126 }, - { 0x9734, 64181 }, - { 0x9735, 63696 }, - { 0x9736, 63895 }, - { 0x9737, 63880 }, - { 0x9738, 63911 }, - { 0x9739, 63900 }, - { 0x973A, 63941 }, - { 0x973B, 63890 }, - { 0x973C, 63855 }, - { 0x973D, 63936 }, - { 0x973E, 63885 }, - { 0x973F, 63916 }, - { 0x9740, 63921 }, - { 0x9741, 63830 }, - { 0x9742, 63835 }, - { 0x9743, 63845 }, - { 0x9744, 63946 }, - { 0x9745, 63840 }, - { 0x9746, 63870 }, - { 0x9747, 63905 }, - { 0x9748, 63931 }, - { 0x9749, 63875 }, - { 0x974A, 63951 }, - { 0x974B, 63860 }, - { 0x974C, 63850 }, - { 0x974D, 63865 }, - { 0x974E, 63926 }, - { 0x974F, 64222 }, - { 0x9750, 64217 }, - { 0x9751, 63956 }, - { 0x9752, 63691 }, - { 0x9753, 63681 }, - { 0x9754, 63686 }, - { 0x9755, 63676 }, - { 0x9756, 67230 }, - { 0x9757, 67215 }, - { 0x9758, 67240 }, - { 0x9759, 67235 }, - { 0x975A, 67276 }, - { 0x975B, 67225 }, - { 0x975C, 67190 }, - { 0x975D, 67265 }, - { 0x975E, 67220 }, - { 0x975F, 67245 }, - { 0x9760, 67250 }, - { 0x9761, 67165 }, - { 0x9762, 67170 }, - { 0x9763, 67180 }, - { 0x9764, 67281 }, - { 0x9765, 67175 }, - { 0x9766, 67205 }, - { 0x9767, 67270 }, - { 0x9768, 67260 }, - { 0x9769, 67210 }, - { 0x976A, 67286 }, - { 0x976B, 67195 }, - { 0x976C, 67185 }, - { 0x976D, 67200 }, - { 0x976E, 67255 }, - { 0x976F, 66109 }, - { 0x9770, 66308 }, - { 0x9771, 66293 }, - { 0x9772, 66324 }, - { 0x9773, 66313 }, - { 0x9774, 66354 }, - { 0x9775, 66303 }, - { 0x9776, 66268 }, - { 0x9777, 66349 }, - { 0x9778, 66298 }, - { 0x9779, 66329 }, - { 0x977A, 66334 }, - { 0x977B, 66243 }, - { 0x977C, 66248 }, - { 0x977D, 66258 }, - { 0x977E, 66359 }, - { 0x977F, 66253 }, - { 0x9780, 66283 }, - { 0x9781, 66318 }, - { 0x9782, 66344 }, - { 0x9783, 66288 }, - { 0x9784, 66364 }, - { 0x9785, 66273 }, - { 0x9786, 66263 }, - { 0x9787, 66278 }, - { 0x9788, 66339 }, - { 0x9789, 67296 }, - { 0x978A, 67291 }, - { 0x978B, 66369 }, - { 0x978C, 66104 }, - { 0x978D, 66044 }, - { 0x978E, 66049 }, - { 0x978F, 66039 }, - { 0x9790, 66950 }, - { 0x9791, 66932 }, - { 0x9792, 66962 }, - { 0x9793, 66956 }, - { 0x9794, 67005 }, - { 0x9795, 66944 }, - { 0x9796, 66902 }, - { 0x9797, 66992 }, - { 0x9798, 66938 }, - { 0x9799, 66968 }, - { 0x979A, 66974 }, - { 0x979B, 66872 }, - { 0x979C, 66878 }, - { 0x979D, 66890 }, - { 0x979E, 67011 }, - { 0x979F, 66884 }, - { 0x97A0, 66920 }, - { 0x97A1, 66998 }, - { 0x97A2, 66986 }, - { 0x97A3, 66926 }, - { 0x97A4, 67017 }, - { 0x97A5, 66908 }, - { 0x97A6, 66896 }, - { 0x97A7, 66914 }, - { 0x97A8, 66980 }, - { 0x97A9, 66398 }, - { 0x97AA, 66637 }, - { 0x97AB, 66619 }, - { 0x97AC, 66656 }, - { 0x97AD, 66643 }, - { 0x97AE, 66692 }, - { 0x97AF, 66631 }, - { 0x97B0, 66589 }, - { 0x97B1, 66686 }, - { 0x97B2, 66625 }, - { 0x97B3, 66662 }, - { 0x97B4, 66668 }, - { 0x97B5, 66559 }, - { 0x97B6, 66565 }, - { 0x97B7, 66577 }, - { 0x97B8, 66698 }, - { 0x97B9, 66571 }, - { 0x97BA, 66607 }, - { 0x97BB, 66649 }, - { 0x97BC, 66680 }, - { 0x97BD, 66613 }, - { 0x97BE, 66704 }, - { 0x97BF, 66595 }, - { 0x97C0, 66583 }, - { 0x97C1, 66601 }, - { 0x97C2, 66674 }, - { 0x97C3, 67029 }, - { 0x97C4, 67023 }, - { 0x97C5, 66710 }, - { 0x97C6, 66392 }, - { 0x97C7, 66380 }, - { 0x97C8, 66386 }, - { 0x97C9, 66374 }, - { 0x97CA, 64680 }, - { 0x97CB, 63656 }, - { 0x97CE, 63440 }, - { 0x97CF, 63416 }, - { 0x97D0, 63424 }, - { 0x97D1, 63452 }, - { 0x97D2, 63432 }, - { 0x97D3, 63428 }, - { 0x97D4, 63420 }, - { 0x97D5, 63448 }, - { 0x97D6, 63444 }, - { 0x97D7, 63436 }, - { 0x97D8, 67833 }, - { 0x97D9, 67809 }, - { 0x97DA, 67817 }, - { 0x97DB, 67845 }, - { 0x97DC, 67825 }, - { 0x97DD, 67821 }, - { 0x97DE, 67813 }, - { 0x97DF, 67841 }, - { 0x97E0, 67837 }, - { 0x97E1, 67829 }, - { 0x97E2, 67325 }, - { 0x97E3, 67301 }, - { 0x97E4, 67309 }, - { 0x97E5, 67337 }, - { 0x97E6, 67317 }, - { 0x97E7, 67313 }, - { 0x97E8, 67305 }, - { 0x97E9, 67333 }, - { 0x97EA, 67329 }, - { 0x97EB, 67321 }, - { 0x97EC, 66084 }, - { 0x97ED, 66054 }, - { 0x97EE, 66064 }, - { 0x97EF, 66099 }, - { 0x97F0, 66074 }, - { 0x97F1, 66069 }, - { 0x97F2, 66059 }, - { 0x97F3, 66094 }, - { 0x97F4, 66089 }, - { 0x97F5, 66079 }, - { 0x97F6, 65815 }, - { 0x97F7, 65791 }, - { 0x97F8, 65799 }, - { 0x97F9, 65827 }, - { 0x97FA, 65807 }, - { 0x97FB, 65803 }, - { 0x97FC, 65795 }, - { 0x97FD, 65823 }, - { 0x97FE, 65819 }, - { 0x97FF, 65811 }, - { 0xB001, 48753 }, - { 0xB020, 7261 }, - { 0xB021, 7308 }, - { 0xB022, 7295 }, - { 0xB023, 7271 }, - { 0xB024, 7265 }, - { 0xB025, 7274 }, - { 0xB026, 7290 }, - { 0xB027, 7300 }, - { 0xB028, 6947 }, - { 0xB029, 7258 }, - { 0xB02A, 7282 }, - { 0xB02B, 6950 }, - { 0xB02C, 6955 }, - { 0xB02D, 7314 }, - { 0xB02E, 6936 }, - { 0xB02F, 7280 }, - { 0xB030, 6975 }, - { 0xB031, 6957 }, - { 0xB032, 6963 }, - { 0xB033, 6984 }, - { 0xB034, 6969 }, - { 0xB035, 6966 }, - { 0xB036, 6960 }, - { 0xB037, 6981 }, - { 0xB038, 6978 }, - { 0xB039, 6972 }, - { 0xB03A, 6953 }, - { 0xB03B, 7298 }, - { 0xB03C, 7292 }, - { 0xB03D, 7268 }, - { 0xB03E, 7311 }, - { 0xB03F, 7284 }, - { 0xB040, 7305 }, - { 0xB041, 7120 }, - { 0xB042, 7125 }, - { 0xB043, 7130 }, - { 0xB044, 7135 }, - { 0xB045, 7140 }, - { 0xB046, 7145 }, - { 0xB047, 7150 }, - { 0xB048, 7155 }, - { 0xB049, 7160 }, - { 0xB04A, 7165 }, - { 0xB04B, 7170 }, - { 0xB04C, 7175 }, - { 0xB04D, 7180 }, - { 0xB04E, 7185 }, - { 0xB04F, 7190 }, - { 0xB050, 7195 }, - { 0xB051, 7200 }, - { 0xB052, 7205 }, - { 0xB053, 7210 }, - { 0xB054, 7215 }, - { 0xB055, 7220 }, - { 0xB056, 7225 }, - { 0xB057, 7230 }, - { 0xB058, 7235 }, - { 0xB059, 7240 }, - { 0xB05A, 7245 }, - { 0xB05B, 6943 }, - { 0xB05C, 7277 }, - { 0xB05D, 7254 }, - { 0xB05E, 7302 }, - { 0xB05F, 6933 }, - { 0xB060, 6987 }, - { 0xB061, 6990 }, - { 0xB062, 6995 }, - { 0xB063, 7000 }, - { 0xB064, 7005 }, - { 0xB065, 7010 }, - { 0xB066, 7015 }, - { 0xB067, 7020 }, - { 0xB068, 7025 }, - { 0xB069, 7030 }, - { 0xB06A, 7035 }, - { 0xB06B, 7040 }, - { 0xB06C, 7045 }, - { 0xB06D, 7050 }, - { 0xB06E, 7055 }, - { 0xB06F, 7060 }, - { 0xB070, 7065 }, - { 0xB071, 7070 }, - { 0xB072, 7075 }, - { 0xB073, 7080 }, - { 0xB074, 7085 }, - { 0xB075, 7090 }, - { 0xB076, 7095 }, - { 0xB077, 7100 }, - { 0xB078, 7105 }, - { 0xB079, 7110 }, - { 0xB07A, 7115 }, - { 0xB07B, 6939 }, - { 0xB07C, 7287 }, - { 0xB07D, 7250 }, - { 0xB07E, 7263 }, - { 0xB07F, 27471 }, - { 0xB100, 60470 }, - { 0xB101, 60472 }, - { 0xB102, 60474 }, - { 0xB103, 60476 }, - { 0xB104, 60478 }, - { 0xB105, 60480 }, - { 0xB106, 60482 }, - { 0xB107, 60484 }, - { 0xB108, 60486 }, - { 0xB109, 60488 }, - { 0xB10A, 60490 }, - { 0xB10B, 60492 }, - { 0xB10C, 60494 }, - { 0xB10D, 60496 }, - { 0xB10E, 60498 }, - { 0xB10F, 60500 }, - { 0xB110, 60502 }, - { 0xB111, 60504 }, - { 0xB112, 60506 }, - { 0xB113, 60508 }, - { 0xB114, 60510 }, - { 0xB115, 60512 }, - { 0xB116, 60514 }, - { 0xB117, 60516 }, - { 0xB118, 60518 }, - { 0xB119, 60520 }, - { 0xB11A, 60522 }, - { 0xB11B, 60524 }, - { 0xB11C, 60526 }, - { 0xB11D, 60528 }, - { 0xB11E, 60530 }, - { 0xB11F, 60532 }, - { 0xB120, 60534 }, - { 0xB121, 60536 }, - { 0xB122, 60538 }, - { 0xB123, 60540 }, - { 0xB124, 60542 }, - { 0xB125, 60544 }, - { 0xB126, 60546 }, - { 0xB127, 60548 }, - { 0xB128, 60550 }, - { 0xB129, 60552 }, - { 0xB12A, 60554 }, - { 0xB12B, 60556 }, - { 0xB12C, 60558 }, - { 0xB12D, 60560 }, - { 0xB12E, 60562 }, - { 0xB12F, 60564 }, - { 0xB130, 60566 }, - { 0xB131, 60568 }, - { 0xB132, 60570 }, - { 0xB133, 60572 }, - { 0xB134, 60574 }, - { 0xB135, 60576 }, - { 0xB136, 60578 }, - { 0xB137, 60580 }, - { 0xB138, 60582 }, - { 0xB139, 60584 }, - { 0xB13A, 60586 }, - { 0xB13B, 60588 }, - { 0xB13C, 60590 }, - { 0xB13D, 60592 }, - { 0xB13E, 60594 }, - { 0xB13F, 60596 }, - { 0xB140, 60598 }, - { 0xB141, 60600 }, - { 0xB142, 60602 }, - { 0xB143, 60604 }, - { 0xB144, 60606 }, - { 0xB145, 60608 }, - { 0xB146, 60610 }, - { 0xB147, 60612 }, - { 0xB148, 60614 }, - { 0xB149, 60616 }, - { 0xB14A, 60618 }, - { 0xB14B, 60620 }, - { 0xB14C, 60622 }, - { 0xB14D, 60624 }, - { 0xB14E, 60626 }, - { 0xB14F, 60628 }, - { 0xB150, 60630 }, - { 0xB151, 60632 }, - { 0xB152, 60634 }, - { 0xB153, 60636 }, - { 0xB154, 60638 }, - { 0xB155, 60640 }, - { 0xB156, 60642 }, - { 0xB157, 60644 }, - { 0xB158, 60646 }, - { 0xB159, 60648 }, - { 0xB15A, 60650 }, - { 0xB15B, 60652 }, - { 0xB15C, 60654 }, - { 0xB15D, 60656 }, - { 0xB15E, 60658 }, - { 0xB15F, 60660 }, - { 0xB160, 60662 }, - { 0xB161, 60664 }, - { 0xB162, 60666 }, - { 0xB163, 60668 }, - { 0xB164, 60670 }, - { 0xB165, 60672 }, - { 0xB166, 60674 }, - { 0xB167, 60676 }, - { 0xB168, 60678 }, - { 0xB169, 60680 }, - { 0xB16A, 60682 }, - { 0xB16B, 60684 }, - { 0xB16C, 60686 }, - { 0xB16D, 60688 }, - { 0xB16E, 60690 }, - { 0xB16F, 60692 }, - { 0xB170, 60694 }, - { 0xB171, 60696 }, - { 0xB172, 60698 }, - { 0xB173, 60700 }, - { 0xB174, 60702 }, - { 0xB175, 60704 }, - { 0xB176, 60706 }, - { 0xB177, 60708 }, - { 0xB178, 60710 }, - { 0xB179, 60712 }, - { 0xB17A, 60714 }, - { 0xB17B, 60716 }, - { 0xB17C, 60718 }, - { 0xB17D, 60720 }, - { 0xB17E, 60722 }, - { 0xB17F, 60724 }, - { 0xB180, 60726 }, - { 0xB181, 60728 }, - { 0xB182, 60730 }, - { 0xB183, 60732 }, - { 0xB184, 60734 }, - { 0xB185, 60736 }, - { 0xB186, 60738 }, - { 0xB187, 60740 }, - { 0xB188, 60742 }, - { 0xB189, 60744 }, - { 0xB18A, 60746 }, - { 0xB18B, 60748 }, - { 0xB18C, 60750 }, - { 0xB18D, 60752 }, - { 0xB18E, 60754 }, - { 0xB18F, 60756 }, - { 0xB190, 60758 }, - { 0xB191, 60760 }, - { 0xB192, 60762 }, - { 0xB193, 60764 }, - { 0xB194, 60766 }, - { 0xB195, 60768 }, - { 0xB196, 60770 }, - { 0xB197, 60772 }, - { 0xB198, 60774 }, - { 0xB199, 60776 }, - { 0xB19A, 60778 }, - { 0xB19B, 60780 }, - { 0xB19C, 60782 }, - { 0xB19D, 60784 }, - { 0xB19E, 60786 }, - { 0xB19F, 60788 }, - { 0xB1A0, 60790 }, - { 0xB1A1, 60792 }, - { 0xB1A2, 60794 }, - { 0xB1A3, 60796 }, - { 0xB1A4, 60798 }, - { 0xB1A5, 60800 }, - { 0xB1A6, 60802 }, - { 0xB1A7, 60804 }, - { 0xB1A8, 60806 }, - { 0xB1A9, 60808 }, - { 0xB1AA, 60810 }, - { 0xB1AB, 60812 }, - { 0xB1AC, 60814 }, - { 0xB1AD, 60816 }, - { 0xB1AE, 60818 }, - { 0xB1AF, 60820 }, - { 0xB1B0, 60822 }, - { 0xB1B1, 60824 }, - { 0xB1B2, 60826 }, - { 0xB1B3, 60828 }, - { 0xB1B4, 60830 }, - { 0xB1B5, 60832 }, - { 0xB1B6, 60834 }, - { 0xB1B7, 60836 }, - { 0xB1B8, 60838 }, - { 0xB1B9, 60840 }, - { 0xB1BA, 60842 }, - { 0xB1BB, 60844 }, - { 0xB1BC, 60846 }, - { 0xB1BD, 60848 }, - { 0xB1BE, 60850 }, - { 0xB1BF, 60852 }, - { 0xB1C0, 60854 }, - { 0xB1C1, 60856 }, - { 0xB1C2, 60858 }, - { 0xB1C3, 60860 }, - { 0xB1C4, 60862 }, - { 0xB1C5, 60864 }, - { 0xB1C6, 60866 }, - { 0xB1C7, 60868 }, - { 0xB1C8, 60870 }, - { 0xB1C9, 60872 }, - { 0xB1CA, 60874 }, - { 0xB1CB, 60876 }, - { 0xB1CC, 60878 }, - { 0xB1CD, 60880 }, - { 0xB1CE, 60882 }, - { 0xB1CF, 60884 }, - { 0xB1D0, 60886 }, - { 0xB1D1, 60888 }, - { 0xB1D2, 60890 }, - { 0xB1D3, 60892 }, - { 0xB1D4, 60894 }, - { 0xB1D5, 60896 }, - { 0xB1D6, 60898 }, - { 0xB1D7, 60900 }, - { 0xB1D8, 60902 }, - { 0xB1D9, 60904 }, - { 0xB1DA, 60906 }, - { 0xB1DB, 60908 }, - { 0xB1DC, 60910 }, - { 0xB1DD, 60912 }, - { 0xB1DE, 60914 }, - { 0xB1DF, 60916 }, - { 0xB1E0, 60918 }, - { 0xB1E1, 60920 }, - { 0xB1E2, 60922 }, - { 0xB1E3, 60924 }, - { 0xB1E4, 60926 }, - { 0xB1E5, 60928 }, - { 0xB1E6, 60930 }, - { 0xB1E7, 60932 }, - { 0xB1E8, 60934 }, - { 0xB1E9, 60936 }, - { 0xB1EA, 60938 }, - { 0xB1EB, 60940 }, - { 0xB1EC, 60942 }, - { 0xB1ED, 60944 }, - { 0xB1EE, 60946 }, - { 0xB1EF, 60948 }, + { 0x2A66, 31721 }, + { 0x2A67, 64299 }, + { 0x2A68, 37655 }, + { 0x2A69, 37662 }, + { 0x2A6A, 23023 }, + { 0x2A6B, 23028 }, + { 0x2A6C, 43192 }, + { 0x2A6D, 58345 }, + { 0x2A6E, 31761 }, + { 0x2A6F, 23695 }, + { 0x2A70, 74511 }, + { 0x2A71, 31741 }, + { 0x2A72, 9688 }, + { 0x2A73, 31746 }, + { 0x2A74, 31567 }, + { 0x2A75, 7793 }, + { 0x2A76, 22998 }, + { 0x2A77, 31726 }, + { 0x2A78, 67228 }, + { 0x2A79, 64731 }, + { 0x2A7A, 69502 }, + { 0x2A7B, 64735 }, + { 0x2A7C, 69506 }, + { 0x2A7D, 64662 }, + { 0x2A7E, 69433 }, + { 0x2A7F, 64684 }, + { 0x2A80, 69455 }, + { 0x2A81, 64667 }, + { 0x2A82, 69438 }, + { 0x2A83, 64675 }, + { 0x2A84, 69446 }, + { 0x2A85, 64696 }, + { 0x2A86, 69470 }, + { 0x2A87, 64706 }, + { 0x2A88, 69477 }, + { 0x2A89, 64702 }, + { 0x2A8A, 69473 }, + { 0x2A8B, 64763 }, + { 0x2A8C, 69540 }, + { 0x2A8D, 64740 }, + { 0x2A8E, 69511 }, + { 0x2A8F, 64745 }, + { 0x2A90, 69516 }, + { 0x2A91, 64769 }, + { 0x2A92, 69530 }, + { 0x2A93, 64750 }, + { 0x2A94, 69521 }, + { 0x2A95, 43508 }, + { 0x2A96, 43521 }, + { 0x2A97, 43513 }, + { 0x2A98, 43526 }, + { 0x2A99, 68620 }, + { 0x2A9A, 68625 }, + { 0x2A9B, 68630 }, + { 0x2A9C, 68636 }, + { 0x2A9D, 43174 }, + { 0x2A9E, 43177 }, + { 0x2A9F, 43180 }, + { 0x2AA0, 43186 }, + { 0x2AA1, 31589 }, + { 0x2AA2, 31597 }, + { 0x2AA3, 31592 }, + { 0x2AA4, 69565 }, + { 0x2AA5, 69551 }, + { 0x2AA6, 64780 }, + { 0x2AA7, 69554 }, + { 0x2AA8, 64784 }, + { 0x2AA9, 69558 }, + { 0x2AAA, 43540 }, + { 0x2AAB, 34099 }, + { 0x2AAC, 43542 }, + { 0x2AAD, 34101 }, + { 0x2AAE, 31736 }, + { 0x2AAF, 55374 }, + { 0x2AB0, 55568 }, + { 0x2AB1, 55368 }, + { 0x2AB2, 55562 }, + { 0x2AB3, 55364 }, + { 0x2AB4, 55558 }, + { 0x2AB5, 55348 }, + { 0x2AB6, 55542 }, + { 0x2AB7, 55359 }, + { 0x2AB8, 55553 }, + { 0x2AB9, 55353 }, + { 0x2ABA, 55547 }, + { 0x2ABB, 31666 }, + { 0x2ABC, 31671 }, + { 0x2ABD, 36512 }, + { 0x2ABE, 55619 }, + { 0x2ABF, 36515 }, + { 0x2AC0, 55622 }, + { 0x2AC1, 36520 }, + { 0x2AC2, 55627 }, + { 0x2AC3, 36476 }, + { 0x2AC4, 55583 }, + { 0x2AC5, 36507 }, + { 0x2AC6, 55614 }, + { 0x2AC7, 36496 }, + { 0x2AC8, 55603 }, + { 0x2AC9, 36501 }, + { 0x2ACA, 55608 }, + { 0x2ACB, 36490 }, + { 0x2ACC, 55597 }, + { 0x2ACD, 36177 }, + { 0x2ACE, 36346 }, + { 0x2ACF, 30553 }, + { 0x2AD0, 30560 }, + { 0x2AD1, 30555 }, + { 0x2AD2, 30562 }, + { 0x2AD3, 36528 }, + { 0x2AD4, 55632 }, + { 0x2AD5, 36525 }, + { 0x2AD6, 55635 }, + { 0x2AD7, 55650 }, + { 0x2AD8, 55642 }, + { 0x2AD9, 40541 }, + { 0x2ADA, 65757 }, + { 0x2ADB, 69324 }, + { 0x2ADC, 40557 }, + { 0x2ADD, 67879 }, + { 0x2ADE, 22467 }, + { 0x2ADF, 22459 }, + { 0x2AE0, 22444 }, + { 0x2AE1, 75038 }, + { 0x2AE2, 56026 }, + { 0x2AE3, 31675 }, + { 0x2AE4, 56021 }, + { 0x2AE5, 31680 }, + { 0x2AE6, 9507 }, + { 0x2AE7, 22462 }, + { 0x2AE8, 22447 }, + { 0x2AE9, 22452 }, + { 0x2AEA, 31551 }, + { 0x2AEB, 31545 }, + { 0x2AEC, 31606 }, + { 0x2AED, 55483 }, + { 0x2AEE, 9026 }, + { 0x2AEF, 56068 }, + { 0x2AF0, 56073 }, + { 0x2AF1, 9075 }, + { 0x2AF2, 54952 }, + { 0x2AF3, 54948 }, + { 0x2AF4, 37646 }, + { 0x2AF5, 37635 }, + { 0x2AF6, 37616 }, + { 0x2AF7, 37623 }, + { 0x2AF8, 37626 }, + { 0x2AF9, 68642 }, + { 0x2AFA, 68648 }, + { 0x2AFB, 37629 }, + { 0x2AFC, 14466 }, + { 0x2AFD, 31661 }, + { 0x2AFE, 23397 }, + { 0x2AFF, 21230 }, + { 0x2B00, 21310 }, + { 0x2B01, 21361 }, + { 0x2B02, 22705 }, + { 0x2B03, 22732 }, + { 0x2B04, 9289 }, + { 0x2B05, 64465 }, + { 0x2B06, 44578 }, + { 0x2B07, 63292 }, + { 0x2B08, 21306 }, + { 0x2B09, 21357 }, + { 0x2B0A, 22701 }, + { 0x2B0B, 22728 }, + { 0x2B0C, 9285 }, + { 0x2B0D, 311 }, + { 0x2B0E, 68024 }, + { 0x2B0F, 68019 }, + { 0x2B10, 64366 }, + { 0x2B11, 64361 }, + { 0x2B12, 36202 }, + { 0x2B13, 36261 }, + { 0x2B14, 36254 }, + { 0x2B15, 36212 }, + { 0x2B16, 40312 }, + { 0x2B17, 40317 }, + { 0x2B18, 40307 }, + { 0x2B19, 40322 }, + { 0x2B1A, 31537 }, + { 0x2B1B, 10191 }, + { 0x2B1C, 23212 }, + { 0x2B1D, 10163 }, + { 0x2B1E, 23187 }, + { 0x2B1F, 10302 }, + { 0x2B20, 23387 }, + { 0x2B21, 23371 }, + { 0x2B22, 10287 }, + { 0x2B23, 67658 }, + { 0x2B24, 10188 }, + { 0x2B25, 10264 }, + { 0x2B26, 23287 }, + { 0x2B27, 10267 }, + { 0x2B28, 23290 }, + { 0x2B29, 10215 }, + { 0x2B2A, 10218 }, + { 0x2B2B, 23228 }, + { 0x2B2C, 10325 }, + { 0x2B2D, 23414 }, + { 0x2B2E, 10306 }, + { 0x2B2F, 23400 }, + { 0x2B30, 9212 }, + { 0x2B31, 22992 }, + { 0x2B32, 9217 }, + { 0x2B33, 9550 }, + { 0x2B34, 64644 }, + { 0x2B35, 64637 }, + { 0x2B36, 64610 }, + { 0x2B37, 64650 }, + { 0x2B38, 64403 }, + { 0x2B39, 64396 }, + { 0x2B3A, 64388 }, + { 0x2B3B, 64615 }, + { 0x2B3C, 64629 }, + { 0x2B3D, 64620 }, + { 0x2B3E, 64453 }, + { 0x2B3F, 10065 }, + { 0x2B40, 31751 }, + { 0x2B41, 42982 }, + { 0x2B42, 64446 }, + { 0x2B43, 68124 }, + { 0x2B44, 68120 }, + { 0x2B45, 64605 }, + { 0x2B46, 68270 }, + { 0x2B47, 42988 }, + { 0x2B48, 68109 }, + { 0x2B49, 23033 }, + { 0x2B4A, 64434 }, + { 0x2B4B, 64440 }, + { 0x2B4C, 68103 }, + { 0x2B50, 23277 }, + { 0x2B51, 10209 }, + { 0x2B52, 23222 }, + { 0x2B53, 10370 }, + { 0x2B54, 23470 }, + { 0x2C00, 67450 }, + { 0x2C01, 67479 }, + { 0x2C02, 67503 }, + { 0x2C03, 67579 }, + { 0x2C04, 67519 }, + { 0x2C05, 67555 }, + { 0x2C06, 67621 }, + { 0x2C07, 67523 }, + { 0x2C08, 67575 }, + { 0x2C09, 67491 }, + { 0x2C0A, 67583 }, + { 0x2C0B, 67434 }, + { 0x2C0C, 67563 }, + { 0x2C0D, 67495 }, + { 0x2C0E, 67604 }, + { 0x2C0F, 67608 }, + { 0x2C10, 67531 }, + { 0x2C11, 67459 }, + { 0x2C12, 67567 }, + { 0x2C13, 67535 }, + { 0x2C14, 67539 }, + { 0x2C15, 67571 }, + { 0x2C16, 67475 }, + { 0x2C17, 67527 }, + { 0x2C18, 67487 }, + { 0x2C19, 67463 }, + { 0x2C1A, 67438 }, + { 0x2C1B, 67499 }, + { 0x2C1C, 67471 }, + { 0x2C1D, 67559 }, + { 0x2C1E, 67467 }, + { 0x2C1F, 67515 }, + { 0x2C20, 67511 }, + { 0x2C21, 67507 }, + { 0x2C22, 67616 }, + { 0x2C23, 67446 }, + { 0x2C24, 67543 }, + { 0x2C25, 67548 }, + { 0x2C26, 67442 }, + { 0x2C27, 67594 }, + { 0x2C28, 67454 }, + { 0x2C29, 67588 }, + { 0x2C2A, 67483 }, + { 0x2C2B, 67600 }, + { 0x2C2C, 67612 }, + { 0x2C2D, 67630 }, + { 0x2C2E, 67625 }, + { 0x2C30, 67249 }, + { 0x2C31, 67278 }, + { 0x2C32, 67302 }, + { 0x2C33, 67378 }, + { 0x2C34, 67318 }, + { 0x2C35, 67354 }, + { 0x2C36, 67420 }, + { 0x2C37, 67322 }, + { 0x2C38, 67374 }, + { 0x2C39, 67290 }, + { 0x2C3A, 67382 }, + { 0x2C3B, 67233 }, + { 0x2C3C, 67362 }, + { 0x2C3D, 67294 }, + { 0x2C3E, 67403 }, + { 0x2C3F, 67407 }, + { 0x2C40, 67330 }, + { 0x2C41, 67258 }, + { 0x2C42, 67366 }, + { 0x2C43, 67334 }, + { 0x2C44, 67338 }, + { 0x2C45, 67370 }, + { 0x2C46, 67274 }, + { 0x2C47, 67326 }, + { 0x2C48, 67286 }, + { 0x2C49, 67262 }, + { 0x2C4A, 67237 }, + { 0x2C4B, 67298 }, + { 0x2C4C, 67270 }, + { 0x2C4D, 67358 }, + { 0x2C4E, 67266 }, + { 0x2C4F, 67314 }, + { 0x2C50, 67310 }, + { 0x2C51, 67306 }, + { 0x2C52, 67415 }, + { 0x2C53, 67245 }, + { 0x2C54, 67342 }, + { 0x2C55, 67347 }, + { 0x2C56, 67241 }, + { 0x2C57, 67393 }, + { 0x2C58, 67253 }, + { 0x2C59, 67387 }, + { 0x2C5A, 67282 }, + { 0x2C5B, 67399 }, + { 0x2C5C, 67411 }, + { 0x2C5D, 67429 }, + { 0x2C5E, 67424 }, + { 0x2C60, 19214 }, + { 0x2C61, 15577 }, + { 0x2C62, 19228 }, + { 0x2C63, 19682 }, + { 0x2C64, 19762 }, + { 0x2C65, 14629 }, + { 0x2C66, 16472 }, + { 0x2C67, 18936 }, + { 0x2C68, 15276 }, + { 0x2C69, 19148 }, + { 0x2C6A, 15507 }, + { 0x2C6B, 20410 }, + { 0x2C6C, 17019 }, + { 0x2C6D, 20597 }, + { 0x2C6E, 19272 }, + { 0x2C6F, 20649 }, + { 0x2C71, 16751 }, + { 0x2C72, 20235 }, + { 0x2C73, 16796 }, + { 0x2C74, 16739 }, + { 0x2C75, 20547 }, + { 0x2C76, 17312 }, + { 0x2C77, 17839 }, + { 0x2C78, 14974 }, + { 0x2C79, 17623 }, + { 0x2C7A, 15813 }, + { 0x2C7B, 18125 }, + { 0x2C7C, 20797 }, + { 0x2C7D, 54684 }, + { 0x2C80, 31044 }, + { 0x2C81, 30751 }, + { 0x2C82, 31072 }, + { 0x2C83, 30779 }, + { 0x2C84, 31084 }, + { 0x2C85, 30791 }, + { 0x2C86, 31080 }, + { 0x2C87, 30787 }, + { 0x2C88, 30922 }, + { 0x2C89, 30629 }, + { 0x2C8A, 31036 }, + { 0x2C8B, 30743 }, + { 0x2C8C, 31076 }, + { 0x2C8D, 30783 }, + { 0x2C8E, 31048 }, + { 0x2C8F, 30755 }, + { 0x2C90, 31108 }, + { 0x2C91, 30815 }, + { 0x2C92, 31088 }, + { 0x2C93, 30795 }, + { 0x2C94, 31056 }, + { 0x2C95, 30763 }, + { 0x2C96, 31092 }, + { 0x2C97, 30799 }, + { 0x2C98, 30898 }, + { 0x2C99, 30605 }, + { 0x2C9A, 30902 }, + { 0x2C9B, 30609 }, + { 0x2C9C, 30934 }, + { 0x2C9D, 30641 }, + { 0x2C9E, 30890 }, + { 0x2C9F, 30597 }, + { 0x2CA0, 30906 }, + { 0x2CA1, 30613 }, + { 0x2CA2, 30910 }, + { 0x2CA3, 30617 }, + { 0x2CA4, 31068 }, + { 0x2CA5, 30775 }, + { 0x2CA6, 31040 }, + { 0x2CA7, 30747 }, + { 0x2CA8, 30914 }, + { 0x2CA9, 30621 }, + { 0x2CAA, 30894 }, + { 0x2CAB, 30601 }, + { 0x2CAC, 30930 }, + { 0x2CAD, 30637 }, + { 0x2CAE, 31032 }, + { 0x2CAF, 30739 }, + { 0x2CB0, 31028 }, + { 0x2CB1, 30735 }, + { 0x2CB2, 31132 }, + { 0x2CB3, 30839 }, + { 0x2CB4, 30944 }, + { 0x2CB5, 30651 }, + { 0x2CB6, 31152 }, + { 0x2CB7, 30859 }, + { 0x2CB8, 31142 }, + { 0x2CB9, 30849 }, + { 0x2CBA, 31127 }, + { 0x2CBB, 30834 }, + { 0x2CBC, 31147 }, + { 0x2CBD, 30854 }, + { 0x2CBE, 30974 }, + { 0x2CBF, 30681 }, + { 0x2CC0, 31096 }, + { 0x2CC1, 30803 }, + { 0x2CC2, 31112 }, + { 0x2CC3, 30819 }, + { 0x2CC4, 30986 }, + { 0x2CC5, 30693 }, + { 0x2CC6, 30956 }, + { 0x2CC7, 30663 }, + { 0x2CC8, 31117 }, + { 0x2CC9, 30824 }, + { 0x2CCA, 31137 }, + { 0x2CCB, 30844 }, + { 0x2CCC, 30980 }, + { 0x2CCD, 30687 }, + { 0x2CCE, 30938 }, + { 0x2CCF, 30645 }, + { 0x2CD0, 31122 }, + { 0x2CD1, 30829 }, + { 0x2CD2, 30968 }, + { 0x2CD3, 30675 }, + { 0x2CD4, 30962 }, + { 0x2CD5, 30669 }, + { 0x2CD6, 30998 }, + { 0x2CD7, 30705 }, + { 0x2CD8, 30950 }, + { 0x2CD9, 30657 }, + { 0x2CDA, 30992 }, + { 0x2CDB, 30699 }, + { 0x2CDC, 31022 }, + { 0x2CDD, 30729 }, + { 0x2CDE, 31004 }, + { 0x2CDF, 30711 }, + { 0x2CE0, 31010 }, + { 0x2CE1, 30717 }, + { 0x2CE2, 31016 }, + { 0x2CE3, 30723 }, + { 0x2CE4, 30872 }, + { 0x2CE5, 30864 }, + { 0x2CE6, 30868 }, + { 0x2CE7, 30887 }, + { 0x2CE8, 30879 }, + { 0x2CE9, 30875 }, + { 0x2CEA, 30883 }, + { 0x2CF9, 30572 }, + { 0x2CFA, 30582 }, + { 0x2CFB, 30588 }, + { 0x2CFC, 30577 }, + { 0x2CFD, 31157 }, + { 0x2CFE, 30594 }, + { 0x2CFF, 31161 }, + { 0x2D00, 51786 }, + { 0x2D01, 51814 }, + { 0x2D02, 51830 }, + { 0x2D03, 51826 }, + { 0x2D04, 51790 }, + { 0x2D05, 51894 }, + { 0x2D06, 51902 }, + { 0x2D07, 51886 }, + { 0x2D08, 51798 }, + { 0x2D09, 51854 }, + { 0x2D0A, 51858 }, + { 0x2D0B, 51862 }, + { 0x2D0C, 51866 }, + { 0x2D0D, 51802 }, + { 0x2D0E, 51870 }, + { 0x2D0F, 51934 }, + { 0x2D10, 51878 }, + { 0x2D11, 51882 }, + { 0x2D12, 51890 }, + { 0x2D13, 51806 }, + { 0x2D14, 51926 }, + { 0x2D15, 51922 }, + { 0x2D16, 51914 }, + { 0x2D17, 51874 }, + { 0x2D18, 51930 }, + { 0x2D19, 51910 }, + { 0x2D1A, 51818 }, + { 0x2D1B, 51850 }, + { 0x2D1C, 51822 }, + { 0x2D1D, 51906 }, + { 0x2D1E, 51898 }, + { 0x2D1F, 51918 }, + { 0x2D20, 51834 }, + { 0x2D21, 51794 }, + { 0x2D22, 51842 }, + { 0x2D23, 51810 }, + { 0x2D24, 51838 }, + { 0x2D25, 51846 }, + { 0x2D30, 55713 }, + { 0x2D31, 55725 }, + { 0x2D32, 55789 }, + { 0x2D33, 55734 }, + { 0x2D34, 55834 }, + { 0x2D35, 55845 }, + { 0x2D36, 55740 }, + { 0x2D37, 55728 }, + { 0x2D38, 55798 }, + { 0x2D39, 55795 }, + { 0x2D3A, 55831 }, + { 0x2D3B, 55782 }, + { 0x2D3C, 55731 }, + { 0x2D3D, 55743 }, + { 0x2D3E, 55854 }, + { 0x2D3F, 55837 }, + { 0x2D40, 55737 }, + { 0x2D41, 55840 }, + { 0x2D42, 55850 }, + { 0x2D43, 55804 }, + { 0x2D44, 55722 }, + { 0x2D45, 55807 }, + { 0x2D46, 55870 }, + { 0x2D47, 55758 }, + { 0x2D48, 55858 }, + { 0x2D49, 55716 }, + { 0x2D4A, 55825 }, + { 0x2D4B, 55882 }, + { 0x2D4C, 55878 }, + { 0x2D4D, 55746 }, + { 0x2D4E, 55749 }, + { 0x2D4F, 55752 }, + { 0x2D50, 55866 }, + { 0x2D51, 55874 }, + { 0x2D52, 55755 }, + { 0x2D53, 55719 }, + { 0x2D54, 55761 }, + { 0x2D55, 55810 }, + { 0x2D56, 55801 }, + { 0x2D57, 55862 }, + { 0x2D58, 55785 }, + { 0x2D59, 55764 }, + { 0x2D5A, 55816 }, + { 0x2D5B, 55813 }, + { 0x2D5C, 55767 }, + { 0x2D5D, 55819 }, + { 0x2D5E, 55792 }, + { 0x2D5F, 55822 }, + { 0x2D60, 55770 }, + { 0x2D61, 55773 }, + { 0x2D62, 55776 }, + { 0x2D63, 55779 }, + { 0x2D64, 55886 }, + { 0x2D65, 55828 }, + { 0x2D6F, 55890 }, + { 0x2D80, 50999 }, + { 0x2D81, 51011 }, + { 0x2D82, 51140 }, + { 0x2D83, 51170 }, + { 0x2D84, 51542 }, + { 0x2D85, 50762 }, + { 0x2D86, 51227 }, + { 0x2D87, 50810 }, + { 0x2D88, 51032 }, + { 0x2D89, 51488 }, + { 0x2D8A, 51672 }, + { 0x2D8B, 51344 }, + { 0x2D8C, 50837 }, + { 0x2D8D, 51407 }, + { 0x2D8E, 50939 }, + { 0x2D8F, 51569 }, + { 0x2D90, 51395 }, + { 0x2D91, 51500 }, + { 0x2D92, 51074 }, + { 0x2D93, 51422 }, + { 0x2D94, 51428 }, + { 0x2D95, 51629 }, + { 0x2D96, 51425 }, + { 0x2DA0, 51173 }, + { 0x2DA1, 51185 }, + { 0x2DA2, 51179 }, + { 0x2DA3, 51548 }, + { 0x2DA4, 51551 }, + { 0x2DA5, 51176 }, + { 0x2DA6, 51182 }, + { 0x2DA8, 50777 }, + { 0x2DA9, 50789 }, + { 0x2DAA, 50783 }, + { 0x2DAB, 51368 }, + { 0x2DAC, 51371 }, + { 0x2DAD, 50780 }, + { 0x2DAE, 50786 }, + { 0x2DB0, 51350 }, + { 0x2DB1, 51362 }, + { 0x2DB2, 51356 }, + { 0x2DB3, 51614 }, + { 0x2DB4, 51617 }, + { 0x2DB5, 51353 }, + { 0x2DB6, 51359 }, + { 0x2DB8, 51374 }, + { 0x2DB9, 51386 }, + { 0x2DBA, 51380 }, + { 0x2DBB, 51620 }, + { 0x2DBC, 51623 }, + { 0x2DBD, 51377 }, + { 0x2DBE, 51383 }, + { 0x2DC0, 51119 }, + { 0x2DC1, 51131 }, + { 0x2DC2, 51125 }, + { 0x2DC3, 51530 }, + { 0x2DC4, 51533 }, + { 0x2DC5, 51122 }, + { 0x2DC6, 51128 }, + { 0x2DC8, 50978 }, + { 0x2DC9, 50990 }, + { 0x2DCA, 50984 }, + { 0x2DCB, 51473 }, + { 0x2DCC, 51476 }, + { 0x2DCD, 50981 }, + { 0x2DCE, 50987 }, + { 0x2DD0, 51299 }, + { 0x2DD1, 51311 }, + { 0x2DD2, 51305 }, + { 0x2DD3, 51599 }, + { 0x2DD4, 51602 }, + { 0x2DD5, 51302 }, + { 0x2DD6, 51308 }, + { 0x2DD8, 50894 }, + { 0x2DD9, 50906 }, + { 0x2DDA, 50900 }, + { 0x2DDB, 51437 }, + { 0x2DDC, 51440 }, + { 0x2DDD, 50897 }, + { 0x2DDE, 50903 }, + { 0x2DE0, 58034 }, + { 0x2DE1, 58082 }, + { 0x2DE2, 58103 }, + { 0x2DE3, 58038 }, + { 0x2DE4, 58119 }, + { 0x2DE5, 58090 }, + { 0x2DE6, 58070 }, + { 0x2DE7, 58042 }, + { 0x2DE8, 58046 }, + { 0x2DE9, 58050 }, + { 0x2DEA, 58030 }, + { 0x2DEB, 58074 }, + { 0x2DEC, 58054 }, + { 0x2DED, 58058 }, + { 0x2DEE, 58078 }, + { 0x2DEF, 58062 }, + { 0x2DF0, 58111 }, + { 0x2DF1, 58099 }, + { 0x2DF2, 58107 }, + { 0x2DF3, 58135 }, + { 0x2DF4, 58123 }, + { 0x2DF5, 58131 }, + { 0x2DF6, 58026 }, + { 0x2DF7, 58066 }, + { 0x2DF8, 58127 }, + { 0x2DF9, 58155 }, + { 0x2DFA, 58115 }, + { 0x2DFB, 58086 }, + { 0x2DFC, 58144 }, + { 0x2DFD, 58139 }, + { 0x2DFE, 58094 }, + { 0x2DFF, 58149 }, + { 0x2E00, 21801 }, + { 0x2E01, 21783 }, + { 0x2E02, 9477 }, + { 0x2E03, 22004 }, + { 0x2E04, 9353 }, + { 0x2E05, 21874 }, + { 0x2E06, 35672 }, + { 0x2E07, 35666 }, + { 0x2E08, 31539 }, + { 0x2E09, 9480 }, + { 0x2E0A, 22007 }, + { 0x2E0B, 35670 }, + { 0x2E0C, 9377 }, + { 0x2E0D, 21904 }, + { 0x2E0E, 63378 }, + { 0x2E0F, 69268 }, + { 0x2E10, 31783 }, + { 0x2E11, 55488 }, + { 0x2E12, 69569 }, + { 0x2E13, 31535 }, + { 0x2E14, 63298 }, + { 0x2E15, 44620 }, + { 0x2E16, 31542 }, + { 0x2E17, 31658 }, + { 0x2E18, 53360 }, + { 0x2E19, 9626 }, + { 0x2E1A, 33425 }, + { 0x2E1B, 23017 }, + { 0x2E1C, 9148 }, + { 0x2E1D, 21751 }, + { 0x2E1E, 23009 }, + { 0x2E1F, 23013 }, + { 0x2E20, 9452 }, + { 0x2E21, 21979 }, + { 0x2E22, 7737 }, + { 0x2E23, 7750 }, + { 0x2E24, 30258 }, + { 0x2E25, 30271 }, + { 0x2E26, 9439 }, + { 0x2E27, 21964 }, + { 0x2E28, 9369 }, + { 0x2E29, 21896 }, + { 0x2E2A, 7772 }, + { 0x2E2B, 7155 }, + { 0x2E2C, 43556 }, + { 0x2E2D, 9091 }, + { 0x2E2E, 55502 }, + { 0x2E2F, 56091 }, + { 0x2E30, 9704 }, + { 0x2E80, 5603 }, + { 0x2E81, 5510 }, + { 0x2E82, 5606 }, + { 0x2E83, 5610 }, + { 0x2E84, 5614 }, + { 0x2E85, 5600 }, + { 0x2E86, 5346 }, + { 0x2E87, 5577 }, + { 0x2E88, 5539 }, + { 0x2E89, 5543 }, + { 0x2E8A, 5638 }, + { 0x2E8B, 5477 }, + { 0x2E8C, 5558 }, + { 0x2E8D, 5562 }, + { 0x2E8E, 5441 }, + { 0x2E8F, 5445 }, + { 0x2E90, 5453 }, + { 0x2E91, 5449 }, + { 0x2E92, 5566 }, + { 0x2E93, 5626 }, + { 0x2E94, 5569 }, + { 0x2E95, 5573 }, + { 0x2E96, 5531 }, + { 0x2E97, 5535 }, + { 0x2E98, 5429 }, + { 0x2E99, 5403 }, + { 0x2E9B, 5507 }, + { 0x2E9C, 5406 }, + { 0x2E9D, 5471 }, + { 0x2E9E, 5513 }, + { 0x2E9F, 5597 }, + { 0x2EA0, 5635 }, + { 0x2EA1, 5583 }, + { 0x2EA2, 5587 }, + { 0x2EA3, 5423 }, + { 0x2EA4, 5392 }, + { 0x2EA5, 5396 }, + { 0x2EA6, 5641 }, + { 0x2EA7, 5349 }, + { 0x2EA8, 5352 }, + { 0x2EA9, 5438 }, + { 0x2EAA, 5412 }, + { 0x2EAB, 5370 }, + { 0x2EAC, 5618 }, + { 0x2EAD, 5622 }, + { 0x2EAE, 5591 }, + { 0x2EAF, 5480 }, + { 0x2EB0, 5715 }, + { 0x2EB1, 5373 }, + { 0x2EB2, 5377 }, + { 0x2EB3, 5385 }, + { 0x2EB4, 5381 }, + { 0x2EB5, 5468 }, + { 0x2EB6, 5555 }, + { 0x2EB7, 5400 }, + { 0x2EB8, 5367 }, + { 0x2EB9, 5389 }, + { 0x2EBA, 5499 }, + { 0x2EBB, 5503 }, + { 0x2EBC, 5465 }, + { 0x2EBD, 5594 }, + { 0x2EBE, 5519 }, + { 0x2EBF, 5523 }, + { 0x2EC0, 5527 }, + { 0x2EC1, 5580 }, + { 0x2EC2, 5632 }, + { 0x2EC3, 5491 }, + { 0x2EC4, 5495 }, + { 0x2EC5, 5671 }, + { 0x2EC6, 5647 }, + { 0x2EC7, 5435 }, + { 0x2EC8, 5739 }, + { 0x2EC9, 5727 }, + { 0x2ECA, 5426 }, + { 0x2ECB, 5679 }, + { 0x2ECC, 5651 }, + { 0x2ECD, 5483 }, + { 0x2ECE, 5487 }, + { 0x2ECF, 5420 }, + { 0x2ED0, 5699 }, + { 0x2ED1, 5457 }, + { 0x2ED2, 5461 }, + { 0x2ED3, 5707 }, + { 0x2ED4, 5695 }, + { 0x2ED5, 5547 }, + { 0x2ED6, 5551 }, + { 0x2ED7, 5474 }, + { 0x2ED8, 5409 }, + { 0x2ED9, 5743 }, + { 0x2EDA, 5703 }, + { 0x2EDB, 5719 }, + { 0x2EDC, 5667 }, + { 0x2EDD, 5355 }, + { 0x2EDE, 5359 }, + { 0x2EDF, 5363 }, + { 0x2EE0, 5663 }, + { 0x2EE1, 5432 }, + { 0x2EE2, 5723 }, + { 0x2EE3, 5417 }, + { 0x2EE4, 5516 }, + { 0x2EE5, 5687 }, + { 0x2EE6, 5675 }, + { 0x2EE7, 5711 }, + { 0x2EE8, 5655 }, + { 0x2EE9, 5659 }, + { 0x2EEA, 5691 }, + { 0x2EEB, 5752 }, + { 0x2EEC, 5683 }, + { 0x2EED, 5756 }, + { 0x2EEE, 5731 }, + { 0x2EEF, 5760 }, + { 0x2EF0, 5735 }, + { 0x2EF1, 5629 }, + { 0x2EF2, 5764 }, + { 0x2EF3, 5748 }, + { 0x2F00, 33501 }, + { 0x2F01, 33669 }, + { 0x2F02, 33459 }, + { 0x2F03, 33860 }, + { 0x2F04, 33981 }, + { 0x2F05, 33639 }, + { 0x2F06, 33531 }, + { 0x2F07, 33486 }, + { 0x2F08, 33489 }, + { 0x2F09, 33663 }, + { 0x2F0A, 33792 }, + { 0x2F0B, 33789 }, + { 0x2F0C, 33588 }, + { 0x2F0D, 33780 }, + { 0x2F0E, 33480 }, + { 0x2F0F, 33896 }, + { 0x2F10, 33688 }, + { 0x2F11, 33819 }, + { 0x2F12, 33831 }, + { 0x2F13, 33753 }, + { 0x2F14, 33881 }, + { 0x2F15, 33834 }, + { 0x2F16, 33962 }, + { 0x2F17, 33528 }, + { 0x2F18, 34081 }, + { 0x2F19, 33707 }, + { 0x2F1A, 33774 }, + { 0x2F1B, 34048 }, + { 0x2F1C, 33756 }, + { 0x2F1D, 33828 }, + { 0x2F1E, 34078 }, + { 0x2F1F, 33786 }, + { 0x2F20, 34051 }, + { 0x2F21, 33434 }, + { 0x2F22, 33437 }, + { 0x2F23, 34030 }, + { 0x2F24, 33447 }, + { 0x2F25, 33917 }, + { 0x2F26, 33771 }, + { 0x2F27, 33701 }, + { 0x2F28, 33645 }, + { 0x2F29, 33869 }, + { 0x2F2A, 33654 }, + { 0x2F2B, 33938 }, + { 0x2F2C, 33990 }, + { 0x2F2D, 34066 }, + { 0x2F2E, 33839 }, + { 0x2F2F, 33750 }, + { 0x2F30, 34045 }, + { 0x2F31, 34006 }, + { 0x2F32, 33462 }, + { 0x2F33, 33856 }, + { 0x2F34, 33948 }, + { 0x2F35, 33675 }, + { 0x2F36, 33534 }, + { 0x2F37, 33848 }, + { 0x2F38, 33450 }, + { 0x2F39, 33872 }, + { 0x2F3A, 34021 }, + { 0x2F3B, 33719 }, + { 0x2F3C, 33813 }, + { 0x2F3D, 34036 }, + { 0x2F3E, 33585 }, + { 0x2F3F, 33630 }, + { 0x2F40, 33935 }, + { 0x2F41, 33507 }, + { 0x2F42, 33978 }, + { 0x2F43, 33941 }, + { 0x2F44, 33444 }, + { 0x2F45, 33993 }, + { 0x2F46, 33495 }, + { 0x2F47, 33525 }, + { 0x2F48, 33519 }, + { 0x2F49, 33682 }, + { 0x2F4A, 33731 }, + { 0x2F4B, 33651 }, + { 0x2F4C, 33722 }, + { 0x2F4D, 33783 }, + { 0x2F4E, 34015 }, + { 0x2F4F, 33430 }, + { 0x2F50, 34027 }, + { 0x2F51, 33477 }, + { 0x2F52, 33573 }, + { 0x2F53, 33887 }, + { 0x2F54, 33908 }, + { 0x2F55, 33604 }, + { 0x2F56, 33576 }, + { 0x2F57, 33959 }, + { 0x2F58, 33952 }, + { 0x2F59, 33625 }, + { 0x2F5A, 33866 }, + { 0x2F5B, 33601 }, + { 0x2F5C, 33453 }, + { 0x2F5D, 33456 }, + { 0x2F5E, 34069 }, + { 0x2F5F, 33648 }, + { 0x2F60, 33822 }, + { 0x2F61, 33728 }, + { 0x2F62, 33893 }, + { 0x2F63, 33666 }, + { 0x2F64, 33538 }, + { 0x2F65, 33795 }, + { 0x2F66, 33556 }, + { 0x2F67, 34072 }, + { 0x2F68, 33944 }, + { 0x2F69, 33914 }, + { 0x2F6A, 33716 }, + { 0x2F6B, 33582 }, + { 0x2F6C, 33471 }, + { 0x2F6D, 33878 }, + { 0x2F6E, 33759 }, + { 0x2F6F, 33890 }, + { 0x2F70, 33987 }, + { 0x2F71, 33905 }, + { 0x2F72, 33807 }, + { 0x2F73, 33567 }, + { 0x2F74, 33884 }, + { 0x2F75, 33929 }, + { 0x2F76, 33698 }, + { 0x2F77, 33713 }, + { 0x2F78, 33483 }, + { 0x2F79, 33492 }, + { 0x2F7A, 33842 }, + { 0x2F7B, 34033 }, + { 0x2F7C, 33498 }, + { 0x2F7D, 33441 }, + { 0x2F7E, 33692 }, + { 0x2F7F, 33465 }, + { 0x2F80, 33768 }, + { 0x2F81, 33679 }, + { 0x2F82, 34063 }, + { 0x2F83, 33710 }, + { 0x2F84, 33923 }, + { 0x2F85, 33972 }, + { 0x2F86, 34000 }, + { 0x2F87, 33975 }, + { 0x2F88, 33550 }, + { 0x2F89, 34075 }, + { 0x2F8A, 33777 }, + { 0x2F8B, 33810 }, + { 0x2F8C, 33899 }, + { 0x2F8D, 33966 }, + { 0x2F8E, 33765 }, + { 0x2F8F, 33737 }, + { 0x2F90, 34024 }, + { 0x2F91, 33741 }, + { 0x2F92, 33522 }, + { 0x2F93, 33642 }, + { 0x2F94, 33984 }, + { 0x2F95, 34012 }, + { 0x2F96, 33541 }, + { 0x2F97, 33504 }, + { 0x2F98, 33926 }, + { 0x2F99, 33845 }, + { 0x2F9A, 33513 }, + { 0x2F9B, 33516 }, + { 0x2F9C, 33610 }, + { 0x2F9D, 33553 }, + { 0x2F9E, 33564 }, + { 0x2F9F, 33932 }, + { 0x2FA0, 34042 }, + { 0x2FA1, 33734 }, + { 0x2FA2, 33570 }, + { 0x2FA3, 33747 }, + { 0x2FA4, 34087 }, + { 0x2FA5, 34054 }, + { 0x2FA6, 33619 }, + { 0x2FA7, 33672 }, + { 0x2FA8, 33616 }, + { 0x2FA9, 33825 }, + { 0x2FAA, 33863 }, + { 0x2FAB, 33851 }, + { 0x2FAC, 33695 }, + { 0x2FAD, 33547 }, + { 0x2FAE, 33920 }, + { 0x2FAF, 33598 }, + { 0x2FB0, 34039 }, + { 0x2FB1, 33996 }, + { 0x2FB2, 33660 }, + { 0x2FB3, 33875 }, + { 0x2FB4, 33657 }, + { 0x2FB5, 33744 }, + { 0x2FB6, 33474 }, + { 0x2FB7, 33468 }, + { 0x2FB8, 33633 }, + { 0x2FB9, 34060 }, + { 0x2FBA, 33816 }, + { 0x2FBB, 33561 }, + { 0x2FBC, 33725 }, + { 0x2FBD, 33622 }, + { 0x2FBE, 33798 }, + { 0x2FBF, 34090 }, + { 0x2FC0, 34057 }, + { 0x2FC1, 33804 }, + { 0x2FC2, 33607 }, + { 0x2FC3, 33544 }, + { 0x2FC4, 33704 }, + { 0x2FC5, 33579 }, + { 0x2FC6, 33911 }, + { 0x2FC7, 33636 }, + { 0x2FC8, 34018 }, + { 0x2FC9, 33969 }, + { 0x2FCA, 33762 }, + { 0x2FCB, 34084 }, + { 0x2FCC, 33613 }, + { 0x2FCD, 34003 }, + { 0x2FCE, 33592 }, + { 0x2FCF, 33510 }, + { 0x2FD0, 33685 }, + { 0x2FD1, 33595 }, + { 0x2FD2, 33902 }, + { 0x2FD3, 33956 }, + { 0x2FD4, 34009 }, + { 0x2FD5, 33801 }, + { 0x2FF0, 69175 }, + { 0x2FF1, 69189 }, + { 0x2FF2, 69181 }, + { 0x2FF3, 69195 }, + { 0x2FF4, 69170 }, + { 0x2FF5, 69213 }, + { 0x2FF6, 69219 }, + { 0x2FF7, 69207 }, + { 0x2FF8, 69232 }, + { 0x2FF9, 69239 }, + { 0x2FFA, 69225 }, + { 0x2FFB, 69203 }, + { 0x3000, 68678 }, + { 0x3001, 68672 }, + { 0x3002, 68665 }, + { 0x3003, 10538 }, + { 0x3004, 53362 }, + { 0x3005, 68698 }, + { 0x3006, 68687 }, + { 0x3007, 68680 }, + { 0x3008, 9204 }, + { 0x3009, 21788 }, + { 0x300A, 9357 }, + { 0x300B, 21878 }, + { 0x300C, 9350 }, + { 0x300D, 21871 }, + { 0x300E, 9330 }, + { 0x300F, 21851 }, + { 0x3010, 9227 }, + { 0x3011, 21820 }, + { 0x3012, 35661 }, + { 0x3013, 9121 }, + { 0x3014, 9443 }, + { 0x3015, 21968 }, + { 0x3016, 9343 }, + { 0x3017, 21864 }, + { 0x3018, 9338 }, + { 0x3019, 21859 }, + { 0x301A, 9334 }, + { 0x301B, 21855 }, + { 0x301C, 10063 }, + { 0x301D, 55478 }, + { 0x301E, 31576 }, + { 0x301F, 6033 }, + { 0x3020, 35663 }, + { 0x3021, 52741 }, + { 0x3022, 52750 }, + { 0x3023, 52768 }, + { 0x3024, 52756 }, + { 0x3025, 52753 }, + { 0x3026, 52744 }, + { 0x3027, 52765 }, + { 0x3028, 52762 }, + { 0x3029, 52759 }, + { 0x302A, 68674 }, + { 0x302B, 68683 }, + { 0x302C, 68694 }, + { 0x302D, 68690 }, + { 0x302E, 32170 }, + { 0x302F, 31884 }, + { 0x3030, 10078 }, + { 0x3031, 56034 }, + { 0x3032, 56050 }, + { 0x3033, 56044 }, + { 0x3034, 56057 }, + { 0x3035, 56038 }, + { 0x3036, 39456 }, + { 0x3037, 68701 }, + { 0x3038, 52747 }, + { 0x3039, 52774 }, + { 0x303A, 52771 }, + { 0x303B, 56098 }, + { 0x303C, 9594 }, + { 0x303D, 9628 }, + { 0x303E, 69103 }, + { 0x303F, 68668 }, + { 0x3041, 53242 }, + { 0x3042, 53020 }, + { 0x3043, 53250 }, + { 0x3044, 53026 }, + { 0x3045, 53258 }, + { 0x3046, 53035 }, + { 0x3047, 53246 }, + { 0x3048, 53023 }, + { 0x3049, 53254 }, + { 0x304A, 53032 }, + { 0x304B, 53098 }, + { 0x304C, 53068 }, + { 0x304D, 53104 }, + { 0x304E, 53074 }, + { 0x304F, 53110 }, + { 0x3050, 53080 }, + { 0x3051, 53101 }, + { 0x3052, 53071 }, + { 0x3053, 53107 }, + { 0x3054, 53077 }, + { 0x3055, 53173 }, + { 0x3056, 53227 }, + { 0x3057, 53179 }, + { 0x3058, 53233 }, + { 0x3059, 53185 }, + { 0x305A, 53239 }, + { 0x305B, 53176 }, + { 0x305C, 53230 }, + { 0x305D, 53182 }, + { 0x305E, 53236 }, + { 0x305F, 53188 }, + { 0x3060, 53053 }, + { 0x3061, 53194 }, + { 0x3062, 53059 }, + { 0x3063, 53270 }, + { 0x3064, 53200 }, + { 0x3065, 53065 }, + { 0x3066, 53191 }, + { 0x3067, 53056 }, + { 0x3068, 53197 }, + { 0x3069, 53062 }, + { 0x306A, 53128 }, + { 0x306B, 53134 }, + { 0x306C, 53140 }, + { 0x306D, 53131 }, + { 0x306E, 53137 }, + { 0x306F, 53083 }, + { 0x3070, 53038 }, + { 0x3071, 53143 }, + { 0x3072, 53089 }, + { 0x3073, 53044 }, + { 0x3074, 53149 }, + { 0x3075, 53095 }, + { 0x3076, 53050 }, + { 0x3077, 53155 }, + { 0x3078, 53086 }, + { 0x3079, 53041 }, + { 0x307A, 53146 }, + { 0x307B, 53092 }, + { 0x307C, 53047 }, + { 0x307D, 53152 }, + { 0x307E, 53113 }, + { 0x307F, 53119 }, + { 0x3080, 53125 }, + { 0x3081, 53116 }, + { 0x3082, 53122 }, + { 0x3083, 53278 }, + { 0x3084, 53218 }, + { 0x3085, 53286 }, + { 0x3086, 53224 }, + { 0x3087, 53282 }, + { 0x3088, 53221 }, + { 0x3089, 53158 }, + { 0x308A, 53164 }, + { 0x308B, 53170 }, + { 0x308C, 53161 }, + { 0x308D, 53167 }, + { 0x308E, 53274 }, + { 0x308F, 53206 }, + { 0x3090, 53212 }, + { 0x3091, 53209 }, + { 0x3092, 53215 }, + { 0x3093, 53029 }, + { 0x3094, 53203 }, + { 0x3095, 53262 }, + { 0x3096, 53266 }, + { 0x3099, 58335 }, + { 0x309A, 58340 }, + { 0x309B, 75125 }, + { 0x309C, 75133 }, + { 0x309D, 53297 }, + { 0x309E, 53290 }, + { 0x309F, 53294 }, + { 0x30A0, 75122 }, + { 0x30A1, 53600 }, + { 0x30A2, 53366 }, + { 0x30A3, 53608 }, + { 0x30A4, 53372 }, + { 0x30A5, 53616 }, + { 0x30A6, 53381 }, + { 0x30A7, 53604 }, + { 0x30A8, 53369 }, + { 0x30A9, 53612 }, + { 0x30AA, 53378 }, + { 0x30AB, 53444 }, + { 0x30AC, 53414 }, + { 0x30AD, 53450 }, + { 0x30AE, 53420 }, + { 0x30AF, 53456 }, + { 0x30B0, 53426 }, + { 0x30B1, 53447 }, + { 0x30B2, 53417 }, + { 0x30B3, 53453 }, + { 0x30B4, 53423 }, + { 0x30B5, 53519 }, + { 0x30B6, 53585 }, + { 0x30B7, 53525 }, + { 0x30B8, 53591 }, + { 0x30B9, 53531 }, + { 0x30BA, 53597 }, + { 0x30BB, 53522 }, + { 0x30BC, 53588 }, + { 0x30BD, 53528 }, + { 0x30BE, 53594 }, + { 0x30BF, 53534 }, + { 0x30C0, 53399 }, + { 0x30C1, 53540 }, + { 0x30C2, 53405 }, + { 0x30C3, 53692 }, + { 0x30C4, 53546 }, + { 0x30C5, 53411 }, + { 0x30C6, 53537 }, + { 0x30C7, 53402 }, + { 0x30C8, 53543 }, + { 0x30C9, 53408 }, + { 0x30CA, 53474 }, + { 0x30CB, 53480 }, + { 0x30CC, 53486 }, + { 0x30CD, 53477 }, + { 0x30CE, 53483 }, + { 0x30CF, 53429 }, + { 0x30D0, 53384 }, + { 0x30D1, 53489 }, + { 0x30D2, 53435 }, + { 0x30D3, 53390 }, + { 0x30D4, 53495 }, + { 0x30D5, 53441 }, + { 0x30D6, 53396 }, + { 0x30D7, 53501 }, + { 0x30D8, 53432 }, + { 0x30D9, 53387 }, + { 0x30DA, 53492 }, + { 0x30DB, 53438 }, + { 0x30DC, 53393 }, + { 0x30DD, 53498 }, + { 0x30DE, 53459 }, + { 0x30DF, 53465 }, + { 0x30E0, 53471 }, + { 0x30E1, 53462 }, + { 0x30E2, 53468 }, + { 0x30E3, 53700 }, + { 0x30E4, 53576 }, + { 0x30E5, 53708 }, + { 0x30E6, 53582 }, + { 0x30E7, 53704 }, + { 0x30E8, 53579 }, + { 0x30E9, 53504 }, + { 0x30EA, 53510 }, + { 0x30EB, 53516 }, + { 0x30EC, 53507 }, + { 0x30ED, 53513 }, + { 0x30EE, 53696 }, + { 0x30EF, 53564 }, + { 0x30F0, 53570 }, + { 0x30F1, 53567 }, + { 0x30F2, 53573 }, + { 0x30F3, 53375 }, + { 0x30F4, 53561 }, + { 0x30F5, 53640 }, + { 0x30F6, 53644 }, + { 0x30F7, 53549 }, + { 0x30F8, 53555 }, + { 0x30F9, 53552 }, + { 0x30FA, 53558 }, + { 0x30FB, 53712 }, + { 0x30FC, 75129 }, + { 0x30FD, 53722 }, + { 0x30FE, 53715 }, + { 0x30FF, 53719 }, + { 0x3105, 45589 }, + { 0x3106, 45631 }, + { 0x3107, 45622 }, + { 0x3108, 45601 }, + { 0x3109, 45595 }, + { 0x310A, 45643 }, + { 0x310B, 45625 }, + { 0x310C, 45619 }, + { 0x310D, 45604 }, + { 0x310E, 45616 }, + { 0x310F, 45607 }, + { 0x3110, 45613 }, + { 0x3111, 45634 }, + { 0x3112, 45652 }, + { 0x3113, 45727 }, + { 0x3114, 45673 }, + { 0x3115, 45724 }, + { 0x3116, 45637 }, + { 0x3117, 45655 }, + { 0x3118, 45592 }, + { 0x3119, 45640 }, + { 0x311A, 45586 }, + { 0x311B, 45628 }, + { 0x311C, 45598 }, + { 0x311D, 45679 }, + { 0x311E, 45658 }, + { 0x311F, 45682 }, + { 0x3120, 45667 }, + { 0x3121, 45721 }, + { 0x3122, 45664 }, + { 0x3123, 45685 }, + { 0x3124, 45733 }, + { 0x3125, 45739 }, + { 0x3126, 45688 }, + { 0x3127, 45610 }, + { 0x3128, 45646 }, + { 0x3129, 45706 }, + { 0x312A, 45649 }, + { 0x312B, 45712 }, + { 0x312C, 45691 }, + { 0x312D, 45697 }, + { 0x3131, 31996 }, + { 0x3132, 32095 }, + { 0x3133, 32065 }, + { 0x3134, 31978 }, + { 0x3135, 32071 }, + { 0x3136, 32074 }, + { 0x3137, 31999 }, + { 0x3138, 32098 }, + { 0x3139, 31984 }, + { 0x313A, 32113 }, + { 0x313B, 32083 }, + { 0x313C, 32086 }, + { 0x313D, 32038 }, + { 0x313E, 32140 }, + { 0x313F, 32137 }, + { 0x3140, 32080 }, + { 0x3141, 31975 }, + { 0x3142, 31981 }, + { 0x3143, 32062 }, + { 0x3144, 32035 }, + { 0x3145, 31954 }, + { 0x3146, 32026 }, + { 0x3147, 31972 }, + { 0x3148, 31966 }, + { 0x3149, 32050 }, + { 0x314A, 32008 }, + { 0x314B, 32011 }, + { 0x314C, 32020 }, + { 0x314D, 32017 }, + { 0x314E, 31969 }, + { 0x314F, 31891 }, + { 0x3150, 31906 }, + { 0x3151, 31927 }, + { 0x3152, 31948 }, + { 0x3153, 31909 }, + { 0x3154, 31894 }, + { 0x3155, 31951 }, + { 0x3156, 31930 }, + { 0x3157, 31900 }, + { 0x3158, 31918 }, + { 0x3159, 31942 }, + { 0x315A, 31915 }, + { 0x315B, 31936 }, + { 0x315C, 31903 }, + { 0x315D, 31945 }, + { 0x315E, 31921 }, + { 0x315F, 31924 }, + { 0x3160, 31939 }, + { 0x3161, 31912 }, + { 0x3162, 31933 }, + { 0x3163, 31897 }, + { 0x3164, 31889 }, + { 0x3165, 32059 }, + { 0x3166, 32104 }, + { 0x3167, 32032 }, + { 0x3168, 32128 }, + { 0x3169, 32161 }, + { 0x316A, 32116 }, + { 0x316B, 32149 }, + { 0x316C, 32134 }, + { 0x316D, 32164 }, + { 0x316E, 32068 }, + { 0x316F, 32029 }, + { 0x3170, 32125 }, + { 0x3171, 32119 }, + { 0x3172, 32107 }, + { 0x3173, 32110 }, + { 0x3174, 32155 }, + { 0x3175, 32158 }, + { 0x3176, 32077 }, + { 0x3177, 32131 }, + { 0x3178, 32122 }, + { 0x3179, 32167 }, + { 0x317A, 32089 }, + { 0x317B, 32044 }, + { 0x317C, 32092 }, + { 0x317D, 32047 }, + { 0x317E, 32041 }, + { 0x317F, 32014 }, + { 0x3180, 32056 }, + { 0x3181, 32023 }, + { 0x3182, 32143 }, + { 0x3183, 32152 }, + { 0x3184, 32146 }, + { 0x3185, 32053 }, + { 0x3186, 32101 }, + { 0x3187, 31987 }, + { 0x3188, 32002 }, + { 0x3189, 31957 }, + { 0x318A, 32005 }, + { 0x318B, 31990 }, + { 0x318C, 31960 }, + { 0x318D, 31963 }, + { 0x318E, 31993 }, + { 0x3190, 69162 }, + { 0x3191, 69166 }, + { 0x3192, 69110 }, + { 0x3193, 69118 }, + { 0x3194, 69138 }, + { 0x3195, 69122 }, + { 0x3196, 69114 }, + { 0x3197, 69154 }, + { 0x3198, 69142 }, + { 0x3199, 69130 }, + { 0x319A, 69158 }, + { 0x319B, 69134 }, + { 0x319C, 69146 }, + { 0x319D, 69150 }, + { 0x319E, 69126 }, + { 0x319F, 69106 }, + { 0x31A0, 45670 }, + { 0x31A1, 45730 }, + { 0x31A2, 45709 }, + { 0x31A3, 45694 }, + { 0x31A4, 45676 }, + { 0x31A5, 45742 }, + { 0x31A6, 45718 }, + { 0x31A7, 45754 }, + { 0x31A8, 45703 }, + { 0x31A9, 45736 }, + { 0x31AA, 45745 }, + { 0x31AB, 45757 }, + { 0x31AC, 45700 }, + { 0x31AD, 45748 }, + { 0x31AE, 45760 }, + { 0x31AF, 45763 }, + { 0x31B0, 45661 }, + { 0x31B1, 45715 }, + { 0x31B2, 45751 }, + { 0x31B3, 45766 }, + { 0x31B4, 45578 }, + { 0x31B5, 45582 }, + { 0x31B6, 45574 }, + { 0x31B7, 45570 }, + { 0x31C0, 5256 }, + { 0x31C1, 5295 }, + { 0x31C2, 5298 }, + { 0x31C3, 5301 }, + { 0x31C4, 5286 }, + { 0x31C5, 5313 }, + { 0x31C6, 5304 }, + { 0x31C7, 5262 }, + { 0x31C8, 5331 }, + { 0x31C9, 5340 }, + { 0x31CA, 5307 }, + { 0x31CB, 5334 }, + { 0x31CC, 5325 }, + { 0x31CD, 5310 }, + { 0x31CE, 5337 }, + { 0x31CF, 5244 }, + { 0x31D0, 5241 }, + { 0x31D1, 5253 }, + { 0x31D2, 5247 }, + { 0x31D3, 5280 }, + { 0x31D4, 5238 }, + { 0x31D5, 5265 }, + { 0x31D6, 5259 }, + { 0x31D7, 5289 }, + { 0x31D8, 5319 }, + { 0x31D9, 5283 }, + { 0x31DA, 5277 }, + { 0x31DB, 5268 }, + { 0x31DC, 5274 }, + { 0x31DD, 5292 }, + { 0x31DE, 5322 }, + { 0x31DF, 5316 }, + { 0x31E0, 5328 }, + { 0x31E1, 5343 }, + { 0x31E2, 5271 }, + { 0x31E3, 5250 }, + { 0x31F0, 53648 }, + { 0x31F1, 53680 }, + { 0x31F2, 53684 }, + { 0x31F3, 53688 }, + { 0x31F4, 53656 }, + { 0x31F5, 53620 }, + { 0x31F6, 53628 }, + { 0x31F7, 53636 }, + { 0x31F8, 53624 }, + { 0x31F9, 53632 }, + { 0x31FA, 53652 }, + { 0x31FB, 53660 }, + { 0x31FC, 53668 }, + { 0x31FD, 53676 }, + { 0x31FE, 53664 }, + { 0x31FF, 53672 }, + { 0x3200, 74845 }, + { 0x3201, 74824 }, + { 0x3202, 74852 }, + { 0x3203, 74838 }, + { 0x3204, 74817 }, + { 0x3205, 74831 }, + { 0x3206, 74785 }, + { 0x3207, 74810 }, + { 0x3208, 74792 }, + { 0x3209, 74859 }, + { 0x320A, 74866 }, + { 0x320B, 74880 }, + { 0x320C, 74873 }, + { 0x320D, 74803 }, + { 0x320E, 74848 }, + { 0x320F, 74827 }, + { 0x3210, 74855 }, + { 0x3211, 74841 }, + { 0x3212, 74820 }, + { 0x3213, 74834 }, + { 0x3214, 74788 }, + { 0x3215, 74813 }, + { 0x3216, 74795 }, + { 0x3217, 74862 }, + { 0x3218, 74869 }, + { 0x3219, 74883 }, + { 0x321A, 74876 }, + { 0x321B, 74806 }, + { 0x321C, 74799 }, + { 0x321D, 74892 }, + { 0x321E, 74887 }, + { 0x3220, 74929 }, + { 0x3221, 74941 }, + { 0x3222, 75001 }, + { 0x3223, 74953 }, + { 0x3224, 74950 }, + { 0x3225, 74932 }, + { 0x3226, 74992 }, + { 0x3227, 74980 }, + { 0x3228, 74965 }, + { 0x3229, 74938 }, + { 0x322A, 74959 }, + { 0x322B, 74947 }, + { 0x322C, 75004 }, + { 0x322D, 74974 }, + { 0x322E, 74986 }, + { 0x322F, 74977 }, + { 0x3230, 74935 }, + { 0x3231, 74995 }, + { 0x3232, 74956 }, + { 0x3233, 75007 }, + { 0x3234, 74962 }, + { 0x3235, 75010 }, + { 0x3236, 75022 }, + { 0x3237, 75034 }, + { 0x3238, 74983 }, + { 0x3239, 75025 }, + { 0x323A, 74944 }, + { 0x323B, 74998 }, + { 0x323C, 75028 }, + { 0x323D, 75031 }, + { 0x323E, 75019 }, + { 0x323F, 75013 }, + { 0x3240, 75016 }, + { 0x3241, 74968 }, + { 0x3242, 74971 }, + { 0x3243, 74989 }, + { 0x3250, 69269 }, + { 0x3251, 39399 }, + { 0x3252, 39407 }, + { 0x3253, 39431 }, + { 0x3254, 39415 }, + { 0x3255, 39411 }, + { 0x3256, 39403 }, + { 0x3257, 39427 }, + { 0x3258, 39423 }, + { 0x3259, 39419 }, + { 0x325A, 39354 }, + { 0x325B, 39357 }, + { 0x325C, 39365 }, + { 0x325D, 39389 }, + { 0x325E, 39373 }, + { 0x325F, 39369 }, + { 0x3260, 39256 }, + { 0x3261, 39235 }, + { 0x3262, 39263 }, + { 0x3263, 39249 }, + { 0x3264, 39228 }, + { 0x3265, 39242 }, + { 0x3266, 39196 }, + { 0x3267, 39217 }, + { 0x3268, 39203 }, + { 0x3269, 39270 }, + { 0x326A, 39277 }, + { 0x326B, 39291 }, + { 0x326C, 39284 }, + { 0x326D, 39210 }, + { 0x326E, 39259 }, + { 0x326F, 39238 }, + { 0x3270, 39266 }, + { 0x3271, 39252 }, + { 0x3272, 39231 }, + { 0x3273, 39245 }, + { 0x3274, 39199 }, + { 0x3275, 39220 }, + { 0x3276, 39206 }, + { 0x3277, 39273 }, + { 0x3278, 39280 }, + { 0x3279, 39294 }, + { 0x327A, 39287 }, + { 0x327B, 39213 }, + { 0x327C, 39302 }, + { 0x327D, 39298 }, + { 0x327E, 39224 }, + { 0x327F, 34096 }, + { 0x3280, 39623 }, + { 0x3281, 39635 }, + { 0x3282, 39710 }, + { 0x3283, 39647 }, + { 0x3284, 39644 }, + { 0x3285, 39626 }, + { 0x3286, 39701 }, + { 0x3287, 39683 }, + { 0x3288, 39671 }, + { 0x3289, 39632 }, + { 0x328A, 39665 }, + { 0x328B, 39641 }, + { 0x328C, 39713 }, + { 0x328D, 39677 }, + { 0x328E, 39689 }, + { 0x328F, 39680 }, + { 0x3290, 39629 }, + { 0x3291, 39704 }, + { 0x3292, 39650 }, + { 0x3293, 39728 }, + { 0x3294, 39668 }, + { 0x3295, 39731 }, + { 0x3296, 39755 }, + { 0x3297, 39764 }, + { 0x3298, 39686 }, + { 0x3299, 39722 }, + { 0x329A, 39662 }, + { 0x329B, 39719 }, + { 0x329C, 39746 }, + { 0x329D, 39752 }, + { 0x329E, 39695 }, + { 0x329F, 39749 }, + { 0x32A0, 39656 }, + { 0x32A1, 39674 }, + { 0x32A2, 39638 }, + { 0x32A3, 39725 }, + { 0x32A4, 39653 }, + { 0x32A5, 39716 }, + { 0x32A6, 39620 }, + { 0x32A7, 39659 }, + { 0x32A8, 39698 }, + { 0x32A9, 39737 }, + { 0x32AA, 39740 }, + { 0x32AB, 39707 }, + { 0x32AC, 39758 }, + { 0x32AD, 39761 }, + { 0x32AE, 39743 }, + { 0x32AF, 39734 }, + { 0x32B0, 39692 }, + { 0x32B1, 39361 }, + { 0x32B2, 39385 }, + { 0x32B3, 39381 }, + { 0x32B4, 39377 }, + { 0x32B5, 39312 }, + { 0x32B6, 39315 }, + { 0x32B7, 39323 }, + { 0x32B8, 39347 }, + { 0x32B9, 39331 }, + { 0x32BA, 39327 }, + { 0x32BB, 39319 }, + { 0x32BC, 39343 }, + { 0x32BD, 39339 }, + { 0x32BE, 39335 }, + { 0x32BF, 39309 }, + { 0x32C0, 69073 }, + { 0x32C1, 69088 }, + { 0x32C2, 69063 }, + { 0x32C3, 69058 }, + { 0x32C4, 68893 }, + { 0x32C5, 69053 }, + { 0x32C6, 69048 }, + { 0x32C7, 69068 }, + { 0x32C8, 69098 }, + { 0x32C9, 69078 }, + { 0x32CA, 69093 }, + { 0x32CB, 69083 }, + { 0x32CC, 35949 }, + { 0x32CD, 36112 }, + { 0x32CE, 35939 }, + { 0x32CF, 40924 }, + { 0x32D0, 39471 }, + { 0x32D1, 39477 }, + { 0x32D2, 39483 }, + { 0x32D3, 39474 }, + { 0x32D4, 39480 }, + { 0x32D5, 39501 }, + { 0x32D6, 39507 }, + { 0x32D7, 39513 }, + { 0x32D8, 39504 }, + { 0x32D9, 39510 }, + { 0x32DA, 39561 }, + { 0x32DB, 39567 }, + { 0x32DC, 39573 }, + { 0x32DD, 39564 }, + { 0x32DE, 39570 }, + { 0x32DF, 39576 }, + { 0x32E0, 39582 }, + { 0x32E1, 39588 }, + { 0x32E2, 39579 }, + { 0x32E3, 39585 }, + { 0x32E4, 39531 }, + { 0x32E5, 39537 }, + { 0x32E6, 39543 }, + { 0x32E7, 39534 }, + { 0x32E8, 39540 }, + { 0x32E9, 39486 }, + { 0x32EA, 39492 }, + { 0x32EB, 39498 }, + { 0x32EC, 39489 }, + { 0x32ED, 39495 }, + { 0x32EE, 39516 }, + { 0x32EF, 39522 }, + { 0x32F0, 39528 }, + { 0x32F1, 39519 }, + { 0x32F2, 39525 }, + { 0x32F3, 39603 }, + { 0x32F4, 39609 }, + { 0x32F5, 39606 }, + { 0x32F6, 39546 }, + { 0x32F7, 39552 }, + { 0x32F8, 39558 }, + { 0x32F9, 39549 }, + { 0x32FA, 39555 }, + { 0x32FB, 39591 }, + { 0x32FC, 39597 }, + { 0x32FD, 39594 }, + { 0x32FE, 39600 }, + { 0x3300, 36363 }, + { 0x3301, 36365 }, + { 0x3302, 36290 }, + { 0x3303, 36157 }, + { 0x3304, 36375 }, + { 0x3305, 36171 }, + { 0x3306, 36155 }, + { 0x3307, 36421 }, + { 0x3308, 36296 }, + { 0x3309, 36188 }, + { 0x330A, 36190 }, + { 0x330B, 36326 }, + { 0x330C, 36393 }, + { 0x330D, 36395 }, + { 0x330E, 36300 }, + { 0x330F, 36298 }, + { 0x3310, 36167 }, + { 0x3311, 36302 }, + { 0x3312, 36379 }, + { 0x3313, 36391 }, + { 0x3314, 36175 }, + { 0x3315, 36459 }, + { 0x3316, 36463 }, + { 0x3317, 36451 }, + { 0x3318, 36369 }, + { 0x3319, 36447 }, + { 0x331A, 36453 }, + { 0x331B, 36397 }, + { 0x331C, 36328 }, + { 0x331D, 36377 }, + { 0x331E, 36330 }, + { 0x331F, 36415 }, + { 0x3320, 36445 }, + { 0x3321, 36417 }, + { 0x3322, 36353 }, + { 0x3323, 36355 }, + { 0x3324, 36294 }, + { 0x3325, 36161 }, + { 0x3326, 36163 }, + { 0x3327, 36153 }, + { 0x3328, 36186 }, + { 0x3329, 36336 }, + { 0x332A, 36304 }, + { 0x332B, 36441 }, + { 0x332C, 36338 }, + { 0x332D, 36389 }, + { 0x332E, 36457 }, + { 0x332F, 36385 }, + { 0x3330, 36194 }, + { 0x3331, 36159 }, + { 0x3332, 36423 }, + { 0x3333, 36373 }, + { 0x3334, 36419 }, + { 0x3335, 36308 }, + { 0x3336, 36449 }, + { 0x3337, 36192 }, + { 0x3338, 36383 }, + { 0x3339, 36371 }, + { 0x333A, 36342 }, + { 0x333B, 36340 }, + { 0x333C, 36292 }, + { 0x333D, 36387 }, + { 0x333E, 36367 }, + { 0x333F, 36120 }, + { 0x3340, 36344 }, + { 0x3341, 36306 }, + { 0x3342, 36169 }, + { 0x3343, 36401 }, + { 0x3344, 36334 }, + { 0x3345, 36332 }, + { 0x3346, 36381 }, + { 0x3347, 36403 }, + { 0x3348, 36409 }, + { 0x3349, 36184 }, + { 0x334A, 36455 }, + { 0x334B, 36182 }, + { 0x334C, 36407 }, + { 0x334D, 36405 }, + { 0x334E, 36359 }, + { 0x334F, 36361 }, + { 0x3350, 36288 }, + { 0x3351, 36411 }, + { 0x3352, 36198 }, + { 0x3353, 36351 }, + { 0x3354, 36413 }, + { 0x3355, 36196 }, + { 0x3356, 36443 }, + { 0x3357, 36357 }, + { 0x3358, 68940 }, + { 0x3359, 68898 }, + { 0x335A, 68916 }, + { 0x335B, 68958 }, + { 0x335C, 68928 }, + { 0x335D, 68922 }, + { 0x335E, 68904 }, + { 0x335F, 68952 }, + { 0x3360, 68946 }, + { 0x3361, 68934 }, + { 0x3362, 68910 }, + { 0x3363, 68964 }, + { 0x3364, 68970 }, + { 0x3365, 69012 }, + { 0x3366, 69000 }, + { 0x3367, 68982 }, + { 0x3368, 68988 }, + { 0x3369, 69018 }, + { 0x336A, 68994 }, + { 0x336B, 69006 }, + { 0x336C, 68976 }, + { 0x336D, 69024 }, + { 0x336E, 69030 }, + { 0x336F, 69042 }, + { 0x3370, 69036 }, + { 0x3371, 36122 }, + { 0x3372, 35925 }, + { 0x3373, 35907 }, + { 0x3374, 36088 }, + { 0x3375, 36059 }, + { 0x3376, 36066 }, + { 0x3377, 35931 }, + { 0x3378, 35936 }, + { 0x3379, 35933 }, + { 0x337A, 35957 }, + { 0x337B, 36100 }, + { 0x337C, 36104 }, + { 0x337D, 36108 }, + { 0x337E, 36096 }, + { 0x337F, 36461 }, + { 0x3380, 36063 }, + { 0x3381, 36047 }, + { 0x3382, 36013 }, + { 0x3383, 35992 }, + { 0x3384, 35959 }, + { 0x3385, 35961 }, + { 0x3386, 35994 }, + { 0x3387, 35943 }, + { 0x3388, 36090 }, + { 0x3389, 36173 }, + { 0x338A, 36068 }, + { 0x338B, 36049 }, + { 0x338C, 36016 }, + { 0x338D, 36019 }, + { 0x338E, 35999 }, + { 0x338F, 35963 }, + { 0x3390, 35953 }, + { 0x3391, 36124 }, + { 0x3392, 36130 }, + { 0x3393, 36116 }, + { 0x3394, 36151 }, + { 0x3395, 36022 }, + { 0x3396, 36001 }, + { 0x3397, 35929 }, + { 0x3398, 35967 }, + { 0x3399, 35941 }, + { 0x339A, 36051 }, + { 0x339B, 36025 }, + { 0x339C, 36003 }, + { 0x339D, 35915 }, + { 0x339E, 35969 }, + { 0x339F, 36008 }, + { 0x33A0, 35920 }, + { 0x33A1, 35898 }, + { 0x33A2, 35977 }, + { 0x33A3, 36005 }, + { 0x33A4, 35917 }, + { 0x33A5, 35895 }, + { 0x33A6, 35971 }, + { 0x33A7, 35886 }, + { 0x33A8, 35890 }, + { 0x33A9, 36061 }, + { 0x33AA, 36126 }, + { 0x33AB, 36136 }, + { 0x33AC, 36118 }, + { 0x33AD, 36140 }, + { 0x33AE, 36142 }, + { 0x33AF, 36146 }, + { 0x33B0, 36076 }, + { 0x33B1, 36053 }, + { 0x33B2, 36028 }, + { 0x33B3, 36011 }, + { 0x33B4, 36078 }, + { 0x33B5, 36055 }, + { 0x33B6, 36031 }, + { 0x33B7, 36037 }, + { 0x33B8, 35982 }, + { 0x33B9, 36039 }, + { 0x33BA, 36080 }, + { 0x33BB, 36057 }, + { 0x33BC, 36034 }, + { 0x33BD, 36042 }, + { 0x33BE, 35984 }, + { 0x33BF, 36044 }, + { 0x33C0, 35880 }, + { 0x33C1, 35883 }, + { 0x33C2, 35905 }, + { 0x33C3, 35909 }, + { 0x33C4, 35911 }, + { 0x33C5, 35913 }, + { 0x33C6, 35876 }, + { 0x33C7, 35923 }, + { 0x33C8, 35927 }, + { 0x33C9, 35945 }, + { 0x33CA, 35947 }, + { 0x33CB, 35951 }, + { 0x33CC, 35955 }, + { 0x33CD, 35965 }, + { 0x33CE, 35974 }, + { 0x33CF, 35980 }, + { 0x33D0, 35986 }, + { 0x33D1, 35988 }, + { 0x33D2, 36128 }, + { 0x33D3, 35990 }, + { 0x33D4, 35996 }, + { 0x33D5, 36132 }, + { 0x33D6, 36134 }, + { 0x33D7, 36070 }, + { 0x33D8, 36072 }, + { 0x33D9, 36138 }, + { 0x33DA, 36074 }, + { 0x33DB, 36082 }, + { 0x33DC, 36084 }, + { 0x33DD, 36086 }, + { 0x33DE, 35901 }, + { 0x33DF, 35872 }, + { 0x33E0, 68707 }, + { 0x33E1, 68725 }, + { 0x33E2, 68761 }, + { 0x33E3, 68737 }, + { 0x33E4, 68731 }, + { 0x33E5, 68713 }, + { 0x33E6, 68755 }, + { 0x33E7, 68749 }, + { 0x33E8, 68743 }, + { 0x33E9, 68719 }, + { 0x33EA, 68767 }, + { 0x33EB, 68779 }, + { 0x33EC, 68821 }, + { 0x33ED, 68809 }, + { 0x33EE, 68791 }, + { 0x33EF, 68797 }, + { 0x33F0, 68827 }, + { 0x33F1, 68803 }, + { 0x33F2, 68815 }, + { 0x33F3, 68785 }, + { 0x33F4, 68839 }, + { 0x33F5, 68851 }, + { 0x33F6, 68887 }, + { 0x33F7, 68863 }, + { 0x33F8, 68857 }, + { 0x33F9, 68845 }, + { 0x33FA, 68881 }, + { 0x33FB, 68875 }, + { 0x33FC, 68869 }, + { 0x33FD, 68773 }, + { 0x33FE, 68833 }, + { 0x33FF, 36114 }, + { 0x4DC0, 52824 }, + { 0x4DC1, 52838 }, + { 0x4DC2, 52975 }, + { 0x4DC3, 52945 }, + { 0x4DC4, 52921 }, + { 0x4DC5, 52927 }, + { 0x4DC6, 52777 }, + { 0x4DC7, 52907 }, + { 0x4DC8, 52883 }, + { 0x4DC9, 52942 }, + { 0x4DCA, 52880 }, + { 0x4DCB, 53002 }, + { 0x4DCC, 52987 }, + { 0x4DCD, 52864 }, + { 0x4DCE, 52911 }, + { 0x4DCF, 52984 }, + { 0x4DD0, 52958 }, + { 0x4DD1, 52843 }, + { 0x4DD2, 52924 }, + { 0x4DD3, 53017 }, + { 0x4DD4, 52895 }, + { 0x4DD5, 52853 }, + { 0x4DD6, 52971 }, + { 0x4DD7, 52904 }, + { 0x4DD8, 52968 }, + { 0x4DD9, 52860 }, + { 0x4DDA, 52876 }, + { 0x4DDB, 52868 }, + { 0x4DDC, 52799 }, + { 0x4DDD, 52819 }, + { 0x4DDE, 52965 }, + { 0x4DDF, 52933 }, + { 0x4DE0, 52918 }, + { 0x4DE1, 52856 }, + { 0x4DE2, 52939 }, + { 0x4DE3, 52952 }, + { 0x4DE4, 52785 }, + { 0x4DE5, 52993 }, + { 0x4DE6, 53011 }, + { 0x4DE7, 53005 }, + { 0x4DE8, 52930 }, + { 0x4DE9, 52936 }, + { 0x4DEA, 53014 }, + { 0x4DEB, 52899 }, + { 0x4DEC, 52961 }, + { 0x4DED, 52914 }, + { 0x4DEE, 52996 }, + { 0x4DEF, 52781 }, + { 0x4DF0, 52999 }, + { 0x4DF1, 52815 }, + { 0x4DF2, 52810 }, + { 0x4DF3, 52804 }, + { 0x4DF4, 53008 }, + { 0x4DF5, 52829 }, + { 0x4DF6, 52949 }, + { 0x4DF7, 52834 }, + { 0x4DF8, 52789 }, + { 0x4DF9, 52794 }, + { 0x4DFA, 52981 }, + { 0x4DFB, 52990 }, + { 0x4DFC, 52872 }, + { 0x4DFD, 52887 }, + { 0x4DFE, 52849 }, + { 0x4DFF, 52891 }, + { 0x5000, 634 }, + { 0x5001, 637 }, + { 0x5002, 520 }, + { 0x5003, 631 }, + { 0x5004, 1300 }, + { 0x5005, 1303 }, + { 0x5006, 628 }, + { 0x5007, 1297 }, + { 0x5008, 529 }, + { 0x5009, 532 }, + { 0x500A, 514 }, + { 0x500B, 526 }, + { 0x500C, 2011 }, + { 0x500D, 802 }, + { 0x500E, 2008 }, + { 0x500F, 721 }, + { 0x5010, 724 }, + { 0x5011, 523 }, + { 0x5012, 718 }, + { 0x5013, 586 }, + { 0x5014, 517 }, + { 0x5015, 829 }, + { 0x5016, 910 }, + { 0x5017, 913 }, + { 0x5018, 541 }, + { 0x5019, 907 }, + { 0x501A, 2341 }, + { 0x501B, 2344 }, + { 0x501C, 904 }, + { 0x501D, 2338 }, + { 0x501E, 874 }, + { 0x501F, 877 }, + { 0x5020, 535 }, + { 0x5021, 871 }, + { 0x5022, 2350 }, + { 0x5023, 925 }, + { 0x5024, 2347 }, + { 0x5025, 919 }, + { 0x5026, 922 }, + { 0x5027, 544 }, + { 0x5028, 916 }, + { 0x5029, 901 }, + { 0x502A, 538 }, + { 0x502B, 898 }, + { 0x502C, 934 }, + { 0x502D, 937 }, + { 0x502E, 547 }, + { 0x502F, 928 }, + { 0x5030, 2353 }, + { 0x5031, 931 }, + { 0x5032, 946 }, + { 0x5033, 949 }, + { 0x5034, 550 }, + { 0x5035, 940 }, + { 0x5036, 2356 }, + { 0x5037, 943 }, + { 0x5038, 1705 }, + { 0x5039, 1708 }, + { 0x503A, 730 }, + { 0x503B, 1702 }, + { 0x503C, 3274 }, + { 0x503D, 1699 }, + { 0x503E, 3271 }, + { 0x503F, 1693 }, + { 0x5040, 1696 }, + { 0x5041, 727 }, + { 0x5042, 1690 }, + { 0x5043, 3280 }, + { 0x5044, 1720 }, + { 0x5045, 3277 }, + { 0x5046, 1714 }, + { 0x5047, 1717 }, + { 0x5048, 733 }, + { 0x5049, 1711 }, + { 0x504A, 1729 }, + { 0x504B, 1732 }, + { 0x504C, 736 }, + { 0x504D, 1723 }, + { 0x504E, 3283 }, + { 0x504F, 1726 }, + { 0x5050, 1741 }, + { 0x5051, 1744 }, + { 0x5052, 739 }, + { 0x5053, 1735 }, + { 0x5054, 3286 }, + { 0x5055, 1738 }, + { 0x5056, 2299 }, + { 0x5057, 2302 }, + { 0x5058, 886 }, + { 0x5059, 2296 }, + { 0x505A, 3709 }, + { 0x505B, 3712 }, + { 0x505C, 2293 }, + { 0x505D, 3706 }, + { 0x505E, 2281 }, + { 0x505F, 2284 }, + { 0x5060, 880 }, + { 0x5061, 2278 }, + { 0x5062, 3718 }, + { 0x5063, 2314 }, + { 0x5064, 3715 }, + { 0x5065, 2308 }, + { 0x5066, 2311 }, + { 0x5067, 889 }, + { 0x5068, 2305 }, + { 0x5069, 2290 }, + { 0x506A, 883 }, + { 0x506B, 2287 }, + { 0x506C, 2323 }, + { 0x506D, 2326 }, + { 0x506E, 892 }, + { 0x506F, 2317 }, + { 0x5070, 3721 }, + { 0x5071, 2320 }, + { 0x5072, 2332 }, + { 0x5073, 2335 }, + { 0x5074, 895 }, + { 0x5075, 2329 }, + { 0x5076, 2959 }, + { 0x5077, 2962 }, + { 0x5078, 1561 }, + { 0x5079, 2956 }, + { 0x507A, 3871 }, + { 0x507B, 2953 }, + { 0x507C, 3868 }, + { 0x507D, 2947 }, + { 0x507E, 2950 }, + { 0x507F, 1558 }, + { 0x5080, 2944 }, + { 0x5081, 2968 }, + { 0x5082, 2971 }, + { 0x5083, 1564 }, + { 0x5084, 2965 }, + { 0x5085, 2980 }, + { 0x5086, 2983 }, + { 0x5087, 1567 }, + { 0x5088, 2974 }, + { 0x5089, 3874 }, + { 0x508A, 2977 }, + { 0x508B, 2992 }, + { 0x508C, 2995 }, + { 0x508D, 1570 }, + { 0x508E, 2986 }, + { 0x508F, 3877 }, + { 0x5090, 2989 }, + { 0x5091, 2647 }, + { 0x5092, 2650 }, + { 0x5093, 1252 }, + { 0x5094, 2644 }, + { 0x5095, 3793 }, + { 0x5096, 2641 }, + { 0x5097, 3790 }, + { 0x5098, 2635 }, + { 0x5099, 2638 }, + { 0x509A, 1249 }, + { 0x509B, 2632 }, + { 0x509C, 3799 }, + { 0x509D, 2662 }, + { 0x509E, 3796 }, + { 0x509F, 2656 }, + { 0x50A0, 2659 }, + { 0x50A1, 1255 }, + { 0x50A2, 2653 }, + { 0x50A3, 2671 }, + { 0x50A4, 2674 }, + { 0x50A5, 1258 }, + { 0x50A6, 2665 }, + { 0x50A7, 3802 }, + { 0x50A8, 2668 }, + { 0x50A9, 2683 }, + { 0x50AA, 1261 }, + { 0x50AB, 2677 }, + { 0x50AC, 3805 }, + { 0x50AD, 2680 }, + { 0x50AE, 1513 }, + { 0x50AF, 1516 }, + { 0x50B0, 691 }, + { 0x50B1, 1510 }, + { 0x50B2, 2929 }, + { 0x50B3, 1507 }, + { 0x50B4, 2926 }, + { 0x50B5, 1486 }, + { 0x50B6, 1489 }, + { 0x50B7, 685 }, + { 0x50B8, 1483 }, + { 0x50B9, 2935 }, + { 0x50BA, 2938 }, + { 0x50BB, 1528 }, + { 0x50BC, 2932 }, + { 0x50BD, 1522 }, + { 0x50BE, 1525 }, + { 0x50BF, 694 }, + { 0x50C0, 1519 }, + { 0x50C1, 1492 }, + { 0x50C2, 688 }, + { 0x50C3, 1537 }, + { 0x50C4, 1540 }, + { 0x50C5, 697 }, + { 0x50C6, 1531 }, + { 0x50C7, 2941 }, + { 0x50C8, 1534 }, + { 0x50C9, 1546 }, + { 0x50CA, 1549 }, + { 0x50CB, 700 }, + { 0x50CC, 1543 }, + { 0x50CD, 1108 }, + { 0x50CE, 1111 }, + { 0x50CF, 592 }, + { 0x50D0, 1105 }, + { 0x50D1, 1099 }, + { 0x50D2, 1102 }, + { 0x50D3, 589 }, + { 0x50D4, 1096 }, + { 0x50D5, 1117 }, + { 0x50D6, 595 }, + { 0x50D7, 1114 }, + { 0x50D8, 1126 }, + { 0x50D9, 1129 }, + { 0x50DA, 598 }, + { 0x50DB, 1120 }, + { 0x50DC, 2494 }, + { 0x50DD, 1123 }, + { 0x50DE, 1135 }, + { 0x50DF, 1138 }, + { 0x50E0, 601 }, + { 0x50E1, 1132 }, + { 0x50E2, 2035 }, + { 0x50E3, 2038 }, + { 0x50E4, 808 }, + { 0x50E5, 2032 }, + { 0x50E6, 3523 }, + { 0x50E7, 3526 }, + { 0x50E8, 2029 }, + { 0x50E9, 3520 }, + { 0x50EA, 2017 }, + { 0x50EB, 2020 }, + { 0x50EC, 805 }, + { 0x50ED, 2014 }, + { 0x50EE, 2044 }, + { 0x50EF, 2047 }, + { 0x50F0, 811 }, + { 0x50F1, 2041 }, + { 0x50F2, 2026 }, + { 0x50F3, 2023 }, + { 0x50F4, 2056 }, + { 0x50F5, 2059 }, + { 0x50F6, 814 }, + { 0x50F7, 2050 }, + { 0x50F8, 3529 }, + { 0x50F9, 2053 }, + { 0x50FA, 2068 }, + { 0x50FB, 2071 }, + { 0x50FC, 817 }, + { 0x50FD, 2062 }, + { 0x50FE, 3532 }, + { 0x50FF, 2065 }, + { 0x5100, 1066 }, + { 0x5101, 1069 }, + { 0x5102, 577 }, + { 0x5103, 1063 }, + { 0x5104, 2485 }, + { 0x5105, 1060 }, + { 0x5106, 2482 }, + { 0x5107, 1033 }, + { 0x5108, 1036 }, + { 0x5109, 571 }, + { 0x510A, 1030 }, + { 0x510B, 2488 }, + { 0x510C, 1081 }, + { 0x510D, 1075 }, + { 0x510E, 1078 }, + { 0x510F, 580 }, + { 0x5110, 1072 }, + { 0x5111, 1057 }, + { 0x5112, 574 }, + { 0x5113, 1054 }, + { 0x5114, 1090 }, + { 0x5115, 1093 }, + { 0x5116, 583 }, + { 0x5117, 1084 }, + { 0x5118, 2491 }, + { 0x5119, 1087 }, + { 0x511A, 1978 }, + { 0x511B, 1981 }, + { 0x511C, 793 }, + { 0x511D, 1975 }, + { 0x511E, 3505 }, + { 0x511F, 1972 }, + { 0x5120, 3502 }, + { 0x5121, 1960 }, + { 0x5122, 1963 }, + { 0x5123, 787 }, + { 0x5124, 1957 }, + { 0x5125, 3511 }, + { 0x5126, 3514 }, + { 0x5127, 1993 }, + { 0x5128, 3508 }, + { 0x5129, 1987 }, + { 0x512A, 1990 }, + { 0x512B, 796 }, + { 0x512C, 1984 }, + { 0x512D, 1969 }, + { 0x512E, 790 }, + { 0x512F, 1966 }, + { 0x5130, 2002 }, + { 0x5131, 2005 }, + { 0x5132, 799 }, + { 0x5133, 1996 }, + { 0x5134, 3517 }, + { 0x5135, 1999 }, + { 0x5136, 2452 }, + { 0x5137, 2455 }, + { 0x5138, 1045 }, + { 0x5139, 2449 }, + { 0x513A, 3742 }, + { 0x513B, 2446 }, + { 0x513C, 3739 }, + { 0x513D, 2434 }, + { 0x513E, 2437 }, + { 0x513F, 1039 }, + { 0x5140, 2431 }, + { 0x5141, 3748 }, + { 0x5142, 2467 }, + { 0x5143, 3745 }, + { 0x5144, 2461 }, + { 0x5145, 2464 }, + { 0x5146, 1048 }, + { 0x5147, 2458 }, + { 0x5148, 2443 }, + { 0x5149, 1042 }, + { 0x514A, 2440 }, + { 0x514B, 2476 }, + { 0x514C, 2479 }, + { 0x514D, 1051 }, + { 0x514E, 2470 }, + { 0x514F, 3751 }, + { 0x5150, 2473 }, + { 0x5151, 3019 }, + { 0x5152, 3022 }, + { 0x5153, 1579 }, + { 0x5154, 3016 }, + { 0x5155, 3880 }, + { 0x5156, 3013 }, + { 0x5157, 3001 }, + { 0x5158, 3004 }, + { 0x5159, 1573 }, + { 0x515A, 2998 }, + { 0x515B, 3028 }, + { 0x515C, 3031 }, + { 0x515D, 1582 }, + { 0x515E, 3025 }, + { 0x515F, 3010 }, + { 0x5160, 1576 }, + { 0x5161, 3007 }, + { 0x5162, 3040 }, + { 0x5163, 3043 }, + { 0x5164, 1585 }, + { 0x5165, 3034 }, + { 0x5166, 3883 }, + { 0x5167, 3037 }, + { 0x5168, 2707 }, + { 0x5169, 2710 }, + { 0x516A, 1270 }, + { 0x516B, 2704 }, + { 0x516C, 3811 }, + { 0x516D, 3814 }, + { 0x516E, 2701 }, + { 0x516F, 3808 }, + { 0x5170, 2689 }, + { 0x5171, 2692 }, + { 0x5172, 1264 }, + { 0x5173, 2686 }, + { 0x5174, 3817 }, + { 0x5175, 2722 }, + { 0x5176, 2716 }, + { 0x5177, 2719 }, + { 0x5178, 2713 }, + { 0x5179, 2698 }, + { 0x517A, 1267 }, + { 0x517B, 2695 }, + { 0x517C, 2725 }, + { 0x517D, 1609 }, + { 0x517E, 1612 }, + { 0x517F, 709 }, + { 0x5180, 1606 }, + { 0x5181, 3079 }, + { 0x5182, 1603 }, + { 0x5183, 3076 }, + { 0x5184, 1555 }, + { 0x5185, 703 }, + { 0x5186, 1552 }, + { 0x5187, 3178 }, + { 0x5188, 1651 }, + { 0x5189, 3175 }, + { 0x518A, 1630 }, + { 0x518B, 1633 }, + { 0x518C, 712 }, + { 0x518D, 1627 }, + { 0x518E, 1591 }, + { 0x518F, 706 }, + { 0x5190, 1588 }, + { 0x5191, 1660 }, + { 0x5192, 1663 }, + { 0x5193, 715 }, + { 0x5194, 1654 }, + { 0x5195, 3181 }, + { 0x5196, 1657 }, + { 0x5197, 2593 }, + { 0x5198, 2596 }, + { 0x5199, 1237 }, + { 0x519A, 2590 }, + { 0x519B, 3775 }, + { 0x519C, 2587 }, + { 0x519D, 3772 }, + { 0x519E, 2575 }, + { 0x519F, 2578 }, + { 0x51A0, 1231 }, + { 0x51A1, 2572 }, + { 0x51A2, 3781 }, + { 0x51A3, 2605 }, + { 0x51A4, 3778 }, + { 0x51A5, 2602 }, + { 0x51A6, 1240 }, + { 0x51A7, 2599 }, + { 0x51A8, 2584 }, + { 0x51A9, 1234 }, + { 0x51AA, 2581 }, + { 0x51AB, 2614 }, + { 0x51AC, 2617 }, + { 0x51AD, 1243 }, + { 0x51AE, 2608 }, + { 0x51AF, 3784 }, + { 0x51B0, 2611 }, + { 0x51B1, 2626 }, + { 0x51B2, 2629 }, + { 0x51B3, 1246 }, + { 0x51B4, 2620 }, + { 0x51B5, 3787 }, + { 0x51B6, 2623 }, + { 0x51B7, 1441 }, + { 0x51B8, 1444 }, + { 0x51B9, 673 }, + { 0x51BA, 1438 }, + { 0x51BB, 2863 }, + { 0x51BC, 2866 }, + { 0x51BD, 1435 }, + { 0x51BE, 2860 }, + { 0x51BF, 1423 }, + { 0x51C0, 1426 }, + { 0x51C1, 667 }, + { 0x51C2, 1420 }, + { 0x51C3, 2872 }, + { 0x51C4, 2875 }, + { 0x51C5, 1456 }, + { 0x51C6, 2869 }, + { 0x51C7, 1450 }, + { 0x51C8, 1453 }, + { 0x51C9, 676 }, + { 0x51CA, 1447 }, + { 0x51CB, 1432 }, + { 0x51CC, 670 }, + { 0x51CD, 1429 }, + { 0x51CE, 1465 }, + { 0x51CF, 1468 }, + { 0x51D0, 679 }, + { 0x51D1, 1459 }, + { 0x51D2, 2878 }, + { 0x51D3, 1462 }, + { 0x51D4, 1477 }, + { 0x51D5, 1480 }, + { 0x51D6, 682 }, + { 0x51D7, 1471 }, + { 0x51D8, 2881 }, + { 0x51D9, 1474 }, + { 0x51DA, 1180 }, + { 0x51DB, 1183 }, + { 0x51DC, 610 }, + { 0x51DD, 1177 }, + { 0x51DE, 2551 }, + { 0x51DF, 2554 }, + { 0x51E0, 1174 }, + { 0x51E1, 2548 }, + { 0x51E2, 1144 }, + { 0x51E3, 1147 }, + { 0x51E4, 604 }, + { 0x51E5, 1141 }, + { 0x51E6, 2560 }, + { 0x51E7, 2563 }, + { 0x51E8, 1195 }, + { 0x51E9, 2557 }, + { 0x51EA, 1189 }, + { 0x51EB, 1192 }, + { 0x51EC, 613 }, + { 0x51ED, 1186 }, + { 0x51EE, 1153 }, + { 0x51EF, 1156 }, + { 0x51F0, 607 }, + { 0x51F1, 1150 }, + { 0x51F2, 1204 }, + { 0x51F3, 1207 }, + { 0x51F4, 616 }, + { 0x51F5, 1198 }, + { 0x51F6, 2566 }, + { 0x51F7, 1201 }, + { 0x51F8, 1390 }, + { 0x51F9, 1393 }, + { 0x51FA, 658 }, + { 0x51FB, 1387 }, + { 0x51FC, 2848 }, + { 0x51FD, 1384 }, + { 0x51FE, 2845 }, + { 0x51FF, 1369 }, + { 0x5200, 1372 }, + { 0x5201, 652 }, + { 0x5202, 1366 }, + { 0x5203, 2854 }, + { 0x5204, 1405 }, + { 0x5205, 2851 }, + { 0x5206, 1399 }, + { 0x5207, 1402 }, + { 0x5208, 661 }, + { 0x5209, 1396 }, + { 0x520A, 1378 }, + { 0x520B, 1381 }, + { 0x520C, 655 }, + { 0x520D, 1375 }, + { 0x520E, 1414 }, + { 0x520F, 1417 }, + { 0x5210, 664 }, + { 0x5211, 1408 }, + { 0x5212, 2857 }, + { 0x5213, 1411 }, + { 0x5214, 2518 }, + { 0x5215, 2521 }, + { 0x5216, 1165 }, + { 0x5217, 3757 }, + { 0x5218, 2515 }, + { 0x5219, 3754 }, + { 0x521A, 2500 }, + { 0x521B, 2503 }, + { 0x521C, 1159 }, + { 0x521D, 2497 }, + { 0x521E, 3763 }, + { 0x521F, 3766 }, + { 0x5220, 2533 }, + { 0x5221, 3760 }, + { 0x5222, 2527 }, + { 0x5223, 2530 }, + { 0x5224, 1168 }, + { 0x5225, 2524 }, + { 0x5226, 2509 }, + { 0x5227, 2512 }, + { 0x5228, 1162 }, + { 0x5229, 2506 }, + { 0x522A, 2542 }, + { 0x522B, 2545 }, + { 0x522C, 1171 }, + { 0x522D, 2536 }, + { 0x522E, 3769 }, + { 0x522F, 2539 }, + { 0x5230, 3856 }, + { 0x5231, 2899 }, + { 0x5232, 2887 }, + { 0x5233, 2890 }, + { 0x5234, 1495 }, + { 0x5235, 2884 }, + { 0x5236, 3862 }, + { 0x5237, 2911 }, + { 0x5238, 3859 }, + { 0x5239, 2905 }, + { 0x523A, 2908 }, + { 0x523B, 1501 }, + { 0x523C, 2902 }, + { 0x523D, 2896 }, + { 0x523E, 1498 }, + { 0x523F, 2893 }, + { 0x5240, 2920 }, + { 0x5241, 2923 }, + { 0x5242, 1504 }, + { 0x5243, 2914 }, + { 0x5244, 3865 }, + { 0x5245, 2917 }, + { 0x5246, 2758 }, + { 0x5247, 2761 }, + { 0x5248, 1291 }, + { 0x5249, 2755 }, + { 0x524A, 3823 }, + { 0x524B, 3826 }, + { 0x524C, 2752 }, + { 0x524D, 3820 }, + { 0x524E, 2740 }, + { 0x524F, 2743 }, + { 0x5250, 1285 }, + { 0x5251, 2737 }, + { 0x5252, 3832 }, + { 0x5253, 3835 }, + { 0x5254, 2773 }, + { 0x5255, 3829 }, + { 0x5256, 2767 }, + { 0x5257, 2770 }, + { 0x5258, 1294 }, + { 0x5259, 2764 }, + { 0x525A, 2749 }, + { 0x525B, 1288 }, + { 0x525C, 2746 }, + { 0x525D, 3889 }, + { 0x525E, 3061 }, + { 0x525F, 3886 }, + { 0x5260, 3049 }, + { 0x5261, 3052 }, + { 0x5262, 1594 }, + { 0x5263, 3046 }, + { 0x5264, 3892 }, + { 0x5265, 3895 }, + { 0x5266, 3073 }, + { 0x5267, 3067 }, + { 0x5268, 3070 }, + { 0x5269, 1600 }, + { 0x526A, 3064 }, + { 0x526B, 3058 }, + { 0x526C, 1597 }, + { 0x526D, 3055 }, + { 0x526E, 1228 }, + { 0x526F, 2569 }, + { 0x5270, 1225 }, + { 0x5271, 1213 }, + { 0x5272, 1216 }, + { 0x5273, 619 }, + { 0x5274, 1210 }, + { 0x5275, 2731 }, + { 0x5276, 2734 }, + { 0x5277, 1282 }, + { 0x5278, 2728 }, + { 0x5279, 1276 }, + { 0x527A, 1279 }, + { 0x527B, 625 }, + { 0x527C, 1273 }, + { 0x527D, 1222 }, + { 0x527E, 622 }, + { 0x527F, 1219 }, + { 0x5280, 2077 }, + { 0x5281, 2080 }, + { 0x5282, 820 }, + { 0x5283, 2074 }, + { 0x5284, 3538 }, + { 0x5285, 2095 }, + { 0x5286, 3535 }, + { 0x5287, 2092 }, + { 0x5288, 826 }, + { 0x5289, 2089 }, + { 0x528A, 2086 }, + { 0x528B, 823 }, + { 0x528C, 2083 }, + { 0x528D, 2218 }, + { 0x528E, 2221 }, + { 0x528F, 859 }, + { 0x5290, 2215 }, + { 0x5291, 3637 }, + { 0x5292, 2212 }, + { 0x5293, 3634 }, + { 0x5294, 2185 }, + { 0x5295, 2188 }, + { 0x5296, 853 }, + { 0x5297, 2182 }, + { 0x5298, 3643 }, + { 0x5299, 2233 }, + { 0x529A, 3640 }, + { 0x529B, 2227 }, + { 0x529C, 2230 }, + { 0x529D, 862 }, + { 0x529E, 2224 }, + { 0x529F, 2194 }, + { 0x52A0, 856 }, + { 0x52A1, 2191 }, + { 0x52A2, 2242 }, + { 0x52A3, 2245 }, + { 0x52A4, 865 }, + { 0x52A5, 2236 }, + { 0x52A6, 3646 }, + { 0x52A7, 2239 }, + { 0x52A8, 2254 }, + { 0x52A9, 2257 }, + { 0x52AA, 868 }, + { 0x52AB, 2248 }, + { 0x52AC, 3649 }, + { 0x52AD, 2251 }, + { 0x52AE, 988 }, + { 0x52AF, 991 }, + { 0x52B0, 559 }, + { 0x52B1, 985 }, + { 0x52B2, 2413 }, + { 0x52B3, 2416 }, + { 0x52B4, 982 }, + { 0x52B5, 2410 }, + { 0x52B6, 955 }, + { 0x52B7, 958 }, + { 0x52B8, 553 }, + { 0x52B9, 952 }, + { 0x52BA, 2422 }, + { 0x52BB, 1003 }, + { 0x52BC, 2419 }, + { 0x52BD, 997 }, + { 0x52BE, 1000 }, + { 0x52BF, 562 }, + { 0x52C0, 994 }, + { 0x52C1, 964 }, + { 0x52C2, 556 }, + { 0x52C3, 961 }, + { 0x52C4, 1012 }, + { 0x52C5, 1015 }, + { 0x52C6, 565 }, + { 0x52C7, 1006 }, + { 0x52C8, 2425 }, + { 0x52C9, 1009 }, + { 0x52CA, 1024 }, + { 0x52CB, 1027 }, + { 0x52CC, 568 }, + { 0x52CD, 1018 }, + { 0x52CE, 2428 }, + { 0x52CF, 1021 }, + { 0x52D0, 3673 }, + { 0x52D1, 3676 }, + { 0x52D2, 2266 }, + { 0x52D3, 3670 }, + { 0x52D4, 3997 }, + { 0x52D5, 4000 }, + { 0x52D6, 3667 }, + { 0x52D7, 3994 }, + { 0x52D8, 3655 }, + { 0x52D9, 3658 }, + { 0x52DA, 2260 }, + { 0x52DB, 3652 }, + { 0x52DC, 3682 }, + { 0x52DD, 2269 }, + { 0x52DE, 3679 }, + { 0x52DF, 3664 }, + { 0x52E0, 2263 }, + { 0x52E1, 3661 }, + { 0x52E2, 3691 }, + { 0x52E3, 2272 }, + { 0x52E4, 3685 }, + { 0x52E5, 4003 }, + { 0x52E6, 3688 }, + { 0x52E7, 3700 }, + { 0x52E8, 3703 }, + { 0x52E9, 2275 }, + { 0x52EA, 3694 }, + { 0x52EB, 4006 }, + { 0x52EC, 3697 }, + { 0x52ED, 3235 }, + { 0x52EE, 3238 }, + { 0x52EF, 1681 }, + { 0x52F0, 3232 }, + { 0x52F1, 3940 }, + { 0x52F2, 3229 }, + { 0x52F3, 3937 }, + { 0x52F4, 3220 }, + { 0x52F5, 3223 }, + { 0x52F6, 1675 }, + { 0x52F7, 3217 }, + { 0x52F8, 3943 }, + { 0x52F9, 3247 }, + { 0x52FA, 3244 }, + { 0x52FB, 3241 }, + { 0x52FC, 3226 }, + { 0x52FD, 1678 }, + { 0x52FE, 3256 }, + { 0x52FF, 1684 }, + { 0x5300, 3250 }, + { 0x5301, 3946 }, + { 0x5302, 3253 }, + { 0x5303, 3265 }, + { 0x5304, 3268 }, + { 0x5305, 1687 }, + { 0x5306, 3259 }, + { 0x5307, 3949 }, + { 0x5308, 3262 }, + { 0x5309, 1897 }, + { 0x530A, 1900 }, + { 0x530B, 775 }, + { 0x530C, 1894 }, + { 0x530D, 3430 }, + { 0x530E, 1891 }, + { 0x530F, 3427 }, + { 0x5310, 1864 }, + { 0x5311, 1867 }, + { 0x5312, 769 }, + { 0x5313, 1861 }, + { 0x5314, 3493 }, + { 0x5315, 1930 }, + { 0x5316, 3490 }, + { 0x5317, 1906 }, + { 0x5318, 1909 }, + { 0x5319, 778 }, + { 0x531A, 1903 }, + { 0x531B, 1873 }, + { 0x531C, 772 }, + { 0x531D, 1870 }, + { 0x531E, 1939 }, + { 0x531F, 1942 }, + { 0x5320, 781 }, + { 0x5321, 1933 }, + { 0x5322, 3496 }, + { 0x5323, 1936 }, + { 0x5324, 1951 }, + { 0x5325, 1954 }, + { 0x5326, 784 }, + { 0x5327, 1945 }, + { 0x5328, 3499 }, + { 0x5329, 1948 }, + { 0x532A, 3454 }, + { 0x532B, 3457 }, + { 0x532C, 1918 }, + { 0x532D, 3451 }, + { 0x532E, 3976 }, + { 0x532F, 3448 }, + { 0x5330, 3973 }, + { 0x5331, 3436 }, + { 0x5332, 3439 }, + { 0x5333, 1912 }, + { 0x5334, 3433 }, + { 0x5335, 3463 }, + { 0x5336, 3466 }, + { 0x5337, 1921 }, + { 0x5338, 3460 }, + { 0x5339, 3445 }, + { 0x533A, 1915 }, + { 0x533B, 3442 }, + { 0x533C, 3472 }, + { 0x533D, 3475 }, + { 0x533E, 1924 }, + { 0x533F, 3469 }, + { 0x5340, 3484 }, + { 0x5341, 3487 }, + { 0x5342, 1927 }, + { 0x5343, 3478 }, + { 0x5344, 3979 }, + { 0x5345, 3481 }, + { 0x5346, 3583 }, + { 0x5347, 3586 }, + { 0x5348, 2197 }, + { 0x5349, 3580 }, + { 0x534A, 3985 }, + { 0x534B, 3607 }, + { 0x534C, 3982 }, + { 0x534D, 3601 }, + { 0x534E, 3604 }, + { 0x534F, 2203 }, + { 0x5350, 3598 }, + { 0x5351, 3592 }, + { 0x5352, 3595 }, + { 0x5353, 2200 }, + { 0x5354, 3589 }, + { 0x5355, 3616 }, + { 0x5356, 3619 }, + { 0x5357, 2206 }, + { 0x5358, 3610 }, + { 0x5359, 3988 }, + { 0x535A, 3613 }, + { 0x535B, 3628 }, + { 0x535C, 3631 }, + { 0x535D, 2209 }, + { 0x535E, 3622 }, + { 0x535F, 3991 }, + { 0x5360, 3625 }, + { 0x5361, 2362 }, + { 0x5362, 2365 }, + { 0x5363, 967 }, + { 0x5364, 2359 }, + { 0x5365, 3727 }, + { 0x5366, 3730 }, + { 0x5367, 2386 }, + { 0x5368, 3724 }, + { 0x5369, 2380 }, + { 0x536A, 2383 }, + { 0x536B, 973 }, + { 0x536C, 2377 }, + { 0x536D, 2371 }, + { 0x536E, 2374 }, + { 0x536F, 970 }, + { 0x5370, 2368 }, + { 0x5371, 2395 }, + { 0x5372, 976 }, + { 0x5373, 2389 }, + { 0x5374, 3733 }, + { 0x5375, 2392 }, + { 0x5376, 2404 }, + { 0x5377, 2407 }, + { 0x5378, 979 }, + { 0x5379, 2398 }, + { 0x537A, 3736 }, + { 0x537B, 2401 }, + { 0x537C, 3313 }, + { 0x537D, 1819 }, + { 0x537E, 3952 }, + { 0x537F, 3334 }, + { 0x5380, 3328 }, + { 0x5381, 3331 }, + { 0x5382, 1825 }, + { 0x5383, 3325 }, + { 0x5384, 3319 }, + { 0x5385, 3322 }, + { 0x5386, 1822 }, + { 0x5387, 3316 }, + { 0x5388, 3343 }, + { 0x5389, 3346 }, + { 0x538A, 1828 }, + { 0x538B, 3337 }, + { 0x538C, 3955 }, + { 0x538D, 3340 }, + { 0x538E, 3355 }, + { 0x538F, 3358 }, + { 0x5390, 1831 }, + { 0x5391, 3349 }, + { 0x5392, 3958 }, + { 0x5393, 3352 }, + { 0x5394, 3130 }, + { 0x5395, 3133 }, + { 0x5396, 1636 }, + { 0x5397, 3127 }, + { 0x5398, 3148 }, + { 0x5399, 1642 }, + { 0x539A, 3145 }, + { 0x539B, 3139 }, + { 0x539C, 3142 }, + { 0x539D, 1639 }, + { 0x539E, 3136 }, + { 0x539F, 3157 }, + { 0x53A0, 3160 }, + { 0x53A1, 1645 }, + { 0x53A2, 3151 }, + { 0x53A3, 3916 }, + { 0x53A4, 3154 }, + { 0x53A5, 3169 }, + { 0x53A6, 3172 }, + { 0x53A7, 1648 }, + { 0x53A8, 3163 }, + { 0x53A9, 3919 }, + { 0x53AA, 3166 }, + { 0x53AB, 3376 }, + { 0x53AC, 3379 }, + { 0x53AD, 1876 }, + { 0x53AE, 3373 }, + { 0x53AF, 3964 }, + { 0x53B0, 3400 }, + { 0x53B1, 3961 }, + { 0x53B2, 3394 }, + { 0x53B3, 3397 }, + { 0x53B4, 1882 }, + { 0x53B5, 3391 }, + { 0x53B6, 3385 }, + { 0x53B7, 3388 }, + { 0x53B8, 1879 }, + { 0x53B9, 3382 }, + { 0x53BA, 3409 }, + { 0x53BB, 3412 }, + { 0x53BC, 1885 }, + { 0x53BD, 3403 }, + { 0x53BE, 3967 }, + { 0x53BF, 3406 }, + { 0x53C0, 3421 }, + { 0x53C1, 3424 }, + { 0x53C2, 1888 }, + { 0x53C3, 3415 }, + { 0x53C4, 3970 }, + { 0x53C5, 3418 }, + { 0x53C6, 1798 }, + { 0x53C7, 1801 }, + { 0x53C8, 754 }, + { 0x53C9, 1795 }, + { 0x53CA, 3364 }, + { 0x53CB, 1834 }, + { 0x53CC, 3361 }, + { 0x53CD, 1813 }, + { 0x53CE, 1816 }, + { 0x53CF, 760 }, + { 0x53D0, 1810 }, + { 0x53D1, 1807 }, + { 0x53D2, 757 }, + { 0x53D3, 1804 }, + { 0x53D4, 1843 }, + { 0x53D5, 1846 }, + { 0x53D6, 763 }, + { 0x53D7, 1837 }, + { 0x53D8, 3367 }, + { 0x53D9, 1840 }, + { 0x53DA, 1855 }, + { 0x53DB, 1858 }, + { 0x53DC, 766 }, + { 0x53DD, 1849 }, + { 0x53DE, 3370 }, + { 0x53DF, 1852 }, + { 0x53E0, 1312 }, + { 0x53E1, 1315 }, + { 0x53E2, 640 }, + { 0x53E3, 1309 }, + { 0x53E4, 2779 }, + { 0x53E5, 2782 }, + { 0x53E6, 1306 }, + { 0x53E7, 2776 }, + { 0x53E8, 2833 }, + { 0x53E9, 2836 }, + { 0x53EA, 1339 }, + { 0x53EB, 2830 }, + { 0x53EC, 1333 }, + { 0x53ED, 1336 }, + { 0x53EE, 643 }, + { 0x53EF, 1330 }, + { 0x53F0, 1348 }, + { 0x53F1, 1351 }, + { 0x53F2, 646 }, + { 0x53F3, 1342 }, + { 0x53F4, 2839 }, + { 0x53F5, 1345 }, + { 0x53F6, 1360 }, + { 0x53F7, 1363 }, + { 0x53F8, 649 }, + { 0x53F9, 1354 }, + { 0x53FA, 2842 }, + { 0x53FB, 1357 }, + { 0x53FC, 1753 }, + { 0x53FD, 1756 }, + { 0x53FE, 742 }, + { 0x53FF, 1750 }, + { 0x5400, 3292 }, + { 0x5401, 3295 }, + { 0x5402, 1747 }, + { 0x5403, 3289 }, + { 0x5404, 3301 }, + { 0x5405, 3304 }, + { 0x5406, 1768 }, + { 0x5407, 3298 }, + { 0x5408, 1762 }, + { 0x5409, 1765 }, + { 0x540A, 745 }, + { 0x540B, 1759 }, + { 0x540C, 1777 }, + { 0x540D, 1780 }, + { 0x540E, 748 }, + { 0x540F, 1771 }, + { 0x5410, 3307 }, + { 0x5411, 1774 }, + { 0x5412, 1789 }, + { 0x5413, 1792 }, + { 0x5414, 751 }, + { 0x5415, 1783 }, + { 0x5416, 3310 }, + { 0x5417, 1786 }, + { 0x5418, 2791 }, + { 0x5419, 2794 }, + { 0x541A, 1318 }, + { 0x541B, 2788 }, + { 0x541C, 3841 }, + { 0x541D, 3844 }, + { 0x541E, 2785 }, + { 0x541F, 3838 }, + { 0x5420, 3850 }, + { 0x5421, 2806 }, + { 0x5422, 3847 }, + { 0x5423, 2800 }, + { 0x5424, 2803 }, + { 0x5425, 1321 }, + { 0x5426, 2797 }, + { 0x5427, 2815 }, + { 0x5428, 2818 }, + { 0x5429, 1324 }, + { 0x542A, 2809 }, + { 0x542B, 3853 }, + { 0x542C, 2812 }, + { 0x542D, 2824 }, + { 0x542E, 2827 }, + { 0x542F, 1327 }, + { 0x5430, 2821 }, + { 0x5431, 3088 }, + { 0x5432, 3091 }, + { 0x5433, 1615 }, + { 0x5434, 3085 }, + { 0x5435, 3901 }, + { 0x5436, 3904 }, + { 0x5437, 3082 }, + { 0x5438, 3898 }, + { 0x5439, 3907 }, + { 0x543A, 3103 }, + { 0x543B, 3097 }, + { 0x543C, 3100 }, + { 0x543D, 1618 }, + { 0x543E, 3094 }, + { 0x543F, 3112 }, + { 0x5440, 1621 }, + { 0x5441, 3106 }, + { 0x5442, 3910 }, + { 0x5443, 3109 }, + { 0x5444, 3121 }, + { 0x5445, 3124 }, + { 0x5446, 1624 }, + { 0x5447, 3115 }, + { 0x5448, 3913 }, + { 0x5449, 3118 }, + { 0x544A, 3190 }, + { 0x544B, 3193 }, + { 0x544C, 1666 }, + { 0x544D, 3187 }, + { 0x544E, 3925 }, + { 0x544F, 3928 }, + { 0x5450, 3184 }, + { 0x5451, 3922 }, + { 0x5452, 3934 }, + { 0x5453, 3205 }, + { 0x5454, 3931 }, + { 0x5455, 3199 }, + { 0x5456, 3202 }, + { 0x5457, 1669 }, + { 0x5458, 3196 }, + { 0x5459, 3211 }, + { 0x545A, 3214 }, + { 0x545B, 1672 }, + { 0x545C, 3208 }, + { 0x545D, 2104 }, + { 0x545E, 2107 }, + { 0x545F, 832 }, + { 0x5460, 2101 }, + { 0x5461, 3544 }, + { 0x5462, 3547 }, + { 0x5463, 2098 }, + { 0x5464, 3541 }, + { 0x5465, 3550 }, + { 0x5466, 2119 }, + { 0x5467, 2113 }, + { 0x5468, 2116 }, + { 0x5469, 835 }, + { 0x546A, 2110 }, + { 0x546B, 2128 }, + { 0x546C, 2131 }, + { 0x546D, 838 }, + { 0x546E, 2122 }, + { 0x546F, 3553 }, + { 0x5470, 2125 }, + { 0x5471, 2140 }, + { 0x5472, 2143 }, + { 0x5473, 841 }, + { 0x5474, 2137 }, + { 0x5475, 3559 }, + { 0x5476, 3562 }, + { 0x5477, 2134 }, + { 0x5478, 3556 }, + { 0x5479, 3568 }, + { 0x547A, 3571 }, + { 0x547B, 2155 }, + { 0x547C, 3565 }, + { 0x547D, 2149 }, + { 0x547E, 2152 }, + { 0x547F, 844 }, + { 0x5480, 2146 }, + { 0x5481, 2164 }, + { 0x5482, 2167 }, + { 0x5483, 847 }, + { 0x5484, 2158 }, + { 0x5485, 3574 }, + { 0x5486, 2161 }, + { 0x5487, 2176 }, + { 0x5488, 2179 }, + { 0x5489, 850 }, + { 0x548A, 2170 }, + { 0x548B, 3577 }, + { 0x548C, 2173 }, + { 0x5490, 430 }, + { 0x5491, 364 }, + { 0x5492, 412 }, + { 0x5493, 493 }, + { 0x5494, 394 }, + { 0x5495, 436 }, + { 0x5496, 469 }, + { 0x5497, 400 }, + { 0x5498, 367 }, + { 0x5499, 475 }, + { 0x549A, 418 }, + { 0x549B, 460 }, + { 0x549C, 421 }, + { 0x549D, 379 }, + { 0x549E, 424 }, + { 0x549F, 481 }, + { 0x54A0, 439 }, + { 0x54A1, 355 }, + { 0x54A2, 454 }, + { 0x54A3, 397 }, + { 0x54A4, 466 }, + { 0x54A5, 385 }, + { 0x54A6, 472 }, + { 0x54A7, 496 }, + { 0x54A8, 373 }, + { 0x54A9, 370 }, + { 0x54AA, 487 }, + { 0x54AB, 451 }, + { 0x54AC, 427 }, + { 0x54AD, 406 }, + { 0x54AE, 448 }, + { 0x54AF, 445 }, + { 0x54B0, 433 }, + { 0x54B1, 442 }, + { 0x54B2, 382 }, + { 0x54B3, 358 }, + { 0x54B4, 499 }, + { 0x54B5, 409 }, + { 0x54B6, 403 }, + { 0x54B7, 484 }, + { 0x54B8, 376 }, + { 0x54B9, 352 }, + { 0x54BA, 508 }, + { 0x54BB, 415 }, + { 0x54BC, 349 }, + { 0x54BD, 463 }, + { 0x54BE, 391 }, + { 0x54BF, 478 }, + { 0x54C0, 502 }, + { 0x54C1, 457 }, + { 0x54C2, 505 }, + { 0x54C3, 388 }, + { 0x54C4, 511 }, + { 0x54C5, 490 }, + { 0x54C6, 361 }, + { 0x5500, 7945 }, + { 0x5501, 8254 }, + { 0x5502, 8290 }, + { 0x5503, 8482 }, + { 0x5504, 8653 }, + { 0x5505, 8419 }, + { 0x5506, 8527 }, + { 0x5507, 8206 }, + { 0x5508, 8578 }, + { 0x5509, 8569 }, + { 0x550A, 8671 }, + { 0x550B, 8554 }, + { 0x550C, 8257 }, + { 0x550D, 8473 }, + { 0x550E, 8452 }, + { 0x550F, 8647 }, + { 0x5510, 8533 }, + { 0x5511, 8665 }, + { 0x5512, 8338 }, + { 0x5513, 8425 }, + { 0x5514, 8233 }, + { 0x5515, 8599 }, + { 0x5516, 8431 }, + { 0x5517, 8641 }, + { 0x5518, 8506 }, + { 0x5519, 8659 }, + { 0x551A, 8227 }, + { 0x551B, 8308 }, + { 0x551C, 8629 }, + { 0x551D, 8500 }, + { 0x551E, 8317 }, + { 0x551F, 8697 }, + { 0x5520, 8278 }, + { 0x5521, 8359 }, + { 0x5522, 8380 }, + { 0x5523, 8635 }, + { 0x5524, 7888 }, + { 0x5525, 7996 }, + { 0x5526, 7987 }, + { 0x5527, 8296 }, + { 0x5528, 8167 }, + { 0x5529, 8488 }, + { 0x552A, 8089 }, + { 0x552B, 8215 }, + { 0x552C, 7906 }, + { 0x552D, 8350 }, + { 0x552E, 8329 }, + { 0x552F, 8590 }, + { 0x5530, 8269 }, + { 0x5531, 7957 }, + { 0x5532, 8152 }, + { 0x5533, 8134 }, + { 0x5534, 8461 }, + { 0x5535, 8242 }, + { 0x5536, 8542 }, + { 0x5537, 8035 }, + { 0x5538, 8104 }, + { 0x5539, 7936 }, + { 0x553A, 8371 }, + { 0x553B, 8119 }, + { 0x553C, 8440 }, + { 0x553D, 8197 }, + { 0x553E, 8515 }, + { 0x553F, 7921 }, + { 0x5540, 8005 }, + { 0x5541, 8389 }, + { 0x5542, 8182 }, + { 0x5543, 8020 }, + { 0x5544, 8617 }, + { 0x5545, 7972 }, + { 0x5546, 8050 }, + { 0x5547, 8068 }, + { 0x5548, 8407 }, + { 0x5549, 7882 }, + { 0x554A, 7897 }, + { 0x554B, 8605 }, + { 0x554C, 7981 }, + { 0x554D, 8287 }, + { 0x554E, 8161 }, + { 0x554F, 8479 }, + { 0x5550, 8083 }, + { 0x5551, 8209 }, + { 0x5552, 7900 }, + { 0x5553, 8344 }, + { 0x5554, 8323 }, + { 0x5555, 8566 }, + { 0x5556, 8584 }, + { 0x5557, 8263 }, + { 0x5558, 7951 }, + { 0x5559, 8146 }, + { 0x555A, 8128 }, + { 0x555B, 8455 }, + { 0x555C, 8236 }, + { 0x555D, 8536 }, + { 0x555E, 8029 }, + { 0x555F, 8098 }, + { 0x5560, 7930 }, + { 0x5561, 8365 }, + { 0x5562, 8113 }, + { 0x5563, 8434 }, + { 0x5564, 8191 }, + { 0x5565, 8509 }, + { 0x5566, 7915 }, + { 0x5567, 7999 }, + { 0x5568, 8383 }, + { 0x5569, 8176 }, + { 0x556A, 8014 }, + { 0x556B, 8314 }, + { 0x556C, 8611 }, + { 0x556D, 7966 }, + { 0x556E, 8044 }, + { 0x556F, 8059 }, + { 0x5570, 8401 }, + { 0x5571, 8080 }, + { 0x5572, 8416 }, + { 0x5573, 8302 }, + { 0x5574, 8494 }, + { 0x5575, 8656 }, + { 0x5576, 8422 }, + { 0x5577, 8530 }, + { 0x5578, 8224 }, + { 0x5579, 8581 }, + { 0x557A, 8575 }, + { 0x557B, 8674 }, + { 0x557C, 8563 }, + { 0x557D, 8260 }, + { 0x557E, 8476 }, + { 0x557F, 8470 }, + { 0x5580, 8650 }, + { 0x5581, 8551 }, + { 0x5582, 8668 }, + { 0x5583, 8341 }, + { 0x5584, 8428 }, + { 0x5585, 8251 }, + { 0x5586, 8602 }, + { 0x5587, 8449 }, + { 0x5588, 8644 }, + { 0x5589, 8524 }, + { 0x558A, 8662 }, + { 0x558B, 8230 }, + { 0x558C, 8311 }, + { 0x558D, 8632 }, + { 0x558E, 8503 }, + { 0x558F, 8320 }, + { 0x5590, 8703 }, + { 0x5591, 8284 }, + { 0x5592, 8362 }, + { 0x5593, 8398 }, + { 0x5594, 8638 }, + { 0x5595, 7894 }, + { 0x5596, 8143 }, + { 0x5597, 7993 }, + { 0x5598, 8305 }, + { 0x5599, 8173 }, + { 0x559A, 8497 }, + { 0x559B, 8095 }, + { 0x559C, 8221 }, + { 0x559D, 7912 }, + { 0x559E, 8356 }, + { 0x559F, 8335 }, + { 0x55A0, 8596 }, + { 0x55A1, 8275 }, + { 0x55A2, 7963 }, + { 0x55A3, 8158 }, + { 0x55A4, 8140 }, + { 0x55A5, 8467 }, + { 0x55A6, 8248 }, + { 0x55A7, 8548 }, + { 0x55A8, 8041 }, + { 0x55A9, 8110 }, + { 0x55AA, 7942 }, + { 0x55AB, 8377 }, + { 0x55AC, 8125 }, + { 0x55AD, 8446 }, + { 0x55AE, 8203 }, + { 0x55AF, 8521 }, + { 0x55B0, 7927 }, + { 0x55B1, 8011 }, + { 0x55B2, 8395 }, + { 0x55B3, 8188 }, + { 0x55B4, 8026 }, + { 0x55B5, 8623 }, + { 0x55B6, 7978 }, + { 0x55B7, 8056 }, + { 0x55B8, 8074 }, + { 0x55B9, 8413 }, + { 0x55BA, 7891 }, + { 0x55BB, 8077 }, + { 0x55BC, 8626 }, + { 0x55BD, 7990 }, + { 0x55BE, 8299 }, + { 0x55BF, 8170 }, + { 0x55C0, 8491 }, + { 0x55C1, 8092 }, + { 0x55C2, 8218 }, + { 0x55C3, 7909 }, + { 0x55C4, 8353 }, + { 0x55C5, 8332 }, + { 0x55C6, 8593 }, + { 0x55C7, 8272 }, + { 0x55C8, 8560 }, + { 0x55C9, 7960 }, + { 0x55CA, 8155 }, + { 0x55CB, 8137 }, + { 0x55CC, 8464 }, + { 0x55CD, 8245 }, + { 0x55CE, 8545 }, + { 0x55CF, 8038 }, + { 0x55D0, 8107 }, + { 0x55D1, 7939 }, + { 0x55D2, 8374 }, + { 0x55D3, 8122 }, + { 0x55D4, 8443 }, + { 0x55D5, 8200 }, + { 0x55D6, 8518 }, + { 0x55D7, 7924 }, + { 0x55D8, 8008 }, + { 0x55D9, 8392 }, + { 0x55DA, 8185 }, + { 0x55DB, 8023 }, + { 0x55DC, 8620 }, + { 0x55DD, 7975 }, + { 0x55DE, 8053 }, + { 0x55DF, 8071 }, + { 0x55E0, 8410 }, + { 0x55E1, 7885 }, + { 0x55E2, 7948 }, + { 0x55E3, 8608 }, + { 0x55E4, 7984 }, + { 0x55E5, 8293 }, + { 0x55E6, 8164 }, + { 0x55E7, 8485 }, + { 0x55E8, 8086 }, + { 0x55E9, 8212 }, + { 0x55EA, 7903 }, + { 0x55EB, 8347 }, + { 0x55EC, 8326 }, + { 0x55ED, 8572 }, + { 0x55EE, 8587 }, + { 0x55EF, 8266 }, + { 0x55F0, 8557 }, + { 0x55F1, 7954 }, + { 0x55F2, 8149 }, + { 0x55F3, 8131 }, + { 0x55F4, 8458 }, + { 0x55F5, 8239 }, + { 0x55F6, 8539 }, + { 0x55F7, 8032 }, + { 0x55F8, 8101 }, + { 0x55F9, 7933 }, + { 0x55FA, 8368 }, + { 0x55FB, 8116 }, + { 0x55FC, 8437 }, + { 0x55FD, 8194 }, + { 0x55FE, 8512 }, + { 0x55FF, 7918 }, + { 0x5600, 8002 }, + { 0x5601, 8386 }, + { 0x5602, 8179 }, + { 0x5603, 8017 }, + { 0x5604, 8614 }, + { 0x5605, 8700 }, + { 0x5606, 7969 }, + { 0x5607, 8281 }, + { 0x5608, 8047 }, + { 0x5609, 8062 }, + { 0x560A, 8404 }, + { 0x560B, 8065 }, + { 0x560C, 8706 }, + { 0x560D, 7808 }, + { 0x560E, 7805 }, + { 0x560F, 7879 }, + { 0x5610, 8681 }, + { 0x5611, 8685 }, + { 0x5612, 8693 }, + { 0x5613, 7873 }, + { 0x5614, 7876 }, + { 0x5615, 7864 }, + { 0x5616, 7843 }, + { 0x5617, 7849 }, + { 0x5618, 7840 }, + { 0x5619, 7846 }, + { 0x561A, 7852 }, + { 0x561B, 7870 }, + { 0x561C, 7861 }, + { 0x561D, 7867 }, + { 0x561E, 7855 }, + { 0x561F, 7858 }, + { 0x5620, 7828 }, + { 0x5621, 7810 }, + { 0x5622, 7816 }, + { 0x5623, 7837 }, + { 0x5624, 7822 }, + { 0x5625, 7819 }, + { 0x5626, 7813 }, + { 0x5627, 7834 }, + { 0x5628, 7831 }, + { 0x5629, 7825 }, + { 0x562A, 8689 }, + { 0x562B, 8677 }, + { 0x5640, 50137 }, + { 0x5641, 49239 }, + { 0x5642, 50054 }, + { 0x5643, 49156 }, + { 0x5644, 50212 }, + { 0x5645, 49318 }, + { 0x5646, 49931 }, + { 0x5647, 49033 }, + { 0x5648, 50050 }, + { 0x5649, 49152 }, + { 0x564A, 50266 }, + { 0x564B, 49372 }, + { 0x564C, 50045 }, + { 0x564D, 49147 }, + { 0x564E, 50163 }, + { 0x564F, 49265 }, + { 0x5650, 50023 }, + { 0x5651, 49125 }, + { 0x5652, 50184 }, + { 0x5653, 49286 }, + { 0x5654, 50202 }, + { 0x5655, 49308 }, + { 0x5656, 50168 }, + { 0x5657, 49270 }, + { 0x5658, 50120 }, + { 0x5659, 49222 }, + { 0x565A, 50146 }, + { 0x565B, 49248 }, + { 0x565C, 50189 }, + { 0x565D, 49291 }, + { 0x565E, 49727 }, + { 0x565F, 48829 }, + { 0x5662, 49983 }, + { 0x5663, 49085 }, + { 0x5664, 49988 }, + { 0x5665, 49090 }, + { 0x5666, 49993 }, + { 0x5667, 49095 }, + { 0x5668, 50261 }, + { 0x5669, 49367 }, + { 0x566A, 50256 }, + { 0x566B, 49362 }, + { 0x566C, 50126 }, + { 0x566D, 49228 }, + { 0x566E, 49417 }, + { 0x566F, 58020 }, + { 0x5670, 58004 }, + { 0x5671, 58160 }, + { 0x5672, 58180 }, + { 0x5673, 55523 }, + { 0x567C, 58023 }, + { 0x567D, 58170 }, + { 0x567E, 49407 }, + { 0x567F, 50301 }, + { 0x5680, 49783 }, + { 0x5681, 48885 }, + { 0x5682, 49914 }, + { 0x5683, 49016 }, + { 0x5684, 50036 }, + { 0x5685, 49138 }, + { 0x5686, 49906 }, + { 0x5687, 49008 }, + { 0x5688, 49918 }, + { 0x5689, 49020 }, + { 0x568A, 49694 }, + { 0x568B, 48796 }, + { 0x568C, 49872 }, + { 0x568D, 48974 }, + { 0x568E, 50015 }, + { 0x568F, 49117 }, + { 0x5690, 50011 }, + { 0x5691, 49113 }, + { 0x5692, 50003 }, + { 0x5693, 49105 }, + { 0x5694, 49832 }, + { 0x5695, 48934 }, + { 0x5696, 49979 }, + { 0x5697, 49081 }, + { 0x5700, 54739 }, + { 0x5701, 54763 }, + { 0x5702, 54745 }, + { 0x5703, 54769 }, + { 0x5704, 54727 }, + { 0x5705, 54751 }, + { 0x5706, 54733 }, + { 0x5707, 54757 }, + { 0x5708, 54839 }, + { 0x5709, 54039 }, + { 0x570A, 53996 }, + { 0x570B, 53952 }, + { 0x570C, 54808 }, + { 0x570D, 54845 }, + { 0x570E, 54045 }, + { 0x570F, 54002 }, + { 0x5710, 53958 }, + { 0x5711, 54814 }, + { 0x5712, 54852 }, + { 0x5713, 54052 }, + { 0x5714, 54009 }, + { 0x5715, 53980 }, + { 0x5716, 54821 }, + { 0x5717, 53884 }, + { 0x5718, 53880 }, + { 0x5719, 53889 }, + { 0x571A, 54106 }, + { 0x571B, 54571 }, + { 0x571C, 54576 }, + { 0x571D, 54591 }, + { 0x571E, 54585 }, + { 0x571F, 53969 }, + { 0x5720, 54606 }, + { 0x5721, 54600 }, + { 0x5722, 20769 }, + { 0x5723, 17878 }, + { 0x5724, 20764 }, + { 0x5725, 17873 }, + { 0x5726, 20552 }, + { 0x5727, 17317 }, + { 0x5728, 20503 }, + { 0x5729, 17173 }, + { 0x572A, 20735 }, + { 0x572B, 17844 }, + { 0x572C, 20739 }, + { 0x572D, 17848 }, + { 0x572E, 20743 }, + { 0x572F, 17852 }, + { 0x5730, 17974 }, + { 0x5731, 18048 }, + { 0x5732, 20422 }, + { 0x5733, 17038 }, + { 0x5734, 20442 }, + { 0x5735, 17058 }, + { 0x5736, 20446 }, + { 0x5737, 17062 }, + { 0x5738, 20450 }, + { 0x5739, 17066 }, + { 0x573A, 20454 }, + { 0x573B, 17070 }, + { 0x573C, 20461 }, + { 0x573D, 17077 }, + { 0x573E, 20719 }, + { 0x573F, 17758 }, + { 0x5740, 19120 }, + { 0x5741, 15472 }, + { 0x5742, 19141 }, + { 0x5743, 15500 }, + { 0x5744, 19126 }, + { 0x5745, 15478 }, + { 0x5746, 20644 }, + { 0x5747, 17505 }, + { 0x5748, 19180 }, + { 0x5749, 15551 }, + { 0x574A, 19451 }, + { 0x574B, 15876 }, + { 0x574C, 19459 }, + { 0x574D, 15884 }, + { 0x574E, 20495 }, + { 0x574F, 17142 }, + { 0x5750, 19688 }, + { 0x5751, 16113 }, + { 0x5752, 19696 }, + { 0x5753, 16128 }, + { 0x5754, 19702 }, + { 0x5755, 16134 }, + { 0x5756, 19713 }, + { 0x5757, 16158 }, + { 0x5758, 19721 }, + { 0x5759, 16166 }, + { 0x575A, 19806 }, + { 0x575B, 16287 }, + { 0x575C, 20542 }, + { 0x575D, 17287 }, + { 0x575E, 20210 }, + { 0x575F, 16771 }, + { 0x5760, 20507 }, + { 0x5761, 17185 }, + { 0x5762, 20749 }, + { 0x5763, 17858 }, + { 0x5764, 20630 }, + { 0x5765, 17480 }, + { 0x5766, 20636 }, + { 0x5767, 17486 }, + { 0x5768, 20585 }, + { 0x5769, 17421 }, + { 0x576A, 20475 }, + { 0x576B, 17108 }, + { 0x576C, 20479 }, + { 0x576D, 17116 }, + { 0x576E, 20511 }, + { 0x576F, 17189 }, + { 0x5770, 53877 }, + { 0x5771, 17193 }, + { 0x5772, 17267 }, + { 0x5773, 17271 }, + { 0x5774, 17275 }, + { 0x5775, 17283 }, + { 0x5776, 18108 }, + { 0x5777, 17298 }, + { 0x5778, 17181 }, + { 0x5779, 20685 }, + { 0x577A, 17713 }, + { 0x577B, 20690 }, + { 0x577C, 17718 }, + { 0x577D, 20695 }, + { 0x577E, 20669 }, + { 0x577F, 17676 }, + { 0x5780, 20654 }, + { 0x5781, 17585 }, + { 0x5782, 20700 }, + { 0x5783, 17728 }, + { 0x5784, 20705 }, + { 0x5785, 17733 }, + { 0x5786, 20710 }, + { 0x5787, 17738 }, + { 0x5788, 53986 }, + { 0x5789, 54095 }, + { 0x578A, 54131 }, + { 0x578B, 20731 }, + { 0x578C, 17800 }, + { 0x57FB, 20847 }, + { 0x57FC, 20852 }, + { 0x57FD, 20842 }, + { 0x57FE, 20832 }, + { 0x57FF, 20837 }, + { 0x5800, 36572 }, + { 0x5801, 36580 }, + { 0x5802, 36543 }, + { 0x5803, 36588 }, + { 0x5804, 36576 }, + { 0x5805, 36584 }, + { 0x5806, 36535 }, + { 0x5807, 36616 }, + { 0x5808, 36672 }, + { 0x5809, 36604 }, + { 0x580A, 36664 }, + { 0x580B, 36539 }, + { 0x580C, 36596 }, + { 0x580D, 36652 }, + { 0x580E, 36612 }, + { 0x580F, 36668 }, + { 0x5810, 36688 }, + { 0x5811, 36696 }, + { 0x5812, 36656 }, + { 0x5813, 36692 }, + { 0x5814, 36644 }, + { 0x5815, 36684 }, + { 0x5816, 36600 }, + { 0x5817, 36660 }, + { 0x5818, 36628 }, + { 0x5819, 36632 }, + { 0x581A, 36676 }, + { 0x581B, 36592 }, + { 0x581C, 36648 }, + { 0x581D, 36624 }, + { 0x581E, 36636 }, + { 0x581F, 36620 }, + { 0x5820, 36680 }, + { 0x5821, 36640 }, + { 0x5822, 36608 }, + { 0x5823, 36547 }, + { 0x5824, 36557 }, + { 0x5825, 36562 }, + { 0x5826, 36552 }, + { 0x5827, 36567 }, + { 0x5828, 36700 }, + { 0x5829, 36704 }, + { 0x582A, 36708 }, + { 0x582B, 36712 }, + { 0x5840, 55006 }, + { 0x5841, 55057 }, + { 0x5842, 54997 }, + { 0x5843, 55060 }, + { 0x5844, 54985 }, + { 0x5845, 55045 }, + { 0x5846, 55003 }, + { 0x5847, 55066 }, + { 0x5848, 55030 }, + { 0x5849, 55075 }, + { 0x584A, 54988 }, + { 0x584B, 55015 }, + { 0x584C, 55018 }, + { 0x584D, 55069 }, + { 0x584E, 54982 }, + { 0x584F, 55012 }, + { 0x5850, 55078 }, + { 0x5851, 55087 }, + { 0x5852, 55051 }, + { 0x5853, 55033 }, + { 0x5854, 55084 }, + { 0x5855, 55042 }, + { 0x5856, 55093 }, + { 0x5857, 55039 }, + { 0x5858, 55024 }, + { 0x5859, 55009 }, + { 0x585A, 55072 }, + { 0x585B, 55027 }, + { 0x585C, 55000 }, + { 0x585D, 54967 }, + { 0x585E, 54973 }, + { 0x585F, 54979 }, + { 0x5860, 54970 }, + { 0x5861, 54976 }, + { 0x5862, 55021 }, + { 0x5863, 55036 }, + { 0x5864, 54994 }, + { 0x5865, 55054 }, + { 0x5866, 54991 }, + { 0x5867, 55124 }, + { 0x5868, 55128 }, + { 0x5869, 55081 }, + { 0x586A, 55090 }, + { 0x586B, 55048 }, + { 0x586C, 55063 }, + { 0x586D, 55101 }, + { 0x586E, 55109 }, + { 0x586F, 55097 }, + { 0x5870, 55105 }, + { 0x5871, 55120 }, + { 0x5872, 55132 }, + { 0x5873, 55113 }, + { 0x5874, 55116 }, + { 0x5875, 54963 }, + { 0x5876, 54956 }, + { 0x5877, 54959 }, + { 0x5880, 68329 }, + { 0x5881, 68326 }, + { 0x5882, 68431 }, + { 0x5883, 68446 }, + { 0x5884, 68437 }, + { 0x5885, 68473 }, + { 0x5886, 68443 }, + { 0x5887, 68506 }, + { 0x5888, 68573 }, + { 0x5889, 68581 }, + { 0x588A, 68569 }, + { 0x588B, 68577 }, + { 0x588C, 68434 }, + { 0x588D, 68464 }, + { 0x588E, 68449 }, + { 0x588F, 68440 }, + { 0x5890, 68491 }, + { 0x5891, 68452 }, + { 0x5892, 68479 }, + { 0x5893, 68533 }, + { 0x5894, 68467 }, + { 0x5895, 68527 }, + { 0x5896, 68539 }, + { 0x5897, 68458 }, + { 0x5898, 68518 }, + { 0x5899, 68476 }, + { 0x589A, 68530 }, + { 0x589B, 68545 }, + { 0x589C, 68560 }, + { 0x589D, 68566 }, + { 0x589E, 68521 }, + { 0x589F, 68563 }, + { 0x58A0, 68542 }, + { 0x58A1, 68503 }, + { 0x58A2, 68557 }, + { 0x58A3, 68461 }, + { 0x58A4, 68524 }, + { 0x58A5, 68488 }, + { 0x58A6, 68494 }, + { 0x58A7, 68548 }, + { 0x58A8, 68455 }, + { 0x58A9, 68515 }, + { 0x58AA, 68485 }, + { 0x58AB, 68512 }, + { 0x58AC, 68497 }, + { 0x58AD, 68482 }, + { 0x58AE, 68509 }, + { 0x58AF, 68551 }, + { 0x58B0, 68554 }, + { 0x58B1, 68500 }, + { 0x58B2, 68470 }, + { 0x58B3, 68536 }, + { 0x58B4, 68585 }, + { 0x58B5, 68380 }, + { 0x58B6, 68368 }, + { 0x58B7, 68396 }, + { 0x58B8, 68376 }, + { 0x58B9, 68404 }, + { 0x58BA, 68413 }, + { 0x58BB, 68423 }, + { 0x58BC, 68408 }, + { 0x58BD, 68418 }, + { 0x58BE, 68364 }, + { 0x58BF, 68392 }, + { 0x58C0, 68384 }, + { 0x58C1, 68372 }, + { 0x58C2, 68400 }, + { 0x58C3, 68388 }, + { 0x58C4, 68323 }, + { 0x58CE, 68332 }, + { 0x58CF, 68428 }, + { 0x58D0, 68352 }, + { 0x58D1, 68334 }, + { 0x58D2, 68340 }, + { 0x58D3, 68361 }, + { 0x58D4, 68346 }, + { 0x58D5, 68343 }, + { 0x58D6, 68337 }, + { 0x58D7, 68358 }, + { 0x58D8, 68355 }, + { 0x58D9, 68349 }, + { 0x5900, 13773 }, + { 0x5901, 13749 }, + { 0x5902, 13757 }, + { 0x5903, 13785 }, + { 0x5904, 13765 }, + { 0x5905, 13761 }, + { 0x5906, 13753 }, + { 0x5907, 13781 }, + { 0x5908, 13777 }, + { 0x5909, 13769 }, + { 0x590A, 13837 }, + { 0x590B, 13897 }, + { 0x590C, 13829 }, + { 0x590D, 13901 }, + { 0x590E, 13869 }, + { 0x590F, 13913 }, + { 0x5910, 13889 }, + { 0x5911, 13905 }, + { 0x5912, 13873 }, + { 0x5913, 13893 }, + { 0x5914, 13849 }, + { 0x5915, 13861 }, + { 0x5916, 13909 }, + { 0x5917, 13845 }, + { 0x5918, 13825 }, + { 0x5919, 13817 }, + { 0x591A, 13865 }, + { 0x591B, 13885 }, + { 0x591C, 13841 }, + { 0x591D, 13881 }, + { 0x591E, 13917 }, + { 0x591F, 13833 }, + { 0x5920, 13877 }, + { 0x5921, 13821 }, + { 0x5922, 13809 }, + { 0x5923, 13853 }, + { 0x5924, 13813 }, + { 0x5925, 13857 }, + { 0x5926, 13805 }, + { 0x5927, 13789 }, + { 0x5928, 13797 }, + { 0x5929, 13801 }, + { 0x592A, 13793 }, + { 0x592B, 13745 }, + { 0x592C, 13736 }, + { 0x592D, 13740 }, + { 0x592E, 13728 }, + { 0x592F, 13732 }, + { 0x5930, 35728 }, + { 0x5931, 35719 }, + { 0x5932, 35764 }, + { 0x5933, 35749 }, + { 0x5934, 35716 }, + { 0x5935, 35737 }, + { 0x5936, 35740 }, + { 0x5937, 35710 }, + { 0x5938, 35734 }, + { 0x5939, 35713 }, + { 0x593A, 35725 }, + { 0x593B, 35767 }, + { 0x593C, 35746 }, + { 0x593D, 35743 }, + { 0x593E, 35731 }, + { 0x593F, 35755 }, + { 0x5940, 35752 }, + { 0x5941, 35722 }, + { 0x5942, 35758 }, + { 0x5943, 35770 }, + { 0x5944, 35761 }, + { 0x5945, 35773 }, + { 0x5946, 35707 }, + { 0x5947, 35679 }, + { 0x5948, 35687 }, + { 0x5949, 35675 }, + { 0x594A, 35691 }, + { 0x594B, 35683 }, + { 0x594C, 35695 }, + { 0x594D, 35703 }, + { 0x594E, 35699 }, + { 0x594F, 35793 }, + { 0x5950, 35785 }, + { 0x5951, 35789 }, + { 0x5952, 35781 }, + { 0x5953, 35776 }, + { 0x595F, 35778 }, + { 0x5A00, 8801 }, + { 0x5A01, 8807 }, + { 0x5A02, 8813 }, + { 0x5A03, 8804 }, + { 0x5A04, 8816 }, + { 0x5A05, 8810 }, + { 0x5A06, 8834 }, + { 0x5A07, 8885 }, + { 0x5A08, 8825 }, + { 0x5A09, 8879 }, + { 0x5A0A, 8915 }, + { 0x5A0B, 8891 }, + { 0x5A0C, 8870 }, + { 0x5A0D, 8912 }, + { 0x5A0E, 8831 }, + { 0x5A0F, 8882 }, + { 0x5A10, 8921 }, + { 0x5A11, 8894 }, + { 0x5A12, 8918 }, + { 0x5A13, 8855 }, + { 0x5A14, 8909 }, + { 0x5A15, 8822 }, + { 0x5A16, 8876 }, + { 0x5A17, 8897 }, + { 0x5A18, 8843 }, + { 0x5A19, 8873 }, + { 0x5A1A, 8846 }, + { 0x5A1B, 8903 }, + { 0x5A1C, 8900 }, + { 0x5A1D, 8819 }, + { 0x5A1E, 8867 }, + { 0x5A1F, 8888 }, + { 0x5A20, 8840 }, + { 0x5A21, 8864 }, + { 0x5A22, 8861 }, + { 0x5A23, 8849 }, + { 0x5A24, 8837 }, + { 0x5A25, 8858 }, + { 0x5A26, 8906 }, + { 0x5A27, 8852 }, + { 0x5A28, 8828 }, + { 0x5A29, 8773 }, + { 0x5A2A, 8761 }, + { 0x5A2B, 8789 }, + { 0x5A2C, 8785 }, + { 0x5A2D, 8769 }, + { 0x5A2E, 8793 }, + { 0x5A2F, 8765 }, + { 0x5A30, 8777 }, + { 0x5A31, 8781 }, + { 0x5A32, 8797 }, + { 0x5A33, 8980 }, + { 0x5A34, 8972 }, + { 0x5A35, 8968 }, + { 0x5A36, 8976 }, + { 0x5A40, 8928 }, + { 0x5A41, 8924 }, + { 0x5A42, 8960 }, + { 0x5A43, 8994 }, + { 0x5A44, 8956 }, + { 0x5A45, 8948 }, + { 0x5A46, 8936 }, + { 0x5A47, 8940 }, + { 0x5A48, 8952 }, + { 0x5A49, 8944 }, + { 0x5A4A, 8932 }, + { 0x5A4B, 8964 }, + { 0x5A4C, 8989 }, + { 0x5A4D, 8984 }, + { 0x5A50, 8749 }, + { 0x5A51, 8731 }, + { 0x5A52, 8737 }, + { 0x5A53, 8758 }, + { 0x5A54, 8743 }, + { 0x5A55, 8740 }, + { 0x5A56, 8734 }, + { 0x5A57, 8755 }, + { 0x5A58, 8752 }, + { 0x5A59, 8746 }, + { 0x5A5C, 9006 }, + { 0x5A5D, 8999 }, + { 0x5A5E, 9002 }, + { 0x5A5F, 9009 }, + { 0x6B00, 17897 }, + { 0x6B01, 17901 }, + { 0x6B02, 17905 }, + { 0x6B03, 17921 }, + { 0x6B04, 17925 }, + { 0x6B05, 17929 }, + { 0x6B06, 17917 }, + { 0x6B13, 44892 }, + { 0x6B14, 44882 }, + { 0x6B15, 44887 }, + { 0x6B16, 44902 }, + { 0x6B17, 44897 }, + { 0x6B1D, 33182 }, + { 0x6B1E, 32972 }, + { 0x6B1F, 33388 }, + { 0x6B20, 33370 }, + { 0x6B21, 33269 }, + { 0x6B22, 33277 }, + { 0x6B23, 33257 }, + { 0x6B24, 33261 }, + { 0x6B25, 33286 }, + { 0x6B26, 33281 }, + { 0x6B27, 33273 }, + { 0x6B28, 33265 }, + { 0x6B29, 33374 }, + { 0x6B2A, 33230 }, + { 0x6B2B, 33224 }, + { 0x6B2C, 33249 }, + { 0x6B2D, 33241 }, + { 0x6B2E, 33200 }, + { 0x6B2F, 33205 }, + { 0x6B30, 33195 }, + { 0x6B31, 33105 }, + { 0x6B32, 33333 }, + { 0x6B33, 33293 }, + { 0x6B34, 33079 }, + { 0x6B35, 33174 }, + { 0x6B36, 33357 }, + { 0x6B38, 33161 }, + { 0x6B39, 33187 }, + { 0x6B3A, 33312 }, + { 0x6B3B, 33121 }, + { 0x6B3C, 33341 }, + { 0x6B3E, 33129 }, + { 0x6B40, 33137 }, + { 0x6B41, 33365 }, + { 0x6B43, 33302 }, + { 0x6B44, 33092 }, + { 0x6B46, 33349 }, + { 0x6B47, 33145 }, + { 0x6B48, 33216 }, + { 0x6B49, 33236 }, + { 0x6B4A, 33153 }, + { 0x6B4B, 33169 }, + { 0x6B4C, 33100 }, + { 0x6B4D, 33116 }, + { 0x6B4E, 33087 }, + { 0x6B4F, 33379 }, + { 0x6B50, 25426 }, + { 0x6B51, 25420 }, + { 0x6B52, 25471 }, + { 0x6B53, 25456 }, + { 0x6B54, 25466 }, + { 0x6B55, 25461 }, + { 0x6B56, 24792 }, + { 0x6B57, 24777 }, + { 0x6B58, 24787 }, + { 0x6B59, 24782 }, + { 0x6B5A, 25928 }, + { 0x6B5B, 25913 }, + { 0x6B5C, 25923 }, + { 0x6B5D, 25918 }, + { 0x6B5E, 26308 }, + { 0x6B5F, 26293 }, + { 0x6B60, 26303 }, + { 0x6B61, 26298 }, + { 0x6B62, 26272 }, + { 0x6B63, 26257 }, + { 0x6B64, 26267 }, + { 0x6B65, 26262 }, + { 0x6B66, 25892 }, + { 0x6B67, 25877 }, + { 0x6B68, 25887 }, + { 0x6B69, 25882 }, + { 0x6B6A, 25071 }, + { 0x6B6B, 25056 }, + { 0x6B6C, 25066 }, + { 0x6B6D, 25061 }, + { 0x6B6E, 26164 }, + { 0x6B6F, 26149 }, + { 0x6B70, 26159 }, + { 0x6B71, 26154 }, + { 0x6B72, 25507 }, + { 0x6B73, 25492 }, + { 0x6B74, 25502 }, + { 0x6B75, 25497 }, + { 0x6B76, 25729 }, + { 0x6B77, 25714 }, + { 0x6B78, 25724 }, + { 0x6B79, 25719 }, + { 0x6B7A, 26249 }, + { 0x6B7B, 26234 }, + { 0x6B7C, 26244 }, + { 0x6B7D, 26239 }, + { 0x6B7E, 26393 }, + { 0x6B7F, 26378 }, + { 0x6B80, 26388 }, + { 0x6B81, 26383 }, + { 0x6B82, 26285 }, + { 0x6B83, 26280 }, + { 0x6B84, 25941 }, + { 0x6B85, 25936 }, + { 0x6B86, 24341 }, + { 0x6B87, 24336 }, + { 0x6B88, 25484 }, + { 0x6B89, 25479 }, + { 0x6B8A, 24667 }, + { 0x6B8B, 24662 }, + { 0x6B8C, 25742 }, + { 0x6B8D, 25737 }, + { 0x6B8E, 26118 }, + { 0x6B8F, 26103 }, + { 0x6B90, 26113 }, + { 0x6B91, 26108 }, + { 0x6B92, 24442 }, + { 0x6B93, 24427 }, + { 0x6B94, 24437 }, + { 0x6B95, 24432 }, + { 0x6B96, 25530 }, + { 0x6B97, 25515 }, + { 0x6B98, 25525 }, + { 0x6B99, 25520 }, + { 0x6B9A, 26141 }, + { 0x6B9B, 26126 }, + { 0x6B9C, 26136 }, + { 0x6B9D, 26131 }, + { 0x6B9E, 25690 }, + { 0x6B9F, 25684 }, + { 0x6BA0, 26187 }, + { 0x6BA1, 26172 }, + { 0x6BA2, 26182 }, + { 0x6BA3, 26177 }, + { 0x6BA4, 24597 }, + { 0x6BA5, 24589 }, + { 0x6BA6, 24577 }, + { 0x6BA7, 24559 }, + { 0x6BA8, 24571 }, + { 0x6BA9, 24565 }, + { 0x6BAA, 24653 }, + { 0x6BAB, 24635 }, + { 0x6BAC, 24647 }, + { 0x6BAD, 24641 }, + { 0x6BAE, 25266 }, + { 0x6BAF, 25260 }, + { 0x6BB0, 25231 }, + { 0x6BB1, 25222 }, + { 0x6BD3, 24046 }, + { 0x6BD4, 24031 }, + { 0x6BD5, 24041 }, + { 0x6BD6, 24036 }, + { 0x6BD7, 24020 }, + { 0x6BD8, 24015 }, + { 0x6BD9, 24059 }, + { 0x6BDA, 24054 }, + { 0x6BDB, 24085 }, + { 0x6BDC, 24080 }, + { 0x6BDD, 24007 }, + { 0x6BDE, 24072 }, + { 0x6BDF, 24067 }, + { 0x6BE0, 26353 }, + { 0x6BE1, 26347 }, + { 0x6BE2, 26369 }, + { 0x6BE3, 26363 }, + { 0x6BE4, 23993 }, + { 0x6BE5, 23978 }, + { 0x6BE6, 23988 }, + { 0x6BE7, 23983 }, + { 0x6BE8, 26322 }, + { 0x6BE9, 26313 }, + { 0x6BEA, 28622 }, + { 0x6BEB, 28590 }, + { 0x6BEC, 28450 }, + { 0x6BED, 28440 }, + { 0x6BEE, 28560 }, + { 0x6BEF, 28550 }, + { 0x6BF0, 28430 }, + { 0x6BF1, 28420 }, + { 0x6BF2, 28470 }, + { 0x6BF3, 28460 }, + { 0x6BF4, 28490 }, + { 0x6BF5, 28480 }, + { 0x6BF6, 28410 }, + { 0x6BF7, 28390 }, + { 0x6BF8, 28400 }, + { 0x6BF9, 30178 }, + { 0x6BFA, 30152 }, + { 0x6BFB, 30165 }, + { 0x6BFC, 26021 }, + { 0x6BFD, 26003 }, + { 0x6BFE, 26015 }, + { 0x6BFF, 26009 }, + { 0x6C00, 28642 }, + { 0x6C01, 28510 }, + { 0x6C02, 28692 }, + { 0x6C03, 28611 }, + { 0x6C04, 28580 }, + { 0x6C05, 26665 }, + { 0x6C06, 26600 }, + { 0x6C07, 26688 }, + { 0x6C08, 26716 }, + { 0x6C09, 26650 }, + { 0x6C0A, 26635 }, + { 0x6C0B, 28073 }, + { 0x6C0C, 27980 }, + { 0x6C0D, 28115 }, + { 0x6C0E, 28189 }, + { 0x6C0F, 28030 }, + { 0x6C10, 28015 }, + { 0x6C11, 29671 }, + { 0x6C12, 29699 }, + { 0x6C13, 29663 }, + { 0x6C14, 29648 }, + { 0x6C15, 28801 }, + { 0x6C16, 28882 }, + { 0x6C17, 27033 }, + { 0x6C18, 27066 }, + { 0x6C19, 28933 }, + { 0x6C1A, 28889 }, + { 0x6C1B, 28947 }, + { 0x6C1C, 29506 }, + { 0x6C1D, 29408 }, + { 0x6C1E, 29546 }, + { 0x6C1F, 29612 }, + { 0x6C20, 27755 }, + { 0x6C21, 27838 }, + { 0x6C22, 26821 }, + { 0x6C23, 26763 }, + { 0x6C24, 26853 }, + { 0x6C25, 26867 }, + { 0x6C26, 27852 }, + { 0x6C27, 27939 }, + { 0x6C28, 28736 }, + { 0x6C29, 26526 }, + { 0x6C2A, 26577 }, + { 0x6C2B, 29767 }, + { 0x6C2C, 29809 }, + { 0x6C2D, 26925 }, + { 0x6C2E, 26881 }, + { 0x6C2F, 26957 }, + { 0x6C30, 26980 }, + { 0x6C31, 26910 }, + { 0x6C32, 26895 }, + { 0x6C33, 27626 }, + { 0x6C34, 27706 }, + { 0x6C35, 27655 }, + { 0x6C36, 27640 }, + { 0x6C37, 27221 }, + { 0x6C38, 27235 }, + { 0x6C39, 27149 }, + { 0x6C3A, 27249 }, + { 0x6C3B, 27177 }, + { 0x6C3C, 27304 }, + { 0x6C3D, 27213 }, + { 0x6C3E, 27191 }, + { 0x6C3F, 27525 }, + { 0x6C40, 27355 }, + { 0x6C41, 27557 }, + { 0x6C42, 27612 }, + { 0x6C43, 27458 }, + { 0x6C44, 27376 }, + { 0x6C45, 29060 }, + { 0x6C46, 28988 }, + { 0x6C47, 29101 }, + { 0x6C48, 29131 }, + { 0x6C49, 29009 }, + { 0x6C4A, 28995 }, + { 0x6C4B, 29293 }, + { 0x6C4C, 29173 }, + { 0x6C4D, 29307 }, + { 0x6C4E, 29354 }, + { 0x6C4F, 29223 }, + { 0x6C50, 29208 }, + { 0x6C51, 27095 }, + { 0x6C52, 27127 }, + { 0x6C53, 27080 }, + { 0x6C54, 27073 }, + { 0x6C55, 28300 }, + { 0x6C56, 28226 }, + { 0x6C57, 28314 }, + { 0x6C58, 28369 }, + { 0x6C59, 28276 }, + { 0x6C5A, 28261 }, + { 0x6C5B, 29619 }, + { 0x6C5C, 27713 }, + { 0x6C5D, 28766 }, + { 0x6C5E, 30130 }, + { 0x6C5F, 30137 }, + { 0x6C60, 30109 }, + { 0x6C61, 30095 }, + { 0x6C62, 30123 }, + { 0x6C63, 30144 }, + { 0x6C64, 28540 }, + { 0x6C65, 28712 }, + { 0x6C66, 28662 }, + { 0x6C67, 28702 }, + { 0x6C68, 28600 }, + { 0x6C69, 28570 }, + { 0x6C6A, 26621 }, + { 0x6C6B, 26730 }, + { 0x6C6C, 26695 }, + { 0x6C6D, 26723 }, + { 0x6C6E, 26642 }, + { 0x6C6F, 26628 }, + { 0x6C70, 28001 }, + { 0x6C71, 28203 }, + { 0x6C72, 28168 }, + { 0x6C73, 28196 }, + { 0x6C74, 28022 }, + { 0x6C75, 28008 }, + { 0x6C76, 29634 }, + { 0x6C77, 29713 }, + { 0x6C78, 29678 }, + { 0x6C79, 29706 }, + { 0x6C7A, 29655 }, + { 0x6C7B, 29641 }, + { 0x6C7C, 26902 }, + { 0x6C7D, 26888 }, + { 0x6C7E, 27647 }, + { 0x6C7F, 27633 }, + { 0x6C80, 27198 }, + { 0x6C81, 27156 }, + { 0x6C82, 27283 }, + { 0x6C83, 27205 }, + { 0x6C84, 27184 }, + { 0x6C85, 27591 }, + { 0x6C86, 27450 }, + { 0x6C87, 27369 }, + { 0x6C88, 29002 }, + { 0x6C89, 29117 }, + { 0x6C8A, 29194 }, + { 0x6C8B, 29368 }, + { 0x6C8C, 29333 }, + { 0x6C8D, 29361 }, + { 0x6C8E, 29215 }, + { 0x6C8F, 29201 }, + { 0x6C90, 28757 }, + { 0x6C91, 28247 }, + { 0x6C92, 28383 }, + { 0x6C93, 28348 }, + { 0x6C94, 28376 }, + { 0x6C95, 28268 }, + { 0x6C96, 28254 }, + { 0x6C97, 28632 }, + { 0x6C98, 28500 }, + { 0x6C99, 28652 }, + { 0x6C9A, 28682 }, + { 0x6C9B, 28530 }, + { 0x6C9C, 26658 }, + { 0x6C9D, 26593 }, + { 0x6C9E, 26681 }, + { 0x6C9F, 26709 }, + { 0x6CA0, 26614 }, + { 0x6CA1, 28066 }, + { 0x6CA2, 27973 }, + { 0x6CA3, 28108 }, + { 0x6CA4, 28182 }, + { 0x6CA5, 27994 }, + { 0x6CA6, 29692 }, + { 0x6CA7, 28794 }, + { 0x6CA8, 28875 }, + { 0x6CA9, 27026 }, + { 0x6CAA, 27059 }, + { 0x6CAB, 28926 }, + { 0x6CAC, 28940 }, + { 0x6CAD, 29499 }, + { 0x6CAE, 29401 }, + { 0x6CAF, 29539 }, + { 0x6CB0, 29605 }, + { 0x6CB1, 27748 }, + { 0x6CB2, 27806 }, + { 0x6CB3, 27831 }, + { 0x6CB4, 26814 }, + { 0x6CB5, 26756 }, + { 0x6CB6, 26846 }, + { 0x6CB7, 26860 }, + { 0x6CB8, 27845 }, + { 0x6CB9, 28729 }, + { 0x6CBA, 26519 }, + { 0x6CBB, 26570 }, + { 0x6CBC, 29760 }, + { 0x6CBD, 29802 }, + { 0x6CBE, 26918 }, + { 0x6CBF, 26874 }, + { 0x6CC0, 26950 }, + { 0x6CC1, 26973 }, + { 0x6CC2, 27619 }, + { 0x6CC3, 27699 }, + { 0x6CC4, 27228 }, + { 0x6CC5, 27142 }, + { 0x6CC6, 27242 }, + { 0x6CC7, 27170 }, + { 0x6CC8, 27297 }, + { 0x6CC9, 27518 }, + { 0x6CCA, 27348 }, + { 0x6CCB, 27550 }, + { 0x6CCC, 27605 }, + { 0x6CCD, 27362 }, + { 0x6CCE, 29053 }, + { 0x6CCF, 28981 }, + { 0x6CD0, 29094 }, + { 0x6CD1, 29124 }, + { 0x6CD2, 29286 }, + { 0x6CD3, 29166 }, + { 0x6CD4, 29300 }, + { 0x6CD5, 29347 }, + { 0x6CD6, 29187 }, + { 0x6CD7, 27088 }, + { 0x6CD8, 27120 }, + { 0x6CD9, 27134 }, + { 0x6CDA, 28293 }, + { 0x6CDB, 28219 }, + { 0x6CDC, 28307 }, + { 0x6CDD, 28362 }, + { 0x6CDE, 28240 }, + { 0x6CDF, 28672 }, + { 0x6CE0, 28520 }, + { 0x6CE1, 26702 }, + { 0x6CE2, 26607 }, + { 0x6CE3, 28175 }, + { 0x6CE4, 27987 }, + { 0x6CE5, 29685 }, + { 0x6CE6, 29627 }, + { 0x6CE7, 29598 }, + { 0x6CE8, 29415 }, + { 0x6CE9, 30057 }, + { 0x6CEA, 29891 }, + { 0x6CEB, 27163 }, + { 0x6CEC, 27290 }, + { 0x6CED, 27598 }, + { 0x6CEE, 29340 }, + { 0x6CEF, 29180 }, + { 0x6CF0, 28355 }, + { 0x6CF1, 28233 }, + { 0x6CF2, 30102 }, + { 0x6CF3, 30088 }, + { 0x6CF4, 30116 }, + { 0x6CF5, 27881 }, + { 0x6CF6, 27866 }, + { 0x6CF7, 26493 }, + { 0x6CF8, 26478 }, + { 0x6CF9, 29752 }, + { 0x6CFA, 29737 }, + { 0x6CFB, 29465 }, + { 0x6CFC, 29450 }, + { 0x6CFD, 29941 }, + { 0x6CFE, 29926 }, + { 0x6CFF, 27009 }, + { 0x6D00, 26994 }, + { 0x6D01, 28830 }, + { 0x6D02, 28815 }, + { 0x6D03, 28918 }, + { 0x6D04, 28903 }, + { 0x6D05, 27798 }, + { 0x6D06, 27783 }, + { 0x6D07, 26806 }, + { 0x6D08, 26791 }, + { 0x6D09, 29979 }, + { 0x6D0A, 29884 }, + { 0x6D0B, 30007 }, + { 0x6D0C, 30071 }, + { 0x6D0D, 29912 }, + { 0x6D0E, 29436 }, + { 0x6D0F, 27769 }, + { 0x6D10, 26777 }, + { 0x6D11, 27873 }, + { 0x6D12, 27859 }, + { 0x6D13, 26485 }, + { 0x6D14, 26471 }, + { 0x6D15, 29744 }, + { 0x6D16, 29730 }, + { 0x6D17, 29457 }, + { 0x6D18, 29443 }, + { 0x6D19, 29933 }, + { 0x6D1A, 29919 }, + { 0x6D1B, 27001 }, + { 0x6D1C, 26987 }, + { 0x6D1D, 28822 }, + { 0x6D1E, 28808 }, + { 0x6D1F, 28910 }, + { 0x6D20, 28896 }, + { 0x6D21, 27790 }, + { 0x6D22, 27776 }, + { 0x6D23, 26798 }, + { 0x6D24, 26784 }, + { 0x6D25, 29958 }, + { 0x6D26, 29863 }, + { 0x6D27, 29986 }, + { 0x6D28, 30050 }, + { 0x6D29, 29905 }, + { 0x6D2A, 29429 }, + { 0x6D2B, 27762 }, + { 0x6D2C, 26770 }, + { 0x6D2D, 29972 }, + { 0x6D2E, 29877 }, + { 0x6D2F, 30000 }, + { 0x6D30, 30064 }, + { 0x6D31, 29422 }, + { 0x6D32, 29898 }, + { 0x6D33, 27932 }, + { 0x6D34, 29492 }, + { 0x6D35, 29394 }, + { 0x6D36, 29532 }, + { 0x6D37, 29965 }, + { 0x6D38, 29870 }, + { 0x6D39, 29993 }, + { 0x6D3A, 27925 }, + { 0x6D3B, 28722 }, + { 0x6D3C, 28743 }, + { 0x6D3D, 28750 }, + { 0x6D3E, 35643 }, + { 0x6D3F, 35646 }, + { 0x6D50, 28057 }, + { 0x6D51, 27946 }, + { 0x6D52, 27955 }, + { 0x6D53, 27964 }, + { 0x6D54, 28099 }, + { 0x6D55, 28150 }, + { 0x6D56, 28122 }, + { 0x6D57, 28159 }, + { 0x6D58, 28838 }, + { 0x6D59, 28847 }, + { 0x6D5A, 27040 }, + { 0x6D5B, 27049 }, + { 0x6D5C, 29385 }, + { 0x6D5D, 29473 }, + { 0x6D5E, 29482 }, + { 0x6D5F, 29553 }, + { 0x6D60, 29562 }, + { 0x6D61, 29571 }, + { 0x6D62, 29580 }, + { 0x6D63, 29589 }, + { 0x6D64, 27721 }, + { 0x6D65, 27730 }, + { 0x6D66, 27813 }, + { 0x6D67, 29845 }, + { 0x6D68, 29854 }, + { 0x6D69, 29949 }, + { 0x6D6A, 30014 }, + { 0x6D6B, 30023 }, + { 0x6D6C, 30032 }, + { 0x6D6D, 30041 }, + { 0x6D6E, 26746 }, + { 0x6D6F, 26828 }, + { 0x6D70, 26837 }, + { 0x6D71, 27889 }, + { 0x6D72, 27898 }, + { 0x6D73, 27916 }, + { 0x6D74, 27907 }, + { 0x6D75, 26501 }, + { 0x6D76, 26552 }, + { 0x6D77, 26561 }, + { 0x6D78, 26542 }, + { 0x6D79, 29793 }, + { 0x6D7A, 29774 }, + { 0x6D7B, 29783 }, + { 0x6D7C, 26932 }, + { 0x6D7D, 26941 }, + { 0x6D7E, 27663 }, + { 0x6D7F, 27690 }, + { 0x6D80, 27330 }, + { 0x6D81, 27311 }, + { 0x6D82, 27320 }, + { 0x6D83, 27491 }, + { 0x6D84, 27482 }, + { 0x6D85, 27532 }, + { 0x6D86, 27541 }, + { 0x6D87, 27564 }, + { 0x6D88, 27573 }, + { 0x6D89, 28963 }, + { 0x6D8A, 28972 }, + { 0x6D8B, 28954 }, + { 0x6D8C, 29017 }, + { 0x6D8D, 29044 }, + { 0x6D8E, 29076 }, + { 0x6D8F, 29085 }, + { 0x6D92, 29035 }, + { 0x6D93, 27102 }, + { 0x6D94, 27111 }, + { 0x6D95, 29157 }, + { 0x6D96, 29147 }, + { 0x6D97, 29268 }, + { 0x6D98, 29277 }, + { 0x6D99, 29258 }, + { 0x6D9A, 29314 }, + { 0x6D9B, 29323 }, + { 0x6D9C, 28330 }, + { 0x6D9D, 28339 }, + { 0x6D9E, 26672 }, + { 0x6D9F, 28038 }, + { 0x6DA0, 28047 }, + { 0x6DA1, 28080 }, + { 0x6DA2, 28089 }, + { 0x6DA3, 28131 }, + { 0x6DA4, 28140 }, + { 0x6DA5, 28856 }, + { 0x6DA6, 28784 }, + { 0x6DA7, 28865 }, + { 0x6DA8, 29522 }, + { 0x6DA9, 27739 }, + { 0x6DAA, 29836 }, + { 0x6DAB, 26737 }, + { 0x6DAC, 27473 }, + { 0x6DAD, 27582 }, + { 0x6DAE, 28210 }, + { 0x6DAF, 28284 }, + { 0x6DB0, 28321 }, + { 0x6DB1, 29108 }, + { 0x6DB2, 27681 }, + { 0x6DB3, 29138 }, + { 0x6DB4, 27672 }, + { 0x6DB5, 27339 }, + { 0x6DB6, 26533 }, + { 0x6DB7, 27256 }, + { 0x6DB8, 29240 }, + { 0x6DB9, 29067 }, + { 0x6DBA, 27509 }, + { 0x6DBB, 27265 }, + { 0x6DBC, 27500 }, + { 0x6DBD, 29231 }, + { 0x6DBE, 28775 }, + { 0x6DBF, 27017 }, + { 0x6DC0, 29026 }, + { 0x6DC1, 26964 }, + { 0x6DC2, 26584 }, + { 0x6DC3, 27274 }, + { 0x6DC4, 26510 }, + { 0x6DC5, 27822 }, + { 0x6DC6, 29513 }, + { 0x6DC7, 29249 }, + { 0x6DF0, 29821 }, + { 0x6DF1, 29375 }, + { 0x6DF2, 29725 }, + { 0x6DF3, 29720 }, + { 0x6DF4, 30191 }, + { 0x6DF5, 29816 }, + { 0x6DF6, 30083 }, + { 0x6DF7, 30078 }, + { 0x6DF8, 30196 }, + { 0x6DF9, 29831 }, + { 0x6DFA, 30206 }, + { 0x6DFB, 30211 }, + { 0x6DFC, 9693 }, + { 0x6DFD, 30201 }, + { 0x6E00, 66314 }, + { 0x6E01, 66316 }, + { 0x6E02, 66318 }, + { 0x6E03, 66320 }, + { 0x6E04, 66322 }, + { 0x6E05, 66324 }, + { 0x6E06, 66326 }, + { 0x6E07, 66328 }, + { 0x6E08, 66330 }, + { 0x6E09, 66332 }, + { 0x6E0A, 66334 }, + { 0x6E0B, 66336 }, + { 0x6E0C, 66338 }, + { 0x6E0D, 66340 }, + { 0x6E0E, 66342 }, + { 0x6E0F, 66344 }, + { 0x6E10, 74355 }, + { 0x6E11, 74464 }, + { 0x6E12, 74457 }, + { 0x6E13, 74350 }, + { 0x6E14, 74440 }, + { 0x6E15, 74451 }, + { 0x6E16, 74434 }, + { 0x6E17, 74299 }, + { 0x6E18, 74390 }, + { 0x6E19, 74445 }, + { 0x6E20, 58207 }, + { 0x6E21, 58211 }, + { 0x6E22, 57894 }, + { 0x6E23, 57899 }, + { 0x6E24, 57948 }, + { 0x6E25, 57955 }, + { 0x6E26, 58290 }, + { 0x6E30, 74262 }, + { 0x6E31, 74244 }, + { 0x6E32, 74250 }, + { 0x6E33, 74256 }, + { 0x6E34, 74343 }, + { 0x6E35, 74337 }, + { 0x6E36, 74428 }, + { 0x6E37, 74284 }, + { 0x6E38, 74375 }, + { 0x6E39, 74329 }, + { 0x6E3A, 74420 }, + { 0x6E3B, 74276 }, + { 0x6E3C, 74367 }, + { 0x6E3D, 74314 }, + { 0x6E3E, 74405 }, + { 0x6E3F, 74269 }, + { 0x6E40, 74360 }, + { 0x6E41, 74307 }, + { 0x6E42, 74398 }, + { 0x6E43, 74291 }, + { 0x6E44, 74382 }, + { 0x6E45, 35852 }, + { 0x6E46, 23293 }, + { 0x6E47, 74322 }, + { 0x6E48, 74413 }, + { 0x6E49, 31173 }, + { 0x6E4A, 66833 }, + { 0x6E4B, 10082 }, + { 0x6E4C, 31561 }, + { 0x6E4D, 31170 }, + { 0x6E4E, 66830 }, + { 0x6E4F, 10075 }, + { 0x6E50, 22507 }, + { 0x6E51, 22660 }, + { 0x6E52, 22487 }, + { 0x6E54, 22652 }, + { 0x6E55, 22505 }, + { 0x6E56, 22644 }, + { 0x6E57, 22657 }, + { 0x6E58, 22480 }, + { 0x6E59, 22499 }, + { 0x6E5A, 22518 }, + { 0x6E5B, 22490 }, + { 0x6E5C, 22509 }, + { 0x6E5D, 22494 }, + { 0x6E5E, 22513 }, + { 0x6E5F, 22596 }, + { 0x6E60, 22647 }, + { 0x6E61, 22624 }, + { 0x6E62, 22502 }, + { 0x6E63, 22666 }, + { 0x6E64, 22649 }, + { 0x6E65, 22663 }, + { 0x6E66, 22593 }, + { 0x6E68, 22621 }, + { 0x6E69, 22590 }, + { 0x6E6A, 22618 }, + { 0x6E6B, 22654 }, + { 0x6E70, 26455 }, + { 0x6E71, 26442 }, + { 0x6E72, 26449 }, + { 0x6E73, 23761 }, + { 0x6E74, 26467 }, + { 0x6E76, 23797 }, + { 0x6E77, 23793 }, + { 0x6E78, 23772 }, + { 0x6E79, 23768 }, + { 0x6E7A, 23813 }, + { 0x6E7B, 23809 }, + { 0x6E7C, 26418 }, + { 0x6E7D, 26414 }, + { 0x6E7E, 23953 }, + { 0x6E7F, 23949 }, + { 0x6E80, 26059 }, + { 0x6E81, 25385 }, + { 0x6E82, 25377 }, + { 0x6E83, 25341 }, + { 0x6E84, 25333 }, + { 0x6E85, 25111 }, + { 0x6E86, 25103 }, + { 0x6E87, 25363 }, + { 0x6E88, 25355 }, + { 0x6E89, 25185 }, + { 0x6E8A, 25161 }, + { 0x6E8B, 25177 }, + { 0x6E8C, 25169 }, + { 0x6E8D, 25448 }, + { 0x6E8E, 25411 }, + { 0x6E8F, 24226 }, + { 0x6E90, 24211 }, + { 0x6E91, 24221 }, + { 0x6E92, 24216 }, + { 0x6E93, 25042 }, + { 0x6E94, 25036 }, + { 0x6E95, 25048 }, + { 0x6E96, 25012 }, + { 0x6E97, 25022 }, + { 0x6E98, 25017 }, + { 0x6E99, 25869 }, + { 0x6E9A, 25854 }, + { 0x6E9B, 25864 }, + { 0x6E9C, 25859 }, + { 0x6E9D, 25572 }, + { 0x6E9E, 25557 }, + { 0x6E9F, 25567 }, + { 0x6EA0, 25562 }, + { 0x6EA1, 24540 }, + { 0x6EA2, 24525 }, + { 0x6EA3, 24535 }, + { 0x6EA4, 24530 }, + { 0x6EA5, 25595 }, + { 0x6EA6, 25580 }, + { 0x6EA7, 25590 }, + { 0x6EA8, 25585 }, + { 0x6EA9, 24328 }, + { 0x6EAA, 24323 }, + { 0x6EAB, 25846 }, + { 0x6EAC, 25841 }, + { 0x6EAD, 24924 }, + { 0x6EAE, 24919 }, + { 0x6EAF, 25905 }, + { 0x6EB0, 25900 }, + { 0x6EB1, 25833 }, + { 0x6EB2, 25818 }, + { 0x6EB3, 25828 }, + { 0x6EB4, 25823 }, + { 0x6EB5, 26216 }, + { 0x6EB6, 26201 }, + { 0x6EB7, 26211 }, + { 0x6EB8, 26206 }, + { 0x6EB9, 24961 }, + { 0x6EBA, 24946 }, + { 0x6EBB, 24956 }, + { 0x6EBC, 24951 }, + { 0x6EBD, 24255 }, + { 0x6EBE, 24240 }, + { 0x6EBF, 24250 }, + { 0x6EC0, 24245 }, + { 0x6EC1, 24991 }, + { 0x6EC2, 24976 }, + { 0x6EC3, 24986 }, + { 0x6EC4, 24981 }, + { 0x6EC5, 25305 }, + { 0x6EC6, 25290 }, + { 0x6EC7, 25300 }, + { 0x6EC8, 25295 }, + { 0x6EC9, 24139 }, + { 0x6ECA, 24124 }, + { 0x6ECB, 24134 }, + { 0x6ECC, 24129 }, + { 0x6ECD, 26051 }, + { 0x6ECE, 26036 }, + { 0x6ECF, 26046 }, + { 0x6ED0, 26041 }, + { 0x6ED1, 24400 }, + { 0x6ED2, 24385 }, + { 0x6ED3, 24395 }, + { 0x6ED4, 24390 }, + { 0x6ED5, 24828 }, + { 0x6ED6, 24813 }, + { 0x6ED7, 24823 }, + { 0x6ED8, 24818 }, + { 0x6ED9, 24715 }, + { 0x6EDA, 24700 }, + { 0x6EDB, 24710 }, + { 0x6EDC, 24705 }, + { 0x6EDD, 24769 }, + { 0x6EDE, 24754 }, + { 0x6EDF, 24764 }, + { 0x6EE0, 24759 }, + { 0x6EE1, 25630 }, + { 0x6EE2, 25615 }, + { 0x6EE3, 25625 }, + { 0x6EE4, 25620 }, + { 0x6EE5, 25706 }, + { 0x6EE6, 25675 }, + { 0x6EE7, 25701 }, + { 0x6EE8, 25696 }, + { 0x6EE9, 24626 }, + { 0x6EEA, 24611 }, + { 0x6EEB, 24621 }, + { 0x6EEC, 24616 }, + { 0x6EED, 25142 }, + { 0x6EEE, 25137 }, + { 0x6EEF, 25442 }, + { 0x6EF0, 25436 }, + { 0x6EF1, 25282 }, + { 0x6EF2, 25206 }, + { 0x6EF3, 25277 }, + { 0x6EF4, 25272 }, + { 0x6EF5, 27433 }, + { 0x6EF6, 27423 }, + { 0x6EF7, 27393 }, + { 0x6EF8, 27383 }, + { 0x6EF9, 27413 }, + { 0x6EFA, 27403 }, + { 0x6EFB, 27466 }, + { 0x6EFC, 27443 }, + { 0x6EFF, 10095 }, + { 0x6F01, 63786 }, + { 0x6F02, 63773 }, + { 0x6F03, 63749 }, + { 0x6F04, 63741 }, + { 0x6F05, 63752 }, + { 0x6F06, 63768 }, + { 0x6F07, 63778 }, + { 0x6F08, 63415 }, + { 0x6F09, 63733 }, + { 0x6F0A, 63760 }, + { 0x6F0B, 63418 }, + { 0x6F0C, 63423 }, + { 0x6F0D, 63792 }, + { 0x6F0E, 63400 }, + { 0x6F0F, 63758 }, + { 0x6F10, 63443 }, + { 0x6F11, 63425 }, + { 0x6F12, 63431 }, + { 0x6F13, 63452 }, + { 0x6F14, 63437 }, + { 0x6F15, 63434 }, + { 0x6F16, 63428 }, + { 0x6F17, 63449 }, + { 0x6F18, 63446 }, + { 0x6F19, 63440 }, + { 0x6F1A, 63421 }, + { 0x6F1B, 63776 }, + { 0x6F1C, 63770 }, + { 0x6F1D, 63744 }, + { 0x6F1E, 63789 }, + { 0x6F1F, 63762 }, + { 0x6F20, 63783 }, + { 0x6F21, 63588 }, + { 0x6F22, 63593 }, + { 0x6F23, 63598 }, + { 0x6F24, 63603 }, + { 0x6F25, 63608 }, + { 0x6F26, 63613 }, + { 0x6F27, 63618 }, + { 0x6F28, 63623 }, + { 0x6F29, 63628 }, + { 0x6F2A, 63633 }, + { 0x6F2B, 63638 }, + { 0x6F2C, 63643 }, + { 0x6F2D, 63648 }, + { 0x6F2E, 63653 }, + { 0x6F2F, 63658 }, + { 0x6F30, 63663 }, + { 0x6F31, 63668 }, + { 0x6F32, 63673 }, + { 0x6F33, 63678 }, + { 0x6F34, 63683 }, + { 0x6F35, 63688 }, + { 0x6F36, 63693 }, + { 0x6F37, 63698 }, + { 0x6F38, 63703 }, + { 0x6F39, 63708 }, + { 0x6F3A, 63713 }, + { 0x6F3B, 63411 }, + { 0x6F3C, 63755 }, + { 0x6F3D, 63729 }, + { 0x6F3E, 63780 }, + { 0x6F3F, 63385 }, + { 0x6F40, 63455 }, + { 0x6F41, 63458 }, + { 0x6F42, 63463 }, + { 0x6F43, 63468 }, + { 0x6F44, 63473 }, + { 0x6F45, 63478 }, + { 0x6F46, 63483 }, + { 0x6F47, 63488 }, + { 0x6F48, 63493 }, + { 0x6F49, 63498 }, + { 0x6F4A, 63503 }, + { 0x6F4B, 63508 }, + { 0x6F4C, 63513 }, + { 0x6F4D, 63518 }, + { 0x6F4E, 63523 }, + { 0x6F4F, 63528 }, + { 0x6F50, 63533 }, + { 0x6F51, 63538 }, + { 0x6F52, 63543 }, + { 0x6F53, 63548 }, + { 0x6F54, 63553 }, + { 0x6F55, 63558 }, + { 0x6F56, 63563 }, + { 0x6F57, 63568 }, + { 0x6F58, 63573 }, + { 0x6F59, 63578 }, + { 0x6F5A, 63583 }, + { 0x6F5B, 63403 }, + { 0x6F5C, 63765 }, + { 0x6F5D, 63721 }, + { 0x6F5E, 63736 }, + { 0x6F5F, 63407 }, + { 0x6F60, 63725 }, + { 0x6F61, 64276 }, + { 0x6F62, 63796 }, + { 0x6F63, 63807 }, + { 0x6F64, 64280 }, + { 0x6F65, 64253 }, + { 0x6F66, 64192 }, + { 0x6F67, 64208 }, + { 0x6F68, 64218 }, + { 0x6F69, 64228 }, + { 0x6F6A, 64213 }, + { 0x6F6B, 64223 }, + { 0x6F6C, 64238 }, + { 0x6F6D, 64248 }, + { 0x6F6E, 64243 }, + { 0x6F6F, 64233 }, + { 0x6F70, 64283 }, + { 0x6F71, 64024 }, + { 0x6F72, 64032 }, + { 0x6F73, 64044 }, + { 0x6F74, 64028 }, + { 0x6F75, 64040 }, + { 0x6F76, 64068 }, + { 0x6F77, 64076 }, + { 0x6F78, 64084 }, + { 0x6F79, 64072 }, + { 0x6F7A, 64080 }, + { 0x6F7B, 64148 }, + { 0x6F7C, 64156 }, + { 0x6F7D, 64164 }, + { 0x6F7E, 64152 }, + { 0x6F7F, 64160 }, + { 0x6F80, 64168 }, + { 0x6F81, 64176 }, + { 0x6F82, 64184 }, + { 0x6F83, 64172 }, + { 0x6F84, 64180 }, + { 0x6F85, 64108 }, + { 0x6F86, 64116 }, + { 0x6F87, 64124 }, + { 0x6F88, 64112 }, + { 0x6F89, 64120 }, + { 0x6F8A, 64048 }, + { 0x6F8B, 64056 }, + { 0x6F8C, 64064 }, + { 0x6F8D, 64052 }, + { 0x6F8E, 64060 }, + { 0x6F8F, 64088 }, + { 0x6F90, 64096 }, + { 0x6F91, 64104 }, + { 0x6F92, 64092 }, + { 0x6F93, 64100 }, + { 0x6F94, 64196 }, + { 0x6F95, 64204 }, + { 0x6F96, 64200 }, + { 0x6F97, 64128 }, + { 0x6F98, 64136 }, + { 0x6F99, 64144 }, + { 0x6F9A, 64132 }, + { 0x6F9B, 64140 }, + { 0x6F9C, 64188 }, + { 0x6F9D, 64036 }, + { 0x6F9E, 64257 }, + { 0x6F9F, 64262 }, + { 0x6FA0, 63814 }, + { 0x6FA1, 63933 }, + { 0x6FA2, 64001 }, + { 0x6FA3, 63977 }, + { 0x6FA4, 63921 }, + { 0x6FA5, 63981 }, + { 0x6FA6, 63985 }, + { 0x6FA7, 63937 }, + { 0x6FA8, 64005 }, + { 0x6FA9, 63929 }, + { 0x6FAA, 64009 }, + { 0x6FAB, 63993 }, + { 0x6FAC, 63997 }, + { 0x6FAD, 63965 }, + { 0x6FAE, 64017 }, + { 0x6FAF, 64013 }, + { 0x6FB0, 63989 }, + { 0x6FB1, 63917 }, + { 0x6FB2, 63925 }, + { 0x6FB3, 63973 }, + { 0x6FB4, 63961 }, + { 0x6FB5, 63901 }, + { 0x6FB6, 63957 }, + { 0x6FB7, 63913 }, + { 0x6FB8, 63905 }, + { 0x6FB9, 63969 }, + { 0x6FBA, 63941 }, + { 0x6FBB, 63945 }, + { 0x6FBC, 63953 }, + { 0x6FBD, 63949 }, + { 0x6FBE, 63909 }, + { 0x6FC2, 63817 }, + { 0x6FC3, 63837 }, + { 0x6FC4, 63865 }, + { 0x6FC5, 63893 }, + { 0x6FC6, 63841 }, + { 0x6FC7, 63821 }, + { 0x6FCA, 63897 }, + { 0x6FCB, 63869 }, + { 0x6FCC, 63829 }, + { 0x6FCD, 63853 }, + { 0x6FCE, 63885 }, + { 0x6FCF, 63849 }, + { 0x6FD2, 63877 }, + { 0x6FD3, 63833 }, + { 0x6FD4, 63889 }, + { 0x6FD5, 63857 }, + { 0x6FD6, 63861 }, + { 0x6FD7, 63881 }, + { 0x6FDA, 63845 }, + { 0x6FDB, 63873 }, + { 0x6FDC, 63825 }, + { 0x6FE0, 63397 }, + { 0x6FE1, 63718 }, + { 0x6FE2, 63388 }, + { 0x6FE3, 63747 }, + { 0x6FE4, 63738 }, + { 0x6FE5, 63394 }, + { 0x6FE6, 63391 }, + { 0x6FE8, 63803 }, + { 0x6FE9, 64270 }, + { 0x6FEA, 64021 }, + { 0x6FEB, 64273 }, + { 0x6FEC, 64267 }, + { 0x6FED, 63800 }, + { 0x6FEE, 63811 }, + { 0x6FF9, 69249 }, + { 0x6FFA, 69252 }, + { 0x6FFB, 69255 }, + { 0x6FFC, 35637 }, + { 0x6FFD, 69276 }, + { 0x7000, 35010 }, + { 0x7001, 35135 }, + { 0x7002, 35095 }, + { 0x7003, 35235 }, + { 0x7004, 35020 }, + { 0x7005, 34975 }, + { 0x7006, 35170 }, + { 0x7007, 35005 }, + { 0x7008, 35040 }, + { 0x7009, 35190 }, + { 0x700A, 35215 }, + { 0x700B, 35175 }, + { 0x700D, 35125 }, + { 0x700E, 35245 }, + { 0x700F, 35305 }, + { 0x7010, 35165 }, + { 0x7011, 35255 }, + { 0x7012, 35270 }, + { 0x7013, 35320 }, + { 0x7014, 35315 }, + { 0x7015, 35035 }, + { 0x7016, 35285 }, + { 0x7017, 35045 }, + { 0x7018, 35070 }, + { 0x7019, 35000 }, + { 0x701A, 35075 }, + { 0x701B, 35105 }, + { 0x701C, 35195 }, + { 0x701D, 35210 }, + { 0x701E, 34985 }, + { 0x701F, 35280 }, + { 0x7020, 35140 }, + { 0x7021, 35025 }, + { 0x7022, 35185 }, + { 0x7023, 35050 }, + { 0x7024, 35310 }, + { 0x7025, 35065 }, + { 0x7026, 35115 }, + { 0x7028, 35230 }, + { 0x7029, 35090 }, + { 0x702A, 35200 }, + { 0x702B, 34980 }, + { 0x702C, 35085 }, + { 0x702D, 35110 }, + { 0x702E, 35015 }, + { 0x702F, 35150 }, + { 0x7030, 35030 }, + { 0x7031, 35220 }, + { 0x7032, 35225 }, + { 0x7033, 34990 }, + { 0x7034, 35130 }, + { 0x7035, 34995 }, + { 0x7036, 35265 }, + { 0x7037, 35205 }, + { 0x7038, 35295 }, + { 0x7039, 35145 }, + { 0x703A, 35155 }, + { 0x703C, 35055 }, + { 0x703D, 35290 }, + { 0x703F, 35060 }, + { 0x7040, 35080 }, + { 0x7041, 35160 }, + { 0x7042, 35325 }, + { 0x7043, 35275 }, + { 0x7044, 35335 }, + { 0x7045, 35180 }, + { 0x7046, 35100 }, + { 0x7047, 35240 }, + { 0x7048, 35300 }, + { 0x7049, 35120 }, + { 0x704A, 35260 }, + { 0x704B, 35250 }, + { 0x704C, 35330 }, + { 0x704D, 35340 }, + { 0x7050, 34349 }, + { 0x7051, 34353 }, + { 0x7052, 34357 }, + { 0x7053, 34361 }, + { 0x7054, 34365 }, + { 0x7055, 34369 }, + { 0x7056, 34373 }, + { 0x7057, 34377 }, + { 0x7058, 34381 }, + { 0x7059, 34385 }, + { 0x705A, 34389 }, + { 0x705B, 34393 }, + { 0x705C, 34397 }, + { 0x705D, 34401 }, + { 0x7080, 34405 }, + { 0x7081, 34410 }, + { 0x7082, 34415 }, + { 0x7083, 34420 }, + { 0x7084, 34750 }, + { 0x7085, 34755 }, + { 0x7086, 34760 }, + { 0x7087, 34765 }, + { 0x7088, 34770 }, + { 0x7089, 34775 }, + { 0x708A, 34780 }, + { 0x708B, 34785 }, + { 0x708C, 34790 }, + { 0x708D, 34795 }, + { 0x708E, 34425 }, + { 0x708F, 34430 }, + { 0x7090, 34435 }, + { 0x7091, 34440 }, + { 0x7092, 34445 }, + { 0x7093, 34945 }, + { 0x7094, 34950 }, + { 0x7095, 34450 }, + { 0x7096, 34455 }, + { 0x7097, 34460 }, + { 0x7098, 34955 }, + { 0x7099, 34960 }, + { 0x709A, 34464 }, + { 0x709B, 34469 }, + { 0x709C, 34474 }, + { 0x709D, 34478 }, + { 0x709E, 34483 }, + { 0x709F, 34487 }, + { 0x70A0, 34491 }, + { 0x70A1, 34496 }, + { 0x70A2, 34500 }, + { 0x70A3, 34504 }, + { 0x70A4, 34965 }, + { 0x70A5, 34508 }, + { 0x70A6, 34512 }, + { 0x70A7, 34516 }, + { 0x70A8, 34521 }, + { 0x70A9, 34525 }, + { 0x70AA, 34529 }, + { 0x70AB, 34534 }, + { 0x70AC, 34539 }, + { 0x70AD, 34543 }, + { 0x70AE, 34547 }, + { 0x70AF, 34551 }, + { 0x70B0, 34555 }, + { 0x70B1, 34559 }, + { 0x70B2, 34563 }, + { 0x70B3, 34567 }, + { 0x70B4, 34571 }, + { 0x70B5, 34575 }, + { 0x70B6, 34580 }, + { 0x70B7, 34584 }, + { 0x70B8, 34589 }, + { 0x70B9, 34593 }, + { 0x70BA, 34597 }, + { 0x70BB, 34601 }, + { 0x70BC, 34605 }, + { 0x70BD, 34609 }, + { 0x70BE, 34613 }, + { 0x70BF, 34617 }, + { 0x70C0, 34621 }, + { 0x70C1, 34625 }, + { 0x70C2, 34629 }, + { 0x70C3, 34633 }, + { 0x70C4, 34638 }, + { 0x70C5, 34643 }, + { 0x70C6, 34648 }, + { 0x70C7, 34653 }, + { 0x70C8, 34658 }, + { 0x70C9, 34662 }, + { 0x70CA, 34667 }, + { 0x70CB, 34671 }, + { 0x70CC, 34675 }, + { 0x70CD, 34681 }, + { 0x70CE, 34686 }, + { 0x70CF, 34692 }, + { 0x70D0, 34697 }, + { 0x70D1, 34701 }, + { 0x70D2, 34970 }, + { 0x70D3, 34705 }, + { 0x70D4, 34709 }, + { 0x70D5, 34713 }, + { 0x70D6, 34717 }, + { 0x70D7, 34721 }, + { 0x70D8, 34725 }, + { 0x70D9, 34730 }, + { 0x70DA, 34734 }, + { 0x70DB, 34738 }, + { 0x70DC, 34742 }, + { 0x70DD, 34746 }, + { 0x70DE, 34800 }, + { 0x70DF, 34805 }, + { 0x70E0, 34810 }, + { 0x70E1, 34815 }, + { 0x70E2, 34820 }, + { 0x70E3, 34825 }, + { 0x70E4, 34830 }, + { 0x70E5, 34835 }, + { 0x70E6, 34840 }, + { 0x70E7, 34845 }, + { 0x70E8, 34850 }, + { 0x70E9, 34855 }, + { 0x70EA, 34860 }, + { 0x70EB, 34865 }, + { 0x70EC, 34870 }, + { 0x70ED, 34875 }, + { 0x70EE, 34880 }, + { 0x70EF, 34885 }, + { 0x70F0, 34890 }, + { 0x70F1, 34895 }, + { 0x70F2, 34900 }, + { 0x70F3, 34905 }, + { 0x70F4, 34910 }, + { 0x70F5, 34915 }, + { 0x70F6, 34920 }, + { 0x70F7, 34925 }, + { 0x70F8, 34930 }, + { 0x70F9, 34935 }, + { 0x70FA, 34940 }, + { 0x7100, 23485 }, + { 0x7101, 23481 }, + { 0x7102, 23489 }, + { 0x7107, 23497 }, + { 0x7108, 23526 }, + { 0x7109, 23613 }, + { 0x710A, 23548 }, + { 0x710B, 23537 }, + { 0x710C, 23508 }, + { 0x710D, 23595 }, + { 0x710E, 23570 }, + { 0x710F, 23559 }, + { 0x7110, 23519 }, + { 0x7111, 23645 }, + { 0x7112, 23638 }, + { 0x7113, 23588 }, + { 0x7114, 23581 }, + { 0x7115, 23606 }, + { 0x7116, 23652 }, + { 0x7117, 23624 }, + { 0x7118, 23631 }, + { 0x7119, 23500 }, + { 0x711A, 23529 }, + { 0x711B, 23616 }, + { 0x711C, 23551 }, + { 0x711D, 23540 }, + { 0x711E, 23511 }, + { 0x711F, 23598 }, + { 0x7120, 23573 }, + { 0x7121, 23562 }, + { 0x7122, 23504 }, + { 0x7123, 23533 }, + { 0x7124, 23620 }, + { 0x7125, 23555 }, + { 0x7126, 23544 }, + { 0x7127, 23515 }, + { 0x7128, 23602 }, + { 0x7129, 23577 }, + { 0x712A, 23566 }, + { 0x712B, 23522 }, + { 0x712C, 23648 }, + { 0x712D, 23641 }, + { 0x712E, 23591 }, + { 0x712F, 23584 }, + { 0x7130, 23609 }, + { 0x7131, 23655 }, + { 0x7132, 23627 }, + { 0x7133, 23634 }, + { 0x7137, 23659 }, + { 0x7138, 23663 }, + { 0x7139, 23675 }, + { 0x713A, 23667 }, + { 0x713B, 23671 }, + { 0x713C, 23476 }, + { 0x713D, 23492 }, + { 0x713E, 23683 }, + { 0x713F, 23679 }, + { 0x7140, 13133 }, + { 0x7141, 13111 }, + { 0x7142, 13116 }, + { 0x7143, 13171 }, + { 0x7144, 13213 }, + { 0x7145, 13175 }, + { 0x7146, 13202 }, + { 0x7147, 13227 }, + { 0x7148, 13197 }, + { 0x7149, 13160 }, + { 0x714A, 13222 }, + { 0x714B, 13127 }, + { 0x714C, 13186 }, + { 0x714D, 13144 }, + { 0x714E, 13207 }, + { 0x714F, 13192 }, + { 0x7150, 13155 }, + { 0x7151, 13217 }, + { 0x7152, 13121 }, + { 0x7153, 13180 }, + { 0x7154, 13138 }, + { 0x7155, 13165 }, + { 0x7156, 13232 }, + { 0x7157, 13150 }, + { 0x7158, 13248 }, + { 0x7159, 13263 }, + { 0x715A, 13331 }, + { 0x715B, 13317 }, + { 0x715C, 13281 }, + { 0x715D, 13253 }, + { 0x715E, 13321 }, + { 0x715F, 13353 }, + { 0x7160, 13343 }, + { 0x7161, 13347 }, + { 0x7162, 13335 }, + { 0x7163, 13313 }, + { 0x7164, 13277 }, + { 0x7165, 13304 }, + { 0x7166, 13362 }, + { 0x7167, 13366 }, + { 0x7168, 13339 }, + { 0x7169, 13295 }, + { 0x716A, 13267 }, + { 0x716B, 13299 }, + { 0x716C, 13326 }, + { 0x716D, 13357 }, + { 0x716E, 13285 }, + { 0x716F, 13308 }, + { 0x7170, 13238 }, + { 0x7171, 13272 }, + { 0x7172, 13290 }, + { 0x7173, 13243 }, + { 0x7174, 13258 }, + { 0x7175, 10649 }, + { 0x7176, 10653 }, + { 0x7177, 10674 }, + { 0x7178, 11894 }, + { 0x7179, 10694 }, + { 0x717A, 12082 }, + { 0x717B, 13022 }, + { 0x717C, 10689 }, + { 0x717D, 10670 }, + { 0x717E, 11890 }, + { 0x717F, 10685 }, + { 0x7180, 10681 }, + { 0x7181, 13056 }, + { 0x7182, 13027 }, + { 0x7183, 10717 }, + { 0x7184, 12079 }, + { 0x7185, 12085 }, + { 0x7186, 12021 }, + { 0x7187, 12018 }, + { 0x7188, 12024 }, + { 0x7189, 13067 }, + { 0x718A, 10697 }, + { 0x7190, 22109 }, + { 0x7191, 22013 }, + { 0x7192, 22121 }, + { 0x7193, 22112 }, + { 0x7194, 22016 }, + { 0x7195, 22115 }, + { 0x7196, 22118 }, + { 0x7197, 22130 }, + { 0x7198, 22133 }, + { 0x7199, 22127 }, + { 0x719A, 22010 }, + { 0x719B, 22124 }, + { 0x71D0, 55326 }, + { 0x71D1, 55265 }, + { 0x71D2, 55306 }, + { 0x71D3, 55278 }, + { 0x71D4, 55211 }, + { 0x71D5, 55245 }, + { 0x71D6, 55261 }, + { 0x71D7, 55294 }, + { 0x71D8, 55237 }, + { 0x71D9, 55202 }, + { 0x71DA, 55145 }, + { 0x71DB, 55270 }, + { 0x71DC, 55165 }, + { 0x71DD, 55298 }, + { 0x71DE, 55282 }, + { 0x71DF, 55161 }, + { 0x71E0, 55153 }, + { 0x71E1, 55311 }, + { 0x71E2, 55315 }, + { 0x71E3, 55253 }, + { 0x71E4, 55169 }, + { 0x71E5, 55228 }, + { 0x71E6, 55249 }, + { 0x71E7, 55274 }, + { 0x71E8, 55189 }, + { 0x71E9, 55181 }, + { 0x71EA, 55177 }, + { 0x71EB, 55206 }, + { 0x71EC, 55149 }, + { 0x71ED, 55157 }, + { 0x71EE, 55215 }, + { 0x71EF, 55173 }, + { 0x71F0, 55241 }, + { 0x71F1, 55141 }, + { 0x71F2, 55223 }, + { 0x71F3, 55193 }, + { 0x71F4, 55286 }, + { 0x71F5, 55290 }, + { 0x71F6, 55185 }, + { 0x71F7, 55136 }, + { 0x71F8, 55219 }, + { 0x71F9, 55257 }, + { 0x71FA, 55302 }, + { 0x71FB, 55232 }, + { 0x71FC, 55197 }, + { 0x71FD, 55320 }, + { 0x7280, 35345 }, + { 0x7281, 35354 }, + { 0x7282, 35348 }, + { 0x7283, 35411 }, + { 0x7284, 35357 }, + { 0x7285, 35351 }, + { 0x7286, 35363 }, + { 0x7287, 35399 }, + { 0x7288, 35405 }, + { 0x7289, 35426 }, + { 0x728A, 35366 }, + { 0x728B, 35369 }, + { 0x728C, 35384 }, + { 0x728D, 35372 }, + { 0x728E, 35375 }, + { 0x728F, 35378 }, + { 0x7290, 35420 }, + { 0x7291, 35423 }, + { 0x7292, 35396 }, + { 0x7293, 35381 }, + { 0x7294, 35417 }, + { 0x7295, 35387 }, + { 0x7296, 35390 }, + { 0x7297, 35393 }, + { 0x7298, 35429 }, + { 0x7299, 35408 }, + { 0x729A, 35414 }, + { 0x729B, 35360 }, + { 0x729C, 35402 }, + { 0x72A0, 30318 }, + { 0x72A1, 30405 }, + { 0x72A2, 30324 }, + { 0x72A3, 30339 }, + { 0x72A4, 30447 }, + { 0x72A5, 30357 }, + { 0x72A6, 30390 }, + { 0x72A7, 30372 }, + { 0x72A8, 30354 }, + { 0x72A9, 30321 }, + { 0x72AA, 30342 }, + { 0x72AB, 30348 }, + { 0x72AC, 30375 }, + { 0x72AD, 30363 }, + { 0x72AE, 30411 }, + { 0x72AF, 30438 }, + { 0x72B0, 30360 }, + { 0x72B1, 30450 }, + { 0x72B2, 30366 }, + { 0x72B3, 30402 }, + { 0x72B4, 30369 }, + { 0x72B5, 30345 }, + { 0x72B6, 30444 }, + { 0x72B7, 30351 }, + { 0x72B8, 30414 }, + { 0x72B9, 30333 }, + { 0x72BA, 30327 }, + { 0x72BB, 30462 }, + { 0x72BC, 30336 }, + { 0x72BD, 30387 }, + { 0x72BE, 30396 }, + { 0x72BF, 30423 }, + { 0x72C0, 30330 }, + { 0x72C1, 30381 }, + { 0x72C2, 30417 }, + { 0x72C3, 30441 }, + { 0x72C4, 30399 }, + { 0x72C5, 30384 }, + { 0x72C6, 30453 }, + { 0x72C7, 30420 }, + { 0x72C8, 30456 }, + { 0x72C9, 30408 }, + { 0x72CA, 30393 }, + { 0x72CB, 30429 }, + { 0x72CC, 30432 }, + { 0x72CD, 30435 }, + { 0x72CE, 30426 }, + { 0x72CF, 30378 }, + { 0x72D0, 30459 }, + { 0x7300, 6815 }, + { 0x7301, 6835 }, + { 0x7302, 6879 }, + { 0x7303, 6839 }, + { 0x7304, 6819 }, + { 0x7305, 6899 }, + { 0x7306, 6903 }, + { 0x7307, 6867 }, + { 0x7308, 6935 }, + { 0x7309, 6823 }, + { 0x730A, 6875 }, + { 0x730B, 6847 }, + { 0x730C, 6851 }, + { 0x730D, 6855 }, + { 0x730E, 6919 }, + { 0x730F, 6827 }, + { 0x7310, 6887 }, + { 0x7311, 6931 }, + { 0x7312, 6883 }, + { 0x7313, 6859 }, + { 0x7314, 6863 }, + { 0x7315, 6891 }, + { 0x7316, 6831 }, + { 0x7317, 6911 }, + { 0x7318, 6927 }, + { 0x7319, 6923 }, + { 0x731A, 6843 }, + { 0x731B, 6915 }, + { 0x731C, 6907 }, + { 0x731D, 6871 }, + { 0x731E, 6895 }, + { 0x7320, 6939 }, + { 0x7321, 6947 }, + { 0x7322, 6943 }, + { 0x7323, 6951 }, + { 0x7330, 31802 }, + { 0x7331, 31869 }, + { 0x7332, 31808 }, + { 0x7333, 31805 }, + { 0x7334, 31857 }, + { 0x7335, 31875 }, + { 0x7336, 31814 }, + { 0x7337, 31811 }, + { 0x7338, 31866 }, + { 0x7339, 31796 }, + { 0x733A, 31833 }, + { 0x733B, 31836 }, + { 0x733C, 31839 }, + { 0x733D, 31860 }, + { 0x733E, 31799 }, + { 0x733F, 31821 }, + { 0x7340, 31872 }, + { 0x7341, 31863 }, + { 0x7342, 31845 }, + { 0x7343, 31848 }, + { 0x7344, 31851 }, + { 0x7345, 31854 }, + { 0x7346, 31824 }, + { 0x7347, 31830 }, + { 0x7348, 31827 }, + { 0x7349, 31842 }, + { 0x734A, 31817 }, + { 0x7380, 55959 }, + { 0x7381, 55962 }, + { 0x7382, 55986 }, + { 0x7383, 55941 }, + { 0x7384, 55983 }, + { 0x7385, 55920 }, + { 0x7386, 55929 }, + { 0x7387, 55980 }, + { 0x7388, 55968 }, + { 0x7389, 55953 }, + { 0x738A, 55956 }, + { 0x738B, 55938 }, + { 0x738C, 55977 }, + { 0x738D, 55992 }, + { 0x738E, 55944 }, + { 0x738F, 55965 }, + { 0x7390, 55947 }, + { 0x7391, 55932 }, + { 0x7392, 55998 }, + { 0x7393, 55935 }, + { 0x7394, 55923 }, + { 0x7395, 55974 }, + { 0x7396, 55971 }, + { 0x7397, 55995 }, + { 0x7398, 56001 }, + { 0x7399, 55989 }, + { 0x739A, 55926 }, + { 0x739B, 55914 }, + { 0x739C, 55917 }, + { 0x739D, 55950 }, + { 0x739F, 55911 }, + { 0x73A0, 6955 }, + { 0x73A1, 6959 }, + { 0x73A2, 6963 }, + { 0x73A3, 7011 }, + { 0x73A4, 7015 }, + { 0x73A5, 6991 }, + { 0x73A6, 6995 }, + { 0x73A7, 7075 }, + { 0x73A8, 6971 }, + { 0x73A9, 7003 }, + { 0x73AA, 7007 }, + { 0x73AB, 7059 }, + { 0x73AC, 7063 }, + { 0x73AD, 6975 }, + { 0x73AE, 6979 }, + { 0x73AF, 6983 }, + { 0x73B0, 7095 }, + { 0x73B1, 7043 }, + { 0x73B2, 6967 }, + { 0x73B3, 6987 }, + { 0x73B4, 7035 }, + { 0x73B5, 7039 }, + { 0x73B6, 7023 }, + { 0x73B7, 7027 }, + { 0x73B8, 7031 }, + { 0x73B9, 7079 }, + { 0x73BA, 7067 }, + { 0x73BB, 7071 }, + { 0x73BC, 7047 }, + { 0x73BD, 7051 }, + { 0x73BE, 7019 }, + { 0x73BF, 7055 }, + { 0x73C0, 7083 }, + { 0x73C1, 7087 }, + { 0x73C2, 7091 }, + { 0x73C3, 6999 }, + { 0x73C8, 7111 }, + { 0x73C9, 7119 }, + { 0x73CA, 7123 }, + { 0x73CB, 7127 }, + { 0x73CC, 7107 }, + { 0x73CD, 7115 }, + { 0x73CE, 7099 }, + { 0x73CF, 7103 }, + { 0x73D0, 7131 }, + { 0x73D1, 7135 }, + { 0x73D2, 7143 }, + { 0x73D3, 7139 }, + { 0x73D4, 7147 }, + { 0x73D5, 7151 }, + { 0x7400, 40249 }, + { 0x7401, 40244 }, + { 0x7402, 40239 }, + { 0x7403, 40259 }, + { 0x7404, 40254 }, + { 0x7405, 40264 }, + { 0x7406, 40287 }, + { 0x7407, 40282 }, + { 0x7408, 40277 }, + { 0x7409, 40297 }, + { 0x740A, 40292 }, + { 0x740B, 40302 }, + { 0x740C, 40139 }, + { 0x740D, 40175 }, + { 0x740E, 40179 }, + { 0x740F, 40227 }, + { 0x7410, 40135 }, + { 0x7411, 40215 }, + { 0x7412, 40183 }, + { 0x7413, 40219 }, + { 0x7414, 40187 }, + { 0x7415, 40235 }, + { 0x7416, 40207 }, + { 0x7417, 40211 }, + { 0x7418, 40203 }, + { 0x7419, 40143 }, + { 0x741A, 40223 }, + { 0x741B, 40199 }, + { 0x741C, 40269 }, + { 0x741D, 40163 }, + { 0x741E, 40231 }, + { 0x741F, 40195 }, + { 0x7420, 40273 }, + { 0x7421, 40159 }, + { 0x7422, 40147 }, + { 0x7423, 40151 }, + { 0x7424, 40155 }, + { 0x7425, 40191 }, + { 0x7426, 40171 }, + { 0x7427, 40167 }, + { 0x7428, 40077 }, + { 0x7429, 40072 }, + { 0x742A, 40067 }, + { 0x742B, 40087 }, + { 0x742C, 40082 }, + { 0x742D, 40092 }, + { 0x742E, 40115 }, + { 0x742F, 40110 }, + { 0x7430, 40105 }, + { 0x7431, 40125 }, + { 0x7432, 40120 }, + { 0x7433, 40130 }, + { 0x7434, 39967 }, + { 0x7435, 40003 }, + { 0x7436, 40007 }, + { 0x7437, 40055 }, + { 0x7438, 39963 }, + { 0x7439, 40043 }, + { 0x743A, 40011 }, + { 0x743B, 40047 }, + { 0x743C, 40015 }, + { 0x743D, 40063 }, + { 0x743E, 40035 }, + { 0x743F, 40039 }, + { 0x7440, 40031 }, + { 0x7441, 39971 }, + { 0x7442, 40051 }, + { 0x7443, 40027 }, + { 0x7444, 40097 }, + { 0x7445, 39991 }, + { 0x7446, 40059 }, + { 0x7447, 40023 }, + { 0x7448, 40101 }, + { 0x7449, 39987 }, + { 0x744A, 39975 }, + { 0x744B, 39979 }, + { 0x744C, 39983 }, + { 0x744D, 40019 }, + { 0x744E, 39999 }, + { 0x744F, 39995 }, + { 0x7450, 43139 }, + { 0x7451, 43103 }, + { 0x7452, 43127 }, + { 0x7453, 43079 }, + { 0x7454, 43163 }, + { 0x7455, 43040 }, + { 0x7456, 43145 }, + { 0x7457, 43166 }, + { 0x7458, 43112 }, + { 0x7459, 43124 }, + { 0x745A, 43064 }, + { 0x745B, 43121 }, + { 0x745C, 43082 }, + { 0x745D, 43106 }, + { 0x745E, 43148 }, + { 0x745F, 43118 }, + { 0x7460, 43169 }, + { 0x7461, 43160 }, + { 0x7462, 43109 }, + { 0x7463, 43157 }, + { 0x7464, 43130 }, + { 0x7465, 43133 }, + { 0x7466, 43031 }, + { 0x7467, 43073 }, + { 0x7468, 43058 }, + { 0x7469, 43046 }, + { 0x746A, 43034 }, + { 0x746B, 43151 }, + { 0x746C, 43100 }, + { 0x746D, 43028 }, + { 0x746E, 43142 }, + { 0x746F, 43091 }, + { 0x7470, 43070 }, + { 0x7471, 43049 }, + { 0x7472, 43088 }, + { 0x7473, 43043 }, + { 0x7474, 43094 }, + { 0x7475, 43136 }, + { 0x7476, 43097 }, + { 0x7477, 43061 }, + { 0x7478, 43055 }, + { 0x7479, 43037 }, + { 0x747A, 43052 }, + { 0x747B, 43076 }, + { 0x747C, 43154 }, + { 0x747D, 43067 }, + { 0x747E, 43085 }, + { 0x747F, 43115 }, + { 0x7480, 42944 }, + { 0x7481, 42899 }, + { 0x7482, 42926 }, + { 0x7483, 42914 }, + { 0x7484, 42929 }, + { 0x7485, 42938 }, + { 0x7486, 42950 }, + { 0x7487, 42920 }, + { 0x7488, 42923 }, + { 0x7489, 42968 }, + { 0x748A, 42935 }, + { 0x748B, 42947 }, + { 0x748C, 42908 }, + { 0x748D, 42905 }, + { 0x748E, 42965 }, + { 0x748F, 42953 }, + { 0x7490, 42956 }, + { 0x7491, 42959 }, + { 0x7492, 42962 }, + { 0x7493, 42941 }, + { 0x7494, 42911 }, + { 0x7495, 42932 }, + { 0x7496, 42881 }, + { 0x7497, 42884 }, + { 0x7498, 42887 }, + { 0x7499, 42890 }, + { 0x749A, 42893 }, + { 0x749B, 42896 }, + { 0x749C, 42902 }, + { 0x749D, 42917 }, + { 0x74A0, 42869 }, + { 0x74A1, 42851 }, + { 0x74A2, 42857 }, + { 0x74A3, 42878 }, + { 0x74A4, 42863 }, + { 0x74A5, 42860 }, + { 0x74A6, 42854 }, + { 0x74A7, 42875 }, + { 0x74A8, 42872 }, + { 0x74A9, 42866 }, + { 0x7800, 39794 }, + { 0x7801, 39797 }, + { 0x7802, 39800 }, + { 0x7803, 39803 }, + { 0x7804, 39806 }, + { 0x7805, 39809 }, + { 0x7808, 39812 }, + { 0x780A, 39815 }, + { 0x780B, 39818 }, + { 0x780C, 39821 }, + { 0x780D, 39824 }, + { 0x780E, 39827 }, + { 0x780F, 39830 }, + { 0x7810, 39833 }, + { 0x7811, 39836 }, + { 0x7812, 39839 }, + { 0x7813, 39842 }, + { 0x7814, 39845 }, + { 0x7815, 39848 }, + { 0x7816, 39851 }, + { 0x7817, 39854 }, + { 0x7818, 39857 }, + { 0x7819, 39860 }, + { 0x781A, 39863 }, + { 0x781B, 39866 }, + { 0x781C, 39869 }, + { 0x781D, 39872 }, + { 0x781E, 39875 }, + { 0x781F, 39878 }, + { 0x7820, 39881 }, + { 0x7821, 39884 }, + { 0x7822, 39887 }, + { 0x7823, 39890 }, + { 0x7824, 39893 }, + { 0x7825, 39896 }, + { 0x7826, 39899 }, + { 0x7827, 39902 }, + { 0x7828, 39905 }, + { 0x7829, 39908 }, + { 0x782A, 39911 }, + { 0x782B, 39914 }, + { 0x782C, 39917 }, + { 0x782D, 39920 }, + { 0x782E, 39923 }, + { 0x782F, 39926 }, + { 0x7830, 39929 }, + { 0x7831, 39932 }, + { 0x7832, 39935 }, + { 0x7833, 39938 }, + { 0x7834, 39941 }, + { 0x7835, 39944 }, + { 0x7837, 39947 }, + { 0x7838, 39950 }, + { 0x783C, 39953 }, + { 0x783F, 39956 }, + { 0x7900, 67899 }, + { 0x7901, 67902 }, + { 0x7902, 67938 }, + { 0x7903, 67935 }, + { 0x7904, 67890 }, + { 0x7905, 67926 }, + { 0x7906, 67932 }, + { 0x7907, 67905 }, + { 0x7908, 67923 }, + { 0x7909, 67929 }, + { 0x790A, 67908 }, + { 0x790B, 67941 }, + { 0x790C, 67911 }, + { 0x790D, 67914 }, + { 0x790E, 67950 }, + { 0x790F, 67896 }, + { 0x7910, 67893 }, + { 0x7911, 67947 }, + { 0x7912, 67917 }, + { 0x7913, 67944 }, + { 0x7914, 67953 }, + { 0x7915, 67920 }, + { 0x7916, 67956 }, + { 0x7917, 67963 }, + { 0x7918, 67966 }, + { 0x7919, 67959 }, + { 0x791F, 67887 }, + { 0x7920, 35432 }, + { 0x7921, 35435 }, + { 0x7922, 35450 }, + { 0x7923, 35441 }, + { 0x7924, 35444 }, + { 0x7925, 35486 }, + { 0x7926, 35453 }, + { 0x7927, 35489 }, + { 0x7928, 35456 }, + { 0x7929, 35459 }, + { 0x792A, 35462 }, + { 0x792B, 35465 }, + { 0x792C, 35468 }, + { 0x792D, 35474 }, + { 0x792E, 35504 }, + { 0x792F, 35480 }, + { 0x7930, 35483 }, + { 0x7931, 35447 }, + { 0x7932, 35471 }, + { 0x7933, 35477 }, + { 0x7934, 35507 }, + { 0x7935, 35492 }, + { 0x7936, 35495 }, + { 0x7937, 35498 }, + { 0x7938, 35501 }, + { 0x7939, 35438 }, + { 0x793F, 35510 }, + { 0x7A00, 67726 }, + { 0x7A01, 67705 }, + { 0x7A02, 67713 }, + { 0x7A03, 67717 }, + { 0x7A05, 67701 }, + { 0x7A06, 67709 }, + { 0x7A0C, 67722 }, + { 0x7A0D, 67678 }, + { 0x7A0E, 67686 }, + { 0x7A0F, 67683 }, + { 0x7A10, 67747 }, + { 0x7A11, 67795 }, + { 0x7A12, 67738 }, + { 0x7A13, 67792 }, + { 0x7A15, 67732 }, + { 0x7A16, 67783 }, + { 0x7A17, 67744 }, + { 0x7A19, 67804 }, + { 0x7A1A, 67819 }, + { 0x7A1B, 67825 }, + { 0x7A1C, 67786 }, + { 0x7A1D, 67822 }, + { 0x7A1E, 67801 }, + { 0x7A1F, 67768 }, + { 0x7A20, 67816 }, + { 0x7A21, 67735 }, + { 0x7A22, 67789 }, + { 0x7A23, 67756 }, + { 0x7A24, 67759 }, + { 0x7A25, 67807 }, + { 0x7A26, 67729 }, + { 0x7A27, 67780 }, + { 0x7A28, 67753 }, + { 0x7A29, 67774 }, + { 0x7A2A, 67762 }, + { 0x7A2B, 67750 }, + { 0x7A2C, 67771 }, + { 0x7A2D, 67810 }, + { 0x7A2E, 67813 }, + { 0x7A2F, 67765 }, + { 0x7A30, 67777 }, + { 0x7A31, 67741 }, + { 0x7A32, 67798 }, + { 0x7A33, 67828 }, + { 0x7A38, 67667 }, + { 0x7A39, 67675 }, + { 0x7A3A, 67671 }, + { 0x7A3F, 67845 }, + { 0x7A40, 67689 }, + { 0x7A41, 67692 }, + { 0x7A42, 67698 }, + { 0x7A43, 67695 }, + { 0x7A44, 67839 }, + { 0x7A45, 67842 }, + { 0x7A46, 67831 }, + { 0x7A47, 67835 }, + { 0x7A50, 67847 }, + { 0x7A51, 67859 }, + { 0x7A52, 67863 }, + { 0x7A53, 67870 }, + { 0x7A54, 67874 }, + { 0x7A55, 67856 }, + { 0x7A56, 67850 }, + { 0x7A57, 67866 }, + { 0x7A58, 67853 }, + { 0x8000, 58351 }, + { 0x8001, 58354 }, + { 0x8002, 58364 }, + { 0x8003, 58379 }, + { 0x8004, 58359 }, + { 0x8005, 58369 }, + { 0x8006, 58390 }, + { 0x8007, 58385 }, + { 0x8008, 58374 }, + { 0x8009, 58460 }, + { 0x800A, 58463 }, + { 0x800B, 58495 }, + { 0x800C, 58500 }, + { 0x800D, 58484 }, + { 0x800E, 58506 }, + { 0x800F, 58479 }, + { 0x8010, 58489 }, + { 0x8011, 58512 }, + { 0x8012, 58517 }, + { 0x8013, 58522 }, + { 0x8014, 58470 }, + { 0x8015, 58466 }, + { 0x8016, 59529 }, + { 0x8017, 59555 }, + { 0x8018, 59539 }, + { 0x8019, 59532 }, + { 0x801A, 59545 }, + { 0x801B, 59550 }, + { 0x801C, 58527 }, + { 0x801D, 58530 }, + { 0x801E, 58533 }, + { 0x801F, 58538 }, + { 0x8020, 58545 }, + { 0x8021, 58548 }, + { 0x8022, 58573 }, + { 0x8023, 58578 }, + { 0x8024, 58553 }, + { 0x8025, 58583 }, + { 0x8026, 58558 }, + { 0x8027, 58563 }, + { 0x8028, 58568 }, + { 0x8029, 61180 }, + { 0x802A, 61793 }, + { 0x802B, 61183 }, + { 0x802C, 61186 }, + { 0x802D, 58588 }, + { 0x802E, 58591 }, + { 0x802F, 58611 }, + { 0x8030, 58602 }, + { 0x8031, 58596 }, + { 0x8032, 61796 }, + { 0x8033, 61191 }, + { 0x8034, 61194 }, + { 0x8035, 61197 }, + { 0x8036, 61799 }, + { 0x8037, 61802 }, + { 0x8038, 59560 }, + { 0x8039, 59600 }, + { 0x803A, 59563 }, + { 0x803B, 59588 }, + { 0x803C, 59568 }, + { 0x803D, 59575 }, + { 0x803E, 61202 }, + { 0x803F, 62374 }, + { 0x8040, 58616 }, + { 0x8041, 59605 }, + { 0x8042, 61205 }, + { 0x8043, 62377 }, + { 0x8044, 59608 }, + { 0x8045, 59611 }, + { 0x8046, 61805 }, + { 0x8047, 59616 }, + { 0x8048, 61808 }, + { 0x8049, 58619 }, + { 0x804A, 58622 }, + { 0x804B, 58627 }, + { 0x804C, 58632 }, + { 0x804D, 58638 }, + { 0x804E, 58641 }, + { 0x804F, 58647 }, + { 0x8050, 58653 }, + { 0x8051, 61811 }, + { 0x8052, 61814 }, + { 0x8053, 59619 }, + { 0x8054, 61208 }, + { 0x8055, 58658 }, + { 0x8056, 59622 }, + { 0x8057, 59625 }, + { 0x8058, 59751 }, + { 0x8059, 59769 }, + { 0x805A, 59633 }, + { 0x805B, 59639 }, + { 0x805C, 59645 }, + { 0x805D, 59653 }, + { 0x805E, 59757 }, + { 0x805F, 59719 }, + { 0x8060, 59659 }, + { 0x8061, 59665 }, + { 0x8062, 59671 }, + { 0x8063, 59725 }, + { 0x8064, 59679 }, + { 0x8065, 59685 }, + { 0x8066, 59691 }, + { 0x8067, 59731 }, + { 0x8068, 59699 }, + { 0x8069, 59737 }, + { 0x806A, 59705 }, + { 0x806B, 59763 }, + { 0x806C, 59711 }, + { 0x806D, 59745 }, + { 0x806E, 59775 }, + { 0x806F, 59778 }, + { 0x8070, 61819 }, + { 0x8071, 61822 }, + { 0x8072, 58661 }, + { 0x8073, 59781 }, + { 0x8074, 59784 }, + { 0x8075, 59787 }, + { 0x8076, 61211 }, + { 0x8077, 59792 }, + { 0x8078, 59795 }, + { 0x8079, 61214 }, + { 0x807A, 58664 }, + { 0x807B, 58671 }, + { 0x807C, 58667 }, + { 0x807D, 58676 }, + { 0x807E, 59802 }, + { 0x807F, 59805 }, + { 0x8080, 61217 }, + { 0x8081, 59810 }, + { 0x8082, 61825 }, + { 0x8083, 59813 }, + { 0x8084, 59816 }, + { 0x8085, 61220 }, + { 0x8086, 61223 }, + { 0x8087, 61227 }, + { 0x8088, 61232 }, + { 0x8089, 61235 }, + { 0x808A, 58396 }, + { 0x808B, 58407 }, + { 0x808C, 58399 }, + { 0x808D, 58680 }, + { 0x808E, 58683 }, + { 0x808F, 58702 }, + { 0x8090, 58697 }, + { 0x8091, 58707 }, + { 0x8092, 58712 }, + { 0x8093, 58692 }, + { 0x8094, 61238 }, + { 0x8095, 61241 }, + { 0x8096, 58717 }, + { 0x8097, 58720 }, + { 0x8098, 58728 }, + { 0x8099, 58733 }, + { 0x809A, 58723 }, + { 0x809B, 58743 }, + { 0x809C, 58748 }, + { 0x809D, 58739 }, + { 0x809E, 61244 }, + { 0x809F, 61828 }, + { 0x80A0, 61247 }, + { 0x80A1, 61250 }, + { 0x80A2, 61253 }, + { 0x80A3, 61258 }, + { 0x80A4, 61265 }, + { 0x80A5, 61274 }, + { 0x80A6, 61315 }, + { 0x80A7, 61338 }, + { 0x80A8, 61344 }, + { 0x80A9, 61279 }, + { 0x80AA, 61284 }, + { 0x80AB, 61320 }, + { 0x80AC, 61351 }, + { 0x80AD, 61356 }, + { 0x80AE, 61326 }, + { 0x80AF, 61290 }, + { 0x80B0, 61331 }, + { 0x80B1, 61295 }, + { 0x80B2, 61300 }, + { 0x80B3, 61305 }, + { 0x80B4, 61310 }, + { 0x80B5, 58753 }, + { 0x80B6, 58756 }, + { 0x80B7, 59819 }, + { 0x80B8, 59827 }, + { 0x80B9, 59836 }, + { 0x80BA, 59843 }, + { 0x80BB, 59950 }, + { 0x80BC, 59855 }, + { 0x80BD, 59958 }, + { 0x80BE, 60106 }, + { 0x80BF, 59963 }, + { 0x80C0, 59968 }, + { 0x80C1, 59975 }, + { 0x80C2, 59980 }, + { 0x80C3, 59860 }, + { 0x80C4, 59865 }, + { 0x80C5, 59987 }, + { 0x80C6, 59994 }, + { 0x80C7, 59870 }, + { 0x80C8, 59875 }, + { 0x80C9, 59882 }, + { 0x80CA, 59887 }, + { 0x80CB, 60113 }, + { 0x80CC, 59999 }, + { 0x80CD, 59895 }, + { 0x80CE, 60004 }, + { 0x80CF, 60009 }, + { 0x80D0, 60119 }, + { 0x80D1, 59900 }, + { 0x80D2, 60016 }, + { 0x80D3, 60021 }, + { 0x80D4, 59909 }, + { 0x80D5, 60126 }, + { 0x80D6, 60028 }, + { 0x80D7, 60034 }, + { 0x80D8, 60043 }, + { 0x80D9, 60141 }, + { 0x80DA, 60048 }, + { 0x80DB, 60053 }, + { 0x80DC, 60060 }, + { 0x80DD, 59916 }, + { 0x80DE, 59921 }, + { 0x80DF, 59928 }, + { 0x80E0, 60067 }, + { 0x80E1, 60072 }, + { 0x80E2, 59933 }, + { 0x80E3, 60079 }, + { 0x80E4, 60084 }, + { 0x80E5, 60089 }, + { 0x80E6, 60094 }, + { 0x80E7, 60131 }, + { 0x80E8, 60101 }, + { 0x80E9, 60136 }, + { 0x80EA, 59850 }, + { 0x80EB, 59938 }, + { 0x80EC, 59943 }, + { 0x80ED, 59822 }, + { 0x80EE, 61362 }, + { 0x80EF, 61365 }, + { 0x80F0, 60146 }, + { 0x80F1, 60149 }, + { 0x80F2, 60157 }, + { 0x80F3, 60160 }, + { 0x80F4, 61831 }, + { 0x80F5, 60169 }, + { 0x80F6, 60172 }, + { 0x80F7, 61370 }, + { 0x80F8, 61378 }, + { 0x80F9, 61373 }, + { 0x80FA, 61382 }, + { 0x80FB, 60175 }, + { 0x80FC, 61387 }, + { 0x80FD, 62380 }, + { 0x80FE, 62539 }, + { 0x80FF, 62542 }, + { 0x8100, 58760 }, + { 0x8101, 58763 }, + { 0x8102, 58768 }, + { 0x8103, 58773 }, + { 0x8104, 60178 }, + { 0x8105, 60181 }, + { 0x8106, 60186 }, + { 0x8107, 61834 }, + { 0x8108, 61390 }, + { 0x8109, 61393 }, + { 0x810A, 61397 }, + { 0x810B, 61400 }, + { 0x810C, 61424 }, + { 0x810D, 61419 }, + { 0x810E, 61407 }, + { 0x810F, 61414 }, + { 0x8110, 61837 }, + { 0x8111, 61430 }, + { 0x8112, 61447 }, + { 0x8113, 61437 }, + { 0x8114, 61442 }, + { 0x8115, 61433 }, + { 0x8116, 58778 }, + { 0x8117, 58781 }, + { 0x8118, 60191 }, + { 0x8119, 60198 }, + { 0x811A, 60203 }, + { 0x811B, 60211 }, + { 0x811C, 60216 }, + { 0x811D, 60194 }, + { 0x811E, 60223 }, + { 0x811F, 60232 }, + { 0x8120, 60239 }, + { 0x8121, 60226 }, + { 0x8122, 60244 }, + { 0x8123, 60247 }, + { 0x8124, 60250 }, + { 0x8125, 60255 }, + { 0x8126, 61452 }, + { 0x8127, 61840 }, + { 0x8128, 62383 }, + { 0x8129, 58786 }, + { 0x812A, 58793 }, + { 0x812B, 58789 }, + { 0x812C, 60258 }, + { 0x812D, 58797 }, + { 0x812E, 58805 }, + { 0x812F, 58835 }, + { 0x8130, 58810 }, + { 0x8131, 58840 }, + { 0x8132, 58815 }, + { 0x8133, 58820 }, + { 0x8134, 58825 }, + { 0x8135, 58830 }, + { 0x8136, 58800 }, + { 0x8137, 58845 }, + { 0x8138, 61455 }, + { 0x8139, 61458 }, + { 0x813A, 61468 }, + { 0x813B, 61478 }, + { 0x813C, 61473 }, + { 0x813D, 61463 }, + { 0x813E, 61483 }, + { 0x813F, 58412 }, + { 0x8140, 58415 }, + { 0x8141, 58848 }, + { 0x8142, 61486 }, + { 0x8143, 61489 }, + { 0x8144, 61495 }, + { 0x8145, 58851 }, + { 0x8146, 60261 }, + { 0x8147, 60268 }, + { 0x8148, 60264 }, + { 0x8149, 60276 }, + { 0x814A, 60272 }, + { 0x814B, 58854 }, + { 0x814C, 58857 }, + { 0x814D, 60287 }, + { 0x814E, 58863 }, + { 0x814F, 58866 }, + { 0x8150, 58875 }, + { 0x8151, 58880 }, + { 0x8152, 58871 }, + { 0x8153, 61501 }, + { 0x8154, 58885 }, + { 0x8155, 58888 }, + { 0x8156, 60290 }, + { 0x8157, 58891 }, + { 0x8158, 58894 }, + { 0x8159, 58904 }, + { 0x815A, 58909 }, + { 0x815B, 59113 }, + { 0x815C, 59029 }, + { 0x815D, 59165 }, + { 0x815E, 59034 }, + { 0x815F, 58916 }, + { 0x8160, 59170 }, + { 0x8161, 59118 }, + { 0x8162, 58921 }, + { 0x8163, 59039 }, + { 0x8164, 59123 }, + { 0x8165, 59044 }, + { 0x8166, 59049 }, + { 0x8167, 58926 }, + { 0x8168, 59129 }, + { 0x8169, 59134 }, + { 0x816A, 59141 }, + { 0x816B, 58931 }, + { 0x816C, 59148 }, + { 0x816D, 59058 }, + { 0x816E, 58936 }, + { 0x816F, 59063 }, + { 0x8170, 58941 }, + { 0x8171, 59068 }, + { 0x8172, 58946 }, + { 0x8173, 58951 }, + { 0x8174, 58956 }, + { 0x8175, 58961 }, + { 0x8176, 58968 }, + { 0x8177, 58975 }, + { 0x8178, 58982 }, + { 0x8179, 58987 }, + { 0x817A, 58994 }, + { 0x817B, 59073 }, + { 0x817C, 58999 }, + { 0x817D, 59004 }, + { 0x817E, 59009 }, + { 0x817F, 59078 }, + { 0x8180, 59083 }, + { 0x8181, 59088 }, + { 0x8182, 59153 }, + { 0x8183, 59093 }, + { 0x8184, 59098 }, + { 0x8185, 59175 }, + { 0x8186, 59103 }, + { 0x8187, 58899 }, + { 0x8188, 59014 }, + { 0x8189, 59019 }, + { 0x818A, 59158 }, + { 0x818B, 59108 }, + { 0x818C, 59024 }, + { 0x818D, 60293 }, + { 0x818E, 60296 }, + { 0x818F, 60301 }, + { 0x8190, 61504 }, + { 0x8191, 61507 }, + { 0x8192, 61510 }, + { 0x8193, 61513 }, + { 0x8194, 61516 }, + { 0x8195, 60304 }, + { 0x8196, 60307 }, + { 0x8197, 60313 }, + { 0x8198, 60316 }, + { 0x8199, 60321 }, + { 0x819A, 61521 }, + { 0x819B, 61524 }, + { 0x819C, 62386 }, + { 0x819D, 62401 }, + { 0x819E, 62389 }, + { 0x819F, 61843 }, + { 0x81A0, 59180 }, + { 0x81A1, 59193 }, + { 0x81A2, 59183 }, + { 0x81A3, 59188 }, + { 0x81A4, 60326 }, + { 0x81A5, 60329 }, + { 0x81A6, 61846 }, + { 0x81A7, 61527 }, + { 0x81A8, 62411 }, + { 0x81A9, 62414 }, + { 0x81AA, 59198 }, + { 0x81AB, 59201 }, + { 0x81AC, 60332 }, + { 0x81AD, 60335 }, + { 0x81AE, 60338 }, + { 0x81AF, 60343 }, + { 0x81B0, 60346 }, + { 0x81B1, 60349 }, + { 0x81B2, 60353 }, + { 0x81B3, 60356 }, + { 0x81B4, 60359 }, + { 0x81B5, 62419 }, + { 0x81B6, 62422 }, + { 0x81B7, 59213 }, + { 0x81B8, 61849 }, + { 0x81B9, 61852 }, + { 0x81BA, 61857 }, + { 0x81BB, 61866 }, + { 0x81BC, 61873 }, + { 0x81BD, 61901 }, + { 0x81BE, 61906 }, + { 0x81BF, 62007 }, + { 0x81C0, 62014 }, + { 0x81C1, 61911 }, + { 0x81C2, 62019 }, + { 0x81C3, 61916 }, + { 0x81C4, 61921 }, + { 0x81C5, 62024 }, + { 0x81C6, 62029 }, + { 0x81C7, 62034 }, + { 0x81C8, 61926 }, + { 0x81C9, 62041 }, + { 0x81CA, 61931 }, + { 0x81CB, 62046 }, + { 0x81CC, 61938 }, + { 0x81CD, 61943 }, + { 0x81CE, 61950 }, + { 0x81CF, 61957 }, + { 0x81D0, 62052 }, + { 0x81D1, 62057 }, + { 0x81D2, 62062 }, + { 0x81D3, 62067 }, + { 0x81D4, 62130 }, + { 0x81D5, 62103 }, + { 0x81D6, 61962 }, + { 0x81D7, 62076 }, + { 0x81D8, 61967 }, + { 0x81D9, 61972 }, + { 0x81DA, 62108 }, + { 0x81DB, 61979 }, + { 0x81DC, 62081 }, + { 0x81DD, 62135 }, + { 0x81DE, 62144 }, + { 0x81DF, 62113 }, + { 0x81E0, 62118 }, + { 0x81E1, 62088 }, + { 0x81E2, 62093 }, + { 0x81E3, 62125 }, + { 0x81E4, 61984 }, + { 0x81E5, 61880 }, + { 0x81E6, 61885 }, + { 0x81E7, 61892 }, + { 0x81E8, 61995 }, + { 0x81E9, 62002 }, + { 0x81EA, 62098 }, + { 0x81EB, 62152 }, + { 0x81EC, 62156 }, + { 0x81ED, 62171 }, + { 0x81EE, 62176 }, + { 0x81EF, 62159 }, + { 0x81F0, 62163 }, + { 0x81F1, 62425 }, + { 0x81F2, 60364 }, + { 0x81F3, 60367 }, + { 0x81F4, 60372 }, + { 0x81F5, 60375 }, + { 0x81F6, 60380 }, + { 0x81F7, 59216 }, + { 0x81F8, 60387 }, + { 0x81F9, 62428 }, + { 0x81FA, 61530 }, + { 0x81FB, 59219 }, + { 0x81FC, 59222 }, + { 0x81FD, 60390 }, + { 0x81FE, 60397 }, + { 0x81FF, 60450 }, + { 0x8200, 60455 }, + { 0x8201, 60460 }, + { 0x8202, 60466 }, + { 0x8203, 60402 }, + { 0x8204, 60409 }, + { 0x8205, 60472 }, + { 0x8206, 60477 }, + { 0x8207, 60482 }, + { 0x8208, 60414 }, + { 0x8209, 60419 }, + { 0x820A, 60501 }, + { 0x820B, 60426 }, + { 0x820C, 60433 }, + { 0x820D, 60438 }, + { 0x820E, 60443 }, + { 0x820F, 60489 }, + { 0x8210, 60496 }, + { 0x8211, 60393 }, + { 0x8212, 60514 }, + { 0x8213, 60519 }, + { 0x8214, 60510 }, + { 0x8215, 60506 }, + { 0x8216, 60524 }, + { 0x8217, 62183 }, + { 0x8218, 62186 }, + { 0x8219, 62195 }, + { 0x821A, 62191 }, + { 0x821B, 60527 }, + { 0x821C, 60530 }, + { 0x821D, 60533 }, + { 0x821E, 60536 }, + { 0x821F, 60541 }, + { 0x8220, 59227 }, + { 0x8221, 59234 }, + { 0x8222, 59230 }, + { 0x8223, 60549 }, + { 0x8224, 60552 }, + { 0x8225, 60555 }, + { 0x8226, 61533 }, + { 0x8227, 62200 }, + { 0x8228, 59239 }, + { 0x8229, 60558 }, + { 0x822A, 59242 }, + { 0x822B, 60561 }, + { 0x822C, 59245 }, + { 0x822D, 59248 }, + { 0x822E, 60564 }, + { 0x822F, 60567 }, + { 0x8230, 62431 }, + { 0x8231, 62434 }, + { 0x8232, 61536 }, + { 0x8233, 61553 }, + { 0x8234, 61563 }, + { 0x8235, 61558 }, + { 0x8236, 61539 }, + { 0x8237, 61544 }, + { 0x8238, 61568 }, + { 0x8239, 62203 }, + { 0x823A, 62210 }, + { 0x823B, 62215 }, + { 0x823C, 62222 }, + { 0x823D, 62206 }, + { 0x823E, 59253 }, + { 0x823F, 60571 }, + { 0x8240, 61573 }, + { 0x8241, 61582 }, + { 0x8242, 61576 }, + { 0x8243, 61586 }, + { 0x8244, 62227 }, + { 0x8245, 60577 }, + { 0x8246, 60574 }, + { 0x8247, 61591 }, + { 0x8248, 59256 }, + { 0x8249, 59259 }, + { 0x824A, 59264 }, + { 0x824B, 59269 }, + { 0x824C, 59273 }, + { 0x824D, 59276 }, + { 0x824E, 60581 }, + { 0x824F, 60584 }, + { 0x8250, 60595 }, + { 0x8251, 60587 }, + { 0x8252, 62437 }, + { 0x8253, 62440 }, + { 0x8254, 62465 }, + { 0x8255, 62470 }, + { 0x8256, 62477 }, + { 0x8257, 62445 }, + { 0x8258, 62453 }, + { 0x8259, 62482 }, + { 0x825A, 62487 }, + { 0x825B, 62492 }, + { 0x825C, 62500 }, + { 0x825D, 62507 }, + { 0x825E, 62458 }, + { 0x825F, 62516 }, + { 0x8260, 62230 }, + { 0x8261, 59281 }, + { 0x8262, 61594 }, + { 0x8263, 60601 }, + { 0x8264, 60613 }, + { 0x8265, 60642 }, + { 0x8266, 60619 }, + { 0x8267, 60625 }, + { 0x8268, 60636 }, + { 0x8269, 60609 }, + { 0x826A, 60604 }, + { 0x826B, 60648 }, + { 0x826C, 60653 }, + { 0x826D, 62233 }, + { 0x826E, 62291 }, + { 0x826F, 62236 }, + { 0x8270, 62260 }, + { 0x8271, 62266 }, + { 0x8272, 62272 }, + { 0x8273, 62279 }, + { 0x8274, 62242 }, + { 0x8275, 62248 }, + { 0x8276, 62285 }, + { 0x8277, 62254 }, + { 0x8278, 62297 }, + { 0x8279, 62303 }, + { 0x827A, 59284 }, + { 0x827B, 60661 }, + { 0x827C, 60664 }, + { 0x827D, 60667 }, + { 0x827E, 62310 }, + { 0x827F, 59287 }, + { 0x8280, 59290 }, + { 0x8281, 59310 }, + { 0x8282, 59315 }, + { 0x8283, 59320 }, + { 0x8284, 59295 }, + { 0x8285, 59300 }, + { 0x8286, 59325 }, + { 0x8287, 59305 }, + { 0x8288, 59330 }, + { 0x8289, 59335 }, + { 0x828A, 62313 }, + { 0x828B, 62326 }, + { 0x828C, 62316 }, + { 0x828D, 62321 }, + { 0x828E, 62331 }, + { 0x828F, 59340 }, + { 0x8290, 60670 }, + { 0x8291, 59343 }, + { 0x8292, 59346 }, + { 0x8293, 59349 }, + { 0x8294, 60770 }, + { 0x8295, 60673 }, + { 0x8296, 60685 }, + { 0x8297, 60690 }, + { 0x8298, 60725 }, + { 0x8299, 60695 }, + { 0x829A, 60730 }, + { 0x829B, 60735 }, + { 0x829C, 60740 }, + { 0x829D, 60700 }, + { 0x829E, 60745 }, + { 0x829F, 60750 }, + { 0x82A0, 60765 }, + { 0x82A1, 60755 }, + { 0x82A2, 60705 }, + { 0x82A3, 60710 }, + { 0x82A4, 60715 }, + { 0x82A5, 60720 }, + { 0x82A6, 60760 }, + { 0x82A7, 60680 }, + { 0x82A8, 60676 }, + { 0x82A9, 60774 }, + { 0x82AA, 60777 }, + { 0x82AB, 62521 }, + { 0x82AC, 60783 }, + { 0x82AD, 60786 }, + { 0x82AE, 61597 }, + { 0x82AF, 61600 }, + { 0x82B0, 61622 }, + { 0x82B1, 61632 }, + { 0x82B2, 61617 }, + { 0x82B3, 61637 }, + { 0x82B4, 61627 }, + { 0x82B5, 61605 }, + { 0x82B6, 61610 }, + { 0x82B7, 61642 }, + { 0x82B8, 62336 }, + { 0x82B9, 62339 }, + { 0x82BA, 60789 }, + { 0x82BB, 60792 }, + { 0x82BC, 60796 }, + { 0x82BD, 60807 }, + { 0x82BE, 62342 }, + { 0x82BF, 61645 }, + { 0x82C0, 62345 }, + { 0x82C1, 62524 }, + { 0x82C2, 62547 }, + { 0x82C3, 61648 }, + { 0x82C4, 61651 }, + { 0x82C5, 61656 }, + { 0x82C6, 61661 }, + { 0x82C7, 61664 }, + { 0x82C8, 61669 }, + { 0x82C9, 61710 }, + { 0x82CA, 61674 }, + { 0x82CB, 61679 }, + { 0x82CC, 61684 }, + { 0x82CD, 61689 }, + { 0x82CE, 61715 }, + { 0x82CF, 61695 }, + { 0x82D0, 61700 }, + { 0x82D1, 61705 }, + { 0x82D2, 62527 }, + { 0x82D3, 61720 }, + { 0x82D4, 61731 }, + { 0x82D5, 61723 }, + { 0x82D6, 62348 }, + { 0x82D7, 60818 }, + { 0x82D8, 60821 }, + { 0x82D9, 61735 }, + { 0x82DA, 62530 }, + { 0x82DB, 59352 }, + { 0x82DC, 59355 }, + { 0x82DD, 60827 }, + { 0x82DE, 61738 }, + { 0x82DF, 61741 }, + { 0x82E0, 61747 }, + { 0x82E1, 62351 }, + { 0x82E2, 59359 }, + { 0x82E3, 59362 }, + { 0x82E4, 60830 }, + { 0x82E5, 61750 }, + { 0x82E6, 62354 }, + { 0x82E7, 60833 }, + { 0x82E8, 62533 }, + { 0x82E9, 60836 }, + { 0x82EA, 61753 }, + { 0x82EB, 59367 }, + { 0x82EC, 59384 }, + { 0x82ED, 59374 }, + { 0x82EE, 59379 }, + { 0x82EF, 59370 }, + { 0x82F0, 60839 }, + { 0x82F1, 60842 }, + { 0x82F2, 60853 }, + { 0x82F3, 60857 }, + { 0x82F4, 60860 }, + { 0x82F5, 60870 }, + { 0x82F6, 60875 }, + { 0x82F7, 60880 }, + { 0x82F8, 60885 }, + { 0x82F9, 60865 }, + { 0x82FA, 61756 }, + { 0x82FB, 60890 }, + { 0x82FC, 59388 }, + { 0x82FD, 59391 }, + { 0x82FE, 59395 }, + { 0x82FF, 59398 }, + { 0x8300, 60893 }, + { 0x8301, 60896 }, + { 0x8302, 60915 }, + { 0x8303, 60899 }, + { 0x8304, 60904 }, + { 0x8305, 59402 }, + { 0x8306, 61759 }, + { 0x8307, 60920 }, + { 0x8308, 60923 }, + { 0x8309, 60926 }, + { 0x830A, 60929 }, + { 0x830B, 58419 }, + { 0x830C, 58427 }, + { 0x830D, 58422 }, + { 0x830E, 58441 }, + { 0x830F, 58452 }, + { 0x8310, 58431 }, + { 0x8311, 59405 }, + { 0x8312, 59408 }, + { 0x8313, 59411 }, + { 0x8314, 59447 }, + { 0x8315, 59442 }, + { 0x8316, 59437 }, + { 0x8317, 59418 }, + { 0x8318, 59427 }, + { 0x8319, 59414 }, + { 0x831A, 59451 }, + { 0x831B, 59455 }, + { 0x831C, 61762 }, + { 0x831D, 59461 }, + { 0x831E, 59481 }, + { 0x831F, 59469 }, + { 0x8320, 59476 }, + { 0x8321, 59464 }, + { 0x8322, 62357 }, + { 0x8323, 61765 }, + { 0x8324, 61773 }, + { 0x8325, 61768 }, + { 0x8326, 59486 }, + { 0x8327, 59489 }, + { 0x8328, 59493 }, + { 0x8329, 59500 }, + { 0x832A, 59496 }, + { 0x832B, 60937 }, + { 0x832C, 60940 }, + { 0x832D, 60947 }, + { 0x832E, 60954 }, + { 0x832F, 60959 }, + { 0x8330, 60983 }, + { 0x8331, 60964 }, + { 0x8332, 60976 }, + { 0x8333, 60969 }, + { 0x8334, 60988 }, + { 0x8335, 60991 }, + { 0x8336, 61778 }, + { 0x8337, 60994 }, + { 0x8338, 60997 }, + { 0x8339, 61110 }, + { 0x833A, 61049 }, + { 0x833B, 61054 }, + { 0x833C, 61009 }, + { 0x833D, 61059 }, + { 0x833E, 61094 }, + { 0x833F, 61064 }, + { 0x8340, 61014 }, + { 0x8341, 61019 }, + { 0x8342, 61069 }, + { 0x8343, 61024 }, + { 0x8344, 61074 }, + { 0x8345, 61029 }, + { 0x8346, 61079 }, + { 0x8347, 61084 }, + { 0x8348, 61034 }, + { 0x8349, 61089 }, + { 0x834A, 61100 }, + { 0x834B, 61039 }, + { 0x834C, 61002 }, + { 0x834D, 61044 }, + { 0x834E, 61105 }, + { 0x834F, 62360 }, + { 0x8350, 62363 }, + { 0x8351, 61115 }, + { 0x8352, 61118 }, + { 0x8353, 61123 }, + { 0x8354, 61128 }, + { 0x8355, 61133 }, + { 0x8356, 61784 }, + { 0x8357, 61781 }, + { 0x8358, 62536 }, + { 0x8359, 62368 }, + { 0x835A, 61138 }, + { 0x835B, 61141 }, + { 0x835C, 61146 }, + { 0x835D, 59505 }, + { 0x835E, 59508 }, + { 0x835F, 59512 }, + { 0x8360, 61149 }, + { 0x8361, 61787 }, + { 0x8362, 61152 }, + { 0x8363, 59518 }, + { 0x8364, 59521 }, + { 0x8365, 61155 }, + { 0x8366, 61158 }, + { 0x8367, 61161 }, + { 0x8368, 61166 }, + { 0x8369, 61790 }, + { 0x836A, 59526 }, + { 0x836B, 61169 }, + { 0x836C, 61172 }, + { 0x836D, 62371 }, + { 0x836E, 61177 }, + { 0x8400, 62658 }, + { 0x8401, 63027 }, + { 0x8402, 62787 }, + { 0x8403, 62723 }, + { 0x8404, 62625 }, + { 0x8405, 62968 }, + { 0x8406, 62929 }, + { 0x8407, 62875 }, + { 0x8408, 63055 }, + { 0x8409, 62815 }, + { 0x840A, 62751 }, + { 0x840B, 62636 }, + { 0x840C, 62973 }, + { 0x840D, 62934 }, + { 0x840E, 62880 }, + { 0x840F, 62782 }, + { 0x8410, 62718 }, + { 0x8411, 62620 }, + { 0x8412, 62963 }, + { 0x8413, 62924 }, + { 0x8414, 62870 }, + { 0x8415, 62579 }, + { 0x8416, 62684 }, + { 0x8417, 63060 }, + { 0x8418, 62820 }, + { 0x8419, 62756 }, + { 0x841A, 62641 }, + { 0x841B, 62978 }, + { 0x841C, 62939 }, + { 0x841D, 62885 }, + { 0x841E, 62584 }, + { 0x841F, 62689 }, + { 0x8420, 63065 }, + { 0x8421, 62825 }, + { 0x8422, 62761 }, + { 0x8423, 62694 }, + { 0x8424, 63070 }, + { 0x8425, 63075 }, + { 0x8426, 62830 }, + { 0x8427, 62766 }, + { 0x8428, 62646 }, + { 0x8429, 62983 }, + { 0x842A, 62944 }, + { 0x842B, 62890 }, + { 0x842C, 62589 }, + { 0x842D, 62699 }, + { 0x842E, 63082 }, + { 0x842F, 63087 }, + { 0x8430, 62835 }, + { 0x8431, 62771 }, + { 0x8432, 63019 }, + { 0x8433, 63011 }, + { 0x8434, 62569 }, + { 0x8435, 62674 }, + { 0x8436, 63043 }, + { 0x8437, 63048 }, + { 0x8438, 62810 }, + { 0x8439, 62746 }, + { 0x843A, 63094 }, + { 0x843B, 63101 }, + { 0x843C, 62840 }, + { 0x843D, 62863 }, + { 0x843E, 62847 }, + { 0x843F, 62855 }, + { 0x8440, 62651 }, + { 0x8441, 63004 }, + { 0x8442, 62988 }, + { 0x8443, 62996 }, + { 0x8444, 62949 }, + { 0x8445, 62956 }, + { 0x8446, 62895 }, + { 0x8447, 62910 }, + { 0x8448, 62917 }, + { 0x8449, 62902 }, + { 0x844A, 62663 }, + { 0x844B, 63032 }, + { 0x844C, 62792 }, + { 0x844D, 62728 }, + { 0x844E, 62630 }, + { 0x844F, 62564 }, + { 0x8450, 62669 }, + { 0x8451, 63038 }, + { 0x8452, 62798 }, + { 0x8453, 62803 }, + { 0x8454, 62734 }, + { 0x8455, 62739 }, + { 0x8456, 63112 }, + { 0x8457, 63108 }, + { 0x8458, 62574 }, + { 0x8459, 62679 }, + { 0x845A, 62594 }, + { 0x845B, 62704 }, + { 0x845C, 62776 }, + { 0x845D, 62600 }, + { 0x845E, 62710 }, + { 0x845F, 62608 }, + { 0x8460, 62614 }, + { 0x8461, 62550 }, + { 0x8462, 62557 }, + { 0x8470, 63116 }, + { 0x8471, 63133 }, + { 0x8472, 63123 }, + { 0x8473, 63128 }, + { 0x9000, 56261 }, + { 0x9001, 56295 }, + { 0x9002, 57281 }, + { 0x9003, 56256 }, + { 0x9004, 56251 }, + { 0x9005, 56625 }, + { 0x9006, 56620 }, + { 0x9007, 56920 }, + { 0x9008, 57186 }, + { 0x9009, 57267 }, + { 0x900A, 57194 }, + { 0x900B, 57198 }, + { 0x900C, 56937 }, + { 0x900D, 56209 }, + { 0x900E, 56118 }, + { 0x900F, 56607 }, + { 0x9010, 57136 }, + { 0x9011, 57219 }, + { 0x9012, 57228 }, + { 0x9013, 56812 }, + { 0x9014, 56282 }, + { 0x9015, 56566 }, + { 0x9016, 56484 }, + { 0x9017, 56590 }, + { 0x9018, 56847 }, + { 0x9019, 56286 }, + { 0x901A, 56132 }, + { 0x901B, 56743 }, + { 0x901C, 57158 }, + { 0x901D, 57035 }, + { 0x901E, 57022 }, + { 0x901F, 56791 }, + { 0x9020, 56575 }, + { 0x9021, 56824 }, + { 0x9022, 56838 }, + { 0x9023, 56843 }, + { 0x9024, 56512 }, + { 0x9025, 56265 }, + { 0x9026, 56585 }, + { 0x9027, 56820 }, + { 0x9028, 57295 }, + { 0x9029, 56594 }, + { 0x902A, 56807 }, + { 0x902B, 56801 }, + { 0x902C, 57172 }, + { 0x902D, 56273 }, + { 0x902E, 56242 }, + { 0x902F, 56114 }, + { 0x9030, 56147 }, + { 0x9031, 56816 }, + { 0x9032, 57163 }, + { 0x9033, 56203 }, + { 0x9034, 56400 }, + { 0x9035, 57128 }, + { 0x9036, 57099 }, + { 0x9037, 56507 }, + { 0x9038, 57026 }, + { 0x9039, 57177 }, + { 0x903A, 56924 }, + { 0x903B, 56856 }, + { 0x903C, 56783 }, + { 0x903D, 57262 }, + { 0x903E, 57276 }, + { 0x903F, 56721 }, + { 0x9040, 56137 }, + { 0x9041, 56775 }, + { 0x9042, 56928 }, + { 0x9043, 57094 }, + { 0x9044, 57303 }, + { 0x9045, 57299 }, + { 0x9046, 56127 }, + { 0x9047, 56561 }, + { 0x9048, 56246 }, + { 0x9049, 56779 }, + { 0x904A, 56933 }, + { 0x904B, 57335 }, + { 0x904C, 57327 }, + { 0x904D, 57030 }, + { 0x904E, 57140 }, + { 0x904F, 56725 }, + { 0x9050, 56663 }, + { 0x9051, 57223 }, + { 0x9052, 57213 }, + { 0x9053, 56829 }, + { 0x9054, 57331 }, + { 0x9055, 56710 }, + { 0x9056, 56702 }, + { 0x9057, 56556 }, + { 0x9058, 56615 }, + { 0x9059, 56580 }, + { 0x905A, 57181 }, + { 0x905B, 56571 }, + { 0x905C, 57203 }, + { 0x905D, 56771 }, + { 0x905E, 57271 }, + { 0x905F, 57257 }, + { 0x9060, 56337 }, + { 0x9061, 56767 }, + { 0x9062, 57323 }, + { 0x9063, 57089 }, + { 0x9064, 57233 }, + { 0x9065, 56796 }, + { 0x9066, 56269 }, + { 0x9067, 56851 }, + { 0x9068, 56912 }, + { 0x9069, 56598 }, + { 0x906A, 56290 }, + { 0x906B, 57347 }, + { 0x906C, 57339 }, + { 0x906D, 57315 }, + { 0x906E, 57351 }, + { 0x906F, 57355 }, + { 0x9070, 57319 }, + { 0x9071, 57343 }, + { 0x9072, 57311 }, + { 0x9073, 57307 }, + { 0x9074, 56342 }, + { 0x9075, 57167 }, + { 0x9076, 57285 }, + { 0x9077, 57290 }, + { 0x9078, 56277 }, + { 0x9079, 56141 }, + { 0x907A, 57132 }, + { 0x907B, 57109 }, + { 0x907C, 56156 }, + { 0x907D, 56151 }, + { 0x907E, 56787 }, + { 0x907F, 56516 }, + { 0x9080, 56237 }, + { 0x9081, 56762 }, + { 0x9082, 56757 }, + { 0x9083, 56752 }, + { 0x9084, 56833 }, + { 0x9085, 56123 }, + { 0x9086, 56233 }, + { 0x9087, 56611 }, + { 0x9088, 57085 }, + { 0x9089, 56748 }, + { 0x908A, 56532 }, + { 0x908B, 56526 }, + { 0x908C, 56538 }, + { 0x908D, 56550 }, + { 0x908E, 56544 }, + { 0x908F, 56472 }, + { 0x9090, 56495 }, + { 0x9091, 56489 }, + { 0x9092, 56883 }, + { 0x9093, 56900 }, + { 0x9094, 56893 }, + { 0x9095, 56887 }, + { 0x9096, 57190 }, + { 0x9097, 56214 }, + { 0x9098, 57249 }, + { 0x9099, 56706 }, + { 0x909A, 56171 }, + { 0x909B, 56193 }, + { 0x909C, 56161 }, + { 0x909D, 56188 }, + { 0x909E, 56166 }, + { 0x909F, 56183 }, + { 0x90A0, 56198 }, + { 0x90A1, 56177 }, + { 0x90A2, 56961 }, + { 0x90A3, 56941 }, + { 0x90A4, 56992 }, + { 0x90A5, 56948 }, + { 0x90A6, 56967 }, + { 0x90A7, 57011 }, + { 0x90A8, 56998 }, + { 0x90A9, 57004 }, + { 0x90AA, 56973 }, + { 0x90AB, 56979 }, + { 0x90AC, 56501 }, + { 0x90AD, 57207 }, + { 0x90AE, 57123 }, + { 0x90AF, 57118 }, + { 0x90B0, 57113 }, + { 0x90B1, 56955 }, + { 0x90B2, 57016 }, + { 0x90B3, 56985 }, + { 0x90B4, 57237 }, + { 0x90B5, 57243 }, + { 0x90B6, 56714 }, + { 0x90B7, 56916 }, + { 0x90B8, 57253 }, + { 0x90B9, 56405 }, + { 0x90BA, 56438 }, + { 0x90BB, 56450 }, + { 0x90BC, 56361 }, + { 0x90BD, 56412 }, + { 0x90BE, 56393 }, + { 0x90BF, 56418 }, + { 0x90C0, 56444 }, + { 0x90C1, 56431 }, + { 0x90C2, 56424 }, + { 0x90C3, 56372 }, + { 0x90C4, 56379 }, + { 0x90C5, 56347 }, + { 0x90C6, 56386 }, + { 0x90C7, 56367 }, + { 0x90C8, 56218 }, + { 0x90C9, 56223 }, + { 0x90CA, 56228 }, + { 0x90CB, 56354 }, + { 0x90CC, 56456 }, + { 0x90CD, 56658 }, + { 0x90CE, 56327 }, + { 0x90CF, 56332 }, + { 0x90D0, 56299 }, + { 0x90D1, 56320 }, + { 0x90D2, 56306 }, + { 0x90D3, 56313 }, + { 0x90D4, 56630 }, + { 0x90D5, 56651 }, + { 0x90D6, 56637 }, + { 0x90D7, 56644 }, + { 0x90D8, 56462 }, + { 0x90D9, 56467 }, + { 0x90DA, 56861 }, + { 0x90DB, 56867 }, + { 0x90DC, 56873 }, + { 0x90DD, 56878 }, + { 0x90DE, 57062 }, + { 0x90DF, 57067 }, + { 0x90E0, 57073 }, + { 0x90E1, 57079 }, + { 0x90E2, 57039 }, + { 0x90E3, 57044 }, + { 0x90E4, 57050 }, + { 0x90E5, 57056 }, + { 0x90E6, 56907 }, + { 0x90E7, 57104 }, + { 0x90E8, 56603 }, + { 0x90E9, 56687 }, + { 0x90EA, 56697 }, + { 0x90EB, 56672 }, + { 0x90EC, 56667 }, + { 0x90ED, 56677 }, + { 0x90EE, 56692 }, + { 0x90EF, 56682 }, + { 0x90F0, 57152 }, + { 0x90F1, 56737 }, + { 0x90F2, 57146 }, + { 0x90F3, 56731 }, + { 0x90F4, 56521 }, + { 0x90F5, 56478 }, + { 0x9100, 41562 }, + { 0x9101, 41524 }, + { 0x9102, 41404 }, + { 0x9103, 41695 }, + { 0x9104, 41508 }, + { 0x9105, 41470 }, + { 0x9106, 41337 }, + { 0x9107, 41454 }, + { 0x9108, 41558 }, + { 0x9109, 41249 }, + { 0x910A, 41238 }, + { 0x910B, 41459 }, + { 0x910C, 41290 }, + { 0x910D, 41776 }, + { 0x910E, 41780 }, + { 0x910F, 41784 }, + { 0x9110, 41659 }, + { 0x9111, 41662 }, + { 0x9112, 41485 }, + { 0x9113, 41646 }, + { 0x9114, 41395 }, + { 0x9115, 41643 }, + { 0x9116, 41728 }, + { 0x9117, 41861 }, + { 0x9118, 42079 }, + { 0x9119, 41999 }, + { 0x911A, 41995 }, + { 0x911B, 41788 }, + { 0x911C, 42075 }, + { 0x911D, 42086 }, + { 0x911E, 41215 }, + { 0x911F, 41219 }, + { 0x9120, 41225 }, + { 0x9121, 41195 }, + { 0x9122, 41199 }, + { 0x9123, 41203 }, + { 0x9124, 41209 }, + { 0x9125, 41300 }, + { 0x9126, 41304 }, + { 0x9129, 41719 }, + { 0x912A, 41520 }, + { 0x912B, 41516 }, + { 0x912C, 41308 }, + { 0x912D, 41312 }, + { 0x912E, 41666 }, + { 0x912F, 41670 }, + { 0x9130, 41462 }, + { 0x9131, 41466 }, + { 0x9132, 41690 }, + { 0x9133, 41685 }, + { 0x9134, 41504 }, + { 0x9135, 41245 }, + { 0x9136, 41550 }, + { 0x9137, 41554 }, + { 0x9138, 42103 }, + { 0x9139, 42107 }, + { 0x913A, 41438 }, + { 0x913B, 41481 }, + { 0x913C, 41328 }, + { 0x913D, 41681 }, + { 0x913E, 41532 }, + { 0x913F, 42039 }, + { 0x9140, 42123 }, + { 0x9141, 42115 }, + { 0x9142, 41280 }, + { 0x9143, 41231 }, + { 0x9144, 41356 }, + { 0x9145, 41496 }, + { 0x9146, 41575 }, + { 0x9147, 41570 }, + { 0x9148, 41819 }, + { 0x9149, 41799 }, + { 0x914A, 41843 }, + { 0x914B, 41837 }, + { 0x914C, 41855 }, + { 0x914D, 41849 }, + { 0x914E, 41831 }, + { 0x914F, 41825 }, + { 0x9150, 41812 }, + { 0x9151, 41805 }, + { 0x9152, 41347 }, + { 0x9153, 41342 }, + { 0x9154, 42133 }, + { 0x9155, 42127 }, + { 0x9156, 42096 }, + { 0x9157, 41371 }, + { 0x9158, 41724 }, + { 0x9159, 41352 }, + { 0x915A, 41654 }, + { 0x915B, 41649 }, + { 0x915C, 41398 }, + { 0x915D, 41477 }, + { 0x915E, 41324 }, + { 0x915F, 41677 }, + { 0x9160, 41528 }, + { 0x9161, 42035 }, + { 0x9162, 42119 }, + { 0x9163, 42111 }, + { 0x9164, 41274 }, + { 0x9165, 41896 }, + { 0x9166, 41975 }, + { 0x9167, 41958 }, + { 0x9168, 41962 }, + { 0x9169, 41966 }, + { 0x916A, 41703 }, + { 0x916B, 41707 }, + { 0x916C, 41711 }, + { 0x916D, 41970 }, + { 0x916E, 41917 }, + { 0x916F, 41921 }, + { 0x9170, 41925 }, + { 0x9171, 41929 }, + { 0x9172, 41933 }, + { 0x9173, 41383 }, + { 0x9174, 41262 }, + { 0x9175, 41379 }, + { 0x9176, 41258 }, + { 0x9177, 41387 }, + { 0x9178, 41266 }, + { 0x9179, 41391 }, + { 0x917A, 41270 }, + { 0x917B, 41908 }, + { 0x917C, 41954 }, + { 0x917D, 41937 }, + { 0x917E, 41980 }, + { 0x917F, 41946 }, + { 0x9180, 41988 }, + { 0x9181, 41984 }, + { 0x9182, 41900 }, + { 0x9183, 42043 }, + { 0x9184, 42047 }, + { 0x9185, 41878 }, + { 0x9186, 41870 }, + { 0x9187, 41887 }, + { 0x9188, 41904 }, + { 0x9189, 41874 }, + { 0x918A, 41912 }, + { 0x918B, 41941 }, + { 0x918C, 42100 }, + { 0x918D, 41580 }, + { 0x918E, 41235 }, + { 0x918F, 41451 }, + { 0x9190, 41435 }, + { 0x9191, 41408 }, + { 0x9192, 41992 }, + { 0x9193, 42083 }, + { 0x9194, 41417 }, + { 0x9195, 41411 }, + { 0x9196, 41242 }, + { 0x9197, 41360 }, + { 0x9198, 41715 }, + { 0x9199, 41367 }, + { 0x919A, 41363 }, + { 0x919B, 41732 }, + { 0x919C, 41736 }, + { 0x919D, 41740 }, + { 0x919E, 41744 }, + { 0x919F, 41748 }, + { 0x91A0, 41752 }, + { 0x91A1, 41756 }, + { 0x91A2, 41760 }, + { 0x91A3, 41764 }, + { 0x91A4, 41768 }, + { 0x91A5, 41772 }, + { 0x91A6, 42090 }, + { 0x91A7, 42093 }, + { 0x91A8, 41253 }, + { 0x91A9, 41512 }, + { 0x91AA, 41882 }, + { 0x91AB, 41865 }, + { 0x91AC, 41950 }, + { 0x91AD, 41891 }, + { 0x91AE, 41447 }, + { 0x91AF, 41442 }, + { 0x91B0, 41332 }, + { 0x91B1, 42003 }, + { 0x91B2, 42007 }, + { 0x91B3, 41375 }, + { 0x91B4, 41293 }, + { 0x91B5, 41296 }, + { 0x91B6, 41536 }, + { 0x91B7, 41422 }, + { 0x91B8, 41489 }, + { 0x91B9, 42059 }, + { 0x91BA, 42055 }, + { 0x91BB, 41539 }, + { 0x91BC, 41546 }, + { 0x91BD, 42071 }, + { 0x91BE, 42067 }, + { 0x91BF, 41320 }, + { 0x91C0, 41316 }, + { 0x91C1, 41425 }, + { 0x91C2, 41430 }, + { 0x91C3, 41492 }, + { 0x91C4, 42051 }, + { 0x91C5, 41542 }, + { 0x91C6, 42063 }, + { 0x91C7, 41583 }, + { 0x91C8, 41598 }, + { 0x91C9, 41590 }, + { 0x91CA, 41605 }, + { 0x91CB, 41612 }, + { 0x91CC, 41619 }, + { 0x91CD, 41627 }, + { 0x91CE, 41635 }, + { 0x91CF, 41401 }, + { 0x91D0, 42011 }, + { 0x91D1, 42016 }, + { 0x91D2, 41566 }, + { 0x91D3, 41474 }, + { 0x91D4, 41674 }, + { 0x91D5, 41501 }, + { 0x91D6, 42028 }, + { 0x91D7, 41700 }, + { 0x91D8, 41792 }, + { 0x91D9, 42021 }, + { 0x91DA, 42024 }, + { 0x91DB, 42031 }, + { 0x91DC, 41795 }, + { 0x91DD, 41286 }, + { 0x9200, 11902 }, + { 0x9201, 11906 }, + { 0x9202, 11910 }, + { 0x9203, 11914 }, + { 0x9204, 11918 }, + { 0x9205, 11922 }, + { 0x9206, 11926 }, + { 0x9207, 11930 }, + { 0x9208, 11934 }, + { 0x9209, 11938 }, + { 0x920A, 11942 }, + { 0x920B, 11946 }, + { 0x920C, 11950 }, + { 0x920D, 11954 }, + { 0x920E, 11958 }, + { 0x920F, 11962 }, + { 0x9210, 11966 }, + { 0x9211, 11970 }, + { 0x9212, 11974 }, + { 0x9213, 11978 }, + { 0x9214, 11982 }, + { 0x9215, 11986 }, + { 0x9216, 11990 }, + { 0x9217, 11994 }, + { 0x9218, 11998 }, + { 0x9219, 12002 }, + { 0x921A, 12006 }, + { 0x921B, 12010 }, + { 0x921C, 12014 }, + { 0x921D, 13374 }, + { 0x921E, 13378 }, + { 0x921F, 13382 }, + { 0x9220, 13386 }, + { 0x9221, 13390 }, + { 0x9222, 13394 }, + { 0x9223, 13398 }, + { 0x9224, 13402 }, + { 0x9225, 13406 }, + { 0x9226, 13410 }, + { 0x9227, 13414 }, + { 0x9228, 13418 }, + { 0x9229, 13422 }, + { 0x922A, 13426 }, + { 0x922B, 13430 }, + { 0x922C, 13434 }, + { 0x922D, 13438 }, + { 0x922E, 13442 }, + { 0x922F, 13446 }, + { 0x9230, 13450 }, + { 0x9231, 13454 }, + { 0x9232, 13458 }, + { 0x9233, 13462 }, + { 0x9234, 13466 }, + { 0x9235, 13470 }, + { 0x9236, 13474 }, + { 0x9237, 13478 }, + { 0x9238, 13482 }, + { 0x9239, 13486 }, + { 0x923A, 13490 }, + { 0x923B, 13494 }, + { 0x923C, 13498 }, + { 0x923D, 13502 }, + { 0x923E, 13506 }, + { 0x923F, 13510 }, + { 0x9240, 13514 }, + { 0x9241, 13518 }, + { 0x9242, 57564 }, + { 0x9243, 57572 }, + { 0x9244, 57568 }, + { 0x9245, 13031 }, + { 0x9300, 54871 }, + { 0x9301, 31216 }, + { 0x9302, 31188 }, + { 0x9303, 31204 }, + { 0x9304, 31200 }, + { 0x9305, 31185 }, + { 0x9306, 66100 }, + { 0x9307, 66067 }, + { 0x9308, 66082 }, + { 0x9309, 66128 }, + { 0x930A, 66147 }, + { 0x930B, 66272 }, + { 0x930C, 66097 }, + { 0x930D, 66263 }, + { 0x930E, 66201 }, + { 0x930F, 66299 }, + { 0x9310, 66254 }, + { 0x9311, 66296 }, + { 0x9312, 66184 }, + { 0x9313, 66281 }, + { 0x9314, 66085 }, + { 0x9315, 66134 }, + { 0x9316, 66143 }, + { 0x9317, 66172 }, + { 0x9318, 66220 }, + { 0x9319, 66125 }, + { 0x931A, 66166 }, + { 0x931B, 66266 }, + { 0x931C, 66064 }, + { 0x931D, 66052 }, + { 0x931E, 66251 }, + { 0x931F, 66217 }, + { 0x9320, 66110 }, + { 0x9321, 66103 }, + { 0x9322, 66287 }, + { 0x9323, 66060 }, + { 0x9324, 66160 }, + { 0x9325, 66116 }, + { 0x9326, 66205 }, + { 0x9327, 66151 }, + { 0x9328, 66226 }, + { 0x9329, 66193 }, + { 0x932A, 66119 }, + { 0x932B, 66178 }, + { 0x932C, 66239 }, + { 0x932D, 66055 }, + { 0x932E, 66187 }, + { 0x932F, 66074 }, + { 0x9330, 66257 }, + { 0x9331, 66088 }, + { 0x9332, 66233 }, + { 0x9333, 66275 }, + { 0x9334, 66163 }, + { 0x9335, 66122 }, + { 0x9336, 66113 }, + { 0x9337, 66196 }, + { 0x9338, 66208 }, + { 0x9339, 66157 }, + { 0x933A, 66175 }, + { 0x933B, 66091 }, + { 0x933C, 66293 }, + { 0x933D, 66106 }, + { 0x933E, 66278 }, + { 0x933F, 66229 }, + { 0x9340, 66154 }, + { 0x9341, 66284 }, + { 0x9342, 66304 }, + { 0x9343, 66071 }, + { 0x9344, 66094 }, + { 0x9345, 66169 }, + { 0x9346, 66079 }, + { 0x9347, 66214 }, + { 0x9348, 66211 }, + { 0x9349, 66137 }, + { 0x934A, 66260 }, + { 0x934B, 66242 }, + { 0x934C, 66190 }, + { 0x934D, 66181 }, + { 0x934E, 66245 }, + { 0x934F, 66131 }, + { 0x9350, 66140 }, + { 0x9351, 66269 }, + { 0x9352, 66248 }, + { 0x9353, 66047 }, + { 0x9354, 66290 }, + { 0x9355, 66236 }, + { 0x9356, 66223 }, + { 0x9360, 48474 }, + { 0x9361, 48484 }, + { 0x9362, 48514 }, + { 0x9363, 48494 }, + { 0x9364, 48489 }, + { 0x9365, 48479 }, + { 0x9366, 48509 }, + { 0x9367, 48504 }, + { 0x9368, 48499 }, + { 0x9369, 48429 }, + { 0x936A, 48439 }, + { 0x936B, 48469 }, + { 0x936C, 48449 }, + { 0x936D, 48444 }, + { 0x936E, 48434 }, + { 0x936F, 48464 }, + { 0x9370, 48459 }, + { 0x9371, 48454 }, + { 0x9400, 70678 }, + { 0x9401, 70682 }, + { 0x9402, 70686 }, + { 0x9403, 70690 }, + { 0x9404, 70694 }, + { 0x9405, 70698 }, + { 0x9406, 70702 }, + { 0x9407, 70706 }, + { 0x9408, 70710 }, + { 0x9409, 70714 }, + { 0x940A, 70718 }, + { 0x940B, 70722 }, + { 0x940C, 70726 }, + { 0x940D, 70730 }, + { 0x940E, 70734 }, + { 0x940F, 70738 }, + { 0x9410, 70742 }, + { 0x9411, 70746 }, + { 0x9412, 70750 }, + { 0x9413, 70754 }, + { 0x9414, 70758 }, + { 0x9415, 70762 }, + { 0x9416, 70766 }, + { 0x9417, 70770 }, + { 0x9418, 70774 }, + { 0x9419, 70778 }, + { 0x941A, 69654 }, + { 0x941B, 69658 }, + { 0x941C, 69662 }, + { 0x941D, 69666 }, + { 0x941E, 69670 }, + { 0x941F, 69674 }, + { 0x9420, 69678 }, + { 0x9421, 69682 }, + { 0x9422, 69686 }, + { 0x9423, 69690 }, + { 0x9424, 69694 }, + { 0x9425, 69698 }, + { 0x9426, 69702 }, + { 0x9427, 69706 }, + { 0x9428, 69710 }, + { 0x9429, 69714 }, + { 0x942A, 69718 }, + { 0x942B, 69722 }, + { 0x942C, 69726 }, + { 0x942D, 69730 }, + { 0x942E, 69734 }, + { 0x942F, 69738 }, + { 0x9430, 69742 }, + { 0x9431, 69746 }, + { 0x9432, 69750 }, + { 0x9433, 69754 }, + { 0x9434, 71437 }, + { 0x9435, 71441 }, + { 0x9436, 71445 }, + { 0x9437, 71449 }, + { 0x9438, 71453 }, + { 0x9439, 71457 }, + { 0x943A, 71461 }, + { 0x943B, 71465 }, + { 0x943C, 71469 }, + { 0x943D, 71473 }, + { 0x943E, 71477 }, + { 0x943F, 71481 }, + { 0x9440, 71485 }, + { 0x9441, 71489 }, + { 0x9442, 71493 }, + { 0x9443, 71497 }, + { 0x9444, 71501 }, + { 0x9445, 71505 }, + { 0x9446, 71509 }, + { 0x9447, 71513 }, + { 0x9448, 71517 }, + { 0x9449, 71521 }, + { 0x944A, 71525 }, + { 0x944B, 71529 }, + { 0x944C, 71533 }, + { 0x944D, 71537 }, + { 0x944E, 71222 }, + { 0x944F, 71226 }, + { 0x9450, 71230 }, + { 0x9451, 71234 }, + { 0x9452, 71238 }, + { 0x9453, 71242 }, + { 0x9454, 71246 }, + { 0x9456, 71250 }, + { 0x9457, 71254 }, + { 0x9458, 71258 }, + { 0x9459, 71262 }, + { 0x945A, 71266 }, + { 0x945B, 71270 }, + { 0x945C, 71274 }, + { 0x945D, 71278 }, + { 0x945E, 71282 }, + { 0x945F, 71286 }, + { 0x9460, 71290 }, + { 0x9461, 71294 }, + { 0x9462, 71298 }, + { 0x9463, 71302 }, + { 0x9464, 71306 }, + { 0x9465, 71310 }, + { 0x9466, 71314 }, + { 0x9467, 71318 }, + { 0x9468, 70152 }, + { 0x9469, 70157 }, + { 0x946A, 70162 }, + { 0x946B, 70167 }, + { 0x946C, 70172 }, + { 0x946D, 70177 }, + { 0x946E, 70182 }, + { 0x946F, 70187 }, + { 0x9470, 70192 }, + { 0x9471, 70197 }, + { 0x9472, 70202 }, + { 0x9473, 70207 }, + { 0x9474, 70212 }, + { 0x9475, 70217 }, + { 0x9476, 70222 }, + { 0x9477, 70227 }, + { 0x9478, 70232 }, + { 0x9479, 70237 }, + { 0x947A, 70242 }, + { 0x947B, 70247 }, + { 0x947C, 70252 }, + { 0x947D, 70257 }, + { 0x947E, 70262 }, + { 0x947F, 70267 }, + { 0x9480, 70272 }, + { 0x9481, 70277 }, + { 0x9482, 69891 }, + { 0x9483, 69896 }, + { 0x9484, 69901 }, + { 0x9485, 69906 }, + { 0x9486, 69911 }, + { 0x9487, 69916 }, + { 0x9488, 69921 }, + { 0x9489, 69926 }, + { 0x948A, 69931 }, + { 0x948B, 69936 }, + { 0x948C, 69941 }, + { 0x948D, 69946 }, + { 0x948E, 69951 }, + { 0x948F, 69956 }, + { 0x9490, 69961 }, + { 0x9491, 69966 }, + { 0x9492, 69971 }, + { 0x9493, 69976 }, + { 0x9494, 69981 }, + { 0x9495, 69986 }, + { 0x9496, 69991 }, + { 0x9497, 69996 }, + { 0x9498, 70001 }, + { 0x9499, 70006 }, + { 0x949A, 70011 }, + { 0x949B, 70016 }, + { 0x949C, 71742 }, + { 0x949E, 71746 }, + { 0x949F, 71750 }, + { 0x94A2, 71754 }, + { 0x94A5, 71758 }, + { 0x94A6, 71762 }, + { 0x94A9, 71766 }, + { 0x94AA, 71770 }, + { 0x94AB, 71774 }, + { 0x94AC, 71778 }, + { 0x94AE, 71782 }, + { 0x94AF, 71786 }, + { 0x94B0, 71790 }, + { 0x94B1, 71794 }, + { 0x94B2, 71798 }, + { 0x94B3, 71802 }, + { 0x94B4, 71806 }, + { 0x94B5, 71810 }, + { 0x94B6, 71650 }, + { 0x94B7, 71654 }, + { 0x94B8, 71658 }, + { 0x94B9, 71662 }, + { 0x94BB, 71666 }, + { 0x94BD, 71670 }, + { 0x94BE, 71674 }, + { 0x94BF, 71678 }, + { 0x94C0, 71682 }, + { 0x94C1, 71686 }, + { 0x94C2, 71690 }, + { 0x94C3, 71694 }, + { 0x94C5, 71698 }, + { 0x94C6, 71702 }, + { 0x94C7, 71706 }, + { 0x94C8, 71710 }, + { 0x94C9, 71714 }, + { 0x94CA, 71718 }, + { 0x94CB, 71722 }, + { 0x94CC, 71726 }, + { 0x94CD, 71730 }, + { 0x94CE, 71734 }, + { 0x94CF, 71738 }, + { 0x94D0, 70548 }, + { 0x94D1, 70553 }, + { 0x94D2, 70558 }, + { 0x94D3, 70563 }, + { 0x94D4, 70568 }, + { 0x94D5, 70573 }, + { 0x94D6, 70578 }, + { 0x94D7, 70583 }, + { 0x94D8, 70588 }, + { 0x94D9, 70593 }, + { 0x94DA, 70598 }, + { 0x94DB, 70603 }, + { 0x94DC, 70608 }, + { 0x94DD, 70613 }, + { 0x94DE, 70618 }, + { 0x94DF, 70623 }, + { 0x94E0, 70628 }, + { 0x94E1, 70633 }, + { 0x94E2, 70638 }, + { 0x94E3, 70643 }, + { 0x94E4, 70648 }, + { 0x94E5, 70653 }, + { 0x94E6, 70658 }, + { 0x94E7, 70663 }, + { 0x94E8, 70668 }, + { 0x94E9, 70673 }, + { 0x94EA, 70418 }, + { 0x94EB, 70423 }, + { 0x94EC, 70428 }, + { 0x94ED, 70433 }, + { 0x94EE, 70438 }, + { 0x94EF, 70443 }, + { 0x94F0, 70448 }, + { 0x94F1, 70453 }, + { 0x94F2, 70458 }, + { 0x94F3, 70463 }, + { 0x94F4, 70468 }, + { 0x94F5, 70473 }, + { 0x94F6, 70478 }, + { 0x94F7, 70483 }, + { 0x94F8, 70488 }, + { 0x94F9, 70493 }, + { 0x94FA, 70498 }, + { 0x94FB, 70503 }, + { 0x94FC, 70508 }, + { 0x94FD, 70513 }, + { 0x94FE, 70518 }, + { 0x94FF, 70523 }, + { 0x9500, 70528 }, + { 0x9501, 70533 }, + { 0x9502, 70538 }, + { 0x9503, 70543 }, + { 0x9504, 71918 }, + { 0x9505, 71922 }, + { 0x9507, 71926 }, + { 0x9508, 71930 }, + { 0x9509, 71934 }, + { 0x950A, 71938 }, + { 0x950D, 71942 }, + { 0x950E, 71946 }, + { 0x950F, 71950 }, + { 0x9510, 71954 }, + { 0x9511, 71958 }, + { 0x9512, 71962 }, + { 0x9513, 71966 }, + { 0x9514, 71970 }, + { 0x9516, 71974 }, + { 0x9517, 71978 }, + { 0x9518, 71982 }, + { 0x9519, 71986 }, + { 0x951A, 71990 }, + { 0x951B, 71994 }, + { 0x951C, 71998 }, + { 0x951E, 71814 }, + { 0x951F, 71818 }, + { 0x9520, 71822 }, + { 0x9521, 71826 }, + { 0x9522, 71830 }, + { 0x9523, 71834 }, + { 0x9524, 71838 }, + { 0x9525, 71842 }, + { 0x9526, 71846 }, + { 0x9527, 71850 }, + { 0x9528, 71854 }, + { 0x9529, 71858 }, + { 0x952A, 71862 }, + { 0x952B, 71866 }, + { 0x952C, 71870 }, + { 0x952D, 71874 }, + { 0x952E, 71878 }, + { 0x952F, 71882 }, + { 0x9530, 71886 }, + { 0x9531, 71890 }, + { 0x9532, 71894 }, + { 0x9533, 71898 }, + { 0x9534, 71902 }, + { 0x9535, 71906 }, + { 0x9536, 71910 }, + { 0x9537, 71914 }, + { 0x9538, 74164 }, + { 0x9539, 74168 }, + { 0x953B, 74172 }, + { 0x953C, 74176 }, + { 0x953D, 74180 }, + { 0x953E, 74184 }, + { 0x9540, 74188 }, + { 0x9541, 74192 }, + { 0x9542, 74196 }, + { 0x9543, 74200 }, + { 0x9544, 74204 }, + { 0x9546, 74208 }, + { 0x954A, 74212 }, + { 0x954B, 74216 }, + { 0x954C, 74220 }, + { 0x954D, 74224 }, + { 0x954E, 74228 }, + { 0x954F, 74232 }, + { 0x9550, 74236 }, + { 0x9552, 74060 }, + { 0x9553, 74064 }, + { 0x9554, 74068 }, + { 0x9555, 74072 }, + { 0x9556, 74076 }, + { 0x9557, 74080 }, + { 0x9558, 74084 }, + { 0x9559, 74088 }, + { 0x955A, 74092 }, + { 0x955B, 74096 }, + { 0x955C, 74100 }, + { 0x955D, 74104 }, + { 0x955E, 74108 }, + { 0x955F, 74112 }, + { 0x9560, 74116 }, + { 0x9561, 74120 }, + { 0x9562, 74124 }, + { 0x9563, 74128 }, + { 0x9564, 74132 }, + { 0x9565, 74136 }, + { 0x9566, 74140 }, + { 0x9567, 74144 }, + { 0x9568, 74148 }, + { 0x9569, 74152 }, + { 0x956A, 74156 }, + { 0x956B, 74160 }, + { 0x956C, 71021 }, + { 0x956D, 71026 }, + { 0x956E, 71031 }, + { 0x956F, 71036 }, + { 0x9570, 71041 }, + { 0x9571, 71046 }, + { 0x9572, 71051 }, + { 0x9573, 71056 }, + { 0x9574, 71061 }, + { 0x9575, 71066 }, + { 0x9576, 71071 }, + { 0x9577, 71076 }, + { 0x9578, 71081 }, + { 0x9579, 71086 }, + { 0x957A, 71091 }, + { 0x957B, 71096 }, + { 0x957C, 71101 }, + { 0x957D, 71106 }, + { 0x957E, 71111 }, + { 0x957F, 71116 }, + { 0x9580, 71121 }, + { 0x9581, 71126 }, + { 0x9582, 71131 }, + { 0x9583, 71136 }, + { 0x9584, 71141 }, + { 0x9585, 71146 }, + { 0x9586, 70891 }, + { 0x9587, 70896 }, + { 0x9588, 70901 }, + { 0x9589, 70906 }, + { 0x958A, 70911 }, + { 0x958B, 70916 }, + { 0x958C, 70921 }, + { 0x958D, 70926 }, + { 0x958E, 70931 }, + { 0x958F, 70936 }, + { 0x9590, 70941 }, + { 0x9591, 70946 }, + { 0x9592, 70951 }, + { 0x9593, 70956 }, + { 0x9594, 70961 }, + { 0x9595, 70966 }, + { 0x9596, 70971 }, + { 0x9597, 70976 }, + { 0x9598, 70981 }, + { 0x9599, 70986 }, + { 0x959A, 70991 }, + { 0x959B, 70996 }, + { 0x959C, 71001 }, + { 0x959D, 71006 }, + { 0x959E, 71011 }, + { 0x959F, 71016 }, + { 0x95A0, 73916 }, + { 0x95A1, 73920 }, + { 0x95A2, 73924 }, + { 0x95A3, 73928 }, + { 0x95A4, 73932 }, + { 0x95A5, 73936 }, + { 0x95A6, 73940 }, + { 0x95A7, 73944 }, + { 0x95A8, 73948 }, + { 0x95A9, 73952 }, + { 0x95AA, 73956 }, + { 0x95AB, 73960 }, + { 0x95AC, 73964 }, + { 0x95AD, 73968 }, + { 0x95AE, 73972 }, + { 0x95AF, 73976 }, + { 0x95B0, 73980 }, + { 0x95B1, 73984 }, + { 0x95B2, 73988 }, + { 0x95B3, 73992 }, + { 0x95B4, 73996 }, + { 0x95B5, 74000 }, + { 0x95B6, 74004 }, + { 0x95B7, 74008 }, + { 0x95B8, 74012 }, + { 0x95B9, 74016 }, + { 0x95BA, 73552 }, + { 0x95BB, 73556 }, + { 0x95BC, 73560 }, + { 0x95BD, 73564 }, + { 0x95BE, 73568 }, + { 0x95BF, 73572 }, + { 0x95C0, 73576 }, + { 0x95C1, 73580 }, + { 0x95C2, 73584 }, + { 0x95C3, 73588 }, + { 0x95C4, 73592 }, + { 0x95C5, 73596 }, + { 0x95C6, 73600 }, + { 0x95C7, 73604 }, + { 0x95C8, 73608 }, + { 0x95C9, 73612 }, + { 0x95CA, 73616 }, + { 0x95CB, 73620 }, + { 0x95CC, 73624 }, + { 0x95CD, 73628 }, + { 0x95CE, 73632 }, + { 0x95CF, 73636 }, + { 0x95D0, 73640 }, + { 0x95D1, 73644 }, + { 0x95D2, 73648 }, + { 0x95D3, 73652 }, + { 0x95D4, 73246 }, + { 0x95D5, 73251 }, + { 0x95D6, 73256 }, + { 0x95D7, 73261 }, + { 0x95D8, 73266 }, + { 0x95D9, 73271 }, + { 0x95DA, 73276 }, + { 0x95DB, 73281 }, + { 0x95DC, 73286 }, + { 0x95DD, 73291 }, + { 0x95DE, 73296 }, + { 0x95DF, 73301 }, + { 0x95E0, 73306 }, + { 0x95E1, 73311 }, + { 0x95E2, 73316 }, + { 0x95E3, 73321 }, + { 0x95E4, 73326 }, + { 0x95E5, 73331 }, + { 0x95E6, 73336 }, + { 0x95E7, 73341 }, + { 0x95E8, 73346 }, + { 0x95E9, 73351 }, + { 0x95EA, 73356 }, + { 0x95EB, 73361 }, + { 0x95EC, 73366 }, + { 0x95ED, 73371 }, + { 0x95EE, 72324 }, + { 0x95EF, 72329 }, + { 0x95F0, 72334 }, + { 0x95F1, 72339 }, + { 0x95F2, 72344 }, + { 0x95F3, 72349 }, + { 0x95F4, 72354 }, + { 0x95F5, 72359 }, + { 0x95F6, 72364 }, + { 0x95F7, 72369 }, + { 0x95F8, 72374 }, + { 0x95F9, 72379 }, + { 0x95FA, 72384 }, + { 0x95FB, 72389 }, + { 0x95FC, 72394 }, + { 0x95FD, 72399 }, + { 0x95FE, 72404 }, + { 0x95FF, 72409 }, + { 0x9600, 72414 }, + { 0x9601, 72419 }, + { 0x9602, 72424 }, + { 0x9603, 72429 }, + { 0x9604, 72434 }, + { 0x9605, 72439 }, + { 0x9606, 72444 }, + { 0x9607, 72449 }, + { 0x9608, 73786 }, + { 0x9609, 73791 }, + { 0x960A, 73796 }, + { 0x960B, 73801 }, + { 0x960C, 73806 }, + { 0x960D, 73811 }, + { 0x960E, 73816 }, + { 0x960F, 73821 }, + { 0x9610, 73826 }, + { 0x9611, 73831 }, + { 0x9612, 73836 }, + { 0x9613, 73841 }, + { 0x9614, 73846 }, + { 0x9615, 73851 }, + { 0x9616, 73856 }, + { 0x9617, 73861 }, + { 0x9618, 73866 }, + { 0x9619, 73871 }, + { 0x961A, 73876 }, + { 0x961B, 73881 }, + { 0x961C, 73886 }, + { 0x961D, 73891 }, + { 0x961E, 73896 }, + { 0x961F, 73901 }, + { 0x9620, 73906 }, + { 0x9621, 73911 }, + { 0x9622, 73656 }, + { 0x9623, 73661 }, + { 0x9624, 73666 }, + { 0x9625, 73671 }, + { 0x9626, 73676 }, + { 0x9627, 73681 }, + { 0x9628, 73686 }, + { 0x9629, 73691 }, + { 0x962A, 73696 }, + { 0x962B, 73701 }, + { 0x962C, 73706 }, + { 0x962D, 73711 }, + { 0x962E, 73716 }, + { 0x962F, 73721 }, + { 0x9630, 73726 }, + { 0x9631, 73731 }, + { 0x9632, 73736 }, + { 0x9633, 73741 }, + { 0x9634, 73746 }, + { 0x9635, 73751 }, + { 0x9636, 73756 }, + { 0x9637, 73761 }, + { 0x9638, 73766 }, + { 0x9639, 73771 }, + { 0x963A, 73776 }, + { 0x963B, 73781 }, + { 0x963C, 72927 }, + { 0x963D, 72933 }, + { 0x963E, 72939 }, + { 0x963F, 72945 }, + { 0x9640, 72951 }, + { 0x9641, 72957 }, + { 0x9642, 72963 }, + { 0x9643, 72969 }, + { 0x9644, 72975 }, + { 0x9645, 72981 }, + { 0x9646, 72987 }, + { 0x9647, 72993 }, + { 0x9648, 72999 }, + { 0x9649, 73005 }, + { 0x964A, 73011 }, + { 0x964B, 73017 }, + { 0x964C, 73023 }, + { 0x964D, 73029 }, + { 0x964E, 73035 }, + { 0x964F, 73041 }, + { 0x9650, 73047 }, + { 0x9651, 73053 }, + { 0x9652, 73059 }, + { 0x9653, 73065 }, + { 0x9654, 73071 }, + { 0x9655, 73077 }, + { 0x9656, 72614 }, + { 0x9657, 72620 }, + { 0x9658, 72626 }, + { 0x9659, 72632 }, + { 0x965A, 72638 }, + { 0x965B, 72644 }, + { 0x965C, 72650 }, + { 0x965D, 72656 }, + { 0x965E, 72662 }, + { 0x965F, 72668 }, + { 0x9660, 72674 }, + { 0x9661, 72680 }, + { 0x9662, 72686 }, + { 0x9663, 72692 }, + { 0x9664, 72698 }, + { 0x9665, 72704 }, + { 0x9666, 72710 }, + { 0x9667, 72716 }, + { 0x9668, 72722 }, + { 0x9669, 72728 }, + { 0x966A, 72734 }, + { 0x966B, 72740 }, + { 0x966C, 72746 }, + { 0x966D, 72752 }, + { 0x966E, 72758 }, + { 0x966F, 72764 }, + { 0x9670, 72146 }, + { 0x9671, 72150 }, + { 0x9672, 72154 }, + { 0x9673, 72158 }, + { 0x9674, 72162 }, + { 0x9675, 72166 }, + { 0x9676, 72170 }, + { 0x9677, 72174 }, + { 0x9678, 72178 }, + { 0x9679, 72182 }, + { 0x967A, 72186 }, + { 0x967B, 72190 }, + { 0x967C, 72194 }, + { 0x967D, 72198 }, + { 0x967E, 72202 }, + { 0x967F, 72206 }, + { 0x9680, 72210 }, + { 0x9681, 72214 }, + { 0x9682, 72218 }, + { 0x9683, 72222 }, + { 0x9684, 72226 }, + { 0x9685, 72230 }, + { 0x9686, 72234 }, + { 0x9687, 72238 }, + { 0x9688, 72242 }, + { 0x9689, 72246 }, + { 0x968A, 72042 }, + { 0x968B, 72046 }, + { 0x968C, 72050 }, + { 0x968D, 72054 }, + { 0x968E, 72058 }, + { 0x968F, 72062 }, + { 0x9690, 72066 }, + { 0x9691, 72070 }, + { 0x9692, 72074 }, + { 0x9693, 72078 }, + { 0x9694, 72082 }, + { 0x9695, 72086 }, + { 0x9696, 72090 }, + { 0x9697, 72094 }, + { 0x9698, 72098 }, + { 0x9699, 72102 }, + { 0x969A, 72106 }, + { 0x969B, 72110 }, + { 0x969C, 72114 }, + { 0x969D, 72118 }, + { 0x969E, 72122 }, + { 0x969F, 72126 }, + { 0x96A0, 72130 }, + { 0x96A1, 72134 }, + { 0x96A2, 72138 }, + { 0x96A3, 72142 }, + { 0x96A4, 71411 }, + { 0x96A5, 71416 }, + { 0x96A8, 70834 }, + { 0x96A9, 70822 }, + { 0x96AA, 70842 }, + { 0x96AB, 70838 }, + { 0x96AC, 70875 }, + { 0x96AD, 70830 }, + { 0x96AE, 70802 }, + { 0x96AF, 70862 }, + { 0x96B0, 70826 }, + { 0x96B1, 70846 }, + { 0x96B2, 70850 }, + { 0x96B3, 70782 }, + { 0x96B4, 70786 }, + { 0x96B5, 70794 }, + { 0x96B6, 70879 }, + { 0x96B7, 70790 }, + { 0x96B8, 70814 }, + { 0x96B9, 70866 }, + { 0x96BA, 70858 }, + { 0x96BB, 70818 }, + { 0x96BC, 70883 }, + { 0x96BD, 70806 }, + { 0x96BE, 70798 }, + { 0x96BF, 70810 }, + { 0x96C0, 70854 }, + { 0x96C1, 69651 }, + { 0x96C2, 69810 }, + { 0x96C3, 69798 }, + { 0x96C4, 69823 }, + { 0x96C5, 69814 }, + { 0x96C6, 69851 }, + { 0x96C7, 69806 }, + { 0x96C8, 69778 }, + { 0x96C9, 69843 }, + { 0x96CA, 69802 }, + { 0x96CB, 69827 }, + { 0x96CC, 69831 }, + { 0x96CD, 69758 }, + { 0x96CE, 69762 }, + { 0x96CF, 69770 }, + { 0x96D0, 69855 }, + { 0x96D1, 69766 }, + { 0x96D2, 69790 }, + { 0x96D3, 69818 }, + { 0x96D4, 69839 }, + { 0x96D5, 69794 }, + { 0x96D6, 69859 }, + { 0x96D7, 69782 }, + { 0x96D8, 69774 }, + { 0x96D9, 69786 }, + { 0x96DA, 69835 }, + { 0x96DB, 71151 }, + { 0x96DC, 70887 }, + { 0x96DD, 69863 }, + { 0x96DE, 69647 }, + { 0x96DF, 69599 }, + { 0x96E0, 69603 }, + { 0x96E1, 69595 }, + { 0x96E2, 71593 }, + { 0x96E3, 71581 }, + { 0x96E4, 71601 }, + { 0x96E5, 71597 }, + { 0x96E6, 71630 }, + { 0x96E7, 71589 }, + { 0x96E8, 71561 }, + { 0x96E9, 71621 }, + { 0x96EA, 71585 }, + { 0x96EB, 71605 }, + { 0x96EC, 71609 }, + { 0x96ED, 71541 }, + { 0x96EE, 71545 }, + { 0x96EF, 71553 }, + { 0x96F0, 71634 }, + { 0x96F1, 71549 }, + { 0x96F2, 71573 }, + { 0x96F3, 71625 }, + { 0x96F4, 71617 }, + { 0x96F5, 71577 }, + { 0x96F6, 71638 }, + { 0x96F7, 71565 }, + { 0x96F8, 71557 }, + { 0x96F9, 71569 }, + { 0x96FA, 71613 }, + { 0x96FB, 71219 }, + { 0x96FC, 71374 }, + { 0x96FD, 71362 }, + { 0x96FE, 71387 }, + { 0x96FF, 71378 }, + { 0x9700, 71421 }, + { 0x9701, 71370 }, + { 0x9702, 71342 }, + { 0x9703, 71407 }, + { 0x9704, 71366 }, + { 0x9705, 71391 }, + { 0x9706, 71395 }, + { 0x9707, 71322 }, + { 0x9708, 71326 }, + { 0x9709, 71334 }, + { 0x970A, 71425 }, + { 0x970B, 71330 }, + { 0x970C, 71354 }, + { 0x970D, 71382 }, + { 0x970E, 71403 }, + { 0x970F, 71358 }, + { 0x9710, 71429 }, + { 0x9711, 71346 }, + { 0x9712, 71338 }, + { 0x9713, 71350 }, + { 0x9714, 71399 }, + { 0x9715, 71646 }, + { 0x9716, 71642 }, + { 0x9717, 71433 }, + { 0x9718, 71215 }, + { 0x9719, 71207 }, + { 0x971A, 71211 }, + { 0x971B, 71203 }, + { 0x971C, 70347 }, + { 0x971D, 70332 }, + { 0x971E, 70357 }, + { 0x971F, 70352 }, + { 0x9720, 70393 }, + { 0x9721, 70342 }, + { 0x9722, 70307 }, + { 0x9723, 70382 }, + { 0x9724, 70337 }, + { 0x9725, 70362 }, + { 0x9726, 70367 }, + { 0x9727, 70282 }, + { 0x9728, 70287 }, + { 0x9729, 70297 }, + { 0x972A, 70398 }, + { 0x972B, 70292 }, + { 0x972C, 70322 }, + { 0x972D, 70387 }, + { 0x972E, 70377 }, + { 0x972F, 70327 }, + { 0x9730, 70403 }, + { 0x9731, 70312 }, + { 0x9732, 70302 }, + { 0x9733, 70317 }, + { 0x9734, 70372 }, + { 0x9735, 69887 }, + { 0x9736, 70086 }, + { 0x9737, 70071 }, + { 0x9738, 70102 }, + { 0x9739, 70091 }, + { 0x973A, 70132 }, + { 0x973B, 70081 }, + { 0x973C, 70046 }, + { 0x973D, 70127 }, + { 0x973E, 70076 }, + { 0x973F, 70107 }, + { 0x9740, 70112 }, + { 0x9741, 70021 }, + { 0x9742, 70026 }, + { 0x9743, 70036 }, + { 0x9744, 70137 }, + { 0x9745, 70031 }, + { 0x9746, 70061 }, + { 0x9747, 70096 }, + { 0x9748, 70122 }, + { 0x9749, 70066 }, + { 0x974A, 70142 }, + { 0x974B, 70051 }, + { 0x974C, 70041 }, + { 0x974D, 70056 }, + { 0x974E, 70117 }, + { 0x974F, 70413 }, + { 0x9750, 70408 }, + { 0x9751, 70147 }, + { 0x9752, 69882 }, + { 0x9753, 69872 }, + { 0x9754, 69877 }, + { 0x9755, 69867 }, + { 0x9756, 73441 }, + { 0x9757, 73426 }, + { 0x9758, 73451 }, + { 0x9759, 73446 }, + { 0x975A, 73487 }, + { 0x975B, 73436 }, + { 0x975C, 73401 }, + { 0x975D, 73476 }, + { 0x975E, 73431 }, + { 0x975F, 73456 }, + { 0x9760, 73461 }, + { 0x9761, 73376 }, + { 0x9762, 73381 }, + { 0x9763, 73391 }, + { 0x9764, 73492 }, + { 0x9765, 73386 }, + { 0x9766, 73416 }, + { 0x9767, 73481 }, + { 0x9768, 73471 }, + { 0x9769, 73421 }, + { 0x976A, 73497 }, + { 0x976B, 73406 }, + { 0x976C, 73396 }, + { 0x976D, 73411 }, + { 0x976E, 73466 }, + { 0x976F, 72320 }, + { 0x9770, 72519 }, + { 0x9771, 72504 }, + { 0x9772, 72535 }, + { 0x9773, 72524 }, + { 0x9774, 72565 }, + { 0x9775, 72514 }, + { 0x9776, 72479 }, + { 0x9777, 72560 }, + { 0x9778, 72509 }, + { 0x9779, 72540 }, + { 0x977A, 72545 }, + { 0x977B, 72454 }, + { 0x977C, 72459 }, + { 0x977D, 72469 }, + { 0x977E, 72570 }, + { 0x977F, 72464 }, + { 0x9780, 72494 }, + { 0x9781, 72529 }, + { 0x9782, 72555 }, + { 0x9783, 72499 }, + { 0x9784, 72575 }, + { 0x9785, 72484 }, + { 0x9786, 72474 }, + { 0x9787, 72489 }, + { 0x9788, 72550 }, + { 0x9789, 73507 }, + { 0x978A, 73502 }, + { 0x978B, 72580 }, + { 0x978C, 72315 }, + { 0x978D, 72255 }, + { 0x978E, 72260 }, + { 0x978F, 72250 }, + { 0x9790, 73161 }, + { 0x9791, 73143 }, + { 0x9792, 73173 }, + { 0x9793, 73167 }, + { 0x9794, 73216 }, + { 0x9795, 73155 }, + { 0x9796, 73113 }, + { 0x9797, 73203 }, + { 0x9798, 73149 }, + { 0x9799, 73179 }, + { 0x979A, 73185 }, + { 0x979B, 73083 }, + { 0x979C, 73089 }, + { 0x979D, 73101 }, + { 0x979E, 73222 }, + { 0x979F, 73095 }, + { 0x97A0, 73131 }, + { 0x97A1, 73209 }, + { 0x97A2, 73197 }, + { 0x97A3, 73137 }, + { 0x97A4, 73228 }, + { 0x97A5, 73119 }, + { 0x97A6, 73107 }, + { 0x97A7, 73125 }, + { 0x97A8, 73191 }, + { 0x97A9, 72609 }, + { 0x97AA, 72848 }, + { 0x97AB, 72830 }, + { 0x97AC, 72867 }, + { 0x97AD, 72854 }, + { 0x97AE, 72903 }, + { 0x97AF, 72842 }, + { 0x97B0, 72800 }, + { 0x97B1, 72897 }, + { 0x97B2, 72836 }, + { 0x97B3, 72873 }, + { 0x97B4, 72879 }, + { 0x97B5, 72770 }, + { 0x97B6, 72776 }, + { 0x97B7, 72788 }, + { 0x97B8, 72909 }, + { 0x97B9, 72782 }, + { 0x97BA, 72818 }, + { 0x97BB, 72860 }, + { 0x97BC, 72891 }, + { 0x97BD, 72824 }, + { 0x97BE, 72915 }, + { 0x97BF, 72806 }, + { 0x97C0, 72794 }, + { 0x97C1, 72812 }, + { 0x97C2, 72885 }, + { 0x97C3, 73240 }, + { 0x97C4, 73234 }, + { 0x97C5, 72921 }, + { 0x97C6, 72603 }, + { 0x97C7, 72591 }, + { 0x97C8, 72597 }, + { 0x97C9, 72585 }, + { 0x97CA, 70871 }, + { 0x97CB, 69847 }, + { 0x97CE, 69631 }, + { 0x97CF, 69607 }, + { 0x97D0, 69615 }, + { 0x97D1, 69643 }, + { 0x97D2, 69623 }, + { 0x97D3, 69619 }, + { 0x97D4, 69611 }, + { 0x97D5, 69639 }, + { 0x97D6, 69635 }, + { 0x97D7, 69627 }, + { 0x97D8, 74044 }, + { 0x97D9, 74020 }, + { 0x97DA, 74028 }, + { 0x97DB, 74056 }, + { 0x97DC, 74036 }, + { 0x97DD, 74032 }, + { 0x97DE, 74024 }, + { 0x97DF, 74052 }, + { 0x97E0, 74048 }, + { 0x97E1, 74040 }, + { 0x97E2, 73536 }, + { 0x97E3, 73512 }, + { 0x97E4, 73520 }, + { 0x97E5, 73548 }, + { 0x97E6, 73528 }, + { 0x97E7, 73524 }, + { 0x97E8, 73516 }, + { 0x97E9, 73544 }, + { 0x97EA, 73540 }, + { 0x97EB, 73532 }, + { 0x97EC, 72295 }, + { 0x97ED, 72265 }, + { 0x97EE, 72275 }, + { 0x97EF, 72310 }, + { 0x97F0, 72285 }, + { 0x97F1, 72280 }, + { 0x97F2, 72270 }, + { 0x97F3, 72305 }, + { 0x97F4, 72300 }, + { 0x97F5, 72290 }, + { 0x97F6, 72026 }, + { 0x97F7, 72002 }, + { 0x97F8, 72010 }, + { 0x97F9, 72038 }, + { 0x97FA, 72018 }, + { 0x97FB, 72014 }, + { 0x97FC, 72006 }, + { 0x97FD, 72034 }, + { 0x97FE, 72030 }, + { 0x97FF, 72022 }, + { 0xA000, 41048 }, + { 0xA001, 41145 }, + { 0xA002, 41100 }, + { 0xA003, 41126 }, + { 0xA004, 41011 }, + { 0xA005, 41119 }, + { 0xA006, 41164 }, + { 0xA007, 41006 }, + { 0xA008, 41040 }, + { 0xA009, 41159 }, + { 0xA00A, 41077 }, + { 0xA00B, 41062 }, + { 0xA00C, 41025 }, + { 0xA00D, 41140 }, + { 0xA00E, 41114 }, + { 0xA00F, 41092 }, + { 0xA010, 40996 }, + { 0xA011, 41030 }, + { 0xA012, 41149 }, + { 0xA013, 41067 }, + { 0xA014, 41052 }, + { 0xA015, 41015 }, + { 0xA016, 41130 }, + { 0xA017, 41104 }, + { 0xA018, 41082 }, + { 0xA019, 41001 }, + { 0xA01A, 41035 }, + { 0xA01B, 41154 }, + { 0xA01C, 41072 }, + { 0xA01D, 41057 }, + { 0xA01E, 41020 }, + { 0xA01F, 41135 }, + { 0xA020, 41109 }, + { 0xA021, 41087 }, + { 0xA022, 41097 }, + { 0xA023, 41174 }, + { 0xA024, 41171 }, + { 0xA025, 41186 }, + { 0xA026, 41177 }, + { 0xA027, 41180 }, + { 0xA028, 41168 }, + { 0xA029, 41183 }, + { 0xA02A, 41123 }, + { 0xA02B, 41045 }, + { 0xA030, 31231 }, + { 0xA031, 31382 }, + { 0xA032, 31385 }, + { 0xA033, 31388 }, + { 0xA034, 31391 }, + { 0xA035, 31394 }, + { 0xA036, 31397 }, + { 0xA037, 31400 }, + { 0xA038, 31403 }, + { 0xA039, 31406 }, + { 0xA03A, 31409 }, + { 0xA03B, 31412 }, + { 0xA03C, 31415 }, + { 0xA03D, 31418 }, + { 0xA03E, 31421 }, + { 0xA03F, 31424 }, + { 0xA040, 31427 }, + { 0xA041, 31430 }, + { 0xA042, 31433 }, + { 0xA043, 31436 }, + { 0xA044, 31439 }, + { 0xA045, 31442 }, + { 0xA046, 31445 }, + { 0xA047, 31448 }, + { 0xA048, 31451 }, + { 0xA049, 31454 }, + { 0xA04A, 31457 }, + { 0xA04B, 31460 }, + { 0xA04C, 31463 }, + { 0xA04D, 31466 }, + { 0xA04E, 31469 }, + { 0xA04F, 31472 }, + { 0xA050, 31475 }, + { 0xA051, 31478 }, + { 0xA052, 31481 }, + { 0xA053, 31484 }, + { 0xA054, 31487 }, + { 0xA055, 31490 }, + { 0xA056, 31493 }, + { 0xA057, 31496 }, + { 0xA058, 31499 }, + { 0xA059, 31502 }, + { 0xA05A, 31505 }, + { 0xA05B, 31508 }, + { 0xA05C, 31511 }, + { 0xA05D, 31514 }, + { 0xA05E, 31517 }, + { 0xA05F, 31520 }, + { 0xA060, 31523 }, + { 0xA061, 31526 }, + { 0xA062, 31227 }, + { 0xA063, 31235 }, + { 0xA064, 31238 }, + { 0xA065, 31241 }, + { 0xA066, 31244 }, + { 0xA067, 31247 }, + { 0xA068, 31250 }, + { 0xA069, 31253 }, + { 0xA06A, 31256 }, + { 0xA06B, 31259 }, + { 0xA06C, 31262 }, + { 0xA06D, 31265 }, + { 0xA06E, 31268 }, + { 0xA06F, 31271 }, + { 0xA070, 31274 }, + { 0xA071, 31277 }, + { 0xA072, 31280 }, + { 0xA073, 31283 }, + { 0xA074, 31286 }, + { 0xA075, 31289 }, + { 0xA076, 31292 }, + { 0xA077, 31295 }, + { 0xA078, 31298 }, + { 0xA079, 31301 }, + { 0xA07A, 31304 }, + { 0xA07B, 31307 }, + { 0xA07C, 31310 }, + { 0xA07D, 31313 }, + { 0xA07E, 31316 }, + { 0xA07F, 31319 }, + { 0xA080, 31322 }, + { 0xA081, 31325 }, + { 0xA082, 31328 }, + { 0xA083, 31331 }, + { 0xA084, 31334 }, + { 0xA085, 31337 }, + { 0xA086, 31340 }, + { 0xA087, 31343 }, + { 0xA088, 31346 }, + { 0xA089, 31349 }, + { 0xA08A, 31352 }, + { 0xA08B, 31355 }, + { 0xA08C, 31358 }, + { 0xA08D, 31361 }, + { 0xA08E, 31364 }, + { 0xA08F, 31367 }, + { 0xA090, 31370 }, + { 0xA091, 31373 }, + { 0xA092, 31376 }, + { 0xA093, 31379 }, + { 0xC001, 53726 }, + { 0xC020, 7517 }, + { 0xC021, 7564 }, + { 0xC022, 7551 }, + { 0xC023, 7527 }, + { 0xC024, 7521 }, + { 0xC025, 7530 }, + { 0xC026, 7546 }, + { 0xC027, 7556 }, + { 0xC028, 7203 }, + { 0xC029, 7514 }, + { 0xC02A, 7538 }, + { 0xC02B, 7206 }, + { 0xC02C, 7211 }, + { 0xC02D, 7570 }, + { 0xC02E, 7192 }, + { 0xC02F, 7536 }, + { 0xC030, 7231 }, + { 0xC031, 7213 }, + { 0xC032, 7219 }, + { 0xC033, 7240 }, + { 0xC034, 7225 }, + { 0xC035, 7222 }, + { 0xC036, 7216 }, + { 0xC037, 7237 }, + { 0xC038, 7234 }, + { 0xC039, 7228 }, + { 0xC03A, 7209 }, + { 0xC03B, 7554 }, + { 0xC03C, 7548 }, + { 0xC03D, 7524 }, + { 0xC03E, 7567 }, + { 0xC03F, 7540 }, + { 0xC040, 7561 }, + { 0xC041, 7376 }, + { 0xC042, 7381 }, + { 0xC043, 7386 }, + { 0xC044, 7391 }, + { 0xC045, 7396 }, + { 0xC046, 7401 }, + { 0xC047, 7406 }, + { 0xC048, 7411 }, + { 0xC049, 7416 }, + { 0xC04A, 7421 }, + { 0xC04B, 7426 }, + { 0xC04C, 7431 }, + { 0xC04D, 7436 }, + { 0xC04E, 7441 }, + { 0xC04F, 7446 }, + { 0xC050, 7451 }, + { 0xC051, 7456 }, + { 0xC052, 7461 }, + { 0xC053, 7466 }, + { 0xC054, 7471 }, + { 0xC055, 7476 }, + { 0xC056, 7481 }, + { 0xC057, 7486 }, + { 0xC058, 7491 }, + { 0xC059, 7496 }, + { 0xC05A, 7501 }, + { 0xC05B, 7199 }, + { 0xC05C, 7533 }, + { 0xC05D, 7510 }, + { 0xC05E, 7558 }, + { 0xC05F, 7189 }, + { 0xC060, 7243 }, + { 0xC061, 7246 }, + { 0xC062, 7251 }, + { 0xC063, 7256 }, + { 0xC064, 7261 }, + { 0xC065, 7266 }, + { 0xC066, 7271 }, + { 0xC067, 7276 }, + { 0xC068, 7281 }, + { 0xC069, 7286 }, + { 0xC06A, 7291 }, + { 0xC06B, 7296 }, + { 0xC06C, 7301 }, + { 0xC06D, 7306 }, + { 0xC06E, 7311 }, + { 0xC06F, 7316 }, + { 0xC070, 7321 }, + { 0xC071, 7326 }, + { 0xC072, 7331 }, + { 0xC073, 7336 }, + { 0xC074, 7341 }, + { 0xC075, 7346 }, + { 0xC076, 7351 }, + { 0xC077, 7356 }, + { 0xC078, 7361 }, + { 0xC079, 7366 }, + { 0xC07A, 7371 }, + { 0xC07B, 7195 }, + { 0xC07C, 7543 }, + { 0xC07D, 7506 }, + { 0xC07E, 7519 }, + { 0xC07F, 30315 }, + { 0xC100, 66346 }, + { 0xC101, 66348 }, + { 0xC102, 66350 }, + { 0xC103, 66352 }, + { 0xC104, 66354 }, + { 0xC105, 66356 }, + { 0xC106, 66358 }, + { 0xC107, 66360 }, + { 0xC108, 66362 }, + { 0xC109, 66364 }, + { 0xC10A, 66366 }, + { 0xC10B, 66368 }, + { 0xC10C, 66370 }, + { 0xC10D, 66372 }, + { 0xC10E, 66374 }, + { 0xC10F, 66376 }, + { 0xC110, 66378 }, + { 0xC111, 66380 }, + { 0xC112, 66382 }, + { 0xC113, 66384 }, + { 0xC114, 66386 }, + { 0xC115, 66388 }, + { 0xC116, 66390 }, + { 0xC117, 66392 }, + { 0xC118, 66394 }, + { 0xC119, 66396 }, + { 0xC11A, 66398 }, + { 0xC11B, 66400 }, + { 0xC11C, 66402 }, + { 0xC11D, 66404 }, + { 0xC11E, 66406 }, + { 0xC11F, 66408 }, + { 0xC120, 66410 }, + { 0xC121, 66412 }, + { 0xC122, 66414 }, + { 0xC123, 66416 }, + { 0xC124, 66418 }, + { 0xC125, 66420 }, + { 0xC126, 66422 }, + { 0xC127, 66424 }, + { 0xC128, 66426 }, + { 0xC129, 66428 }, + { 0xC12A, 66430 }, + { 0xC12B, 66432 }, + { 0xC12C, 66434 }, + { 0xC12D, 66436 }, + { 0xC12E, 66438 }, + { 0xC12F, 66440 }, + { 0xC130, 66442 }, + { 0xC131, 66444 }, + { 0xC132, 66446 }, + { 0xC133, 66448 }, + { 0xC134, 66450 }, + { 0xC135, 66452 }, + { 0xC136, 66454 }, + { 0xC137, 66456 }, + { 0xC138, 66458 }, + { 0xC139, 66460 }, + { 0xC13A, 66462 }, + { 0xC13B, 66464 }, + { 0xC13C, 66466 }, + { 0xC13D, 66468 }, + { 0xC13E, 66470 }, + { 0xC13F, 66472 }, + { 0xC140, 66474 }, + { 0xC141, 66476 }, + { 0xC142, 66478 }, + { 0xC143, 66480 }, + { 0xC144, 66482 }, + { 0xC145, 66484 }, + { 0xC146, 66486 }, + { 0xC147, 66488 }, + { 0xC148, 66490 }, + { 0xC149, 66492 }, + { 0xC14A, 66494 }, + { 0xC14B, 66496 }, + { 0xC14C, 66498 }, + { 0xC14D, 66500 }, + { 0xC14E, 66502 }, + { 0xC14F, 66504 }, + { 0xC150, 66506 }, + { 0xC151, 66508 }, + { 0xC152, 66510 }, + { 0xC153, 66512 }, + { 0xC154, 66514 }, + { 0xC155, 66516 }, + { 0xC156, 66518 }, + { 0xC157, 66520 }, + { 0xC158, 66522 }, + { 0xC159, 66524 }, + { 0xC15A, 66526 }, + { 0xC15B, 66528 }, + { 0xC15C, 66530 }, + { 0xC15D, 66532 }, + { 0xC15E, 66534 }, + { 0xC15F, 66536 }, + { 0xC160, 66538 }, + { 0xC161, 66540 }, + { 0xC162, 66542 }, + { 0xC163, 66544 }, + { 0xC164, 66546 }, + { 0xC165, 66548 }, + { 0xC166, 66550 }, + { 0xC167, 66552 }, + { 0xC168, 66554 }, + { 0xC169, 66556 }, + { 0xC16A, 66558 }, + { 0xC16B, 66560 }, + { 0xC16C, 66562 }, + { 0xC16D, 66564 }, + { 0xC16E, 66566 }, + { 0xC16F, 66568 }, + { 0xC170, 66570 }, + { 0xC171, 66572 }, + { 0xC172, 66574 }, + { 0xC173, 66576 }, + { 0xC174, 66578 }, + { 0xC175, 66580 }, + { 0xC176, 66582 }, + { 0xC177, 66584 }, + { 0xC178, 66586 }, + { 0xC179, 66588 }, + { 0xC17A, 66590 }, + { 0xC17B, 66592 }, + { 0xC17C, 66594 }, + { 0xC17D, 66596 }, + { 0xC17E, 66598 }, + { 0xC17F, 66600 }, + { 0xC180, 66602 }, + { 0xC181, 66604 }, + { 0xC182, 66606 }, + { 0xC183, 66608 }, + { 0xC184, 66610 }, + { 0xC185, 66612 }, + { 0xC186, 66614 }, + { 0xC187, 66616 }, + { 0xC188, 66618 }, + { 0xC189, 66620 }, + { 0xC18A, 66622 }, + { 0xC18B, 66624 }, + { 0xC18C, 66626 }, + { 0xC18D, 66628 }, + { 0xC18E, 66630 }, + { 0xC18F, 66632 }, + { 0xC190, 66634 }, + { 0xC191, 66636 }, + { 0xC192, 66638 }, + { 0xC193, 66640 }, + { 0xC194, 66642 }, + { 0xC195, 66644 }, + { 0xC196, 66646 }, + { 0xC197, 66648 }, + { 0xC198, 66650 }, + { 0xC199, 66652 }, + { 0xC19A, 66654 }, + { 0xC19B, 66656 }, + { 0xC19C, 66658 }, + { 0xC19D, 66660 }, + { 0xC19E, 66662 }, + { 0xC19F, 66664 }, + { 0xC1A0, 66666 }, + { 0xC1A1, 66668 }, + { 0xC1A2, 66670 }, + { 0xC1A3, 66672 }, + { 0xC1A4, 66674 }, + { 0xC1A5, 66676 }, + { 0xC1A6, 66678 }, + { 0xC1A7, 66680 }, + { 0xC1A8, 66682 }, + { 0xC1A9, 66684 }, + { 0xC1AA, 66686 }, + { 0xC1AB, 66688 }, + { 0xC1AC, 66690 }, + { 0xC1AD, 66692 }, + { 0xC1AE, 66694 }, + { 0xC1AF, 66696 }, + { 0xC1B0, 66698 }, + { 0xC1B1, 66700 }, + { 0xC1B2, 66702 }, + { 0xC1B3, 66704 }, + { 0xC1B4, 66706 }, + { 0xC1B5, 66708 }, + { 0xC1B6, 66710 }, + { 0xC1B7, 66712 }, + { 0xC1B8, 66714 }, + { 0xC1B9, 66716 }, + { 0xC1BA, 66718 }, + { 0xC1BB, 66720 }, + { 0xC1BC, 66722 }, + { 0xC1BD, 66724 }, + { 0xC1BE, 66726 }, + { 0xC1BF, 66728 }, + { 0xC1C0, 66730 }, + { 0xC1C1, 66732 }, + { 0xC1C2, 66734 }, + { 0xC1C3, 66736 }, + { 0xC1C4, 66738 }, + { 0xC1C5, 66740 }, + { 0xC1C6, 66742 }, + { 0xC1C7, 66744 }, + { 0xC1C8, 66746 }, + { 0xC1C9, 66748 }, + { 0xC1CA, 66750 }, + { 0xC1CB, 66752 }, + { 0xC1CC, 66754 }, + { 0xC1CD, 66756 }, + { 0xC1CE, 66758 }, + { 0xC1CF, 66760 }, + { 0xC1D0, 66762 }, + { 0xC1D1, 66764 }, + { 0xC1D2, 66766 }, + { 0xC1D3, 66768 }, + { 0xC1D4, 66770 }, + { 0xC1D5, 66772 }, + { 0xC1D6, 66774 }, + { 0xC1D7, 66776 }, + { 0xC1D8, 66778 }, + { 0xC1D9, 66780 }, + { 0xC1DA, 66782 }, + { 0xC1DB, 66784 }, + { 0xC1DC, 66786 }, + { 0xC1DD, 66788 }, + { 0xC1DE, 66790 }, + { 0xC1DF, 66792 }, + { 0xC1E0, 66794 }, + { 0xC1E1, 66796 }, + { 0xC1E2, 66798 }, + { 0xC1E3, 66800 }, + { 0xC1E4, 66802 }, + { 0xC1E5, 66804 }, + { 0xC1E6, 66806 }, + { 0xC1E7, 66808 }, + { 0xC1E8, 66810 }, + { 0xC1E9, 66812 }, + { 0xC1EA, 66814 }, + { 0xC1EB, 66816 }, + { 0xC1EC, 66818 }, + { 0xC1ED, 66820 }, + { 0xC1EE, 66822 }, + { 0xC1EF, 66824 }, }; #define UNICODE_CHARNAME_MAX_LENGTH 83 #define UNICODE_CHARNAME_MAX_WORDS 13 diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniname.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname.h --- gettext-0.17/gettext-tools/gnulib-lib/uniname.h 2007-10-31 12:36:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -/* Association between Unicode characters and their names. - Copyright (C) 2000-2002, 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNINAME_H -#define _UNINAME_H - -#include "unitypes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Required size of buffer for a Unicode character name. */ -#define UNINAME_MAX 256 - -/* Looks up the name of a Unicode character, in uppercase ASCII. - Returns the filled buf, or NULL if the character does not have a name. */ -extern char * - unicode_character_name (ucs4_t uc, char *buf); - -/* Looks up the Unicode character with a given name, in upper- or lowercase - ASCII. Returns the character if found, or UNINAME_INVALID if not found. */ -extern ucs4_t - unicode_name_character (const char *name); -#define UNINAME_INVALID ((ucs4_t) 0xFFFF) - -#ifdef __cplusplus -} -#endif - -#endif /* _UNINAME_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniname.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname.in.h --- gettext-0.17/gettext-tools/gnulib-lib/uniname.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniname.in.h 2010-05-24 09:42:47.000000000 +0000 @@ -0,0 +1,45 @@ +/* Association between Unicode characters and their names. + Copyright (C) 2000-2002, 2005, 2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNINAME_H +#define _UNINAME_H + +#include "unitypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* Required size of buffer for a Unicode character name. */ +#define UNINAME_MAX 256 + +/* Looks up the name of a Unicode character, in uppercase ASCII. + Returns the filled buf, or NULL if the character does not have a name. */ +extern char * + unicode_character_name (ucs4_t uc, char *buf); + +/* Looks up the Unicode character with a given name, in upper- or lowercase + ASCII. Returns the character if found, or UNINAME_INVALID if not found. */ +extern ucs4_t + unicode_name_character (const char *name); +#define UNINAME_INVALID ((ucs4_t) 0xFFFF) + +#ifdef __cplusplus +} +#endif + +#endif /* _UNINAME_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistd--.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd--.h --- gettext-0.17/gettext-tools/gnulib-lib/unistd--.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd--.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,32 @@ +/* Like unistd.h, but redefine some names to avoid glitches. + + Copyright (C) 2005, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert. */ + +#include +#include "unistd-safer.h" + +#undef dup +#define dup dup_safer + +#undef pipe +#define pipe pipe_safer + +#if GNULIB_PIPE2_SAFER +# undef pipe2 +# define pipe2 pipe2_safer +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistd.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd.in.h --- gettext-0.17/gettext-tools/gnulib-lib/unistd.in.h 2007-10-03 22:24:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,9 +1,9 @@ /* Substitute for and wrapper around . - Copyright (C) 2004-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,126 +15,501 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _GL_UNISTD_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Special invocation convention: + - On mingw, several headers, including , include , + but we need to ensure that both the system and + are completely included before we replace gethostname. */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H +/* is being indirectly included for the first time from + ; avoid declaring any overrides. */ +# if @HAVE_UNISTD_H@ +# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ +# else +# error unexpected; report this to bug-gnulib@gnu.org +# endif +# define _GL_WINSOCK2_H_WITNESS + +/* Normal invocation. */ +#elif !defined _GL_UNISTD_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ #endif -#ifndef _GL_UNISTD_H +/* Get all possible declarations of gethostname(). */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_INCLUDING_WINSOCK2_H +# define _GL_INCLUDING_WINSOCK2_H +# include +# undef _GL_INCLUDING_WINSOCK2_H +#endif + +#if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H #define _GL_UNISTD_H -/* mingw doesn't define the SEEK_* macros in . */ -#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) +/* NetBSD 5.0 mis-defines NULL. Also get size_t. */ +#include + +/* mingw doesn't define the SEEK_* or *_FILENO macros in . */ +/* Cygwin 1.7.1 declares symlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ + || (@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK)) \ + && ! defined __GLIBC__ # include #endif +/* Cygwin 1.7.1 declares unlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ +# include +#endif + /* mingw fails to declare _exit in . */ -#include +/* mingw, BeOS, Haiku declare environ in , not in . */ +/* Solaris declares getcwd not only in but also in . */ +/* But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +#endif + +/* mingw declares getcwd in , not in . */ +#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ + && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) +# include +#endif + +#if (@GNULIB_WRITE@ || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \ + || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK) +/* Get ssize_t. */ +# include +#endif + +/* Get getopt(), optarg, optind, opterr, optopt. + But avoid namespace pollution on glibc systems. */ +/* Also, don't include inside libgettextpo, because we use + the getopt module only in gettext-tools/gnulib-lib/, not in + gettext-tools/libgettextpo/, but there is only a single + GNULIB_UNISTD_H_GETOPT variable for both. */ +#if @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +#if @GNULIB_GETHOSTNAME@ +/* Get all possible declarations of gethostname(). */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !defined _GL_SYS_SOCKET_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef socket +# define socket socket_used_without_including_sys_socket_h +# undef connect +# define connect connect_used_without_including_sys_socket_h +# undef accept +# define accept accept_used_without_including_sys_socket_h +# undef bind +# define bind bind_used_without_including_sys_socket_h +# undef getpeername +# define getpeername getpeername_used_without_including_sys_socket_h +# undef getsockname +# define getsockname getsockname_used_without_including_sys_socket_h +# undef getsockopt +# define getsockopt getsockopt_used_without_including_sys_socket_h +# undef listen +# define listen listen_used_without_including_sys_socket_h +# undef recv +# define recv recv_used_without_including_sys_socket_h +# undef send +# define send send_used_without_including_sys_socket_h +# undef recvfrom +# define recvfrom recvfrom_used_without_including_sys_socket_h +# undef sendto +# define sendto sendto_used_without_including_sys_socket_h +# undef setsockopt +# define setsockopt setsockopt_used_without_including_sys_socket_h +# undef shutdown +# define shutdown shutdown_used_without_including_sys_socket_h +# else + _GL_WARN_ON_USE (socket, + "socket() used without including "); + _GL_WARN_ON_USE (connect, + "connect() used without including "); + _GL_WARN_ON_USE (accept, + "accept() used without including "); + _GL_WARN_ON_USE (bind, + "bind() used without including "); + _GL_WARN_ON_USE (getpeername, + "getpeername() used without including "); + _GL_WARN_ON_USE (getsockname, + "getsockname() used without including "); + _GL_WARN_ON_USE (getsockopt, + "getsockopt() used without including "); + _GL_WARN_ON_USE (listen, + "listen() used without including "); + _GL_WARN_ON_USE (recv, + "recv() used without including "); + _GL_WARN_ON_USE (send, + "send() used without including "); + _GL_WARN_ON_USE (recvfrom, + "recvfrom() used without including "); + _GL_WARN_ON_USE (sendto, + "sendto() used without including "); + _GL_WARN_ON_USE (setsockopt, + "setsockopt() used without including "); + _GL_WARN_ON_USE (shutdown, + "shutdown() used without including "); +# endif +# endif +# if !defined _GL_SYS_SELECT_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select select_used_without_including_sys_select_h +# else + _GL_WARN_ON_USE (select, + "select() used without including "); +# endif +# endif +# endif +#endif + + +/* OS/2 EMX lacks these macros. */ +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + +/* Ensure *_OK macros exist. */ +#ifndef F_OK +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 +#endif /* Declare overridden functions. */ -#ifdef __cplusplus -extern "C" { + +#if defined GNULIB_POSIXCHECK +/* The access() function is a security risk. */ +_GL_WARN_ON_USE (access, "the access function is a security risk - " + "use the gnulib module faccessat instead"); #endif #if @GNULIB_CHOWN@ -# if @REPLACE_CHOWN@ -# ifndef REPLACE_CHOWN -# define REPLACE_CHOWN 1 -# endif -# if REPLACE_CHOWN /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ +# if @REPLACE_CHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef chown # define chown rpl_chown -extern int chown (const char *file, uid_t uid, gid_t gid); # endif +_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); +# else +# if !@HAVE_CHOWN@ +_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); # endif +_GL_CXXALIASWARN (chown); #elif defined GNULIB_POSIXCHECK # undef chown -# define chown(f,u,g) \ - (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \ - "doesn't treat a uid or gid of -1 on some systems - " \ - "use gnulib module chown for portability"), \ - chown (f, u, g)) +# if HAVE_RAW_DECL_CHOWN +_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " + "doesn't treat a uid or gid of -1 on some systems - " + "use gnulib module chown for portability"); +# endif +#endif + + +#if @GNULIB_CLOSE@ +# if @REPLACE_CLOSE@ +/* Automatically included by modules that need a replacement for close. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef close +# define close rpl_close +# endif +_GL_FUNCDECL_RPL (close, int, (int fd)); +_GL_CXXALIAS_RPL (close, int, (int fd)); +# else +_GL_CXXALIAS_SYS (close, int, (int fd)); +# endif +_GL_CXXALIASWARN (close); +#elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +# undef close +# define close close_used_without_requesting_gnulib_module_close +#elif defined GNULIB_POSIXCHECK +# undef close +/* Assume close is always declared. */ +_GL_WARN_ON_USE (close, "close does not portably work on sockets - " + "use gnulib module close for portability"); #endif +#if @REPLACE_DUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup rpl_dup +# endif +_GL_FUNCDECL_RPL (dup, int, (int oldfd)); +_GL_CXXALIAS_RPL (dup, int, (int oldfd)); +#else +_GL_CXXALIAS_SYS (dup, int, (int oldfd)); +#endif +_GL_CXXALIASWARN (dup); + + #if @GNULIB_DUP2@ -# if !@HAVE_DUP2@ /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if NEWFD = OLDFD, otherwise close NEWFD first if it is open. - Return 0 if successful, otherwise -1 and errno set. + Return newfd if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int dup2 (int oldfd, int newfd); +# if @REPLACE_DUP2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup2 rpl_dup2 +# endif +_GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); +_GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); +# else +# if !@HAVE_DUP2@ +_GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); +# endif +_GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif +_GL_CXXALIASWARN (dup2); #elif defined GNULIB_POSIXCHECK # undef dup2 -# define dup2(o,n) \ - (GL_LINK_WARNING ("dup2 is unportable - " \ - "use gnulib module dup2 for portability"), \ - dup2 (o, n)) +# if HAVE_RAW_DECL_DUP2 +_GL_WARN_ON_USE (dup2, "dup2 is unportable - " + "use gnulib module dup2 for portability"); +# endif #endif -#if @GNULIB_FCHDIR@ -# if @REPLACE_FCHDIR@ +#if @GNULIB_DUP3@ +/* Copy the file descriptor OLDFD into file descriptor NEWFD, with the + specified flags. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Close NEWFD first if it is open. + Return newfd if successful, otherwise -1 and errno set. + See the Linux man page at + . */ +# if @HAVE_DUP3@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup3 rpl_dup3 +# endif +_GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); +# else +_GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); +# endif +_GL_CXXALIASWARN (dup3); +#elif defined GNULIB_POSIXCHECK +# undef dup3 +# if HAVE_RAW_DECL_DUP3 +_GL_WARN_ON_USE (dup3, "dup3 is unportable - " + "use gnulib module dup3 for portability"); +# endif +#endif + + +#if @GNULIB_ENVIRON@ +# if !@HAVE_DECL_ENVIRON@ +/* Set of environment variables and values. An array of strings of the form + "VARIABLE=VALUE", terminated with a NULL. */ +# if defined __APPLE__ && defined __MACH__ +# include +# define environ (*_NSGetEnviron ()) +# else +# ifdef __cplusplus +extern "C" { +# endif +extern char **environ; +# ifdef __cplusplus +} +# endif +# endif +# endif +#elif defined GNULIB_POSIXCHECK +# if HAVE_RAW_DECL_ENVIRON +static inline char *** +rpl_environ (void) +{ + return &environ; +} +_GL_WARN_ON_USE (rpl_environ, "environ is unportable - " + "use gnulib module environ for portability"); +# undef environ +# define environ (*rpl_environ ()) +# endif +#endif + + +#if @GNULIB_EUIDACCESS@ +/* Like access(), except that it uses the effective user id and group id of + the current process. */ +# if !@HAVE_EUIDACCESS@ +_GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode)); +_GL_CXXALIASWARN (euidaccess); +# if defined GNULIB_POSIXCHECK +/* Like access(), this function is a security risk. */ +_GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " + "use the gnulib module faccessat instead"); +# endif +#elif defined GNULIB_POSIXCHECK +# undef euidaccess +# if HAVE_RAW_DECL_EUIDACCESS +_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " + "use gnulib module euidaccess for portability"); +# endif +#endif + + +#if @GNULIB_FACCESSAT@ +# if !@HAVE_FACCESSAT@ +_GL_FUNCDECL_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag)); +_GL_CXXALIASWARN (faccessat); +#elif defined GNULIB_POSIXCHECK +# undef faccessat +# if HAVE_RAW_DECL_FACCESSAT +_GL_WARN_ON_USE (faccessat, "faccessat is not portable - " + "use gnulib module faccessat for portability"); +# endif +#endif + +#if @GNULIB_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int fchdir (int /*fd*/); +# if ! @HAVE_FCHDIR@ +_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); -# define close rpl_close -extern int close (int); -# define dup rpl_dup -extern int dup (int); -# define dup2 rpl_dup2 -extern int dup2 (int, int); +/* Gnulib internal hooks needed to maintain the fchdir metadata. */ +_GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) + _GL_ARG_NONNULL ((2)); +_GL_EXTERN_C void _gl_unregister_fd (int fd); +_GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); +_GL_EXTERN_C const char *_gl_directory_name (int fd); # endif +_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); +_GL_CXXALIASWARN (fchdir); #elif defined GNULIB_POSIXCHECK # undef fchdir -# define fchdir(f) \ - (GL_LINK_WARNING ("fchdir is unportable - " \ - "use gnulib module fchdir for portability"), \ - fchdir (f)) +# if HAVE_RAW_DECL_FCHDIR +_GL_WARN_ON_USE (fchdir, "fchdir is unportable - " + "use gnulib module fchdir for portability"); +# endif +#endif + + +#if @GNULIB_FCHOWNAT@ +# if @REPLACE_FCHOWNAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fchownat +# define fchownat rpl_fchownat +# endif +_GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# else +# if !@HAVE_FCHOWNAT@ +_GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# endif +_GL_CXXALIASWARN (fchownat); +#elif defined GNULIB_POSIXCHECK +# undef fchownat +# if HAVE_RAW_DECL_FCHOWNAT +_GL_WARN_ON_USE (fchownat, "fchownat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FSYNC@ +/* Synchronize changes to a file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if !@HAVE_FSYNC@ +_GL_FUNCDECL_SYS (fsync, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (fsync, int, (int fd)); +_GL_CXXALIASWARN (fsync); +#elif defined GNULIB_POSIXCHECK +# undef fsync +# if HAVE_RAW_DECL_FSYNC +_GL_WARN_ON_USE (fsync, "fsync is unportable - " + "use gnulib module fsync for portability"); +# endif #endif #if @GNULIB_FTRUNCATE@ -# if !@HAVE_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int ftruncate (int fd, off_t length); +# if !@HAVE_FTRUNCATE@ +_GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif +_GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); +_GL_CXXALIASWARN (ftruncate); #elif defined GNULIB_POSIXCHECK # undef ftruncate -# define ftruncate(f,l) \ - (GL_LINK_WARNING ("ftruncate is unportable - " \ - "use gnulib module ftruncate for portability"), \ - ftruncate (f, l)) +# if HAVE_RAW_DECL_FTRUNCATE +_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " + "use gnulib module ftruncate for portability"); +# endif #endif #if @GNULIB_GETCWD@ -/* Include the headers that might declare getcwd so that they will not - cause confusion if included after this file. */ -# include -# if @REPLACE_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined @@ -145,15 +520,161 @@ extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ -# define getcwd rpl_getcwd -extern char * getcwd (char *buf, size_t size); +# if @REPLACE_GETCWD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getcwd rpl_getcwd +# endif +_GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); +_GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); +# else +/* Need to cast, because on mingw, the second parameter is + int size. */ +_GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif +_GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK # undef getcwd -# define getcwd(b,s) \ - (GL_LINK_WARNING ("getcwd is unportable - " \ - "use gnulib module getcwd for portability"), \ - getcwd (b, s)) +# if HAVE_RAW_DECL_GETCWD +_GL_WARN_ON_USE (getcwd, "getcwd is unportable - " + "use gnulib module getcwd for portability"); +# endif +#endif + + +#if @GNULIB_GETDOMAINNAME@ +/* Return the NIS domain name of the machine. + WARNING! The NIS domain name is unrelated to the fully qualified host name + of the machine. It is also unrelated to email addresses. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. + + Put up to LEN bytes of the NIS domain name into NAME. + Null terminate it if the name is shorter than LEN. + If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if !@HAVE_GETDOMAINNAME@ +_GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on MacOS X 10.5 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (getdomainname, int, (char *name, size_t len)); +_GL_CXXALIASWARN (getdomainname); +#elif defined GNULIB_POSIXCHECK +# undef getdomainname +# if HAVE_RAW_DECL_GETDOMAINNAME +_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " + "use gnulib module getdomainname for portability"); +# endif +#endif + + +#if @GNULIB_GETDTABLESIZE@ +/* Return the maximum number of file descriptors in the current process. + In POSIX, this is same as sysconf (_SC_OPEN_MAX). */ +# if !@HAVE_GETDTABLESIZE@ +_GL_FUNCDECL_SYS (getdtablesize, int, (void)); +# endif +_GL_CXXALIAS_SYS (getdtablesize, int, (void)); +_GL_CXXALIASWARN (getdtablesize); +#elif defined GNULIB_POSIXCHECK +# undef getdtablesize +# if HAVE_RAW_DECL_GETDTABLESIZE +_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " + "use gnulib module getdtablesize for portability"); +# endif +#endif + + +#if @GNULIB_GETGROUPS@ +/* Return the supplemental groups that the current process belongs to. + It is unspecified whether the effective group id is in the list. + If N is 0, return the group count; otherwise, N describes how many + entries are available in GROUPS. Return -1 and set errno if N is + not 0 and not large enough. Fails with ENOSYS on some systems. */ +# if @REPLACE_GETGROUPS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getgroups +# define getgroups rpl_getgroups +# endif +_GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups)); +_GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups)); +# else +# if !@HAVE_GETGROUPS@ +_GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIASWARN (getgroups); +#elif defined GNULIB_POSIXCHECK +# undef getgroups +# if HAVE_RAW_DECL_GETGROUPS +_GL_WARN_ON_USE (getgroups, "getgroups is unportable - " + "use gnulib module getgroups for portability"); +# endif +#endif + + +#if @GNULIB_GETHOSTNAME@ +/* Return the standard host name of the machine. + WARNING! The host name may or may not be fully qualified. + + Put up to LEN bytes of the host name into NAME. + Null terminate it if the name is shorter than LEN. + If the host name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gethostname +# define gethostname rpl_gethostname +# endif +_GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); +# else +# if !@HAVE_GETHOSTNAME@ +_GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on Solaris 10 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); +# endif +_GL_CXXALIASWARN (gethostname); +#elif @UNISTD_H_HAVE_WINSOCK2_H@ +# undef gethostname +# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname +#elif defined GNULIB_POSIXCHECK +# undef gethostname +# if HAVE_RAW_DECL_GETHOSTNAME +_GL_WARN_ON_USE (gethostname, "gethostname is unportable - " + "use gnulib module gethostname for portability"); +# endif +#endif + + +#if @GNULIB_GETLOGIN@ +/* Returns the user's login name, or NULL if it cannot be found. Upon error, + returns NULL with errno set. + + See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. + */ +# if !@HAVE_GETLOGIN@ +_GL_FUNCDECL_SYS (getlogin, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getlogin, char *, (void)); +_GL_CXXALIASWARN (getlogin); +#elif defined GNULIB_POSIXCHECK +# undef getlogin +# if HAVE_RAW_DECL_GETLOGIN +_GL_WARN_ON_USE (getlogin, "getlogin is unportable - " + "use gnulib module getlogin for portability"); +# endif #endif @@ -166,54 +687,370 @@ provided (this case is hopefully rare but is left open by the POSIX spec). See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. */ # if !@HAVE_DECL_GETLOGIN_R@ -# include -extern int getlogin_r (char *name, size_t size); +_GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size) + _GL_ARG_NONNULL ((1))); # endif +/* Need to cast, because on Solaris 10 systems, the second argument is + int size. */ +_GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); +_GL_CXXALIASWARN (getlogin_r); #elif defined GNULIB_POSIXCHECK # undef getlogin_r -# define getlogin_r(n,s) \ - (GL_LINK_WARNING ("getlogin_r is unportable - " \ - "use gnulib module getlogin_r for portability"), \ - getlogin_r (n, s)) +# if HAVE_RAW_DECL_GETLOGIN_R +_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " + "use gnulib module getlogin_r for portability"); +# endif +#endif + + +#if @GNULIB_GETPAGESIZE@ +# if @REPLACE_GETPAGESIZE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize rpl_getpagesize +# endif +_GL_FUNCDECL_RPL (getpagesize, int, (void)); +_GL_CXXALIAS_RPL (getpagesize, int, (void)); +# else +# if !@HAVE_GETPAGESIZE@ +# if !defined getpagesize +/* This is for POSIX systems. */ +# if !defined _gl_getpagesize && defined _SC_PAGESIZE +# if ! (defined __VMS && __VMS_VER < 70000000) +# define _gl_getpagesize() sysconf (_SC_PAGESIZE) +# endif +# endif +/* This is for older VMS. */ +# if !defined _gl_getpagesize && defined __VMS +# ifdef __ALPHA +# define _gl_getpagesize() 8192 +# else +# define _gl_getpagesize() 512 +# endif +# endif +/* This is for BeOS. */ +# if !defined _gl_getpagesize && @HAVE_OS_H@ +# include +# if defined B_PAGE_SIZE +# define _gl_getpagesize() B_PAGE_SIZE +# endif +# endif +/* This is for AmigaOS4.0. */ +# if !defined _gl_getpagesize && defined __amigaos4__ +# define _gl_getpagesize() 2048 +# endif +/* This is for older Unix systems. */ +# if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ +# include +# ifdef EXEC_PAGESIZE +# define _gl_getpagesize() EXEC_PAGESIZE +# else +# ifdef NBPG +# ifndef CLSIZE +# define CLSIZE 1 +# endif +# define _gl_getpagesize() (NBPG * CLSIZE) +# else +# ifdef NBPC +# define _gl_getpagesize() NBPC +# endif +# endif +# endif +# endif +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize() _gl_getpagesize () +# else +static inline int +getpagesize () +{ + return _gl_getpagesize (); +} +# endif +# endif +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is size_t. */ +_GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); +# endif +# if @HAVE_DECL_GETPAGESIZE@ +_GL_CXXALIASWARN (getpagesize); +# endif +#elif defined GNULIB_POSIXCHECK +# undef getpagesize +# if HAVE_RAW_DECL_GETPAGESIZE +_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " + "use gnulib module getpagesize for portability"); +# endif +#endif + + +#if @GNULIB_GETUSERSHELL@ +/* Return the next valid login shell on the system, or NULL when the end of + the list has been reached. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (getusershell, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getusershell, char *, (void)); +_GL_CXXALIASWARN (getusershell); +#elif defined GNULIB_POSIXCHECK +# undef getusershell +# if HAVE_RAW_DECL_GETUSERSHELL +_GL_WARN_ON_USE (getusershell, "getusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Rewind to pointer that is advanced at each getusershell() call. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (setusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (setusershell, void, (void)); +_GL_CXXALIASWARN (setusershell); +#elif defined GNULIB_POSIXCHECK +# undef setusershell +# if HAVE_RAW_DECL_SETUSERSHELL +_GL_WARN_ON_USE (setusershell, "setusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Free the pointer that is advanced at each getusershell() call and + associated resources. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (endusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (endusershell, void, (void)); +_GL_CXXALIASWARN (endusershell); +#elif defined GNULIB_POSIXCHECK +# undef endusershell +# if HAVE_RAW_DECL_ENDUSERSHELL +_GL_WARN_ON_USE (endusershell, "endusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif #endif #if @GNULIB_LCHOWN@ -# if @REPLACE_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lchown rpl_lchown -extern int lchown (char const *file, uid_t owner, gid_t group); +# if @REPLACE_LCHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lchown +# define lchown rpl_lchown +# endif +_GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)); +# else +# if !@HAVE_LCHOWN@ +_GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); # endif +_GL_CXXALIASWARN (lchown); #elif defined GNULIB_POSIXCHECK # undef lchown -# define lchown(f,u,g) \ - (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \ - "systems - use gnulib module lchown for portability"), \ - lchown (f, u, g)) +# if HAVE_RAW_DECL_LCHOWN +_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " + "use gnulib module lchown for portability"); +# endif +#endif + + +#if @GNULIB_LINK@ +/* Create a new hard link for an existing file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if @REPLACE_LINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define link rpl_link +# endif +_GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2)); +# else +# if !@HAVE_LINK@ +_GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); +# endif +_GL_CXXALIASWARN (link); +#elif defined GNULIB_POSIXCHECK +# undef link +# if HAVE_RAW_DECL_LINK +_GL_WARN_ON_USE (link, "link is unportable - " + "use gnulib module link for portability"); +# endif +#endif + + +#if @GNULIB_LINKAT@ +/* Create a new hard link for an existing file, relative to two + directories. FLAG controls whether symlinks are followed. + Return 0 if successful, otherwise -1 and errno set. */ +# if @REPLACE_LINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef linkat +# define linkat rpl_linkat +# endif +_GL_FUNCDECL_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# else +# if !@HAVE_LINKAT@ +_GL_FUNCDECL_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# endif +_GL_CXXALIASWARN (linkat); +#elif defined GNULIB_POSIXCHECK +# undef linkat +# if HAVE_RAW_DECL_LINKAT +_GL_WARN_ON_USE (linkat, "linkat is unportable - " + "use gnulib module linkat for portability"); +# endif #endif #if @GNULIB_LSEEK@ -# if @REPLACE_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lseek rpl_lseek - extern off_t lseek (int fd, off_t offset, int whence); +# if @REPLACE_LSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lseek rpl_lseek +# endif +_GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +_GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +# else +_GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif +_GL_CXXALIASWARN (lseek); #elif defined GNULIB_POSIXCHECK # undef lseek -# define lseek(f,o,w) \ - (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \ - "systems - use gnulib module lseek for portability"), \ - lseek (f, o, w)) +# if HAVE_RAW_DECL_LSEEK +_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " + "systems - use gnulib module lseek for portability"); +# endif +#endif + + +#if @GNULIB_PIPE2@ +/* Create a pipe, applying the given flags when opening the read-end of the + pipe and the write-end of the pipe. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Store the read-end as fd[0] and the write-end as fd[1]. + Return 0 upon success, or -1 with errno set upon failure. + See also the Linux man page at + . */ +# if @HAVE_PIPE2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pipe2 rpl_pipe2 +# endif +_GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); +# else +_GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); +# endif +_GL_CXXALIASWARN (pipe2); +#elif defined GNULIB_POSIXCHECK +# undef pipe2 +# if HAVE_RAW_DECL_PIPE2 +_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " + "use gnulib module pipe2 for portability"); +# endif +#endif + + +#if @GNULIB_PREAD@ +/* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. + Return the number of bytes placed into BUF if successful, otherwise + set errno and return -1. 0 indicates EOF. See the POSIX:2001 + specification . */ +# if @REPLACE_PREAD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pread rpl_pread +# endif +_GL_FUNCDECL_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PREAD@ +_GL_FUNCDECL_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pread); +#elif defined GNULIB_POSIXCHECK +# undef pread +# if HAVE_RAW_DECL_PREAD +_GL_WARN_ON_USE (pread, "pread is unportable - " + "use gnulib module pread for portability"); +# endif +#endif + + +#if @GNULIB_PWRITE@ +/* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. + Return the number of bytes written if successful, otherwise + set errno and return -1. 0 indicates nothing written. See the + POSIX:2001 specification + . */ +# if @REPLACE_PWRITE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pwrite rpl_pwrite +# endif +_GL_FUNCDECL_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PWRITE@ +_GL_FUNCDECL_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pwrite); +#elif defined GNULIB_POSIXCHECK +# undef pwrite +# if HAVE_RAW_DECL_PWRITE +_GL_WARN_ON_USE (pwrite, "pwrite is unportable - " + "use gnulib module pwrite for portability"); +# endif #endif @@ -223,16 +1060,70 @@ successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# if !@HAVE_READLINK@ -# include -extern int readlink (const char *file, char *buf, size_t bufsize); +# if @REPLACE_READLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define readlink rpl_readlink +# endif +_GL_FUNCDECL_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); +# else +# if !@HAVE_READLINK@ +_GL_FUNCDECL_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); # endif +_GL_CXXALIASWARN (readlink); #elif defined GNULIB_POSIXCHECK # undef readlink -# define readlink(f,b,s) \ - (GL_LINK_WARNING ("readlink is unportable - " \ - "use gnulib module readlink for portability"), \ - readlink (f, b, s)) +# if HAVE_RAW_DECL_READLINK +_GL_WARN_ON_USE (readlink, "readlink is unportable - " + "use gnulib module readlink for portability"); +# endif +#endif + + +#if @GNULIB_READLINKAT@ +# if !@HAVE_READLINKAT@ +_GL_FUNCDECL_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len)); +_GL_CXXALIASWARN (readlinkat); +#elif defined GNULIB_POSIXCHECK +# undef readlinkat +# if HAVE_RAW_DECL_READLINKAT +_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_RMDIR@ +/* Remove the directory DIR. */ +# if @REPLACE_RMDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define rmdir rpl_rmdir +# endif +_GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (rmdir, int, (char const *name)); +# else +_GL_CXXALIAS_SYS (rmdir, int, (char const *name)); +# endif +_GL_CXXALIASWARN (rmdir); +#elif defined GNULIB_POSIXCHECK +# undef rmdir +# if HAVE_RAW_DECL_RMDIR +_GL_WARN_ON_USE (rmdir, "rmdir is unportable - " + "use gnulib module rmdir for portability"); +# endif #endif @@ -241,20 +1132,197 @@ Returns the number of seconds left to sleep. See the POSIX:2001 specification . */ -# if !@HAVE_SLEEP@ -extern unsigned int sleep (unsigned int n); +# if @REPLACE_SLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef sleep +# define sleep rpl_sleep +# endif +_GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n)); +_GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n)); +# else +# if !@HAVE_SLEEP@ +_GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n)); +# endif +_GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); # endif +_GL_CXXALIASWARN (sleep); #elif defined GNULIB_POSIXCHECK # undef sleep -# define sleep(n) \ - (GL_LINK_WARNING ("sleep is unportable - " \ - "use gnulib module sleep for portability"), \ - sleep (n)) +# if HAVE_RAW_DECL_SLEEP +_GL_WARN_ON_USE (sleep, "sleep is unportable - " + "use gnulib module sleep for portability"); +# endif #endif -#ifdef __cplusplus -} +#if @GNULIB_SYMLINK@ +# if @REPLACE_SYMLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef symlink +# define symlink rpl_symlink +# endif +_GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file)); +# else +# if !@HAVE_SYMLINK@ +_GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file)); +# endif +_GL_CXXALIASWARN (symlink); +#elif defined GNULIB_POSIXCHECK +# undef symlink +# if HAVE_RAW_DECL_SYMLINK +_GL_WARN_ON_USE (symlink, "symlink is not portable - " + "use gnulib module symlink for portability"); +# endif +#endif + + +#if @GNULIB_SYMLINKAT@ +# if !@HAVE_SYMLINKAT@ +_GL_FUNCDECL_SYS (symlinkat, int, + (char const *contents, int fd, char const *file) + _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (symlinkat, int, + (char const *contents, int fd, char const *file)); +_GL_CXXALIASWARN (symlinkat); +#elif defined GNULIB_POSIXCHECK +# undef symlinkat +# if HAVE_RAW_DECL_SYMLINKAT +_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_TTYNAME_R@ +/* Store at most BUFLEN characters of the pathname of the terminal FD is + open on in BUF. Return 0 on success, otherwise an error number. */ +# if @REPLACE_TTYNAME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ttyname_r +# define ttyname_r rpl_ttyname_r +# endif +_GL_FUNCDECL_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# else +# if !@HAVE_TTYNAME_R@ +_GL_FUNCDECL_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# endif +_GL_CXXALIASWARN (ttyname_r); +#elif defined GNULIB_POSIXCHECK +# undef ttyname_r +# if HAVE_RAW_DECL_TTYNAME_R +_GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " + "use gnulib module ttyname_r for portability"); +# endif +#endif + + +#if @GNULIB_UNLINK@ +# if @REPLACE_UNLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlink +# define unlink rpl_unlink +# endif +_GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unlink, int, (char const *file)); +# else +_GL_CXXALIAS_SYS (unlink, int, (char const *file)); +# endif +_GL_CXXALIASWARN (unlink); +#elif defined GNULIB_POSIXCHECK +# undef unlink +# if HAVE_RAW_DECL_UNLINK +_GL_WARN_ON_USE (unlink, "unlink is not portable - " + "use gnulib module unlink for portability"); +# endif +#endif + + +#if @GNULIB_UNLINKAT@ +# if @REPLACE_UNLINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlinkat +# define unlinkat rpl_unlinkat +# endif +_GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); +# else +# if !@HAVE_UNLINKAT@ +_GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); +# endif +_GL_CXXALIASWARN (unlinkat); +#elif defined GNULIB_POSIXCHECK +# undef unlinkat +# if HAVE_RAW_DECL_UNLINKAT +_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_USLEEP@ +/* Pause the execution of the current thread for N microseconds. + Returns 0 on completion, or -1 on range error. + See the POSIX:2001 specification + . */ +# if @REPLACE_USLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef usleep +# define usleep rpl_usleep +# endif +_GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); +_GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); +# else +# if !@HAVE_USLEEP@ +_GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIASWARN (usleep); +#elif defined GNULIB_POSIXCHECK +# undef usleep +# if HAVE_RAW_DECL_USLEEP +_GL_WARN_ON_USE (usleep, "usleep is unportable - " + "use gnulib module usleep for portability"); +# endif +#endif + + +#if @GNULIB_WRITE@ +/* Write up to COUNT bytes starting at BUF to file descriptor FD. + See the POSIX:2001 specification + . */ +# if @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef write +# define write rpl_write +# endif +_GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); +# else +/* Need to cast, because on mingw, the third parameter is + unsigned int count + and the return type is 'int'. */ +_GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count)); +# endif +_GL_CXXALIASWARN (write); #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistd-safer.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd-safer.h --- gettext-0.17/gettext-tools/gnulib-lib/unistd-safer.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistd-safer.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,31 @@ +/* Invoke unistd-like functions, but avoid some glitches. + + Copyright (C) 2001, 2003, 2005, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert and Eric Blake. */ + +int dup_safer (int); +int fd_safer (int); +int pipe_safer (int[2]); + +#if GNULIB_FD_SAFER_FLAG +int dup_safer_flag (int, int); +int fd_safer_flag (int, int); +#endif + +#if GNULIB_PIPE2_SAFER +int pipe2_safer (int[2], int); +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c 2007-10-31 12:36:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-aux.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-16 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n) @@ -30,18 +30,18 @@ if (c < 0xdc00) { if (n >= 2) - { - if (s[1] >= 0xdc00 && s[1] < 0xe000) - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } + { + if (s[1] >= 0xdc00 && s[1] < 0xe000) + { + *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); + return 2; + } + /* invalid multibyte character */ + } else - { - /* incomplete multibyte character */ - } + { + /* incomplete multibyte character */ + } } /* invalid multibyte character */ *puc = 0xfffd; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-16 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u16_mbtouc as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,18 +40,18 @@ if (c < 0xdc00) { if (n >= 2) - { - if (s[1] >= 0xdc00 && s[1] < 0xe000) - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } + { + if (s[1] >= 0xdc00 && s[1] < 0xe000) + { + *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); + return 2; + } + /* invalid multibyte character */ + } else - { - /* incomplete multibyte character */ - } + { + /* incomplete multibyte character */ + } } /* invalid multibyte character */ *puc = 0xfffd; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe-aux.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe-aux.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe-aux.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe-aux.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Conversion UTF-16 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "unistr.h" - -#if HAVE_INLINE - -int -u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - -#if CONFIG_UNICODE_SAFETY - if (c < 0xdc00) -#endif - { - if (n >= 2) - { -#if CONFIG_UNICODE_SAFETY - if (s[1] >= 0xdc00 && s[1] < 0xe000) -#endif - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - } - } - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} - -#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u16-mbtouc-unsafe.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,60 +0,0 @@ -/* Look at first character in UTF-16 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "unistr.h" - -#if !HAVE_INLINE - -int -u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } -#if CONFIG_UNICODE_SAFETY - if (c < 0xdc00) -#endif - { - if (n >= 2) - { -#if CONFIG_UNICODE_SAFETY - if (s[1] >= 0xdc00 && s[1] < 0xe000) -#endif - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - } - } - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} - -#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-check.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-check.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-check.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-check.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,105 @@ +/* Check UTF-8 string. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +const uint8_t * +u8_check (const uint8_t *s, size_t n) +{ + const uint8_t *s_end = s + n; + + while (s < s_end) + { + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + uint8_t c = *s; + + if (c < 0x80) + { + s++; + continue; + } + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (s + 2 <= s_end + && (s[1] ^ 0x80) < 0x40) + { + s += 2; + continue; + } + } + else if (c < 0xf0) + { + if (s + 3 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + s += 3; + continue; + } + } + else if (c < 0xf8) + { + if (s + 4 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif + ) + { + s += 4; + continue; + } + } +#if 0 + else if (c < 0xfc) + { + if (s + 5 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + s += 5; + continue; + } + } + else if (c < 0xfe) + { + if (s + 6 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + s += 6; + continue; + } + } +#endif + } + /* invalid or incomplete multibyte character */ + return s; + } + return NULL; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mblen.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mblen.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mblen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mblen.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,99 @@ +/* Look at first character in UTF-8 string. + Copyright (C) 1999-2000, 2002, 2006-2007, 2009-2010 Free Software + Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +int +u8_mblen (const uint8_t *s, size_t n) +{ + if (n > 0) + { + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + uint8_t c = *s; + + if (c < 0x80) + return (c != 0 ? 1 : 0); + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (n >= 2 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 +#endif + ) + return 2; + } + else if (c < 0xf0) + { + if (n >= 3 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0) +#endif + ) + return 3; + } + else if (c < 0xf8) + { + if (n >= 4 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif +#endif + ) + return 4; + } +#if 0 + else if (c < 0xfc) + { + if (n >= 5 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88) +#endif + ) + return 5; + } + else if (c < 0xfe) + { + if (n >= 6 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84) +#endif + ) + return 6; + } +#endif + } + } + /* invalid or incomplete multibyte character */ + return -1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-aux.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-8 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n) @@ -30,124 +30,124 @@ if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { - if ((s[1] ^ 0x80) < 0x40) - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 3) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + { + if (n >= 4) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + ) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 5) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 6) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-8 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_mbtouc as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,124 +40,124 @@ else if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { - if ((s[1] ^ 0x80) < 0x40) - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 3) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + { + if (n >= 4) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + ) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 5) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 6) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtoucr.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,285 @@ +/* Look at first character in UTF-8 string, returning an error code. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +int +u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else if (c >= 0xc2) + { + if (c < 0xe0) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xf0) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xf8) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif + ) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } +#if 0 + else if (c < 0xfc) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + if (n >= 5) + { + if ((s[4] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xfe) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + if (n >= 5) + { + if ((s[4] ^ 0x80) < 0x40) + { + if (n >= 6) + { + if ((s[5] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } +#endif + } + /* invalid multibyte character */ + *puc = 0xfffd; + return -1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe-aux.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-8 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n) @@ -30,134 +30,134 @@ if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { + { + if (n >= 2) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40) + if ((s[1] ^ 0x80) < 0x40) #endif - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { + { + if (n >= 3) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) -#endif - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) +#endif + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { + { + if (n >= 4) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) + ) #endif - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { + { + if (n >= 5) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) -#endif - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) +#endif + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { + { + if (n >= 6) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) -#endif - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) +#endif + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-mbtouc-unsafe.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-8 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,12 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_mbtouc_unsafe as 'extern', not + 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,134 +41,134 @@ else if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { + { + if (n >= 2) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40) + if ((s[1] ^ 0x80) < 0x40) #endif - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { + { + if (n >= 3) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) -#endif - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) +#endif + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { + { + if (n >= 4) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) + ) #endif - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { + { + if (n >= 5) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) -#endif - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) +#endif + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { + { + if (n >= 6) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) -#endif - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) +#endif + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-prev.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-prev.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-prev.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-prev.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,93 @@ +/* Iterate over previous character in UTF-8 string. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +const uint8_t * +u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start) +{ + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + if (s != start) + { + uint8_t c_1 = s[-1]; + + if (c_1 < 0x80) + { + *puc = c_1; + return s - 1; + } +#if CONFIG_UNICODE_SAFETY + if ((c_1 ^ 0x80) < 0x40) +#endif + if (s - 1 != start) + { + uint8_t c_2 = s[-2]; + + if (c_2 >= 0xc2 && c_2 < 0xe0) + { + *puc = ((unsigned int) (c_2 & 0x1f) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 2; + } +#if CONFIG_UNICODE_SAFETY + if ((c_2 ^ 0x80) < 0x40) +#endif + if (s - 2 != start) + { + uint8_t c_3 = s[-3]; + + if (c_3 >= 0xe0 && c_3 < 0xf0 +#if CONFIG_UNICODE_SAFETY + && (c_3 >= 0xe1 || c_2 >= 0xa0) + && (c_3 != 0xed || c_2 < 0xa0) +#endif + ) + { + *puc = ((unsigned int) (c_3 & 0x0f) << 12) + | ((unsigned int) (c_2 ^ 0x80) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 3; + } +#if CONFIG_UNICODE_SAFETY + if ((c_3 ^ 0x80) < 0x40) +#endif + if (s - 3 != start) + { + uint8_t c_4 = s[-4]; + + if (c_4 >= 0xf0 && c_4 < 0xf8 +#if CONFIG_UNICODE_SAFETY + && (c_4 >= 0xf1 || c_3 >= 0x90) + && (c_4 < 0xf4 || (c_4 == 0xf4 && c_3 < 0x90)) +#endif + ) + { + *puc = ((unsigned int) (c_4 & 0x07) << 18) + | ((unsigned int) (c_3 ^ 0x80) << 12) + | ((unsigned int) (c_2 ^ 0x80) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 4; + } + } + } + } + } + return NULL; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-uctomb-aux.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UCS-4 to UTF-8. - Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -33,9 +33,9 @@ else if (uc < 0x10000) { if (uc < 0xd800 || uc >= 0xe000) - count = 3; + count = 3; else - return -1; + return -1; } #if 0 else if (uc < 0x200000) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-uctomb.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-uctomb.c --- gettext-0.17/gettext-tools/gnulib-lib/unistr/u8-uctomb.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr/u8-uctomb.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Store a character in UTF-8 string. - Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_uctomb as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -28,10 +33,10 @@ if (uc < 0x80) { if (n > 0) - { - s[0] = uc; - return 1; - } + { + s[0] = uc; + return 1; + } /* else return -2, below. */ } else @@ -39,43 +44,43 @@ int count; if (uc < 0x800) - count = 2; + count = 2; else if (uc < 0x10000) - { - if (uc < 0xd800 || uc >= 0xe000) - count = 3; - else - return -1; - } + { + if (uc < 0xd800 || uc >= 0xe000) + count = 3; + else + return -1; + } #if 0 else if (uc < 0x200000) - count = 4; + count = 4; else if (uc < 0x4000000) - count = 5; + count = 5; else if (uc <= 0x7fffffff) - count = 6; + count = 6; #else else if (uc < 0x110000) - count = 4; + count = 4; #endif else - return -1; + return -1; if (n >= count) - { - switch (count) /* note: code falls through cases! */ - { + { + switch (count) /* note: code falls through cases! */ + { #if 0 - case 6: s[5] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x4000000; - case 5: s[4] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x200000; + case 6: s[5] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x4000000; + case 5: s[4] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x200000; #endif - case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; - case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; - case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; - /*case 1:*/ s[0] = uc; - } - return count; - } + case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; + case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; + case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; + /*case 1:*/ s[0] = uc; + } + return count; + } } return -2; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr.h --- gettext-0.17/gettext-tools/gnulib-lib/unistr.h 2007-10-31 12:36:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,661 +0,0 @@ -/* Elementary Unicode string functions. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNISTR_H -#define _UNISTR_H - -#include "unitypes.h" - -/* Get bool. */ -#include - -/* Get size_t. */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Conventions: - - All functions prefixed with u8_ operate on UTF-8 encoded strings. - Their unit is an uint8_t (1 byte). - - All functions prefixed with u16_ operate on UTF-16 encoded strings. - Their unit is an uint16_t (a 2-byte word). - - All functions prefixed with u32_ operate on UCS-4 encoded strings. - Their unit is an uint32_t (a 4-byte word). - - All argument pairs (s, n) denote a Unicode string s[0..n-1] with exactly - n units. - - All arguments starting with "str" and the arguments of functions starting - with u8_str/u16_str/u32_str denote a NUL terminated string, i.e. a string - which terminates at the first NUL unit. This termination unit is - considered part of the string for all memory allocation purposes, but - is not considered part of the string for all other logical purposes. - - Functions returning a string result take a (resultbuf, lengthp) argument - pair. If resultbuf is not NULL and the result fits into *lengthp units, - it is put in resultbuf, and resultbuf is returned. Otherwise, a freshly - allocated string is returned. In both cases, *lengthp is set to the - length (number of units) of the returned string. In case of error, - NULL is returned and errno is set. */ - - -/* Elementary string checks. */ - -/* Check whether an UTF-8 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint8_t * - u8_check (const uint8_t *s, size_t n); - -/* Check whether an UTF-16 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint16_t * - u16_check (const uint16_t *s, size_t n); - -/* Check whether an UCS-4 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint32_t * - u32_check (const uint32_t *s, size_t n); - - -/* Elementary string conversions. */ - -/* Convert an UTF-8 string to an UTF-16 string. */ -extern uint16_t * - u8_to_u16 (const uint8_t *s, size_t n, uint16_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-8 string to an UCS-4 string. */ -extern uint32_t * - u8_to_u32 (const uint8_t *s, size_t n, uint32_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-16 string to an UTF-8 string. */ -extern uint8_t * - u16_to_u8 (const uint16_t *s, size_t n, uint8_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-16 string to an UCS-4 string. */ -extern uint32_t * - u16_to_u32 (const uint16_t *s, size_t n, uint32_t *resultbuf, - size_t *lengthp); - -/* Convert an UCS-4 string to an UTF-8 string. */ -extern uint8_t * - u32_to_u8 (const uint32_t *s, size_t n, uint8_t *resultbuf, - size_t *lengthp); - -/* Convert an UCS-4 string to an UTF-16 string. */ -extern uint16_t * - u32_to_u16 (const uint32_t *s, size_t n, uint16_t *resultbuf, - size_t *lengthp); - - -/* Elementary string functions. */ - -/* Return the length (number of units) of the first character in S, which is - no longer than N. Return 0 if it is the NUL character. Return -1 upon - failure. */ -/* Similar to mblen(), except that s must not be NULL. */ -extern int - u8_mblen (const uint8_t *s, size_t n); -extern int - u16_mblen (const uint16_t *s, size_t n); -extern int - u32_mblen (const uint32_t *s, size_t n); - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, - and an appropriate number of units is returned. - The number of available units, N, must be > 0. */ -/* Similar to mbtowc(), except that puc and s must not be NULL, n must be > 0, - and the NUL character is not treated specially. */ -/* The variants with _safe suffix are safe, even if the library is compiled - without --enable-safety. */ - -#ifdef GNULIB_UNISTR_U8_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n); -# else -extern int - u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n); -static inline int -u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n) -{ - uint8_t c = *s; - - if (c < 0x80) - { - *puc = c; - return 1; - } - else - return u8_mbtouc_unsafe_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n); -# else -extern int - u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n); -static inline int -u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } - else - return u16_mbtouc_unsafe_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n); -# else -static inline int -u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n) -{ - uint32_t c = *s; - -# if CONFIG_UNICODE_SAFETY - if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) -# endif - *puc = c; -# if CONFIG_UNICODE_SAFETY - else - /* invalid multibyte character */ - *puc = 0xfffd; -# endif - return 1; -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U8_MBTOUC -# if !HAVE_INLINE -extern int - u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n); -# else -extern int - u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n); -static inline int -u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n) -{ - uint8_t c = *s; - - if (c < 0x80) - { - *puc = c; - return 1; - } - else - return u8_mbtouc_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUC -# if !HAVE_INLINE -extern int - u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); -# else -extern int - u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n); -static inline int -u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } - else - return u16_mbtouc_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUC -# if !HAVE_INLINE -extern int - u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); -# else -static inline int -u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n) -{ - uint32_t c = *s; - - if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) - *puc = c; - else - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} -# endif -#endif - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, - and -1 is returned for an invalid sequence of units, -2 is returned for an - incomplete sequence of units. - The number of available units, N, must be > 0. */ -/* Similar to u*_mbtouc(), except that the return value gives more details - about the failure, similar to mbrtowc(). */ - -#ifdef GNULIB_UNISTR_U8_MBTOUCR -extern int - u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n); -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUCR -extern int - u16_mbtoucr (ucs4_t *puc, const uint16_t *s, size_t n); -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUCR -extern int - u32_mbtoucr (ucs4_t *puc, const uint32_t *s, size_t n); -#endif - -/* Put the multibyte character represented by UC in S, returning its - length. Return -1 upon failure, -2 if the number of available units, N, - is too small. The latter case cannot occur if N >= 6/2/1, respectively. */ -/* Similar to wctomb(), except that s must not be NULL, and the argument n - must be specified. */ - -#ifdef GNULIB_UNISTR_U8_UCTOMB -/* Auxiliary function, also used by u8_chr, u8_strchr, u8_strrchr. */ -extern int - u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n); -# if !HAVE_INLINE -extern int - u8_uctomb (uint8_t *s, ucs4_t uc, int n); -# else -static inline int -u8_uctomb (uint8_t *s, ucs4_t uc, int n) -{ - if (uc < 0x80 && n > 0) - { - s[0] = uc; - return 1; - } - else - return u8_uctomb_aux (s, uc, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_UCTOMB -/* Auxiliary function, also used by u16_chr, u16_strchr, u16_strrchr. */ -extern int - u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n); -# if !HAVE_INLINE -extern int - u16_uctomb (uint16_t *s, ucs4_t uc, int n); -# else -static inline int -u16_uctomb (uint16_t *s, ucs4_t uc, int n) -{ - if (uc < 0xd800 && n > 0) - { - s[0] = uc; - return 1; - } - else - return u16_uctomb_aux (s, uc, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_UCTOMB -# if !HAVE_INLINE -extern int - u32_uctomb (uint32_t *s, ucs4_t uc, int n); -# else -static inline int -u32_uctomb (uint32_t *s, ucs4_t uc, int n) -{ - if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) - { - if (n > 0) - { - *s = uc; - return 1; - } - else - return -2; - } - else - return -1; -} -# endif -#endif - -/* Copy N units from SRC to DEST. */ -/* Similar to memcpy(). */ -extern uint8_t * - u8_cpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_cpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_cpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Copy N units from SRC to DEST, guaranteeing correct behavior for - overlapping memory areas. */ -/* Similar to memmove(). */ -extern uint8_t * - u8_move (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_move (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_move (uint32_t *dest, const uint32_t *src, size_t n); - -/* Set the first N characters of S to UC. UC should be a character that - occupies only 1 unit. */ -/* Similar to memset(). */ -extern uint8_t * - u8_set (uint8_t *s, ucs4_t uc, size_t n); -extern uint16_t * - u16_set (uint16_t *s, ucs4_t uc, size_t n); -extern uint32_t * - u32_set (uint32_t *s, ucs4_t uc, size_t n); - -/* Compare S1 and S2, each of length N. */ -/* Similar to memcmp(). */ -extern int - u8_cmp (const uint8_t *s1, const uint8_t *s2, size_t n); -extern int - u16_cmp (const uint16_t *s1, const uint16_t *s2, size_t n); -extern int - u32_cmp (const uint32_t *s1, const uint32_t *s2, size_t n); - -/* Search the string at S for UC. */ -/* Similar to memchr(). */ -extern uint8_t * - u8_chr (const uint8_t *s, size_t n, ucs4_t uc); -extern uint16_t * - u16_chr (const uint16_t *s, size_t n, ucs4_t uc); -extern uint32_t * - u32_chr (const uint32_t *s, size_t n, ucs4_t uc); - -/* Count the number of Unicode characters in the N units from S. */ -/* Similar to mbsnlen(). */ -extern size_t - u8_mbsnlen (const uint8_t *s, size_t n); -extern size_t - u16_mbsnlen (const uint16_t *s, size_t n); -extern size_t - u32_mbsnlen (const uint32_t *s, size_t n); - -/* Elementary string functions with memory allocation. */ - -/* Make a freshly allocated copy of S, of length N. */ -extern uint8_t * - u8_cpy_alloc (const uint8_t *s, size_t n); -extern uint16_t * - u16_cpy_alloc (const uint16_t *s, size_t n); -extern uint32_t * - u32_cpy_alloc (const uint32_t *s, size_t n); - -/* Elementary string functions on NUL terminated strings. */ - -/* Return the length (number of units) of the first character in S. - Return 0 if it is the NUL character. Return -1 upon failure. */ -extern int - u8_strmblen (const uint8_t *s); -extern int - u16_strmblen (const uint16_t *s); -extern int - u32_strmblen (const uint32_t *s); - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Return 0 if it is the NUL - character. Return -1 upon failure. */ -extern int - u8_strmbtouc (ucs4_t *puc, const uint8_t *s); -extern int - u16_strmbtouc (ucs4_t *puc, const uint16_t *s); -extern int - u32_strmbtouc (ucs4_t *puc, const uint32_t *s); - -/* Forward iteration step. Advances the pointer past the next character, - or returns NULL if the end of the string has been reached. Puts the - character's 'ucs4_t' representation in *PUC. */ -extern const uint8_t * - u8_next (ucs4_t *puc, const uint8_t *s); -extern const uint16_t * - u16_next (ucs4_t *puc, const uint16_t *s); -extern const uint32_t * - u32_next (ucs4_t *puc, const uint32_t *s); - -/* Backward iteration step. Advances the pointer to point to the previous - character, or returns NULL if the beginning of the string had been reached. - Puts the character's 'ucs4_t' representation in *PUC. */ -extern const uint8_t * - u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start); -extern const uint16_t * - u16_prev (ucs4_t *puc, const uint16_t *s, const uint16_t *start); -extern const uint32_t * - u32_prev (ucs4_t *puc, const uint32_t *s, const uint32_t *start); - -/* Return the number of units in S. */ -/* Similar to strlen(), wcslen(). */ -extern size_t - u8_strlen (const uint8_t *s); -extern size_t - u16_strlen (const uint16_t *s); -extern size_t - u32_strlen (const uint32_t *s); - -/* Return the number of units in S, but at most MAXLEN. */ -/* Similar to strnlen(), wcsnlen(). */ -extern size_t - u8_strnlen (const uint8_t *s, size_t maxlen); -extern size_t - u16_strnlen (const uint16_t *s, size_t maxlen); -extern size_t - u32_strnlen (const uint32_t *s, size_t maxlen); - -/* Copy SRC to DEST. */ -/* Similar to strcpy(), wcscpy(). */ -extern uint8_t * - u8_strcpy (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_strcpy (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_strcpy (uint32_t *dest, const uint32_t *src); - -/* Copy SRC to DEST, returning the address of the terminating NUL in DEST. */ -/* Similar to stpcpy(). */ -extern uint8_t * - u8_stpcpy (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_stpcpy (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_stpcpy (uint32_t *dest, const uint32_t *src); - -/* Copy no more than N units of SRC to DEST. */ -/* Similar to strncpy(), wcsncpy(). */ -extern uint8_t * - u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_strncpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_strncpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Copy no more than N characters of SRC to DEST, returning the address of - the last character written into DEST. */ -/* Similar to stpncpy(). */ -extern uint8_t * - u8_stpncpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_stpncpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_stpncpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Append SRC onto DEST. */ -/* Similar to strcat(), wcscat(). */ -extern uint8_t * - u8_strcat (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_strcat (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_strcat (uint32_t *dest, const uint32_t *src); - -/* Append no more than N units of SRC onto DEST. */ -/* Similar to strncat(), wcsncat(). */ -extern uint8_t * - u8_strncat (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_strncat (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_strncat (uint32_t *dest, const uint32_t *src, size_t n); - -/* Compare S1 and S2. */ -/* Similar to strcmp(), wcscmp(). */ -extern int - u8_strcmp (const uint8_t *s1, const uint8_t *s2); -extern int - u16_strcmp (const uint16_t *s1, const uint16_t *s2); -extern int - u32_strcmp (const uint32_t *s1, const uint32_t *s2); - -/* Compare no more than N units of S1 and S2. */ -/* Similar to strncmp(), wcsncmp(). */ -extern int - u8_strncmp (const uint8_t *s1, const uint8_t *s2, size_t n); -extern int - u16_strncmp (const uint16_t *s1, const uint16_t *s2, size_t n); -extern int - u32_strncmp (const uint32_t *s1, const uint32_t *s2, size_t n); - -/* Duplicate S, returning an identical malloc'd string. */ -/* Similar to strdup(), wcsdup(). */ -extern uint8_t * - u8_strdup (const uint8_t *s); -extern uint16_t * - u16_strdup (const uint16_t *s); -extern uint32_t * - u32_strdup (const uint32_t *s); - -/* Find the first occurrence of UC in STR. */ -/* Similar to strchr(), wcschr(). */ -extern uint8_t * - u8_strchr (const uint8_t *str, ucs4_t uc); -extern uint16_t * - u16_strchr (const uint16_t *str, ucs4_t uc); -extern uint32_t * - u32_strchr (const uint32_t *str, ucs4_t uc); - -/* Find the last occurrence of UC in STR. */ -/* Similar to strrchr(), wcsrchr(). */ -extern uint8_t * - u8_strrchr (const uint8_t *str, ucs4_t uc); -extern uint16_t * - u16_strrchr (const uint16_t *str, ucs4_t uc); -extern uint32_t * - u32_strrchr (const uint32_t *str, ucs4_t uc); - -/* Return the length of the initial segment of STR which consists entirely - of Unicode characters not in REJECT. */ -/* Similar to strcspn(), wcscspn(). */ -extern size_t - u8_strcspn (const uint8_t *str, const uint8_t *reject); -extern size_t - u16_strcspn (const uint16_t *str, const uint16_t *reject); -extern size_t - u32_strcspn (const uint32_t *str, const uint32_t *reject); - -/* Return the length of the initial segment of STR which consists entirely - of Unicode characters in ACCEPT. */ -/* Similar to strspn(), wcsspn(). */ -extern size_t - u8_strspn (const uint8_t *str, const uint8_t *accept); -extern size_t - u16_strspn (const uint16_t *str, const uint16_t *accept); -extern size_t - u32_strspn (const uint32_t *str, const uint32_t *accept); - -/* Find the first occurrence in STR of any character in ACCEPT. */ -/* Similar to strpbrk(), wcspbrk(). */ -extern uint8_t * - u8_strpbrk (const uint8_t *str, const uint8_t *accept); -extern uint16_t * - u16_strpbrk (const uint16_t *str, const uint16_t *accept); -extern uint32_t * - u32_strpbrk (const uint32_t *str, const uint32_t *accept); - -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -/* Similar to strstr(), wcsstr(). */ -extern uint8_t * - u8_strstr (const uint8_t *haystack, const uint8_t *needle); -extern uint16_t * - u16_strstr (const uint16_t *haystack, const uint16_t *needle); -extern uint32_t * - u32_strstr (const uint32_t *haystack, const uint32_t *needle); - -/* Test whether STR starts with PREFIX. */ -extern bool - u8_startswith (const uint8_t *str, const uint8_t *prefix); -extern bool - u16_startswith (const uint16_t *str, const uint16_t *prefix); -extern bool - u32_startswith (const uint32_t *str, const uint32_t *prefix); - -/* Test whether STR ends with SUFFIX. */ -extern bool - u8_endswith (const uint8_t *str, const uint8_t *suffix); -extern bool - u16_endswith (const uint16_t *str, const uint16_t *suffix); -extern bool - u32_endswith (const uint32_t *str, const uint32_t *suffix); - -/* Divide STR into tokens separated by characters in DELIM. - This interface is actually more similar to wcstok than to strtok. */ -/* Similar to strtok_r(), wcstok(). */ -extern uint8_t * - u8_strtok (uint8_t *str, const uint8_t *delim, uint8_t **ptr); -extern uint16_t * - u16_strtok (uint16_t *str, const uint16_t *delim, uint16_t **ptr); -extern uint32_t * - u32_strtok (uint32_t *str, const uint32_t *delim, uint32_t **ptr); - - -#ifdef __cplusplus -} -#endif - -#endif /* _UNISTR_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unistr.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr.in.h --- gettext-0.17/gettext-tools/gnulib-lib/unistr.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unistr.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,685 @@ +/* Elementary Unicode string functions. + Copyright (C) 2001-2002, 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNISTR_H +#define _UNISTR_H + +#include "unitypes.h" + +/* Get common macros for C. */ +#include "unused-parameter.h" + +/* Get bool. */ +#include + +/* Get size_t. */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Conventions: + + All functions prefixed with u8_ operate on UTF-8 encoded strings. + Their unit is an uint8_t (1 byte). + + All functions prefixed with u16_ operate on UTF-16 encoded strings. + Their unit is an uint16_t (a 2-byte word). + + All functions prefixed with u32_ operate on UCS-4 encoded strings. + Their unit is an uint32_t (a 4-byte word). + + All argument pairs (s, n) denote a Unicode string s[0..n-1] with exactly + n units. + + All arguments starting with "str" and the arguments of functions starting + with u8_str/u16_str/u32_str denote a NUL terminated string, i.e. a string + which terminates at the first NUL unit. This termination unit is + considered part of the string for all memory allocation purposes, but + is not considered part of the string for all other logical purposes. + + Functions returning a string result take a (resultbuf, lengthp) argument + pair. If resultbuf is not NULL and the result fits into *lengthp units, + it is put in resultbuf, and resultbuf is returned. Otherwise, a freshly + allocated string is returned. In both cases, *lengthp is set to the + length (number of units) of the returned string. In case of error, + NULL is returned and errno is set. */ + + +/* Elementary string checks. */ + +/* Check whether an UTF-8 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint8_t * + u8_check (const uint8_t *s, size_t n); + +/* Check whether an UTF-16 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint16_t * + u16_check (const uint16_t *s, size_t n); + +/* Check whether an UCS-4 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint32_t * + u32_check (const uint32_t *s, size_t n); + + +/* Elementary string conversions. */ + +/* Convert an UTF-8 string to an UTF-16 string. */ +extern uint16_t * + u8_to_u16 (const uint8_t *s, size_t n, uint16_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-8 string to an UCS-4 string. */ +extern uint32_t * + u8_to_u32 (const uint8_t *s, size_t n, uint32_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-16 string to an UTF-8 string. */ +extern uint8_t * + u16_to_u8 (const uint16_t *s, size_t n, uint8_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-16 string to an UCS-4 string. */ +extern uint32_t * + u16_to_u32 (const uint16_t *s, size_t n, uint32_t *resultbuf, + size_t *lengthp); + +/* Convert an UCS-4 string to an UTF-8 string. */ +extern uint8_t * + u32_to_u8 (const uint32_t *s, size_t n, uint8_t *resultbuf, + size_t *lengthp); + +/* Convert an UCS-4 string to an UTF-16 string. */ +extern uint16_t * + u32_to_u16 (const uint32_t *s, size_t n, uint16_t *resultbuf, + size_t *lengthp); + + +/* Elementary string functions. */ + +/* Return the length (number of units) of the first character in S, which is + no longer than N. Return 0 if it is the NUL character. Return -1 upon + failure. */ +/* Similar to mblen(), except that s must not be NULL. */ +extern int + u8_mblen (const uint8_t *s, size_t n); +extern int + u16_mblen (const uint16_t *s, size_t n); +extern int + u32_mblen (const uint32_t *s, size_t n); + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, + and an appropriate number of units is returned. + The number of available units, N, must be > 0. */ +/* Similar to mbtowc(), except that puc and s must not be NULL, n must be > 0, + and the NUL character is not treated specially. */ +/* The variants with _safe suffix are safe, even if the library is compiled + without --enable-safety. */ + +#ifdef GNULIB_UNISTR_U8_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n); +# else +extern int + u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n); +static inline int +u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else + return u8_mbtouc_unsafe_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n); +# else +extern int + u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n); +static inline int +u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) +{ + uint16_t c = *s; + + if (c < 0xd800 || c >= 0xe000) + { + *puc = c; + return 1; + } + else + return u16_mbtouc_unsafe_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n); +# else +static inline int +u32_mbtouc_unsafe (ucs4_t *puc, + const uint32_t *s, size_t n _GL_UNUSED_PARAMETER) +{ + uint32_t c = *s; + +# if CONFIG_UNICODE_SAFETY + if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) +# endif + *puc = c; +# if CONFIG_UNICODE_SAFETY + else + /* invalid multibyte character */ + *puc = 0xfffd; +# endif + return 1; +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U8_MBTOUC +# if !HAVE_INLINE +extern int + u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n); +# else +extern int + u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n); +static inline int +u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else + return u8_mbtouc_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUC +# if !HAVE_INLINE +extern int + u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); +# else +extern int + u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n); +static inline int +u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n) +{ + uint16_t c = *s; + + if (c < 0xd800 || c >= 0xe000) + { + *puc = c; + return 1; + } + else + return u16_mbtouc_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUC +# if !HAVE_INLINE +extern int + u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); +# else +static inline int +u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n _GL_UNUSED_PARAMETER) +{ + uint32_t c = *s; + + if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) + *puc = c; + else + /* invalid multibyte character */ + *puc = 0xfffd; + return 1; +} +# endif +#endif + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, + and -1 is returned for an invalid sequence of units, -2 is returned for an + incomplete sequence of units. + The number of available units, N, must be > 0. */ +/* Similar to u*_mbtouc(), except that the return value gives more details + about the failure, similar to mbrtowc(). */ + +#ifdef GNULIB_UNISTR_U8_MBTOUCR +extern int + u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n); +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUCR +extern int + u16_mbtoucr (ucs4_t *puc, const uint16_t *s, size_t n); +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUCR +extern int + u32_mbtoucr (ucs4_t *puc, const uint32_t *s, size_t n); +#endif + +/* Put the multibyte character represented by UC in S, returning its + length. Return -1 upon failure, -2 if the number of available units, N, + is too small. The latter case cannot occur if N >= 6/2/1, respectively. */ +/* Similar to wctomb(), except that s must not be NULL, and the argument n + must be specified. */ + +#ifdef GNULIB_UNISTR_U8_UCTOMB +/* Auxiliary function, also used by u8_chr, u8_strchr, u8_strrchr. */ +extern int + u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n); +# if !HAVE_INLINE +extern int + u8_uctomb (uint8_t *s, ucs4_t uc, int n); +# else +static inline int +u8_uctomb (uint8_t *s, ucs4_t uc, int n) +{ + if (uc < 0x80 && n > 0) + { + s[0] = uc; + return 1; + } + else + return u8_uctomb_aux (s, uc, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_UCTOMB +/* Auxiliary function, also used by u16_chr, u16_strchr, u16_strrchr. */ +extern int + u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n); +# if !HAVE_INLINE +extern int + u16_uctomb (uint16_t *s, ucs4_t uc, int n); +# else +static inline int +u16_uctomb (uint16_t *s, ucs4_t uc, int n) +{ + if (uc < 0xd800 && n > 0) + { + s[0] = uc; + return 1; + } + else + return u16_uctomb_aux (s, uc, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_UCTOMB +# if !HAVE_INLINE +extern int + u32_uctomb (uint32_t *s, ucs4_t uc, int n); +# else +static inline int +u32_uctomb (uint32_t *s, ucs4_t uc, int n) +{ + if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) + { + if (n > 0) + { + *s = uc; + return 1; + } + else + return -2; + } + else + return -1; +} +# endif +#endif + +/* Copy N units from SRC to DEST. */ +/* Similar to memcpy(). */ +extern uint8_t * + u8_cpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_cpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_cpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Copy N units from SRC to DEST, guaranteeing correct behavior for + overlapping memory areas. */ +/* Similar to memmove(). */ +extern uint8_t * + u8_move (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_move (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_move (uint32_t *dest, const uint32_t *src, size_t n); + +/* Set the first N characters of S to UC. UC should be a character that + occupies only 1 unit. */ +/* Similar to memset(). */ +extern uint8_t * + u8_set (uint8_t *s, ucs4_t uc, size_t n); +extern uint16_t * + u16_set (uint16_t *s, ucs4_t uc, size_t n); +extern uint32_t * + u32_set (uint32_t *s, ucs4_t uc, size_t n); + +/* Compare S1 and S2, each of length N. */ +/* Similar to memcmp(). */ +extern int + u8_cmp (const uint8_t *s1, const uint8_t *s2, size_t n); +extern int + u16_cmp (const uint16_t *s1, const uint16_t *s2, size_t n); +extern int + u32_cmp (const uint32_t *s1, const uint32_t *s2, size_t n); + +/* Compare S1 and S2. */ +/* Similar to the gnulib function memcmp2(). */ +extern int + u8_cmp2 (const uint8_t *s1, size_t n1, const uint8_t *s2, size_t n2); +extern int + u16_cmp2 (const uint16_t *s1, size_t n1, const uint16_t *s2, size_t n2); +extern int + u32_cmp2 (const uint32_t *s1, size_t n1, const uint32_t *s2, size_t n2); + +/* Search the string at S for UC. */ +/* Similar to memchr(). */ +extern uint8_t * + u8_chr (const uint8_t *s, size_t n, ucs4_t uc); +extern uint16_t * + u16_chr (const uint16_t *s, size_t n, ucs4_t uc); +extern uint32_t * + u32_chr (const uint32_t *s, size_t n, ucs4_t uc); + +/* Count the number of Unicode characters in the N units from S. */ +/* Similar to mbsnlen(). */ +extern size_t + u8_mbsnlen (const uint8_t *s, size_t n); +extern size_t + u16_mbsnlen (const uint16_t *s, size_t n); +extern size_t + u32_mbsnlen (const uint32_t *s, size_t n); + +/* Elementary string functions with memory allocation. */ + +/* Make a freshly allocated copy of S, of length N. */ +extern uint8_t * + u8_cpy_alloc (const uint8_t *s, size_t n); +extern uint16_t * + u16_cpy_alloc (const uint16_t *s, size_t n); +extern uint32_t * + u32_cpy_alloc (const uint32_t *s, size_t n); + +/* Elementary string functions on NUL terminated strings. */ + +/* Return the length (number of units) of the first character in S. + Return 0 if it is the NUL character. Return -1 upon failure. */ +extern int + u8_strmblen (const uint8_t *s); +extern int + u16_strmblen (const uint16_t *s); +extern int + u32_strmblen (const uint32_t *s); + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Return 0 if it is the NUL + character. Return -1 upon failure. */ +extern int + u8_strmbtouc (ucs4_t *puc, const uint8_t *s); +extern int + u16_strmbtouc (ucs4_t *puc, const uint16_t *s); +extern int + u32_strmbtouc (ucs4_t *puc, const uint32_t *s); + +/* Forward iteration step. Advances the pointer past the next character, + or returns NULL if the end of the string has been reached. Puts the + character's 'ucs4_t' representation in *PUC. */ +extern const uint8_t * + u8_next (ucs4_t *puc, const uint8_t *s); +extern const uint16_t * + u16_next (ucs4_t *puc, const uint16_t *s); +extern const uint32_t * + u32_next (ucs4_t *puc, const uint32_t *s); + +/* Backward iteration step. Advances the pointer to point to the previous + character, or returns NULL if the beginning of the string had been reached. + Puts the character's 'ucs4_t' representation in *PUC. */ +extern const uint8_t * + u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start); +extern const uint16_t * + u16_prev (ucs4_t *puc, const uint16_t *s, const uint16_t *start); +extern const uint32_t * + u32_prev (ucs4_t *puc, const uint32_t *s, const uint32_t *start); + +/* Return the number of units in S. */ +/* Similar to strlen(), wcslen(). */ +extern size_t + u8_strlen (const uint8_t *s); +extern size_t + u16_strlen (const uint16_t *s); +extern size_t + u32_strlen (const uint32_t *s); + +/* Return the number of units in S, but at most MAXLEN. */ +/* Similar to strnlen(), wcsnlen(). */ +extern size_t + u8_strnlen (const uint8_t *s, size_t maxlen); +extern size_t + u16_strnlen (const uint16_t *s, size_t maxlen); +extern size_t + u32_strnlen (const uint32_t *s, size_t maxlen); + +/* Copy SRC to DEST. */ +/* Similar to strcpy(), wcscpy(). */ +extern uint8_t * + u8_strcpy (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_strcpy (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_strcpy (uint32_t *dest, const uint32_t *src); + +/* Copy SRC to DEST, returning the address of the terminating NUL in DEST. */ +/* Similar to stpcpy(). */ +extern uint8_t * + u8_stpcpy (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_stpcpy (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_stpcpy (uint32_t *dest, const uint32_t *src); + +/* Copy no more than N units of SRC to DEST. */ +/* Similar to strncpy(), wcsncpy(). */ +extern uint8_t * + u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_strncpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_strncpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Copy no more than N units of SRC to DEST. Return a pointer past the last + non-NUL unit written into DEST. */ +/* Similar to stpncpy(). */ +extern uint8_t * + u8_stpncpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_stpncpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_stpncpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Append SRC onto DEST. */ +/* Similar to strcat(), wcscat(). */ +extern uint8_t * + u8_strcat (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_strcat (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_strcat (uint32_t *dest, const uint32_t *src); + +/* Append no more than N units of SRC onto DEST. */ +/* Similar to strncat(), wcsncat(). */ +extern uint8_t * + u8_strncat (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_strncat (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_strncat (uint32_t *dest, const uint32_t *src, size_t n); + +/* Compare S1 and S2. */ +/* Similar to strcmp(), wcscmp(). */ +extern int + u8_strcmp (const uint8_t *s1, const uint8_t *s2); +extern int + u16_strcmp (const uint16_t *s1, const uint16_t *s2); +extern int + u32_strcmp (const uint32_t *s1, const uint32_t *s2); + +/* Compare S1 and S2 using the collation rules of the current locale. + Return -1 if S1 < S2, 0 if S1 = S2, 1 if S1 > S2. + Upon failure, set errno and return any value. */ +/* Similar to strcoll(), wcscoll(). */ +extern int + u8_strcoll (const uint8_t *s1, const uint8_t *s2); +extern int + u16_strcoll (const uint16_t *s1, const uint16_t *s2); +extern int + u32_strcoll (const uint32_t *s1, const uint32_t *s2); + +/* Compare no more than N units of S1 and S2. */ +/* Similar to strncmp(), wcsncmp(). */ +extern int + u8_strncmp (const uint8_t *s1, const uint8_t *s2, size_t n); +extern int + u16_strncmp (const uint16_t *s1, const uint16_t *s2, size_t n); +extern int + u32_strncmp (const uint32_t *s1, const uint32_t *s2, size_t n); + +/* Duplicate S, returning an identical malloc'd string. */ +/* Similar to strdup(), wcsdup(). */ +extern uint8_t * + u8_strdup (const uint8_t *s); +extern uint16_t * + u16_strdup (const uint16_t *s); +extern uint32_t * + u32_strdup (const uint32_t *s); + +/* Find the first occurrence of UC in STR. */ +/* Similar to strchr(), wcschr(). */ +extern uint8_t * + u8_strchr (const uint8_t *str, ucs4_t uc); +extern uint16_t * + u16_strchr (const uint16_t *str, ucs4_t uc); +extern uint32_t * + u32_strchr (const uint32_t *str, ucs4_t uc); + +/* Find the last occurrence of UC in STR. */ +/* Similar to strrchr(), wcsrchr(). */ +extern uint8_t * + u8_strrchr (const uint8_t *str, ucs4_t uc); +extern uint16_t * + u16_strrchr (const uint16_t *str, ucs4_t uc); +extern uint32_t * + u32_strrchr (const uint32_t *str, ucs4_t uc); + +/* Return the length of the initial segment of STR which consists entirely + of Unicode characters not in REJECT. */ +/* Similar to strcspn(), wcscspn(). */ +extern size_t + u8_strcspn (const uint8_t *str, const uint8_t *reject); +extern size_t + u16_strcspn (const uint16_t *str, const uint16_t *reject); +extern size_t + u32_strcspn (const uint32_t *str, const uint32_t *reject); + +/* Return the length of the initial segment of STR which consists entirely + of Unicode characters in ACCEPT. */ +/* Similar to strspn(), wcsspn(). */ +extern size_t + u8_strspn (const uint8_t *str, const uint8_t *accept); +extern size_t + u16_strspn (const uint16_t *str, const uint16_t *accept); +extern size_t + u32_strspn (const uint32_t *str, const uint32_t *accept); + +/* Find the first occurrence in STR of any character in ACCEPT. */ +/* Similar to strpbrk(), wcspbrk(). */ +extern uint8_t * + u8_strpbrk (const uint8_t *str, const uint8_t *accept); +extern uint16_t * + u16_strpbrk (const uint16_t *str, const uint16_t *accept); +extern uint32_t * + u32_strpbrk (const uint32_t *str, const uint32_t *accept); + +/* Find the first occurrence of NEEDLE in HAYSTACK. */ +/* Similar to strstr(), wcsstr(). */ +extern uint8_t * + u8_strstr (const uint8_t *haystack, const uint8_t *needle); +extern uint16_t * + u16_strstr (const uint16_t *haystack, const uint16_t *needle); +extern uint32_t * + u32_strstr (const uint32_t *haystack, const uint32_t *needle); + +/* Test whether STR starts with PREFIX. */ +extern bool + u8_startswith (const uint8_t *str, const uint8_t *prefix); +extern bool + u16_startswith (const uint16_t *str, const uint16_t *prefix); +extern bool + u32_startswith (const uint32_t *str, const uint32_t *prefix); + +/* Test whether STR ends with SUFFIX. */ +extern bool + u8_endswith (const uint8_t *str, const uint8_t *suffix); +extern bool + u16_endswith (const uint16_t *str, const uint16_t *suffix); +extern bool + u32_endswith (const uint32_t *str, const uint32_t *suffix); + +/* Divide STR into tokens separated by characters in DELIM. + This interface is actually more similar to wcstok than to strtok. */ +/* Similar to strtok_r(), wcstok(). */ +extern uint8_t * + u8_strtok (uint8_t *str, const uint8_t *delim, uint8_t **ptr); +extern uint16_t * + u16_strtok (uint16_t *str, const uint16_t *delim, uint16_t **ptr); +extern uint32_t * + u32_strtok (uint32_t *str, const uint32_t *delim, uint32_t **ptr); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNISTR_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unitypes.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unitypes.h --- gettext-0.17/gettext-tools/gnulib-lib/unitypes.h 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unitypes.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -/* Elementary types for the GNU UniString library. - Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNITYPES_H -#define _UNITYPES_H - -/* Get uint8_t, uint16_t, uint32_t. */ -#include - -/* Type representing a Unicode character. */ -typedef uint32_t ucs4_t; - -#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unitypes.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unitypes.in.h --- gettext-0.17/gettext-tools/gnulib-lib/unitypes.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unitypes.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,26 @@ +/* Elementary types for the GNU UniString library. + Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNITYPES_H +#define _UNITYPES_H + +/* Get uint8_t, uint16_t, uint32_t. */ +#include + +/* Type representing a Unicode character. */ +typedef uint32_t ucs4_t; + +#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniwidth/cjk.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth/cjk.h --- gettext-0.17/gettext-tools/gnulib-lib/uniwidth/cjk.h 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth/cjk.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for CJK encoding. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniwidth/width.c gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth/width.c --- gettext-0.17/gettext-tools/gnulib-lib/uniwidth/width.c 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth/width.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine display width of Unicode character. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -32,11 +32,11 @@ * - Zero width characters; generated from * "grep '^[^;]*;ZERO WIDTH ' UnicodeData.txt" */ -static const unsigned char nonspacing_table_data[22*64] = { +static const unsigned char nonspacing_table_data[26*64] = { /* 0x0000-0x01ff */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, /* 0x0000-0x003f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0x0040-0x007f */ - 0xff, 0xff, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, /* 0x0080-0x00bf */ + 0xff, 0xff, 0xff, 0xff, 0x00, 0x20, 0x00, 0x00, /* 0x0080-0x00bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x00c0-0x00ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0100-0x013f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0140-0x017f */ @@ -54,14 +54,14 @@ /* 0x0400-0x05ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0400-0x043f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0440-0x047f */ - 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ + 0xf8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x04c0-0x04ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0500-0x053f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0540-0x057f */ 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xbf, /* 0x0580-0x05bf */ 0xb6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x05c0-0x05ff */ /* 0x0600-0x07ff */ - 0x0f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ + 0x0f, 0x00, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ 0x00, 0xf8, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x00, /* 0x0640-0x067f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0680-0x06bf */ 0x00, 0x00, 0xc0, 0xff, 0x9f, 0x3d, 0x00, 0x00, /* 0x06c0-0x06ff */ @@ -80,20 +80,20 @@ 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x09c0-0x09ff */ /* 0x0a00-0x0bff */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a00-0x0a3f */ - 0x86, 0x39, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, /* 0x0a40-0x0a7f */ + 0x86, 0x39, 0x02, 0x00, 0x00, 0x00, 0x23, 0x00, /* 0x0a40-0x0a7f */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a80-0x0abf */ 0xbe, 0x21, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0ac0-0x0aff */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, /* 0x0b00-0x0b3f */ - 0x0e, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ + 0x1e, 0x20, 0x40, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b80-0x0bbf */ 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0bc0-0x0bff */ /* 0x0c00-0x0dff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x0c00-0x0c3f */ - 0xc1, 0x3d, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ + 0xc1, 0x3d, 0x60, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0c80-0x0cbf */ 0x00, 0x30, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0cc0-0x0cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d00-0x0d3f */ - 0x0e, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ + 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d80-0x0dbf */ 0x00, 0x04, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0dc0-0x0dff */ /* 0x0e00-0x0fff */ @@ -106,9 +106,9 @@ 0xdf, 0x00, 0xff, 0xfe, 0xff, 0xff, 0xff, 0x1f, /* 0x0f80-0x0fbf */ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0fc0-0x0fff */ /* 0x1000-0x11ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc5, 0x02, /* 0x1000-0x103f */ - 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, /* 0x1040-0x107f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xfd, 0x66, /* 0x1000-0x103f */ + 0x00, 0x00, 0x00, 0xc3, 0x01, 0x00, 0x1e, 0x00, /* 0x1040-0x107f */ + 0x64, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10c0-0x10ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1100-0x113f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1140-0x117f */ @@ -137,7 +137,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1840-0x187f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, /* 0x1880-0x18bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18c0-0x18ff */ - 0x00, 0x00, 0x00, 0x00, 0x87, 0x0f, 0x04, 0x0e, /* 0x1900-0x193f */ + 0x00, 0x00, 0x00, 0x00, 0x87, 0x01, 0x04, 0x0e, /* 0x1900-0x193f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1940-0x197f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1980-0x19bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x19c0-0x19ff */ @@ -148,26 +148,35 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1ac0-0x1aff */ 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x17, /* 0x1b00-0x1b3f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0f, 0x00, /* 0x1b40-0x1b7f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1b80-0x1bbf */ + 0x03, 0x00, 0x00, 0x00, 0x3c, 0x03, 0x00, 0x00, /* 0x1b80-0x1bbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1bc0-0x1bff */ /* 0x1c00-0x1dff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c00-0x1c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xcf, 0x00, /* 0x1c00-0x1c3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c40-0x1c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c80-0x1cbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1cc0-0x1cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d00-0x1d3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d40-0x1d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d80-0x1dbf */ - 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ + 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ /* 0x2000-0x21ff */ 0x00, 0xf8, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, /* 0x2000-0x203f */ - 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ + 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2080-0x20bf */ - 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 0x20c0-0x20ff */ + 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, /* 0x20c0-0x20ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2100-0x213f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2140-0x217f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2180-0x21bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x21c0-0x21ff */ + /* 0x2c00-0x2dff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c00-0x2c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c40-0x2c7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c80-0x2cbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2cc0-0x2cff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d00-0x2d3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d40-0x2d7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d80-0x2dbf */ + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, /* 0x2dc0-0x2dff */ /* 0x3000-0x31ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, /* 0x3000-0x303f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3040-0x307f */ @@ -177,15 +186,33 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3140-0x317f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3180-0x31bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x31c0-0x31ff */ + /* 0xa600-0xa7ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa600-0xa63f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x30, /* 0xa640-0xa67f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa680-0xa6bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa6c0-0xa6ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa700-0xa73f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa740-0xa77f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa780-0xa7bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa7c0-0xa7ff */ /* 0xa800-0xa9ff */ 0x44, 0x08, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, /* 0xa800-0xa83f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa840-0xa87f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa880-0xa8bf */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa900-0xa93f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ + 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ + 0x00, 0x00, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, /* 0xa900-0xa93f */ + 0x80, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa980-0xa9bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa9c0-0xa9ff */ + /* 0xaa00-0xabff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x66, 0x00, /* 0xaa00-0xaa3f */ + 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa40-0xaa7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa80-0xaabf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaac0-0xaaff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab00-0xab3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab40-0xab7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab80-0xabbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xabc0-0xabff */ /* 0xfa00-0xfbff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa00-0xfa3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa40-0xfa7f */ @@ -196,7 +223,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfb80-0xfbbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfbc0-0xfbff */ /* 0xfe00-0xffff */ - 0xff, 0xff, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ + 0xff, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe40-0xfe7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe80-0xfebf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0xfec0-0xfeff */ @@ -204,6 +231,15 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff40-0xff7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff80-0xffbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, /* 0xffc0-0xffff */ + /* 0x10000-0x101ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10000-0x1003f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10040-0x1007f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10080-0x100bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x100c0-0x100ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10100-0x1013f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10140-0x1017f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10180-0x101bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, /* 0x101c0-0x101ff */ /* 0x10a00-0x10bff */ 0x6e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, /* 0x10a00-0x10a3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10a40-0x10a7f */ @@ -235,21 +271,21 @@ static const signed char nonspacing_table_ind[240] = { 0, 1, 2, 3, 4, 5, 6, 7, /* 0x0000-0x0fff */ 8, 9, -1, 10, 11, 12, 13, -1, /* 0x1000-0x1fff */ - 14, -1, -1, -1, -1, -1, -1, -1, /* 0x2000-0x2fff */ - 15, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ + 14, -1, -1, -1, -1, -1, 15, -1, /* 0x2000-0x2fff */ + 16, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x4000-0x4fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x5000-0x5fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x6000-0x6fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x7000-0x7fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x8000-0x8fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x9000-0x9fff */ - -1, -1, -1, -1, 16, -1, -1, -1, /* 0xa000-0xafff */ + -1, -1, -1, 17, 18, 19, -1, -1, /* 0xa000-0xafff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xb000-0xbfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xc000-0xcfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xd000-0xdfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xe000-0xefff */ - -1, -1, -1, -1, -1, 17, -1, 18, /* 0xf000-0xffff */ - -1, -1, -1, -1, -1, 19, -1, -1, /* 0x10000-0x10fff */ + -1, -1, -1, -1, -1, 20, -1, 21, /* 0xf000-0xffff */ + 22, -1, -1, -1, -1, 23, -1, -1, /* 0x10000-0x10fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x11000-0x11fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x12000-0x12fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x13000-0x13fff */ @@ -262,7 +298,7 @@ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1a000-0x1afff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1b000-0x1bfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1c000-0x1cfff */ - 20, 21, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ + 24, 25, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ }; /* Determine number of column positions required for UC. */ @@ -274,26 +310,26 @@ { int ind = nonspacing_table_ind[uc >> 9]; if (ind >= 0) - if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) - { - if (uc > 0 && uc < 0xa0) - return -1; - else - return 0; - } + if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) + { + if (uc > 0 && uc < 0xa0) + return -1; + else + return 0; + } } else if ((uc >> 9) == (0xe0000 >> 9)) { if (uc >= 0xe0100) - { - if (uc <= 0xe01ef) - return 0; - } + { + if (uc <= 0xe01ef) + return 0; + } else - { - if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) - return 0; - } + { + if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) + return 0; + } } /* Test for double-width character. * Generated from "grep '^....;[WF]' EastAsianWidth.txt" @@ -301,17 +337,17 @@ */ if (uc >= 0x1100 && ((uc < 0x1160) /* Hangul Jamo */ - || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ - || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ - && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) - || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ - || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ - || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ - || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ - || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ - || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ - || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ - || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ + || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ + || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ + && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) + || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ + || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ + || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ + || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ + || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ + || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ + || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ + || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ ) ) return 2; /* In ancient CJK encodings, Cyrillic and most other characters are diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniwidth.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth.h --- gettext-0.17/gettext-tools/gnulib-lib/uniwidth.h 2007-10-31 12:36:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -/* Display width functions. - Copyright (C) 2001-2002, 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNIWIDTH_H -#define _UNIWIDTH_H - -#include "unitypes.h" - -/* Get size_t. */ -#include - -/* Get locale_charset() declaration. */ -#include "localcharset.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Display width. */ - -/* These functions are locale dependent. The encoding argument identifies - the encoding (e.g. "ISO-8859-2" for Polish). */ - -/* Determine number of column positions required for UC. */ -extern int - uc_width (ucs4_t uc, const char *encoding); - -/* Determine number of column positions required for first N units - (or fewer if S ends before this) in S. */ -extern int - u8_width (const uint8_t *s, size_t n, const char *encoding); -extern int - u16_width (const uint16_t *s, size_t n, const char *encoding); -extern int - u32_width (const uint32_t *s, size_t n, const char *encoding); - -/* Determine number of column positions required for S. */ -extern int - u8_strwidth (const uint8_t *s, const char *encoding); -extern int - u16_strwidth (const uint16_t *s, const char *encoding); -extern int - u32_strwidth (const uint32_t *s, const char *encoding); - - -#ifdef __cplusplus -} -#endif - -#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/uniwidth.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth.in.h --- gettext-0.17/gettext-tools/gnulib-lib/uniwidth.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/uniwidth.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,65 @@ +/* Display width functions. + Copyright (C) 2001-2002, 2005, 2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNIWIDTH_H +#define _UNIWIDTH_H + +#include "unitypes.h" + +/* Get size_t. */ +#include + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Display width. */ + +/* These functions are locale dependent. The encoding argument identifies + the encoding (e.g. "ISO-8859-2" for Polish). */ + +/* Determine number of column positions required for UC. */ +extern int + uc_width (ucs4_t uc, const char *encoding); + +/* Determine number of column positions required for first N units + (or fewer if S ends before this) in S. */ +extern int + u8_width (const uint8_t *s, size_t n, const char *encoding); +extern int + u16_width (const uint16_t *s, size_t n, const char *encoding); +extern int + u32_width (const uint32_t *s, size_t n, const char *encoding); + +/* Determine number of column positions required for S. */ +extern int + u8_strwidth (const uint8_t *s, const char *encoding); +extern int + u16_strwidth (const uint16_t *s, const char *encoding); +extern int + u32_strwidth (const uint32_t *s, const char *encoding); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unlocked-io.h gettext-0.18.1.1/gettext-tools/gnulib-lib/unlocked-io.h --- gettext-0.17/gettext-tools/gnulib-lib/unlocked-io.h 2007-10-07 20:29:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unlocked-io.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,6 +1,6 @@ /* Prefer faster, non-thread-safe stdio functions if available. - Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/unsetenv.c gettext-0.18.1.1/gettext-tools/gnulib-lib/unsetenv.c --- gettext-0.17/gettext-tools/gnulib-lib/unsetenv.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/unsetenv.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2002,2005-2006 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995-2002, 2005-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -16,28 +16,31 @@ #include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the name == NULL test below. */ +#define _GL_ARG_NONNULL(params) + +/* Specification. */ +#include + #include #if !_LIBC # define __set_errno(ev) ((errno) = (ev)) #endif -#include #include #include #if !_LIBC -# define __environ environ -# ifndef HAVE_ENVIRON_DECL -extern char **environ; -# endif +# define __environ environ #endif #if _LIBC /* This lock protects against simultaneous modifications of `environ'. */ # include __libc_lock_define_initialized (static, envlock) -# define LOCK __libc_lock_lock (envlock) -# define UNLOCK __libc_lock_unlock (envlock) +# define LOCK __libc_lock_lock (envlock) +# define UNLOCK __libc_lock_unlock (envlock) #else # define LOCK # define UNLOCK @@ -48,6 +51,7 @@ # define unsetenv __unsetenv #endif +#if _LIBC || !HAVE_UNSETENV int unsetenv (const char *name) @@ -69,13 +73,13 @@ while (*ep != NULL) if (!strncmp (*ep, name, len) && (*ep)[len] == '=') { - /* Found it. Remove this pointer by moving later ones back. */ - char **dp = ep; + /* Found it. Remove this pointer by moving later ones back. */ + char **dp = ep; - do - dp[0] = dp[1]; - while (*dp++); - /* Continue the loop in case NAME appears again. */ + do + dp[0] = dp[1]; + while (*dp++); + /* Continue the loop in case NAME appears again. */ } else ++ep; @@ -89,3 +93,28 @@ # undef unsetenv weak_alias (__unsetenv, unsetenv) #endif + +#else /* HAVE_UNSETENV */ + +# undef unsetenv + +/* Call the underlying unsetenv, in case there is hidden bookkeeping + that needs updating beyond just modifying environ. */ +int +rpl_unsetenv (const char *name) +{ + int result = 0; + if (!name || !*name || strchr (name, '=')) + { + errno = EINVAL; + return -1; + } + while (getenv (name)) +# if !VOID_UNSETENV + result = +# endif + unsetenv (name); + return result; +} + +#endif /* HAVE_UNSETENV */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/vasnprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/vasnprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/vasnprintf.c 2007-11-06 23:30:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/vasnprintf.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,9 +1,9 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 1999, 2002-2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -67,13 +67,13 @@ # endif #endif -#include /* localeconv() */ -#include /* snprintf(), sprintf() */ -#include /* abort(), malloc(), realloc(), free() */ -#include /* memcpy(), strlen() */ -#include /* errno */ -#include /* CHAR_BIT */ -#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ +#include /* localeconv() */ +#include /* snprintf(), sprintf() */ +#include /* abort(), malloc(), realloc(), free() */ +#include /* memcpy(), strlen() */ +#include /* errno */ +#include /* CHAR_BIT */ +#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif @@ -95,7 +95,7 @@ #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL @@ -106,7 +106,7 @@ #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include -# include "isnan.h" +# include "isnand-nolibm.h" # include "printf-frexp.h" #endif @@ -117,34 +117,6 @@ # include "fpucw.h" #endif -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - -#if HAVE_WCHAR_T -# if HAVE_WCSLEN -# define local_wcslen wcslen -# else - /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid - a dependency towards this library, here is a local substitute. - Define this substitute only once, even if this file is included - twice in the same compilation unit. */ -# ifndef local_wcslen_defined -# define local_wcslen_defined 1 -static size_t -local_wcslen (const wchar_t *s) -{ - const wchar_t *ptr; - - for (ptr = s; *ptr != (wchar_t) 0; ptr++) - ; - return ptr - s; -} -# endif -# endif -#endif - /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION @@ -157,6 +129,7 @@ # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy +# define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char @@ -167,6 +140,7 @@ # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy +# define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION @@ -174,25 +148,40 @@ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than - on Unix; we use the _snwprintf() function instead. */ -# define SNPRINTF _snwprintf + on Unix; we use the function _snwprintf() or - on mingw - snwprintf() + instead. The mingw function snwprintf() has fewer bugs than the + MSVCRT function _snwprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snwprintf +# else +# define SNPRINTF _snwprintf +# endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ -# /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. + /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the - size argument is >= 0x3000000. */ -# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ + size argument is >= 0x3000000. + Also don't use it on Linux libc5, since there snprintf with size = 1 + writes any output without bounds, like sprintf. */ +# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF - /* Windows. */ -# define SNPRINTF _snprintf + /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT + function _snprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snprintf + /* Here we need to call the native snprintf, not rpl_snprintf. */ +# undef snprintf +# else +# define SNPRINTF _snprintf +# endif # else /* Unix. */ # define SNPRINTF snprintf @@ -203,19 +192,92 @@ /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf -#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +/* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" + warnings in this file. Use -Dlint to suppress them. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +/* Avoid some warnings from "gcc -Wshadow". + This file doesn't use the exp() and remainder() functions. */ +#undef exp +#define exp expo +#undef remainder +#define remainder rem + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION +# if (HAVE_STRNLEN && !defined _AIX) +# define local_strnlen strnlen +# else +# ifndef local_strnlen_defined +# define local_strnlen_defined 1 +static size_t +local_strnlen (const char *string, size_t maxlen) +{ + const char *end = memchr (string, '\0', maxlen); + return end ? (size_t) (end - string) : maxlen; +} +# endif +# endif +#endif + +#if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T +# if HAVE_WCSLEN +# define local_wcslen wcslen +# else + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid + a dependency towards this library, here is a local substitute. + Define this substitute only once, even if this file is included + twice in the same compilation unit. */ +# ifndef local_wcslen_defined +# define local_wcslen_defined 1 +static size_t +local_wcslen (const wchar_t *s) +{ + const wchar_t *ptr; + + for (ptr = s; *ptr != (wchar_t) 0; ptr++) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION +# if HAVE_WCSNLEN +# define local_wcsnlen wcsnlen +# else +# ifndef local_wcsnlen_defined +# define local_wcsnlen_defined 1 +static size_t +local_wcsnlen (const wchar_t *s, size_t maxlen) +{ + const wchar_t *ptr; + + for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char -decimal_point_char () +decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is - multithread-safe on glibc systems, but is not required to be multithread- - safe by POSIX. sprintf(), however, is multithread-safe. localeconv() - is rarely multithread-safe. */ -# if HAVE_NL_LANGINFO && __GLIBC__ + multithread-safe on glibc systems and MacOS X systems, but is not required + to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. + localeconv() is rarely multithread-safe. */ +# if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; @@ -236,18 +298,18 @@ static int is_infinite_or_zero (double x) { - return isnan (x) || x + x == x; + return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL -/* Equivalent to !isfinite(x), but does not require libm. */ +/* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int -is_infinitel (long double x) +is_infinite_or_zerol (long double x) { - return isnanl (x) || (x + x == x && x != 0.0L); + return isnanl (x) || x + x == x; } #endif @@ -315,26 +377,26 @@ dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) - return NULL; + return NULL; for (k = len2; k > 0; ) - dp[--k] = 0; + dp[--k] = 0; for (i = 0; i < len1; i++) - { - mp_limb_t digit1 = p1[i]; - mp_twolimb_t carry = 0; - for (j = 0; j < len2; j++) - { - mp_limb_t digit2 = p2[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - carry += dp[i + j]; - dp[i + j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - dp[i + len2] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = p1[i]; + mp_twolimb_t carry = 0; + for (j = 0; j < len2; j++) + { + mp_limb_t digit2 = p2[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + carry += dp[i + j]; + dp[i + j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + dp[i + len2] = (mp_limb_t) carry; + } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) - dlen--; + dlen--; dest->nlimbs = dlen; dest->limbs = dp; } @@ -364,7 +426,7 @@ Normalise [q[m-1],...,q[0]], yields q. If m>=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). - s:=intDsize-1-(hightest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} @@ -428,12 +490,12 @@ for (;;) { if (b_len == 0) - /* Division by zero. */ - abort (); + /* Division by zero. */ + abort (); if (b_ptr[b_len - 1] == 0) - b_len--; + b_len--; else - break; + break; } /* Here m = a_len >= 0 and n = b_len > 0. */ @@ -450,261 +512,261 @@ else if (b_len == 1) { /* n=1: single precision division. - beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ + beta^(m-1) <= a < beta^m ==> beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { - mp_limb_t den = b_ptr[0]; - mp_limb_t remainder = 0; - const mp_limb_t *sourceptr = a_ptr + a_len; - mp_limb_t *destptr = q_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; - *--destptr = num / den; - remainder = num % den; - } - /* Normalise and store r. */ - if (remainder > 0) - { - r_ptr[0] = remainder; - r_len = 1; - } - else - r_len = 0; - /* Normalise q. */ - q_len = a_len; - if (q_ptr[q_len - 1] == 0) - q_len--; + mp_limb_t den = b_ptr[0]; + mp_limb_t remainder = 0; + const mp_limb_t *sourceptr = a_ptr + a_len; + mp_limb_t *destptr = q_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; + *--destptr = num / den; + remainder = num % den; + } + /* Normalise and store r. */ + if (remainder > 0) + { + r_ptr[0] = remainder; + r_len = 1; + } + else + r_len = 0; + /* Normalise q. */ + q_len = a_len; + if (q_ptr[q_len - 1] == 0) + q_len--; } } else { /* n>1: multiple precision division. - beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> - beta^(m-n-1) <= a/b < beta^(m-n+1). */ + beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> + beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { - mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ - s = 31; - if (msd >= 0x10000) - { - msd = msd >> 16; - s -= 16; - } - if (msd >= 0x100) - { - msd = msd >> 8; - s -= 8; - } - if (msd >= 0x10) - { - msd = msd >> 4; - s -= 4; - } - if (msd >= 0x4) - { - msd = msd >> 2; - s -= 2; - } - if (msd >= 0x2) - { - msd = msd >> 1; - s -= 1; - } + mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ + s = 31; + if (msd >= 0x10000) + { + msd = msd >> 16; + s -= 16; + } + if (msd >= 0x100) + { + msd = msd >> 8; + s -= 8; + } + if (msd >= 0x10) + { + msd = msd >> 4; + s -= 4; + } + if (msd >= 0x4) + { + msd = msd >> 2; + s -= 2; + } + if (msd >= 0x2) + { + msd = msd >> 1; + s -= 1; + } } /* 0 <= s < GMP_LIMB_BITS. - Copy b, shifting it left by s bits. */ + Copy b, shifting it left by s bits. */ if (s > 0) - { - tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); - if (tmp_roomptr == NULL) - { - free (roomptr); - return NULL; - } - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = tmp_roomptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - /* accu must be zero, since that was how s was determined. */ - if (accu != 0) - abort (); - } - b_ptr = tmp_roomptr; - } + { + tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); + if (tmp_roomptr == NULL) + { + free (roomptr); + return NULL; + } + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = tmp_roomptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + /* accu must be zero, since that was how s was determined. */ + if (accu != 0) + abort (); + } + b_ptr = tmp_roomptr; + } /* Copy a, shifting it left by s bits, yields r. - Memory layout: - At the beginning: r = roomptr[0..a_len], - at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ + Memory layout: + At the beginning: r = roomptr[0..a_len], + at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) - { - memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); - r_ptr[a_len] = 0; - } + { + memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); + r_ptr[a_len] = 0; + } else - { - const mp_limb_t *sourceptr = a_ptr; - mp_limb_t *destptr = r_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = a_len; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - *destptr++ = (mp_limb_t) accu; - } + { + const mp_limb_t *sourceptr = a_ptr; + mp_limb_t *destptr = r_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = a_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + *destptr++ = (mp_limb_t) accu; + } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { - size_t j = a_len - b_len; /* m-n */ - mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ - mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ - mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ - ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; - /* Division loop, traversed m-n+1 times. - j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ - for (;;) - { - mp_limb_t q_star; - mp_limb_t c1; - if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ - { - /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ - mp_twolimb_t num = - ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) - | r_ptr[j + b_len - 1]; - q_star = num / b_msd; - c1 = num % b_msd; - } - else - { - /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ - q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ - /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta - <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta - <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) - {<= beta !}. - If yes, jump directly to the subtraction loop. - (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta - <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ - if (r_ptr[j + b_len] > b_msd - || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) - /* r[j+n] >= b[n-1]+1 or - r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a - carry. */ - goto subtract; - } - /* q_star = q*, - c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by - b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 - this can happen only twice. */ - if (c3 > c2) - { - q_star = q_star - 1; /* q* := q* - 1 */ - if (c3 - c2 > b_msdd) - q_star = q_star - 1; /* q* := q* - 1 */ - } - } - if (q_star > 0) - subtract: - { - /* Subtract r := r - b * q* * beta^j. */ - mp_limb_t cr; - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_twolimb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - /* Here 0 <= carry <= q*. */ - carry = - carry - + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ - + (mp_limb_t) ~(*destptr); - /* Here 0 <= carry <= beta*q* + beta-1. */ - *destptr++ = ~(mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; /* <= q* */ - } - cr = (mp_limb_t) carry; - } - /* Subtract cr from r_ptr[j + b_len], then forget about - r_ptr[j + b_len]. */ - if (cr > r_ptr[j + b_len]) - { - /* Subtraction gave a carry. */ - q_star = q_star - 1; /* q* := q* - 1 */ - /* Add b back. */ - { - const mp_limb_t *sourceptr = b_ptr; - mp_limb_t *destptr = r_ptr + j; - mp_limb_t carry = 0; - size_t count; - for (count = b_len; count > 0; count--) - { - mp_limb_t source1 = *sourceptr++; - mp_limb_t source2 = *destptr; - *destptr++ = source1 + source2 + carry; - carry = - (carry - ? source1 >= (mp_limb_t) ~source2 - : source1 > (mp_limb_t) ~source2); - } - } - /* Forget about the carry and about r[j+n]. */ - } - } - /* q* is determined. Store it as q[j]. */ - q_ptr[j] = q_star; - if (j == 0) - break; - j--; - } + size_t j = a_len - b_len; /* m-n */ + mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ + mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ + mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ + ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; + /* Division loop, traversed m-n+1 times. + j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ + for (;;) + { + mp_limb_t q_star; + mp_limb_t c1; + if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ + { + /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ + mp_twolimb_t num = + ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) + | r_ptr[j + b_len - 1]; + q_star = num / b_msd; + c1 = num % b_msd; + } + else + { + /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ + q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ + /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta + <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta + <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) + {<= beta !}. + If yes, jump directly to the subtraction loop. + (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta + <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ + if (r_ptr[j + b_len] > b_msd + || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) + /* r[j+n] >= b[n-1]+1 or + r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a + carry. */ + goto subtract; + } + /* q_star = q*, + c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by + b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 + this can happen only twice. */ + if (c3 > c2) + { + q_star = q_star - 1; /* q* := q* - 1 */ + if (c3 - c2 > b_msdd) + q_star = q_star - 1; /* q* := q* - 1 */ + } + } + if (q_star > 0) + subtract: + { + /* Subtract r := r - b * q* * beta^j. */ + mp_limb_t cr; + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_twolimb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + /* Here 0 <= carry <= q*. */ + carry = + carry + + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + + (mp_limb_t) ~(*destptr); + /* Here 0 <= carry <= beta*q* + beta-1. */ + *destptr++ = ~(mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; /* <= q* */ + } + cr = (mp_limb_t) carry; + } + /* Subtract cr from r_ptr[j + b_len], then forget about + r_ptr[j + b_len]. */ + if (cr > r_ptr[j + b_len]) + { + /* Subtraction gave a carry. */ + q_star = q_star - 1; /* q* := q* - 1 */ + /* Add b back. */ + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_limb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + mp_limb_t source1 = *sourceptr++; + mp_limb_t source2 = *destptr; + *destptr++ = source1 + source2 + carry; + carry = + (carry + ? source1 >= (mp_limb_t) ~source2 + : source1 > (mp_limb_t) ~source2); + } + } + /* Forget about the carry and about r[j+n]. */ + } + } + /* q* is determined. Store it as q[j]. */ + q_ptr[j] = q_star; + if (j == 0) + break; + j--; + } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) - q_len--; + q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and - b is shifted left by s bits. */ + b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) - { - mp_limb_t ptr = r_ptr + r_len; - mp_twolimb_t accu = 0; - size_t count; - for (count = r_len; count > 0; count--) - { - accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; - accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); - *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); - } - } + { + mp_limb_t ptr = r_ptr + r_len; + mp_twolimb_t accu = 0; + size_t count; + for (count = r_len; count > 0; count--) + { + accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; + accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); + *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); + } + } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) - r_len--; + r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) @@ -713,17 +775,17 @@ size_t i; for (i = b_len;;) { - mp_limb_t r_i = - (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) - | (i < r_len ? r_ptr[i] << 1 : 0); - mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); - if (r_i > b_i) - goto increment_q; - if (r_i < b_i) - goto keep_q; - if (i == 0) - break; - i--; + mp_limb_t r_i = + (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) + | (i < r_len ? r_ptr[i] << 1 : 0); + mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); + if (r_i > b_i) + goto increment_q; + if (r_i < b_i) + goto keep_q; + if (i == 0) + break; + i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) @@ -732,8 +794,8 @@ { size_t i; for (i = 0; i < q_len; i++) - if (++(q_ptr[i]) != 0) - goto keep_q; + if (++(q_ptr[i]) != 0) + goto keep_q; q_ptr[q_len++] = 1; } keep_q: @@ -762,36 +824,36 @@ { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) - *d_ptr++ = '0'; + *d_ptr++ = '0'; while (a_len > 0) - { - /* Divide a by 10^9, in-place. */ - mp_limb_t remainder = 0; - mp_limb_t *ptr = a_ptr + a_len; - size_t count; - for (count = a_len; count > 0; count--) - { - mp_twolimb_t num = - ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; - *ptr = num / 1000000000; - remainder = num % 1000000000; - } - /* Store the remainder as 9 decimal digits. */ - for (count = 9; count > 0; count--) - { - *d_ptr++ = '0' + (remainder % 10); - remainder = remainder / 10; - } - /* Normalize a. */ - if (a_ptr[a_len - 1] == 0) - a_len--; - } + { + /* Divide a by 10^9, in-place. */ + mp_limb_t remainder = 0; + mp_limb_t *ptr = a_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; + *ptr = num / 1000000000; + remainder = num % 1000000000; + } + /* Store the remainder as 9 decimal digits. */ + for (count = 9; count > 0; count--) + { + *d_ptr++ = '0' + (remainder % 10); + remainder = remainder / 10; + } + /* Normalize a. */ + if (a_ptr[a_len - 1] == 0) + a_len--; + } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') - d_ptr--; + d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) - *d_ptr++ = '0'; + *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } @@ -836,12 +898,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -851,7 +913,7 @@ d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -863,16 +925,19 @@ hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } +#if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess + precision. */ if (!(y == 0.0L)) abort (); +#endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; @@ -921,12 +986,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else @@ -936,7 +1001,7 @@ d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif @@ -948,12 +1013,12 @@ hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) - abort (); + abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) @@ -1011,8 +1076,8 @@ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 - + abs_s / GMP_LIMB_BITS + 1) - * sizeof (mp_limb_t)); + + abs_s / GMP_LIMB_BITS + 1) + * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); @@ -1025,26 +1090,26 @@ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = - { - 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, - 48828125, 244140625, 1220703125 - }; + { + 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, + 48828125, 244140625, 1220703125 + }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) - { - mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; - size_t j; - mp_twolimb_t carry = 0; - for (j = 0; j < pow5_len; j++) - { - mp_limb_t digit2 = pow5_ptr[j]; - carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; - pow5_ptr[j] = (mp_limb_t) carry; - carry = carry >> GMP_LIMB_BITS; - } - if (carry > 0) - pow5_ptr[pow5_len++] = (mp_limb_t) carry; - } + { + mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; + size_t j; + mp_twolimb_t carry = 0; + for (j = 0; j < pow5_len; j++) + { + mp_limb_t digit2 = pow5_ptr[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + pow5_ptr[j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + if (carry > 0) + pow5_ptr[pow5_len++] = (mp_limb_t) carry; + } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; @@ -1052,129 +1117,129 @@ { /* Multiply with 2^|s|. */ if (s_bits > 0) - { - mp_limb_t *ptr = pow5_ptr; - mp_twolimb_t accu = 0; - size_t count; - for (count = pow5_len; count > 0; count--) - { - accu += (mp_twolimb_t) *ptr << s_bits; - *ptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - { - *ptr = (mp_limb_t) accu; - pow5_len++; - } - } + { + mp_limb_t *ptr = pow5_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = pow5_len; count > 0; count--) + { + accu += (mp_twolimb_t) *ptr << s_bits; + *ptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + { + *ptr = (mp_limb_t) accu; + pow5_len++; + } + } if (s_limbs > 0) - { - size_t count; - for (count = pow5_len; count > 0;) - { - count--; - pow5_ptr[s_limbs + count] = pow5_ptr[count]; - } - for (count = s_limbs; count > 0;) - { - count--; - pow5_ptr[count] = 0; - } - pow5_len += s_limbs; - } + { + size_t count; + for (count = pow5_len; count > 0;) + { + count--; + pow5_ptr[s_limbs + count] = pow5_ptr[count]; + } + for (count = s_limbs; count > 0;) + { + count--; + pow5_ptr[count] = 0; + } + pow5_len += s_limbs; + } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* Multiply m with pow5. No division needed. */ - z_memory = multiply (m, pow5, &z); - } + { + /* Multiply m with pow5. No division needed. */ + z_memory = multiply (m, pow5, &z); + } else - { - /* Divide m by pow5 and round. */ - z_memory = divide (m, pow5, &z); - } + { + /* Divide m by pow5 and round. */ + z_memory = divide (m, pow5, &z); + } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) - { - /* n >= 0, s < 0. - Multiply m with pow5, then divide by 2^|s|. */ - mpn_t numerator; - mpn_t denominator; - void *tmp_memory; - tmp_memory = multiply (m, pow5, &numerator); - if (tmp_memory == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - /* Construct 2^|s|. */ - { - mp_limb_t *ptr = pow5_ptr + pow5_len; - size_t i; - for (i = 0; i < s_limbs; i++) - ptr[i] = 0; - ptr[s_limbs] = (mp_limb_t) 1 << s_bits; - denominator.limbs = ptr; - denominator.nlimbs = s_limbs + 1; - } - z_memory = divide (numerator, denominator, &z); - free (tmp_memory); - } + { + /* n >= 0, s < 0. + Multiply m with pow5, then divide by 2^|s|. */ + mpn_t numerator; + mpn_t denominator; + void *tmp_memory; + tmp_memory = multiply (m, pow5, &numerator); + if (tmp_memory == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + /* Construct 2^|s|. */ + { + mp_limb_t *ptr = pow5_ptr + pow5_len; + size_t i; + for (i = 0; i < s_limbs; i++) + ptr[i] = 0; + ptr[s_limbs] = (mp_limb_t) 1 << s_bits; + denominator.limbs = ptr; + denominator.nlimbs = s_limbs + 1; + } + z_memory = divide (numerator, denominator, &z); + free (tmp_memory); + } else - { - /* n < 0, s > 0. - Multiply m with 2^s, then divide by pow5. */ - mpn_t numerator; - mp_limb_t *num_ptr; - num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) - * sizeof (mp_limb_t)); - if (num_ptr == NULL) - { - free (pow5_ptr); - free (memory); - return NULL; - } - { - mp_limb_t *destptr = num_ptr; - { - size_t i; - for (i = 0; i < s_limbs; i++) - *destptr++ = 0; - } - if (s_bits > 0) - { - const mp_limb_t *sourceptr = m.limbs; - mp_twolimb_t accu = 0; - size_t count; - for (count = m.nlimbs; count > 0; count--) - { - accu += (mp_twolimb_t) *sourceptr++ << s_bits; - *destptr++ = (mp_limb_t) accu; - accu = accu >> GMP_LIMB_BITS; - } - if (accu > 0) - *destptr++ = (mp_limb_t) accu; - } - else - { - const mp_limb_t *sourceptr = m.limbs; - size_t count; - for (count = m.nlimbs; count > 0; count--) - *destptr++ = *sourceptr++; - } - numerator.limbs = num_ptr; - numerator.nlimbs = destptr - num_ptr; - } - z_memory = divide (numerator, pow5, &z); - free (num_ptr); - } + { + /* n < 0, s > 0. + Multiply m with 2^s, then divide by pow5. */ + mpn_t numerator; + mp_limb_t *num_ptr; + num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) + * sizeof (mp_limb_t)); + if (num_ptr == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + { + mp_limb_t *destptr = num_ptr; + { + size_t i; + for (i = 0; i < s_limbs; i++) + *destptr++ = 0; + } + if (s_bits > 0) + { + const mp_limb_t *sourceptr = m.limbs; + mp_twolimb_t accu = 0; + size_t count; + for (count = m.nlimbs; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s_bits; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + *destptr++ = (mp_limb_t) accu; + } + else + { + const mp_limb_t *sourceptr = m.limbs; + size_t count; + for (count = m.nlimbs; count > 0; count--) + *destptr++ = *sourceptr++; + } + numerator.limbs = num_ptr; + numerator.nlimbs = destptr - num_ptr; + } + z_memory = divide (numerator, pow5, &z); + free (num_ptr); + } } free (pow5_ptr); free (memory); @@ -1198,7 +1263,7 @@ static char * scale10_round_decimal_long_double (long double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1216,7 +1281,7 @@ static char * scale10_round_decimal_double (double x, int n) { - int e; + int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); @@ -1246,35 +1311,35 @@ if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0L / (1 << 16))) - { - y *= 1.0L * (1 << 16); - exp -= 16; - } + { + y *= 1.0L * (1 << 16); + exp -= 16; + } if (y < (1.0L / (1 << 8))) - { - y *= 1.0L * (1 << 8); - exp -= 8; - } + { + y *= 1.0L * (1 << 8); + exp -= 8; + } if (y < (1.0L / (1 << 4))) - { - y *= 1.0L * (1 << 4); - exp -= 4; - } + { + y *= 1.0L * (1 << 4); + exp -= 4; + } if (y < (1.0L / (1 << 2))) - { - y *= 1.0L * (1 << 2); - exp -= 2; - } + { + y *= 1.0L * (1 << 2); + exp -= 2; + } if (y < (1.0L / (1 << 1))) - { - y *= 1.0L * (1 << 1); - exp -= 1; - } + { + y *= 1.0L * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5L && y < 1.0L)) abort (); @@ -1303,9 +1368,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1337,35 +1402,35 @@ if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) - { - y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); - exp -= GMP_LIMB_BITS; - } + { + y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } if (y < (1.0 / (1 << 16))) - { - y *= 1.0 * (1 << 16); - exp -= 16; - } + { + y *= 1.0 * (1 << 16); + exp -= 16; + } if (y < (1.0 / (1 << 8))) - { - y *= 1.0 * (1 << 8); - exp -= 8; - } + { + y *= 1.0 * (1 << 8); + exp -= 8; + } if (y < (1.0 / (1 << 4))) - { - y *= 1.0 * (1 << 4); - exp -= 4; - } + { + y *= 1.0 * (1 << 4); + exp -= 4; + } if (y < (1.0 / (1 << 2))) - { - y *= 1.0 * (1 << 2); - exp -= 2; - } + { + y *= 1.0 * (1 << 2); + exp -= 2; + } if (y < (1.0 / (1 << 1))) - { - y *= 1.0 * (1 << 1); - exp -= 1; - } + { + y *= 1.0 * (1 << 1); + exp -= 1; + } } if (!(y >= 0.5 && y < 1.0)) abort (); @@ -1394,9 +1459,9 @@ } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; - /* log(1-z) = - z - z^2/2 - z^3/3 - z^4/4 - ... + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ - l -= z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; @@ -1406,11 +1471,277 @@ # endif +/* Tests whether a string of digits consists of exactly PRECISION zeroes and + a single '1' digit. */ +static int +is_borderline (const char *digits, size_t precision) +{ + for (; precision > 0; precision--, digits++) + if (*digits != '0') + return 0; + if (*digits != '1') + return 0; + digits++; + return *digits == '\0'; +} + +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 + +/* Use a different function name, to make it possible that the 'wchar_t' + parametrization and the 'char' parametrization get compiled in the same + translation unit. */ +# if WIDE_CHAR_VERSION +# define MAX_ROOM_NEEDED wmax_room_needed +# else +# define MAX_ROOM_NEEDED max_room_needed +# endif + +/* Returns the number of TCHAR_T units needed as temporary space for the result + of sprintf or SNPRINTF of a single conversion directive. */ +static inline size_t +MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, + arg_type type, int flags, size_t width, int has_precision, + size_t precision, int pad_ourselves) +{ + size_t tmp_length; + + switch (conversion) + { + case 'd': case 'i': case 'u': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Multiply by 2, as an estimate for FLAG_GROUP. */ + tmp_length = xsum (tmp_length, tmp_length); + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'o': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'x': case 'X': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 2, to account for a leading sign or alternate form. */ + tmp_length = xsum (tmp_length, 2); + break; + + case 'f': case 'F': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + else + tmp_length = + (unsigned int) (DBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'e': case 'E': case 'g': case 'G': + tmp_length = + 12; /* sign, decimal point, exponent etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'a': case 'A': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (DBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + break; + + case 'c': +# if HAVE_WINT_T && !WIDE_CHAR_VERSION + if (type == TYPE_WIDE_CHAR) + tmp_length = MB_CUR_MAX; + else +# endif + tmp_length = 1; + break; + + case 's': +# if HAVE_WCHAR_T + if (type == TYPE_WIDE_STRING) + { +# if WIDE_CHAR_VERSION + /* ISO C says about %ls in fwprintf: + "If the precision is not specified or is greater than the size + of the array, the array shall contain a null wide character." + So if there is a precision, we must not use wcslen. */ + const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; + + if (has_precision) + tmp_length = local_wcsnlen (arg, precision); + else + tmp_length = local_wcslen (arg); +# else + /* ISO C says about %ls in fprintf: + "If a precision is specified, no more than that many bytes are + written (including shift sequences, if any), and the array + shall contain a null wide character if, to equal the multibyte + character sequence length given by the precision, the function + would need to access a wide character one past the end of the + array." + So if there is a precision, we must not use wcslen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# endif + } + else +# endif + { +# if WIDE_CHAR_VERSION + /* ISO C says about %s in fwprintf: + "If the precision is not specified or is greater than the size + of the converted array, the converted array shall contain a + null wide character." + So if there is a precision, we must not use strlen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# else + /* ISO C says about %s in fprintf: + "If the precision is not specified or greater than the size of + the array, the array shall contain a null character." + So if there is a precision, we must not use strlen. */ + const char *arg = ap->arg[arg_index].a.a_string; + + if (has_precision) + tmp_length = local_strnlen (arg, precision); + else + tmp_length = strlen (arg); +# endif + } + break; + + case 'p': + tmp_length = + (unsigned int) (sizeof (void *) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading 0x */ + break; + + default: + abort (); + } + + if (!pad_ourselves) + { +# if ENABLE_UNISTDIO + /* Padding considers the number of characters, therefore the number of + elements after padding may be + > max (tmp_length, width) + but is certainly + <= tmp_length + width. */ + tmp_length = xsum (tmp_length, width); +# else + /* Padding considers the number of elements, says POSIX. */ + if (tmp_length < width) + tmp_length = width; +# endif + } + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + return tmp_length; +} + #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, - const FCHAR_T *format, va_list args) + const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; @@ -1420,8 +1751,8 @@ return NULL; #define CLEANUP() \ - free (d.dir); \ - if (a.arg) \ + free (d.dir); \ + if (a.arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) @@ -1450,30 +1781,30 @@ #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { - buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); - buf_malloced = NULL; + buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); + buf_malloced = NULL; } else #endif { - size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); - if (size_overflow_p (buf_memsize)) - goto out_of_memory_1; - buf = (TCHAR_T *) malloc (buf_memsize); - if (buf == NULL) - goto out_of_memory_1; - buf_malloced = buf; + size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); + if (size_overflow_p (buf_memsize)) + goto out_of_memory_1; + buf = (TCHAR_T *) malloc (buf_memsize); + if (buf == NULL) + goto out_of_memory_1; + buf_malloced = buf; } if (resultbuf != NULL) { - result = resultbuf; - allocated = *lengthp; + result = resultbuf; + allocated = *lengthp; } else { - result = NULL; - allocated = 0; + result = NULL; + allocated = 0; } length = 0; /* Invariants: @@ -1483,3138 +1814,3694 @@ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ - if ((needed) > allocated) \ - { \ - size_t memory_size; \ - DCHAR_T *memory; \ - \ - allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ - if ((needed) > allocated) \ - allocated = (needed); \ - memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ - if (size_overflow_p (memory_size)) \ - goto out_of_memory; \ - if (result == resultbuf || result == NULL) \ - memory = (DCHAR_T *) malloc (memory_size); \ - else \ - memory = (DCHAR_T *) realloc (result, memory_size); \ - if (memory == NULL) \ - goto out_of_memory; \ - if (result == resultbuf && length > 0) \ - DCHAR_CPY (memory, result, length); \ - result = memory; \ + if ((needed) > allocated) \ + { \ + size_t memory_size; \ + DCHAR_T *memory; \ + \ + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ + if ((needed) > allocated) \ + allocated = (needed); \ + memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ + if (size_overflow_p (memory_size)) \ + goto out_of_memory; \ + if (result == resultbuf || result == NULL) \ + memory = (DCHAR_T *) malloc (memory_size); \ + else \ + memory = (DCHAR_T *) realloc (result, memory_size); \ + if (memory == NULL) \ + goto out_of_memory; \ + if (result == resultbuf && length > 0) \ + DCHAR_CPY (memory, result, length); \ + result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { - if (cp != dp->dir_start) - { - size_t n = dp->dir_start - cp; - size_t augmented_length = xsum (length, n); - - ENSURE_ALLOCATION (augmented_length); - /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we - need that the format string contains only ASCII characters - if FCHAR_T and DCHAR_T are not the same type. */ - if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) - { - DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); - length = augmented_length; - } - else - { - do - result[length++] = (unsigned char) *cp++; - while (--n > 0); - } - } - if (i == d.count) - break; - - /* Execute a single directive. */ - if (dp->conversion == '%') - { - size_t augmented_length; - - if (!(dp->arg_index == ARG_NONE)) - abort (); - augmented_length = xsum (length, 1); - ENSURE_ALLOCATION (augmented_length); - result[length] = '%'; - length = augmented_length; - } - else - { - if (!(dp->arg_index != ARG_NONE)) - abort (); - - if (dp->conversion == 'n') - { - switch (a.arg[dp->arg_index].type) - { - case TYPE_COUNT_SCHAR_POINTER: - *a.arg[dp->arg_index].a.a_count_schar_pointer = length; - break; - case TYPE_COUNT_SHORT_POINTER: - *a.arg[dp->arg_index].a.a_count_short_pointer = length; - break; - case TYPE_COUNT_INT_POINTER: - *a.arg[dp->arg_index].a.a_count_int_pointer = length; - break; - case TYPE_COUNT_LONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longint_pointer = length; - break; + if (cp != dp->dir_start) + { + size_t n = dp->dir_start - cp; + size_t augmented_length = xsum (length, n); + + ENSURE_ALLOCATION (augmented_length); + /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we + need that the format string contains only ASCII characters + if FCHAR_T and DCHAR_T are not the same type. */ + if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) + { + DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); + length = augmented_length; + } + else + { + do + result[length++] = (unsigned char) *cp++; + while (--n > 0); + } + } + if (i == d.count) + break; + + /* Execute a single directive. */ + if (dp->conversion == '%') + { + size_t augmented_length; + + if (!(dp->arg_index == ARG_NONE)) + abort (); + augmented_length = xsum (length, 1); + ENSURE_ALLOCATION (augmented_length); + result[length] = '%'; + length = augmented_length; + } + else + { + if (!(dp->arg_index != ARG_NONE)) + abort (); + + if (dp->conversion == 'n') + { + switch (a.arg[dp->arg_index].type) + { + case TYPE_COUNT_SCHAR_POINTER: + *a.arg[dp->arg_index].a.a_count_schar_pointer = length; + break; + case TYPE_COUNT_SHORT_POINTER: + *a.arg[dp->arg_index].a.a_count_short_pointer = length; + break; + case TYPE_COUNT_INT_POINTER: + *a.arg[dp->arg_index].a.a_count_int_pointer = length; + break; + case TYPE_COUNT_LONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longint_pointer = length; + break; #if HAVE_LONG_LONG_INT - case TYPE_COUNT_LONGLONGINT_POINTER: - *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; - break; -#endif - default: - abort (); - } - } + case TYPE_COUNT_LONGLONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; + break; +#endif + default: + abort (); + } + } #if ENABLE_UNISTDIO - /* The unistdio extensions. */ - else if (dp->conversion == 'U') - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - switch (type) - { - case TYPE_U8_STRING: - { - const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; - const uint8_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u8_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u8_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + /* The unistdio extensions. */ + else if (dp->conversion == 'U') + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + switch (type) + { + case TYPE_U8_STRING: + { + const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; + const uint8_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u8_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT8_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-8 to locale encoding. */ - if (u8_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-8 to locale encoding. */ + converted = + u8_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-8 to UTF-16/UTF-32. */ - converted = - U8_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-8 to UTF-16/UTF-32. */ + converted = + U8_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U16_STRING: - { - const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; - const uint16_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u16_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u16_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U16_STRING: + { + const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; + const uint16_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u16_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT16_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-16 to locale encoding. */ - if (u16_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-16 to locale encoding. */ + converted = + u16_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-16 to UTF-8/UTF-32. */ - converted = - U16_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-16 to UTF-8/UTF-32. */ + converted = + U16_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - case TYPE_U32_STRING: - { - const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; - const uint32_t *arg_end; - size_t characters; - - if (has_precision) - { - /* Use only PRECISION characters, from the left. */ - arg_end = arg; - characters = 0; - for (; precision > 0; precision--) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else if (has_width) - { - /* Use the entire string, and count the number of - characters. */ - arg_end = arg; - characters = 0; - for (;;) - { - int count = u32_strmblen (arg_end); - if (count == 0) - break; - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EILSEQ; - return NULL; - } - arg_end += count; - characters++; - } - } - else - { - /* Use the entire string. */ - arg_end = arg + u32_strlen (arg); - /* The number of characters doesn't matter. */ - characters = 0; - } - - if (has_width && width > characters - && !(dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U32_STRING: + { + const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; + const uint32_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u32_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } # if DCHAR_IS_UINT32_T - { - size_t n = arg_end - arg; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_CPY (result + length, arg, n); - length += n; - } + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } # else - { /* Convert. */ - DCHAR_T *converted = result + length; - size_t converted_len = allocated - length; + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR - /* Convert from UTF-32 to locale encoding. */ - if (u32_conv_to_encoding (locale_charset (), - iconveh_question_mark, - arg, arg_end - arg, NULL, - &converted, &converted_len) - < 0) + /* Convert from UTF-32 to locale encoding. */ + converted = + u32_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); # else - /* Convert from UTF-32 to UTF-8/UTF-16. */ - converted = - U32_TO_DCHAR (arg, arg_end - arg, - converted, &converted_len); - if (converted == NULL) + /* Convert from UTF-32 to UTF-8/UTF-16. */ + converted = + U32_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); # endif - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - if (converted != result + length) - { - ENSURE_ALLOCATION (xsum (length, converted_len)); - DCHAR_CPY (result + length, converted, converted_len); - free (converted); - } - length += converted_len; - } -# endif - - if (has_width && width > characters - && (dp->flags & FLAG_LEFT)) - { - size_t n = width - characters; - ENSURE_ALLOCATION (xsum (length, n)); - DCHAR_SET (result + length, ' ', n); - length += n; - } - } - break; - - default: - abort (); - } - } + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + default: + abort (); + } + } +#endif +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T + else if (dp->conversion == 's' +# if WIDE_CHAR_VERSION + && a.arg[dp->arg_index].type != TYPE_WIDE_STRING +# else + && a.arg[dp->arg_index].type == TYPE_WIDE_STRING +# endif + ) + { + /* The normal handling of the 's' directive below requires + allocating a temporary buffer. The determination of its + length (tmp_length), in the case when a precision is + specified, below requires a conversion between a char[] + string and a wchar_t[] wide string. It could be done, but + we have no guarantee that the implementation of sprintf will + use the exactly same algorithm. Without this guarantee, it + is possible to have buffer overrun bugs. In order to avoid + such bugs, we implement the entire processing of the 's' + directive ourselves. */ + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + +# if WIDE_CHAR_VERSION + /* %s in vasnwprintf. See the specification of fwprintf. */ + { + const char *arg = a.arg[dp->arg_index].a.a_string; + const char *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only as many bytes as needed to produce PRECISION + wide characters, from the left. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of wide + characters. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + + if (has_precision || has_width) + { + /* We know the number of wide characters in advance. */ + size_t remaining; +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; remaining--) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + result[length++] = wc; + arg += count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + ENSURE_ALLOCATION (xsum (length, 1)); + result[length++] = wc; + arg += count; + } + } + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# else + /* %ls in vasnprintf. See the specification of fprintf. */ + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + const wchar_t *arg_end; + size_t characters; +# if !DCHAR_IS_TCHAR + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; + TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; +# endif + size_t w; + + if (has_precision) + { + /* Use only as many wide characters as needed to produce + at most PRECISION bytes, from the left. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + while (precision > 0) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + if (precision < count) + break; + arg_end++; + characters += count; + precision -= count; + } + } +# if DCHAR_IS_TCHAR + else if (has_width) +# else + else +# endif + { + /* Use the entire string, and count the number of + bytes. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end++; + characters += count; + } + } +# if DCHAR_IS_TCHAR + else + { + /* Use the entire string. */ + arg_end = arg + local_wcslen (arg); + /* The number of bytes doesn't matter. */ + characters = 0; + } +# endif + +# if !DCHAR_IS_TCHAR + /* Convert the string into a piece of temporary memory. */ + tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); + if (tmpsrc == NULL) + goto out_of_memory; + { + TCHAR_T *tmpptr = tmpsrc; + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (tmpptr, cbuf, count); + tmpptr += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, characters, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + free (tmpsrc); + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + free (tmpsrc); +# endif + + if (has_width) + { +# if ENABLE_UNISTDIO + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, characters); +# else + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = characters; +# endif + } + else + /* w doesn't matter. */ + w = 0; + + if (has_width && width > w + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_TCHAR + if (has_precision || has_width) + { + /* We know the number of bytes in advance. */ + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (result + length, cbuf, count); + length += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, count)); + memcpy (result + length, cbuf, count); + length += count; + arg++; + } + } +# else + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + length += tmpdst_len; +# endif + + if (has_width && width > w + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# endif + } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'a' || dp->conversion == 'A') + else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) - && (0 + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif - ) + ) # endif - ) - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* Allocate a temporary buffer of sufficient size. */ - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) ((LDBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) ((DBL_DIG + 1) - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } - - pad_ptr = NULL; - p = tmp; - if (type == TYPE_LONGDOUBLE) - { + ) + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* Allocate a temporary buffer of sufficient size. */ + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) ((LDBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) ((DBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } + + pad_ptr = NULL; + p = tmp; + if (type == TYPE_LONGDOUBLE) + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE - long double arg = a.arg[dp->arg_index].a.a_longdouble; + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - long double mantissa; - - if (arg > 0.0L) - mantissa = printf_frexpl (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0L; - } - - if (has_precision - && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - long double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5L : tail > 0.5L) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0L; - } - if (tail != 0.0L) - for (q = precision; q > 0; q--) - tail *= 0.0625L; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0L || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0L) - { - mantissa *= 16.0L; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnanl (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + long double mantissa; + + if (arg > 0.0L) + mantissa = printf_frexpl (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0L; + } + + if (has_precision + && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + long double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5L : tail > 0.5L) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0L; + } + if (tail != 0.0L) + for (q = precision; q > 0; q--) + tail *= 0.0625L; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0L || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0L) + { + mantissa *= 16.0L; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } + END_LONG_DOUBLE_ROUNDING (); + } # else - abort (); + abort (); # endif - } - else - { + } + else + { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE - double arg = a.arg[dp->arg_index].a.a_double; + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion == 'A') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion == 'A') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { - int exponent; - double mantissa; - - if (arg > 0.0) - mantissa = printf_frexp (arg, &exponent); - else - { - exponent = 0; - mantissa = 0.0; - } - - if (has_precision - && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) - { - /* Round the mantissa. */ - double tail = mantissa; - size_t q; - - for (q = precision; ; q--) - { - int digit = (int) tail; - tail -= digit; - if (q == 0) - { - if (digit & 1 ? tail >= 0.5 : tail > 0.5) - tail = 1 - tail; - else - tail = - tail; - break; - } - tail *= 16.0; - } - if (tail != 0.0) - for (q = precision; q > 0; q--) - tail *= 0.0625; - mantissa += tail; - } - - *p++ = '0'; - *p++ = dp->conversion - 'A' + 'X'; - pad_ptr = p; - { - int digit; - - digit = (int) mantissa; - mantissa -= digit; - *p++ = '0' + digit; - if ((flags & FLAG_ALT) - || mantissa > 0.0 || precision > 0) - { - *p++ = decimal_point_char (); - /* This loop terminates because we assume - that FLT_RADIX is a power of 2. */ - while (mantissa > 0.0) - { - mantissa *= 16.0; - digit = (int) mantissa; - mantissa -= digit; - *p++ = digit - + (digit < 10 - ? '0' - : dp->conversion - 10); - if (precision > 0) - precision--; - } - while (precision > 0) - { - *p++ = '0'; - precision--; - } - } - } - *p++ = dp->conversion - 'A' + 'P'; + if (isnand (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + double mantissa; + + if (arg > 0.0) + mantissa = printf_frexp (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0; + } + + if (has_precision + && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5 : tail > 0.5) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0; + } + if (tail != 0.0) + for (q = precision; q > 0; q--) + tail *= 0.0625; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0 || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0) + { + mantissa *= 16.0; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - } + } + } # else - abort (); + abort (); # endif - } - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } + } + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL - else if ((dp->conversion == 'f' || dp->conversion == 'F' - || dp->conversion == 'e' || dp->conversion == 'E' - || dp->conversion == 'g' || dp->conversion == 'G' - || dp->conversion == 'a' || dp->conversion == 'A') - && (0 + else if ((dp->conversion == 'f' || dp->conversion == 'F' + || dp->conversion == 'e' || dp->conversion == 'E' + || dp->conversion == 'g' || dp->conversion == 'G' + || dp->conversion == 'a' || dp->conversion == 'A') + && (0 # if NEED_PRINTF_DOUBLE - || a.arg[dp->arg_index].type == TYPE_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_DOUBLE - /* The systems (mingw) which produce wrong output - for Inf, -Inf, and NaN also do so for -0.0. - Therefore we treat this case here as well. */ - && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) + || (a.arg[dp->arg_index].type == TYPE_DOUBLE + /* The systems (mingw) which produce wrong output + for Inf, -Inf, and NaN also do so for -0.0. + Therefore we treat this case here as well. */ + && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE - || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE - || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE - /* Some systems produce wrong output for Inf, - -Inf, and NaN. */ - && is_infinitel (a.arg[dp->arg_index].a.a_longdouble)) + || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + /* Some systems produce wrong output for Inf, + -Inf, and NaN. Some systems in this category + (IRIX 5.3) also do so for -0.0. Therefore we + treat this case here as well. */ + && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif - )) - { + )) + { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) - arg_type type = a.arg[dp->arg_index].type; + arg_type type = a.arg[dp->arg_index].type; # endif - int flags = dp->flags; - int has_width; - size_t width; - int has_precision; - size_t precision; - size_t tmp_length; - DCHAR_T tmpbuf[700]; - DCHAR_T *tmp; - DCHAR_T *pad_ptr; - DCHAR_T *p; - - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } - - has_precision = 0; - precision = 0; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } - - /* POSIX specifies the default precision to be 6 for %f, %F, - %e, %E, but not for %g, %G. Implementations appear to use - the same default precision also for %g, %G. */ - if (!has_precision) - precision = 6; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* POSIX specifies the default precision to be 6 for %f, %F, + %e, %E, but not for %g, %G. Implementations appear to use + the same default precision also for %g, %G. But for %a, %A, + the default precision is 0. */ + if (!has_precision) + if (!(dp->conversion == 'a' || dp->conversion == 'A')) + precision = 6; - /* Allocate a temporary buffer of sufficient size. */ + /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE - tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE - tmp_length = LDBL_DIG + 1; + tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE - tmp_length = DBL_DIG + 1; + tmp_length = DBL_DIG + 1; # else - tmp_length = 0; + tmp_length = 0; # endif - if (tmp_length < precision) - tmp_length = precision; + if (tmp_length < precision) + tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (!(isnanl (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10l (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + if (!(isnanl (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10l (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE - if (type == TYPE_DOUBLE) + if (type == TYPE_DOUBLE) # endif - if (dp->conversion == 'f' || dp->conversion == 'F') - { - double arg = a.arg[dp->arg_index].a.a_double; - if (!(isnan (arg) || arg + arg == arg)) - { - /* arg is finite and nonzero. */ - int exponent = floorlog10 (arg < 0 ? -arg : arg); - if (exponent >= 0 && tmp_length < exponent + precision) - tmp_length = exponent + precision; - } - } -# endif - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - - if (tmp_length < width) - tmp_length = width; - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - - if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (DCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + double arg = a.arg[dp->arg_index].a.a_double; + if (!(isnand (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10 (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } +# endif + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } - pad_ptr = NULL; - p = tmp; + pad_ptr = NULL; + p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - if (type == TYPE_LONGDOUBLE) + if (type == TYPE_LONGDOUBLE) # endif - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; - if (isnanl (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - DECL_LONG_DOUBLE_ROUNDING - - BEGIN_LONG_DOUBLE_ROUNDING (); - - if (signbit (arg)) /* arg < 0.0L or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0L && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnanl (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_LONG_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_long_double (arg, precision); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0L) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0L. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)precision - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_long_double (arg, precision); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0L) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0L. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)precision - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0L) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0L. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10l (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_long_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - { - END_LONG_DOUBLE_ROUNDING (); - goto out_of_memory; - } - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0L) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0L. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - { '%', '+', '.', '2', 'd', '\0' }; - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, "%+.2d", exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, "%+.2d", exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - abort (); + /* arg is finite. */ + if (!(arg == 0.0L)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else if (dp->conversion == 'a' || dp->conversion == 'A') + { + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion - 'A' + 'P'; + *p++ = '+'; + *p++ = '0'; + } + else + abort (); # endif - } + } - END_LONG_DOUBLE_ROUNDING (); - } - } + END_LONG_DOUBLE_ROUNDING (); + } + } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - else + else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE - { - double arg = a.arg[dp->arg_index].a.a_double; + { + double arg = a.arg[dp->arg_index].a.a_double; - if (isnan (arg)) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; - } - else - { - *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; - } - } - else - { - int sign = 0; - - if (signbit (arg)) /* arg < 0.0 or negative zero */ - { - sign = -1; - arg = -arg; - } - - if (sign < 0) - *p++ = '-'; - else if (flags & FLAG_SHOWSIGN) - *p++ = '+'; - else if (flags & FLAG_SPACE) - *p++ = ' '; - - if (arg > 0.0 && arg + arg == arg) - { - if (dp->conversion >= 'A' && dp->conversion <= 'Z') - { - *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; - } - else - { - *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; - } - } - else - { + if (isnand (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { # if NEED_PRINTF_DOUBLE - pad_ptr = p; + pad_ptr = p; - if (dp->conversion == 'f' || dp->conversion == 'F') - { - char *digits; - size_t ndigits; - - digits = - scale10_round_decimal_double (arg, precision); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits > precision) - do - { - --ndigits; - *p++ = digits[ndigits]; - } - while (ndigits > precision); - else - *p++ = '0'; - /* Here ndigits <= precision. */ - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > ndigits; precision--) - *p++ = '0'; - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - - free (digits); - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - int exponent; - - if (arg == 0.0) - { - exponent = 0; - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else - { - /* arg > 0.0. */ - int adjusted; - char *digits; - size_t ndigits; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)precision - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision + 1) - break; - if (ndigits < precision - || ndigits > precision + 2) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits == precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - - /* Here ndigits = precision+1. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - while (ndigits > 0) - { - --ndigits; - *p++ = digits[ndigits]; - } - } + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_double (arg, precision); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)precision - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } - free (digits); - } + free (digits); + } - *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - if (precision == 0) - precision = 1; - /* precision >= 1. */ - - if (arg == 0.0) - /* The exponent is 0, >= -4, < precision. - Use fixed-point notation. */ - { - size_t ndigits = precision; - /* Number of trailing zeroes that have to be - dropped. */ - size_t nzeroes = - (flags & FLAG_ALT ? 0 : precision - 1); - - --ndigits; - *p++ = '0'; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = '0'; - } - } - } - else - { - /* arg > 0.0. */ - int exponent; - int adjusted; - char *digits; - size_t ndigits; - size_t nzeroes; - - exponent = floorlog10 (arg); - adjusted = 0; - for (;;) - { - digits = - scale10_round_decimal_double (arg, - (int)(precision - 1) - exponent); - if (digits == NULL) - goto out_of_memory; - ndigits = strlen (digits); - - if (ndigits == precision) - break; - if (ndigits < precision - 1 - || ndigits > precision + 1) - /* The exponent was not guessed - precisely enough. */ - abort (); - if (adjusted) - /* None of two values of exponent is - the right one. Prevent an endless - loop. */ - abort (); - free (digits); - if (ndigits < precision) - exponent -= 1; - else - exponent += 1; - adjusted = 1; - } - /* Here ndigits = precision. */ - - /* Determine the number of trailing zeroes - that have to be dropped. */ - nzeroes = 0; - if ((flags & FLAG_ALT) == 0) - while (nzeroes < ndigits - && digits[nzeroes] == '0') - nzeroes++; - - /* The exponent is now determined. */ - if (exponent >= -4 - && exponent < (long)precision) - { - /* Fixed-point notation: - max(exponent,0)+1 digits, then the - decimal point, then the remaining - digits without trailing zeroes. */ - if (exponent >= 0) - { - size_t count = exponent + 1; - /* Note: count <= precision = ndigits. */ - for (; count > 0; count--) - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - size_t count = -exponent - 1; - *p++ = '0'; - *p++ = decimal_point_char (); - for (; count > 0; count--) - *p++ = '0'; - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - } - else - { - /* Exponential notation. */ - *p++ = digits[--ndigits]; - if ((flags & FLAG_ALT) || ndigits > nzeroes) - { - *p++ = decimal_point_char (); - while (ndigits > nzeroes) - { - --ndigits; - *p++ = digits[ndigits]; - } - } - *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION - { - static const wchar_t decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - { '%', '+', '.', '3', 'd', '\0' }; + { '%', '+', '.', '3', 'd', '\0' }; # else - { '%', '+', '.', '2', 'd', '\0' }; + { '%', '+', '.', '2', 'd', '\0' }; # endif - SNPRINTF (p, 6 + 1, decimal_format, exponent); - } - while (*p != '\0') - p++; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; # else - { - static const char decimal_format[] = - /* Produce the same number of exponent digits - as the native printf implementation. */ + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - "%+.3d"; + "%+.3d"; # else - "%+.2d"; + "%+.2d"; # endif - if (sizeof (DCHAR_T) == 1) - { - sprintf ((char *) p, decimal_format, exponent); - while (*p != '\0') - p++; - } - else - { - char expbuf[6 + 1]; - const char *ep; - sprintf (expbuf, decimal_format, exponent); - for (ep = expbuf; (*p = *ep) != '\0'; ep++) - p++; - } - } + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } # endif - } + } - free (digits); - } - } - else - abort (); + free (digits); + } + } + else + abort (); # else - /* arg is finite. */ - if (!(arg == 0.0)) - abort (); - - pad_ptr = p; - - if (dp->conversion == 'f' || dp->conversion == 'F') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - } - else if (dp->conversion == 'e' || dp->conversion == 'E') - { - *p++ = '0'; - if ((flags & FLAG_ALT) || precision > 0) - { - *p++ = decimal_point_char (); - for (; precision > 0; precision--) - *p++ = '0'; - } - *p++ = dp->conversion; /* 'e' or 'E' */ - *p++ = '+'; - /* Produce the same number of exponent digits as - the native printf implementation. */ + /* arg is finite. */ + if (!(arg == 0.0)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + /* Produce the same number of exponent digits as + the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *p++ = '0'; + *p++ = '0'; # endif - *p++ = '0'; - *p++ = '0'; - } - else if (dp->conversion == 'g' || dp->conversion == 'G') - { - *p++ = '0'; - if (flags & FLAG_ALT) - { - size_t ndigits = - (precision > 0 ? precision - 1 : 0); - *p++ = decimal_point_char (); - for (; ndigits > 0; --ndigits) - *p++ = '0'; - } - } - else - abort (); + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else + abort (); # endif - } - } - } -# endif - - /* The generated string now extends from tmp to p, with the - zero padding insertion point being at pad_ptr. */ - if (has_width && p - tmp < width) - { - size_t pad = width - (p - tmp); - DCHAR_T *end = p + pad; - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > tmp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - - p = end; - } - - { - size_t count = p - tmp; - - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); - - /* Make room for the result. */ - if (count >= allocated - length) - { - size_t n = xsum (length, count); - - ENSURE_ALLOCATION (n); - } - - /* Append the result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); - if (tmp != tmpbuf) - free (tmp); - length += count; - } - } -#endif - else - { - arg_type type = a.arg[dp->arg_index].type; - int flags = dp->flags; -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int has_width; - size_t width; -#endif -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - int has_precision; - size_t precision; + } + } + } +# endif + + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } +#endif + else + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int has_width; + size_t width; +#endif +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + int has_precision; + size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - int prec_ourselves; + int prec_ourselves; #else -# define prec_ourselves 0 +# define prec_ourselves 0 #endif -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - int pad_ourselves; +#if NEED_PRINTF_FLAG_LEFTADJUST +# define pad_ourselves 1 +#elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int pad_ourselves; #else -# define pad_ourselves 0 +# define pad_ourselves 0 #endif - TCHAR_T *fbp; - unsigned int prefix_count; - int prefixes[2]; + TCHAR_T *fbp; + unsigned int prefix_count; + int prefixes[2] IF_LINT (= { 0 }); #if !USE_SNPRINTF - size_t tmp_length; - TCHAR_T tmpbuf[700]; - TCHAR_T *tmp; -#endif - -#if !USE_SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - has_width = 0; - width = 0; - if (dp->width_start != dp->width_end) - { - if (dp->width_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->width_arg_index].a.a_int; - if (arg < 0) - { - /* "A negative field width is taken as a '-' flag - followed by a positive field width." */ - flags |= FLAG_LEFT; - width = (unsigned int) (-arg); - } - else - width = arg; - } - else - { - const FCHAR_T *digitp = dp->width_start; - - do - width = xsum (xtimes (width, 10), *digitp++ - '0'); - while (digitp != dp->width_end); - } - has_width = 1; - } -#endif - -#if !USE_SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION - has_precision = 0; - precision = 6; - if (dp->precision_start != dp->precision_end) - { - if (dp->precision_arg_index != ARG_NONE) - { - int arg; - - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - arg = a.arg[dp->precision_arg_index].a.a_int; - /* "A negative precision is taken as if the precision - were omitted." */ - if (arg >= 0) - { - precision = arg; - has_precision = 1; - } - } - else - { - const FCHAR_T *digitp = dp->precision_start + 1; - - precision = 0; - while (digitp != dp->precision_end) - precision = xsum (xtimes (precision, 10), *digitp++ - '0'); - has_precision = 1; - } - } + size_t tmp_length; + TCHAR_T tmpbuf[700]; + TCHAR_T *tmp; +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } #endif -#if !USE_SNPRINTF - /* Allocate a temporary buffer of sufficient size for calling - sprintf. */ - { - switch (dp->conversion) - { - - case 'd': case 'i': case 'u': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.30103 /* binary -> decimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Multiply by 2, as an estimate for FLAG_GROUP. */ - tmp_length = xsum (tmp_length, tmp_length); - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'o': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.333334 /* binary -> octal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 1, to account for a leading sign. */ - tmp_length = xsum (tmp_length, 1); - break; - - case 'x': case 'X': -# if HAVE_LONG_LONG_INT - if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else -# endif - if (type == TYPE_LONGINT || type == TYPE_ULONGINT) - tmp_length = - (unsigned int) (sizeof (unsigned long) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (sizeof (unsigned int) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Add 2, to account for a leading sign or alternate form. */ - tmp_length = xsum (tmp_length, 2); - break; - - case 'f': case 'F': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - else - tmp_length = - (unsigned int) (DBL_MAX_EXP - * 0.30103 /* binary -> decimal */ - * 2 /* estimate for FLAG_GROUP */ - ) - + 1 /* turn floor into ceil */ - + 10; /* sign, decimal point etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'e': case 'E': case 'g': case 'G': - tmp_length = - 12; /* sign, decimal point, exponent etc. */ - tmp_length = xsum (tmp_length, precision); - break; - - case 'a': case 'A': - if (type == TYPE_LONGDOUBLE) - tmp_length = - (unsigned int) (LDBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - else - tmp_length = - (unsigned int) (DBL_DIG - * 0.831 /* decimal -> hexadecimal */ - ) - + 1; /* turn floor into ceil */ - if (tmp_length < precision) - tmp_length = precision; - /* Account for sign, decimal point etc. */ - tmp_length = xsum (tmp_length, 12); - break; - - case 'c': -# if HAVE_WINT_T && !WIDE_CHAR_VERSION - if (type == TYPE_WIDE_CHAR) - tmp_length = MB_CUR_MAX; - else -# endif - tmp_length = 1; - break; - - case 's': -# if HAVE_WCHAR_T - if (type == TYPE_WIDE_STRING) - { - tmp_length = - local_wcslen (a.arg[dp->arg_index].a.a_wide_string); - -# if !WIDE_CHAR_VERSION - tmp_length = xtimes (tmp_length, MB_CUR_MAX); -# endif - } - else -# endif - tmp_length = strlen (a.arg[dp->arg_index].a.a_string); - break; - - case 'p': - tmp_length = - (unsigned int) (sizeof (void *) * CHAR_BIT - * 0.25 /* binary -> hexadecimal */ - ) - + 1 /* turn floor into ceil */ - + 2; /* account for leading 0x */ - break; - - default: - abort (); - } - -# if ENABLE_UNISTDIO - /* Padding considers the number of characters, therefore the - number of elements after padding may be - > max (tmp_length, width) - but is certainly - <= tmp_length + width. */ - tmp_length = xsum (tmp_length, width); -# else - /* Padding considers the number of elements, says POSIX. */ - if (tmp_length < width) - tmp_length = width; -# endif - - tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ - } - - if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) - tmp = tmpbuf; - else - { - size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); - - if (size_overflow_p (tmp_memsize)) - /* Overflow, would lead to out of memory. */ - goto out_of_memory; - tmp = (TCHAR_T *) malloc (tmp_memsize); - if (tmp == NULL) - /* Out of memory. */ - goto out_of_memory; - } -#endif - - /* Decide whether to handle the precision ourselves. */ + /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { - case 'd': case 'i': case 'u': - case 'o': - case 'x': case 'X': case 'p': - prec_ourselves = has_precision && (precision > 0); - break; - default: - prec_ourselves = 0; - break; - } -#endif - - /* Decide whether to perform the padding ourselves. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - switch (dp->conversion) - { + switch (dp->conversion) + { + case 'd': case 'i': case 'u': + case 'o': + case 'x': case 'X': case 'p': + prec_ourselves = has_precision && (precision > 0); + break; + default: + prec_ourselves = 0; + break; + } +#endif + + /* Decide whether to perform the padding ourselves. */ +#if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) + switch (dp->conversion) + { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO - /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need - to perform the padding after this conversion. Functions - with unistdio extensions perform the padding based on - character count rather than element count. */ - case 'c': case 's': + /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need + to perform the padding after this conversion. Functions + with unistdio extensions perform the padding based on + character count rather than element count. */ + case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO - case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': - case 'a': case 'A': + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': # endif - pad_ourselves = 1; - break; - default: - pad_ourselves = prec_ourselves; - break; - } + pad_ourselves = 1; + break; + default: + pad_ourselves = prec_ourselves; + break; + } #endif - /* Construct the format string for calling snprintf or - sprintf. */ - fbp = buf; - *fbp++ = '%'; +#if !USE_SNPRINTF + /* Allocate a temporary buffer of sufficient size for calling + sprintf. */ + tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, + flags, width, has_precision, precision, + pad_ourselves); + + if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (TCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } +#endif + + /* Construct the format string for calling snprintf or + sprintf. */ + fbp = buf; + *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING - /* The underlying implementation doesn't support the ' flag. - Produce no grouping characters in this case; this is - acceptable because the grouping is locale dependent. */ + /* The underlying implementation doesn't support the ' flag. + Produce no grouping characters in this case; this is + acceptable because the grouping is locale dependent. */ #else - if (flags & FLAG_GROUP) - *fbp++ = '\''; + if (flags & FLAG_GROUP) + *fbp++ = '\''; #endif - if (flags & FLAG_LEFT) - *fbp++ = '-'; - if (flags & FLAG_SHOWSIGN) - *fbp++ = '+'; - if (flags & FLAG_SPACE) - *fbp++ = ' '; - if (flags & FLAG_ALT) - *fbp++ = '#'; - if (!pad_ourselves) - { - if (flags & FLAG_ZERO) - *fbp++ = '0'; - if (dp->width_start != dp->width_end) - { - size_t n = dp->width_end - dp->width_start; - /* The width specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->width_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } - if (!prec_ourselves) - { - if (dp->precision_start != dp->precision_end) - { - size_t n = dp->precision_end - dp->precision_start; - /* The precision specification is known to consist only - of standard ASCII characters. */ - if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) - { - memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); - fbp += n; - } - else - { - const FCHAR_T *mp = dp->precision_start; - do - *fbp++ = (unsigned char) *mp++; - while (--n > 0); - } - } - } + if (flags & FLAG_LEFT) + *fbp++ = '-'; + if (flags & FLAG_SHOWSIGN) + *fbp++ = '+'; + if (flags & FLAG_SPACE) + *fbp++ = ' '; + if (flags & FLAG_ALT) + *fbp++ = '#'; + if (!pad_ourselves) + { + if (flags & FLAG_ZERO) + *fbp++ = '0'; + if (dp->width_start != dp->width_end) + { + size_t n = dp->width_end - dp->width_start; + /* The width specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->width_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } + if (!prec_ourselves) + { + if (dp->precision_start != dp->precision_end) + { + size_t n = dp->precision_end - dp->precision_start; + /* The precision specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->precision_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } - switch (type) - { + switch (type) + { #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - case TYPE_ULONGLONGINT: + case TYPE_LONGLONGINT: + case TYPE_ULONGLONGINT: # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ - *fbp++ = 'I'; - *fbp++ = '6'; - *fbp++ = '4'; - break; + *fbp++ = 'I'; + *fbp++ = '6'; + *fbp++ = '4'; + break; # else - *fbp++ = 'l'; - /*FALLTHROUGH*/ + *fbp++ = 'l'; + /*FALLTHROUGH*/ # endif #endif - case TYPE_LONGINT: - case TYPE_ULONGINT: + case TYPE_LONGINT: + case TYPE_ULONGINT: #if HAVE_WINT_T - case TYPE_WIDE_CHAR: + case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: + case TYPE_WIDE_STRING: #endif - *fbp++ = 'l'; - break; - case TYPE_LONGDOUBLE: - *fbp++ = 'L'; - break; - default: - break; - } + *fbp++ = 'l'; + break; + case TYPE_LONGDOUBLE: + *fbp++ = 'L'; + break; + default: + break; + } #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - *fbp = 'f'; - else + if (dp->conversion == 'F') + *fbp = 'f'; + else #endif - *fbp = dp->conversion; + *fbp = dp->conversion; #if USE_SNPRINTF -# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) - fbp[1] = '%'; - fbp[2] = 'n'; - fbp[3] = '\0'; +# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0'; # else - /* On glibc2 systems from glibc >= 2.3 - probably also older - ones - we know that snprintf's returns value conforms to - ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. - Therefore we can avoid using %n in this situation. - On glibc2 systems from 2004-10-18 or newer, the use of %n - in format strings in writable memory may crash the program - (if compiled with _FORTIFY_SOURCE=2), so we should avoid it - in this situation. */ - fbp[1] = '\0'; + /* On glibc2 systems from glibc >= 2.3 - probably also older + ones - we know that snprintf's returns value conforms to + ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. + Therefore we can avoid using %n in this situation. + On glibc2 systems from 2004-10-18 or newer, the use of %n + in format strings in writable memory may crash the program + (if compiled with _FORTIFY_SOURCE=2), so we should avoid it + in this situation. */ + /* On native Win32 systems (such as mingw), we can avoid using + %n because: + - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, + snprintf does not write more than the specified number + of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes + '4', '5', '6' into buf, not '4', '5', '\0'.) + - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf + allows us to recognize the case of an insufficient + buffer size: it returns -1 in this case. + On native Win32 systems (such as mingw) where the OS is + Windows Vista, the use of %n in format strings by default + crashes the program. See + and + + So we should avoid %n in this situation. */ + fbp[1] = '\0'; # endif #else - fbp[1] = '\0'; + fbp[1] = '\0'; #endif - /* Construct the arguments for calling snprintf or sprintf. */ - prefix_count = 0; - if (!pad_ourselves && dp->width_arg_index != ARG_NONE) - { - if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; - } - if (dp->precision_arg_index != ARG_NONE) - { - if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) - abort (); - prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; - } + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; + if (!pad_ourselves && dp->width_arg_index != ARG_NONE) + { + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; + } + if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) + { + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; + } #if USE_SNPRINTF - /* The SNPRINTF result is appended after result[0..length]. - The latter is an array of DCHAR_T; SNPRINTF appends an - array of TCHAR_T to it. This is possible because - sizeof (TCHAR_T) divides sizeof (DCHAR_T) and - alignof (TCHAR_T) <= alignof (DCHAR_T). */ + /* The SNPRINTF result is appended after result[0..length]. + The latter is an array of DCHAR_T; SNPRINTF appends an + array of TCHAR_T to it. This is possible because + sizeof (TCHAR_T) divides sizeof (DCHAR_T) and + alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) - /* Prepare checking whether snprintf returns the count - via %n. */ - ENSURE_ALLOCATION (xsum (length, 1)); - *(TCHAR_T *) (result + length) = '\0'; + /* Ensure that maxlen below will be >= 2. Needed on BeOS, + where an snprintf() with maxlen==1 acts like sprintf(). */ + ENSURE_ALLOCATION (xsum (length, + (2 + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR)); + /* Prepare checking whether snprintf returns the count + via %n. */ + *(TCHAR_T *) (result + length) = '\0'; #endif - for (;;) - { - int count = -1; + for (;;) + { + int count = -1; #if USE_SNPRINTF - int retcount = 0; - size_t maxlen = allocated - length; - /* SNPRINTF can fail if its second argument is - > INT_MAX. */ - if (maxlen > INT_MAX / TCHARS_PER_DCHAR) - maxlen = INT_MAX / TCHARS_PER_DCHAR; - maxlen = maxlen * TCHARS_PER_DCHAR; + int retcount = 0; + size_t maxlen = allocated - length; + /* SNPRINTF can fail if its second argument is + > INT_MAX. */ + if (maxlen > INT_MAX / TCHARS_PER_DCHAR) + maxlen = INT_MAX / TCHARS_PER_DCHAR; + maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - arg, &count); \ - break; \ - case 1: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], arg, &count); \ - break; \ - case 2: \ - retcount = SNPRINTF ((TCHAR_T *) (result + length), \ - maxlen, buf, \ - prefixes[0], prefixes[1], arg, \ - &count); \ - break; \ - default: \ - abort (); \ - } + switch (prefix_count) \ + { \ + case 0: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + arg, &count); \ + break; \ + case 1: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], arg, &count); \ + break; \ + case 2: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], prefixes[1], arg, \ + &count); \ + break; \ + default: \ + abort (); \ + } #else # define SNPRINTF_BUF(arg) \ - switch (prefix_count) \ - { \ - case 0: \ - count = sprintf (tmp, buf, arg); \ - break; \ - case 1: \ - count = sprintf (tmp, buf, prefixes[0], arg); \ - break; \ - case 2: \ - count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ - arg); \ - break; \ - default: \ - abort (); \ - } -#endif - - switch (type) - { - case TYPE_SCHAR: - { - int arg = a.arg[dp->arg_index].a.a_schar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UCHAR: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uchar; - SNPRINTF_BUF (arg); - } - break; - case TYPE_SHORT: - { - int arg = a.arg[dp->arg_index].a.a_short; - SNPRINTF_BUF (arg); - } - break; - case TYPE_USHORT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_ushort; - SNPRINTF_BUF (arg); - } - break; - case TYPE_INT: - { - int arg = a.arg[dp->arg_index].a.a_int; - SNPRINTF_BUF (arg); - } - break; - case TYPE_UINT: - { - unsigned int arg = a.arg[dp->arg_index].a.a_uint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGINT: - { - long int arg = a.arg[dp->arg_index].a.a_longint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGINT: - { - unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; - SNPRINTF_BUF (arg); - } - break; + switch (prefix_count) \ + { \ + case 0: \ + count = sprintf (tmp, buf, arg); \ + break; \ + case 1: \ + count = sprintf (tmp, buf, prefixes[0], arg); \ + break; \ + case 2: \ + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ + arg); \ + break; \ + default: \ + abort (); \ + } +#endif + + errno = 0; + switch (type) + { + case TYPE_SCHAR: + { + int arg = a.arg[dp->arg_index].a.a_schar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UCHAR: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uchar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_SHORT: + { + int arg = a.arg[dp->arg_index].a.a_short; + SNPRINTF_BUF (arg); + } + break; + case TYPE_USHORT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_ushort; + SNPRINTF_BUF (arg); + } + break; + case TYPE_INT: + { + int arg = a.arg[dp->arg_index].a.a_int; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UINT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGINT: + { + long int arg = a.arg[dp->arg_index].a.a_longint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGINT: + { + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; + SNPRINTF_BUF (arg); + } + break; #if HAVE_LONG_LONG_INT - case TYPE_LONGLONGINT: - { - long long int arg = a.arg[dp->arg_index].a.a_longlongint; - SNPRINTF_BUF (arg); - } - break; - case TYPE_ULONGLONGINT: - { - unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_DOUBLE: - { - double arg = a.arg[dp->arg_index].a.a_double; - SNPRINTF_BUF (arg); - } - break; - case TYPE_LONGDOUBLE: - { - long double arg = a.arg[dp->arg_index].a.a_longdouble; - SNPRINTF_BUF (arg); - } - break; - case TYPE_CHAR: - { - int arg = a.arg[dp->arg_index].a.a_char; - SNPRINTF_BUF (arg); - } - break; + case TYPE_LONGLONGINT: + { + long long int arg = a.arg[dp->arg_index].a.a_longlongint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGLONGINT: + { + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_DOUBLE: + { + double arg = a.arg[dp->arg_index].a.a_double; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGDOUBLE: + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + SNPRINTF_BUF (arg); + } + break; + case TYPE_CHAR: + { + int arg = a.arg[dp->arg_index].a.a_char; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WINT_T - case TYPE_WIDE_CHAR: - { - wint_t arg = a.arg[dp->arg_index].a.a_wide_char; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_STRING: - { - const char *arg = a.arg[dp->arg_index].a.a_string; - SNPRINTF_BUF (arg); - } - break; + case TYPE_WIDE_CHAR: + { + wint_t arg = a.arg[dp->arg_index].a.a_wide_char; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_STRING: + { + const char *arg = a.arg[dp->arg_index].a.a_string; + SNPRINTF_BUF (arg); + } + break; #if HAVE_WCHAR_T - case TYPE_WIDE_STRING: - { - const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; - SNPRINTF_BUF (arg); - } - break; -#endif - case TYPE_POINTER: - { - void *arg = a.arg[dp->arg_index].a.a_pointer; - SNPRINTF_BUF (arg); - } - break; - default: - abort (); - } + case TYPE_WIDE_STRING: + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_POINTER: + { + void *arg = a.arg[dp->arg_index].a.a_pointer; + SNPRINTF_BUF (arg); + } + break; + default: + abort (); + } #if USE_SNPRINTF - /* Portability: Not all implementations of snprintf() - are ISO C 99 compliant. Determine the number of - bytes that snprintf() has produced or would have - produced. */ - if (count >= 0) - { - /* Verify that snprintf() has NUL-terminated its - result. */ - if (count < maxlen - && ((TCHAR_T *) (result + length)) [count] != '\0') - abort (); - /* Portability hack. */ - if (retcount > count) - count = retcount; - } - else - { - /* snprintf() doesn't understand the '%n' - directive. */ - if (fbp[1] != '\0') - { - /* Don't use the '%n' directive; instead, look - at the snprintf() return value. */ - fbp[1] = '\0'; - continue; - } - else - { - /* Look at the snprintf() return value. */ - if (retcount < 0) - { - /* HP-UX 10.20 snprintf() is doubly deficient: - It doesn't understand the '%n' directive, - *and* it returns -1 (rather than the length - that would have been required) when the - buffer is too small. */ - size_t bigger_need = - xsum (xtimes (allocated, 2), 12); - ENSURE_ALLOCATION (bigger_need); - continue; - } - else - count = retcount; - } - } -#endif - - /* Attempt to handle failure. */ - if (count < 0) - { - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = EINVAL; - return NULL; - } + /* Portability: Not all implementations of snprintf() + are ISO C 99 compliant. Determine the number of + bytes that snprintf() has produced or would have + produced. */ + if (count >= 0) + { + /* Verify that snprintf() has NUL-terminated its + result. */ + if (count < maxlen + && ((TCHAR_T *) (result + length)) [count] != '\0') + abort (); + /* Portability hack. */ + if (retcount > count) + count = retcount; + } + else + { + /* snprintf() doesn't understand the '%n' + directive. */ + if (fbp[1] != '\0') + { + /* Don't use the '%n' directive; instead, look + at the snprintf() return value. */ + fbp[1] = '\0'; + continue; + } + else + { + /* Look at the snprintf() return value. */ + if (retcount < 0) + { +# if !HAVE_SNPRINTF_RETVAL_C99 + /* HP-UX 10.20 snprintf() is doubly deficient: + It doesn't understand the '%n' directive, + *and* it returns -1 (rather than the length + that would have been required) when the + buffer is too small. + But a failure at this point can also come + from other reasons than a too small buffer, + such as an invalid wide string argument to + the %ls directive, or possibly an invalid + floating-point argument. */ + size_t tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, + dp->conversion, type, flags, + width, has_precision, + precision, pad_ourselves); + + if (maxlen < tmp_length) + { + /* Make more room. But try to do through + this reallocation only once. */ + size_t bigger_need = + xsum (length, + xsum (tmp_length, + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + /* And always grow proportionally. + (There may be several arguments, each + needing a little more room than the + previous one.) */ + size_t bigger_need2 = + xsum (xtimes (allocated, 2), 12); + if (bigger_need < bigger_need2) + bigger_need = bigger_need2; + ENSURE_ALLOCATION (bigger_need); + continue; + } +# endif + } + else + count = retcount; + } + } +#endif + + /* Attempt to handle failure. */ + if (count < 0) + { + /* SNPRINTF or sprintf failed. Save and use the errno + that it has set, if any. */ + int saved_errno = errno; + + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = + (saved_errno != 0 + ? saved_errno + : (dp->conversion == 'c' || dp->conversion == 's' + ? EILSEQ + : EINVAL)); + return NULL; + } #if USE_SNPRINTF - /* Handle overflow of the allocated buffer. - If such an overflow occurs, a C99 compliant snprintf() - returns a count >= maxlen. However, a non-compliant - snprintf() function returns only count = maxlen - 1. To - cover both cases, test whether count >= maxlen - 1. */ - if ((unsigned int) count + 1 >= maxlen) - { - /* If maxlen already has attained its allowed maximum, - allocating more memory will not increase maxlen. - Instead of looping, bail out. */ - if (maxlen == INT_MAX / TCHARS_PER_DCHAR) - goto overflow; - else - { - /* Need at least count * sizeof (TCHAR_T) bytes. - But allocate proportionally, to avoid looping - eternally if snprintf() reports a too small - count. */ - size_t n = - xmax (xsum (length, - (count + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR), - xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - continue; - } - } + /* Handle overflow of the allocated buffer. + If such an overflow occurs, a C99 compliant snprintf() + returns a count >= maxlen. However, a non-compliant + snprintf() function returns only count = maxlen - 1. To + cover both cases, test whether count >= maxlen - 1. */ + if ((unsigned int) count + 1 >= maxlen) + { + /* If maxlen already has attained its allowed maximum, + allocating more memory will not increase maxlen. + Instead of looping, bail out. */ + if (maxlen == INT_MAX / TCHARS_PER_DCHAR) + goto overflow; + else + { + /* Need at least (count + 1) * sizeof (TCHAR_T) + bytes. (The +1 is for the trailing NUL.) + But ask for (count + 2) * sizeof (TCHAR_T) + bytes, so that in the next round, we likely get + maxlen > (unsigned int) count + 1 + and so we don't get here again. + And allocate proportionally, to avoid looping + eternally if snprintf() reports a too small + count. */ + size_t n = + xmax (xsum (length, + ((unsigned int) count + 2 + + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR), + xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + continue; + } + } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION - if (prec_ourselves) - { - /* Handle the precision. */ - TCHAR_T *prec_ptr = + if (prec_ourselves) + { + /* Handle the precision. */ + TCHAR_T *prec_ptr = # if USE_SNPRINTF - (TCHAR_T *) (result + length); + (TCHAR_T *) (result + length); # else - tmp; + tmp; # endif - size_t prefix_count; - size_t move; + size_t prefix_count; + size_t move; - prefix_count = 0; - /* Put the additional zeroes after the sign. */ - if (count >= 1 - && (*prec_ptr == '-' || *prec_ptr == '+' - || *prec_ptr == ' ')) - prefix_count = 1; - /* Put the additional zeroes after the 0x prefix if - (flags & FLAG_ALT) || (dp->conversion == 'p'). */ - else if (count >= 2 - && prec_ptr[0] == '0' - && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) - prefix_count = 2; - - move = count - prefix_count; - if (precision > move) - { - /* Insert zeroes. */ - size_t insert = precision - move; - TCHAR_T *prec_end; + prefix_count = 0; + /* Put the additional zeroes after the sign. */ + if (count >= 1 + && (*prec_ptr == '-' || *prec_ptr == '+' + || *prec_ptr == ' ')) + prefix_count = 1; + /* Put the additional zeroes after the 0x prefix if + (flags & FLAG_ALT) || (dp->conversion == 'p'). */ + else if (count >= 2 + && prec_ptr[0] == '0' + && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) + prefix_count = 2; + + move = count - prefix_count; + if (precision > move) + { + /* Insert zeroes. */ + size_t insert = precision - move; + TCHAR_T *prec_end; # if USE_SNPRINTF - size_t n = - xsum (length, - (count + insert + TCHARS_PER_DCHAR - 1) - / TCHARS_PER_DCHAR); - length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - ENSURE_ALLOCATION (n); - length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; - prec_ptr = (TCHAR_T *) (result + length); -# endif - - prec_end = prec_ptr + count; - prec_ptr += prefix_count; - - while (prec_end > prec_ptr) - { - prec_end--; - prec_end[insert] = prec_end[0]; - } - - prec_end += insert; - do - *--prec_end = '0'; - while (prec_end > prec_ptr); - - count += insert; - } - } + size_t n = + xsum (length, + (count + insert + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + ENSURE_ALLOCATION (n); + length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + prec_ptr = (TCHAR_T *) (result + length); +# endif + + prec_end = prec_ptr + count; + prec_ptr += prefix_count; + + while (prec_end > prec_ptr) + { + prec_end--; + prec_end[insert] = prec_end[0]; + } + + prec_end += insert; + do + *--prec_end = '0'; + while (prec_end > prec_ptr); + + count += insert; + } + } +#endif + +#if !USE_SNPRINTF + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); #endif #if !DCHAR_IS_TCHAR -# if !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); -# endif - - /* Convert from TCHAR_T[] to DCHAR_T[]. */ - if (dp->conversion == 'c' || dp->conversion == 's') - { - /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING - TYPE_WIDE_STRING. - The result string is not certainly ASCII. */ - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t tmpdst_len; - /* This code assumes that TCHAR_T is 'char'. */ - typedef int TCHAR_T_verify - [2 * (sizeof (TCHAR_T) == 1) - 1]; + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + if (dp->conversion == 'c' || dp->conversion == 's') + { + /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING + TYPE_WIDE_STRING. + The result string is not certainly ASCII. */ + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify + [2 * (sizeof (TCHAR_T) == 1) - 1]; # if USE_SNPRINTF - tmpsrc = (TCHAR_T *) (result + length); + tmpsrc = (TCHAR_T *) (result + length); # else - tmpsrc = tmp; + tmpsrc = tmp; # endif - tmpdst = NULL; - tmpdst_len = 0; - if (DCHAR_CONV_FROM_ENCODING (locale_charset (), - iconveh_question_mark, - tmpsrc, count, - NULL, - &tmpdst, &tmpdst_len) - < 0) - { - int saved_errno = errno; - if (!(result == resultbuf || result == NULL)) - free (result); - if (buf_malloced != NULL) - free (buf_malloced); - CLEANUP (); - errno = saved_errno; - return NULL; - } - ENSURE_ALLOCATION (xsum (length, tmpdst_len)); - DCHAR_CPY (result + length, tmpdst, tmpdst_len); - free (tmpdst); - count = tmpdst_len; - } - else - { - /* The result string is ASCII. - Simple 1:1 conversion. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, count, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + count = tmpdst_len; + } + else + { + /* The result string is ASCII. + Simple 1:1 conversion. */ # if USE_SNPRINTF - /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a - no-op conversion, in-place on the array starting - at (result + length). */ - if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) -# endif - { - const TCHAR_T *tmpsrc; - DCHAR_T *tmpdst; - size_t n; + /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a + no-op conversion, in-place on the array starting + at (result + length). */ + if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) +# endif + { + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t n; # if USE_SNPRINTF - if (result == resultbuf) - { - tmpsrc = (TCHAR_T *) (result + length); - /* ENSURE_ALLOCATION will not move tmpsrc - (because it's part of resultbuf). */ - ENSURE_ALLOCATION (xsum (length, count)); - } - else - { - /* ENSURE_ALLOCATION will move the array - (because it uses realloc(). */ - ENSURE_ALLOCATION (xsum (length, count)); - tmpsrc = (TCHAR_T *) (result + length); - } + if (result == resultbuf) + { + tmpsrc = (TCHAR_T *) (result + length); + /* ENSURE_ALLOCATION will not move tmpsrc + (because it's part of resultbuf). */ + ENSURE_ALLOCATION (xsum (length, count)); + } + else + { + /* ENSURE_ALLOCATION will move the array + (because it uses realloc(). */ + ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = (TCHAR_T *) (result + length); + } # else - tmpsrc = tmp; - ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = tmp; + ENSURE_ALLOCATION (xsum (length, count)); # endif - tmpdst = result + length; - /* Copy backwards, because of overlapping. */ - tmpsrc += count; - tmpdst += count; - for (n = count; n > 0; n--) - *--tmpdst = (unsigned char) *--tmpsrc; - } - } + tmpdst = result + length; + /* Copy backwards, because of overlapping. */ + tmpsrc += count; + tmpdst += count; + for (n = count; n > 0; n--) + *--tmpdst = (unsigned char) *--tmpsrc; + } + } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF - /* Make room for the result. */ - if (count > allocated - length) - { - /* Need at least count elements. But allocate - proportionally. */ - size_t n = - xmax (xsum (length, count), xtimes (allocated, 2)); - - ENSURE_ALLOCATION (n); - } -#endif - - /* Here count <= allocated - length. */ - - /* Perform padding. */ -#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION - if (pad_ourselves && has_width) - { - size_t w; + /* Make room for the result. */ + if (count > allocated - length) + { + /* Need at least count elements. But allocate + proportionally. */ + size_t n = + xmax (xsum (length, count), xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + } +#endif + + /* Here count <= allocated - length. */ + + /* Perform padding. */ +#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + if (pad_ourselves && has_width) + { + size_t w; # if ENABLE_UNISTDIO - /* Outside POSIX, it's preferrable to compare the width - against the number of _characters_ of the converted - value. */ - w = DCHAR_MBSNLEN (result + length, count); + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, count); # else - /* The width is compared against the number of _bytes_ - of the converted value, says POSIX. */ - w = count; -# endif - if (w < width) - { - size_t pad = width - w; + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = count; +# endif + if (w < width) + { + size_t pad = width - w; + + /* Make room for the result. */ + if (xsum (count, pad) > allocated - length) + { + /* Need at least count + pad elements. But + allocate proportionally. */ + size_t n = + xmax (xsum3 (length, count, pad), + xtimes (allocated, 2)); + # if USE_SNPRINTF - /* Make room for the result. */ - if (xsum (count, pad) > allocated - length) - { - /* Need at least count + pad elements. But - allocate proportionally. */ - size_t n = - xmax (xsum3 (length, count, pad), - xtimes (allocated, 2)); - - length += count; - ENSURE_ALLOCATION (n); - length -= count; - } - /* Here count + pad <= allocated - length. */ + length += count; + ENSURE_ALLOCATION (n); + length -= count; +# else + ENSURE_ALLOCATION (n); # endif - { + } + /* Here count + pad <= allocated - length. */ + + { # if !DCHAR_IS_TCHAR || USE_SNPRINTF - DCHAR_T * const rp = result + length; + DCHAR_T * const rp = result + length; # else - DCHAR_T * const rp = tmp; + DCHAR_T * const rp = tmp; # endif - DCHAR_T *p = rp + count; - DCHAR_T *end = p + pad; -# if NEED_PRINTF_FLAG_ZERO - DCHAR_T *pad_ptr; -# if !DCHAR_IS_TCHAR - if (dp->conversion == 'c' - || dp->conversion == 's') - /* No zero-padding for string directives. */ - pad_ptr = NULL; - else -# endif - { - pad_ptr = (*rp == '-' ? rp + 1 : rp); - /* No zero-padding of "inf" and "nan". */ - if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') - || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) - pad_ptr = NULL; - } -# endif - /* The generated string now extends from rp to p, - with the zero padding insertion point being at - pad_ptr. */ - - count = count + pad; /* = end - rp */ - - if (flags & FLAG_LEFT) - { - /* Pad with spaces on the right. */ - for (; pad > 0; pad--) - *p++ = ' '; - } -# if NEED_PRINTF_FLAG_ZERO - else if ((flags & FLAG_ZERO) && pad_ptr != NULL) - { - /* Pad with zeroes. */ - DCHAR_T *q = end; - - while (p > pad_ptr) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = '0'; - } -# endif - else - { - /* Pad with spaces on the left. */ - DCHAR_T *q = end; - - while (p > rp) - *--q = *--p; - for (; pad > 0; pad--) - *p++ = ' '; - } - } - } - } -#endif - -#if DCHAR_IS_TCHAR && !USE_SNPRINTF - if (count >= tmp_length) - /* tmp_length was incorrectly calculated - fix the - code above! */ - abort (); + DCHAR_T *p = rp + count; + DCHAR_T *end = p + pad; + DCHAR_T *pad_ptr; +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO + if (dp->conversion == 'c' + || dp->conversion == 's') + /* No zero-padding for string directives. */ + pad_ptr = NULL; + else +# endif + { + pad_ptr = (*rp == '-' ? rp + 1 : rp); + /* No zero-padding of "inf" and "nan". */ + if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') + || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) + pad_ptr = NULL; + } + /* The generated string now extends from rp to p, + with the zero padding insertion point being at + pad_ptr. */ + + count = count + pad; /* = end - rp */ + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > rp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + } + } + } #endif - /* Here still count <= allocated - length. */ + /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF - /* The snprintf() result did fit. */ + /* The snprintf() result did fit. */ #else - /* Append the sprintf() result. */ - memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + /* Append the sprintf() result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF - if (tmp != tmpbuf) - free (tmp); + if (tmp != tmpbuf) + free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F - if (dp->conversion == 'F') - { - /* Convert the %f result to upper case for %F. */ - DCHAR_T *rp = result + length; - size_t rc; - for (rc = count; rc > 0; rc--, rp++) - if (*rp >= 'a' && *rp <= 'z') - *rp = *rp - 'a' + 'A'; - } -#endif - - length += count; - break; - } - } - } + if (dp->conversion == 'F') + { + /* Convert the %f result to upper case for %F. */ + DCHAR_T *rp = result + length; + size_t rc; + for (rc = count; rc > 0; rc--, rp++) + if (*rp >= 'a' && *rp <= 'z') + *rp = *rp - 'a' + 'A'; + } +#endif + + length += count; + break; + } +#undef pad_ourselves +#undef prec_ourselves + } + } } /* Add the final NUL. */ @@ -4623,12 +5510,12 @@ if (result != resultbuf && length + 1 < allocated) { - /* Shrink the allocated memory if possible. */ - DCHAR_T *memory; + /* Shrink the allocated memory if possible. */ + DCHAR_T *memory; - memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); - if (memory != NULL) - result = memory; + memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); + if (memory != NULL) + result = memory; } if (buf_malloced != NULL) @@ -4641,6 +5528,7 @@ not have this limitation. */ return result; +#if USE_SNPRINTF overflow: if (!(result == resultbuf || result == NULL)) free (result); @@ -4649,6 +5537,7 @@ CLEANUP (); errno = EOVERFLOW; return NULL; +#endif out_of_memory: if (!(result == resultbuf || result == NULL)) @@ -4662,9 +5551,11 @@ } } +#undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF +#undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES diff -Nru gettext-0.17/gettext-tools/gnulib-lib/vasnprintf.h gettext-0.18.1.1/gettext-tools/gnulib-lib/vasnprintf.h --- gettext-0.17/gettext-tools/gnulib-lib/vasnprintf.h 2007-10-26 00:52:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/vasnprintf.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,9 +1,9 @@ /* vsprintf with automatic memory allocation. - Copyright (C) 2002-2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -25,15 +25,14 @@ #include #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/vasprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/vasprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/vasprintf.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/vasprintf.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,182 +1,51 @@ -/* Like vsprintf but provides a pointer to malloc'd storage, which must - be freed by the caller. - Copyright (C) 1994, 1998-1999, 2000-2003, 2006-2007 Free Software Foundation, Inc. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +/* Formatted output to strings. + Copyright (C) 1999, 2002, 2006-2010 Free Software Foundation, Inc. -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ -#include +#ifdef IN_LIBASPRINTF +# include "vasprintf.h" +#else +# include +#endif -#include -#include +#include +#include #include -#include -#include -#ifdef TEST -size_t global_total_width; -#endif +#include "vasnprintf.h" -static int -int_vasprintf (char **result, const char *format, va_list args) +int +vasprintf (char **resultp, const char *format, va_list args) { - const char *p = format; - /* Add one to make sure that it is never zero, which might cause malloc - to return NULL. */ - size_t total_width = strlen (format) + 1; - va_list ap; + size_t length; + char *result = vasnprintf (NULL, &length, format, args); + if (result == NULL) + return -1; - va_copy (ap, args); - while (*p != '\0') + if (length > INT_MAX) { - if (*p++ == '%') - { - while (strchr ("-+ #0", *p)) - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - if (*p == '.') - { - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - } - while (strchr ("hlLjtz", *p)) - ++p; - /* Should be big enough for any format specifier except %s - and floats. */ - total_width += 30; - switch (*p) - { - case 'd': - case 'i': - case 'o': - case 'u': - case 'x': - case 'X': - case 'c': - (void) va_arg (ap, int); - break; - case 'f': - case 'F': - { - double arg = va_arg (ap, double); - if (arg >= 1.0 || arg <= -1.0) - /* Since an ieee double can have an exponent of 307, we'll - make the buffer wide enough to cover the gross case. */ - total_width += 307; - } - break; - case 'e': - case 'E': - case 'g': - case 'G': - (void) va_arg (ap, double); - break; - case 's': - total_width += strlen (va_arg (ap, char *)); - break; - case 'p': - case 'n': - (void) va_arg (ap, char *); - break; - } - p++; - } + free (result); + errno = EOVERFLOW; + return -1; } - va_end (ap); - -#ifdef TEST - global_total_width = total_width; -#endif - *result = malloc (total_width); - if (*result != NULL) - return vsprintf (*result, format, args); - else - return -1; -} - -int -vasprintf (char **result, const char *format, va_list args) -{ - return int_vasprintf (result, format, args); -} - -int -asprintf (char **result, const char *format, ...) -{ - va_list args; - int done; - - va_start (args, format); - done = vasprintf (result, format, args); - va_end (args); - - return done; -} - -/* ========================= test program ========================= */ - -#ifdef TEST - -#include -void -checkit (const char* format, ...) -{ - va_list args; - char *result; - - va_start (args, format); - vasprintf (&result, format, args); - va_end (args); - if (strlen (result) < global_total_width) - printf ("PASS: "); - else - printf ("FAIL: "); - printf ("%lu %s\n", (unsigned long) global_total_width, result); + *resultp = result; + /* Return the number of resulting bytes, excluding the trailing NUL. */ + return length; } - -int -main () -{ - checkit ("%d", 0x12345678); - checkit ("%200d", 5); - checkit ("%.300d", 6); - checkit ("%100.150d", 7); - checkit ("%s", "jjjjjjjjjiiiiiiiiiiiiiiioooooooooooooooooppppppppppppaa\n\ -777777777777777777333333333333366666666666622222222222777777777777733333"); - checkit ("%f%s%d%s", 1.0, "foo", 77, "asdjffffffffffffffiiiiiiiiiiixxxxx"); - checkit ("%e", DBL_MIN); - checkit ("%e", DBL_MAX); - checkit ("%.400f", DBL_MIN); - checkit ("%f", DBL_MAX); - checkit ("%g", DBL_MIN); - checkit ("%g", DBL_MAX); - return 0; -} - -#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/verify.h gettext-0.18.1.1/gettext-tools/gnulib-lib/verify.h --- gettext-0.17/gettext-tools/gnulib-lib/verify.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/verify.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,6 +1,6 @@ /* Compile-time assert-like macros. - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -69,13 +69,14 @@ if the entity names are not disambiguated. A workaround is to attach the current line number to the entity name: - #define GL_CONCAT0(x, y) x##y - #define GL_CONCAT(x, y) GL_CONCAT0 (x, y) - extern struct {...} * GL_CONCAT(dummy,__LINE__); + #define _GL_CONCAT0(x, y) x##y + #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) + extern struct {...} * _GL_CONCAT (dummy, __LINE__); But this has the problem that two invocations of verify from within the same macro would collide, since the __LINE__ value - would be the same for both invocations. + would be the same for both invocations. (The GCC __COUNTER__ + macro solves this problem, but is not portable.) A solution is to use the sizeof operator. It yields a number, getting rid of the identity of the type. Declarations like @@ -103,20 +104,41 @@ extern int (*dummy (void)) [sizeof (struct {...})]; + * GCC warns about duplicate declarations of the dummy function if + -Wredundant_decls is used. GCC 4.3 and later have a builtin + __COUNTER__ macro that can let us generate unique identifiers for + each dummy function, to suppress this warning. + * This implementation exploits the fact that GCC does not warn about the last declaration mentioned above. If a future version of GCC introduces a warning for this, the problem could be worked around - by using code specialized to GCC, e.g.,: + by using code specialized to GCC, just as __COUNTER__ is already + being used if available. #if 4 <= __GNUC__ - # define verify(R) \ - extern int (* verify_function__ (void)) \ - [__builtin_constant_p (R) && (R) ? 1 : -1] + # define verify(R) [another version to keep GCC happy] #endif * In C++, any struct definition inside sizeof is invalid. Use a template type to work around the problem. */ +/* Concatenate two preprocessor tokens. */ +# define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) +# define _GL_CONCAT0(x, y) x##y + +/* _GL_COUNTER is an integer, preferably one that changes each time we + use it. Use __COUNTER__ if it works, falling back on __LINE__ + otherwise. __LINE__ isn't perfect, but it's better than a + constant. */ +# if defined __COUNTER__ && __COUNTER__ != __COUNTER__ +# define _GL_COUNTER __COUNTER__ +# else +# define _GL_COUNTER __LINE__ +# endif + +/* Generate a symbol with the given prefix, making it unique if + possible. */ +# define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER) /* Verify requirement R at compile-time, as an integer constant expression. Return 1. */ @@ -135,6 +157,7 @@ /* Verify requirement R at compile-time, as a declaration without a trailing ';'. */ -# define verify(R) extern int (* verify_function__ (void)) [verify_true (R)] +# define verify(R) \ + extern int (* _GL_GENSYM (verify_function) (void)) [verify_true (R)] #endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/vsnprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/vsnprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/vsnprintf.c 2007-10-26 00:52:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/vsnprintf.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,10 +1,10 @@ /* Formatted output to strings. - Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2006-2010 Free Software Foundation, Inc. Written by Simon Josefsson and Yoann Vandoorselaere . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -31,11 +31,6 @@ #include "vasnprintf.h" -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - /* Print formatted output to string STR. Similar to vsprintf, but additional length SIZE limit how much is written into STR. Returns string length of formatted string (which may be larger than SIZE). @@ -57,11 +52,11 @@ if (output != str) { if (size) - { - size_t pruned_len = (len < size ? len : size - 1); - memcpy (str, output, pruned_len); - str[pruned_len] = '\0'; - } + { + size_t pruned_len = (len < size ? len : size - 1); + memcpy (str, output, pruned_len); + str[pruned_len] = '\0'; + } free (output); } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/w32spawn.h gettext-0.18.1.1/gettext-tools/gnulib-lib/w32spawn.h --- gettext-0.17/gettext-tools/gnulib-lib/w32spawn.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/w32spawn.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Auxiliary functions for the creation of subprocesses. Native Woe32 API. - Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -24,34 +24,70 @@ #include #include +#include #include +#include "cloexec.h" #include "xalloc.h" -/* Duplicates a file handle, making the copy uninheritable. */ +/* Duplicates a file handle, making the copy uninheritable. + Returns -1 for a file handle that is equivalent to closed. */ static int dup_noinherit (int fd) { - HANDLE curr_process = GetCurrentProcess (); - HANDLE old_handle = (HANDLE) _get_osfhandle (fd); - HANDLE new_handle; - int nfd; - - if (!DuplicateHandle (curr_process, /* SourceProcessHandle */ - old_handle, /* SourceHandle */ - curr_process, /* TargetProcessHandle */ - (PHANDLE) &new_handle, /* TargetHandle */ - (DWORD) 0, /* DesiredAccess */ - FALSE, /* InheritHandle */ - DUPLICATE_SAME_ACCESS)) /* Options */ - error (EXIT_FAILURE, 0, _("DuplicateHandle failed with error code 0x%08x"), - GetLastError ()); - - nfd = _open_osfhandle ((long) new_handle, O_BINARY); - if (nfd < 0) + fd = dup_cloexec (fd); + if (fd < 0 && errno == EMFILE) error (EXIT_FAILURE, errno, _("_open_osfhandle failed")); - return nfd; + return fd; +} + +/* Returns a file descriptor equivalent to FD, except that the resulting file + descriptor is none of STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO. + FD must be open and non-inheritable. The result will be non-inheritable as + well. + If FD < 0, FD itself is returned. */ +static int +fd_safer_noinherit (int fd) +{ + if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) + { + /* The recursion depth is at most 3. */ + int nfd = fd_safer_noinherit (dup_noinherit (fd)); + int saved_errno = errno; + close (fd); + errno = saved_errno; + return nfd; + } + return fd; +} + +/* Duplicates a file handle, making the copy uninheritable and ensuring the + result is none of STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO. + Returns -1 for a file handle that is equivalent to closed. */ +static int +dup_safer_noinherit (int fd) +{ + return fd_safer_noinherit (dup_noinherit (fd)); +} + +/* Undoes the effect of TEMPFD = dup_safer_noinherit (ORIGFD); */ +static void +undup_safer_noinherit (int tempfd, int origfd) +{ + if (tempfd >= 0) + { + if (dup2 (tempfd, origfd) < 0) + error (EXIT_FAILURE, errno, _("cannot restore fd %d: dup2 failed"), + origfd); + close (tempfd); + } + else + { + /* origfd was closed or open to no handle at all. Set it to a closed + state. This is (nearly) equivalent to the original state. */ + close (origfd); + } } /* Prepares an argument vector before calling spawn(). @@ -91,7 +127,15 @@ ; /* Allocate new argument vector. */ - new_argv = XNMALLOC (argc + 1, char *); + new_argv = XNMALLOC (1 + argc + 1, char *); + + /* Add an element upfront that can be used when argv[0] turns out to be a + script, not a program. + On Unix, this would be "/bin/sh". On native Windows, "sh" is actually + "sh.exe". We have to omit the directory part and rely on the search in + PATH, because the mingw "mount points" are not visible inside Win32 + CreateProcess(). */ + *new_argv++ = "sh.exe"; /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) @@ -99,68 +143,68 @@ const char *string = argv[i]; if (string[0] == '\0') - new_argv[i] = xstrdup ("\"\""); + new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) - { - bool quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); - size_t length; - unsigned int backslashes; - const char *s; - char *quoted_string; - char *p; - - length = 0; - backslashes = 0; - if (quote_around) - length++; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - length += backslashes + 1; - length++; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - length += backslashes + 1; - - quoted_string = (char *) xmalloc (length + 1); - - p = quoted_string; - backslashes = 0; - if (quote_around) - *p++ = '"'; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - { - unsigned int j; - for (j = backslashes + 1; j > 0; j--) - *p++ = '\\'; - } - *p++ = c; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - { - unsigned int j; - for (j = backslashes; j > 0; j--) - *p++ = '\\'; - *p++ = '"'; - } - *p = '\0'; + { + bool quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = (char *) xmalloc (length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; - new_argv[i] = quoted_string; - } + new_argv[i] = quoted_string; + } else - new_argv[i] = (char *) string; + new_argv[i] = (char *) string; } new_argv[argc] = NULL; diff -Nru gettext-0.17/gettext-tools/gnulib-lib/wait-process.c gettext-0.18.1.1/gettext-tools/gnulib-lib/wait-process.c --- gettext-0.17/gettext-tools/gnulib-lib/wait-process.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/wait-process.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Waiting for a subprocess to finish. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -27,65 +27,7 @@ #include #include - -#if defined _MSC_VER || defined __MINGW32__ - -/* Native Woe32 API. */ -#include -#define waitpid(pid,statusp,options) _cwait (statusp, pid, WAIT_CHILD) -#define WAIT_T int -#define WTERMSIG(x) ((x) & 0xff) /* or: SIGABRT ?? */ -#define WCOREDUMP(x) 0 -#define WEXITSTATUS(x) (((x) >> 8) & 0xff) /* or: (x) ?? */ -#define WIFSIGNALED(x) (WTERMSIG (x) != 0) /* or: ((x) == 3) ?? */ -#define WIFEXITED(x) (WTERMSIG (x) == 0) /* or: ((x) != 3) ?? */ -#define WIFSTOPPED(x) 0 - -#else - -/* Unix API. */ #include -/* On Linux, WEXITSTATUS are bits 15..8 and WTERMSIG are bits 7..0, while - BeOS uses the contrary. Therefore we use the abstract macros. */ -#if HAVE_UNION_WAIT -# define WAIT_T union wait -# ifndef WTERMSIG -# define WTERMSIG(x) ((x).w_termsig) -# endif -# ifndef WCOREDUMP -# define WCOREDUMP(x) ((x).w_coredump) -# endif -# ifndef WEXITSTATUS -# define WEXITSTATUS(x) ((x).w_retcode) -# endif -#else -# define WAIT_T int -# ifndef WTERMSIG -# define WTERMSIG(x) ((x) & 0x7f) -# endif -# ifndef WCOREDUMP -# define WCOREDUMP(x) ((x) & 0x80) -# endif -# ifndef WEXITSTATUS -# define WEXITSTATUS(x) (((x) >> 8) & 0xff) -# endif -#endif -/* For valid x, exactly one of WIFSIGNALED(x), WIFEXITED(x), WIFSTOPPED(x) - is true. */ -#ifndef WIFSIGNALED -# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f) -#endif -#ifndef WIFEXITED -# define WIFEXITED(x) (WTERMSIG (x) == 0) -#endif -#ifndef WIFSTOPPED -# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f) -#endif -/* Note that portable applications may access - WTERMSIG(x) only if WIFSIGNALED(x) is true, and - WEXITSTATUS(x) only if WIFEXITED(x) is true. */ - -#endif #include "error.h" #include "fatal-signal.h" @@ -146,17 +88,17 @@ /* Get the last registered slave. */ size_t n = slaves_count; if (n == 0) - break; + break; n--; slaves_count = n; /* Skip unused entries in the slaves array. */ if (slaves[n].used) - { - pid_t slave = slaves[n].child; + { + pid_t slave = slaves[n].child; - /* Kill the slave. */ - kill (slave, TERMINATOR); - } + /* Kill the slave. */ + kill (slave, TERMINATOR); + } } } @@ -182,42 +124,42 @@ for (; s < s_end; s++) if (!s->used) - { - /* The two uses of 'volatile' in the slaves_entry_t type above - (and ISO C 99 section 5.1.2.3.(5)) ensure that we mark the - entry as used only after the child pid has been written to the - memory location s->child. */ - s->child = child; - s->used = 1; - return; - } + { + /* The two uses of 'volatile' in the slaves_entry_t type above + (and ISO C 99 section 5.1.2.3.(5)) ensure that we mark the + entry as used only after the child pid has been written to the + memory location s->child. */ + s->child = child; + s->used = 1; + return; + } } if (slaves_count == slaves_allocated) { /* Extend the slaves array. Note that we cannot use xrealloc(), - because then the cleanup_slaves() function could access an already - deallocated array. */ + because then the cleanup_slaves() function could access an already + deallocated array. */ slaves_entry_t *old_slaves = slaves; size_t new_slaves_allocated = 2 * slaves_allocated; slaves_entry_t *new_slaves = - (slaves_entry_t *) - malloc (new_slaves_allocated * sizeof (slaves_entry_t)); + (slaves_entry_t *) + malloc (new_slaves_allocated * sizeof (slaves_entry_t)); if (new_slaves == NULL) - { - /* xalloc_die() will call exit() which will invoke cleanup_slaves(). - Additionally we need to kill child, because it's not yet among - the slaves list. */ - kill (child, TERMINATOR); - xalloc_die (); - } + { + /* xalloc_die() will call exit() which will invoke cleanup_slaves(). + Additionally we need to kill child, because it's not yet among + the slaves list. */ + kill (child, TERMINATOR); + xalloc_die (); + } memcpy (new_slaves, old_slaves, - slaves_allocated * sizeof (slaves_entry_t)); + slaves_allocated * sizeof (slaves_entry_t)); slaves = new_slaves; slaves_allocated = new_slaves_allocated; /* Now we can free the old slaves array. */ if (old_slaves != static_slaves) - free (old_slaves); + free (old_slaves); } /* The three uses of 'volatile' in the types above (and ISO C 99 section 5.1.2.3.(5)) ensure that we increment the slaves_count only after the @@ -249,13 +191,14 @@ return 127. */ int wait_subprocess (pid_t child, const char *progname, - bool ignore_sigpipe, bool null_stderr, - bool slave_process, bool exit_on_error) + bool ignore_sigpipe, bool null_stderr, + bool slave_process, bool exit_on_error, + int *termsigp) { #if HAVE_WAITID && defined WNOWAIT && 0 - /* Commented out because waitid() with WNOWAIT doesn't work: On Solaris 7 - and OSF/1 4.0, it returns -1 and sets errno = ECHILD, and on HP-UX 10.20 - it just hangs. */ + /* Commented out because waitid() without WEXITED and with WNOWAIT doesn't + work: On Solaris 7 and OSF/1 4.0, it returns -1 and sets errno = ECHILD, + and on HP-UX 10.20 it just hangs. */ /* Use of waitid() with WNOWAIT avoids a race condition: If slave_process is true, and this process sleeps a very long time between the return from waitpid() and the execution of unregister_slave_subprocess(), and @@ -263,26 +206,30 @@ before unregister_slave_subprocess() - this process gets a fatal signal, it would kill the other totally unrelated process. */ siginfo_t info; + + if (termsigp != NULL) + *termsigp = 0; for (;;) { - if (waitid (P_PID, child, &info, slave_process ? WNOWAIT : 0) < 0) - { + if (waitid (P_PID, child, &info, WEXITED | (slave_process ? WNOWAIT : 0)) + < 0) + { # ifdef EINTR - if (errno == EINTR) - continue; + if (errno == EINTR) + continue; # endif - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess"), progname); - return 127; - } + if (exit_on_error || !null_stderr) + error (exit_on_error ? EXIT_FAILURE : 0, errno, + _("%s subprocess"), progname); + return 127; + } /* info.si_code is set to one of CLD_EXITED, CLD_KILLED, CLD_DUMPED, - CLD_TRAPPED, CLD_STOPPED, CLD_CONTINUED. Loop until the program - terminates. */ + CLD_TRAPPED, CLD_STOPPED, CLD_CONTINUED. Loop until the program + terminates. */ if (info.si_code == CLD_EXITED - || info.si_code == CLD_KILLED || info.si_code == CLD_DUMPED) - break; + || info.si_code == CLD_KILLED || info.si_code == CLD_DUMPED) + break; } /* The child process has exited or was signalled. */ @@ -290,87 +237,92 @@ if (slave_process) { /* Unregister the child from the list of slave subprocesses, so that - later, when we exit, we don't kill a totally unrelated process which - may have acquired the same pid. */ + later, when we exit, we don't kill a totally unrelated process which + may have acquired the same pid. */ unregister_slave_subprocess (child); /* Now remove the zombie from the process list. */ for (;;) - { - if (waitid (P_PID, child, &info, 0) < 0) - { + { + if (waitid (P_PID, child, &info, WEXITED) < 0) + { # ifdef EINTR - if (errno == EINTR) - continue; + if (errno == EINTR) + continue; # endif - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess"), progname); - return 127; - } - break; - } + if (exit_on_error || !null_stderr) + error (exit_on_error ? EXIT_FAILURE : 0, errno, + _("%s subprocess"), progname); + return 127; + } + break; + } } switch (info.si_code) { case CLD_KILLED: case CLD_DUMPED: + if (termsigp != NULL) + *termsigp = info.si_status; /* TODO: or info.si_signo? */ # ifdef SIGPIPE if (info.si_status == SIGPIPE && ignore_sigpipe) - return 0; + return 0; # endif - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, 0, - _("%s subprocess got fatal signal %d"), - progname, info.si_status); + if (exit_on_error || (!null_stderr && termsigp == NULL)) + error (exit_on_error ? EXIT_FAILURE : 0, 0, + _("%s subprocess got fatal signal %d"), + progname, info.si_status); return 127; case CLD_EXITED: if (info.si_status == 127) - { - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, 0, - _("%s subprocess failed"), progname); - return 127; - } + { + if (exit_on_error || !null_stderr) + error (exit_on_error ? EXIT_FAILURE : 0, 0, + _("%s subprocess failed"), progname); + return 127; + } return info.si_status; default: abort (); } #else /* waitpid() is just as portable as wait() nowadays. */ - WAIT_T status; + int status; - *(int *) &status = 0; + if (termsigp != NULL) + *termsigp = 0; + status = 0; for (;;) { int result = waitpid (child, &status, 0); if (result != child) - { + { # ifdef EINTR - if (errno == EINTR) - continue; + if (errno == EINTR) + continue; # endif # if 0 /* defined ECHILD */ - if (errno == ECHILD) - { - /* Child process nonexistent?! Assume it terminated - successfully. */ - *(int *) &status = 0; - break; - } -# endif - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, errno, - _("%s subprocess"), progname); - return 127; - } + if (errno == ECHILD) + { + /* Child process nonexistent?! Assume it terminated + successfully. */ + status = 0; + break; + } +# endif + if (exit_on_error || !null_stderr) + error (exit_on_error ? EXIT_FAILURE : 0, errno, + _("%s subprocess"), progname); + return 127; + } /* One of WIFSIGNALED (status), WIFEXITED (status), WIFSTOPPED (status) - must always be true. Loop until the program terminates. */ + must always be true, since we did not specify WCONTINUED in the + waitpid() call. Loop until the program terminates. */ if (!WIFSTOPPED (status)) - break; + break; } /* The child process has exited or was signalled. */ @@ -383,21 +335,25 @@ if (WIFSIGNALED (status)) { + if (termsigp != NULL) + *termsigp = WTERMSIG (status); # ifdef SIGPIPE if (WTERMSIG (status) == SIGPIPE && ignore_sigpipe) - return 0; + return 0; # endif - if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, 0, - _("%s subprocess got fatal signal %d"), - progname, (int) WTERMSIG (status)); + if (exit_on_error || (!null_stderr && termsigp == NULL)) + error (exit_on_error ? EXIT_FAILURE : 0, 0, + _("%s subprocess got fatal signal %d"), + progname, (int) WTERMSIG (status)); return 127; } + if (!WIFEXITED (status)) + abort (); if (WEXITSTATUS (status) == 127) { if (exit_on_error || !null_stderr) - error (exit_on_error ? EXIT_FAILURE : 0, 0, - _("%s subprocess failed"), progname); + error (exit_on_error ? EXIT_FAILURE : 0, 0, + _("%s subprocess failed"), progname); return 127; } return WEXITSTATUS (status); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/wait-process.h gettext-0.18.1.1/gettext-tools/gnulib-lib/wait-process.h --- gettext-0.17/gettext-tools/gnulib-lib/wait-process.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/wait-process.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Waiting for a subprocess to finish. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -47,10 +47,17 @@ - slave_process should be set to true if the process has been launched as a slave process. - If exit_on_error is true, any error will cause the main process to exit - with an error status. */ + with an error status. + - If termsigp is not NULL: *termsig will be set to the signal that + terminated the subprocess (if supported by the platform: not on native + Windows platforms), otherwise 0, and the error message about the signal + that terminated the subprocess will be omitted. + Prerequisites: The signal handler for SIGCHLD should not be set to SIG_IGN, + otherwise this function will not work. */ extern int wait_subprocess (pid_t child, const char *progname, - bool ignore_sigpipe, bool null_stderr, - bool slave_process, bool exit_on_error); + bool ignore_sigpipe, bool null_stderr, + bool slave_process, bool exit_on_error, + int *termsigp); /* Register a subprocess as being a slave process. This means that the subprocess will be terminated when its creator receives a catchable fatal diff -Nru gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/wchar.in.h --- gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h 2007-10-03 22:24:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/wchar.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that have issues. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,15 +26,42 @@ * the declaration of wcwidth(). */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H +/* Special invocation convention: + - Inside glibc and uClibc header files. + - On HP-UX 11.00 we have a sequence of nested includes + -> -> , and the latter includes , + once indirectly -> -> -> + and once directly. In both situations 'wint_t' is not yet defined, + therefore we cannot provide the function overrides; instead include only + the system's . + - On IRIX 6.5, similarly, we have an include -> , and + the latter includes . But here, we have no way to detect whether + is completely included or is still being included. */ + +#@INCLUDE_NEXT@ @NEXT_WCHAR_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_WCHAR_H +#define _GL_ALREADY_INCLUDING_WCHAR_H + /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be - included before . */ -#include -#include -#include + included before . + But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif /* Include the original if it exists. Some builds of uClibc lack it. */ @@ -43,40 +70,359 @@ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ #endif +#undef _GL_ALREADY_INCLUDING_WCHAR_H + #ifndef _GL_WCHAR_H #define _GL_WCHAR_H -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Define wint_t and WEOF. (Also done in wctype.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif +#else +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif +#endif + + +/* Override mbstate_t if it is too small. + On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for + implementing mbrtowc for encodings like UTF-8. */ +#if !(@HAVE_MBSINIT@ && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ +typedef int rpl_mbstate_t; +# undef mbstate_t +# define mbstate_t rpl_mbstate_t +# define GNULIB_defined_mbstate_t 1 +#endif + + +/* Convert a single-byte character to a wide character. */ +#if @GNULIB_BTOWC@ +# if @REPLACE_BTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef btowc +# define btowc rpl_btowc +# endif +_GL_FUNCDECL_RPL (btowc, wint_t, (int c)); +_GL_CXXALIAS_RPL (btowc, wint_t, (int c)); +# else +# if !@HAVE_BTOWC@ +_GL_FUNCDECL_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIAS_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIASWARN (btowc); +#elif defined GNULIB_POSIXCHECK +# undef btowc +# if HAVE_RAW_DECL_BTOWC +_GL_WARN_ON_USE (btowc, "btowc is unportable - " + "use gnulib module btowc for portability"); +# endif +#endif + -#ifdef __cplusplus -extern "C" { +/* Convert a wide character to a single-byte character. */ +#if @GNULIB_WCTOB@ +# if @REPLACE_WCTOB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wctob +# define wctob rpl_wctob +# endif +_GL_FUNCDECL_RPL (wctob, int, (wint_t wc)); +_GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); +# else +# if !defined wctob && !@HAVE_DECL_WCTOB@ +/* wctob is provided by gnulib, or wctob exists but is not declared. */ +_GL_FUNCDECL_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIASWARN (wctob); +#elif defined GNULIB_POSIXCHECK +# undef wctob +# if HAVE_RAW_DECL_WCTOB +_GL_WARN_ON_USE (wctob, "wctob is unportable - " + "use gnulib module wctob for portability"); +# endif +#endif + + +/* Test whether *PS is in the initial state. */ +#if @GNULIB_MBSINIT@ +# if @REPLACE_MBSINIT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsinit +# define mbsinit rpl_mbsinit +# endif +_GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps)); +# else +# if !@HAVE_MBSINIT@ +_GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsinit); +#elif defined GNULIB_POSIXCHECK +# undef mbsinit +# if HAVE_RAW_DECL_MBSINIT +_GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - " + "use gnulib module mbsinit for portability"); +# endif +#endif + + +/* Convert a multibyte character to a wide character. */ +#if @GNULIB_MBRTOWC@ +# if @REPLACE_MBRTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrtowc +# define mbrtowc rpl_mbrtowc +# endif +_GL_FUNCDECL_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRTOWC@ +_GL_FUNCDECL_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrtowc); +#elif defined GNULIB_POSIXCHECK +# undef mbrtowc +# if HAVE_RAW_DECL_MBRTOWC +_GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - " + "use gnulib module mbrtowc for portability"); +# endif +#endif + + +/* Recognize a multibyte character. */ +#if @GNULIB_MBRLEN@ +# if @REPLACE_MBRLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrlen +# define mbrlen rpl_mbrlen +# endif +_GL_FUNCDECL_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRLEN@ +_GL_FUNCDECL_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrlen); +#elif defined GNULIB_POSIXCHECK +# undef mbrlen +# if HAVE_RAW_DECL_MBRLEN +_GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - " + "use gnulib module mbrlen for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSRTOWCS@ +# if @REPLACE_MBSRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsrtowcs +# define mbsrtowcs rpl_mbsrtowcs +# endif +_GL_FUNCDECL_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSRTOWCS@ +_GL_FUNCDECL_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsrtowcs +# if HAVE_RAW_DECL_MBSRTOWCS +_GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - " + "use gnulib module mbsrtowcs for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSNRTOWCS@ +# if @REPLACE_MBSNRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsnrtowcs +# define mbsnrtowcs rpl_mbsnrtowcs +# endif +_GL_FUNCDECL_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSNRTOWCS@ +_GL_FUNCDECL_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsnrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsnrtowcs +# if HAVE_RAW_DECL_MBSNRTOWCS +_GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - " + "use gnulib module mbsnrtowcs for portability"); +# endif +#endif + + +/* Convert a wide character to a multibyte character. */ +#if @GNULIB_WCRTOMB@ +# if @REPLACE_WCRTOMB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcrtomb +# define wcrtomb rpl_wcrtomb +# endif +_GL_FUNCDECL_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +_GL_CXXALIAS_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# else +# if !@HAVE_WCRTOMB@ +_GL_FUNCDECL_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcrtomb); +#elif defined GNULIB_POSIXCHECK +# undef wcrtomb +# if HAVE_RAW_DECL_WCRTOMB +_GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - " + "use gnulib module wcrtomb for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSRTOMBS@ +# if @REPLACE_WCSRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsrtombs +# define wcsrtombs rpl_wcsrtombs +# endif +_GL_FUNCDECL_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSRTOMBS@ +_GL_FUNCDECL_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsrtombs +# if HAVE_RAW_DECL_WCSRTOMBS +_GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - " + "use gnulib module wcsrtombs for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSNRTOMBS@ +# if @REPLACE_WCSNRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsnrtombs +# define wcsnrtombs rpl_wcsnrtombs +# endif +_GL_FUNCDECL_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSNRTOMBS@ +_GL_FUNCDECL_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsnrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsnrtombs +# if HAVE_RAW_DECL_WCSNRTOMBS +_GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - " + "use gnulib module wcsnrtombs for portability"); +# endif #endif /* Return the number of screen columns needed for WC. */ #if @GNULIB_WCWIDTH@ # if @REPLACE_WCWIDTH@ -# undef wcwidth -# define wcwidth rpl_wcwidth -extern int wcwidth (wchar_t); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcwidth +# define wcwidth rpl_wcwidth +# endif +_GL_FUNCDECL_RPL (wcwidth, int, (wchar_t)); +_GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); # else -# if !defined wcwidth && !@HAVE_DECL_WCWIDTH@ +# if !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ -extern int wcwidth (int /* actually wchar_t */); +_GL_FUNCDECL_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIASWARN (wcwidth); #elif defined GNULIB_POSIXCHECK # undef wcwidth -# define wcwidth(w) \ - (GL_LINK_WARNING ("wcwidth is unportable - " \ - "use gnulib module wcwidth for portability"), \ - wcwidth (w)) +# if HAVE_RAW_DECL_WCWIDTH +_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " + "use gnulib module wcwidth for portability"); +# endif #endif -#ifdef __cplusplus -} -#endif - #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/wctype.in.h gettext-0.18.1.1/gettext-tools/gnulib-lib/wctype.in.h --- gettext-0.17/gettext-tools/gnulib-lib/wctype.in.h 2007-10-03 22:24:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/wctype.in.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that lack it. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -28,6 +28,10 @@ #ifndef _GL_WCTYPE_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if @HAVE_WINT_T@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before @@ -50,112 +54,324 @@ #ifndef _GL_WCTYPE_H #define _GL_WCTYPE_H -#if @HAVE_WINT_T@ -typedef wint_t __wctype_wint_t; +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define wint_t and WEOF. (Also done in wchar.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif #else -typedef int __wctype_wint_t; +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif #endif + /* FreeBSD 4.4 to 4.11 has but lacks the functions. - Assume all 12 functions are implemented the same way, or not at all. */ -#if ! @HAVE_ISWCNTRL@ + Linux libc5 has and the functions but they are broken. + Assume all 11 functions (all isw* except iswblank) are implemented the + same way, or not at all. */ +#if ! @HAVE_ISWCNTRL@ || @REPLACE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an undefined variable _ctmp_ and to macros like _P, and they refer to system functions like _iswctype that are not in the standard C library. Rather than try to get ancient buggy implementations like this to work, just disable them. */ -# undef iswalnum -# undef iswalpha -# undef iswblank -# undef iswcntrl -# undef iswdigit -# undef iswgraph -# undef iswlower -# undef iswprint -# undef iswpunct -# undef iswspace -# undef iswupper -# undef iswxdigit - -static inline int -iswalnum (__wctype_wint_t wc) +# undef iswalnum +# undef iswalpha +# undef iswblank +# undef iswcntrl +# undef iswdigit +# undef iswgraph +# undef iswlower +# undef iswprint +# undef iswpunct +# undef iswspace +# undef iswupper +# undef iswxdigit +# undef towlower +# undef towupper + +/* Linux libc5 has and the functions but they are broken. */ +# if @REPLACE_ISWCNTRL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iswalnum rpl_iswalnum +# define iswalpha rpl_iswalpha +# define iswblank rpl_iswblank +# define iswcntrl rpl_iswcntrl +# define iswdigit rpl_iswdigit +# define iswgraph rpl_iswgraph +# define iswlower rpl_iswlower +# define iswprint rpl_iswprint +# define iswpunct rpl_iswpunct +# define iswspace rpl_iswspace +# define iswupper rpl_iswupper +# define iswxdigit rpl_iswxdigit +# define towlower rpl_towlower +# define towupper rpl_towupper +# endif +# endif + +static inline int +# if @REPLACE_ISWCNTRL@ +rpl_iswalnum +# else +iswalnum +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); } static inline int -iswalpha (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswalpha +# else +iswalpha +# endif + (wint_t wc) { return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'; } static inline int -iswblank (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswblank +# else +iswblank +# endif + (wint_t wc) { return wc == ' ' || wc == '\t'; } static inline int -iswcntrl (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswcntrl +# else +iswcntrl +# endif + (wint_t wc) { return (wc & ~0x1f) == 0 || wc == 0x7f; } static inline int -iswdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswdigit +# else +iswdigit +# endif + (wint_t wc) { return wc >= '0' && wc <= '9'; } static inline int -iswgraph (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswgraph +# else +iswgraph +# endif + (wint_t wc) { return wc >= '!' && wc <= '~'; } static inline int -iswlower (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswlower +# else +iswlower +# endif + (wint_t wc) { return wc >= 'a' && wc <= 'z'; } static inline int -iswprint (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswprint +# else +iswprint +# endif + (wint_t wc) { return wc >= ' ' && wc <= '~'; } static inline int -iswpunct (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswpunct +# else +iswpunct +# endif + (wint_t wc) { return (wc >= '!' && wc <= '~' - && !((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); + && !((wc >= '0' && wc <= '9') + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); } static inline int -iswspace (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswspace +# else +iswspace +# endif + (wint_t wc) { return (wc == ' ' || wc == '\t' - || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); + || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); } static inline int -iswupper (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswupper +# else +iswupper +# endif + (wint_t wc) { return wc >= 'A' && wc <= 'Z'; } static inline int -iswxdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswxdigit +# else +iswxdigit +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towlower +# else +towlower +# endif + (wint_t wc) +{ + return (wc >= 'A' && wc <= 'Z' ? wc - 'A' + 'a' : wc); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towupper +# else +towupper +# endif + (wint_t wc) +{ + return (wc >= 'a' && wc <= 'z' ? wc - 'a' + 'A' : wc); } -# endif /* ! HAVE_ISWCNTRL */ +#elif ! @HAVE_ISWBLANK@ +/* Only the iswblank function is missing. */ + +static inline int +iswblank (wint_t wc) +{ + return wc == ' ' || wc == '\t'; +} + +#endif + +#if defined __MINGW32__ + +/* On native Windows, wchar_t is uint16_t, and wint_t is uint32_t. + The functions towlower and towupper are implemented in the MSVCRT library + to take a wchar_t argument and return a wchar_t result. mingw declares + these functions to take a wint_t argument and return a wint_t result. + This means that: + 1. When the user passes an argument outside the range 0x0000..0xFFFF, the + function will look only at the lower 16 bits. This is allowed according + to POSIX. + 2. The return value is returned in the lower 16 bits of the result register. + The upper 16 bits are random: whatever happened to be in that part of the + result register. We need to fix this by adding a zero-extend from + wchar_t to wint_t after the call. */ + +static inline wint_t +rpl_towlower (wint_t wc) +{ + return (wint_t) (wchar_t) towlower (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towlower rpl_towlower +# endif + +static inline wint_t +rpl_towupper (wint_t wc) +{ + return (wint_t) (wchar_t) towupper (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towupper rpl_towupper +# endif + +#endif /* __MINGW32__ */ + +#if @REPLACE_ISWCNTRL@ +_GL_CXXALIAS_RPL (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswxdigit, int, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswxdigit, int, (wint_t wc)); +#endif +_GL_CXXALIASWARN (iswalnum); +_GL_CXXALIASWARN (iswalpha); +_GL_CXXALIASWARN (iswblank); +_GL_CXXALIASWARN (iswcntrl); +_GL_CXXALIASWARN (iswdigit); +_GL_CXXALIASWARN (iswgraph); +_GL_CXXALIASWARN (iswlower); +_GL_CXXALIASWARN (iswprint); +_GL_CXXALIASWARN (iswpunct); +_GL_CXXALIASWARN (iswspace); +_GL_CXXALIASWARN (iswupper); +_GL_CXXALIASWARN (iswxdigit); + +#if @REPLACE_ISWCNTRL@ || defined __MINGW32__ +_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_SYS (towupper, wint_t, (wint_t wc)); +#endif +_GL_CXXALIASWARN (towlower); +_GL_CXXALIASWARN (towupper); + #endif /* _GL_WCTYPE_H */ #endif /* _GL_WCTYPE_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/wcwidth.c gettext-0.18.1.1/gettext-tools/gnulib-lib/wcwidth.c --- gettext-0.17/gettext-tools/gnulib-lib/wcwidth.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/wcwidth.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a character. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,17 +26,16 @@ #include "streq.h" #include "uniwidth.h" -#undef wcwidth - int -rpl_wcwidth (wchar_t wc) +wcwidth (wchar_t wc) +#undef wcwidth { /* In UTF-8 locales, use a Unicode aware width function. */ const char *encoding = locale_charset (); if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) { /* We assume that in a UTF-8 locale, a wide character is the same as a - Unicode character. */ + Unicode character. */ return uc_width (wc, encoding); } else diff -Nru gettext-0.17/gettext-tools/gnulib-lib/write.c gettext-0.18.1.1/gettext-tools/gnulib-lib/write.c --- gettext-0.17/gettext-tools/gnulib-lib/write.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/write.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,62 @@ +/* POSIX compatible write() function. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Replace this function only if module 'sigpipe' is requested. */ +#if GNULIB_SIGPIPE + +/* On native Windows platforms, SIGPIPE does not exist. When write() is + called on a pipe with no readers, WriteFile() fails with error + GetLastError() = ERROR_NO_DATA, and write() in consequence fails with + error EINVAL. */ + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +# include +# include +# include + +# define WIN32_LEAN_AND_MEAN /* avoid including junk */ +# include + +ssize_t +rpl_write (int fd, const void *buf, size_t count) +#undef write +{ + ssize_t ret = write (fd, buf, count); + + if (ret < 0) + { + if (GetLastError () == ERROR_NO_DATA + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE) + { + /* Try to raise signal SIGPIPE. */ + raise (SIGPIPE); + /* If it is currently blocked or ignored, change errno from EINVAL + to EPIPE. */ + errno = EPIPE; + } + } + return ret; +} + +# endif +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xalloc.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xalloc.h --- gettext-0.17/gettext-tools/gnulib-lib/xalloc.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xalloc.h 2010-06-06 12:49:58.000000000 +0000 @@ -84,8 +84,8 @@ known at compile-time. */ # define XNMALLOC(N,T) \ ((T *) (sizeof (T) == 1 \ - ? xmalloc (N) \ - : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) + ? xmalloc (N) \ + : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) static inline void * xnboundedmalloc (size_t n, size_t bound, size_t s) { diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xasprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xasprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/xasprintf.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xasprintf.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,6 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 1999, 2002-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2004, 2006, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xconcat-filename.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xconcat-filename.c --- gettext-0.17/gettext-tools/gnulib-lib/xconcat-filename.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xconcat-filename.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,41 @@ +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 3 of the License, or any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include + +/* Specification. */ +#include "concat-filename.h" + +#include "xalloc.h" + +/* Concatenate a directory filename, a relative filename and an optional + suffix. The directory may end with the directory separator. The second + argument may not start with the directory separator (it is relative). + Return a freshly allocated filename. */ +char * +xconcatenated_filename (const char *directory, const char *filename, + const char *suffix) +{ + char *result; + + result = concatenated_filename (directory, filename, suffix); + if (result == NULL) + xalloc_die (); + + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xerror.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xerror.c --- gettext-0.17/gettext-tools/gnulib-lib/xerror.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xerror.c 2010-06-06 12:49:58.000000000 +0000 @@ -49,10 +49,10 @@ { width = 0; if (error_with_progname) - { - fprintf (stderr, "%s: ", program_name); - width += mbswidth (program_name, 0) + 2; - } + { + fprintf (stderr, "%s: ", program_name); + width += mbswidth (program_name, 0) + 2; + } fputs (prefix, stderr); width += mbswidth (prefix, 0); free (prefix); @@ -64,16 +64,16 @@ const char *np; for (i = width; i > 0; i--) - putc (' ', stderr); + putc (' ', stderr); after_indent: np = strchr (cp, '\n'); if (np == NULL || np[1] == '\0') - { - fputs (cp, stderr); - break; - } + { + fputs (cp, stderr); + break; + } np++; fwrite (cp, 1, np - cp, stderr); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xmalloca.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xmalloca.c --- gettext-0.17/gettext-tools/gnulib-lib/xmalloca.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xmalloca.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -22,6 +22,8 @@ #include "xalloc.h" +#if HAVE_ALLOCA + void * xmmalloca (size_t n) { @@ -32,3 +34,5 @@ xalloc_die (); return p; } + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xmalloca.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xmalloca.h --- gettext-0.17/gettext-tools/gnulib-lib/xmalloca.h 2007-10-17 22:35:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xmalloca.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -19,6 +19,7 @@ #define _XMALLOCA_H #include "malloca.h" +#include "xalloc.h" #ifdef __cplusplus @@ -31,7 +32,7 @@ the function returns. Upon failure, it exits with an error message. */ #if HAVE_ALLOCA # define xmalloca(N) \ - ((N) < 4032 - sa_increment \ + ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : xmmalloca (N)) extern void * xmmalloca (size_t n); @@ -40,9 +41,19 @@ xmalloc (N) #endif -/* Maybe we should also define a variant - xnmalloca (size_t n, size_t s) - behaves like xmalloca (n * s) - If this would be useful in your application. please speak up. */ +/* xnmalloca(N,S) is an overflow-safe variant of xmalloca (N * S). + It allocates an array of N objects, each with S bytes of memory, + on the stack. S must be positive and N must be nonnegative. + The array must be freed using freea() before the function returns. + Upon failure, it exits with an error message. */ +#if HAVE_ALLOCA +/* Rely on xmalloca (SIZE_MAX) calling xalloc_die (). */ +# define xnmalloca(n, s) \ + xmalloca (xalloc_oversized ((n), (s)) ? (size_t) (-1) : (n) * (s)) +#else +# define xnmalloca(n, s) \ + xnmalloc ((n), (s)) +#endif #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xreadlink.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xreadlink.c --- gettext-0.17/gettext-tools/gnulib-lib/xreadlink.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xreadlink.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,6 +1,6 @@ /* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage - Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xreadlink.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xreadlink.h --- gettext-0.17/gettext-tools/gnulib-lib/xreadlink.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xreadlink.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,6 +1,7 @@ /* Reading symbolic links without size limitation. - Copyright (C) 2001, 2003, 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2001, 2003-2004, 2007, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,3 +21,7 @@ #include extern char *xreadlink (char const *filename); + +#if GNULIB_XREADLINKAT +extern char *xreadlinkat (int fd, char const *filename); +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xsetenv.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xsetenv.c --- gettext-0.17/gettext-tools/gnulib-lib/xsetenv.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xsetenv.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Setting environment variables, with out-of-memory checking. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,7 +21,6 @@ #include -#include "setenv.h" #include "error.h" #include "gettext.h" diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xsetenv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xsetenv.h --- gettext-0.17/gettext-tools/gnulib-lib/xsetenv.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xsetenv.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Setting environment variables, with out-of-memory checking. - Copyright (C) 2001-2002, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ along with this program. If not, see . */ /* Get unsetenv(). It can be used without error checking. */ -#include "setenv.h" +#include #ifdef __cplusplus extern "C" { diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xsize.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xsize.h --- gettext-0.17/gettext-tools/gnulib-lib/xsize.h 2007-01-27 03:22:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xsize.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,10 +1,10 @@ /* xsize.h -- Checked size_t computations. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2008, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -94,7 +94,7 @@ /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xstriconv.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconv.c --- gettext-0.17/gettext-tools/gnulib-lib/xstriconv.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconv.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible. This program is free software: you can redistribute it and/or modify @@ -30,7 +30,7 @@ int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { int retval = mem_cd_iconv (src, srclen, cd, resultp, lengthp); diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xstriconveh.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconveh.c --- gettext-0.17/gettext-tools/gnulib-lib/xstriconveh.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconveh.c 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,86 @@ +/* Charset conversion with out-of-memory checking. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "xstriconveh.h" + +#include + +#include "striconveh.h" +#include "xalloc.h" + + +#if HAVE_ICONV + +int +xmem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + int retval = + mem_cd_iconveh (src, srclen, cd, handler, offsets, resultp, lengthp); + + if (retval < 0 && errno == ENOMEM) + xalloc_die (); + return retval; +} + +char * +xstr_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler) +{ + char *result = str_cd_iconveh (src, cd, handler); + + if (result == NULL && errno == ENOMEM) + xalloc_die (); + return result; +} + +#endif + +int +xmem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + int retval = + mem_iconveh (src, srclen, from_codeset, to_codeset, handler, offsets, + resultp, lengthp); + + if (retval < 0 && errno == ENOMEM) + xalloc_die (); + return retval; +} + +char * +xstr_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler) +{ + char *result = str_iconveh (src, from_codeset, to_codeset, handler); + + if (result == NULL && errno == ENOMEM) + xalloc_die (); + return result; +} diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xstriconveh.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconveh.h --- gettext-0.17/gettext-tools/gnulib-lib/xstriconveh.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconveh.h 2010-05-24 09:42:48.000000000 +0000 @@ -0,0 +1,115 @@ +/* Charset conversion with out-of-memory checking. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible and Simon Josefsson. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _XSTRICONVEH_H +#define _XSTRICONVEH_H + +#include + +/* Get the 'enum iconv_ilseq_handler' and iconveh_t types, and the + iconveh_open, iconveh_close declarations. */ +#include "striconveh.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +#if HAVE_ICONV + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Upon memory allocation failure, report the error and exit. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + xmem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + Both the "from" and the "to" encoding must use a single NUL byte at the end + of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Upon memory allocation failure, report the error and exit. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + xstr_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler); + +#endif + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Upon memory allocation failure, report the error and exit. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + xmem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + Both the "from" and the "to" encoding must use a single NUL byte at the + end of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Upon memory allocation failure, report the error and exit. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + xstr_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _XSTRICONVEH_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xstriconv.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconv.h --- gettext-0.17/gettext-tools/gnulib-lib/xstriconv.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xstriconv.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software: you can redistribute it and/or modify @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -67,7 +67,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * xstr_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xvasprintf.c gettext-0.18.1.1/gettext-tools/gnulib-lib/xvasprintf.c --- gettext-0.17/gettext-tools/gnulib-lib/xvasprintf.c 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xvasprintf.c 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 1999, 2002-2004, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,11 +29,6 @@ /* Checked size_t computations. */ #include "xsize.h" -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - static inline char * xstrcat (size_t argcount, va_list args) { @@ -91,23 +86,23 @@ for (f = format;;) { - if (*f == '\0') - /* Recognized the special case of string concatenation. */ - return xstrcat (argcount, args); - if (*f != '%') - break; - f++; - if (*f != 's') - break; - f++; - argcount++; + if (*f == '\0') + /* Recognized the special case of string concatenation. */ + return xstrcat (argcount, args); + if (*f != '%') + break; + f++; + if (*f != 's') + break; + f++; + argcount++; } } if (vasprintf (&result, format, args) < 0) { if (errno == ENOMEM) - xalloc_die (); + xalloc_die (); return NULL; } diff -Nru gettext-0.17/gettext-tools/gnulib-lib/xvasprintf.h gettext-0.18.1.1/gettext-tools/gnulib-lib/xvasprintf.h --- gettext-0.17/gettext-tools/gnulib-lib/xvasprintf.h 2007-10-07 20:29:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-lib/xvasprintf.h 2010-05-24 09:42:48.000000000 +0000 @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,15 +21,14 @@ #include #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif diff -Nru gettext-0.17/gettext-tools/gnulib-m4/00gnulib.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/00gnulib.m4 --- gettext-0.17/gettext-tools/gnulib-m4/00gnulib.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/00gnulib.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,30 @@ +# 00gnulib.m4 serial 2 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This file must be named something that sorts before all other +dnl gnulib-provided .m4 files. It is needed until such time as we can +dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics. + +# AC_DEFUN_ONCE([NAME], VALUE) +# ---------------------------- +# Define NAME to expand to VALUE on the first use (whether by direct +# expansion, or by AC_REQUIRE), and to nothing on all subsequent uses. +# Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This +# definition is slower than the version in Autoconf 2.64, because it +# can only use interfaces that existed since 2.59; but it achieves the +# same effect. Quoting is necessary to avoid confusing Automake. +m4_version_prereq([2.63.263], [], +[m4_define([AC][_DEFUN_ONCE], + [AC][_DEFUN([$1], + [AC_REQUIRE([_gl_DEFUN_ONCE([$1])], + [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl +[AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])]) + +# gl_00GNULIB +# ----------- +# Witness macro that this file has been included. Needed to force +# Automake to include this file prior to all other gnulib .m4 files. +AC_DEFUN([gl_00GNULIB]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/absolute-header.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/absolute-header.m4 --- gettext-0.17/gettext-tools/gnulib-m4/absolute-header.m4 2007-06-19 00:26:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/absolute-header.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# absolute-header.m4 serial 7 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# absolute-header.m4 serial 12 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,7 +8,7 @@ # gl_ABSOLUTE_HEADER(HEADER1 HEADER2 ...) # --------------------------------------- -# Find the absolute name of a header file, assuming the header exists. +# Find the absolute name of a header file, testing first if the header exists. # If the header were sys/inttypes.h, this macro would define # ABSOLUTE_SYS_INTTYPES_H to the `""' quoted absolute name of sys/inttypes.h # in config.h @@ -16,34 +16,62 @@ # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use `""', not `<>', so that the /// cannot be confused with a C99 comment. +# Note: This macro assumes that the header file is not empty after +# preprocessing, i.e. it does not only define preprocessor macros but also +# provides some type/enum definitions or function/variable declarations. AC_DEFUN([gl_ABSOLUTE_HEADER], -[AC_LANG_PREPROC_REQUIRE()dnl -AC_FOREACH([gl_HEADER_NAME], [$1], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_LANG_PREPROC_REQUIRE()dnl +m4_foreach_w([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_absolute_header], - [gl_cv_absolute_]m4_quote(m4_defn([gl_HEADER_NAME])))dnl - AC_CACHE_CHECK([absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>], - m4_quote(m4_defn([gl_absolute_header])), + [gl_cv_absolute_]m4_defn([gl_HEADER_NAME]))dnl + AC_CACHE_CHECK([absolute name of <]m4_defn([gl_HEADER_NAME])[>], + m4_defn([gl_absolute_header]), [AS_VAR_PUSHDEF([ac_header_exists], - [ac_cv_header_]m4_quote(m4_defn([gl_HEADER_NAME])))dnl - AC_CHECK_HEADERS_ONCE(m4_quote(m4_defn([gl_HEADER_NAME])))dnl + [ac_cv_header_]m4_defn([gl_HEADER_NAME]))dnl + AC_CHECK_HEADERS_ONCE(m4_defn([gl_HEADER_NAME]))dnl if test AS_VAR_GET(ac_header_exists) = yes; then - AC_LANG_CONFTEST([AC_LANG_SOURCE([[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]])]) -dnl eval is necessary to expand ac_cpp. -dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell. - AS_VAR_SET(gl_absolute_header, -[`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | -sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{ - s#.*"\(.*/]m4_quote(m4_defn([gl_HEADER_NAME]))[\)".*#\1# - s#^/[^/]#//&# - p - q -}'`]) + gl_ABSOLUTE_HEADER_ONE(m4_defn([gl_HEADER_NAME])) fi AS_VAR_POPDEF([ac_header_exists])dnl ])dnl - AC_DEFINE_UNQUOTED(AS_TR_CPP([ABSOLUTE_]m4_quote(m4_defn([gl_HEADER_NAME]))), + AC_DEFINE_UNQUOTED(AS_TR_CPP([ABSOLUTE_]m4_defn([gl_HEADER_NAME])), ["AS_VAR_GET(gl_absolute_header)"], - [Define this to an absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>.]) + [Define this to an absolute name of <]m4_defn([gl_HEADER_NAME])[>.]) AS_VAR_POPDEF([gl_absolute_header])dnl ])dnl ])# gl_ABSOLUTE_HEADER + +# gl_ABSOLUTE_HEADER_ONE(HEADER) +# ------------------------------ +# Like gl_ABSOLUTE_HEADER, except that: +# - it assumes that the header exists, +# - it uses the current CPPFLAGS, +# - it does not cache the result, +# - it is silent. +AC_DEFUN([gl_ABSOLUTE_HEADER_ONE], +[ + AC_LANG_CONFTEST([AC_LANG_SOURCE([[#include <]]m4_dquote([$1])[[>]])]) + dnl AIX "xlc -E" and "cc -E" omit #line directives for header files + dnl that contain only a #include of other header files and no + dnl non-comment tokens of their own. This leads to a failure to + dnl detect the absolute name of , , + dnl and others. The workaround is to force preservation of comments + dnl through option -C. This ensures all necessary #line directives + dnl are present. GCC supports option -C as well. + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + dnl eval is necessary to expand gl_absname_cpp. + dnl Ultrix and Pyramid sh refuse to redirect output of eval, + dnl so use subshell. + AS_VAR_SET([gl_cv_absolute_]AS_TR_SH([[$1]]), +[`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | +sed -n '\#/$1#{ + s#.*"\(.*/$1\)".*#\1# + s#^/[^/]#//&# + p + q +}'`]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/acl.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/acl.m4 --- gettext-0.17/gettext-tools/gnulib-m4/acl.m4 2007-05-13 16:57:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/acl.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,56 +1,131 @@ # acl.m4 - check for access control list (ACL) primitives +# serial 9 -# Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2004-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert and Jim Meyering. -AC_DEFUN([AC_FUNC_ACL], +AC_DEFUN([gl_FUNC_ACL], [ - AC_LIBOBJ([acl]) - AC_LIBOBJ([file-has-acl]) - - dnl Prerequisites of lib/acl.c. - AC_CHECK_HEADERS(sys/acl.h) - AC_CHECK_FUNCS(acl) - ac_save_LIBS="$LIBS" - AC_SEARCH_LIBS(acl_get_file, acl, - [test "$ac_cv_search_acl_get_file" = "none required" || - LIB_ACL=$ac_cv_search_acl_get_file]) - AC_SUBST(LIB_ACL) - AC_CHECK_HEADERS(acl/libacl.h) - AC_CHECK_FUNCS(acl_get_file acl_get_fd acl_set_file acl_set_fd \ - acl_free acl_from_mode acl_from_text \ - acl_delete_def_file acl_extended_file) + AC_ARG_ENABLE([acl], + AS_HELP_STRING([--disable-acl], [do not support ACLs]), + , [enable_acl=auto]) + + LIB_ACL= + use_acl=0 + AC_REQUIRE([AC_C_INLINE]) + if test "x$enable_acl" != "xno"; then + dnl On all platforms, the ACL related API is declared in . + AC_CHECK_HEADERS([sys/acl.h]) if test $ac_cv_header_sys_acl_h = yes; then - use_acl=1 - if test $ac_cv_func_acl_get_file = yes; then - # If we detect the acl_get_file bug, disable ACL support altogether. - gl_ACL_GET_FILE( , [use_acl=0]) + ac_save_LIBS=$LIBS + + dnl Test for POSIX-draft-like API (Linux, FreeBSD, MacOS X, IRIX, Tru64). + dnl -lacl is needed on Linux, -lpacl is needed on OSF/1. + if test $use_acl = 0; then + AC_SEARCH_LIBS([acl_get_file], [acl pacl], + [if test "$ac_cv_search_acl_get_file" != "none required"; then + LIB_ACL=$ac_cv_search_acl_get_file + fi + AC_CHECK_FUNCS( + [acl_get_file acl_get_fd acl_set_file acl_set_fd \ + acl_free acl_from_mode acl_from_text \ + acl_delete_def_file acl_extended_file \ + acl_delete_fd_np acl_delete_file_np \ + acl_copy_ext_native acl_create_entry_np \ + acl_to_short_text acl_free_text]) + # If the acl_get_file bug is detected, don't enable the ACL support. + gl_ACL_GET_FILE([use_acl=1], []) + if test $use_acl = 1; then + dnl On Linux, additional API is declared in . + AC_CHECK_HEADERS([acl/libacl.h]) + AC_REPLACE_FUNCS([acl_entries]) + AC_CACHE_CHECK([for ACL_FIRST_ENTRY], + [gl_cv_acl_ACL_FIRST_ENTRY], + [AC_COMPILE_IFELSE( +[[#include +#include +int type = ACL_FIRST_ENTRY;]], + [gl_cv_acl_ACL_FIRST_ENTRY=yes], + [gl_cv_acl_ACL_FIRST_ENTRY=no])]) + if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then + AC_DEFINE([HAVE_ACL_FIRST_ENTRY], [1], + [Define to 1 if the constant ACL_FIRST_ENTRY exists.]) + fi + dnl On MacOS X, other types of ACLs are supported. + AC_CACHE_CHECK([for ACL_TYPE_EXTENDED], + [gl_cv_acl_ACL_TYPE_EXTENDED], + [AC_COMPILE_IFELSE( +[[#include +#include +int type = ACL_TYPE_EXTENDED;]], + [gl_cv_acl_ACL_TYPE_EXTENDED=yes], + [gl_cv_acl_ACL_TYPE_EXTENDED=no])]) + if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then + AC_DEFINE([HAVE_ACL_TYPE_EXTENDED], [1], + [Define to 1 if the ACL type ACL_TYPE_EXTENDED exists.]) + fi + else + LIB_ACL= + fi + ]) + fi + + dnl Test for Solaris API (Solaris, Cygwin). + if test $use_acl = 0; then + AC_CHECK_FUNCS([acl]) + if test $ac_cv_func_acl = yes; then + AC_SEARCH_LIBS([acl_trivial], [sec], + [if test "$ac_cv_search_acl_trivial" != "none required"; then + LIB_ACL=$ac_cv_search_acl_trivial + fi + ]) + AC_CHECK_FUNCS([acl_trivial]) + use_acl=1 + fi + fi + + dnl Test for HP-UX API. + if test $use_acl = 0 || test "$ac_cv_func_acl" = yes; then + AC_CHECK_FUNCS([getacl]) + if test $ac_cv_func_getacl = yes; then + use_acl=1 + fi fi - else - use_acl=0 + + dnl Test for AIX API (AIX 5.3 or newer). + if test $use_acl = 0; then + AC_CHECK_FUNCS([aclx_get]) + if test $ac_cv_func_aclx_get = yes; then + use_acl=1 + fi + fi + + dnl Test for older AIX API. + if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then + AC_CHECK_FUNCS([statacl]) + if test $ac_cv_func_statacl = yes; then + use_acl=1 + fi + fi + + LIBS=$ac_save_LIBS fi - if test $use_acl = 1 && - test $ac_cv_func_acl_get_file = yes && - test $ac_cv_func_acl_free = yes; then - AC_REPLACE_FUNCS([acl_entries]) + if test "x$enable_acl$use_acl" = "xyes0"; then + AC_MSG_ERROR([ACLs enabled but support not detected]) + elif test "x$enable_acl$use_acl" = "xauto0"; then + AC_MSG_WARN([libacl development library was not found or not usable.]) + AC_MSG_WARN([AC_PACKAGE_NAME will be built without ACL support.]) fi - LIBS="$ac_save_LIBS" - if test $use_acl = 1; then - ac_save_LIBS="$LIBS" - AC_SEARCH_LIBS([acl_trivial], [sec], - [AC_DEFINE([HAVE_ACL_TRIVIAL], 1, - [Define to 1 if you have the `acl_trivial' function.]) - test "$ac_cv_search_acl_trivial" = "none required" || - LIB_ACL_TRIVIAL="$ac_cv_search_acl_trivial"]) - AC_SUBST([LIB_ACL_TRIVIAL]) - LIBS="$ac_save_LIBS" fi - AC_DEFINE_UNQUOTED(USE_ACL, $use_acl, - [Define if you want access control list support.]) + AC_SUBST([LIB_ACL]) + AC_DEFINE_UNQUOTED([USE_ACL], [$use_acl], + [Define to nonzero if you want access control list support.]) + USE_ACL=$use_acl + AC_SUBST([USE_ACL]) ]) # gl_ACL_GET_FILE(IF-WORKS, IF-NOT) @@ -61,15 +136,15 @@ # but sets errno = ENOENT for an existing file or directory. AC_DEFUN([gl_ACL_GET_FILE], [ - AC_CACHE_CHECK([for working acl_get_file], gl_cv_func_working_acl_get_file, + AC_CACHE_CHECK([for working acl_get_file], [gl_cv_func_working_acl_get_file], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( - [[#include - #include - #include - ]], - [[return !! (!acl_get_file (".", ACL_TYPE_ACCESS) - && errno == ENOENT);]])], + [[#include + #include + #include + ]], + [[return !! (!acl_get_file (".", ACL_TYPE_ACCESS) + && errno == ENOENT);]])], [gl_cv_func_working_acl_get_file=yes], [gl_cv_func_working_acl_get_file=no], [gl_cv_func_working_acl_get_file=cross-compiling])]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/argmatch.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/argmatch.m4 --- gettext-0.17/gettext-tools/gnulib-m4/argmatch.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/argmatch.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ #serial 3 -dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/asm-underscore.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/asm-underscore.m4 --- gettext-0.17/gettext-tools/gnulib-m4/asm-underscore.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/asm-underscore.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,48 @@ +# asm-underscore.m4 serial 1 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. Based on as-underscore.m4 in GNU clisp. + +# gl_ASM_SYMBOL_PREFIX +# Tests for the prefix of C symbols at the assembly language level and the +# linker level. This prefix is either an underscore or empty. Defines the +# C macro USER_LABEL_PREFIX to this prefix, and sets ASM_SYMBOL_PREFIX to +# a stringified variant of this prefix. + +AC_DEFUN([gl_ASM_SYMBOL_PREFIX], +[ + dnl We don't use GCC's __USER_LABEL_PREFIX__ here, because + dnl 1. It works only for GCC. + dnl 2. It is incorrectly defined on some platforms, in some GCC versions. + AC_CACHE_CHECK( + [whether C symbols are prefixed with underscore at the linker level], + [gl_cv_prog_as_underscore], + [cat > conftest.c </dev/null 2>&1 + if grep _foo conftest.s >/dev/null ; then + gl_cv_prog_as_underscore=yes + else + gl_cv_prog_as_underscore=no + fi + rm -f conftest* + ]) + if test $gl_cv_prog_as_underscore = yes; then + USER_LABEL_PREFIX=_ + else + USER_LABEL_PREFIX= + fi + AC_DEFINE_UNQUOTED([USER_LABEL_PREFIX], [$USER_LABEL_PREFIX], + [Define to the prefix of C symbols at the assembler and linker level, + either an underscore or empty.]) + ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"' + AC_SUBST([ASM_SYMBOL_PREFIX]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/atexit.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/atexit.m4 --- gettext-0.17/gettext-tools/gnulib-m4/atexit.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/atexit.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,12 +1,12 @@ -# atexit.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# atexit.m4 serial 3 +dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_ATEXIT], [ - AC_REPLACE_FUNCS(atexit) + AC_REPLACE_FUNCS([atexit]) if test $ac_cv_func_atexit = no; then gl_PREREQ_ATEXIT fi diff -Nru gettext-0.17/gettext-tools/gnulib-m4/bison-i18n.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/bison-i18n.m4 --- gettext-0.17/gettext-tools/gnulib-m4/bison-i18n.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/bison-i18n.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# bison-i18n.m4 serial 2 -dnl Copyright (C) 2005-2006 Free Software Foundation, Inc. +# bison-i18n.m4 serial 3 +dnl Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -42,7 +42,7 @@ fi fi if test $BISON_USE_NLS = yes; then - AC_DEFINE([YYENABLE_NLS], 1, + AC_DEFINE([YYENABLE_NLS], [1], [Define to 1 to internationalize bison runtime messages.]) fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/byteswap.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/byteswap.m4 --- gettext-0.17/gettext-tools/gnulib-m4/byteswap.m4 2007-10-03 22:24:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/byteswap.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# byteswap.m4 serial 2 -dnl Copyright (C) 2005, 2007 Free Software Foundation, Inc. +# byteswap.m4 serial 3 +dnl Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -14,5 +14,5 @@ ], [ BYTESWAP_H='byteswap.h' ]) - AC_SUBST(BYTESWAP_H) + AC_SUBST([BYTESWAP_H]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/canonicalize-lgpl.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/canonicalize-lgpl.m4 --- gettext-0.17/gettext-tools/gnulib-m4/canonicalize-lgpl.m4 2007-03-04 00:08:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/canonicalize-lgpl.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,35 +0,0 @@ -# canonicalize-lgpl.m4 serial 4 -dnl Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_CANONICALIZE_LGPL], -[ - dnl Do this replacement check manually because the file name is shorter - dnl than the function name. - AC_CHECK_DECLS_ONCE(canonicalize_file_name) - AC_CHECK_FUNCS_ONCE(canonicalize_file_name) - if test $ac_cv_func_canonicalize_file_name = no; then - AC_LIBOBJ(canonicalize-lgpl) - AC_DEFINE([realpath], [rpl_realpath], - [Define to a replacement function name for realpath().]) - gl_PREREQ_CANONICALIZE_LGPL - fi -]) - -# Like gl_CANONICALIZE_LGPL, except prepare for separate compilation -# (no AC_LIBOBJ). -AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE], -[ - AC_CHECK_DECLS_ONCE(canonicalize_file_name) - AC_CHECK_FUNCS_ONCE(canonicalize_file_name) - gl_PREREQ_CANONICALIZE_LGPL -]) - -# Prerequisites of lib/canonicalize-lgpl.c. -AC_DEFUN([gl_PREREQ_CANONICALIZE_LGPL], -[ - AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h) - AC_CHECK_FUNCS_ONCE(getcwd readlink) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/canonicalize.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/canonicalize.m4 --- gettext-0.17/gettext-tools/gnulib-m4/canonicalize.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/canonicalize.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,81 @@ +# canonicalize.m4 serial 16 + +dnl Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. + +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Provides canonicalize_file_name and canonicalize_filename_mode, but does +# not provide or fix realpath. +AC_DEFUN([gl_FUNC_CANONICALIZE_FILENAME_MODE], +[ + AC_LIBOBJ([canonicalize]) + + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([canonicalize_file_name]) + AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) + AC_REQUIRE([gl_FUNC_REALPATH_WORKS]) + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_CANONICALIZE_FILE_NAME=1 + fi +]) + +# Provides canonicalize_file_name and realpath. +AC_DEFUN([gl_CANONICALIZE_LGPL], +[ + AC_REQUIRE([gl_CANONICALIZE_LGPL_SEPARATE]) + if test $ac_cv_func_canonicalize_file_name = no; then + HAVE_CANONICALIZE_FILE_NAME=0 + AC_LIBOBJ([canonicalize-lgpl]) + if test $ac_cv_func_realpath = no; then + HAVE_REALPATH=0 + elif test "$gl_cv_func_realpath_works" != yes; then + REPLACE_REALPATH=1 + fi + elif test "$gl_cv_func_realpath_works" != yes; then + AC_LIBOBJ([canonicalize-lgpl]) + REPLACE_REALPATH=1 + REPLACE_CANONICALIZE_FILE_NAME=1 + fi +]) + +# Like gl_CANONICALIZE_LGPL, except prepare for separate compilation +# (no AC_LIBOBJ). +AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE], +[ + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS_ONCE([canonicalize_file_name getcwd readlink]) + AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) + AC_REQUIRE([gl_FUNC_REALPATH_WORKS]) + AC_CHECK_HEADERS_ONCE([sys/param.h]) +]) + +# Check whether realpath works. Assume that if a platform has both +# realpath and canonicalize_file_name, but the former is broken, then +# so is the latter. +AC_DEFUN([gl_FUNC_REALPATH_WORKS], +[ + AC_CHECK_FUNCS_ONCE([realpath]) + AC_CACHE_CHECK([whether realpath works], [gl_cv_func_realpath_works], [ + touch conftest.a + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([[ + #include + ]], [[ + char *name1 = realpath ("conftest.a", NULL); + char *name2 = realpath ("conftest.b/../conftest.a", NULL); + char *name3 = realpath ("conftest.a/", NULL); + return !(name1 && *name1 == '/' && !name2 && !name3); + ]]) + ], [gl_cv_func_realpath_works=yes], [gl_cv_func_realpath_works=no], + [gl_cv_func_realpath_works="guessing no"]) + ]) + if test "$gl_cv_func_realpath_works" = yes; then + AC_DEFINE([FUNC_REALPATH_WORKS], [1], [Define to 1 if realpath() + can malloc memory, always gives an absolute path, and handles + trailing slash correctly.]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/cloexec.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/cloexec.m4 --- gettext-0.17/gettext-tools/gnulib-m4/cloexec.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/cloexec.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,10 @@ +#serial 6 +dnl Copyright (C) 2004-2006, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_CLOEXEC], +[ + AC_LIBOBJ([cloexec]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/copy-file.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/copy-file.m4 --- gettext-0.17/gettext-tools/gnulib-m4/copy-file.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/copy-file.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,11 +1,11 @@ -# copy-file.m4 serial 2 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# copy-file.m4 serial 3 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_COPY_FILE], [ - AC_CHECK_HEADERS_ONCE(unistd.h utime.h) - AC_CHECK_FUNCS(chown utime utimes) + AC_CHECK_HEADERS_ONCE([unistd.h utime.h]) + AC_CHECK_FUNCS([chown utime utimes]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/csharpcomp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/csharpcomp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/csharpcomp.m4 2007-10-28 22:53:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/csharpcomp.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# csharpcomp.m4 serial 7 -dnl Copyright (C) 2003-2005, 2007 Free Software Foundation, Inc. +# csharpcomp.m4 serial 8 +dnl Copyright (C) 2003-2005, 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -17,9 +17,9 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_CSCC_IN_PATH, cscc, yes) - AC_CHECK_PROG(HAVE_MCS_IN_PATH, mcs, yes) - AC_CHECK_PROG(HAVE_CSC_IN_PATH, csc, yes) + AC_CHECK_PROG([HAVE_CSCC_IN_PATH], [cscc], [yes]) + AC_CHECK_PROG([HAVE_MCS_IN_PATH], [mcs], [yes]) + AC_CHECK_PROG([HAVE_CSC_IN_PATH], [csc], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -67,12 +67,12 @@ esac done AC_MSG_RESULT([$ac_result]) - AC_SUBST(HAVE_CSCC) - AC_SUBST(HAVE_MCS) - AC_SUBST(HAVE_CSC) + AC_SUBST([HAVE_CSCC]) + AC_SUBST([HAVE_MCS]) + AC_SUBST([HAVE_CSC]) dnl Provide a default for CSHARPCOMPFLAGS. if test -z "${CSHARPCOMPFLAGS+set}"; then CSHARPCOMPFLAGS="-O -g" fi - AC_SUBST(CSHARPCOMPFLAGS) + AC_SUBST([CSHARPCOMPFLAGS]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/csharpexec.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/csharpexec.m4 --- gettext-0.17/gettext-tools/gnulib-m4/csharpexec.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/csharpexec.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# csharpexec.m4 serial 3 (gettext-0.15) -dnl Copyright (C) 2003-2005 Free Software Foundation, Inc. +# csharpexec.m4 serial 4 +dnl Copyright (C) 2003-2005, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ [ AC_REQUIRE([gt_CSHARP_CHOICE]) AC_MSG_CHECKING([for C[#] program execution engine]) - AC_EGREP_CPP(yes, [ + AC_EGREP_CPP([yes], [ #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ yes #endif @@ -22,9 +22,9 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_ILRUN_IN_PATH, ilrun, yes) - AC_CHECK_PROG(HAVE_MONO_IN_PATH, mono, yes) - AC_CHECK_PROG(HAVE_CLIX_IN_PATH, clix, yes) + AC_CHECK_PROG([HAVE_ILRUN_IN_PATH], [ilrun], [yes]) + AC_CHECK_PROG([HAVE_MONO_IN_PATH], [mono], [yes]) + AC_CHECK_PROG([HAVE_CLIX_IN_PATH], [clix], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -76,11 +76,11 @@ esac done AC_MSG_RESULT([$ac_result]) - AC_SUBST(MONO_PATH) - AC_SUBST(MONO_PATH_SEPARATOR) - AC_SUBST(CLIX_PATH_VAR) - AC_SUBST(CLIX_PATH) - AC_SUBST(HAVE_ILRUN) - AC_SUBST(HAVE_MONO) - AC_SUBST(HAVE_CLIX) + AC_SUBST([MONO_PATH]) + AC_SUBST([MONO_PATH_SEPARATOR]) + AC_SUBST([CLIX_PATH_VAR]) + AC_SUBST([CLIX_PATH]) + AC_SUBST([HAVE_ILRUN]) + AC_SUBST([HAVE_MONO]) + AC_SUBST([HAVE_CLIX]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/csharp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/csharp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/csharp.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/csharp.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# csharp.m4 serial 2 (gettext-0.14.2) -dnl Copyright (C) 2004-2005 Free Software Foundation, Inc. +# csharp.m4 serial 3 +dnl Copyright (C) 2004-2005, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,19 +9,19 @@ AC_DEFUN([gt_CSHARP_CHOICE], [ AC_MSG_CHECKING([for preferred C[#] implementation]) - AC_ARG_ENABLE(csharp, + AC_ARG_ENABLE([csharp], [ --enable-csharp[[=IMPL]] choose preferred C[#] implementation (pnet or mono)], [CSHARP_CHOICE="$enableval"], CSHARP_CHOICE=any) - AC_SUBST(CSHARP_CHOICE) + AC_SUBST([CSHARP_CHOICE]) AC_MSG_RESULT([$CSHARP_CHOICE]) case "$CSHARP_CHOICE" in pnet) - AC_DEFINE([CSHARP_CHOICE_PNET], 1, + AC_DEFINE([CSHARP_CHOICE_PNET], [1], [Define if pnet is the preferred C# implementation.]) ;; mono) - AC_DEFINE([CSHARP_CHOICE_MONO], 1, + AC_DEFINE([CSHARP_CHOICE_MONO], [1], [Define if mono is the preferred C# implementation.]) ;; esac diff -Nru gettext-0.17/gettext-tools/gnulib-m4/curses.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/curses.m4 --- gettext-0.17/gettext-tools/gnulib-m4/curses.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/curses.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,16 @@ +# curses.m4 serial 1 (gettext-0.18) +dnl Copyright (C) 2008 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Sets gl_curses_allowed to yes or no. +AC_DEFUN([gl_CURSES], +[ + AC_MSG_CHECKING([whether curses libraries may be used]) + AC_ARG_ENABLE(curses, + [ --disable-curses do not use libncurses, libtermcap even if they exist], + [gl_curses_allowed="$enableval"], + [gl_curses_allowed=yes]) + AC_MSG_RESULT([$gl_curses_allowed]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/dos.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/dos.m4 --- gettext-0.17/gettext-tools/gnulib-m4/dos.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/dos.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,71 @@ +#serial 11 -*- autoconf -*- + +# Define some macros required for proper operation of code in lib/*.c +# on MSDOS/Windows systems. + +# Copyright (C) 2000-2001, 2004-2006, 2009-2010 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# From Jim Meyering. + +AC_DEFUN([gl_AC_DOS], + [ + AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ +#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__ +neither MSDOS nor Windows +#endif]])], + [ac_cv_win_or_dos=yes], + [ac_cv_win_or_dos=no]) + ]) + + if test x"$ac_cv_win_or_dos" = xyes; then + ac_fs_accepts_drive_letter_prefix=1 + ac_fs_backslash_is_file_name_separator=1 + AC_CACHE_CHECK([whether drive letter can start relative path], + [ac_cv_drive_letter_can_be_relative], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ +#if defined __CYGWIN__ +drive letters are always absolute +#endif]])], + [ac_cv_drive_letter_can_be_relative=yes], + [ac_cv_drive_letter_can_be_relative=no]) + ]) + if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then + ac_fs_drive_letter_can_be_relative=1 + else + ac_fs_drive_letter_can_be_relative=0 + fi + else + ac_fs_accepts_drive_letter_prefix=0 + ac_fs_backslash_is_file_name_separator=0 + ac_fs_drive_letter_can_be_relative=0 + fi + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX], + $ac_fs_accepts_drive_letter_prefix, + [Define on systems for which file names may have a so-called + `drive letter' prefix, define this to compute the length of that + prefix, including the colon.]) + + AH_VERBATIM(ISSLASH, + [#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR +# define ISSLASH(C) ((C) == '/' || (C) == '\\') +#else +# define ISSLASH(C) ((C) == '/') +#endif]) + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR], + $ac_fs_backslash_is_file_name_separator, + [Define if the backslash character may also serve as a file name + component separator.]) + + AC_DEFINE_UNQUOTED([FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE], + $ac_fs_drive_letter_can_be_relative, + [Define if a drive letter prefix denotes a relative path if it is + not followed by a file name component separator.]) + ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/double-slash-root.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/double-slash-root.m4 --- gettext-0.17/gettext-tools/gnulib-m4/double-slash-root.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/double-slash-root.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,38 @@ +# double-slash-root.m4 serial 4 -*- Autoconf -*- +dnl Copyright (C) 2006, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_DOUBLE_SLASH_ROOT], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CACHE_CHECK([whether // is distinct from /], [gl_cv_double_slash_root], + [ if test x"$cross_compiling" = xyes ; then + # When cross-compiling, there is no way to tell whether // is special + # short of a list of hosts. However, the only known hosts to date + # that have a distinct // are Apollo DomainOS (too old to port to), + # Cygwin, and z/OS. If anyone knows of another system for which // has + # special semantics and is distinct from /, please report it to + # . + case $host in + *-cygwin | i370-ibm-openedition) + gl_cv_double_slash_root=yes ;; + *) + # Be optimistic and assume that / and // are the same when we + # don't know. + gl_cv_double_slash_root='unknown, assuming no' ;; + esac + else + set x `ls -di / // 2>/dev/null` + if test "$[2]" = "$[4]" && wc //dev/null >/dev/null 2>&1; then + gl_cv_double_slash_root=no + else + gl_cv_double_slash_root=yes + fi + fi]) + if test "$gl_cv_double_slash_root" = yes; then + AC_DEFINE([DOUBLE_SLASH_IS_DISTINCT_ROOT], [1], + [Define to 1 if // is a file system root distinct from /.]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/dup2.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/dup2.m4 --- gettext-0.17/gettext-tools/gnulib-m4/dup2.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/dup2.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,58 @@ +#serial 10 +dnl Copyright (C) 2002, 2005, 2007, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_DUP2], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_FUNCS_ONCE([dup2]) + if test $ac_cv_func_dup2 = no; then + HAVE_DUP2=0 + AC_LIBOBJ([dup2]) + else + AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works], + [AC_RUN_IFELSE([ + AC_LANG_PROGRAM([[#include +#include ]], + [if (dup2 (1, 1) == 0) + return 1; + close (0); + if (dup2 (0, 0) != -1) + return 2; + /* Many gnulib modules require POSIX conformance of EBADF. */ + if (dup2 (1, 1000000) == -1 && errno != EBADF) + return 3; + return 0; + ]) + ], + [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no], + [case "$host_os" in + mingw*) # on this platform, dup2 always returns 0 for success + gl_cv_func_dup2_works=no;; + cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 + gl_cv_func_dup2_works=no;; + linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a + # closed fd may yield -EBADF instead of -1 / errno=EBADF. + gl_cv_func_dup2_works=no;; + freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. + gl_cv_func_dup2_works=no;; + *) gl_cv_func_dup2_works=yes;; + esac]) + ]) + if test "$gl_cv_func_dup2_works" = no; then + gl_REPLACE_DUP2 + fi + fi +]) + +AC_DEFUN([gl_REPLACE_DUP2], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + if test $ac_cv_func_dup2 = yes; then + REPLACE_DUP2=1 + fi + AC_LIBOBJ([dup2]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/eaccess.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/eaccess.m4 --- gettext-0.17/gettext-tools/gnulib-m4/eaccess.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/eaccess.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,12 +1,12 @@ -# eaccess.m4 serial 1 (gettext-0.12) -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# eaccess.m4 serial 2 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_EACCESS], [ - AC_CHECK_FUNC(eaccess, , - [AC_DEFINE(eaccess, access, + AC_CHECK_FUNC([eaccess], , + [AC_DEFINE([eaccess], [access], [Define as 'access' if you don't have the eaccess() function.])]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/eealloc.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/eealloc.m4 --- gettext-0.17/gettext-tools/gnulib-m4/eealloc.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/eealloc.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# eealloc.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# eealloc.m4 serial 2 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -16,7 +16,7 @@ _AC_FUNC_MALLOC_IF( [gl_cv_func_malloc_0_nonnull=1], [gl_cv_func_malloc_0_nonnull=0]) - AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], $gl_cv_func_malloc_0_nonnull, + AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], [If malloc(0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) @@ -26,7 +26,7 @@ _AC_FUNC_REALLOC_IF( [gl_cv_func_realloc_0_nonnull=1], [gl_cv_func_realloc_0_nonnull=0]) - AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], $gl_cv_func_realloc_0_nonnull, + AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/environ.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/environ.m4 --- gettext-0.17/gettext-tools/gnulib-m4/environ.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/environ.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,36 @@ +# environ.m4 serial 3 +dnl Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN_ONCE([gl_ENVIRON], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl Persuade glibc to declare environ. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + gt_CHECK_VAR_DECL([#include ], environ) + if test $gt_cv_var_environ_declaration != yes; then + HAVE_DECL_ENVIRON=0 + fi +]) + +# Check if a variable is properly declared. +# gt_CHECK_VAR_DECL(includes,variable) +AC_DEFUN([gt_CHECK_VAR_DECL], +[ + define([gt_cv_var], [gt_cv_var_]$2[_declaration]) + AC_MSG_CHECKING([if $2 is properly declared]) + AC_CACHE_VAL([gt_cv_var], [ + AC_TRY_COMPILE([$1 + extern struct { int foo; } $2;], + [$2.foo = 1;], + gt_cv_var=no, + gt_cv_var=yes)]) + AC_MSG_RESULT([$gt_cv_var]) + if test $gt_cv_var = yes; then + AC_DEFINE([HAVE_]translit($2, [a-z], [A-Z])[_DECL], 1, + [Define if you have the declaration of $2.]) + fi + undefine([gt_cv_var]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/eoverflow.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/eoverflow.m4 --- gettext-0.17/gettext-tools/gnulib-m4/eoverflow.m4 2007-10-26 00:52:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/eoverflow.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,70 +0,0 @@ -# eoverflow.m4 serial 2 -dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -# The EOVERFLOW errno value ought to be defined in , according to -# POSIX. But some systems (like AIX 3) don't define it, and some systems -# (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. - -# Define EOVERFLOW as a C macro and as a substituted macro in such a way that -# 1. on all systems, after inclusion of , EOVERFLOW is usable, -# 2. on systems where EOVERFLOW is defined elsewhere, we use the same numeric -# value. - -AC_DEFUN([gl_EOVERFLOW], -[ - AC_REQUIRE([AC_PROG_CC])dnl - - AC_CACHE_CHECK([for EOVERFLOW], ac_cv_decl_EOVERFLOW, [ - AC_EGREP_CPP(yes,[ -#include -#ifdef EOVERFLOW -yes -#endif - ], have_eoverflow=1) - if test -n "$have_eoverflow"; then - dnl EOVERFLOW exists in . Don't need to define EOVERFLOW ourselves. - ac_cv_decl_EOVERFLOW=yes - else - AC_EGREP_CPP(yes,[ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -#ifdef EOVERFLOW -yes -#endif - ], have_eoverflow=1) - if test -n "$have_eoverflow"; then - dnl EOVERFLOW exists but is hidden. - dnl Define it to the same value. - AC_COMPUTE_INT([ac_cv_decl_EOVERFLOW], [EOVERFLOW], [ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -]) - else - dnl EOVERFLOW isn't defined by the system. Define EOVERFLOW ourselves, but - dnl don't define it as EINVAL, because snprintf() callers want to - dnl distinguish EINVAL and EOVERFLOW. - ac_cv_decl_EOVERFLOW=E2BIG - fi - fi - ]) - if test "$ac_cv_decl_EOVERFLOW" != yes; then - AC_DEFINE_UNQUOTED([EOVERFLOW], [$ac_cv_decl_EOVERFLOW], - [Define as good substitute value for EOVERFLOW.]) - EOVERFLOW="$ac_cv_decl_EOVERFLOW" - AC_SUBST(EOVERFLOW) - fi -]) - -dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. -dnl Remove this when we can assume autoconf >= 2.61. -m4_ifdef([AC_COMPUTE_INT], [], [ - AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/errno_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/errno_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/errno_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/errno_h.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,115 @@ +# errno_h.m4 serial 6 +dnl Copyright (C) 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ + AC_EGREP_CPP([booboo],[ +#include +#if !defined ENOMSG +booboo +#endif +#if !defined EIDRM +booboo +#endif +#if !defined ENOLINK +booboo +#endif +#if !defined EPROTO +booboo +#endif +#if !defined EMULTIHOP +booboo +#endif +#if !defined EBADMSG +booboo +#endif +#if !defined EOVERFLOW +booboo +#endif +#if !defined ENOTSUP +booboo +#endif +#if !defined ESTALE +booboo +#endif +#if !defined ECANCELED +booboo +#endif + ], + [gl_cv_header_errno_h_complete=no], + [gl_cv_header_errno_h_complete=yes]) + ]) + if test $gl_cv_header_errno_h_complete = yes; then + ERRNO_H='' + else + gl_CHECK_NEXT_HEADERS([errno.h]) + ERRNO_H='errno.h' + fi + AC_SUBST([ERRNO_H]) + gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) + gl_REPLACE_ERRNO_VALUE([ENOLINK]) + gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) +]) + +# Assuming $1 = EOVERFLOW. +# The EOVERFLOW errno value ought to be defined in , according to +# POSIX. But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and +# some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. +# Check for the value of EOVERFLOW. +# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. +AC_DEFUN([gl_REPLACE_ERRNO_VALUE], +[ + if test -n "$ERRNO_H"; then + AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ + AC_EGREP_CPP([yes],[ +#include +#ifdef ]$1[ +yes +#endif + ], + [gl_cv_header_errno_h_]$1[=yes], + [gl_cv_header_errno_h_]$1[=no]) + if test $gl_cv_header_errno_h_]$1[ = no; then + AC_EGREP_CPP([yes],[ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#ifdef ]$1[ +yes +#endif + ], [gl_cv_header_errno_h_]$1[=hidden]) + if test $gl_cv_header_errno_h_]$1[ = hidden; then + dnl The macro exists but is hidden. + dnl Define it to the same value. + AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [ +#define _XOPEN_SOURCE_EXTENDED 1 +#include +/* The following two lines are a workaround against an autoconf-2.52 bug. */ +#include +#include +]) + fi + fi + ]) + case $gl_cv_header_errno_h_]$1[ in + yes | no) + ]$1[_HIDDEN=0; ]$1[_VALUE= + ;; + *) + ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1[" + ;; + esac + AC_SUBST($1[_HIDDEN]) + AC_SUBST($1[_VALUE]) + fi +]) + +dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. +dnl Remove this when we can assume autoconf >= 2.61. +m4_ifdef([AC_COMPUTE_INT], [], [ + AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/error.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/error.m4 --- gettext-0.17/gettext-tools/gnulib-m4/error.m4 2007-01-27 03:22:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/error.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,7 +1,6 @@ -#serial 11 +#serial 12 -# Copyright (C) 1996, 1997, 1998, 2001, 2002, 2003, 2004 Free Software -# Foundation, Inc. +# Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -18,5 +17,6 @@ AC_DEFUN([gl_PREREQ_ERROR], [ AC_REQUIRE([AC_FUNC_STRERROR_R]) + AC_REQUIRE([AC_C_INLINE]) : ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/execute.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/execute.m4 --- gettext-0.17/gettext-tools/gnulib-m4/execute.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/execute.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# execute.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# execute.m4 serial 4 +dnl Copyright (C) 2003, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,7 +9,4 @@ dnl Prerequisites of lib/execute.c. AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MODE_T]) - AC_CHECK_HEADERS_ONCE(unistd.h) - AC_REQUIRE([AC_FUNC_FORK]) - AC_CHECK_FUNCS(posix_spawn) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/exitfail.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/exitfail.m4 --- gettext-0.17/gettext-tools/gnulib-m4/exitfail.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/exitfail.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -# exitfail.m4 serial 6 -dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_EXITFAIL], -[ - dnl No prerequisites of lib/exitfail.c. - : -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/extensions.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/extensions.m4 --- gettext-0.17/gettext-tools/gnulib-m4/extensions.m4 2007-09-30 21:33:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/extensions.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,7 +1,7 @@ -# serial 5 -*- Autoconf -*- +# serial 9 -*- Autoconf -*- # Enable extensions on systems that normally disable them. -# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -12,6 +12,20 @@ # enough in this area it's likely we'll need to redefine # AC_USE_SYSTEM_EXTENSIONS for quite some time. +# If autoconf reports a warning +# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS +# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS +# the fix is +# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked +# but always AC_REQUIREd, +# 2) to ensure that for each occurrence of +# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +# or +# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) +# the corresponding gnulib module description has 'extensions' among +# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS +# invocation occurs in gl_EARLY, not in gl_INIT. + # AC_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, @@ -20,10 +34,12 @@ # AC_DEFINE. The goal here is to define all known feature-enabling # macros, then, if reports of conflicts are made, disable macros that # cause problems on some platforms (such as __EXTENSIONS__). -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], +AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl AC_BEFORE([$0], [AC_RUN_IFELSE])dnl + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) if test "$MINIX" = yes; then AC_DEFINE([_POSIX_SOURCE], [1], @@ -36,6 +52,16 @@ [Define to 1 if on MINIX.]) fi + dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, + dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already + dnl provided. + case "$host_os" in + hpux*) + AC_DEFINE([_XOPEN_SOURCE], [500], + [Define to 500 only on HP-UX.]) + ;; + esac + AH_VERBATIM([__EXTENSIONS__], [/* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE @@ -61,9 +87,9 @@ AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], [ac_cv_safe_to_define___extensions__], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([ -# define __EXTENSIONS__ 1 - AC_INCLUDES_DEFAULT])], + [AC_LANG_PROGRAM([[ +# define __EXTENSIONS__ 1 + ]AC_INCLUDES_DEFAULT])], [ac_cv_safe_to_define___extensions__=yes], [ac_cv_safe_to_define___extensions__=no])]) test $ac_cv_safe_to_define___extensions__ = yes && @@ -78,5 +104,15 @@ # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. -AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], - [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])]) +AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], +[ + dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. + dnl gnulib does not need it. But if it gets required by third-party macros + dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a + dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". + dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, + dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. + AC_REQUIRE([AC_GNU_SOURCE]) + + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/fatal-signal.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/fatal-signal.m4 --- gettext-0.17/gettext-tools/gnulib-m4/fatal-signal.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/fatal-signal.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,13 +1,13 @@ -# fatal-signal.m4 serial 4 -dnl Copyright (C) 2003-2004, 2006 Free Software Foundation, Inc. +# fatal-signal.m4 serial 8 +dnl Copyright (C) 2003-2004, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FATAL_SIGNAL], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T]) - AC_CHECK_HEADERS_ONCE(unistd.h) - AC_CHECK_FUNCS_ONCE(raise) - AC_CHECK_FUNCS(sigaction) + AC_CHECK_HEADERS_ONCE([unistd.h]) + gl_PREREQ_SIG_HANDLER_H ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/fcntl_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/fcntl_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/fcntl_h.m4 2007-10-07 13:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/fcntl_h.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,6 @@ +# serial 12 # Configure fcntl.h. -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,86 +10,34 @@ AC_DEFUN([gl_FCNTL_H], [ AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) - AC_CACHE_CHECK([for working fcntl.h], gl_cv_header_working_fcntl_h, - [AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[#include - #include - #include - #include - #ifndef O_NOATIME - #define O_NOATIME 0 - #endif - #ifndef O_NOFOLLOW - #define O_NOFOLLOW 0 - #endif - static int const constants[] = - { - O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, - O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY - }; - ]], - [[ - int status = !constants; - { - static char const sym[] = "conftest.sym"; - if (symlink (".", sym) != 0 - || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) - status |= 32; - } - { - static char const file[] = "confdefs.h"; - int fd = open (file, O_RDONLY | O_NOATIME); - char c; - struct stat st0, st1; - if (fd < 0 - || fstat (fd, &st0) != 0 - || sleep (1) != 0 - || read (fd, &c, 1) != 1 - || close (fd) != 0 - || stat (file, &st1) != 0 - || st0.st_atime != st1.st_atime) - status |= 64; - } - return status;]])], - [gl_cv_header_working_fcntl_h=yes], - [case $? in #( - 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( - 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( - 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( - *) gl_cv_header_working_fcntl_h='no';; - esac], - [gl_cv_header_working_fcntl_h=cross-compiling])]) - - case $gl_cv_header_working_fcntl_h in #( - *O_NOATIME* | no | cross-compiling) ac_val=0;; #( - *) ac_val=1;; - esac - AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], - [Define to 1 if O_NOATIME works.]) - - case $gl_cv_header_working_fcntl_h in #( - *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( - *) ac_val=1;; - esac - AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], - [Define to 1 if O_NOFOLLOW works.]) - + AC_REQUIRE([gl_FCNTL_O_FLAGS]) gl_CHECK_NEXT_HEADERS([fcntl.h]) - FCNTL_H='fcntl.h' - AC_SUBST([FCNTL_H]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, if it is not common + dnl enough to be declared everywhere. + gl_WARN_ON_USE_PREPARE([[#include + ]], [fcntl openat]) ]) AC_DEFUN([gl_FCNTL_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_FCNTL_H_DEFAULTS], [ - GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN]) + GNULIB_FCNTL=0; AC_SUBST([GNULIB_FCNTL]) + GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN]) + GNULIB_OPENAT=0; AC_SUBST([GNULIB_OPENAT]) dnl Assume proper GNU behavior unless another module says otherwise. - REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) + HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL]) + HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT]) + REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL]) + REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) + REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/fcntl.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/fcntl.m4 --- gettext-0.17/gettext-tools/gnulib-m4/fcntl.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/fcntl.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,83 @@ +# fcntl.m4 serial 3 +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# For now, this module ensures that fcntl() +# - supports F_DUPFD correctly +# - supports or emulates F_DUPFD_CLOEXEC +# - supports F_GETFD +# Still to be ported to mingw: +# - F_SETFD +# - F_GETFL, F_SETFL +# - F_GETOWN, F_SETOWN +# - F_GETLK, F_SETLK, F_SETLKW +AC_DEFUN([gl_FUNC_FCNTL], +[ + dnl Persuade glibc to expose F_DUPFD_CLOEXEC. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_FUNCS_ONCE([fcntl]) + if test $ac_cv_func_fcntl = no; then + gl_REPLACE_FCNTL + else + dnl cygwin 1.5.x F_DUPFD has wrong errno, and allows negative target + AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly], + [gl_cv_func_fcntl_f_dupfd_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +#include +]], [[return fcntl (0, F_DUPFD, -1) != -1; + ]])], + [gl_cv_func_fcntl_f_dupfd_works=yes], + [gl_cv_func_fcntl_f_dupfd_works=no], + [# Guess that it works on glibc systems + case $host_os in #(( + *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";; + *) gl_cv_func_fcntl_f_dupfd_works="guessing no";; + esac])]) + case $gl_cv_func_fcntl_f_dupfd_works in + *yes) ;; + *) gl_REPLACE_FCNTL + AC_DEFINE([FCNTL_DUPFD_BUGGY], [1], [Define this to 1 if F_DUPFD + behavior does not match POSIX]) ;; + esac + + dnl Many systems lack F_DUPFD_CLOEXEC + AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC], + [gl_cv_func_fcntl_f_dupfd_cloexec], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include +#ifndef F_DUPFD_CLOEXEC +choke me +#endif + ]])], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#ifdef __linux__ +/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace + it to support the semantics on older kernels that failed with EINVAL. */ +choke me +#endif + ]])], + [gl_cv_func_fcntl_f_dupfd_cloexec=yes], + [gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"])], + [gl_cv_func_fcntl_f_dupfd_cloexec=no])]) + if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then + gl_REPLACE_FCNTL + dnl No witness macro needed for this bug. + fi + fi +]) + +AC_DEFUN([gl_REPLACE_FCNTL], +[ + AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([fcntl]) + if test $ac_cv_func_fcntl = no; then + HAVE_FCNTL=0 + else + REPLACE_FCNTL=1 + fi + AC_LIBOBJ([fcntl]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/findprog.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/findprog.m4 --- gettext-0.17/gettext-tools/gnulib-m4/findprog.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/findprog.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# findprog.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# findprog.m4 serial 2 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,6 +7,6 @@ AC_DEFUN([gl_FINDPROG], [ dnl Prerequisites of lib/findprog.c. - AC_CHECK_HEADERS_ONCE(unistd.h) + AC_CHECK_HEADERS_ONCE([unistd.h]) AC_REQUIRE([gl_FUNC_EACCESS]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/float_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/float_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/float_h.m4 2007-10-26 00:52:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/float_h.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# float_h.m4 serial 2 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# float_h.m4 serial 3 +dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,7 +10,7 @@ AC_REQUIRE([AC_CANONICAL_HOST]) FLOAT_H= case "$host_os" in - beos*) + beos* | openbsd*) FLOAT_H=float.h gl_CHECK_NEXT_HEADERS([float.h]) ;; diff -Nru gettext-0.17/gettext-tools/gnulib-m4/fnmatch.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/fnmatch.m4 --- gettext-0.17/gettext-tools/gnulib-m4/fnmatch.m4 2007-09-30 21:33:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/fnmatch.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,7 +1,6 @@ -# Check for fnmatch - serial 2. +# Check for fnmatch - serial 4. -# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software -# Foundation, Inc. +# Copyright (C) 2000-2007, 2009-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -9,119 +8,114 @@ # Autoconf defines AC_FUNC_FNMATCH, but that is obsolescent. # New applications should use the macros below instead. -# _AC_FUNC_FNMATCH_IF(STANDARD = GNU | POSIX, CACHE_VAR, IF-TRUE, IF-FALSE) -# ------------------------------------------------------------------------- -# If a STANDARD compliant fnmatch is found, run IF-TRUE, otherwise -# IF-FALSE. Use CACHE_VAR. -AC_DEFUN([_AC_FUNC_FNMATCH_IF], -[AC_CACHE_CHECK( - [for working $1 fnmatch], - [$2], - [dnl Some versions of Solaris, SCO, and the GNU C Library - dnl have a broken or incompatible fnmatch. - dnl So we run a test program. If we are cross-compiling, take no chance. - dnl Thanks to John Oleynick, François Pinard, and Paul Eggert for this test. - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[#include - static int - y (char const *pattern, char const *string, int flags) - { - return fnmatch (pattern, string, flags) == 0; - } - static int - n (char const *pattern, char const *string, int flags) - { - return fnmatch (pattern, string, flags) == FNM_NOMATCH; - } - ]], - [[char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; - char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; - static char const A_1[] = { 'A' - 1, 0 }; - static char const A01[] = { 'A' + 1, 0 }; - static char const a_1[] = { 'a' - 1, 0 }; - static char const a01[] = { 'a' + 1, 0 }; - static char const bs_1[] = { '\\\\' - 1, 0 }; - static char const bs01[] = { '\\\\' + 1, 0 }; - return - !(n ("a*", "", 0) - && y ("a*", "abc", 0) - && n ("d*/*1", "d/s/1", FNM_PATHNAME) - && y ("a\\\\bc", "abc", 0) - && n ("a\\\\bc", "abc", FNM_NOESCAPE) - && y ("*x", ".x", 0) - && n ("*x", ".x", FNM_PERIOD) - && y (Apat, "\\\\", 0) && y (Apat, "A", 0) - && y (apat, "\\\\", 0) && y (apat, "a", 0) - && n (Apat, A_1, 0) == ('A' < '\\\\') - && n (apat, a_1, 0) == ('a' < '\\\\') - && y (Apat, A01, 0) == ('A' < '\\\\') - && y (apat, a01, 0) == ('a' < '\\\\') - && y (Apat, bs_1, 0) == ('A' < '\\\\') - && y (apat, bs_1, 0) == ('a' < '\\\\') - && n (Apat, bs01, 0) == ('A' < '\\\\') - && n (apat, bs01, 0) == ('a' < '\\\\') - && ]m4_if([$1], [GNU], - [y ("xxXX", "xXxX", FNM_CASEFOLD) - && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) - && n ("d*/*1", "d/s/1", FNM_FILE_NAME) - && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) - && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) - && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)], - 1))[;]])], - [$2=yes], - [$2=no], - [$2=cross])]) -AS_IF([test $$2 = yes], [$3], [$4]) -])# _AC_FUNC_FNMATCH_IF - - -# _AC_LIBOBJ_FNMATCH -# ------------------ -# Prepare the replacement of fnmatch. -AC_DEFUN([_AC_LIBOBJ_FNMATCH], -[AC_REQUIRE([AC_FUNC_ALLOCA])dnl -AC_REQUIRE([AC_TYPE_MBSTATE_T])dnl -AC_CHECK_DECLS([isblank], [], [], [#include ]) -AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy]) -AC_CHECK_HEADERS_ONCE([wctype.h]) -AC_LIBOBJ([fnmatch]) -FNMATCH_H=fnmatch.h -])# _AC_LIBOBJ_FNMATCH - - +# Request a POSIX compliant fnmatch function. AC_DEFUN([gl_FUNC_FNMATCH_POSIX], [ + m4_divert_text([DEFAULTS], [gl_fnmatch_required=POSIX]) + + dnl Persuade glibc to declare FNM_CASEFOLD etc. + dnl This is only needed if gl_fnmatch_required = GNU. It would be possible + dnl to avoid this dependency for gl_FUNC_FNMATCH_POSIX by putting + dnl gl_FUNC_FNMATCH_GNU into a separate .m4 file. + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + FNMATCH_H= - _AC_FUNC_FNMATCH_IF([POSIX], [ac_cv_func_fnmatch_posix], - [rm -f lib/fnmatch.h], - [_AC_LIBOBJ_FNMATCH]) - if test $ac_cv_func_fnmatch_posix != yes; then + gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'` + gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}" + AC_CACHE_CHECK([for working $gl_fnmatch_required fnmatch], + [$gl_fnmatch_cache_var], + [dnl Some versions of Solaris, SCO, and the GNU C Library + dnl have a broken or incompatible fnmatch. + dnl So we run a test program. If we are cross-compiling, take no chance. + dnl Thanks to John Oleynick, François Pinard, and Paul Eggert for this + dnl test. + if test $gl_fnmatch_required = GNU; then + gl_fnmatch_gnu_start= + gl_fnmatch_gnu_end= + else + gl_fnmatch_gnu_start='#if 0' + gl_fnmatch_gnu_end='#endif' + fi + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include + static int + y (char const *pattern, char const *string, int flags) + { + return fnmatch (pattern, string, flags) == 0; + } + static int + n (char const *pattern, char const *string, int flags) + { + return fnmatch (pattern, string, flags) == FNM_NOMATCH; + } + ]], + [[char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; + char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; + static char const A_1[] = { 'A' - 1, 0 }; + static char const A01[] = { 'A' + 1, 0 }; + static char const a_1[] = { 'a' - 1, 0 }; + static char const a01[] = { 'a' + 1, 0 }; + static char const bs_1[] = { '\\\\' - 1, 0 }; + static char const bs01[] = { '\\\\' + 1, 0 }; + return + !(n ("a*", "", 0) + && y ("a*", "abc", 0) + && n ("d*/*1", "d/s/1", FNM_PATHNAME) + && y ("a\\\\bc", "abc", 0) + && n ("a\\\\bc", "abc", FNM_NOESCAPE) + && y ("*x", ".x", 0) + && n ("*x", ".x", FNM_PERIOD) + && y (Apat, "\\\\", 0) && y (Apat, "A", 0) + && y (apat, "\\\\", 0) && y (apat, "a", 0) + && n (Apat, A_1, 0) == ('A' < '\\\\') + && n (apat, a_1, 0) == ('a' < '\\\\') + && y (Apat, A01, 0) == ('A' < '\\\\') + && y (apat, a01, 0) == ('a' < '\\\\') + && y (Apat, bs_1, 0) == ('A' < '\\\\') + && y (apat, bs_1, 0) == ('a' < '\\\\') + && n (Apat, bs01, 0) == ('A' < '\\\\') + && n (apat, bs01, 0) == ('a' < '\\\\') + $gl_fnmatch_gnu_start + && y ("xxXX", "xXxX", FNM_CASEFOLD) + && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH) + && n ("d*/*1", "d/s/1", FNM_FILE_NAME) + && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) + && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) + && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) + $gl_fnmatch_gnu_end + ); + ]])], + [eval "$gl_fnmatch_cache_var=yes"], + [eval "$gl_fnmatch_cache_var=no"], + [eval "$gl_fnmatch_cache_var=\"guessing no\""]) + ]) + eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\"" + if test "$gl_fnmatch_result" = yes; then + dnl Not strictly necessary. Only to avoid spurious leftover files if people + dnl don't do "make distclean". + rm -f "$gl_source_base/fnmatch.h" + else + FNMATCH_H=fnmatch.h + AC_LIBOBJ([fnmatch]) dnl We must choose a different name for our function, since on ELF systems dnl a broken fnmatch() in libc.so would override our fnmatch() if it is dnl compiled into a shared library. - AC_DEFINE([fnmatch], [posix_fnmatch], + AC_DEFINE_UNQUOTED([fnmatch], [${gl_fnmatch_required_lowercase}_fnmatch], [Define to a replacement function name for fnmatch().]) + dnl Prerequisites of lib/fnmatch.c. + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + AC_CHECK_DECLS([isblank], [], [], [#include ]) + AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr wmemcpy wmempcpy]) + AC_CHECK_HEADERS_ONCE([wctype.h]) fi AC_SUBST([FNMATCH_H]) ]) - +# Request a POSIX compliant fnmatch function with GNU extensions. AC_DEFUN([gl_FUNC_FNMATCH_GNU], [ - dnl Persuade glibc to declare FNM_CASEFOLD etc. - AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + m4_divert_text([INIT_PREPARE], [gl_fnmatch_required=GNU]) - FNMATCH_H= - _AC_FUNC_FNMATCH_IF([GNU], [ac_cv_func_fnmatch_gnu], - [rm -f lib/fnmatch.h], - [_AC_LIBOBJ_FNMATCH]) - if test $ac_cv_func_fnmatch_gnu != yes; then - dnl We must choose a different name for our function, since on ELF systems - dnl a broken fnmatch() in libc.so would override our fnmatch() if it is - dnl compiled into a shared library. - AC_DEFINE([fnmatch], [gnu_fnmatch], - [Define to a replacement function name for fnmatch().]) - fi - AC_SUBST([FNMATCH_H]) + AC_REQUIRE([gl_FUNC_FNMATCH_POSIX]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/fopen.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/fopen.m4 --- gettext-0.17/gettext-tools/gnulib-m4/fopen.m4 2007-10-07 13:35:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/fopen.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# fopen.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# fopen.m4 serial 5 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,8 +10,52 @@ AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw* | pw*) + dnl Replace fopen, for handling of "/dev/null". + REPLACE_FOPEN=1 + dnl fopen on mingw also has the trailing slash bug. + gl_cv_func_fopen_slash="guessing no" + ;; + *) + dnl fopen("foo/", "w") should not create a file when the file name has a + dnl trailing slash. + AC_CACHE_CHECK([whether fopen recognizes a trailing slash], + [gl_cv_func_fopen_slash], + [ + AC_TRY_RUN([ +#include +#include +int main () +{ + return fopen ("conftest.sl/", "w") != NULL; +}], [gl_cv_func_fopen_slash=yes], [gl_cv_func_fopen_slash=no], + [ +changequote(,)dnl + case "$host_os" in + solaris2.[0-9]*) gl_cv_func_fopen_slash="guessing no" ;; + hpux*) gl_cv_func_fopen_slash="guessing no" ;; + *) gl_cv_func_fopen_slash="guessing yes" ;; + esac +changequote([,])dnl + ]) + rm -f conftest.sl + ]) + ;; + esac + case "$gl_cv_func_fopen_slash" in + *no) + AC_DEFINE([FOPEN_TRAILING_SLASH_BUG], [1], + [Define to 1 if fopen() fails to recognize a trailing slash.]) REPLACE_FOPEN=1 - AC_LIBOBJ([fopen]) ;; esac + if test $REPLACE_FOPEN = 1; then + AC_LIBOBJ([fopen]) + gl_PREREQ_FOPEN + fi +]) + +# Prerequisites of lib/fopen.c. +AC_DEFUN([gl_PREREQ_FOPEN], +[ + AC_REQUIRE([AC_C_INLINE]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/getdelim.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/getdelim.m4 --- gettext-0.17/gettext-tools/gnulib-m4/getdelim.m4 2007-09-30 21:33:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/getdelim.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,12 +1,12 @@ -# getdelim.m4 serial 4 +# getdelim.m4 serial 6 -dnl Copyright (C) 2005, 2006, 2007 Free Software dnl Foundation, Inc. +dnl Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_PREREQ([2.60]) +AC_PREREQ([2.59]) AC_DEFUN([gl_FUNC_GETDELIM], [ @@ -15,20 +15,76 @@ dnl Persuade glibc to declare getdelim(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_REPLACE_FUNCS([getdelim]) AC_CHECK_DECLS_ONCE([getdelim]) - if test $ac_cv_func_getdelim = no; then - gl_PREREQ_GETDELIM + AC_CHECK_FUNCS_ONCE([getdelim]) + if test $ac_cv_func_getdelim = yes; then + dnl Found it in some library. Verify that it works. + AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim], + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + AC_RUN_IFELSE([AC_LANG_SOURCE([[ +# include +# include +# include + int main () + { + FILE *in = fopen ("./conftest.data", "r"); + if (!in) + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getdelim (&line, &siz, '\n', in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getdelim (&line, &siz, '\n', in) == -1) + return 1; + } + return 0; + } + ]])], [gl_cv_func_working_getdelim=yes] dnl The library version works. + , [gl_cv_func_working_getdelim=no] dnl The library version does NOT work. + , dnl We're cross compiling. Assume it works on glibc2 systems. + [AC_EGREP_CPP([Lucky GNU user], + [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ >= 2) + Lucky GNU user + #endif +#endif + ], + [gl_cv_func_working_getdelim=yes], + [gl_cv_func_working_getdelim=no])] + )]) + else + gl_cv_func_working_getdelim=no fi if test $ac_cv_have_decl_getdelim = no; then HAVE_DECL_GETDELIM=0 fi + + if test $gl_cv_func_working_getdelim = no; then + if test $ac_cv_func_getdelim = yes; then + REPLACE_GETDELIM=1 + fi + AC_LIBOBJ([getdelim]) + gl_PREREQ_GETDELIM + fi ]) # Prerequisites of lib/getdelim.c. AC_DEFUN([gl_PREREQ_GETDELIM], [ AC_CHECK_FUNCS([flockfile funlockfile]) + AC_CHECK_DECLS([getc_unlocked]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/getdtablesize.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/getdtablesize.m4 --- gettext-0.17/gettext-tools/gnulib-m4/getdtablesize.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/getdtablesize.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,15 @@ +# getdtablesize.m4 serial 1 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_GETDTABLESIZE], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([getdtablesize]) + if test $ac_cv_func_getdtablesize != yes; then + HAVE_GETDTABLESIZE=0 + AC_LIBOBJ([getdtablesize]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/getline.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/getline.m4 --- gettext-0.17/gettext-tools/gnulib-m4/getline.m4 2007-09-30 21:33:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/getline.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,16 +1,16 @@ -# getline.m4 serial 17 +# getline.m4 serial 21 -dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 Free -dnl Software Foundation, Inc. +dnl Copyright (C) 1998-2003, 2005-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_PREREQ([2.60]) +AC_PREREQ([2.59]) dnl See if there's a working, system-supplied version of the getline function. -dnl We can't just do AC_REPLACE_FUNCS(getline) because some systems +dnl We can't just do AC_REPLACE_FUNCS([getline]) because some systems dnl have a function by that name in -linet that doesn't have anything dnl to do with the function we need. AC_DEFUN([gl_FUNC_GETLINE], @@ -23,30 +23,43 @@ AC_CHECK_DECLS_ONCE([getline]) gl_getline_needs_run_time_check=no - AC_CHECK_FUNC(getline, - dnl Found it in some library. Verify that it works. - gl_getline_needs_run_time_check=yes, - am_cv_func_working_getline=no) + AC_CHECK_FUNC([getline], + [dnl Found it in some library. Verify that it works. + gl_getline_needs_run_time_check=yes], + [am_cv_func_working_getline=no]) if test $gl_getline_needs_run_time_check = yes; then - AC_CACHE_CHECK([for working getline function], am_cv_func_working_getline, - [echo fooN |tr -d '\012'|tr N '\012' > conftest.data - AC_TRY_RUN([ + AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline], + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data + AC_RUN_IFELSE([AC_LANG_SOURCE([[ # include # include # include int main () - { /* Based on a test program from Karl Heuer. */ - char *line = NULL; - size_t siz = 0; - int len; + { FILE *in = fopen ("./conftest.data", "r"); if (!in) - return 1; - len = getline (&line, &siz, in); - exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1); + return 1; + { + /* Test result for a NULL buffer and a zero size. + Based on a test program from Karl Heuer. */ + char *line = NULL; + size_t siz = 0; + int len = getline (&line, &siz, in); + if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) + return 1; + } + { + /* Test result for a NULL buffer and a non-zero size. + This crashes on FreeBSD 8.0. */ + char *line = NULL; + size_t siz = (size_t)(~0) / 4; + if (getline (&line, &siz, in) == -1) + return 1; + } + return 0; } - ], am_cv_func_working_getline=yes dnl The library version works. - , am_cv_func_working_getline=no dnl The library version does NOT work. + ]])], [am_cv_func_working_getline=yes] dnl The library version works. + , [am_cv_func_working_getline=no] dnl The library version does NOT work. , dnl We're cross compiling. Assume it works on glibc2 systems. [AC_EGREP_CPP([Lucky GNU user], [ @@ -67,6 +80,9 @@ fi if test $am_cv_func_working_getline = no; then + dnl Set REPLACE_GETLINE always: Even if we have not found the broken + dnl getline function among $LIBS, it may exist in libinet and the + dnl executable may be linked with -linet. REPLACE_GETLINE=1 AC_LIBOBJ([getline]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/getopt.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/getopt.m4 --- gettext-0.17/gettext-tools/gnulib-m4/getopt.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/getopt.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,82 +1,305 @@ -# getopt.m4 serial 13 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# getopt.m4 serial 28 +dnl Copyright (C) 2002-2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -# The getopt module assume you want GNU getopt, with getopt_long etc, -# rather than vanilla POSIX getopt. This means your code should -# always include for the getopt prototypes. +# Request a POSIX compliant getopt function. +AC_DEFUN([gl_FUNC_GETOPT_POSIX], +[ + m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX]) + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + gl_GETOPT_IFELSE([ + gl_REPLACE_GETOPT + ], + []) +]) + +# Request a POSIX compliant getopt function with GNU extensions (such as +# options with optional arguments) and the functions getopt_long, +# getopt_long_only. +AC_DEFUN([gl_FUNC_GETOPT_GNU], +[ + m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU]) + + AC_REQUIRE([gl_FUNC_GETOPT_POSIX]) +]) -AC_DEFUN([gl_GETOPT_SUBSTITUTE], +# Request the gnulib implementation of the getopt functions unconditionally. +# argp.m4 uses this. +AC_DEFUN([gl_REPLACE_GETOPT], [ + dnl Arrange for getopt.h to be created. + gl_GETOPT_SUBSTITUTE_HEADER + dnl Arrange for unistd.h to include getopt.h. + GNULIB_UNISTD_H_GETOPT=1 + dnl Arrange to compile the getopt implementation. AC_LIBOBJ([getopt]) AC_LIBOBJ([getopt1]) - gl_GETOPT_SUBSTITUTE_HEADER gl_PREREQ_GETOPT ]) -AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], +# emacs' configure.in uses this. +AC_DEFUN([gl_GETOPT_IFELSE], [ - GETOPT_H=getopt.h - AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], - [Define to rpl_ if the getopt replacement functions and variables - should be used.]) - AC_SUBST([GETOPT_H]) + AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) + AS_IF([test -n "$gl_replace_getopt"], [$1], [$2]) ]) +# Determine whether to replace the entire getopt facility. AC_DEFUN([gl_GETOPT_CHECK_HEADERS], [ - if test -z "$GETOPT_H"; then - AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + + dnl Persuade Solaris to declare optarg, optind, opterr, optopt. + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + gl_CHECK_NEXT_HEADERS([getopt.h]) + AC_CHECK_HEADERS_ONCE([getopt.h]) + if test $ac_cv_header_getopt_h = yes; then + HAVE_GETOPT_H=1 + else + HAVE_GETOPT_H=0 + fi + AC_SUBST([HAVE_GETOPT_H]) + + gl_replace_getopt= + + dnl Test whether is available. + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes]) fi - if test -z "$GETOPT_H"; then - AC_CHECK_FUNCS([getopt_long_only], [], [GETOPT_H=getopt.h]) + dnl Test whether the function getopt_long is available. + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes]) fi - dnl BSD getopt_long uses an incompatible method to reset option processing, - dnl and (as of 2004-10-15) mishandles optional option-arguments. - if test -z "$GETOPT_H"; then - AC_CHECK_DECL([optreset], [GETOPT_H=getopt.h], [], [#include ]) - fi - - dnl Solaris 10 getopt doesn't handle `+' as a leading character in an - dnl option string (as of 2005-05-05). - if test -z "$GETOPT_H"; then - AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_gnu_getopt], - [AC_RUN_IFELSE( - [AC_LANG_PROGRAM([#include ], - [[ - char *myargv[3]; - myargv[0] = "conftest"; - myargv[1] = "-+"; - myargv[2] = 0; - return getopt (2, myargv, "+a") != '?'; - ]])], - [gl_cv_func_gnu_getopt=yes], - [gl_cv_func_gnu_getopt=no], - [dnl cross compiling - pessimistically guess based on decls - dnl Solaris 10 getopt doesn't handle `+' as a leading character in an - dnl option string (as of 2005-05-05). - AC_CHECK_DECL([getopt_clip], - [gl_cv_func_gnu_getopt=no], [gl_cv_func_gnu_getopt=yes], - [#include ])])]) - if test "$gl_cv_func_gnu_getopt" = "no"; then - GETOPT_H=getopt.h + dnl BSD getopt_long uses an incompatible method to reset option processing. + dnl Existence of the variable, in and of itself, is not a reason to replace + dnl getopt, but knowledge of the variable is needed to determine how to + dnl reset and whether a reset reparses the environment. + dnl Solaris supports neither optreset nor optind=0, but keeps no state that + dnl needs a reset beyond setting optind=1; detect Solaris by getopt_clip. + if test -z "$gl_replace_getopt"; then + AC_CHECK_DECLS([optreset], [], + [AC_CHECK_DECLS([getopt_clip], [], [], + [[#include ]]) + ], + [[#include ]]) + fi + + dnl mingw's getopt (in libmingwex.a) does weird things when the options + dnl strings starts with '+' and it's not the first call. Some internal state + dnl is left over from earlier calls, and neither setting optind = 0 nor + dnl setting optreset = 1 get rid of this internal state. + dnl POSIX is silent on optind vs. optreset, so we allow either behavior. + dnl POSIX 2008 does not specify leading '+' behavior, but see + dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on + dnl the next version of POSIX. For now, we only guarantee leading '+' + dnl behavior with getopt-gnu. + if test -z "$gl_replace_getopt"; then + AC_CACHE_CHECK([whether getopt is POSIX compatible], + [gl_cv_func_getopt_posix], + [ + dnl This test fails on mingw and succeeds on all other platforms. + AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include +#include +#include + +#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP +# define OPTIND_MIN 0 +#else +# define OPTIND_MIN 1 +#endif + +int +main () +{ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "ab"); + if (!(c == 'a')) + return 1; + c = getopt (argc, argv, "ab"); + if (!(c == -1)) + return 2; + if (!(optind == 2)) + return 3; + } + /* Some internal state exists at this point. */ + { + int argc = 0; + char *argv[10]; + int c; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = OPTIND_MIN; + opterr = 0; + + c = getopt (argc, argv, "+abp:q:"); + if (!(c == -1)) + return 4; + if (!(strcmp (argv[0], "program") == 0)) + return 5; + if (!(strcmp (argv[1], "donald") == 0)) + return 6; + if (!(strcmp (argv[2], "-p") == 0)) + return 7; + if (!(strcmp (argv[3], "billy") == 0)) + return 8; + if (!(strcmp (argv[4], "duck") == 0)) + return 9; + if (!(strcmp (argv[5], "-a") == 0)) + return 10; + if (!(strcmp (argv[6], "bar") == 0)) + return 11; + if (!(optind == 1)) + return 12; + } + /* Detect MacOS 10.5 bug. */ + { + char *argv[3] = { "program", "-ab", NULL }; + optind = OPTIND_MIN; + opterr = 0; + if (getopt (2, argv, "ab:") != 'a') + return 13; + if (getopt (2, argv, "ab:") != '?') + return 14; + if (optopt != 'b') + return 15; + if (optind != 2) + return 16; + } + + return 0; +} +]])], + [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no], + [case "$host_os" in + mingw*) gl_cv_func_getopt_posix="guessing no";; + darwin*) gl_cv_func_getopt_posix="guessing no";; + *) gl_cv_func_getopt_posix="guessing yes";; + esac + ]) + ]) + case "$gl_cv_func_getopt_posix" in + *no) gl_replace_getopt=yes ;; + esac + fi + + if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then + AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu], + [# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the + # optstring is necessary for programs like m4 that have POSIX-mandated + # semantics for supporting options interspersed with files. + # Also, since getopt_long is a GNU extension, we require optind=0. + gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes} + POSIXLY_CORRECT=1 + export POSIXLY_CORRECT + AC_RUN_IFELSE( + [AC_LANG_PROGRAM([[#include + #include + #include + ]], [[ + /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, + and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, + OSF/1 5.1, Solaris 10. */ + { + char *myargv[3]; + myargv[0] = "conftest"; + myargv[1] = "-+"; + myargv[2] = 0; + opterr = 0; + if (getopt (2, myargv, "+a") != '?') + return 1; + } + /* This code succeeds on glibc 2.8, mingw, + and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, + IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ + { + char *argv[] = { "program", "-p", "foo", "bar", NULL }; + + optind = 1; + if (getopt (4, argv, "p::") != 'p') + return 2; + if (optarg != NULL) + return 3; + if (getopt (4, argv, "p::") != -1) + return 4; + if (optind != 2) + return 5; + } + /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ + { + char *argv[] = { "program", "foo", "-p", NULL }; + optind = 0; + if (getopt (3, argv, "-p") != 1) + return 6; + if (getopt (3, argv, "-p") != 'p') + return 7; + } + /* This code fails on glibc 2.11. */ + { + char *argv[] = { "program", "-b", "-a", NULL }; + optind = opterr = 0; + if (getopt (3, argv, "+:a:b") != 'b') + return 8; + if (getopt (3, argv, "+:a:b") != ':') + return 9; + } + return 0; + ]])], + [gl_cv_func_getopt_gnu=yes], + [gl_cv_func_getopt_gnu=no], + [dnl Cross compiling. Guess based on host and declarations. + case $host_os:$ac_cv_have_decl_optreset in + *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; + *:yes) gl_cv_func_getopt_gnu=no;; + *) gl_cv_func_getopt_gnu=yes;; + esac + ]) + if test "$gl_had_POSIXLY_CORRECT" != yes; then + AS_UNSET([POSIXLY_CORRECT]) + fi + ]) + if test "$gl_cv_func_getopt_gnu" = "no"; then + gl_replace_getopt=yes fi fi ]) -AC_DEFUN([gl_GETOPT_IFELSE], +# emacs' configure.in uses this. +AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], [ - AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) - AS_IF([test -n "$GETOPT_H"], [$1], [$2]) + GETOPT_H=getopt.h + AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], + [Define to rpl_ if the getopt replacement functions and variables + should be used.]) + AC_SUBST([GETOPT_H]) ]) -AC_DEFUN([gl_GETOPT], [gl_GETOPT_IFELSE([gl_GETOPT_SUBSTITUTE])]) - # Prerequisites of lib/getopt*. +# emacs' configure.in uses this. AC_DEFUN([gl_PREREQ_GETOPT], [ AC_CHECK_DECLS_ONCE([getenv]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/getpagesize.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/getpagesize.m4 --- gettext-0.17/gettext-tools/gnulib-m4/getpagesize.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/getpagesize.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,33 @@ +# getpagesize.m4 serial 8 +dnl Copyright (C) 2002, 2004-2005, 2007, 2009-2010 Free Software Foundation, +dnl Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_GETPAGESIZE], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_FUNCS([getpagesize]) + if test $ac_cv_func_getpagesize = no; then + HAVE_GETPAGESIZE=0 + AC_CHECK_HEADERS([OS.h]) + if test $ac_cv_header_OS_h = yes; then + HAVE_OS_H=1 + fi + AC_CHECK_HEADERS([sys/param.h]) + if test $ac_cv_header_sys_param_h = yes; then + HAVE_SYS_PARAM_H=1 + fi + fi + case "$host_os" in + mingw*) + REPLACE_GETPAGESIZE=1 + AC_LIBOBJ([getpagesize]) + ;; + esac + dnl Also check whether it's declared. + dnl mingw has getpagesize() in libgcc.a but doesn't declare it. + AC_CHECK_DECL([getpagesize], , [HAVE_DECL_GETPAGESIZE=0]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/gettimeofday.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/gettimeofday.m4 --- gettext-0.17/gettext-tools/gnulib-m4/gettimeofday.m4 2007-03-17 16:32:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/gettimeofday.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,6 +1,6 @@ -#serial 11 +# serial 15 -# Copyright (C) 2001, 2002, 2003, 2005, 2007 Free Software Foundation, Inc. +# Copyright (C) 2001-2003, 2005, 2007, 2009-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,33 +11,53 @@ [ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_SYS_TIME_H]) + AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([gettimeofday]) - AC_CACHE_CHECK([for gettimeofday with POSIX signature], - [gl_cv_func_gettimeofday_posix_signature], - [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[#include - struct timeval c; - ]], - [[ - int (*f) (struct timeval *restrict, void *restrict) = gettimeofday; - int x = f (&c, 0); - return !(x | c.tv_sec | c.tv_usec); - ]])], - [gl_cv_func_gettimeofday_posix_signature=yes], - [gl_cv_func_gettimeofday_posix_signature=no])]) - - gl_FUNC_GETTIMEOFDAY_CLOBBER - - if test $gl_cv_func_gettimeofday_posix_signature != yes; then - REPLACE_GETTIMEOFDAY=1 - SYS_TIME_H=sys/time.h - if test $gl_cv_func_gettimeofday_clobber != yes; then - AC_LIBOBJ(gettimeofday) + gl_gettimeofday_timezone=void + if test $ac_cv_func_gettimeofday != yes; then + HAVE_GETTIMEOFDAY=0 + AC_LIBOBJ([gettimeofday]) + gl_PREREQ_GETTIMEOFDAY + else + gl_FUNC_GETTIMEOFDAY_CLOBBER + AC_CACHE_CHECK([for gettimeofday with POSIX signature], + [gl_cv_func_gettimeofday_posix_signature], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + struct timeval c; + int gettimeofday (struct timeval *restrict, void *restrict); + ]], + [[/* glibc uses struct timezone * rather than the POSIX void * + if _GNU_SOURCE is defined. However, since the only portable + use of gettimeofday uses NULL as the second parameter, and + since the glibc definition is actually more typesafe, it is + not worth wrapping this to get a compliant signature. */ + int (*f) (struct timeval *restrict, void *restrict) + = gettimeofday; + int x = f (&c, 0); + return !(x | c.tv_sec | c.tv_usec); + ]])], + [gl_cv_func_gettimeofday_posix_signature=yes], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include +int gettimeofday (struct timeval *restrict, struct timezone *restrict); + ]])], + [gl_cv_func_gettimeofday_posix_signature=almost], + [gl_cv_func_gettimeofday_posix_signature=no])])]) + if test $gl_cv_func_gettimeofday_posix_signature = almost; then + gl_gettimeofday_timezone='struct timezone' + elif test $gl_cv_func_gettimeofday_posix_signature != yes; then + REPLACE_GETTIMEOFDAY=1 + AC_LIBOBJ([gettimeofday]) gl_PREREQ_GETTIMEOFDAY fi fi + AC_DEFINE_UNQUOTED([GETTIMEOFDAY_TIMEZONE], [$gl_gettimeofday_timezone], + [Define this to 'void' or 'struct timezone' to match the system's + declaration of the second argument to gettimeofday.]) ]) @@ -56,21 +76,21 @@ [gl_cv_func_gettimeofday_clobber], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( - [[#include - #include - #include - #include - ]], - [[ - time_t t = 0; - struct tm *lt; - struct tm saved_lt; - struct timeval tv; - lt = localtime (&t); - saved_lt = *lt; - gettimeofday (&tv, NULL); - return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; - ]])], + [[#include + #include + #include + #include + ]], + [[ + time_t t = 0; + struct tm *lt; + struct tm saved_lt; + struct timeval tv; + lt = localtime (&t); + saved_lt = *lt; + gettimeofday (&tv, NULL); + return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; + ]])], [gl_cv_func_gettimeofday_clobber=no], [gl_cv_func_gettimeofday_clobber=yes], dnl When crosscompiling, assume it is broken. @@ -78,15 +98,14 @@ if test $gl_cv_func_gettimeofday_clobber = yes; then REPLACE_GETTIMEOFDAY=1 - SYS_TIME_H=sys/time.h gl_GETTIMEOFDAY_REPLACE_LOCALTIME - AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], 1, + AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], [1], [Define if gettimeofday clobbers the localtime buffer.]) fi ]) AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [ - AC_LIBOBJ(gettimeofday) + AC_LIBOBJ([gettimeofday]) gl_PREREQ_GETTIMEOFDAY AC_DEFINE([gmtime], [rpl_gmtime], [Define to rpl_gmtime if the replacement function should be used.]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/gl_list.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/gl_list.m4 --- gettext-0.17/gettext-tools/gnulib-m4/gl_list.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/gl_list.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ # gl_list.m4 serial 2 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/gnulib-cache.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-cache.m4 --- gettext-0.17/gettext-tools/gnulib-m4/gnulib-cache.m4 2007-11-06 23:30:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-cache.m4 2010-06-06 20:10:10.000000000 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -15,12 +15,128 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --aux-dir=../build-aux --with-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpexec error error-progname execute exit fd-ostream file-ostream filename findprog fnmatch-posix fopen fstrcmp full-write fwriteerror gcd gcj getline getopt gettext-h gettext-tools-misc hash html-styled-ostream iconv java javacomp javaexec linebreak localcharset locale localename lock memmove memset minmax obstack open openmp ostream pipe progname propername relocatable-prog relocatable-script sh-quote stdbool stdint stpcpy stpncpy strcspn strpbrk strtol strtoul styled-ostream sys_stat sys_time term-styled-ostream ucs4-utf8 uniname/uniname unistd uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf wait-process xalloc xerror xmalloca xsetenv xstriconv xvasprintf +# gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgettextlib --source-base=gnulib-lib --m4-base=gnulib-m4 --doc-base=doc --tests-base=gnulib-tests --aux-dir=../build-aux --with-tests --avoid=hash-tests --makefile-name=Makefile.gnulib --libtool --macro-prefix=gl alloca-opt arg-nonnull atexit backupfile basename binary-io bison-i18n byteswap c++defs c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpcomp-script csharpexec csharpexec-script error error-progname execute extensions fd-ostream file-ostream filename findprog fnmatch fopen fstrcmp full-write fwriteerror gcd gcj getline getopt-gnu gettext-h gettext-tools-misc hash html-styled-ostream iconv include_next java javacomp javacomp-script javaexec javaexec-script libunistring-optional localcharset locale localename lock malloc-posix mbrtowc mbsinit memmove memset minmax multiarch obstack open openmp ostream pipe pipe-filter-ii progname propername relocatable-prog relocatable-script sh-quote sigpipe sigprocmask ssize_t stdbool stddef stdint stdio stdlib stpcpy stpncpy strcspn streq strerror strpbrk strtol strtoul styled-ostream sys_select sys_stat sys_time term-styled-ostream unilbrk/ulc-width-linebreaks uniname/uniname unistd unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf verify wait-process warn-on-use wchar wctype write xalloc xconcat-filename xerror xmalloca xsetenv xstriconv xstriconveh xvasprintf # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([../gnulib-local]) -gl_MODULES([alloca-opt atexit backupfile basename binary-io bison-i18n byteswap c-ctype c-strcase c-strcasestr c-strstr clean-temp closeout copy-file csharpcomp csharpexec error error-progname execute exit fd-ostream file-ostream filename findprog fnmatch-posix fopen fstrcmp full-write fwriteerror gcd gcj getline getopt gettext-h gettext-tools-misc hash html-styled-ostream iconv java javacomp javaexec linebreak localcharset locale localename lock memmove memset minmax obstack open openmp ostream pipe progname propername relocatable-prog relocatable-script sh-quote stdbool stdint stpcpy stpncpy strcspn strpbrk strtol strtoul styled-ostream sys_stat sys_time term-styled-ostream ucs4-utf8 uniname/uniname unistd uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf wait-process xalloc xerror xmalloca xsetenv xstriconv xvasprintf]) -gl_AVOID([]) +gl_MODULES([ + alloca-opt + arg-nonnull + atexit + backupfile + basename + binary-io + bison-i18n + byteswap + c++defs + c-ctype + c-strcase + c-strcasestr + c-strstr + clean-temp + closeout + copy-file + csharpcomp + csharpcomp-script + csharpexec + csharpexec-script + error + error-progname + execute + extensions + fd-ostream + file-ostream + filename + findprog + fnmatch + fopen + fstrcmp + full-write + fwriteerror + gcd + gcj + getline + getopt-gnu + gettext-h + gettext-tools-misc + hash + html-styled-ostream + iconv + include_next + java + javacomp + javacomp-script + javaexec + javaexec-script + libunistring-optional + localcharset + locale + localename + lock + malloc-posix + mbrtowc + mbsinit + memmove + memset + minmax + multiarch + obstack + open + openmp + ostream + pipe + pipe-filter-ii + progname + propername + relocatable-prog + relocatable-script + sh-quote + sigpipe + sigprocmask + ssize_t + stdbool + stddef + stdint + stdio + stdlib + stpcpy + stpncpy + strcspn + streq + strerror + strpbrk + strtol + strtoul + styled-ostream + sys_select + sys_stat + sys_time + term-styled-ostream + unilbrk/ulc-width-linebreaks + uniname/uniname + unistd + unistr/u16-mbtouc + unistr/u8-mbtouc + unistr/u8-uctomb + uniwidth/width + unlocked-io + vasprintf + verify + wait-process + warn-on-use + wchar + wctype + write + xalloc + xconcat-filename + xerror + xmalloca + xsetenv + xstriconv + xstriconveh + xvasprintf +]) +gl_AVOID([hash-tests]) gl_SOURCE_BASE([gnulib-lib]) gl_M4_BASE([gnulib-m4]) gl_PO_BASE([]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/gnulib-common.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-common.m4 --- gettext-0.17/gettext-tools/gnulib-m4/gnulib-common.m4 2007-10-26 00:52:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-common.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,22 +1,134 @@ -# gnulib-common.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# gnulib-common.m4 serial 20 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +# gl_COMMON +# is expanded unconditionally through gnulib-tool magic. +AC_DEFUN([gl_COMMON], [ + dnl Use AC_REQUIRE here, so that the code is expanded once only. + AC_REQUIRE([gl_00GNULIB]) + AC_REQUIRE([gl_COMMON_BODY]) +]) +AC_DEFUN([gl_COMMON_BODY], [ + AH_VERBATIM([isoc99_inline], +[/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports + the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of + earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. + __APPLE__ && __MACH__ test for MacOS X. + __APPLE_CC__ tests for the Apple compiler and its version. + __STDC_VERSION__ tests for the C99 mode. */ +#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ +# define __GNUC_STDC_INLINE__ 1 +#endif]) + AH_VERBATIM([unused_parameter], +[/* Define as a marker that can be attached to declarations that might not + be used. This helps to reduce warnings, such as from + GCC -Wunused-parameter. */ +#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) +# define _GL_UNUSED __attribute__ ((__unused__)) +#else +# define _GL_UNUSED +#endif +/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name + is a misnomer outside of parameter lists. */ +#define _UNUSED_PARAMETER_ _GL_UNUSED +]) + dnl Preparation for running test programs: + dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not + dnl to /dev/tty, so they can be redirected to log files. Such diagnostics + dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N. + LIBC_FATAL_STDERR_=1 + export LIBC_FATAL_STDERR_ +]) + +# gl_MODULE_INDICATOR_CONDITION +# expands to a C preprocessor expression that evaluates to 1 or 0, depending +# whether a gnulib module that has been requested shall be considered present +# or not. +AC_DEFUN([gl_MODULE_INDICATOR_CONDITION], [1]) + +# gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) +# sets the shell variable that indicates the presence of the given module to +# a C preprocessor expression that will evaluate to 1. +AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], +[ + GNULIB_[]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION +]) + # gl_MODULE_INDICATOR([modulename]) -# defines a C macro indicating the presence of the given module. +# defines a C macro indicating the presence of the given module +# in a location where it can be used. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 0 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ AC_DEFUN([gl_MODULE_INDICATOR], [ - AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], - [Define to 1 when using the gnulib module ]$1[.]) + AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), + [gl_MODULE_INDICATOR_CONDITION], + [Define to a C preprocessor expression that evaluates to 1 or 0, + depending whether the gnulib module $1 shall be considered present.]) ]) -# AC_PROG_MKDIR_P -# is a backport of autoconf-2.60's AC_PROG_MKDIR_P. +# gl_MODULE_INDICATOR_FOR_TESTS([modulename]) +# defines a C macro indicating the presence of the given module +# in lib or tests. This is useful to determine whether the module +# should be tested. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ +AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], +[ + AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], + [Define to 1 when the gnulib module $1 should be tested.]) +]) + +# m4_foreach_w +# is a backport of autoconf-2.59c's m4_foreach_w. # Remove this macro when we can assume autoconf >= 2.60. -m4_ifdef([AC_PROG_MKDIR_P], [], [ - AC_DEFUN([AC_PROG_MKDIR_P], +m4_ifndef([m4_foreach_w], + [m4_define([m4_foreach_w], + [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])]) + +# AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH]) +# ---------------------------------------------------- +# Backport of autoconf-2.63b's macro. +# Remove this macro when we can assume autoconf >= 2.64. +m4_ifndef([AS_VAR_IF], +[m4_define([AS_VAR_IF], +[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) + +# AC_PROG_MKDIR_P +# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix +# for interoperability with automake-1.9.6 from autoconf-2.62. +# Remove this macro when we can assume autoconf >= 2.62 or +# autoconf >= 2.60 && automake >= 1.10. +m4_ifdef([AC_PROG_MKDIR_P], [ + dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed. + m4_define([AC_PROG_MKDIR_P], + m4_defn([AC_PROG_MKDIR_P])[ + AC_SUBST([MKDIR_P])])], [ + dnl For autoconf < 2.60: Backport of AC_PROG_MKDIR_P. + AC_DEFUN_ONCE([AC_PROG_MKDIR_P], [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake MKDIR_P='$(mkdir_p)' AC_SUBST([MKDIR_P])])]) @@ -26,20 +138,21 @@ # so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ # works. # This definition can be removed once autoconf >= 2.62 can be assumed. +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[ AC_DEFUN([AC_C_RESTRICT], -[AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, +[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], [ac_cv_c_restrict=no # The order here caters to the fact that C++ does not require restrict. for ac_kw in __restrict __restrict__ _Restrict restrict; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[typedef int * int_ptr; - int foo (int_ptr $ac_kw ip) { - return ip[0]; + int foo (int_ptr $ac_kw ip) { + return ip[0]; }]], [[int s[1]; - int * $ac_kw t = s; - t[0] = 0; - return foo(t)]])], + int * $ac_kw t = s; + t[0] = 0; + return foo(t)]])], [ac_cv_c_restrict=$ac_kw]) test "$ac_cv_c_restrict" != no && break done @@ -63,3 +176,26 @@ *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; esac ]) +]) + +# gl_BIGENDIAN +# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. +# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some +# macros invoke AC_C_BIGENDIAN with arguments. +AC_DEFUN([gl_BIGENDIAN], +[ + AC_C_BIGENDIAN +]) + +# gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) +# is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not +# output a spurious "(cached)" mark in the midst of other configure output. +# This macro should be used instead of AC_CACHE_VAL when it is not surrounded +# by an AC_MSG_CHECKING/AC_MSG_RESULT pair. +AC_DEFUN([gl_CACHE_VAL_SILENT], +[ + saved_as_echo_n="$as_echo_n" + as_echo_n=':' + AC_CACHE_VAL([$1], [$2]) + as_echo_n="$saved_as_echo_n" +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/gnulib-comp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-comp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/gnulib-comp.m4 2007-10-28 22:54:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/gnulib-comp.m4 2010-06-06 13:12:21.000000000 +0000 @@ -1,5 +1,5 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -26,222 +26,992 @@ m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) AC_REQUIRE([AM_PROG_CC_C_O]) - AC_REQUIRE([AC_GNU_SOURCE]) + # Code from module acl: + # Code from module acl-tests: + # Code from module alignof: + # Code from module alignof-tests: + # Code from module alloca-opt: + # Code from module alloca-opt-tests: + # Code from module areadlink: + # Code from module areadlink-tests: + # Code from module arg-nonnull: + # Code from module argmatch: + # Code from module argmatch-tests: + # Code from module array-list: + # Code from module array-list-tests: + # Code from module atexit: + # Code from module atexit-tests: + # Code from module backupfile: + # Code from module basename: + # Code from module binary-io: + # Code from module binary-io-tests: + # Code from module bison-i18n: + # Code from module byteswap: + # Code from module byteswap-tests: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-ctype-tests: + # Code from module c-strcase: + # Code from module c-strcase-tests: + # Code from module c-strcaseeq: + # Code from module c-strcasestr: + # Code from module c-strcasestr-tests: + # Code from module c-strstr: + # Code from module c-strstr-tests: + # Code from module canonicalize-lgpl: + # Code from module canonicalize-lgpl-tests: + # Code from module classpath: + # Code from module clean-temp: + # Code from module cloexec: + # Code from module cloexec-tests: + # Code from module closeout: + # Code from module concat-filename: + # Code from module configmake: + # Code from module copy-file: + # Code from module copy-file-tests: + # Code from module csharpcomp: + # Code from module csharpcomp-script: + # Code from module csharpexec: + # Code from module csharpexec-script: + # Code from module diffseq: + # Code from module double-slash-root: + # Code from module dup2: + # Code from module dup2-tests: + # Code from module environ: + # Code from module environ-tests: + # Code from module errno: + # Code from module errno-tests: + # Code from module error: + # Code from module error-progname: + # Code from module execute: + # Code from module exitfail: + # Code from module extensions: AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) - AC_REQUIRE([gl_LOCK_EARLY]) + # Code from module fatal-signal: + # Code from module fcntl: + # Code from module fcntl-h: + # Code from module fcntl-h-tests: + # Code from module fcntl-tests: + # Code from module fd-ostream: + # Code from module fd-safer-flag: + # Code from module file-ostream: + # Code from module filename: + # Code from module findprog: + # Code from module float: + # Code from module fnmatch: + # Code from module fnmatch-tests: + # Code from module fopen: + # Code from module fopen-tests: + # Code from module fstrcmp: + # Code from module fstrcmp-tests: + # Code from module full-write: + # Code from module fwriteerror: + # Code from module gcd: + # Code from module gcj: + # Code from module getdelim: + # Code from module getdelim-tests: + # Code from module getdtablesize: + # Code from module getdtablesize-tests: + # Code from module getline: + # Code from module getline-tests: + # Code from module getopt-gnu: + # Code from module getopt-posix: + # Code from module getopt-posix-tests: + # Code from module getpagesize: + # Code from module gettext: + # Code from module gettext-h: + # Code from module gettext-tools-misc: + # Code from module gettimeofday: + # Code from module gettimeofday-tests: + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module html-ostream: + # Code from module html-styled-ostream: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv-h-tests: + # Code from module iconv-tests: + # Code from module iconv_open: + # Code from module ignore-value: + # Code from module include_next: + # Code from module inline: + # Code from module intprops: + # Code from module java: + # Code from module javacomp: + # Code from module javacomp-script: + # Code from module javaexec: + # Code from module javaexec-script: + # Code from module javaversion: + # Code from module libcroco: + # Code from module libglib: + # Code from module libunistring-optional: + # Code from module libxml: + # Code from module linkedhash-list: + # Code from module linkedhash-list-tests: + # Code from module list: + # Code from module localcharset: + # Code from module locale: + # Code from module locale-tests: + # Code from module localename: + # Code from module localename-tests: + # Code from module lock: + # Code from module lock-tests: + # Code from module lstat: + # Code from module lstat-tests: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module malloca-tests: + # Code from module mbchar: + # Code from module mbiter: + # Code from module mbrtowc: + # Code from module mbrtowc-tests: + # Code from module mbsinit: + # Code from module mbsinit-tests: + # Code from module mbslen: + # Code from module mbsrtowcs: + # Code from module mbsrtowcs-tests: + # Code from module mbsstr: + # Code from module mbsstr-tests: + # Code from module mbswidth: + # Code from module mbuiter: + # Code from module memchr: + # Code from module memchr-tests: + # Code from module memmove: + # Code from module memset: + # Code from module minmax: + # Code from module mkdtemp: + # Code from module moo: + # Code from module moo-tests: + # Code from module multiarch: + # Code from module no-c++: + # Code from module obstack: + # Code from module open: + # Code from module open-tests: + # Code from module openmp: + # Code from module ostream: + # Code from module pathmax: + # Code from module pipe: + # Code from module pipe-filter-ii: + # Code from module pipe-filter-ii-tests: + # Code from module pipe-tests: + # Code from module pipe2: + # Code from module pipe2-safer: + # Code from module pipe2-tests: + # Code from module posix_spawn-internal: + # Code from module posix_spawn_file_actions_addclose: + # Code from module posix_spawn_file_actions_adddup2: + # Code from module posix_spawn_file_actions_addopen: + # Code from module posix_spawn_file_actions_destroy: + # Code from module posix_spawn_file_actions_init: + # Code from module posix_spawnattr_destroy: + # Code from module posix_spawnattr_init: + # Code from module posix_spawnattr_setflags: + # Code from module posix_spawnattr_setsigmask: + # Code from module posix_spawnp: + # Code from module posix_spawnp-tests: + # Code from module progname: + # Code from module propername: + # Code from module putenv: + # Code from module quote: + # Code from module quotearg: + # Code from module quotearg-simple: + # Code from module quotearg-simple-tests: + # Code from module rawmemchr: + # Code from module rawmemchr-tests: + # Code from module read-file: + # Code from module read-file-tests: + # Code from module readlink: + # Code from module readlink-tests: + # Code from module realloc-posix: + # Code from module relocatable-prog: + # Code from module relocatable-prog-wrapper: + # Code from module relocatable-script: + # Code from module rmdir: + # Code from module rmdir-tests: + # Code from module safe-read: + # Code from module safe-write: + # Code from module same-inode: + # Code from module sched: + # Code from module sched-tests: + # Code from module setenv: + # Code from module setenv-tests: + # Code from module sh-quote: + # Code from module sigaction: + # Code from module sigaction-tests: + # Code from module signal: + # Code from module signal-tests: + # Code from module sigpipe: + # Code from module sigpipe-tests: + # Code from module sigprocmask: + # Code from module size_max: + # Code from module snprintf: + # Code from module snprintf-tests: + # Code from module spawn: + # Code from module spawn-tests: + # Code from module ssize_t: + # Code from module stat: + # Code from module stat-tests: + # Code from module stdarg: dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode dnl for the builtin va_copy to work. With Autoconf 2.60 or later, dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC dnl shouldn't hurt, though installers are on their own to set c99 mode. AC_REQUIRE([AC_PROG_CC_STDC]) + # Code from module stdbool: + # Code from module stdbool-tests: + # Code from module stddef: + # Code from module stddef-tests: + # Code from module stdint: + # Code from module stdint-tests: + # Code from module stdio: + # Code from module stdio-tests: + # Code from module stdlib: + # Code from module stdlib-tests: + # Code from module stpcpy: + # Code from module stpncpy: + # Code from module strchrnul: + # Code from module strchrnul-tests: + # Code from module strcspn: + # Code from module streq: + # Code from module strerror: + # Code from module strerror-tests: + # Code from module striconv: + # Code from module striconv-tests: + # Code from module striconveh: + # Code from module striconveh-tests: + # Code from module striconveha: + # Code from module striconveha-tests: + # Code from module string: + # Code from module string-tests: + # Code from module strnlen: + # Code from module strnlen1: + # Code from module strpbrk: + # Code from module strstr: + # Code from module strstr-simple: + # Code from module strstr-tests: + # Code from module strtol: + # Code from module strtoul: + # Code from module styled-ostream: + # Code from module symlink: + # Code from module symlink-tests: + # Code from module sys_select: + # Code from module sys_select-tests: + # Code from module sys_socket: + # Code from module sys_socket-tests: + # Code from module sys_stat: + # Code from module sys_stat-tests: + # Code from module sys_time: + # Code from module sys_time-tests: + # Code from module sys_wait: + # Code from module sys_wait-tests: + # Code from module tempname: + # Code from module term-ostream: + # Code from module term-ostream-tests: + # Code from module term-styled-ostream: + # Code from module terminfo: + # Code from module terminfo-h: + # Code from module thread: + # Code from module threadlib: + gl_THREADLIB_EARLY + # Code from module time: + # Code from module time-tests: + # Code from module tls: + # Code from module tls-tests: + # Code from module tmpdir: + # Code from module trim: + # Code from module uniconv/base: + # Code from module uniconv/u8-conv-from-enc: + # Code from module uniconv/u8-conv-from-enc-tests: + # Code from module unilbrk/base: + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: + # Code from module unilbrk/u8-possible-linebreaks-tests: + # Code from module unilbrk/u8-width-linebreaks: + # Code from module unilbrk/u8-width-linebreaks-tests: + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + # Code from module unilbrk/ulc-width-linebreaks-tests: + # Code from module uniname/base: + # Code from module uniname/uniname: + # Code from module uniname/uniname-tests: + # Code from module unistd: + # Code from module unistd-safer: + # Code from module unistd-safer-tests: + # Code from module unistd-tests: + # Code from module unistr/base: + # Code from module unistr/u16-mbtouc: + # Code from module unistr/u16-mbtouc-tests: + # Code from module unistr/u8-check: + # Code from module unistr/u8-check-tests: + # Code from module unistr/u8-cmp: + # Code from module unistr/u8-cmp-tests: + # Code from module unistr/u8-mblen: + # Code from module unistr/u8-mblen-tests: + # Code from module unistr/u8-mbtouc: + # Code from module unistr/u8-mbtouc-tests: + # Code from module unistr/u8-mbtouc-unsafe: + # Code from module unistr/u8-mbtouc-unsafe-tests: + # Code from module unistr/u8-mbtoucr: + # Code from module unistr/u8-mbtoucr-tests: + # Code from module unistr/u8-prev: + # Code from module unistr/u8-prev-tests: + # Code from module unistr/u8-strlen: + # Code from module unistr/u8-strlen-tests: + # Code from module unistr/u8-uctomb: + # Code from module unistr/u8-uctomb-tests: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module uniwidth/width-tests: + # Code from module unlocked-io: + # Code from module unsetenv: + # Code from module unsetenv-tests: + # Code from module unused-parameter: + # Code from module vasnprintf: + # Code from module vasnprintf-tests: + # Code from module vasprintf: + # Code from module vasprintf-tests: + # Code from module verify: + # Code from module verify-tests: + # Code from module vsnprintf: + # Code from module vsnprintf-tests: + # Code from module wait-process: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wchar-tests: + # Code from module wctob: + # Code from module wctype: + # Code from module wctype-tests: + # Code from module wcwidth: + # Code from module wcwidth-tests: + # Code from module write: + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xalloc-die-tests: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xlist: + # Code from module xmalloca: + # Code from module xreadlink: + # Code from module xsetenv: + # Code from module xsize: + # Code from module xstriconv: + # Code from module xstriconveh: + # Code from module xvasprintf: + # Code from module xvasprintf-tests: + # Code from module yield: ]) # This macro should be invoked from gettext-tools/configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gl_INIT], [ + AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) + gl_cond_libtool=true + gl_m4_base='gnulib-m4' m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) - AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) - gl_cond_libtool=true + m4_pushdef([gl_LIBSOURCES_LIST], []) + m4_pushdef([gl_LIBSOURCES_DIR], []) + gl_COMMON gl_source_base='gnulib-lib' - AC_FUNC_ACL + # Code from module acl: + gl_FUNC_ACL + # Code from module alignof: + # Code from module alloca-opt: gl_FUNC_ALLOCA + # Code from module areadlink: + # Code from module arg-nonnull: + # Code from module argmatch: gl_ARGMATCH + # Code from module array-list: + # Code from module atexit: gl_FUNC_ATEXIT + # Code from module backupfile: gt_PREREQ_BACKUPFILE + # Code from module basename: + # Code from module binary-io: + # Code from module bison-i18n: BISON_I18N + # Code from module byteswap: gl_BYTESWAP - gt_LOCALE_FR - gt_LOCALE_TR_UTF8 + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strcasestr: + # Code from module c-strstr: + # Code from module canonicalize-lgpl: gl_CANONICALIZE_LGPL + gl_MODULE_INDICATOR([canonicalize-lgpl]) + gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) + gl_STDLIB_MODULE_INDICATOR([realpath]) + # Code from module classpath: + # Code from module clean-temp: AC_DEFINE([SIGNAL_SAFE_LIST], [1], [Define if lists must be signal-safe.]) + # Code from module cloexec: + gl_CLOEXEC + gl_MODULE_INDICATOR_FOR_TESTS([cloexec]) + # Code from module closeout: + # Code from module concat-filename: + # Code from module configmake: + # Code from module copy-file: gl_COPY_FILE + # Code from module csharpcomp: + # Code from module csharpcomp-script: AC_REQUIRE([gt_CSHARPCOMP]) AC_CONFIG_FILES([csharpcomp.sh:../build-aux/csharpcomp.sh.in]) + # Code from module csharpexec: + # Code from module csharpexec-script: # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments. AC_CONFIG_FILES([csharpexec.sh:../build-aux/csharpexec.sh.in]) + # Code from module diffseq: + # Code from module double-slash-root: + gl_DOUBLE_SLASH_ROOT + # Code from module dup2: + gl_FUNC_DUP2 + gl_UNISTD_MODULE_INDICATOR([dup2]) + # Code from module environ: + gl_ENVIRON + gl_UNISTD_MODULE_INDICATOR([environ]) + # Code from module errno: + gl_HEADER_ERRNO_H + # Code from module error: gl_ERROR m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=error:3:c-format]) - AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) + AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) + # Code from module error-progname: + # Code from module execute: gl_EXECUTE - gl_EXITFAIL + # Code from module exitfail: + # Code from module extensions: + # Code from module fatal-signal: gl_FATAL_SIGNAL + # Code from module fcntl: + gl_FUNC_FCNTL + gl_FCNTL_MODULE_INDICATOR([fcntl]) + # Code from module fcntl-h: gl_FCNTL_H + # Code from module fd-ostream: + # Code from module fd-safer-flag: + gl_MODULE_INDICATOR([fd-safer-flag]) + # Code from module file-ostream: + # Code from module filename: + # Code from module findprog: gl_FINDPROG + # Code from module float: gl_FLOAT_H - # No macro. You should also use one of fnmatch-posix or fnmatch-gnu. + # Code from module fnmatch: gl_FUNC_FNMATCH_POSIX + # Code from module fopen: gl_FUNC_FOPEN gl_STDIO_MODULE_INDICATOR([fopen]) + # Code from module fstrcmp: + # Code from module full-write: + # Code from module fwriteerror: gl_MODULE_INDICATOR([fwriteerror]) + # Code from module gcd: + # Code from module gcj: gt_GCJ + # Code from module getdelim: gl_FUNC_GETDELIM gl_STDIO_MODULE_INDICATOR([getdelim]) + # Code from module getdtablesize: + gl_FUNC_GETDTABLESIZE + gl_UNISTD_MODULE_INDICATOR([getdtablesize]) + # Code from module getline: gl_FUNC_GETLINE gl_STDIO_MODULE_INDICATOR([getline]) - gl_GETOPT + # Code from module getopt-gnu: + gl_FUNC_GETOPT_GNU + gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu]) + # Code from module getopt-posix: + gl_FUNC_GETOPT_POSIX + # Code from module gettext: dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. - AM_GNU_GETTEXT_VERSION([0.16.1]) + AM_GNU_GETTEXT_VERSION([0.18]) + # Code from module gettext-h: AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) + # Code from module gettext-tools-misc: + # Code from module gettimeofday: gl_FUNC_GETTIMEOFDAY + gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module html-ostream: + # Code from module html-styled-ostream: + # Code from module iconv: AM_ICONV + # Code from module iconv-h: gl_ICONV_H + # Code from module iconv_open: gl_FUNC_ICONV_OPEN + # Code from module include_next: + # Code from module inline: gl_INLINE + # Code from module intprops: + # Code from module java: gt_JAVA_CHOICE + # Code from module javacomp: + # Code from module javacomp-script: # You need to invoke gt_JAVACOMP yourself, possibly with arguments. AC_CONFIG_FILES([javacomp.sh:../build-aux/javacomp.sh.in]) + # Code from module javaexec: + # Code from module javaexec-script: # You need to invoke gt_JAVAEXEC yourself, possibly with arguments. AC_CONFIG_FILES([javaexec.sh:../build-aux/javaexec.sh.in]) + # Code from module javaversion: + # Code from module libcroco: gl_LIBCROCO + # Code from module libglib: gl_LIBGLIB + # Code from module libunistring-optional: + gl_LIBUNISTRING_OPTIONAL + # Code from module libxml: gl_LIBXML - gl_LINEBREAK + # Code from module linkedhash-list: + # Code from module list: gl_LIST + # Code from module localcharset: gl_LOCALCHARSET + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" + AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) + # Code from module locale: gl_LOCALE_H + # Code from module localename: gl_LOCALENAME + # Code from module lock: gl_LOCK - dnl Checks for special libraries for the tests/test-lock test. - dnl On some systems, sched_yield is in librt, rather than in libpthread. - LIBSCHED= - if test $gl_threads_api = posix; then - dnl Solaris has sched_yield in librt, not in libpthread or libc. - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], - [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. - AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) - fi - AC_SUBST([LIBSCHED]) + # Code from module lstat: + gl_FUNC_LSTAT + gl_SYS_STAT_MODULE_INDICATOR([lstat]) + # Code from module malloc-posix: gl_FUNC_MALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([malloc-posix]) + # Code from module malloca: gl_MALLOCA + # Code from module mbchar: gl_MBCHAR + # Code from module mbiter: + gl_MBITER + # Code from module mbrtowc: + gl_FUNC_MBRTOWC + gl_WCHAR_MODULE_INDICATOR([mbrtowc]) + # Code from module mbsinit: + gl_FUNC_MBSINIT + gl_WCHAR_MODULE_INDICATOR([mbsinit]) + # Code from module mbslen: gl_FUNC_MBSLEN gl_STRING_MODULE_INDICATOR([mbslen]) - gl_FUNC_MBSSTR + # Code from module mbsrtowcs: + gl_FUNC_MBSRTOWCS + gl_WCHAR_MODULE_INDICATOR([mbsrtowcs]) + # Code from module mbsstr: gl_STRING_MODULE_INDICATOR([mbsstr]) - gt_LOCALE_FR_UTF8 - gt_LOCALE_ZH_CN + # Code from module mbswidth: gl_MBSWIDTH + # Code from module mbuiter: gl_MBITER + # Code from module memchr: gl_FUNC_MEMCHR + gl_STRING_MODULE_INDICATOR([memchr]) + # Code from module memmove: gl_FUNC_MEMMOVE + # Code from module memset: gl_FUNC_MEMSET + # Code from module minmax: gl_MINMAX + # Code from module mkdtemp: gt_FUNC_MKDTEMP gl_STDLIB_MODULE_INDICATOR([mkdtemp]) + # Code from module moo: gl_MOO + # Code from module multiarch: + gl_MULTIARCH + # Code from module no-c++: gt_NO_CXX + # Code from module obstack: AC_FUNC_OBSTACK dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]). + # Code from module open: gl_FUNC_OPEN - gl_MODULE_INDICATOR([open]) gl_FCNTL_MODULE_INDICATOR([open]) + # Code from module openmp: AC_OPENMP + # Code from module ostream: + # Code from module pathmax: gl_PATHMAX + # Code from module pipe: gl_PIPE + # Code from module pipe-filter-ii: + AC_REQUIRE([AC_C_INLINE]) + AC_CHECK_FUNCS_ONCE([select]) + # Code from module pipe2: + gl_FUNC_PIPE2 + gl_UNISTD_MODULE_INDICATOR([pipe2]) + # Code from module pipe2-safer: + gl_MODULE_INDICATOR([pipe2-safer]) + # Code from module posix_spawn-internal: + # Code from module posix_spawn_file_actions_addclose: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawn_faction_addclose]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose]) + # Code from module posix_spawn_file_actions_adddup2: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawn_faction_adddup2]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2]) + # Code from module posix_spawn_file_actions_addopen: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawn_faction_addopen]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen]) + # Code from module posix_spawn_file_actions_destroy: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawn_faction_destroy]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_destroy]) + # Code from module posix_spawn_file_actions_init: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawn_faction_init]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init]) + # Code from module posix_spawnattr_destroy: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawnattr_destroy]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy]) + # Code from module posix_spawnattr_init: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawnattr_init]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_init]) + # Code from module posix_spawnattr_setflags: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawnattr_setflags]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setflags]) + # Code from module posix_spawnattr_setsigmask: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawnattr_setsigmask]) + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigmask]) + # Code from module posix_spawnp: + gl_POSIX_SPAWN + if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then + gl_REPLACE_SPAWN_H + AC_LIBOBJ([spawnp]) + gl_POSIX_SPAWN_INTERNAL + fi + gl_SPAWN_MODULE_INDICATOR([posix_spawnp]) + # Code from module progname: + AC_CHECK_DECLS([program_invocation_name], [], [], [#include ]) + AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include ]) + # Code from module propername: + m4_ifdef([AM_XGETTEXT_OPTION], + [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"']) + AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])]) + # Code from module quote: gl_QUOTE + # Code from module quotearg: gl_QUOTEARG + # Code from module quotearg-simple: + # Code from module rawmemchr: + gl_FUNC_RAWMEMCHR + gl_STRING_MODULE_INDICATOR([rawmemchr]) + # Code from module readlink: gl_FUNC_READLINK gl_UNISTD_MODULE_INDICATOR([readlink]) + # Code from module realloc-posix: gl_FUNC_REALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([realloc-posix]) + # Code from module relocatable-prog: gl_RELOCATABLE([$gl_source_base]) + # Code from module relocatable-prog-wrapper: gl_FUNC_READLINK_SEPARATE gl_CANONICALIZE_LGPL_SEPARATE gl_MALLOCA gl_RELOCATABLE_LIBRARY_SEPARATE gl_FUNC_SETENV_SEPARATE gl_FUNC_STRERROR_SEPARATE + # Code from module relocatable-script: AC_REQUIRE([gl_RELOCATABLE_NOP]) relocatable_sh=$ac_aux_dir/relocatable.sh.in AC_SUBST_FILE([relocatable_sh]) + # Code from module rmdir: + gl_FUNC_RMDIR + gl_UNISTD_MODULE_INDICATOR([rmdir]) + # Code from module safe-read: gl_SAFE_READ + # Code from module safe-write: gl_SAFE_WRITE + # Code from module sched: + gl_SCHED_H + # Code from module setenv: gl_FUNC_SETENV - gl_FUNC_UNSETENV + gl_STDLIB_MODULE_INDICATOR([setenv]) + # Code from module sh-quote: + # Code from module sigaction: + gl_SIGACTION + gl_SIGNAL_MODULE_INDICATOR([sigaction]) + # Code from module signal: gl_SIGNAL_H + # Code from module sigpipe: + gl_SIGNAL_SIGPIPE + dnl Define the C macro GNULIB_SIGPIPE to 1. + gl_MODULE_INDICATOR([sigpipe]) + dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1. + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + GNULIB_SIGNAL_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1. + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + GNULIB_STDIO_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1. + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: gl_SIGNALBLOCKING gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) + # Code from module size_max: gl_SIZE_MAX + # Code from module snprintf: gl_FUNC_SNPRINTF gl_STDIO_MODULE_INDICATOR([snprintf]) + # Code from module spawn: + gl_SPAWN_H + # Code from module ssize_t: gt_TYPE_SSIZE_T + # Code from module stat: + gl_FUNC_STAT + gl_SYS_STAT_MODULE_INDICATOR([stat]) + # Code from module stdarg: gl_STDARG_H + # Code from module stdbool: AM_STDBOOL_H + # Code from module stddef: + gl_STDDEF_H + # Code from module stdint: gl_STDINT_H - gt_TYPE_WCHAR_T - gt_TYPE_WINT_T + # Code from module stdio: gl_STDIO_H + # Code from module stdlib: gl_STDLIB_H + # Code from module stpcpy: gl_FUNC_STPCPY gl_STRING_MODULE_INDICATOR([stpcpy]) + # Code from module stpncpy: gl_FUNC_STPNCPY gl_STRING_MODULE_INDICATOR([stpncpy]) + # Code from module strchrnul: + gl_FUNC_STRCHRNUL + gl_STRING_MODULE_INDICATOR([strchrnul]) + # Code from module strcspn: gl_FUNC_STRCSPN - gl_FUNC_STRDUP - gl_STRING_MODULE_INDICATOR([strdup]) + # Code from module streq: + # Code from module strerror: gl_FUNC_STRERROR gl_STRING_MODULE_INDICATOR([strerror]) + # Code from module striconv: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveh: if test $gl_cond_libtool = false; then gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" gl_libdeps="$gl_libdeps $LIBICONV" fi + # Code from module striconveha: + # Code from module string: gl_HEADER_STRING_H + # Code from module strnlen: gl_FUNC_STRNLEN gl_STRING_MODULE_INDICATOR([strnlen]) + # Code from module strnlen1: + # Code from module strpbrk: gl_FUNC_STRPBRK gl_STRING_MODULE_INDICATOR([strpbrk]) + # Code from module strstr: + gl_FUNC_STRSTR + # Code from module strstr-simple: + gl_FUNC_STRSTR_SIMPLE + gl_STRING_MODULE_INDICATOR([strstr]) + # Code from module strtol: gl_FUNC_STRTOL + # Code from module strtoul: gl_FUNC_STRTOUL + # Code from module styled-ostream: + # Code from module sys_select: + gl_HEADER_SYS_SELECT + AC_PROG_MKDIR_P + # Code from module sys_socket: + gl_HEADER_SYS_SOCKET + AC_PROG_MKDIR_P + # Code from module sys_stat: gl_HEADER_SYS_STAT_H AC_PROG_MKDIR_P + # Code from module sys_time: gl_HEADER_SYS_TIME_H AC_PROG_MKDIR_P + # Code from module sys_wait: + gl_SYS_WAIT_H + AC_PROG_MKDIR_P + # Code from module tempname: gl_FUNC_GEN_TEMPNAME + # Code from module term-ostream: gl_TERM_OSTREAM + # Code from module term-styled-ostream: + # Code from module terminfo: gl_TERMINFO + # Code from module terminfo-h: + # Code from module threadlib: + gl_THREADLIB + # Code from module time: + gl_HEADER_TIME_H + # Code from module tls: gl_TLS - dnl Checks for special libraries for the tests/test-tls test. - dnl On some systems, sched_yield is in librt, rather than in libpthread. - LIBSCHED= - if test $gl_threads_api = posix; then - dnl Solaris has sched_yield in librt, not in libpthread or libc. - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], - [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. - AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) - fi - AC_SUBST([LIBSCHED]) + # Code from module tmpdir: gt_TMPDIR + # Code from module trim: + # Code from module uniconv/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniconv.h]) + # Code from module uniconv/u8-conv-from-enc: + gl_LIBUNISTRING_MODULE([0.9], [uniconv/u8-conv-from-enc]) + # Code from module unilbrk/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [unilbrk.h]) + # Code from module unilbrk/tables: + AC_REQUIRE([AC_C_INLINE]) + # Code from module unilbrk/u8-possible-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-possible-linebreaks]) + # Code from module unilbrk/u8-width-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-width-linebreaks]) + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/ulc-width-linebreaks]) + # Code from module uniname/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniname.h]) + # Code from module uniname/uniname: + gl_LIBUNISTRING_MODULE([0.9], [uniname/uniname]) + # Code from module unistd: gl_UNISTD_H + # Code from module unistd-safer: + gl_UNISTD_SAFER + # Code from module unistr/base: + gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h]) + # Code from module unistr/u16-mbtouc: gl_MODULE_INDICATOR([unistr/u16-mbtouc]) - gl_MODULE_INDICATOR([unistr/u16-mbtouc-unsafe]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtouc]) + # Code from module unistr/u8-check: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-check]) + # Code from module unistr/u8-mblen: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mblen]) + # Code from module unistr/u8-mbtouc: gl_MODULE_INDICATOR([unistr/u8-mbtouc]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc]) + # Code from module unistr/u8-mbtouc-unsafe: gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc-unsafe]) + # Code from module unistr/u8-mbtoucr: + gl_MODULE_INDICATOR([unistr/u8-mbtoucr]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr]) + # Code from module unistr/u8-prev: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev]) + # Code from module unistr/u8-uctomb: gl_MODULE_INDICATOR([unistr/u8-uctomb]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb]) + # Code from module unitypes: + gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) + # Code from module uniwidth/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) + # Code from module uniwidth/width: + gl_LIBUNISTRING_MODULE([0.9], [uniwidth/width]) + # Code from module unlocked-io: gl_FUNC_GLIBC_UNLOCKED_IO + # Code from module unsetenv: + gl_FUNC_UNSETENV + gl_STDLIB_MODULE_INDICATOR([unsetenv]) + # Code from module unused-parameter: + # Code from module vasnprintf: gl_FUNC_VASNPRINTF + # Code from module vasprintf: gl_FUNC_VASPRINTF gl_STDIO_MODULE_INDICATOR([vasprintf]) m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format]) - AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format]) + AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) + # Code from module verify: + # Code from module vsnprintf: gl_FUNC_VSNPRINTF gl_STDIO_MODULE_INDICATOR([vsnprintf]) + # Code from module wait-process: gl_WAIT_PROCESS gt_UNION_WAIT + # Code from module warn-on-use: + # Code from module wchar: gl_WCHAR_H + # Code from module wctype: gl_WCTYPE_H + # Code from module wcwidth: gl_FUNC_WCWIDTH gl_WCHAR_MODULE_INDICATOR([wcwidth]) + # Code from module write: + gl_FUNC_WRITE + gl_UNISTD_MODULE_INDICATOR([write]) + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xlist: + gl_LIST + # Code from module xmalloca: + # Code from module xreadlink: + # Code from module xsetenv: + # Code from module xsize: gl_XSIZE + # Code from module xstriconv: + # Code from module xstriconveh: + # Code from module xvasprintf: gl_XVASPRINTF m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=xasprintf:1:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])]) + # End of code from modules + m4_ifval(gl_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || + for gl_file in ]gl_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gl_LIBSOURCES_DIR]) + m4_popdef([gl_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) @@ -251,7 +1021,7 @@ if test -n "$gl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do + for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" done @@ -259,6 +1029,102 @@ AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) + m4_pushdef([gltests_LIBSOURCES_LIST], []) + m4_pushdef([gltests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='gnulib-tests' +changequote(,)dnl + gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([gltests_WITNESS]) + gl_module_indicator_condition=$gltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + AC_CHECK_DECLS_ONCE([alarm]) + gt_LOCALE_FR + gt_LOCALE_TR_UTF8 + gl_FUNC_GETPAGESIZE + gl_UNISTD_MODULE_INDICATOR([getpagesize]) + AC_REQUIRE([AC_C_INLINE]) + AC_CHECK_FUNCS_ONCE([newlocale]) + AC_CHECK_FUNCS_ONCE([newlocale]) + gt_LOCALE_FR + gt_LOCALE_FR_UTF8 + gt_LOCALE_JA + gt_LOCALE_ZH_CN + gt_LOCALE_FR_UTF8 + gt_LOCALE_FR + gt_LOCALE_FR_UTF8 + gt_LOCALE_JA + gt_LOCALE_ZH_CN + gt_LOCALE_FR_UTF8 + gt_LOCALE_ZH_CN + AC_EGREP_CPP([notposix], [[ + #if defined _MSC_VER || defined __MINGW32__ + notposix + #endif + ]], + [posix_spawn_ported=no], + [posix_spawn_ported=yes]) + AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes]) + gl_FUNC_PUTENV + gl_STDLIB_MODULE_INDICATOR([putenv]) + gl_FUNC_READ_FILE + gt_TYPE_WCHAR_T + gt_TYPE_WINT_T + AC_CHECK_DECLS_ONCE([alarm]) + gl_FUNC_MMAP_ANON + AC_CHECK_HEADERS_ONCE([sys/mman.h]) + AC_CHECK_FUNCS_ONCE([mprotect]) + gl_FUNC_SYMLINK + gl_UNISTD_MODULE_INDICATOR([symlink]) + AC_CHECK_FUNCS_ONCE([shutdown]) + gl_THREAD + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-cmp]) + gl_FUNC_MMAP_ANON + AC_CHECK_HEADERS_ONCE([sys/mman.h]) + AC_CHECK_FUNCS_ONCE([mprotect]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-strlen]) + gl_FUNC_WCTOB + gl_WCHAR_MODULE_INDICATOR([wctob]) + gl_YIELD + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(gltests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || + for gl_file in ]gltests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gltests_LIBSOURCES_DIR]) + m4_popdef([gltests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gltests_libobjs= + gltests_ltlibobjs= + if test -n "$gltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gltests_libobjs="$gltests_libobjs $i.$ac_objext" + gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" + done + fi + AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) + AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) + ]) + LIBTESTS_LIBDEPS="$gltests_libdeps" + AC_SUBST([LIBTESTS_LIBDEPS]) ]) # Like AC_LIBOBJ, except that the module name goes @@ -276,15 +1142,41 @@ ]) # Like AC_LIBSOURCES, except the directory where the source file is -# expected is derived from the gnulib-tool parametrization, +# expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ - m4_syscmd([test -r gnulib-lib/]_gl_NAME[ || test ! -d gnulib-lib])dnl - m4_if(m4_sysval, [0], [], - [AC_FATAL([missing gnulib-lib/]_gl_NAME)]) + m4_define([gl_LIBSOURCES_DIR], [gnulib-lib]) + m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_LIBOBJ], [ + AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl + gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gltests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gltests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gltests_LIBSOURCES_DIR], [gnulib-tests]) + m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) @@ -292,6 +1184,8 @@ # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ + build-aux/arg-nonnull.h + build-aux/c++defs.h build-aux/config.libpath build-aux/config.rpath build-aux/csharpcomp.sh.in @@ -299,22 +1193,24 @@ build-aux/install-reloc build-aux/javacomp.sh.in build-aux/javaexec.sh.in - build-aux/link-warning.h build-aux/moopp build-aux/reloc-ldflags build-aux/relocatable.sh.in + build-aux/unused-parameter.h + build-aux/warn-on-use.h doc/relocatable.texi lib/acl-internal.h - lib/acl.c lib/acl.h lib/acl_entries.c lib/addext.c + lib/alignof.h lib/alloca.in.h lib/areadlink.c lib/areadlink.h lib/argmatch.c lib/argmatch.h lib/asnprintf.c + lib/asprintf.c lib/atexit.c lib/backupfile.c lib/backupfile.h @@ -326,21 +1222,25 @@ lib/c-ctype.h lib/c-strcase.h lib/c-strcasecmp.c + lib/c-strcaseeq.h lib/c-strcasestr.c lib/c-strcasestr.h lib/c-strncasecmp.c lib/c-strstr.c lib/c-strstr.h lib/canonicalize-lgpl.c - lib/canonicalize.h lib/classpath.c lib/classpath.h lib/clean-temp.c lib/clean-temp.h + lib/cloexec.c + lib/cloexec.h lib/closeout.c lib/closeout.h lib/concat-filename.c + lib/concat-filename.h lib/config.charset + lib/copy-acl.c lib/copy-file.c lib/copy-file.h lib/csharpcomp.c @@ -348,6 +1248,10 @@ lib/csharpexec.c lib/csharpexec.h lib/diffseq.h + lib/dup-safer-flag.c + lib/dup-safer.c + lib/dup2.c + lib/errno.in.h lib/error-progname.c lib/error-progname.h lib/error.c @@ -358,9 +1262,12 @@ lib/exitfail.h lib/fatal-signal.c lib/fatal-signal.h + lib/fcntl.c lib/fcntl.in.h lib/fd-ostream.oo.c lib/fd-ostream.oo.h + lib/fd-safer-flag.c + lib/fd-safer.c lib/file-has-acl.c lib/file-ostream.oo.c lib/file-ostream.oo.h @@ -382,6 +1289,7 @@ lib/gcd.c lib/gcd.h lib/getdelim.c + lib/getdtablesize.c lib/getline.c lib/getopt.c lib/getopt.in.h @@ -399,6 +1307,8 @@ lib/gl_linkedhash_list.h lib/gl_list.c lib/gl_list.h + lib/gl_xlist.c + lib/gl_xlist.h lib/glib.in.h lib/glib/ghash.c lib/glib/ghash.in.h @@ -413,6 +1323,11 @@ lib/glib/gstring.in.h lib/glib/gtypes.in.h lib/glibconfig.in.h + lib/glthread/lock.c + lib/glthread/lock.h + lib/glthread/threadlib.c + lib/glthread/tls.c + lib/glthread/tls.h lib/hash.c lib/hash.h lib/html-ostream.oo.c @@ -424,7 +1339,9 @@ lib/iconv_open-hpux.gperf lib/iconv_open-irix.gperf lib/iconv_open-osf.gperf + lib/iconv_open-solaris.gperf lib/iconv_open.c + lib/iconveh.h lib/intprops.h lib/javacomp.c lib/javacomp.h @@ -434,7 +1351,6 @@ lib/javaversion.class lib/javaversion.h lib/javaversion.java - lib/lbrkprop.h lib/libcroco/cr-additional-sel.c lib/libcroco/cr-additional-sel.h lib/libcroco/cr-attr-sel.c @@ -489,6 +1405,7 @@ lib/libcroco/cr-utils.h lib/libcroco/libcroco-config.h lib/libcroco/libcroco.h + lib/libunistring.valgrind lib/libxml/COPYING lib/libxml/DOCBparser.c lib/libxml/DOCBparser.in.h @@ -582,27 +1499,30 @@ lib/libxml/xpathInternals.in.h lib/libxml/xpointer.c lib/libxml/xpointer.in.h - lib/linebreak.c - lib/linebreak.h lib/localcharset.c lib/localcharset.h lib/locale.in.h lib/localename.c lib/localename.h - lib/lock.c - lib/lock.h + lib/lstat.c lib/malloc.c lib/malloca.c lib/malloca.h lib/malloca.valgrind lib/mbchar.c lib/mbchar.h + lib/mbiter.h + lib/mbrtowc.c + lib/mbsinit.c lib/mbslen.c + lib/mbsrtowcs-state.c + lib/mbsrtowcs.c lib/mbsstr.c lib/mbswidth.c lib/mbswidth.h lib/mbuiter.h lib/memchr.c + lib/memchr.valgrind lib/memmove.c lib/memset.c lib/minmax.h @@ -614,8 +1534,14 @@ lib/ostream.oo.c lib/ostream.oo.h lib/pathmax.h + lib/pipe-filter-aux.h + lib/pipe-filter-ii.c + lib/pipe-filter.h + lib/pipe-safer.c lib/pipe.c lib/pipe.h + lib/pipe2-safer.c + lib/pipe2.c lib/printf-args.c lib/printf-args.h lib/printf-parse.c @@ -629,6 +1555,8 @@ lib/quote.h lib/quotearg.c lib/quotearg.h + lib/rawmemchr.c + lib/rawmemchr.valgrind lib/readlink.c lib/realloc.c lib/ref-add.sin @@ -636,41 +1564,73 @@ lib/relocatable.c lib/relocatable.h lib/relocwrapper.c + lib/rmdir.c lib/safe-read.c lib/safe-read.h lib/safe-write.c lib/safe-write.h + lib/sched.in.h + lib/set-mode-acl.c lib/setenv.c - lib/setenv.h lib/sh-quote.c lib/sh-quote.h + lib/sig-handler.h + lib/sigaction.c lib/signal.in.h lib/sigprocmask.c lib/size_max.h lib/snprintf.c + lib/spawn.in.h + lib/spawn_faction_addclose.c + lib/spawn_faction_adddup2.c + lib/spawn_faction_addopen.c + lib/spawn_faction_destroy.c + lib/spawn_faction_init.c + lib/spawn_int.h + lib/spawnattr_destroy.c + lib/spawnattr_init.c + lib/spawnattr_setflags.c + lib/spawnattr_setsigmask.c + lib/spawni.c + lib/spawnp.c + lib/stat.c + lib/stdarg.in.h lib/stdbool.in.h + lib/stddef.in.h lib/stdint.in.h + lib/stdio-write.c lib/stdio.in.h lib/stdlib.in.h lib/stpcpy.c lib/stpncpy.c + lib/str-kmp.h + lib/str-two-way.h + lib/strchrnul.c + lib/strchrnul.valgrind lib/strcspn.c - lib/strdup.c lib/streq.h lib/strerror.c lib/striconv.c lib/striconv.h + lib/striconveh.c + lib/striconveh.h + lib/striconveha.c + lib/striconveha.h lib/string.in.h lib/strnlen.c lib/strnlen1.c lib/strnlen1.h lib/strpbrk.c + lib/strstr.c lib/strtol.c lib/strtoul.c lib/styled-ostream.oo.c lib/styled-ostream.oo.h + lib/sys_select.in.h + lib/sys_socket.in.h lib/sys_stat.in.h lib/sys_time.in.h + lib/sys_wait.in.h lib/tempname.c lib/tempname.h lib/term-ostream.oo.c @@ -678,30 +1638,47 @@ lib/term-styled-ostream.oo.c lib/term-styled-ostream.oo.h lib/terminfo.h - lib/tls.c - lib/tls.h + lib/time.in.h lib/tmpdir.c lib/tmpdir.h lib/tparm.c lib/tputs.c - lib/uniname.h + lib/trim.c + lib/trim.h + lib/uniconv.in.h + lib/uniconv/u8-conv-from-enc.c + lib/unilbrk.in.h + lib/unilbrk/lbrkprop1.h + lib/unilbrk/lbrkprop2.h + lib/unilbrk/lbrktables.c + lib/unilbrk/lbrktables.h + lib/unilbrk/u8-possible-linebreaks.c + lib/unilbrk/u8-width-linebreaks.c + lib/unilbrk/ulc-common.c + lib/unilbrk/ulc-common.h + lib/unilbrk/ulc-width-linebreaks.c + lib/uniname.in.h lib/uniname/gen-uninames.lisp lib/uniname/uniname.c lib/uniname/uninames.h + lib/unistd--.h + lib/unistd-safer.h lib/unistd.in.h - lib/unistr.h + lib/unistr.in.h lib/unistr/u16-mbtouc-aux.c - lib/unistr/u16-mbtouc-unsafe-aux.c - lib/unistr/u16-mbtouc-unsafe.c lib/unistr/u16-mbtouc.c + lib/unistr/u8-check.c + lib/unistr/u8-mblen.c lib/unistr/u8-mbtouc-aux.c lib/unistr/u8-mbtouc-unsafe-aux.c lib/unistr/u8-mbtouc-unsafe.c lib/unistr/u8-mbtouc.c + lib/unistr/u8-mbtoucr.c + lib/unistr/u8-prev.c lib/unistr/u8-uctomb-aux.c lib/unistr/u8-uctomb.c - lib/unitypes.h - lib/uniwidth.h + lib/unitypes.in.h + lib/uniwidth.in.h lib/uniwidth/cjk.h lib/uniwidth/width.c lib/unlocked-io.h @@ -717,8 +1694,10 @@ lib/wchar.in.h lib/wctype.in.h lib/wcwidth.c + lib/write.c lib/xalloc.h lib/xasprintf.c + lib/xconcat-filename.c lib/xerror.c lib/xerror.h lib/xmalloc.c @@ -732,30 +1711,41 @@ lib/xstrdup.c lib/xstriconv.c lib/xstriconv.h + lib/xstriconveh.c + lib/xstriconveh.h lib/xvasprintf.c lib/xvasprintf.h + m4/00gnulib.m4 m4/absolute-header.m4 m4/acl.m4 m4/alloca.m4 m4/argmatch.m4 + m4/asm-underscore.m4 m4/atexit.m4 m4/backupfile.m4 m4/bison-i18n.m4 m4/byteswap.m4 - m4/canonicalize-lgpl.m4 + m4/canonicalize.m4 + m4/cloexec.m4 m4/codeset.m4 m4/copy-file.m4 m4/csharp.m4 m4/csharpcomp.m4 m4/csharpexec.m4 + m4/curses.m4 + m4/dos.m4 + m4/double-slash-root.m4 + m4/dup2.m4 m4/eaccess.m4 m4/eealloc.m4 - m4/eoverflow.m4 + m4/environ.m4 + m4/errno_h.m4 m4/error.m4 m4/execute.m4 - m4/exitfail.m4 m4/extensions.m4 m4/fatal-signal.m4 + m4/fcntl-o.m4 + m4/fcntl.m4 m4/fcntl_h.m4 m4/findprog.m4 m4/float_h.m4 @@ -763,15 +1753,16 @@ m4/fopen.m4 m4/gcj.m4 m4/getdelim.m4 + m4/getdtablesize.m4 m4/getline.m4 m4/getopt.m4 + m4/getpagesize.m4 m4/gettext.m4 m4/gettimeofday.m4 m4/gl_list.m4 m4/glibc2.m4 m4/glibc21.m4 m4/gnulib-common.m4 - m4/hard-locale.m4 m4/iconv.m4 m4/iconv_h.m4 m4/iconv_open.m4 @@ -794,23 +1785,28 @@ m4/lib-prefix.m4 m4/libcroco.m4 m4/libglib.m4 + m4/libunistring-base.m4 + m4/libunistring-optional.m4 + m4/libunistring.m4 m4/libxml.m4 - m4/linebreak.m4 m4/localcharset.m4 m4/locale-fr.m4 + m4/locale-ja.m4 m4/locale-tr.m4 m4/locale-zh.m4 m4/locale_h.m4 m4/localename.m4 m4/lock.m4 m4/longlong.m4 + m4/lstat.m4 m4/malloc.m4 m4/malloca.m4 m4/mbchar.m4 m4/mbiter.m4 m4/mbrtowc.m4 + m4/mbsinit.m4 m4/mbslen.m4 - m4/mbsstr.m4 + m4/mbsrtowcs.m4 m4/mbstate_t.m4 m4/mbswidth.m4 m4/memchr.m4 @@ -818,58 +1814,83 @@ m4/memset.m4 m4/minmax.m4 m4/mkdtemp.m4 + m4/mmap-anon.m4 + m4/mode_t.m4 m4/moo.m4 + m4/multiarch.m4 m4/nls.m4 m4/no-c++.m4 - m4/onceonly_2_57.m4 + m4/onceonly.m4 m4/open.m4 m4/openmp.m4 m4/pathmax.m4 m4/pipe.m4 + m4/pipe2.m4 m4/po.m4 + m4/posix_spawn.m4 m4/printf-posix.m4 + m4/printf.m4 m4/progtest.m4 + m4/putenv.m4 m4/quote.m4 m4/quotearg.m4 + m4/rawmemchr.m4 + m4/read-file.m4 m4/readlink.m4 m4/realloc.m4 m4/relocatable-lib.m4 m4/relocatable.m4 + m4/rmdir.m4 m4/safe-read.m4 m4/safe-write.m4 + m4/sched_h.m4 m4/setenv.m4 m4/sig_atomic_t.m4 + m4/sigaction.m4 m4/signal_h.m4 m4/signalblocking.m4 + m4/sigpipe.m4 m4/size_max.m4 m4/snprintf.m4 + m4/sockpfaf.m4 + m4/spawn_h.m4 m4/ssize_t.m4 + m4/stat.m4 m4/stdarg.m4 m4/stdbool.m4 + m4/stddef_h.m4 m4/stdint.m4 m4/stdint_h.m4 m4/stdio_h.m4 m4/stdlib_h.m4 m4/stpcpy.m4 m4/stpncpy.m4 + m4/strchrnul.m4 m4/strcspn.m4 - m4/strdup.m4 m4/strerror.m4 m4/string_h.m4 m4/strnlen.m4 m4/strpbrk.m4 + m4/strstr.m4 m4/strtol.m4 m4/strtoul.m4 + m4/symlink.m4 + m4/sys_select_h.m4 + m4/sys_socket_h.m4 m4/sys_stat_h.m4 m4/sys_time_h.m4 + m4/sys_wait_h.m4 m4/tempname.m4 m4/term-ostream.m4 m4/terminfo.m4 + m4/thread.m4 + m4/threadlib.m4 + m4/time_h.m4 m4/tls.m4 m4/tmpdir.m4 m4/uintmax_t.m4 - m4/ulonglong.m4 m4/unionwait.m4 + m4/unistd-safer.m4 m4/unistd_h.m4 m4/unlocked-io.m4 m4/vasnprintf.m4 @@ -877,14 +1898,24 @@ m4/visibility.m4 m4/vsnprintf.m4 m4/wait-process.m4 - m4/wchar.m4 + m4/warn-on-use.m4 + m4/wchar_h.m4 m4/wchar_t.m4 - m4/wctype.m4 + m4/wctob.m4 + m4/wctype_h.m4 m4/wcwidth.m4 m4/wint_t.m4 + m4/write.m4 m4/xsize.m4 m4/xvasprintf.m4 + m4/yield.m4 + tests/init.sh + tests/macros.h + tests/signature.h + tests/test-alignof.c tests/test-alloca-opt.c + tests/test-areadlink.c + tests/test-areadlink.h tests/test-argmatch.c tests/test-array_list.c tests/test-atexit.c @@ -899,24 +1930,57 @@ tests/test-c-strncasecmp.c tests/test-c-strstr.c tests/test-canonicalize-lgpl.c - tests/test-canonicalize-lgpl.sh + tests/test-cloexec.c + tests/test-copy-acl.c + tests/test-copy-acl.sh + tests/test-copy-file.c + tests/test-copy-file.sh + tests/test-dup-safer.c + tests/test-dup2.c + tests/test-environ.c + tests/test-errno.c + tests/test-fcntl-h.c tests/test-fcntl.c + tests/test-file-has-acl.c + tests/test-file-has-acl.sh + tests/test-fnmatch.c tests/test-fopen.c + tests/test-fopen.h tests/test-fstrcmp.c tests/test-getdelim.c + tests/test-getdtablesize.c tests/test-getline.c + tests/test-getopt.c + tests/test-getopt.h + tests/test-getopt_long.h tests/test-gettimeofday.c + tests/test-iconv-h.c tests/test-iconv.c tests/test-linkedhash_list.c tests/test-locale.c tests/test-localename.c tests/test-lock.c + tests/test-lstat.c + tests/test-lstat.h tests/test-malloca.c + tests/test-mbrtowc.c + tests/test-mbrtowc1.sh + tests/test-mbrtowc2.sh + tests/test-mbrtowc3.sh + tests/test-mbrtowc4.sh + tests/test-mbsinit.c + tests/test-mbsinit.sh + tests/test-mbsrtowcs.c + tests/test-mbsrtowcs1.sh + tests/test-mbsrtowcs2.sh + tests/test-mbsrtowcs3.sh + tests/test-mbsrtowcs4.sh tests/test-mbsstr1.c tests/test-mbsstr2.c tests/test-mbsstr2.sh tests/test-mbsstr3.c tests/test-mbsstr3.sh + tests/test-memchr.c tests/test-moo-aroot.oo.c tests/test-moo-aroot.oo.h tests/test-moo-assign.c @@ -929,16 +1993,59 @@ tests/test-moo-sub2.oo.c tests/test-moo-sub2.oo.h tests/test-open.c + tests/test-open.h + tests/test-pipe-filter-ii1.c + tests/test-pipe-filter-ii1.sh + tests/test-pipe-filter-ii2-child.c + tests/test-pipe-filter-ii2-main.c + tests/test-pipe-filter-ii2.sh + tests/test-pipe.c + tests/test-pipe.sh + tests/test-pipe2.c + tests/test-posix_spawn1.c + tests/test-posix_spawn1.in.sh + tests/test-posix_spawn2.c + tests/test-posix_spawn2.in.sh + tests/test-quotearg-simple.c + tests/test-quotearg.h + tests/test-rawmemchr.c + tests/test-read-file.c + tests/test-readlink.c + tests/test-readlink.h + tests/test-rmdir.c + tests/test-rmdir.h + tests/test-sameacls.c + tests/test-sched.c + tests/test-set-mode-acl.c + tests/test-set-mode-acl.sh + tests/test-setenv.c + tests/test-sigaction.c + tests/test-signal.c + tests/test-sigpipe.c + tests/test-sigpipe.sh tests/test-snprintf.c + tests/test-spawn.c + tests/test-stat.c + tests/test-stat.h tests/test-stdbool.c + tests/test-stddef.c tests/test-stdint.c tests/test-stdio.c tests/test-stdlib.c + tests/test-strchrnul.c tests/test-strerror.c tests/test-striconv.c + tests/test-striconveh.c + tests/test-striconveha.c tests/test-string.c + tests/test-strstr.c + tests/test-symlink.c + tests/test-symlink.h + tests/test-sys_select.c + tests/test-sys_socket.c tests/test-sys_stat.c tests/test-sys_time.c + tests/test-sys_wait.c tests/test-term-ostream-xterm tests/test-term-ostream-xterm-16color.out tests/test-term-ostream-xterm-256color.out @@ -956,17 +2063,57 @@ tests/test-term-ostream-xterm-solaris10.out tests/test-term-ostream-xterm-xf86-v32.out tests/test-term-ostream.c + tests/test-time.c tests/test-tls.c tests/test-unistd.c + tests/test-unsetenv.c + tests/test-vasnprintf-posix.c tests/test-vasnprintf.c tests/test-vasprintf.c + tests/test-verify.c + tests/test-verify.sh tests/test-vsnprintf.c tests/test-wchar.c tests/test-wctype.c tests/test-wcwidth.c + tests/test-xalloc-die.c + tests/test-xalloc-die.sh tests/test-xvasprintf.c + tests/uniconv/test-u8-conv-from-enc.c + tests/unilbrk/test-u8-possible-linebreaks.c + tests/unilbrk/test-u8-width-linebreaks.c + tests/unilbrk/test-ulc-width-linebreaks.c tests/uniname/UnicodeDataNames.txt tests/uniname/test-uninames.c tests/uniname/test-uninames.sh + tests/unistr/test-cmp.h + tests/unistr/test-u16-mbtouc.c + tests/unistr/test-u16-mbtouc.h + tests/unistr/test-u8-check.c + tests/unistr/test-u8-cmp.c + tests/unistr/test-u8-mblen.c + tests/unistr/test-u8-mbtouc-unsafe.c + tests/unistr/test-u8-mbtouc.c + tests/unistr/test-u8-mbtouc.h + tests/unistr/test-u8-mbtoucr.c + tests/unistr/test-u8-prev.c + tests/unistr/test-u8-strlen.c + tests/unistr/test-u8-uctomb.c tests/uniwidth/test-uc_width.c + tests/uniwidth/test-uc_width2.c + tests/uniwidth/test-uc_width2.sh + tests/zerosize-ptr.h + tests=lib/getpagesize.c + tests=lib/glthread/thread.c + tests=lib/glthread/thread.h + tests=lib/glthread/yield.h + tests=lib/ignore-value.h + tests=lib/putenv.c + tests=lib/read-file.c + tests=lib/read-file.h + tests=lib/same-inode.h + tests=lib/symlink.c + tests=lib/unistr/u8-cmp.c + tests=lib/unistr/u8-strlen.c + tests=lib/wctob.c ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/hard-locale.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/hard-locale.m4 --- gettext-0.17/gettext-tools/gnulib-m4/hard-locale.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/hard-locale.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,8 +0,0 @@ -# hard-locale.m4 serial 7 -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl No prerequisites of lib/hard-locale.c. -AC_DEFUN([gl_HARD_LOCALE], [:]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/iconv_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/iconv_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/iconv_h.m4 2007-10-17 22:35:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/iconv_h.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# iconv_h.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# iconv_h.m4 serial 6 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,16 +7,24 @@ AC_DEFUN([gl_ICONV_H], [ AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + + dnl Execute this unconditionally, because ICONV_H may be set by other + dnl modules, after this code is executed. gl_CHECK_NEXT_HEADERS([iconv.h]) - ICONV_H= - AC_SUBST([ICONV_H]) +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_ICONV_H], +[ + AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + ICONV_H='iconv.h' ]) AC_DEFUN([gl_ICONV_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_ICONV_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) AC_DEFUN([gl_ICONV_H_DEFAULTS], @@ -25,4 +33,5 @@ REPLACE_ICONV=0; AC_SUBST([REPLACE_ICONV]) REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN]) REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF]) + ICONV_H=''; AC_SUBST([ICONV_H]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/iconv_open.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/iconv_open.m4 --- gettext-0.17/gettext-tools/gnulib-m4/iconv_open.m4 2007-10-17 22:35:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/iconv_open.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# iconv_open.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# iconv_open.m4 serial 7 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,6 +10,8 @@ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test "$am_cv_func_iconv" = yes; then + dnl Provide the override, for the sake of the C++ aliases. + gl_REPLACE_ICONV_H dnl Test whether iconv_open accepts standardized encoding names. dnl We know that GNU libiconv and GNU libc do. AC_EGREP_CPP([gnu_iconv], [ @@ -21,10 +23,11 @@ if test $gl_func_iconv_gnu = no; then iconv_flavor= case "$host_os" in - aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; - irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; - hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; - osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; + irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; + hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; + osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; + solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; esac if test -n "$iconv_flavor"; then AC_DEFINE_UNQUOTED([ICONV_FLAVOR], [$iconv_flavor], @@ -38,9 +41,9 @@ AC_DEFUN([gl_REPLACE_ICONV_OPEN], [ + gl_REPLACE_ICONV_H REPLACE_ICONV_OPEN=1 AC_LIBOBJ([iconv_open]) - ICONV_H='iconv.h' ]) AC_DEFUN([gl_FUNC_ICONV_OPEN_UTF], @@ -89,8 +92,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -116,8 +119,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -143,8 +146,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -170,8 +173,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -198,8 +201,8 @@ outptr = buf; outbytesleft = sizeof (buf); res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + (sizeof (expected) - 1)); ASSERT (memcmp (buf, expected, sizeof (expected) - 1) == 0); @@ -226,7 +229,7 @@ ]) if test $gl_cv_func_iconv_supports_utf = no; then REPLACE_ICONV_UTF=1 - AC_DEFINE([REPLACE_ICONV_UTF], 1, + AC_DEFINE([REPLACE_ICONV_UTF], [1], [Define if the iconv() functions are enhanced to handle the UTF-{16,32}{BE,LE} encodings.]) REPLACE_ICONV=1 gl_REPLACE_ICONV_OPEN diff -Nru gettext-0.17/gettext-tools/gnulib-m4/include_next.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/include_next.m4 --- gettext-0.17/gettext-tools/gnulib-m4/include_next.m4 2007-09-01 13:12:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/include_next.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,19 +1,47 @@ -# include_next.m4 serial 4 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# include_next.m4 serial 14 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert and Derek Price. +dnl Sets INCLUDE_NEXT and PRAGMA_SYSTEM_HEADER. +dnl +dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to +dnl 'include' otherwise. +dnl +dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler +dnl supports it in the special case that it is the first include directive in +dnl the given file, or to 'include' otherwise. +dnl +dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next, +dnl so as to avoid GCC warnings when the gcc option -pedantic is used. +dnl '#pragma GCC system_header' has the same effect as if the file was found +dnl through the include search path specified with '-isystem' options (as +dnl opposed to the search path specified with '-I' options). Namely, gcc +dnl does not warn about some things, and on some systems (Solaris and Interix) +dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side +dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead +dnl of plain '__STDC__'. + AC_DEFUN([gl_INCLUDE_NEXT], [ AC_LANG_PREPROC_REQUIRE() AC_CACHE_CHECK([whether the preprocessor supports include_next], [gl_cv_have_include_next], - [rm -rf conftestd1 conftestd2 - mkdir conftestd1 conftestd2 - cat < conftestd1/conftest.h + [rm -rf conftestd1a conftestd1b conftestd2 + mkdir conftestd1a conftestd1b conftestd2 + dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on + dnl AIX 6.1 support include_next when used as first preprocessor directive + dnl in a file, but not when preceded by another include directive. Check + dnl for this bug by including . + dnl Additionally, with this same compiler, include_next is a no-op when + dnl used in a header file that was included by specifying its absolute + dnl file name. Despite these two bugs, include_next is used in the + dnl compiler's . By virtue of the second bug, we need to use + dnl include_next as well in this case. + cat < conftestd1a/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 @@ -22,32 +50,53 @@ #error "include_next doesn't work" #endif EOF + cat < conftestd1b/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include +#include_next +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" + gl_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" AC_COMPILE_IFELSE([#include ], [gl_cv_have_include_next=yes], - [gl_cv_have_include_next=no]) - CPPFLAGS="$save_CPPFLAGS" - rm -rf conftestd1 conftestd2 + [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" + AC_COMPILE_IFELSE([#include ], + [gl_cv_have_include_next=buggy], + [gl_cv_have_include_next=no]) + ]) + CPPFLAGS="$gl_save_CPPFLAGS" + rm -rf conftestd1a conftestd1b conftestd2 ]) + PRAGMA_SYSTEM_HEADER= if test $gl_cv_have_include_next = yes; then - - dnl FIXME: Remove HAVE_INCLUDE_NEXT and update everything that uses it - dnl to use @INCLUDE_NEXT@ instead. - AC_DEFINE([HAVE_INCLUDE_NEXT], 1, - [Define if your compiler supports the #include_next directive.]) - INCLUDE_NEXT=include_next + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + if test -n "$GCC"; then + PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' + fi else - INCLUDE_NEXT=include + if test $gl_cv_have_include_next = buggy; then + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next + else + INCLUDE_NEXT=include + INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include + fi fi AC_SUBST([INCLUDE_NEXT]) + AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE]) + AC_SUBST([PRAGMA_SYSTEM_HEADER]) ]) # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...) @@ -55,53 +104,84 @@ # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be # ''; otherwise define it to be # '"///usr/include/foo.h"', or whatever other absolute file name is suitable. +# Also, if #include_next works as first preprocessing directive in a file, +# define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be ''; otherwise define it to +# be +# '"///usr/include/foo.h"', or whatever other absolute file name is suitable. # That way, a header file with the following line: -# #@INCLUDE_NEXT@ @NEXT_FOO_H@ +# #@INCLUDE_NEXT@ @NEXT_FOO_H@ +# or +# #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@ # behaves (after sed substitution) as if it contained -# #include_next +# #include_next # even if the compiler does not support include_next. # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use `""', not `<>', so that the /// cannot be confused with a C99 comment. +# Note: This macro assumes that the header file is not empty after +# preprocessing, i.e. it does not only define preprocessor macros but also +# provides some type/enum definitions or function/variable declarations. AC_DEFUN([gl_CHECK_NEXT_HEADERS], [ AC_REQUIRE([gl_INCLUDE_NEXT]) + AC_REQUIRE([AC_CANONICAL_HOST]) AC_CHECK_HEADERS_ONCE([$1]) - AC_FOREACH([gl_HEADER_NAME], [$1], + m4_foreach_w([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_next_header], - [gl_cv_next_]m4_quote(m4_defn([gl_HEADER_NAME]))) + [gl_cv_next_]m4_defn([gl_HEADER_NAME])) if test $gl_cv_have_include_next = yes; then AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) else AC_CACHE_CHECK( - [absolute name of <]m4_quote(m4_defn([gl_HEADER_NAME]))[>], - m4_quote(m4_defn([gl_next_header])), - [AS_VAR_PUSHDEF([gl_header_exists], - [ac_cv_header_]m4_quote(m4_defn([gl_HEADER_NAME]))) - if test AS_VAR_GET(gl_header_exists) = yes; then - AC_LANG_CONFTEST( - [AC_LANG_SOURCE( - [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] - )]) - dnl eval is necessary to expand ac_cpp. - dnl Ultrix and Pyramid sh refuse to redirect output of eval, - dnl so use subshell. - AS_VAR_SET([gl_next_header], - ['"'`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | - sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{ - s#.*"\(.*/]m4_quote(m4_defn([gl_HEADER_NAME]))[\)".*#\1# - s#^/[^/]#//&# - p - q - }'`'"']) - else - AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) - fi - AS_VAR_POPDEF([gl_header_exists])]) + [absolute name of <]m4_defn([gl_HEADER_NAME])[>], + m4_defn([gl_next_header]), + [AS_VAR_PUSHDEF([gl_header_exists], + [ac_cv_header_]m4_defn([gl_HEADER_NAME])) + if test AS_VAR_GET(gl_header_exists) = yes; then + AC_LANG_CONFTEST( + [AC_LANG_SOURCE( + [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] + )]) + dnl AIX "xlc -E" and "cc -E" omit #line directives for header files + dnl that contain only a #include of other header files and no + dnl non-comment tokens of their own. This leads to a failure to + dnl detect the absolute name of , , + dnl and others. The workaround is to force preservation of comments + dnl through option -C. This ensures all necessary #line directives + dnl are present. GCC supports option -C as well. + case "$host_os" in + aix*) gl_absname_cpp="$ac_cpp -C" ;; + *) gl_absname_cpp="$ac_cpp" ;; + esac + dnl eval is necessary to expand gl_absname_cpp. + dnl Ultrix and Pyramid sh refuse to redirect output of eval, + dnl so use subshell. + AS_VAR_SET([gl_next_header], + ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | + sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ + s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# + s#^/[^/]#//&# + p + q + }'`'"']) + else + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) + fi + AS_VAR_POPDEF([gl_header_exists])]) fi AC_SUBST( - AS_TR_CPP([NEXT_]m4_quote(m4_defn([gl_HEADER_NAME]))), + AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), [AS_VAR_GET([gl_next_header])]) + if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' + gl_next_as_first_directive='<'gl_HEADER_NAME'>' + else + # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' + gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) + fi + AC_SUBST( + AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), + [$gl_next_as_first_directive]) AS_VAR_POPDEF([gl_next_header])]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/inline.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/inline.m4 --- gettext-0.17/gettext-tools/gnulib-m4/inline.m4 2007-01-27 03:22:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/inline.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# inline.m4 serial 3 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# inline.m4 serial 4 +dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -32,7 +32,7 @@ fi ]) if test $gl_cv_c_inline_effective = yes; then - AC_DEFINE([HAVE_INLINE], 1, + AC_DEFINE([HAVE_INLINE], [1], [Define to 1 if the compiler supports one of the keywords 'inline', '__inline__', '__inline' and effectively inlines functions marked as such.]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/intmax_t.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/intmax_t.m4 --- gettext-0.17/gettext-tools/gnulib-m4/intmax_t.m4 2007-10-31 12:36:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/intmax_t.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,12 +1,13 @@ -# intmax_t.m4 serial 6 -dnl Copyright (C) 1997-2004, 2006-2007 Free Software Foundation, Inc. +# intmax_t.m4 serial 7 +dnl Copyright (C) 1997-2004, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. -AC_PREREQ(2.13) +AC_PREREQ([2.13]) # Define intmax_t to 'long' or 'long long' # if it is not already defined in or . @@ -22,10 +23,10 @@ test $ac_cv_type_long_long_int = yes \ && ac_type='long long' \ || ac_type='long' - AC_DEFINE_UNQUOTED(intmax_t, $ac_type, + AC_DEFINE_UNQUOTED([intmax_t], [$ac_type], [Define to long or long long if and don't define.]) else - AC_DEFINE(HAVE_INTMAX_T, 1, + AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) @@ -36,7 +37,7 @@ [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) - AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, + AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_TRY_COMPILE([ #include #include @@ -48,14 +49,14 @@ #endif ], [intmax_t x = -1; return !x;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then - AC_DEFINE(HAVE_INTMAX_T, 1, + AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) else AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) test $ac_cv_type_long_long_int = yes \ && ac_type='long long' \ || ac_type='long' - AC_DEFINE_UNQUOTED(intmax_t, $ac_type, + AC_DEFINE_UNQUOTED([intmax_t], [$ac_type], [Define to long or long long if and don't define.]) fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/javacomp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/javacomp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/javacomp.m4 2007-10-28 22:53:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/javacomp.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,6 @@ -# javacomp.m4 serial 10 -dnl Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. +# javacomp.m4 serial 12 +dnl Copyright (C) 2001-2003, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -58,7 +59,7 @@ AC_DEFUN([gt_JAVACOMP], [ ifelse([$2], [], [AC_REQUIRE([gt_JAVAEXEC])], []) - AC_EGREP_CPP(yes, [ + AC_EGREP_CPP([yes], [ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ yes #endif @@ -88,9 +89,9 @@ dnl and the long tr command in opposite direction. dnl Finally move the position corresponding to \055 to the last position, dnl to work around a coreutils-5.x bug. - echo 'xyvw!$!H!C,!)!2+!3!4*!5,!3!6,!7!8)!9)!:"!(LdhdmM"!$EFV"!%Ni_a"!1PdhaQngYakUXYfa"!%gXdh"!8EWPeXoXJfXhcJTmkdhcKFV"!,TinkZaOdfa"!2ZihbmalmoakIeXoX.!*!+)!;.!!?)!@.!A!B"!-Zihbmalmoak"!2eXoXJfXhcJRYeaZm"!2eXoXJfXhcJTplmag"!$inm"!7PeXoXJdiJSkdhmTmkaXgK"!-camSkijakmp"!DEPeXoXJfXhcJTmkdhcKFPeXoXJfXhcJTmkdhcK"!5eXoXJdiJSkdhmTmkaXg"!)jkdhmfh"!7EPeXoXJfXhcJTmkdhcKFV!C!(!)!!!!!#!"!*!+!"!,!!!?!"!"!!!&Gt!"q!!!"!-!!!(!"!!!"!+!.!/!"!,!!!E!#!"!!!.r!#4$u!%s!&q!!!"!-!!!,!#!!!$!-!%!"!0!!!#!1' \ + echo 'yzwx!$!I!D,!)!3+!4!5*!6,!4!7,!8!9)!:)!;"!(MeienN"!$FGW"!%Ojab"!2QeibRohZblVYZgb"!%hYei"!9FXQfYpYKgYidKUnleidLGW"!,Ujol_bPegb"!3_jicnbmnpblJfYpY/!*!+)!"!=fYpYJmkb_ece_YnejiJpblmeji/!?!@)!A/!B!C"!._jicnbmnpbl"!3fYpYKgYidKSZfb_n"!3fYpYKgYidKUqmnbh"!$jon"!8QfYpYKejKTleinUnlbYhL"!.dbnTljkblnq"!EFQfYpYKgYidKUnleidLGQfYpYKgYidKUnleidL"!6fYpYKejKTleinUnlbYh"!)kleingi"!8FQfYpYKgYidKUnleidLGW!D!(!)!!!!!#!"!*!+!"!,!!!@!"!"!!!&Hu!"r!!!"!.!!!(!"!!!"!+!/!0!"!,!!!F!#!"!!!/s!#5$v!%t!&r!!!"!.!!!,!#!!!$!.!%!"!1!!!#!2' \ | tr -d '\012\015' \ - | tr '!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzH' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ + | tr '!"#$%&()*+,./0123456789:;<=>?@ABCDEFGHJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzI' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \ > conftestver.class target_version=`{ unset JAVA_HOME @@ -404,9 +405,9 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_GCJ_IN_PATH, gcj, yes) - AC_CHECK_PROG(HAVE_JAVAC_IN_PATH, javac, yes) - AC_CHECK_PROG(HAVE_JIKES_IN_PATH, jikes, yes) + AC_CHECK_PROG([HAVE_GCJ_IN_PATH], [gcj], [yes]) + AC_CHECK_PROG([HAVE_JAVAC_IN_PATH], [javac], [yes]) + AC_CHECK_PROG([HAVE_JIKES_IN_PATH], [jikes], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -626,11 +627,11 @@ ac_result="no" fi AC_MSG_RESULT([$ac_result]) - AC_SUBST(CONF_JAVAC) - AC_SUBST(CLASSPATH) - AC_SUBST(CLASSPATH_SEPARATOR) - AC_SUBST(HAVE_JAVAC_ENVVAR) - AC_SUBST(HAVE_GCJ_C) - AC_SUBST(HAVE_JAVAC) - AC_SUBST(HAVE_JIKES) + AC_SUBST([CONF_JAVAC]) + AC_SUBST([CLASSPATH]) + AC_SUBST([CLASSPATH_SEPARATOR]) + AC_SUBST([HAVE_JAVAC_ENVVAR]) + AC_SUBST([HAVE_GCJ_C]) + AC_SUBST([HAVE_JAVAC]) + AC_SUBST([HAVE_JIKES]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/javaexec.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/javaexec.m4 --- gettext-0.17/gettext-tools/gnulib-m4/javaexec.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/javaexec.m4 2010-05-24 10:42:19.000000000 +0000 @@ -1,5 +1,5 @@ -# javaexec.m4 serial 4 (gettext-0.15) -dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +# javaexec.m4 serial 5 +dnl Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,7 +11,7 @@ AC_DEFUN([gt_JAVAEXEC], [ AC_MSG_CHECKING([for Java virtual machine]) - AC_EGREP_CPP(yes, [ + AC_EGREP_CPP([yes], [ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ yes #endif @@ -30,10 +30,10 @@ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl - AC_CHECK_PROG(HAVE_GIJ_IN_PATH, gij, yes) - AC_CHECK_PROG(HAVE_JAVA_IN_PATH, java, yes) - AC_CHECK_PROG(HAVE_JRE_IN_PATH, jre, yes) - AC_CHECK_PROG(HAVE_JVIEW_IN_PATH, jview, yes) + AC_CHECK_PROG([HAVE_GIJ_IN_PATH], [gij], [yes]) + AC_CHECK_PROG([HAVE_JAVA_IN_PATH], [java], [yes]) + AC_CHECK_PROG([HAVE_JRE_IN_PATH], [jre], [yes]) + AC_CHECK_PROG([HAVE_JVIEW_IN_PATH], [jview], [yes]) popdef([AC_MSG_RESULT])dnl popdef([AC_CHECKING])dnl popdef([AC_MSG_CHECKING])dnl @@ -93,12 +93,12 @@ ac_result="no" fi AC_MSG_RESULT([$ac_result]) - AC_SUBST(CONF_JAVA) - AC_SUBST(CLASSPATH) - AC_SUBST(CLASSPATH_SEPARATOR) - AC_SUBST(HAVE_JAVA_ENVVAR) - AC_SUBST(HAVE_GIJ) - AC_SUBST(HAVE_JAVA) - AC_SUBST(HAVE_JRE) - AC_SUBST(HAVE_JVIEW) + AC_SUBST([CONF_JAVA]) + AC_SUBST([CLASSPATH]) + AC_SUBST([CLASSPATH_SEPARATOR]) + AC_SUBST([HAVE_JAVA_ENVVAR]) + AC_SUBST([HAVE_GIJ]) + AC_SUBST([HAVE_JAVA]) + AC_SUBST([HAVE_JRE]) + AC_SUBST([HAVE_JVIEW]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/libglib.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/libglib.m4 --- gettext-0.17/gettext-tools/gnulib-m4/libglib.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/libglib.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# libglib.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# libglib.m4 serial 3 (gettext-0.17) +dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -35,7 +35,11 @@ dnl one that built the library. AC_LIB_LINKFLAGS_BODY([glib-2.0]) LIBS="$gl_save_LIBS $LIBGLIB_2_0" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" @@ -44,7 +48,11 @@ if test "$gl_cv_libglib" != yes; then gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" @@ -56,7 +64,11 @@ dnl and /usr/lib/glib-2.0/include. if test -n "$LIBGLIB_2_0_PREFIX"; then CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" diff -Nru gettext-0.17/gettext-tools/gnulib-m4/lib-ld.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-ld.m4 --- gettext-0.17/gettext-tools/gnulib-m4/lib-ld.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-ld.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,110 @@ +# lib-ld.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL([acl_cv_path_LD], +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT([$LD]) +else + AC_MSG_RESULT([no]) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/lib-link.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-link.m4 --- gettext-0.17/gettext-tools/gnulib-m4/lib-link.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-link.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,774 @@ +# lib-link.m4 serial 21 (gettext-0.18) +dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ([2.54]) + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + popdef([NAME]) + popdef([Name]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. The missing-message +dnl defaults to 'no' and may contain additional hints for the user. +dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} +dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname +dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + pushdef([Name],[translit([$1],[./-], [___])]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, + dnl because these -l options might require -L options that are present in + dnl LIBS. -l options benefit only from the -L options listed before it. + dnl Otherwise, add it to the front of LIBS, because it may be a static + dnl library that depends on another static library that is present in LIBS. + dnl Static libraries benefit only from the static libraries listed after + dnl it. + case " $LIB[]NAME" in + *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; + *) LIBS="$LIB[]NAME $LIBS" ;; + esac + AC_TRY_LINK([$3], [$4], + [ac_cv_lib[]Name=yes], + [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + LIB[]NAME[]_PREFIX= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + AC_SUBST([LIB]NAME[_PREFIX]) + popdef([NAME]) + popdef([Name]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl acl_libext, +dnl acl_shlibext, +dnl acl_hardcode_libdir_flag_spec, +dnl acl_hardcode_libdir_separator, +dnl acl_hardcode_direct, +dnl acl_hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + acl_libext="$acl_cv_libext" + acl_shlibext="$acl_cv_shlibext" + acl_libname_spec="$acl_cv_libname_spec" + acl_library_names_spec="$acl_cv_library_names_spec" + acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + acl_hardcode_direct="$acl_cv_hardcode_direct" + acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE([rpath], + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_FROMPACKAGE(name, package) +dnl declares that libname comes from the given package. The configure file +dnl will then not have a --with-libname-prefix option but a +dnl --with-package-prefix option. Several libraries can come from the same +dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar +dnl macro call that searches for libname. +AC_DEFUN([AC_LIB_FROMPACKAGE], +[ + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_frompackage_]NAME, [$2]) + popdef([NAME]) + pushdef([PACK],[$2]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([acl_libsinpackage_]PACKUP, + m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) + popdef([PACKUP]) + popdef([PACK]) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found +dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) + pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) + dnl Autoconf >= 2.61 supports dots in --with options. + pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_ARG_WITH(P_A_C_K[-prefix], +[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib + --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + if test "$acl_libdirstem2" != "$acl_libdirstem" \ + && ! test -d "$withval/$acl_libdirstem"; then + additional_libdir="$withval/$acl_libdirstem2" + fi + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + LIB[]NAME[]_PREFIX= + dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been + dnl computed. So it has to be reset here. + HAVE_LIB[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + eval libname=\"$acl_libname_spec\" # typically: libname=lib$name + if test -n "$acl_shlibext"; then + shrext=".$acl_shlibext" # typically: shrext=.so + else + shrext= + fi + if test $use_additional = yes; then + dir="$additional_libdir" + dnl The same code as in the loop below: + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi + fi + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext"; then + found_dir="$dir" + found_a="$dir/$libname.$acl_libext" + fi + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no \ + || test "X$found_dir" = "X/usr/$acl_libdirstem" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$acl_hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$acl_hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */$acl_libdirstem | */$acl_libdirstem/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + */$acl_libdirstem2 | */$acl_libdirstem2/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" + done + dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi + popdef([P_A_C_K]) + popdef([PACKLIBS]) + popdef([PACKUP]) + popdef([PACK]) + popdef([NAME]) +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +dnl For those cases where a variable contains several -L and -l options +dnl referring to unknown libraries and directories, this macro determines the +dnl necessary additional linker options for the runtime path. +dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) +dnl sets LDADDVAR to linker options needed together with LIBSVALUE. +dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, +dnl otherwise linking without libtool is assumed. +AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], +[ + AC_REQUIRE([AC_LIB_RPATH]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + $1= + if test "$enable_rpath" != no; then + if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode directories into the resulting + dnl binary. + rpathdirs= + next= + for opt in $2; do + if test -n "$next"; then + dir="$next" + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= + else + case $opt in + -L) next=yes ;; + -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` + dnl No need to hardcode the standard /usr/lib. + if test "X$dir" != "X/usr/$acl_libdirstem" \ + && test "X$dir" != "X/usr/$acl_libdirstem2"; then + rpathdirs="$rpathdirs $dir" + fi + next= ;; + *) next= ;; + esac + fi + done + if test "X$rpathdirs" != "X"; then + if test -n ""$3""; then + dnl libtool is used for linking. Use -R options. + for dir in $rpathdirs; do + $1="${$1}${$1:+ }-R$dir" + done + else + dnl The linker is used for linking directly. + if test -n "$acl_hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user + dnl must pass all path elements in one option. + alldirs= + for dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" + done + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="$flag" + else + dnl The -rpath options are cumulative. + for dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$dir" + eval flag=\"$acl_hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + $1="${$1}${$1:+ }$flag" + done + fi + fi + fi + fi + fi + AC_SUBST([$1]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/lib-prefix.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-prefix.m4 --- gettext-0.17/gettext-tools/gnulib-m4/lib-prefix.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/lib-prefix.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,224 @@ +# lib-prefix.m4 serial 7 (gettext-0.18) +dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_PREPARE_MULTILIB creates +dnl - a variable acl_libdirstem, containing the basename of the libdir, either +dnl "lib" or "lib64" or "lib/64", +dnl - a variable acl_libdirstem2, as a secondary possible value for +dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or +dnl "lib/amd64". +AC_DEFUN([AC_LIB_PREPARE_MULTILIB], +[ + dnl There is no formal standard regarding lib and lib64. + dnl On glibc systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine + dnl the compiler's default mode by looking at the compiler's library search + dnl path. If at least one of its elements ends in /lib64 or points to a + dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. + dnl Otherwise we use the default, namely "lib". + dnl On Solaris systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or + dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. + AC_REQUIRE([AC_CANONICAL_HOST]) + acl_libdirstem=lib + acl_libdirstem2= + case "$host_os" in + solaris*) + dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment + dnl . + dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." + dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the + dnl symlink is missing, so we set acl_libdirstem2 too. + AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], + [AC_EGREP_CPP([sixtyfour bits], [ +#ifdef _LP64 +sixtyfour bits +#endif + ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) + ]) + if test $gl_cv_solaris_64bit = yes; then + acl_libdirstem=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem2=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib64 ) acl_libdirstem=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/libunistring-base.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring-base.m4 --- gettext-0.17/gettext-tools/gnulib-m4/libunistring-base.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring-base.m4 2010-06-04 10:02:46.000000000 +0000 @@ -0,0 +1,141 @@ +# libunistring-base.m4 serial 5 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paolo Bonzini and Bruno Haible. + +dnl gl_LIBUNISTRING_MODULE([VERSION], [Module]) +dnl Declares that the source files of Module should be compiled, unless we +dnl are linking with libunistring and its version is >= the given VERSION. +dnl Defines an automake conditional LIBUNISTRING_COMPILE_$MODULE that is +dnl true if the source files of Module should be compiled. +dnl This macro is to be used for public libunistring API, not for +dnl undocumented API. +dnl +dnl You have to bump the VERSION argument to the next projected version +dnl number each time you make a change that affects the behaviour of the +dnl functions defined in Module (even if the sources of Module itself do not +dnl change). + +AC_DEFUN([gl_LIBUNISTRING_MODULE], +[ + AC_REQUIRE([gl_LIBUNISTRING_LIB_PREPARE]) + dnl Use the variables HAVE_LIBUNISTRING, LIBUNISTRING_VERSION from + dnl gl_LIBUNISTRING_CORE if that macro has been run. + AM_CONDITIONAL(AS_TR_CPP([LIBUNISTRING_COMPILE_$2]), + [gl_LIBUNISTRING_VERSION_CMP([$1])]) +]) + +dnl gl_LIBUNISTRING_LIBHEADER([VERSION], [HeaderFile]) +dnl Declares that HeaderFile should be created, unless we are linking +dnl with libunistring and its version is >= the given VERSION. +dnl HeaderFile should be relative to the lib directory and end in '.h'. +dnl Prepares for substituting LIBUNISTRING_HEADERFILE (to HeaderFile or empty). +dnl +dnl When we are linking with the already installed libunistring and its version +dnl is < VERSION, we create HeaderFile here, because we may compile functions +dnl (via gl_LIBUNISTRING_MODULE above) that are not contained in the installed +dnl version. +dnl When we are linking with the already installed libunistring and its version +dnl is > VERSION, we don't create HeaderFile here: it could cause compilation +dnl errors in other libunistring header files if some types are missing. +dnl +dnl You have to bump the VERSION argument to the next projected version +dnl number each time you make a non-comment change to the HeaderFile. + +AC_DEFUN([gl_LIBUNISTRING_LIBHEADER], +[ + AC_REQUIRE([gl_LIBUNISTRING_LIB_PREPARE]) + dnl Use the variables HAVE_LIBUNISTRING, LIBUNISTRING_VERSION from + dnl gl_LIBUNISTRING_CORE if that macro has been run. + if gl_LIBUNISTRING_VERSION_CMP([$1]); then + LIBUNISTRING_[]AS_TR_CPP([$2])='$2' + else + LIBUNISTRING_[]AS_TR_CPP([$2])= + fi + AC_SUBST([LIBUNISTRING_]AS_TR_CPP([$2])) +]) + +dnl Miscellaneous preparations/initializations. + +AC_DEFUN([gl_LIBUNISTRING_LIB_PREPARE], +[ + dnl Ensure that HAVE_LIBUNISTRING is fully determined at this point. + m4_ifdef([gl_LIBUNISTRING], [AC_REQUIRE([gl_LIBUNISTRING])]) + + AC_REQUIRE([AC_PROG_AWK]) + +dnl Sed expressions to extract the parts of a version number. +changequote(,) +gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} +i\ +0 +q +' +changequote([,]) + + if test "$HAVE_LIBUNISTRING" = yes; then + LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` + LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` + LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` + fi +]) + +dnl gl_LIBUNISTRING_VERSION_CMP([VERSION]) +dnl Expands to a shell statement that evaluates to true if LIBUNISTRING_VERSION +dnl is less than the VERSION argument. +AC_DEFUN([gl_LIBUNISTRING_VERSION_CMP], +[ { test "$HAVE_LIBUNISTRING" != yes \ + || { + dnl AS_LITERAL_IF exists and works fine since autoconf-2.59 at least. + AS_LITERAL_IF([$1], + [dnl This is the optimized variant, that assumes the argument is a literal: + m4_pushdef([requested_version_major], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^\([0-9]*\).*], [\1]), [])]) + m4_pushdef([requested_version_minor], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^[0-9]*[.]\([0-9]*\).*], [\1]), [$1])]) + m4_pushdef([requested_version_subminor], + [gl_LIBUNISTRING_ARG_OR_ZERO(m4_bpatsubst([$1], [^[0-9]*[.][0-9]*[.]\([0-9]*\).*], [\1]), [$1])]) + test $LIBUNISTRING_VERSION_MAJOR -lt requested_version_major \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq requested_version_major \ + && { test $LIBUNISTRING_VERSION_MINOR -lt requested_version_minor \ + || { test $LIBUNISTRING_VERSION_MINOR -eq requested_version_minor \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt requested_version_subminor + } + } + } + m4_popdef([requested_version_subminor]) + m4_popdef([requested_version_minor]) + m4_popdef([requested_version_major]) + ], + [dnl This is the unoptimized variant: + requested_version_major=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_major"` + requested_version_minor=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_minor"` + requested_version_subminor=`echo '$1' | sed -n -e "$gl_libunistring_sed_extract_subminor"` + test $LIBUNISTRING_VERSION_MAJOR -lt $requested_version_major \ + || { test $LIBUNISTRING_VERSION_MAJOR -eq $requested_version_major \ + && { test $LIBUNISTRING_VERSION_MINOR -lt $requested_version_minor \ + || { test $LIBUNISTRING_VERSION_MINOR -eq $requested_version_minor \ + && test $LIBUNISTRING_VERSION_SUBMINOR -lt $requested_version_subminor + } + } + } + ]) + } + }]) + +dnl gl_LIBUNISTRING_ARG_OR_ZERO([ARG], [ORIG]) expands to ARG if it is not the +dnl same as ORIG, otherwise to 0. +m4_define([gl_LIBUNISTRING_ARG_OR_ZERO], [m4_if([$1], [$2], [0], [$1])]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/libunistring.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring.m4 --- gettext-0.17/gettext-tools/gnulib-m4/libunistring.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring.m4 2010-06-03 21:36:14.000000000 +0000 @@ -0,0 +1,143 @@ +# libunistring.m4 serial 9 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl gl_LIBUNISTRING +dnl Searches for an installed libunistring. +dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING +dnl and LTLIBUNISTRING variables, sets the LIBUNISTRING_VERSION variable, and +dnl augments the CPPFLAGS variable, and #defines HAVE_LIBUNISTRING to 1. +dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and +dnl LTLIBUNISTRING to empty. + +dnl Define gl_LIBUNISTRING using AC_DEFUN_ONCE for Autoconf >= 2.64, in order +dnl to avoid warnings like +dnl "warning: AC_REQUIRE: `gl_LIBUNISTRING' was expanded before it was required". +dnl This is tricky because of the way 'aclocal' is implemented: +dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. +dnl Otherwise aclocal's initial scan pass would miss the macro definition. +dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. +dnl Otherwise aclocal would emit many "Use of uninitialized value $1" +dnl warnings. +m4_define([gl_libunistring_AC_DEFUN], + m4_version_prereq([2.64], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])) +gl_libunistring_AC_DEFUN([gl_LIBUNISTRING], +[ + AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE]) + AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER]) + AC_BEFORE([$0], [gl_LIBUNISTRING_LIB_PREPARE]) + + m4_ifdef([gl_LIBUNISTRING_OPTIONAL], + [ + AC_MSG_CHECKING([whether included libunistring is requested]) + AC_ARG_WITH([included-libunistring], + [ --with-included-libunistring use the libunistring parts included here], + [gl_libunistring_force_included=$withval], + [gl_libunistring_force_included=no]) + AC_MSG_RESULT([$gl_libunistring_force_included]) + gl_libunistring_use_included="$gl_libunistring_force_included" + if test "$gl_libunistring_use_included" = yes; then + dnl Assume that libunistring is not installed until some other macro + dnl explicitly invokes gl_LIBUNISTRING_CORE. + if test -z "$HAVE_LIBUNISTRING"; then + HAVE_LIBUNISTRING=no + fi + LIBUNISTRING= + LTLIBUNISTRING= + else + gl_LIBUNISTRING_CORE + if test $HAVE_LIBUNISTRING = no; then + gl_libunistring_use_included=yes + LIBUNISTRING= + LTLIBUNISTRING= + fi + fi + ], + [gl_LIBUNISTRING_CORE]) +]) + +AC_DEFUN([gl_LIBUNISTRING_CORE], +[ + AC_REQUIRE([AM_ICONV]) + if test -n "$LIBICONV"; then + dnl First, try to link without -liconv. libunistring often depends on + dnl libiconv, but we don't know (and often don't need to know) where + dnl libiconv is installed. + AC_LIB_HAVE_LINKFLAGS([unistring], [], + [#include ], [u8_strconv_from_locale((char*)0);], + [no, trying again together with libiconv]) + if test "$ac_cv_libunistring" != yes; then + dnl Second try, with -liconv. + dnl We have to erase the cached result of the first AC_LIB_HAVE_LINKFLAGS + dnl invocation, otherwise the second one will not be run. + unset ac_cv_libunistring + glus_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" + AC_LIB_HAVE_LINKFLAGS([unistring], [], + [#include ], [u8_strconv_from_locale((char*)0);], + [no, consider installing GNU libunistring]) + if test -n "$LIBUNISTRING"; then + LIBUNISTRING="$LIBUNISTRING $LIBICONV" + LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV" + fi + LIBS="$glus_save_LIBS" + fi + else + AC_LIB_HAVE_LINKFLAGS([unistring], [], + [#include ], [u8_strconv_from_locale((char*)0);], + [no, consider installing GNU libunistring]) + fi + if test $HAVE_LIBUNISTRING = yes; then + dnl Determine the installed version. + AC_CACHE_CHECK([for libunistring version], [gl_cv_libunistring_version], + [AC_COMPUTE_INT([gl_libunistring_hexversion], + [_LIBUNISTRING_VERSION], + [#include ]) + dnl Versions <= 0.9.3 had a hexversion of 0x0009. + dnl Use other tests to distinguish them. + if test $gl_libunistring_hexversion = 9; then + dnl Version 0.9.2 introduced the header . + AC_TRY_COMPILE([#include ], , + [gl_cv_libunistring_version092=true], + [gl_cv_libunistring_version092=false]); + if $gl_cv_libunistring_version092; then + dnl Version 0.9.3 changed a comment in . + gl_ABSOLUTE_HEADER_ONE([unistr.h]) + if test -n "$gl_cv_absolute_unistr_h" \ + && grep 'Copy no more than N units of SRC to DEST. Return a pointer' $gl_cv_absolute_unistr_h > /dev/null; then + dnl Detected version 0.9.3. + gl_libunistring_hexversion=2307 + else + dnl Detected version 0.9.2. + gl_libunistring_hexversion=2306 + fi + else + dnl Version 0.9.1 introduced the type casing_suffix_context_t. + AC_TRY_COMPILE([#include + casing_suffix_context_t ct;], , + [gl_cv_libunistring_version091=true], + [gl_cv_libunistring_version091=false]) + if $gl_cv_libunistring_version091; then + dnl Detected version 0.9.1. + gl_libunistring_hexversion=2305 + else + dnl Detected version 0.9. + gl_libunistring_hexversion=2304 + fi + fi + fi + dnl Transform into the usual major.minor.subminor notation. + gl_libunistring_major=`expr $gl_libunistring_hexversion / 65536` + gl_libunistring_minor=`expr $gl_libunistring_hexversion / 256 % 256` + gl_libunistring_subminor=`expr $gl_libunistring_hexversion % 256` + gl_cv_libunistring_version="$gl_libunistring_major.$gl_libunistring_minor.$gl_libunistring_subminor" + ]) + LIBUNISTRING_VERSION="$gl_cv_libunistring_version" + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/libunistring-optional.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring-optional.m4 --- gettext-0.17/gettext-tools/gnulib-m4/libunistring-optional.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/libunistring-optional.m4 2010-05-24 10:42:19.000000000 +0000 @@ -0,0 +1,22 @@ +# libunistring-optional.m4 serial 1 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl gl_LIBUNISTRING_OPTIONAL +dnl Searches for an installed libunistring or uses the included source code +dnl parts. +dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING +dnl and LTLIBUNISTRING variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIBUNISTRING to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIBUNISTRING=no and LIBUNISTRING and LTLIBUNISTRING to empty. + +AC_DEFUN([gl_LIBUNISTRING_OPTIONAL], +[ + dnl gl_LIBUNISTRING does a couple of extra things if this macro is used. + AC_REQUIRE([gl_LIBUNISTRING]) + + AC_MSG_CHECKING([whether to use the included libunistring]) + AC_MSG_RESULT([$gl_libunistring_use_included]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/libxml.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/libxml.m4 --- gettext-0.17/gettext-tools/gnulib-m4/libxml.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/libxml.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# libxml.m4 serial 4 (gettext-0.17) -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# libxml.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -56,17 +56,30 @@ ]) if test "$gl_cv_libxml" != yes; then dnl Often the include files are installed in /usr/include/libxml2. - AC_TRY_LINK([#include ], - [xmlCheckVersion (0);], - [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h]) - libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` - if test -d "$libxml2_include_dir"; then - gl_cv_libxml=yes + dnl In libxml2-2.5, is self-contained. + dnl In libxml2-2.6, it includes which is + dnl self-contained. + libxml2_include_dir= + AC_TRY_CPP([#include ], + [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlexports.h]) + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'` + ]) + if test -z "$libxml2_include_dir"; then + AC_TRY_CPP([#include ], + [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h]) + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` + ]) + fi + if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then + CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir" + AC_TRY_LINK([#include ], + [xmlCheckVersion (0);], + [gl_cv_libxml=yes gl_cv_LIBXML="$LIBXML2 $LIBICONV" gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" gl_cv_INCXML="-I$libxml2_include_dir" - fi - ]) + ]) + fi fi CPPFLAGS="$gl_save_CPPFLAGS" fi diff -Nru gettext-0.17/gettext-tools/gnulib-m4/linebreak.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/linebreak.m4 --- gettext-0.17/gettext-tools/gnulib-m4/linebreak.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/linebreak.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -# linebreak.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_LINEBREAK], -[ - dnl Prerequisites of lib/linebreak.c. - AC_REQUIRE([AC_C_INLINE]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/localcharset.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/localcharset.m4 --- gettext-0.17/gettext-tools/gnulib-m4/localcharset.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/localcharset.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# localcharset.m4 serial 5 -dnl Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc. +# localcharset.m4 serial 7 +dnl Copyright (C) 2002, 2004, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,7 +8,8 @@ [ dnl Prerequisites of lib/localcharset.c. AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CHECK_DECLS_ONCE(getc_unlocked) + AC_REQUIRE([gl_FCNTL_O_FLAGS]) + AC_CHECK_DECLS_ONCE([getc_unlocked]) dnl Prerequisites of the lib/Makefile.am snippet. AC_REQUIRE([AC_CANONICAL_HOST]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/locale-fr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-fr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/locale-fr.m4 2007-10-28 22:53:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-fr.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# locale-fr.m4 serial 7 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# locale-fr.m4 serial 11 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,26 +11,8 @@ [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CACHE_CHECK([for a traditional french locale], gt_cv_locale_fr, [ - macosx= -changequote(,)dnl - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac -changequote([,])dnl - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_fr=none - else - AC_LANG_CONFTEST([AC_LANG_SOURCE([ + AC_CACHE_CHECK([for a traditional french locale], [gt_cv_locale_fr], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ changequote(,)dnl #include #include @@ -44,11 +26,18 @@ int main () { /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ #if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } #endif #ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the @@ -68,42 +57,41 @@ return 0; } changequote([,])dnl - ])]) - if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the usual locale name. - if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the usual locale name. + if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO-8859-1 else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO-8859-1 + # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. + if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.ISO8859-1 else - # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. - if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.ISO8859-1 + # Test for the HP-UX locale name. + if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr_FR.iso88591 else - # Test for the HP-UX locale name. - if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr_FR.iso88591 + # Test for the Solaris 7 locale name. + if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_fr=fr else - # Test for the Solaris 7 locale name. - if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_fr=fr - else - # None found. - gt_cv_locale_fr=none - fi + # None found. + gt_cv_locale_fr=none fi fi fi fi fi - rm -fr conftest* fi + rm -fr conftest* ]) LOCALE_FR=$gt_cv_locale_fr AC_SUBST([LOCALE_FR]) @@ -113,7 +101,7 @@ AC_DEFUN([gt_LOCALE_FR_UTF8], [ AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CACHE_CHECK([for a french Unicode locale], gt_cv_locale_fr_utf8, [ + AC_CACHE_CHECK([for a french Unicode locale], [gt_cv_locale_fr_utf8], [ AC_LANG_CONFTEST([AC_LANG_SOURCE([ changequote(,)dnl #include @@ -126,17 +114,24 @@ struct tm t; char buf[16]; int main () { - /* On BeOS, locales are not implemented in libc. Rather, libintl + /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl imitates locale dependent behaviour by looking at the environment variables, and all locales use the UTF-8 encoding. */ -#if !defined(__BEOS__) +#if !(defined __BEOS__ || defined __HAIKU__) /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ # if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } # endif # ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the diff -Nru gettext-0.17/gettext-tools/gnulib-m4/locale_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/locale_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/locale_h.m4 2007-07-01 14:09:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/locale_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,22 +1,92 @@ -# locale_h.m4 serial 2 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# locale_h.m4 serial 10 +dnl Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_LOCALE_H], [ - AC_CACHE_CHECK([whether locale.h conforms to POSIX], - [gl_cv_header_working_locale_h], + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) + + dnl Persuade glibc to define locale_t. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + + dnl If is replaced, then must also be replaced. + AC_REQUIRE([gl_STDDEF_H]) + + AC_CACHE_CHECK([whether locale.h conforms to POSIX:2001], + [gl_cv_header_locale_h_posix2001], [AC_TRY_COMPILE([#include int x = LC_MESSAGES;], [], - [gl_cv_header_working_locale_h=yes], - [gl_cv_header_working_locale_h=no])]) - if test $gl_cv_header_working_locale_h = yes; then - LOCALE_H= + [gl_cv_header_locale_h_posix2001=yes], + [gl_cv_header_locale_h_posix2001=no])]) + + dnl Check for . + AC_CHECK_HEADERS_ONCE([xlocale.h]) + if test $ac_cv_header_xlocale_h = yes; then + HAVE_XLOCALE_H=1 + dnl Check whether use of locale_t requires inclusion of , + dnl e.g. on MacOS X 10.5. If does not define locale_t by + dnl itself, we assume that will do so. + AC_CACHE_CHECK([whether locale.h defines locale_t], + [gl_cv_header_locale_has_locale_t], + [AC_TRY_COMPILE([#include +locale_t x;], [], + [gl_cv_header_locale_has_locale_t=yes], + [gl_cv_header_locale_has_locale_t=no]) + ]) + if test $gl_cv_header_locale_has_locale_t = yes; then + gl_cv_header_locale_h_needs_xlocale_h=no + else + gl_cv_header_locale_h_needs_xlocale_h=yes + fi else - gl_CHECK_NEXT_HEADERS([locale.h]) - LOCALE_H=locale.h + HAVE_XLOCALE_H=0 + gl_cv_header_locale_h_needs_xlocale_h=no fi - AC_SUBST([LOCALE_H]) + AC_SUBST([HAVE_XLOCALE_H]) + + dnl is always overridden, because of GNULIB_POSIXCHECK. + gl_CHECK_NEXT_HEADERS([locale.h]) + + if test -n "$STDDEF_H" \ + || test $gl_cv_header_locale_h_posix2001 = no \ + || test $gl_cv_header_locale_h_needs_xlocale_h = yes; then + gl_REPLACE_LOCALE_H + fi + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include +/* Some systems provide declarations in a non-standard header. */ +#if HAVE_XLOCALE_H +# include +#endif + ]], [duplocale]) +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_LOCALE_H], +[ + dnl This is a no-op, because is always overridden. + : +]) + +AC_DEFUN([gl_LOCALE_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_LOCALE_H_DEFAULTS], +[ + GNULIB_DUPLOCALE=0; AC_SUBST([GNULIB_DUPLOCALE]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_DUPLOCALE=1; AC_SUBST([HAVE_DUPLOCALE]) + REPLACE_DUPLOCALE=0; AC_SUBST([REPLACE_DUPLOCALE]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/locale-ja.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-ja.m4 --- gettext-0.17/gettext-tools/gnulib-m4/locale-ja.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-ja.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,107 @@ +# locale-ja.m4 serial 7 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl Determine the name of a japanese locale with EUC-JP encoding. +AC_DEFUN([gt_LOCALE_JA], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AM_LANGINFO_CODESET]) + AC_CACHE_CHECK([for a traditional japanese locale], [gt_cv_locale_ja], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +changequote(,)dnl +#include +#include +#if HAVE_LANGINFO_CODESET +# include +#endif +#include +#include +struct tm t; +char buf[16]; +int main () +{ + const char *p; + /* Check whether the given locale name is recognized by the system. */ + if (setlocale (LC_ALL, "") == NULL) return 1; + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". + On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ + /* On Cygwin, avoid locale names without encoding suffix, because the + locale_charset() function relies on the encoding suffix. Note that + LC_ALL is set on the command line. */ + if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; +#endif + /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales + on Cygwin 1.5.x. */ + if (MB_CUR_MAX == 1) + return 1; + /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. + This excludes the UTF-8 encoding. */ + t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; + if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; + for (p = buf; *p != '\0'; p++) + if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) + return 1; + return 0; +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the AIX locale name. + if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC-JP + else + # Test for the HP-UX, OSF/1, NetBSD locale name. + if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.eucJP + else + # Test for the IRIX, FreeBSD locale name. + if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja_JP.EUC + else + # Test for the Solaris 7 locale name. + if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_ja=ja + else + # Special test for NetBSD 1.6. + if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then + gt_cv_locale_ja=ja_JP.eucJP + else + # None found. + gt_cv_locale_ja=none + fi + fi + fi + fi + fi + fi + fi + rm -fr conftest* + ]) + LOCALE_JA=$gt_cv_locale_ja + AC_SUBST([LOCALE_JA]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/localename.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/localename.m4 --- gettext-0.17/gettext-tools/gnulib-m4/localename.m4 2007-06-08 10:34:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/localename.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# localename.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# localename.m4 serial 2 +dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,5 +8,5 @@ [ AC_REQUIRE([gt_LC_MESSAGES]) AC_REQUIRE([gt_INTL_MACOSX]) - AC_CHECK_FUNCS([setlocale]) + AC_CHECK_FUNCS([setlocale uselocale]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/locale-tr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-tr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/locale-tr.m4 2007-10-17 22:35:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-tr.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# locale-tr.m4 serial 3 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# locale-tr.m4 serial 6 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,7 +10,7 @@ AC_DEFUN([gt_LOCALE_TR_UTF8], [ AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CACHE_CHECK([for a turkish Unicode locale], gt_cv_locale_tr_utf8, [ + AC_CACHE_CHECK([for a turkish Unicode locale], [gt_cv_locale_tr_utf8], [ AC_LANG_CONFTEST([AC_LANG_SOURCE([ changequote(,)dnl #include @@ -25,22 +25,30 @@ int main () { /* On BeOS, locales are not implemented in libc. Rather, libintl imitates locale dependent behaviour by looking at the environment - variables, and all locales use the UTF-8 encoding. */ -#if !defined(__BEOS__) + variables, and all locales use the UTF-8 encoding. But BeOS does not + implement the Turkish upper-/lowercase mappings. Therefore, let this + program return 1 on BeOS. */ /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -# if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -# endif -# ifdef __CYGWIN__ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ +#if HAVE_LANGINFO_CODESET + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } +#endif +#ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the locale_charset() function relies on the encoding suffix. Note that LC_ALL is set on the command line. */ if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -# endif +#endif /* Check whether in the abbreviation of the eighth month, the second character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is two bytes long, with UTF-8 encoding. */ @@ -53,7 +61,6 @@ if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) return 1; -#endif return 0; } changequote([,])dnl diff -Nru gettext-0.17/gettext-tools/gnulib-m4/locale-zh.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-zh.m4 --- gettext-0.17/gettext-tools/gnulib-m4/locale-zh.m4 2007-10-17 22:35:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/locale-zh.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# locale-zh.m4 serial 3 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# locale-zh.m4 serial 6 +dnl Copyright (C) 2003, 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,26 +11,8 @@ [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CACHE_CHECK([for a transitional chinese locale], gt_cv_locale_zh_CN, [ - macosx= -changequote(,)dnl - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac -changequote([,])dnl - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_zh_CN=none - else - AC_LANG_CONFTEST([AC_LANG_SOURCE([ + AC_CACHE_CHECK([for a transitional chinese locale], [gt_cv_locale_zh_CN], [ + AC_LANG_CONFTEST([AC_LANG_SOURCE([ changequote(,)dnl #include #include @@ -47,11 +29,18 @@ const char *p; /* Check whether the given locale name is recognized by the system. */ if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. + /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ + is empty, and the behaviour of Tcl 8.4 in this locale is not useful. + On OpenBSD 4.0, when an unsupported locale is specified, setlocale() + succeeds but then nl_langinfo(CODESET) is "646". In this situation, + some unit tests fail. */ #if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; + { + const char *cs = nl_langinfo (CODESET); + if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) + return 1; + } #endif #ifdef __CYGWIN__ /* On Cygwin, avoid locale names without encoding suffix, because the @@ -73,31 +62,30 @@ return 0; } changequote([,])dnl - ])]) - if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the locale name without encoding suffix. - if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_zh_CN=zh_CN + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because + # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the + # configure script would override the LC_ALL setting. Likewise for + # LC_CTYPE, which is also set at the beginning of the configure script. + # Test for the locale name without encoding suffix. + if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN + else + # Test for the locale name with explicit encoding suffix. + if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then + gt_cv_locale_zh_CN=zh_CN.GB18030 else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_zh_CN=zh_CN.GB18030 - else - # None found. - gt_cv_locale_zh_CN=none - fi + # None found. + gt_cv_locale_zh_CN=none fi - else - # If there was a link error, due to mblen(), the system is so old that - # it certainly doesn't have a chinese locale. - gt_cv_locale_zh_CN=none fi - rm -fr conftest* + else + # If there was a link error, due to mblen(), the system is so old that + # it certainly doesn't have a chinese locale. + gt_cv_locale_zh_CN=none fi + rm -fr conftest* ]) LOCALE_ZH_CN=$gt_cv_locale_zh_CN AC_SUBST([LOCALE_ZH_CN]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/lstat.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/lstat.m4 --- gettext-0.17/gettext-tools/gnulib-m4/lstat.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/lstat.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,28 @@ +# serial 20 + +# Copyright (C) 1997-2001, 2003-2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +dnl From Jim Meyering. + +AC_DEFUN([gl_FUNC_LSTAT], +[ + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + dnl If lstat does not exist, the replacement does + dnl "#define lstat stat", and lstat.c is a no-op. + AC_CHECK_FUNCS_ONCE([lstat]) + if test $ac_cv_func_lstat = yes; then + AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) + if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then + dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ([lstat]). + REPLACE_LSTAT=1 + fi + # Prerequisites of lib/lstat.c. + AC_REQUIRE([AC_C_INLINE]) + else + HAVE_LSTAT=0 + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/malloca.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/malloca.m4 --- gettext-0.17/gettext-tools/gnulib-m4/malloca.m4 2007-06-19 00:26:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/malloca.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ # malloca.m4 serial 1 -dnl Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/malloc.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/malloc.m4 --- gettext-0.17/gettext-tools/gnulib-m4/malloc.m4 2007-09-30 21:33:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/malloc.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# malloc.m4 serial 8 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# malloc.m4 serial 9 +dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) if test $gl_cv_func_malloc_posix = yes; then HAVE_MALLOC_POSIX=1 - AC_DEFINE([HAVE_MALLOC_POSIX], 1, + AC_DEFINE([HAVE_MALLOC_POSIX], [1], [Define if the 'malloc' function is POSIX compliant.]) else AC_LIBOBJ([malloc]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbchar.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbchar.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbchar.m4 2007-09-30 21:33:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbchar.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# mbchar.m4 serial 7 -dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. +# mbchar.m4 serial 8 +dnl Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,4 +10,5 @@ AC_DEFUN([gl_MBCHAR], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_C_INLINE]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbiter.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbiter.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbiter.m4 2007-03-04 00:33:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbiter.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# mbiter.m4 serial 2 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# mbiter.m4 serial 5 +dnl Copyright (C) 2005, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,9 +9,10 @@ AC_DEFUN([gl_MBITER], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MBSTATE_T]) dnl The following line is that so the user can test HAVE_MBRTOWC before - dnl #include "mbiter.h" or "mbuiter.h". - AC_REQUIRE([gl_FUNC_MBRTOWC]) + dnl #include "mbiter.h" or "mbuiter.h". It can be removed in 2010. + AC_REQUIRE([AC_FUNC_MBRTOWC]) : ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbrtowc.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbrtowc.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbrtowc.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbrtowc.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,15 +1,368 @@ -# mbrtowc.m4 serial 8 -dnl Copyright (C) 2001-2002, 2004-2005 Free Software Foundation, Inc. +# mbrtowc.m4 serial 17 +dnl Copyright (C) 2001-2002, 2004-2005, 2008-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +AC_DEFUN([gl_FUNC_MBRTOWC], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([mbrtowc]) + if test $ac_cv_func_mbrtowc = no; then + HAVE_MBRTOWC=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBRTOWC=1 + else + gl_MBRTOWC_NULL_ARG + gl_MBRTOWC_RETVAL + gl_MBRTOWC_NUL_RETVAL + case "$gl_cv_func_mbrtowc_null_arg" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_NULL_ARG_BUG], [1], + [Define if the mbrtowc function has the NULL string argument bug.]) + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_retval" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_RETVAL_BUG], [1], + [Define if the mbrtowc function returns a wrong return value.]) + REPLACE_MBRTOWC=1 + ;; + esac + case "$gl_cv_func_mbrtowc_nul_retval" in + *yes) ;; + *) AC_DEFINE([MBRTOWC_NUL_RETVAL_BUG], [1], + [Define if the mbrtowc function does not return 0 for a NUL character.]) + REPLACE_MBRTOWC=1 + ;; + esac + fi + fi + if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([mbrtowc]) + gl_PREREQ_MBRTOWC + fi +]) + +dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that +dnl redefines the semantics of the given mbstate_t type. +dnl Result is REPLACE_MBSTATE_T. +dnl When this is set to 1, we replace both mbsinit() and mbrtowc(), in order to +dnl avoid inconsistencies. + +AC_DEFUN([gl_MBSTATE_T_BROKEN], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + AC_CHECK_FUNCS_ONCE([mbsinit]) + AC_CHECK_FUNCS_ONCE([mbrtowc]) + if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then + gl_MBRTOWC_INCOMPLETE_STATE + gl_MBRTOWC_SANITYCHECK + REPLACE_MBSTATE_T=0 + case "$gl_cv_func_mbrtowc_incomplete_state" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + case "$gl_cv_func_mbrtowc_sanitycheck" in + *yes) ;; + *) REPLACE_MBSTATE_T=1 ;; + esac + else + REPLACE_MBSTATE_T=1 + fi + if test $REPLACE_MBSTATE_T = 1; then + gl_REPLACE_WCHAR_H + fi +]) + +dnl Test whether mbrtowc puts the state into non-initial state when parsing an +dnl incomplete multibyte character. +dnl Result is gl_cv_func_mbrtowc_incomplete_state. + +AC_DEFUN([gl_MBRTOWC_INCOMPLETE_STATE], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc handles incomplete characters], + [gl_cv_func_mbrtowc_incomplete_state], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on AIX and OSF/1. + osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_JA != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + if (mbsinit (&state)) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_incomplete_state=yes], + [gl_cv_func_mbrtowc_incomplete_state=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc works not worse than mbtowc. +dnl Result is gl_cv_func_mbrtowc_sanitycheck. + +AC_DEFUN([gl_MBRTOWC_SANITYCHECK], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc works as well as mbtowc], + [gl_cv_func_mbrtowc_sanitycheck], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on Solaris 8. + solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +#include +int main () +{ + /* This fails on Solaris 8: + mbrtowc returns 2, and sets wc to 0x00F0. + mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 3, 6, &state) != 4 + && mbtowc (&wc, input + 3, 6) == 4) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_sanitycheck=yes], + [gl_cv_func_mbrtowc_sanitycheck=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc supports a NULL string argument correctly. +dnl Result is gl_cv_func_mbrtowc_null_arg. + +AC_DEFUN([gl_MBRTOWC_NULL_ARG], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument], + [gl_cv_func_mbrtowc_null_arg], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on OSF/1. + osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR_UTF8 != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + mbstate_t state; + wchar_t wc; + int ret; + + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + mbrtowc (&wc, NULL, 5, &state); + /* Check that wc was not modified. */ + if (wc != (wchar_t) 0xBADFACE) + return 1; + } + return 0; +}], [gl_cv_func_mbrtowc_null_arg=yes], [gl_cv_func_mbrtowc_null_arg=no], [:]) + fi + ]) +]) + +dnl Test whether mbrtowc, when parsing the end of a multibyte character, +dnl correctly returns the number of bytes that were needed to complete the +dnl character (not the total number of bytes of the multibyte character). +dnl Result is gl_cv_func_mbrtowc_retval. + +AC_DEFUN([gl_MBRTOWC_RETVAL], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc has a correct return value], + [gl_cv_func_mbrtowc_retval], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_retval="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + /* This fails on Solaris. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 1) + return 1; + } + } + /* This fails on HP-UX 11.11. */ + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) + { + input[1] = '\0'; + if (mbrtowc (&wc, input + 2, 5, &state) != 2) + return 1; + } + } + return 0; +}], + [gl_cv_func_mbrtowc_retval=yes], + [gl_cv_func_mbrtowc_retval=no], + [:]) + fi + ]) +]) + +dnl Test whether mbrtowc, when parsing a NUL character, correctly returns 0. +dnl Result is gl_cv_func_mbrtowc_nul_retval. + +AC_DEFUN([gl_MBRTOWC_NUL_RETVAL], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbrtowc returns 0 when parsing a NUL character], + [gl_cv_func_mbrtowc_nul_retval], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on Solaris 8 and 9. + solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + /* This fails on Solaris 8 and 9. */ + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + mbstate_t state; + wchar_t wc; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (&wc, "", 1, &state) != 0) + return 1; + } + return 0; +}], + [gl_cv_func_mbrtowc_nul_retval=yes], + [gl_cv_func_mbrtowc_nul_retval=no], + [:]) + fi + ]) +]) + +# Prerequisites of lib/mbrtowc.c. +AC_DEFUN([gl_PREREQ_MBRTOWC], [ + : +]) + + dnl From Paul Eggert -dnl This file can be removed, and gl_FUNC_MBRTOWC replaced with -dnl AC_FUNC_MBRTOWC, when autoconf 2.60 can be assumed everywhere. +dnl This override of an autoconf macro can be removed when autoconf 2.60 or +dnl newer can be assumed everywhere. -AC_DEFUN([gl_FUNC_MBRTOWC], +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.60]),[-1],[ +AC_DEFUN([AC_FUNC_MBRTOWC], [ dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60. AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared], @@ -25,7 +378,8 @@ gl_cv_func_mbrtowc=yes, gl_cv_func_mbrtowc=no)]) if test $gl_cv_func_mbrtowc = yes; then - AC_DEFINE([HAVE_MBRTOWC], 1, + AC_DEFINE([HAVE_MBRTOWC], [1], [Define to 1 if mbrtowc and mbstate_t are properly declared.]) fi ]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbsinit.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsinit.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbsinit.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsinit.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,32 @@ +# mbsinit.m4 serial 4 +dnl Copyright (C) 2008, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_MBSINIT], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([mbsinit]) + if test $ac_cv_func_mbsinit = no; then + HAVE_MBSINIT=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSINIT=1 + fi + fi + if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([mbsinit]) + gl_PREREQ_MBSINIT + fi +]) + +# Prerequisites of lib/mbsinit.c. +AC_DEFUN([gl_PREREQ_MBSINIT], [ + : +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbslen.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbslen.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbslen.m4 2007-03-04 00:33:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbslen.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,16 +1,16 @@ -# mbslen.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# mbslen.m4 serial 2 +dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MBSLEN], [ - gl_PREREQ_MBSLEN -]) - -# Prerequisites of lib/mbslen.c. -AC_DEFUN([gl_PREREQ_MBSLEN], [ - AC_REQUIRE([gl_FUNC_MBRTOWC]) - : + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([mbslen]) + if test $ac_cv_func_mbslen = yes; then + HAVE_MBSLEN=1 + else + HAVE_MBSLEN=0 + fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbsrtowcs.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsrtowcs.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbsrtowcs.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsrtowcs.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,122 @@ +# mbsrtowcs.m4 serial 6 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_MBSRTOWCS], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([mbsrtowcs]) + if test $ac_cv_func_mbsrtowcs = no; then + HAVE_MBSRTOWCS=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_MBSRTOWCS=1 + else + gl_MBSRTOWCS_WORKS + case "$gl_cv_func_mbsrtowcs_works" in + *yes) ;; + *) REPLACE_MBSRTOWCS=1 ;; + esac + fi + fi + if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([mbsrtowcs]) + AC_LIBOBJ([mbsrtowcs-state]) + gl_PREREQ_MBSRTOWCS + fi +]) + +dnl Test whether mbsrtowcs works. +dnl Result is gl_cv_func_mbsrtowcs_works. + +AC_DEFUN([gl_MBSRTOWCS_WORKS], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether mbsrtowcs works], + [gl_cv_func_mbsrtowcs_works], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on HP-UX and Solaris. + hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_mbsrtowcs_works="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + /* Test whether the function works when started with a conversion state + in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */ + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + const char input[] = "B\303\274\303\237er"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 2; + if (mbsrtowcs (NULL, &src, 10, &state) != 4) + return 1; + } + } + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + const char input[] = "<\306\374\313\334\270\354>"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 4; + if (mbsrtowcs (NULL, &src, 10, &state) != 3) + return 1; + } + } + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + const char input[] = "B\250\271\201\060\211\070er"; + mbstate_t state; + + memset (&state, '\0', sizeof (mbstate_t)); + if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2)) + if (!mbsinit (&state)) + { + const char *src = input + 2; + if (mbsrtowcs (NULL, &src, 10, &state) != 4) + return 1; + } + } + return 0; +}], + [gl_cv_func_mbsrtowcs_works=yes], + [gl_cv_func_mbsrtowcs_works=no], + [:]) + fi + ]) +]) + +# Prerequisites of lib/mbsrtowcs.c. +AC_DEFUN([gl_PREREQ_MBSRTOWCS], [ + : +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbsstr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsstr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbsstr.m4 2007-03-04 00:33:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbsstr.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -# mbsstr.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_MBSSTR], -[ - gl_PREREQ_MBSSTR -]) - -# Prerequisites of lib/mbsstr.c. -AC_DEFUN([gl_PREREQ_MBSSTR], [ - AC_REQUIRE([gl_FUNC_MBRTOWC]) - : -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbstate_t.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbstate_t.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbstate_t.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbstate_t.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# mbstate_t.m4 serial 9 -dnl Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +# mbstate_t.m4 serial 12 +dnl Copyright (C) 2000-2002, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,18 +13,22 @@ # AC_TYPE_MBSTATE_T # ----------------- AC_DEFUN([AC_TYPE_MBSTATE_T], - [AC_CACHE_CHECK([for mbstate_t], ac_cv_type_mbstate_t, +[ + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl for HP-UX 11.11 + + AC_CACHE_CHECK([for mbstate_t], [ac_cv_type_mbstate_t], [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [AC_INCLUDES_DEFAULT -# include ], - [mbstate_t x; return sizeof x;])], - [ac_cv_type_mbstate_t=yes], - [ac_cv_type_mbstate_t=no])]) + [AC_LANG_PROGRAM( + [AC_INCLUDES_DEFAULT[ +# include ]], + [[mbstate_t x; return sizeof x;]])], + [ac_cv_type_mbstate_t=yes], + [ac_cv_type_mbstate_t=no])]) if test $ac_cv_type_mbstate_t = yes; then - AC_DEFINE([HAVE_MBSTATE_T], 1, - [Define to 1 if declares mbstate_t.]) + AC_DEFINE([HAVE_MBSTATE_T], [1], + [Define to 1 if declares mbstate_t.]) else - AC_DEFINE([mbstate_t], int, - [Define to a type if does not define.]) - fi]) + AC_DEFINE([mbstate_t], [int], + [Define to a type if does not define.]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mbswidth.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mbswidth.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mbswidth.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mbswidth.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# mbswidth.m4 serial 14 -dnl Copyright (C) 2000-2002, 2004, 2006, 2007 Free Software Foundation, Inc. +# mbswidth.m4 serial 17 +dnl Copyright (C) 2000-2002, 2004, 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,7 +11,6 @@ [ AC_CHECK_HEADERS_ONCE([wchar.h]) AC_CHECK_FUNCS_ONCE([isascii mbsinit]) - gl_FUNC_MBRTOWC dnl UnixWare 7.1.1 has a declaration of a function mbswidth() dnl that clashes with ours. @@ -35,7 +34,7 @@ else ac_val=0 fi - AC_DEFINE_UNQUOTED(HAVE_DECL_MBSWIDTH_IN_WCHAR_H, $ac_val, + AC_DEFINE_UNQUOTED([HAVE_DECL_MBSWIDTH_IN_WCHAR_H], [$ac_val], [Define to 1 if you have a declaration of mbswidth() in , and to 0 otherwise.]) AC_TYPE_MBSTATE_T diff -Nru gettext-0.17/gettext-tools/gnulib-m4/memchr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/memchr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/memchr.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/memchr.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,18 +1,85 @@ -# memchr.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. +# memchr.m4 serial 8 +dnl Copyright (C) 2002-2004, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_DEFUN([gl_FUNC_MEMCHR], +AC_DEFUN_ONCE([gl_FUNC_MEMCHR], [ - AC_REPLACE_FUNCS(memchr) - if test $ac_cv_func_memchr = no; then + dnl Check for prerequisites for memory fence checks. + gl_FUNC_MMAP_ANON + AC_CHECK_HEADERS_ONCE([sys/mman.h]) + AC_CHECK_FUNCS_ONCE([mprotect]) + + dnl These days, we assume memchr is present. But just in case... + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([memchr]) + if test $ac_cv_func_memchr = yes; then + # Detect platform-specific bugs in some versions of glibc: + # memchr should not dereference anything with length 0 + # http://bugzilla.redhat.com/499689 + # memchr should not dereference overestimated length after a match + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 + # http://sourceware.org/bugzilla/show_bug.cgi?id=10162 + # Assume that memchr works on platforms that lack mprotect. + AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +#include +#if HAVE_SYS_MMAN_H +# include +# include +# include +# include +# ifndef MAP_FILE +# define MAP_FILE 0 +# endif +#endif +]], [[ + char *fence = NULL; +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# if HAVE_MAP_ANONYMOUS + const int flags = MAP_ANONYMOUS | MAP_PRIVATE; + const int fd = -1; +# else /* !HAVE_MAP_ANONYMOUS */ + const int flags = MAP_FILE | MAP_PRIVATE; + int fd = open ("/dev/zero", O_RDONLY, 0666); + if (fd >= 0) +# endif + { + int pagesize = getpagesize (); + char *two_pages = + (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, + flags, fd, 0); + if (two_pages != (char *)(-1) + && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) + fence = two_pages + pagesize; + } +#endif + if (fence) + { + if (memchr (fence, 0, 0)) + return 1; + strcpy (fence - 9, "12345678"); + if (memchr (fence - 9, 0, 79) != fence - 1) + return 2; + } + return 0; +]])], [gl_cv_func_memchr_works=yes], [gl_cv_func_memchr_works=no], + [dnl Be pessimistic for now. + gl_cv_func_memchr_works="guessing no"])]) + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_MEMCHR=1 + fi + else + HAVE_MEMCHR=0 + fi + if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then + AC_LIBOBJ([memchr]) gl_PREREQ_MEMCHR fi ]) # Prerequisites of lib/memchr.c. AC_DEFUN([gl_PREREQ_MEMCHR], [ - AC_CHECK_HEADERS(bp-sym.h) + AC_CHECK_HEADERS([bp-sym.h]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/memmove.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/memmove.m4 --- gettext-0.17/gettext-tools/gnulib-m4/memmove.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/memmove.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,12 +1,12 @@ -# memmove.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# memmove.m4 serial 3 +dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MEMMOVE], [ - AC_REPLACE_FUNCS(memmove) + AC_REPLACE_FUNCS([memmove]) if test $ac_cv_func_memmove = no; then gl_PREREQ_MEMMOVE fi diff -Nru gettext-0.17/gettext-tools/gnulib-m4/memset.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/memset.m4 --- gettext-0.17/gettext-tools/gnulib-m4/memset.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/memset.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,12 +1,12 @@ -# memset.m4 serial 2 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# memset.m4 serial 3 +dnl Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MEMSET], [ - AC_REPLACE_FUNCS(memset) + AC_REPLACE_FUNCS([memset]) if test $ac_cv_func_memset = no; then gl_PREREQ_MEMSET fi diff -Nru gettext-0.17/gettext-tools/gnulib-m4/minmax.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/minmax.m4 --- gettext-0.17/gettext-tools/gnulib-m4/minmax.m4 2007-01-27 03:22:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/minmax.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,10 +1,10 @@ -# minmax.m4 serial 2 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# minmax.m4 serial 3 +dnl Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. -AC_PREREQ(2.52) +AC_PREREQ([2.52]) AC_DEFUN([gl_MINMAX], [ diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mkdtemp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mkdtemp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mkdtemp.m4 2007-02-19 22:11:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mkdtemp.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ -# mkdtemp.m4 serial 5 -dnl Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. +# mkdtemp.m4 serial 6 +dnl Copyright (C) 2001-2003, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,7 +8,7 @@ AC_DEFUN([gt_FUNC_MKDTEMP], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - AC_REPLACE_FUNCS(mkdtemp) + AC_REPLACE_FUNCS([mkdtemp]) if test $ac_cv_func_mkdtemp = no; then HAVE_MKDTEMP=0 gl_PREREQ_MKDTEMP diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mmap-anon.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mmap-anon.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mmap-anon.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mmap-anon.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,59 @@ +# mmap-anon.m4 serial 8 +dnl Copyright (C) 2005, 2007, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Detect how mmap can be used to create anonymous (not file-backed) memory +# mappings. +# - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS +# and MAP_ANON exist and have the same value. +# - On HP-UX, only MAP_ANONYMOUS exists. +# - On MacOS X, FreeBSD, NetBSD, OpenBSD, only MAP_ANON exists. +# - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be +# used. + +AC_DEFUN([gl_FUNC_MMAP_ANON], +[ + dnl Work around a bug of AC_EGREP_CPP in autoconf-2.57. + AC_REQUIRE([AC_PROG_CPP]) + AC_REQUIRE([AC_PROG_EGREP]) + + dnl Persuade glibc to define MAP_ANONYMOUS. + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no]) + + # Try to allow MAP_ANONYMOUS. + gl_have_mmap_anonymous=no + if test $gl_have_mmap = yes; then + AC_MSG_CHECKING([for MAP_ANONYMOUS]) + AC_EGREP_CPP([I cant identify this map.], [ +#include +#ifdef MAP_ANONYMOUS + I cant identify this map. +#endif +], + [gl_have_mmap_anonymous=yes]) + if test $gl_have_mmap_anonymous != yes; then + AC_EGREP_CPP([I cant identify this map.], [ +#include +#ifdef MAP_ANON + I cant identify this map. +#endif +], + [AC_DEFINE([MAP_ANONYMOUS], [MAP_ANON], + [Define to a substitute value for mmap()'s MAP_ANONYMOUS flag.]) + gl_have_mmap_anonymous=yes]) + fi + AC_MSG_RESULT([$gl_have_mmap_anonymous]) + if test $gl_have_mmap_anonymous = yes; then + AC_DEFINE([HAVE_MAP_ANONYMOUS], [1], + [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including + config.h and .]) + fi + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/mode_t.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/mode_t.m4 --- gettext-0.17/gettext-tools/gnulib-m4/mode_t.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/mode_t.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,26 @@ +# mode_t.m4 serial 2 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# For using mode_t, it's sufficient to use AC_TYPE_MODE_T and +# include . + +# Define PROMOTED_MODE_T to the type that is the result of "default argument +# promotion" (ISO C 6.5.2.2.(6)) of the type mode_t. +AC_DEFUN([gl_PROMOTED_TYPE_MODE_T], +[ + AC_REQUIRE([AC_TYPE_MODE_T]) + AC_CACHE_CHECK([for promoted mode_t type], [gl_cv_promoted_mode_t], [ + dnl Assume mode_t promotes to 'int' if and only if it is smaller than 'int', + dnl and to itself otherwise. This assumption is not guaranteed by the ISO C + dnl standard, but we don't know of any real-world counterexamples. + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];]])], + [gl_cv_promoted_mode_t='int'], + [gl_cv_promoted_mode_t='mode_t']) + ]) + AC_DEFINE_UNQUOTED([PROMOTED_MODE_T], [$gl_cv_promoted_mode_t], + [Define to the type that is the result of default argument promotions of type mode_t.]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/multiarch.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/multiarch.m4 --- gettext-0.17/gettext-tools/gnulib-m4/multiarch.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/multiarch.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,65 @@ +# multiarch.m4 serial 5 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Determine whether the compiler is or may be producing universal binaries. +# +# On MacOS X 10.5 and later systems, the user can create libraries and +# executables that work on multiple system types--known as "fat" or +# "universal" binaries--by specifying multiple '-arch' options to the +# compiler but only a single '-arch' option to the preprocessor. Like +# this: +# +# ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ +# CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ +# CPP="gcc -E" CXXCPP="g++ -E" +# +# Detect this situation and set the macro AA_APPLE_UNIVERSAL_BUILD at the +# beginning of config.h and set APPLE_UNIVERSAL_BUILD accordingly. + +AC_DEFUN_ONCE([gl_MULTIARCH], +[ + dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN. + gl_cv_c_multiarch=no + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + ]])], + [ + dnl Check for potential -arch flags. It is not universal unless + dnl there are at least two -arch flags with different values. + arch= + prev= + for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do + if test -n "$prev"; then + case $word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$arch" || test "$arch" = "$word"; then + arch="$word" + else + gl_cv_c_multiarch=yes + fi + ;; + esac + prev= + else + if test "x$word" = "x-arch"; then + prev=arch + fi + fi + done + ]) + if test $gl_cv_c_multiarch = yes; then + AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1], + [Define if the compiler is building for multiple architectures of Apple platforms at once.]) + APPLE_UNIVERSAL_BUILD=1 + else + APPLE_UNIVERSAL_BUILD=0 + fi + AC_SUBST([APPLE_UNIVERSAL_BUILD]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/no-c++.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/no-c++.m4 --- gettext-0.17/gettext-tools/gnulib-m4/no-c++.m4 2007-10-28 22:53:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/no-c++.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ # no-c++.m4 serial 1 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/onceonly_2_57.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/onceonly_2_57.m4 --- gettext-0.17/gettext-tools/gnulib-m4/onceonly_2_57.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/onceonly_2_57.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,86 +0,0 @@ -# onceonly_2_57.m4 serial 4 -dnl Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl This file defines some "once only" variants of standard autoconf macros. -dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS -dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS -dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS -dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL -dnl The advantage is that the check for each of the headers/functions/decls -dnl will be put only once into the 'configure' file. It keeps the size of -dnl the 'configure' file down, and avoids redundant output when 'configure' -dnl is run. -dnl The drawback is that the checks cannot be conditionalized. If you write -dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi -dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to -dnl empty, and the check will be inserted before the body of the AC_DEFUNed -dnl function. - -dnl This is like onceonly.m4, except that it uses diversions to named sections -dnl DEFAULTS and INIT_PREPARE in order to check all requested headers at once, -dnl thus reducing the size of 'configure'. Works with autoconf-2.57. The -dnl size reduction is ca. 9%. - -dnl Autoconf version 2.57 or newer is recommended. -AC_PREREQ(2.57) - -# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of -# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). -AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ - : - AC_FOREACH([gl_HEADER_NAME], [$1], [ - AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, - [./-], [___])), [ - m4_divert_text([INIT_PREPARE], - [gl_header_list="$gl_header_list gl_HEADER_NAME"]) - gl_HEADERS_EXPANSION - AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), - [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.]) - ]) - AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, - [./-], [___]))) - ]) -]) -m4_define([gl_HEADERS_EXPANSION], [ - m4_divert_text([DEFAULTS], [gl_header_list=]) - AC_CHECK_HEADERS([$gl_header_list]) - m4_define([gl_HEADERS_EXPANSION], []) -]) - -# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of -# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). -AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ - : - AC_FOREACH([gl_FUNC_NAME], [$1], [ - AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ - m4_divert_text([INIT_PREPARE], - [gl_func_list="$gl_func_list gl_FUNC_NAME"]) - gl_FUNCS_EXPANSION - AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), - [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) - ]) - AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) - ]) -]) -m4_define([gl_FUNCS_EXPANSION], [ - m4_divert_text([DEFAULTS], [gl_func_list=]) - AC_CHECK_FUNCS([$gl_func_list]) - m4_define([gl_FUNCS_EXPANSION], []) -]) - -# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of -# AC_CHECK_DECLS(DECL1, DECL2, ...). -AC_DEFUN([AC_CHECK_DECLS_ONCE], [ - : - AC_FOREACH([gl_DECL_NAME], [$1], [ - AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ - AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) - ]) - AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) - ]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/onceonly.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/onceonly.m4 --- gettext-0.17/gettext-tools/gnulib-m4/onceonly.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/onceonly.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,91 @@ +# onceonly.m4 serial 6 +dnl Copyright (C) 2002-2003, 2005-2006, 2008-2010 Free Software Foundation, +dnl Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +dnl This file defines some "once only" variants of standard autoconf macros. +dnl AC_CHECK_HEADERS_ONCE like AC_CHECK_HEADERS +dnl AC_CHECK_FUNCS_ONCE like AC_CHECK_FUNCS +dnl AC_CHECK_DECLS_ONCE like AC_CHECK_DECLS +dnl AC_REQUIRE([AC_FUNC_STRCOLL]) like AC_FUNC_STRCOLL +dnl The advantage is that the check for each of the headers/functions/decls +dnl will be put only once into the 'configure' file. It keeps the size of +dnl the 'configure' file down, and avoids redundant output when 'configure' +dnl is run. +dnl The drawback is that the checks cannot be conditionalized. If you write +dnl if some_condition; then gl_CHECK_HEADERS(stdlib.h); fi +dnl inside an AC_DEFUNed function, the gl_CHECK_HEADERS macro call expands to +dnl empty, and the check will be inserted before the body of the AC_DEFUNed +dnl function. + +dnl The original code implemented AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE +dnl in terms of AC_DEFUN and AC_REQUIRE. This implementation uses diversions to +dnl named sections DEFAULTS and INIT_PREPARE in order to check all requested +dnl headers at once, thus reducing the size of 'configure'. It is known to work +dnl with autoconf 2.57..2.62 at least . The size reduction is ca. 9%. + +dnl Autoconf version 2.59 plus gnulib is required; this file is not needed +dnl with Autoconf 2.60 or greater. But note that autoconf's implementation of +dnl AC_CHECK_DECLS_ONCE expects a comma-separated list of symbols as first +dnl argument! +AC_PREREQ([2.59]) + +# AC_CHECK_HEADERS_ONCE(HEADER1 HEADER2 ...) is a once-only variant of +# AC_CHECK_HEADERS(HEADER1 HEADER2 ...). +AC_DEFUN([AC_CHECK_HEADERS_ONCE], [ + : + m4_foreach_w([gl_HEADER_NAME], [$1], [ + AC_DEFUN([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___])), [ + m4_divert_text([INIT_PREPARE], + [gl_header_list="$gl_header_list gl_HEADER_NAME"]) + gl_HEADERS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_HEADER_NAME])), + [Define to 1 if you have the <]m4_defn([gl_HEADER_NAME])[> header file.]) + ]) + AC_REQUIRE([gl_CHECK_HEADER_]m4_quote(translit(gl_HEADER_NAME, + [./-], [___]))) + ]) +]) +m4_define([gl_HEADERS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_header_list=]) + AC_CHECK_HEADERS([$gl_header_list]) + m4_define([gl_HEADERS_EXPANSION], []) +]) + +# AC_CHECK_FUNCS_ONCE(FUNC1 FUNC2 ...) is a once-only variant of +# AC_CHECK_FUNCS(FUNC1 FUNC2 ...). +AC_DEFUN([AC_CHECK_FUNCS_ONCE], [ + : + m4_foreach_w([gl_FUNC_NAME], [$1], [ + AC_DEFUN([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME]), [ + m4_divert_text([INIT_PREPARE], + [gl_func_list="$gl_func_list gl_FUNC_NAME"]) + gl_FUNCS_EXPANSION + AH_TEMPLATE(AS_TR_CPP([HAVE_]m4_defn([gl_FUNC_NAME])), + [Define to 1 if you have the `]m4_defn([gl_FUNC_NAME])[' function.]) + ]) + AC_REQUIRE([gl_CHECK_FUNC_]m4_defn([gl_FUNC_NAME])) + ]) +]) +m4_define([gl_FUNCS_EXPANSION], [ + m4_divert_text([DEFAULTS], [gl_func_list=]) + AC_CHECK_FUNCS([$gl_func_list]) + m4_define([gl_FUNCS_EXPANSION], []) +]) + +# AC_CHECK_DECLS_ONCE(DECL1 DECL2 ...) is a once-only variant of +# AC_CHECK_DECLS(DECL1, DECL2, ...). +AC_DEFUN([AC_CHECK_DECLS_ONCE], [ + : + m4_foreach_w([gl_DECL_NAME], [$1], [ + AC_DEFUN([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME]), [ + AC_CHECK_DECLS(m4_defn([gl_DECL_NAME])) + ]) + AC_REQUIRE([gl_CHECK_DECL_]m4_defn([gl_DECL_NAME])) + ]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/open.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/open.m4 --- gettext-0.17/gettext-tools/gnulib-m4/open.m4 2007-10-07 13:35:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/open.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,17 +1,74 @@ -# open.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# open.m4 serial 8 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_OPEN], [ - AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw* | pw*) - REPLACE_OPEN=1 - AC_LIBOBJ([open]) + gl_REPLACE_OPEN + ;; + *) + dnl open("foo/") should not create a file when the file name has a + dnl trailing slash. FreeBSD only has the problem on symlinks. + AC_CHECK_FUNCS_ONCE([lstat]) + AC_CACHE_CHECK([whether open recognizes a trailing slash], + [gl_cv_func_open_slash], + [# Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + touch conftest.tmp + ln -s conftest.tmp conftest.lnk + fi + AC_TRY_RUN([ +#include +#if HAVE_UNISTD_H +# include +#endif +int main () +{ +#if HAVE_LSTAT + if (open ("conftest.lnk/", O_RDONLY) != -1) return 2; +#endif + return open ("conftest.sl/", O_CREAT, 0600) >= 0; +}], [gl_cv_func_open_slash=yes], [gl_cv_func_open_slash=no], + [ +changequote(,)dnl + case "$host_os" in + freebsd*) gl_cv_func_open_slash="guessing no" ;; + solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;; + hpux*) gl_cv_func_open_slash="guessing no" ;; + *) gl_cv_func_open_slash="guessing yes" ;; + esac +changequote([,])dnl + ]) + rm -f conftest.sl conftest.tmp conftest.lnk + ]) + case "$gl_cv_func_open_slash" in + *no) + AC_DEFINE([OPEN_TRAILING_SLASH_BUG], [1], + [Define to 1 if open() fails to recognize a trailing slash.]) + gl_REPLACE_OPEN + ;; + esac ;; esac ]) + +AC_DEFUN([gl_REPLACE_OPEN], +[ + AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) + REPLACE_OPEN=1 + AC_LIBOBJ([open]) + gl_PREREQ_OPEN +]) + +# Prerequisites of lib/open.c. +AC_DEFUN([gl_PREREQ_OPEN], +[ + AC_REQUIRE([AC_C_INLINE]) + AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T]) + : +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/openmp.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/openmp.m4 --- gettext-0.17/gettext-tools/gnulib-m4/openmp.m4 2007-05-27 19:50:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/openmp.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,92 +0,0 @@ -# openmp.m4 serial 4 -dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This file can be removed once we assume autoconf >= 2.62. - -# _AC_LANG_OPENMP -# --------------- -# Expands to some language dependent source code for testing the presence of -# OpenMP. -AC_DEFUN([_AC_LANG_OPENMP], -[_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) - -# _AC_LANG_OPENMP(C) -# ------------------ -m4_define([_AC_LANG_OPENMP(C)], -[ -#ifndef _OPENMP - choke me -#endif -#include -int main () { return omp_get_num_threads (); } -]) - -# _AC_LANG_OPENMP(C++) -# -------------------- -m4_copy([_AC_LANG_OPENMP(C)], [_AC_LANG_OPENMP(C++)]) - -# _AC_LANG_OPENMP(Fortran 77) -# --------------------------- -m4_define([_AC_LANG_OPENMP(Fortran 77)], -[AC_LANG_FUNC_LINK_TRY([omp_get_num_threads])]) - -# _AC_LANG_OPENMP(Fortran) -# --------------------------- -m4_copy([_AC_LANG_OPENMP(Fortran 77)], [_AC_LANG_OPENMP(Fortran)]) - -# AC_OPENMP -# --------- -# Check which options need to be passed to the C compiler to support OpenMP. -# Set the OPENMP_CFLAGS / OPENMP_CXXFLAGS / OPENMP_FFLAGS variable to these -# options. -# The options are necessary at compile time (so the #pragmas are understood) -# and at link time (so the appropriate library is linked with). -# This macro takes care to not produce redundant options if $CC $CFLAGS already -# supports OpenMP. It also is careful to not pass options to compilers that -# misinterpret them; for example, most compilers accept "-openmp" and create -# an output file called 'penmp' rather than activating OpenMP support. -AC_DEFUN([AC_OPENMP], -[ - OPENMP_[]_AC_LANG_PREFIX[]FLAGS= - AC_ARG_ENABLE([openmp], - [AS_HELP_STRING([--disable-openmp], [do not use OpenMP])]) - if test "$enable_openmp" != no; then - AC_CACHE_CHECK([for $CC option to support OpenMP], - [ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp], - [AC_LINK_IFELSE([_AC_LANG_OPENMP], - [ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp='none needed'], - [ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp='unsupported' - dnl Try these flags: - dnl GCC >= 4.2 -fopenmp - dnl SunPRO C -xopenmp - dnl Intel C -openmp - dnl SGI C, PGI C -mp - dnl Tru64 Compaq C -omp - dnl IBM C (AIX, Linux) -qsmp=omp - dnl If in this loop a compiler is passed an option that it doesn't - dnl understand or that it misinterprets, the AC_LINK_IFELSE test - dnl will fail (since we know that it failed without the option), - dnl therefore the loop will continue searching for an option, and - dnl no output file called 'penmp' or 'mp' is created. - for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do - ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS - _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option" - AC_LINK_IFELSE([_AC_LANG_OPENMP], - [ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp=$ac_option]) - _AC_LANG_PREFIX[]FLAGS=$ac_save_[]_AC_LANG_PREFIX[]FLAGS - if test "$ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp" != unsupported; then - break - fi - done])]) - case $ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp in #( - "none needed" | unsupported) - ;; #( - *) - OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp ;; - esac - fi - AC_SUBST([OPENMP_]_AC_LANG_PREFIX[FLAGS]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/pathmax.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/pathmax.m4 --- gettext-0.17/gettext-tools/gnulib-m4/pathmax.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/pathmax.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ -# pathmax.m4 serial 6 -dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +# pathmax.m4 serial 8 +dnl Copyright (C) 2002-2003, 2005-2006, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,5 +8,6 @@ AC_DEFUN([gl_PATHMAX], [ dnl Prerequisites of lib/pathmax.h. - AC_CHECK_HEADERS_ONCE(sys/param.h) + AC_CHECK_FUNCS_ONCE([pathconf]) + AC_CHECK_HEADERS_ONCE([sys/param.h]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/pipe2.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/pipe2.m4 --- gettext-0.17/gettext-tools/gnulib-m4/pipe2.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/pipe2.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,18 @@ +# pipe2.m4 serial 2 +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_PIPE2], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + + dnl Persuade glibc to declare pipe2(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + AC_CHECK_FUNCS_ONCE([pipe2]) + if test $ac_cv_func_pipe2 != yes; then + HAVE_PIPE2=0 + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/pipe.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/pipe.m4 --- gettext-0.17/gettext-tools/gnulib-m4/pipe.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/pipe.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,16 +1,12 @@ -# pipe.m4 serial 1 -dnl Copyright (C) 2004 Free Software Foundation, Inc. +# pipe.m4 serial 4 +dnl Copyright (C) 2004, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_PIPE], [ - dnl Prerequisites of lib/pipe.h. - AC_CHECK_HEADERS_ONCE(unistd.h) dnl Prerequisites of lib/pipe.c. AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_TYPE_MODE_T]) - AC_REQUIRE([AC_FUNC_FORK]) - AC_CHECK_FUNCS(posix_spawn) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/posix_spawn.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/posix_spawn.m4 --- gettext-0.17/gettext-tools/gnulib-m4/posix_spawn.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/posix_spawn.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,400 @@ +# posix_spawn.m4 serial 7 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Tests whether the entire posix_spawn facility is available. +AC_DEFUN([gl_POSIX_SPAWN], +[ + AC_REQUIRE([gl_POSIX_SPAWN_BODY]) +]) + +AC_DEFUN([gl_POSIX_SPAWN_BODY], +[ + AC_REQUIRE([gl_SPAWN_H_DEFAULTS]) + AC_REQUIRE([gl_HAVE_POSIX_SPAWN]) + dnl Assume that when the main function exists, all the others, + dnl except posix_spawnattr_{get,set}sched*, are available as well. + dnl AC_CHECK_FUNCS_ONCE([posix_spawnp]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_init]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addclose]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_adddup2]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addopen]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_destroy]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_init]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getflags]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setflags]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getpgroup]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setpgroup]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getsigdefault]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setsigdefault]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getsigmask]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setsigmask]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_destroy]) + if test $ac_cv_func_posix_spawn = yes; then + gl_POSIX_SPAWN_WORKS + case "$gl_cv_func_posix_spawn_works" in + *yes) + dnl Assume that these functions are available if POSIX_SPAWN_SETSCHEDULER + dnl evaluates to nonzero. + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getschedpolicy]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setschedpolicy]) + AC_CACHE_CHECK([whether posix_spawnattr_setschedpolicy is supported], + [gl_cv_func_spawnattr_setschedpolicy], + [AC_EGREP_CPP([POSIX scheduling supported], [ +#include +#if POSIX_SPAWN_SETSCHEDULER + POSIX scheduling supported +#endif +], + [gl_cv_func_spawnattr_setschedpolicy=yes], + [gl_cv_func_spawnattr_setschedpolicy=no]) + ]) + dnl Assume that these functions are available if POSIX_SPAWN_SETSCHEDPARAM + dnl evaluates to nonzero. + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_getschedparam]) + dnl AC_CHECK_FUNCS_ONCE([posix_spawnattr_setschedparam]) + AC_CACHE_CHECK([whether posix_spawnattr_setschedparam is supported], + [gl_cv_func_spawnattr_setschedparam], + [AC_EGREP_CPP([POSIX scheduling supported], [ +#include +#if POSIX_SPAWN_SETSCHEDPARAM + POSIX scheduling supported +#endif +], + [gl_cv_func_spawnattr_setschedparam=yes], + [gl_cv_func_spawnattr_setschedparam=no]) + ]) + ;; + *) REPLACE_POSIX_SPAWN=1 ;; + esac + fi +]) + +dnl Test whether posix_spawn actually works. +dnl posix_spawn on AIX 5.3..6.1 has two bugs: +dnl 1) When it fails to execute the program, the child process exits with +dnl exit() rather than _exit(), which causes the stdio buffers to be +dnl flushed. Reported by Rainer Tammer. +dnl 2) The posix_spawn_file_actions_addopen function does not support file +dnl names that contain a '*'. +dnl posix_spawn on AIX 5.3..6.1 has also a third bug: It does not work +dnl when POSIX threads are used. But we don't test against this bug here. +AC_DEFUN([gl_POSIX_SPAWN_WORKS], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether posix_spawn works], [gl_cv_func_posix_spawn_works], + [if test $cross_compiling = no; then + AC_LINK_IFELSE([AC_LANG_SOURCE([[ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +extern char **environ; + +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + +#ifndef WTERMSIG +# define WTERMSIG(x) ((x) & 0x7f) +#endif +#ifndef WIFEXITED +# define WIFEXITED(x) (WTERMSIG (x) == 0) +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) +#endif + +#define CHILD_PROGRAM_FILENAME "/non/exist/ent" + +static int +fd_safer (int fd) +{ + if (0 <= fd && fd <= 2) + { + int f = fd_safer (dup (fd)); + int e = errno; + close (fd); + errno = e; + fd = f; + } + + return fd; +} + +int +main () +{ + char *argv[2] = { CHILD_PROGRAM_FILENAME, NULL }; + int ofd[2]; + sigset_t blocked_signals; + sigset_t fatal_signal_set; + posix_spawn_file_actions_t actions; + bool actions_allocated; + posix_spawnattr_t attrs; + bool attrs_allocated; + int err; + pid_t child; + int status; + int exitstatus; + + setvbuf (stdout, NULL, _IOFBF, 0); + puts ("This should be seen only once."); + if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0) + { + perror ("cannot create pipe"); + exit (1); + } + sigprocmask (SIG_SETMASK, NULL, &blocked_signals); + sigemptyset (&fatal_signal_set); + sigaddset (&fatal_signal_set, SIGINT); + sigaddset (&fatal_signal_set, SIGTERM); + sigaddset (&fatal_signal_set, SIGHUP); + sigaddset (&fatal_signal_set, SIGPIPE); + sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL); + actions_allocated = false; + attrs_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0 + || (err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0 + || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0) + || (err = posix_spawnp (&child, CHILD_PROGRAM_FILENAME, &actions, &attrs, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + if (attrs_allocated) + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + if (err == ENOENT) + return 0; + else + { + errno = err; + perror ("subprocess failed"); + exit (1); + } + } + posix_spawn_file_actions_destroy (&actions); + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + close (ofd[0]); + close (ofd[1]); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + exit (1); + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 127) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + exit (1); + } + return 0; +} +]])], + [if test -s conftest$ac_exeext \ + && ./conftest$ac_exeext > conftest.out \ + && echo 'This should be seen only once.' > conftest.ok \ + && cmp conftest.out conftest.ok > /dev/null; then + gl_cv_func_posix_spawn_works=yes + else + gl_cv_func_posix_spawn_works=no + fi], + [gl_cv_func_posix_spawn_works=no]) + if test $gl_cv_func_posix_spawn_works = yes; then + AC_RUN_IFELSE([AC_LANG_SOURCE([[ +/* Test whether posix_spawn_file_actions_addopen supports filename arguments + that contain special characters such as '*'. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +extern char **environ; + +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + +#ifndef WTERMSIG +# define WTERMSIG(x) ((x) & 0x7f) +#endif +#ifndef WIFEXITED +# define WIFEXITED(x) (WTERMSIG (x) == 0) +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) +#endif + +#define CHILD_PROGRAM_FILENAME "conftest" +#define DATA_FILENAME "conftest%=*#?" + +static int +parent_main (void) +{ + FILE *fp; + char *argv[3] = { CHILD_PROGRAM_FILENAME, "-child", NULL }; + posix_spawn_file_actions_t actions; + bool actions_allocated; + int err; + pid_t child; + int status; + int exitstatus; + + /* Create a data file with specific contents. */ + fp = fopen (DATA_FILENAME, "wb"); + if (fp == NULL) + { + perror ("cannot create data file"); + return 1; + } + fwrite ("Halle Potta", 1, 11, fp); + if (fflush (fp) || fclose (fp)) + { + perror ("cannot prepare data file"); + return 1; + } + + /* Avoid reading from our stdin, as it could block. */ + freopen ("/dev/null", "rb", stdin); + + /* Test whether posix_spawn_file_actions_addopen with this file name + actually works, but spawning a child that reads from this file. */ + actions_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, DATA_FILENAME, O_RDONLY, 0600)) != 0 + || (err = posix_spawn (&child, CHILD_PROGRAM_FILENAME, &actions, NULL, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + errno = err; + perror ("subprocess failed"); + return 1; + } + posix_spawn_file_actions_destroy (&actions); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + return 1; + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 0) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + return 1; + } + return 0; +} + +static int +child_main (void) +{ + char buf[1024]; + + /* See if reading from STDIN_FILENO yields the expected contents. */ + if (fread (buf, 1, sizeof (buf), stdin) == 11 + && memcmp (buf, "Halle Potta", 11) == 0) + return 0; + else + return 2; +} + +static void +cleanup_then_die (int sig) +{ + /* Clean up data file. */ + unlink (DATA_FILENAME); + + /* Re-raise the signal and die from it. */ + signal (sig, SIG_DFL); + raise (sig); +} + +int +main (int argc, char *argv[]) +{ + int exitstatus; + + if (!(argc > 1 && strcmp (argv[1], "-child") == 0)) + { + /* This is the parent process. */ + signal (SIGINT, cleanup_then_die); + signal (SIGTERM, cleanup_then_die); + #ifdef SIGHUP + signal (SIGHUP, cleanup_then_die); + #endif + + exitstatus = parent_main (); + } + else + { + /* This is the child process. */ + + exitstatus = child_main (); + } + unlink (DATA_FILENAME); + return exitstatus; +} +]])], + [], + [gl_cv_func_posix_spawn_works=no]) + fi + else + case "$host_os" in + aix*) gl_cv_func_posix_spawn_works="guessing no";; + *) gl_cv_func_posix_spawn_works="guessing yes";; + esac + fi + ]) +]) + +AC_DEFUN([gl_POSIX_SPAWN_INTERNAL], +[ + AC_LIBOBJ([spawni]) + dnl Prerequisites of lib/spawni.c. + AC_CHECK_HEADERS([paths.h]) + AC_CHECK_FUNCS([confstr sched_setparam sched_setscheduler setegid seteuid vfork]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/printf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/printf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/printf.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/printf.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,1416 @@ +# printf.m4 serial 33 +dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Test whether the *printf family of functions supports the 'j', 'z', 't', +dnl 'L' size specifiers. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_sizes_c99. + +AC_DEFUN([gl_PRINTF_SIZES_C99], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gl_AC_HEADER_STDINT_H]) + AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports size specifiers as in C99], + [gl_cv_func_printf_sizes_c99], + [ + AC_TRY_RUN([ +#include +#include +#include +#include +#if HAVE_STDINT_H_WITH_UINTMAX +# include +#endif +#if HAVE_INTTYPES_H_WITH_UINTMAX +# include +#endif +static char buf[100]; +int main () +{ +#if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX + buf[0] = '\0'; + if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0 + || strcmp (buf, "12345671 33") != 0) + return 1; +#endif + buf[0] = '\0'; + if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0 + || strcmp (buf, "12345672 33") != 0) + return 1; + buf[0] = '\0'; + if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0 + || strcmp (buf, "12345673 33") != 0) + return 1; + buf[0] = '\0'; + if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0 + || strcmp (buf, "1.5 33") != 0) + return 1; + return 0; +}], [gl_cv_func_printf_sizes_c99=yes], [gl_cv_func_printf_sizes_c99=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_printf_sizes_c99="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";; + darwin*) gl_cv_func_printf_sizes_c99="guessing yes";; + # Guess yes on OpenBSD >= 3.9. + openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) + gl_cv_func_printf_sizes_c99="guessing no";; + openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; + # Guess yes on Solaris >= 2.10. + solaris2.[0-9]*) gl_cv_func_printf_sizes_c99="guessing no";; + solaris*) gl_cv_func_printf_sizes_c99="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_printf_sizes_c99="guessing no";; + netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_sizes_c99="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports 'long double' +dnl arguments together with the 'L' size specifier. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_long_double. + +AC_DEFUN([gl_PRINTF_LONG_DOUBLE], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports 'long double' arguments], + [gl_cv_func_printf_long_double], + [ + AC_TRY_RUN([ +#include +#include +static char buf[10000]; +int main () +{ + buf[0] = '\0'; + if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0 + || strcmp (buf, "1.750000 33") != 0) + return 1; + buf[0] = '\0'; + if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0 + || strcmp (buf, "1.750000e+00 33") != 0) + return 1; + buf[0] = '\0'; + if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0 + || strcmp (buf, "1.75 33") != 0) + return 1; + return 0; +}], [gl_cv_func_printf_long_double=yes], [gl_cv_func_printf_long_double=no], + [ +changequote(,)dnl + case "$host_os" in + beos*) gl_cv_func_printf_long_double="guessing no";; + mingw* | pw*) gl_cv_func_printf_long_double="guessing no";; + *) gl_cv_func_printf_long_double="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports infinite and NaN +dnl 'double' arguments and negative zero arguments in the %f, %e, %g +dnl directives. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_infinite. + +AC_DEFUN([gl_PRINTF_INFINITE], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports infinite 'double' arguments], + [gl_cv_func_printf_infinite], + [ + AC_TRY_RUN([ +#include +#include +static int +strisnan (const char *string, size_t start_index, size_t end_index) +{ + if (start_index < end_index) + { + if (string[start_index] == '-') + start_index++; + if (start_index + 3 <= end_index + && memcmp (string + start_index, "nan", 3) == 0) + { + start_index += 3; + if (start_index == end_index + || (string[start_index] == '(' && string[end_index - 1] == ')')) + return 1; + } + } + return 0; +} +static int +have_minus_zero () +{ + static double plus_zero = 0.0; + double minus_zero = - plus_zero; + return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0; +} +static char buf[10000]; +static double zero = 0.0; +int main () +{ + if (sprintf (buf, "%f", 1.0 / 0.0) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%f", -1.0 / 0.0) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%f", zero / zero) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%e", 1.0 / 0.0) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%e", -1.0 / 0.0) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%e", zero / zero) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%g", 1.0 / 0.0) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%g", -1.0 / 0.0) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%g", zero / zero) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + /* This test fails on HP-UX 10.20. */ + if (have_minus_zero ()) + if (sprintf (buf, "%g", - zero) < 0 + || strcmp (buf, "-0") != 0) + return 1; + return 0; +}], [gl_cv_func_printf_infinite=yes], [gl_cv_func_printf_infinite=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_infinite="guessing yes";; + # Guess yes on FreeBSD >= 6. + freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";; + darwin*) gl_cv_func_printf_infinite="guessing yes";; + # Guess yes on HP-UX >= 11. + hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";; + hpux*) gl_cv_func_printf_infinite="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_printf_infinite="guessing no";; + netbsd*) gl_cv_func_printf_infinite="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_printf_infinite="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_infinite="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports infinite and NaN +dnl 'long double' arguments in the %f, %e, %g directives. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_infinite_long_double. + +AC_DEFUN([gl_PRINTF_INFINITE_LONG_DOUBLE], +[ + AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gl_BIGENDIAN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + dnl The user can set or unset the variable gl_printf_safe to indicate + dnl that he wishes a safe handling of non-IEEE-754 'long double' values. + if test -n "$gl_printf_safe"; then + AC_DEFINE([CHECK_PRINTF_SAFE], [1], + [Define if you wish *printf() functions that have a safe handling of + non-IEEE-754 'long double' values.]) + fi + case "$gl_cv_func_printf_long_double" in + *yes) + AC_CACHE_CHECK([whether printf supports infinite 'long double' arguments], + [gl_cv_func_printf_infinite_long_double], + [ + AC_TRY_RUN([ +]GL_NOCRASH[ +#include +#include +#include +static int +strisnan (const char *string, size_t start_index, size_t end_index) +{ + if (start_index < end_index) + { + if (string[start_index] == '-') + start_index++; + if (start_index + 3 <= end_index + && memcmp (string + start_index, "nan", 3) == 0) + { + start_index += 3; + if (start_index == end_index + || (string[start_index] == '(' && string[end_index - 1] == ')')) + return 1; + } + } + return 0; +} +static char buf[10000]; +static long double zeroL = 0.0L; +int main () +{ + nocrash_init(); + if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%Lf", zeroL / zeroL) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%Le", zeroL / zeroL) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0 + || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) + return 1; + if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0 + || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) + return 1; + if (sprintf (buf, "%Lg", zeroL / zeroL) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; +#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) +/* Representation of an 80-bit 'long double' as an initializer for a sequence + of 'unsigned int' words. */ +# ifdef WORDS_BIGENDIAN +# define LDBL80_WORDS(exponent,manthi,mantlo) \ + { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ + ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \ + (unsigned int) (mantlo) << 16 \ + } +# else +# define LDBL80_WORDS(exponent,manthi,mantlo) \ + { mantlo, manthi, exponent } +# endif + { /* Quiet NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { + /* Signalling NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { /* Pseudo-NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { /* Pseudo-Infinity. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { /* Pseudo-Zero. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { /* Unnormalized number. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } + { /* Pseudo-Denormal. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; + if (sprintf (buf, "%Lf", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Le", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + if (sprintf (buf, "%Lg", x.value) < 0 + || !strisnan (buf, 0, strlen (buf))) + return 1; + } +#endif + return 0; +}], + [gl_cv_func_printf_infinite_long_double=yes], + [gl_cv_func_printf_infinite_long_double=no], + [ +changequote(,)dnl + case "$host_cpu" in + # Guess no on ia64, x86_64, i386. + ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";; + *) + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; + # Guess yes on FreeBSD >= 6. + freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_printf_infinite_long_double="guessing no";; + darwin*) gl_cv_func_printf_infinite_long_double="guessing yes";; + # Guess yes on HP-UX >= 11. + hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";; + hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_printf_infinite_long_double="guessing no";; + netbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_infinite_long_double="guessing no";; + esac + ;; + esac +changequote([,])dnl + ]) + ]) + ;; + *) + gl_cv_func_printf_infinite_long_double="irrelevant" + ;; + esac +]) + +dnl Test whether the *printf family of functions supports the 'a' and 'A' +dnl conversion specifier for hexadecimal output of floating-point numbers. +dnl (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_directive_a. + +AC_DEFUN([gl_PRINTF_DIRECTIVE_A], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the 'a' and 'A' directives], + [gl_cv_func_printf_directive_a], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0 + || (strcmp (buf, "0x1.922p+1 33") != 0 + && strcmp (buf, "0x3.244p+0 33") != 0 + && strcmp (buf, "0x6.488p-1 33") != 0 + && strcmp (buf, "0xc.91p-2 33") != 0)) + return 1; + if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0 + || (strcmp (buf, "-0X1.922P+1 33") != 0 + && strcmp (buf, "-0X3.244P+0 33") != 0 + && strcmp (buf, "-0X6.488P-1 33") != 0 + && strcmp (buf, "-0XC.91P-2 33") != 0)) + return 1; + /* This catches a FreeBSD 6.1 bug: it doesn't round. */ + if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0 + || (strcmp (buf, "0x1.83p+0 33") != 0 + && strcmp (buf, "0x3.05p-1 33") != 0 + && strcmp (buf, "0x6.0ap-2 33") != 0 + && strcmp (buf, "0xc.14p-3 33") != 0)) + return 1; + /* This catches a FreeBSD 6.1 bug. See + */ + if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0 + || buf[0] == '0') + return 1; + /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug. */ + if (sprintf (buf, "%.1a", 1.999) < 0 + || (strcmp (buf, "0x1.0p+1") != 0 + && strcmp (buf, "0x2.0p+0") != 0 + && strcmp (buf, "0x4.0p-1") != 0 + && strcmp (buf, "0x8.0p-2") != 0)) + return 1; + /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a + glibc 2.4 bug . */ + if (sprintf (buf, "%.1La", 1.999L) < 0 + || (strcmp (buf, "0x1.0p+1") != 0 + && strcmp (buf, "0x2.0p+0") != 0 + && strcmp (buf, "0x4.0p-1") != 0 + && strcmp (buf, "0x8.0p-2") != 0)) + return 1; + return 0; +}], [gl_cv_func_printf_directive_a=yes], [gl_cv_func_printf_directive_a=no], + [ + case "$host_os" in + # Guess yes on glibc >= 2.5 systems. + *-gnu*) + AC_EGREP_CPP([BZ2908], [ + #include + #ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2) + BZ2908 + #endif + #endif + ], + [gl_cv_func_printf_directive_a="guessing yes"], + [gl_cv_func_printf_directive_a="guessing no"]) + ;; + # If we don't know, assume the worst. + *) gl_cv_func_printf_directive_a="guessing no";; + esac + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports the %F format +dnl directive. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_directive_f. + +AC_DEFUN([gl_PRINTF_DIRECTIVE_F], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the 'F' directive], + [gl_cv_func_printf_directive_f], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0 + || strcmp (buf, "1234567.000000 33") != 0) + return 1; + if (sprintf (buf, "%F", 1.0 / 0.0) < 0 + || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0)) + return 1; + /* This catches a Cygwin 1.5.x bug. */ + if (sprintf (buf, "%.F", 1234.0) < 0 + || strcmp (buf, "1234") != 0) + return 1; + return 0; +}], [gl_cv_func_printf_directive_f=yes], [gl_cv_func_printf_directive_f=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on FreeBSD >= 6. + freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";; + darwin*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on Solaris >= 2.10. + solaris2.[0-9]*) gl_cv_func_printf_directive_f="guessing no";; + solaris*) gl_cv_func_printf_directive_f="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_directive_f="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports the %n format +dnl directive. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_printf_directive_n. + +AC_DEFUN([gl_PRINTF_DIRECTIVE_N], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the 'n' directive], + [gl_cv_func_printf_directive_n], + [ + AC_TRY_RUN([ +#include +#include +static char fmtstring[10]; +static char buf[100]; +int main () +{ + int count = -1; + /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) + support %n in format strings in read-only memory but not in writable + memory. */ + strcpy (fmtstring, "%d %n"); + if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0 + || strcmp (buf, "123 ") != 0 + || count != 4) + return 1; + return 0; +}], [gl_cv_func_printf_directive_n=yes], [gl_cv_func_printf_directive_n=no], + [ +changequote(,)dnl + case "$host_os" in + *) gl_cv_func_printf_directive_n="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports the %ls format +dnl directive and in particular, when a precision is specified, whether +dnl the functions stop converting the wide string argument when the number +dnl of bytes that have been produced by this conversion equals or exceeds +dnl the precision. +dnl Result is gl_cv_func_printf_directive_ls. + +AC_DEFUN([gl_PRINTF_DIRECTIVE_LS], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the 'ls' directive], + [gl_cv_func_printf_directive_ls], + [ + AC_TRY_RUN([ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be + included before . */ +#include +#include +#include +#include +#include +int main () +{ + char buf[100]; + /* Test whether %ls works at all. + This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on + Cygwin 1.5. */ + { + static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; + buf[0] = '\0'; + if (sprintf (buf, "%ls", wstring) < 0 + || strcmp (buf, "abc") != 0) + return 1; + } + /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an + assertion failure inside libc), but not on OpenBSD 4.0. */ + { + static const wchar_t wstring[] = { 'a', 0 }; + buf[0] = '\0'; + if (sprintf (buf, "%ls", wstring) < 0 + || strcmp (buf, "a") != 0) + return 1; + } + /* Test whether precisions in %ls are supported as specified in ISO C 99 + section 7.19.6.1: + "If a precision is specified, no more than that many bytes are written + (including shift sequences, if any), and the array shall contain a + null wide character if, to equal the multibyte character sequence + length given by the precision, the function would need to access a + wide character one past the end of the array." + This test fails on Solaris 10. */ + { + static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 }; + buf[0] = '\0'; + if (sprintf (buf, "%.2ls", wstring) < 0 + || strcmp (buf, "ab") != 0) + return 1; + } + return 0; +}], [gl_cv_func_printf_directive_ls=yes], [gl_cv_func_printf_directive_ls=no], + [ +changequote(,)dnl + case "$host_os" in + openbsd*) gl_cv_func_printf_directive_ls="guessing no";; + irix*) gl_cv_func_printf_directive_ls="guessing no";; + solaris*) gl_cv_func_printf_directive_ls="guessing no";; + cygwin*) gl_cv_func_printf_directive_ls="guessing no";; + beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";; + *) gl_cv_func_printf_directive_ls="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports POSIX/XSI format +dnl strings with positions. (POSIX:2001) +dnl Result is gl_cv_func_printf_positions. + +AC_DEFUN([gl_PRINTF_POSITIONS], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports POSIX/XSI format strings with positions], + [gl_cv_func_printf_positions], + [ + AC_TRY_RUN([ +#include +#include +/* The string "%2$d %1$d", with dollar characters protected from the shell's + dollar expansion (possibly an autoconf bug). */ +static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; +static char buf[100]; +int main () +{ + sprintf (buf, format, 33, 55); + return (strcmp (buf, "55 33") != 0); +}], [gl_cv_func_printf_positions=yes], [gl_cv_func_printf_positions=no], + [ +changequote(,)dnl + case "$host_os" in + netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) + gl_cv_func_printf_positions="guessing no";; + beos*) gl_cv_func_printf_positions="guessing no";; + mingw* | pw*) gl_cv_func_printf_positions="guessing no";; + *) gl_cv_func_printf_positions="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports POSIX/XSI format +dnl strings with the ' flag for grouping of decimal digits. (POSIX:2001) +dnl Result is gl_cv_func_printf_flag_grouping. + +AC_DEFUN([gl_PRINTF_FLAG_GROUPING], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the grouping flag], + [gl_cv_func_printf_flag_grouping], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + if (sprintf (buf, "%'d %d", 1234567, 99) < 0 + || buf[strlen (buf) - 1] != '9') + return 1; + return 0; +}], [gl_cv_func_printf_flag_grouping=yes], [gl_cv_func_printf_flag_grouping=no], + [ +changequote(,)dnl + case "$host_os" in + cygwin*) gl_cv_func_printf_flag_grouping="guessing no";; + netbsd*) gl_cv_func_printf_flag_grouping="guessing no";; + mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";; + *) gl_cv_func_printf_flag_grouping="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports the - flag correctly. +dnl (ISO C99.) See +dnl +dnl Result is gl_cv_func_printf_flag_leftadjust. + +AC_DEFUN([gl_PRINTF_FLAG_LEFTADJUST], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the left-adjust flag correctly], + [gl_cv_func_printf_flag_leftadjust], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + /* Check that a '-' flag is not annihilated by a negative width. */ + if (sprintf (buf, "a%-*sc", -3, "b") < 0 + || strcmp (buf, "ab c") != 0) + return 1; + return 0; +}], + [gl_cv_func_printf_flag_leftadjust=yes], + [gl_cv_func_printf_flag_leftadjust=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on HP-UX 11. + hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";; + # Guess no on HP-UX 10 and older. + hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";; + # Guess yes otherwise. + *) gl_cv_func_printf_flag_leftadjust="guessing yes";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports padding of non-finite +dnl values with the 0 flag correctly. (ISO C99 + TC1 + TC2.) See +dnl +dnl Result is gl_cv_func_printf_flag_zero. + +AC_DEFUN([gl_PRINTF_FLAG_ZERO], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports the zero flag correctly], + [gl_cv_func_printf_flag_zero], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0 + || (strcmp (buf, " inf") != 0 + && strcmp (buf, " infinity") != 0)) + return 1; + return 0; +}], [gl_cv_func_printf_flag_zero=yes], [gl_cv_func_printf_flag_zero=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_printf_flag_zero="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_flag_zero="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions supports large precisions. +dnl On mingw, precisions larger than 512 are treated like 512, in integer, +dnl floating-point or pointer output. On BeOS, precisions larger than 1044 +dnl crash the program. +dnl Result is gl_cv_func_printf_precision. + +AC_DEFUN([gl_PRINTF_PRECISION], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf supports large precisions], + [gl_cv_func_printf_precision], + [ + AC_TRY_RUN([ +#include +#include +static char buf[5000]; +int main () +{ +#ifdef __BEOS__ + /* On BeOS, this would crash and show a dialog box. Avoid the crash. */ + return 1; +#endif + if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3) + return 1; + return 0; +}], [gl_cv_func_printf_precision=yes], [gl_cv_func_printf_precision=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess no only on native Win32 and BeOS systems. + mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;; + beos*) gl_cv_func_printf_precision="guessing no" ;; + *) gl_cv_func_printf_precision="guessing yes" ;; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the *printf family of functions recovers gracefully in case +dnl of an out-of-memory condition, or whether it crashes the entire program. +dnl Result is gl_cv_func_printf_enomem. + +AC_DEFUN([gl_PRINTF_ENOMEM], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gl_MULTIARCH]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether printf survives out-of-memory conditions], + [gl_cv_func_printf_enomem], + [ + gl_cv_func_printf_enomem="guessing no" + if test "$cross_compiling" = no; then + if test $APPLE_UNIVERSAL_BUILD = 0; then + AC_LANG_CONFTEST([AC_LANG_SOURCE([ +]GL_NOCRASH[ +changequote(,)dnl +#include +#include +#include +#include +#include +int main() +{ + struct rlimit limit; + int ret; + nocrash_init (); + /* Some printf implementations allocate temporary space with malloc. */ + /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ +#ifdef RLIMIT_DATA + if (getrlimit (RLIMIT_DATA, &limit) < 0) + return 77; + if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) + limit.rlim_max = 5000000; + limit.rlim_cur = limit.rlim_max; + if (setrlimit (RLIMIT_DATA, &limit) < 0) + return 77; +#endif + /* On Linux systems, malloc() is limited by RLIMIT_AS. */ +#ifdef RLIMIT_AS + if (getrlimit (RLIMIT_AS, &limit) < 0) + return 77; + if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) + limit.rlim_max = 5000000; + limit.rlim_cur = limit.rlim_max; + if (setrlimit (RLIMIT_AS, &limit) < 0) + return 77; +#endif + /* Some printf implementations allocate temporary space on the stack. */ +#ifdef RLIMIT_STACK + if (getrlimit (RLIMIT_STACK, &limit) < 0) + return 77; + if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) + limit.rlim_max = 5000000; + limit.rlim_cur = limit.rlim_max; + if (setrlimit (RLIMIT_STACK, &limit) < 0) + return 77; +#endif + ret = printf ("%.5000000f", 1.0); + return !(ret == 5000002 || (ret < 0 && errno == ENOMEM)); +} +changequote([,])dnl + ])]) + if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then + (./conftest + result=$? + if test $result != 0 && test $result != 77; then result=1; fi + exit $result + ) >/dev/null 2>/dev/null + case $? in + 0) gl_cv_func_printf_enomem="yes" ;; + 77) gl_cv_func_printf_enomem="guessing no" ;; + *) gl_cv_func_printf_enomem="no" ;; + esac + else + gl_cv_func_printf_enomem="guessing no" + fi + rm -fr conftest* + else + dnl A universal build on Apple MacOS X platforms. + dnl The result would be 'no' in 32-bit mode and 'yes' in 64-bit mode. + dnl But we need a configuration result that is valid in both modes. + gl_cv_func_printf_enomem="guessing no" + fi + fi + if test "$gl_cv_func_printf_enomem" = "guessing no"; then +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on Solaris. + solaris*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on AIX. + aix*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on HP-UX/hppa. + hpux*) case "$host_cpu" in + hppa*) gl_cv_func_printf_enomem="guessing yes";; + *) gl_cv_func_printf_enomem="guessing no";; + esac + ;; + # Guess yes on IRIX. + irix*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on OSF/1. + osf*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_printf_enomem="guessing yes";; + # Guess yes on Haiku. + haiku*) gl_cv_func_printf_enomem="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_printf_enomem="guessing no";; + esac +changequote([,])dnl + fi + ]) +]) + +dnl Test whether the snprintf function exists. (ISO C99, POSIX:2001) +dnl Result is ac_cv_func_snprintf. + +AC_DEFUN([gl_SNPRINTF_PRESENCE], +[ + AC_CHECK_FUNCS_ONCE([snprintf]) +]) + +dnl Test whether the string produced by the snprintf function is always NUL +dnl terminated. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_snprintf_truncation_c99. + +AC_DEFUN([gl_SNPRINTF_TRUNCATION_C99], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether snprintf truncates the result as in C99], + [gl_cv_func_snprintf_truncation_c99], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + strcpy (buf, "ABCDEF"); + snprintf (buf, 3, "%d %d", 4567, 89); + if (memcmp (buf, "45\0DEF", 6) != 0) + return 1; + return 0; +}], [gl_cv_func_snprintf_truncation_c99=yes], [gl_cv_func_snprintf_truncation_c99=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; + darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on OpenBSD >= 3.9. + openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) + gl_cv_func_snprintf_truncation_c99="guessing no";; + openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on Solaris >= 2.6. + solaris2.[0-5]*) gl_cv_func_snprintf_truncation_c99="guessing no";; + solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on AIX >= 4. + aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; + aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on HP-UX >= 11. + hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; + hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on IRIX >= 6.5. + irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on OSF/1 >= 5. + osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; + osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_snprintf_truncation_c99="guessing no";; + netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_snprintf_truncation_c99="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the return value of the snprintf function is the number +dnl of bytes (excluding the terminating NUL) that would have been produced +dnl if the buffer had been large enough. (ISO C99, POSIX:2001) +dnl For example, this test program fails on IRIX 6.5: +dnl --------------------------------------------------------------------- +dnl #include +dnl int main() +dnl { +dnl static char buf[8]; +dnl int retval = snprintf (buf, 3, "%d", 12345); +dnl return retval >= 0 && retval < 3; +dnl } +dnl --------------------------------------------------------------------- +dnl Result is gl_cv_func_snprintf_retval_c99. + +AC_DEFUN([gl_SNPRINTF_RETVAL_C99], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether snprintf returns a byte count as in C99], + [gl_cv_func_snprintf_retval_c99], + [ + AC_TRY_RUN([ +#include +#include +static char buf[100]; +int main () +{ + strcpy (buf, "ABCDEF"); + if (snprintf (buf, 3, "%d %d", 4567, 89) != 7) + return 1; + return 0; +}], [gl_cv_func_snprintf_retval_c99=yes], [gl_cv_func_snprintf_retval_c99=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; + darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on OpenBSD >= 3.9. + openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) + gl_cv_func_snprintf_retval_c99="guessing no";; + openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on Solaris >= 2.6. + solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";; + solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on AIX >= 4. + aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; + aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_snprintf_retval_c99="guessing no";; + netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_snprintf_retval_c99="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the snprintf function supports the %n format directive +dnl also in truncated portions of the format string. (ISO C99, POSIX:2001) +dnl Result is gl_cv_func_snprintf_directive_n. + +AC_DEFUN([gl_SNPRINTF_DIRECTIVE_N], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether snprintf fully supports the 'n' directive], + [gl_cv_func_snprintf_directive_n], + [ + AC_TRY_RUN([ +#include +#include +static char fmtstring[10]; +static char buf[100]; +int main () +{ + int count = -1; + /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) + support %n in format strings in read-only memory but not in writable + memory. */ + strcpy (fmtstring, "%d %n"); + snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55); + if (count != 6) + return 1; + return 0; +}], [gl_cv_func_snprintf_directive_n=yes], [gl_cv_func_snprintf_directive_n=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_snprintf_directive_n="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_snprintf_directive_n="guessing no";; + darwin*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on Solaris >= 2.6. + solaris2.[0-5]*) gl_cv_func_snprintf_directive_n="guessing no";; + solaris*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on AIX >= 4. + aix[1-3]*) gl_cv_func_snprintf_directive_n="guessing no";; + aix*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on IRIX >= 6.5. + irix6.5) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on OSF/1 >= 5. + osf[3-4]*) gl_cv_func_snprintf_directive_n="guessing no";; + osf*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_snprintf_directive_n="guessing no";; + netbsd*) gl_cv_func_snprintf_directive_n="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_snprintf_directive_n="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_snprintf_directive_n="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl Test whether the snprintf function, when passed a size = 1, writes any +dnl output without bounds in this case, behaving like sprintf. This is the +dnl case on Linux libc5. +dnl Result is gl_cv_func_snprintf_size1. + +AC_DEFUN([gl_SNPRINTF_SIZE1], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([whether snprintf respects a size of 1], + [gl_cv_func_snprintf_size1], + [ + AC_TRY_RUN([ +#include +int main() +{ + static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; + snprintf (buf, 1, "%d", 12345); + return buf[1] != 'E'; +}], + [gl_cv_func_snprintf_size1=yes], + [gl_cv_func_snprintf_size1=no], + [gl_cv_func_snprintf_size1="guessing yes"]) + ]) +]) + +dnl Test whether the vsnprintf function, when passed a zero size, produces no +dnl output. (ISO C99, POSIX:2001) +dnl For example, snprintf nevertheless writes a NUL byte in this case +dnl on OSF/1 5.1: +dnl --------------------------------------------------------------------- +dnl #include +dnl int main() +dnl { +dnl static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; +dnl snprintf (buf, 0, "%d", 12345); +dnl return buf[0] != 'D'; +dnl } +dnl --------------------------------------------------------------------- +dnl And vsnprintf writes any output without bounds in this case, behaving like +dnl vsprintf, on HP-UX 11 and OSF/1 5.1: +dnl --------------------------------------------------------------------- +dnl #include +dnl #include +dnl static int my_snprintf (char *buf, int size, const char *format, ...) +dnl { +dnl va_list args; +dnl int ret; +dnl va_start (args, format); +dnl ret = vsnprintf (buf, size, format, args); +dnl va_end (args); +dnl return ret; +dnl } +dnl int main() +dnl { +dnl static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; +dnl my_snprintf (buf, 0, "%d", 12345); +dnl return buf[0] != 'D'; +dnl } +dnl --------------------------------------------------------------------- +dnl Result is gl_cv_func_vsnprintf_zerosize_c99. + +AC_DEFUN([gl_VSNPRINTF_ZEROSIZE_C99], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether vsnprintf respects a zero size as in C99], + [gl_cv_func_vsnprintf_zerosize_c99], + [ + AC_TRY_RUN([ +#include +#include +static int my_snprintf (char *buf, int size, const char *format, ...) +{ + va_list args; + int ret; + va_start (args, format); + ret = vsnprintf (buf, size, format, args); + va_end (args); + return ret; +} +int main() +{ + static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; + my_snprintf (buf, 0, "%d", 12345); + return buf[0] != 'D'; +}], + [gl_cv_func_vsnprintf_zerosize_c99=yes], + [gl_cv_func_vsnprintf_zerosize_c99=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on FreeBSD >= 5. + freebsd[1-4]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + darwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on Cygwin. + cygwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on Solaris >= 2.6. + solaris2.[0-5]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + solaris*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on AIX >= 4. + aix[1-3]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + aix*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on IRIX >= 6.5. + irix6.5) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on NetBSD >= 3. + netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) + gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + netbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on BeOS. + beos*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # Guess yes on mingw. + mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; + # If we don't know, assume the worst. + *) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; + esac +changequote([,])dnl + ]) + ]) +]) + +dnl The results of these tests on various platforms are: +dnl +dnl 1 = gl_PRINTF_SIZES_C99 +dnl 2 = gl_PRINTF_LONG_DOUBLE +dnl 3 = gl_PRINTF_INFINITE +dnl 4 = gl_PRINTF_INFINITE_LONG_DOUBLE +dnl 5 = gl_PRINTF_DIRECTIVE_A +dnl 6 = gl_PRINTF_DIRECTIVE_F +dnl 7 = gl_PRINTF_DIRECTIVE_N +dnl 8 = gl_PRINTF_DIRECTIVE_LS +dnl 9 = gl_PRINTF_POSITIONS +dnl 10 = gl_PRINTF_FLAG_GROUPING +dnl 11 = gl_PRINTF_FLAG_LEFTADJUST +dnl 12 = gl_PRINTF_FLAG_ZERO +dnl 13 = gl_PRINTF_PRECISION +dnl 14 = gl_PRINTF_ENOMEM +dnl 15 = gl_SNPRINTF_PRESENCE +dnl 16 = gl_SNPRINTF_TRUNCATION_C99 +dnl 17 = gl_SNPRINTF_RETVAL_C99 +dnl 18 = gl_SNPRINTF_DIRECTIVE_N +dnl 19 = gl_SNPRINTF_SIZE1 +dnl 20 = gl_VSNPRINTF_ZEROSIZE_C99 +dnl +dnl 1 = checking whether printf supports size specifiers as in C99... +dnl 2 = checking whether printf supports 'long double' arguments... +dnl 3 = checking whether printf supports infinite 'double' arguments... +dnl 4 = checking whether printf supports infinite 'long double' arguments... +dnl 5 = checking whether printf supports the 'a' and 'A' directives... +dnl 6 = checking whether printf supports the 'F' directive... +dnl 7 = checking whether printf supports the 'n' directive... +dnl 8 = checking whether printf supports the 'ls' directive... +dnl 9 = checking whether printf supports POSIX/XSI format strings with positions... +dnl 10 = checking whether printf supports the grouping flag... +dnl 11 = checking whether printf supports the left-adjust flag correctly... +dnl 12 = checking whether printf supports the zero flag correctly... +dnl 13 = checking whether printf supports large precisions... +dnl 14 = checking whether printf survives out-of-memory conditions... +dnl 15 = checking for snprintf... +dnl 16 = checking whether snprintf truncates the result as in C99... +dnl 17 = checking whether snprintf returns a byte count as in C99... +dnl 18 = checking whether snprintf fully supports the 'n' directive... +dnl 19 = checking whether snprintf respects a size of 1... +dnl 20 = checking whether vsnprintf respects a zero size as in C99... +dnl +dnl . = yes, # = no. +dnl +dnl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 +dnl glibc 2.5 . . . . . . . . . . . . . . . . . . . . +dnl glibc 2.3.6 . . . . # . . . . . . . . . . . . . . . +dnl FreeBSD 5.4, 6.1 . . . . # . . . . . . # . # . . . . . . +dnl MacOS X 10.3.9 . . . . # . . . . . . # . # . . . . . . +dnl OpenBSD 3.9, 4.0 . . # # # # . # . # . # . # . . . . . . +dnl Cygwin 1.7.0 (2009) . . . # . . . ? . . . . . ? . . . . . . +dnl Cygwin 1.5.25 (2008) . . . # # . . # . . . . . # . . . . . . +dnl Cygwin 1.5.19 (2006) # . . # # # . # . # . # # # . . . . . . +dnl Solaris 10 . . # # # . . # . . . # . . . . . . . . +dnl Solaris 2.6 ... 9 # . # # # # . # . . . # . . . . . . . . +dnl Solaris 2.5.1 # . # # # # . # . . . # . . # # # # # # +dnl AIX 5.2 . . # # # . . . . . . # . . . . . . . . +dnl AIX 4.3.2, 5.1 # . # # # # . . . . . # . . . . . . . . +dnl HP-UX 11.31 . . . . # . . . . . . # . . . . # # . . +dnl HP-UX 11.{00,11,23} # . . . # # . . . . . # . . . . # # . # +dnl HP-UX 10.20 # . # . # # . ? . . # # . . . . # # ? # +dnl IRIX 6.5 # . # # # # . # . . . # . . . . # . . . +dnl OSF/1 5.1 # . # # # # . . . . . # . . . . # . . # +dnl OSF/1 4.0d # . # # # # . . . . . # . . # # # # # # +dnl NetBSD 4.0 . ? ? ? ? ? . ? . ? ? ? ? ? . . . ? ? ? +dnl NetBSD 3.0 . . . . # # . ? # # ? # . # . . . . . . +dnl Haiku . . . # # # . # . . . . . ? . . . . . . +dnl BeOS # # . # # # . ? # . ? . # ? . . . . . . +dnl mingw # # # # # # . . # # . # # ? . # # # . . diff -Nru gettext-0.17/gettext-tools/gnulib-m4/putenv.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/putenv.m4 --- gettext-0.17/gettext-tools/gnulib-m4/putenv.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/putenv.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,41 @@ +# putenv.m4 serial 16 +dnl Copyright (C) 2002-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Jim Meyering. +dnl +dnl Check whether putenv ("FOO") removes FOO from the environment. +dnl The putenv in libc on at least SunOS 4.1.4 does *not* do that. + +AC_DEFUN([gl_FUNC_PUTENV], +[ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) + AC_CACHE_CHECK([for putenv compatible with GNU and SVID], + [gl_cv_func_svid_putenv], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[[ + /* Put it in env. */ + if (putenv ("CONFTEST_putenv=val")) + return 1; + + /* Try to remove it. */ + if (putenv ("CONFTEST_putenv")) + return 1; + + /* Make sure it was deleted. */ + if (getenv ("CONFTEST_putenv") != 0) + return 1; + + return 0; + ]])], + gl_cv_func_svid_putenv=yes, + gl_cv_func_svid_putenv=no, + dnl When crosscompiling, assume putenv is broken. + gl_cv_func_svid_putenv=no) + ]) + if test $gl_cv_func_svid_putenv = no; then + REPLACE_PUTENV=1 + AC_LIBOBJ([putenv]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/quotearg.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/quotearg.m4 --- gettext-0.17/gettext-tools/gnulib-m4/quotearg.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/quotearg.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,13 +1,9 @@ -# quotearg.m4 serial 6 -dnl Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# quotearg.m4 serial 8 +dnl Copyright (C) 2002, 2004-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_QUOTEARG], [ - dnl Prerequisites of lib/quotearg.c. - AC_CHECK_FUNCS_ONCE([mbsinit]) - AC_TYPE_MBSTATE_T - gl_FUNC_MBRTOWC ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/quote.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/quote.m4 --- gettext-0.17/gettext-tools/gnulib-m4/quote.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/quote.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ # quote.m4 serial 5 -dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2003, 2005, 2006, 2009, 2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/rawmemchr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/rawmemchr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/rawmemchr.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/rawmemchr.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,21 @@ +# rawmemchr.m4 serial 1 +dnl Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_RAWMEMCHR], +[ + dnl Persuade glibc to declare rawmemchr(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REPLACE_FUNCS([rawmemchr]) + if test $ac_cv_func_rawmemchr = no; then + HAVE_RAWMEMCHR=0 + gl_PREREQ_RAWMEMCHR + fi +]) + +# Prerequisites of lib/strchrnul.c. +AC_DEFUN([gl_PREREQ_RAWMEMCHR], [:]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/read-file.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/read-file.m4 --- gettext-0.17/gettext-tools/gnulib-m4/read-file.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/read-file.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,15 @@ +# read-file.m4 serial 2 +dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software +dnl Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_READ_FILE], +[ + AC_LIBOBJ([read-file]) + gl_PREREQ_READ_FILE +]) + +# Prerequisites of lib/read-file.c. +AC_DEFUN([gl_PREREQ_READ_FILE], [:]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/readlink.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/readlink.m4 --- gettext-0.17/gettext-tools/gnulib-m4/readlink.m4 2007-03-04 00:08:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/readlink.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# readlink.m4 serial 4 -dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. +# readlink.m4 serial 9 +dnl Copyright (C) 2003, 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,8 +10,41 @@ AC_CHECK_FUNCS_ONCE([readlink]) if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 - AC_LIBOBJ(readlink) + AC_LIBOBJ([readlink]) gl_PREREQ_READLINK + else + AC_CACHE_CHECK([whether readlink signature is correct], + [gl_cv_decl_readlink_works], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + /* Cause compilation failure if original declaration has wrong type. */ + ssize_t readlink (const char *, char *, size_t);]])], + [gl_cv_decl_readlink_works=yes], [gl_cv_decl_readlink_works=no])]) + dnl Solaris 9 ignores trailing slash. + dnl FreeBSD 7.2 dereferences only one level of links with trailing slash. + AC_CACHE_CHECK([whether readlink handles trailing slash correctly], + [gl_cv_func_readlink_works], + [# We have readlink, so assume ln -s works. + ln -s conftest.no-such conftest.link + ln -s conftest.link conftest.lnk2 + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[char buf[20]; + return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;]])], + [gl_cv_func_readlink_works=yes], [gl_cv_func_readlink_works=no], + [gl_cv_func_readlink_works="guessing no"]) + rm -f conftest.link conftest.lnk2]) + if test "$gl_cv_func_readlink_works" != yes; then + AC_DEFINE([READLINK_TRAILING_SLASH_BUG], [1], [Define to 1 if readlink + fails to recognize a trailing slash.]) + REPLACE_READLINK=1 + AC_LIBOBJ([readlink]) + elif test "$gl_cv_decl_readlink_works" != yes; then + REPLACE_READLINK=1 + AC_LIBOBJ([readlink]) + fi fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/realloc.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/realloc.m4 --- gettext-0.17/gettext-tools/gnulib-m4/realloc.m4 2007-09-09 15:27:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/realloc.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# realloc.m4 serial 8 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# realloc.m4 serial 9 +dnl Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) if test $gl_cv_func_malloc_posix = yes; then HAVE_REALLOC_POSIX=1 - AC_DEFINE([HAVE_REALLOC_POSIX], 1, + AC_DEFINE([HAVE_REALLOC_POSIX], [1], [Define if the 'realloc' function is POSIX compliant.]) else AC_LIBOBJ([realloc]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/relocatable-lib.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/relocatable-lib.m4 --- gettext-0.17/gettext-tools/gnulib-m4/relocatable-lib.m4 2007-03-04 14:14:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/relocatable-lib.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# relocatable-lib.m4 serial 3 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# relocatable-lib.m4 serial 5 +dnl Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,8 +26,9 @@ AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"], [Define to the value of ${prefix}, as a string.]) if test $RELOCATABLE = yes; then - AC_DEFINE([ENABLE_RELOCATABLE], 1, - [Define to 1 if the package shall run at any location in the filesystem.]) + AC_DEFINE([ENABLE_RELOCATABLE], [1], + [Define to 1 if the package shall run at any location in the file + system.]) fi ]) @@ -42,15 +43,16 @@ AC_DEFUN([gl_RELOCATABLE_NOP], [ AC_MSG_CHECKING([whether to activate relocatable installation]) - AC_ARG_ENABLE(relocatable, - [ --enable-relocatable install a package that can be moved in the filesystem], + AC_ARG_ENABLE([relocatable], + [AS_HELP_STRING([--enable-relocatable], + [install a package that can be moved in the file system])], [if test "$enableval" != no; then RELOCATABLE=yes else RELOCATABLE=no fi ], RELOCATABLE=no) - AC_SUBST(RELOCATABLE) + AC_SUBST([RELOCATABLE]) AC_MSG_RESULT([$RELOCATABLE]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/relocatable.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/relocatable.m4 --- gettext-0.17/gettext-tools/gnulib-m4/relocatable.m4 2007-03-04 16:55:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/relocatable.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# relocatable.m4 serial 11 -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. +# relocatable.m4 serial 15 +dnl Copyright (C) 2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -62,7 +62,7 @@ dnl consisting of more than one word - libtool doesn't support this. dnl So we abuse the INSTALL_PROGRAM_ENV hook, originally meant for the dnl 'install-strip' target. - INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" + INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" AC_SUBST([INSTALL_PROGRAM_ENV]) case "$ac_aux_dir" in /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; @@ -76,9 +76,15 @@ dnl RELOCATABLE_LIBRARY_PATH can be set in configure.ac. Default is empty. AC_SUBST([RELOCATABLE_LIBRARY_PATH]) + AC_SUBST([RELOCATABLE_CONFIG_H_DIR]) AC_SUBST([RELOCATABLE_SRC_DIR]) AC_SUBST([RELOCATABLE_BUILD_DIR]) + + dnl Ensure RELOCATABLE_STRIP is defined in Makefiles (at least those + dnl generated by automake), with value ':'. + RELOCATABLE_STRIP=':' + AC_SUBST([RELOCATABLE_STRIP]) ]) dnl Determine the platform dependent parameters needed to use relocatability: @@ -88,7 +94,7 @@ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library path variable], acl_cv_libpath, [ + AC_CACHE_CHECK([for shared library path variable], [acl_cv_libpath], [ LD="$LD" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh . ./conftest.sh diff -Nru gettext-0.17/gettext-tools/gnulib-m4/rmdir.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/rmdir.m4 --- gettext-0.17/gettext-tools/gnulib-m4/rmdir.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/rmdir.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,29 @@ +# rmdir.m4 serial 8 +dnl Copyright (C) 2002, 2005, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_RMDIR], +[ + AC_REQUIRE([gl_AC_DOS]) + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl Detect cygwin 1.5.x bug. + AC_CACHE_CHECK([whether rmdir works], [gl_cv_func_rmdir_works], + [mkdir conftest.dir + touch conftest.file + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #include + #include +]], [[return !rmdir ("conftest.file/") || errno != ENOTDIR + || !rmdir ("conftest.dir/./");]])], + [gl_cv_func_rmdir_works=yes], [gl_cv_func_rmdir_works=no], + [gl_cv_func_rmdir_works="guessing no"]) + rm -rf conftest.dir conftest.file]) + if test x"$gl_cv_func_rmdir_works" != xyes; then + REPLACE_RMDIR=1 + AC_LIBOBJ([rmdir]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/safe-read.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/safe-read.m4 --- gettext-0.17/gettext-tools/gnulib-m4/safe-read.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/safe-read.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ # safe-read.m4 serial 5 -dnl Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2003, 2005-2006, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/safe-write.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/safe-write.m4 --- gettext-0.17/gettext-tools/gnulib-m4/safe-write.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/safe-write.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ # safe-write.m4 serial 3 -dnl Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sched_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sched_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sched_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sched_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,36 @@ +# sched_h.m4 serial 2 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Bruno Haible. + +AC_DEFUN([gl_SCHED_H], +[ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[ + #include + struct sched_param a; + int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; + ]])], + [SCHED_H=''], + [SCHED_H='sched.h' + + gl_CHECK_NEXT_HEADERS([sched.h]) + + AC_CHECK_HEADERS_ONCE([sched.h]) + if test $ac_cv_header_sched_h = yes; then + HAVE_SCHED_H=1 + else + HAVE_SCHED_H=0 + fi + AC_SUBST([HAVE_SCHED_H]) + + AC_CHECK_TYPE([struct sched_param], + [HAVE_STRUCT_SCHED_PARAM=1], [HAVE_STRUCT_SCHED_PARAM=0], + [#include ]) + AC_SUBST([HAVE_STRUCT_SCHED_PARAM]) + ]) + AC_SUBST([SCHED_H]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/setenv.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/setenv.m4 --- gettext-0.17/gettext-tools/gnulib-m4/setenv.m4 2007-03-04 00:08:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/setenv.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,33 +1,58 @@ -# setenv.m4 serial 8 -dnl Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +# setenv.m4 serial 16 +dnl Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_SETENV], [ - AC_CHECK_FUNCS_ONCE([setenv]) - if test $ac_cv_func_setenv = no; then + AC_REQUIRE([gl_FUNC_SETENV_SEPARATE]) + if test $HAVE_SETENV$REPLACE_SETENV != 10; then AC_LIBOBJ([setenv]) - gl_PREREQ_SETENV fi ]) # Like gl_FUNC_SETENV, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_SETENV_SEPARATE], [ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([setenv]) + if test $ac_cv_func_setenv = no; then + HAVE_SETENV=0 + else + AC_CACHE_CHECK([whether setenv validates arguments], + [gl_cv_func_setenv_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ + #include + #include + #include + ]], [[ + if (setenv ("", "", 0) != -1) return 1; + if (errno != EINVAL) return 2; + if (setenv ("a", "=", 1) != 0) return 3; + if (strcmp (getenv ("a"), "=") != 0) return 4; + ]])], + [gl_cv_func_setenv_works=yes], [gl_cv_func_setenv_works=no], + [gl_cv_func_setenv_works="guessing no"])]) + if test "$gl_cv_func_setenv_works" != yes; then + REPLACE_SETENV=1 + AC_LIBOBJ([setenv]) + fi + fi gl_PREREQ_SETENV ]) AC_DEFUN([gl_FUNC_UNSETENV], [ + AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_FUNCS([unsetenv]) if test $ac_cv_func_unsetenv = no; then + HAVE_UNSETENV=0 AC_LIBOBJ([unsetenv]) gl_PREREQ_UNSETENV else - AC_CACHE_CHECK([for unsetenv() return type], gt_cv_func_unsetenv_ret, + dnl Some BSDs return void, failing to do error checking. + AC_CACHE_CHECK([for unsetenv() return type], [gt_cv_func_unsetenv_ret], [AC_TRY_COMPILE([#include extern #ifdef __cplusplus @@ -40,27 +65,31 @@ #endif ], , gt_cv_func_unsetenv_ret='int', gt_cv_func_unsetenv_ret='void')]) if test $gt_cv_func_unsetenv_ret = 'void'; then - AC_DEFINE(VOID_UNSETENV, 1, [Define if unsetenv() returns void, not int.]) + AC_DEFINE([VOID_UNSETENV], [1], [Define to 1 if unsetenv returns void + instead of int.]) + REPLACE_UNSETENV=1 + AC_LIBOBJ([unsetenv]) fi - fi -]) -# Check if a variable is properly declared. -# gt_CHECK_VAR_DECL(includes,variable) -AC_DEFUN([gt_CHECK_VAR_DECL], -[ - define([gt_cv_var], [gt_cv_var_]$2[_declaration]) - AC_MSG_CHECKING([if $2 is properly declared]) - AC_CACHE_VAL(gt_cv_var, [ - AC_TRY_COMPILE([$1 - extern struct { int foo; } $2;], - [$2.foo = 1;], - gt_cv_var=no, - gt_cv_var=yes)]) - AC_MSG_RESULT($gt_cv_var) - if test $gt_cv_var = yes; then - AC_DEFINE([HAVE_]translit($2, [a-z], [A-Z])[_DECL], 1, - [Define if you have the declaration of $2.]) + dnl Solaris 10 unsetenv does not remove all copies of a name. + AC_CACHE_CHECK([whether unsetenv works on duplicates], + [gl_cv_func_unsetenv_works], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ + #include + ]], [[ + char entry[] = "b=2"; + if (putenv ((char *) "a=1")) return 1; + if (putenv (entry)) return 2; + entry[0] = 'a'; + unsetenv ("a"); + if (getenv ("a")) return 3; + ]])], + [gl_cv_func_unsetenv_works=yes], [gl_cv_func_unsetenv_works=no], + [gl_cv_func_unsetenv_works="guessing no"])]) + if test "$gl_cv_func_unsetenv_works" != yes; then + REPLACE_UNSETENV=1 + AC_LIBOBJ([unsetenv]) + fi fi ]) @@ -68,15 +97,15 @@ AC_DEFUN([gl_PREREQ_SETENV], [ AC_REQUIRE([AC_FUNC_ALLOCA]) - AC_CHECK_HEADERS_ONCE(unistd.h) - AC_CHECK_HEADERS(search.h) - AC_CHECK_FUNCS(tsearch) - gt_CHECK_VAR_DECL([#include ], environ) + AC_REQUIRE([gl_ENVIRON]) + AC_CHECK_HEADERS_ONCE([unistd.h]) + AC_CHECK_HEADERS([search.h]) + AC_CHECK_FUNCS([tsearch]) ]) # Prerequisites of lib/unsetenv.c. AC_DEFUN([gl_PREREQ_UNSETENV], [ - AC_CHECK_HEADERS_ONCE(unistd.h) - gt_CHECK_VAR_DECL([#include ], environ) + AC_REQUIRE([gl_ENVIRON]) + AC_CHECK_HEADERS_ONCE([unistd.h]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sigaction.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sigaction.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sigaction.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sigaction.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,45 @@ +# sigaction.m4 serial 5 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Determine if sigaction interface is present. +AC_DEFUN([gl_SIGACTION], +[ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([sigaction]) + if test $ac_cv_func_sigaction = yes; then + AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , , + [[#include ]]) + if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then + HAVE_STRUCT_SIGACTION_SA_SIGACTION=0 + fi + else + HAVE_SIGACTION=0 + AC_LIBOBJ([sigaction]) + gl_PREREQ_SIGACTION + fi +]) + +# Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c. +AC_DEFUN([gl_PREREQ_SIGACTION], +[ + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([AC_TYPE_UID_T]) + AC_REQUIRE([gl_PREREQ_SIG_HANDLER_H]) + AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt]) + AC_CHECK_TYPES([siginfo_t], [], [], [[ +#include + ]]) + if test $ac_cv_type_siginfo_t = no; then + HAVE_SIGINFO_T=0 + fi +]) + +# Prerequisites of lib/sig-handler.h. +AC_DEFUN([gl_PREREQ_SIG_HANDLER_H], +[ + AC_REQUIRE([AC_C_INLINE]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sig_atomic_t.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sig_atomic_t.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sig_atomic_t.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sig_atomic_t.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,13 +1,13 @@ -# sig_atomic_t.m4 serial 1 (gettext-0.13) -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# sig_atomic_t.m4 serial 2 +dnl Copyright (C) 2003, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gt_TYPE_SIG_ATOMIC_T], [ - AC_CHECK_TYPES(sig_atomic_t, , - [AC_DEFINE(sig_atomic_t, int, + AC_CHECK_TYPES([sig_atomic_t], , + [AC_DEFINE([sig_atomic_t], [int], [Define as an integer type suitable for memory locations that can be accessed atomically even in the presence of asynchnonous signals.])], [#include ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/signalblocking.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/signalblocking.m4 --- gettext-0.17/gettext-tools/gnulib-m4/signalblocking.m4 2007-10-03 22:25:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/signalblocking.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# signalblocking.m4 serial 6 -dnl Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. +# signalblocking.m4 serial 10 +dnl Copyright (C) 2001-2002, 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,9 +13,9 @@ [ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) signals_not_posix= - AC_EGREP_HEADER(sigset_t, signal.h, , signals_not_posix=1) + AC_EGREP_HEADER([sigset_t], [signal.h], , [signals_not_posix=1]) if test -z "$signals_not_posix"; then - AC_CHECK_FUNC(sigprocmask, [gl_cv_func_sigprocmask=1]) + AC_CHECK_FUNC([sigprocmask], [gl_cv_func_sigprocmask=1]) fi if test -z "$gl_cv_func_sigprocmask"; then HAVE_POSIX_SIGNALBLOCKING=0 @@ -39,5 +39,4 @@ dnl HAVE_SIGSET_T is 1 if the system lacks the sigprocmask function but has dnl the sigset_t type. AC_SUBST([HAVE_SIGSET_T]) - AC_CHECK_FUNCS_ONCE(raise) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/signal_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/signal_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/signal_h.m4 2007-07-01 14:09:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/signal_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# signal_h.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# signal_h.m4 serial 11 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,19 +8,42 @@ [ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([signal.h]) +# AIX declares sig_atomic_t to already include volatile, and C89 compilers +# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. + AC_CHECK_TYPE([volatile sig_atomic_t], [], + [HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0], [[ +#include + ]]) + AC_REQUIRE([AC_TYPE_UID_T]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [sigaction sigaddset sigdelset sigemptyset sigfillset sigismember + sigpending sigprocmask]) ]) AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_SIGNAL_H_DEFAULTS], [ + GNULIB_SIGNAL_H_SIGPIPE=0; AC_SUBST([GNULIB_SIGNAL_H_SIGPIPE]) GNULIB_SIGPROCMASK=0; AC_SUBST([GNULIB_SIGPROCMASK]) + GNULIB_SIGACTION=0; AC_SUBST([GNULIB_SIGACTION]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING]) HAVE_SIGSET_T=1; AC_SUBST([HAVE_SIGSET_T]) + HAVE_SIGINFO_T=1; AC_SUBST([HAVE_SIGINFO_T]) + HAVE_SIGACTION=1; AC_SUBST([HAVE_SIGACTION]) + HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; + AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION]) + HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; + AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sigpipe.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sigpipe.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sigpipe.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sigpipe.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,29 @@ +# sigpipe.m4 serial 2 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Tests whether SIGPIPE is provided by . +dnl Sets gl_cv_header_signal_h_SIGPIPE. +AC_DEFUN([gl_SIGNAL_SIGPIPE], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_SIGNAL_SIGPIPE_BODY]) +]) + +AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [ + AC_EGREP_CPP([booboo],[ +#include +#if !defined SIGPIPE +booboo +#endif + ], + [gl_cv_header_signal_h_SIGPIPE=no], + [gl_cv_header_signal_h_SIGPIPE=yes]) + ]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/snprintf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/snprintf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/snprintf.m4 2007-10-26 00:52:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/snprintf.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# snprintf.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc. +# snprintf.m4 serial 5 +dnl Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,8 +7,17 @@ AC_DEFUN([gl_FUNC_SNPRINTF], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + gl_cv_func_snprintf_usable=no AC_CHECK_FUNCS([snprintf]) - if test $ac_cv_func_snprintf = no; then + if test $ac_cv_func_snprintf = yes; then + gl_SNPRINTF_SIZE1 + case "$gl_cv_func_snprintf_size1" in + *yes) + gl_cv_func_snprintf_usable=yes + ;; + esac + fi + if test $gl_cv_func_snprintf_usable = no; then gl_REPLACE_SNPRINTF fi AC_CHECK_DECLS_ONCE([snprintf]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/spawn_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/spawn_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/spawn_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/spawn_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,114 @@ +# spawn_h.m4 serial 11 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Bruno Haible. + +AC_DEFUN([gl_SPAWN_H], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_SPAWN_H_DEFAULTS]) + + dnl is always overridden, because of GNULIB_POSIXCHECK. + gl_CHECK_NEXT_HEADERS([spawn.h]) + + AC_CHECK_HEADERS_ONCE([spawn.h]) + if test $ac_cv_header_spawn_h = yes; then + HAVE_SPAWN_H=1 + AC_CHECK_TYPES([posix_spawnattr_t], [], [HAVE_POSIX_SPAWNATTR_T=0], [[ +#include + ]]) + AC_CHECK_TYPES([posix_spawn_file_actions_t], [], + [HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0], [[ +#include + ]]) + else + HAVE_SPAWN_H=0 + HAVE_POSIX_SPAWNATTR_T=0 + HAVE_POSIX_SPAWN_FILE_ACTIONS_T=0 + gl_REPLACE_SPAWN_H + fi + AC_SUBST([HAVE_SPAWN_H]) + + AC_REQUIRE([gl_HAVE_POSIX_SPAWN]) + + AC_REQUIRE([AC_C_RESTRICT]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [posix_spawn posix_spawnp posix_spawnattr_init posix_spawnattr_destroy + posix_spawnattr_getsigdefault posix_spawnattr_setsigdefault + posix_spawnattr_getsigmask posix_spawnattr_setsigmask + posix_spawnattr_getflags posix_spawnattr_setflags + posix_spawnattr_getpgroup posix_spawnattr_setpgroup + posix_spawnattr_getschedpolicy posix_spawnattr_setschedpolicy + posix_spawnattr_getschedparam posix_spawnattr_setschedparam + posix_spawn_file_actions_init posix_spawn_file_actions_destroy + posix_spawn_file_actions_addopen posix_spawn_file_actions_addclose + posix_spawn_file_actions_adddup2]) +]) + +dnl Checks whether the system has the functions posix_spawn. +dnl Sets ac_cv_func_posix_spawn and HAVE_POSIX_SPAWN. +AC_DEFUN([gl_HAVE_POSIX_SPAWN], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_SPAWN_H_DEFAULTS]) + + AC_CHECK_FUNCS_ONCE([posix_spawn]) + if test $ac_cv_func_posix_spawn != yes; then + HAVE_POSIX_SPAWN=0 + fi +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_SPAWN_H], +[ + dnl This is a no-op, because is always overridden. + : +]) + +AC_DEFUN([gl_SPAWN_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SPAWN_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SPAWN_H_DEFAULTS], +[ + GNULIB_POSIX_SPAWN=0; AC_SUBST([GNULIB_POSIX_SPAWN]) + GNULIB_POSIX_SPAWNP=0; AC_SUBST([GNULIB_POSIX_SPAWNP]) + GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT]) + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE]) + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2]) + GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN]) + GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY=0; AC_SUBST([GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY]) + GNULIB_POSIX_SPAWNATTR_INIT=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_INIT]) + GNULIB_POSIX_SPAWNATTR_GETFLAGS=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETFLAGS]) + GNULIB_POSIX_SPAWNATTR_SETFLAGS=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETFLAGS]) + GNULIB_POSIX_SPAWNATTR_GETPGROUP=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETPGROUP]) + GNULIB_POSIX_SPAWNATTR_SETPGROUP=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETPGROUP]) + GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM]) + GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM]) + GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY]) + GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY]) + GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT]) + GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT]) + GNULIB_POSIX_SPAWNATTR_GETSIGMASK=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_GETSIGMASK]) + GNULIB_POSIX_SPAWNATTR_SETSIGMASK=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_SETSIGMASK]) + GNULIB_POSIX_SPAWNATTR_DESTROY=0; AC_SUBST([GNULIB_POSIX_SPAWNATTR_DESTROY]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_POSIX_SPAWN=1; AC_SUBST([HAVE_POSIX_SPAWN]) + HAVE_POSIX_SPAWNATTR_T=1; AC_SUBST([HAVE_POSIX_SPAWNATTR_T]) + HAVE_POSIX_SPAWN_FILE_ACTIONS_T=1; + AC_SUBST([HAVE_POSIX_SPAWN_FILE_ACTIONS_T]) + REPLACE_POSIX_SPAWN=0; AC_SUBST([REPLACE_POSIX_SPAWN]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/ssize_t.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/ssize_t.m4 --- gettext-0.17/gettext-tools/gnulib-m4/ssize_t.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/ssize_t.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ # ssize_t.m4 serial 4 (gettext-0.15) -dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stat.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stat.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stat.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stat.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,63 @@ +# serial 4 + +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_STAT], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_REQUIRE([gl_AC_DOS]) + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([lstat]) + dnl mingw is the only known platform where stat(".") and stat("./") differ + AC_CACHE_CHECK([whether stat handles trailing slashes on directories], + [gl_cv_func_stat_dir_slash], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[struct stat st; return stat (".", &st) != stat ("./", &st);]])], + [gl_cv_func_stat_dir_slash=yes], [gl_cv_func_stat_dir_slash=no], + [case $host_os in + mingw*) gl_cv_func_stat_dir_slash="guessing no";; + *) gl_cv_func_stat_dir_slash="guessing yes";; + esac])]) + dnl Solaris 9 mistakenly succeeds on stat("file/") + dnl FreeBSD 7.2 mistakenly succeeds on stat("link-to-file/") + AC_CACHE_CHECK([whether stat handles trailing slashes on files], + [gl_cv_func_stat_file_slash], + [touch conftest.tmp + # Assume that if we have lstat, we can also check symlinks. + if test $ac_cv_func_lstat = yes; then + ln -s conftest.tmp conftest.lnk + fi + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[struct stat st; + if (!stat ("conftest.tmp/", &st)) return 1; +#if HAVE_LSTAT + if (!stat ("conftest.lnk/", &st)) return 2; +#endif + ]])], + [gl_cv_func_stat_file_slash=yes], [gl_cv_func_stat_file_slash=no], + [gl_cv_func_stat_file_slash="guessing no"]) + rm -f conftest.tmp conftest.lnk]) + case $gl_cv_func_stat_dir_slash in + *no) REPLACE_STAT=1 + AC_DEFINE([REPLACE_FUNC_STAT_DIR], [1], [Define to 1 if stat needs + help when passed a directory name with a trailing slash]);; + esac + case $gl_cv_func_stat_file_slash in + *no) REPLACE_STAT=1 + AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs + help when passed a file name with a trailing slash]);; + esac + if test $REPLACE_STAT = 1; then + AC_LIBOBJ([stat]) + dnl Prerequisites of lib/stat.c. + AC_REQUIRE([AC_C_INLINE]) + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stdarg.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stdarg.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stdarg.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stdarg.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# stdarg.m4 serial 1 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# stdarg.m4 serial 3 +dnl Copyright (C) 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,6 +9,8 @@ AC_DEFUN([gl_STDARG_H], [ + STDARG_H=''; AC_SUBST([STDARG_H]) + NEXT_STDARG_H=''; AC_SUBST([NEXT_STDARG_H]) AC_MSG_CHECKING([for va_copy]) AC_CACHE_VAL([gl_cv_func_va_copy], [ AC_TRY_COMPILE([#include ], [ @@ -19,22 +21,47 @@ [gl_cv_func_va_copy=yes], [gl_cv_func_va_copy=no])]) AC_MSG_RESULT([$gl_cv_func_va_copy]) if test $gl_cv_func_va_copy = no; then - # Provide a substitute, either __va_copy or as a simple assignment. - AC_CACHE_VAL([gl_cv_func___va_copy], [ - AC_TRY_COMPILE([#include ], [ + dnl Provide a substitute. + dnl Usually a simple definition in is enough. Not so on AIX 5 + dnl with some versions of the /usr/vac/bin/cc compiler. It has an + dnl which does '#undef va_copy', leading to a missing va_copy symbol. For + dnl this platform, we use an substitute. But we cannot use this + dnl approach on other platforms, because often defines only + dnl preprocessor macros and gl_ABSOLUTE_HEADER, gl_CHECK_NEXT_HEADERS do + dnl not work in this situation. + AC_EGREP_CPP([vaccine], + [#if defined _AIX && !defined __GNUC__ + AIX vaccine + #endif + ], [gl_aixcc=yes], [gl_aixcc=no]) + if test $gl_aixcc = yes; then + dnl Provide a substitute file. + STDARG_H=stdarg.h + gl_CHECK_NEXT_HEADERS([stdarg.h]) + dnl Fallback for the case when contains only macro definitions. + if test "$gl_cv_next_stdarg_h" = '""'; then + gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' + NEXT_STDARG_H="$gl_cv_next_stdarg_h" + fi + else + dnl Provide a substitute in , either __va_copy or as a simple + dnl assignment. + gl_CACHE_VAL_SILENT([gl_cv_func___va_copy], [ + AC_TRY_COMPILE([#include ], [ #ifndef __va_copy error, bail out #endif ], - [gl_cv_func___va_copy=yes], [gl_cv_func___va_copy=no])]) - if test $gl_cv_func___va_copy = yes; then - AC_DEFINE([va_copy], [__va_copy], - [Define as a macro for copying va_list variables.]) - else - AH_VERBATIM([gl_VA_COPY], [/* A replacement for va_copy, if needed. */ + [gl_cv_func___va_copy=yes], [gl_cv_func___va_copy=no])]) + if test $gl_cv_func___va_copy = yes; then + AC_DEFINE([va_copy], [__va_copy], + [Define as a macro for copying va_list variables.]) + else + AH_VERBATIM([gl_VA_COPY], [/* A replacement for va_copy, if needed. */ #define gl_va_copy(a,b) ((a) = (b))]) - AC_DEFINE([va_copy], [gl_va_copy], - [Define as a macro for copying va_list variables.]) + AC_DEFINE([va_copy], [gl_va_copy], + [Define as a macro for copying va_list variables.]) + fi fi fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stdbool.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stdbool.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stdbool.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stdbool.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,6 +1,6 @@ # Check for stdbool.h that conforms to C99. -dnl Copyright (C) 2002-2006 Free Software Foundation, Inc. +dnl Copyright (C) 2002-2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -38,78 +38,78 @@ [AC_CACHE_CHECK([for stdbool.h that conforms to C99], [ac_cv_header_stdbool_h], [AC_TRY_COMPILE( - [ - #include - #ifndef bool - "error: bool is not defined" - #endif - #ifndef false - "error: false is not defined" - #endif - #if false - "error: false is not 0" - #endif - #ifndef true - "error: true is not defined" - #endif - #if true != 1 - "error: true is not 1" - #endif - #ifndef __bool_true_false_are_defined - "error: __bool_true_false_are_defined is not defined" - #endif - - struct s { _Bool s: 1; _Bool t; } s; - - char a[true == 1 ? 1 : -1]; - char b[false == 0 ? 1 : -1]; - char c[__bool_true_false_are_defined == 1 ? 1 : -1]; - char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; - char f[(_Bool) 0.0 == false ? 1 : -1]; - char g[true]; - char h[sizeof (_Bool)]; - char i[sizeof s.t]; - enum { j = false, k = true, l = false * true, m = true * 256 }; - _Bool n[m]; - char o[sizeof n == m * sizeof n[0] ? 1 : -1]; - char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; - #if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a run-time - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); - #endif - /* Catch a bug in an HP-UX C compiler. See - http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html - http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html - */ - _Bool q = true; - _Bool *pq = &q; - ], - [ - *pq |= q; - *pq |= ! q; - /* Refer to every declared value, to avoid compiler optimizations. */ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l - + !m + !n + !o + !p + !q + !pq); - ], - [ac_cv_header_stdbool_h=yes], - [ac_cv_header_stdbool_h=no])]) + [ + #include + #ifndef bool + "error: bool is not defined" + #endif + #ifndef false + "error: false is not defined" + #endif + #if false + "error: false is not 0" + #endif + #ifndef true + "error: true is not defined" + #endif + #if true != 1 + "error: true is not 1" + #endif + #ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" + #endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; + #if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a run-time + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); + #endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + ], + [ + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + ], + [ac_cv_header_stdbool_h=yes], + [ac_cv_header_stdbool_h=no])]) AC_CHECK_TYPES([_Bool]) if test $ac_cv_header_stdbool_h = yes; then - AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.]) + AC_DEFINE([HAVE_STDBOOL_H], [1], [Define to 1 if stdbool.h conforms to C99.]) fi]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stddef_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stddef_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stddef_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stddef_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,45 @@ +dnl A placeholder for POSIX 2008 , for platforms that have issues. +# stddef_h.m4 serial 2 +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_STDDEF_H], +[ + AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) + AC_REQUIRE([gt_TYPE_WCHAR_T]) + if test $gt_cv_c_wchar_t = no; then + HAVE_WCHAR_T=0 + STDDEF_H=stddef.h + fi + AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions], + [gl_cv_decl_null_works], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include + int test[2 * (sizeof NULL == sizeof (void *)) -1]; +]])], + [gl_cv_decl_null_works=yes], + [gl_cv_decl_null_works=no])]) + if test $gl_cv_decl_null_works = no; then + REPLACE_NULL=1 + STDDEF_H=stddef.h + fi + if test -n "$STDDEF_H"; then + gl_CHECK_NEXT_HEADERS([stddef.h]) + fi +]) + +AC_DEFUN([gl_STDDEF_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) +]) + +AC_DEFUN([gl_STDDEF_H_DEFAULTS], +[ + dnl Assume proper GNU behavior unless another module says otherwise. + REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) + HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) + STDDEF_H=''; AC_SUBST([STDDEF_H]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stdint.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stdint.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stdint.m4 2007-10-03 22:25:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stdint.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# stdint.m4 serial 29 -dnl Copyright (C) 2001-2007 Free Software Foundation, Inc. +# stdint.m4 serial 34 +dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,7 +9,7 @@ AC_DEFUN([gl_STDINT_H], [ - AC_PREREQ(2.59)dnl + AC_PREREQ([2.59])dnl dnl Check for long long int and unsigned long long int. AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) @@ -201,7 +201,75 @@ int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; ]])], - [gl_cv_header_working_stdint_h=yes])]) + [dnl Determine whether the various *_MIN, *_MAX macros are usable + dnl in preprocessor expression. We could do it by compiling a test + dnl program for each of these macros. It is faster to run a program + dnl that inspects the macro expansion. + dnl This detects a bug on HP-UX 11.23/ia64. + AC_RUN_IFELSE([ + AC_LANG_PROGRAM([[ +#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ +#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ +#include +] +gl_STDINT_INCLUDES +[ +#include +#include +#define MVAL(macro) MVAL1(macro) +#define MVAL1(expression) #expression +static const char *macro_values[] = + { +#ifdef INT8_MAX + MVAL (INT8_MAX), +#endif +#ifdef INT16_MAX + MVAL (INT16_MAX), +#endif +#ifdef INT32_MAX + MVAL (INT32_MAX), +#endif +#ifdef INT64_MAX + MVAL (INT64_MAX), +#endif +#ifdef UINT8_MAX + MVAL (UINT8_MAX), +#endif +#ifdef UINT16_MAX + MVAL (UINT16_MAX), +#endif +#ifdef UINT32_MAX + MVAL (UINT32_MAX), +#endif +#ifdef UINT64_MAX + MVAL (UINT64_MAX), +#endif + NULL + }; +]], [[ + const char **mv; + for (mv = macro_values; *mv != NULL; mv++) + { + const char *value = *mv; + /* Test whether it looks like a cast expression. */ + if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 + || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 + || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 + || strncmp (value, "((int)"/*)*/, 6) == 0 + || strncmp (value, "((signed short)"/*)*/, 15) == 0 + || strncmp (value, "((signed char)"/*)*/, 14) == 0) + return 1; + } + return 0; +]])], + [gl_cv_header_working_stdint_h=yes], + [], + [dnl When cross-compiling, assume it works. + gl_cv_header_working_stdint_h=yes + ]) + ]) + ]) fi if test "$gl_cv_header_working_stdint_h" = yes; then STDINT_H= @@ -229,7 +297,7 @@ gl_STDINT_TYPE_PROPERTIES STDINT_H=stdint.h fi - AC_SUBST(STDINT_H) + AC_SUBST([STDINT_H]) ]) dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) @@ -240,7 +308,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to the number of bits in type ']gltype['.])]) for gltype in $1 ; do @@ -265,7 +333,7 @@ AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result]) eval BITSIZEOF_${GLTYPE}=\$result done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST([BITSIZEOF_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) @@ -278,7 +346,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to 1 if ']gltype[' is a signed integer type.])]) for gltype in $1 ; do @@ -292,13 +360,13 @@ eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then - AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], 1) + AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], [1]) eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST([HAVE_SIGNED_]translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) @@ -311,7 +379,7 @@ dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AH_TEMPLATE(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX], [Define to l, ll, u, ul, ull, etc., as suitable for constants of type ']gltype['.])]) @@ -328,18 +396,18 @@ for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; - l) gltype1='long int';; - ll) gltype1='long long int';; - i64) gltype1='__int64';; - u) gltype1='unsigned int';; - ul) gltype1='unsigned long int';; - ull) gltype1='unsigned long long int';; + l) gltype1='long int';; + ll) gltype1='long long int';; + i64) gltype1='__int64';; + u) gltype1='unsigned int';; + ul) gltype1='unsigned long int';; + ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([$2 + [AC_LANG_PROGRAM([$2[ extern $gltype foo; - extern $gltype1 foo;])], + extern $gltype1 foo;]])], [eval gl_cv_type_${gltype}_suffix=\$glsuf]) eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break @@ -348,9 +416,9 @@ eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result - AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], $result) + AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], [$result]) done - AC_FOREACH([gltype], [$1], + m4_foreach_w([gltype], [$1], [AC_SUBST(translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX])]) ]) @@ -373,13 +441,22 @@ dnl of interest to stdint.in.h. AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], [ - gl_STDINT_BITSIZEOF([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + AC_REQUIRE([gl_MULTIARCH]) + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_STDINT_BITSIZEOF([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no - gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stdio_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stdio_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stdio_h.m4 2007-10-07 13:35:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stdio_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# stdio_h.m4 serial 8 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# stdio_h.m4 serial 31 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,61 +7,135 @@ AC_DEFUN([gl_STDIO_H], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + AC_REQUIRE([AC_C_INLINE]) + AC_REQUIRE([gl_ASM_SYMBOL_PREFIX]) gl_CHECK_NEXT_HEADERS([stdio.h]) + dnl No need to create extra modules for these functions. Everyone who uses + dnl likely needs them. + GNULIB_FPRINTF=1 + GNULIB_PRINTF=1 + GNULIB_VFPRINTF=1 + GNULIB_VPRINTF=1 + GNULIB_FPUTC=1 + GNULIB_PUTC=1 + GNULIB_PUTCHAR=1 + GNULIB_FPUTS=1 + GNULIB_PUTS=1 + GNULIB_FWRITE=1 + dnl This ifdef is just an optimization, to avoid performing a configure + dnl check whose result is not used. It does not make the test of + dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant. + m4_ifdef([gl_SIGNAL_SIGPIPE], [ + gl_SIGNAL_SIGPIPE + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_STDIO_WRITE_FUNCS=1 + AC_LIBOBJ([stdio-write]) + fi + ]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include + ]], [dprintf fpurge fseeko ftello getdelim getline popen renameat + snprintf tmpfile vdprintf vsnprintf]) ]) AC_DEFUN([gl_STDIO_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_STDIO_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_STDIO_H_DEFAULTS], [ - GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX]) - GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX]) - GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF]) - GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX]) - GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX]) - GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX]) - GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF]) - GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX]) - GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF]) - GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN]) - GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN]) - GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK]) - GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO]) - GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL]) - GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO]) - GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) - GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM]) - GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE]) + GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF]) + GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE]) + GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) + GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN]) + GNULIB_FPRINTF=0; AC_SUBST([GNULIB_FPRINTF]) + GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX]) + GNULIB_FPURGE=0; AC_SUBST([GNULIB_FPURGE]) + GNULIB_FPUTC=0; AC_SUBST([GNULIB_FPUTC]) + GNULIB_FPUTS=0; AC_SUBST([GNULIB_FPUTS]) + GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN]) + GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK]) + GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO]) + GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL]) + GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO]) + GNULIB_FWRITE=0; AC_SUBST([GNULIB_FWRITE]) + GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM]) + GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE]) + GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF]) + GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX]) + GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR]) + GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN]) + GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF]) + GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX]) + GNULIB_PUTC=0; AC_SUBST([GNULIB_PUTC]) + GNULIB_PUTCHAR=0; AC_SUBST([GNULIB_PUTCHAR]) + GNULIB_PUTS=0; AC_SUBST([GNULIB_PUTS]) + GNULIB_REMOVE=0; AC_SUBST([GNULIB_REMOVE]) + GNULIB_RENAME=0; AC_SUBST([GNULIB_RENAME]) + GNULIB_RENAMEAT=0; AC_SUBST([GNULIB_RENAMEAT]) + GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF]) + GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX]) + GNULIB_STDIO_H_SIGPIPE=0; AC_SUBST([GNULIB_STDIO_H_SIGPIPE]) + GNULIB_TMPFILE=0; AC_SUBST([GNULIB_TMPFILE]) + GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF]) + GNULIB_VDPRINTF=0; AC_SUBST([GNULIB_VDPRINTF]) + GNULIB_VFPRINTF=0; AC_SUBST([GNULIB_VFPRINTF]) + GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX]) + GNULIB_VPRINTF=0; AC_SUBST([GNULIB_VPRINTF]) + GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX]) + GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF]) + GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX]) dnl Assume proper GNU behavior unless another module says otherwise. - REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) - REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF]) - REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF]) - REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF]) - REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF]) - HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) - REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF]) - HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) - REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF]) - REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF]) - HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) - REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) - REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) - REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) - HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) - REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) - REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) - HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) - REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) - REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL]) - REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) - HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM]) - HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE]) - REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE]) + HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE]) + HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM]) + HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE]) + HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF]) + HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) + HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) + HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) + HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) + HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) + HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) + HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) + HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) + REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF]) + REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE]) + REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) + REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) + REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) + REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE]) + REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) + REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) + REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) + REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL]) + REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) + REPLACE_GETDELIM=0; AC_SUBST([REPLACE_GETDELIM]) + REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE]) + REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF]) + REPLACE_PERROR=0; AC_SUBST([REPLACE_PERROR]) + REPLACE_POPEN=0; AC_SUBST([REPLACE_POPEN]) + REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF]) + REPLACE_REMOVE=0; AC_SUBST([REPLACE_REMOVE]) + REPLACE_RENAME=0; AC_SUBST([REPLACE_RENAME]) + REPLACE_RENAMEAT=0; AC_SUBST([REPLACE_RENAMEAT]) + REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF]) + REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF]) + REPLACE_STDIO_WRITE_FUNCS=0; AC_SUBST([REPLACE_STDIO_WRITE_FUNCS]) + REPLACE_TMPFILE=0; AC_SUBST([REPLACE_TMPFILE]) + REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) + REPLACE_VDPRINTF=0; AC_SUBST([REPLACE_VDPRINTF]) + REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF]) + REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF]) + REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF]) + REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF]) ]) dnl Code shared by fseeko and ftello. Determine if large files are supported, @@ -70,17 +144,16 @@ [ AC_CACHE_CHECK([whether stdin defaults to large file offsets], [gl_cv_var_stdin_large_offset], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include ], -[#if defined __SL64 && defined __SCLE /* cygwin */ + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], +[[#if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making - fseeko/ftello needlessly fail. This bug was fixed at the same time - that cygwin started exporting asnprintf (cygwin 1.7.0), so we use - that as a link-time test for cross-compiles rather than building - a runtime test. */ - size_t s; - if (asnprintf (NULL, &s, "")) - return 0; -#endif])], - [gl_cv_var_stdin_large_offset=yes], - [gl_cv_var_stdin_large_offset=no])]) + fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and + it is easier to do a version check than building a runtime test. */ +# include +# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) + choke me +# endif +#endif]])], + [gl_cv_var_stdin_large_offset=yes], + [gl_cv_var_stdin_large_offset=no])]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stdlib_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stdlib_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stdlib_h.m4 2007-11-02 00:42:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stdlib_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# stdlib_h.m4 serial 4 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# stdlib_h.m4 serial 28 +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,30 +8,103 @@ [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([stdlib.h]) + AC_CHECK_HEADERS([random.h], [], [], [AC_INCLUDES_DEFAULT]) + if test $ac_cv_header_random_h = yes; then + HAVE_RANDOM_H=1 + else + HAVE_RANDOM_H=0 + fi + AC_SUBST([HAVE_RANDOM_H]) + AC_CHECK_TYPES([struct random_data], + [], [HAVE_STRUCT_RANDOM_DATA=0], + [[#include + #if HAVE_RANDOM_H + # include + #endif + ]]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include +#if HAVE_SYS_LOADAVG_H +# include +#endif +#if HAVE_RANDOM_H +# include +#endif + ]], [atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp + mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r + setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt + unsetenv]) ]) AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_STDLIB_H_DEFAULTS], [ - GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) - GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) + GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL]) GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX]) + GNULIB_CANONICALIZE_FILE_NAME=0; AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME]) + GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG]) GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT]) + GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT]) + GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX]) GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP]) + GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP]) + GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS]) GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP]) + GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS]) + GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME]) GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV]) + GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R]) + GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX]) + GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH]) + GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH]) + GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV]) + GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD]) + GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL]) + GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL]) + GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT]) + GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV]) dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX]) - HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) - HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) - HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) - HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) - REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) - REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) + HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL]) + HAVE_CALLOC_POSIX=1; AC_SUBST([HAVE_CALLOC_POSIX]) + HAVE_CANONICALIZE_FILE_NAME=1; AC_SUBST([HAVE_CANONICALIZE_FILE_NAME]) + HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG]) + HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) + HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT]) + HAVE_MALLOC_POSIX=1; AC_SUBST([HAVE_MALLOC_POSIX]) + HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) + HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP]) + HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) + HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) + HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) + HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) + HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) + HAVE_REALLOC_POSIX=1; AC_SUBST([HAVE_REALLOC_POSIX]) + HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) + HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) + HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) + HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) + HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) + HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) + HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) + HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) + HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) + HAVE_UNSETENV=1; AC_SUBST([HAVE_UNSETENV]) + REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) + REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) + REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) + REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) + REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) + REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD]) + REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stpcpy.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stpcpy.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stpcpy.m4 2007-10-03 22:25:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stpcpy.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# stpcpy.m4 serial 6 -dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc. +# stpcpy.m4 serial 7 +dnl Copyright (C) 2002, 2007, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -13,7 +13,7 @@ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS(stpcpy) + AC_REPLACE_FUNCS([stpcpy]) if test $ac_cv_func_stpcpy = no; then HAVE_STPCPY=0 gl_PREREQ_STPCPY diff -Nru gettext-0.17/gettext-tools/gnulib-m4/stpncpy.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/stpncpy.m4 --- gettext-0.17/gettext-tools/gnulib-m4/stpncpy.m4 2007-10-03 22:25:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/stpncpy.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,6 @@ -# stpncpy.m4 serial 9 -dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. +# stpncpy.m4 serial 11 +dnl Copyright (C) 2002-2003, 2005-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -24,8 +25,10 @@ dnl in AIX: dest + max(0,n-1) dnl Only the glibc return value is useful in practice. - AC_CACHE_CHECK([for working stpncpy], gl_cv_func_stpncpy, [ - AC_TRY_RUN([ + AC_CHECK_FUNCS_ONCE([stpncpy]) + if test $ac_cv_func_stpncpy = yes; then + AC_CACHE_CHECK([for working stpncpy], [gl_cv_func_stpncpy], [ + AC_TRY_RUN([ #include #include /* for strcpy */ /* The stpncpy prototype is missing in on AIX 4. */ @@ -44,17 +47,23 @@ if (stpncpy (dest, src, 7) != dest + 5) exit(1); exit(0); } -], gl_cv_func_stpncpy=yes, gl_cv_func_stpncpy=no, - [AC_EGREP_CPP([Thanks for using GNU], [ +], [gl_cv_func_stpncpy=yes], [gl_cv_func_stpncpy=no], + [AC_EGREP_CPP([Thanks for using GNU], [ #include #ifdef __GNU_LIBRARY__ Thanks for using GNU #endif -], gl_cv_func_stpncpy=yes, gl_cv_func_stpncpy=no)])]) - - if test $gl_cv_func_stpncpy = yes; then - AC_DEFINE(HAVE_STPNCPY, 1, - [Define if you have the stpncpy() function and it works.]) +], [gl_cv_func_stpncpy=yes], [gl_cv_func_stpncpy=no]) + ]) + ]) + if test $gl_cv_func_stpncpy = yes; then + AC_DEFINE([HAVE_STPNCPY], [1], + [Define if you have the stpncpy() function and it works.]) + else + REPLACE_STPNCPY=1 + AC_LIBOBJ([stpncpy]) + gl_PREREQ_STPNCPY + fi else HAVE_STPNCPY=0 AC_LIBOBJ([stpncpy]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strchrnul.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strchrnul.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strchrnul.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strchrnul.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,21 @@ +# strchrnul.m4 serial 7 +dnl Copyright (C) 2003, 2007, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_STRCHRNUL], +[ + dnl Persuade glibc to declare strchrnul(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REPLACE_FUNCS([strchrnul]) + if test $ac_cv_func_strchrnul = no; then + HAVE_STRCHRNUL=0 + gl_PREREQ_STRCHRNUL + fi +]) + +# Prerequisites of lib/strchrnul.c. +AC_DEFUN([gl_PREREQ_STRCHRNUL], [:]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strcspn.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strcspn.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strcspn.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strcspn.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,12 +1,12 @@ -# strcspn.m4 serial 2 -dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. +# strcspn.m4 serial 3 +dnl Copyright (C) 2002-2003, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRCSPN], [ - AC_REPLACE_FUNCS(strcspn) + AC_REPLACE_FUNCS([strcspn]) if test $ac_cv_func_strcspn = no; then gl_PREREQ_STRCSPN fi diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strdup.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strdup.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strdup.m4 2007-01-28 03:45:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strdup.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -# strdup.m4 serial 9 - -dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software -dnl Foundation, Inc. - -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_STRDUP], -[ - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS(strdup) - AC_CHECK_DECLS_ONCE(strdup) - if test $ac_cv_have_decl_strdup = no; then - HAVE_DECL_STRDUP=0 - fi - gl_PREREQ_STRDUP -]) - -# Prerequisites of lib/strdup.c. -AC_DEFUN([gl_PREREQ_STRDUP], [:]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strerror.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strerror.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strerror.m4 2007-10-17 22:35:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strerror.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# strerror.m4 serial 6 -dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc. +# strerror.m4 serial 9 +dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,7 +7,7 @@ AC_DEFUN([gl_FUNC_STRERROR], [ AC_REQUIRE([gl_FUNC_STRERROR_SEPARATE]) - if test $gl_cv_func_working_strerror = no; then + if test $REPLACE_STRERROR = 1; then AC_LIBOBJ([strerror]) AC_DEFINE_UNQUOTED([REPLACE_STRERROR], [$REPLACE_STRERROR], [Define this to 1 if strerror is broken.]) @@ -17,25 +17,39 @@ # Like gl_FUNC_STRERROR, except prepare for separate compilation (no AC_LIBOBJ). AC_DEFUN([gl_FUNC_STRERROR_SEPARATE], [ - AC_CACHE_CHECK([for working strerror function], - [gl_cv_func_working_strerror], - [AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [#include - ], - [return !*strerror (-2);])], - [gl_cv_func_working_strerror=yes], - [gl_cv_func_working_strerror=no], - [dnl Assume crossbuild works if it compiles. - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [#include - ], - [return !*strerror (-2);])], - [gl_cv_func_working_strerror=yes], - [gl_cv_func_working_strerror=no])])]) - if test $gl_cv_func_working_strerror = no ; then + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REQUIRE([gl_HEADER_ERRNO_H]) + if test -z "$ERRNO_H"; then + AC_CACHE_CHECK([for working strerror function], + [gl_cv_func_working_strerror], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no], + [dnl Assume crossbuild works if it compiles. + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[return !*strerror (-2);]])], + [gl_cv_func_working_strerror=yes], + [gl_cv_func_working_strerror=no]) + ]) + ]) + if test $gl_cv_func_working_strerror = no; then + dnl The system's strerror() fails to return a string for out-of-range + dnl integers. Replace it. + REPLACE_STRERROR=1 + fi + else + dnl The system's strerror() cannot know about the new errno values we add + dnl to . Replace it. REPLACE_STRERROR=1 + fi + if test $REPLACE_STRERROR = 1; then gl_PREREQ_STRERROR fi ]) @@ -43,4 +57,12 @@ # Prerequisites of lib/strerror.c. AC_DEFUN([gl_PREREQ_STRERROR], [ AC_CHECK_DECLS([strerror]) + AC_CHECK_HEADERS_ONCE([sys/socket.h]) + if test $ac_cv_header_sys_socket_h != yes; then + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([winsock2.h]) + fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/string_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/string_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/string_h.m4 2007-09-30 21:33:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/string_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,10 +1,12 @@ # Configure a GNU-like replacement for . -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. +# serial 17 + # Written by Paul Eggert. AC_DEFUN([gl_HEADER_STRING_H], @@ -19,28 +21,43 @@ AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([string.h]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use, and which is not + dnl guaranteed by C89. + gl_WARN_ON_USE_PREPARE([[#include + ]], + [memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup + strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal + strverscmp]) ]) AC_DEFUN([gl_STRING_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS], [ + GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR]) GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM]) GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY]) GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR]) + GNULIB_RAWMEMCHR=0; AC_SUBST([GNULIB_RAWMEMCHR]) GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY]) GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY]) GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL]) GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP]) + GNULIB_STRNCAT=0; AC_SUBST([GNULIB_STRNCAT]) GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP]) GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN]) GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK]) GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP]) + GNULIB_STRSTR=0; AC_SUBST([GNULIB_STRSTR]) GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR]) GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R]) GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN]) @@ -58,23 +75,38 @@ GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP]) GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R]) GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR]) + GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL]) + GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP]) + HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN]) dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) - HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) - HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) - HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) - HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) - HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP]) - HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP]) - HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) - HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) - HAVE_STRNDUP=1; AC_SUBST([HAVE_STRNDUP]) - HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) - HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) - HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) - HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) - HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) - HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) - HAVE_DECL_STRERROR=1; AC_SUBST([HAVE_DECL_STRERROR]) - REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) + HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR]) + HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) + HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) + HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) + HAVE_RAWMEMCHR=1; AC_SUBST([HAVE_RAWMEMCHR]) + HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) + HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) + HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) + HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) + HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) + HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) + HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) + HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) + HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) + HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) + HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL]) + HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP]) + REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR]) + REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM]) + REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY]) + REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP]) + REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR]) + REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR]) + REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) + REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT]) + REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP]) + REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN]) + REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL]) + REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R]) + UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strnlen.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strnlen.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strnlen.m4 2007-09-30 21:33:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strnlen.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,28 +1,29 @@ -# strnlen.m4 serial 9 -dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. +# strnlen.m4 serial 12 +dnl Copyright (C) 2002-2003, 2005-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRNLEN], [ + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + dnl Persuade glibc to declare strnlen(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([strnlen]) if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 + else + AC_FUNC_STRNLEN + dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). + if test $ac_cv_func_strnlen_working = no; then + REPLACE_STRNLEN=1 + fi fi - - AC_FUNC_STRNLEN - if test $ac_cv_func_strnlen_working = no; then - # This is necessary because automake-1.6.1 doesn't understand - # that the above use of AC_FUNC_STRNLEN means we may have to use - # lib/strnlen.c. - #AC_LIBOBJ(strnlen) - AC_DEFINE(strnlen, rpl_strnlen, - [Define to rpl_strnlen if the replacement function should be used.]) + if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then + AC_LIBOBJ([strnlen]) gl_PREREQ_STRNLEN fi ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strpbrk.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strpbrk.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strpbrk.m4 2007-01-28 03:45:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strpbrk.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# strpbrk.m4 serial 4 -dnl Copyright (C) 2002-2003, 2007 Free Software Foundation, Inc. +# strpbrk.m4 serial 5 +dnl Copyright (C) 2002-2003, 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,7 +7,7 @@ AC_DEFUN([gl_FUNC_STRPBRK], [ AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) - AC_REPLACE_FUNCS(strpbrk) + AC_REPLACE_FUNCS([strpbrk]) if test $ac_cv_func_strpbrk = no; then HAVE_STRPBRK=0 gl_PREREQ_STRPBRK diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strstr.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strstr.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strstr.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strstr.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,79 @@ +# strstr.m4 serial 7 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Check that strstr works. +AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], +[ + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) + AC_REQUIRE([gl_FUNC_MEMCHR]) + if test "$gl_cv_func_memchr_works" != yes; then + REPLACE_STRSTR=1 + AC_LIBOBJ([strstr]) + fi +]) # gl_FUNC_STRSTR_SIMPLE + +dnl Additionally, check that strstr is efficient. +AC_DEFUN([gl_FUNC_STRSTR], +[ + AC_REQUIRE([gl_FUNC_STRSTR_SIMPLE]) + if test $REPLACE_STRSTR = 0; then + AC_CACHE_CHECK([whether strstr works in linear time], + [gl_cv_func_strstr_linear], + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ +#include /* for signal */ +#include /* for memmem */ +#include /* for malloc */ +#include /* for alarm */ +]], [[size_t m = 1000000; + char *haystack = (char *) malloc (2 * m + 2); + char *needle = (char *) malloc (m + 2); + void *result = 0; + /* Failure to compile this test due to missing alarm is okay, + since all such platforms (mingw) also have quadratic strstr. */ + signal (SIGALRM, SIG_DFL); + alarm (5); + /* Check for quadratic performance. */ + if (haystack && needle) + { + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = 0; + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = 0; + result = strstr (haystack, needle); + } + return !result;]])], + [gl_cv_func_strstr_linear=yes], [gl_cv_func_strstr_linear=no], + [dnl Only glibc >= 2.9 and cygwin >= 1.7.0 are known to have a + dnl strstr that works in linear time. + AC_EGREP_CPP([Lucky user], + [ +#include +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2) + Lucky user + #endif +#endif +#ifdef __CYGWIN__ + #include + #if CYGWIN_VERSION_DLL_MAJOR >= 1007 + Lucky user + #endif +#endif + ], + [gl_cv_func_strstr_linear=yes], + [gl_cv_func_strstr_linear="guessing no"]) + ]) + ]) + if test "$gl_cv_func_strstr_linear" != yes; then + REPLACE_STRSTR=1 + fi + fi + if test $REPLACE_STRSTR = 1; then + AC_LIBOBJ([strstr]) + fi +]) # gl_FUNC_STRSTR diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strtol.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strtol.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strtol.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strtol.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,10 +1,10 @@ -# strtol.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc. +# strtol.m4 serial 5 +dnl Copyright (C) 2002, 2003, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOL], [ - AC_REPLACE_FUNCS(strtol) + AC_REPLACE_FUNCS([strtol]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/strtoul.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/strtoul.m4 --- gettext-0.17/gettext-tools/gnulib-m4/strtoul.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/strtoul.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,10 +1,10 @@ -# strtoul.m4 serial 3 -dnl Copyright (C) 2002, 2006 Free Software Foundation, Inc. +# strtoul.m4 serial 4 +dnl Copyright (C) 2002, 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOUL], [ - AC_REPLACE_FUNCS(strtoul) + AC_REPLACE_FUNCS([strtoul]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/symlink.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/symlink.m4 --- gettext-0.17/gettext-tools/gnulib-m4/symlink.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/symlink.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,38 @@ +# serial 2 +# See if we need to provide symlink replacement. + +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Written by Eric Blake. + +AC_DEFUN([gl_FUNC_SYMLINK], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_CHECK_FUNCS_ONCE([symlink]) + dnl The best we can do on mingw is provide a dummy that always fails, so + dnl that compilation can proceed with fewer ifdefs. On Solaris 9 and + dnl FreeBSD 7.2, we want to fix a bug with trailing slash handling. + if test $ac_cv_func_symlink = no; then + HAVE_SYMLINK=0 + AC_LIBOBJ([symlink]) + else + AC_CACHE_CHECK([whether symlink handles trailing slash correctly], + [gl_cv_func_symlink_works], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[#include +]], [[if (!symlink ("a", "conftest.link/")) return 1; + if (symlink ("conftest.f", "conftest.lnk2")) return 2; + if (!symlink ("a", "conftest.lnk2/")) return 3;]])], + [gl_cv_func_symlink_works=yes], [gl_cv_func_symlink_works=no], + [gl_cv_func_symlink_works="guessing no"]) + rm -f conftest.f conftest.link conftest.lnk2]) + if test "$gl_cv_func_symlink_works" != yes; then + REPLACE_SYMLINK=1 + AC_LIBOBJ([symlink]) + fi + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sys_select_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_select_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sys_select_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_select_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,85 @@ +# sys_select_h.m4 serial 14 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_HEADER_SYS_SELECT], +[ + AC_REQUIRE([gl_HEADER_SYS_SOCKET]) + AC_REQUIRE([gl_SYS_SELECT_H_DEFAULTS]) + AC_CACHE_CHECK([whether is self-contained], + [gl_cv_header_sys_select_h_selfcontained], + [ + dnl Test against two bugs: + dnl 1. On many platforms, assumes prior inclusion of + dnl . + dnl 2. On OSF/1 4.0, provides only a forward declaration + dnl of 'struct timeval', and no definition of this type. + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[struct timeval b;]])], + [gl_cv_header_sys_select_h_selfcontained=yes], + [gl_cv_header_sys_select_h_selfcontained=no]) + dnl Test against another bug: + dnl 3. On Solaris 10, provides an FD_ZERO implementation + dnl that relies on memset(), but without including . + if test $gl_cv_header_sys_select_h_selfcontained = yes; then + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[int memset; int bzero;]]) + ], + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [[ + #undef memset + #define memset nonexistent_memset + extern void *memset (void *, int, unsigned long); + #undef bzero + #define bzero nonexistent_bzero + extern void bzero (void *, unsigned long); + fd_set fds; + FD_ZERO (&fds); + ]]) + ], + [], + [gl_cv_header_sys_select_h_selfcontained=no]) + ]) + fi + ]) + AC_CHECK_HEADERS_ONCE([sys/select.h]) + dnl is always overridden, because of GNULIB_POSIXCHECK. + gl_CHECK_NEXT_HEADERS([sys/select.h]) + if test $ac_cv_header_sys_select_h = yes; then + HAVE_SYS_SELECT_H=1 + else + HAVE_SYS_SELECT_H=0 + fi + AC_SUBST([HAVE_SYS_SELECT_H]) + gl_PREREQ_SYS_H_WINSOCK2 + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include +#endif +#include + ]], [select]) +]) + +AC_DEFUN([gl_SYS_SELECT_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_SELECT_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SYS_SELECT_H_DEFAULTS], +[ + GNULIB_SELECT=0; AC_SUBST([GNULIB_SELECT]) + dnl Assume proper GNU behavior unless another module says otherwise. + REPLACE_SELECT=0; AC_SUBST([REPLACE_SELECT]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sys_socket_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_socket_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sys_socket_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_socket_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,153 @@ +# sys_socket_h.m4 serial 17 +dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Simon Josefsson. + +AC_DEFUN([gl_HEADER_SYS_SOCKET], +[ + AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) + AC_REQUIRE([AC_C_INLINE]) + + AC_CACHE_CHECK([whether is self-contained], + [gl_cv_header_sys_socket_h_selfcontained], + [ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], + [gl_cv_header_sys_socket_h_selfcontained=yes], + [gl_cv_header_sys_socket_h_selfcontained=no]) + ]) + if test $gl_cv_header_sys_socket_h_selfcontained = yes; then + dnl If the shutdown function exists, should define + dnl SHUT_RD, SHUT_WR, SHUT_RDWR. + AC_CHECK_FUNCS([shutdown]) + if test $ac_cv_func_shutdown = yes; then + AC_CACHE_CHECK([whether defines the SHUT_* macros], + [gl_cv_header_sys_socket_h_shut], + [ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };]])], + [gl_cv_header_sys_socket_h_shut=yes], + [gl_cv_header_sys_socket_h_shut=no]) + ]) + if test $gl_cv_header_sys_socket_h_shut = no; then + SYS_SOCKET_H='sys/socket.h' + fi + fi + fi + # We need to check for ws2tcpip.h now. + gl_PREREQ_SYS_H_SOCKET + AC_CHECK_TYPES([struct sockaddr_storage, sa_family_t],,,[ + /* sys/types.h is not needed according to POSIX, but the + sys/socket.h in i386-unknown-freebsd4.10 and + powerpc-apple-darwin5.5 required it. */ +#include +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_WS2TCPIP_H +#include +#endif +]) + if test $ac_cv_type_struct_sockaddr_storage = no; then + HAVE_STRUCT_SOCKADDR_STORAGE=0 + fi + if test $ac_cv_type_sa_family_t = no; then + HAVE_SA_FAMILY_T=0 + fi + gl_PREREQ_SYS_H_WINSOCK2 + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require prerequisite headers. */ +#include +#if !defined __GLIBC__ && HAVE_SYS_TIME_H +# include +#endif +#include + ]], [socket connect accept bind getpeername getsockname getsockopt + listen recv send recvfrom sendto setsockopt shutdown accept4]) +]) + +AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], +[ + dnl Check prerequisites of the replacement. + gl_CHECK_NEXT_HEADERS([sys/socket.h]) + if test $ac_cv_header_sys_socket_h = yes; then + HAVE_SYS_SOCKET_H=1 + HAVE_WS2TCPIP_H=0 + else + HAVE_SYS_SOCKET_H=0 + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([ws2tcpip.h]) + if test $ac_cv_header_ws2tcpip_h = yes; then + HAVE_WS2TCPIP_H=1 + else + HAVE_WS2TCPIP_H=0 + fi + fi + AC_SUBST([HAVE_SYS_SOCKET_H]) + AC_SUBST([HAVE_WS2TCPIP_H]) +]) + +# Common prerequisites of the replacement and of the +# replacement. +# Sets and substitutes HAVE_WINSOCK2_H. +AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2], +[ + m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) + m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) + AC_CHECK_HEADERS_ONCE([sys/socket.h]) + if test $ac_cv_header_sys_socket_h != yes; then + dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make + dnl the check for those headers unconditional; yet cygwin reports + dnl that the headers are present but cannot be compiled (since on + dnl cygwin, all socket information should come from sys/socket.h). + AC_CHECK_HEADERS([winsock2.h]) + fi + if test "$ac_cv_header_winsock2_h" = yes; then + HAVE_WINSOCK2_H=1 + UNISTD_H_HAVE_WINSOCK2_H=1 + SYS_IOCTL_H_HAVE_WINSOCK2_H=1 + else + HAVE_WINSOCK2_H=0 + fi + AC_SUBST([HAVE_WINSOCK2_H]) +]) + +AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS], +[ + GNULIB_SOCKET=0; AC_SUBST([GNULIB_SOCKET]) + GNULIB_CONNECT=0; AC_SUBST([GNULIB_CONNECT]) + GNULIB_ACCEPT=0; AC_SUBST([GNULIB_ACCEPT]) + GNULIB_BIND=0; AC_SUBST([GNULIB_BIND]) + GNULIB_GETPEERNAME=0; AC_SUBST([GNULIB_GETPEERNAME]) + GNULIB_GETSOCKNAME=0; AC_SUBST([GNULIB_GETSOCKNAME]) + GNULIB_GETSOCKOPT=0; AC_SUBST([GNULIB_GETSOCKOPT]) + GNULIB_LISTEN=0; AC_SUBST([GNULIB_LISTEN]) + GNULIB_RECV=0; AC_SUBST([GNULIB_RECV]) + GNULIB_SEND=0; AC_SUBST([GNULIB_SEND]) + GNULIB_RECVFROM=0; AC_SUBST([GNULIB_RECVFROM]) + GNULIB_SENDTO=0; AC_SUBST([GNULIB_SENDTO]) + GNULIB_SETSOCKOPT=0; AC_SUBST([GNULIB_SETSOCKOPT]) + GNULIB_SHUTDOWN=0; AC_SUBST([GNULIB_SHUTDOWN]) + GNULIB_ACCEPT4=0; AC_SUBST([GNULIB_ACCEPT4]) + HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE]) + HAVE_SA_FAMILY_T=1; AC_SUBST([HAVE_SA_FAMILY_T]) + HAVE_ACCEPT4=1; AC_SUBST([HAVE_ACCEPT4]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sys_stat_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_stat_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sys_stat_h.m4 2007-07-01 14:09:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_stat_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,48 +1,82 @@ -# sys_stat_h.m4 serial 6 -*- Autoconf -*- -dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. +# sys_stat_h.m4 serial 24 -*- Autoconf -*- +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Eric Blake. -dnl Test whether contains lstat and mkdir or must be substituted. +dnl Provide a GNU-like . AC_DEFUN([gl_HEADER_SYS_STAT_H], [ - dnl Check for lstat. Systems that lack it (mingw) also lack symlinks, so - dnl stat is a good replacement. - AC_CHECK_FUNCS_ONCE([lstat]) - if test $ac_cv_func_lstat = yes; then - HAVE_LSTAT=1 - else - HAVE_LSTAT=0 - fi - AC_SUBST([HAVE_LSTAT]) - - dnl Check for mkdir. Mingw has _mkdir(name) in the nonstandard - dnl instead. - AC_CHECK_DECLS([mkdir], - [], - [AC_CHECK_HEADERS([io.h])], - [#include ]) - if test $ac_cv_have_decl_mkdir = yes; then - HAVE_DECL_MKDIR=1 - else - HAVE_DECL_MKDIR=0 - fi - AC_SUBST([HAVE_DECL_MKDIR]) - if test "$ac_cv_header_io_h" = yes; then - HAVE_IO_H=1 - else - HAVE_IO_H=0 - fi - AC_SUBST([HAVE_IO_H]) + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + + dnl For the mkdir substitute. AC_REQUIRE([AC_C_INLINE]) dnl Check for broken stat macros. AC_REQUIRE([AC_HEADER_STAT]) gl_CHECK_NEXT_HEADERS([sys/stat.h]) - SYS_STAT_H='sys/stat.h' - AC_SUBST([SYS_STAT_H]) + + dnl Define types that are supposed to be defined in or + dnl . + AC_CHECK_TYPE([nlink_t], [], + [AC_DEFINE([nlink_t], [int], + [Define to the type of st_nlink in struct stat, or a supertype.])], + [#include + #include ]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat + mknod mknodat stat utimensat]) ]) # gl_HEADER_SYS_STAT_H + +AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR + GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT]) + GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT]) + GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS]) + GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD]) + GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT]) + GNULIB_MKDIRAT=0; AC_SUBST([GNULIB_MKDIRAT]) + GNULIB_MKFIFO=0; AC_SUBST([GNULIB_MKFIFO]) + GNULIB_MKFIFOAT=0; AC_SUBST([GNULIB_MKFIFOAT]) + GNULIB_MKNOD=0; AC_SUBST([GNULIB_MKNOD]) + GNULIB_MKNODAT=0; AC_SUBST([GNULIB_MKNODAT]) + GNULIB_STAT=0; AC_SUBST([GNULIB_STAT]) + GNULIB_UTIMENSAT=0; AC_SUBST([GNULIB_UTIMENSAT]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT]) + HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT]) + HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS]) + HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD]) + HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT]) + HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT]) + HAVE_MKFIFO=1; AC_SUBST([HAVE_MKFIFO]) + HAVE_MKFIFOAT=1; AC_SUBST([HAVE_MKFIFOAT]) + HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD]) + HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT]) + HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT]) + REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) + REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) + REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS]) + REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT]) + REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR]) + REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO]) + REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD]) + REPLACE_STAT=0; AC_SUBST([REPLACE_STAT]) + REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sys_time_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_time_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sys_time_h.m4 2007-07-01 14:09:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_time_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,6 +1,7 @@ # Configure a replacement for . +# serial 6 -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,40 +19,54 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY], [ AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS]) + AC_CHECK_HEADERS_ONCE([sys/time.h]) gl_CHECK_NEXT_HEADERS([sys/time.h]) - if test $ac_cv_header_sys_time_h = yes; then - HAVE_SYS_TIME_H=1 - else + if test $ac_cv_header_sys_time_h != yes; then HAVE_SYS_TIME_H=0 fi - AC_SUBST([HAVE_SYS_TIME_H]) AC_CACHE_CHECK([for struct timeval], [gl_cv_sys_struct_timeval], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [[#if HAVE_SYS_TIME_H - #include - #endif - #include - ]], - [[static struct timeval x; x.tv_sec = x.tv_usec;]])], + [[#if HAVE_SYS_TIME_H + #include + #endif + #include + ]], + [[static struct timeval x; x.tv_sec = x.tv_usec;]])], [gl_cv_sys_struct_timeval=yes], [gl_cv_sys_struct_timeval=no])]) - if test $gl_cv_sys_struct_timeval = yes; then - HAVE_STRUCT_TIMEVAL=1 - else + if test $gl_cv_sys_struct_timeval != yes; then HAVE_STRUCT_TIMEVAL=0 fi - AC_SUBST([HAVE_STRUCT_TIMEVAL]) + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +#if HAVE_SYS_TIME_H +# include +#endif +#include + ]], [gettimeofday]) +]) + +AC_DEFUN([gl_SYS_TIME_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_HEADER_SYS_TIME_H_DEFAULTS], +[ + GNULIB_GETTIMEOFDAY=0; AC_SUBST([GNULIB_GETTIMEOFDAY]) dnl Assume POSIX behavior unless another module says otherwise. - REPLACE_GETTIMEOFDAY=0 - AC_SUBST([REPLACE_GETTIMEOFDAY]) - if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then - SYS_TIME_H=sys/time.h - else - SYS_TIME_H= - fi - AC_SUBST([SYS_TIME_H]) + HAVE_GETTIMEOFDAY=1; AC_SUBST([HAVE_GETTIMEOFDAY]) + HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL]) + HAVE_SYS_TIME_H=1; AC_SUBST([HAVE_SYS_TIME_H]) + REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/sys_wait_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_wait_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/sys_wait_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/sys_wait_h.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,25 @@ +# sys_wait_h.m4 serial 4 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_SYS_WAIT_H], +[ + AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) + + dnl is always overridden, because of GNULIB_POSIXCHECK. + gl_CHECK_NEXT_HEADERS([sys/wait.h]) +]) + +AC_DEFUN([gl_SYS_WAIT_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_SYS_WAIT_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) +]) + +AC_DEFUN([gl_SYS_WAIT_H_DEFAULTS], +[ + dnl Assume proper GNU behavior unless another module says otherwise. +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/tempname.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/tempname.m4 --- gettext-0.17/gettext-tools/gnulib-m4/tempname.m4 2007-01-27 03:22:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/tempname.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,6 +1,6 @@ #serial 3 -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2007, 2009-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/terminfo.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/terminfo.m4 --- gettext-0.17/gettext-tools/gnulib-m4/terminfo.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/terminfo.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# terminfo.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. +# terminfo.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2000-2002, 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -37,25 +37,51 @@ dnl tparm(). dnl Some systems, like mingw, have nothing at all. + dnl Some people want to avoid these libraries, in special situations such + dnl as when cross-compiling. + AC_REQUIRE([gl_CURSES]) + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) - dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([ncurses]) - - dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([termcap]) - - dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([xcurses]) - - dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([curses]) + if test "$gl_curses_allowed" != no; then + + dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([ncurses]) + + dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([termcap]) + + dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([xcurses]) + + dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([curses]) + + else + + LIBNCURSES= + LTLIBNCURSES= + INCNCURSES= + + LIBTERMCAP= + LTLIBTERMCAP= + INCTERMCAP= + + LIBXCURSES= + LTLIBXCURSES= + INCXCURSES= + + LIBCURSES= + LTLIBCURSES= + INCCURSES= + + fi dnl When searching for the terminfo functions, prefer libtermcap over dnl libxcurses and libcurses, because it is smaller. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/thread.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/thread.m4 --- gettext-0.17/gettext-tools/gnulib-m4/thread.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/thread.m4 2010-05-24 10:42:20.000000000 +0000 @@ -0,0 +1,18 @@ +# thread.m4 serial 2 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_THREAD], +[ + AC_REQUIRE([gl_THREADLIB]) + AC_REQUIRE([AC_C_INLINE]) + + if test $gl_threads_api = posix; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBMULTITHREAD" + AC_CHECK_FUNCS([pthread_atfork]) + LIBS="$gl_save_LIBS" + fi +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/time_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/time_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/time_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/time_h.m4 2010-06-03 21:36:15.000000000 +0000 @@ -0,0 +1,109 @@ +# Configure a more-standard replacement for . + +# Copyright (C) 2000-2001, 2003-2007, 2009-2010 Free Software Foundation, Inc. + +# serial 2 + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Written by Paul Eggert and Jim Meyering. + +AC_DEFUN([gl_HEADER_TIME_H], +[ + dnl Use AC_REQUIRE here, so that the default behavior below is expanded + dnl once only, before all statements that occur in other macros. + AC_REQUIRE([gl_HEADER_TIME_H_BODY]) +]) + +AC_DEFUN([gl_HEADER_TIME_H_BODY], +[ + AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) + gl_CHECK_NEXT_HEADERS([time.h]) + AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) +]) + +dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared +dnl in time.h, sys/time.h, or pthread.h. + +AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], +[ + AC_CHECK_HEADERS_ONCE([sys/time.h]) + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_time_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_time_h=yes], + [gl_cv_sys_struct_timespec_in_time_h=no])]) + + TIME_H_DEFINES_STRUCT_TIMESPEC=0 + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 + if test $gl_cv_sys_struct_timespec_in_time_h = yes; then + TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_sys_time_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_sys_time_h=yes], + [gl_cv_sys_struct_timespec_in_sys_time_h=no])]) + if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then + SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 + else + AC_CACHE_CHECK([for struct timespec in ], + [gl_cv_sys_struct_timespec_in_pthread_h], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include + ]], + [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], + [gl_cv_sys_struct_timespec_in_pthread_h=yes], + [gl_cv_sys_struct_timespec_in_pthread_h=no])]) + if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then + PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 + fi + fi + fi + AC_SUBST([TIME_H_DEFINES_STRUCT_TIMESPEC]) + AC_SUBST([SYS_TIME_H_DEFINES_STRUCT_TIMESPEC]) + AC_SUBST([PTHREAD_H_DEFINES_STRUCT_TIMESPEC]) +]) + +AC_DEFUN([gl_TIME_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS], +[ + GNULIB_MKTIME=0; AC_SUBST([GNULIB_MKTIME]) + GNULIB_NANOSLEEP=0; AC_SUBST([GNULIB_NANOSLEEP]) + GNULIB_STRPTIME=0; AC_SUBST([GNULIB_STRPTIME]) + GNULIB_TIMEGM=0; AC_SUBST([GNULIB_TIMEGM]) + GNULIB_TIME_R=0; AC_SUBST([GNULIB_TIME_R]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_LOCALTIME_R=1; AC_SUBST([HAVE_LOCALTIME_R]) + HAVE_NANOSLEEP=1; AC_SUBST([HAVE_NANOSLEEP]) + HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME]) + HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM]) + dnl If another module says to replace or to not replace, do that. + dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK; + dnl this lets maintainers check for portability. + REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; AC_SUBST([REPLACE_LOCALTIME_R]) + REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME]) + REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP]) + REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/tls.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/tls.m4 --- gettext-0.17/gettext-tools/gnulib-m4/tls.m4 2007-01-27 03:22:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/tls.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# tls.m4 serial 1 (gettext-0.15) -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# tls.m4 serial 2 (gettext-0.18) +dnl Copyright (C) 2005, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,5 +8,5 @@ AC_DEFUN([gl_TLS], [ - AC_REQUIRE([gl_LOCK]) + AC_REQUIRE([gl_THREADLIB]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/tmpdir.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/tmpdir.m4 --- gettext-0.17/gettext-tools/gnulib-m4/tmpdir.m4 2007-01-27 03:22:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/tmpdir.m4 2010-05-24 10:42:20.000000000 +0000 @@ -1,5 +1,5 @@ -# tmpdir.m4 serial 2 (gettext-0.15) -dnl Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. +# tmpdir.m4 serial 3 +dnl Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -8,5 +8,5 @@ AC_DEFUN([gt_TMPDIR], [ - AC_CHECK_FUNCS(__secure_getenv) + AC_CHECK_FUNCS([__secure_getenv]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/unionwait.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/unionwait.m4 --- gettext-0.17/gettext-tools/gnulib-m4/unionwait.m4 2006-08-02 13:35:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/unionwait.m4 2010-06-06 12:49:58.000000000 +0000 @@ -13,7 +13,7 @@ AC_CACHE_VAL(gt_cv_union_wait, [dnl AC_TRY_LINK([#include #include ], - [union wait status; int pid; pid = wait (&status); + [union wait status; int pid; pid = wait (&status); #ifdef WEXITSTATUS /* Some POSIXoid systems have both the new-style macros and the old union wait type, and they do not work together. If union wait @@ -29,7 +29,7 @@ pid = waitpid (-1, &status, 0); #endif ], - [gt_cv_union_wait=yes], [gt_cv_union_wait=no])]) + [gt_cv_union_wait=yes], [gt_cv_union_wait=no])]) if test "$gt_cv_union_wait" = yes; then AC_DEFINE(HAVE_UNION_WAIT, 1, [Define if defines the 'union wait' type.]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/unistd_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/unistd_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/unistd_h.m4 2007-07-01 14:09:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/unistd_h.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,5 +1,5 @@ -# unistd_h.m4 serial 9 -dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. +# unistd_h.m4 serial 46 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -11,6 +11,7 @@ dnl Use AC_REQUIRE here, so that the default behavior below is expanded dnl once only, before all statements that occur in other macros. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + AC_REQUIRE([AC_C_INLINE]) gl_CHECK_NEXT_HEADERS([unistd.h]) @@ -21,36 +22,138 @@ HAVE_UNISTD_H=0 fi AC_SUBST([HAVE_UNISTD_H]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include +/* Some systems declare various items in the wrong headers. */ +#ifndef __GLIBC__ +# include +# include +# include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif +#endif + ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat + fsync ftruncate getcwd getdomainname getdtablesize getgroups + gethostname getlogin getlogin_r getpagesize getusershell setusershell + endusershell lchown link linkat lseek pipe2 pread pwrite readlink + readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat + usleep]) ]) AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], [ dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) AC_DEFUN([gl_UNISTD_H_DEFAULTS], [ - GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) - GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) - GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) - GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) - GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) - GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) - GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) - GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) - GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) - GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) + GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN]) + GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE]) + GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2]) + GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3]) + GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON]) + GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS]) + GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT]) + GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR]) + GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT]) + GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC]) + GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE]) + GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD]) + GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME]) + GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE]) + GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS]) + GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME]) + GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) + GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) + GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) + GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) + GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN]) + GNULIB_LINK=0; AC_SUBST([GNULIB_LINK]) + GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT]) + GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK]) + GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2]) + GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD]) + GNULIB_PWRITE=0; AC_SUBST([GNULIB_PWRITE]) + GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK]) + GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT]) + GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR]) + GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP]) + GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK]) + GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT]) + GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R]) + GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT]) + GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE]) + GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK]) + GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT]) + GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP]) + GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE]) dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN]) HAVE_DUP2=1; AC_SUBST([HAVE_DUP2]) + HAVE_DUP3=1; AC_SUBST([HAVE_DUP3]) + HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS]) + HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) + HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) + HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) + HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) + HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME]) + HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) + HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS]) + HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) + HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) + HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) + HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) + HAVE_LINK=1; AC_SUBST([HAVE_LINK]) + HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT]) + HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2]) + HAVE_PREAD=1; AC_SUBST([HAVE_PREAD]) + HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) + HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) + HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) + HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) + HAVE_TTYNAME_R=1; AC_SUBST([HAVE_TTYNAME_R]) + HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT]) + HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) + HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) + HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) + HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) + HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) + HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN]) - REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR]) + REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) + REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) + REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) + REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) + REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) + REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) + REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) + REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK]) + REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD]) + REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) + REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) + REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) + REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) + REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) + REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) + REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) + REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) + REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP]) + REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE]) + UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H]) + UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; + AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/unistd-safer.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/unistd-safer.m4 --- gettext-0.17/gettext-tools/gnulib-m4/unistd-safer.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/unistd-safer.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,13 @@ +#serial 8 +dnl Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_UNISTD_SAFER], +[ + AC_CHECK_FUNCS_ONCE([pipe]) + AC_LIBOBJ([dup-safer]) + AC_LIBOBJ([fd-safer]) + AC_LIBOBJ([pipe-safer]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/unlocked-io.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/unlocked-io.m4 --- gettext-0.17/gettext-tools/gnulib-m4/unlocked-io.m4 2007-01-27 03:22:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/unlocked-io.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,7 +1,6 @@ -# unlocked-io.m4 serial 14 +# unlocked-io.m4 serial 15 -# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. +# Copyright (C) 1998-2006, 2009-2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -17,7 +16,7 @@ AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO], [ - AC_DEFINE([USE_UNLOCKED_IO], 1, + AC_DEFINE([USE_UNLOCKED_IO], [1], [Define to 1 if you want getc etc. to use unlocked I/O if available. Unlocked I/O can improve performance in unithreaded apps, but it is not safe for multithreaded apps.]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/vasnprintf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/vasnprintf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/vasnprintf.m4 2007-11-04 17:53:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/vasnprintf.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,12 +1,11 @@ -# vasnprintf.m4 serial 22 -dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. +# vasnprintf.m4 serial 31 +dnl Copyright (C) 2002-2004, 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_VASNPRINTF], [ - AC_REQUIRE([gl_EOVERFLOW]) AC_CHECK_FUNCS_ONCE([vasnprintf]) if test $ac_cv_func_vasnprintf = no; then gl_REPLACE_VASNPRINTF @@ -21,7 +20,7 @@ AC_LIBOBJ([printf-parse]) AC_LIBOBJ([asnprintf]) if test $ac_cv_func_vasnprintf = yes; then - AC_DEFINE([REPLACE_VASNPRINTF], 1, + AC_DEFINE([REPLACE_VASNPRINTF], [1], [Define if vasnprintf exists but is overridden by gnulib.]) fi gl_PREREQ_PRINTF_ARGS @@ -45,33 +44,48 @@ AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) AC_REQUIRE([AC_TYPE_SIZE_T]) - AC_CHECK_TYPES(ptrdiff_t) + AC_CHECK_TYPE([ptrdiff_t], , + [AC_DEFINE([ptrdiff_t], [long], + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) + ]) AC_REQUIRE([gt_AC_TYPE_INTMAX_T]) ]) # Prerequisites of lib/vasnprintf.c. -AC_DEFUN([gl_PREREQ_VASNPRINTF], +AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF], [ + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([AC_FUNC_ALLOCA]) AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) - AC_CHECK_FUNCS(snprintf wcslen) + AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). AC_CHECK_DECLS([_snprintf], , , [#include ]) + dnl We can avoid a lot of code by assuming that snprintf's return value + dnl conforms to ISO C99. So check that. + AC_REQUIRE([gl_SNPRINTF_RETVAL_C99]) + case "$gl_cv_func_snprintf_retval_c99" in + *yes) + AC_DEFINE([HAVE_SNPRINTF_RETVAL_C99], [1], + [Define if the return value of the snprintf function is the number of + of bytes (excluding the terminating NUL) that would have been produced + if the buffer had been large enough.]) + ;; + esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting 'long double' # arguments. -AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], +AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], [ AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) case "$gl_cv_func_printf_long_double" in *yes) ;; *) - AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; @@ -87,7 +101,7 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for infinite 'double' arguments.]) ;; @@ -108,7 +122,7 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for infinite 'long double' arguments.]) ;; @@ -125,7 +139,7 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, + AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], [1], [Define if the vasnprintf implementation needs special code for the 'a' and 'A' directives.]) AC_CHECK_FUNCS([nl_langinfo]) @@ -141,13 +155,28 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], 1, + AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], [1], [Define if the vasnprintf implementation needs special code for the 'F' directive.]) ;; esac ]) +# Extra prerequisites of lib/vasnprintf.c for supporting the 'ls' directive. +AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_LS], +[ + AC_REQUIRE([gl_PRINTF_DIRECTIVE_LS]) + case "$gl_cv_func_printf_directive_ls" in + *yes) + ;; + *) + AC_DEFINE([NEED_PRINTF_DIRECTIVE_LS], [1], + [Define if the vasnprintf implementation needs special code for + the 'ls' directive.]) + ;; + esac +]) + # Extra prerequisites of lib/vasnprintf.c for supporting the ' flag. AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING], [ @@ -156,13 +185,28 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], 1, + AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], [1], [Define if the vasnprintf implementation needs special code for the ' flag.]) ;; esac ]) +# Extra prerequisites of lib/vasnprintf.c for supporting the '-' flag. +AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST], +[ + AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST]) + case "$gl_cv_func_printf_flag_leftadjust" in + *yes) + ;; + *) + AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], [1], + [Define if the vasnprintf implementation needs special code for the + '-' flag.]) + ;; + esac +]) + # Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag. AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO], [ @@ -171,7 +215,7 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_FLAG_ZERO], 1, + AC_DEFINE([NEED_PRINTF_FLAG_ZERO], [1], [Define if the vasnprintf implementation needs special code for the 0 flag.]) ;; @@ -186,13 +230,13 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], 1, + AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], [1], [Define if the vasnprintf implementation needs special code for supporting large precisions without arbitrary bounds.]) - AC_DEFINE([NEED_PRINTF_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'double' arguments.]) - AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; @@ -208,13 +252,13 @@ *yes) ;; *) - AC_DEFINE([NEED_PRINTF_ENOMEM], 1, + AC_DEFINE([NEED_PRINTF_ENOMEM], [1], [Define if the vasnprintf implementation needs special code for surviving out-of-memory conditions.]) - AC_DEFINE([NEED_PRINTF_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'double' arguments.]) - AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, + AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; @@ -230,7 +274,9 @@ gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE gl_PREREQ_VASNPRINTF_DIRECTIVE_A gl_PREREQ_VASNPRINTF_DIRECTIVE_F + gl_PREREQ_VASNPRINTF_DIRECTIVE_LS gl_PREREQ_VASNPRINTF_FLAG_GROUPING + gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST gl_PREREQ_VASNPRINTF_FLAG_ZERO gl_PREREQ_VASNPRINTF_PRECISION gl_PREREQ_VASNPRINTF_ENOMEM diff -Nru gettext-0.17/gettext-tools/gnulib-m4/vasprintf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/vasprintf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/vasprintf.m4 2007-05-14 00:37:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/vasprintf.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,5 +1,6 @@ -# vasprintf.m4 serial 2 -dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. +# vasprintf.m4 serial 6 +dnl Copyright (C) 2002-2003, 2006-2007, 2009-2010 Free Software Foundation, +dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -15,6 +16,7 @@ AC_DEFUN([gl_REPLACE_VASPRINTF], [ AC_LIBOBJ([vasprintf]) + AC_LIBOBJ([asprintf]) AC_REQUIRE([gl_STDIO_H_DEFAULTS]) if test $ac_cv_func_vasprintf = yes; then REPLACE_VASPRINTF=1 @@ -22,11 +24,23 @@ HAVE_VASPRINTF=0 fi gl_PREREQ_VASPRINTF_H + gl_PREREQ_VASPRINTF + gl_PREREQ_ASPRINTF ]) # Prerequisites of the vasprintf portion of lib/stdio.h. AC_DEFUN([gl_PREREQ_VASPRINTF_H], [ dnl Persuade glibc to declare asprintf() and vasprintf(). - AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) +]) + +# Prerequisites of lib/vasprintf.c. +AC_DEFUN([gl_PREREQ_VASPRINTF], +[ +]) + +# Prerequisites of lib/asprintf.c. +AC_DEFUN([gl_PREREQ_ASPRINTF], +[ ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/vsnprintf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/vsnprintf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/vsnprintf.m4 2007-10-26 00:52:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/vsnprintf.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,5 +1,5 @@ -# vsnprintf.m4 serial 4 -dnl Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc. +# vsnprintf.m4 serial 5 +dnl Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,8 +7,17 @@ AC_DEFUN([gl_FUNC_VSNPRINTF], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + gl_cv_func_vsnprintf_usable=no AC_CHECK_FUNCS([vsnprintf]) - if test $ac_cv_func_vsnprintf = no; then + if test $ac_cv_func_vsnprintf = yes; then + gl_SNPRINTF_SIZE1 + case "$gl_cv_func_snprintf_size1" in + *yes) + gl_cv_func_vsnprintf_usable=yes + ;; + esac + fi + if test $gl_cv_func_vsnprintf_usable = no; then gl_REPLACE_VSNPRINTF fi AC_CHECK_DECLS_ONCE([vsnprintf]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wait-process.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wait-process.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wait-process.m4 2007-01-27 03:22:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wait-process.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,14 +1,13 @@ -# wait-process.m4 serial 2 -dnl Copyright (C) 2003 Free Software Foundation, Inc. +# wait-process.m4 serial 5 +dnl Copyright (C) 2003, 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_WAIT_PROCESS], [ - dnl Prerequisites of lib/wait-process.h. - AC_CHECK_HEADERS_ONCE(unistd.h) dnl Prerequisites of lib/wait-process.c. + AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T]) - AC_CHECK_FUNCS(waitid) + AC_CHECK_FUNCS([waitid]) ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/warn-on-use.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/warn-on-use.m4 --- gettext-0.17/gettext-tools/gnulib-m4/warn-on-use.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/warn-on-use.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,45 @@ +# warn-on-use.m4 serial 2 +dnl Copyright (C) 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# gl_WARN_ON_USE_PREPARE(INCLUDES, NAMES) +# --------------------------------------- +# For each whitespace-separated element in the list of NAMES, define +# HAVE_RAW_DECL_name if the function has a declaration among INCLUDES +# even after being undefined as a macro. +# +# See warn-on-use.h for some hints on how to poison function names, as +# well as ideas on poisoning global variables and macros. NAMES may +# include global variables, but remember that only functions work with +# _GL_WARN_ON_USE. Typically, INCLUDES only needs to list a single +# header, but if the replacement header pulls in other headers because +# some systems declare functions in the wrong header, then INCLUDES +# should do likewise. +# +# If you assume C89, then it is generally safe to assume declarations +# for functions declared in that standard (such as gets) without +# needing gl_WARN_ON_USE_PREPARE. +AC_DEFUN([gl_WARN_ON_USE_PREPARE], +[ + m4_foreach_w([gl_decl], [$2], + [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])), + [Define to 1 if ]m4_defn([gl_decl])[ is declared even after + undefining macros.])])dnl + for gl_func in m4_flatten([$2]); do + AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl + AC_CACHE_CHECK([whether $gl_func is declared without a macro], + gl_Symbol, + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1], +[@%:@undef $gl_func + (void) $gl_func;])], + [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])]) + AS_VAR_IF(gl_Symbol, [yes], + [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) + dnl shortcut - if the raw declaration exists, then set a cache + dnl variable to allow skipping any later AC_CHECK_DECL efforts + eval ac_cv_have_decl_$gl_func=yes]) + AS_VAR_POPDEF([gl_Symbol])dnl + done +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wchar_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wchar_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wchar_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wchar_h.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,152 @@ +dnl A placeholder for ISO C99 , for platforms that have issues. + +dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Eric Blake. + +# wchar_h.m4 serial 33 + +AC_DEFUN([gl_WCHAR_H], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) + dnl Prepare for creating substitute . + dnl Check for (missing in Linux uClibc when built without wide + dnl character support). + dnl is always overridden, because of GNULIB_POSIXCHECK. + AC_CHECK_HEADERS_ONCE([wchar.h]) + gl_CHECK_NEXT_HEADERS([wchar.h]) + if test $ac_cv_header_wchar_h = yes; then + HAVE_WCHAR_H=1 + else + HAVE_WCHAR_H=0 + fi + AC_SUBST([HAVE_WCHAR_H]) + + AC_REQUIRE([gt_TYPE_WINT_T]) + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + AC_SUBST([HAVE_WINT_T]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[ +/* Some systems require additional headers. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif +#include + ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb + wcsrtombs wcsnrtombs wcwidth]) +]) + +dnl Check whether is usable at all. +AC_DEFUN([gl_WCHAR_H_INLINE_OK], +[ + dnl Test whether suffers due to the transition from '__inline' to + dnl 'gnu_inline'. See + dnl and . In summary, + dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and + dnl the option -std=c99 or -std=gnu99, leads to a broken . + AC_CACHE_CHECK([whether uses 'inline' correctly], + [gl_cv_header_wchar_h_correct_inline], + [gl_cv_header_wchar_h_correct_inline=yes + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[#define wcstod renamed_wcstod +#include +extern int zero (void); +int main () { return zero(); } +]])]) + if AC_TRY_EVAL([ac_compile]); then + mv conftest.$ac_objext conftest1.$ac_objext + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[#define wcstod renamed_wcstod +#include +int zero (void) { return 0; } +]])]) + if AC_TRY_EVAL([ac_compile]); then + mv conftest.$ac_objext conftest2.$ac_objext + if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then + : + else + gl_cv_header_wchar_h_correct_inline=no + fi + fi + fi + rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext + ]) + if test $gl_cv_header_wchar_h_correct_inline = no; then + AC_MSG_ERROR([ cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). +This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in +C99 mode. You have four options: + - Add the flag -fgnu89-inline to CC and reconfigure, or + - Fix your include files, using parts of + , or + - Use a gcc version older than 4.3, or + - Don't use the flags -std=c99 or -std=gnu99. +Configuration aborted.]) + fi +]) + +dnl Unconditionally enables the replacement of . +AC_DEFUN([gl_REPLACE_WCHAR_H], +[ + dnl This is a no-op, because is always overridden. + : +]) + +AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_WCHAR_H_DEFAULTS], +[ + GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC]) + GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB]) + GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT]) + GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC]) + GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN]) + GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS]) + GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS]) + GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB]) + GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS]) + GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS]) + GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) + HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) + HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC]) + HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN]) + HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS]) + HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS]) + HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB]) + HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS]) + HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS]) + HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) + HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) + REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) + REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) + REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB]) + REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT]) + REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC]) + REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN]) + REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS]) + REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS]) + REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB]) + REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS]) + REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS]) + REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wchar.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wchar.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wchar.m4 2007-09-01 13:12:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wchar.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,54 +0,0 @@ -dnl A placeholder for ISO C99 , for platforms that have issues. - -dnl Copyright (C) 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Written by Eric Blake. - -# wchar.m4 serial 4 - -AC_DEFUN([gl_WCHAR_H], -[ - AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) - AC_CACHE_CHECK([whether is standalone], - [gl_cv_header_wchar_h_standalone], - [AC_COMPILE_IFELSE([[#include -wchar_t w;]], - [gl_cv_header_wchar_h_standalone=yes], - [gl_cv_header_wchar_h_standalone=no])]) - if test $gl_cv_header_wchar_h_standalone != yes; then - WCHAR_H=wchar.h - fi - - dnl Prepare for creating substitute . - dnl Do it always: WCHAR_H may be empty here but can be set later. - dnl Check for (missing in Linux uClibc when built without wide - dnl character support). - AC_CHECK_HEADERS_ONCE([wchar.h]) - if test $ac_cv_header_wchar_h = yes; then - HAVE_WCHAR_H=1 - else - HAVE_WCHAR_H=0 - fi - AC_SUBST([HAVE_WCHAR_H]) - gl_CHECK_NEXT_HEADERS([wchar.h]) -]) - -AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], -[ - dnl Use AC_REQUIRE here, so that the default settings are expanded once only. - AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) - GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 -]) - -AC_DEFUN([gl_WCHAR_H_DEFAULTS], -[ - GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) - dnl Assume proper GNU behavior unless another module says otherwise. - HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) - REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) - WCHAR_H= - AC_SUBST([WCHAR_H]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wctob.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wctob.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wctob.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wctob.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,114 @@ +# wctob.m4 serial 5 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_WCTOB], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_CHECK_FUNCS_ONCE([wctob]) + if test $ac_cv_func_wctob = no; then + HAVE_DECL_WCTOB=0 + gl_REPLACE_WCHAR_H + AC_LIBOBJ([wctob]) + gl_PREREQ_WCTOB + else + + dnl Solaris 9 has the wctob() function but it does not work. + dnl Cygwin 1.7.2 has the wctob() function but it clobbers caller-owned + dnl registers, see . + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether wctob works], + [gl_cv_func_wctob_works], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on Solaris <= 9 and Cygwin. + solaris2.[1-9] | solaris2.[1-9].* | cygwin*) + gl_cv_func_wctob_works="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_wctob_works="guessing yes" ;; + esac +changequote([,])dnl + case "$host_os" in + cygwin*) + AC_TRY_RUN([ +#include +#include + +register long global __asm__ ("%ebx"); + +int main () +{ + setlocale (LC_ALL, "en_US.UTF-8"); + + global = 0x12345678; + if (wctob (0x00FC) != -1) + return 1; + if (global != 0x12345678) + return 2; + return 0; +}], [:], [gl_cv_func_wctob_works=no], [:]) + ;; + esac + if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + wchar_t wc; + + if (mbtowc (&wc, "\374", 1) == 1) + if (wctob (wc) != (unsigned char) '\374') + return 1; + } + return 0; +}], + [gl_cv_func_wctob_works=yes], + [gl_cv_func_wctob_works=no], + [:]) + fi + ]) + case "$gl_cv_func_wctob_works" in + *yes) ;; + *) REPLACE_WCTOB=1 ;; + esac + if test $REPLACE_WCTOB = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([wctob]) + gl_PREREQ_WCTOB + else + + dnl IRIX 6.5 has the wctob() function but does not declare it. + AC_CHECK_DECLS([wctob], [], [], [ +/* Tru64 with Desktop Toolkit C has a bug: must be included before + . + BSD/OS 4.0.1 has a bug: , and must be included + before . */ +#include +#include +#include +#include +]) + if test $ac_cv_have_decl_wctob != yes; then + HAVE_DECL_WCTOB=0 + gl_REPLACE_WCHAR_H + fi + fi + fi +]) + +# Prerequisites of lib/wctob.c. +AC_DEFUN([gl_PREREQ_WCTOB], [ + : +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wctype_h.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wctype_h.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wctype_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wctype_h.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,76 @@ +# wctype_h.m4 serial 6 + +dnl A placeholder for ISO C99 , for platforms that lack it. + +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Written by Paul Eggert. + +AC_DEFUN([gl_WCTYPE_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_CHECK_FUNCS_ONCE([iswcntrl]) + if test $ac_cv_func_iswcntrl = yes; then + HAVE_ISWCNTRL=1 + else + HAVE_ISWCNTRL=0 + fi + AC_SUBST([HAVE_ISWCNTRL]) + AC_CHECK_FUNCS_ONCE([iswblank]) + if test $ac_cv_func_iswblank = yes; then + HAVE_ISWBLANK=1 + else + HAVE_ISWBLANK=0 + fi + AC_SUBST([HAVE_ISWBLANK]) + AC_CHECK_HEADERS_ONCE([wctype.h]) + AC_REQUIRE([AC_C_INLINE]) + + AC_REQUIRE([gt_TYPE_WINT_T]) + if test $gt_cv_c_wint_t = yes; then + HAVE_WINT_T=1 + else + HAVE_WINT_T=0 + fi + AC_SUBST([HAVE_WINT_T]) + + if test $ac_cv_header_wctype_h = yes; then + if test $ac_cv_func_iswcntrl = yes; then + dnl Linux libc5 has an iswprint function that returns 0 for all arguments. + dnl The other functions are likely broken in the same way. + AC_CACHE_CHECK([whether iswcntrl works], [gl_cv_func_iswcntrl_works], + [ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include + #include + #include + #include + #include + int main () { return iswprint ('x') == 0; }]])], + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include + #if __GNU_LIBRARY__ == 1 + Linux libc5 i18n is broken. + #endif]], [])], + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) + ]) + ]) + fi + gl_CHECK_NEXT_HEADERS([wctype.h]) + HAVE_WCTYPE_H=1 + else + HAVE_WCTYPE_H=0 + fi + AC_SUBST([HAVE_WCTYPE_H]) + + if test "$gl_cv_func_iswcntrl_works" = no; then + REPLACE_ISWCNTRL=1 + else + REPLACE_ISWCNTRL=0 + fi + AC_SUBST([REPLACE_ISWCNTRL]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wctype.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wctype.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wctype.m4 2007-07-01 14:09:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wctype.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ -dnl A placeholder for ISO C99 , for platforms that lack it. - -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Written by Paul Eggert. - -AC_DEFUN([gl_WCTYPE_H], -[ - AC_CHECK_FUNCS_ONCE([iswcntrl]) - if test $ac_cv_func_iswcntrl = yes; then - HAVE_ISWCNTRL=1 - else - HAVE_ISWCNTRL=0 - fi - AC_SUBST([HAVE_ISWCNTRL]) - AC_CHECK_HEADERS_ONCE([wctype.h]) - AC_REQUIRE([AC_C_INLINE]) - - AC_REQUIRE([gt_TYPE_WINT_T]) - if test $gt_cv_c_wint_t = yes; then - HAVE_WINT_T=1 - else - HAVE_WINT_T=0 - fi - AC_SUBST([HAVE_WINT_T]) - - WCTYPE_H=wctype.h - if test $ac_cv_header_wctype_h = yes; then - if test $ac_cv_func_iswcntrl = yes; then - WCTYPE_H= - fi - dnl Compute NEXT_WCTYPE_H even if WCTYPE_H is empty, - dnl for the benefit of builds from non-distclean directories. - gl_CHECK_NEXT_HEADERS([wctype.h]) - HAVE_WCTYPE_H=1 - else - HAVE_WCTYPE_H=0 - fi - AC_SUBST([HAVE_WCTYPE_H]) - AC_SUBST([WCTYPE_H]) -]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/wcwidth.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/wcwidth.m4 --- gettext-0.17/gettext-tools/gnulib-m4/wcwidth.m4 2007-10-23 00:42:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/wcwidth.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,5 +1,5 @@ -# wcwidth.m4 serial 13 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# wcwidth.m4 serial 16 +dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -7,6 +7,7 @@ AC_DEFUN([gl_FUNC_WCWIDTH], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Persuade glibc to declare wcwidth(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) @@ -33,9 +34,7 @@ HAVE_DECL_WCWIDTH=0 fi - if test $ac_cv_func_wcwidth = no; then - REPLACE_WCWIDTH=1 - else + if test $ac_cv_func_wcwidth = yes; then dnl On MacOS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1. dnl On OSF/1 5.1, wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1. dnl This leads to bugs in 'ls' (coreutils). @@ -68,18 +67,28 @@ return 1; return 0; }], [gl_cv_func_wcwidth_works=yes], [gl_cv_func_wcwidth_works=no], - [gl_cv_func_wcwidth_works="guessing no"]) + [ +changequote(,)dnl + case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_wcwidth_works="guessing yes";; + *) gl_cv_func_wcwidth_works="guessing no";; + esac +changequote([,])dnl + ]) ]) case "$gl_cv_func_wcwidth_works" in *yes) ;; *no) REPLACE_WCWIDTH=1 ;; esac fi - if test $REPLACE_WCWIDTH = 1; then + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then AC_LIBOBJ([wcwidth]) fi - - if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then - WCHAR_H=wchar.h + if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \ + || test $HAVE_DECL_WCWIDTH = 0; then + gl_REPLACE_WCHAR_H fi + dnl We don't substitute HAVE_WCWIDTH. We assume that if the system does not + dnl have the wcwidth function, then it does not declare it. ]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/write.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/write.m4 --- gettext-0.17/gettext-tools/gnulib-m4/write.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/write.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,20 @@ +# write.m4 serial 1 +dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_WRITE], +[ + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + dnl This ifdef is just an optimization, to avoid performing a configure + dnl check whose result is not used. It does not make the test of + dnl GNULIB_UNISTD_H_SIGPIPE or GNULIB_SIGPIPE redundant. + m4_ifdef([gl_SIGNAL_SIGPIPE], [ + gl_SIGNAL_SIGPIPE + if test $gl_cv_header_signal_h_SIGPIPE != yes; then + REPLACE_WRITE=1 + AC_LIBOBJ([write]) + fi + ]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-m4/xvasprintf.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/xvasprintf.m4 --- gettext-0.17/gettext-tools/gnulib-m4/xvasprintf.m4 2007-01-27 03:22:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/xvasprintf.m4 2010-05-24 10:42:21.000000000 +0000 @@ -1,5 +1,5 @@ # xvasprintf.m4 serial 1 -dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. diff -Nru gettext-0.17/gettext-tools/gnulib-m4/yield.m4 gettext-0.18.1.1/gettext-tools/gnulib-m4/yield.m4 --- gettext-0.17/gettext-tools/gnulib-m4/yield.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-m4/yield.m4 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,19 @@ +# yield.m4 serial 2 +dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_YIELD], +[ + AC_REQUIRE([gl_THREADLIB]) + dnl On some systems, sched_yield is in librt, rather than in libpthread. + YIELD_LIB= + if test $gl_threads_api = posix; then + dnl Solaris has sched_yield in librt, not in libpthread or libc. + AC_CHECK_LIB([rt], [sched_yield], [YIELD_LIB=-lrt], + [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. + AC_CHECK_LIB([posix4], [sched_yield], [YIELD_LIB=-lposix4])]) + fi + AC_SUBST([YIELD_LIB]) +]) diff -Nru gettext-0.17/gettext-tools/gnulib-tests/ChangeLog gettext-0.18.1.1/gettext-tools/gnulib-tests/ChangeLog --- gettext-0.17/gettext-tools/gnulib-tests/ChangeLog 2007-11-06 23:27:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,20 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-24 Bruno Haible + + Fix compilation failure on systems without . + * Makefile.am (AM_CPPFLAGS): Add -I../intl. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2009-05-21 Bruno Haible + + * Makefile.am (AUTOMAKE_OPTIONS): Add 1.11 and color-tests. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/gnulib-tests/getpagesize.c gettext-0.18.1.1/gettext-tools/gnulib-tests/getpagesize.c --- gettext-0.17/gettext-tools/gnulib-tests/getpagesize.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/getpagesize.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,39 @@ +/* getpagesize emulation for systems where it cannot be done in a C macro. + + Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible and Martin Lambers. */ + +#include + +/* Specification. */ +#include + +/* This implementation is only for native Win32 systems. */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +# define WIN32_LEAN_AND_MEAN +# include + +int +getpagesize (void) +{ + SYSTEM_INFO system_info; + GetSystemInfo (&system_info); + return system_info.dwPageSize; +} + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-tests/glthread/thread.c gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/thread.c --- gettext-0.17/gettext-tools/gnulib-tests/glthread/thread.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/thread.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,218 @@ +/* Creating and controlling threads. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +#include + +/* Specification. */ +#include "glthread/thread.h" + +#include +#include "glthread/lock.h" + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +#include + +/* -------------------------- gl_thread_t datatype -------------------------- */ + +/* The Thread-Local Storage (TLS) key that allows to access each thread's + 'struct gl_thread_struct *' pointer. */ +static DWORD self_key = (DWORD)-1; + +/* Initializes self_key. This function must only be called once. */ +static void +do_init_self_key (void) +{ + self_key = TlsAlloc (); + /* If this fails, we're hosed. */ + if (self_key == (DWORD)-1) + abort (); +} + +/* Initializes self_key. */ +static void +init_self_key (void) +{ + gl_once_define(static, once) + gl_once (once, do_init_self_key); +} + +/* This structure contains information about a thread. + It is stored in TLS under key self_key. */ +struct gl_thread_struct +{ + /* Fields for managing the handle. */ + HANDLE volatile handle; + CRITICAL_SECTION handle_lock; + /* Fields for managing the exit value. */ + void * volatile result; + /* Fields for managing the thread start. */ + void * (*func) (void *); + void *arg; +}; + +/* Return a real HANDLE object for the current thread. */ +static inline HANDLE +get_current_thread_handle (void) +{ + HANDLE this_handle; + + /* GetCurrentThread() returns a pseudo-handle, i.e. only a symbolic + identifier, not a real handle. */ + if (!DuplicateHandle (GetCurrentProcess (), GetCurrentThread (), + GetCurrentProcess (), &this_handle, + 0, FALSE, DUPLICATE_SAME_ACCESS)) + abort (); + return this_handle; +} + +gl_thread_t +gl_thread_self_func (void) +{ + gl_thread_t thread; + + if (self_key == (DWORD)-1) + init_self_key (); + thread = TlsGetValue (self_key); + if (thread == NULL) + { + /* This happens only in threads that have not been created through + glthread_create(), such as the main thread. */ + for (;;) + { + thread = + (struct gl_thread_struct *) + malloc (sizeof (struct gl_thread_struct)); + if (thread != NULL) + break; + /* Memory allocation failed. There is not much we can do. Have to + busy-loop, waiting for the availability of memory. */ + Sleep (1); + } + + thread->handle = get_current_thread_handle (); + InitializeCriticalSection (&thread->handle_lock); + thread->result = NULL; /* just to be deterministic */ + TlsSetValue (self_key, thread); + } + return thread; +} + +/* The main function of a freshly creating thread. It's a wrapper around + the FUNC and ARG arguments passed to glthread_create_func. */ +static unsigned int WINAPI +wrapper_func (void *varg) +{ + struct gl_thread_struct *thread = (struct gl_thread_struct *)varg; + + EnterCriticalSection (&thread->handle_lock); + /* Create a new handle for the thread only if the parent thread did not yet + fill in the handle. */ + if (thread->handle == NULL) + thread->handle = get_current_thread_handle (); + LeaveCriticalSection (&thread->handle_lock); + + if (self_key == (DWORD)-1) + init_self_key (); + TlsSetValue (self_key, thread); + + /* Run the thread. Store the exit value if the thread was not terminated + otherwise. */ + thread->result = thread->func (thread->arg); + return 0; +} + +int +glthread_create_func (gl_thread_t *threadp, void * (*func) (void *), void *arg) +{ + struct gl_thread_struct *thread = + (struct gl_thread_struct *) malloc (sizeof (struct gl_thread_struct)); + if (thread == NULL) + return ENOMEM; + thread->handle = NULL; + InitializeCriticalSection (&thread->handle_lock); + thread->result = NULL; /* just to be deterministic */ + thread->func = func; + thread->arg = arg; + + { + unsigned int thread_id; + HANDLE thread_handle; + + thread_handle = (HANDLE) + _beginthreadex (NULL, 100000, wrapper_func, thread, 0, &thread_id); + /* calls CreateThread with the same arguments */ + if (thread_handle == NULL) + { + DeleteCriticalSection (&thread->handle_lock); + free (thread); + return EAGAIN; + } + + EnterCriticalSection (&thread->handle_lock); + if (thread->handle == NULL) + thread->handle = thread_handle; + else + /* thread->handle was already set by the thread itself. */ + CloseHandle (thread_handle); + LeaveCriticalSection (&thread->handle_lock); + + *threadp = thread; + return 0; + } +} + +int +glthread_join_func (gl_thread_t thread, void **retvalp) +{ + if (thread == NULL) + return EINVAL; + + if (thread == gl_thread_self ()) + return EDEADLK; + + if (WaitForSingleObject (thread->handle, INFINITE) == WAIT_FAILED) + return EINVAL; + + if (retvalp != NULL) + *retvalp = thread->result; + + DeleteCriticalSection (&thread->handle_lock); + CloseHandle (thread->handle); + free (thread); + + return 0; +} + +int +gl_thread_exit_func (void *retval) +{ + gl_thread_t thread = gl_thread_self (); + thread->result = retval; + _endthreadex (0); /* calls ExitThread (0) */ + abort (); +} + +#endif + +/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/glthread/thread.h gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/thread.h --- gettext-0.17/gettext-tools/gnulib-tests/glthread/thread.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/thread.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,376 @@ +/* Creating and controlling threads. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +/* This file contains primitives for creating and controlling threads. + + Thread data type: gl_thread_t. + + Creating a thread: + thread = gl_thread_create (func, arg); + Or with control of error handling: + err = glthread_create (&thread, func, arg); + extern int glthread_create (gl_thread_t *result, + void *(*func) (void *), void *arg); + + Querying and changing the signal mask of a thread (not supported on all + platforms): + gl_thread_sigmask (how, newmask, oldmask); + Or with control of error handling: + err = glthread_sigmask (how, newmask, oldmask); + extern int glthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask); + + Waiting for termination of another thread: + gl_thread_join (thread, &return_value); + Or with control of error handling: + err = glthread_join (thread, &return_value); + extern int glthread_join (gl_thread_t thread, void **return_value_ptr); + + Getting a reference to the current thread: + current = gl_thread_self (); + extern gl_thread_t gl_thread_self (void); + + Terminating the current thread: + gl_thread_exit (return_value); + extern void gl_thread_exit (void *return_value) __attribute__ ((noreturn)); + + Requesting custom code to be executed at fork() time(not supported on all + platforms): + gl_thread_atfork (prepare_func, parent_func, child_func); + Or with control of error handling: + err = glthread_atfork (prepare_func, parent_func, child_func); + extern int glthread_atfork (void (*prepare_func) (void), + void (*parent_func) (void), + void (*child_func) (void)); + Note that even on platforms where this is supported, use of fork() and + threads together is problematic, see + + */ + + +#ifndef _GLTHREAD_THREAD_H +#define _GLTHREAD_THREAD_H + +#include +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The pthread_in_use() detection needs to be done at runtime. */ +# define pthread_in_use() \ + glthread_in_use () +extern int glthread_in_use (void); + +# endif + +# if USE_POSIX_THREADS_WEAK + +/* Use weak references to the POSIX threads library. */ + +/* Weak references avoid dragging in external libraries if the other parts + of the program don't use them. Here we use them, because we don't want + every program that uses libintl to depend on libpthread. This assumes + that libpthread would not be loaded after libintl; i.e. if libintl is + loaded first, by an executable that does not depend on libpthread, and + then a module is dynamically loaded that depends on libpthread, libintl + will not be multithread-safe. */ + +/* The way to test at runtime whether libpthread is present is to test + whether a function pointer's value, such as &pthread_mutex_init, is + non-NULL. However, some versions of GCC have a bug through which, in + PIC mode, &foo != NULL always evaluates to true if there is a direct + call to foo(...) in the same function. To avoid this, we test the + address of a function in libpthread that we don't use. */ + +# pragma weak pthread_create +# pragma weak pthread_sigmask +# pragma weak pthread_join +# ifndef pthread_self +# pragma weak pthread_self +# endif +# pragma weak pthread_exit +# if HAVE_PTHREAD_ATFORK +# pragma weak pthread_atfork +# endif + +# if !PTHREAD_IN_USE_DETECTION_HARD +# pragma weak pthread_cancel +# define pthread_in_use() (pthread_cancel != NULL) +# endif + +# else + +# if !PTHREAD_IN_USE_DETECTION_HARD +# define pthread_in_use() 1 +# endif + +# endif + +/* -------------------------- gl_thread_t datatype -------------------------- */ + +/* This choice of gl_thread_t assumes that + pthread_equal (a, b) is equivalent to ((a) == (b)). + This is the case on all platforms in use in 2008. */ +typedef pthread_t gl_thread_t; +# define glthread_create(THREADP, FUNC, ARG) \ + (pthread_in_use () ? pthread_create (THREADP, NULL, FUNC, ARG) : ENOSYS) +# define glthread_sigmask(HOW, SET, OSET) \ + (pthread_in_use () ? pthread_sigmask (HOW, SET, OSET) : 0) +# define glthread_join(THREAD, RETVALP) \ + (pthread_in_use () ? pthread_join (THREAD, RETVALP) : 0) +# define gl_thread_self() \ + (pthread_in_use () ? (void *) pthread_self () : NULL) +# define gl_thread_exit(RETVAL) \ + (pthread_in_use () ? pthread_exit (RETVAL) : 0) + +# if HAVE_PTHREAD_ATFORK +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) \ + (pthread_in_use () ? pthread_atfork (PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) : 0) +# else +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 +# endif + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_PTH_THREADS_WEAK + +/* Use weak references to the GNU Pth threads library. */ + +# pragma weak pth_spawn +# pragma weak pth_sigmask +# pragma weak pth_join +# pragma weak pth_self +# pragma weak pth_exit + +# pragma weak pth_cancel +# define pth_in_use() (pth_cancel != NULL) + +# else + +# define pth_in_use() 1 + +# endif +/* -------------------------- gl_thread_t datatype -------------------------- */ + +typedef pth_t gl_thread_t; +# define glthread_create(THREADP, FUNC, ARG) \ + (pth_in_use () ? ((*(THREADP) = pth_spawn (NULL, FUNC, ARG)) ? 0 : errno) : 0) +# define glthread_sigmask(HOW, SET, OSET) \ + (pth_in_use () && !pth_sigmask (HOW, SET, OSET) ? errno : 0) +# define glthread_join(THREAD, RETVALP) \ + (pth_in_use () && !pth_join (THREAD, RETVALP) ? errno : 0) +# define gl_thread_self() \ + (pth_in_use () ? (void *) pth_self () : 0) +# define gl_thread_exit(RETVAL) \ + (pth_in_use () ? pth_exit (RETVAL) : 0) +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_SOLARIS_THREADS_WEAK + +/* Use weak references to the old Solaris threads library. */ + +# pragma weak thr_create +# pragma weak thr_join +# pragma weak thr_self +# pragma weak thr_exit + +# pragma weak thr_suspend +# define thread_in_use() (thr_suspend != NULL) + +# else + +# define thread_in_use() 1 + +# endif + +/* -------------------------- gl_thread_t datatype -------------------------- */ + +typedef thread_t gl_thread_t; +# define glthread_create(THREADP, FUNC, ARG) \ + (thread_in_use () ? thr_create (NULL, 0, FUNC, ARG, 0, THREADP) : 0) +# define glthread_sigmask(HOW, SET, OSET) \ + (thread_in_use () ? sigprocmask (HOW, SET, OSET) : 0) +# define glthread_join(THREAD, RETVALP) \ + (thread_in_use () ? thr_join (THREAD, NULL, RETVALP) : 0) +# define gl_thread_self() \ + (thread_in_use () ? (void *) thr_self () : 0) +# define gl_thread_exit(RETVAL) \ + (thread_in_use () ? thr_exit (RETVAL) : 0) +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +/* -------------------------- gl_thread_t datatype -------------------------- */ + +/* The gl_thread_t is a pointer to a structure in memory. + Why not the thread handle? If it were the thread handle, it would be hard + to implement gl_thread_self() (since GetCurrentThread () returns a pseudo- + handle, DuplicateHandle (GetCurrentThread ()) returns a handle that must be + closed afterwards, and there is no function for quickly retrieving a thread + handle from its id). + Why not the thread id? I tried it. It did not work: Sometimes ids appeared + that did not belong to running threads, and glthread_join failed with ESRCH. + */ +typedef struct gl_thread_struct *gl_thread_t; +# define glthread_create(THREADP, FUNC, ARG) \ + glthread_create_func (THREADP, FUNC, ARG) +# define glthread_sigmask(HOW, SET, OSET) \ + /* unsupported */ 0 +# define glthread_join(THREAD, RETVALP) \ + glthread_join_func (THREAD, RETVALP) +# define gl_thread_self() \ + gl_thread_self_func () +# define gl_thread_exit(RETVAL) \ + gl_thread_exit_func (RETVAL) +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 +extern int glthread_create_func (gl_thread_t *threadp, void * (*func) (void *), void *arg); +extern int glthread_join_func (gl_thread_t thread, void **retvalp); +extern gl_thread_t gl_thread_self_func (void); +extern int gl_thread_exit_func (void *retval); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +typedef int gl_thread_t; +# define glthread_create(THREADP, FUNC, ARG) ENOSYS +# define glthread_sigmask(HOW, SET, OSET) 0 +# define glthread_join(THREAD, RETVALP) 0 +# define gl_thread_self() NULL +# define gl_thread_exit(RETVAL) 0 +# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 + +#endif + +/* ========================================================================= */ + +/* Macros with built-in error handling. */ + +#ifdef __cplusplus +extern "C" { +#endif + +static inline gl_thread_t +gl_thread_create (void *(*func) (void *arg), void *arg) +{ + gl_thread_t thread; + int ret; + + ret = glthread_create (&thread, func, arg); + if (ret != 0) + abort (); + return thread; +} +#define gl_thread_sigmask(HOW, SET, OSET) \ + do \ + { \ + if (glthread_sigmask (HOW, SET, OSET)) \ + abort (); \ + } \ + while (0) +#define gl_thread_join(THREAD, RETVAL) \ + do \ + { \ + if (glthread_join (THREAD, RETVAL)) \ + abort (); \ + } \ + while (0) +#define gl_thread_atfork(PREPARE, PARENT, CHILD) \ + do \ + { \ + if (glthread_atfork (PREPARE, PARENT, CHILD)) \ + abort (); \ + } \ + while (0) + +#ifdef __cplusplus +} +#endif + +#endif /* _GLTHREAD_THREAD_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/glthread/yield.h gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/yield.h --- gettext-0.17/gettext-tools/gnulib-tests/glthread/yield.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/glthread/yield.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,121 @@ +/* Yielding the processor to other threads and processes. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This file contains a primitive for yielding the processor to other threads. + extern void gl_thread_yield (void); + */ + +#ifndef _GLTHREAD_YIELD_H +#define _GLTHREAD_YIELD_H + +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# define gl_thread_yield() \ + sched_yield () + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# define gl_thread_yield() \ + pth_yield (NULL) + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# define gl_thread_yield() \ + thr_yield () + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# define gl_thread_yield() \ + Sleep (0) + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +# define gl_thread_yield() 0 + +#endif + +/* ========================================================================= */ + +#endif /* _GLTHREAD_YIELD_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/ignore-value.h gettext-0.18.1.1/gettext-tools/gnulib-tests/ignore-value.h --- gettext-0.17/gettext-tools/gnulib-tests/ignore-value.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/ignore-value.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,37 @@ +/* ignore a function return without a compiler warning + + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Jim Meyering. */ + +/* Use these functions to avoid a warning when using a function declared with + gcc's warn_unused_result attribute, but for which you really do want to + ignore the result. Traditionally, people have used a "(void)" cast to + indicate that a function's return value is deliberately unused. However, + if the function is declared with __attribute__((warn_unused_result)), + gcc issues a warning even with the cast. + + Caution: most of the time, you really should heed gcc's warning, and + check the return value. However, in those exceptional cases in which + you're sure you know what you're doing, use this function. + + For the record, here's one of the ignorable warnings: + "copy.c:233: warning: ignoring return value of 'fchown', + declared with attribute warn_unused_result". */ + +static inline void ignore_value (int i) { (void) i; } +static inline void ignore_ptr (void* p) { (void) p; } +/* FIXME: what about aggregate types? */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/init.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/init.sh --- gettext-0.17/gettext-tools/gnulib-tests/init.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/init.sh 2010-05-24 10:42:21.000000000 +0000 @@ -0,0 +1,386 @@ +# source this file; set up for tests + +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Using this file in a test +# ========================= +# +# The typical skeleton of a test looks like this: +# +# #!/bin/sh +# . "${srcdir=.}/init.sh"; path_prepend_ . +# Execute some commands. +# Note that these commands are executed in a subdirectory, therefore you +# need to prepend "../" to relative filenames in the build directory. +# Note that the "path_prepend_ ." is useful only if the body of your +# test invokes programs residing in the initial directory. +# For example, if the programs you want to test are in src/, and this test +# script is named tests/test-1, then you would use "path_prepend_ ../src", +# or perhaps export PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" +# to all tests via automake's TESTS_ENVIRONMENT. +# Set the exit code 0 for success, 77 for skipped, or 1 or other for failure. +# Use the skip_ and fail_ functions to print a diagnostic and then exit +# with the corresponding exit code. +# Exit $? + +# Executing a test that uses this file +# ==================================== +# +# Running a single test: +# $ make check TESTS=test-foo.sh +# +# Running a single test, with verbose output: +# $ make check TESTS=test-foo.sh VERBOSE=yes +# +# Running a single test, with single-stepping: +# 1. Go into a sub-shell: +# $ bash +# 2. Set relevant environment variables from TESTS_ENVIRONMENT in the +# Makefile: +# $ export srcdir=../../tests # this is an example +# 3. Execute the commands from the test, copy&pasting them one by one: +# $ . "$srcdir/init.sh"; path_prepend_ . +# ... +# 4. Finally +# $ exit + +# We require $(...) support unconditionally. +# We require a few additional shell features only when $EXEEXT is nonempty, +# in order to support automatic $EXEEXT emulation: +# - hyphen-containing alias names +# - we prefer to use ${var#...} substitution, rather than having +# to work around lack of support for that feature. +# The following code attempts to find a shell with support for these features. +# If the current shell passes the test, we're done. Otherwise, test other +# shells until we find one that passes. If one is found, re-exec it. +# If no acceptable shell is found, skip the current test. +# +# Use "9" to indicate success (rather than 0), in case some shell acts +# like Solaris 10's /bin/sh but exits successfully instead of with status 2. + +gl_shell_test_script_=' +test $(echo y) = y || exit 1 +test -z "$EXEEXT" && exit 9 +shopt -s expand_aliases +alias a-b="echo zoo" +v=abx + test ${v%x} = ab \ + && test ${v#a} = bx \ + && test $(a-b) = zoo \ + && exit 9 +' + +if test "x$1" = "x--no-reexec"; then + shift +else + # 'eval'ing the above code makes Solaris 10's /bin/sh exit with $? set to 2. + # It does not evaluate any of the code after the "unexpected" `('. Thus, + # we must run it in a subshell. + ( eval "$gl_shell_test_script_" ) > /dev/null 2>&1 + if test $? = 9; then + : # The current shell is adequate. No re-exec required. + else + # Search for a shell that meets our requirements. + for re_shell_ in "${CONFIG_SHELL:-no_shell}" /bin/sh bash dash zsh pdksh fail + do + test "$re_shell_" = no_shell && continue + test "$re_shell_" = fail && skip_ failed to find an adequate shell + "$re_shell_" -c "$gl_shell_test_script_" 2>/dev/null + if test $? = 9; then + # Found an acceptable shell. + exec "$re_shell_" "$0" --no-reexec "$@" + echo "$ME_: exec failed" 1>&2 + exit 127 + fi + done + fi +fi + +test -n "$EXEEXT" && shopt -s expand_aliases + +# Enable glibc's malloc-perturbing option. +# This is cheap and useful for exposing code that depends on the fact that +# malloc-related functions often return memory that is mostly zeroed. +# If you have the time and cycles, use valgrind to do an even better job. +: ${MALLOC_PERTURB_=87} +export MALLOC_PERTURB_ + +# We use a trap below for cleanup. This requires us to go through +# hoops to get the right exit status transported through the handler. +# So use `Exit STATUS' instead of `exit STATUS' inside of the tests. +# Turn off errexit here so that we don't trip the bug with OSF1/Tru64 +# sh inside this function. +Exit () { set +e; (exit $1); exit $1; } + +# Print warnings (e.g., about skipped and failed tests) to this file number. +# Override by defining to say, 9, in init.cfg, and putting say, +# "export ...ENVVAR_SETTINGS...; exec 9>&2; $(SHELL)" in the definition +# of TESTS_ENVIRONMENT in your tests/Makefile.am file. +# This is useful when using automake's parallel tests mode, to print +# the reason for skip/failure to console, rather than to the .log files. +: ${stderr_fileno_=2} + +warn_() { echo "$@" 1>&$stderr_fileno_; } +fail_() { warn_ "$ME_: failed test: $@"; Exit 1; } +skip_() { warn_ "$ME_: skipped test: $@"; Exit 77; } +framework_failure_() { warn_ "$ME_: set-up failure: $@"; Exit 1; } + +# This is a stub function that is run upon trap (upon regular exit and +# interrupt). Override it with a per-test function, e.g., to unmount +# a partition, or to undo any other global state changes. +cleanup_() { :; } + +if ( diff --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then + compare() { diff -u "$@"; } +elif ( cmp --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then + compare() { cmp -s "$@"; } +else + compare() { cmp "$@"; } +fi + +# An arbitrary prefix to help distinguish test directories. +testdir_prefix_() { printf gt; } + +# Run the user-overridable cleanup_ function, remove the temporary +# directory and exit with the incoming value of $?. +remove_tmp_() +{ + __st=$? + cleanup_ + # cd out of the directory we're about to remove + cd "$initial_cwd_" || cd / || cd /tmp + chmod -R u+rwx "$test_dir_" + # If removal fails and exit status was to be 0, then change it to 1. + rm -rf "$test_dir_" || { test $__st = 0 && __st=1; } + exit $__st +} + +# Given a directory name, DIR, if every entry in it that matches *.exe +# contains only the specified bytes (see the case stmt below), then print +# a space-separated list of those names and return 0. Otherwise, don't +# print anything and return 1. Naming constraints apply also to DIR. +find_exe_basenames_() +{ + feb_dir_=$1 + feb_fail_=0 + feb_result_= + feb_sp_= + for feb_file_ in $feb_dir_/*.exe; do + case $feb_file_ in + *[!-a-zA-Z/0-9_.+]*) feb_fail_=1; break;; + *) # Remove leading file name components as well as the .exe suffix. + feb_file_=${feb_file_##*/} + feb_file_=${feb_file_%.exe} + feb_result_="$feb_result_$feb_sp_$feb_file_";; + esac + feb_sp_=' ' + done + test $feb_fail_ = 0 && printf %s "$feb_result_" + return $feb_fail_ +} + +# Consider the files in directory, $1. +# For each file name of the form PROG.exe, create an alias named +# PROG that simply invokes PROG.exe, then return 0. If any selected +# file name or the directory name, $1, contains an unexpected character, +# define no function and return 1. +create_exe_shims_() +{ + case $EXEEXT in + '') return 0 ;; + .exe) ;; + *) echo "$0: unexpected \$EXEEXT value: $EXEEXT" 1>&2; return 1 ;; + esac + + base_names_=`find_exe_basenames_ $1` \ + || { echo "$0 (exe_shim): skipping directory: $1" 1>&2; return 1; } + + if test -n "$base_names_"; then + for base_ in $base_names_; do + alias "$base_"="$base_$EXEEXT" + done + fi + + return 0 +} + +# Use this function to prepend to PATH an absolute name for each +# specified, possibly-$initial_cwd_-relative, directory. +path_prepend_() +{ + while test $# != 0; do + path_dir_=$1 + case $path_dir_ in + '') fail_ "invalid path dir: '$1'";; + /*) abs_path_dir_=$path_dir_;; + *) abs_path_dir_=`cd "$initial_cwd_/$path_dir_" && echo "$PWD"` \ + || fail_ "invalid path dir: $path_dir_";; + esac + case $abs_path_dir_ in + *:*) fail_ "invalid path dir: '$abs_path_dir_'";; + esac + PATH="$abs_path_dir_:$PATH" + + # Create an alias, FOO, for each FOO.exe in this directory. + create_exe_shims_ "$abs_path_dir_" \ + || fail_ "something failed (above): $abs_path_dir_" + shift + done + export PATH +} + +setup_() +{ + test "$VERBOSE" = yes && set -x + + initial_cwd_=$PWD + ME_=`expr "./$0" : '.*/\(.*\)$'` + + pfx_=`testdir_prefix_` + test_dir_=`mktempd_ "$initial_cwd_" "$pfx_-$ME_.XXXX"` \ + || fail_ "failed to create temporary directory in $initial_cwd_" + cd "$test_dir_" + + # These trap statements ensure that the temporary directory, $test_dir_, + # is removed upon exit as well as upon receipt of any of the listed signals. + trap remove_tmp_ 0 + for sig_ in 1 2 3 13 15; do + eval "trap 'Exit $(expr $sig_ + 128)' $sig_" + done +} + +# Create a temporary directory, much like mktemp -d does. +# Written by Jim Meyering. +# +# Usage: mktempd_ /tmp phoey.XXXXXXXXXX +# +# First, try to use the mktemp program. +# Failing that, we'll roll our own mktemp-like function: +# - try to get random bytes from /dev/urandom +# - failing that, generate output from a combination of quickly-varying +# sources and gzip. Ignore non-varying gzip header, and extract +# "random" bits from there. +# - given those bits, map to file-name bytes using tr, and try to create +# the desired directory. +# - make only $MAX_TRIES_ attempts + +# Helper function. Print $N pseudo-random bytes from a-zA-Z0-9. +rand_bytes_() +{ + n_=$1 + + # Maybe try openssl rand -base64 $n_prime_|tr '+/=\012' abcd first? + # But if they have openssl, they probably have mktemp, too. + + chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 + dev_rand_=/dev/urandom + if test -r "$dev_rand_"; then + # Note: 256-length($chars_) == 194; 3 copies of $chars_ is 186 + 8 = 194. + dd ibs=$n_ count=1 if=$dev_rand_ 2>/dev/null \ + | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_ + return + fi + + n_plus_50_=`expr $n_ + 50` + cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n' + data_=` (eval "$cmds_") 2>&1 | gzip ` + + # Ensure that $data_ has length at least 50+$n_ + while :; do + len_=`echo "$data_"|wc -c` + test $n_plus_50_ -le $len_ && break; + data_=` (echo "$data_"; eval "$cmds_") 2>&1 | gzip ` + done + + echo "$data_" \ + | dd bs=1 skip=50 count=$n_ 2>/dev/null \ + | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_ +} + +mktempd_() +{ + case $# in + 2);; + *) fail_ "Usage: $ME DIR TEMPLATE";; + esac + + destdir_=$1 + template_=$2 + + MAX_TRIES_=4 + + # Disallow any trailing slash on specified destdir: + # it would subvert the post-mktemp "case"-based destdir test. + case $destdir_ in + /) ;; + */) fail_ "invalid destination dir: remove trailing slash(es)";; + esac + + case $template_ in + *XXXX) ;; + *) fail_ "invalid template: $template_ (must have a suffix of at least 4 X's)";; + esac + + fail=0 + + # First, try to use mktemp. + d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ + || fail=1 + + # The resulting name must be in the specified directory. + case $d in "$destdir_"*);; *) fail=1;; esac + + # It must have created the directory. + test -d "$d" || fail=1 + + # It must have 0700 permissions. Handle sticky "S" bits. + perms=`ls -dgo "$d" 2>/dev/null|tr S -` || fail=1 + case $perms in drwx------*) ;; *) fail=1;; esac + + test $fail = 0 && { + echo "$d" + return + } + + # If we reach this point, we'll have to create a directory manually. + + # Get a copy of the template without its suffix of X's. + base_template_=`echo "$template_"|sed 's/XX*$//'` + + # Calculate how many X's we've just removed. + template_length_=`echo "$template_" | wc -c` + nx_=`echo "$base_template_" | wc -c` + nx_=`expr $template_length_ - $nx_` + + err_= + i_=1 + while :; do + X_=`rand_bytes_ $nx_` + candidate_dir_="$destdir_/$base_template_$X_" + err_=`mkdir -m 0700 "$candidate_dir_" 2>&1` \ + && { echo "$candidate_dir_"; return; } + test $MAX_TRIES_ -le $i_ && break; + i_=`expr $i_ + 1` + done + fail_ "$err_" +} + +# If you want to override the testdir_prefix_ function, +# or to add more utility functions, use this file. +test -f "$srcdir/init.cfg" \ + && . "$srcdir/init.cfg" + +setup_ "$@" diff -Nru gettext-0.17/gettext-tools/gnulib-tests/macros.h gettext-0.18.1.1/gettext-tools/gnulib-tests/macros.h --- gettext-0.17/gettext-tools/gnulib-tests/macros.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/macros.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,64 @@ +/* Common macros used by gnulib tests. + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + +/* This file contains macros that are used by many gnulib tests. + Put here only frequently used macros, say, used by 10 tests or more. */ + +#include +#include + +/* Define ASSERT_STREAM before including this file if ASSERT must + target a stream other than stderr. */ +#ifndef ASSERT_STREAM +# define ASSERT_STREAM stderr +#endif + +/* ASSERT (condition); + verifies that the specified condition is fulfilled. If not, a message + is printed to ASSERT_STREAM if defined (defaulting to stderr if + undefined) and the program is terminated with an error code. + + This macro has the following properties: + - The programmer specifies the expected condition, not the failure + condition. This simplifies thinking. + - The condition is tested always, regardless of compilation flags. + (Unlike the macro from .) + - On Unix platforms, the tester can debug the test program with a + debugger (provided core dumps are enabled: "ulimit -c unlimited"). + - For the sake of platforms where no debugger is available (such as + some mingw systems), an error message is printed on the error + stream that includes the source location of the ASSERT invocation. + */ +#define ASSERT(expr) \ + do \ + { \ + if (!(expr)) \ + { \ + fprintf (ASSERT_STREAM, "%s:%d: assertion failed\n", \ + __FILE__, __LINE__); \ + fflush (ASSERT_STREAM); \ + abort (); \ + } \ + } \ + while (0) + +/* SIZEOF (array) + returns the number of elements of an array. It works for arrays that are + declared outside functions and for local variables of array type. It does + *not* work for function parameters of array type, because they are actually + parameters of pointer type. */ +#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) diff -Nru gettext-0.17/gettext-tools/gnulib-tests/Makefile.am gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.am --- gettext-0.17/gettext-tools/gnulib-tests/Makefile.am 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/gnulib-tests subdirectory of GNU gettext -## Copyright (C) 2007 Free Software Foundation, Inc. +## Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,3 +18,8 @@ # Rules generated and collected by gnulib-tool. include Makefile.gnulib + +AUTOMAKE_OPTIONS += 1.11 color-tests + +# Ensure that test-quotearg.c finds libintl.h. +AM_CPPFLAGS += -I../intl diff -Nru gettext-0.17/gettext-tools/gnulib-tests/Makefile.gnulib gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.gnulib --- gettext-0.17/gettext-tools/gnulib-tests/Makefile.gnulib 2007-10-27 15:39:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.gnulib 2010-06-03 21:36:45.000000000 +0000 @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -10,16 +10,17 @@ # # Generated by gnulib-tool. -AUTOMAKE_OPTIONS = 1.5 foreign +AUTOMAKE_OPTIONS = 1.5 foreign subdir-objects -ACLOCAL_AMFLAGS = -I ../gnulib-m4 - -SUBDIRS = +SUBDIRS = . TESTS = +XFAIL_TESTS = TESTS_ENVIRONMENT = noinst_PROGRAMS = check_PROGRAMS = noinst_HEADERS = +noinst_LIBRARIES = +check_LIBRARIES = libtests.a EXTRA_DIST = BUILT_SOURCES = SUFFIXES = @@ -30,11 +31,42 @@ MAINTAINERCLEANFILES = AM_CPPFLAGS = \ + -D@gltests_WITNESS@=1 \ -I. -I$(srcdir) \ -I.. -I$(srcdir)/.. \ -I../gnulib-lib -I$(srcdir)/../gnulib-lib -LDADD = ../gnulib-lib/libgettextlib.la +LDADD = libtests.a ../gnulib-lib/libgettextlib.la libtests.a $(LIBTESTS_LIBDEPS) + +libtests_a_SOURCES = +libtests_a_LIBADD = $(gltests_LIBOBJS) +libtests_a_DEPENDENCIES = $(gltests_LIBOBJS) +EXTRA_libtests_a_SOURCES = +AM_LIBTOOLFLAGS = --preserve-dup-deps + +TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' + +## begin gnulib module acl-tests + +TESTS += test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh +TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL) +check_PROGRAMS += test-file-has-acl test-set-mode-acl test-copy-acl test-sameacls +test_file_has_acl_LDADD = $(LDADD) $(LIB_ACL) +test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +EXTRA_DIST += test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh test-file-has-acl.c test-set-mode-acl.c test-copy-acl.c test-sameacls.c macros.h + +## end gnulib module acl-tests + +## begin gnulib module alignof-tests + +TESTS += test-alignof +check_PROGRAMS += test-alignof + +EXTRA_DIST += test-alignof.c + +## end gnulib module alignof-tests ## begin gnulib module alloca-opt-tests @@ -45,13 +77,45 @@ ## end gnulib module alloca-opt-tests +## begin gnulib module areadlink-tests + +TESTS += test-areadlink +check_PROGRAMS += test-areadlink +EXTRA_DIST += test-areadlink.h test-areadlink.c macros.h + +## end gnulib module areadlink-tests + +## begin gnulib module arg-nonnull + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += arg-nonnull.h +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t + +ARG_NONNULL_H=arg-nonnull.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/arg-nonnull.h + +## end gnulib module arg-nonnull + ## begin gnulib module argmatch-tests TESTS += test-argmatch check_PROGRAMS += test-argmatch test_argmatch_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += test-argmatch.c +EXTRA_DIST += test-argmatch.c macros.h ## end gnulib module argmatch-tests @@ -59,28 +123,25 @@ TESTS += test-array_list check_PROGRAMS += test-array_list -test_array_list_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += test-array_list.c +EXTRA_DIST += test-array_list.c macros.h ## end gnulib module array-list-tests ## begin gnulib module atexit-tests TESTS += test-atexit.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-atexit -EXTRA_DIST += test-atexit.sh test-atexit.c +EXTRA_DIST += init.sh signature.h test-atexit.sh test-atexit.c ## end gnulib module atexit-tests ## begin gnulib module binary-io-tests TESTS += test-binary-io.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' check_PROGRAMS += test-binary-io -EXTRA_DIST += test-binary-io.sh test-binary-io.c +EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h ## end gnulib module binary-io-tests @@ -88,26 +149,49 @@ TESTS += test-byteswap check_PROGRAMS += test-byteswap - -EXTRA_DIST += test-byteswap.c +EXTRA_DIST += test-byteswap.c macros.h ## end gnulib module byteswap-tests +## begin gnulib module c++defs + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/c++defs.h + +## end gnulib module c++defs + ## begin gnulib module c-ctype-tests TESTS += test-c-ctype check_PROGRAMS += test-c-ctype -EXTRA_DIST += test-c-ctype.c +EXTRA_DIST += test-c-ctype.c macros.h ## end gnulib module c-ctype-tests ## begin gnulib module c-strcase-tests TESTS += test-c-strcase.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' +TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp -EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c +EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h ## end gnulib module c-strcase-tests @@ -116,7 +200,7 @@ TESTS += test-c-strcasestr check_PROGRAMS += test-c-strcasestr -EXTRA_DIST += test-c-strcasestr.c +EXTRA_DIST += test-c-strcasestr.c macros.h ## end gnulib module c-strcasestr-tests @@ -125,35 +209,92 @@ TESTS += test-c-strstr check_PROGRAMS += test-c-strstr -EXTRA_DIST += test-c-strstr.c +EXTRA_DIST += test-c-strstr.c macros.h ## end gnulib module c-strstr-tests ## begin gnulib module canonicalize-lgpl-tests -TESTS += test-canonicalize-lgpl.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' +TESTS += test-canonicalize-lgpl check_PROGRAMS += test-canonicalize-lgpl -test_canonicalize_lgpl_LDADD = $(LDADD) -EXTRA_DIST += test-canonicalize-lgpl.sh test-canonicalize-lgpl.c +EXTRA_DIST += test-canonicalize-lgpl.c signature.h macros.h ## end gnulib module canonicalize-lgpl-tests +## begin gnulib module cloexec-tests + +TESTS += test-cloexec +check_PROGRAMS += test-cloexec +EXTRA_DIST += test-cloexec.c macros.h + +## end gnulib module cloexec-tests + +## begin gnulib module copy-file-tests + +TESTS += test-copy-file.sh +TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL) +check_PROGRAMS += test-copy-file +test_copy_file_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +EXTRA_DIST += test-copy-file.sh test-copy-file.c macros.h + +## end gnulib module copy-file-tests + +## begin gnulib module dup2-tests + +TESTS += test-dup2 +check_PROGRAMS += test-dup2 +EXTRA_DIST += test-dup2.c signature.h macros.h + +## end gnulib module dup2-tests + +## begin gnulib module environ-tests + +TESTS += test-environ +check_PROGRAMS += test-environ + +EXTRA_DIST += test-environ.c + +## end gnulib module environ-tests + +## begin gnulib module errno-tests + +TESTS += test-errno +check_PROGRAMS += test-errno + +EXTRA_DIST += test-errno.c + +## end gnulib module errno-tests + +## begin gnulib module fcntl-h-tests + +TESTS += test-fcntl-h +check_PROGRAMS += test-fcntl-h +EXTRA_DIST += test-fcntl-h.c + +## end gnulib module fcntl-h-tests + ## begin gnulib module fcntl-tests TESTS += test-fcntl check_PROGRAMS += test-fcntl - -EXTRA_DIST += test-fcntl.c +EXTRA_DIST += test-fcntl.c signature.h macros.h ## end gnulib module fcntl-tests +## begin gnulib module fnmatch-tests + +TESTS += test-fnmatch +check_PROGRAMS += test-fnmatch +EXTRA_DIST += test-fnmatch.c signature.h macros.h + +## end gnulib module fnmatch-tests + ## begin gnulib module fopen-tests TESTS += test-fopen check_PROGRAMS += test-fopen -EXTRA_DIST += test-fopen.c +EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h ## end gnulib module fopen-tests @@ -162,7 +303,7 @@ TESTS += test-fstrcmp check_PROGRAMS += test-fstrcmp test_fstrcmp_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) -EXTRA_DIST += test-fstrcmp.c +EXTRA_DIST += test-fstrcmp.c macros.h ## end gnulib module fstrcmp-tests @@ -171,44 +312,83 @@ TESTS += test-getdelim check_PROGRAMS += test-getdelim MOSTLYCLEANFILES += test-getdelim.txt -EXTRA_DIST += test-getdelim.c +EXTRA_DIST += test-getdelim.c signature.h macros.h ## end gnulib module getdelim-tests +## begin gnulib module getdtablesize-tests + +TESTS += test-getdtablesize +check_PROGRAMS += test-getdtablesize +EXTRA_DIST += test-getdtablesize.c signature.h macros.h + +## end gnulib module getdtablesize-tests + ## begin gnulib module getline-tests TESTS += test-getline check_PROGRAMS += test-getline MOSTLYCLEANFILES += test-getline.txt -EXTRA_DIST += test-getline.c +EXTRA_DIST += test-getline.c signature.h macros.h ## end gnulib module getline-tests +## begin gnulib module getopt-posix-tests + +TESTS += test-getopt +check_PROGRAMS += test-getopt +test_getopt_LDADD = $(LDADD) $(LIBINTL) +EXTRA_DIST += macros.h signature.h test-getopt.c test-getopt.h test-getopt_long.h + +## end gnulib module getopt-posix-tests + +## begin gnulib module getpagesize + + +EXTRA_DIST += getpagesize.c + +EXTRA_libtests_a_SOURCES += getpagesize.c + +## end gnulib module getpagesize + ## begin gnulib module gettimeofday-tests TESTS += test-gettimeofday check_PROGRAMS += test-gettimeofday -EXTRA_DIST += test-gettimeofday.c +EXTRA_DIST += signature.h test-gettimeofday.c ## end gnulib module gettimeofday-tests +## begin gnulib module iconv-h-tests + +TESTS += test-iconv-h +check_PROGRAMS += test-iconv-h +EXTRA_DIST += test-iconv-h.c + +## end gnulib module iconv-h-tests + ## begin gnulib module iconv-tests TESTS += test-iconv check_PROGRAMS += test-iconv test_iconv_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += test-iconv.c +EXTRA_DIST += test-iconv.c signature.h macros.h ## end gnulib module iconv-tests +## begin gnulib module ignore-value + +libtests_a_SOURCES += ignore-value.h + +## end gnulib module ignore-value + ## begin gnulib module linkedhash-list-tests TESTS += test-linkedhash_list check_PROGRAMS += test-linkedhash_list -test_linkedhash_list_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += test-linkedhash_list.c +EXTRA_DIST += test-linkedhash_list.c macros.h ## end gnulib module linkedhash-list-tests @@ -216,7 +396,6 @@ TESTS += test-locale check_PROGRAMS += test-locale - EXTRA_DIST += test-locale.c ## end gnulib module locale-tests @@ -227,7 +406,7 @@ check_PROGRAMS += test-localename test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ -EXTRA_DIST += test-localename.c +EXTRA_DIST += test-localename.c macros.h ## end gnulib module localename-tests @@ -235,11 +414,19 @@ TESTS += test-lock check_PROGRAMS += test-lock -test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ EXTRA_DIST += test-lock.c ## end gnulib module lock-tests +## begin gnulib module lstat-tests + +TESTS += test-lstat +check_PROGRAMS += test-lstat +EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h + +## end gnulib module lstat-tests + ## begin gnulib module malloca-tests TESTS += test-malloca @@ -249,32 +436,78 @@ ## end gnulib module malloca-tests +## begin gnulib module mbrtowc-tests + +TESTS += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh +TESTS_ENVIRONMENT += \ + LOCALE_FR='@LOCALE_FR@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ + LOCALE_JA='@LOCALE_JA@' \ + LOCALE_ZH_CN='@LOCALE_ZH_CN@' +check_PROGRAMS += test-mbrtowc + +EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc.c signature.h macros.h + +## end gnulib module mbrtowc-tests + +## begin gnulib module mbsinit-tests + +TESTS += test-mbsinit.sh +TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' +check_PROGRAMS += test-mbsinit + +EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h + +## end gnulib module mbsinit-tests + +## begin gnulib module mbsrtowcs-tests + +TESTS += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh +TESTS_ENVIRONMENT += \ + LOCALE_FR='@LOCALE_FR@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ + LOCALE_JA='@LOCALE_JA@' \ + LOCALE_ZH_CN='@LOCALE_ZH_CN@' +check_PROGRAMS += test-mbsrtowcs + +EXTRA_DIST += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh test-mbsrtowcs.c signature.h macros.h + +## end gnulib module mbsrtowcs-tests + ## begin gnulib module mbsstr-tests TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' +TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3 -EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c +EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c macros.h ## end gnulib module mbsstr-tests +## begin gnulib module memchr-tests + +TESTS += test-memchr +check_PROGRAMS += test-memchr +EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h + +## end gnulib module memchr-tests + ## begin gnulib module moo-tests -test-moo-root.h test-moo-root.c root.priv.h root.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-root.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-root.oo.c $(srcdir)/test-moo-root.oo.h +test-moo-root.h test-moo-root.c root.priv.h root.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-root.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-root.oo.c $(srcdir)/test-moo-root.oo.h -test-moo-sub1.h test-moo-sub1.c sub1.priv.h sub1.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub1.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub1.oo.c $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h +test-moo-sub1.h test-moo-sub1.c sub1.priv.h sub1.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub1.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub1.oo.c $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h -test-moo-sub2.h test-moo-sub2.c sub2.priv.h sub2.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub2.oo.h test-moo-sub2.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub2.oo.c $(srcdir)/test-moo-sub2.oo.h $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h +test-moo-sub2.h test-moo-sub2.c sub2.priv.h sub2.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub2.oo.h test-moo-sub2.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub2.oo.c $(srcdir)/test-moo-sub2.oo.h $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h -test-moo-aroot.h test-moo-aroot.c aroot.priv.h aroot.vt.h : $(top_srcdir)/build-aux/moopp test-moo-aroot.oo.h test-moo-aroot.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-aroot.oo.c $(srcdir)/test-moo-aroot.oo.h +test-moo-aroot.h test-moo-aroot.c aroot.priv.h aroot.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-aroot.oo.h test-moo-aroot.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-aroot.oo.c $(srcdir)/test-moo-aroot.oo.h -test-moo-asub1.h test-moo-asub1.c asub1.priv.h asub1.vt.h : $(top_srcdir)/build-aux/moopp test-moo-aroot.oo.h test-moo-asub1.oo.h test-moo-asub1.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-asub1.oo.c $(srcdir)/test-moo-asub1.oo.h $(srcdir)/test-moo-aroot.oo.h +test-moo-asub1.h test-moo-asub1.c asub1.priv.h asub1.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-aroot.oo.h test-moo-asub1.oo.h test-moo-asub1.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-asub1.oo.c $(srcdir)/test-moo-asub1.oo.h $(srcdir)/test-moo-aroot.oo.h EXTRA_DIST += test-moo-root.oo.h test-moo-root.oo.c test-moo-sub1.oo.h test-moo-sub1.oo.c test-moo-sub2.oo.h test-moo-sub2.oo.c test-moo-aroot.oo.h test-moo-aroot.oo.c test-moo-asub1.oo.h test-moo-asub1.oo.c test-moo-assign.c @@ -284,34 +517,213 @@ TESTS += test-open check_PROGRAMS += test-open - -EXTRA_DIST += test-open.c +EXTRA_DIST += test-open.h test-open.c signature.h macros.h ## end gnulib module open-tests +## begin gnulib module pipe-filter-ii-tests + +TESTS += test-pipe-filter-ii1.sh test-pipe-filter-ii2.sh +check_PROGRAMS += test-pipe-filter-ii1 test-pipe-filter-ii2-main test-pipe-filter-ii2-child +test_pipe_filter_ii1_LDADD = $(LDADD) @LIBINTL@ +test_pipe_filter_ii2_main_LDADD = $(LDADD) @LIBINTL@ +EXTRA_DIST += test-pipe-filter-ii1.sh test-pipe-filter-ii1.c test-vasnprintf-posix.c test-pipe-filter-ii2.sh test-pipe-filter-ii2-main.c test-pipe-filter-ii2-child.c macros.h + +## end gnulib module pipe-filter-ii-tests + +## begin gnulib module pipe-tests + +TESTS += test-pipe.sh +check_PROGRAMS += test-pipe +test_pipe_LDADD = $(LDADD) @LIBINTL@ +EXTRA_DIST += test-pipe.sh test-pipe.c macros.h + +## end gnulib module pipe-tests + +## begin gnulib module pipe2-tests + +TESTS += test-pipe2 +check_PROGRAMS += test-pipe2 +EXTRA_DIST += test-pipe2.c signature.h macros.h + +## end gnulib module pipe2-tests + +## begin gnulib module posix_spawnp-tests + +if POSIX_SPAWN_PORTED +TESTS += test-posix_spawn1 test-posix_spawn2 +check_PROGRAMS += test-posix_spawn1 test-posix_spawn2 + +BUILT_SOURCES += test-posix_spawn1.sh +test-posix_spawn1.sh: test-posix_spawn1.in.sh + $(AM_V_GEN)rm -f $@-t $@ && \ + cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t + +BUILT_SOURCES += test-posix_spawn2.sh +test-posix_spawn2.sh: test-posix_spawn2.in.sh + $(AM_V_GEN)rm -f $@-t $@ && \ + cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t +endif +EXTRA_DIST += test-posix_spawn1.c test-posix_spawn1.in.sh test-posix_spawn2.c test-posix_spawn2.in.sh signature.h + +## end gnulib module posix_spawnp-tests + +## begin gnulib module putenv + + +EXTRA_DIST += putenv.c + +EXTRA_libtests_a_SOURCES += putenv.c + +## end gnulib module putenv + +## begin gnulib module quotearg-simple-tests + +TESTS += test-quotearg-simple +check_PROGRAMS += test-quotearg-simple +test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ +EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h + +## end gnulib module quotearg-simple-tests + +## begin gnulib module rawmemchr-tests + +TESTS += test-rawmemchr +check_PROGRAMS += test-rawmemchr +EXTRA_DIST += test-rawmemchr.c signature.h macros.h + +## end gnulib module rawmemchr-tests + +## begin gnulib module read-file + + +EXTRA_DIST += read-file.c read-file.h + +EXTRA_libtests_a_SOURCES += read-file.c + +## end gnulib module read-file + +## begin gnulib module read-file-tests + +TESTS += test-read-file +check_PROGRAMS += test-read-file +EXTRA_DIST += test-read-file.c + +## end gnulib module read-file-tests + +## begin gnulib module readlink-tests + +TESTS += test-readlink +check_PROGRAMS += test-readlink +EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h + +## end gnulib module readlink-tests + +## begin gnulib module rmdir-tests + +TESTS += test-rmdir +check_PROGRAMS += test-rmdir +EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h + +## end gnulib module rmdir-tests + +## begin gnulib module same-inode + + +EXTRA_DIST += same-inode.h + +## end gnulib module same-inode + +## begin gnulib module sched-tests + +TESTS += test-sched +check_PROGRAMS += test-sched +EXTRA_DIST += test-sched.c + +## end gnulib module sched-tests + +## begin gnulib module setenv-tests + +TESTS += test-setenv +check_PROGRAMS += test-setenv +EXTRA_DIST += test-setenv.c signature.h macros.h + +## end gnulib module setenv-tests + +## begin gnulib module sigaction-tests + +TESTS += test-sigaction +check_PROGRAMS += test-sigaction +EXTRA_DIST += test-sigaction.c signature.h macros.h + +## end gnulib module sigaction-tests + +## begin gnulib module signal-tests + +TESTS += test-signal +check_PROGRAMS += test-signal +EXTRA_DIST += test-signal.c + +## end gnulib module signal-tests + +## begin gnulib module sigpipe-tests + +TESTS += test-sigpipe.sh +check_PROGRAMS += test-sigpipe + +EXTRA_DIST += test-sigpipe.c test-sigpipe.sh + +## end gnulib module sigpipe-tests + ## begin gnulib module snprintf-tests TESTS += test-snprintf check_PROGRAMS += test-snprintf -EXTRA_DIST += test-snprintf.c +EXTRA_DIST += test-snprintf.c signature.h macros.h ## end gnulib module snprintf-tests +## begin gnulib module spawn-tests + +TESTS += test-spawn +check_PROGRAMS += test-spawn +EXTRA_DIST += test-spawn.c + +## end gnulib module spawn-tests + +## begin gnulib module stat-tests + +TESTS += test-stat +check_PROGRAMS += test-stat +EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h + +## end gnulib module stat-tests + ## begin gnulib module stdbool-tests TESTS += test-stdbool check_PROGRAMS += test-stdbool - EXTRA_DIST += test-stdbool.c ## end gnulib module stdbool-tests +## begin gnulib module stddef-tests + +TESTS += test-stddef +check_PROGRAMS += test-stddef +EXTRA_DIST += test-stddef.c + +## end gnulib module stddef-tests + ## begin gnulib module stdint-tests TESTS += test-stdint check_PROGRAMS += test-stdint - EXTRA_DIST += test-stdint.c ## end gnulib module stdint-tests @@ -320,7 +732,6 @@ TESTS += test-stdio check_PROGRAMS += test-stdio - EXTRA_DIST += test-stdio.c ## end gnulib module stdio-tests @@ -329,16 +740,23 @@ TESTS += test-stdlib check_PROGRAMS += test-stdlib - EXTRA_DIST += test-stdlib.c ## end gnulib module stdlib-tests +## begin gnulib module strchrnul-tests + +TESTS += test-strchrnul +check_PROGRAMS += test-strchrnul +EXTRA_DIST += test-strchrnul.c signature.h macros.h + +## end gnulib module strchrnul-tests + ## begin gnulib module strerror-tests TESTS += test-strerror check_PROGRAMS += test-strerror -EXTRA_DIST += test-strerror.c +EXTRA_DIST += test-strerror.c signature.h macros.h ## end gnulib module strerror-tests @@ -348,24 +766,83 @@ check_PROGRAMS += test-striconv test_striconv_LDADD = $(LDADD) @LIBICONV@ -EXTRA_DIST += test-striconv.c +EXTRA_DIST += test-striconv.c macros.h ## end gnulib module striconv-tests +## begin gnulib module striconveh-tests + +TESTS += test-striconveh +check_PROGRAMS += test-striconveh +test_striconveh_LDADD = $(LDADD) @LIBICONV@ + +EXTRA_DIST += test-striconveh.c macros.h + +## end gnulib module striconveh-tests + +## begin gnulib module striconveha-tests + +TESTS += test-striconveha +check_PROGRAMS += test-striconveha +test_striconveha_LDADD = $(LDADD) @LIBICONV@ + +EXTRA_DIST += test-striconveha.c macros.h + +## end gnulib module striconveha-tests + ## begin gnulib module string-tests TESTS += test-string check_PROGRAMS += test-string - EXTRA_DIST += test-string.c ## end gnulib module string-tests +## begin gnulib module strstr-tests + +TESTS += test-strstr +check_PROGRAMS += test-strstr +EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h + +## end gnulib module strstr-tests + +## begin gnulib module symlink + + +EXTRA_DIST += symlink.c + +EXTRA_libtests_a_SOURCES += symlink.c + +## end gnulib module symlink + +## begin gnulib module symlink-tests + +TESTS += test-symlink +check_PROGRAMS += test-symlink +EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h + +## end gnulib module symlink-tests + +## begin gnulib module sys_select-tests + +TESTS += test-sys_select +check_PROGRAMS += test-sys_select +EXTRA_DIST += test-sys_select.c + +## end gnulib module sys_select-tests + +## begin gnulib module sys_socket-tests + +TESTS += test-sys_socket +check_PROGRAMS += test-sys_socket +EXTRA_DIST += test-sys_socket.c + +## end gnulib module sys_socket-tests + ## begin gnulib module sys_stat-tests TESTS += test-sys_stat check_PROGRAMS += test-sys_stat - EXTRA_DIST += test-sys_stat.c ## end gnulib module sys_stat-tests @@ -374,11 +851,18 @@ TESTS += test-sys_time check_PROGRAMS += test-sys_time - EXTRA_DIST += test-sys_time.c ## end gnulib module sys_time-tests +## begin gnulib module sys_wait-tests + +TESTS += test-sys_wait +check_PROGRAMS += test-sys_wait +EXTRA_DIST += test-sys_wait.c + +## end gnulib module sys_wait-tests + ## begin gnulib module term-ostream-tests TESTS += test-term-ostream-xterm @@ -389,53 +873,266 @@ ## end gnulib module term-ostream-tests +## begin gnulib module thread + +libtests_a_SOURCES += glthread/thread.h glthread/thread.c + +## end gnulib module thread + +## begin gnulib module time-tests + +TESTS += test-time +check_PROGRAMS += test-time +EXTRA_DIST += test-time.c + +## end gnulib module time-tests + ## begin gnulib module tls-tests TESTS += test-tls check_PROGRAMS += test-tls -test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ EXTRA_DIST += test-tls.c ## end gnulib module tls-tests +## begin gnulib module uniconv/u8-conv-from-enc-tests + +TESTS += test-u8-conv-from-enc +check_PROGRAMS += test-u8-conv-from-enc +test_u8_conv_from_enc_SOURCES = uniconv/test-u8-conv-from-enc.c +test_u8_conv_from_enc_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ + +EXTRA_DIST += uniconv/test-u8-conv-from-enc.c macros.h + +## end gnulib module uniconv/u8-conv-from-enc-tests + +## begin gnulib module unilbrk/u8-possible-linebreaks-tests + +TESTS += test-u8-possible-linebreaks +check_PROGRAMS += test-u8-possible-linebreaks +test_u8_possible_linebreaks_SOURCES = unilbrk/test-u8-possible-linebreaks.c +test_u8_possible_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unilbrk/test-u8-possible-linebreaks.c macros.h + +## end gnulib module unilbrk/u8-possible-linebreaks-tests + +## begin gnulib module unilbrk/u8-width-linebreaks-tests + +TESTS += test-u8-width-linebreaks +check_PROGRAMS += test-u8-width-linebreaks +test_u8_width_linebreaks_SOURCES = unilbrk/test-u8-width-linebreaks.c +test_u8_width_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unilbrk/test-u8-width-linebreaks.c macros.h + +## end gnulib module unilbrk/u8-width-linebreaks-tests + +## begin gnulib module unilbrk/ulc-width-linebreaks-tests + +TESTS += test-ulc-width-linebreaks +check_PROGRAMS += test-ulc-width-linebreaks +test_ulc_width_linebreaks_SOURCES = unilbrk/test-ulc-width-linebreaks.c +test_ulc_width_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ + +EXTRA_DIST += unilbrk/test-ulc-width-linebreaks.c macros.h + +## end gnulib module unilbrk/ulc-width-linebreaks-tests + ## begin gnulib module uniname/uniname-tests TESTS += uniname/test-uninames.sh -TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)' check_PROGRAMS += test-uninames test_uninames_SOURCES = uniname/test-uninames.c -test_uninames_LDADD = $(LDADD) @LIBINTL@ +test_uninames_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ EXTRA_DIST += uniname/test-uninames.sh uniname/test-uninames.c uniname/UnicodeDataNames.txt ## end gnulib module uniname/uniname-tests +## begin gnulib module unistd-safer-tests + +TESTS += test-dup-safer +check_PROGRAMS += test-dup-safer +EXTRA_DIST += test-dup-safer.c macros.h + +## end gnulib module unistd-safer-tests + ## begin gnulib module unistd-tests TESTS += test-unistd check_PROGRAMS += test-unistd - EXTRA_DIST += test-unistd.c ## end gnulib module unistd-tests +## begin gnulib module unistr/u16-mbtouc-tests + +TESTS += test-u16-mbtouc +check_PROGRAMS += test-u16-mbtouc +test_u16_mbtouc_SOURCES = unistr/test-u16-mbtouc.c +test_u16_mbtouc_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u16-mbtouc.c unistr/test-u16-mbtouc.h macros.h + +## end gnulib module unistr/u16-mbtouc-tests + +## begin gnulib module unistr/u8-check-tests + +TESTS += test-u8-check +check_PROGRAMS += test-u8-check +test_u8_check_SOURCES = unistr/test-u8-check.c +test_u8_check_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-check.c macros.h + +## end gnulib module unistr/u8-check-tests + +## begin gnulib module unistr/u8-cmp + +if LIBUNISTRING_COMPILE_UNISTR_U8_CMP +libtests_a_SOURCES += unistr/u8-cmp.c +endif + +## end gnulib module unistr/u8-cmp + +## begin gnulib module unistr/u8-cmp-tests + +TESTS += test-u8-cmp +check_PROGRAMS += test-u8-cmp +test_u8_cmp_SOURCES = unistr/test-u8-cmp.c +test_u8_cmp_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-cmp.c unistr/test-cmp.h zerosize-ptr.h macros.h + +## end gnulib module unistr/u8-cmp-tests + +## begin gnulib module unistr/u8-mblen-tests + +TESTS += test-u8-mblen +check_PROGRAMS += test-u8-mblen +test_u8_mblen_SOURCES = unistr/test-u8-mblen.c +test_u8_mblen_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-mblen.c macros.h + +## end gnulib module unistr/u8-mblen-tests + +## begin gnulib module unistr/u8-mbtouc-tests + +TESTS += test-u8-mbtouc +check_PROGRAMS += test-u8-mbtouc +test_u8_mbtouc_SOURCES = unistr/test-u8-mbtouc.c +test_u8_mbtouc_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-mbtouc.c unistr/test-u8-mbtouc.h macros.h + +## end gnulib module unistr/u8-mbtouc-tests + +## begin gnulib module unistr/u8-mbtouc-unsafe-tests + +TESTS += test-u8-mbtouc-unsafe +check_PROGRAMS += test-u8-mbtouc-unsafe +test_u8_mbtouc_unsafe_SOURCES = unistr/test-u8-mbtouc-unsafe.c +test_u8_mbtouc_unsafe_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-mbtouc-unsafe.c unistr/test-u8-mbtouc.h macros.h + +## end gnulib module unistr/u8-mbtouc-unsafe-tests + +## begin gnulib module unistr/u8-mbtoucr-tests + +TESTS += test-u8-mbtoucr +check_PROGRAMS += test-u8-mbtoucr +test_u8_mbtoucr_SOURCES = unistr/test-u8-mbtoucr.c +test_u8_mbtoucr_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-mbtoucr.c macros.h + +## end gnulib module unistr/u8-mbtoucr-tests + +## begin gnulib module unistr/u8-prev-tests + +TESTS += test-u8-prev +check_PROGRAMS += test-u8-prev +test_u8_prev_SOURCES = unistr/test-u8-prev.c +test_u8_prev_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-prev.c macros.h + +## end gnulib module unistr/u8-prev-tests + +## begin gnulib module unistr/u8-strlen + +if LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN +libtests_a_SOURCES += unistr/u8-strlen.c +endif + +## end gnulib module unistr/u8-strlen + +## begin gnulib module unistr/u8-strlen-tests + +TESTS += test-u8-strlen +check_PROGRAMS += test-u8-strlen +test_u8_strlen_SOURCES = unistr/test-u8-strlen.c +test_u8_strlen_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-strlen.c macros.h + +## end gnulib module unistr/u8-strlen-tests + +## begin gnulib module unistr/u8-uctomb-tests + +TESTS += test-u8-uctomb +check_PROGRAMS += test-u8-uctomb +test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c +test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += unistr/test-u8-uctomb.c macros.h + +## end gnulib module unistr/u8-uctomb-tests + ## begin gnulib module uniwidth/width-tests -TESTS += test-uc_width -check_PROGRAMS += test-uc_width +TESTS += test-uc_width uniwidth/test-uc_width2.sh +check_PROGRAMS += test-uc_width test-uc_width2 test_uc_width_SOURCES = uniwidth/test-uc_width.c - -EXTRA_DIST += uniwidth/test-uc_width.c +test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING) +test_uc_width2_SOURCES = uniwidth/test-uc_width2.c +test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING) +EXTRA_DIST += uniwidth/test-uc_width.c uniwidth/test-uc_width2.c uniwidth/test-uc_width2.sh macros.h ## end gnulib module uniwidth/width-tests +## begin gnulib module unsetenv-tests + +TESTS += test-unsetenv +check_PROGRAMS += test-unsetenv +EXTRA_DIST += test-unsetenv.c signature.h macros.h + +## end gnulib module unsetenv-tests + +## begin gnulib module unused-parameter + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += unused-parameter.h +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t + +UNUSED_PARAMETER_H=unused-parameter.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/unused-parameter.h + +## end gnulib module unused-parameter + ## begin gnulib module vasnprintf-tests TESTS += test-vasnprintf check_PROGRAMS += test-vasnprintf -EXTRA_DIST += test-vasnprintf.c +EXTRA_DIST += test-vasnprintf.c macros.h ## end gnulib module vasnprintf-tests @@ -444,34 +1141,69 @@ TESTS += test-vasprintf check_PROGRAMS += test-vasprintf -EXTRA_DIST += test-vasprintf.c +EXTRA_DIST += test-vasprintf.c signature.h macros.h ## end gnulib module vasprintf-tests +## begin gnulib module verify-tests + +TESTS_ENVIRONMENT += MAKE='$(MAKE)' +TESTS += test-verify test-verify.sh +check_PROGRAMS += test-verify +EXTRA_DIST += test-verify.c test-verify.sh init.sh + +## end gnulib module verify-tests + ## begin gnulib module vsnprintf-tests TESTS += test-vsnprintf check_PROGRAMS += test-vsnprintf -EXTRA_DIST += test-vsnprintf.c +EXTRA_DIST += test-vsnprintf.c signature.h macros.h ## end gnulib module vsnprintf-tests +## begin gnulib module warn-on-use + +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/warn-on-use.h + +## end gnulib module warn-on-use + ## begin gnulib module wchar-tests TESTS += test-wchar check_PROGRAMS += test-wchar - EXTRA_DIST += test-wchar.c ## end gnulib module wchar-tests +## begin gnulib module wctob + + +EXTRA_DIST += wctob.c + +EXTRA_libtests_a_SOURCES += wctob.c + +## end gnulib module wctob + ## begin gnulib module wctype-tests TESTS += test-wctype check_PROGRAMS += test-wctype - -EXTRA_DIST += test-wctype.c +EXTRA_DIST += test-wctype.c macros.h ## end gnulib module wctype-tests @@ -480,20 +1212,35 @@ TESTS += test-wcwidth check_PROGRAMS += test-wcwidth -EXTRA_DIST += test-wcwidth.c +EXTRA_DIST += test-wcwidth.c signature.h macros.h ## end gnulib module wcwidth-tests +## begin gnulib module xalloc-die-tests + +TESTS += test-xalloc-die.sh +check_PROGRAMS += test-xalloc-die +test_xalloc_die_LDADD = $(LDADD) @LIBINTL@ +EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh init.sh + +## end gnulib module xalloc-die-tests + ## begin gnulib module xvasprintf-tests TESTS += test-xvasprintf check_PROGRAMS += test-xvasprintf test_xvasprintf_LDADD = $(LDADD) @LIBINTL@ -EXTRA_DIST += test-xvasprintf.c +EXTRA_DIST += test-xvasprintf.c macros.h ## end gnulib module xvasprintf-tests +## begin gnulib module yield + +libtests_a_SOURCES += glthread/yield.h + +## end gnulib module yield + # Clean up after Solaris cc. clean-local: rm -rf SunWS_cache diff -Nru gettext-0.17/gettext-tools/gnulib-tests/Makefile.in gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.in --- gettext-0.17/gettext-tools/gnulib-tests/Makefile.in 2007-11-06 23:39:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/Makefile.in 2010-06-06 20:12:30.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,7 +15,7 @@ @SET_MAKE@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -25,10 +26,12 @@ # Generated by gnulib-tool. + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -45,78 +48,170 @@ host_triplet = @host@ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.gnulib $(srcdir)/Makefile.in ChangeLog -TESTS = test-alloca-opt$(EXEEXT) test-argmatch$(EXEEXT) \ +TESTS = test-file-has-acl.sh test-set-mode-acl.sh test-copy-acl.sh \ + test-alignof$(EXEEXT) test-alloca-opt$(EXEEXT) \ + test-areadlink$(EXEEXT) test-argmatch$(EXEEXT) \ test-array_list$(EXEEXT) test-atexit.sh test-binary-io.sh \ test-byteswap$(EXEEXT) test-c-ctype$(EXEEXT) test-c-strcase.sh \ test-c-strcasestr$(EXEEXT) test-c-strstr$(EXEEXT) \ - test-canonicalize-lgpl.sh test-fcntl$(EXEEXT) \ - test-fopen$(EXEEXT) test-fstrcmp$(EXEEXT) \ - test-getdelim$(EXEEXT) test-getline$(EXEEXT) \ - test-gettimeofday$(EXEEXT) test-iconv$(EXEEXT) \ + test-canonicalize-lgpl$(EXEEXT) test-cloexec$(EXEEXT) \ + test-copy-file.sh test-dup2$(EXEEXT) test-environ$(EXEEXT) \ + test-errno$(EXEEXT) test-fcntl-h$(EXEEXT) test-fcntl$(EXEEXT) \ + test-fnmatch$(EXEEXT) test-fopen$(EXEEXT) \ + test-fstrcmp$(EXEEXT) test-getdelim$(EXEEXT) \ + test-getdtablesize$(EXEEXT) test-getline$(EXEEXT) \ + test-getopt$(EXEEXT) test-gettimeofday$(EXEEXT) \ + test-iconv-h$(EXEEXT) test-iconv$(EXEEXT) \ test-linkedhash_list$(EXEEXT) test-locale$(EXEEXT) \ test-localename$(EXEEXT) test-lock$(EXEEXT) \ - test-malloca$(EXEEXT) test-mbsstr1$(EXEEXT) test-mbsstr2.sh \ - test-mbsstr3.sh test-open$(EXEEXT) test-snprintf$(EXEEXT) \ - test-stdbool$(EXEEXT) test-stdint$(EXEEXT) test-stdio$(EXEEXT) \ - test-stdlib$(EXEEXT) test-strerror$(EXEEXT) \ - test-striconv$(EXEEXT) test-string$(EXEEXT) \ - test-sys_stat$(EXEEXT) test-sys_time$(EXEEXT) \ - test-term-ostream-xterm test-tls$(EXEEXT) \ - uniname/test-uninames.sh test-unistd$(EXEEXT) \ - test-uc_width$(EXEEXT) test-vasnprintf$(EXEEXT) \ - test-vasprintf$(EXEEXT) test-vsnprintf$(EXEEXT) \ - test-wchar$(EXEEXT) test-wctype$(EXEEXT) test-wcwidth$(EXEEXT) \ + test-lstat$(EXEEXT) test-malloca$(EXEEXT) test-mbrtowc1.sh \ + test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \ + test-mbsinit.sh test-mbsrtowcs1.sh test-mbsrtowcs2.sh \ + test-mbsrtowcs3.sh test-mbsrtowcs4.sh test-mbsstr1$(EXEEXT) \ + test-mbsstr2.sh test-mbsstr3.sh test-memchr$(EXEEXT) \ + test-open$(EXEEXT) test-pipe-filter-ii1.sh \ + test-pipe-filter-ii2.sh test-pipe.sh test-pipe2$(EXEEXT) \ + $(am__EXEEXT_1) test-quotearg-simple$(EXEEXT) \ + test-rawmemchr$(EXEEXT) test-read-file$(EXEEXT) \ + test-readlink$(EXEEXT) test-rmdir$(EXEEXT) test-sched$(EXEEXT) \ + test-setenv$(EXEEXT) test-sigaction$(EXEEXT) \ + test-signal$(EXEEXT) test-sigpipe.sh test-snprintf$(EXEEXT) \ + test-spawn$(EXEEXT) test-stat$(EXEEXT) test-stdbool$(EXEEXT) \ + test-stddef$(EXEEXT) test-stdint$(EXEEXT) test-stdio$(EXEEXT) \ + test-stdlib$(EXEEXT) test-strchrnul$(EXEEXT) \ + test-strerror$(EXEEXT) test-striconv$(EXEEXT) \ + test-striconveh$(EXEEXT) test-striconveha$(EXEEXT) \ + test-string$(EXEEXT) test-strstr$(EXEEXT) \ + test-symlink$(EXEEXT) test-sys_select$(EXEEXT) \ + test-sys_socket$(EXEEXT) test-sys_stat$(EXEEXT) \ + test-sys_time$(EXEEXT) test-sys_wait$(EXEEXT) \ + test-term-ostream-xterm test-time$(EXEEXT) test-tls$(EXEEXT) \ + test-u8-conv-from-enc$(EXEEXT) \ + test-u8-possible-linebreaks$(EXEEXT) \ + test-u8-width-linebreaks$(EXEEXT) \ + test-ulc-width-linebreaks$(EXEEXT) uniname/test-uninames.sh \ + test-dup-safer$(EXEEXT) test-unistd$(EXEEXT) \ + test-u16-mbtouc$(EXEEXT) test-u8-check$(EXEEXT) \ + test-u8-cmp$(EXEEXT) test-u8-mblen$(EXEEXT) \ + test-u8-mbtouc$(EXEEXT) test-u8-mbtouc-unsafe$(EXEEXT) \ + test-u8-mbtoucr$(EXEEXT) test-u8-prev$(EXEEXT) \ + test-u8-strlen$(EXEEXT) test-u8-uctomb$(EXEEXT) \ + test-uc_width$(EXEEXT) uniwidth/test-uc_width2.sh \ + test-unsetenv$(EXEEXT) test-vasnprintf$(EXEEXT) \ + test-vasprintf$(EXEEXT) test-verify$(EXEEXT) test-verify.sh \ + test-vsnprintf$(EXEEXT) test-wchar$(EXEEXT) \ + test-wctype$(EXEEXT) test-wcwidth$(EXEEXT) test-xalloc-die.sh \ test-xvasprintf$(EXEEXT) +XFAIL_TESTS = noinst_PROGRAMS = -check_PROGRAMS = test-alloca-opt$(EXEEXT) test-argmatch$(EXEEXT) \ +check_PROGRAMS = test-file-has-acl$(EXEEXT) test-set-mode-acl$(EXEEXT) \ + test-copy-acl$(EXEEXT) test-sameacls$(EXEEXT) \ + test-alignof$(EXEEXT) test-alloca-opt$(EXEEXT) \ + test-areadlink$(EXEEXT) test-argmatch$(EXEEXT) \ test-array_list$(EXEEXT) test-atexit$(EXEEXT) \ test-binary-io$(EXEEXT) test-byteswap$(EXEEXT) \ test-c-ctype$(EXEEXT) test-c-strcasecmp$(EXEEXT) \ test-c-strncasecmp$(EXEEXT) test-c-strcasestr$(EXEEXT) \ test-c-strstr$(EXEEXT) test-canonicalize-lgpl$(EXEEXT) \ - test-fcntl$(EXEEXT) test-fopen$(EXEEXT) test-fstrcmp$(EXEEXT) \ - test-getdelim$(EXEEXT) test-getline$(EXEEXT) \ - test-gettimeofday$(EXEEXT) test-iconv$(EXEEXT) \ + test-cloexec$(EXEEXT) test-copy-file$(EXEEXT) \ + test-dup2$(EXEEXT) test-environ$(EXEEXT) test-errno$(EXEEXT) \ + test-fcntl-h$(EXEEXT) test-fcntl$(EXEEXT) \ + test-fnmatch$(EXEEXT) test-fopen$(EXEEXT) \ + test-fstrcmp$(EXEEXT) test-getdelim$(EXEEXT) \ + test-getdtablesize$(EXEEXT) test-getline$(EXEEXT) \ + test-getopt$(EXEEXT) test-gettimeofday$(EXEEXT) \ + test-iconv-h$(EXEEXT) test-iconv$(EXEEXT) \ test-linkedhash_list$(EXEEXT) test-locale$(EXEEXT) \ test-localename$(EXEEXT) test-lock$(EXEEXT) \ - test-malloca$(EXEEXT) test-mbsstr1$(EXEEXT) \ - test-mbsstr2$(EXEEXT) test-mbsstr3$(EXEEXT) test-open$(EXEEXT) \ - test-snprintf$(EXEEXT) test-stdbool$(EXEEXT) \ - test-stdint$(EXEEXT) test-stdio$(EXEEXT) test-stdlib$(EXEEXT) \ + test-lstat$(EXEEXT) test-malloca$(EXEEXT) \ + test-mbrtowc$(EXEEXT) test-mbsinit$(EXEEXT) \ + test-mbsrtowcs$(EXEEXT) test-mbsstr1$(EXEEXT) \ + test-mbsstr2$(EXEEXT) test-mbsstr3$(EXEEXT) \ + test-memchr$(EXEEXT) test-open$(EXEEXT) \ + test-pipe-filter-ii1$(EXEEXT) \ + test-pipe-filter-ii2-main$(EXEEXT) \ + test-pipe-filter-ii2-child$(EXEEXT) test-pipe$(EXEEXT) \ + test-pipe2$(EXEEXT) $(am__EXEEXT_1) \ + test-quotearg-simple$(EXEEXT) test-rawmemchr$(EXEEXT) \ + test-read-file$(EXEEXT) test-readlink$(EXEEXT) \ + test-rmdir$(EXEEXT) test-sched$(EXEEXT) test-setenv$(EXEEXT) \ + test-sigaction$(EXEEXT) test-signal$(EXEEXT) \ + test-sigpipe$(EXEEXT) test-snprintf$(EXEEXT) \ + test-spawn$(EXEEXT) test-stat$(EXEEXT) test-stdbool$(EXEEXT) \ + test-stddef$(EXEEXT) test-stdint$(EXEEXT) test-stdio$(EXEEXT) \ + test-stdlib$(EXEEXT) test-strchrnul$(EXEEXT) \ test-strerror$(EXEEXT) test-striconv$(EXEEXT) \ - test-string$(EXEEXT) test-sys_stat$(EXEEXT) \ - test-sys_time$(EXEEXT) test-term-ostream$(EXEEXT) \ - test-tls$(EXEEXT) test-uninames$(EXEEXT) test-unistd$(EXEEXT) \ - test-uc_width$(EXEEXT) test-vasnprintf$(EXEEXT) \ - test-vasprintf$(EXEEXT) test-vsnprintf$(EXEEXT) \ - test-wchar$(EXEEXT) test-wctype$(EXEEXT) test-wcwidth$(EXEEXT) \ - test-xvasprintf$(EXEEXT) + test-striconveh$(EXEEXT) test-striconveha$(EXEEXT) \ + test-string$(EXEEXT) test-strstr$(EXEEXT) \ + test-symlink$(EXEEXT) test-sys_select$(EXEEXT) \ + test-sys_socket$(EXEEXT) test-sys_stat$(EXEEXT) \ + test-sys_time$(EXEEXT) test-sys_wait$(EXEEXT) \ + test-term-ostream$(EXEEXT) test-time$(EXEEXT) \ + test-tls$(EXEEXT) test-u8-conv-from-enc$(EXEEXT) \ + test-u8-possible-linebreaks$(EXEEXT) \ + test-u8-width-linebreaks$(EXEEXT) \ + test-ulc-width-linebreaks$(EXEEXT) test-uninames$(EXEEXT) \ + test-dup-safer$(EXEEXT) test-unistd$(EXEEXT) \ + test-u16-mbtouc$(EXEEXT) test-u8-check$(EXEEXT) \ + test-u8-cmp$(EXEEXT) test-u8-mblen$(EXEEXT) \ + test-u8-mbtouc$(EXEEXT) test-u8-mbtouc-unsafe$(EXEEXT) \ + test-u8-mbtoucr$(EXEEXT) test-u8-prev$(EXEEXT) \ + test-u8-strlen$(EXEEXT) test-u8-uctomb$(EXEEXT) \ + test-uc_width$(EXEEXT) test-uc_width2$(EXEEXT) \ + test-unsetenv$(EXEEXT) test-vasnprintf$(EXEEXT) \ + test-vasprintf$(EXEEXT) test-verify$(EXEEXT) \ + test-vsnprintf$(EXEEXT) test-wchar$(EXEEXT) \ + test-wctype$(EXEEXT) test-wcwidth$(EXEEXT) \ + test-xalloc-die$(EXEEXT) test-xvasprintf$(EXEEXT) +@POSIX_SPAWN_PORTED_TRUE@am__append_1 = test-posix_spawn1 test-posix_spawn2 +@POSIX_SPAWN_PORTED_TRUE@am__append_2 = test-posix_spawn1 test-posix_spawn2 +@POSIX_SPAWN_PORTED_TRUE@am__append_3 = test-posix_spawn1.sh \ +@POSIX_SPAWN_PORTED_TRUE@ test-posix_spawn2.sh +@POSIX_SPAWN_PORTED_TRUE@am__append_4 = test-posix_spawn1.sh \ +@POSIX_SPAWN_PORTED_TRUE@ test-posix_spawn1.sh-t \ +@POSIX_SPAWN_PORTED_TRUE@ test-posix_spawn2.sh \ +@POSIX_SPAWN_PORTED_TRUE@ test-posix_spawn2.sh-t +@LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE@am__append_5 = unistr/u8-cmp.c +@LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE@am__append_6 = unistr/u8-strlen.c subdir = gnulib-tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -124,13 +219,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -139,23 +235,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -163,68 +267,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -244,13 +378,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -258,237 +392,711 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +LIBRARIES = $(noinst_LIBRARIES) +ARFLAGS = cru +AM_V_AR = $(am__v_AR_$(V)) +am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY)) +am__v_AR_0 = @echo " AR " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +libtests_a_AR = $(AR) $(ARFLAGS) +am__DEPENDENCIES_1 = +am__libtests_a_SOURCES_DIST = ignore-value.h glthread/thread.h \ + glthread/thread.c unistr/u8-cmp.c unistr/u8-strlen.c \ + glthread/yield.h +am__dirstamp = $(am__leading_dot)dirstamp +@LIBUNISTRING_COMPILE_UNISTR_U8_CMP_TRUE@am__objects_1 = unistr/u8-cmp.$(OBJEXT) +@LIBUNISTRING_COMPILE_UNISTR_U8_STRLEN_TRUE@am__objects_2 = unistr/u8-strlen.$(OBJEXT) +am_libtests_a_OBJECTS = glthread/thread.$(OBJEXT) $(am__objects_1) \ + $(am__objects_2) +libtests_a_OBJECTS = $(am_libtests_a_OBJECTS) +@POSIX_SPAWN_PORTED_TRUE@am__EXEEXT_1 = test-posix_spawn1$(EXEEXT) \ +@POSIX_SPAWN_PORTED_TRUE@ test-posix_spawn2$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) +test_alignof_SOURCES = test-alignof.c +test_alignof_OBJECTS = test-alignof.$(OBJEXT) +test_alignof_LDADD = $(LDADD) +test_alignof_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent test_alloca_opt_SOURCES = test-alloca-opt.c test_alloca_opt_OBJECTS = test-alloca-opt.$(OBJEXT) test_alloca_opt_LDADD = $(LDADD) -test_alloca_opt_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_alloca_opt_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_areadlink_SOURCES = test-areadlink.c +test_areadlink_OBJECTS = test-areadlink.$(OBJEXT) +test_areadlink_LDADD = $(LDADD) +test_areadlink_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_argmatch_SOURCES = test-argmatch.c test_argmatch_OBJECTS = test-argmatch.$(OBJEXT) -test_argmatch_DEPENDENCIES = $(LDADD) +am__DEPENDENCIES_2 = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_argmatch_DEPENDENCIES = $(am__DEPENDENCIES_2) test_array_list_SOURCES = test-array_list.c test_array_list_OBJECTS = test-array_list.$(OBJEXT) -test_array_list_DEPENDENCIES = $(LDADD) +test_array_list_LDADD = $(LDADD) +test_array_list_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_atexit_SOURCES = test-atexit.c test_atexit_OBJECTS = test-atexit.$(OBJEXT) test_atexit_LDADD = $(LDADD) -test_atexit_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_atexit_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_binary_io_SOURCES = test-binary-io.c test_binary_io_OBJECTS = test-binary-io.$(OBJEXT) test_binary_io_LDADD = $(LDADD) -test_binary_io_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_binary_io_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_byteswap_SOURCES = test-byteswap.c test_byteswap_OBJECTS = test-byteswap.$(OBJEXT) test_byteswap_LDADD = $(LDADD) -test_byteswap_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_byteswap_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_c_ctype_SOURCES = test-c-ctype.c test_c_ctype_OBJECTS = test-c-ctype.$(OBJEXT) test_c_ctype_LDADD = $(LDADD) -test_c_ctype_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_c_ctype_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_c_strcasecmp_SOURCES = test-c-strcasecmp.c test_c_strcasecmp_OBJECTS = test-c-strcasecmp.$(OBJEXT) test_c_strcasecmp_LDADD = $(LDADD) -test_c_strcasecmp_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_c_strcasecmp_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_c_strcasestr_SOURCES = test-c-strcasestr.c test_c_strcasestr_OBJECTS = test-c-strcasestr.$(OBJEXT) test_c_strcasestr_LDADD = $(LDADD) -test_c_strcasestr_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_c_strcasestr_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_c_strncasecmp_SOURCES = test-c-strncasecmp.c test_c_strncasecmp_OBJECTS = test-c-strncasecmp.$(OBJEXT) test_c_strncasecmp_LDADD = $(LDADD) -test_c_strncasecmp_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_c_strncasecmp_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_c_strstr_SOURCES = test-c-strstr.c test_c_strstr_OBJECTS = test-c-strstr.$(OBJEXT) test_c_strstr_LDADD = $(LDADD) -test_c_strstr_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_c_strstr_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_canonicalize_lgpl_SOURCES = test-canonicalize-lgpl.c test_canonicalize_lgpl_OBJECTS = test-canonicalize-lgpl.$(OBJEXT) -test_canonicalize_lgpl_DEPENDENCIES = $(LDADD) +test_canonicalize_lgpl_LDADD = $(LDADD) +test_canonicalize_lgpl_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_cloexec_SOURCES = test-cloexec.c +test_cloexec_OBJECTS = test-cloexec.$(OBJEXT) +test_cloexec_LDADD = $(LDADD) +test_cloexec_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_copy_acl_SOURCES = test-copy-acl.c +test_copy_acl_OBJECTS = test-copy-acl.$(OBJEXT) +test_copy_acl_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +test_copy_file_SOURCES = test-copy-file.c +test_copy_file_OBJECTS = test-copy-file.$(OBJEXT) +test_copy_file_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +test_dup_safer_SOURCES = test-dup-safer.c +test_dup_safer_OBJECTS = test-dup-safer.$(OBJEXT) +test_dup_safer_LDADD = $(LDADD) +test_dup_safer_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_dup2_SOURCES = test-dup2.c +test_dup2_OBJECTS = test-dup2.$(OBJEXT) +test_dup2_LDADD = $(LDADD) +test_dup2_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_environ_SOURCES = test-environ.c +test_environ_OBJECTS = test-environ.$(OBJEXT) +test_environ_LDADD = $(LDADD) +test_environ_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_errno_SOURCES = test-errno.c +test_errno_OBJECTS = test-errno.$(OBJEXT) +test_errno_LDADD = $(LDADD) +test_errno_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_fcntl_SOURCES = test-fcntl.c test_fcntl_OBJECTS = test-fcntl.$(OBJEXT) test_fcntl_LDADD = $(LDADD) -test_fcntl_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_fcntl_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_fcntl_h_SOURCES = test-fcntl-h.c +test_fcntl_h_OBJECTS = test-fcntl-h.$(OBJEXT) +test_fcntl_h_LDADD = $(LDADD) +test_fcntl_h_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_file_has_acl_SOURCES = test-file-has-acl.c +test_file_has_acl_OBJECTS = test-file-has-acl.$(OBJEXT) +test_file_has_acl_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +test_fnmatch_SOURCES = test-fnmatch.c +test_fnmatch_OBJECTS = test-fnmatch.$(OBJEXT) +test_fnmatch_LDADD = $(LDADD) +test_fnmatch_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_fopen_SOURCES = test-fopen.c test_fopen_OBJECTS = test-fopen.$(OBJEXT) test_fopen_LDADD = $(LDADD) -test_fopen_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_fopen_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_fstrcmp_SOURCES = test-fstrcmp.c test_fstrcmp_OBJECTS = test-fstrcmp.$(OBJEXT) -am__DEPENDENCIES_1 = -test_fstrcmp_DEPENDENCIES = $(LDADD) $(am__DEPENDENCIES_1) +test_fstrcmp_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) test_getdelim_SOURCES = test-getdelim.c test_getdelim_OBJECTS = test-getdelim.$(OBJEXT) test_getdelim_LDADD = $(LDADD) -test_getdelim_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_getdelim_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_getdtablesize_SOURCES = test-getdtablesize.c +test_getdtablesize_OBJECTS = test-getdtablesize.$(OBJEXT) +test_getdtablesize_LDADD = $(LDADD) +test_getdtablesize_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_getline_SOURCES = test-getline.c test_getline_OBJECTS = test-getline.$(OBJEXT) test_getline_LDADD = $(LDADD) -test_getline_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_getline_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_getopt_SOURCES = test-getopt.c +test_getopt_OBJECTS = test-getopt.$(OBJEXT) +test_getopt_DEPENDENCIES = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) test_gettimeofday_SOURCES = test-gettimeofday.c test_gettimeofday_OBJECTS = test-gettimeofday.$(OBJEXT) test_gettimeofday_LDADD = $(LDADD) -test_gettimeofday_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_gettimeofday_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_iconv_SOURCES = test-iconv.c test_iconv_OBJECTS = test-iconv.$(OBJEXT) -test_iconv_DEPENDENCIES = $(LDADD) +test_iconv_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_iconv_h_SOURCES = test-iconv-h.c +test_iconv_h_OBJECTS = test-iconv-h.$(OBJEXT) +test_iconv_h_LDADD = $(LDADD) +test_iconv_h_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_linkedhash_list_SOURCES = test-linkedhash_list.c test_linkedhash_list_OBJECTS = test-linkedhash_list.$(OBJEXT) -test_linkedhash_list_DEPENDENCIES = $(LDADD) +test_linkedhash_list_LDADD = $(LDADD) +test_linkedhash_list_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_locale_SOURCES = test-locale.c test_locale_OBJECTS = test-locale.$(OBJEXT) test_locale_LDADD = $(LDADD) -test_locale_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_locale_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_localename_SOURCES = test-localename.c test_localename_OBJECTS = test-localename.$(OBJEXT) -test_localename_DEPENDENCIES = $(LDADD) +test_localename_DEPENDENCIES = $(am__DEPENDENCIES_2) test_lock_SOURCES = test-lock.c test_lock_OBJECTS = test-lock.$(OBJEXT) -test_lock_DEPENDENCIES = $(LDADD) +test_lock_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_lstat_SOURCES = test-lstat.c +test_lstat_OBJECTS = test-lstat.$(OBJEXT) +test_lstat_LDADD = $(LDADD) +test_lstat_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_malloca_SOURCES = test-malloca.c test_malloca_OBJECTS = test-malloca.$(OBJEXT) test_malloca_LDADD = $(LDADD) -test_malloca_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_malloca_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_mbrtowc_SOURCES = test-mbrtowc.c +test_mbrtowc_OBJECTS = test-mbrtowc.$(OBJEXT) +test_mbrtowc_LDADD = $(LDADD) +test_mbrtowc_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_mbsinit_SOURCES = test-mbsinit.c +test_mbsinit_OBJECTS = test-mbsinit.$(OBJEXT) +test_mbsinit_LDADD = $(LDADD) +test_mbsinit_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_mbsrtowcs_SOURCES = test-mbsrtowcs.c +test_mbsrtowcs_OBJECTS = test-mbsrtowcs.$(OBJEXT) +test_mbsrtowcs_LDADD = $(LDADD) +test_mbsrtowcs_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_mbsstr1_SOURCES = test-mbsstr1.c test_mbsstr1_OBJECTS = test-mbsstr1.$(OBJEXT) test_mbsstr1_LDADD = $(LDADD) -test_mbsstr1_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_mbsstr1_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_mbsstr2_SOURCES = test-mbsstr2.c test_mbsstr2_OBJECTS = test-mbsstr2.$(OBJEXT) test_mbsstr2_LDADD = $(LDADD) -test_mbsstr2_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_mbsstr2_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_mbsstr3_SOURCES = test-mbsstr3.c test_mbsstr3_OBJECTS = test-mbsstr3.$(OBJEXT) test_mbsstr3_LDADD = $(LDADD) -test_mbsstr3_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_mbsstr3_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_memchr_SOURCES = test-memchr.c +test_memchr_OBJECTS = test-memchr.$(OBJEXT) +test_memchr_LDADD = $(LDADD) +test_memchr_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_open_SOURCES = test-open.c test_open_OBJECTS = test-open.$(OBJEXT) test_open_LDADD = $(LDADD) -test_open_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_open_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_pipe_SOURCES = test-pipe.c +test_pipe_OBJECTS = test-pipe.$(OBJEXT) +test_pipe_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_pipe_filter_ii1_SOURCES = test-pipe-filter-ii1.c +test_pipe_filter_ii1_OBJECTS = test-pipe-filter-ii1.$(OBJEXT) +test_pipe_filter_ii1_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_pipe_filter_ii2_child_SOURCES = test-pipe-filter-ii2-child.c +test_pipe_filter_ii2_child_OBJECTS = \ + test-pipe-filter-ii2-child.$(OBJEXT) +test_pipe_filter_ii2_child_LDADD = $(LDADD) +test_pipe_filter_ii2_child_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_pipe_filter_ii2_main_SOURCES = test-pipe-filter-ii2-main.c +test_pipe_filter_ii2_main_OBJECTS = \ + test-pipe-filter-ii2-main.$(OBJEXT) +test_pipe_filter_ii2_main_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_pipe2_SOURCES = test-pipe2.c +test_pipe2_OBJECTS = test-pipe2.$(OBJEXT) +test_pipe2_LDADD = $(LDADD) +test_pipe2_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_posix_spawn1_SOURCES = test-posix_spawn1.c +test_posix_spawn1_OBJECTS = test-posix_spawn1.$(OBJEXT) +test_posix_spawn1_LDADD = $(LDADD) +test_posix_spawn1_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_posix_spawn2_SOURCES = test-posix_spawn2.c +test_posix_spawn2_OBJECTS = test-posix_spawn2.$(OBJEXT) +test_posix_spawn2_LDADD = $(LDADD) +test_posix_spawn2_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_quotearg_simple_SOURCES = test-quotearg-simple.c +test_quotearg_simple_OBJECTS = test-quotearg-simple.$(OBJEXT) +test_quotearg_simple_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_rawmemchr_SOURCES = test-rawmemchr.c +test_rawmemchr_OBJECTS = test-rawmemchr.$(OBJEXT) +test_rawmemchr_LDADD = $(LDADD) +test_rawmemchr_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_read_file_SOURCES = test-read-file.c +test_read_file_OBJECTS = test-read-file.$(OBJEXT) +test_read_file_LDADD = $(LDADD) +test_read_file_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_readlink_SOURCES = test-readlink.c +test_readlink_OBJECTS = test-readlink.$(OBJEXT) +test_readlink_LDADD = $(LDADD) +test_readlink_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_rmdir_SOURCES = test-rmdir.c +test_rmdir_OBJECTS = test-rmdir.$(OBJEXT) +test_rmdir_LDADD = $(LDADD) +test_rmdir_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_sameacls_SOURCES = test-sameacls.c +test_sameacls_OBJECTS = test-sameacls.$(OBJEXT) +test_sameacls_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +test_sched_SOURCES = test-sched.c +test_sched_OBJECTS = test-sched.$(OBJEXT) +test_sched_LDADD = $(LDADD) +test_sched_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_set_mode_acl_SOURCES = test-set-mode-acl.c +test_set_mode_acl_OBJECTS = test-set-mode-acl.$(OBJEXT) +test_set_mode_acl_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +test_setenv_SOURCES = test-setenv.c +test_setenv_OBJECTS = test-setenv.$(OBJEXT) +test_setenv_LDADD = $(LDADD) +test_setenv_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_sigaction_SOURCES = test-sigaction.c +test_sigaction_OBJECTS = test-sigaction.$(OBJEXT) +test_sigaction_LDADD = $(LDADD) +test_sigaction_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_signal_SOURCES = test-signal.c +test_signal_OBJECTS = test-signal.$(OBJEXT) +test_signal_LDADD = $(LDADD) +test_signal_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_sigpipe_SOURCES = test-sigpipe.c +test_sigpipe_OBJECTS = test-sigpipe.$(OBJEXT) +test_sigpipe_LDADD = $(LDADD) +test_sigpipe_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_snprintf_SOURCES = test-snprintf.c test_snprintf_OBJECTS = test-snprintf.$(OBJEXT) test_snprintf_LDADD = $(LDADD) -test_snprintf_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_snprintf_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_spawn_SOURCES = test-spawn.c +test_spawn_OBJECTS = test-spawn.$(OBJEXT) +test_spawn_LDADD = $(LDADD) +test_spawn_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_stat_SOURCES = test-stat.c +test_stat_OBJECTS = test-stat.$(OBJEXT) +test_stat_LDADD = $(LDADD) +test_stat_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_stdbool_SOURCES = test-stdbool.c test_stdbool_OBJECTS = test-stdbool.$(OBJEXT) test_stdbool_LDADD = $(LDADD) -test_stdbool_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_stdbool_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_stddef_SOURCES = test-stddef.c +test_stddef_OBJECTS = test-stddef.$(OBJEXT) +test_stddef_LDADD = $(LDADD) +test_stddef_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_stdint_SOURCES = test-stdint.c test_stdint_OBJECTS = test-stdint.$(OBJEXT) test_stdint_LDADD = $(LDADD) -test_stdint_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_stdint_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_stdio_SOURCES = test-stdio.c test_stdio_OBJECTS = test-stdio.$(OBJEXT) test_stdio_LDADD = $(LDADD) -test_stdio_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_stdio_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_stdlib_SOURCES = test-stdlib.c test_stdlib_OBJECTS = test-stdlib.$(OBJEXT) test_stdlib_LDADD = $(LDADD) -test_stdlib_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_stdlib_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_strchrnul_SOURCES = test-strchrnul.c +test_strchrnul_OBJECTS = test-strchrnul.$(OBJEXT) +test_strchrnul_LDADD = $(LDADD) +test_strchrnul_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_strerror_SOURCES = test-strerror.c test_strerror_OBJECTS = test-strerror.$(OBJEXT) test_strerror_LDADD = $(LDADD) -test_strerror_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_strerror_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_striconv_SOURCES = test-striconv.c test_striconv_OBJECTS = test-striconv.$(OBJEXT) -test_striconv_DEPENDENCIES = $(LDADD) +test_striconv_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_striconveh_SOURCES = test-striconveh.c +test_striconveh_OBJECTS = test-striconveh.$(OBJEXT) +test_striconveh_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_striconveha_SOURCES = test-striconveha.c +test_striconveha_OBJECTS = test-striconveha.$(OBJEXT) +test_striconveha_DEPENDENCIES = $(am__DEPENDENCIES_2) test_string_SOURCES = test-string.c test_string_OBJECTS = test-string.$(OBJEXT) test_string_LDADD = $(LDADD) -test_string_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_string_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_strstr_SOURCES = test-strstr.c +test_strstr_OBJECTS = test-strstr.$(OBJEXT) +test_strstr_LDADD = $(LDADD) +test_strstr_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_symlink_SOURCES = test-symlink.c +test_symlink_OBJECTS = test-symlink.$(OBJEXT) +test_symlink_LDADD = $(LDADD) +test_symlink_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_sys_select_SOURCES = test-sys_select.c +test_sys_select_OBJECTS = test-sys_select.$(OBJEXT) +test_sys_select_LDADD = $(LDADD) +test_sys_select_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_sys_socket_SOURCES = test-sys_socket.c +test_sys_socket_OBJECTS = test-sys_socket.$(OBJEXT) +test_sys_socket_LDADD = $(LDADD) +test_sys_socket_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_sys_stat_SOURCES = test-sys_stat.c test_sys_stat_OBJECTS = test-sys_stat.$(OBJEXT) test_sys_stat_LDADD = $(LDADD) -test_sys_stat_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_sys_stat_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_sys_time_SOURCES = test-sys_time.c test_sys_time_OBJECTS = test-sys_time.$(OBJEXT) test_sys_time_LDADD = $(LDADD) -test_sys_time_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_sys_time_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_sys_wait_SOURCES = test-sys_wait.c +test_sys_wait_OBJECTS = test-sys_wait.$(OBJEXT) +test_sys_wait_LDADD = $(LDADD) +test_sys_wait_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_term_ostream_SOURCES = test-term-ostream.c test_term_ostream_OBJECTS = test-term-ostream.$(OBJEXT) -test_term_ostream_DEPENDENCIES = $(LDADD) +test_term_ostream_DEPENDENCIES = $(am__DEPENDENCIES_2) +test_time_SOURCES = test-time.c +test_time_OBJECTS = test-time.$(OBJEXT) +test_time_LDADD = $(LDADD) +test_time_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_tls_SOURCES = test-tls.c test_tls_OBJECTS = test-tls.$(OBJEXT) -test_tls_DEPENDENCIES = $(LDADD) -am_test_uc_width_OBJECTS = test-uc_width.$(OBJEXT) +test_tls_DEPENDENCIES = $(am__DEPENDENCIES_2) +am_test_u16_mbtouc_OBJECTS = unistr/test-u16-mbtouc.$(OBJEXT) +test_u16_mbtouc_OBJECTS = $(am_test_u16_mbtouc_OBJECTS) +test_u16_mbtouc_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_check_OBJECTS = unistr/test-u8-check.$(OBJEXT) +test_u8_check_OBJECTS = $(am_test_u8_check_OBJECTS) +test_u8_check_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_cmp_OBJECTS = unistr/test-u8-cmp.$(OBJEXT) +test_u8_cmp_OBJECTS = $(am_test_u8_cmp_OBJECTS) +test_u8_cmp_DEPENDENCIES = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) +am_test_u8_conv_from_enc_OBJECTS = \ + uniconv/test-u8-conv-from-enc.$(OBJEXT) +test_u8_conv_from_enc_OBJECTS = $(am_test_u8_conv_from_enc_OBJECTS) +test_u8_conv_from_enc_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_mblen_OBJECTS = unistr/test-u8-mblen.$(OBJEXT) +test_u8_mblen_OBJECTS = $(am_test_u8_mblen_OBJECTS) +test_u8_mblen_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_mbtouc_OBJECTS = unistr/test-u8-mbtouc.$(OBJEXT) +test_u8_mbtouc_OBJECTS = $(am_test_u8_mbtouc_OBJECTS) +test_u8_mbtouc_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_mbtouc_unsafe_OBJECTS = \ + unistr/test-u8-mbtouc-unsafe.$(OBJEXT) +test_u8_mbtouc_unsafe_OBJECTS = $(am_test_u8_mbtouc_unsafe_OBJECTS) +test_u8_mbtouc_unsafe_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_mbtoucr_OBJECTS = unistr/test-u8-mbtoucr.$(OBJEXT) +test_u8_mbtoucr_OBJECTS = $(am_test_u8_mbtoucr_OBJECTS) +test_u8_mbtoucr_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_possible_linebreaks_OBJECTS = \ + unilbrk/test-u8-possible-linebreaks.$(OBJEXT) +test_u8_possible_linebreaks_OBJECTS = \ + $(am_test_u8_possible_linebreaks_OBJECTS) +test_u8_possible_linebreaks_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_prev_OBJECTS = unistr/test-u8-prev.$(OBJEXT) +test_u8_prev_OBJECTS = $(am_test_u8_prev_OBJECTS) +test_u8_prev_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_strlen_OBJECTS = unistr/test-u8-strlen.$(OBJEXT) +test_u8_strlen_OBJECTS = $(am_test_u8_strlen_OBJECTS) +test_u8_strlen_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_uctomb_OBJECTS = unistr/test-u8-uctomb.$(OBJEXT) +test_u8_uctomb_OBJECTS = $(am_test_u8_uctomb_OBJECTS) +test_u8_uctomb_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_u8_width_linebreaks_OBJECTS = \ + unilbrk/test-u8-width-linebreaks.$(OBJEXT) +test_u8_width_linebreaks_OBJECTS = \ + $(am_test_u8_width_linebreaks_OBJECTS) +test_u8_width_linebreaks_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_uc_width_OBJECTS = uniwidth/test-uc_width.$(OBJEXT) test_uc_width_OBJECTS = $(am_test_uc_width_OBJECTS) -test_uc_width_LDADD = $(LDADD) -test_uc_width_DEPENDENCIES = ../gnulib-lib/libgettextlib.la -am_test_uninames_OBJECTS = test-uninames.$(OBJEXT) +test_uc_width_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_uc_width2_OBJECTS = uniwidth/test-uc_width2.$(OBJEXT) +test_uc_width2_OBJECTS = $(am_test_uc_width2_OBJECTS) +test_uc_width2_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_ulc_width_linebreaks_OBJECTS = \ + unilbrk/test-ulc-width-linebreaks.$(OBJEXT) +test_ulc_width_linebreaks_OBJECTS = \ + $(am_test_ulc_width_linebreaks_OBJECTS) +test_ulc_width_linebreaks_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) +am_test_uninames_OBJECTS = uniname/test-uninames.$(OBJEXT) test_uninames_OBJECTS = $(am_test_uninames_OBJECTS) -test_uninames_DEPENDENCIES = $(LDADD) +test_uninames_DEPENDENCIES = $(am__DEPENDENCIES_2) \ + $(am__DEPENDENCIES_1) test_unistd_SOURCES = test-unistd.c test_unistd_OBJECTS = test-unistd.$(OBJEXT) test_unistd_LDADD = $(LDADD) -test_unistd_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_unistd_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_unsetenv_SOURCES = test-unsetenv.c +test_unsetenv_OBJECTS = test-unsetenv.$(OBJEXT) +test_unsetenv_LDADD = $(LDADD) +test_unsetenv_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_vasnprintf_SOURCES = test-vasnprintf.c test_vasnprintf_OBJECTS = test-vasnprintf.$(OBJEXT) test_vasnprintf_LDADD = $(LDADD) -test_vasnprintf_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_vasnprintf_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_vasprintf_SOURCES = test-vasprintf.c test_vasprintf_OBJECTS = test-vasprintf.$(OBJEXT) test_vasprintf_LDADD = $(LDADD) -test_vasprintf_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_vasprintf_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) +test_verify_SOURCES = test-verify.c +test_verify_OBJECTS = test-verify.$(OBJEXT) +test_verify_LDADD = $(LDADD) +test_verify_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_vsnprintf_SOURCES = test-vsnprintf.c test_vsnprintf_OBJECTS = test-vsnprintf.$(OBJEXT) test_vsnprintf_LDADD = $(LDADD) -test_vsnprintf_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_vsnprintf_DEPENDENCIES = libtests.a \ + ../gnulib-lib/libgettextlib.la libtests.a \ + $(am__DEPENDENCIES_1) test_wchar_SOURCES = test-wchar.c test_wchar_OBJECTS = test-wchar.$(OBJEXT) test_wchar_LDADD = $(LDADD) -test_wchar_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_wchar_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_wctype_SOURCES = test-wctype.c test_wctype_OBJECTS = test-wctype.$(OBJEXT) test_wctype_LDADD = $(LDADD) -test_wctype_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_wctype_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) test_wcwidth_SOURCES = test-wcwidth.c test_wcwidth_OBJECTS = test-wcwidth.$(OBJEXT) test_wcwidth_LDADD = $(LDADD) -test_wcwidth_DEPENDENCIES = ../gnulib-lib/libgettextlib.la +test_wcwidth_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \ + libtests.a $(am__DEPENDENCIES_1) +test_xalloc_die_SOURCES = test-xalloc-die.c +test_xalloc_die_OBJECTS = test-xalloc-die.$(OBJEXT) +test_xalloc_die_DEPENDENCIES = $(am__DEPENDENCIES_2) test_xvasprintf_SOURCES = test-xvasprintf.c test_xvasprintf_OBJECTS = test-xvasprintf.$(OBJEXT) -test_xvasprintf_DEPENDENCIES = $(LDADD) -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +test_xvasprintf_DEPENDENCIES = $(am__DEPENDENCIES_2) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/../build-aux/depcomp am__depfiles_maybe = depfiles +am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = test-alloca-opt.c test-argmatch.c test-array_list.c \ - test-atexit.c test-binary-io.c test-byteswap.c test-c-ctype.c \ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +SOURCES = $(libtests_a_SOURCES) $(EXTRA_libtests_a_SOURCES) \ + test-alignof.c test-alloca-opt.c test-areadlink.c \ + test-argmatch.c test-array_list.c test-atexit.c \ + test-binary-io.c test-byteswap.c test-c-ctype.c \ test-c-strcasecmp.c test-c-strcasestr.c test-c-strncasecmp.c \ - test-c-strstr.c test-canonicalize-lgpl.c test-fcntl.c \ - test-fopen.c test-fstrcmp.c test-getdelim.c test-getline.c \ - test-gettimeofday.c test-iconv.c test-linkedhash_list.c \ - test-locale.c test-localename.c test-lock.c test-malloca.c \ - test-mbsstr1.c test-mbsstr2.c test-mbsstr3.c test-open.c \ - test-snprintf.c test-stdbool.c test-stdint.c test-stdio.c \ - test-stdlib.c test-strerror.c test-striconv.c test-string.c \ - test-sys_stat.c test-sys_time.c test-term-ostream.c test-tls.c \ - $(test_uc_width_SOURCES) $(test_uninames_SOURCES) \ - test-unistd.c test-vasnprintf.c test-vasprintf.c \ + test-c-strstr.c test-canonicalize-lgpl.c test-cloexec.c \ + test-copy-acl.c test-copy-file.c test-dup-safer.c test-dup2.c \ + test-environ.c test-errno.c test-fcntl.c test-fcntl-h.c \ + test-file-has-acl.c test-fnmatch.c test-fopen.c test-fstrcmp.c \ + test-getdelim.c test-getdtablesize.c test-getline.c \ + test-getopt.c test-gettimeofday.c test-iconv.c test-iconv-h.c \ + test-linkedhash_list.c test-locale.c test-localename.c \ + test-lock.c test-lstat.c test-malloca.c test-mbrtowc.c \ + test-mbsinit.c test-mbsrtowcs.c test-mbsstr1.c test-mbsstr2.c \ + test-mbsstr3.c test-memchr.c test-open.c test-pipe.c \ + test-pipe-filter-ii1.c test-pipe-filter-ii2-child.c \ + test-pipe-filter-ii2-main.c test-pipe2.c test-posix_spawn1.c \ + test-posix_spawn2.c test-quotearg-simple.c test-rawmemchr.c \ + test-read-file.c test-readlink.c test-rmdir.c test-sameacls.c \ + test-sched.c test-set-mode-acl.c test-setenv.c \ + test-sigaction.c test-signal.c test-sigpipe.c test-snprintf.c \ + test-spawn.c test-stat.c test-stdbool.c test-stddef.c \ + test-stdint.c test-stdio.c test-stdlib.c test-strchrnul.c \ + test-strerror.c test-striconv.c test-striconveh.c \ + test-striconveha.c test-string.c test-strstr.c test-symlink.c \ + test-sys_select.c test-sys_socket.c test-sys_stat.c \ + test-sys_time.c test-sys_wait.c test-term-ostream.c \ + test-time.c test-tls.c $(test_u16_mbtouc_SOURCES) \ + $(test_u8_check_SOURCES) $(test_u8_cmp_SOURCES) \ + $(test_u8_conv_from_enc_SOURCES) $(test_u8_mblen_SOURCES) \ + $(test_u8_mbtouc_SOURCES) $(test_u8_mbtouc_unsafe_SOURCES) \ + $(test_u8_mbtoucr_SOURCES) \ + $(test_u8_possible_linebreaks_SOURCES) $(test_u8_prev_SOURCES) \ + $(test_u8_strlen_SOURCES) $(test_u8_uctomb_SOURCES) \ + $(test_u8_width_linebreaks_SOURCES) $(test_uc_width_SOURCES) \ + $(test_uc_width2_SOURCES) $(test_ulc_width_linebreaks_SOURCES) \ + $(test_uninames_SOURCES) test-unistd.c test-unsetenv.c \ + test-vasnprintf.c test-vasprintf.c test-verify.c \ test-vsnprintf.c test-wchar.c test-wctype.c test-wcwidth.c \ - test-xvasprintf.c -DIST_SOURCES = test-alloca-opt.c test-argmatch.c test-array_list.c \ + test-xalloc-die.c test-xvasprintf.c +DIST_SOURCES = $(am__libtests_a_SOURCES_DIST) \ + $(EXTRA_libtests_a_SOURCES) test-alignof.c test-alloca-opt.c \ + test-areadlink.c test-argmatch.c test-array_list.c \ test-atexit.c test-binary-io.c test-byteswap.c test-c-ctype.c \ test-c-strcasecmp.c test-c-strcasestr.c test-c-strncasecmp.c \ - test-c-strstr.c test-canonicalize-lgpl.c test-fcntl.c \ - test-fopen.c test-fstrcmp.c test-getdelim.c test-getline.c \ - test-gettimeofday.c test-iconv.c test-linkedhash_list.c \ - test-locale.c test-localename.c test-lock.c test-malloca.c \ - test-mbsstr1.c test-mbsstr2.c test-mbsstr3.c test-open.c \ - test-snprintf.c test-stdbool.c test-stdint.c test-stdio.c \ - test-stdlib.c test-strerror.c test-striconv.c test-string.c \ - test-sys_stat.c test-sys_time.c test-term-ostream.c test-tls.c \ - $(test_uc_width_SOURCES) $(test_uninames_SOURCES) \ - test-unistd.c test-vasnprintf.c test-vasprintf.c \ + test-c-strstr.c test-canonicalize-lgpl.c test-cloexec.c \ + test-copy-acl.c test-copy-file.c test-dup-safer.c test-dup2.c \ + test-environ.c test-errno.c test-fcntl.c test-fcntl-h.c \ + test-file-has-acl.c test-fnmatch.c test-fopen.c test-fstrcmp.c \ + test-getdelim.c test-getdtablesize.c test-getline.c \ + test-getopt.c test-gettimeofday.c test-iconv.c test-iconv-h.c \ + test-linkedhash_list.c test-locale.c test-localename.c \ + test-lock.c test-lstat.c test-malloca.c test-mbrtowc.c \ + test-mbsinit.c test-mbsrtowcs.c test-mbsstr1.c test-mbsstr2.c \ + test-mbsstr3.c test-memchr.c test-open.c test-pipe.c \ + test-pipe-filter-ii1.c test-pipe-filter-ii2-child.c \ + test-pipe-filter-ii2-main.c test-pipe2.c test-posix_spawn1.c \ + test-posix_spawn2.c test-quotearg-simple.c test-rawmemchr.c \ + test-read-file.c test-readlink.c test-rmdir.c test-sameacls.c \ + test-sched.c test-set-mode-acl.c test-setenv.c \ + test-sigaction.c test-signal.c test-sigpipe.c test-snprintf.c \ + test-spawn.c test-stat.c test-stdbool.c test-stddef.c \ + test-stdint.c test-stdio.c test-stdlib.c test-strchrnul.c \ + test-strerror.c test-striconv.c test-striconveh.c \ + test-striconveha.c test-string.c test-strstr.c test-symlink.c \ + test-sys_select.c test-sys_socket.c test-sys_stat.c \ + test-sys_time.c test-sys_wait.c test-term-ostream.c \ + test-time.c test-tls.c $(test_u16_mbtouc_SOURCES) \ + $(test_u8_check_SOURCES) $(test_u8_cmp_SOURCES) \ + $(test_u8_conv_from_enc_SOURCES) $(test_u8_mblen_SOURCES) \ + $(test_u8_mbtouc_SOURCES) $(test_u8_mbtouc_unsafe_SOURCES) \ + $(test_u8_mbtoucr_SOURCES) \ + $(test_u8_possible_linebreaks_SOURCES) $(test_u8_prev_SOURCES) \ + $(test_u8_strlen_SOURCES) $(test_u8_uctomb_SOURCES) \ + $(test_u8_width_linebreaks_SOURCES) $(test_uc_width_SOURCES) \ + $(test_uc_width2_SOURCES) $(test_ulc_width_linebreaks_SOURCES) \ + $(test_uninames_SOURCES) test-unistd.c test-unsetenv.c \ + test-vasnprintf.c test-vasprintf.c test-verify.c \ test-vsnprintf.c test-wchar.c test-wctype.c test-wcwidth.c \ - test-xvasprintf.c + test-xalloc-die.c test-xvasprintf.c RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ @@ -499,16 +1107,63 @@ HEADERS = $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir ETAGS = etags CTAGS = ctags +# If stdout is a non-dumb tty, use colors. If test -t is not supported, +# then this fails; a conservative approach. Of course do not redirect +# stdout here, just stderr. +am__tty_colors = \ +red=; grn=; lgn=; blu=; std=; \ +test "X$(AM_COLOR_TESTS)" != Xno \ +&& test "X$$TERM" != Xdumb \ +&& { test "X$(AM_COLOR_TESTS)" = Xalways || test -t 1 2>/dev/null; } \ +&& { \ + red=''; \ + grn=''; \ + lgn=''; \ + blu=''; \ + std=''; \ +} DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -549,136 +1204,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -692,53 +1531,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -751,17 +1670,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -769,18 +1691,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -795,6 +1725,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -805,94 +1736,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -902,13 +1961,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -929,8 +1989,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -945,6 +2016,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -958,35 +2030,86 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 foreign -ACLOCAL_AMFLAGS = -I ../gnulib-m4 -SUBDIRS = -TESTS_ENVIRONMENT = EXEEXT='@EXEEXT@' EXEEXT='@EXEEXT@' \ - EXEEXT='@EXEEXT@' LOCALE_FR='@LOCALE_FR@' \ - LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' EXEEXT='@EXEEXT@' \ - EXEEXT='@EXEEXT@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ + +# Rules generated and collected by gnulib-tool. +AUTOMAKE_OPTIONS = 1.5 foreign subdir-objects 1.11 color-tests +SUBDIRS = . +TESTS_ENVIRONMENT = EXEEXT='@EXEEXT@' srcdir='$(srcdir)' \ + USE_ACL=$(USE_ACL) LOCALE_FR='@LOCALE_FR@' \ + LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' USE_ACL=$(USE_ACL) \ + LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ + LOCALE_JA='@LOCALE_JA@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_FR='@LOCALE_FR@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_JA='@LOCALE_JA@' \ + LOCALE_ZH_CN='@LOCALE_ZH_CN@' \ + LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \ LOCALE_ZH_CN='@LOCALE_ZH_CN@' srcdir='$(srcdir)' \ - EXEEXT='@EXEEXT@' srcdir='$(srcdir)' + MAKE='$(MAKE)' noinst_HEADERS = -EXTRA_DIST = test-alloca-opt.c test-argmatch.c test-array_list.c \ +noinst_LIBRARIES = +check_LIBRARIES = libtests.a +EXTRA_DIST = test-file-has-acl.sh test-set-mode-acl.sh \ + test-copy-acl.sh test-file-has-acl.c test-set-mode-acl.c \ + test-copy-acl.c test-sameacls.c macros.h test-alignof.c \ + test-alloca-opt.c test-areadlink.h test-areadlink.c macros.h \ + $(top_srcdir)/../build-aux/arg-nonnull.h test-argmatch.c \ + macros.h test-array_list.c macros.h init.sh signature.h \ test-atexit.sh test-atexit.c test-binary-io.sh \ - test-binary-io.c test-byteswap.c test-c-ctype.c \ + test-binary-io.c macros.h test-byteswap.c macros.h \ + $(top_srcdir)/../build-aux/c++defs.h test-c-ctype.c macros.h \ test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c \ - test-c-strcasestr.c test-c-strstr.c test-canonicalize-lgpl.sh \ - test-canonicalize-lgpl.c test-fcntl.c test-fopen.c \ - test-fstrcmp.c test-getdelim.c test-getline.c \ - test-gettimeofday.c test-iconv.c test-linkedhash_list.c \ - test-locale.c test-localename.c test-lock.c test-malloca.c \ + macros.h test-c-strcasestr.c macros.h test-c-strstr.c macros.h \ + test-canonicalize-lgpl.c signature.h macros.h test-cloexec.c \ + macros.h test-copy-file.sh test-copy-file.c macros.h \ + test-dup2.c signature.h macros.h test-environ.c test-errno.c \ + test-fcntl-h.c test-fcntl.c signature.h macros.h \ + test-fnmatch.c signature.h macros.h test-fopen.h test-fopen.c \ + signature.h macros.h test-fstrcmp.c macros.h test-getdelim.c \ + signature.h macros.h test-getdtablesize.c signature.h macros.h \ + test-getline.c signature.h macros.h macros.h signature.h \ + test-getopt.c test-getopt.h test-getopt_long.h getpagesize.c \ + signature.h test-gettimeofday.c test-iconv-h.c test-iconv.c \ + signature.h macros.h test-linkedhash_list.c macros.h \ + test-locale.c test-localename.c macros.h test-lock.c \ + test-lstat.h test-lstat.c signature.h macros.h test-malloca.c \ + test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh \ + test-mbrtowc4.sh test-mbrtowc.c signature.h macros.h \ + test-mbsinit.sh test-mbsinit.c signature.h macros.h \ + test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh \ + test-mbsrtowcs4.sh test-mbsrtowcs.c signature.h macros.h \ test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh \ - test-mbsstr3.c test-moo-root.oo.h test-moo-root.oo.c \ + test-mbsstr3.c macros.h test-memchr.c zerosize-ptr.h \ + signature.h macros.h test-moo-root.oo.h test-moo-root.oo.c \ test-moo-sub1.oo.h test-moo-sub1.oo.c test-moo-sub2.oo.h \ test-moo-sub2.oo.c test-moo-aroot.oo.h test-moo-aroot.oo.c \ test-moo-asub1.oo.h test-moo-asub1.oo.c test-moo-assign.c \ - test-open.c test-snprintf.c test-stdbool.c test-stdint.c \ - test-stdio.c test-stdlib.c test-strerror.c test-striconv.c \ - test-string.c test-sys_stat.c test-sys_time.c \ + test-open.h test-open.c signature.h macros.h \ + test-pipe-filter-ii1.sh test-pipe-filter-ii1.c \ + test-vasnprintf-posix.c test-pipe-filter-ii2.sh \ + test-pipe-filter-ii2-main.c test-pipe-filter-ii2-child.c \ + macros.h test-pipe.sh test-pipe.c macros.h test-pipe2.c \ + signature.h macros.h test-posix_spawn1.c \ + test-posix_spawn1.in.sh test-posix_spawn2.c \ + test-posix_spawn2.in.sh signature.h putenv.c \ + test-quotearg-simple.c test-quotearg.h macros.h \ + test-rawmemchr.c signature.h macros.h read-file.c read-file.h \ + test-read-file.c test-readlink.h test-readlink.c signature.h \ + macros.h test-rmdir.h test-rmdir.c signature.h macros.h \ + same-inode.h test-sched.c test-setenv.c signature.h macros.h \ + test-sigaction.c signature.h macros.h test-signal.c \ + test-sigpipe.c test-sigpipe.sh test-snprintf.c signature.h \ + macros.h test-spawn.c test-stat.h test-stat.c signature.h \ + macros.h test-stdbool.c test-stddef.c test-stdint.c \ + test-stdio.c test-stdlib.c test-strchrnul.c signature.h \ + macros.h test-strerror.c signature.h macros.h test-striconv.c \ + macros.h test-striconveh.c macros.h test-striconveha.c \ + macros.h test-string.c test-strstr.c zerosize-ptr.h \ + signature.h macros.h symlink.c test-symlink.h test-symlink.c \ + signature.h macros.h test-sys_select.c test-sys_socket.c \ + test-sys_stat.c test-sys_time.c test-sys_wait.c \ test-term-ostream.c test-term-ostream-xterm \ test-term-ostream-xterm-r6.out \ test-term-ostream-xterm-xf86-v32.out \ @@ -1002,39 +2125,131 @@ test-term-ostream-xterm-mingw.out \ test-term-ostream-xterm-16color.out \ test-term-ostream-xterm-88color.out \ - test-term-ostream-xterm-256color.out test-tls.c \ + test-term-ostream-xterm-256color.out test-time.c test-tls.c \ + uniconv/test-u8-conv-from-enc.c macros.h \ + unilbrk/test-u8-possible-linebreaks.c macros.h \ + unilbrk/test-u8-width-linebreaks.c macros.h \ + unilbrk/test-ulc-width-linebreaks.c macros.h \ uniname/test-uninames.sh uniname/test-uninames.c \ - uniname/UnicodeDataNames.txt test-unistd.c \ - uniwidth/test-uc_width.c test-vasnprintf.c test-vasprintf.c \ - test-vsnprintf.c test-wchar.c test-wctype.c test-wcwidth.c \ - test-xvasprintf.c -BUILT_SOURCES = + uniname/UnicodeDataNames.txt test-dup-safer.c macros.h \ + test-unistd.c unistr/test-u16-mbtouc.c \ + unistr/test-u16-mbtouc.h macros.h unistr/test-u8-check.c \ + macros.h unistr/test-u8-cmp.c unistr/test-cmp.h zerosize-ptr.h \ + macros.h unistr/test-u8-mblen.c macros.h \ + unistr/test-u8-mbtouc.c unistr/test-u8-mbtouc.h macros.h \ + unistr/test-u8-mbtouc-unsafe.c unistr/test-u8-mbtouc.h \ + macros.h unistr/test-u8-mbtoucr.c macros.h \ + unistr/test-u8-prev.c macros.h unistr/test-u8-strlen.c \ + macros.h unistr/test-u8-uctomb.c macros.h \ + uniwidth/test-uc_width.c uniwidth/test-uc_width2.c \ + uniwidth/test-uc_width2.sh macros.h test-unsetenv.c \ + signature.h macros.h \ + $(top_srcdir)/../build-aux/unused-parameter.h \ + test-vasnprintf.c macros.h test-vasprintf.c signature.h \ + macros.h test-verify.c test-verify.sh init.sh test-vsnprintf.c \ + signature.h macros.h $(top_srcdir)/../build-aux/warn-on-use.h \ + test-wchar.c wctob.c test-wctype.c macros.h test-wcwidth.c \ + signature.h macros.h test-xalloc-die.c test-xalloc-die.sh \ + init.sh test-xvasprintf.c macros.h + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. +BUILT_SOURCES = arg-nonnull.h c++defs.h $(am__append_3) \ + unused-parameter.h warn-on-use.h SUFFIXES = -MOSTLYCLEANFILES = core *.stackdump test-getdelim.txt test-getline.txt +MOSTLYCLEANFILES = core *.stackdump arg-nonnull.h arg-nonnull.h-t \ + c++defs.h c++defs.h-t test-getdelim.txt test-getline.txt \ + $(am__append_4) unused-parameter.h unused-parameter.h-t \ + warn-on-use.h warn-on-use.h-t MOSTLYCLEANDIRS = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = -AM_CPPFLAGS = \ - -I. -I$(srcdir) \ - -I.. -I$(srcdir)/.. \ - -I../gnulib-lib -I$(srcdir)/../gnulib-lib -LDADD = ../gnulib-lib/libgettextlib.la +# Ensure that test-quotearg.c finds libintl.h. +AM_CPPFLAGS = -D@gltests_WITNESS@=1 -I. -I$(srcdir) -I.. \ + -I$(srcdir)/.. -I../gnulib-lib -I$(srcdir)/../gnulib-lib \ + -I../intl +LDADD = libtests.a ../gnulib-lib/libgettextlib.la libtests.a $(LIBTESTS_LIBDEPS) +libtests_a_SOURCES = ignore-value.h glthread/thread.h \ + glthread/thread.c $(am__append_5) $(am__append_6) \ + glthread/yield.h +libtests_a_LIBADD = $(gltests_LIBOBJS) +libtests_a_DEPENDENCIES = $(gltests_LIBOBJS) +EXTRA_libtests_a_SOURCES = getpagesize.c putenv.c read-file.c \ + symlink.c wctob.c +AM_LIBTOOLFLAGS = --preserve-dup-deps +test_file_has_acl_LDADD = $(LDADD) $(LIB_ACL) +test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ +ARG_NONNULL_H = arg-nonnull.h test_argmatch_LDADD = $(LDADD) @LIBINTL@ -test_array_list_LDADD = $(LDADD) @LIBINTL@ -test_canonicalize_lgpl_LDADD = $(LDADD) +CXXDEFS_H = c++defs.h +test_copy_file_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ test_fstrcmp_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) +test_getopt_LDADD = $(LDADD) $(LIBINTL) test_iconv_LDADD = $(LDADD) @LIBICONV@ -test_linkedhash_list_LDADD = $(LDADD) @LIBINTL@ test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ -test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ +test_pipe_filter_ii1_LDADD = $(LDADD) @LIBINTL@ +test_pipe_filter_ii2_main_LDADD = $(LDADD) @LIBINTL@ +test_pipe_LDADD = $(LDADD) @LIBINTL@ +test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ test_striconv_LDADD = $(LDADD) @LIBICONV@ +test_striconveh_LDADD = $(LDADD) @LIBICONV@ +test_striconveha_LDADD = $(LDADD) @LIBICONV@ test_term_ostream_LDADD = $(LIBTERMCAP) $(LDADD) -test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ +test_u8_conv_from_enc_SOURCES = uniconv/test-u8-conv-from-enc.c +test_u8_conv_from_enc_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ +test_u8_possible_linebreaks_SOURCES = unilbrk/test-u8-possible-linebreaks.c +test_u8_possible_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_width_linebreaks_SOURCES = unilbrk/test-u8-width-linebreaks.c +test_u8_width_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) +test_ulc_width_linebreaks_SOURCES = unilbrk/test-ulc-width-linebreaks.c +test_ulc_width_linebreaks_LDADD = $(LDADD) $(LIBUNISTRING) @LIBICONV@ test_uninames_SOURCES = uniname/test-uninames.c -test_uninames_LDADD = $(LDADD) @LIBINTL@ +test_uninames_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ +test_u16_mbtouc_SOURCES = unistr/test-u16-mbtouc.c +test_u16_mbtouc_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_check_SOURCES = unistr/test-u8-check.c +test_u8_check_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_cmp_SOURCES = unistr/test-u8-cmp.c +test_u8_cmp_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_mblen_SOURCES = unistr/test-u8-mblen.c +test_u8_mblen_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_mbtouc_SOURCES = unistr/test-u8-mbtouc.c +test_u8_mbtouc_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_mbtouc_unsafe_SOURCES = unistr/test-u8-mbtouc-unsafe.c +test_u8_mbtouc_unsafe_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_mbtoucr_SOURCES = unistr/test-u8-mbtoucr.c +test_u8_mbtoucr_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_prev_SOURCES = unistr/test-u8-prev.c +test_u8_prev_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_strlen_SOURCES = unistr/test-u8-strlen.c +test_u8_strlen_LDADD = $(LDADD) $(LIBUNISTRING) +test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c +test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING) test_uc_width_SOURCES = uniwidth/test-uc_width.c +test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING) +test_uc_width2_SOURCES = uniwidth/test-uc_width2.c +test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING) +UNUSED_PARAMETER_H = unused-parameter.h +WARN_ON_USE_H = warn-on-use.h +test_xalloc_die_LDADD = $(LDADD) @LIBINTL@ test_xvasprintf_LDADD = $(LDADD) @LIBINTL@ all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive @@ -1045,14 +2260,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gnulib-tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign gnulib-tests/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gnulib-tests/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign gnulib-tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -1070,178 +2285,502 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-checkLIBRARIES: + -test -z "$(check_LIBRARIES)" || rm -f $(check_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +glthread/$(am__dirstamp): + @$(MKDIR_P) glthread + @: > glthread/$(am__dirstamp) +glthread/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) glthread/$(DEPDIR) + @: > glthread/$(DEPDIR)/$(am__dirstamp) +glthread/thread.$(OBJEXT): glthread/$(am__dirstamp) \ + glthread/$(DEPDIR)/$(am__dirstamp) +unistr/$(am__dirstamp): + @$(MKDIR_P) unistr + @: > unistr/$(am__dirstamp) +unistr/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) unistr/$(DEPDIR) + @: > unistr/$(DEPDIR)/$(am__dirstamp) +unistr/u8-cmp.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +unistr/u8-strlen.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +libtests.a: $(libtests_a_OBJECTS) $(libtests_a_DEPENDENCIES) + $(AM_V_at)-rm -f libtests.a + $(AM_V_AR)$(libtests_a_AR) libtests.a $(libtests_a_OBJECTS) $(libtests_a_LIBADD) + $(AM_V_at)$(RANLIB) libtests.a clean-checkPROGRAMS: - @list='$(check_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +test-alignof$(EXEEXT): $(test_alignof_OBJECTS) $(test_alignof_DEPENDENCIES) + @rm -f test-alignof$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_alignof_OBJECTS) $(test_alignof_LDADD) $(LIBS) test-alloca-opt$(EXEEXT): $(test_alloca_opt_OBJECTS) $(test_alloca_opt_DEPENDENCIES) @rm -f test-alloca-opt$(EXEEXT) - $(LINK) $(test_alloca_opt_OBJECTS) $(test_alloca_opt_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_alloca_opt_OBJECTS) $(test_alloca_opt_LDADD) $(LIBS) +test-areadlink$(EXEEXT): $(test_areadlink_OBJECTS) $(test_areadlink_DEPENDENCIES) + @rm -f test-areadlink$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_areadlink_OBJECTS) $(test_areadlink_LDADD) $(LIBS) test-argmatch$(EXEEXT): $(test_argmatch_OBJECTS) $(test_argmatch_DEPENDENCIES) @rm -f test-argmatch$(EXEEXT) - $(LINK) $(test_argmatch_OBJECTS) $(test_argmatch_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_argmatch_OBJECTS) $(test_argmatch_LDADD) $(LIBS) test-array_list$(EXEEXT): $(test_array_list_OBJECTS) $(test_array_list_DEPENDENCIES) @rm -f test-array_list$(EXEEXT) - $(LINK) $(test_array_list_OBJECTS) $(test_array_list_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_array_list_OBJECTS) $(test_array_list_LDADD) $(LIBS) test-atexit$(EXEEXT): $(test_atexit_OBJECTS) $(test_atexit_DEPENDENCIES) @rm -f test-atexit$(EXEEXT) - $(LINK) $(test_atexit_OBJECTS) $(test_atexit_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_atexit_OBJECTS) $(test_atexit_LDADD) $(LIBS) test-binary-io$(EXEEXT): $(test_binary_io_OBJECTS) $(test_binary_io_DEPENDENCIES) @rm -f test-binary-io$(EXEEXT) - $(LINK) $(test_binary_io_OBJECTS) $(test_binary_io_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_binary_io_OBJECTS) $(test_binary_io_LDADD) $(LIBS) test-byteswap$(EXEEXT): $(test_byteswap_OBJECTS) $(test_byteswap_DEPENDENCIES) @rm -f test-byteswap$(EXEEXT) - $(LINK) $(test_byteswap_OBJECTS) $(test_byteswap_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_byteswap_OBJECTS) $(test_byteswap_LDADD) $(LIBS) test-c-ctype$(EXEEXT): $(test_c_ctype_OBJECTS) $(test_c_ctype_DEPENDENCIES) @rm -f test-c-ctype$(EXEEXT) - $(LINK) $(test_c_ctype_OBJECTS) $(test_c_ctype_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_c_ctype_OBJECTS) $(test_c_ctype_LDADD) $(LIBS) test-c-strcasecmp$(EXEEXT): $(test_c_strcasecmp_OBJECTS) $(test_c_strcasecmp_DEPENDENCIES) @rm -f test-c-strcasecmp$(EXEEXT) - $(LINK) $(test_c_strcasecmp_OBJECTS) $(test_c_strcasecmp_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_c_strcasecmp_OBJECTS) $(test_c_strcasecmp_LDADD) $(LIBS) test-c-strcasestr$(EXEEXT): $(test_c_strcasestr_OBJECTS) $(test_c_strcasestr_DEPENDENCIES) @rm -f test-c-strcasestr$(EXEEXT) - $(LINK) $(test_c_strcasestr_OBJECTS) $(test_c_strcasestr_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_c_strcasestr_OBJECTS) $(test_c_strcasestr_LDADD) $(LIBS) test-c-strncasecmp$(EXEEXT): $(test_c_strncasecmp_OBJECTS) $(test_c_strncasecmp_DEPENDENCIES) @rm -f test-c-strncasecmp$(EXEEXT) - $(LINK) $(test_c_strncasecmp_OBJECTS) $(test_c_strncasecmp_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_c_strncasecmp_OBJECTS) $(test_c_strncasecmp_LDADD) $(LIBS) test-c-strstr$(EXEEXT): $(test_c_strstr_OBJECTS) $(test_c_strstr_DEPENDENCIES) @rm -f test-c-strstr$(EXEEXT) - $(LINK) $(test_c_strstr_OBJECTS) $(test_c_strstr_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_c_strstr_OBJECTS) $(test_c_strstr_LDADD) $(LIBS) test-canonicalize-lgpl$(EXEEXT): $(test_canonicalize_lgpl_OBJECTS) $(test_canonicalize_lgpl_DEPENDENCIES) @rm -f test-canonicalize-lgpl$(EXEEXT) - $(LINK) $(test_canonicalize_lgpl_OBJECTS) $(test_canonicalize_lgpl_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_canonicalize_lgpl_OBJECTS) $(test_canonicalize_lgpl_LDADD) $(LIBS) +test-cloexec$(EXEEXT): $(test_cloexec_OBJECTS) $(test_cloexec_DEPENDENCIES) + @rm -f test-cloexec$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_cloexec_OBJECTS) $(test_cloexec_LDADD) $(LIBS) +test-copy-acl$(EXEEXT): $(test_copy_acl_OBJECTS) $(test_copy_acl_DEPENDENCIES) + @rm -f test-copy-acl$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_copy_acl_OBJECTS) $(test_copy_acl_LDADD) $(LIBS) +test-copy-file$(EXEEXT): $(test_copy_file_OBJECTS) $(test_copy_file_DEPENDENCIES) + @rm -f test-copy-file$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_copy_file_OBJECTS) $(test_copy_file_LDADD) $(LIBS) +test-dup-safer$(EXEEXT): $(test_dup_safer_OBJECTS) $(test_dup_safer_DEPENDENCIES) + @rm -f test-dup-safer$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_dup_safer_OBJECTS) $(test_dup_safer_LDADD) $(LIBS) +test-dup2$(EXEEXT): $(test_dup2_OBJECTS) $(test_dup2_DEPENDENCIES) + @rm -f test-dup2$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_dup2_OBJECTS) $(test_dup2_LDADD) $(LIBS) +test-environ$(EXEEXT): $(test_environ_OBJECTS) $(test_environ_DEPENDENCIES) + @rm -f test-environ$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_environ_OBJECTS) $(test_environ_LDADD) $(LIBS) +test-errno$(EXEEXT): $(test_errno_OBJECTS) $(test_errno_DEPENDENCIES) + @rm -f test-errno$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_errno_OBJECTS) $(test_errno_LDADD) $(LIBS) test-fcntl$(EXEEXT): $(test_fcntl_OBJECTS) $(test_fcntl_DEPENDENCIES) @rm -f test-fcntl$(EXEEXT) - $(LINK) $(test_fcntl_OBJECTS) $(test_fcntl_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_fcntl_OBJECTS) $(test_fcntl_LDADD) $(LIBS) +test-fcntl-h$(EXEEXT): $(test_fcntl_h_OBJECTS) $(test_fcntl_h_DEPENDENCIES) + @rm -f test-fcntl-h$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_fcntl_h_OBJECTS) $(test_fcntl_h_LDADD) $(LIBS) +test-file-has-acl$(EXEEXT): $(test_file_has_acl_OBJECTS) $(test_file_has_acl_DEPENDENCIES) + @rm -f test-file-has-acl$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_file_has_acl_OBJECTS) $(test_file_has_acl_LDADD) $(LIBS) +test-fnmatch$(EXEEXT): $(test_fnmatch_OBJECTS) $(test_fnmatch_DEPENDENCIES) + @rm -f test-fnmatch$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_fnmatch_OBJECTS) $(test_fnmatch_LDADD) $(LIBS) test-fopen$(EXEEXT): $(test_fopen_OBJECTS) $(test_fopen_DEPENDENCIES) @rm -f test-fopen$(EXEEXT) - $(LINK) $(test_fopen_OBJECTS) $(test_fopen_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_fopen_OBJECTS) $(test_fopen_LDADD) $(LIBS) test-fstrcmp$(EXEEXT): $(test_fstrcmp_OBJECTS) $(test_fstrcmp_DEPENDENCIES) @rm -f test-fstrcmp$(EXEEXT) - $(LINK) $(test_fstrcmp_OBJECTS) $(test_fstrcmp_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_fstrcmp_OBJECTS) $(test_fstrcmp_LDADD) $(LIBS) test-getdelim$(EXEEXT): $(test_getdelim_OBJECTS) $(test_getdelim_DEPENDENCIES) @rm -f test-getdelim$(EXEEXT) - $(LINK) $(test_getdelim_OBJECTS) $(test_getdelim_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_getdelim_OBJECTS) $(test_getdelim_LDADD) $(LIBS) +test-getdtablesize$(EXEEXT): $(test_getdtablesize_OBJECTS) $(test_getdtablesize_DEPENDENCIES) + @rm -f test-getdtablesize$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_getdtablesize_OBJECTS) $(test_getdtablesize_LDADD) $(LIBS) test-getline$(EXEEXT): $(test_getline_OBJECTS) $(test_getline_DEPENDENCIES) @rm -f test-getline$(EXEEXT) - $(LINK) $(test_getline_OBJECTS) $(test_getline_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_getline_OBJECTS) $(test_getline_LDADD) $(LIBS) +test-getopt$(EXEEXT): $(test_getopt_OBJECTS) $(test_getopt_DEPENDENCIES) + @rm -f test-getopt$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_getopt_OBJECTS) $(test_getopt_LDADD) $(LIBS) test-gettimeofday$(EXEEXT): $(test_gettimeofday_OBJECTS) $(test_gettimeofday_DEPENDENCIES) @rm -f test-gettimeofday$(EXEEXT) - $(LINK) $(test_gettimeofday_OBJECTS) $(test_gettimeofday_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_gettimeofday_OBJECTS) $(test_gettimeofday_LDADD) $(LIBS) test-iconv$(EXEEXT): $(test_iconv_OBJECTS) $(test_iconv_DEPENDENCIES) @rm -f test-iconv$(EXEEXT) - $(LINK) $(test_iconv_OBJECTS) $(test_iconv_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_iconv_OBJECTS) $(test_iconv_LDADD) $(LIBS) +test-iconv-h$(EXEEXT): $(test_iconv_h_OBJECTS) $(test_iconv_h_DEPENDENCIES) + @rm -f test-iconv-h$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_iconv_h_OBJECTS) $(test_iconv_h_LDADD) $(LIBS) test-linkedhash_list$(EXEEXT): $(test_linkedhash_list_OBJECTS) $(test_linkedhash_list_DEPENDENCIES) @rm -f test-linkedhash_list$(EXEEXT) - $(LINK) $(test_linkedhash_list_OBJECTS) $(test_linkedhash_list_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_linkedhash_list_OBJECTS) $(test_linkedhash_list_LDADD) $(LIBS) test-locale$(EXEEXT): $(test_locale_OBJECTS) $(test_locale_DEPENDENCIES) @rm -f test-locale$(EXEEXT) - $(LINK) $(test_locale_OBJECTS) $(test_locale_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_locale_OBJECTS) $(test_locale_LDADD) $(LIBS) test-localename$(EXEEXT): $(test_localename_OBJECTS) $(test_localename_DEPENDENCIES) @rm -f test-localename$(EXEEXT) - $(LINK) $(test_localename_OBJECTS) $(test_localename_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_localename_OBJECTS) $(test_localename_LDADD) $(LIBS) test-lock$(EXEEXT): $(test_lock_OBJECTS) $(test_lock_DEPENDENCIES) @rm -f test-lock$(EXEEXT) - $(LINK) $(test_lock_OBJECTS) $(test_lock_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_lock_OBJECTS) $(test_lock_LDADD) $(LIBS) +test-lstat$(EXEEXT): $(test_lstat_OBJECTS) $(test_lstat_DEPENDENCIES) + @rm -f test-lstat$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_lstat_OBJECTS) $(test_lstat_LDADD) $(LIBS) test-malloca$(EXEEXT): $(test_malloca_OBJECTS) $(test_malloca_DEPENDENCIES) @rm -f test-malloca$(EXEEXT) - $(LINK) $(test_malloca_OBJECTS) $(test_malloca_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_malloca_OBJECTS) $(test_malloca_LDADD) $(LIBS) +test-mbrtowc$(EXEEXT): $(test_mbrtowc_OBJECTS) $(test_mbrtowc_DEPENDENCIES) + @rm -f test-mbrtowc$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_mbrtowc_OBJECTS) $(test_mbrtowc_LDADD) $(LIBS) +test-mbsinit$(EXEEXT): $(test_mbsinit_OBJECTS) $(test_mbsinit_DEPENDENCIES) + @rm -f test-mbsinit$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_mbsinit_OBJECTS) $(test_mbsinit_LDADD) $(LIBS) +test-mbsrtowcs$(EXEEXT): $(test_mbsrtowcs_OBJECTS) $(test_mbsrtowcs_DEPENDENCIES) + @rm -f test-mbsrtowcs$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_mbsrtowcs_OBJECTS) $(test_mbsrtowcs_LDADD) $(LIBS) test-mbsstr1$(EXEEXT): $(test_mbsstr1_OBJECTS) $(test_mbsstr1_DEPENDENCIES) @rm -f test-mbsstr1$(EXEEXT) - $(LINK) $(test_mbsstr1_OBJECTS) $(test_mbsstr1_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_mbsstr1_OBJECTS) $(test_mbsstr1_LDADD) $(LIBS) test-mbsstr2$(EXEEXT): $(test_mbsstr2_OBJECTS) $(test_mbsstr2_DEPENDENCIES) @rm -f test-mbsstr2$(EXEEXT) - $(LINK) $(test_mbsstr2_OBJECTS) $(test_mbsstr2_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_mbsstr2_OBJECTS) $(test_mbsstr2_LDADD) $(LIBS) test-mbsstr3$(EXEEXT): $(test_mbsstr3_OBJECTS) $(test_mbsstr3_DEPENDENCIES) @rm -f test-mbsstr3$(EXEEXT) - $(LINK) $(test_mbsstr3_OBJECTS) $(test_mbsstr3_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_mbsstr3_OBJECTS) $(test_mbsstr3_LDADD) $(LIBS) +test-memchr$(EXEEXT): $(test_memchr_OBJECTS) $(test_memchr_DEPENDENCIES) + @rm -f test-memchr$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_memchr_OBJECTS) $(test_memchr_LDADD) $(LIBS) test-open$(EXEEXT): $(test_open_OBJECTS) $(test_open_DEPENDENCIES) @rm -f test-open$(EXEEXT) - $(LINK) $(test_open_OBJECTS) $(test_open_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_open_OBJECTS) $(test_open_LDADD) $(LIBS) +test-pipe$(EXEEXT): $(test_pipe_OBJECTS) $(test_pipe_DEPENDENCIES) + @rm -f test-pipe$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_pipe_OBJECTS) $(test_pipe_LDADD) $(LIBS) +test-pipe-filter-ii1$(EXEEXT): $(test_pipe_filter_ii1_OBJECTS) $(test_pipe_filter_ii1_DEPENDENCIES) + @rm -f test-pipe-filter-ii1$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_pipe_filter_ii1_OBJECTS) $(test_pipe_filter_ii1_LDADD) $(LIBS) +test-pipe-filter-ii2-child$(EXEEXT): $(test_pipe_filter_ii2_child_OBJECTS) $(test_pipe_filter_ii2_child_DEPENDENCIES) + @rm -f test-pipe-filter-ii2-child$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_pipe_filter_ii2_child_OBJECTS) $(test_pipe_filter_ii2_child_LDADD) $(LIBS) +test-pipe-filter-ii2-main$(EXEEXT): $(test_pipe_filter_ii2_main_OBJECTS) $(test_pipe_filter_ii2_main_DEPENDENCIES) + @rm -f test-pipe-filter-ii2-main$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_pipe_filter_ii2_main_OBJECTS) $(test_pipe_filter_ii2_main_LDADD) $(LIBS) +test-pipe2$(EXEEXT): $(test_pipe2_OBJECTS) $(test_pipe2_DEPENDENCIES) + @rm -f test-pipe2$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_pipe2_OBJECTS) $(test_pipe2_LDADD) $(LIBS) +test-posix_spawn1$(EXEEXT): $(test_posix_spawn1_OBJECTS) $(test_posix_spawn1_DEPENDENCIES) + @rm -f test-posix_spawn1$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_posix_spawn1_OBJECTS) $(test_posix_spawn1_LDADD) $(LIBS) +test-posix_spawn2$(EXEEXT): $(test_posix_spawn2_OBJECTS) $(test_posix_spawn2_DEPENDENCIES) + @rm -f test-posix_spawn2$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_posix_spawn2_OBJECTS) $(test_posix_spawn2_LDADD) $(LIBS) +test-quotearg-simple$(EXEEXT): $(test_quotearg_simple_OBJECTS) $(test_quotearg_simple_DEPENDENCIES) + @rm -f test-quotearg-simple$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_quotearg_simple_OBJECTS) $(test_quotearg_simple_LDADD) $(LIBS) +test-rawmemchr$(EXEEXT): $(test_rawmemchr_OBJECTS) $(test_rawmemchr_DEPENDENCIES) + @rm -f test-rawmemchr$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_rawmemchr_OBJECTS) $(test_rawmemchr_LDADD) $(LIBS) +test-read-file$(EXEEXT): $(test_read_file_OBJECTS) $(test_read_file_DEPENDENCIES) + @rm -f test-read-file$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_read_file_OBJECTS) $(test_read_file_LDADD) $(LIBS) +test-readlink$(EXEEXT): $(test_readlink_OBJECTS) $(test_readlink_DEPENDENCIES) + @rm -f test-readlink$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_readlink_OBJECTS) $(test_readlink_LDADD) $(LIBS) +test-rmdir$(EXEEXT): $(test_rmdir_OBJECTS) $(test_rmdir_DEPENDENCIES) + @rm -f test-rmdir$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_rmdir_OBJECTS) $(test_rmdir_LDADD) $(LIBS) +test-sameacls$(EXEEXT): $(test_sameacls_OBJECTS) $(test_sameacls_DEPENDENCIES) + @rm -f test-sameacls$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sameacls_OBJECTS) $(test_sameacls_LDADD) $(LIBS) +test-sched$(EXEEXT): $(test_sched_OBJECTS) $(test_sched_DEPENDENCIES) + @rm -f test-sched$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sched_OBJECTS) $(test_sched_LDADD) $(LIBS) +test-set-mode-acl$(EXEEXT): $(test_set_mode_acl_OBJECTS) $(test_set_mode_acl_DEPENDENCIES) + @rm -f test-set-mode-acl$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_set_mode_acl_OBJECTS) $(test_set_mode_acl_LDADD) $(LIBS) +test-setenv$(EXEEXT): $(test_setenv_OBJECTS) $(test_setenv_DEPENDENCIES) + @rm -f test-setenv$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_setenv_OBJECTS) $(test_setenv_LDADD) $(LIBS) +test-sigaction$(EXEEXT): $(test_sigaction_OBJECTS) $(test_sigaction_DEPENDENCIES) + @rm -f test-sigaction$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sigaction_OBJECTS) $(test_sigaction_LDADD) $(LIBS) +test-signal$(EXEEXT): $(test_signal_OBJECTS) $(test_signal_DEPENDENCIES) + @rm -f test-signal$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_signal_OBJECTS) $(test_signal_LDADD) $(LIBS) +test-sigpipe$(EXEEXT): $(test_sigpipe_OBJECTS) $(test_sigpipe_DEPENDENCIES) + @rm -f test-sigpipe$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sigpipe_OBJECTS) $(test_sigpipe_LDADD) $(LIBS) test-snprintf$(EXEEXT): $(test_snprintf_OBJECTS) $(test_snprintf_DEPENDENCIES) @rm -f test-snprintf$(EXEEXT) - $(LINK) $(test_snprintf_OBJECTS) $(test_snprintf_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_snprintf_OBJECTS) $(test_snprintf_LDADD) $(LIBS) +test-spawn$(EXEEXT): $(test_spawn_OBJECTS) $(test_spawn_DEPENDENCIES) + @rm -f test-spawn$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_spawn_OBJECTS) $(test_spawn_LDADD) $(LIBS) +test-stat$(EXEEXT): $(test_stat_OBJECTS) $(test_stat_DEPENDENCIES) + @rm -f test-stat$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_stat_OBJECTS) $(test_stat_LDADD) $(LIBS) test-stdbool$(EXEEXT): $(test_stdbool_OBJECTS) $(test_stdbool_DEPENDENCIES) @rm -f test-stdbool$(EXEEXT) - $(LINK) $(test_stdbool_OBJECTS) $(test_stdbool_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_stdbool_OBJECTS) $(test_stdbool_LDADD) $(LIBS) +test-stddef$(EXEEXT): $(test_stddef_OBJECTS) $(test_stddef_DEPENDENCIES) + @rm -f test-stddef$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_stddef_OBJECTS) $(test_stddef_LDADD) $(LIBS) test-stdint$(EXEEXT): $(test_stdint_OBJECTS) $(test_stdint_DEPENDENCIES) @rm -f test-stdint$(EXEEXT) - $(LINK) $(test_stdint_OBJECTS) $(test_stdint_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_stdint_OBJECTS) $(test_stdint_LDADD) $(LIBS) test-stdio$(EXEEXT): $(test_stdio_OBJECTS) $(test_stdio_DEPENDENCIES) @rm -f test-stdio$(EXEEXT) - $(LINK) $(test_stdio_OBJECTS) $(test_stdio_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_stdio_OBJECTS) $(test_stdio_LDADD) $(LIBS) test-stdlib$(EXEEXT): $(test_stdlib_OBJECTS) $(test_stdlib_DEPENDENCIES) @rm -f test-stdlib$(EXEEXT) - $(LINK) $(test_stdlib_OBJECTS) $(test_stdlib_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_stdlib_OBJECTS) $(test_stdlib_LDADD) $(LIBS) +test-strchrnul$(EXEEXT): $(test_strchrnul_OBJECTS) $(test_strchrnul_DEPENDENCIES) + @rm -f test-strchrnul$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_strchrnul_OBJECTS) $(test_strchrnul_LDADD) $(LIBS) test-strerror$(EXEEXT): $(test_strerror_OBJECTS) $(test_strerror_DEPENDENCIES) @rm -f test-strerror$(EXEEXT) - $(LINK) $(test_strerror_OBJECTS) $(test_strerror_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_strerror_OBJECTS) $(test_strerror_LDADD) $(LIBS) test-striconv$(EXEEXT): $(test_striconv_OBJECTS) $(test_striconv_DEPENDENCIES) @rm -f test-striconv$(EXEEXT) - $(LINK) $(test_striconv_OBJECTS) $(test_striconv_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_striconv_OBJECTS) $(test_striconv_LDADD) $(LIBS) +test-striconveh$(EXEEXT): $(test_striconveh_OBJECTS) $(test_striconveh_DEPENDENCIES) + @rm -f test-striconveh$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_striconveh_OBJECTS) $(test_striconveh_LDADD) $(LIBS) +test-striconveha$(EXEEXT): $(test_striconveha_OBJECTS) $(test_striconveha_DEPENDENCIES) + @rm -f test-striconveha$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_striconveha_OBJECTS) $(test_striconveha_LDADD) $(LIBS) test-string$(EXEEXT): $(test_string_OBJECTS) $(test_string_DEPENDENCIES) @rm -f test-string$(EXEEXT) - $(LINK) $(test_string_OBJECTS) $(test_string_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_string_OBJECTS) $(test_string_LDADD) $(LIBS) +test-strstr$(EXEEXT): $(test_strstr_OBJECTS) $(test_strstr_DEPENDENCIES) + @rm -f test-strstr$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_strstr_OBJECTS) $(test_strstr_LDADD) $(LIBS) +test-symlink$(EXEEXT): $(test_symlink_OBJECTS) $(test_symlink_DEPENDENCIES) + @rm -f test-symlink$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_symlink_OBJECTS) $(test_symlink_LDADD) $(LIBS) +test-sys_select$(EXEEXT): $(test_sys_select_OBJECTS) $(test_sys_select_DEPENDENCIES) + @rm -f test-sys_select$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sys_select_OBJECTS) $(test_sys_select_LDADD) $(LIBS) +test-sys_socket$(EXEEXT): $(test_sys_socket_OBJECTS) $(test_sys_socket_DEPENDENCIES) + @rm -f test-sys_socket$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sys_socket_OBJECTS) $(test_sys_socket_LDADD) $(LIBS) test-sys_stat$(EXEEXT): $(test_sys_stat_OBJECTS) $(test_sys_stat_DEPENDENCIES) @rm -f test-sys_stat$(EXEEXT) - $(LINK) $(test_sys_stat_OBJECTS) $(test_sys_stat_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_sys_stat_OBJECTS) $(test_sys_stat_LDADD) $(LIBS) test-sys_time$(EXEEXT): $(test_sys_time_OBJECTS) $(test_sys_time_DEPENDENCIES) @rm -f test-sys_time$(EXEEXT) - $(LINK) $(test_sys_time_OBJECTS) $(test_sys_time_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_sys_time_OBJECTS) $(test_sys_time_LDADD) $(LIBS) +test-sys_wait$(EXEEXT): $(test_sys_wait_OBJECTS) $(test_sys_wait_DEPENDENCIES) + @rm -f test-sys_wait$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_sys_wait_OBJECTS) $(test_sys_wait_LDADD) $(LIBS) test-term-ostream$(EXEEXT): $(test_term_ostream_OBJECTS) $(test_term_ostream_DEPENDENCIES) @rm -f test-term-ostream$(EXEEXT) - $(LINK) $(test_term_ostream_OBJECTS) $(test_term_ostream_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_term_ostream_OBJECTS) $(test_term_ostream_LDADD) $(LIBS) +test-time$(EXEEXT): $(test_time_OBJECTS) $(test_time_DEPENDENCIES) + @rm -f test-time$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS) test-tls$(EXEEXT): $(test_tls_OBJECTS) $(test_tls_DEPENDENCIES) @rm -f test-tls$(EXEEXT) - $(LINK) $(test_tls_OBJECTS) $(test_tls_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_tls_OBJECTS) $(test_tls_LDADD) $(LIBS) +unistr/test-u16-mbtouc.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u16-mbtouc$(EXEEXT): $(test_u16_mbtouc_OBJECTS) $(test_u16_mbtouc_DEPENDENCIES) + @rm -f test-u16-mbtouc$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u16_mbtouc_OBJECTS) $(test_u16_mbtouc_LDADD) $(LIBS) +unistr/test-u8-check.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-check$(EXEEXT): $(test_u8_check_OBJECTS) $(test_u8_check_DEPENDENCIES) + @rm -f test-u8-check$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_check_OBJECTS) $(test_u8_check_LDADD) $(LIBS) +unistr/test-u8-cmp.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-cmp$(EXEEXT): $(test_u8_cmp_OBJECTS) $(test_u8_cmp_DEPENDENCIES) + @rm -f test-u8-cmp$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_cmp_OBJECTS) $(test_u8_cmp_LDADD) $(LIBS) +uniconv/$(am__dirstamp): + @$(MKDIR_P) uniconv + @: > uniconv/$(am__dirstamp) +uniconv/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) uniconv/$(DEPDIR) + @: > uniconv/$(DEPDIR)/$(am__dirstamp) +uniconv/test-u8-conv-from-enc.$(OBJEXT): uniconv/$(am__dirstamp) \ + uniconv/$(DEPDIR)/$(am__dirstamp) +test-u8-conv-from-enc$(EXEEXT): $(test_u8_conv_from_enc_OBJECTS) $(test_u8_conv_from_enc_DEPENDENCIES) + @rm -f test-u8-conv-from-enc$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_conv_from_enc_OBJECTS) $(test_u8_conv_from_enc_LDADD) $(LIBS) +unistr/test-u8-mblen.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-mblen$(EXEEXT): $(test_u8_mblen_OBJECTS) $(test_u8_mblen_DEPENDENCIES) + @rm -f test-u8-mblen$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_mblen_OBJECTS) $(test_u8_mblen_LDADD) $(LIBS) +unistr/test-u8-mbtouc.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-mbtouc$(EXEEXT): $(test_u8_mbtouc_OBJECTS) $(test_u8_mbtouc_DEPENDENCIES) + @rm -f test-u8-mbtouc$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_mbtouc_OBJECTS) $(test_u8_mbtouc_LDADD) $(LIBS) +unistr/test-u8-mbtouc-unsafe.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-mbtouc-unsafe$(EXEEXT): $(test_u8_mbtouc_unsafe_OBJECTS) $(test_u8_mbtouc_unsafe_DEPENDENCIES) + @rm -f test-u8-mbtouc-unsafe$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_mbtouc_unsafe_OBJECTS) $(test_u8_mbtouc_unsafe_LDADD) $(LIBS) +unistr/test-u8-mbtoucr.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-mbtoucr$(EXEEXT): $(test_u8_mbtoucr_OBJECTS) $(test_u8_mbtoucr_DEPENDENCIES) + @rm -f test-u8-mbtoucr$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_mbtoucr_OBJECTS) $(test_u8_mbtoucr_LDADD) $(LIBS) +unilbrk/$(am__dirstamp): + @$(MKDIR_P) unilbrk + @: > unilbrk/$(am__dirstamp) +unilbrk/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) unilbrk/$(DEPDIR) + @: > unilbrk/$(DEPDIR)/$(am__dirstamp) +unilbrk/test-u8-possible-linebreaks.$(OBJEXT): \ + unilbrk/$(am__dirstamp) unilbrk/$(DEPDIR)/$(am__dirstamp) +test-u8-possible-linebreaks$(EXEEXT): $(test_u8_possible_linebreaks_OBJECTS) $(test_u8_possible_linebreaks_DEPENDENCIES) + @rm -f test-u8-possible-linebreaks$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_possible_linebreaks_OBJECTS) $(test_u8_possible_linebreaks_LDADD) $(LIBS) +unistr/test-u8-prev.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-prev$(EXEEXT): $(test_u8_prev_OBJECTS) $(test_u8_prev_DEPENDENCIES) + @rm -f test-u8-prev$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_prev_OBJECTS) $(test_u8_prev_LDADD) $(LIBS) +unistr/test-u8-strlen.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-strlen$(EXEEXT): $(test_u8_strlen_OBJECTS) $(test_u8_strlen_DEPENDENCIES) + @rm -f test-u8-strlen$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_strlen_OBJECTS) $(test_u8_strlen_LDADD) $(LIBS) +unistr/test-u8-uctomb.$(OBJEXT): unistr/$(am__dirstamp) \ + unistr/$(DEPDIR)/$(am__dirstamp) +test-u8-uctomb$(EXEEXT): $(test_u8_uctomb_OBJECTS) $(test_u8_uctomb_DEPENDENCIES) + @rm -f test-u8-uctomb$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_uctomb_OBJECTS) $(test_u8_uctomb_LDADD) $(LIBS) +unilbrk/test-u8-width-linebreaks.$(OBJEXT): unilbrk/$(am__dirstamp) \ + unilbrk/$(DEPDIR)/$(am__dirstamp) +test-u8-width-linebreaks$(EXEEXT): $(test_u8_width_linebreaks_OBJECTS) $(test_u8_width_linebreaks_DEPENDENCIES) + @rm -f test-u8-width-linebreaks$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_u8_width_linebreaks_OBJECTS) $(test_u8_width_linebreaks_LDADD) $(LIBS) +uniwidth/$(am__dirstamp): + @$(MKDIR_P) uniwidth + @: > uniwidth/$(am__dirstamp) +uniwidth/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) uniwidth/$(DEPDIR) + @: > uniwidth/$(DEPDIR)/$(am__dirstamp) +uniwidth/test-uc_width.$(OBJEXT): uniwidth/$(am__dirstamp) \ + uniwidth/$(DEPDIR)/$(am__dirstamp) test-uc_width$(EXEEXT): $(test_uc_width_OBJECTS) $(test_uc_width_DEPENDENCIES) @rm -f test-uc_width$(EXEEXT) - $(LINK) $(test_uc_width_OBJECTS) $(test_uc_width_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_uc_width_OBJECTS) $(test_uc_width_LDADD) $(LIBS) +uniwidth/test-uc_width2.$(OBJEXT): uniwidth/$(am__dirstamp) \ + uniwidth/$(DEPDIR)/$(am__dirstamp) +test-uc_width2$(EXEEXT): $(test_uc_width2_OBJECTS) $(test_uc_width2_DEPENDENCIES) + @rm -f test-uc_width2$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_uc_width2_OBJECTS) $(test_uc_width2_LDADD) $(LIBS) +unilbrk/test-ulc-width-linebreaks.$(OBJEXT): unilbrk/$(am__dirstamp) \ + unilbrk/$(DEPDIR)/$(am__dirstamp) +test-ulc-width-linebreaks$(EXEEXT): $(test_ulc_width_linebreaks_OBJECTS) $(test_ulc_width_linebreaks_DEPENDENCIES) + @rm -f test-ulc-width-linebreaks$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_ulc_width_linebreaks_OBJECTS) $(test_ulc_width_linebreaks_LDADD) $(LIBS) +uniname/$(am__dirstamp): + @$(MKDIR_P) uniname + @: > uniname/$(am__dirstamp) +uniname/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) uniname/$(DEPDIR) + @: > uniname/$(DEPDIR)/$(am__dirstamp) +uniname/test-uninames.$(OBJEXT): uniname/$(am__dirstamp) \ + uniname/$(DEPDIR)/$(am__dirstamp) test-uninames$(EXEEXT): $(test_uninames_OBJECTS) $(test_uninames_DEPENDENCIES) @rm -f test-uninames$(EXEEXT) - $(LINK) $(test_uninames_OBJECTS) $(test_uninames_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_uninames_OBJECTS) $(test_uninames_LDADD) $(LIBS) test-unistd$(EXEEXT): $(test_unistd_OBJECTS) $(test_unistd_DEPENDENCIES) @rm -f test-unistd$(EXEEXT) - $(LINK) $(test_unistd_OBJECTS) $(test_unistd_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_unistd_OBJECTS) $(test_unistd_LDADD) $(LIBS) +test-unsetenv$(EXEEXT): $(test_unsetenv_OBJECTS) $(test_unsetenv_DEPENDENCIES) + @rm -f test-unsetenv$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_unsetenv_OBJECTS) $(test_unsetenv_LDADD) $(LIBS) test-vasnprintf$(EXEEXT): $(test_vasnprintf_OBJECTS) $(test_vasnprintf_DEPENDENCIES) @rm -f test-vasnprintf$(EXEEXT) - $(LINK) $(test_vasnprintf_OBJECTS) $(test_vasnprintf_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_vasnprintf_OBJECTS) $(test_vasnprintf_LDADD) $(LIBS) test-vasprintf$(EXEEXT): $(test_vasprintf_OBJECTS) $(test_vasprintf_DEPENDENCIES) @rm -f test-vasprintf$(EXEEXT) - $(LINK) $(test_vasprintf_OBJECTS) $(test_vasprintf_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_vasprintf_OBJECTS) $(test_vasprintf_LDADD) $(LIBS) +test-verify$(EXEEXT): $(test_verify_OBJECTS) $(test_verify_DEPENDENCIES) + @rm -f test-verify$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_verify_OBJECTS) $(test_verify_LDADD) $(LIBS) test-vsnprintf$(EXEEXT): $(test_vsnprintf_OBJECTS) $(test_vsnprintf_DEPENDENCIES) @rm -f test-vsnprintf$(EXEEXT) - $(LINK) $(test_vsnprintf_OBJECTS) $(test_vsnprintf_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_vsnprintf_OBJECTS) $(test_vsnprintf_LDADD) $(LIBS) test-wchar$(EXEEXT): $(test_wchar_OBJECTS) $(test_wchar_DEPENDENCIES) @rm -f test-wchar$(EXEEXT) - $(LINK) $(test_wchar_OBJECTS) $(test_wchar_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_wchar_OBJECTS) $(test_wchar_LDADD) $(LIBS) test-wctype$(EXEEXT): $(test_wctype_OBJECTS) $(test_wctype_DEPENDENCIES) @rm -f test-wctype$(EXEEXT) - $(LINK) $(test_wctype_OBJECTS) $(test_wctype_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_wctype_OBJECTS) $(test_wctype_LDADD) $(LIBS) test-wcwidth$(EXEEXT): $(test_wcwidth_OBJECTS) $(test_wcwidth_DEPENDENCIES) @rm -f test-wcwidth$(EXEEXT) - $(LINK) $(test_wcwidth_OBJECTS) $(test_wcwidth_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_wcwidth_OBJECTS) $(test_wcwidth_LDADD) $(LIBS) +test-xalloc-die$(EXEEXT): $(test_xalloc_die_OBJECTS) $(test_xalloc_die_DEPENDENCIES) + @rm -f test-xalloc-die$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(test_xalloc_die_OBJECTS) $(test_xalloc_die_LDADD) $(LIBS) test-xvasprintf$(EXEEXT): $(test_xvasprintf_OBJECTS) $(test_xvasprintf_DEPENDENCIES) @rm -f test-xvasprintf$(EXEEXT) - $(LINK) $(test_xvasprintf_OBJECTS) $(test_xvasprintf_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(test_xvasprintf_OBJECTS) $(test_xvasprintf_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f glthread/thread.$(OBJEXT) + -rm -f uniconv/test-u8-conv-from-enc.$(OBJEXT) + -rm -f unilbrk/test-u8-possible-linebreaks.$(OBJEXT) + -rm -f unilbrk/test-u8-width-linebreaks.$(OBJEXT) + -rm -f unilbrk/test-ulc-width-linebreaks.$(OBJEXT) + -rm -f uniname/test-uninames.$(OBJEXT) + -rm -f unistr/test-u16-mbtouc.$(OBJEXT) + -rm -f unistr/test-u8-check.$(OBJEXT) + -rm -f unistr/test-u8-cmp.$(OBJEXT) + -rm -f unistr/test-u8-mblen.$(OBJEXT) + -rm -f unistr/test-u8-mbtouc-unsafe.$(OBJEXT) + -rm -f unistr/test-u8-mbtouc.$(OBJEXT) + -rm -f unistr/test-u8-mbtoucr.$(OBJEXT) + -rm -f unistr/test-u8-prev.$(OBJEXT) + -rm -f unistr/test-u8-strlen.$(OBJEXT) + -rm -f unistr/test-u8-uctomb.$(OBJEXT) + -rm -f unistr/u8-cmp.$(OBJEXT) + -rm -f unistr/u8-strlen.$(OBJEXT) + -rm -f uniwidth/test-uc_width.$(OBJEXT) + -rm -f uniwidth/test-uc_width2.$(OBJEXT) distclean-compile: -rm -f *.tab.c +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getpagesize.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/putenv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/read-file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symlink.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-alignof.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-alloca-opt.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-areadlink.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-argmatch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-array_list.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-atexit.Po@am__quote@ @@ -1253,94 +2792,143 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-c-strncasecmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-c-strstr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-canonicalize-lgpl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-cloexec.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-copy-acl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-copy-file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dup-safer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-dup2.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-environ.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-errno.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-fcntl-h.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-fcntl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-file-has-acl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-fnmatch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-fopen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-fstrcmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-getdelim.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-getdtablesize.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-getline.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-gettimeofday.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-iconv-h.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-iconv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-linkedhash_list.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-locale.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-localename.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-lock.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-lstat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-malloca.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbrtowc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbsinit.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbsrtowcs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbsstr1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbsstr2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-mbsstr3.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-memchr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-open.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-pipe-filter-ii1.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-pipe-filter-ii2-child.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-pipe-filter-ii2-main.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-pipe.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-pipe2.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-posix_spawn1.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-posix_spawn2.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-quotearg-simple.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-rawmemchr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-read-file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-readlink.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-rmdir.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sameacls.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sched.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-set-mode-acl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-setenv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sigaction.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-signal.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sigpipe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-snprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-spawn.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stdbool.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stddef.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stdint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stdio.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-stdlib.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-strchrnul.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-strerror.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-striconv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-striconveh.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-striconveha.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-string.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-strstr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-symlink.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sys_select.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sys_socket.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sys_stat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sys_time.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-sys_wait.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-term-ostream.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-time.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-tls.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-uc_width.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-uninames.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-unistd.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-unsetenv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-vasnprintf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-vasprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-verify.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-vsnprintf.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-wchar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-wctype.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-wcwidth.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xalloc-die.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xvasprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wctob.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@glthread/$(DEPDIR)/thread.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@uniconv/$(DEPDIR)/test-u8-conv-from-enc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unilbrk/$(DEPDIR)/test-u8-possible-linebreaks.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unilbrk/$(DEPDIR)/test-u8-width-linebreaks.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unilbrk/$(DEPDIR)/test-ulc-width-linebreaks.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@uniname/$(DEPDIR)/test-uninames.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u16-mbtouc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-check.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-cmp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-mblen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-mbtouc-unsafe.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-mbtouc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-mbtoucr.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-prev.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-strlen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/test-u8-uctomb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/u8-cmp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@unistr/$(DEPDIR)/u8-strlen.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@uniwidth/$(DEPDIR)/test-uc_width.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@uniwidth/$(DEPDIR)/test-uc_width2.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< -test-uc_width.o: uniwidth/test-uc_width.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-uc_width.o -MD -MP -MF $(DEPDIR)/test-uc_width.Tpo -c -o test-uc_width.o `test -f 'uniwidth/test-uc_width.c' || echo '$(srcdir)/'`uniwidth/test-uc_width.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-uc_width.Tpo $(DEPDIR)/test-uc_width.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='uniwidth/test-uc_width.c' object='test-uc_width.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-uc_width.o `test -f 'uniwidth/test-uc_width.c' || echo '$(srcdir)/'`uniwidth/test-uc_width.c - -test-uc_width.obj: uniwidth/test-uc_width.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-uc_width.obj -MD -MP -MF $(DEPDIR)/test-uc_width.Tpo -c -o test-uc_width.obj `if test -f 'uniwidth/test-uc_width.c'; then $(CYGPATH_W) 'uniwidth/test-uc_width.c'; else $(CYGPATH_W) '$(srcdir)/uniwidth/test-uc_width.c'; fi` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-uc_width.Tpo $(DEPDIR)/test-uc_width.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='uniwidth/test-uc_width.c' object='test-uc_width.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-uc_width.obj `if test -f 'uniwidth/test-uc_width.c'; then $(CYGPATH_W) 'uniwidth/test-uc_width.c'; else $(CYGPATH_W) '$(srcdir)/uniwidth/test-uc_width.c'; fi` - -test-uninames.o: uniname/test-uninames.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-uninames.o -MD -MP -MF $(DEPDIR)/test-uninames.Tpo -c -o test-uninames.o `test -f 'uniname/test-uninames.c' || echo '$(srcdir)/'`uniname/test-uninames.c -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-uninames.Tpo $(DEPDIR)/test-uninames.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='uniname/test-uninames.c' object='test-uninames.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-uninames.o `test -f 'uniname/test-uninames.c' || echo '$(srcdir)/'`uniname/test-uninames.c - -test-uninames.obj: uniname/test-uninames.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test-uninames.obj -MD -MP -MF $(DEPDIR)/test-uninames.Tpo -c -o test-uninames.obj `if test -f 'uniname/test-uninames.c'; then $(CYGPATH_W) 'uniname/test-uninames.c'; else $(CYGPATH_W) '$(srcdir)/uniname/test-uninames.c'; fi` -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test-uninames.Tpo $(DEPDIR)/test-uninames.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='uniname/test-uninames.c' object='test-uninames.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test-uninames.obj `if test -f 'uniname/test-uninames.c'; then $(CYGPATH_W) 'uniname/test-uninames.c'; else $(CYGPATH_W) '$(srcdir)/uniname/test-uninames.c'; fi` - mostlyclean-libtool: -rm -f *.lo @@ -1354,7 +2942,7 @@ # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -1371,7 +2959,7 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ @@ -1379,7 +2967,7 @@ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -1405,16 +2993,16 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) @@ -1422,14 +3010,14 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -1441,47 +3029,52 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ + $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ @@ -1490,49 +3083,63 @@ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ + col=$$red; res=XPASS; \ ;; \ *) \ - echo "PASS: $$tst"; \ + col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ + col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ + col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ - echo "SKIP: $$tst"; \ + col=$$blu; res=SKIP; \ fi; \ + echo "$${col}$$res$${std}: $$tst"; \ done; \ + if test "$$all" -eq 1; then \ + tests="test"; \ + All=""; \ + else \ + tests="tests"; \ + All="All "; \ + fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ + banner="$$All$$all $$tests passed"; \ else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ + banner="$$failed of $$all $$tests failed"; \ else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ - skipped="($$skip tests were not run)"; \ + if test "$$skip" -eq 1; then \ + skipped="($$skip test was not run)"; \ + else \ + skipped="($$skip tests were not run)"; \ + fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ @@ -1543,11 +3150,15 @@ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ - echo "$$dashes"; \ + if test "$$failed" -eq 0; then \ + echo "$$grn$$dashes"; \ + else \ + echo "$$red$$dashes"; \ + fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ - echo "$$dashes"; \ + echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi @@ -1567,39 +3178,54 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) $(check_LIBRARIES) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive -all-am: Makefile $(PROGRAMS) $(HEADERS) +all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: installdirs-recursive installdirs-am: install: $(BUILT_SOURCES) @@ -1625,6 +3251,19 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f glthread/$(DEPDIR)/$(am__dirstamp) + -rm -f glthread/$(am__dirstamp) + -rm -f uniconv/$(DEPDIR)/$(am__dirstamp) + -rm -f uniconv/$(am__dirstamp) + -rm -f unilbrk/$(DEPDIR)/$(am__dirstamp) + -rm -f unilbrk/$(am__dirstamp) + -rm -f uniname/$(DEPDIR)/$(am__dirstamp) + -rm -f uniname/$(am__dirstamp) + -rm -f unistr/$(DEPDIR)/$(am__dirstamp) + -rm -f unistr/$(am__dirstamp) + -rm -f uniwidth/$(DEPDIR)/$(am__dirstamp) + -rm -f uniwidth/$(am__dirstamp) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -1634,11 +3273,12 @@ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive -clean-am: clean-checkPROGRAMS clean-generic clean-libtool clean-local \ +clean-am: clean-checkLIBRARIES clean-checkPROGRAMS clean-generic \ + clean-libtool clean-local clean-noinstLIBRARIES \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ./$(DEPDIR) glthread/$(DEPDIR) uniconv/$(DEPDIR) unilbrk/$(DEPDIR) uniname/$(DEPDIR) unistr/$(DEPDIR) uniwidth/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -1649,6 +3289,8 @@ html: html-recursive +html-am: + info: info-recursive info-am: @@ -1657,22 +3299,32 @@ install-dvi: install-dvi-recursive +install-dvi-am: + install-exec-am: install-html: install-html-recursive +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: install-pdf: install-pdf-recursive +install-pdf-am: + install-ps: install-ps-recursive +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -rf ./$(DEPDIR) + -rm -rf ./$(DEPDIR) glthread/$(DEPDIR) uniconv/$(DEPDIR) unilbrk/$(DEPDIR) uniname/$(DEPDIR) unistr/$(DEPDIR) uniwidth/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -1691,12 +3343,14 @@ uninstall-am: -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ + check-am ctags-recursive install install-am install-strip \ + tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-TESTS check-am clean \ - clean-checkPROGRAMS clean-generic clean-libtool clean-local \ + clean-checkLIBRARIES clean-checkPROGRAMS clean-generic \ + clean-libtool clean-local clean-noinstLIBRARIES \ clean-noinstPROGRAMS ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ @@ -1710,21 +3364,62 @@ mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am tags \ tags-recursive uninstall uninstall-am - -test-moo-root.h test-moo-root.c root.priv.h root.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-root.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-root.oo.c $(srcdir)/test-moo-root.oo.h - -test-moo-sub1.h test-moo-sub1.c sub1.priv.h sub1.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub1.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub1.oo.c $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h - -test-moo-sub2.h test-moo-sub2.c sub2.priv.h sub2.vt.h : $(top_srcdir)/build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub2.oo.h test-moo-sub2.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub2.oo.c $(srcdir)/test-moo-sub2.oo.h $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h - -test-moo-aroot.h test-moo-aroot.c aroot.priv.h aroot.vt.h : $(top_srcdir)/build-aux/moopp test-moo-aroot.oo.h test-moo-aroot.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-aroot.oo.c $(srcdir)/test-moo-aroot.oo.h - -test-moo-asub1.h test-moo-asub1.c asub1.priv.h asub1.vt.h : $(top_srcdir)/build-aux/moopp test-moo-aroot.oo.h test-moo-asub1.oo.h test-moo-asub1.oo.c - $(top_srcdir)/build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-asub1.oo.c $(srcdir)/test-moo-asub1.oo.h $(srcdir)/test-moo-aroot.oo.h +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ + +test-moo-root.h test-moo-root.c root.priv.h root.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-root.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-root.oo.c $(srcdir)/test-moo-root.oo.h + +test-moo-sub1.h test-moo-sub1.c sub1.priv.h sub1.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub1.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub1.oo.c $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h + +test-moo-sub2.h test-moo-sub2.c sub2.priv.h sub2.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-root.oo.h test-moo-sub1.oo.h test-moo-sub2.oo.h test-moo-sub2.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-sub2.oo.c $(srcdir)/test-moo-sub2.oo.h $(srcdir)/test-moo-sub1.oo.h $(srcdir)/test-moo-root.oo.h + +test-moo-aroot.h test-moo-aroot.c aroot.priv.h aroot.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-aroot.oo.h test-moo-aroot.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-aroot.oo.c $(srcdir)/test-moo-aroot.oo.h + +test-moo-asub1.h test-moo-asub1.c asub1.priv.h asub1.vt.h : $(top_srcdir)/../build-aux/moopp test-moo-aroot.oo.h test-moo-asub1.oo.h test-moo-asub1.oo.c + $(top_srcdir)/../build-aux/moopp $(MOOPPFLAGS) $(srcdir)/test-moo-asub1.oo.c $(srcdir)/test-moo-asub1.oo.h $(srcdir)/test-moo-aroot.oo.h +@POSIX_SPAWN_PORTED_TRUE@test-posix_spawn1.sh: test-posix_spawn1.in.sh +@POSIX_SPAWN_PORTED_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \ +@POSIX_SPAWN_PORTED_TRUE@ cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \ +@POSIX_SPAWN_PORTED_TRUE@ mv $@-t $@ +@POSIX_SPAWN_PORTED_TRUE@test-posix_spawn2.sh: test-posix_spawn2.in.sh +@POSIX_SPAWN_PORTED_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \ +@POSIX_SPAWN_PORTED_TRUE@ cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \ +@POSIX_SPAWN_PORTED_TRUE@ mv $@-t $@ +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ # Clean up after Solaris cc. clean-local: @@ -1738,7 +3433,6 @@ done; \ : -# Rules generated and collected by gnulib-tool. # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/gnulib-tests/putenv.c gettext-0.18.1.1/gettext-tools/gnulib-tests/putenv.c --- gettext-0.17/gettext-tools/gnulib-tests/putenv.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/putenv.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,132 @@ +/* Copyright (C) 1991, 1994, 1997-1998, 2000, 2003-2010 Free Software + Foundation, Inc. + + NOTE: The canonical source of this file is maintained with the GNU C + Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 3 of the License, or any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include + +/* Include errno.h *after* sys/types.h to work around header problems + on AIX 3.2.5. */ +#include +#ifndef __set_errno +# define __set_errno(ev) ((errno) = (ev)) +#endif + +#include +#include + +#if HAVE_GNU_LD +# define environ __environ +#else +extern char **environ; +#endif + +#if _LIBC +/* This lock protects against simultaneous modifications of `environ'. */ +# include +__libc_lock_define_initialized (static, envlock) +# define LOCK __libc_lock_lock (envlock) +# define UNLOCK __libc_lock_unlock (envlock) +#else +# define LOCK +# define UNLOCK +#endif + +static int +_unsetenv (const char *name) +{ + size_t len; + char **ep; + + if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) + { + __set_errno (EINVAL); + return -1; + } + + len = strlen (name); + + LOCK; + + ep = environ; + while (*ep != NULL) + if (!strncmp (*ep, name, len) && (*ep)[len] == '=') + { + /* Found it. Remove this pointer by moving later ones back. */ + char **dp = ep; + + do + dp[0] = dp[1]; + while (*dp++); + /* Continue the loop in case NAME appears again. */ + } + else + ++ep; + + UNLOCK; + + return 0; +} + + +/* Put STRING, which is of the form "NAME=VALUE", in the environment. + If STRING contains no `=', then remove STRING from the environment. */ +int +putenv (char *string) +{ + const char *const name_end = strchr (string, '='); + register size_t size; + register char **ep; + + if (name_end == NULL) + { + /* Remove the variable from the environment. */ + return _unsetenv (string); + } + + size = 0; + for (ep = environ; *ep != NULL; ++ep) + if (!strncmp (*ep, string, name_end - string) && + (*ep)[name_end - string] == '=') + break; + else + ++size; + + if (*ep == NULL) + { + static char **last_environ = NULL; + char **new_environ = (char **) malloc ((size + 2) * sizeof (char *)); + if (new_environ == NULL) + return -1; + (void) memcpy ((void *) new_environ, (void *) environ, + size * sizeof (char *)); + new_environ[size] = (char *) string; + new_environ[size + 1] = NULL; + free (last_environ); + last_environ = new_environ; + environ = new_environ; + } + else + *ep = string; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/read-file.c gettext-0.18.1.1/gettext-tools/gnulib-tests/read-file.c --- gettext-0.17/gettext-tools/gnulib-tests/read-file.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/read-file.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,136 @@ +/* read-file.c -- read file contents into a string + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. + Written by Simon Josefsson and Bruno Haible. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +#include "read-file.h" + +/* Get realloc, free. */ +#include + +/* Get errno. */ +#include + +/* Read a STREAM and return a newly allocated string with the content, + and set *LENGTH to the length of the string. The string is + zero-terminated, but the terminating zero byte is not counted in + *LENGTH. On errors, *LENGTH is undefined, errno preserves the + values set by system functions (if any), and NULL is returned. */ +char * +fread_file (FILE * stream, size_t * length) +{ + char *buf = NULL; + size_t alloc = 0; + size_t size = 0; + int save_errno; + + for (;;) + { + size_t count; + size_t requested; + + if (size + BUFSIZ + 1 > alloc) + { + char *new_buf; + + alloc += alloc / 2; + if (alloc < size + BUFSIZ + 1) + alloc = size + BUFSIZ + 1; + + new_buf = realloc (buf, alloc); + if (!new_buf) + { + save_errno = errno; + break; + } + + buf = new_buf; + } + + requested = alloc - size - 1; + count = fread (buf + size, 1, requested, stream); + size += count; + + if (count != requested) + { + save_errno = errno; + if (ferror (stream)) + break; + buf[size] = '\0'; + *length = size; + return buf; + } + } + + free (buf); + errno = save_errno; + return NULL; +} + +static char * +internal_read_file (const char *filename, size_t * length, const char *mode) +{ + FILE *stream = fopen (filename, mode); + char *out; + int save_errno; + + if (!stream) + return NULL; + + out = fread_file (stream, length); + + save_errno = errno; + + if (fclose (stream) != 0) + { + if (out) + { + save_errno = errno; + free (out); + } + errno = save_errno; + return NULL; + } + + return out; +} + +/* Open and read the contents of FILENAME, and return a newly + allocated string with the content, and set *LENGTH to the length of + the string. The string is zero-terminated, but the terminating + zero byte is not counted in *LENGTH. On errors, *LENGTH is + undefined, errno preserves the values set by system functions (if + any), and NULL is returned. */ +char * +read_file (const char *filename, size_t * length) +{ + return internal_read_file (filename, length, "r"); +} + +/* Open (on non-POSIX systems, in binary mode) and read the contents + of FILENAME, and return a newly allocated string with the content, + and set LENGTH to the length of the string. The string is + zero-terminated, but the terminating zero byte is not counted in + the LENGTH variable. On errors, *LENGTH is undefined, errno + preserves the values set by system functions (if any), and NULL is + returned. */ +char * +read_binary_file (const char *filename, size_t * length) +{ + return internal_read_file (filename, length, "rb"); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/read-file.h gettext-0.18.1.1/gettext-tools/gnulib-tests/read-file.h --- gettext-0.17/gettext-tools/gnulib-tests/read-file.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/read-file.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,34 @@ +/* read-file.h -- read file contents into a string + Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc. + Written by Simon Josefsson. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef READ_FILE_H +#define READ_FILE_H + +/* Get size_t. */ +#include + +/* Get FILE. */ +#include + +extern char *fread_file (FILE * stream, size_t * length); + +extern char *read_file (const char *filename, size_t * length); + +extern char *read_binary_file (const char *filename, size_t * length); + +#endif /* READ_FILE_H */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/same-inode.h gettext-0.18.1.1/gettext-tools/gnulib-tests/same-inode.h --- gettext-0.17/gettext-tools/gnulib-tests/same-inode.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/same-inode.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,25 @@ +/* Determine whether two stat buffers refer to the same file. + + Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef SAME_INODE_H +# define SAME_INODE_H 1 + +# define SAME_INODE(Stat_buf_1, Stat_buf_2) \ + ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \ + && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev) + +#endif diff -Nru gettext-0.17/gettext-tools/gnulib-tests/signature.h gettext-0.18.1.1/gettext-tools/gnulib-tests/signature.h --- gettext-0.17/gettext-tools/gnulib-tests/signature.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/signature.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,48 @@ +/* Macro for checking that a function declaration is compliant. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef SIGNATURE_CHECK + +/* Check that the function FN takes the specified arguments ARGS with + a return type of RET. This header is designed to be included after + and the one system header that is supposed to contain + the function being checked, but prior to any other system headers + that are necessary for the unit test. Therefore, this file does + not include any system headers, nor reference anything outside of + the macro arguments. For an example, if foo.h should provide: + + extern int foo (char, float); + + then the unit test named test-foo.c would start out with: + + #include + #include + #include "signature.h" + SIGNATURE_CHECK (foo, int, (char, float)); + #include + ... +*/ +# define SIGNATURE_CHECK(fn, ret, args) \ + SIGNATURE_CHECK1 (fn, ret, args, __LINE__) + +/* Necessary to allow multiple SIGNATURE_CHECK lines in a unit test. + Note that the checks must not occupy the same line. */ +# define SIGNATURE_CHECK1(fn, ret, args, id) \ + SIGNATURE_CHECK2 (fn, ret, args, id) /* macroexpand line */ +# define SIGNATURE_CHECK2(fn, ret, args, id) \ + static ret (* _GL_UNUSED signature_check ## id) args = fn + +#endif /* SIGNATURE_CHECK */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/symlink.c gettext-0.18.1.1/gettext-tools/gnulib-tests/symlink.c --- gettext-0.17/gettext-tools/gnulib-tests/symlink.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/symlink.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,57 @@ +/* Stub for symlink(). + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + + +#if HAVE_SYMLINK + +# undef symlink + +/* Create a symlink, but reject trailing slash. */ +int +rpl_symlink (char const *contents, char const *name) +{ + size_t len = strlen (name); + if (len && name[len - 1] == '/') + { + struct stat st; + if (lstat (name, &st) == 0) + errno = EEXIST; + return -1; + } + return symlink (contents, name); +} + +#else /* !HAVE_SYMLINK */ + +/* The system does not support symlinks. */ +int +symlink (char const *contents _GL_UNUSED, + char const *name _GL_UNUSED) +{ + errno = ENOSYS; + return -1; +} + +#endif /* !HAVE_SYMLINK */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-alignof.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-alignof.c --- gettext-0.17/gettext-tools/gnulib-tests/test-alignof.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-alignof.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,59 @@ +/* Test of . + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2009. */ + +#include + +#include + +#include +#include + +#include "verify.h" + +typedef long double longdouble; +typedef struct { char a[1]; } struct1; +typedef struct { char a[2]; } struct2; +typedef struct { char a[3]; } struct3; +typedef struct { char a[4]; } struct4; + +#define CHECK(type) \ + typedef struct { char slot1; type slot2; } type##_helper; \ + verify (alignof_slot (type) == offsetof (type##_helper, slot2)); \ + const int type##_slot_alignment = alignof_slot (type); \ + const int type##_type_alignment = alignof_type (type); + +CHECK (char) +CHECK (short) +CHECK (int) +CHECK (long) +CHECK (float) +CHECK (double) +CHECK (longdouble) +#ifdef INT64_MAX +CHECK (int64_t) +#endif +CHECK (struct1) +CHECK (struct2) +CHECK (struct3) +CHECK (struct4) + +int +main () +{ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-alloca-opt.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-alloca-opt.c --- gettext-0.17/gettext-tools/gnulib-tests/test-alloca-opt.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-alloca-opt.c 2010-05-24 09:42:50.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of optional automatic memory allocation. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-areadlink.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-areadlink.c --- gettext-0.17/gettext-tools/gnulib-tests/test-areadlink.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-areadlink.c 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,53 @@ +/* Tests of areadlink. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include "areadlink.h" + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "ignore-value.h" +#include "macros.h" + +#define BASE "test-areadlink.t" + +#include "test-areadlink.h" + +/* Wrapper for testing areadlink. */ +static char * +do_areadlink (char const *name, size_t ignored _GL_UNUSED) +{ + return areadlink (name); +} + +int +main (void) +{ + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + + return test_areadlink (do_areadlink, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-areadlink.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-areadlink.h --- gettext-0.17/gettext-tools/gnulib-tests/test-areadlink.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-areadlink.h 2010-02-16 21:32:26.000000000 +0000 @@ -0,0 +1,83 @@ +/* Tests of areadlink and friends. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +/* This file is designed to test areadlink(a), + areadlink_with_size(a,b), and areadlinkat(AT_FDCWD,a). FUNC is the + function to test; a length is always supplied, but may be ignored. + Assumes that BASE and ASSERT are already defined, and that + appropriate headers are already included. If PRINT, warn before + skipping symlink tests with status 77. */ + +static int +test_areadlink (char * (*func) (char const *, size_t), bool print) +{ + /* Sanity checks of failures. Mingw lacks symlink, but areadlink can + still distinguish between various errors. */ + errno = 0; + ASSERT (func ("no_such", 1) == NULL); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("no_such/", 1) == NULL); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("", 1) == NULL); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func (".", 1) == NULL); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (func ("./", 1) == NULL); + ASSERT (errno == EINVAL); + ASSERT (close (creat (BASE "file", 0600)) == 0); + errno = 0; + ASSERT (func (BASE "file", 1) == NULL); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (func (BASE "file/", 1) == NULL); + ASSERT (errno == ENOTDIR); + ASSERT (unlink (BASE "file") == 0); + + /* Now test actual symlinks. */ + if (symlink (BASE "dir", BASE "link")) + { + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (mkdir (BASE "dir", 0700) == 0); + errno = 0; + ASSERT (func (BASE "link/", 1) == NULL); + ASSERT (errno == EINVAL); + { + /* Too small a guess is okay. */ + char *buf = func (BASE "link", 1); + ASSERT (buf); + ASSERT (strcmp (buf, BASE "dir") == 0); + free (buf); + /* Too large a guess is okay. */ + buf = func (BASE "link", 10000000); + ASSERT (buf); + ASSERT (strcmp (buf, BASE "dir") == 0); + free (buf); + } + ASSERT (rmdir (BASE "dir") == 0); + ASSERT (unlink (BASE "link") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-argmatch.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-argmatch.c --- gettext-0.17/gettext-tools/gnulib-tests/test-argmatch.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-argmatch.c 2010-02-16 21:32:26.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of exact or abbreviated match search. - Copyright (C) 1990, 1998-1999, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1990, 1998-1999, 2001-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,21 +21,16 @@ #include "argmatch.h" -#include #include #include "progname.h" +#include "macros.h" -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +/* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in , and + thus must link with a definition of that function. Provide it here. */ +#ifdef ARGMATCH_DIE_DECL +ARGMATCH_DIE_DECL { exit (1); } +#endif enum backup_type { diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-array_list.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-array_list.c --- gettext-0.17/gettext-tools/gnulib-tests/test-array_list.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-array_list.c 2010-02-16 21:32:26.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of sequential list data type implementation. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -19,27 +19,16 @@ #include "gl_array_list.h" -#include #include #include "progname.h" +#include "macros.h" static const char *objects[15] = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o" }; -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) #define RANDOM(n) (rand () % (n)) #define RANDOM_OBJECT() objects[RANDOM (SIZEOF (objects))] @@ -78,12 +67,14 @@ contents[i] = RANDOM_OBJECT (); /* Create list1. */ - list1 = gl_list_create (GL_ARRAY_LIST, NULL, NULL, NULL, true, - initial_size, contents); + list1 = gl_list_nx_create (GL_ARRAY_LIST, NULL, NULL, NULL, true, + initial_size, contents); + ASSERT (list1 != NULL); /* Create list2. */ - list2 = gl_list_create_empty (GL_ARRAY_LIST, NULL, NULL, NULL, true); + list2 = gl_list_nx_create_empty (GL_ARRAY_LIST, NULL, NULL, NULL, true); + ASSERT (list2 != NULL); for (i = 0; i < initial_size; i++) - gl_list_add_last (list2, contents[i]); + ASSERT (gl_list_nx_add_last (list2, contents[i]) != NULL); check_equals (list1, list2); @@ -99,11 +90,13 @@ const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2; - node1 = gl_list_set_at (list1, index, obj); + node1 = gl_list_nx_set_at (list1, index, obj); + ASSERT (node1 != NULL); ASSERT (gl_list_get_at (list1, index) == obj); ASSERT (gl_list_node_value (list1, node1) == obj); - node2 = gl_list_set_at (list2, index, obj); + node2 = gl_list_nx_set_at (list2, index, obj); + ASSERT (node2 != NULL); ASSERT (gl_list_get_at (list2, index) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); @@ -160,8 +153,10 @@ { const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2; - node1 = gl_list_add_first (list1, obj); - node2 = gl_list_add_first (list2, obj); + node1 = gl_list_nx_add_first (list1, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_first (list2, obj); + ASSERT (node2 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); ASSERT (gl_list_get_at (list1, 0) == obj); @@ -172,8 +167,10 @@ { const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2; - node1 = gl_list_add_last (list1, obj); - node2 = gl_list_add_last (list2, obj); + node1 = gl_list_nx_add_last (list1, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_last (list2, obj); + ASSERT (node2 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); ASSERT (gl_list_get_at (list1, gl_list_size (list1) - 1) == obj); @@ -186,12 +183,18 @@ const char *obj1 = RANDOM_OBJECT (); const char *obj2 = RANDOM_OBJECT (); gl_list_node_t node1, node2; - node1 = gl_list_add_first (list1, obj2); - node1 = gl_list_add_before (list1, node1, obj0); - node1 = gl_list_add_after (list1, node1, obj1); - node2 = gl_list_add_first (list2, obj2); - node2 = gl_list_add_before (list2, node2, obj0); - node2 = gl_list_add_after (list2, node2, obj1); + node1 = gl_list_nx_add_first (list1, obj2); + ASSERT (node1 != NULL); + node1 = gl_list_nx_add_before (list1, node1, obj0); + ASSERT (node1 != NULL); + node1 = gl_list_nx_add_after (list1, node1, obj1); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_first (list2, obj2); + ASSERT (node2 != NULL); + node2 = gl_list_nx_add_before (list2, node2, obj0); + ASSERT (node2 != NULL); + node2 = gl_list_nx_add_after (list2, node2, obj1); + ASSERT (node2 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj1); ASSERT (gl_list_node_value (list2, node2) == obj1); ASSERT (gl_list_get_at (list1, 0) == obj0); @@ -207,8 +210,10 @@ size_t index = RANDOM (gl_list_size (list1) + 1); const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2; - node1 = gl_list_add_at (list1, index, obj); - node2 = gl_list_add_at (list2, index, obj); + node1 = gl_list_nx_add_at (list1, index, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_at (list2, index, obj); + ASSERT (node2 != NULL); ASSERT (gl_list_get_at (list1, index) == obj); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_get_at (list2, index) == obj); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-atexit.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-atexit.c --- gettext-0.17/gettext-tools/gnulib-tests/test-atexit.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-atexit.c 2010-02-16 21:32:26.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of execution of program termination handlers. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,12 +19,16 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (atexit, int, (void (*) (void))); + #include #define TEMPFILE "t-atexit.tmp" static void -clear_temp_file () +clear_temp_file (void) { unlink (TEMPFILE); } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-atexit.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-atexit.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-atexit.sh 2007-10-01 01:09:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-atexit.sh 2010-04-25 09:21:49.000000000 +0000 @@ -1,32 +1,28 @@ #!/bin/sh +: ${srcdir=.} +. "$srcdir/init.sh"; path_prepend_ . -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles t-atexit.tmp" # Check that an atexit handler is called when main() returns normally. echo > t-atexit.tmp -./test-atexit${EXEEXT} +test-atexit if test -f t-atexit.tmp; then - exit 1 + Exit 1 fi # Check that an atexit handler is called when the program is left # through exit(0). echo > t-atexit.tmp -./test-atexit${EXEEXT} 0 +test-atexit 0 if test -f t-atexit.tmp; then - exit 1 + Exit 1 fi # Check that an atexit handler is called when the program is left # through exit(1). echo > t-atexit.tmp -./test-atexit${EXEEXT} 1 +test-atexit 1 if test -f t-atexit.tmp; then - exit 1 + Exit 1 fi -rm -fr $tmpfiles - exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-binary-io.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-binary-io.c --- gettext-0.17/gettext-tools/gnulib-tests/test-binary-io.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-binary-io.c 2010-02-16 21:32:26.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of binary mode I/O. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,16 +27,7 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-byteswap.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-byteswap.c --- gettext-0.17/gettext-tools/gnulib-tests/test-byteswap.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-byteswap.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,19 +20,7 @@ #include -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c --- gettext-0.17/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c 2010-03-28 18:32:30.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of execution of program termination handlers. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,55 +18,128 @@ #include -#include "canonicalize.h" +#include + +#include "signature.h" +SIGNATURE_CHECK (realpath, char *, (const char *, char *)); +SIGNATURE_CHECK (canonicalize_file_name, char *, (const char *)); +#include +#include #include -#include #include +#include +#include + +#include "same-inode.h" +#include "ignore-value.h" +#include "macros.h" + +#define BASE "t-can-lgpl.tmp" -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +static void * +null_ptr (void) +{ + return NULL; +} int -main () +main (void) { -#ifdef GNULIB_CANONICALIZE +#if GNULIB_TEST_CANONICALIZE /* No need to test canonicalize-lgpl module if canonicalize is also in use. */ return 0; #endif + /* Setup some hierarchy to be used by this test. Start by removing + any leftovers from a previous partial run. */ + { + int fd; + ignore_value (system ("rm -rf " BASE " ise")); + ASSERT (mkdir (BASE, 0700) == 0); + fd = creat (BASE "/tra", 0600); + ASSERT (0 <= fd); + ASSERT (close (fd) == 0); + } + + /* Check for ., .., intermediate // handling, and for error cases. */ + { + char *result = canonicalize_file_name (BASE "//./..//" BASE "/tra"); + ASSERT (result != NULL); + ASSERT (strstr (result, "/" BASE "/tra") + == result + strlen (result) - strlen ("/" BASE "/tra")); + free (result); + errno = 0; + result = canonicalize_file_name (""); + ASSERT (result == NULL); + ASSERT (errno == ENOENT); + errno = 0; + result = canonicalize_file_name (null_ptr ()); + ASSERT (result == NULL); + ASSERT (errno == EINVAL); + } + + /* Check that a non-directory with trailing slash yields NULL. */ + { + char *result; + errno = 0; + result = canonicalize_file_name (BASE "/tra/"); + ASSERT (result == NULL); + ASSERT (errno == ENOTDIR); + } + + /* Check that a missing directory yields NULL. */ + { + char *result; + errno = 0; + result = canonicalize_file_name (BASE "/zzz/.."); + ASSERT (result == NULL); + ASSERT (errno == ENOENT); + } + + /* From here on out, tests involve symlinks. */ + if (symlink (BASE "/ket", "ise") != 0) + { + ASSERT (remove (BASE "/tra") == 0); + ASSERT (rmdir (BASE) == 0); + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (symlink ("bef", BASE "/plo") == 0); + ASSERT (symlink ("tra", BASE "/huk") == 0); + ASSERT (symlink ("lum", BASE "/bef") == 0); + ASSERT (symlink ("wum", BASE "/ouk") == 0); + ASSERT (symlink ("../ise", BASE "/ket") == 0); + ASSERT (mkdir (BASE "/lum", 0700) == 0); + ASSERT (symlink ("//.//../..", BASE "/droot") == 0); + /* Check that the symbolic link to a file can be resolved. */ { - char *result1 = canonicalize_file_name ("t-can-lgpl.tmp/huk"); - char *result2 = canonicalize_file_name ("t-can-lgpl.tmp/tra"); + char *result1 = canonicalize_file_name (BASE "/huk"); + char *result2 = canonicalize_file_name (BASE "/tra"); ASSERT (result1 != NULL); ASSERT (result2 != NULL); ASSERT (strcmp (result1, result2) == 0); - ASSERT (strcmp (result1 + strlen (result1) - 19, "/t-can-lgpl.tmp/tra") == 0); + ASSERT (strcmp (result1 + strlen (result1) - strlen ("/" BASE "/tra"), + "/" BASE "/tra") == 0); free (result1); free (result2); } /* Check that the symbolic link to a directory can be resolved. */ { - char *result1 = canonicalize_file_name ("t-can-lgpl.tmp/plo"); - char *result2 = canonicalize_file_name ("t-can-lgpl.tmp/bef"); - char *result3 = canonicalize_file_name ("t-can-lgpl.tmp/lum"); + char *result1 = canonicalize_file_name (BASE "/plo"); + char *result2 = canonicalize_file_name (BASE "/bef"); + char *result3 = canonicalize_file_name (BASE "/lum"); ASSERT (result1 != NULL); ASSERT (result2 != NULL); ASSERT (result3 != NULL); ASSERT (strcmp (result1, result2) == 0); ASSERT (strcmp (result2, result3) == 0); - ASSERT (strcmp (result1 + strlen (result1) - 19, "/t-can-lgpl.tmp/lum") == 0); + ASSERT (strcmp (result1 + strlen (result1) - strlen ("/" BASE "/lum"), + "/" BASE "/lum") == 0); free (result1); free (result2); free (result3); @@ -74,15 +147,76 @@ /* Check that a symbolic link to a nonexistent file yields NULL. */ { - char *result = canonicalize_file_name ("t-can-lgpl.tmp/ouk"); + char *result; + errno = 0; + result = canonicalize_file_name (BASE "/ouk"); + ASSERT (result == NULL); + ASSERT (errno == ENOENT); + } + + /* Check that a non-directory symlink with trailing slash yields NULL. */ + { + char *result; + errno = 0; + result = canonicalize_file_name (BASE "/huk/"); ASSERT (result == NULL); + ASSERT (errno == ENOTDIR); + } + + /* Check that a missing directory via symlink yields NULL. */ + { + char *result; + errno = 0; + result = canonicalize_file_name (BASE "/ouk/.."); + ASSERT (result == NULL); + ASSERT (errno == ENOENT); } /* Check that a loop of symbolic links is detected. */ { - char *result = canonicalize_file_name ("ise"); + char *result; + errno = 0; + result = canonicalize_file_name ("ise"); ASSERT (result == NULL); + ASSERT (errno == ELOOP); } + /* Check that leading // is honored correctly. */ + { + struct stat st1; + struct stat st2; + char *result1 = canonicalize_file_name ("//."); + char *result2 = canonicalize_file_name (BASE "/droot"); + ASSERT (result1); + ASSERT (result2); + ASSERT (stat ("/", &st1) == 0); + ASSERT (stat ("//", &st2) == 0); + if (SAME_INODE (st1, st2)) + { + ASSERT (strcmp (result1, "/") == 0); + ASSERT (strcmp (result2, "/") == 0); + } + else + { + ASSERT (strcmp (result1, "//") == 0); + ASSERT (strcmp (result2, "//") == 0); + } + free (result1); + free (result2); + } + + + /* Cleanup. */ + ASSERT (remove (BASE "/droot") == 0); + ASSERT (remove (BASE "/plo") == 0); + ASSERT (remove (BASE "/huk") == 0); + ASSERT (remove (BASE "/bef") == 0); + ASSERT (remove (BASE "/ouk") == 0); + ASSERT (remove (BASE "/ket") == 0); + ASSERT (remove (BASE "/lum") == 0); + ASSERT (remove (BASE "/tra") == 0); + ASSERT (remove (BASE) == 0); + ASSERT (remove ("ise") == 0); + return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-canonicalize-lgpl.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-canonicalize-lgpl.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-canonicalize-lgpl.sh 2007-10-01 01:09:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-canonicalize-lgpl.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -#!/bin/sh - -tmpfiles="" -trap 'rm -fr $tmpfiles' 1 2 3 15 - -tmpfiles="$tmpfiles t-can-lgpl.tmp ise" -mkdir t-can-lgpl.tmp -ln -s t-can-lgpl.tmp/ket ise \ - || { echo "Skipping test: symbolic links not supported on this filesystem" - rm -fr $tmpfiles - exit 77 - } -(cd t-can-lgpl.tmp \ - && ln -s bef plo \ - && ln -s tra huk \ - && ln -s lum bef \ - && ln -s wum ouk \ - && ln -s ../ise ket \ - && echo > tra \ - && mkdir lum -) || exit 1 - -./test-canonicalize-lgpl${EXEEXT} -result=$? - -rm -fr $tmpfiles - -exit $result diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-c-ctype.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-ctype.c --- gettext-0.17/gettext-tools/gnulib-tests/test-c-ctype.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-ctype.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of character handling in C locale. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,19 +21,8 @@ #include "c-ctype.h" #include -#include -#include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static void test_all (void) @@ -45,81 +34,81 @@ ASSERT (c_isascii (c) == (c >= 0 && c < 0x80)); switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': case '5': - case '6': case '7': case '8': case '9': - ASSERT (c_isalnum (c) == 1); - break; - default: - ASSERT (c_isalnum (c) == 0); - break; - } + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': case '5': + case '6': case '7': case '8': case '9': + ASSERT (c_isalnum (c) == 1); + break; + default: + ASSERT (c_isalnum (c) == 0); + break; + } switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - ASSERT (c_isalpha (c) == 1); - break; - default: - ASSERT (c_isalpha (c) == 0); - break; - } + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + ASSERT (c_isalpha (c) == 1); + break; + default: + ASSERT (c_isalpha (c) == 0); + break; + } switch (c) - { - case '\t': case ' ': - ASSERT (c_isblank (c) == 1); - break; - default: - ASSERT (c_isblank (c) == 0); - break; - } + { + case '\t': case ' ': + ASSERT (c_isblank (c) == 1); + break; + default: + ASSERT (c_isblank (c) == 0); + break; + } ASSERT (c_iscntrl (c) == ((c >= 0 && c < 0x20) || c == 0x7f)); switch (c) - { - case '0': case '1': case '2': case '3': case '4': case '5': - case '6': case '7': case '8': case '9': - ASSERT (c_isdigit (c) == 1); - break; - default: - ASSERT (c_isdigit (c) == 0); - break; - } + { + case '0': case '1': case '2': case '3': case '4': case '5': + case '6': case '7': case '8': case '9': + ASSERT (c_isdigit (c) == 1); + break; + default: + ASSERT (c_isdigit (c) == 0); + break; + } switch (c) - { - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - ASSERT (c_islower (c) == 1); - break; - default: - ASSERT (c_islower (c) == 0); - break; - } + { + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + ASSERT (c_islower (c) == 1); + break; + default: + ASSERT (c_islower (c) == 0); + break; + } ASSERT (c_isgraph (c) == ((c >= 0x20 && c < 0x7f) && c != ' ')); @@ -128,257 +117,257 @@ ASSERT (c_ispunct (c) == (c_isgraph (c) && !c_isalnum (c))); switch (c) - { - case ' ': case '\t': case '\n': case '\v': case '\f': case '\r': - ASSERT (c_isspace (c) == 1); - break; - default: - ASSERT (c_isspace (c) == 0); - break; - } + { + case ' ': case '\t': case '\n': case '\v': case '\f': case '\r': + ASSERT (c_isspace (c) == 1); + break; + default: + ASSERT (c_isspace (c) == 0); + break; + } switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - ASSERT (c_isupper (c) == 1); - break; - default: - ASSERT (c_isupper (c) == 0); - break; - } + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + ASSERT (c_isupper (c) == 1); + break; + default: + ASSERT (c_isupper (c) == 0); + break; + } switch (c) - { - case '0': case '1': case '2': case '3': case '4': case '5': - case '6': case '7': case '8': case '9': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - ASSERT (c_isxdigit (c) == 1); - break; - default: - ASSERT (c_isxdigit (c) == 0); - break; - } + { + case '0': case '1': case '2': case '3': case '4': case '5': + case '6': case '7': case '8': case '9': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + ASSERT (c_isxdigit (c) == 1); + break; + default: + ASSERT (c_isxdigit (c) == 0); + break; + } switch (c) - { - case 'A': - ASSERT (c_tolower (c) == 'a'); - ASSERT (c_toupper (c) == c); - break; - case 'B': - ASSERT (c_tolower (c) == 'b'); - ASSERT (c_toupper (c) == c); - break; - case 'C': - ASSERT (c_tolower (c) == 'c'); - ASSERT (c_toupper (c) == c); - break; - case 'D': - ASSERT (c_tolower (c) == 'd'); - ASSERT (c_toupper (c) == c); - break; - case 'E': - ASSERT (c_tolower (c) == 'e'); - ASSERT (c_toupper (c) == c); - break; - case 'F': - ASSERT (c_tolower (c) == 'f'); - ASSERT (c_toupper (c) == c); - break; - case 'G': - ASSERT (c_tolower (c) == 'g'); - ASSERT (c_toupper (c) == c); - break; - case 'H': - ASSERT (c_tolower (c) == 'h'); - ASSERT (c_toupper (c) == c); - break; - case 'I': - ASSERT (c_tolower (c) == 'i'); - ASSERT (c_toupper (c) == c); - break; - case 'J': - ASSERT (c_tolower (c) == 'j'); - ASSERT (c_toupper (c) == c); - break; - case 'K': - ASSERT (c_tolower (c) == 'k'); - ASSERT (c_toupper (c) == c); - break; - case 'L': - ASSERT (c_tolower (c) == 'l'); - ASSERT (c_toupper (c) == c); - break; - case 'M': - ASSERT (c_tolower (c) == 'm'); - ASSERT (c_toupper (c) == c); - break; - case 'N': - ASSERT (c_tolower (c) == 'n'); - ASSERT (c_toupper (c) == c); - break; - case 'O': - ASSERT (c_tolower (c) == 'o'); - ASSERT (c_toupper (c) == c); - break; - case 'P': - ASSERT (c_tolower (c) == 'p'); - ASSERT (c_toupper (c) == c); - break; - case 'Q': - ASSERT (c_tolower (c) == 'q'); - ASSERT (c_toupper (c) == c); - break; - case 'R': - ASSERT (c_tolower (c) == 'r'); - ASSERT (c_toupper (c) == c); - break; - case 'S': - ASSERT (c_tolower (c) == 's'); - ASSERT (c_toupper (c) == c); - break; - case 'T': - ASSERT (c_tolower (c) == 't'); - ASSERT (c_toupper (c) == c); - break; - case 'U': - ASSERT (c_tolower (c) == 'u'); - ASSERT (c_toupper (c) == c); - break; - case 'V': - ASSERT (c_tolower (c) == 'v'); - ASSERT (c_toupper (c) == c); - break; - case 'W': - ASSERT (c_tolower (c) == 'w'); - ASSERT (c_toupper (c) == c); - break; - case 'X': - ASSERT (c_tolower (c) == 'x'); - ASSERT (c_toupper (c) == c); - break; - case 'Y': - ASSERT (c_tolower (c) == 'y'); - ASSERT (c_toupper (c) == c); - break; - case 'Z': - ASSERT (c_tolower (c) == 'z'); - ASSERT (c_toupper (c) == c); - break; - case 'a': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'A'); - break; - case 'b': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'B'); - break; - case 'c': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'C'); - break; - case 'd': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'D'); - break; - case 'e': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'E'); - break; - case 'f': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'F'); - break; - case 'g': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'G'); - break; - case 'h': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'H'); - break; - case 'i': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'I'); - break; - case 'j': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'J'); - break; - case 'k': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'K'); - break; - case 'l': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'L'); - break; - case 'm': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'M'); - break; - case 'n': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'N'); - break; - case 'o': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'O'); - break; - case 'p': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'P'); - break; - case 'q': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'Q'); - break; - case 'r': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'R'); - break; - case 's': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'S'); - break; - case 't': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'T'); - break; - case 'u': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'U'); - break; - case 'v': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'V'); - break; - case 'w': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'W'); - break; - case 'x': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'X'); - break; - case 'y': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'Y'); - break; - case 'z': - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == 'Z'); - break; - default: - ASSERT (c_tolower (c) == c); - ASSERT (c_toupper (c) == c); - break; - } + { + case 'A': + ASSERT (c_tolower (c) == 'a'); + ASSERT (c_toupper (c) == c); + break; + case 'B': + ASSERT (c_tolower (c) == 'b'); + ASSERT (c_toupper (c) == c); + break; + case 'C': + ASSERT (c_tolower (c) == 'c'); + ASSERT (c_toupper (c) == c); + break; + case 'D': + ASSERT (c_tolower (c) == 'd'); + ASSERT (c_toupper (c) == c); + break; + case 'E': + ASSERT (c_tolower (c) == 'e'); + ASSERT (c_toupper (c) == c); + break; + case 'F': + ASSERT (c_tolower (c) == 'f'); + ASSERT (c_toupper (c) == c); + break; + case 'G': + ASSERT (c_tolower (c) == 'g'); + ASSERT (c_toupper (c) == c); + break; + case 'H': + ASSERT (c_tolower (c) == 'h'); + ASSERT (c_toupper (c) == c); + break; + case 'I': + ASSERT (c_tolower (c) == 'i'); + ASSERT (c_toupper (c) == c); + break; + case 'J': + ASSERT (c_tolower (c) == 'j'); + ASSERT (c_toupper (c) == c); + break; + case 'K': + ASSERT (c_tolower (c) == 'k'); + ASSERT (c_toupper (c) == c); + break; + case 'L': + ASSERT (c_tolower (c) == 'l'); + ASSERT (c_toupper (c) == c); + break; + case 'M': + ASSERT (c_tolower (c) == 'm'); + ASSERT (c_toupper (c) == c); + break; + case 'N': + ASSERT (c_tolower (c) == 'n'); + ASSERT (c_toupper (c) == c); + break; + case 'O': + ASSERT (c_tolower (c) == 'o'); + ASSERT (c_toupper (c) == c); + break; + case 'P': + ASSERT (c_tolower (c) == 'p'); + ASSERT (c_toupper (c) == c); + break; + case 'Q': + ASSERT (c_tolower (c) == 'q'); + ASSERT (c_toupper (c) == c); + break; + case 'R': + ASSERT (c_tolower (c) == 'r'); + ASSERT (c_toupper (c) == c); + break; + case 'S': + ASSERT (c_tolower (c) == 's'); + ASSERT (c_toupper (c) == c); + break; + case 'T': + ASSERT (c_tolower (c) == 't'); + ASSERT (c_toupper (c) == c); + break; + case 'U': + ASSERT (c_tolower (c) == 'u'); + ASSERT (c_toupper (c) == c); + break; + case 'V': + ASSERT (c_tolower (c) == 'v'); + ASSERT (c_toupper (c) == c); + break; + case 'W': + ASSERT (c_tolower (c) == 'w'); + ASSERT (c_toupper (c) == c); + break; + case 'X': + ASSERT (c_tolower (c) == 'x'); + ASSERT (c_toupper (c) == c); + break; + case 'Y': + ASSERT (c_tolower (c) == 'y'); + ASSERT (c_toupper (c) == c); + break; + case 'Z': + ASSERT (c_tolower (c) == 'z'); + ASSERT (c_toupper (c) == c); + break; + case 'a': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'A'); + break; + case 'b': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'B'); + break; + case 'c': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'C'); + break; + case 'd': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'D'); + break; + case 'e': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'E'); + break; + case 'f': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'F'); + break; + case 'g': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'G'); + break; + case 'h': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'H'); + break; + case 'i': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'I'); + break; + case 'j': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'J'); + break; + case 'k': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'K'); + break; + case 'l': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'L'); + break; + case 'm': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'M'); + break; + case 'n': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'N'); + break; + case 'o': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'O'); + break; + case 'p': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'P'); + break; + case 'q': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'Q'); + break; + case 'r': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'R'); + break; + case 's': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'S'); + break; + case 't': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'T'); + break; + case 'u': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'U'); + break; + case 'v': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'V'); + break; + case 'w': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'W'); + break; + case 'x': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'X'); + break; + case 'y': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'Y'); + break; + case 'z': + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == 'Z'); + break; + default: + ASSERT (c_tolower (c) == c); + ASSERT (c_toupper (c) == c); + break; + } } } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-cloexec.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-cloexec.c --- gettext-0.17/gettext-tools/gnulib-tests/test-cloexec.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-cloexec.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,141 @@ +/* Test duplicating non-inheritable file descriptors. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include "cloexec.h" + +#include +#include +#include + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#include "binary-io.h" +#include "macros.h" + +/* Return non-zero if FD is open and inheritable across exec/spawn. */ +static int +is_inheritable (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + HANDLE h = (HANDLE) _get_osfhandle (fd); + DWORD flags; + if (h == INVALID_HANDLE_VALUE || GetHandleInformation (h, &flags) == 0) + return 0; + return (flags & HANDLE_FLAG_INHERIT) != 0; +#else +# ifndef F_GETFD +# error Please port fcntl to your platform +# endif + int i = fcntl (fd, F_GETFD); + return 0 <= i && (i & FD_CLOEXEC) == 0; +#endif +} + +#if !O_BINARY +# define setmode(f,m) zero () +static int zero (void) { return 0; } +#endif + +/* Return non-zero if FD is open in the given MODE, which is either + O_TEXT or O_BINARY. */ +static int +is_mode (int fd, int mode) +{ + int value = setmode (fd, O_BINARY); + setmode (fd, value); + return mode == value; +} + +int +main (void) +{ + const char *file = "test-cloexec.tmp"; + int fd = creat (file, 0600); + int fd2; + + /* Assume std descriptors were provided by invoker. */ + ASSERT (STDERR_FILENO < fd); + ASSERT (is_inheritable (fd)); + + /* Normal use of set_cloexec_flag. */ + ASSERT (set_cloexec_flag (fd, true) == 0); +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) + ASSERT (!is_inheritable (fd)); +#endif + ASSERT (set_cloexec_flag (fd, false) == 0); + ASSERT (is_inheritable (fd)); + + /* Normal use of dup_cloexec. */ + fd2 = dup_cloexec (fd); + ASSERT (fd < fd2); + ASSERT (!is_inheritable (fd2)); + ASSERT (close (fd) == 0); + ASSERT (dup_cloexec (fd2) == fd); + ASSERT (!is_inheritable (fd)); + ASSERT (close (fd2) == 0); + + /* On systems that distinguish between text and binary mode, + dup_cloexec reuses the mode of the source. */ + setmode (fd, O_BINARY); + ASSERT (is_mode (fd, O_BINARY)); + fd2 = dup_cloexec (fd); + ASSERT (fd < fd2); + ASSERT (is_mode (fd2, O_BINARY)); + ASSERT (close (fd2) == 0); + setmode (fd, O_TEXT); + ASSERT (is_mode (fd, O_TEXT)); + fd2 = dup_cloexec (fd); + ASSERT (fd < fd2); + ASSERT (is_mode (fd2, O_TEXT)); + ASSERT (close (fd2) == 0); + + /* Test error handling. */ + errno = 0; + ASSERT (set_cloexec_flag (-1, false) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (set_cloexec_flag (10000000, false) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (set_cloexec_flag (fd2, false) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup_cloexec (-1) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup_cloexec (10000000) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup_cloexec (fd2) == -1); + ASSERT (errno == EBADF); + + /* Clean up. */ + ASSERT (close (fd) == 0); + ASSERT (unlink (file) == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-copy-acl.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-acl.c --- gettext-0.17/gettext-tools/gnulib-tests/test-copy-acl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-acl.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,76 @@ +/* Test of copying of files. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "acl.h" + +#include +#include +#include +#include +#include +#include + +#include "progname.h" +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + const char *file1; + const char *file2; + int fd1; + struct stat statbuf; + int mode; + int fd2; + + set_program_name (argv[0]); + + ASSERT (argc == 3); + + file1 = argv[1]; + file2 = argv[2]; + + fd1 = open (file1, O_RDONLY); + if (fd1 < 0 || fstat (fd1, &statbuf) < 0) + { + fprintf (stderr, "could not open file \"%s\"\n", file1); + exit (EXIT_FAILURE); + } + mode = statbuf.st_mode & 07777; + + fd2 = open (file2, O_WRONLY, 0600); + if (fd2 < 0) + { + fprintf (stderr, "could not open file \"%s\"\n", file2); + exit (EXIT_FAILURE); + } + +#if USE_ACL + if (copy_acl (file1, fd1, file2, fd2, mode)) + exit (EXIT_FAILURE); +#else + chmod (file2, mode); +#endif + + close (fd2); + close (fd1); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-copy-acl.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-acl.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-copy-acl.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-acl.sh 2009-08-30 15:49:52.000000000 +0000 @@ -0,0 +1,534 @@ +#!/bin/sh + +# Show all commands when run with environment variable VERBOSE=yes. +test -z "$VERBOSE" || set -x + +test "$USE_ACL" = 0 && + { + echo "Skipping test: insufficient ACL support" + exit 77 + } + +# func_tmpdir +# creates a temporary directory. +# Sets variable +# - tmp pathname of freshly created temporary directory +func_tmpdir () +{ + # Use the environment variable TMPDIR, falling back to /tmp. This allows + # users to specify a different temporary directory, for example, if their + # /tmp is filled up or too small. + : ${TMPDIR=/tmp} + { + # Use the mktemp program if available. If not available, hide the error + # message. + tmp=`(umask 077 && mktemp -d "$TMPDIR/glXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" + } || + { + # Use a simple mkdir command. It is guaranteed to fail if the directory + # already exists. $RANDOM is bash specific and expands to empty in shells + # other than bash, ksh and zsh. Its use does not increase security; + # rather, it minimizes the probability of failure in a very cluttered /tmp + # directory. + tmp=$TMPDIR/gl$$-$RANDOM + (umask 077 && mkdir "$tmp") + } || + { + echo "$0: cannot create a temporary directory in $TMPDIR" >&2 + exit 1 + } +} + +func_tmpdir +builddir=`pwd` +cd "$builddir" || + { + echo "$0: cannot determine build directory (unreadable parent dir?)" >&2 + exit 1 + } +# Switch to a temporary directory, to increase the likelihood that ACLs are +# supported on the current file system. (/tmp is usually locally mounted, +# whereas the build dir is sometimes NFS-mounted.) +( cd "$tmp" + + # Prepare tmpfile0. + rm -f tmpfile[0-9] tmpaclout[0-2] + echo "Simple contents" > tmpfile0 + chmod 600 tmpfile0 + + # Classification of the platform according to the programs available for + # manipulating ACLs. + # Possible values are: + # linux, cygwin, freebsd, solaris, hpux, osf1, aix, macosx, irix, none. + # TODO: Support also native Win32 platforms (mingw). + acl_flavor=none + if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then + # Platforms with the getfacl and setfacl programs. + # Linux, FreeBSD, Solaris, Cygwin. + if (setfacl --help >/dev/null) 2>/dev/null; then + # Linux, Cygwin. + if (LC_ALL=C setfacl --help | grep ' --set-file' >/dev/null) 2>/dev/null; then + # Linux. + acl_flavor=linux + else + acl_flavor=cygwin + fi + else + # FreeBSD, Solaris. + if (LC_ALL=C setfacl 2>&1 | grep '\-x entries' >/dev/null) 2>/dev/null; then + # FreeBSD. + acl_flavor=freebsd + else + # Solaris. + acl_flavor=solaris + fi + fi + else + if (lsacl / >/dev/null) 2>/dev/null; then + # Platforms with the lsacl and chacl programs. + # HP-UX, sometimes also IRIX. + acl_flavor=hpux + else + if (getacl tmpfile0 >/dev/null) 2>/dev/null; then + # Tru64. + acl_flavor=osf1 + else + if (aclget tmpfile0 >/dev/null) 2>/dev/null; then + # AIX. + acl_flavor=aix + else + if (fsaclctl -v >/dev/null) 2>/dev/null; then + # MacOS X. + acl_flavor=macosx + else + if test -f /sbin/chacl; then + # IRIX. + acl_flavor=irix + fi + fi + fi + fi + fi + fi + + # Define a function to test for the same ACLs, from the point of view of + # the programs. + # func_test_same_acls file1 file2 + case $acl_flavor in + linux | cygwin | freebsd | solaris) + func_test_same_acls () + { + getfacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + getfacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + hpux) + func_test_same_acls () + { + lsacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + lsacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + osf1) + func_test_same_acls () + { + getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + getacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + aix) + func_test_same_acls () + { + aclget "$1" > tmpaclout1 + aclget "$2" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + macosx) + func_test_same_acls () + { + /bin/ls -le "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + /bin/ls -le "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + irix) + func_test_same_acls () + { + /bin/ls -lD "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + /bin/ls -lD "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + none) + func_test_same_acls () + { + : + } + ;; + esac + + # func_test_copy file1 file2 + # copies file1 to file2 and verifies the permissions and ACLs are the same + # on both. + func_test_copy () + { + echo "Simple contents" > "$2" + chmod 600 "$2" + "$builddir"/test-copy-acl${EXEEXT} "$1" "$2" || exit 1 + "$builddir"/test-sameacls${EXEEXT} "$1" "$2" || exit 1 + func_test_same_acls "$1" "$2" || exit 1 + } + + func_test_copy tmpfile0 tmpfile1 + + if test $acl_flavor != none; then + # A POSIX compliant 'id' program. + if test -f /usr/xpg4/bin/id; then + ID=/usr/xpg4/bin/id + else + ID=id + fi + # Use a user and group id different from the current one, to avoid + # redundant/ambiguous ACLs. + myuid=`$ID -u` + mygid=`$ID -g` + auid=1 + if test "$auid" = "$myuid"; then auid=2; fi + agid=1 + if test "$agid" = "$mygid"; then agid=2; fi + + case $acl_flavor in + linux | freebsd | solaris) + + # Set an ACL for a user. + setfacl -m user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + setfacl -m group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + case $acl_flavor in + freebsd) setfacl -m other::4 tmpfile0 ;; + solaris) chmod o+r tmpfile0 ;; + *) setfacl -m other:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + case $acl_flavor in + linux) setfacl -x user:$auid tmpfile0 ;; + freebsd) setfacl -x user:$auid:1 tmpfile0 ;; + *) setfacl -d user:$auid:1 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for other. + case $acl_flavor in + linux | solaris) ;; # impossible + freebsd) setfacl -x other::4 tmpfile0 ;; + *) setfacl -d other:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile6 + + # Remove the ACL for the group. + case $acl_flavor in + linux) setfacl -x group:$agid tmpfile0 ;; + freebsd) setfacl -x group:$agid:4 tmpfile0 ;; + *) setfacl -d group:$agid:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + case $acl_flavor in + linux | freebsd) + setfacl -m user:$auid:1 tmpfile0 + setfacl -b tmpfile0 + ;; + *) + setfacl -s user::6,group::0,other:0 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + case $acl_flavor in + linux) getfacl tmpfile9 | setfacl --set-file=- tmpfile0 ;; + freebsd) ;; + *) getfacl tmpfile9 | setfacl -f - tmpfile0 ;; + esac + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + cygwin) + + # Set an ACL for a group. + setfacl -m group:0:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for other. + setfacl -m other:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the group. + setfacl -d group:0 tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for other. + setfacl -d other:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + + # Delete all optional ACLs. + setfacl -s user::6,group::0,other:0 tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + getfacl tmpfile9 | setfacl -f - tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + hpux) + + # Set an ACL for a user. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}($auid.%,--x)" tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}(%.$agid,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}(%.%,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + chacl -d "($auid.%,--x)" tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + chacl -d "(%.$agid,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + + # Delete all optional ACLs. + chacl -z tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + orig=`lsacl tmpfile9 | sed -e 's/ tmpfile9$//'` + rm -f tmpfile9 + chacl -r "${orig}" tmpfile0 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + osf1) + + # Set an ACL for a user. + setacl -u user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + setacl -u group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + setacl -u other::4 tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + setacl -x user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + if false; then # would give an error "can't set ACL: Invalid argument" + # Remove the ACL for other. + setacl -x other::4 tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + fi + + # Remove the ACL for the group. + setacl -x group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + setacl -u user:$auid:1 tmpfile0 + setacl -b tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + getacl tmpfile9 > tmpaclout0 + setacl -b -U tmpaclout0 tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + aix) + + # Set an ACL for a user. + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit --x u:$auid"; } | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit r-- g:$agid"; } | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + chmod o+r tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + aclget tmpfile0 | grep -v ' u:[^ ]*$' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + aclget tmpfile0 | grep -v ' g:[^ ]*$' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + aclget tmpfile0 | sed -e 's/enabled$/disabled/' | sed -e '/disabled$/q' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + aclget tmpfile9 | aclput tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + macosx) + + # Set an ACL for a user. + /bin/chmod +a "user:daemon allow execute" tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + /bin/chmod +a "group:daemon allow read" tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + chmod o+r tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + /bin/chmod -a "user:daemon allow execute" tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + /bin/chmod -a "group:daemon allow read" tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + /bin/chmod -N tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + { /bin/ls -le tmpfile9 | sed -n -e 's/^ [0-9][0-9]*: //p'; echo; } | /bin/chmod -E tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + irix) + + # Set an ACL for a user. + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x,group:$agid:r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + /sbin/chacl user::rw-,group::---,user:$auid:--x,group:$agid:r--,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + /sbin/chacl user::rw-,group::---,group:$agid:r--,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + /sbin/chacl user::rw-,group::---,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + ;; + + esac + fi + + rm -f tmpfile[0-9] tmpaclout[0-2] +) || exit 1 + +rm -rf "$tmp" +exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-copy-file.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-file.c --- gettext-0.17/gettext-tools/gnulib-tests/test-copy-file.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-file.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,42 @@ +/* Test of copying of files. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "copy-file.h" + +#include "progname.h" +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + const char *file1; + const char *file2; + + set_program_name (argv[0]); + + ASSERT (argc == 3); + + file1 = argv[1]; + file2 = argv[2]; + + copy_file_preserving (file1, file2); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-copy-file.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-file.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-copy-file.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-copy-file.sh 2009-08-30 15:49:52.000000000 +0000 @@ -0,0 +1,528 @@ +#!/bin/sh + +# Show all commands when run with environment variable VERBOSE=yes. +test -z "$VERBOSE" || set -x + +# func_tmpdir +# creates a temporary directory. +# Sets variable +# - tmp pathname of freshly created temporary directory +func_tmpdir () +{ + # Use the environment variable TMPDIR, falling back to /tmp. This allows + # users to specify a different temporary directory, for example, if their + # /tmp is filled up or too small. + : ${TMPDIR=/tmp} + { + # Use the mktemp program if available. If not available, hide the error + # message. + tmp=`(umask 077 && mktemp -d "$TMPDIR/glXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" + } || + { + # Use a simple mkdir command. It is guaranteed to fail if the directory + # already exists. $RANDOM is bash specific and expands to empty in shells + # other than bash, ksh and zsh. Its use does not increase security; + # rather, it minimizes the probability of failure in a very cluttered /tmp + # directory. + tmp=$TMPDIR/gl$$-$RANDOM + (umask 077 && mkdir "$tmp") + } || + { + echo "$0: cannot create a temporary directory in $TMPDIR" >&2 + exit 1 + } +} + +func_tmpdir +builddir=`pwd` +cd "$builddir" || + { + echo "$0: cannot determine build directory (unreadable parent dir?)" >&2 + exit 1 + } +# Switch to a temporary directory, to increase the likelihood that ACLs are +# supported on the current file system. (/tmp is usually locally mounted, +# whereas the build dir is sometimes NFS-mounted.) +( cd "$tmp" + + # Prepare tmpfile0. + rm -f tmpfile[0-9] tmpaclout[0-2] + echo "Simple contents" > tmpfile0 + chmod 600 tmpfile0 + + # Classification of the platform according to the programs available for + # manipulating ACLs. + # Possible values are: + # linux, cygwin, freebsd, solaris, hpux, osf1, aix, macosx, irix, none. + # TODO: Support also native Win32 platforms (mingw). + acl_flavor=none + if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then + # Platforms with the getfacl and setfacl programs. + # Linux, FreeBSD, Solaris, Cygwin. + if (setfacl --help >/dev/null) 2>/dev/null; then + # Linux, Cygwin. + if (LC_ALL=C setfacl --help | grep ' --set-file' >/dev/null) 2>/dev/null; then + # Linux. + acl_flavor=linux + else + acl_flavor=cygwin + fi + else + # FreeBSD, Solaris. + if (LC_ALL=C setfacl 2>&1 | grep '\-x entries' >/dev/null) 2>/dev/null; then + # FreeBSD. + acl_flavor=freebsd + else + # Solaris. + acl_flavor=solaris + fi + fi + else + if (lsacl / >/dev/null) 2>/dev/null; then + # Platforms with the lsacl and chacl programs. + # HP-UX, sometimes also IRIX. + acl_flavor=hpux + else + if (getacl tmpfile0 >/dev/null) 2>/dev/null; then + # Tru64. + acl_flavor=osf1 + else + if (aclget tmpfile0 >/dev/null) 2>/dev/null; then + # AIX. + acl_flavor=aix + else + if (fsaclctl -v >/dev/null) 2>/dev/null; then + # MacOS X. + acl_flavor=macosx + else + if test -f /sbin/chacl; then + # IRIX. + acl_flavor=irix + fi + fi + fi + fi + fi + fi + + # Define a function to test for the same ACLs, from the point of view of + # the programs. + # func_test_same_acls file1 file2 + case $acl_flavor in + linux | cygwin | freebsd | solaris) + func_test_same_acls () + { + getfacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + getfacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + hpux) + func_test_same_acls () + { + lsacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + lsacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + osf1) + func_test_same_acls () + { + getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + getacl "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + aix) + func_test_same_acls () + { + aclget "$1" > tmpaclout1 + aclget "$2" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + macosx) + func_test_same_acls () + { + /bin/ls -le "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + /bin/ls -le "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + irix) + func_test_same_acls () + { + /bin/ls -lD "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1 + /bin/ls -lD "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2 + cmp tmpaclout1 tmpaclout2 > /dev/null + } + ;; + none) + func_test_same_acls () + { + : + } + ;; + esac + + # func_test_copy file1 file2 + # copies file1 to file2 and verifies the permissions and ACLs are the same + # on both. + func_test_copy () + { + "$builddir"/test-copy-file${EXEEXT} "$1" "$2" || exit 1 + if test "$USE_ACL" != 0; then + "$builddir"/test-sameacls${EXEEXT} "$1" "$2" || exit 1 + func_test_same_acls "$1" "$2" || exit 1 + fi + } + + func_test_copy tmpfile0 tmpfile1 + + if test "$USE_ACL" != 0 && test $acl_flavor != none; then + # A POSIX compliant 'id' program. + if test -f /usr/xpg4/bin/id; then + ID=/usr/xpg4/bin/id + else + ID=id + fi + # Use a user and group id different from the current one, to avoid + # redundant/ambiguous ACLs. + myuid=`$ID -u` + mygid=`$ID -g` + auid=1 + if test "$auid" = "$myuid"; then auid=2; fi + agid=1 + if test "$agid" = "$mygid"; then agid=2; fi + + case $acl_flavor in + linux | freebsd | solaris) + + # Set an ACL for a user. + setfacl -m user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + setfacl -m group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + case $acl_flavor in + freebsd) setfacl -m other::4 tmpfile0 ;; + solaris) chmod o+r tmpfile0 ;; + *) setfacl -m other:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + case $acl_flavor in + linux) setfacl -x user:$auid tmpfile0 ;; + freebsd) setfacl -x user:$auid:1 tmpfile0 ;; + *) setfacl -d user:$auid:1 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for other. + case $acl_flavor in + linux | solaris) ;; # impossible + freebsd) setfacl -x other::4 tmpfile0 ;; + *) setfacl -d other:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile6 + + # Remove the ACL for the group. + case $acl_flavor in + linux) setfacl -x group:$agid tmpfile0 ;; + freebsd) setfacl -x group:$agid:4 tmpfile0 ;; + *) setfacl -d group:$agid:4 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + case $acl_flavor in + linux | freebsd) + setfacl -m user:$auid:1 tmpfile0 + setfacl -b tmpfile0 + ;; + *) + setfacl -s user::6,group::0,other:0 tmpfile0 ;; + esac + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + case $acl_flavor in + linux) getfacl tmpfile9 | setfacl --set-file=- tmpfile0 ;; + freebsd) ;; + *) getfacl tmpfile9 | setfacl -f - tmpfile0 ;; + esac + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + cygwin) + + # Set an ACL for a group. + setfacl -m group:0:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for other. + setfacl -m other:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the group. + setfacl -d group:0 tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for other. + setfacl -d other:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + + # Delete all optional ACLs. + setfacl -s user::6,group::0,other:0 tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + getfacl tmpfile9 | setfacl -f - tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + hpux) + + # Set an ACL for a user. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}($auid.%,--x)" tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}(%.$agid,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}(%.%,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + chacl -d "($auid.%,--x)" tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + chacl -d "(%.$agid,r--)" tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + + # Delete all optional ACLs. + chacl -z tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + orig=`lsacl tmpfile9 | sed -e 's/ tmpfile9$//'` + rm -f tmpfile9 + chacl -r "${orig}" tmpfile0 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + osf1) + + # Set an ACL for a user. + setacl -u user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + setacl -u group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + setacl -u other::4 tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + setacl -x user:$auid:1 tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + if false; then # would give an error "can't set ACL: Invalid argument" + # Remove the ACL for other. + setacl -x other::4 tmpfile0 + + func_test_copy tmpfile0 tmpfile6 + fi + + # Remove the ACL for the group. + setacl -x group:$agid:4 tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + setacl -u user:$auid:1 tmpfile0 + setacl -b tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + getacl tmpfile9 > tmpaclout0 + setacl -b -U tmpaclout0 tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + aix) + + # Set an ACL for a user. + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit --x u:$auid"; } | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit r-- g:$agid"; } | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + chmod o+r tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + aclget tmpfile0 | grep -v ' u:[^ ]*$' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + aclget tmpfile0 | grep -v ' g:[^ ]*$' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + aclget tmpfile0 | sed -e 's/enabled$/disabled/' | sed -e '/disabled$/q' | aclput tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + aclget tmpfile9 | aclput tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + macosx) + + # Set an ACL for a user. + /bin/chmod +a "user:daemon allow execute" tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + /bin/chmod +a "group:daemon allow read" tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + chmod o+r tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + /bin/chmod -a "user:daemon allow execute" tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + /bin/chmod -a "group:daemon allow read" tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + # Delete all optional ACLs. + /bin/chmod -N tmpfile0 + + func_test_copy tmpfile0 tmpfile8 + + # Copy ACLs from a file that has no ACLs. + echo > tmpfile9 + chmod a+x tmpfile9 + { /bin/ls -le tmpfile9 | sed -n -e 's/^ [0-9][0-9]*: //p'; echo; } | /bin/chmod -E tmpfile0 + rm -f tmpfile9 + + func_test_copy tmpfile0 tmpfile9 + + ;; + + irix) + + # Set an ACL for a user. + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0 + + func_test_copy tmpfile0 tmpfile2 + + # Set an ACL for a group. + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x,group:$agid:r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile3 + + # Set an ACL for other. + /sbin/chacl user::rw-,group::---,user:$auid:--x,group:$agid:r--,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile4 + + # Remove the ACL for the user. + /sbin/chacl user::rw-,group::---,group:$agid:r--,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile5 + + # Remove the ACL for the group. + /sbin/chacl user::rw-,group::---,other::r-- tmpfile0 + + func_test_copy tmpfile0 tmpfile7 + + ;; + + esac + fi + + rm -f tmpfile[0-9] tmpaclout[0-2] +) || exit 1 + +rm -rf "$tmp" +exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-c-strcasecmp.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strcasecmp.c --- gettext-0.17/gettext-tools/gnulib-tests/test-c-strcasecmp.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strcasecmp.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of case-insensitive string comparison function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,20 +21,9 @@ #include "c-strcase.h" #include -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char *argv[]) @@ -43,7 +32,7 @@ { /* configure should already have checked that the locale is supported. */ if (setlocale (LC_ALL, "") == NULL) - return 1; + return 1; } ASSERT (c_strcasecmp ("paragraph", "Paragraph") == 0); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-c-strcasestr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strcasestr.c --- gettext-0.17/gettext-tools/gnulib-tests/test-c-strcasestr.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strcasestr.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of case-insensitive searching in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,20 +20,10 @@ #include "c-strcasestr.h" -#include #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -62,6 +52,12 @@ ASSERT (result == NULL); } + { + const char input[] = "ABC ABCDAB ABCDABCDABDE"; + const char *result = c_strcasestr (input, "ABCDaBCD"); + ASSERT (result == input + 11); + } + /* Check that a very long haystack is handled quickly if the needle is short and occurs near the beginning. */ { @@ -74,16 +70,16 @@ char *haystack = (char *) malloc (m + 1); if (haystack != NULL) { - memset (haystack, 'A', m); - haystack[0] = 'B'; - haystack[m] = '\0'; - - for (; repeat > 0; repeat--) - { - ASSERT (c_strcasestr (haystack, needle) == haystack + 1); - } + memset (haystack, 'A', m); + haystack[0] = 'B'; + haystack[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (c_strcasestr (haystack, needle) == haystack + 1); + } - free (haystack); + free (haystack); } } @@ -98,15 +94,15 @@ char *needle = (char *) malloc (m + 1); if (needle != NULL) { - memset (needle, 'A', m); - needle[m] = '\0'; + memset (needle, 'A', m); + needle[m] = '\0'; - for (; repeat > 0; repeat--) - { - ASSERT (c_strcasestr (haystack, needle) == NULL); - } + for (; repeat > 0; repeat--) + { + ASSERT (c_strcasestr (haystack, needle) == NULL); + } - free (needle); + free (needle); } } @@ -117,23 +113,21 @@ char *needle = (char *) malloc (m + 2); if (haystack != NULL && needle != NULL) { - const char *result; + const char *result; - memset (haystack, 'A', 2 * m); - haystack[2 * m] = 'B'; - haystack[2 * m + 1] = '\0'; - - memset (needle, 'a', m); - needle[m] = 'B'; - needle[m + 1] = '\0'; + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = '\0'; + + memset (needle, 'a', m); + needle[m] = 'B'; + needle[m + 1] = '\0'; - result = c_strcasestr (haystack, needle); - ASSERT (result == haystack + m); + result = c_strcasestr (haystack, needle); + ASSERT (result == haystack + m); } - if (needle != NULL) - free (needle); - if (haystack != NULL) - free (haystack); + free (needle); + free (haystack); } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-c-strncasecmp.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strncasecmp.c --- gettext-0.17/gettext-tools/gnulib-tests/test-c-strncasecmp.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strncasecmp.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of case-insensitive string comparison function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,20 +21,9 @@ #include "c-strcase.h" #include -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char *argv[]) @@ -43,7 +32,7 @@ { /* configure should already have checked that the locale is supported. */ if (setlocale (LC_ALL, "") == NULL) - return 1; + return 1; } ASSERT (c_strncasecmp ("paragraph", "Paragraph", 1000000) == 0); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-c-strstr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strstr.c --- gettext-0.17/gettext-tools/gnulib-tests/test-c-strstr.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-c-strstr.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of searching in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,20 +20,10 @@ #include "c-strstr.h" -#include #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -73,16 +63,16 @@ char *haystack = (char *) malloc (m + 1); if (haystack != NULL) { - memset (haystack, 'A', m); - haystack[0] = 'B'; - haystack[m] = '\0'; - - for (; repeat > 0; repeat--) - { - ASSERT (c_strstr (haystack, needle) == haystack + 1); - } + memset (haystack, 'A', m); + haystack[0] = 'B'; + haystack[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (c_strstr (haystack, needle) == haystack + 1); + } - free (haystack); + free (haystack); } } @@ -97,15 +87,15 @@ char *needle = (char *) malloc (m + 1); if (needle != NULL) { - memset (needle, 'A', m); - needle[m] = '\0'; + memset (needle, 'A', m); + needle[m] = '\0'; - for (; repeat > 0; repeat--) - { - ASSERT (c_strstr (haystack, needle) == NULL); - } + for (; repeat > 0; repeat--) + { + ASSERT (c_strstr (haystack, needle) == NULL); + } - free (needle); + free (needle); } } @@ -116,23 +106,21 @@ char *needle = (char *) malloc (m + 2); if (haystack != NULL && needle != NULL) { - const char *result; + const char *result; - memset (haystack, 'A', 2 * m); - haystack[2 * m] = 'B'; - haystack[2 * m + 1] = '\0'; - - memset (needle, 'A', m); - needle[m] = 'B'; - needle[m + 1] = '\0'; + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = '\0'; + + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = '\0'; - result = c_strstr (haystack, needle); - ASSERT (result == haystack + m); + result = c_strstr (haystack, needle); + ASSERT (result == haystack + m); } - if (needle != NULL) - free (needle); - if (haystack != NULL) - free (haystack); + free (needle); + free (haystack); } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-dup2.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-dup2.c --- gettext-0.17/gettext-tools/gnulib-tests/test-dup2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-dup2.c 2010-03-28 18:32:30.000000000 +0000 @@ -0,0 +1,193 @@ +/* Test duplicating file descriptors. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (dup2, int, (int, int)); + +#include +#include + +#include "binary-io.h" + +#if GNULIB_TEST_CLOEXEC +# include "cloexec.h" +#endif + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#include "macros.h" + +/* Return non-zero if FD is open. */ +static int +is_open (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +#else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +#endif +} + +#if GNULIB_TEST_CLOEXEC +/* Return non-zero if FD is open and inheritable across exec/spawn. */ +static int +is_inheritable (int fd) +{ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + HANDLE h = (HANDLE) _get_osfhandle (fd); + DWORD flags; + if (h == INVALID_HANDLE_VALUE || GetHandleInformation (h, &flags) == 0) + return 0; + return (flags & HANDLE_FLAG_INHERIT) != 0; +# else +# ifndef F_GETFD +# error Please port fcntl to your platform +# endif + int i = fcntl (fd, F_GETFD); + return 0 <= i && (i & FD_CLOEXEC) == 0; +# endif +} +#endif /* GNULIB_TEST_CLOEXEC */ + +#if !O_BINARY +# define setmode(f,m) zero () +static int zero (void) { return 0; } +#endif + +/* Return non-zero if FD is open in the given MODE, which is either + O_TEXT or O_BINARY. */ +static int +is_mode (int fd, int mode) +{ + int value = setmode (fd, O_BINARY); + setmode (fd, value); + return mode == value; +} + +int +main (void) +{ + const char *file = "test-dup2.tmp"; + char buffer[1]; + int fd = open (file, O_CREAT | O_TRUNC | O_RDWR, 0600); + + /* Assume std descriptors were provided by invoker. */ + ASSERT (STDERR_FILENO < fd); + ASSERT (is_open (fd)); + /* Ignore any other fd's leaked into this process. */ + close (fd + 1); + close (fd + 2); + ASSERT (!is_open (fd + 1)); + ASSERT (!is_open (fd + 2)); + + /* Assigning to self must be a no-op. */ + ASSERT (dup2 (fd, fd) == fd); + ASSERT (is_open (fd)); + + /* The source must be valid. */ + errno = 0; + ASSERT (dup2 (-1, fd) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup2 (AT_FDCWD, fd) == -1); + ASSERT (errno == EBADF); + ASSERT (is_open (fd)); + + /* If the source is not open, then the destination is unaffected. */ + errno = 0; + ASSERT (dup2 (fd + 1, fd + 1) == -1); + ASSERT (errno == EBADF); + ASSERT (!is_open (fd + 1)); + errno = 0; + ASSERT (dup2 (fd + 1, fd) == -1); + ASSERT (errno == EBADF); + ASSERT (is_open (fd)); + + /* The destination must be valid. */ + errno = 0; + ASSERT (dup2 (fd, -2) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup2 (fd, 10000000) == -1); + ASSERT (errno == EBADF); + + /* Using dup2 can skip fds. */ + ASSERT (dup2 (fd, fd + 2) == fd + 2); + ASSERT (is_open (fd)); + ASSERT (!is_open (fd + 1)); + ASSERT (is_open (fd + 2)); + + /* Verify that dup2 closes the previous occupant of a fd. */ + ASSERT (open ("/dev/null", O_WRONLY, 0600) == fd + 1); + ASSERT (dup2 (fd + 1, fd) == fd); + ASSERT (close (fd + 1) == 0); + ASSERT (write (fd, "1", 1) == 1); + ASSERT (dup2 (fd + 2, fd) == fd); + ASSERT (lseek (fd, 0, SEEK_END) == 0); + ASSERT (write (fd + 2, "2", 1) == 1); + ASSERT (lseek (fd, 0, SEEK_SET) == 0); + ASSERT (read (fd, buffer, 1) == 1); + ASSERT (*buffer == '2'); + +#if GNULIB_TEST_CLOEXEC + /* Any new fd created by dup2 must not be cloexec. */ + ASSERT (close (fd + 2) == 0); + ASSERT (dup_cloexec (fd) == fd + 1); + ASSERT (!is_inheritable (fd + 1)); + ASSERT (dup2 (fd + 1, fd + 1) == fd + 1); + ASSERT (!is_inheritable (fd + 1)); + ASSERT (dup2 (fd + 1, fd + 2) == fd + 2); + ASSERT (is_inheritable (fd + 2)); +#endif + + /* On systems that distinguish between text and binary mode, dup2 + reuses the mode of the source. */ + setmode (fd, O_BINARY); + ASSERT (is_mode (fd, O_BINARY)); + ASSERT (dup2 (fd, fd + 1) == fd + 1); + ASSERT (is_mode (fd + 1, O_BINARY)); + setmode (fd, O_TEXT); + ASSERT (is_mode (fd, O_TEXT)); + ASSERT (dup2 (fd, fd + 1) == fd + 1); + ASSERT (is_mode (fd + 1, O_TEXT)); + + /* Clean up. */ + ASSERT (close (fd + 2) == 0); + ASSERT (close (fd + 1) == 0); + ASSERT (close (fd) == 0); + ASSERT (unlink (file) == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-dup-safer.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-dup-safer.c --- gettext-0.17/gettext-tools/gnulib-tests/test-dup-safer.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-dup-safer.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,175 @@ +/* Test that dup_safer leaves standard fds alone. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include "unistd--.h" + +#include +#include +#include +#include + +#include "binary-io.h" +#include "cloexec.h" + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#if !O_BINARY +# define setmode(f,m) zero () +static int zero (void) { return 0; } +#endif +#ifndef O_CLOEXEC +# define O_CLOEXEC 0 +#endif + +/* This test intentionally closes stderr. So, we arrange to have fd 10 + (outside the range of interesting fd's during the test) set up to + duplicate the original stderr. */ + +#define BACKUP_STDERR_FILENO 10 +#define ASSERT_STREAM myerr +#include "macros.h" + +static FILE *myerr; + +/* Return true if FD is open. */ +static bool +is_open (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +#else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +#endif +} + +/* Return true if FD is open and inheritable across exec/spawn. */ +static bool +is_inheritable (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + HANDLE h = (HANDLE) _get_osfhandle (fd); + DWORD flags; + if (h == INVALID_HANDLE_VALUE || GetHandleInformation (h, &flags) == 0) + return 0; + return (flags & HANDLE_FLAG_INHERIT) != 0; +#else +# ifndef F_GETFD +# error Please port fcntl to your platform +# endif + int i = fcntl (fd, F_GETFD); + return 0 <= i && (i & FD_CLOEXEC) == 0; +#endif +} + +/* Return true if FD is open in the given MODE, which is either + O_TEXT or O_BINARY. */ +static bool +is_mode (int fd, int mode) +{ + int value = setmode (fd, O_BINARY); + setmode (fd, value); + return mode == value; +} + +#define witness "test-dup-safer.txt" + +int +main (void) +{ + int i; + int fd; + + /* We close fd 2 later, so save it in fd 10. */ + if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO + || (myerr = fdopen (BACKUP_STDERR_FILENO, "w")) == NULL) + return 2; + + /* Create file for later checks. */ + fd = creat (witness, 0600); + ASSERT (STDERR_FILENO < fd); + + /* Four iterations, with progressively more standard descriptors + closed. */ + for (i = -1; i <= STDERR_FILENO; i++) + { + if (0 <= i) + ASSERT (close (i) == 0); + + /* Detect errors. */ + errno = 0; + ASSERT (dup (-1) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (dup (10000000) == -1); + ASSERT (errno == EBADF); + close (fd + 1); + errno = 0; + ASSERT (dup (fd + 1) == -1); + ASSERT (errno == EBADF); + + /* Preserve text vs. binary. */ + setmode (fd, O_BINARY); + ASSERT (dup (fd) == fd + 1); + ASSERT (is_open (fd + 1)); + ASSERT (is_inheritable (fd + 1)); + ASSERT (is_mode (fd + 1, O_BINARY)); + + ASSERT (close (fd + 1) == 0); + setmode (fd, O_TEXT); + ASSERT (dup (fd) == fd + 1); + ASSERT (is_open (fd + 1)); + ASSERT (is_inheritable (fd + 1)); + ASSERT (is_mode (fd + 1, O_TEXT)); + + /* Create cloexec copy. */ + ASSERT (close (fd + 1) == 0); + ASSERT (fd_safer_flag (dup_cloexec (fd), O_CLOEXEC) == fd + 1); + ASSERT (set_cloexec_flag (fd + 1, true) == 0); + ASSERT (is_open (fd + 1)); + ASSERT (!is_inheritable (fd + 1)); + ASSERT (close (fd) == 0); + + /* dup always creates inheritable copies. Also, check that + earliest slot past std fds is used. */ + ASSERT (dup (fd + 1) == fd); + ASSERT (is_open (fd)); + ASSERT (is_inheritable (fd)); + ASSERT (close (fd + 1) == 0); + } + + /* Cleanup. */ + ASSERT (close (fd) == 0); + ASSERT (unlink (witness) == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-environ.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-environ.c --- gettext-0.17/gettext-tools/gnulib-tests/test-environ.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-environ.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,44 @@ +/* Test of environ variable. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include + +int +main () +{ + /* The environment variables that are set even in the weirdest situations + are HOME and PATH. + POSIX says that HOME is initialized by the system, and that PATH may be + unset. But in practice it's more frequent to see HOME unset and PATH + set. So we test the presence of PATH. */ + char **remaining_variables = environ; + char *string; + + for (; (string = *remaining_variables) != NULL; remaining_variables++) + { + if (strncmp (string, "PATH=", 5) == 0) + /* Found the PATH environment variable. */ + return 0; + } + /* Failed to find the PATH environment variable. */ + return 1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-errno.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-errno.c --- gettext-0.17/gettext-tools/gnulib-tests/test-errno.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-errno.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,117 @@ +/* Test of substitute. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +/* Verify that the POSIX mandated errno values exist and can be used as + initializers outside of a function. + The variable names happen to match the Linux/x86 error numbers. */ +int e1 = EPERM; +int e2 = ENOENT; +int e3 = ESRCH; +int e4 = EINTR; +int e5 = EIO; +int e6 = ENXIO; +int e7 = E2BIG; +int e8 = ENOEXEC; +int e9 = EBADF; +int e10 = ECHILD; +int e11 = EAGAIN; +int e11a = EWOULDBLOCK; +int e12 = ENOMEM; +int e13 = EACCES; +int e14 = EFAULT; +int e16 = EBUSY; +int e17 = EEXIST; +int e18 = EXDEV; +int e19 = ENODEV; +int e20 = ENOTDIR; +int e21 = EISDIR; +int e22 = EINVAL; +int e23 = ENFILE; +int e24 = EMFILE; +int e25 = ENOTTY; +int e26 = ETXTBSY; +int e27 = EFBIG; +int e28 = ENOSPC; +int e29 = ESPIPE; +int e30 = EROFS; +int e31 = EMLINK; +int e32 = EPIPE; +int e33 = EDOM; +int e34 = ERANGE; +int e35 = EDEADLK; +int e36 = ENAMETOOLONG; +int e37 = ENOLCK; +int e38 = ENOSYS; +int e39 = ENOTEMPTY; +int e40 = ELOOP; +int e42 = ENOMSG; +int e43 = EIDRM; +int e67 = ENOLINK; +int e71 = EPROTO; +int e72 = EMULTIHOP; +int e74 = EBADMSG; +int e75 = EOVERFLOW; +int e84 = EILSEQ; +int e88 = ENOTSOCK; +int e89 = EDESTADDRREQ; +int e90 = EMSGSIZE; +int e91 = EPROTOTYPE; +int e92 = ENOPROTOOPT; +int e93 = EPROTONOSUPPORT; +int e95 = EOPNOTSUPP; +int e95a = ENOTSUP; +int e97 = EAFNOSUPPORT; +int e98 = EADDRINUSE; +int e99 = EADDRNOTAVAIL; +int e100 = ENETDOWN; +int e101 = ENETUNREACH; +int e102 = ENETRESET; +int e103 = ECONNABORTED; +int e104 = ECONNRESET; +int e105 = ENOBUFS; +int e106 = EISCONN; +int e107 = ENOTCONN; +int e110 = ETIMEDOUT; +int e111 = ECONNREFUSED; +int e113 = EHOSTUNREACH; +int e114 = EALREADY; +int e115 = EINPROGRESS; +int e116 = ESTALE; +int e122 = EDQUOT; +int e125 = ECANCELED; + +/* Don't verify that these errno values are all different, except for possibly + EWOULDBLOCK == EAGAIN. Even Linux/x86 does not pass this check: it has + ENOTSUP == EOPNOTSUPP. */ + +int +main () +{ + /* Verify that errno can be assigned. */ + errno = EOVERFLOW; + + /* snprintf() callers want to distinguish EINVAL and EOVERFLOW. */ + if (errno == EINVAL) + return 1; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fcntl.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fcntl.c --- gettext-0.17/gettext-tools/gnulib-tests/test-fcntl.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fcntl.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ -/* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. +/* Test of fcntl(2). + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,22 +14,333 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* Written by Bruno Haible , 2007. */ +/* Written by Eric Blake , 2009. */ #include +/* Specification. */ #include -/* Check that the various O_* macros are defined. */ -int o = O_DIRECT | O_DIRECTORY | O_DSYNC | O_NDELAY | O_NOATIME | O_NONBLOCK - | O_NOCTTY | O_NOFOLLOW | O_NOLINKS | O_RSYNC | O_SYNC - | O_BINARY | O_TEXT; +#include "signature.h" +SIGNATURE_CHECK (fcntl, int, (int, int, ...)); -/* Check that the various SEEK_* macros are defined. */ -int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET }; +/* Helpers. */ +#include +#include +#include +#include + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#include "binary-io.h" +#include "macros.h" + +/* Use O_CLOEXEC if available, but test works without it. */ +#ifndef O_CLOEXEC +# define O_CLOEXEC 0 +#endif + +#if !O_BINARY +# define setmode(f,m) zero () +static int zero (void) { return 0; } +#endif + +/* Return true if FD is open. */ +static bool +is_open (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +#else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +#endif +} + +/* Return true if FD is open and inheritable across exec/spawn. */ +static bool +is_inheritable (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + HANDLE h = (HANDLE) _get_osfhandle (fd); + DWORD flags; + if (h == INVALID_HANDLE_VALUE || GetHandleInformation (h, &flags) == 0) + return false; + return (flags & HANDLE_FLAG_INHERIT) != 0; +#else +# ifndef F_GETFD +# error Please port fcntl to your platform +# endif + int i = fcntl (fd, F_GETFD); + return 0 <= i && (i & FD_CLOEXEC) == 0; +#endif +} + +/* Return non-zero if FD is open in the given MODE, which is either + O_TEXT or O_BINARY. */ +static bool +is_mode (int fd, int mode) +{ + int value = setmode (fd, O_BINARY); + setmode (fd, value); + return mode == value; +} + +/* Since native fcntl can have more supported operations than our + replacement is aware of, and since various operations assign + different types to the vararg argument, a wrapper around fcntl must + be able to pass a vararg of unknown type on through to the original + fcntl. Make sure that this works properly: func1 behaves like the + original fcntl interpreting the vararg as an int or a pointer to a + struct, and func2 behaves like rpl_fcntl that doesn't know what + type to forward. */ +struct dummy_struct +{ + long filler; + int value; +}; +static int +func1 (int a, ...) +{ + va_list arg; + int i; + va_start (arg, a); + if (a < 4) + i = va_arg (arg, int); + else + { + struct dummy_struct *s = va_arg (arg, struct dummy_struct *); + i = s->value; + } + va_end (arg); + return i; +} +static int +func2 (int a, ...) +{ + va_list arg; + void *p; + va_start (arg, a); + p = va_arg (arg, void *); + va_end (arg); + return func1 (a, p); +} + +/* Ensure that all supported fcntl actions are distinct, and + usable in preprocessor expressions. */ +static void +check_flags (void) +{ + switch (0) + { + case F_DUPFD: +#if F_DUPFD +#endif + + case F_DUPFD_CLOEXEC: +#if F_DUPFD_CLOEXEC +#endif + + case F_GETFD: +#if F_GETFD +#endif + +#ifdef F_SETFD + case F_SETFD: +# if F_SETFD +# endif +#endif + +#ifdef F_GETFL + case F_GETFL: +# if F_GETFL +# endif +#endif + +#ifdef F_SETFL + case F_SETFL: +# if F_SETFL +# endif +#endif + +#ifdef F_GETOWN + case F_GETOWN: +# if F_GETOWN +# endif +#endif + +#ifdef F_SETOWN + case F_SETOWN: +# if F_SETOWN +# endif +#endif + +#ifdef F_GETLK + case F_GETLK: +# if F_GETLK +# endif +#endif + +#ifdef F_SETLK + case F_SETLK: +# if F_SETLK +# endif +#endif + +#ifdef F_SETLKW + case F_SETLKW: +# if F_SETLKW +# endif +#endif + + ; + } +} int -main () +main (void) { + const char *file = "test-fcntl.tmp"; + int fd; + + /* Sanity check that rpl_fcntl is likely to work. */ + ASSERT (func2 (1, 2) == 2); + ASSERT (func2 (2, -2) == -2); + ASSERT (func2 (3, 0x80000000) == 0x80000000); + { + struct dummy_struct s = { 0L, 4 }; + ASSERT (func2 (4, &s) == 4); + } + check_flags (); + + /* Assume std descriptors were provided by invoker, and ignore fds + that might have been inherited. */ + fd = creat (file, 0600); + ASSERT (STDERR_FILENO < fd); + close (fd + 1); + close (fd + 2); + + /* For F_DUPFD*, the source must be valid. */ + errno = 0; + ASSERT (fcntl (-1, F_DUPFD, 0) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (fd + 1, F_DUPFD, 0) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (10000000, F_DUPFD, 0) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (-1, F_DUPFD_CLOEXEC, 0) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (fd + 1, F_DUPFD_CLOEXEC, 0) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (10000000, F_DUPFD_CLOEXEC, 0) == -1); + ASSERT (errno == EBADF); + + /* For F_DUPFD*, the destination must be valid. */ + ASSERT (getdtablesize () < 10000000); + errno = 0; + ASSERT (fcntl (fd, F_DUPFD, -1) == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (fcntl (fd, F_DUPFD, 10000000) == -1); + ASSERT (errno == EINVAL); + ASSERT (getdtablesize () < 10000000); + errno = 0; + ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, -1) == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, 10000000) == -1); + ASSERT (errno == EINVAL); + + /* For F_DUPFD*, check for correct inheritance, as well as + preservation of text vs. binary. */ + setmode (fd, O_BINARY); + ASSERT (is_open (fd)); + ASSERT (!is_open (fd + 1)); + ASSERT (!is_open (fd + 2)); + ASSERT (is_inheritable (fd)); + ASSERT (is_mode (fd, O_BINARY)); + + ASSERT (fcntl (fd, F_DUPFD, fd) == fd + 1); + ASSERT (is_open (fd)); + ASSERT (is_open (fd + 1)); + ASSERT (!is_open (fd + 2)); + ASSERT (is_inheritable (fd + 1)); + ASSERT (is_mode (fd, O_BINARY)); + ASSERT (is_mode (fd + 1, O_BINARY)); + ASSERT (close (fd + 1) == 0); + + ASSERT (fcntl (fd, F_DUPFD_CLOEXEC, fd + 2) == fd + 2); + ASSERT (is_open (fd)); + ASSERT (!is_open (fd + 1)); + ASSERT (is_open (fd + 2)); + ASSERT (is_inheritable (fd)); + ASSERT (!is_inheritable (fd + 2)); + ASSERT (is_mode (fd, O_BINARY)); + ASSERT (is_mode (fd + 2, O_BINARY)); + ASSERT (close (fd) == 0); + + setmode (fd + 2, O_TEXT); + ASSERT (fcntl (fd + 2, F_DUPFD, fd + 1) == fd + 1); + ASSERT (!is_open (fd)); + ASSERT (is_open (fd + 1)); + ASSERT (is_open (fd + 2)); + ASSERT (is_inheritable (fd + 1)); + ASSERT (!is_inheritable (fd + 2)); + ASSERT (is_mode (fd + 1, O_TEXT)); + ASSERT (is_mode (fd + 2, O_TEXT)); + ASSERT (close (fd + 1) == 0); + + ASSERT (fcntl (fd + 2, F_DUPFD_CLOEXEC, 0) == fd); + ASSERT (is_open (fd)); + ASSERT (!is_open (fd + 1)); + ASSERT (is_open (fd + 2)); + ASSERT (!is_inheritable (fd)); + ASSERT (!is_inheritable (fd + 2)); + ASSERT (is_mode (fd, O_TEXT)); + ASSERT (is_mode (fd + 2, O_TEXT)); + ASSERT (close (fd + 2) == 0); + + /* Test F_GETFD. */ + errno = 0; + ASSERT (fcntl (-1, F_GETFD) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (fd + 1, F_GETFD) == -1); + ASSERT (errno == EBADF); + errno = 0; + ASSERT (fcntl (10000000, F_GETFD) == -1); + ASSERT (errno == EBADF); + { + int result = fcntl (fd, F_GETFD); + ASSERT (0 <= result); + ASSERT ((result & FD_CLOEXEC) == FD_CLOEXEC); + ASSERT (dup (fd) == fd + 1); + result = fcntl (fd + 1, F_GETFD); + ASSERT (0 <= result); + ASSERT ((result & FD_CLOEXEC) == 0); + ASSERT (close (fd + 1) == 0); + } + + /* Cleanup. */ + ASSERT (close (fd) == 0); + ASSERT (unlink (file) == 0); + return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fcntl-h.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fcntl-h.c --- gettext-0.17/gettext-tools/gnulib-tests/test-fcntl-h.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fcntl-h.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,38 @@ +/* Test of substitute. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include + +/* Check that the various O_* macros are defined. */ +int o = O_DIRECT | O_DIRECTORY | O_DSYNC | O_NDELAY | O_NOATIME | O_NONBLOCK + | O_NOCTTY | O_NOFOLLOW | O_NOLINKS | O_RSYNC | O_SYNC | O_TTY_INIT + | O_BINARY | O_TEXT; + +/* Check that the various SEEK_* macros are defined. */ +int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET }; + +/* Check that the FD_* macros are defined. */ +int fd = FD_CLOEXEC; + +int +main (void) +{ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-file-has-acl.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-file-has-acl.c --- gettext-0.17/gettext-tools/gnulib-tests/test-file-has-acl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-file-has-acl.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,71 @@ +/* Test for presence of ACL. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "acl.h" + +#include +#include +#include +#include +#include +#include + +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + const char *file; + struct stat statbuf; + + ASSERT (argc == 2); + + file = argv[1]; + + if (stat (file, &statbuf) < 0) + { + fprintf (stderr, "could not access file \"%s\"\n", file); + exit (EXIT_FAILURE); + } + + /* Check against possible infinite loop in file_has_acl. */ +#if HAVE_DECL_ALARM + /* Declare failure if test takes too long, by using default abort + caused by SIGALRM. */ + signal (SIGALRM, SIG_DFL); + alarm (5); +#endif + +#if USE_ACL + { + int ret = file_has_acl (file, &statbuf); + if (ret < 0) + { + fprintf (stderr, "could not access the ACL of file \"%s\"\n", file); + exit (EXIT_FAILURE); + } + printf ("%s\n", ret ? "yes" : "no"); + } +#else + printf ("no\n"); +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-file-has-acl.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-file-has-acl.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-file-has-acl.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-file-has-acl.sh 2009-08-30 15:49:52.000000000 +0000 @@ -0,0 +1,344 @@ +#!/bin/sh + +# Show all commands when run with environment variable VERBOSE=yes. +test -z "$VERBOSE" || set -x + +test "$USE_ACL" = 0 && + { + echo "Skipping test: insufficient ACL support" + exit 77 + } + +# func_tmpdir +# creates a temporary directory. +# Sets variable +# - tmp pathname of freshly created temporary directory +func_tmpdir () +{ + # Use the environment variable TMPDIR, falling back to /tmp. This allows + # users to specify a different temporary directory, for example, if their + # /tmp is filled up or too small. + : ${TMPDIR=/tmp} + { + # Use the mktemp program if available. If not available, hide the error + # message. + tmp=`(umask 077 && mktemp -d "$TMPDIR/glXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" + } || + { + # Use a simple mkdir command. It is guaranteed to fail if the directory + # already exists. $RANDOM is bash specific and expands to empty in shells + # other than bash, ksh and zsh. Its use does not increase security; + # rather, it minimizes the probability of failure in a very cluttered /tmp + # directory. + tmp=$TMPDIR/gl$$-$RANDOM + (umask 077 && mkdir "$tmp") + } || + { + echo "$0: cannot create a temporary directory in $TMPDIR" >&2 + exit 1 + } +} + +func_tmpdir +builddir=`pwd` +cd "$builddir" || + { + echo "$0: cannot determine build directory (unreadable parent dir?)" >&2 + exit 1 + } +# Switch to a temporary directory, to increase the likelihood that ACLs are +# supported on the current file system. (/tmp is usually locally mounted, +# whereas the build dir is sometimes NFS-mounted.) +( cd "$tmp" + + # Prepare tmpfile0. + rm -f tmpfile[0-9] tmp.err + echo "Simple contents" > tmpfile0 + chmod 600 tmpfile0 + + # Classification of the platform according to the programs available for + # manipulating ACLs. + # Possible values are: + # linux, cygwin, freebsd, solaris, hpux, osf1, aix, macosx, irix, none. + # TODO: Support also native Win32 platforms (mingw). + acl_flavor=none + if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then + # Platforms with the getfacl and setfacl programs. + # Linux, FreeBSD, Solaris, Cygwin. + if (setfacl --help >/dev/null) 2>/dev/null; then + # Linux, Cygwin. + if (LC_ALL=C setfacl --help | grep ' --set-file' >/dev/null) 2>/dev/null; then + # Linux. + acl_flavor=linux + else + acl_flavor=cygwin + fi + else + # FreeBSD, Solaris. + if (LC_ALL=C setfacl 2>&1 | grep '\-x entries' >/dev/null) 2>/dev/null; then + # FreeBSD. + acl_flavor=freebsd + else + # Solaris. + acl_flavor=solaris + fi + fi + else + if (lsacl / >/dev/null) 2>/dev/null; then + # Platforms with the lsacl and chacl programs. + # HP-UX, sometimes also IRIX. + acl_flavor=hpux + else + if (getacl tmpfile0 >/dev/null) 2>/dev/null; then + # Tru64. + acl_flavor=osf1 + else + if (aclget tmpfile0 >/dev/null) 2>/dev/null; then + # AIX. + acl_flavor=aix + else + if (fsaclctl -v >/dev/null) 2>/dev/null; then + # MacOS X. + acl_flavor=macosx + else + if test -f /sbin/chacl; then + # IRIX. + acl_flavor=irix + fi + fi + fi + fi + fi + fi + + # func_test_file_has_acl file expected + # tests the result of the file_has_acl function on file, and checks that it + # matches the expected value. + func_test_file_has_acl () + { + res=`"$builddir"/test-file-has-acl${EXEEXT} "$1"` + test "$res" = "$2" || { + echo "file_has_acl(\"$1\") returned $res, expected $2" 1>&2 + exit 1 + } + } + + # func_test_has_acl file expected + # tests the result of the file_has_acl function on file, and checks that it + # matches the expected value, also taking into account the system's 'ls' + # program. + case $acl_flavor in + freebsd | solaris | hpux | macosx) + case $acl_flavor in + freebsd | solaris | hpux) acl_ls_option="-ld" ;; + macosx) acl_ls_option="-lde" ;; + esac + func_test_has_acl () + { + func_test_file_has_acl "$1" "$2" + case `/bin/ls $acl_ls_option "$1" | sed 1q` in + ??????????+*) + test "$2" = yes || { + echo "/bin/ls $acl_ls_option $1 shows an ACL, but expected $2" 1>&2 + exit 1 + } + ;; + ??????????" "*) + test "$2" = no || { + echo "/bin/ls $acl_ls_option $1 shows no ACL, but expected $2" 1>&2 + exit 1 + } + ;; + esac + } + ;; + irix) + func_test_has_acl () + { + func_test_file_has_acl "$1" "$2" + case `/bin/ls -ldD "$1" | sed 1q` in + *" []") + test "$2" = no || { + echo "/bin/ls -ldD $1 shows no ACL, but expected $2" 1>&2 + exit 1 + } + ;; + *) + test "$2" = yes || { + echo "/bin/ls -ldD $1 shows an ACL, but expected $2" 1>&2 + exit 1 + } + ;; + esac + } + ;; + *) + func_test_has_acl () + { + func_test_file_has_acl "$1" "$2" + } + ;; + esac + + func_test_has_acl tmpfile0 no + + mkdir tmpdir0 + func_test_has_acl tmpdir0 no + + if test $acl_flavor != none; then + # A POSIX compliant 'id' program. + if test -f /usr/xpg4/bin/id; then + ID=/usr/xpg4/bin/id + else + ID=id + fi + # Use a user and group id different from the current one, to avoid + # redundant/ambiguous ACLs. + myuid=`$ID -u` + mygid=`$ID -g` + auid=1 + if test "$auid" = "$myuid"; then auid=2; fi + agid=1 + if test "$agid" = "$mygid"; then agid=2; fi + + case $acl_flavor in + linux | freebsd | solaris) + + # Set an ACL for a user. + if setfacl -m user:$auid:1 tmpfile0; then + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + case $acl_flavor in + linux) setfacl -x user:$auid tmpfile0 ;; + freebsd) setfacl -x user:$auid:1 tmpfile0 ;; + *) setfacl -d user:$auid:1 tmpfile0 ;; + esac + + # On Linux and FreeBSD, the ACL for the mask is implicitly added. + # On Solaris, it is always there. + case $acl_flavor in + linux | freebsd) func_test_has_acl tmpfile0 yes ;; + *) func_test_has_acl tmpfile0 no ;; + esac + + # Remove the ACL for the mask, if it was implicitly added. + case $acl_flavor in + linux | freebsd) setfacl -x mask: tmpfile0 ;; + *) setfacl -d mask: tmpfile0 ;; + esac + + func_test_has_acl tmpfile0 no + + fi + ;; + + cygwin) + + # Set an ACL for a group. + if setfacl -m group:0:1 tmpfile0; then + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the group. + setfacl -d group:0 tmpfile0 + + func_test_has_acl tmpfile0 no + + fi + ;; + + hpux) + + # Set an ACL for a user. + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + if chacl -r "${orig}($auid.%,--x)" tmpfile0; then + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + chacl -d "($auid.%,--x)" tmpfile0 + + func_test_has_acl tmpfile0 no + + fi + ;; + + osf1) + + # Set an ACL for a user. + setacl -u user:$auid:1 tmpfile0 2> tmp.err + cat tmp.err 1>&2 + if grep 'Error:' tmp.err > /dev/null \ + || grep 'Operation not supported' tmp.err > /dev/null; then + : + else + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + setacl -x user:$auid:1 tmpfile0 + + func_test_has_acl tmpfile0 no + + fi + ;; + + aix) + + # Set an ACL for a user. + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit --x u:$auid"; } | aclput tmpfile0 + if aclget tmpfile0 | grep enabled > /dev/null; then + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + aclget tmpfile0 | grep -v ' u:[^ ]*$' | aclput tmpfile0 + + func_test_has_acl tmpfile0 no + + fi + ;; + + macosx) + + # Set an ACL for a user. + /bin/chmod +a "user:daemon allow execute" tmpfile0 + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + /bin/chmod -a "user:daemon allow execute" tmpfile0 + + func_test_has_acl tmpfile0 no + + ;; + + irix) + + # Set an ACL for a user. + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0 2> tmp.err + cat tmp.err 1>&2 + if test -s tmp.err; then :; else + + func_test_has_acl tmpfile0 yes + + # Remove the ACL for the user. + /sbin/chacl user::rw-,group::---,other::--- tmpfile0 + + func_test_has_acl tmpfile0 no + + fi + ;; + + esac + fi + + rm -f tmpfile[0-9] tmp.err + rm -rf tmpdir0 +) || exit 1 + +rm -rf "$tmp" +exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fnmatch.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fnmatch.c --- gettext-0.17/gettext-tools/gnulib-tests/test-fnmatch.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fnmatch.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,50 @@ +/* Test of fnmatch string matching function. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Simon Josefsson , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (fnmatch, int, (char const *, char const *, int)); + +#include "macros.h" + +int +main () +{ + int res; + + ASSERT (res = fnmatch ("", "", 0) == 0); + + ASSERT (res = fnmatch ("*", "", 0) == 0); + ASSERT (res = fnmatch ("*", "foo", 0) == 0); + ASSERT (res = fnmatch ("*", "bar", 0) == 0); + ASSERT (res = fnmatch ("*", "*", 0) == 0); + ASSERT (res = fnmatch ("**", "f", 0) == 0); + ASSERT (res = fnmatch ("**", "foo.txt", 0) == 0); + ASSERT (res = fnmatch ("*.*", "foo.txt", 0) == 0); + + ASSERT (res = fnmatch ("foo*.txt", "foobar.txt", 0) == 0); + + ASSERT (res = fnmatch ("foo.txt", "foo.txt", 0) == 0); + ASSERT (res = fnmatch ("foo\\.txt", "foo.txt", 0) == 0); + ASSERT (res = fnmatch ("foo\\.txt", "foo.txt", FNM_NOESCAPE) == FNM_NOMATCH); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fopen.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fopen.c --- gettext-0.17/gettext-tools/gnulib-tests/test-fopen.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fopen.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of opening a file stream. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,23 +19,16 @@ #include #include -#include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "signature.h" +SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *)); + +#define BASE "test-fopen.t" + +#include "test-fopen.h" int -main () +main (void) { - ASSERT (fopen ("/dev/null", "r") != NULL); - - return 0; + return test_fopen (); } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fopen.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fopen.h --- gettext-0.17/gettext-tools/gnulib-tests/test-fopen.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fopen.h 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,73 @@ +/* Test of opening a file stream. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +/* Include and a form of first. */ + +#include +#include + +#include "macros.h" + +/* Test fopen. Assumes BASE is defined. */ + +static int +test_fopen (void) +{ + FILE *f; + /* Remove anything from prior partial run. */ + unlink (BASE "file"); + + /* Read requires existing file. */ + errno = 0; + ASSERT (fopen (BASE "file", "r") == NULL); + ASSERT (errno == ENOENT); + + /* Write can create a file. */ + f = fopen (BASE "file", "w"); + ASSERT (f); + ASSERT (fclose (f) == 0); + + /* Trailing slash is invalid on non-directory. */ + errno = 0; + ASSERT (fopen (BASE "file/", "r") == NULL); + ASSERT (errno == ENOTDIR || errno == EISDIR || errno == EINVAL); + + /* Cannot create a directory. */ + errno = 0; + ASSERT (fopen ("nonexist.ent/", "w") == NULL); + ASSERT (errno == ENOTDIR || errno == EISDIR || errno == ENOENT + || errno == EINVAL); + + /* Directories cannot be opened for writing. */ + errno = 0; + ASSERT (fopen (".", "w") == NULL); + ASSERT (errno == EISDIR || errno == EINVAL || errno == EACCES); + + /* /dev/null must exist, and be writable. */ + f = fopen ("/dev/null", "r"); + ASSERT (f); + ASSERT (fclose (f) == 0); + f = fopen ("/dev/null", "w"); + ASSERT (f); + ASSERT (fclose (f) == 0); + + /* Cleanup. */ + ASSERT (unlink (BASE "file") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-fstrcmp.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fstrcmp.c --- gettext-0.17/gettext-tools/gnulib-tests/test-fstrcmp.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-fstrcmp.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of fuzzy string comparison. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,19 +21,9 @@ #include "fstrcmp.h" #include -#include -#include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "progname.h" +#include "macros.h" static bool check_fstrcmp (const char *string1, const char *string2, double expected) @@ -44,13 +34,40 @@ compliant by default, to avoid that msgmerge results become platform and compiler option dependent. 'volatile' is a portable alternative to gcc's -ffloat-store option. */ - volatile double result = fstrcmp (string1, string2); - return (result == expected); + { + volatile double result = fstrcmp (string1, string2); + if (!(result == expected)) + return false; + } + { + volatile double result = fstrcmp_bounded (string1, string2, expected); + if (!(result == expected)) + return false; + } + { + double bound = expected * 0.5; /* implies bound <= expected */ + volatile double result = fstrcmp_bounded (string1, string2, bound); + if (!(result == expected)) + return false; + } + { + double bound = (1 + expected) * 0.5; + if (expected < bound) + { + volatile double result = fstrcmp_bounded (string1, string2, bound); + if (!(result < bound)) + return false; + } + } + + return true; } int -main () +main (int argc, char *argv[]) { + set_program_name (argv[0]); + ASSERT (check_fstrcmp ("Langstrumpf", "Langstrumpf", 1.0)); ASSERT (check_fstrcmp ("Levenshtein", "Levenstein", 20./21.)); ASSERT (check_fstrcmp ("Levenstein", "Levenshtein", 20./21.)); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getdelim.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getdelim.c --- gettext-0.17/gettext-tools/gnulib-tests/test-getdelim.c 2007-10-01 01:09:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getdelim.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of getdelim() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,31 +20,26 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (getdelim, ssize_t, (char **, size_t *, int, FILE *)); + #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int -main (int argc, char **argv) +main (void) { FILE *f; - char *line = NULL; - size_t len = 0; + char *line; + size_t len; ssize_t result; /* Create test file. */ f = fopen ("test-getdelim.txt", "wb"); - if (!f || fwrite ("anbcnd\0f", 1, 8, f) != 8 || fclose (f) != 0) + if (!f || fwrite ("anAnbcnd\0f", 1, 10, f) != 10 || fclose (f) != 0) { fputs ("Failed to create sample file.\n", stderr); remove ("test-getdelim.txt"); @@ -59,13 +54,24 @@ } /* Test initial allocation, which must include trailing NUL. */ + line = NULL; + len = 0; result = getdelim (&line, &len, 'n', f); ASSERT (result == 2); ASSERT (strcmp (line, "an") == 0); ASSERT (2 < len); + free (line); - /* Test growth of buffer. */ + /* Test initial allocation again, with line = NULL and len != 0. */ + line = NULL; + len = (size_t)(~0) / 4; + result = getdelim (&line, &len, 'n', f); + ASSERT (result == 2); + ASSERT (strcmp (line, "An") == 0); + ASSERT (2 < len); free (line); + + /* Test growth of buffer. */ line = malloc (1); len = 1; result = getdelim (&line, &len, 'n', f); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getdtablesize.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getdtablesize.c --- gettext-0.17/gettext-tools/gnulib-tests/test-getdtablesize.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getdtablesize.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,34 @@ +/* Test of getdtablesize() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (getdtablesize, int, (void)); + +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + ASSERT (getdtablesize () >= 3); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getline.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getline.c --- gettext-0.17/gettext-tools/gnulib-tests/test-getline.c 2007-10-01 01:09:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getline.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of getline() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,31 +20,26 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (getline, ssize_t, (char **, size_t *, FILE *)); + #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int -main (int argc, char **argv) +main (void) { FILE *f; - char *line = NULL; - size_t len = 0; + char *line; + size_t len; ssize_t result; /* Create test file. */ f = fopen ("test-getline.txt", "wb"); - if (!f || fwrite ("a\nbc\nd\0f", 1, 8, f) != 8 || fclose (f) != 0) + if (!f || fwrite ("a\nA\nbc\nd\0f", 1, 10, f) != 10 || fclose (f) != 0) { fputs ("Failed to create sample file.\n", stderr); remove ("test-getline.txt"); @@ -59,13 +54,24 @@ } /* Test initial allocation, which must include trailing NUL. */ + line = NULL; + len = 0; result = getline (&line, &len, f); ASSERT (result == 2); ASSERT (strcmp (line, "a\n") == 0); ASSERT (2 < len); + free (line); - /* Test growth of buffer, must not leak. */ + /* Test initial allocation again, with line = NULL and len != 0. */ + line = NULL; + len = (size_t)(~0) / 4; + result = getline (&line, &len, f); + ASSERT (result == 2); + ASSERT (strcmp (line, "A\n") == 0); + ASSERT (2 < len); free (line); + + /* Test growth of buffer, must not leak. */ line = malloc (1); len = 0; result = getline (&line, &len, f); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getopt.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt.c --- gettext-0.17/gettext-tools/gnulib-tests/test-getopt.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt.c 2010-03-28 18:32:30.000000000 +0000 @@ -0,0 +1,99 @@ +/* Test of command line argument processing. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2009. */ + +#include + +/* None of the files accessed by this test are large, so disable the + ftell link warning if we are not using the gnulib ftell module. */ +#define _GL_NO_LARGE_FILES + +#if GNULIB_TEST_GETOPT_GNU +# include + +# ifndef __getopt_argv_const +# define __getopt_argv_const const +# endif +# include "signature.h" +SIGNATURE_CHECK (getopt_long, int, (int, char *__getopt_argv_const *, + char const *, struct option const *, + int *)); +SIGNATURE_CHECK (getopt_long_only, int, (int, char *__getopt_argv_const *, + char const *, struct option const *, + int *)); + +#endif + +#include + +#include "signature.h" +SIGNATURE_CHECK (getopt, int, (int, char * const[], char const *)); + +#include +#include +#include + +/* This test intentionally remaps stderr. So, we arrange to have fd 10 + (outside the range of interesting fd's during the test) set up to + duplicate the original stderr. */ + +#define BACKUP_STDERR_FILENO 10 +#define ASSERT_STREAM myerr +#include "macros.h" + +static FILE *myerr; + +#include "test-getopt.h" +#if GNULIB_TEST_GETOPT_GNU +# include "test-getopt_long.h" +#endif + +int +main (void) +{ + /* This test validates that stderr is used correctly, so move the + original into fd 10. */ + if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO + || (myerr = fdopen (BACKUP_STDERR_FILENO, "w")) == NULL) + return 2; + + ASSERT (freopen ("test-getopt.tmp", "w", stderr) == stderr); + + /* These default values are required by POSIX. */ + ASSERT (optind == 1); + ASSERT (opterr != 0); + + setenv ("POSIXLY_CORRECT", "1", 1); + test_getopt (); + +#if GNULIB_TEST_GETOPT_GNU + test_getopt_long_posix (); +#endif + + unsetenv ("POSIXLY_CORRECT"); + test_getopt (); + +#if GNULIB_TEST_GETOPT_GNU + test_getopt_long (); + test_getopt_long_only (); +#endif + + ASSERT (fclose (stderr) == 0); + ASSERT (remove ("test-getopt.tmp") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getopt.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt.h --- gettext-0.17/gettext-tools/gnulib-tests/test-getopt.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt.h 2010-04-25 09:21:49.000000000 +0000 @@ -0,0 +1,1369 @@ +/* Test of command line argument processing. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2009. */ + +#include + +/* The glibc/gnulib implementation of getopt supports setting optind = + 0, but not all other implementations do. This matters for getopt. + But for getopt_long, we require GNU compatibility. */ +#if defined __GETOPT_PREFIX || (__GLIBC__ >= 2) +# define OPTIND_MIN 0 +#elif HAVE_DECL_OPTRESET +# define OPTIND_MIN (optreset = 1) +#else +# define OPTIND_MIN 1 +#endif + +static void +getopt_loop (int argc, const char **argv, + const char *options, + int *a_seen, int *b_seen, + const char **p_value, const char **q_value, + int *non_options_count, const char **non_options, + int *unrecognized, bool *message_issued) +{ + int c; + int pos = ftell (stderr); + + while ((c = getopt (argc, (char **) argv, options)) != -1) + { + switch (c) + { + case 'a': + (*a_seen)++; + break; + case 'b': + (*b_seen)++; + break; + case 'p': + *p_value = optarg; + break; + case 'q': + *q_value = optarg; + break; + case '\1': + /* Must only happen with option '-' at the beginning. */ + ASSERT (options[0] == '-'); + non_options[(*non_options_count)++] = optarg; + break; + case ':': + /* Must only happen with option ':' at the beginning. */ + ASSERT (options[0] == ':' + || ((options[0] == '-' || options[0] == '+') + && options[1] == ':')); + /* fall through */ + case '?': + *unrecognized = optopt; + break; + default: + *unrecognized = c; + break; + } + } + + *message_issued = pos < ftell (stderr); +} + +static void +test_getopt (void) +{ + int start; + bool posixly = !!getenv ("POSIXLY_CORRECT"); + /* See comment in getopt.c: + glibc gets a LSB-compliant getopt. + Standalone applications get a POSIX-compliant getopt. */ +#if defined __GETOPT_PREFIX || !(__GLIBC__ >= 2 || defined __MINGW32__) + /* Using getopt from gnulib or from a non-glibc system. */ + posixly = true; +#endif + + /* Test processing of boolean options. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "ab", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-b"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "ab", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ba"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "ab", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "ab", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 2); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + ASSERT (!output); + } + + /* Test processing of options with arguments. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "p:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "p:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "-q"; + argv[argc++] = "baz"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value != NULL && strcmp (q_value, "baz") == 0); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + ASSERT (!output); + } + +#if GNULIB_TEST_GETOPT_GNU + /* Test processing of options with optional arguments. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "p::q::", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "p::q::", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp::q::", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + ASSERT (!output); + } +#endif /* GNULIB_TEST_GETOPT_GNU */ + + /* Check that invalid options are recognized; and that both opterr + and leading ':' can silence output. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-x"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 42; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'x'); + ASSERT (optind == 5); + ASSERT (output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-x"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 0; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'x'); + ASSERT (optind == 5); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-x"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, ":abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'x'); + ASSERT (optind == 5); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-:"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 42; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == ':'); + ASSERT (optind == 5); + ASSERT (output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-:"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 0; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == ':'); + ASSERT (optind == 5); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-:"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, ":abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == ':'); + ASSERT (optind == 5); + ASSERT (!output); + } + + /* Check for missing argument behavior. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ap"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'p'); + ASSERT (optind == 2); + ASSERT (output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ap"; + argv[argc] = NULL; + optind = start; + opterr = 0; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'p'); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-ap"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, ":abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'p'); + ASSERT (optind == 2); + ASSERT (!output); + } + + /* Check that by default, non-options arguments are moved to the end. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + if (posixly) + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + else + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + ASSERT (!output); + } + } + + /* Check that '--' ends the argument processing. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[20]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + if (posixly) + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "--") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + else + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "--") == 0); + ASSERT (strcmp (argv[5], "donald") == 0); + ASSERT (strcmp (argv[6], "duck") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + ASSERT (!output); + } + } + +#if GNULIB_TEST_GETOPT_GNU + /* Check that the '-' flag causes non-options to be returned in order. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "-abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 3); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (strcmp (non_options[2], "bar") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 7); + ASSERT (!output); + } + + /* Check that '--' ends the argument processing. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[20]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "-abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "--") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (!output); + if (non_options_count == 2) + { + /* glibc behaviour. */ + ASSERT (non_options_count == 2); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 7); + } + else + { + /* Another valid behaviour. */ + ASSERT (non_options_count == 7); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (strcmp (non_options[2], "-b") == 0); + ASSERT (strcmp (non_options[3], "foo") == 0); + ASSERT (strcmp (non_options[4], "-q") == 0); + ASSERT (strcmp (non_options[5], "johnny") == 0); + ASSERT (strcmp (non_options[6], "bar") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 12); + } + } + + /* Check that the '-' flag has to come first. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:-", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + if (posixly) + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + else + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + ASSERT (!output); + } + } + + /* Check that the '+' flag causes the first non-option to terminate the + loop. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "+abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-+"; + argv[argc] = NULL; + optind = start; + getopt_loop (argc, argv, "+abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == '+'); + ASSERT (optind == 2); + ASSERT (output); + } + + /* Check that '--' ends the argument processing. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[20]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "+abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "--") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind = 1); + ASSERT (!output); + } +#endif /* GNULIB_TEST_GETOPT_GNU */ + + /* Check that the '+' flag has to come first. */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "abp:q:+", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + if (posixly) + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + else + { + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + ASSERT (!output); + } + } + +#if GNULIB_TEST_GETOPT_GNU + /* If GNU extensions are supported, require compliance with POSIX + interpretation on leading '+' behavior. + http://austingroupbugs.net/view.php?id=191 */ + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + opterr = 1; + getopt_loop (argc, argv, "+:abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc] = NULL; + optind = start; + getopt_loop (argc, argv, "+:abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'p'); + ASSERT (optind == 2); + ASSERT (!output); + } + for (start = OPTIND_MIN; start <= 1; start++) + { + int a_seen = 0; + int b_seen = 0; + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + bool output; + int argc = 0; + const char *argv[10]; + + argv[argc++] = "program"; + argv[argc++] = "-b"; + argv[argc++] = "-p"; + argv[argc] = NULL; + optind = start; + getopt_loop (argc, argv, "+:abp:q:", + &a_seen, &b_seen, &p_value, &q_value, + &non_options_count, non_options, &unrecognized, &output); + ASSERT (a_seen == 0); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'p'); + ASSERT (optind == 3); + ASSERT (!output); + } +#endif /* GNULIB_TEST_GETOPT_GNU */ +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-getopt_long.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt_long.h --- gettext-0.17/gettext-tools/gnulib-tests/test-getopt_long.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-getopt_long.h 2010-04-25 09:21:49.000000000 +0000 @@ -0,0 +1,2125 @@ +/* Test of command line argument processing. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2009. */ + +static int a_seen; +static int b_seen; +static int q_seen; + +static const struct option long_options_required[] = + { + { "alpha", no_argument, NULL, 'a' }, + { "beta", no_argument, &b_seen, 1 }, + { "prune", required_argument, NULL, 'p' }, + { "quetsche", required_argument, &q_seen, 1 }, + { "xtremely-",no_argument, NULL, 1003 }, + { "xtra", no_argument, NULL, 1001 }, + { "xtreme", no_argument, NULL, 1002 }, + { "xtremely", no_argument, NULL, 1003 }, + { NULL, 0, NULL, 0 } + }; + +static const struct option long_options_optional[] = + { + { "alpha", no_argument, NULL, 'a' }, + { "beta", no_argument, &b_seen, 1 }, + { "prune", optional_argument, NULL, 'p' }, + { "quetsche", optional_argument, &q_seen, 1 }, + { NULL, 0, NULL, 0 } + }; + +static void +getopt_long_loop (int argc, const char **argv, + const char *options, const struct option *long_options, + const char **p_value, const char **q_value, + int *non_options_count, const char **non_options, + int *unrecognized) +{ + int option_index = -1; + int c; + + opterr = 0; + q_seen = 0; + while ((c = getopt_long (argc, (char **) argv, options, long_options, + &option_index)) + != -1) + { + switch (c) + { + case 0: + /* An option with a non-NULL flag pointer was processed. */ + if (q_seen) + *q_value = optarg; + break; + case 'a': + a_seen++; + break; + case 'b': + b_seen = 1; + break; + case 'p': + *p_value = optarg; + break; + case 'q': + *q_value = optarg; + break; + case '\1': + /* Must only happen with option '-' at the beginning. */ + ASSERT (options[0] == '-'); + non_options[(*non_options_count)++] = optarg; + break; + case ':': + /* Must only happen with option ':' at the beginning. */ + ASSERT (options[0] == ':' + || ((options[0] == '-' || options[0] == '+') + && options[1] == ':')); + /* fall through */ + case '?': + *unrecognized = optopt; + break; + default: + *unrecognized = c; + break; + } + } +} + +/* Reduce casting, so we can use string literals elsewhere. + getopt_long takes an array of char*, but luckily does not modify + those elements, so we can pass const char*. */ +static int +do_getopt_long (int argc, const char **argv, const char *shortopts, + const struct option *longopts, int *longind) +{ + return getopt_long (argc, (char **) argv, shortopts, longopts, longind); +} + +static void +test_getopt_long (void) +{ + int start; + + /* Test disambiguation of options. */ + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--x"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xt"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtr"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtra"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == 1001); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtre"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtrem"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtreme"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == 1002); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtremel"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == 1003); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--xtremely"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "ab", long_options_required, &option_index); + ASSERT (c == 1003); + } + + /* Check that -W handles unknown options. */ + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "W;", long_options_required, &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 'W'); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-Wunknown"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "W;", long_options_required, &option_index); + /* glibc and BSD behave differently here, but for now, we allow + both behaviors since W support is not frequently used. */ + if (c == '?') + { + ASSERT (optopt == 0); + ASSERT (optarg == NULL); + } + else + { + ASSERT (c == 'W'); + ASSERT (strcmp (optarg, "unknown") == 0); + } + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc++] = "unknown"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long (argc, argv, "W;", long_options_required, &option_index); + /* glibc and BSD behave differently here, but for now, we allow + both behaviors since W support is not frequently used. */ + if (c == '?') + { + ASSERT (optopt == 0); + ASSERT (optarg == NULL); + } + else + { + ASSERT (c == 'W'); + ASSERT (strcmp (optarg, "unknown") == 0); + } + } + + /* Test processing of boolean short options. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-b"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-ba"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "-a"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 2); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + + /* Test processing of boolean long options. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--alpha"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--beta"; + argv[argc++] = "--alpha"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--alpha"; + argv[argc++] = "--beta"; + argv[argc++] = "--alpha"; + argv[argc++] = "--beta"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 2); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + + /* Test processing of boolean long options via -W. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Walpha"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abW;", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc++] = "beta"; + argv[argc++] = "-W"; + argv[argc++] = "alpha"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "aW;b", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Walpha"; + argv[argc++] = "-Wbeta"; + argv[argc++] = "-Walpha"; + argv[argc++] = "-Wbeta"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "W;ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 2); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + + /* Test processing of short options with arguments. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "-q"; + argv[argc++] = "baz"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value != NULL && strcmp (q_value, "baz") == 0); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + + /* Test processing of long options with arguments. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "--q"; + argv[argc++] = "baz"; + argv[argc++] = "--p=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value != NULL && strcmp (q_value, "baz") == 0); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + + /* Test processing of long options with arguments via -W. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Wp=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:q:W;", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc++] = "p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p:W;q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-ab"; + argv[argc++] = "-Wq"; + argv[argc++] = "baz"; + argv[argc++] = "-W"; + argv[argc++] = "p=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "W;abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value != NULL && strcmp (q_value, "baz") == 0); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 6); + } + + /* Test processing of short options with optional arguments. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-pfoo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + + /* Test processing of long options with optional arguments. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p="; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && *p_value == '\0'); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "--p"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + + /* Test processing of long options with optional arguments via -W. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Wp=foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::W;", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Wp"; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::q::W;", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-Wp="; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "W;p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && *p_value == '\0'); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc++] = "p="; + argv[argc++] = "foo"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "W;p::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && *p_value == '\0'); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 3); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-W"; + argv[argc++] = "p"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "W;abp::q::", long_options_optional, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + /* ASSERT (p_value == NULL); */ + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } + + /* Check that invalid options are recognized. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-x"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'x'); + ASSERT (optind == 5); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "-:"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == ':'); + ASSERT (optind == 5); + } + + /* Check that unexpected arguments are recognized. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "--a="; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 'a'); + ASSERT (optind == 4); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "foo"; + argv[argc++] = "--b="; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "foo") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + /* When flag is non-zero, glibc sets optopt anyway, but BSD + leaves optopt unchanged. */ + ASSERT (unrecognized == 1 || unrecognized == 0); + ASSERT (optind == 4); + } + + /* Check that by default, non-options arguments are moved to the end. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } + + /* Check that '--' ends the argument processing. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[20]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "--") == 0); + ASSERT (strcmp (argv[5], "donald") == 0); + ASSERT (strcmp (argv[6], "duck") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 5); + } + + /* Check that the '-' flag causes non-options to be returned in order. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "-abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 3); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (strcmp (non_options[2], "bar") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 7); + } + + /* Check that '--' ends the argument processing. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[20]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "-abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "--") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + if (non_options_count == 2) + { + /* glibc behaviour. */ + ASSERT (non_options_count == 2); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 7); + } + else + { + /* Another valid behaviour. */ + ASSERT (non_options_count == 7); + ASSERT (strcmp (non_options[0], "donald") == 0); + ASSERT (strcmp (non_options[1], "duck") == 0); + ASSERT (strcmp (non_options[2], "-b") == 0); + ASSERT (strcmp (non_options[3], "foo") == 0); + ASSERT (strcmp (non_options[4], "-q") == 0); + ASSERT (strcmp (non_options[5], "johnny") == 0); + ASSERT (strcmp (non_options[6], "bar") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 12); + } + } + + /* Check that the '-' flag has to come first. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:-", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } + + /* Check that the '+' flag causes the first non-option to terminate the + loop. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "+abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + } + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-+"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "+abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == '+'); + ASSERT (optind == 2); + } + + /* Check that '--' ends the argument processing. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[20]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "--"; + argv[argc++] = "-b"; + argv[argc++] = "foo"; + argv[argc++] = "-q"; + argv[argc++] = "johnny"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "+abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "--") == 0); + ASSERT (strcmp (argv[7], "-b") == 0); + ASSERT (strcmp (argv[8], "foo") == 0); + ASSERT (strcmp (argv[9], "-q") == 0); + ASSERT (strcmp (argv[10], "johnny") == 0); + ASSERT (strcmp (argv[11], "bar") == 0); + ASSERT (argv[12] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind = 1); + } + + /* Check that the '+' flag has to come first. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:+", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "-p") == 0); + ASSERT (strcmp (argv[2], "billy") == 0); + ASSERT (strcmp (argv[3], "-a") == 0); + ASSERT (strcmp (argv[4], "donald") == 0); + ASSERT (strcmp (argv[5], "duck") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 1); + ASSERT (b_seen == 0); + ASSERT (p_value != NULL && strcmp (p_value, "billy") == 0); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } +} + +/* Test behavior of getopt_long when POSIXLY_CORRECT is set in the + environment. Options with optional arguments should not change + behavior just because of an environment variable. + http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html */ +static void +test_getopt_long_posix (void) +{ + int start; + + /* Check that POSIXLY_CORRECT stops parsing the same as leading '+'. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "donald"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc++] = "duck"; + argv[argc++] = "-a"; + argv[argc++] = "bar"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "abp:q:", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (strcmp (argv[0], "program") == 0); + ASSERT (strcmp (argv[1], "donald") == 0); + ASSERT (strcmp (argv[2], "-p") == 0); + ASSERT (strcmp (argv[3], "billy") == 0); + ASSERT (strcmp (argv[4], "duck") == 0); + ASSERT (strcmp (argv[5], "-a") == 0); + ASSERT (strcmp (argv[6], "bar") == 0); + ASSERT (argv[7] == NULL); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 1); + } + + /* Check that POSIXLY_CORRECT doesn't change optional arguments. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-p"; + argv[argc++] = "billy"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "p::", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 0); + ASSERT (b_seen == 0); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 2); + } + + /* Check that leading - still sees options after non-options. */ + for (start = 0; start <= 1; start++) + { + const char *p_value = NULL; + const char *q_value = NULL; + int non_options_count = 0; + const char *non_options[10]; + int unrecognized = 0; + int argc = 0; + const char *argv[10]; + a_seen = 0; + b_seen = 0; + + argv[argc++] = "program"; + argv[argc++] = "-a"; + argv[argc++] = "billy"; + argv[argc++] = "-b"; + argv[argc] = NULL; + optind = start; + getopt_long_loop (argc, argv, "-ab", long_options_required, + &p_value, &q_value, + &non_options_count, non_options, &unrecognized); + ASSERT (a_seen == 1); + ASSERT (b_seen == 1); + ASSERT (p_value == NULL); + ASSERT (q_value == NULL); + ASSERT (non_options_count == 1); + ASSERT (strcmp (non_options[0], "billy") == 0); + ASSERT (unrecognized == 0); + ASSERT (optind == 4); + } +} + +/* Reduce casting, so we can use string literals elsewhere. + getopt_long_only takes an array of char*, but luckily does not + modify those elements, so we can pass const char*. */ +static int +do_getopt_long_only (int argc, const char **argv, const char *shortopts, + const struct option *longopts, int *longind) +{ + return getopt_long_only (argc, (char **) argv, shortopts, longopts, longind); +} + +static void +test_getopt_long_only (void) +{ + /* Test disambiguation of options. */ + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-x"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "ab", long_options_required, + &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-x"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx", long_options_required, + &option_index); + ASSERT (c == 'x'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--x"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx", long_options_required, + &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-b"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + b_seen = 0; + c = do_getopt_long_only (argc, argv, "abx", long_options_required, + &option_index); + ASSERT (c == 'b'); + ASSERT (b_seen == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "--b"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + b_seen = 0; + c = do_getopt_long_only (argc, argv, "abx", long_options_required, + &option_index); + ASSERT (c == 0); + ASSERT (b_seen == 1); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xt"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "ab", long_options_required, + &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xt"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx", long_options_required, + &option_index); + ASSERT (c == '?'); + ASSERT (optopt == 0); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xtra"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "ab", long_options_required, + &option_index); + ASSERT (c == 1001); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xtreme"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx:", long_options_required, + &option_index); + ASSERT (c == 1002); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xtremel"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "ab", long_options_required, + &option_index); + /* glibc getopt_long_only is intentionally different from + getopt_long when handling a prefix that is common to two + spellings, when both spellings have the same option directives. + BSD getopt_long_only treats both cases the same. */ + ASSERT (c == 1003 || c == '?'); + ASSERT (optind == 2); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xtremel"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx::", long_options_required, + &option_index); + /* glibc getopt_long_only is intentionally different from + getopt_long when handling a prefix that is common to two + spellings, when both spellings have the same option directives. + BSD getopt_long_only treats both cases the same. */ + ASSERT (c == 1003 || c == '?'); + ASSERT (optind == 2); + ASSERT (optarg == NULL); + } + { + int argc = 0; + const char *argv[10]; + int option_index; + int c; + + argv[argc++] = "program"; + argv[argc++] = "-xtras"; + argv[argc] = NULL; + optind = 1; + opterr = 0; + c = do_getopt_long_only (argc, argv, "abx::", long_options_required, + &option_index); + ASSERT (c == 'x'); + ASSERT (strcmp (optarg, "tras") == 0); + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-gettimeofday.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-gettimeofday.c --- gettext-0.17/gettext-tools/gnulib-tests/test-gettimeofday.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-gettimeofday.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005, 2007 Free Software Foundation + * Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. * Written by Jim Meyering. * * This program is free software: you can redistribute it and/or modify @@ -18,13 +18,18 @@ #include #include + +#include "signature.h" +SIGNATURE_CHECK (gettimeofday, int, + (struct timeval *, GETTIMEOFDAY_TIMEZONE *)); + #include #include #include int -main (int argc, char *argv[]) +main (void) { time_t t = 0; struct tm *lt; @@ -38,8 +43,5 @@ fprintf (stderr, "gettimeofday still clobbers the localtime buffer!\n"); return 1; } - else - { - return 0; - } + return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-iconv.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-iconv.c --- gettext-0.17/gettext-tools/gnulib-tests/test-iconv.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-iconv.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of character set conversion. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,23 +20,23 @@ #if HAVE_ICONV # include + +# ifndef ICONV_CONST +# define ICONV_CONST /* empty */ +# endif + +#include "signature.h" +SIGNATURE_CHECK (iconv, size_t, (iconv_t, ICONV_CONST char **, size_t *, + char **, size_t *)); +SIGNATURE_CHECK (iconv_close, int, (iconv_t x)); +SIGNATURE_CHECK (iconv_open, iconv_t, (char const *, char const *)); + #endif #include -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -60,8 +60,8 @@ char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + strlen (expected)); ASSERT (memcmp (buf, expected, strlen (expected)) == 0); @@ -76,8 +76,8 @@ char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == (size_t)(-1) && errno == E2BIG); ASSERT (inbytesleft == 1); ASSERT (outbytesleft == 1); @@ -95,8 +95,8 @@ char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == 0 && inbytesleft == 0); ASSERT (outptr == buf + strlen (expected)); ASSERT (memcmp (buf, expected, strlen (expected)) == 0); @@ -111,17 +111,17 @@ char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); if (res == (size_t)(-1)) { ASSERT (errno == EILSEQ); - ASSERT (inbytesleft == strlen (input) && outptr == buf); + ASSERT (inbytesleft == strlen (input) && outptr == buf); } else { - ASSERT (res == 1); - ASSERT (inbytesleft == 0); + ASSERT (res == 1); + ASSERT (inbytesleft == 0); } } @@ -134,8 +134,8 @@ char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, - (ICONV_CONST char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); + (ICONV_CONST char **) &inptr, &inbytesleft, + &outptr, &outbytesleft); ASSERT (res == (size_t)(-1) && errno == EINVAL); ASSERT (inbytesleft == 1 && outptr == buf); } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-iconv-h.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-iconv-h.c --- gettext-0.17/gettext-tools/gnulib-tests/test-iconv-h.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-iconv-h.c 2010-03-28 18:32:30.000000000 +0000 @@ -0,0 +1,31 @@ +/* Test of substitute. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#if HAVE_ICONV +# include + +# ifndef ICONV_CONST +# define ICONV_CONST /* empty */ +# endif +#endif + +int +main () +{ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-linkedhash_list.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-linkedhash_list.c --- gettext-0.17/gettext-tools/gnulib-tests/test-linkedhash_list.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-linkedhash_list.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of sequential list data type implementation. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -20,12 +20,12 @@ #include "gl_linkedhash_list.h" #include -#include #include #include #include "gl_array_list.h" #include "progname.h" +#include "macros.h" static const char *objects[15] = { @@ -57,17 +57,6 @@ return h; } -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) #define RANDOM(n) (rand () % (n)) #define RANDOM_OBJECT() objects[RANDOM (SIZEOF (objects))] @@ -113,19 +102,22 @@ contents[i] = RANDOM_OBJECT (); /* Create list1. */ - list1 = gl_list_create (GL_ARRAY_LIST, - string_equals, string_hash, NULL, true, - initial_size, contents); + list1 = gl_list_nx_create (GL_ARRAY_LIST, + string_equals, string_hash, NULL, true, + initial_size, contents); + ASSERT (list1 != NULL); /* Create list2. */ - list2 = gl_list_create_empty (GL_LINKEDHASH_LIST, - string_equals, string_hash, NULL, true); + list2 = gl_list_nx_create_empty (GL_LINKEDHASH_LIST, + string_equals, string_hash, NULL, true); + ASSERT (list2 != NULL); for (i = 0; i < initial_size; i++) - gl_list_add_last (list2, contents[i]); + ASSERT (gl_list_nx_add_last (list2, contents[i]) != NULL); /* Create list3. */ - list3 = gl_list_create (GL_LINKEDHASH_LIST, - string_equals, string_hash, NULL, true, - initial_size, contents); + list3 = gl_list_nx_create (GL_LINKEDHASH_LIST, + string_equals, string_hash, NULL, true, + initial_size, contents); + ASSERT (list3 != NULL); check_all (list1, list2, list3); @@ -141,15 +133,18 @@ const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2, node3; - node1 = gl_list_set_at (list1, index, obj); + node1 = gl_list_nx_set_at (list1, index, obj); + ASSERT (node1 != NULL); ASSERT (gl_list_get_at (list1, index) == obj); ASSERT (gl_list_node_value (list1, node1) == obj); - node2 = gl_list_set_at (list2, index, obj); + node2 = gl_list_nx_set_at (list2, index, obj); + ASSERT (node2 != NULL); ASSERT (gl_list_get_at (list2, index) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); - node3 = gl_list_set_at (list3, index, obj); + node3 = gl_list_nx_set_at (list3, index, obj); + ASSERT (node3 != NULL); ASSERT (gl_list_get_at (list3, index) == obj); ASSERT (gl_list_node_value (list3, node3) == obj); @@ -223,9 +218,12 @@ { const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2, node3; - node1 = gl_list_add_first (list1, obj); - node2 = gl_list_add_first (list2, obj); - node3 = gl_list_add_first (list3, obj); + node1 = gl_list_nx_add_first (list1, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_first (list2, obj); + ASSERT (node2 != NULL); + node3 = gl_list_nx_add_first (list3, obj); + ASSERT (node3 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); ASSERT (gl_list_node_value (list3, node3) == obj); @@ -238,9 +236,12 @@ { const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2, node3; - node1 = gl_list_add_last (list1, obj); - node2 = gl_list_add_last (list2, obj); - node3 = gl_list_add_last (list3, obj); + node1 = gl_list_nx_add_last (list1, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_last (list2, obj); + ASSERT (node2 != NULL); + node3 = gl_list_nx_add_last (list3, obj); + ASSERT (node3 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_node_value (list2, node2) == obj); ASSERT (gl_list_node_value (list3, node3) == obj); @@ -255,15 +256,24 @@ const char *obj1 = RANDOM_OBJECT (); const char *obj2 = RANDOM_OBJECT (); gl_list_node_t node1, node2, node3; - node1 = gl_list_add_first (list1, obj2); - node1 = gl_list_add_before (list1, node1, obj0); - node1 = gl_list_add_after (list1, node1, obj1); - node2 = gl_list_add_first (list2, obj2); - node2 = gl_list_add_before (list2, node2, obj0); - node2 = gl_list_add_after (list2, node2, obj1); - node3 = gl_list_add_first (list3, obj2); - node3 = gl_list_add_before (list3, node3, obj0); - node3 = gl_list_add_after (list3, node3, obj1); + node1 = gl_list_nx_add_first (list1, obj2); + ASSERT (node1 != NULL); + node1 = gl_list_nx_add_before (list1, node1, obj0); + ASSERT (node1 != NULL); + node1 = gl_list_nx_add_after (list1, node1, obj1); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_first (list2, obj2); + ASSERT (node2 != NULL); + node2 = gl_list_nx_add_before (list2, node2, obj0); + ASSERT (node2 != NULL); + node2 = gl_list_nx_add_after (list2, node2, obj1); + ASSERT (node2 != NULL); + node3 = gl_list_nx_add_first (list3, obj2); + ASSERT (node3 != NULL); + node3 = gl_list_nx_add_before (list3, node3, obj0); + ASSERT (node3 != NULL); + node3 = gl_list_nx_add_after (list3, node3, obj1); + ASSERT (node3 != NULL); ASSERT (gl_list_node_value (list1, node1) == obj1); ASSERT (gl_list_node_value (list2, node2) == obj1); ASSERT (gl_list_node_value (list3, node3) == obj1); @@ -283,9 +293,12 @@ size_t index = RANDOM (gl_list_size (list1) + 1); const char *obj = RANDOM_OBJECT (); gl_list_node_t node1, node2, node3; - node1 = gl_list_add_at (list1, index, obj); - node2 = gl_list_add_at (list2, index, obj); - node3 = gl_list_add_at (list3, index, obj); + node1 = gl_list_nx_add_at (list1, index, obj); + ASSERT (node1 != NULL); + node2 = gl_list_nx_add_at (list2, index, obj); + ASSERT (node2 != NULL); + node3 = gl_list_nx_add_at (list3, index, obj); + ASSERT (node3 != NULL); ASSERT (gl_list_get_at (list1, index) == obj); ASSERT (gl_list_node_value (list1, node1) == obj); ASSERT (gl_list_get_at (list2, index) == obj); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-locale.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-locale.c --- gettext-0.17/gettext-tools/gnulib-tests/test-locale.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-locale.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,8 @@ #include +#include "verify.h" + int a[] = { LC_ALL, @@ -31,6 +33,15 @@ LC_TIME }; +#if HAVE_NEWLOCALE +/* Check that the locale_t type and the LC_GLOBAL_LOCALE macro are defined. */ +locale_t b = LC_GLOBAL_LOCALE; +#endif + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + int main () { diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-localename.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-localename.c --- gettext-0.17/gettext-tools/gnulib-tests/test-localename.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-localename.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ -/* Test of gl_locale_name function. - Copyright (C) 2007 Free Software Foundation, Inc. +/* Test of gl_locale_name function and its variants. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,31 +21,61 @@ #include "localename.h" #include -#include #include #include -#include "setenv.h" +#include "macros.h" -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) -int -main () +#if HAVE_NEWLOCALE + +static struct { int cat; int mask; const char *string; } const categories[] = + { + { LC_CTYPE, LC_CTYPE_MASK, "LC_CTYPE" }, + { LC_NUMERIC, LC_NUMERIC_MASK, "LC_NUMERIC" }, + { LC_TIME, LC_TIME_MASK, "LC_TIME" }, + { LC_COLLATE, LC_COLLATE_MASK, "LC_COLLATE" }, + { LC_MONETARY, LC_MONETARY_MASK, "LC_MONETARY" }, + { LC_MESSAGES, LC_MESSAGES_MASK, "LC_MESSAGES" } +# ifdef LC_PAPER + , { LC_PAPER, LC_PAPER_MASK, "LC_PAPER" } +# endif +# ifdef LC_NAME + , { LC_NAME, LC_NAME_MASK, "LC_NAME" } +# endif +# ifdef LC_ADDRESS + , { LC_ADDRESS, LC_ADDRESS_MASK, "LC_ADDRESS" } +# endif +# ifdef LC_TELEPHONE + , { LC_TELEPHONE, LC_TELEPHONE_MASK, "LC_TELEPHONE" } +# endif +# ifdef LC_MEASUREMENT + , { LC_MEASUREMENT, LC_MEASUREMENT_MASK, "LC_MEASUREMENT" } +# endif +# ifdef LC_IDENTIFICATION + , { LC_IDENTIFICATION, LC_IDENTIFICATION_MASK, "LC_IDENTIFICATION" } +# endif + }; + +#endif + +/* Test the gl_locale_name() function. */ +static void +test_locale_name (void) { + const char *name; + /* Check that gl_locale_name returns non-NULL. */ ASSERT (gl_locale_name (LC_MESSAGES, "LC_MESSAGES") != NULL); + /* Get into a defined state, */ + setlocale (LC_ALL, "en_US.UTF-8"); +#if HAVE_NEWLOCALE + uselocale (LC_GLOBAL_LOCALE); +#endif + /* Check that when all environment variables are unset, - gl_locale_name_posix returns NULL. */ + gl_locale_name returns the default locale. */ unsetenv ("LC_ALL"); unsetenv ("LC_CTYPE"); unsetenv ("LC_MESSAGES"); @@ -53,9 +83,9 @@ unsetenv ("LANG"); setlocale (LC_ALL, ""); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); ASSERT (strcmp (gl_locale_name (LC_NUMERIC, "LC_NUMERIC"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); /* Check that an empty environment variable is treated like an unset environment variable. */ @@ -66,7 +96,7 @@ unsetenv ("LANG"); setlocale (LC_ALL, ""); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); unsetenv ("LC_ALL"); setenv ("LC_CTYPE", "", 1); @@ -74,7 +104,7 @@ unsetenv ("LANG"); setlocale (LC_ALL, ""); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); unsetenv ("LC_ALL"); unsetenv ("LC_CTYPE"); @@ -82,7 +112,7 @@ unsetenv ("LANG"); setlocale (LC_ALL, ""); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); unsetenv ("LC_ALL"); unsetenv ("LC_CTYPE"); @@ -90,7 +120,7 @@ setenv ("LANG", "", 1); setlocale (LC_ALL, ""); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), - gl_locale_name_default ()) == 0); + gl_locale_name_default ()) == 0); /* Check that LC_ALL overrides the others, and LANG is overridden by the others. */ @@ -100,7 +130,6 @@ unsetenv ("LC_MESSAGES"); unsetenv ("LANG"); setlocale (LC_ALL, ""); - ASSERT (strcmp (gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); unsetenv ("LC_ALL"); @@ -108,7 +137,6 @@ setenv ("LC_MESSAGES", "C", 1); unsetenv ("LANG"); setlocale (LC_ALL, ""); - ASSERT (strcmp (gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); unsetenv ("LC_ALL"); @@ -116,8 +144,604 @@ unsetenv ("LC_MESSAGES"); setenv ("LANG", "C", 1); setlocale (LC_ALL, ""); - ASSERT (strcmp (gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); ASSERT (strcmp (gl_locale_name (LC_MESSAGES, "LC_MESSAGES"), "C") == 0); + /* Check mixed situations. */ + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + setenv ("LANG", "de_DE.UTF-8", 1); + if (setlocale (LC_ALL, "") != NULL) + { + name = gl_locale_name (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, "de_DE.UTF-8") == 0); + name = gl_locale_name (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + unsetenv ("LANG"); + if (setlocale (LC_ALL, "") != NULL) + { + name = gl_locale_name (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, gl_locale_name_default ()) == 0); + name = gl_locale_name (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + +#if HAVE_NEWLOCALE + /* Check that gl_locale_name considers the thread locale. */ + { + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + uselocale (locale); + name = gl_locale_name (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + name = gl_locale_name (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + } + + /* Check that gl_locale_name distinguishes different categories of the + thread locale, and that the name is the right one for each. */ + { + unsigned int i; + + for (i = 0; i < SIZEOF (categories); i++) + { + int category_mask = categories[i].mask; + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + locale = newlocale (category_mask, "de_DE.UTF-8", locale); + if (locale != NULL) + { + unsigned int j; + + uselocale (locale); + for (j = 0; j < SIZEOF (categories); j++) + { + const char *name_j = + gl_locale_name (categories[j].cat, categories[j].string); + if (j == i) + ASSERT (strcmp (name_j, "de_DE.UTF-8") == 0); + else + ASSERT (strcmp (name_j, "fr_FR.UTF-8") == 0); + } + } + } + } + } +#endif +} + +/* Test the gl_locale_name_thread() function. */ +static void +test_locale_name_thread (void) +{ + /* Get into a defined state, */ + setlocale (LC_ALL, "en_US.UTF-8"); + +#if HAVE_NEWLOCALE + /* Check that gl_locale_name_thread returns NULL when no thread locale is + set. */ + uselocale (LC_GLOBAL_LOCALE); + ASSERT (gl_locale_name_thread (LC_CTYPE, "LC_CTYPE") == NULL); + ASSERT (gl_locale_name_thread (LC_MESSAGES, "LC_MESSAGES") == NULL); + + /* Check that gl_locale_name_thread considers the thread locale. */ + { + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + const char *name; + + uselocale (locale); + name = gl_locale_name_thread (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + name = gl_locale_name_thread (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + } + + /* Check that gl_locale_name_thread distinguishes different categories of the + thread locale, and that the name is the right one for each. */ + { + unsigned int i; + + for (i = 0; i < SIZEOF (categories); i++) + { + int category_mask = categories[i].mask; + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + locale = newlocale (category_mask, "de_DE.UTF-8", locale); + if (locale != NULL) + { + unsigned int j; + + uselocale (locale); + for (j = 0; j < SIZEOF (categories); j++) + { + const char *name_j = + gl_locale_name_thread (categories[j].cat, + categories[j].string); + if (j == i) + ASSERT (strcmp (name_j, "de_DE.UTF-8") == 0); + else + ASSERT (strcmp (name_j, "fr_FR.UTF-8") == 0); + } + } + } + } + } + + /* Check that gl_locale_name_thread returns a string that is allocated with + indefinite extent. */ + { + /* Try many locale names in turn, in order to defeat possible caches. */ + static const char * const choices[] = + { + "C", + "POSIX", + "af_ZA", + "af_ZA.UTF-8", + "am_ET", + "am_ET.UTF-8", + "be_BY", + "be_BY.UTF-8", + "bg_BG", + "bg_BG.UTF-8", + "ca_ES", + "ca_ES.UTF-8", + "cs_CZ", + "cs_CZ.UTF-8", + "da_DK", + "da_DK.UTF-8", + "de_AT", + "de_AT.UTF-8", + "de_CH", + "de_CH.UTF-8", + "de_DE", + "de_DE.UTF-8", + "el_GR", + "el_GR.UTF-8", + "en_AU", + "en_AU.UTF-8", + "en_CA", + "en_CA.UTF-8", + "en_GB", + "en_GB.UTF-8", + "en_IE", + "en_IE.UTF-8", + "en_NZ", + "en_NZ.UTF-8", + "en_US", + "en_US.UTF-8", + "es_ES", + "es_ES.UTF-8", + "et_EE", + "et_EE.UTF-8", + "eu_ES", + "eu_ES.UTF-8", + "fi_FI", + "fi_FI.UTF-8", + "fr_BE", + "fr_BE.UTF-8", + "fr_CA", + "fr_CA.UTF-8", + "fr_CH", + "fr_CH.UTF-8", + "fr_FR", + "fr_FR.UTF-8", + "he_IL", + "he_IL.UTF-8", + "hr_HR", + "hr_HR.UTF-8", + "hu_HU", + "hu_HU.UTF-8", + "hy_AM", + "is_IS", + "is_IS.UTF-8", + "it_CH", + "it_CH.UTF-8", + "it_IT", + "it_IT.UTF-8", + "ja_JP.UTF-8", + "kk_KZ", + "kk_KZ.UTF-8", + "ko_KR.UTF-8", + "lt_LT", + "lt_LT.UTF-8", + "nl_BE", + "nl_BE.UTF-8", + "nl_NL", + "nl_NL.UTF-8", + "no_NO", + "no_NO.UTF-8", + "pl_PL", + "pl_PL.UTF-8", + "pt_BR", + "pt_BR.UTF-8", + "pt_PT", + "pt_PT.UTF-8", + "ro_RO", + "ro_RO.UTF-8", + "ru_RU", + "ru_RU.UTF-8", + "sk_SK", + "sk_SK.UTF-8", + "sl_SI", + "sl_SI.UTF-8", + "sv_SE", + "sv_SE.UTF-8", + "tr_TR", + "tr_TR.UTF-8", + "uk_UA", + "uk_UA.UTF-8", + "zh_CN", + "zh_CN.UTF-8", + "zh_HK", + "zh_HK.UTF-8", + "zh_TW", + "zh_TW.UTF-8" + }; + /* Remember which locales are available. */ + unsigned char /* bool */ available[SIZEOF (choices)]; + /* Array of remembered results of gl_locale_name_thread. */ + const char *unsaved_names[SIZEOF (choices)][SIZEOF (categories)]; + /* Array of remembered results of gl_locale_name_thread, stored in safe + memory. */ + char *saved_names[SIZEOF (choices)][SIZEOF (categories)]; + unsigned int j; + + for (j = 0; j < SIZEOF (choices); j++) + { + locale_t locale = newlocale (LC_ALL_MASK, choices[j], NULL); + available[j] = (locale != NULL); + if (locale != NULL) + { + unsigned int i; + + uselocale (locale); + for (i = 0; i < SIZEOF (categories); i++) + { + unsaved_names[j][i] = gl_locale_name_thread (categories[i].cat, categories[i].string); + saved_names[j][i] = strdup (unsaved_names[j][i]); + } + uselocale (LC_GLOBAL_LOCALE); + freelocale (locale); + } + } + /* Verify the unsaved_names are still valid. */ + for (j = 0; j < SIZEOF (choices); j++) + if (available[j]) + { + unsigned int i; + + for (i = 0; i < SIZEOF (categories); i++) + ASSERT (strcmp (unsaved_names[j][i], saved_names[j][i]) == 0); + } + /* Allocate many locales, without freeing them. This is an attempt at + overwriting as much of the previously allocated memory as possible. */ + for (j = SIZEOF (choices); j > 0; ) + { + j--; + if (available[j]) + { + locale_t locale = newlocale (LC_ALL_MASK, choices[j], NULL); + unsigned int i; + + ASSERT (locale != NULL); + uselocale (locale); + for (i = 0; i < SIZEOF (categories); i++) + { + const char *name = gl_locale_name_thread (categories[i].cat, categories[i].string); + ASSERT (strcmp (unsaved_names[j][i], name) == 0); + } + uselocale (LC_GLOBAL_LOCALE); + } + } + /* Verify the unsaved_names are still valid. */ + for (j = 0; j < SIZEOF (choices); j++) + if (available[j]) + { + unsigned int i; + + for (i = 0; i < SIZEOF (categories); i++) + ASSERT (strcmp (unsaved_names[j][i], saved_names[j][i]) == 0); + } + } +#else + /* Check that gl_locale_name_thread always returns NULL. */ + ASSERT (gl_locale_name_thread (LC_CTYPE, "LC_CTYPE") == NULL); + ASSERT (gl_locale_name_thread (LC_MESSAGES, "LC_MESSAGES") == NULL); +#endif +} + +/* Test the gl_locale_name_posix() function. */ +static void +test_locale_name_posix (void) +{ + const char *name; + + /* Get into a defined state, */ + setlocale (LC_ALL, "en_US.UTF-8"); +#if HAVE_NEWLOCALE + uselocale (LC_GLOBAL_LOCALE); +#endif + + /* Check that when all environment variables are unset, + gl_locale_name_posix returns either NULL or the default locale. */ + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LC_NUMERIC"); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + name = gl_locale_name_posix (LC_NUMERIC, "LC_NUMERIC"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + + /* Check that an empty environment variable is treated like an unset + environment variable. */ + + setenv ("LC_ALL", "", 1); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + + unsetenv ("LC_ALL"); + setenv ("LC_CTYPE", "", 1); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "", 1); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "", 1); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + + /* Check that LC_ALL overrides the others, and LANG is overridden by the + others. */ + + setenv ("LC_ALL", "C", 1); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + unsetenv ("LC_ALL"); + setenv ("LC_CTYPE", "C", 1); + setenv ("LC_MESSAGES", "C", 1); + unsetenv ("LANG"); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "C", 1); + setlocale (LC_ALL, ""); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + /* Check mixed situations. */ + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + setenv ("LANG", "de_DE.UTF-8", 1); + if (setlocale (LC_ALL, "") != NULL) + { + name = gl_locale_name_posix (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, "de_DE.UTF-8") == 0); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + unsetenv ("LANG"); + if (setlocale (LC_ALL, "") != NULL) + { + name = gl_locale_name_posix (LC_CTYPE, "LC_CTYPE"); + ASSERT (name == NULL || strcmp (name, gl_locale_name_default ()) == 0); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + } + +#if HAVE_NEWLOCALE + /* Check that gl_locale_name_posix ignores the thread locale. */ + { + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "C", 1); + setlocale (LC_ALL, ""); + uselocale (locale); + name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + } + } +#endif +} + +/* Test the gl_locale_name_environ() function. */ +static void +test_locale_name_environ (void) +{ + const char *name; + + /* Get into a defined state, */ + setlocale (LC_ALL, "en_US.UTF-8"); +#if HAVE_NEWLOCALE + uselocale (LC_GLOBAL_LOCALE); +#endif + + /* Check that when all environment variables are unset, + gl_locale_name_environ returns NULL. */ + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LC_NUMERIC"); + unsetenv ("LANG"); + ASSERT (gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES") == NULL); + ASSERT (gl_locale_name_environ (LC_NUMERIC, "LC_NUMERIC") == NULL); + + /* Check that an empty environment variable is treated like an unset + environment variable. */ + + setenv ("LC_ALL", "", 1); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + ASSERT (gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES") == NULL); + + unsetenv ("LC_ALL"); + setenv ("LC_CTYPE", "", 1); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + ASSERT (gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES") == NULL); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "", 1); + unsetenv ("LANG"); + ASSERT (gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES") == NULL); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "", 1); + ASSERT (gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES") == NULL); + + /* Check that LC_ALL overrides the others, and LANG is overridden by the + others. */ + + setenv ("LC_ALL", "C", 1); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + unsetenv ("LANG"); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + unsetenv ("LC_ALL"); + setenv ("LC_CTYPE", "C", 1); + setenv ("LC_MESSAGES", "C", 1); + unsetenv ("LANG"); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "C", 1); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + + /* Check mixed situations. */ + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + setenv ("LANG", "de_DE.UTF-8", 1); + name = gl_locale_name_environ (LC_CTYPE, "LC_CTYPE"); + ASSERT (strcmp (name, "de_DE.UTF-8") == 0); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + setenv ("LC_MESSAGES", "fr_FR.UTF-8", 1); + unsetenv ("LANG"); + name = gl_locale_name_environ (LC_CTYPE, "LC_CTYPE"); + ASSERT (name == NULL); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "fr_FR.UTF-8") == 0); + +#if HAVE_NEWLOCALE + /* Check that gl_locale_name_environ ignores the thread locale. */ + { + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + unsetenv ("LC_ALL"); + unsetenv ("LC_CTYPE"); + unsetenv ("LC_MESSAGES"); + setenv ("LANG", "C", 1); + setlocale (LC_ALL, ""); + uselocale (locale); + name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES"); + ASSERT (strcmp (name, "C") == 0); + } + } +#endif +} + +/* Test the gl_locale_name_default() function. */ +static void +test_locale_name_default (void) +{ + const char *name = gl_locale_name_default (); + + ASSERT (name != NULL); + + /* Only MacOS X and Windows have a facility for the user to set the default + locale. */ +#if !((defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__ || defined __CYGWIN__)) + ASSERT (strcmp (name, "C") == 0); +#endif + +#if HAVE_NEWLOCALE + /* Check that gl_locale_name_default ignores the thread locale. */ + { + locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); + if (locale != NULL) + { + uselocale (locale); + ASSERT (strcmp (gl_locale_name_default (), name) == 0); + } + } +#endif +} + +int +main () +{ + test_locale_name (); + test_locale_name_thread (); + test_locale_name_posix (); + test_locale_name_environ (); + test_locale_name_default (); + return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-lock.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lock.c --- gettext-0.17/gettext-tools/gnulib-tests/test-lock.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lock.c 2010-03-28 18:32:31.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of locking in multithreaded situations. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,7 +71,25 @@ # undef USE_PTH_THREADS # undef USE_WIN32_THREADS #endif -#include "lock.h" +#include "glthread/lock.h" + +#if !ENABLE_LOCKING +# if TEST_POSIX_THREADS +# define USE_POSIX_THREADS 1 +# endif +# if TEST_SOLARIS_THREADS +# define USE_SOLARIS_THREADS 1 +# endif +# if TEST_PTH_THREADS +# define USE_PTH_THREADS 1 +# endif +# if TEST_WIN32_THREADS +# define USE_WIN32_THREADS 1 +# endif +#endif + +#include "glthread/thread.h" +#include "glthread/yield.h" #if ENABLE_DEBUGGING # define dbgprintf printf @@ -79,128 +97,6 @@ # define dbgprintf if (0) printf #endif -#if TEST_POSIX_THREADS -# include -# include -typedef pthread_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - pthread_t thread; - if (pthread_create (&thread, NULL, func, arg) != 0) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - void *retval; - if (pthread_join (thread, &retval) != 0) - abort (); -} -static inline void gl_thread_yield (void) -{ - sched_yield (); -} -static inline void * gl_thread_self (void) -{ - return (void *) pthread_self (); -} -#endif -#if TEST_PTH_THREADS -# include -typedef pth_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - pth_t thread = pth_spawn (NULL, func, arg); - if (thread == NULL) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - if (!pth_join (thread, NULL)) - abort (); -} -static inline void gl_thread_yield (void) -{ - pth_yield (NULL); -} -static inline void * gl_thread_self (void) -{ - return pth_self (); -} -#endif -#if TEST_SOLARIS_THREADS -# include -typedef thread_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - thread_t thread; - if (thr_create (NULL, 0, func, arg, 0, &thread) != 0) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - void *retval; - if (thr_join (thread, NULL, &retval) != 0) - abort (); -} -static inline void gl_thread_yield (void) -{ - thr_yield (); -} -static inline void * gl_thread_self (void) -{ - return (void *) thr_self (); -} -#endif -#if TEST_WIN32_THREADS -# include -typedef HANDLE gl_thread_t; -/* Use a wrapper function, instead of adding WINAPI through a cast. */ -struct wrapper_args { void * (*func) (void *); void *arg; }; -static DWORD WINAPI wrapper_func (void *varg) -{ - struct wrapper_args *warg = (struct wrapper_args *)varg; - void * (*func) (void *) = warg->func; - void *arg = warg->arg; - free (warg); - func (arg); - return 0; -} -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - struct wrapper_args *warg = - (struct wrapper_args *) malloc (sizeof (struct wrapper_args)); - if (warg == NULL) - abort (); - warg->func = func; - warg->arg = arg; - { - DWORD thread_id; - HANDLE thread = - CreateThread (NULL, 100000, wrapper_func, warg, 0, &thread_id); - if (thread == NULL) - abort (); - return thread; - } -} -static inline void gl_thread_join (gl_thread_t thread) -{ - if (WaitForSingleObject (thread, INFINITE) == WAIT_FAILED) - abort (); - if (!CloseHandle (thread)) - abort (); -} -static inline void gl_thread_yield (void) -{ - Sleep (0); -} -static inline void * gl_thread_self (void) -{ - return (void *) GetCurrentThreadId (); -} -#endif #if EXPLICIT_YIELD # define yield() gl_thread_yield () #else @@ -214,7 +110,7 @@ static int random_account (void) { - return ((unsigned int) rand() >> 3) % ACCOUNT_COUNT; + return ((unsigned int) rand () >> 3) % ACCOUNT_COUNT; } static void @@ -229,6 +125,9 @@ abort (); } + +/* ------------------- Test normal (non-recursive) locks ------------------- */ + /* Test normal locks by having several bank accounts and several threads which shuffle around money between the accounts and another thread checking that all the money is still there. */ @@ -250,7 +149,7 @@ i1 = random_account (); i2 = random_account (); - value = ((unsigned int) rand() >> 3) % 10; + value = ((unsigned int) rand () >> 3) % 10; account[i1] += value; account[i2] -= value; @@ -291,7 +190,7 @@ return NULL; } -void +static void test_lock (void) { int i; @@ -310,12 +209,15 @@ /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (threads[i]); + gl_thread_join (threads[i], NULL); lock_checker_done = 1; - gl_thread_join (checkerthread); + gl_thread_join (checkerthread, NULL); check_accounts (); } + +/* ----------------- Test read-write (non-recursive) locks ----------------- */ + /* Test read-write locks by having several bank accounts and several threads which shuffle around money between the accounts and several other threads that check that all the money is still there. */ @@ -337,7 +239,7 @@ i1 = random_account (); i2 = random_account (); - value = ((unsigned int) rand() >> 3) % 10; + value = ((unsigned int) rand () >> 3) % 10; account[i1] += value; account[i2] -= value; @@ -372,7 +274,7 @@ return NULL; } -void +static void test_rwlock (void) { int i; @@ -392,13 +294,16 @@ /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (threads[i]); + gl_thread_join (threads[i], NULL); rwlock_checker_done = 1; for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (checkerthreads[i]); + gl_thread_join (checkerthreads[i], NULL); check_accounts (); } + +/* -------------------------- Test recursive locks -------------------------- */ + /* Test recursive locks by having several bank accounts and several threads which shuffle around money between the accounts (recursively) and another thread checking that all the money is still there. */ @@ -416,12 +321,12 @@ i1 = random_account (); i2 = random_account (); - value = ((unsigned int) rand() >> 3) % 10; + value = ((unsigned int) rand () >> 3) % 10; account[i1] += value; account[i2] -= value; /* Recursive with probability 0.5. */ - if (((unsigned int) rand() >> 3) % 2) + if (((unsigned int) rand () >> 3) % 2) recshuffle (); dbgprintf ("Mutator %p before unlock\n", gl_thread_self ()); @@ -471,7 +376,7 @@ return NULL; } -void +static void test_recursive_lock (void) { int i; @@ -490,12 +395,15 @@ /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (threads[i]); + gl_thread_join (threads[i], NULL); reclock_checker_done = 1; - gl_thread_join (checkerthread); + gl_thread_join (checkerthread, NULL); check_accounts (); } + +/* ------------------------ Test once-only execution ------------------------ */ + /* Test once-only execution by having several threads attempt to grab a once-only task simultaneously (triggered by releasing a read-write lock). */ @@ -533,10 +441,10 @@ gl_lock_unlock (ready_lock[id]); if (repeat == REPEAT_COUNT) - break; + break; dbgprintf ("Contender %p waiting for signal for round %d\n", - gl_thread_self (), repeat); + gl_thread_self (), repeat); #if ENABLE_LOCKING /* Wait for the signal to go. */ gl_rwlock_rdlock (fire_signal[repeat]); @@ -545,10 +453,10 @@ #else /* Wait for the signal to go. */ while (fire_signal_state <= repeat) - yield (); + yield (); #endif dbgprintf ("Contender %p got the signal for round %d\n", - gl_thread_self (), repeat); + gl_thread_self (), repeat); /* Contend for execution. */ gl_once (once_control, once_execute); @@ -557,7 +465,7 @@ return NULL; } -void +static void test_once (void) { int i, repeat; @@ -589,30 +497,30 @@ /* Wait until every thread is ready. */ dbgprintf ("Main thread before synchonizing for round %d\n", repeat); for (;;) - { - int ready_count = 0; - for (i = 0; i < THREAD_COUNT; i++) - { - gl_lock_lock (ready_lock[i]); - ready_count += ready[i]; - gl_lock_unlock (ready_lock[i]); - } - if (ready_count == THREAD_COUNT) - break; - yield (); - } + { + int ready_count = 0; + for (i = 0; i < THREAD_COUNT; i++) + { + gl_lock_lock (ready_lock[i]); + ready_count += ready[i]; + gl_lock_unlock (ready_lock[i]); + } + if (ready_count == THREAD_COUNT) + break; + yield (); + } dbgprintf ("Main thread after synchonizing for round %d\n", repeat); if (repeat > 0) - { - /* Check that exactly one thread executed the once_execute() - function. */ - if (performed != 1) - abort (); - } + { + /* Check that exactly one thread executed the once_execute() + function. */ + if (performed != 1) + abort (); + } if (repeat == REPEAT_COUNT) - break; + break; /* Preparation for the next round: Initialize once_control. */ memcpy (&once_control, &fresh_once, sizeof (gl_once_t)); @@ -622,11 +530,11 @@ /* Preparation for the next round: Reset the ready flags. */ for (i = 0; i < THREAD_COUNT; i++) - { - gl_lock_lock (ready_lock[i]); - ready[i] = 0; - gl_lock_unlock (ready_lock[i]); - } + { + gl_lock_lock (ready_lock[i]); + ready[i] = 0; + gl_lock_unlock (ready_lock[i]); + } /* Signal all threads simultaneously. */ dbgprintf ("Main thread giving signal for round %d\n", repeat); @@ -639,9 +547,12 @@ /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (threads[i]); + gl_thread_join (threads[i], NULL); } + +/* -------------------------------------------------------------------------- */ + int main () { @@ -678,9 +589,12 @@ /* No multithreading available. */ +#include + int main () { + fputs ("Skipping test: multithreading not enabled\n", stderr); return 77; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-lstat.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lstat.c --- gettext-0.17/gettext-tools/gnulib-tests/test-lstat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lstat.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,60 @@ +/* Test of lstat() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Simon Josefsson, 2008; and Eric Blake, 2009. */ + +#include + +#include + +/* Caution: lstat may be a function-like macro. Although this + signature check must pass, it may be the signature of the real (and + broken) lstat rather than rpl_lstat. Most code should not use the + address of lstat. */ +#include "signature.h" +SIGNATURE_CHECK (lstat, int, (char const *, struct stat *)); + +#include +#include +#include +#include +#include +#include + +#include "same-inode.h" +#include "ignore-value.h" +#include "macros.h" + +#define BASE "test-lstat.t" + +#include "test-lstat.h" + +/* Wrapper around lstat, which works even if lstat is a function-like + macro, where test_lstat_func(lstat) would do the wrong thing. */ +static int +do_lstat (char const *name, struct stat *st) +{ + return lstat (name, st); +} + +int +main (void) +{ + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + + return test_lstat_func (do_lstat, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-lstat.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lstat.h --- gettext-0.17/gettext-tools/gnulib-tests/test-lstat.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-lstat.h 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,116 @@ +/* Test of lstat() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Simon Josefsson, 2008; and Eric Blake, 2009. */ + +/* This file is designed to test both lstat(n,buf) and + fstatat(AT_FDCWD,n,buf,AT_SYMLINK_NOFOLLOW). FUNC is the function + to test. Assumes that BASE and ASSERT are already defined, and + that appropriate headers are already included. If PRINT, warn + before skipping symlink tests with status 77. */ + +static int +test_lstat_func (int (*func) (char const *, struct stat *), bool print) +{ + struct stat st1; + struct stat st2; + + /* Test for common directories. */ + ASSERT (func (".", &st1) == 0); + ASSERT (func ("./", &st2) == 0); + ASSERT (SAME_INODE (st1, st2)); + ASSERT (S_ISDIR (st1.st_mode)); + ASSERT (S_ISDIR (st2.st_mode)); + ASSERT (func ("/", &st1) == 0); + ASSERT (func ("///", &st2) == 0); + ASSERT (SAME_INODE (st1, st2)); + ASSERT (S_ISDIR (st1.st_mode)); + ASSERT (S_ISDIR (st2.st_mode)); + ASSERT (func ("..", &st1) == 0); + ASSERT (S_ISDIR (st1.st_mode)); + + /* Test for error conditions. */ + errno = 0; + ASSERT (func ("", &st1) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("nosuch", &st1) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("nosuch/", &st1) == -1); + ASSERT (errno == ENOENT); + + ASSERT (close (creat (BASE "file", 0600)) == 0); + ASSERT (func (BASE "file", &st1) == 0); + ASSERT (S_ISREG (st1.st_mode)); + errno = 0; + ASSERT (func (BASE "file/", &st1) == -1); + ASSERT (errno == ENOTDIR); + + /* Now for some symlink tests, where supported. We set up: + link1 -> directory + link2 -> file + link3 -> dangling + link4 -> loop + then test behavior both with and without trailing slash. + */ + if (symlink (".", BASE "link1") != 0) + { + ASSERT (unlink (BASE "file") == 0); + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (symlink (BASE "file", BASE "link2") == 0); + ASSERT (symlink (BASE "nosuch", BASE "link3") == 0); + ASSERT (symlink (BASE "link4", BASE "link4") == 0); + + ASSERT (func (BASE "link1", &st1) == 0); + ASSERT (S_ISLNK (st1.st_mode)); + ASSERT (func (BASE "link1/", &st1) == 0); + ASSERT (stat (BASE "link1", &st2) == 0); + ASSERT (S_ISDIR (st1.st_mode)); + ASSERT (S_ISDIR (st2.st_mode)); + ASSERT (SAME_INODE (st1, st2)); + + ASSERT (func (BASE "link2", &st1) == 0); + ASSERT (S_ISLNK (st1.st_mode)); + errno = 0; + ASSERT (func (BASE "link2/", &st1) == -1); + ASSERT (errno == ENOTDIR); + + ASSERT (func (BASE "link3", &st1) == 0); + ASSERT (S_ISLNK (st1.st_mode)); + errno = 0; + ASSERT (func (BASE "link3/", &st1) == -1); + ASSERT (errno == ENOENT); + + ASSERT (func (BASE "link4", &st1) == 0); + ASSERT (S_ISLNK (st1.st_mode)); + errno = 0; + ASSERT (func (BASE "link4/", &st1) == -1); + ASSERT (errno == ELOOP); + + /* Cleanup. */ + ASSERT (unlink (BASE "file") == 0); + ASSERT (unlink (BASE "link1") == 0); + ASSERT (unlink (BASE "link2") == 0); + ASSERT (unlink (BASE "link3") == 0); + ASSERT (unlink (BASE "link4") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-malloca.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-malloca.c --- gettext-0.17/gettext-tools/gnulib-tests/test-malloca.c 2007-10-07 20:29:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-malloca.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of safe automatic memory allocation. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc1.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc1.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc1.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc1.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test in an ISO-8859-1 or ISO-8859-15 locale. +: ${LOCALE_FR=fr_FR} +if test $LOCALE_FR = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no traditional french locale is installed" + else + echo "Skipping test: no traditional french locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR \ +./test-mbrtowc${EXEEXT} 1 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc2.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc2.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc2.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc2.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific UTF-8 locale is installed. +: ${LOCALE_FR_UTF8=fr_FR.UTF-8} +if test $LOCALE_FR_UTF8 = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no french Unicode locale is installed" + else + echo "Skipping test: no french Unicode locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR_UTF8 \ +./test-mbrtowc${EXEEXT} 2 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc3.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc3.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc3.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc3.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific EUC-JP locale is installed. +: ${LOCALE_JA=ja_JP} +if test $LOCALE_JA = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no traditional japanese locale is installed" + else + echo "Skipping test: no traditional japanese locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_JA \ +./test-mbrtowc${EXEEXT} 3 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc4.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc4.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc4.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc4.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific GB18030 locale is installed. +: ${LOCALE_ZH_CN=zh_CN.GB18030} +if test $LOCALE_ZH_CN = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no transitional chinese locale is installed" + else + echo "Skipping test: no transitional chinese locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_ZH_CN \ +./test-mbrtowc${EXEEXT} 4 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbrtowc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbrtowc.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,323 @@ +/* Test of conversion of multibyte character to wide character. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (mbrtowc, size_t, (wchar_t *, char const *, size_t, + mbstate_t *)); + +#include +#include +#include + +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + mbstate_t state; + wchar_t wc; + size_t ret; + + /* configure should already have checked that the locale is supported. */ + if (setlocale (LC_ALL, "") == NULL) + return 1; + + /* Test zero-length input. */ + { + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, "x", 0, &state); + /* gnulib's implementation returns (size_t)(-2). + The AIX 5.1 implementation returns (size_t)(-1). + glibc's implementation returns 0. */ + ASSERT (ret == (size_t)(-2) || ret == (size_t)(-1) || ret == 0); + ASSERT (mbsinit (&state)); + } + + /* Test NUL byte input. */ + { + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, "", 1, &state); + ASSERT (ret == 0); + ASSERT (wc == 0); + ASSERT (mbsinit (&state)); + ret = mbrtowc (NULL, "", 1, &state); + ASSERT (ret == 0); + ASSERT (mbsinit (&state)); + } + + /* Test single-byte input. */ + { + int c; + char buf[1]; + + memset (&state, '\0', sizeof (mbstate_t)); + for (c = 0; c < 0x100; c++) + switch (c) + { + case '\t': case '\v': case '\f': + case ' ': case '!': case '"': case '#': case '%': + case '&': case '\'': case '(': case ')': case '*': + case '+': case ',': case '-': case '.': case '/': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case ':': case ';': case '<': case '=': case '>': + case '?': + case 'A': case 'B': case 'C': case 'D': case 'E': + case 'F': case 'G': case 'H': case 'I': case 'J': + case 'K': case 'L': case 'M': case 'N': case 'O': + case 'P': case 'Q': case 'R': case 'S': case 'T': + case 'U': case 'V': case 'W': case 'X': case 'Y': + case 'Z': + case '[': case '\\': case ']': case '^': case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': + case 'f': case 'g': case 'h': case 'i': case 'j': + case 'k': case 'l': case 'm': case 'n': case 'o': + case 'p': case 'q': case 'r': case 's': case 't': + case 'u': case 'v': case 'w': case 'x': case 'y': + case 'z': case '{': case '|': case '}': case '~': + /* c is in the ISO C "basic character set". */ + buf[0] = c; + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, buf, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == c); + ASSERT (mbsinit (&state)); + ret = mbrtowc (NULL, buf, 1, &state); + ASSERT (ret == 1); + ASSERT (mbsinit (&state)); + break; + } + } + + /* Test special calling convention, passing a NULL pointer. */ + { + memset (&state, '\0', sizeof (mbstate_t)); + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, NULL, 5, &state); + ASSERT (ret == 0); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + } + + if (argc > 1) + switch (argv[1][0]) + { + case '1': + /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ + { + char input[] = "B\374\337er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == (unsigned char) '\374'); + ASSERT (mbsinit (&state)); + input[1] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 2, 3, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == (unsigned char) '\337'); + ASSERT (mbsinit (&state)); + input[2] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 3, 2, &state); + ASSERT (ret == 1); + ASSERT (wc == 'e'); + ASSERT (mbsinit (&state)); + input[3] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 4, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'r'); + ASSERT (mbsinit (&state)); + } + return 0; + + case '2': + /* Locale encoding is UTF-8. */ + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[1] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 2, 5, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[2] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 3, 4, &state); + ASSERT (ret == 2); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[3] = '\0'; + input[4] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 5, 2, &state); + ASSERT (ret == 1); + ASSERT (wc == 'e'); + ASSERT (mbsinit (&state)); + input[5] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 6, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'r'); + ASSERT (mbsinit (&state)); + } + return 0; + + case '3': + /* Locale encoding is EUC-JP. */ + { + char input[] = "<\306\374\313\334\270\354>"; /* "<日本語>" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == '<'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 2, &state); + ASSERT (ret == 2); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[1] = '\0'; + input[2] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 3, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[3] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 4, 4, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[4] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 5, 3, &state); + ASSERT (ret == 2); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[5] = '\0'; + input[6] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 7, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == '>'); + ASSERT (mbsinit (&state)); + } + return 0; + + case '4': + /* Locale encoding is GB18030. */ + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[1] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 2, 7, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[2] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 3, 6, &state); + ASSERT (ret == 4); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[3] = '\0'; + input[4] = '\0'; + input[5] = '\0'; + input[6] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 7, 2, &state); + ASSERT (ret == 1); + ASSERT (wc == 'e'); + ASSERT (mbsinit (&state)); + input[5] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 8, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'r'); + ASSERT (mbsinit (&state)); + } + return 0; + } + + return 1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsinit.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsinit.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsinit.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsinit.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,53 @@ +/* Test of test for initial conversion state. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (mbsinit, int, (const mbstate_t *)); + +#include + +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + static mbstate_t state; + + ASSERT (mbsinit (&state)); + + if (argc > 1) + { + static const char input[1] = "\303"; + wchar_t wc; + size_t ret; + + /* configure should already have checked that the locale is supported. */ + if (setlocale (LC_ALL, "") == NULL) + return 1; + + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (!mbsinit (&state)); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsinit.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsinit.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsinit.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsinit.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific UTF-8 locale is installed. +: ${LOCALE_FR_UTF8=fr_FR.UTF-8} +if test $LOCALE_FR_UTF8 = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no french Unicode locale is installed" + else + echo "Skipping test: no french Unicode locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR_UTF8 \ +./test-mbsinit${EXEEXT} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs1.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs1.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs1.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs1.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test in an ISO-8859-1 or ISO-8859-15 locale. +: ${LOCALE_FR=fr_FR} +if test $LOCALE_FR = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no traditional french locale is installed" + else + echo "Skipping test: no traditional french locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR \ +./test-mbsrtowcs${EXEEXT} 1 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs2.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs2.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs2.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs2.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific UTF-8 locale is installed. +: ${LOCALE_FR_UTF8=fr_FR.UTF-8} +if test $LOCALE_FR_UTF8 = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no french Unicode locale is installed" + else + echo "Skipping test: no french Unicode locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_FR_UTF8 \ +./test-mbsrtowcs${EXEEXT} 2 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs3.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs3.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs3.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs3.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific EUC-JP locale is installed. +: ${LOCALE_JA=ja_JP} +if test $LOCALE_JA = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no traditional japanese locale is installed" + else + echo "Skipping test: no traditional japanese locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_JA \ +./test-mbsrtowcs${EXEEXT} 3 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs4.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs4.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs4.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs4.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh + +# Test whether a specific GB18030 locale is installed. +: ${LOCALE_ZH_CN=zh_CN.GB18030} +if test $LOCALE_ZH_CN = none; then + if test -f /usr/bin/localedef; then + echo "Skipping test: no transitional chinese locale is installed" + else + echo "Skipping test: no transitional chinese locale is supported" + fi + exit 77 +fi + +LC_ALL=$LOCALE_ZH_CN \ +./test-mbsrtowcs${EXEEXT} 4 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsrtowcs.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsrtowcs.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,293 @@ +/* Test of conversion of string to wide string. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (mbsrtowcs, size_t, (wchar_t *, char const **, size_t, + mbstate_t *)); + +#include +#include +#include + +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + mbstate_t state; + wchar_t wc; + size_t ret; + + /* configure should already have checked that the locale is supported. */ + if (setlocale (LC_ALL, "") == NULL) + return 1; + + /* Test NUL byte input. */ + { + const char *src; + + memset (&state, '\0', sizeof (mbstate_t)); + + src = ""; + ret = mbsrtowcs (NULL, &src, 0, &state); + ASSERT (ret == 0); + ASSERT (mbsinit (&state)); + + src = ""; + ret = mbsrtowcs (NULL, &src, 1, &state); + ASSERT (ret == 0); + ASSERT (mbsinit (&state)); + + wc = (wchar_t) 0xBADFACE; + src = ""; + ret = mbsrtowcs (&wc, &src, 0, &state); + ASSERT (ret == 0); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + + wc = (wchar_t) 0xBADFACE; + src = ""; + ret = mbsrtowcs (&wc, &src, 1, &state); + ASSERT (ret == 0); + ASSERT (wc == 0); + ASSERT (mbsinit (&state)); + } + + if (argc > 1) + { + int unlimited; + + for (unlimited = 0; unlimited < 2; unlimited++) + { + #define BUFSIZE 10 + wchar_t buf[BUFSIZE]; + const char *src; + mbstate_t temp_state; + + { + size_t i; + for (i = 0; i < BUFSIZE; i++) + buf[i] = (wchar_t) 0xBADFACE; + } + + switch (argv[1][0]) + { + case '1': + /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ + { + char input[] = "B\374\337er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == 1); + ASSERT (wctob (wc) == (unsigned char) '\374'); + ASSERT (mbsinit (&state)); + input[1] = '\0'; + + src = input + 2; + temp_state = state; + ret = mbsrtowcs (NULL, &src, unlimited ? BUFSIZE : 1, &temp_state); + ASSERT (ret == 3); + ASSERT (src == input + 2); + ASSERT (mbsinit (&state)); + + src = input + 2; + ret = mbsrtowcs (buf, &src, unlimited ? BUFSIZE : 1, &state); + ASSERT (ret == (unlimited ? 3 : 1)); + ASSERT (src == (unlimited ? NULL : input + 3)); + ASSERT (wctob (buf[0]) == (unsigned char) '\337'); + if (unlimited) + { + ASSERT (buf[1] == 'e'); + ASSERT (buf[2] == 'r'); + ASSERT (buf[3] == 0); + ASSERT (buf[4] == (wchar_t) 0xBADFACE); + } + else + ASSERT (buf[1] == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + } + break; + + case '2': + /* Locale encoding is UTF-8. */ + { + char input[] = "B\303\274\303\237er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[1] = '\0'; + + src = input + 2; + temp_state = state; + ret = mbsrtowcs (NULL, &src, unlimited ? BUFSIZE : 2, &temp_state); + ASSERT (ret == 4); + ASSERT (src == input + 2); + ASSERT (!mbsinit (&state)); + + src = input + 2; + ret = mbsrtowcs (buf, &src, unlimited ? BUFSIZE : 2, &state); + ASSERT (ret == (unlimited ? 4 : 2)); + ASSERT (src == (unlimited ? NULL : input + 5)); + ASSERT (wctob (buf[0]) == EOF); + ASSERT (wctob (buf[1]) == EOF); + if (unlimited) + { + ASSERT (buf[2] == 'e'); + ASSERT (buf[3] == 'r'); + ASSERT (buf[4] == 0); + ASSERT (buf[5] == (wchar_t) 0xBADFACE); + } + else + ASSERT (buf[2] == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + } + break; + + case '3': + /* Locale encoding is EUC-JP. */ + { + char input[] = "<\306\374\313\334\270\354>"; /* "<日本語>" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == '<'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 2, &state); + ASSERT (ret == 2); + ASSERT (wctob (wc) == EOF); + ASSERT (mbsinit (&state)); + input[1] = '\0'; + input[2] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 3, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[3] = '\0'; + + src = input + 4; + temp_state = state; + ret = mbsrtowcs (NULL, &src, unlimited ? BUFSIZE : 2, &temp_state); + ASSERT (ret == 3); + ASSERT (src == input + 4); + ASSERT (!mbsinit (&state)); + + src = input + 4; + ret = mbsrtowcs (buf, &src, unlimited ? BUFSIZE : 2, &state); + ASSERT (ret == (unlimited ? 3 : 2)); + ASSERT (src == (unlimited ? NULL : input + 7)); + ASSERT (wctob (buf[0]) == EOF); + ASSERT (wctob (buf[1]) == EOF); + if (unlimited) + { + ASSERT (buf[2] == '>'); + ASSERT (buf[3] == 0); + ASSERT (buf[4] == (wchar_t) 0xBADFACE); + } + else + ASSERT (buf[2] == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + } + break; + + case '4': + /* Locale encoding is GB18030. */ + { + char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ + memset (&state, '\0', sizeof (mbstate_t)); + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input, 1, &state); + ASSERT (ret == 1); + ASSERT (wc == 'B'); + ASSERT (mbsinit (&state)); + input[0] = '\0'; + + wc = (wchar_t) 0xBADFACE; + ret = mbrtowc (&wc, input + 1, 1, &state); + ASSERT (ret == (size_t)(-2)); + ASSERT (wc == (wchar_t) 0xBADFACE); + ASSERT (!mbsinit (&state)); + input[1] = '\0'; + + src = input + 2; + temp_state = state; + ret = mbsrtowcs (NULL, &src, unlimited ? BUFSIZE : 2, &temp_state); + ASSERT (ret == 4); + ASSERT (src == input + 2); + ASSERT (!mbsinit (&state)); + + src = input + 2; + ret = mbsrtowcs (buf, &src, unlimited ? BUFSIZE : 2, &state); + ASSERT (ret == (unlimited ? 4 : 2)); + ASSERT (src == (unlimited ? NULL : input + 7)); + ASSERT (wctob (buf[0]) == EOF); + ASSERT (wctob (buf[1]) == EOF); + if (unlimited) + { + ASSERT (buf[2] == 'e'); + ASSERT (buf[3] == 'r'); + ASSERT (buf[4] == 0); + ASSERT (buf[5] == (wchar_t) 0xBADFACE); + } + else + ASSERT (buf[2] == (wchar_t) 0xBADFACE); + ASSERT (mbsinit (&state)); + } + break; + + default: + return 1; + } + } + + return 0; + } + + return 1; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr1.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr1.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr1.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr1.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of searching in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,19 +20,9 @@ #include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -74,16 +64,16 @@ char *haystack = (char *) malloc (m + 1); if (haystack != NULL) { - memset (haystack, 'A', m); - haystack[0] = 'B'; - haystack[m] = '\0'; - - for (; repeat > 0; repeat--) - { - ASSERT (mbsstr (haystack, needle) == haystack + 1); - } + memset (haystack, 'A', m); + haystack[0] = 'B'; + haystack[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (mbsstr (haystack, needle) == haystack + 1); + } - free (haystack); + free (haystack); } } @@ -98,15 +88,15 @@ char *needle = (char *) malloc (m + 1); if (needle != NULL) { - memset (needle, 'A', m); - needle[m] = '\0'; + memset (needle, 'A', m); + needle[m] = '\0'; - for (; repeat > 0; repeat--) - { - ASSERT (mbsstr (haystack, needle) == NULL); - } + for (; repeat > 0; repeat--) + { + ASSERT (mbsstr (haystack, needle) == NULL); + } - free (needle); + free (needle); } } @@ -117,23 +107,21 @@ char *needle = (char *) malloc (m + 2); if (haystack != NULL && needle != NULL) { - const char *result; + const char *result; - memset (haystack, 'A', 2 * m); - haystack[2 * m] = 'B'; - haystack[2 * m + 1] = '\0'; - - memset (needle, 'A', m); - needle[m] = 'B'; - needle[m + 1] = '\0'; + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = '\0'; + + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = '\0'; - result = mbsstr (haystack, needle); - ASSERT (result == haystack + m); + result = mbsstr (haystack, needle); + ASSERT (result == haystack + m); } - if (needle != NULL) - free (needle); - if (haystack != NULL) - free (haystack); + free (needle); + free (haystack); } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr2.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr2.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr2.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr2.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of searching in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,19 +21,9 @@ #include #include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -83,16 +73,16 @@ char *haystack = (char *) malloc (m + 1); if (haystack != NULL) { - memset (haystack, 'A', m); - haystack[0] = '\303'; haystack[1] = '\204'; - haystack[m] = '\0'; - - for (; repeat > 0; repeat--) - { - ASSERT (mbsstr (haystack, needle) == haystack + 2); - } + memset (haystack, 'A', m); + haystack[0] = '\303'; haystack[1] = '\204'; + haystack[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (mbsstr (haystack, needle) == haystack + 2); + } - free (haystack); + free (haystack); } } @@ -111,15 +101,15 @@ char *needle = (char *) malloc (m + 1); if (needle != NULL) { - memset (needle, 'A', m); - needle[m] = '\0'; + memset (needle, 'A', m); + needle[m] = '\0'; - for (; repeat > 0; repeat--) - { - ASSERT (mbsstr (haystack, needle) == NULL); - } + for (; repeat > 0; repeat--) + { + ASSERT (mbsstr (haystack, needle) == NULL); + } - free (needle); + free (needle); } } @@ -130,23 +120,21 @@ char *needle = (char *) malloc (m + 3); if (haystack != NULL && needle != NULL) { - const char *result; + const char *result; - memset (haystack, 'A', 2 * m); - haystack[2 * m] = '\303'; haystack[2 * m + 1] = '\207'; - haystack[2 * m + 2] = '\0'; - - memset (needle, 'A', m); - needle[m] = '\303'; needle[m + 1] = '\207'; - needle[m + 2] = '\0'; + memset (haystack, 'A', 2 * m); + haystack[2 * m] = '\303'; haystack[2 * m + 1] = '\207'; + haystack[2 * m + 2] = '\0'; + + memset (needle, 'A', m); + needle[m] = '\303'; needle[m + 1] = '\207'; + needle[m + 2] = '\0'; - result = mbsstr (haystack, needle); - ASSERT (result == haystack + m); + result = mbsstr (haystack, needle); + ASSERT (result == haystack + m); } - if (needle != NULL) - free (needle); - if (haystack != NULL) - free (haystack); + free (needle); + free (haystack); } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr3.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr3.c --- gettext-0.17/gettext-tools/gnulib-tests/test-mbsstr3.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-mbsstr3.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of searching in a string. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,19 +21,8 @@ #include #include -#include -#include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-memchr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-memchr.c --- gettext-0.17/gettext-tools/gnulib-tests/test-memchr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-memchr.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2008-2010 Free Software Foundation, Inc. + * Written by Eric Blake and Bruno Haible + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (memchr, void *, (void const *, int, size_t)); + +#include + +#include "zerosize-ptr.h" +#include "macros.h" + +/* Calculating void * + int is not portable, so this wrapper converts + to char * to make the tests easier to write. */ +#define MEMCHR (char *) memchr + +int +main (void) +{ + size_t n = 0x100000; + char *input = malloc (n); + ASSERT (input); + + input[0] = 'a'; + input[1] = 'b'; + memset (input + 2, 'c', 1024); + memset (input + 1026, 'd', n - 1028); + input[n - 2] = 'e'; + input[n - 1] = 'a'; + + /* Basic behavior tests. */ + ASSERT (MEMCHR (input, 'a', n) == input); + + ASSERT (MEMCHR (input, 'a', 0) == NULL); + ASSERT (MEMCHR (zerosize_ptr (), 'a', 0) == NULL); + + ASSERT (MEMCHR (input, 'b', n) == input + 1); + ASSERT (MEMCHR (input, 'c', n) == input + 2); + ASSERT (MEMCHR (input, 'd', n) == input + 1026); + + ASSERT (MEMCHR (input + 1, 'a', n - 1) == input + n - 1); + ASSERT (MEMCHR (input + 1, 'e', n - 1) == input + n - 2); + + ASSERT (MEMCHR (input, 'f', n) == NULL); + ASSERT (MEMCHR (input, '\0', n) == NULL); + + /* Check that a very long haystack is handled quickly if the byte is + found near the beginning. */ + { + size_t repeat = 10000; + for (; repeat > 0; repeat--) + { + ASSERT (MEMCHR (input, 'c', n) == input + 2); + } + } + + /* Alignment tests. */ + { + int i, j; + for (i = 0; i < 32; i++) + { + for (j = 0; j < 256; j++) + input[i + j] = j; + for (j = 0; j < 256; j++) + { + ASSERT (MEMCHR (input + i, j, 256) == input + i + j); + } + } + } + + /* Check that memchr() does not read past the first occurrence of the + byte being searched. See the Austin Group's clarification + . */ + { + char *page_boundary = (char *) zerosize_ptr (); + + if (page_boundary != NULL) + { + for (n = 1; n <= 500; n++) + { + char *mem = page_boundary - n; + memset (mem, 'X', n); + ASSERT (MEMCHR (mem, 'U', n) == NULL); + + { + size_t i; + + for (i = 0; i < n; i++) + { + mem[i] = 'U'; + ASSERT (MEMCHR (mem, 'U', 4000) == mem + i); + mem[i] = 'X'; + } + } + } + } + } + + free (input); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-moo-assign.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-moo-assign.c --- gettext-0.17/gettext-tools/gnulib-tests/test-moo-assign.c 2006-12-04 13:35:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-moo-assign.c 2010-06-06 12:49:58.000000000 +0000 @@ -12,21 +12,21 @@ root_t a1 = a; root_t a2 = b; root_t a3 = c; - sub1_t b1 = a; /* ERROR */ + sub1_t b1 = a; /* ERROR */ sub1_t b2 = b; sub1_t b3 = c; - sub2_t c1 = a; /* ERROR */ - sub2_t c2 = b; /* ERROR */ + sub2_t c1 = a; /* ERROR */ + sub2_t c2 = b; /* ERROR */ sub2_t c3 = c; /* Test assignments. */ a = a1; a = b1; a = c1; - b = a2; /* ERROR */ + b = a2; /* ERROR */ b = b2; b = c2; - c = a3; /* ERROR */ - c = b3; /* ERROR */ + c = a3; /* ERROR */ + c = b3; /* ERROR */ c = c3; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-open.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-open.c --- gettext-0.17/gettext-tools/gnulib-tests/test-open.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-open.c 2010-02-16 21:32:27.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of opening a file descriptor. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,24 +20,22 @@ #include +#include "signature.h" +SIGNATURE_CHECK (open, int, (char const *, int, ...)); + +#include +#include #include -#include +#include + +#include "macros.h" -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#define BASE "test-open.t" + +#include "test-open.h" int -main () +main (void) { - ASSERT (open ("/dev/null", O_RDONLY) >= 0); - - return 0; + return test_open (open, true); } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-open.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-open.h --- gettext-0.17/gettext-tools/gnulib-tests/test-open.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-open.h 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,87 @@ +/* Test of opening a file descriptor. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +/* This file is designed to test both open(n,buf[,mode]) and + openat(AT_FDCWD,n,buf[,mode]). FUNC is the function to test. + Assumes that BASE and ASSERT are already defined, and that + appropriate headers are already included. If PRINT, warn before + skipping symlink tests with status 77. */ + +static int +test_open (int (*func) (char const *, int, ...), bool print) +{ + int fd; + /* Remove anything from prior partial run. */ + unlink (BASE "file"); + + /* Cannot create directory. */ + errno = 0; + ASSERT (func ("nonexist.ent/", O_CREAT | O_RDONLY, 0600) == -1); + ASSERT (errno == ENOTDIR || errno == EISDIR || errno == ENOENT + || errno == EINVAL); + + /* Create a regular file. */ + fd = func (BASE "file", O_CREAT | O_RDONLY, 0600); + ASSERT (0 <= fd); + ASSERT (close (fd) == 0); + + /* Trailing slash handling. */ + errno = 0; + ASSERT (func (BASE "file/", O_RDONLY) == -1); + ASSERT (errno == ENOTDIR || errno == EISDIR || errno == EINVAL); + + /* Directories cannot be opened for writing. */ + errno = 0; + ASSERT (func (".", O_WRONLY) == -1); + ASSERT (errno == EISDIR || errno == EACCES); + + /* /dev/null must exist, and be writable. */ + fd = func ("/dev/null", O_RDONLY); + ASSERT (0 <= fd); + { + char c; + ASSERT (read (fd, &c, 1) == 0); + } + ASSERT (close (fd) == 0); + fd = func ("/dev/null", O_WRONLY); + ASSERT (0 <= fd); + ASSERT (write (fd, "c", 1) == 1); + ASSERT (close (fd) == 0); + + /* Symlink handling, where supported. */ + if (symlink (BASE "file", BASE "link") != 0) + { + ASSERT (unlink (BASE "file") == 0); + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + errno = 0; + ASSERT (func (BASE "link/", O_RDONLY) == -1); + ASSERT (errno == ENOTDIR); + fd = func (BASE "link", O_RDONLY); + ASSERT (0 <= fd); + ASSERT (close (fd) == 0); + + /* Cleanup. */ + ASSERT (unlink (BASE "file") == 0); + ASSERT (unlink (BASE "link") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe2.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe2.c --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe2.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,145 @@ +/* Test of pipe2. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (pipe2, int, (int[2], int)); + +#include +#include + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +#endif + +#include "binary-io.h" +#include "macros.h" + +/* Return true if FD is open. */ +static bool +is_open (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32, the initial state of unassigned standard file + descriptors is that they are open but point to an + INVALID_HANDLE_VALUE, and there is no fcntl. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +#else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +#endif +} + +/* Return true if FD is not inherited to child processes. */ +static bool +is_cloexec (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + HANDLE h = (HANDLE) _get_osfhandle (fd); + DWORD flags; + ASSERT (GetHandleInformation (h, &flags)); + return (flags & HANDLE_FLAG_INHERIT) == 0; +#else + int flags; + ASSERT ((flags = fcntl (fd, F_GETFD)) >= 0); + return (flags & FD_CLOEXEC) != 0; +#endif +} + +/* Return true if FD is in non-blocking mode. */ +static bool +is_nonblocking (int fd) +{ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* We don't use the non-blocking mode for sockets here. */ + return 0; +#else + int flags; + ASSERT ((flags = fcntl (fd, F_GETFL)) >= 0); + return (flags & O_NONBLOCK) != 0; +#endif +} + +int +main () +{ + int use_nonblocking; + int use_cloexec; + +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) + for (use_nonblocking = 0; use_nonblocking <= 1; use_nonblocking++) +#else + use_nonblocking = 0; +#endif +#if defined O_CLOEXEC + for (use_cloexec = 0; use_cloexec <= 1; use_cloexec++) +#else + use_cloexec = 0; +#endif + { + int o_flags; + int fd[2]; + + o_flags = 0; +#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) + if (use_nonblocking) + o_flags |= O_NONBLOCK; +#endif +#if defined O_CLOEXEC + if (use_cloexec) + o_flags |= O_CLOEXEC; +#endif + + fd[0] = -1; + fd[1] = -1; + ASSERT (pipe2 (fd, o_flags) >= 0); + ASSERT (fd[0] >= 0); + ASSERT (fd[1] >= 0); + ASSERT (fd[0] != fd[1]); + ASSERT (is_open (fd[0]) >= 0); + ASSERT (is_open (fd[1]) >= 0); + if (use_cloexec) + { + ASSERT (is_cloexec (fd[0])); + ASSERT (is_cloexec (fd[1])); + } + else + { + ASSERT (!is_cloexec (fd[0])); + ASSERT (!is_cloexec (fd[1])); + } + if (use_nonblocking) + { + ASSERT (is_nonblocking (fd[0])); + ASSERT (is_nonblocking (fd[1])); + } + else + { + ASSERT (!is_nonblocking (fd[0])); + ASSERT (!is_nonblocking (fd[1])); + } + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe.c --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,204 @@ +/* Test of create_pipe_bidi/wait_subprocess. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +#include "pipe.h" +#include "wait-process.h" + +#include +#include +#include +#include +#include +#include + +/* Depending on arguments, this test intentionally closes stderr or + starts life with stderr closed. So, we arrange to have fd 10 + (outside the range of interesting fd's during the test) set up to + duplicate the original stderr. */ + +#define BACKUP_STDERR_FILENO 10 +#define ASSERT_STREAM myerr +#include "macros.h" + +static FILE *myerr; + +/* Code executed by the child process. argv[1] = "child". */ +static int +child_main (int argc, char *argv[]) +{ + char buffer[2] = { 's', 't' }; + int fd; + int ret; + + ASSERT (argc == 3); + + /* Read one byte from fd 0, and write its value plus one to fd 1. + fd 2 should be closed iff the argument is 1. Check that no other file + descriptors leaked. */ + + ASSERT (read (STDIN_FILENO, buffer, 2) == 1); + + buffer[0]++; + ASSERT (write (STDOUT_FILENO, buffer, 1) == 1); + + errno = 0; + ret = dup2 (STDERR_FILENO, STDERR_FILENO); + switch (atoi (argv[2])) + { + case 0: + /* Expect fd 2 is open. */ + ASSERT (ret == STDERR_FILENO); + break; + case 1: + /* Expect fd 2 is closed. */ + ASSERT (ret == -1); + ASSERT (errno == EBADF); + break; + default: + ASSERT (false); + } + + for (fd = 3; fd < 7; fd++) + { + errno = 0; + ASSERT (close (fd) == -1); + ASSERT (errno == EBADF); + } + + return 0; +} + +/* Create a bi-directional pipe to a test child, and validate that the + child program returns the expected output. The child is the same + program as the parent ARGV0, but with different arguments. + STDERR_CLOSED is true if we have already closed fd 2. */ +static void +test_pipe (const char *argv0, bool stderr_closed) +{ + int fd[2]; + char *argv[4]; + pid_t pid; + char buffer[2] = { 'a', 't' }; + + /* Set up child. */ + argv[0] = (char *) argv0; + argv[1] = (char *) "child"; + argv[2] = (char *) (stderr_closed ? "1" : "0"); + argv[3] = NULL; + pid = create_pipe_bidi (argv0, argv0, argv, false, true, true, fd); + ASSERT (0 <= pid); + ASSERT (STDERR_FILENO < fd[0]); + ASSERT (STDERR_FILENO < fd[1]); + + /* Push child's input. */ + ASSERT (write (fd[1], buffer, 1) == 1); + ASSERT (close (fd[1]) == 0); + + /* Get child's output. */ + ASSERT (read (fd[0], buffer, 2) == 1); + + /* Wait for child. */ + ASSERT (wait_subprocess (pid, argv0, true, false, true, true, NULL) == 0); + ASSERT (close (fd[0]) == 0); + + /* Check the result. */ + ASSERT (buffer[0] == 'b'); + ASSERT (buffer[1] == 't'); +} + +/* Code executed by the parent process. */ +static int +parent_main (int argc, char *argv[]) +{ + int test; + int fd; + + ASSERT (argc == 2); + + /* Selectively close various standard fds, to verify the child process is + not impacted by this. */ + test = atoi (argv[1]); + switch (test) + { + case 0: + break; + case 1: + close (0); + break; + case 2: + close (1); + break; + case 3: + close (0); + close (1); + break; + case 4: + close (2); + break; + case 5: + close (0); + close (2); + break; + case 6: + close (1); + close (2); + break; + case 7: + close (0); + close (1); + close (2); + break; + default: + ASSERT (false); + } + + /* Plug any file descriptor leaks inherited from outside world before + starting, so that child has a clean slate (at least for the fds that we + might be manipulating). */ + for (fd = 3; fd < 7; fd++) + close (fd); + + test_pipe (argv[0], test >= 4); + + return 0; +} + +int +main (int argc, char *argv[]) +{ + if (argc < 2) + { + fprintf (stderr, "%s: need arguments\n", argv[0]); + return 2; + } + if (strcmp (argv[1], "child") == 0) + { + /* fd 2 might be closed, but fd BACKUP_STDERR_FILENO is the original + stderr. */ + myerr = fdopen (BACKUP_STDERR_FILENO, "w"); + if (!myerr) + return 2; + return child_main (argc, argv); + } + /* We might close fd 2 later, so save it in fd 10. */ + if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO + || (myerr = fdopen (BACKUP_STDERR_FILENO, "w")) == NULL) + return 2; + return parent_main (argc, argv); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c 2010-02-16 21:32:27.000000000 +0000 @@ -0,0 +1,136 @@ +/* Test of filtering of data through a subprocess. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include "pipe-filter.h" + +#include "binary-io.h" +#include "c-ctype.h" +#include "read-file.h" +#include "progname.h" +#include "macros.h" + + +/* Pipe a text file through 'tr a-z A-Z', which converts ASCII characters from + lower case to upper case. */ + +struct locals +{ + const char *input; + size_t size; + size_t nwritten; + size_t nread; + char buf[19]; +}; + +static const void * +prepare_write (size_t *num_bytes_p, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + if (l->nwritten < l->size) + { + *num_bytes_p = l->size - l->nwritten; + return l->input + l->nwritten; + } + else + return NULL; +} + +static void +done_write (void *data_written, size_t num_bytes_written, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + l->nwritten += num_bytes_written; +} + +static void * +prepare_read (size_t *num_bytes_p, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + *num_bytes_p = sizeof (l->buf); + return l->buf; +} + +static void +done_read (void *data_read, size_t num_bytes_read, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + const char *p = l->input + l->nread; + const char *q = (const char *) data_read; + size_t i; + + for (i = 0; i < num_bytes_read; i++, q++) + { + /* Handle conversion NL -> CRLF possibly done by the child process. */ + if (!(O_BINARY && *q == '\r')) + { + char orig = *p; + char expected = c_toupper (orig); + ASSERT (*q == expected); + p++; + } + } + l->nread = p - l->input; +} + +int +main (int argc, char *argv[]) +{ + const char *tr_program; + const char *input_filename; + size_t input_size; + char *input; + + set_program_name (argv[0]); + + ASSERT (argc == 3); + + tr_program = argv[1]; + + /* Read some text from a file. */ + input_filename = argv[2]; + input = read_binary_file (input_filename, &input_size); + ASSERT (input != NULL); + + /* Convert it to uppercase, line by line. */ + { + const char *argv[4]; + struct locals l; + int result; + + l.input = input; + l.size = input_size; + l.nwritten = 0; + l.nread = 0; + + argv[0] = tr_program; + argv[1] = "a-z"; + argv[2] = "A-Z"; + argv[3] = NULL; + + result = pipe_filter_ii_execute ("tr", tr_program, argv, false, true, + prepare_write, done_write, + prepare_read, done_read, + &l); + ASSERT (result == 0); + ASSERT (l.nwritten == input_size); + ASSERT (l.nread == input_size); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii1.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii1.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii1.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii1.sh 2009-08-31 08:29:51.000000000 +0000 @@ -0,0 +1,20 @@ +#!/bin/sh + +# Find a 'tr' program that supports character ranges in the POSIX syntax. +# Solaris /usr/bin/tr does not. +if test -f /usr/xpg6/bin/tr; then + TR=/usr/xpg6/bin/tr +else + if test -f /usr/xpg4/bin/tr; then + TR=/usr/xpg4/bin/tr + else + TR=tr + fi +fi + +# A small file. +./test-pipe-filter-ii1${EXEEXT} ${TR} "${srcdir}/test-pipe-filter-ii1.sh" || exit 1 +# A medium-sized file. +./test-pipe-filter-ii1${EXEEXT} ${TR} "${srcdir}/test-pipe-filter-ii1.c" || exit 1 +# A large file. +./test-pipe-filter-ii1${EXEEXT} ${TR} "${srcdir}/test-vasnprintf-posix.c" || exit 1 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,43 @@ +/* Child program invoked by test-pipe-filter-ii2-main. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Paolo Bonzini , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include +#include + +int +main () +{ + /* Repeatedly: Read two integers i and j, then output all integers in the + range i..j, one per line. */ + for (;;) + { + int i, j; + + if (scanf (" %d", &i) != 1) + break; + if (scanf (" %d", &j) != 1) + break; + if (j == -1) + exit (i); + while (i <= j) + printf ("abcdefghijklmnopqrstuvwxyz%d\n", i++); + } + exit (0); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,152 @@ +/* Test harness for pipe-filter-ii. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Written by Paolo Bonzini , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +#include "pipe-filter.h" + +#include +#include +#include +#include +#include + +#include "full-write.h" +#include "progname.h" +#include "macros.h" + +struct locals +{ + const char *input; + size_t size; + size_t nwritten; + size_t nread; + char buf[5]; +}; + +static const void * +prepare_write (size_t *num_bytes_p, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + if (l->nwritten < l->size) + { + *num_bytes_p = l->size - l->nwritten; + return l->input + l->nwritten; + } + else + return NULL; +} + +static void +done_write (void *data_written, size_t num_bytes_written, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + l->nwritten += num_bytes_written; +} + +static void * +prepare_read (size_t *num_bytes_p, void *private_data) +{ + struct locals *l = (struct locals *) private_data; + *num_bytes_p = sizeof (l->buf); + return l->buf; +} + +/* Callback that ignores the data that has been read. */ + +static void +ignore_done_read (void *data_read, size_t num_bytes_read, void *private_data) +{ +} + +/* Callback that outputs the data that has been read. */ + +static void +output_done_read (void *data_read, size_t num_bytes_read, void *private_data) +{ + full_write (STDOUT_FILENO, data_read, num_bytes_read); +} + +int +main (int argc, char **argv) +{ + const char *path[] = { NULL, NULL }; + + set_program_name (argv[0]); + + ASSERT (argc == 2); + + /* Test writing to a nonexistent program traps sooner or later. */ + { + struct locals l; + int rc; + + l.input = ""; + l.size = 1; + l.nwritten = 0; + l.nread = 0; + path[0] = "/nonexistent/blah"; + rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, true, false, + prepare_write, done_write, + prepare_read, ignore_done_read, + &l); + ASSERT (rc == 127 || rc == -1); + printf ("Test 1 passed.\n"); + fflush (stdout); + } + + /* Test returning the exit status. */ + { + struct locals l; + int rc; + + l.input = "1 -1"; + l.size = strlen (l.input); + l.nwritten = 0; + l.nread = 0; + path[0] = argv[1]; + rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, false, + prepare_write, done_write, + prepare_read, ignore_done_read, + &l); + ASSERT (rc == 1); + printf ("Test 2 passed.\n"); + fflush (stdout); + } + + /* Now test asynchronous I/O. */ + { + struct locals l; + int rc; + + l.input = "1 50\n51\n100"; + l.size = strlen (l.input); + l.nwritten = 0; + l.nread = 0; + path[0] = argv[1]; + rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, true, + prepare_write, done_write, + prepare_read, output_done_read, + &l); + ASSERT (rc == 0); + printf ("Test 3 passed.\n"); + fflush (stdout); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,31 @@ +#! /bin/sh + +# pipe-filter test driver. +# +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. +# Written by Paolo Bonzini , 2009. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +./test-pipe-filter-ii2-main${EXEEXT} ./test-pipe-filter-ii2-child${EXEEXT} | { + set -e + read a && test "$a" = "Test 1 passed." + read a && test "$a" = "Test 2 passed." + i=1 + while test $i -le 100; do + read a && test "$a" = "abcdefghijklmnopqrstuvwxyz$i" + i=`expr $i + 1` + done + read a && test "$a" = "Test 3 passed." +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-pipe.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-pipe.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-pipe.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,8 @@ +#!/bin/sh + +st=0 +for i in 0 1 2 3 4 5 6 7 ; do + ./test-pipe${EXEEXT} $i \ + || { echo test-pipe.sh: iteration $i failed >&2; st=1; } +done +exit $st diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn1.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn1.c --- gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn1.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn1.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,166 @@ +/* Test of posix_spawn() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (posix_spawnp, int, (pid_t *, char const *, + posix_spawn_file_actions_t const *, + posix_spawnattr_t const *, + char *const[], char *const[])); +SIGNATURE_CHECK (posix_spawnattr_init, int, (posix_spawnattr_t *)); +SIGNATURE_CHECK (posix_spawnattr_destroy, int, (posix_spawnattr_t *)); +SIGNATURE_CHECK (posix_spawnattr_setsigmask, int, (posix_spawnattr_t *, + sigset_t const *)); +SIGNATURE_CHECK (posix_spawnattr_setflags, int, (posix_spawnattr_t *, short)); +SIGNATURE_CHECK (posix_spawn_file_actions_init, int, + (posix_spawn_file_actions_t *)); +SIGNATURE_CHECK (posix_spawn_file_actions_destroy, int, + (posix_spawn_file_actions_t *)); +SIGNATURE_CHECK (posix_spawn_file_actions_addclose, int, + (posix_spawn_file_actions_t *, int)); +SIGNATURE_CHECK (posix_spawn_file_actions_addopen, int, + (posix_spawn_file_actions_t *, int, char const *, int, + mode_t)); +SIGNATURE_CHECK (posix_spawn_file_actions_adddup2, int, + (posix_spawn_file_actions_t *, int, int)); + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +extern char **environ; + +#define CHILD_PROGRAM_FILENAME "test-posix_spawn1.sh" + +static int +fd_safer (int fd) +{ + if (0 <= fd && fd <= 2) + { + int f = fd_safer (dup (fd)); + int e = errno; + close (fd); + errno = e; + fd = f; + } + + return fd; +} + +int +main () +{ + char *argv[3] = { "/bin/sh", CHILD_PROGRAM_FILENAME, NULL }; + int ifd[2]; + sigset_t blocked_signals; + sigset_t fatal_signal_set; + posix_spawn_file_actions_t actions; + bool actions_allocated; + posix_spawnattr_t attrs; + bool attrs_allocated; + int err; + pid_t child; + int fd; + FILE *fp; + char line[80]; + int status; + int exitstatus; + + if (pipe (ifd) < 0 || (ifd[0] = fd_safer (ifd[0])) < 0) + { + perror ("cannot create pipe"); + exit (1); + } + sigprocmask (SIG_SETMASK, NULL, &blocked_signals); + sigemptyset (&fatal_signal_set); + sigaddset (&fatal_signal_set, SIGINT); + sigaddset (&fatal_signal_set, SIGTERM); + sigaddset (&fatal_signal_set, SIGHUP); + sigaddset (&fatal_signal_set, SIGPIPE); + sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL); + actions_allocated = false; + attrs_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_adddup2 (&actions, ifd[1], STDOUT_FILENO)) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ifd[1])) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ifd[0])) != 0 + || (err = posix_spawn_file_actions_addopen (&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0)) != 0 + || (err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0 + || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0) + || (err = posix_spawnp (&child, "/bin/sh", &actions, &attrs, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + if (attrs_allocated) + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + errno = err; + perror ("subprocess failed"); + exit (1); + } + posix_spawn_file_actions_destroy (&actions); + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + close (ifd[1]); + fd = ifd[0]; + fp = fdopen (fd, "r"); + if (fp == NULL) + { + fprintf (stderr, "fdopen() failed\n"); + exit (1); + } + if (fread (line, 1, 80, fp) < 12) + { + fprintf (stderr, "could not read expected output\n"); + exit (1); + } + if (memcmp (line, "Halle Potta", 11) != 0) + { + fprintf (stderr, "read output is not the expected output"); + exit (1); + } + fclose (fp); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + exit (1); + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 0) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + exit (1); + } + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn1.in.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn1.in.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn1.in.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn1.in.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,2 @@ +#!/bin/sh +echo "Halle Potta" diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn2.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn2.c --- gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn2.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,139 @@ +/* Test of posix_spawn() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +extern char **environ; + +#define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh" + +static int +fd_safer (int fd) +{ + if (0 <= fd && fd <= 2) + { + int f = fd_safer (dup (fd)); + int e = errno; + close (fd); + errno = e; + fd = f; + } + + return fd; +} + +int +main () +{ + char *argv[3] = { "/bin/sh", CHILD_PROGRAM_FILENAME, NULL }; + int ofd[2]; + sigset_t blocked_signals; + sigset_t fatal_signal_set; + posix_spawn_file_actions_t actions; + bool actions_allocated; + posix_spawnattr_t attrs; + bool attrs_allocated; + int err; + pid_t child; + int fd; + FILE *fp; + int written; + int status; + int exitstatus; + + if (pipe (ofd) < 0 || (ofd[1] = fd_safer (ofd[1])) < 0) + { + perror ("cannot create pipe"); + exit (1); + } + sigprocmask (SIG_SETMASK, NULL, &blocked_signals); + sigemptyset (&fatal_signal_set); + sigaddset (&fatal_signal_set, SIGINT); + sigaddset (&fatal_signal_set, SIGTERM); + sigaddset (&fatal_signal_set, SIGHUP); + sigaddset (&fatal_signal_set, SIGPIPE); + sigprocmask (SIG_BLOCK, &fatal_signal_set, NULL); + actions_allocated = false; + attrs_allocated = false; + if ((err = posix_spawn_file_actions_init (&actions)) != 0 + || (actions_allocated = true, + (err = posix_spawn_file_actions_adddup2 (&actions, ofd[0], STDIN_FILENO)) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[0])) != 0 + || (err = posix_spawn_file_actions_addclose (&actions, ofd[1])) != 0 + || (err = posix_spawnattr_init (&attrs)) != 0 + || (attrs_allocated = true, + (err = posix_spawnattr_setsigmask (&attrs, &blocked_signals)) != 0 + || (err = posix_spawnattr_setflags (&attrs, POSIX_SPAWN_SETSIGMASK)) != 0) + || (err = posix_spawnp (&child, "/bin/sh", &actions, &attrs, argv, environ)) != 0)) + { + if (actions_allocated) + posix_spawn_file_actions_destroy (&actions); + if (attrs_allocated) + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + errno = err; + perror ("subprocess failed"); + exit (1); + } + posix_spawn_file_actions_destroy (&actions); + posix_spawnattr_destroy (&attrs); + sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL); + close (ofd[0]); + fd = ofd[1]; + fp = fdopen (fd, "w"); + if (fp == NULL) + { + fprintf (stderr, "fdopen() failed\n"); + exit (1); + } + written = fwrite ("Halle Potta\n", 1, 12, fp); + if (written < 12) + { + fprintf (stderr, "could not write input\n"); + exit (1); + } + fclose (fp); + status = 0; + while (waitpid (child, &status, 0) != child) + ; + if (!WIFEXITED (status)) + { + fprintf (stderr, "subprocess terminated with unexpected wait status %d\n", status); + exit (1); + } + exitstatus = WEXITSTATUS (status); + if (exitstatus != 0) + { + fprintf (stderr, "subprocess terminated with unexpected exit status %d\n", exitstatus); + exit (1); + } + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn2.in.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn2.in.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-posix_spawn2.in.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-posix_spawn2.in.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,3 @@ +#!/bin/sh +read line +test "$line" = "Halle Potta" diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-quotearg.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-quotearg.h --- gettext-0.17/gettext-tools/gnulib-tests/test-quotearg.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-quotearg.h 2010-06-03 21:36:16.000000000 +0000 @@ -0,0 +1,133 @@ +/* Test of quotearg family of functions. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake , 2008. */ + +struct result_strings { + char const *str1; /* Translation of "". */ + char const *str2; /* Translation of "\0""1\0". */ + size_t len2; /* Length of str2. */ + char const *str3; /* Translation of "simple". */ + char const *str4; /* Translation of " \t\n'\"\033?""?/\\". */ + char const *str5; /* Translation of "a:b". */ + char const *str6; /* Translation of "a\\b". */ + char const *str7a; /* Translation of LQ RQ, in ASCII charset. */ + char const *str7b; /* Translation of LQ RQ, in Latin1 or UTF-8 charset. */ +}; + +struct result_groups { + struct result_strings group1; /* Via quotearg_buffer. */ + struct result_strings group2; /* Via quotearg{,_mem}. */ + struct result_strings group3; /* Via quotearg_colon{,_mem}. */ +}; + +/* These quotes are borrowed from a pt_PT.utf8 translation. */ +# define LQ "\302\253" +# define RQ "\302\273" +# define LQ_ENC "\\302\\253" +# define RQ_ENC "\\302\\273" +# define RQ_ESC "\\\302\273" + +static struct result_strings inputs = { + "", "\0001\0", 3, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", + LQ RQ, NULL +}; + +static void +compare (char const *a, size_t la, char const *b, size_t lb) +{ + ASSERT (la == lb); + ASSERT (memcmp (a, b, la) == 0); + ASSERT (b[lb] == '\0'); +} + +static void +compare_strings (char *(func) (char const *, size_t *), + struct result_strings *results, bool ascii_only) +{ + size_t len; + char *p; + + len = 0; + p = func (inputs.str1, &len); + compare (results->str1, strlen (results->str1), p, len); + + len = inputs.len2; + p = func (inputs.str2, &len); + compare (results->str2, results->len2, p, len); + + len = SIZE_MAX; + p = func (inputs.str3, &len); + compare (results->str3, strlen (results->str3), p, len); + + len = strlen (inputs.str4); + p = func (inputs.str4, &len); + compare (results->str4, strlen (results->str4), p, len); + + len = SIZE_MAX; + p = func (inputs.str5, &len); + compare (results->str5, strlen (results->str5), p, len); + + len = strlen (inputs.str6); + p = func (inputs.str6, &len); + compare (results->str6, strlen (results->str6), p, len); + + len = strlen (inputs.str7a); + p = func (inputs.str7a, &len); + if (ascii_only) + compare (results->str7a, strlen (results->str7a), p, len); + else + compare (results->str7b, strlen (results->str7b), p, len); +} + +static char * +use_quotearg_buffer (const char *str, size_t *len) +{ + static char buf[100]; + size_t size; + memset (buf, 0xa5, 100); + size = quotearg_buffer (buf, 100, str, *len, NULL); + *len = size; + ASSERT ((unsigned char) buf[size + 1] == 0xa5); + return buf; +} + +static char * +use_quotearg (const char *str, size_t *len) +{ + char *p = *len == SIZE_MAX ? quotearg (str) : quotearg_mem (str, *len); + *len = strlen (p); + return p; +} + +static char * +use_quote_double_quotes (const char *str, size_t *len) +{ + char *p = *len == SIZE_MAX ? quotearg_char (str, '"') + : quotearg_char_mem (str, *len, '"'); + *len = strlen (p); + return p; +} + +static char * +use_quotearg_colon (const char *str, size_t *len) +{ + char *p = (*len == SIZE_MAX ? quotearg_colon (str) + : quotearg_colon_mem (str, *len)); + *len = strlen (p); + return p; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-quotearg-simple.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-quotearg-simple.c --- gettext-0.17/gettext-tools/gnulib-tests/test-quotearg-simple.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-quotearg-simple.c 2010-06-03 21:36:16.000000000 +0000 @@ -0,0 +1,294 @@ +/* Test of quotearg family of functions. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake , 2008. */ + +#include + +#include "quotearg.h" + +#include +#include +#include +#include +#include + +#include "progname.h" +#include "macros.h" + +#include "test-quotearg.h" + +static struct result_groups results_g[] = { + /* literal_quoting_style */ + { { "", "\0""1\0", 3, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", + LQ RQ, LQ RQ }, + { "", "1", 1, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", + LQ RQ, LQ RQ }, + { "", "1", 1, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", + LQ RQ, LQ RQ } }, + + /* shell_quoting_style */ + { { "''", "\0""1\0", 3, "simple", "' \t\n'\\''\"\033?""?/\\'", "a:b", + "'a\\b'", LQ RQ, LQ RQ }, + { "''", "1", 1, "simple", "' \t\n'\\''\"\033?""?/\\'", "a:b", + "'a\\b'", LQ RQ, LQ RQ }, + { "''", "1", 1, "simple", "' \t\n'\\''\"\033?""?/\\'", "'a:b'", + "'a\\b'", LQ RQ, LQ RQ } }, + + /* shell_always_quoting_style */ + { { "''", "'\0""1\0'", 5, "'simple'", "' \t\n'\\''\"\033?""?/\\'", "'a:b'", + "'a\\b'", "'" LQ RQ "'", "'" LQ RQ "'" }, + { "''", "'1'", 3, "'simple'", "' \t\n'\\''\"\033?""?/\\'", "'a:b'", + "'a\\b'", "'" LQ RQ "'", "'" LQ RQ "'" }, + { "''", "'1'", 3, "'simple'", "' \t\n'\\''\"\033?""?/\\'", "'a:b'", + "'a\\b'", "'" LQ RQ "'", "'" LQ RQ "'" } }, + + /* c_quoting_style */ + { { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a\\:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" } }, + + /* c_maybe_quoting_style */ + { { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "a:b", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ }, + { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "a:b", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ }, + { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "\"a:b\"", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ } }, + + /* escape_quoting_style */ + { { "", "\\0001\\0", 7, "simple", " \\t\\n'\"\\033?""?/\\\\", "a:b", + "a\\\\b", LQ_ENC RQ_ENC, LQ RQ }, + { "", "\\0001\\0", 7, "simple", " \\t\\n'\"\\033?""?/\\\\", "a:b", + "a\\\\b", LQ_ENC RQ_ENC, LQ RQ }, + { "", "\\0001\\0", 7, "simple", " \\t\\n'\"\\033?""?/\\\\", "a\\:b", + "a\\\\b", LQ_ENC RQ_ENC, LQ RQ } }, + + /* locale_quoting_style */ + { { "`'", "`\\0001\\0'", 9, "`simple'", "` \\t\\n\\'\"\\033?""?/\\\\'", + "`a:b'", "`a\\\\b'", "`" LQ_ENC RQ_ENC "'", "`" LQ RQ "'" }, + { "`'", "`\\0001\\0'", 9, "`simple'", "` \\t\\n\\'\"\\033?""?/\\\\'", + "`a:b'", "`a\\\\b'", "`" LQ_ENC RQ_ENC "'", "`" LQ RQ "'" }, + { "`'", "`\\0001\\0'", 9, "`simple'", "` \\t\\n\\'\"\\033?""?/\\\\'", + "`a\\:b'", "`a\\\\b'", "`" LQ_ENC RQ_ENC "'", "`" LQ RQ "'" } }, + + /* clocale_quoting_style */ + { { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?""?/\\\\\"", "\"a\\:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" } } +}; + +static struct result_groups flag_results[] = { + /* literal_quoting_style and QA_ELIDE_NULL_BYTES */ + { { "", "1", 1, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", LQ RQ, + LQ RQ }, + { "", "1", 1, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", LQ RQ, + LQ RQ }, + { "", "1", 1, "simple", " \t\n'\"\033?""?/\\", "a:b", "a\\b", LQ RQ, + LQ RQ } }, + + /* c_quoting_style and QA_ELIDE_OUTER_QUOTES */ + { { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "a:b", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ }, + { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "a:b", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ }, + { "", "\"\\0001\\0\"", 9, "simple", "\" \\t\\n'\\\"\\033?""?/\\\\\"", + "\"a:b\"", "a\\b", "\"" LQ_ENC RQ_ENC "\"", LQ RQ } }, + + /* c_quoting_style and QA_SPLIT_TRIGRAPHS */ + { { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?\"\"?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?\"\"?/\\\\\"", "\"a:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" }, + { "\"\"", "\"\\0001\\0\"", 9, "\"simple\"", + "\" \\t\\n'\\\"\\033?\"\"?/\\\\\"", "\"a\\:b\"", "\"a\\\\b\"", + "\"" LQ_ENC RQ_ENC "\"", "\"" LQ RQ "\"" } } +}; + +static char const *custom_quotes[][2] = { + { "", "" }, + { "'", "'" }, + { "(", ")" }, + { ":", " " }, + { " ", ":" }, + { "# ", "\n" }, + { "\"'", "'\"" } +}; + +static struct result_groups custom_results[] = { + /* left_quote = right_quote = "" */ + { { "", "\\0001\\0", 7, "simple", + " \\t\\n'\"\\033?""?/\\\\", "a:b", "a\\\\b", + LQ_ENC RQ_ENC, LQ RQ }, + { "", "\\0001\\0", 7, "simple", + " \\t\\n'\"\\033?""?/\\\\", "a:b", "a\\\\b", + LQ_ENC RQ_ENC, LQ RQ }, + { "", "\\0001\\0", 7, "simple", + " \\t\\n'\"\\033?""?/\\\\", "a\\:b", "a\\\\b", + LQ_ENC RQ_ENC, LQ RQ } }, + + /* left_quote = right_quote = "'" */ + { { "''", "'\\0001\\0'", 9, "'simple'", + "' \\t\\n\\'\"\\033?""?/\\\\'", "'a:b'", "'a\\\\b'", + "'" LQ_ENC RQ_ENC "'", "'" LQ RQ "'" }, + { "''", "'\\0001\\0'", 9, "'simple'", + "' \\t\\n\\'\"\\033?""?/\\\\'", "'a:b'", "'a\\\\b'", + "'" LQ_ENC RQ_ENC "'", "'" LQ RQ "'" }, + { "''", "'\\0001\\0'", 9, "'simple'", + "' \\t\\n\\'\"\\033?""?/\\\\'", "'a\\:b'", "'a\\\\b'", + "'" LQ_ENC RQ_ENC "'", "'" LQ RQ "'" } }, + + /* left_quote = "(" and right_quote = ")" */ + { { "()", "(\\0001\\0)", 9, "(simple)", + "( \\t\\n'\"\\033?""?/\\\\)", "(a:b)", "(a\\\\b)", + "(" LQ_ENC RQ_ENC ")", "(" LQ RQ ")" }, + { "()", "(\\0001\\0)", 9, "(simple)", + "( \\t\\n'\"\\033?""?/\\\\)", "(a:b)", "(a\\\\b)", + "(" LQ_ENC RQ_ENC ")", "(" LQ RQ ")" }, + { "()", "(\\0001\\0)", 9, "(simple)", + "( \\t\\n'\"\\033?""?/\\\\)", "(a\\:b)", "(a\\\\b)", + "(" LQ_ENC RQ_ENC ")", "(" LQ RQ ")" } }, + + /* left_quote = ":" and right_quote = " " */ + { { ": ", ":\\0001\\0 ", 9, ":simple ", + ":\\ \\t\\n'\"\\033?""?/\\\\ ", ":a:b ", ":a\\\\b ", + ":" LQ_ENC RQ_ENC " ", ":" LQ RQ " " }, + { ": ", ":\\0001\\0 ", 9, ":simple ", + ":\\ \\t\\n'\"\\033?""?/\\\\ ", ":a:b ", ":a\\\\b ", + ":" LQ_ENC RQ_ENC " ", ":" LQ RQ " " }, + { ": ", ":\\0001\\0 ", 9, ":simple ", + ":\\ \\t\\n'\"\\033?""?/\\\\ ", ":a\\:b ", ":a\\\\b ", + ":" LQ_ENC RQ_ENC " ", ":" LQ RQ " " } }, + + /* left_quote = " " and right_quote = ":" */ + { { " :", " \\0001\\0:", 9, " simple:", + " \\t\\n'\"\\033?""?/\\\\:", " a\\:b:", " a\\\\b:", + " " LQ_ENC RQ_ENC ":", " " LQ RQ ":" }, + { " :", " \\0001\\0:", 9, " simple:", + " \\t\\n'\"\\033?""?/\\\\:", " a\\:b:", " a\\\\b:", + " " LQ_ENC RQ_ENC ":", " " LQ RQ ":" }, + { " :", " \\0001\\0:", 9, " simple:", + " \\t\\n'\"\\033?""?/\\\\:", " a\\:b:", " a\\\\b:", + " " LQ_ENC RQ_ENC ":", " " LQ RQ ":" } }, + + /* left_quote = "# " and right_quote = "\n" */ + { { "# \n", "# \\0001\\0\n", 10, "# simple\n", + "# \\t\\n'\"\\033?""?/\\\\\n", "# a:b\n", "# a\\\\b\n", + "# " LQ_ENC RQ_ENC "\n", "# " LQ RQ "\n" }, + { "# \n", "# \\0001\\0\n", 10, "# simple\n", + "# \\t\\n'\"\\033?""?/\\\\\n", "# a:b\n", "# a\\\\b\n", + "# " LQ_ENC RQ_ENC "\n", "# " LQ RQ "\n" }, + { "# \n", "# \\0001\\0\n", 10, "# simple\n", + "# \\t\\n'\"\\033?""?/\\\\\n", "# a\\:b\n", "# a\\\\b\n", + "# " LQ_ENC RQ_ENC "\n", "# " LQ RQ "\n" } }, + + /* left_quote = "\"'" and right_quote = "'\"" */ + { { "\"''\"", "\"'\\0001\\0'\"", 11, "\"'simple'\"", + "\"' \\t\\n\\'\"\\033?""?/\\\\'\"", "\"'a:b'\"", "\"'a\\\\b'\"", + "\"'" LQ_ENC RQ_ENC "'\"", "\"'" LQ RQ "'\"" }, + { "\"''\"", "\"'\\0001\\0'\"", 11, "\"'simple'\"", + "\"' \\t\\n\\'\"\\033?""?/\\\\'\"", "\"'a:b'\"", "\"'a\\\\b'\"", + "\"'" LQ_ENC RQ_ENC "'\"", "\"'" LQ RQ "'\"" }, + { "\"''\"", "\"'\\0001\\0'\"", 11, "\"'simple'\"", + "\"' \\t\\n\\'\"\\033?""?/\\\\'\"", "\"'a\\:b'\"", "\"'a\\\\b'\"", + "\"'" LQ_ENC RQ_ENC "'\"", "\"'" LQ RQ "'\"" } } +}; + +int +main (int argc _GL_UNUSED, char *argv[]) +{ + int i; + bool ascii_only = MB_CUR_MAX == 1 && !isprint ((unsigned char) LQ[0]); + + set_program_name (argv[0]); + + /* This part of the program is hard-wired to the C locale since it + does not call setlocale. However, according to POSIX, the use of + 8-bit bytes in a character context in the C locale gives + unspecified results (that is, the C locale charset is allowed to + be unibyte with 8-bit bytes rejected [ASCII], unibyte with 8-bit + bytes being characters [often ISO-8859-1], or multibyte [often + UTF-8]). We assume that the latter two cases will be + indistinguishable in this test - that is, the LQ and RQ sequences + will pass through unchanged in either type of charset. So when + testing for quoting of str7, use the ascii_only flag to decide + what to expect for the 8-bit data being quoted. */ + ASSERT (!isprint ('\033')); + for (i = literal_quoting_style; i <= clocale_quoting_style; i++) + { + set_quoting_style (NULL, i); + compare_strings (use_quotearg_buffer, &results_g[i].group1, ascii_only); + compare_strings (use_quotearg, &results_g[i].group2, ascii_only); + if (i == c_quoting_style) + compare_strings (use_quote_double_quotes, &results_g[i].group2, + ascii_only); + compare_strings (use_quotearg_colon, &results_g[i].group3, ascii_only); + } + + set_quoting_style (NULL, literal_quoting_style); + ASSERT (set_quoting_flags (NULL, QA_ELIDE_NULL_BYTES) == 0); + compare_strings (use_quotearg_buffer, &flag_results[0].group1, ascii_only); + compare_strings (use_quotearg, &flag_results[0].group2, ascii_only); + compare_strings (use_quotearg_colon, &flag_results[0].group3, ascii_only); + + set_quoting_style (NULL, c_quoting_style); + ASSERT (set_quoting_flags (NULL, QA_ELIDE_OUTER_QUOTES) + == QA_ELIDE_NULL_BYTES); + compare_strings (use_quotearg_buffer, &flag_results[1].group1, ascii_only); + compare_strings (use_quotearg, &flag_results[1].group2, ascii_only); + compare_strings (use_quote_double_quotes, &flag_results[1].group2, + ascii_only); + compare_strings (use_quotearg_colon, &flag_results[1].group3, ascii_only); + + ASSERT (set_quoting_flags (NULL, QA_SPLIT_TRIGRAPHS) + == QA_ELIDE_OUTER_QUOTES); + compare_strings (use_quotearg_buffer, &flag_results[2].group1, ascii_only); + compare_strings (use_quotearg, &flag_results[2].group2, ascii_only); + compare_strings (use_quote_double_quotes, &flag_results[2].group2, + ascii_only); + compare_strings (use_quotearg_colon, &flag_results[2].group3, ascii_only); + + ASSERT (set_quoting_flags (NULL, 0) == QA_SPLIT_TRIGRAPHS); + + for (i = 0; i < sizeof custom_quotes / sizeof *custom_quotes; ++i) + { + set_custom_quoting (NULL, + custom_quotes[i][0], custom_quotes[i][1]); + compare_strings (use_quotearg_buffer, &custom_results[i].group1, + ascii_only); + compare_strings (use_quotearg, &custom_results[i].group2, ascii_only); + compare_strings (use_quotearg_colon, &custom_results[i].group3, + ascii_only); + } + + quotearg_free (); + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-rawmemchr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rawmemchr.c --- gettext-0.17/gettext-tools/gnulib-tests/test-rawmemchr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rawmemchr.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + * Written by Eric Blake and Bruno Haible + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (rawmemchr, void *, (void const *, int)); + +#include + +#include "macros.h" + +/* Calculating void * + int is not portable, so this wrapper converts + to char * to make the tests easier to write. */ +#define RAWMEMCHR (char *) rawmemchr + +int +main (void) +{ + size_t n = 0x100000; + char *input = malloc (n + 1); + ASSERT (input); + + input[0] = 'a'; + input[1] = 'b'; + memset (input + 2, 'c', 1024); + memset (input + 1026, 'd', n - 1028); + input[n - 2] = 'e'; + input[n - 1] = 'a'; + input[n] = '\0'; + + /* Basic behavior tests. */ + ASSERT (RAWMEMCHR (input, 'a') == input); + ASSERT (RAWMEMCHR (input, 'b') == input + 1); + ASSERT (RAWMEMCHR (input, 'c') == input + 2); + ASSERT (RAWMEMCHR (input, 'd') == input + 1026); + + ASSERT (RAWMEMCHR (input + 1, 'a') == input + n - 1); + ASSERT (RAWMEMCHR (input + 1, 'e') == input + n - 2); + + ASSERT (RAWMEMCHR (input, '\0') == input + n); + + /* Alignment tests. */ + { + int i, j; + for (i = 0; i < 32; i++) + { + for (j = 0; j < 256; j++) + input[i + j] = j; + for (j = 0; j < 256; j++) + { + ASSERT (RAWMEMCHR (input + i, j) == input + i + j); + } + } + } + + free (input); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-read-file.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-read-file.c --- gettext-0.17/gettext-tools/gnulib-tests/test-read-file.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-read-file.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc. + * Written by Simon Josefsson + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + +#include + +#include "read-file.h" + +#include +#include +#include + +#define FILE1 "/etc/resolv.conf" +#define FILE2 "/dev/null" + +int +main (void) +{ + struct stat statbuf; + int err = 0; + + /* We can perform the test only if the file exists and is readable. + Test whether it exists, then assume it is world-readable. */ + if (stat (FILE1, &statbuf) >= 0) + { + size_t len; + char *out = read_file (FILE1, &len); + + if (!out) + { + perror ("Could not read file"); + err = 1; + } + else + { + if (out[len] != '\0') + { + perror ("BAD: out[len] not zero"); + err = 1; + } + + /* Assume FILE1 is a regular file or a symlink to a regular file. */ + if (len != statbuf.st_size) + { + fprintf (stderr, "Read %ld from %s...\n", (unsigned long) len, FILE1); + err = 1; + } + free (out); + } + } + + /* We can perform the test only if the file exists and is readable. + Test whether it exists, then assume it is world-readable. */ + if (stat (FILE2, &statbuf) >= 0) + { + size_t len; + char *out = read_file (FILE2, &len); + + if (!out) + { + perror ("Could not read file"); + err = 1; + } + else + { + if (out[len] != '\0') + { + perror ("BAD: out[len] not zero"); + err = 1; + } + + /* /dev/null should always be empty. Ignore statbuf.st_size, since it + is not a regular file. */ + if (len != 0) + { + fprintf (stderr, "Read %ld from %s...\n", (unsigned long) len, FILE2); + err = 1; + } + free (out); + } + } + + return err; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-readlink.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-readlink.c --- gettext-0.17/gettext-tools/gnulib-tests/test-readlink.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-readlink.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,48 @@ +/* Tests of readlink. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (readlink, ssize_t, (char const *, char *, size_t)); + +#include +#include +#include +#include +#include +#include +#include + +#include "ignore-value.h" +#include "macros.h" + +#define BASE "test-readlink.t" + +#include "test-readlink.h" + +int +main (void) +{ + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + + return test_readlink (readlink, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-readlink.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-readlink.h --- gettext-0.17/gettext-tools/gnulib-tests/test-readlink.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-readlink.h 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,119 @@ +/* Tests of readlink. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +/* This file is designed to test both readlink(a,b,c) and + readlinkat(AT_FDCWD,a,b,c). FUNC is the function to test. Assumes + that BASE and ASSERT are already defined, and that appropriate + headers are already included. If PRINT, warn before skipping + symlink tests with status 77. */ + +static int +test_readlink (ssize_t (*func) (char const *, char *, size_t), bool print) +{ + char buf[80]; + + /* Sanity checks of failures. Mingw lacks symlink, but readlink can + still distinguish between various errors. */ + memset (buf, 0xff, sizeof buf); + errno = 0; + ASSERT (func ("no_such", buf, sizeof buf) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("no_such/", buf, sizeof buf) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("", buf, sizeof buf) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func (".", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (func ("./", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL); + ASSERT (close (creat (BASE "file", 0600)) == 0); + errno = 0; + ASSERT (func (BASE "file", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (func (BASE "file/", buf, sizeof buf) == -1); + ASSERT (errno == ENOTDIR); + + /* Now test actual symlinks. */ + if (symlink (BASE "dir", BASE "link")) + { + ASSERT (unlink (BASE "file") == 0); + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (mkdir (BASE "dir", 0700) == 0); + errno = 0; + ASSERT (func (BASE "link/", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL); + ASSERT (symlink (BASE "link", BASE "link2") == 0); + errno = 0; + ASSERT (func (BASE "link2/", buf, sizeof buf) == -1); + ASSERT (errno == EINVAL); + ASSERT (unlink (BASE "link2") == 0); + ASSERT (symlink (BASE "file", BASE "link2") == 0); + errno = 0; + ASSERT (func (BASE "link2/", buf, sizeof buf) == -1); + ASSERT (errno == ENOTDIR); + ASSERT (unlink (BASE "file") == 0); + ASSERT (unlink (BASE "link2") == 0); + { + /* Up till now, no readlink has been successful, so buf should be + unchanged. */ + int i; + for (i = 0; i < sizeof buf; i++) + ASSERT (buf[i] == (char) 0xff); + } + { + size_t len = strlen (BASE "dir"); + /* When passing too small of a buffer, expect the truncated + length, or an ERANGE failure. However, a size of 0 is not + portable enough to test. */ + ssize_t result; + errno = 0; + result = readlink (BASE "link", buf, 1); + if (result == -1) + { + ASSERT (errno == ERANGE); + ASSERT (buf[0] == (char) 0xff); + } + else + { + ASSERT (result == 1); + ASSERT (buf[0] == BASE[0]); + } + ASSERT (buf[1] == (char) 0xff); + ASSERT (func (BASE "link", buf, len) == len); + ASSERT (strncmp (buf, BASE "dir", len) == 0); + ASSERT (buf[len] == (char) 0xff); + ASSERT (func (BASE "link", buf, sizeof buf) == len); + ASSERT (strncmp (buf, BASE "dir", len) == 0); + /* POSIX says rest of buf is unspecified; but in practice, it is + either left alone, or NUL-terminated. */ + ASSERT (buf[len] == '\0' || buf[len] == (char) 0xff); + } + ASSERT (rmdir (BASE "dir") == 0); + ASSERT (unlink (BASE "link") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-rmdir.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rmdir.c --- gettext-0.17/gettext-tools/gnulib-tests/test-rmdir.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rmdir.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,47 @@ +/* Tests of rmdir. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (rmdir, int, (char const *)); + +#include +#include +#include +#include +#include +#include + +#include "ignore-value.h" +#include "macros.h" + +#define BASE "test-rmdir.t" + +#include "test-rmdir.h" + +int +main (void) +{ + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + + return test_rmdir_func (rmdir, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-rmdir.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rmdir.h --- gettext-0.17/gettext-tools/gnulib-tests/test-rmdir.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-rmdir.h 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,101 @@ +/* Tests of rmdir. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +/* This file is designed to test both rmdir(n) and + unlinkat(AT_FDCWD,n,AT_REMOVEDIR). FUNC is the function to test. + Assumes that BASE and ASSERT are already defined, and that + appropriate headers are already included. If PRINT, then warn + before returning status 77 when symlinks are unsupported. */ + +static int +test_rmdir_func (int (*func) (char const *name), bool print) +{ + /* Setup. */ + ASSERT (mkdir (BASE "dir", 0700) == 0); + ASSERT (close (creat (BASE "dir/file", 0600)) == 0); + + /* Basic error conditions. */ + errno = 0; + ASSERT (func ("") == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func (BASE "nosuch") == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func (BASE "nosuch/") == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func (".") == -1); + ASSERT (errno == EINVAL || errno == EBUSY); + /* Resulting errno after ".." or "/" is too varied to test; it is + reasonable to see any of EINVAL, EBUSY, EEXIST, ENOTEMPTY, + EACCES, EPERM. */ + ASSERT (func ("..") == -1); + ASSERT (func ("/") == -1); + ASSERT (func ("///") == -1); + errno = 0; + ASSERT (func (BASE "dir/file/") == -1); + ASSERT (errno == ENOTDIR); + + /* Non-empty directory. */ + errno = 0; + ASSERT (func (BASE "dir") == -1); + ASSERT (errno == EEXIST || errno == ENOTEMPTY); + + /* Non-directory. */ + errno = 0; + ASSERT (func (BASE "dir/file") == -1); + ASSERT (errno == ENOTDIR); + + /* Empty directory. */ + ASSERT (unlink (BASE "dir/file") == 0); + errno = 0; + ASSERT (func (BASE "dir/.//") == -1); + ASSERT (errno == EINVAL || errno == EBUSY); + ASSERT (func (BASE "dir") == 0); + + /* Test symlink behavior. Specifying trailing slash should remove + referent directory (POSIX), or cause ENOTDIR failure (Linux), but + not touch symlink. We prefer the Linux behavior for its + intuitiveness (especially compared to rmdir("symlink-to-file/")), + but not enough to penalize POSIX systems with an rpl_rmdir. */ + if (symlink (BASE "dir", BASE "link") != 0) + { + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (mkdir (BASE "dir", 0700) == 0); + errno = 0; + if (func (BASE "link/") == 0) + { + struct stat st; + errno = 0; + ASSERT (stat (BASE "link", &st) == -1); + ASSERT (errno == ENOENT); + } + else + { + ASSERT (errno == ENOTDIR); + ASSERT (func (BASE "dir") == 0); + } + ASSERT (unlink (BASE "link") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sameacls.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sameacls.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sameacls.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sameacls.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,527 @@ +/* Test whether two files have the same ACLs. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include +#include +#include +#include +#include + +#if HAVE_ACL_GET_FILE || HAVE_ACL || HAVE_ACLX_GET || HAVE_STATACL +# include +# include +#endif + +#include "progname.h" +#include "read-file.h" +#include "xalloc.h" +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + const char *file1; + const char *file2; + + set_program_name (argv[0]); + + ASSERT (argc == 3); + + file1 = argv[1]; + file2 = argv[2]; + + /* Compare the contents of the two files. */ + { + size_t size1; + char *contents1; + size_t size2; + char *contents2; + + contents1 = read_file (file1, &size1); + if (contents1 == NULL) + { + fprintf (stderr, "error reading file %s: errno = %d\n", file1, errno); + fflush (stderr); + abort (); + } + contents2 = read_file (file2, &size2); + if (contents2 == NULL) + { + fprintf (stderr, "error reading file %s: errno = %d\n", file2, errno); + fflush (stderr); + abort (); + } + + if (size2 != size1) + { + fprintf (stderr, "files %s and %s have different sizes\n", + file1, file2); + fflush (stderr); + abort (); + } + if (memcmp (contents1, contents2, size1) != 0) + { + fprintf (stderr, "files %s and %s have different contents\n", + file1, file2); + fflush (stderr); + abort (); + } + } + + /* Compare the access permissions of the two files, including ACLs. */ + { + struct stat statbuf1; + struct stat statbuf2; + + if (stat (file1, &statbuf1) < 0) + { + fprintf (stderr, "error accessing file %s: errno = %d\n", file1, errno); + fflush (stderr); + abort (); + } + if (stat (file2, &statbuf2) < 0) + { + fprintf (stderr, "error accessing file %s: errno = %d\n", file2, errno); + fflush (stderr); + abort (); + } + if (statbuf1.st_mode != statbuf2.st_mode) + { + fprintf (stderr, "files %s and %s have different access modes: %03o and %03o\n", + file1, file2, + (unsigned int) statbuf1.st_mode, (unsigned int) statbuf2.st_mode); + return 1; + } + } + { +#if HAVE_ACL_GET_FILE /* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ + static const int types[] = + { + ACL_TYPE_ACCESS +# if HAVE_ACL_TYPE_EXTENDED /* MacOS X */ + , ACL_TYPE_EXTENDED +# endif + }; + int t; + + for (t = 0; t < sizeof (types) / sizeof (types[0]); t++) + { + int type = types[t]; + acl_t acl1; + char *text1; + int errno1; + acl_t acl2; + char *text2; + int errno2; + + acl1 = acl_get_file (file1, type); + if (acl1 == (acl_t)NULL) + { + text1 = NULL; + errno1 = errno; + } + else + { + text1 = acl_to_text (acl1, NULL); + if (text1 == NULL) + errno1 = errno; + else + errno1 = 0; + } + acl2 = acl_get_file (file2, type); + if (acl2 == (acl_t)NULL) + { + text2 = NULL; + errno2 = errno; + } + else + { + text2 = acl_to_text (acl2, NULL); + if (text2 == NULL) + errno2 = errno; + else + errno2 = 0; + } + + if (acl1 != (acl_t)NULL) + { + if (acl2 != (acl_t)NULL) + { + if (text1 != NULL) + { + if (text2 != NULL) + { + if (strcmp (text1, text2) != 0) + { + fprintf (stderr, "files %s and %s have different ACLs:\n%s\n%s\n", + file1, file2, text1, text2); + return 1; + } + } + else + { + fprintf (stderr, "file %s has a valid ACL, but file %s has an invalid ACL\n", + file1, file2); + return 1; + } + } + else + { + if (text2 != NULL) + { + fprintf (stderr, "file %s has an invalid ACL, but file %s has a valid ACL\n", + file1, file2); + return 1; + } + else + { + if (errno1 != errno2) + { + fprintf (stderr, "files %s and %s have differently invalid ACLs, errno = %d vs. %d\n", + file1, file2, errno1, errno2); + return 1; + } + } + } + } + else + { + fprintf (stderr, "file %s has an ACL, but file %s has no ACL\n", + file1, file2); + return 1; + } + } + else + { + if (acl2 != (acl_t)NULL) + { + fprintf (stderr, "file %s has no ACL, but file %s has an ACL\n", + file1, file2); + return 1; + } + } + } +#elif HAVE_ACL && defined GETACL /* Solaris, Cygwin, not HP-UX */ + int count1; + int count2; + + count1 = acl (file1, GETACLCNT, 0, NULL); + count2 = acl (file2, GETACLCNT, 0, NULL); + + if (count1 < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (count2 < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + if (count1 != count2) + { + fprintf (stderr, "files %s and %s have different number of ACLs: %d and %d\n", + file1, file2, count1, count2); + return 1; + } + else + { + aclent_t *entries1 = XNMALLOC (count1, aclent_t); + aclent_t *entries2 = XNMALLOC (count2, aclent_t); + int i; + + if (acl (file1, GETACL, count1, entries1) < count1) + { + fprintf (stderr, "error retrieving the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (acl (file2, GETACL, count2, entries2) < count1) + { + fprintf (stderr, "error retrieving the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + for (i = 0; i < count1; i++) + { + if (entries1[i].a_type != entries2[i].a_type) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different types %d and %d\n", + file1, file2, i, entries1[i].a_type, entries2[i].a_type); + return 1; + } + if (entries1[i].a_id != entries2[i].a_id) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different ids %d and %d\n", + file1, file2, i, (int)entries1[i].a_id, (int)entries2[i].a_id); + return 1; + } + if (entries1[i].a_perm != entries2[i].a_perm) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different permissions %03o and %03o\n", + file1, file2, i, (unsigned int) entries1[i].a_perm, (unsigned int) entries2[i].a_perm); + return 1; + } + } + } +# ifdef ACE_GETACL + count1 = acl (file1, ACE_GETACLCNT, 0, NULL); + if (count1 < 0 && errno == EINVAL) + count1 = 0; + count2 = acl (file2, ACE_GETACLCNT, 0, NULL); + if (count2 < 0 && errno == EINVAL) + count2 = 0; + if (count1 < 0) + { + fprintf (stderr, "error accessing the ACE-ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (count2 < 0) + { + fprintf (stderr, "error accessing the ACE-ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + if (count1 != count2) + { + fprintf (stderr, "files %s and %s have different number of ACE-ACLs: %d and %d\n", + file1, file2, count1, count2); + return 1; + } + else if (count1 > 0) + { + ace_t *entries1 = XNMALLOC (count1, ace_t); + ace_t *entries2 = XNMALLOC (count2, ace_t); + int i; + + if (acl (file1, ACE_GETACL, count1, entries1) < count1) + { + fprintf (stderr, "error retrieving the ACE-ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (acl (file2, ACE_GETACL, count2, entries2) < count1) + { + fprintf (stderr, "error retrieving the ACE-ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + for (i = 0; i < count1; i++) + { + if (entries1[i].a_type != entries2[i].a_type) + { + fprintf (stderr, "files %s and %s: different ACE-ACL entry #%d: different types %d and %d\n", + file1, file2, i, entries1[i].a_type, entries2[i].a_type); + return 1; + } + if (entries1[i].a_who != entries2[i].a_who) + { + fprintf (stderr, "files %s and %s: different ACE-ACL entry #%d: different ids %d and %d\n", + file1, file2, i, (int)entries1[i].a_who, (int)entries2[i].a_who); + return 1; + } + if (entries1[i].a_access_mask != entries2[i].a_access_mask) + { + fprintf (stderr, "files %s and %s: different ACE-ACL entry #%d: different access masks %03o and %03o\n", + file1, file2, i, (unsigned int) entries1[i].a_access_mask, (unsigned int) entries2[i].a_access_mask); + return 1; + } + if (entries1[i].a_flags != entries2[i].a_flags) + { + fprintf (stderr, "files %s and %s: different ACE-ACL entry #%d: different flags 0x%x and 0x%x\n", + file1, file2, i, (unsigned int) entries1[i].a_flags, (unsigned int) entries2[i].a_flags); + return 1; + } + } + } +# endif +#elif HAVE_GETACL /* HP-UX */ + int count1; + int count2; + + count1 = getacl (file1, 0, NULL); + if (count1 < 0 && (errno == ENOSYS || errno == EOPNOTSUPP)) + count1 = 0; + count2 = getacl (file2, 0, NULL); + if (count2 < 0 && (errno == ENOSYS || errno == EOPNOTSUPP)) + count2 = 0; + + if (count1 < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (count2 < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + if (count1 != count2) + { + fprintf (stderr, "files %s and %s have different number of ACLs: %d and %d\n", + file1, file2, count1, count2); + return 1; + } + else if (count1 > 0) + { + struct acl_entry *entries1 = XNMALLOC (count1, struct acl_entry); + struct acl_entry *entries2 = XNMALLOC (count2, struct acl_entry); + int i; + + if (getacl (file1, count1, entries1) < count1) + { + fprintf (stderr, "error retrieving the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (getacl (file2, count2, entries2) < count1) + { + fprintf (stderr, "error retrieving the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + for (i = 0; i < count1; i++) + { + if (entries1[i].uid != entries2[i].uid) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different uids %d and %d\n", + file1, file2, i, (int)entries1[i].uid, (int)entries2[i].uid); + return 1; + } + if (entries1[i].gid != entries2[i].gid) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different gids %d and %d\n", + file1, file2, i, (int)entries1[i].gid, (int)entries2[i].gid); + return 1; + } + if (entries1[i].mode != entries2[i].mode) + { + fprintf (stderr, "files %s and %s: different ACL entry #%d: different permissions %03o and %03o\n", + file1, file2, i, (unsigned int) entries1[i].mode, (unsigned int) entries2[i].mode); + return 1; + } + } + } +#elif HAVE_ACLX_GET /* AIX */ + acl_type_t type1; + char acl1[1000]; + size_t aclsize1 = sizeof (acl1); + mode_t mode1; + char text1[1000]; + acl_type_t type2; + char acl2[1000]; + size_t aclsize2 = sizeof (acl2); + mode_t mode2; + char text2[1000]; + + /* The docs say that type1 being 0 is equivalent to ACL_ANY, but it is not + true, in AIX 5.3. */ + type1.u64 = ACL_ANY; + if (aclx_get (file1, 0, &type1, acl1, &aclsize1, &mode1) < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (aclx_printStr (text1, sizeof (text1), acl1, aclsize1, type1, file1, 0) < 0) + { + fprintf (stderr, "cannot convert the ACLs of file %s to text\n", file1); + fflush (stderr); + abort (); + } + + /* The docs say that type2 being 0 is equivalent to ACL_ANY, but it is not + true, in AIX 5.3. */ + type2.u64 = ACL_ANY; + if (aclx_get (file2, 0, &type2, acl2, &aclsize2, &mode2) < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + if (aclx_printStr (text2, sizeof (text2), acl2, aclsize2, type2, file2, 0) < 0) + { + fprintf (stderr, "cannot convert the ACLs of file %s to text\n", file2); + fflush (stderr); + abort (); + } + + if (strcmp (text1, text2) != 0) + { + fprintf (stderr, "files %s and %s have different ACLs:\n%s\n%s\n", + file1, file2, text1, text2); + return 1; + } +#elif HAVE_STATACL /* older AIX */ + union { struct acl a; char room[4096]; } acl1; + union { struct acl a; char room[4096]; } acl2; + unsigned int i; + + if (statacl (file1, STX_NORMAL, &acl1.a, sizeof (acl1)) < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file1); + fflush (stderr); + abort (); + } + if (statacl (file2, STX_NORMAL, &acl2.a, sizeof (acl2)) < 0) + { + fprintf (stderr, "error accessing the ACLs of file %s\n", file2); + fflush (stderr); + abort (); + } + + if (acl1.a.acl_len != acl2.a.acl_len) + { + fprintf (stderr, "files %s and %s have different ACL lengths: %u and %u\n", + file1, file2, acl1.a.acl_len, acl2.a.acl_len); + return 1; + } + if (acl1.a.acl_mode != acl2.a.acl_mode) + { + fprintf (stderr, "files %s and %s have different ACL modes: %03o and %03o\n", + file1, file2, acl1.a.acl_mode, acl2.a.acl_mode); + return 1; + } + if (acl1.a.u_access != acl2.a.u_access + || acl1.a.g_access != acl2.a.g_access + || acl1.a.o_access != acl2.a.o_access) + { + fprintf (stderr, "files %s and %s have different ACL access masks: %03o %03o %03o and %03o %03o %03o\n", + file1, file2, + acl1.a.u_access, acl1.a.g_access, acl1.a.o_access, + acl2.a.u_access, acl2.a.g_access, acl2.a.o_access); + return 1; + } + if (memcmp (acl1.a.acl_ext, acl2.a.acl_ext, acl1.a.acl_len) != 0) + { + fprintf (stderr, "files %s and %s have different ACL entries\n", + file1, file2); + return 1; + } +#endif + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sched.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sched.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sched.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sched.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,38 @@ +/* Test of substitute. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include + +/* Check that 'struct sched_param' is defined. */ +static struct sched_param a; + +/* Check that the SCHED_* macros are defined and compile-time constants. */ +int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER }; + +static int f1; + +int +main () +{ + /* Check fields of 'struct sched_param'. */ + f1 = a.sched_priority; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-setenv.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-setenv.c --- gettext-0.17/gettext-tools/gnulib-tests/test-setenv.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-setenv.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,56 @@ +/* Tests of setenv. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (setenv, int, (char const *, char const *, int)); + +#include +#include +#include + +#include "macros.h" + +int +main (void) +{ + /* Test overwriting. */ + ASSERT (setenv ("a", "==", -1) == 0); + ASSERT (setenv ("a", "2", 0) == 0); + ASSERT (strcmp (getenv ("a"), "==") == 0); + + /* Required to fail with EINVAL. */ + errno = 0; + ASSERT (setenv ("", "", 1) == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (setenv ("a=b", "", 0) == -1); + ASSERT (errno == EINVAL); +#if 0 + /* glibc and gnulib's implementation guarantee this, but POSIX no + longer requires it: http://austingroupbugs.net/view.php?id=185 */ + errno = 0; + ASSERT (setenv (NULL, "", 0) == -1); + ASSERT (errno == EINVAL); +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-set-mode-acl.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-set-mode-acl.c --- gettext-0.17/gettext-tools/gnulib-tests/test-set-mode-acl.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-set-mode-acl.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,44 @@ +/* Test of setting an ACL equivalent to a mode. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "acl.h" + +#include + +#include "progname.h" +#include "macros.h" + +int +main (int argc, char *argv[]) +{ + const char *file; + int mode; + + set_program_name (argv[0]); + + ASSERT (argc == 3); + + file = argv[1]; + mode = strtol (argv[2], NULL, 8); + + set_acl (file, -1, mode); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-set-mode-acl.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-set-mode-acl.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-set-mode-acl.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-set-mode-acl.sh 2010-05-09 18:56:36.000000000 +0000 @@ -0,0 +1,209 @@ +#!/bin/sh + +# Show all commands when run with environment variable VERBOSE=yes. +test -z "$VERBOSE" || set -x + +test "$USE_ACL" = 0 && + { + echo "Skipping test: insufficient ACL support" + exit 77 + } + +# func_tmpdir +# creates a temporary directory. +# Sets variable +# - tmp pathname of freshly created temporary directory +func_tmpdir () +{ + # Use the environment variable TMPDIR, falling back to /tmp. This allows + # users to specify a different temporary directory, for example, if their + # /tmp is filled up or too small. + : ${TMPDIR=/tmp} + { + # Use the mktemp program if available. If not available, hide the error + # message. + tmp=`(umask 077 && mktemp -d "$TMPDIR/glXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" + } || + { + # Use a simple mkdir command. It is guaranteed to fail if the directory + # already exists. $RANDOM is bash specific and expands to empty in shells + # other than bash, ksh and zsh. Its use does not increase security; + # rather, it minimizes the probability of failure in a very cluttered /tmp + # directory. + tmp=$TMPDIR/gl$$-$RANDOM + (umask 077 && mkdir "$tmp") + } || + { + echo "$0: cannot create a temporary directory in $TMPDIR" >&2 + exit 1 + } +} + +func_tmpdir +builddir=`pwd` +cd "$builddir" || + { + echo "$0: cannot determine build directory (unreadable parent dir?)" >&2 + exit 1 + } +# Switch to a temporary directory, to increase the likelihood that ACLs are +# supported on the current file system. (/tmp is usually locally mounted, +# whereas the build dir is sometimes NFS-mounted.) +( cd "$tmp" + + # Prepare tmpfile0. + rm -f tmpfile[0-9] + echo "Simple contents" > tmpfile0 + chmod 600 tmpfile0 + + # Classification of the platform according to the programs available for + # manipulating ACLs. + # Possible values are: + # linux, cygwin, freebsd, solaris, hpux, osf1, aix, macosx, irix, none. + # TODO: Support also native Win32 platforms (mingw). + acl_flavor=none + if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then + # Platforms with the getfacl and setfacl programs. + # Linux, FreeBSD, Solaris, Cygwin. + if (setfacl --help >/dev/null) 2>/dev/null; then + # Linux, Cygwin. + if (LC_ALL=C setfacl --help | grep ' --set-file' >/dev/null) 2>/dev/null; then + # Linux. + acl_flavor=linux + else + acl_flavor=cygwin + fi + else + # FreeBSD, Solaris. + if (LC_ALL=C setfacl 2>&1 | grep '\-x entries' >/dev/null) 2>/dev/null; then + # FreeBSD. + acl_flavor=freebsd + else + # Solaris. + acl_flavor=solaris + fi + fi + else + if (lsacl / >/dev/null) 2>/dev/null; then + # Platforms with the lsacl and chacl programs. + # HP-UX, sometimes also IRIX. + acl_flavor=hpux + else + if (getacl tmpfile0 >/dev/null) 2>/dev/null; then + # Tru64. + acl_flavor=osf1 + else + if (aclget tmpfile0 >/dev/null) 2>/dev/null; then + # AIX. + acl_flavor=aix + else + if (fsaclctl -v >/dev/null) 2>/dev/null; then + # MacOS X. + acl_flavor=macosx + else + if test -f /sbin/chacl; then + # IRIX. + acl_flavor=irix + fi + fi + fi + fi + fi + fi + + if test $acl_flavor != none; then + # A POSIX compliant 'id' program. + if test -f /usr/xpg4/bin/id; then + ID=/usr/xpg4/bin/id + else + ID=id + fi + # Use a user and group id different from the current one, to avoid + # redundant/ambiguous ACLs. + myuid=`$ID -u` + mygid=`$ID -g` + auid=1 + if test "$auid" = "$myuid"; then auid=2; fi + agid=1 + if test "$agid" = "$mygid"; then agid=2; fi + fi + + for mode in 700 400 200 100 644 650 605 011 4700 2070; do + rm -f tmpfile0 tmpfile1 tmpfile2 + + # Prepare a file with no ACL. + echo "Anything" > tmpfile0 + # If a mode is not supported (e.g. 2070 on FreeBSD), we skip testing it. + if chmod $mode tmpfile0 2>/dev/null; then + modestring0=`ls -l tmpfile0 | dd ibs=1 count=10 2>/dev/null` + + # Prepare a file with no ACL. + echo "Some contents" > tmpfile1 + chmod 600 tmpfile1 + + # Try to set the ACL to only the given mode. + "$builddir"/test-set-mode-acl${EXEEXT} tmpfile1 $mode + # Verify that tmpfile1 has no ACL and has the desired mode. + modestring=`ls -l tmpfile1 | dd ibs=1 count=10 2>/dev/null` + if test "x$modestring" != "x$modestring0"; then + echo "mode = $mode: tmpfile1 has wrong mode: $modestring" 1>&2 + exit 1 + fi + if test `"$builddir"/test-file-has-acl${EXEEXT} tmpfile1` != no; then + echo "mode = $mode: tmpfile1 got an ACL" 1>&2 + exit 1 + fi + + if test $acl_flavor != none; then + + # Prepare a file with an ACL. + echo "Special contents" > tmpfile2 + chmod 600 tmpfile2 + # Set an ACL for a user (or group). + case $acl_flavor in + linux | freebsd | solaris) + setfacl -m user:$auid:1 tmpfile0 + ;; + cygwin) + setfacl -m group:0:1 tmpfile0 + ;; + hpux) + orig=`lsacl tmpfile0 | sed -e 's/ tmpfile0$//'` + chacl -r "${orig}($auid.%,--x)" tmpfile0 + ;; + osf1) + setacl -u user:$auid:1 tmpfile0 + ;; + aix) + { aclget tmpfile0 | sed -e 's/disabled$/enabled/'; echo " permit --x u:$auid"; } | aclput tmpfile0 + ;; + macosx) + /bin/chmod +a "user:daemon allow execute" tmpfile0 + ;; + irix) + /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0 + ;; + esac + + # Try to set the ACL to only the given mode. + "$builddir"/test-set-mode-acl${EXEEXT} tmpfile2 $mode + # Verify that tmpfile2 has no ACL and has the desired mode. + modestring=`ls -l tmpfile2 | dd ibs=1 count=10 2>/dev/null` + if test "x$modestring" != "x$modestring0"; then + echo "mode = $mode: tmpfile2 has wrong mode: $modestring" 1>&2 + exit 1 + fi + if test `"$builddir"/test-file-has-acl${EXEEXT} tmpfile2` != no; then + echo "mode = $mode: tmpfile2 still has an ACL" 1>&2 + exit 1 + fi + fi + fi + done + + rm -f tmpfile[0-9] +) || exit 1 + +rm -rf "$tmp" +exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sigaction.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigaction.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sigaction.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigaction.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,116 @@ +/* Test of sigaction() function. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2008. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (sigaction, int, (int, struct sigaction const *, + struct sigaction *)); + +#include + +#include "macros.h" + +#ifndef SA_NOCLDSTOP +# define SA_NOCLDSTOP 0 +#endif +#ifndef SA_ONSTACK +# define SA_ONSTACK 0 +#endif +#ifndef SA_SIGINFO +# define SA_SIGINFO 0 +#endif +#ifndef SA_NOCLDWAIT +# define SA_NOCLDWAIT 0 +#endif + +/* Define a mask of flags required by POSIX. Some implementations + provide other flags as extensions, such as SA_RESTORER, that we + must ignore in this test. */ +#define MASK_SA_FLAGS (SA_NOCLDSTOP | SA_ONSTACK | SA_RESETHAND | SA_RESTART \ + | SA_SIGINFO | SA_NOCLDWAIT | SA_NODEFER) + +/* This test is unsafe in the presence of an asynchronous SIGABRT, + because we install a signal-handler that is intentionally not + async-safe. Hopefully, this does not lead to too many reports of + false failures, since people don't generally use 'kill -s SIGABRT' + to end a runaway program. */ + +static void +handler (int sig) +{ + static int entry_count; + struct sigaction sa; + ASSERT (sig == SIGABRT); + ASSERT (sigaction (SIGABRT, NULL, &sa) == 0); + ASSERT ((sa.sa_flags & SA_SIGINFO) == 0); + switch (entry_count++) + { + case 0: + ASSERT ((sa.sa_flags & SA_RESETHAND) == 0); + ASSERT (sa.sa_handler == handler); + break; + case 1: + /* This assertion fails on glibc-2.3.6 systems with LinuxThreads, + when this program is linked with -lpthread, due to the sigaction() + override in libpthread.so. */ +#if !defined __GLIBC__ + ASSERT (sa.sa_handler == SIG_DFL); +#endif + break; + default: + ASSERT (0); + } +} + +int +main (void) +{ + struct sigaction sa; + struct sigaction old_sa; + sa.sa_handler = handler; + + sa.sa_flags = 0; + ASSERT (sigemptyset (&sa.sa_mask) == 0); + ASSERT (sigaction (SIGABRT, &sa, NULL) == 0); + ASSERT (raise (SIGABRT) == 0); + + sa.sa_flags = SA_RESETHAND | SA_NODEFER; + ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0); + ASSERT ((old_sa.sa_flags & MASK_SA_FLAGS) == 0); + ASSERT (old_sa.sa_handler == handler); + ASSERT (raise (SIGABRT) == 0); + + sa.sa_handler = SIG_DFL; + ASSERT (sigaction (SIGABRT, &sa, &old_sa) == 0); + ASSERT ((old_sa.sa_flags & SA_SIGINFO) == 0); +#if !defined __GLIBC__ /* see above */ + ASSERT (old_sa.sa_handler == SIG_DFL); +#endif + + sa.sa_handler = SIG_IGN; + ASSERT (sigaction (SIGABRT, &sa, NULL) == 0); + ASSERT (raise (SIGABRT) == 0); + ASSERT (sigaction (SIGABRT, NULL, &old_sa) == 0); + ASSERT (old_sa.sa_handler == SIG_IGN); + ASSERT (raise (SIGABRT) == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-signal.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-signal.c --- gettext-0.17/gettext-tools/gnulib-tests/test-signal.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-signal.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,125 @@ +/* Test of substitute. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +/* Check for required types. */ +struct +{ + size_t a; + uid_t b; + volatile sig_atomic_t c; + sigset_t d; + pid_t e; +#if 0 + /* Not guaranteed by gnulib. */ + pthread_t f; + struct timespec g; +#endif +} s; + +int +main (void) +{ + switch (0) + { + /* The following are guaranteed by C. */ + case 0: + case SIGABRT: + case SIGFPE: + case SIGILL: + case SIGINT: + case SIGSEGV: + case SIGTERM: + /* The following is guaranteed by gnulib. */ +#if GNULIB_SIGPIPE || defined SIGPIPE + case SIGPIPE: +#endif + /* Ensure no conflict with other standardized names. */ +#ifdef SIGALRM + case SIGALRM: +#endif +#ifdef SIGBUS + case SIGBUS: +#endif +#ifdef SIGCHLD + case SIGCHLD: +#endif +#ifdef SIGCONT + case SIGCONT: +#endif +#ifdef SIGHUP + case SIGHUP: +#endif +#ifdef SIGKILL + case SIGKILL: +#endif +#ifdef SIGQUIT + case SIGQUIT: +#endif +#ifdef SIGSTOP + case SIGSTOP: +#endif +#ifdef SIGTSTP + case SIGTSTP: +#endif +#ifdef SIGTTIN + case SIGTTIN: +#endif +#ifdef SIGTTOU + case SIGTTOU: +#endif +#ifdef SIGUSR1 + case SIGUSR1: +#endif +#ifdef SIGUSR2 + case SIGUSR2: +#endif +#ifdef SIGSYS + case SIGSYS: +#endif +#ifdef SIGTRAP + case SIGTRAP: +#endif +#ifdef SIGURG + case SIGURG: +#endif +#ifdef SIGVTALRM + case SIGVTALRM: +#endif +#ifdef SIGXCPU + case SIGXCPU: +#endif +#ifdef SIGXFSZ + case SIGXFSZ: +#endif + /* SIGRTMIN and SIGRTMAX need not be compile-time constants. */ +#if 0 +# ifdef SIGRTMIN + case SIGRTMIN: +# endif +# ifdef SIGRTMAX + case SIGRTMAX: +# endif +#endif + ; + } + return s.a + s.b + s.c + s.e; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sigpipe.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigpipe.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sigpipe.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigpipe.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,69 @@ +/* Test of SIGPIPE handling. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +#include + +/* Check that SIGPIPE is defined. */ +int s = SIGPIPE; + +#include +#include +#include +#include + +static void +handler (int sig) +{ + exit (0); +} + +int +main (int argc, char **argv) +{ + char mode = argv[1][0]; + + switch (mode) + { + case 'A': signal (SIGPIPE, SIG_DFL); break; + case 'B': signal (SIGPIPE, SIG_IGN); break; + case 'C': signal (SIGPIPE, handler); break; + } + + /* Produce infinite output. Since it is piped into "head -1", the writes + must ultimately fail. */ + for (;;) + { + char c[2] = { 'y', '\n' }; + int ret = write (1, c, sizeof (c)); + if (ret <= 0) + { + switch (mode) + { + case 'B': /* The write() call should have failed with EPIPE. */ + if (ret < 0 && errno == EPIPE) + exit (0); + /*FALLTHROUGH*/ + case 'A': /* The process should silently die. */ + case 'C': /* The handler should have been called. */ + fprintf (stderr, "write() returned %d with error %d.\n", ret, errno); + exit (1); + } + } + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sigpipe.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigpipe.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-sigpipe.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sigpipe.sh 2009-07-19 20:29:12.000000000 +0000 @@ -0,0 +1,31 @@ +#!/bin/sh + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +# Test signal's default behaviour. +tmpfiles="$tmpfiles t-sigpipeA.tmp" +./test-sigpipe${EXEEXT} A 2> t-sigpipeA.tmp | head -1 > /dev/null +if test -s t-sigpipeA.tmp; then + LC_ALL=C tr -d '\r' < t-sigpipeA.tmp + rm -fr $tmpfiles; exit 1 +fi + +# Test signal's ignored behaviour. +tmpfiles="$tmpfiles t-sigpipeB.tmp" +./test-sigpipe${EXEEXT} B 2> t-sigpipeB.tmp | head -1 > /dev/null +if test -s t-sigpipeB.tmp; then + LC_ALL=C tr -d '\r' < t-sigpipeB.tmp + rm -fr $tmpfiles; exit 1 +fi + +# Test signal's behaviour when a handler is installed. +tmpfiles="$tmpfiles t-sigpipeC.tmp" +./test-sigpipe${EXEEXT} B 2> t-sigpipeC.tmp | head -1 > /dev/null +if test -s t-sigpipeC.tmp; then + LC_ALL=C tr -d '\r' < t-sigpipeC.tmp + rm -fr $tmpfiles; exit 1 +fi + +rm -fr $tmpfiles +exit 0 diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-snprintf.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-snprintf.c --- gettext-0.17/gettext-tools/gnulib-tests/test-snprintf.c 2007-10-26 00:52:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-snprintf.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of snprintf() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,19 +20,12 @@ #include -#include +#include "signature.h" +SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...)); + #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char *argv[]) @@ -46,25 +39,25 @@ memcpy (buf, "DEADBEEF", 8); retval = snprintf (buf, size, "%d", 12345); if (size < 6) - { + { #if CHECK_SNPRINTF_POSIX - ASSERT (retval < 0 || retval >= size); + ASSERT (retval < 0 || retval >= size); #endif - if (size > 0) - { - ASSERT (memcmp (buf, "12345", size - 1) == 0); - ASSERT (buf[size - 1] == '\0' || buf[size - 1] == '0' + size); - } + if (size > 0) + { + ASSERT (memcmp (buf, "12345", size - 1) == 0); + ASSERT (buf[size - 1] == '\0' || buf[size - 1] == '0' + size); + } #if !CHECK_SNPRINTF_POSIX - if (size > 0) + if (size > 0) #endif - ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); - } + ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); + } else - { - ASSERT (retval == 5); - ASSERT (memcmp (buf, "12345\0EF", 8) == 0); - } + { + ASSERT (retval == 5); + ASSERT (memcmp (buf, "12345\0EF", 8) == 0); + } } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-spawn.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-spawn.c --- gettext-0.17/gettext-tools/gnulib-tests/test-spawn.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-spawn.c 2010-03-28 18:32:32.000000000 +0000 @@ -0,0 +1,54 @@ +/* Test of substitute. + Copyright (C) 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +/* Check for existence of required types. */ +struct check +{ + posix_spawnattr_t a; + posix_spawn_file_actions_t b; + mode_t c; + pid_t d; + sigset_t e; +} s; + +/* struct sched_param is allowed to be an incomplete type without + , but must have a forward declaration to avoid a + compilation error in the following usage. */ +extern void f (struct sched_param *g); +#include +extern void f (struct sched_param *g); + +int +main (void) +{ + switch (0) + { + case POSIX_SPAWN_RESETIDS: + case POSIX_SPAWN_SETPGROUP: + case POSIX_SPAWN_SETSIGDEF: + case POSIX_SPAWN_SETSIGMASK: + case (POSIX_SPAWN_SETSCHEDPARAM != 0 ? POSIX_SPAWN_SETSCHEDPARAM : -1): + case (POSIX_SPAWN_SETSCHEDULER != 0 ? POSIX_SPAWN_SETSCHEDULER : -2): + ; + } + return s.c + s.d; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stat.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stat.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stat.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,56 @@ +/* Tests of stat. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +/* Caution: stat may be a function-like macro. Although this + signature check must pass, it may be the signature of the real (and + broken) stat rather than rpl_stat. Most code should not use the + address of stat. */ +#include "signature.h" +SIGNATURE_CHECK (stat, int, (char const *, struct stat *)); + +#include +#include +#include +#include +#include + +#include "pathmax.h" +#include "same-inode.h" +#include "macros.h" + +#define BASE "test-stat.t" + +#include "test-stat.h" + +/* Wrapper around stat, which works even if stat is a function-like + macro, where test_stat_func(stat) would do the wrong thing. */ +static int +do_stat (char const *name, struct stat *st) +{ + return stat (name, st); +} + +int +main (void) +{ + return test_stat_func (do_stat, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stat.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stat.h --- gettext-0.17/gettext-tools/gnulib-tests/test-stat.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stat.h 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,100 @@ +/* Tests of stat. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +/* This file is designed to test both stat(n,buf) and + fstatat(AT_FDCWD,n,buf,0). FUNC is the function to test. Assumes + that BASE and ASSERT are already defined, and that appropriate + headers are already included. If PRINT, warn before skipping + symlink tests with status 77. */ + +static int +test_stat_func (int (*func) (char const *, struct stat *), bool print) +{ + struct stat st1; + struct stat st2; + char cwd[PATH_MAX]; + + ASSERT (getcwd (cwd, PATH_MAX) == cwd); + ASSERT (func (".", &st1) == 0); + ASSERT (func ("./", &st2) == 0); + ASSERT (SAME_INODE (st1, st2)); + ASSERT (func (cwd, &st2) == 0); + ASSERT (SAME_INODE (st1, st2)); + ASSERT (func ("/", &st1) == 0); + ASSERT (func ("///", &st2) == 0); + ASSERT (SAME_INODE (st1, st2)); + + errno = 0; + ASSERT (func ("", &st1) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("nosuch", &st1) == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("nosuch/", &st1) == -1); + ASSERT (errno == ENOENT); + + ASSERT (close (creat (BASE "file", 0600)) == 0); + ASSERT (func (BASE "file", &st1) == 0); + errno = 0; + ASSERT (func (BASE "file/", &st1) == -1); + ASSERT (errno == ENOTDIR); + + /* Now for some symlink tests, where supported. We set up: + link1 -> directory + link2 -> file + link3 -> dangling + link4 -> loop + then test behavior with trailing slash. + */ + if (symlink (".", BASE "link1") != 0) + { + ASSERT (unlink (BASE "file") == 0); + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + ASSERT (symlink (BASE "file", BASE "link2") == 0); + ASSERT (symlink (BASE "nosuch", BASE "link3") == 0); + ASSERT (symlink (BASE "link4", BASE "link4") == 0); + + ASSERT (func (BASE "link1/", &st1) == 0); + ASSERT (S_ISDIR (st1.st_mode)); + + errno = 0; + ASSERT (func (BASE "link2/", &st1) == -1); + ASSERT (errno == ENOTDIR); + + errno = 0; + ASSERT (func (BASE "link3/", &st1) == -1); + ASSERT (errno == ENOENT); + + errno = 0; + ASSERT (func (BASE "link4/", &st1) == -1); + ASSERT (errno == ELOOP); + + /* Cleanup. */ + ASSERT (unlink (BASE "file") == 0); + ASSERT (unlink (BASE "link1") == 0); + ASSERT (unlink (BASE "link2") == 0); + ASSERT (unlink (BASE "link3") == 0); + ASSERT (unlink (BASE "link4") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stdbool.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdbool.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stdbool.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdbool.c 2010-05-24 09:42:51.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2002-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,11 +46,12 @@ char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; -#if 0 /* Cannot be guaranteed with gnulib's . */ +#if 0 /* Cannot be guaranteed with gnulib's , at least, +not for all compilers. */ char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; -#endif char f[(_Bool) 0.0 == false ? 1 : -1]; +#endif char g[true]; char h[sizeof (_Bool)]; #if 0 /* See above. */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stddef.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stddef.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stddef.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stddef.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,38 @@ +/* Test of substitute. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "verify.h" + +/* Check that appropriate types are defined. */ +wchar_t a = 'c'; +ptrdiff_t b = 1; +size_t c = 2; + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + +int +main (void) +{ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stdint.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdint.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stdint.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdint.c 2010-04-25 09:21:51.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ #define DO_PEDANTIC 0 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ +#define __STDC_CONSTANT_MACROS 1 /* likewise */ #include #include "verify.h" @@ -246,11 +247,15 @@ verify (TYPE_MAXIMUM (uintmax_t) == UINTMAX_MAX); verify_same_types (UINTMAX_MAX, (uintmax_t) 0 + 0); +/* As of 2007, Sun C and HP-UX 10.20 cc don't support 'long long' constants in + the preprocessor. */ +#if !(defined __SUNPRO_C || (defined __hpux && !defined __GNUC__)) #if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX /* ok */ #else err or; #endif +#endif /* 7.18.3. Limits of other integer types */ @@ -350,7 +355,7 @@ int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stdio.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdio.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stdio.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdio.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,11 +20,24 @@ #include +#include "verify.h" + /* Check that the various SEEK_* macros are defined. */ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET }; +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + +/* Check that the types are all defined. */ +fpos_t t1; +off_t t2; +size_t t3; +ssize_t t4; +va_list t5; + int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-stdlib.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdlib.c --- gettext-0.17/gettext-tools/gnulib-tests/test-stdlib.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-stdlib.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,10 +20,16 @@ #include +#include "verify.h" + int exitcode; +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + int -main () +main (void) { /* Check that some macros are defined and different integer constants. */ switch (exitcode) diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-strchrnul.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strchrnul.c --- gettext-0.17/gettext-tools/gnulib-tests/test-strchrnul.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strchrnul.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + * Written by Eric Blake and Bruno Haible + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (strchrnul, char *, (char const *, int)); + +#include + +#include "macros.h" + +int +main (void) +{ + size_t n = 0x100000; + char *input = malloc (n + 1); + ASSERT (input); + + input[0] = 'a'; + input[1] = 'b'; + memset (input + 2, 'c', 1024); + memset (input + 1026, 'd', n - 1028); + input[n - 2] = 'e'; + input[n - 1] = 'a'; + input[n] = '\0'; + + /* Basic behavior tests. */ + ASSERT (strchrnul (input, 'a') == input); + ASSERT (strchrnul (input, 'b') == input + 1); + ASSERT (strchrnul (input, 'c') == input + 2); + ASSERT (strchrnul (input, 'd') == input + 1026); + + ASSERT (strchrnul (input + 1, 'a') == input + n - 1); + ASSERT (strchrnul (input + 1, 'e') == input + n - 2); + + ASSERT (strchrnul (input, 'f') == input + n); + ASSERT (strchrnul (input, '\0') == input + n); + + /* Check that a very long haystack is handled quickly if the byte is + found near the beginning. */ + { + size_t repeat = 10000; + for (; repeat > 0; repeat--) + { + ASSERT (strchrnul (input, 'c') == input + 2); + } + } + + /* Alignment tests. */ + { + int i, j; + for (i = 0; i < 32; i++) + { + for (j = 0; j < 256; j++) + input[i + j] = (j + 1) & 0xff; + for (j = 1; j < 256; j++) + { + ASSERT (strchrnul (input + i, j) == input + i + j - 1); + input[i + j - 1] = (j == 1 ? 2 : 1); + ASSERT (strchrnul (input + i, j) == input + i + 255); + input[i + j - 1] = j; + } + } + } + + free (input); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-strerror.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strerror.c --- gettext-0.17/gettext-tools/gnulib-tests/test-strerror.c 2007-10-01 01:09:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strerror.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of strerror() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,30 +19,32 @@ #include -#include -#include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "signature.h" +SIGNATURE_CHECK (strerror, char *, (int)); + +#include + +#include "macros.h" int -main (int argc, char **argv) +main (void) { char *str; + str = strerror (EACCES); ASSERT (str); ASSERT (*str); + str = strerror (ETIMEDOUT); + ASSERT (str); + ASSERT (*str); + + str = strerror (EOVERFLOW); + ASSERT (str); + ASSERT (*str); + str = strerror (0); ASSERT (str); ASSERT (*str); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-striconv.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconv.c --- gettext-0.17/gettext-tools/gnulib-tests/test-striconv.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconv.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of character set conversion. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,20 +25,10 @@ #endif #include -#include #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -61,7 +51,7 @@ char *result = NULL; size_t length = 0; int retval = mem_cd_iconv (input, strlen (input), cd_88591_to_utf8, - &result, &length); + &result, &length); ASSERT (retval == 0); ASSERT (length == strlen (expected)); ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); @@ -75,7 +65,7 @@ char *result = NULL; size_t length = 0; int retval = mem_cd_iconv (input, strlen (input), cd_utf8_to_88591, - &result, &length); + &result, &length); ASSERT (retval == 0); ASSERT (length == strlen (expected)); ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); @@ -88,7 +78,7 @@ char *result = NULL; size_t length = 0; int retval = mem_cd_iconv (input, strlen (input), cd_utf8_to_88591, - &result, &length); + &result, &length); ASSERT (retval == -1 && errno == EILSEQ); ASSERT (result == NULL); } @@ -99,11 +89,10 @@ char *result = NULL; size_t length = 0; int retval = mem_cd_iconv (input, strlen (input), cd_utf8_to_88591, - &result, &length); + &result, &length); ASSERT (retval == 0); ASSERT (length == 0); - if (result != NULL) - free (result); + free (result); } /* ------------------------- Test str_cd_iconv() ------------------------- */ diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-striconveha.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconveha.c --- gettext-0.17/gettext-tools/gnulib-tests/test-striconveha.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconveha.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,597 @@ +/* Test of character set conversion with error handling and autodetection. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include "striconveha.h" + +#if HAVE_ICONV +# include +#endif + +#include +#include +#include + +#include "macros.h" + +/* Magic number for detecting bounds violations. */ +#define MAGIC 0x1983EFF1 + +static size_t * +new_offsets (size_t n) +{ + size_t *offsets = (size_t *) malloc ((n + 1) * sizeof (size_t)); + offsets[n] = MAGIC; + return offsets; +} + +int +main () +{ + static enum iconv_ilseq_handler handlers[] = + { iconveh_error, iconveh_question_mark, iconveh_escape_sequence }; + size_t h; + size_t o; + size_t i; + +#if HAVE_ICONV + /* Assume that iconv() supports at least the encodings ASCII, ISO-8859-1, + ISO-8859-2, and UTF-8. */ + + /* ------------------------- Test mem_iconveha() ------------------------- */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "ISO-8859-2", "ISO-8859-1", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "ISO-8859-2", "ISO-8859-1", + false, handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i + 5)); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "ISO-8859-1", "UTF-8", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i < 12 ? i + 1 : + i < 18 ? i + 2 : + i + 3)); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "UTF-8", "ISO-8859-1", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 41; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i == 1 ? (size_t)(-1) : + i < 13 ? i - 1 : + i == 13 ? (size_t)(-1) : + i < 20 ? i - 2 : + i == 20 ? (size_t)(-1) : + i < 40 ? i - 3 : + (size_t)(-1))); + ASSERT (offsets[41] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\305\202 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "UTF-8", "ISO-8859-1", + false, handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i - 1)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i + 4)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "UTF-8", "ISO-8859-1", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == 0); + if (o) + { + ASSERT (offsets[0] == 0); + ASSERT (offsets[1] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ +# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) + /* Test conversions from autodetect_jp to UTF-8. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\244\263\244\363\244\313\244\301\244\317"; /* こんにちは in EUC-JP */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "autodetect_jp", "UTF-8", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 10; i++) + ASSERT (offsets[i] == ((i % 2) == 0 ? (i / 2) * 3 : (size_t)(-1))); + ASSERT (offsets[10] == MAGIC); + free (offsets); + } + free (result); + } + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\202\261\202\361\202\311\202\277\202\315"; /* こんにちは in Shift_JIS */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "autodetect_jp", "UTF-8", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 10; i++) + ASSERT (offsets[i] == ((i % 2) == 0 ? (i / 2) * 3 : (size_t)(-1))); + ASSERT (offsets[10] == MAGIC); + free (offsets); + } + free (result); + } + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\033$B$3$s$K$A$O\033(B"; /* こんにちは in ISO-2022-JP-2 */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "autodetect_jp", "UTF-8", + false, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i == 0 ? 0 : + i == 5 ? 3 : + i == 7 ? 6 : + i == 9 ? 9 : + i == 11 ? 12 : + i == 13 ? 15 : + (size_t)(-1))); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + } +# endif + +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Costs: 27 \342\202\254"; /* EURO SIGN */ + static const char expected[] = "Costs: 27 EUR"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveha (input, strlen (input), + "UTF-8", "ISO-8859-1", + true, handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 13; i++) + ASSERT (offsets[i] == (i < 11 ? i : (size_t)(-1))); + ASSERT (offsets[13] == MAGIC); + free (offsets); + } + free (result); + } + } +# endif + + /* ------------------------- Test str_iconveha() ------------------------- */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_iconveha (input, "ISO-8859-2", "ISO-8859-1", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + char *result = str_iconveha (input, "ISO-8859-2", "ISO-8859-1", false, handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + char *result = str_iconveha (input, "ISO-8859-1", "UTF-8", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_iconveha (input, "UTF-8", "ISO-8859-1", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Costs: 27 \342\202\254"; /* EURO SIGN */ + char *result = str_iconveha (input, "UTF-8", "ISO-8859-1", false, handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Costs: 27 ?"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Costs: 27 \\u20AC"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + char *result = str_iconveha (input, "UTF-8", "ISO-8859-1", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, "") == 0); + free (result); + } + + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ +# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) + /* Test conversions from autodetect_jp to UTF-8. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\244\263\244\363\244\313\244\301\244\317"; /* こんにちは in EUC-JP */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + char *result = str_iconveha (input, "autodetect_jp", "UTF-8", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\202\261\202\361\202\311\202\277\202\315"; /* こんにちは in Shift_JIS */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + char *result = str_iconveha (input, "autodetect_jp", "UTF-8", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\033$B$3$s$K$A$O\033(B"; /* こんにちは in ISO-2022-JP-2 */ + static const char expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + char *result = str_iconveha (input, "autodetect_jp", "UTF-8", false, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } +# endif + +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + /* Test conversion from UTF-8 to ISO-8859-1 with transliteration. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Costs: 27 \342\202\254"; /* EURO SIGN */ + static const char expected[] = "Costs: 27 EUR"; + char *result = str_iconveha (input, "UTF-8", "ISO-8859-1", true, handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } +# endif + +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-striconveh.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconveh.c --- gettext-0.17/gettext-tools/gnulib-tests/test-striconveh.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-striconveh.c 2010-06-03 21:36:17.000000000 +0000 @@ -0,0 +1,1112 @@ +/* Test of character set conversion with error handling. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include "striconveh.h" + +#if HAVE_ICONV +# include +#endif + +#include +#include +#include + +#include "macros.h" + +/* Magic number for detecting bounds violations. */ +#define MAGIC 0x1983EFF1 + +static size_t * +new_offsets (size_t n) +{ + size_t *offsets = (size_t *) malloc ((n + 1) * sizeof (size_t)); + offsets[n] = MAGIC; + return offsets; +} + +int +main () +{ + static enum iconv_ilseq_handler handlers[] = + { iconveh_error, iconveh_question_mark, iconveh_escape_sequence }; + size_t indirect; + size_t h; + size_t o; + size_t i; + +#if HAVE_ICONV + /* Assume that iconv() supports at least the encodings ASCII, ISO-8859-1, + ISO-8859-2, and UTF-8. */ + iconv_t cd_ascii_to_88591 = iconv_open ("ISO-8859-1", "ASCII"); + iconv_t cd_88591_to_88592 = iconv_open ("ISO-8859-2", "ISO-8859-1"); + iconv_t cd_88592_to_88591 = iconv_open ("ISO-8859-1", "ISO-8859-2"); + iconv_t cd_ascii_to_utf8 = iconv_open ("UTF-8", "ASCII"); + iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); + iconv_t cd_utf8_to_88591 = iconv_open ("ISO-8859-1", "UTF-8"); + iconv_t cd_88592_to_utf8 = iconv_open ("UTF-8", "ISO-8859-2"); + iconv_t cd_utf8_to_88592 = iconv_open ("ISO-8859-2", "UTF-8"); + iconv_t cd_utf7_to_utf8 = iconv_open ("UTF-8", "UTF-7"); + iconveh_t cdeh_ascii_to_88591; + iconveh_t cdeh_ascii_to_88591_indirectly; + iconveh_t cdeh_88592_to_88591; + iconveh_t cdeh_88592_to_88591_indirectly; + iconveh_t cdeh_ascii_to_utf8; + iconveh_t cdeh_88591_to_utf8; + iconveh_t cdeh_utf8_to_88591; + iconveh_t cdeh_utf7_to_utf8; + + ASSERT (cd_ascii_to_utf8 != (iconv_t)(-1)); + ASSERT (cd_88591_to_utf8 != (iconv_t)(-1)); + ASSERT (cd_utf8_to_88591 != (iconv_t)(-1)); + ASSERT (cd_88592_to_utf8 != (iconv_t)(-1)); + ASSERT (cd_utf8_to_88592 != (iconv_t)(-1)); + + cdeh_ascii_to_88591.cd = cd_ascii_to_88591; + cdeh_ascii_to_88591.cd1 = cd_ascii_to_utf8; + cdeh_ascii_to_88591.cd2 = cd_utf8_to_88591; + + cdeh_ascii_to_88591_indirectly.cd = (iconv_t)(-1); + cdeh_ascii_to_88591_indirectly.cd1 = cd_ascii_to_utf8; + cdeh_ascii_to_88591_indirectly.cd2 = cd_utf8_to_88591; + + cdeh_88592_to_88591.cd = cd_88592_to_88591; + cdeh_88592_to_88591.cd1 = cd_88592_to_utf8; + cdeh_88592_to_88591.cd2 = cd_utf8_to_88591; + + cdeh_88592_to_88591_indirectly.cd = (iconv_t)(-1); + cdeh_88592_to_88591_indirectly.cd1 = cd_88592_to_utf8; + cdeh_88592_to_88591_indirectly.cd2 = cd_utf8_to_88591; + + cdeh_ascii_to_utf8.cd = cd_ascii_to_utf8; + cdeh_ascii_to_utf8.cd1 = cd_ascii_to_utf8; + cdeh_ascii_to_utf8.cd2 = (iconv_t)(-1); + + cdeh_88591_to_utf8.cd = cd_88591_to_utf8; + cdeh_88591_to_utf8.cd1 = cd_88591_to_utf8; + cdeh_88591_to_utf8.cd2 = (iconv_t)(-1); + + cdeh_utf8_to_88591.cd = cd_utf8_to_88591; + cdeh_utf8_to_88591.cd1 = (iconv_t)(-1); + cdeh_utf8_to_88591.cd2 = cd_utf8_to_88591; + + cdeh_utf7_to_utf8.cd = cd_utf7_to_utf8; + cdeh_utf7_to_utf8.cd1 = cd_utf7_to_utf8; + cdeh_utf7_to_utf8.cd2 = (iconv_t)(-1); + + /* ------------------------ Test mem_cd_iconveh() ------------------------ */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + (indirect + ? &cdeh_88592_to_88591_indirectly + : &cdeh_88592_to_88591), + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + } + + /* Test conversion from ASCII to ISO-8859-1 with invalid input (EILSEQ). */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafa? Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + (indirect + ? &cdeh_ascii_to_88591_indirectly + : &cdeh_ascii_to_88591), + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + (indirect + ? &cdeh_88592_to_88591_indirectly + : &cdeh_88592_to_88591), + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i + 5)); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_88591_to_utf8, + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i < 12 ? i + 1 : + i < 18 ? i + 2 : + i + 3)); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_utf8_to_88591, + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 41; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i == 1 ? (size_t)(-1) : + i < 13 ? i - 1 : + i == 13 ? (size_t)(-1) : + i < 20 ? i - 2 : + i == 20 ? (size_t)(-1) : + i < 40 ? i - 3 : + (size_t)(-1))); + ASSERT (offsets[41] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from ASCII to UTF-8 with invalid input (EILSEQ). */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafa? Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_ascii_to_utf8, + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\305\202 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_utf8_to_88591, + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i - 1)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i + 4)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_utf8_to_88591, + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == 0); + if (o) + { + ASSERT (offsets[0] == 0); + ASSERT (offsets[1] == MAGIC); + free (offsets); + } + free (result); + } + } + + if (cd_utf7_to_utf8 != (iconv_t)(-1)) + { + /* Disabled on Solaris, because Solaris 9 iconv() is buggy: it returns + -1 / EILSEQ when converting the 7th byte of the input "+VDLYP9hA". */ +# if !(defined __sun && !defined _LIBICONV_VERSION) + /* Test conversion from UTF-7 to UTF-8 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + /* This is base64 encoded 0x54 0x32 0xD8 0x3F 0xD8 0x40. It would + convert to U+5432 U+D83F U+D840 but these are Unicode surrogates. */ + static const char input[] = "+VDLYP9hA"; + static const char expected1[] = "\345\220\262"; /* 吲 glibc */ + static const char expected2[] = ""; /* libiconv */ + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, 7, + &cdeh_utf7_to_utf8, + handler, + NULL, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected1) || length == strlen (expected2)); + ASSERT (result != NULL); + if (length == strlen (expected1)) + ASSERT (memcmp (result, expected1, strlen (expected1)) == 0); + else + ASSERT (memcmp (result, expected2, strlen (expected2)) == 0); + free (result); + } + + /* Disabled on NetBSD, because NetBSD 5.0 iconv() is buggy: it converts + the input "+2D/YQNhB" to U+1FED8 U+3FD8 U+40D8. */ +# if !(defined __NetBSD__ && !defined _LIBICONV_VERSION) + /* Test conversion from UTF-7 to UTF-8 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + /* This is base64 encoded 0xD8 0x3F 0xD8 0x40 0xD8 0x41. It would + convert to U+D83F U+D840 U+D841 but these are Unicode surrogates. */ + static const char input[] = "+2D/YQNhB"; + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh (input, strlen (input), + &cdeh_utf7_to_utf8, + handler, + NULL, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + break; + case iconveh_question_mark: + case iconveh_escape_sequence: + { + /* glibc result */ + static const char expected1[] = "?????"; + /* libiconv <= 1.12 result */ + static const char expected2[] = "?2D/YQNhB"; + /* libiconv behaviour changed in version 1.13: the result is + '?' U+0FF6 U+1036; this is U+D83F U+D840 U+D841 shifted left + by 6 bits. */ + static const char expected3[] = "?\340\277\266\341\200\266"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected1) + || length == strlen (expected2) + || length == strlen (expected3)); + ASSERT (result != NULL); + if (length == strlen (expected1)) + ASSERT (memcmp (result, expected1, strlen (expected1)) == 0); + else if (length == strlen (expected2)) + ASSERT (memcmp (result, expected2, strlen (expected2)) == 0); + else + ASSERT (memcmp (result, expected3, strlen (expected3)) == 0); + free (result); + } + break; + } + } +# endif +# endif + } + + /* ------------------------ Test str_cd_iconveh() ------------------------ */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_cd_iconveh (input, + (indirect + ? &cdeh_88592_to_88591_indirectly + : &cdeh_88592_to_88591), + handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + } + + /* Test conversion from ASCII to ISO-8859-1 with invalid input (EILSEQ). */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafa? Maszkowski */ + char *result = str_cd_iconveh (input, + (indirect + ? &cdeh_ascii_to_88591_indirectly + : &cdeh_ascii_to_88591), + handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (indirect = 0; indirect <= 1; indirect++) + { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + char *result = str_cd_iconveh (input, + (indirect + ? &cdeh_88592_to_88591_indirectly + : &cdeh_88592_to_88591), + handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + char *result = str_cd_iconveh (input, + &cdeh_88591_to_utf8, + handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_cd_iconveh (input, + &cdeh_utf8_to_88591, + handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from ASCII to UTF-8 with invalid input (EILSEQ). */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafa? Maszkowski */ + char *result = str_cd_iconveh (input, + &cdeh_ascii_to_utf8, + handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Costs: 27 \342\202\254"; /* EURO SIGN */ + char *result = str_cd_iconveh (input, + &cdeh_utf8_to_88591, + handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Costs: 27 ?"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Costs: 27 \\u20AC"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + char *result = str_cd_iconveh (input, + &cdeh_utf8_to_88591, + handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, "") == 0); + free (result); + } + + if (cd_88591_to_88592 != (iconv_t)(-1)) + iconv_close (cd_88591_to_88592); + if (cd_88592_to_88591 != (iconv_t)(-1)) + iconv_close (cd_88592_to_88591); + iconv_close (cd_88591_to_utf8); + iconv_close (cd_utf8_to_88591); + iconv_close (cd_88592_to_utf8); + iconv_close (cd_utf8_to_88592); + + /* ------------------------- Test mem_iconveh() ------------------------- */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "ISO-8859-2", "ISO-8859-1", + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "ISO-8859-2", "ISO-8859-1", + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == i); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i + 5)); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "ISO-8859-1", "UTF-8", + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i < 12 ? i + 1 : + i < 18 ? i + 2 : + i + 3)); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "UTF-8", "ISO-8859-1", + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 41; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i == 1 ? (size_t)(-1) : + i < 13 ? i - 1 : + i == 13 ? (size_t)(-1) : + i < 20 ? i - 2 : + i == 20 ? (size_t)(-1) : + i < 40 ? i - 3 : + (size_t)(-1))); + ASSERT (offsets[41] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\305\202 Maszkowski"; /* Rafał Maszkowski */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "UTF-8", "ISO-8859-1", + handler, + offsets, + &result, &length); + switch (handler) + { + case iconveh_error: + ASSERT (retval == -1 && errno == EILSEQ); + ASSERT (result == NULL); + if (o) + free (offsets); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i - 1)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (retval == 0); + ASSERT (length == strlen (expected)); + ASSERT (result != NULL && memcmp (result, expected, strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 17; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i == 5 ? (size_t)(-1) : + i + 4)); + ASSERT (offsets[17] == MAGIC); + free (offsets); + } + free (result); + } + break; + } + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + char *result = NULL; + size_t length = 0; + int retval = mem_iconveh (input, strlen (input), + "UTF-8", "ISO-8859-1", + handler, + offsets, + &result, &length); + ASSERT (retval == 0); + ASSERT (length == 0); + if (o) + { + ASSERT (offsets[0] == 0); + ASSERT (offsets[1] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* ------------------------- Test str_iconveh() ------------------------- */ + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_iconveh (input, "ISO-8859-2", "ISO-8859-1", handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from ISO-8859-2 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + char *result = str_iconveh (input, "ISO-8859-2", "ISO-8859-1", handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Rafa? Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Rafa\\u0142 Maszkowski"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const char expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + char *result = str_iconveh (input, "ISO-8859-1", "UTF-8", handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from UTF-8 to ISO-8859-1 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + static const char expected[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + char *result = str_iconveh (input, "UTF-8", "ISO-8859-1", handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EILSEQ. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Costs: 27 \342\202\254"; /* EURO SIGN */ + char *result = str_iconveh (input, "UTF-8", "ISO-8859-1", handler); + switch (handler) + { + case iconveh_error: + ASSERT (result == NULL && errno == EILSEQ); + break; + case iconveh_question_mark: + { + static const char expected[] = "Costs: 27 ?"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + case iconveh_escape_sequence: + { + static const char expected[] = "Costs: 27 \\u20AC"; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0); + free (result); + } + break; + } + } + + /* Test conversion from UTF-8 to ISO-8859-1 with EINVAL. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\342"; + char *result = str_iconveh (input, "UTF-8", "ISO-8859-1", handler); + ASSERT (result != NULL); + ASSERT (strcmp (result, "") == 0); + free (result); + } + +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-string.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-string.c --- gettext-0.17/gettext-tools/gnulib-tests/test-string.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-string.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,8 +20,14 @@ #include +#include "verify.h" + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-strstr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strstr.c --- gettext-0.17/gettext-tools/gnulib-tests/test-strstr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-strstr.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,169 @@ +/* + * Copyright (C) 2004, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + * Written by Bruno Haible and Eric Blake + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (strstr, char *, (char const *, char const *)); + +#include +#include +#include + +#include "zerosize-ptr.h" +#include "macros.h" + +int +main (int argc, char *argv[]) +{ +#if HAVE_DECL_ALARM + /* Declare failure if test takes too long, by using default abort + caused by SIGALRM. All known platforms that lack alarm also have + a quadratic strstr, and the replacement strstr is known to not + take too long. */ + signal (SIGALRM, SIG_DFL); + alarm (50); +#endif + + { + const char input[] = "foo"; + const char *result = strstr (input, ""); + ASSERT (result == input); + } + + { + const char input[] = "foo"; + const char *result = strstr (input, "o"); + ASSERT (result == input + 1); + } + + { + /* On some platforms, the memchr() functions reads past the first + occurrence of the byte to be searched, leading to an out-of-bounds + read access for strstr(). + See . + This is a bug in memchr(), see the Austin Group's clarification + . */ + const char *fix = "aBaaaaaaaaaaax"; + char *page_boundary = (char *) zerosize_ptr (); + size_t len = strlen (fix) + 1; + char *input = page_boundary ? page_boundary - len : malloc (len); + const char *result; + + strcpy (input, fix); + result = strstr (input, "B1x"); + ASSERT (result == NULL); + if (!page_boundary) + free (input); + } + + { + const char input[] = "ABC ABCDAB ABCDABCDABDE"; + const char *result = strstr (input, "ABCDABD"); + ASSERT (result == input + 15); + } + + { + const char input[] = "ABC ABCDAB ABCDABCDABDE"; + const char *result = strstr (input, "ABCDABE"); + ASSERT (result == NULL); + } + + { + const char input[] = "ABC ABCDAB ABCDABCDABDE"; + const char *result = strstr (input, "ABCDABCD"); + ASSERT (result == input + 11); + } + + /* Check that a very long haystack is handled quickly if the needle is + short and occurs near the beginning. */ + { + size_t repeat = 10000; + size_t m = 1000000; + char *needle = + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; + char *haystack = (char *) malloc (m + 1); + if (haystack != NULL) + { + memset (haystack, 'A', m); + haystack[0] = 'B'; + haystack[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (strstr (haystack, needle) == haystack + 1); + } + + free (haystack); + } + } + + /* Check that a very long needle is discarded quickly if the haystack is + short. */ + { + size_t repeat = 10000; + size_t m = 1000000; + char *haystack = + "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + "ABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB"; + char *needle = (char *) malloc (m + 1); + if (needle != NULL) + { + memset (needle, 'A', m); + needle[m] = '\0'; + + for (; repeat > 0; repeat--) + { + ASSERT (strstr (haystack, needle) == NULL); + } + + free (needle); + } + } + + /* Check that the asymptotic worst-case complexity is not quadratic. */ + { + size_t m = 1000000; + char *haystack = (char *) malloc (2 * m + 2); + char *needle = (char *) malloc (m + 2); + if (haystack != NULL && needle != NULL) + { + const char *result; + + memset (haystack, 'A', 2 * m); + haystack[2 * m] = 'B'; + haystack[2 * m + 1] = '\0'; + + memset (needle, 'A', m); + needle[m] = 'B'; + needle[m + 1] = '\0'; + + result = strstr (haystack, needle); + ASSERT (result == haystack + m); + } + free (needle); + free (haystack); + } + + /* Sublinear speed is only possible in memmem; strstr must examine + every character of haystack to find its length. */ + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-symlink.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-symlink.c --- gettext-0.17/gettext-tools/gnulib-tests/test-symlink.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-symlink.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,47 @@ +/* Tests of symlink. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (symlink, int, (char const *, char const *)); + +#include +#include +#include +#include +#include +#include + +#include "ignore-value.h" +#include "macros.h" + +#define BASE "test-symlink.t" + +#include "test-symlink.h" + +int +main (void) +{ + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + + return test_symlink (symlink, true); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-symlink.h gettext-0.18.1.1/gettext-tools/gnulib-tests/test-symlink.h --- gettext-0.17/gettext-tools/gnulib-tests/test-symlink.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-symlink.h 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,95 @@ +/* Tests of symlink. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +/* This file is designed to test both symlink(a,b) and + symlinkat(a,AT_FDCWD,b). FUNC is the function to test. Assumes + that BASE and ASSERT are already defined, and that appropriate + headers are already included. If PRINT, warn before skipping + symlink tests with status 77. */ + +static int +test_symlink (int (*func) (char const *, char const *), bool print) +{ + if (func ("nowhere", BASE "link1")) + { + if (print) + fputs ("skipping test: symlinks not supported on this file system\n", + stderr); + return 77; + } + + /* Some systems allow the creation of 0-length symlinks as a synonym + for "."; but most reject it. */ + { + int status; + errno = 0; + status = func ("", BASE "link2"); + if (status == -1) + ASSERT (errno == ENOENT || errno == EINVAL); + else + { + ASSERT (status == 0); + ASSERT (unlink (BASE "link2") == 0); + } + } + + /* Sanity checks of failures. */ + errno = 0; + ASSERT (func ("nowhere", "") == -1); + ASSERT (errno == ENOENT); + errno = 0; + ASSERT (func ("nowhere", ".") == -1); + ASSERT (errno == EEXIST || errno == EINVAL); + errno = 0; + ASSERT (func ("somewhere", BASE "link1") == -1); + ASSERT (errno == EEXIST); + errno = 0; + ASSERT (func ("nowhere", BASE "link2/") == -1); + ASSERT (errno == ENOTDIR || errno == ENOENT); + ASSERT (mkdir (BASE "dir", 0700) == 0); + errno = 0; + ASSERT (func ("nowhere", BASE "dir") == -1); + ASSERT (errno == EEXIST); + errno = 0; + ASSERT (func ("nowhere", BASE "dir/") == -1); + ASSERT (errno == EEXIST || errno == EINVAL); + ASSERT (close (creat (BASE "file", 0600)) == 0); + errno = 0; + ASSERT (func ("nowhere", BASE "file") == -1); + ASSERT (errno == EEXIST); + errno = 0; + ASSERT (func ("nowhere", BASE "file/") == -1); + ASSERT (errno == EEXIST || errno == ENOTDIR || errno == ENOENT); + + /* Trailing slash must always be rejected. */ + ASSERT (unlink (BASE "link1") == 0); + ASSERT (func (BASE "link2", BASE "link1") == 0); + errno = 0; + ASSERT (func (BASE "nowhere", BASE "link1/") == -1); + ASSERT (errno == EEXIST || errno == ENOTDIR || errno == ENOENT); + errno = 0; + ASSERT (unlink (BASE "link2") == -1); + ASSERT (errno == ENOENT); + + /* Cleanup. */ + ASSERT (rmdir (BASE "dir") == 0); + ASSERT (unlink (BASE "file") == 0); + ASSERT (unlink (BASE "link1") == 0); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sys_select.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_select.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sys_select.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_select.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,35 @@ +/* Test of substitute. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include + +/* Check that the 'struct timeval' type is defined. */ +struct timeval t1; + +int +main (void) +{ + /* Check that FD_ZERO can be used. This should not yield a warning + such as "warning: implicit declaration of function 'memset'". */ + fd_set fds; + FD_ZERO (&fds); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sys_socket.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_socket.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sys_socket.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_socket.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,53 @@ +/* Test of substitute. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include + +#include + +#if HAVE_SHUTDOWN +/* Check some integer constant expressions. */ +int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; +#endif + +int +main (void) +{ + struct sockaddr_storage x; + sa_family_t i; + + /* Check some errno values. */ + switch (0) + { + case ENOTSOCK: + case EADDRINUSE: + case ENETRESET: + case ECONNABORTED: + case ECONNRESET: + case ENOTCONN: + case ESHUTDOWN: + break; + } + + x.ss_family = 42; + i = 42; + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sys_stat.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_stat.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sys_stat.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_stat.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -253,8 +253,36 @@ verify (!S_ISWHT (S_IFSOCK)); #endif +/* POSIX 2008 requires traditional encoding of permission constants. */ +verify (S_IRWXU == 00700); +verify (S_IRUSR == 00400); +verify (S_IWUSR == 00200); +verify (S_IXUSR == 00100); +verify (S_IRWXG == 00070); +verify (S_IRGRP == 00040); +verify (S_IWGRP == 00020); +verify (S_IXGRP == 00010); +verify (S_IRWXO == 00007); +verify (S_IROTH == 00004); +verify (S_IWOTH == 00002); +verify (S_IXOTH == 00001); +verify (S_ISUID == 04000); +verify (S_ISGID == 02000); +verify (S_ISVTX == 01000); + +#if ((0 <= UTIME_NOW && UTIME_NOW < 1000000000) \ + || (0 <= UTIME_OMIT && UTIME_OMIT < 1000000000) \ + || UTIME_NOW == UTIME_OMIT) +invalid UTIME macros +#endif + +/* Check the existence of some types. */ +nlink_t t1; + +struct timespec t2; + int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sys_time.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_time.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sys_time.c 2007-10-07 20:29:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_time.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ struct timeval a; int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-sys_wait.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_wait.c --- gettext-0.17/gettext-tools/gnulib-tests/test-sys_wait.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-sys_wait.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,30 @@ +/* Test of substitute. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +/* Check for existence of required types. */ +static pid_t a; + +int +main (void) +{ + return a; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-term-ostream.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-term-ostream.c --- gettext-0.17/gettext-tools/gnulib-tests/test-term-ostream.c 2006-12-04 13:31:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-term-ostream.c 2010-06-06 12:49:58.000000000 +0000 @@ -48,23 +48,23 @@ ostream_write_str (stream, name); ostream_write_mem (stream, " ", 7 - strlen (name)); for (col = 0; col <= 8; col++) - { - term_color_t row_color = colors[row].c; - term_color_t col_color = colors[col].c; - - ostream_write_str (stream, "|"); - term_ostream_set_color (stream, row_color); - term_ostream_set_bgcolor (stream, col_color); - if (!(term_ostream_get_color (stream) == row_color - && term_ostream_get_bgcolor (stream) == col_color)) - abort (); - ostream_write_str (stream, " Words "); - term_ostream_set_color (stream, COLOR_DEFAULT); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - if (!(term_ostream_get_color (stream) == COLOR_DEFAULT - && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) - abort (); - } + { + term_color_t row_color = colors[row].c; + term_color_t col_color = colors[col].c; + + ostream_write_str (stream, "|"); + term_ostream_set_color (stream, row_color); + term_ostream_set_bgcolor (stream, col_color); + if (!(term_ostream_get_color (stream) == row_color + && term_ostream_get_bgcolor (stream) == col_color)) + abort (); + ostream_write_str (stream, " Words "); + term_ostream_set_color (stream, COLOR_DEFAULT); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + if (!(term_ostream_get_color (stream) == COLOR_DEFAULT + && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) + abort (); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); @@ -74,90 +74,90 @@ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int r = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int g = b + (int) (row / 17.0f * (r - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int g = b + (int) (row / 17.0f * (r - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 1 to 2. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int g = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int r = b + (int) (row / 17.0f * (g - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int r = b + (int) (row / 17.0f * (g - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 2 to 3. */ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int g = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int b = r + (int) (row / 17.0f * (g - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int b = r + (int) (row / 17.0f * (g - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 3 to 4. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int b = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int g = r + (int) (row / 17.0f * (b - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int g = r + (int) (row / 17.0f * (b - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 4 to 5. */ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int b = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int r = g + (int) (row / 17.0f * (b - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int r = g + (int) (row / 17.0f * (b - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 5 to 6. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int r = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int b = g + (int) (row / 17.0f * (r - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int b = g + (int) (row / 17.0f * (r - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-term-ostream-xterm gettext-0.18.1.1/gettext-tools/gnulib-tests/test-term-ostream-xterm --- gettext-0.17/gettext-tools/gnulib-tests/test-term-ostream-xterm 2007-10-27 14:52:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-term-ostream-xterm 2010-06-06 12:49:58.000000000 +0000 @@ -3,10 +3,11 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -tmpfiles="$tmpfiles out" +tmpfiles="$tmpfiles out1 out" # The redirection of stderr into a pipe avoids the output of padding bytes # (unnecessary NUL bytes after escape sequences) on some systems. -(TERM=xterm ./test-term-ostream > out) 2>&1 | cat 1>&2 +(TERM=xterm ./test-term-ostream > out1) 2>&1 | cat 1>&2 +LC_ALL=C tr -d '\r' < out1 > out # There are several variants of the "xterm" terminal description floating # around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm" diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-time.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-time.c --- gettext-0.17/gettext-tools/gnulib-tests/test-time.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-time.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,35 @@ +/* Test of substitute. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include + +#include "verify.h" + +struct timespec a; + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + +int +main (void) +{ + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-tls.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-tls.c --- gettext-0.17/gettext-tools/gnulib-tests/test-tls.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-tls.c 2010-03-28 18:32:32.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of thread-local storage in multithreaded situations. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,7 +50,9 @@ #include #include -#include "tls.h" +#include "glthread/tls.h" +#include "glthread/thread.h" +#include "glthread/yield.h" #if ENABLE_DEBUGGING # define dbgprintf printf @@ -58,128 +60,6 @@ # define dbgprintf if (0) printf #endif -#if TEST_POSIX_THREADS -# include -# include -typedef pthread_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - pthread_t thread; - if (pthread_create (&thread, NULL, func, arg) != 0) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - void *retval; - if (pthread_join (thread, &retval) != 0) - abort (); -} -static inline void gl_thread_yield (void) -{ - sched_yield (); -} -static inline void * gl_thread_self (void) -{ - return (void *) pthread_self (); -} -#endif -#if TEST_PTH_THREADS -# include -typedef pth_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - pth_t thread = pth_spawn (NULL, func, arg); - if (thread == NULL) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - if (!pth_join (thread, NULL)) - abort (); -} -static inline void gl_thread_yield (void) -{ - pth_yield (NULL); -} -static inline void * gl_thread_self (void) -{ - return pth_self (); -} -#endif -#if TEST_SOLARIS_THREADS -# include -typedef thread_t gl_thread_t; -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - thread_t thread; - if (thr_create (NULL, 0, func, arg, 0, &thread) != 0) - abort (); - return thread; -} -static inline void gl_thread_join (gl_thread_t thread) -{ - void *retval; - if (thr_join (thread, NULL, &retval) != 0) - abort (); -} -static inline void gl_thread_yield (void) -{ - thr_yield (); -} -static inline void * gl_thread_self (void) -{ - return (void *) thr_self (); -} -#endif -#if TEST_WIN32_THREADS -# include -typedef HANDLE gl_thread_t; -/* Use a wrapper function, instead of adding WINAPI through a cast. */ -struct wrapper_args { void * (*func) (void *); void *arg; }; -static DWORD WINAPI wrapper_func (void *varg) -{ - struct wrapper_args *warg = (struct wrapper_args *)varg; - void * (*func) (void *) = warg->func; - void *arg = warg->arg; - free (warg); - func (arg); - return 0; -} -static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) -{ - struct wrapper_args *warg = - (struct wrapper_args *) malloc (sizeof (struct wrapper_args)); - if (warg == NULL) - abort (); - warg->func = func; - warg->arg = arg; - { - DWORD thread_id; - HANDLE thread = - CreateThread (NULL, 100000, wrapper_func, warg, 0, &thread_id); - if (thread == NULL) - abort (); - return thread; - } -} -static inline void gl_thread_join (gl_thread_t thread) -{ - if (WaitForSingleObject (thread, INFINITE) == WAIT_FAILED) - abort (); - if (!CloseHandle (thread)) - abort (); -} -static inline void gl_thread_yield (void) -{ - Sleep (0); -} -static inline void * gl_thread_self (void) -{ - return (void *) GetCurrentThreadId (); -} -#endif #if EXPLICIT_YIELD # define yield() gl_thread_yield () #else @@ -195,6 +75,9 @@ yield (); } + +/* ----------------------- Test thread-local storage ----------------------- */ + #define KEYS_COUNT 4 static gl_tls_key_t mykeys[KEYS_COUNT]; @@ -211,10 +94,10 @@ /* Initialize the per-thread storage. */ for (i = 0; i < KEYS_COUNT; i++) { - values[i] = (((unsigned int) rand() >> 3) % 1000000) * THREAD_COUNT + id; + values[i] = (((unsigned int) rand () >> 3) % 1000000) * THREAD_COUNT + id; /* Hopefully no arithmetic overflow. */ if ((values[i] % THREAD_COUNT) != id) - abort (); + abort (); } perhaps_yield (); @@ -241,16 +124,16 @@ for (repeat = REPEAT_COUNT; repeat > 0; repeat--) { dbgprintf ("Worker %p doing value swapping\n", gl_thread_self ()); - i = ((unsigned int) rand() >> 3) % KEYS_COUNT; - j = ((unsigned int) rand() >> 3) % KEYS_COUNT; + i = ((unsigned int) rand () >> 3) % KEYS_COUNT; + j = ((unsigned int) rand () >> 3) % KEYS_COUNT; if (i != j) - { - void *vi = gl_tls_get (mykeys[i]); - void *vj = gl_tls_get (mykeys[j]); - - gl_tls_set (mykeys[i], vj); - gl_tls_set (mykeys[j], vi); - } + { + void *vi = gl_tls_get (mykeys[i]); + void *vj = gl_tls_get (mykeys[j]); + + gl_tls_set (mykeys[i], vj); + gl_tls_set (mykeys[j], vi); + } perhaps_yield (); } @@ -266,7 +149,7 @@ return NULL; } -void +static void test_tls (void) { int pass, i; @@ -276,25 +159,28 @@ gl_thread_t threads[THREAD_COUNT]; if (pass == 0) - for (i = 0; i < KEYS_COUNT; i++) - gl_tls_key_init (mykeys[i], free); + for (i = 0; i < KEYS_COUNT; i++) + gl_tls_key_init (mykeys[i], free); else - for (i = KEYS_COUNT - 1; i >= 0; i--) - gl_tls_key_init (mykeys[i], free); + for (i = KEYS_COUNT - 1; i >= 0; i--) + gl_tls_key_init (mykeys[i], free); /* Spawn the threads. */ for (i = 0; i < THREAD_COUNT; i++) - threads[i] = gl_thread_create (worker_thread, NULL); + threads[i] = gl_thread_create (worker_thread, NULL); /* Wait for the threads to terminate. */ for (i = 0; i < THREAD_COUNT; i++) - gl_thread_join (threads[i]); + gl_thread_join (threads[i], NULL); for (i = 0; i < KEYS_COUNT; i++) - gl_tls_key_destroy (mykeys[i]); + gl_tls_key_destroy (mykeys[i]); } } + +/* -------------------------------------------------------------------------- */ + int main () { @@ -314,9 +200,12 @@ /* No multithreading available. */ +#include + int main () { + fputs ("Skipping test: multithreading not enabled\n", stderr); return 77; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-unistd.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-unistd.c --- gettext-0.17/gettext-tools/gnulib-tests/test-unistd.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-unistd.c 2010-02-16 21:32:28.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,9 +20,21 @@ #include +#include "verify.h" + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + /* Check that the various SEEK_* macros are defined. */ int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET }; +/* Check that the various *_FILENO macros are defined. */ +#if ! (defined STDIN_FILENO \ + && (STDIN_FILENO + STDOUT_FILENO + STDERR_FILENO == 3)) +missing or broken *_FILENO macros +#endif + /* Check that the types are all defined. */ size_t t1; ssize_t t2; @@ -38,7 +50,7 @@ #endif int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-unsetenv.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-unsetenv.c --- gettext-0.17/gettext-tools/gnulib-tests/test-unsetenv.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-unsetenv.c 2010-02-16 21:32:28.000000000 +0000 @@ -0,0 +1,61 @@ +/* Tests of unsetenv. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Eric Blake , 2009. */ + +#include + +#include + +#include "signature.h" +SIGNATURE_CHECK (unsetenv, int, (char const *)); + +#include +#include +#include + +#include "macros.h" + +int +main (void) +{ + char entry[] = "b=2"; + + /* Test removal when multiple entries present. */ + ASSERT (putenv ((char *) "a=1") == 0); + ASSERT (putenv (entry) == 0); + entry[0] = 'a'; /* Unspecified what getenv("a") would be at this point. */ + ASSERT (unsetenv ("a") == 0); /* Both entries will be removed. */ + ASSERT (getenv ("a") == NULL); + ASSERT (unsetenv ("a") == 0); + + /* Required to fail with EINVAL. */ + errno = 0; + ASSERT (unsetenv ("") == -1); + ASSERT (errno == EINVAL); + errno = 0; + ASSERT (unsetenv ("a=b") == -1); + ASSERT (errno == EINVAL); +#if 0 + /* glibc and gnulib's implementation guarantee this, but POSIX no + longer requires it: http://austingroupbugs.net/view.php?id=185 */ + errno = 0; + ASSERT (unsetenv (NULL) == -1); + ASSERT (errno == EINVAL); +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-vasnprintf.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasnprintf.c --- gettext-0.17/gettext-tools/gnulib-tests/test-vasnprintf.c 2007-10-26 00:52:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasnprintf.c 2010-04-25 09:21:51.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of vasnprintf() and asnprintf() functions. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,35 +21,13 @@ #include "vasnprintf.h" #include -#include #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) - -static char * -my_asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) -{ - va_list args; - char *ret; - - va_start (args, format); - ret = vasnprintf (resultbuf, lengthp, format, args); - va_end (args); - return ret; -} +#include "macros.h" static void -test_vasnprintf () +test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...)) { char buf[8]; int size; @@ -76,46 +54,35 @@ ASSERT (strcmp (result, "12345") == 0); ASSERT (length == 5); if (size < 6) - ASSERT (result != buf); + ASSERT (result != buf); ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); if (result != buf) - free (result); + free (result); } } -static void -test_asnprintf () +static char * +my_asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) { - char buf[8]; - int size; + va_list args; + char *ret; - for (size = 0; size <= 8; size++) - { - size_t length = size; - char *result = asnprintf (NULL, &length, "%d", 12345); - ASSERT (result != NULL); - ASSERT (strcmp (result, "12345") == 0); - ASSERT (length == 5); - free (result); - } + va_start (args, format); + ret = vasnprintf (resultbuf, lengthp, format, args); + va_end (args); + return ret; +} - for (size = 0; size <= 8; size++) - { - size_t length; - char *result; +static void +test_vasnprintf () +{ + test_function (my_asnprintf); +} - memcpy (buf, "DEADBEEF", 8); - length = size; - result = asnprintf (buf, &length, "%d", 12345); - ASSERT (result != NULL); - ASSERT (strcmp (result, "12345") == 0); - ASSERT (length == 5); - if (size < 6) - ASSERT (result != buf); - ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); - if (result != buf) - free (result); - } +static void +test_asnprintf () +{ + test_function (asnprintf); } int diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-vasnprintf-posix.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasnprintf-posix.c --- gettext-0.17/gettext-tools/gnulib-tests/test-vasnprintf-posix.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasnprintf-posix.c 2010-04-25 09:21:51.000000000 +0000 @@ -0,0 +1,3712 @@ +/* Test of POSIX compatible vasnprintf() and asnprintf() functions. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include "vasnprintf.h" + +#include +#include +#include +#include +#include +#include +#include + +#include "macros.h" +#include "nan.h" + +/* The SGI MIPS floating-point format does not distinguish 0.0 and -0.0. */ +static int +have_minus_zero () +{ + static double plus_zero = 0.0; + double minus_zero = - plus_zero; + return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0; +} + +/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0. + So we use -zerod instead. */ +double zerod = 0.0; + +/* On HP-UX 10.20, negating 0.0L does not yield -0.0L. + So we use minus_zerol instead. + IRIX cc can't put -0.0L into .data, but can compute at runtime. + Note that the expression -LDBL_MIN * LDBL_MIN does not work on other + platforms, such as when cross-compiling to PowerPC on MacOS X 10.5. */ +#if defined __hpux || defined __sgi +static long double +compute_minus_zerol (void) +{ + return -LDBL_MIN * LDBL_MIN; +} +# define minus_zerol compute_minus_zerol () +#else +long double minus_zerol = -0.0L; +#endif + +/* Representation of an 80-bit 'long double' as an initializer for a sequence + of 'unsigned int' words. */ +#ifdef WORDS_BIGENDIAN +# define LDBL80_WORDS(exponent,manthi,mantlo) \ + { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ + ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \ + (unsigned int) (mantlo) << 16 \ + } +#else +# define LDBL80_WORDS(exponent,manthi,mantlo) \ + { mantlo, manthi, exponent } +#endif + +static int +strmatch (const char *pattern, const char *string) +{ + if (strlen (pattern) != strlen (string)) + return 0; + for (; *pattern != '\0'; pattern++, string++) + if (*pattern != '*' && *string != *pattern) + return 0; + return 1; +} + +/* Test whether string[start_index..end_index-1] is a valid textual + representation of NaN. */ +static int +strisnan (const char *string, size_t start_index, size_t end_index, int uppercase) +{ + if (start_index < end_index) + { + if (string[start_index] == '-') + start_index++; + if (start_index + 3 <= end_index + && memcmp (string + start_index, uppercase ? "NAN" : "nan", 3) == 0) + { + start_index += 3; + if (start_index == end_index + || (string[start_index] == '(' && string[end_index - 1] == ')')) + return 1; + } + } + return 0; +} + +static void +test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...)) +{ + char buf[8]; + int size; + + /* Test return value convention. */ + + for (size = 0; size <= 8; size++) + { + size_t length = size; + char *result = my_asnprintf (NULL, &length, "%d", 12345); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12345") == 0); + ASSERT (length == 5); + free (result); + } + + for (size = 0; size <= 8; size++) + { + size_t length; + char *result; + + memcpy (buf, "DEADBEEF", 8); + length = size; + result = my_asnprintf (buf, &length, "%d", 12345); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12345") == 0); + ASSERT (length == 5); + if (size < 6) + ASSERT (result != buf); + ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); + if (result != buf) + free (result); + } + + /* Test support of size specifiers as in C99. */ + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%ju %d", (uintmax_t) 12345671, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12345671 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%zu %d", (size_t) 12345672, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12345672 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12345673 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", (long double) 1.5, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.5 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal + output of floating-point numbers. */ + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", 3.1416015625, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.922p+1 33") == 0 + || strcmp (result, "0x3.244p+0 33") == 0 + || strcmp (result, "0x6.488p-1 33") == 0 + || strcmp (result, "0xc.91p-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%A %d", -3.1416015625, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0X1.922P+1 33") == 0 + || strcmp (result, "-0X3.244P+0 33") == 0 + || strcmp (result, "-0X6.488P-1 33") == 0 + || strcmp (result, "-0XC.91P-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x0p+0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", -zerod, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0x0p+0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%a %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding near the decimal point. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.0a %d", 1.5, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x2p+0 33") == 0 + || strcmp (result, "0x3p-1 33") == 0 + || strcmp (result, "0x6p-2 33") == 0 + || strcmp (result, "0xcp-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 0. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.0a %d", 1.51, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x2p+0 33") == 0 + || strcmp (result, "0x3p-1 33") == 0 + || strcmp (result, "0x6p-2 33") == 0 + || strcmp (result, "0xcp-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 1. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.1a %d", 1.51, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.8p+0 33") == 0 + || strcmp (result, "0x3.0p-1 33") == 0 + || strcmp (result, "0x6.1p-2 33") == 0 + || strcmp (result, "0xc.1p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 2. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2a %d", 1.51, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.83p+0 33") == 0 + || strcmp (result, "0x3.05p-1 33") == 0 + || strcmp (result, "0x6.0ap-2 33") == 0 + || strcmp (result, "0xc.14p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 3. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.3a %d", 1.51, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.829p+0 33") == 0 + || strcmp (result, "0x3.052p-1 33") == 0 + || strcmp (result, "0x6.0a4p-2 33") == 0 + || strcmp (result, "0xc.148p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding can turn a ...FFF into a ...000. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.3a %d", 1.49999, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.800p+0 33") == 0 + || strcmp (result, "0x3.000p-1 33") == 0 + || strcmp (result, "0x6.000p-2 33") == 0 + || strcmp (result, "0xc.000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding can turn a ...FFF into a ...000. + This shows a MacOS X 10.3.9 (Darwin 7.9) bug. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.1a %d", 1.999, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.0p+1 33") == 0 + || strcmp (result, "0x2.0p+0 33") == 0 + || strcmp (result, "0x4.0p-1 33") == 0 + || strcmp (result, "0x8.0p-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 0x1.cp+0 33") == 0 + || strcmp (result, " 0x3.8p-1 33") == 0 + || strcmp (result, " 0x7p-2 33") == 0 + || strcmp (result, " 0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.10a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.c000000000p+0 33") == 0 + || strcmp (result, "0x3.8000000000p-1 33") == 0 + || strcmp (result, "0x7.0000000000p-2 33") == 0 + || strcmp (result, "0xe.0000000000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Large precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.50a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.c0000000000000000000000000000000000000000000000000p+0 33") == 0 + || strcmp (result, "0x3.80000000000000000000000000000000000000000000000000p-1 33") == 0 + || strcmp (result, "0x7.00000000000000000000000000000000000000000000000000p-2 33") == 0 + || strcmp (result, "0xe.00000000000000000000000000000000000000000000000000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.cp+0 33") == 0 + || strcmp (result, "0x3.8p-1 33") == 0 + || strcmp (result, "0x7p-2 33") == 0 + || strcmp (result, "0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+0x1.cp+0 33") == 0 + || strcmp (result, "+0x3.8p-1 33") == 0 + || strcmp (result, "+0x7p-2 33") == 0 + || strcmp (result, "+0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 0x1.cp+0 33") == 0 + || strcmp (result, " 0x3.8p-1 33") == 0 + || strcmp (result, " 0x7p-2 33") == 0 + || strcmp (result, " 0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.cp+0 33") == 0 + || strcmp (result, "0x3.8p-1 33") == 0 + || strcmp (result, "0x7.p-2 33") == 0 + || strcmp (result, "0xe.p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#a %d", 1.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.p+0 33") == 0 + || strcmp (result, "0x2.p-1 33") == 0 + || strcmp (result, "0x4.p-2 33") == 0 + || strcmp (result, "0x8.p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010a %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x001.cp+0 33") == 0 + || strcmp (result, "0x003.8p-1 33") == 0 + || strcmp (result, "0x00007p-2 33") == 0 + || strcmp (result, "0x0000ep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010a %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + /* "0000000inf 33" is not a valid result; see + */ + ASSERT (strcmp (result, " inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050a %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + /* "0000000nan 33" is not a valid result; see + */ + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", 3.1416015625L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.922p+1 33") == 0 + || strcmp (result, "0x3.244p+0 33") == 0 + || strcmp (result, "0x6.488p-1 33") == 0 + || strcmp (result, "0xc.91p-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LA %d", -3.1416015625L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0X1.922P+1 33") == 0 + || strcmp (result, "-0X3.244P+0 33") == 0 + || strcmp (result, "-0X6.488P-1 33") == 0 + || strcmp (result, "-0XC.91P-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x0p+0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", minus_zerol, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0x0p+0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) + { /* Quiet NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { + /* Signalling NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities, + Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in + Intel IA-64 Architecture Software Developer's Manual, Volume 1: + Application Architecture. + Table 5-2 "Floating-Point Register Encodings" + Figure 5-6 "Memory to Floating-Point Register Data Translation" + */ + { /* Pseudo-NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Infinity. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Zero. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Unnormalized number. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Denormal. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%La %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#endif + + { /* Rounding near the decimal point. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.0La %d", 1.5L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x2p+0 33") == 0 + || strcmp (result, "0x3p-1 33") == 0 + || strcmp (result, "0x6p-2 33") == 0 + || strcmp (result, "0xcp-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 0. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.0La %d", 1.51L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x2p+0 33") == 0 + || strcmp (result, "0x3p-1 33") == 0 + || strcmp (result, "0x6p-2 33") == 0 + || strcmp (result, "0xcp-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 1. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.1La %d", 1.51L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.8p+0 33") == 0 + || strcmp (result, "0x3.0p-1 33") == 0 + || strcmp (result, "0x6.1p-2 33") == 0 + || strcmp (result, "0xc.1p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 2. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2La %d", 1.51L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.83p+0 33") == 0 + || strcmp (result, "0x3.05p-1 33") == 0 + || strcmp (result, "0x6.0ap-2 33") == 0 + || strcmp (result, "0xc.14p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding with precision 3. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.3La %d", 1.51L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.829p+0 33") == 0 + || strcmp (result, "0x3.052p-1 33") == 0 + || strcmp (result, "0x6.0a4p-2 33") == 0 + || strcmp (result, "0xc.148p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding can turn a ...FFF into a ...000. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.3La %d", 1.49999L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.800p+0 33") == 0 + || strcmp (result, "0x3.000p-1 33") == 0 + || strcmp (result, "0x6.000p-2 33") == 0 + || strcmp (result, "0xc.000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Rounding can turn a ...FFF into a ...000. + This shows a MacOS X 10.3.9 (Darwin 7.9) bug and a + glibc 2.4 bug . */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.1La %d", 1.999L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.0p+1 33") == 0 + || strcmp (result, "0x2.0p+0 33") == 0 + || strcmp (result, "0x4.0p-1 33") == 0 + || strcmp (result, "0x8.0p-2 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 0x1.cp+0 33") == 0 + || strcmp (result, " 0x3.8p-1 33") == 0 + || strcmp (result, " 0x7p-2 33") == 0 + || strcmp (result, " 0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.10La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.c000000000p+0 33") == 0 + || strcmp (result, "0x3.8000000000p-1 33") == 0 + || strcmp (result, "0x7.0000000000p-2 33") == 0 + || strcmp (result, "0xe.0000000000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Large precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.50La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.c0000000000000000000000000000000000000000000000000p+0 33") == 0 + || strcmp (result, "0x3.80000000000000000000000000000000000000000000000000p-1 33") == 0 + || strcmp (result, "0x7.00000000000000000000000000000000000000000000000000p-2 33") == 0 + || strcmp (result, "0xe.00000000000000000000000000000000000000000000000000p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.cp+0 33") == 0 + || strcmp (result, "0x3.8p-1 33") == 0 + || strcmp (result, "0x7p-2 33") == 0 + || strcmp (result, "0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+0x1.cp+0 33") == 0 + || strcmp (result, "+0x3.8p-1 33") == 0 + || strcmp (result, "+0x7p-2 33") == 0 + || strcmp (result, "+0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 0x1.cp+0 33") == 0 + || strcmp (result, " 0x3.8p-1 33") == 0 + || strcmp (result, " 0x7p-2 33") == 0 + || strcmp (result, " 0xep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.cp+0 33") == 0 + || strcmp (result, "0x3.8p-1 33") == 0 + || strcmp (result, "0x7.p-2 33") == 0 + || strcmp (result, "0xe.p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#La %d", 1.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x1.p+0 33") == 0 + || strcmp (result, "0x2.p-1 33") == 0 + || strcmp (result, "0x4.p-2 33") == 0 + || strcmp (result, "0x8.p-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010La %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0x001.cp+0 33") == 0 + || strcmp (result, "0x003.8p-1 33") == 0 + || strcmp (result, "0x00007p-2 33") == 0 + || strcmp (result, "0x0000ep-3 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010La %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + /* "0000000inf 33" is not a valid result; see + */ + ASSERT (strcmp (result, " inf 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050La %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + /* "0000000nan 33" is not a valid result; see + */ + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %f format directive. */ + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", 12.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", 1234567.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234567.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { double value; const char *string; } data[] = + { + { 1.234321234321234e-37, "0.000000" }, + { 1.234321234321234e-36, "0.000000" }, + { 1.234321234321234e-35, "0.000000" }, + { 1.234321234321234e-34, "0.000000" }, + { 1.234321234321234e-33, "0.000000" }, + { 1.234321234321234e-32, "0.000000" }, + { 1.234321234321234e-31, "0.000000" }, + { 1.234321234321234e-30, "0.000000" }, + { 1.234321234321234e-29, "0.000000" }, + { 1.234321234321234e-28, "0.000000" }, + { 1.234321234321234e-27, "0.000000" }, + { 1.234321234321234e-26, "0.000000" }, + { 1.234321234321234e-25, "0.000000" }, + { 1.234321234321234e-24, "0.000000" }, + { 1.234321234321234e-23, "0.000000" }, + { 1.234321234321234e-22, "0.000000" }, + { 1.234321234321234e-21, "0.000000" }, + { 1.234321234321234e-20, "0.000000" }, + { 1.234321234321234e-19, "0.000000" }, + { 1.234321234321234e-18, "0.000000" }, + { 1.234321234321234e-17, "0.000000" }, + { 1.234321234321234e-16, "0.000000" }, + { 1.234321234321234e-15, "0.000000" }, + { 1.234321234321234e-14, "0.000000" }, + { 1.234321234321234e-13, "0.000000" }, + { 1.234321234321234e-12, "0.000000" }, + { 1.234321234321234e-11, "0.000000" }, + { 1.234321234321234e-10, "0.000000" }, + { 1.234321234321234e-9, "0.000000" }, + { 1.234321234321234e-8, "0.000000" }, + { 1.234321234321234e-7, "0.000000" }, + { 1.234321234321234e-6, "0.000001" }, + { 1.234321234321234e-5, "0.000012" }, + { 1.234321234321234e-4, "0.000123" }, + { 1.234321234321234e-3, "0.001234" }, + { 1.234321234321234e-2, "0.012343" }, + { 1.234321234321234e-1, "0.123432" }, + { 1.234321234321234, "1.234321" }, + { 1.234321234321234e1, "12.343212" }, + { 1.234321234321234e2, "123.432123" }, + { 1.234321234321234e3, "1234.321234" }, + { 1.234321234321234e4, "12343.212343" }, + { 1.234321234321234e5, "123432.123432" }, + { 1.234321234321234e6, "1234321.234321" }, + { 1.234321234321234e7, "12343212.343212" }, + { 1.234321234321234e8, "123432123.432123" }, + { 1.234321234321234e9, "1234321234.321234" }, + { 1.234321234321234e10, "12343212343.2123**" }, + { 1.234321234321234e11, "123432123432.123***" }, + { 1.234321234321234e12, "1234321234321.23****" }, + { 1.234321234321234e13, "12343212343212.3*****" }, + { 1.234321234321234e14, "123432123432123.******" }, + { 1.234321234321234e15, "1234321234321234.000000" }, + { 1.234321234321234e16, "123432123432123**.000000" }, + { 1.234321234321234e17, "123432123432123***.000000" }, + { 1.234321234321234e18, "123432123432123****.000000" }, + { 1.234321234321234e19, "123432123432123*****.000000" }, + { 1.234321234321234e20, "123432123432123******.000000" }, + { 1.234321234321234e21, "123432123432123*******.000000" }, + { 1.234321234321234e22, "123432123432123********.000000" }, + { 1.234321234321234e23, "123432123432123*********.000000" }, + { 1.234321234321234e24, "123432123432123**********.000000" }, + { 1.234321234321234e25, "123432123432123***********.000000" }, + { 1.234321234321234e26, "123432123432123************.000000" }, + { 1.234321234321234e27, "123432123432123*************.000000" }, + { 1.234321234321234e28, "123432123432123**************.000000" }, + { 1.234321234321234e29, "123432123432123***************.000000" }, + { 1.234321234321234e30, "123432123432123****************.000000" }, + { 1.234321234321234e31, "123432123432123*****************.000000" }, + { 1.234321234321234e32, "123432123432123******************.000000" }, + { 1.234321234321234e33, "123432123432123*******************.000000" }, + { 1.234321234321234e34, "123432123432123********************.000000" }, + { 1.234321234321234e35, "123432123432123*********************.000000" }, + { 1.234321234321234e36, "123432123432123**********************.000000" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f", data[k].value); + ASSERT (result != NULL); + ASSERT (strmatch (data[k].string, result)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", -0.03125, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.031250 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", -zerod, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%f %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.f %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2. 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015f %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00001234.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015f %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050f %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.f %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2f %d", 999.951, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2f %d", 999.996, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000.00 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", 12.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", 1234567.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234567.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { long double value; const char *string; } data[] = + { + { 1.234321234321234e-37L, "0.000000" }, + { 1.234321234321234e-36L, "0.000000" }, + { 1.234321234321234e-35L, "0.000000" }, + { 1.234321234321234e-34L, "0.000000" }, + { 1.234321234321234e-33L, "0.000000" }, + { 1.234321234321234e-32L, "0.000000" }, + { 1.234321234321234e-31L, "0.000000" }, + { 1.234321234321234e-30L, "0.000000" }, + { 1.234321234321234e-29L, "0.000000" }, + { 1.234321234321234e-28L, "0.000000" }, + { 1.234321234321234e-27L, "0.000000" }, + { 1.234321234321234e-26L, "0.000000" }, + { 1.234321234321234e-25L, "0.000000" }, + { 1.234321234321234e-24L, "0.000000" }, + { 1.234321234321234e-23L, "0.000000" }, + { 1.234321234321234e-22L, "0.000000" }, + { 1.234321234321234e-21L, "0.000000" }, + { 1.234321234321234e-20L, "0.000000" }, + { 1.234321234321234e-19L, "0.000000" }, + { 1.234321234321234e-18L, "0.000000" }, + { 1.234321234321234e-17L, "0.000000" }, + { 1.234321234321234e-16L, "0.000000" }, + { 1.234321234321234e-15L, "0.000000" }, + { 1.234321234321234e-14L, "0.000000" }, + { 1.234321234321234e-13L, "0.000000" }, + { 1.234321234321234e-12L, "0.000000" }, + { 1.234321234321234e-11L, "0.000000" }, + { 1.234321234321234e-10L, "0.000000" }, + { 1.234321234321234e-9L, "0.000000" }, + { 1.234321234321234e-8L, "0.000000" }, + { 1.234321234321234e-7L, "0.000000" }, + { 1.234321234321234e-6L, "0.000001" }, + { 1.234321234321234e-5L, "0.000012" }, + { 1.234321234321234e-4L, "0.000123" }, + { 1.234321234321234e-3L, "0.001234" }, + { 1.234321234321234e-2L, "0.012343" }, + { 1.234321234321234e-1L, "0.123432" }, + { 1.234321234321234L, "1.234321" }, + { 1.234321234321234e1L, "12.343212" }, + { 1.234321234321234e2L, "123.432123" }, + { 1.234321234321234e3L, "1234.321234" }, + { 1.234321234321234e4L, "12343.212343" }, + { 1.234321234321234e5L, "123432.123432" }, + { 1.234321234321234e6L, "1234321.234321" }, + { 1.234321234321234e7L, "12343212.343212" }, + { 1.234321234321234e8L, "123432123.432123" }, + { 1.234321234321234e9L, "1234321234.321234" }, + { 1.234321234321234e10L, "12343212343.2123**" }, + { 1.234321234321234e11L, "123432123432.123***" }, + { 1.234321234321234e12L, "1234321234321.23****" }, + { 1.234321234321234e13L, "12343212343212.3*****" }, + { 1.234321234321234e14L, "123432123432123.******" }, + { 1.234321234321234e15L, "1234321234321234.000000" }, + { 1.234321234321234e16L, "123432123432123**.000000" }, + { 1.234321234321234e17L, "123432123432123***.000000" }, + { 1.234321234321234e18L, "123432123432123****.000000" }, + { 1.234321234321234e19L, "123432123432123*****.000000" }, + { 1.234321234321234e20L, "123432123432123******.000000" }, + { 1.234321234321234e21L, "123432123432123*******.000000" }, + { 1.234321234321234e22L, "123432123432123********.000000" }, + { 1.234321234321234e23L, "123432123432123*********.000000" }, + { 1.234321234321234e24L, "123432123432123**********.000000" }, + { 1.234321234321234e25L, "123432123432123***********.000000" }, + { 1.234321234321234e26L, "123432123432123************.000000" }, + { 1.234321234321234e27L, "123432123432123*************.000000" }, + { 1.234321234321234e28L, "123432123432123**************.000000" }, + { 1.234321234321234e29L, "123432123432123***************.000000" }, + { 1.234321234321234e30L, "123432123432123****************.000000" }, + { 1.234321234321234e31L, "123432123432123*****************.000000" }, + { 1.234321234321234e32L, "123432123432123******************.000000" }, + { 1.234321234321234e33L, "123432123432123*******************.000000" }, + { 1.234321234321234e34L, "123432123432123********************.000000" }, + { 1.234321234321234e35L, "123432123432123*********************.000000" }, + { 1.234321234321234e36L, "123432123432123**********************.000000" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf", data[k].value); + ASSERT (result != NULL); + ASSERT (strmatch (data[k].string, result)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", -0.03125L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.031250 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", minus_zerol, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) + { /* Quiet NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { + /* Signalling NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities, + Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in + Intel IA-64 Architecture Software Developer's Manual, Volume 1: + Application Architecture. + Table 5-2 "Floating-Point Register Encodings" + Figure 5-6 "Memory to Floating-Point Register Data Translation" + */ + { /* Pseudo-NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Infinity. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Zero. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Unnormalized number. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Denormal. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lf %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#endif + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.Lf %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2. 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015Lf %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00001234.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015Lf %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050Lf %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.Lf %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2Lf %d", 999.951L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2Lf %d", 999.996L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000.00 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %F format directive. */ + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", 12.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", 1234567.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234567.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", -0.03125, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.031250 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", -zerod, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "INF 33") == 0 + || strcmp (result, "INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-INF 33") == 0 + || strcmp (result, "-INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%F %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 1) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015F %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00001234.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015F %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -INF 33") == 0 + || strcmp (result, " -INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.F %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2F %d", 999.951, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2F %d", 999.996, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000.00 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", 12.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.750000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", 1234567.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234567.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", -0.03125L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.031250 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", minus_zerol, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "INF 33") == 0 + || strcmp (result, "INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-INF 33") == 0 + || strcmp (result, "-INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%LF %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 1) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015LF %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00001234.000000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015LF %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -INF 33") == 0 + || strcmp (result, " -INFINITY 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.LF %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2LF %d", 999.951L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.2LF %d", 999.996L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000.00 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %e format directive. */ + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", 12.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.275000e+01 33") == 0 + || strcmp (result, "1.275000e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", 1234567.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.234567e+06 33") == 0 + || strcmp (result, "1.234567e+006 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { double value; const char *string; } data[] = + { + { 1.234321234321234e-37, "1.234321e-37" }, + { 1.234321234321234e-36, "1.234321e-36" }, + { 1.234321234321234e-35, "1.234321e-35" }, + { 1.234321234321234e-34, "1.234321e-34" }, + { 1.234321234321234e-33, "1.234321e-33" }, + { 1.234321234321234e-32, "1.234321e-32" }, + { 1.234321234321234e-31, "1.234321e-31" }, + { 1.234321234321234e-30, "1.234321e-30" }, + { 1.234321234321234e-29, "1.234321e-29" }, + { 1.234321234321234e-28, "1.234321e-28" }, + { 1.234321234321234e-27, "1.234321e-27" }, + { 1.234321234321234e-26, "1.234321e-26" }, + { 1.234321234321234e-25, "1.234321e-25" }, + { 1.234321234321234e-24, "1.234321e-24" }, + { 1.234321234321234e-23, "1.234321e-23" }, + { 1.234321234321234e-22, "1.234321e-22" }, + { 1.234321234321234e-21, "1.234321e-21" }, + { 1.234321234321234e-20, "1.234321e-20" }, + { 1.234321234321234e-19, "1.234321e-19" }, + { 1.234321234321234e-18, "1.234321e-18" }, + { 1.234321234321234e-17, "1.234321e-17" }, + { 1.234321234321234e-16, "1.234321e-16" }, + { 1.234321234321234e-15, "1.234321e-15" }, + { 1.234321234321234e-14, "1.234321e-14" }, + { 1.234321234321234e-13, "1.234321e-13" }, + { 1.234321234321234e-12, "1.234321e-12" }, + { 1.234321234321234e-11, "1.234321e-11" }, + { 1.234321234321234e-10, "1.234321e-10" }, + { 1.234321234321234e-9, "1.234321e-09" }, + { 1.234321234321234e-8, "1.234321e-08" }, + { 1.234321234321234e-7, "1.234321e-07" }, + { 1.234321234321234e-6, "1.234321e-06" }, + { 1.234321234321234e-5, "1.234321e-05" }, + { 1.234321234321234e-4, "1.234321e-04" }, + { 1.234321234321234e-3, "1.234321e-03" }, + { 1.234321234321234e-2, "1.234321e-02" }, + { 1.234321234321234e-1, "1.234321e-01" }, + { 1.234321234321234, "1.234321e+00" }, + { 1.234321234321234e1, "1.234321e+01" }, + { 1.234321234321234e2, "1.234321e+02" }, + { 1.234321234321234e3, "1.234321e+03" }, + { 1.234321234321234e4, "1.234321e+04" }, + { 1.234321234321234e5, "1.234321e+05" }, + { 1.234321234321234e6, "1.234321e+06" }, + { 1.234321234321234e7, "1.234321e+07" }, + { 1.234321234321234e8, "1.234321e+08" }, + { 1.234321234321234e9, "1.234321e+09" }, + { 1.234321234321234e10, "1.234321e+10" }, + { 1.234321234321234e11, "1.234321e+11" }, + { 1.234321234321234e12, "1.234321e+12" }, + { 1.234321234321234e13, "1.234321e+13" }, + { 1.234321234321234e14, "1.234321e+14" }, + { 1.234321234321234e15, "1.234321e+15" }, + { 1.234321234321234e16, "1.234321e+16" }, + { 1.234321234321234e17, "1.234321e+17" }, + { 1.234321234321234e18, "1.234321e+18" }, + { 1.234321234321234e19, "1.234321e+19" }, + { 1.234321234321234e20, "1.234321e+20" }, + { 1.234321234321234e21, "1.234321e+21" }, + { 1.234321234321234e22, "1.234321e+22" }, + { 1.234321234321234e23, "1.234321e+23" }, + { 1.234321234321234e24, "1.234321e+24" }, + { 1.234321234321234e25, "1.234321e+25" }, + { 1.234321234321234e26, "1.234321e+26" }, + { 1.234321234321234e27, "1.234321e+27" }, + { 1.234321234321234e28, "1.234321e+28" }, + { 1.234321234321234e29, "1.234321e+29" }, + { 1.234321234321234e30, "1.234321e+30" }, + { 1.234321234321234e31, "1.234321e+31" }, + { 1.234321234321234e32, "1.234321e+32" }, + { 1.234321234321234e33, "1.234321e+33" }, + { 1.234321234321234e34, "1.234321e+34" }, + { 1.234321234321234e35, "1.234321e+35" }, + { 1.234321234321234e36, "1.234321e+36" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e", data[k].value); + const char *expected = data[k].string; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0 + /* Some implementations produce exponents with 3 digits. */ + || (strlen (result) == strlen (expected) + 1 + && memcmp (result, expected, strlen (expected) - 2) == 0 + && result[strlen (expected) - 2] == '0' + && strcmp (result + strlen (expected) - 1, + expected + strlen (expected) - 2) + == 0)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", -0.03125, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-3.125000e-02 33") == 0 + || strcmp (result, "-3.125000e-002 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000e+00 33") == 0 + || strcmp (result, "0.000000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", -zerod, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000e+00 33") == 0 + || strcmp (result, "-0.000000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%e %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%15e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000e+00 33") == 0 + || strcmp (result, " 1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-15e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000e+00 33") == 0 + || strcmp (result, "1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.750000e+00 33") == 0 + || strcmp (result, "+1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000e+00 33") == 0 + || strcmp (result, " 1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000e+00 33") == 0 + || strcmp (result, "1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.e %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2.e+00 33") == 0 + || strcmp (result, "2.e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.e %d", 9.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.e+01 33") == 0 + || strcmp (result, "1.e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015e %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0001.234000e+03 33") == 0 + || strcmp (result, "001.234000e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015e %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050e %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.e %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1e+03 33") == 0 + || strcmp (result, "1e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4e %d", 999.951, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "9.9995e+02 33") == 0 + || strcmp (result, "9.9995e+002 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4e %d", 999.996, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.0000e+03 33") == 0 + || strcmp (result, "1.0000e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", 12.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.275000e+01 33") == 0 + || strcmp (result, "1.275000e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", 1234567.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.234567e+06 33") == 0 + || strcmp (result, "1.234567e+006 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { long double value; const char *string; } data[] = + { + { 1.234321234321234e-37L, "1.234321e-37" }, + { 1.234321234321234e-36L, "1.234321e-36" }, + { 1.234321234321234e-35L, "1.234321e-35" }, + { 1.234321234321234e-34L, "1.234321e-34" }, + { 1.234321234321234e-33L, "1.234321e-33" }, + { 1.234321234321234e-32L, "1.234321e-32" }, + { 1.234321234321234e-31L, "1.234321e-31" }, + { 1.234321234321234e-30L, "1.234321e-30" }, + { 1.234321234321234e-29L, "1.234321e-29" }, + { 1.234321234321234e-28L, "1.234321e-28" }, + { 1.234321234321234e-27L, "1.234321e-27" }, + { 1.234321234321234e-26L, "1.234321e-26" }, + { 1.234321234321234e-25L, "1.234321e-25" }, + { 1.234321234321234e-24L, "1.234321e-24" }, + { 1.234321234321234e-23L, "1.234321e-23" }, + { 1.234321234321234e-22L, "1.234321e-22" }, + { 1.234321234321234e-21L, "1.234321e-21" }, + { 1.234321234321234e-20L, "1.234321e-20" }, + { 1.234321234321234e-19L, "1.234321e-19" }, + { 1.234321234321234e-18L, "1.234321e-18" }, + { 1.234321234321234e-17L, "1.234321e-17" }, + { 1.234321234321234e-16L, "1.234321e-16" }, + { 1.234321234321234e-15L, "1.234321e-15" }, + { 1.234321234321234e-14L, "1.234321e-14" }, + { 1.234321234321234e-13L, "1.234321e-13" }, + { 1.234321234321234e-12L, "1.234321e-12" }, + { 1.234321234321234e-11L, "1.234321e-11" }, + { 1.234321234321234e-10L, "1.234321e-10" }, + { 1.234321234321234e-9L, "1.234321e-09" }, + { 1.234321234321234e-8L, "1.234321e-08" }, + { 1.234321234321234e-7L, "1.234321e-07" }, + { 1.234321234321234e-6L, "1.234321e-06" }, + { 1.234321234321234e-5L, "1.234321e-05" }, + { 1.234321234321234e-4L, "1.234321e-04" }, + { 1.234321234321234e-3L, "1.234321e-03" }, + { 1.234321234321234e-2L, "1.234321e-02" }, + { 1.234321234321234e-1L, "1.234321e-01" }, + { 1.234321234321234L, "1.234321e+00" }, + { 1.234321234321234e1L, "1.234321e+01" }, + { 1.234321234321234e2L, "1.234321e+02" }, + { 1.234321234321234e3L, "1.234321e+03" }, + { 1.234321234321234e4L, "1.234321e+04" }, + { 1.234321234321234e5L, "1.234321e+05" }, + { 1.234321234321234e6L, "1.234321e+06" }, + { 1.234321234321234e7L, "1.234321e+07" }, + { 1.234321234321234e8L, "1.234321e+08" }, + { 1.234321234321234e9L, "1.234321e+09" }, + { 1.234321234321234e10L, "1.234321e+10" }, + { 1.234321234321234e11L, "1.234321e+11" }, + { 1.234321234321234e12L, "1.234321e+12" }, + { 1.234321234321234e13L, "1.234321e+13" }, + { 1.234321234321234e14L, "1.234321e+14" }, + { 1.234321234321234e15L, "1.234321e+15" }, + { 1.234321234321234e16L, "1.234321e+16" }, + { 1.234321234321234e17L, "1.234321e+17" }, + { 1.234321234321234e18L, "1.234321e+18" }, + { 1.234321234321234e19L, "1.234321e+19" }, + { 1.234321234321234e20L, "1.234321e+20" }, + { 1.234321234321234e21L, "1.234321e+21" }, + { 1.234321234321234e22L, "1.234321e+22" }, + { 1.234321234321234e23L, "1.234321e+23" }, + { 1.234321234321234e24L, "1.234321e+24" }, + { 1.234321234321234e25L, "1.234321e+25" }, + { 1.234321234321234e26L, "1.234321e+26" }, + { 1.234321234321234e27L, "1.234321e+27" }, + { 1.234321234321234e28L, "1.234321e+28" }, + { 1.234321234321234e29L, "1.234321e+29" }, + { 1.234321234321234e30L, "1.234321e+30" }, + { 1.234321234321234e31L, "1.234321e+31" }, + { 1.234321234321234e32L, "1.234321e+32" }, + { 1.234321234321234e33L, "1.234321e+33" }, + { 1.234321234321234e34L, "1.234321e+34" }, + { 1.234321234321234e35L, "1.234321e+35" }, + { 1.234321234321234e36L, "1.234321e+36" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le", data[k].value); + const char *expected = data[k].string; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0 + /* Some implementations produce exponents with 3 digits. */ + || (strlen (result) == strlen (expected) + 1 + && memcmp (result, expected, strlen (expected) - 2) == 0 + && result[strlen (expected) - 2] == '0' + && strcmp (result + strlen (expected) - 1, + expected + strlen (expected) - 2) + == 0)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", -0.03125L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-3.125000e-02 33") == 0 + || strcmp (result, "-3.125000e-002 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0.000000e+00 33") == 0 + || strcmp (result, "0.000000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", minus_zerol, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0.000000e+00 33") == 0 + || strcmp (result, "-0.000000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) + { /* Quiet NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { + /* Signalling NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities, + Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in + Intel IA-64 Architecture Software Developer's Manual, Volume 1: + Application Architecture. + Table 5-2 "Floating-Point Register Encodings" + Figure 5-6 "Memory to Floating-Point Register Data Translation" + */ + { /* Pseudo-NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Infinity. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Zero. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Unnormalized number. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Denormal. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Le %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#endif + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%15Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000e+00 33") == 0 + || strcmp (result, " 1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-15Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000e+00 33") == 0 + || strcmp (result, "1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.750000e+00 33") == 0 + || strcmp (result, "+1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.750000e+00 33") == 0 + || strcmp (result, " 1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.750000e+00 33") == 0 + || strcmp (result, "1.750000e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.Le %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2.e+00 33") == 0 + || strcmp (result, "2.e+000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.Le %d", 9.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.e+01 33") == 0 + || strcmp (result, "1.e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015Le %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0001.234000e+03 33") == 0 + || strcmp (result, "001.234000e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015Le %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050Le %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.Le %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1e+03 33") == 0 + || strcmp (result, "1e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4Le %d", 999.951L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "9.9995e+02 33") == 0 + || strcmp (result, "9.9995e+002 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4Le %d", 999.996L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.0000e+03 33") == 0 + || strcmp (result, "1.0000e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %g format directive. */ + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", 12.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", 1234567.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.23457e+06 33") == 0 + || strcmp (result, "1.23457e+006 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { double value; const char *string; } data[] = + { + { 1.234321234321234e-37, "1.23432e-37" }, + { 1.234321234321234e-36, "1.23432e-36" }, + { 1.234321234321234e-35, "1.23432e-35" }, + { 1.234321234321234e-34, "1.23432e-34" }, + { 1.234321234321234e-33, "1.23432e-33" }, + { 1.234321234321234e-32, "1.23432e-32" }, + { 1.234321234321234e-31, "1.23432e-31" }, + { 1.234321234321234e-30, "1.23432e-30" }, + { 1.234321234321234e-29, "1.23432e-29" }, + { 1.234321234321234e-28, "1.23432e-28" }, + { 1.234321234321234e-27, "1.23432e-27" }, + { 1.234321234321234e-26, "1.23432e-26" }, + { 1.234321234321234e-25, "1.23432e-25" }, + { 1.234321234321234e-24, "1.23432e-24" }, + { 1.234321234321234e-23, "1.23432e-23" }, + { 1.234321234321234e-22, "1.23432e-22" }, + { 1.234321234321234e-21, "1.23432e-21" }, + { 1.234321234321234e-20, "1.23432e-20" }, + { 1.234321234321234e-19, "1.23432e-19" }, + { 1.234321234321234e-18, "1.23432e-18" }, + { 1.234321234321234e-17, "1.23432e-17" }, + { 1.234321234321234e-16, "1.23432e-16" }, + { 1.234321234321234e-15, "1.23432e-15" }, + { 1.234321234321234e-14, "1.23432e-14" }, + { 1.234321234321234e-13, "1.23432e-13" }, + { 1.234321234321234e-12, "1.23432e-12" }, + { 1.234321234321234e-11, "1.23432e-11" }, + { 1.234321234321234e-10, "1.23432e-10" }, + { 1.234321234321234e-9, "1.23432e-09" }, + { 1.234321234321234e-8, "1.23432e-08" }, + { 1.234321234321234e-7, "1.23432e-07" }, + { 1.234321234321234e-6, "1.23432e-06" }, + { 1.234321234321234e-5, "1.23432e-05" }, + { 1.234321234321234e-4, "0.000123432" }, + { 1.234321234321234e-3, "0.00123432" }, + { 1.234321234321234e-2, "0.0123432" }, + { 1.234321234321234e-1, "0.123432" }, + { 1.234321234321234, "1.23432" }, + { 1.234321234321234e1, "12.3432" }, + { 1.234321234321234e2, "123.432" }, + { 1.234321234321234e3, "1234.32" }, + { 1.234321234321234e4, "12343.2" }, + { 1.234321234321234e5, "123432" }, + { 1.234321234321234e6, "1.23432e+06" }, + { 1.234321234321234e7, "1.23432e+07" }, + { 1.234321234321234e8, "1.23432e+08" }, + { 1.234321234321234e9, "1.23432e+09" }, + { 1.234321234321234e10, "1.23432e+10" }, + { 1.234321234321234e11, "1.23432e+11" }, + { 1.234321234321234e12, "1.23432e+12" }, + { 1.234321234321234e13, "1.23432e+13" }, + { 1.234321234321234e14, "1.23432e+14" }, + { 1.234321234321234e15, "1.23432e+15" }, + { 1.234321234321234e16, "1.23432e+16" }, + { 1.234321234321234e17, "1.23432e+17" }, + { 1.234321234321234e18, "1.23432e+18" }, + { 1.234321234321234e19, "1.23432e+19" }, + { 1.234321234321234e20, "1.23432e+20" }, + { 1.234321234321234e21, "1.23432e+21" }, + { 1.234321234321234e22, "1.23432e+22" }, + { 1.234321234321234e23, "1.23432e+23" }, + { 1.234321234321234e24, "1.23432e+24" }, + { 1.234321234321234e25, "1.23432e+25" }, + { 1.234321234321234e26, "1.23432e+26" }, + { 1.234321234321234e27, "1.23432e+27" }, + { 1.234321234321234e28, "1.23432e+28" }, + { 1.234321234321234e29, "1.23432e+29" }, + { 1.234321234321234e30, "1.23432e+30" }, + { 1.234321234321234e31, "1.23432e+31" }, + { 1.234321234321234e32, "1.23432e+32" }, + { 1.234321234321234e33, "1.23432e+33" }, + { 1.234321234321234e34, "1.23432e+34" }, + { 1.234321234321234e35, "1.23432e+35" }, + { 1.234321234321234e36, "1.23432e+36" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g", data[k].value); + const char *expected = data[k].string; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0 + /* Some implementations produce exponents with 3 digits. */ + || (expected[strlen (expected) - 4] == 'e' + && strlen (result) == strlen (expected) + 1 + && memcmp (result, expected, strlen (expected) - 2) == 0 + && result[strlen (expected) - 2] == '0' + && strcmp (result + strlen (expected) - 1, + expected + strlen (expected) - 2) + == 0)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", -0.03125, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.03125 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", -zerod, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", 1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%g %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.75000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.g %d", 1.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2. 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.g %d", 9.75, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.e+01 33") == 0 + || strcmp (result, "1.e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010g %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0000001234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015g %d", -1.0 / 0.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050g %d", NaNd (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.g %d", 1234.0, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1e+03 33") == 0 + || strcmp (result, "1e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.5g %d", 999.951, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.5g %d", 999.996, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", 12.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "12.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* A larger positive number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", 1234567.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.23457e+06 33") == 0 + || strcmp (result, "1.23457e+006 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Small and large positive numbers. */ + static struct { long double value; const char *string; } data[] = + { + { 1.234321234321234e-37L, "1.23432e-37" }, + { 1.234321234321234e-36L, "1.23432e-36" }, + { 1.234321234321234e-35L, "1.23432e-35" }, + { 1.234321234321234e-34L, "1.23432e-34" }, + { 1.234321234321234e-33L, "1.23432e-33" }, + { 1.234321234321234e-32L, "1.23432e-32" }, + { 1.234321234321234e-31L, "1.23432e-31" }, + { 1.234321234321234e-30L, "1.23432e-30" }, + { 1.234321234321234e-29L, "1.23432e-29" }, + { 1.234321234321234e-28L, "1.23432e-28" }, + { 1.234321234321234e-27L, "1.23432e-27" }, + { 1.234321234321234e-26L, "1.23432e-26" }, + { 1.234321234321234e-25L, "1.23432e-25" }, + { 1.234321234321234e-24L, "1.23432e-24" }, + { 1.234321234321234e-23L, "1.23432e-23" }, + { 1.234321234321234e-22L, "1.23432e-22" }, + { 1.234321234321234e-21L, "1.23432e-21" }, + { 1.234321234321234e-20L, "1.23432e-20" }, + { 1.234321234321234e-19L, "1.23432e-19" }, + { 1.234321234321234e-18L, "1.23432e-18" }, + { 1.234321234321234e-17L, "1.23432e-17" }, + { 1.234321234321234e-16L, "1.23432e-16" }, + { 1.234321234321234e-15L, "1.23432e-15" }, + { 1.234321234321234e-14L, "1.23432e-14" }, + { 1.234321234321234e-13L, "1.23432e-13" }, + { 1.234321234321234e-12L, "1.23432e-12" }, + { 1.234321234321234e-11L, "1.23432e-11" }, + { 1.234321234321234e-10L, "1.23432e-10" }, + { 1.234321234321234e-9L, "1.23432e-09" }, + { 1.234321234321234e-8L, "1.23432e-08" }, + { 1.234321234321234e-7L, "1.23432e-07" }, + { 1.234321234321234e-6L, "1.23432e-06" }, + { 1.234321234321234e-5L, "1.23432e-05" }, + { 1.234321234321234e-4L, "0.000123432" }, + { 1.234321234321234e-3L, "0.00123432" }, + { 1.234321234321234e-2L, "0.0123432" }, + { 1.234321234321234e-1L, "0.123432" }, + { 1.234321234321234L, "1.23432" }, + { 1.234321234321234e1L, "12.3432" }, + { 1.234321234321234e2L, "123.432" }, + { 1.234321234321234e3L, "1234.32" }, + { 1.234321234321234e4L, "12343.2" }, + { 1.234321234321234e5L, "123432" }, + { 1.234321234321234e6L, "1.23432e+06" }, + { 1.234321234321234e7L, "1.23432e+07" }, + { 1.234321234321234e8L, "1.23432e+08" }, + { 1.234321234321234e9L, "1.23432e+09" }, + { 1.234321234321234e10L, "1.23432e+10" }, + { 1.234321234321234e11L, "1.23432e+11" }, + { 1.234321234321234e12L, "1.23432e+12" }, + { 1.234321234321234e13L, "1.23432e+13" }, + { 1.234321234321234e14L, "1.23432e+14" }, + { 1.234321234321234e15L, "1.23432e+15" }, + { 1.234321234321234e16L, "1.23432e+16" }, + { 1.234321234321234e17L, "1.23432e+17" }, + { 1.234321234321234e18L, "1.23432e+18" }, + { 1.234321234321234e19L, "1.23432e+19" }, + { 1.234321234321234e20L, "1.23432e+20" }, + { 1.234321234321234e21L, "1.23432e+21" }, + { 1.234321234321234e22L, "1.23432e+22" }, + { 1.234321234321234e23L, "1.23432e+23" }, + { 1.234321234321234e24L, "1.23432e+24" }, + { 1.234321234321234e25L, "1.23432e+25" }, + { 1.234321234321234e26L, "1.23432e+26" }, + { 1.234321234321234e27L, "1.23432e+27" }, + { 1.234321234321234e28L, "1.23432e+28" }, + { 1.234321234321234e29L, "1.23432e+29" }, + { 1.234321234321234e30L, "1.23432e+30" }, + { 1.234321234321234e31L, "1.23432e+31" }, + { 1.234321234321234e32L, "1.23432e+32" }, + { 1.234321234321234e33L, "1.23432e+33" }, + { 1.234321234321234e34L, "1.23432e+34" }, + { 1.234321234321234e35L, "1.23432e+35" }, + { 1.234321234321234e36L, "1.23432e+36" } + }; + size_t k; + for (k = 0; k < SIZEOF (data); k++) + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg", data[k].value); + const char *expected = data[k].string; + ASSERT (result != NULL); + ASSERT (strcmp (result, expected) == 0 + /* Some implementations produce exponents with 3 digits. */ + || (expected[strlen (expected) - 4] == 'e' + && strlen (result) == strlen (expected) + 1 + && memcmp (result, expected, strlen (expected) - 2) == 0 + && result[strlen (expected) - 2] == '0' + && strcmp (result + strlen (expected) - 1, + expected + strlen (expected) - 2) + == 0)); + ASSERT (length == strlen (result)); + free (result); + } + } + + { /* A negative number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", -0.03125L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-0.03125 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative zero. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", minus_zerol, 33, 44, 55); + ASSERT (result != NULL); + if (have_minus_zero ()) + ASSERT (strcmp (result, "-0 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Positive infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", 1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "inf 33") == 0 + || strcmp (result, "infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Negative infinity. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "-inf 33") == 0 + || strcmp (result, "-infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) + { /* Quiet NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { + /* Signalling NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities, + Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in + Intel IA-64 Architecture Software Developer's Manual, Volume 1: + Application Architecture. + Table 5-2 "Floating-Point Register Encodings" + Figure 5-6 "Memory to Floating-Point Register Data Translation" + */ + { /* Pseudo-NaN. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Infinity. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Zero. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Unnormalized number. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + { /* Pseudo-Denormal. */ + static union { unsigned int word[4]; long double value; } x = + { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%Lg %d", x.value, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) >= 3 + 3 + && strisnan (result, 0, strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } +#endif + + { /* Width. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%10Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_LEFT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%-10Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SHOWSIGN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%+Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "+1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_SPACE. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "% Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " 1.75 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.75000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.Lg %d", 1.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "2. 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ALT. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.Lg %d", 9.75L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1.e+01 33") == 0 + || strcmp (result, "1.e+001 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with finite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%010Lg %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "0000001234 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with infinite number. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%015Lg %d", -1.0L / 0.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, " -inf 33") == 0 + || strcmp (result, " -infinity 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* FLAG_ZERO with NaN. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%050Lg %d", NaNl (), 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strlen (result) == 50 + 3 + && strisnan (result, strspn (result, " "), strlen (result) - 3, 0) + && strcmp (result + strlen (result) - 3, " 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.Lg %d", 1234.0L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1e+03 33") == 0 + || strcmp (result, "1e+003 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with no rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.5Lg %d", 999.951L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "999.95 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { /* Precision with rounding. */ + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.5Lg %d", 999.996L, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "1000 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %n format directive. */ + + { + int count = -1; + size_t length; + char *result = + my_asnprintf (NULL, &length, "%d %n", 123, &count, 33, 44, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "123 ") == 0); + ASSERT (length == strlen (result)); + ASSERT (count == 4); + free (result); + } + + /* Test the support of the POSIX/XSI format strings with positions. */ + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%2$d %1$d", 33, 55); + ASSERT (result != NULL); + ASSERT (strcmp (result, "55 33") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the grouping flag. */ + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%'d %d", 1234567, 99); + ASSERT (result != NULL); + ASSERT (result[strlen (result) - 1] == '9'); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the left-adjust flag. */ + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "a%*sc", -3, "b"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "ab c") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "a%-*sc", 3, "b"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "ab c") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "a%-*sc", -3, "b"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "ab c") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of large precision. */ + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4000d %d", 1234567, 99); + size_t i; + ASSERT (result != NULL); + for (i = 0; i < 4000 - 7; i++) + ASSERT (result[i] == '0'); + ASSERT (strcmp (result + 4000 - 7, "1234567 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.*d %d", 4000, 1234567, 99); + size_t i; + ASSERT (result != NULL); + for (i = 0; i < 4000 - 7; i++) + ASSERT (result[i] == '0'); + ASSERT (strcmp (result + 4000 - 7, "1234567 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4000d %d", -1234567, 99); + size_t i; + ASSERT (result != NULL); + ASSERT (result[0] == '-'); + for (i = 0; i < 4000 - 7; i++) + ASSERT (result[1 + i] == '0'); + ASSERT (strcmp (result + 1 + 4000 - 7, "1234567 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4000u %d", 1234567, 99); + size_t i; + ASSERT (result != NULL); + for (i = 0; i < 4000 - 7; i++) + ASSERT (result[i] == '0'); + ASSERT (strcmp (result + 4000 - 7, "1234567 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4000o %d", 1234567, 99); + size_t i; + ASSERT (result != NULL); + for (i = 0; i < 4000 - 7; i++) + ASSERT (result[i] == '0'); + ASSERT (strcmp (result + 4000 - 7, "4553207 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%.4000x %d", 1234567, 99); + size_t i; + ASSERT (result != NULL); + for (i = 0; i < 4000 - 6; i++) + ASSERT (result[i] == '0'); + ASSERT (strcmp (result + 4000 - 6, "12d687 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + size_t length; + char *result = + my_asnprintf (NULL, &length, "%#.4000x %d", 1234567, 99); + size_t i; + ASSERT (result != NULL); + ASSERT (result[0] == '0'); + ASSERT (result[1] == 'x'); + for (i = 0; i < 4000 - 6; i++) + ASSERT (result[2 + i] == '0'); + ASSERT (strcmp (result + 2 + 4000 - 6, "12d687 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + { + char input[5000]; + size_t length; + char *result; + size_t i; + + for (i = 0; i < sizeof (input) - 1; i++) + input[i] = 'a' + ((1000000 / (i + 1)) % 26); + input[i] = '\0'; + result = my_asnprintf (NULL, &length, "%.4000s %d", input, 99); + ASSERT (result != NULL); + ASSERT (memcmp (result, input, 4000) == 0); + ASSERT (strcmp (result + 4000, " 99") == 0); + ASSERT (length == strlen (result)); + free (result); + } + + /* Test the support of the %s format directive. */ + + /* To verify that these tests succeed, it is necessary to run them under + a tool that checks against invalid memory accesses, such as ElectricFence + or "valgrind --tool=memcheck". */ + { + size_t i; + + for (i = 1; i <= 8; i++) + { + char *block; + size_t length; + char *result; + + block = (char *) malloc (i); + memcpy (block, "abcdefgh", i); + result = my_asnprintf (NULL, &length, "%.*s", (int) i, block); + ASSERT (result != NULL); + ASSERT (memcmp (result, block, i) == 0); + ASSERT (result[i] == '\0'); + ASSERT (length == strlen (result)); + free (result); + free (block); + } + } +#if HAVE_WCHAR_T + { + size_t i; + + for (i = 1; i <= 8; i++) + { + wchar_t *block; + size_t j; + size_t length; + char *result; + + block = (wchar_t *) malloc (i * sizeof (wchar_t)); + for (j = 0; j < i; j++) + block[j] = "abcdefgh"[j]; + result = my_asnprintf (NULL, &length, "%.*ls", (int) i, block); + ASSERT (result != NULL); + ASSERT (memcmp (result, "abcdefgh", i) == 0); + ASSERT (result[i] == '\0'); + ASSERT (length == strlen (result)); + free (result); + free (block); + } + } +#endif + +#if HAVE_WCHAR_T + /* Test that converting an invalid wchar_t[] to char[] fails with EILSEQ. */ + { + static const wchar_t input[] = { (wchar_t) 1702057263, 114, 0 }; + size_t length; + char *result = my_asnprintf (NULL, &length, "%ls %d", input, 99); + if (result == NULL) + ASSERT (errno == EILSEQ); + else + free (result); + } + { + static const wchar_t input[] = { (wchar_t) 1702057263, 114, 0 }; + size_t length; + char *result = my_asnprintf (NULL, &length, "%3ls %d", input, 99); + if (result == NULL) + ASSERT (errno == EILSEQ); + else + free (result); + } + { + static const wchar_t input[] = { (wchar_t) 1702057263, 114, 0 }; + size_t length; + char *result = my_asnprintf (NULL, &length, "%.1ls %d", input, 99); + if (result == NULL) + ASSERT (errno == EILSEQ); + else + free (result); + } + { + static const wchar_t input[] = { (wchar_t) 1702057263, 114, 0 }; + size_t length; + char *result = my_asnprintf (NULL, &length, "%3.1ls %d", input, 99); + if (result == NULL) + ASSERT (errno == EILSEQ); + else + free (result); + } +#endif +} + +static char * +my_asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) +{ + va_list args; + char *ret; + + va_start (args, format); + ret = vasnprintf (resultbuf, lengthp, format, args); + va_end (args); + return ret; +} + +static void +test_vasnprintf () +{ + test_function (my_asnprintf); +} + +static void +test_asnprintf () +{ + test_function (asnprintf); +} + +int +main (int argc, char *argv[]) +{ + test_vasnprintf (); + test_asnprintf (); + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-vasprintf.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasprintf.c --- gettext-0.17/gettext-tools/gnulib-tests/test-vasprintf.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vasprintf.c 2010-04-25 09:21:51.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of vasprintf() and asprintf() functions. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,20 +20,15 @@ #include +#include "signature.h" +SIGNATURE_CHECK (asprintf, int, (char **, char const *, ...)); +SIGNATURE_CHECK (vasprintf, int, (char **, char const *, va_list)); + #include #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static int my_asprintf (char **result, const char *format, ...) @@ -61,6 +56,16 @@ ASSERT (strcmp (result, "12345") == 0); free (result); } + + for (repeat = 0; repeat <= 8; repeat++) + { + char *result; + int retval = my_asprintf (&result, "%08lx", 12345UL); + ASSERT (retval == 8); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00003039") == 0); + free (result); + } } static void @@ -77,6 +82,16 @@ ASSERT (strcmp (result, "12345") == 0); free (result); } + + for (repeat = 0; repeat <= 8; repeat++) + { + char *result; + int retval = asprintf (&result, "%08lx", 12345UL); + ASSERT (retval == 8); + ASSERT (result != NULL); + ASSERT (strcmp (result, "00003039") == 0); + free (result); + } } int diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-verify.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-verify.c --- gettext-0.17/gettext-tools/gnulib-tests/test-verify.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-verify.c 2010-05-09 01:37:17.000000000 +0000 @@ -0,0 +1,68 @@ +/* Test the "verify" module. + + Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible. */ + +#include + +#include "verify.h" + +#ifndef EXP_FAIL +# define EXP_FAIL 0 +#endif + +int x; +enum { a, b, c }; + +#if EXP_FAIL == 1 +verify (x >= 0); /* should give ERROR: non-constant expression */ +#endif +verify (c == 2); /* should be ok */ +#if EXP_FAIL == 2 +verify (1 + 1 == 3); /* should give ERROR */ +#endif +verify (1 == 1); verify (1 == 1); /* should be ok */ + +enum +{ + item = verify_true (1 == 1) * 0 + 17 /* should be ok */ +}; + +int function (int n) +{ +#if EXP_FAIL == 3 + verify (n >= 0); /* should give ERROR: non-constant expression */ +#endif + verify (c == 2); /* should be ok */ +#if EXP_FAIL == 4 + verify (1 + 1 == 3); /* should give ERROR */ +#endif + verify (1 == 1); verify (1 == 1); /* should be ok */ + + if (n) + return ((void) verify_true (1 == 1), verify_true (1 == 1) + 7); /* should be ok */ +#if EXP_FAIL == 5 + return (verify_true (1 == 2), 5); /* should give ERROR */ +#endif + return 0; +} + +int +main (void) +{ + return !(function (0) == 0 && function (1) == 8); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-verify.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-verify.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-verify.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-verify.sh 2010-05-17 19:57:15.000000000 +0000 @@ -0,0 +1,24 @@ +#!/bin/sh +. "${srcdir=.}/init.sh" + +# We are not interested in triggering bugs in the compilers and tools +# (such as gcc 4.3.1 on openSUSE 11.0). +unset MALLOC_PERTURB_ + +# Rather than figure out how to invoke the compiler with the right +# include path ourselves, we let make do it: +(cd "$initial_cwd_" && rm -f test-verify.o \ + && $MAKE test-verify.o >/dev/null 2>&1) \ + || skip_ "cannot compile error-free" + +# Now, prove that we encounter all expected compilation failures: +: >out +: >err +for i in 1 2 3 4 5; do + (cd "$initial_cwd_" + rm -f test-verify.o + $MAKE CFLAGS=-DEXP_FAIL=$i test-verify.o) >>out 2>>err \ + && { warn_ "compiler didn't detect verification failure $i"; fail=1; } +done + +Exit $fail diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-vsnprintf.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vsnprintf.c --- gettext-0.17/gettext-tools/gnulib-tests/test-vsnprintf.c 2007-10-26 00:52:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-vsnprintf.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of vsnprintf() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,20 +20,13 @@ #include +#include "signature.h" +SIGNATURE_CHECK (vsnprintf, int, (char *, size_t, char const *, va_list)); + #include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static int my_snprintf (char *buf, int size, const char *format, ...) @@ -59,25 +52,25 @@ memcpy (buf, "DEADBEEF", 8); retval = my_snprintf (buf, size, "%d", 12345); if (size < 6) - { + { #if CHECK_VSNPRINTF_POSIX - ASSERT (retval < 0 || retval >= size); + ASSERT (retval < 0 || retval >= size); #endif - if (size > 0) - { - ASSERT (memcmp (buf, "12345", size - 1) == 0); - ASSERT (buf[size - 1] == '\0' || buf[size - 1] == '0' + size); - } + if (size > 0) + { + ASSERT (memcmp (buf, "12345", size - 1) == 0); + ASSERT (buf[size - 1] == '\0' || buf[size - 1] == '0' + size); + } #if !CHECK_VSNPRINTF_POSIX - if (size > 0) + if (size > 0) #endif - ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); - } + ASSERT (memcmp (buf + size, "DEADBEEF" + size, 8 - size) == 0); + } else - { - ASSERT (retval == 5); - ASSERT (memcmp (buf, "12345\0EF", 8) == 0); - } + { + ASSERT (retval == 5); + ASSERT (memcmp (buf, "12345\0EF", 8) == 0); + } } return 0; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-wchar.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wchar.c --- gettext-0.17/gettext-tools/gnulib-tests/test-wchar.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wchar.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,8 +20,18 @@ #include +#include "verify.h" + +/* Check that the types wchar_t and wint_t are defined. */ +wchar_t a = 'c'; +wint_t b = 'x'; + +/* Check that NULL can be passed through varargs as a pointer type, + per POSIX 2008. */ +verify (sizeof NULL == sizeof (void *)); + int -main () +main (void) { return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-wctype.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wctype.c --- gettext-0.17/gettext-tools/gnulib-tests/test-wctype.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wctype.c 2010-03-28 18:32:32.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,24 +20,51 @@ #include +#include "macros.h" + +/* Check that the type wint_t is defined. */ +wint_t a = 'x'; +/* Check that WEOF is defined. */ +wint_t e = WEOF; + int -main () +main (void) { /* Check that the isw* functions exist as functions or as macros. */ - iswalnum (0); - iswalpha (0); -#if 0 /* not portable: missing on mingw */ - iswblank (0); -#endif - iswcntrl (0); - iswdigit (0); - iswgraph (0); - iswlower (0); - iswprint (0); - iswpunct (0); - iswspace (0); - iswupper (0); - iswxdigit (0); + (void) iswalnum (0); + (void) iswalpha (0); + (void) iswblank (0); + (void) iswcntrl (0); + (void) iswdigit (0); + (void) iswgraph (0); + (void) iswlower (0); + (void) iswprint (0); + (void) iswpunct (0); + (void) iswspace (0); + (void) iswupper (0); + (void) iswxdigit (0); + + /* Check that the isw* functions map WEOF to 0. */ + ASSERT (!iswalnum (e)); + ASSERT (!iswalpha (e)); + ASSERT (!iswblank (e)); + ASSERT (!iswcntrl (e)); + ASSERT (!iswdigit (e)); + ASSERT (!iswgraph (e)); + ASSERT (!iswlower (e)); + ASSERT (!iswprint (e)); + ASSERT (!iswpunct (e)); + ASSERT (!iswspace (e)); + ASSERT (!iswupper (e)); + ASSERT (!iswxdigit (e)); + + /* Check that the tow* functions exist as functions or as macros. */ + (void) towlower (0); + (void) towupper (0); + + /* Check that the tow* functions map WEOF to WEOF. */ + ASSERT (towlower (e) == e); + ASSERT (towupper (e) == e); return 0; } diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-wcwidth.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wcwidth.c --- gettext-0.17/gettext-tools/gnulib-tests/test-wcwidth.c 2007-10-23 00:42:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-wcwidth.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of wcwidth() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,20 +20,14 @@ #include +#include "signature.h" +SIGNATURE_CHECK (wcwidth, int, (wchar_t)); + #include -#include -#include +#include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "localcharset.h" +#include "macros.h" int main () @@ -45,11 +39,17 @@ ASSERT (wcwidth (wc) == 1); /* Switch to an UTF-8 locale. */ - if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL) + if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL + /* Check whether it's really an UTF-8 locale. + On OpenBSD 4.0, the setlocale call succeeds only for the LC_CTYPE + category and therefore returns "C/fr_FR.UTF-8/C/C/C/C", but the + LC_CTYPE category is effectively set to an ASCII LC_CTYPE category; + in particular, locale_charset() returns "ASCII". */ + && strcmp (locale_charset (), "UTF-8") == 0) { /* Test width of ASCII characters. */ for (wc = 0x20; wc < 0x7F; wc++) - ASSERT (wcwidth (wc) == 1); + ASSERT (wcwidth (wc) == 1); /* Test width of some non-spacing characters. */ ASSERT (wcwidth (0x0301) == 0); @@ -57,7 +57,7 @@ /* Test width of some format control characters. */ ASSERT (wcwidth (0x200E) <= 0); - ASSERT (wcwidth (0x2060) == 0); + ASSERT (wcwidth (0x2060) <= 0); #if 0 /* wchar_t may be only 16 bits. */ ASSERT (wcwidth (0xE0001) <= 0); ASSERT (wcwidth (0xE0044) <= 0); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-xalloc-die.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xalloc-die.c --- gettext-0.17/gettext-tools/gnulib-tests/test-xalloc-die.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xalloc-die.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,30 @@ +/* Test of xalloc_die() function. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Simon Josefsson , 2009. */ + +#include + +#include "xalloc.h" +#include "progname.h" + +int +main (int argc _GL_UNUSED, char **argv) +{ + set_program_name (argv[0]); + xalloc_die (); + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-xalloc-die.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xalloc-die.sh --- gettext-0.17/gettext-tools/gnulib-tests/test-xalloc-die.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xalloc-die.sh 2010-05-09 01:37:17.000000000 +0000 @@ -0,0 +1,36 @@ +#!/bin/sh +# Test suite for xalloc_die. +# Copyright (C) 2009, 2010 Free Software Foundation, Inc. +# This file is part of the GNUlib Library. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. "${srcdir=.}/init.sh"; path_prepend_ . + +test-xalloc-die${EXEEXT} > out 2> err +case $? in + 1) ;; + *) Exit 1;; +esac + +tr -d '\015' < err \ + | sed 's,.*test-xalloc-die[.ex]*:,test-xalloc-die:,' > err2 || Exit 1 + +compare - err2 <<\EOF || Exit 1 +test-xalloc-die: memory exhausted +EOF + +test -s out && Exit 1 + +Exit $fail diff -Nru gettext-0.17/gettext-tools/gnulib-tests/test-xvasprintf.c gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xvasprintf.c --- gettext-0.17/gettext-tools/gnulib-tests/test-xvasprintf.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/test-xvasprintf.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of xvasprintf() and xasprintf() functions. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,22 +21,11 @@ #include "xvasprintf.h" #include -#include #include #include #include "progname.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static char * my_xasprintf (const char *format, ...) @@ -51,35 +40,85 @@ } static void -test_xvasprintf () +test_xvasprintf (void) { int repeat; + char *result; for (repeat = 0; repeat <= 8; repeat++) { - char *result = my_xasprintf ("%d", 12345); + result = my_xasprintf ("%d", 12345); ASSERT (result != NULL); ASSERT (strcmp (result, "12345") == 0); free (result); } + + { + /* Silence gcc warning about zero-length format string. */ + char *empty = ""; + result = my_xasprintf (empty); + ASSERT (result != NULL); + ASSERT (strcmp (result, "") == 0); + free (result); + } + + result = my_xasprintf ("%s", "foo"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foo") == 0); + free (result); + + result = my_xasprintf ("%s%s", "foo", "bar"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foobar") == 0); + free (result); + + result = my_xasprintf ("%s%sbaz", "foo", "bar"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foobarbaz") == 0); + free (result); } static void test_xasprintf () { int repeat; + char *result; for (repeat = 0; repeat <= 8; repeat++) { - char *result = xasprintf ("%d", 12345); + result = xasprintf ("%d", 12345); ASSERT (result != NULL); ASSERT (strcmp (result, "12345") == 0); free (result); } + + { + /* Silence gcc warning about zero-length format string. */ + char *empty = ""; + result = xasprintf (empty); + ASSERT (result != NULL); + ASSERT (strcmp (result, "") == 0); + free (result); + } + + result = xasprintf ("%s", "foo"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foo") == 0); + free (result); + + result = xasprintf ("%s%s", "foo", "bar"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foobar") == 0); + free (result); + + result = my_xasprintf ("%s%sbaz", "foo", "bar"); + ASSERT (result != NULL); + ASSERT (strcmp (result, "foobarbaz") == 0); + free (result); } int -main (int argc, char *argv[]) +main (int argc _GL_UNUSED, char *argv[]) { set_program_name (argv[0]); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c gettext-0.18.1.1/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c --- gettext-0.17/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,205 @@ +/* Test of conversion to UTF-8 from legacy encodings. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +#include "uniconv.h" + +#include +#include + +#include "unistr.h" +#include "macros.h" + +/* Magic number for detecting bounds violations. */ +#define MAGIC 0x1983EFF1 + +static size_t * +new_offsets (size_t n) +{ + size_t *offsets = (size_t *) malloc ((n + 1) * sizeof (size_t)); + offsets[n] = MAGIC; + return offsets; +} + +int +main () +{ + static enum iconv_ilseq_handler handlers[] = + { iconveh_error, iconveh_question_mark, iconveh_escape_sequence }; + size_t h; + size_t o; + size_t i; + +#if HAVE_ICONV + /* Assume that iconv() supports at least the encodings ASCII, ISO-8859-1, + ISO-8859-2, and UTF-8. */ + + /* Test conversion from ISO-8859-1 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static const uint8_t expected[] = "\303\204rger mit b\303\266sen B\303\274bchen ohne Augenma\303\237"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + size_t length; + uint8_t *result = u8_conv_from_encoding ("ISO-8859-1", handler, + input, strlen (input), + offsets, + NULL, &length); + ASSERT (result != NULL); + ASSERT (length == u8_strlen (expected)); + ASSERT (u8_cmp (result, expected, u8_strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 37; i++) + ASSERT (offsets[i] == (i < 1 ? i : + i < 12 ? i + 1 : + i < 18 ? i + 2 : + i + 3)); + ASSERT (offsets[37] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* Test conversion from ISO-8859-2 to UTF-8 with no errors. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "Rafa\263 Maszkowski"; /* Rafał Maszkowski */ + static const uint8_t expected[] = "Rafa\305\202 Maszkowski"; + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + size_t length; + uint8_t *result = u8_conv_from_encoding ("ISO-8859-2", handler, + input, strlen (input), + offsets, + NULL, &length); + ASSERT (result != NULL); + ASSERT (length == u8_strlen (expected)); + ASSERT (u8_cmp (result, expected, u8_strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i < 5 ? i : + i + 1)); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + } + + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ +# if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) + /* Test conversions from autodetect_jp to UTF-8. */ + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\244\263\244\363\244\313\244\301\244\317"; /* こんにちは in EUC-JP */ + static const uint8_t expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + size_t length; + uint8_t *result = u8_conv_from_encoding ("autodetect_jp", handler, + input, strlen (input), + offsets, + NULL, &length); + ASSERT (result != NULL); + ASSERT (length == u8_strlen (expected)); + ASSERT (u8_cmp (result, expected, u8_strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 10; i++) + ASSERT (offsets[i] == ((i % 2) == 0 ? (i / 2) * 3 : (size_t)(-1))); + ASSERT (offsets[10] == MAGIC); + free (offsets); + } + free (result); + } + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\202\261\202\361\202\311\202\277\202\315"; /* こんにちは in Shift_JIS */ + static const uint8_t expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + size_t length; + uint8_t *result = u8_conv_from_encoding ("autodetect_jp", handler, + input, strlen (input), + offsets, + NULL, &length); + ASSERT (result != NULL); + ASSERT (length == u8_strlen (expected)); + ASSERT (u8_cmp (result, expected, u8_strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 10; i++) + ASSERT (offsets[i] == ((i % 2) == 0 ? (i / 2) * 3 : (size_t)(-1))); + ASSERT (offsets[10] == MAGIC); + free (offsets); + } + free (result); + } + } + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; + static const char input[] = "\033$B$3$s$K$A$O\033(B"; /* こんにちは in ISO-2022-JP-2 */ + static const uint8_t expected[] = "\343\201\223\343\202\223\343\201\253\343\201\241\343\201\257"; /* こんにちは */ + for (o = 0; o < 2; o++) + { + size_t *offsets = (o ? new_offsets (strlen (input)) : NULL); + size_t length; + uint8_t *result = u8_conv_from_encoding ("autodetect_jp", handler, + input, strlen (input), + offsets, + NULL, &length); + ASSERT (result != NULL); + ASSERT (length == u8_strlen (expected)); + ASSERT (u8_cmp (result, expected, u8_strlen (expected)) == 0); + if (o) + { + for (i = 0; i < 16; i++) + ASSERT (offsets[i] == (i == 0 ? 0 : + i == 5 ? 3 : + i == 7 ? 6 : + i == 9 ? 9 : + i == 11 ? 12 : + i == 13 ? 15 : + (size_t)(-1))); + ASSERT (offsets[16] == MAGIC); + free (offsets); + } + free (result); + } + } +# endif + +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-u8-possible-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-u8-possible-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-u8-possible-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-u8-possible-linebreaks.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,78 @@ +/* Test of line breaking of UTF-8 strings. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "unilbrk.h" + +#include + +#include "macros.h" + +int +main () +{ + /* Test case n = 0. */ + u8_possible_linebreaks (NULL, 0, "GB18030", NULL); + + { + static const uint8_t input[91] = + /* "Grüß Gott. Здравствуйте! x=(-b±sqrt(b²-4ac))/(2a) 日本語,中文,한글" */ + "Gr\303\274\303\237 Gott. \320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265! x=(-b\302\261sqrt(b\302\262-4ac))/(2a) \346\227\245\346\234\254\350\252\236,\344\270\255\346\226\207,\355\225\234\352\270\200\n"; + + { + char *p = (char *) malloc (SIZEOF (input)); + size_t i; + + u8_possible_linebreaks (input, SIZEOF (input), "GB18030", p); + for (i = 0; i < 91; i++) + { + ASSERT (p[i] == (i == 90 ? UC_BREAK_MANDATORY : + i == 7 + || i == 13 || i == 39 + || i == 41 || i == 43 || i == 44 || i == 50 + || i == 61 || i == 67 + || i == 70 || i == 73 || i == 77 || i == 80 + || i == 84 || i == 87 ? UC_BREAK_POSSIBLE : + UC_BREAK_PROHIBITED)); + } + free (p); + } + + { + char *p = (char *) malloc (SIZEOF (input)); + size_t i; + + u8_possible_linebreaks (input, SIZEOF (input), "GB2312", p); + for (i = 0; i < 91; i++) + { + ASSERT (p[i] == (i == 90 ? UC_BREAK_MANDATORY : + i == 7 + || i == 13 || i == 39 + || i == 41 || i == 43 || i == 44 || i == 50 + || i == 52 || i == 61 || i == 67 + || i == 70 || i == 73 || i == 77 || i == 80 + || i == 84 || i == 87 ? UC_BREAK_POSSIBLE : + UC_BREAK_PROHIBITED)); + } + free (p); + } + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,68 @@ +/* Test of line breaking of UTF-8 strings. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "unilbrk.h" + +#include + +#include "macros.h" + +int +main () +{ + /* Test case n = 0. */ + u8_width_linebreaks (NULL, 0, 80, 0, 0, NULL, "GB18030", NULL); + + { + static const uint8_t input[91] = + /* "Grüß Gott. Здравствуйте! x=(-b±sqrt(b²-4ac))/(2a) 日本語,中文,한글" */ + "Gr\303\274\303\237 Gott. \320\227\320\264\321\200\320\260\320\262\321\201\321\202\320\262\321\203\320\271\321\202\320\265! x=(-b\302\261sqrt(b\302\262-4ac))/(2a) \346\227\245\346\234\254\350\252\236,\344\270\255\346\226\207,\355\225\234\352\270\200\n"; + + { + char *p = (char *) malloc (SIZEOF (input)); + size_t i; + + u8_width_linebreaks (input, SIZEOF (input), 25, 0, 0, NULL, "GB18030", p); + for (i = 0; i < 91; i++) + { + ASSERT (p[i] == (i == 90 ? UC_BREAK_MANDATORY : + i == 39 || i == 61 ? UC_BREAK_POSSIBLE : + UC_BREAK_PROHIBITED)); + } + free (p); + } + + { + char *p = (char *) malloc (SIZEOF (input)); + size_t i; + + u8_width_linebreaks (input, SIZEOF (input), 25, 0, 0, NULL, "GB2312", p); + for (i = 0; i < 91; i++) + { + ASSERT (p[i] == (i == 90 ? UC_BREAK_MANDATORY : + i == 13 || i == 39 || i == 61 ? UC_BREAK_POSSIBLE : + UC_BREAK_PROHIBITED)); + } + free (p); + } + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-ulc-width-linebreaks.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-ulc-width-linebreaks.c --- gettext-0.17/gettext-tools/gnulib-tests/unilbrk/test-ulc-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unilbrk/test-ulc-width-linebreaks.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,53 @@ +/* Test of line breaking of strings. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "unilbrk.h" + +#include + +#include "macros.h" + +int +main () +{ + /* Test case n = 0. */ + ulc_width_linebreaks (NULL, 0, 80, 0, 0, NULL, "GB18030", NULL); + +#if HAVE_ICONV + { + static const char input[36] = + /* "Grüß Gott. x=(-b±sqrt(b²-4ac))/(2a)" */ + "Gr\374\337 Gott. x=(-b\261sqrt(b\262-4ac))/(2a)\n"; + char *p = (char *) malloc (SIZEOF (input)); + size_t i; + + ulc_width_linebreaks (input, SIZEOF (input), 12, 0, 0, NULL, "ISO-8859-1", p); + for (i = 0; i < 36; i++) + { + ASSERT (p[i] == (i == 35 ? UC_BREAK_MANDATORY : + i == 11 || i == 21 || i == 31 ? UC_BREAK_POSSIBLE : + UC_BREAK_PROHIBITED)); + } + free (p); + } +#endif + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniname/test-uninames.c gettext-0.18.1.1/gettext-tools/gnulib-tests/uniname/test-uninames.c --- gettext-0.17/gettext-tools/gnulib-tests/uniname/test-uninames.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniname/test-uninames.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,6 @@ /* Test the Unicode character name functions. - Copyright (C) 2000-2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2005, 2007, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +23,7 @@ #include "xalloc.h" #include "uniname.h" +#include "progname.h" /* The names according to the UnicodeData.txt file, modified to contain the Hangul syllable names, as described in the Unicode 3.0 book. */ @@ -43,10 +45,10 @@ { /* Put c into the buffer. */ if (++count >= FIELDLEN - 1) - { - fprintf (stderr, "field too long\n"); - exit (EXIT_FAILURE); - } + { + fprintf (stderr, "field too long\n"); + exit (EXIT_FAILURE); + } *buffer++ = c; } @@ -87,21 +89,21 @@ n = getfield (stream, field0, ';'); n += getfield (stream, field1, ';'); if (n == 0) - break; + break; if (n != 2) - { - fprintf (stderr, "short line in '%s':%d\n", - unicodedata_filename, lineno); - exit (EXIT_FAILURE); - } + { + fprintf (stderr, "short line in '%s':%d\n", + unicodedata_filename, lineno); + exit (EXIT_FAILURE); + } for (; (c = getc (stream)), (c != EOF && c != '\n'); ) - ; + ; i = strtoul (field0, NULL, 16); if (i >= 0x110000) - { - fprintf (stderr, "index too large\n"); - exit (EXIT_FAILURE); - } + { + fprintf (stderr, "index too large\n"); + exit (EXIT_FAILURE); + } unicode_names[i] = xstrdup (field1); } if (ferror (stream) || fclose (stream)) @@ -124,28 +126,28 @@ char *result = unicode_character_name (i, buf); if (unicode_names[i] != NULL) - { - if (result == NULL) - { - fprintf (stderr, "\\u%04X name lookup failed!\n", i); - error = 1; - } - else if (strcmp (result, unicode_names[i]) != 0) - { - fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", - i, result); - error = 1; - } - } + { + if (result == NULL) + { + fprintf (stderr, "\\u%04X name lookup failed!\n", i); + error = 1; + } + else if (strcmp (result, unicode_names[i]) != 0) + { + fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", + i, result); + error = 1; + } + } else - { - if (result != NULL) - { - fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", - i, result); - error = 1; - } - } + { + if (result != NULL) + { + fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", + i, result); + error = 1; + } + } } for (i = 0x110000; i < 0x1000000; i++) @@ -153,11 +155,11 @@ char *result = unicode_character_name (i, buf); if (result != NULL) - { - fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", - i, result); - error = 1; - } + { + fprintf (stderr, "\\u%04X name lookup returned wrong name: %s\n", + i, result); + error = 1; + } } return error; @@ -174,18 +176,18 @@ for (i = 0; i < 0x110000; i++) if (unicode_names[i] != NULL) { - unsigned int result = unicode_name_character (unicode_names[i]); - if (result != i) - { - if (result == UNINAME_INVALID) - fprintf (stderr, "inverse name lookup of \"%s\" failed\n", - unicode_names[i]); - else - fprintf (stderr, - "inverse name lookup of \"%s\" returned 0x%04X\n", - unicode_names[i], result); - error = 1; - } + unsigned int result = unicode_name_character (unicode_names[i]); + if (result != i) + { + if (result == UNINAME_INVALID) + fprintf (stderr, "inverse name lookup of \"%s\" failed\n", + unicode_names[i]); + else + fprintf (stderr, + "inverse name lookup of \"%s\" returned 0x%04X\n", + unicode_names[i], result); + error = 1; + } } /* Second, generate random but likely names and verify they are not @@ -200,13 +202,13 @@ unsigned int result; do i1 = ((rand () % 0x11) << 16) - + ((rand () & 0xff) << 8) - + (rand () & 0xff); + + ((rand () & 0xff) << 8) + + (rand () & 0xff); while (unicode_names[i1] == NULL); do i2 = ((rand () % 0x11) << 16) - + ((rand () & 0xff) << 8) - + (rand () & 0xff); + + ((rand () & 0xff) << 8) + + (rand () & 0xff); while (unicode_names[i2] == NULL); s1 = unicode_names[i1]; @@ -216,25 +218,25 @@ /* Concatenate a starting piece of s1 with an ending piece of s2. */ for (j1 = 1; j1 <= l1; j1++) - if (j1 == l1 || s1[j1] == ' ') - for (j2 = 0; j2 < l2; j2++) - if (j2 == 0 || s2[j2-1] == ' ') - { - memcpy (buf, s1, j1); - buf[j1] = ' '; - memcpy (buf + j1 + 1, s2 + j2, l2 - j2 + 1); - - result = unicode_name_character (buf); - if (result != UNINAME_INVALID - && !(unicode_names[result] != NULL - && strcmp (unicode_names[result], buf) == 0)) - { - fprintf (stderr, - "inverse name lookup of \"%s\" returned 0x%04X\n", - unicode_names[i], result); - error = 1; - } - } + if (j1 == l1 || s1[j1] == ' ') + for (j2 = 0; j2 < l2; j2++) + if (j2 == 0 || s2[j2-1] == ' ') + { + memcpy (buf, s1, j1); + buf[j1] = ' '; + memcpy (buf + j1 + 1, s2 + j2, l2 - j2 + 1); + + result = unicode_name_character (buf); + if (result != UNINAME_INVALID + && !(unicode_names[result] != NULL + && strcmp (unicode_names[result], buf) == 0)) + { + fprintf (stderr, + "inverse name lookup of \"%s\" returned 0x%04X\n", + unicode_names[i], result); + error = 1; + } + } } /* Third, some extreme case that used to loop. */ @@ -249,6 +251,8 @@ { int error = 0; + set_program_name (argv[0]); + fill_names (argv[1]); error |= test_name_lookup (); diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniname/UnicodeDataNames.txt gettext-0.18.1.1/gettext-tools/gnulib-tests/uniname/UnicodeDataNames.txt --- gettext-0.17/gettext-tools/gnulib-tests/uniname/UnicodeDataNames.txt 2007-10-01 01:09:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniname/UnicodeDataNames.txt 2009-07-19 20:29:14.000000000 +0000 @@ -525,8 +525,8 @@ 024D;LATIN SMALL LETTER R WITH STROKE;Ll;0;L;;;;;N;;;024C;;024C 024E;LATIN CAPITAL LETTER Y WITH STROKE;Lu;0;L;;;;;N;;;;024F; 024F;LATIN SMALL LETTER Y WITH STROKE;Ll;0;L;;;;;N;;;024E;;024E -0250;LATIN SMALL LETTER TURNED A;Ll;0;L;;;;;N;;;;; -0251;LATIN SMALL LETTER ALPHA;Ll;0;L;;;;;N;LATIN SMALL LETTER SCRIPT A;;;; +0250;LATIN SMALL LETTER TURNED A;Ll;0;L;;;;;N;;;2C6F;;2C6F +0251;LATIN SMALL LETTER ALPHA;Ll;0;L;;;;;N;LATIN SMALL LETTER SCRIPT A;;2C6D;;2C6D 0252;LATIN SMALL LETTER TURNED ALPHA;Ll;0;L;;;;;N;LATIN SMALL LETTER TURNED SCRIPT A;;;; 0253;LATIN SMALL LETTER B WITH HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER B HOOK;;0181;;0181 0254;LATIN SMALL LETTER OPEN O;Ll;0;L;;;;;N;;;0186;;0186 @@ -558,7 +558,7 @@ 026E;LATIN SMALL LETTER LEZH;Ll;0;L;;;;;N;LATIN SMALL LETTER L YOGH;;;; 026F;LATIN SMALL LETTER TURNED M;Ll;0;L;;;;;N;;;019C;;019C 0270;LATIN SMALL LETTER TURNED M WITH LONG LEG;Ll;0;L;;;;;N;;;;; -0271;LATIN SMALL LETTER M WITH HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER M HOOK;;;; +0271;LATIN SMALL LETTER M WITH HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER M HOOK;;2C6E;;2C6E 0272;LATIN SMALL LETTER N WITH LEFT HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER N HOOK;;019D;;019D 0273;LATIN SMALL LETTER N WITH RETROFLEX HOOK;Ll;0;L;;;;;N;LATIN SMALL LETTER N RETROFLEX HOOK;;;; 0274;LATIN LETTER SMALL CAPITAL N;Ll;0;L;;;;;N;;;;; @@ -681,7 +681,7 @@ 02E9;MODIFIER LETTER EXTRA-LOW TONE BAR;Sk;0;ON;;;;;N;;;;; 02EA;MODIFIER LETTER YIN DEPARTING TONE MARK;Sk;0;ON;;;;;N;;;;; 02EB;MODIFIER LETTER YANG DEPARTING TONE MARK;Sk;0;ON;;;;;N;;;;; -02EC;MODIFIER LETTER VOICING;Sk;0;ON;;;;;N;;;;; +02EC;MODIFIER LETTER VOICING;Lm;0;ON;;;;;N;;;;; 02ED;MODIFIER LETTER UNASPIRATED;Sk;0;ON;;;;;N;;;;; 02EE;MODIFIER LETTER DOUBLE APOSTROPHE;Lm;0;L;;;;;N;;;;; 02EF;MODIFIER LETTER LOW DOWN ARROWHEAD;Sk;0;ON;;;;;N;;;;; @@ -813,8 +813,14 @@ 036D;COMBINING LATIN SMALL LETTER T;Mn;230;NSM;;;;;N;;;;; 036E;COMBINING LATIN SMALL LETTER V;Mn;230;NSM;;;;;N;;;;; 036F;COMBINING LATIN SMALL LETTER X;Mn;230;NSM;;;;;N;;;;; -0374;GREEK NUMERAL SIGN;Sk;0;ON;02B9;;;;N;GREEK UPPER NUMERAL SIGN;Dexia keraia;;; +0370;GREEK CAPITAL LETTER HETA;Lu;0;L;;;;;N;;;;0371; +0371;GREEK SMALL LETTER HETA;Ll;0;L;;;;;N;;;0370;;0370 +0372;GREEK CAPITAL LETTER ARCHAIC SAMPI;Lu;0;L;;;;;N;;;;0373; +0373;GREEK SMALL LETTER ARCHAIC SAMPI;Ll;0;L;;;;;N;;;0372;;0372 +0374;GREEK NUMERAL SIGN;Lm;0;ON;02B9;;;;N;GREEK UPPER NUMERAL SIGN;Dexia keraia;;; 0375;GREEK LOWER NUMERAL SIGN;Sk;0;ON;;;;;N;;Aristeri keraia;;; +0376;GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA;Lu;0;L;;;;;N;;;;0377; +0377;GREEK SMALL LETTER PAMPHYLIAN DIGAMMA;Ll;0;L;;;;;N;;;0376;;0376 037A;GREEK YPOGEGRAMMENI;Lm;0;L; 0020 0345;;;;N;GREEK SPACING IOTA BELOW;;;; 037B;GREEK SMALL REVERSED LUNATE SIGMA SYMBOL;Ll;0;L;;;;;N;;;03FD;;03FD 037C;GREEK SMALL DOTTED LUNATE SIGMA SYMBOL;Ll;0;L;;;;;N;;;03FE;;03FE @@ -892,6 +898,7 @@ 03CC;GREEK SMALL LETTER OMICRON WITH TONOS;Ll;0;L;03BF 0301;;;;N;GREEK SMALL LETTER OMICRON TONOS;;038C;;038C 03CD;GREEK SMALL LETTER UPSILON WITH TONOS;Ll;0;L;03C5 0301;;;;N;GREEK SMALL LETTER UPSILON TONOS;;038E;;038E 03CE;GREEK SMALL LETTER OMEGA WITH TONOS;Ll;0;L;03C9 0301;;;;N;GREEK SMALL LETTER OMEGA TONOS;;038F;;038F +03CF;GREEK CAPITAL KAI SYMBOL;Lu;0;L;;;;;N;;;;03D7; 03D0;GREEK BETA SYMBOL;Ll;0;L; 03B2;;;;N;GREEK SMALL LETTER CURLED BETA;;0392;;0392 03D1;GREEK THETA SYMBOL;Ll;0;L; 03B8;;;;N;GREEK SMALL LETTER SCRIPT THETA;;0398;;0398 03D2;GREEK UPSILON WITH HOOK SYMBOL;Lu;0;L; 03A5;;;;N;GREEK CAPITAL LETTER UPSILON HOOK;;;; @@ -899,7 +906,7 @@ 03D4;GREEK UPSILON WITH DIAERESIS AND HOOK SYMBOL;Lu;0;L;03D2 0308;;;;N;GREEK CAPITAL LETTER UPSILON HOOK DIAERESIS;;;; 03D5;GREEK PHI SYMBOL;Ll;0;L; 03C6;;;;N;GREEK SMALL LETTER SCRIPT PHI;;03A6;;03A6 03D6;GREEK PI SYMBOL;Ll;0;L; 03C0;;;;N;GREEK SMALL LETTER OMEGA PI;;03A0;;03A0 -03D7;GREEK KAI SYMBOL;Ll;0;L;;;;;N;;;;; +03D7;GREEK KAI SYMBOL;Ll;0;L;;;;;N;;;03CF;;03CF 03D8;GREEK LETTER ARCHAIC KOPPA;Lu;0;L;;;;;N;;*;;03D9; 03D9;GREEK SMALL LETTER ARCHAIC KOPPA;Ll;0;L;;;;;N;;*;03D8;;03D8 03DA;GREEK LETTER STIGMA;Lu;0;L;;;;;N;GREEK CAPITAL LETTER STIGMA;;;03DB; @@ -1075,6 +1082,7 @@ 0484;COMBINING CYRILLIC PALATALIZATION;Mn;230;NSM;;;;;N;CYRILLIC NON-SPACING PALATALIZATION;;;; 0485;COMBINING CYRILLIC DASIA PNEUMATA;Mn;230;NSM;;;;;N;CYRILLIC NON-SPACING DASIA PNEUMATA;;;; 0486;COMBINING CYRILLIC PSILI PNEUMATA;Mn;230;NSM;;;;;N;CYRILLIC NON-SPACING PSILI PNEUMATA;;;; +0487;COMBINING CYRILLIC POKRYTIE;Mn;230;NSM;;;;;N;;;;; 0488;COMBINING CYRILLIC HUNDRED THOUSANDS SIGN;Me;0;NSM;;;;;N;;;;; 0489;COMBINING CYRILLIC MILLIONS SIGN;Me;0;NSM;;;;;N;;;;; 048A;CYRILLIC CAPITAL LETTER SHORT I WITH TAIL;Lu;0;L;;;;;N;;;;048B; @@ -1215,6 +1223,22 @@ 0511;CYRILLIC SMALL LETTER REVERSED ZE;Ll;0;L;;;;;N;;;0510;;0510 0512;CYRILLIC CAPITAL LETTER EL WITH HOOK;Lu;0;L;;;;;N;;;;0513; 0513;CYRILLIC SMALL LETTER EL WITH HOOK;Ll;0;L;;;;;N;;;0512;;0512 +0514;CYRILLIC CAPITAL LETTER LHA;Lu;0;L;;;;;N;;;;0515; +0515;CYRILLIC SMALL LETTER LHA;Ll;0;L;;;;;N;;;0514;;0514 +0516;CYRILLIC CAPITAL LETTER RHA;Lu;0;L;;;;;N;;;;0517; +0517;CYRILLIC SMALL LETTER RHA;Ll;0;L;;;;;N;;;0516;;0516 +0518;CYRILLIC CAPITAL LETTER YAE;Lu;0;L;;;;;N;;;;0519; +0519;CYRILLIC SMALL LETTER YAE;Ll;0;L;;;;;N;;;0518;;0518 +051A;CYRILLIC CAPITAL LETTER QA;Lu;0;L;;;;;N;;;;051B; +051B;CYRILLIC SMALL LETTER QA;Ll;0;L;;;;;N;;;051A;;051A +051C;CYRILLIC CAPITAL LETTER WE;Lu;0;L;;;;;N;;;;051D; +051D;CYRILLIC SMALL LETTER WE;Ll;0;L;;;;;N;;;051C;;051C +051E;CYRILLIC CAPITAL LETTER ALEUT KA;Lu;0;L;;;;;N;;;;051F; +051F;CYRILLIC SMALL LETTER ALEUT KA;Ll;0;L;;;;;N;;;051E;;051E +0520;CYRILLIC CAPITAL LETTER EL WITH MIDDLE HOOK;Lu;0;L;;;;;N;;;;0521; +0521;CYRILLIC SMALL LETTER EL WITH MIDDLE HOOK;Ll;0;L;;;;;N;;;0520;;0520 +0522;CYRILLIC CAPITAL LETTER EN WITH MIDDLE HOOK;Lu;0;L;;;;;N;;;;0523; +0523;CYRILLIC SMALL LETTER EN WITH MIDDLE HOOK;Ll;0;L;;;;;N;;;0522;;0522 0531;ARMENIAN CAPITAL LETTER AYB;Lu;0;L;;;;;N;;;;0561; 0532;ARMENIAN CAPITAL LETTER BEN;Lu;0;L;;;;;N;;;;0562; 0533;ARMENIAN CAPITAL LETTER GIM;Lu;0;L;;;;;N;;;;0563; @@ -1346,7 +1370,7 @@ 05BB;HEBREW POINT QUBUTS;Mn;20;NSM;;;;;N;;;;; 05BC;HEBREW POINT DAGESH OR MAPIQ;Mn;21;NSM;;;;;N;HEBREW POINT DAGESH;or shuruq;;; 05BD;HEBREW POINT METEG;Mn;22;NSM;;;;;N;;*;;; -05BE;HEBREW PUNCTUATION MAQAF;Po;0;R;;;;;N;;;;; +05BE;HEBREW PUNCTUATION MAQAF;Pd;0;R;;;;;N;;;;; 05BF;HEBREW POINT RAFE;Mn;23;NSM;;;;;N;;;;; 05C0;HEBREW PUNCTUATION PASEQ;Po;0;R;;;;;N;HEBREW POINT PASEQ;*;;; 05C1;HEBREW POINT SHIN DOT;Mn;24;NSM;;;;;N;;;;; @@ -1388,10 +1412,15 @@ 05F2;HEBREW LIGATURE YIDDISH DOUBLE YOD;Lo;0;R;;;;;N;HEBREW LETTER DOUBLE YOD;;;; 05F3;HEBREW PUNCTUATION GERESH;Po;0;R;;;;;N;;;;; 05F4;HEBREW PUNCTUATION GERSHAYIM;Po;0;R;;;;;N;;;;; -0600;ARABIC NUMBER SIGN;Cf;0;AL;;;;;N;;;;; -0601;ARABIC SIGN SANAH;Cf;0;AL;;;;;N;;;;; -0602;ARABIC FOOTNOTE MARKER;Cf;0;AL;;;;;N;;;;; -0603;ARABIC SIGN SAFHA;Cf;0;AL;;;;;N;;;;; +0600;ARABIC NUMBER SIGN;Cf;0;AN;;;;;N;;;;; +0601;ARABIC SIGN SANAH;Cf;0;AN;;;;;N;;;;; +0602;ARABIC FOOTNOTE MARKER;Cf;0;AN;;;;;N;;;;; +0603;ARABIC SIGN SAFHA;Cf;0;AN;;;;;N;;;;; +0606;ARABIC-INDIC CUBE ROOT;Sm;0;ON;;;;;N;;;;; +0607;ARABIC-INDIC FOURTH ROOT;Sm;0;ON;;;;;N;;;;; +0608;ARABIC RAY;Sm;0;AL;;;;;N;;;;; +0609;ARABIC-INDIC PER MILLE SIGN;Po;0;ET;;;;;N;;;;; +060A;ARABIC-INDIC PER TEN THOUSAND SIGN;Po;0;ET;;;;;N;;;;; 060B;AFGHANI SIGN;Sc;0;AL;;;;;N;;;;; 060C;ARABIC COMMA;Po;0;CS;;;;;N;;;;; 060D;ARABIC DATE SEPARATOR;Po;0;AL;;;;;N;;;;; @@ -1403,6 +1432,11 @@ 0613;ARABIC SIGN RADI ALLAHOU ANHU;Mn;230;NSM;;;;;N;;;;; 0614;ARABIC SIGN TAKHALLUS;Mn;230;NSM;;;;;N;;;;; 0615;ARABIC SMALL HIGH TAH;Mn;230;NSM;;;;;N;;;;; +0616;ARABIC SMALL HIGH LIGATURE ALEF WITH LAM WITH YEH;Mn;230;NSM;;;;;N;;;;; +0617;ARABIC SMALL HIGH ZAIN;Mn;230;NSM;;;;;N;;;;; +0618;ARABIC SMALL FATHA;Mn;30;NSM;;;;;N;;;;; +0619;ARABIC SMALL DAMMA;Mn;31;NSM;;;;;N;;;;; +061A;ARABIC SMALL KASRA;Mn;32;NSM;;;;;N;;;;; 061B;ARABIC SEMICOLON;Po;0;AL;;;;;N;;;;; 061E;ARABIC TRIPLE DOT PUNCTUATION MARK;Po;0;AL;;;;;N;;;;; 061F;ARABIC QUESTION MARK;Po;0;AL;;;;;N;;;;; @@ -1432,6 +1466,11 @@ 0638;ARABIC LETTER ZAH;Lo;0;AL;;;;;N;ARABIC LETTER DHAH;;;; 0639;ARABIC LETTER AIN;Lo;0;AL;;;;;N;;;;; 063A;ARABIC LETTER GHAIN;Lo;0;AL;;;;;N;;;;; +063B;ARABIC LETTER KEHEH WITH TWO DOTS ABOVE;Lo;0;AL;;;;;N;;;;; +063C;ARABIC LETTER KEHEH WITH THREE DOTS BELOW;Lo;0;AL;;;;;N;;;;; +063D;ARABIC LETTER FARSI YEH WITH INVERTED V;Lo;0;AL;;;;;N;;;;; +063E;ARABIC LETTER FARSI YEH WITH TWO DOTS ABOVE;Lo;0;AL;;;;;N;;;;; +063F;ARABIC LETTER FARSI YEH WITH THREE DOTS ABOVE;Lo;0;AL;;;;;N;;;;; 0640;ARABIC TATWEEL;Lm;0;AL;;;;;N;;;;; 0641;ARABIC LETTER FEH;Lo;0;AL;;;;;N;ARABIC LETTER FA;;;; 0642;ARABIC LETTER QAF;Lo;0;AL;;;;;N;;;;; @@ -1588,7 +1627,7 @@ 06DA;ARABIC SMALL HIGH JEEM;Mn;230;NSM;;;;;N;;;;; 06DB;ARABIC SMALL HIGH THREE DOTS;Mn;230;NSM;;;;;N;;;;; 06DC;ARABIC SMALL HIGH SEEN;Mn;230;NSM;;;;;N;;;;; -06DD;ARABIC END OF AYAH;Cf;0;AL;;;;;N;;;;; +06DD;ARABIC END OF AYAH;Cf;0;AN;;;;;N;;;;; 06DE;ARABIC START OF RUB EL HIZB;Me;0;NSM;;;;;N;;;;; 06DF;ARABIC SMALL HIGH ROUNDED ZERO;Mn;230;NSM;;;;;N;;;;; 06E0;ARABIC SMALL HIGH UPRIGHT RECTANGULAR ZERO;Mn;230;NSM;;;;;N;;;;; @@ -1730,6 +1769,24 @@ 076B;ARABIC LETTER REH WITH TWO DOTS VERTICALLY ABOVE;Lo;0;AL;;;;;N;;;;; 076C;ARABIC LETTER REH WITH HAMZA ABOVE;Lo;0;AL;;;;;N;;;;; 076D;ARABIC LETTER SEEN WITH TWO DOTS VERTICALLY ABOVE;Lo;0;AL;;;;;N;;;;; +076E;ARABIC LETTER HAH WITH SMALL ARABIC LETTER TAH BELOW;Lo;0;AL;;;;;N;;;;; +076F;ARABIC LETTER HAH WITH SMALL ARABIC LETTER TAH AND TWO DOTS;Lo;0;AL;;;;;N;;;;; +0770;ARABIC LETTER SEEN WITH SMALL ARABIC LETTER TAH AND TWO DOTS;Lo;0;AL;;;;;N;;;;; +0771;ARABIC LETTER REH WITH SMALL ARABIC LETTER TAH AND TWO DOTS;Lo;0;AL;;;;;N;;;;; +0772;ARABIC LETTER HAH WITH SMALL ARABIC LETTER TAH ABOVE;Lo;0;AL;;;;;N;;;;; +0773;ARABIC LETTER ALEF WITH EXTENDED ARABIC-INDIC DIGIT TWO ABOVE;Lo;0;AL;;;;;N;;;;; +0774;ARABIC LETTER ALEF WITH EXTENDED ARABIC-INDIC DIGIT THREE ABOVE;Lo;0;AL;;;;;N;;;;; +0775;ARABIC LETTER FARSI YEH WITH EXTENDED ARABIC-INDIC DIGIT TWO ABOVE;Lo;0;AL;;;;;N;;;;; +0776;ARABIC LETTER FARSI YEH WITH EXTENDED ARABIC-INDIC DIGIT THREE ABOVE;Lo;0;AL;;;;;N;;;;; +0777;ARABIC LETTER FARSI YEH WITH EXTENDED ARABIC-INDIC DIGIT FOUR BELOW;Lo;0;AL;;;;;N;;;;; +0778;ARABIC LETTER WAW WITH EXTENDED ARABIC-INDIC DIGIT TWO ABOVE;Lo;0;AL;;;;;N;;;;; +0779;ARABIC LETTER WAW WITH EXTENDED ARABIC-INDIC DIGIT THREE ABOVE;Lo;0;AL;;;;;N;;;;; +077A;ARABIC LETTER YEH BARREE WITH EXTENDED ARABIC-INDIC DIGIT TWO ABOVE;Lo;0;AL;;;;;N;;;;; +077B;ARABIC LETTER YEH BARREE WITH EXTENDED ARABIC-INDIC DIGIT THREE ABOVE;Lo;0;AL;;;;;N;;;;; +077C;ARABIC LETTER HAH WITH EXTENDED ARABIC-INDIC DIGIT FOUR BELOW;Lo;0;AL;;;;;N;;;;; +077D;ARABIC LETTER SEEN WITH EXTENDED ARABIC-INDIC DIGIT FOUR ABOVE;Lo;0;AL;;;;;N;;;;; +077E;ARABIC LETTER SEEN WITH INVERTED V;Lo;0;AL;;;;;N;;;;; +077F;ARABIC LETTER KAF WITH TWO DOTS ABOVE;Lo;0;AL;;;;;N;;;;; 0780;THAANA LETTER HAA;Lo;0;AL;;;;;N;;;;; 0781;THAANA LETTER SHAVIYANI;Lo;0;AL;;;;;N;;;;; 0782;THAANA LETTER NOONU;Lo;0;AL;;;;;N;;;;; @@ -1944,6 +2001,8 @@ 096E;DEVANAGARI DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; 096F;DEVANAGARI DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; 0970;DEVANAGARI ABBREVIATION SIGN;Po;0;L;;;;;N;;;;; +0971;DEVANAGARI SIGN HIGH SPACING DOT;Lm;0;L;;;;;N;;;;; +0972;DEVANAGARI LETTER CANDRA A;Lo;0;L;;;;;N;;;;; 097B;DEVANAGARI LETTER GGA;Lo;0;L;;;;;N;;;;; 097C;DEVANAGARI LETTER JJA;Lo;0;L;;;;;N;;;;; 097D;DEVANAGARI LETTER GLOTTAL STOP;Lo;0;L;;;;;N;;;;; @@ -2097,6 +2156,7 @@ 0A4B;GURMUKHI VOWEL SIGN OO;Mn;0;NSM;;;;;N;;;;; 0A4C;GURMUKHI VOWEL SIGN AU;Mn;0;NSM;;;;;N;;;;; 0A4D;GURMUKHI SIGN VIRAMA;Mn;9;NSM;;;;;N;;;;; +0A51;GURMUKHI SIGN UDAAT;Mn;0;NSM;;;;;N;;;;; 0A59;GURMUKHI LETTER KHHA;Lo;0;L;0A16 0A3C;;;;N;;;;; 0A5A;GURMUKHI LETTER GHHA;Lo;0;L;0A17 0A3C;;;;N;;;;; 0A5B;GURMUKHI LETTER ZA;Lo;0;L;0A1C 0A3C;;;;N;;;;; @@ -2117,6 +2177,7 @@ 0A72;GURMUKHI IRI;Lo;0;L;;;;;N;;;;; 0A73;GURMUKHI URA;Lo;0;L;;;;;N;;;;; 0A74;GURMUKHI EK ONKAR;Lo;0;L;;;;;N;;;;; +0A75;GURMUKHI SIGN YAKASH;Mn;0;NSM;;;;;N;;;;; 0A81;GUJARATI SIGN CANDRABINDU;Mn;0;NSM;;;;;N;;;;; 0A82;GUJARATI SIGN ANUSVARA;Mn;0;NSM;;;;;N;;;;; 0A83;GUJARATI SIGN VISARGA;Mc;0;L;;;;;N;;;;; @@ -2257,6 +2318,7 @@ 0B41;ORIYA VOWEL SIGN U;Mn;0;NSM;;;;;N;;;;; 0B42;ORIYA VOWEL SIGN UU;Mn;0;NSM;;;;;N;;;;; 0B43;ORIYA VOWEL SIGN VOCALIC R;Mn;0;NSM;;;;;N;;;;; +0B44;ORIYA VOWEL SIGN VOCALIC RR;Mn;0;NSM;;;;;N;;;;; 0B47;ORIYA VOWEL SIGN E;Mc;0;L;;;;;N;;;;; 0B48;ORIYA VOWEL SIGN AI;Mc;0;L;0B47 0B56;;;;N;;;;; 0B4B;ORIYA VOWEL SIGN O;Mc;0;L;0B47 0B3E;;;;N;;;;; @@ -2269,6 +2331,8 @@ 0B5F;ORIYA LETTER YYA;Lo;0;L;;;;;N;;;;; 0B60;ORIYA LETTER VOCALIC RR;Lo;0;L;;;;;N;;;;; 0B61;ORIYA LETTER VOCALIC LL;Lo;0;L;;;;;N;;;;; +0B62;ORIYA VOWEL SIGN VOCALIC L;Mn;0;NSM;;;;;N;;;;; +0B63;ORIYA VOWEL SIGN VOCALIC LL;Mn;0;NSM;;;;;N;;;;; 0B66;ORIYA DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; 0B67;ORIYA DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; 0B68;ORIYA DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; @@ -2330,6 +2394,7 @@ 0BCB;TAMIL VOWEL SIGN OO;Mc;0;L;0BC7 0BBE;;;;N;;;;; 0BCC;TAMIL VOWEL SIGN AU;Mc;0;L;0BC6 0BD7;;;;N;;;;; 0BCD;TAMIL SIGN VIRAMA;Mn;9;NSM;;;;;N;;;;; +0BD0;TAMIL OM;Lo;0;L;;;;;N;;;;; 0BD7;TAMIL AU LENGTH MARK;Mc;0;L;;;;;N;;;;; 0BE6;TAMIL DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; 0BE7;TAMIL DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; @@ -2404,6 +2469,7 @@ 0C37;TELUGU LETTER SSA;Lo;0;L;;;;;N;;;;; 0C38;TELUGU LETTER SA;Lo;0;L;;;;;N;;;;; 0C39;TELUGU LETTER HA;Lo;0;L;;;;;N;;;;; +0C3D;TELUGU SIGN AVAGRAHA;Lo;0;L;;;;;N;;;;; 0C3E;TELUGU VOWEL SIGN AA;Mn;0;NSM;;;;;N;;;;; 0C3F;TELUGU VOWEL SIGN I;Mn;0;NSM;;;;;N;;;;; 0C40;TELUGU VOWEL SIGN II;Mn;0;NSM;;;;;N;;;;; @@ -2420,8 +2486,12 @@ 0C4D;TELUGU SIGN VIRAMA;Mn;9;NSM;;;;;N;;;;; 0C55;TELUGU LENGTH MARK;Mn;84;NSM;;;;;N;;;;; 0C56;TELUGU AI LENGTH MARK;Mn;91;NSM;;;;;N;;;;; +0C58;TELUGU LETTER TSA;Lo;0;L;;;;;N;;;;; +0C59;TELUGU LETTER DZA;Lo;0;L;;;;;N;;;;; 0C60;TELUGU LETTER VOCALIC RR;Lo;0;L;;;;;N;;;;; 0C61;TELUGU LETTER VOCALIC LL;Lo;0;L;;;;;N;;;;; +0C62;TELUGU VOWEL SIGN VOCALIC L;Mn;0;NSM;;;;;N;;;;; +0C63;TELUGU VOWEL SIGN VOCALIC LL;Mn;0;NSM;;;;;N;;;;; 0C66;TELUGU DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; 0C67;TELUGU DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; 0C68;TELUGU DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; @@ -2432,6 +2502,14 @@ 0C6D;TELUGU DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; 0C6E;TELUGU DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; 0C6F;TELUGU DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +0C78;TELUGU FRACTION DIGIT ZERO FOR ODD POWERS OF FOUR;No;0;ON;;;;0;N;;;;; +0C79;TELUGU FRACTION DIGIT ONE FOR ODD POWERS OF FOUR;No;0;ON;;;;1;N;;;;; +0C7A;TELUGU FRACTION DIGIT TWO FOR ODD POWERS OF FOUR;No;0;ON;;;;2;N;;;;; +0C7B;TELUGU FRACTION DIGIT THREE FOR ODD POWERS OF FOUR;No;0;ON;;;;3;N;;;;; +0C7C;TELUGU FRACTION DIGIT ONE FOR EVEN POWERS OF FOUR;No;0;ON;;;;1;N;;;;; +0C7D;TELUGU FRACTION DIGIT TWO FOR EVEN POWERS OF FOUR;No;0;ON;;;;2;N;;;;; +0C7E;TELUGU FRACTION DIGIT THREE FOR EVEN POWERS OF FOUR;No;0;ON;;;;3;N;;;;; +0C7F;TELUGU SIGN TUUMU;So;0;L;;;;;N;;;;; 0C82;KANNADA SIGN ANUSVARA;Mc;0;L;;;;;N;;;;; 0C83;KANNADA SIGN VISARGA;Mc;0;L;;;;;N;;;;; 0C85;KANNADA LETTER A;Lo;0;L;;;;;N;;;;; @@ -2570,12 +2648,14 @@ 0D37;MALAYALAM LETTER SSA;Lo;0;L;;;;;N;;;;; 0D38;MALAYALAM LETTER SA;Lo;0;L;;;;;N;;;;; 0D39;MALAYALAM LETTER HA;Lo;0;L;;;;;N;;;;; +0D3D;MALAYALAM SIGN AVAGRAHA;Lo;0;L;;;;;N;;;;; 0D3E;MALAYALAM VOWEL SIGN AA;Mc;0;L;;;;;N;;;;; 0D3F;MALAYALAM VOWEL SIGN I;Mc;0;L;;;;;N;;;;; 0D40;MALAYALAM VOWEL SIGN II;Mc;0;L;;;;;N;;;;; 0D41;MALAYALAM VOWEL SIGN U;Mn;0;NSM;;;;;N;;;;; 0D42;MALAYALAM VOWEL SIGN UU;Mn;0;NSM;;;;;N;;;;; 0D43;MALAYALAM VOWEL SIGN VOCALIC R;Mn;0;NSM;;;;;N;;;;; +0D44;MALAYALAM VOWEL SIGN VOCALIC RR;Mn;0;NSM;;;;;N;;;;; 0D46;MALAYALAM VOWEL SIGN E;Mc;0;L;;;;;N;;;;; 0D47;MALAYALAM VOWEL SIGN EE;Mc;0;L;;;;;N;;;;; 0D48;MALAYALAM VOWEL SIGN AI;Mc;0;L;;;;;N;;;;; @@ -2586,6 +2666,8 @@ 0D57;MALAYALAM AU LENGTH MARK;Mc;0;L;;;;;N;;;;; 0D60;MALAYALAM LETTER VOCALIC RR;Lo;0;L;;;;;N;;;;; 0D61;MALAYALAM LETTER VOCALIC LL;Lo;0;L;;;;;N;;;;; +0D62;MALAYALAM VOWEL SIGN VOCALIC L;Mn;0;NSM;;;;;N;;;;; +0D63;MALAYALAM VOWEL SIGN VOCALIC LL;Mn;0;NSM;;;;;N;;;;; 0D66;MALAYALAM DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; 0D67;MALAYALAM DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; 0D68;MALAYALAM DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; @@ -2596,6 +2678,19 @@ 0D6D;MALAYALAM DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; 0D6E;MALAYALAM DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; 0D6F;MALAYALAM DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +0D70;MALAYALAM NUMBER TEN;No;0;L;;;;10;N;;;;; +0D71;MALAYALAM NUMBER ONE HUNDRED;No;0;L;;;;100;N;;;;; +0D72;MALAYALAM NUMBER ONE THOUSAND;No;0;L;;;;1000;N;;;;; +0D73;MALAYALAM FRACTION ONE QUARTER;No;0;L;;;;1/4;N;;;;; +0D74;MALAYALAM FRACTION ONE HALF;No;0;L;;;;1/2;N;;;;; +0D75;MALAYALAM FRACTION THREE QUARTERS;No;0;L;;;;3/4;N;;;;; +0D79;MALAYALAM DATE MARK;So;0;L;;;;;N;;;;; +0D7A;MALAYALAM LETTER CHILLU NN;Lo;0;L;;;;;N;;;;; +0D7B;MALAYALAM LETTER CHILLU N;Lo;0;L;;;;;N;;;;; +0D7C;MALAYALAM LETTER CHILLU RR;Lo;0;L;;;;;N;;;;; +0D7D;MALAYALAM LETTER CHILLU L;Lo;0;L;;;;;N;;;;; +0D7E;MALAYALAM LETTER CHILLU LL;Lo;0;L;;;;;N;;;;; +0D7F;MALAYALAM LETTER CHILLU K;Lo;0;L;;;;;N;;;;; 0D82;SINHALA SIGN ANUSVARAYA;Mc;0;L;;;;;N;;;;; 0D83;SINHALA SIGN VISARGAYA;Mc;0;L;;;;;N;;;;; 0D85;SINHALA LETTER AYANNA;Lo;0;L;;;;;N;;;;; @@ -2934,6 +3029,8 @@ 0F68;TIBETAN LETTER A;Lo;0;L;;;;;N;;;;; 0F69;TIBETAN LETTER KSSA;Lo;0;L;0F40 0FB5;;;;N;;;;; 0F6A;TIBETAN LETTER FIXED-FORM RA;Lo;0;L;;;;;N;;*;;; +0F6B;TIBETAN LETTER KKA;Lo;0;L;;;;;N;;;;; +0F6C;TIBETAN LETTER RRA;Lo;0;L;;;;;N;;;;; 0F71;TIBETAN VOWEL SIGN AA;Mn;129;NSM;;;;;N;;;;; 0F72;TIBETAN VOWEL SIGN I;Mn;130;NSM;;;;;N;;;;; 0F73;TIBETAN VOWEL SIGN II;Mn;0;NSM;0F71 0F72;;;;N;;;;; @@ -3020,9 +3117,13 @@ 0FCA;TIBETAN SYMBOL NOR BU NYIS -KHYIL;So;0;L;;;;;N;;norbu nyi khyi;;; 0FCB;TIBETAN SYMBOL NOR BU GSUM -KHYIL;So;0;L;;;;;N;;norbu sum khyi;;; 0FCC;TIBETAN SYMBOL NOR BU BZHI -KHYIL;So;0;L;;;;;N;;norbu shi khyi;;; +0FCE;TIBETAN SIGN RDEL NAG RDEL DKAR;So;0;L;;;;;N;;dena deka;;; 0FCF;TIBETAN SIGN RDEL NAG GSUM;So;0;L;;;;;N;;dena sum;;; 0FD0;TIBETAN MARK BSKA- SHOG GI MGO RGYAN;Po;0;L;;;;;N;;ka shog gi go gyen;;; 0FD1;TIBETAN MARK MNYAM YIG GI MGO RGYAN;Po;0;L;;;;;N;;nyam yig gi go gyen;;; +0FD2;TIBETAN MARK NYIS TSHEG;Po;0;L;;;;;N;;nyi tsek;;; +0FD3;TIBETAN MARK INITIAL BRDA RNYING YIG MGO MDUN MA;Po;0;L;;;;;N;;da nying yik go dun ma;;; +0FD4;TIBETAN MARK CLOSING BRDA RNYING YIG MGO SGAB MA;Po;0;L;;;;;N;;da nying yik go kab ma;;; 1000;MYANMAR LETTER KA;Lo;0;L;;;;;N;;;;; 1001;MYANMAR LETTER KHA;Lo;0;L;;;;;N;;;;; 1002;MYANMAR LETTER GA;Lo;0;L;;;;;N;;;;; @@ -3057,13 +3158,16 @@ 101F;MYANMAR LETTER HA;Lo;0;L;;;;;N;;;;; 1020;MYANMAR LETTER LLA;Lo;0;L;;;;;N;;;;; 1021;MYANMAR LETTER A;Lo;0;L;;;;;N;;;;; +1022;MYANMAR LETTER SHAN A;Lo;0;L;;;;;N;;;;; 1023;MYANMAR LETTER I;Lo;0;L;;;;;N;;;;; 1024;MYANMAR LETTER II;Lo;0;L;;;;;N;;;;; 1025;MYANMAR LETTER U;Lo;0;L;;;;;N;;;;; 1026;MYANMAR LETTER UU;Lo;0;L;1025 102E;;;;N;;;;; 1027;MYANMAR LETTER E;Lo;0;L;;;;;N;;;;; +1028;MYANMAR LETTER MON E;Lo;0;L;;;;;N;;;;; 1029;MYANMAR LETTER O;Lo;0;L;;;;;N;;;;; 102A;MYANMAR LETTER AU;Lo;0;L;;;;;N;;;;; +102B;MYANMAR VOWEL SIGN TALL AA;Mc;0;L;;;;;N;;;;; 102C;MYANMAR VOWEL SIGN AA;Mc;0;L;;;;;N;;;;; 102D;MYANMAR VOWEL SIGN I;Mn;0;NSM;;;;;N;;;;; 102E;MYANMAR VOWEL SIGN II;Mn;0;NSM;;;;;N;;;;; @@ -3071,10 +3175,19 @@ 1030;MYANMAR VOWEL SIGN UU;Mn;0;NSM;;;;;N;;;;; 1031;MYANMAR VOWEL SIGN E;Mc;0;L;;;;;N;;;;; 1032;MYANMAR VOWEL SIGN AI;Mn;0;NSM;;;;;N;;;;; +1033;MYANMAR VOWEL SIGN MON II;Mn;0;NSM;;;;;N;;;;; +1034;MYANMAR VOWEL SIGN MON O;Mn;0;NSM;;;;;N;;;;; +1035;MYANMAR VOWEL SIGN E ABOVE;Mn;0;NSM;;;;;N;;;;; 1036;MYANMAR SIGN ANUSVARA;Mn;0;NSM;;;;;N;;;;; 1037;MYANMAR SIGN DOT BELOW;Mn;7;NSM;;;;;N;;;;; 1038;MYANMAR SIGN VISARGA;Mc;0;L;;;;;N;;;;; 1039;MYANMAR SIGN VIRAMA;Mn;9;NSM;;;;;N;;;;; +103A;MYANMAR SIGN ASAT;Mn;9;NSM;;;;;N;;;;; +103B;MYANMAR CONSONANT SIGN MEDIAL YA;Mc;0;L;;;;;N;;;;; +103C;MYANMAR CONSONANT SIGN MEDIAL RA;Mc;0;L;;;;;N;;;;; +103D;MYANMAR CONSONANT SIGN MEDIAL WA;Mn;0;NSM;;;;;N;;;;; +103E;MYANMAR CONSONANT SIGN MEDIAL HA;Mn;0;NSM;;;;;N;;;;; +103F;MYANMAR LETTER GREAT SA;Lo;0;L;;;;;N;;;;; 1040;MYANMAR DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; 1041;MYANMAR DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; 1042;MYANMAR DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; @@ -3101,6 +3214,72 @@ 1057;MYANMAR VOWEL SIGN VOCALIC RR;Mc;0;L;;;;;N;;;;; 1058;MYANMAR VOWEL SIGN VOCALIC L;Mn;0;NSM;;;;;N;;;;; 1059;MYANMAR VOWEL SIGN VOCALIC LL;Mn;0;NSM;;;;;N;;;;; +105A;MYANMAR LETTER MON NGA;Lo;0;L;;;;;N;;;;; +105B;MYANMAR LETTER MON JHA;Lo;0;L;;;;;N;;;;; +105C;MYANMAR LETTER MON BBA;Lo;0;L;;;;;N;;;;; +105D;MYANMAR LETTER MON BBE;Lo;0;L;;;;;N;;;;; +105E;MYANMAR CONSONANT SIGN MON MEDIAL NA;Mn;0;NSM;;;;;N;;;;; +105F;MYANMAR CONSONANT SIGN MON MEDIAL MA;Mn;0;NSM;;;;;N;;;;; +1060;MYANMAR CONSONANT SIGN MON MEDIAL LA;Mn;0;NSM;;;;;N;;;;; +1061;MYANMAR LETTER SGAW KAREN SHA;Lo;0;L;;;;;N;;;;; +1062;MYANMAR VOWEL SIGN SGAW KAREN EU;Mc;0;L;;;;;N;;;;; +1063;MYANMAR TONE MARK SGAW KAREN HATHI;Mc;0;L;;;;;N;;;;; +1064;MYANMAR TONE MARK SGAW KAREN KE PHO;Mc;0;L;;;;;N;;;;; +1065;MYANMAR LETTER WESTERN PWO KAREN THA;Lo;0;L;;;;;N;;;;; +1066;MYANMAR LETTER WESTERN PWO KAREN PWA;Lo;0;L;;;;;N;;;;; +1067;MYANMAR VOWEL SIGN WESTERN PWO KAREN EU;Mc;0;L;;;;;N;;;;; +1068;MYANMAR VOWEL SIGN WESTERN PWO KAREN UE;Mc;0;L;;;;;N;;;;; +1069;MYANMAR SIGN WESTERN PWO KAREN TONE-1;Mc;0;L;;;;;N;;;;; +106A;MYANMAR SIGN WESTERN PWO KAREN TONE-2;Mc;0;L;;;;;N;;;;; +106B;MYANMAR SIGN WESTERN PWO KAREN TONE-3;Mc;0;L;;;;;N;;;;; +106C;MYANMAR SIGN WESTERN PWO KAREN TONE-4;Mc;0;L;;;;;N;;;;; +106D;MYANMAR SIGN WESTERN PWO KAREN TONE-5;Mc;0;L;;;;;N;;;;; +106E;MYANMAR LETTER EASTERN PWO KAREN NNA;Lo;0;L;;;;;N;;;;; +106F;MYANMAR LETTER EASTERN PWO KAREN YWA;Lo;0;L;;;;;N;;;;; +1070;MYANMAR LETTER EASTERN PWO KAREN GHWA;Lo;0;L;;;;;N;;;;; +1071;MYANMAR VOWEL SIGN GEBA KAREN I;Mn;0;NSM;;;;;N;;;;; +1072;MYANMAR VOWEL SIGN KAYAH OE;Mn;0;NSM;;;;;N;;;;; +1073;MYANMAR VOWEL SIGN KAYAH U;Mn;0;NSM;;;;;N;;;;; +1074;MYANMAR VOWEL SIGN KAYAH EE;Mn;0;NSM;;;;;N;;;;; +1075;MYANMAR LETTER SHAN KA;Lo;0;L;;;;;N;;;;; +1076;MYANMAR LETTER SHAN KHA;Lo;0;L;;;;;N;;;;; +1077;MYANMAR LETTER SHAN GA;Lo;0;L;;;;;N;;;;; +1078;MYANMAR LETTER SHAN CA;Lo;0;L;;;;;N;;;;; +1079;MYANMAR LETTER SHAN ZA;Lo;0;L;;;;;N;;;;; +107A;MYANMAR LETTER SHAN NYA;Lo;0;L;;;;;N;;;;; +107B;MYANMAR LETTER SHAN DA;Lo;0;L;;;;;N;;;;; +107C;MYANMAR LETTER SHAN NA;Lo;0;L;;;;;N;;;;; +107D;MYANMAR LETTER SHAN PHA;Lo;0;L;;;;;N;;;;; +107E;MYANMAR LETTER SHAN FA;Lo;0;L;;;;;N;;;;; +107F;MYANMAR LETTER SHAN BA;Lo;0;L;;;;;N;;;;; +1080;MYANMAR LETTER SHAN THA;Lo;0;L;;;;;N;;;;; +1081;MYANMAR LETTER SHAN HA;Lo;0;L;;;;;N;;;;; +1082;MYANMAR CONSONANT SIGN SHAN MEDIAL WA;Mn;0;NSM;;;;;N;;;;; +1083;MYANMAR VOWEL SIGN SHAN AA;Mc;0;L;;;;;N;;;;; +1084;MYANMAR VOWEL SIGN SHAN E;Mc;0;L;;;;;N;;;;; +1085;MYANMAR VOWEL SIGN SHAN E ABOVE;Mn;0;NSM;;;;;N;;;;; +1086;MYANMAR VOWEL SIGN SHAN FINAL Y;Mn;0;NSM;;;;;N;;;;; +1087;MYANMAR SIGN SHAN TONE-2;Mc;0;L;;;;;N;;;;; +1088;MYANMAR SIGN SHAN TONE-3;Mc;0;L;;;;;N;;;;; +1089;MYANMAR SIGN SHAN TONE-5;Mc;0;L;;;;;N;;;;; +108A;MYANMAR SIGN SHAN TONE-6;Mc;0;L;;;;;N;;;;; +108B;MYANMAR SIGN SHAN COUNCIL TONE-2;Mc;0;L;;;;;N;;;;; +108C;MYANMAR SIGN SHAN COUNCIL TONE-3;Mc;0;L;;;;;N;;;;; +108D;MYANMAR SIGN SHAN COUNCIL EMPHATIC TONE;Mn;220;NSM;;;;;N;;;;; +108E;MYANMAR LETTER RUMAI PALAUNG FA;Lo;0;L;;;;;N;;;;; +108F;MYANMAR SIGN RUMAI PALAUNG TONE-5;Mc;0;L;;;;;N;;;;; +1090;MYANMAR SHAN DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +1091;MYANMAR SHAN DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +1092;MYANMAR SHAN DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +1093;MYANMAR SHAN DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +1094;MYANMAR SHAN DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +1095;MYANMAR SHAN DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +1096;MYANMAR SHAN DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +1097;MYANMAR SHAN DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +1098;MYANMAR SHAN DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +1099;MYANMAR SHAN DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +109E;MYANMAR SYMBOL SHAN ONE;So;0;L;;;;;N;;;;; +109F;MYANMAR SYMBOL SHAN EXCLAMATION;So;0;L;;;;;N;;;;; 10A0;GEORGIAN CAPITAL LETTER AN;Lu;0;L;;;;;N;;Khutsuri;;2D00; 10A1;GEORGIAN CAPITAL LETTER BAN;Lu;0;L;;;;;N;;Khutsuri;;2D01; 10A2;GEORGIAN CAPITAL LETTER GAN;Lu;0;L;;;;;N;;Khutsuri;;2D02; @@ -4981,6 +5160,7 @@ 18A7;MONGOLIAN LETTER ALI GALI HALF YA;Lo;0;L;;;;;N;;;;; 18A8;MONGOLIAN LETTER MANCHU ALI GALI BHA;Lo;0;L;;;;;N;;;;; 18A9;MONGOLIAN LETTER ALI GALI DAGALGA;Mn;228;NSM;;;;;N;;;;; +18AA;MONGOLIAN LETTER MANCHU ALI GALI LHA;Lo;0;L;;;;;N;;;;; 1900;LIMBU VOWEL-CARRIER LETTER;Lo;0;L;;;;;N;;;;; 1901;LIMBU LETTER KA;Lo;0;L;;;;;N;;;;; 1902;LIMBU LETTER KHA;Lo;0;L;;;;;N;;;;; @@ -5019,9 +5199,9 @@ 1926;LIMBU VOWEL SIGN AU;Mc;0;L;;;;;N;;;;; 1927;LIMBU VOWEL SIGN E;Mn;0;NSM;;;;;N;;;;; 1928;LIMBU VOWEL SIGN O;Mn;0;NSM;;;;;N;;;;; -1929;LIMBU SUBJOINED LETTER YA;Mc;0;NSM;;;;;N;;;;; -192A;LIMBU SUBJOINED LETTER RA;Mc;0;NSM;;;;;N;;;;; -192B;LIMBU SUBJOINED LETTER WA;Mc;0;NSM;;;;;N;;;;; +1929;LIMBU SUBJOINED LETTER YA;Mc;0;L;;;;;N;;;;; +192A;LIMBU SUBJOINED LETTER RA;Mc;0;L;;;;;N;;;;; +192B;LIMBU SUBJOINED LETTER WA;Mc;0;L;;;;;N;;;;; 1930;LIMBU SMALL LETTER KA;Mc;0;L;;;;;N;;;;; 1931;LIMBU SMALL LETTER NGA;Mc;0;L;;;;;N;;;;; 1932;LIMBU SMALL LETTER ANUSVARA;Mn;0;NSM;;;;;N;;;;; @@ -5345,6 +5525,183 @@ 1B7A;BALINESE MUSICAL SYMBOL LEFT-HAND CLOSED PLAK;So;0;L;;;;;N;;;;; 1B7B;BALINESE MUSICAL SYMBOL LEFT-HAND CLOSED PLUK;So;0;L;;;;;N;;;;; 1B7C;BALINESE MUSICAL SYMBOL LEFT-HAND OPEN PING;So;0;L;;;;;N;;;;; +1B80;SUNDANESE SIGN PANYECEK;Mn;0;NSM;;;;;N;;;;; +1B81;SUNDANESE SIGN PANGLAYAR;Mn;0;NSM;;;;;N;;;;; +1B82;SUNDANESE SIGN PANGWISAD;Mc;0;L;;;;;N;;;;; +1B83;SUNDANESE LETTER A;Lo;0;L;;;;;N;;;;; +1B84;SUNDANESE LETTER I;Lo;0;L;;;;;N;;;;; +1B85;SUNDANESE LETTER U;Lo;0;L;;;;;N;;;;; +1B86;SUNDANESE LETTER AE;Lo;0;L;;;;;N;;;;; +1B87;SUNDANESE LETTER O;Lo;0;L;;;;;N;;;;; +1B88;SUNDANESE LETTER E;Lo;0;L;;;;;N;;;;; +1B89;SUNDANESE LETTER EU;Lo;0;L;;;;;N;;;;; +1B8A;SUNDANESE LETTER KA;Lo;0;L;;;;;N;;;;; +1B8B;SUNDANESE LETTER QA;Lo;0;L;;;;;N;;;;; +1B8C;SUNDANESE LETTER GA;Lo;0;L;;;;;N;;;;; +1B8D;SUNDANESE LETTER NGA;Lo;0;L;;;;;N;;;;; +1B8E;SUNDANESE LETTER CA;Lo;0;L;;;;;N;;;;; +1B8F;SUNDANESE LETTER JA;Lo;0;L;;;;;N;;;;; +1B90;SUNDANESE LETTER ZA;Lo;0;L;;;;;N;;;;; +1B91;SUNDANESE LETTER NYA;Lo;0;L;;;;;N;;;;; +1B92;SUNDANESE LETTER TA;Lo;0;L;;;;;N;;;;; +1B93;SUNDANESE LETTER DA;Lo;0;L;;;;;N;;;;; +1B94;SUNDANESE LETTER NA;Lo;0;L;;;;;N;;;;; +1B95;SUNDANESE LETTER PA;Lo;0;L;;;;;N;;;;; +1B96;SUNDANESE LETTER FA;Lo;0;L;;;;;N;;;;; +1B97;SUNDANESE LETTER VA;Lo;0;L;;;;;N;;;;; +1B98;SUNDANESE LETTER BA;Lo;0;L;;;;;N;;;;; +1B99;SUNDANESE LETTER MA;Lo;0;L;;;;;N;;;;; +1B9A;SUNDANESE LETTER YA;Lo;0;L;;;;;N;;;;; +1B9B;SUNDANESE LETTER RA;Lo;0;L;;;;;N;;;;; +1B9C;SUNDANESE LETTER LA;Lo;0;L;;;;;N;;;;; +1B9D;SUNDANESE LETTER WA;Lo;0;L;;;;;N;;;;; +1B9E;SUNDANESE LETTER SA;Lo;0;L;;;;;N;;;;; +1B9F;SUNDANESE LETTER XA;Lo;0;L;;;;;N;;;;; +1BA0;SUNDANESE LETTER HA;Lo;0;L;;;;;N;;;;; +1BA1;SUNDANESE CONSONANT SIGN PAMINGKAL;Mc;0;L;;;;;N;;;;; +1BA2;SUNDANESE CONSONANT SIGN PANYAKRA;Mn;0;NSM;;;;;N;;;;; +1BA3;SUNDANESE CONSONANT SIGN PANYIKU;Mn;0;NSM;;;;;N;;;;; +1BA4;SUNDANESE VOWEL SIGN PANGHULU;Mn;0;NSM;;;;;N;;;;; +1BA5;SUNDANESE VOWEL SIGN PANYUKU;Mn;0;NSM;;;;;N;;;;; +1BA6;SUNDANESE VOWEL SIGN PANAELAENG;Mc;0;L;;;;;N;;;;; +1BA7;SUNDANESE VOWEL SIGN PANOLONG;Mc;0;L;;;;;N;;;;; +1BA8;SUNDANESE VOWEL SIGN PAMEPET;Mn;0;NSM;;;;;N;;;;; +1BA9;SUNDANESE VOWEL SIGN PANEULEUNG;Mn;0;NSM;;;;;N;;;;; +1BAA;SUNDANESE SIGN PAMAAEH;Mc;9;L;;;;;N;;;;; +1BAE;SUNDANESE LETTER KHA;Lo;0;L;;;;;N;;;;; +1BAF;SUNDANESE LETTER SYA;Lo;0;L;;;;;N;;;;; +1BB0;SUNDANESE DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +1BB1;SUNDANESE DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +1BB2;SUNDANESE DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +1BB3;SUNDANESE DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +1BB4;SUNDANESE DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +1BB5;SUNDANESE DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +1BB6;SUNDANESE DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +1BB7;SUNDANESE DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +1BB8;SUNDANESE DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +1BB9;SUNDANESE DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +1C00;LEPCHA LETTER KA;Lo;0;L;;;;;N;;;;; +1C01;LEPCHA LETTER KLA;Lo;0;L;;;;;N;;;;; +1C02;LEPCHA LETTER KHA;Lo;0;L;;;;;N;;;;; +1C03;LEPCHA LETTER GA;Lo;0;L;;;;;N;;;;; +1C04;LEPCHA LETTER GLA;Lo;0;L;;;;;N;;;;; +1C05;LEPCHA LETTER NGA;Lo;0;L;;;;;N;;;;; +1C06;LEPCHA LETTER CA;Lo;0;L;;;;;N;;;;; +1C07;LEPCHA LETTER CHA;Lo;0;L;;;;;N;;;;; +1C08;LEPCHA LETTER JA;Lo;0;L;;;;;N;;;;; +1C09;LEPCHA LETTER NYA;Lo;0;L;;;;;N;;;;; +1C0A;LEPCHA LETTER TA;Lo;0;L;;;;;N;;;;; +1C0B;LEPCHA LETTER THA;Lo;0;L;;;;;N;;;;; +1C0C;LEPCHA LETTER DA;Lo;0;L;;;;;N;;;;; +1C0D;LEPCHA LETTER NA;Lo;0;L;;;;;N;;;;; +1C0E;LEPCHA LETTER PA;Lo;0;L;;;;;N;;;;; +1C0F;LEPCHA LETTER PLA;Lo;0;L;;;;;N;;;;; +1C10;LEPCHA LETTER PHA;Lo;0;L;;;;;N;;;;; +1C11;LEPCHA LETTER FA;Lo;0;L;;;;;N;;;;; +1C12;LEPCHA LETTER FLA;Lo;0;L;;;;;N;;;;; +1C13;LEPCHA LETTER BA;Lo;0;L;;;;;N;;;;; +1C14;LEPCHA LETTER BLA;Lo;0;L;;;;;N;;;;; +1C15;LEPCHA LETTER MA;Lo;0;L;;;;;N;;;;; +1C16;LEPCHA LETTER MLA;Lo;0;L;;;;;N;;;;; +1C17;LEPCHA LETTER TSA;Lo;0;L;;;;;N;;;;; +1C18;LEPCHA LETTER TSHA;Lo;0;L;;;;;N;;;;; +1C19;LEPCHA LETTER DZA;Lo;0;L;;;;;N;;;;; +1C1A;LEPCHA LETTER YA;Lo;0;L;;;;;N;;;;; +1C1B;LEPCHA LETTER RA;Lo;0;L;;;;;N;;;;; +1C1C;LEPCHA LETTER LA;Lo;0;L;;;;;N;;;;; +1C1D;LEPCHA LETTER HA;Lo;0;L;;;;;N;;;;; +1C1E;LEPCHA LETTER HLA;Lo;0;L;;;;;N;;;;; +1C1F;LEPCHA LETTER VA;Lo;0;L;;;;;N;;;;; +1C20;LEPCHA LETTER SA;Lo;0;L;;;;;N;;;;; +1C21;LEPCHA LETTER SHA;Lo;0;L;;;;;N;;;;; +1C22;LEPCHA LETTER WA;Lo;0;L;;;;;N;;;;; +1C23;LEPCHA LETTER A;Lo;0;L;;;;;N;;;;; +1C24;LEPCHA SUBJOINED LETTER YA;Mc;0;L;;;;;N;;;;; +1C25;LEPCHA SUBJOINED LETTER RA;Mc;0;L;;;;;N;;;;; +1C26;LEPCHA VOWEL SIGN AA;Mc;0;L;;;;;N;;;;; +1C27;LEPCHA VOWEL SIGN I;Mc;0;L;;;;;N;;;;; +1C28;LEPCHA VOWEL SIGN O;Mc;0;L;;;;;N;;;;; +1C29;LEPCHA VOWEL SIGN OO;Mc;0;L;;;;;N;;;;; +1C2A;LEPCHA VOWEL SIGN U;Mc;0;L;;;;;N;;;;; +1C2B;LEPCHA VOWEL SIGN UU;Mc;0;L;;;;;N;;;;; +1C2C;LEPCHA VOWEL SIGN E;Mn;0;NSM;;;;;N;;;;; +1C2D;LEPCHA CONSONANT SIGN K;Mn;0;NSM;;;;;N;;;;; +1C2E;LEPCHA CONSONANT SIGN M;Mn;0;NSM;;;;;N;;;;; +1C2F;LEPCHA CONSONANT SIGN L;Mn;0;NSM;;;;;N;;;;; +1C30;LEPCHA CONSONANT SIGN N;Mn;0;NSM;;;;;N;;;;; +1C31;LEPCHA CONSONANT SIGN P;Mn;0;NSM;;;;;N;;;;; +1C32;LEPCHA CONSONANT SIGN R;Mn;0;NSM;;;;;N;;;;; +1C33;LEPCHA CONSONANT SIGN T;Mn;0;NSM;;;;;N;;;;; +1C34;LEPCHA CONSONANT SIGN NYIN-DO;Mc;0;L;;;;;N;;;;; +1C35;LEPCHA CONSONANT SIGN KANG;Mc;0;L;;;;;N;;;;; +1C36;LEPCHA SIGN RAN;Mn;0;NSM;;;;;N;;;;; +1C37;LEPCHA SIGN NUKTA;Mn;7;NSM;;;;;N;;;;; +1C3B;LEPCHA PUNCTUATION TA-ROL;Po;0;L;;;;;N;;;;; +1C3C;LEPCHA PUNCTUATION NYET THYOOM TA-ROL;Po;0;L;;;;;N;;;;; +1C3D;LEPCHA PUNCTUATION CER-WA;Po;0;L;;;;;N;;;;; +1C3E;LEPCHA PUNCTUATION TSHOOK CER-WA;Po;0;L;;;;;N;;;;; +1C3F;LEPCHA PUNCTUATION TSHOOK;Po;0;L;;;;;N;;;;; +1C40;LEPCHA DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +1C41;LEPCHA DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +1C42;LEPCHA DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +1C43;LEPCHA DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +1C44;LEPCHA DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +1C45;LEPCHA DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +1C46;LEPCHA DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +1C47;LEPCHA DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +1C48;LEPCHA DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +1C49;LEPCHA DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +1C4D;LEPCHA LETTER TTA;Lo;0;L;;;;;N;;;;; +1C4E;LEPCHA LETTER TTHA;Lo;0;L;;;;;N;;;;; +1C4F;LEPCHA LETTER DDA;Lo;0;L;;;;;N;;;;; +1C50;OL CHIKI DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +1C51;OL CHIKI DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +1C52;OL CHIKI DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +1C53;OL CHIKI DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +1C54;OL CHIKI DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +1C55;OL CHIKI DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +1C56;OL CHIKI DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +1C57;OL CHIKI DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +1C58;OL CHIKI DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +1C59;OL CHIKI DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +1C5A;OL CHIKI LETTER LA;Lo;0;L;;;;;N;;;;; +1C5B;OL CHIKI LETTER AT;Lo;0;L;;;;;N;;;;; +1C5C;OL CHIKI LETTER AG;Lo;0;L;;;;;N;;;;; +1C5D;OL CHIKI LETTER ANG;Lo;0;L;;;;;N;;;;; +1C5E;OL CHIKI LETTER AL;Lo;0;L;;;;;N;;;;; +1C5F;OL CHIKI LETTER LAA;Lo;0;L;;;;;N;;;;; +1C60;OL CHIKI LETTER AAK;Lo;0;L;;;;;N;;;;; +1C61;OL CHIKI LETTER AAJ;Lo;0;L;;;;;N;;;;; +1C62;OL CHIKI LETTER AAM;Lo;0;L;;;;;N;;;;; +1C63;OL CHIKI LETTER AAW;Lo;0;L;;;;;N;;;;; +1C64;OL CHIKI LETTER LI;Lo;0;L;;;;;N;;;;; +1C65;OL CHIKI LETTER IS;Lo;0;L;;;;;N;;;;; +1C66;OL CHIKI LETTER IH;Lo;0;L;;;;;N;;;;; +1C67;OL CHIKI LETTER INY;Lo;0;L;;;;;N;;;;; +1C68;OL CHIKI LETTER IR;Lo;0;L;;;;;N;;;;; +1C69;OL CHIKI LETTER LU;Lo;0;L;;;;;N;;;;; +1C6A;OL CHIKI LETTER UC;Lo;0;L;;;;;N;;;;; +1C6B;OL CHIKI LETTER UD;Lo;0;L;;;;;N;;;;; +1C6C;OL CHIKI LETTER UNN;Lo;0;L;;;;;N;;;;; +1C6D;OL CHIKI LETTER UY;Lo;0;L;;;;;N;;;;; +1C6E;OL CHIKI LETTER LE;Lo;0;L;;;;;N;;;;; +1C6F;OL CHIKI LETTER EP;Lo;0;L;;;;;N;;;;; +1C70;OL CHIKI LETTER EDD;Lo;0;L;;;;;N;;;;; +1C71;OL CHIKI LETTER EN;Lo;0;L;;;;;N;;;;; +1C72;OL CHIKI LETTER ERR;Lo;0;L;;;;;N;;;;; +1C73;OL CHIKI LETTER LO;Lo;0;L;;;;;N;;;;; +1C74;OL CHIKI LETTER OTT;Lo;0;L;;;;;N;;;;; +1C75;OL CHIKI LETTER OB;Lo;0;L;;;;;N;;;;; +1C76;OL CHIKI LETTER OV;Lo;0;L;;;;;N;;;;; +1C77;OL CHIKI LETTER OH;Lo;0;L;;;;;N;;;;; +1C78;OL CHIKI MU TTUDDAG;Lm;0;L;;;;;N;;;;; +1C79;OL CHIKI GAAHLAA TTUDDAAG;Lm;0;L;;;;;N;;;;; +1C7A;OL CHIKI MU-GAAHLAA TTUDDAAG;Lm;0;L;;;;;N;;;;; +1C7B;OL CHIKI RELAA;Lm;0;L;;;;;N;;;;; +1C7C;OL CHIKI PHAARKAA;Lm;0;L;;;;;N;;;;; +1C7D;OL CHIKI AHAD;Lm;0;L;;;;;N;;;;; +1C7E;OL CHIKI PUNCTUATION MUCAAD;Po;0;L;;;;;N;;;;; +1C7F;OL CHIKI PUNCTUATION DOUBLE MUCAAD;Po;0;L;;;;;N;;;;; 1D00;LATIN LETTER SMALL CAPITAL A;Ll;0;L;;;;;N;;;;; 1D01;LATIN LETTER SMALL CAPITAL AE;Ll;0;L;;;;;N;;;;; 1D02;LATIN SMALL LETTER TURNED AE;Ll;0;L;;;;;N;;;;; @@ -5466,7 +5823,7 @@ 1D76;LATIN SMALL LETTER Z WITH MIDDLE TILDE;Ll;0;L;;;;;N;;;;; 1D77;LATIN SMALL LETTER TURNED G;Ll;0;L;;;;;N;;;;; 1D78;MODIFIER LETTER CYRILLIC EN;Lm;0;L; 043D;;;;N;;;;; -1D79;LATIN SMALL LETTER INSULAR G;Ll;0;L;;;;;N;;;;; +1D79;LATIN SMALL LETTER INSULAR G;Ll;0;L;;;;;N;;;A77D;;A77D 1D7A;LATIN SMALL LETTER TH WITH STRIKETHROUGH;Ll;0;L;;;;;N;;;;; 1D7B;LATIN SMALL CAPITAL LETTER I WITH STROKE;Ll;0;L;;;;;N;;;;; 1D7C;LATIN SMALL LETTER IOTA WITH STROKE;Ll;0;L;;;;;N;;;;; @@ -5548,6 +5905,34 @@ 1DC8;COMBINING GRAVE-ACUTE-GRAVE;Mn;230;NSM;;;;;N;;;;; 1DC9;COMBINING ACUTE-GRAVE-ACUTE;Mn;230;NSM;;;;;N;;;;; 1DCA;COMBINING LATIN SMALL LETTER R BELOW;Mn;220;NSM;;;;;N;;;;; +1DCB;COMBINING BREVE-MACRON;Mn;230;NSM;;;;;N;;;;; +1DCC;COMBINING MACRON-BREVE;Mn;230;NSM;;;;;N;;;;; +1DCD;COMBINING DOUBLE CIRCUMFLEX ABOVE;Mn;234;NSM;;;;;N;;;;; +1DCE;COMBINING OGONEK ABOVE;Mn;214;NSM;;;;;N;;;;; +1DCF;COMBINING ZIGZAG BELOW;Mn;220;NSM;;;;;N;;;;; +1DD0;COMBINING IS BELOW;Mn;202;NSM;;;;;N;;;;; +1DD1;COMBINING UR ABOVE;Mn;230;NSM;;;;;N;;;;; +1DD2;COMBINING US ABOVE;Mn;230;NSM;;;;;N;;;;; +1DD3;COMBINING LATIN SMALL LETTER FLATTENED OPEN A ABOVE;Mn;230;NSM;;;;;N;;;;; +1DD4;COMBINING LATIN SMALL LETTER AE;Mn;230;NSM;;;;;N;;;;; +1DD5;COMBINING LATIN SMALL LETTER AO;Mn;230;NSM;;;;;N;;;;; +1DD6;COMBINING LATIN SMALL LETTER AV;Mn;230;NSM;;;;;N;;;;; +1DD7;COMBINING LATIN SMALL LETTER C CEDILLA;Mn;230;NSM;;;;;N;;;;; +1DD8;COMBINING LATIN SMALL LETTER INSULAR D;Mn;230;NSM;;;;;N;;;;; +1DD9;COMBINING LATIN SMALL LETTER ETH;Mn;230;NSM;;;;;N;;;;; +1DDA;COMBINING LATIN SMALL LETTER G;Mn;230;NSM;;;;;N;;;;; +1DDB;COMBINING LATIN LETTER SMALL CAPITAL G;Mn;230;NSM;;;;;N;;;;; +1DDC;COMBINING LATIN SMALL LETTER K;Mn;230;NSM;;;;;N;;;;; +1DDD;COMBINING LATIN SMALL LETTER L;Mn;230;NSM;;;;;N;;;;; +1DDE;COMBINING LATIN LETTER SMALL CAPITAL L;Mn;230;NSM;;;;;N;;;;; +1DDF;COMBINING LATIN LETTER SMALL CAPITAL M;Mn;230;NSM;;;;;N;;;;; +1DE0;COMBINING LATIN SMALL LETTER N;Mn;230;NSM;;;;;N;;;;; +1DE1;COMBINING LATIN LETTER SMALL CAPITAL N;Mn;230;NSM;;;;;N;;;;; +1DE2;COMBINING LATIN LETTER SMALL CAPITAL R;Mn;230;NSM;;;;;N;;;;; +1DE3;COMBINING LATIN SMALL LETTER R ROTUNDA;Mn;230;NSM;;;;;N;;;;; +1DE4;COMBINING LATIN SMALL LETTER S;Mn;230;NSM;;;;;N;;;;; +1DE5;COMBINING LATIN SMALL LETTER LONG S;Mn;230;NSM;;;;;N;;;;; +1DE6;COMBINING LATIN SMALL LETTER Z;Mn;230;NSM;;;;;N;;;;; 1DFE;COMBINING LEFT ARROWHEAD ABOVE;Mn;230;NSM;;;;;N;;;;; 1DFF;COMBINING RIGHT ARROWHEAD AND DOWN ARROWHEAD BELOW;Mn;220;NSM;;;;;N;;;;; 1E00;LATIN CAPITAL LETTER A WITH RING BELOW;Lu;0;L;0041 0325;;;;N;;;;1E01; @@ -5706,6 +6091,10 @@ 1E99;LATIN SMALL LETTER Y WITH RING ABOVE;Ll;0;L;0079 030A;;;;N;;;;; 1E9A;LATIN SMALL LETTER A WITH RIGHT HALF RING;Ll;0;L; 0061 02BE;;;;N;;;;; 1E9B;LATIN SMALL LETTER LONG S WITH DOT ABOVE;Ll;0;L;017F 0307;;;;N;;;1E60;;1E60 +1E9C;LATIN SMALL LETTER LONG S WITH DIAGONAL STROKE;Ll;0;L;;;;;N;;;;; +1E9D;LATIN SMALL LETTER LONG S WITH HIGH STROKE;Ll;0;L;;;;;N;;;;; +1E9E;LATIN CAPITAL LETTER SHARP S;Lu;0;L;;;;;N;;;;00DF; +1E9F;LATIN SMALL LETTER DELTA;Ll;0;L;;;;;N;;;;; 1EA0;LATIN CAPITAL LETTER A WITH DOT BELOW;Lu;0;L;0041 0323;;;;N;;;;1EA1; 1EA1;LATIN SMALL LETTER A WITH DOT BELOW;Ll;0;L;0061 0323;;;;N;;;1EA0;;1EA0 1EA2;LATIN CAPITAL LETTER A WITH HOOK ABOVE;Lu;0;L;0041 0309;;;;N;;;;1EA3; @@ -5796,6 +6185,12 @@ 1EF7;LATIN SMALL LETTER Y WITH HOOK ABOVE;Ll;0;L;0079 0309;;;;N;;;1EF6;;1EF6 1EF8;LATIN CAPITAL LETTER Y WITH TILDE;Lu;0;L;0059 0303;;;;N;;;;1EF9; 1EF9;LATIN SMALL LETTER Y WITH TILDE;Ll;0;L;0079 0303;;;;N;;;1EF8;;1EF8 +1EFA;LATIN CAPITAL LETTER MIDDLE-WELSH LL;Lu;0;L;;;;;N;;;;1EFB; +1EFB;LATIN SMALL LETTER MIDDLE-WELSH LL;Ll;0;L;;;;;N;;;1EFA;;1EFA +1EFC;LATIN CAPITAL LETTER MIDDLE-WELSH V;Lu;0;L;;;;;N;;;;1EFD; +1EFD;LATIN SMALL LETTER MIDDLE-WELSH V;Ll;0;L;;;;;N;;;1EFC;;1EFC +1EFE;LATIN CAPITAL LETTER Y WITH LOOP;Lu;0;L;;;;;N;;;;1EFF; +1EFF;LATIN SMALL LETTER Y WITH LOOP;Ll;0;L;;;;;N;;;1EFE;;1EFE 1F00;GREEK SMALL LETTER ALPHA WITH PSILI;Ll;0;L;03B1 0313;;;;N;;;1F08;;1F08 1F01;GREEK SMALL LETTER ALPHA WITH DASIA;Ll;0;L;03B1 0314;;;;N;;;1F09;;1F09 1F02;GREEK SMALL LETTER ALPHA WITH PSILI AND VARIA;Ll;0;L;1F00 0300;;;;N;;;1F0A;;1F0A @@ -6053,14 +6448,14 @@ 2015;HORIZONTAL BAR;Pd;0;ON;;;;;N;QUOTATION DASH;;;; 2016;DOUBLE VERTICAL LINE;Po;0;ON;;;;;N;DOUBLE VERTICAL BAR;;;; 2017;DOUBLE LOW LINE;Po;0;ON; 0020 0333;;;;N;SPACING DOUBLE UNDERSCORE;;;; -2018;LEFT SINGLE QUOTATION MARK;Pi;0;ON;;;;;Y;SINGLE TURNED COMMA QUOTATION MARK;;;; -2019;RIGHT SINGLE QUOTATION MARK;Pf;0;ON;;;;;Y;SINGLE COMMA QUOTATION MARK;;;; -201A;SINGLE LOW-9 QUOTATION MARK;Ps;0;ON;;;;;Y;LOW SINGLE COMMA QUOTATION MARK;;;; -201B;SINGLE HIGH-REVERSED-9 QUOTATION MARK;Pi;0;ON;;;;;Y;SINGLE REVERSED COMMA QUOTATION MARK;;;; -201C;LEFT DOUBLE QUOTATION MARK;Pi;0;ON;;;;;Y;DOUBLE TURNED COMMA QUOTATION MARK;;;; -201D;RIGHT DOUBLE QUOTATION MARK;Pf;0;ON;;;;;Y;DOUBLE COMMA QUOTATION MARK;;;; -201E;DOUBLE LOW-9 QUOTATION MARK;Ps;0;ON;;;;;Y;LOW DOUBLE COMMA QUOTATION MARK;;;; -201F;DOUBLE HIGH-REVERSED-9 QUOTATION MARK;Pi;0;ON;;;;;Y;DOUBLE REVERSED COMMA QUOTATION MARK;;;; +2018;LEFT SINGLE QUOTATION MARK;Pi;0;ON;;;;;N;SINGLE TURNED COMMA QUOTATION MARK;;;; +2019;RIGHT SINGLE QUOTATION MARK;Pf;0;ON;;;;;N;SINGLE COMMA QUOTATION MARK;;;; +201A;SINGLE LOW-9 QUOTATION MARK;Ps;0;ON;;;;;N;LOW SINGLE COMMA QUOTATION MARK;;;; +201B;SINGLE HIGH-REVERSED-9 QUOTATION MARK;Pi;0;ON;;;;;N;SINGLE REVERSED COMMA QUOTATION MARK;;;; +201C;LEFT DOUBLE QUOTATION MARK;Pi;0;ON;;;;;N;DOUBLE TURNED COMMA QUOTATION MARK;;;; +201D;RIGHT DOUBLE QUOTATION MARK;Pf;0;ON;;;;;N;DOUBLE COMMA QUOTATION MARK;;;; +201E;DOUBLE LOW-9 QUOTATION MARK;Ps;0;ON;;;;;N;LOW DOUBLE COMMA QUOTATION MARK;;;; +201F;DOUBLE HIGH-REVERSED-9 QUOTATION MARK;Pi;0;ON;;;;;N;DOUBLE REVERSED COMMA QUOTATION MARK;;;; 2020;DAGGER;Po;0;ON;;;;;N;;;;; 2021;DOUBLE DAGGER;Po;0;ON;;;;;N;;;;; 2022;BULLET;Po;0;ON;;;;;N;;;;; @@ -6129,6 +6524,7 @@ 2061;FUNCTION APPLICATION;Cf;0;BN;;;;;N;;;;; 2062;INVISIBLE TIMES;Cf;0;BN;;;;;N;;;;; 2063;INVISIBLE SEPARATOR;Cf;0;BN;;;;;N;;;;; +2064;INVISIBLE PLUS;Cf;0;BN;;;;;N;;;;; 206A;INHIBIT SYMMETRIC SWAPPING;Cf;0;BN;;;;;N;;;;; 206B;ACTIVATE SYMMETRIC SWAPPING;Cf;0;BN;;;;;N;;;;; 206C;INHIBIT ARABIC FORM SHAPING;Cf;0;BN;;;;;N;;;;; @@ -6223,6 +6619,7 @@ 20ED;COMBINING LEFTWARDS HARPOON WITH BARB DOWNWARDS;Mn;220;NSM;;;;;N;;;;; 20EE;COMBINING LEFT ARROW BELOW;Mn;220;NSM;;;;;N;;;;; 20EF;COMBINING RIGHT ARROW BELOW;Mn;220;NSM;;;;;N;;;;; +20F0;COMBINING ASTERISK ABOVE;Mn;230;NSM;;;;;N;;;;; 2100;ACCOUNT OF;So;0;ON; 0061 002F 0063;;;;N;;;;; 2101;ADDRESSED TO THE SUBJECT;So;0;ON; 0061 002F 0073;;;;N;;;;; 2102;DOUBLE-STRUCK CAPITAL C;Lu;0;L; 0043;;;;N;DOUBLE-STRUCK C;;;; @@ -6302,6 +6699,7 @@ 214C;PER SIGN;So;0;ON;;;;;N;;;;; 214D;AKTIESELSKAB;So;0;ON;;;;;N;;;;; 214E;TURNED SMALL F;Ll;0;L;;;;;N;;;2132;;2132 +214F;SYMBOL FOR SAMARITAN SOURCE;So;0;L;;;;;N;;;;; 2153;VULGAR FRACTION ONE THIRD;No;0;ON; 0031 2044 0033;;;1/3;N;FRACTION ONE THIRD;;;; 2154;VULGAR FRACTION TWO THIRDS;No;0;ON; 0032 2044 0033;;;2/3;N;FRACTION TWO THIRDS;;;; 2155;VULGAR FRACTION ONE FIFTH;No;0;ON; 0031 2044 0035;;;1/5;N;FRACTION ONE FIFTH;;;; @@ -6352,6 +6750,10 @@ 2182;ROMAN NUMERAL TEN THOUSAND;Nl;0;L;;;;10000;N;;;;; 2183;ROMAN NUMERAL REVERSED ONE HUNDRED;Lu;0;L;;;;;N;;;;2184; 2184;LATIN SMALL LETTER REVERSED C;Ll;0;L;;;;;N;;;2183;;2183 +2185;ROMAN NUMERAL SIX LATE FORM;Nl;0;L;;;;6;N;;;;; +2186;ROMAN NUMERAL FIFTY EARLY FORM;Nl;0;L;;;;50;N;;;;; +2187;ROMAN NUMERAL FIFTY THOUSAND;Nl;0;L;;;;50000;N;;;;; +2188;ROMAN NUMERAL ONE HUNDRED THOUSAND;Nl;0;L;;;;100000;N;;;;; 2190;LEFTWARDS ARROW;Sm;0;ON;;;;;N;LEFT ARROW;;;; 2191;UPWARDS ARROW;Sm;0;ON;;;;;N;UP ARROW;;;; 2192;RIGHTWARDS ARROW;Sm;0;ON;;;;;N;RIGHT ARROW;;;; @@ -7575,6 +7977,7 @@ 269A;STAFF OF HERMES;So;0;ON;;;;;N;;;;; 269B;ATOM SYMBOL;So;0;ON;;;;;N;;;;; 269C;FLEUR-DE-LIS;So;0;ON;;;;;N;;;;; +269D;OUTLINED WHITE STAR;So;0;ON;;;;;N;;;;; 26A0;WARNING SIGN;So;0;ON;;;;;N;;;;; 26A1;HIGH VOLTAGE SIGN;So;0;ON;;;;;N;;;;; 26A2;DOUBLED FEMALE SIGN;So;0;ON;;;;;N;;;;; @@ -7594,6 +7997,20 @@ 26B0;COFFIN;So;0;ON;;;;;N;;;;; 26B1;FUNERAL URN;So;0;ON;;;;;N;;;;; 26B2;NEUTER;So;0;ON;;;;;N;;;;; +26B3;CERES;So;0;ON;;;;;N;;;;; +26B4;PALLAS;So;0;ON;;;;;N;;;;; +26B5;JUNO;So;0;ON;;;;;N;;;;; +26B6;VESTA;So;0;ON;;;;;N;;;;; +26B7;CHIRON;So;0;ON;;;;;N;;;;; +26B8;BLACK MOON LILITH;So;0;ON;;;;;N;;;;; +26B9;SEXTILE;So;0;ON;;;;;N;;;;; +26BA;SEMISEXTILE;So;0;ON;;;;;N;;;;; +26BB;QUINCUNX;So;0;ON;;;;;N;;;;; +26BC;SESQUIQUADRATE;So;0;ON;;;;;N;;;;; +26C0;WHITE DRAUGHTS MAN;So;0;ON;;;;;N;;;;; +26C1;WHITE DRAUGHTS KING;So;0;ON;;;;;N;;;;; +26C2;BLACK DRAUGHTS MAN;So;0;ON;;;;;N;;;;; +26C3;BLACK DRAUGHTS KING;So;0;ON;;;;;N;;;;; 2701;UPPER BLADE SCISSORS;So;0;ON;;;;;N;;;;; 2702;BLACK SCISSORS;So;0;ON;;;;;N;;;;; 2703;LOWER BLADE SCISSORS;So;0;ON;;;;;N;;;;; @@ -7776,9 +8193,10 @@ 27C5;LEFT S-SHAPED BAG DELIMITER;Ps;0;ON;;;;;Y;;;;; 27C6;RIGHT S-SHAPED BAG DELIMITER;Pe;0;ON;;;;;Y;;;;; 27C7;OR WITH DOT INSIDE;Sm;0;ON;;;;;N;;;;; -27C8;REVERSE SOLIDUS PRECEDING SUBSET;Sm;0;ON;;;;;N;;;;; -27C9;SUPERSET PRECEDING SOLIDUS;Sm;0;ON;;;;;N;;;;; +27C8;REVERSE SOLIDUS PRECEDING SUBSET;Sm;0;ON;;;;;Y;;;;; +27C9;SUPERSET PRECEDING SOLIDUS;Sm;0;ON;;;;;Y;;;;; 27CA;VERTICAL BAR WITH HORIZONTAL STROKE;Sm;0;ON;;;;;N;;;;; +27CC;LONG DIVISION;Sm;0;ON;;;;;Y;;;;; 27D0;WHITE DIAMOND WITH CENTRED DOT;Sm;0;ON;;;;;N;;;;; 27D1;AND WITH DOT;Sm;0;ON;;;;;N;;;;; 27D2;ELEMENT OF OPENING UPWARDS;Sm;0;ON;;;;;N;;;;; @@ -7807,6 +8225,10 @@ 27E9;MATHEMATICAL RIGHT ANGLE BRACKET;Pe;0;ON;;;;;Y;;;;; 27EA;MATHEMATICAL LEFT DOUBLE ANGLE BRACKET;Ps;0;ON;;;;;Y;;;;; 27EB;MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET;Pe;0;ON;;;;;Y;;;;; +27EC;MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET;Ps;0;ON;;;;;Y;;;;; +27ED;MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET;Pe;0;ON;;;;;Y;;;;; +27EE;MATHEMATICAL LEFT FLATTENED PARENTHESIS;Ps;0;ON;;;;;Y;;;;; +27EF;MATHEMATICAL RIGHT FLATTENED PARENTHESIS;Pe;0;ON;;;;;Y;;;;; 27F0;UPWARDS QUADRUPLE ARROW;Sm;0;ON;;;;;N;;;;; 27F1;DOWNWARDS QUADRUPLE ARROW;Sm;0;ON;;;;;N;;;;; 27F2;ANTICLOCKWISE GAPPED CIRCLE ARROW;Sm;0;ON;;;;;N;;;;; @@ -8618,10 +9040,61 @@ 2B18;DIAMOND WITH TOP HALF BLACK;So;0;ON;;;;;N;;;;; 2B19;DIAMOND WITH BOTTOM HALF BLACK;So;0;ON;;;;;N;;;;; 2B1A;DOTTED SQUARE;So;0;ON;;;;;N;;;;; +2B1B;BLACK LARGE SQUARE;So;0;ON;;;;;N;;;;; +2B1C;WHITE LARGE SQUARE;So;0;ON;;;;;N;;;;; +2B1D;BLACK VERY SMALL SQUARE;So;0;ON;;;;;N;;;;; +2B1E;WHITE VERY SMALL SQUARE;So;0;ON;;;;;N;;;;; +2B1F;BLACK PENTAGON;So;0;ON;;;;;N;;;;; 2B20;WHITE PENTAGON;So;0;ON;;;;;N;;;;; 2B21;WHITE HEXAGON;So;0;ON;;;;;N;;;;; 2B22;BLACK HEXAGON;So;0;ON;;;;;N;;;;; 2B23;HORIZONTAL BLACK HEXAGON;So;0;ON;;;;;N;;;;; +2B24;BLACK LARGE CIRCLE;So;0;ON;;;;;N;;;;; +2B25;BLACK MEDIUM DIAMOND;So;0;ON;;;;;N;;;;; +2B26;WHITE MEDIUM DIAMOND;So;0;ON;;;;;N;;;;; +2B27;BLACK MEDIUM LOZENGE;So;0;ON;;;;;N;;;;; +2B28;WHITE MEDIUM LOZENGE;So;0;ON;;;;;N;;;;; +2B29;BLACK SMALL DIAMOND;So;0;ON;;;;;N;;;;; +2B2A;BLACK SMALL LOZENGE;So;0;ON;;;;;N;;;;; +2B2B;WHITE SMALL LOZENGE;So;0;ON;;;;;N;;;;; +2B2C;BLACK HORIZONTAL ELLIPSE;So;0;ON;;;;;N;;;;; +2B2D;WHITE HORIZONTAL ELLIPSE;So;0;ON;;;;;N;;;;; +2B2E;BLACK VERTICAL ELLIPSE;So;0;ON;;;;;N;;;;; +2B2F;WHITE VERTICAL ELLIPSE;So;0;ON;;;;;N;;;;; +2B30;LEFT ARROW WITH SMALL CIRCLE;Sm;0;ON;;;;;N;;;;; +2B31;THREE LEFTWARDS ARROWS;Sm;0;ON;;;;;N;;;;; +2B32;LEFT ARROW WITH CIRCLED PLUS;Sm;0;ON;;;;;N;;;;; +2B33;LONG LEFTWARDS SQUIGGLE ARROW;Sm;0;ON;;;;;N;;;;; +2B34;LEFTWARDS TWO-HEADED ARROW WITH VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B35;LEFTWARDS TWO-HEADED ARROW WITH DOUBLE VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B36;LEFTWARDS TWO-HEADED ARROW FROM BAR;Sm;0;ON;;;;;N;;;;; +2B37;LEFTWARDS TWO-HEADED TRIPLE DASH ARROW;Sm;0;ON;;;;;N;;;;; +2B38;LEFTWARDS ARROW WITH DOTTED STEM;Sm;0;ON;;;;;N;;;;; +2B39;LEFTWARDS ARROW WITH TAIL WITH VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B3A;LEFTWARDS ARROW WITH TAIL WITH DOUBLE VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B3B;LEFTWARDS TWO-HEADED ARROW WITH TAIL;Sm;0;ON;;;;;N;;;;; +2B3C;LEFTWARDS TWO-HEADED ARROW WITH TAIL WITH VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B3D;LEFTWARDS TWO-HEADED ARROW WITH TAIL WITH DOUBLE VERTICAL STROKE;Sm;0;ON;;;;;N;;;;; +2B3E;LEFTWARDS ARROW THROUGH X;Sm;0;ON;;;;;N;;;;; +2B3F;WAVE ARROW POINTING DIRECTLY LEFT;Sm;0;ON;;;;;N;;;;; +2B40;EQUALS SIGN ABOVE LEFTWARDS ARROW;Sm;0;ON;;;;;N;;;;; +2B41;REVERSE TILDE OPERATOR ABOVE LEFTWARDS ARROW;Sm;0;ON;;;;;N;;;;; +2B42;LEFTWARDS ARROW ABOVE REVERSE ALMOST EQUAL TO;Sm;0;ON;;;;;N;;;;; +2B43;RIGHTWARDS ARROW THROUGH GREATER-THAN;Sm;0;ON;;;;;N;;;;; +2B44;RIGHTWARDS ARROW THROUGH SUPERSET;Sm;0;ON;;;;;N;;;;; +2B45;LEFTWARDS QUADRUPLE ARROW;So;0;ON;;;;;N;;;;; +2B46;RIGHTWARDS QUADRUPLE ARROW;So;0;ON;;;;;N;;;;; +2B47;REVERSE TILDE OPERATOR ABOVE RIGHTWARDS ARROW;Sm;0;ON;;;;;N;;;;; +2B48;RIGHTWARDS ARROW ABOVE REVERSE ALMOST EQUAL TO;Sm;0;ON;;;;;N;;;;; +2B49;TILDE OPERATOR ABOVE LEFTWARDS ARROW;Sm;0;ON;;;;;N;;;;; +2B4A;LEFTWARDS ARROW ABOVE ALMOST EQUAL TO;Sm;0;ON;;;;;N;;;;; +2B4B;LEFTWARDS ARROW ABOVE REVERSE TILDE OPERATOR;Sm;0;ON;;;;;N;;;;; +2B4C;RIGHTWARDS ARROW ABOVE REVERSE TILDE OPERATOR;Sm;0;ON;;;;;N;;;;; +2B50;WHITE MEDIUM STAR;So;0;ON;;;;;N;;;;; +2B51;BLACK SMALL STAR;So;0;ON;;;;;N;;;;; +2B52;WHITE SMALL STAR;So;0;ON;;;;;N;;;;; +2B53;BLACK RIGHT-POINTING PENTAGON;So;0;ON;;;;;N;;;;; +2B54;WHITE RIGHT-POINTING PENTAGON;So;0;ON;;;;;N;;;;; 2C00;GLAGOLITIC CAPITAL LETTER AZU;Lu;0;L;;;;;N;;;;2C30; 2C01;GLAGOLITIC CAPITAL LETTER BUKY;Lu;0;L;;;;;N;;;;2C31; 2C02;GLAGOLITIC CAPITAL LETTER VEDE;Lu;0;L;;;;;N;;;;2C32; @@ -8729,10 +9202,22 @@ 2C6A;LATIN SMALL LETTER K WITH DESCENDER;Ll;0;L;;;;;N;;;2C69;;2C69 2C6B;LATIN CAPITAL LETTER Z WITH DESCENDER;Lu;0;L;;;;;N;;;;2C6C; 2C6C;LATIN SMALL LETTER Z WITH DESCENDER;Ll;0;L;;;;;N;;;2C6B;;2C6B +2C6D;LATIN CAPITAL LETTER ALPHA;Lu;0;L;;;;;N;;;;0251; +2C6E;LATIN CAPITAL LETTER M WITH HOOK;Lu;0;L;;;;;N;;;;0271; +2C6F;LATIN CAPITAL LETTER TURNED A;Lu;0;L;;;;;N;;;;0250; +2C71;LATIN SMALL LETTER V WITH RIGHT HOOK;Ll;0;L;;;;;N;;;;; +2C72;LATIN CAPITAL LETTER W WITH HOOK;Lu;0;L;;;;;N;;;;2C73; +2C73;LATIN SMALL LETTER W WITH HOOK;Ll;0;L;;;;;N;;;2C72;;2C72 2C74;LATIN SMALL LETTER V WITH CURL;Ll;0;L;;;;;N;;;;; 2C75;LATIN CAPITAL LETTER HALF H;Lu;0;L;;;;;N;;;;2C76; 2C76;LATIN SMALL LETTER HALF H;Ll;0;L;;;;;N;;;2C75;;2C75 2C77;LATIN SMALL LETTER TAILLESS PHI;Ll;0;L;;;;;N;;;;; +2C78;LATIN SMALL LETTER E WITH NOTCH;Ll;0;L;;;;;N;;;;; +2C79;LATIN SMALL LETTER TURNED R WITH TAIL;Ll;0;L;;;;;N;;;;; +2C7A;LATIN SMALL LETTER O WITH LOW RING INSIDE;Ll;0;L;;;;;N;;;;; +2C7B;LATIN LETTER SMALL CAPITAL TURNED E;Ll;0;L;;;;;N;;;;; +2C7C;LATIN SUBSCRIPT SMALL LETTER J;Ll;0;L; 006A;;;;N;;;;; +2C7D;MODIFIER LETTER CAPITAL V;Lm;0;L; 0056;;;;N;;;;; 2C80;COPTIC CAPITAL LETTER ALFA;Lu;0;L;;;;;N;;;;2C81; 2C81;COPTIC SMALL LETTER ALFA;Ll;0;L;;;;;N;;;2C80;;2C80 2C82;COPTIC CAPITAL LETTER VIDA;Lu;0;L;;;;;N;;;;2C83; @@ -9019,6 +9504,38 @@ 2DDC;ETHIOPIC SYLLABLE GYEE;Lo;0;L;;;;;N;;;;; 2DDD;ETHIOPIC SYLLABLE GYE;Lo;0;L;;;;;N;;;;; 2DDE;ETHIOPIC SYLLABLE GYO;Lo;0;L;;;;;N;;;;; +2DE0;COMBINING CYRILLIC LETTER BE;Mn;230;NSM;;;;;N;;;;; +2DE1;COMBINING CYRILLIC LETTER VE;Mn;230;NSM;;;;;N;;;;; +2DE2;COMBINING CYRILLIC LETTER GHE;Mn;230;NSM;;;;;N;;;;; +2DE3;COMBINING CYRILLIC LETTER DE;Mn;230;NSM;;;;;N;;;;; +2DE4;COMBINING CYRILLIC LETTER ZHE;Mn;230;NSM;;;;;N;;;;; +2DE5;COMBINING CYRILLIC LETTER ZE;Mn;230;NSM;;;;;N;;;;; +2DE6;COMBINING CYRILLIC LETTER KA;Mn;230;NSM;;;;;N;;;;; +2DE7;COMBINING CYRILLIC LETTER EL;Mn;230;NSM;;;;;N;;;;; +2DE8;COMBINING CYRILLIC LETTER EM;Mn;230;NSM;;;;;N;;;;; +2DE9;COMBINING CYRILLIC LETTER EN;Mn;230;NSM;;;;;N;;;;; +2DEA;COMBINING CYRILLIC LETTER O;Mn;230;NSM;;;;;N;;;;; +2DEB;COMBINING CYRILLIC LETTER PE;Mn;230;NSM;;;;;N;;;;; +2DEC;COMBINING CYRILLIC LETTER ER;Mn;230;NSM;;;;;N;;;;; +2DED;COMBINING CYRILLIC LETTER ES;Mn;230;NSM;;;;;N;;;;; +2DEE;COMBINING CYRILLIC LETTER TE;Mn;230;NSM;;;;;N;;;;; +2DEF;COMBINING CYRILLIC LETTER HA;Mn;230;NSM;;;;;N;;;;; +2DF0;COMBINING CYRILLIC LETTER TSE;Mn;230;NSM;;;;;N;;;;; +2DF1;COMBINING CYRILLIC LETTER CHE;Mn;230;NSM;;;;;N;;;;; +2DF2;COMBINING CYRILLIC LETTER SHA;Mn;230;NSM;;;;;N;;;;; +2DF3;COMBINING CYRILLIC LETTER SHCHA;Mn;230;NSM;;;;;N;;;;; +2DF4;COMBINING CYRILLIC LETTER FITA;Mn;230;NSM;;;;;N;;;;; +2DF5;COMBINING CYRILLIC LETTER ES-TE;Mn;230;NSM;;;;;N;;;;; +2DF6;COMBINING CYRILLIC LETTER A;Mn;230;NSM;;;;;N;;;;; +2DF7;COMBINING CYRILLIC LETTER IE;Mn;230;NSM;;;;;N;;;;; +2DF8;COMBINING CYRILLIC LETTER DJERV;Mn;230;NSM;;;;;N;;;;; +2DF9;COMBINING CYRILLIC LETTER MONOGRAPH UK;Mn;230;NSM;;;;;N;;;;; +2DFA;COMBINING CYRILLIC LETTER YAT;Mn;230;NSM;;;;;N;;;;; +2DFB;COMBINING CYRILLIC LETTER YU;Mn;230;NSM;;;;;N;;;;; +2DFC;COMBINING CYRILLIC LETTER IOTIFIED A;Mn;230;NSM;;;;;N;;;;; +2DFD;COMBINING CYRILLIC LETTER LITTLE YUS;Mn;230;NSM;;;;;N;;;;; +2DFE;COMBINING CYRILLIC LETTER BIG YUS;Mn;230;NSM;;;;;N;;;;; +2DFF;COMBINING CYRILLIC LETTER IOTIFIED BIG YUS;Mn;230;NSM;;;;;N;;;;; 2E00;RIGHT ANGLE SUBSTITUTION MARKER;Po;0;ON;;;;;N;;;;; 2E01;RIGHT ANGLE DOTTED SUBSTITUTION MARKER;Po;0;ON;;;;;N;;;;; 2E02;LEFT SUBSTITUTION BRACKET;Pi;0;ON;;;;;Y;;;;; @@ -9043,8 +9560,31 @@ 2E15;UPWARDS ANCORA;Po;0;ON;;;;;N;;;;; 2E16;DOTTED RIGHT-POINTING ANGLE;Po;0;ON;;;;;N;;;;; 2E17;DOUBLE OBLIQUE HYPHEN;Pd;0;ON;;;;;N;;;;; +2E18;INVERTED INTERROBANG;Po;0;ON;;;;;N;;;;; +2E19;PALM BRANCH;Po;0;ON;;;;;N;;;;; +2E1A;HYPHEN WITH DIAERESIS;Pd;0;ON;;;;;N;;;;; +2E1B;TILDE WITH RING ABOVE;Po;0;ON;;;;;N;;;;; 2E1C;LEFT LOW PARAPHRASE BRACKET;Pi;0;ON;;;;;Y;;;;; 2E1D;RIGHT LOW PARAPHRASE BRACKET;Pf;0;ON;;;;;Y;;;;; +2E1E;TILDE WITH DOT ABOVE;Po;0;ON;;;;;N;;;;; +2E1F;TILDE WITH DOT BELOW;Po;0;ON;;;;;N;;;;; +2E20;LEFT VERTICAL BAR WITH QUILL;Pi;0;ON;;;;;Y;;;;; +2E21;RIGHT VERTICAL BAR WITH QUILL;Pf;0;ON;;;;;Y;;;;; +2E22;TOP LEFT HALF BRACKET;Ps;0;ON;;;;;Y;;;;; +2E23;TOP RIGHT HALF BRACKET;Pe;0;ON;;;;;Y;;;;; +2E24;BOTTOM LEFT HALF BRACKET;Ps;0;ON;;;;;Y;;;;; +2E25;BOTTOM RIGHT HALF BRACKET;Pe;0;ON;;;;;Y;;;;; +2E26;LEFT SIDEWAYS U BRACKET;Ps;0;ON;;;;;Y;;;;; +2E27;RIGHT SIDEWAYS U BRACKET;Pe;0;ON;;;;;Y;;;;; +2E28;LEFT DOUBLE PARENTHESIS;Ps;0;ON;;;;;Y;;;;; +2E29;RIGHT DOUBLE PARENTHESIS;Pe;0;ON;;;;;Y;;;;; +2E2A;TWO DOTS OVER ONE DOT PUNCTUATION;Po;0;ON;;;;;N;;;;; +2E2B;ONE DOT OVER TWO DOTS PUNCTUATION;Po;0;ON;;;;;N;;;;; +2E2C;SQUARED FOUR DOT PUNCTUATION;Po;0;ON;;;;;N;;;;; +2E2D;FIVE DOT MARK;Po;0;ON;;;;;N;;;;; +2E2E;REVERSED QUESTION MARK;Po;0;ON;;;;;N;;;;; +2E2F;VERTICAL TILDE;Lm;0;ON;;;;;N;;;;; +2E30;RING POINT;Po;0;ON;;;;;N;;;;; 2E80;CJK RADICAL REPEAT;So;0;ON;;;;;N;;;;; 2E81;CJK RADICAL CLIFF;So;0;ON;;;;;N;;;;; 2E82;CJK RADICAL SECOND ONE;So;0;ON;;;;;N;;;;; @@ -9415,9 +9955,9 @@ 301A;LEFT WHITE SQUARE BRACKET;Ps;0;ON;;;;;Y;OPENING WHITE SQUARE BRACKET;;;; 301B;RIGHT WHITE SQUARE BRACKET;Pe;0;ON;;;;;Y;CLOSING WHITE SQUARE BRACKET;;;; 301C;WAVE DASH;Pd;0;ON;;;;;N;;;;; -301D;REVERSED DOUBLE PRIME QUOTATION MARK;Ps;0;ON;;;;;Y;;;;; -301E;DOUBLE PRIME QUOTATION MARK;Pe;0;ON;;;;;Y;;;;; -301F;LOW DOUBLE PRIME QUOTATION MARK;Pe;0;ON;;;;;Y;;;;; +301D;REVERSED DOUBLE PRIME QUOTATION MARK;Ps;0;ON;;;;;N;;;;; +301E;DOUBLE PRIME QUOTATION MARK;Pe;0;ON;;;;;N;;;;; +301F;LOW DOUBLE PRIME QUOTATION MARK;Pe;0;ON;;;;;N;;;;; 3020;POSTAL MARK FACE;So;0;ON;;;;;N;;;;; 3021;HANGZHOU NUMERAL ONE;Nl;0;L;;;;1;N;;;;; 3022;HANGZHOU NUMERAL TWO;Nl;0;L;;;;2;N;;;;; @@ -9679,6 +10219,7 @@ 312A;BOPOMOFO LETTER V;Lo;0;L;;;;;N;;;;; 312B;BOPOMOFO LETTER NG;Lo;0;L;;;;;N;;;;; 312C;BOPOMOFO LETTER GN;Lo;0;L;;;;;N;;;;; +312D;BOPOMOFO LETTER IH;Lo;0;L;;;;;N;;;;; 3131;HANGUL LETTER KIYEOK;Lo;0;L; 1100;;;;N;HANGUL LETTER GIYEOG;;;; 3132;HANGUL LETTER SSANGKIYEOK;Lo;0;L; 1101;;;;N;HANGUL LETTER SSANG GIYEOG;;;; 3133;HANGUL LETTER KIYEOK-SIOS;Lo;0;L; 11AA;;;;N;HANGUL LETTER GIYEOG SIOS;;;; @@ -9829,6 +10370,26 @@ 31CD;CJK STROKE HZW;So;0;ON;;;;;N;;;;; 31CE;CJK STROKE HZZZ;So;0;ON;;;;;N;;;;; 31CF;CJK STROKE N;So;0;ON;;;;;N;;;;; +31D0;CJK STROKE H;So;0;ON;;;;;N;;;;; +31D1;CJK STROKE S;So;0;ON;;;;;N;;;;; +31D2;CJK STROKE P;So;0;ON;;;;;N;;;;; +31D3;CJK STROKE SP;So;0;ON;;;;;N;;;;; +31D4;CJK STROKE D;So;0;ON;;;;;N;;;;; +31D5;CJK STROKE HZ;So;0;ON;;;;;N;;;;; +31D6;CJK STROKE HG;So;0;ON;;;;;N;;;;; +31D7;CJK STROKE SZ;So;0;ON;;;;;N;;;;; +31D8;CJK STROKE SWZ;So;0;ON;;;;;N;;;;; +31D9;CJK STROKE ST;So;0;ON;;;;;N;;;;; +31DA;CJK STROKE SG;So;0;ON;;;;;N;;;;; +31DB;CJK STROKE PD;So;0;ON;;;;;N;;;;; +31DC;CJK STROKE PZ;So;0;ON;;;;;N;;;;; +31DD;CJK STROKE TN;So;0;ON;;;;;N;;;;; +31DE;CJK STROKE SZZ;So;0;ON;;;;;N;;;;; +31DF;CJK STROKE SWG;So;0;ON;;;;;N;;;;; +31E0;CJK STROKE HXWG;So;0;ON;;;;;N;;;;; +31E1;CJK STROKE HZZZG;So;0;ON;;;;;N;;;;; +31E2;CJK STROKE PG;So;0;ON;;;;;N;;;;; +31E3;CJK STROKE Q;So;0;ON;;;;;N;;;;; 31F0;KATAKANA LETTER SMALL KU;Lo;0;L;;;;;N;;;;; 31F1;KATAKANA LETTER SMALL SI;Lo;0;L;;;;;N;;;;; 31F2;KATAKANA LETTER SMALL SU;Lo;0;L;;;;;N;;;;; @@ -11627,6 +12188,384 @@ A4C4;YI RADICAL ZZIET;So;0;ON;;;;;N;;;;; A4C5;YI RADICAL NBIE;So;0;ON;;;;;N;;;;; A4C6;YI RADICAL KE;So;0;ON;;;;;N;;;;; +A500;VAI SYLLABLE EE;Lo;0;L;;;;;N;;;;; +A501;VAI SYLLABLE EEN;Lo;0;L;;;;;N;;;;; +A502;VAI SYLLABLE HEE;Lo;0;L;;;;;N;;;;; +A503;VAI SYLLABLE WEE;Lo;0;L;;;;;N;;;;; +A504;VAI SYLLABLE WEEN;Lo;0;L;;;;;N;;;;; +A505;VAI SYLLABLE PEE;Lo;0;L;;;;;N;;;;; +A506;VAI SYLLABLE BHEE;Lo;0;L;;;;;N;;;;; +A507;VAI SYLLABLE BEE;Lo;0;L;;;;;N;;;;; +A508;VAI SYLLABLE MBEE;Lo;0;L;;;;;N;;;;; +A509;VAI SYLLABLE KPEE;Lo;0;L;;;;;N;;;;; +A50A;VAI SYLLABLE MGBEE;Lo;0;L;;;;;N;;;;; +A50B;VAI SYLLABLE GBEE;Lo;0;L;;;;;N;;;;; +A50C;VAI SYLLABLE FEE;Lo;0;L;;;;;N;;;;; +A50D;VAI SYLLABLE VEE;Lo;0;L;;;;;N;;;;; +A50E;VAI SYLLABLE TEE;Lo;0;L;;;;;N;;;;; +A50F;VAI SYLLABLE THEE;Lo;0;L;;;;;N;;;;; +A510;VAI SYLLABLE DHEE;Lo;0;L;;;;;N;;;;; +A511;VAI SYLLABLE DHHEE;Lo;0;L;;;;;N;;;;; +A512;VAI SYLLABLE LEE;Lo;0;L;;;;;N;;;;; +A513;VAI SYLLABLE REE;Lo;0;L;;;;;N;;;;; +A514;VAI SYLLABLE DEE;Lo;0;L;;;;;N;;;;; +A515;VAI SYLLABLE NDEE;Lo;0;L;;;;;N;;;;; +A516;VAI SYLLABLE SEE;Lo;0;L;;;;;N;;;;; +A517;VAI SYLLABLE SHEE;Lo;0;L;;;;;N;;;;; +A518;VAI SYLLABLE ZEE;Lo;0;L;;;;;N;;;;; +A519;VAI SYLLABLE ZHEE;Lo;0;L;;;;;N;;;;; +A51A;VAI SYLLABLE CEE;Lo;0;L;;;;;N;;;;; +A51B;VAI SYLLABLE JEE;Lo;0;L;;;;;N;;;;; +A51C;VAI SYLLABLE NJEE;Lo;0;L;;;;;N;;;;; +A51D;VAI SYLLABLE YEE;Lo;0;L;;;;;N;;;;; +A51E;VAI SYLLABLE KEE;Lo;0;L;;;;;N;;;;; +A51F;VAI SYLLABLE NGGEE;Lo;0;L;;;;;N;;;;; +A520;VAI SYLLABLE GEE;Lo;0;L;;;;;N;;;;; +A521;VAI SYLLABLE MEE;Lo;0;L;;;;;N;;;;; +A522;VAI SYLLABLE NEE;Lo;0;L;;;;;N;;;;; +A523;VAI SYLLABLE NYEE;Lo;0;L;;;;;N;;;;; +A524;VAI SYLLABLE I;Lo;0;L;;;;;N;;;;; +A525;VAI SYLLABLE IN;Lo;0;L;;;;;N;;;;; +A526;VAI SYLLABLE HI;Lo;0;L;;;;;N;;;;; +A527;VAI SYLLABLE HIN;Lo;0;L;;;;;N;;;;; +A528;VAI SYLLABLE WI;Lo;0;L;;;;;N;;;;; +A529;VAI SYLLABLE WIN;Lo;0;L;;;;;N;;;;; +A52A;VAI SYLLABLE PI;Lo;0;L;;;;;N;;;;; +A52B;VAI SYLLABLE BHI;Lo;0;L;;;;;N;;;;; +A52C;VAI SYLLABLE BI;Lo;0;L;;;;;N;;;;; +A52D;VAI SYLLABLE MBI;Lo;0;L;;;;;N;;;;; +A52E;VAI SYLLABLE KPI;Lo;0;L;;;;;N;;;;; +A52F;VAI SYLLABLE MGBI;Lo;0;L;;;;;N;;;;; +A530;VAI SYLLABLE GBI;Lo;0;L;;;;;N;;;;; +A531;VAI SYLLABLE FI;Lo;0;L;;;;;N;;;;; +A532;VAI SYLLABLE VI;Lo;0;L;;;;;N;;;;; +A533;VAI SYLLABLE TI;Lo;0;L;;;;;N;;;;; +A534;VAI SYLLABLE THI;Lo;0;L;;;;;N;;;;; +A535;VAI SYLLABLE DHI;Lo;0;L;;;;;N;;;;; +A536;VAI SYLLABLE DHHI;Lo;0;L;;;;;N;;;;; +A537;VAI SYLLABLE LI;Lo;0;L;;;;;N;;;;; +A538;VAI SYLLABLE RI;Lo;0;L;;;;;N;;;;; +A539;VAI SYLLABLE DI;Lo;0;L;;;;;N;;;;; +A53A;VAI SYLLABLE NDI;Lo;0;L;;;;;N;;;;; +A53B;VAI SYLLABLE SI;Lo;0;L;;;;;N;;;;; +A53C;VAI SYLLABLE SHI;Lo;0;L;;;;;N;;;;; +A53D;VAI SYLLABLE ZI;Lo;0;L;;;;;N;;;;; +A53E;VAI SYLLABLE ZHI;Lo;0;L;;;;;N;;;;; +A53F;VAI SYLLABLE CI;Lo;0;L;;;;;N;;;;; +A540;VAI SYLLABLE JI;Lo;0;L;;;;;N;;;;; +A541;VAI SYLLABLE NJI;Lo;0;L;;;;;N;;;;; +A542;VAI SYLLABLE YI;Lo;0;L;;;;;N;;;;; +A543;VAI SYLLABLE KI;Lo;0;L;;;;;N;;;;; +A544;VAI SYLLABLE NGGI;Lo;0;L;;;;;N;;;;; +A545;VAI SYLLABLE GI;Lo;0;L;;;;;N;;;;; +A546;VAI SYLLABLE MI;Lo;0;L;;;;;N;;;;; +A547;VAI SYLLABLE NI;Lo;0;L;;;;;N;;;;; +A548;VAI SYLLABLE NYI;Lo;0;L;;;;;N;;;;; +A549;VAI SYLLABLE A;Lo;0;L;;;;;N;;;;; +A54A;VAI SYLLABLE AN;Lo;0;L;;;;;N;;;;; +A54B;VAI SYLLABLE NGAN;Lo;0;L;;;;;N;;;;; +A54C;VAI SYLLABLE HA;Lo;0;L;;;;;N;;;;; +A54D;VAI SYLLABLE HAN;Lo;0;L;;;;;N;;;;; +A54E;VAI SYLLABLE WA;Lo;0;L;;;;;N;;;;; +A54F;VAI SYLLABLE WAN;Lo;0;L;;;;;N;;;;; +A550;VAI SYLLABLE PA;Lo;0;L;;;;;N;;;;; +A551;VAI SYLLABLE BHA;Lo;0;L;;;;;N;;;;; +A552;VAI SYLLABLE BA;Lo;0;L;;;;;N;;;;; +A553;VAI SYLLABLE MBA;Lo;0;L;;;;;N;;;;; +A554;VAI SYLLABLE KPA;Lo;0;L;;;;;N;;;;; +A555;VAI SYLLABLE KPAN;Lo;0;L;;;;;N;;;;; +A556;VAI SYLLABLE MGBA;Lo;0;L;;;;;N;;;;; +A557;VAI SYLLABLE GBA;Lo;0;L;;;;;N;;;;; +A558;VAI SYLLABLE FA;Lo;0;L;;;;;N;;;;; +A559;VAI SYLLABLE VA;Lo;0;L;;;;;N;;;;; +A55A;VAI SYLLABLE TA;Lo;0;L;;;;;N;;;;; +A55B;VAI SYLLABLE THA;Lo;0;L;;;;;N;;;;; +A55C;VAI SYLLABLE DHA;Lo;0;L;;;;;N;;;;; +A55D;VAI SYLLABLE DHHA;Lo;0;L;;;;;N;;;;; +A55E;VAI SYLLABLE LA;Lo;0;L;;;;;N;;;;; +A55F;VAI SYLLABLE RA;Lo;0;L;;;;;N;;;;; +A560;VAI SYLLABLE DA;Lo;0;L;;;;;N;;;;; +A561;VAI SYLLABLE NDA;Lo;0;L;;;;;N;;;;; +A562;VAI SYLLABLE SA;Lo;0;L;;;;;N;;;;; +A563;VAI SYLLABLE SHA;Lo;0;L;;;;;N;;;;; +A564;VAI SYLLABLE ZA;Lo;0;L;;;;;N;;;;; +A565;VAI SYLLABLE ZHA;Lo;0;L;;;;;N;;;;; +A566;VAI SYLLABLE CA;Lo;0;L;;;;;N;;;;; +A567;VAI SYLLABLE JA;Lo;0;L;;;;;N;;;;; +A568;VAI SYLLABLE NJA;Lo;0;L;;;;;N;;;;; +A569;VAI SYLLABLE YA;Lo;0;L;;;;;N;;;;; +A56A;VAI SYLLABLE KA;Lo;0;L;;;;;N;;;;; +A56B;VAI SYLLABLE KAN;Lo;0;L;;;;;N;;;;; +A56C;VAI SYLLABLE NGGA;Lo;0;L;;;;;N;;;;; +A56D;VAI SYLLABLE GA;Lo;0;L;;;;;N;;;;; +A56E;VAI SYLLABLE MA;Lo;0;L;;;;;N;;;;; +A56F;VAI SYLLABLE NA;Lo;0;L;;;;;N;;;;; +A570;VAI SYLLABLE NYA;Lo;0;L;;;;;N;;;;; +A571;VAI SYLLABLE OO;Lo;0;L;;;;;N;;;;; +A572;VAI SYLLABLE OON;Lo;0;L;;;;;N;;;;; +A573;VAI SYLLABLE HOO;Lo;0;L;;;;;N;;;;; +A574;VAI SYLLABLE WOO;Lo;0;L;;;;;N;;;;; +A575;VAI SYLLABLE WOON;Lo;0;L;;;;;N;;;;; +A576;VAI SYLLABLE POO;Lo;0;L;;;;;N;;;;; +A577;VAI SYLLABLE BHOO;Lo;0;L;;;;;N;;;;; +A578;VAI SYLLABLE BOO;Lo;0;L;;;;;N;;;;; +A579;VAI SYLLABLE MBOO;Lo;0;L;;;;;N;;;;; +A57A;VAI SYLLABLE KPOO;Lo;0;L;;;;;N;;;;; +A57B;VAI SYLLABLE MGBOO;Lo;0;L;;;;;N;;;;; +A57C;VAI SYLLABLE GBOO;Lo;0;L;;;;;N;;;;; +A57D;VAI SYLLABLE FOO;Lo;0;L;;;;;N;;;;; +A57E;VAI SYLLABLE VOO;Lo;0;L;;;;;N;;;;; +A57F;VAI SYLLABLE TOO;Lo;0;L;;;;;N;;;;; +A580;VAI SYLLABLE THOO;Lo;0;L;;;;;N;;;;; +A581;VAI SYLLABLE DHOO;Lo;0;L;;;;;N;;;;; +A582;VAI SYLLABLE DHHOO;Lo;0;L;;;;;N;;;;; +A583;VAI SYLLABLE LOO;Lo;0;L;;;;;N;;;;; +A584;VAI SYLLABLE ROO;Lo;0;L;;;;;N;;;;; +A585;VAI SYLLABLE DOO;Lo;0;L;;;;;N;;;;; +A586;VAI SYLLABLE NDOO;Lo;0;L;;;;;N;;;;; +A587;VAI SYLLABLE SOO;Lo;0;L;;;;;N;;;;; +A588;VAI SYLLABLE SHOO;Lo;0;L;;;;;N;;;;; +A589;VAI SYLLABLE ZOO;Lo;0;L;;;;;N;;;;; +A58A;VAI SYLLABLE ZHOO;Lo;0;L;;;;;N;;;;; +A58B;VAI SYLLABLE COO;Lo;0;L;;;;;N;;;;; +A58C;VAI SYLLABLE JOO;Lo;0;L;;;;;N;;;;; +A58D;VAI SYLLABLE NJOO;Lo;0;L;;;;;N;;;;; +A58E;VAI SYLLABLE YOO;Lo;0;L;;;;;N;;;;; +A58F;VAI SYLLABLE KOO;Lo;0;L;;;;;N;;;;; +A590;VAI SYLLABLE NGGOO;Lo;0;L;;;;;N;;;;; +A591;VAI SYLLABLE GOO;Lo;0;L;;;;;N;;;;; +A592;VAI SYLLABLE MOO;Lo;0;L;;;;;N;;;;; +A593;VAI SYLLABLE NOO;Lo;0;L;;;;;N;;;;; +A594;VAI SYLLABLE NYOO;Lo;0;L;;;;;N;;;;; +A595;VAI SYLLABLE U;Lo;0;L;;;;;N;;;;; +A596;VAI SYLLABLE UN;Lo;0;L;;;;;N;;;;; +A597;VAI SYLLABLE HU;Lo;0;L;;;;;N;;;;; +A598;VAI SYLLABLE HUN;Lo;0;L;;;;;N;;;;; +A599;VAI SYLLABLE WU;Lo;0;L;;;;;N;;;;; +A59A;VAI SYLLABLE WUN;Lo;0;L;;;;;N;;;;; +A59B;VAI SYLLABLE PU;Lo;0;L;;;;;N;;;;; +A59C;VAI SYLLABLE BHU;Lo;0;L;;;;;N;;;;; +A59D;VAI SYLLABLE BU;Lo;0;L;;;;;N;;;;; +A59E;VAI SYLLABLE MBU;Lo;0;L;;;;;N;;;;; +A59F;VAI SYLLABLE KPU;Lo;0;L;;;;;N;;;;; +A5A0;VAI SYLLABLE MGBU;Lo;0;L;;;;;N;;;;; +A5A1;VAI SYLLABLE GBU;Lo;0;L;;;;;N;;;;; +A5A2;VAI SYLLABLE FU;Lo;0;L;;;;;N;;;;; +A5A3;VAI SYLLABLE VU;Lo;0;L;;;;;N;;;;; +A5A4;VAI SYLLABLE TU;Lo;0;L;;;;;N;;;;; +A5A5;VAI SYLLABLE THU;Lo;0;L;;;;;N;;;;; +A5A6;VAI SYLLABLE DHU;Lo;0;L;;;;;N;;;;; +A5A7;VAI SYLLABLE DHHU;Lo;0;L;;;;;N;;;;; +A5A8;VAI SYLLABLE LU;Lo;0;L;;;;;N;;;;; +A5A9;VAI SYLLABLE RU;Lo;0;L;;;;;N;;;;; +A5AA;VAI SYLLABLE DU;Lo;0;L;;;;;N;;;;; +A5AB;VAI SYLLABLE NDU;Lo;0;L;;;;;N;;;;; +A5AC;VAI SYLLABLE SU;Lo;0;L;;;;;N;;;;; +A5AD;VAI SYLLABLE SHU;Lo;0;L;;;;;N;;;;; +A5AE;VAI SYLLABLE ZU;Lo;0;L;;;;;N;;;;; +A5AF;VAI SYLLABLE ZHU;Lo;0;L;;;;;N;;;;; +A5B0;VAI SYLLABLE CU;Lo;0;L;;;;;N;;;;; +A5B1;VAI SYLLABLE JU;Lo;0;L;;;;;N;;;;; +A5B2;VAI SYLLABLE NJU;Lo;0;L;;;;;N;;;;; +A5B3;VAI SYLLABLE YU;Lo;0;L;;;;;N;;;;; +A5B4;VAI SYLLABLE KU;Lo;0;L;;;;;N;;;;; +A5B5;VAI SYLLABLE NGGU;Lo;0;L;;;;;N;;;;; +A5B6;VAI SYLLABLE GU;Lo;0;L;;;;;N;;;;; +A5B7;VAI SYLLABLE MU;Lo;0;L;;;;;N;;;;; +A5B8;VAI SYLLABLE NU;Lo;0;L;;;;;N;;;;; +A5B9;VAI SYLLABLE NYU;Lo;0;L;;;;;N;;;;; +A5BA;VAI SYLLABLE O;Lo;0;L;;;;;N;;;;; +A5BB;VAI SYLLABLE ON;Lo;0;L;;;;;N;;;;; +A5BC;VAI SYLLABLE NGON;Lo;0;L;;;;;N;;;;; +A5BD;VAI SYLLABLE HO;Lo;0;L;;;;;N;;;;; +A5BE;VAI SYLLABLE HON;Lo;0;L;;;;;N;;;;; +A5BF;VAI SYLLABLE WO;Lo;0;L;;;;;N;;;;; +A5C0;VAI SYLLABLE WON;Lo;0;L;;;;;N;;;;; +A5C1;VAI SYLLABLE PO;Lo;0;L;;;;;N;;;;; +A5C2;VAI SYLLABLE BHO;Lo;0;L;;;;;N;;;;; +A5C3;VAI SYLLABLE BO;Lo;0;L;;;;;N;;;;; +A5C4;VAI SYLLABLE MBO;Lo;0;L;;;;;N;;;;; +A5C5;VAI SYLLABLE KPO;Lo;0;L;;;;;N;;;;; +A5C6;VAI SYLLABLE MGBO;Lo;0;L;;;;;N;;;;; +A5C7;VAI SYLLABLE GBO;Lo;0;L;;;;;N;;;;; +A5C8;VAI SYLLABLE GBON;Lo;0;L;;;;;N;;;;; +A5C9;VAI SYLLABLE FO;Lo;0;L;;;;;N;;;;; +A5CA;VAI SYLLABLE VO;Lo;0;L;;;;;N;;;;; +A5CB;VAI SYLLABLE TO;Lo;0;L;;;;;N;;;;; +A5CC;VAI SYLLABLE THO;Lo;0;L;;;;;N;;;;; +A5CD;VAI SYLLABLE DHO;Lo;0;L;;;;;N;;;;; +A5CE;VAI SYLLABLE DHHO;Lo;0;L;;;;;N;;;;; +A5CF;VAI SYLLABLE LO;Lo;0;L;;;;;N;;;;; +A5D0;VAI SYLLABLE RO;Lo;0;L;;;;;N;;;;; +A5D1;VAI SYLLABLE DO;Lo;0;L;;;;;N;;;;; +A5D2;VAI SYLLABLE NDO;Lo;0;L;;;;;N;;;;; +A5D3;VAI SYLLABLE SO;Lo;0;L;;;;;N;;;;; +A5D4;VAI SYLLABLE SHO;Lo;0;L;;;;;N;;;;; +A5D5;VAI SYLLABLE ZO;Lo;0;L;;;;;N;;;;; +A5D6;VAI SYLLABLE ZHO;Lo;0;L;;;;;N;;;;; +A5D7;VAI SYLLABLE CO;Lo;0;L;;;;;N;;;;; +A5D8;VAI SYLLABLE JO;Lo;0;L;;;;;N;;;;; +A5D9;VAI SYLLABLE NJO;Lo;0;L;;;;;N;;;;; +A5DA;VAI SYLLABLE YO;Lo;0;L;;;;;N;;;;; +A5DB;VAI SYLLABLE KO;Lo;0;L;;;;;N;;;;; +A5DC;VAI SYLLABLE NGGO;Lo;0;L;;;;;N;;;;; +A5DD;VAI SYLLABLE GO;Lo;0;L;;;;;N;;;;; +A5DE;VAI SYLLABLE MO;Lo;0;L;;;;;N;;;;; +A5DF;VAI SYLLABLE NO;Lo;0;L;;;;;N;;;;; +A5E0;VAI SYLLABLE NYO;Lo;0;L;;;;;N;;;;; +A5E1;VAI SYLLABLE E;Lo;0;L;;;;;N;;;;; +A5E2;VAI SYLLABLE EN;Lo;0;L;;;;;N;;;;; +A5E3;VAI SYLLABLE NGEN;Lo;0;L;;;;;N;;;;; +A5E4;VAI SYLLABLE HE;Lo;0;L;;;;;N;;;;; +A5E5;VAI SYLLABLE HEN;Lo;0;L;;;;;N;;;;; +A5E6;VAI SYLLABLE WE;Lo;0;L;;;;;N;;;;; +A5E7;VAI SYLLABLE WEN;Lo;0;L;;;;;N;;;;; +A5E8;VAI SYLLABLE PE;Lo;0;L;;;;;N;;;;; +A5E9;VAI SYLLABLE BHE;Lo;0;L;;;;;N;;;;; +A5EA;VAI SYLLABLE BE;Lo;0;L;;;;;N;;;;; +A5EB;VAI SYLLABLE MBE;Lo;0;L;;;;;N;;;;; +A5EC;VAI SYLLABLE KPE;Lo;0;L;;;;;N;;;;; +A5ED;VAI SYLLABLE KPEN;Lo;0;L;;;;;N;;;;; +A5EE;VAI SYLLABLE MGBE;Lo;0;L;;;;;N;;;;; +A5EF;VAI SYLLABLE GBE;Lo;0;L;;;;;N;;;;; +A5F0;VAI SYLLABLE GBEN;Lo;0;L;;;;;N;;;;; +A5F1;VAI SYLLABLE FE;Lo;0;L;;;;;N;;;;; +A5F2;VAI SYLLABLE VE;Lo;0;L;;;;;N;;;;; +A5F3;VAI SYLLABLE TE;Lo;0;L;;;;;N;;;;; +A5F4;VAI SYLLABLE THE;Lo;0;L;;;;;N;;;;; +A5F5;VAI SYLLABLE DHE;Lo;0;L;;;;;N;;;;; +A5F6;VAI SYLLABLE DHHE;Lo;0;L;;;;;N;;;;; +A5F7;VAI SYLLABLE LE;Lo;0;L;;;;;N;;;;; +A5F8;VAI SYLLABLE RE;Lo;0;L;;;;;N;;;;; +A5F9;VAI SYLLABLE DE;Lo;0;L;;;;;N;;;;; +A5FA;VAI SYLLABLE NDE;Lo;0;L;;;;;N;;;;; +A5FB;VAI SYLLABLE SE;Lo;0;L;;;;;N;;;;; +A5FC;VAI SYLLABLE SHE;Lo;0;L;;;;;N;;;;; +A5FD;VAI SYLLABLE ZE;Lo;0;L;;;;;N;;;;; +A5FE;VAI SYLLABLE ZHE;Lo;0;L;;;;;N;;;;; +A5FF;VAI SYLLABLE CE;Lo;0;L;;;;;N;;;;; +A600;VAI SYLLABLE JE;Lo;0;L;;;;;N;;;;; +A601;VAI SYLLABLE NJE;Lo;0;L;;;;;N;;;;; +A602;VAI SYLLABLE YE;Lo;0;L;;;;;N;;;;; +A603;VAI SYLLABLE KE;Lo;0;L;;;;;N;;;;; +A604;VAI SYLLABLE NGGE;Lo;0;L;;;;;N;;;;; +A605;VAI SYLLABLE NGGEN;Lo;0;L;;;;;N;;;;; +A606;VAI SYLLABLE GE;Lo;0;L;;;;;N;;;;; +A607;VAI SYLLABLE GEN;Lo;0;L;;;;;N;;;;; +A608;VAI SYLLABLE ME;Lo;0;L;;;;;N;;;;; +A609;VAI SYLLABLE NE;Lo;0;L;;;;;N;;;;; +A60A;VAI SYLLABLE NYE;Lo;0;L;;;;;N;;;;; +A60B;VAI SYLLABLE NG;Lo;0;L;;;;;N;;;;; +A60C;VAI SYLLABLE LENGTHENER;Lm;0;L;;;;;N;;;;; +A60D;VAI COMMA;Po;0;ON;;;;;N;;;;; +A60E;VAI FULL STOP;Po;0;ON;;;;;N;;;;; +A60F;VAI QUESTION MARK;Po;0;ON;;;;;N;;;;; +A610;VAI SYLLABLE NDOLE FA;Lo;0;L;;;;;N;;;;; +A611;VAI SYLLABLE NDOLE KA;Lo;0;L;;;;;N;;;;; +A612;VAI SYLLABLE NDOLE SOO;Lo;0;L;;;;;N;;;;; +A613;VAI SYMBOL FEENG;Lo;0;L;;;;;N;;;;; +A614;VAI SYMBOL KEENG;Lo;0;L;;;;;N;;;;; +A615;VAI SYMBOL TING;Lo;0;L;;;;;N;;;;; +A616;VAI SYMBOL NII;Lo;0;L;;;;;N;;;;; +A617;VAI SYMBOL BANG;Lo;0;L;;;;;N;;;;; +A618;VAI SYMBOL FAA;Lo;0;L;;;;;N;;;;; +A619;VAI SYMBOL TAA;Lo;0;L;;;;;N;;;;; +A61A;VAI SYMBOL DANG;Lo;0;L;;;;;N;;;;; +A61B;VAI SYMBOL DOONG;Lo;0;L;;;;;N;;;;; +A61C;VAI SYMBOL KUNG;Lo;0;L;;;;;N;;;;; +A61D;VAI SYMBOL TONG;Lo;0;L;;;;;N;;;;; +A61E;VAI SYMBOL DO-O;Lo;0;L;;;;;N;;;;; +A61F;VAI SYMBOL JONG;Lo;0;L;;;;;N;;;;; +A620;VAI DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +A621;VAI DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +A622;VAI DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +A623;VAI DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +A624;VAI DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +A625;VAI DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +A626;VAI DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +A627;VAI DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +A628;VAI DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +A629;VAI DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +A62A;VAI SYLLABLE NDOLE MA;Lo;0;L;;;;;N;;;;; +A62B;VAI SYLLABLE NDOLE DO;Lo;0;L;;;;;N;;;;; +A640;CYRILLIC CAPITAL LETTER ZEMLYA;Lu;0;L;;;;;N;;;;A641; +A641;CYRILLIC SMALL LETTER ZEMLYA;Ll;0;L;;;;;N;;;A640;;A640 +A642;CYRILLIC CAPITAL LETTER DZELO;Lu;0;L;;;;;N;;;;A643; +A643;CYRILLIC SMALL LETTER DZELO;Ll;0;L;;;;;N;;;A642;;A642 +A644;CYRILLIC CAPITAL LETTER REVERSED DZE;Lu;0;L;;;;;N;;;;A645; +A645;CYRILLIC SMALL LETTER REVERSED DZE;Ll;0;L;;;;;N;;;A644;;A644 +A646;CYRILLIC CAPITAL LETTER IOTA;Lu;0;L;;;;;N;;;;A647; +A647;CYRILLIC SMALL LETTER IOTA;Ll;0;L;;;;;N;;;A646;;A646 +A648;CYRILLIC CAPITAL LETTER DJERV;Lu;0;L;;;;;N;;;;A649; +A649;CYRILLIC SMALL LETTER DJERV;Ll;0;L;;;;;N;;;A648;;A648 +A64A;CYRILLIC CAPITAL LETTER MONOGRAPH UK;Lu;0;L;;;;;N;;;;A64B; +A64B;CYRILLIC SMALL LETTER MONOGRAPH UK;Ll;0;L;;;;;N;;;A64A;;A64A +A64C;CYRILLIC CAPITAL LETTER BROAD OMEGA;Lu;0;L;;;;;N;;;;A64D; +A64D;CYRILLIC SMALL LETTER BROAD OMEGA;Ll;0;L;;;;;N;;;A64C;;A64C +A64E;CYRILLIC CAPITAL LETTER NEUTRAL YER;Lu;0;L;;;;;N;;;;A64F; +A64F;CYRILLIC SMALL LETTER NEUTRAL YER;Ll;0;L;;;;;N;;;A64E;;A64E +A650;CYRILLIC CAPITAL LETTER YERU WITH BACK YER;Lu;0;L;;;;;N;;;;A651; +A651;CYRILLIC SMALL LETTER YERU WITH BACK YER;Ll;0;L;;;;;N;;;A650;;A650 +A652;CYRILLIC CAPITAL LETTER IOTIFIED YAT;Lu;0;L;;;;;N;;;;A653; +A653;CYRILLIC SMALL LETTER IOTIFIED YAT;Ll;0;L;;;;;N;;;A652;;A652 +A654;CYRILLIC CAPITAL LETTER REVERSED YU;Lu;0;L;;;;;N;;;;A655; +A655;CYRILLIC SMALL LETTER REVERSED YU;Ll;0;L;;;;;N;;;A654;;A654 +A656;CYRILLIC CAPITAL LETTER IOTIFIED A;Lu;0;L;;;;;N;;;;A657; +A657;CYRILLIC SMALL LETTER IOTIFIED A;Ll;0;L;;;;;N;;;A656;;A656 +A658;CYRILLIC CAPITAL LETTER CLOSED LITTLE YUS;Lu;0;L;;;;;N;;;;A659; +A659;CYRILLIC SMALL LETTER CLOSED LITTLE YUS;Ll;0;L;;;;;N;;;A658;;A658 +A65A;CYRILLIC CAPITAL LETTER BLENDED YUS;Lu;0;L;;;;;N;;;;A65B; +A65B;CYRILLIC SMALL LETTER BLENDED YUS;Ll;0;L;;;;;N;;;A65A;;A65A +A65C;CYRILLIC CAPITAL LETTER IOTIFIED CLOSED LITTLE YUS;Lu;0;L;;;;;N;;;;A65D; +A65D;CYRILLIC SMALL LETTER IOTIFIED CLOSED LITTLE YUS;Ll;0;L;;;;;N;;;A65C;;A65C +A65E;CYRILLIC CAPITAL LETTER YN;Lu;0;L;;;;;N;;;;A65F; +A65F;CYRILLIC SMALL LETTER YN;Ll;0;L;;;;;N;;;A65E;;A65E +A662;CYRILLIC CAPITAL LETTER SOFT DE;Lu;0;L;;;;;N;;;;A663; +A663;CYRILLIC SMALL LETTER SOFT DE;Ll;0;L;;;;;N;;;A662;;A662 +A664;CYRILLIC CAPITAL LETTER SOFT EL;Lu;0;L;;;;;N;;;;A665; +A665;CYRILLIC SMALL LETTER SOFT EL;Ll;0;L;;;;;N;;;A664;;A664 +A666;CYRILLIC CAPITAL LETTER SOFT EM;Lu;0;L;;;;;N;;;;A667; +A667;CYRILLIC SMALL LETTER SOFT EM;Ll;0;L;;;;;N;;;A666;;A666 +A668;CYRILLIC CAPITAL LETTER MONOCULAR O;Lu;0;L;;;;;N;;;;A669; +A669;CYRILLIC SMALL LETTER MONOCULAR O;Ll;0;L;;;;;N;;;A668;;A668 +A66A;CYRILLIC CAPITAL LETTER BINOCULAR O;Lu;0;L;;;;;N;;;;A66B; +A66B;CYRILLIC SMALL LETTER BINOCULAR O;Ll;0;L;;;;;N;;;A66A;;A66A +A66C;CYRILLIC CAPITAL LETTER DOUBLE MONOCULAR O;Lu;0;L;;;;;N;;;;A66D; +A66D;CYRILLIC SMALL LETTER DOUBLE MONOCULAR O;Ll;0;L;;;;;N;;;A66C;;A66C +A66E;CYRILLIC LETTER MULTIOCULAR O;Lo;0;L;;;;;N;;;;; +A66F;COMBINING CYRILLIC VZMET;Mn;230;NSM;;;;;N;;;;; +A670;COMBINING CYRILLIC TEN MILLIONS SIGN;Me;0;NSM;;;;;N;;;;; +A671;COMBINING CYRILLIC HUNDRED MILLIONS SIGN;Me;0;NSM;;;;;N;;;;; +A672;COMBINING CYRILLIC THOUSAND MILLIONS SIGN;Me;0;NSM;;;;;N;;;;; +A673;SLAVONIC ASTERISK;Po;0;ON;;;;;N;;;;; +A67C;COMBINING CYRILLIC KAVYKA;Mn;230;NSM;;;;;N;;;;; +A67D;COMBINING CYRILLIC PAYEROK;Mn;230;NSM;;;;;N;;;;; +A67E;CYRILLIC KAVYKA;Po;0;ON;;;;;N;;;;; +A67F;CYRILLIC PAYEROK;Lm;0;ON;;;;;N;;;;; +A680;CYRILLIC CAPITAL LETTER DWE;Lu;0;L;;;;;N;;;;A681; +A681;CYRILLIC SMALL LETTER DWE;Ll;0;L;;;;;N;;;A680;;A680 +A682;CYRILLIC CAPITAL LETTER DZWE;Lu;0;L;;;;;N;;;;A683; +A683;CYRILLIC SMALL LETTER DZWE;Ll;0;L;;;;;N;;;A682;;A682 +A684;CYRILLIC CAPITAL LETTER ZHWE;Lu;0;L;;;;;N;;;;A685; +A685;CYRILLIC SMALL LETTER ZHWE;Ll;0;L;;;;;N;;;A684;;A684 +A686;CYRILLIC CAPITAL LETTER CCHE;Lu;0;L;;;;;N;;;;A687; +A687;CYRILLIC SMALL LETTER CCHE;Ll;0;L;;;;;N;;;A686;;A686 +A688;CYRILLIC CAPITAL LETTER DZZE;Lu;0;L;;;;;N;;;;A689; +A689;CYRILLIC SMALL LETTER DZZE;Ll;0;L;;;;;N;;;A688;;A688 +A68A;CYRILLIC CAPITAL LETTER TE WITH MIDDLE HOOK;Lu;0;L;;;;;N;;;;A68B; +A68B;CYRILLIC SMALL LETTER TE WITH MIDDLE HOOK;Ll;0;L;;;;;N;;;A68A;;A68A +A68C;CYRILLIC CAPITAL LETTER TWE;Lu;0;L;;;;;N;;;;A68D; +A68D;CYRILLIC SMALL LETTER TWE;Ll;0;L;;;;;N;;;A68C;;A68C +A68E;CYRILLIC CAPITAL LETTER TSWE;Lu;0;L;;;;;N;;;;A68F; +A68F;CYRILLIC SMALL LETTER TSWE;Ll;0;L;;;;;N;;;A68E;;A68E +A690;CYRILLIC CAPITAL LETTER TSSE;Lu;0;L;;;;;N;;;;A691; +A691;CYRILLIC SMALL LETTER TSSE;Ll;0;L;;;;;N;;;A690;;A690 +A692;CYRILLIC CAPITAL LETTER TCHE;Lu;0;L;;;;;N;;;;A693; +A693;CYRILLIC SMALL LETTER TCHE;Ll;0;L;;;;;N;;;A692;;A692 +A694;CYRILLIC CAPITAL LETTER HWE;Lu;0;L;;;;;N;;;;A695; +A695;CYRILLIC SMALL LETTER HWE;Ll;0;L;;;;;N;;;A694;;A694 +A696;CYRILLIC CAPITAL LETTER SHWE;Lu;0;L;;;;;N;;;;A697; +A697;CYRILLIC SMALL LETTER SHWE;Ll;0;L;;;;;N;;;A696;;A696 A700;MODIFIER LETTER CHINESE TONE YIN PING;Sk;0;ON;;;;;N;;;;; A701;MODIFIER LETTER CHINESE TONE YANG PING;Sk;0;ON;;;;;N;;;;; A702;MODIFIER LETTER CHINESE TONE YIN SHANG;Sk;0;ON;;;;;N;;;;; @@ -11654,11 +12593,128 @@ A718;MODIFIER LETTER DOT SLASH;Lm;0;ON;;;;;N;;;;; A719;MODIFIER LETTER DOT HORIZONTAL BAR;Lm;0;ON;;;;;N;;;;; A71A;MODIFIER LETTER LOWER RIGHT CORNER ANGLE;Lm;0;ON;;;;;N;;;;; +A71B;MODIFIER LETTER RAISED UP ARROW;Lm;0;ON;;;;;N;;;;; +A71C;MODIFIER LETTER RAISED DOWN ARROW;Lm;0;ON;;;;;N;;;;; +A71D;MODIFIER LETTER RAISED EXCLAMATION MARK;Lm;0;ON;;;;;N;;;;; +A71E;MODIFIER LETTER RAISED INVERTED EXCLAMATION MARK;Lm;0;ON;;;;;N;;;;; +A71F;MODIFIER LETTER LOW INVERTED EXCLAMATION MARK;Lm;0;ON;;;;;N;;;;; A720;MODIFIER LETTER STRESS AND HIGH TONE;Sk;0;ON;;;;;N;;;;; A721;MODIFIER LETTER STRESS AND LOW TONE;Sk;0;ON;;;;;N;;;;; +A722;LATIN CAPITAL LETTER EGYPTOLOGICAL ALEF;Lu;0;L;;;;;N;;;;A723; +A723;LATIN SMALL LETTER EGYPTOLOGICAL ALEF;Ll;0;L;;;;;N;;;A722;;A722 +A724;LATIN CAPITAL LETTER EGYPTOLOGICAL AIN;Lu;0;L;;;;;N;;;;A725; +A725;LATIN SMALL LETTER EGYPTOLOGICAL AIN;Ll;0;L;;;;;N;;;A724;;A724 +A726;LATIN CAPITAL LETTER HENG;Lu;0;L;;;;;N;;;;A727; +A727;LATIN SMALL LETTER HENG;Ll;0;L;;;;;N;;;A726;;A726 +A728;LATIN CAPITAL LETTER TZ;Lu;0;L;;;;;N;;;;A729; +A729;LATIN SMALL LETTER TZ;Ll;0;L;;;;;N;;;A728;;A728 +A72A;LATIN CAPITAL LETTER TRESILLO;Lu;0;L;;;;;N;;;;A72B; +A72B;LATIN SMALL LETTER TRESILLO;Ll;0;L;;;;;N;;;A72A;;A72A +A72C;LATIN CAPITAL LETTER CUATRILLO;Lu;0;L;;;;;N;;;;A72D; +A72D;LATIN SMALL LETTER CUATRILLO;Ll;0;L;;;;;N;;;A72C;;A72C +A72E;LATIN CAPITAL LETTER CUATRILLO WITH COMMA;Lu;0;L;;;;;N;;;;A72F; +A72F;LATIN SMALL LETTER CUATRILLO WITH COMMA;Ll;0;L;;;;;N;;;A72E;;A72E +A730;LATIN LETTER SMALL CAPITAL F;Ll;0;L;;;;;N;;;;; +A731;LATIN LETTER SMALL CAPITAL S;Ll;0;L;;;;;N;;;;; +A732;LATIN CAPITAL LETTER AA;Lu;0;L;;;;;N;;;;A733; +A733;LATIN SMALL LETTER AA;Ll;0;L;;;;;N;;;A732;;A732 +A734;LATIN CAPITAL LETTER AO;Lu;0;L;;;;;N;;;;A735; +A735;LATIN SMALL LETTER AO;Ll;0;L;;;;;N;;;A734;;A734 +A736;LATIN CAPITAL LETTER AU;Lu;0;L;;;;;N;;;;A737; +A737;LATIN SMALL LETTER AU;Ll;0;L;;;;;N;;;A736;;A736 +A738;LATIN CAPITAL LETTER AV;Lu;0;L;;;;;N;;;;A739; +A739;LATIN SMALL LETTER AV;Ll;0;L;;;;;N;;;A738;;A738 +A73A;LATIN CAPITAL LETTER AV WITH HORIZONTAL BAR;Lu;0;L;;;;;N;;;;A73B; +A73B;LATIN SMALL LETTER AV WITH HORIZONTAL BAR;Ll;0;L;;;;;N;;;A73A;;A73A +A73C;LATIN CAPITAL LETTER AY;Lu;0;L;;;;;N;;;;A73D; +A73D;LATIN SMALL LETTER AY;Ll;0;L;;;;;N;;;A73C;;A73C +A73E;LATIN CAPITAL LETTER REVERSED C WITH DOT;Lu;0;L;;;;;N;;;;A73F; +A73F;LATIN SMALL LETTER REVERSED C WITH DOT;Ll;0;L;;;;;N;;;A73E;;A73E +A740;LATIN CAPITAL LETTER K WITH STROKE;Lu;0;L;;;;;N;;;;A741; +A741;LATIN SMALL LETTER K WITH STROKE;Ll;0;L;;;;;N;;;A740;;A740 +A742;LATIN CAPITAL LETTER K WITH DIAGONAL STROKE;Lu;0;L;;;;;N;;;;A743; +A743;LATIN SMALL LETTER K WITH DIAGONAL STROKE;Ll;0;L;;;;;N;;;A742;;A742 +A744;LATIN CAPITAL LETTER K WITH STROKE AND DIAGONAL STROKE;Lu;0;L;;;;;N;;;;A745; +A745;LATIN SMALL LETTER K WITH STROKE AND DIAGONAL STROKE;Ll;0;L;;;;;N;;;A744;;A744 +A746;LATIN CAPITAL LETTER BROKEN L;Lu;0;L;;;;;N;;;;A747; +A747;LATIN SMALL LETTER BROKEN L;Ll;0;L;;;;;N;;;A746;;A746 +A748;LATIN CAPITAL LETTER L WITH HIGH STROKE;Lu;0;L;;;;;N;;;;A749; +A749;LATIN SMALL LETTER L WITH HIGH STROKE;Ll;0;L;;;;;N;;;A748;;A748 +A74A;LATIN CAPITAL LETTER O WITH LONG STROKE OVERLAY;Lu;0;L;;;;;N;;;;A74B; +A74B;LATIN SMALL LETTER O WITH LONG STROKE OVERLAY;Ll;0;L;;;;;N;;;A74A;;A74A +A74C;LATIN CAPITAL LETTER O WITH LOOP;Lu;0;L;;;;;N;;;;A74D; +A74D;LATIN SMALL LETTER O WITH LOOP;Ll;0;L;;;;;N;;;A74C;;A74C +A74E;LATIN CAPITAL LETTER OO;Lu;0;L;;;;;N;;;;A74F; +A74F;LATIN SMALL LETTER OO;Ll;0;L;;;;;N;;;A74E;;A74E +A750;LATIN CAPITAL LETTER P WITH STROKE THROUGH DESCENDER;Lu;0;L;;;;;N;;;;A751; +A751;LATIN SMALL LETTER P WITH STROKE THROUGH DESCENDER;Ll;0;L;;;;;N;;;A750;;A750 +A752;LATIN CAPITAL LETTER P WITH FLOURISH;Lu;0;L;;;;;N;;;;A753; +A753;LATIN SMALL LETTER P WITH FLOURISH;Ll;0;L;;;;;N;;;A752;;A752 +A754;LATIN CAPITAL LETTER P WITH SQUIRREL TAIL;Lu;0;L;;;;;N;;;;A755; +A755;LATIN SMALL LETTER P WITH SQUIRREL TAIL;Ll;0;L;;;;;N;;;A754;;A754 +A756;LATIN CAPITAL LETTER Q WITH STROKE THROUGH DESCENDER;Lu;0;L;;;;;N;;;;A757; +A757;LATIN SMALL LETTER Q WITH STROKE THROUGH DESCENDER;Ll;0;L;;;;;N;;;A756;;A756 +A758;LATIN CAPITAL LETTER Q WITH DIAGONAL STROKE;Lu;0;L;;;;;N;;;;A759; +A759;LATIN SMALL LETTER Q WITH DIAGONAL STROKE;Ll;0;L;;;;;N;;;A758;;A758 +A75A;LATIN CAPITAL LETTER R ROTUNDA;Lu;0;L;;;;;N;;;;A75B; +A75B;LATIN SMALL LETTER R ROTUNDA;Ll;0;L;;;;;N;;;A75A;;A75A +A75C;LATIN CAPITAL LETTER RUM ROTUNDA;Lu;0;L;;;;;N;;;;A75D; +A75D;LATIN SMALL LETTER RUM ROTUNDA;Ll;0;L;;;;;N;;;A75C;;A75C +A75E;LATIN CAPITAL LETTER V WITH DIAGONAL STROKE;Lu;0;L;;;;;N;;;;A75F; +A75F;LATIN SMALL LETTER V WITH DIAGONAL STROKE;Ll;0;L;;;;;N;;;A75E;;A75E +A760;LATIN CAPITAL LETTER VY;Lu;0;L;;;;;N;;;;A761; +A761;LATIN SMALL LETTER VY;Ll;0;L;;;;;N;;;A760;;A760 +A762;LATIN CAPITAL LETTER VISIGOTHIC Z;Lu;0;L;;;;;N;;;;A763; +A763;LATIN SMALL LETTER VISIGOTHIC Z;Ll;0;L;;;;;N;;;A762;;A762 +A764;LATIN CAPITAL LETTER THORN WITH STROKE;Lu;0;L;;;;;N;;;;A765; +A765;LATIN SMALL LETTER THORN WITH STROKE;Ll;0;L;;;;;N;;;A764;;A764 +A766;LATIN CAPITAL LETTER THORN WITH STROKE THROUGH DESCENDER;Lu;0;L;;;;;N;;;;A767; +A767;LATIN SMALL LETTER THORN WITH STROKE THROUGH DESCENDER;Ll;0;L;;;;;N;;;A766;;A766 +A768;LATIN CAPITAL LETTER VEND;Lu;0;L;;;;;N;;;;A769; +A769;LATIN SMALL LETTER VEND;Ll;0;L;;;;;N;;;A768;;A768 +A76A;LATIN CAPITAL LETTER ET;Lu;0;L;;;;;N;;;;A76B; +A76B;LATIN SMALL LETTER ET;Ll;0;L;;;;;N;;;A76A;;A76A +A76C;LATIN CAPITAL LETTER IS;Lu;0;L;;;;;N;;;;A76D; +A76D;LATIN SMALL LETTER IS;Ll;0;L;;;;;N;;;A76C;;A76C +A76E;LATIN CAPITAL LETTER CON;Lu;0;L;;;;;N;;;;A76F; +A76F;LATIN SMALL LETTER CON;Ll;0;L;;;;;N;;;A76E;;A76E +A770;MODIFIER LETTER US;Lm;0;L; A76F;;;;N;;;;; +A771;LATIN SMALL LETTER DUM;Ll;0;L;;;;;N;;;;; +A772;LATIN SMALL LETTER LUM;Ll;0;L;;;;;N;;;;; +A773;LATIN SMALL LETTER MUM;Ll;0;L;;;;;N;;;;; +A774;LATIN SMALL LETTER NUM;Ll;0;L;;;;;N;;;;; +A775;LATIN SMALL LETTER RUM;Ll;0;L;;;;;N;;;;; +A776;LATIN LETTER SMALL CAPITAL RUM;Ll;0;L;;;;;N;;;;; +A777;LATIN SMALL LETTER TUM;Ll;0;L;;;;;N;;;;; +A778;LATIN SMALL LETTER UM;Ll;0;L;;;;;N;;;;; +A779;LATIN CAPITAL LETTER INSULAR D;Lu;0;L;;;;;N;;;;A77A; +A77A;LATIN SMALL LETTER INSULAR D;Ll;0;L;;;;;N;;;A779;;A779 +A77B;LATIN CAPITAL LETTER INSULAR F;Lu;0;L;;;;;N;;;;A77C; +A77C;LATIN SMALL LETTER INSULAR F;Ll;0;L;;;;;N;;;A77B;;A77B +A77D;LATIN CAPITAL LETTER INSULAR G;Lu;0;L;;;;;N;;;;1D79; +A77E;LATIN CAPITAL LETTER TURNED INSULAR G;Lu;0;L;;;;;N;;;;A77F; +A77F;LATIN SMALL LETTER TURNED INSULAR G;Ll;0;L;;;;;N;;;A77E;;A77E +A780;LATIN CAPITAL LETTER TURNED L;Lu;0;L;;;;;N;;;;A781; +A781;LATIN SMALL LETTER TURNED L;Ll;0;L;;;;;N;;;A780;;A780 +A782;LATIN CAPITAL LETTER INSULAR R;Lu;0;L;;;;;N;;;;A783; +A783;LATIN SMALL LETTER INSULAR R;Ll;0;L;;;;;N;;;A782;;A782 +A784;LATIN CAPITAL LETTER INSULAR S;Lu;0;L;;;;;N;;;;A785; +A785;LATIN SMALL LETTER INSULAR S;Ll;0;L;;;;;N;;;A784;;A784 +A786;LATIN CAPITAL LETTER INSULAR T;Lu;0;L;;;;;N;;;;A787; +A787;LATIN SMALL LETTER INSULAR T;Ll;0;L;;;;;N;;;A786;;A786 +A788;MODIFIER LETTER LOW CIRCUMFLEX ACCENT;Lm;0;ON;;;;;N;;;;; +A789;MODIFIER LETTER COLON;Sk;0;L;;;;;N;;;;; +A78A;MODIFIER LETTER SHORT EQUALS SIGN;Sk;0;L;;;;;N;;;;; +A78B;LATIN CAPITAL LETTER SALTILLO;Lu;0;L;;;;;N;;;;A78C; +A78C;LATIN SMALL LETTER SALTILLO;Ll;0;L;;;;;N;;;A78B;;A78B +A7FB;LATIN EPIGRAPHIC LETTER REVERSED F;Lo;0;L;;;;;N;;;;; +A7FC;LATIN EPIGRAPHIC LETTER REVERSED P;Lo;0;L;;;;;N;;;;; +A7FD;LATIN EPIGRAPHIC LETTER INVERTED M;Lo;0;L;;;;;N;;;;; +A7FE;LATIN EPIGRAPHIC LETTER I LONGA;Lo;0;L;;;;;N;;;;; +A7FF;LATIN EPIGRAPHIC LETTER ARCHAIC M;Lo;0;L;;;;;N;;;;; A800;SYLOTI NAGRI LETTER A;Lo;0;L;;;;;N;;;;; A801;SYLOTI NAGRI LETTER I;Lo;0;L;;;;;N;;;;; -A802;SYLOTI NAGRI SIGN DVISVARA;Mc;0;NSM;;;;;N;;;;; +A802;SYLOTI NAGRI SIGN DVISVARA;Mn;0;NSM;;;;;N;;;;; A803;SYLOTI NAGRI LETTER U;Lo;0;L;;;;;N;;;;; A804;SYLOTI NAGRI LETTER E;Lo;0;L;;;;;N;;;;; A805;SYLOTI NAGRI LETTER O;Lo;0;L;;;;;N;;;;; @@ -11756,6 +12812,255 @@ A875;PHAGS-PA DOUBLE HEAD MARK;Po;0;ON;;;;;N;;;;; A876;PHAGS-PA MARK SHAD;Po;0;ON;;;;;N;;;;; A877;PHAGS-PA MARK DOUBLE SHAD;Po;0;ON;;;;;N;;;;; +A880;SAURASHTRA SIGN ANUSVARA;Mc;0;L;;;;;N;;;;; +A881;SAURASHTRA SIGN VISARGA;Mc;0;L;;;;;N;;;;; +A882;SAURASHTRA LETTER A;Lo;0;L;;;;;N;;;;; +A883;SAURASHTRA LETTER AA;Lo;0;L;;;;;N;;;;; +A884;SAURASHTRA LETTER I;Lo;0;L;;;;;N;;;;; +A885;SAURASHTRA LETTER II;Lo;0;L;;;;;N;;;;; +A886;SAURASHTRA LETTER U;Lo;0;L;;;;;N;;;;; +A887;SAURASHTRA LETTER UU;Lo;0;L;;;;;N;;;;; +A888;SAURASHTRA LETTER VOCALIC R;Lo;0;L;;;;;N;;;;; +A889;SAURASHTRA LETTER VOCALIC RR;Lo;0;L;;;;;N;;;;; +A88A;SAURASHTRA LETTER VOCALIC L;Lo;0;L;;;;;N;;;;; +A88B;SAURASHTRA LETTER VOCALIC LL;Lo;0;L;;;;;N;;;;; +A88C;SAURASHTRA LETTER E;Lo;0;L;;;;;N;;;;; +A88D;SAURASHTRA LETTER EE;Lo;0;L;;;;;N;;;;; +A88E;SAURASHTRA LETTER AI;Lo;0;L;;;;;N;;;;; +A88F;SAURASHTRA LETTER O;Lo;0;L;;;;;N;;;;; +A890;SAURASHTRA LETTER OO;Lo;0;L;;;;;N;;;;; +A891;SAURASHTRA LETTER AU;Lo;0;L;;;;;N;;;;; +A892;SAURASHTRA LETTER KA;Lo;0;L;;;;;N;;;;; +A893;SAURASHTRA LETTER KHA;Lo;0;L;;;;;N;;;;; +A894;SAURASHTRA LETTER GA;Lo;0;L;;;;;N;;;;; +A895;SAURASHTRA LETTER GHA;Lo;0;L;;;;;N;;;;; +A896;SAURASHTRA LETTER NGA;Lo;0;L;;;;;N;;;;; +A897;SAURASHTRA LETTER CA;Lo;0;L;;;;;N;;;;; +A898;SAURASHTRA LETTER CHA;Lo;0;L;;;;;N;;;;; +A899;SAURASHTRA LETTER JA;Lo;0;L;;;;;N;;;;; +A89A;SAURASHTRA LETTER JHA;Lo;0;L;;;;;N;;;;; +A89B;SAURASHTRA LETTER NYA;Lo;0;L;;;;;N;;;;; +A89C;SAURASHTRA LETTER TTA;Lo;0;L;;;;;N;;;;; +A89D;SAURASHTRA LETTER TTHA;Lo;0;L;;;;;N;;;;; +A89E;SAURASHTRA LETTER DDA;Lo;0;L;;;;;N;;;;; +A89F;SAURASHTRA LETTER DDHA;Lo;0;L;;;;;N;;;;; +A8A0;SAURASHTRA LETTER NNA;Lo;0;L;;;;;N;;;;; +A8A1;SAURASHTRA LETTER TA;Lo;0;L;;;;;N;;;;; +A8A2;SAURASHTRA LETTER THA;Lo;0;L;;;;;N;;;;; +A8A3;SAURASHTRA LETTER DA;Lo;0;L;;;;;N;;;;; +A8A4;SAURASHTRA LETTER DHA;Lo;0;L;;;;;N;;;;; +A8A5;SAURASHTRA LETTER NA;Lo;0;L;;;;;N;;;;; +A8A6;SAURASHTRA LETTER PA;Lo;0;L;;;;;N;;;;; +A8A7;SAURASHTRA LETTER PHA;Lo;0;L;;;;;N;;;;; +A8A8;SAURASHTRA LETTER BA;Lo;0;L;;;;;N;;;;; +A8A9;SAURASHTRA LETTER BHA;Lo;0;L;;;;;N;;;;; +A8AA;SAURASHTRA LETTER MA;Lo;0;L;;;;;N;;;;; +A8AB;SAURASHTRA LETTER YA;Lo;0;L;;;;;N;;;;; +A8AC;SAURASHTRA LETTER RA;Lo;0;L;;;;;N;;;;; +A8AD;SAURASHTRA LETTER LA;Lo;0;L;;;;;N;;;;; +A8AE;SAURASHTRA LETTER VA;Lo;0;L;;;;;N;;;;; +A8AF;SAURASHTRA LETTER SHA;Lo;0;L;;;;;N;;;;; +A8B0;SAURASHTRA LETTER SSA;Lo;0;L;;;;;N;;;;; +A8B1;SAURASHTRA LETTER SA;Lo;0;L;;;;;N;;;;; +A8B2;SAURASHTRA LETTER HA;Lo;0;L;;;;;N;;;;; +A8B3;SAURASHTRA LETTER LLA;Lo;0;L;;;;;N;;;;; +A8B4;SAURASHTRA CONSONANT SIGN HAARU;Mc;0;L;;;;;N;;;;; +A8B5;SAURASHTRA VOWEL SIGN AA;Mc;0;L;;;;;N;;;;; +A8B6;SAURASHTRA VOWEL SIGN I;Mc;0;L;;;;;N;;;;; +A8B7;SAURASHTRA VOWEL SIGN II;Mc;0;L;;;;;N;;;;; +A8B8;SAURASHTRA VOWEL SIGN U;Mc;0;L;;;;;N;;;;; +A8B9;SAURASHTRA VOWEL SIGN UU;Mc;0;L;;;;;N;;;;; +A8BA;SAURASHTRA VOWEL SIGN VOCALIC R;Mc;0;L;;;;;N;;;;; +A8BB;SAURASHTRA VOWEL SIGN VOCALIC RR;Mc;0;L;;;;;N;;;;; +A8BC;SAURASHTRA VOWEL SIGN VOCALIC L;Mc;0;L;;;;;N;;;;; +A8BD;SAURASHTRA VOWEL SIGN VOCALIC LL;Mc;0;L;;;;;N;;;;; +A8BE;SAURASHTRA VOWEL SIGN E;Mc;0;L;;;;;N;;;;; +A8BF;SAURASHTRA VOWEL SIGN EE;Mc;0;L;;;;;N;;;;; +A8C0;SAURASHTRA VOWEL SIGN AI;Mc;0;L;;;;;N;;;;; +A8C1;SAURASHTRA VOWEL SIGN O;Mc;0;L;;;;;N;;;;; +A8C2;SAURASHTRA VOWEL SIGN OO;Mc;0;L;;;;;N;;;;; +A8C3;SAURASHTRA VOWEL SIGN AU;Mc;0;L;;;;;N;;;;; +A8C4;SAURASHTRA SIGN VIRAMA;Mn;9;NSM;;;;;N;;;;; +A8CE;SAURASHTRA DANDA;Po;0;L;;;;;N;;;;; +A8CF;SAURASHTRA DOUBLE DANDA;Po;0;L;;;;;N;;;;; +A8D0;SAURASHTRA DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +A8D1;SAURASHTRA DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +A8D2;SAURASHTRA DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +A8D3;SAURASHTRA DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +A8D4;SAURASHTRA DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +A8D5;SAURASHTRA DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +A8D6;SAURASHTRA DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +A8D7;SAURASHTRA DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +A8D8;SAURASHTRA DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +A8D9;SAURASHTRA DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +A900;KAYAH LI DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +A901;KAYAH LI DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +A902;KAYAH LI DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +A903;KAYAH LI DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +A904;KAYAH LI DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +A905;KAYAH LI DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +A906;KAYAH LI DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +A907;KAYAH LI DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +A908;KAYAH LI DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +A909;KAYAH LI DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +A90A;KAYAH LI LETTER KA;Lo;0;L;;;;;N;;;;; +A90B;KAYAH LI LETTER KHA;Lo;0;L;;;;;N;;;;; +A90C;KAYAH LI LETTER GA;Lo;0;L;;;;;N;;;;; +A90D;KAYAH LI LETTER NGA;Lo;0;L;;;;;N;;;;; +A90E;KAYAH LI LETTER SA;Lo;0;L;;;;;N;;;;; +A90F;KAYAH LI LETTER SHA;Lo;0;L;;;;;N;;;;; +A910;KAYAH LI LETTER ZA;Lo;0;L;;;;;N;;;;; +A911;KAYAH LI LETTER NYA;Lo;0;L;;;;;N;;;;; +A912;KAYAH LI LETTER TA;Lo;0;L;;;;;N;;;;; +A913;KAYAH LI LETTER HTA;Lo;0;L;;;;;N;;;;; +A914;KAYAH LI LETTER NA;Lo;0;L;;;;;N;;;;; +A915;KAYAH LI LETTER PA;Lo;0;L;;;;;N;;;;; +A916;KAYAH LI LETTER PHA;Lo;0;L;;;;;N;;;;; +A917;KAYAH LI LETTER MA;Lo;0;L;;;;;N;;;;; +A918;KAYAH LI LETTER DA;Lo;0;L;;;;;N;;;;; +A919;KAYAH LI LETTER BA;Lo;0;L;;;;;N;;;;; +A91A;KAYAH LI LETTER RA;Lo;0;L;;;;;N;;;;; +A91B;KAYAH LI LETTER YA;Lo;0;L;;;;;N;;;;; +A91C;KAYAH LI LETTER LA;Lo;0;L;;;;;N;;;;; +A91D;KAYAH LI LETTER WA;Lo;0;L;;;;;N;;;;; +A91E;KAYAH LI LETTER THA;Lo;0;L;;;;;N;;;;; +A91F;KAYAH LI LETTER HA;Lo;0;L;;;;;N;;;;; +A920;KAYAH LI LETTER VA;Lo;0;L;;;;;N;;;;; +A921;KAYAH LI LETTER CA;Lo;0;L;;;;;N;;;;; +A922;KAYAH LI LETTER A;Lo;0;L;;;;;N;;;;; +A923;KAYAH LI LETTER OE;Lo;0;L;;;;;N;;;;; +A924;KAYAH LI LETTER I;Lo;0;L;;;;;N;;;;; +A925;KAYAH LI LETTER OO;Lo;0;L;;;;;N;;;;; +A926;KAYAH LI VOWEL UE;Mn;0;NSM;;;;;N;;;;; +A927;KAYAH LI VOWEL E;Mn;0;NSM;;;;;N;;;;; +A928;KAYAH LI VOWEL U;Mn;0;NSM;;;;;N;;;;; +A929;KAYAH LI VOWEL EE;Mn;0;NSM;;;;;N;;;;; +A92A;KAYAH LI VOWEL O;Mn;0;NSM;;;;;N;;;;; +A92B;KAYAH LI TONE PLOPHU;Mn;220;NSM;;;;;N;;;;; +A92C;KAYAH LI TONE CALYA;Mn;220;NSM;;;;;N;;;;; +A92D;KAYAH LI TONE CALYA PLOPHU;Mn;220;NSM;;;;;N;;;;; +A92E;KAYAH LI SIGN CWI;Po;0;L;;;;;N;;;;; +A92F;KAYAH LI SIGN SHYA;Po;0;L;;;;;N;;;;; +A930;REJANG LETTER KA;Lo;0;L;;;;;N;;;;; +A931;REJANG LETTER GA;Lo;0;L;;;;;N;;;;; +A932;REJANG LETTER NGA;Lo;0;L;;;;;N;;;;; +A933;REJANG LETTER TA;Lo;0;L;;;;;N;;;;; +A934;REJANG LETTER DA;Lo;0;L;;;;;N;;;;; +A935;REJANG LETTER NA;Lo;0;L;;;;;N;;;;; +A936;REJANG LETTER PA;Lo;0;L;;;;;N;;;;; +A937;REJANG LETTER BA;Lo;0;L;;;;;N;;;;; +A938;REJANG LETTER MA;Lo;0;L;;;;;N;;;;; +A939;REJANG LETTER CA;Lo;0;L;;;;;N;;;;; +A93A;REJANG LETTER JA;Lo;0;L;;;;;N;;;;; +A93B;REJANG LETTER NYA;Lo;0;L;;;;;N;;;;; +A93C;REJANG LETTER SA;Lo;0;L;;;;;N;;;;; +A93D;REJANG LETTER RA;Lo;0;L;;;;;N;;;;; +A93E;REJANG LETTER LA;Lo;0;L;;;;;N;;;;; +A93F;REJANG LETTER YA;Lo;0;L;;;;;N;;;;; +A940;REJANG LETTER WA;Lo;0;L;;;;;N;;;;; +A941;REJANG LETTER HA;Lo;0;L;;;;;N;;;;; +A942;REJANG LETTER MBA;Lo;0;L;;;;;N;;;;; +A943;REJANG LETTER NGGA;Lo;0;L;;;;;N;;;;; +A944;REJANG LETTER NDA;Lo;0;L;;;;;N;;;;; +A945;REJANG LETTER NYJA;Lo;0;L;;;;;N;;;;; +A946;REJANG LETTER A;Lo;0;L;;;;;N;;;;; +A947;REJANG VOWEL SIGN I;Mn;0;NSM;;;;;N;;;;; +A948;REJANG VOWEL SIGN U;Mn;0;NSM;;;;;N;;;;; +A949;REJANG VOWEL SIGN E;Mn;0;NSM;;;;;N;;;;; +A94A;REJANG VOWEL SIGN AI;Mn;0;NSM;;;;;N;;;;; +A94B;REJANG VOWEL SIGN O;Mn;0;NSM;;;;;N;;;;; +A94C;REJANG VOWEL SIGN AU;Mn;0;NSM;;;;;N;;;;; +A94D;REJANG VOWEL SIGN EU;Mn;0;NSM;;;;;N;;;;; +A94E;REJANG VOWEL SIGN EA;Mn;0;NSM;;;;;N;;;;; +A94F;REJANG CONSONANT SIGN NG;Mn;0;NSM;;;;;N;;;;; +A950;REJANG CONSONANT SIGN N;Mn;0;NSM;;;;;N;;;;; +A951;REJANG CONSONANT SIGN R;Mn;0;NSM;;;;;N;;;;; +A952;REJANG CONSONANT SIGN H;Mc;0;L;;;;;N;;;;; +A953;REJANG VIRAMA;Mc;9;L;;;;;N;;;;; +A95F;REJANG SECTION MARK;Po;0;L;;;;;N;;;;; +AA00;CHAM LETTER A;Lo;0;L;;;;;N;;;;; +AA01;CHAM LETTER I;Lo;0;L;;;;;N;;;;; +AA02;CHAM LETTER U;Lo;0;L;;;;;N;;;;; +AA03;CHAM LETTER E;Lo;0;L;;;;;N;;;;; +AA04;CHAM LETTER AI;Lo;0;L;;;;;N;;;;; +AA05;CHAM LETTER O;Lo;0;L;;;;;N;;;;; +AA06;CHAM LETTER KA;Lo;0;L;;;;;N;;;;; +AA07;CHAM LETTER KHA;Lo;0;L;;;;;N;;;;; +AA08;CHAM LETTER GA;Lo;0;L;;;;;N;;;;; +AA09;CHAM LETTER GHA;Lo;0;L;;;;;N;;;;; +AA0A;CHAM LETTER NGUE;Lo;0;L;;;;;N;;;;; +AA0B;CHAM LETTER NGA;Lo;0;L;;;;;N;;;;; +AA0C;CHAM LETTER CHA;Lo;0;L;;;;;N;;;;; +AA0D;CHAM LETTER CHHA;Lo;0;L;;;;;N;;;;; +AA0E;CHAM LETTER JA;Lo;0;L;;;;;N;;;;; +AA0F;CHAM LETTER JHA;Lo;0;L;;;;;N;;;;; +AA10;CHAM LETTER NHUE;Lo;0;L;;;;;N;;;;; +AA11;CHAM LETTER NHA;Lo;0;L;;;;;N;;;;; +AA12;CHAM LETTER NHJA;Lo;0;L;;;;;N;;;;; +AA13;CHAM LETTER TA;Lo;0;L;;;;;N;;;;; +AA14;CHAM LETTER THA;Lo;0;L;;;;;N;;;;; +AA15;CHAM LETTER DA;Lo;0;L;;;;;N;;;;; +AA16;CHAM LETTER DHA;Lo;0;L;;;;;N;;;;; +AA17;CHAM LETTER NUE;Lo;0;L;;;;;N;;;;; +AA18;CHAM LETTER NA;Lo;0;L;;;;;N;;;;; +AA19;CHAM LETTER DDA;Lo;0;L;;;;;N;;;;; +AA1A;CHAM LETTER PA;Lo;0;L;;;;;N;;;;; +AA1B;CHAM LETTER PPA;Lo;0;L;;;;;N;;;;; +AA1C;CHAM LETTER PHA;Lo;0;L;;;;;N;;;;; +AA1D;CHAM LETTER BA;Lo;0;L;;;;;N;;;;; +AA1E;CHAM LETTER BHA;Lo;0;L;;;;;N;;;;; +AA1F;CHAM LETTER MUE;Lo;0;L;;;;;N;;;;; +AA20;CHAM LETTER MA;Lo;0;L;;;;;N;;;;; +AA21;CHAM LETTER BBA;Lo;0;L;;;;;N;;;;; +AA22;CHAM LETTER YA;Lo;0;L;;;;;N;;;;; +AA23;CHAM LETTER RA;Lo;0;L;;;;;N;;;;; +AA24;CHAM LETTER LA;Lo;0;L;;;;;N;;;;; +AA25;CHAM LETTER VA;Lo;0;L;;;;;N;;;;; +AA26;CHAM LETTER SSA;Lo;0;L;;;;;N;;;;; +AA27;CHAM LETTER SA;Lo;0;L;;;;;N;;;;; +AA28;CHAM LETTER HA;Lo;0;L;;;;;N;;;;; +AA29;CHAM VOWEL SIGN AA;Mn;0;NSM;;;;;N;;;;; +AA2A;CHAM VOWEL SIGN I;Mn;0;NSM;;;;;N;;;;; +AA2B;CHAM VOWEL SIGN II;Mn;0;NSM;;;;;N;;;;; +AA2C;CHAM VOWEL SIGN EI;Mn;0;NSM;;;;;N;;;;; +AA2D;CHAM VOWEL SIGN U;Mn;0;NSM;;;;;N;;;;; +AA2E;CHAM VOWEL SIGN OE;Mn;0;NSM;;;;;N;;;;; +AA2F;CHAM VOWEL SIGN O;Mc;0;L;;;;;N;;;;; +AA30;CHAM VOWEL SIGN AI;Mc;0;L;;;;;N;;;;; +AA31;CHAM VOWEL SIGN AU;Mn;0;NSM;;;;;N;;;;; +AA32;CHAM VOWEL SIGN UE;Mn;0;NSM;;;;;N;;;;; +AA33;CHAM CONSONANT SIGN YA;Mc;0;L;;;;;N;;;;; +AA34;CHAM CONSONANT SIGN RA;Mc;0;L;;;;;N;;;;; +AA35;CHAM CONSONANT SIGN LA;Mn;0;NSM;;;;;N;;;;; +AA36;CHAM CONSONANT SIGN WA;Mn;0;NSM;;;;;N;;;;; +AA40;CHAM LETTER FINAL K;Lo;0;L;;;;;N;;;;; +AA41;CHAM LETTER FINAL G;Lo;0;L;;;;;N;;;;; +AA42;CHAM LETTER FINAL NG;Lo;0;L;;;;;N;;;;; +AA43;CHAM CONSONANT SIGN FINAL NG;Mn;0;NSM;;;;;N;;;;; +AA44;CHAM LETTER FINAL CH;Lo;0;L;;;;;N;;;;; +AA45;CHAM LETTER FINAL T;Lo;0;L;;;;;N;;;;; +AA46;CHAM LETTER FINAL N;Lo;0;L;;;;;N;;;;; +AA47;CHAM LETTER FINAL P;Lo;0;L;;;;;N;;;;; +AA48;CHAM LETTER FINAL Y;Lo;0;L;;;;;N;;;;; +AA49;CHAM LETTER FINAL R;Lo;0;L;;;;;N;;;;; +AA4A;CHAM LETTER FINAL L;Lo;0;L;;;;;N;;;;; +AA4B;CHAM LETTER FINAL SS;Lo;0;L;;;;;N;;;;; +AA4C;CHAM CONSONANT SIGN FINAL M;Mn;0;NSM;;;;;N;;;;; +AA4D;CHAM CONSONANT SIGN FINAL H;Mc;0;L;;;;;N;;;;; +AA50;CHAM DIGIT ZERO;Nd;0;L;;0;0;0;N;;;;; +AA51;CHAM DIGIT ONE;Nd;0;L;;1;1;1;N;;;;; +AA52;CHAM DIGIT TWO;Nd;0;L;;2;2;2;N;;;;; +AA53;CHAM DIGIT THREE;Nd;0;L;;3;3;3;N;;;;; +AA54;CHAM DIGIT FOUR;Nd;0;L;;4;4;4;N;;;;; +AA55;CHAM DIGIT FIVE;Nd;0;L;;5;5;5;N;;;;; +AA56;CHAM DIGIT SIX;Nd;0;L;;6;6;6;N;;;;; +AA57;CHAM DIGIT SEVEN;Nd;0;L;;7;7;7;N;;;;; +AA58;CHAM DIGIT EIGHT;Nd;0;L;;8;8;8;N;;;;; +AA59;CHAM DIGIT NINE;Nd;0;L;;9;9;9;N;;;;; +AA5C;CHAM PUNCTUATION SPIRAL;Po;0;L;;;;;N;;;;; +AA5D;CHAM PUNCTUATION DANDA;Po;0;L;;;;;N;;;;; +AA5E;CHAM PUNCTUATION DOUBLE DANDA;Po;0;L;;;;;N;;;;; +AA5F;CHAM PUNCTUATION TRIPLE DANDA;Po;0;L;;;;;N;;;;; AC00;HANGUL SYLLABLE GA;Lo;0;L;;;;;N;;;;; AC01;HANGUL SYLLABLE GAG;Lo;0;L;;;;;N;;;;; AC02;HANGUL SYLLABLE GAGG;Lo;0;L;;;;;N;;;;; @@ -23035,7 +24340,7 @@ F968;CJK COMPATIBILITY IDEOGRAPH-F968;Lo;0;L;6CCC;;;;N;;;;; F969;CJK COMPATIBILITY IDEOGRAPH-F969;Lo;0;L;6578;;;;N;;;;; F96A;CJK COMPATIBILITY IDEOGRAPH-F96A;Lo;0;L;7D22;;;;N;;;;; -F96B;CJK COMPATIBILITY IDEOGRAPH-F96B;Lo;0;L;53C3;;;;N;;;;; +F96B;CJK COMPATIBILITY IDEOGRAPH-F96B;Lo;0;L;53C3;;;3;N;;;;; F96C;CJK COMPATIBILITY IDEOGRAPH-F96C;Lo;0;L;585E;;;;N;;;;; F96D;CJK COMPATIBILITY IDEOGRAPH-F96D;Lo;0;L;7701;;;;N;;;;; F96E;CJK COMPATIBILITY IDEOGRAPH-F96E;Lo;0;L;8449;;;;N;;;;; @@ -23043,12 +24348,12 @@ F970;CJK COMPATIBILITY IDEOGRAPH-F970;Lo;0;L;6BBA;;;;N;;;;; F971;CJK COMPATIBILITY IDEOGRAPH-F971;Lo;0;L;8FB0;;;;N;;;;; F972;CJK COMPATIBILITY IDEOGRAPH-F972;Lo;0;L;6C88;;;;N;;;;; -F973;CJK COMPATIBILITY IDEOGRAPH-F973;Lo;0;L;62FE;;;;N;;;;; +F973;CJK COMPATIBILITY IDEOGRAPH-F973;Lo;0;L;62FE;;;10;N;;;;; F974;CJK COMPATIBILITY IDEOGRAPH-F974;Lo;0;L;82E5;;;;N;;;;; F975;CJK COMPATIBILITY IDEOGRAPH-F975;Lo;0;L;63A0;;;;N;;;;; F976;CJK COMPATIBILITY IDEOGRAPH-F976;Lo;0;L;7565;;;;N;;;;; F977;CJK COMPATIBILITY IDEOGRAPH-F977;Lo;0;L;4EAE;;;;N;;;;; -F978;CJK COMPATIBILITY IDEOGRAPH-F978;Lo;0;L;5169;;;;N;;;;; +F978;CJK COMPATIBILITY IDEOGRAPH-F978;Lo;0;L;5169;;;2;N;;;;; F979;CJK COMPATIBILITY IDEOGRAPH-F979;Lo;0;L;51C9;;;;N;;;;; F97A;CJK COMPATIBILITY IDEOGRAPH-F97A;Lo;0;L;6881;;;;N;;;;; F97B;CJK COMPATIBILITY IDEOGRAPH-F97B;Lo;0;L;7CE7;;;;N;;;;; @@ -23106,7 +24411,7 @@ F9AF;CJK COMPATIBILITY IDEOGRAPH-F9AF;Lo;0;L;7F9A;;;;N;;;;; F9B0;CJK COMPATIBILITY IDEOGRAPH-F9B0;Lo;0;L;8046;;;;N;;;;; F9B1;CJK COMPATIBILITY IDEOGRAPH-F9B1;Lo;0;L;9234;;;;N;;;;; -F9B2;CJK COMPATIBILITY IDEOGRAPH-F9B2;Lo;0;L;96F6;;;;N;;;;; +F9B2;CJK COMPATIBILITY IDEOGRAPH-F9B2;Lo;0;L;96F6;;;0;N;;;;; F9B3;CJK COMPATIBILITY IDEOGRAPH-F9B3;Lo;0;L;9748;;;;N;;;;; F9B4;CJK COMPATIBILITY IDEOGRAPH-F9B4;Lo;0;L;9818;;;;N;;;;; F9B5;CJK COMPATIBILITY IDEOGRAPH-F9B5;Lo;0;L;4F8B;;;;N;;;;; @@ -23137,9 +24442,9 @@ F9CE;CJK COMPATIBILITY IDEOGRAPH-F9CE;Lo;0;L;786B;;;;N;;;;; F9CF;CJK COMPATIBILITY IDEOGRAPH-F9CF;Lo;0;L;7D10;;;;N;;;;; F9D0;CJK COMPATIBILITY IDEOGRAPH-F9D0;Lo;0;L;985E;;;;N;;;;; -F9D1;CJK COMPATIBILITY IDEOGRAPH-F9D1;Lo;0;L;516D;;;;N;;;;; +F9D1;CJK COMPATIBILITY IDEOGRAPH-F9D1;Lo;0;L;516D;;;6;N;;;;; F9D2;CJK COMPATIBILITY IDEOGRAPH-F9D2;Lo;0;L;622E;;;;N;;;;; -F9D3;CJK COMPATIBILITY IDEOGRAPH-F9D3;Lo;0;L;9678;;;;N;;;;; +F9D3;CJK COMPATIBILITY IDEOGRAPH-F9D3;Lo;0;L;9678;;;6;N;;;;; F9D4;CJK COMPATIBILITY IDEOGRAPH-F9D4;Lo;0;L;502B;;;;N;;;;; F9D5;CJK COMPATIBILITY IDEOGRAPH-F9D5;Lo;0;L;5D19;;;;N;;;;; F9D6;CJK COMPATIBILITY IDEOGRAPH-F9D6;Lo;0;L;6DEA;;;;N;;;;; @@ -23181,7 +24486,7 @@ F9FA;CJK COMPATIBILITY IDEOGRAPH-F9FA;Lo;0;L;72C0;;;;N;;;;; F9FB;CJK COMPATIBILITY IDEOGRAPH-F9FB;Lo;0;L;7099;;;;N;;;;; F9FC;CJK COMPATIBILITY IDEOGRAPH-F9FC;Lo;0;L;8B58;;;;N;;;;; -F9FD;CJK COMPATIBILITY IDEOGRAPH-F9FD;Lo;0;L;4EC0;;;;N;;;;; +F9FD;CJK COMPATIBILITY IDEOGRAPH-F9FD;Lo;0;L;4EC0;;;10;N;;;;; F9FE;CJK COMPATIBILITY IDEOGRAPH-F9FE;Lo;0;L;8336;;;;N;;;;; F9FF;CJK COMPATIBILITY IDEOGRAPH-F9FF;Lo;0;L;523A;;;;N;;;;; FA00;CJK COMPATIBILITY IDEOGRAPH-FA00;Lo;0;L;5207;;;;N;;;;; @@ -24078,6 +25383,9 @@ FE21;COMBINING LIGATURE RIGHT HALF;Mn;230;NSM;;;;;N;;;;; FE22;COMBINING DOUBLE TILDE LEFT HALF;Mn;230;NSM;;;;;N;;;;; FE23;COMBINING DOUBLE TILDE RIGHT HALF;Mn;230;NSM;;;;;N;;;;; +FE24;COMBINING MACRON LEFT HALF;Mn;230;NSM;;;;;N;;;;; +FE25;COMBINING MACRON RIGHT HALF;Mn;230;NSM;;;;;N;;;;; +FE26;COMBINING CONJOINING MACRON;Mn;230;NSM;;;;;N;;;;; FE30;PRESENTATION FORM FOR VERTICAL TWO DOT LEADER;Po;0;ON; 2025;;;;N;GLYPH FOR VERTICAL TWO DOT LEADER;;;; FE31;PRESENTATION FORM FOR VERTICAL EM DASH;Pd;0;ON; 2014;;;;N;GLYPH FOR VERTICAL EM DASH;;;; FE32;PRESENTATION FORM FOR VERTICAL EN DASH;Pd;0;ON; 2013;;;;N;GLYPH FOR VERTICAL EN DASH;;;; @@ -24850,6 +26158,142 @@ 10188;GREEK GRAMMA SIGN;So;0;ON;;;;;N;;;;; 10189;GREEK TRYBLION BASE SIGN;So;0;ON;;;;;N;;;;; 1018A;GREEK ZERO SIGN;No;0;ON;;;;0;N;;;;; +10190;ROMAN SEXTANS SIGN;So;0;ON;;;;;N;;;;; +10191;ROMAN UNCIA SIGN;So;0;ON;;;;;N;;;;; +10192;ROMAN SEMUNCIA SIGN;So;0;ON;;;;;N;;;;; +10193;ROMAN SEXTULA SIGN;So;0;ON;;;;;N;;;;; +10194;ROMAN DIMIDIA SEXTULA SIGN;So;0;ON;;;;;N;;;;; +10195;ROMAN SILIQUA SIGN;So;0;ON;;;;;N;;;;; +10196;ROMAN DENARIUS SIGN;So;0;ON;;;;;N;;;;; +10197;ROMAN QUINARIUS SIGN;So;0;ON;;;;;N;;;;; +10198;ROMAN SESTERTIUS SIGN;So;0;ON;;;;;N;;;;; +10199;ROMAN DUPONDIUS SIGN;So;0;ON;;;;;N;;;;; +1019A;ROMAN AS SIGN;So;0;ON;;;;;N;;;;; +1019B;ROMAN CENTURIAL SIGN;So;0;ON;;;;;N;;;;; +101D0;PHAISTOS DISC SIGN PEDESTRIAN;So;0;L;;;;;N;;;;; +101D1;PHAISTOS DISC SIGN PLUMED HEAD;So;0;L;;;;;N;;;;; +101D2;PHAISTOS DISC SIGN TATTOOED HEAD;So;0;L;;;;;N;;;;; +101D3;PHAISTOS DISC SIGN CAPTIVE;So;0;L;;;;;N;;;;; +101D4;PHAISTOS DISC SIGN CHILD;So;0;L;;;;;N;;;;; +101D5;PHAISTOS DISC SIGN WOMAN;So;0;L;;;;;N;;;;; +101D6;PHAISTOS DISC SIGN HELMET;So;0;L;;;;;N;;;;; +101D7;PHAISTOS DISC SIGN GAUNTLET;So;0;L;;;;;N;;;;; +101D8;PHAISTOS DISC SIGN TIARA;So;0;L;;;;;N;;;;; +101D9;PHAISTOS DISC SIGN ARROW;So;0;L;;;;;N;;;;; +101DA;PHAISTOS DISC SIGN BOW;So;0;L;;;;;N;;;;; +101DB;PHAISTOS DISC SIGN SHIELD;So;0;L;;;;;N;;;;; +101DC;PHAISTOS DISC SIGN CLUB;So;0;L;;;;;N;;;;; +101DD;PHAISTOS DISC SIGN MANACLES;So;0;L;;;;;N;;;;; +101DE;PHAISTOS DISC SIGN MATTOCK;So;0;L;;;;;N;;;;; +101DF;PHAISTOS DISC SIGN SAW;So;0;L;;;;;N;;;;; +101E0;PHAISTOS DISC SIGN LID;So;0;L;;;;;N;;;;; +101E1;PHAISTOS DISC SIGN BOOMERANG;So;0;L;;;;;N;;;;; +101E2;PHAISTOS DISC SIGN CARPENTRY PLANE;So;0;L;;;;;N;;;;; +101E3;PHAISTOS DISC SIGN DOLIUM;So;0;L;;;;;N;;;;; +101E4;PHAISTOS DISC SIGN COMB;So;0;L;;;;;N;;;;; +101E5;PHAISTOS DISC SIGN SLING;So;0;L;;;;;N;;;;; +101E6;PHAISTOS DISC SIGN COLUMN;So;0;L;;;;;N;;;;; +101E7;PHAISTOS DISC SIGN BEEHIVE;So;0;L;;;;;N;;;;; +101E8;PHAISTOS DISC SIGN SHIP;So;0;L;;;;;N;;;;; +101E9;PHAISTOS DISC SIGN HORN;So;0;L;;;;;N;;;;; +101EA;PHAISTOS DISC SIGN HIDE;So;0;L;;;;;N;;;;; +101EB;PHAISTOS DISC SIGN BULLS LEG;So;0;L;;;;;N;;;;; +101EC;PHAISTOS DISC SIGN CAT;So;0;L;;;;;N;;;;; +101ED;PHAISTOS DISC SIGN RAM;So;0;L;;;;;N;;;;; +101EE;PHAISTOS DISC SIGN EAGLE;So;0;L;;;;;N;;;;; +101EF;PHAISTOS DISC SIGN DOVE;So;0;L;;;;;N;;;;; +101F0;PHAISTOS DISC SIGN TUNNY;So;0;L;;;;;N;;;;; +101F1;PHAISTOS DISC SIGN BEE;So;0;L;;;;;N;;;;; +101F2;PHAISTOS DISC SIGN PLANE TREE;So;0;L;;;;;N;;;;; +101F3;PHAISTOS DISC SIGN VINE;So;0;L;;;;;N;;;;; +101F4;PHAISTOS DISC SIGN PAPYRUS;So;0;L;;;;;N;;;;; +101F5;PHAISTOS DISC SIGN ROSETTE;So;0;L;;;;;N;;;;; +101F6;PHAISTOS DISC SIGN LILY;So;0;L;;;;;N;;;;; +101F7;PHAISTOS DISC SIGN OX BACK;So;0;L;;;;;N;;;;; +101F8;PHAISTOS DISC SIGN FLUTE;So;0;L;;;;;N;;;;; +101F9;PHAISTOS DISC SIGN GRATER;So;0;L;;;;;N;;;;; +101FA;PHAISTOS DISC SIGN STRAINER;So;0;L;;;;;N;;;;; +101FB;PHAISTOS DISC SIGN SMALL AXE;So;0;L;;;;;N;;;;; +101FC;PHAISTOS DISC SIGN WAVY BAND;So;0;L;;;;;N;;;;; +101FD;PHAISTOS DISC SIGN COMBINING OBLIQUE STROKE;Mn;220;NSM;;;;;N;;;;; +10280;LYCIAN LETTER A;Lo;0;L;;;;;N;;;;; +10281;LYCIAN LETTER E;Lo;0;L;;;;;N;;;;; +10282;LYCIAN LETTER B;Lo;0;L;;;;;N;;;;; +10283;LYCIAN LETTER BH;Lo;0;L;;;;;N;;;;; +10284;LYCIAN LETTER G;Lo;0;L;;;;;N;;;;; +10285;LYCIAN LETTER D;Lo;0;L;;;;;N;;;;; +10286;LYCIAN LETTER I;Lo;0;L;;;;;N;;;;; +10287;LYCIAN LETTER W;Lo;0;L;;;;;N;;;;; +10288;LYCIAN LETTER Z;Lo;0;L;;;;;N;;;;; +10289;LYCIAN LETTER TH;Lo;0;L;;;;;N;;;;; +1028A;LYCIAN LETTER J;Lo;0;L;;;;;N;;;;; +1028B;LYCIAN LETTER K;Lo;0;L;;;;;N;;;;; +1028C;LYCIAN LETTER Q;Lo;0;L;;;;;N;;;;; +1028D;LYCIAN LETTER L;Lo;0;L;;;;;N;;;;; +1028E;LYCIAN LETTER M;Lo;0;L;;;;;N;;;;; +1028F;LYCIAN LETTER N;Lo;0;L;;;;;N;;;;; +10290;LYCIAN LETTER MM;Lo;0;L;;;;;N;;;;; +10291;LYCIAN LETTER NN;Lo;0;L;;;;;N;;;;; +10292;LYCIAN LETTER U;Lo;0;L;;;;;N;;;;; +10293;LYCIAN LETTER P;Lo;0;L;;;;;N;;;;; +10294;LYCIAN LETTER KK;Lo;0;L;;;;;N;;;;; +10295;LYCIAN LETTER R;Lo;0;L;;;;;N;;;;; +10296;LYCIAN LETTER S;Lo;0;L;;;;;N;;;;; +10297;LYCIAN LETTER T;Lo;0;L;;;;;N;;;;; +10298;LYCIAN LETTER TT;Lo;0;L;;;;;N;;;;; +10299;LYCIAN LETTER AN;Lo;0;L;;;;;N;;;;; +1029A;LYCIAN LETTER EN;Lo;0;L;;;;;N;;;;; +1029B;LYCIAN LETTER H;Lo;0;L;;;;;N;;;;; +1029C;LYCIAN LETTER X;Lo;0;L;;;;;N;;;;; +102A0;CARIAN LETTER A;Lo;0;L;;;;;N;;;;; +102A1;CARIAN LETTER P2;Lo;0;L;;;;;N;;;;; +102A2;CARIAN LETTER D;Lo;0;L;;;;;N;;;;; +102A3;CARIAN LETTER L;Lo;0;L;;;;;N;;;;; +102A4;CARIAN LETTER UUU;Lo;0;L;;;;;N;;;;; +102A5;CARIAN LETTER R;Lo;0;L;;;;;N;;;;; +102A6;CARIAN LETTER LD;Lo;0;L;;;;;N;;;;; +102A7;CARIAN LETTER A2;Lo;0;L;;;;;N;;;;; +102A8;CARIAN LETTER Q;Lo;0;L;;;;;N;;;;; +102A9;CARIAN LETTER B;Lo;0;L;;;;;N;;;;; +102AA;CARIAN LETTER M;Lo;0;L;;;;;N;;;;; +102AB;CARIAN LETTER O;Lo;0;L;;;;;N;;;;; +102AC;CARIAN LETTER D2;Lo;0;L;;;;;N;;;;; +102AD;CARIAN LETTER T;Lo;0;L;;;;;N;;;;; +102AE;CARIAN LETTER SH;Lo;0;L;;;;;N;;;;; +102AF;CARIAN LETTER SH2;Lo;0;L;;;;;N;;;;; +102B0;CARIAN LETTER S;Lo;0;L;;;;;N;;;;; +102B1;CARIAN LETTER C-18;Lo;0;L;;;;;N;;;;; +102B2;CARIAN LETTER U;Lo;0;L;;;;;N;;;;; +102B3;CARIAN LETTER NN;Lo;0;L;;;;;N;;;;; +102B4;CARIAN LETTER X;Lo;0;L;;;;;N;;;;; +102B5;CARIAN LETTER N;Lo;0;L;;;;;N;;;;; +102B6;CARIAN LETTER TT2;Lo;0;L;;;;;N;;;;; +102B7;CARIAN LETTER P;Lo;0;L;;;;;N;;;;; +102B8;CARIAN LETTER SS;Lo;0;L;;;;;N;;;;; +102B9;CARIAN LETTER I;Lo;0;L;;;;;N;;;;; +102BA;CARIAN LETTER E;Lo;0;L;;;;;N;;;;; +102BB;CARIAN LETTER UUUU;Lo;0;L;;;;;N;;;;; +102BC;CARIAN LETTER K;Lo;0;L;;;;;N;;;;; +102BD;CARIAN LETTER K2;Lo;0;L;;;;;N;;;;; +102BE;CARIAN LETTER ND;Lo;0;L;;;;;N;;;;; +102BF;CARIAN LETTER UU;Lo;0;L;;;;;N;;;;; +102C0;CARIAN LETTER G;Lo;0;L;;;;;N;;;;; +102C1;CARIAN LETTER G2;Lo;0;L;;;;;N;;;;; +102C2;CARIAN LETTER ST;Lo;0;L;;;;;N;;;;; +102C3;CARIAN LETTER ST2;Lo;0;L;;;;;N;;;;; +102C4;CARIAN LETTER NG;Lo;0;L;;;;;N;;;;; +102C5;CARIAN LETTER II;Lo;0;L;;;;;N;;;;; +102C6;CARIAN LETTER C-39;Lo;0;L;;;;;N;;;;; +102C7;CARIAN LETTER TT;Lo;0;L;;;;;N;;;;; +102C8;CARIAN LETTER UUU2;Lo;0;L;;;;;N;;;;; +102C9;CARIAN LETTER RR;Lo;0;L;;;;;N;;;;; +102CA;CARIAN LETTER MB;Lo;0;L;;;;;N;;;;; +102CB;CARIAN LETTER MB2;Lo;0;L;;;;;N;;;;; +102CC;CARIAN LETTER MB3;Lo;0;L;;;;;N;;;;; +102CD;CARIAN LETTER MB4;Lo;0;L;;;;;N;;;;; +102CE;CARIAN LETTER LD2;Lo;0;L;;;;;N;;;;; +102CF;CARIAN LETTER E2;Lo;0;L;;;;;N;;;;; +102D0;CARIAN LETTER UUU3;Lo;0;L;;;;;N;;;;; 10300;OLD ITALIC LETTER A;Lo;0;L;;;;;N;;;;; 10301;OLD ITALIC LETTER BE;Lo;0;L;;;;;N;;;;; 10302;OLD ITALIC LETTER KE;Lo;0;L;;;;;N;;;;; @@ -25243,6 +26687,33 @@ 10918;PHOENICIAN NUMBER TWENTY;No;0;R;;;;20;N;;;;; 10919;PHOENICIAN NUMBER ONE HUNDRED;No;0;R;;;;100;N;;;;; 1091F;PHOENICIAN WORD SEPARATOR;Po;0;ON;;;;;N;;;;; +10920;LYDIAN LETTER A;Lo;0;R;;;;;N;;;;; +10921;LYDIAN LETTER B;Lo;0;R;;;;;N;;;;; +10922;LYDIAN LETTER G;Lo;0;R;;;;;N;;;;; +10923;LYDIAN LETTER D;Lo;0;R;;;;;N;;;;; +10924;LYDIAN LETTER E;Lo;0;R;;;;;N;;;;; +10925;LYDIAN LETTER V;Lo;0;R;;;;;N;;;;; +10926;LYDIAN LETTER I;Lo;0;R;;;;;N;;;;; +10927;LYDIAN LETTER Y;Lo;0;R;;;;;N;;;;; +10928;LYDIAN LETTER K;Lo;0;R;;;;;N;;;;; +10929;LYDIAN LETTER L;Lo;0;R;;;;;N;;;;; +1092A;LYDIAN LETTER M;Lo;0;R;;;;;N;;;;; +1092B;LYDIAN LETTER N;Lo;0;R;;;;;N;;;;; +1092C;LYDIAN LETTER O;Lo;0;R;;;;;N;;;;; +1092D;LYDIAN LETTER R;Lo;0;R;;;;;N;;;;; +1092E;LYDIAN LETTER SS;Lo;0;R;;;;;N;;;;; +1092F;LYDIAN LETTER T;Lo;0;R;;;;;N;;;;; +10930;LYDIAN LETTER U;Lo;0;R;;;;;N;;;;; +10931;LYDIAN LETTER F;Lo;0;R;;;;;N;;;;; +10932;LYDIAN LETTER Q;Lo;0;R;;;;;N;;;;; +10933;LYDIAN LETTER S;Lo;0;R;;;;;N;;;;; +10934;LYDIAN LETTER TT;Lo;0;R;;;;;N;;;;; +10935;LYDIAN LETTER AN;Lo;0;R;;;;;N;;;;; +10936;LYDIAN LETTER EN;Lo;0;R;;;;;N;;;;; +10937;LYDIAN LETTER LY;Lo;0;R;;;;;N;;;;; +10938;LYDIAN LETTER NN;Lo;0;R;;;;;N;;;;; +10939;LYDIAN LETTER C;Lo;0;R;;;;;N;;;;; +1093F;LYDIAN TRIANGULAR MARK;Po;0;R;;;;;N;;;;; 10A00;KHAROSHTHI LETTER A;Lo;0;R;;;;;N;;;;; 10A01;KHAROSHTHI VOWEL SIGN I;Mn;0;NSM;;;;;N;;;;; 10A02;KHAROSHTHI VOWEL SIGN U;Mn;0;NSM;;;;;N;;;;; @@ -26575,6 +28046,7 @@ 1D124;MUSICAL SYMBOL F CLEF OTTAVA BASSA;So;0;L;;;;;N;;;;; 1D125;MUSICAL SYMBOL DRUM CLEF-1;So;0;L;;;;;N;;;;; 1D126;MUSICAL SYMBOL DRUM CLEF-2;So;0;L;;;;;N;;;;; +1D129;MUSICAL SYMBOL MULTIPLE MEASURE REST;So;0;L;;;;;N;;;;; 1D12A;MUSICAL SYMBOL DOUBLE SHARP;So;0;L;;;;;N;;;;; 1D12B;MUSICAL SYMBOL DOUBLE FLAT;So;0;L;;;;;N;;;;; 1D12C;MUSICAL SYMBOL FLAT UP;So;0;L;;;;;N;;;;; @@ -27926,6 +29398,150 @@ 1D7FD;MATHEMATICAL MONOSPACE DIGIT SEVEN;Nd;0;EN; 0037;7;7;7;N;;;;; 1D7FE;MATHEMATICAL MONOSPACE DIGIT EIGHT;Nd;0;EN; 0038;8;8;8;N;;;;; 1D7FF;MATHEMATICAL MONOSPACE DIGIT NINE;Nd;0;EN; 0039;9;9;9;N;;;;; +1F000;MAHJONG TILE EAST WIND;So;0;ON;;;;;N;;;;; +1F001;MAHJONG TILE SOUTH WIND;So;0;ON;;;;;N;;;;; +1F002;MAHJONG TILE WEST WIND;So;0;ON;;;;;N;;;;; +1F003;MAHJONG TILE NORTH WIND;So;0;ON;;;;;N;;;;; +1F004;MAHJONG TILE RED DRAGON;So;0;ON;;;;;N;;;;; +1F005;MAHJONG TILE GREEN DRAGON;So;0;ON;;;;;N;;;;; +1F006;MAHJONG TILE WHITE DRAGON;So;0;ON;;;;;N;;;;; +1F007;MAHJONG TILE ONE OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F008;MAHJONG TILE TWO OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F009;MAHJONG TILE THREE OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00A;MAHJONG TILE FOUR OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00B;MAHJONG TILE FIVE OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00C;MAHJONG TILE SIX OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00D;MAHJONG TILE SEVEN OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00E;MAHJONG TILE EIGHT OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F00F;MAHJONG TILE NINE OF CHARACTERS;So;0;ON;;;;;N;;;;; +1F010;MAHJONG TILE ONE OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F011;MAHJONG TILE TWO OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F012;MAHJONG TILE THREE OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F013;MAHJONG TILE FOUR OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F014;MAHJONG TILE FIVE OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F015;MAHJONG TILE SIX OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F016;MAHJONG TILE SEVEN OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F017;MAHJONG TILE EIGHT OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F018;MAHJONG TILE NINE OF BAMBOOS;So;0;ON;;;;;N;;;;; +1F019;MAHJONG TILE ONE OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01A;MAHJONG TILE TWO OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01B;MAHJONG TILE THREE OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01C;MAHJONG TILE FOUR OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01D;MAHJONG TILE FIVE OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01E;MAHJONG TILE SIX OF CIRCLES;So;0;ON;;;;;N;;;;; +1F01F;MAHJONG TILE SEVEN OF CIRCLES;So;0;ON;;;;;N;;;;; +1F020;MAHJONG TILE EIGHT OF CIRCLES;So;0;ON;;;;;N;;;;; +1F021;MAHJONG TILE NINE OF CIRCLES;So;0;ON;;;;;N;;;;; +1F022;MAHJONG TILE PLUM;So;0;ON;;;;;N;;;;; +1F023;MAHJONG TILE ORCHID;So;0;ON;;;;;N;;;;; +1F024;MAHJONG TILE BAMBOO;So;0;ON;;;;;N;;;;; +1F025;MAHJONG TILE CHRYSANTHEMUM;So;0;ON;;;;;N;;;;; +1F026;MAHJONG TILE SPRING;So;0;ON;;;;;N;;;;; +1F027;MAHJONG TILE SUMMER;So;0;ON;;;;;N;;;;; +1F028;MAHJONG TILE AUTUMN;So;0;ON;;;;;N;;;;; +1F029;MAHJONG TILE WINTER;So;0;ON;;;;;N;;;;; +1F02A;MAHJONG TILE JOKER;So;0;ON;;;;;N;;;;; +1F02B;MAHJONG TILE BACK;So;0;ON;;;;;N;;;;; +1F030;DOMINO TILE HORIZONTAL BACK;So;0;ON;;;;;N;;;;; +1F031;DOMINO TILE HORIZONTAL-00-00;So;0;ON;;;;;N;;;;; +1F032;DOMINO TILE HORIZONTAL-00-01;So;0;ON;;;;;N;;;;; +1F033;DOMINO TILE HORIZONTAL-00-02;So;0;ON;;;;;N;;;;; +1F034;DOMINO TILE HORIZONTAL-00-03;So;0;ON;;;;;N;;;;; +1F035;DOMINO TILE HORIZONTAL-00-04;So;0;ON;;;;;N;;;;; +1F036;DOMINO TILE HORIZONTAL-00-05;So;0;ON;;;;;N;;;;; +1F037;DOMINO TILE HORIZONTAL-00-06;So;0;ON;;;;;N;;;;; +1F038;DOMINO TILE HORIZONTAL-01-00;So;0;ON;;;;;N;;;;; +1F039;DOMINO TILE HORIZONTAL-01-01;So;0;ON;;;;;N;;;;; +1F03A;DOMINO TILE HORIZONTAL-01-02;So;0;ON;;;;;N;;;;; +1F03B;DOMINO TILE HORIZONTAL-01-03;So;0;ON;;;;;N;;;;; +1F03C;DOMINO TILE HORIZONTAL-01-04;So;0;ON;;;;;N;;;;; +1F03D;DOMINO TILE HORIZONTAL-01-05;So;0;ON;;;;;N;;;;; +1F03E;DOMINO TILE HORIZONTAL-01-06;So;0;ON;;;;;N;;;;; +1F03F;DOMINO TILE HORIZONTAL-02-00;So;0;ON;;;;;N;;;;; +1F040;DOMINO TILE HORIZONTAL-02-01;So;0;ON;;;;;N;;;;; +1F041;DOMINO TILE HORIZONTAL-02-02;So;0;ON;;;;;N;;;;; +1F042;DOMINO TILE HORIZONTAL-02-03;So;0;ON;;;;;N;;;;; +1F043;DOMINO TILE HORIZONTAL-02-04;So;0;ON;;;;;N;;;;; +1F044;DOMINO TILE HORIZONTAL-02-05;So;0;ON;;;;;N;;;;; +1F045;DOMINO TILE HORIZONTAL-02-06;So;0;ON;;;;;N;;;;; +1F046;DOMINO TILE HORIZONTAL-03-00;So;0;ON;;;;;N;;;;; +1F047;DOMINO TILE HORIZONTAL-03-01;So;0;ON;;;;;N;;;;; +1F048;DOMINO TILE HORIZONTAL-03-02;So;0;ON;;;;;N;;;;; +1F049;DOMINO TILE HORIZONTAL-03-03;So;0;ON;;;;;N;;;;; +1F04A;DOMINO TILE HORIZONTAL-03-04;So;0;ON;;;;;N;;;;; +1F04B;DOMINO TILE HORIZONTAL-03-05;So;0;ON;;;;;N;;;;; +1F04C;DOMINO TILE HORIZONTAL-03-06;So;0;ON;;;;;N;;;;; +1F04D;DOMINO TILE HORIZONTAL-04-00;So;0;ON;;;;;N;;;;; +1F04E;DOMINO TILE HORIZONTAL-04-01;So;0;ON;;;;;N;;;;; +1F04F;DOMINO TILE HORIZONTAL-04-02;So;0;ON;;;;;N;;;;; +1F050;DOMINO TILE HORIZONTAL-04-03;So;0;ON;;;;;N;;;;; +1F051;DOMINO TILE HORIZONTAL-04-04;So;0;ON;;;;;N;;;;; +1F052;DOMINO TILE HORIZONTAL-04-05;So;0;ON;;;;;N;;;;; +1F053;DOMINO TILE HORIZONTAL-04-06;So;0;ON;;;;;N;;;;; +1F054;DOMINO TILE HORIZONTAL-05-00;So;0;ON;;;;;N;;;;; +1F055;DOMINO TILE HORIZONTAL-05-01;So;0;ON;;;;;N;;;;; +1F056;DOMINO TILE HORIZONTAL-05-02;So;0;ON;;;;;N;;;;; +1F057;DOMINO TILE HORIZONTAL-05-03;So;0;ON;;;;;N;;;;; +1F058;DOMINO TILE HORIZONTAL-05-04;So;0;ON;;;;;N;;;;; +1F059;DOMINO TILE HORIZONTAL-05-05;So;0;ON;;;;;N;;;;; +1F05A;DOMINO TILE HORIZONTAL-05-06;So;0;ON;;;;;N;;;;; +1F05B;DOMINO TILE HORIZONTAL-06-00;So;0;ON;;;;;N;;;;; +1F05C;DOMINO TILE HORIZONTAL-06-01;So;0;ON;;;;;N;;;;; +1F05D;DOMINO TILE HORIZONTAL-06-02;So;0;ON;;;;;N;;;;; +1F05E;DOMINO TILE HORIZONTAL-06-03;So;0;ON;;;;;N;;;;; +1F05F;DOMINO TILE HORIZONTAL-06-04;So;0;ON;;;;;N;;;;; +1F060;DOMINO TILE HORIZONTAL-06-05;So;0;ON;;;;;N;;;;; +1F061;DOMINO TILE HORIZONTAL-06-06;So;0;ON;;;;;N;;;;; +1F062;DOMINO TILE VERTICAL BACK;So;0;ON;;;;;N;;;;; +1F063;DOMINO TILE VERTICAL-00-00;So;0;ON;;;;;N;;;;; +1F064;DOMINO TILE VERTICAL-00-01;So;0;ON;;;;;N;;;;; +1F065;DOMINO TILE VERTICAL-00-02;So;0;ON;;;;;N;;;;; +1F066;DOMINO TILE VERTICAL-00-03;So;0;ON;;;;;N;;;;; +1F067;DOMINO TILE VERTICAL-00-04;So;0;ON;;;;;N;;;;; +1F068;DOMINO TILE VERTICAL-00-05;So;0;ON;;;;;N;;;;; +1F069;DOMINO TILE VERTICAL-00-06;So;0;ON;;;;;N;;;;; +1F06A;DOMINO TILE VERTICAL-01-00;So;0;ON;;;;;N;;;;; +1F06B;DOMINO TILE VERTICAL-01-01;So;0;ON;;;;;N;;;;; +1F06C;DOMINO TILE VERTICAL-01-02;So;0;ON;;;;;N;;;;; +1F06D;DOMINO TILE VERTICAL-01-03;So;0;ON;;;;;N;;;;; +1F06E;DOMINO TILE VERTICAL-01-04;So;0;ON;;;;;N;;;;; +1F06F;DOMINO TILE VERTICAL-01-05;So;0;ON;;;;;N;;;;; +1F070;DOMINO TILE VERTICAL-01-06;So;0;ON;;;;;N;;;;; +1F071;DOMINO TILE VERTICAL-02-00;So;0;ON;;;;;N;;;;; +1F072;DOMINO TILE VERTICAL-02-01;So;0;ON;;;;;N;;;;; +1F073;DOMINO TILE VERTICAL-02-02;So;0;ON;;;;;N;;;;; +1F074;DOMINO TILE VERTICAL-02-03;So;0;ON;;;;;N;;;;; +1F075;DOMINO TILE VERTICAL-02-04;So;0;ON;;;;;N;;;;; +1F076;DOMINO TILE VERTICAL-02-05;So;0;ON;;;;;N;;;;; +1F077;DOMINO TILE VERTICAL-02-06;So;0;ON;;;;;N;;;;; +1F078;DOMINO TILE VERTICAL-03-00;So;0;ON;;;;;N;;;;; +1F079;DOMINO TILE VERTICAL-03-01;So;0;ON;;;;;N;;;;; +1F07A;DOMINO TILE VERTICAL-03-02;So;0;ON;;;;;N;;;;; +1F07B;DOMINO TILE VERTICAL-03-03;So;0;ON;;;;;N;;;;; +1F07C;DOMINO TILE VERTICAL-03-04;So;0;ON;;;;;N;;;;; +1F07D;DOMINO TILE VERTICAL-03-05;So;0;ON;;;;;N;;;;; +1F07E;DOMINO TILE VERTICAL-03-06;So;0;ON;;;;;N;;;;; +1F07F;DOMINO TILE VERTICAL-04-00;So;0;ON;;;;;N;;;;; +1F080;DOMINO TILE VERTICAL-04-01;So;0;ON;;;;;N;;;;; +1F081;DOMINO TILE VERTICAL-04-02;So;0;ON;;;;;N;;;;; +1F082;DOMINO TILE VERTICAL-04-03;So;0;ON;;;;;N;;;;; +1F083;DOMINO TILE VERTICAL-04-04;So;0;ON;;;;;N;;;;; +1F084;DOMINO TILE VERTICAL-04-05;So;0;ON;;;;;N;;;;; +1F085;DOMINO TILE VERTICAL-04-06;So;0;ON;;;;;N;;;;; +1F086;DOMINO TILE VERTICAL-05-00;So;0;ON;;;;;N;;;;; +1F087;DOMINO TILE VERTICAL-05-01;So;0;ON;;;;;N;;;;; +1F088;DOMINO TILE VERTICAL-05-02;So;0;ON;;;;;N;;;;; +1F089;DOMINO TILE VERTICAL-05-03;So;0;ON;;;;;N;;;;; +1F08A;DOMINO TILE VERTICAL-05-04;So;0;ON;;;;;N;;;;; +1F08B;DOMINO TILE VERTICAL-05-05;So;0;ON;;;;;N;;;;; +1F08C;DOMINO TILE VERTICAL-05-06;So;0;ON;;;;;N;;;;; +1F08D;DOMINO TILE VERTICAL-06-00;So;0;ON;;;;;N;;;;; +1F08E;DOMINO TILE VERTICAL-06-01;So;0;ON;;;;;N;;;;; +1F08F;DOMINO TILE VERTICAL-06-02;So;0;ON;;;;;N;;;;; +1F090;DOMINO TILE VERTICAL-06-03;So;0;ON;;;;;N;;;;; +1F091;DOMINO TILE VERTICAL-06-04;So;0;ON;;;;;N;;;;; +1F092;DOMINO TILE VERTICAL-06-05;So;0;ON;;;;;N;;;;; +1F093;DOMINO TILE VERTICAL-06-06;So;0;ON;;;;;N;;;;; 2F800;CJK COMPATIBILITY IDEOGRAPH-2F800;Lo;0;L;4E3D;;;;N;;;;; 2F801;CJK COMPATIBILITY IDEOGRAPH-2F801;Lo;0;L;4E38;;;;N;;;;; 2F802;CJK COMPATIBILITY IDEOGRAPH-2F802;Lo;0;L;4E41;;;;N;;;;; @@ -28070,7 +29686,7 @@ 2F88D;CJK COMPATIBILITY IDEOGRAPH-2F88D;Lo;0;L;5EB6;;;;N;;;;; 2F88E;CJK COMPATIBILITY IDEOGRAPH-2F88E;Lo;0;L;5ECA;;;;N;;;;; 2F88F;CJK COMPATIBILITY IDEOGRAPH-2F88F;Lo;0;L;2A392;;;;N;;;;; -2F890;CJK COMPATIBILITY IDEOGRAPH-2F890;Lo;0;L;5EFE;;;;N;;;;; +2F890;CJK COMPATIBILITY IDEOGRAPH-2F890;Lo;0;L;5EFE;;;9;N;;;;; 2F891;CJK COMPATIBILITY IDEOGRAPH-2F891;Lo;0;L;22331;;;;N;;;;; 2F892;CJK COMPATIBILITY IDEOGRAPH-2F892;Lo;0;L;22331;;;;N;;;;; 2F893;CJK COMPATIBILITY IDEOGRAPH-2F893;Lo;0;L;8201;;;;N;;;;; diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-cmp.h gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-cmp.h --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-cmp.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-cmp.h 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,97 @@ +/* Test of uN_cmp() functions. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Simon Josefsson and Bruno Haible , 2010. */ + +static void +test_cmp (void) +{ + /* Test equal / not equal distinction. */ + ASSERT (U_CMP (zerosize_ptr (), zerosize_ptr (), 0) == 0); + { + static const UNIT input1[] = { 'f', 'o', 'o', 0 }; + static const UNIT input2[] = { 'f', 'o', 'o', 'b', 'a', 'r', 0 }; + ASSERT (U_CMP (input1, input2, 2) == 0); + ASSERT (U_CMP (input1, input2, 3) == 0); + ASSERT (U_CMP (input1, input2, 4) != 0); + } + { + static const UNIT input1[] = { 'f', 'o', 'o', 0 }; + static const UNIT input2[] = { 'b', 'a', 'r', 0 }; + ASSERT (U_CMP (input1, input2, 1) != 0); + ASSERT (U_CMP (input1, input2, 3) != 0); + } + + /* Test less / equal / greater distinction. */ + { + static const UNIT input1[] = { 'f', 'o', 'o', 0 }; + static const UNIT input2[] = { 'm', 'o', 'o', 0 }; + ASSERT (U_CMP (input1, input2, 4) < 0); + ASSERT (U_CMP (input2, input1, 4) > 0); + } + { + static const UNIT input1[] = { 'o', 'o', 'm', 'p', 'h', 0 }; + static const UNIT input2[] = { 'o', 'o', 'p', 's', 0 }; + ASSERT (U_CMP (input1, input2, 3) < 0); + ASSERT (U_CMP (input2, input1, 3) > 0); + } + { + static const UNIT input1[] = { 'f', 'o', 'o', 0 }; + static const UNIT input2[] = { 'f', 'o', 'o', 'b', 'a', 'r', 0 }; + ASSERT (U_CMP (input1, input2, 4) < 0); + ASSERT (U_CMP (input2, input1, 4) > 0); + } + + /* Some old versions of memcmp were not 8-bit clean. */ + { + static const UNIT input1[] = { 0x40 }; + static const UNIT input2[] = { 0xC2 }; + ASSERT (U_CMP (input1, input2, 1) < 0); + ASSERT (U_CMP (input2, input1, 1) > 0); + } + { + static const UNIT input1[] = { 0xC2 }; + static const UNIT input2[] = { 0xC3 }; + ASSERT (U_CMP (input1, input2, 1) < 0); + ASSERT (U_CMP (input2, input1, 1) > 0); + } + + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes + or more and with at least one buffer not starting on a 4-byte boundary. + William Lewis provided this test program. */ + { + UNIT foo[21]; + UNIT bar[21]; + int i; + for (i = 0; i < 4; i++) + { + UNIT *a = foo + i; + UNIT *b = bar + i; + int j; + for (j = 0; j < 8; j++) + a[j] = '-'; + a[8] = '0'; + for (j = 9; j < 16; j++) + a[j] = '1'; + for (j = 0; j < 8; j++) + b[j] = '-'; + b[8] = '1'; + for (j = 9; j < 16; j++) + b[j] = '0'; + ASSERT (U_CMP (a, b, 16) < 0); + } + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,33 @@ +/* Test of u16_mbtouc() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +#include "test-u16-mbtouc.h" + +int +main () +{ + test_function (u16_mbtouc); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,82 @@ +/* Test of u16_mbtouc() and u16_mbtouc_unsafe() functions. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +static void +test_function (int (*my_u16_mbtouc) (ucs4_t *, const uint16_t *, size_t)) +{ + ucs4_t uc; + int ret; + + /* Test NUL unit input. */ + { + static const uint16_t input[] = { 0 }; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0); + } + + /* Test ISO 646 unit input. */ + { + ucs4_t c; + uint16_t buf[1]; + + for (c = 0; c < 0x80; c++) + { + buf[0] = c; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, buf, 1); + ASSERT (ret == 1); + ASSERT (uc == c); + } + } + + /* Test BMP unit input. */ + { + static const uint16_t input[] = { 0x20AC }; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0x20AC); + } + + /* Test 2-units character input. */ + { + static const uint16_t input[] = { 0xD835, 0xDD1F }; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, input, 2); + ASSERT (ret == 2); + ASSERT (uc == 0x1D51F); + } + + /* Test incomplete/invalid 1-unit input. */ + { + static const uint16_t input[] = { 0xD835 }; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, input, 1); + ASSERT (ret == 1 || ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint16_t input[] = { 0xDD1F }; + uc = 0xBADFACE; + ret = my_u16_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-check.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-check.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-check.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-check.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,188 @@ +/* Test of u8_check() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +int +main () +{ + /* Test empty string. */ + { + static const uint8_t input[] = ""; + ASSERT (u8_check (input, 0) == NULL); + } + + /* Test valid non-empty string. */ + { + static const uint8_t input[] = /* "Данило Шеган" */ + "\320\224\320\260\320\275\320\270\320\273\320\276 \320\250\320\265\320\263\320\260\320\275"; + ASSERT (u8_check (input, sizeof (input) - 1) == NULL); + } + + /* Test out-of-range character with 4 bytes: U+110000. */ + { + static const uint8_t input[] = "\320\224\320\260\364\220\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test out-of-range character with 5 bytes: U+200000. */ + { + static const uint8_t input[] = "\320\224\320\260\370\210\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test out-of-range character with 6 bytes: U+4000000. */ + { + static const uint8_t input[] = "\320\224\320\260\374\204\200\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test invalid lead byte. */ + { + static const uint8_t input[] = "\320\224\320\260\376\200\200\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\377\200\200\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test overlong 2-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\301\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test overlong 3-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\340\200\277"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test overlong 4-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\360\200\277\277"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test invalid bytes in 2-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\302\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == NULL); + } + { + static const uint8_t input[] = "\320\224\320\260\302\100"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\302\300"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test invalid bytes in 3-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\342\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == NULL); + } + { + static const uint8_t input[] = "\320\224\320\260\342\100\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\342\300\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\342\200\100"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\342\200\300"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test invalid bytes in 4-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\362\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == NULL); + } + { + static const uint8_t input[] = "\320\224\320\260\362\100\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\362\300\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\362\200\100\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\362\200\300\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\362\200\200\100"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\362\200\200\300"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test truncated/incomplete 2-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\302"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test truncated/incomplete 3-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\342\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test truncated/incomplete 4-byte character. */ + { + static const uint8_t input[] = "\320\224\320\260\362\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test missing lead byte. */ + { + static const uint8_t input[] = "\320\224\320\260\200\200\200\200\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + /* Test surrogate codepoints. */ + { + static const uint8_t input[] = "\320\224\320\260\355\240\200\355\260\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + { + static const uint8_t input[] = "\320\224\320\260\355\260\200"; + ASSERT (u8_check (input, sizeof (input) - 1) == input + 4); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,45 @@ +/* Test of u8_cmp() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "zerosize-ptr.h" +#include "macros.h" + +#define UNIT uint8_t +#define U_CMP u8_cmp +#define MAGIC 0xBA +#include "test-cmp.h" + +int +main () +{ + test_cmp (); + + /* Test comparison with non-BMP characters. */ + { + static const UNIT input1[] = { 0xF0, 0x9D, 0x94, 0x9E }; + static const UNIT input2[] = { 0xEF, 0xBB, 0xBF, 0x00 }; + ASSERT (U_CMP (input1, input2, 4) > 0); + ASSERT (U_CMP (input2, input1, 4) < 0); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,155 @@ +/* Test of u8_mblen() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +int +main () +{ + int ret; + + /* Test zero-length input. */ + { + static const uint8_t input[] = ""; + ret = u8_mblen (input, 0); + ASSERT (ret == -1); + } + + /* Test NUL unit input. */ + { + static const uint8_t input[] = ""; + ret = u8_mblen (input, 1); + ASSERT (ret == 0); + } + + /* Test ISO 646 unit input. */ + { + ucs4_t c; + uint8_t buf[1]; + + for (c = 1; c < 0x80; c++) + { + buf[0] = c; + ret = u8_mblen (buf, 1); + ASSERT (ret == 1); + } + } + + /* Test 2-byte character input. */ + { + static const uint8_t input[] = { 0xC3, 0x97 }; + ret = u8_mblen (input, 2); + ASSERT (ret == 2); + } + + /* Test 3-byte character input. */ + { + static const uint8_t input[] = { 0xE2, 0x82, 0xAC }; + ret = u8_mblen (input, 3); + ASSERT (ret == 3); + } + + /* Test 4-byte character input. */ + { + static const uint8_t input[] = { 0xF4, 0x8F, 0xBF, 0xBD }; + ret = u8_mblen (input, 4); + ASSERT (ret == 4); + } + + /* Test incomplete/invalid 1-byte input. */ + { + static const uint8_t input[] = { 0xC1 }; + ret = u8_mblen (input, 1); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xC3 }; + ret = u8_mblen (input, 1); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xE2 }; + ret = u8_mblen (input, 1); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF4 }; + ret = u8_mblen (input, 1); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xFE }; + ret = u8_mblen (input, 1); + ASSERT (ret == -1); + } + + /* Test incomplete/invalid 2-byte input. */ + { + static const uint8_t input[] = { 0xE0, 0x9F }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xE2, 0x82 }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xE2, 0xD0 }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF0, 0x8F }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF3, 0x8F }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF3, 0xD0 }; + ret = u8_mblen (input, 2); + ASSERT (ret == -1); + } + + /* Test incomplete/invalid 3-byte input. */ + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xBF }; + ret = u8_mblen (input, 3); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF3, 0xD0, 0xBF }; + ret = u8_mblen (input, 3); + ASSERT (ret == -1); + } + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xD0 }; + ret = u8_mblen (input, 3); + ASSERT (ret == -1); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,33 @@ +/* Test of u8_mbtouc() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +#include "test-u8-mbtouc.h" + +int +main () +{ + test_function (u8_mbtouc); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.h gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.h --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc.h 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,179 @@ +/* Test of u8_mbtouc() and u8_mbtouc_unsafe() functions. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +static void +test_function (int (*my_u8_mbtouc) (ucs4_t *, const uint8_t *, size_t)) +{ + ucs4_t uc; + int ret; + + /* Test NUL unit input. */ + { + static const uint8_t input[] = ""; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0); + } + + /* Test ISO 646 unit input. */ + { + ucs4_t c; + uint8_t buf[1]; + + for (c = 0; c < 0x80; c++) + { + buf[0] = c; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, buf, 1); + ASSERT (ret == 1); + ASSERT (uc == c); + } + } + + /* Test 2-byte character input. */ + { + static const uint8_t input[] = { 0xC3, 0x97 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 2); + ASSERT (uc == 0x00D7); + } + + /* Test 3-byte character input. */ + { + static const uint8_t input[] = { 0xE2, 0x82, 0xAC }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 3); + ASSERT (ret == 3); + ASSERT (uc == 0x20AC); + } + + /* Test 4-byte character input. */ + { + static const uint8_t input[] = { 0xF4, 0x8F, 0xBF, 0xBD }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 4); + ASSERT (ret == 4); + ASSERT (uc == 0x10FFFD); + } + + /* Test incomplete/invalid 1-byte input. */ + { + static const uint8_t input[] = { 0xC1 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xC3 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF4 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xFE }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0xFFFD); + } + + /* Test incomplete/invalid 2-byte input. */ + { + static const uint8_t input[] = { 0xE0, 0x9F }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 1 || ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2, 0x82 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2, 0xD0 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 1 || ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF0, 0x8F }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 1 || ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0x8F }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0xD0 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 2); + ASSERT (ret == 1 || ret == 2); + ASSERT (uc == 0xFFFD); + } + + /* Test incomplete/invalid 3-byte input. */ + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xBF }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 3); + ASSERT (ret == 3); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0xD0, 0xBF }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 3); + ASSERT (ret == 1 || ret == 3); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xD0 }; + uc = 0xBADFACE; + ret = my_u8_mbtouc (&uc, input, 3); + ASSERT (ret == 1 || ret == 3); + ASSERT (uc == 0xFFFD); + } +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,187 @@ +/* Test of u8_mbtoucr() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +int +main () +{ + ucs4_t uc; + int ret; + + /* Test NUL unit input. */ + { + static const uint8_t input[] = ""; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == 1); + ASSERT (uc == 0); + } + + /* Test ISO 646 unit input. */ + { + ucs4_t c; + uint8_t buf[1]; + + for (c = 0; c < 0x80; c++) + { + buf[0] = c; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, buf, 1); + ASSERT (ret == 1); + ASSERT (uc == c); + } + } + + /* Test 2-byte character input. */ + { + static const uint8_t input[] = { 0xC3, 0x97 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == 2); + ASSERT (uc == 0x00D7); + } + + /* Test 3-byte character input. */ + { + static const uint8_t input[] = { 0xE2, 0x82, 0xAC }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 3); + ASSERT (ret == 3); + ASSERT (uc == 0x20AC); + } + + /* Test 4-byte character input. */ + { + static const uint8_t input[] = { 0xF4, 0x8F, 0xBF, 0xBD }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 4); + ASSERT (ret == 4); + ASSERT (uc == 0x10FFFD); + } + + /* Test incomplete/invalid 1-byte input. */ + { + static const uint8_t input[] = { 0xC1 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xC3 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF4 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xFE }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 1); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + + /* Test incomplete/invalid 2-byte input. */ + { + static const uint8_t input[] = { 0xE0, 0x9F }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2, 0x82 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xE2, 0xD0 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF0, 0x8F }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0x8F }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0xD0 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 2); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + + /* Test incomplete/invalid 3-byte input. */ + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xBF }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 3); + ASSERT (ret == -2); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0xD0, 0xBF }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 3); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xD0 }; + uc = 0xBADFACE; + ret = u8_mbtoucr (&uc, input, 3); + ASSERT (ret == -1); + ASSERT (uc == 0xFFFD); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc-unsafe.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc-unsafe.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc-unsafe.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-mbtouc-unsafe.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,33 @@ +/* Test of u8_mbtouc_unsafe() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +#include "test-u8-mbtouc.h" + +int +main () +{ + test_function (u8_mbtouc_unsafe); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-prev.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-prev.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-prev.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-prev.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,315 @@ +/* Test of u8_prev() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +static int +check (const uint8_t *input, size_t input_length, ucs4_t *puc) +{ + ucs4_t uc; + + /* Test recognition when at the beginning of the string. */ + if (u8_prev (&uc, input + input_length, input) != input) + return 1; + + /* Test recognition when preceded by a 1-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + ucs4_t uc1; + + ptr = buf; + *ptr++ = 'x'; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + if (u8_prev (&uc1, ptr + input_length, buf) != ptr) + return 2; + if (uc1 != uc) + return 3; + } + + /* Test recognition when preceded by a 2-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + ucs4_t uc1; + + ptr = buf; + *ptr++ = 0xC3; + *ptr++ = 0x97; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + if (u8_prev (&uc1, ptr + input_length, buf) != ptr) + return 4; + if (uc1 != uc) + return 5; + } + + /* Test recognition when preceded by a 3-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + ucs4_t uc1; + + ptr = buf; + *ptr++ = 0xE2; + *ptr++ = 0x84; + *ptr++ = 0x82; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + if (u8_prev (&uc1, ptr + input_length, buf) != ptr) + return 6; + if (uc1 != uc) + return 7; + } + + /* Test recognition when preceded by a 4-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + ucs4_t uc1; + + ptr = buf; + *ptr++ = 0xF0; + *ptr++ = 0x9D; + *ptr++ = 0x94; + *ptr++ = 0x9E; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + if (u8_prev (&uc1, ptr + input_length, buf) != ptr) + return 8; + if (uc1 != uc) + return 9; + } + + *puc = uc; + return 0; +} + +static int +check_invalid (const uint8_t *input, size_t input_length) +{ + ucs4_t uc; + + /* Test recognition when at the beginning of the string. */ + uc = 0xBADFACE; + if (u8_prev (&uc, input + input_length, input) != NULL) + return 1; + if (uc != 0xBADFACE) + return 2; + + /* Test recognition when preceded by a 1-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + + ptr = buf; + *ptr++ = 'x'; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + uc = 0xBADFACE; + if (u8_prev (&uc, ptr + input_length, buf) != NULL) + return 3; + if (uc != 0xBADFACE) + return 4; + } + + /* Test recognition when preceded by a 2-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + + ptr = buf; + *ptr++ = 0xC3; + *ptr++ = 0x97; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + uc = 0xBADFACE; + if (u8_prev (&uc, ptr + input_length, buf) != NULL) + return 5; + if (uc != 0xBADFACE) + return 6; + } + + /* Test recognition when preceded by a 3-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + + ptr = buf; + *ptr++ = 0xE2; + *ptr++ = 0x84; + *ptr++ = 0x82; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + uc = 0xBADFACE; + if (u8_prev (&uc, ptr + input_length, buf) != NULL) + return 7; + if (uc != 0xBADFACE) + return 8; + } + + /* Test recognition when preceded by a 4-unit character. */ + { + uint8_t buf[100]; + uint8_t *ptr; + size_t i; + + ptr = buf; + *ptr++ = 0xF0; + *ptr++ = 0x9D; + *ptr++ = 0x94; + *ptr++ = 0x9E; + for (i = 0; i < input_length; i++) + ptr[i] = input[i]; + + uc = 0xBADFACE; + if (u8_prev (&uc, ptr + input_length, buf) != NULL) + return 9; + if (uc != 0xBADFACE) + return 10; + } + + return 0; +} + +int +main () +{ + ucs4_t uc; + + /* Test ISO 646 unit input. */ + { + ucs4_t c; + uint8_t buf[1]; + + for (c = 0; c < 0x80; c++) + { + buf[0] = c; + uc = 0xBADFACE; + ASSERT (check (buf, 1, &uc) == 0); + ASSERT (uc == c); + } + } + + /* Test 2-byte character input. */ + { + static const uint8_t input[] = { 0xC3, 0x97 }; + uc = 0xBADFACE; + ASSERT (check (input, SIZEOF (input), &uc) == 0); + ASSERT (uc == 0x00D7); + } + + /* Test 3-byte character input. */ + { + static const uint8_t input[] = { 0xE2, 0x82, 0xAC }; + uc = 0xBADFACE; + ASSERT (check (input, SIZEOF (input), &uc) == 0); + ASSERT (uc == 0x20AC); + } + + /* Test 4-byte character input. */ + { + static const uint8_t input[] = { 0xF4, 0x8F, 0xBF, 0xBD }; + uc = 0xBADFACE; + ASSERT (check (input, SIZEOF (input), &uc) == 0); + ASSERT (uc == 0x10FFFD); + } + + /* Test incomplete/invalid 1-byte input. */ + { + static const uint8_t input[] = { 0xC1 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xC3 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xE2 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF4 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xFE }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + + /* Test incomplete/invalid 2-byte input. */ + { + static const uint8_t input[] = { 0xE0, 0x9F }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xE2, 0x82 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xE2, 0xD0 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF0, 0x8F }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF3, 0x8F }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF3, 0xD0 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + + /* Test incomplete/invalid 3-byte input. */ + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xBF }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF3, 0xE4, 0xBF }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + { + static const uint8_t input[] = { 0xF3, 0x8F, 0xD0 }; + ASSERT (check_invalid (input, SIZEOF (input)) == 0); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,50 @@ +/* Test of u8_strlen() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +int +main () +{ + /* Empty string. */ + { + static const uint8_t input[] = { 0 }; + ASSERT (u8_strlen (input) == 0); + } + + /* Simple string. */ + { /* "Grüß Gott. Здравствуйте! x=(-b±sqrt(b²-4ac))/(2a) 日本語,中文,한글" */ + static const uint8_t input[] = + { 'G', 'r', 0xC3, 0xBC, 0xC3, 0x9F, ' ', 'G', 'o', 't', 't', '.', ' ', + 0xD0, 0x97, 0xD0, 0xB4, 0xD1, 0x80, 0xD0, 0xB0, 0xD0, 0xB2, 0xD1, 0x81, + 0xD1, 0x82, 0xD0, 0xB2, 0xD1, 0x83, 0xD0, 0xB9, 0xD1, 0x82, 0xD0, 0xB5, + '!', ' ', 'x', '=', '(', '-', 'b', 0xC2, 0xB1, 's', 'q', 'r', 't', '(', + 'b', 0xC2, 0xB2, '-', '4', 'a', 'c', ')', ')', '/', '(', '2', 'a', ')', + ' ', ' ', 0xE6, 0x97, 0xA5, 0xE6, 0x9C, 0xAC, 0xE8, 0xAA, 0x9E, ',', + 0xE4, 0xB8, 0xAD, 0xE6, 0x96, 0x87, ',', + 0xED, 0x95, 0x9C, 0xEA, 0xB8, 0x80, '\0' + }; + ASSERT (u8_strlen (input) == SIZEOF (input) - 1); + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,157 @@ +/* Test of u8_uctomb() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +#define MAGIC 0xBA + +int +main () +{ + /* Test ISO 646 character, in particular the NUL character. */ + { + ucs4_t uc; + + for (uc = 0; uc < 0x80; uc++) + { + uint8_t buf[5] = { MAGIC, MAGIC, MAGIC, MAGIC, MAGIC }; + int ret; + + ret = u8_uctomb (buf, uc, 0); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 1); + ASSERT (ret == 1); + ASSERT (buf[0] == uc); + ASSERT (buf[1] == MAGIC); + } + } + + /* Test 2-byte character. */ + { + ucs4_t uc = 0x00D7; + uint8_t buf[5] = { MAGIC, MAGIC, MAGIC, MAGIC, MAGIC }; + int ret; + + ret = u8_uctomb (buf, uc, 0); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 1); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 2); + ASSERT (ret == 2); + ASSERT (buf[0] == 0xC3); + ASSERT (buf[1] == 0x97); + ASSERT (buf[2] == MAGIC); + } + + /* Test 3-byte character. */ + { + ucs4_t uc = 0x20AC; + uint8_t buf[5] = { MAGIC, MAGIC, MAGIC, MAGIC, MAGIC }; + int ret; + + ret = u8_uctomb (buf, uc, 0); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 1); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 2); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + ASSERT (buf[1] == MAGIC); + + ret = u8_uctomb (buf, uc, 3); + ASSERT (ret == 3); + ASSERT (buf[0] == 0xE2); + ASSERT (buf[1] == 0x82); + ASSERT (buf[2] == 0xAC); + ASSERT (buf[3] == MAGIC); + } + + /* Test 4-byte character. */ + { + ucs4_t uc = 0x10FFFD; + uint8_t buf[5] = { MAGIC, MAGIC, MAGIC, MAGIC, MAGIC }; + int ret; + + ret = u8_uctomb (buf, uc, 0); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 1); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + + ret = u8_uctomb (buf, uc, 2); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + ASSERT (buf[1] == MAGIC); + + ret = u8_uctomb (buf, uc, 3); + ASSERT (ret == -2); + ASSERT (buf[0] == MAGIC); + ASSERT (buf[1] == MAGIC); + ASSERT (buf[2] == MAGIC); + + ret = u8_uctomb (buf, uc, 4); + ASSERT (ret == 4); + ASSERT (buf[0] == 0xF4); + ASSERT (buf[1] == 0x8F); + ASSERT (buf[2] == 0xBF); + ASSERT (buf[3] == 0xBD); + ASSERT (buf[4] == MAGIC); + } + + /* Test invalid characters. */ + { + ucs4_t invalid[] = { 0x110000, 0xD800, 0xDBFF, 0xDC00, 0xDFFF }; + uint8_t buf[5] = { MAGIC, MAGIC, MAGIC, MAGIC, MAGIC }; + size_t i; + + for (i = 0; i < SIZEOF (invalid); i++) + { + ucs4_t uc = invalid[i]; + int n; + + for (n = 0; n <= 4; n++) + { + int ret = u8_uctomb (buf, uc, n); + ASSERT (ret == -1); + ASSERT (buf[0] == MAGIC); + ASSERT (buf[1] == MAGIC); + ASSERT (buf[2] == MAGIC); + ASSERT (buf[3] == MAGIC); + ASSERT (buf[4] == MAGIC); + } + } + } + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/u8-cmp.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/u8-cmp.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/u8-cmp.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/u8-cmp.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,30 @@ +/* Compare pieces of UTF-8 strings. + Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +#include + +int +u8_cmp (const uint8_t *s1, const uint8_t *s2, size_t n) +{ + /* Use the fact that the UTF-8 encoding preserves lexicographic order. */ + return memcmp ((const char *) s1, (const char *) s2, n); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/unistr/u8-strlen.c gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/u8-strlen.c --- gettext-0.17/gettext-tools/gnulib-tests/unistr/u8-strlen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/unistr/u8-strlen.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,29 @@ +/* Determine length of UTF-8 string. + Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +#include + +size_t +u8_strlen (const uint8_t *s) +{ + return strlen ((const char *) s); +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.c gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.c --- gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.c 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,86 @@ +/* Test of uc_width() function. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2008. */ + +#include + +#include "uniwidth.h" + +#include + +#include "macros.h" + +/* One of 0, '0', '1', 'A', '2'. */ +static char current_width; +/* The interval for which the current_width holds. */ +static ucs4_t current_start; +static ucs4_t current_end; + +static void +finish_interval (void) +{ + if (current_width != 0) + { + if (current_start == current_end) + printf ("%04X\t\t%c\n", (unsigned) current_start, current_width); + else + printf ("%04X..%04X\t%c\n", (unsigned) current_start, + (unsigned) current_end, current_width); + current_width = 0; + } +} + +static void +add_to_interval (ucs4_t uc, char width) +{ + if (current_width == width && uc == current_end + 1) + current_end = uc; + else + { + finish_interval (); + current_width = width; + current_start = current_end = uc; + } +} + +int +main () +{ + ucs4_t uc; + + for (uc = 0; uc < 0x110000; uc++) + { + int w1 = uc_width (uc, "UTF-8"); + int w2 = uc_width (uc, "GBK"); + char width = + (w1 == 0 && w2 == 0 ? '0' : + w1 == 1 && w2 == 1 ? '1' : + w1 == 1 && w2 == 2 ? 'A' : + w1 == 2 && w2 == 2 ? '2' : + 0); + if (width == 0) + { + /* uc must be a control character. */ + ASSERT (w1 < 0 && w2 < 0); + } + else + add_to_interval (uc, width); + } + finish_interval (); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.sh gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.sh --- gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.sh 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width2.sh 2009-07-19 20:29:14.000000000 +0000 @@ -0,0 +1,382 @@ +#!/bin/sh + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles uc_width.out" +./test-uc_width2${EXEEXT} | LC_ALL=C tr -d '\r' > uc_width.out + +tmpfiles="$tmpfiles uc_width.ok" +cat > uc_width.ok <<\EOF +0000 0 +0020..007E 1 +00A0 1 +00A1..00AC A +00AD 0 +00AE..02FF A +0300..036F 0 +0370..0482 A +0483..0489 0 +048A..0590 A +0591..05BD 0 +05BE A +05BF 0 +05C0 A +05C1..05C2 0 +05C3 A +05C4..05C5 0 +05C6 A +05C7 0 +05C8..05FF A +0600..0603 0 +0604..060F A +0610..061A 0 +061B..064A A +064B..065E 0 +065F..066F A +0670 0 +0671..06D5 A +06D6..06E4 0 +06E5..06E6 A +06E7..06E8 0 +06E9 A +06EA..06ED 0 +06EE..070E A +070F 0 +0710 A +0711 0 +0712..072F A +0730..074A 0 +074B..07A5 A +07A6..07B0 0 +07B1..07EA A +07EB..07F3 0 +07F4..0900 A +0901..0902 0 +0903..093B A +093C 0 +093D..0940 A +0941..0948 0 +0949..094C A +094D 0 +094E..0950 A +0951..0954 0 +0955..0961 A +0962..0963 0 +0964..0980 A +0981 0 +0982..09BB A +09BC 0 +09BD..09C0 A +09C1..09C4 0 +09C5..09CC A +09CD 0 +09CE..09E1 A +09E2..09E3 0 +09E4..0A00 A +0A01..0A02 0 +0A03..0A3B A +0A3C 0 +0A3D..0A40 A +0A41..0A42 0 +0A43..0A46 A +0A47..0A48 0 +0A49..0A4A A +0A4B..0A4D 0 +0A4E..0A50 A +0A51 0 +0A52..0A6F A +0A70..0A71 0 +0A72..0A74 A +0A75 0 +0A76..0A80 A +0A81..0A82 0 +0A83..0ABB A +0ABC 0 +0ABD..0AC0 A +0AC1..0AC5 0 +0AC6 A +0AC7..0AC8 0 +0AC9..0ACC A +0ACD 0 +0ACE..0AE1 A +0AE2..0AE3 0 +0AE4..0B00 A +0B01 0 +0B02..0B3B A +0B3C 0 +0B3D..0B3E A +0B3F 0 +0B40 A +0B41..0B44 0 +0B45..0B4C A +0B4D 0 +0B4E..0B55 A +0B56 0 +0B57..0B61 A +0B62..0B63 0 +0B64..0B81 A +0B82 0 +0B83..0BBF A +0BC0 0 +0BC1..0BCC A +0BCD 0 +0BCE..0C3D A +0C3E..0C40 0 +0C41..0C45 A +0C46..0C48 0 +0C49 A +0C4A..0C4D 0 +0C4E..0C54 A +0C55..0C56 0 +0C57..0C61 A +0C62..0C63 0 +0C64..0CBB A +0CBC 0 +0CBD..0CCB A +0CCC..0CCD 0 +0CCE..0CE1 A +0CE2..0CE3 0 +0CE4..0D40 A +0D41..0D44 0 +0D45..0D4C A +0D4D 0 +0D4E..0D61 A +0D62..0D63 0 +0D64..0DC9 A +0DCA 0 +0DCB..0DD1 A +0DD2..0DD4 0 +0DD5 A +0DD6 0 +0DD7..0E30 A +0E31 0 +0E32..0E33 A +0E34..0E3A 0 +0E3B..0E46 A +0E47..0E4E 0 +0E4F..0EB0 A +0EB1 0 +0EB2..0EB3 A +0EB4..0EB9 0 +0EBA A +0EBB..0EBC 0 +0EBD..0EC7 A +0EC8..0ECD 0 +0ECE..0F17 A +0F18..0F19 0 +0F1A..0F34 A +0F35 0 +0F36 A +0F37 0 +0F38 A +0F39 0 +0F3A..0F70 A +0F71..0F7E 0 +0F7F A +0F80..0F84 0 +0F85 A +0F86..0F87 0 +0F88..0F8F A +0F90..0F97 0 +0F98 A +0F99..0FBC 0 +0FBD..0FC5 A +0FC6 0 +0FC7..102C A +102D..1030 0 +1031 A +1032..1037 0 +1038 A +1039..103A 0 +103B..103C A +103D..103E 0 +103F..1057 A +1058..1059 0 +105A..105D A +105E..1060 0 +1061..1070 A +1071..1074 0 +1075..1081 A +1082 0 +1083..1084 A +1085..1086 0 +1087..108C A +108D 0 +108E..10FF A +1100..115F 2 +1160..135E A +135F 0 +1360..1711 A +1712..1714 0 +1715..1731 A +1732..1734 0 +1735..1751 A +1752..1753 0 +1754..1771 A +1772..1773 0 +1774..17B3 A +17B4..17B5 0 +17B6 A +17B7..17BD 0 +17BE..17C5 A +17C6 0 +17C7..17C8 A +17C9..17D3 0 +17D4..17DC A +17DD 0 +17DE..180A A +180B..180D 0 +180E..18A8 A +18A9 0 +18AA..191F A +1920..1922 0 +1923..1926 A +1927..1928 0 +1929..1931 A +1932 0 +1933..1938 A +1939..193B 0 +193C..1A16 A +1A17..1A18 0 +1A19..1AFF A +1B00..1B03 0 +1B04..1B33 A +1B34 0 +1B35 A +1B36..1B3A 0 +1B3B A +1B3C 0 +1B3D..1B41 A +1B42 0 +1B43..1B6A A +1B6B..1B73 0 +1B74..1B7F A +1B80..1B81 0 +1B82..1BA1 A +1BA2..1BA5 0 +1BA6..1BA7 A +1BA8..1BA9 0 +1BAA..1C2B A +1C2C..1C33 0 +1C34..1C35 A +1C36..1C37 0 +1C38..1DBF A +1DC0..1DE6 0 +1DE7..1DFD A +1DFE..1DFF 0 +1E00..200A A +200B..200F 0 +2010..2029 A +202A..202E 0 +202F..205F A +2060..2064 0 +2065..2069 A +206A..206F 0 +2070..20A8 A +20A9 1 +20AA..20CF A +20D0..20F0 0 +20F1..2328 A +2329..232A 2 +232B..2DDF A +2DE0..2DFF 0 +2E00..2E7F A +2E80..3029 2 +302A..302F 0 +3030..303E 2 +303F A +3040..3098 2 +3099..309A 0 +309B..4DBF 2 +4DC0..4DFF A +4E00..A4CF 2 +A4D0..A66E A +A66F..A672 0 +A673..A67B A +A67C..A67D 0 +A67E..A801 A +A802 0 +A803..A805 A +A806 0 +A807..A80A A +A80B 0 +A80C..A824 A +A825..A826 0 +A827..A8C3 A +A8C4 0 +A8C5..A925 A +A926..A92D 0 +A92E..A946 A +A947..A951 0 +A952..AA28 A +AA29..AA2E 0 +AA2F..AA30 A +AA31..AA32 0 +AA33..AA34 A +AA35..AA36 0 +AA37..AA42 A +AA43 0 +AA44..AA4B A +AA4C 0 +AA4D..ABFF A +AC00..D7A3 2 +D7A4..F8FF A +F900..FAFF 2 +FB00..FB1D A +FB1E 0 +FB1F..FDFF A +FE00..FE0F 0 +FE10..FE1F 2 +FE20..FE26 0 +FE27..FE2F A +FE30..FE6F 2 +FE70..FEFE A +FEFF 0 +FF00..FF60 2 +FF61..FFDF 1 +FFE0..FFE6 2 +FFE7..FFF8 1 +FFF9..FFFB 0 +FFFC..101FC 1 +101FD 0 +101FE..10A00 1 +10A01..10A03 0 +10A04 1 +10A05..10A06 0 +10A07..10A0B 1 +10A0C..10A0F 0 +10A10..10A37 1 +10A38..10A3A 0 +10A3B..10A3E 1 +10A3F 0 +10A40..1D166 1 +1D167..1D169 0 +1D16A..1D17A 1 +1D17B..1D182 0 +1D183..1D184 1 +1D185..1D18B 0 +1D18C..1D1A9 1 +1D1AA..1D1AD 0 +1D1AE..1D241 1 +1D242..1D244 0 +1D245..1FFFF 1 +20000..2A6D6 2 +2A6D7..2F7FF 1 +2F800..2FA1D 2 +2FA1E..E0000 1 +E0001 0 +E0002..E001F 1 +E0020..E007F 0 +E0080..E00FF 1 +E0100..E01EF 0 +E01F0..10FFFF 1 +EOF + +: ${DIFF=diff} +${DIFF} uc_width.ok uc_width.out +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width.c gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width.c --- gettext-0.17/gettext-tools/gnulib-tests/uniwidth/test-uc_width.c 2007-10-07 20:29:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/uniwidth/test-uc_width.c 2010-02-16 21:32:29.000000000 +0000 @@ -1,5 +1,5 @@ /* Test of uc_width() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,19 +20,7 @@ #include "uniwidth.h" -#include -#include - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () diff -Nru gettext-0.17/gettext-tools/gnulib-tests/wctob.c gettext-0.18.1.1/gettext-tools/gnulib-tests/wctob.c --- gettext-0.17/gettext-tools/gnulib-tests/wctob.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/wctob.c 2010-05-09 01:37:17.000000000 +0000 @@ -0,0 +1,38 @@ +/* Convert wide character to unibyte character. + Copyright (C) 2008, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +int +wctob (wint_t wc) +{ + char buf[64]; + + if (!(MB_CUR_MAX <= sizeof (buf))) + abort (); + /* Handle the case where WEOF is a value that does not fit in a wchar_t. */ + if (wc == (wchar_t)wc) + if (wctomb (buf, (wchar_t)wc) == 1) + return (unsigned char) buf[0]; + return EOF; +} diff -Nru gettext-0.17/gettext-tools/gnulib-tests/zerosize-ptr.h gettext-0.18.1.1/gettext-tools/gnulib-tests/zerosize-ptr.h --- gettext-0.17/gettext-tools/gnulib-tests/zerosize-ptr.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/gnulib-tests/zerosize-ptr.h 2010-02-16 21:32:29.000000000 +0000 @@ -0,0 +1,68 @@ +/* Return a pointer to a zero-size object in memory. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* ISO C 99 does not allow memcmp(), memchr() etc. to be invoked with a NULL + argument. Therefore this file produces a non-NULL pointer which cannot + be dereferenced, if possible. */ + +#include + +/* Test whether mmap() and mprotect() are available. + We don't use HAVE_MMAP, because AC_FUNC_MMAP would not define it on HP-UX. + HAVE_MPROTECT is not enough, because mingw does not have mmap() but has an + mprotect() function in libgcc.a. */ +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# include +# include +# include +# include +/* Define MAP_FILE when it isn't otherwise. */ +# ifndef MAP_FILE +# define MAP_FILE 0 +# endif +#endif + +/* Return a pointer to a zero-size object in memory (that is, actually, a + pointer to a page boundary where the previous page is readable and writable + and the next page is neither readable not writable), if possible. + Return NULL otherwise. */ + +static void * +zerosize_ptr (void) +{ +/* Use mmap and mprotect when they exist. Don't test HAVE_MMAP, because it is + not defined on HP-UX 11 (since it does not support MAP_FIXED). */ +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT +# if HAVE_MAP_ANONYMOUS + const int flags = MAP_ANONYMOUS | MAP_PRIVATE; + const int fd = -1; +# else /* !HAVE_MAP_ANONYMOUS */ + const int flags = MAP_FILE | MAP_PRIVATE; + int fd = open ("/dev/zero", O_RDONLY, 0666); + if (fd >= 0) +# endif + { + int pagesize = getpagesize (); + char *two_pages = + (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, + flags, fd, 0); + if (two_pages != (char *)(-1) + && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) + return two_pages + pagesize; + } +#endif + return NULL; +} diff -Nru gettext-0.17/gettext-tools/INSTALL gettext-0.18.1.1/gettext-tools/INSTALL --- gettext-0.17/gettext-tools/INSTALL 2006-08-23 17:22:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/INSTALL 2010-06-06 12:49:57.000000000 +0000 @@ -1,8 +1,15 @@ +These are generic installation instructions. + +Prerequisites +============= + + This package depends on a few other packages. They are listed in +the file `DEPENDENCIES'. It is recommended to install the listed +packages before installing this package. + Basic Installation ================== - These are generic installation instructions. - The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. @@ -76,6 +83,20 @@ one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases. You +may have to build one architecture at a time and combine the results +using the 'lipo' tool if you have problems. + Installation Names ================== @@ -99,38 +120,65 @@ with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. -Relocatable Installation -======================== +Enabling Relocatability +======================= - By default, `make install' will install a package with hardwired -file names, and the package will not work correctly when copied or -moved to a different location in the filesystem. - - Some packages pay attention to the `--enable-relocatable' option to -`configure'. This option makes the entire installed package -relocatable. This means, it can be moved or copied to a different -location on the filesystem. It is possible to make symlinks to the -installed and moved programs, and invoke them through the symlink. It -is possible to do the same thing with a hard link _only_ if the hard -linked file is in the same directory as the real program. - - For reliability it is best to give together with --enable-relocatable -a `--prefix' option pointing to an otherwise unused (and never used -again) directory, for example, `--prefix=/tmp/inst$$'. This is -recommended because on some OSes the executables remember the location -of shared libraries (and prefer them over LD_LIBRARY_PATH !), therefore -such an executable will look for its shared libraries first in the -original installation directory and only then in the current -installation directory. - - Installation with `--enable-relocatable' will not work for setuid / -setgid executables. (This is because such an executable kills its -LD_LIBRARY_PATH variable when it is launched.) - - The runtime penalty and size penalty are nearly zero on Linux 2.2 or -newer (just one system call more when an executable is launched), and -small on other systems (the wrapper program just sets an environment -variable and execs the real program). + It has been a pain for many users of GNU packages for a long time +that packages are not relocatable. It means a user cannot copy a +program, installed by another user on the same machine, to his home +directory, and have it work correctly (including i18n). So many users +need to go through `configure; make; make install' with all its +dependencies, options, and hurdles. + + Red Hat, Debian, and similar package systems solve the "ease of +installation" problem, but they hardwire path names, usually to `/usr' +or `/usr/local'. This means that users need root privileges to install +a binary package, and prevents installing two different versions of the +same binary package. + + A relocatable program can be moved or copied to a different location +on the filesystem. It is possible to make symlinks to the installed +and moved programs, and invoke them through the symlink. It is possible +to do the same thing with a hard link _only_ if the hard link file is +in the same directory as the real program. + + To configure a program to be relocatable, add `--enable-relocatable' +to the `configure' command line. + + On some OSes the executables remember the location of shared +libraries and prefer them over any other search path. Therefore, such +an executable will look for its shared libraries first in the original +installation directory and only then in the current installation +directory. Thus, for reliability, it is best to also give a `--prefix' +option pointing to a directory that does not exist now and which never +will be created, e.g. `--prefix=/nonexistent'. You may use +`DESTDIR=DEST-DIR' on the `make' command line to avoid installing into +that directory. + + We do not recommend using a prefix writable by unprivileged users +(e.g. `/tmp/inst$$') because such a directory can be recreated by an +unprivileged user after the original directory has been removed. We +also do not recommend prefixes that might be behind an automounter +(e.g. `$HOME/inst$$') because of the performance impact of directory +searching. + + Here's a sample installation run that takes into account all these +recommendations: + + ./configure --enable-relocatable --prefix=/nonexistent + make + make install DESTDIR=/tmp/inst$$ + + Installation with `--enable-relocatable' will not work for setuid or +setgid executables, because such executables search only system library +paths for security reasons. Also, installation with +`--enable-relocatable' might not work on OpenBSD, when the package +contains shared libraries and libtool versions 1.5.xx are used. + + The runtime penalty and size penalty are negligible on GNU/Linux +(just one system call more when an executable is launched), and small on +other systems (the wrapper program just sets an environment variable +and executes the real program). Optional Features ================= @@ -164,11 +212,14 @@ is not installed, it is recommended to use the following options in order to use an ANSI C compiler: - ./configure CC="cc -Ae" + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" - On OSF/1 a.k.a. Tru64, some versions of the default C compiler don't grok -its header file. The option -nodtk can be used as a workaround. -If GNU CC is not installed, it is therefore recommended to try +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try ./configure CC="cc" @@ -182,6 +233,11 @@ ./configure CC="xlc -D_ALL_SOURCE" + On Haiku, software installed for all users goes in /boot/common, not +/usr/local. It is recommended to use the following options: + + ./configure --prefix=/boot/common + On BeOS, user installed software goes in /boot/home/config, not /usr/local. It is recommended to use the following options: diff -Nru gettext-0.17/gettext-tools/libgettextpo/asnprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/asnprintf.c --- gettext-0.17/gettext-tools/libgettextpo/asnprintf.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/asnprintf.c 2010-02-16 21:33:13.000000000 +0000 @@ -0,0 +1,35 @@ +/* Formatted output to strings. + Copyright (C) 1999, 2002, 2006, 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#include "vasnprintf.h" + +#include + +char * +asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) +{ + va_list args; + char *result; + + va_start (args, format); + result = vasnprintf (resultbuf, lengthp, format, args); + va_end (args); + return result; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/asprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/asprintf.c --- gettext-0.17/gettext-tools/libgettextpo/asprintf.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/asprintf.c 2010-02-16 21:33:13.000000000 +0000 @@ -0,0 +1,40 @@ +/* Formatted output to strings. + Copyright (C) 1999, 2002, 2006-2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Specification. */ +#ifdef IN_LIBASPRINTF +# include "vasprintf.h" +#else +# include +#endif + +#include + +int +asprintf (char **resultp, const char *format, ...) +{ + va_list args; + int result; + + va_start (args, format); + result = vasprintf (resultp, format, args); + va_end (args); + return result; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/basename.c gettext-0.18.1.1/gettext-tools/libgettextpo/basename.c --- gettext-0.17/gettext-tools/libgettextpo/basename.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/basename.c 2010-06-06 12:49:58.000000000 +0000 @@ -66,9 +66,9 @@ for (p = name; *p; p++) { if (ISSLASH (*p)) - base = p + 1; + base = p + 1; else - all_slashes = 0; + all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-ctype.c gettext-0.18.1.1/gettext-tools/libgettextpo/c-ctype.c --- gettext-0.17/gettext-tools/libgettextpo/c-ctype.c 2006-10-20 22:36:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-ctype.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,10 +1,10 @@ /* Character handling in C locale. - Copyright 2000-2003, 2006 Free Software Foundation, Inc. + Copyright 2000-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-ctype.h gettext-0.18.1.1/gettext-tools/libgettextpo/c-ctype.h --- gettext-0.17/gettext-tools/libgettextpo/c-ctype.h 2006-11-05 21:55:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-ctype.h 2010-02-16 21:33:13.000000000 +0000 @@ -5,11 +5,11 @@ functions' behaviour depends on the current locale set via setlocale. - Copyright (C) 2000-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -103,6 +103,21 @@ /* Function declarations. */ +/* Unlike the functions in , which require an argument in the range + of the 'unsigned char' type, the functions here operate on values that are + in the 'unsigned char' range or in the 'char' range. In other words, + when you have a 'char' value, you need to cast it before using it as + argument to a function: + + const char *s = ...; + if (isalpha ((unsigned char) *s)) ... + + but you don't need to cast it for the functions defined in this file: + + const char *s = ...; + if (c_isalpha (*s)) ... + */ + extern bool c_isascii (int c); /* not locale dependent */ extern bool c_isalnum (int c); diff -Nru gettext-0.17/gettext-tools/libgettextpo/ChangeLog gettext-0.18.1.1/gettext-tools/libgettextpo/ChangeLog --- gettext-0.17/gettext-tools/libgettextpo/ChangeLog 2007-11-06 23:27:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/ChangeLog 2010-06-06 17:58:06.000000000 +0000 @@ -1,3 +1,83 @@ +2010-06-06 Bruno Haible + + Avoid link error in programs that use libgettextpo. + * Makefile.am (libgettextpo_la_LIBADD): Add $(LTLIBUNISTRING). + Reported by Dmitry V. Levin . + +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-03 Bruno Haible + + * gettext-po.h.in (LIBGETTEXTPO_VERSION): Bump version number. + * Makefile.am (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 5:1:5. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * gettext-po.h.in (LIBGETTEXTPO_VERSION): Bump version number. + * Makefile.am (LTV_CURRENT, LTV_REVISION, LTV_AGE): Bump to 5:0:5. + * libgettextpo.rc: Update year. + +2009-12-26 Bruno Haible + + * libgettextpo.rc: Update. + +2009-12-12 Bruno Haible + + * gettext-po.h.in: Untabify. + * gettext-po.c: Untabify. + +2009-11-30 Guido Flohr + + * Makefile.am (MOSTLYCLEANDIRS): New variable. + +2009-08-10 Bruno Haible + + * Makefile.am (libgettextpo_la_AUXSOURCES): Add format-gfc-internal.c, + format-qt-plural.c. + +2009-03-25 Bruno Haible + + Fix the handling of Windows resources in shared libraries. + * Makefile.am (WOE32_LIBADD): Renamed from WOE32_LDADD. Use + libgettextpo.res.lo instead of libgettextpo.res. + (libgettextpo.res.lo): Renamed from libgettextpo.res. Use libtool + --tag=RC. + (MOSTLYCLEANFILES): Update. + +2009-01-18 Bruno Haible + + * gettext-po.c (po_message_comments, po_message_extracted_comments): + Update after string_list_join changed. + +2008-10-04 Bruno Haible + + * gettext-po.h.in (po_message_is_range, po_message_set_range): New + declarations. + * gettext-po.c (po_message_is_range, po_message_set_range): New + functions. + (po_message_check_format): Update. + +2008-10-03 Bruno Haible + + * gettext-po.c (po_message_check_format): Update for signature changes + of check_message and check_msgid_msgstr_format. + +2008-07-19 Bruno Haible + + * Makefile.am (EXTRA_DIST): Add gnulib-m4/gnulib-cache.m4. + +2008-05-26 Bruno Haible + + * gettext-po.c (po_header_field, po_header_set_field): Recognize a + field also if there is no space after the ':'. + Reported by Nacho . + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/libgettextpo/concat-filename.c gettext-0.18.1.1/gettext-tools/libgettextpo/concat-filename.c --- gettext-0.17/gettext-tools/libgettextpo/concat-filename.c 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/concat-filename.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,5 +1,5 @@ -/* Construct a full pathname from a directory and a filename. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -19,19 +19,22 @@ #include /* Specification. */ -#include "filename.h" +#include "concat-filename.h" +#include +#include #include -#include "xalloc.h" +#include "filename.h" /* Concatenate a directory filename, a relative filename and an optional suffix. The directory may end with the directory separator. The second argument may not start with the directory separator (it is relative). - Return a freshly allocated filename. */ + Return a freshly allocated filename. Return NULL and set errno + upon memory allocation failure. */ char * concatenated_filename (const char *directory, const char *filename, - const char *suffix) + const char *suffix) { char *result; char *p; @@ -39,27 +42,29 @@ if (strcmp (directory, ".") == 0) { /* No need to prepend the directory. */ - result = XNMALLOC (strlen (filename) - + (suffix != NULL ? strlen (suffix) : 0) - + 1, - char); + result = (char *) malloc (strlen (filename) + + (suffix != NULL ? strlen (suffix) : 0) + + 1); + if (result == NULL) + return NULL; /* errno is set here */ p = result; } else { size_t directory_len = strlen (directory); int need_slash = - (directory_len > FILE_SYSTEM_PREFIX_LEN (directory) - && !ISSLASH (directory[directory_len - 1])); - result = XNMALLOC (directory_len + need_slash - + strlen (filename) - + (suffix != NULL ? strlen (suffix) : 0) - + 1, - char); + (directory_len > FILE_SYSTEM_PREFIX_LEN (directory) + && !ISSLASH (directory[directory_len - 1])); + result = (char *) malloc (directory_len + need_slash + + strlen (filename) + + (suffix != NULL ? strlen (suffix) : 0) + + 1); + if (result == NULL) + return NULL; /* errno is set here */ memcpy (result, directory, directory_len); p = result + directory_len; if (need_slash) - *p++ = '/'; + *p++ = '/'; } p = stpcpy (p, filename); if (suffix != NULL) diff -Nru gettext-0.17/gettext-tools/libgettextpo/concat-filename.h gettext-0.18.1.1/gettext-tools/libgettextpo/concat-filename.h --- gettext-0.17/gettext-tools/libgettextpo/concat-filename.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/concat-filename.h 2010-02-16 21:33:13.000000000 +0000 @@ -0,0 +1,41 @@ +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _CONCAT_FILENAME_H +#define _CONCAT_FILENAME_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Concatenate a directory filename, a relative filename and an optional + suffix. Return a freshly allocated filename. Return NULL and set errno + upon memory allocation failure. */ +extern char *concatenated_filename (const char *directory, + const char *filename, const char *suffix); + +/* Concatenate a directory filename, a relative filename and an optional + suffix. Return a freshly allocated filename. */ +extern char *xconcatenated_filename (const char *directory, + const char *filename, const char *suffix); + + +#ifdef __cplusplus +} +#endif + +#endif /* _CONCAT_FILENAME_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/config.charset gettext-0.18.1.1/gettext-tools/libgettextpo/config.charset --- gettext-0.17/gettext-tools/libgettextpo/config.charset 2006-10-20 22:36:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/config.charset 2010-05-09 01:38:02.000000000 +0000 @@ -1,11 +1,11 @@ #! /bin/sh # Output a system dependent table of character encoding aliases. # -# Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc. +# Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, @@ -30,21 +30,21 @@ # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems -# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin -# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-3 Y glibc solaris -# ISO-8859-4 Y osf solaris freebsd netbsd darwin -# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# ISO-8859-6 Y glibc aix hpux solaris -# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd darwin -# ISO-8859-8 Y glibc aix hpux osf solaris -# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin -# ISO-8859-13 glibc netbsd darwin -# ISO-8859-14 glibc -# ISO-8859-15 glibc aix osf solaris freebsd darwin -# KOI8-R Y glibc solaris freebsd netbsd darwin -# KOI8-U Y glibc freebsd netbsd darwin +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin +# ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-3 Y glibc solaris cygwin +# ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin +# ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin +# ISO-8859-6 Y glibc aix hpux solaris cygwin +# ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin +# ISO-8859-8 Y glibc aix hpux osf solaris cygwin +# ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin +# ISO-8859-13 glibc netbsd openbsd darwin cygwin +# ISO-8859-14 glibc cygwin +# ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin +# KOI8-R Y glibc solaris freebsd netbsd openbsd darwin +# KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos @@ -57,20 +57,21 @@ # CP862 dos # CP864 dos # CP865 dos -# CP866 freebsd netbsd darwin dos +# CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix -# CP932 aix woe32 dos +# CP932 aix cygwin woe32 dos # CP943 aix -# CP949 osf woe32 dos +# CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix +# CP1131 darwin # CP1250 woe32 -# CP1251 glibc solaris netbsd darwin woe32 +# CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 @@ -79,18 +80,20 @@ # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin -# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin +# EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd -# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin -# BIG5-HKSCS glibc solaris -# GBK glibc aix osf solaris woe32 dos -# GB18030 glibc solaris netbsd +# BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin +# BIG5-HKSCS glibc solaris darwin +# GBK glibc aix osf solaris darwin cygwin woe32 dos +# GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 -# TIS-620 glibc aix hpux osf solaris +# TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc -# GEORGIAN-PS glibc +# ARMSCII-8 glibc darwin +# GEORGIAN-PS glibc cygwin +# PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux @@ -99,7 +102,7 @@ # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf -# UTF-8 Y glibc aix hpux osf solaris netbsd darwin +# UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). @@ -120,520 +123,561 @@ # List of references, updated during installation: echo "# Packages using this file: " case "$os" in - linux-gnulibc1*) - # Linux libc5 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - echo "POSIX ASCII" - for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ - en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ - en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ - es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ - et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ - fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ - it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ - sv_FI sv_SE; do - echo "$l ISO-8859-1" - echo "$l.iso-8859-1 ISO-8859-1" - echo "$l.iso-8859-15 ISO-8859-15" - echo "$l.iso-8859-15@euro ISO-8859-15" - echo "$l@euro ISO-8859-15" - echo "$l.cp-437 CP437" - echo "$l.cp-850 CP850" - echo "$l.cp-1252 CP1252" - echo "$l.cp-1252@euro CP1252" - #echo "$l.atari-st ATARI-ST" # not a commonly used encoding - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ - sl_SI sr sr_CS sr_YU; do - echo "$l ISO-8859-2" - echo "$l.iso-8859-2 ISO-8859-2" - echo "$l.cp-852 CP852" - echo "$l.cp-1250 CP1250" - echo "$l.utf-8 UTF-8" - done - for l in mk mk_MK ru ru_RU; do - echo "$l ISO-8859-5" - echo "$l.iso-8859-5 ISO-8859-5" - echo "$l.koi8-r KOI8-R" - echo "$l.cp-866 CP866" - echo "$l.cp-1251 CP1251" - echo "$l.utf-8 UTF-8" - done - for l in ar ar_SA; do - echo "$l ISO-8859-6" - echo "$l.iso-8859-6 ISO-8859-6" - echo "$l.cp-864 CP864" - #echo "$l.cp-868 CP868" # not a commonly used encoding - echo "$l.cp-1256 CP1256" - echo "$l.utf-8 UTF-8" - done - for l in el el_GR gr gr_GR; do - echo "$l ISO-8859-7" - echo "$l.iso-8859-7 ISO-8859-7" - echo "$l.cp-869 CP869" - echo "$l.cp-1253 CP1253" - echo "$l.cp-1253@euro CP1253" - echo "$l.utf-8 UTF-8" - echo "$l.utf-8@euro UTF-8" - done - for l in he he_IL iw iw_IL; do - echo "$l ISO-8859-8" - echo "$l.iso-8859-8 ISO-8859-8" - echo "$l.cp-862 CP862" - echo "$l.cp-1255 CP1255" - echo "$l.utf-8 UTF-8" - done - for l in tr tr_TR; do - echo "$l ISO-8859-9" - echo "$l.iso-8859-9 ISO-8859-9" - echo "$l.cp-857 CP857" - echo "$l.cp-1254 CP1254" - echo "$l.utf-8 UTF-8" - done - for l in lt lt_LT lv lv_LV; do - #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name - echo "$l ISO-8859-13" - done - for l in ru_UA uk uk_UA; do - echo "$l KOI8-U" - done - for l in zh zh_CN; do - #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name - echo "$l GB2312" - done - for l in ja ja_JP ja_JP.EUC; do - echo "$l EUC-JP" - done - for l in ko ko_KR; do - echo "$l EUC-KR" - done - for l in th th_TH; do - echo "$l TIS-620" - done - for l in fa fa_IR; do - #echo "$l ISIRI-3342" # a broken encoding - echo "$l.utf-8 UTF-8" - done - ;; - linux* | *-gnu*) - # With glibc-2.1 or newer, we don't need any canonicalization, - # because glibc has iconv and both glibc and libiconv support all - # GNU canonical names directly. Therefore, the Makefile does not - # need to install the alias file at all. - # The following applies only to glibc-2.0.x and older libcs. - echo "ISO_646.IRV:1983 ASCII" - ;; - aix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "IBM-850 CP850" - echo "IBM-856 CP856" - echo "IBM-921 ISO-8859-13" - echo "IBM-922 CP922" - echo "IBM-932 CP932" - echo "IBM-943 CP943" - echo "IBM-1046 CP1046" - echo "IBM-1124 CP1124" - echo "IBM-1129 CP1129" - echo "IBM-1252 CP1252" - echo "IBM-eucCN GB2312" - echo "IBM-eucJP EUC-JP" - echo "IBM-eucKR EUC-KR" - echo "IBM-eucTW EUC-TW" - echo "big5 BIG5" - echo "GBK GBK" - echo "TIS-620 TIS-620" - echo "UTF-8 UTF-8" - ;; - hpux*) - echo "iso88591 ISO-8859-1" - echo "iso88592 ISO-8859-2" - echo "iso88595 ISO-8859-5" - echo "iso88596 ISO-8859-6" - echo "iso88597 ISO-8859-7" - echo "iso88598 ISO-8859-8" - echo "iso88599 ISO-8859-9" - echo "iso885915 ISO-8859-15" - echo "roman8 HP-ROMAN8" - echo "arabic8 HP-ARABIC8" - echo "greek8 HP-GREEK8" - echo "hebrew8 HP-HEBREW8" - echo "turkish8 HP-TURKISH8" - echo "kana8 HP-KANA8" - echo "tis620 TIS-620" - echo "big5 BIG5" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "hp15CN GB2312" - #echo "ccdc ?" # what is this? - echo "SJIS SHIFT_JIS" - echo "utf8 UTF-8" - ;; - irix*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-9 ISO-8859-9" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - ;; - osf*) - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "cp850 CP850" - echo "big5 BIG5" - echo "dechanyu DEC-HANYU" - echo "dechanzi GB2312" - echo "deckanji DEC-KANJI" - echo "deckorean EUC-KR" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "GBK GBK" - echo "KSC5601 CP949" - echo "sdeckanji EUC-JP" - echo "SJIS SHIFT_JIS" - echo "TACTIS TIS-620" - echo "UTF-8 UTF-8" - ;; - solaris*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-3 ISO-8859-3" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-6 ISO-8859-6" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-8 ISO-8859-8" - echo "ISO8859-9 ISO-8859-9" - echo "ISO8859-15 ISO-8859-15" - echo "koi8-r KOI8-R" - echo "ansi-1251 CP1251" - echo "BIG5 BIG5" - echo "Big5-HKSCS BIG5-HKSCS" - echo "gb2312 GB2312" - echo "GBK GBK" - echo "GB18030 GB18030" - echo "cns11643 EUC-TW" - echo "5601 EUC-KR" - echo "ko_KR.johap92 JOHAB" - echo "eucJP EUC-JP" - echo "PCK SHIFT_JIS" - echo "TIS620.2533 TIS-620" - #echo "sun_eu_greek ?" # what is this? - echo "UTF-8 UTF-8" - ;; - freebsd* | os2*) - # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just - # reuse FreeBSD's locale data for OS/2. - echo "C ASCII" - echo "US-ASCII ASCII" - for l in la_LN lt_LN; do - echo "$l.ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ - lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do - echo "$l.ISO_8859-1 ISO-8859-1" - echo "$l.DIS_8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do - echo "$l.ISO_8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO_8859-4 ISO-8859-4" - done - for l in ru_RU ru_SU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO_8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ja_JP.Shift_JIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - netbsd*) - echo "646 ASCII" - echo "ISO8859-1 ISO-8859-1" - echo "ISO8859-2 ISO-8859-2" - echo "ISO8859-4 ISO-8859-4" - echo "ISO8859-5 ISO-8859-5" - echo "ISO8859-7 ISO-8859-7" - echo "ISO8859-13 ISO-8859-13" - echo "ISO8859-15 ISO-8859-15" - echo "eucCN GB2312" - echo "eucJP EUC-JP" - echo "eucKR EUC-KR" - echo "eucTW EUC-TW" - echo "BIG5 BIG5" - echo "SJIS SHIFT_JIS" - ;; - darwin[56]*) - # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "C ASCII" - for l in en_AU en_CA en_GB en_US la_LN; do - echo "$l.US-ASCII ASCII" - done - for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ - fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ - nl_NL no_NO pt_PT sv_SE; do - echo "$l ISO-8859-1" - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in la_LN; do - echo "$l.ISO8859-1 ISO-8859-1" - echo "$l.ISO8859-15 ISO-8859-15" - done - for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do - echo "$l.ISO8859-2 ISO-8859-2" - done - for l in la_LN lt_LT; do - echo "$l.ISO8859-4 ISO-8859-4" - done - for l in ru_RU; do - echo "$l.KOI8-R KOI8-R" - echo "$l.ISO8859-5 ISO-8859-5" - echo "$l.CP866 CP866" - done - for l in bg_BG; do - echo "$l.CP1251 CP1251" - done - echo "uk_UA.KOI8-U KOI8-U" - echo "zh_TW.BIG5 BIG5" - echo "zh_TW.Big5 BIG5" - echo "zh_CN.EUC GB2312" - echo "ja_JP.EUC EUC-JP" - echo "ja_JP.SJIS SHIFT_JIS" - echo "ko_KR.EUC EUC-KR" - ;; - darwin*) - # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: - # - It returns the empty string when LANG is set to a locale of the - # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 - # LC_CTYPE file. - # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by - # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. - # - The documentation says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # It also says - # "An additional caveat is that string parameters for files, - # paths, and other file-system entities must be in canonical - # UTF-8. In a canonical UTF-8 Unicode string, all decomposable - # characters are decomposed ..." - # but this is not true: You can pass non-decomposed UTF-8 strings - # to file system functions, and it is the OS which will convert - # them to decomposed UTF-8 before accessing the file system. - # - The Apple Terminal application displays UTF-8 by default. - # - However, other applications are free to use different encodings: - # - xterm uses ISO-8859-1 by default. - # - TextEdit uses MacRoman by default. - # We prefer UTF-8 over decomposed UTF-8-MAC because one should - # minimize the use of decomposed Unicode. Unfortunately, through the - # Darwin file system, decomposed UTF-8 strings are leaked into user - # space nevertheless. - echo "* UTF-8" - ;; - beos*) - # BeOS has a single locale, and it has UTF-8 encoding. - echo "* UTF-8" - ;; - msdosdjgpp*) - # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore - # localcharset.c falls back to using the full locale name - # from the environment variables. - echo "#" - echo "# The encodings given here may not all be correct." - echo "# If you find that the encoding given for your language and" - echo "# country is not the one your DOS machine actually uses, just" - echo "# correct it in this file, and send a mail to" - echo "# Juan Manuel Guerrero " - echo "# and Bruno Haible ." - echo "#" - echo "C ASCII" - # ISO-8859-1 languages - echo "ca CP850" - echo "ca_ES CP850" - echo "da CP865" # not CP850 ?? - echo "da_DK CP865" # not CP850 ?? - echo "de CP850" - echo "de_AT CP850" - echo "de_CH CP850" - echo "de_DE CP850" - echo "en CP850" - echo "en_AU CP850" # not CP437 ?? - echo "en_CA CP850" - echo "en_GB CP850" - echo "en_NZ CP437" - echo "en_US CP437" - echo "en_ZA CP850" # not CP437 ?? - echo "es CP850" - echo "es_AR CP850" - echo "es_BO CP850" - echo "es_CL CP850" - echo "es_CO CP850" - echo "es_CR CP850" - echo "es_CU CP850" - echo "es_DO CP850" - echo "es_EC CP850" - echo "es_ES CP850" - echo "es_GT CP850" - echo "es_HN CP850" - echo "es_MX CP850" - echo "es_NI CP850" - echo "es_PA CP850" - echo "es_PY CP850" - echo "es_PE CP850" - echo "es_SV CP850" - echo "es_UY CP850" - echo "es_VE CP850" - echo "et CP850" - echo "et_EE CP850" - echo "eu CP850" - echo "eu_ES CP850" - echo "fi CP850" - echo "fi_FI CP850" - echo "fr CP850" - echo "fr_BE CP850" - echo "fr_CA CP850" - echo "fr_CH CP850" - echo "fr_FR CP850" - echo "ga CP850" - echo "ga_IE CP850" - echo "gd CP850" - echo "gd_GB CP850" - echo "gl CP850" - echo "gl_ES CP850" - echo "id CP850" # not CP437 ?? - echo "id_ID CP850" # not CP437 ?? - echo "is CP861" # not CP850 ?? - echo "is_IS CP861" # not CP850 ?? - echo "it CP850" - echo "it_CH CP850" - echo "it_IT CP850" - echo "lt CP775" - echo "lt_LT CP775" - echo "lv CP775" - echo "lv_LV CP775" - echo "nb CP865" # not CP850 ?? - echo "nb_NO CP865" # not CP850 ?? - echo "nl CP850" - echo "nl_BE CP850" - echo "nl_NL CP850" - echo "nn CP865" # not CP850 ?? - echo "nn_NO CP865" # not CP850 ?? - echo "no CP865" # not CP850 ?? - echo "no_NO CP865" # not CP850 ?? - echo "pt CP850" - echo "pt_BR CP850" - echo "pt_PT CP850" - echo "sv CP850" - echo "sv_SE CP850" - # ISO-8859-2 languages - echo "cs CP852" - echo "cs_CZ CP852" - echo "hr CP852" - echo "hr_HR CP852" - echo "hu CP852" - echo "hu_HU CP852" - echo "pl CP852" - echo "pl_PL CP852" - echo "ro CP852" - echo "ro_RO CP852" - echo "sk CP852" - echo "sk_SK CP852" - echo "sl CP852" - echo "sl_SI CP852" - echo "sq CP852" - echo "sq_AL CP852" - echo "sr CP852" # CP852 or CP866 or CP855 ?? - echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? - echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? - # ISO-8859-3 languages - echo "mt CP850" - echo "mt_MT CP850" - # ISO-8859-5 languages - echo "be CP866" - echo "be_BE CP866" - echo "bg CP866" # not CP855 ?? - echo "bg_BG CP866" # not CP855 ?? - echo "mk CP866" # not CP855 ?? - echo "mk_MK CP866" # not CP855 ?? - echo "ru CP866" - echo "ru_RU CP866" - echo "uk CP1125" - echo "uk_UA CP1125" - # ISO-8859-6 languages - echo "ar CP864" - echo "ar_AE CP864" - echo "ar_DZ CP864" - echo "ar_EG CP864" - echo "ar_IQ CP864" - echo "ar_IR CP864" - echo "ar_JO CP864" - echo "ar_KW CP864" - echo "ar_MA CP864" - echo "ar_OM CP864" - echo "ar_QA CP864" - echo "ar_SA CP864" - echo "ar_SY CP864" - # ISO-8859-7 languages - echo "el CP869" - echo "el_GR CP869" - # ISO-8859-8 languages - echo "he CP862" - echo "he_IL CP862" - # ISO-8859-9 languages - echo "tr CP857" - echo "tr_TR CP857" - # Japanese - echo "ja CP932" - echo "ja_JP CP932" - # Chinese - echo "zh_CN GBK" - echo "zh_TW CP950" # not CP938 ?? - # Korean - echo "kr CP949" # not CP934 ?? - echo "kr_KR CP949" # not CP934 ?? - # Thai - echo "th CP874" - echo "th_TH CP874" - # Other - echo "eo CP850" - echo "eo_EO CP850" - ;; + linux-gnulibc1*) + # Linux libc5 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "POSIX ASCII" + for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ + en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ + en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ + es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ + et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ + fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ + it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ + sv_FI sv_SE; do + echo "$l ISO-8859-1" + echo "$l.iso-8859-1 ISO-8859-1" + echo "$l.iso-8859-15 ISO-8859-15" + echo "$l.iso-8859-15@euro ISO-8859-15" + echo "$l@euro ISO-8859-15" + echo "$l.cp-437 CP437" + echo "$l.cp-850 CP850" + echo "$l.cp-1252 CP1252" + echo "$l.cp-1252@euro CP1252" + #echo "$l.atari-st ATARI-ST" # not a commonly used encoding + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ + sl_SI sr sr_CS sr_YU; do + echo "$l ISO-8859-2" + echo "$l.iso-8859-2 ISO-8859-2" + echo "$l.cp-852 CP852" + echo "$l.cp-1250 CP1250" + echo "$l.utf-8 UTF-8" + done + for l in mk mk_MK ru ru_RU; do + echo "$l ISO-8859-5" + echo "$l.iso-8859-5 ISO-8859-5" + echo "$l.koi8-r KOI8-R" + echo "$l.cp-866 CP866" + echo "$l.cp-1251 CP1251" + echo "$l.utf-8 UTF-8" + done + for l in ar ar_SA; do + echo "$l ISO-8859-6" + echo "$l.iso-8859-6 ISO-8859-6" + echo "$l.cp-864 CP864" + #echo "$l.cp-868 CP868" # not a commonly used encoding + echo "$l.cp-1256 CP1256" + echo "$l.utf-8 UTF-8" + done + for l in el el_GR gr gr_GR; do + echo "$l ISO-8859-7" + echo "$l.iso-8859-7 ISO-8859-7" + echo "$l.cp-869 CP869" + echo "$l.cp-1253 CP1253" + echo "$l.cp-1253@euro CP1253" + echo "$l.utf-8 UTF-8" + echo "$l.utf-8@euro UTF-8" + done + for l in he he_IL iw iw_IL; do + echo "$l ISO-8859-8" + echo "$l.iso-8859-8 ISO-8859-8" + echo "$l.cp-862 CP862" + echo "$l.cp-1255 CP1255" + echo "$l.utf-8 UTF-8" + done + for l in tr tr_TR; do + echo "$l ISO-8859-9" + echo "$l.iso-8859-9 ISO-8859-9" + echo "$l.cp-857 CP857" + echo "$l.cp-1254 CP1254" + echo "$l.utf-8 UTF-8" + done + for l in lt lt_LT lv lv_LV; do + #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name + echo "$l ISO-8859-13" + done + for l in ru_UA uk uk_UA; do + echo "$l KOI8-U" + done + for l in zh zh_CN; do + #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name + echo "$l GB2312" + done + for l in ja ja_JP ja_JP.EUC; do + echo "$l EUC-JP" + done + for l in ko ko_KR; do + echo "$l EUC-KR" + done + for l in th th_TH; do + echo "$l TIS-620" + done + for l in fa fa_IR; do + #echo "$l ISIRI-3342" # a broken encoding + echo "$l.utf-8 UTF-8" + done + ;; + linux* | *-gnu*) + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" + ;; + aix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "IBM-850 CP850" + echo "IBM-856 CP856" + echo "IBM-921 ISO-8859-13" + echo "IBM-922 CP922" + echo "IBM-932 CP932" + echo "IBM-943 CP943" + echo "IBM-1046 CP1046" + echo "IBM-1124 CP1124" + echo "IBM-1129 CP1129" + echo "IBM-1252 CP1252" + echo "IBM-eucCN GB2312" + echo "IBM-eucJP EUC-JP" + echo "IBM-eucKR EUC-KR" + echo "IBM-eucTW EUC-TW" + echo "big5 BIG5" + echo "GBK GBK" + echo "TIS-620 TIS-620" + echo "UTF-8 UTF-8" + ;; + hpux*) + echo "iso88591 ISO-8859-1" + echo "iso88592 ISO-8859-2" + echo "iso88595 ISO-8859-5" + echo "iso88596 ISO-8859-6" + echo "iso88597 ISO-8859-7" + echo "iso88598 ISO-8859-8" + echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" + echo "roman8 HP-ROMAN8" + echo "arabic8 HP-ARABIC8" + echo "greek8 HP-GREEK8" + echo "hebrew8 HP-HEBREW8" + echo "turkish8 HP-TURKISH8" + echo "kana8 HP-KANA8" + echo "tis620 TIS-620" + echo "big5 BIG5" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "hp15CN GB2312" + #echo "ccdc ?" # what is this? + echo "SJIS SHIFT_JIS" + echo "utf8 UTF-8" + ;; + irix*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + ;; + osf*) + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "cp850 CP850" + echo "big5 BIG5" + echo "dechanyu DEC-HANYU" + echo "dechanzi GB2312" + echo "deckanji DEC-KANJI" + echo "deckorean EUC-KR" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "GBK GBK" + echo "KSC5601 CP949" + echo "sdeckanji EUC-JP" + echo "SJIS SHIFT_JIS" + echo "TACTIS TIS-620" + echo "UTF-8 UTF-8" + ;; + solaris*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-3 ISO-8859-3" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-6 ISO-8859-6" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-8 ISO-8859-8" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-15 ISO-8859-15" + echo "koi8-r KOI8-R" + echo "ansi-1251 CP1251" + echo "BIG5 BIG5" + echo "Big5-HKSCS BIG5-HKSCS" + echo "gb2312 GB2312" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "cns11643 EUC-TW" + echo "5601 EUC-KR" + echo "ko_KR.johap92 JOHAB" + echo "eucJP EUC-JP" + echo "PCK SHIFT_JIS" + echo "TIS620.2533 TIS-620" + #echo "sun_eu_greek ?" # what is this? + echo "UTF-8 UTF-8" + ;; + freebsd* | os2*) + # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just + # reuse FreeBSD's locale data for OS/2. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in la_LN lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ + lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO_8859-4 ISO-8859-4" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO_8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ja_JP.Shift_JIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + netbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" + echo "BIG5 BIG5" + echo "SJIS SHIFT_JIS" + ;; + openbsd*) + echo "646 ASCII" + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + ;; + darwin[56]*) + # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + for l in en_AU en_CA en_GB en_US la_LN; do + echo "$l.US-ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ + nl_NL no_NO pt_PT sv_SE; do + echo "$l ISO-8859-1" + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in la_LN; do + echo "$l.ISO8859-1 ISO-8859-1" + echo "$l.ISO8859-15 ISO-8859-15" + done + for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do + echo "$l.ISO8859-2 ISO-8859-2" + done + for l in la_LN lt_LT; do + echo "$l.ISO8859-4 ISO-8859-4" + done + for l in ru_RU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.ISO8859-5 ISO-8859-5" + echo "$l.CP866 CP866" + done + for l in bg_BG; do + echo "$l.CP1251 CP1251" + done + echo "uk_UA.KOI8-U KOI8-U" + echo "zh_TW.BIG5 BIG5" + echo "zh_TW.Big5 BIG5" + echo "zh_CN.EUC GB2312" + echo "ja_JP.EUC EUC-JP" + echo "ja_JP.SJIS SHIFT_JIS" + echo "ko_KR.EUC EUC-KR" + ;; + darwin*) + # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is + # useless: + # - It returns the empty string when LANG is set to a locale of the + # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 + # LC_CTYPE file. + # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by + # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. + # - The documentation says: + # "... all code that calls BSD system routines should ensure + # that the const *char parameters of these routines are in UTF-8 + # encoding. All BSD system functions expect their string + # parameters to be in UTF-8 encoding and nothing else." + # It also says + # "An additional caveat is that string parameters for files, + # paths, and other file-system entities must be in canonical + # UTF-8. In a canonical UTF-8 Unicode string, all decomposable + # characters are decomposed ..." + # but this is not true: You can pass non-decomposed UTF-8 strings + # to file system functions, and it is the OS which will convert + # them to decomposed UTF-8 before accessing the file system. + # - The Apple Terminal application displays UTF-8 by default. + # - However, other applications are free to use different encodings: + # - xterm uses ISO-8859-1 by default. + # - TextEdit uses MacRoman by default. + # We prefer UTF-8 over decomposed UTF-8-MAC because one should + # minimize the use of decomposed Unicode. Unfortunately, through the + # Darwin file system, decomposed UTF-8 strings are leaked into user + # space nevertheless. + # Then there are also the locales with encodings other than US-ASCII + # and UTF-8. These locales can be occasionally useful to users (e.g. + # when grepping through ISO-8859-1 encoded text files), when all their + # file names are in US-ASCII. + echo "ISO8859-1 ISO-8859-1" + echo "ISO8859-2 ISO-8859-2" + echo "ISO8859-4 ISO-8859-4" + echo "ISO8859-5 ISO-8859-5" + echo "ISO8859-7 ISO-8859-7" + echo "ISO8859-9 ISO-8859-9" + echo "ISO8859-13 ISO-8859-13" + echo "ISO8859-15 ISO-8859-15" + echo "KOI8-R KOI8-R" + echo "KOI8-U KOI8-U" + echo "CP866 CP866" + echo "CP949 CP949" + echo "CP1131 CP1131" + echo "CP1251 CP1251" + echo "eucCN GB2312" + echo "GB2312 GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "Big5 BIG5" + echo "Big5HKSCS BIG5-HKSCS" + echo "GBK GBK" + echo "GB18030 GB18030" + echo "SJIS SHIFT_JIS" + echo "ARMSCII-8 ARMSCII-8" + echo "PT154 PT154" + #echo "ISCII-DEV ?" + echo "* UTF-8" + ;; + beos* | haiku*) + # BeOS and Haiku have a single locale, and it has UTF-8 encoding. + echo "* UTF-8" + ;; + msdosdjgpp*) + # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "#" + echo "# The encodings given here may not all be correct." + echo "# If you find that the encoding given for your language and" + echo "# country is not the one your DOS machine actually uses, just" + echo "# correct it in this file, and send a mail to" + echo "# Juan Manuel Guerrero " + echo "# and Bruno Haible ." + echo "#" + echo "C ASCII" + # ISO-8859-1 languages + echo "ca CP850" + echo "ca_ES CP850" + echo "da CP865" # not CP850 ?? + echo "da_DK CP865" # not CP850 ?? + echo "de CP850" + echo "de_AT CP850" + echo "de_CH CP850" + echo "de_DE CP850" + echo "en CP850" + echo "en_AU CP850" # not CP437 ?? + echo "en_CA CP850" + echo "en_GB CP850" + echo "en_NZ CP437" + echo "en_US CP437" + echo "en_ZA CP850" # not CP437 ?? + echo "es CP850" + echo "es_AR CP850" + echo "es_BO CP850" + echo "es_CL CP850" + echo "es_CO CP850" + echo "es_CR CP850" + echo "es_CU CP850" + echo "es_DO CP850" + echo "es_EC CP850" + echo "es_ES CP850" + echo "es_GT CP850" + echo "es_HN CP850" + echo "es_MX CP850" + echo "es_NI CP850" + echo "es_PA CP850" + echo "es_PY CP850" + echo "es_PE CP850" + echo "es_SV CP850" + echo "es_UY CP850" + echo "es_VE CP850" + echo "et CP850" + echo "et_EE CP850" + echo "eu CP850" + echo "eu_ES CP850" + echo "fi CP850" + echo "fi_FI CP850" + echo "fr CP850" + echo "fr_BE CP850" + echo "fr_CA CP850" + echo "fr_CH CP850" + echo "fr_FR CP850" + echo "ga CP850" + echo "ga_IE CP850" + echo "gd CP850" + echo "gd_GB CP850" + echo "gl CP850" + echo "gl_ES CP850" + echo "id CP850" # not CP437 ?? + echo "id_ID CP850" # not CP437 ?? + echo "is CP861" # not CP850 ?? + echo "is_IS CP861" # not CP850 ?? + echo "it CP850" + echo "it_CH CP850" + echo "it_IT CP850" + echo "lt CP775" + echo "lt_LT CP775" + echo "lv CP775" + echo "lv_LV CP775" + echo "nb CP865" # not CP850 ?? + echo "nb_NO CP865" # not CP850 ?? + echo "nl CP850" + echo "nl_BE CP850" + echo "nl_NL CP850" + echo "nn CP865" # not CP850 ?? + echo "nn_NO CP865" # not CP850 ?? + echo "no CP865" # not CP850 ?? + echo "no_NO CP865" # not CP850 ?? + echo "pt CP850" + echo "pt_BR CP850" + echo "pt_PT CP850" + echo "sv CP850" + echo "sv_SE CP850" + # ISO-8859-2 languages + echo "cs CP852" + echo "cs_CZ CP852" + echo "hr CP852" + echo "hr_HR CP852" + echo "hu CP852" + echo "hu_HU CP852" + echo "pl CP852" + echo "pl_PL CP852" + echo "ro CP852" + echo "ro_RO CP852" + echo "sk CP852" + echo "sk_SK CP852" + echo "sl CP852" + echo "sl_SI CP852" + echo "sq CP852" + echo "sq_AL CP852" + echo "sr CP852" # CP852 or CP866 or CP855 ?? + echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? + echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? + # ISO-8859-3 languages + echo "mt CP850" + echo "mt_MT CP850" + # ISO-8859-5 languages + echo "be CP866" + echo "be_BE CP866" + echo "bg CP866" # not CP855 ?? + echo "bg_BG CP866" # not CP855 ?? + echo "mk CP866" # not CP855 ?? + echo "mk_MK CP866" # not CP855 ?? + echo "ru CP866" + echo "ru_RU CP866" + echo "uk CP1125" + echo "uk_UA CP1125" + # ISO-8859-6 languages + echo "ar CP864" + echo "ar_AE CP864" + echo "ar_DZ CP864" + echo "ar_EG CP864" + echo "ar_IQ CP864" + echo "ar_IR CP864" + echo "ar_JO CP864" + echo "ar_KW CP864" + echo "ar_MA CP864" + echo "ar_OM CP864" + echo "ar_QA CP864" + echo "ar_SA CP864" + echo "ar_SY CP864" + # ISO-8859-7 languages + echo "el CP869" + echo "el_GR CP869" + # ISO-8859-8 languages + echo "he CP862" + echo "he_IL CP862" + # ISO-8859-9 languages + echo "tr CP857" + echo "tr_TR CP857" + # Japanese + echo "ja CP932" + echo "ja_JP CP932" + # Chinese + echo "zh_CN GBK" + echo "zh_TW CP950" # not CP938 ?? + # Korean + echo "kr CP949" # not CP934 ?? + echo "kr_KR CP949" # not CP934 ?? + # Thai + echo "th CP874" + echo "th_TH CP874" + # Other + echo "eo CP850" + echo "eo_EO CP850" + ;; esac diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strcasecmp.c gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcasecmp.c --- gettext-0.17/gettext-tools/libgettextpo/c-strcasecmp.c 2006-10-20 22:36:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcasecmp.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strcasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strcaseeq.h gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcaseeq.h --- gettext-0.17/gettext-tools/libgettextpo/c-strcaseeq.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcaseeq.h 2010-02-16 21:33:13.000000000 +0000 @@ -0,0 +1,184 @@ +/* Optimized case-insensitive string comparison in C locale. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include "c-strcase.h" +#include "c-ctype.h" + +/* STRCASEEQ allows to optimize string comparison with a small literal string. + STRCASEEQ (s, "UTF-8", 'U','T','F','-','8',0,0,0,0) + is semantically equivalent to + c_strcasecmp (s, "UTF-8") == 0 + just faster. */ + +/* Help GCC to generate good code for string comparisons with + immediate strings. */ +#if defined (__GNUC__) && defined (__OPTIMIZE__) + +/* Case insensitive comparison of ASCII characters. */ +# if C_CTYPE_ASCII +# define CASEEQ(other,upper) \ + (c_isupper (upper) ? ((other) & ~0x20) == (upper) : (other) == (upper)) +# elif C_CTYPE_CONSECUTIVE_UPPERCASE && C_CTYPE_CONSECUTIVE_LOWERCASE +# define CASEEQ(other,upper) \ + (c_isupper (upper) ? (other) == (upper) || (other) == (upper) - 'A' + 'a' : (other) == (upper)) +# else +# define CASEEQ(other,upper) \ + (c_toupper (other) == (upper)) +# endif + +static inline int +strcaseeq9 (const char *s1, const char *s2) +{ + return c_strcasecmp (s1 + 9, s2 + 9) == 0; +} + +static inline int +strcaseeq8 (const char *s1, const char *s2, char s28) +{ + if (CASEEQ (s1[8], s28)) + { + if (s28 == 0) + return 1; + else + return strcaseeq9 (s1, s2); + } + else + return 0; +} + +static inline int +strcaseeq7 (const char *s1, const char *s2, char s27, char s28) +{ + if (CASEEQ (s1[7], s27)) + { + if (s27 == 0) + return 1; + else + return strcaseeq8 (s1, s2, s28); + } + else + return 0; +} + +static inline int +strcaseeq6 (const char *s1, const char *s2, char s26, char s27, char s28) +{ + if (CASEEQ (s1[6], s26)) + { + if (s26 == 0) + return 1; + else + return strcaseeq7 (s1, s2, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq5 (const char *s1, const char *s2, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[5], s25)) + { + if (s25 == 0) + return 1; + else + return strcaseeq6 (s1, s2, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq4 (const char *s1, const char *s2, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[4], s24)) + { + if (s24 == 0) + return 1; + else + return strcaseeq5 (s1, s2, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq3 (const char *s1, const char *s2, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[3], s23)) + { + if (s23 == 0) + return 1; + else + return strcaseeq4 (s1, s2, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq2 (const char *s1, const char *s2, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[2], s22)) + { + if (s22 == 0) + return 1; + else + return strcaseeq3 (s1, s2, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq1 (const char *s1, const char *s2, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[1], s21)) + { + if (s21 == 0) + return 1; + else + return strcaseeq2 (s1, s2, s22, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +static inline int +strcaseeq0 (const char *s1, const char *s2, char s20, char s21, char s22, char s23, char s24, char s25, char s26, char s27, char s28) +{ + if (CASEEQ (s1[0], s20)) + { + if (s20 == 0) + return 1; + else + return strcaseeq1 (s1, s2, s21, s22, s23, s24, s25, s26, s27, s28); + } + else + return 0; +} + +#define STRCASEEQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ + strcaseeq0 (s1, s2, s20, s21, s22, s23, s24, s25, s26, s27, s28) + +#else + +#define STRCASEEQ(s1,s2,s20,s21,s22,s23,s24,s25,s26,s27,s28) \ + (c_strcasecmp (s1, s2) == 0) + +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strcase.h gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcase.h --- gettext-0.17/gettext-tools/libgettextpo/c-strcase.h 2006-10-20 22:36:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strcase.h 2010-02-16 21:33:13.000000000 +0000 @@ -1,9 +1,10 @@ /* Case-insensitive string comparison functions in C locale. - Copyright (C) 1995-1996, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001, 2003, 2005, 2009-2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strncasecmp.c gettext-0.18.1.1/gettext-tools/libgettextpo/c-strncasecmp.c --- gettext-0.17/gettext-tools/libgettextpo/c-strncasecmp.c 2006-10-20 22:36:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strncasecmp.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,9 +1,9 @@ /* c-strncasecmp.c -- case insensitive string comparator in C locale - Copyright (C) 1998-1999, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1998-1999, 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,7 @@ c2 = c_tolower (*p2); if (--n == 0 || c1 == '\0') - break; + break; ++p1; ++p2; diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strstr.c gettext-0.18.1.1/gettext-tools/libgettextpo/c-strstr.c --- gettext-0.17/gettext-tools/libgettextpo/c-strstr.c 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strstr.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,5 +1,5 @@ /* c-strstr.c -- substring search in C locale - Copyright (C) 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2005, 2007. This program is free software: you can redistribute it and/or modify @@ -20,194 +20,13 @@ /* Specification. */ #include "c-strstr.h" -#include -#include #include -#include "malloca.h" - -/* Knuth-Morris-Pratt algorithm. - See http://en.wikipedia.org/wiki/Knuth-Morris-Pratt_algorithm - Return a boolean indicating success. */ -static bool -knuth_morris_pratt (const char *haystack, const char *needle, - const char **resultp) -{ - size_t m = strlen (needle); - - /* Allocate the table. */ - size_t *table = (size_t *) malloca (m * sizeof (size_t)); - if (table == NULL) - return false; - /* Fill the table. - For 0 < i < m: - 0 < table[i] <= i is defined such that - rhaystack[0..i-1] == needle[0..i-1] and rhaystack[i] != needle[i] - implies - forall 0 <= x < table[i]: rhaystack[x..x+m-1] != needle[0..m-1], - and table[i] is as large as possible with this property. - table[0] remains uninitialized. */ - { - size_t i, j; - - table[1] = 1; - j = 0; - for (i = 2; i < m; i++) - { - unsigned char b = (unsigned char) needle[i - 1]; - - for (;;) - { - if (b == (unsigned char) needle[j]) - { - table[i] = i - ++j; - break; - } - if (j == 0) - { - table[i] = i; - break; - } - j = j - table[j]; - } - } - } - - /* Search, using the table to accelerate the processing. */ - { - size_t j; - const char *rhaystack; - const char *phaystack; - - *resultp = NULL; - j = 0; - rhaystack = haystack; - phaystack = haystack; - /* Invariant: phaystack = rhaystack + j. */ - while (*phaystack != '\0') - if ((unsigned char) needle[j] == (unsigned char) *phaystack) - { - j++; - phaystack++; - if (j == m) - { - /* The entire needle has been found. */ - *resultp = rhaystack; - break; - } - } - else if (j > 0) - { - /* Found a match of needle[0..j-1], mismatch at needle[j]. */ - rhaystack += table[j]; - j -= table[j]; - } - else - { - /* Found a mismatch at needle[0] already. */ - rhaystack++; - phaystack++; - } - } - - freea (table); - return true; -} - /* Find the first occurrence of NEEDLE in HAYSTACK. */ char * c_strstr (const char *haystack, const char *needle) { - /* Be careful not to look at the entire extent of haystack or needle - until needed. This is useful because of these two cases: - - haystack may be very long, and a match of needle found early, - - needle may be very long, and not even a short initial segment of - needle may be found in haystack. */ - if (*needle != '\0') - { - /* Minimizing the worst-case complexity: - Let n = strlen(haystack), m = strlen(needle). - The naïve algorithm is O(n*m) worst-case. - The Knuth-Morris-Pratt algorithm is O(n) worst-case but it needs a - memory allocation. - To achieve linear complexity and yet amortize the cost of the memory - allocation, we activate the Knuth-Morris-Pratt algorithm only once - the naïve algorithm has already run for some time; more precisely, - when - - the outer loop count is >= 10, - - the average number of comparisons per outer loop is >= 5, - - the total number of comparisons is >= m. - But we try it only once. If the memory allocation attempt failed, - we don't retry it. */ - bool try_kmp = true; - size_t outer_loop_count = 0; - size_t comparison_count = 0; - size_t last_ccount = 0; /* last comparison count */ - const char *needle_last_ccount = needle; /* = needle + last_ccount */ - - /* Speed up the following searches of needle by caching its first - character. */ - unsigned char b = (unsigned char) *needle; - - needle++; - for (;; haystack++) - { - if (*haystack == '\0') - /* No match. */ - return NULL; - - /* See whether it's advisable to use an asymptotically faster - algorithm. */ - if (try_kmp - && outer_loop_count >= 10 - && comparison_count >= 5 * outer_loop_count) - { - /* See if needle + comparison_count now reaches the end of - needle. */ - if (needle_last_ccount != NULL) - { - needle_last_ccount += - strnlen (needle_last_ccount, comparison_count - last_ccount); - if (*needle_last_ccount == '\0') - needle_last_ccount = NULL; - last_ccount = comparison_count; - } - if (needle_last_ccount == NULL) - { - /* Try the Knuth-Morris-Pratt algorithm. */ - const char *result; - bool success = - knuth_morris_pratt (haystack, needle - 1, &result); - if (success) - return (char *) result; - try_kmp = false; - } - } - - outer_loop_count++; - comparison_count++; - if ((unsigned char) *haystack == b) - /* The first character matches. */ - { - const char *rhaystack = haystack + 1; - const char *rneedle = needle; - - for (;; rhaystack++, rneedle++) - { - if (*rneedle == '\0') - /* Found a match. */ - return (char *) haystack; - if (*rhaystack == '\0') - /* No match. */ - return NULL; - comparison_count++; - if ((unsigned char) *rhaystack != (unsigned char) *rneedle) - /* Nothing in this round. */ - break; - } - } - } - } - else - return (char *) haystack; + /* POSIX says that strstr() interprets the strings as byte sequences, not + as character sequences in the current locale. */ + return strstr (haystack, needle); } diff -Nru gettext-0.17/gettext-tools/libgettextpo/c-strstr.h gettext-0.18.1.1/gettext-tools/libgettextpo/c-strstr.h --- gettext-0.17/gettext-tools/libgettextpo/c-strstr.h 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/c-strstr.h 2010-02-16 21:33:13.000000000 +0000 @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/libgettextpo/diffseq.h gettext-0.18.1.1/gettext-tools/libgettextpo/diffseq.h --- gettext-0.17/gettext-tools/libgettextpo/diffseq.h 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/diffseq.h 2010-04-25 09:22:38.000000000 +0000 @@ -1,7 +1,7 @@ /* Analyze differences between two vectors. - Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006, 2007 Free - Software Foundation, Inc. + Copyright (C) 1988-1989, 1992-1995, 2001-2004, 2006-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,14 +49,35 @@ EXTRA_CONTEXT_FIELDS Declarations of fields for 'struct context'. NOTE_DELETE(ctxt, xoff) Record the removal of the object xvec[xoff]. NOTE_INSERT(ctxt, yoff) Record the insertion of the object yvec[yoff]. + EARLY_ABORT(ctxt) (Optional) A boolean expression that triggers an + early abort of the computation. USE_HEURISTIC (Optional) Define if you want to support the - heuristic for large vectors. */ + heuristic for large vectors. + It is also possible to use this file with abstract arrays. In this case, + xvec and yvec are not represented in memory. They only exist conceptually. + In this case, the list of defines above is amended as follows: + ELEMENT Undefined. + EQUAL Undefined. + XVECREF_YVECREF_EQUAL(ctxt, xoff, yoff) + A three-argument macro: References xvec[xoff] and + yvec[yoff] and tests these elements for equality. + Before including this file, you also need to include: + #include + #include + #include "minmax.h" + */ /* Maximum value of type OFFSET. */ #define OFFSET_MAX \ ((((OFFSET)1 << (sizeof (OFFSET) * CHAR_BIT - 2)) - 1) * 2 + 1) -/* Use this to suppress gcc's `...may be used before initialized' warnings. */ +/* Default to no early abort. */ +#ifndef EARLY_ABORT +# define EARLY_ABORT(ctxt) false +#endif + +/* Use this to suppress gcc's `...may be used before initialized' warnings. + Beware: The Code argument must not contain commas. */ #ifndef IF_LINT # ifdef lint # define IF_LINT(Code) Code @@ -65,14 +86,25 @@ # endif #endif +/* As above, but when Code must contain one comma. */ +#ifndef IF_LINT2 +# ifdef lint +# define IF_LINT2(Code1, Code2) Code1, Code2 +# else +# define IF_LINT2(Code1, Code2) /* empty */ +# endif +#endif + /* * Context of comparison operation. */ struct context { + #ifdef ELEMENT /* Vectors being compared. */ - const ELEMENT *xvec; - const ELEMENT *yvec; + ELEMENT const *xvec; + ELEMENT const *yvec; + #endif /* Extra fields. */ EXTRA_CONTEXT_FIELDS @@ -146,248 +178,259 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim, bool find_minimal, struct partition *part, struct context *ctxt) { - OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ - OFFSET *const bd = ctxt->bdiag; /* Additional help for the compiler. */ - const ELEMENT *const xv = ctxt->xvec; /* Still more help for the compiler. */ - const ELEMENT *const yv = ctxt->yvec; /* And more and more . . . */ - const OFFSET dmin = xoff - ylim; /* Minimum valid diagonal. */ - const OFFSET dmax = xlim - yoff; /* Maximum valid diagonal. */ - const OFFSET fmid = xoff - yoff; /* Center diagonal of top-down search. */ - const OFFSET bmid = xlim - ylim; /* Center diagonal of bottom-up search. */ + OFFSET *const fd = ctxt->fdiag; /* Give the compiler a chance. */ + OFFSET *const bd = ctxt->bdiag; /* Additional help for the compiler. */ +#ifdef ELEMENT + ELEMENT const *const xv = ctxt->xvec; /* Still more help for the compiler. */ + ELEMENT const *const yv = ctxt->yvec; /* And more and more . . . */ + #define XREF_YREF_EQUAL(x,y) EQUAL (xv[x], yv[y]) +#else + #define XREF_YREF_EQUAL(x,y) XVECREF_YVECREF_EQUAL (ctxt, x, y) +#endif + const OFFSET dmin = xoff - ylim; /* Minimum valid diagonal. */ + const OFFSET dmax = xlim - yoff; /* Maximum valid diagonal. */ + const OFFSET fmid = xoff - yoff; /* Center diagonal of top-down search. */ + const OFFSET bmid = xlim - ylim; /* Center diagonal of bottom-up search. */ OFFSET fmin = fmid; - OFFSET fmax = fmid; /* Limits of top-down search. */ + OFFSET fmax = fmid; /* Limits of top-down search. */ OFFSET bmin = bmid; - OFFSET bmax = bmid; /* Limits of bottom-up search. */ - OFFSET c; /* Cost. */ - bool odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd - diagonal with respect to the northwest. */ + OFFSET bmax = bmid; /* Limits of bottom-up search. */ + OFFSET c; /* Cost. */ + bool odd = (fmid - bmid) & 1; /* True if southeast corner is on an odd + diagonal with respect to the northwest. */ fd[fmid] = xoff; bd[bmid] = xlim; for (c = 1;; ++c) { - OFFSET d; /* Active diagonal. */ + OFFSET d; /* Active diagonal. */ bool big_snake = false; /* Extend the top-down search by an edit step in each diagonal. */ if (fmin > dmin) - fd[--fmin - 1] = -1; + fd[--fmin - 1] = -1; else - ++fmin; + ++fmin; if (fmax < dmax) - fd[++fmax + 1] = -1; + fd[++fmax + 1] = -1; else - --fmax; + --fmax; for (d = fmax; d >= fmin; d -= 2) - { - OFFSET x; - OFFSET y; - OFFSET tlo = fd[d - 1]; - OFFSET thi = fd[d + 1]; - OFFSET x0 = tlo < thi ? thi : tlo + 1; - - for (x = x0, y = x0 - d; - x < xlim && y < ylim && EQUAL (xv[x], yv[y]); - x++, y++) - continue; - if (x - x0 > SNAKE_LIMIT) - big_snake = true; - fd[d] = x; - if (odd && bmin <= d && d <= bmax && bd[d] <= x) - { - part->xmid = x; - part->ymid = y; - part->lo_minimal = part->hi_minimal = true; - return; - } - } + { + OFFSET x; + OFFSET y; + OFFSET tlo = fd[d - 1]; + OFFSET thi = fd[d + 1]; + OFFSET x0 = tlo < thi ? thi : tlo + 1; + + for (x = x0, y = x0 - d; + x < xlim && y < ylim && XREF_YREF_EQUAL (x, y); + x++, y++) + continue; + if (x - x0 > SNAKE_LIMIT) + big_snake = true; + fd[d] = x; + if (odd && bmin <= d && d <= bmax && bd[d] <= x) + { + part->xmid = x; + part->ymid = y; + part->lo_minimal = part->hi_minimal = true; + return; + } + } /* Similarly extend the bottom-up search. */ if (bmin > dmin) - bd[--bmin - 1] = OFFSET_MAX; + bd[--bmin - 1] = OFFSET_MAX; else - ++bmin; + ++bmin; if (bmax < dmax) - bd[++bmax + 1] = OFFSET_MAX; + bd[++bmax + 1] = OFFSET_MAX; else - --bmax; + --bmax; for (d = bmax; d >= bmin; d -= 2) - { - OFFSET x; - OFFSET y; - OFFSET tlo = bd[d - 1]; - OFFSET thi = bd[d + 1]; - OFFSET x0 = tlo < thi ? tlo : thi - 1; - - for (x = x0, y = x0 - d; - xoff < x && yoff < y && EQUAL (xv[x - 1], yv[y - 1]); - x--, y--) - continue; - if (x0 - x > SNAKE_LIMIT) - big_snake = true; - bd[d] = x; - if (!odd && fmin <= d && d <= fmax && x <= fd[d]) - { - part->xmid = x; - part->ymid = y; - part->lo_minimal = part->hi_minimal = true; - return; - } - } + { + OFFSET x; + OFFSET y; + OFFSET tlo = bd[d - 1]; + OFFSET thi = bd[d + 1]; + OFFSET x0 = tlo < thi ? tlo : thi - 1; + + for (x = x0, y = x0 - d; + xoff < x && yoff < y && XREF_YREF_EQUAL (x - 1, y - 1); + x--, y--) + continue; + if (x0 - x > SNAKE_LIMIT) + big_snake = true; + bd[d] = x; + if (!odd && fmin <= d && d <= fmax && x <= fd[d]) + { + part->xmid = x; + part->ymid = y; + part->lo_minimal = part->hi_minimal = true; + return; + } + } if (find_minimal) - continue; + continue; #ifdef USE_HEURISTIC /* Heuristic: check occasionally for a diagonal that has made lots - of progress compared with the edit distance. If we have any - such, find the one that has made the most progress and return it - as if it had succeeded. + of progress compared with the edit distance. If we have any + such, find the one that has made the most progress and return it + as if it had succeeded. - With this heuristic, for vectors with a constant small density - of changes, the algorithm is linear in the vector size. */ + With this heuristic, for vectors with a constant small density + of changes, the algorithm is linear in the vector size. */ if (200 < c && big_snake && ctxt->heuristic) - { - OFFSET best = 0; - - for (d = fmax; d >= fmin; d -= 2) - { - OFFSET dd = d - fmid; - OFFSET x = fd[d]; - OFFSET y = x - d; - OFFSET v = (x - xoff) * 2 - dd; - - if (v > 12 * (c + (dd < 0 ? -dd : dd))) - { - if (v > best - && xoff + SNAKE_LIMIT <= x && x < xlim - && yoff + SNAKE_LIMIT <= y && y < ylim) - { - /* We have a good enough best diagonal; now insist - that it end with a significant snake. */ - int k; - - for (k = 1; EQUAL (xv[x - k], yv[y - k]); k++) - if (k == SNAKE_LIMIT) - { - best = v; - part->xmid = x; - part->ymid = y; - break; - } - } - } - } - if (best > 0) - { - part->lo_minimal = true; - part->hi_minimal = false; - return; - } - - best = 0; - for (d = bmax; d >= bmin; d -= 2) - { - OFFSET dd = d - bmid; - OFFSET x = bd[d]; - OFFSET y = x - d; - OFFSET v = (xlim - x) * 2 + dd; - - if (v > 12 * (c + (dd < 0 ? -dd : dd))) - { - if (v > best - && xoff < x && x <= xlim - SNAKE_LIMIT - && yoff < y && y <= ylim - SNAKE_LIMIT) - { - /* We have a good enough best diagonal; now insist - that it end with a significant snake. */ - int k; - - for (k = 0; EQUAL (xv[x + k], yv[y + k]); k++) - if (k == SNAKE_LIMIT - 1) - { - best = v; - part->xmid = x; - part->ymid = y; - break; - } - } - } - } - if (best > 0) - { - part->lo_minimal = false; - part->hi_minimal = true; - return; - } - } + { + { + OFFSET best = 0; + + for (d = fmax; d >= fmin; d -= 2) + { + OFFSET dd = d - fmid; + OFFSET x = fd[d]; + OFFSET y = x - d; + OFFSET v = (x - xoff) * 2 - dd; + + if (v > 12 * (c + (dd < 0 ? -dd : dd))) + { + if (v > best + && xoff + SNAKE_LIMIT <= x && x < xlim + && yoff + SNAKE_LIMIT <= y && y < ylim) + { + /* We have a good enough best diagonal; now insist + that it end with a significant snake. */ + int k; + + for (k = 1; XREF_YREF_EQUAL (x - k, y - k); k++) + if (k == SNAKE_LIMIT) + { + best = v; + part->xmid = x; + part->ymid = y; + break; + } + } + } + } + if (best > 0) + { + part->lo_minimal = true; + part->hi_minimal = false; + return; + } + } + + { + OFFSET best = 0; + + for (d = bmax; d >= bmin; d -= 2) + { + OFFSET dd = d - bmid; + OFFSET x = bd[d]; + OFFSET y = x - d; + OFFSET v = (xlim - x) * 2 + dd; + + if (v > 12 * (c + (dd < 0 ? -dd : dd))) + { + if (v > best + && xoff < x && x <= xlim - SNAKE_LIMIT + && yoff < y && y <= ylim - SNAKE_LIMIT) + { + /* We have a good enough best diagonal; now insist + that it end with a significant snake. */ + int k; + + for (k = 0; XREF_YREF_EQUAL (x + k, y + k); k++) + if (k == SNAKE_LIMIT - 1) + { + best = v; + part->xmid = x; + part->ymid = y; + break; + } + } + } + } + if (best > 0) + { + part->lo_minimal = false; + part->hi_minimal = true; + return; + } + } + } #endif /* USE_HEURISTIC */ /* Heuristic: if we've gone well beyond the call of duty, give up - and report halfway between our best results so far. */ + and report halfway between our best results so far. */ if (c >= ctxt->too_expensive) - { - OFFSET fxybest; - OFFSET fxbest IF_LINT (= 0); - OFFSET bxybest; - OFFSET bxbest IF_LINT (= 0); - - /* Find forward diagonal that maximizes X + Y. */ - fxybest = -1; - for (d = fmax; d >= fmin; d -= 2) - { - OFFSET x = MIN (fd[d], xlim); - OFFSET y = x - d; - if (ylim < y) - { - x = ylim + d; - y = ylim; - } - if (fxybest < x + y) - { - fxybest = x + y; - fxbest = x; - } - } - - /* Find backward diagonal that minimizes X + Y. */ - bxybest = OFFSET_MAX; - for (d = bmax; d >= bmin; d -= 2) - { - OFFSET x = MAX (xoff, bd[d]); - OFFSET y = x - d; - if (y < yoff) - { - x = yoff + d; - y = yoff; - } - if (x + y < bxybest) - { - bxybest = x + y; - bxbest = x; - } - } - - /* Use the better of the two diagonals. */ - if ((xlim + ylim) - bxybest < fxybest - (xoff + yoff)) - { - part->xmid = fxbest; - part->ymid = fxybest - fxbest; - part->lo_minimal = true; - part->hi_minimal = false; - } - else - { - part->xmid = bxbest; - part->ymid = bxybest - bxbest; - part->lo_minimal = false; - part->hi_minimal = true; - } - return; - } + { + OFFSET fxybest; + OFFSET fxbest IF_LINT (= 0); + OFFSET bxybest; + OFFSET bxbest IF_LINT (= 0); + + /* Find forward diagonal that maximizes X + Y. */ + fxybest = -1; + for (d = fmax; d >= fmin; d -= 2) + { + OFFSET x = MIN (fd[d], xlim); + OFFSET y = x - d; + if (ylim < y) + { + x = ylim + d; + y = ylim; + } + if (fxybest < x + y) + { + fxybest = x + y; + fxbest = x; + } + } + + /* Find backward diagonal that minimizes X + Y. */ + bxybest = OFFSET_MAX; + for (d = bmax; d >= bmin; d -= 2) + { + OFFSET x = MAX (xoff, bd[d]); + OFFSET y = x - d; + if (y < yoff) + { + x = yoff + d; + y = yoff; + } + if (x + y < bxybest) + { + bxybest = x + y; + bxbest = x; + } + } + + /* Use the better of the two diagonals. */ + if ((xlim + ylim) - bxybest < fxybest - (xoff + yoff)) + { + part->xmid = fxbest; + part->ymid = fxybest - fxbest; + part->lo_minimal = true; + part->hi_minimal = false; + } + else + { + part->xmid = bxbest; + part->ymid = bxybest - bxbest; + part->lo_minimal = false; + part->hi_minimal = true; + } + return; + } } + #undef XREF_YREF_EQUAL } @@ -402,24 +445,32 @@ If FIND_MINIMAL, find a minimal difference no matter how expensive it is. - The results are recorded by invoking NOTE_DELETE and NOTE_INSERT. */ + The results are recorded by invoking NOTE_DELETE and NOTE_INSERT. -static void + Return false if terminated normally, or true if terminated through early + abort. */ + +static bool compareseq (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim, - bool find_minimal, struct context *ctxt) + bool find_minimal, struct context *ctxt) { +#ifdef ELEMENT ELEMENT const *xv = ctxt->xvec; /* Help the compiler. */ ELEMENT const *yv = ctxt->yvec; + #define XREF_YREF_EQUAL(x,y) EQUAL (xv[x], yv[y]) +#else + #define XREF_YREF_EQUAL(x,y) XVECREF_YVECREF_EQUAL (ctxt, x, y) +#endif /* Slide down the bottom initial diagonal. */ - while (xoff < xlim && yoff < ylim && EQUAL (xv[xoff], yv[yoff])) + while (xoff < xlim && yoff < ylim && XREF_YREF_EQUAL (xoff, yoff)) { xoff++; yoff++; } /* Slide up the top initial diagonal. */ - while (xoff < xlim && yoff < ylim && EQUAL (xv[xlim - 1], yv[ylim - 1])) + while (xoff < xlim && yoff < ylim && XREF_YREF_EQUAL (xlim - 1, ylim - 1)) { xlim--; ylim--; @@ -429,26 +480,35 @@ if (xoff == xlim) while (yoff < ylim) { - NOTE_INSERT (ctxt, yoff); - yoff++; + NOTE_INSERT (ctxt, yoff); + if (EARLY_ABORT (ctxt)) + return true; + yoff++; } else if (yoff == ylim) while (xoff < xlim) { - NOTE_DELETE (ctxt, xoff); - xoff++; + NOTE_DELETE (ctxt, xoff); + if (EARLY_ABORT (ctxt)) + return true; + xoff++; } else { - struct partition part; + struct partition part IF_LINT2 (= { .xmid = 0, .ymid = 0 }); /* Find a point of correspondence in the middle of the vectors. */ diag (xoff, xlim, yoff, ylim, find_minimal, &part, ctxt); /* Use the partitions to split this problem into subproblems. */ - compareseq (xoff, part.xmid, yoff, part.ymid, part.lo_minimal, ctxt); - compareseq (part.xmid, xlim, part.ymid, ylim, part.hi_minimal, ctxt); + if (compareseq (xoff, part.xmid, yoff, part.ymid, part.lo_minimal, ctxt)) + return true; + if (compareseq (part.xmid, xlim, part.ymid, ylim, part.hi_minimal, ctxt)) + return true; } + + return false; + #undef XREF_YREF_EQUAL } #undef ELEMENT @@ -457,5 +517,7 @@ #undef EXTRA_CONTEXT_FIELDS #undef NOTE_DELETE #undef NOTE_INSERT +#undef EARLY_ABORT #undef USE_HEURISTIC +#undef XVECREF_YVECREF_EQUAL #undef OFFSET_MAX diff -Nru gettext-0.17/gettext-tools/libgettextpo/errno.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/errno.in.h --- gettext-0.17/gettext-tools/libgettextpo/errno.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/errno.in.h 2010-04-25 09:22:38.000000000 +0000 @@ -0,0 +1,160 @@ +/* A POSIX-like . + + Copyright (C) 2008-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_ERRNO_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_ERRNO_H@ + +#ifndef _GL_ERRNO_H +#define _GL_ERRNO_H + + +/* On native Windows platforms, many macros are not defined. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* POSIX says that EAGAIN and EWOULDBLOCK may have the same value. */ +# define EWOULDBLOCK EAGAIN + +/* Values >= 100 seem safe to use. */ +# define ETXTBSY 100 +# define GNULIB_defined_ETXTBSY 1 + +/* These are intentionally the same values as the WSA* error numbers, defined + in . */ +# define EINPROGRESS 10036 +# define EALREADY 10037 +# define ENOTSOCK 10038 +# define EDESTADDRREQ 10039 +# define EMSGSIZE 10040 +# define EPROTOTYPE 10041 +# define ENOPROTOOPT 10042 +# define EPROTONOSUPPORT 10043 +# define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ +# define EOPNOTSUPP 10045 +# define EPFNOSUPPORT 10046 /* not required by POSIX */ +# define EAFNOSUPPORT 10047 +# define EADDRINUSE 10048 +# define EADDRNOTAVAIL 10049 +# define ENETDOWN 10050 +# define ENETUNREACH 10051 +# define ENETRESET 10052 +# define ECONNABORTED 10053 +# define ECONNRESET 10054 +# define ENOBUFS 10055 +# define EISCONN 10056 +# define ENOTCONN 10057 +# define ESHUTDOWN 10058 /* not required by POSIX */ +# define ETOOMANYREFS 10059 /* not required by POSIX */ +# define ETIMEDOUT 10060 +# define ECONNREFUSED 10061 +# define ELOOP 10062 +# define EHOSTDOWN 10064 /* not required by POSIX */ +# define EHOSTUNREACH 10065 +# define EPROCLIM 10067 /* not required by POSIX */ +# define EUSERS 10068 /* not required by POSIX */ +# define EDQUOT 10069 +# define ESTALE 10070 +# define EREMOTE 10071 /* not required by POSIX */ +# define GNULIB_defined_ESOCK 1 + +# endif + + +/* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros + EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ +# if @EMULTIHOP_HIDDEN@ +# define EMULTIHOP @EMULTIHOP_VALUE@ +# define GNULIB_defined_EMULTIHOP 1 +# endif +# if @ENOLINK_HIDDEN@ +# define ENOLINK @ENOLINK_VALUE@ +# define GNULIB_defined_ENOLINK 1 +# endif +# if @EOVERFLOW_HIDDEN@ +# define EOVERFLOW @EOVERFLOW_VALUE@ +# define GNULIB_defined_EOVERFLOW 1 +# endif + + +/* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, + EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. + Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, + HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. + + Note: When one of these systems defines some of these macros some day, + binaries will have to be recompiled so that they recognizes the new + errno values from the system. */ + +# ifndef ENOMSG +# define ENOMSG 2000 +# define GNULIB_defined_ENOMSG 1 +# endif + +# ifndef EIDRM +# define EIDRM 2001 +# define GNULIB_defined_EIDRM 1 +# endif + +# ifndef ENOLINK +# define ENOLINK 2002 +# define GNULIB_defined_ENOLINK 1 +# endif + +# ifndef EPROTO +# define EPROTO 2003 +# define GNULIB_defined_EPROTO 1 +# endif + +# ifndef EMULTIHOP +# define EMULTIHOP 2004 +# define GNULIB_defined_EMULTIHOP 1 +# endif + +# ifndef EBADMSG +# define EBADMSG 2005 +# define GNULIB_defined_EBADMSG 1 +# endif + +# ifndef EOVERFLOW +# define EOVERFLOW 2006 +# define GNULIB_defined_EOVERFLOW 1 +# endif + +# ifndef ENOTSUP +# define ENOTSUP 2007 +# define GNULIB_defined_ENOTSUP 1 +# endif + +# ifndef ESTALE +# define ESTALE 2009 +# define GNULIB_defined_ESTALE 1 +# endif + +# ifndef ECANCELED +# define ECANCELED 2008 +# define GNULIB_defined_ECANCELED 1 +# endif + + +#endif /* _GL_ERRNO_H */ +#endif /* _GL_ERRNO_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/error.c gettext-0.18.1.1/gettext-tools/libgettextpo/error.c --- gettext-0.17/gettext-tools/libgettextpo/error.c 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/error.c 2010-05-09 11:05:00.000000000 +0000 @@ -1,5 +1,5 @@ /* Error handler for noninteractive utilities - Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -70,8 +70,8 @@ extern void __error (int status, int errnum, const char *message, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void __error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, - ...) + unsigned int line_number, const char *message, + ...) __attribute__ ((__format__ (__printf__, 5, 6)));; # define error __error # define error_at_line __error_at_line @@ -85,6 +85,18 @@ #else /* not _LIBC */ +# include +# include + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +/* Get declarations of the Win32 API functions. */ +# define WIN32_LEAN_AND_MEAN +# include +# endif + +/* The gnulib override of fcntl is not needed in this file. */ +# undef fcntl + # if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" @@ -98,8 +110,52 @@ # if HAVE_STRERROR_R || defined strerror_r # define __strerror_r strerror_r -# endif /* HAVE_STRERROR_R || defined strerror_r */ -#endif /* not _LIBC */ +# endif /* HAVE_STRERROR_R || defined strerror_r */ +#endif /* not _LIBC */ + +#if !_LIBC +/* Return non-zero if FD is open. */ +static inline int +is_open (int fd) +{ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On Win32: The initial state of unassigned standard file descriptors is + that they are open but point to an INVALID_HANDLE_VALUE. There is no + fcntl, and the gnulib replacement fcntl does not support F_GETFL. */ + return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; +# else +# ifndef F_GETFL +# error Please port fcntl to your platform +# endif + return 0 <= fcntl (fd, F_GETFL); +# endif +} +#endif + +static inline void +flush_stdout (void) +{ +#if !_LIBC + int stdout_fd; + +# if GNULIB_FREOPEN_SAFER + /* Use of gnulib's freopen-safer module normally ensures that + fileno (stdout) == 1 + whenever stdout is open. */ + stdout_fd = STDOUT_FILENO; +# else + /* POSIX states that fileno (stdout) after fclose is unspecified. But in + practice it is not a problem, because stdout is statically allocated and + the fd of a FILE stream is stored as a field in its allocated memory. */ + stdout_fd = fileno (stdout); +# endif + /* POSIX states that fflush (stdout) after fclose is unspecified; it + is safe in glibc, but not on all other platforms. fflush (NULL) + is always defined, but too draconian. */ + if (0 <= stdout_fd && is_open (stdout_fd)) +#endif + fflush (stdout); +} static void print_errno_message (int errnum) @@ -147,58 +203,58 @@ bool use_malloc = false; while (1) - { - if (__libc_use_alloca (len * sizeof (wchar_t))) - wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); - else - { - if (!use_malloc) - wmessage = NULL; - - wchar_t *p = (wchar_t *) realloc (wmessage, - len * sizeof (wchar_t)); - if (p == NULL) - { - free (wmessage); - fputws_unlocked (L"out of memory\n", stderr); - return; - } - wmessage = p; - use_malloc = true; - } - - memset (&st, '\0', sizeof (st)); - tmp = message; - - res = mbsrtowcs (wmessage, &tmp, len, &st); - if (res != len) - break; - - if (__builtin_expect (len >= SIZE_MAX / 2, 0)) - { - /* This really should not happen if everything is fine. */ - res = (size_t) -1; - break; - } + { + if (__libc_use_alloca (len * sizeof (wchar_t))) + wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); + else + { + if (!use_malloc) + wmessage = NULL; + + wchar_t *p = (wchar_t *) realloc (wmessage, + len * sizeof (wchar_t)); + if (p == NULL) + { + free (wmessage); + fputws_unlocked (L"out of memory\n", stderr); + return; + } + wmessage = p; + use_malloc = true; + } + + memset (&st, '\0', sizeof (st)); + tmp = message; + + res = mbsrtowcs (wmessage, &tmp, len, &st); + if (res != len) + break; + + if (__builtin_expect (len >= SIZE_MAX / 2, 0)) + { + /* This really should not happen if everything is fine. */ + res = (size_t) -1; + break; + } - len *= 2; - } + len *= 2; + } if (res == (size_t) -1) - { - /* The string cannot be converted. */ - if (use_malloc) - { - free (wmessage); - use_malloc = false; - } - wmessage = (wchar_t *) L"???"; - } + { + /* The string cannot be converted. */ + if (use_malloc) + { + free (wmessage); + use_malloc = false; + } + wmessage = (wchar_t *) L"???"; + } __vfwprintf (stderr, wmessage, args); if (use_malloc) - free (wmessage); + free (wmessage); } else #endif @@ -233,10 +289,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -268,7 +324,7 @@ void error_at_line (int status, int errnum, const char *file_name, - unsigned int line_number, const char *message, ...) + unsigned int line_number, const char *message, ...) { va_list args; @@ -278,10 +334,10 @@ static unsigned int old_line_number; if (old_line_number == line_number - && (file_name == old_file_name - || strcmp (old_file_name, file_name) == 0)) - /* Simply return and print nothing. */ - return; + && (file_name == old_file_name + || strcmp (old_file_name, file_name) == 0)) + /* Simply return and print nothing. */ + return; old_file_name = file_name; old_line_number = line_number; @@ -292,10 +348,10 @@ cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), - 0); + 0); #endif - fflush (stdout); + flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif @@ -312,10 +368,10 @@ #if _LIBC __fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #else fprintf (stderr, file_name != NULL ? "%s:%d: " : " ", - file_name, line_number); + file_name, line_number); #endif va_start (args, message); diff -Nru gettext-0.17/gettext-tools/libgettextpo/error.h gettext-0.18.1.1/gettext-tools/libgettextpo/error.h --- gettext-0.17/gettext-tools/libgettextpo/error.h 2007-10-07 20:30:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/error.h 2010-02-16 21:33:13.000000000 +0000 @@ -1,5 +1,6 @@ /* Declaration for error-reporting function - Copyright (C) 1995, 1996, 1997, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 2003, 2006, 2008, 2009, 2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -19,19 +20,18 @@ #define _ERROR_H 1 #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif @@ -43,7 +43,7 @@ __attribute__ ((__format__ (__printf__, 3, 4))); extern void error_at_line (int __status, int __errnum, const char *__fname, - unsigned int __lineno, const char *__format, ...) + unsigned int __lineno, const char *__format, ...) __attribute__ ((__format__ (__printf__, 5, 6))); /* If NULL, error will flush stdout, then print on stderr the program @@ -58,7 +58,7 @@ variable controls whether this mode is selected or not. */ extern DLL_VARIABLE int error_one_per_line; -#ifdef __cplusplus +#ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/exitfail.c gettext-0.18.1.1/gettext-tools/libgettextpo/exitfail.c --- gettext-0.17/gettext-tools/libgettextpo/exitfail.c 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/exitfail.c 2010-02-16 21:33:13.000000000 +0000 @@ -1,6 +1,7 @@ /* Failure exit status - Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006, 2007, 2009, 2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/libgettextpo/exitfail.h gettext-0.18.1.1/gettext-tools/libgettextpo/exitfail.h --- gettext-0.17/gettext-tools/libgettextpo/exitfail.h 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/exitfail.h 2010-02-16 21:33:14.000000000 +0000 @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/libgettextpo/fcntl.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/fcntl.in.h --- gettext-0.17/gettext-tools/libgettextpo/fcntl.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fcntl.in.h 2010-03-28 18:33:17.000000000 +0000 @@ -0,0 +1,279 @@ +/* Like , but with non-working flags defined to 0. + + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Paul Eggert */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_system_fcntl_h +/* Special invocation convention. */ + +#include +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif +#@INCLUDE_NEXT@ @NEXT_FCNTL_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_FCNTL_H + +#include +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_FCNTL_H@ + +#ifndef _GL_FCNTL_H +#define _GL_FCNTL_H + +#ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ +# include +#endif + + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Declare overridden functions. */ + +#if @GNULIB_FCNTL@ +# if @REPLACE_FCNTL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fcntl +# define fcntl rpl_fcntl +# endif +_GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); +_GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); +# else +# if !@HAVE_FCNTL@ +_GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); +# endif +_GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); +# endif +_GL_CXXALIASWARN (fcntl); +#elif defined GNULIB_POSIXCHECK +# undef fcntl +# if HAVE_RAW_DECL_FCNTL +_GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " + "use gnulib module fcntl for portability"); +# endif +#endif + +#if @GNULIB_OPEN@ +# if @REPLACE_OPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef open +# define open rpl_open +# endif +_GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); +# else +_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); +# endif +_GL_CXXALIASWARN (open); +#elif defined GNULIB_POSIXCHECK +# undef open +/* Assume open is always declared. */ +_GL_WARN_ON_USE (open, "open is not always POSIX compliant - " + "use gnulib module open for portability"); +#endif + +#if @GNULIB_OPENAT@ +# if @REPLACE_OPENAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef openat +# define openat rpl_openat +# endif +_GL_FUNCDECL_RPL (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...)); +# else +# if !@HAVE_OPENAT@ +_GL_FUNCDECL_SYS (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (openat, int, + (int fd, char const *file, int flags, /* mode_t mode */ ...)); +# endif +_GL_CXXALIASWARN (openat); +#elif defined GNULIB_POSIXCHECK +# undef openat +# if HAVE_RAW_DECL_OPENAT +_GL_WARN_ON_USE (openat, "openat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +/* Fix up the FD_* macros, only known to be missing on mingw. */ + +#ifndef FD_CLOEXEC +# define FD_CLOEXEC 1 +#endif + +/* Fix up the supported F_* macros. Intentionally leave other F_* + macros undefined. Only known to be missing on mingw. */ + +#ifndef F_DUPFD_CLOEXEC +# define F_DUPFD_CLOEXEC 0x40000000 +/* Witness variable: 1 if gnulib defined F_DUPFD_CLOEXEC, 0 otherwise. */ +# define GNULIB_defined_F_DUPFD_CLOEXEC 1 +#else +# define GNULIB_defined_F_DUPFD_CLOEXEC 0 +#endif + +#ifndef F_DUPFD +# define F_DUPFD 1 +#endif + +#ifndef F_GETFD +# define F_GETFD 2 +#endif + +/* Fix up the O_* macros. */ + +#if !defined O_DIRECT && defined O_DIRECTIO +/* Tru64 spells it `O_DIRECTIO'. */ +# define O_DIRECT O_DIRECTIO +#endif + +#if !defined O_CLOEXEC && defined O_NOINHERIT +/* Mingw spells it `O_NOINHERIT'. Intentionally leave it + undefined if not available. */ +# define O_CLOEXEC O_NOINHERIT +#endif + +#ifndef O_DIRECT +# define O_DIRECT 0 +#endif + +#ifndef O_DIRECTORY +# define O_DIRECTORY 0 +#endif + +#ifndef O_DSYNC +# define O_DSYNC 0 +#endif + +#ifndef O_NDELAY +# define O_NDELAY 0 +#endif + +#ifndef O_NOATIME +# define O_NOATIME 0 +#endif + +#ifndef O_NONBLOCK +# define O_NONBLOCK O_NDELAY +#endif + +#ifndef O_NOCTTY +# define O_NOCTTY 0 +#endif + +#ifndef O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + +#ifndef O_NOLINKS +# define O_NOLINKS 0 +#endif + +#ifndef O_RSYNC +# define O_RSYNC 0 +#endif + +#ifndef O_SYNC +# define O_SYNC 0 +#endif + +#ifndef O_TTY_INIT +# define O_TTY_INIT 0 +#endif + +/* For systems that distinguish between text and binary I/O. + O_BINARY is usually declared in fcntl.h */ +#if !defined O_BINARY && defined _O_BINARY + /* For MSC-compatible compilers. */ +# define O_BINARY _O_BINARY +# define O_TEXT _O_TEXT +#endif + +#if defined __BEOS__ || defined __HAIKU__ + /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ +# undef O_BINARY +# undef O_TEXT +#endif + +#ifndef O_BINARY +# define O_BINARY 0 +# define O_TEXT 0 +#endif + +/* Fix up the AT_* macros. */ + +/* Work around a bug in Solaris 9 and 10: AT_FDCWD is positive. Its + value exceeds INT_MAX, so its use as an int doesn't conform to the + C standard, and GCC and Sun C complain in some cases. If the bug + is present, undef AT_FDCWD here, so it can be redefined below. */ +#if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553 +# undef AT_FDCWD +#endif + +/* Use the same bit pattern as Solaris 9, but with the proper + signedness. The bit pattern is important, in case this actually is + Solaris with the above workaround. */ +#ifndef AT_FDCWD +# define AT_FDCWD (-3041965) +#endif + +/* Use the same values as Solaris 9. This shouldn't matter, but + there's no real reason to differ. */ +#ifndef AT_SYMLINK_NOFOLLOW +# define AT_SYMLINK_NOFOLLOW 4096 +#endif + +#ifndef AT_REMOVEDIR +# define AT_REMOVEDIR 1 +#endif + +/* Solaris 9 lacks these two, so just pick unique values. */ +#ifndef AT_SYMLINK_FOLLOW +# define AT_SYMLINK_FOLLOW 2 +#endif + +#ifndef AT_EACCESS +# define AT_EACCESS 4 +#endif + + +#endif /* _GL_FCNTL_H */ +#endif /* _GL_FCNTL_H */ +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/filename.h gettext-0.18.1.1/gettext-tools/libgettextpo/filename.h --- gettext-0.17/gettext-tools/libgettextpo/filename.h 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/filename.h 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ -/* Pathname support. - Copyright (C) 2001-2004, 2007 Free Software Foundation, Inc. +/* Basic filename support macros. + Copyright (C) 2001-2004, 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,10 +46,6 @@ # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif -/* Concatenate a directory filename, a relative filename and an optional - suffix. Return a freshly allocated filename. */ -extern char *concatenated_filename (const char *directory, - const char *filename, const char *suffix); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/libgettextpo/float+.h gettext-0.18.1.1/gettext-tools/libgettextpo/float+.h --- gettext-0.17/gettext-tools/libgettextpo/float+.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/float+.h 2010-02-16 21:33:14.000000000 +0000 @@ -0,0 +1,148 @@ +/* Supplemental information about the floating-point formats. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2007. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _FLOATPLUS_H +#define _FLOATPLUS_H + +#include +#include + +/* Number of bits in the mantissa of a floating-point number, including the + "hidden bit". */ +#if FLT_RADIX == 2 +# define FLT_MANT_BIT FLT_MANT_DIG +# define DBL_MANT_BIT DBL_MANT_DIG +# define LDBL_MANT_BIT LDBL_MANT_DIG +#elif FLT_RADIX == 4 +# define FLT_MANT_BIT (FLT_MANT_DIG * 2) +# define DBL_MANT_BIT (DBL_MANT_DIG * 2) +# define LDBL_MANT_BIT (LDBL_MANT_DIG * 2) +#elif FLT_RADIX == 16 +# define FLT_MANT_BIT (FLT_MANT_DIG * 4) +# define DBL_MANT_BIT (DBL_MANT_DIG * 4) +# define LDBL_MANT_BIT (LDBL_MANT_DIG * 4) +#endif + +/* Bit mask that can be used to mask the exponent, as an unsigned number. */ +#define FLT_EXP_MASK ((FLT_MAX_EXP - FLT_MIN_EXP) | 7) +#define DBL_EXP_MASK ((DBL_MAX_EXP - DBL_MIN_EXP) | 7) +#define LDBL_EXP_MASK ((LDBL_MAX_EXP - LDBL_MIN_EXP) | 7) + +/* Number of bits used for the exponent of a floating-point number, including + the exponent's sign. */ +#define FLT_EXP_BIT \ + (FLT_EXP_MASK < 0x100 ? 8 : \ + FLT_EXP_MASK < 0x200 ? 9 : \ + FLT_EXP_MASK < 0x400 ? 10 : \ + FLT_EXP_MASK < 0x800 ? 11 : \ + FLT_EXP_MASK < 0x1000 ? 12 : \ + FLT_EXP_MASK < 0x2000 ? 13 : \ + FLT_EXP_MASK < 0x4000 ? 14 : \ + FLT_EXP_MASK < 0x8000 ? 15 : \ + FLT_EXP_MASK < 0x10000 ? 16 : \ + FLT_EXP_MASK < 0x20000 ? 17 : \ + FLT_EXP_MASK < 0x40000 ? 18 : \ + FLT_EXP_MASK < 0x80000 ? 19 : \ + FLT_EXP_MASK < 0x100000 ? 20 : \ + FLT_EXP_MASK < 0x200000 ? 21 : \ + FLT_EXP_MASK < 0x400000 ? 22 : \ + FLT_EXP_MASK < 0x800000 ? 23 : \ + FLT_EXP_MASK < 0x1000000 ? 24 : \ + FLT_EXP_MASK < 0x2000000 ? 25 : \ + FLT_EXP_MASK < 0x4000000 ? 26 : \ + FLT_EXP_MASK < 0x8000000 ? 27 : \ + FLT_EXP_MASK < 0x10000000 ? 28 : \ + FLT_EXP_MASK < 0x20000000 ? 29 : \ + FLT_EXP_MASK < 0x40000000 ? 30 : \ + FLT_EXP_MASK <= 0x7fffffff ? 31 : \ + 32) +#define DBL_EXP_BIT \ + (DBL_EXP_MASK < 0x100 ? 8 : \ + DBL_EXP_MASK < 0x200 ? 9 : \ + DBL_EXP_MASK < 0x400 ? 10 : \ + DBL_EXP_MASK < 0x800 ? 11 : \ + DBL_EXP_MASK < 0x1000 ? 12 : \ + DBL_EXP_MASK < 0x2000 ? 13 : \ + DBL_EXP_MASK < 0x4000 ? 14 : \ + DBL_EXP_MASK < 0x8000 ? 15 : \ + DBL_EXP_MASK < 0x10000 ? 16 : \ + DBL_EXP_MASK < 0x20000 ? 17 : \ + DBL_EXP_MASK < 0x40000 ? 18 : \ + DBL_EXP_MASK < 0x80000 ? 19 : \ + DBL_EXP_MASK < 0x100000 ? 20 : \ + DBL_EXP_MASK < 0x200000 ? 21 : \ + DBL_EXP_MASK < 0x400000 ? 22 : \ + DBL_EXP_MASK < 0x800000 ? 23 : \ + DBL_EXP_MASK < 0x1000000 ? 24 : \ + DBL_EXP_MASK < 0x2000000 ? 25 : \ + DBL_EXP_MASK < 0x4000000 ? 26 : \ + DBL_EXP_MASK < 0x8000000 ? 27 : \ + DBL_EXP_MASK < 0x10000000 ? 28 : \ + DBL_EXP_MASK < 0x20000000 ? 29 : \ + DBL_EXP_MASK < 0x40000000 ? 30 : \ + DBL_EXP_MASK <= 0x7fffffff ? 31 : \ + 32) +#define LDBL_EXP_BIT \ + (LDBL_EXP_MASK < 0x100 ? 8 : \ + LDBL_EXP_MASK < 0x200 ? 9 : \ + LDBL_EXP_MASK < 0x400 ? 10 : \ + LDBL_EXP_MASK < 0x800 ? 11 : \ + LDBL_EXP_MASK < 0x1000 ? 12 : \ + LDBL_EXP_MASK < 0x2000 ? 13 : \ + LDBL_EXP_MASK < 0x4000 ? 14 : \ + LDBL_EXP_MASK < 0x8000 ? 15 : \ + LDBL_EXP_MASK < 0x10000 ? 16 : \ + LDBL_EXP_MASK < 0x20000 ? 17 : \ + LDBL_EXP_MASK < 0x40000 ? 18 : \ + LDBL_EXP_MASK < 0x80000 ? 19 : \ + LDBL_EXP_MASK < 0x100000 ? 20 : \ + LDBL_EXP_MASK < 0x200000 ? 21 : \ + LDBL_EXP_MASK < 0x400000 ? 22 : \ + LDBL_EXP_MASK < 0x800000 ? 23 : \ + LDBL_EXP_MASK < 0x1000000 ? 24 : \ + LDBL_EXP_MASK < 0x2000000 ? 25 : \ + LDBL_EXP_MASK < 0x4000000 ? 26 : \ + LDBL_EXP_MASK < 0x8000000 ? 27 : \ + LDBL_EXP_MASK < 0x10000000 ? 28 : \ + LDBL_EXP_MASK < 0x20000000 ? 29 : \ + LDBL_EXP_MASK < 0x40000000 ? 30 : \ + LDBL_EXP_MASK <= 0x7fffffff ? 31 : \ + 32) + +/* Number of bits used for a floating-point number: the mantissa (not + counting the "hidden bit", since it may or may not be explicit), the + exponent, and the sign. */ +#define FLT_TOTAL_BIT ((FLT_MANT_BIT - 1) + FLT_EXP_BIT + 1) +#define DBL_TOTAL_BIT ((DBL_MANT_BIT - 1) + DBL_EXP_BIT + 1) +#define LDBL_TOTAL_BIT ((LDBL_MANT_BIT - 1) + LDBL_EXP_BIT + 1) + +/* Number of bytes used for a floating-point number. + This can be smaller than the 'sizeof'. For example, on i386 systems, + 'long double' most often have LDBL_MANT_BIT = 64, LDBL_EXP_BIT = 16, hence + LDBL_TOTAL_BIT = 80 bits, i.e. 10 bytes of consecutive memory, but + sizeof (long double) = 12 or = 16. */ +#define SIZEOF_FLT ((FLT_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) +#define SIZEOF_DBL ((DBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) +#define SIZEOF_LDBL ((LDBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) + +/* Verify that SIZEOF_FLT <= sizeof (float) etc. */ +typedef int verify_sizeof_flt[2 * (SIZEOF_FLT <= sizeof (float)) - 1]; +typedef int verify_sizeof_dbl[2 * (SIZEOF_DBL <= sizeof (double)) - 1]; +typedef int verify_sizeof_ldbl[2 * (SIZEOF_LDBL <= sizeof (long double)) - 1]; + +#endif /* _FLOATPLUS_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/float.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/float.in.h --- gettext-0.17/gettext-tools/libgettextpo/float.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/float.in.h 2010-04-25 09:22:38.000000000 +0000 @@ -0,0 +1,62 @@ +/* A correct . + + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _GL_FLOAT_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_FLOAT_H@ + +#ifndef _GL_FLOAT_H +#define _GL_FLOAT_H + +/* 'long double' properties. */ +#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__) +/* Number of mantissa units, in base FLT_RADIX. */ +# undef LDBL_MANT_DIG +# define LDBL_MANT_DIG 64 +/* Number of decimal digits that is sufficient for representing a number. */ +# undef LDBL_DIG +# define LDBL_DIG 18 +/* x-1 where x is the smallest representable number > 1. */ +# undef LDBL_EPSILON +# define LDBL_EPSILON 1.0842021724855044340E-19L +/* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */ +# undef LDBL_MIN_EXP +# define LDBL_MIN_EXP (-16381) +/* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */ +# undef LDBL_MAX_EXP +# define LDBL_MAX_EXP 16384 +/* Minimum positive normalized number. */ +# undef LDBL_MIN +# define LDBL_MIN 3.3621031431120935063E-4932L +/* Maximum representable finite number. */ +# undef LDBL_MAX +# define LDBL_MAX 1.1897314953572317650E+4932L +/* Minimum e such that 10^e is in the range of normalized numbers. */ +# undef LDBL_MIN_10_EXP +# define LDBL_MIN_10_EXP (-4931) +/* Maximum e such that 10^e is in the range of representable finite numbers. */ +# undef LDBL_MAX_10_EXP +# define LDBL_MAX_10_EXP 4932 +#endif + +#endif /* _GL_FLOAT_H */ +#endif /* _GL_FLOAT_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/fopen.c gettext-0.18.1.1/gettext-tools/libgettextpo/fopen.c --- gettext-0.17/gettext-tools/libgettextpo/fopen.c 2007-10-17 22:37:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fopen.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ /* Open a stream to a file. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,19 +18,88 @@ #include +/* Get the original definition of fopen. It might be defined as a macro. */ +#define __need_FILE +#include +#undef __need_FILE + +static inline FILE * +orig_fopen (const char *filename, const char *mode) +{ + return fopen (filename, mode); +} + /* Specification. */ #include +#include +#include #include +#include +#include +#include FILE * rpl_fopen (const char *filename, const char *mode) -#undef fopen { #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; #endif - return fopen (filename, mode); +#if FOPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and a mode that requires write access is + specified, then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file already exists as a directory, then if a mode that + requires write access is specified, fopen() must fail because POSIX + says that it + fails with errno = EISDIR in this case. + If the named file does not exist or does not name a directory, then + fopen() must fail since the file does not contain a '.' directory. */ + { + size_t len = strlen (filename); + if (len > 0 && filename[len - 1] == '/') + { + int fd; + struct stat statbuf; + FILE *fp; + + if (mode[0] == 'w' || mode[0] == 'a') + { + errno = EISDIR; + return NULL; + } + + fd = open (filename, O_RDONLY); + if (fd < 0) + return NULL; + + if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) + { + close (fd); + errno = ENOTDIR; + return NULL; + } + + fp = fdopen (fd, mode); + if (fp == NULL) + { + int saved_errno = errno; + close (fd); + errno = saved_errno; + } + return fp; + } + } +# endif + + return orig_fopen (filename, mode); } diff -Nru gettext-0.17/gettext-tools/libgettextpo/fstrcmp.c gettext-0.18.1.1/gettext-tools/libgettextpo/fstrcmp.c --- gettext-0.17/gettext-tools/libgettextpo/fstrcmp.c 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fstrcmp.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,6 @@ /* Functions to make fuzzy comparisons between strings - Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1988-1989, 1992-1993, 1995, 2001-2003, 2006, 2008-2010 Free + Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,8 +51,8 @@ #include #include -#include "lock.h" -#include "tls.h" +#include "glthread/lock.h" +#include "glthread/tls.h" #include "minmax.h" #include "xalloc.h" @@ -64,11 +65,14 @@ #define EQUAL(x,y) ((x) == (y)) #define OFFSET int #define EXTRA_CONTEXT_FIELDS \ - /* The number of elements inserted or deleted. */ \ - int xvec_edit_count; \ - int yvec_edit_count; -#define NOTE_DELETE(ctxt, xoff) ctxt->xvec_edit_count++ -#define NOTE_INSERT(ctxt, yoff) ctxt->yvec_edit_count++ + /* The number of edits beyond which the computation can be aborted. */ \ + int edit_count_limit; \ + /* The number of edits (= number of elements inserted, plus the number of \ + elements deleted), temporarily minus edit_count_limit. */ \ + int edit_count; +#define NOTE_DELETE(ctxt, xoff) ctxt->edit_count++ +#define NOTE_INSERT(ctxt, yoff) ctxt->edit_count++ +#define EARLY_ABORT(ctxt) ctxt->edit_count > 0 /* We don't need USE_HEURISTIC, since it is unlikely in typical uses of fstrcmp(). */ #include "diffseq.h" @@ -81,8 +85,8 @@ already allocated memory, store the allocated memory per thread. Free it only when the thread exits. */ -static gl_tls_key_t buffer_key; /* TLS key for a 'int *' */ -static gl_tls_key_t bufmax_key; /* TLS key for a 'size_t' */ +static gl_tls_key_t buffer_key; /* TLS key for a 'int *' */ +static gl_tls_key_t bufmax_key; /* TLS key for a 'size_t' */ static void keys_init (void) @@ -96,46 +100,108 @@ gl_once_define(static, keys_init_once) -/* NAME - fstrcmp - fuzzy string compare +/* In the code below, branch probabilities were measured by Ralf Wildenhues, + by running "msgmerge LL.po coreutils.pot" with msgmerge 0.18 for many + values of LL. The probability indicates that the condition evaluates + to true; whether that leads to a branch or a non-branch in the code, + depends on the compiler's reordering of basic blocks. */ - SYNOPSIS - double fstrcmp(const char *, const char *); - - DESCRIPTION - The fstrcmp function may be used to compare two string for - similarity. It is very useful in reducing "cascade" or - "secondary" errors in compilers or other situations where - symbol tables occur. - - RETURNS - double; 0 if the strings are entirly dissimilar, 1 if the - strings are identical, and a number in between if they are - similar. */ double -fstrcmp (const char *string1, const char *string2) +fstrcmp_bounded (const char *string1, const char *string2, double lower_bound) { struct context ctxt; - int xvec_length; - int yvec_length; + int xvec_length = strlen (string1); + int yvec_length = strlen (string2); int i; size_t fdiag_len; int *buffer; size_t bufmax; + /* short-circuit obvious comparisons */ + if (xvec_length == 0 || yvec_length == 0) /* Prob: 1% */ + return (xvec_length == 0 && yvec_length == 0 ? 1.0 : 0.0); + + if (lower_bound > 0) + { + /* Compute a quick upper bound. + Each edit is an insertion or deletion of an element, hence modifies + the length of the sequence by at most 1. + Therefore, when starting from a sequence X and ending at a sequence Y, + with N edits, | yvec_length - xvec_length | <= N. (Proof by + induction over N.) + So, at the end, we will have + edit_count >= | xvec_length - yvec_length |. + and hence + result + = (xvec_length + yvec_length - edit_count) + / (xvec_length + yvec_length) + <= (xvec_length + yvec_length - | yvec_length - xvec_length |) + / (xvec_length + yvec_length) + = 2 * min (xvec_length, yvec_length) / (xvec_length + yvec_length). + */ + volatile double upper_bound = + (double) (2 * MIN (xvec_length, yvec_length)) + / (xvec_length + yvec_length); + + if (upper_bound < lower_bound) /* Prob: 74% */ + /* Return an arbitrary value < LOWER_BOUND. */ + return 0.0; + +#if CHAR_BIT <= 8 + /* When X and Y are both small, avoid the overhead of setting up an + array of size 256. */ + if (xvec_length + yvec_length >= 20) /* Prob: 99% */ + { + /* Compute a less quick upper bound. + Each edit is an insertion or deletion of a character, hence + modifies the occurrence count of a character by 1 and leaves the + other occurrence counts unchanged. + Therefore, when starting from a sequence X and ending at a + sequence Y, and denoting the occurrence count of C in X with + OCC (X, C), with N edits, + sum_C | OCC (X, C) - OCC (Y, C) | <= N. + (Proof by induction over N.) + So, at the end, we will have + edit_count >= sum_C | OCC (X, C) - OCC (Y, C) |, + and hence + result + = (xvec_length + yvec_length - edit_count) + / (xvec_length + yvec_length) + <= (xvec_length + yvec_length - sum_C | OCC(X,C) - OCC(Y,C) |) + / (xvec_length + yvec_length). + */ + int occ_diff[UCHAR_MAX + 1]; /* array C -> OCC(X,C) - OCC(Y,C) */ + int sum; + + /* Determine the occurrence counts in X. */ + memset (occ_diff, 0, sizeof (occ_diff)); + for (i = xvec_length - 1; i >= 0; i--) + occ_diff[(unsigned char) string1[i]]++; + /* Subtract the occurrence counts in Y. */ + for (i = yvec_length - 1; i >= 0; i--) + occ_diff[(unsigned char) string2[i]]--; + /* Sum up the absolute values. */ + sum = 0; + for (i = 0; i <= UCHAR_MAX; i++) + { + int d = occ_diff[i]; + sum += (d >= 0 ? d : -d); + } + + upper_bound = 1.0 - (double) sum / (xvec_length + yvec_length); + + if (upper_bound < lower_bound) /* Prob: 66% */ + /* Return an arbitrary value < LOWER_BOUND. */ + return 0.0; + } +#endif + } + /* set the info for each string. */ ctxt.xvec = string1; - xvec_length = strlen (string1); ctxt.yvec = string2; - yvec_length = strlen (string2); - - /* short-circuit obvious comparisons */ - if (xvec_length == 0 && yvec_length == 0) - return 1.0; - if (xvec_length == 0 || yvec_length == 0) - return 0.0; /* Set TOO_EXPENSIVE to be approximate square root of input size, bounded below by 256. */ @@ -157,11 +223,11 @@ /* Need more memory. */ bufmax = 2 * bufmax; if (fdiag_len > bufmax) - bufmax = fdiag_len; + bufmax = fdiag_len; /* Calling xrealloc would be a waste: buffer's contents does not need - to be preserved. */ + to be preserved. */ if (buffer != NULL) - free (buffer); + free (buffer); buffer = (int *) xnmalloc (bufmax, 2 * sizeof (int)); gl_tls_set (buffer_key, buffer); gl_tls_set (bufmax_key, (void *) (uintptr_t) bufmax); @@ -169,17 +235,37 @@ ctxt.fdiag = buffer + yvec_length + 1; ctxt.bdiag = ctxt.fdiag + fdiag_len; + /* The edit_count is only ever increased. The computation can be aborted + when + (xvec_length + yvec_length - edit_count) / (xvec_length + yvec_length) + < lower_bound, + or equivalently + edit_count > (xvec_length + yvec_length) * (1 - lower_bound) + or equivalently + edit_count > floor((xvec_length + yvec_length) * (1 - lower_bound)). + We need to add an epsilon inside the floor(...) argument, to neutralize + rounding errors. */ + ctxt.edit_count_limit = + (lower_bound < 1.0 + ? (int) ((xvec_length + yvec_length) * (1.0 - lower_bound + 0.000001)) + : 0); + /* Now do the main comparison algorithm */ - ctxt.xvec_edit_count = 0; - ctxt.yvec_edit_count = 0; - compareseq (0, xvec_length, 0, yvec_length, 0, - &ctxt); + ctxt.edit_count = - ctxt.edit_count_limit; + if (compareseq (0, xvec_length, 0, yvec_length, 0, &ctxt)) /* Prob: 98% */ + /* The edit_count passed the limit. Hence the result would be + < lower_bound. We can return any value < lower_bound instead. */ + return 0.0; + ctxt.edit_count += ctxt.edit_count_limit; /* The result is - ((number of chars in common) / (average length of the strings)). + ((number of chars in common) / (average length of the strings)). + The numerator is + = xvec_length - (number of calls to NOTE_DELETE) + = yvec_length - (number of calls to NOTE_INSERT) + = 1/2 * (xvec_length + yvec_length - (number of edits)). This is admittedly biased towards finding that the strings are similar, however it does produce meaningful results. */ - return ((double) (xvec_length + yvec_length - - ctxt.yvec_edit_count - ctxt.xvec_edit_count) - / (xvec_length + yvec_length)); + return ((double) (xvec_length + yvec_length - ctxt.edit_count) + / (xvec_length + yvec_length)); } diff -Nru gettext-0.17/gettext-tools/libgettextpo/fstrcmp.h gettext-0.18.1.1/gettext-tools/libgettextpo/fstrcmp.h --- gettext-0.17/gettext-tools/libgettextpo/fstrcmp.h 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fstrcmp.h 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,6 @@ /* Fuzzy string comparison. - Copyright (C) 1995, 2000, 2002-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 2000, 2002-2003, 2006, 2008-2010 Free Software + Foundation, Inc. This file was written by Peter Miller @@ -24,9 +25,19 @@ #endif /* Fuzzy compare of S1 and S2. Return a measure for the similarity of S1 - and S1. The higher the result, the more similar the strings are. */ + and S1. The higher the result, the more similar the strings are. + The result is bounded between 0 (meaning very dissimilar strings) and + 1 (meaning identical strings). */ extern double fstrcmp (const char *s1, const char *s2); +/* Like fstrcmp (S1, S2), except that if the result is < LOWER_BOUND, an + arbitrary other value < LOWER_BOUND can be returned. */ +extern double fstrcmp_bounded (const char *s1, const char *s2, + double lower_bound); + +/* A shortcut for fstrcmp. Avoids a function call. */ +#define fstrcmp(s1,s2) fstrcmp_bounded (s1, s2, 0.0) + #ifdef __cplusplus } #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/fwriteerror.c gettext-0.18.1.1/gettext-tools/libgettextpo/fwriteerror.c --- gettext-0.17/gettext-tools/libgettextpo/fwriteerror.c 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fwriteerror.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -32,13 +32,25 @@ if (fp == stdout) { if (stdout_closed) - return 0; + return 0; /* If we are closing stdout, don't attempt to do it later again. */ stdout_closed = true; } - /* Need to + /* This function returns an error indication if there was a previous failure + or if fclose failed, with two exceptions: + - Ignore an fclose failure if there was no previous error, no data + remains to be flushed, and fclose failed with EBADF. That can + happen when a program like cp is invoked like this `cp a b >&-' + (i.e., with standard output closed) and doesn't generate any + output (hence no previous error and nothing to be flushed). + - Ignore an fclose failure due to EPIPE. That can happen when a + program blocks or ignores SIGPIPE, and the output pipe or socket + has no readers now. The EPIPE tells us that we should stop writing + to this output. That's what we are doing anyway here. + + Need to 1. test the error indicator of the stream, 2. flush the buffers both in userland and in the kernel, through fclose, testing for error again. */ @@ -50,15 +62,15 @@ if (ferror (fp)) { if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* The stream had an error earlier, but its errno was lost. If the - error was not temporary, we can get the same errno by writing and - flushing one more byte. We can do so because at this point the - stream's contents is garbage anyway. */ + error was not temporary, we can get the same errno by writing and + flushing one more byte. We can do so because at this point the + stream's contents is garbage anyway. */ if (fputc ('\0', fp) == EOF) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ /* Give up on errno. */ errno = 0; goto close_preserving_errno; @@ -67,16 +79,16 @@ if (ignore_ebadf) { /* We need an explicit fflush to tell whether some output was already - done on FP. */ + done on FP. */ if (fflush (fp)) - goto close_preserving_errno; /* errno is set here */ + goto close_preserving_errno; /* errno is set here */ if (fclose (fp) && errno != EBADF) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } else { if (fclose (fp)) - return -1; /* errno is set here */ + goto got_errno; /* errno is set here */ } return 0; @@ -88,8 +100,13 @@ int saved_errno = errno; fclose (fp); errno = saved_errno; - return -1; } + got_errno: + /* There's an error. Ignore EPIPE. */ + if (errno == EPIPE) + return 0; + else + return -1; } int @@ -108,7 +125,7 @@ #if TEST /* Name of a file on which writing fails. On systems without /dev/full, - you can choose a filename on a full filesystem. */ + you can choose a filename on a full file system. */ #define UNWRITABLE_FILE "/dev/full" int @@ -130,32 +147,32 @@ size_t size = sizes[i]; for (j = 0; j < 2; j++) - { - /* Run a test depending on i and j: - Write size bytes and then calls fflush if j==1. */ - FILE *stream = fopen (UNWRITABLE_FILE, "w"); - - if (stream == NULL) - { - fprintf (stderr, "Test %u:%u: could not open file\n", i, j); - continue; - } - - fwrite (dummy, 347, 1, stream); - fwrite (dummy, size - 347, 1, stream); - if (j) - fflush (stream); - - if (fwriteerror (stream) == -1) - { - if (errno != ENOSPC) - fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", - i, j, errno); - } - else - fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", - i, j); - } + { + /* Run a test depending on i and j: + Write size bytes and then calls fflush if j==1. */ + FILE *stream = fopen (UNWRITABLE_FILE, "w"); + + if (stream == NULL) + { + fprintf (stderr, "Test %u:%u: could not open file\n", i, j); + continue; + } + + fwrite (dummy, 347, 1, stream); + fwrite (dummy, size - 347, 1, stream); + if (j) + fflush (stream); + + if (fwriteerror (stream) == -1) + { + if (errno != ENOSPC) + fprintf (stderr, "Test %u:%u: fwriteerror ok, errno = %d\n", + i, j, errno); + } + else + fprintf (stderr, "Test %u:%u: fwriteerror found no error!\n", + i, j); + } } return 0; diff -Nru gettext-0.17/gettext-tools/libgettextpo/fwriteerror.h gettext-0.18.1.1/gettext-tools/libgettextpo/fwriteerror.h --- gettext-0.17/gettext-tools/libgettextpo/fwriteerror.h 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/fwriteerror.h 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/libgettextpo/gcd.c gettext-0.18.1.1/gettext-tools/libgettextpo/gcd.c --- gettext-0.17/gettext-tools/libgettextpo/gcd.c 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gcd.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ /* Arithmetic. - Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -47,39 +47,39 @@ if (a & c) { if (b & c) - goto odd_odd; + goto odd_odd; else - goto odd_even; + goto odd_even; } else { if (b & c) - goto even_odd; + goto even_odd; else - abort (); + abort (); } for (;;) { odd_odd: /* a/c and b/c both odd */ if (a == b) - break; + break; if (a > b) - { - a = a - b; - even_odd: /* a/c even, b/c odd */ - do - a = a >> 1; - while ((a & c) == 0); - } + { + a = a - b; + even_odd: /* a/c even, b/c odd */ + do + a = a >> 1; + while ((a & c) == 0); + } else - { - b = b - a; - odd_even: /* a/c odd, b/c even */ - do - b = b >> 1; - while ((b & c) == 0); - } + { + b = b - a; + odd_even: /* a/c odd, b/c even */ + do + b = b >> 1; + while ((b & c) == 0); + } } /* a = b */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/gcd.h gettext-0.18.1.1/gettext-tools/libgettextpo/gcd.h --- gettext-0.17/gettext-tools/libgettextpo/gcd.h 2007-10-07 20:30:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gcd.h 2010-02-16 21:33:14.000000000 +0000 @@ -1,5 +1,5 @@ /* Arithmetic. - Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify diff -Nru gettext-0.17/gettext-tools/libgettextpo/getdelim.c gettext-0.18.1.1/gettext-tools/libgettextpo/getdelim.c --- gettext-0.17/gettext-tools/libgettextpo/getdelim.c 2007-09-01 13:13:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/getdelim.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,10 +1,10 @@ /* getdelim.c --- Implementation of replacement getdelim function. - Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007 Free - Software Foundation, Inc. + Copyright (C) 1994, 1996, 1997, 1998, 2001, 2003, 2005, 2006, 2007, 2008, + 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, or (at + published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but @@ -21,30 +21,32 @@ #include +/* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc + optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */ +#define _GL_ARG_NONNULL(params) + #include #include +#include #include #include -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif -#if !HAVE_FLOCKFILE + +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +# define getc_maybe_unlocked(fp) getc(fp) +#elif !HAVE_FLOCKFILE || !HAVE_FUNLOCKFILE || !HAVE_DECL_GETC_UNLOCKED # undef flockfile -# define flockfile(x) ((void) 0) -#endif -#if !HAVE_FUNLOCKFILE # undef funlockfile +# define flockfile(x) ((void) 0) # define funlockfile(x) ((void) 0) -#endif - -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG +# define getc_maybe_unlocked(fp) getc(fp) +#else +# define getc_maybe_unlocked(fp) getc_unlocked(fp) #endif /* Read up to (and including) a DELIMITER from FP into *LINEPTR (and @@ -69,59 +71,61 @@ if (*lineptr == NULL || *n == 0) { + char *new_lineptr; *n = 120; - *lineptr = (char *) realloc (*lineptr, *n); - if (*lineptr == NULL) - { - result = -1; - goto unlock_return; - } + new_lineptr = (char *) realloc (*lineptr, *n); + if (new_lineptr == NULL) + { + result = -1; + goto unlock_return; + } + *lineptr = new_lineptr; } for (;;) { int i; - i = getc (fp); + i = getc_maybe_unlocked (fp); if (i == EOF) - { - result = -1; - break; - } + { + result = -1; + break; + } /* Make enough space for len+1 (for final NUL) bytes. */ if (cur_len + 1 >= *n) - { - size_t needed_max = - SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX; - size_t needed = 2 * *n + 1; /* Be generous. */ - char *new_lineptr; - - if (needed_max < needed) - needed = needed_max; - if (cur_len + 1 >= needed) - { - result = -1; - errno = EOVERFLOW; - goto unlock_return; - } - - new_lineptr = (char *) realloc (*lineptr, needed); - if (new_lineptr == NULL) - { - result = -1; - goto unlock_return; - } - - *lineptr = new_lineptr; - *n = needed; - } + { + size_t needed_max = + SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX; + size_t needed = 2 * *n + 1; /* Be generous. */ + char *new_lineptr; + + if (needed_max < needed) + needed = needed_max; + if (cur_len + 1 >= needed) + { + result = -1; + errno = EOVERFLOW; + goto unlock_return; + } + + new_lineptr = (char *) realloc (*lineptr, needed); + if (new_lineptr == NULL) + { + result = -1; + goto unlock_return; + } + + *lineptr = new_lineptr; + *n = needed; + } (*lineptr)[cur_len] = i; cur_len++; if (i == delimiter) - break; + break; } (*lineptr)[cur_len] = '\0'; result = cur_len ? cur_len : result; diff -Nru gettext-0.17/gettext-tools/libgettextpo/getline.c gettext-0.18.1.1/gettext-tools/libgettextpo/getline.c --- gettext-0.17/gettext-tools/libgettextpo/getline.c 2007-09-01 13:13:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/getline.c 2010-02-16 21:33:14.000000000 +0000 @@ -1,9 +1,9 @@ /* getline.c --- Implementation of replacement getline function. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, or (at + published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but diff -Nru gettext-0.17/gettext-tools/libgettextpo/gettext.h gettext-0.18.1.1/gettext-tools/libgettextpo/gettext.h --- gettext-0.17/gettext-tools/libgettextpo/gettext.h 2007-10-31 12:38:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gettext.h 2009-12-12 11:37:49.000000000 +0000 @@ -1,9 +1,9 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -64,21 +64,30 @@ for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ +# undef gettext # define gettext(Msgid) ((const char *) (Msgid)) +# undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) +# undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) +# undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) +# undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) +# undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) +# undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) +# undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) +# undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) @@ -132,8 +141,8 @@ #endif static const char * pgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - int category) + const char *msg_ctxt_id, const char *msgid, + int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) @@ -151,9 +160,9 @@ #endif static const char * npgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msg_ctxt_id, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); @@ -191,8 +200,8 @@ #endif static const char * dcpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - int category) + const char *msgctxt, const char *msgid, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -214,10 +223,10 @@ translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) - return translation; + return translation; } return msgid; } @@ -236,9 +245,9 @@ #endif static const char * dcnpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msgctxt, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -260,10 +269,10 @@ translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) - return translation; + return translation; } return (n == 1 ? msgid : msgid_plural); } diff -Nru gettext-0.17/gettext-tools/libgettextpo/gettext-po.c gettext-0.18.1.1/gettext-tools/libgettextpo/gettext-po.c --- gettext-0.17/gettext-tools/libgettextpo/gettext-po.c 2007-10-21 14:57:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gettext-po.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Public API for GNU gettext PO files. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -106,7 +106,7 @@ { fp = fopen (filename, "r"); if (fp == NULL) - return NULL; + return NULL; } /* Establish error handler around read_catalog_stream(). */ @@ -122,7 +122,7 @@ file->real_filename = filename; file->logical_filename = filename; file->mdlp = read_catalog_stream (fp, file->real_filename, - file->logical_filename, &input_format_po); + file->logical_filename, &input_format_po); file->domains = NULL; /* Restore error handler. */ @@ -154,7 +154,7 @@ { fp = fopen (filename, "r"); if (fp == NULL) - return NULL; + return NULL; } /* Establish error handler around read_catalog_stream(). */ @@ -168,7 +168,7 @@ file->real_filename = filename; file->logical_filename = filename; file->mdlp = read_catalog_stream (fp, file->real_filename, - file->logical_filename, &input_format_po); + file->logical_filename, &input_format_po); file->domains = NULL; /* Restore error handler. */ @@ -202,14 +202,14 @@ { fp = fopen (filename, "r"); if (fp == NULL) - return NULL; + return NULL; } file = XMALLOC (struct po_file); file->real_filename = filename; file->logical_filename = filename; file->mdlp = read_catalog_stream (fp, file->real_filename, - file->logical_filename, &input_format_po); + file->logical_filename, &input_format_po); file->domains = NULL; if (fp != stdin) @@ -291,7 +291,7 @@ size_t j; for (j = 0; j < n; j++) - domains[j] = file->mdlp->item[j]->domain; + domains[j] = file->mdlp->item[j]->domain; domains[n] = NULL; file->domains = domains; @@ -317,14 +317,14 @@ if (mlp != NULL) for (j = 0; j < mlp->nitems; j++) if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; + { + const char *header = mlp->item[j]->msgstr; - if (header != NULL) - return xstrdup (header); - else - return NULL; - } + if (header != NULL) + return xstrdup (header); + else + return NULL; + } return NULL; } @@ -341,30 +341,31 @@ for (line = header;;) { - if (strncmp (line, field, field_len) == 0 - && line[field_len] == ':' && line[field_len + 1] == ' ') - { - const char *value_start; - const char *value_end; - char *value; - - value_start = line + field_len + 2; - value_end = strchr (value_start, '\n'); - if (value_end == NULL) - value_end = value_start + strlen (value_start); - - value = XNMALLOC (value_end - value_start + 1, char); - memcpy (value, value_start, value_end - value_start); - value[value_end - value_start] = '\0'; + if (strncmp (line, field, field_len) == 0 && line[field_len] == ':') + { + const char *value_start; + const char *value_end; + char *value; + + value_start = line + field_len + 1; + if (*value_start == ' ') + value_start++; + value_end = strchr (value_start, '\n'); + if (value_end == NULL) + value_end = value_start + strlen (value_start); + + value = XNMALLOC (value_end - value_start + 1, char); + memcpy (value, value_start, value_end - value_start); + value[value_end - value_start] = '\0'; - return value; - } + return value; + } line = strchr (line, '\n'); if (line != NULL) - line++; + line++; else - break; + break; } return NULL; @@ -387,42 +388,43 @@ for (line = header;;) { - if (strncmp (line, field, field_len) == 0 - && line[field_len] == ':' && line[field_len + 1] == ' ') - { - const char *oldvalue_start; - const char *oldvalue_end; - size_t oldvalue_len; - size_t header_part1_len; - size_t header_part3_len; - size_t result_len; - char *result; - - oldvalue_start = line + field_len + 2; - oldvalue_end = strchr (oldvalue_start, '\n'); - if (oldvalue_end == NULL) - oldvalue_end = oldvalue_start + strlen (oldvalue_start); - oldvalue_len = oldvalue_end - oldvalue_start; - - header_part1_len = oldvalue_start - header; - header_part3_len = header + header_len - oldvalue_end; - result_len = header_part1_len + value_len + header_part3_len; - /* = header_len - oldvalue_len + value_len */ - result = XNMALLOC (result_len + 1, char); - memcpy (result, header, header_part1_len); - memcpy (result + header_part1_len, value, value_len); - memcpy (result + header_part1_len + value_len, oldvalue_end, - header_part3_len); - *(result + result_len) = '\0'; - - return result; - } - - line = strchr (line, '\n'); - if (line != NULL) - line++; - else - break; + if (strncmp (line, field, field_len) == 0 && line[field_len] == ':') + { + const char *oldvalue_start; + const char *oldvalue_end; + size_t oldvalue_len; + size_t header_part1_len; + size_t header_part3_len; + size_t result_len; + char *result; + + oldvalue_start = line + field_len + 1; + if (*oldvalue_start == ' ') + oldvalue_start++; + oldvalue_end = strchr (oldvalue_start, '\n'); + if (oldvalue_end == NULL) + oldvalue_end = oldvalue_start + strlen (oldvalue_start); + oldvalue_len = oldvalue_end - oldvalue_start; + + header_part1_len = oldvalue_start - header; + header_part3_len = header + header_len - oldvalue_end; + result_len = header_part1_len + value_len + header_part3_len; + /* = header_len - oldvalue_len + value_len */ + result = XNMALLOC (result_len + 1, char); + memcpy (result, header, header_part1_len); + memcpy (result + header_part1_len, value, value_len); + memcpy (result + header_part1_len + value_len, oldvalue_end, + header_part3_len); + *(result + result_len) = '\0'; + + return result; + } + + line = strchr (line, '\n'); + if (line != NULL) + line++; + else + break; } } { @@ -548,7 +550,7 @@ mp->msgctxt = (msgctxt != NULL ? xstrdup (msgctxt) : NULL); if (old_msgctxt != NULL) - free (old_msgctxt); + free (old_msgctxt); } } @@ -577,7 +579,7 @@ mp->msgid = xstrdup (msgid); if (old_msgid != NULL) - free (old_msgid); + free (old_msgid); } } @@ -608,7 +610,7 @@ mp->msgid_plural = (msgid_plural != NULL ? xstrdup (msgid_plural) : NULL); if (old_msgid_plural != NULL) - free (old_msgid_plural); + free (old_msgid_plural); } } @@ -640,7 +642,7 @@ mp->msgstr = xstrdup (msgstr); mp->msgstr_len = strlen (mp->msgstr) + 1; if (old_msgstr != NULL) - free (old_msgstr); + free (old_msgstr); } } @@ -659,12 +661,12 @@ const char *p_end = mp->msgstr + mp->msgstr_len; for (p = mp->msgstr; ; p += strlen (p) + 1, index--) - { - if (p >= p_end) - return NULL; - if (index == 0) - break; - } + { + if (p >= p_end) + return NULL; + if (index == 0) + break; + } return p; } else @@ -687,66 +689,66 @@ char *copied_msgstr; /* Special care must be taken of the case that msgstr points into the - mp->msgstr string list, because mp->msgstr may be relocated before we - are done with msgstr. */ + mp->msgstr string list, because mp->msgstr may be relocated before we + are done with msgstr. */ if (msgstr >= p && msgstr < p_end) - msgstr = copied_msgstr = xstrdup (msgstr); + msgstr = copied_msgstr = xstrdup (msgstr); else - copied_msgstr = NULL; + copied_msgstr = NULL; for (; ; p += strlen (p) + 1, index--) - { - if (p >= p_end) - { - /* Append at the end. */ - if (msgstr != NULL) - { - size_t new_msgstr_len = mp->msgstr_len + index + strlen (msgstr) + 1; - - mp->msgstr = - (char *) xrealloc ((char *) mp->msgstr, new_msgstr_len); - p = (char *) mp->msgstr + mp->msgstr_len; - for (; index > 0; index--) - *p++ = '\0'; - memcpy (p, msgstr, strlen (msgstr) + 1); - mp->msgstr_len = new_msgstr_len; - } - if (copied_msgstr != NULL) - free (copied_msgstr); - return; - } - if (index == 0) - break; - } + { + if (p >= p_end) + { + /* Append at the end. */ + if (msgstr != NULL) + { + size_t new_msgstr_len = mp->msgstr_len + index + strlen (msgstr) + 1; + + mp->msgstr = + (char *) xrealloc ((char *) mp->msgstr, new_msgstr_len); + p = (char *) mp->msgstr + mp->msgstr_len; + for (; index > 0; index--) + *p++ = '\0'; + memcpy (p, msgstr, strlen (msgstr) + 1); + mp->msgstr_len = new_msgstr_len; + } + if (copied_msgstr != NULL) + free (copied_msgstr); + return; + } + if (index == 0) + break; + } if (msgstr == NULL) - { - if (p + strlen (p) + 1 >= p_end) - { - /* Remove the string that starts at p. */ - mp->msgstr_len = p - mp->msgstr; - return; - } - /* It is not possible to remove an element of the string list - except the last one. So just replace it with the empty string. - That's the best we can do here. */ - msgstr = ""; - } + { + if (p + strlen (p) + 1 >= p_end) + { + /* Remove the string that starts at p. */ + mp->msgstr_len = p - mp->msgstr; + return; + } + /* It is not possible to remove an element of the string list + except the last one. So just replace it with the empty string. + That's the best we can do here. */ + msgstr = ""; + } { - /* Replace the string that starts at p. */ - size_t i1 = p - mp->msgstr; - size_t i2before = i1 + strlen (p); - size_t i2after = i1 + strlen (msgstr); - size_t new_msgstr_len = mp->msgstr_len - i2before + i2after; - - if (i2after > i2before) - mp->msgstr = (char *) xrealloc ((char *) mp->msgstr, new_msgstr_len); - memmove ((char *) mp->msgstr + i2after, mp->msgstr + i2before, - mp->msgstr_len - i2before); - memcpy ((char *) mp->msgstr + i1, msgstr, i2after - i1); - mp->msgstr_len = new_msgstr_len; + /* Replace the string that starts at p. */ + size_t i1 = p - mp->msgstr; + size_t i2before = i1 + strlen (p); + size_t i2after = i1 + strlen (msgstr); + size_t new_msgstr_len = mp->msgstr_len - i2before + i2after; + + if (i2after > i2before) + mp->msgstr = (char *) xrealloc ((char *) mp->msgstr, new_msgstr_len); + memmove ((char *) mp->msgstr + i2after, mp->msgstr + i2before, + mp->msgstr_len - i2before); + memcpy ((char *) mp->msgstr + i1, msgstr, i2after - i1); + mp->msgstr_len = new_msgstr_len; } if (copied_msgstr != NULL) - free (copied_msgstr); + free (copied_msgstr); } } @@ -762,7 +764,7 @@ if (mp->comment == NULL || mp->comment->nitems == 0) return ""; else - return string_list_join (mp->comment, '\n', '\n', true); + return string_list_join (mp->comment, "\n", '\n', true); } @@ -782,19 +784,19 @@ rest = copy; while (*rest != '\0') { - char *newline = strchr (rest, '\n'); + char *newline = strchr (rest, '\n'); - if (newline != NULL) - { - *newline = '\0'; - string_list_append (slp, rest); - rest = newline + 1; - } - else - { - string_list_append (slp, rest); - break; - } + if (newline != NULL) + { + *newline = '\0'; + string_list_append (slp, rest); + rest = newline + 1; + } + else + { + string_list_append (slp, rest); + break; + } } free (copy); } @@ -817,7 +819,7 @@ if (mp->comment_dot == NULL || mp->comment_dot->nitems == 0) return ""; else - return string_list_join (mp->comment_dot, '\n', '\n', true); + return string_list_join (mp->comment_dot, "\n", '\n', true); } @@ -837,19 +839,19 @@ rest = copy; while (*rest != '\0') { - char *newline = strchr (rest, '\n'); + char *newline = strchr (rest, '\n'); - if (newline != NULL) - { - *newline = '\0'; - string_list_append (slp, rest); - rest = newline + 1; - } - else - { - string_list_append (slp, rest); - break; - } + if (newline != NULL) + { + *newline = '\0'; + string_list_append (slp, rest); + rest = newline + 1; + } + else + { + string_list_append (slp, rest); + break; + } } free (copy); } @@ -891,12 +893,12 @@ size_t n = mp->filepos_count; if (j < n) - { - mp->filepos_count = n = n - 1; - free ((char *) mp->filepos[j].file_name); - for (; j < n; j++) - mp->filepos[j] = mp->filepos[j + 1]; - } + { + mp->filepos_count = n = n - 1; + free ((char *) mp->filepos[j].file_name); + for (; j < n; j++) + mp->filepos[j] = mp->filepos[j + 1]; + } } } @@ -940,7 +942,7 @@ mp->prev_msgctxt = (prev_msgctxt != NULL ? xstrdup (prev_msgctxt) : NULL); if (old_prev_msgctxt != NULL) - free (old_prev_msgctxt); + free (old_prev_msgctxt); } } @@ -971,7 +973,7 @@ mp->prev_msgid = (prev_msgid != NULL ? xstrdup (prev_msgid) : NULL); if (old_prev_msgid != NULL) - free (old_prev_msgid); + free (old_prev_msgid); } } @@ -1001,9 +1003,9 @@ char *old_prev_msgid_plural = (char *) mp->prev_msgid_plural; mp->prev_msgid_plural = - (prev_msgid_plural != NULL ? xstrdup (prev_msgid_plural) : NULL); + (prev_msgid_plural != NULL ? xstrdup (prev_msgid_plural) : NULL); if (old_prev_msgid_plural != NULL) - free (old_prev_msgid_plural); + free (old_prev_msgid_plural); } } @@ -1065,9 +1067,9 @@ if (len >= 7 && memcmp (format_type + len - 7, "-format", 7) == 0) for (i = 0; i < NFORMATS; i++) if (strlen (format_language[i]) == len - 7 - && memcmp (format_language[i], format_type, len - 7) == 0) - /* The given format_type corresponds to (enum format_type) i. */ - return (possible_format_p (mp->is_format[i]) ? 1 : 0); + && memcmp (format_language[i], format_type, len - 7) == 0) + /* The given format_type corresponds to (enum format_type) i. */ + return (possible_format_p (mp->is_format[i]) ? 1 : 0); return 0; } @@ -1084,9 +1086,51 @@ if (len >= 7 && memcmp (format_type + len - 7, "-format", 7) == 0) for (i = 0; i < NFORMATS; i++) if (strlen (format_language[i]) == len - 7 - && memcmp (format_language[i], format_type, len - 7) == 0) - /* The given format_type corresponds to (enum format_type) i. */ - mp->is_format[i] = (value ? yes : no); + && memcmp (format_language[i], format_type, len - 7) == 0) + /* The given format_type corresponds to (enum format_type) i. */ + mp->is_format[i] = (value ? yes : no); +} + + +/* If a numeric range of a message is set, return true and store the minimum + and maximum value in *MINP and *MAXP. */ + +int +po_message_is_range (po_message_t message, int *minp, int *maxp) +{ + message_ty *mp = (message_ty *) message; + + if (has_range_p (mp->range)) + { + *minp = mp->range.min; + *minp = mp->range.max; + return 1; + } + else + return 0; +} + + +/* Change the numeric range of a message. MIN and MAX must be non-negative, + with MIN < MAX. Use MIN = MAX = -1 to remove the numeric range of a + message. */ + +void +po_message_set_range (po_message_t message, int min, int max) +{ + message_ty *mp = (message_ty *) message; + + if (min >= 0 && max >= min) + { + mp->range.min = min; + mp->range.max = max; + } + else if (min < 0 && max < 0) + { + mp->range.min = -1; + mp->range.max = -1; + } + /* Other values of min and max are invalid. */ } @@ -1124,7 +1168,7 @@ const char **list = XNMALLOC (NFORMATS + 1, const char *); size_t i; for (i = 0; i < NFORMATS; i++) - list[i] = xasprintf ("%s-format", format_language[i]); + list[i] = xasprintf ("%s-format", format_language[i]); list[i] = NULL; whole_list = list; } @@ -1145,9 +1189,9 @@ if (len >= 7 && memcmp (format_type + len - 7, "-format", 7) == 0) for (i = 0; i < NFORMATS; i++) if (strlen (format_language[i]) == len - 7 - && memcmp (format_language[i], format_type, len - 7) == 0) - /* The given format_type corresponds to (enum format_type) i. */ - return format_language_pretty[i]; + && memcmp (format_language[i], format_type, len - 7) == 0) + /* The given format_type corresponds to (enum format_type) i. */ + return format_language_pretty[i]; return NULL; } @@ -1185,7 +1229,7 @@ void po_message_check_all (po_message_t message, po_message_iterator_t iterator, - po_xerror_handler_t handler) + po_xerror_handler_t handler) { message_ty *mp = (message_ty *) message; @@ -1209,14 +1253,14 @@ header = NULL; mlp = - msgdomain_list_sublist (iterator->file->mdlp, iterator->domain, false); + msgdomain_list_sublist (iterator->file->mdlp, iterator->domain, false); if (mlp != NULL) - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - header = mlp->item[j]; - break; - } + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + header = mlp->item[j]; + break; + } } { @@ -1228,9 +1272,9 @@ ml.use_hashtable = false; if (header != NULL) - message_list_append (&ml, header); + message_list_append (&ml, header); if (mp != header) - message_list_append (&ml, mp); + message_list_append (&ml, mp); check_message_list (&ml, 1, 1, 1, 0, 0, 0); } @@ -1259,7 +1303,7 @@ handler->xerror2; if (!mp->obsolete) - check_message (mp, &mp->pos, 0, 1, NULL, 0, 0, 0, 0, 0); + check_message (mp, &mp->pos, 0, 1, NULL, 0, 0, 0, 0); /* Restore error handler. */ po_xerror = textmode_xerror; @@ -1302,8 +1346,8 @@ po_error = handler->error; check_msgid_msgstr_format (mp->msgid, mp->msgid_plural, - mp->msgstr, mp->msgstr_len, - mp->is_format, NULL, 0, po_error_logger); + mp->msgstr, mp->msgstr_len, + mp->is_format, mp->range, NULL, po_error_logger); /* Restore error handler. */ po_error = error; diff -Nru gettext-0.17/gettext-tools/libgettextpo/gettext-po.h.in gettext-0.18.1.1/gettext-tools/libgettextpo/gettext-po.h.in --- gettext-0.17/gettext-tools/libgettextpo/gettext-po.h.in 2007-11-02 00:30:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gettext-po.h.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Public API for GNU gettext PO files - contained in libgettextpo. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2008, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -28,7 +28,7 @@ /* =========================== Meta Information ============================ */ /* Version number: (major<<16) + (minor<<8) + subminor */ -#define LIBGETTEXTPO_VERSION 0x001100 +#define LIBGETTEXTPO_VERSION 0x001201 extern int libgettextpo_version; /* ================================= Types ================================= */ @@ -54,7 +54,7 @@ Must increment the error_message_count variable declared in error.h. Must not return if STATUS is nonzero. */ void (*error) (int status, int errnum, - const char *format, ...) + const char *format, ...) #if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__ __attribute__ ((__format__ (__printf__, 3, 4))) #endif @@ -66,8 +66,8 @@ Must increment the error_message_count variable declared in error.h. Must not return if STATUS is nonzero. */ void (*error_at_line) (int status, int errnum, - const char *filename, unsigned int lineno, - const char *format, ...) + const char *filename, unsigned int lineno, + const char *format, ...) #if ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3) && !__STRICT_ANSI__ __attribute__ ((__format__ (__printf__, 5, 6))) #endif @@ -86,9 +86,9 @@ typedef const struct po_error_handler *po_error_handler_t; /* A po_xerror_handler handles warnings, error and fatal error situations. */ -#define PO_SEVERITY_WARNING 0 /* just a warning, tell the user */ -#define PO_SEVERITY_ERROR 1 /* an error, the operation cannot complete */ -#define PO_SEVERITY_FATAL_ERROR 2 /* an error, the operation must be aborted */ +#define PO_SEVERITY_WARNING 0 /* just a warning, tell the user */ +#define PO_SEVERITY_ERROR 1 /* an error, the operation cannot complete */ +#define PO_SEVERITY_FATAL_ERROR 2 /* an error, the operation must be aborted */ struct po_xerror_handler { /* Signal a problem of the given severity. @@ -101,20 +101,20 @@ usually a single line). Must not return if SEVERITY is PO_SEVERITY_FATAL_ERROR. */ void (*xerror) (int severity, - po_message_t message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text); + po_message_t message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text); /* Signal a problem that refers to two messages. Similar to two calls to xerror. If possible, a "..." can be appended to MESSAGE_TEXT1 and prepended to MESSAGE_TEXT2. */ void (*xerror2) (int severity, - po_message_t message1, - const char *filename1, size_t lineno1, size_t column1, - int multiline_p1, const char *message_text1, - po_message_t message2, - const char *filename2, size_t lineno2, size_t column2, - int multiline_p2, const char *message_text2); + po_message_t message1, + const char *filename1, size_t lineno1, size_t column1, + int multiline_p1, const char *message_text1, + po_message_t message2, + const char *filename2, size_t lineno2, size_t column2, + int multiline_p2, const char *message_text2); }; typedef const struct po_xerror_handler *po_xerror_handler_t; @@ -134,13 +134,13 @@ Return its contents. Upon failure, return NULL and set errno. */ #define po_file_read po_file_read_v3 extern po_file_t po_file_read (const char *filename, - po_xerror_handler_t handler); + po_xerror_handler_t handler); /* Write an in-memory PO file to a file. Upon failure, return NULL and set errno. */ #define po_file_write po_file_write_v2 extern po_file_t po_file_write (po_file_t file, const char *filename, - po_xerror_handler_t handler); + po_xerror_handler_t handler); /* Free a PO file from memory. */ extern void po_file_free (po_file_t file); @@ -301,6 +301,15 @@ /* Change the format string mark for a given type of a message. */ extern void po_message_set_format (po_message_t message, const char *format_type, /*bool*/int value); +/* If a numeric range of a message is set, return true and store the minimum + and maximum value in *MINP and *MAXP. */ +extern int po_message_is_range (po_message_t message, int *minp, int *maxp); + +/* Change the numeric range of a message. MIN and MAX must be non-negative, + with MIN < MAX. Use MIN = MAX = -1 to remove the numeric range of a + message. */ +extern void po_message_set_range (po_message_t message, int min, int max); + /* =========================== po_filepos_t API ============================ */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/glthread/lock.c gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/lock.c --- gettext-0.17/gettext-tools/libgettextpo/glthread/lock.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/lock.c 2010-02-16 21:33:14.000000000 +0000 @@ -0,0 +1,1058 @@ +/* Locking in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +#include + +#include "glthread/lock.h" + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +# if HAVE_PTHREAD_RWLOCK + +# if !defined PTHREAD_RWLOCK_INITIALIZER + +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_rwlock_init (&lock->rwlock, NULL); + if (err != 0) + return err; + lock->initialized = 1; + return 0; +} + +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_rwlock_rdlock (&lock->rwlock); +} + +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_rwlock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_rwlock_wrlock (&lock->rwlock); +} + +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) +{ + if (!lock->initialized) + return EINVAL; + return pthread_rwlock_unlock (&lock->rwlock); +} + +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) +{ + int err; + + if (!lock->initialized) + return EINVAL; + err = pthread_rwlock_destroy (&lock->rwlock); + if (err != 0) + return err; + lock->initialized = 0; + return 0; +} + +# endif + +# else + +int +glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_init (&lock->lock, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_readers, NULL); + if (err != 0) + return err; + err = pthread_cond_init (&lock->waiting_writers, NULL); + if (err != 0) + return err; + lock->waiting_writers_count = 0; + lock->runcount = 0; + return 0; +} + +int +glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + /* Test whether only readers are currently running, and whether the runcount + field will not overflow. */ + /* POSIX says: "It is implementation-defined whether the calling thread + acquires the lock when a writer does not hold the lock and there are + writers blocked on the lock." Let's say, no: give the writers a higher + priority. */ + while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_readers. */ + err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + lock->runcount++; + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + /* Test whether no readers or writers are currently running. */ + while (!(lock->runcount == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_writers. */ + lock->waiting_writers_count++; + err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); + if (err != 0) + { + lock->waiting_writers_count--; + pthread_mutex_unlock (&lock->lock); + return err; + } + lock->waiting_writers_count--; + } + lock->runcount--; /* runcount becomes -1 */ + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_lock (&lock->lock); + if (err != 0) + return err; + if (lock->runcount < 0) + { + /* Drop a writer lock. */ + if (!(lock->runcount == -1)) + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } + lock->runcount = 0; + } + else + { + /* Drop a reader lock. */ + if (!(lock->runcount > 0)) + { + pthread_mutex_unlock (&lock->lock); + return EINVAL; + } + lock->runcount--; + } + if (lock->runcount == 0) + { + /* POSIX recommends that "write locks shall take precedence over read + locks", to avoid "writer starvation". */ + if (lock->waiting_writers_count > 0) + { + /* Wake up one of the waiting writers. */ + err = pthread_cond_signal (&lock->waiting_writers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + else + { + /* Wake up all waiting readers. */ + err = pthread_cond_broadcast (&lock->waiting_readers); + if (err != 0) + { + pthread_mutex_unlock (&lock->lock); + return err; + } + } + } + return pthread_mutex_unlock (&lock->lock); +} + +int +glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) +{ + int err; + + err = pthread_mutex_destroy (&lock->lock); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_readers); + if (err != 0) + return err; + err = pthread_cond_destroy (&lock->waiting_writers); + if (err != 0) + return err; + return 0; +} + +# endif + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +# if HAVE_PTHREAD_MUTEX_RECURSIVE + +# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_mutexattr_t attributes; + int err; + + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (lock, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; + return 0; +} + +# else + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_mutexattr_t attributes; + int err; + + err = pthread_mutexattr_init (&attributes); + if (err != 0) + return err; + err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutex_init (&lock->recmutex, &attributes); + if (err != 0) + { + pthread_mutexattr_destroy (&attributes); + return err; + } + err = pthread_mutexattr_destroy (&attributes); + if (err != 0) + return err; + lock->initialized = 1; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + if (!lock->initialized) + { + int err; + + err = pthread_mutex_lock (&lock->guard); + if (err != 0) + return err; + if (!lock->initialized) + { + err = glthread_recursive_lock_init_multithreaded (lock); + if (err != 0) + { + pthread_mutex_unlock (&lock->guard); + return err; + } + } + err = pthread_mutex_unlock (&lock->guard); + if (err != 0) + return err; + } + return pthread_mutex_lock (&lock->recmutex); +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (!lock->initialized) + return EINVAL; + return pthread_mutex_unlock (&lock->recmutex); +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + if (!lock->initialized) + return EINVAL; + err = pthread_mutex_destroy (&lock->recmutex); + if (err != 0) + return err; + lock->initialized = 0; + return 0; +} + +# endif + +# else + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + err = pthread_mutex_init (&lock->mutex, NULL); + if (err != 0) + return err; + lock->owner = (pthread_t) 0; + lock->depth = 0; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + pthread_t self = pthread_self (); + if (lock->owner != self) + { + int err; + + err = pthread_mutex_lock (&lock->mutex); + if (err != 0) + return err; + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + return 0; +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != pthread_self ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = (pthread_t) 0; + return pthread_mutex_unlock (&lock->mutex); + } + else + return 0; +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != (pthread_t) 0) + return EBUSY; + return pthread_mutex_destroy (&lock->mutex); +} + +# endif + +/* -------------------------- gl_once_t datatype -------------------------- */ + +static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; + +int +glthread_once_singlethreaded (pthread_once_t *once_control) +{ + /* We don't know whether pthread_once_t is an integer type, a floating-point + type, a pointer type, or a structure type. */ + char *firstbyte = (char *)once_control; + if (*firstbyte == *(const char *)&fresh_once) + { + /* First time use of once_control. Invert the first byte. */ + *firstbyte = ~ *(const char *)&fresh_once; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* -------------------------- gl_once_t datatype -------------------------- */ + +static void +glthread_once_call (void *arg) +{ + void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; + void (*initfunction) (void) = *gl_once_temp_addr; + initfunction (); +} + +int +glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)) +{ + void (*temp) (void) = initfunction; + return (!pth_once (once_control, glthread_once_call, &temp) ? errno : 0); +} + +int +glthread_once_singlethreaded (pth_once_t *once_control) +{ + /* We know that pth_once_t is an integer type. */ + if (*once_control == PTH_ONCE_INIT) + { + /* First time use of once_control. Invert the marker. */ + *once_control = ~ PTH_ONCE_INIT; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +int +glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) +{ + int err; + + err = mutex_init (&lock->mutex, USYNC_THREAD, NULL); + if (err != 0) + return err; + lock->owner = (thread_t) 0; + lock->depth = 0; + return 0; +} + +int +glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) +{ + thread_t self = thr_self (); + if (lock->owner != self) + { + int err; + + err = mutex_lock (&lock->mutex); + if (err != 0) + return err; + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + return 0; +} + +int +glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != thr_self ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = (thread_t) 0; + return mutex_unlock (&lock->mutex); + } + else + return 0; +} + +int +glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) +{ + if (lock->owner != (thread_t) 0) + return EBUSY; + return mutex_destroy (&lock->mutex); +} + +/* -------------------------- gl_once_t datatype -------------------------- */ + +int +glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)) +{ + if (!once_control->inited) + { + int err; + + /* Use the mutex to guarantee that if another thread is already calling + the initfunction, this thread waits until it's finished. */ + err = mutex_lock (&once_control->mutex); + if (err != 0) + return err; + if (!once_control->inited) + { + once_control->inited = 1; + initfunction (); + } + return mutex_unlock (&once_control->mutex); + } + else + return 0; +} + +int +glthread_once_singlethreaded (gl_once_t *once_control) +{ + /* We know that gl_once_t contains an integer type. */ + if (!once_control->inited) + { + /* First time use of once_control. Invert the marker. */ + once_control->inited = ~ 0; + return 1; + } + else + return 0; +} + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +void +glthread_lock_init_func (gl_lock_t *lock) +{ + InitializeCriticalSection (&lock->lock); + lock->guard.done = 1; +} + +int +glthread_lock_lock_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_lock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + return 0; +} + +int +glthread_lock_unlock_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_lock_destroy_func (gl_lock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + DeleteCriticalSection (&lock->lock); + lock->guard.done = 0; + return 0; +} + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* In this file, the waitqueues are implemented as circular arrays. */ +#define gl_waitqueue_t gl_carray_waitqueue_t + +static inline void +gl_waitqueue_init (gl_waitqueue_t *wq) +{ + wq->array = NULL; + wq->count = 0; + wq->alloc = 0; + wq->offset = 0; +} + +/* Enqueues the current thread, represented by an event, in a wait queue. + Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ +static HANDLE +gl_waitqueue_add (gl_waitqueue_t *wq) +{ + HANDLE event; + unsigned int index; + + if (wq->count == wq->alloc) + { + unsigned int new_alloc = 2 * wq->alloc + 1; + HANDLE *new_array = + (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); + if (new_array == NULL) + /* No more memory. */ + return INVALID_HANDLE_VALUE; + /* Now is a good opportunity to rotate the array so that its contents + starts at offset 0. */ + if (wq->offset > 0) + { + unsigned int old_count = wq->count; + unsigned int old_alloc = wq->alloc; + unsigned int old_offset = wq->offset; + unsigned int i; + if (old_offset + old_count > old_alloc) + { + unsigned int limit = old_offset + old_count - old_alloc; + for (i = 0; i < limit; i++) + new_array[old_alloc + i] = new_array[i]; + } + for (i = 0; i < old_count; i++) + new_array[i] = new_array[old_offset + i]; + wq->offset = 0; + } + wq->array = new_array; + wq->alloc = new_alloc; + } + /* Whether the created event is a manual-reset one or an auto-reset one, + does not matter, since we will wait on it only once. */ + event = CreateEvent (NULL, TRUE, FALSE, NULL); + if (event == INVALID_HANDLE_VALUE) + /* No way to allocate an event. */ + return INVALID_HANDLE_VALUE; + index = wq->offset + wq->count; + if (index >= wq->alloc) + index -= wq->alloc; + wq->array[index] = event; + wq->count++; + return event; +} + +/* Notifies the first thread from a wait queue and dequeues it. */ +static inline void +gl_waitqueue_notify_first (gl_waitqueue_t *wq) +{ + SetEvent (wq->array[wq->offset + 0]); + wq->offset++; + wq->count--; + if (wq->count == 0 || wq->offset == wq->alloc) + wq->offset = 0; +} + +/* Notifies all threads from a wait queue and dequeues them all. */ +static inline void +gl_waitqueue_notify_all (gl_waitqueue_t *wq) +{ + unsigned int i; + + for (i = 0; i < wq->count; i++) + { + unsigned int index = wq->offset + i; + if (index >= wq->alloc) + index -= wq->alloc; + SetEvent (wq->array[index]); + } + wq->count = 0; + wq->offset = 0; +} + +void +glthread_rwlock_init_func (gl_rwlock_t *lock) +{ + InitializeCriticalSection (&lock->lock); + gl_waitqueue_init (&lock->waiting_readers); + gl_waitqueue_init (&lock->waiting_writers); + lock->runcount = 0; + lock->guard.done = 1; +} + +int +glthread_rwlock_rdlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + /* Test whether only readers are currently running, and whether the runcount + field will not overflow. */ + if (!(lock->runcount + 1 > 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_readers. */ + HANDLE event = gl_waitqueue_add (&lock->waiting_readers); + if (event != INVALID_HANDLE_VALUE) + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_readers, incremented lock->runcount. */ + if (!(lock->runcount > 0)) + abort (); + return 0; + } + else + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount + 1 > 0)); + } + } + lock->runcount++; + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_wrlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_rwlock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + EnterCriticalSection (&lock->lock); + /* Test whether no readers or writers are currently running. */ + if (!(lock->runcount == 0)) + { + /* This thread has to wait for a while. Enqueue it among the + waiting_writers. */ + HANDLE event = gl_waitqueue_add (&lock->waiting_writers); + if (event != INVALID_HANDLE_VALUE) + { + DWORD result; + LeaveCriticalSection (&lock->lock); + /* Wait until another thread signals this event. */ + result = WaitForSingleObject (event, INFINITE); + if (result == WAIT_FAILED || result == WAIT_TIMEOUT) + abort (); + CloseHandle (event); + /* The thread which signalled the event already did the bookkeeping: + removed us from the waiting_writers, set lock->runcount = -1. */ + if (!(lock->runcount == -1)) + abort (); + return 0; + } + else + { + /* Allocation failure. Weird. */ + do + { + LeaveCriticalSection (&lock->lock); + Sleep (1); + EnterCriticalSection (&lock->lock); + } + while (!(lock->runcount == 0)); + } + } + lock->runcount--; /* runcount becomes -1 */ + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_unlock_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + EnterCriticalSection (&lock->lock); + if (lock->runcount < 0) + { + /* Drop a writer lock. */ + if (!(lock->runcount == -1)) + abort (); + lock->runcount = 0; + } + else + { + /* Drop a reader lock. */ + if (!(lock->runcount > 0)) + { + LeaveCriticalSection (&lock->lock); + return EPERM; + } + lock->runcount--; + } + if (lock->runcount == 0) + { + /* POSIX recommends that "write locks shall take precedence over read + locks", to avoid "writer starvation". */ + if (lock->waiting_writers.count > 0) + { + /* Wake up one of the waiting writers. */ + lock->runcount--; + gl_waitqueue_notify_first (&lock->waiting_writers); + } + else + { + /* Wake up all waiting readers. */ + lock->runcount += lock->waiting_readers.count; + gl_waitqueue_notify_all (&lock->waiting_readers); + } + } + LeaveCriticalSection (&lock->lock); + return 0; +} + +int +glthread_rwlock_destroy_func (gl_rwlock_t *lock) +{ + if (!lock->guard.done) + return EINVAL; + if (lock->runcount != 0) + return EBUSY; + DeleteCriticalSection (&lock->lock); + if (lock->waiting_readers.array != NULL) + free (lock->waiting_readers.array); + if (lock->waiting_writers.array != NULL) + free (lock->waiting_writers.array); + lock->guard.done = 0; + return 0; +} + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +void +glthread_recursive_lock_init_func (gl_recursive_lock_t *lock) +{ + lock->owner = 0; + lock->depth = 0; + InitializeCriticalSection (&lock->lock); + lock->guard.done = 1; +} + +int +glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock) +{ + if (!lock->guard.done) + { + if (InterlockedIncrement (&lock->guard.started) == 0) + /* This thread is the first one to need this lock. Initialize it. */ + glthread_recursive_lock_init (lock); + else + /* Yield the CPU while waiting for another thread to finish + initializing this lock. */ + while (!lock->guard.done) + Sleep (0); + } + { + DWORD self = GetCurrentThreadId (); + if (lock->owner != self) + { + EnterCriticalSection (&lock->lock); + lock->owner = self; + } + if (++(lock->depth) == 0) /* wraparound? */ + { + lock->depth--; + return EAGAIN; + } + } + return 0; +} + +int +glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock) +{ + if (lock->owner != GetCurrentThreadId ()) + return EPERM; + if (lock->depth == 0) + return EINVAL; + if (--(lock->depth) == 0) + { + lock->owner = 0; + LeaveCriticalSection (&lock->lock); + } + return 0; +} + +int +glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock) +{ + if (lock->owner != 0) + return EBUSY; + DeleteCriticalSection (&lock->lock); + lock->guard.done = 0; + return 0; +} + +/* -------------------------- gl_once_t datatype -------------------------- */ + +void +glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)) +{ + if (once_control->inited <= 0) + { + if (InterlockedIncrement (&once_control->started) == 0) + { + /* This thread is the first one to come to this once_control. */ + InitializeCriticalSection (&once_control->lock); + EnterCriticalSection (&once_control->lock); + once_control->inited = 0; + initfunction (); + once_control->inited = 1; + LeaveCriticalSection (&once_control->lock); + } + else + { + /* Undo last operation. */ + InterlockedDecrement (&once_control->started); + /* Some other thread has already started the initialization. + Yield the CPU while waiting for the other thread to finish + initializing and taking the lock. */ + while (once_control->inited < 0) + Sleep (0); + if (once_control->inited <= 0) + { + /* Take the lock. This blocks until the other thread has + finished calling the initfunction. */ + EnterCriticalSection (&once_control->lock); + LeaveCriticalSection (&once_control->lock); + if (!(once_control->inited > 0)) + abort (); + } + } + } +} + +#endif + +/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/glthread/lock.h gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/lock.h --- gettext-0.17/gettext-tools/libgettextpo/glthread/lock.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/lock.h 2010-03-28 18:33:18.000000000 +0000 @@ -0,0 +1,927 @@ +/* Locking in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. + Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, + gthr-win32.h. */ + +/* This file contains locking primitives for use with a given thread library. + It does not contain primitives for creating threads or for other + synchronization primitives. + + Normal (non-recursive) locks: + Type: gl_lock_t + Declaration: gl_lock_define(extern, name) + Initializer: gl_lock_define_initialized(, name) + Initialization: gl_lock_init (name); + Taking the lock: gl_lock_lock (name); + Releasing the lock: gl_lock_unlock (name); + De-initialization: gl_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_lock_init (&name); + Taking the lock: err = glthread_lock_lock (&name); + Releasing the lock: err = glthread_lock_unlock (&name); + De-initialization: err = glthread_lock_destroy (&name); + + Read-Write (non-recursive) locks: + Type: gl_rwlock_t + Declaration: gl_rwlock_define(extern, name) + Initializer: gl_rwlock_define_initialized(, name) + Initialization: gl_rwlock_init (name); + Taking the lock: gl_rwlock_rdlock (name); + gl_rwlock_wrlock (name); + Releasing the lock: gl_rwlock_unlock (name); + De-initialization: gl_rwlock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_rwlock_init (&name); + Taking the lock: err = glthread_rwlock_rdlock (&name); + err = glthread_rwlock_wrlock (&name); + Releasing the lock: err = glthread_rwlock_unlock (&name); + De-initialization: err = glthread_rwlock_destroy (&name); + + Recursive locks: + Type: gl_recursive_lock_t + Declaration: gl_recursive_lock_define(extern, name) + Initializer: gl_recursive_lock_define_initialized(, name) + Initialization: gl_recursive_lock_init (name); + Taking the lock: gl_recursive_lock_lock (name); + Releasing the lock: gl_recursive_lock_unlock (name); + De-initialization: gl_recursive_lock_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_recursive_lock_init (&name); + Taking the lock: err = glthread_recursive_lock_lock (&name); + Releasing the lock: err = glthread_recursive_lock_unlock (&name); + De-initialization: err = glthread_recursive_lock_destroy (&name); + + Once-only execution: + Type: gl_once_t + Initializer: gl_once_define(extern, name) + Execution: gl_once (name, initfunction); + Equivalent functions with control of error handling: + Execution: err = glthread_once (&name, initfunction); +*/ + + +#ifndef _LOCK_H +#define _LOCK_H + +#include +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The pthread_in_use() detection needs to be done at runtime. */ +# define pthread_in_use() \ + glthread_in_use () +extern int glthread_in_use (void); + +# endif + +# if USE_POSIX_THREADS_WEAK + +/* Use weak references to the POSIX threads library. */ + +/* Weak references avoid dragging in external libraries if the other parts + of the program don't use them. Here we use them, because we don't want + every program that uses libintl to depend on libpthread. This assumes + that libpthread would not be loaded after libintl; i.e. if libintl is + loaded first, by an executable that does not depend on libpthread, and + then a module is dynamically loaded that depends on libpthread, libintl + will not be multithread-safe. */ + +/* The way to test at runtime whether libpthread is present is to test + whether a function pointer's value, such as &pthread_mutex_init, is + non-NULL. However, some versions of GCC have a bug through which, in + PIC mode, &foo != NULL always evaluates to true if there is a direct + call to foo(...) in the same function. To avoid this, we test the + address of a function in libpthread that we don't use. */ + +# pragma weak pthread_mutex_init +# pragma weak pthread_mutex_lock +# pragma weak pthread_mutex_unlock +# pragma weak pthread_mutex_destroy +# pragma weak pthread_rwlock_init +# pragma weak pthread_rwlock_rdlock +# pragma weak pthread_rwlock_wrlock +# pragma weak pthread_rwlock_unlock +# pragma weak pthread_rwlock_destroy +# pragma weak pthread_once +# pragma weak pthread_cond_init +# pragma weak pthread_cond_wait +# pragma weak pthread_cond_signal +# pragma weak pthread_cond_broadcast +# pragma weak pthread_cond_destroy +# pragma weak pthread_mutexattr_init +# pragma weak pthread_mutexattr_settype +# pragma weak pthread_mutexattr_destroy +# ifndef pthread_self +# pragma weak pthread_self +# endif + +# if !PTHREAD_IN_USE_DETECTION_HARD +# pragma weak pthread_cancel +# define pthread_in_use() (pthread_cancel != NULL) +# endif + +# else + +# if !PTHREAD_IN_USE_DETECTION_HARD +# define pthread_in_use() 1 +# endif + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef pthread_mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + PTHREAD_MUTEX_INITIALIZER +# define glthread_lock_init(LOCK) \ + (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +# if HAVE_PTHREAD_RWLOCK + +# ifdef PTHREAD_RWLOCK_INITIALIZER + +typedef pthread_rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + PTHREAD_RWLOCK_INITIALIZER +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0) + +# else + +typedef struct + { + int initialized; + pthread_mutex_t guard; /* protects the initialization */ + pthread_rwlock_t rwlock; /* read-write lock */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { 0, PTHREAD_MUTEX_INITIALIZER } +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); + +# endif + +# else + +typedef struct + { + pthread_mutex_t lock; /* protects the remaining fields */ + pthread_cond_t waiting_readers; /* waiting readers */ + pthread_cond_t waiting_writers; /* waiting writers */ + unsigned int waiting_writers_count; /* number of waiting writers */ + int runcount; /* number of readers running, or -1 when a writer runs */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } +# define glthread_rwlock_init(LOCK) \ + (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) +extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); + +# endif + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +# if HAVE_PTHREAD_MUTEX_RECURSIVE + +# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP + +typedef pthread_mutex_t gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; +# ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER +# define gl_recursive_lock_initializer \ + PTHREAD_RECURSIVE_MUTEX_INITIALIZER +# else +# define gl_recursive_lock_initializer \ + PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP +# endif +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); + +# else + +typedef struct + { + pthread_mutex_t recmutex; /* recursive mutex */ + pthread_mutex_t guard; /* protects the initialization */ + int initialized; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +# endif + +# else + +/* Old versions of POSIX threads on Solaris did not have recursive locks. + We have to implement them ourselves. */ + +typedef struct + { + pthread_mutex_t mutex; + pthread_t owner; + unsigned long depth; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +# endif + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef pthread_once_t gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pthread_in_use () \ + ? pthread_once (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_singlethreaded (pthread_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_PTH_THREADS_WEAK + +/* Use weak references to the GNU Pth threads library. */ + +# pragma weak pth_mutex_init +# pragma weak pth_mutex_acquire +# pragma weak pth_mutex_release +# pragma weak pth_rwlock_init +# pragma weak pth_rwlock_acquire +# pragma weak pth_rwlock_release +# pragma weak pth_once + +# pragma weak pth_cancel +# define pth_in_use() (pth_cancel != NULL) + +# else + +# define pth_in_use() 1 + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef pth_mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + PTH_MUTEX_INIT +# define glthread_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_lock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef pth_rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + PTH_RWLOCK_INIT +# define glthread_rwlock_init(LOCK) \ + (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0) +# define glthread_rwlock_unlock(LOCK) \ + (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0) +# define glthread_rwlock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* In Pth, mutexes are recursive by default. */ +typedef pth_mutex_t gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + PTH_MUTEX_INIT +# define glthread_recursive_lock_init(LOCK) \ + (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + ((void)(LOCK), 0) + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef pth_once_t gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (pth_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)); +extern int glthread_once_singlethreaded (pth_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include +# include + +# ifdef __cplusplus +extern "C" { +# endif + +# if USE_SOLARIS_THREADS_WEAK + +/* Use weak references to the old Solaris threads library. */ + +# pragma weak mutex_init +# pragma weak mutex_lock +# pragma weak mutex_unlock +# pragma weak mutex_destroy +# pragma weak rwlock_init +# pragma weak rw_rdlock +# pragma weak rw_wrlock +# pragma weak rw_unlock +# pragma weak rwlock_destroy +# pragma weak thr_self + +# pragma weak thr_suspend +# define thread_in_use() (thr_suspend != NULL) + +# else + +# define thread_in_use() 1 + +# endif + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef mutex_t gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS mutex_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS mutex_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + DEFAULTMUTEX +# define glthread_lock_init(LOCK) \ + (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_lock_lock(LOCK) \ + (thread_in_use () ? mutex_lock (LOCK) : 0) +# define glthread_lock_unlock(LOCK) \ + (thread_in_use () ? mutex_unlock (LOCK) : 0) +# define glthread_lock_destroy(LOCK) \ + (thread_in_use () ? mutex_destroy (LOCK) : 0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef rwlock_t gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + DEFAULTRWLOCK +# define glthread_rwlock_init(LOCK) \ + (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0) +# define glthread_rwlock_rdlock(LOCK) \ + (thread_in_use () ? rw_rdlock (LOCK) : 0) +# define glthread_rwlock_wrlock(LOCK) \ + (thread_in_use () ? rw_wrlock (LOCK) : 0) +# define glthread_rwlock_unlock(LOCK) \ + (thread_in_use () ? rw_unlock (LOCK) : 0) +# define glthread_rwlock_destroy(LOCK) \ + (thread_in_use () ? rwlock_destroy (LOCK) : 0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* Old Solaris threads did not have recursive locks. + We have to implement them ourselves. */ + +typedef struct + { + mutex_t mutex; + thread_t owner; + unsigned long depth; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { DEFAULTMUTEX, (thread_t) 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_lock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_unlock(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) +# define glthread_recursive_lock_destroy(LOCK) \ + (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) +extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef struct + { + volatile int inited; + mutex_t mutex; + } + gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (thread_in_use () \ + ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ + : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) +extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)); +extern int glthread_once_singlethreaded (gl_once_t *once_control); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +# ifdef __cplusplus +extern "C" { +# endif + +/* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, + Semaphore types, because + - we need only to synchronize inside a single process (address space), + not inter-process locking, + - we don't need to support trylock operations. (TryEnterCriticalSection + does not work on Windows 95/98/ME. Packages that need trylock usually + define their own mutex type.) */ + +/* There is no way to statically initialize a CRITICAL_SECTION. It needs + to be done lazily, once only. For this we need spinlocks. */ + +typedef struct { volatile int done; volatile long started; } gl_spinlock_t; + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + CRITICAL_SECTION lock; + } + gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_lock_t NAME; +# define gl_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_lock_t NAME = gl_lock_initializer; +# define gl_lock_initializer \ + { { 0, -1 } } +# define glthread_lock_init(LOCK) \ + (glthread_lock_init_func (LOCK), 0) +# define glthread_lock_lock(LOCK) \ + glthread_lock_lock_func (LOCK) +# define glthread_lock_unlock(LOCK) \ + glthread_lock_unlock_func (LOCK) +# define glthread_lock_destroy(LOCK) \ + glthread_lock_destroy_func (LOCK) +extern void glthread_lock_init_func (gl_lock_t *lock); +extern int glthread_lock_lock_func (gl_lock_t *lock); +extern int glthread_lock_unlock_func (gl_lock_t *lock); +extern int glthread_lock_destroy_func (gl_lock_t *lock); + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +/* It is impossible to implement read-write locks using plain locks, without + introducing an extra thread dedicated to managing read-write locks. + Therefore here we need to use the low-level Event type. */ + +typedef struct + { + HANDLE *array; /* array of waiting threads, each represented by an event */ + unsigned int count; /* number of waiting threads */ + unsigned int alloc; /* length of allocated array */ + unsigned int offset; /* index of first waiting thread in array */ + } + gl_carray_waitqueue_t; +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + CRITICAL_SECTION lock; /* protects the remaining fields */ + gl_carray_waitqueue_t waiting_readers; /* waiting readers */ + gl_carray_waitqueue_t waiting_writers; /* waiting writers */ + int runcount; /* number of readers running, or -1 when a writer runs */ + } + gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME; +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; +# define gl_rwlock_initializer \ + { { 0, -1 } } +# define glthread_rwlock_init(LOCK) \ + (glthread_rwlock_init_func (LOCK), 0) +# define glthread_rwlock_rdlock(LOCK) \ + glthread_rwlock_rdlock_func (LOCK) +# define glthread_rwlock_wrlock(LOCK) \ + glthread_rwlock_wrlock_func (LOCK) +# define glthread_rwlock_unlock(LOCK) \ + glthread_rwlock_unlock_func (LOCK) +# define glthread_rwlock_destroy(LOCK) \ + glthread_rwlock_destroy_func (LOCK) +extern void glthread_rwlock_init_func (gl_rwlock_t *lock); +extern int glthread_rwlock_rdlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_wrlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_unlock_func (gl_rwlock_t *lock); +extern int glthread_rwlock_destroy_func (gl_rwlock_t *lock); + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +/* The Win32 documentation says that CRITICAL_SECTION already implements a + recursive lock. But we need not rely on it: It's easy to implement a + recursive lock without this assumption. */ + +typedef struct + { + gl_spinlock_t guard; /* protects the initialization */ + DWORD owner; + unsigned long depth; + CRITICAL_SECTION lock; + } + gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME; +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ + STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; +# define gl_recursive_lock_initializer \ + { { 0, -1 }, 0, 0 } +# define glthread_recursive_lock_init(LOCK) \ + (glthread_recursive_lock_init_func (LOCK), 0) +# define glthread_recursive_lock_lock(LOCK) \ + glthread_recursive_lock_lock_func (LOCK) +# define glthread_recursive_lock_unlock(LOCK) \ + glthread_recursive_lock_unlock_func (LOCK) +# define glthread_recursive_lock_destroy(LOCK) \ + glthread_recursive_lock_destroy_func (LOCK) +extern void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock); +extern int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock); + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef struct + { + volatile int inited; + volatile long started; + CRITICAL_SECTION lock; + } + gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = { -1, -1 }; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0) +extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)); + +# ifdef __cplusplus +} +# endif + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +typedef int gl_lock_t; +# define gl_lock_define(STORAGECLASS, NAME) +# define gl_lock_define_initialized(STORAGECLASS, NAME) +# define glthread_lock_init(NAME) 0 +# define glthread_lock_lock(NAME) 0 +# define glthread_lock_unlock(NAME) 0 +# define glthread_lock_destroy(NAME) 0 + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +typedef int gl_rwlock_t; +# define gl_rwlock_define(STORAGECLASS, NAME) +# define gl_rwlock_define_initialized(STORAGECLASS, NAME) +# define glthread_rwlock_init(NAME) 0 +# define glthread_rwlock_rdlock(NAME) 0 +# define glthread_rwlock_wrlock(NAME) 0 +# define glthread_rwlock_unlock(NAME) 0 +# define glthread_rwlock_destroy(NAME) 0 + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +typedef int gl_recursive_lock_t; +# define gl_recursive_lock_define(STORAGECLASS, NAME) +# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) +# define glthread_recursive_lock_init(NAME) 0 +# define glthread_recursive_lock_lock(NAME) 0 +# define glthread_recursive_lock_unlock(NAME) 0 +# define glthread_recursive_lock_destroy(NAME) 0 + +/* -------------------------- gl_once_t datatype -------------------------- */ + +typedef int gl_once_t; +# define gl_once_define(STORAGECLASS, NAME) \ + STORAGECLASS gl_once_t NAME = 0; +# define glthread_once(ONCE_CONTROL, INITFUNCTION) \ + (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0) + +#endif + +/* ========================================================================= */ + +/* Macros with built-in error handling. */ + +/* -------------------------- gl_lock_t datatype -------------------------- */ + +#define gl_lock_init(NAME) \ + do \ + { \ + if (glthread_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_lock(NAME) \ + do \ + { \ + if (glthread_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_unlock(NAME) \ + do \ + { \ + if (glthread_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_lock_destroy(NAME) \ + do \ + { \ + if (glthread_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* ------------------------- gl_rwlock_t datatype ------------------------- */ + +#define gl_rwlock_init(NAME) \ + do \ + { \ + if (glthread_rwlock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_rdlock(NAME) \ + do \ + { \ + if (glthread_rwlock_rdlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_wrlock(NAME) \ + do \ + { \ + if (glthread_rwlock_wrlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_unlock(NAME) \ + do \ + { \ + if (glthread_rwlock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_rwlock_destroy(NAME) \ + do \ + { \ + if (glthread_rwlock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* --------------------- gl_recursive_lock_t datatype --------------------- */ + +#define gl_recursive_lock_init(NAME) \ + do \ + { \ + if (glthread_recursive_lock_init (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_lock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_lock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_unlock(NAME) \ + do \ + { \ + if (glthread_recursive_lock_unlock (&NAME)) \ + abort (); \ + } \ + while (0) +#define gl_recursive_lock_destroy(NAME) \ + do \ + { \ + if (glthread_recursive_lock_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* -------------------------- gl_once_t datatype -------------------------- */ + +#define gl_once(NAME, INITFUNCTION) \ + do \ + { \ + if (glthread_once (&NAME, INITFUNCTION)) \ + abort (); \ + } \ + while (0) + +/* ========================================================================= */ + +#endif /* _LOCK_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/glthread/threadlib.c gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/threadlib.c --- gettext-0.17/gettext-tools/libgettextpo/glthread/threadlib.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/threadlib.c 2010-02-16 21:33:14.000000000 +0000 @@ -0,0 +1,74 @@ +/* Multithreading primitives. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Bruno Haible , 2005. */ + +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include +# include + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The function to be executed by a dummy thread. */ +static void * +dummy_thread_func (void *arg) +{ + return arg; +} + +int +glthread_in_use (void) +{ + static int tested; + static int result; /* 1: linked with -lpthread, 0: only with libc */ + + if (!tested) + { + pthread_t thread; + + if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) + /* Thread creation failed. */ + result = 0; + else + { + /* Thread creation works. */ + void *retval; + if (pthread_join (thread, &retval) != 0) + abort (); + result = 1; + } + tested = 1; + } + return result; +} + +# endif + +#endif + +/* ========================================================================= */ + +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; diff -Nru gettext-0.17/gettext-tools/libgettextpo/glthread/tls.c gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/tls.c --- gettext-0.17/gettext-tools/libgettextpo/glthread/tls.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/tls.c 2010-02-16 21:33:14.000000000 +0000 @@ -0,0 +1,61 @@ +/* Thread-local storage in multithreaded situations. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2005. */ + +#include + +#include "glthread/tls.h" + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +void * +glthread_tls_get_multithreaded (thread_key_t key) +{ + void *value; + + if (thr_getspecific (key, &value) != 0) + abort (); + return value; +} + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +#endif + +/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/glthread/tls.h gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/tls.h --- gettext-0.17/gettext-tools/libgettextpo/glthread/tls.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/glthread/tls.h 2010-02-16 21:33:14.000000000 +0000 @@ -0,0 +1,298 @@ +/* Thread-local storage in multithreaded situations. + Copyright (C) 2005, 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2005. */ + +/* This file contains thread-local storage primitives for use with a given + thread library. It does not contain primitives for creating threads or + for other multithreading primitives. + + Type: gl_tls_key_t + Initialization: gl_tls_key_init (name, destructor); + Getting per-thread value: gl_tls_get (name) + Setting per-thread value: gl_tls_set (name, pointer); + De-initialization: gl_tls_key_destroy (name); + Equivalent functions with control of error handling: + Initialization: err = glthread_tls_key_init (&name, destructor); + Setting per-thread value: err = glthread_tls_set (&name, pointer); + De-initialization: err = glthread_tls_key_destroy (&name); + + A per-thread value is of type 'void *'. + + A destructor is a function pointer of type 'void (*) (void *)', called + when a thread exits, and taking the last per-thread value as argument. It + is unspecified whether the destructor function is called when the last + per-thread value is NULL. On some platforms, the destructor function is + not called at all. +*/ + + +#ifndef _TLS_H +#define _TLS_H + +#include +#include + +/* ========================================================================= */ + +#if USE_POSIX_THREADS + +/* Use the POSIX threads library. */ + +# include + +# if PTHREAD_IN_USE_DETECTION_HARD + +/* The pthread_in_use() detection needs to be done at runtime. */ +# define pthread_in_use() \ + glthread_in_use () +extern int glthread_in_use (void); + +# endif + +# if USE_POSIX_THREADS_WEAK + +/* Use weak references to the POSIX threads library. */ + +# pragma weak pthread_key_create +# pragma weak pthread_getspecific +# pragma weak pthread_setspecific +# pragma weak pthread_key_delete +# ifndef pthread_self +# pragma weak pthread_self +# endif + +# if !PTHREAD_IN_USE_DETECTION_HARD +# pragma weak pthread_cancel +# define pthread_in_use() (pthread_cancel != NULL) +# endif + +# else + +# if !PTHREAD_IN_USE_DETECTION_HARD +# define pthread_in_use() 1 +# endif + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + pthread_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (pthread_in_use () \ + ? pthread_key_create (&(KEY)->key, DESTRUCTOR) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (pthread_in_use () \ + ? pthread_getspecific ((NAME).key) \ + : (NAME).singlethread_value) +# define glthread_tls_set(KEY, POINTER) \ + (pthread_in_use () \ + ? pthread_setspecific ((KEY)->key, (POINTER)) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + (pthread_in_use () ? pthread_key_delete ((KEY)->key) : 0) + +#endif + +/* ========================================================================= */ + +#if USE_PTH_THREADS + +/* Use the GNU Pth threads library. */ + +# include + +# if USE_PTH_THREADS_WEAK + +/* Use weak references to the GNU Pth threads library. */ + +# pragma weak pth_key_create +# pragma weak pth_key_getdata +# pragma weak pth_key_setdata +# pragma weak pth_key_delete + +# pragma weak pth_cancel +# define pth_in_use() (pth_cancel != NULL) + +# else + +# define pth_in_use() 1 + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + pth_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (pth_in_use () \ + ? (!pth_key_create (&(KEY)->key, DESTRUCTOR) ? errno : 0) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (pth_in_use () \ + ? pth_key_getdata ((NAME).key) \ + : (NAME).singlethread_value) +# define glthread_tls_set(KEY, POINTER) \ + (pth_in_use () \ + ? (!pth_key_setdata ((KEY)->key, (POINTER)) ? errno : 0) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + (pth_in_use () \ + ? (!pth_key_delete ((KEY)->key) ? errno : 0) \ + : 0) + +#endif + +/* ========================================================================= */ + +#if USE_SOLARIS_THREADS + +/* Use the old Solaris threads library. */ + +# include + +# if USE_SOLARIS_THREADS_WEAK + +/* Use weak references to the old Solaris threads library. */ + +# pragma weak thr_keycreate +# pragma weak thr_getspecific +# pragma weak thr_setspecific + +# pragma weak thr_suspend +# define thread_in_use() (thr_suspend != NULL) + +# else + +# define thread_in_use() 1 + +# endif + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef union + { + void *singlethread_value; + thread_key_t key; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + (thread_in_use () \ + ? thr_keycreate (&(KEY)->key, DESTRUCTOR) \ + : ((KEY)->singlethread_value = NULL, 0)) +# define gl_tls_get(NAME) \ + (thread_in_use () \ + ? glthread_tls_get_multithreaded ((NAME).key) \ + : (NAME).singlethread_value) +extern void *glthread_tls_get_multithreaded (thread_key_t key); +# define glthread_tls_set(KEY, POINTER) \ + (thread_in_use () \ + ? thr_setspecific ((KEY)->key, (POINTER)) \ + : ((KEY)->singlethread_value = (POINTER), 0)) +# define glthread_tls_key_destroy(KEY) \ + /* Unsupported. */ \ + 0 + +#endif + +/* ========================================================================= */ + +#if USE_WIN32_THREADS + +# include + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef DWORD gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + /* The destructor is unsupported. */ \ + ((*(KEY) = TlsAlloc ()) == (DWORD)-1 ? EAGAIN : ((void) (DESTRUCTOR), 0)) +# define gl_tls_get(NAME) \ + TlsGetValue (NAME) +# define glthread_tls_set(KEY, POINTER) \ + (!TlsSetValue (*(KEY), POINTER) ? EINVAL : 0) +# define glthread_tls_key_destroy(KEY) \ + (!TlsFree (*(KEY)) ? EINVAL : 0) + +#endif + +/* ========================================================================= */ + +#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) + +/* Provide dummy implementation if threads are not supported. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +typedef struct + { + void *singlethread_value; + } + gl_tls_key_t; +# define glthread_tls_key_init(KEY, DESTRUCTOR) \ + ((KEY)->singlethread_value = NULL, \ + (void) (DESTRUCTOR), \ + 0) +# define gl_tls_get(NAME) \ + (NAME).singlethread_value +# define glthread_tls_set(KEY, POINTER) \ + ((KEY)->singlethread_value = (POINTER), 0) +# define glthread_tls_key_destroy(KEY) \ + 0 + +#endif + +/* ========================================================================= */ + +/* Macros with built-in error handling. */ + +/* ------------------------- gl_tls_key_t datatype ------------------------- */ + +#define gl_tls_key_init(NAME, DESTRUCTOR) \ + do \ + { \ + if (glthread_tls_key_init (&NAME, DESTRUCTOR)) \ + abort (); \ + } \ + while (0) +#define gl_tls_set(NAME, POINTER) \ + do \ + { \ + if (glthread_tls_set (&NAME, POINTER)) \ + abort (); \ + } \ + while (0) +#define gl_tls_key_destroy(NAME) \ + do \ + { \ + if (glthread_tls_key_destroy (&NAME)) \ + abort (); \ + } \ + while (0) + +/* ========================================================================= */ + +#endif /* _TLS_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4 gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4 --- gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-cache.m4 2010-06-06 20:10:57.000000000 +0000 @@ -0,0 +1,74 @@ +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the specification of how gnulib-tool is used. +# It acts as a cache: It is written and read by gnulib-tool. +# In projects using CVS, this file is meant to be stored in CVS, +# like the configure.ac and various Makefile.am files. + + +# Specification in the form of a command-line invocation: +# gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgnu --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --makefile-name=Makefile.gnulib --libtool --macro-prefix=gtpo basename c-ctype c-strcase c-strstr error error-progname file-ostream filename fopen fstrcmp fwriteerror gcd getline gettext-h hash iconv libunistring-optional minmax open ostream progname relocatable-lib sigpipe stdbool stdio stdlib strerror unilbrk/ulc-width-linebreaks unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf xalloc xconcat-filename xerror xmalloca xstriconv xvasprintf + +# Specification in the form of a few gnulib-tool.m4 macro invocations: +gl_LOCAL_DIR([../gnulib-local]) +gl_MODULES([ + basename + c-ctype + c-strcase + c-strstr + error + error-progname + file-ostream + filename + fopen + fstrcmp + fwriteerror + gcd + getline + gettext-h + hash + iconv + libunistring-optional + minmax + open + ostream + progname + relocatable-lib + sigpipe + stdbool + stdio + stdlib + strerror + unilbrk/ulc-width-linebreaks + unistr/u16-mbtouc + unistr/u8-mbtouc + unistr/u8-uctomb + uniwidth/width + unlocked-io + vasprintf + xalloc + xconcat-filename + xerror + xmalloca + xstriconv + xvasprintf +]) +gl_AVOID([]) +gl_SOURCE_BASE([libgettextpo]) +gl_M4_BASE([libgettextpo/gnulib-m4]) +gl_PO_BASE([]) +gl_DOC_BASE([doc]) +gl_TESTS_BASE([tests]) +gl_LIB([libgnu]) +gl_MAKEFILE_NAME([Makefile.gnulib]) +gl_LIBTOOL +gl_MACRO_PREFIX([gtpo]) +gl_PO_DOMAIN([]) diff -Nru gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 --- gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2007-10-31 12:38:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/gnulib-comp.m4 2010-06-03 21:37:16.000000000 +0000 @@ -1,5 +1,5 @@ # DO NOT EDIT! GENERATED AUTOMATICALLY! -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -26,99 +26,408 @@ m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) AC_REQUIRE([AM_PROG_CC_C_O]) - AC_REQUIRE([AC_GNU_SOURCE]) + # Code from module alloca-opt: + # Code from module arg-nonnull: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strstr: + # Code from module concat-filename: + # Code from module configmake: + # Code from module diffseq: + # Code from module errno: + # Code from module error: + # Code from module error-progname: + # Code from module exitfail: + # Code from module extensions: AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) - AC_REQUIRE([gl_LOCK_EARLY]) + # Code from module fcntl-h: + # Code from module file-ostream: + # Code from module filename: + # Code from module float: + # Code from module fopen: + # Code from module fstrcmp: + # Code from module fwriteerror: + # Code from module gcd: + # Code from module getdelim: + # Code from module getline: + # Code from module gettext-h: + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module iconv: + # Code from module iconv-h: + # Code from module iconv_open: + # Code from module include_next: + # Code from module inline: + # Code from module intprops: + # Code from module libunistring-optional: + # Code from module localcharset: + # Code from module lock: + # Code from module malloc-posix: + # Code from module malloca: + # Code from module mbrtowc: + # Code from module mbsinit: + # Code from module mbswidth: + # Code from module memchr: + # Code from module minmax: + # Code from module moo: + # Code from module multiarch: + # Code from module obstack: + # Code from module open: + # Code from module ostream: + # Code from module progname: + # Code from module realloc-posix: + # Code from module relocatable-lib: + # Code from module signal: + # Code from module sigpipe: + # Code from module sigprocmask: + # Code from module size_max: + # Code from module stat: + # Code from module stdarg: dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode dnl for the builtin va_copy to work. With Autoconf 2.60 or later, dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC dnl shouldn't hurt, though installers are on their own to set c99 mode. AC_REQUIRE([AC_PROG_CC_STDC]) + # Code from module stdbool: + # Code from module stddef: + # Code from module stdint: + # Code from module stdio: + # Code from module stdlib: + # Code from module stpcpy: + # Code from module streq: + # Code from module strerror: + # Code from module striconv: + # Code from module striconveh: + # Code from module striconveha: + # Code from module string: + # Code from module strstr: + # Code from module strstr-simple: + # Code from module sys_stat: + # Code from module threadlib: + gl_THREADLIB_EARLY + # Code from module time: + # Code from module tls: + # Code from module uniconv/base: + # Code from module uniconv/u8-conv-from-enc: + # Code from module unilbrk/base: + # Code from module unilbrk/tables: + # Code from module unilbrk/u8-possible-linebreaks: + # Code from module unilbrk/u8-width-linebreaks: + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + # Code from module unistd: + # Code from module unistr/base: + # Code from module unistr/u16-mbtouc: + # Code from module unistr/u8-check: + # Code from module unistr/u8-mblen: + # Code from module unistr/u8-mbtouc: + # Code from module unistr/u8-mbtouc-unsafe: + # Code from module unistr/u8-mbtoucr: + # Code from module unistr/u8-prev: + # Code from module unistr/u8-uctomb: + # Code from module unitypes: + # Code from module uniwidth/base: + # Code from module uniwidth/width: + # Code from module unlocked-io: + # Code from module unused-parameter: + # Code from module vasnprintf: + # Code from module vasprintf: + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: + # Code from module wctype: + # Code from module wcwidth: + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xmalloca: + # Code from module xsize: + # Code from module xstriconv: + # Code from module xvasprintf: ]) # This macro should be invoked from gettext-tools/configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gtpo_INIT], [ + AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) + gl_cond_libtool=true + gl_m4_base='libgettextpo/gnulib-m4' m4_pushdef([AC_LIBOBJ], m4_defn([gtpo_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpo_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([gtpo_LIBSOURCES])) - AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) - gl_cond_libtool=true + m4_pushdef([gtpo_LIBSOURCES_LIST], []) + m4_pushdef([gtpo_LIBSOURCES_DIR], []) + gl_COMMON gl_source_base='libgettextpo' + # Code from module alloca-opt: gl_FUNC_ALLOCA + # Code from module arg-nonnull: + # Code from module basename: + # Code from module c++defs: + # Code from module c-ctype: + # Code from module c-strcase: + # Code from module c-strcaseeq: + # Code from module c-strstr: + # Code from module concat-filename: + # Code from module configmake: + # Code from module diffseq: + # Code from module errno: + gl_HEADER_ERRNO_H + # Code from module error: gl_ERROR m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=error:3:c-format]) - AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) - gl_EXITFAIL + [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) + AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) + # Code from module error-progname: + # Code from module exitfail: + # Code from module extensions: + # Code from module fcntl-h: + gl_FCNTL_H + # Code from module file-ostream: + # Code from module filename: + # Code from module float: + gl_FLOAT_H + # Code from module fopen: gl_FUNC_FOPEN gl_STDIO_MODULE_INDICATOR([fopen]) + # Code from module fstrcmp: + # Code from module fwriteerror: gl_MODULE_INDICATOR([fwriteerror]) + # Code from module gcd: + # Code from module getdelim: gl_FUNC_GETDELIM gl_STDIO_MODULE_INDICATOR([getdelim]) + # Code from module getline: gl_FUNC_GETLINE gl_STDIO_MODULE_INDICATOR([getline]) + # Code from module gettext-h: AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) + # Code from module gperf: + # Code from module hash: + # Code from module havelib: + # Code from module iconv: AM_ICONV + # Code from module iconv-h: gl_ICONV_H + # Code from module iconv_open: gl_FUNC_ICONV_OPEN + # Code from module include_next: + # Code from module inline: gl_INLINE - gl_LINEBREAK + # Code from module intprops: + # Code from module libunistring-optional: + gl_LIBUNISTRING_OPTIONAL + # Code from module localcharset: gl_LOCALCHARSET + LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\"" + AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) + # Code from module lock: gl_LOCK + # Code from module malloc-posix: gl_FUNC_MALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([malloc-posix]) + # Code from module malloca: gl_MALLOCA + # Code from module mbrtowc: + gl_FUNC_MBRTOWC + gl_WCHAR_MODULE_INDICATOR([mbrtowc]) + # Code from module mbsinit: + gl_FUNC_MBSINIT + gl_WCHAR_MODULE_INDICATOR([mbsinit]) + # Code from module mbswidth: gl_MBSWIDTH + # Code from module memchr: + gl_FUNC_MEMCHR + gl_STRING_MODULE_INDICATOR([memchr]) + # Code from module minmax: gl_MINMAX + # Code from module moo: gl_MOO + # Code from module multiarch: + gl_MULTIARCH + # Code from module obstack: AC_FUNC_OBSTACK dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]). + # Code from module open: + gl_FUNC_OPEN + gl_FCNTL_MODULE_INDICATOR([open]) + # Code from module ostream: + # Code from module progname: + AC_CHECK_DECLS([program_invocation_name], [], [], [#include ]) + AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include ]) + # Code from module realloc-posix: gl_FUNC_REALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([realloc-posix]) + # Code from module relocatable-lib: gl_RELOCATABLE_LIBRARY + # Code from module signal: + gl_SIGNAL_H + # Code from module sigpipe: + gl_SIGNAL_SIGPIPE + dnl Define the C macro GNULIB_SIGPIPE to 1. + gl_MODULE_INDICATOR([sigpipe]) + dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1. + AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) + GNULIB_SIGNAL_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1. + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + GNULIB_STDIO_H_SIGPIPE=1 + dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1. + AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) + GNULIB_UNISTD_H_SIGPIPE=1 + # Code from module sigprocmask: + gl_SIGNALBLOCKING + gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) + # Code from module size_max: gl_SIZE_MAX + # Code from module stat: + gl_FUNC_STAT + gl_SYS_STAT_MODULE_INDICATOR([stat]) + # Code from module stdarg: gl_STDARG_H + # Code from module stdbool: AM_STDBOOL_H + # Code from module stddef: + gl_STDDEF_H + # Code from module stdint: gl_STDINT_H + # Code from module stdio: gl_STDIO_H + # Code from module stdlib: gl_STDLIB_H + # Code from module stpcpy: gl_FUNC_STPCPY gl_STRING_MODULE_INDICATOR([stpcpy]) - gl_FUNC_STRDUP - gl_STRING_MODULE_INDICATOR([strdup]) + # Code from module streq: + # Code from module strerror: gl_FUNC_STRERROR gl_STRING_MODULE_INDICATOR([strerror]) + # Code from module striconv: + if test $gl_cond_libtool = false; then + gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" + gl_libdeps="$gl_libdeps $LIBICONV" + fi + # Code from module striconveh: if test $gl_cond_libtool = false; then gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" gl_libdeps="$gl_libdeps $LIBICONV" fi + # Code from module striconveha: + # Code from module string: gl_HEADER_STRING_H - gl_FUNC_STRNLEN - gl_STRING_MODULE_INDICATOR([strnlen]) + # Code from module strstr: + gl_FUNC_STRSTR + # Code from module strstr-simple: + gl_FUNC_STRSTR_SIMPLE + gl_STRING_MODULE_INDICATOR([strstr]) + # Code from module sys_stat: + gl_HEADER_SYS_STAT_H + AC_PROG_MKDIR_P + # Code from module threadlib: + gl_THREADLIB + # Code from module time: + gl_HEADER_TIME_H + # Code from module tls: gl_TLS + # Code from module uniconv/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniconv.h]) + # Code from module uniconv/u8-conv-from-enc: + gl_LIBUNISTRING_MODULE([0.9], [uniconv/u8-conv-from-enc]) + # Code from module unilbrk/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [unilbrk.h]) + # Code from module unilbrk/tables: + AC_REQUIRE([AC_C_INLINE]) + # Code from module unilbrk/u8-possible-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-possible-linebreaks]) + # Code from module unilbrk/u8-width-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-width-linebreaks]) + # Code from module unilbrk/ulc-common: + # Code from module unilbrk/ulc-width-linebreaks: + gl_LIBUNISTRING_MODULE([0.9], [unilbrk/ulc-width-linebreaks]) + # Code from module unistd: gl_UNISTD_H + # Code from module unistr/base: + gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h]) + # Code from module unistr/u16-mbtouc: gl_MODULE_INDICATOR([unistr/u16-mbtouc]) - gl_MODULE_INDICATOR([unistr/u16-mbtouc-unsafe]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtouc]) + # Code from module unistr/u8-check: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-check]) + # Code from module unistr/u8-mblen: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mblen]) + # Code from module unistr/u8-mbtouc: gl_MODULE_INDICATOR([unistr/u8-mbtouc]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc]) + # Code from module unistr/u8-mbtouc-unsafe: gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc-unsafe]) + # Code from module unistr/u8-mbtoucr: + gl_MODULE_INDICATOR([unistr/u8-mbtoucr]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr]) + # Code from module unistr/u8-prev: + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev]) + # Code from module unistr/u8-uctomb: gl_MODULE_INDICATOR([unistr/u8-uctomb]) + gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb]) + # Code from module unitypes: + gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h]) + # Code from module uniwidth/base: + gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h]) + # Code from module uniwidth/width: + gl_LIBUNISTRING_MODULE([0.9], [uniwidth/width]) + # Code from module unlocked-io: gl_FUNC_GLIBC_UNLOCKED_IO + # Code from module unused-parameter: + # Code from module vasnprintf: + gl_FUNC_VASNPRINTF + # Code from module vasprintf: gl_FUNC_VASPRINTF gl_STDIO_MODULE_INDICATOR([vasprintf]) m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format]) - AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format]) + AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) + # Code from module verify: + # Code from module warn-on-use: + # Code from module wchar: gl_WCHAR_H + # Code from module wctype: gl_WCTYPE_H + # Code from module wcwidth: gl_FUNC_WCWIDTH gl_WCHAR_MODULE_INDICATOR([wcwidth]) + # Code from module xalloc: + # Code from module xalloc-die: + # Code from module xconcat-filename: + # Code from module xerror: + # Code from module xmalloca: + # Code from module xsize: gl_XSIZE + # Code from module xstriconv: + # Code from module xvasprintf: gl_XVASPRINTF m4_ifdef([AM_XGETTEXT_OPTION], - [AM_XGETTEXT_OPTION([--flag=xasprintf:1:c-format])]) + [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])]) + # End of code from modules + m4_ifval(gtpo_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gtpo_LIBSOURCES_DIR])[ || + for gl_file in ]gtpo_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gtpo_LIBSOURCES_DIR]) + m4_popdef([gtpo_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) @@ -128,7 +437,7 @@ if test -n "$gtpo_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do + for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gtpo_libobjs="$gtpo_libobjs $i.$ac_objext" gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo" done @@ -136,6 +445,52 @@ AC_SUBST([gtpo_LIBOBJS], [$gtpo_libobjs]) AC_SUBST([gtpo_LTLIBOBJS], [$gtpo_ltlibobjs]) ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([gtpotests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpotests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([gtpotests_LIBSOURCES])) + m4_pushdef([gtpotests_LIBSOURCES_LIST], []) + m4_pushdef([gtpotests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='tests' +changequote(,)dnl + gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([gtpotests_WITNESS]) + gl_module_indicator_condition=$gtpotests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(gtpotests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([gtpotests_LIBSOURCES_DIR])[ || + for gl_file in ]gtpotests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([gtpotests_LIBSOURCES_DIR]) + m4_popdef([gtpotests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + gtpotests_libobjs= + gtpotests_ltlibobjs= + if test -n "$gtpotests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext" + gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo" + done + fi + AC_SUBST([gtpotests_LIBOBJS], [$gtpotests_libobjs]) + AC_SUBST([gtpotests_LTLIBOBJS], [$gtpotests_ltlibobjs]) + ]) ]) # Like AC_LIBOBJ, except that the module name goes @@ -153,15 +508,41 @@ ]) # Like AC_LIBSOURCES, except the directory where the source file is -# expected is derived from the gnulib-tool parametrization, +# expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gtpo_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ - m4_syscmd([test -r libgettextpo/]_gl_NAME[ || test ! -d libgettextpo])dnl - m4_if(m4_sysval, [0], [], - [AC_FATAL([missing libgettextpo/]_gl_NAME)]) + m4_define([gtpo_LIBSOURCES_DIR], [libgettextpo]) + m4_append([gtpo_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into gtpotests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gtpotests_LIBOBJ], [ + AS_LITERAL_IF([$1], [gtpotests_LIBSOURCES([$1.c])])dnl + gtpotests_LIBOBJS="$gtpotests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into gtpotests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([gtpotests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [gtpotests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([gtpotests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([gtpotests_LIBSOURCES_DIR], [tests]) + m4_append([gtpotests_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) @@ -169,32 +550,43 @@ # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gtpo_FILE_LIST], [ + build-aux/arg-nonnull.h + build-aux/c++defs.h build-aux/config.rpath - build-aux/link-warning.h build-aux/moopp + build-aux/unused-parameter.h + build-aux/warn-on-use.h doc/relocatable.texi lib/alloca.in.h + lib/asnprintf.c + lib/asprintf.c lib/basename.c lib/basename.h lib/c-ctype.c lib/c-ctype.h lib/c-strcase.h lib/c-strcasecmp.c + lib/c-strcaseeq.h lib/c-strncasecmp.c lib/c-strstr.c lib/c-strstr.h lib/concat-filename.c + lib/concat-filename.h lib/config.charset lib/diffseq.h + lib/errno.in.h lib/error-progname.c lib/error-progname.h lib/error.c lib/error.h lib/exitfail.c lib/exitfail.h + lib/fcntl.in.h lib/file-ostream.oo.c lib/file-ostream.oo.h lib/filename.h + lib/float+.h + lib/float.in.h lib/fopen.c lib/fstrcmp.c lib/fstrcmp.h @@ -205,6 +597,11 @@ lib/getdelim.c lib/getline.c lib/gettext.h + lib/glthread/lock.c + lib/glthread/lock.h + lib/glthread/threadlib.c + lib/glthread/tls.c + lib/glthread/tls.h lib/hash.c lib/hash.h lib/iconv.in.h @@ -212,27 +609,34 @@ lib/iconv_open-hpux.gperf lib/iconv_open-irix.gperf lib/iconv_open-osf.gperf + lib/iconv_open-solaris.gperf lib/iconv_open.c + lib/iconveh.h lib/intprops.h - lib/lbrkprop.h - lib/linebreak.c - lib/linebreak.h + lib/libunistring.valgrind lib/localcharset.c lib/localcharset.h - lib/lock.c - lib/lock.h lib/malloc.c lib/malloca.c lib/malloca.h lib/malloca.valgrind + lib/mbrtowc.c + lib/mbsinit.c lib/mbswidth.c lib/mbswidth.h + lib/memchr.c + lib/memchr.valgrind lib/minmax.h lib/moo.h lib/obstack.c lib/obstack.h + lib/open.c lib/ostream.oo.c lib/ostream.oo.h + lib/printf-args.c + lib/printf-args.h + lib/printf-parse.c + lib/printf-parse.h lib/progname.c lib/progname.h lib/realloc.c @@ -240,44 +644,72 @@ lib/ref-del.sin lib/relocatable.c lib/relocatable.h + lib/signal.in.h + lib/sigprocmask.c lib/size_max.h + lib/stat.c + lib/stdarg.in.h lib/stdbool.in.h + lib/stddef.in.h lib/stdint.in.h + lib/stdio-write.c lib/stdio.in.h lib/stdlib.in.h lib/stpcpy.c - lib/strdup.c + lib/str-two-way.h lib/streq.h lib/strerror.c lib/striconv.c lib/striconv.h + lib/striconveh.c + lib/striconveh.h + lib/striconveha.c + lib/striconveha.h lib/string.in.h - lib/strnlen.c - lib/tls.c - lib/tls.h + lib/strstr.c + lib/sys_stat.in.h + lib/time.in.h + lib/uniconv.in.h + lib/uniconv/u8-conv-from-enc.c + lib/unilbrk.in.h + lib/unilbrk/lbrkprop1.h + lib/unilbrk/lbrkprop2.h + lib/unilbrk/lbrktables.c + lib/unilbrk/lbrktables.h + lib/unilbrk/u8-possible-linebreaks.c + lib/unilbrk/u8-width-linebreaks.c + lib/unilbrk/ulc-common.c + lib/unilbrk/ulc-common.h + lib/unilbrk/ulc-width-linebreaks.c lib/unistd.in.h - lib/unistr.h + lib/unistr.in.h lib/unistr/u16-mbtouc-aux.c - lib/unistr/u16-mbtouc-unsafe-aux.c - lib/unistr/u16-mbtouc-unsafe.c lib/unistr/u16-mbtouc.c + lib/unistr/u8-check.c + lib/unistr/u8-mblen.c lib/unistr/u8-mbtouc-aux.c lib/unistr/u8-mbtouc-unsafe-aux.c lib/unistr/u8-mbtouc-unsafe.c lib/unistr/u8-mbtouc.c + lib/unistr/u8-mbtoucr.c + lib/unistr/u8-prev.c lib/unistr/u8-uctomb-aux.c lib/unistr/u8-uctomb.c - lib/unitypes.h - lib/uniwidth.h + lib/unitypes.in.h + lib/uniwidth.in.h lib/uniwidth/cjk.h lib/uniwidth/width.c lib/unlocked-io.h + lib/vasnprintf.c + lib/vasnprintf.h lib/vasprintf.c + lib/verify.h lib/wchar.in.h lib/wctype.in.h lib/wcwidth.c lib/xalloc.h lib/xasprintf.c + lib/xconcat-filename.c lib/xerror.c lib/xerror.h lib/xmalloc.c @@ -289,13 +721,19 @@ lib/xstriconv.h lib/xvasprintf.c lib/xvasprintf.h + m4/00gnulib.m4 m4/absolute-header.m4 m4/alloca.m4 + m4/asm-underscore.m4 m4/codeset.m4 + m4/dos.m4 m4/eealloc.m4 + m4/errno_h.m4 m4/error.m4 - m4/exitfail.m4 m4/extensions.m4 + m4/fcntl-o.m4 + m4/fcntl_h.m4 + m4/float_h.m4 m4/fopen.m4 m4/getdelim.m4 m4/getline.m4 @@ -306,41 +744,65 @@ m4/iconv_open.m4 m4/include_next.m4 m4/inline.m4 + m4/intmax_t.m4 + m4/inttypes_h.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 - m4/linebreak.m4 + m4/libunistring-base.m4 + m4/libunistring-optional.m4 + m4/libunistring.m4 m4/localcharset.m4 + m4/locale-fr.m4 + m4/locale-ja.m4 + m4/locale-zh.m4 m4/lock.m4 m4/longlong.m4 m4/malloc.m4 m4/malloca.m4 m4/mbrtowc.m4 + m4/mbsinit.m4 m4/mbstate_t.m4 m4/mbswidth.m4 + m4/memchr.m4 m4/minmax.m4 + m4/mmap-anon.m4 + m4/mode_t.m4 m4/moo.m4 - m4/onceonly_2_57.m4 + m4/multiarch.m4 + m4/onceonly.m4 + m4/open.m4 + m4/printf.m4 m4/realloc.m4 m4/relocatable-lib.m4 + m4/signal_h.m4 + m4/signalblocking.m4 + m4/sigpipe.m4 m4/size_max.m4 + m4/stat.m4 m4/stdarg.m4 m4/stdbool.m4 + m4/stddef_h.m4 m4/stdint.m4 + m4/stdint_h.m4 m4/stdio_h.m4 m4/stdlib_h.m4 m4/stpcpy.m4 - m4/strdup.m4 m4/strerror.m4 m4/string_h.m4 - m4/strnlen.m4 + m4/strstr.m4 + m4/sys_stat_h.m4 + m4/threadlib.m4 + m4/time_h.m4 m4/tls.m4 m4/unistd_h.m4 m4/unlocked-io.m4 + m4/vasnprintf.m4 m4/vasprintf.m4 - m4/wchar.m4 + m4/warn-on-use.m4 + m4/wchar_h.m4 m4/wchar_t.m4 - m4/wctype.m4 + m4/wctype_h.m4 m4/wcwidth.m4 m4/wint_t.m4 m4/xsize.m4 diff -Nru gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/ulonglong.m4 gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/ulonglong.m4 --- gettext-0.17/gettext-tools/libgettextpo/gnulib-m4/ulonglong.m4 2007-10-24 23:06:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/gnulib-m4/ulonglong.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,41 +0,0 @@ -# ulonglong.m4 serial 9 -dnl Copyright (C) 1999-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Paul Eggert. - -# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. -# This fixes a bug in Autoconf 2.61, but can be removed once we -# assume 2.62 everywhere. - -# Note: If the type 'unsigned long long int' exists but is only 32 bits -# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT -# will not be defined. In this case you can treat 'unsigned long long int' -# like 'unsigned long int'. - -AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], -[ - AC_CACHE_CHECK([for unsigned long long int], - [ac_cv_type_unsigned_long_long_int], - [AC_LINK_IFELSE( - [_AC_TYPE_LONG_LONG_SNIPPET], - [ac_cv_type_unsigned_long_long_int=yes], - [ac_cv_type_unsigned_long_long_int=no])]) - if test $ac_cv_type_unsigned_long_long_int = yes; then - AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, - [Define to 1 if the system has the type `unsigned long long int'.]) - fi -]) - -# This macro is obsolescent and should go away soon. -AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], -[ - AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) - ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int - if test $ac_cv_type_unsigned_long_long = yes; then - AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, - [Define if you have the 'unsigned long long' type.]) - fi -]) diff -Nru gettext-0.17/gettext-tools/libgettextpo/hash.c gettext-0.18.1.1/gettext-tools/libgettextpo/hash.c --- gettext-0.17/gettext-tools/libgettextpo/hash.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/hash.c 2010-06-06 12:49:58.000000000 +0000 @@ -138,15 +138,15 @@ /* References: [Aho,Sethi,Ullman] Compilers: Principles, Techniques and Tools, 1986 - [Knuth] The Art of Computer Programming, part3 (6.4) */ + [Knuth] The Art of Computer Programming, part3 (6.4) */ /* Look up a given key in the hash table. Return the index of the entry, if present, or otherwise the index a free entry where it could be inserted. */ static size_t lookup (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval) + const void *key, size_t keylen, + unsigned long int hval) { unsigned long int hash; size_t idx; @@ -160,24 +160,24 @@ if (table[idx].used) { if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; + && memcmp (table[idx].key, key, keylen) == 0) + return idx; /* Second hash function as suggested in [Knuth]. */ hash = 1 + hval % (htab->size - 2); do - { - if (idx <= hash) - idx = htab->size + idx - hash; - else - idx -= hash; - - /* If entry is found use it. */ - if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; - } + { + if (idx <= hash) + idx = htab->size + idx - hash; + else + idx -= hash; + + /* If entry is found use it. */ + if (table[idx].used == hval && table[idx].keylen == keylen + && memcmp (table[idx].key, key, keylen) == 0) + return idx; + } while (table[idx].used); } return idx; @@ -188,7 +188,7 @@ If found, return 0 and set *RESULT to it. Otherwise return -1. */ int hash_find_entry (hash_table *htab, const void *key, size_t keylen, - void **result) + void **result) { hash_entry *table = htab->table; size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen)); @@ -206,8 +206,8 @@ IDX is known to be unused. */ static void insert_entry_2 (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval, size_t idx, void *data) + const void *key, size_t keylen, + unsigned long int hval, size_t idx, void *data) { hash_entry *table = htab->table; @@ -249,10 +249,10 @@ for (idx = 1; idx <= old_size; ++idx) if (table[idx].used) insert_entry_2 (htab, table[idx].key, table[idx].keylen, - table[idx].used, - lookup (htab, table[idx].key, table[idx].keylen, - table[idx].used), - table[idx].data); + table[idx].used, + lookup (htab, table[idx].key, table[idx].keylen, + table[idx].used), + table[idx].data); free (table); } @@ -264,8 +264,8 @@ given key. */ const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -280,8 +280,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return keycopy; } } @@ -291,8 +291,8 @@ Return 0. */ int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -310,8 +310,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return 0; } } @@ -323,20 +323,20 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate (hash_table *htab, void **ptr, const void **key, size_t *keylen, - void **data) + void **data) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; @@ -356,21 +356,21 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap) + const void **key, size_t *keylen, + void ***datap) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; diff -Nru gettext-0.17/gettext-tools/libgettextpo/hash.h gettext-0.18.1.1/gettext-tools/libgettextpo/hash.h --- gettext-0.17/gettext-tools/libgettextpo/hash.h 2007-10-31 12:38:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/hash.h 2009-12-12 11:37:49.000000000 +0000 @@ -2,7 +2,7 @@ The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the + published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, @@ -48,30 +48,30 @@ /* Look up the value of a key in the given table. If found, return 0 and set *RESULT to it. Otherwise return -1. */ extern int hash_find_entry (hash_table *htab, - const void *key, size_t keylen, - void **result); + const void *key, size_t keylen, + void **result); /* Try to insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return non-NULL (more precisely, the address of the KEY inside the table's memory pool) if successful, or NULL if there is already an entry with the given key. */ extern const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return 0. */ extern int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry in *KEY, *KEYLEN, *DATA. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void **data); + const void **key, size_t *keylen, + void **data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry @@ -79,8 +79,8 @@ value; modifying **DATAP will modify the value of the entry. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap); + const void **key, size_t *keylen, + void ***datap); /* Given SEED > 1, return the smallest odd prime number >= SEED. */ extern unsigned long int next_prime (unsigned long int seed); diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconveh.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconveh.h --- gettext-0.17/gettext-tools/libgettextpo/iconveh.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconveh.h 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,41 @@ +/* Character set conversion handler type. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _ICONVEH_H +#define _ICONVEH_H + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Handling of unconvertible characters. */ +enum iconv_ilseq_handler +{ + iconveh_error, /* return and set errno = EILSEQ */ + iconveh_question_mark, /* use one '?' per unconvertible character */ + iconveh_escape_sequence /* use escape sequence \uxxxx or \Uxxxxxxxx */ +}; + + +#ifdef __cplusplus +} +#endif + + +#endif /* _ICONVEH_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv.in.h --- gettext-0.17/gettext-tools/libgettextpo/iconv.in.h 2007-10-17 22:37:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv.in.h 2010-04-25 09:22:39.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,23 +18,39 @@ #ifndef _GL_ICONV_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_ICONV_H@ #ifndef _GL_ICONV_H #define _GL_ICONV_H -#ifdef __cplusplus -extern "C" { -#endif +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ #if @REPLACE_ICONV_OPEN@ /* An iconv_open wrapper that supports the IANA standardized encoding names ("ISO-8859-1" etc.) as far as possible. */ -# define iconv_open rpl_iconv_open -extern iconv_t iconv_open (const char *tocode, const char *fromcode); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_open rpl_iconv_open +# endif +_GL_FUNCDECL_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); +#else +_GL_CXXALIAS_SYS (iconv_open, iconv_t, + (const char *tocode, const char *fromcode)); #endif +_GL_CXXALIASWARN (iconv_open); #if @REPLACE_ICONV_UTF@ /* Special constants for supporting UTF-{16,32}{BE,LE} encodings. @@ -50,18 +66,36 @@ #endif #if @REPLACE_ICONV@ -# define iconv rpl_iconv -extern size_t iconv (iconv_t cd, - @ICONV_CONST@ char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft); -# define iconv_close rpl_iconv_close -extern int iconv_close (iconv_t cd); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv rpl_iconv +# endif +_GL_FUNCDECL_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +_GL_CXXALIAS_RPL (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); +#else +_GL_CXXALIAS_SYS (iconv, size_t, + (iconv_t cd, + @ICONV_CONST@ char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft)); #endif +_GL_CXXALIASWARN (iconv); - -#ifdef __cplusplus -} +#if @REPLACE_ICONV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iconv_close rpl_iconv_close +# endif +_GL_FUNCDECL_RPL (iconv_close, int, (iconv_t cd)); +_GL_CXXALIAS_RPL (iconv_close, int, (iconv_t cd)); +#else +_GL_CXXALIAS_SYS (iconv_close, int, (iconv_t cd)); #endif +_GL_CXXALIASWARN (iconv_close); + #endif /* _GL_ICONV_H */ #endif /* _GL_ICONV_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-aix.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-aix.h --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-aix.h 2007-05-13 19:30:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-aix.h 2009-07-19 20:50:26.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-aix.gperf */ /* Computed positions: -k'4,$' */ @@ -229,7 +229,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open.c gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open.c --- gettext-0.17/gettext-tools/libgettextpo/iconv_open.c 2007-10-17 22:37:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,9 +1,9 @@ /* Character set conversion. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -36,6 +36,7 @@ #define ICONV_FLAVOR_HPUX "iconv_open-hpux.h" #define ICONV_FLAVOR_IRIX "iconv_open-irix.h" #define ICONV_FLAVOR_OSF "iconv_open-osf.h" +#define ICONV_FLAVOR_SOLARIS "iconv_open-solaris.h" #ifdef ICONV_FLAVOR # include ICONV_FLAVOR @@ -66,33 +67,33 @@ && fromcode[3] == '-') { if (c_toupper (tocode[0]) == 'U' - && c_toupper (tocode[1]) == 'T' - && c_toupper (tocode[2]) == 'F' - && tocode[3] == '-') - { - if (strcmp (fromcode + 4, "8") == 0) - { - if (c_strcasecmp (tocode + 4, "16BE") == 0) - return _ICONV_UTF8_UTF16BE; - if (c_strcasecmp (tocode + 4, "16LE") == 0) - return _ICONV_UTF8_UTF16LE; - if (c_strcasecmp (tocode + 4, "32BE") == 0) - return _ICONV_UTF8_UTF32BE; - if (c_strcasecmp (tocode + 4, "32LE") == 0) - return _ICONV_UTF8_UTF32LE; - } - else if (strcmp (tocode + 4, "8") == 0) - { - if (c_strcasecmp (fromcode + 4, "16BE") == 0) - return _ICONV_UTF16BE_UTF8; - if (c_strcasecmp (fromcode + 4, "16LE") == 0) - return _ICONV_UTF16LE_UTF8; - if (c_strcasecmp (fromcode + 4, "32BE") == 0) - return _ICONV_UTF32BE_UTF8; - if (c_strcasecmp (fromcode + 4, "32LE") == 0) - return _ICONV_UTF32LE_UTF8; - } - } + && c_toupper (tocode[1]) == 'T' + && c_toupper (tocode[2]) == 'F' + && tocode[3] == '-') + { + if (strcmp (fromcode + 4, "8") == 0) + { + if (c_strcasecmp (tocode + 4, "16BE") == 0) + return _ICONV_UTF8_UTF16BE; + if (c_strcasecmp (tocode + 4, "16LE") == 0) + return _ICONV_UTF8_UTF16LE; + if (c_strcasecmp (tocode + 4, "32BE") == 0) + return _ICONV_UTF8_UTF32BE; + if (c_strcasecmp (tocode + 4, "32LE") == 0) + return _ICONV_UTF8_UTF32LE; + } + else if (strcmp (tocode + 4, "8") == 0) + { + if (c_strcasecmp (fromcode + 4, "16BE") == 0) + return _ICONV_UTF16BE_UTF8; + if (c_strcasecmp (fromcode + 4, "16LE") == 0) + return _ICONV_UTF16LE_UTF8; + if (c_strcasecmp (fromcode + 4, "32BE") == 0) + return _ICONV_UTF32BE_UTF8; + if (c_strcasecmp (fromcode + 4, "32LE") == 0) + return _ICONV_UTF32LE_UTF8; + } + } } #endif @@ -115,20 +116,20 @@ /* Convert the encodings to upper case, because 1. in the arguments of iconv_open() on AIX, HP-UX, and OSF/1 the case - matters, + matters, 2. it makes searching in the table faster. */ { const char *p = fromcode; char *q = fromcode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &fromcode_upper[SIZEOF (fromcode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } fromcode_upper_end = q; } @@ -138,13 +139,13 @@ char *q = tocode_upper; while ((*q = c_toupper (*p)) != '\0') { - p++; - q++; - if (q == &tocode_upper[SIZEOF (tocode_upper)]) - { - errno = EINVAL; - return (iconv_t)(-1); - } + p++; + q++; + if (q == &tocode_upper[SIZEOF (tocode_upper)]) + { + errno = EINVAL; + return (iconv_t)(-1); + } } tocode_upper_end = q; } diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-hpux.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-hpux.h --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-hpux.h 2007-05-13 19:30:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-hpux.h 2009-07-19 20:50:26.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-hpux.gperf */ /* Computed positions: -k'4,$' */ @@ -272,7 +272,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-irix.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-irix.h --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-irix.h 2007-05-13 19:30:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-irix.h 2009-07-19 20:50:26.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-irix.gperf */ /* Computed positions: -k'1,$' */ @@ -172,7 +172,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-osf.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-osf.h --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-osf.h 2007-05-13 19:30:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-osf.h 2009-07-19 20:50:26.000000000 +0000 @@ -1,4 +1,4 @@ -/* ANSI-C code produced by gperf version 3.0.3 */ +/* ANSI-C code produced by gperf version 3.0.4 */ /* Command-line: gperf -m 10 ./iconv_open-osf.gperf */ /* Computed positions: -k'4,$' */ @@ -251,7 +251,7 @@ #ifdef __GNUC__ __inline -#ifdef __GNUC_STDC_INLINE__ +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ __attribute__ ((__gnu_inline__)) #endif #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-solaris.gperf gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-solaris.gperf --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-solaris.gperf 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-solaris.gperf 2009-08-30 14:56:07.000000000 +0000 @@ -0,0 +1,30 @@ +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; +%struct-type +%language=ANSI-C +%define slot-name standard_name +%define hash-function-name mapping_hash +%define lookup-function-name mapping_lookup +%readonly-tables +%global-table +%define word-array-name mappings +%pic +%% +# On Solaris 10, look in the "iconv -l" output. Some aliases are advertised but +# not actually supported by the iconv() function and by the 'iconv' program. +# For example: +# $ echo abc | iconv -f 646 -t ISO-8859-1 +# Not supported 646 to ISO-8859-1 +# $ echo abc | iconv -f 646 -t ISO8859-1 +$ abc +ASCII, "646" +ISO-8859-1, "ISO8859-1" +ISO-8859-2, "ISO8859-2" +ISO-8859-3, "ISO8859-3" +ISO-8859-4, "ISO8859-4" +ISO-8859-5, "ISO8859-5" +ISO-8859-6, "ISO8859-6" +ISO-8859-7, "ISO8859-7" +ISO-8859-8, "ISO8859-8" +ISO-8859-9, "ISO8859-9" +ISO-8859-15, "ISO8859-15" +CP1251, "ansi-1251" diff -Nru gettext-0.17/gettext-tools/libgettextpo/iconv_open-solaris.h gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-solaris.h --- gettext-0.17/gettext-tools/libgettextpo/iconv_open-solaris.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/iconv_open-solaris.h 2009-08-30 15:33:53.000000000 +0000 @@ -0,0 +1,190 @@ +/* ANSI-C code produced by gperf version 3.0.4 */ +/* Command-line: gperf -m 10 ./iconv_open-solaris.gperf */ +/* Computed positions: -k'10' */ + +#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ + && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ + && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ + && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ + && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ + && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ + && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ + && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ + && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ + && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ + && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ + && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ + && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ + && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ + && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ + && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ + && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ + && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ + && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ + && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ + && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ + && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ + && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) +/* The character set is not based on ISO-646. */ +#error "gperf generated tables don't work with this execution character set. Please report a bug to ." +#endif + +#line 1 "./iconv_open-solaris.gperf" +struct mapping { int standard_name; const char vendor_name[10 + 1]; }; + +#define TOTAL_KEYWORDS 13 +#define MIN_WORD_LENGTH 5 +#define MAX_WORD_LENGTH 11 +#define MIN_HASH_VALUE 5 +#define MAX_HASH_VALUE 19 +/* maximum key range = 15, duplicates = 0 */ + +#ifdef __GNUC__ +__inline +#else +#ifdef __cplusplus +inline +#endif +#endif +static unsigned int +mapping_hash (register const char *str, register unsigned int len) +{ + static const unsigned char asso_values[] = + { + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, + 9, 8, 7, 6, 5, 4, 3, 2, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20 + }; + register int hval = len; + + switch (hval) + { + default: + hval += asso_values[(unsigned char)str[9]]; + /*FALLTHROUGH*/ + case 9: + case 8: + case 7: + case 6: + case 5: + break; + } + return hval; +} + +struct stringpool_t + { + char stringpool_str5[sizeof("ASCII")]; + char stringpool_str6[sizeof("CP1251")]; + char stringpool_str7[sizeof("$ abc")]; + char stringpool_str10[sizeof("ISO-8859-1")]; + char stringpool_str11[sizeof("ISO-8859-15")]; + char stringpool_str12[sizeof("ISO-8859-9")]; + char stringpool_str13[sizeof("ISO-8859-8")]; + char stringpool_str14[sizeof("ISO-8859-7")]; + char stringpool_str15[sizeof("ISO-8859-6")]; + char stringpool_str16[sizeof("ISO-8859-5")]; + char stringpool_str17[sizeof("ISO-8859-4")]; + char stringpool_str18[sizeof("ISO-8859-3")]; + char stringpool_str19[sizeof("ISO-8859-2")]; + }; +static const struct stringpool_t stringpool_contents = + { + "ASCII", + "CP1251", + "$ abc", + "ISO-8859-1", + "ISO-8859-15", + "ISO-8859-9", + "ISO-8859-8", + "ISO-8859-7", + "ISO-8859-6", + "ISO-8859-5", + "ISO-8859-4", + "ISO-8859-3", + "ISO-8859-2" + }; +#define stringpool ((const char *) &stringpool_contents) + +static const struct mapping mappings[] = + { + {-1}, {-1}, {-1}, {-1}, {-1}, +#line 19 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str5, "646"}, +#line 30 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str6, "ansi-1251"}, +#line 18 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str7}, + {-1}, {-1}, +#line 20 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str10, "ISO8859-1"}, +#line 29 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str11, "ISO8859-15"}, +#line 28 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str12, "ISO8859-9"}, +#line 27 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str13, "ISO8859-8"}, +#line 26 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str14, "ISO8859-7"}, +#line 25 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str15, "ISO8859-6"}, +#line 24 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str16, "ISO8859-5"}, +#line 23 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str17, "ISO8859-4"}, +#line 22 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str18, "ISO8859-3"}, +#line 21 "./iconv_open-solaris.gperf" + {(int)(long)&((struct stringpool_t *)0)->stringpool_str19, "ISO8859-2"} + }; + +#ifdef __GNUC__ +__inline +#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ +__attribute__ ((__gnu_inline__)) +#endif +#endif +const struct mapping * +mapping_lookup (register const char *str, register unsigned int len) +{ + if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) + { + register int key = mapping_hash (str, len); + + if (key <= MAX_HASH_VALUE && key >= 0) + { + register int o = mappings[key].standard_name; + if (o >= 0) + { + register const char *s = o + stringpool; + + if (*str == *s && !strcmp (str + 1, s + 1)) + return &mappings[key]; + } + } + } + return 0; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/intprops.h gettext-0.18.1.1/gettext-tools/libgettextpo/intprops.h --- gettext-0.17/gettext-tools/libgettextpo/intprops.h 2007-10-17 22:37:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/intprops.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,6 +1,7 @@ /* intprops.h -- properties of integer types - Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2009, 2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,40 +18,43 @@ /* Written by Paul Eggert. */ -#include +#ifndef GL_INTPROPS_H +# define GL_INTPROPS_H + +# include /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ -#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) +# define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if negative values of the signed integer type T use two's complement, ones' complement, or signed magnitude representation, respectively. Much GNU code assumes two's complement, but some people like to be portable to all possible C hosts. */ -#define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) -#define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) -#define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) +# define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1) +# define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0) +# define TYPE_SIGNED_MAGNITUDE(t) ((t) ~ (t) 0 < (t) -1) /* True if the arithmetic type T is signed. */ -#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) +# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* The maximum and minimum values for the integer type T. These macros have undefined behavior if T is signed and has padding bits. If this is a problem for you, please let us know how to fix it for your host. */ -#define TYPE_MINIMUM(t) \ +# define TYPE_MINIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) 0 \ - : TYPE_SIGNED_MAGNITUDE (t) \ - ? ~ (t) 0 \ - : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) -#define TYPE_MAXIMUM(t) \ + ? (t) 0 \ + : TYPE_SIGNED_MAGNITUDE (t) \ + ? ~ (t) 0 \ + : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))) +# define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) + ? (t) -1 \ + : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) /* Return zero if T can be determined to be an unsigned type. Otherwise, return 1. @@ -58,20 +62,22 @@ tighter bound. Otherwise, it overestimates the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. The symbol signed_type_or_expr__ is private to this header file. */ -#if __GNUC__ >= 2 -# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) -#else -# define signed_type_or_expr__(t) 1 -#endif +# if __GNUC__ >= 2 +# define signed_type_or_expr__(t) TYPE_SIGNED (__typeof__ (t)) +# else +# define signed_type_or_expr__(t) 1 +# endif /* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if T is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ -#define INT_STRLEN_BOUND(t) \ +# define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - signed_type_or_expr__ (t)) * 146 / 485 \ + signed_type_or_expr__ (t) + 1) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ -#define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) +# define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) + +#endif /* GL_INTPROPS_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/lbrkprop.h gettext-0.18.1.1/gettext-tools/libgettextpo/lbrkprop.h --- gettext-0.17/gettext-tools/libgettextpo/lbrkprop.h 2007-10-07 20:30:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/lbrkprop.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,1895 +0,0 @@ -/* Line breaking properties of Unicode characters. */ -/* Generated automatically by gen-lbrkprop for Unicode 3.1.0. */ - -/* Copyright (C) 2000-2004 Free Software Foundation, Inc. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#define lbrkprop_header_0 16 -#define lbrkprop_header_1 15 -#define lbrkprop_header_2 7 -#define lbrkprop_header_3 511 -#define lbrkprop_header_4 127 -static const -struct - { - int level1[15]; - int level2[4 << 9]; - unsigned char level3[100 << 7]; - } -lbrkprop = -{ - { 0, 512, 1024, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 1536 }, - { - 0, 128, 256, 384, 512, 640, 768, 896, - 1024, 1152, 1280, 1408, 1536, 1664, 1792, 1920, - -1, -1, 2048, 2176, 2304, 2432, 2560, 2688, - 2816, 2944, 3072, 3200, 3328, 3456, 3584, 3712, - 3840, 3968, 4096, 4224, 4352, 4480, 4608, 4736, - 4864, 4992, 4992, 4992, 5120, 5248, -1, 5376, - 5504, 5632, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 4992, 5760, 5888, 6016, - 6144, 6272, 6400, 6528, 6656, 6784, 6912, 7040, - 7168, 7296, 7424, 7552, 7680, -1, 7808, 7936, - 4992, 4992, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 8064, 8192, 8320, - 8448, 8576, 8704, 8832, 8960, 9088, 9216, 9344, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 9472, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 9600, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 9728, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 9856, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 8192, 8192, 9984, -1, 10112, 10240, - 4992, 4992, 10368, 10496, 10624, 10752, 10880, 11008, - -1, -1, -1, -1, -1, -1, 11136, -1, - 11264, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 4992, 11392, 11520, 11648, -1, -1, -1, -1, - 11776, 11904, 12032, 4992, 4992, 12160, 4992, 12288, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 8192, 8192, 8192, - 8192, 8192, 8192, 8192, 8192, 12416, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 8192, 8192, 8192, 8192, 12544, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - 12672, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1 - }, - { - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_BA, LBP_BK, LBP_CM, LBP_BK, LBP_BK, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_SP, LBP_EX, LBP_QU, LBP_AL, LBP_PR, LBP_PO, LBP_AL, LBP_QU, - LBP_OP, LBP_CL, LBP_AL, LBP_PR, LBP_IS, LBP_HY, LBP_IS, LBP_SY, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_IS, LBP_IS, LBP_AL, LBP_AL, LBP_AL, LBP_EX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_PR, LBP_CL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_BA, LBP_CL, LBP_AL, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BK, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_GL, LBP_AI, LBP_PO, LBP_PR, LBP_PR, LBP_PR, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AI, LBP_QU, LBP_AL, LBP_BA, LBP_AL, LBP_AL, - LBP_PO, LBP_PR, LBP_AI, LBP_AI, LBP_BB, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_QU, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_BB, LBP_AI, LBP_AI, LBP_AI, LBP_BB, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_XX, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_IS, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, - LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, - LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_CM, - LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_AL, LBP_PR, LBP_PR, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_CM, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_PR, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NS, LBP_NS, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, - LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_SA, - LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_CM, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_SA, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_GL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_CM, - LBP_AL, LBP_CM, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_CM, LBP_CM, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, - LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_NS, LBP_BA, LBP_NS, LBP_NS, - LBP_NS, LBP_NS, LBP_NS, LBP_PR, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_GL, - LBP_BA, LBP_BA, LBP_BA, LBP_ZW, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_BA, LBP_GL, LBP_BA, LBP_BA, LBP_B2, LBP_AI, LBP_AI, LBP_AL, - LBP_QU, LBP_QU, LBP_OP, LBP_QU, LBP_QU, LBP_QU, LBP_OP, LBP_QU, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_IN, LBP_IN, LBP_IN, LBP_BA, - LBP_BK, LBP_BK, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, - LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, - LBP_AL, LBP_QU, LBP_QU, LBP_AI, LBP_NS, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_OP, LBP_CL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AI, - LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PO, - LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_PR, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AI, LBP_PR, LBP_PR, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, - LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, - LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AI, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_CL, LBP_CL, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, - LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, - LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, - LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_NS, LBP_OP, LBP_CL, LBP_CL, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, - LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_XX, - LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, - LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, - LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_CL, LBP_ID, LBP_CL, LBP_XX, LBP_NS, LBP_NS, LBP_EX, LBP_EX, - LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_GL, - LBP_XX, LBP_EX, LBP_ID, LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_ID, - LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_CL, LBP_ID, LBP_CL, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_EX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_XX, - LBP_XX, LBP_CL, LBP_OP, LBP_CL, LBP_CL, LBP_NS, LBP_AL, LBP_NS, - LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, - LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_NS, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, - LBP_PO, LBP_PR, LBP_ID, LBP_ID, LBP_ID, LBP_PR, LBP_PR, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CB, LBP_AI, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, - LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, - LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, - LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, - LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, - LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM - } -}; diff -Nru gettext-0.17/gettext-tools/libgettextpo/libgettextpo.rc gettext-0.18.1.1/gettext-tools/libgettextpo/libgettextpo.rc --- gettext-0.17/gettext-tools/libgettextpo/libgettextpo.rc 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/libgettextpo.rc 2010-06-06 12:49:57.000000000 +0000 @@ -21,10 +21,10 @@ BEGIN VALUE "Comments", "This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License along with this library. If not, see .\0" VALUE "CompanyName", "Free Software Foundation\0" - VALUE "FileDescription", "GPLed libgettextpo for Windows NT/2000/XP/Vista and Windows 95/98/ME\0" + VALUE "FileDescription", "GPLed libgettextpo for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0" VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" VALUE "InternalName", "gettextpo.dll\0" - VALUE "LegalCopyright", "Copyright (C) 1995-2007\0" + VALUE "LegalCopyright", "Copyright (C) 1995-2010\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "gettextpo.dll\0" VALUE "ProductName", "libgettextpo: public API for PO files\0" diff -Nru gettext-0.17/gettext-tools/libgettextpo/libunistring.valgrind gettext-0.18.1.1/gettext-tools/libgettextpo/libunistring.valgrind --- gettext-0.17/gettext-tools/libgettextpo/libunistring.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/libunistring.valgrind 2010-05-19 20:14:20.000000000 +0000 @@ -0,0 +1,9 @@ +# Suppress valgrind messages in an installed libunistring. + +# Suppress a valgrind message about use of uninitialized memory in freea(). +# This use is OK because it provides only a speedup. +{ + libunistring_freea + Memcheck:Cond + fun:libunistring_freea +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/linebreak.c gettext-0.18.1.1/gettext-tools/libgettextpo/linebreak.c --- gettext-0.17/gettext-tools/libgettextpo/linebreak.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/linebreak.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,1334 +0,0 @@ -/* linebreak.c - line breaking of Unicode strings - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "linebreak.h" - -#include -#include -#include "c-ctype.h" -#include "xsize.h" -#include "unistr.h" -#include "uniwidth.h" -#include "uniwidth/cjk.h" -#include "streq.h" - - -static int -is_utf8_encoding (const char *encoding) -{ - if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) - return 1; - return 0; -} - - -/* Determine the line break points in S, and store the result at p[0..n-1]. */ -/* We don't support line breaking of complex-context dependent characters - (Thai, Lao, Myanmar, Khmer) yet, because it requires dictionary lookup. */ - -/* Line breaking classification. */ - -enum -{ - /* Values >= 20 are resolved at run time. */ - LBP_BK = 0, /* mandatory break */ -/*LBP_CR, carriage return - not used here because it's a DOSism */ -/*LBP_LF, line feed - not used here because it's a DOSism */ - LBP_CM = 20, /* attached characters and combining marks */ -/*LBP_SG, surrogates - not used here because they are not characters */ - LBP_ZW = 1, /* zero width space */ - LBP_IN = 2, /* inseparable */ - LBP_GL = 3, /* non-breaking (glue) */ - LBP_CB = 22, /* contingent break opportunity */ - LBP_SP = 21, /* space */ - LBP_BA = 4, /* break opportunity after */ - LBP_BB = 5, /* break opportunity before */ - LBP_B2 = 6, /* break opportunity before and after */ - LBP_HY = 7, /* hyphen */ - LBP_NS = 8, /* non starter */ - LBP_OP = 9, /* opening punctuation */ - LBP_CL = 10, /* closing punctuation */ - LBP_QU = 11, /* ambiguous quotation */ - LBP_EX = 12, /* exclamation/interrogation */ - LBP_ID = 13, /* ideographic */ - LBP_NU = 14, /* numeric */ - LBP_IS = 15, /* infix separator (numeric) */ - LBP_SY = 16, /* symbols allowing breaks */ - LBP_AL = 17, /* ordinary alphabetic and symbol characters */ - LBP_PR = 18, /* prefix (numeric) */ - LBP_PO = 19, /* postfix (numeric) */ - LBP_SA = 23, /* complex context (South East Asian) */ - LBP_AI = 24, /* ambiguous (alphabetic or ideograph) */ - LBP_XX = 25 /* unknown */ -}; - -#include "lbrkprop.h" - -static inline unsigned char -lbrkprop_lookup (unsigned int uc) -{ - unsigned int index1 = uc >> lbrkprop_header_0; - if (index1 < lbrkprop_header_1) - { - int lookup1 = lbrkprop.level1[index1]; - if (lookup1 >= 0) - { - unsigned int index2 = (uc >> lbrkprop_header_2) & lbrkprop_header_3; - int lookup2 = lbrkprop.level2[lookup1 + index2]; - if (lookup2 >= 0) - { - unsigned int index3 = uc & lbrkprop_header_4; - return lbrkprop.level3[lookup2 + index3]; - } - } - } - return LBP_XX; -} - -/* Table indexed by two line breaking classifications. */ -#define D 1 /* direct break opportunity, empty in table 7.3 of UTR #14 */ -#define I 2 /* indirect break opportunity, '%' in table 7.3 of UTR #14 */ -#define P 3 /* prohibited break, '^' in table 7.3 of UTR #14 */ -static const unsigned char lbrk_table[19][19] = { - /* after */ - /* ZW IN GL BA BB B2 HY NS OP CL QU EX ID NU IS SY AL PR PO */ -/* ZW */ { P, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, D, }, -/* IN */ { P, I, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* GL */ { P, I, I, I, I, I, I, I, I, P, I, P, I, I, P, P, I, I, I, }, -/* BA */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* BB */ { P, I, I, I, I, I, I, I, I, P, I, P, I, I, P, P, I, I, I, }, -/* B2 */ { P, D, I, I, D, P, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* HY */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* NS */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* OP */ { P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, }, -/* CL */ { P, D, I, I, D, D, I, P, D, P, I, P, D, D, P, P, D, D, I, }, -/* QU */ { P, I, I, I, I, I, I, I, P, P, I, P, I, I, P, P, I, I, I, }, -/* EX */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* ID */ { P, I, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, I, }, -/* NU */ { P, I, I, I, D, D, I, I, D, P, I, P, D, I, P, P, I, D, I, }, -/* IS */ { P, D, I, I, D, D, I, I, D, P, I, P, D, I, P, P, D, D, D, }, -/* SY */ { P, D, I, I, D, D, I, I, D, P, I, P, D, I, P, P, D, D, D, }, -/* AL */ { P, I, I, I, D, D, I, I, D, P, I, P, D, I, P, P, I, D, D, }, -/* PR */ { P, D, I, I, D, D, I, I, I, P, I, P, I, I, P, P, I, D, D, }, -/* PO */ { P, D, I, I, D, D, I, I, D, P, I, P, D, D, P, P, D, D, D, }, -/* "" */ -/* before */ -}; -/* Note: The (B2,B2) entry should probably be D instead of P. */ -/* Note: The (PR,ID) entry should probably be D instead of I. */ - -void -u8_possible_linebreaks (const unsigned char *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned char *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - /* Don't break inside multibyte characters. */ - memset (p, UC_BREAK_PROHIBITED, n); - - while (s < s_end) - { - unsigned int uc; - int count = u8_mbtouc_unsafe (&uc, s, s_end - s); - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s += count; - p += count; - } -} - -#ifdef unused - -void -u16_possible_linebreaks (const unsigned short *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned short *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - /* Don't break inside multibyte characters. */ - memset (p, UC_BREAK_PROHIBITED, n); - - while (s < s_end) - { - unsigned int uc; - int count = u16_mbtouc_unsafe (&uc, s, s_end - s); - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s += count; - p += count; - } -} - -void -u32_possible_linebreaks (const unsigned int *s, size_t n, const char *encoding, char *p) -{ - int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); - const unsigned int *s_end = s + n; - int last_prop = LBP_BK; /* line break property of last non-space character */ - char *seen_space = NULL; /* Was a space seen after the last non-space character? */ - char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ - - while (s < s_end) - { - unsigned int uc = *s; - int prop = lbrkprop_lookup (uc); - - if (prop == LBP_BK) - { - /* Mandatory break. */ - *p = UC_BREAK_MANDATORY; - last_prop = LBP_BK; - seen_space = NULL; - seen_space2 = NULL; - } - else - { - char *q; - - /* Resolve property values whose behaviour is not fixed. */ - switch (prop) - { - case LBP_AI: - /* Resolve ambiguous. */ - prop = LBP_AI_REPLACEMENT; - break; - case LBP_CB: - /* This is arbitrary. */ - prop = LBP_ID; - break; - case LBP_SA: - /* We don't handle complex scripts yet. - Treat LBP_SA like LBP_XX. */ - case LBP_XX: - /* This is arbitrary. */ - prop = LBP_AL; - break; - } - - /* Deal with combining characters. */ - q = p; - if (prop == LBP_CM) - { - /* Don't break just before a combining character. */ - *p = UC_BREAK_PROHIBITED; - /* A combining character turns a preceding space into LBP_AL. */ - if (seen_space != NULL) - { - q = seen_space; - seen_space = seen_space2; - prop = LBP_AL; - goto lookup_via_table; - } - } - else if (prop == LBP_SP) - { - /* Don't break just before a space. */ - *p = UC_BREAK_PROHIBITED; - seen_space2 = seen_space; - seen_space = p; - } - else - { - lookup_via_table: - /* prop must be usable as an index for table 7.3 of UTR #14. */ - if (!(prop >= 1 && prop <= sizeof(lbrk_table) / sizeof(lbrk_table[0]))) - abort (); - - if (last_prop == LBP_BK) - { - /* Don't break at the beginning of a line. */ - *q = UC_BREAK_PROHIBITED; - } - else - { - switch (lbrk_table [last_prop-1] [prop-1]) - { - case D: - *q = UC_BREAK_POSSIBLE; - break; - case I: - *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); - break; - case P: - *q = UC_BREAK_PROHIBITED; - break; - default: - abort (); - } - } - last_prop = prop; - seen_space = NULL; - seen_space2 = NULL; - } - } - - s++; - p++; - } -} - -#endif - - -/* Choose the best line breaks, assuming the uc_width function. - Return the column after the end of the string. */ - -int -u8_width_linebreaks (const unsigned char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned char *s_end; - char *last_p; - int last_column; - int piece_width; - - u8_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc; - int count = u8_mbtouc_unsafe (&uc, s, s_end - s); - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s += count; - p += count; - if (o != NULL) - o += count; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -#ifdef unused - -int -u16_width_linebreaks (const unsigned short *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned short *s_end; - char *last_p; - int last_column; - int piece_width; - - u16_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc; - int count = u16_mbtouc_unsafe (&uc, s, s_end - s); - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s += count; - p += count; - if (o != NULL) - o += count; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -int -u32_width_linebreaks (const unsigned int *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - const unsigned int *s_end; - char *last_p; - int last_column; - int piece_width; - - u32_possible_linebreaks (s, n, encoding, p); - - s_end = s + n; - last_p = NULL; - last_column = start_column; - piece_width = 0; - while (s < s_end) - { - unsigned int uc = *s; - - /* Respect the override. */ - if (o != NULL && *o != UC_BREAK_UNDEFINED) - *p = *o; - - if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) - { - /* An atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - } - - if (*p == UC_BREAK_MANDATORY) - { - /* uc is a line break character. */ - /* Start a new piece at column 0. */ - last_p = NULL; - last_column = 0; - piece_width = 0; - } - else - { - /* uc is not a line break character. */ - int w; - - if (*p == UC_BREAK_POSSIBLE) - { - /* Start a new piece. */ - last_p = p; - last_column += piece_width; - piece_width = 0; - /* No line break for the moment, may be turned into - UC_BREAK_POSSIBLE later, via last_p. */ - } - - *p = UC_BREAK_PROHIBITED; - - w = uc_width (uc, encoding); - if (w >= 0) /* ignore control characters in the string */ - piece_width += w; - } - - s++; - p++; - if (o != NULL) - o++; - } - - /* The last atomic piece of text ends here. */ - if (last_p != NULL && last_column + piece_width + at_end_columns > width) - { - /* Insert a line break. */ - *last_p = UC_BREAK_POSSIBLE; - last_column = 0; - } - - return last_column + piece_width; -} - -#endif - - -#ifdef TEST1 - -#include - -/* Read the contents of an input stream, and return it, terminated with a NUL - byte. */ -char * -read_file (FILE *stream) -{ -#define BUFSIZE 4096 - char *buf = NULL; - int alloc = 0; - int size = 0; - int count; - - while (! feof (stream)) - { - if (size + BUFSIZE > alloc) - { - alloc = alloc + alloc / 2; - if (alloc < size + BUFSIZE) - alloc = size + BUFSIZE; - buf = realloc (buf, alloc); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - } - count = fread (buf + size, 1, BUFSIZE, stream); - if (count == 0) - { - if (ferror (stream)) - { - perror ("fread"); - exit (1); - } - } - else - size += count; - } - buf = realloc (buf, size + 1); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - buf[size] = '\0'; - return buf; -#undef BUFSIZE -} - -int -main (int argc, char * argv[]) -{ - if (argc == 1) - { - /* Display all the break opportunities in the input string. */ - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - u8_possible_linebreaks ((unsigned char *) input, length, "UTF-8", breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - /* U+2027 in UTF-8 encoding */ - putc (0xe2, stdout); putc (0x80, stdout); putc (0xa7, stdout); - break; - case UC_BREAK_MANDATORY: - /* U+21B2 (or U+21B5) in UTF-8 encoding */ - putc (0xe2, stdout); putc (0x86, stdout); putc (0xb2, stdout); - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else if (argc == 2) - { - /* Insert line breaks for a given width. */ - int width = atoi (argv[1]); - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - u8_width_linebreaks ((unsigned char *) input, length, width, 0, 0, NULL, "UTF-8", breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('\n', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else - return 1; -} - -#endif /* TEST1 */ - - -/* Now the same thing with an arbitrary encoding. - - We convert the input string to Unicode. - - The standardized Unicode encodings are UTF-8, UCS-2, UCS-4, UTF-16, - UTF-16BE, UTF-16LE, UTF-7. UCS-2 supports only characters up to - \U0000FFFF. UTF-16 and variants support only characters up to - \U0010FFFF. UTF-7 is way too complex and not supported by glibc-2.1. - UCS-4 specification leaves doubts about endianness and byte order mark. - glibc currently interprets it as big endian without byte order mark, - but this is not backed by an RFC. So we use UTF-8. It supports - characters up to \U7FFFFFFF and is unambiguously defined. */ - -#if HAVE_ICONV - -#include -#include - -/* Luckily, the encoding's name is platform independent. */ -#define UTF8_NAME "UTF-8" - -/* Return the length of a string after conversion through an iconv_t. */ -static size_t -iconv_string_length (iconv_t cd, const char *s, size_t n) -{ -#define TMPBUFSIZE 4096 - size_t count = 0; - char tmpbuf[TMPBUFSIZE]; - const char *inptr = s; - size_t insize = n; - while (insize > 0) - { - char *outptr = tmpbuf; - size_t outsize = TMPBUFSIZE; - size_t res = iconv (cd, (ICONV_CONST char **) &inptr, &insize, &outptr, &outsize); - if (res == (size_t)(-1) && errno != E2BIG) - return (size_t)(-1); - count += outptr - tmpbuf; - } - /* Avoid glibc-2.1 bug and Solaris 7 through 9 bug. */ -#if defined _LIBICONV_VERSION \ - || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) - { - char *outptr = tmpbuf; - size_t outsize = TMPBUFSIZE; - size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); - if (res == (size_t)(-1)) - return (size_t)(-1); - count += outptr - tmpbuf; - } - /* Return to the initial state. */ - iconv (cd, NULL, NULL, NULL, NULL); -#endif - return count; -#undef TMPBUFSIZE -} - -static void -iconv_string_keeping_offsets (iconv_t cd, const char *s, size_t n, - size_t *offtable, char *t, size_t m) -{ - size_t i; - const char *s_end; - const char *inptr; - char *outptr; - size_t outsize; - /* Avoid glibc-2.1 bug. */ -#if !defined _LIBICONV_VERSION && (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) - const size_t extra = 1; -#else - const size_t extra = 0; -#endif - - for (i = 0; i < n; i++) - offtable[i] = (size_t)(-1); - - s_end = s + n; - inptr = s; - outptr = t; - outsize = m + extra; - while (inptr < s_end) - { - const char *saved_inptr; - size_t insize; - size_t res; - - offtable[inptr - s] = outptr - t; - - saved_inptr = inptr; - res = (size_t)(-1); - for (insize = 1; inptr + insize <= s_end; insize++) - { - res = iconv (cd, (ICONV_CONST char **) &inptr, &insize, &outptr, &outsize); - if (!(res == (size_t)(-1) && errno == EINVAL)) - break; - /* We expect that no input bytes have been consumed so far. */ - if (inptr != saved_inptr) - abort (); - } - /* After we verified the convertibility and computed the translation's - size m, there shouldn't be any conversion error here. */ - if (res == (size_t)(-1)) - abort (); - } - /* Avoid glibc-2.1 bug and Solaris 7 bug. */ -#if defined _LIBICONV_VERSION \ - || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) - if (iconv (cd, NULL, NULL, &outptr, &outsize) == (size_t)(-1)) - abort (); -#endif - /* We should have produced exactly m output bytes. */ - if (outsize != extra) - abort (); -} - -#endif /* HAVE_ICONV */ - -#if C_CTYPE_ASCII - -/* Tests whether a string is entirely ASCII. Returns 1 if yes. - Returns 0 if the string is in an 8-bit encoding or an ISO-2022 encoding. */ -static int -is_all_ascii (const char *s, size_t n) -{ - for (; n > 0; s++, n--) - { - unsigned char c = (unsigned char) *s; - - if (!(c_isprint (c) || c_isspace (c))) - return 0; - } - return 1; -} - -#endif /* C_CTYPE_ASCII */ - -#if defined unused || defined TEST2 - -void -mbs_possible_linebreaks (const char *s, size_t n, const char *encoding, - char *p) -{ - if (n == 0) - return; - if (is_utf8_encoding (encoding)) - u8_possible_linebreaks ((const unsigned char *) s, n, encoding, p); - else - { -#if HAVE_ICONV - iconv_t to_utf8; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - /* Avoid Solaris 9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, - GB18030. */ -# if defined __sun && !defined _LIBICONV_VERSION - if ( STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) - || STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0) - || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0) - || STREQ (encoding, "BIG5-HKSCS", 'B', 'I', 'G', '5', '-', 'H', 'K', 'S', 'C') - || STREQ (encoding, "GBK", 'G', 'B', 'K', 0, 0, 0, 0, 0, 0) - || STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - to_utf8 = iconv_open (UTF8_NAME, encoding); - if (to_utf8 != (iconv_t)(-1)) - { - /* Determine the length of the resulting UTF-8 string. */ - size_t m = iconv_string_length (to_utf8, s, n); - if (m != (size_t)(-1)) - { - /* Convert the string to UTF-8 and build a translation table - from offsets into s to offsets into the translated string. */ - size_t memory_size = xsum3 (xtimes (n, sizeof (size_t)), m, m); - char *memory = - (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); - if (memory != NULL) - { - size_t *offtable = (size_t *) memory; - char *t = (char *) (offtable + n); - char *q = (char *) (t + m); - size_t i; - - iconv_string_keeping_offsets (to_utf8, s, n, offtable, t, m); - - /* Determine the possible line breaks of the UTF-8 string. */ - u8_possible_linebreaks ((const unsigned char *) t, m, encoding, q); - - /* Translate the result back to the original string. */ - memset (p, UC_BREAK_PROHIBITED, n); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - p[i] = q[offtable[i]]; - - free (memory); - iconv_close (to_utf8); - return; - } - } - iconv_close (to_utf8); - } -#endif - /* Impossible to convert. */ -#if C_CTYPE_ASCII - if (is_all_ascii (s, n)) - { - /* ASCII is a subset of UTF-8. */ - u8_possible_linebreaks ((const unsigned char *) s, n, encoding, p); - return; - } -#endif - /* We have a non-ASCII string and cannot convert it. - Don't produce line breaks except those already present in the - input string. All we assume here is that the encoding is - minimally ASCII compatible. */ - { - const char *s_end = s + n; - while (s < s_end) - { - *p = (*s == '\n' ? UC_BREAK_MANDATORY : UC_BREAK_PROHIBITED); - s++; - p++; - } - } - } -} - -#endif - -int -mbs_width_linebreaks (const char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p) -{ - if (n == 0) - return start_column; - if (is_utf8_encoding (encoding)) - return u8_width_linebreaks ((const unsigned char *) s, n, width, start_column, at_end_columns, o, encoding, p); - else - { -#if HAVE_ICONV - iconv_t to_utf8; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - /* Avoid Solaris 9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, - GB18030. */ -# if defined __sun && !defined _LIBICONV_VERSION - if ( STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) - || STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0) - || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0) - || STREQ (encoding, "BIG5-HKSCS", 'B', 'I', 'G', '5', '-', 'H', 'K', 'S', 'C') - || STREQ (encoding, "GBK", 'G', 'B', 'K', 0, 0, 0, 0, 0, 0) - || STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) - to_utf8 = (iconv_t)(-1); - else -# endif - to_utf8 = iconv_open (UTF8_NAME, encoding); - if (to_utf8 != (iconv_t)(-1)) - { - /* Determine the length of the resulting UTF-8 string. */ - size_t m = iconv_string_length (to_utf8, s, n); - if (m != (size_t)(-1)) - { - /* Convert the string to UTF-8 and build a translation table - from offsets into s to offsets into the translated string. */ - size_t memory_size = - xsum4 (xtimes (n, sizeof (size_t)), m, m, - (o != NULL ? m : 0)); - char *memory = - (char *) - (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); - if (memory != NULL) - { - size_t *offtable = (size_t *) memory; - char *t = (char *) (offtable + n); - char *q = (char *) (t + m); - char *o8 = (o != NULL ? (char *) (q + m) : NULL); - int res_column; - size_t i; - - iconv_string_keeping_offsets (to_utf8, s, n, offtable, t, m); - - /* Translate the overrides to the UTF-8 string. */ - if (o != NULL) - { - memset (o8, UC_BREAK_UNDEFINED, m); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - o8[offtable[i]] = o[i]; - } - - /* Determine the line breaks of the UTF-8 string. */ - res_column = - u8_width_linebreaks ((const unsigned char *) t, m, width, start_column, at_end_columns, o8, encoding, q); - - /* Translate the result back to the original string. */ - memset (p, UC_BREAK_PROHIBITED, n); - for (i = 0; i < n; i++) - if (offtable[i] != (size_t)(-1)) - p[i] = q[offtable[i]]; - - free (memory); - iconv_close (to_utf8); - return res_column; - } - } - iconv_close (to_utf8); - } -#endif - /* Impossible to convert. */ -#if C_CTYPE_ASCII - if (is_all_ascii (s, n)) - { - /* ASCII is a subset of UTF-8. */ - return u8_width_linebreaks ((const unsigned char *) s, n, width, start_column, at_end_columns, o, encoding, p); - } -#endif - /* We have a non-ASCII string and cannot convert it. - Don't produce line breaks except those already present in the - input string. All we assume here is that the encoding is - minimally ASCII compatible. */ - { - const char *s_end = s + n; - while (s < s_end) - { - *p = ((o != NULL && *o == UC_BREAK_MANDATORY) || *s == '\n' - ? UC_BREAK_MANDATORY - : UC_BREAK_PROHIBITED); - s++; - p++; - if (o != NULL) - o++; - } - /* We cannot compute widths in this case. */ - return start_column; - } - } -} - - -#ifdef TEST2 - -#include -#include - -/* Read the contents of an input stream, and return it, terminated with a NUL - byte. */ -char * -read_file (FILE *stream) -{ -#define BUFSIZE 4096 - char *buf = NULL; - int alloc = 0; - int size = 0; - int count; - - while (! feof (stream)) - { - if (size + BUFSIZE > alloc) - { - alloc = alloc + alloc / 2; - if (alloc < size + BUFSIZE) - alloc = size + BUFSIZE; - buf = realloc (buf, alloc); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - } - count = fread (buf + size, 1, BUFSIZE, stream); - if (count == 0) - { - if (ferror (stream)) - { - perror ("fread"); - exit (1); - } - } - else - size += count; - } - buf = realloc (buf, size + 1); - if (buf == NULL) - { - fprintf (stderr, "out of memory\n"); - exit (1); - } - buf[size] = '\0'; - return buf; -#undef BUFSIZE -} - -int -main (int argc, char * argv[]) -{ - setlocale (LC_CTYPE, ""); - if (argc == 1) - { - /* Display all the break opportunities in the input string. */ - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - mbs_possible_linebreaks (input, length, locale_charset (), breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('|', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else if (argc == 2) - { - /* Insert line breaks for a given width. */ - int width = atoi (argv[1]); - char *input = read_file (stdin); - int length = strlen (input); - char *breaks = malloc (length); - int i; - - mbs_width_linebreaks (input, length, width, 0, 0, NULL, locale_charset (), breaks); - - for (i = 0; i < length; i++) - { - switch (breaks[i]) - { - case UC_BREAK_POSSIBLE: - putc ('\n', stdout); - break; - case UC_BREAK_MANDATORY: - break; - case UC_BREAK_PROHIBITED: - break; - default: - abort (); - } - putc (input[i], stdout); - } - - free (breaks); - - return 0; - } - else - return 1; -} - -#endif /* TEST2 */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/linebreak.h gettext-0.18.1.1/gettext-tools/libgettextpo/linebreak.h --- gettext-0.17/gettext-tools/libgettextpo/linebreak.h 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/linebreak.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,94 +0,0 @@ -/* linebreak.h - line breaking of Unicode strings - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#ifndef _LINEBREAK_H -#define _LINEBREAK_H - -/* Get size_t. */ -#include - - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Line breaking. */ - -enum { - UC_BREAK_UNDEFINED, - UC_BREAK_PROHIBITED, - UC_BREAK_POSSIBLE, - UC_BREAK_MANDATORY, - UC_BREAK_HYPHENATION -}; - -/* Determine the line break points in S, and store the result at p[0..n-1]. - p[i] = UC_BREAK_MANDATORY means that s[i] is a line break character. - p[i] = UC_BREAK_POSSIBLE means that a line break may be inserted between - s[i-1] and s[i]. - p[i] = UC_BREAK_HYPHENATION means that a hyphen and a line break may be - inserted between s[i-1] and s[i]. But beware of language dependent - hyphenation rules. - p[i] = UC_BREAK_PROHIBITED means that s[i-1] and s[i] must not be separated. - */ -extern void u8_possible_linebreaks (const unsigned char *s, size_t n, - const char *encoding, - char *p); -extern void u16_possible_linebreaks (const unsigned short *s, size_t n, - const char *encoding, - char *p); -extern void u32_possible_linebreaks (const unsigned int *s, size_t n, - const char *encoding, - char *p); -extern void mbs_possible_linebreaks (const char *s, size_t n, - const char *encoding, - char *p); - -/* Choose the best line breaks, assuming the uc_width function. - Return the column after the end of the string. - o is an optional override; if o[i] != UC_BREAK_UNDEFINED, o[i] takes - precedence over p[i] as returned by the *_possible_linebreaks function. - */ -extern int - u8_width_linebreaks (const unsigned char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - u16_width_linebreaks (const unsigned short *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - u32_width_linebreaks (const unsigned int *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); -extern int - mbs_width_linebreaks (const char *s, size_t n, - int width, int start_column, int at_end_columns, - const char *o, const char *encoding, - char *p); - - -#ifdef __cplusplus -} -#endif - - -#endif /* _LINEBREAK_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/localcharset.c gettext-0.18.1.1/gettext-tools/libgettextpo/localcharset.c --- gettext-0.17/gettext-tools/libgettextpo/localcharset.c 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/localcharset.c 2010-05-09 01:38:03.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2006 Free Software Foundation, Inc. + Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,21 +23,29 @@ /* Specification. */ #include "localcharset.h" +#include #include #include #include #include +#if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET +# define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ +#endif + #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ -# define OS2 +# ifndef OS2 +# define OS2 +# endif #endif #if !defined WIN32_NATIVE +# include # if HAVE_LANGINFO_CODESET # include # else @@ -69,6 +77,11 @@ # include "configmake.h" #endif +/* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ +#ifndef O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') @@ -110,160 +123,220 @@ cp = charset_aliases; if (cp == NULL) { -#if !(defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) - FILE *fp; +#if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is - necessary for running the testsuite before "make install". */ + necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') - dir = relocate (LIBDIR); + dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { - size_t dir_len = strlen (dir); - size_t base_len = strlen (base); - int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); - file_name = (char *) malloc (dir_len + add_slash + base_len + 1); - if (file_name != NULL) - { - memcpy (file_name, dir, dir_len); - if (add_slash) - file_name[dir_len] = DIRECTORY_SEPARATOR; - memcpy (file_name + dir_len + add_slash, base, base_len + 1); - } + size_t dir_len = strlen (dir); + size_t base_len = strlen (base); + int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); + file_name = (char *) malloc (dir_len + add_slash + base_len + 1); + if (file_name != NULL) + { + memcpy (file_name, dir, dir_len); + if (add_slash) + file_name[dir_len] = DIRECTORY_SEPARATOR; + memcpy (file_name + dir_len + add_slash, base, base_len + 1); + } } - if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) - /* Out of memory or file not found, treat it as empty. */ - cp = ""; + if (file_name == NULL) + /* Out of memory. Treat the file as empty. */ + cp = ""; else - { - /* Parse the file's contents. */ - char *res_ptr = NULL; - size_t res_size = 0; - - for (;;) - { - int c; - char buf1[50+1]; - char buf2[50+1]; - size_t l1, l2; - char *old_res_ptr; - - c = getc (fp); - if (c == EOF) - break; - if (c == '\n' || c == ' ' || c == '\t') - continue; - if (c == '#') - { - /* Skip comment, to end of line. */ - do - c = getc (fp); - while (!(c == EOF || c == '\n')); - if (c == EOF) - break; - continue; - } - ungetc (c, fp); - if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) - break; - l1 = strlen (buf1); - l2 = strlen (buf2); - old_res_ptr = res_ptr; - if (res_size == 0) - { - res_size = l1 + 1 + l2 + 1; - res_ptr = (char *) malloc (res_size + 1); - } - else - { - res_size += l1 + 1 + l2 + 1; - res_ptr = (char *) realloc (res_ptr, res_size + 1); - } - if (res_ptr == NULL) - { - /* Out of memory. */ - res_size = 0; - if (old_res_ptr != NULL) - free (old_res_ptr); - break; - } - strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); - strcpy (res_ptr + res_size - (l2 + 1), buf2); - } - fclose (fp); - if (res_size == 0) - cp = ""; - else - { - *(res_ptr + res_size) = '\0'; - cp = res_ptr; - } - } + { + int fd; - if (file_name != NULL) - free (file_name); + /* Open the file. Reject symbolic links on platforms that support + O_NOFOLLOW. This is a security feature. Without it, an attacker + could retrieve parts of the contents (namely, the tail of the + first line that starts with "* ") of an arbitrary file by placing + a symbolic link to that file under the name "charset.alias" in + some writable directory and defining the environment variable + CHARSETALIASDIR to point to that directory. */ + fd = open (file_name, + O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); + if (fd < 0) + /* File not found. Treat it as empty. */ + cp = ""; + else + { + FILE *fp; + + fp = fdopen (fd, "r"); + if (fp == NULL) + { + /* Out of memory. Treat the file as empty. */ + close (fd); + cp = ""; + } + else + { + /* Parse the file's contents. */ + char *res_ptr = NULL; + size_t res_size = 0; + + for (;;) + { + int c; + char buf1[50+1]; + char buf2[50+1]; + size_t l1, l2; + char *old_res_ptr; + + c = getc (fp); + if (c == EOF) + break; + if (c == '\n' || c == ' ' || c == '\t') + continue; + if (c == '#') + { + /* Skip comment, to end of line. */ + do + c = getc (fp); + while (!(c == EOF || c == '\n')); + if (c == EOF) + break; + continue; + } + ungetc (c, fp); + if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) + break; + l1 = strlen (buf1); + l2 = strlen (buf2); + old_res_ptr = res_ptr; + if (res_size == 0) + { + res_size = l1 + 1 + l2 + 1; + res_ptr = (char *) malloc (res_size + 1); + } + else + { + res_size += l1 + 1 + l2 + 1; + res_ptr = (char *) realloc (res_ptr, res_size + 1); + } + if (res_ptr == NULL) + { + /* Out of memory. */ + res_size = 0; + if (old_res_ptr != NULL) + free (old_res_ptr); + break; + } + strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); + strcpy (res_ptr + res_size - (l2 + 1), buf2); + } + fclose (fp); + if (res_size == 0) + cp = ""; + else + { + *(res_ptr + res_size) = '\0'; + cp = res_ptr; + } + } + } + + free (file_name); + } #else +# if defined DARWIN7 + /* To avoid the trouble of installing a file that is shared by many + GNU packages -- many packaging systems have problems with this --, + simply inline the aliases here. */ + cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-4" "\0" "ISO-8859-4" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + "ISO8859-13" "\0" "ISO-8859-13" "\0" + "ISO8859-15" "\0" "ISO-8859-15" "\0" + "KOI8-R" "\0" "KOI8-R" "\0" + "KOI8-U" "\0" "KOI8-U" "\0" + "CP866" "\0" "CP866" "\0" + "CP949" "\0" "CP949" "\0" + "CP1131" "\0" "CP1131" "\0" + "CP1251" "\0" "CP1251" "\0" + "eucCN" "\0" "GB2312" "\0" + "GB2312" "\0" "GB2312" "\0" + "eucJP" "\0" "EUC-JP" "\0" + "eucKR" "\0" "EUC-KR" "\0" + "Big5" "\0" "BIG5" "\0" + "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" + "GBK" "\0" "GBK" "\0" + "GB18030" "\0" "GB18030" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "ARMSCII-8" "\0" "ARMSCII-8" "\0" + "PT154" "\0" "PT154" "\0" + /*"ISCII-DEV" "\0" "?" "\0"*/ + "*" "\0" "UTF-8" "\0"; +# endif + # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the - sources of many GNU packages, simply inline the aliases here. */ + sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation - "Compaq C Run-Time Library Reference Manual for OpenVMS systems" - section 10.7 "Handling Different Character Sets". */ + "Compaq C Run-Time Library Reference Manual for OpenVMS systems" + section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" - "ISO8859-2" "\0" "ISO-8859-2" "\0" - "ISO8859-5" "\0" "ISO-8859-5" "\0" - "ISO8859-7" "\0" "ISO-8859-7" "\0" - "ISO8859-8" "\0" "ISO-8859-8" "\0" - "ISO8859-9" "\0" "ISO-8859-9" "\0" - /* Japanese */ - "eucJP" "\0" "EUC-JP" "\0" - "SJIS" "\0" "SHIFT_JIS" "\0" - "DECKANJI" "\0" "DEC-KANJI" "\0" - "SDECKANJI" "\0" "EUC-JP" "\0" - /* Chinese */ - "eucTW" "\0" "EUC-TW" "\0" - "DECHANYU" "\0" "DEC-HANYU" "\0" - "DECHANZI" "\0" "GB2312" "\0" - /* Korean */ - "DECKOREAN" "\0" "EUC-KR" "\0"; + "ISO8859-2" "\0" "ISO-8859-2" "\0" + "ISO8859-5" "\0" "ISO-8859-5" "\0" + "ISO8859-7" "\0" "ISO-8859-7" "\0" + "ISO8859-8" "\0" "ISO-8859-8" "\0" + "ISO8859-9" "\0" "ISO-8859-9" "\0" + /* Japanese */ + "eucJP" "\0" "EUC-JP" "\0" + "SJIS" "\0" "SHIFT_JIS" "\0" + "DECKANJI" "\0" "DEC-KANJI" "\0" + "SDECKANJI" "\0" "EUC-JP" "\0" + /* Chinese */ + "eucTW" "\0" "EUC-TW" "\0" + "DECHANYU" "\0" "DEC-HANYU" "\0" + "DECHANZI" "\0" "GB2312" "\0" + /* Korean */ + "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same - directory as the DLL and of retrieving the DLL's directory at - runtime, simply inline the aliases here. */ + directory as the DLL and of retrieving the DLL's directory at + runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" - "CP1361" "\0" "JOHAB" "\0" - "CP20127" "\0" "ASCII" "\0" - "CP20866" "\0" "KOI8-R" "\0" - "CP20936" "\0" "GB2312" "\0" - "CP21866" "\0" "KOI8-RU" "\0" - "CP28591" "\0" "ISO-8859-1" "\0" - "CP28592" "\0" "ISO-8859-2" "\0" - "CP28593" "\0" "ISO-8859-3" "\0" - "CP28594" "\0" "ISO-8859-4" "\0" - "CP28595" "\0" "ISO-8859-5" "\0" - "CP28596" "\0" "ISO-8859-6" "\0" - "CP28597" "\0" "ISO-8859-7" "\0" - "CP28598" "\0" "ISO-8859-8" "\0" - "CP28599" "\0" "ISO-8859-9" "\0" - "CP28605" "\0" "ISO-8859-15" "\0" - "CP38598" "\0" "ISO-8859-8" "\0" - "CP51932" "\0" "EUC-JP" "\0" - "CP51936" "\0" "GB2312" "\0" - "CP51949" "\0" "EUC-KR" "\0" - "CP51950" "\0" "EUC-TW" "\0" - "CP54936" "\0" "GB18030" "\0" - "CP65001" "\0" "UTF-8" "\0"; + "CP1361" "\0" "JOHAB" "\0" + "CP20127" "\0" "ASCII" "\0" + "CP20866" "\0" "KOI8-R" "\0" + "CP20936" "\0" "GB2312" "\0" + "CP21866" "\0" "KOI8-RU" "\0" + "CP28591" "\0" "ISO-8859-1" "\0" + "CP28592" "\0" "ISO-8859-2" "\0" + "CP28593" "\0" "ISO-8859-3" "\0" + "CP28594" "\0" "ISO-8859-4" "\0" + "CP28595" "\0" "ISO-8859-5" "\0" + "CP28596" "\0" "ISO-8859-6" "\0" + "CP28597" "\0" "ISO-8859-7" "\0" + "CP28598" "\0" "ISO-8859-8" "\0" + "CP28599" "\0" "ISO-8859-9" "\0" + "CP28605" "\0" "ISO-8859-15" "\0" + "CP38598" "\0" "ISO-8859-8" "\0" + "CP51932" "\0" "EUC-JP" "\0" + "CP51936" "\0" "GB2312" "\0" + "CP51949" "\0" "EUC-KR" "\0" + "CP51950" "\0" "EUC-TW" "\0" + "CP54936" "\0" "GB18030" "\0" + "CP65001" "\0" "UTF-8" "\0"; # endif #endif @@ -296,10 +369,9 @@ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ - /* Cygwin 2006 does not have locales. nl_langinfo (CODESET) always - returns "US-ASCII". As long as this is not fixed, return the suffix - of the locale name from the environment variables (if present) or - the codepage as a number. */ + /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always + returns "US-ASCII". Return the suffix of the locale name from the + environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; @@ -307,36 +379,46 @@ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } if (locale != NULL && locale[0] != '\0') - { - /* If the locale name contains an encoding after the dot, return - it. */ - const char *dot = strchr (locale, '.'); - - if (dot != NULL) - { - const char *modifier; - - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } - } - - /* Woe32 has a function returning the locale's codepage as a number. */ + { + /* If the locale name contains an encoding after the dot, return + it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + } + + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). This encoding is used by Cygwin, unless the user has set + the environment variable CYGWIN=codepage:oem (which very few people + do). + Output directed to console windows needs to be converted (to + GetOEMCP() if the console is using a raster font, or to + GetConsoleOutputCP() if it is using a TrueType font). Cygwin does + this conversion transparently (see winsup/cygwin/fhandler_console.cc), + converting to GetConsoleOutputCP(). This leads to correct results, + except when SetConsoleOutputCP has been called and a raster font is + in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } @@ -358,11 +440,11 @@ { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') - { - locale = getenv ("LC_CTYPE"); - if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); - } + { + locale = getenv ("LC_CTYPE"); + if (locale == NULL || locale[0] == '\0') + locale = getenv ("LANG"); + } } /* On some old systems, one used to set locale = "iso8859_1". On others, @@ -376,7 +458,13 @@ static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number. */ + /* Woe32 has a function returning the locale's codepage as a number: + GetACP(). + When the output goes to a console window, it needs to be provided in + GetOEMCP() encoding if the console is using a raster font, or in + GetConsoleOutputCP() encoding if it is using a TrueType font. + But in GUI programs and for output sent to files and pipes, GetACP() + encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; @@ -394,7 +482,7 @@ { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') - locale = getenv ("LANG"); + locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { @@ -402,21 +490,21 @@ const char *dot = strchr (locale, '.'); if (dot != NULL) - { - const char *modifier; + { + const char *modifier; - dot++; - /* Look for the possible @... trailer and remove it, if any. */ - modifier = strchr (dot, '@'); - if (modifier == NULL) - return dot; - if (modifier - dot < sizeof (buf)) - { - memcpy (buf, dot, modifier - dot); - buf [modifier - dot] = '\0'; - return buf; - } - } + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } /* Resolve through the charset.alias file. */ codeset = locale; @@ -425,12 +513,12 @@ { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) - codeset = ""; + codeset = ""; else - { - sprintf (buf, "CP%u", cp[0]); - codeset = buf; - } + { + sprintf (buf, "CP%u", cp[0]); + codeset = buf; + } } #endif @@ -444,10 +532,10 @@ *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 - || (aliases[0] == '*' && aliases[1] == '\0')) + || (aliases[0] == '*' && aliases[1] == '\0')) { - codeset = aliases + strlen (aliases) + 1; - break; + codeset = aliases + strlen (aliases) + 1; + break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret diff -Nru gettext-0.17/gettext-tools/libgettextpo/localcharset.h gettext-0.18.1.1/gettext-tools/libgettextpo/localcharset.h --- gettext-0.17/gettext-tools/libgettextpo/localcharset.h 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/localcharset.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Determine a canonical name for the current locale's character encoding. - Copyright (C) 2000-2003 Free Software Foundation, Inc. + Copyright (C) 2000-2003, 2009-2010 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/lock.c gettext-0.18.1.1/gettext-tools/libgettextpo/lock.c --- gettext-0.17/gettext-tools/libgettextpo/lock.c 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/lock.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,921 +0,0 @@ -/* Locking in multithreaded situations. - Copyright (C) 2005-2006 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Written by Bruno Haible , 2005. - Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, - gthr-win32.h. */ - -#include - -#include "lock.h" - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The function to be executed by a dummy thread. */ -static void * -dummy_thread_func (void *arg) -{ - return arg; -} - -int -glthread_in_use (void) -{ - static int tested; - static int result; /* 1: linked with -lpthread, 0: only with libc */ - - if (!tested) - { - pthread_t thread; - - if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) - /* Thread creation failed. */ - result = 0; - else - { - /* Thread creation works. */ - void *retval; - if (pthread_join (thread, &retval) != 0) - abort (); - result = 1; - } - tested = 1; - } - return result; -} - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -# if HAVE_PTHREAD_RWLOCK - -# if !defined PTHREAD_RWLOCK_INITIALIZER - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) - abort (); - lock->initialized = 1; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_rwlock_rdlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_rwlock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_rwlock_wrlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_rwlock_unlock (&lock->rwlock) != 0) - abort (); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_rwlock_destroy (&lock->rwlock) != 0) - abort (); - lock->initialized = 0; -} - -# endif - -# else - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - if (pthread_mutex_init (&lock->lock, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_readers, NULL) != 0) - abort (); - if (pthread_cond_init (&lock->waiting_writers, NULL) != 0) - abort (); - lock->waiting_writers_count = 0; - lock->runcount = 0; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - /* Test whether only readers are currently running, and whether the runcount - field will not overflow. */ - /* POSIX says: "It is implementation-defined whether the calling thread - acquires the lock when a writer does not hold the lock and there are - writers blocked on the lock." Let's say, no: give the writers a higher - priority. */ - while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ - if (pthread_cond_wait (&lock->waiting_readers, &lock->lock) != 0) - abort (); - } - lock->runcount++; - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - /* Test whether no readers or writers are currently running. */ - while (!(lock->runcount == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ - lock->waiting_writers_count++; - if (pthread_cond_wait (&lock->waiting_writers, &lock->lock) != 0) - abort (); - lock->waiting_writers_count--; - } - lock->runcount--; /* runcount becomes -1 */ - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (pthread_mutex_lock (&lock->lock) != 0) - abort (); - if (lock->runcount < 0) - { - /* Drop a writer lock. */ - if (!(lock->runcount == -1)) - abort (); - lock->runcount = 0; - } - else - { - /* Drop a reader lock. */ - if (!(lock->runcount > 0)) - abort (); - lock->runcount--; - } - if (lock->runcount == 0) - { - /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ - if (lock->waiting_writers_count > 0) - { - /* Wake up one of the waiting writers. */ - if (pthread_cond_signal (&lock->waiting_writers) != 0) - abort (); - } - else - { - /* Wake up all waiting readers. */ - if (pthread_cond_broadcast (&lock->waiting_readers) != 0) - abort (); - } - } - if (pthread_mutex_unlock (&lock->lock) != 0) - abort (); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (pthread_mutex_destroy (&lock->lock) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_readers) != 0) - abort (); - if (pthread_cond_destroy (&lock->waiting_writers) != 0) - abort (); -} - -# endif - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -# if HAVE_PTHREAD_MUTEX_RECURSIVE - -# if !(defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - pthread_mutexattr_t attributes; - - if (pthread_mutexattr_init (&attributes) != 0) - abort (); - if (pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE) != 0) - abort (); - if (pthread_mutex_init (&lock->recmutex, &attributes) != 0) - abort (); - if (pthread_mutexattr_destroy (&attributes) != 0) - abort (); - lock->initialized = 1; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - { - if (pthread_mutex_lock (&lock->guard) != 0) - abort (); - if (!lock->initialized) - glthread_recursive_lock_init (lock); - if (pthread_mutex_unlock (&lock->guard) != 0) - abort (); - } - if (pthread_mutex_lock (&lock->recmutex) != 0) - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_mutex_unlock (&lock->recmutex) != 0) - abort (); -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (!lock->initialized) - abort (); - if (pthread_mutex_destroy (&lock->recmutex) != 0) - abort (); - lock->initialized = 0; -} - -# endif - -# else - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - if (pthread_mutex_init (&lock->mutex, NULL) != 0) - abort (); - lock->owner = (pthread_t) 0; - lock->depth = 0; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - pthread_t self = pthread_self (); - if (lock->owner != self) - { - if (pthread_mutex_lock (&lock->mutex) != 0) - abort (); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != pthread_self ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = (pthread_t) 0; - if (pthread_mutex_unlock (&lock->mutex) != 0) - abort (); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != (pthread_t) 0) - abort (); - if (pthread_mutex_destroy (&lock->mutex) != 0) - abort (); -} - -# endif - -/* -------------------------- gl_once_t datatype -------------------------- */ - -static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; - -int -glthread_once_singlethreaded (pthread_once_t *once_control) -{ - /* We don't know whether pthread_once_t is an integer type, a floating-point - type, a pointer type, or a structure type. */ - char *firstbyte = (char *)once_control; - if (*firstbyte == *(const char *)&fresh_once) - { - /* First time use of once_control. Invert the first byte. */ - *firstbyte = ~ *(const char *)&fresh_once; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once_call (void *arg) -{ - void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; - void (*initfunction) (void) = *gl_once_temp_addr; - initfunction (); -} - -int -glthread_once_singlethreaded (pth_once_t *once_control) -{ - /* We know that pth_once_t is an integer type. */ - if (*once_control == PTH_ONCE_INIT) - { - /* First time use of once_control. Invert the marker. */ - *once_control = ~ PTH_ONCE_INIT; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - if (mutex_init (&lock->mutex, USYNC_THREAD, NULL) != 0) - abort (); - lock->owner = (thread_t) 0; - lock->depth = 0; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - thread_t self = thr_self (); - if (lock->owner != self) - { - if (mutex_lock (&lock->mutex) != 0) - abort (); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != thr_self ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = (thread_t) 0; - if (mutex_unlock (&lock->mutex) != 0) - abort (); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != (thread_t) 0) - abort (); - if (mutex_destroy (&lock->mutex) != 0) - abort (); -} - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) -{ - if (!once_control->inited) - { - /* Use the mutex to guarantee that if another thread is already calling - the initfunction, this thread waits until it's finished. */ - if (mutex_lock (&once_control->mutex) != 0) - abort (); - if (!once_control->inited) - { - once_control->inited = 1; - initfunction (); - } - if (mutex_unlock (&once_control->mutex) != 0) - abort (); - } -} - -int -glthread_once_singlethreaded (gl_once_t *once_control) -{ - /* We know that gl_once_t contains an integer type. */ - if (!once_control->inited) - { - /* First time use of once_control. Invert the marker. */ - once_control->inited = ~ 0; - return 1; - } - else - return 0; -} - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -void -glthread_lock_init (gl_lock_t *lock) -{ - InitializeCriticalSection (&lock->lock); - lock->guard.done = 1; -} - -void -glthread_lock_lock (gl_lock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_lock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); -} - -void -glthread_lock_unlock (gl_lock_t *lock) -{ - if (!lock->guard.done) - abort (); - LeaveCriticalSection (&lock->lock); -} - -void -glthread_lock_destroy (gl_lock_t *lock) -{ - if (!lock->guard.done) - abort (); - DeleteCriticalSection (&lock->lock); - lock->guard.done = 0; -} - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -static inline void -gl_waitqueue_init (gl_waitqueue_t *wq) -{ - wq->array = NULL; - wq->count = 0; - wq->alloc = 0; - wq->offset = 0; -} - -/* Enqueues the current thread, represented by an event, in a wait queue. - Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ -static HANDLE -gl_waitqueue_add (gl_waitqueue_t *wq) -{ - HANDLE event; - unsigned int index; - - if (wq->count == wq->alloc) - { - unsigned int new_alloc = 2 * wq->alloc + 1; - HANDLE *new_array = - (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); - if (new_array == NULL) - /* No more memory. */ - return INVALID_HANDLE_VALUE; - /* Now is a good opportunity to rotate the array so that its contents - starts at offset 0. */ - if (wq->offset > 0) - { - unsigned int old_count = wq->count; - unsigned int old_alloc = wq->alloc; - unsigned int old_offset = wq->offset; - unsigned int i; - if (old_offset + old_count > old_alloc) - { - unsigned int limit = old_offset + old_count - old_alloc; - for (i = 0; i < limit; i++) - new_array[old_alloc + i] = new_array[i]; - } - for (i = 0; i < old_count; i++) - new_array[i] = new_array[old_offset + i]; - wq->offset = 0; - } - wq->array = new_array; - wq->alloc = new_alloc; - } - event = CreateEvent (NULL, TRUE, FALSE, NULL); - if (event == INVALID_HANDLE_VALUE) - /* No way to allocate an event. */ - return INVALID_HANDLE_VALUE; - index = wq->offset + wq->count; - if (index >= wq->alloc) - index -= wq->alloc; - wq->array[index] = event; - wq->count++; - return event; -} - -/* Notifies the first thread from a wait queue and dequeues it. */ -static inline void -gl_waitqueue_notify_first (gl_waitqueue_t *wq) -{ - SetEvent (wq->array[wq->offset + 0]); - wq->offset++; - wq->count--; - if (wq->count == 0 || wq->offset == wq->alloc) - wq->offset = 0; -} - -/* Notifies all threads from a wait queue and dequeues them all. */ -static inline void -gl_waitqueue_notify_all (gl_waitqueue_t *wq) -{ - unsigned int i; - - for (i = 0; i < wq->count; i++) - { - unsigned int index = wq->offset + i; - if (index >= wq->alloc) - index -= wq->alloc; - SetEvent (wq->array[index]); - } - wq->count = 0; - wq->offset = 0; -} - -void -glthread_rwlock_init (gl_rwlock_t *lock) -{ - InitializeCriticalSection (&lock->lock); - gl_waitqueue_init (&lock->waiting_readers); - gl_waitqueue_init (&lock->waiting_writers); - lock->runcount = 0; - lock->guard.done = 1; -} - -void -glthread_rwlock_rdlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); - /* Test whether only readers are currently running, and whether the runcount - field will not overflow. */ - if (!(lock->runcount + 1 > 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_readers. */ - HANDLE event = gl_waitqueue_add (&lock->waiting_readers); - if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_readers, incremented lock->runcount. */ - if (!(lock->runcount > 0)) - abort (); - return; - } - else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount + 1 > 0)); - } - } - lock->runcount++; - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_wrlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_rwlock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - EnterCriticalSection (&lock->lock); - /* Test whether no readers or writers are currently running. */ - if (!(lock->runcount == 0)) - { - /* This thread has to wait for a while. Enqueue it among the - waiting_writers. */ - HANDLE event = gl_waitqueue_add (&lock->waiting_writers); - if (event != INVALID_HANDLE_VALUE) - { - DWORD result; - LeaveCriticalSection (&lock->lock); - /* Wait until another thread signals this event. */ - result = WaitForSingleObject (event, INFINITE); - if (result == WAIT_FAILED || result == WAIT_TIMEOUT) - abort (); - CloseHandle (event); - /* The thread which signalled the event already did the bookkeeping: - removed us from the waiting_writers, set lock->runcount = -1. */ - if (!(lock->runcount == -1)) - abort (); - return; - } - else - { - /* Allocation failure. Weird. */ - do - { - LeaveCriticalSection (&lock->lock); - Sleep (1); - EnterCriticalSection (&lock->lock); - } - while (!(lock->runcount == 0)); - } - } - lock->runcount--; /* runcount becomes -1 */ - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_unlock (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - abort (); - EnterCriticalSection (&lock->lock); - if (lock->runcount < 0) - { - /* Drop a writer lock. */ - if (!(lock->runcount == -1)) - abort (); - lock->runcount = 0; - } - else - { - /* Drop a reader lock. */ - if (!(lock->runcount > 0)) - abort (); - lock->runcount--; - } - if (lock->runcount == 0) - { - /* POSIX recommends that "write locks shall take precedence over read - locks", to avoid "writer starvation". */ - if (lock->waiting_writers.count > 0) - { - /* Wake up one of the waiting writers. */ - lock->runcount--; - gl_waitqueue_notify_first (&lock->waiting_writers); - } - else - { - /* Wake up all waiting readers. */ - lock->runcount += lock->waiting_readers.count; - gl_waitqueue_notify_all (&lock->waiting_readers); - } - } - LeaveCriticalSection (&lock->lock); -} - -void -glthread_rwlock_destroy (gl_rwlock_t *lock) -{ - if (!lock->guard.done) - abort (); - if (lock->runcount != 0) - abort (); - DeleteCriticalSection (&lock->lock); - if (lock->waiting_readers.array != NULL) - free (lock->waiting_readers.array); - if (lock->waiting_writers.array != NULL) - free (lock->waiting_writers.array); - lock->guard.done = 0; -} - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -void -glthread_recursive_lock_init (gl_recursive_lock_t *lock) -{ - lock->owner = 0; - lock->depth = 0; - InitializeCriticalSection (&lock->lock); - lock->guard.done = 1; -} - -void -glthread_recursive_lock_lock (gl_recursive_lock_t *lock) -{ - if (!lock->guard.done) - { - if (InterlockedIncrement (&lock->guard.started) == 0) - /* This thread is the first one to need this lock. Initialize it. */ - glthread_recursive_lock_init (lock); - else - /* Yield the CPU while waiting for another thread to finish - initializing this lock. */ - while (!lock->guard.done) - Sleep (0); - } - { - DWORD self = GetCurrentThreadId (); - if (lock->owner != self) - { - EnterCriticalSection (&lock->lock); - lock->owner = self; - } - if (++(lock->depth) == 0) /* wraparound? */ - abort (); - } -} - -void -glthread_recursive_lock_unlock (gl_recursive_lock_t *lock) -{ - if (lock->owner != GetCurrentThreadId ()) - abort (); - if (lock->depth == 0) - abort (); - if (--(lock->depth) == 0) - { - lock->owner = 0; - LeaveCriticalSection (&lock->lock); - } -} - -void -glthread_recursive_lock_destroy (gl_recursive_lock_t *lock) -{ - if (lock->owner != 0) - abort (); - DeleteCriticalSection (&lock->lock); - lock->guard.done = 0; -} - -/* -------------------------- gl_once_t datatype -------------------------- */ - -void -glthread_once (gl_once_t *once_control, void (*initfunction) (void)) -{ - if (once_control->inited <= 0) - { - if (InterlockedIncrement (&once_control->started) == 0) - { - /* This thread is the first one to come to this once_control. */ - InitializeCriticalSection (&once_control->lock); - EnterCriticalSection (&once_control->lock); - once_control->inited = 0; - initfunction (); - once_control->inited = 1; - LeaveCriticalSection (&once_control->lock); - } - else - { - /* Undo last operation. */ - InterlockedDecrement (&once_control->started); - /* Some other thread has already started the initialization. - Yield the CPU while waiting for the other thread to finish - initializing and taking the lock. */ - while (once_control->inited < 0) - Sleep (0); - if (once_control->inited <= 0) - { - /* Take the lock. This blocks until the other thread has - finished calling the initfunction. */ - EnterCriticalSection (&once_control->lock); - LeaveCriticalSection (&once_control->lock); - if (!(once_control->inited > 0)) - abort (); - } - } - } -} - -#endif - -/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/lock.h gettext-0.18.1.1/gettext-tools/libgettextpo/lock.h --- gettext-0.17/gettext-tools/libgettextpo/lock.h 2007-11-05 01:03:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/lock.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,1104 +0,0 @@ -/* Locking in multithreaded situations. - Copyright (C) 2005-2007 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -/* Written by Bruno Haible , 2005. - Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, - gthr-win32.h. */ - -/* This file contains locking primitives for use with a given thread library. - It does not contain primitives for creating threads or for other - synchronization primitives. - - Normal (non-recursive) locks: - Type: gl_lock_t - Declaration: gl_lock_define(extern, name) - Initializer: gl_lock_define_initialized(, name) - Initialization: gl_lock_init (name); - Taking the lock: gl_lock_lock (name); - Releasing the lock: gl_lock_unlock (name); - De-initialization: gl_lock_destroy (name); - - Read-Write (non-recursive) locks: - Type: gl_rwlock_t - Declaration: gl_rwlock_define(extern, name) - Initializer: gl_rwlock_define_initialized(, name) - Initialization: gl_rwlock_init (name); - Taking the lock: gl_rwlock_rdlock (name); - gl_rwlock_wrlock (name); - Releasing the lock: gl_rwlock_unlock (name); - De-initialization: gl_rwlock_destroy (name); - - Recursive locks: - Type: gl_recursive_lock_t - Declaration: gl_recursive_lock_define(extern, name) - Initializer: gl_recursive_lock_define_initialized(, name) - Initialization: gl_recursive_lock_init (name); - Taking the lock: gl_recursive_lock_lock (name); - Releasing the lock: gl_recursive_lock_unlock (name); - De-initialization: gl_recursive_lock_destroy (name); - - Once-only execution: - Type: gl_once_t - Initializer: gl_once_define(extern, name) - Execution: gl_once (name, initfunction); -*/ - - -#ifndef _LOCK_H -#define _LOCK_H - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The pthread_in_use() detection needs to be done at runtime. */ -# define pthread_in_use() \ - glthread_in_use () -extern int glthread_in_use (void); - -# endif - -# if USE_POSIX_THREADS_WEAK - -/* Use weak references to the POSIX threads library. */ - -/* Weak references avoid dragging in external libraries if the other parts - of the program don't use them. Here we use them, because we don't want - every program that uses libintl to depend on libpthread. This assumes - that libpthread would not be loaded after libintl; i.e. if libintl is - loaded first, by an executable that does not depend on libpthread, and - then a module is dynamically loaded that depends on libpthread, libintl - will not be multithread-safe. */ - -/* The way to test at runtime whether libpthread is present is to test - whether a function pointer's value, such as &pthread_mutex_init, is - non-NULL. However, some versions of GCC have a bug through which, in - PIC mode, &foo != NULL always evaluates to true if there is a direct - call to foo(...) in the same function. To avoid this, we test the - address of a function in libpthread that we don't use. */ - -# pragma weak pthread_mutex_init -# pragma weak pthread_mutex_lock -# pragma weak pthread_mutex_unlock -# pragma weak pthread_mutex_destroy -# pragma weak pthread_rwlock_init -# pragma weak pthread_rwlock_rdlock -# pragma weak pthread_rwlock_wrlock -# pragma weak pthread_rwlock_unlock -# pragma weak pthread_rwlock_destroy -# pragma weak pthread_once -# pragma weak pthread_cond_init -# pragma weak pthread_cond_wait -# pragma weak pthread_cond_signal -# pragma weak pthread_cond_broadcast -# pragma weak pthread_cond_destroy -# pragma weak pthread_mutexattr_init -# pragma weak pthread_mutexattr_settype -# pragma weak pthread_mutexattr_destroy -# ifndef pthread_self -# pragma weak pthread_self -# endif - -# if !PTHREAD_IN_USE_DETECTION_HARD -# pragma weak pthread_cancel -# define pthread_in_use() (pthread_cancel != NULL) -# endif - -# else - -# if !PTHREAD_IN_USE_DETECTION_HARD -# define pthread_in_use() 1 -# endif - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef pthread_mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - PTHREAD_MUTEX_INITIALIZER -# define gl_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -# if HAVE_PTHREAD_RWLOCK - -# ifdef PTHREAD_RWLOCK_INITIALIZER - -typedef pthread_rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - PTHREAD_RWLOCK_INITIALIZER -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -# else - -typedef struct - { - int initialized; - pthread_mutex_t guard; /* protects the initialization */ - pthread_rwlock_t rwlock; /* read-write lock */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { 0, PTHREAD_MUTEX_INITIALIZER } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -# endif - -# else - -typedef struct - { - pthread_mutex_t lock; /* protects the remaining fields */ - pthread_cond_t waiting_readers; /* waiting readers */ - pthread_cond_t waiting_writers; /* waiting writers */ - unsigned int waiting_writers_count; /* number of waiting writers */ - int runcount; /* number of readers running, or -1 when a writer runs */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_init (&NAME); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_rdlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_wrlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_unlock (&NAME); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_rwlock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -# endif - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -# if HAVE_PTHREAD_MUTEX_RECURSIVE - -# if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP - -typedef pthread_mutex_t gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; -# ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER -# define gl_recursive_lock_initializer \ - PTHREAD_RECURSIVE_MUTEX_INITIALIZER -# else -# define gl_recursive_lock_initializer \ - PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP -# endif -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_init (&NAME, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -# else - -typedef struct - { - pthread_mutex_t recmutex; /* recursive mutex */ - pthread_mutex_t guard; /* protects the initialization */ - int initialized; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -# endif - -# else - -/* Old versions of POSIX threads on Solaris did not have recursive locks. - We have to implement them ourselves. */ - -typedef struct - { - pthread_mutex_t mutex; - pthread_t owner; - unsigned long depth; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (pthread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -# endif - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef pthread_once_t gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_once (&NAME, INITFUNCTION) != 0) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern int glthread_once_singlethreaded (pthread_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if USE_PTH_THREADS_WEAK - -/* Use weak references to the GNU Pth threads library. */ - -# pragma weak pth_mutex_init -# pragma weak pth_mutex_acquire -# pragma weak pth_mutex_release -# pragma weak pth_rwlock_init -# pragma weak pth_rwlock_acquire -# pragma weak pth_rwlock_release -# pragma weak pth_once - -# pragma weak pth_cancel -# define pth_in_use() (pth_cancel != NULL) - -# else - -# define pth_in_use() 1 - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef pth_mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - PTH_MUTEX_INIT -# define gl_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - (void)(&NAME) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef pth_rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - PTH_RWLOCK_INIT -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RD, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (pth_in_use() \ - && !pth_rwlock_acquire (&NAME, PTH_RWLOCK_RW, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_rwlock_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - (void)(&NAME) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* In Pth, mutexes are recursive by default. */ -typedef pth_mutex_t gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - PTH_MUTEX_INIT -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_init (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_acquire (&NAME, 0, NULL)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (pth_in_use() && !pth_mutex_release (&NAME)) \ - abort (); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - (void)(&NAME) - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef pth_once_t gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - void (*gl_once_temp) (void) = INITFUNCTION; \ - if (!pth_once (&NAME, glthread_once_call, &gl_once_temp)) \ - abort (); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once_call (void *arg); -extern int glthread_once_singlethreaded (pth_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -# include -# include -# include - -# ifdef __cplusplus -extern "C" { -# endif - -# if USE_SOLARIS_THREADS_WEAK - -/* Use weak references to the old Solaris threads library. */ - -# pragma weak mutex_init -# pragma weak mutex_lock -# pragma weak mutex_unlock -# pragma weak mutex_destroy -# pragma weak rwlock_init -# pragma weak rw_rdlock -# pragma weak rw_wrlock -# pragma weak rw_unlock -# pragma weak rwlock_destroy -# pragma weak thr_self - -# pragma weak thr_suspend -# define thread_in_use() (thr_suspend != NULL) - -# else - -# define thread_in_use() 1 - -# endif - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef mutex_t gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS mutex_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS mutex_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - DEFAULTMUTEX -# define gl_lock_init(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_lock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && mutex_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef rwlock_t gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - DEFAULTRWLOCK -# define gl_rwlock_init(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_init (&NAME, USYNC_THREAD, NULL) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_rdlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_rdlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_wrlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_wrlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_unlock(NAME) \ - do \ - { \ - if (thread_in_use () && rw_unlock (&NAME) != 0) \ - abort (); \ - } \ - while (0) -# define gl_rwlock_destroy(NAME) \ - do \ - { \ - if (thread_in_use () && rwlock_destroy (&NAME) != 0) \ - abort (); \ - } \ - while (0) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* Old Solaris threads did not have recursive locks. - We have to implement them ourselves. */ - -typedef struct - { - mutex_t mutex; - thread_t owner; - unsigned long depth; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { DEFAULTMUTEX, (thread_t) 0, 0 } -# define gl_recursive_lock_init(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_init (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_lock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_lock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_unlock(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_unlock (&NAME); \ - } \ - while (0) -# define gl_recursive_lock_destroy(NAME) \ - do \ - { \ - if (thread_in_use ()) \ - glthread_recursive_lock_destroy (&NAME); \ - } \ - while (0) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef struct - { - volatile int inited; - mutex_t mutex; - } - gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - glthread_once (&NAME, INITFUNCTION); \ - } \ - else \ - { \ - if (glthread_once_singlethreaded (&NAME)) \ - INITFUNCTION (); \ - } \ - } \ - while (0) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); -extern int glthread_once_singlethreaded (gl_once_t *once_control); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -# include - -# ifdef __cplusplus -extern "C" { -# endif - -/* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, - Semaphore types, because - - we need only to synchronize inside a single process (address space), - not inter-process locking, - - we don't need to support trylock operations. (TryEnterCriticalSection - does not work on Windows 95/98/ME. Packages that need trylock usually - define their own mutex type.) */ - -/* There is no way to statically initialize a CRITICAL_SECTION. It needs - to be done lazily, once only. For this we need spinlocks. */ - -typedef struct { volatile int done; volatile long started; } gl_spinlock_t; - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - CRITICAL_SECTION lock; - } - gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_lock_t NAME; -# define gl_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_lock_t NAME = gl_lock_initializer; -# define gl_lock_initializer \ - { { 0, -1 } } -# define gl_lock_init(NAME) \ - glthread_lock_init (&NAME) -# define gl_lock_lock(NAME) \ - glthread_lock_lock (&NAME) -# define gl_lock_unlock(NAME) \ - glthread_lock_unlock (&NAME) -# define gl_lock_destroy(NAME) \ - glthread_lock_destroy (&NAME) -extern void glthread_lock_init (gl_lock_t *lock); -extern void glthread_lock_lock (gl_lock_t *lock); -extern void glthread_lock_unlock (gl_lock_t *lock); -extern void glthread_lock_destroy (gl_lock_t *lock); - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -/* It is impossible to implement read-write locks using plain locks, without - introducing an extra thread dedicated to managing read-write locks. - Therefore here we need to use the low-level Event type. */ - -typedef struct - { - HANDLE *array; /* array of waiting threads, each represented by an event */ - unsigned int count; /* number of waiting threads */ - unsigned int alloc; /* length of allocated array */ - unsigned int offset; /* index of first waiting thread in array */ - } - gl_waitqueue_t; -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - CRITICAL_SECTION lock; /* protects the remaining fields */ - gl_waitqueue_t waiting_readers; /* waiting readers */ - gl_waitqueue_t waiting_writers; /* waiting writers */ - int runcount; /* number of readers running, or -1 when a writer runs */ - } - gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME; -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; -# define gl_rwlock_initializer \ - { { 0, -1 } } -# define gl_rwlock_init(NAME) \ - glthread_rwlock_init (&NAME) -# define gl_rwlock_rdlock(NAME) \ - glthread_rwlock_rdlock (&NAME) -# define gl_rwlock_wrlock(NAME) \ - glthread_rwlock_wrlock (&NAME) -# define gl_rwlock_unlock(NAME) \ - glthread_rwlock_unlock (&NAME) -# define gl_rwlock_destroy(NAME) \ - glthread_rwlock_destroy (&NAME) -extern void glthread_rwlock_init (gl_rwlock_t *lock); -extern void glthread_rwlock_rdlock (gl_rwlock_t *lock); -extern void glthread_rwlock_wrlock (gl_rwlock_t *lock); -extern void glthread_rwlock_unlock (gl_rwlock_t *lock); -extern void glthread_rwlock_destroy (gl_rwlock_t *lock); - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -/* The Win32 documentation says that CRITICAL_SECTION already implements a - recursive lock. But we need not rely on it: It's easy to implement a - recursive lock without this assumption. */ - -typedef struct - { - gl_spinlock_t guard; /* protects the initialization */ - DWORD owner; - unsigned long depth; - CRITICAL_SECTION lock; - } - gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME; -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; -# define gl_recursive_lock_initializer \ - { { 0, -1 }, 0, 0 } -# define gl_recursive_lock_init(NAME) \ - glthread_recursive_lock_init (&NAME) -# define gl_recursive_lock_lock(NAME) \ - glthread_recursive_lock_lock (&NAME) -# define gl_recursive_lock_unlock(NAME) \ - glthread_recursive_lock_unlock (&NAME) -# define gl_recursive_lock_destroy(NAME) \ - glthread_recursive_lock_destroy (&NAME) -extern void glthread_recursive_lock_init (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_lock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_unlock (gl_recursive_lock_t *lock); -extern void glthread_recursive_lock_destroy (gl_recursive_lock_t *lock); - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef struct - { - volatile int inited; - volatile long started; - CRITICAL_SECTION lock; - } - gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = { -1, -1 }; -# define gl_once(NAME, INITFUNCTION) \ - glthread_once (&NAME, INITFUNCTION) -extern void glthread_once (gl_once_t *once_control, void (*initfunction) (void)); - -# ifdef __cplusplus -} -# endif - -#endif - -/* ========================================================================= */ - -#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) - -/* Provide dummy implementation if threads are not supported. */ - -/* -------------------------- gl_lock_t datatype -------------------------- */ - -typedef int gl_lock_t; -# define gl_lock_define(STORAGECLASS, NAME) -# define gl_lock_define_initialized(STORAGECLASS, NAME) -# define gl_lock_init(NAME) -# define gl_lock_lock(NAME) -# define gl_lock_unlock(NAME) - -/* ------------------------- gl_rwlock_t datatype ------------------------- */ - -typedef int gl_rwlock_t; -# define gl_rwlock_define(STORAGECLASS, NAME) -# define gl_rwlock_define_initialized(STORAGECLASS, NAME) -# define gl_rwlock_init(NAME) -# define gl_rwlock_rdlock(NAME) -# define gl_rwlock_wrlock(NAME) -# define gl_rwlock_unlock(NAME) - -/* --------------------- gl_recursive_lock_t datatype --------------------- */ - -typedef int gl_recursive_lock_t; -# define gl_recursive_lock_define(STORAGECLASS, NAME) -# define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) -# define gl_recursive_lock_init(NAME) -# define gl_recursive_lock_lock(NAME) -# define gl_recursive_lock_unlock(NAME) - -/* -------------------------- gl_once_t datatype -------------------------- */ - -typedef int gl_once_t; -# define gl_once_define(STORAGECLASS, NAME) \ - STORAGECLASS gl_once_t NAME = 0; -# define gl_once(NAME, INITFUNCTION) \ - do \ - { \ - if (NAME == 0) \ - { \ - NAME = ~ 0; \ - INITFUNCTION (); \ - } \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#endif /* _LOCK_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/Makefile.am gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.am --- gettext-0.17/gettext-tools/libgettextpo/Makefile.am 2007-11-02 00:32:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.am 2010-06-06 17:55:59.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ EXTRA_DIST = BUILT_SOURCES = MOSTLYCLEANFILES = core *.stackdump +MOSTLYCLEANDIRS = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = @@ -78,7 +79,9 @@ ../src/format-perl-brace.c \ ../src/format-php.c \ ../src/format-gcc-internal.c \ + ../src/format-gfc-internal.c \ ../src/format-qt.c \ + ../src/format-qt-plural.c \ ../src/format-kde.c \ ../src/format-boost.c \ ../src/format.c \ @@ -88,14 +91,14 @@ # Libtool's library version information for libgettextpo. # See the libtool documentation, section "Library interface versions". -LTV_CURRENT=4 -LTV_REVISION=0 -LTV_AGE=4 +LTV_CURRENT=5 +LTV_REVISION=1 +LTV_AGE=5 # How to build libgettextpo.la. # Don't make it depend on libgettextsrc.la or libgettextlib.la, since they # define an uncontrolled amount of symbols. -libgettextpo_la_LIBADD = libgnu.la $(WOE32_LDADD) +libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING) libgettextpo_la_LDFLAGS = \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ @@ -110,12 +113,12 @@ # Version information according to Woe32 conventions. EXTRA_DIST += libgettextpo.rc if WOE32 -WOE32_LDADD = libgettextpo.res -libgettextpo.res : $(srcdir)/libgettextpo.rc - $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res --output-format=coff -MOSTLYCLEANFILES += libgettextpo.res +WOE32_LIBADD = libgettextpo.res.lo +libgettextpo.res.lo : $(srcdir)/libgettextpo.rc + $(LIBTOOL) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res.lo --output-format=coff +MOSTLYCLEANFILES += libgettextpo.res.lo else -WOE32_LDADD = +WOE32_LIBADD = endif # Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la @@ -178,5 +181,8 @@ endif mv gettext-po.h-tmp gettext-po.h +# Allow users to use "gnulib-tool --update". +EXTRA_DIST += gnulib-m4/gnulib-cache.m4 + # A small set of gnulib modules is needed here as well. include Makefile.gnulib diff -Nru gettext-0.17/gettext-tools/libgettextpo/Makefile.gnulib gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.gnulib --- gettext-0.17/gettext-tools/libgettextpo/Makefile.gnulib 2007-11-02 00:44:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.gnulib 2010-06-03 21:37:14.000000000 +0000 @@ -1,6 +1,6 @@ ## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgnu --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --doc-base=doc --aux-dir=../build-aux --makefile-name=Makefile.gnulib --libtool --macro-prefix=gtpo basename c-ctype c-strcase c-strstr error error-progname exit file-ostream filename fopen fstrcmp fwriteerror gcd getline gettext-h hash iconv linebreak minmax ostream progname relocatable-lib stdbool ucs4-utf8 uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf xalloc xerror xmalloca xstriconv xvasprintf +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgnu --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --makefile-name=Makefile.gnulib --libtool --macro-prefix=gtpo basename c-ctype c-strcase c-strstr error error-progname file-ostream filename fopen fstrcmp fwriteerror gcd getline gettext-h hash iconv libunistring-optional minmax open ostream progname relocatable-lib sigpipe stdbool stdio stdlib strerror unilbrk/ulc-width-linebreaks unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf xalloc xconcat-filename xerror xmalloca xstriconv xvasprintf MOSTLYCLEANFILES += core *.stackdump @@ -22,15 +22,6 @@ EXTRA_libgnu_la_SOURCES = libgnu_la_LDFLAGS = $(AM_LDFLAGS) -## begin gnulib module absolute-header - -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) - -## end gnulib module absolute-header - ## begin gnulib module alloca-opt BUILT_SOURCES += $(ALLOCA_H) @@ -38,9 +29,10 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t @@ -48,12 +40,60 @@ ## end gnulib module alloca-opt +## begin gnulib module arg-nonnull + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += arg-nonnull.h +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t + +ARG_NONNULL_H=arg-nonnull.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/arg-nonnull.h + +## end gnulib module arg-nonnull + ## begin gnulib module basename libgnu_la_SOURCES += basename.h basename.c ## end gnulib module basename +## begin gnulib module c++defs + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/c++defs.h + +## end gnulib module c++defs + ## begin gnulib module c-ctype libgnu_la_SOURCES += c-ctype.h c-ctype.c @@ -66,12 +106,27 @@ ## end gnulib module c-strcase +## begin gnulib module c-strcaseeq + + +EXTRA_DIST += c-strcaseeq.h + +## end gnulib module c-strcaseeq + ## begin gnulib module c-strstr libgnu_la_SOURCES += c-strstr.h c-strstr.c ## end gnulib module c-strstr +## begin gnulib module concat-filename + +libgnu_la_SOURCES += concat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module concat-filename + ## begin gnulib module configmake # Retrieve values of the variables through 'configure' followed by @@ -92,7 +147,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -121,8 +176,13 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t - mv $@-t $@ + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + BUILT_SOURCES += configmake.h CLEANFILES += configmake.h configmake.h-t @@ -134,6 +194,33 @@ ## end gnulib module diffseq +## begin gnulib module errno + +BUILT_SOURCES += $(ERRNO_H) + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += errno.h errno.h-t + +EXTRA_DIST += errno.in.h + +## end gnulib module errno + ## begin gnulib module error @@ -151,10 +238,44 @@ ## begin gnulib module exitfail -libgnu_la_SOURCES += exitfail.h exitfail.c +libgnu_la_SOURCES += exitfail.c + +EXTRA_DIST += exitfail.h ## end gnulib module exitfail +## begin gnulib module fcntl-h + +BUILT_SOURCES += fcntl.h + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +fcntl.h: fcntl.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ + -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \ + -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \ + -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \ + -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ + -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ + -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ + -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ + -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/fcntl.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += fcntl.h fcntl.h-t + +EXTRA_DIST += fcntl.in.h + +## end gnulib module fcntl-h + ## begin gnulib module file-ostream libgnu_la_SOURCES += file-ostream.c @@ -186,12 +307,32 @@ ## begin gnulib module filename -libgnu_la_SOURCES += concat-filename.c EXTRA_DIST += filename.h ## end gnulib module filename +## begin gnulib module float + +BUILT_SOURCES += $(FLOAT_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +float.h: float.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ + < $(srcdir)/float.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += float.h float.h-t + +EXTRA_DIST += float.in.h + +## end gnulib module float + ## begin gnulib module fopen @@ -243,6 +384,12 @@ ## end gnulib module gettext-h +## begin gnulib module gperf + +GPERF = gperf + +## end gnulib module gperf + ## begin gnulib module hash libgnu_la_SOURCES += hash.h hash.c @@ -256,45 +403,57 @@ ## end gnulib module havelib -## begin gnulib module iconv_open +## begin gnulib module iconv-h BUILT_SOURCES += $(ICONV_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += iconv.h iconv.h-t -GPERF = gperf +EXTRA_DIST += iconv.in.h + +## end gnulib module iconv-h + +## begin gnulib module iconv_open + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ -BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t -MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h -EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h +BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t iconv_open-solaris.h-t +MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h +EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h -EXTRA_DIST += iconv.in.h iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c +EXTRA_DIST += iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c EXTRA_libgnu_la_SOURCES += iconv_open.c @@ -307,19 +466,12 @@ ## end gnulib module intprops -## begin gnulib module linebreak - -libgnu_la_SOURCES += linebreak.h linebreak.c lbrkprop.h +## begin gnulib module libunistring-optional -## end gnulib module linebreak -## begin gnulib module link-warning +EXTRA_DIST += libunistring.valgrind -LINK_WARNING_H=$(top_srcdir)/../build-aux/link-warning.h - -EXTRA_DIST += $(top_srcdir)/../build-aux/link-warning.h - -## end gnulib module link-warning +## end gnulib module libunistring-optional ## begin gnulib module localcharset @@ -336,21 +488,37 @@ charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -363,14 +531,14 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ SUFFIXES += .sed .sin .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ CLEANFILES += charset.alias ref-add.sed ref-del.sed @@ -381,9 +549,7 @@ ## begin gnulib module lock -libgnu_la_SOURCES += lock.h lock.c - -EXTRA_DIST += $(top_srcdir)/../build-aux/config.rpath +libgnu_la_SOURCES += glthread/lock.h glthread/lock.c ## end gnulib module lock @@ -404,12 +570,39 @@ ## end gnulib module malloca +## begin gnulib module mbrtowc + + +EXTRA_DIST += mbrtowc.c + +EXTRA_libgnu_la_SOURCES += mbrtowc.c + +## end gnulib module mbrtowc + +## begin gnulib module mbsinit + + +EXTRA_DIST += mbsinit.c + +EXTRA_libgnu_la_SOURCES += mbsinit.c + +## end gnulib module mbsinit + ## begin gnulib module mbswidth libgnu_la_SOURCES += mbswidth.h mbswidth.c ## end gnulib module mbswidth +## begin gnulib module memchr + + +EXTRA_DIST += memchr.c memchr.valgrind + +EXTRA_libgnu_la_SOURCES += memchr.c + +## end gnulib module memchr + ## begin gnulib module minmax libgnu_la_SOURCES += minmax.h @@ -435,6 +628,15 @@ ## end gnulib module obstack +## begin gnulib module open + + +EXTRA_DIST += open.c + +EXTRA_libgnu_la_SOURCES += open.c + +## end gnulib module open + ## begin gnulib module ostream libgnu_la_SOURCES += ostream.c @@ -488,12 +690,84 @@ ## end gnulib module relocatable-lib +## begin gnulib module signal + +BUILT_SOURCES += signal.h + +# We need the following in order to create when the system +# doesn't have a complete one. +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ + -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ + -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/signal.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += signal.h signal.h-t + +EXTRA_DIST += signal.in.h + +## end gnulib module signal + +## begin gnulib module sigprocmask + + +EXTRA_DIST += sigprocmask.c + +EXTRA_libgnu_la_SOURCES += sigprocmask.c + +## end gnulib module sigprocmask + ## begin gnulib module size_max libgnu_la_SOURCES += size_max.h ## end gnulib module size_max +## begin gnulib module stat + + +EXTRA_DIST += stat.c + +EXTRA_libgnu_la_SOURCES += stat.c + +## end gnulib module stat + +## begin gnulib module stdarg + +BUILT_SOURCES += $(STDARG_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdarg.h: stdarg.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ + < $(srcdir)/stdarg.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stdarg.h stdarg.h-t + +EXTRA_DIST += stdarg.in.h + +## end gnulib module stdarg + ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) @@ -501,10 +775,10 @@ # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdbool.h stdbool.h-t @@ -512,6 +786,29 @@ ## end gnulib module stdbool +## begin gnulib module stddef + +BUILT_SOURCES += $(STDDEF_H) + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += stddef.h stddef.h-t + +EXTRA_DIST += stddef.in.h + +## end gnulib module stddef + ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) @@ -519,10 +816,11 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -530,6 +828,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -544,7 +843,7 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdint.h stdint.h-t @@ -558,58 +857,107 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdio.h: stdio.in.h - rm -f $@-t $@ +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ - -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ - -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ - -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ - -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ - -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ - -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ - -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ - -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ - -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ - -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ - -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ - -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ - -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ - -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ - -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ - -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ - -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ - -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ - -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ - < $(srcdir)/stdio.in.h; \ - } > $@-t + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdio.h stdio.h-t -EXTRA_DIST += stdio.in.h +EXTRA_DIST += stdio-write.c stdio.in.h + +EXTRA_libgnu_la_SOURCES += stdio-write.c ## end gnulib module stdio @@ -619,28 +967,74 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t @@ -657,15 +1051,6 @@ ## end gnulib module stpcpy -## begin gnulib module strdup - - -EXTRA_DIST += strdup.c - -EXTRA_libgnu_la_SOURCES += strdup.c - -## end gnulib module strdup - ## begin gnulib module streq @@ -691,16 +1076,34 @@ ## end gnulib module striconv +## begin gnulib module striconveh + +libgnu_la_SOURCES += striconveh.h striconveh.c +if GL_COND_LIBTOOL +libgnu_la_LDFLAGS += $(LTLIBICONV) +endif + +EXTRA_DIST += iconveh.h + +## end gnulib module striconveh + +## begin gnulib module striconveha + +libgnu_la_SOURCES += striconveha.h striconveha.c + +## end gnulib module striconveha + ## begin gnulib module string BUILT_SOURCES += string.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -716,41 +1119,63 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t @@ -758,55 +1183,327 @@ ## end gnulib module string -## begin gnulib module strnlen +## begin gnulib module strstr-simple + + +EXTRA_DIST += str-two-way.h strstr.c + +EXTRA_libgnu_la_SOURCES += strstr.c + +## end gnulib module strstr-simple + +## begin gnulib module sys_stat + +BUILT_SOURCES += sys/stat.h + +# We need the following in order to create when the system +# has one that is incomplete. +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ + -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_stat.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_stat.in.h + +## end gnulib module sys_stat + +## begin gnulib module threadlib + +libgnu_la_SOURCES += glthread/threadlib.c + +EXTRA_DIST += $(top_srcdir)/../build-aux/config.rpath + +## end gnulib module threadlib +## begin gnulib module time -EXTRA_DIST += strnlen.c +BUILT_SOURCES += time.h -EXTRA_libgnu_la_SOURCES += strnlen.c +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += time.h time.h-t -## end gnulib module strnlen +EXTRA_DIST += time.in.h + +## end gnulib module time ## begin gnulib module tls -libgnu_la_SOURCES += tls.h tls.c +libgnu_la_SOURCES += glthread/tls.h glthread/tls.c ## end gnulib module tls +## begin gnulib module uniconv/base + +BUILT_SOURCES += $(LIBUNISTRING_UNICONV_H) + +uniconv.h: uniconv.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniconv.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniconv.h uniconv.h-t + +EXTRA_DIST += iconveh.h localcharset.h striconveha.h uniconv.in.h + +## end gnulib module uniconv/base + +## begin gnulib module uniconv/u8-conv-from-enc + +if LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC +libgnu_la_SOURCES += uniconv/u8-conv-from-enc.c +endif + +## end gnulib module uniconv/u8-conv-from-enc + +## begin gnulib module unilbrk/base + +BUILT_SOURCES += $(LIBUNISTRING_UNILBRK_H) + +unilbrk.h: unilbrk.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unilbrk.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unilbrk.h unilbrk.h-t + +EXTRA_DIST += unilbrk.in.h + +## end gnulib module unilbrk/base + +## begin gnulib module unilbrk/tables + +libgnu_la_SOURCES += unilbrk/lbrktables.c + +EXTRA_DIST += unilbrk/lbrkprop1.h unilbrk/lbrkprop2.h unilbrk/lbrktables.h + +## end gnulib module unilbrk/tables + +## begin gnulib module unilbrk/u8-possible-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS +libgnu_la_SOURCES += unilbrk/u8-possible-linebreaks.c +endif + +EXTRA_DIST += uniwidth/cjk.h + +## end gnulib module unilbrk/u8-possible-linebreaks + +## begin gnulib module unilbrk/u8-width-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS +libgnu_la_SOURCES += unilbrk/u8-width-linebreaks.c +endif + +## end gnulib module unilbrk/u8-width-linebreaks + +## begin gnulib module unilbrk/ulc-common + +libgnu_la_SOURCES += unilbrk/ulc-common.c + +EXTRA_DIST += unilbrk/ulc-common.h + +## end gnulib module unilbrk/ulc-common + +## begin gnulib module unilbrk/ulc-width-linebreaks + +if LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS +libgnu_la_SOURCES += unilbrk/ulc-width-linebreaks.c +endif + +## end gnulib module unilbrk/ulc-width-linebreaks + ## begin gnulib module unistd BUILT_SOURCES += unistd.h # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t @@ -816,58 +1513,121 @@ ## begin gnulib module unistr/base +BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H) -EXTRA_DIST += unistr.h +unistr.h: unistr.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unistr.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unistr.h unistr.h-t + +EXTRA_DIST += unistr.in.h ## end gnulib module unistr/base ## begin gnulib module unistr/u16-mbtouc +if LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC libgnu_la_SOURCES += unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c +endif ## end gnulib module unistr/u16-mbtouc -## begin gnulib module unistr/u16-mbtouc-unsafe +## begin gnulib module unistr/u8-check -libgnu_la_SOURCES += unistr/u16-mbtouc-unsafe.c unistr/u16-mbtouc-unsafe-aux.c +if LIBUNISTRING_COMPILE_UNISTR_U8_CHECK +libgnu_la_SOURCES += unistr/u8-check.c +endif + +## end gnulib module unistr/u8-check + +## begin gnulib module unistr/u8-mblen + +if LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN +libgnu_la_SOURCES += unistr/u8-mblen.c +endif -## end gnulib module unistr/u16-mbtouc-unsafe +## end gnulib module unistr/u8-mblen ## begin gnulib module unistr/u8-mbtouc +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC libgnu_la_SOURCES += unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c +endif ## end gnulib module unistr/u8-mbtouc ## begin gnulib module unistr/u8-mbtouc-unsafe +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE libgnu_la_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c +endif ## end gnulib module unistr/u8-mbtouc-unsafe +## begin gnulib module unistr/u8-mbtoucr + +if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR +libgnu_la_SOURCES += unistr/u8-mbtoucr.c +endif + +## end gnulib module unistr/u8-mbtoucr + +## begin gnulib module unistr/u8-prev + +if LIBUNISTRING_COMPILE_UNISTR_U8_PREV +libgnu_la_SOURCES += unistr/u8-prev.c +endif + +## end gnulib module unistr/u8-prev + ## begin gnulib module unistr/u8-uctomb +if LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB libgnu_la_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c +endif ## end gnulib module unistr/u8-uctomb ## begin gnulib module unitypes +BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H) + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += unitypes.h unitypes.h-t -EXTRA_DIST += unitypes.h +EXTRA_DIST += unitypes.in.h ## end gnulib module unitypes ## begin gnulib module uniwidth/base +BUILT_SOURCES += $(LIBUNISTRING_UNIWIDTH_H) -EXTRA_DIST += localcharset.h uniwidth.h +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +MOSTLYCLEANFILES += uniwidth.h uniwidth.h-t + +EXTRA_DIST += localcharset.h uniwidth.in.h ## end gnulib module uniwidth/base ## begin gnulib module uniwidth/width +if LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH libgnu_la_SOURCES += uniwidth/width.c +endif EXTRA_DIST += uniwidth/cjk.h @@ -880,33 +1640,127 @@ ## end gnulib module unlocked-io +## begin gnulib module unused-parameter + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += unused-parameter.h +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t + +UNUSED_PARAMETER_H=unused-parameter.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/unused-parameter.h + +## end gnulib module unused-parameter + +## begin gnulib module vasnprintf + + +EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h + +EXTRA_libgnu_la_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c + +## end gnulib module vasnprintf + ## begin gnulib module vasprintf -EXTRA_DIST += vasprintf.c +EXTRA_DIST += asprintf.c vasprintf.c -EXTRA_libgnu_la_SOURCES += vasprintf.c +EXTRA_libgnu_la_SOURCES += asprintf.c vasprintf.c ## end gnulib module vasprintf +## begin gnulib module verify + +libgnu_la_SOURCES += verify.h + +## end gnulib module verify + +## begin gnulib module warn-on-use + +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/warn-on-use.h + +## end gnulib module warn-on-use + ## begin gnulib module wchar -BUILT_SOURCES += $(WCHAR_H) +BUILT_SOURCES += wchar.h # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wchar.h wchar.h-t @@ -916,20 +1770,25 @@ ## begin gnulib module wctype -BUILT_SOURCES += $(WCTYPE_H) +BUILT_SOURCES += wctype.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += wctype.h wctype.h-t @@ -952,6 +1811,14 @@ ## end gnulib module xalloc +## begin gnulib module xconcat-filename + +libgnu_la_SOURCES += xconcat-filename.c + +EXTRA_DIST += concat-filename.h + +## end gnulib module xconcat-filename + ## begin gnulib module xerror libgnu_la_SOURCES += xerror.h xerror.c diff -Nru gettext-0.17/gettext-tools/libgettextpo/Makefile.in gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.in --- gettext-0.17/gettext-tools/libgettextpo/Makefile.in 2007-11-06 23:39:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/Makefile.in 2010-06-06 20:12:31.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,7 +15,7 @@ @SET_MAKE@ -# Copyright (C) 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General @@ -23,13 +24,14 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgnu --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --doc-base=doc --aux-dir=../build-aux --makefile-name=Makefile.gnulib --libtool --macro-prefix=gtpo basename c-ctype c-strcase c-strstr error error-progname exit file-ostream filename fopen fstrcmp fwriteerror gcd getline gettext-h hash iconv linebreak minmax ostream progname relocatable-lib stdbool ucs4-utf8 uniwidth/width unlocked-io utf16-ucs4 utf8-ucs4 vasprintf xalloc xerror xmalloca xstriconv xvasprintf +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgnu --source-base=libgettextpo --m4-base=libgettextpo/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --makefile-name=Makefile.gnulib --libtool --macro-prefix=gtpo basename c-ctype c-strcase c-strstr error error-progname file-ostream filename fopen fstrcmp fwriteerror gcd getline gettext-h hash iconv libunistring-optional minmax open ostream progname relocatable-lib sigpipe stdbool stdio stdlib strerror unilbrk/ulc-width-linebreaks unistr/u16-mbtouc unistr/u8-mbtouc unistr/u8-uctomb uniwidth/width unlocked-io vasprintf xalloc xconcat-filename xerror xmalloca xstriconv xvasprintf VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -48,36 +50,62 @@ # Tell the mingw or Cygwin linker which symbols to export. @WOE32DLL_TRUE@am__append_1 = ../woe32dll/gettextpo-exports.c @WOE32DLL_TRUE@am__append_2 = -Wl,--export-all-symbols -@WOE32_TRUE@am__append_3 = libgettextpo.res +@WOE32_TRUE@am__append_3 = libgettextpo.res.lo DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.gnulib \ $(srcdir)/Makefile.in $(srcdir)/exported.sh.in ChangeLog -@GL_COND_LIBTOOL_TRUE@am__append_4 = $(LTLIBICONV) +@GL_COND_LIBTOOL_TRUE@am__append_4 = $(LTLIBICONV) $(LTLIBICONV) +@LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE@am__append_5 = uniconv/u8-conv-from-enc.c +@LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE@am__append_6 = unilbrk/u8-possible-linebreaks.c +@LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE@am__append_7 = unilbrk/u8-width-linebreaks.c +@LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE@am__append_8 = unilbrk/ulc-width-linebreaks.c +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@am__append_9 = unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@am__append_10 = unistr/u8-check.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@am__append_11 = unistr/u8-mblen.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@am__append_12 = unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@am__append_13 = unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@am__append_14 = unistr/u8-mbtoucr.c +@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@am__append_15 = unistr/u8-prev.c +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@am__append_16 = unistr/u8-uctomb.c unistr/u8-uctomb-aux.c +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__append_17 = uniwidth/width.c subdir = libgettextpo ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -85,13 +113,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -100,23 +129,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -124,68 +161,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -205,13 +272,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -219,17 +286,34 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = exported.sh +CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" -libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) -@WOE32_TRUE@am__DEPENDENCIES_1 = libgettextpo.res -libgettextpo_la_DEPENDENCIES = libgnu.la $(am__DEPENDENCIES_1) +@WOE32_TRUE@am__DEPENDENCIES_1 = libgettextpo.res.lo +am__DEPENDENCIES_2 = +libgettextpo_la_DEPENDENCIES = libgnu.la $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_2) am__libgettextpo_la_SOURCES_DIST = gettext-po.c ../src/str-list.c \ ../src/dir-list.c ../src/message.c ../src/msgl-ascii.c \ ../src/po-error.c ../src/po-xerror.c ../src/write-catalog.c \ @@ -244,9 +328,11 @@ ../src/format-pascal.c ../src/format-ycp.c ../src/format-tcl.c \ ../src/format-perl.c ../src/format-perl-brace.c \ ../src/format-php.c ../src/format-gcc-internal.c \ - ../src/format-qt.c ../src/format-kde.c ../src/format-boost.c \ - ../src/format.c ../src/plural-exp.c ../src/plural-eval.c \ - ../src/msgl-check.c ../woe32dll/gettextpo-exports.c + ../src/format-gfc-internal.c ../src/format-qt.c \ + ../src/format-qt-plural.c ../src/format-kde.c \ + ../src/format-boost.c ../src/format.c ../src/plural-exp.c \ + ../src/plural-eval.c ../src/msgl-check.c \ + ../woe32dll/gettextpo-exports.c am__objects_1 = str-list.lo dir-list.lo message.lo msgl-ascii.lo \ po-error.lo po-xerror.lo write-catalog.lo write-po.lo \ open-catalog.lo po-charset.lo po-lex.lo po-gram-gen.lo \ @@ -256,47 +342,110 @@ format-scheme.lo format-java.lo format-csharp.lo format-awk.lo \ format-pascal.lo format-ycp.lo format-tcl.lo format-perl.lo \ format-perl-brace.lo format-php.lo format-gcc-internal.lo \ - format-qt.lo format-kde.lo format-boost.lo format.lo \ - plural-exp.lo plural-eval.lo msgl-check.lo + format-gfc-internal.lo format-qt.lo format-qt-plural.lo \ + format-kde.lo format-boost.lo format.lo plural-exp.lo \ + plural-eval.lo msgl-check.lo @WOE32DLL_TRUE@am__objects_2 = gettextpo-exports.lo am_libgettextpo_la_OBJECTS = gettext-po.lo $(am__objects_1) \ $(am__objects_2) libgettextpo_la_OBJECTS = $(am_libgettextpo_la_OBJECTS) -libgettextpo_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(libgettextpo_la_LDFLAGS) $(LDFLAGS) -o $@ -am__DEPENDENCIES_2 = +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +libgettextpo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(AM_CFLAGS) $(CFLAGS) $(libgettextpo_la_LDFLAGS) $(LDFLAGS) \ + -o $@ +am__libgnu_la_SOURCES_DIST = basename.h basename.c c-ctype.h c-ctype.c \ + c-strcase.h c-strcasecmp.c c-strncasecmp.c c-strstr.h \ + c-strstr.c concat-filename.c diffseq.h error-progname.h \ + error-progname.c exitfail.c file-ostream.c fstrcmp.h fstrcmp.c \ + fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h hash.h \ + hash.c localcharset.h localcharset.c glthread/lock.h \ + glthread/lock.c malloca.c mbswidth.h mbswidth.c minmax.h \ + ostream.c progname.h progname.c size_max.h striconv.h \ + striconv.c striconveh.h striconveh.c striconveha.h \ + striconveha.c glthread/threadlib.c glthread/tls.h \ + glthread/tls.c uniconv/u8-conv-from-enc.c unilbrk/lbrktables.c \ + unilbrk/u8-possible-linebreaks.c unilbrk/u8-width-linebreaks.c \ + unilbrk/ulc-common.c unilbrk/ulc-width-linebreaks.c \ + unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c unistr/u8-check.c \ + unistr/u8-mblen.c unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c \ + unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c \ + unistr/u8-mbtoucr.c unistr/u8-prev.c unistr/u8-uctomb.c \ + unistr/u8-uctomb-aux.c uniwidth/width.c verify.h xalloc.h \ + xmalloc.c xstrdup.c xconcat-filename.c xerror.h xerror.c \ + xmalloca.c xsize.h xstriconv.h xstriconv.c xvasprintf.h \ + xvasprintf.c xasprintf.c +@LIBUNISTRING_COMPILE_UNICONV_U8_CONV_FROM_ENC_TRUE@am__objects_3 = u8-conv-from-enc.lo +@LIBUNISTRING_COMPILE_UNILBRK_U8_POSSIBLE_LINEBREAKS_TRUE@am__objects_4 = u8-possible-linebreaks.lo +@LIBUNISTRING_COMPILE_UNILBRK_U8_WIDTH_LINEBREAKS_TRUE@am__objects_5 = u8-width-linebreaks.lo +@LIBUNISTRING_COMPILE_UNILBRK_ULC_WIDTH_LINEBREAKS_TRUE@am__objects_6 = ulc-width-linebreaks.lo +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@am__objects_7 = \ +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@ u16-mbtouc.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U16_MBTOUC_TRUE@ u16-mbtouc-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@am__objects_8 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE@ u8-check.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@am__objects_9 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBLEN_TRUE@ u8-mblen.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@am__objects_10 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@ u8-mbtouc.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_TRUE@ u8-mbtouc-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@am__objects_11 = u8-mbtouc-unsafe.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE_TRUE@ u8-mbtouc-unsafe-aux.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@am__objects_12 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE@ u8-mbtoucr.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_PREV_TRUE@am__objects_13 = u8-prev.lo +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@am__objects_14 = \ +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@ u8-uctomb.lo \ +@LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE@ u8-uctomb-aux.lo +@LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__objects_15 = width.lo am_libgnu_la_OBJECTS = basename.lo c-ctype.lo c-strcasecmp.lo \ - c-strncasecmp.lo c-strstr.lo error-progname.lo exitfail.lo \ - file-ostream.lo concat-filename.lo fstrcmp.lo fwriteerror.lo \ - gcd.lo hash.lo linebreak.lo localcharset.lo lock.lo malloca.lo \ - mbswidth.lo ostream.lo progname.lo striconv.lo tls.lo \ - u16-mbtouc.lo u16-mbtouc-aux.lo u16-mbtouc-unsafe.lo \ - u16-mbtouc-unsafe-aux.lo u8-mbtouc.lo u8-mbtouc-aux.lo \ - u8-mbtouc-unsafe.lo u8-mbtouc-unsafe-aux.lo u8-uctomb.lo \ - u8-uctomb-aux.lo width.lo xmalloc.lo xstrdup.lo xerror.lo \ + c-strncasecmp.lo c-strstr.lo concat-filename.lo \ + error-progname.lo exitfail.lo file-ostream.lo fstrcmp.lo \ + fwriteerror.lo gcd.lo hash.lo localcharset.lo lock.lo \ + malloca.lo mbswidth.lo ostream.lo progname.lo striconv.lo \ + striconveh.lo striconveha.lo threadlib.lo tls.lo \ + $(am__objects_3) lbrktables.lo $(am__objects_4) \ + $(am__objects_5) ulc-common.lo $(am__objects_6) \ + $(am__objects_7) $(am__objects_8) $(am__objects_9) \ + $(am__objects_10) $(am__objects_11) $(am__objects_12) \ + $(am__objects_13) $(am__objects_14) $(am__objects_15) \ + xmalloc.lo xstrdup.lo xconcat-filename.lo xerror.lo \ xmalloca.lo xstriconv.lo xvasprintf.lo xasprintf.lo libgnu_la_OBJECTS = $(am_libgnu_la_OBJECTS) -libgnu_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ +libgnu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libgnu_la_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(libgettextpo_la_SOURCES) $(libgnu_la_SOURCES) \ $(EXTRA_libgnu_la_SOURCES) DIST_SOURCES = $(am__libgettextpo_la_SOURCES_DIST) \ - $(libgnu_la_SOURCES) $(EXTRA_libgnu_la_SOURCES) -nodist_includeHEADERS_INSTALL = $(INSTALL_HEADER) + $(am__libgnu_la_SOURCES_DIST) $(EXTRA_libgnu_la_SOURCES) HEADERS = $(nodist_include_HEADERS) $(nodist_noinst_HEADERS) ETAGS = etags CTAGS = ctags @@ -305,8 +454,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -347,136 +500,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -490,53 +827,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -549,17 +966,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -567,18 +987,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -593,6 +1021,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -603,94 +1032,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -700,13 +1257,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -727,8 +1285,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -743,6 +1312,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -756,6 +1326,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies @@ -763,45 +1334,90 @@ # Version information according to Woe32 conventions. # Special rules for installable include files that export variables. -EXTRA_DIST = libgettextpo.rc gettext-po.h.in alloca.in.h error.c \ - error.h file-ostream.h file-ostream.c file_ostream.priv.h \ + +# Allow users to use "gnulib-tool --update". +EXTRA_DIST = libgettextpo.rc gettext-po.h.in gnulib-m4/gnulib-cache.m4 \ + alloca.in.h $(top_srcdir)/../build-aux/arg-nonnull.h \ + $(top_srcdir)/../build-aux/c++defs.h c-strcaseeq.h \ + concat-filename.h errno.in.h error.c error.h exitfail.h \ + fcntl.in.h file-ostream.h file-ostream.c file_ostream.priv.h \ file_ostream.vt.h file-ostream.oo.c file-ostream.oo.h \ - filename.h fopen.c getdelim.c getline.c \ - $(top_srcdir)/../build-aux/config.rpath iconv_open-aix.h \ - iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \ - iconv.in.h iconv_open-aix.gperf iconv_open-hpux.gperf \ - iconv_open-irix.gperf iconv_open-osf.gperf iconv_open.c \ - intprops.h $(top_srcdir)/../build-aux/link-warning.h \ - config.charset ref-add.sin ref-del.sin \ - $(top_srcdir)/../build-aux/config.rpath malloc.c malloca.h \ - malloca.valgrind moo.h $(top_srcdir)/../build-aux/moopp \ - obstack.c obstack.h ostream.h ostream.c ostream.priv.h \ - ostream.vt.h ostream.oo.c ostream.oo.h realloc.c relocatable.c \ - relocatable.h stdbool.in.h stdint.in.h stdio.in.h stdlib.in.h \ - stpcpy.c strdup.c streq.h strerror.c string.in.h strnlen.c \ - unistd.in.h unistr.h unitypes.h localcharset.h uniwidth.h \ - uniwidth/cjk.h unlocked-io.h vasprintf.c wchar.in.h \ - wctype.in.h wcwidth.c xmalloca.h xalloc.h -BUILT_SOURCES = gettext-po.h $(ALLOCA_H) configmake.h file-ostream.h \ - file-ostream.c file_ostream.priv.h file_ostream.vt.h \ - $(ICONV_H) iconv_open-aix.h iconv_open-hpux.h \ - iconv_open-irix.h iconv_open-osf.h ostream.h ostream.c \ - ostream.priv.h ostream.vt.h $(STDBOOL_H) $(STDINT_H) stdio.h \ - stdlib.h string.h unistd.h $(WCHAR_H) $(WCTYPE_H) + filename.h float.in.h fopen.c getdelim.c getline.c \ + $(top_srcdir)/../build-aux/config.rpath iconv.in.h \ + iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ + iconv_open-osf.h iconv_open-solaris.h iconv_open-aix.gperf \ + iconv_open-hpux.gperf iconv_open-irix.gperf \ + iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c \ + intprops.h libunistring.valgrind config.charset ref-add.sin \ + ref-del.sin malloc.c malloca.h malloca.valgrind mbrtowc.c \ + mbsinit.c memchr.c memchr.valgrind moo.h \ + $(top_srcdir)/../build-aux/moopp obstack.c obstack.h open.c \ + ostream.h ostream.c ostream.priv.h ostream.vt.h ostream.oo.c \ + ostream.oo.h realloc.c relocatable.c relocatable.h signal.in.h \ + sigprocmask.c stat.c stdarg.in.h stdbool.in.h stddef.in.h \ + stdint.in.h stdio-write.c stdio.in.h stdlib.in.h stpcpy.c \ + streq.h strerror.c iconveh.h string.in.h str-two-way.h \ + strstr.c sys_stat.in.h $(top_srcdir)/../build-aux/config.rpath \ + time.in.h iconveh.h localcharset.h striconveha.h uniconv.in.h \ + unilbrk.in.h unilbrk/lbrkprop1.h unilbrk/lbrkprop2.h \ + unilbrk/lbrktables.h uniwidth/cjk.h unilbrk/ulc-common.h \ + unistd.in.h unistr.in.h unitypes.in.h localcharset.h \ + uniwidth.in.h uniwidth/cjk.h unlocked-io.h \ + $(top_srcdir)/../build-aux/unused-parameter.h asnprintf.c \ + float+.h printf-args.c printf-args.h printf-parse.c \ + printf-parse.h vasnprintf.c vasnprintf.h asprintf.c \ + vasprintf.c $(top_srcdir)/../build-aux/warn-on-use.h \ + wchar.in.h wctype.in.h wcwidth.c concat-filename.h xmalloca.h \ + xalloc.h + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. +BUILT_SOURCES = gettext-po.h $(ALLOCA_H) arg-nonnull.h c++defs.h \ + configmake.h $(ERRNO_H) fcntl.h file-ostream.h file-ostream.c \ + file_ostream.priv.h file_ostream.vt.h $(FLOAT_H) $(ICONV_H) \ + iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h \ + iconv_open-osf.h iconv_open-solaris.h ostream.h ostream.c \ + ostream.priv.h ostream.vt.h signal.h $(STDARG_H) $(STDBOOL_H) \ + $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h sys/stat.h \ + time.h $(LIBUNISTRING_UNICONV_H) $(LIBUNISTRING_UNILBRK_H) \ + unistd.h $(LIBUNISTRING_UNISTR_H) $(LIBUNISTRING_UNITYPES_H) \ + $(LIBUNISTRING_UNIWIDTH_H) unused-parameter.h warn-on-use.h \ + wchar.h wctype.h MOSTLYCLEANFILES = core *.stackdump $(am__append_3) config.h \ - config.h-t core *.stackdump alloca.h alloca.h-t iconv.h \ - iconv.h-t iconv_open-aix.h-t iconv_open-hpux.h-t \ - iconv_open-irix.h-t iconv_open-osf.h-t stdbool.h stdbool.h-t \ + config.h-t core *.stackdump alloca.h alloca.h-t arg-nonnull.h \ + arg-nonnull.h-t c++defs.h c++defs.h-t errno.h errno.h-t \ + fcntl.h fcntl.h-t float.h float.h-t iconv.h iconv.h-t \ + iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t \ + iconv_open-osf.h-t iconv_open-solaris.h-t signal.h signal.h-t \ + stdarg.h stdarg.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t \ stdint.h stdint.h-t stdio.h stdio.h-t stdlib.h stdlib.h-t \ - string.h string.h-t unistd.h unistd.h-t wchar.h wchar.h-t \ - wctype.h wctype.h-t + string.h string.h-t sys/stat.h sys/stat.h-t time.h time.h-t \ + uniconv.h uniconv.h-t unilbrk.h unilbrk.h-t unistd.h \ + unistd.h-t unistr.h unistr.h-t unitypes.h unitypes.h-t \ + uniwidth.h uniwidth.h-t unused-parameter.h \ + unused-parameter.h-t warn-on-use.h warn-on-use.h-t wchar.h \ + wchar.h-t wctype.h wctype.h-t +MOSTLYCLEANDIRS = sys CLEANFILES = gettext-po.h configmake.h configmake.h-t charset.alias \ ref-add.sed ref-del.sed DISTCLEANFILES = MAINTAINERCLEANFILES = file-ostream.h file-ostream.c \ file_ostream.priv.h file_ostream.vt.h iconv_open-aix.h \ - iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h ostream.h \ - ostream.c ostream.priv.h ostream.vt.h + iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h \ + iconv_open-solaris.h ostream.h ostream.c ostream.priv.h \ + ostream.vt.h SUFFIXES = .sed .sin lib_LTLIBRARIES = libgettextpo.la nodist_include_HEADERS = gettext-po.h @@ -852,7 +1468,9 @@ ../src/format-perl-brace.c \ ../src/format-php.c \ ../src/format-gcc-internal.c \ + ../src/format-gfc-internal.c \ ../src/format-qt.c \ + ../src/format-qt-plural.c \ ../src/format-kde.c \ ../src/format-boost.c \ ../src/format.c \ @@ -863,53 +1481,54 @@ # Libtool's library version information for libgettextpo. # See the libtool documentation, section "Library interface versions". -LTV_CURRENT = 4 -LTV_REVISION = 0 -LTV_AGE = 4 +LTV_CURRENT = 5 +LTV_REVISION = 1 +LTV_AGE = 5 # How to build libgettextpo.la. # Don't make it depend on libgettextsrc.la or libgettextlib.la, since they # define an uncontrolled amount of symbols. -libgettextpo_la_LIBADD = libgnu.la $(WOE32_LDADD) +libgettextpo_la_LIBADD = libgnu.la $(WOE32_LIBADD) $(LTLIBUNISTRING) libgettextpo_la_LDFLAGS = -version-info \ $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) -rpath $(libdir) \ @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@ $(am__append_2) -@WOE32_FALSE@WOE32_LDADD = -@WOE32_TRUE@WOE32_LDADD = libgettextpo.res +@WOE32_FALSE@WOE32_LIBADD = +@WOE32_TRUE@WOE32_LIBADD = libgettextpo.res.lo libgnu_la_SOURCES = basename.h basename.c c-ctype.h c-ctype.c \ c-strcase.h c-strcasecmp.c c-strncasecmp.c c-strstr.h \ - c-strstr.c diffseq.h error-progname.h error-progname.c \ - exitfail.h exitfail.c file-ostream.c concat-filename.c \ - fstrcmp.h fstrcmp.c fwriteerror.h fwriteerror.c gcd.h gcd.c \ - gettext.h hash.h hash.c linebreak.h linebreak.c lbrkprop.h \ - localcharset.h localcharset.c lock.h lock.c malloca.c \ - mbswidth.h mbswidth.c minmax.h ostream.c progname.h progname.c \ - size_max.h striconv.h striconv.c tls.h tls.c \ - unistr/u16-mbtouc.c unistr/u16-mbtouc-aux.c \ - unistr/u16-mbtouc-unsafe.c unistr/u16-mbtouc-unsafe-aux.c \ - unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c \ - unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c \ - unistr/u8-uctomb.c unistr/u8-uctomb-aux.c uniwidth/width.c \ - xalloc.h xmalloc.c xstrdup.c xerror.h xerror.c xmalloca.c \ - xsize.h xstriconv.h xstriconv.c xvasprintf.h xvasprintf.c \ - xasprintf.c + c-strstr.c concat-filename.c diffseq.h error-progname.h \ + error-progname.c exitfail.c file-ostream.c fstrcmp.h fstrcmp.c \ + fwriteerror.h fwriteerror.c gcd.h gcd.c gettext.h hash.h \ + hash.c localcharset.h localcharset.c glthread/lock.h \ + glthread/lock.c malloca.c mbswidth.h mbswidth.c minmax.h \ + ostream.c progname.h progname.c size_max.h striconv.h \ + striconv.c striconveh.h striconveh.c striconveha.h \ + striconveha.c glthread/threadlib.c glthread/tls.h \ + glthread/tls.c $(am__append_5) unilbrk/lbrktables.c \ + $(am__append_6) $(am__append_7) unilbrk/ulc-common.c \ + $(am__append_8) $(am__append_9) $(am__append_10) \ + $(am__append_11) $(am__append_12) $(am__append_13) \ + $(am__append_14) $(am__append_15) $(am__append_16) \ + $(am__append_17) verify.h xalloc.h xmalloc.c xstrdup.c \ + xconcat-filename.c xerror.h xerror.c xmalloca.c xsize.h \ + xstriconv.h xstriconv.c xvasprintf.h xvasprintf.c xasprintf.c libgnu_la_LIBADD = $(gtpo_LTLIBOBJS) libgnu_la_DEPENDENCIES = $(gtpo_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = error.c file-ostream.oo.c fopen.c getdelim.c \ - getline.c iconv_open.c malloc.c obstack.c ostream.oo.c \ - realloc.c relocatable.c stpcpy.c strdup.c strerror.c strnlen.c \ - vasprintf.c wcwidth.c + getline.c iconv_open.c malloc.c mbrtowc.c mbsinit.c memchr.c \ + obstack.c open.c ostream.oo.c realloc.c relocatable.c \ + sigprocmask.c stat.c stdio-write.c stpcpy.c strerror.c \ + strstr.c asnprintf.c printf-args.c printf-parse.c vasnprintf.c \ + asprintf.c vasprintf.c wcwidth.c libgnu_la_LDFLAGS = $(AM_LDFLAGS) $(am__append_4) - -# Use this preprocessor expression to decide whether #include_next works. -# Do not rely on a 'configure'-time test for this, since the expression -# might appear in an installed header, which is used by some other compiler. -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER) +ARG_NONNULL_H = arg-nonnull.h +CXXDEFS_H = c++defs.h GPERF = gperf -LINK_WARNING_H = $(top_srcdir)/../build-aux/link-warning.h charset_alias = $(DESTDIR)$(libdir)/charset.alias charset_tmp = $(DESTDIR)$(libdir)/charset.tmp MOOPPFLAGS = +UNUSED_PARAMETER_H = unused-parameter.h +WARN_ON_USE_H = warn-on-use.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am @@ -919,14 +1538,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libgettextpo/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits libgettextpo/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libgettextpo/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits libgettextpo/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -944,25 +1563,30 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): exported.sh: $(top_builddir)/config.status $(srcdir)/exported.sh.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + list2="$$list2 $$p"; \ else :; fi; \ - done + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: @@ -983,9 +1607,9 @@ rm -f "$${dir}/so_locations"; \ done libgettextpo.la: $(libgettextpo_la_OBJECTS) $(libgettextpo_la_DEPENDENCIES) - $(libgettextpo_la_LINK) -rpath $(libdir) $(libgettextpo_la_OBJECTS) $(libgettextpo_la_LIBADD) $(LIBS) + $(AM_V_CCLD)$(libgettextpo_la_LINK) -rpath $(libdir) $(libgettextpo_la_OBJECTS) $(libgettextpo_la_LIBADD) $(LIBS) libgnu.la: $(libgnu_la_OBJECTS) $(libgnu_la_DEPENDENCIES) - $(libgnu_la_LINK) $(libgnu_la_OBJECTS) $(libgnu_la_LIBADD) $(LIBS) + $(AM_V_CCLD)$(libgnu_la_LINK) $(libgnu_la_OBJECTS) $(libgnu_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -994,169 +1618,276 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< str-list.lo: ../src/str-list.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o str-list.lo `test -f '../src/str-list.c' || echo '$(srcdir)/'`../src/str-list.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o str-list.lo `test -f '../src/str-list.c' || echo '$(srcdir)/'`../src/str-list.c dir-list.lo: ../src/dir-list.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dir-list.lo `test -f '../src/dir-list.c' || echo '$(srcdir)/'`../src/dir-list.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dir-list.lo `test -f '../src/dir-list.c' || echo '$(srcdir)/'`../src/dir-list.c message.lo: ../src/message.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o message.lo `test -f '../src/message.c' || echo '$(srcdir)/'`../src/message.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o message.lo `test -f '../src/message.c' || echo '$(srcdir)/'`../src/message.c msgl-ascii.lo: ../src/msgl-ascii.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgl-ascii.lo `test -f '../src/msgl-ascii.c' || echo '$(srcdir)/'`../src/msgl-ascii.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgl-ascii.lo `test -f '../src/msgl-ascii.c' || echo '$(srcdir)/'`../src/msgl-ascii.c po-error.lo: ../src/po-error.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-error.lo `test -f '../src/po-error.c' || echo '$(srcdir)/'`../src/po-error.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-error.lo `test -f '../src/po-error.c' || echo '$(srcdir)/'`../src/po-error.c po-xerror.lo: ../src/po-xerror.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-xerror.lo `test -f '../src/po-xerror.c' || echo '$(srcdir)/'`../src/po-xerror.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-xerror.lo `test -f '../src/po-xerror.c' || echo '$(srcdir)/'`../src/po-xerror.c write-catalog.lo: ../src/write-catalog.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o write-catalog.lo `test -f '../src/write-catalog.c' || echo '$(srcdir)/'`../src/write-catalog.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o write-catalog.lo `test -f '../src/write-catalog.c' || echo '$(srcdir)/'`../src/write-catalog.c write-po.lo: ../src/write-po.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o write-po.lo `test -f '../src/write-po.c' || echo '$(srcdir)/'`../src/write-po.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o write-po.lo `test -f '../src/write-po.c' || echo '$(srcdir)/'`../src/write-po.c open-catalog.lo: ../src/open-catalog.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o open-catalog.lo `test -f '../src/open-catalog.c' || echo '$(srcdir)/'`../src/open-catalog.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o open-catalog.lo `test -f '../src/open-catalog.c' || echo '$(srcdir)/'`../src/open-catalog.c po-charset.lo: ../src/po-charset.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-charset.lo `test -f '../src/po-charset.c' || echo '$(srcdir)/'`../src/po-charset.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-charset.lo `test -f '../src/po-charset.c' || echo '$(srcdir)/'`../src/po-charset.c po-lex.lo: ../src/po-lex.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-lex.lo `test -f '../src/po-lex.c' || echo '$(srcdir)/'`../src/po-lex.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-lex.lo `test -f '../src/po-lex.c' || echo '$(srcdir)/'`../src/po-lex.c po-gram-gen.lo: ../src/po-gram-gen.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-gram-gen.lo `test -f '../src/po-gram-gen.c' || echo '$(srcdir)/'`../src/po-gram-gen.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o po-gram-gen.lo `test -f '../src/po-gram-gen.c' || echo '$(srcdir)/'`../src/po-gram-gen.c read-po.lo: ../src/read-po.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-po.lo `test -f '../src/read-po.c' || echo '$(srcdir)/'`../src/read-po.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-po.lo `test -f '../src/read-po.c' || echo '$(srcdir)/'`../src/read-po.c read-catalog-abstract.lo: ../src/read-catalog-abstract.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-catalog-abstract.lo `test -f '../src/read-catalog-abstract.c' || echo '$(srcdir)/'`../src/read-catalog-abstract.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-catalog-abstract.lo `test -f '../src/read-catalog-abstract.c' || echo '$(srcdir)/'`../src/read-catalog-abstract.c read-catalog.lo: ../src/read-catalog.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-catalog.lo `test -f '../src/read-catalog.c' || echo '$(srcdir)/'`../src/read-catalog.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o read-catalog.lo `test -f '../src/read-catalog.c' || echo '$(srcdir)/'`../src/read-catalog.c plural-table.lo: ../src/plural-table.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-table.lo `test -f '../src/plural-table.c' || echo '$(srcdir)/'`../src/plural-table.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-table.lo `test -f '../src/plural-table.c' || echo '$(srcdir)/'`../src/plural-table.c format-c.lo: ../src/format-c.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-c.lo `test -f '../src/format-c.c' || echo '$(srcdir)/'`../src/format-c.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-c.lo `test -f '../src/format-c.c' || echo '$(srcdir)/'`../src/format-c.c format-sh.lo: ../src/format-sh.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-sh.lo `test -f '../src/format-sh.c' || echo '$(srcdir)/'`../src/format-sh.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-sh.lo `test -f '../src/format-sh.c' || echo '$(srcdir)/'`../src/format-sh.c format-python.lo: ../src/format-python.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-python.lo `test -f '../src/format-python.c' || echo '$(srcdir)/'`../src/format-python.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-python.lo `test -f '../src/format-python.c' || echo '$(srcdir)/'`../src/format-python.c format-lisp.lo: ../src/format-lisp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-lisp.lo `test -f '../src/format-lisp.c' || echo '$(srcdir)/'`../src/format-lisp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-lisp.lo `test -f '../src/format-lisp.c' || echo '$(srcdir)/'`../src/format-lisp.c format-elisp.lo: ../src/format-elisp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-elisp.lo `test -f '../src/format-elisp.c' || echo '$(srcdir)/'`../src/format-elisp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-elisp.lo `test -f '../src/format-elisp.c' || echo '$(srcdir)/'`../src/format-elisp.c format-librep.lo: ../src/format-librep.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-librep.lo `test -f '../src/format-librep.c' || echo '$(srcdir)/'`../src/format-librep.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-librep.lo `test -f '../src/format-librep.c' || echo '$(srcdir)/'`../src/format-librep.c format-scheme.lo: ../src/format-scheme.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-scheme.lo `test -f '../src/format-scheme.c' || echo '$(srcdir)/'`../src/format-scheme.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-scheme.lo `test -f '../src/format-scheme.c' || echo '$(srcdir)/'`../src/format-scheme.c format-java.lo: ../src/format-java.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-java.lo `test -f '../src/format-java.c' || echo '$(srcdir)/'`../src/format-java.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-java.lo `test -f '../src/format-java.c' || echo '$(srcdir)/'`../src/format-java.c format-csharp.lo: ../src/format-csharp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-csharp.lo `test -f '../src/format-csharp.c' || echo '$(srcdir)/'`../src/format-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-csharp.lo `test -f '../src/format-csharp.c' || echo '$(srcdir)/'`../src/format-csharp.c format-awk.lo: ../src/format-awk.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-awk.lo `test -f '../src/format-awk.c' || echo '$(srcdir)/'`../src/format-awk.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-awk.lo `test -f '../src/format-awk.c' || echo '$(srcdir)/'`../src/format-awk.c format-pascal.lo: ../src/format-pascal.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-pascal.lo `test -f '../src/format-pascal.c' || echo '$(srcdir)/'`../src/format-pascal.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-pascal.lo `test -f '../src/format-pascal.c' || echo '$(srcdir)/'`../src/format-pascal.c format-ycp.lo: ../src/format-ycp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-ycp.lo `test -f '../src/format-ycp.c' || echo '$(srcdir)/'`../src/format-ycp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-ycp.lo `test -f '../src/format-ycp.c' || echo '$(srcdir)/'`../src/format-ycp.c format-tcl.lo: ../src/format-tcl.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-tcl.lo `test -f '../src/format-tcl.c' || echo '$(srcdir)/'`../src/format-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-tcl.lo `test -f '../src/format-tcl.c' || echo '$(srcdir)/'`../src/format-tcl.c format-perl.lo: ../src/format-perl.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-perl.lo `test -f '../src/format-perl.c' || echo '$(srcdir)/'`../src/format-perl.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-perl.lo `test -f '../src/format-perl.c' || echo '$(srcdir)/'`../src/format-perl.c format-perl-brace.lo: ../src/format-perl-brace.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-perl-brace.lo `test -f '../src/format-perl-brace.c' || echo '$(srcdir)/'`../src/format-perl-brace.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-perl-brace.lo `test -f '../src/format-perl-brace.c' || echo '$(srcdir)/'`../src/format-perl-brace.c format-php.lo: ../src/format-php.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-php.lo `test -f '../src/format-php.c' || echo '$(srcdir)/'`../src/format-php.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-php.lo `test -f '../src/format-php.c' || echo '$(srcdir)/'`../src/format-php.c format-gcc-internal.lo: ../src/format-gcc-internal.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-gcc-internal.lo `test -f '../src/format-gcc-internal.c' || echo '$(srcdir)/'`../src/format-gcc-internal.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-gcc-internal.lo `test -f '../src/format-gcc-internal.c' || echo '$(srcdir)/'`../src/format-gcc-internal.c + +format-gfc-internal.lo: ../src/format-gfc-internal.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-gfc-internal.lo `test -f '../src/format-gfc-internal.c' || echo '$(srcdir)/'`../src/format-gfc-internal.c format-qt.lo: ../src/format-qt.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-qt.lo `test -f '../src/format-qt.c' || echo '$(srcdir)/'`../src/format-qt.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-qt.lo `test -f '../src/format-qt.c' || echo '$(srcdir)/'`../src/format-qt.c + +format-qt-plural.lo: ../src/format-qt-plural.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-qt-plural.lo `test -f '../src/format-qt-plural.c' || echo '$(srcdir)/'`../src/format-qt-plural.c format-kde.lo: ../src/format-kde.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-kde.lo `test -f '../src/format-kde.c' || echo '$(srcdir)/'`../src/format-kde.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-kde.lo `test -f '../src/format-kde.c' || echo '$(srcdir)/'`../src/format-kde.c format-boost.lo: ../src/format-boost.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-boost.lo `test -f '../src/format-boost.c' || echo '$(srcdir)/'`../src/format-boost.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format-boost.lo `test -f '../src/format-boost.c' || echo '$(srcdir)/'`../src/format-boost.c format.lo: ../src/format.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format.lo `test -f '../src/format.c' || echo '$(srcdir)/'`../src/format.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o format.lo `test -f '../src/format.c' || echo '$(srcdir)/'`../src/format.c plural-exp.lo: ../src/plural-exp.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-exp.lo `test -f '../src/plural-exp.c' || echo '$(srcdir)/'`../src/plural-exp.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-exp.lo `test -f '../src/plural-exp.c' || echo '$(srcdir)/'`../src/plural-exp.c plural-eval.lo: ../src/plural-eval.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-eval.lo `test -f '../src/plural-eval.c' || echo '$(srcdir)/'`../src/plural-eval.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o plural-eval.lo `test -f '../src/plural-eval.c' || echo '$(srcdir)/'`../src/plural-eval.c msgl-check.lo: ../src/msgl-check.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgl-check.lo `test -f '../src/msgl-check.c' || echo '$(srcdir)/'`../src/msgl-check.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgl-check.lo `test -f '../src/msgl-check.c' || echo '$(srcdir)/'`../src/msgl-check.c gettextpo-exports.lo: ../woe32dll/gettextpo-exports.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gettextpo-exports.lo `test -f '../woe32dll/gettextpo-exports.c' || echo '$(srcdir)/'`../woe32dll/gettextpo-exports.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gettextpo-exports.lo `test -f '../woe32dll/gettextpo-exports.c' || echo '$(srcdir)/'`../woe32dll/gettextpo-exports.c + +lock.lo: glthread/lock.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lock.lo `test -f 'glthread/lock.c' || echo '$(srcdir)/'`glthread/lock.c + +threadlib.lo: glthread/threadlib.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o threadlib.lo `test -f 'glthread/threadlib.c' || echo '$(srcdir)/'`glthread/threadlib.c + +tls.lo: glthread/tls.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tls.lo `test -f 'glthread/tls.c' || echo '$(srcdir)/'`glthread/tls.c + +u8-conv-from-enc.lo: uniconv/u8-conv-from-enc.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-conv-from-enc.lo `test -f 'uniconv/u8-conv-from-enc.c' || echo '$(srcdir)/'`uniconv/u8-conv-from-enc.c + +lbrktables.lo: unilbrk/lbrktables.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o lbrktables.lo `test -f 'unilbrk/lbrktables.c' || echo '$(srcdir)/'`unilbrk/lbrktables.c + +u8-possible-linebreaks.lo: unilbrk/u8-possible-linebreaks.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-possible-linebreaks.lo `test -f 'unilbrk/u8-possible-linebreaks.c' || echo '$(srcdir)/'`unilbrk/u8-possible-linebreaks.c + +u8-width-linebreaks.lo: unilbrk/u8-width-linebreaks.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-width-linebreaks.lo `test -f 'unilbrk/u8-width-linebreaks.c' || echo '$(srcdir)/'`unilbrk/u8-width-linebreaks.c + +ulc-common.lo: unilbrk/ulc-common.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ulc-common.lo `test -f 'unilbrk/ulc-common.c' || echo '$(srcdir)/'`unilbrk/ulc-common.c + +ulc-width-linebreaks.lo: unilbrk/ulc-width-linebreaks.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ulc-width-linebreaks.lo `test -f 'unilbrk/ulc-width-linebreaks.c' || echo '$(srcdir)/'`unilbrk/ulc-width-linebreaks.c u16-mbtouc.lo: unistr/u16-mbtouc.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc.lo `test -f 'unistr/u16-mbtouc.c' || echo '$(srcdir)/'`unistr/u16-mbtouc.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc.lo `test -f 'unistr/u16-mbtouc.c' || echo '$(srcdir)/'`unistr/u16-mbtouc.c u16-mbtouc-aux.lo: unistr/u16-mbtouc-aux.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc-aux.lo `test -f 'unistr/u16-mbtouc-aux.c' || echo '$(srcdir)/'`unistr/u16-mbtouc-aux.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc-aux.lo `test -f 'unistr/u16-mbtouc-aux.c' || echo '$(srcdir)/'`unistr/u16-mbtouc-aux.c -u16-mbtouc-unsafe.lo: unistr/u16-mbtouc-unsafe.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc-unsafe.lo `test -f 'unistr/u16-mbtouc-unsafe.c' || echo '$(srcdir)/'`unistr/u16-mbtouc-unsafe.c - -u16-mbtouc-unsafe-aux.lo: unistr/u16-mbtouc-unsafe-aux.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u16-mbtouc-unsafe-aux.lo `test -f 'unistr/u16-mbtouc-unsafe-aux.c' || echo '$(srcdir)/'`unistr/u16-mbtouc-unsafe-aux.c +u8-check.lo: unistr/u8-check.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-check.lo `test -f 'unistr/u8-check.c' || echo '$(srcdir)/'`unistr/u8-check.c + +u8-mblen.lo: unistr/u8-mblen.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mblen.lo `test -f 'unistr/u8-mblen.c' || echo '$(srcdir)/'`unistr/u8-mblen.c u8-mbtouc.lo: unistr/u8-mbtouc.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc.lo `test -f 'unistr/u8-mbtouc.c' || echo '$(srcdir)/'`unistr/u8-mbtouc.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc.lo `test -f 'unistr/u8-mbtouc.c' || echo '$(srcdir)/'`unistr/u8-mbtouc.c u8-mbtouc-aux.lo: unistr/u8-mbtouc-aux.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-aux.lo `test -f 'unistr/u8-mbtouc-aux.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-aux.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-aux.lo `test -f 'unistr/u8-mbtouc-aux.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-aux.c u8-mbtouc-unsafe.lo: unistr/u8-mbtouc-unsafe.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-unsafe.lo `test -f 'unistr/u8-mbtouc-unsafe.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-unsafe.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-unsafe.lo `test -f 'unistr/u8-mbtouc-unsafe.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-unsafe.c u8-mbtouc-unsafe-aux.lo: unistr/u8-mbtouc-unsafe-aux.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-unsafe-aux.lo `test -f 'unistr/u8-mbtouc-unsafe-aux.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-unsafe-aux.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtouc-unsafe-aux.lo `test -f 'unistr/u8-mbtouc-unsafe-aux.c' || echo '$(srcdir)/'`unistr/u8-mbtouc-unsafe-aux.c + +u8-mbtoucr.lo: unistr/u8-mbtoucr.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-mbtoucr.lo `test -f 'unistr/u8-mbtoucr.c' || echo '$(srcdir)/'`unistr/u8-mbtoucr.c + +u8-prev.lo: unistr/u8-prev.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-prev.lo `test -f 'unistr/u8-prev.c' || echo '$(srcdir)/'`unistr/u8-prev.c u8-uctomb.lo: unistr/u8-uctomb.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-uctomb.lo `test -f 'unistr/u8-uctomb.c' || echo '$(srcdir)/'`unistr/u8-uctomb.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-uctomb.lo `test -f 'unistr/u8-uctomb.c' || echo '$(srcdir)/'`unistr/u8-uctomb.c u8-uctomb-aux.lo: unistr/u8-uctomb-aux.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-uctomb-aux.lo `test -f 'unistr/u8-uctomb-aux.c' || echo '$(srcdir)/'`unistr/u8-uctomb-aux.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o u8-uctomb-aux.lo `test -f 'unistr/u8-uctomb-aux.c' || echo '$(srcdir)/'`unistr/u8-uctomb-aux.c width.lo: uniwidth/width.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o width.lo `test -f 'uniwidth/width.c' || echo '$(srcdir)/'`uniwidth/width.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o width.lo `test -f 'uniwidth/width.c' || echo '$(srcdir)/'`uniwidth/width.c mostlyclean-libtool: -rm -f *.lo @@ -1166,65 +1897,72 @@ install-nodist_includeHEADERS: $(nodist_include_HEADERS) @$(NORMAL_INSTALL) test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" - @list='$(nodist_include_HEADERS)'; for p in $$list; do \ + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ - $(nodist_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-nodist_includeHEADERS: @$(NORMAL_UNINSTALL) - @list='$(nodist_include_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \ - rm -f "$(DESTDIR)$(includedir)/$$f"; \ - done + @list='$(nodist_include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -1245,13 +1983,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -1286,6 +2028,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -1309,6 +2052,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -1317,18 +2062,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-exec-local install-libLTLIBRARIES install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -1351,7 +2106,7 @@ uninstall-am: uninstall-libLTLIBRARIES uninstall-local \ uninstall-nodist_includeHEADERS -.MAKE: install-am install-strip +.MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ @@ -1371,8 +2126,8 @@ uninstall-libLTLIBRARIES uninstall-local \ uninstall-nodist_includeHEADERS -@WOE32_TRUE@libgettextpo.res : $(srcdir)/libgettextpo.rc -@WOE32_TRUE@ $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res --output-format=coff +@WOE32_TRUE@libgettextpo.res.lo : $(srcdir)/libgettextpo.rc +@WOE32_TRUE@ $(LIBTOOL) --tag=RC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(RC) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(srcdir)/libgettextpo.rc -o libgettextpo.res.lo --output-format=coff # Hide symbols that are defined by libgettextpo_la_AUXSOURCES or libgnu.la # from the global namespace, by prefixing them with "libgettextpo_". @@ -1427,10 +2182,27 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. alloca.h: alloca.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ - } > $@-t + } > $@-t && \ mv -f $@-t $@ +# The arg-nonnull.h that gets inserted into generated .h files is the same as +# build-aux/arg-nonnull.h, except that it has the copyright header cut off. +arg-nonnull.h: $(top_srcdir)/../build-aux/arg-nonnull.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_ARG_NONNULL/,$$p' \ + < $(top_srcdir)/../build-aux/arg-nonnull.h \ + > $@-t && \ + mv $@-t $@ +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ # Retrieve values of the variables through 'configure' followed by # 'make', not directly through 'configure', so that a user who @@ -1450,7 +2222,7 @@ # The Automake-defined pkg* macros are appended, in the order # listed in the Automake 1.10a+ documentation. configmake.h: Makefile - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ @@ -1479,7 +2251,52 @@ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \ - } | sed '/""/d' > $@-t + } | sed '/""/d' > $@-t && \ + if test -f $@ && cmp $@-t $@ > /dev/null; then \ + rm -f $@-t; \ + else \ + rm -f $@; mv $@-t $@; \ + fi + +# We need the following in order to create when the system +# doesn't have one that is POSIX compliant. +errno.h: errno.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ + -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ + -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ + -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ + -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ + -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ + -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ + < $(srcdir)/errno.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +fcntl.h: fcntl.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ + -e 's|@''GNULIB_FCNTL''@|$(GNULIB_FCNTL)|g' \ + -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \ + -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \ + -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ + -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ + -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ + -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ + -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/fcntl.in.h; \ + } > $@-t && \ mv $@-t $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -1498,32 +2315,52 @@ fi; \ } +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +float.h: float.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ + < $(srcdir)/float.in.h; \ + } > $@-t && \ + mv $@-t $@ + # We need the following in order to create when the system # doesn't have one that works with the given compiler. -iconv.h: iconv.in.h - rm -f $@-t $@ +iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \ -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \ -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \ -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \ -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/iconv.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ + iconv_open-aix.h: iconv_open-aix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t + mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h iconv_open-hpux.h: iconv_open-hpux.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t + mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h iconv_open-irix.h: iconv_open-irix.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t + mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h iconv_open-osf.h: iconv_open-osf.gperf - $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $@-t - mv $@-t $@ + $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t + mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h +iconv_open-solaris.h: iconv_open-solaris.gperf + $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t + mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h # We need the following in order to install a simple file in $(libdir) # which is shared with other installed packages. We use a list of referencing @@ -1533,21 +2370,37 @@ # avoid installing it. all-local: charset.alias ref-add.sed ref-del.sed -install-exec-local: all-local - test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir) +install-exec-local: install-exec-localcharset +install-exec-localcharset: all-local + if test $(GLIBC21) = no; then \ + case '$(host_os)' in \ + darwin[56]*) \ + need_charset_alias=true ;; \ + darwin* | cygwin* | mingw* | pw32* | cegcc*) \ + need_charset_alias=false ;; \ + *) \ + need_charset_alias=true ;; \ + esac ; \ + else \ + need_charset_alias=false ; \ + fi ; \ + if $$need_charset_alias; then \ + $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ + fi ; \ if test -f $(charset_alias); then \ sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ else \ - if test $(GLIBC21) = no; then \ + if $$need_charset_alias; then \ sed -f ref-add.sed charset.alias > $(charset_tmp) ; \ $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \ rm -f $(charset_tmp) ; \ fi ; \ fi -uninstall-local: all-local +uninstall-local: uninstall-localcharset +uninstall-localcharset: all-local if test -f $(charset_alias); then \ sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \ if grep '^# Packages using this file: $$' $(charset_tmp) \ @@ -1560,12 +2413,12 @@ fi charset.alias: config.charset - rm -f t-$@ $@ - $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \ mv t-$@ $@ .sin.sed: - rm -f t-$@ $@ - sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ + $(AM_V_GEN)rm -f t-$@ $@ && \ + sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \ mv t-$@ $@ # This is a Makefile rule that generates multiple files at once; see the # automake documentation, node "Multiple Outputs", for details. @@ -1584,22 +2437,73 @@ fi; \ } +# We need the following in order to create when the system +# doesn't have a complete one. +signal.h: signal.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ + -e 's|@''GNULIB_SIGNAL_H_SIGPIPE''@|$(GNULIB_SIGNAL_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_SIGPROCMASK''@|$(GNULIB_SIGPROCMASK)|g' \ + -e 's|@''GNULIB_SIGACTION''@|$(GNULIB_SIGACTION)|g' \ + -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ + -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ + -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ + -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ + -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ + -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/signal.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stdarg.h: stdarg.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ + < $(srcdir)/stdarg.in.h; \ + } > $@-t && \ + mv $@-t $@ + # We need the following in order to create when the system # doesn't have one that works. stdbool.h: stdbool.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \ - } > $@-t + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +stddef.h: stddef.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ + -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ + -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ + < $(srcdir)/stddef.in.h; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdint.h: stdint.in.h - rm -f $@-t $@ + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @@ -1607,6 +2511,7 @@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \ + -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @@ -1621,93 +2526,187 @@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ < $(srcdir)/stdint.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdio.h: stdio.in.h - rm -f $@-t $@ +stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ - -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ - -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ - -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ - -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ - -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \ + -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \ + -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \ + -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \ + -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \ + -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \ + -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \ -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \ -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \ -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \ -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \ -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \ - -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \ + -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \ -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \ -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \ - -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ - -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ - -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ - -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ - -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \ + -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \ + -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \ + -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \ + -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \ + -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \ + -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \ + -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \ + -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \ + -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \ + -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \ + -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \ + -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \ + -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \ + -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \ + -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \ + -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \ + -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \ + -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \ + < $(srcdir)/stdio.in.h | \ + sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ + -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ + -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ - -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ - -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ - -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ + -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ + -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ + -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ - -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ + -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ + -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ + -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ + -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ + -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ - -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ - -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ - -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ - -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ - -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ + -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ + -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ - < $(srcdir)/stdio.in.h; \ - } > $@-t + -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ + -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ + -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ + -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ + -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ + -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ + -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ + -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ + -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ + -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ + -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ + -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ + -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ + -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ + -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ + -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ + -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ + -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h - rm -f $@-t $@ +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ - -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ - -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \ -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ + -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \ -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ + -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \ + -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \ + -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \ -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ + -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \ + -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \ -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ + -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \ + -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ + -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \ + -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \ + -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \ + -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \ + -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \ + -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \ + -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ + -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ + -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ + -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ + -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ + -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ + -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ + -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ + -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ + -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ + -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ + -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ + -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ + -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ + -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \ + -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ + -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ + -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ + -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ + -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ + -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ + -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \ + -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ + -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ + -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ + -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -string.h: string.in.h - rm -f $@-t $@ +string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \ -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \ @@ -1723,103 +2722,380 @@ -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \ -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \ -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \ + -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \ -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \ -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \ -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \ + -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \ -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \ -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \ -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \ -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \ + -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \ -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \ -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \ -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \ -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \ + -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \ -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \ -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \ -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \ + -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \ + -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \ + < $(srcdir)/string.in.h | \ + sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ + -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ + -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ - -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ - -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ - -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ - -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \ + -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ + -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ + -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ + -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ + -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ + -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ + -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ + -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ + -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ + -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ + -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ + -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ + -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ < $(srcdir)/string.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ +# We need the following in order to create when the system +# has one that is incomplete. +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ + -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \ + -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \ + -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \ + -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \ + -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \ + -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \ + -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \ + -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \ + -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \ + -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \ + -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \ + -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \ + -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ + -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ + -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ + -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ + -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ + -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ + -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ + -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ + -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ + -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ + -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ + -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ + -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ + -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ + -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ + -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ + -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ + -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ + -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ + -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_stat.in.h; \ + } > $@-t && \ + mv $@-t $@ + +# We need the following in order to create when the system +# doesn't have one that works with the given compiler. +time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ + -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \ + -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \ + -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \ + -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \ + -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \ + -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \ + -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ + -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ + -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ + -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ + -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ + -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ + -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ + -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/time.in.h; \ + } > $@-t && \ + mv $@-t $@ + +uniconv.h: uniconv.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniconv.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +unilbrk.h: unilbrk.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unilbrk.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + # We need the following in order to create an empty placeholder for # when the system doesn't have one. -unistd.h: unistd.in.h - rm -f $@-t $@ +unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \ -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \ + -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \ + -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \ + -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \ -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \ + -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \ -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \ + -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \ + -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \ + -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \ + -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \ -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \ + -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \ -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \ + -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \ + -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \ -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \ + -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \ + -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \ -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \ + -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \ -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \ + -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \ + -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \ + -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \ + -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \ + -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \ + -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \ + -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \ + -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \ + < $(srcdir)/unistd.in.h | \ + sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ + -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ + -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ + -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ + -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ + -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \ + -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ + -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ + -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ + -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \ + -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ + -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ + -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ + -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ + -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ + -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ + -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ + -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ + -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \ + -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ + -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ + -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ + -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ + -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ + -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ - -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ + -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ + -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ + -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ + -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ + -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ + -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ - < $(srcdir)/unistd.in.h; \ - } > $@-t + -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ + -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ + -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ + -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ + -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ + -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ + -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ + -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ + -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ + -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ + -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ + -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \ + } > $@-t && \ + mv $@-t $@ + +unistr.h: unistr.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unistr.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +unitypes.h: unitypes.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/unitypes.in.h; \ + } > $@-t && \ + mv -f $@-t $@ + +uniwidth.h: uniwidth.in.h + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/uniwidth.in.h; \ + } > $@-t && \ + mv -f $@-t $@ +# The unused-parameter.h that gets inserted into generated .h files is the same +# as build-aux/unused-parameter.h, except that it has the copyright header cut +# off. +unused-parameter.h: $(top_srcdir)/../build-aux/unused-parameter.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \ + < $(top_srcdir)/../build-aux/unused-parameter.h \ + > $@-t && \ + mv $@-t $@ +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # version does not work standalone. -wchar.h: wchar.in.h - rm -f $@-t $@ +wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ - -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ + -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \ + -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \ + -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \ + -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \ + -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \ + -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \ + -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \ + -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \ + -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \ + -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \ -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \ + -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ + -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ + -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ + -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ + -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ + -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ + -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ + -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ + -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ + -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ + -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ + -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ + -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ + -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ + -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ + -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ + -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ + -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ + -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ + -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ + -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ + -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ - -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wchar.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. -wctype.h: wctype.in.h - rm -f $@-t $@ +wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \ - -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \ + -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \ -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \ -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \ + -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/wctype.in.h; \ - } > $@-t + } > $@-t && \ mv $@-t $@ mostlyclean-local: mostlyclean-generic @@ -1831,6 +3107,7 @@ : # A small set of gnulib modules is needed here as well. + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/libgettextpo/malloca.c gettext-0.18.1.1/gettext-tools/libgettextpo/malloca.c --- gettext-0.17/gettext-tools/libgettextpo/malloca.c 2007-06-19 00:27:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/malloca.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -74,21 +74,21 @@ char *p = (char *) malloc (nplus); if (p != NULL) - { - size_t slot; + { + size_t slot; - p += HEADER_SIZE; + p += HEADER_SIZE; - /* Put a magic number into the indicator word. */ - ((int *) p)[-1] = MAGIC_NUMBER; + /* Put a magic number into the indicator word. */ + ((int *) p)[-1] = MAGIC_NUMBER; - /* Enter p into the hash table. */ - slot = (unsigned long) p % HASH_TABLE_SIZE; - ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; - mmalloca_results[slot] = p; + /* Enter p into the hash table. */ + slot = (unsigned long) p % HASH_TABLE_SIZE; + ((struct header *) (p - HEADER_SIZE))->next = mmalloca_results[slot]; + mmalloca_results[slot] = p; - return p; - } + return p; + } } /* Out of memory. */ return NULL; @@ -109,28 +109,28 @@ if (p != NULL) { /* Attempt to quickly distinguish the mmalloca() result - which has - a magic indicator word - and the alloca() result - which has an - uninitialized indicator word. It is for this test that sa_increment - additional bytes are allocated in the alloca() case. */ + a magic indicator word - and the alloca() result - which has an + uninitialized indicator word. It is for this test that sa_increment + additional bytes are allocated in the alloca() case. */ if (((int *) p)[-1] == MAGIC_NUMBER) - { - /* Looks like a mmalloca() result. To see whether it really is one, - perform a lookup in the hash table. */ - size_t slot = (unsigned long) p % HASH_TABLE_SIZE; - void **chain = &mmalloca_results[slot]; - for (; *chain != NULL;) - { - if (*chain == p) - { - /* Found it. Remove it from the hash table and free it. */ - char *p_begin = (char *) p - HEADER_SIZE; - *chain = ((struct header *) p_begin)->next; - free (p_begin); - return; - } - chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; - } - } + { + /* Looks like a mmalloca() result. To see whether it really is one, + perform a lookup in the hash table. */ + size_t slot = (unsigned long) p % HASH_TABLE_SIZE; + void **chain = &mmalloca_results[slot]; + for (; *chain != NULL;) + { + if (*chain == p) + { + /* Found it. Remove it from the hash table and free it. */ + char *p_begin = (char *) p - HEADER_SIZE; + *chain = ((struct header *) p_begin)->next; + free (p_begin); + return; + } + chain = &((struct header *) ((char *) *chain - HEADER_SIZE))->next; + } + } /* At this point, we know it was not a mmalloca() result. */ } } diff -Nru gettext-0.17/gettext-tools/libgettextpo/malloca.h gettext-0.18.1.1/gettext-tools/libgettextpo/malloca.h --- gettext-0.17/gettext-tools/libgettextpo/malloca.h 2007-06-19 00:27:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/malloca.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Safe automatic memory allocation. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -54,7 +54,7 @@ the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ - ((N) < 4032 - sa_increment \ + ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : mmalloca (N)) #else @@ -70,9 +70,19 @@ # define freea free #endif -/* Maybe we should also define a variant - nmalloca (size_t n, size_t s) - behaves like malloca (n * s) - If this would be useful in your application. please speak up. */ +/* nmalloca(N,S) is an overflow-safe variant of malloca (N * S). + It allocates an array of N objects, each with S bytes of memory, + on the stack. S must be positive and N must be nonnegative. + The array must be freed using freea() before the function returns. */ +#if 1 +/* Cf. the definition of xalloc_oversized. */ +# define nmalloca(n, s) \ + ((n) > (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) \ + ? NULL \ + : malloca ((n) * (s))) +#else +extern void * nmalloca (size_t n, size_t s); +#endif #ifdef __cplusplus @@ -112,10 +122,10 @@ sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) #if HAVE_LONG_LONG_INT - | (sa_alignment_longlong - 1) + | (sa_alignment_longlong - 1) #endif - | (sa_alignment_longdouble - 1) - ) + 1, + | (sa_alignment_longdouble - 1) + ) + 1, /* The increment that guarantees room for a magic word must be >= sizeof (int) and a multiple of sa_alignment_max. */ sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max diff -Nru gettext-0.17/gettext-tools/libgettextpo/malloc.c gettext-0.18.1.1/gettext-tools/libgettextpo/malloc.c --- gettext-0.17/gettext-tools/libgettextpo/malloc.c 2007-09-09 17:34:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/malloc.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* malloc() function that is glibc compatible. - Copyright (C) 1997, 1998, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-1998, 2006-2007, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/mbrtowc.c gettext-0.18.1.1/gettext-tools/libgettextpo/mbrtowc.c --- gettext-0.17/gettext-tools/libgettextpo/mbrtowc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/mbrtowc.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,386 @@ +/* Convert multibyte character to wide character. + Copyright (C) 1999-2002, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#if GNULIB_defined_mbstate_t +/* Implement mbrtowc() on top of mbtowc(). */ + +# include +# include + +# include "localcharset.h" +# include "streq.h" +# include "verify.h" + + +verify (sizeof (mbstate_t) >= 4); + +static char internal_state[4]; + +size_t +mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ + char *pstate = (char *)ps; + + if (pstate == NULL) + pstate = internal_state; + + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } + + if (n == 0) + return (size_t)(-2); + + /* Here n > 0. */ + { + size_t nstate = pstate[0]; + char buf[4]; + const char *p; + size_t m; + + switch (nstate) + { + case 0: + p = s; + m = n; + break; + case 3: + buf[2] = pstate[3]; + /*FALLTHROUGH*/ + case 2: + buf[1] = pstate[2]; + /*FALLTHROUGH*/ + case 1: + buf[0] = pstate[1]; + p = buf; + m = nstate; + buf[m++] = s[0]; + if (n >= 2 && m < 4) + { + buf[m++] = s[1]; + if (n >= 3 && m < 4) + buf[m++] = s[2]; + } + break; + default: + errno = EINVAL; + return (size_t)(-1); + } + + /* Here m > 0. */ + +# if __GLIBC__ + /* Work around bug */ + mbtowc (NULL, NULL, 0); +# endif + { + int res = mbtowc (pwc, p, m); + + if (res >= 0) + { + if (pwc != NULL && ((*pwc == 0) != (res == 0))) + abort (); + if (nstate >= (res > 0 ? res : 1)) + abort (); + res -= nstate; + pstate[0] = 0; + return res; + } + + /* mbtowc does not distinguish between invalid and incomplete multibyte + sequences. But mbrtowc needs to make this distinction. + There are two possible approaches: + - Use iconv() and its return value. + - Use built-in knowledge about the possible encodings. + Given the low quality of implementation of iconv() on the systems that + lack mbrtowc(), we use the second approach. + The possible encodings are: + - 8-bit encodings, + - EUC-JP, EUC-KR, GB2312, EUC-TW, BIG5, GB18030, SJIS, + - UTF-8. + Use specialized code for each. */ + if (m >= 4 || m >= MB_CUR_MAX) + goto invalid; + /* Here MB_CUR_MAX > 1 and 0 < m < 4. */ + { + const char *encoding = locale_charset (); + + if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + { + /* Cf. unistr/u8-mblen.c. */ + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (m == 1) + goto incomplete; + } + else if (c < 0xf0) + { + if (m == 1) + goto incomplete; + if (m == 2) + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xe1 || c2 >= 0xa0) + && (c != 0xed || c2 < 0xa0)) + goto incomplete; + } + } + else if (c <= 0xf4) + { + if (m == 1) + goto incomplete; + else /* m == 2 || m == 3 */ + { + unsigned char c2 = (unsigned char) p[1]; + + if ((c2 ^ 0x80) < 0x40 + && (c >= 0xf1 || c2 >= 0x90) + && (c < 0xf4 || (c == 0xf4 && c2 < 0x90))) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if ((c3 ^ 0x80) < 0x40) + goto incomplete; + } + } + } + } + } + goto invalid; + } + + /* As a reference for this code, you can use the GNU libiconv + implementation. Look for uses of the RET_TOOFEW macro. */ + + if (STREQ (encoding, "EUC-JP", 'E', 'U', 'C', '-', 'J', 'P', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e || c == 0x8f) + goto incomplete; + } + if (m == 2) + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8f) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0xa1 && c2 < 0xff) + goto incomplete; + } + } + goto invalid; + } + if (STREQ (encoding, "EUC-KR", 'E', 'U', 'C', '-', 'K', 'R', 0, 0, 0) + || STREQ (encoding, "GB2312", 'G', 'B', '2', '3', '1', '2', 0, 0, 0) + || STREQ (encoding, "BIG5", 'B', 'I', 'G', '5', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0xa1 && c < 0xff) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "EUC-TW", 'E', 'U', 'C', '-', 'T', 'W', 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0xa1 && c < 0xff) || c == 0x8e) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c == 0x8e) + goto incomplete; + } + goto invalid; + } + if (STREQ (encoding, "GB18030", 'G', 'B', '1', '8', '0', '3', '0', 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x90 && c <= 0xe3) || (c >= 0xf8 && c <= 0xfe)) + goto incomplete; + } + else /* m == 2 || m == 3 */ + { + unsigned char c = (unsigned char) p[0]; + + if (c >= 0x90 && c <= 0xe3) + { + unsigned char c2 = (unsigned char) p[1]; + + if (c2 >= 0x30 && c2 <= 0x39) + { + if (m == 2) + goto incomplete; + else /* m == 3 */ + { + unsigned char c3 = (unsigned char) p[2]; + + if (c3 >= 0x81 && c3 <= 0xfe) + goto incomplete; + } + } + } + } + goto invalid; + } + if (STREQ (encoding, "SJIS", 'S', 'J', 'I', 'S', 0, 0, 0, 0, 0)) + { + if (m == 1) + { + unsigned char c = (unsigned char) p[0]; + + if ((c >= 0x81 && c <= 0x9f) || (c >= 0xe0 && c <= 0xea) + || (c >= 0xf0 && c <= 0xf9)) + goto incomplete; + } + goto invalid; + } + + /* An unknown multibyte encoding. */ + goto incomplete; + } + + incomplete: + { + size_t k = nstate; + /* Here 0 <= k < m < 4. */ + pstate[++k] = s[0]; + if (k < m) + { + pstate[++k] = s[1]; + if (k < m) + pstate[++k] = s[2]; + } + if (k != m) + abort (); + } + pstate[0] = m; + return (size_t)(-2); + + invalid: + errno = EILSEQ; + /* The conversion state is undefined, says POSIX. */ + return (size_t)(-1); + } + } +} + +#else +/* Override the system's mbrtowc() function. */ + +# undef mbrtowc + +size_t +rpl_mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) +{ +# if MBRTOWC_NULL_ARG_BUG || MBRTOWC_RETVAL_BUG + if (s == NULL) + { + pwc = NULL; + s = ""; + n = 1; + } +# endif + +# if MBRTOWC_RETVAL_BUG + { + static mbstate_t internal_state; + + /* Override mbrtowc's internal state. We can not call mbsinit() on the + hidden internal state, but we can call it on our variable. */ + if (ps == NULL) + ps = &internal_state; + + if (!mbsinit (ps)) + { + /* Parse the rest of the multibyte character byte for byte. */ + size_t count = 0; + for (; n > 0; s++, n--) + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, 1, ps); + + if (ret == (size_t)(-1)) + return (size_t)(-1); + count++; + if (ret != (size_t)(-2)) + { + /* The multibyte character has been completed. */ + if (pwc != NULL) + *pwc = wc; + return (wc == 0 ? 0 : count); + } + } + return (size_t)(-2); + } + } +# endif + +# if MBRTOWC_NUL_RETVAL_BUG + { + wchar_t wc; + size_t ret = mbrtowc (&wc, s, n, ps); + + if (ret != (size_t)(-1) && ret != (size_t)(-2)) + { + if (pwc != NULL) + *pwc = wc; + if (wc == 0) + ret = 0; + } + return ret; + } +# else + return mbrtowc (pwc, s, n, ps); +# endif +} + +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/mbsinit.c gettext-0.18.1.1/gettext-tools/libgettextpo/mbsinit.c --- gettext-0.17/gettext-tools/libgettextpo/mbsinit.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/mbsinit.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,47 @@ +/* Test for initial conversion state. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include "verify.h" + +/* Platforms that lack mbsinit() also lack mbrlen(), mbrtowc(), mbsrtowcs() + and wcrtomb(), wcsrtombs(). + We assume that + - sizeof (mbstate_t) >= 4, + - only stateless encodings are supported (such as UTF-8 and EUC-JP, but + not ISO-2022 variants), + - for each encoding, the number of bytes for a wide character is <= 4. + (This maximum is attained for UTF-8, GB18030, EUC-TW.) + We define the meaning of mbstate_t as follows: + - In mb -> wc direction, mbstate_t's first byte contains the number of + buffered bytes (in the range 0..3), followed by up to 3 buffered bytes. + - In wc -> mb direction, mbstate_t contains no information. In other + words, it is always in the initial state. */ + +verify (sizeof (mbstate_t) >= 4); + +int +mbsinit (const mbstate_t *ps) +{ + const char *pstate = (const char *)ps; + + return pstate[0] == 0; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/mbswidth.c gettext-0.18.1.1/gettext-tools/libgettextpo/mbswidth.c --- gettext-0.17/gettext-tools/libgettextpo/mbswidth.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/mbswidth.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a string. - Copyright (C) 2000-2007 Free Software Foundation, Inc. + Copyright (C) 2000-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,12 +35,6 @@ /* Get iswcntrl(). */ #include -#ifndef mbsinit -# if !HAVE_MBSINIT -# define mbsinit(ps) 1 -# endif -#endif - /* Returns the number of columns needed to represent the multibyte character string pointed to by STRING. If a non-printable character occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned. @@ -66,110 +60,108 @@ int width; width = 0; -#if HAVE_MBRTOWC if (MB_CUR_MAX > 1) { while (p < plimit) - switch (*p) - { - case ' ': case '!': case '"': case '#': case '%': - case '&': case '\'': case '(': case ')': case '*': - case '+': case ',': case '-': case '.': case '/': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case ':': case ';': case '<': case '=': case '>': - case '?': - case 'A': case 'B': case 'C': case 'D': case 'E': - case 'F': case 'G': case 'H': case 'I': case 'J': - case 'K': case 'L': case 'M': case 'N': case 'O': - case 'P': case 'Q': case 'R': case 'S': case 'T': - case 'U': case 'V': case 'W': case 'X': case 'Y': - case 'Z': - case '[': case '\\': case ']': case '^': case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': - case 'f': case 'g': case 'h': case 'i': case 'j': - case 'k': case 'l': case 'm': case 'n': case 'o': - case 'p': case 'q': case 'r': case 's': case 't': - case 'u': case 'v': case 'w': case 'x': case 'y': - case 'z': case '{': case '|': case '}': case '~': - /* These characters are printable ASCII characters. */ - p++; - width++; - break; - default: - /* If we have a multibyte sequence, scan it up to its end. */ - { - mbstate_t mbstate; - memset (&mbstate, 0, sizeof mbstate); - do - { - wchar_t wc; - size_t bytes; - int w; - - bytes = mbrtowc (&wc, p, plimit - p, &mbstate); - - if (bytes == (size_t) -1) - /* An invalid multibyte sequence was encountered. */ - { - if (!(flags & MBSW_REJECT_INVALID)) - { - p++; - width++; - break; - } - else - return -1; - } - - if (bytes == (size_t) -2) - /* An incomplete multibyte character at the end. */ - { - if (!(flags & MBSW_REJECT_INVALID)) - { - p = plimit; - width++; - break; - } - else - return -1; - } - - if (bytes == 0) - /* A null wide character was encountered. */ - bytes = 1; - - w = wcwidth (wc); - if (w >= 0) - /* A printable multibyte character. */ - width += w; - else - /* An unprintable multibyte character. */ - if (!(flags & MBSW_REJECT_UNPRINTABLE)) - width += (iswcntrl (wc) ? 0 : 1); - else - return -1; - - p += bytes; - } - while (! mbsinit (&mbstate)); - } - break; - } + switch (*p) + { + case ' ': case '!': case '"': case '#': case '%': + case '&': case '\'': case '(': case ')': case '*': + case '+': case ',': case '-': case '.': case '/': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case ':': case ';': case '<': case '=': case '>': + case '?': + case 'A': case 'B': case 'C': case 'D': case 'E': + case 'F': case 'G': case 'H': case 'I': case 'J': + case 'K': case 'L': case 'M': case 'N': case 'O': + case 'P': case 'Q': case 'R': case 'S': case 'T': + case 'U': case 'V': case 'W': case 'X': case 'Y': + case 'Z': + case '[': case '\\': case ']': case '^': case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': + case 'f': case 'g': case 'h': case 'i': case 'j': + case 'k': case 'l': case 'm': case 'n': case 'o': + case 'p': case 'q': case 'r': case 's': case 't': + case 'u': case 'v': case 'w': case 'x': case 'y': + case 'z': case '{': case '|': case '}': case '~': + /* These characters are printable ASCII characters. */ + p++; + width++; + break; + default: + /* If we have a multibyte sequence, scan it up to its end. */ + { + mbstate_t mbstate; + memset (&mbstate, 0, sizeof mbstate); + do + { + wchar_t wc; + size_t bytes; + int w; + + bytes = mbrtowc (&wc, p, plimit - p, &mbstate); + + if (bytes == (size_t) -1) + /* An invalid multibyte sequence was encountered. */ + { + if (!(flags & MBSW_REJECT_INVALID)) + { + p++; + width++; + break; + } + else + return -1; + } + + if (bytes == (size_t) -2) + /* An incomplete multibyte character at the end. */ + { + if (!(flags & MBSW_REJECT_INVALID)) + { + p = plimit; + width++; + break; + } + else + return -1; + } + + if (bytes == 0) + /* A null wide character was encountered. */ + bytes = 1; + + w = wcwidth (wc); + if (w >= 0) + /* A printable multibyte character. */ + width += w; + else + /* An unprintable multibyte character. */ + if (!(flags & MBSW_REJECT_UNPRINTABLE)) + width += (iswcntrl (wc) ? 0 : 1); + else + return -1; + + p += bytes; + } + while (! mbsinit (&mbstate)); + } + break; + } return width; } -#endif while (p < plimit) { unsigned char c = (unsigned char) *p++; if (isprint (c)) - width++; + width++; else if (!(flags & MBSW_REJECT_UNPRINTABLE)) - width += (iscntrl (c) ? 0 : 1); + width += (iscntrl (c) ? 0 : 1); else - return -1; + return -1; } return width; } diff -Nru gettext-0.17/gettext-tools/libgettextpo/mbswidth.h gettext-0.18.1.1/gettext-tools/libgettextpo/mbswidth.h --- gettext-0.17/gettext-tools/libgettextpo/mbswidth.h 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/mbswidth.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a string. - Copyright (C) 2000-2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2000-2004, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ /* If this bit is set, return -1 upon finding a non-printable character. Otherwise, assume unprintable characters have width 0 if they are control characters and 1 otherwise. */ -#define MBSW_REJECT_UNPRINTABLE 2 +#define MBSW_REJECT_UNPRINTABLE 2 /* Returns the number of screen columns needed for STRING. */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/memchr.c gettext-0.18.1.1/gettext-tools/libgettextpo/memchr.c --- gettext-0.17/gettext-tools/libgettextpo/memchr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/memchr.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,172 @@ +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2010 + Free Software Foundation, Inc. + + Based on strlen implementation by Torbjorn Granlund (tege@sics.se), + with help from Dan Sahlin (dan@sics.se) and + commentary by Jim Blandy (jimb@ai.mit.edu); + adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), + and implemented by Roland McGrath (roland@ai.mit.edu). + +NOTE: The canonical source of this file is maintained with the GNU C Library. +Bugs can be reported to bug-glibc@prep.ai.mit.edu. + +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 3 of the License, or any +later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . */ + +#ifndef _LIBC +# include +#endif + +#include + +#include + +#if defined _LIBC +# include +#else +# define reg_char char +#endif + +#include + +#if HAVE_BP_SYM_H || defined _LIBC +# include +#else +# define BP_SYM(sym) sym +#endif + +#undef __memchr +#ifdef _LIBC +# undef memchr +#endif + +#ifndef weak_alias +# define __memchr memchr +#endif + +/* Search no more than N bytes of S for C. */ +void * +__memchr (void const *s, int c_in, size_t n) +{ + /* On 32-bit hardware, choosing longword to be a 32-bit unsigned + long instead of a 64-bit uintmax_t tends to give better + performance. On 64-bit hardware, unsigned long is generally 64 + bits already. Change this typedef to experiment with + performance. */ + typedef unsigned long int longword; + + const unsigned char *char_ptr; + const longword *longword_ptr; + longword repeated_one; + longword repeated_c; + unsigned reg_char c; + + c = (unsigned char) c_in; + + /* Handle the first few bytes by reading one byte at a time. + Do this until CHAR_PTR is aligned on a longword boundary. */ + for (char_ptr = (const unsigned char *) s; + n > 0 && (size_t) char_ptr % sizeof (longword) != 0; + --n, ++char_ptr) + if (*char_ptr == c) + return (void *) char_ptr; + + longword_ptr = (const longword *) char_ptr; + + /* All these elucidatory comments refer to 4-byte longwords, + but the theory applies equally well to any size longwords. */ + + /* Compute auxiliary longword values: + repeated_one is a value which has a 1 in every byte. + repeated_c has c in every byte. */ + repeated_one = 0x01010101; + repeated_c = c | (c << 8); + repeated_c |= repeated_c << 16; + if (0xffffffffU < (longword) -1) + { + repeated_one |= repeated_one << 31 << 1; + repeated_c |= repeated_c << 31 << 1; + if (8 < sizeof (longword)) + { + size_t i; + + for (i = 64; i < sizeof (longword) * 8; i *= 2) + { + repeated_one |= repeated_one << i; + repeated_c |= repeated_c << i; + } + } + } + + /* Instead of the traditional loop which tests each byte, we will test a + longword at a time. The tricky part is testing if *any of the four* + bytes in the longword in question are equal to c. We first use an xor + with repeated_c. This reduces the task to testing whether *any of the + four* bytes in longword1 is zero. + + We compute tmp = + ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). + That is, we perform the following operations: + 1. Subtract repeated_one. + 2. & ~longword1. + 3. & a mask consisting of 0x80 in every byte. + Consider what happens in each byte: + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, + and step 3 transforms it into 0x80. A carry can also be propagated + to more significant bytes. + - If a byte of longword1 is nonzero, let its lowest 1 bit be at + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, + the byte ends in a single bit of value 0 and k bits of value 1. + After step 2, the result is just k bits of value 1: 2^k - 1. After + step 3, the result is 0. And no carry is produced. + So, if longword1 has only non-zero bytes, tmp is zero. + Whereas if longword1 has a zero byte, call j the position of the least + significant zero byte. Then the result has a zero at positions 0, ..., + j-1 and a 0x80 at position j. We cannot predict the result at the more + significant bytes (positions j+1..3), but it does not matter since we + already have a non-zero bit at position 8*j+7. + + So, the test whether any byte in longword1 is zero is equivalent to + testing whether tmp is nonzero. */ + + while (n >= sizeof (longword)) + { + longword longword1 = *longword_ptr ^ repeated_c; + + if ((((longword1 - repeated_one) & ~longword1) + & (repeated_one << 7)) != 0) + break; + longword_ptr++; + n -= sizeof (longword); + } + + char_ptr = (const unsigned char *) longword_ptr; + + /* At this point, we know that either n < sizeof (longword), or one of the + sizeof (longword) bytes starting at char_ptr is == c. On little-endian + machines, we could determine the first such byte without any further + memory accesses, just by looking at the tmp result from the last loop + iteration. But this does not work on big-endian machines. Choose code + that works in both cases. */ + + for (; n > 0; --n, ++char_ptr) + { + if (*char_ptr == c) + return (void *) char_ptr; + } + + return NULL; +} +#ifdef weak_alias +weak_alias (__memchr, BP_SYM (memchr)) +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/memchr.valgrind gettext-0.18.1.1/gettext-tools/libgettextpo/memchr.valgrind --- gettext-0.17/gettext-tools/libgettextpo/memchr.valgrind 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/memchr.valgrind 2009-07-19 20:30:11.000000000 +0000 @@ -0,0 +1,14 @@ +# Suppress a valgrind message about use of uninitialized memory in memchr(). +# POSIX states that when the character is found, memchr must not read extra +# bytes in an overestimated length (for example, where memchr is used to +# implement strnlen). However, we use a safe word read to provide a speedup. +{ + memchr-value4 + Memcheck:Value4 + fun:rpl_memchr +} +{ + memchr-value8 + Memcheck:Value8 + fun:rpl_memchr +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/minmax.h gettext-0.18.1.1/gettext-tools/libgettextpo/minmax.h --- gettext-0.17/gettext-tools/libgettextpo/minmax.h 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/minmax.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,9 +1,10 @@ /* MIN, MAX macros. - Copyright (C) 1995, 1998, 2001, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 2001, 2003, 2005, 2009, 2010 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/moo.h gettext-0.18.1.1/gettext-tools/libgettextpo/moo.h --- gettext-0.17/gettext-tools/libgettextpo/moo.h 2007-10-31 12:38:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/moo.h 2009-07-19 20:30:11.000000000 +0000 @@ -4,7 +4,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/obstack.c gettext-0.18.1.1/gettext-tools/libgettextpo/obstack.c --- gettext-0.17/gettext-tools/libgettextpo/obstack.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/obstack.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,7 +1,7 @@ /* obstack.c - subroutines used implicitly by object stack macros - Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software + Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ -#include /* Random thing to get __GNU_LIBRARY__. */ +#include /* Random thing to get __GNU_LIBRARY__. */ #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 # include # if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION @@ -141,9 +141,9 @@ int _obstack_begin (struct obstack *h, - int size, int alignment, - void *(*chunkfun) (long), - void (*freefun) (void *)) + int size, int alignment, + void *(*chunkfun) (long), + void (*freefun) (void *)) { register struct _obstack_chunk *chunk; /* points to new chunk */ @@ -153,16 +153,16 @@ /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. - Use the values for range checking, because if range checking is off, - the extra bytes won't be missed terribly, but if range checking is on - and we used a larger request, a whole extra 4096 bytes would be - allocated. + Use the values for range checking, because if range checking is off, + the extra bytes won't be missed terribly, but if range checking is on + and we used a larger request, a whole extra 4096 bytes would be + allocated. - These number are irrelevant to the new GNU malloc. I suspect it is - less sensitive to the size of the request. */ + These number are irrelevant to the new GNU malloc. I suspect it is + less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) - + 4 + DEFAULT_ROUNDING - 1) - & ~(DEFAULT_ROUNDING - 1)); + + 4 + DEFAULT_ROUNDING - 1) + & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } @@ -176,7 +176,7 @@ if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, - alignment - 1); + alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; @@ -188,9 +188,9 @@ int _obstack_begin_1 (struct obstack *h, int size, int alignment, - void *(*chunkfun) (void *, long), - void (*freefun) (void *, void *), - void *arg) + void *(*chunkfun) (void *, long), + void (*freefun) (void *, void *), + void *arg) { register struct _obstack_chunk *chunk; /* points to new chunk */ @@ -200,16 +200,16 @@ /* Default size is what GNU malloc can fit in a 4096-byte block. */ { /* 12 is sizeof (mhead) and 4 is EXTRA from GNU malloc. - Use the values for range checking, because if range checking is off, - the extra bytes won't be missed terribly, but if range checking is on - and we used a larger request, a whole extra 4096 bytes would be - allocated. + Use the values for range checking, because if range checking is off, + the extra bytes won't be missed terribly, but if range checking is on + and we used a larger request, a whole extra 4096 bytes would be + allocated. - These number are irrelevant to the new GNU malloc. I suspect it is - less sensitive to the size of the request. */ + These number are irrelevant to the new GNU malloc. I suspect it is + less sensitive to the size of the request. */ int extra = ((((12 + DEFAULT_ROUNDING - 1) & ~(DEFAULT_ROUNDING - 1)) - + 4 + DEFAULT_ROUNDING - 1) - & ~(DEFAULT_ROUNDING - 1)); + + 4 + DEFAULT_ROUNDING - 1) + & ~(DEFAULT_ROUNDING - 1)); size = 4096 - extra; } @@ -224,7 +224,7 @@ if (!chunk) (*obstack_alloc_failed_handler) (); h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, - alignment - 1); + alignment - 1); h->chunk_limit = chunk->limit = (char *) chunk + h->chunk_size; chunk->prev = 0; @@ -245,7 +245,7 @@ { register struct _obstack_chunk *old_chunk = h->chunk; register struct _obstack_chunk *new_chunk; - register long new_size; + register long new_size; register long obj_size = h->next_free - h->object_base; register long i; long already; @@ -274,12 +274,12 @@ if (h->alignment_mask + 1 >= DEFAULT_ALIGNMENT) { for (i = obj_size / sizeof (COPYING_UNIT) - 1; - i >= 0; i--) - ((COPYING_UNIT *)object_base)[i] - = ((COPYING_UNIT *)h->object_base)[i]; + i >= 0; i--) + ((COPYING_UNIT *)object_base)[i] + = ((COPYING_UNIT *)h->object_base)[i]; /* We used to copy the odd few remaining bytes as one extra COPYING_UNIT, - but that can cross a page boundary on a machine - which does not do strict alignment for COPYING_UNITS. */ + but that can cross a page boundary on a machine + which does not do strict alignment for COPYING_UNITS. */ already = obj_size / sizeof (COPYING_UNIT) * sizeof (COPYING_UNIT); } else @@ -293,8 +293,8 @@ But not if that chunk might contain an empty object. */ if (! h->maybe_empty_object && (h->object_base - == __PTR_ALIGN ((char *) old_chunk, old_chunk->contents, - h->alignment_mask))) + == __PTR_ALIGN ((char *) old_chunk, old_chunk->contents, + h->alignment_mask))) { new_chunk->prev = old_chunk->prev; CALL_FREEFUN (h, old_chunk); @@ -320,8 +320,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj) { - register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - register struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = (h)->chunk; /* We use >= rather than > since the object cannot be exactly at @@ -343,8 +343,8 @@ void __obstack_free (struct obstack *h, void *obj) { - register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - register struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = h->chunk; /* We use >= because there cannot be an object at the beginning of a chunk. @@ -356,7 +356,7 @@ CALL_FREEFUN (h, lp); lp = plp; /* If we switch chunks, we can't tell whether the new current - chunk contains an empty object, so assume that it may. */ + chunk contains an empty object, so assume that it may. */ h->maybe_empty_object = 1; } if (lp) @@ -427,4 +427,4 @@ exit (obstack_exit_failure); } -#endif /* !ELIDE_CODE */ +#endif /* !ELIDE_CODE */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/obstack.h gettext-0.18.1.1/gettext-tools/libgettextpo/obstack.h --- gettext-0.17/gettext-tools/libgettextpo/obstack.h 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/obstack.h 2010-03-28 18:33:19.000000000 +0000 @@ -1,6 +1,6 @@ /* obstack.h - object stack macros - Copyright (C) 1988-1994,1996-1999,2003,2004,2005,2006 - Free Software Foundation, Inc. + Copyright (C) 1988-1994, 1996-1999, 2003-2006, 2009-2010 Free Software + Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -85,17 +85,17 @@ break the ordinary 'growth' macro. Summary: - We allocate large chunks. - We carve out one object at a time from the current chunk. - Once carved, an object never moves. - We are free to append data of any size to the currently - growing object. - Exactly one object is growing in an obstack at any one time. - You can run one obstack per control block. - You may have as many control blocks as you dare. - Because of the way we do it, you can `unwind' an obstack - back to a previous state. (You may remove objects much - as you would with a stack.) + We allocate large chunks. + We carve out one object at a time from the current chunk. + Once carved, an object never moves. + We are free to append data of any size to the currently + growing object. + Exactly one object is growing in an obstack at any one time. + You can run one obstack per control block. + You may have as many control blocks as you dare. + Because of the way we do it, you can `unwind' an obstack + back to a previous state. (You may remove objects much + as you would with a stack.) */ @@ -103,10 +103,6 @@ #ifndef _OBSTACK_H #define _OBSTACK_H 1 - -#ifdef __cplusplus -extern "C" { -#endif /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the @@ -133,56 +129,60 @@ relative to B. Otherwise, use the faster strategy of computing the alignment relative to 0. */ -#define __PTR_ALIGN(B, P, A) \ +#define __PTR_ALIGN(B, P, A) \ __BPTR_ALIGN (sizeof (PTR_INT_TYPE) < sizeof (void *) ? (B) : (char *) 0, \ - P, A) + P, A) #include -struct _obstack_chunk /* Lives at front of each chunk. */ +#ifdef __cplusplus +extern "C" { +#endif + +struct _obstack_chunk /* Lives at front of each chunk. */ { - char *limit; /* 1 past end of this chunk */ - struct _obstack_chunk *prev; /* address of prior chunk or NULL */ - char contents[4]; /* objects begin here */ + char *limit; /* 1 past end of this chunk */ + struct _obstack_chunk *prev; /* address of prior chunk or NULL */ + char contents[4]; /* objects begin here */ }; -struct obstack /* control current object in current chunk */ +struct obstack /* control current object in current chunk */ { - long chunk_size; /* preferred size to allocate chunks in */ - struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ - char *object_base; /* address of object we are building */ - char *next_free; /* where to add next char to current object */ - char *chunk_limit; /* address of char after current chunk */ + long chunk_size; /* preferred size to allocate chunks in */ + struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ + char *object_base; /* address of object we are building */ + char *next_free; /* where to add next char to current object */ + char *chunk_limit; /* address of char after current chunk */ union { PTR_INT_TYPE tempint; void *tempptr; - } temp; /* Temporary for some macros. */ - int alignment_mask; /* Mask of alignment for each object. */ + } temp; /* Temporary for some macros. */ + int alignment_mask; /* Mask of alignment for each object. */ /* These prototypes vary based on `use_extra_arg', and we use casts to the prototypeless function type in all assignments, but having prototypes here quiets -Wstrict-prototypes. */ struct _obstack_chunk *(*chunkfun) (void *, long); void (*freefun) (void *, struct _obstack_chunk *); - void *extra_arg; /* first arg for chunk alloc/dealloc funcs */ - unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */ + void *extra_arg; /* first arg for chunk alloc/dealloc funcs */ + unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */ unsigned maybe_empty_object:1;/* There is a possibility that the current - chunk contains a zero-length object. This - prevents freeing the chunk if we allocate - a bigger chunk to replace it. */ - unsigned alloc_failed:1; /* No longer used, as we now call the failed - handler on error, but retained for binary - compatibility. */ + chunk contains a zero-length object. This + prevents freeing the chunk if we allocate + a bigger chunk to replace it. */ + unsigned alloc_failed:1; /* No longer used, as we now call the failed + handler on error, but retained for binary + compatibility. */ }; /* Declare the external functions we use; they are in obstack.c. */ extern void _obstack_newchunk (struct obstack *, int); extern int _obstack_begin (struct obstack *, int, int, - void *(*) (long), void (*) (void *)); + void *(*) (long), void (*) (void *)); extern int _obstack_begin_1 (struct obstack *, int, int, - void *(*) (void *, long), - void (*) (void *, void *), void *); + void *(*) (void *, long), + void (*) (void *, void *), void *); extern int _obstack_memory_used (struct obstack *); /* The default name of the function for freeing a chunk is 'obstack_free', @@ -214,32 +214,32 @@ /* Pointer to next byte not yet allocated in current chunk. */ -#define obstack_next_free(h) ((h)->next_free) +#define obstack_next_free(h) ((h)->next_free) /* Mask specifying low bits that should be clear in address of an object. */ #define obstack_alignment_mask(h) ((h)->alignment_mask) /* To prevent prototype warnings provide complete argument list. */ -#define obstack_init(h) \ - _obstack_begin ((h), 0, 0, \ - (void *(*) (long)) obstack_chunk_alloc, \ - (void (*) (void *)) obstack_chunk_free) - -#define obstack_begin(h, size) \ - _obstack_begin ((h), (size), 0, \ - (void *(*) (long)) obstack_chunk_alloc, \ - (void (*) (void *)) obstack_chunk_free) +#define obstack_init(h) \ + _obstack_begin ((h), 0, 0, \ + (void *(*) (long)) obstack_chunk_alloc, \ + (void (*) (void *)) obstack_chunk_free) + +#define obstack_begin(h, size) \ + _obstack_begin ((h), (size), 0, \ + (void *(*) (long)) obstack_chunk_alloc, \ + (void (*) (void *)) obstack_chunk_free) #define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \ - _obstack_begin ((h), (size), (alignment), \ - (void *(*) (long)) (chunkfun), \ - (void (*) (void *)) (freefun)) + _obstack_begin ((h), (size), (alignment), \ + (void *(*) (long)) (chunkfun), \ + (void (*) (void *)) (freefun)) #define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \ - _obstack_begin_1 ((h), (size), (alignment), \ - (void *(*) (void *, long)) (chunkfun), \ - (void (*) (void *, void *)) (freefun), (arg)) + _obstack_begin_1 ((h), (size), (alignment), \ + (void *(*) (void *, long)) (chunkfun), \ + (void (*) (void *, void *)) (freefun), (arg)) #define obstack_chunkfun(h, newchunkfun) \ ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun)) @@ -266,143 +266,143 @@ without using a global variable. Also, we can avoid using the `temp' slot, to make faster code. */ -# define obstack_object_size(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ +# define obstack_object_size(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->next_free - __o->object_base); }) -# define obstack_room(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ +# define obstack_room(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ (unsigned) (__o->chunk_limit - __o->next_free); }) -# define obstack_make_room(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->chunk_limit - __o->next_free < __len) \ - _obstack_newchunk (__o, __len); \ +# define obstack_make_room(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->chunk_limit - __o->next_free < __len) \ + _obstack_newchunk (__o, __len); \ (void) 0; }) -# define obstack_empty_p(OBSTACK) \ - __extension__ \ - ({ struct obstack const *__o = (OBSTACK); \ - (__o->chunk->prev == 0 \ - && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \ - __o->chunk->contents, \ - __o->alignment_mask)); }) - -# define obstack_grow(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->next_free + __len > __o->chunk_limit) \ - _obstack_newchunk (__o, __len); \ - memcpy (__o->next_free, where, __len); \ - __o->next_free += __len; \ +# define obstack_empty_p(OBSTACK) \ + __extension__ \ + ({ struct obstack const *__o = (OBSTACK); \ + (__o->chunk->prev == 0 \ + && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \ + __o->chunk->contents, \ + __o->alignment_mask)); }) + +# define obstack_grow(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->next_free + __len > __o->chunk_limit) \ + _obstack_newchunk (__o, __len); \ + memcpy (__o->next_free, where, __len); \ + __o->next_free += __len; \ (void) 0; }) -# define obstack_grow0(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->next_free + __len + 1 > __o->chunk_limit) \ - _obstack_newchunk (__o, __len + 1); \ - memcpy (__o->next_free, where, __len); \ - __o->next_free += __len; \ - *(__o->next_free)++ = 0; \ +# define obstack_grow0(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->next_free + __len + 1 > __o->chunk_limit) \ + _obstack_newchunk (__o, __len + 1); \ + memcpy (__o->next_free, where, __len); \ + __o->next_free += __len; \ + *(__o->next_free)++ = 0; \ (void) 0; }) -# define obstack_1grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + 1 > __o->chunk_limit) \ - _obstack_newchunk (__o, 1); \ - obstack_1grow_fast (__o, datum); \ +# define obstack_1grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + 1 > __o->chunk_limit) \ + _obstack_newchunk (__o, 1); \ + obstack_1grow_fast (__o, datum); \ (void) 0; }) /* These assume that the obstack alignment is good enough for pointers or ints, and that the data added so far to the current object shares that much alignment. */ -# define obstack_ptr_grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ - _obstack_newchunk (__o, sizeof (void *)); \ - obstack_ptr_grow_fast (__o, datum); }) \ - -# define obstack_int_grow(OBSTACK,datum) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - if (__o->next_free + sizeof (int) > __o->chunk_limit) \ - _obstack_newchunk (__o, sizeof (int)); \ +# define obstack_ptr_grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (void *) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (void *)); \ + obstack_ptr_grow_fast (__o, datum); }) \ + +# define obstack_int_grow(OBSTACK,datum) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + if (__o->next_free + sizeof (int) > __o->chunk_limit) \ + _obstack_newchunk (__o, sizeof (int)); \ obstack_int_grow_fast (__o, datum); }) -# define obstack_ptr_grow_fast(OBSTACK,aptr) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - *(const void **) __o1->next_free = (aptr); \ - __o1->next_free += sizeof (const void *); \ +# define obstack_ptr_grow_fast(OBSTACK,aptr) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + *(const void **) __o1->next_free = (aptr); \ + __o1->next_free += sizeof (const void *); \ (void) 0; }) -# define obstack_int_grow_fast(OBSTACK,aint) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - *(int *) __o1->next_free = (aint); \ - __o1->next_free += sizeof (int); \ +# define obstack_int_grow_fast(OBSTACK,aint) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + *(int *) __o1->next_free = (aint); \ + __o1->next_free += sizeof (int); \ (void) 0; }) -# define obstack_blank(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - int __len = (length); \ - if (__o->chunk_limit - __o->next_free < __len) \ - _obstack_newchunk (__o, __len); \ - obstack_blank_fast (__o, __len); \ +# define obstack_blank(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + int __len = (length); \ + if (__o->chunk_limit - __o->next_free < __len) \ + _obstack_newchunk (__o, __len); \ + obstack_blank_fast (__o, __len); \ (void) 0; }) -# define obstack_alloc(OBSTACK,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_blank (__h, (length)); \ +# define obstack_alloc(OBSTACK,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_blank (__h, (length)); \ obstack_finish (__h); }) -# define obstack_copy(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_grow (__h, (where), (length)); \ +# define obstack_copy(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_grow (__h, (where), (length)); \ obstack_finish (__h); }) -# define obstack_copy0(OBSTACK,where,length) \ -__extension__ \ -({ struct obstack *__h = (OBSTACK); \ - obstack_grow0 (__h, (where), (length)); \ +# define obstack_copy0(OBSTACK,where,length) \ +__extension__ \ +({ struct obstack *__h = (OBSTACK); \ + obstack_grow0 (__h, (where), (length)); \ obstack_finish (__h); }) /* The local variable is named __o1 to avoid a name conflict when obstack_blank is called. */ -# define obstack_finish(OBSTACK) \ -__extension__ \ -({ struct obstack *__o1 = (OBSTACK); \ - void *__value = (void *) __o1->object_base; \ - if (__o1->next_free == __value) \ - __o1->maybe_empty_object = 1; \ - __o1->next_free \ - = __PTR_ALIGN (__o1->object_base, __o1->next_free, \ - __o1->alignment_mask); \ - if (__o1->next_free - (char *)__o1->chunk \ - > __o1->chunk_limit - (char *)__o1->chunk) \ - __o1->next_free = __o1->chunk_limit; \ - __o1->object_base = __o1->next_free; \ +# define obstack_finish(OBSTACK) \ +__extension__ \ +({ struct obstack *__o1 = (OBSTACK); \ + void *__value = (void *) __o1->object_base; \ + if (__o1->next_free == __value) \ + __o1->maybe_empty_object = 1; \ + __o1->next_free \ + = __PTR_ALIGN (__o1->object_base, __o1->next_free, \ + __o1->alignment_mask); \ + if (__o1->next_free - (char *)__o1->chunk \ + > __o1->chunk_limit - (char *)__o1->chunk) \ + __o1->next_free = __o1->chunk_limit; \ + __o1->object_base = __o1->next_free; \ __value; }) -# define obstack_free(OBSTACK, OBJ) \ -__extension__ \ -({ struct obstack *__o = (OBSTACK); \ - void *__obj = (OBJ); \ +# define obstack_free(OBSTACK, OBJ) \ +__extension__ \ +({ struct obstack *__o = (OBSTACK); \ + void *__obj = (OBJ); \ if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \ - __o->next_free = __o->object_base = (char *)__obj; \ + __o->next_free = __o->object_base = (char *)__obj; \ else (__obstack_free) (__o, __obj); }) #else /* not __GNUC__ or not __STDC__ */ @@ -410,14 +410,14 @@ # define obstack_object_size(h) \ (unsigned) ((h)->next_free - (h)->object_base) -# define obstack_room(h) \ +# define obstack_room(h) \ (unsigned) ((h)->chunk_limit - (h)->next_free) # define obstack_empty_p(h) \ - ((h)->chunk->prev == 0 \ - && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \ - (h)->chunk->contents, \ - (h)->alignment_mask)) + ((h)->chunk->prev == 0 \ + && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \ + (h)->chunk->contents, \ + (h)->alignment_mask)) /* Note that the call to _obstack_newchunk is enclosed in (..., 0) so that we can avoid having void expressions @@ -425,88 +425,88 @@ Casting the third operand to void was tried before, but some compilers won't accept it. */ -# define obstack_make_room(h,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ +# define obstack_make_room(h,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0)) -# define obstack_grow(h,where,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ - memcpy ((h)->next_free, where, (h)->temp.tempint), \ +# define obstack_grow(h,where,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ + memcpy ((h)->next_free, where, (h)->temp.tempint), \ (h)->next_free += (h)->temp.tempint) -# define obstack_grow0(h,where,length) \ -( (h)->temp.tempint = (length), \ - (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \ - memcpy ((h)->next_free, where, (h)->temp.tempint), \ - (h)->next_free += (h)->temp.tempint, \ +# define obstack_grow0(h,where,length) \ +( (h)->temp.tempint = (length), \ + (((h)->next_free + (h)->temp.tempint + 1 > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint + 1), 0) : 0), \ + memcpy ((h)->next_free, where, (h)->temp.tempint), \ + (h)->next_free += (h)->temp.tempint, \ *((h)->next_free)++ = 0) -# define obstack_1grow(h,datum) \ -( (((h)->next_free + 1 > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), 1), 0) : 0), \ +# define obstack_1grow(h,datum) \ +( (((h)->next_free + 1 > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), 1), 0) : 0), \ obstack_1grow_fast (h, datum)) -# define obstack_ptr_grow(h,datum) \ -( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ +# define obstack_ptr_grow(h,datum) \ +( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \ obstack_ptr_grow_fast (h, datum)) -# define obstack_int_grow(h,datum) \ -( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ - ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ +# define obstack_int_grow(h,datum) \ +( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \ + ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \ obstack_int_grow_fast (h, datum)) -# define obstack_ptr_grow_fast(h,aptr) \ +# define obstack_ptr_grow_fast(h,aptr) \ (((const void **) ((h)->next_free += sizeof (void *)))[-1] = (aptr)) -# define obstack_int_grow_fast(h,aint) \ +# define obstack_int_grow_fast(h,aint) \ (((int *) ((h)->next_free += sizeof (int)))[-1] = (aint)) -# define obstack_blank(h,length) \ -( (h)->temp.tempint = (length), \ - (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \ - ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ +# define obstack_blank(h,length) \ +( (h)->temp.tempint = (length), \ + (((h)->chunk_limit - (h)->next_free < (h)->temp.tempint) \ + ? (_obstack_newchunk ((h), (h)->temp.tempint), 0) : 0), \ obstack_blank_fast (h, (h)->temp.tempint)) -# define obstack_alloc(h,length) \ +# define obstack_alloc(h,length) \ (obstack_blank ((h), (length)), obstack_finish ((h))) -# define obstack_copy(h,where,length) \ +# define obstack_copy(h,where,length) \ (obstack_grow ((h), (where), (length)), obstack_finish ((h))) -# define obstack_copy0(h,where,length) \ +# define obstack_copy0(h,where,length) \ (obstack_grow0 ((h), (where), (length)), obstack_finish ((h))) -# define obstack_finish(h) \ -( ((h)->next_free == (h)->object_base \ - ? (((h)->maybe_empty_object = 1), 0) \ - : 0), \ - (h)->temp.tempptr = (h)->object_base, \ - (h)->next_free \ - = __PTR_ALIGN ((h)->object_base, (h)->next_free, \ - (h)->alignment_mask), \ - (((h)->next_free - (char *) (h)->chunk \ - > (h)->chunk_limit - (char *) (h)->chunk) \ - ? ((h)->next_free = (h)->chunk_limit) : 0), \ - (h)->object_base = (h)->next_free, \ +# define obstack_finish(h) \ +( ((h)->next_free == (h)->object_base \ + ? (((h)->maybe_empty_object = 1), 0) \ + : 0), \ + (h)->temp.tempptr = (h)->object_base, \ + (h)->next_free \ + = __PTR_ALIGN ((h)->object_base, (h)->next_free, \ + (h)->alignment_mask), \ + (((h)->next_free - (char *) (h)->chunk \ + > (h)->chunk_limit - (char *) (h)->chunk) \ + ? ((h)->next_free = (h)->chunk_limit) : 0), \ + (h)->object_base = (h)->next_free, \ (h)->temp.tempptr) -# define obstack_free(h,obj) \ -( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \ - ((((h)->temp.tempint > 0 \ - && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \ - ? (int) ((h)->next_free = (h)->object_base \ - = (h)->temp.tempint + (char *) (h)->chunk) \ +# define obstack_free(h,obj) \ +( (h)->temp.tempint = (char *) (obj) - (char *) (h)->chunk, \ + ((((h)->temp.tempint > 0 \ + && (h)->temp.tempint < (h)->chunk_limit - (char *) (h)->chunk)) \ + ? (int) ((h)->next_free = (h)->object_base \ + = (h)->temp.tempint + (char *) (h)->chunk) \ : (((__obstack_free) ((h), (h)->temp.tempint + (char *) (h)->chunk), 0), 0))) #endif /* not __GNUC__ or not __STDC__ */ #ifdef __cplusplus -} /* C++ */ +} /* C++ */ #endif #endif /* obstack.h */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/open.c gettext-0.18.1.1/gettext-tools/libgettextpo/open.c --- gettext-0.17/gettext-tools/libgettextpo/open.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/open.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,166 @@ +/* Open a descriptor to a file. + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#include + +/* Get the original definition of open. It might be defined as a macro. */ +#define __need_system_fcntl_h +#include +#undef __need_system_fcntl_h +#include + +static inline int +orig_open (const char *filename, int flags, mode_t mode) +{ + return open (filename, flags, mode); +} + +/* Specification. */ +#include + +#include +#include +#include +#include +#include +#include + +#ifndef REPLACE_OPEN_DIRECTORY +# define REPLACE_OPEN_DIRECTORY 0 +#endif + +int +open (const char *filename, int flags, ...) +{ + mode_t mode; + int fd; + + mode = 0; + if (flags & O_CREAT) + { + va_list arg; + va_start (arg, flags); + + /* We have to use PROMOTED_MODE_T instead of mode_t, otherwise GCC 4 + creates crashing code when 'mode_t' is smaller than 'int'. */ + mode = va_arg (arg, PROMOTED_MODE_T); + + va_end (arg); + } + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + if (strcmp (filename, "/dev/null") == 0) + filename = "NUL"; +#endif + +#if OPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR + is specified, then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file already exists as a directory, then + - if O_CREAT is specified, open() must fail because of the semantics + of O_CREAT, + - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX + says that it + fails with errno = EISDIR in this case. + If the named file does not exist or does not name a directory, then + - if O_CREAT is specified, open() must fail since open() cannot create + directories, + - if O_WRONLY or O_RDWR is specified, open() must fail because the + file does not contain a '.' directory. */ + if (flags & (O_CREAT | O_WRONLY | O_RDWR)) + { + size_t len = strlen (filename); + if (len > 0 && filename[len - 1] == '/') + { + errno = EISDIR; + return -1; + } + } +#endif + + fd = orig_open (filename, flags, mode); + +#if REPLACE_FCHDIR + /* Implementing fchdir and fdopendir requires the ability to open a + directory file descriptor. If open doesn't support that (as on + mingw), we use a dummy file that behaves the same as directories + on Linux (ie. always reports EOF on attempts to read()), and + override fstat() in fchdir.c to hide the fact that we have a + dummy. */ + if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES + && (flags & O_ACCMODE) == O_RDONLY) + { + struct stat statbuf; + if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) + { + /* Maximum recursion depth of 1. */ + fd = open ("/dev/null", flags, mode); + if (0 <= fd) + fd = _gl_register_fd (fd, filename); + } + else + errno = EACCES; + } +#endif + +#if OPEN_TRAILING_SLASH_BUG + /* If the filename ends in a slash and fd does not refer to a directory, + then fail. + Rationale: POSIX + says that + "A pathname that contains at least one non-slash character and that + ends with one or more trailing slashes shall be resolved as if a + single dot character ( '.' ) were appended to the pathname." + and + "The special filename dot shall refer to the directory specified by + its predecessor." + If the named file without the slash is not a directory, open() must fail + with ENOTDIR. */ + if (fd >= 0) + { + /* We know len is positive, since open did not fail with ENOENT. */ + size_t len = strlen (filename); + if (filename[len - 1] == '/') + { + struct stat statbuf; + + if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) + { + close (fd); + errno = ENOTDIR; + return -1; + } + } + } +#endif + +#if REPLACE_FCHDIR + if (!REPLACE_OPEN_DIRECTORY && 0 <= fd) + fd = _gl_register_fd (fd, filename); +#endif + + return fd; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/ostream.c gettext-0.18.1.1/gettext-tools/libgettextpo/ostream.c --- gettext-0.17/gettext-tools/libgettextpo/ostream.c 2007-10-07 21:03:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/ostream.c 2010-06-06 18:38:19.000000000 +0000 @@ -47,6 +47,7 @@ #endif #line 50 "ostream.c" +void ostream__write_mem (ostream_t first_arg, const void *data, size_t len); void ostream__write_mem (ostream_t first_arg, const void *data, size_t len) { @@ -57,6 +58,7 @@ #endif } +void ostream__flush (ostream_t first_arg); void ostream__flush (ostream_t first_arg) { @@ -67,6 +69,7 @@ #endif } +void ostream__free (ostream_t first_arg); void ostream__free (ostream_t first_arg) { diff -Nru gettext-0.17/gettext-tools/libgettextpo/printf-args.c gettext-0.18.1.1/gettext-tools/libgettextpo/printf-args.c --- gettext-0.17/gettext-tools/libgettextpo/printf-args.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/printf-args.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,188 @@ +/* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2010 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This file can be parametrized with the following macros: + ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. + PRINTF_FETCHARGS Name of the function to be defined. + STATIC Set to 'static' to declare the function static. */ + +#ifndef PRINTF_FETCHARGS +# include +#endif + +/* Specification. */ +#ifndef PRINTF_FETCHARGS +# include "printf-args.h" +#endif + +#ifdef STATIC +STATIC +#endif +int +PRINTF_FETCHARGS (va_list args, arguments *a) +{ + size_t i; + argument *ap; + + for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) + switch (ap->type) + { + case TYPE_SCHAR: + ap->a.a_schar = va_arg (args, /*signed char*/ int); + break; + case TYPE_UCHAR: + ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); + break; + case TYPE_SHORT: + ap->a.a_short = va_arg (args, /*short*/ int); + break; + case TYPE_USHORT: + ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); + break; + case TYPE_INT: + ap->a.a_int = va_arg (args, int); + break; + case TYPE_UINT: + ap->a.a_uint = va_arg (args, unsigned int); + break; + case TYPE_LONGINT: + ap->a.a_longint = va_arg (args, long int); + break; + case TYPE_ULONGINT: + ap->a.a_ulongint = va_arg (args, unsigned long int); + break; +#if HAVE_LONG_LONG_INT + case TYPE_LONGLONGINT: + ap->a.a_longlongint = va_arg (args, long long int); + break; + case TYPE_ULONGLONGINT: + ap->a.a_ulonglongint = va_arg (args, unsigned long long int); + break; +#endif + case TYPE_DOUBLE: + ap->a.a_double = va_arg (args, double); + break; + case TYPE_LONGDOUBLE: + ap->a.a_longdouble = va_arg (args, long double); + break; + case TYPE_CHAR: + ap->a.a_char = va_arg (args, int); + break; +#if HAVE_WINT_T + case TYPE_WIDE_CHAR: + /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by + default argument promotions", this is not the case in mingw32, + where wint_t is 'unsigned short'. */ + ap->a.a_wide_char = + (sizeof (wint_t) < sizeof (int) + ? (wint_t) va_arg (args, int) + : va_arg (args, wint_t)); + break; +#endif + case TYPE_STRING: + ap->a.a_string = va_arg (args, const char *); + /* A null pointer is an invalid argument for "%s", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_string == NULL) + ap->a.a_string = "(NULL)"; + break; +#if HAVE_WCHAR_T + case TYPE_WIDE_STRING: + ap->a.a_wide_string = va_arg (args, const wchar_t *); + /* A null pointer is an invalid argument for "%ls", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_wide_string == NULL) + { + static const wchar_t wide_null_string[] = + { + (wchar_t)'(', + (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', + (wchar_t)')', + (wchar_t)0 + }; + ap->a.a_wide_string = wide_null_string; + } + break; +#endif + case TYPE_POINTER: + ap->a.a_pointer = va_arg (args, void *); + break; + case TYPE_COUNT_SCHAR_POINTER: + ap->a.a_count_schar_pointer = va_arg (args, signed char *); + break; + case TYPE_COUNT_SHORT_POINTER: + ap->a.a_count_short_pointer = va_arg (args, short *); + break; + case TYPE_COUNT_INT_POINTER: + ap->a.a_count_int_pointer = va_arg (args, int *); + break; + case TYPE_COUNT_LONGINT_POINTER: + ap->a.a_count_longint_pointer = va_arg (args, long int *); + break; +#if HAVE_LONG_LONG_INT + case TYPE_COUNT_LONGLONGINT_POINTER: + ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); + break; +#endif +#if ENABLE_UNISTDIO + /* The unistdio extensions. */ + case TYPE_U8_STRING: + ap->a.a_u8_string = va_arg (args, const uint8_t *); + /* A null pointer is an invalid argument for "%U", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u8_string == NULL) + { + static const uint8_t u8_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u8_string = u8_null_string; + } + break; + case TYPE_U16_STRING: + ap->a.a_u16_string = va_arg (args, const uint16_t *); + /* A null pointer is an invalid argument for "%lU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u16_string == NULL) + { + static const uint16_t u16_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u16_string = u16_null_string; + } + break; + case TYPE_U32_STRING: + ap->a.a_u32_string = va_arg (args, const uint32_t *); + /* A null pointer is an invalid argument for "%llU", but in practice + it occurs quite frequently in printf statements that produce + debug output. Use a fallback in this case. */ + if (ap->a.a_u32_string == NULL) + { + static const uint32_t u32_null_string[] = + { '(', 'N', 'U', 'L', 'L', ')', 0 }; + ap->a.a_u32_string = u32_null_string; + } + break; +#endif + default: + /* Unknown type. */ + return -1; + } + return 0; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/printf-args.h gettext-0.18.1.1/gettext-tools/libgettextpo/printf-args.h --- gettext-0.17/gettext-tools/libgettextpo/printf-args.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/printf-args.h 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,155 @@ +/* Decomposed printf argument list. + Copyright (C) 1999, 2002-2003, 2006-2007, 2009-2010 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _PRINTF_ARGS_H +#define _PRINTF_ARGS_H + +/* This file can be parametrized with the following macros: + ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. + PRINTF_FETCHARGS Name of the function to be declared. + STATIC Set to 'static' to declare the function static. */ + +/* Default parameters. */ +#ifndef PRINTF_FETCHARGS +# define PRINTF_FETCHARGS printf_fetchargs +#endif + +/* Get size_t. */ +#include + +/* Get wchar_t. */ +#if HAVE_WCHAR_T +# include +#endif + +/* Get wint_t. */ +#if HAVE_WINT_T +# include +#endif + +/* Get va_list. */ +#include + + +/* Argument types */ +typedef enum +{ + TYPE_NONE, + TYPE_SCHAR, + TYPE_UCHAR, + TYPE_SHORT, + TYPE_USHORT, + TYPE_INT, + TYPE_UINT, + TYPE_LONGINT, + TYPE_ULONGINT, +#if HAVE_LONG_LONG_INT + TYPE_LONGLONGINT, + TYPE_ULONGLONGINT, +#endif + TYPE_DOUBLE, + TYPE_LONGDOUBLE, + TYPE_CHAR, +#if HAVE_WINT_T + TYPE_WIDE_CHAR, +#endif + TYPE_STRING, +#if HAVE_WCHAR_T + TYPE_WIDE_STRING, +#endif + TYPE_POINTER, + TYPE_COUNT_SCHAR_POINTER, + TYPE_COUNT_SHORT_POINTER, + TYPE_COUNT_INT_POINTER, + TYPE_COUNT_LONGINT_POINTER +#if HAVE_LONG_LONG_INT +, TYPE_COUNT_LONGLONGINT_POINTER +#endif +#if ENABLE_UNISTDIO + /* The unistdio extensions. */ +, TYPE_U8_STRING +, TYPE_U16_STRING +, TYPE_U32_STRING +#endif +} arg_type; + +/* Polymorphic argument */ +typedef struct +{ + arg_type type; + union + { + signed char a_schar; + unsigned char a_uchar; + short a_short; + unsigned short a_ushort; + int a_int; + unsigned int a_uint; + long int a_longint; + unsigned long int a_ulongint; +#if HAVE_LONG_LONG_INT + long long int a_longlongint; + unsigned long long int a_ulonglongint; +#endif + float a_float; + double a_double; + long double a_longdouble; + int a_char; +#if HAVE_WINT_T + wint_t a_wide_char; +#endif + const char* a_string; +#if HAVE_WCHAR_T + const wchar_t* a_wide_string; +#endif + void* a_pointer; + signed char * a_count_schar_pointer; + short * a_count_short_pointer; + int * a_count_int_pointer; + long int * a_count_longint_pointer; +#if HAVE_LONG_LONG_INT + long long int * a_count_longlongint_pointer; +#endif +#if ENABLE_UNISTDIO + /* The unistdio extensions. */ + const uint8_t * a_u8_string; + const uint16_t * a_u16_string; + const uint32_t * a_u32_string; +#endif + } + a; +} +argument; + +typedef struct +{ + size_t count; + argument *arg; +} +arguments; + + +/* Fetch the arguments, putting them into a. */ +#ifdef STATIC +STATIC +#else +extern +#endif +int PRINTF_FETCHARGS (va_list args, arguments *a); + +#endif /* _PRINTF_ARGS_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/printf-parse.c gettext-0.18.1.1/gettext-tools/libgettextpo/printf-parse.c --- gettext-0.17/gettext-tools/libgettextpo/printf-parse.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/printf-parse.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,627 @@ +/* Formatted output to strings. + Copyright (C) 1999-2000, 2002-2003, 2006-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This file can be parametrized with the following macros: + CHAR_T The element type of the format string. + CHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters + in the format string are ASCII. + DIRECTIVE Structure denoting a format directive. + Depends on CHAR_T. + DIRECTIVES Structure denoting the set of format directives of a + format string. Depends on CHAR_T. + PRINTF_PARSE Function that parses a format string. + Depends on CHAR_T. + STATIC Set to 'static' to declare the function static. + ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ + +#ifndef PRINTF_PARSE +# include +#endif + +/* Specification. */ +#ifndef PRINTF_PARSE +# include "printf-parse.h" +#endif + +/* Default parameters. */ +#ifndef PRINTF_PARSE +# define PRINTF_PARSE printf_parse +# define CHAR_T char +# define DIRECTIVE char_directive +# define DIRECTIVES char_directives +#endif + +/* Get size_t, NULL. */ +#include + +/* Get intmax_t. */ +#if defined IN_LIBINTL || defined IN_LIBASPRINTF +# if HAVE_STDINT_H_WITH_UINTMAX +# include +# endif +# if HAVE_INTTYPES_H_WITH_UINTMAX +# include +# endif +#else +# include +#endif + +/* malloc(), realloc(), free(). */ +#include + +/* errno. */ +#include + +/* Checked size_t computations. */ +#include "xsize.h" + +#if CHAR_T_ONLY_ASCII +/* c_isascii(). */ +# include "c-ctype.h" +#endif + +#ifdef STATIC +STATIC +#endif +int +PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) +{ + const CHAR_T *cp = format; /* pointer into format */ + size_t arg_posn = 0; /* number of regular arguments consumed */ + size_t d_allocated; /* allocated elements of d->dir */ + size_t a_allocated; /* allocated elements of a->arg */ + size_t max_width_length = 0; + size_t max_precision_length = 0; + + d->count = 0; + d_allocated = 1; + d->dir = (DIRECTIVE *) malloc (d_allocated * sizeof (DIRECTIVE)); + if (d->dir == NULL) + /* Out of memory. */ + goto out_of_memory_1; + + a->count = 0; + a_allocated = 0; + a->arg = NULL; + +#define REGISTER_ARG(_index_,_type_) \ + { \ + size_t n = (_index_); \ + if (n >= a_allocated) \ + { \ + size_t memory_size; \ + argument *memory; \ + \ + a_allocated = xtimes (a_allocated, 2); \ + if (a_allocated <= n) \ + a_allocated = xsum (n, 1); \ + memory_size = xtimes (a_allocated, sizeof (argument)); \ + if (size_overflow_p (memory_size)) \ + /* Overflow, would lead to out of memory. */ \ + goto out_of_memory; \ + memory = (argument *) (a->arg \ + ? realloc (a->arg, memory_size) \ + : malloc (memory_size)); \ + if (memory == NULL) \ + /* Out of memory. */ \ + goto out_of_memory; \ + a->arg = memory; \ + } \ + while (a->count <= n) \ + a->arg[a->count++].type = TYPE_NONE; \ + if (a->arg[n].type == TYPE_NONE) \ + a->arg[n].type = (_type_); \ + else if (a->arg[n].type != (_type_)) \ + /* Ambiguous type for positional argument. */ \ + goto error; \ + } + + while (*cp != '\0') + { + CHAR_T c = *cp++; + if (c == '%') + { + size_t arg_index = ARG_NONE; + DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ + + /* Initialize the next directive. */ + dp->dir_start = cp - 1; + dp->flags = 0; + dp->width_start = NULL; + dp->width_end = NULL; + dp->width_arg_index = ARG_NONE; + dp->precision_start = NULL; + dp->precision_end = NULL; + dp->precision_arg_index = ARG_NONE; + dp->arg_index = ARG_NONE; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + arg_index = n - 1; + cp = np + 1; + } + } + + /* Read the flags. */ + for (;;) + { + if (*cp == '\'') + { + dp->flags |= FLAG_GROUP; + cp++; + } + else if (*cp == '-') + { + dp->flags |= FLAG_LEFT; + cp++; + } + else if (*cp == '+') + { + dp->flags |= FLAG_SHOWSIGN; + cp++; + } + else if (*cp == ' ') + { + dp->flags |= FLAG_SPACE; + cp++; + } + else if (*cp == '#') + { + dp->flags |= FLAG_ALT; + cp++; + } + else if (*cp == '0') + { + dp->flags |= FLAG_ZERO; + cp++; + } + else + break; + } + + /* Parse the field width. */ + if (*cp == '*') + { + dp->width_start = cp; + cp++; + dp->width_end = cp; + if (max_width_length < 1) + max_width_length = 1; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory later. */ + goto error; + dp->width_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->width_arg_index == ARG_NONE) + { + dp->width_arg_index = arg_posn++; + if (dp->width_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->width_arg_index, TYPE_INT); + } + else if (*cp >= '0' && *cp <= '9') + { + size_t width_length; + + dp->width_start = cp; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->width_end = cp; + width_length = dp->width_end - dp->width_start; + if (max_width_length < width_length) + max_width_length = width_length; + } + + /* Parse the precision. */ + if (*cp == '.') + { + cp++; + if (*cp == '*') + { + dp->precision_start = cp - 1; + cp++; + dp->precision_end = cp; + if (max_precision_length < 2) + max_precision_length = 2; + + /* Test for positional argument. */ + if (*cp >= '0' && *cp <= '9') + { + const CHAR_T *np; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + ; + if (*np == '$') + { + size_t n = 0; + + for (np = cp; *np >= '0' && *np <= '9'; np++) + n = xsum (xtimes (n, 10), *np - '0'); + if (n == 0) + /* Positional argument 0. */ + goto error; + if (size_overflow_p (n)) + /* n too large, would lead to out of memory + later. */ + goto error; + dp->precision_arg_index = n - 1; + cp = np + 1; + } + } + if (dp->precision_arg_index == ARG_NONE) + { + dp->precision_arg_index = arg_posn++; + if (dp->precision_arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->precision_arg_index, TYPE_INT); + } + else + { + size_t precision_length; + + dp->precision_start = cp - 1; + for (; *cp >= '0' && *cp <= '9'; cp++) + ; + dp->precision_end = cp; + precision_length = dp->precision_end - dp->precision_start; + if (max_precision_length < precision_length) + max_precision_length = precision_length; + } + } + + { + arg_type type; + + /* Parse argument type/size specifiers. */ + { + int flags = 0; + + for (;;) + { + if (*cp == 'h') + { + flags |= (1 << (flags & 1)); + cp++; + } + else if (*cp == 'L') + { + flags |= 4; + cp++; + } + else if (*cp == 'l') + { + flags += 8; + cp++; + } + else if (*cp == 'j') + { + if (sizeof (intmax_t) > sizeof (long)) + { + /* intmax_t = long long */ + flags += 16; + } + else if (sizeof (intmax_t) > sizeof (int)) + { + /* intmax_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 'z' || *cp == 'Z') + { + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + if (sizeof (size_t) > sizeof (long)) + { + /* size_t = long long */ + flags += 16; + } + else if (sizeof (size_t) > sizeof (int)) + { + /* size_t = long */ + flags += 8; + } + cp++; + } + else if (*cp == 't') + { + if (sizeof (ptrdiff_t) > sizeof (long)) + { + /* ptrdiff_t = long long */ + flags += 16; + } + else if (sizeof (ptrdiff_t) > sizeof (int)) + { + /* ptrdiff_t = long */ + flags += 8; + } + cp++; + } +#if defined __APPLE__ && defined __MACH__ + /* On MacOS X 10.3, PRIdMAX is defined as "qd". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'q') + { + if (64 / 8 > sizeof (long)) + { + /* int64_t = long long */ + flags += 16; + } + else + { + /* int64_t = long */ + flags += 8; + } + cp++; + } +#endif +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* On native Win32, PRIdMAX is defined as "I64d". + We cannot change it to "lld" because PRIdMAX must also + be understood by the system's printf routines. */ + else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') + { + if (64 / 8 > sizeof (long)) + { + /* __int64 = long long */ + flags += 16; + } + else + { + /* __int64 = long */ + flags += 8; + } + cp += 3; + } +#endif + else + break; + } + + /* Read the conversion character. */ + c = *cp++; + switch (c) + { + case 'd': case 'i': +#if HAVE_LONG_LONG_INT + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGLONGINT; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lld" into TYPE_LONGINT. */ + if (flags >= 8) + type = TYPE_LONGINT; + else if (flags & 2) + type = TYPE_SCHAR; + else if (flags & 1) + type = TYPE_SHORT; + else + type = TYPE_INT; + break; + case 'o': case 'u': case 'x': case 'X': +#if HAVE_LONG_LONG_INT + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_ULONGLONGINT; + else +#endif + /* If 'unsigned long long' exists and is the same as + 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ + if (flags >= 8) + type = TYPE_ULONGINT; + else if (flags & 2) + type = TYPE_UCHAR; + else if (flags & 1) + type = TYPE_USHORT; + else + type = TYPE_UINT; + break; + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': + if (flags >= 16 || (flags & 4)) + type = TYPE_LONGDOUBLE; + else + type = TYPE_DOUBLE; + break; + case 'c': + if (flags >= 8) +#if HAVE_WINT_T + type = TYPE_WIDE_CHAR; +#else + goto error; +#endif + else + type = TYPE_CHAR; + break; +#if HAVE_WINT_T + case 'C': + type = TYPE_WIDE_CHAR; + c = 'c'; + break; +#endif + case 's': + if (flags >= 8) +#if HAVE_WCHAR_T + type = TYPE_WIDE_STRING; +#else + goto error; +#endif + else + type = TYPE_STRING; + break; +#if HAVE_WCHAR_T + case 'S': + type = TYPE_WIDE_STRING; + c = 's'; + break; +#endif + case 'p': + type = TYPE_POINTER; + break; + case 'n': +#if HAVE_LONG_LONG_INT + /* If 'long long' exists and is larger than 'long': */ + if (flags >= 16 || (flags & 4)) + type = TYPE_COUNT_LONGLONGINT_POINTER; + else +#endif + /* If 'long long' exists and is the same as 'long', we parse + "lln" into TYPE_COUNT_LONGINT_POINTER. */ + if (flags >= 8) + type = TYPE_COUNT_LONGINT_POINTER; + else if (flags & 2) + type = TYPE_COUNT_SCHAR_POINTER; + else if (flags & 1) + type = TYPE_COUNT_SHORT_POINTER; + else + type = TYPE_COUNT_INT_POINTER; + break; +#if ENABLE_UNISTDIO + /* The unistdio extensions. */ + case 'U': + if (flags >= 16) + type = TYPE_U32_STRING; + else if (flags >= 8) + type = TYPE_U16_STRING; + else + type = TYPE_U8_STRING; + break; +#endif + case '%': + type = TYPE_NONE; + break; + default: + /* Unknown conversion character. */ + goto error; + } + } + + if (type != TYPE_NONE) + { + dp->arg_index = arg_index; + if (dp->arg_index == ARG_NONE) + { + dp->arg_index = arg_posn++; + if (dp->arg_index == ARG_NONE) + /* arg_posn wrapped around. */ + goto error; + } + REGISTER_ARG (dp->arg_index, type); + } + dp->conversion = c; + dp->dir_end = cp; + } + + d->count++; + if (d->count >= d_allocated) + { + size_t memory_size; + DIRECTIVE *memory; + + d_allocated = xtimes (d_allocated, 2); + memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); + if (size_overflow_p (memory_size)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + memory = (DIRECTIVE *) realloc (d->dir, memory_size); + if (memory == NULL) + /* Out of memory. */ + goto out_of_memory; + d->dir = memory; + } + } +#if CHAR_T_ONLY_ASCII + else if (!c_isascii (c)) + { + /* Non-ASCII character. Not supported. */ + goto error; + } +#endif + } + d->dir[d->count].dir_start = cp; + + d->max_width_length = max_width_length; + d->max_precision_length = max_precision_length; + return 0; + +error: + if (a->arg) + free (a->arg); + if (d->dir) + free (d->dir); + errno = EINVAL; + return -1; + +out_of_memory: + if (a->arg) + free (a->arg); + if (d->dir) + free (d->dir); +out_of_memory_1: + errno = ENOMEM; + return -1; +} + +#undef PRINTF_PARSE +#undef DIRECTIVES +#undef DIRECTIVE +#undef CHAR_T_ONLY_ASCII +#undef CHAR_T diff -Nru gettext-0.17/gettext-tools/libgettextpo/printf-parse.h gettext-0.18.1.1/gettext-tools/libgettextpo/printf-parse.h --- gettext-0.17/gettext-tools/libgettextpo/printf-parse.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/printf-parse.h 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,180 @@ +/* Parse printf format string. + Copyright (C) 1999, 2002-2003, 2005, 2007, 2009-2010 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _PRINTF_PARSE_H +#define _PRINTF_PARSE_H + +/* This file can be parametrized with the following macros: + ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. + STATIC Set to 'static' to declare the function static. */ + +#include "printf-args.h" + + +/* Flags */ +#define FLAG_GROUP 1 /* ' flag */ +#define FLAG_LEFT 2 /* - flag */ +#define FLAG_SHOWSIGN 4 /* + flag */ +#define FLAG_SPACE 8 /* space flag */ +#define FLAG_ALT 16 /* # flag */ +#define FLAG_ZERO 32 + +/* arg_index value indicating that no argument is consumed. */ +#define ARG_NONE (~(size_t)0) + +/* xxx_directive: A parsed directive. + xxx_directives: A parsed format string. */ + +/* A parsed directive. */ +typedef struct +{ + const char* dir_start; + const char* dir_end; + int flags; + const char* width_start; + const char* width_end; + size_t width_arg_index; + const char* precision_start; + const char* precision_end; + size_t precision_arg_index; + char conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ + size_t arg_index; +} +char_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + char_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +char_directives; + +#if ENABLE_UNISTDIO + +/* A parsed directive. */ +typedef struct +{ + const uint8_t* dir_start; + const uint8_t* dir_end; + int flags; + const uint8_t* width_start; + const uint8_t* width_end; + size_t width_arg_index; + const uint8_t* precision_start; + const uint8_t* precision_end; + size_t precision_arg_index; + uint8_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ + size_t arg_index; +} +u8_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + u8_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +u8_directives; + +/* A parsed directive. */ +typedef struct +{ + const uint16_t* dir_start; + const uint16_t* dir_end; + int flags; + const uint16_t* width_start; + const uint16_t* width_end; + size_t width_arg_index; + const uint16_t* precision_start; + const uint16_t* precision_end; + size_t precision_arg_index; + uint16_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ + size_t arg_index; +} +u16_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + u16_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +u16_directives; + +/* A parsed directive. */ +typedef struct +{ + const uint32_t* dir_start; + const uint32_t* dir_end; + int flags; + const uint32_t* width_start; + const uint32_t* width_end; + size_t width_arg_index; + const uint32_t* precision_start; + const uint32_t* precision_end; + size_t precision_arg_index; + uint32_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ + size_t arg_index; +} +u32_directive; + +/* A parsed format string. */ +typedef struct +{ + size_t count; + u32_directive *dir; + size_t max_width_length; + size_t max_precision_length; +} +u32_directives; + +#endif + + +/* Parses the format string. Fills in the number N of directives, and fills + in directives[0], ..., directives[N-1], and sets directives[N].dir_start + to the end of the format string. Also fills in the arg_type fields of the + arguments and the needed count of arguments. */ +#if ENABLE_UNISTDIO +extern int + ulc_printf_parse (const char *format, char_directives *d, arguments *a); +extern int + u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a); +extern int + u16_printf_parse (const uint16_t *format, u16_directives *d, + arguments *a); +extern int + u32_printf_parse (const uint32_t *format, u32_directives *d, + arguments *a); +#else +# ifdef STATIC +STATIC +# else +extern +# endif +int printf_parse (const char *format, char_directives *d, arguments *a); +#endif + +#endif /* _PRINTF_PARSE_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/progname.c gettext-0.18.1.1/gettext-tools/libgettextpo/progname.c --- gettext-0.17/gettext-tools/libgettextpo/progname.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/progname.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,9 @@ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */ #include "progname.h" +#include /* get program_invocation_name declaration */ +#include +#include #include @@ -29,21 +32,61 @@ To be initialized by main(). */ const char *program_name = NULL; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ void set_program_name (const char *argv0) { /* libtool creates a temporary executable whose name is sometimes prefixed with "lt-" (depends on the platform). It also makes argv[0] absolute. + But the name of the temporary executable is a detail that should not be + visible to the end user and to the test suite. Remove this "/.libs/" or "/.libs/lt-" prefix here. */ const char *slash; const char *base; + /* Sanity check. POSIX requires the invoking process to pass a non-NULL + argv[0]. */ + if (argv0 == NULL) + { + /* It's a bug in the invoking program. Help diagnosing it. */ + fputs ("A NULL argv[0] was passed through an exec system call.\n", + stderr); + abort (); + } + slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); - if (base - argv0 >= 7 && memcmp (base - 7, "/.libs/", 7) == 0) - argv0 = base; - if (strncmp (base, "lt-", 3) == 0) - argv0 = base + 3; + if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) + { + argv0 = base; + if (strncmp (base, "lt-", 3) == 0) + { + argv0 = base + 3; + /* On glibc systems, remove the "lt-" prefix from the variable + program_invocation_short_name. */ +#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME + program_invocation_short_name = (char *) argv0; +#endif + } + } + + /* But don't strip off a leading / in general, because when the user + runs + /some/hidden/place/bin/cp foo foo + he should get the error message + /some/hidden/place/bin/cp: `foo' and `foo' are the same file + not + cp: `foo' and `foo' are the same file + */ + program_name = argv0; + + /* On glibc systems, the error() function comes from libc and uses the + variable program_invocation_name, not program_name. So set this variable + as well. */ +#if HAVE_DECL_PROGRAM_INVOCATION_NAME + program_invocation_name = (char *) argv0; +#endif } diff -Nru gettext-0.17/gettext-tools/libgettextpo/progname.h gettext-0.18.1.1/gettext-tools/libgettextpo/progname.h --- gettext-0.17/gettext-tools/libgettextpo/progname.h 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/progname.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,6 +1,6 @@ /* Program name management. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,7 +31,9 @@ /* String containing name the program is called with. */ extern DLL_VARIABLE const char *program_name; -/* Set program_name, based on argv[0]. */ +/* Set program_name, based on argv[0]. + argv0 must be a string allocated with indefinite extent, and must not be + modified after this call. */ extern void set_program_name (const char *argv0); #if ENABLE_RELOCATABLE @@ -39,8 +41,8 @@ /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ extern void set_program_name_and_installdir (const char *argv0, - const char *orig_installprefix, - const char *orig_installdir); + const char *orig_installprefix, + const char *orig_installdir); #undef set_program_name #define set_program_name(ARG0) \ set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR) diff -Nru gettext-0.17/gettext-tools/libgettextpo/realloc.c gettext-0.18.1.1/gettext-tools/libgettextpo/realloc.c --- gettext-0.17/gettext-tools/libgettextpo/realloc.c 2007-11-06 23:31:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/realloc.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,6 +1,7 @@ /* realloc() function that is glibc compatible. - Copyright (C) 1997, 2003, 2004, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2010 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,7 +72,7 @@ { #if GNULIB_REALLOC_GNU && !NEED_REALLOC_GNU && !SYSTEM_MALLOC_GLIBC_COMPATIBLE if (n == 0) - n = 1; + n = 1; #endif result = malloc (n); } diff -Nru gettext-0.17/gettext-tools/libgettextpo/ref-add.sin gettext-0.18.1.1/gettext-tools/libgettextpo/ref-add.sin --- gettext-0.17/gettext-tools/libgettextpo/ref-add.sin 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/ref-add.sin 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ # Add this package to a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/ref-del.sin gettext-0.18.1.1/gettext-tools/libgettextpo/ref-del.sin --- gettext-0.17/gettext-tools/libgettextpo/ref-del.sin 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/ref-del.sin 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ # Remove this package from a list of references stored in a text file. # -# Copyright (C) 2000 Free Software Foundation, Inc. +# Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/relocatable.c gettext-0.18.1.1/gettext-tools/libgettextpo/relocatable.c --- gettext-0.17/gettext-tools/libgettextpo/relocatable.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/relocatable.c 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003-2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2008-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -22,7 +22,7 @@ This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 +# define _GNU_SOURCE 1 #endif #include @@ -102,11 +102,11 @@ instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, - const char *curr_prefix_arg) + const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the - relocation is a nop. */ + relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ @@ -118,14 +118,14 @@ #ifdef NO_XMALLOC if (memory != NULL) #endif - { - memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); - orig_prefix = memory; - memory += orig_prefix_len + 1; - memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); - curr_prefix = memory; - return; - } + { + memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); + orig_prefix = memory; + memory += orig_prefix_len + 1; + memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); + curr_prefix = memory; + return; + } } orig_prefix = NULL; curr_prefix = NULL; @@ -160,17 +160,18 @@ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif -const char * +char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname) + const char *orig_installdir, + const char *curr_pathname) { - const char *curr_installdir; + char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) @@ -193,9 +194,9 @@ while (p > p_base) { - p--; - if (ISSLASH (*p)) - break; + p--; + if (ISSLASH (*p)) + break; } q = (char *) xmalloc (p - curr_pathname + 1); @@ -218,44 +219,47 @@ while (rp > rel_installdir && cp > cp_base) { - bool same = false; - const char *rpi = rp; - const char *cpi = cp; - - while (rpi > rel_installdir && cpi > cp_base) - { - rpi--; - cpi--; - if (ISSLASH (*rpi) || ISSLASH (*cpi)) - { - if (ISSLASH (*rpi) && ISSLASH (*cpi)) - same = true; - break; - } - /* Do case-insensitive comparison if the filesystem is always or - often case-insensitive. It's better to accept the comparison - if the difference is only in case, rather than to fail. */ + bool same = false; + const char *rpi = rp; + const char *cpi = cp; + + while (rpi > rel_installdir && cpi > cp_base) + { + rpi--; + cpi--; + if (ISSLASH (*rpi) || ISSLASH (*cpi)) + { + if (ISSLASH (*rpi) && ISSLASH (*cpi)) + same = true; + break; + } + /* Do case-insensitive comparison if the file system is always or + often case-insensitive. It's better to accept the comparison + if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ - /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ - if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) - != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) - break; + /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ + if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) + != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) + break; #else - if (*rpi != *cpi) - break; + if (*rpi != *cpi) + break; #endif - } - if (!same) - break; - /* The last pathname component was the same. opi and cpi now point - to the slash before it. */ - rp = rpi; - cp = cpi; + } + if (!same) + break; + /* The last pathname component was the same. opi and cpi now point + to the slash before it. */ + rp = rpi; + cp = cpi; } if (rp > rel_installdir) - /* Unexpected: The curr_installdir does not end with rel_installdir. */ - return NULL; + { + /* Unexpected: The curr_installdir does not end with rel_installdir. */ + free (curr_installdir); + return NULL; + } { size_t curr_prefix_len = cp - curr_installdir; @@ -264,11 +268,16 @@ curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) - return NULL; + { + free (curr_installdir); + return NULL; + } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; + free (curr_installdir); + return curr_prefix; } } @@ -296,30 +305,30 @@ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; if (!IS_PATH_WITH_DIR (location)) - /* Shouldn't happen. */ - return FALSE; + /* Shouldn't happen. */ + return FALSE; { #if defined __CYGWIN__ - /* On Cygwin, we need to convert paths coming from Win32 system calls - to the Unix-like slashified notation. */ - static char location_as_posix_path[2 * MAX_PATH]; - /* There's no error return defined for cygwin_conv_to_posix_path. - See cygwin-api/func-cygwin-conv-to-posix-path.html. - Does it overflow the buffer of expected size MAX_PATH or does it - truncate the path? I don't know. Let's catch both. */ - cygwin_conv_to_posix_path (location, location_as_posix_path); - location_as_posix_path[MAX_PATH - 1] = '\0'; - if (strlen (location_as_posix_path) >= MAX_PATH - 1) - /* A sign of buffer overflow or path truncation. */ - return FALSE; - shared_library_fullname = strdup (location_as_posix_path); + /* On Cygwin, we need to convert paths coming from Win32 system calls + to the Unix-like slashified notation. */ + static char location_as_posix_path[2 * MAX_PATH]; + /* There's no error return defined for cygwin_conv_to_posix_path. + See cygwin-api/func-cygwin-conv-to-posix-path.html. + Does it overflow the buffer of expected size MAX_PATH or does it + truncate the path? I don't know. Let's catch both. */ + cygwin_conv_to_posix_path (location, location_as_posix_path); + location_as_posix_path[MAX_PATH - 1] = '\0'; + if (strlen (location_as_posix_path) >= MAX_PATH - 1) + /* A sign of buffer overflow or path truncation. */ + return FALSE; + shared_library_fullname = strdup (location_as_posix_path); #else - shared_library_fullname = strdup (location); + shared_library_fullname = strdup (location); #endif } } @@ -342,37 +351,37 @@ { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) - { - unsigned long start, end; - int c; - - if (fscanf (fp, "%lx-%lx", &start, &end) != 2) - break; - if (address >= start && address <= end - 1) - { - /* Found it. Now see if this line contains a filename. */ - while (c = getc (fp), c != EOF && c != '\n' && c != '/') - continue; - if (c == '/') - { - size_t size; - int len; - - ungetc (c, fp); - shared_library_fullname = NULL; size = 0; - len = getline (&shared_library_fullname, &size, fp); - if (len >= 0) - { - /* Success: filled shared_library_fullname. */ - if (len > 0 && shared_library_fullname[len - 1] == '\n') - shared_library_fullname[len - 1] = '\0'; - } - } - break; - } - while (c = getc (fp), c != EOF && c != '\n') - continue; - } + { + unsigned long start, end; + int c; + + if (fscanf (fp, "%lx-%lx", &start, &end) != 2) + break; + if (address >= start && address <= end - 1) + { + /* Found it. Now see if this line contains a filename. */ + while (c = getc (fp), c != EOF && c != '\n' && c != '/') + continue; + if (c == '/') + { + size_t size; + int len; + + ungetc (c, fp); + shared_library_fullname = NULL; size = 0; + len = getline (&shared_library_fullname, &size, fp); + if (len >= 0) + { + /* Success: filled shared_library_fullname. */ + if (len > 0 && shared_library_fullname[len - 1] == '\n') + shared_library_fullname[len - 1] = '\0'; + } + } + break; + } + while (c = getc (fp), c != EOF && c != '\n') + continue; + } fclose (fp); } #endif @@ -400,7 +409,9 @@ #endif /* PIC */ /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { @@ -411,55 +422,69 @@ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been - set through the main program's set_program_name_and_installdir - function. This is sufficient in the case that the library has - initially been installed in the same orig_prefix. But we can do - better, to also cover the cases that 1. it has been installed - in a different prefix before being moved to orig_prefix and (later) - to curr_prefix, 2. unlike the program, it has not moved away from - orig_prefix. */ + set through the main program's set_program_name_and_installdir + function. This is sufficient in the case that the library has + initially been installed in the same orig_prefix. But we can do + better, to also cover the cases that 1. it has been installed + in a different prefix before being moved to orig_prefix and (later) + to curr_prefix, 2. unlike the program, it has not moved away from + orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; - const char *curr_prefix_better; + char *curr_prefix_better; curr_prefix_better = - compute_curr_prefix (orig_installprefix, orig_installdir, - get_shared_library_fullname ()); - if (curr_prefix_better == NULL) - curr_prefix_better = curr_prefix; + compute_curr_prefix (orig_installprefix, orig_installdir, + get_shared_library_fullname ()); - set_relocation_prefix (orig_installprefix, curr_prefix_better); + set_relocation_prefix (orig_installprefix, + curr_prefix_better != NULL + ? curr_prefix_better + : curr_prefix); + + if (curr_prefix_better != NULL) + free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, - even for DOS-like filesystems, because the pathname argument was + even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') - /* pathname equals orig_prefix. */ - return curr_prefix; - if (ISSLASH (pathname[orig_prefix_len])) - { - /* pathname starts with orig_prefix. */ - const char *pathname_tail = &pathname[orig_prefix_len]; - char *result = - (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); + { + /* pathname equals orig_prefix. */ + char *result = (char *) xmalloc (strlen (curr_prefix) + 1); + +#ifdef NO_XMALLOC + if (result != NULL) +#endif + { + strcpy (result, curr_prefix); + return result; + } + } + else if (ISSLASH (pathname[orig_prefix_len])) + { + /* pathname starts with orig_prefix. */ + const char *pathname_tail = &pathname[orig_prefix_len]; + char *result = + (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC - if (result != NULL) + if (result != NULL) #endif - { - memcpy (result, curr_prefix, curr_prefix_len); - strcpy (result + curr_prefix_len, pathname_tail); - return result; - } - } + { + memcpy (result, curr_prefix, curr_prefix_len); + strcpy (result + curr_prefix_len, pathname_tail); + return result; + } + } } /* Nothing to relocate. */ return pathname; diff -Nru gettext-0.17/gettext-tools/libgettextpo/relocatable.h gettext-0.18.1.1/gettext-tools/libgettextpo/relocatable.h --- gettext-0.17/gettext-tools/libgettextpo/relocatable.h 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/relocatable.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* Provide relocatable packages. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your option) + by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -46,23 +46,27 @@ instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, - const char *curr_prefix); + const char *curr_prefix); /* Returns the pathname, relocated according to the current installation - directory. */ + directory. + The returned string is either PATHNAME unmodified or a freshly allocated + string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); -/* Memory management: relocate() leaks memory, because it has to construct - a fresh pathname. If this is a problem because your program calls - relocate() frequently, think about caching the result. */ +/* Memory management: relocate() potentially allocates memory, because it has + to construct a fresh pathname. If this is a problem because your program + calls relocate() frequently, think about caching the result. Or free the + return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular - file, and the current pathname of this file. Returns NULL upon failure. */ -extern const char * compute_curr_prefix (const char *orig_installprefix, - const char *orig_installdir, - const char *curr_pathname); + file, and the current pathname of this file. + Returns it, freshly allocated. Returns NULL upon failure. */ +extern char * compute_curr_prefix (const char *orig_installprefix, + const char *orig_installdir, + const char *curr_pathname); #else diff -Nru gettext-0.17/gettext-tools/libgettextpo/signal.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/signal.in.h --- gettext-0.17/gettext-tools/libgettextpo/signal.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/signal.in.h 2010-03-28 18:33:19.000000000 +0000 @@ -0,0 +1,329 @@ +/* A GNU-like . + + Copyright (C) 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_sig_atomic_t || defined __need_sigset_t +/* Special invocation convention inside glibc header files. */ + +# @INCLUDE_NEXT@ @NEXT_SIGNAL_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_SIGNAL_H + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_SIGNAL_H@ + +#ifndef _GL_SIGNAL_H +#define _GL_SIGNAL_H + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define pid_t, uid_t. + Also, mingw defines sigset_t not in , but in . */ +#include + +/* On AIX, sig_atomic_t already includes volatile. C99 requires that + 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. + Hence, redefine this to a non-volatile type as needed. */ +#if ! @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ +typedef int rpl_sig_atomic_t; +# undef sig_atomic_t +# define sig_atomic_t rpl_sig_atomic_t +#endif + +/* A set or mask of signals. */ +#if !@HAVE_SIGSET_T@ +typedef unsigned int sigset_t; +#endif + + +#if @GNULIB_SIGNAL_H_SIGPIPE@ +# ifndef SIGPIPE +/* Define SIGPIPE to a value that does not overlap with other signals. */ +# define SIGPIPE 13 +# define GNULIB_defined_SIGPIPE 1 +/* To actually use SIGPIPE, you also need the gnulib modules 'sigprocmask', + 'write', 'stdio'. */ +# endif +#endif + + +#if @GNULIB_SIGPROCMASK@ +# if !@HAVE_POSIX_SIGNALBLOCKING@ + +/* Maximum signal number + 1. */ +# ifndef NSIG +# define NSIG 32 +# endif + +/* This code supports only 32 signals. */ +typedef int verify_NSIG_constraint[2 * (NSIG <= 32) - 1]; + +# endif + +/* Test whether a given signal is contained in a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigismember +# endif +# else +_GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigismember); + +/* Initialize a signal set to the empty set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigemptyset +# endif +# else +_GL_FUNCDECL_SYS (sigemptyset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigemptyset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigemptyset); + +/* Add a signal to a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigaddset +# endif +# else +_GL_FUNCDECL_SYS (sigaddset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigaddset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigaddset); + +/* Remove a signal from a signal set. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigdelset +# endif +# else +_GL_FUNCDECL_SYS (sigdelset, int, (sigset_t *set, int sig) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigdelset, int, (sigset_t *set, int sig)); +_GL_CXXALIASWARN (sigdelset); + +/* Fill a signal set with all possible signals. */ +# if @HAVE_POSIX_SIGNALBLOCKING@ +/* This function is defined as a macro on MacOS X. */ +# if defined __cplusplus && defined GNULIB_NAMESPACE +# undef sigfillset +# endif +# else +_GL_FUNCDECL_SYS (sigfillset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigfillset, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigfillset); + +/* Return the set of those blocked signals that are pending. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ +_GL_FUNCDECL_SYS (sigpending, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (sigpending, int, (sigset_t *set)); +_GL_CXXALIASWARN (sigpending); + +/* If OLD_SET is not NULL, put the current set of blocked signals in *OLD_SET. + Then, if SET is not NULL, affect the current set of blocked signals by + combining it with *SET as indicated in OPERATION. + In this implementation, you are not allowed to change a signal handler + while the signal is blocked. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */ +# define SIG_SETMASK 1 /* blocked_set = *set; */ +# define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */ +_GL_FUNCDECL_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +# endif +_GL_CXXALIAS_SYS (sigprocmask, int, + (int operation, const sigset_t *set, sigset_t *old_set)); +_GL_CXXALIASWARN (sigprocmask); + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +# ifdef __cplusplus +extern "C" { +# endif +typedef void (*_gl_function_taking_int_returning_void_t) (int); +# ifdef __cplusplus +} +# endif +# if !@HAVE_POSIX_SIGNALBLOCKING@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define signal rpl_signal +# endif +_GL_FUNCDECL_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +_GL_CXXALIAS_RPL (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# else +_GL_CXXALIAS_SYS (signal, _gl_function_taking_int_returning_void_t, + (int sig, _gl_function_taking_int_returning_void_t func)); +# endif +_GL_CXXALIASWARN (signal); + +/* Raise signal SIG. */ +# if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef raise +# define raise rpl_raise +# endif +_GL_FUNCDECL_RPL (raise, int, (int sig)); +_GL_CXXALIAS_RPL (raise, int, (int sig)); +# else +_GL_CXXALIAS_SYS (raise, int, (int sig)); +# endif +_GL_CXXALIASWARN (raise); + +#elif defined GNULIB_POSIXCHECK +# undef sigaddset +# if HAVE_RAW_DECL_SIGADDSET +_GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigdelset +# if HAVE_RAW_DECL_SIGDELSET +_GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigemptyset +# if HAVE_RAW_DECL_SIGEMPTYSET +_GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigfillset +# if HAVE_RAW_DECL_SIGFILLSET +_GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigismember +# if HAVE_RAW_DECL_SIGISMEMBER +_GL_WARN_ON_USE (sigismember, "sigismember is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigpending +# if HAVE_RAW_DECL_SIGPENDING +_GL_WARN_ON_USE (sigpending, "sigpending is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +# undef sigprocmask +# if HAVE_RAW_DECL_SIGPROCMASK +_GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " + "use the gnulib module sigprocmask for portability"); +# endif +#endif /* @GNULIB_SIGPROCMASK@ */ + + +#if @GNULIB_SIGACTION@ +# if !@HAVE_SIGACTION@ + +# if !@HAVE_SIGINFO_T@ +/* Present to allow compilation, but unsupported by gnulib. */ +union sigval +{ + int sival_int; + void *sival_ptr; +}; + +/* Present to allow compilation, but unsupported by gnulib. */ +struct siginfo_t +{ + int si_signo; + int si_code; + int si_errno; + pid_t si_pid; + uid_t si_uid; + void *si_addr; + int si_status; + long si_band; + union sigval si_value; +}; +typedef struct siginfo_t siginfo_t; +# endif /* !@HAVE_SIGINFO_T@ */ + +/* We assume that platforms which lack the sigaction() function also lack + the 'struct sigaction' type, and vice versa. */ + +struct sigaction +{ + union + { + void (*_sa_handler) (int); + /* Present to allow compilation, but unsupported by gnulib. POSIX + says that implementations may, but not must, make sa_sigaction + overlap with sa_handler, but we know of no implementation where + they do not overlap. */ + void (*_sa_sigaction) (int, siginfo_t *, void *); + } _sa_func; + sigset_t sa_mask; + /* Not all POSIX flags are supported. */ + int sa_flags; +}; +# define sa_handler _sa_func._sa_handler +# define sa_sigaction _sa_func._sa_sigaction +/* Unsupported flags are not present. */ +# define SA_RESETHAND 1 +# define SA_NODEFER 2 +# define SA_RESTART 4 + +_GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); + +# elif !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ + +# define sa_sigaction sa_handler + +# endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */ + +_GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict, + struct sigaction *restrict)); +_GL_CXXALIASWARN (sigaction); + +#elif defined GNULIB_POSIXCHECK +# undef sigaction +# if HAVE_RAW_DECL_SIGACTION +_GL_WARN_ON_USE (sigaction, "sigaction is unportable - " + "use the gnulib module sigaction for portability"); +# endif +#endif + +/* Some systems don't have SA_NODEFER. */ +#ifndef SA_NODEFER +# define SA_NODEFER 0 +#endif + + +#endif /* _GL_SIGNAL_H */ +#endif /* _GL_SIGNAL_H */ +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/sigprocmask.c gettext-0.18.1.1/gettext-tools/libgettextpo/sigprocmask.c --- gettext-0.17/gettext-tools/libgettextpo/sigprocmask.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/sigprocmask.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,329 @@ +/* POSIX compatible signal blocking. + Copyright (C) 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2006. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include +#include + +/* We assume that a platform without POSIX signal blocking functions + also does not have the POSIX sigaction() function, only the + signal() function. We also assume signal() has SysV semantics, + where any handler is uninstalled prior to being invoked. This is + true for Woe32 platforms. */ + +/* We use raw signal(), but also provide a wrapper rpl_signal() so + that applications can query or change a blocked signal. */ +#undef signal + +/* Provide invalid signal numbers as fallbacks if the uncatchable + signals are not defined. */ +#ifndef SIGKILL +# define SIGKILL (-1) +#endif +#ifndef SIGSTOP +# define SIGSTOP (-1) +#endif + +/* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias + for the signal SIGABRT. Only one signal handler is stored for both + SIGABRT and SIGABRT_COMPAT. SIGABRT_COMPAT is not a signal of its own. */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# undef SIGABRT_COMPAT +# define SIGABRT_COMPAT 6 +#endif +#ifdef SIGABRT_COMPAT +# define SIGABRT_COMPAT_MASK (1U << SIGABRT_COMPAT) +#else +# define SIGABRT_COMPAT_MASK 0 +#endif + +typedef void (*handler_t) (int); + +/* Handling of gnulib defined signals. */ + +#if GNULIB_defined_SIGPIPE +static handler_t SIGPIPE_handler = SIG_DFL; +#endif + +#if GNULIB_defined_SIGPIPE +static handler_t +ext_signal (int sig, handler_t handler) +{ + switch (sig) + { + case SIGPIPE: + { + handler_t old_handler = SIGPIPE_handler; + SIGPIPE_handler = handler; + return old_handler; + } + default: /* System defined signal */ + return signal (sig, handler); + } +} +# define signal ext_signal +#endif + +int +sigismember (const sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + return (*set >> sig) & 1; + } + else + return 0; +} + +int +sigemptyset (sigset_t *set) +{ + *set = 0; + return 0; +} + +int +sigaddset (sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + *set |= 1U << sig; + return 0; + } + else + { + errno = EINVAL; + return -1; + } +} + +int +sigdelset (sigset_t *set, int sig) +{ + if (sig >= 0 && sig < NSIG) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + *set &= ~(1U << sig); + return 0; + } + else + { + errno = EINVAL; + return -1; + } +} + + +int +sigfillset (sigset_t *set) +{ + *set = ((2U << (NSIG - 1)) - 1) & ~ SIGABRT_COMPAT_MASK; + return 0; +} + +/* Set of currently blocked signals. */ +static volatile sigset_t blocked_set /* = 0 */; + +/* Set of currently blocked and pending signals. */ +static volatile sig_atomic_t pending_array[NSIG] /* = { 0 } */; + +/* Signal handler that is installed for blocked signals. */ +static void +blocked_handler (int sig) +{ + /* Reinstall the handler, in case the signal occurs multiple times + while blocked. There is an inherent race where an asynchronous + signal in between when the kernel uninstalled the handler and + when we reinstall it will trigger the default handler; oh + well. */ + signal (sig, blocked_handler); + if (sig >= 0 && sig < NSIG) + pending_array[sig] = 1; +} + +int +sigpending (sigset_t *set) +{ + sigset_t pending = 0; + int sig; + + for (sig = 0; sig < NSIG; sig++) + if (pending_array[sig]) + pending |= 1U << sig; + *set = pending; + return 0; +} + +/* The previous signal handlers. + Only the array elements corresponding to blocked signals are relevant. */ +static volatile handler_t old_handlers[NSIG]; + +int +sigprocmask (int operation, const sigset_t *set, sigset_t *old_set) +{ + if (old_set != NULL) + *old_set = blocked_set; + + if (set != NULL) + { + sigset_t new_blocked_set; + sigset_t to_unblock; + sigset_t to_block; + + switch (operation) + { + case SIG_BLOCK: + new_blocked_set = blocked_set | *set; + break; + case SIG_SETMASK: + new_blocked_set = *set; + break; + case SIG_UNBLOCK: + new_blocked_set = blocked_set & ~*set; + break; + default: + errno = EINVAL; + return -1; + } + to_unblock = blocked_set & ~new_blocked_set; + to_block = new_blocked_set & ~blocked_set; + + if (to_block != 0) + { + int sig; + + for (sig = 0; sig < NSIG; sig++) + if ((to_block >> sig) & 1) + { + pending_array[sig] = 0; + if ((old_handlers[sig] = signal (sig, blocked_handler)) != SIG_ERR) + blocked_set |= 1U << sig; + } + } + + if (to_unblock != 0) + { + sig_atomic_t received[NSIG]; + int sig; + + for (sig = 0; sig < NSIG; sig++) + if ((to_unblock >> sig) & 1) + { + if (signal (sig, old_handlers[sig]) != blocked_handler) + /* The application changed a signal handler while the signal + was blocked, bypassing our rpl_signal replacement. + We don't support this. */ + abort (); + received[sig] = pending_array[sig]; + blocked_set &= ~(1U << sig); + pending_array[sig] = 0; + } + else + received[sig] = 0; + + for (sig = 0; sig < NSIG; sig++) + if (received[sig]) + raise (sig); + } + } + return 0; +} + +/* Install the handler FUNC for signal SIG, and return the previous + handler. */ +handler_t +rpl_signal (int sig, handler_t handler) +{ + /* We must provide a wrapper, so that a user can query what handler + they installed even if that signal is currently blocked. */ + if (sig >= 0 && sig < NSIG && sig != SIGKILL && sig != SIGSTOP + && handler != SIG_ERR) + { + #ifdef SIGABRT_COMPAT + if (sig == SIGABRT_COMPAT) + sig = SIGABRT; + #endif + + if (blocked_set & (1U << sig)) + { + /* POSIX states that sigprocmask and signal are both + async-signal-safe. This is not true of our + implementation - there is a slight data race where an + asynchronous interrupt on signal A can occur after we + install blocked_handler but before we have updated + old_handlers for signal B, such that handler A can see + stale information if it calls signal(B). Oh well - + signal handlers really shouldn't try to manipulate the + installed handlers of unrelated signals. */ + handler_t result = old_handlers[sig]; + old_handlers[sig] = handler; + return result; + } + else + return signal (sig, handler); + } + else + { + errno = EINVAL; + return SIG_ERR; + } +} + +#if GNULIB_defined_SIGPIPE +/* Raise the signal SIG. */ +int +rpl_raise (int sig) +# undef raise +{ + switch (sig) + { + case SIGPIPE: + if (blocked_set & (1U << sig)) + pending_array[sig] = 1; + else + { + handler_t handler = SIGPIPE_handler; + if (handler == SIG_DFL) + exit (128 + SIGPIPE); + else if (handler != SIG_IGN) + (*handler) (sig); + } + return 0; + default: /* System defined signal */ + return raise (sig); + } +} +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/size_max.h gettext-0.18.1.1/gettext-tools/libgettextpo/size_max.h --- gettext-0.17/gettext-tools/libgettextpo/size_max.h 2006-10-20 22:36:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/size_max.h 2010-02-16 21:33:15.000000000 +0000 @@ -1,10 +1,10 @@ /* size_max.h -- declare SIZE_MAX through system headers - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, diff -Nru gettext-0.17/gettext-tools/libgettextpo/stat.c gettext-0.18.1.1/gettext-tools/libgettextpo/stat.c --- gettext-0.17/gettext-tools/libgettextpo/stat.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stat.c 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,104 @@ +/* Work around platform bugs in stat. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* written by Eric Blake */ + +#include + +/* Get the original definition of stat. It might be defined as a macro. */ +#define __need_system_sys_stat_h +#include +#include +#undef __need_system_sys_stat_h + +static inline int +orig_stat (const char *filename, struct stat *buf) +{ + return stat (filename, buf); +} + +/* Specification. */ +#include + +#include +#include +#include +#include + +/* Store information about NAME into ST. Work around bugs with + trailing slashes. Mingw has other bugs (such as st_ino always + being 0 on success) which this wrapper does not work around. But + at least this implementation provides the ability to emulate fchdir + correctly. */ + +int +rpl_stat (char const *name, struct stat *st) +{ + int result = orig_stat (name, st); +#if REPLACE_FUNC_STAT_FILE + /* Solaris 9 mistakenly succeeds when given a non-directory with a + trailing slash. */ + if (result == 0 && !S_ISDIR (st->st_mode)) + { + size_t len = strlen (name); + if (ISSLASH (name[len - 1])) + { + errno = ENOTDIR; + return -1; + } + } +#endif /* REPLACE_FUNC_STAT_FILE */ +#if REPLACE_FUNC_STAT_DIR + if (result == -1 && errno == ENOENT) + { + /* Due to mingw's oddities, there are some directories (like + c:\) where stat() only succeeds with a trailing slash, and + other directories (like c:\windows) where stat() only + succeeds without a trailing slash. But we want the two to be + synonymous, since chdir() manages either style. Likewise, Mingw also + reports ENOENT for names longer than PATH_MAX, when we want + ENAMETOOLONG, and for stat("file/"), when we want ENOTDIR. + Fortunately, mingw PATH_MAX is small enough for stack + allocation. */ + char fixed_name[PATH_MAX + 1] = {0}; + size_t len = strlen (name); + bool check_dir = false; + if (PATH_MAX <= len) + errno = ENAMETOOLONG; + else if (len) + { + strcpy (fixed_name, name); + if (ISSLASH (fixed_name[len - 1])) + { + check_dir = true; + while (len && ISSLASH (fixed_name[len - 1])) + fixed_name[--len] = '\0'; + if (!len) + fixed_name[0] = '/'; + } + else + fixed_name[len++] = '/'; + result = orig_stat (fixed_name, st); + if (result == 0 && check_dir && !S_ISDIR (st->st_mode)) + { + result = -1; + errno = ENOTDIR; + } + } + } +#endif /* REPLACE_FUNC_STAT_DIR */ + return result; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdarg.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdarg.in.h --- gettext-0.17/gettext-tools/libgettextpo/stdarg.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdarg.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -0,0 +1,35 @@ +/* Substitute for and wrapper around . + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _GL_STDARG_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_STDARG_H@ + +#ifndef _GL_STDARG_H +#define _GL_STDARG_H + +#ifndef va_copy +# define va_copy(a,b) ((a) = (b)) +#endif + +#endif /* _GL_STDARG_H */ +#endif /* _GL_STDARG_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdbool.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdbool.in.h --- gettext-0.17/gettext-tools/libgettextpo/stdbool.in.h 2007-10-23 00:43:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdbool.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -1,9 +1,9 @@ -/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -50,6 +50,9 @@ with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. + - C99 allows the use of (_Bool)0.0 in constant expressions, but + this substitute cannot always provide this property. + Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ @@ -58,7 +61,7 @@ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ -#ifdef __BEOS__ +#if defined __BEOS__ && !defined __HAIKU__ # include /* defines bool but not _Bool */ # undef false # undef true @@ -73,7 +76,7 @@ (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ -#if defined __cplusplus || defined __BEOS__ +#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__) /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/stddef.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stddef.in.h --- gettext-0.17/gettext-tools/libgettextpo/stddef.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stddef.in.h 2010-02-16 21:33:15.000000000 +0000 @@ -0,0 +1,86 @@ +/* A substitute for POSIX 2008 , for platforms that have issues. + + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake. */ + +/* + * POSIX 2008 for platforms that have issues. + * + */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_wchar_t || defined __need_size_t \ + || defined __need_ptrdiff_t || defined __need_NULL \ + || defined __need_wint_t +/* Special invocation convention inside gcc header files. In + particular, gcc provides a version of that blindly + redefines NULL even when __need_wint_t was defined, even though + wint_t is not normally provided by . Hence, we must + remember if special invocation has ever been used to obtain wint_t, + in which case we need to clean up NULL yet again. */ + +# if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) +# ifdef __need_wint_t +# undef _GL_STDDEF_H +# define _GL_STDDEF_WINT_T +# endif +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ +# endif + +#else +/* Normal invocation convention. */ + +# ifndef _GL_STDDEF_H + +/* The include_next requires a split double-inclusion guard. */ + +# @INCLUDE_NEXT@ @NEXT_STDDEF_H@ + +# ifndef _GL_STDDEF_H +# define _GL_STDDEF_H + +/* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ +#if @REPLACE_NULL@ +# undef NULL +# ifdef __cplusplus + /* ISO C++ says that the macro NULL must expand to an integer constant + expression, hence '((void *) 0)' is not allowed in C++. */ +# if __GNUG__ >= 3 + /* GNU C++ has a __null macro that behaves like an integer ('int' or + 'long') but has the same size as a pointer. Use that, to avoid + warnings. */ +# define NULL __null +# else +# define NULL 0L +# endif +# else +# define NULL ((void *) 0) +# endif +#endif + +/* Some platforms lack wchar_t. */ +#if !@HAVE_WCHAR_T@ +# define wchar_t int +#endif + +# endif /* _GL_STDDEF_H */ +# endif /* _GL_STDDEF_H */ +#endif /* __need_XXX */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdint.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdint.in.h --- gettext-0.17/gettext-tools/libgettextpo/stdint.in.h 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdint.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -1,10 +1,10 @@ -/* Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. +/* Copyright (C) 2001-2002, 2004-2010 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -23,6 +23,16 @@ #ifndef _GL_STDINT_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* When including a system file that in turn includes , + use the system , not our substitute. This avoids + problems with (for example) VMS, whose includes + . */ +#define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H + /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef @@ -66,9 +76,7 @@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ -# define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # include -# undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H #elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ @@ -82,14 +90,7 @@ # include #endif -#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS - -/* Get WCHAR_MIN, WCHAR_MAX. */ -# if ! (defined WCHAR_MIN && defined WCHAR_MAX) -# include -# endif - -#endif +#undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* Minimum and maximum values for a integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify @@ -102,8 +103,8 @@ ((signed) \ ? ~ _STDINT_MIN (signed, bits, zero) \ : /* The expression for the unsigned case. The subtraction of (signed) \ - is a nop in the unsigned case and avoids "signed integer overflow" \ - warnings in the signed case. */ \ + is a nop in the unsigned case and avoids "signed integer overflow" \ + warnings in the signed case. */ \ ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) /* 7.18.1.1. Exact-width integer types */ @@ -113,46 +114,58 @@ #undef int8_t #undef uint8_t -#define int8_t signed char -#define uint8_t unsigned char +typedef signed char gl_int8_t; +typedef unsigned char gl_uint8_t; +#define int8_t gl_int8_t +#define uint8_t gl_uint8_t #undef int16_t #undef uint16_t -#define int16_t short int -#define uint16_t unsigned short int +typedef short int gl_int16_t; +typedef unsigned short int gl_uint16_t; +#define int16_t gl_int16_t +#define uint16_t gl_uint16_t #undef int32_t #undef uint32_t -#define int32_t int -#define uint32_t unsigned int +typedef int gl_int32_t; +typedef unsigned int gl_uint32_t; +#define int32_t gl_int32_t +#define uint32_t gl_uint32_t /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ #if LONG_MAX >> 31 >> 31 == 1 # undef int64_t -# define int64_t long int +typedef long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif defined _MSC_VER # undef int64_t -# define int64_t __int64 +typedef __int64 gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #elif @HAVE_LONG_LONG_INT@ # undef int64_t -# define int64_t long long int +typedef long long int gl_int64_t; +# define int64_t gl_int64_t # define GL_INT64_T #endif #if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t -# define uint64_t unsigned long int +typedef unsigned long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif defined _MSC_VER # undef uint64_t -# define uint64_t unsigned __int64 +typedef unsigned __int64 gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #elif @HAVE_UNSIGNED_LONG_LONG_INT@ # undef uint64_t -# define uint64_t unsigned long long int +typedef unsigned long long int gl_uint64_t; +# define uint64_t gl_uint64_t # define GL_UINT64_T #endif @@ -207,12 +220,18 @@ #undef uint_fast32_t #undef int_fast64_t #undef uint_fast64_t -#define int_fast8_t long int -#define uint_fast8_t unsigned int_fast8_t -#define int_fast16_t long int -#define uint_fast16_t unsigned int_fast16_t -#define int_fast32_t long int -#define uint_fast32_t unsigned int_fast32_t +typedef long int gl_int_fast8_t; +typedef unsigned long int gl_uint_fast8_t; +typedef long int gl_int_fast16_t; +typedef unsigned long int gl_uint_fast16_t; +typedef long int gl_int_fast32_t; +typedef unsigned long int gl_uint_fast32_t; +#define int_fast8_t gl_int_fast8_t +#define uint_fast8_t gl_uint_fast8_t +#define int_fast16_t gl_int_fast16_t +#define uint_fast16_t gl_uint_fast16_t +#define int_fast32_t gl_int_fast32_t +#define uint_fast32_t gl_uint_fast32_t #ifdef GL_INT64_T # define int_fast64_t int64_t #endif @@ -224,8 +243,10 @@ #undef intptr_t #undef uintptr_t -#define intptr_t long int -#define uintptr_t unsigned long int +typedef long int gl_intptr_t; +typedef unsigned long int gl_uintptr_t; +#define intptr_t gl_intptr_t +#define uintptr_t gl_uintptr_t /* 7.18.1.5. Greatest-width integer types */ @@ -234,20 +255,24 @@ #undef intmax_t #if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1 -# define intmax_t long long int +typedef long long int gl_intmax_t; +# define intmax_t gl_intmax_t #elif defined GL_INT64_T # define intmax_t int64_t #else -# define intmax_t long int +typedef long int gl_intmax_t; +# define intmax_t gl_intmax_t #endif #undef uintmax_t #if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1 -# define uintmax_t unsigned long long int +typedef unsigned long long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #elif defined GL_UINT64_T # define uintmax_t uint64_t #else -# define uintmax_t unsigned long int +typedef unsigned long int gl_uintmax_t; +# define uintmax_t gl_uintmax_t #endif /* Verify that intmax_t and uintmax_t have the same size. Too much code @@ -410,27 +435,54 @@ /* ptrdiff_t limits */ #undef PTRDIFF_MIN #undef PTRDIFF_MAX -#define PTRDIFF_MIN \ - _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) -#define PTRDIFF_MAX \ - _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l) +# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) +# else +# define PTRDIFF_MIN _STDINT_MIN (1, 32, 0) +# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) +# endif +#else +# define PTRDIFF_MIN \ + _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +# define PTRDIFF_MAX \ + _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) +#endif /* sig_atomic_t limits */ #undef SIG_ATOMIC_MIN #undef SIG_ATOMIC_MAX #define SIG_ATOMIC_MIN \ _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) #define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ - 0@SIG_ATOMIC_T_SUFFIX@) + 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ #undef SIZE_MAX -#define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#if @APPLE_UNIVERSAL_BUILD@ +# ifdef _LP64 +# define SIZE_MAX _STDINT_MAX (0, 64, 0ul) +# else +# define SIZE_MAX _STDINT_MAX (0, 32, 0ul) +# endif +#else +# define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) +#endif /* wchar_t limits */ +/* Get WCHAR_MIN, WCHAR_MAX. + This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested + includes -> -> -> , and the latter includes + and assumes its types are already defined. */ +#if ! (defined WCHAR_MIN && defined WCHAR_MAX) +# define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +# include +# undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H +#endif #undef WCHAR_MIN #undef WCHAR_MAX #define WCHAR_MIN \ diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdio.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h --- gettext-0.17/gettext-tools/libgettextpo/stdio.in.h 2007-10-07 13:36:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio.in.h 2010-05-17 19:58:03.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -16,6 +16,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_FILE || defined __need___FILE /* Special invocation convention inside glibc header files. */ @@ -32,351 +36,1036 @@ #ifndef _GL_STDIO_H #define _GL_STDIO_H +/* Get va_list. Needed on many systems, including glibc 2.8. */ #include + #include -#if (@GNULIB_FSEEKO@ && @REPLACE_FSEEKO@) \ - || (@GNULIB_FTELLO@ && @REPLACE_FTELLO@) \ - || (@GNULIB_GETDELIM@ && !@HAVE_DECL_GETDELIM@) \ - || (@GNULIB_GETLINE@ && (!@HAVE_DECL_GETLINE@ || @REPLACE_GETLINE@)) -/* Get off_t and ssize_t. */ -# include -#endif +/* Get off_t and ssize_t. Needed on many systems, including glibc 2.8. */ +#include #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ -#ifdef __cplusplus -extern "C" { -#endif +/* The definition of _GL_WARN_ON_USE is copied here. */ +/* Macros for stringification. */ +#define _GL_STDIO_STRINGIZE(token) #token +#define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) -#if @GNULIB_FPRINTF_POSIX@ -# if @REPLACE_FPRINTF@ -# define fprintf rpl_fprintf -extern int fprintf (FILE *fp, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); -# endif -#elif defined GNULIB_POSIXCHECK -# undef fprintf -# define fprintf \ - (GL_LINK_WARNING ("fprintf is not always POSIX compliant - " \ - "use gnulib module fprintf-posix for portable " \ - "POSIX compliance"), \ - fprintf) -#endif -#if @GNULIB_VFPRINTF_POSIX@ -# if @REPLACE_VFPRINTF@ -# define vfprintf rpl_vfprintf -extern int vfprintf (FILE *fp, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if @GNULIB_DPRINTF@ +# if @REPLACE_DPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dprintf rpl_dprintf +# endif +_GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...)); +# else +# if !@HAVE_DPRINTF@ +_GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...)); # endif +_GL_CXXALIASWARN (dprintf); #elif defined GNULIB_POSIXCHECK -# undef vfprintf -# define vfprintf(s,f,a) \ - (GL_LINK_WARNING ("vfprintf is not always POSIX compliant - " \ - "use gnulib module vfprintf-posix for portable " \ - "POSIX compliance"), \ - vfprintf (s, f, a)) -#endif - -#if @GNULIB_PRINTF_POSIX@ -# if @REPLACE_PRINTF@ -/* Don't break __attribute__((format(printf,M,N))). */ -# define printf __printf__ -extern int printf (const char *format, ...) - __attribute__ ((__format__ (__printf__, 1, 2))); +# undef dprintf +# if HAVE_RAW_DECL_DPRINTF +_GL_WARN_ON_USE (dprintf, "dprintf is unportable - " + "use gnulib module dprintf for portability"); # endif -#elif defined GNULIB_POSIXCHECK -# undef printf -# define printf \ - (GL_LINK_WARNING ("printf is not always POSIX compliant - " \ - "use gnulib module printf-posix for portable " \ - "POSIX compliance"), \ - printf) -/* Don't break __attribute__((format(printf,M,N))). */ -# define format(kind,m,n) format (__##kind##__, m, n) -# define __format__(kind,m,n) __format__ (__##kind##__, m, n) -# define ____printf____ __printf__ -# define ____scanf____ __scanf__ -# define ____strftime____ __strftime__ -# define ____strfmon____ __strfmon__ -#endif - -#if @GNULIB_VPRINTF_POSIX@ -# if @REPLACE_VPRINTF@ -# define vprintf rpl_vprintf -extern int vprintf (const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 1, 0))); -# endif -#elif defined GNULIB_POSIXCHECK -# undef vprintf -# define vprintf(f,a) \ - (GL_LINK_WARNING ("vprintf is not always POSIX compliant - " \ - "use gnulib module vprintf-posix for portable " \ - "POSIX compliance"), \ - vprintf (f, a)) #endif -#if @GNULIB_SNPRINTF@ -# if @REPLACE_SNPRINTF@ -# define snprintf rpl_snprintf -# endif -# if @REPLACE_SNPRINTF@ || !@HAVE_DECL_SNPRINTF@ -extern int snprintf (char *str, size_t size, const char *format, ...) - __attribute__ ((__format__ (__printf__, 3, 4))); +#if @GNULIB_FCLOSE@ +/* Close STREAM and its underlying file descriptor. */ +# if @REPLACE_FCLOSE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fclose rpl_fclose +# endif +_GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); +# else +_GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); # endif +_GL_CXXALIASWARN (fclose); #elif defined GNULIB_POSIXCHECK -# undef snprintf -# define snprintf \ - (GL_LINK_WARNING ("snprintf is unportable - " \ - "use gnulib module snprintf for portability"), \ - snprintf) +# undef fclose +/* Assume fclose is always declared. */ +_GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " + "use gnulib module fclose for portable POSIX compliance"); #endif -#if @GNULIB_VSNPRINTF@ -# if @REPLACE_VSNPRINTF@ -# define vsnprintf rpl_vsnprintf -# endif -# if @REPLACE_VSNPRINTF@ || !@HAVE_DECL_VSNPRINTF@ -extern int vsnprintf (char *str, size_t size, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 3, 0))); +#if @GNULIB_FFLUSH@ +/* Flush all pending data on STREAM according to POSIX rules. Both + output and seekable input streams are supported. + Note! LOSS OF DATA can occur if fflush is applied on an input stream + that is _not_seekable_ or on an update stream that is _not_seekable_ + and in which the most recent operation was input. Seekability can + be tested with lseek(fileno(fp),0,SEEK_CUR). */ +# if @REPLACE_FFLUSH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fflush rpl_fflush +# endif +_GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); +_GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); +# else +_GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); # endif +_GL_CXXALIASWARN (fflush); #elif defined GNULIB_POSIXCHECK -# undef vsnprintf -# define vsnprintf(b,s,f,a) \ - (GL_LINK_WARNING ("vsnprintf is unportable - " \ - "use gnulib module vsnprintf for portability"), \ - vsnprintf (b, s, f, a)) +# undef fflush +/* Assume fflush is always declared. */ +_GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " + "use gnulib module fflush for portable POSIX compliance"); #endif -#if @GNULIB_SPRINTF_POSIX@ -# if @REPLACE_SPRINTF@ -# define sprintf rpl_sprintf -extern int sprintf (char *str, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); +/* It is very rare that the developer ever has full control of stdin, + so any use of gets warrants an unconditional warning. Assume it is + always declared, since it is required by C89. */ +#undef gets +_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); + +#if @GNULIB_FOPEN@ +# if @REPLACE_FOPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fopen +# define fopen rpl_fopen +# endif +_GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); +# else +_GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); # endif +_GL_CXXALIASWARN (fopen); #elif defined GNULIB_POSIXCHECK -# undef sprintf -# define sprintf \ - (GL_LINK_WARNING ("sprintf is not always POSIX compliant - " \ - "use gnulib module sprintf-posix for portable " \ - "POSIX compliance"), \ - sprintf) +# undef fopen +/* Assume fopen is always declared. */ +_GL_WARN_ON_USE (fopen, "fopen on Win32 platforms is not POSIX compatible - " + "use gnulib module fopen for portability"); +#endif + +#if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ +# if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ + || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fprintf rpl_fprintf +# endif +# define GNULIB_overrides_fprintf 1 +_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); +# endif +_GL_CXXALIASWARN (fprintf); #endif - -#if @GNULIB_VSPRINTF_POSIX@ -# if @REPLACE_VSPRINTF@ -# define vsprintf rpl_vsprintf -extern int vsprintf (char *str, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_fprintf +# undef fprintf +# endif +/* Assume fprintf is always declared. */ +_GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " + "use gnulib module fprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_FPURGE@ +/* Discard all pending buffered I/O data on STREAM. + STREAM must not be wide-character oriented. + When discarding pending output, the file position is set back to where it + was before the write calls. When discarding pending input, the file + position is advanced to match the end of the previously read input. + Return 0 if successful. Upon error, return -1 and set errno. */ +# if @REPLACE_FPURGE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fpurge rpl_fpurge +# endif +_GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); +# else +# if !@HAVE_DECL_FPURGE@ +_GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); # endif +_GL_CXXALIASWARN (fpurge); #elif defined GNULIB_POSIXCHECK -# undef vsprintf -# define vsprintf(b,f,a) \ - (GL_LINK_WARNING ("vsprintf is not always POSIX compliant - " \ - "use gnulib module vsprintf-posix for portable " \ - "POSIX compliance"), \ - vsprintf (b, f, a)) +# undef fpurge +# if HAVE_RAW_DECL_FPURGE +_GL_WARN_ON_USE (fpurge, "fpurge is not always present - " + "use gnulib module fpurge for portability"); +# endif #endif -#if @GNULIB_VASPRINTF@ -# if @REPLACE_VASPRINTF@ -# define asprintf rpl_asprintf -# define vasprintf rpl_vasprintf -# endif -# if @REPLACE_VASPRINTF@ || !@HAVE_VASPRINTF@ - /* Write formatted output to a string dynamically allocated with malloc(). - If the memory allocation succeeds, store the address of the string in - *RESULT and return the number of resulting bytes, excluding the trailing - NUL. Upon memory allocation error, or some other error, return -1. */ - extern int asprintf (char **result, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); - extern int vasprintf (char **result, const char *format, va_list args) - __attribute__ ((__format__ (__printf__, 2, 0))); +#if @GNULIB_FPUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputc +# define fputc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); # endif +_GL_CXXALIASWARN (fputc); #endif -#if @GNULIB_FOPEN@ -# if @REPLACE_FOPEN@ -# define fopen rpl_fopen -extern FILE * fopen (const char *filename, const char *mode); +#if @GNULIB_FPUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fputs +# define fputs rpl_fputs +# endif +_GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fopen -# define fopen(f,m) \ - (GL_LINK_WARNING ("fopen on Win32 platforms is not POSIX compatible - " \ - "use gnulib module fopen for portability"), \ - fopen (f, m)) +_GL_CXXALIASWARN (fputs); #endif #if @GNULIB_FREOPEN@ # if @REPLACE_FREOPEN@ -# define freopen rpl_freopen -extern FILE * freopen (const char *filename, const char *mode, FILE *stream); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef freopen +# define freopen rpl_freopen +# endif +_GL_FUNCDECL_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); +# else +_GL_CXXALIAS_SYS (freopen, FILE *, + (const char *filename, const char *mode, FILE *stream)); # endif +_GL_CXXALIASWARN (freopen); #elif defined GNULIB_POSIXCHECK # undef freopen -# define freopen(f,m,s) \ - (GL_LINK_WARNING ("freopen on Win32 platforms is not POSIX compatible - " \ - "use gnulib module freopen for portability"), \ - freopen (f, m, s)) +/* Assume freopen is always declared. */ +_GL_WARN_ON_USE (freopen, "freopen on Win32 platforms is not POSIX compatible - " + "use gnulib module freopen for portability"); #endif -#if @GNULIB_FSEEKO@ -# if @REPLACE_FSEEKO@ -/* Provide fseek, fseeko functions that are aware of a preceding - fflush(), and which detect pipes. */ -# define fseeko rpl_fseeko -extern int fseeko (FILE *fp, off_t offset, int whence); -# define fseek(fp, offset, whence) fseeko (fp, (off_t)(offset), whence) + +/* Set up the following warnings, based on which modules are in use. + GNU Coding Standards discourage the use of fseek, since it imposes + an arbitrary limitation on some 32-bit hosts. Remember that the + fseek module depends on the fseeko module, so we only have three + cases to consider: + + 1. The developer is not using either module. Issue a warning under + GNULIB_POSIXCHECK for both functions, to remind them that both + functions have bugs on some systems. _GL_NO_LARGE_FILES has no + impact on this warning. + + 2. The developer is using both modules. They may be unaware of the + arbitrary limitations of fseek, so issue a warning under + GNULIB_POSIXCHECK. On the other hand, they may be using both + modules intentionally, so the developer can define + _GL_NO_LARGE_FILES in the compilation units where the use of fseek + is safe, to silence the warning. + + 3. The developer is using the fseeko module, but not fseek. Gnulib + guarantees that fseek will still work around platform bugs in that + case, but we presume that the developer is aware of the pitfalls of + fseek and was trying to avoid it, so issue a warning even when + GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be + defined to silence the warning in particular compilation units. + In C++ compilations with GNULIB_NAMESPACE, in order to avoid that + fseek gets defined as a macro, it is recommended that the developer + uses the fseek module, even if he is not calling the fseek function. + + Most gnulib clients that perform stream operations should fall into + category 3. */ + +#if @GNULIB_FSEEK@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 2, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseek +# define fseek rpl_fseek +# endif +_GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); +# else +_GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fseeko -# define fseeko(f,o,w) \ - (GL_LINK_WARNING ("fseeko is unportable - " \ - "use gnulib module fseeko for portability"), \ - fseeko (f, o, w)) +_GL_CXXALIASWARN (fseek); #endif -#if @GNULIB_FSEEK@ && @REPLACE_FSEEK@ -extern int rpl_fseek (FILE *fp, long offset, int whence); -# undef fseek -# if defined GNULIB_POSIXCHECK -# define fseek(f,o,w) \ - (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use fseeko function for handling of large files"), \ - rpl_fseek (f, o, w)) +#if @GNULIB_FSEEKO@ +# if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES +# define _GL_FSEEK_WARN /* Category 3, above. */ +# undef fseek +# endif +# if @REPLACE_FSEEKO@ +/* Provide an fseeko function that is aware of a preceding fflush(), and which + detects pipes. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fseeko +# define fseeko rpl_fseeko +# endif +_GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); # else +# if ! @HAVE_FSEEKO@ +_GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); +# endif +_GL_CXXALIASWARN (fseeko); +# if (@REPLACE_FSEEKO@ || !@HAVE_FSEEKO@) && !@GNULIB_FSEEK@ + /* Provide an fseek function that is consistent with fseeko. */ + /* In order to avoid that fseek gets defined as a macro here, the + developer can request the 'fseek' module. */ +# undef fseek # define fseek rpl_fseek +static inline int _GL_ARG_NONNULL ((1)) +rpl_fseek (FILE *fp, long offset, int whence) +{ +# if @REPLACE_FSEEKO@ + return rpl_fseeko (fp, offset, whence); +# else + return fseeko (fp, offset, whence); +# endif +} # endif #elif defined GNULIB_POSIXCHECK -# ifndef fseek -# define fseek(f,o,w) \ - (GL_LINK_WARNING ("fseek cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use fseeko function for handling of large files"), \ - fseek (f, o, w)) +# define _GL_FSEEK_WARN /* Category 1, above. */ +# undef fseek +# undef fseeko +# if HAVE_RAW_DECL_FSEEKO +_GL_WARN_ON_USE (fseeko, "fseeko is unportable - " + "use gnulib module fseeko for portability"); # endif #endif -#if @GNULIB_FTELLO@ -# if @REPLACE_FTELLO@ -# define ftello rpl_ftello -extern off_t ftello (FILE *fp); -# define ftell(fp) ftello (fp) +#ifdef _GL_FSEEK_WARN +# undef _GL_FSEEK_WARN +/* Here, either fseek is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_fseek (declared above). */ +_GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use fseeko function for handling of large files"); +#endif + + +/* ftell, ftello. See the comments on fseek/fseeko. */ + +#if @GNULIB_FTELL@ +# if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 2, above. */ +# undef ftell # endif -#elif defined GNULIB_POSIXCHECK -# undef ftello -# define ftello(f) \ - (GL_LINK_WARNING ("ftello is unportable - " \ - "use gnulib module ftello for portability"), \ - ftello (f)) +# if @REPLACE_FTELL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftell +# define ftell rpl_ftell +# endif +_GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); +# else +_GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftell); #endif -#if @GNULIB_FTELL@ && @REPLACE_FTELL@ -extern long rpl_ftell (FILE *fp); -# undef ftell -# if GNULIB_POSIXCHECK -# define ftell(f) \ - (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use ftello function for handling of large files"), \ - rpl_ftell (f)) +#if @GNULIB_FTELLO@ +# if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES +# define _GL_FTELL_WARN /* Category 3, above. */ +# undef ftell +# endif +# if @REPLACE_FTELLO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ftello +# define ftello rpl_ftello +# endif +_GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); # else +# if ! @HAVE_FTELLO@ +_GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); +# endif +_GL_CXXALIASWARN (ftello); +# if (@REPLACE_FTELLO@ || !@HAVE_FTELLO@) && !@GNULIB_FTELL@ + /* Provide an ftell function that is consistent with ftello. */ + /* In order to avoid that ftell gets defined as a macro here, the + developer can request the 'ftell' module. */ +# undef ftell # define ftell rpl_ftell +static inline long _GL_ARG_NONNULL ((1)) +rpl_ftell (FILE *f) +{ +# if @REPLACE_FTELLO@ + return rpl_ftello (f); +# else + return ftello (f); +# endif +} # endif #elif defined GNULIB_POSIXCHECK -# ifndef ftell -# define ftell(f) \ - (GL_LINK_WARNING ("ftell cannot handle files larger than 4 GB " \ - "on 32-bit platforms - " \ - "use ftello function for handling of large files"), \ - ftell (f)) +# define _GL_FTELL_WARN /* Category 1, above. */ +# undef ftell +# undef ftello +# if HAVE_RAW_DECL_FTELLO +_GL_WARN_ON_USE (ftello, "ftello is unportable - " + "use gnulib module ftello for portability"); # endif #endif -#if @GNULIB_FFLUSH@ -# if @REPLACE_FFLUSH@ -# define fflush rpl_fflush - /* Flush all pending data on STREAM according to POSIX rules. Both - output and seekable input streams are supported. - Note! LOSS OF DATA can occur if fflush is applied on an input stream - that is _not_seekable_ or on an update stream that is _not_seekable_ - and in which the most recent operation was input. Seekability can - be tested with lseek(fileno(fp),0,SEEK_CUR). */ - extern int fflush (FILE *gl_stream); +#ifdef _GL_FTELL_WARN +# undef _GL_FTELL_WARN +/* Here, either ftell is undefined (but C89 guarantees that it is + declared), or it is defined as rpl_ftell (declared above). */ +_GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " + "on 32-bit platforms - " + "use ftello function for handling of large files"); +#endif + + +#if @GNULIB_FWRITE@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fwrite +# define fwrite rpl_fwrite +# endif +_GL_FUNCDECL_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream) + _GL_ARG_NONNULL ((1, 4))); +_GL_CXXALIAS_RPL (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); +# else +_GL_CXXALIAS_SYS (fwrite, size_t, + (const void *ptr, size_t s, size_t n, FILE *stream)); # endif -#elif defined GNULIB_POSIXCHECK -# undef fflush -# define fflush(f) \ - (GL_LINK_WARNING ("fflush is not always POSIX compliant - " \ - "use gnulib module fflush for portable " \ - "POSIX compliance"), \ - fflush (f)) +_GL_CXXALIASWARN (fwrite); #endif #if @GNULIB_GETDELIM@ -# if !@HAVE_DECL_GETDELIM@ /* Read input, up to (and including) the next occurrence of DELIMITER, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ -extern ssize_t getdelim (char **lineptr, size_t *linesize, int delimiter, - FILE *stream); +# if @REPLACE_GETDELIM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getdelim +# define getdelim rpl_getdelim +# endif +_GL_FUNCDECL_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +_GL_CXXALIAS_RPL (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); +# else +# if !@HAVE_DECL_GETDELIM@ +_GL_FUNCDECL_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream) + _GL_ARG_NONNULL ((1, 2, 4))); +# endif +_GL_CXXALIAS_SYS (getdelim, ssize_t, + (char **lineptr, size_t *linesize, int delimiter, + FILE *stream)); # endif +_GL_CXXALIASWARN (getdelim); #elif defined GNULIB_POSIXCHECK # undef getdelim -# define getdelim(l, s, d, f) \ - (GL_LINK_WARNING ("getdelim is unportable - " \ - "use gnulib module getdelim for portability"), \ - getdelim (l, s, d, f)) +# if HAVE_RAW_DECL_GETDELIM +_GL_WARN_ON_USE (getdelim, "getdelim is unportable - " + "use gnulib module getdelim for portability"); +# endif #endif #if @GNULIB_GETLINE@ -# if @REPLACE_GETLINE@ -# undef getline -# define getline rpl_getline -# endif -# if !@HAVE_DECL_GETLINE@ || @REPLACE_GETLINE@ /* Read a line, up to (and including) the next newline, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ -extern ssize_t getline (char **lineptr, size_t *linesize, FILE *stream); +# if @REPLACE_GETLINE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getline +# define getline rpl_getline +# endif +_GL_FUNCDECL_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +_GL_CXXALIAS_RPL (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# else +# if !@HAVE_DECL_GETLINE@ +_GL_FUNCDECL_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (getline, ssize_t, + (char **lineptr, size_t *linesize, FILE *stream)); +# endif +# if @HAVE_DECL_GETLINE@ +_GL_CXXALIASWARN (getline); # endif #elif defined GNULIB_POSIXCHECK # undef getline -# define getline(l, s, f) \ - (GL_LINK_WARNING ("getline is unportable - " \ - "use gnulib module getline for portability"), \ - getline (l, s, f)) +# if HAVE_RAW_DECL_GETLINE +_GL_WARN_ON_USE (getline, "getline is unportable - " + "use gnulib module getline for portability"); +# endif #endif -#ifdef __cplusplus -} +#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ +struct obstack; +/* Grow an obstack with formatted output. Return the number of + bytes added to OBS. No trailing nul byte is added, and the + object should be closed with obstack_finish before use. Upon + memory allocation error, call obstack_alloc_failed_handler. Upon + other error, return -1. */ +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_printf rpl_obstack_printf +# endif +_GL_FUNCDECL_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_printf, int, + (struct obstack *obs, const char *format, ...)); +# endif +_GL_CXXALIASWARN (obstack_printf); +# if @REPLACE_OBSTACK_PRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define obstack_vprintf rpl_obstack_vprintf +# endif +_GL_FUNCDECL_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# else +# if !@HAVE_DECL_OBSTACK_PRINTF@ +_GL_FUNCDECL_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (obstack_vprintf, int, + (struct obstack *obs, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (obstack_vprintf); +#endif + +#if @GNULIB_PERROR@ +/* Print a message to standard error, describing the value of ERRNO, + (if STRING is not NULL and not empty) prefixed with STRING and ": ", + and terminated with a newline. */ +# if @REPLACE_PERROR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define perror rpl_perror +# endif +_GL_FUNCDECL_RPL (perror, void, (const char *string)); +_GL_CXXALIAS_RPL (perror, void, (const char *string)); +# else +_GL_CXXALIAS_SYS (perror, void, (const char *string)); +# endif +_GL_CXXALIASWARN (perror); +#elif defined GNULIB_POSIXCHECK +# undef perror +/* Assume perror is always declared. */ +_GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " + "use gnulib module perror for portability"); +#endif + +#if @GNULIB_POPEN@ +# if @REPLACE_POPEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef popen +# define popen rpl_popen +# endif +_GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); +# else +_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); +# endif +_GL_CXXALIASWARN (popen); +#elif defined GNULIB_POSIXCHECK +# undef popen +# if HAVE_RAW_DECL_POPEN +_GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " + "use gnulib module popen or pipe for more portability"); +# endif +#endif + +#if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ +# if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ + || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if defined __GNUC__ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +/* Don't break __attribute__((format(printf,M,N))). */ +# define printf __printf__ +# endif +_GL_FUNCDECL_RPL_1 (__printf__, int, + (const char *format, ...) + __asm__ (@ASM_SYMBOL_PREFIX@ + _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); +# else +_GL_FUNCDECL_RPL (printf, int, + (const char *format, ...) + __attribute__ ((__format__ (__printf__, 1, 2))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (printf, printf, int, (const char *format, ...)); +# endif +# define GNULIB_overrides_printf 1 +# else +_GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); +# endif +_GL_CXXALIASWARN (printf); +#endif +#if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_printf +# undef printf +# endif +/* Assume printf is always declared. */ +_GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " + "use gnulib module printf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_PUTC@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putc +# define putc rpl_fputc +# endif +_GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); +# else +_GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); +# endif +_GL_CXXALIASWARN (putc); +#endif + +#if @GNULIB_PUTCHAR@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putchar +# define putchar rpl_putchar +# endif +_GL_FUNCDECL_RPL (putchar, int, (int c)); +_GL_CXXALIAS_RPL (putchar, int, (int c)); +# else +_GL_CXXALIAS_SYS (putchar, int, (int c)); +# endif +_GL_CXXALIASWARN (putchar); +#endif + +#if @GNULIB_PUTS@ +# if @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef puts +# define puts rpl_puts +# endif +_GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (puts, int, (const char *string)); +# else +_GL_CXXALIAS_SYS (puts, int, (const char *string)); +# endif +_GL_CXXALIASWARN (puts); +#endif + +#if @GNULIB_REMOVE@ +# if @REPLACE_REMOVE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef remove +# define remove rpl_remove +# endif +_GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (remove, int, (const char *name)); +# else +_GL_CXXALIAS_SYS (remove, int, (const char *name)); +# endif +_GL_CXXALIASWARN (remove); +#elif defined GNULIB_POSIXCHECK +# undef remove +/* Assume remove is always declared. */ +_GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " + "use gnulib module remove for more portability"); +#endif + +#if @GNULIB_RENAME@ +# if @REPLACE_RENAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef rename +# define rename rpl_rename +# endif +_GL_FUNCDECL_RPL (rename, int, + (const char *old_filename, const char *new_filename) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (rename, int, + (const char *old_filename, const char *new_filename)); +# else +_GL_CXXALIAS_SYS (rename, int, + (const char *old_filename, const char *new_filename)); +# endif +_GL_CXXALIASWARN (rename); +#elif defined GNULIB_POSIXCHECK +# undef rename +/* Assume rename is always declared. */ +_GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " + "use gnulib module rename for more portability"); +#endif + +#if @GNULIB_RENAMEAT@ +# if @REPLACE_RENAMEAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef renameat +# define renameat rpl_renameat +# endif +_GL_FUNCDECL_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# else +# if !@HAVE_RENAMEAT@ +_GL_FUNCDECL_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (renameat, int, + (int fd1, char const *file1, int fd2, char const *file2)); +# endif +_GL_CXXALIASWARN (renameat); +#elif defined GNULIB_POSIXCHECK +# undef renameat +# if HAVE_RAW_DECL_RENAMEAT +_GL_WARN_ON_USE (renameat, "renameat is not portable - " + "use gnulib module renameat for portability"); +# endif +#endif + +#if @GNULIB_SNPRINTF@ +# if @REPLACE_SNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define snprintf rpl_snprintf +# endif +_GL_FUNCDECL_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# else +# if !@HAVE_DECL_SNPRINTF@ +_GL_FUNCDECL_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (snprintf, int, + (char *str, size_t size, const char *format, ...)); +# endif +_GL_CXXALIASWARN (snprintf); +#elif defined GNULIB_POSIXCHECK +# undef snprintf +# if HAVE_RAW_DECL_SNPRINTF +_GL_WARN_ON_USE (snprintf, "snprintf is unportable - " + "use gnulib module snprintf for portability"); +# endif #endif +/* Some people would argue that sprintf should be handled like gets + (for example, OpenBSD issues a link warning for both functions), + since both can cause security holes due to buffer overruns. + However, we believe that sprintf can be used safely, and is more + efficient than snprintf in those safe cases; and as proof of our + belief, we use sprintf in several gnulib modules. So this header + intentionally avoids adding a warning to sprintf except when + GNULIB_POSIXCHECK is defined. */ + +#if @GNULIB_SPRINTF_POSIX@ +# if @REPLACE_SPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define sprintf rpl_sprintf +# endif +_GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); +# else +_GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); +# endif +_GL_CXXALIASWARN (sprintf); +#elif defined GNULIB_POSIXCHECK +# undef sprintf +/* Assume sprintf is always declared. */ +_GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " + "use gnulib module sprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_TMPFILE@ +# if @REPLACE_TMPFILE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define tmpfile rpl_tmpfile +# endif +_GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); +_GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); +# else +_GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); +# endif +_GL_CXXALIASWARN (tmpfile); +#elif defined GNULIB_POSIXCHECK +# undef tmpfile +# if HAVE_RAW_DECL_TMPFILE +_GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " + "use gnulib module tmpfile for portability"); +# endif +#endif + +#if @GNULIB_VASPRINTF@ +/* Write formatted output to a string dynamically allocated with malloc(). + If the memory allocation succeeds, store the address of the string in + *RESULT and return the number of resulting bytes, excluding the trailing + NUL. Upon memory allocation error, or some other error, return -1. */ +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define asprintf rpl_asprintf +# endif +_GL_FUNCDECL_RPL (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (asprintf, int, + (char **result, const char *format, ...)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (asprintf, int, + (char **result, const char *format, ...) + __attribute__ ((__format__ (__printf__, 2, 3))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (asprintf, int, + (char **result, const char *format, ...)); +# endif +_GL_CXXALIASWARN (asprintf); +# if @REPLACE_VASPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vasprintf rpl_vasprintf +# endif +_GL_FUNCDECL_RPL (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vasprintf, int, + (char **result, const char *format, va_list args)); +# else +# if !@HAVE_VASPRINTF@ +_GL_FUNCDECL_SYS (vasprintf, int, + (char **result, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (vasprintf, int, + (char **result, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vasprintf); +#endif + +#if @GNULIB_VDPRINTF@ +# if @REPLACE_VDPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vdprintf rpl_vdprintf +# endif +_GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args)); +# else +# if !@HAVE_VDPRINTF@ +_GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((2))); +# endif +/* Need to cast, because on Solaris, the third parameter will likely be + __va_list args. */ +_GL_CXXALIAS_SYS_CAST (vdprintf, int, + (int fd, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vdprintf); +#elif defined GNULIB_POSIXCHECK +# undef vdprintf +# if HAVE_RAW_DECL_VDPRINTF +_GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " + "use gnulib module vdprintf for portability"); +# endif +#endif + +#if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ +# if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ + || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vfprintf rpl_vfprintf +# endif +# define GNULIB_overrides_vfprintf 1 +_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vfprintf, int, + (FILE *fp, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vfprintf); +#endif +#if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vfprintf +# undef vfprintf +# endif +/* Assume vfprintf is always declared. */ +_GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " + "use gnulib module vfprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ +# if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ + || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@) +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vprintf rpl_vprintf +# endif +# define GNULIB_overrides_vprintf 1 +_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 1, 0))) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the second parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vprintf); +#endif +#if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK +# if !GNULIB_overrides_vprintf +# undef vprintf +# endif +/* Assume vprintf is always declared. */ +_GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " + "use gnulib module vprintf-posix for portable " + "POSIX compliance"); +#endif + +#if @GNULIB_VSNPRINTF@ +# if @REPLACE_VSNPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsnprintf rpl_vsnprintf +# endif +_GL_FUNCDECL_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +_GL_CXXALIAS_RPL (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# else +# if !@HAVE_DECL_VSNPRINTF@ +_GL_FUNCDECL_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))) + _GL_ARG_NONNULL ((3))); +# endif +_GL_CXXALIAS_SYS (vsnprintf, int, + (char *str, size_t size, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsnprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsnprintf +# if HAVE_RAW_DECL_VSNPRINTF +_GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " + "use gnulib module vsnprintf for portability"); +# endif +#endif + +#if @GNULIB_VSPRINTF_POSIX@ +# if @REPLACE_VSPRINTF@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define vsprintf rpl_vsprintf +# endif +_GL_FUNCDECL_RPL (vsprintf, int, + (char *str, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 2, 0))) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (vsprintf, int, + (char *str, const char *format, va_list args)); +# else +/* Need to cast, because on Solaris, the third parameter is + __va_list args + and GCC's fixincludes did not change this to __gnuc_va_list. */ +_GL_CXXALIAS_SYS_CAST (vsprintf, int, + (char *str, const char *format, va_list args)); +# endif +_GL_CXXALIASWARN (vsprintf); +#elif defined GNULIB_POSIXCHECK +# undef vsprintf +/* Assume vsprintf is always declared. */ +_GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " + "use gnulib module vsprintf-posix for portable " + "POSIX compliance"); +#endif + + #endif /* _GL_STDIO_H */ #endif /* _GL_STDIO_H */ #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdio-write.c gettext-0.18.1.1/gettext-tools/libgettextpo/stdio-write.c --- gettext-0.17/gettext-tools/libgettextpo/stdio-write.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdio-write.c 2010-05-17 19:58:03.000000000 +0000 @@ -0,0 +1,148 @@ +/* POSIX compatible FILE stream write function. + Copyright (C) 2008-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +/* Replace these functions only if module 'sigpipe' is requested. */ +#if GNULIB_SIGPIPE + +/* On native Windows platforms, SIGPIPE does not exist. When write() is + called on a pipe with no readers, WriteFile() fails with error + GetLastError() = ERROR_NO_DATA, and write() in consequence fails with + error EINVAL. This write() function is at the basis of the function + which flushes the buffer of a FILE stream. */ + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +# include +# include +# include + +# define WIN32_LEAN_AND_MEAN /* avoid including junk */ +# include + +# define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \ + if (ferror (stream)) \ + return (EXPRESSION); \ + else \ + { \ + RETTYPE ret; \ + SetLastError (0); \ + ret = (EXPRESSION); \ + if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream)) \ + { \ + int fd = fileno (stream); \ + if (fd >= 0 \ + && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\ + { \ + /* Try to raise signal SIGPIPE. */ \ + raise (SIGPIPE); \ + /* If it is currently blocked or ignored, change errno from \ + EINVAL to EPIPE. */ \ + errno = EPIPE; \ + } \ + } \ + return ret; \ + } + +# if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */ +int +printf (const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stdout, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */ +int +fprintf (FILE *stream, const char *format, ...) +{ + int retval; + va_list args; + + va_start (args, format); + retval = vfprintf (stream, format, args); + va_end (args); + + return retval; +} +# endif + +# if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */ +int +vprintf (const char *format, va_list args) +{ + return vfprintf (stdout, format, args); +} +# endif + +# if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */ +int +vfprintf (FILE *stream, const char *format, va_list args) +#undef vfprintf +{ + CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) +} +# endif + +int +putchar (int c) +{ + return fputc (c, stdout); +} + +int +fputc (int c, FILE *stream) +#undef fputc +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF) +} + +int +fputs (const char *string, FILE *stream) +#undef fputs +{ + CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF) +} + +int +puts (const char *string) +#undef puts +{ + FILE *stream = stdout; + CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF) +} + +size_t +fwrite (const void *ptr, size_t s, size_t n, FILE *stream) +#undef fwrite +{ + CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) +} + +# endif +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/stdlib.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/stdlib.in.h --- gettext-0.17/gettext-tools/libgettextpo/stdlib.in.h 2007-11-02 00:43:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stdlib.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -1,6 +1,6 @@ /* A GNU-like . - Copyright (C) 1995, 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,6 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined __need_malloc_and_calloc /* Special invocation convention inside glibc header files. */ @@ -31,8 +35,50 @@ #ifndef _GL_STDLIB_H #define _GL_STDLIB_H +/* NetBSD 5.0 mis-defines NULL. */ +#include + +/* Solaris declares getloadavg() in . */ +#if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ +# include +#endif + +/* OSF/1 5.1 declares 'struct random_data' in , which is included + from if _REENTRANT is defined. Include it always. */ +#if @HAVE_RANDOM_H@ +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) \ + || defined GNULIB_POSIXCHECK +# include +#endif + +#if !@HAVE_STRUCT_RANDOM_DATA@ +struct random_data +{ + int32_t *fptr; /* Front pointer. */ + int32_t *rptr; /* Rear pointer. */ + int32_t *state; /* Array of state values. */ + int rand_type; /* Type of random number generator. */ + int rand_deg; /* Degree of random number generator. */ + int rand_sep; /* Distance between front and rear. */ + int32_t *end_ptr; /* Pointer behind state table. */ +}; +#endif + +#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +/* On MacOS X 10.3, only declares mkstemp. */ +/* On Cygwin 1.7.1, only declares getsubopt. */ +/* But avoid namespace pollution on glibc systems and native Windows. */ +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ @@ -49,56 +95,84 @@ #endif -#ifdef __cplusplus -extern "C" { +#if @GNULIB_ATOLL@ +/* Parse a signed decimal integer. + Returns the value of the integer. Errors are not detected. */ +# if !@HAVE_ATOLL@ +_GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (atoll, long long, (const char *string)); +_GL_CXXALIASWARN (atoll); +#elif defined GNULIB_POSIXCHECK +# undef atoll +# if HAVE_RAW_DECL_ATOLL +_GL_WARN_ON_USE (atoll, "atoll is unportable - " + "use gnulib module atoll for portability"); +# endif #endif - -#if @GNULIB_MALLOC_POSIX@ -# if !@HAVE_MALLOC_POSIX@ -# undef malloc -# define malloc rpl_malloc -extern void * malloc (size_t size); +#if @GNULIB_CALLOC_POSIX@ +# if !@HAVE_CALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef calloc +# define calloc rpl_calloc +# endif +_GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size)); +_GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); +# else +_GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); # endif +_GL_CXXALIASWARN (calloc); #elif defined GNULIB_POSIXCHECK -# undef malloc -# define malloc(s) \ - (GL_LINK_WARNING ("malloc is not POSIX compliant everywhere - " \ - "use gnulib module malloc-posix for portability"), \ - malloc (s)) +# undef calloc +/* Assume calloc is always declared. */ +_GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " + "use gnulib module calloc-posix for portability"); #endif - -#if @GNULIB_REALLOC_POSIX@ -# if !@HAVE_REALLOC_POSIX@ -# undef realloc -# define realloc rpl_realloc -extern void * realloc (void *ptr, size_t size); +#if @GNULIB_CANONICALIZE_FILE_NAME@ +# if @REPLACE_CANONICALIZE_FILE_NAME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define canonicalize_file_name rpl_canonicalize_file_name +# endif +_GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name)); +# else +# if !@HAVE_CANONICALIZE_FILE_NAME@ +_GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif +_GL_CXXALIASWARN (canonicalize_file_name); #elif defined GNULIB_POSIXCHECK -# undef realloc -# define realloc(p,s) \ - (GL_LINK_WARNING ("realloc is not POSIX compliant everywhere - " \ - "use gnulib module realloc-posix for portability"), \ - realloc (p, s)) +# undef canonicalize_file_name +# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME +_GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - " + "use gnulib module canonicalize-lgpl for portability"); +# endif #endif - -#if @GNULIB_CALLOC_POSIX@ -# if !@HAVE_CALLOC_POSIX@ -# undef calloc -# define calloc rpl_calloc -extern void * calloc (size_t nmemb, size_t size); +#if @GNULIB_GETLOADAVG@ +/* Store max(NELEM,3) load average numbers in LOADAVG[]. + The three numbers are the load average of the last 1 minute, the last 5 + minutes, and the last 15 minutes, respectively. + LOADAVG is an array of NELEM numbers. */ +# if !@HAVE_DECL_GETLOADAVG@ +_GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem) + _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); +_GL_CXXALIASWARN (getloadavg); #elif defined GNULIB_POSIXCHECK -# undef calloc -# define calloc(n,s) \ - (GL_LINK_WARNING ("calloc is not POSIX compliant everywhere - " \ - "use gnulib module calloc-posix for portability"), \ - calloc (n, s)) +# undef getloadavg +# if HAVE_RAW_DECL_GETLOADAVG +_GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " + "use gnulib module getloadavg for portability"); +# endif #endif - #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. @@ -112,37 +186,133 @@ For more details see the POSIX:2001 specification. http://www.opengroup.org/susv3xsh/getsubopt.html */ # if !@HAVE_GETSUBOPT@ -extern int getsubopt (char **optionp, char *const *tokens, char **valuep); +_GL_FUNCDECL_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep) + _GL_ARG_NONNULL ((1, 2, 3))); # endif +_GL_CXXALIAS_SYS (getsubopt, int, + (char **optionp, char *const *tokens, char **valuep)); +_GL_CXXALIASWARN (getsubopt); #elif defined GNULIB_POSIXCHECK # undef getsubopt -# define getsubopt(o,t,v) \ - (GL_LINK_WARNING ("getsubopt is unportable - " \ - "use gnulib module getsubopt for portability"), \ - getsubopt (o, t, v)) +# if HAVE_RAW_DECL_GETSUBOPT +_GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " + "use gnulib module getsubopt for portability"); +# endif +#endif + +#if @GNULIB_GRANTPT@ +/* Change the ownership and access permission of the slave side of the + pseudo-terminal whose master side is specified by FD. */ +# if !@HAVE_GRANTPT@ +_GL_FUNCDECL_SYS (grantpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (grantpt, int, (int fd)); +_GL_CXXALIASWARN (grantpt); +#elif defined GNULIB_POSIXCHECK +# undef grantpt +# if HAVE_RAW_DECL_GRANTPT +_GL_WARN_ON_USE (ptsname, "grantpt is not portable - " + "use gnulib module grantpt for portability"); +# endif #endif +#if @GNULIB_MALLOC_POSIX@ +# if !@HAVE_MALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef malloc +# define malloc rpl_malloc +# endif +_GL_FUNCDECL_RPL (malloc, void *, (size_t size)); +_GL_CXXALIAS_RPL (malloc, void *, (size_t size)); +# else +_GL_CXXALIAS_SYS (malloc, void *, (size_t size)); +# endif +_GL_CXXALIASWARN (malloc); +#elif defined GNULIB_POSIXCHECK +# undef malloc +/* Assume malloc is always declared. */ +_GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " + "use gnulib module malloc-posix for portability"); +#endif #if @GNULIB_MKDTEMP@ -# if !@HAVE_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ -extern char * mkdtemp (char * /*template*/); +# if !@HAVE_MKDTEMP@ +_GL_FUNCDECL_SYS (mkdtemp, char *, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif +_GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); +_GL_CXXALIASWARN (mkdtemp); #elif defined GNULIB_POSIXCHECK # undef mkdtemp -# define mkdtemp(t) \ - (GL_LINK_WARNING ("mkdtemp is unportable - " \ - "use gnulib module mkdtemp for portability"), \ - mkdtemp (t)) +# if HAVE_RAW_DECL_MKDTEMP +_GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " + "use gnulib module mkdtemp for portability"); +# endif +#endif + +#if @GNULIB_MKOSTEMP@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMP@ +_GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemp); +#elif defined GNULIB_POSIXCHECK +# undef mkostemp +# if HAVE_RAW_DECL_MKOSTEMP +_GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " + "use gnulib module mkostemp for portability"); +# endif #endif +#if @GNULIB_MKOSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE before a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + The file is then created, with the specified flags, ensuring it didn't exist + before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKOSTEMPS@ +_GL_FUNCDECL_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkostemps, int, + (char * /*template*/, int /*suffixlen*/, int /*flags*/)); +_GL_CXXALIASWARN (mkostemps); +#elif defined GNULIB_POSIXCHECK +# undef mkostemps +# if HAVE_RAW_DECL_MKOSTEMPS +_GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " + "use gnulib module mkostemps for portability"); +# endif +#endif #if @GNULIB_MKSTEMP@ -# if @REPLACE_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. @@ -152,34 +322,366 @@ implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ -# define mkstemp rpl_mkstemp -extern int mkstemp (char * /*template*/); +# if @REPLACE_MKSTEMP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkstemp rpl_mkstemp +# endif +_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); # else -/* On MacOS X 10.3, only declares mkstemp. */ -# include +# if ! @HAVE_MKSTEMP@ +_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); # endif +_GL_CXXALIASWARN (mkstemp); #elif defined GNULIB_POSIXCHECK # undef mkstemp -# define mkstemp(t) \ - (GL_LINK_WARNING ("mkstemp is unportable - " \ - "use gnulib module mkstemp for portability"), \ - mkstemp (t)) +# if HAVE_RAW_DECL_MKSTEMP +_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " + "use gnulib module mkstemp for portability"); +# endif #endif +#if @GNULIB_MKSTEMPS@ +/* Create a unique temporary file from TEMPLATE. + The last six characters of TEMPLATE prior to a suffix of length + SUFFIXLEN must be "XXXXXX"; + they are replaced with a string that makes the file name unique. + The file is then created, ensuring it didn't exist before. + The file is created read-write (mask at least 0600 & ~umask), but it may be + world-readable and world-writable (mask 0666 & ~umask), depending on the + implementation. + Returns the open file descriptor if successful, otherwise -1 and errno + set. */ +# if !@HAVE_MKSTEMPS@ +_GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); +_GL_CXXALIASWARN (mkstemps); +#elif defined GNULIB_POSIXCHECK +# undef mkstemps +# if HAVE_RAW_DECL_MKSTEMPS +_GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " + "use gnulib module mkstemps for portability"); +# endif +#endif + +#if @GNULIB_PTSNAME@ +/* Return the pathname of the pseudo-terminal slave associated with + the master FD is open on, or NULL on errors. */ +# if !@HAVE_PTSNAME@ +_GL_FUNCDECL_SYS (ptsname, char *, (int fd)); +# endif +_GL_CXXALIAS_SYS (ptsname, char *, (int fd)); +_GL_CXXALIASWARN (ptsname); +#elif defined GNULIB_POSIXCHECK +# undef ptsname +# if HAVE_RAW_DECL_PTSNAME +_GL_WARN_ON_USE (ptsname, "ptsname is not portable - " + "use gnulib module ptsname for portability"); +# endif +#endif #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ -# undef putenv -# define putenv rpl_putenv -extern int putenv (char *string); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef putenv +# define putenv rpl_putenv +# endif +_GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (putenv, int, (char *string)); +# else +_GL_CXXALIAS_SYS (putenv, int, (char *string)); +# endif +_GL_CXXALIASWARN (putenv); +#endif + + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +# ifndef RAND_MAX +# define RAND_MAX 2147483647 +# endif +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); +_GL_CXXALIASWARN (random_r); +#elif defined GNULIB_POSIXCHECK +# undef random_r +# if HAVE_RAW_DECL_RANDOM_R +_GL_WARN_ON_USE (random_r, "random_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (srandom_r, int, + (unsigned int seed, struct random_data *rand_state)); +_GL_CXXALIASWARN (srandom_r); +#elif defined GNULIB_POSIXCHECK +# undef srandom_r +# if HAVE_RAW_DECL_SRANDOM_R +_GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (initstate_r, int, + (unsigned int seed, char *buf, size_t buf_size, + struct random_data *rand_state)); +_GL_CXXALIASWARN (initstate_r); +#elif defined GNULIB_POSIXCHECK +# undef initstate_r +# if HAVE_RAW_DECL_INITSTATE_R +_GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " + "use gnulib module random_r for portability"); +# endif +#endif + +#if @GNULIB_RANDOM_R@ +# if !@HAVE_RANDOM_R@ +_GL_FUNCDECL_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (setstate_r, int, + (char *arg_state, struct random_data *rand_state)); +_GL_CXXALIASWARN (setstate_r); +#elif defined GNULIB_POSIXCHECK +# undef setstate_r +# if HAVE_RAW_DECL_SETSTATE_R +_GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " + "use gnulib module random_r for portability"); # endif #endif -#ifdef __cplusplus -} +#if @GNULIB_REALLOC_POSIX@ +# if !@HAVE_REALLOC_POSIX@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef realloc +# define realloc rpl_realloc +# endif +_GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size)); +_GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); +# else +_GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); +# endif +_GL_CXXALIASWARN (realloc); +#elif defined GNULIB_POSIXCHECK +# undef realloc +/* Assume realloc is always declared. */ +_GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " + "use gnulib module realloc-posix for portability"); #endif +#if @GNULIB_REALPATH@ +# if @REPLACE_REALPATH@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define realpath rpl_realpath +# endif +_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); +# else +# if !@HAVE_REALPATH@ +_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); +# endif +_GL_CXXALIASWARN (realpath); +#elif defined GNULIB_POSIXCHECK +# undef realpath +# if HAVE_RAW_DECL_REALPATH +_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " + "canonicalize or canonicalize-lgpl for portability"); +# endif +#endif + +#if @GNULIB_RPMATCH@ +/* Test a user response to a question. + Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */ +# if !@HAVE_RPMATCH@ +_GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); +_GL_CXXALIASWARN (rpmatch); +#elif defined GNULIB_POSIXCHECK +# undef rpmatch +# if HAVE_RAW_DECL_RPMATCH +_GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " + "use gnulib module rpmatch for portability"); +# endif +#endif + +#if @GNULIB_SETENV@ +/* Set NAME to VALUE in the environment. + If REPLACE is nonzero, overwrite an existing value. */ +# if @REPLACE_SETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef setenv +# define setenv rpl_setenv +# endif +_GL_FUNCDECL_RPL (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (setenv, int, + (const char *name, const char *value, int replace)); +# else +# if !@HAVE_SETENV@ +_GL_FUNCDECL_SYS (setenv, int, + (const char *name, const char *value, int replace) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (setenv, int, + (const char *name, const char *value, int replace)); +# endif +_GL_CXXALIASWARN (setenv); +#elif defined GNULIB_POSIXCHECK +# undef setenv +# if HAVE_RAW_DECL_SETENV +_GL_WARN_ON_USE (setenv, "setenv is unportable - " + "use gnulib module setenv for portability"); +# endif +#endif + +#if @GNULIB_STRTOD@ + /* Parse a double from STRING, updating ENDP if appropriate. */ +# if @REPLACE_STRTOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strtod rpl_strtod +# endif +_GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp)); +# else +# if !@HAVE_STRTOD@ +_GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp)); +# endif +_GL_CXXALIASWARN (strtod); +#elif defined GNULIB_POSIXCHECK +# undef strtod +# if HAVE_RAW_DECL_STRTOD +_GL_WARN_ON_USE (strtod, "strtod is unportable - " + "use gnulib module strtod for portability"); +# endif +#endif + +#if @GNULIB_STRTOLL@ +/* Parse a signed integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set + to ERANGE. */ +# if !@HAVE_STRTOLL@ +_GL_FUNCDECL_SYS (strtoll, long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoll, long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoll); +#elif defined GNULIB_POSIXCHECK +# undef strtoll +# if HAVE_RAW_DECL_STRTOLL +_GL_WARN_ON_USE (strtoll, "strtoll is unportable - " + "use gnulib module strtoll for portability"); +# endif +#endif + +#if @GNULIB_STRTOULL@ +/* Parse an unsigned integer whose textual representation starts at STRING. + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix + "0x"). + If ENDPTR is not NULL, the address of the first byte after the integer is + stored in *ENDPTR. + Upon overflow, the return value is ULLONG_MAX, and errno is set to + ERANGE. */ +# if !@HAVE_STRTOULL@ +_GL_FUNCDECL_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strtoull, unsigned long long, + (const char *string, char **endptr, int base)); +_GL_CXXALIASWARN (strtoull); +#elif defined GNULIB_POSIXCHECK +# undef strtoull +# if HAVE_RAW_DECL_STRTOULL +_GL_WARN_ON_USE (strtoull, "strtoull is unportable - " + "use gnulib module strtoull for portability"); +# endif +#endif + +#if @GNULIB_UNLOCKPT@ +/* Unlock the slave side of the pseudo-terminal whose master side is specified + by FD, so that it can be opened. */ +# if !@HAVE_UNLOCKPT@ +_GL_FUNCDECL_SYS (unlockpt, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (unlockpt, int, (int fd)); +_GL_CXXALIASWARN (unlockpt); +#elif defined GNULIB_POSIXCHECK +# undef unlockpt +# if HAVE_RAW_DECL_UNLOCKPT +_GL_WARN_ON_USE (ptsname, "unlockpt is not portable - " + "use gnulib module unlockpt for portability"); +# endif +#endif + +#if @GNULIB_UNSETENV@ +/* Remove the variable NAME from the environment. */ +# if @REPLACE_UNSETENV@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unsetenv +# define unsetenv rpl_unsetenv +# endif +_GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unsetenv, int, (const char *name)); +# else +# if !@HAVE_UNSETENV@ +_GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); +# endif +_GL_CXXALIASWARN (unsetenv); +#elif defined GNULIB_POSIXCHECK +# undef unsetenv +# if HAVE_RAW_DECL_UNSETENV +_GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " + "use gnulib module unsetenv for portability"); +# endif +#endif + + #endif /* _GL_STDLIB_H */ #endif /* _GL_STDLIB_H */ #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/stpcpy.c gettext-0.18.1.1/gettext-tools/libgettextpo/stpcpy.c --- gettext-0.17/gettext-tools/libgettextpo/stpcpy.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/stpcpy.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,6 @@ /* stpcpy.c -- copy a string and return pointer to end of new string - Copyright (C) 1992, 1995, 1997-1998, 2006 Free Software Foundation, Inc. + Copyright (C) 1992, 1995, 1997-1998, 2006, 2009-2010 Free Software + Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. diff -Nru gettext-0.17/gettext-tools/libgettextpo/strdup.c gettext-0.18.1.1/gettext-tools/libgettextpo/strdup.c --- gettext-0.17/gettext-tools/libgettextpo/strdup.c 2007-01-27 03:23:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/strdup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free - Software Foundation, Inc. - - This file is part of the GNU C Library. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifndef _LIBC -# include -#endif - -/* Get specification. */ -#include - -#include - -#undef __strdup -#ifdef _LIBC -# undef strdup -#endif - -#ifndef weak_alias -# define __strdup strdup -#endif - -/* Duplicate S, returning an identical malloc'd string. */ -char * -__strdup (const char *s) -{ - size_t len = strlen (s) + 1; - void *new = malloc (len); - - if (new == NULL) - return NULL; - - return (char *) memcpy (new, s, len); -} -#ifdef libc_hidden_def -libc_hidden_def (__strdup) -#endif -#ifdef weak_alias -weak_alias (__strdup, strdup) -#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/streq.h gettext-0.18.1.1/gettext-tools/libgettextpo/streq.h --- gettext-0.17/gettext-tools/libgettextpo/streq.h 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/streq.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Optimized string comparison. - Copyright (C) 2001-2002, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published diff -Nru gettext-0.17/gettext-tools/libgettextpo/strerror.c gettext-0.18.1.1/gettext-tools/libgettextpo/strerror.c --- gettext-0.17/gettext-tools/libgettextpo/strerror.c 2007-10-27 01:24:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/strerror.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,6 +1,6 @@ /* strerror.c --- POSIX compatible system error routine - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,8 +21,15 @@ #if REPLACE_STRERROR +# include # include +# if GNULIB_defined_ESOCK /* native Windows platforms */ +# if HAVE_WINSOCK2_H +# include +# endif +# endif + # include "intprops.h" # undef strerror @@ -33,17 +40,308 @@ char * rpl_strerror (int n) { - char *result = strerror (n); - - if (result == NULL || result[0] == '\0') + char const *msg = NULL; + /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ + switch (n) { - static char const fmt[] = "Unknown error (%d)"; - static char mesg[sizeof fmt + INT_STRLEN_BOUND (n)]; - sprintf (mesg, fmt, n); - return mesg; +# if GNULIB_defined_ETXTBSY + case ETXTBSY: + msg = "Text file busy"; + break; +# endif + +# if GNULIB_defined_ESOCK /* native Windows platforms */ + /* EWOULDBLOCK is the same as EAGAIN. */ + case EINPROGRESS: + msg = "Operation now in progress"; + break; + case EALREADY: + msg = "Operation already in progress"; + break; + case ENOTSOCK: + msg = "Socket operation on non-socket"; + break; + case EDESTADDRREQ: + msg = "Destination address required"; + break; + case EMSGSIZE: + msg = "Message too long"; + break; + case EPROTOTYPE: + msg = "Protocol wrong type for socket"; + break; + case ENOPROTOOPT: + msg = "Protocol not available"; + break; + case EPROTONOSUPPORT: + msg = "Protocol not supported"; + break; + case ESOCKTNOSUPPORT: + msg = "Socket type not supported"; + break; + case EOPNOTSUPP: + msg = "Operation not supported"; + break; + case EPFNOSUPPORT: + msg = "Protocol family not supported"; + break; + case EAFNOSUPPORT: + msg = "Address family not supported by protocol"; + break; + case EADDRINUSE: + msg = "Address already in use"; + break; + case EADDRNOTAVAIL: + msg = "Cannot assign requested address"; + break; + case ENETDOWN: + msg = "Network is down"; + break; + case ENETUNREACH: + msg = "Network is unreachable"; + break; + case ENETRESET: + msg = "Network dropped connection on reset"; + break; + case ECONNABORTED: + msg = "Software caused connection abort"; + break; + case ECONNRESET: + msg = "Connection reset by peer"; + break; + case ENOBUFS: + msg = "No buffer space available"; + break; + case EISCONN: + msg = "Transport endpoint is already connected"; + break; + case ENOTCONN: + msg = "Transport endpoint is not connected"; + break; + case ESHUTDOWN: + msg = "Cannot send after transport endpoint shutdown"; + break; + case ETOOMANYREFS: + msg = "Too many references: cannot splice"; + break; + case ETIMEDOUT: + msg = "Connection timed out"; + break; + case ECONNREFUSED: + msg = "Connection refused"; + break; + case ELOOP: + msg = "Too many levels of symbolic links"; + break; + case EHOSTDOWN: + msg = "Host is down"; + break; + case EHOSTUNREACH: + msg = "No route to host"; + break; + case EPROCLIM: + msg = "Too many processes"; + break; + case EUSERS: + msg = "Too many users"; + break; + case EDQUOT: + msg = "Disk quota exceeded"; + break; + case ESTALE: + msg = "Stale NFS file handle"; + break; + case EREMOTE: + msg = "Object is remote"; + break; +# if HAVE_WINSOCK2_H + /* WSA_INVALID_HANDLE maps to EBADF */ + /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ + /* WSA_INVALID_PARAMETER maps to EINVAL */ + case WSA_OPERATION_ABORTED: + msg = "Overlapped operation aborted"; + break; + case WSA_IO_INCOMPLETE: + msg = "Overlapped I/O event object not in signaled state"; + break; + case WSA_IO_PENDING: + msg = "Overlapped operations will complete later"; + break; + /* WSAEINTR maps to EINTR */ + /* WSAEBADF maps to EBADF */ + /* WSAEACCES maps to EACCES */ + /* WSAEFAULT maps to EFAULT */ + /* WSAEINVAL maps to EINVAL */ + /* WSAEMFILE maps to EMFILE */ + /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ + /* WSAEINPROGRESS is EINPROGRESS */ + /* WSAEALREADY is EALREADY */ + /* WSAENOTSOCK is ENOTSOCK */ + /* WSAEDESTADDRREQ is EDESTADDRREQ */ + /* WSAEMSGSIZE is EMSGSIZE */ + /* WSAEPROTOTYPE is EPROTOTYPE */ + /* WSAENOPROTOOPT is ENOPROTOOPT */ + /* WSAEPROTONOSUPPORT is EPROTONOSUPPORT */ + /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ + /* WSAEOPNOTSUPP is EOPNOTSUPP */ + /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ + /* WSAEAFNOSUPPORT is EAFNOSUPPORT */ + /* WSAEADDRINUSE is EADDRINUSE */ + /* WSAEADDRNOTAVAIL is EADDRNOTAVAIL */ + /* WSAENETDOWN is ENETDOWN */ + /* WSAENETUNREACH is ENETUNREACH */ + /* WSAENETRESET is ENETRESET */ + /* WSAECONNABORTED is ECONNABORTED */ + /* WSAECONNRESET is ECONNRESET */ + /* WSAENOBUFS is ENOBUFS */ + /* WSAEISCONN is EISCONN */ + /* WSAENOTCONN is ENOTCONN */ + /* WSAESHUTDOWN is ESHUTDOWN */ + /* WSAETOOMANYREFS is ETOOMANYREFS */ + /* WSAETIMEDOUT is ETIMEDOUT */ + /* WSAECONNREFUSED is ECONNREFUSED */ + /* WSAELOOP is ELOOP */ + /* WSAENAMETOOLONG maps to ENAMETOOLONG */ + /* WSAEHOSTDOWN is EHOSTDOWN */ + /* WSAEHOSTUNREACH is EHOSTUNREACH */ + /* WSAENOTEMPTY maps to ENOTEMPTY */ + /* WSAEPROCLIM is EPROCLIM */ + /* WSAEUSERS is EUSERS */ + /* WSAEDQUOT is EDQUOT */ + /* WSAESTALE is ESTALE */ + /* WSAEREMOTE is EREMOTE */ + case WSASYSNOTREADY: + msg = "Network subsystem is unavailable"; + break; + case WSAVERNOTSUPPORTED: + msg = "Winsock.dll version out of range"; + break; + case WSANOTINITIALISED: + msg = "Successful WSAStartup not yet performed"; + break; + case WSAEDISCON: + msg = "Graceful shutdown in progress"; + break; + case WSAENOMORE: case WSA_E_NO_MORE: + msg = "No more results"; + break; + case WSAECANCELLED: case WSA_E_CANCELLED: + msg = "Call was canceled"; + break; + case WSAEINVALIDPROCTABLE: + msg = "Procedure call table is invalid"; + break; + case WSAEINVALIDPROVIDER: + msg = "Service provider is invalid"; + break; + case WSAEPROVIDERFAILEDINIT: + msg = "Service provider failed to initialize"; + break; + case WSASYSCALLFAILURE: + msg = "System call failure"; + break; + case WSASERVICE_NOT_FOUND: + msg = "Service not found"; + break; + case WSATYPE_NOT_FOUND: + msg = "Class type not found"; + break; + case WSAEREFUSED: + msg = "Database query was refused"; + break; + case WSAHOST_NOT_FOUND: + msg = "Host not found"; + break; + case WSATRY_AGAIN: + msg = "Nonauthoritative host not found"; + break; + case WSANO_RECOVERY: + msg = "Nonrecoverable error"; + break; + case WSANO_DATA: + msg = "Valid name, no data record of requested type"; + break; + /* WSA_QOS_* omitted */ +# endif +# endif + +# if GNULIB_defined_ENOMSG + case ENOMSG: + msg = "No message of desired type"; + break; +# endif + +# if GNULIB_defined_EIDRM + case EIDRM: + msg = "Identifier removed"; + break; +# endif + +# if GNULIB_defined_ENOLINK + case ENOLINK: + msg = "Link has been severed"; + break; +# endif + +# if GNULIB_defined_EPROTO + case EPROTO: + msg = "Protocol error"; + break; +# endif + +# if GNULIB_defined_EMULTIHOP + case EMULTIHOP: + msg = "Multihop attempted"; + break; +# endif + +# if GNULIB_defined_EBADMSG + case EBADMSG: + msg = "Bad message"; + break; +# endif + +# if GNULIB_defined_EOVERFLOW + case EOVERFLOW: + msg = "Value too large for defined data type"; + break; +# endif + +# if GNULIB_defined_ENOTSUP + case ENOTSUP: + msg = "Not supported"; + break; +# endif + +# if GNULIB_defined_ESTALE + case ESTALE: + msg = "Stale NFS file handle"; + break; +# endif + +# if GNULIB_defined_ECANCELED + case ECANCELED: + msg = "Operation canceled"; + break; +# endif } - return result; + if (msg) + return (char *) msg; + + { + char *result = strerror (n); + + if (result == NULL || result[0] == '\0') + { + static char const fmt[] = "Unknown error (%d)"; + static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; + sprintf (msg_buf, fmt, n); + return msg_buf; + } + + return result; + } } #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconv.c gettext-0.18.1.1/gettext-tools/libgettextpo/striconv.c --- gettext-0.17/gettext-tools/libgettextpo/striconv.c 2007-01-27 03:23:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconv.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -42,7 +42,7 @@ int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { # define tmpbufsize 4096 size_t length; @@ -67,33 +67,33 @@ while (insize > 0) { - char *outptr = tmpbuf; - size_t outsize = tmpbufsize; - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - ; - else if (errno == EINVAL) - break; - else - return -1; - } + char *outptr = tmpbuf; + size_t outsize = tmpbufsize; + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + ; + else if (errno == EINVAL) + break; + else + return -1; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - return -1; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + return -1; + } # endif - count += outptr - tmpbuf; + count += outptr - tmpbuf; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ @@ -104,7 +104,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - return -1; + return -1; count += outptr - tmpbuf; } # endif @@ -123,10 +123,10 @@ { result = (char *) malloc (length); if (result == NULL) - { - errno = ENOMEM; - return -1; - } + { + errno = ENOMEM; + return -1; + } } /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ @@ -145,27 +145,27 @@ while (insize > 0) { - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else - goto fail; - } + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else + goto fail; + } # if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - else if (res > 0) - { - errno = EILSEQ; - goto fail; - } + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + else if (res > 0) + { + errno = EILSEQ; + goto fail; + } # endif } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ @@ -175,7 +175,7 @@ size_t res = iconv (cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) - goto fail; + goto fail; } # endif if (outsize != 0) @@ -191,9 +191,9 @@ { if (result != *resultp) { - int saved_errno = errno; - free (result); - errno = saved_errno; + int saved_errno = errno; + free (result); + errno = saved_errno; } return -1; } @@ -224,7 +224,7 @@ if (retval < 0) { if (result != NULL) - abort (); + abort (); return NULL; } @@ -233,8 +233,7 @@ (result != NULL ? realloc (result, length + 1) : malloc (length + 1)); if (final_result == NULL) { - if (result != NULL) - free (result); + free (result); errno = ENOMEM; return NULL; } @@ -285,81 +284,81 @@ for (;;) { - /* Here inptr + inbytes_remaining = src + strlen (src), - outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, - (ICONV_CONST char **) &inptr, &inbytes_remaining, - &outptr, &outbytes_remaining); - - if (res == (size_t)(-1)) - { - if (errno == EINVAL) - break; - else if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + /* Here inptr + inbytes_remaining = src + strlen (src), + outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, + (ICONV_CONST char **) &inptr, &inbytes_remaining, + &outptr, &outbytes_remaining); + + if (res == (size_t)(-1)) + { + if (errno == EINVAL) + break; + else if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } /* Avoid glibc-2.1 bug and Solaris 2.7 bug. */ # if defined _LIBICONV_VERSION \ || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) for (;;) { - /* Here outptr + outbytes_remaining = result + result_size - 1. */ - size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); + /* Here outptr + outbytes_remaining = result + result_size - 1. */ + size_t res = iconv (cd, NULL, NULL, &outptr, &outbytes_remaining); - if (res == (size_t)(-1)) - { - if (errno == E2BIG) - { - size_t used = outptr - result; - size_t newsize = result_size * 2; - char *newresult; - - if (!(newsize > result_size)) - { - errno = ENOMEM; - goto failed; - } - newresult = (char *) realloc (result, newsize); - if (newresult == NULL) - { - errno = ENOMEM; - goto failed; - } - result = newresult; - result_size = newsize; - outptr = result + used; - outbytes_remaining = result_size - 1 - used; - } - else - goto failed; - } - else - break; + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + { + size_t used = outptr - result; + size_t newsize = result_size * 2; + char *newresult; + + if (!(newsize > result_size)) + { + errno = ENOMEM; + goto failed; + } + newresult = (char *) realloc (result, newsize); + if (newresult == NULL) + { + errno = ENOMEM; + goto failed; + } + result = newresult; + result_size = newsize; + outptr = result + used; + outbytes_remaining = result_size - 1 - used; + } + else + goto failed; + } + else + break; } # endif @@ -375,7 +374,7 @@ char *smaller_result = (char *) realloc (result, length); if (smaller_result != NULL) - result = smaller_result; + result = smaller_result; } return result; @@ -401,7 +400,7 @@ char *result = strdup (src); if (result == NULL) - errno = ENOMEM; + errno = ENOMEM; return result; } else @@ -413,44 +412,44 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (c_strcasecmp (from_codeset, "EUC-KR") == 0 - || c_strcasecmp (to_codeset, "EUC-KR") == 0) - { - errno = EINVAL; - return NULL; - } + || c_strcasecmp (to_codeset, "EUC-KR") == 0) + { + errno = EINVAL; + return NULL; + } # endif cd = iconv_open (to_codeset, from_codeset); if (cd == (iconv_t) -1) - return NULL; + return NULL; result = str_cd_iconv (src, cd); if (result == NULL) - { - /* Close cd, but preserve the errno from str_cd_iconv. */ - int saved_errno = errno; - iconv_close (cd); - errno = saved_errno; - } + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconv_close (cd); + errno = saved_errno; + } else - { - if (iconv_close (cd) < 0) - { - /* Return NULL, but free the allocated memory, and while doing - that, preserve the errno from iconv_close. */ - int saved_errno = errno; - free (result); - errno = saved_errno; - return NULL; - } - } + { + if (iconv_close (cd) < 0) + { + /* Return NULL, but free the allocated memory, and while doing + that, preserve the errno from iconv_close. */ + int saved_errno = errno; + free (result); + errno = saved_errno; + return NULL; + } + } return result; #else /* This is a different error code than if iconv_open existed but didn't - support from_codeset and to_codeset, so that the caller can emit - an error message such as - "iconv() is not supported. Installing GNU libiconv and - then reinstalling this package would fix this." */ + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ errno = ENOSYS; return NULL; #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconveha.c gettext-0.18.1.1/gettext-tools/libgettextpo/striconveha.c --- gettext-0.17/gettext-tools/libgettextpo/striconveha.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconveha.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,348 @@ +/* Character set conversion with error handling and autodetection. + Copyright (C) 2002, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "striconveha.h" + +#include +#include +#include + +#include "malloca.h" +#include "c-strcase.h" +#include "striconveh.h" + +#define SIZEOF(a) (sizeof(a)/sizeof(a[0])) + + +/* Autodetection list. */ + +struct autodetect_alias +{ + struct autodetect_alias *next; + const char *name; + const char * const *encodings_to_try; +}; + +static const char * const autodetect_utf8_try[] = +{ + /* Try UTF-8 first. There are very few ISO-8859-1 inputs that would + be valid UTF-8, but many UTF-8 inputs are valid ISO-8859-1. */ + "UTF-8", "ISO-8859-1", + NULL +}; +static const char * const autodetect_jp_try[] = +{ + /* Try 7-bit encoding first. If the input contains bytes >= 0x80, + it will fail. + Try EUC-JP next. Short SHIFT_JIS inputs may come out wrong. This + is unavoidable. People will condemn SHIFT_JIS. + If we tried SHIFT_JIS first, then some short EUC-JP inputs would + come out wrong, and people would condemn EUC-JP and Unix, which + would not be good. + Finally try SHIFT_JIS. */ + "ISO-2022-JP-2", "EUC-JP", "SHIFT_JIS", + NULL +}; +static const char * const autodetect_kr_try[] = +{ + /* Try 7-bit encoding first. If the input contains bytes >= 0x80, + it will fail. + Finally try EUC-KR. */ + "ISO-2022-KR", "EUC-KR", + NULL +}; + +static struct autodetect_alias autodetect_predefined[] = +{ + { &autodetect_predefined[1], "autodetect_utf8", autodetect_utf8_try }, + { &autodetect_predefined[2], "autodetect_jp", autodetect_jp_try }, + { NULL, "autodetect_kr", autodetect_kr_try } +}; + +static struct autodetect_alias *autodetect_list = &autodetect_predefined[0]; +static struct autodetect_alias **autodetect_list_end = + &autodetect_predefined[SIZEOF(autodetect_predefined)-1].next; + +int +uniconv_register_autodetect (const char *name, + const char * const *try_in_order) +{ + size_t namelen; + size_t listlen; + size_t memneed; + size_t i; + char *memory; + struct autodetect_alias *new_alias; + char *new_name; + const char **new_try_in_order; + + /* The TRY_IN_ORDER list must not be empty. */ + if (try_in_order[0] == NULL) + { + errno = EINVAL; + return -1; + } + + /* We must deep-copy NAME and TRY_IN_ORDER, because they may be allocated + with dynamic extent. */ + namelen = strlen (name) + 1; + memneed = sizeof (struct autodetect_alias) + namelen + sizeof (char *); + for (i = 0; try_in_order[i] != NULL; i++) + memneed += sizeof (char *) + strlen (try_in_order[i]) + 1; + listlen = i; + + memory = (char *) malloc (memneed); + if (memory != NULL) + { + new_alias = (struct autodetect_alias *) memory; + memory += sizeof (struct autodetect_alias); + + new_try_in_order = (const char **) memory; + memory += (listlen + 1) * sizeof (char *); + + new_name = (char *) memory; + memcpy (new_name, name, namelen); + memory += namelen; + + for (i = 0; i < listlen; i++) + { + size_t len = strlen (try_in_order[i]) + 1; + memcpy (memory, try_in_order[i], len); + new_try_in_order[i] = (const char *) memory; + memory += len; + } + new_try_in_order[i] = NULL; + + /* Now insert the new alias. */ + new_alias->name = new_name; + new_alias->encodings_to_try = new_try_in_order; + new_alias->next = NULL; + /* FIXME: Not multithread-safe. */ + *autodetect_list_end = new_alias; + autodetect_list_end = &new_alias->next; + return 0; + } + else + { + errno = ENOMEM; + return -1; + } +} + +/* Like mem_iconveha, except no handling of transliteration. */ +static int +mem_iconveha_notranslit (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + int retval = mem_iconveh (src, srclen, from_codeset, to_codeset, handler, + offsets, resultp, lengthp); + if (retval >= 0 || errno != EINVAL) + return retval; + else + { + struct autodetect_alias *alias; + + /* Unsupported from_codeset or to_codeset. Check whether the caller + requested autodetection. */ + for (alias = autodetect_list; alias != NULL; alias = alias->next) + if (strcmp (from_codeset, alias->name) == 0) + { + const char * const *encodings; + + if (handler != iconveh_error) + { + /* First try all encodings without any forgiving. */ + encodings = alias->encodings_to_try; + do + { + retval = mem_iconveha_notranslit (src, srclen, + *encodings, to_codeset, + iconveh_error, offsets, + resultp, lengthp); + if (!(retval < 0 && errno == EILSEQ)) + return retval; + encodings++; + } + while (*encodings != NULL); + } + + encodings = alias->encodings_to_try; + do + { + retval = mem_iconveha_notranslit (src, srclen, + *encodings, to_codeset, + handler, offsets, + resultp, lengthp); + if (!(retval < 0 && errno == EILSEQ)) + return retval; + encodings++; + } + while (*encodings != NULL); + + /* Return the last call's result. */ + return -1; + } + + /* It wasn't an autodetection name. */ + errno = EINVAL; + return -1; + } +} + +int +mem_iconveha (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + if (srclen == 0) + { + /* Nothing to convert. */ + *lengthp = 0; + return 0; + } + + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, + we want to use transliteration. */ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + if (transliterate) + { + int retval; + size_t len = strlen (to_codeset); + char *to_codeset_suffixed = (char *) malloca (len + 10 + 1); + memcpy (to_codeset_suffixed, to_codeset, len); + memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); + + retval = mem_iconveha_notranslit (src, srclen, + from_codeset, to_codeset_suffixed, + handler, offsets, resultp, lengthp); + + freea (to_codeset_suffixed); + + return retval; + } + else +#endif + return mem_iconveha_notranslit (src, srclen, + from_codeset, to_codeset, + handler, offsets, resultp, lengthp); +} + +/* Like str_iconveha, except no handling of transliteration. */ +static char * +str_iconveha_notranslit (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler) +{ + char *result = str_iconveh (src, from_codeset, to_codeset, handler); + + if (result != NULL || errno != EINVAL) + return result; + else + { + struct autodetect_alias *alias; + + /* Unsupported from_codeset or to_codeset. Check whether the caller + requested autodetection. */ + for (alias = autodetect_list; alias != NULL; alias = alias->next) + if (strcmp (from_codeset, alias->name) == 0) + { + const char * const *encodings; + + if (handler != iconveh_error) + { + /* First try all encodings without any forgiving. */ + encodings = alias->encodings_to_try; + do + { + result = str_iconveha_notranslit (src, + *encodings, to_codeset, + iconveh_error); + if (!(result == NULL && errno == EILSEQ)) + return result; + encodings++; + } + while (*encodings != NULL); + } + + encodings = alias->encodings_to_try; + do + { + result = str_iconveha_notranslit (src, + *encodings, to_codeset, + handler); + if (!(result == NULL && errno == EILSEQ)) + return result; + encodings++; + } + while (*encodings != NULL); + + /* Return the last call's result. */ + return NULL; + } + + /* It wasn't an autodetection name. */ + errno = EINVAL; + return NULL; + } +} + +char * +str_iconveha (const char *src, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler) +{ + if (*src == '\0' || c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result = strdup (src); + + if (result == NULL) + errno = ENOMEM; + return result; + } + + /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, + we want to use transliteration. */ +#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + if (transliterate) + { + char *result; + size_t len = strlen (to_codeset); + char *to_codeset_suffixed = (char *) malloca (len + 10 + 1); + memcpy (to_codeset_suffixed, to_codeset, len); + memcpy (to_codeset_suffixed + len, "//TRANSLIT", 10 + 1); + + result = str_iconveha_notranslit (src, from_codeset, to_codeset_suffixed, + handler); + + freea (to_codeset_suffixed); + + return result; + } + else +#endif + return str_iconveha_notranslit (src, from_codeset, to_codeset, handler); +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconveha.h gettext-0.18.1.1/gettext-tools/libgettextpo/striconveha.h --- gettext-0.17/gettext-tools/libgettextpo/striconveha.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconveha.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,95 @@ +/* Character set conversion with error handling and autodetection. + Copyright (C) 2002, 2005, 2007-2010 Free Software Foundation, Inc. + Written by Bruno Haible. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _STRICONVEHA_H +#define _STRICONVEHA_H + +#include +#include + +#include "iconveh.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + The "from" encoding can also be a name defined for autodetection. + If TRANSLITERATE is true, transliteration will attempted to avoid conversion + errors, for iconv implementations that support this. Usually you'll choose + TRANSLITERATE = true if HANDLER != iconveh_error. + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_iconveha (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + Both the "from" and the "to" encoding must use a single NUL byte at the + end of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + The "from" encoding can also be a name defined for autodetection. + If TRANSLITERATE is true, transliteration will attempted to avoid conversion + errors, for iconv implementations that support this. Usually you'll choose + TRANSLITERATE = true if HANDLER != iconveh_error. + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_iconveha (const char *src, + const char *from_codeset, const char *to_codeset, + bool transliterate, + enum iconv_ilseq_handler handler); + + +/* In the above, FROM_CODESET can also be one of the following values: + "autodetect_utf8" supports ISO-8859-1 and UTF-8 + "autodetect_jp" supports EUC-JP, ISO-2022-JP-2 and SHIFT_JIS + "autodetect_kr" supports EUC-KR and ISO-2022-KR + More names can be defined for autodetection. */ + +/* Registers an encoding name for autodetection. + TRY_IN_ORDER is a NULL terminated list of encodings to be tried. + Returns 0 upon success, or -1 (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern int + uniconv_register_autodetect (const char *name, + const char * const *try_in_order); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _STRICONVEHA_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconveh.c gettext-0.18.1.1/gettext-tools/libgettextpo/striconveh.c --- gettext-0.17/gettext-tools/libgettextpo/striconveh.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconveh.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,1187 @@ +/* Character set conversion with error handling. + Copyright (C) 2001-2010 Free Software Foundation, Inc. + Written by Bruno Haible and Simon Josefsson. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "striconveh.h" + +#include +#include +#include +#include + +#if HAVE_ICONV +# include +# include "unistr.h" +#endif + +#include "c-strcase.h" +#include "c-strcaseeq.h" + +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif + + +#if HAVE_ICONV + +/* The caller must provide an iconveh_t, not just an iconv_t, because when a + conversion error occurs, we may have to determine the Unicode representation + of the inconvertible character. */ + +int +iconveh_open (const char *to_codeset, const char *from_codeset, iconveh_t *cdp) +{ + iconv_t cd; + iconv_t cd1; + iconv_t cd2; + + /* Avoid glibc-2.1 bug with EUC-KR. */ +# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION + if (c_strcasecmp (from_codeset, "EUC-KR") == 0 + || c_strcasecmp (to_codeset, "EUC-KR") == 0) + { + errno = EINVAL; + return -1; + } +# endif + + cd = iconv_open (to_codeset, from_codeset); + + if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0)) + cd1 = (iconv_t)(-1); + else + { + cd1 = iconv_open ("UTF-8", from_codeset); + if (cd1 == (iconv_t)(-1)) + { + int saved_errno = errno; + if (cd != (iconv_t)(-1)) + iconv_close (cdp->cd); + errno = saved_errno; + return -1; + } + } + + if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0) +# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 + || c_strcasecmp (to_codeset, "UTF-8//TRANSLIT") == 0 +# endif + ) + cd2 = (iconv_t)(-1); + else + { + cd2 = iconv_open (to_codeset, "UTF-8"); + if (cd2 == (iconv_t)(-1)) + { + int saved_errno = errno; + if (cd1 != (iconv_t)(-1)) + iconv_close (cd1); + if (cd != (iconv_t)(-1)) + iconv_close (cd); + errno = saved_errno; + return -1; + } + } + + cdp->cd = cd; + cdp->cd1 = cd1; + cdp->cd2 = cd2; + return 0; +} + +int +iconveh_close (const iconveh_t *cd) +{ + if (cd->cd2 != (iconv_t)(-1) && iconv_close (cd->cd2) < 0) + { + /* Return -1, but preserve the errno from iconv_close. */ + int saved_errno = errno; + if (cd->cd1 != (iconv_t)(-1)) + iconv_close (cd->cd1); + if (cd->cd != (iconv_t)(-1)) + iconv_close (cd->cd); + errno = saved_errno; + return -1; + } + if (cd->cd1 != (iconv_t)(-1) && iconv_close (cd->cd1) < 0) + { + /* Return -1, but preserve the errno from iconv_close. */ + int saved_errno = errno; + if (cd->cd != (iconv_t)(-1)) + iconv_close (cd->cd); + errno = saved_errno; + return -1; + } + if (cd->cd != (iconv_t)(-1) && iconv_close (cd->cd) < 0) + return -1; + return 0; +} + +/* iconv_carefully is like iconv, except that it stops as soon as it encounters + a conversion error, and it returns in *INCREMENTED a boolean telling whether + it has incremented the input pointers past the error location. */ +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ +/* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ +static size_t +iconv_carefully (iconv_t cd, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr = *inbuf; + const char *inptr_end = inptr + *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + const char *inptr_before; + size_t res; + + do + { + size_t insize; + + inptr_before = inptr; + res = (size_t)(-1); + + for (insize = 1; inptr + insize <= inptr_end; insize++) + { + res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* iconv can eat up a shift sequence but give EINVAL while attempting + to convert the first character. E.g. libiconv does this. */ + if (inptr > inptr_before) + { + res = 0; + break; + } + } + + if (res == 0) + { + *outbuf = outptr; + *outbytesleft = outsize; + } + } + while (res == 0 && inptr < inptr_end); + + *inbuf = inptr; + *inbytesleft = inptr_end - inptr; + if (res != (size_t)(-1) && res > 0) + { + /* iconv() has already incremented INPTR. We cannot go back to a + previous INPTR, otherwise the state inside CD would become invalid, + if FROM_CODESET is a stateful encoding. So, tell the caller that + *INBUF has already been incremented. */ + *incremented = (inptr > inptr_before); + errno = EILSEQ; + return (size_t)(-1); + } + else + { + *incremented = false; + return res; + } +} +# else +# define iconv_carefully(cd, inbuf, inbytesleft, outbuf, outbytesleft, incremented) \ + (*(incremented) = false, \ + iconv (cd, (ICONV_CONST char **) (inbuf), inbytesleft, outbuf, outbytesleft)) +# endif + +/* iconv_carefully_1 is like iconv_carefully, except that it stops after + converting one character or one shift sequence. */ +static size_t +iconv_carefully_1 (iconv_t cd, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr_before = *inbuf; + const char *inptr = inptr_before; + const char *inptr_end = inptr_before + *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + size_t res = (size_t)(-1); + size_t insize; + + for (insize = 1; inptr_before + insize <= inptr_end; insize++) + { + inptr = inptr_before; + res = iconv (cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* iconv can eat up a shift sequence but give EINVAL while attempting + to convert the first character. E.g. libiconv does this. */ + if (inptr > inptr_before) + { + res = 0; + break; + } + } + + *inbuf = inptr; + *inbytesleft = inptr_end - inptr; +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + if (res != (size_t)(-1) && res > 0) + { + /* iconv() has already incremented INPTR. We cannot go back to a + previous INPTR, otherwise the state inside CD would become invalid, + if FROM_CODESET is a stateful encoding. So, tell the caller that + *INBUF has already been incremented. */ + *incremented = (inptr > inptr_before); + errno = EILSEQ; + return (size_t)(-1); + } +# endif + + if (res != (size_t)(-1)) + { + *outbuf = outptr; + *outbytesleft = outsize; + } + *incremented = false; + return res; +} + +/* utf8conv_carefully is like iconv, except that + - it converts from UTF-8 to UTF-8, + - it stops as soon as it encounters a conversion error, and it returns + in *INCREMENTED a boolean telling whether it has incremented the input + pointers past the error location, + - if one_character_only is true, it stops after converting one + character. */ +static size_t +utf8conv_carefully (bool one_character_only, + const char **inbuf, size_t *inbytesleft, + char **outbuf, size_t *outbytesleft, + bool *incremented) +{ + const char *inptr = *inbuf; + size_t insize = *inbytesleft; + char *outptr = *outbuf; + size_t outsize = *outbytesleft; + size_t res; + + res = 0; + do + { + ucs4_t uc; + int n; + int m; + + n = u8_mbtoucr (&uc, (const uint8_t *) inptr, insize); + if (n < 0) + { + errno = (n == -2 ? EINVAL : EILSEQ); + n = u8_mbtouc (&uc, (const uint8_t *) inptr, insize); + inptr += n; + insize -= n; + res = (size_t)(-1); + *incremented = true; + break; + } + if (outsize == 0) + { + errno = E2BIG; + res = (size_t)(-1); + *incremented = false; + break; + } + m = u8_uctomb ((uint8_t *) outptr, uc, outsize); + if (m == -2) + { + errno = E2BIG; + res = (size_t)(-1); + *incremented = false; + break; + } + inptr += n; + insize -= n; + if (m == -1) + { + errno = EILSEQ; + res = (size_t)(-1); + *incremented = true; + break; + } + outptr += m; + outsize -= m; + } + while (!one_character_only && insize > 0); + + *inbuf = inptr; + *inbytesleft = insize; + *outbuf = outptr; + *outbytesleft = outsize; + return res; +} + +static int +mem_cd_iconveh_internal (const char *src, size_t srclen, + iconv_t cd, iconv_t cd1, iconv_t cd2, + enum iconv_ilseq_handler handler, + size_t extra_alloc, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + /* When a conversion error occurs, we cannot start using CD1 and CD2 at + this point: FROM_CODESET may be a stateful encoding like ISO-2022-KR. + Instead, we have to start afresh from the beginning of SRC. */ + /* Use a temporary buffer, so that for small strings, a single malloc() + call will be sufficient. */ +# define tmpbufsize 4096 + /* The alignment is needed when converting e.g. to glibc's WCHAR_T or + libiconv's UCS-4-INTERNAL encoding. */ + union { unsigned int align; char buf[tmpbufsize]; } tmp; +# define tmpbuf tmp.buf + + char *initial_result; + char *result; + size_t allocated; + size_t length; + size_t last_length = (size_t)(-1); /* only needed if offsets != NULL */ + + if (*resultp != NULL && *lengthp >= sizeof (tmpbuf)) + { + initial_result = *resultp; + allocated = *lengthp; + } + else + { + initial_result = tmpbuf; + allocated = sizeof (tmpbuf); + } + result = initial_result; + + /* Test whether a direct conversion is possible at all. */ + if (cd == (iconv_t)(-1)) + goto indirectly; + + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; i++) + offsets[i] = (size_t)(-1); + + last_length = (size_t)(-1); + } + length = 0; + + /* First, try a direct conversion, and see whether a conversion error + occurs at all. */ + { + const char *inptr = src; + size_t insize = srclen; + + /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) + /* Set to the initial state. */ + iconv (cd, NULL, NULL, NULL, NULL); +# endif + + while (insize > 0) + { + char *outptr = result + length; + size_t outsize = allocated - extra_alloc - length; + bool incremented; + size_t res; + bool grow; + + if (offsets != NULL) + { + if (length != last_length) /* ensure that offset[] be increasing */ + { + offsets[inptr - src] = length; + last_length = length; + } + res = iconv_carefully_1 (cd, + &inptr, &insize, + &outptr, &outsize, + &incremented); + } + else + /* Use iconv_carefully instead of iconv here, because: + - If TO_CODESET is UTF-8, we can do the error handling in this + loop, no need for a second loop, + - With iconv() implementations other than GNU libiconv and GNU + libc, if we use iconv() in a big swoop, checking for an E2BIG + return, we lose the number of irreversible conversions. */ + res = iconv_carefully (cd, + &inptr, &insize, + &outptr, &outsize, + &incremented); + + length = outptr - result; + grow = (length + extra_alloc > allocated / 2); + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + grow = true; + else if (errno == EINVAL) + break; + else if (errno == EILSEQ && handler != iconveh_error) + { + if (cd2 == (iconv_t)(-1)) + { + /* TO_CODESET is UTF-8. */ + /* Error handling can produce up to 1 byte of output. */ + if (length + 1 + extra_alloc > allocated) + { + char *memory; + + allocated = 2 * allocated; + if (length + 1 + extra_alloc > allocated) + abort (); + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + grow = false; + } + /* The input is invalid in FROM_CODESET. Eat up one byte + and emit a question mark. */ + if (!incremented) + { + if (insize == 0) + abort (); + inptr++; + insize--; + } + result[length] = '?'; + length++; + } + else + goto indirectly; + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + if (insize == 0) + break; + if (grow) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + } + } + + /* Now get the conversion state back to the initial state. + But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +#if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + for (;;) + { + char *outptr = result + length; + size_t outsize = allocated - extra_alloc - length; + size_t res; + + res = iconv (cd, NULL, NULL, &outptr, &outsize); + length = outptr - result; + if (res == (size_t)(-1)) + { + if (errno == E2BIG) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + else + break; + } +#endif + + /* The direct conversion succeeded. */ + goto done; + + indirectly: + /* The direct conversion failed. + Use a conversion through UTF-8. */ + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; i++) + offsets[i] = (size_t)(-1); + + last_length = (size_t)(-1); + } + length = 0; + { + const bool slowly = (offsets != NULL || handler == iconveh_error); +# define utf8bufsize 4096 /* may also be smaller or larger than tmpbufsize */ + char utf8buf[utf8bufsize + 1]; + size_t utf8len = 0; + const char *in1ptr = src; + size_t in1size = srclen; + bool do_final_flush1 = true; + bool do_final_flush2 = true; + + /* Avoid glibc-2.1 bug and Solaris 2.7-2.9 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) || defined __sun) + /* Set to the initial state. */ + if (cd1 != (iconv_t)(-1)) + iconv (cd1, NULL, NULL, NULL, NULL); + if (cd2 != (iconv_t)(-1)) + iconv (cd2, NULL, NULL, NULL, NULL); +# endif + + while (in1size > 0 || do_final_flush1 || utf8len > 0 || do_final_flush2) + { + char *out1ptr = utf8buf + utf8len; + size_t out1size = utf8bufsize - utf8len; + bool incremented1; + size_t res1; + int errno1; + + /* Conversion step 1: from FROM_CODESET to UTF-8. */ + if (in1size > 0) + { + if (offsets != NULL + && length != last_length) /* ensure that offset[] be increasing */ + { + offsets[in1ptr - src] = length; + last_length = length; + } + if (cd1 != (iconv_t)(-1)) + { + if (slowly) + res1 = iconv_carefully_1 (cd1, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + else + res1 = iconv_carefully (cd1, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + } + else + { + /* FROM_CODESET is UTF-8. */ + res1 = utf8conv_carefully (slowly, + &in1ptr, &in1size, + &out1ptr, &out1size, + &incremented1); + } + } + else if (do_final_flush1) + { + /* Now get the conversion state of CD1 back to the initial state. + But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + if (cd1 != (iconv_t)(-1)) + res1 = iconv (cd1, NULL, NULL, &out1ptr, &out1size); + else +# endif + res1 = 0; + do_final_flush1 = false; + incremented1 = true; + } + else + { + res1 = 0; + incremented1 = true; + } + if (res1 == (size_t)(-1) + && !(errno == E2BIG || errno == EINVAL || errno == EILSEQ)) + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + if (res1 == (size_t)(-1) + && errno == EILSEQ && handler != iconveh_error) + { + /* The input is invalid in FROM_CODESET. Eat up one byte and + emit a question mark. Room for the question mark was allocated + at the end of utf8buf. */ + if (!incremented1) + { + if (in1size == 0) + abort (); + in1ptr++; + in1size--; + } + *out1ptr++ = '?'; + res1 = 0; + } + errno1 = errno; + utf8len = out1ptr - utf8buf; + + if (offsets != NULL + || in1size == 0 + || utf8len > utf8bufsize / 2 + || (res1 == (size_t)(-1) && errno1 == E2BIG)) + { + /* Conversion step 2: from UTF-8 to TO_CODESET. */ + const char *in2ptr = utf8buf; + size_t in2size = utf8len; + + while (in2size > 0 + || (in1size == 0 && !do_final_flush1 && do_final_flush2)) + { + char *out2ptr = result + length; + size_t out2size = allocated - extra_alloc - length; + bool incremented2; + size_t res2; + bool grow; + + if (in2size > 0) + { + if (cd2 != (iconv_t)(-1)) + res2 = iconv_carefully (cd2, + &in2ptr, &in2size, + &out2ptr, &out2size, + &incremented2); + else + /* TO_CODESET is UTF-8. */ + res2 = utf8conv_carefully (false, + &in2ptr, &in2size, + &out2ptr, &out2size, + &incremented2); + } + else /* in1size == 0 && !do_final_flush1 + && in2size == 0 && do_final_flush2 */ + { + /* Now get the conversion state of CD1 back to the initial + state. But avoid glibc-2.1 bug and Solaris 2.7 bug. */ +# if defined _LIBICONV_VERSION \ + || !((__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1) || defined __sun) + if (cd2 != (iconv_t)(-1)) + res2 = iconv (cd2, NULL, NULL, &out2ptr, &out2size); + else +# endif + res2 = 0; + do_final_flush2 = false; + incremented2 = true; + } + + length = out2ptr - result; + grow = (length + extra_alloc > allocated / 2); + if (res2 == (size_t)(-1)) + { + if (errno == E2BIG) + grow = true; + else if (errno == EINVAL) + break; + else if (errno == EILSEQ && handler != iconveh_error) + { + /* Error handling can produce up to 10 bytes of ASCII + output. But TO_CODESET may be UCS-2, UTF-16 or + UCS-4, so use CD2 here as well. */ + char scratchbuf[10]; + size_t scratchlen; + ucs4_t uc; + const char *inptr; + size_t insize; + size_t res; + + if (incremented2) + { + if (u8_prev (&uc, (const uint8_t *) in2ptr, + (const uint8_t *) utf8buf) + == NULL) + abort (); + } + else + { + int n; + if (in2size == 0) + abort (); + n = u8_mbtouc_unsafe (&uc, (const uint8_t *) in2ptr, + in2size); + in2ptr += n; + in2size -= n; + } + + if (handler == iconveh_escape_sequence) + { + static char hex[16] = "0123456789ABCDEF"; + scratchlen = 0; + scratchbuf[scratchlen++] = '\\'; + if (uc < 0x10000) + scratchbuf[scratchlen++] = 'u'; + else + { + scratchbuf[scratchlen++] = 'U'; + scratchbuf[scratchlen++] = hex[(uc>>28) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>24) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>20) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>16) & 15]; + } + scratchbuf[scratchlen++] = hex[(uc>>12) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>8) & 15]; + scratchbuf[scratchlen++] = hex[(uc>>4) & 15]; + scratchbuf[scratchlen++] = hex[uc & 15]; + } + else + { + scratchbuf[0] = '?'; + scratchlen = 1; + } + + inptr = scratchbuf; + insize = scratchlen; + if (cd2 != (iconv_t)(-1)) + res = iconv (cd2, + (ICONV_CONST char **) &inptr, &insize, + &out2ptr, &out2size); + else + { + /* TO_CODESET is UTF-8. */ + if (out2size >= insize) + { + memcpy (out2ptr, inptr, insize); + out2ptr += insize; + out2size -= insize; + inptr += insize; + insize = 0; + res = 0; + } + else + { + errno = E2BIG; + res = (size_t)(-1); + } + } + length = out2ptr - result; + if (res == (size_t)(-1) && errno == E2BIG) + { + char *memory; + + allocated = 2 * allocated; + if (length + 1 + extra_alloc > allocated) + abort (); + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + grow = false; + + out2ptr = result + length; + out2size = allocated - extra_alloc - length; + if (cd2 != (iconv_t)(-1)) + res = iconv (cd2, + (ICONV_CONST char **) &inptr, + &insize, + &out2ptr, &out2size); + else + { + /* TO_CODESET is UTF-8. */ + if (!(out2size >= insize)) + abort (); + memcpy (out2ptr, inptr, insize); + out2ptr += insize; + out2size -= insize; + inptr += insize; + insize = 0; + res = 0; + } + length = out2ptr - result; + } +# if !defined _LIBICONV_VERSION && !defined __GLIBC__ + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot + convert. + Only GNU libiconv and GNU libc are known to prefer + to fail rather than doing a lossy conversion. */ + if (res != (size_t)(-1) && res > 0) + { + errno = EILSEQ; + res = (size_t)(-1); + } +# endif + if (res == (size_t)(-1)) + { + /* Failure converting the ASCII replacement. */ + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + else + { + if (result != initial_result) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return -1; + } + } + if (!(in2size > 0 + || (in1size == 0 && !do_final_flush1 && do_final_flush2))) + break; + if (grow) + { + char *memory; + + allocated = 2 * allocated; + if (result == initial_result) + memory = (char *) malloc (allocated); + else + memory = (char *) realloc (result, allocated); + if (memory == NULL) + { + if (result != initial_result) + free (result); + errno = ENOMEM; + return -1; + } + if (result == initial_result) + memcpy (memory, initial_result, length); + result = memory; + } + } + + /* Move the remaining bytes to the beginning of utf8buf. */ + if (in2size > 0) + memmove (utf8buf, in2ptr, in2size); + utf8len = in2size; + } + + if (res1 == (size_t)(-1)) + { + if (errno1 == EINVAL) + in1size = 0; + else if (errno1 == EILSEQ) + { + if (result != initial_result) + free (result); + errno = errno1; + return -1; + } + } + } +# undef utf8bufsize + } + + done: + /* Now the final memory allocation. */ + if (result == tmpbuf) + { + size_t memsize = length + extra_alloc; + char *memory; + + memory = (char *) malloc (memsize > 0 ? memsize : 1); + if (memory != NULL) + { + memcpy (memory, tmpbuf, length); + result = memory; + } + else + { + errno = ENOMEM; + return -1; + } + } + else if (result != *resultp && length + extra_alloc < allocated) + { + /* Shrink the allocated memory if possible. */ + size_t memsize = length + extra_alloc; + char *memory; + + memory = (char *) realloc (result, memsize > 0 ? memsize : 1); + if (memory != NULL) + result = memory; + } + *resultp = result; + *lengthp = length; + return 0; +# undef tmpbuf +# undef tmpbufsize +} + +int +mem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + return mem_cd_iconveh_internal (src, srclen, cd->cd, cd->cd1, cd->cd2, + handler, 0, offsets, resultp, lengthp); +} + +char * +str_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler) +{ + /* For most encodings, a trailing NUL byte in the input will be converted + to a trailing NUL byte in the output. But not for UTF-7. So that this + function is usable for UTF-7, we have to exclude the NUL byte from the + conversion and add it by hand afterwards. */ + char *result = NULL; + size_t length = 0; + int retval = mem_cd_iconveh_internal (src, strlen (src), + cd->cd, cd->cd1, cd->cd2, handler, 1, + NULL, &result, &length); + + if (retval < 0) + { + if (result != NULL) + { + int saved_errno = errno; + free (result); + errno = saved_errno; + } + return NULL; + } + + /* Add the terminating NUL byte. */ + result[length] = '\0'; + + return result; +} + +#endif + +int +mem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp) +{ + if (srclen == 0) + { + /* Nothing to convert. */ + *lengthp = 0; + return 0; + } + else if (offsets == NULL && c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result; + + if (*resultp != NULL && *lengthp >= srclen) + result = *resultp; + else + { + result = (char *) malloc (srclen); + if (result == NULL) + { + errno = ENOMEM; + return -1; + } + } + memcpy (result, src, srclen); + *resultp = result; + *lengthp = srclen; + return 0; + } + else + { +#if HAVE_ICONV + iconveh_t cd; + char *result; + size_t length; + int retval; + + if (iconveh_open (to_codeset, from_codeset, &cd) < 0) + return -1; + + result = *resultp; + length = *lengthp; + retval = mem_cd_iconveh (src, srclen, &cd, handler, offsets, + &result, &length); + + if (retval < 0) + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconveh_close (&cd); + errno = saved_errno; + } + else + { + if (iconveh_close (&cd) < 0) + { + /* Return -1, but free the allocated memory, and while doing + that, preserve the errno from iconveh_close. */ + int saved_errno = errno; + if (result != *resultp && result != NULL) + free (result); + errno = saved_errno; + return -1; + } + *resultp = result; + *lengthp = length; + } + return retval; +#else + /* This is a different error code than if iconv_open existed but didn't + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ + errno = ENOSYS; + return -1; +#endif + } +} + +char * +str_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler) +{ + if (*src == '\0' || c_strcasecmp (from_codeset, to_codeset) == 0) + { + char *result = strdup (src); + + if (result == NULL) + errno = ENOMEM; + return result; + } + else + { +#if HAVE_ICONV + iconveh_t cd; + char *result; + + if (iconveh_open (to_codeset, from_codeset, &cd) < 0) + return NULL; + + result = str_cd_iconveh (src, &cd, handler); + + if (result == NULL) + { + /* Close cd, but preserve the errno from str_cd_iconv. */ + int saved_errno = errno; + iconveh_close (&cd); + errno = saved_errno; + } + else + { + if (iconveh_close (&cd) < 0) + { + /* Return NULL, but free the allocated memory, and while doing + that, preserve the errno from iconveh_close. */ + int saved_errno = errno; + free (result); + errno = saved_errno; + return NULL; + } + } + return result; +#else + /* This is a different error code than if iconv_open existed but didn't + support from_codeset and to_codeset, so that the caller can emit + an error message such as + "iconv() is not supported. Installing GNU libiconv and + then reinstalling this package would fix this." */ + errno = ENOSYS; + return NULL; +#endif + } +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconveh.h gettext-0.18.1.1/gettext-tools/libgettextpo/striconveh.h --- gettext-0.17/gettext-tools/libgettextpo/striconveh.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconveh.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,140 @@ +/* Character set conversion with error handling. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible and Simon Josefsson. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _STRICONVEH_H +#define _STRICONVEH_H + +#include +#if HAVE_ICONV +#include +#endif + +#include "iconveh.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +#if HAVE_ICONV + +/* An conversion descriptor for use by the iconveh functions. */ +typedef struct + { + /* Conversion descriptor from FROM_CODESET to TO_CODESET, or (iconv_t)(-1) + if the system does not support a direct conversion from FROM_CODESET to + TO_CODESET. */ + iconv_t cd; + /* Conversion descriptor from FROM_CODESET to UTF-8 (or (iconv_t)(-1) if + FROM_CODESET is UTF-8). */ + iconv_t cd1; + /* Conversion descriptor from UTF-8 to TO_CODESET (or (iconv_t)(-1) if + TO_CODESET is UTF-8). */ + iconv_t cd2; + } + iconveh_t; + +/* Open a conversion descriptor for use by the iconveh functions. + If successful, fills *CDP and returns 0. Upon failure, return -1 with errno + set. */ +extern int + iconveh_open (const char *to_codeset, const char *from_codeset, + iconveh_t *cdp); + +/* Close a conversion descriptor created by iconveh_open(). + Return value: 0 if successful, otherwise -1 and errno set. */ +extern int + iconveh_close (const iconveh_t *cd); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_cd_iconveh (const char *src, size_t srclen, + const iconveh_t *cd, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + CD points to the conversion descriptor from FROMCODE to TOCODE, created by + the function iconveh_open(). + Both the "from" and the "to" encoding must use a single NUL byte at the end + of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_cd_iconveh (const char *src, + const iconveh_t *cd, + enum iconv_ilseq_handler handler); + +#endif + +/* Convert an entire string from one encoding to another, using iconv. + The original string is at [SRC,...,SRC+SRCLEN-1]. + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + *RESULTP and *LENGTH should initially be a scratch buffer and its size, + or *RESULTP can initially be NULL. + May erase the contents of the memory at *RESULTP. + Return value: 0 if successful, otherwise -1 and errno set. + If successful: The resulting string is stored in *RESULTP and its length + in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is + unchanged if no dynamic memory allocation was necessary. */ +extern int + mem_iconveh (const char *src, size_t srclen, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler, + size_t *offsets, + char **resultp, size_t *lengthp); + +/* Convert an entire string from one encoding to another, using iconv. + The original string is the NUL-terminated string starting at SRC. + Both the "from" and the "to" encoding must use a single NUL byte at the + end of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32). + Allocate a malloced memory block for the result. + Return value: the freshly allocated resulting NUL-terminated string if + successful, otherwise NULL and errno set. */ +extern char * + str_iconveh (const char *src, + const char *from_codeset, const char *to_codeset, + enum iconv_ilseq_handler handler); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _STRICONVEH_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/striconv.h gettext-0.18.1.1/gettext-tools/libgettextpo/striconv.h --- gettext-0.17/gettext-tools/libgettextpo/striconv.h 2007-01-27 03:23:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/striconv.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,10 +1,10 @@ /* Charset conversion. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int mem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -65,7 +65,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * str_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/libgettextpo/string.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/string.in.h --- gettext-0.17/gettext-tools/libgettextpo/string.in.h 2007-10-17 22:37:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/string.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -1,10 +1,10 @@ /* A GNU-like . - Copyright (C) 1995-1996, 2001-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2001-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,202 +18,384 @@ #ifndef _GL_STRING_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #ifndef _GL_STRING_H #define _GL_STRING_H +/* NetBSD 5.0 mis-defines NULL. */ +#include -/* The definition of GL_LINK_WARNING is copied here. */ +/* MirBSD defines mbslen as a macro. */ +#if @GNULIB_MBSLEN@ && defined __MirBSD__ +# include +#endif + +#ifndef __attribute__ +/* This feature is available in gcc versions 2.5 and later. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) +# define __attribute__(Spec) /* empty */ +# endif +/* The attribute __pure__ was added in gcc 2.96. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) +# define __pure__ /* empty */ +# endif +#endif -#ifdef __cplusplus -extern "C" { +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Return the first instance of C within N bytes of S, or NULL. */ +#if @GNULIB_MEMCHR@ +# if @REPLACE_MEMCHR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memchr rpl_memchr +# endif +_GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); +# else +# if ! @HAVE_MEMCHR@ +_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const void * std::memchr (const void *, int, size_t); } + extern "C++" { void * std::memchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memchr, + void *, (void const *__s, int __c, size_t __n), + void const *, (void const *__s, int __c, size_t __n)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n)); +_GL_CXXALIASWARN1 (memchr, void const *, + (void const *__s, int __c, size_t __n)); +# else +_GL_CXXALIASWARN (memchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef memchr +/* Assume memchr is always declared. */ +_GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " + "use gnulib module memchr for portability" ); #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ -# if ! @HAVE_DECL_MEMMEM@ -extern void *memmem (void const *__haystack, size_t __haystack_len, - void const *__needle, size_t __needle_len); +# if @REPLACE_MEMMEM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define memmem rpl_memmem +# endif +_GL_FUNCDECL_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +_GL_CXXALIAS_RPL (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); +# else +# if ! @HAVE_DECL_MEMMEM@ +_GL_FUNCDECL_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (memmem, void *, + (void const *__haystack, size_t __haystack_len, + void const *__needle, size_t __needle_len)); # endif +_GL_CXXALIASWARN (memmem); #elif defined GNULIB_POSIXCHECK # undef memmem -# define memmem(a,al,b,bl) \ - (GL_LINK_WARNING ("memmem is unportable - " \ - "use gnulib module memmem for portability"), \ - memmem (a, al, b, bl)) +# if HAVE_RAW_DECL_MEMMEM +_GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " + "use gnulib module memmem-simple for portability, " + "and module memmem for speed" ); +# endif #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ -extern void *mempcpy (void *restrict __dest, void const *restrict __src, - size_t __n); -# endif +_GL_FUNCDECL_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (mempcpy, void *, + (void *restrict __dest, void const *restrict __src, + size_t __n)); +_GL_CXXALIASWARN (mempcpy); #elif defined GNULIB_POSIXCHECK # undef mempcpy -# define mempcpy(a,b,n) \ - (GL_LINK_WARNING ("mempcpy is unportable - " \ - "use gnulib module mempcpy for portability"), \ - mempcpy (a, b, n)) +# if HAVE_RAW_DECL_MEMPCPY +_GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " + "use gnulib module mempcpy for portability"); +# endif #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ -extern void *memrchr (void const *, int, size_t); +_GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::memrchr (const void *, int, size_t); } + extern "C++" { void * std::memrchr (void *, int, size_t); } */ +_GL_CXXALIAS_SYS_CAST2 (memrchr, + void *, (void const *, int, size_t), + void const *, (void const *, int, size_t)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t)); +_GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t)); +# else +_GL_CXXALIASWARN (memrchr); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr -# define memrchr(a,b,c) \ - (GL_LINK_WARNING ("memrchr is unportable - " \ - "use gnulib module memrchr for portability"), \ - memrchr (a, b, c)) +# if HAVE_RAW_DECL_MEMRCHR +_GL_WARN_ON_USE (memrchr, "memrchr is unportable - " + "use gnulib module memrchr for portability"); +# endif +#endif + +/* Find the first occurrence of C in S. More efficient than + memchr(S,C,N), at the expense of undefined behavior if C does not + occur within N bytes. */ +#if @GNULIB_RAWMEMCHR@ +# if ! @HAVE_RAWMEMCHR@ +_GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const void * std::rawmemchr (const void *, int); } + extern "C++" { void * std::rawmemchr (void *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (rawmemchr, + void *, (void const *__s, int __c_in), + void const *, (void const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in)); +_GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (rawmemchr); +# endif +#elif defined GNULIB_POSIXCHECK +# undef rawmemchr +# if HAVE_RAW_DECL_RAWMEMCHR +_GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " + "use gnulib module rawmemchr for portability"); +# endif #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ -extern char *stpcpy (char *restrict __dst, char const *restrict __src); -# endif +_GL_FUNCDECL_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpcpy, char *, + (char *restrict __dst, char const *restrict __src)); +_GL_CXXALIASWARN (stpcpy); #elif defined GNULIB_POSIXCHECK # undef stpcpy -# define stpcpy(a,b) \ - (GL_LINK_WARNING ("stpcpy is unportable - " \ - "use gnulib module stpcpy for portability"), \ - stpcpy (a, b)) +# if HAVE_RAW_DECL_STPCPY +_GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " + "use gnulib module stpcpy for portability"); +# endif #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ -# if ! @HAVE_STPNCPY@ -# define stpncpy gnu_stpncpy -extern char *stpncpy (char *restrict __dst, char const *restrict __src, - size_t __n); +# if @REPLACE_STPNCPY@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define stpncpy rpl_stpncpy +# endif +_GL_FUNCDECL_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); +# else +# if ! @HAVE_STPNCPY@ +_GL_FUNCDECL_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (stpncpy, char *, + (char *restrict __dst, char const *restrict __src, + size_t __n)); # endif +_GL_CXXALIASWARN (stpncpy); #elif defined GNULIB_POSIXCHECK # undef stpncpy -# define stpncpy(a,b,n) \ - (GL_LINK_WARNING ("stpncpy is unportable - " \ - "use gnulib module stpncpy for portability"), \ - stpncpy (a, b, n)) -#endif - -/* Compare strings S1 and S2, ignoring case, returning less than, equal to or - greater than zero if S1 is lexicographically less than, equal to or greater - than S2. - Note: This function does not work in multibyte locales. */ -#if ! @HAVE_STRCASECMP@ -extern int strcasecmp (char const *s1, char const *s2); -#endif -#if defined GNULIB_POSIXCHECK -/* strcasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strcasecmp -# define strcasecmp(a,b) \ - (GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasecmp if you care about " \ - "internationalization, or use c_strcasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strcasecmp (a, b)) -#endif - -/* Compare no more than N bytes of strings S1 and S2, ignoring case, - returning less than, equal to or greater than zero if S1 is - lexicographically less than, equal to or greater than S2. - Note: This function cannot work correctly in multibyte locales. */ -#if ! @HAVE_DECL_STRNCASECMP@ -extern int strncasecmp (char const *s1, char const *s2, size_t n); -#endif -#if defined GNULIB_POSIXCHECK -/* strncasecmp() does not work with multibyte strings: - POSIX says that it operates on "strings", and "string" in POSIX is defined - as a sequence of bytes, not of characters. */ -# undef strncasecmp -# define strncasecmp(a,b,n) \ - (GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \ - "strings in multibyte locales - " \ - "use mbsncasecmp or mbspcasecmp if you care about " \ - "internationalization, or use c_strncasecmp (from " \ - "gnulib module c-strcase) if you want a locale " \ - "independent function"), \ - strncasecmp (a, b, n)) +# if HAVE_RAW_DECL_STPNCPY +_GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " + "use gnulib module stpncpy for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr -# define strchr(s,c) \ - (GL_LINK_WARNING ("strchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbschr if you care about internationalization"), \ - strchr (s, c)) +/* Assume strchr is always declared. */ +_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbschr if you care about internationalization"); #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if ! @HAVE_STRCHRNUL@ -extern char *strchrnul (char const *__s, int __c_in); +_GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * std::strchrnul (const char *, int); } + extern "C++" { char * std::strchrnul (char *, int); } */ +_GL_CXXALIAS_SYS_CAST2 (strchrnul, + char *, (char const *__s, int __c_in), + char const *, (char const *__s, int __c_in)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in)); +_GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in)); +# else +_GL_CXXALIASWARN (strchrnul); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul -# define strchrnul(a,b) \ - (GL_LINK_WARNING ("strchrnul is unportable - " \ - "use gnulib module strchrnul for portability"), \ - strchrnul (a, b)) +# if HAVE_RAW_DECL_STRCHRNUL +_GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " + "use gnulib module strchrnul for portability"); +# endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ -# if ! @HAVE_DECL_STRDUP@ && ! defined strdup -extern char *strdup (char const *__s); +# if @REPLACE_STRDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strdup +# define strdup rpl_strdup +# endif +_GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strdup, char *, (char const *__s)); +# else +# if !(@HAVE_DECL_STRDUP@ || defined strdup) +_GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif +_GL_CXXALIASWARN (strdup); #elif defined GNULIB_POSIXCHECK # undef strdup -# define strdup(a) \ - (GL_LINK_WARNING ("strdup is unportable - " \ - "use gnulib module strdup for portability"), \ - strdup (a)) +# if HAVE_RAW_DECL_STRDUP +_GL_WARN_ON_USE (strdup, "strdup is unportable - " + "use gnulib module strdup for portability"); +# endif +#endif + +/* Append no more than N characters from SRC onto DEST. */ +#if @GNULIB_STRNCAT@ +# if @REPLACE_STRNCAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strncat +# define strncat rpl_strncat +# endif +_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); +# else +_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); +# endif +_GL_CXXALIASWARN (strncat); +#elif defined GNULIB_POSIXCHECK +# undef strncat +# if HAVE_RAW_DECL_STRNCAT +_GL_WARN_ON_USE (strncat, "strncat is unportable - " + "use gnulib module strncat for portability"); +# endif #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ -# if ! @HAVE_STRNDUP@ -# undef strndup -# define strndup rpl_strndup -# endif -# if ! @HAVE_STRNDUP@ || ! @HAVE_DECL_STRNDUP@ -extern char *strndup (char const *__string, size_t __n); +# if @REPLACE_STRNDUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strndup +# define strndup rpl_strndup +# endif +_GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n)); +# else +# if ! @HAVE_DECL_STRNDUP@ +_GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n)); # endif +_GL_CXXALIASWARN (strndup); #elif defined GNULIB_POSIXCHECK # undef strndup -# define strndup(a,n) \ - (GL_LINK_WARNING ("strndup is unportable - " \ - "use gnulib module strndup for portability"), \ - strndup (a, n)) +# if HAVE_RAW_DECL_STRNDUP +_GL_WARN_ON_USE (strndup, "strndup is unportable - " + "use gnulib module strndup for portability"); +# endif #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ -# if ! @HAVE_DECL_STRNLEN@ -extern size_t strnlen (char const *__string, size_t __maxlen); +# if @REPLACE_STRNLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strnlen +# define strnlen rpl_strnlen +# endif +_GL_FUNCDECL_RPL (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (strnlen, size_t, (char const *__string, size_t __maxlen)); +# else +# if ! @HAVE_DECL_STRNLEN@ +_GL_FUNCDECL_SYS (strnlen, size_t, (char const *__string, size_t __maxlen) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (strnlen, size_t, (char const *__string, size_t __maxlen)); # endif +_GL_CXXALIASWARN (strnlen); #elif defined GNULIB_POSIXCHECK # undef strnlen -# define strnlen(a,n) \ - (GL_LINK_WARNING ("strnlen is unportable - " \ - "use gnulib module strnlen for portability"), \ - strnlen (a, n)) +# if HAVE_RAW_DECL_STRNLEN +_GL_WARN_ON_USE (strnlen, "strnlen is unportable - " + "use gnulib module strnlen for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK @@ -222,17 +404,32 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn -# define strcspn(s,a) \ - (GL_LINK_WARNING ("strcspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscspn if you care about internationalization"), \ - strcspn (s, a)) +/* Assume strcspn is always declared. */ +_GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbscspn if you care about internationalization"); #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ -extern char *strpbrk (char const *__s, char const *__accept); +_GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C" { const char * strpbrk (const char *, const char *); } + extern "C++" { char * strpbrk (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strpbrk, + char *, (char const *__s, char const *__accept), + const char *, (char const *__s, char const *__accept)); +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept)); +_GL_CXXALIASWARN1 (strpbrk, char const *, + (char const *__s, char const *__accept)); +# else +_GL_CXXALIASWARN (strpbrk); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. @@ -240,40 +437,36 @@ locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbspbrk if you care about internationalization"), \ - strpbrk (s, a)) +_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings " + "in multibyte locales - " + "use mbspbrk if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk -# define strpbrk(s,a) \ - (GL_LINK_WARNING ("strpbrk is unportable - " \ - "use gnulib module strpbrk for portability"), \ - strpbrk (s, a)) +# if HAVE_RAW_DECL_STRPBRK +_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - " + "use gnulib module strpbrk for portability"); +# endif #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn -# define strspn(s,a) \ - (GL_LINK_WARNING ("strspn cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbsspn if you care about internationalization"), \ - strspn (s, a)) +/* Assume strspn is always declared. */ +_GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " + "in multibyte locales - " + "use mbsspn if you care about internationalization"); #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr -# define strrchr(s,c) \ - (GL_LINK_WARNING ("strrchr cannot work correctly on character strings " \ - "in some multibyte locales - " \ - "use mbsrchr if you care about internationalization"), \ - strrchr (s, c)) +/* Assume strrchr is always declared. */ +_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings " + "in some multibyte locales - " + "use mbsrchr if you care about internationalization"); #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. @@ -294,65 +487,122 @@ See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ -extern char *strsep (char **restrict __stringp, char const *restrict __delim); -# endif +_GL_FUNCDECL_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strsep, char *, + (char **restrict __stringp, char const *restrict __delim)); +_GL_CXXALIASWARN (strsep); # if defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbssep if you care about internationalization"), \ - strsep (s, d)) +_GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " + "in multibyte locales - " + "use mbssep if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strsep -# define strsep(s,d) \ - (GL_LINK_WARNING ("strsep is unportable - " \ - "use gnulib module strsep for portability"), \ - strsep (s, d)) +# if HAVE_RAW_DECL_STRSEP +_GL_WARN_ON_USE (strsep, "strsep is unportable - " + "use gnulib module strsep for portability"); +# endif #endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRSTR@ +# if @REPLACE_STRSTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strstr rpl_strstr +# endif +_GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) + __attribute__ ((__pure__)) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); +# else + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strstr (const char *, const char *); } + extern "C++" { char * strstr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strstr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strstr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strstr); +# endif +#elif defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr -# define strstr(a,b) \ - (GL_LINK_WARNING ("strstr cannot work correctly on character strings " \ - "in most multibyte locales - " \ - "use mbsstr if you care about internationalization"), \ - strstr (a, b)) +/* Assume strstr is always declared. */ +_GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " + "work correctly on character strings in most " + "multibyte locales - " + "use mbsstr if you care about internationalization, " + "or use strstr if you care about speed"); #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ -#if ! @HAVE_STRCASESTR@ -extern char *strcasestr (const char *haystack, const char *needle); -#endif -#if defined GNULIB_POSIXCHECK +#if @GNULIB_STRCASESTR@ +# if @REPLACE_STRCASESTR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strcasestr rpl_strcasestr +# endif +_GL_FUNCDECL_RPL (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (strcasestr, char *, + (const char *haystack, const char *needle)); +# else +# if ! @HAVE_STRCASESTR@ +_GL_FUNCDECL_SYS (strcasestr, char *, + (const char *haystack, const char *needle) + __attribute__ ((__pure__)) _GL_ARG_NONNULL ((1, 2))); +# endif + /* On some systems, this function is defined as an overloaded function: + extern "C++" { const char * strcasestr (const char *, const char *); } + extern "C++" { char * strcasestr (char *, const char *); } */ +_GL_CXXALIAS_SYS_CAST2 (strcasestr, + char *, (const char *haystack, const char *needle), + const char *, (const char *haystack, const char *needle)); +# endif +# if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 10 \ + && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) +_GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle)); +_GL_CXXALIASWARN1 (strcasestr, const char *, + (const char *haystack, const char *needle)); +# else +_GL_CXXALIASWARN (strcasestr); +# endif +#elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr -# define strcasestr(a,b) \ - (GL_LINK_WARNING ("strcasestr does work correctly on character strings " \ - "in multibyte locales - " \ - "use mbscasestr if you care about " \ - "internationalization, or use c-strcasestr if you want " \ - "a locale independent function"), \ - strcasestr (a, b)) +# if HAVE_RAW_DECL_STRCASESTR +_GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " + "strings in multibyte locales - " + "use mbscasestr if you care about " + "internationalization, or use c-strcasestr if you want " + "a locale independent function"); +# endif #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = strtok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = strtok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. @@ -367,24 +617,44 @@ See also strsep(). */ #if @GNULIB_STRTOK_R@ -# if ! @HAVE_DECL_STRTOK_R@ -extern char *strtok_r (char *restrict s, char const *restrict delim, - char **restrict save_ptr); +# if @REPLACE_STRTOK_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strtok_r +# define strtok_r rpl_strtok_r +# endif +_GL_FUNCDECL_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); +# else +# if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK +# undef strtok_r +# endif +# if ! @HAVE_DECL_STRTOK_R@ +_GL_FUNCDECL_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (strtok_r, char *, + (char *restrict s, char const *restrict delim, + char **restrict save_ptr)); # endif +_GL_CXXALIASWARN (strtok_r); # if defined GNULIB_POSIXCHECK -# undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r cannot work correctly on character strings " \ - "in multibyte locales - " \ - "use mbstok_r if you care about internationalization"), \ - strtok_r (s, d, p)) +_GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " + "strings in multibyte locales - " + "use mbstok_r if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r -# define strtok_r(s,d,p) \ - (GL_LINK_WARNING ("strtok_r is unportable - " \ - "use gnulib module strtok_r for portability"), \ - strtok_r (s, d, p)) +# if HAVE_RAW_DECL_STRTOK_R +_GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " + "use gnulib module strtok_r for portability"); +# endif #endif @@ -394,13 +664,27 @@ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ -extern size_t mbslen (const char *string); +# ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */ +# undef mbslen +# endif +# if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbslen rpl_mbslen +# endif +_GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbslen, size_t, (const char *string)); +# else +_GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string)); +# endif +_GL_CXXALIASWARN (mbslen); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ -extern size_t mbsnlen (const char *string, size_t len); +_GL_EXTERN_C size_t mbsnlen (const char *string, size_t len) + _GL_ARG_NONNULL ((1)); #endif #if @GNULIB_MBSCHR@ @@ -408,8 +692,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ -extern char * mbschr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbschr rpl_mbschr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbschr); #endif #if @GNULIB_MBSRCHR@ @@ -417,8 +712,19 @@ and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ -# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ -extern char * mbsrchr (const char *string, int c); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbsrchr rpl_mbsrchr /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c)); +# else +_GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c)); +# endif +_GL_CXXALIASWARN (mbsrchr); #endif #if @GNULIB_MBSSTR@ @@ -426,7 +732,8 @@ string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ -extern char * mbsstr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASECMP@ @@ -436,7 +743,8 @@ Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ -extern int mbscasecmp (const char *s1, const char *s2); +_GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSNCASECMP@ @@ -449,7 +757,8 @@ of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ -extern int mbsncasecmp (const char *s1, const char *s2, size_t n); +_GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPCASECMP@ @@ -462,7 +771,8 @@ smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ -extern char * mbspcasecmp (const char *string, const char *prefix); +_GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASESTR@ @@ -471,7 +781,8 @@ Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ -extern char * mbscasestr (const char *haystack, const char *needle); +_GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCSPN@ @@ -480,7 +791,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ -extern size_t mbscspn (const char *string, const char *accept); +_GL_EXTERN_C size_t mbscspn (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPBRK@ @@ -488,8 +800,19 @@ in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ -# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ -extern char * mbspbrk (const char *string, const char *accept); +# if defined __hpux +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ +# endif +_GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept)); +# else +_GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept)); +# endif +_GL_CXXALIASWARN (mbspbrk); #endif #if @GNULIB_MBSSPN@ @@ -498,7 +821,8 @@ beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ -extern size_t mbsspn (const char *string, const char *reject); +_GL_EXTERN_C size_t mbsspn (const char *string, const char *reject) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSSEP@ @@ -516,7 +840,8 @@ Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ -extern char * mbssep (char **stringp, const char *delim); +_GL_EXTERN_C char * mbssep (char **stringp, const char *delim) + _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSTOK_R@ @@ -524,40 +849,81 @@ the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: - char s[] = "-abc-=-def"; - char *sp; - x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" - x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL - x = mbstok_r(NULL, "=", &sp); // x = NULL - // s = "abc\0-def\0" + char s[] = "-abc-=-def"; + char *sp; + x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" + x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL + x = mbstok_r(NULL, "=", &sp); // x = NULL + // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ -extern char * mbstok_r (char *string, const char *delim, char **save_ptr); +_GL_EXTERN_C char * mbstok_r (char *string, const char *delim, char **save_ptr) + _GL_ARG_NONNULL ((2, 3)); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ -# undef strerror -# define strerror rpl_strerror -extern char *strerror (int); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef strerror +# define strerror rpl_strerror +# endif +_GL_FUNCDECL_RPL (strerror, char *, (int)); +_GL_CXXALIAS_RPL (strerror, char *, (int)); +# else +_GL_CXXALIAS_SYS (strerror, char *, (int)); # endif +_GL_CXXALIASWARN (strerror); #elif defined GNULIB_POSIXCHECK # undef strerror -# define strerror(e) \ - (GL_LINK_WARNING ("strerror is unportable - " \ - "use gnulib module strerror to guarantee non-NULL result"), \ - strerror (e)) +/* Assume strerror is always declared. */ +_GL_WARN_ON_USE (strerror, "strerror is unportable - " + "use gnulib module strerror to guarantee non-NULL result"); +#endif + +#if @GNULIB_STRSIGNAL@ +# if @REPLACE_STRSIGNAL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define strsignal rpl_strsignal +# endif +_GL_FUNCDECL_RPL (strsignal, char *, (int __sig)); +_GL_CXXALIAS_RPL (strsignal, char *, (int __sig)); +# else +# if ! @HAVE_DECL_STRSIGNAL@ +_GL_FUNCDECL_SYS (strsignal, char *, (int __sig)); +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is + 'const char *'. */ +_GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); +# endif +_GL_CXXALIASWARN (strsignal); +#elif defined GNULIB_POSIXCHECK +# undef strsignal +# if HAVE_RAW_DECL_STRSIGNAL +_GL_WARN_ON_USE (strsignal, "strsignal is unportable - " + "use gnulib module strsignal for portability"); +# endif #endif - -#ifdef __cplusplus -} +#if @GNULIB_STRVERSCMP@ +# if !@HAVE_STRVERSCMP@ +_GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); +_GL_CXXALIASWARN (strverscmp); +#elif defined GNULIB_POSIXCHECK +# undef strverscmp +# if HAVE_RAW_DECL_STRVERSCMP +_GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " + "use gnulib module strverscmp for portability"); +# endif #endif + #endif /* _GL_STRING_H */ #endif /* _GL_STRING_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/strnlen.c gettext-0.18.1.1/gettext-tools/libgettextpo/strnlen.c --- gettext-0.17/gettext-tools/libgettextpo/strnlen.c 2007-02-13 01:01:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/strnlen.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/* Find the length of STRING, but scan at most MAXLEN characters. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. - Written by Simon Josefsson. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include - -#include - -/* Find the length of STRING, but scan at most MAXLEN characters. - If no '\0' terminator is found in that many characters, return MAXLEN. */ - -size_t -strnlen (const char *string, size_t maxlen) -{ - const char *end = memchr (string, '\0', maxlen); - return end ? (size_t) (end - string) : maxlen; -} diff -Nru gettext-0.17/gettext-tools/libgettextpo/strstr.c gettext-0.18.1.1/gettext-tools/libgettextpo/strstr.c --- gettext-0.17/gettext-tools/libgettextpo/strstr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/strstr.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,83 @@ +/* Copyright (C) 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000, 2004, 2007, + 2008, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This particular implementation was written by Eric Blake, 2008. */ + +#ifndef _LIBC +# include +#endif + +/* Specification of strstr. */ +#include + +#include + +#ifndef _LIBC +# define __builtin_expect(expr, val) (expr) +#endif + +#define RETURN_TYPE char * +#define AVAILABLE(h, h_l, j, n_l) \ + (!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \ + && ((h_l) = (j) + (n_l))) +#include "str-two-way.h" + +/* Return the first occurrence of NEEDLE in HAYSTACK. Return HAYSTACK + if NEEDLE is empty, otherwise NULL if NEEDLE is not found in + HAYSTACK. */ +char * +strstr (const char *haystack_start, const char *needle_start) +{ + const char *haystack = haystack_start; + const char *needle = needle_start; + size_t needle_len; /* Length of NEEDLE. */ + size_t haystack_len; /* Known minimum length of HAYSTACK. */ + bool ok = true; /* True if NEEDLE is prefix of HAYSTACK. */ + + /* Determine length of NEEDLE, and in the process, make sure + HAYSTACK is at least as long (no point processing all of a long + NEEDLE if HAYSTACK is too short). */ + while (*haystack && *needle) + ok &= *haystack++ == *needle++; + if (*needle) + return NULL; + if (ok) + return (char *) haystack_start; + + /* Reduce the size of haystack using strchr, since it has a smaller + linear coefficient than the Two-Way algorithm. */ + needle_len = needle - needle_start; + haystack = strchr (haystack_start + 1, *needle_start); + if (!haystack || __builtin_expect (needle_len == 1, 0)) + return (char *) haystack; + needle -= needle_len; + haystack_len = (haystack > haystack_start + needle_len ? 1 + : needle_len + haystack_start - haystack); + + /* Perform the search. Abstract memory is considered to be an array + of 'unsigned char' values, not an array of 'char' values. See + ISO C 99 section 6.2.6.1. */ + if (needle_len < LONG_NEEDLE_THRESHOLD) + return two_way_short_needle ((const unsigned char *) haystack, + haystack_len, + (const unsigned char *) needle, needle_len); + return two_way_long_needle ((const unsigned char *) haystack, haystack_len, + (const unsigned char *) needle, needle_len); +} + +#undef LONG_NEEDLE_THRESHOLD diff -Nru gettext-0.17/gettext-tools/libgettextpo/str-two-way.h gettext-0.18.1.1/gettext-tools/libgettextpo/str-two-way.h --- gettext-0.17/gettext-tools/libgettextpo/str-two-way.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/str-two-way.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,429 @@ +/* Byte-wise substring search, using the Two-Way algorithm. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Written by Eric Blake , 2008. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Before including this file, you need to include and + , and define: + RESULT_TYPE A macro that expands to the return type. + AVAILABLE(h, h_l, j, n_l) + A macro that returns nonzero if there are + at least N_L bytes left starting at H[J]. + H is 'unsigned char *', H_L, J, and N_L + are 'size_t'; H_L is an lvalue. For + NUL-terminated searches, H_L can be + modified each iteration to avoid having + to compute the end of H up front. + + For case-insensitivity, you may optionally define: + CMP_FUNC(p1, p2, l) A macro that returns 0 iff the first L + characters of P1 and P2 are equal. + CANON_ELEMENT(c) A macro that canonicalizes an element right after + it has been fetched from one of the two strings. + The argument is an 'unsigned char'; the result + must be an 'unsigned char' as well. + + This file undefines the macros documented above, and defines + LONG_NEEDLE_THRESHOLD. +*/ + +#include +#include + +/* We use the Two-Way string matching algorithm, which guarantees + linear complexity with constant space. Additionally, for long + needles, we also use a bad character shift table similar to the + Boyer-Moore algorithm to achieve improved (potentially sub-linear) + performance. + + See http://www-igm.univ-mlv.fr/~lecroq/string/node26.html#SECTION00260 + and http://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm +*/ + +/* Point at which computing a bad-byte shift table is likely to be + worthwhile. Small needles should not compute a table, since it + adds (1 << CHAR_BIT) + NEEDLE_LEN computations of preparation for a + speedup no greater than a factor of NEEDLE_LEN. The larger the + needle, the better the potential performance gain. On the other + hand, on non-POSIX systems with CHAR_BIT larger than eight, the + memory required for the table is prohibitive. */ +#if CHAR_BIT < 10 +# define LONG_NEEDLE_THRESHOLD 32U +#else +# define LONG_NEEDLE_THRESHOLD SIZE_MAX +#endif + +#ifndef MAX +# define MAX(a, b) ((a < b) ? (b) : (a)) +#endif + +#ifndef CANON_ELEMENT +# define CANON_ELEMENT(c) c +#endif +#ifndef CMP_FUNC +# define CMP_FUNC memcmp +#endif + +/* Perform a critical factorization of NEEDLE, of length NEEDLE_LEN. + Return the index of the first byte in the right half, and set + *PERIOD to the global period of the right half. + + The global period of a string is the smallest index (possibly its + length) at which all remaining bytes in the string are repetitions + of the prefix (the last repetition may be a subset of the prefix). + + When NEEDLE is factored into two halves, a local period is the + length of the smallest word that shares a suffix with the left half + and shares a prefix with the right half. All factorizations of a + non-empty NEEDLE have a local period of at least 1 and no greater + than NEEDLE_LEN. + + A critical factorization has the property that the local period + equals the global period. All strings have at least one critical + factorization with the left half smaller than the global period. + + Given an ordered alphabet, a critical factorization can be computed + in linear time, with 2 * NEEDLE_LEN comparisons, by computing the + larger of two ordered maximal suffixes. The ordered maximal + suffixes are determined by lexicographic comparison of + periodicity. */ +static size_t +critical_factorization (const unsigned char *needle, size_t needle_len, + size_t *period) +{ + /* Index of last byte of left half, or SIZE_MAX. */ + size_t max_suffix, max_suffix_rev; + size_t j; /* Index into NEEDLE for current candidate suffix. */ + size_t k; /* Offset into current period. */ + size_t p; /* Intermediate period. */ + unsigned char a, b; /* Current comparison bytes. */ + + /* Invariants: + 0 <= j < NEEDLE_LEN - 1 + -1 <= max_suffix{,_rev} < j (treating SIZE_MAX as if it were signed) + min(max_suffix, max_suffix_rev) < global period of NEEDLE + 1 <= p <= global period of NEEDLE + p == global period of the substring NEEDLE[max_suffix{,_rev}+1...j] + 1 <= k <= p + */ + + /* Perform lexicographic search. */ + max_suffix = SIZE_MAX; + j = 0; + k = p = 1; + while (j + k < needle_len) + { + a = CANON_ELEMENT (needle[j + k]); + b = CANON_ELEMENT (needle[max_suffix + k]); + if (a < b) + { + /* Suffix is smaller, period is entire prefix so far. */ + j += k; + k = 1; + p = j - max_suffix; + } + else if (a == b) + { + /* Advance through repetition of the current period. */ + if (k != p) + ++k; + else + { + j += p; + k = 1; + } + } + else /* b < a */ + { + /* Suffix is larger, start over from current location. */ + max_suffix = j++; + k = p = 1; + } + } + *period = p; + + /* Perform reverse lexicographic search. */ + max_suffix_rev = SIZE_MAX; + j = 0; + k = p = 1; + while (j + k < needle_len) + { + a = CANON_ELEMENT (needle[j + k]); + b = CANON_ELEMENT (needle[max_suffix_rev + k]); + if (b < a) + { + /* Suffix is smaller, period is entire prefix so far. */ + j += k; + k = 1; + p = j - max_suffix_rev; + } + else if (a == b) + { + /* Advance through repetition of the current period. */ + if (k != p) + ++k; + else + { + j += p; + k = 1; + } + } + else /* a < b */ + { + /* Suffix is larger, start over from current location. */ + max_suffix_rev = j++; + k = p = 1; + } + } + + /* Choose the longer suffix. Return the first byte of the right + half, rather than the last byte of the left half. */ + if (max_suffix_rev + 1 < max_suffix + 1) + return max_suffix + 1; + *period = p; + return max_suffix_rev + 1; +} + +/* Return the first location of non-empty NEEDLE within HAYSTACK, or + NULL. HAYSTACK_LEN is the minimum known length of HAYSTACK. This + method is optimized for NEEDLE_LEN < LONG_NEEDLE_THRESHOLD. + Performance is guaranteed to be linear, with an initialization cost + of 2 * NEEDLE_LEN comparisons. + + If AVAILABLE does not modify HAYSTACK_LEN (as in memmem), then at + most 2 * HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching. + If AVAILABLE modifies HAYSTACK_LEN (as in strstr), then at most 3 * + HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching. */ +static RETURN_TYPE +two_way_short_needle (const unsigned char *haystack, size_t haystack_len, + const unsigned char *needle, size_t needle_len) +{ + size_t i; /* Index into current byte of NEEDLE. */ + size_t j; /* Index into current window of HAYSTACK. */ + size_t period; /* The period of the right half of needle. */ + size_t suffix; /* The index of the right half of needle. */ + + /* Factor the needle into two halves, such that the left half is + smaller than the global period, and the right half is + periodic (with a period as large as NEEDLE_LEN - suffix). */ + suffix = critical_factorization (needle, needle_len, &period); + + /* Perform the search. Each iteration compares the right half + first. */ + if (CMP_FUNC (needle, needle + period, suffix) == 0) + { + /* Entire needle is periodic; a mismatch can only advance by the + period, so use memory to avoid rescanning known occurrences + of the period. */ + size_t memory = 0; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Scan for matches in right half. */ + i = MAX (suffix, memory); + while (i < needle_len && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (memory < i + 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i + 1 < memory + 1) + return (RETURN_TYPE) (haystack + j); + /* No match, so remember how many repetitions of period + on the right half were scanned. */ + j += period; + memory = needle_len - period; + } + else + { + j += i - suffix + 1; + memory = 0; + } + } + } + else + { + /* The two halves of needle are distinct; no extra memory is + required, and any mismatch results in a maximal shift. */ + period = MAX (suffix, needle_len - suffix) + 1; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Scan for matches in right half. */ + i = suffix; + while (i < needle_len && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i == SIZE_MAX) + return (RETURN_TYPE) (haystack + j); + j += period; + } + else + j += i - suffix + 1; + } + } + return NULL; +} + +/* Return the first location of non-empty NEEDLE within HAYSTACK, or + NULL. HAYSTACK_LEN is the minimum known length of HAYSTACK. This + method is optimized for LONG_NEEDLE_THRESHOLD <= NEEDLE_LEN. + Performance is guaranteed to be linear, with an initialization cost + of 3 * NEEDLE_LEN + (1 << CHAR_BIT) operations. + + If AVAILABLE does not modify HAYSTACK_LEN (as in memmem), then at + most 2 * HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching, + and sublinear performance O(HAYSTACK_LEN / NEEDLE_LEN) is possible. + If AVAILABLE modifies HAYSTACK_LEN (as in strstr), then at most 3 * + HAYSTACK_LEN - NEEDLE_LEN comparisons occur in searching, and + sublinear performance is not possible. */ +static RETURN_TYPE +two_way_long_needle (const unsigned char *haystack, size_t haystack_len, + const unsigned char *needle, size_t needle_len) +{ + size_t i; /* Index into current byte of NEEDLE. */ + size_t j; /* Index into current window of HAYSTACK. */ + size_t period; /* The period of the right half of needle. */ + size_t suffix; /* The index of the right half of needle. */ + size_t shift_table[1U << CHAR_BIT]; /* See below. */ + + /* Factor the needle into two halves, such that the left half is + smaller than the global period, and the right half is + periodic (with a period as large as NEEDLE_LEN - suffix). */ + suffix = critical_factorization (needle, needle_len, &period); + + /* Populate shift_table. For each possible byte value c, + shift_table[c] is the distance from the last occurrence of c to + the end of NEEDLE, or NEEDLE_LEN if c is absent from the NEEDLE. + shift_table[NEEDLE[NEEDLE_LEN - 1]] contains the only 0. */ + for (i = 0; i < 1U << CHAR_BIT; i++) + shift_table[i] = needle_len; + for (i = 0; i < needle_len; i++) + shift_table[CANON_ELEMENT (needle[i])] = needle_len - i - 1; + + /* Perform the search. Each iteration compares the right half + first. */ + if (CMP_FUNC (needle, needle + period, suffix) == 0) + { + /* Entire needle is periodic; a mismatch can only advance by the + period, so use memory to avoid rescanning known occurrences + of the period. */ + size_t memory = 0; + size_t shift; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Check the last byte first; if it does not match, then + shift to the next possible match location. */ + shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; + if (0 < shift) + { + if (memory && shift < period) + { + /* Since needle is periodic, but the last period has + a byte out of place, there can be no match until + after the mismatch. */ + shift = needle_len - period; + memory = 0; + } + j += shift; + continue; + } + /* Scan for matches in right half. The last byte has + already been matched, by virtue of the shift table. */ + i = MAX (suffix, memory); + while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len - 1 <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (memory < i + 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i + 1 < memory + 1) + return (RETURN_TYPE) (haystack + j); + /* No match, so remember how many repetitions of period + on the right half were scanned. */ + j += period; + memory = needle_len - period; + } + else + { + j += i - suffix + 1; + memory = 0; + } + } + } + else + { + /* The two halves of needle are distinct; no extra memory is + required, and any mismatch results in a maximal shift. */ + size_t shift; + period = MAX (suffix, needle_len - suffix) + 1; + j = 0; + while (AVAILABLE (haystack, haystack_len, j, needle_len)) + { + /* Check the last byte first; if it does not match, then + shift to the next possible match location. */ + shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; + if (0 < shift) + { + j += shift; + continue; + } + /* Scan for matches in right half. The last byte has + already been matched, by virtue of the shift table. */ + i = suffix; + while (i < needle_len - 1 && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + ++i; + if (needle_len - 1 <= i) + { + /* Scan for matches in left half. */ + i = suffix - 1; + while (i != SIZE_MAX && (CANON_ELEMENT (needle[i]) + == CANON_ELEMENT (haystack[i + j]))) + --i; + if (i == SIZE_MAX) + return (RETURN_TYPE) (haystack + j); + j += period; + } + else + j += i - suffix + 1; + } + } + return NULL; +} + +#undef AVAILABLE +#undef CANON_ELEMENT +#undef CMP_FUNC +#undef MAX +#undef RETURN_TYPE diff -Nru gettext-0.17/gettext-tools/libgettextpo/sys_stat.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/sys_stat.in.h --- gettext-0.17/gettext-tools/libgettextpo/sys_stat.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/sys_stat.in.h 2010-04-25 09:22:40.000000000 +0000 @@ -0,0 +1,640 @@ +/* Provide a more complete sys/stat header file. + Copyright (C) 2005-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Eric Blake, Paul Eggert, and Jim Meyering. */ + +/* This file is supposed to be used on platforms where is + incomplete. It is intended to provide definitions and prototypes + needed by an application. Start with what the system provides. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_system_sys_stat_h +/* Special invocation convention. */ + +#@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ + +#else +/* Normal invocation convention. */ + +#ifndef _GL_SYS_STAT_H + +/* Get nlink_t. */ +#include + +/* Get struct timespec. */ +#include + +/* The include_next requires a split double-inclusion guard. */ +#@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ + +#ifndef _GL_SYS_STAT_H +#define _GL_SYS_STAT_H + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Before doing "#define mkdir rpl_mkdir" below, we need to include all + headers that may declare mkdir(). */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include /* mingw32, mingw64 */ +# include /* mingw64 */ +#endif + +#ifndef S_IFMT +# define S_IFMT 0170000 +#endif + +#if STAT_MACROS_BROKEN +# undef S_ISBLK +# undef S_ISCHR +# undef S_ISDIR +# undef S_ISFIFO +# undef S_ISLNK +# undef S_ISNAM +# undef S_ISMPB +# undef S_ISMPC +# undef S_ISNWK +# undef S_ISREG +# undef S_ISSOCK +#endif + +#ifndef S_ISBLK +# ifdef S_IFBLK +# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) +# else +# define S_ISBLK(m) 0 +# endif +#endif + +#ifndef S_ISCHR +# ifdef S_IFCHR +# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) +# else +# define S_ISCHR(m) 0 +# endif +#endif + +#ifndef S_ISDIR +# ifdef S_IFDIR +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# else +# define S_ISDIR(m) 0 +# endif +#endif + +#ifndef S_ISDOOR /* Solaris 2.5 and up */ +# define S_ISDOOR(m) 0 +#endif + +#ifndef S_ISFIFO +# ifdef S_IFIFO +# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) +# else +# define S_ISFIFO(m) 0 +# endif +#endif + +#ifndef S_ISLNK +# ifdef S_IFLNK +# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +# else +# define S_ISLNK(m) 0 +# endif +#endif + +#ifndef S_ISMPB /* V7 */ +# ifdef S_IFMPB +# define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) +# define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) +# else +# define S_ISMPB(m) 0 +# define S_ISMPC(m) 0 +# endif +#endif + +#ifndef S_ISNAM /* Xenix */ +# ifdef S_IFNAM +# define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) +# else +# define S_ISNAM(m) 0 +# endif +#endif + +#ifndef S_ISNWK /* HP/UX */ +# ifdef S_IFNWK +# define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) +# else +# define S_ISNWK(m) 0 +# endif +#endif + +#ifndef S_ISPORT /* Solaris 10 and up */ +# define S_ISPORT(m) 0 +#endif + +#ifndef S_ISREG +# ifdef S_IFREG +# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +# else +# define S_ISREG(m) 0 +# endif +#endif + +#ifndef S_ISSOCK +# ifdef S_IFSOCK +# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) +# else +# define S_ISSOCK(m) 0 +# endif +#endif + + +#ifndef S_TYPEISMQ +# define S_TYPEISMQ(p) 0 +#endif + +#ifndef S_TYPEISTMO +# define S_TYPEISTMO(p) 0 +#endif + + +#ifndef S_TYPEISSEM +# ifdef S_INSEM +# define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) +# else +# define S_TYPEISSEM(p) 0 +# endif +#endif + +#ifndef S_TYPEISSHM +# ifdef S_INSHD +# define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD) +# else +# define S_TYPEISSHM(p) 0 +# endif +#endif + +/* high performance ("contiguous data") */ +#ifndef S_ISCTG +# define S_ISCTG(p) 0 +#endif + +/* Cray DMF (data migration facility): off line, with data */ +#ifndef S_ISOFD +# define S_ISOFD(p) 0 +#endif + +/* Cray DMF (data migration facility): off line, with no data */ +#ifndef S_ISOFL +# define S_ISOFL(p) 0 +#endif + +/* 4.4BSD whiteout */ +#ifndef S_ISWHT +# define S_ISWHT(m) 0 +#endif + +/* If any of the following are undefined, + define them to their de facto standard values. */ +#if !S_ISUID +# define S_ISUID 04000 +#endif +#if !S_ISGID +# define S_ISGID 02000 +#endif + +/* S_ISVTX is a common extension to POSIX. */ +#ifndef S_ISVTX +# define S_ISVTX 01000 +#endif + +#if !S_IRUSR && S_IREAD +# define S_IRUSR S_IREAD +#endif +#if !S_IRUSR +# define S_IRUSR 00400 +#endif +#if !S_IRGRP +# define S_IRGRP (S_IRUSR >> 3) +#endif +#if !S_IROTH +# define S_IROTH (S_IRUSR >> 6) +#endif + +#if !S_IWUSR && S_IWRITE +# define S_IWUSR S_IWRITE +#endif +#if !S_IWUSR +# define S_IWUSR 00200 +#endif +#if !S_IWGRP +# define S_IWGRP (S_IWUSR >> 3) +#endif +#if !S_IWOTH +# define S_IWOTH (S_IWUSR >> 6) +#endif + +#if !S_IXUSR && S_IEXEC +# define S_IXUSR S_IEXEC +#endif +#if !S_IXUSR +# define S_IXUSR 00100 +#endif +#if !S_IXGRP +# define S_IXGRP (S_IXUSR >> 3) +#endif +#if !S_IXOTH +# define S_IXOTH (S_IXUSR >> 6) +#endif + +#if !S_IRWXU +# define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) +#endif +#if !S_IRWXG +# define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) +#endif +#if !S_IRWXO +# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) +#endif + +/* S_IXUGO is a common extension to POSIX. */ +#if !S_IXUGO +# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) +#endif + +#ifndef S_IRWXUGO +# define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) +#endif + +/* Macros for futimens and utimensat. */ +#ifndef UTIME_NOW +# define UTIME_NOW (-1) +# define UTIME_OMIT (-2) +#endif + + +#if @GNULIB_FCHMODAT@ +# if !@HAVE_FCHMODAT@ +_GL_FUNCDECL_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchmodat, int, + (int fd, char const *file, mode_t mode, int flag)); +_GL_CXXALIASWARN (fchmodat); +#elif defined GNULIB_POSIXCHECK +# undef fchmodat +# if HAVE_RAW_DECL_FCHMODAT +_GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @REPLACE_FSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define fstat rpl_fstat +# endif +_GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); +#else +_GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); +#endif +_GL_CXXALIASWARN (fstat); + + +#if @GNULIB_FSTATAT@ +# if @REPLACE_FSTATAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fstatat +# define fstatat rpl_fstatat +# endif +_GL_FUNCDECL_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +_GL_CXXALIAS_RPL (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# else +# if !@HAVE_FSTATAT@ +_GL_FUNCDECL_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (fstatat, int, + (int fd, char const *name, struct stat *st, int flags)); +# endif +_GL_CXXALIASWARN (fstatat); +#elif defined GNULIB_POSIXCHECK +# undef fstatat +# if HAVE_RAW_DECL_FSTATAT +_GL_WARN_ON_USE (fstatat, "fstatat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FUTIMENS@ +# if @REPLACE_FUTIMENS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef futimens +# define futimens rpl_futimens +# endif +_GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); +_GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); +# else +# if !@HAVE_FUTIMENS@ +_GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); +# endif +_GL_CXXALIASWARN (futimens); +#elif defined GNULIB_POSIXCHECK +# undef futimens +# if HAVE_RAW_DECL_FUTIMENS +_GL_WARN_ON_USE (futimens, "futimens is not portable - " + "use gnulib module futimens for portability"); +# endif +#endif + + +#if @GNULIB_LCHMOD@ +/* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME + denotes a symbolic link. */ +# if !@HAVE_LCHMOD@ +/* The lchmod replacement follows symbolic links. Callers should take + this into account; lchmod should be applied only to arguments that + are known to not be symbolic links. On hosts that lack lchmod, + this can lead to race conditions between the check and the + invocation of lchmod, but we know of no workarounds that are + reliable in general. You might try requesting support for lchmod + from your operating system supplier. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lchmod chmod +# endif +/* Need to cast, because on mingw, the second parameter of chmod is + int mode. */ +_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int, + (const char *filename, mode_t mode)); +# else +# if 0 /* assume already declared */ +_GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); +# endif +# if @HAVE_LCHMOD@ +_GL_CXXALIASWARN (lchmod); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lchmod +# if HAVE_RAW_DECL_LCHMOD +_GL_WARN_ON_USE (lchmod, "lchmod is unportable - " + "use gnulib module lchmod for portability"); +# endif +#endif + + +#if @GNULIB_LSTAT@ +# if ! @HAVE_LSTAT@ +/* mingw does not support symlinks, therefore it does not have lstat. But + without links, stat does just fine. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lstat stat +# endif +_GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf)); +# elif @REPLACE_LSTAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lstat +# define lstat rpl_lstat +# endif +_GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf)); +# else +_GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf)); +# endif +# if @HAVE_LSTAT@ +_GL_CXXALIASWARN (lstat); +# endif +#elif defined GNULIB_POSIXCHECK +# undef lstat +# if HAVE_RAW_DECL_LSTAT +_GL_WARN_ON_USE (lstat, "lstat is unportable - " + "use gnulib module lstat for portability"); +# endif +#endif + + +#if @REPLACE_MKDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkdir +# define mkdir rpl_mkdir +# endif +_GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +#else +/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. + Additionally, it declares _mkdir (and depending on compile flags, an + alias mkdir), only in the nonstandard includes and , + which are included above. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +static inline int +rpl_mkdir (char const *name, mode_t mode) +{ + return _mkdir (name); +} + +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mkdir rpl_mkdir +# endif +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); +# else +_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); +# endif +#endif +_GL_CXXALIASWARN (mkdir); + + +#if @GNULIB_MKDIRAT@ +# if !@HAVE_MKDIRAT@ +_GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkdirat); +#elif defined GNULIB_POSIXCHECK +# undef mkdirat +# if HAVE_RAW_DECL_MKDIRAT +_GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFO@ +# if @REPLACE_MKFIFO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mkfifo +# define mkfifo rpl_mkfifo +# endif +_GL_FUNCDECL_RPL (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mkfifo, int, (char const *file, mode_t mode)); +# else +# if !@HAVE_MKFIFO@ +_GL_FUNCDECL_SYS (mkfifo, int, (char const *file, mode_t mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); +# endif +_GL_CXXALIASWARN (mkfifo); +#elif defined GNULIB_POSIXCHECK +# undef mkfifo +# if HAVE_RAW_DECL_MKFIFO +_GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " + "use gnulib module mkfifo for portability"); +# endif +#endif + + +#if @GNULIB_MKFIFOAT@ +# if !@HAVE_MKFIFOAT@ +_GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); +_GL_CXXALIASWARN (mkfifoat); +#elif defined GNULIB_POSIXCHECK +# undef mkfifoat +# if HAVE_RAW_DECL_MKFIFOAT +_GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_MKNOD@ +# if @REPLACE_MKNOD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mknod +# define mknod rpl_mknod +# endif +_GL_FUNCDECL_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# else +# if !@HAVE_MKNOD@ +_GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev)); +# endif +_GL_CXXALIASWARN (mknod); +#elif defined GNULIB_POSIXCHECK +# undef mknod +# if HAVE_RAW_DECL_MKNOD +_GL_WARN_ON_USE (mknod, "mknod is not portable - " + "use gnulib module mknod for portability"); +# endif +#endif + + +#if @GNULIB_MKNODAT@ +# if !@HAVE_MKNODAT@ +_GL_FUNCDECL_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mknodat, int, + (int fd, char const *file, mode_t mode, dev_t dev)); +_GL_CXXALIASWARN (mknodat); +#elif defined GNULIB_POSIXCHECK +# undef mknodat +# if HAVE_RAW_DECL_MKNODAT +_GL_WARN_ON_USE (mknodat, "mknodat is not portable - " + "use gnulib module mkfifoat for portability"); +# endif +#endif + + +#if @GNULIB_STAT@ +# if @REPLACE_STAT@ +/* We can't use the object-like #define stat rpl_stat, because of + struct stat. This means that rpl_stat will not be used if the user + does (stat)(a,b). Oh well. */ +# undef stat +# ifdef _LARGE_FILES + /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, + so we have to replace stat64() instead of stat(). */ +# define stat stat64 +# undef stat64 +# define stat64(name, st) rpl_stat (name, st) +# else /* !_LARGE_FILES */ +# define stat(name, st) rpl_stat (name, st) +# endif /* !_LARGE_FILES */ +_GL_EXTERN_C int stat (const char *name, struct stat *buf) _GL_ARG_NONNULL ((1, 2)); +# endif +#elif defined GNULIB_POSIXCHECK +# undef stat +# if HAVE_RAW_DECL_STAT +_GL_WARN_ON_USE (stat, "stat is unportable - " + "use gnulib module stat for portability"); +# endif +#endif + + +#if @GNULIB_UTIMENSAT@ +# if @REPLACE_UTIMENSAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef utimensat +# define utimensat rpl_utimensat +# endif +_GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# else +# if !@HAVE_UTIMENSAT@ +_GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, + struct timespec const times[2], int flag)); +# endif +_GL_CXXALIASWARN (utimensat); +#elif defined GNULIB_POSIXCHECK +# undef utimensat +# if HAVE_RAW_DECL_UTIMENSAT +_GL_WARN_ON_USE (utimensat, "utimensat is not portable - " + "use gnulib module utimensat for portability"); +# endif +#endif + + +#endif /* _GL_SYS_STAT_H */ +#endif /* _GL_SYS_STAT_H */ +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/time.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/time.in.h --- gettext-0.17/gettext-tools/libgettextpo/time.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/time.in.h 2010-06-03 21:37:07.000000000 +0000 @@ -0,0 +1,229 @@ +/* A more-standard . + + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Don't get in the way of glibc when it includes time.h merely to + declare a few standard symbols, rather than to declare all the + symbols. Also, Solaris 8 eventually includes itself + recursively; if that is happening, just include the system + without adding our own declarations. */ +#if (defined __need_time_t || defined __need_clock_t \ + || defined __need_timespec \ + || defined _GL_TIME_H) + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +#else + +# define _GL_TIME_H + +# @INCLUDE_NEXT@ @NEXT_TIME_H@ + +/* NetBSD 5.0 mis-defines NULL. */ +# include + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Some systems don't define struct timespec (e.g., AIX 4.1, Ultrix 4.3). + Or they define it with the wrong member names or define it in + (e.g., FreeBSD circa 1997). Stock Mingw does not define it, but the + pthreads-win32 library defines it in . */ +# if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ +# if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ +# include +# elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ +# include +/* The pthreads-win32 also defines a couple of broken macros. */ +# undef asctime_r +# undef ctime_r +# undef gmtime_r +# undef localtime_r +# undef rand_r +# undef strtok_r +# else + +# ifdef __cplusplus +extern "C" { +# endif + +# undef timespec +# define timespec rpl_timespec +struct timespec +{ + time_t tv_sec; + long int tv_nsec; +}; + +# ifdef __cplusplus +} +# endif + +# endif +# endif + +/* Sleep for at least RQTP seconds unless interrupted, If interrupted, + return -1 and store the remaining time into RMTP. See + . */ +# if @GNULIB_NANOSLEEP@ +# if @REPLACE_NANOSLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define nanosleep rpl_nanosleep +# endif +_GL_FUNCDECL_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# else +# if ! @HAVE_NANOSLEEP@ +_GL_FUNCDECL_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (nanosleep, int, + (struct timespec const *__rqtp, struct timespec *__rmtp)); +# endif +_GL_CXXALIASWARN (nanosleep); +# endif + +/* Return the 'time_t' representation of TP and normalize TP. */ +# if @GNULIB_MKTIME@ +# if @REPLACE_MKTIME@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define mktime rpl_mktime +# endif +_GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); +# else +_GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); +# endif +_GL_CXXALIASWARN (mktime); +# endif + +/* Convert TIMER to RESULT, assuming local time and UTC respectively. See + and + . */ +# if @GNULIB_TIME_R@ +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef localtime_r +# define localtime_r rpl_localtime_r +# endif +_GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (localtime_r); +# if @REPLACE_LOCALTIME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gmtime_r +# define gmtime_r rpl_gmtime_r +# endif +_GL_FUNCDECL_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# else +# if ! @HAVE_LOCALTIME_R@ +_GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, + struct tm *restrict __result)); +# endif +_GL_CXXALIASWARN (gmtime_r); +# endif + +/* Parse BUF as a time stamp, assuming FORMAT specifies its layout, and store + the resulting broken-down time into TM. See + . */ +# if @GNULIB_STRPTIME@ +# if ! @HAVE_STRPTIME@ +_GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm) + _GL_ARG_NONNULL ((1, 2, 3))); +# endif +_GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, + char const *restrict __format, + struct tm *restrict __tm)); +_GL_CXXALIASWARN (strptime); +# endif + +/* Convert TM to a time_t value, assuming UTC. */ +# if @GNULIB_TIMEGM@ +# if @REPLACE_TIMEGM@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef timegm +# define timegm rpl_timegm +# endif +_GL_FUNCDECL_RPL (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); +# else +# if ! @HAVE_TIMEGM@ +_GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); +# endif +_GL_CXXALIASWARN (timegm); +# endif + +/* Encourage applications to avoid unsafe functions that can overrun + buffers when given outlandish struct tm values. Portable + applications should use strftime (or even sprintf) instead. */ +# if defined GNULIB_POSIXCHECK +# undef asctime +_GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef asctime_r +_GL_WARN_ON_USE (asctime, "asctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime +_GL_WARN_ON_USE (asctime, "ctime can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif +# if defined GNULIB_POSIXCHECK +# undef ctime_r +_GL_WARN_ON_USE (asctime, "ctime_r can overrun buffers in some cases - " + "better use strftime (or even sprintf) instead"); +# endif + +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/tls.c gettext-0.18.1.1/gettext-tools/libgettextpo/tls.c --- gettext-0.17/gettext-tools/libgettextpo/tls.c 2007-10-07 20:30:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/tls.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,61 +0,0 @@ -/* Thread-local storage in multithreaded situations. - Copyright (C) 2005-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written by Bruno Haible , 2005. */ - -#include - -#include "tls.h" - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -void * -glthread_tls_get (thread_key_t key) -{ - void *value; - - if (thr_getspecific (key, &value) != 0) - abort (); - return value; -} - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -#endif - -/* ========================================================================= */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/tls.h gettext-0.18.1.1/gettext-tools/libgettextpo/tls.h --- gettext-0.17/gettext-tools/libgettextpo/tls.h 2007-11-05 01:03:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/tls.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,335 +0,0 @@ -/* Thread-local storage in multithreaded situations. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written by Bruno Haible , 2005. */ - -/* This file contains thread-local storage primitives for use with a given - thread library. It does not contain primitives for creating threads or - for other multithreading primitives. - - Type: gl_tls_key_t - Initialization: gl_tls_key_init (name, destructor); - Getting per-thread value: gl_tls_get (name) - Setting per-thread value: gl_tls_set (name, pointer); - De-initialization: gl_tls_key_destroy (name); - - A per-thread value is of type 'void *'. - - A destructor is a function pointer of type 'void (*) (void *)', called - when a thread exits, and taking the last per-thread value as argument. It - is unspecified whether the destructor function is called when the last - per-thread value is NULL. On some platforms, the destructor function is - not called at all. -*/ - - -#ifndef _TLS_H -#define _TLS_H - -/* ========================================================================= */ - -#if USE_POSIX_THREADS - -/* Use the POSIX threads library. */ - -# include -# include - -# if PTHREAD_IN_USE_DETECTION_HARD - -/* The pthread_in_use() detection needs to be done at runtime. */ -# define pthread_in_use() \ - glthread_in_use () -extern int glthread_in_use (void); - -# endif - -# if USE_POSIX_THREADS_WEAK - -/* Use weak references to the POSIX threads library. */ - -# pragma weak pthread_key_create -# pragma weak pthread_getspecific -# pragma weak pthread_setspecific -# pragma weak pthread_key_delete -# ifndef pthread_self -# pragma weak pthread_self -# endif - -# if !PTHREAD_IN_USE_DETECTION_HARD -# pragma weak pthread_cancel -# define pthread_in_use() (pthread_cancel != NULL) -# endif - -# else - -# if !PTHREAD_IN_USE_DETECTION_HARD -# define pthread_in_use() 1 -# endif - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - pthread_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_key_create (&(NAME).key, DESTRUCTOR) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (pthread_in_use () \ - ? pthread_getspecific ((NAME).key) \ - : (NAME).singlethread_value) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (pthread_in_use ()) \ - { \ - if (pthread_setspecific ((NAME).key, (POINTER)) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (pthread_in_use () && pthread_key_delete ((NAME).key) != 0) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if USE_PTH_THREADS - -/* Use the GNU Pth threads library. */ - -# include -# include - -# if USE_PTH_THREADS_WEAK - -/* Use weak references to the GNU Pth threads library. */ - -# pragma weak pth_key_create -# pragma weak pth_key_getdata -# pragma weak pth_key_setdata -# pragma weak pth_key_delete - -# pragma weak pth_cancel -# define pth_in_use() (pth_cancel != NULL) - -# else - -# define pth_in_use() 1 - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - pth_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - if (!pth_key_create (&(NAME).key, DESTRUCTOR)) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (pth_in_use () \ - ? pth_key_getdata ((NAME).key) \ - : (NAME).singlethread_value) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (pth_in_use ()) \ - { \ - if (!pth_key_setdata ((NAME).key, (POINTER))) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (pth_in_use () && !pth_key_delete ((NAME).key)) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if USE_SOLARIS_THREADS - -/* Use the old Solaris threads library. */ - -# include -# include - -# if USE_SOLARIS_THREADS_WEAK - -/* Use weak references to the old Solaris threads library. */ - -# pragma weak thr_keycreate -# pragma weak thr_getspecific -# pragma weak thr_setspecific - -# pragma weak thr_suspend -# define thread_in_use() (thr_suspend != NULL) - -# else - -# define thread_in_use() 1 - -# endif - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef union - { - void *singlethread_value; - thread_key_t key; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - if (thr_keycreate (&(NAME).key, DESTRUCTOR) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = NULL; \ - } \ - while (0) -# define gl_tls_get(NAME) \ - (thread_in_use () \ - ? glthread_tls_get ((NAME).key) \ - : (NAME).singlethread_value) -extern void *glthread_tls_get (thread_key_t key); -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (thread_in_use ()) \ - { \ - if (thr_setspecific ((NAME).key, (POINTER)) != 0) \ - abort (); \ - } \ - else \ - (NAME).singlethread_value = (POINTER); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - /* Unsupported. */ \ - (void)0 - -#endif - -/* ========================================================================= */ - -#if USE_WIN32_THREADS - -# include - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef DWORD gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - /* The destructor is unsupported. */ \ - do \ - { \ - if (((NAME) = TlsAlloc ()) == (DWORD)-1) \ - abort (); \ - } \ - while (0) -# define gl_tls_get(NAME) \ - TlsGetValue (NAME) -# define gl_tls_set(NAME, POINTER) \ - do \ - { \ - if (!TlsSetValue (NAME, POINTER)) \ - abort (); \ - } \ - while (0) -# define gl_tls_key_destroy(NAME) \ - do \ - { \ - if (!TlsFree (NAME)) \ - abort (); \ - } \ - while (0) - -#endif - -/* ========================================================================= */ - -#if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) - -/* Provide dummy implementation if threads are not supported. */ - -/* ------------------------- gl_tls_key_t datatype ------------------------- */ - -typedef struct - { - void *singlethread_value; - } - gl_tls_key_t; -# define gl_tls_key_init(NAME, DESTRUCTOR) \ - (NAME).singlethread_value = NULL -# define gl_tls_get(NAME) \ - (NAME).singlethread_value -# define gl_tls_set(NAME, POINTER) \ - (NAME).singlethread_value = (POINTER) -# define gl_tls_key_destroy(NAME) \ - (void)0 - -#endif - -/* ========================================================================= */ - -#endif /* _TLS_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniconv/u8-conv-from-enc.c gettext-0.18.1.1/gettext-tools/libgettextpo/uniconv/u8-conv-from-enc.c --- gettext-0.17/gettext-tools/libgettextpo/uniconv/u8-conv-from-enc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniconv/u8-conv-from-enc.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,105 @@ +/* Conversion to UTF-8 from legacy encodings. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include + +/* Specification. */ +#include "uniconv.h" + +#include +#include +#include + +#include "c-strcaseeq.h" +#include "striconveha.h" +#include "unistr.h" + +uint8_t * +u8_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint8_t *resultbuf, size_t *lengthp) +{ + if (STRCASEEQ (fromcode, "UTF-8", 'U','T','F','-','8',0,0,0,0)) + { + /* Conversion from UTF-8 to UTF-8. No need to go through iconv(). */ + uint8_t *result; + + if (u8_check ((const uint8_t *) src, srclen)) + { + errno = EILSEQ; + return NULL; + } + + if (offsets != NULL) + { + size_t i; + + for (i = 0; i < srclen; ) + { + int count = u8_mblen ((const uint8_t *) src + i, srclen - i); + /* We can rely on count > 0 because of the previous u8_check. */ + if (count <= 0) + abort (); + offsets[i] = i; + i++; + while (--count > 0) + offsets[i++] = (size_t)(-1); + } + } + + /* Memory allocation. */ + if (resultbuf != NULL && *lengthp >= srclen) + result = resultbuf; + else + { + result = (uint8_t *) malloc (srclen > 0 ? srclen : 1); + if (result == NULL) + { + errno = ENOMEM; + return NULL; + } + } + + memcpy ((char *) result, src, srclen); + *lengthp = srclen; + return result; + } + else + { + char *result = (char *) resultbuf; + size_t length = *lengthp; + + if (mem_iconveha (src, srclen, fromcode, "UTF-8", true, handler, + offsets, &result, &length) < 0) + return NULL; + + if (result == NULL) /* when (resultbuf == NULL && length == 0) */ + { + result = (char *) malloc (1); + if (result == NULL) + { + errno = ENOMEM; + return NULL; + } + } + *lengthp = length; + return (uint8_t *) result; + } +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniconv.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/uniconv.in.h --- gettext-0.17/gettext-tools/libgettextpo/uniconv.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniconv.in.h 2010-05-17 19:58:03.000000000 +0000 @@ -0,0 +1,172 @@ +/* Conversions between Unicode and legacy encodings. + Copyright (C) 2002, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNICONV_H +#define _UNICONV_H + +/* Get size_t. */ +#include + +#include "unitypes.h" + +/* Get enum iconv_ilseq_handler. */ +#include "iconveh.h" + +/* Get uniconv_register_autodetect() declaration. */ +#include "striconveha.h" + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Converts an entire string, possibly including NUL bytes, from one encoding + to a Unicode encoding. + Converts a memory region given in encoding FROMCODE. FROMCODE is as for + iconv_open(3). + The input is in the memory region between SRC (inclusive) and SRC + SRCLEN + (exclusive). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + RESULTBUF and *LENGTHP should initially be a scratch buffer and its size, + or *RESULTBUF can be NULL. + May erase the contents of the memory at RESULTBUF. + If successful: The resulting Unicode string (non-NULL) is returned and its + length stored in *LENGTHP. The resulting string is RESULTBUF if no dynamic + memory allocation was necessary, or a freshly allocated memory block + otherwise. + In case of error: NULL is returned and errno is set. Particular errno + values: EINVAL, EILSEQ, ENOMEM. */ +extern uint8_t * + u8_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint8_t *resultbuf, size_t *lengthp); +extern uint16_t * + u16_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint16_t *resultbuf, size_t *lengthp); +extern uint32_t * + u32_conv_from_encoding (const char *fromcode, + enum iconv_ilseq_handler handler, + const char *src, size_t srclen, + size_t *offsets, + uint32_t *resultbuf, size_t *lengthp); + +/* Converts an entire Unicode string, possibly including NUL units, from a + Unicode encoding to a given encoding. + Converts a memory region to encoding TOCODE. TOCODE is as for + iconv_open(3). + The input is in the memory region between SRC (inclusive) and SRC + SRCLEN + (exclusive). + If OFFSETS is not NULL, it should point to an array of SRCLEN integers; this + array is filled with offsets into the result, i.e. the character starting + at SRC[i] corresponds to the character starting at (*RESULTP)[OFFSETS[i]], + and other offsets are set to (size_t)(-1). + RESULTBUF and *LENGTHP should initially be a scratch buffer and its size, + or RESULTBUF can be NULL. + May erase the contents of the memory at RESULTBUF. + If successful: The resulting string (non-NULL) is returned and its length + stored in *LENGTHP. The resulting string is RESULTBUF if no dynamic memory + allocation was necessary, or a freshly allocated memory block otherwise. + In case of error: NULL is returned and errno is set. Particular errno + values: EINVAL, EILSEQ, ENOMEM. */ +extern char * + u8_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint8_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); +extern char * + u16_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint16_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); +extern char * + u32_conv_to_encoding (const char *tocode, + enum iconv_ilseq_handler handler, + const uint32_t *src, size_t srclen, + size_t *offsets, + char *resultbuf, size_t *lengthp); + +/* Converts a NUL terminated string from a given encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: EILSEQ, ENOMEM. */ +extern uint8_t * + u8_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); +extern uint16_t * + u16_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); +extern uint32_t * + u32_strconv_from_encoding (const char *string, + const char *fromcode, + enum iconv_ilseq_handler handler); + +/* Converts a NUL terminated string to a given encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: EILSEQ, ENOMEM. */ +extern char * + u8_strconv_to_encoding (const uint8_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); +extern char * + u16_strconv_to_encoding (const uint16_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); +extern char * + u32_strconv_to_encoding (const uint32_t *string, + const char *tocode, + enum iconv_ilseq_handler handler); + +/* Converts a NUL terminated string from the locale encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern uint8_t * + u8_strconv_from_locale (const char *string); +extern uint16_t * + u16_strconv_from_locale (const char *string); +extern uint32_t * + u32_strconv_from_locale (const char *string); + +/* Converts a NUL terminated string to the locale encoding. + The result is malloc allocated, or NULL (with errno set) in case of error. + Particular errno values: ENOMEM. */ +extern char * + u8_strconv_to_locale (const uint8_t *string); +extern char * + u16_strconv_to_locale (const uint16_t *string); +extern char * + u32_strconv_to_locale (const uint32_t *string); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNICONV_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrkprop1.h gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrkprop1.h --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrkprop1.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrkprop1.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,33 @@ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +/* Line breaking properties of Unicode characters. */ +/* Generated automatically by gen-lbrk for Unicode 5.1.0. */ + +/* Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#define lbrkprop_header_0 16 +#define lbrkprop_header_1 15 +#define lbrkprop_header_2 7 +#define lbrkprop_header_3 511 +#define lbrkprop_header_4 127 + +typedef struct + { + int level1[15]; + int level2[4 << 9]; + unsigned char level3[142 << 7]; + } +lbrkprop_t; +extern const lbrkprop_t unilbrkprop; diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrkprop2.h gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrkprop2.h --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrkprop2.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrkprop2.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,2558 @@ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +/* Line breaking properties of Unicode characters. */ +/* Generated automatically by gen-lbrk for Unicode 5.1.0. */ + +/* Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +const lbrkprop_t unilbrkprop = +{ + { + 0, 512, 1024, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 1536 + }, + { + 0, 128, 256, 256, 256, 384, 512, 640, + 256, 768, 896, 1024, 1152, 1280, 1408, 1536, + -1, -1, 1664, 1792, 1920, 2048, 2176, 2304, + 2432, 2560, 2688, 2816, 2944, 3072, 3200, 3328, + 3456, 3584, 3712, 3840, 3968, 4096, 4224, 4352, + 4480, 256, 256, 256, 4608, 4736, 4864, 4992, + 5120, 5248, 5376, 5504, 5632, -1, 5760, 5888, + 6016, -1, 256, 6144, 256, 256, 6272, 6400, + 6528, 6656, 6784, 6912, 7040, 7168, 7296, 7424, + 7552, 7680, 7808, 7936, 8064, 8192, 8320, 8448, + 256, 256, 256, 8576, 256, 256, 8704, -1, + 8832, 8960, 9088, 9216, 9344, 9472, 9600, 9728, + 9856, 9984, 10112, 10240, 10368, 10496, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 10624, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 10752, + 10880, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 11008, 256, 256, 11136, 11264, 256, 11392, + 11520, 11648, 11776, -1, 11904, -1, -1, -1, + 12032, 12160, 12288, 12416, 12544, 12672, 12800, 12032, + 12160, 12288, 12416, 12544, 12672, 12800, 12032, 12160, + 12288, 12416, 12544, 12672, 12800, 12032, 12160, 12288, + 12416, 12544, 12672, 12800, 12032, 12160, 12288, 12416, + 12544, 12672, 12800, 12032, 12160, 12288, 12416, 12544, + 12672, 12800, 12032, 12160, 12288, 12416, 12544, 12672, + 12800, 12032, 12160, 12288, 12416, 12544, 12672, 12800, + 12032, 12160, 12288, 12416, 12544, 12672, 12800, 12032, + 12160, 12288, 12416, 12544, 12672, 12800, 12032, 12160, + 12288, 12416, 12544, 12672, 12800, 12032, 12160, 12288, + 12416, 12544, 12672, 12800, 12032, 12160, 12288, 12928, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 9600, 9600, 13056, 13184, 13312, 13440, + 256, 256, 13568, 13696, 13824, 13952, 14080, 14208, + 14336, 14464, 14592, 14720, -1, 14848, 14976, 15104, + 256, 15232, -1, -1, -1, -1, -1, -1, + 15360, -1, 15488, -1, 15616, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 256, 256, 256, 256, 256, 256, 15744, -1, + 15872, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 256, 16000, 16128, 16256, 16384, -1, 16512, -1, + 16640, 16768, 16896, 256, 256, 17024, 256, 17152, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 17280, 17408, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 9600, 9600, 9600, + 9600, 9600, 9600, 9600, 9600, 17536, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 9600, 9600, 9600, 9600, 17664, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + 17792, -1, 17920, 18048, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1 + }, + { + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_BA, LBP_BK, LBP_BK, LBP_BK, LBP_BK, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_SP, LBP_EX, LBP_QU, LBP_AL, LBP_PR, LBP_PO, LBP_AL, LBP_QU, + LBP_OP, LBP_CL, LBP_AL, LBP_PR, LBP_IS, LBP_HY, LBP_IS, LBP_SY, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_IS, LBP_IS, LBP_AL, LBP_AL, LBP_AL, LBP_EX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_PR, LBP_CL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_BA, LBP_CL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BK, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_GL, LBP_OP, LBP_PO, LBP_PR, LBP_PR, LBP_PR, LBP_AL, LBP_AI, + LBP_AI, LBP_AL, LBP_AI, LBP_QU, LBP_AL, LBP_BA, LBP_AL, LBP_AL, + LBP_PO, LBP_PR, LBP_AI, LBP_AI, LBP_BB, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_QU, LBP_AI, LBP_AI, LBP_AI, LBP_OP, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_BB, LBP_AI, LBP_AI, LBP_AI, LBP_BB, LBP_AI, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_BB, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, LBP_GL, LBP_GL, LBP_GL, + LBP_GL, LBP_GL, LBP_GL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_IS, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_IS, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_CM, + LBP_AL, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_EX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_PO, LBP_PO, LBP_PO, LBP_IS, LBP_IS, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_EX, LBP_XX, LBP_XX, LBP_EX, LBP_EX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_PO, LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_EX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_IS, LBP_EX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_BA, LBP_BA, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_PR, LBP_PR, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, + LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_PR, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_PR, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_CM, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_PR, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, + LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_XX, LBP_SA, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, LBP_SA, + LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_SA, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_BB, LBP_BB, LBP_BB, LBP_BB, LBP_AL, LBP_BB, LBP_BB, + LBP_GL, LBP_BB, LBP_BB, LBP_BA, LBP_GL, LBP_EX, LBP_EX, LBP_EX, + LBP_EX, LBP_EX, LBP_GL, LBP_AL, LBP_EX, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_CM, LBP_AL, LBP_CM, + LBP_AL, LBP_CM, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_BB, LBP_BB, LBP_BA, LBP_BB, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, LBP_JL, + LBP_JL, LBP_JL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_JL, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, LBP_JV, + LBP_JV, LBP_JV, LBP_JV, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, LBP_JT, + LBP_JT, LBP_JT, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_AL, LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_BA, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_BA, LBP_BA, LBP_NS, LBP_SA, + LBP_BA, LBP_AL, LBP_BA, LBP_PR, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_EX, LBP_EX, LBP_BA, LBP_BA, LBP_BB, LBP_AL, + LBP_EX, LBP_EX, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_GL, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_EX, LBP_EX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, LBP_SA, + LBP_SA, LBP_SA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_SA, LBP_SA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_AL, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_GL, + LBP_BA, LBP_BA, LBP_BA, LBP_ZW, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_BA, LBP_GL, LBP_BA, LBP_BA, LBP_B2, LBP_AI, LBP_AI, LBP_AL, + LBP_QU, LBP_QU, LBP_OP, LBP_QU, LBP_QU, LBP_QU, LBP_OP, LBP_QU, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_IN, LBP_IN, LBP_IN, LBP_BA, + LBP_BK, LBP_BK, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_GL, + LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, LBP_PO, + LBP_AL, LBP_QU, LBP_QU, LBP_AI, LBP_NS, LBP_NS, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_IS, LBP_OP, LBP_CL, LBP_NS, + LBP_NS, LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_AL, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_BA, LBP_BA, LBP_BA, + LBP_WJ, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AI, + LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PO, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, + LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_PR, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_PO, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_PR, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AI, LBP_PR, LBP_PR, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AL, + LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AI, LBP_AL, LBP_AI, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AL, LBP_AI, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_AI, LBP_AI, LBP_AL, LBP_AI, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_XX, + LBP_XX, LBP_AL, LBP_EX, LBP_EX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AI, + LBP_AI, LBP_AI, LBP_AI, LBP_AI, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_EX, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_EX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, + LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_QU, LBP_BA, LBP_BA, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_AL, LBP_BA, + LBP_OP, LBP_BA, LBP_AL, LBP_AL, LBP_QU, LBP_QU, LBP_AL, LBP_AL, + LBP_QU, LBP_QU, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_EX, LBP_AL, + LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_CL, LBP_CL, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, + LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_NS, LBP_OP, LBP_CL, LBP_CL, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, + LBP_XX, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, + LBP_NS, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_NS, LBP_ID, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_ID, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_NS, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BA, LBP_EX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_BB, LBP_BB, LBP_EX, LBP_EX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_BA, LBP_BA, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_BA, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_AL, LBP_BA, LBP_BA, LBP_BA, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H2, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H2, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_H3, + LBP_H3, LBP_H3, LBP_H3, LBP_H3, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_CM, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_OP, LBP_CL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_PO, LBP_AL, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_IS, LBP_CL, LBP_CL, LBP_IS, LBP_IS, LBP_EX, LBP_EX, LBP_OP, + LBP_CL, LBP_IN, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, + LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_OP, + LBP_CL, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_CL, LBP_ID, LBP_CL, LBP_XX, LBP_NS, LBP_NS, LBP_EX, LBP_EX, + LBP_ID, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_OP, LBP_CL, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_WJ, + LBP_XX, LBP_EX, LBP_ID, LBP_ID, LBP_PR, LBP_PO, LBP_ID, LBP_ID, + LBP_OP, LBP_CL, LBP_ID, LBP_ID, LBP_CL, LBP_ID, LBP_CL, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_NS, LBP_NS, LBP_ID, LBP_ID, LBP_ID, LBP_EX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_OP, LBP_ID, LBP_CL, LBP_ID, LBP_OP, + LBP_CL, LBP_CL, LBP_OP, LBP_CL, LBP_CL, LBP_NS, LBP_AL, LBP_NS, + LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, LBP_NS, + LBP_NS, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_NS, LBP_NS, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_PO, LBP_PR, LBP_ID, LBP_ID, LBP_ID, LBP_PR, LBP_PR, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CB, LBP_AI, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_BA, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_BA, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_CM, LBP_CM, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_CM, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_BA, + LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_BA, LBP_BA, LBP_BA, LBP_BA, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_CM, LBP_CM, LBP_CM, LBP_AL, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_XX, LBP_XX, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_XX, + LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_AL, LBP_XX, + LBP_XX, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_XX, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, LBP_NU, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_AL, + LBP_AL, LBP_AL, LBP_AL, LBP_AL, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, + LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_ID, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_CM, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, LBP_CM, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, + LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX, LBP_XX + } +}; diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrktables.c gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrktables.c --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrktables.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrktables.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,63 @@ +/* Line breaking auxiliary tables. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk/lbrktables.h" + +/* Define unilbrkprop, table of line breaking properties. */ +#include "unilbrk/lbrkprop2.h" + +const unsigned char unilbrk_table[24][24] = +{ + /* after */ + /* WJ GL B2 BA BB HY CL EX IN NS OP QU IS NU PO PR SY AL H2 H3 ID JL JV JT */ +/* WJ */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* GL */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* B2 */ { P, I, P, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* BA */ { P, D, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* BB */ { P, I, I, I, I, I, P, P, I, I, I, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* HY */ { P, D, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* CL */ { P, I, D, I, D, I, P, P, D, P, D, I, P, D, I, I, P, D, D, D, D, D, D, D, }, +/* EX */ { P, I, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* IN */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* NS */ { P, I, D, I, D, I, P, P, D, I, D, I, P, D, D, D, P, D, D, D, D, D, D, D, }, +/* OP */ { P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, P, }, +/* QU */ { P, I, I, I, I, I, P, P, I, I, P, I, P, I, I, I, P, I, I, I, I, I, I, I, }, +/* IS */ { P, I, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* NU */ { P, I, D, I, D, I, P, P, I, I, D, I, P, I, I, I, P, I, D, D, D, D, D, D, }, +/* PO */ { P, I, D, I, D, I, P, P, D, I, I, I, P, I, D, D, P, I, D, D, D, D, D, D, }, +/* PR */ { P, I, D, I, D, I, P, P, D, I, I, I, P, I, D, D, P, I, I, I, I, I, I, I, }, +/* SY */ { P, I, D, I, D, I, P, P, D, I, D, I, P, I, D, D, P, D, D, D, D, D, D, D, }, +/* AL */ { P, I, D, I, D, I, P, P, I, I, D, I, P, I, D, D, P, I, D, D, D, D, D, D, }, +/* H2 */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, I, I, }, +/* H3 */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, I, }, +/* ID */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, D, }, +/* JL */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, I, I, D, I, I, D, }, +/* JV */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, I, I, }, +/* JT */ { P, I, D, I, D, I, P, P, I, I, D, I, P, D, I, D, P, D, D, D, D, D, D, I, }, +/* "" */ +/* before */ +}; +/* Note: The (IS,AL) entry has been changed from I to D. In other words, the + rule "Do not break between numeric punctuation and alphabetics" is not + implemented here. We want to break before the HTML tag in strings like + "

    Some sentence.

    " */ +/* Note: The (B2,B2) entry should probably be D instead of P. */ +/* Note: The (PR,ID) entry should probably be D instead of I. */ +/* Note: The (WJ,*) and (GL,*) entries should probably be P instead of I. */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrktables.h gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrktables.h --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/lbrktables.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/lbrktables.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,94 @@ +/* Line breaking auxiliary tables. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include "unitypes.h" + +/* Line breaking classification. */ + +enum +{ + /* Values >= 24 are resolved at run time. */ + LBP_BK = 24, /* mandatory break */ +/*LBP_CR, carriage return - not used here because it's a DOSism */ +/*LBP_LF, line feed - not used here because it's a DOSism */ + LBP_CM = 25, /* attached characters and combining marks */ +/*LBP_NL, next line - not used here because it's equivalent to LBP_BK */ +/*LBP_SG, surrogates - not used here because they are not characters */ + LBP_WJ = 0, /* word joiner */ + LBP_ZW = 26, /* zero width space */ + LBP_GL = 1, /* non-breaking (glue) */ + LBP_SP = 27, /* space */ + LBP_B2 = 2, /* break opportunity before and after */ + LBP_BA = 3, /* break opportunity after */ + LBP_BB = 4, /* break opportunity before */ + LBP_HY = 5, /* hyphen */ + LBP_CB = 28, /* contingent break opportunity */ + LBP_CL = 6, /* closing punctuation */ + LBP_EX = 7, /* exclamation/interrogation */ + LBP_IN = 8, /* inseparable */ + LBP_NS = 9, /* non starter */ + LBP_OP = 10, /* opening punctuation */ + LBP_QU = 11, /* ambiguous quotation */ + LBP_IS = 12, /* infix separator (numeric) */ + LBP_NU = 13, /* numeric */ + LBP_PO = 14, /* postfix (numeric) */ + LBP_PR = 15, /* prefix (numeric) */ + LBP_SY = 16, /* symbols allowing breaks */ + LBP_AI = 29, /* ambiguous (alphabetic or ideograph) */ + LBP_AL = 17, /* ordinary alphabetic and symbol characters */ + LBP_H2 = 18, /* Hangul LV syllable */ + LBP_H3 = 19, /* Hangul LVT syllable */ + LBP_ID = 20, /* ideographic */ + LBP_JL = 21, /* Hangul L Jamo */ + LBP_JV = 22, /* Hangul V Jamo */ + LBP_JT = 23, /* Hangul T Jamo */ + LBP_SA = 30, /* complex context (South East Asian) */ + LBP_XX = 31 /* unknown */ +}; + +#include "lbrkprop1.h" + +static inline unsigned char +unilbrkprop_lookup (ucs4_t uc) +{ + unsigned int index1 = uc >> lbrkprop_header_0; + if (index1 < lbrkprop_header_1) + { + int lookup1 = unilbrkprop.level1[index1]; + if (lookup1 >= 0) + { + unsigned int index2 = (uc >> lbrkprop_header_2) & lbrkprop_header_3; + int lookup2 = unilbrkprop.level2[lookup1 + index2]; + if (lookup2 >= 0) + { + unsigned int index3 = uc & lbrkprop_header_4; + return unilbrkprop.level3[lookup2 + index3]; + } + } + } + return LBP_XX; +} + +/* Table indexed by two line breaking classifications. */ +#define D 1 /* direct break opportunity, empty in table 7.3 of UTR #14 */ +#define I 2 /* indirect break opportunity, '%' in table 7.3 of UTR #14 */ +#define P 3 /* prohibited break, '^' in table 7.3 of UTR #14 */ + +extern const unsigned char unilbrk_table[24][24]; + +/* We don't support line breaking of complex-context dependent characters + (Thai, Lao, Myanmar, Khmer) yet, because it requires dictionary lookup. */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/u8-possible-linebreaks.c gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/u8-possible-linebreaks.c --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/u8-possible-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/u8-possible-linebreaks.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,261 @@ +/* Line breaking of UTF-8 strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include +#include + +#include "unilbrk/lbrktables.h" +#include "uniwidth/cjk.h" +#include "unistr.h" + +void +u8_possible_linebreaks (const uint8_t *s, size_t n, const char *encoding, char *p) +{ + int LBP_AI_REPLACEMENT = (is_cjk_encoding (encoding) ? LBP_ID : LBP_AL); + const uint8_t *s_end = s + n; + int last_prop = LBP_BK; /* line break property of last non-space character */ + char *seen_space = NULL; /* Was a space seen after the last non-space character? */ + char *seen_space2 = NULL; /* At least two spaces after the last non-space? */ + + /* Don't break inside multibyte characters. */ + memset (p, UC_BREAK_PROHIBITED, n); + + while (s < s_end) + { + ucs4_t uc; + int count = u8_mbtouc_unsafe (&uc, s, s_end - s); + int prop = unilbrkprop_lookup (uc); + + if (prop == LBP_BK) + { + /* Mandatory break. */ + *p = UC_BREAK_MANDATORY; + last_prop = LBP_BK; + seen_space = NULL; + seen_space2 = NULL; + } + else + { + char *q; + + /* Resolve property values whose behaviour is not fixed. */ + switch (prop) + { + case LBP_AI: + /* Resolve ambiguous. */ + prop = LBP_AI_REPLACEMENT; + break; + case LBP_CB: + /* This is arbitrary. */ + prop = LBP_ID; + break; + case LBP_SA: + /* We don't handle complex scripts yet. + Treat LBP_SA like LBP_XX. */ + case LBP_XX: + /* This is arbitrary. */ + prop = LBP_AL; + break; + } + + /* Deal with spaces and combining characters. */ + q = p; + if (prop == LBP_SP) + { + /* Don't break just before a space. */ + *p = UC_BREAK_PROHIBITED; + seen_space2 = seen_space; + seen_space = p; + } + else if (prop == LBP_ZW) + { + /* Don't break just before a zero-width space. */ + *p = UC_BREAK_PROHIBITED; + last_prop = LBP_ZW; + seen_space = NULL; + seen_space2 = NULL; + } + else if (prop == LBP_CM) + { + /* Don't break just before a combining character, except immediately after a + zero-width space. */ + if (last_prop == LBP_ZW) + { + /* Break after zero-width space. */ + *p = UC_BREAK_POSSIBLE; + /* A combining character turns a preceding space into LBP_ID. */ + last_prop = LBP_ID; + } + else + { + *p = UC_BREAK_PROHIBITED; + /* A combining character turns a preceding space into LBP_ID. */ + if (seen_space != NULL) + { + q = seen_space; + seen_space = seen_space2; + prop = LBP_ID; + goto lookup_via_table; + } + } + } + else + { + lookup_via_table: + /* prop must be usable as an index for table 7.3 of UTR #14. */ + if (!(prop >= 0 && prop < sizeof (unilbrk_table) / sizeof (unilbrk_table[0]))) + abort (); + + if (last_prop == LBP_BK) + { + /* Don't break at the beginning of a line. */ + *q = UC_BREAK_PROHIBITED; + } + else if (last_prop == LBP_ZW) + { + /* Break after zero-width space. */ + *q = UC_BREAK_POSSIBLE; + } + else + { + switch (unilbrk_table [last_prop] [prop]) + { + case D: + *q = UC_BREAK_POSSIBLE; + break; + case I: + *q = (seen_space != NULL ? UC_BREAK_POSSIBLE : UC_BREAK_PROHIBITED); + break; + case P: + *q = UC_BREAK_PROHIBITED; + break; + default: + abort (); + } + } + last_prop = prop; + seen_space = NULL; + seen_space2 = NULL; + } + } + + s += count; + p += count; + } +} + + +#ifdef TEST + +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + if (argc == 1) + { + /* Display all the break opportunities in the input string. */ + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + u8_possible_linebreaks ((uint8_t *) input, length, "UTF-8", breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + /* U+2027 in UTF-8 encoding */ + putc (0xe2, stdout); putc (0x80, stdout); putc (0xa7, stdout); + break; + case UC_BREAK_MANDATORY: + /* U+21B2 (or U+21B5) in UTF-8 encoding */ + putc (0xe2, stdout); putc (0x86, stdout); putc (0xb2, stdout); + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/u8-width-linebreaks.c gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/u8-width-linebreaks.c --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/u8-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/u8-width-linebreaks.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,204 @@ +/* Line breaking of UTF-8 strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include "unistr.h" +#include "uniwidth.h" + +int +u8_width_linebreaks (const uint8_t *s, size_t n, + int width, int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p) +{ + const uint8_t *s_end; + char *last_p; + int last_column; + int piece_width; + + u8_possible_linebreaks (s, n, encoding, p); + + s_end = s + n; + last_p = NULL; + last_column = start_column; + piece_width = 0; + while (s < s_end) + { + ucs4_t uc; + int count = u8_mbtouc_unsafe (&uc, s, s_end - s); + + /* Respect the override. */ + if (o != NULL && *o != UC_BREAK_UNDEFINED) + *p = *o; + + if (*p == UC_BREAK_POSSIBLE || *p == UC_BREAK_MANDATORY) + { + /* An atomic piece of text ends here. */ + if (last_p != NULL && last_column + piece_width > width) + { + /* Insert a line break. */ + *last_p = UC_BREAK_POSSIBLE; + last_column = 0; + } + } + + if (*p == UC_BREAK_MANDATORY) + { + /* uc is a line break character. */ + /* Start a new piece at column 0. */ + last_p = NULL; + last_column = 0; + piece_width = 0; + } + else + { + /* uc is not a line break character. */ + int w; + + if (*p == UC_BREAK_POSSIBLE) + { + /* Start a new piece. */ + last_p = p; + last_column += piece_width; + piece_width = 0; + /* No line break for the moment, may be turned into + UC_BREAK_POSSIBLE later, via last_p. */ + } + + *p = UC_BREAK_PROHIBITED; + + w = uc_width (uc, encoding); + if (w >= 0) /* ignore control characters in the string */ + piece_width += w; + } + + s += count; + p += count; + if (o != NULL) + o += count; + } + + /* The last atomic piece of text ends here. */ + if (last_p != NULL && last_column + piece_width + at_end_columns > width) + { + /* Insert a line break. */ + *last_p = UC_BREAK_POSSIBLE; + last_column = 0; + } + + return last_column + piece_width; +} + + +#ifdef TEST + +#include +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + if (argc == 2) + { + /* Insert line breaks for a given width. */ + int width = atoi (argv[1]); + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + u8_width_linebreaks ((uint8_t *) input, length, width, 0, 0, NULL, "UTF-8", breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + putc ('\n', stdout); + break; + case UC_BREAK_MANDATORY: + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-common.c gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-common.c --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-common.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-common.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,51 @@ +/* Line breaking auxiliary functions. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk/ulc-common.h" + +#include "c-ctype.h" +#include "c-strcaseeq.h" + +int +is_utf8_encoding (const char *encoding) +{ + if (STRCASEEQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0, 0)) + return 1; + return 0; +} + +#if C_CTYPE_ASCII + +/* Tests whether a string is entirely ASCII. Returns 1 if yes. + Returns 0 if the string is in an 8-bit encoding or an ISO-2022 encoding. */ +int +is_all_ascii (const char *s, size_t n) +{ + for (; n > 0; s++, n--) + { + unsigned char c = (unsigned char) *s; + + if (!(c_isprint (c) || c_isspace (c))) + return 0; + } + return 1; +} + +#endif /* C_CTYPE_ASCII */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-common.h gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-common.h --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-common.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-common.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,31 @@ +/* Line breaking auxiliary functions. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Get size_t. */ +#include + +#include "c-ctype.h" + +#define is_utf8_encoding unilbrk_is_utf8_encoding +extern int is_utf8_encoding (const char *encoding); + +#if C_CTYPE_ASCII + +# define is_all_ascii unilbrk_is_all_ascii +extern int is_all_ascii (const char *s, size_t n); + +#endif /* C_CTYPE_ASCII */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-width-linebreaks.c gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-width-linebreaks.c --- gettext-0.17/gettext-tools/libgettextpo/unilbrk/ulc-width-linebreaks.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk/ulc-width-linebreaks.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,231 @@ +/* Line breaking of strings. + Copyright (C) 2001-2003, 2006-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unilbrk.h" + +#include +#include + +#include "c-ctype.h" +#include "uniconv.h" +#include "unilbrk/ulc-common.h" + +/* Line breaking of a string in an arbitrary encoding. + + We convert the input string to Unicode. + + The standardized Unicode encodings are UTF-8, UCS-2, UCS-4, UTF-16, + UTF-16BE, UTF-16LE, UTF-7. UCS-2 supports only characters up to + \U0000FFFF. UTF-16 and variants support only characters up to + \U0010FFFF. UTF-7 is way too complex and not supported by glibc-2.1. + UCS-4 specification leaves doubts about endianness and byte order mark. + glibc currently interprets it as big endian without byte order mark, + but this is not backed by an RFC. So we use UTF-8. It supports + characters up to \U7FFFFFFF and is unambiguously defined. */ + +int +ulc_width_linebreaks (const char *s, size_t n, + int width, int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p) +{ + if (n > 0) + { + if (is_utf8_encoding (encoding)) + return u8_width_linebreaks ((const uint8_t *) s, n, width, start_column, at_end_columns, o, encoding, p); + else + { + /* Convert the string to UTF-8 and build a translation table + from offsets into s to offsets into the translated string. */ + size_t *offsets = (size_t *) malloc (n * sizeof (size_t)); + + if (offsets != NULL) + { + uint8_t *t; + size_t m; + + t = u8_conv_from_encoding (encoding, iconveh_question_mark, + s, n, offsets, NULL, &m); + if (t != NULL) + { + char *memory = + (char *) (m > 0 ? malloc (m + (o != NULL ? m : 0)) : NULL); + + if (m == 0 || memory != NULL) + { + char *q = (char *) memory; + char *o8 = (o != NULL ? (char *) (q + m) : NULL); + int res_column; + size_t i; + + /* Translate the overrides to the UTF-8 string. */ + if (o != NULL) + { + memset (o8, UC_BREAK_UNDEFINED, m); + for (i = 0; i < n; i++) + if (offsets[i] != (size_t)(-1)) + o8[offsets[i]] = o[i]; + } + + /* Determine the line breaks of the UTF-8 string. */ + res_column = + u8_width_linebreaks (t, m, width, start_column, at_end_columns, o8, encoding, q); + + /* Translate the result back to the original string. */ + memset (p, UC_BREAK_PROHIBITED, n); + for (i = 0; i < n; i++) + if (offsets[i] != (size_t)(-1)) + p[i] = q[offsets[i]]; + + free (memory); + free (t); + free (offsets); + return res_column; + } + free (t); + } + free (offsets); + } + /* Impossible to convert. */ +#if C_CTYPE_ASCII + if (is_all_ascii (s, n)) + { + /* ASCII is a subset of UTF-8. */ + return u8_width_linebreaks ((const uint8_t *) s, n, width, start_column, at_end_columns, o, encoding, p); + } +#endif + /* We have a non-ASCII string and cannot convert it. + Don't produce line breaks except those already present in the + input string. All we assume here is that the encoding is + minimally ASCII compatible. */ + { + const char *s_end = s + n; + while (s < s_end) + { + *p = ((o != NULL && *o == UC_BREAK_MANDATORY) || *s == '\n' + ? UC_BREAK_MANDATORY + : UC_BREAK_PROHIBITED); + s++; + p++; + if (o != NULL) + o++; + } + /* We cannot compute widths in this case. */ + } + } + } + return start_column; +} + + +#ifdef TEST + +#include +#include + +/* Read the contents of an input stream, and return it, terminated with a NUL + byte. */ +char * +read_file (FILE *stream) +{ +#define BUFSIZE 4096 + char *buf = NULL; + int alloc = 0; + int size = 0; + int count; + + while (! feof (stream)) + { + if (size + BUFSIZE > alloc) + { + alloc = alloc + alloc / 2; + if (alloc < size + BUFSIZE) + alloc = size + BUFSIZE; + buf = realloc (buf, alloc); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + } + count = fread (buf + size, 1, BUFSIZE, stream); + if (count == 0) + { + if (ferror (stream)) + { + perror ("fread"); + exit (1); + } + } + else + size += count; + } + buf = realloc (buf, size + 1); + if (buf == NULL) + { + fprintf (stderr, "out of memory\n"); + exit (1); + } + buf[size] = '\0'; + return buf; +#undef BUFSIZE +} + +int +main (int argc, char * argv[]) +{ + setlocale (LC_CTYPE, ""); + if (argc == 2) + { + /* Insert line breaks for a given width. */ + int width = atoi (argv[1]); + char *input = read_file (stdin); + int length = strlen (input); + char *breaks = malloc (length); + int i; + + ulc_width_linebreaks (input, length, width, 0, 0, NULL, locale_charset (), breaks); + + for (i = 0; i < length; i++) + { + switch (breaks[i]) + { + case UC_BREAK_POSSIBLE: + putc ('\n', stdout); + break; + case UC_BREAK_MANDATORY: + break; + case UC_BREAK_PROHIBITED: + break; + default: + abort (); + } + putc (input[i], stdout); + } + + free (breaks); + + return 0; + } + else + return 1; +} + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unilbrk.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk.in.h --- gettext-0.17/gettext-tools/libgettextpo/unilbrk.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unilbrk.in.h 2010-05-17 19:58:03.000000000 +0000 @@ -0,0 +1,110 @@ +/* Line breaking of Unicode strings. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNILBRK_H +#define _UNILBRK_H + +/* Get size_t. */ +#include + +#include "unitypes.h" + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* These functions are locale dependent. The encoding argument identifies + the encoding (e.g. "ISO-8859-2" for Polish). */ + + +/* Line breaking. */ + +enum +{ + UC_BREAK_UNDEFINED, + UC_BREAK_PROHIBITED, + UC_BREAK_POSSIBLE, + UC_BREAK_MANDATORY, + UC_BREAK_HYPHENATION +}; + +/* Determine the line break points in S, and store the result at p[0..n-1]. + p[i] = UC_BREAK_MANDATORY means that s[i] is a line break character. + p[i] = UC_BREAK_POSSIBLE means that a line break may be inserted between + s[i-1] and s[i]. + p[i] = UC_BREAK_HYPHENATION means that a hyphen and a line break may be + inserted between s[i-1] and s[i]. But beware of language dependent + hyphenation rules. + p[i] = UC_BREAK_PROHIBITED means that s[i-1] and s[i] must not be separated. + */ +extern void + u8_possible_linebreaks (const uint8_t *s, size_t n, + const char *encoding, char *p); +extern void + u16_possible_linebreaks (const uint16_t *s, size_t n, + const char *encoding, char *p); +extern void + u32_possible_linebreaks (const uint32_t *s, size_t n, + const char *encoding, char *p); +extern void + ulc_possible_linebreaks (const char *s, size_t n, + const char *encoding, char *p); + +/* Choose the best line breaks, assuming the uc_width function. + The string is s[0..n-1]. The maximum number of columns per line is given + as WIDTH. The starting column of the string is given as START_COLUMN. + If the algorithm shall keep room after the last piece, they can be given + as AT_END_COLUMNS. + o is an optional override; if o[i] != UC_BREAK_UNDEFINED, o[i] takes + precedence over p[i] as returned by the *_possible_linebreaks function. + The given ENCODING is used for disambiguating widths in uc_width. + Return the column after the end of the string, and store the result at + p[0..n-1]. + */ +extern int + u8_width_linebreaks (const uint8_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + u16_width_linebreaks (const uint16_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + u32_width_linebreaks (const uint32_t *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); +extern int + ulc_width_linebreaks (const char *s, size_t n, int width, + int start_column, int at_end_columns, + const char *o, const char *encoding, + char *p); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _UNILBRK_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistd.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/unistd.in.h --- gettext-0.17/gettext-tools/libgettextpo/unistd.in.h 2007-10-03 22:26:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistd.in.h 2010-05-09 11:05:02.000000000 +0000 @@ -1,9 +1,9 @@ /* Substitute for and wrapper around . - Copyright (C) 2004-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,126 +15,501 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef _GL_UNISTD_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* Special invocation convention: + - On mingw, several headers, including , include , + but we need to ensure that both the system and + are completely included before we replace gethostname. */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_WINSOCK2_H_WITNESS && defined _WINSOCK2_H +/* is being indirectly included for the first time from + ; avoid declaring any overrides. */ +# if @HAVE_UNISTD_H@ +# @INCLUDE_NEXT@ @NEXT_UNISTD_H@ +# else +# error unexpected; report this to bug-gnulib@gnu.org +# endif +# define _GL_WINSOCK2_H_WITNESS + +/* Normal invocation. */ +#elif !defined _GL_UNISTD_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ #endif -#ifndef _GL_UNISTD_H +/* Get all possible declarations of gethostname(). */ +#if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ + && !defined _GL_INCLUDING_WINSOCK2_H +# define _GL_INCLUDING_WINSOCK2_H +# include +# undef _GL_INCLUDING_WINSOCK2_H +#endif + +#if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H #define _GL_UNISTD_H -/* mingw doesn't define the SEEK_* macros in . */ -#if !(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) +/* NetBSD 5.0 mis-defines NULL. Also get size_t. */ +#include + +/* mingw doesn't define the SEEK_* or *_FILENO macros in . */ +/* Cygwin 1.7.1 declares symlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ + || (@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK)) \ + && ! defined __GLIBC__ # include #endif +/* Cygwin 1.7.1 declares unlinkat in , not in . */ +/* But avoid namespace pollution on glibc systems. */ +#if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ +# include +#endif + /* mingw fails to declare _exit in . */ -#include +/* mingw, BeOS, Haiku declare environ in , not in . */ +/* Solaris declares getcwd not only in but also in . */ +/* But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +#endif + +/* mingw declares getcwd in , not in . */ +#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ + && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) +# include +#endif + +#if (@GNULIB_WRITE@ || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \ + || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK) +/* Get ssize_t. */ +# include +#endif + +/* Get getopt(), optarg, optind, opterr, optopt. + But avoid namespace pollution on glibc systems. */ +/* Also, don't include inside libgettextpo, because we use + the getopt module only in gettext-tools/gnulib-lib/, not in + gettext-tools/libgettextpo/, but there is only a single + GNULIB_UNISTD_H_GETOPT variable for both. */ +#if @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT +# include +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +#if @GNULIB_GETHOSTNAME@ +/* Get all possible declarations of gethostname(). */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !defined _GL_SYS_SOCKET_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef socket +# define socket socket_used_without_including_sys_socket_h +# undef connect +# define connect connect_used_without_including_sys_socket_h +# undef accept +# define accept accept_used_without_including_sys_socket_h +# undef bind +# define bind bind_used_without_including_sys_socket_h +# undef getpeername +# define getpeername getpeername_used_without_including_sys_socket_h +# undef getsockname +# define getsockname getsockname_used_without_including_sys_socket_h +# undef getsockopt +# define getsockopt getsockopt_used_without_including_sys_socket_h +# undef listen +# define listen listen_used_without_including_sys_socket_h +# undef recv +# define recv recv_used_without_including_sys_socket_h +# undef send +# define send send_used_without_including_sys_socket_h +# undef recvfrom +# define recvfrom recvfrom_used_without_including_sys_socket_h +# undef sendto +# define sendto sendto_used_without_including_sys_socket_h +# undef setsockopt +# define setsockopt setsockopt_used_without_including_sys_socket_h +# undef shutdown +# define shutdown shutdown_used_without_including_sys_socket_h +# else + _GL_WARN_ON_USE (socket, + "socket() used without including "); + _GL_WARN_ON_USE (connect, + "connect() used without including "); + _GL_WARN_ON_USE (accept, + "accept() used without including "); + _GL_WARN_ON_USE (bind, + "bind() used without including "); + _GL_WARN_ON_USE (getpeername, + "getpeername() used without including "); + _GL_WARN_ON_USE (getsockname, + "getsockname() used without including "); + _GL_WARN_ON_USE (getsockopt, + "getsockopt() used without including "); + _GL_WARN_ON_USE (listen, + "listen() used without including "); + _GL_WARN_ON_USE (recv, + "recv() used without including "); + _GL_WARN_ON_USE (send, + "send() used without including "); + _GL_WARN_ON_USE (recvfrom, + "recvfrom() used without including "); + _GL_WARN_ON_USE (sendto, + "sendto() used without including "); + _GL_WARN_ON_USE (setsockopt, + "setsockopt() used without including "); + _GL_WARN_ON_USE (shutdown, + "shutdown() used without including "); +# endif +# endif +# if !defined _GL_SYS_SELECT_H +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef select +# define select select_used_without_including_sys_select_h +# else + _GL_WARN_ON_USE (select, + "select() used without including "); +# endif +# endif +# endif +#endif + + +/* OS/2 EMX lacks these macros. */ +#ifndef STDIN_FILENO +# define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +# define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +# define STDERR_FILENO 2 +#endif + +/* Ensure *_OK macros exist. */ +#ifndef F_OK +# define F_OK 0 +# define X_OK 1 +# define W_OK 2 +# define R_OK 4 +#endif /* Declare overridden functions. */ -#ifdef __cplusplus -extern "C" { + +#if defined GNULIB_POSIXCHECK +/* The access() function is a security risk. */ +_GL_WARN_ON_USE (access, "the access function is a security risk - " + "use the gnulib module faccessat instead"); #endif #if @GNULIB_CHOWN@ -# if @REPLACE_CHOWN@ -# ifndef REPLACE_CHOWN -# define REPLACE_CHOWN 1 -# endif -# if REPLACE_CHOWN /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ +# if @REPLACE_CHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef chown # define chown rpl_chown -extern int chown (const char *file, uid_t uid, gid_t gid); # endif +_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); +# else +# if !@HAVE_CHOWN@ +_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); # endif +_GL_CXXALIASWARN (chown); #elif defined GNULIB_POSIXCHECK # undef chown -# define chown(f,u,g) \ - (GL_LINK_WARNING ("chown fails to follow symlinks on some systems and " \ - "doesn't treat a uid or gid of -1 on some systems - " \ - "use gnulib module chown for portability"), \ - chown (f, u, g)) +# if HAVE_RAW_DECL_CHOWN +_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " + "doesn't treat a uid or gid of -1 on some systems - " + "use gnulib module chown for portability"); +# endif +#endif + + +#if @GNULIB_CLOSE@ +# if @REPLACE_CLOSE@ +/* Automatically included by modules that need a replacement for close. */ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef close +# define close rpl_close +# endif +_GL_FUNCDECL_RPL (close, int, (int fd)); +_GL_CXXALIAS_RPL (close, int, (int fd)); +# else +_GL_CXXALIAS_SYS (close, int, (int fd)); +# endif +_GL_CXXALIASWARN (close); +#elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +# undef close +# define close close_used_without_requesting_gnulib_module_close +#elif defined GNULIB_POSIXCHECK +# undef close +/* Assume close is always declared. */ +_GL_WARN_ON_USE (close, "close does not portably work on sockets - " + "use gnulib module close for portability"); #endif +#if @REPLACE_DUP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup rpl_dup +# endif +_GL_FUNCDECL_RPL (dup, int, (int oldfd)); +_GL_CXXALIAS_RPL (dup, int, (int oldfd)); +#else +_GL_CXXALIAS_SYS (dup, int, (int oldfd)); +#endif +_GL_CXXALIASWARN (dup); + + #if @GNULIB_DUP2@ -# if !@HAVE_DUP2@ /* Copy the file descriptor OLDFD into file descriptor NEWFD. Do nothing if NEWFD = OLDFD, otherwise close NEWFD first if it is open. - Return 0 if successful, otherwise -1 and errno set. + Return newfd if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int dup2 (int oldfd, int newfd); +# if @REPLACE_DUP2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup2 rpl_dup2 +# endif +_GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); +_GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); +# else +# if !@HAVE_DUP2@ +_GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd)); +# endif +_GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif +_GL_CXXALIASWARN (dup2); #elif defined GNULIB_POSIXCHECK # undef dup2 -# define dup2(o,n) \ - (GL_LINK_WARNING ("dup2 is unportable - " \ - "use gnulib module dup2 for portability"), \ - dup2 (o, n)) +# if HAVE_RAW_DECL_DUP2 +_GL_WARN_ON_USE (dup2, "dup2 is unportable - " + "use gnulib module dup2 for portability"); +# endif #endif -#if @GNULIB_FCHDIR@ -# if @REPLACE_FCHDIR@ +#if @GNULIB_DUP3@ +/* Copy the file descriptor OLDFD into file descriptor NEWFD, with the + specified flags. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Close NEWFD first if it is open. + Return newfd if successful, otherwise -1 and errno set. + See the Linux man page at + . */ +# if @HAVE_DUP3@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define dup3 rpl_dup3 +# endif +_GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); +# else +_GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); +_GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); +# endif +_GL_CXXALIASWARN (dup3); +#elif defined GNULIB_POSIXCHECK +# undef dup3 +# if HAVE_RAW_DECL_DUP3 +_GL_WARN_ON_USE (dup3, "dup3 is unportable - " + "use gnulib module dup3 for portability"); +# endif +#endif + + +#if @GNULIB_ENVIRON@ +# if !@HAVE_DECL_ENVIRON@ +/* Set of environment variables and values. An array of strings of the form + "VARIABLE=VALUE", terminated with a NULL. */ +# if defined __APPLE__ && defined __MACH__ +# include +# define environ (*_NSGetEnviron ()) +# else +# ifdef __cplusplus +extern "C" { +# endif +extern char **environ; +# ifdef __cplusplus +} +# endif +# endif +# endif +#elif defined GNULIB_POSIXCHECK +# if HAVE_RAW_DECL_ENVIRON +static inline char *** +rpl_environ (void) +{ + return &environ; +} +_GL_WARN_ON_USE (rpl_environ, "environ is unportable - " + "use gnulib module environ for portability"); +# undef environ +# define environ (*rpl_environ ()) +# endif +#endif + + +#if @GNULIB_EUIDACCESS@ +/* Like access(), except that it uses the effective user id and group id of + the current process. */ +# if !@HAVE_EUIDACCESS@ +_GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode)); +_GL_CXXALIASWARN (euidaccess); +# if defined GNULIB_POSIXCHECK +/* Like access(), this function is a security risk. */ +_GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " + "use the gnulib module faccessat instead"); +# endif +#elif defined GNULIB_POSIXCHECK +# undef euidaccess +# if HAVE_RAW_DECL_EUIDACCESS +_GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " + "use gnulib module euidaccess for portability"); +# endif +#endif + + +#if @GNULIB_FACCESSAT@ +# if !@HAVE_FACCESSAT@ +_GL_FUNCDECL_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (faccessat, int, + (int fd, char const *file, int mode, int flag)); +_GL_CXXALIASWARN (faccessat); +#elif defined GNULIB_POSIXCHECK +# undef faccessat +# if HAVE_RAW_DECL_FACCESSAT +_GL_WARN_ON_USE (faccessat, "faccessat is not portable - " + "use gnulib module faccessat for portability"); +# endif +#endif + +#if @GNULIB_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int fchdir (int /*fd*/); +# if ! @HAVE_FCHDIR@ +_GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); -# define close rpl_close -extern int close (int); -# define dup rpl_dup -extern int dup (int); -# define dup2 rpl_dup2 -extern int dup2 (int, int); +/* Gnulib internal hooks needed to maintain the fchdir metadata. */ +_GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) + _GL_ARG_NONNULL ((2)); +_GL_EXTERN_C void _gl_unregister_fd (int fd); +_GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); +_GL_EXTERN_C const char *_gl_directory_name (int fd); # endif +_GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); +_GL_CXXALIASWARN (fchdir); #elif defined GNULIB_POSIXCHECK # undef fchdir -# define fchdir(f) \ - (GL_LINK_WARNING ("fchdir is unportable - " \ - "use gnulib module fchdir for portability"), \ - fchdir (f)) +# if HAVE_RAW_DECL_FCHDIR +_GL_WARN_ON_USE (fchdir, "fchdir is unportable - " + "use gnulib module fchdir for portability"); +# endif +#endif + + +#if @GNULIB_FCHOWNAT@ +# if @REPLACE_FCHOWNAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef fchownat +# define fchownat rpl_fchownat +# endif +_GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# else +# if !@HAVE_FCHOWNAT@ +_GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, + uid_t owner, gid_t group, int flag)); +# endif +_GL_CXXALIASWARN (fchownat); +#elif defined GNULIB_POSIXCHECK +# undef fchownat +# if HAVE_RAW_DECL_FCHOWNAT +_GL_WARN_ON_USE (fchownat, "fchownat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_FSYNC@ +/* Synchronize changes to a file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if !@HAVE_FSYNC@ +_GL_FUNCDECL_SYS (fsync, int, (int fd)); +# endif +_GL_CXXALIAS_SYS (fsync, int, (int fd)); +_GL_CXXALIASWARN (fsync); +#elif defined GNULIB_POSIXCHECK +# undef fsync +# if HAVE_RAW_DECL_FSYNC +_GL_WARN_ON_USE (fsync, "fsync is unportable - " + "use gnulib module fsync for portability"); +# endif #endif #if @GNULIB_FTRUNCATE@ -# if !@HAVE_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -extern int ftruncate (int fd, off_t length); +# if !@HAVE_FTRUNCATE@ +_GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif +_GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); +_GL_CXXALIASWARN (ftruncate); #elif defined GNULIB_POSIXCHECK # undef ftruncate -# define ftruncate(f,l) \ - (GL_LINK_WARNING ("ftruncate is unportable - " \ - "use gnulib module ftruncate for portability"), \ - ftruncate (f, l)) +# if HAVE_RAW_DECL_FTRUNCATE +_GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " + "use gnulib module ftruncate for portability"); +# endif #endif #if @GNULIB_GETCWD@ -/* Include the headers that might declare getcwd so that they will not - cause confusion if included after this file. */ -# include -# if @REPLACE_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined @@ -145,15 +520,161 @@ extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ -# define getcwd rpl_getcwd -extern char * getcwd (char *buf, size_t size); +# if @REPLACE_GETCWD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getcwd rpl_getcwd +# endif +_GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); +_GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); +# else +/* Need to cast, because on mingw, the second parameter is + int size. */ +_GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif +_GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK # undef getcwd -# define getcwd(b,s) \ - (GL_LINK_WARNING ("getcwd is unportable - " \ - "use gnulib module getcwd for portability"), \ - getcwd (b, s)) +# if HAVE_RAW_DECL_GETCWD +_GL_WARN_ON_USE (getcwd, "getcwd is unportable - " + "use gnulib module getcwd for portability"); +# endif +#endif + + +#if @GNULIB_GETDOMAINNAME@ +/* Return the NIS domain name of the machine. + WARNING! The NIS domain name is unrelated to the fully qualified host name + of the machine. It is also unrelated to email addresses. + WARNING! The NIS domain name is usually the empty string or "(none)" when + not using NIS. + + Put up to LEN bytes of the NIS domain name into NAME. + Null terminate it if the name is shorter than LEN. + If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if !@HAVE_GETDOMAINNAME@ +_GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on MacOS X 10.5 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (getdomainname, int, (char *name, size_t len)); +_GL_CXXALIASWARN (getdomainname); +#elif defined GNULIB_POSIXCHECK +# undef getdomainname +# if HAVE_RAW_DECL_GETDOMAINNAME +_GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " + "use gnulib module getdomainname for portability"); +# endif +#endif + + +#if @GNULIB_GETDTABLESIZE@ +/* Return the maximum number of file descriptors in the current process. + In POSIX, this is same as sysconf (_SC_OPEN_MAX). */ +# if !@HAVE_GETDTABLESIZE@ +_GL_FUNCDECL_SYS (getdtablesize, int, (void)); +# endif +_GL_CXXALIAS_SYS (getdtablesize, int, (void)); +_GL_CXXALIASWARN (getdtablesize); +#elif defined GNULIB_POSIXCHECK +# undef getdtablesize +# if HAVE_RAW_DECL_GETDTABLESIZE +_GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " + "use gnulib module getdtablesize for portability"); +# endif +#endif + + +#if @GNULIB_GETGROUPS@ +/* Return the supplemental groups that the current process belongs to. + It is unspecified whether the effective group id is in the list. + If N is 0, return the group count; otherwise, N describes how many + entries are available in GROUPS. Return -1 and set errno if N is + not 0 and not large enough. Fails with ENOSYS on some systems. */ +# if @REPLACE_GETGROUPS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef getgroups +# define getgroups rpl_getgroups +# endif +_GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups)); +_GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups)); +# else +# if !@HAVE_GETGROUPS@ +_GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups)); +# endif +_GL_CXXALIASWARN (getgroups); +#elif defined GNULIB_POSIXCHECK +# undef getgroups +# if HAVE_RAW_DECL_GETGROUPS +_GL_WARN_ON_USE (getgroups, "getgroups is unportable - " + "use gnulib module getgroups for portability"); +# endif +#endif + + +#if @GNULIB_GETHOSTNAME@ +/* Return the standard host name of the machine. + WARNING! The host name may or may not be fully qualified. + + Put up to LEN bytes of the host name into NAME. + Null terminate it if the name is shorter than LEN. + If the host name is longer than LEN, set errno = EINVAL and return -1. + Return 0 if successful, otherwise set errno and return -1. */ +# if @UNISTD_H_HAVE_WINSOCK2_H@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef gethostname +# define gethostname rpl_gethostname +# endif +_GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); +# else +# if !@HAVE_GETHOSTNAME@ +_GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) + _GL_ARG_NONNULL ((1))); +# endif +/* Need to cast, because on Solaris 10 systems, the second parameter is + int len. */ +_GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); +# endif +_GL_CXXALIASWARN (gethostname); +#elif @UNISTD_H_HAVE_WINSOCK2_H@ +# undef gethostname +# define gethostname gethostname_used_without_requesting_gnulib_module_gethostname +#elif defined GNULIB_POSIXCHECK +# undef gethostname +# if HAVE_RAW_DECL_GETHOSTNAME +_GL_WARN_ON_USE (gethostname, "gethostname is unportable - " + "use gnulib module gethostname for portability"); +# endif +#endif + + +#if @GNULIB_GETLOGIN@ +/* Returns the user's login name, or NULL if it cannot be found. Upon error, + returns NULL with errno set. + + See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. + */ +# if !@HAVE_GETLOGIN@ +_GL_FUNCDECL_SYS (getlogin, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getlogin, char *, (void)); +_GL_CXXALIASWARN (getlogin); +#elif defined GNULIB_POSIXCHECK +# undef getlogin +# if HAVE_RAW_DECL_GETLOGIN +_GL_WARN_ON_USE (getlogin, "getlogin is unportable - " + "use gnulib module getlogin for portability"); +# endif #endif @@ -166,54 +687,370 @@ provided (this case is hopefully rare but is left open by the POSIX spec). See . + + Most programs don't need to use this function, because the information is + available through environment variables: + ${LOGNAME-$USER} on Unix platforms, + $USERNAME on native Windows platforms. */ # if !@HAVE_DECL_GETLOGIN_R@ -# include -extern int getlogin_r (char *name, size_t size); +_GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size) + _GL_ARG_NONNULL ((1))); # endif +/* Need to cast, because on Solaris 10 systems, the second argument is + int size. */ +_GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); +_GL_CXXALIASWARN (getlogin_r); #elif defined GNULIB_POSIXCHECK # undef getlogin_r -# define getlogin_r(n,s) \ - (GL_LINK_WARNING ("getlogin_r is unportable - " \ - "use gnulib module getlogin_r for portability"), \ - getlogin_r (n, s)) +# if HAVE_RAW_DECL_GETLOGIN_R +_GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " + "use gnulib module getlogin_r for portability"); +# endif +#endif + + +#if @GNULIB_GETPAGESIZE@ +# if @REPLACE_GETPAGESIZE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize rpl_getpagesize +# endif +_GL_FUNCDECL_RPL (getpagesize, int, (void)); +_GL_CXXALIAS_RPL (getpagesize, int, (void)); +# else +# if !@HAVE_GETPAGESIZE@ +# if !defined getpagesize +/* This is for POSIX systems. */ +# if !defined _gl_getpagesize && defined _SC_PAGESIZE +# if ! (defined __VMS && __VMS_VER < 70000000) +# define _gl_getpagesize() sysconf (_SC_PAGESIZE) +# endif +# endif +/* This is for older VMS. */ +# if !defined _gl_getpagesize && defined __VMS +# ifdef __ALPHA +# define _gl_getpagesize() 8192 +# else +# define _gl_getpagesize() 512 +# endif +# endif +/* This is for BeOS. */ +# if !defined _gl_getpagesize && @HAVE_OS_H@ +# include +# if defined B_PAGE_SIZE +# define _gl_getpagesize() B_PAGE_SIZE +# endif +# endif +/* This is for AmigaOS4.0. */ +# if !defined _gl_getpagesize && defined __amigaos4__ +# define _gl_getpagesize() 2048 +# endif +/* This is for older Unix systems. */ +# if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ +# include +# ifdef EXEC_PAGESIZE +# define _gl_getpagesize() EXEC_PAGESIZE +# else +# ifdef NBPG +# ifndef CLSIZE +# define CLSIZE 1 +# endif +# define _gl_getpagesize() (NBPG * CLSIZE) +# else +# ifdef NBPC +# define _gl_getpagesize() NBPC +# endif +# endif +# endif +# endif +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define getpagesize() _gl_getpagesize () +# else +static inline int +getpagesize () +{ + return _gl_getpagesize (); +} +# endif +# endif +# endif +/* Need to cast, because on Cygwin 1.5.x systems, the return type is size_t. */ +_GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); +# endif +# if @HAVE_DECL_GETPAGESIZE@ +_GL_CXXALIASWARN (getpagesize); +# endif +#elif defined GNULIB_POSIXCHECK +# undef getpagesize +# if HAVE_RAW_DECL_GETPAGESIZE +_GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " + "use gnulib module getpagesize for portability"); +# endif +#endif + + +#if @GNULIB_GETUSERSHELL@ +/* Return the next valid login shell on the system, or NULL when the end of + the list has been reached. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (getusershell, char *, (void)); +# endif +_GL_CXXALIAS_SYS (getusershell, char *, (void)); +_GL_CXXALIASWARN (getusershell); +#elif defined GNULIB_POSIXCHECK +# undef getusershell +# if HAVE_RAW_DECL_GETUSERSHELL +_GL_WARN_ON_USE (getusershell, "getusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Rewind to pointer that is advanced at each getusershell() call. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (setusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (setusershell, void, (void)); +_GL_CXXALIASWARN (setusershell); +#elif defined GNULIB_POSIXCHECK +# undef setusershell +# if HAVE_RAW_DECL_SETUSERSHELL +_GL_WARN_ON_USE (setusershell, "setusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif +#endif + +#if @GNULIB_GETUSERSHELL@ +/* Free the pointer that is advanced at each getusershell() call and + associated resources. */ +# if !@HAVE_DECL_GETUSERSHELL@ +_GL_FUNCDECL_SYS (endusershell, void, (void)); +# endif +_GL_CXXALIAS_SYS (endusershell, void, (void)); +_GL_CXXALIASWARN (endusershell); +#elif defined GNULIB_POSIXCHECK +# undef endusershell +# if HAVE_RAW_DECL_ENDUSERSHELL +_GL_WARN_ON_USE (endusershell, "endusershell is unportable - " + "use gnulib module getusershell for portability"); +# endif #endif #if @GNULIB_LCHOWN@ -# if @REPLACE_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lchown rpl_lchown -extern int lchown (char const *file, uid_t owner, gid_t group); +# if @REPLACE_LCHOWN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef lchown +# define lchown rpl_lchown +# endif +_GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)); +# else +# if !@HAVE_LCHOWN@ +_GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group) + _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); # endif +_GL_CXXALIASWARN (lchown); #elif defined GNULIB_POSIXCHECK # undef lchown -# define lchown(f,u,g) \ - (GL_LINK_WARNING ("lchown is unportable to pre-POSIX.1-2001 " \ - "systems - use gnulib module lchown for portability"), \ - lchown (f, u, g)) +# if HAVE_RAW_DECL_LCHOWN +_GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " + "use gnulib module lchown for portability"); +# endif +#endif + + +#if @GNULIB_LINK@ +/* Create a new hard link for an existing file. + Return 0 if successful, otherwise -1 and errno set. + See POSIX:2001 specification + . */ +# if @REPLACE_LINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define link rpl_link +# endif +_GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2)); +# else +# if !@HAVE_LINK@ +_GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); +# endif +_GL_CXXALIASWARN (link); +#elif defined GNULIB_POSIXCHECK +# undef link +# if HAVE_RAW_DECL_LINK +_GL_WARN_ON_USE (link, "link is unportable - " + "use gnulib module link for portability"); +# endif +#endif + + +#if @GNULIB_LINKAT@ +/* Create a new hard link for an existing file, relative to two + directories. FLAG controls whether symlinks are followed. + Return 0 if successful, otherwise -1 and errno set. */ +# if @REPLACE_LINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef linkat +# define linkat rpl_linkat +# endif +_GL_FUNCDECL_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +_GL_CXXALIAS_RPL (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# else +# if !@HAVE_LINKAT@ +_GL_FUNCDECL_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag) + _GL_ARG_NONNULL ((2, 4))); +# endif +_GL_CXXALIAS_SYS (linkat, int, + (int fd1, const char *path1, int fd2, const char *path2, + int flag)); +# endif +_GL_CXXALIASWARN (linkat); +#elif defined GNULIB_POSIXCHECK +# undef linkat +# if HAVE_RAW_DECL_LINKAT +_GL_WARN_ON_USE (linkat, "linkat is unportable - " + "use gnulib module linkat for portability"); +# endif #endif #if @GNULIB_LSEEK@ -# if @REPLACE_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# define lseek rpl_lseek - extern off_t lseek (int fd, off_t offset, int whence); +# if @REPLACE_LSEEK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define lseek rpl_lseek +# endif +_GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +_GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); +# else +_GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif +_GL_CXXALIASWARN (lseek); #elif defined GNULIB_POSIXCHECK # undef lseek -# define lseek(f,o,w) \ - (GL_LINK_WARNING ("lseek does not fail with ESPIPE on pipes on some " \ - "systems - use gnulib module lseek for portability"), \ - lseek (f, o, w)) +# if HAVE_RAW_DECL_LSEEK +_GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " + "systems - use gnulib module lseek for portability"); +# endif +#endif + + +#if @GNULIB_PIPE2@ +/* Create a pipe, applying the given flags when opening the read-end of the + pipe and the write-end of the pipe. + The flags are a bitmask, possibly including O_CLOEXEC (defined in ) + and O_TEXT, O_BINARY (defined in "binary-io.h"). + Store the read-end as fd[0] and the write-end as fd[1]. + Return 0 upon success, or -1 with errno set upon failure. + See also the Linux man page at + . */ +# if @HAVE_PIPE2@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pipe2 rpl_pipe2 +# endif +_GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); +# else +_GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); +# endif +_GL_CXXALIASWARN (pipe2); +#elif defined GNULIB_POSIXCHECK +# undef pipe2 +# if HAVE_RAW_DECL_PIPE2 +_GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " + "use gnulib module pipe2 for portability"); +# endif +#endif + + +#if @GNULIB_PREAD@ +/* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. + Return the number of bytes placed into BUF if successful, otherwise + set errno and return -1. 0 indicates EOF. See the POSIX:2001 + specification . */ +# if @REPLACE_PREAD@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pread rpl_pread +# endif +_GL_FUNCDECL_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PREAD@ +_GL_FUNCDECL_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pread, ssize_t, + (int fd, void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pread); +#elif defined GNULIB_POSIXCHECK +# undef pread +# if HAVE_RAW_DECL_PREAD +_GL_WARN_ON_USE (pread, "pread is unportable - " + "use gnulib module pread for portability"); +# endif +#endif + + +#if @GNULIB_PWRITE@ +/* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. + Return the number of bytes written if successful, otherwise + set errno and return -1. 0 indicates nothing written. See the + POSIX:2001 specification + . */ +# if @REPLACE_PWRITE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define pwrite rpl_pwrite +# endif +_GL_FUNCDECL_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# else +# if !@HAVE_PWRITE@ +_GL_FUNCDECL_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (pwrite, ssize_t, + (int fd, const void *buf, size_t bufsize, off_t offset)); +# endif +_GL_CXXALIASWARN (pwrite); +#elif defined GNULIB_POSIXCHECK +# undef pwrite +# if HAVE_RAW_DECL_PWRITE +_GL_WARN_ON_USE (pwrite, "pwrite is unportable - " + "use gnulib module pwrite for portability"); +# endif #endif @@ -223,16 +1060,70 @@ successful, otherwise -1 and errno set. See the POSIX:2001 specification . */ -# if !@HAVE_READLINK@ -# include -extern int readlink (const char *file, char *buf, size_t bufsize); +# if @REPLACE_READLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define readlink rpl_readlink +# endif +_GL_FUNCDECL_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); +# else +# if !@HAVE_READLINK@ +_GL_FUNCDECL_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (readlink, ssize_t, + (const char *file, char *buf, size_t bufsize)); # endif +_GL_CXXALIASWARN (readlink); #elif defined GNULIB_POSIXCHECK # undef readlink -# define readlink(f,b,s) \ - (GL_LINK_WARNING ("readlink is unportable - " \ - "use gnulib module readlink for portability"), \ - readlink (f, b, s)) +# if HAVE_RAW_DECL_READLINK +_GL_WARN_ON_USE (readlink, "readlink is unportable - " + "use gnulib module readlink for portability"); +# endif +#endif + + +#if @GNULIB_READLINKAT@ +# if !@HAVE_READLINKAT@ +_GL_FUNCDECL_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len) + _GL_ARG_NONNULL ((2, 3))); +# endif +_GL_CXXALIAS_SYS (readlinkat, ssize_t, + (int fd, char const *file, char *buf, size_t len)); +_GL_CXXALIASWARN (readlinkat); +#elif defined GNULIB_POSIXCHECK +# undef readlinkat +# if HAVE_RAW_DECL_READLINKAT +_GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_RMDIR@ +/* Remove the directory DIR. */ +# if @REPLACE_RMDIR@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define rmdir rpl_rmdir +# endif +_GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (rmdir, int, (char const *name)); +# else +_GL_CXXALIAS_SYS (rmdir, int, (char const *name)); +# endif +_GL_CXXALIASWARN (rmdir); +#elif defined GNULIB_POSIXCHECK +# undef rmdir +# if HAVE_RAW_DECL_RMDIR +_GL_WARN_ON_USE (rmdir, "rmdir is unportable - " + "use gnulib module rmdir for portability"); +# endif #endif @@ -241,20 +1132,197 @@ Returns the number of seconds left to sleep. See the POSIX:2001 specification . */ -# if !@HAVE_SLEEP@ -extern unsigned int sleep (unsigned int n); +# if @REPLACE_SLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef sleep +# define sleep rpl_sleep +# endif +_GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n)); +_GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n)); +# else +# if !@HAVE_SLEEP@ +_GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n)); +# endif +_GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); # endif +_GL_CXXALIASWARN (sleep); #elif defined GNULIB_POSIXCHECK # undef sleep -# define sleep(n) \ - (GL_LINK_WARNING ("sleep is unportable - " \ - "use gnulib module sleep for portability"), \ - sleep (n)) +# if HAVE_RAW_DECL_SLEEP +_GL_WARN_ON_USE (sleep, "sleep is unportable - " + "use gnulib module sleep for portability"); +# endif #endif -#ifdef __cplusplus -} +#if @GNULIB_SYMLINK@ +# if @REPLACE_SYMLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef symlink +# define symlink rpl_symlink +# endif +_GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +_GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file)); +# else +# if !@HAVE_SYMLINK@ +_GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file) + _GL_ARG_NONNULL ((1, 2))); +# endif +_GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file)); +# endif +_GL_CXXALIASWARN (symlink); +#elif defined GNULIB_POSIXCHECK +# undef symlink +# if HAVE_RAW_DECL_SYMLINK +_GL_WARN_ON_USE (symlink, "symlink is not portable - " + "use gnulib module symlink for portability"); +# endif +#endif + + +#if @GNULIB_SYMLINKAT@ +# if !@HAVE_SYMLINKAT@ +_GL_FUNCDECL_SYS (symlinkat, int, + (char const *contents, int fd, char const *file) + _GL_ARG_NONNULL ((1, 3))); +# endif +_GL_CXXALIAS_SYS (symlinkat, int, + (char const *contents, int fd, char const *file)); +_GL_CXXALIASWARN (symlinkat); +#elif defined GNULIB_POSIXCHECK +# undef symlinkat +# if HAVE_RAW_DECL_SYMLINKAT +_GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " + "use gnulib module symlinkat for portability"); +# endif +#endif + + +#if @GNULIB_TTYNAME_R@ +/* Store at most BUFLEN characters of the pathname of the terminal FD is + open on in BUF. Return 0 on success, otherwise an error number. */ +# if @REPLACE_TTYNAME_R@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef ttyname_r +# define ttyname_r rpl_ttyname_r +# endif +_GL_FUNCDECL_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# else +# if !@HAVE_TTYNAME_R@ +_GL_FUNCDECL_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (ttyname_r, int, + (int fd, char *buf, size_t buflen)); +# endif +_GL_CXXALIASWARN (ttyname_r); +#elif defined GNULIB_POSIXCHECK +# undef ttyname_r +# if HAVE_RAW_DECL_TTYNAME_R +_GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " + "use gnulib module ttyname_r for portability"); +# endif +#endif + + +#if @GNULIB_UNLINK@ +# if @REPLACE_UNLINK@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlink +# define unlink rpl_unlink +# endif +_GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1))); +_GL_CXXALIAS_RPL (unlink, int, (char const *file)); +# else +_GL_CXXALIAS_SYS (unlink, int, (char const *file)); +# endif +_GL_CXXALIASWARN (unlink); +#elif defined GNULIB_POSIXCHECK +# undef unlink +# if HAVE_RAW_DECL_UNLINK +_GL_WARN_ON_USE (unlink, "unlink is not portable - " + "use gnulib module unlink for portability"); +# endif +#endif + + +#if @GNULIB_UNLINKAT@ +# if @REPLACE_UNLINKAT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef unlinkat +# define unlinkat rpl_unlinkat +# endif +_GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); +# else +# if !@HAVE_UNLINKAT@ +_GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); +# endif +_GL_CXXALIASWARN (unlinkat); +#elif defined GNULIB_POSIXCHECK +# undef unlinkat +# if HAVE_RAW_DECL_UNLINKAT +_GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " + "use gnulib module openat for portability"); +# endif +#endif + + +#if @GNULIB_USLEEP@ +/* Pause the execution of the current thread for N microseconds. + Returns 0 on completion, or -1 on range error. + See the POSIX:2001 specification + . */ +# if @REPLACE_USLEEP@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef usleep +# define usleep rpl_usleep +# endif +_GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); +_GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); +# else +# if !@HAVE_USLEEP@ +_GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIAS_SYS (usleep, int, (useconds_t n)); +# endif +_GL_CXXALIASWARN (usleep); +#elif defined GNULIB_POSIXCHECK +# undef usleep +# if HAVE_RAW_DECL_USLEEP +_GL_WARN_ON_USE (usleep, "usleep is unportable - " + "use gnulib module usleep for portability"); +# endif +#endif + + +#if @GNULIB_WRITE@ +/* Write up to COUNT bytes starting at BUF to file descriptor FD. + See the POSIX:2001 specification + . */ +# if @REPLACE_WRITE@ && @GNULIB_UNISTD_H_SIGPIPE@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef write +# define write rpl_write +# endif +_GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); +# else +/* Need to cast, because on mingw, the third parameter is + unsigned int count + and the return type is 'int'. */ +_GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count)); +# endif +_GL_CXXALIASWARN (write); #endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-aux.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-aux.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-aux.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-aux.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-16 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n) @@ -30,18 +30,18 @@ if (c < 0xdc00) { if (n >= 2) - { - if (s[1] >= 0xdc00 && s[1] < 0xe000) - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } + { + if (s[1] >= 0xdc00 && s[1] < 0xe000) + { + *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); + return 2; + } + /* invalid multibyte character */ + } else - { - /* incomplete multibyte character */ - } + { + /* incomplete multibyte character */ + } } /* invalid multibyte character */ *puc = 0xfffd; diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-16 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u16_mbtouc as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,18 +40,18 @@ if (c < 0xdc00) { if (n >= 2) - { - if (s[1] >= 0xdc00 && s[1] < 0xe000) - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } + { + if (s[1] >= 0xdc00 && s[1] < 0xe000) + { + *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); + return 2; + } + /* invalid multibyte character */ + } else - { - /* incomplete multibyte character */ - } + { + /* incomplete multibyte character */ + } } /* invalid multibyte character */ *puc = 0xfffd; diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe-aux.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe-aux.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe-aux.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe-aux.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Conversion UTF-16 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "unistr.h" - -#if HAVE_INLINE - -int -u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - -#if CONFIG_UNICODE_SAFETY - if (c < 0xdc00) -#endif - { - if (n >= 2) - { -#if CONFIG_UNICODE_SAFETY - if (s[1] >= 0xdc00 && s[1] < 0xe000) -#endif - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - } - } - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} - -#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u16-mbtouc-unsafe.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,60 +0,0 @@ -/* Look at first character in UTF-16 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2001. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "unistr.h" - -#if !HAVE_INLINE - -int -u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } -#if CONFIG_UNICODE_SAFETY - if (c < 0xdc00) -#endif - { - if (n >= 2) - { -#if CONFIG_UNICODE_SAFETY - if (s[1] >= 0xdc00 && s[1] < 0xe000) -#endif - { - *puc = 0x10000 + ((c - 0xd800) << 10) + (s[1] - 0xdc00); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - } - } - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} - -#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-check.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-check.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-check.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-check.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,105 @@ +/* Check UTF-8 string. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +const uint8_t * +u8_check (const uint8_t *s, size_t n) +{ + const uint8_t *s_end = s + n; + + while (s < s_end) + { + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + uint8_t c = *s; + + if (c < 0x80) + { + s++; + continue; + } + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (s + 2 <= s_end + && (s[1] ^ 0x80) < 0x40) + { + s += 2; + continue; + } + } + else if (c < 0xf0) + { + if (s + 3 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + s += 3; + continue; + } + } + else if (c < 0xf8) + { + if (s + 4 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif + ) + { + s += 4; + continue; + } + } +#if 0 + else if (c < 0xfc) + { + if (s + 5 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + s += 5; + continue; + } + } + else if (c < 0xfe) + { + if (s + 6 <= s_end + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + s += 6; + continue; + } + } +#endif + } + /* invalid or incomplete multibyte character */ + return s; + } + return NULL; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mblen.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mblen.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mblen.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mblen.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,99 @@ +/* Look at first character in UTF-8 string. + Copyright (C) 1999-2000, 2002, 2006-2007, 2009-2010 Free Software + Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +int +u8_mblen (const uint8_t *s, size_t n) +{ + if (n > 0) + { + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + uint8_t c = *s; + + if (c < 0x80) + return (c != 0 ? 1 : 0); + if (c >= 0xc2) + { + if (c < 0xe0) + { + if (n >= 2 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 +#endif + ) + return 2; + } + else if (c < 0xf0) + { + if (n >= 3 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0) +#endif + ) + return 3; + } + else if (c < 0xf8) + { + if (n >= 4 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif +#endif + ) + return 4; + } +#if 0 + else if (c < 0xfc) + { + if (n >= 5 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88) +#endif + ) + return 5; + } + else if (c < 0xfe) + { + if (n >= 6 +#if CONFIG_UNICODE_SAFETY + && (s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84) +#endif + ) + return 6; + } +#endif + } + } + /* invalid or incomplete multibyte character */ + return -1; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-aux.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-aux.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-aux.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-aux.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-8 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n) @@ -30,124 +30,124 @@ if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { - if ((s[1] ^ 0x80) < 0x40) - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 3) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + { + if (n >= 4) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + ) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 5) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 6) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-8 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_mbtouc as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,124 +40,124 @@ else if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { - if ((s[1] ^ 0x80) < 0x40) - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 3) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + { + if (n >= 4) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + ) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 5) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + if (n >= 6) + { + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtoucr.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtoucr.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtoucr.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtoucr.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,285 @@ +/* Look at first character in UTF-8 string, returning an error code. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2001. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +int +u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else if (c >= 0xc2) + { + if (c < 0xe0) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xf0) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xf8) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) +#if 1 + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) +#endif + ) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } +#if 0 + else if (c < 0xfc) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + if (n >= 5) + { + if ((s[4] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + else if (c < 0xfe) + { + if (n >= 2) + { + if ((s[1] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) + { + if (n >= 3) + { + if ((s[2] ^ 0x80) < 0x40) + { + if (n >= 4) + { + if ((s[3] ^ 0x80) < 0x40) + { + if (n >= 5) + { + if ((s[4] ^ 0x80) < 0x40) + { + if (n >= 6) + { + if ((s[5] ^ 0x80) < 0x40) + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return -2; + } + } +#endif + } + /* invalid multibyte character */ + *puc = 0xfffd; + return -1; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe-aux.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe-aux.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe-aux.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe-aux.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UTF-8 to UCS-4. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -20,7 +20,7 @@ /* Specification. */ #include "unistr.h" -#if HAVE_INLINE +#if defined IN_LIBUNISTRING || HAVE_INLINE int u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n) @@ -30,134 +30,134 @@ if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { + { + if (n >= 2) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40) + if ((s[1] ^ 0x80) < 0x40) #endif - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { + { + if (n >= 3) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) -#endif - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) +#endif + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { + { + if (n >= 4) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) + ) #endif - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { + { + if (n >= 5) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) -#endif - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) +#endif + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { + { + if (n >= 6) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) -#endif - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) +#endif + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-mbtouc-unsafe.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Look at first character in UTF-8 string. - Copyright (C) 1999-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 1999-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,12 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_mbtouc_unsafe as 'extern', not + 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -35,134 +41,134 @@ else if (c >= 0xc2) { if (c < 0xe0) - { - if (n >= 2) - { + { + if (n >= 2) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40) + if ((s[1] ^ 0x80) < 0x40) #endif - { - *puc = ((unsigned int) (c & 0x1f) << 6) - | (unsigned int) (s[1] ^ 0x80); - return 2; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x1f) << 6) + | (unsigned int) (s[1] ^ 0x80); + return 2; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf0) - { - if (n >= 3) - { + { + if (n >= 3) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (c >= 0xe1 || s[1] >= 0xa0) - && (c != 0xed || s[1] < 0xa0)) -#endif - { - *puc = ((unsigned int) (c & 0x0f) << 12) - | ((unsigned int) (s[1] ^ 0x80) << 6) - | (unsigned int) (s[2] ^ 0x80); - return 3; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (c >= 0xe1 || s[1] >= 0xa0) + && (c != 0xed || s[1] < 0xa0)) +#endif + { + *puc = ((unsigned int) (c & 0x0f) << 12) + | ((unsigned int) (s[1] ^ 0x80) << 6) + | (unsigned int) (s[2] ^ 0x80); + return 3; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xf8) - { - if (n >= 4) - { + { + if (n >= 4) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 - && (c >= 0xf1 || s[1] >= 0x90) + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 + && (c >= 0xf1 || s[1] >= 0x90) #if 1 - && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) + && (c < 0xf4 || (c == 0xf4 && s[1] < 0x90)) #endif - ) + ) #endif - { - *puc = ((unsigned int) (c & 0x07) << 18) - | ((unsigned int) (s[1] ^ 0x80) << 12) - | ((unsigned int) (s[2] ^ 0x80) << 6) - | (unsigned int) (s[3] ^ 0x80); - return 4; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + { + *puc = ((unsigned int) (c & 0x07) << 18) + | ((unsigned int) (s[1] ^ 0x80) << 12) + | ((unsigned int) (s[2] ^ 0x80) << 6) + | (unsigned int) (s[3] ^ 0x80); + return 4; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #if 0 else if (c < 0xfc) - { - if (n >= 5) - { + { + if (n >= 5) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (c >= 0xf9 || s[1] >= 0x88)) -#endif - { - *puc = ((unsigned int) (c & 0x03) << 24) - | ((unsigned int) (s[1] ^ 0x80) << 18) - | ((unsigned int) (s[2] ^ 0x80) << 12) - | ((unsigned int) (s[3] ^ 0x80) << 6) - | (unsigned int) (s[4] ^ 0x80); - return 5; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (c >= 0xf9 || s[1] >= 0x88)) +#endif + { + *puc = ((unsigned int) (c & 0x03) << 24) + | ((unsigned int) (s[1] ^ 0x80) << 18) + | ((unsigned int) (s[2] ^ 0x80) << 12) + | ((unsigned int) (s[3] ^ 0x80) << 6) + | (unsigned int) (s[4] ^ 0x80); + return 5; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } else if (c < 0xfe) - { - if (n >= 6) - { + { + if (n >= 6) + { #if CONFIG_UNICODE_SAFETY - if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 - && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 - && (s[5] ^ 0x80) < 0x40 - && (c >= 0xfd || s[1] >= 0x84)) -#endif - { - *puc = ((unsigned int) (c & 0x01) << 30) - | ((unsigned int) (s[1] ^ 0x80) << 24) - | ((unsigned int) (s[2] ^ 0x80) << 18) - | ((unsigned int) (s[3] ^ 0x80) << 12) - | ((unsigned int) (s[4] ^ 0x80) << 6) - | (unsigned int) (s[5] ^ 0x80); - return 6; - } - /* invalid multibyte character */ - } - else - { - /* incomplete multibyte character */ - *puc = 0xfffd; - return n; - } - } + if ((s[1] ^ 0x80) < 0x40 && (s[2] ^ 0x80) < 0x40 + && (s[3] ^ 0x80) < 0x40 && (s[4] ^ 0x80) < 0x40 + && (s[5] ^ 0x80) < 0x40 + && (c >= 0xfd || s[1] >= 0x84)) +#endif + { + *puc = ((unsigned int) (c & 0x01) << 30) + | ((unsigned int) (s[1] ^ 0x80) << 24) + | ((unsigned int) (s[2] ^ 0x80) << 18) + | ((unsigned int) (s[3] ^ 0x80) << 12) + | ((unsigned int) (s[4] ^ 0x80) << 6) + | (unsigned int) (s[5] ^ 0x80); + return 6; + } + /* invalid multibyte character */ + } + else + { + /* incomplete multibyte character */ + *puc = 0xfffd; + return n; + } + } #endif } /* invalid multibyte character */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-prev.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-prev.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-prev.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-prev.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,93 @@ +/* Iterate over previous character in UTF-8 string. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2002. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include "unistr.h" + +const uint8_t * +u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start) +{ + /* Keep in sync with unistr.h and utf8-ucs4.c. */ + if (s != start) + { + uint8_t c_1 = s[-1]; + + if (c_1 < 0x80) + { + *puc = c_1; + return s - 1; + } +#if CONFIG_UNICODE_SAFETY + if ((c_1 ^ 0x80) < 0x40) +#endif + if (s - 1 != start) + { + uint8_t c_2 = s[-2]; + + if (c_2 >= 0xc2 && c_2 < 0xe0) + { + *puc = ((unsigned int) (c_2 & 0x1f) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 2; + } +#if CONFIG_UNICODE_SAFETY + if ((c_2 ^ 0x80) < 0x40) +#endif + if (s - 2 != start) + { + uint8_t c_3 = s[-3]; + + if (c_3 >= 0xe0 && c_3 < 0xf0 +#if CONFIG_UNICODE_SAFETY + && (c_3 >= 0xe1 || c_2 >= 0xa0) + && (c_3 != 0xed || c_2 < 0xa0) +#endif + ) + { + *puc = ((unsigned int) (c_3 & 0x0f) << 12) + | ((unsigned int) (c_2 ^ 0x80) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 3; + } +#if CONFIG_UNICODE_SAFETY + if ((c_3 ^ 0x80) < 0x40) +#endif + if (s - 3 != start) + { + uint8_t c_4 = s[-4]; + + if (c_4 >= 0xf0 && c_4 < 0xf8 +#if CONFIG_UNICODE_SAFETY + && (c_4 >= 0xf1 || c_3 >= 0x90) + && (c_4 < 0xf4 || (c_4 == 0xf4 && c_3 < 0x90)) +#endif + ) + { + *puc = ((unsigned int) (c_4 & 0x07) << 18) + | ((unsigned int) (c_3 ^ 0x80) << 12) + | ((unsigned int) (c_2 ^ 0x80) << 6) + | (unsigned int) (c_1 ^ 0x80); + return s - 4; + } + } + } + } + } + return NULL; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-uctomb-aux.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-uctomb-aux.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-uctomb-aux.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-uctomb-aux.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Conversion UCS-4 to UTF-8. - Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -33,9 +33,9 @@ else if (uc < 0x10000) { if (uc < 0xd800 || uc >= 0xe000) - count = 3; + count = 3; else - return -1; + return -1; } #if 0 else if (uc < 0x200000) diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr/u8-uctomb.c gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-uctomb.c --- gettext-0.17/gettext-tools/libgettextpo/unistr/u8-uctomb.c 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr/u8-uctomb.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Store a character in UTF-8 string. - Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -17,6 +17,11 @@ #include +#if defined IN_LIBUNISTRING +/* Tell unistr.h to declare u8_uctomb as 'extern', not 'static inline'. */ +# include "unistring-notinline.h" +#endif + /* Specification. */ #include "unistr.h" @@ -28,10 +33,10 @@ if (uc < 0x80) { if (n > 0) - { - s[0] = uc; - return 1; - } + { + s[0] = uc; + return 1; + } /* else return -2, below. */ } else @@ -39,43 +44,43 @@ int count; if (uc < 0x800) - count = 2; + count = 2; else if (uc < 0x10000) - { - if (uc < 0xd800 || uc >= 0xe000) - count = 3; - else - return -1; - } + { + if (uc < 0xd800 || uc >= 0xe000) + count = 3; + else + return -1; + } #if 0 else if (uc < 0x200000) - count = 4; + count = 4; else if (uc < 0x4000000) - count = 5; + count = 5; else if (uc <= 0x7fffffff) - count = 6; + count = 6; #else else if (uc < 0x110000) - count = 4; + count = 4; #endif else - return -1; + return -1; if (n >= count) - { - switch (count) /* note: code falls through cases! */ - { + { + switch (count) /* note: code falls through cases! */ + { #if 0 - case 6: s[5] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x4000000; - case 5: s[4] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x200000; + case 6: s[5] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x4000000; + case 5: s[4] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x200000; #endif - case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; - case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; - case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; - /*case 1:*/ s[0] = uc; - } - return count; - } + case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000; + case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800; + case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0; + /*case 1:*/ s[0] = uc; + } + return count; + } } return -2; } diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr.h gettext-0.18.1.1/gettext-tools/libgettextpo/unistr.h --- gettext-0.17/gettext-tools/libgettextpo/unistr.h 2007-10-31 12:38:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,661 +0,0 @@ -/* Elementary Unicode string functions. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNISTR_H -#define _UNISTR_H - -#include "unitypes.h" - -/* Get bool. */ -#include - -/* Get size_t. */ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Conventions: - - All functions prefixed with u8_ operate on UTF-8 encoded strings. - Their unit is an uint8_t (1 byte). - - All functions prefixed with u16_ operate on UTF-16 encoded strings. - Their unit is an uint16_t (a 2-byte word). - - All functions prefixed with u32_ operate on UCS-4 encoded strings. - Their unit is an uint32_t (a 4-byte word). - - All argument pairs (s, n) denote a Unicode string s[0..n-1] with exactly - n units. - - All arguments starting with "str" and the arguments of functions starting - with u8_str/u16_str/u32_str denote a NUL terminated string, i.e. a string - which terminates at the first NUL unit. This termination unit is - considered part of the string for all memory allocation purposes, but - is not considered part of the string for all other logical purposes. - - Functions returning a string result take a (resultbuf, lengthp) argument - pair. If resultbuf is not NULL and the result fits into *lengthp units, - it is put in resultbuf, and resultbuf is returned. Otherwise, a freshly - allocated string is returned. In both cases, *lengthp is set to the - length (number of units) of the returned string. In case of error, - NULL is returned and errno is set. */ - - -/* Elementary string checks. */ - -/* Check whether an UTF-8 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint8_t * - u8_check (const uint8_t *s, size_t n); - -/* Check whether an UTF-16 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint16_t * - u16_check (const uint16_t *s, size_t n); - -/* Check whether an UCS-4 string is well-formed. - Return NULL if valid, or a pointer to the first invalid unit otherwise. */ -extern const uint32_t * - u32_check (const uint32_t *s, size_t n); - - -/* Elementary string conversions. */ - -/* Convert an UTF-8 string to an UTF-16 string. */ -extern uint16_t * - u8_to_u16 (const uint8_t *s, size_t n, uint16_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-8 string to an UCS-4 string. */ -extern uint32_t * - u8_to_u32 (const uint8_t *s, size_t n, uint32_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-16 string to an UTF-8 string. */ -extern uint8_t * - u16_to_u8 (const uint16_t *s, size_t n, uint8_t *resultbuf, - size_t *lengthp); - -/* Convert an UTF-16 string to an UCS-4 string. */ -extern uint32_t * - u16_to_u32 (const uint16_t *s, size_t n, uint32_t *resultbuf, - size_t *lengthp); - -/* Convert an UCS-4 string to an UTF-8 string. */ -extern uint8_t * - u32_to_u8 (const uint32_t *s, size_t n, uint8_t *resultbuf, - size_t *lengthp); - -/* Convert an UCS-4 string to an UTF-16 string. */ -extern uint16_t * - u32_to_u16 (const uint32_t *s, size_t n, uint16_t *resultbuf, - size_t *lengthp); - - -/* Elementary string functions. */ - -/* Return the length (number of units) of the first character in S, which is - no longer than N. Return 0 if it is the NUL character. Return -1 upon - failure. */ -/* Similar to mblen(), except that s must not be NULL. */ -extern int - u8_mblen (const uint8_t *s, size_t n); -extern int - u16_mblen (const uint16_t *s, size_t n); -extern int - u32_mblen (const uint32_t *s, size_t n); - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, - and an appropriate number of units is returned. - The number of available units, N, must be > 0. */ -/* Similar to mbtowc(), except that puc and s must not be NULL, n must be > 0, - and the NUL character is not treated specially. */ -/* The variants with _safe suffix are safe, even if the library is compiled - without --enable-safety. */ - -#ifdef GNULIB_UNISTR_U8_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n); -# else -extern int - u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n); -static inline int -u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n) -{ - uint8_t c = *s; - - if (c < 0x80) - { - *puc = c; - return 1; - } - else - return u8_mbtouc_unsafe_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n); -# else -extern int - u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n); -static inline int -u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } - else - return u16_mbtouc_unsafe_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUC_UNSAFE -# if !HAVE_INLINE -extern int - u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n); -# else -static inline int -u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n) -{ - uint32_t c = *s; - -# if CONFIG_UNICODE_SAFETY - if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) -# endif - *puc = c; -# if CONFIG_UNICODE_SAFETY - else - /* invalid multibyte character */ - *puc = 0xfffd; -# endif - return 1; -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U8_MBTOUC -# if !HAVE_INLINE -extern int - u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n); -# else -extern int - u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n); -static inline int -u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n) -{ - uint8_t c = *s; - - if (c < 0x80) - { - *puc = c; - return 1; - } - else - return u8_mbtouc_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUC -# if !HAVE_INLINE -extern int - u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); -# else -extern int - u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n); -static inline int -u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n) -{ - uint16_t c = *s; - - if (c < 0xd800 || c >= 0xe000) - { - *puc = c; - return 1; - } - else - return u16_mbtouc_aux (puc, s, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUC -# if !HAVE_INLINE -extern int - u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); -# else -static inline int -u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n) -{ - uint32_t c = *s; - - if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) - *puc = c; - else - /* invalid multibyte character */ - *puc = 0xfffd; - return 1; -} -# endif -#endif - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, - and -1 is returned for an invalid sequence of units, -2 is returned for an - incomplete sequence of units. - The number of available units, N, must be > 0. */ -/* Similar to u*_mbtouc(), except that the return value gives more details - about the failure, similar to mbrtowc(). */ - -#ifdef GNULIB_UNISTR_U8_MBTOUCR -extern int - u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n); -#endif - -#ifdef GNULIB_UNISTR_U16_MBTOUCR -extern int - u16_mbtoucr (ucs4_t *puc, const uint16_t *s, size_t n); -#endif - -#ifdef GNULIB_UNISTR_U32_MBTOUCR -extern int - u32_mbtoucr (ucs4_t *puc, const uint32_t *s, size_t n); -#endif - -/* Put the multibyte character represented by UC in S, returning its - length. Return -1 upon failure, -2 if the number of available units, N, - is too small. The latter case cannot occur if N >= 6/2/1, respectively. */ -/* Similar to wctomb(), except that s must not be NULL, and the argument n - must be specified. */ - -#ifdef GNULIB_UNISTR_U8_UCTOMB -/* Auxiliary function, also used by u8_chr, u8_strchr, u8_strrchr. */ -extern int - u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n); -# if !HAVE_INLINE -extern int - u8_uctomb (uint8_t *s, ucs4_t uc, int n); -# else -static inline int -u8_uctomb (uint8_t *s, ucs4_t uc, int n) -{ - if (uc < 0x80 && n > 0) - { - s[0] = uc; - return 1; - } - else - return u8_uctomb_aux (s, uc, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U16_UCTOMB -/* Auxiliary function, also used by u16_chr, u16_strchr, u16_strrchr. */ -extern int - u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n); -# if !HAVE_INLINE -extern int - u16_uctomb (uint16_t *s, ucs4_t uc, int n); -# else -static inline int -u16_uctomb (uint16_t *s, ucs4_t uc, int n) -{ - if (uc < 0xd800 && n > 0) - { - s[0] = uc; - return 1; - } - else - return u16_uctomb_aux (s, uc, n); -} -# endif -#endif - -#ifdef GNULIB_UNISTR_U32_UCTOMB -# if !HAVE_INLINE -extern int - u32_uctomb (uint32_t *s, ucs4_t uc, int n); -# else -static inline int -u32_uctomb (uint32_t *s, ucs4_t uc, int n) -{ - if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) - { - if (n > 0) - { - *s = uc; - return 1; - } - else - return -2; - } - else - return -1; -} -# endif -#endif - -/* Copy N units from SRC to DEST. */ -/* Similar to memcpy(). */ -extern uint8_t * - u8_cpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_cpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_cpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Copy N units from SRC to DEST, guaranteeing correct behavior for - overlapping memory areas. */ -/* Similar to memmove(). */ -extern uint8_t * - u8_move (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_move (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_move (uint32_t *dest, const uint32_t *src, size_t n); - -/* Set the first N characters of S to UC. UC should be a character that - occupies only 1 unit. */ -/* Similar to memset(). */ -extern uint8_t * - u8_set (uint8_t *s, ucs4_t uc, size_t n); -extern uint16_t * - u16_set (uint16_t *s, ucs4_t uc, size_t n); -extern uint32_t * - u32_set (uint32_t *s, ucs4_t uc, size_t n); - -/* Compare S1 and S2, each of length N. */ -/* Similar to memcmp(). */ -extern int - u8_cmp (const uint8_t *s1, const uint8_t *s2, size_t n); -extern int - u16_cmp (const uint16_t *s1, const uint16_t *s2, size_t n); -extern int - u32_cmp (const uint32_t *s1, const uint32_t *s2, size_t n); - -/* Search the string at S for UC. */ -/* Similar to memchr(). */ -extern uint8_t * - u8_chr (const uint8_t *s, size_t n, ucs4_t uc); -extern uint16_t * - u16_chr (const uint16_t *s, size_t n, ucs4_t uc); -extern uint32_t * - u32_chr (const uint32_t *s, size_t n, ucs4_t uc); - -/* Count the number of Unicode characters in the N units from S. */ -/* Similar to mbsnlen(). */ -extern size_t - u8_mbsnlen (const uint8_t *s, size_t n); -extern size_t - u16_mbsnlen (const uint16_t *s, size_t n); -extern size_t - u32_mbsnlen (const uint32_t *s, size_t n); - -/* Elementary string functions with memory allocation. */ - -/* Make a freshly allocated copy of S, of length N. */ -extern uint8_t * - u8_cpy_alloc (const uint8_t *s, size_t n); -extern uint16_t * - u16_cpy_alloc (const uint16_t *s, size_t n); -extern uint32_t * - u32_cpy_alloc (const uint32_t *s, size_t n); - -/* Elementary string functions on NUL terminated strings. */ - -/* Return the length (number of units) of the first character in S. - Return 0 if it is the NUL character. Return -1 upon failure. */ -extern int - u8_strmblen (const uint8_t *s); -extern int - u16_strmblen (const uint16_t *s); -extern int - u32_strmblen (const uint32_t *s); - -/* Return the length (number of units) of the first character in S, putting - its 'ucs4_t' representation in *PUC. Return 0 if it is the NUL - character. Return -1 upon failure. */ -extern int - u8_strmbtouc (ucs4_t *puc, const uint8_t *s); -extern int - u16_strmbtouc (ucs4_t *puc, const uint16_t *s); -extern int - u32_strmbtouc (ucs4_t *puc, const uint32_t *s); - -/* Forward iteration step. Advances the pointer past the next character, - or returns NULL if the end of the string has been reached. Puts the - character's 'ucs4_t' representation in *PUC. */ -extern const uint8_t * - u8_next (ucs4_t *puc, const uint8_t *s); -extern const uint16_t * - u16_next (ucs4_t *puc, const uint16_t *s); -extern const uint32_t * - u32_next (ucs4_t *puc, const uint32_t *s); - -/* Backward iteration step. Advances the pointer to point to the previous - character, or returns NULL if the beginning of the string had been reached. - Puts the character's 'ucs4_t' representation in *PUC. */ -extern const uint8_t * - u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start); -extern const uint16_t * - u16_prev (ucs4_t *puc, const uint16_t *s, const uint16_t *start); -extern const uint32_t * - u32_prev (ucs4_t *puc, const uint32_t *s, const uint32_t *start); - -/* Return the number of units in S. */ -/* Similar to strlen(), wcslen(). */ -extern size_t - u8_strlen (const uint8_t *s); -extern size_t - u16_strlen (const uint16_t *s); -extern size_t - u32_strlen (const uint32_t *s); - -/* Return the number of units in S, but at most MAXLEN. */ -/* Similar to strnlen(), wcsnlen(). */ -extern size_t - u8_strnlen (const uint8_t *s, size_t maxlen); -extern size_t - u16_strnlen (const uint16_t *s, size_t maxlen); -extern size_t - u32_strnlen (const uint32_t *s, size_t maxlen); - -/* Copy SRC to DEST. */ -/* Similar to strcpy(), wcscpy(). */ -extern uint8_t * - u8_strcpy (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_strcpy (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_strcpy (uint32_t *dest, const uint32_t *src); - -/* Copy SRC to DEST, returning the address of the terminating NUL in DEST. */ -/* Similar to stpcpy(). */ -extern uint8_t * - u8_stpcpy (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_stpcpy (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_stpcpy (uint32_t *dest, const uint32_t *src); - -/* Copy no more than N units of SRC to DEST. */ -/* Similar to strncpy(), wcsncpy(). */ -extern uint8_t * - u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_strncpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_strncpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Copy no more than N characters of SRC to DEST, returning the address of - the last character written into DEST. */ -/* Similar to stpncpy(). */ -extern uint8_t * - u8_stpncpy (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_stpncpy (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_stpncpy (uint32_t *dest, const uint32_t *src, size_t n); - -/* Append SRC onto DEST. */ -/* Similar to strcat(), wcscat(). */ -extern uint8_t * - u8_strcat (uint8_t *dest, const uint8_t *src); -extern uint16_t * - u16_strcat (uint16_t *dest, const uint16_t *src); -extern uint32_t * - u32_strcat (uint32_t *dest, const uint32_t *src); - -/* Append no more than N units of SRC onto DEST. */ -/* Similar to strncat(), wcsncat(). */ -extern uint8_t * - u8_strncat (uint8_t *dest, const uint8_t *src, size_t n); -extern uint16_t * - u16_strncat (uint16_t *dest, const uint16_t *src, size_t n); -extern uint32_t * - u32_strncat (uint32_t *dest, const uint32_t *src, size_t n); - -/* Compare S1 and S2. */ -/* Similar to strcmp(), wcscmp(). */ -extern int - u8_strcmp (const uint8_t *s1, const uint8_t *s2); -extern int - u16_strcmp (const uint16_t *s1, const uint16_t *s2); -extern int - u32_strcmp (const uint32_t *s1, const uint32_t *s2); - -/* Compare no more than N units of S1 and S2. */ -/* Similar to strncmp(), wcsncmp(). */ -extern int - u8_strncmp (const uint8_t *s1, const uint8_t *s2, size_t n); -extern int - u16_strncmp (const uint16_t *s1, const uint16_t *s2, size_t n); -extern int - u32_strncmp (const uint32_t *s1, const uint32_t *s2, size_t n); - -/* Duplicate S, returning an identical malloc'd string. */ -/* Similar to strdup(), wcsdup(). */ -extern uint8_t * - u8_strdup (const uint8_t *s); -extern uint16_t * - u16_strdup (const uint16_t *s); -extern uint32_t * - u32_strdup (const uint32_t *s); - -/* Find the first occurrence of UC in STR. */ -/* Similar to strchr(), wcschr(). */ -extern uint8_t * - u8_strchr (const uint8_t *str, ucs4_t uc); -extern uint16_t * - u16_strchr (const uint16_t *str, ucs4_t uc); -extern uint32_t * - u32_strchr (const uint32_t *str, ucs4_t uc); - -/* Find the last occurrence of UC in STR. */ -/* Similar to strrchr(), wcsrchr(). */ -extern uint8_t * - u8_strrchr (const uint8_t *str, ucs4_t uc); -extern uint16_t * - u16_strrchr (const uint16_t *str, ucs4_t uc); -extern uint32_t * - u32_strrchr (const uint32_t *str, ucs4_t uc); - -/* Return the length of the initial segment of STR which consists entirely - of Unicode characters not in REJECT. */ -/* Similar to strcspn(), wcscspn(). */ -extern size_t - u8_strcspn (const uint8_t *str, const uint8_t *reject); -extern size_t - u16_strcspn (const uint16_t *str, const uint16_t *reject); -extern size_t - u32_strcspn (const uint32_t *str, const uint32_t *reject); - -/* Return the length of the initial segment of STR which consists entirely - of Unicode characters in ACCEPT. */ -/* Similar to strspn(), wcsspn(). */ -extern size_t - u8_strspn (const uint8_t *str, const uint8_t *accept); -extern size_t - u16_strspn (const uint16_t *str, const uint16_t *accept); -extern size_t - u32_strspn (const uint32_t *str, const uint32_t *accept); - -/* Find the first occurrence in STR of any character in ACCEPT. */ -/* Similar to strpbrk(), wcspbrk(). */ -extern uint8_t * - u8_strpbrk (const uint8_t *str, const uint8_t *accept); -extern uint16_t * - u16_strpbrk (const uint16_t *str, const uint16_t *accept); -extern uint32_t * - u32_strpbrk (const uint32_t *str, const uint32_t *accept); - -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -/* Similar to strstr(), wcsstr(). */ -extern uint8_t * - u8_strstr (const uint8_t *haystack, const uint8_t *needle); -extern uint16_t * - u16_strstr (const uint16_t *haystack, const uint16_t *needle); -extern uint32_t * - u32_strstr (const uint32_t *haystack, const uint32_t *needle); - -/* Test whether STR starts with PREFIX. */ -extern bool - u8_startswith (const uint8_t *str, const uint8_t *prefix); -extern bool - u16_startswith (const uint16_t *str, const uint16_t *prefix); -extern bool - u32_startswith (const uint32_t *str, const uint32_t *prefix); - -/* Test whether STR ends with SUFFIX. */ -extern bool - u8_endswith (const uint8_t *str, const uint8_t *suffix); -extern bool - u16_endswith (const uint16_t *str, const uint16_t *suffix); -extern bool - u32_endswith (const uint32_t *str, const uint32_t *suffix); - -/* Divide STR into tokens separated by characters in DELIM. - This interface is actually more similar to wcstok than to strtok. */ -/* Similar to strtok_r(), wcstok(). */ -extern uint8_t * - u8_strtok (uint8_t *str, const uint8_t *delim, uint8_t **ptr); -extern uint16_t * - u16_strtok (uint16_t *str, const uint16_t *delim, uint16_t **ptr); -extern uint32_t * - u32_strtok (uint32_t *str, const uint32_t *delim, uint32_t **ptr); - - -#ifdef __cplusplus -} -#endif - -#endif /* _UNISTR_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unistr.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/unistr.in.h --- gettext-0.17/gettext-tools/libgettextpo/unistr.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unistr.in.h 2010-05-17 19:58:03.000000000 +0000 @@ -0,0 +1,685 @@ +/* Elementary Unicode string functions. + Copyright (C) 2001-2002, 2005-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNISTR_H +#define _UNISTR_H + +#include "unitypes.h" + +/* Get common macros for C. */ +#include "unused-parameter.h" + +/* Get bool. */ +#include + +/* Get size_t. */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Conventions: + + All functions prefixed with u8_ operate on UTF-8 encoded strings. + Their unit is an uint8_t (1 byte). + + All functions prefixed with u16_ operate on UTF-16 encoded strings. + Their unit is an uint16_t (a 2-byte word). + + All functions prefixed with u32_ operate on UCS-4 encoded strings. + Their unit is an uint32_t (a 4-byte word). + + All argument pairs (s, n) denote a Unicode string s[0..n-1] with exactly + n units. + + All arguments starting with "str" and the arguments of functions starting + with u8_str/u16_str/u32_str denote a NUL terminated string, i.e. a string + which terminates at the first NUL unit. This termination unit is + considered part of the string for all memory allocation purposes, but + is not considered part of the string for all other logical purposes. + + Functions returning a string result take a (resultbuf, lengthp) argument + pair. If resultbuf is not NULL and the result fits into *lengthp units, + it is put in resultbuf, and resultbuf is returned. Otherwise, a freshly + allocated string is returned. In both cases, *lengthp is set to the + length (number of units) of the returned string. In case of error, + NULL is returned and errno is set. */ + + +/* Elementary string checks. */ + +/* Check whether an UTF-8 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint8_t * + u8_check (const uint8_t *s, size_t n); + +/* Check whether an UTF-16 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint16_t * + u16_check (const uint16_t *s, size_t n); + +/* Check whether an UCS-4 string is well-formed. + Return NULL if valid, or a pointer to the first invalid unit otherwise. */ +extern const uint32_t * + u32_check (const uint32_t *s, size_t n); + + +/* Elementary string conversions. */ + +/* Convert an UTF-8 string to an UTF-16 string. */ +extern uint16_t * + u8_to_u16 (const uint8_t *s, size_t n, uint16_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-8 string to an UCS-4 string. */ +extern uint32_t * + u8_to_u32 (const uint8_t *s, size_t n, uint32_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-16 string to an UTF-8 string. */ +extern uint8_t * + u16_to_u8 (const uint16_t *s, size_t n, uint8_t *resultbuf, + size_t *lengthp); + +/* Convert an UTF-16 string to an UCS-4 string. */ +extern uint32_t * + u16_to_u32 (const uint16_t *s, size_t n, uint32_t *resultbuf, + size_t *lengthp); + +/* Convert an UCS-4 string to an UTF-8 string. */ +extern uint8_t * + u32_to_u8 (const uint32_t *s, size_t n, uint8_t *resultbuf, + size_t *lengthp); + +/* Convert an UCS-4 string to an UTF-16 string. */ +extern uint16_t * + u32_to_u16 (const uint32_t *s, size_t n, uint16_t *resultbuf, + size_t *lengthp); + + +/* Elementary string functions. */ + +/* Return the length (number of units) of the first character in S, which is + no longer than N. Return 0 if it is the NUL character. Return -1 upon + failure. */ +/* Similar to mblen(), except that s must not be NULL. */ +extern int + u8_mblen (const uint8_t *s, size_t n); +extern int + u16_mblen (const uint16_t *s, size_t n); +extern int + u32_mblen (const uint32_t *s, size_t n); + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, + and an appropriate number of units is returned. + The number of available units, N, must be > 0. */ +/* Similar to mbtowc(), except that puc and s must not be NULL, n must be > 0, + and the NUL character is not treated specially. */ +/* The variants with _safe suffix are safe, even if the library is compiled + without --enable-safety. */ + +#ifdef GNULIB_UNISTR_U8_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n); +# else +extern int + u8_mbtouc_unsafe_aux (ucs4_t *puc, const uint8_t *s, size_t n); +static inline int +u8_mbtouc_unsafe (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else + return u8_mbtouc_unsafe_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n); +# else +extern int + u16_mbtouc_unsafe_aux (ucs4_t *puc, const uint16_t *s, size_t n); +static inline int +u16_mbtouc_unsafe (ucs4_t *puc, const uint16_t *s, size_t n) +{ + uint16_t c = *s; + + if (c < 0xd800 || c >= 0xe000) + { + *puc = c; + return 1; + } + else + return u16_mbtouc_unsafe_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUC_UNSAFE +# if !HAVE_INLINE +extern int + u32_mbtouc_unsafe (ucs4_t *puc, const uint32_t *s, size_t n); +# else +static inline int +u32_mbtouc_unsafe (ucs4_t *puc, + const uint32_t *s, size_t n _GL_UNUSED_PARAMETER) +{ + uint32_t c = *s; + +# if CONFIG_UNICODE_SAFETY + if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) +# endif + *puc = c; +# if CONFIG_UNICODE_SAFETY + else + /* invalid multibyte character */ + *puc = 0xfffd; +# endif + return 1; +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U8_MBTOUC +# if !HAVE_INLINE +extern int + u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n); +# else +extern int + u8_mbtouc_aux (ucs4_t *puc, const uint8_t *s, size_t n); +static inline int +u8_mbtouc (ucs4_t *puc, const uint8_t *s, size_t n) +{ + uint8_t c = *s; + + if (c < 0x80) + { + *puc = c; + return 1; + } + else + return u8_mbtouc_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUC +# if !HAVE_INLINE +extern int + u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n); +# else +extern int + u16_mbtouc_aux (ucs4_t *puc, const uint16_t *s, size_t n); +static inline int +u16_mbtouc (ucs4_t *puc, const uint16_t *s, size_t n) +{ + uint16_t c = *s; + + if (c < 0xd800 || c >= 0xe000) + { + *puc = c; + return 1; + } + else + return u16_mbtouc_aux (puc, s, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUC +# if !HAVE_INLINE +extern int + u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n); +# else +static inline int +u32_mbtouc (ucs4_t *puc, const uint32_t *s, size_t n _GL_UNUSED_PARAMETER) +{ + uint32_t c = *s; + + if (c < 0xd800 || (c >= 0xe000 && c < 0x110000)) + *puc = c; + else + /* invalid multibyte character */ + *puc = 0xfffd; + return 1; +} +# endif +#endif + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Upon failure, *PUC is set to 0xfffd, + and -1 is returned for an invalid sequence of units, -2 is returned for an + incomplete sequence of units. + The number of available units, N, must be > 0. */ +/* Similar to u*_mbtouc(), except that the return value gives more details + about the failure, similar to mbrtowc(). */ + +#ifdef GNULIB_UNISTR_U8_MBTOUCR +extern int + u8_mbtoucr (ucs4_t *puc, const uint8_t *s, size_t n); +#endif + +#ifdef GNULIB_UNISTR_U16_MBTOUCR +extern int + u16_mbtoucr (ucs4_t *puc, const uint16_t *s, size_t n); +#endif + +#ifdef GNULIB_UNISTR_U32_MBTOUCR +extern int + u32_mbtoucr (ucs4_t *puc, const uint32_t *s, size_t n); +#endif + +/* Put the multibyte character represented by UC in S, returning its + length. Return -1 upon failure, -2 if the number of available units, N, + is too small. The latter case cannot occur if N >= 6/2/1, respectively. */ +/* Similar to wctomb(), except that s must not be NULL, and the argument n + must be specified. */ + +#ifdef GNULIB_UNISTR_U8_UCTOMB +/* Auxiliary function, also used by u8_chr, u8_strchr, u8_strrchr. */ +extern int + u8_uctomb_aux (uint8_t *s, ucs4_t uc, int n); +# if !HAVE_INLINE +extern int + u8_uctomb (uint8_t *s, ucs4_t uc, int n); +# else +static inline int +u8_uctomb (uint8_t *s, ucs4_t uc, int n) +{ + if (uc < 0x80 && n > 0) + { + s[0] = uc; + return 1; + } + else + return u8_uctomb_aux (s, uc, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U16_UCTOMB +/* Auxiliary function, also used by u16_chr, u16_strchr, u16_strrchr. */ +extern int + u16_uctomb_aux (uint16_t *s, ucs4_t uc, int n); +# if !HAVE_INLINE +extern int + u16_uctomb (uint16_t *s, ucs4_t uc, int n); +# else +static inline int +u16_uctomb (uint16_t *s, ucs4_t uc, int n) +{ + if (uc < 0xd800 && n > 0) + { + s[0] = uc; + return 1; + } + else + return u16_uctomb_aux (s, uc, n); +} +# endif +#endif + +#ifdef GNULIB_UNISTR_U32_UCTOMB +# if !HAVE_INLINE +extern int + u32_uctomb (uint32_t *s, ucs4_t uc, int n); +# else +static inline int +u32_uctomb (uint32_t *s, ucs4_t uc, int n) +{ + if (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000)) + { + if (n > 0) + { + *s = uc; + return 1; + } + else + return -2; + } + else + return -1; +} +# endif +#endif + +/* Copy N units from SRC to DEST. */ +/* Similar to memcpy(). */ +extern uint8_t * + u8_cpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_cpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_cpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Copy N units from SRC to DEST, guaranteeing correct behavior for + overlapping memory areas. */ +/* Similar to memmove(). */ +extern uint8_t * + u8_move (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_move (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_move (uint32_t *dest, const uint32_t *src, size_t n); + +/* Set the first N characters of S to UC. UC should be a character that + occupies only 1 unit. */ +/* Similar to memset(). */ +extern uint8_t * + u8_set (uint8_t *s, ucs4_t uc, size_t n); +extern uint16_t * + u16_set (uint16_t *s, ucs4_t uc, size_t n); +extern uint32_t * + u32_set (uint32_t *s, ucs4_t uc, size_t n); + +/* Compare S1 and S2, each of length N. */ +/* Similar to memcmp(). */ +extern int + u8_cmp (const uint8_t *s1, const uint8_t *s2, size_t n); +extern int + u16_cmp (const uint16_t *s1, const uint16_t *s2, size_t n); +extern int + u32_cmp (const uint32_t *s1, const uint32_t *s2, size_t n); + +/* Compare S1 and S2. */ +/* Similar to the gnulib function memcmp2(). */ +extern int + u8_cmp2 (const uint8_t *s1, size_t n1, const uint8_t *s2, size_t n2); +extern int + u16_cmp2 (const uint16_t *s1, size_t n1, const uint16_t *s2, size_t n2); +extern int + u32_cmp2 (const uint32_t *s1, size_t n1, const uint32_t *s2, size_t n2); + +/* Search the string at S for UC. */ +/* Similar to memchr(). */ +extern uint8_t * + u8_chr (const uint8_t *s, size_t n, ucs4_t uc); +extern uint16_t * + u16_chr (const uint16_t *s, size_t n, ucs4_t uc); +extern uint32_t * + u32_chr (const uint32_t *s, size_t n, ucs4_t uc); + +/* Count the number of Unicode characters in the N units from S. */ +/* Similar to mbsnlen(). */ +extern size_t + u8_mbsnlen (const uint8_t *s, size_t n); +extern size_t + u16_mbsnlen (const uint16_t *s, size_t n); +extern size_t + u32_mbsnlen (const uint32_t *s, size_t n); + +/* Elementary string functions with memory allocation. */ + +/* Make a freshly allocated copy of S, of length N. */ +extern uint8_t * + u8_cpy_alloc (const uint8_t *s, size_t n); +extern uint16_t * + u16_cpy_alloc (const uint16_t *s, size_t n); +extern uint32_t * + u32_cpy_alloc (const uint32_t *s, size_t n); + +/* Elementary string functions on NUL terminated strings. */ + +/* Return the length (number of units) of the first character in S. + Return 0 if it is the NUL character. Return -1 upon failure. */ +extern int + u8_strmblen (const uint8_t *s); +extern int + u16_strmblen (const uint16_t *s); +extern int + u32_strmblen (const uint32_t *s); + +/* Return the length (number of units) of the first character in S, putting + its 'ucs4_t' representation in *PUC. Return 0 if it is the NUL + character. Return -1 upon failure. */ +extern int + u8_strmbtouc (ucs4_t *puc, const uint8_t *s); +extern int + u16_strmbtouc (ucs4_t *puc, const uint16_t *s); +extern int + u32_strmbtouc (ucs4_t *puc, const uint32_t *s); + +/* Forward iteration step. Advances the pointer past the next character, + or returns NULL if the end of the string has been reached. Puts the + character's 'ucs4_t' representation in *PUC. */ +extern const uint8_t * + u8_next (ucs4_t *puc, const uint8_t *s); +extern const uint16_t * + u16_next (ucs4_t *puc, const uint16_t *s); +extern const uint32_t * + u32_next (ucs4_t *puc, const uint32_t *s); + +/* Backward iteration step. Advances the pointer to point to the previous + character, or returns NULL if the beginning of the string had been reached. + Puts the character's 'ucs4_t' representation in *PUC. */ +extern const uint8_t * + u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start); +extern const uint16_t * + u16_prev (ucs4_t *puc, const uint16_t *s, const uint16_t *start); +extern const uint32_t * + u32_prev (ucs4_t *puc, const uint32_t *s, const uint32_t *start); + +/* Return the number of units in S. */ +/* Similar to strlen(), wcslen(). */ +extern size_t + u8_strlen (const uint8_t *s); +extern size_t + u16_strlen (const uint16_t *s); +extern size_t + u32_strlen (const uint32_t *s); + +/* Return the number of units in S, but at most MAXLEN. */ +/* Similar to strnlen(), wcsnlen(). */ +extern size_t + u8_strnlen (const uint8_t *s, size_t maxlen); +extern size_t + u16_strnlen (const uint16_t *s, size_t maxlen); +extern size_t + u32_strnlen (const uint32_t *s, size_t maxlen); + +/* Copy SRC to DEST. */ +/* Similar to strcpy(), wcscpy(). */ +extern uint8_t * + u8_strcpy (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_strcpy (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_strcpy (uint32_t *dest, const uint32_t *src); + +/* Copy SRC to DEST, returning the address of the terminating NUL in DEST. */ +/* Similar to stpcpy(). */ +extern uint8_t * + u8_stpcpy (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_stpcpy (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_stpcpy (uint32_t *dest, const uint32_t *src); + +/* Copy no more than N units of SRC to DEST. */ +/* Similar to strncpy(), wcsncpy(). */ +extern uint8_t * + u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_strncpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_strncpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Copy no more than N units of SRC to DEST. Return a pointer past the last + non-NUL unit written into DEST. */ +/* Similar to stpncpy(). */ +extern uint8_t * + u8_stpncpy (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_stpncpy (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_stpncpy (uint32_t *dest, const uint32_t *src, size_t n); + +/* Append SRC onto DEST. */ +/* Similar to strcat(), wcscat(). */ +extern uint8_t * + u8_strcat (uint8_t *dest, const uint8_t *src); +extern uint16_t * + u16_strcat (uint16_t *dest, const uint16_t *src); +extern uint32_t * + u32_strcat (uint32_t *dest, const uint32_t *src); + +/* Append no more than N units of SRC onto DEST. */ +/* Similar to strncat(), wcsncat(). */ +extern uint8_t * + u8_strncat (uint8_t *dest, const uint8_t *src, size_t n); +extern uint16_t * + u16_strncat (uint16_t *dest, const uint16_t *src, size_t n); +extern uint32_t * + u32_strncat (uint32_t *dest, const uint32_t *src, size_t n); + +/* Compare S1 and S2. */ +/* Similar to strcmp(), wcscmp(). */ +extern int + u8_strcmp (const uint8_t *s1, const uint8_t *s2); +extern int + u16_strcmp (const uint16_t *s1, const uint16_t *s2); +extern int + u32_strcmp (const uint32_t *s1, const uint32_t *s2); + +/* Compare S1 and S2 using the collation rules of the current locale. + Return -1 if S1 < S2, 0 if S1 = S2, 1 if S1 > S2. + Upon failure, set errno and return any value. */ +/* Similar to strcoll(), wcscoll(). */ +extern int + u8_strcoll (const uint8_t *s1, const uint8_t *s2); +extern int + u16_strcoll (const uint16_t *s1, const uint16_t *s2); +extern int + u32_strcoll (const uint32_t *s1, const uint32_t *s2); + +/* Compare no more than N units of S1 and S2. */ +/* Similar to strncmp(), wcsncmp(). */ +extern int + u8_strncmp (const uint8_t *s1, const uint8_t *s2, size_t n); +extern int + u16_strncmp (const uint16_t *s1, const uint16_t *s2, size_t n); +extern int + u32_strncmp (const uint32_t *s1, const uint32_t *s2, size_t n); + +/* Duplicate S, returning an identical malloc'd string. */ +/* Similar to strdup(), wcsdup(). */ +extern uint8_t * + u8_strdup (const uint8_t *s); +extern uint16_t * + u16_strdup (const uint16_t *s); +extern uint32_t * + u32_strdup (const uint32_t *s); + +/* Find the first occurrence of UC in STR. */ +/* Similar to strchr(), wcschr(). */ +extern uint8_t * + u8_strchr (const uint8_t *str, ucs4_t uc); +extern uint16_t * + u16_strchr (const uint16_t *str, ucs4_t uc); +extern uint32_t * + u32_strchr (const uint32_t *str, ucs4_t uc); + +/* Find the last occurrence of UC in STR. */ +/* Similar to strrchr(), wcsrchr(). */ +extern uint8_t * + u8_strrchr (const uint8_t *str, ucs4_t uc); +extern uint16_t * + u16_strrchr (const uint16_t *str, ucs4_t uc); +extern uint32_t * + u32_strrchr (const uint32_t *str, ucs4_t uc); + +/* Return the length of the initial segment of STR which consists entirely + of Unicode characters not in REJECT. */ +/* Similar to strcspn(), wcscspn(). */ +extern size_t + u8_strcspn (const uint8_t *str, const uint8_t *reject); +extern size_t + u16_strcspn (const uint16_t *str, const uint16_t *reject); +extern size_t + u32_strcspn (const uint32_t *str, const uint32_t *reject); + +/* Return the length of the initial segment of STR which consists entirely + of Unicode characters in ACCEPT. */ +/* Similar to strspn(), wcsspn(). */ +extern size_t + u8_strspn (const uint8_t *str, const uint8_t *accept); +extern size_t + u16_strspn (const uint16_t *str, const uint16_t *accept); +extern size_t + u32_strspn (const uint32_t *str, const uint32_t *accept); + +/* Find the first occurrence in STR of any character in ACCEPT. */ +/* Similar to strpbrk(), wcspbrk(). */ +extern uint8_t * + u8_strpbrk (const uint8_t *str, const uint8_t *accept); +extern uint16_t * + u16_strpbrk (const uint16_t *str, const uint16_t *accept); +extern uint32_t * + u32_strpbrk (const uint32_t *str, const uint32_t *accept); + +/* Find the first occurrence of NEEDLE in HAYSTACK. */ +/* Similar to strstr(), wcsstr(). */ +extern uint8_t * + u8_strstr (const uint8_t *haystack, const uint8_t *needle); +extern uint16_t * + u16_strstr (const uint16_t *haystack, const uint16_t *needle); +extern uint32_t * + u32_strstr (const uint32_t *haystack, const uint32_t *needle); + +/* Test whether STR starts with PREFIX. */ +extern bool + u8_startswith (const uint8_t *str, const uint8_t *prefix); +extern bool + u16_startswith (const uint16_t *str, const uint16_t *prefix); +extern bool + u32_startswith (const uint32_t *str, const uint32_t *prefix); + +/* Test whether STR ends with SUFFIX. */ +extern bool + u8_endswith (const uint8_t *str, const uint8_t *suffix); +extern bool + u16_endswith (const uint16_t *str, const uint16_t *suffix); +extern bool + u32_endswith (const uint32_t *str, const uint32_t *suffix); + +/* Divide STR into tokens separated by characters in DELIM. + This interface is actually more similar to wcstok than to strtok. */ +/* Similar to strtok_r(), wcstok(). */ +extern uint8_t * + u8_strtok (uint8_t *str, const uint8_t *delim, uint8_t **ptr); +extern uint16_t * + u16_strtok (uint16_t *str, const uint16_t *delim, uint16_t **ptr); +extern uint32_t * + u32_strtok (uint32_t *str, const uint32_t *delim, uint32_t **ptr); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNISTR_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unitypes.h gettext-0.18.1.1/gettext-tools/libgettextpo/unitypes.h --- gettext-0.17/gettext-tools/libgettextpo/unitypes.h 2007-10-31 12:38:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unitypes.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -/* Elementary types for the GNU UniString library. - Copyright (C) 2002, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNITYPES_H -#define _UNITYPES_H - -/* Get uint8_t, uint16_t, uint32_t. */ -#include - -/* Type representing a Unicode character. */ -typedef uint32_t ucs4_t; - -#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unitypes.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/unitypes.in.h --- gettext-0.17/gettext-tools/libgettextpo/unitypes.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unitypes.in.h 2010-05-17 19:58:03.000000000 +0000 @@ -0,0 +1,26 @@ +/* Elementary types for the GNU UniString library. + Copyright (C) 2002, 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNITYPES_H +#define _UNITYPES_H + +/* Get uint8_t, uint16_t, uint32_t. */ +#include + +/* Type representing a Unicode character. */ +typedef uint32_t ucs4_t; + +#endif /* _UNITYPES_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniwidth/cjk.h gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth/cjk.h --- gettext-0.17/gettext-tools/libgettextpo/uniwidth/cjk.h 2007-10-31 12:38:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth/cjk.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Test for CJK encoding. - Copyright (C) 2001-2002, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniwidth/width.c gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth/width.c --- gettext-0.17/gettext-tools/libgettextpo/uniwidth/width.c 2007-10-31 12:38:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth/width.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine display width of Unicode character. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -32,11 +32,11 @@ * - Zero width characters; generated from * "grep '^[^;]*;ZERO WIDTH ' UnicodeData.txt" */ -static const unsigned char nonspacing_table_data[22*64] = { +static const unsigned char nonspacing_table_data[26*64] = { /* 0x0000-0x01ff */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, /* 0x0000-0x003f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0x0040-0x007f */ - 0xff, 0xff, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, /* 0x0080-0x00bf */ + 0xff, 0xff, 0xff, 0xff, 0x00, 0x20, 0x00, 0x00, /* 0x0080-0x00bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x00c0-0x00ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0100-0x013f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0140-0x017f */ @@ -54,14 +54,14 @@ /* 0x0400-0x05ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0400-0x043f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0440-0x047f */ - 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ + 0xf8, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0480-0x04bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x04c0-0x04ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0500-0x053f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0540-0x057f */ 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xbf, /* 0x0580-0x05bf */ 0xb6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x05c0-0x05ff */ /* 0x0600-0x07ff */ - 0x0f, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ + 0x0f, 0x00, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, /* 0x0600-0x063f */ 0x00, 0xf8, 0xff, 0x7f, 0x00, 0x00, 0x01, 0x00, /* 0x0640-0x067f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0680-0x06bf */ 0x00, 0x00, 0xc0, 0xff, 0x9f, 0x3d, 0x00, 0x00, /* 0x06c0-0x06ff */ @@ -80,20 +80,20 @@ 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x09c0-0x09ff */ /* 0x0a00-0x0bff */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a00-0x0a3f */ - 0x86, 0x39, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, /* 0x0a40-0x0a7f */ + 0x86, 0x39, 0x02, 0x00, 0x00, 0x00, 0x23, 0x00, /* 0x0a40-0x0a7f */ 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0a80-0x0abf */ 0xbe, 0x21, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0ac0-0x0aff */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, /* 0x0b00-0x0b3f */ - 0x0e, 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ + 0x1e, 0x20, 0x40, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0b40-0x0b7f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0b80-0x0bbf */ 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0bc0-0x0bff */ /* 0x0c00-0x0dff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x0c00-0x0c3f */ - 0xc1, 0x3d, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ + 0xc1, 0x3d, 0x60, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0c40-0x0c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, /* 0x0c80-0x0cbf */ 0x00, 0x30, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0cc0-0x0cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d00-0x0d3f */ - 0x0e, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ + 0x1e, 0x20, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, /* 0x0d40-0x0d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0d80-0x0dbf */ 0x00, 0x04, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0dc0-0x0dff */ /* 0x0e00-0x0fff */ @@ -106,9 +106,9 @@ 0xdf, 0x00, 0xff, 0xfe, 0xff, 0xff, 0xff, 0x1f, /* 0x0f80-0x0fbf */ 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0fc0-0x0fff */ /* 0x1000-0x11ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xc5, 0x02, /* 0x1000-0x103f */ - 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, /* 0x1040-0x107f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xfd, 0x66, /* 0x1000-0x103f */ + 0x00, 0x00, 0x00, 0xc3, 0x01, 0x00, 0x1e, 0x00, /* 0x1040-0x107f */ + 0x64, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1080-0x10bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10c0-0x10ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1100-0x113f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1140-0x117f */ @@ -137,7 +137,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1840-0x187f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, /* 0x1880-0x18bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x18c0-0x18ff */ - 0x00, 0x00, 0x00, 0x00, 0x87, 0x0f, 0x04, 0x0e, /* 0x1900-0x193f */ + 0x00, 0x00, 0x00, 0x00, 0x87, 0x01, 0x04, 0x0e, /* 0x1900-0x193f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1940-0x197f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1980-0x19bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x19c0-0x19ff */ @@ -148,26 +148,35 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1ac0-0x1aff */ 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x17, /* 0x1b00-0x1b3f */ 0x04, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0f, 0x00, /* 0x1b40-0x1b7f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1b80-0x1bbf */ + 0x03, 0x00, 0x00, 0x00, 0x3c, 0x03, 0x00, 0x00, /* 0x1b80-0x1bbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1bc0-0x1bff */ /* 0x1c00-0x1dff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c00-0x1c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xcf, 0x00, /* 0x1c00-0x1c3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c40-0x1c7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1c80-0x1cbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1cc0-0x1cff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d00-0x1d3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d40-0x1d7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x1d80-0x1dbf */ - 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ + 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xc0, /* 0x1dc0-0x1dff */ /* 0x2000-0x21ff */ 0x00, 0xf8, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, /* 0x2000-0x203f */ - 0x00, 0x00, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ + 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x00, /* 0x2040-0x207f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2080-0x20bf */ - 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, /* 0x20c0-0x20ff */ + 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, /* 0x20c0-0x20ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2100-0x213f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2140-0x217f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2180-0x21bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x21c0-0x21ff */ + /* 0x2c00-0x2dff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c00-0x2c3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c40-0x2c7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2c80-0x2cbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2cc0-0x2cff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d00-0x2d3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d40-0x2d7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x2d80-0x2dbf */ + 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, /* 0x2dc0-0x2dff */ /* 0x3000-0x31ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, /* 0x3000-0x303f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3040-0x307f */ @@ -177,15 +186,33 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3140-0x317f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x3180-0x31bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x31c0-0x31ff */ + /* 0xa600-0xa7ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa600-0xa63f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x30, /* 0xa640-0xa67f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa680-0xa6bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa6c0-0xa6ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa700-0xa73f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa740-0xa77f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa780-0xa7bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa7c0-0xa7ff */ /* 0xa800-0xa9ff */ 0x44, 0x08, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, /* 0xa800-0xa83f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa840-0xa87f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa880-0xa8bf */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa900-0xa93f */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ + 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa8c0-0xa8ff */ + 0x00, 0x00, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, /* 0xa900-0xa93f */ + 0x80, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa940-0xa97f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa980-0xa9bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xa9c0-0xa9ff */ + /* 0xaa00-0xabff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x66, 0x00, /* 0xaa00-0xaa3f */ + 0x08, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa40-0xaa7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaa80-0xaabf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xaac0-0xaaff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab00-0xab3f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab40-0xab7f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xab80-0xabbf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xabc0-0xabff */ /* 0xfa00-0xfbff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa00-0xfa3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfa40-0xfa7f */ @@ -196,7 +223,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfb80-0xfbbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfbc0-0xfbff */ /* 0xfe00-0xffff */ - 0xff, 0xff, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ + 0xff, 0xff, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, /* 0xfe00-0xfe3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe40-0xfe7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xfe80-0xfebf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0xfec0-0xfeff */ @@ -204,6 +231,15 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff40-0xff7f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xff80-0xffbf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, /* 0xffc0-0xffff */ + /* 0x10000-0x101ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10000-0x1003f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10040-0x1007f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10080-0x100bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x100c0-0x100ff */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10100-0x1013f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10140-0x1017f */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10180-0x101bf */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, /* 0x101c0-0x101ff */ /* 0x10a00-0x10bff */ 0x6e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, /* 0x10a00-0x10a3f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x10a40-0x10a7f */ @@ -235,21 +271,21 @@ static const signed char nonspacing_table_ind[240] = { 0, 1, 2, 3, 4, 5, 6, 7, /* 0x0000-0x0fff */ 8, 9, -1, 10, 11, 12, 13, -1, /* 0x1000-0x1fff */ - 14, -1, -1, -1, -1, -1, -1, -1, /* 0x2000-0x2fff */ - 15, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ + 14, -1, -1, -1, -1, -1, 15, -1, /* 0x2000-0x2fff */ + 16, -1, -1, -1, -1, -1, -1, -1, /* 0x3000-0x3fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x4000-0x4fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x5000-0x5fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x6000-0x6fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x7000-0x7fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x8000-0x8fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x9000-0x9fff */ - -1, -1, -1, -1, 16, -1, -1, -1, /* 0xa000-0xafff */ + -1, -1, -1, 17, 18, 19, -1, -1, /* 0xa000-0xafff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xb000-0xbfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xc000-0xcfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xd000-0xdfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0xe000-0xefff */ - -1, -1, -1, -1, -1, 17, -1, 18, /* 0xf000-0xffff */ - -1, -1, -1, -1, -1, 19, -1, -1, /* 0x10000-0x10fff */ + -1, -1, -1, -1, -1, 20, -1, 21, /* 0xf000-0xffff */ + 22, -1, -1, -1, -1, 23, -1, -1, /* 0x10000-0x10fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x11000-0x11fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x12000-0x12fff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x13000-0x13fff */ @@ -262,7 +298,7 @@ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1a000-0x1afff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1b000-0x1bfff */ -1, -1, -1, -1, -1, -1, -1, -1, /* 0x1c000-0x1cfff */ - 20, 21, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ + 24, 25, -1, -1, -1, -1, -1, -1 /* 0x1d000-0x1dfff */ }; /* Determine number of column positions required for UC. */ @@ -274,26 +310,26 @@ { int ind = nonspacing_table_ind[uc >> 9]; if (ind >= 0) - if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) - { - if (uc > 0 && uc < 0xa0) - return -1; - else - return 0; - } + if ((nonspacing_table_data[64*ind + ((uc >> 3) & 63)] >> (uc & 7)) & 1) + { + if (uc > 0 && uc < 0xa0) + return -1; + else + return 0; + } } else if ((uc >> 9) == (0xe0000 >> 9)) { if (uc >= 0xe0100) - { - if (uc <= 0xe01ef) - return 0; - } + { + if (uc <= 0xe01ef) + return 0; + } else - { - if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) - return 0; - } + { + if (uc >= 0xe0020 ? uc <= 0xe007f : uc == 0xe0001) + return 0; + } } /* Test for double-width character. * Generated from "grep '^....;[WF]' EastAsianWidth.txt" @@ -301,17 +337,17 @@ */ if (uc >= 0x1100 && ((uc < 0x1160) /* Hangul Jamo */ - || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ - || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ - && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) - || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ - || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ - || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ - || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ - || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ - || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ - || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ - || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ + || (uc >= 0x2329 && uc < 0x232b) /* Angle Brackets */ + || (uc >= 0x2e80 && uc < 0xa4d0 /* CJK ... Yi */ + && !(uc == 0x303f) && !(uc >= 0x4dc0 && uc < 0x4e00)) + || (uc >= 0xac00 && uc < 0xd7a4) /* Hangul Syllables */ + || (uc >= 0xf900 && uc < 0xfb00) /* CJK Compatibility Ideographs */ + || (uc >= 0xfe10 && uc < 0xfe20) /* Presentation Forms for Vertical */ + || (uc >= 0xfe30 && uc < 0xfe70) /* CJK Compatibility Forms */ + || (uc >= 0xff00 && uc < 0xff61) /* Fullwidth Forms */ + || (uc >= 0xffe0 && uc < 0xffe7) /* Fullwidth Signs */ + || (uc >= 0x20000 && uc <= 0x2a6d6) /* CJK */ + || (uc >= 0x2f800 && uc <= 0x2fa1d) /* CJK Compatibility Ideographs */ ) ) return 2; /* In ancient CJK encodings, Cyrillic and most other characters are diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniwidth.h gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth.h --- gettext-0.17/gettext-tools/libgettextpo/uniwidth.h 2007-10-31 12:38:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -/* Display width functions. - Copyright (C) 2001-2002, 2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _UNIWIDTH_H -#define _UNIWIDTH_H - -#include "unitypes.h" - -/* Get size_t. */ -#include - -/* Get locale_charset() declaration. */ -#include "localcharset.h" - -#ifdef __cplusplus -extern "C" { -#endif - - -/* Display width. */ - -/* These functions are locale dependent. The encoding argument identifies - the encoding (e.g. "ISO-8859-2" for Polish). */ - -/* Determine number of column positions required for UC. */ -extern int - uc_width (ucs4_t uc, const char *encoding); - -/* Determine number of column positions required for first N units - (or fewer if S ends before this) in S. */ -extern int - u8_width (const uint8_t *s, size_t n, const char *encoding); -extern int - u16_width (const uint16_t *s, size_t n, const char *encoding); -extern int - u32_width (const uint32_t *s, size_t n, const char *encoding); - -/* Determine number of column positions required for S. */ -extern int - u8_strwidth (const uint8_t *s, const char *encoding); -extern int - u16_strwidth (const uint16_t *s, const char *encoding); -extern int - u32_strwidth (const uint32_t *s, const char *encoding); - - -#ifdef __cplusplus -} -#endif - -#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/uniwidth.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth.in.h --- gettext-0.17/gettext-tools/libgettextpo/uniwidth.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/uniwidth.in.h 2010-05-17 19:58:04.000000000 +0000 @@ -0,0 +1,65 @@ +/* Display width functions. + Copyright (C) 2001-2002, 2005, 2007, 2009-2010 Free Software Foundation, + Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _UNIWIDTH_H +#define _UNIWIDTH_H + +#include "unitypes.h" + +/* Get size_t. */ +#include + +/* Get locale_charset() declaration. */ +#include "localcharset.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Display width. */ + +/* These functions are locale dependent. The encoding argument identifies + the encoding (e.g. "ISO-8859-2" for Polish). */ + +/* Determine number of column positions required for UC. */ +extern int + uc_width (ucs4_t uc, const char *encoding); + +/* Determine number of column positions required for first N units + (or fewer if S ends before this) in S. */ +extern int + u8_width (const uint8_t *s, size_t n, const char *encoding); +extern int + u16_width (const uint16_t *s, size_t n, const char *encoding); +extern int + u32_width (const uint32_t *s, size_t n, const char *encoding); + +/* Determine number of column positions required for S. */ +extern int + u8_strwidth (const uint8_t *s, const char *encoding); +extern int + u16_strwidth (const uint16_t *s, const char *encoding); +extern int + u32_strwidth (const uint32_t *s, const char *encoding); + + +#ifdef __cplusplus +} +#endif + +#endif /* _UNIWIDTH_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/unlocked-io.h gettext-0.18.1.1/gettext-tools/libgettextpo/unlocked-io.h --- gettext-0.17/gettext-tools/libgettextpo/unlocked-io.h 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/unlocked-io.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,6 +1,6 @@ /* Prefer faster, non-thread-safe stdio functions if available. - Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/libgettextpo/vasnprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/vasnprintf.c --- gettext-0.17/gettext-tools/libgettextpo/vasnprintf.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/vasnprintf.c 2010-05-09 11:05:02.000000000 +0000 @@ -0,0 +1,5567 @@ +/* vsprintf with automatic memory allocation. + Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* This file can be parametrized with the following macros: + VASNPRINTF The name of the function being defined. + FCHAR_T The element type of the format string. + DCHAR_T The element type of the destination (result) string. + FCHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters + in the format string are ASCII. MUST be set if + FCHAR_T and DCHAR_T are not the same type. + DIRECTIVE Structure denoting a format directive. + Depends on FCHAR_T. + DIRECTIVES Structure denoting the set of format directives of a + format string. Depends on FCHAR_T. + PRINTF_PARSE Function that parses a format string. + Depends on FCHAR_T. + DCHAR_CPY memcpy like function for DCHAR_T[] arrays. + DCHAR_SET memset like function for DCHAR_T[] arrays. + DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays. + SNPRINTF The system's snprintf (or similar) function. + This may be either snprintf or swprintf. + TCHAR_T The element type of the argument and result string + of the said SNPRINTF function. This may be either + char or wchar_t. The code exploits that + sizeof (TCHAR_T) | sizeof (DCHAR_T) and + alignof (TCHAR_T) <= alignof (DCHAR_T). + DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type. + DCHAR_CONV_FROM_ENCODING A function to convert from char[] to DCHAR[]. + DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t. + DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t. + DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */ + +/* Tell glibc's to provide a prototype for snprintf(). + This must come before because may include + , and once has been included, it's too late. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + +#ifndef VASNPRINTF +# include +#endif +#ifndef IN_LIBINTL +# include +#endif + +/* Specification. */ +#ifndef VASNPRINTF +# if WIDE_CHAR_VERSION +# include "vasnwprintf.h" +# else +# include "vasnprintf.h" +# endif +#endif + +#include /* localeconv() */ +#include /* snprintf(), sprintf() */ +#include /* abort(), malloc(), realloc(), free() */ +#include /* memcpy(), strlen() */ +#include /* errno */ +#include /* CHAR_BIT */ +#include /* DBL_MAX_EXP, LDBL_MAX_EXP */ +#if HAVE_NL_LANGINFO +# include +#endif +#ifndef VASNPRINTF +# if WIDE_CHAR_VERSION +# include "wprintf-parse.h" +# else +# include "printf-parse.h" +# endif +#endif + +/* Checked size_t computations. */ +#include "xsize.h" + +#if (NEED_PRINTF_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL +# include +# include "float+.h" +#endif + +#if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +# include +# include "isnand-nolibm.h" +#endif + +#if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL +# include +# include "isnanl-nolibm.h" +# include "fpucw.h" +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL +# include +# include "isnand-nolibm.h" +# include "printf-frexp.h" +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL +# include +# include "isnanl-nolibm.h" +# include "printf-frexpl.h" +# include "fpucw.h" +#endif + +/* Default parameters. */ +#ifndef VASNPRINTF +# if WIDE_CHAR_VERSION +# define VASNPRINTF vasnwprintf +# define FCHAR_T wchar_t +# define DCHAR_T wchar_t +# define TCHAR_T wchar_t +# define DCHAR_IS_TCHAR 1 +# define DIRECTIVE wchar_t_directive +# define DIRECTIVES wchar_t_directives +# define PRINTF_PARSE wprintf_parse +# define DCHAR_CPY wmemcpy +# define DCHAR_SET wmemset +# else +# define VASNPRINTF vasnprintf +# define FCHAR_T char +# define DCHAR_T char +# define TCHAR_T char +# define DCHAR_IS_TCHAR 1 +# define DIRECTIVE char_directive +# define DIRECTIVES char_directives +# define PRINTF_PARSE printf_parse +# define DCHAR_CPY memcpy +# define DCHAR_SET memset +# endif +#endif +#if WIDE_CHAR_VERSION + /* TCHAR_T is wchar_t. */ +# define USE_SNPRINTF 1 +# if HAVE_DECL__SNWPRINTF + /* On Windows, the function swprintf() has a different signature than + on Unix; we use the function _snwprintf() or - on mingw - snwprintf() + instead. The mingw function snwprintf() has fewer bugs than the + MSVCRT function _snwprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snwprintf +# else +# define SNPRINTF _snwprintf +# endif +# else + /* Unix. */ +# define SNPRINTF swprintf +# endif +#else + /* TCHAR_T is char. */ + /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. + But don't use it on BeOS, since BeOS snprintf produces no output if the + size argument is >= 0x3000000. + Also don't use it on Linux libc5, since there snprintf with size = 1 + writes any output without bounds, like sprintf. */ +# if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) +# define USE_SNPRINTF 1 +# else +# define USE_SNPRINTF 0 +# endif +# if HAVE_DECL__SNPRINTF + /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT + function _snprintf(), so prefer that. */ +# if defined __MINGW32__ +# define SNPRINTF snprintf + /* Here we need to call the native snprintf, not rpl_snprintf. */ +# undef snprintf +# else +# define SNPRINTF _snprintf +# endif +# else + /* Unix. */ +# define SNPRINTF snprintf + /* Here we need to call the native snprintf, not rpl_snprintf. */ +# undef snprintf +# endif +#endif +/* Here we need to call the native sprintf, not rpl_sprintf. */ +#undef sprintf + +/* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" + warnings in this file. Use -Dlint to suppress them. */ +#ifdef lint +# define IF_LINT(Code) Code +#else +# define IF_LINT(Code) /* empty */ +#endif + +/* Avoid some warnings from "gcc -Wshadow". + This file doesn't use the exp() and remainder() functions. */ +#undef exp +#define exp expo +#undef remainder +#define remainder rem + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION +# if (HAVE_STRNLEN && !defined _AIX) +# define local_strnlen strnlen +# else +# ifndef local_strnlen_defined +# define local_strnlen_defined 1 +static size_t +local_strnlen (const char *string, size_t maxlen) +{ + const char *end = memchr (string, '\0', maxlen); + return end ? (size_t) (end - string) : maxlen; +} +# endif +# endif +#endif + +#if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T +# if HAVE_WCSLEN +# define local_wcslen wcslen +# else + /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid + a dependency towards this library, here is a local substitute. + Define this substitute only once, even if this file is included + twice in the same compilation unit. */ +# ifndef local_wcslen_defined +# define local_wcslen_defined 1 +static size_t +local_wcslen (const wchar_t *s) +{ + const wchar_t *ptr; + + for (ptr = s; *ptr != (wchar_t) 0; ptr++) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION +# if HAVE_WCSNLEN +# define local_wcsnlen wcsnlen +# else +# ifndef local_wcsnlen_defined +# define local_wcsnlen_defined 1 +static size_t +local_wcsnlen (const wchar_t *s, size_t maxlen) +{ + const wchar_t *ptr; + + for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) + ; + return ptr - s; +} +# endif +# endif +#endif + +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL +/* Determine the decimal-point character according to the current locale. */ +# ifndef decimal_point_char_defined +# define decimal_point_char_defined 1 +static char +decimal_point_char (void) +{ + const char *point; + /* Determine it in a multithread-safe way. We know nl_langinfo is + multithread-safe on glibc systems and MacOS X systems, but is not required + to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. + localeconv() is rarely multithread-safe. */ +# if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) + point = nl_langinfo (RADIXCHAR); +# elif 1 + char pointbuf[5]; + sprintf (pointbuf, "%#.0f", 1.0); + point = &pointbuf[1]; +# else + point = localeconv () -> decimal_point; +# endif + /* The decimal point is always a single byte: either '.' or ','. */ + return (point[0] != '\0' ? point[0] : '.'); +} +# endif +#endif + +#if NEED_PRINTF_INFINITE_DOUBLE && !NEED_PRINTF_DOUBLE && !defined IN_LIBINTL + +/* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ +static int +is_infinite_or_zero (double x) +{ + return isnand (x) || x + x == x; +} + +#endif + +#if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL + +/* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ +static int +is_infinite_or_zerol (long double x) +{ + return isnanl (x) || x + x == x; +} + +#endif + +#if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL + +/* Converting 'long double' to decimal without rare rounding bugs requires + real bignums. We use the naming conventions of GNU gmp, but vastly simpler + (and slower) algorithms. */ + +typedef unsigned int mp_limb_t; +# define GMP_LIMB_BITS 32 +typedef int mp_limb_verify[2 * (sizeof (mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS) - 1]; + +typedef unsigned long long mp_twolimb_t; +# define GMP_TWOLIMB_BITS 64 +typedef int mp_twolimb_verify[2 * (sizeof (mp_twolimb_t) * CHAR_BIT == GMP_TWOLIMB_BITS) - 1]; + +/* Representation of a bignum >= 0. */ +typedef struct +{ + size_t nlimbs; + mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ +} mpn_t; + +/* Compute the product of two bignums >= 0. + Return the allocated memory in case of success, NULL in case of memory + allocation failure. */ +static void * +multiply (mpn_t src1, mpn_t src2, mpn_t *dest) +{ + const mp_limb_t *p1; + const mp_limb_t *p2; + size_t len1; + size_t len2; + + if (src1.nlimbs <= src2.nlimbs) + { + len1 = src1.nlimbs; + p1 = src1.limbs; + len2 = src2.nlimbs; + p2 = src2.limbs; + } + else + { + len1 = src2.nlimbs; + p1 = src2.limbs; + len2 = src1.nlimbs; + p2 = src1.limbs; + } + /* Now 0 <= len1 <= len2. */ + if (len1 == 0) + { + /* src1 or src2 is zero. */ + dest->nlimbs = 0; + dest->limbs = (mp_limb_t *) malloc (1); + } + else + { + /* Here 1 <= len1 <= len2. */ + size_t dlen; + mp_limb_t *dp; + size_t k, i, j; + + dlen = len1 + len2; + dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); + if (dp == NULL) + return NULL; + for (k = len2; k > 0; ) + dp[--k] = 0; + for (i = 0; i < len1; i++) + { + mp_limb_t digit1 = p1[i]; + mp_twolimb_t carry = 0; + for (j = 0; j < len2; j++) + { + mp_limb_t digit2 = p2[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + carry += dp[i + j]; + dp[i + j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + dp[i + len2] = (mp_limb_t) carry; + } + /* Normalise. */ + while (dlen > 0 && dp[dlen - 1] == 0) + dlen--; + dest->nlimbs = dlen; + dest->limbs = dp; + } + return dest->limbs; +} + +/* Compute the quotient of a bignum a >= 0 and a bignum b > 0. + a is written as a = q * b + r with 0 <= r < b. q is the quotient, r + the remainder. + Finally, round-to-even is performed: If r > b/2 or if r = b/2 and q is odd, + q is incremented. + Return the allocated memory in case of success, NULL in case of memory + allocation failure. */ +static void * +divide (mpn_t a, mpn_t b, mpn_t *q) +{ + /* Algorithm: + First normalise a and b: a=[a[m-1],...,a[0]], b=[b[n-1],...,b[0]] + with m>=0 and n>0 (in base beta = 2^GMP_LIMB_BITS). + If m=n=1, perform a single-precision division: + r:=0, j:=m, + while j>0 do + {Here (q[m-1]*beta^(m-1)+...+q[j]*beta^j) * b[0] + r*beta^j = + = a[m-1]*beta^(m-1)+...+a[j]*beta^j und 0<=r=n>1, perform a multiple-precision division: + We have a/b < beta^(m-n+1). + s:=intDsize-1-(highest bit in b[n-1]), 0<=s=beta/2. + For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} + Compute q* : + q* := floor((r[j+n]*beta+r[j+n-1])/b[n-1]). + In case of overflow (q* >= beta) set q* := beta-1. + Compute c2 := ((r[j+n]*beta+r[j+n-1]) - q* * b[n-1])*beta + r[j+n-2] + and c3 := b[n-2] * q*. + {We have 0 <= c2 < 2*beta^2, even 0 <= c2 < beta^2 if no overflow + occurred. Furthermore 0 <= c3 < beta^2. + If there was overflow and + r[j+n]*beta+r[j+n-1] - q* * b[n-1] >= beta, i.e. c2 >= beta^2, + the next test can be skipped.} + While c3 > c2, {Here 0 <= c2 < c3 < beta^2} + Put q* := q* - 1, c2 := c2 + b[n-1]*beta, c3 := c3 - b[n-2]. + If q* > 0: + Put r := r - b * q* * beta^j. In detail: + [r[n+j],...,r[j]] := [r[n+j],...,r[j]] - q* * [b[n-1],...,b[0]]. + hence: u:=0, for i:=0 to n-1 do + u := u + q* * b[i], + r[j+i]:=r[j+i]-(u mod beta) (+ beta, if carry), + u:=u div beta (+ 1, if carry in subtraction) + r[n+j]:=r[n+j]-u. + {Since always u = (q* * [b[i-1],...,b[0]] div beta^i) + 1 + < q* + 1 <= beta, + the carry u does not overflow.} + If a negative carry occurs, put q* := q* - 1 + and [r[n+j],...,r[j]] := [r[n+j],...,r[j]] + [0,b[n-1],...,b[0]]. + Set q[j] := q*. + Normalise [q[m-n],..,q[0]]; this yields the quotient q. + Shift [r[n-1],...,r[0]] right by s bits and normalise; this yields the + rest r. + The room for q[j] can be allocated at the memory location of r[n+j]. + Finally, round-to-even: + Shift r left by 1 bit. + If r > b or if r = b and q[0] is odd, q := q+1. + */ + const mp_limb_t *a_ptr = a.limbs; + size_t a_len = a.nlimbs; + const mp_limb_t *b_ptr = b.limbs; + size_t b_len = b.nlimbs; + mp_limb_t *roomptr; + mp_limb_t *tmp_roomptr = NULL; + mp_limb_t *q_ptr; + size_t q_len; + mp_limb_t *r_ptr; + size_t r_len; + + /* Allocate room for a_len+2 digits. + (Need a_len+1 digits for the real division and 1 more digit for the + final rounding of q.) */ + roomptr = (mp_limb_t *) malloc ((a_len + 2) * sizeof (mp_limb_t)); + if (roomptr == NULL) + return NULL; + + /* Normalise a. */ + while (a_len > 0 && a_ptr[a_len - 1] == 0) + a_len--; + + /* Normalise b. */ + for (;;) + { + if (b_len == 0) + /* Division by zero. */ + abort (); + if (b_ptr[b_len - 1] == 0) + b_len--; + else + break; + } + + /* Here m = a_len >= 0 and n = b_len > 0. */ + + if (a_len < b_len) + { + /* m beta^(m-2) <= a/b < beta^m */ + r_ptr = roomptr; + q_ptr = roomptr + 1; + { + mp_limb_t den = b_ptr[0]; + mp_limb_t remainder = 0; + const mp_limb_t *sourceptr = a_ptr + a_len; + mp_limb_t *destptr = q_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; + *--destptr = num / den; + remainder = num % den; + } + /* Normalise and store r. */ + if (remainder > 0) + { + r_ptr[0] = remainder; + r_len = 1; + } + else + r_len = 0; + /* Normalise q. */ + q_len = a_len; + if (q_ptr[q_len - 1] == 0) + q_len--; + } + } + else + { + /* n>1: multiple precision division. + beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> + beta^(m-n-1) <= a/b < beta^(m-n+1). */ + /* Determine s. */ + size_t s; + { + mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ + s = 31; + if (msd >= 0x10000) + { + msd = msd >> 16; + s -= 16; + } + if (msd >= 0x100) + { + msd = msd >> 8; + s -= 8; + } + if (msd >= 0x10) + { + msd = msd >> 4; + s -= 4; + } + if (msd >= 0x4) + { + msd = msd >> 2; + s -= 2; + } + if (msd >= 0x2) + { + msd = msd >> 1; + s -= 1; + } + } + /* 0 <= s < GMP_LIMB_BITS. + Copy b, shifting it left by s bits. */ + if (s > 0) + { + tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); + if (tmp_roomptr == NULL) + { + free (roomptr); + return NULL; + } + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = tmp_roomptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + /* accu must be zero, since that was how s was determined. */ + if (accu != 0) + abort (); + } + b_ptr = tmp_roomptr; + } + /* Copy a, shifting it left by s bits, yields r. + Memory layout: + At the beginning: r = roomptr[0..a_len], + at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ + r_ptr = roomptr; + if (s == 0) + { + memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); + r_ptr[a_len] = 0; + } + else + { + const mp_limb_t *sourceptr = a_ptr; + mp_limb_t *destptr = r_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = a_len; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + *destptr++ = (mp_limb_t) accu; + } + q_ptr = roomptr + b_len; + q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ + { + size_t j = a_len - b_len; /* m-n */ + mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ + mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ + mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ + ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; + /* Division loop, traversed m-n+1 times. + j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ + for (;;) + { + mp_limb_t q_star; + mp_limb_t c1; + if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ + { + /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ + mp_twolimb_t num = + ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) + | r_ptr[j + b_len - 1]; + q_star = num / b_msd; + c1 = num % b_msd; + } + else + { + /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ + q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ + /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta + <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta + <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) + {<= beta !}. + If yes, jump directly to the subtraction loop. + (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta + <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ + if (r_ptr[j + b_len] > b_msd + || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) + /* r[j+n] >= b[n-1]+1 or + r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a + carry. */ + goto subtract; + } + /* q_star = q*, + c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by + b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 + this can happen only twice. */ + if (c3 > c2) + { + q_star = q_star - 1; /* q* := q* - 1 */ + if (c3 - c2 > b_msdd) + q_star = q_star - 1; /* q* := q* - 1 */ + } + } + if (q_star > 0) + subtract: + { + /* Subtract r := r - b * q* * beta^j. */ + mp_limb_t cr; + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_twolimb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + /* Here 0 <= carry <= q*. */ + carry = + carry + + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + + (mp_limb_t) ~(*destptr); + /* Here 0 <= carry <= beta*q* + beta-1. */ + *destptr++ = ~(mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; /* <= q* */ + } + cr = (mp_limb_t) carry; + } + /* Subtract cr from r_ptr[j + b_len], then forget about + r_ptr[j + b_len]. */ + if (cr > r_ptr[j + b_len]) + { + /* Subtraction gave a carry. */ + q_star = q_star - 1; /* q* := q* - 1 */ + /* Add b back. */ + { + const mp_limb_t *sourceptr = b_ptr; + mp_limb_t *destptr = r_ptr + j; + mp_limb_t carry = 0; + size_t count; + for (count = b_len; count > 0; count--) + { + mp_limb_t source1 = *sourceptr++; + mp_limb_t source2 = *destptr; + *destptr++ = source1 + source2 + carry; + carry = + (carry + ? source1 >= (mp_limb_t) ~source2 + : source1 > (mp_limb_t) ~source2); + } + } + /* Forget about the carry and about r[j+n]. */ + } + } + /* q* is determined. Store it as q[j]. */ + q_ptr[j] = q_star; + if (j == 0) + break; + j--; + } + } + r_len = b_len; + /* Normalise q. */ + if (q_ptr[q_len - 1] == 0) + q_len--; +# if 0 /* Not needed here, since we need r only to compare it with b/2, and + b is shifted left by s bits. */ + /* Shift r right by s bits. */ + if (s > 0) + { + mp_limb_t ptr = r_ptr + r_len; + mp_twolimb_t accu = 0; + size_t count; + for (count = r_len; count > 0; count--) + { + accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; + accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); + *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); + } + } +# endif + /* Normalise r. */ + while (r_len > 0 && r_ptr[r_len - 1] == 0) + r_len--; + } + /* Compare r << 1 with b. */ + if (r_len > b_len) + goto increment_q; + { + size_t i; + for (i = b_len;;) + { + mp_limb_t r_i = + (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) + | (i < r_len ? r_ptr[i] << 1 : 0); + mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); + if (r_i > b_i) + goto increment_q; + if (r_i < b_i) + goto keep_q; + if (i == 0) + break; + i--; + } + } + if (q_len > 0 && ((q_ptr[0] & 1) != 0)) + /* q is odd. */ + increment_q: + { + size_t i; + for (i = 0; i < q_len; i++) + if (++(q_ptr[i]) != 0) + goto keep_q; + q_ptr[q_len++] = 1; + } + keep_q: + if (tmp_roomptr != NULL) + free (tmp_roomptr); + q->limbs = q_ptr; + q->nlimbs = q_len; + return roomptr; +} + +/* Convert a bignum a >= 0, multiplied with 10^extra_zeroes, to decimal + representation. + Destroys the contents of a. + Return the allocated memory - containing the decimal digits in low-to-high + order, terminated with a NUL character - in case of success, NULL in case + of memory allocation failure. */ +static char * +convert_to_decimal (mpn_t a, size_t extra_zeroes) +{ + mp_limb_t *a_ptr = a.limbs; + size_t a_len = a.nlimbs; + /* 0.03345 is slightly larger than log(2)/(9*log(10)). */ + size_t c_len = 9 * ((size_t)(a_len * (GMP_LIMB_BITS * 0.03345f)) + 1); + char *c_ptr = (char *) malloc (xsum (c_len, extra_zeroes)); + if (c_ptr != NULL) + { + char *d_ptr = c_ptr; + for (; extra_zeroes > 0; extra_zeroes--) + *d_ptr++ = '0'; + while (a_len > 0) + { + /* Divide a by 10^9, in-place. */ + mp_limb_t remainder = 0; + mp_limb_t *ptr = a_ptr + a_len; + size_t count; + for (count = a_len; count > 0; count--) + { + mp_twolimb_t num = + ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; + *ptr = num / 1000000000; + remainder = num % 1000000000; + } + /* Store the remainder as 9 decimal digits. */ + for (count = 9; count > 0; count--) + { + *d_ptr++ = '0' + (remainder % 10); + remainder = remainder / 10; + } + /* Normalize a. */ + if (a_ptr[a_len - 1] == 0) + a_len--; + } + /* Remove leading zeroes. */ + while (d_ptr > c_ptr && d_ptr[-1] == '0') + d_ptr--; + /* But keep at least one zero. */ + if (d_ptr == c_ptr) + *d_ptr++ = '0'; + /* Terminate the string. */ + *d_ptr = '\0'; + } + return c_ptr; +} + +# if NEED_PRINTF_LONG_DOUBLE + +/* Assuming x is finite and >= 0: + write x as x = 2^e * m, where m is a bignum. + Return the allocated memory in case of success, NULL in case of memory + allocation failure. */ +static void * +decode_long_double (long double x, int *ep, mpn_t *mp) +{ + mpn_t m; + int exp; + long double y; + size_t i; + + /* Allocate memory for result. */ + m.nlimbs = (LDBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; + m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); + if (m.limbs == NULL) + return NULL; + /* Split into exponential part and mantissa. */ + y = frexpl (x, &exp); + if (!(y >= 0.0L && y < 1.0L)) + abort (); + /* x = 2^exp * y = 2^(exp - LDBL_MANT_BIT) * (y * LDBL_MANT_BIT), and the + latter is an integer. */ + /* Convert the mantissa (y * LDBL_MANT_BIT) to a sequence of limbs. + I'm not sure whether it's safe to cast a 'long double' value between + 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only + 'long double' values between 0 and 2^16 (to 'unsigned int' or 'int', + doesn't matter). */ +# if (LDBL_MANT_BIT % GMP_LIMB_BITS) != 0 +# if (LDBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 + { + mp_limb_t hi, lo; + y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % (GMP_LIMB_BITS / 2)); + hi = (int) y; + y -= hi; + if (!(y >= 0.0L && y < 1.0L)) + abort (); + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + lo = (int) y; + y -= lo; + if (!(y >= 0.0L && y < 1.0L)) + abort (); + m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; + } +# else + { + mp_limb_t d; + y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % GMP_LIMB_BITS); + d = (int) y; + y -= d; + if (!(y >= 0.0L && y < 1.0L)) + abort (); + m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; + } +# endif +# endif + for (i = LDBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) + { + mp_limb_t hi, lo; + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + hi = (int) y; + y -= hi; + if (!(y >= 0.0L && y < 1.0L)) + abort (); + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + lo = (int) y; + y -= lo; + if (!(y >= 0.0L && y < 1.0L)) + abort (); + m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; + } +#if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess + precision. */ + if (!(y == 0.0L)) + abort (); +#endif + /* Normalise. */ + while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) + m.nlimbs--; + *mp = m; + *ep = exp - LDBL_MANT_BIT; + return m.limbs; +} + +# endif + +# if NEED_PRINTF_DOUBLE + +/* Assuming x is finite and >= 0: + write x as x = 2^e * m, where m is a bignum. + Return the allocated memory in case of success, NULL in case of memory + allocation failure. */ +static void * +decode_double (double x, int *ep, mpn_t *mp) +{ + mpn_t m; + int exp; + double y; + size_t i; + + /* Allocate memory for result. */ + m.nlimbs = (DBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; + m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); + if (m.limbs == NULL) + return NULL; + /* Split into exponential part and mantissa. */ + y = frexp (x, &exp); + if (!(y >= 0.0 && y < 1.0)) + abort (); + /* x = 2^exp * y = 2^(exp - DBL_MANT_BIT) * (y * DBL_MANT_BIT), and the + latter is an integer. */ + /* Convert the mantissa (y * DBL_MANT_BIT) to a sequence of limbs. + I'm not sure whether it's safe to cast a 'double' value between + 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only + 'double' values between 0 and 2^16 (to 'unsigned int' or 'int', + doesn't matter). */ +# if (DBL_MANT_BIT % GMP_LIMB_BITS) != 0 +# if (DBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 + { + mp_limb_t hi, lo; + y *= (mp_limb_t) 1 << (DBL_MANT_BIT % (GMP_LIMB_BITS / 2)); + hi = (int) y; + y -= hi; + if (!(y >= 0.0 && y < 1.0)) + abort (); + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + lo = (int) y; + y -= lo; + if (!(y >= 0.0 && y < 1.0)) + abort (); + m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; + } +# else + { + mp_limb_t d; + y *= (mp_limb_t) 1 << (DBL_MANT_BIT % GMP_LIMB_BITS); + d = (int) y; + y -= d; + if (!(y >= 0.0 && y < 1.0)) + abort (); + m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; + } +# endif +# endif + for (i = DBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) + { + mp_limb_t hi, lo; + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + hi = (int) y; + y -= hi; + if (!(y >= 0.0 && y < 1.0)) + abort (); + y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); + lo = (int) y; + y -= lo; + if (!(y >= 0.0 && y < 1.0)) + abort (); + m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; + } + if (!(y == 0.0)) + abort (); + /* Normalise. */ + while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) + m.nlimbs--; + *mp = m; + *ep = exp - DBL_MANT_BIT; + return m.limbs; +} + +# endif + +/* Assuming x = 2^e * m is finite and >= 0, and n is an integer: + Returns the decimal representation of round (x * 10^n). + Return the allocated memory - containing the decimal digits in low-to-high + order, terminated with a NUL character - in case of success, NULL in case + of memory allocation failure. */ +static char * +scale10_round_decimal_decoded (int e, mpn_t m, void *memory, int n) +{ + int s; + size_t extra_zeroes; + unsigned int abs_n; + unsigned int abs_s; + mp_limb_t *pow5_ptr; + size_t pow5_len; + unsigned int s_limbs; + unsigned int s_bits; + mpn_t pow5; + mpn_t z; + void *z_memory; + char *digits; + + if (memory == NULL) + return NULL; + /* x = 2^e * m, hence + y = round (2^e * 10^n * m) = round (2^(e+n) * 5^n * m) + = round (2^s * 5^n * m). */ + s = e + n; + extra_zeroes = 0; + /* Factor out a common power of 10 if possible. */ + if (s > 0 && n > 0) + { + extra_zeroes = (s < n ? s : n); + s -= extra_zeroes; + n -= extra_zeroes; + } + /* Here y = round (2^s * 5^n * m) * 10^extra_zeroes. + Before converting to decimal, we need to compute + z = round (2^s * 5^n * m). */ + /* Compute 5^|n|, possibly shifted by |s| bits if n and s have the same + sign. 2.322 is slightly larger than log(5)/log(2). */ + abs_n = (n >= 0 ? n : -n); + abs_s = (s >= 0 ? s : -s); + pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 + + abs_s / GMP_LIMB_BITS + 1) + * sizeof (mp_limb_t)); + if (pow5_ptr == NULL) + { + free (memory); + return NULL; + } + /* Initialize with 1. */ + pow5_ptr[0] = 1; + pow5_len = 1; + /* Multiply with 5^|n|. */ + if (abs_n > 0) + { + static mp_limb_t const small_pow5[13 + 1] = + { + 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, + 48828125, 244140625, 1220703125 + }; + unsigned int n13; + for (n13 = 0; n13 <= abs_n; n13 += 13) + { + mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; + size_t j; + mp_twolimb_t carry = 0; + for (j = 0; j < pow5_len; j++) + { + mp_limb_t digit2 = pow5_ptr[j]; + carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; + pow5_ptr[j] = (mp_limb_t) carry; + carry = carry >> GMP_LIMB_BITS; + } + if (carry > 0) + pow5_ptr[pow5_len++] = (mp_limb_t) carry; + } + } + s_limbs = abs_s / GMP_LIMB_BITS; + s_bits = abs_s % GMP_LIMB_BITS; + if (n >= 0 ? s >= 0 : s <= 0) + { + /* Multiply with 2^|s|. */ + if (s_bits > 0) + { + mp_limb_t *ptr = pow5_ptr; + mp_twolimb_t accu = 0; + size_t count; + for (count = pow5_len; count > 0; count--) + { + accu += (mp_twolimb_t) *ptr << s_bits; + *ptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + { + *ptr = (mp_limb_t) accu; + pow5_len++; + } + } + if (s_limbs > 0) + { + size_t count; + for (count = pow5_len; count > 0;) + { + count--; + pow5_ptr[s_limbs + count] = pow5_ptr[count]; + } + for (count = s_limbs; count > 0;) + { + count--; + pow5_ptr[count] = 0; + } + pow5_len += s_limbs; + } + pow5.limbs = pow5_ptr; + pow5.nlimbs = pow5_len; + if (n >= 0) + { + /* Multiply m with pow5. No division needed. */ + z_memory = multiply (m, pow5, &z); + } + else + { + /* Divide m by pow5 and round. */ + z_memory = divide (m, pow5, &z); + } + } + else + { + pow5.limbs = pow5_ptr; + pow5.nlimbs = pow5_len; + if (n >= 0) + { + /* n >= 0, s < 0. + Multiply m with pow5, then divide by 2^|s|. */ + mpn_t numerator; + mpn_t denominator; + void *tmp_memory; + tmp_memory = multiply (m, pow5, &numerator); + if (tmp_memory == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + /* Construct 2^|s|. */ + { + mp_limb_t *ptr = pow5_ptr + pow5_len; + size_t i; + for (i = 0; i < s_limbs; i++) + ptr[i] = 0; + ptr[s_limbs] = (mp_limb_t) 1 << s_bits; + denominator.limbs = ptr; + denominator.nlimbs = s_limbs + 1; + } + z_memory = divide (numerator, denominator, &z); + free (tmp_memory); + } + else + { + /* n < 0, s > 0. + Multiply m with 2^s, then divide by pow5. */ + mpn_t numerator; + mp_limb_t *num_ptr; + num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) + * sizeof (mp_limb_t)); + if (num_ptr == NULL) + { + free (pow5_ptr); + free (memory); + return NULL; + } + { + mp_limb_t *destptr = num_ptr; + { + size_t i; + for (i = 0; i < s_limbs; i++) + *destptr++ = 0; + } + if (s_bits > 0) + { + const mp_limb_t *sourceptr = m.limbs; + mp_twolimb_t accu = 0; + size_t count; + for (count = m.nlimbs; count > 0; count--) + { + accu += (mp_twolimb_t) *sourceptr++ << s_bits; + *destptr++ = (mp_limb_t) accu; + accu = accu >> GMP_LIMB_BITS; + } + if (accu > 0) + *destptr++ = (mp_limb_t) accu; + } + else + { + const mp_limb_t *sourceptr = m.limbs; + size_t count; + for (count = m.nlimbs; count > 0; count--) + *destptr++ = *sourceptr++; + } + numerator.limbs = num_ptr; + numerator.nlimbs = destptr - num_ptr; + } + z_memory = divide (numerator, pow5, &z); + free (num_ptr); + } + } + free (pow5_ptr); + free (memory); + + /* Here y = round (x * 10^n) = z * 10^extra_zeroes. */ + + if (z_memory == NULL) + return NULL; + digits = convert_to_decimal (z, extra_zeroes); + free (z_memory); + return digits; +} + +# if NEED_PRINTF_LONG_DOUBLE + +/* Assuming x is finite and >= 0, and n is an integer: + Returns the decimal representation of round (x * 10^n). + Return the allocated memory - containing the decimal digits in low-to-high + order, terminated with a NUL character - in case of success, NULL in case + of memory allocation failure. */ +static char * +scale10_round_decimal_long_double (long double x, int n) +{ + int e IF_LINT(= 0); + mpn_t m; + void *memory = decode_long_double (x, &e, &m); + return scale10_round_decimal_decoded (e, m, memory, n); +} + +# endif + +# if NEED_PRINTF_DOUBLE + +/* Assuming x is finite and >= 0, and n is an integer: + Returns the decimal representation of round (x * 10^n). + Return the allocated memory - containing the decimal digits in low-to-high + order, terminated with a NUL character - in case of success, NULL in case + of memory allocation failure. */ +static char * +scale10_round_decimal_double (double x, int n) +{ + int e IF_LINT(= 0); + mpn_t m; + void *memory = decode_double (x, &e, &m); + return scale10_round_decimal_decoded (e, m, memory, n); +} + +# endif + +# if NEED_PRINTF_LONG_DOUBLE + +/* Assuming x is finite and > 0: + Return an approximation for n with 10^n <= x < 10^(n+1). + The approximation is usually the right n, but may be off by 1 sometimes. */ +static int +floorlog10l (long double x) +{ + int exp; + long double y; + double z; + double l; + + /* Split into exponential part and mantissa. */ + y = frexpl (x, &exp); + if (!(y >= 0.0L && y < 1.0L)) + abort (); + if (y == 0.0L) + return INT_MIN; + if (y < 0.5L) + { + while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) + { + y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } + if (y < (1.0L / (1 << 16))) + { + y *= 1.0L * (1 << 16); + exp -= 16; + } + if (y < (1.0L / (1 << 8))) + { + y *= 1.0L * (1 << 8); + exp -= 8; + } + if (y < (1.0L / (1 << 4))) + { + y *= 1.0L * (1 << 4); + exp -= 4; + } + if (y < (1.0L / (1 << 2))) + { + y *= 1.0L * (1 << 2); + exp -= 2; + } + if (y < (1.0L / (1 << 1))) + { + y *= 1.0L * (1 << 1); + exp -= 1; + } + } + if (!(y >= 0.5L && y < 1.0L)) + abort (); + /* Compute an approximation for l = log2(x) = exp + log2(y). */ + l = exp; + z = y; + if (z < 0.70710678118654752444) + { + z *= 1.4142135623730950488; + l -= 0.5; + } + if (z < 0.8408964152537145431) + { + z *= 1.1892071150027210667; + l -= 0.25; + } + if (z < 0.91700404320467123175) + { + z *= 1.0905077326652576592; + l -= 0.125; + } + if (z < 0.9576032806985736469) + { + z *= 1.0442737824274138403; + l -= 0.0625; + } + /* Now 0.95 <= z <= 1.01. */ + z = 1 - z; + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) + Four terms are enough to get an approximation with error < 10^-7. */ + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + /* Finally multiply with log(2)/log(10), yields an approximation for + log10(x). */ + l *= 0.30102999566398119523; + /* Round down to the next integer. */ + return (int) l + (l < 0 ? -1 : 0); +} + +# endif + +# if NEED_PRINTF_DOUBLE + +/* Assuming x is finite and > 0: + Return an approximation for n with 10^n <= x < 10^(n+1). + The approximation is usually the right n, but may be off by 1 sometimes. */ +static int +floorlog10 (double x) +{ + int exp; + double y; + double z; + double l; + + /* Split into exponential part and mantissa. */ + y = frexp (x, &exp); + if (!(y >= 0.0 && y < 1.0)) + abort (); + if (y == 0.0) + return INT_MIN; + if (y < 0.5) + { + while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) + { + y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); + exp -= GMP_LIMB_BITS; + } + if (y < (1.0 / (1 << 16))) + { + y *= 1.0 * (1 << 16); + exp -= 16; + } + if (y < (1.0 / (1 << 8))) + { + y *= 1.0 * (1 << 8); + exp -= 8; + } + if (y < (1.0 / (1 << 4))) + { + y *= 1.0 * (1 << 4); + exp -= 4; + } + if (y < (1.0 / (1 << 2))) + { + y *= 1.0 * (1 << 2); + exp -= 2; + } + if (y < (1.0 / (1 << 1))) + { + y *= 1.0 * (1 << 1); + exp -= 1; + } + } + if (!(y >= 0.5 && y < 1.0)) + abort (); + /* Compute an approximation for l = log2(x) = exp + log2(y). */ + l = exp; + z = y; + if (z < 0.70710678118654752444) + { + z *= 1.4142135623730950488; + l -= 0.5; + } + if (z < 0.8408964152537145431) + { + z *= 1.1892071150027210667; + l -= 0.25; + } + if (z < 0.91700404320467123175) + { + z *= 1.0905077326652576592; + l -= 0.125; + } + if (z < 0.9576032806985736469) + { + z *= 1.0442737824274138403; + l -= 0.0625; + } + /* Now 0.95 <= z <= 1.01. */ + z = 1 - z; + /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) + Four terms are enough to get an approximation with error < 10^-7. */ + l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); + /* Finally multiply with log(2)/log(10), yields an approximation for + log10(x). */ + l *= 0.30102999566398119523; + /* Round down to the next integer. */ + return (int) l + (l < 0 ? -1 : 0); +} + +# endif + +/* Tests whether a string of digits consists of exactly PRECISION zeroes and + a single '1' digit. */ +static int +is_borderline (const char *digits, size_t precision) +{ + for (; precision > 0; precision--, digits++) + if (*digits != '0') + return 0; + if (*digits != '1') + return 0; + digits++; + return *digits == '\0'; +} + +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 + +/* Use a different function name, to make it possible that the 'wchar_t' + parametrization and the 'char' parametrization get compiled in the same + translation unit. */ +# if WIDE_CHAR_VERSION +# define MAX_ROOM_NEEDED wmax_room_needed +# else +# define MAX_ROOM_NEEDED max_room_needed +# endif + +/* Returns the number of TCHAR_T units needed as temporary space for the result + of sprintf or SNPRINTF of a single conversion directive. */ +static inline size_t +MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, + arg_type type, int flags, size_t width, int has_precision, + size_t precision, int pad_ourselves) +{ + size_t tmp_length; + + switch (conversion) + { + case 'd': case 'i': case 'u': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.30103 /* binary -> decimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Multiply by 2, as an estimate for FLAG_GROUP. */ + tmp_length = xsum (tmp_length, tmp_length); + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'o': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.333334 /* binary -> octal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 1, to account for a leading sign. */ + tmp_length = xsum (tmp_length, 1); + break; + + case 'x': case 'X': +# if HAVE_LONG_LONG_INT + if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else +# endif + if (type == TYPE_LONGINT || type == TYPE_ULONGINT) + tmp_length = + (unsigned int) (sizeof (unsigned long) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (sizeof (unsigned int) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Add 2, to account for a leading sign or alternate form. */ + tmp_length = xsum (tmp_length, 2); + break; + + case 'f': case 'F': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + else + tmp_length = + (unsigned int) (DBL_MAX_EXP + * 0.30103 /* binary -> decimal */ + * 2 /* estimate for FLAG_GROUP */ + ) + + 1 /* turn floor into ceil */ + + 10; /* sign, decimal point etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'e': case 'E': case 'g': case 'G': + tmp_length = + 12; /* sign, decimal point, exponent etc. */ + tmp_length = xsum (tmp_length, precision); + break; + + case 'a': case 'A': + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) (LDBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) (DBL_DIG + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + break; + + case 'c': +# if HAVE_WINT_T && !WIDE_CHAR_VERSION + if (type == TYPE_WIDE_CHAR) + tmp_length = MB_CUR_MAX; + else +# endif + tmp_length = 1; + break; + + case 's': +# if HAVE_WCHAR_T + if (type == TYPE_WIDE_STRING) + { +# if WIDE_CHAR_VERSION + /* ISO C says about %ls in fwprintf: + "If the precision is not specified or is greater than the size + of the array, the array shall contain a null wide character." + So if there is a precision, we must not use wcslen. */ + const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; + + if (has_precision) + tmp_length = local_wcsnlen (arg, precision); + else + tmp_length = local_wcslen (arg); +# else + /* ISO C says about %ls in fprintf: + "If a precision is specified, no more than that many bytes are + written (including shift sequences, if any), and the array + shall contain a null wide character if, to equal the multibyte + character sequence length given by the precision, the function + would need to access a wide character one past the end of the + array." + So if there is a precision, we must not use wcslen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# endif + } + else +# endif + { +# if WIDE_CHAR_VERSION + /* ISO C says about %s in fwprintf: + "If the precision is not specified or is greater than the size + of the converted array, the converted array shall contain a + null wide character." + So if there is a precision, we must not use strlen. */ + /* This case has already been handled separately in VASNPRINTF. */ + abort (); +# else + /* ISO C says about %s in fprintf: + "If the precision is not specified or greater than the size of + the array, the array shall contain a null character." + So if there is a precision, we must not use strlen. */ + const char *arg = ap->arg[arg_index].a.a_string; + + if (has_precision) + tmp_length = local_strnlen (arg, precision); + else + tmp_length = strlen (arg); +# endif + } + break; + + case 'p': + tmp_length = + (unsigned int) (sizeof (void *) * CHAR_BIT + * 0.25 /* binary -> hexadecimal */ + ) + + 1 /* turn floor into ceil */ + + 2; /* account for leading 0x */ + break; + + default: + abort (); + } + + if (!pad_ourselves) + { +# if ENABLE_UNISTDIO + /* Padding considers the number of characters, therefore the number of + elements after padding may be + > max (tmp_length, width) + but is certainly + <= tmp_length + width. */ + tmp_length = xsum (tmp_length, width); +# else + /* Padding considers the number of elements, says POSIX. */ + if (tmp_length < width) + tmp_length = width; +# endif + } + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + return tmp_length; +} + +#endif + +DCHAR_T * +VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, + const FCHAR_T *format, va_list args) +{ + DIRECTIVES d; + arguments a; + + if (PRINTF_PARSE (format, &d, &a) < 0) + /* errno is already set. */ + return NULL; + +#define CLEANUP() \ + free (d.dir); \ + if (a.arg) \ + free (a.arg); + + if (PRINTF_FETCHARGS (args, &a) < 0) + { + CLEANUP (); + errno = EINVAL; + return NULL; + } + + { + size_t buf_neededlength; + TCHAR_T *buf; + TCHAR_T *buf_malloced; + const FCHAR_T *cp; + size_t i; + DIRECTIVE *dp; + /* Output string accumulator. */ + DCHAR_T *result; + size_t allocated; + size_t length; + + /* Allocate a small buffer that will hold a directive passed to + sprintf or snprintf. */ + buf_neededlength = + xsum4 (7, d.max_width_length, d.max_precision_length, 6); +#if HAVE_ALLOCA + if (buf_neededlength < 4000 / sizeof (TCHAR_T)) + { + buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); + buf_malloced = NULL; + } + else +#endif + { + size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); + if (size_overflow_p (buf_memsize)) + goto out_of_memory_1; + buf = (TCHAR_T *) malloc (buf_memsize); + if (buf == NULL) + goto out_of_memory_1; + buf_malloced = buf; + } + + if (resultbuf != NULL) + { + result = resultbuf; + allocated = *lengthp; + } + else + { + result = NULL; + allocated = 0; + } + length = 0; + /* Invariants: + result is either == resultbuf or == NULL or malloc-allocated. + If length > 0, then result != NULL. */ + + /* Ensures that allocated >= needed. Aborts through a jump to + out_of_memory if needed is SIZE_MAX or otherwise too big. */ +#define ENSURE_ALLOCATION(needed) \ + if ((needed) > allocated) \ + { \ + size_t memory_size; \ + DCHAR_T *memory; \ + \ + allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ + if ((needed) > allocated) \ + allocated = (needed); \ + memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ + if (size_overflow_p (memory_size)) \ + goto out_of_memory; \ + if (result == resultbuf || result == NULL) \ + memory = (DCHAR_T *) malloc (memory_size); \ + else \ + memory = (DCHAR_T *) realloc (result, memory_size); \ + if (memory == NULL) \ + goto out_of_memory; \ + if (result == resultbuf && length > 0) \ + DCHAR_CPY (memory, result, length); \ + result = memory; \ + } + + for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) + { + if (cp != dp->dir_start) + { + size_t n = dp->dir_start - cp; + size_t augmented_length = xsum (length, n); + + ENSURE_ALLOCATION (augmented_length); + /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we + need that the format string contains only ASCII characters + if FCHAR_T and DCHAR_T are not the same type. */ + if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) + { + DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); + length = augmented_length; + } + else + { + do + result[length++] = (unsigned char) *cp++; + while (--n > 0); + } + } + if (i == d.count) + break; + + /* Execute a single directive. */ + if (dp->conversion == '%') + { + size_t augmented_length; + + if (!(dp->arg_index == ARG_NONE)) + abort (); + augmented_length = xsum (length, 1); + ENSURE_ALLOCATION (augmented_length); + result[length] = '%'; + length = augmented_length; + } + else + { + if (!(dp->arg_index != ARG_NONE)) + abort (); + + if (dp->conversion == 'n') + { + switch (a.arg[dp->arg_index].type) + { + case TYPE_COUNT_SCHAR_POINTER: + *a.arg[dp->arg_index].a.a_count_schar_pointer = length; + break; + case TYPE_COUNT_SHORT_POINTER: + *a.arg[dp->arg_index].a.a_count_short_pointer = length; + break; + case TYPE_COUNT_INT_POINTER: + *a.arg[dp->arg_index].a.a_count_int_pointer = length; + break; + case TYPE_COUNT_LONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longint_pointer = length; + break; +#if HAVE_LONG_LONG_INT + case TYPE_COUNT_LONGLONGINT_POINTER: + *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; + break; +#endif + default: + abort (); + } + } +#if ENABLE_UNISTDIO + /* The unistdio extensions. */ + else if (dp->conversion == 'U') + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + switch (type) + { + case TYPE_U8_STRING: + { + const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; + const uint8_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u8_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u8_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_UINT8_T + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } +# else + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; +# if DCHAR_IS_TCHAR + /* Convert from UTF-8 to locale encoding. */ + converted = + u8_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); +# else + /* Convert from UTF-8 to UTF-16/UTF-32. */ + converted = + U8_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); +# endif + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U16_STRING: + { + const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; + const uint16_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u16_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u16_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_UINT16_T + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } +# else + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; +# if DCHAR_IS_TCHAR + /* Convert from UTF-16 to locale encoding. */ + converted = + u16_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); +# else + /* Convert from UTF-16 to UTF-8/UTF-32. */ + converted = + U16_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); +# endif + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + case TYPE_U32_STRING: + { + const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; + const uint32_t *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only PRECISION characters, from the left. */ + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of + characters. */ + arg_end = arg; + characters = 0; + for (;;) + { + int count = u32_strmblen (arg_end); + if (count == 0) + break; + if (count < 0) + { + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + u32_strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_UINT32_T + { + size_t n = arg_end - arg; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_CPY (result + length, arg, n); + length += n; + } +# else + { /* Convert. */ + DCHAR_T *converted = result + length; + size_t converted_len = allocated - length; +# if DCHAR_IS_TCHAR + /* Convert from UTF-32 to locale encoding. */ + converted = + u32_conv_to_encoding (locale_charset (), + iconveh_question_mark, + arg, arg_end - arg, NULL, + converted, &converted_len); +# else + /* Convert from UTF-32 to UTF-8/UTF-16. */ + converted = + U32_TO_DCHAR (arg, arg_end - arg, + converted, &converted_len); +# endif + if (converted == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + if (converted != result + length) + { + ENSURE_ALLOCATION (xsum (length, converted_len)); + DCHAR_CPY (result + length, converted, converted_len); + free (converted); + } + length += converted_len; + } +# endif + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } + break; + + default: + abort (); + } + } +#endif +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T + else if (dp->conversion == 's' +# if WIDE_CHAR_VERSION + && a.arg[dp->arg_index].type != TYPE_WIDE_STRING +# else + && a.arg[dp->arg_index].type == TYPE_WIDE_STRING +# endif + ) + { + /* The normal handling of the 's' directive below requires + allocating a temporary buffer. The determination of its + length (tmp_length), in the case when a precision is + specified, below requires a conversion between a char[] + string and a wchar_t[] wide string. It could be done, but + we have no guarantee that the implementation of sprintf will + use the exactly same algorithm. Without this guarantee, it + is possible to have buffer overrun bugs. In order to avoid + such bugs, we implement the entire processing of the 's' + directive ourselves. */ + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + +# if WIDE_CHAR_VERSION + /* %s in vasnwprintf. See the specification of fwprintf. */ + { + const char *arg = a.arg[dp->arg_index].a.a_string; + const char *arg_end; + size_t characters; + + if (has_precision) + { + /* Use only as many bytes as needed to produce PRECISION + wide characters, from the left. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (; precision > 0; precision--) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else if (has_width) + { + /* Use the entire string, and count the number of wide + characters. */ +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + int count; +# if HAVE_MBRTOWC + count = mbrlen (arg_end, MB_CUR_MAX, &state); +# else + count = mblen (arg_end, MB_CUR_MAX); +# endif + if (count == 0) + /* Found the terminating NUL. */ + break; + if (count < 0) + { + /* Invalid or incomplete multibyte character. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end += count; + characters++; + } + } + else + { + /* Use the entire string. */ + arg_end = arg + strlen (arg); + /* The number of characters doesn't matter. */ + characters = 0; + } + + if (has_width && width > characters + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + + if (has_precision || has_width) + { + /* We know the number of wide characters in advance. */ + size_t remaining; +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; remaining--) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + result[length++] = wc; + arg += count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_MBRTOWC + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + wchar_t wc; + int count; +# if HAVE_MBRTOWC + count = mbrtowc (&wc, arg, arg_end - arg, &state); +# else + count = mbtowc (&wc, arg, arg_end - arg); +# endif + if (count <= 0) + /* mbrtowc not consistent with mbrlen, or mbtowc + not consistent with mblen. */ + abort (); + ENSURE_ALLOCATION (xsum (length, 1)); + result[length++] = wc; + arg += count; + } + } + + if (has_width && width > characters + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - characters; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# else + /* %ls in vasnprintf. See the specification of fprintf. */ + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + const wchar_t *arg_end; + size_t characters; +# if !DCHAR_IS_TCHAR + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; + TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; +# endif + size_t w; + + if (has_precision) + { + /* Use only as many wide characters as needed to produce + at most PRECISION bytes, from the left. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + while (precision > 0) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + if (precision < count) + break; + arg_end++; + characters += count; + precision -= count; + } + } +# if DCHAR_IS_TCHAR + else if (has_width) +# else + else +# endif + { + /* Use the entire string, and count the number of + bytes. */ +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + arg_end = arg; + characters = 0; + for (;;) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg_end == 0) + /* Found the terminating null wide character. */ + break; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg_end, &state); +# else + count = wctomb (cbuf, *arg_end); +# endif + if (count < 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + arg_end++; + characters += count; + } + } +# if DCHAR_IS_TCHAR + else + { + /* Use the entire string. */ + arg_end = arg + local_wcslen (arg); + /* The number of bytes doesn't matter. */ + characters = 0; + } +# endif + +# if !DCHAR_IS_TCHAR + /* Convert the string into a piece of temporary memory. */ + tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); + if (tmpsrc == NULL) + goto out_of_memory; + { + TCHAR_T *tmpptr = tmpsrc; + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (tmpptr, cbuf, count); + tmpptr += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, characters, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + free (tmpsrc); + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + free (tmpsrc); +# endif + + if (has_width) + { +# if ENABLE_UNISTDIO + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, characters); +# else + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = characters; +# endif + } + else + /* w doesn't matter. */ + w = 0; + + if (has_width && width > w + && !(dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + +# if DCHAR_IS_TCHAR + if (has_precision || has_width) + { + /* We know the number of bytes in advance. */ + size_t remaining; +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + ENSURE_ALLOCATION (xsum (length, characters)); + for (remaining = characters; remaining > 0; ) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + /* Inconsistency. */ + abort (); + memcpy (result + length, cbuf, count); + length += count; + arg++; + remaining -= count; + } + if (!(arg == arg_end)) + abort (); + } + else + { +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + mbstate_t state; + memset (&state, '\0', sizeof (mbstate_t)); +# endif + while (arg < arg_end) + { + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ + int count; + + if (*arg == 0) + abort (); +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t + count = wcrtomb (cbuf, *arg, &state); +# else + count = wctomb (cbuf, *arg); +# endif + if (count <= 0) + { + /* Cannot convert. */ + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EILSEQ; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, count)); + memcpy (result + length, cbuf, count); + length += count; + arg++; + } + } +# else + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + length += tmpdst_len; +# endif + + if (has_width && width > w + && (dp->flags & FLAG_LEFT)) + { + size_t n = width - w; + ENSURE_ALLOCATION (xsum (length, n)); + DCHAR_SET (result + length, ' ', n); + length += n; + } + } +# endif + } +#endif +#if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL + else if ((dp->conversion == 'a' || dp->conversion == 'A') +# if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) + && (0 +# if NEED_PRINTF_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE +# endif +# if NEED_PRINTF_LONG_DOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE +# endif + ) +# endif + ) + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* Allocate a temporary buffer of sufficient size. */ + if (type == TYPE_LONGDOUBLE) + tmp_length = + (unsigned int) ((LDBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + else + tmp_length = + (unsigned int) ((DBL_DIG + 1) + * 0.831 /* decimal -> hexadecimal */ + ) + + 1; /* turn floor into ceil */ + if (tmp_length < precision) + tmp_length = precision; + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } + + pad_ptr = NULL; + p = tmp; + if (type == TYPE_LONGDOUBLE) + { +# if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE + long double arg = a.arg[dp->arg_index].a.a_longdouble; + + if (isnanl (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + long double mantissa; + + if (arg > 0.0L) + mantissa = printf_frexpl (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0L; + } + + if (has_precision + && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + long double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5L : tail > 0.5L) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0L; + } + if (tail != 0.0L) + for (q = precision; q > 0; q--) + tail *= 0.0625L; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0L || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0L) + { + mantissa *= 16.0L; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } +# endif + } + + END_LONG_DOUBLE_ROUNDING (); + } +# else + abort (); +# endif + } + else + { +# if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE + double arg = a.arg[dp->arg_index].a.a_double; + + if (isnand (arg)) + { + if (dp->conversion == 'A') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion == 'A') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { + int exponent; + double mantissa; + + if (arg > 0.0) + mantissa = printf_frexp (arg, &exponent); + else + { + exponent = 0; + mantissa = 0.0; + } + + if (has_precision + && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) + { + /* Round the mantissa. */ + double tail = mantissa; + size_t q; + + for (q = precision; ; q--) + { + int digit = (int) tail; + tail -= digit; + if (q == 0) + { + if (digit & 1 ? tail >= 0.5 : tail > 0.5) + tail = 1 - tail; + else + tail = - tail; + break; + } + tail *= 16.0; + } + if (tail != 0.0) + for (q = precision; q > 0; q--) + tail *= 0.0625; + mantissa += tail; + } + + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + { + int digit; + + digit = (int) mantissa; + mantissa -= digit; + *p++ = '0' + digit; + if ((flags & FLAG_ALT) + || mantissa > 0.0 || precision > 0) + { + *p++ = decimal_point_char (); + /* This loop terminates because we assume + that FLT_RADIX is a power of 2. */ + while (mantissa > 0.0) + { + mantissa *= 16.0; + digit = (int) mantissa; + mantissa -= digit; + *p++ = digit + + (digit < 10 + ? '0' + : dp->conversion - 10); + if (precision > 0) + precision--; + } + while (precision > 0) + { + *p++ = '0'; + precision--; + } + } + } + *p++ = dp->conversion - 'A' + 'P'; +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + { '%', '+', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } +# endif + } + } +# else + abort (); +# endif + } + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } +#endif +#if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL + else if ((dp->conversion == 'f' || dp->conversion == 'F' + || dp->conversion == 'e' || dp->conversion == 'E' + || dp->conversion == 'g' || dp->conversion == 'G' + || dp->conversion == 'a' || dp->conversion == 'A') + && (0 +# if NEED_PRINTF_DOUBLE + || a.arg[dp->arg_index].type == TYPE_DOUBLE +# elif NEED_PRINTF_INFINITE_DOUBLE + || (a.arg[dp->arg_index].type == TYPE_DOUBLE + /* The systems (mingw) which produce wrong output + for Inf, -Inf, and NaN also do so for -0.0. + Therefore we treat this case here as well. */ + && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) +# endif +# if NEED_PRINTF_LONG_DOUBLE + || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE +# elif NEED_PRINTF_INFINITE_LONG_DOUBLE + || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE + /* Some systems produce wrong output for Inf, + -Inf, and NaN. Some systems in this category + (IRIX 5.3) also do so for -0.0. Therefore we + treat this case here as well. */ + && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) +# endif + )) + { +# if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) + arg_type type = a.arg[dp->arg_index].type; +# endif + int flags = dp->flags; + int has_width; + size_t width; + int has_precision; + size_t precision; + size_t tmp_length; + DCHAR_T tmpbuf[700]; + DCHAR_T *tmp; + DCHAR_T *pad_ptr; + DCHAR_T *p; + + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } + + has_precision = 0; + precision = 0; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } + + /* POSIX specifies the default precision to be 6 for %f, %F, + %e, %E, but not for %g, %G. Implementations appear to use + the same default precision also for %g, %G. But for %a, %A, + the default precision is 0. */ + if (!has_precision) + if (!(dp->conversion == 'a' || dp->conversion == 'A')) + precision = 6; + + /* Allocate a temporary buffer of sufficient size. */ +# if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); +# elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE + tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); +# elif NEED_PRINTF_LONG_DOUBLE + tmp_length = LDBL_DIG + 1; +# elif NEED_PRINTF_DOUBLE + tmp_length = DBL_DIG + 1; +# else + tmp_length = 0; +# endif + if (tmp_length < precision) + tmp_length = precision; +# if NEED_PRINTF_LONG_DOUBLE +# if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE + if (type == TYPE_LONGDOUBLE) +# endif + if (dp->conversion == 'f' || dp->conversion == 'F') + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + if (!(isnanl (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10l (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } +# endif +# if NEED_PRINTF_DOUBLE +# if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE + if (type == TYPE_DOUBLE) +# endif + if (dp->conversion == 'f' || dp->conversion == 'F') + { + double arg = a.arg[dp->arg_index].a.a_double; + if (!(isnand (arg) || arg + arg == arg)) + { + /* arg is finite and nonzero. */ + int exponent = floorlog10 (arg < 0 ? -arg : arg); + if (exponent >= 0 && tmp_length < exponent + precision) + tmp_length = exponent + precision; + } + } +# endif + /* Account for sign, decimal point etc. */ + tmp_length = xsum (tmp_length, 12); + + if (tmp_length < width) + tmp_length = width; + + tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ + + if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (DCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } + + pad_ptr = NULL; + p = tmp; + +# if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE +# if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE + if (type == TYPE_LONGDOUBLE) +# endif + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + + if (isnanl (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + DECL_LONG_DOUBLE_ROUNDING + + BEGIN_LONG_DOUBLE_ROUNDING (); + + if (signbit (arg)) /* arg < 0.0L or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0L && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { +# if NEED_PRINTF_LONG_DOUBLE + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_long_double (arg, precision); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0L) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0L. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)precision - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + + *p++ = dp->conversion; /* 'e' or 'E' */ +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } +# endif + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0L) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0L. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10l (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + { + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_long_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + END_LONG_DOUBLE_ROUNDING (); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + { '%', '+', '.', '2', 'd', '\0' }; + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, "%+.2d", exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, "%+.2d", exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } +# endif + } + + free (digits); + } + } + else + abort (); +# else + /* arg is finite. */ + if (!(arg == 0.0L)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else if (dp->conversion == 'a' || dp->conversion == 'A') + { + *p++ = '0'; + *p++ = dp->conversion - 'A' + 'X'; + pad_ptr = p; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion - 'A' + 'P'; + *p++ = '+'; + *p++ = '0'; + } + else + abort (); +# endif + } + + END_LONG_DOUBLE_ROUNDING (); + } + } +# if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE + else +# endif +# endif +# if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE + { + double arg = a.arg[dp->arg_index].a.a_double; + + if (isnand (arg)) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; + } + else + { + *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; + } + } + else + { + int sign = 0; + + if (signbit (arg)) /* arg < 0.0 or negative zero */ + { + sign = -1; + arg = -arg; + } + + if (sign < 0) + *p++ = '-'; + else if (flags & FLAG_SHOWSIGN) + *p++ = '+'; + else if (flags & FLAG_SPACE) + *p++ = ' '; + + if (arg > 0.0 && arg + arg == arg) + { + if (dp->conversion >= 'A' && dp->conversion <= 'Z') + { + *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; + } + else + { + *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; + } + } + else + { +# if NEED_PRINTF_DOUBLE + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + char *digits; + size_t ndigits; + + digits = + scale10_round_decimal_double (arg, precision); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits > precision) + do + { + --ndigits; + *p++ = digits[ndigits]; + } + while (ndigits > precision); + else + *p++ = '0'; + /* Here ndigits <= precision. */ + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > ndigits; precision--) + *p++ = '0'; + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + int exponent; + + if (arg == 0.0) + { + exponent = 0; + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else + { + /* arg > 0.0. */ + int adjusted; + char *digits; + size_t ndigits; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)precision - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision + 1) + break; + if (ndigits < precision + || ndigits > precision + 2) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits == precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision+1. */ + if (is_borderline (digits, precision)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)precision - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision + 1) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision+1. */ + + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + while (ndigits > 0) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + + free (digits); + } + + *p++ = dp->conversion; /* 'e' or 'E' */ +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + { '%', '+', '.', '3', 'd', '\0' }; +# else + { '%', '+', '.', '2', 'd', '\0' }; +# endif + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + "%+.3d"; +# else + "%+.2d"; +# endif + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } +# endif + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + if (precision == 0) + precision = 1; + /* precision >= 1. */ + + if (arg == 0.0) + /* The exponent is 0, >= -4, < precision. + Use fixed-point notation. */ + { + size_t ndigits = precision; + /* Number of trailing zeroes that have to be + dropped. */ + size_t nzeroes = + (flags & FLAG_ALT ? 0 : precision - 1); + + --ndigits; + *p++ = '0'; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = '0'; + } + } + } + else + { + /* arg > 0.0. */ + int exponent; + int adjusted; + char *digits; + size_t ndigits; + size_t nzeroes; + + exponent = floorlog10 (arg); + adjusted = 0; + for (;;) + { + digits = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent); + if (digits == NULL) + goto out_of_memory; + ndigits = strlen (digits); + + if (ndigits == precision) + break; + if (ndigits < precision - 1 + || ndigits > precision + 1) + /* The exponent was not guessed + precisely enough. */ + abort (); + if (adjusted) + /* None of two values of exponent is + the right one. Prevent an endless + loop. */ + abort (); + free (digits); + if (ndigits < precision) + exponent -= 1; + else + exponent += 1; + adjusted = 1; + } + /* Here ndigits = precision. */ + if (is_borderline (digits, precision - 1)) + { + /* Maybe the exponent guess was too high + and a smaller exponent can be reached + by turning a 10...0 into 9...9x. */ + char *digits2 = + scale10_round_decimal_double (arg, + (int)(precision - 1) - exponent + 1); + if (digits2 == NULL) + { + free (digits); + goto out_of_memory; + } + if (strlen (digits2) == precision) + { + free (digits); + digits = digits2; + exponent -= 1; + } + else + free (digits2); + } + /* Here ndigits = precision. */ + + /* Determine the number of trailing zeroes + that have to be dropped. */ + nzeroes = 0; + if ((flags & FLAG_ALT) == 0) + while (nzeroes < ndigits + && digits[nzeroes] == '0') + nzeroes++; + + /* The exponent is now determined. */ + if (exponent >= -4 + && exponent < (long)precision) + { + /* Fixed-point notation: + max(exponent,0)+1 digits, then the + decimal point, then the remaining + digits without trailing zeroes. */ + if (exponent >= 0) + { + size_t count = exponent + 1; + /* Note: count <= precision = ndigits. */ + for (; count > 0; count--) + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + size_t count = -exponent - 1; + *p++ = '0'; + *p++ = decimal_point_char (); + for (; count > 0; count--) + *p++ = '0'; + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + } + else + { + /* Exponential notation. */ + *p++ = digits[--ndigits]; + if ((flags & FLAG_ALT) || ndigits > nzeroes) + { + *p++ = decimal_point_char (); + while (ndigits > nzeroes) + { + --ndigits; + *p++ = digits[ndigits]; + } + } + *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ +# if WIDE_CHAR_VERSION + { + static const wchar_t decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + { '%', '+', '.', '3', 'd', '\0' }; +# else + { '%', '+', '.', '2', 'd', '\0' }; +# endif + SNPRINTF (p, 6 + 1, decimal_format, exponent); + } + while (*p != '\0') + p++; +# else + { + static const char decimal_format[] = + /* Produce the same number of exponent digits + as the native printf implementation. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + "%+.3d"; +# else + "%+.2d"; +# endif + if (sizeof (DCHAR_T) == 1) + { + sprintf ((char *) p, decimal_format, exponent); + while (*p != '\0') + p++; + } + else + { + char expbuf[6 + 1]; + const char *ep; + sprintf (expbuf, decimal_format, exponent); + for (ep = expbuf; (*p = *ep) != '\0'; ep++) + p++; + } + } +# endif + } + + free (digits); + } + } + else + abort (); +# else + /* arg is finite. */ + if (!(arg == 0.0)) + abort (); + + pad_ptr = p; + + if (dp->conversion == 'f' || dp->conversion == 'F') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + } + else if (dp->conversion == 'e' || dp->conversion == 'E') + { + *p++ = '0'; + if ((flags & FLAG_ALT) || precision > 0) + { + *p++ = decimal_point_char (); + for (; precision > 0; precision--) + *p++ = '0'; + } + *p++ = dp->conversion; /* 'e' or 'E' */ + *p++ = '+'; + /* Produce the same number of exponent digits as + the native printf implementation. */ +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + *p++ = '0'; +# endif + *p++ = '0'; + *p++ = '0'; + } + else if (dp->conversion == 'g' || dp->conversion == 'G') + { + *p++ = '0'; + if (flags & FLAG_ALT) + { + size_t ndigits = + (precision > 0 ? precision - 1 : 0); + *p++ = decimal_point_char (); + for (; ndigits > 0; --ndigits) + *p++ = '0'; + } + } + else + abort (); +# endif + } + } + } +# endif + + /* The generated string now extends from tmp to p, with the + zero padding insertion point being at pad_ptr. */ + if (has_width && p - tmp < width) + { + size_t pad = width - (p - tmp); + DCHAR_T *end = p + pad; + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > tmp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + + p = end; + } + + { + size_t count = p - tmp; + + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); + + /* Make room for the result. */ + if (count >= allocated - length) + { + size_t n = xsum (length, count); + + ENSURE_ALLOCATION (n); + } + + /* Append the result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); + if (tmp != tmpbuf) + free (tmp); + length += count; + } + } +#endif + else + { + arg_type type = a.arg[dp->arg_index].type; + int flags = dp->flags; +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int has_width; + size_t width; +#endif +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + int has_precision; + size_t precision; +#endif +#if NEED_PRINTF_UNBOUNDED_PRECISION + int prec_ourselves; +#else +# define prec_ourselves 0 +#endif +#if NEED_PRINTF_FLAG_LEFTADJUST +# define pad_ourselves 1 +#elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + int pad_ourselves; +#else +# define pad_ourselves 0 +#endif + TCHAR_T *fbp; + unsigned int prefix_count; + int prefixes[2] IF_LINT (= { 0 }); +#if !USE_SNPRINTF + size_t tmp_length; + TCHAR_T tmpbuf[700]; + TCHAR_T *tmp; +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + has_width = 0; + width = 0; + if (dp->width_start != dp->width_end) + { + if (dp->width_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->width_arg_index].a.a_int; + if (arg < 0) + { + /* "A negative field width is taken as a '-' flag + followed by a positive field width." */ + flags |= FLAG_LEFT; + width = (unsigned int) (-arg); + } + else + width = arg; + } + else + { + const FCHAR_T *digitp = dp->width_start; + + do + width = xsum (xtimes (width, 10), *digitp++ - '0'); + while (digitp != dp->width_end); + } + has_width = 1; + } +#endif + +#if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION + has_precision = 0; + precision = 6; + if (dp->precision_start != dp->precision_end) + { + if (dp->precision_arg_index != ARG_NONE) + { + int arg; + + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + arg = a.arg[dp->precision_arg_index].a.a_int; + /* "A negative precision is taken as if the precision + were omitted." */ + if (arg >= 0) + { + precision = arg; + has_precision = 1; + } + } + else + { + const FCHAR_T *digitp = dp->precision_start + 1; + + precision = 0; + while (digitp != dp->precision_end) + precision = xsum (xtimes (precision, 10), *digitp++ - '0'); + has_precision = 1; + } + } +#endif + + /* Decide whether to handle the precision ourselves. */ +#if NEED_PRINTF_UNBOUNDED_PRECISION + switch (dp->conversion) + { + case 'd': case 'i': case 'u': + case 'o': + case 'x': case 'X': case 'p': + prec_ourselves = has_precision && (precision > 0); + break; + default: + prec_ourselves = 0; + break; + } +#endif + + /* Decide whether to perform the padding ourselves. */ +#if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) + switch (dp->conversion) + { +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO + /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need + to perform the padding after this conversion. Functions + with unistdio extensions perform the padding based on + character count rather than element count. */ + case 'c': case 's': +# endif +# if NEED_PRINTF_FLAG_ZERO + case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': + case 'a': case 'A': +# endif + pad_ourselves = 1; + break; + default: + pad_ourselves = prec_ourselves; + break; + } +#endif + +#if !USE_SNPRINTF + /* Allocate a temporary buffer of sufficient size for calling + sprintf. */ + tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, + flags, width, has_precision, precision, + pad_ourselves); + + if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) + tmp = tmpbuf; + else + { + size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); + + if (size_overflow_p (tmp_memsize)) + /* Overflow, would lead to out of memory. */ + goto out_of_memory; + tmp = (TCHAR_T *) malloc (tmp_memsize); + if (tmp == NULL) + /* Out of memory. */ + goto out_of_memory; + } +#endif + + /* Construct the format string for calling snprintf or + sprintf. */ + fbp = buf; + *fbp++ = '%'; +#if NEED_PRINTF_FLAG_GROUPING + /* The underlying implementation doesn't support the ' flag. + Produce no grouping characters in this case; this is + acceptable because the grouping is locale dependent. */ +#else + if (flags & FLAG_GROUP) + *fbp++ = '\''; +#endif + if (flags & FLAG_LEFT) + *fbp++ = '-'; + if (flags & FLAG_SHOWSIGN) + *fbp++ = '+'; + if (flags & FLAG_SPACE) + *fbp++ = ' '; + if (flags & FLAG_ALT) + *fbp++ = '#'; + if (!pad_ourselves) + { + if (flags & FLAG_ZERO) + *fbp++ = '0'; + if (dp->width_start != dp->width_end) + { + size_t n = dp->width_end - dp->width_start; + /* The width specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->width_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } + if (!prec_ourselves) + { + if (dp->precision_start != dp->precision_end) + { + size_t n = dp->precision_end - dp->precision_start; + /* The precision specification is known to consist only + of standard ASCII characters. */ + if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) + { + memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); + fbp += n; + } + else + { + const FCHAR_T *mp = dp->precision_start; + do + *fbp++ = (unsigned char) *mp++; + while (--n > 0); + } + } + } + + switch (type) + { +#if HAVE_LONG_LONG_INT + case TYPE_LONGLONGINT: + case TYPE_ULONGLONGINT: +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + *fbp++ = 'I'; + *fbp++ = '6'; + *fbp++ = '4'; + break; +# else + *fbp++ = 'l'; + /*FALLTHROUGH*/ +# endif +#endif + case TYPE_LONGINT: + case TYPE_ULONGINT: +#if HAVE_WINT_T + case TYPE_WIDE_CHAR: +#endif +#if HAVE_WCHAR_T + case TYPE_WIDE_STRING: +#endif + *fbp++ = 'l'; + break; + case TYPE_LONGDOUBLE: + *fbp++ = 'L'; + break; + default: + break; + } +#if NEED_PRINTF_DIRECTIVE_F + if (dp->conversion == 'F') + *fbp = 'f'; + else +#endif + *fbp = dp->conversion; +#if USE_SNPRINTF +# if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0'; +# else + /* On glibc2 systems from glibc >= 2.3 - probably also older + ones - we know that snprintf's returns value conforms to + ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. + Therefore we can avoid using %n in this situation. + On glibc2 systems from 2004-10-18 or newer, the use of %n + in format strings in writable memory may crash the program + (if compiled with _FORTIFY_SOURCE=2), so we should avoid it + in this situation. */ + /* On native Win32 systems (such as mingw), we can avoid using + %n because: + - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, + snprintf does not write more than the specified number + of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes + '4', '5', '6' into buf, not '4', '5', '\0'.) + - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf + allows us to recognize the case of an insufficient + buffer size: it returns -1 in this case. + On native Win32 systems (such as mingw) where the OS is + Windows Vista, the use of %n in format strings by default + crashes the program. See + and + + So we should avoid %n in this situation. */ + fbp[1] = '\0'; +# endif +#else + fbp[1] = '\0'; +#endif + + /* Construct the arguments for calling snprintf or sprintf. */ + prefix_count = 0; + if (!pad_ourselves && dp->width_arg_index != ARG_NONE) + { + if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; + } + if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) + { + if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) + abort (); + prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; + } + +#if USE_SNPRINTF + /* The SNPRINTF result is appended after result[0..length]. + The latter is an array of DCHAR_T; SNPRINTF appends an + array of TCHAR_T to it. This is possible because + sizeof (TCHAR_T) divides sizeof (DCHAR_T) and + alignof (TCHAR_T) <= alignof (DCHAR_T). */ +# define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) + /* Ensure that maxlen below will be >= 2. Needed on BeOS, + where an snprintf() with maxlen==1 acts like sprintf(). */ + ENSURE_ALLOCATION (xsum (length, + (2 + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR)); + /* Prepare checking whether snprintf returns the count + via %n. */ + *(TCHAR_T *) (result + length) = '\0'; +#endif + + for (;;) + { + int count = -1; + +#if USE_SNPRINTF + int retcount = 0; + size_t maxlen = allocated - length; + /* SNPRINTF can fail if its second argument is + > INT_MAX. */ + if (maxlen > INT_MAX / TCHARS_PER_DCHAR) + maxlen = INT_MAX / TCHARS_PER_DCHAR; + maxlen = maxlen * TCHARS_PER_DCHAR; +# define SNPRINTF_BUF(arg) \ + switch (prefix_count) \ + { \ + case 0: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + arg, &count); \ + break; \ + case 1: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], arg, &count); \ + break; \ + case 2: \ + retcount = SNPRINTF ((TCHAR_T *) (result + length), \ + maxlen, buf, \ + prefixes[0], prefixes[1], arg, \ + &count); \ + break; \ + default: \ + abort (); \ + } +#else +# define SNPRINTF_BUF(arg) \ + switch (prefix_count) \ + { \ + case 0: \ + count = sprintf (tmp, buf, arg); \ + break; \ + case 1: \ + count = sprintf (tmp, buf, prefixes[0], arg); \ + break; \ + case 2: \ + count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ + arg); \ + break; \ + default: \ + abort (); \ + } +#endif + + errno = 0; + switch (type) + { + case TYPE_SCHAR: + { + int arg = a.arg[dp->arg_index].a.a_schar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UCHAR: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uchar; + SNPRINTF_BUF (arg); + } + break; + case TYPE_SHORT: + { + int arg = a.arg[dp->arg_index].a.a_short; + SNPRINTF_BUF (arg); + } + break; + case TYPE_USHORT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_ushort; + SNPRINTF_BUF (arg); + } + break; + case TYPE_INT: + { + int arg = a.arg[dp->arg_index].a.a_int; + SNPRINTF_BUF (arg); + } + break; + case TYPE_UINT: + { + unsigned int arg = a.arg[dp->arg_index].a.a_uint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGINT: + { + long int arg = a.arg[dp->arg_index].a.a_longint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGINT: + { + unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; + SNPRINTF_BUF (arg); + } + break; +#if HAVE_LONG_LONG_INT + case TYPE_LONGLONGINT: + { + long long int arg = a.arg[dp->arg_index].a.a_longlongint; + SNPRINTF_BUF (arg); + } + break; + case TYPE_ULONGLONGINT: + { + unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_DOUBLE: + { + double arg = a.arg[dp->arg_index].a.a_double; + SNPRINTF_BUF (arg); + } + break; + case TYPE_LONGDOUBLE: + { + long double arg = a.arg[dp->arg_index].a.a_longdouble; + SNPRINTF_BUF (arg); + } + break; + case TYPE_CHAR: + { + int arg = a.arg[dp->arg_index].a.a_char; + SNPRINTF_BUF (arg); + } + break; +#if HAVE_WINT_T + case TYPE_WIDE_CHAR: + { + wint_t arg = a.arg[dp->arg_index].a.a_wide_char; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_STRING: + { + const char *arg = a.arg[dp->arg_index].a.a_string; + SNPRINTF_BUF (arg); + } + break; +#if HAVE_WCHAR_T + case TYPE_WIDE_STRING: + { + const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; + SNPRINTF_BUF (arg); + } + break; +#endif + case TYPE_POINTER: + { + void *arg = a.arg[dp->arg_index].a.a_pointer; + SNPRINTF_BUF (arg); + } + break; + default: + abort (); + } + +#if USE_SNPRINTF + /* Portability: Not all implementations of snprintf() + are ISO C 99 compliant. Determine the number of + bytes that snprintf() has produced or would have + produced. */ + if (count >= 0) + { + /* Verify that snprintf() has NUL-terminated its + result. */ + if (count < maxlen + && ((TCHAR_T *) (result + length)) [count] != '\0') + abort (); + /* Portability hack. */ + if (retcount > count) + count = retcount; + } + else + { + /* snprintf() doesn't understand the '%n' + directive. */ + if (fbp[1] != '\0') + { + /* Don't use the '%n' directive; instead, look + at the snprintf() return value. */ + fbp[1] = '\0'; + continue; + } + else + { + /* Look at the snprintf() return value. */ + if (retcount < 0) + { +# if !HAVE_SNPRINTF_RETVAL_C99 + /* HP-UX 10.20 snprintf() is doubly deficient: + It doesn't understand the '%n' directive, + *and* it returns -1 (rather than the length + that would have been required) when the + buffer is too small. + But a failure at this point can also come + from other reasons than a too small buffer, + such as an invalid wide string argument to + the %ls directive, or possibly an invalid + floating-point argument. */ + size_t tmp_length = + MAX_ROOM_NEEDED (&a, dp->arg_index, + dp->conversion, type, flags, + width, has_precision, + precision, pad_ourselves); + + if (maxlen < tmp_length) + { + /* Make more room. But try to do through + this reallocation only once. */ + size_t bigger_need = + xsum (length, + xsum (tmp_length, + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + /* And always grow proportionally. + (There may be several arguments, each + needing a little more room than the + previous one.) */ + size_t bigger_need2 = + xsum (xtimes (allocated, 2), 12); + if (bigger_need < bigger_need2) + bigger_need = bigger_need2; + ENSURE_ALLOCATION (bigger_need); + continue; + } +# endif + } + else + count = retcount; + } + } +#endif + + /* Attempt to handle failure. */ + if (count < 0) + { + /* SNPRINTF or sprintf failed. Save and use the errno + that it has set, if any. */ + int saved_errno = errno; + + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = + (saved_errno != 0 + ? saved_errno + : (dp->conversion == 'c' || dp->conversion == 's' + ? EILSEQ + : EINVAL)); + return NULL; + } + +#if USE_SNPRINTF + /* Handle overflow of the allocated buffer. + If such an overflow occurs, a C99 compliant snprintf() + returns a count >= maxlen. However, a non-compliant + snprintf() function returns only count = maxlen - 1. To + cover both cases, test whether count >= maxlen - 1. */ + if ((unsigned int) count + 1 >= maxlen) + { + /* If maxlen already has attained its allowed maximum, + allocating more memory will not increase maxlen. + Instead of looping, bail out. */ + if (maxlen == INT_MAX / TCHARS_PER_DCHAR) + goto overflow; + else + { + /* Need at least (count + 1) * sizeof (TCHAR_T) + bytes. (The +1 is for the trailing NUL.) + But ask for (count + 2) * sizeof (TCHAR_T) + bytes, so that in the next round, we likely get + maxlen > (unsigned int) count + 1 + and so we don't get here again. + And allocate proportionally, to avoid looping + eternally if snprintf() reports a too small + count. */ + size_t n = + xmax (xsum (length, + ((unsigned int) count + 2 + + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR), + xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + continue; + } + } +#endif + +#if NEED_PRINTF_UNBOUNDED_PRECISION + if (prec_ourselves) + { + /* Handle the precision. */ + TCHAR_T *prec_ptr = +# if USE_SNPRINTF + (TCHAR_T *) (result + length); +# else + tmp; +# endif + size_t prefix_count; + size_t move; + + prefix_count = 0; + /* Put the additional zeroes after the sign. */ + if (count >= 1 + && (*prec_ptr == '-' || *prec_ptr == '+' + || *prec_ptr == ' ')) + prefix_count = 1; + /* Put the additional zeroes after the 0x prefix if + (flags & FLAG_ALT) || (dp->conversion == 'p'). */ + else if (count >= 2 + && prec_ptr[0] == '0' + && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) + prefix_count = 2; + + move = count - prefix_count; + if (precision > move) + { + /* Insert zeroes. */ + size_t insert = precision - move; + TCHAR_T *prec_end; + +# if USE_SNPRINTF + size_t n = + xsum (length, + (count + insert + TCHARS_PER_DCHAR - 1) + / TCHARS_PER_DCHAR); + length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + ENSURE_ALLOCATION (n); + length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; + prec_ptr = (TCHAR_T *) (result + length); +# endif + + prec_end = prec_ptr + count; + prec_ptr += prefix_count; + + while (prec_end > prec_ptr) + { + prec_end--; + prec_end[insert] = prec_end[0]; + } + + prec_end += insert; + do + *--prec_end = '0'; + while (prec_end > prec_ptr); + + count += insert; + } + } +#endif + +#if !USE_SNPRINTF + if (count >= tmp_length) + /* tmp_length was incorrectly calculated - fix the + code above! */ + abort (); +#endif + +#if !DCHAR_IS_TCHAR + /* Convert from TCHAR_T[] to DCHAR_T[]. */ + if (dp->conversion == 'c' || dp->conversion == 's') + { + /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING + TYPE_WIDE_STRING. + The result string is not certainly ASCII. */ + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t tmpdst_len; + /* This code assumes that TCHAR_T is 'char'. */ + typedef int TCHAR_T_verify + [2 * (sizeof (TCHAR_T) == 1) - 1]; +# if USE_SNPRINTF + tmpsrc = (TCHAR_T *) (result + length); +# else + tmpsrc = tmp; +# endif + tmpdst = + DCHAR_CONV_FROM_ENCODING (locale_charset (), + iconveh_question_mark, + tmpsrc, count, + NULL, + NULL, &tmpdst_len); + if (tmpdst == NULL) + { + int saved_errno = errno; + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = saved_errno; + return NULL; + } + ENSURE_ALLOCATION (xsum (length, tmpdst_len)); + DCHAR_CPY (result + length, tmpdst, tmpdst_len); + free (tmpdst); + count = tmpdst_len; + } + else + { + /* The result string is ASCII. + Simple 1:1 conversion. */ +# if USE_SNPRINTF + /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a + no-op conversion, in-place on the array starting + at (result + length). */ + if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) +# endif + { + const TCHAR_T *tmpsrc; + DCHAR_T *tmpdst; + size_t n; + +# if USE_SNPRINTF + if (result == resultbuf) + { + tmpsrc = (TCHAR_T *) (result + length); + /* ENSURE_ALLOCATION will not move tmpsrc + (because it's part of resultbuf). */ + ENSURE_ALLOCATION (xsum (length, count)); + } + else + { + /* ENSURE_ALLOCATION will move the array + (because it uses realloc(). */ + ENSURE_ALLOCATION (xsum (length, count)); + tmpsrc = (TCHAR_T *) (result + length); + } +# else + tmpsrc = tmp; + ENSURE_ALLOCATION (xsum (length, count)); +# endif + tmpdst = result + length; + /* Copy backwards, because of overlapping. */ + tmpsrc += count; + tmpdst += count; + for (n = count; n > 0; n--) + *--tmpdst = (unsigned char) *--tmpsrc; + } + } +#endif + +#if DCHAR_IS_TCHAR && !USE_SNPRINTF + /* Make room for the result. */ + if (count > allocated - length) + { + /* Need at least count elements. But allocate + proportionally. */ + size_t n = + xmax (xsum (length, count), xtimes (allocated, 2)); + + ENSURE_ALLOCATION (n); + } +#endif + + /* Here count <= allocated - length. */ + + /* Perform padding. */ +#if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION + if (pad_ourselves && has_width) + { + size_t w; +# if ENABLE_UNISTDIO + /* Outside POSIX, it's preferrable to compare the width + against the number of _characters_ of the converted + value. */ + w = DCHAR_MBSNLEN (result + length, count); +# else + /* The width is compared against the number of _bytes_ + of the converted value, says POSIX. */ + w = count; +# endif + if (w < width) + { + size_t pad = width - w; + + /* Make room for the result. */ + if (xsum (count, pad) > allocated - length) + { + /* Need at least count + pad elements. But + allocate proportionally. */ + size_t n = + xmax (xsum3 (length, count, pad), + xtimes (allocated, 2)); + +# if USE_SNPRINTF + length += count; + ENSURE_ALLOCATION (n); + length -= count; +# else + ENSURE_ALLOCATION (n); +# endif + } + /* Here count + pad <= allocated - length. */ + + { +# if !DCHAR_IS_TCHAR || USE_SNPRINTF + DCHAR_T * const rp = result + length; +# else + DCHAR_T * const rp = tmp; +# endif + DCHAR_T *p = rp + count; + DCHAR_T *end = p + pad; + DCHAR_T *pad_ptr; +# if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO + if (dp->conversion == 'c' + || dp->conversion == 's') + /* No zero-padding for string directives. */ + pad_ptr = NULL; + else +# endif + { + pad_ptr = (*rp == '-' ? rp + 1 : rp); + /* No zero-padding of "inf" and "nan". */ + if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') + || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) + pad_ptr = NULL; + } + /* The generated string now extends from rp to p, + with the zero padding insertion point being at + pad_ptr. */ + + count = count + pad; /* = end - rp */ + + if (flags & FLAG_LEFT) + { + /* Pad with spaces on the right. */ + for (; pad > 0; pad--) + *p++ = ' '; + } + else if ((flags & FLAG_ZERO) && pad_ptr != NULL) + { + /* Pad with zeroes. */ + DCHAR_T *q = end; + + while (p > pad_ptr) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = '0'; + } + else + { + /* Pad with spaces on the left. */ + DCHAR_T *q = end; + + while (p > rp) + *--q = *--p; + for (; pad > 0; pad--) + *p++ = ' '; + } + } + } + } +#endif + + /* Here still count <= allocated - length. */ + +#if !DCHAR_IS_TCHAR || USE_SNPRINTF + /* The snprintf() result did fit. */ +#else + /* Append the sprintf() result. */ + memcpy (result + length, tmp, count * sizeof (DCHAR_T)); +#endif +#if !USE_SNPRINTF + if (tmp != tmpbuf) + free (tmp); +#endif + +#if NEED_PRINTF_DIRECTIVE_F + if (dp->conversion == 'F') + { + /* Convert the %f result to upper case for %F. */ + DCHAR_T *rp = result + length; + size_t rc; + for (rc = count; rc > 0; rc--, rp++) + if (*rp >= 'a' && *rp <= 'z') + *rp = *rp - 'a' + 'A'; + } +#endif + + length += count; + break; + } +#undef pad_ourselves +#undef prec_ourselves + } + } + } + + /* Add the final NUL. */ + ENSURE_ALLOCATION (xsum (length, 1)); + result[length] = '\0'; + + if (result != resultbuf && length + 1 < allocated) + { + /* Shrink the allocated memory if possible. */ + DCHAR_T *memory; + + memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); + if (memory != NULL) + result = memory; + } + + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + *lengthp = length; + /* Note that we can produce a big string of a length > INT_MAX. POSIX + says that snprintf() fails with errno = EOVERFLOW in this case, but + that's only because snprintf() returns an 'int'. This function does + not have this limitation. */ + return result; + +#if USE_SNPRINTF + overflow: + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + CLEANUP (); + errno = EOVERFLOW; + return NULL; +#endif + + out_of_memory: + if (!(result == resultbuf || result == NULL)) + free (result); + if (buf_malloced != NULL) + free (buf_malloced); + out_of_memory_1: + CLEANUP (); + errno = ENOMEM; + return NULL; + } +} + +#undef MAX_ROOM_NEEDED +#undef TCHARS_PER_DCHAR +#undef SNPRINTF +#undef USE_SNPRINTF +#undef DCHAR_SET +#undef DCHAR_CPY +#undef PRINTF_PARSE +#undef DIRECTIVES +#undef DIRECTIVE +#undef DCHAR_IS_TCHAR +#undef TCHAR_T +#undef DCHAR_T +#undef FCHAR_T +#undef VASNPRINTF diff -Nru gettext-0.17/gettext-tools/libgettextpo/vasnprintf.h gettext-0.18.1.1/gettext-tools/libgettextpo/vasnprintf.h --- gettext-0.17/gettext-tools/libgettextpo/vasnprintf.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/vasnprintf.h 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,80 @@ +/* vsprintf with automatic memory allocation. + Copyright (C) 2002-2004, 2007-2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _VASNPRINTF_H +#define _VASNPRINTF_H + +/* Get va_list. */ +#include + +/* Get size_t. */ +#include + +#ifndef __attribute__ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __attribute__(Spec) /* empty */ +# endif +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Write formatted output to a string dynamically allocated with malloc(). + You can pass a preallocated buffer for the result in RESULTBUF and its + size in *LENGTHP; otherwise you pass RESULTBUF = NULL. + If successful, return the address of the string (this may be = RESULTBUF + if no dynamic memory allocation was necessary) and set *LENGTHP to the + number of resulting bytes, excluding the trailing NUL. Upon error, set + errno and return NULL. + + When dynamic memory allocation occurs, the preallocated buffer is left + alone (with possibly modified contents). This makes it possible to use + a statically allocated or stack-allocated buffer, like this: + + char buf[100]; + size_t len = sizeof (buf); + char *output = vasnprintf (buf, &len, format, args); + if (output == NULL) + ... error handling ...; + else + { + ... use the output string ...; + if (output != buf) + free (output); + } + */ +#if REPLACE_VASNPRINTF +# define asnprintf rpl_asnprintf +# define vasnprintf rpl_vasnprintf +#endif +extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) + __attribute__ ((__format__ (__printf__, 3, 4))); +extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args) + __attribute__ ((__format__ (__printf__, 3, 0))); + +#ifdef __cplusplus +} +#endif + +#endif /* _VASNPRINTF_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/vasprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/vasprintf.c --- gettext-0.17/gettext-tools/libgettextpo/vasprintf.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/vasprintf.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,182 +1,51 @@ -/* Like vsprintf but provides a pointer to malloc'd storage, which must - be freed by the caller. - Copyright (C) 1994, 1998-1999, 2000-2003, 2006-2007 Free Software Foundation, Inc. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +/* Formatted output to strings. + Copyright (C) 1999, 2002, 2006-2010 Free Software Foundation, Inc. -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include /* Specification. */ -#include +#ifdef IN_LIBASPRINTF +# include "vasprintf.h" +#else +# include +#endif -#include -#include +#include +#include #include -#include -#include -#ifdef TEST -size_t global_total_width; -#endif +#include "vasnprintf.h" -static int -int_vasprintf (char **result, const char *format, va_list args) +int +vasprintf (char **resultp, const char *format, va_list args) { - const char *p = format; - /* Add one to make sure that it is never zero, which might cause malloc - to return NULL. */ - size_t total_width = strlen (format) + 1; - va_list ap; + size_t length; + char *result = vasnprintf (NULL, &length, format, args); + if (result == NULL) + return -1; - va_copy (ap, args); - while (*p != '\0') + if (length > INT_MAX) { - if (*p++ == '%') - { - while (strchr ("-+ #0", *p)) - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - if (*p == '.') - { - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - } - while (strchr ("hlLjtz", *p)) - ++p; - /* Should be big enough for any format specifier except %s - and floats. */ - total_width += 30; - switch (*p) - { - case 'd': - case 'i': - case 'o': - case 'u': - case 'x': - case 'X': - case 'c': - (void) va_arg (ap, int); - break; - case 'f': - case 'F': - { - double arg = va_arg (ap, double); - if (arg >= 1.0 || arg <= -1.0) - /* Since an ieee double can have an exponent of 307, we'll - make the buffer wide enough to cover the gross case. */ - total_width += 307; - } - break; - case 'e': - case 'E': - case 'g': - case 'G': - (void) va_arg (ap, double); - break; - case 's': - total_width += strlen (va_arg (ap, char *)); - break; - case 'p': - case 'n': - (void) va_arg (ap, char *); - break; - } - p++; - } + free (result); + errno = EOVERFLOW; + return -1; } - va_end (ap); - -#ifdef TEST - global_total_width = total_width; -#endif - *result = malloc (total_width); - if (*result != NULL) - return vsprintf (*result, format, args); - else - return -1; -} - -int -vasprintf (char **result, const char *format, va_list args) -{ - return int_vasprintf (result, format, args); -} - -int -asprintf (char **result, const char *format, ...) -{ - va_list args; - int done; - - va_start (args, format); - done = vasprintf (result, format, args); - va_end (args); - - return done; -} - -/* ========================= test program ========================= */ - -#ifdef TEST - -#include -void -checkit (const char* format, ...) -{ - va_list args; - char *result; - - va_start (args, format); - vasprintf (&result, format, args); - va_end (args); - if (strlen (result) < global_total_width) - printf ("PASS: "); - else - printf ("FAIL: "); - printf ("%lu %s\n", (unsigned long) global_total_width, result); + *resultp = result; + /* Return the number of resulting bytes, excluding the trailing NUL. */ + return length; } - -int -main () -{ - checkit ("%d", 0x12345678); - checkit ("%200d", 5); - checkit ("%.300d", 6); - checkit ("%100.150d", 7); - checkit ("%s", "jjjjjjjjjiiiiiiiiiiiiiiioooooooooooooooooppppppppppppaa\n\ -777777777777777777333333333333366666666666622222222222777777777777733333"); - checkit ("%f%s%d%s", 1.0, "foo", 77, "asdjffffffffffffffiiiiiiiiiiixxxxx"); - checkit ("%e", DBL_MIN); - checkit ("%e", DBL_MAX); - checkit ("%.400f", DBL_MIN); - checkit ("%f", DBL_MAX); - checkit ("%g", DBL_MIN); - checkit ("%g", DBL_MAX); - return 0; -} - -#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/verify.h gettext-0.18.1.1/gettext-tools/libgettextpo/verify.h --- gettext-0.17/gettext-tools/libgettextpo/verify.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/verify.h 2010-05-09 11:05:02.000000000 +0000 @@ -0,0 +1,163 @@ +/* Compile-time assert-like macros. + + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ + +#ifndef VERIFY_H +# define VERIFY_H 1 + +/* Each of these macros verifies that its argument R is nonzero. To + be portable, R should be an integer constant expression. Unlike + assert (R), there is no run-time overhead. + + There are two macros, since no single macro can be used in all + contexts in C. verify_true (R) is for scalar contexts, including + integer constant expression contexts. verify (R) is for declaration + contexts, e.g., the top level. + + Symbols ending in "__" are private to this header. + + The code below uses several ideas. + + * The first step is ((R) ? 1 : -1). Given an expression R, of + integral or boolean or floating-point type, this yields an + expression of integral type, whose value is later verified to be + constant and nonnegative. + + * Next this expression W is wrapped in a type + struct verify_type__ { unsigned int verify_error_if_negative_size__: W; }. + If W is negative, this yields a compile-time error. No compiler can + deal with a bit-field of negative size. + + One might think that an array size check would have the same + effect, that is, that the type struct { unsigned int dummy[W]; } + would work as well. However, inside a function, some compilers + (such as C++ compilers and GNU C) allow local parameters and + variables inside array size expressions. With these compilers, + an array size check would not properly diagnose this misuse of + the verify macro: + + void function (int n) { verify (n < 0); } + + * For the verify macro, the struct verify_type__ will need to + somehow be embedded into a declaration. To be portable, this + declaration must declare an object, a constant, a function, or a + typedef name. If the declared entity uses the type directly, + such as in + + struct dummy {...}; + typedef struct {...} dummy; + extern struct {...} *dummy; + extern void dummy (struct {...} *); + extern struct {...} *dummy (void); + + two uses of the verify macro would yield colliding declarations + if the entity names are not disambiguated. A workaround is to + attach the current line number to the entity name: + + #define _GL_CONCAT0(x, y) x##y + #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) + extern struct {...} * _GL_CONCAT (dummy, __LINE__); + + But this has the problem that two invocations of verify from + within the same macro would collide, since the __LINE__ value + would be the same for both invocations. (The GCC __COUNTER__ + macro solves this problem, but is not portable.) + + A solution is to use the sizeof operator. It yields a number, + getting rid of the identity of the type. Declarations like + + extern int dummy [sizeof (struct {...})]; + extern void dummy (int [sizeof (struct {...})]); + extern int (*dummy (void)) [sizeof (struct {...})]; + + can be repeated. + + * Should the implementation use a named struct or an unnamed struct? + Which of the following alternatives can be used? + + extern int dummy [sizeof (struct {...})]; + extern int dummy [sizeof (struct verify_type__ {...})]; + extern void dummy (int [sizeof (struct {...})]); + extern void dummy (int [sizeof (struct verify_type__ {...})]); + extern int (*dummy (void)) [sizeof (struct {...})]; + extern int (*dummy (void)) [sizeof (struct verify_type__ {...})]; + + In the second and sixth case, the struct type is exported to the + outer scope; two such declarations therefore collide. GCC warns + about the first, third, and fourth cases. So the only remaining + possibility is the fifth case: + + extern int (*dummy (void)) [sizeof (struct {...})]; + + * GCC warns about duplicate declarations of the dummy function if + -Wredundant_decls is used. GCC 4.3 and later have a builtin + __COUNTER__ macro that can let us generate unique identifiers for + each dummy function, to suppress this warning. + + * This implementation exploits the fact that GCC does not warn about + the last declaration mentioned above. If a future version of GCC + introduces a warning for this, the problem could be worked around + by using code specialized to GCC, just as __COUNTER__ is already + being used if available. + + #if 4 <= __GNUC__ + # define verify(R) [another version to keep GCC happy] + #endif + + * In C++, any struct definition inside sizeof is invalid. + Use a template type to work around the problem. */ + +/* Concatenate two preprocessor tokens. */ +# define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) +# define _GL_CONCAT0(x, y) x##y + +/* _GL_COUNTER is an integer, preferably one that changes each time we + use it. Use __COUNTER__ if it works, falling back on __LINE__ + otherwise. __LINE__ isn't perfect, but it's better than a + constant. */ +# if defined __COUNTER__ && __COUNTER__ != __COUNTER__ +# define _GL_COUNTER __COUNTER__ +# else +# define _GL_COUNTER __LINE__ +# endif + +/* Generate a symbol with the given prefix, making it unique if + possible. */ +# define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER) + +/* Verify requirement R at compile-time, as an integer constant expression. + Return 1. */ + +# ifdef __cplusplus +template + struct verify_type__ { unsigned int verify_error_if_negative_size__: w; }; +# define verify_true(R) \ + (!!sizeof (verify_type__<(R) ? 1 : -1>)) +# else +# define verify_true(R) \ + (!!sizeof \ + (struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; })) +# endif + +/* Verify requirement R at compile-time, as a declaration without a + trailing ';'. */ + +# define verify(R) \ + extern int (* _GL_GENSYM (verify_function) (void)) [verify_true (R)] + +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/wchar.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/wchar.in.h --- gettext-0.17/gettext-tools/libgettextpo/wchar.in.h 2007-10-03 22:26:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/wchar.in.h 2010-05-09 01:38:04.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that have issues. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -26,15 +26,42 @@ * the declaration of wcwidth(). */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H +/* Special invocation convention: + - Inside glibc and uClibc header files. + - On HP-UX 11.00 we have a sequence of nested includes + -> -> , and the latter includes , + once indirectly -> -> -> + and once directly. In both situations 'wint_t' is not yet defined, + therefore we cannot provide the function overrides; instead include only + the system's . + - On IRIX 6.5, similarly, we have an include -> , and + the latter includes . But here, we have no way to detect whether + is completely included or is still being included. */ + +#@INCLUDE_NEXT@ @NEXT_WCHAR_H@ + +#else +/* Normal invocation convention. */ + #ifndef _GL_WCHAR_H +#define _GL_ALREADY_INCLUDING_WCHAR_H + /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be - included before . */ -#include -#include -#include + included before . + But avoid namespace pollution on glibc systems. */ +#ifndef __GLIBC__ +# include +# include +# include +#endif /* Include the original if it exists. Some builds of uClibc lack it. */ @@ -43,40 +70,359 @@ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ #endif +#undef _GL_ALREADY_INCLUDING_WCHAR_H + #ifndef _GL_WCHAR_H #define _GL_WCHAR_H -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_ARG_NONNULL is copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + + +/* Define wint_t and WEOF. (Also done in wctype.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif +#else +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif +#endif + + +/* Override mbstate_t if it is too small. + On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for + implementing mbrtowc for encodings like UTF-8. */ +#if !(@HAVE_MBSINIT@ && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ +typedef int rpl_mbstate_t; +# undef mbstate_t +# define mbstate_t rpl_mbstate_t +# define GNULIB_defined_mbstate_t 1 +#endif + + +/* Convert a single-byte character to a wide character. */ +#if @GNULIB_BTOWC@ +# if @REPLACE_BTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef btowc +# define btowc rpl_btowc +# endif +_GL_FUNCDECL_RPL (btowc, wint_t, (int c)); +_GL_CXXALIAS_RPL (btowc, wint_t, (int c)); +# else +# if !@HAVE_BTOWC@ +_GL_FUNCDECL_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIAS_SYS (btowc, wint_t, (int c)); +# endif +_GL_CXXALIASWARN (btowc); +#elif defined GNULIB_POSIXCHECK +# undef btowc +# if HAVE_RAW_DECL_BTOWC +_GL_WARN_ON_USE (btowc, "btowc is unportable - " + "use gnulib module btowc for portability"); +# endif +#endif + -#ifdef __cplusplus -extern "C" { +/* Convert a wide character to a single-byte character. */ +#if @GNULIB_WCTOB@ +# if @REPLACE_WCTOB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wctob +# define wctob rpl_wctob +# endif +_GL_FUNCDECL_RPL (wctob, int, (wint_t wc)); +_GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); +# else +# if !defined wctob && !@HAVE_DECL_WCTOB@ +/* wctob is provided by gnulib, or wctob exists but is not declared. */ +_GL_FUNCDECL_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); +# endif +_GL_CXXALIASWARN (wctob); +#elif defined GNULIB_POSIXCHECK +# undef wctob +# if HAVE_RAW_DECL_WCTOB +_GL_WARN_ON_USE (wctob, "wctob is unportable - " + "use gnulib module wctob for portability"); +# endif +#endif + + +/* Test whether *PS is in the initial state. */ +#if @GNULIB_MBSINIT@ +# if @REPLACE_MBSINIT@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsinit +# define mbsinit rpl_mbsinit +# endif +_GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps)); +# else +# if !@HAVE_MBSINIT@ +_GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsinit); +#elif defined GNULIB_POSIXCHECK +# undef mbsinit +# if HAVE_RAW_DECL_MBSINIT +_GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - " + "use gnulib module mbsinit for portability"); +# endif +#endif + + +/* Convert a multibyte character to a wide character. */ +#if @GNULIB_MBRTOWC@ +# if @REPLACE_MBRTOWC@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrtowc +# define mbrtowc rpl_mbrtowc +# endif +_GL_FUNCDECL_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRTOWC@ +_GL_FUNCDECL_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrtowc, size_t, + (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrtowc); +#elif defined GNULIB_POSIXCHECK +# undef mbrtowc +# if HAVE_RAW_DECL_MBRTOWC +_GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - " + "use gnulib module mbrtowc for portability"); +# endif +#endif + + +/* Recognize a multibyte character. */ +#if @GNULIB_MBRLEN@ +# if @REPLACE_MBRLEN@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbrlen +# define mbrlen rpl_mbrlen +# endif +_GL_FUNCDECL_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +_GL_CXXALIAS_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# else +# if !@HAVE_MBRLEN@ +_GL_FUNCDECL_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbrlen); +#elif defined GNULIB_POSIXCHECK +# undef mbrlen +# if HAVE_RAW_DECL_MBRLEN +_GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - " + "use gnulib module mbrlen for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSRTOWCS@ +# if @REPLACE_MBSRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsrtowcs +# define mbsrtowcs rpl_mbsrtowcs +# endif +_GL_FUNCDECL_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSRTOWCS@ +_GL_FUNCDECL_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsrtowcs +# if HAVE_RAW_DECL_MBSRTOWCS +_GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - " + "use gnulib module mbsrtowcs for portability"); +# endif +#endif + + +/* Convert a string to a wide string. */ +#if @GNULIB_MBSNRTOWCS@ +# if @REPLACE_MBSNRTOWCS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef mbsnrtowcs +# define mbsnrtowcs rpl_mbsnrtowcs +# endif +_GL_FUNCDECL_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_MBSNRTOWCS@ +_GL_FUNCDECL_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (mbsnrtowcs, size_t, + (wchar_t *dest, const char **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (mbsnrtowcs); +#elif defined GNULIB_POSIXCHECK +# undef mbsnrtowcs +# if HAVE_RAW_DECL_MBSNRTOWCS +_GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - " + "use gnulib module mbsnrtowcs for portability"); +# endif +#endif + + +/* Convert a wide character to a multibyte character. */ +#if @GNULIB_WCRTOMB@ +# if @REPLACE_WCRTOMB@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcrtomb +# define wcrtomb rpl_wcrtomb +# endif +_GL_FUNCDECL_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +_GL_CXXALIAS_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# else +# if !@HAVE_WCRTOMB@ +_GL_FUNCDECL_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIAS_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcrtomb); +#elif defined GNULIB_POSIXCHECK +# undef wcrtomb +# if HAVE_RAW_DECL_WCRTOMB +_GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - " + "use gnulib module wcrtomb for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSRTOMBS@ +# if @REPLACE_WCSRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsrtombs +# define wcsrtombs rpl_wcsrtombs +# endif +_GL_FUNCDECL_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSRTOMBS@ +_GL_FUNCDECL_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsrtombs +# if HAVE_RAW_DECL_WCSRTOMBS +_GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - " + "use gnulib module wcsrtombs for portability"); +# endif +#endif + + +/* Convert a wide string to a string. */ +#if @GNULIB_WCSNRTOMBS@ +# if @REPLACE_WCSNRTOMBS@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcsnrtombs +# define wcsnrtombs rpl_wcsnrtombs +# endif +_GL_FUNCDECL_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +_GL_CXXALIAS_RPL (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# else +# if !@HAVE_WCSNRTOMBS@ +_GL_FUNCDECL_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps) + _GL_ARG_NONNULL ((2))); +# endif +_GL_CXXALIAS_SYS (wcsnrtombs, size_t, + (char *dest, const wchar_t **srcp, size_t srclen, size_t len, + mbstate_t *ps)); +# endif +_GL_CXXALIASWARN (wcsnrtombs); +#elif defined GNULIB_POSIXCHECK +# undef wcsnrtombs +# if HAVE_RAW_DECL_WCSNRTOMBS +_GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - " + "use gnulib module wcsnrtombs for portability"); +# endif #endif /* Return the number of screen columns needed for WC. */ #if @GNULIB_WCWIDTH@ # if @REPLACE_WCWIDTH@ -# undef wcwidth -# define wcwidth rpl_wcwidth -extern int wcwidth (wchar_t); +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef wcwidth +# define wcwidth rpl_wcwidth +# endif +_GL_FUNCDECL_RPL (wcwidth, int, (wchar_t)); +_GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); # else -# if !defined wcwidth && !@HAVE_DECL_WCWIDTH@ +# if !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ -extern int wcwidth (int /* actually wchar_t */); +_GL_FUNCDECL_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); # endif +_GL_CXXALIASWARN (wcwidth); #elif defined GNULIB_POSIXCHECK # undef wcwidth -# define wcwidth(w) \ - (GL_LINK_WARNING ("wcwidth is unportable - " \ - "use gnulib module wcwidth for portability"), \ - wcwidth (w)) +# if HAVE_RAW_DECL_WCWIDTH +_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " + "use gnulib module wcwidth for portability"); +# endif #endif -#ifdef __cplusplus -} -#endif - #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/wctype.in.h gettext-0.18.1.1/gettext-tools/libgettextpo/wctype.in.h --- gettext-0.17/gettext-tools/libgettextpo/wctype.in.h 2007-10-03 22:26:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/wctype.in.h 2010-04-25 09:22:41.000000000 +0000 @@ -1,10 +1,10 @@ /* A substitute for ISO C99 , for platforms that lack it. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -28,6 +28,10 @@ #ifndef _GL_WCTYPE_H +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if @HAVE_WINT_T@ /* Solaris 2.5 has a bug: must be included before . Tru64 with Desktop Toolkit C has a bug: must be included before @@ -50,112 +54,324 @@ #ifndef _GL_WCTYPE_H #define _GL_WCTYPE_H -#if @HAVE_WINT_T@ -typedef wint_t __wctype_wint_t; +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Define wint_t and WEOF. (Also done in wchar.in.h.) */ +#if !@HAVE_WINT_T@ && !defined wint_t +# define wint_t int +# ifndef WEOF +# define WEOF -1 +# endif #else -typedef int __wctype_wint_t; +# ifndef WEOF +# define WEOF ((wint_t) -1) +# endif #endif + /* FreeBSD 4.4 to 4.11 has but lacks the functions. - Assume all 12 functions are implemented the same way, or not at all. */ -#if ! @HAVE_ISWCNTRL@ + Linux libc5 has and the functions but they are broken. + Assume all 11 functions (all isw* except iswblank) are implemented the + same way, or not at all. */ +#if ! @HAVE_ISWCNTRL@ || @REPLACE_ISWCNTRL@ /* IRIX 5.3 has macros but no functions, its isw* macros refer to an undefined variable _ctmp_ and to macros like _P, and they refer to system functions like _iswctype that are not in the standard C library. Rather than try to get ancient buggy implementations like this to work, just disable them. */ -# undef iswalnum -# undef iswalpha -# undef iswblank -# undef iswcntrl -# undef iswdigit -# undef iswgraph -# undef iswlower -# undef iswprint -# undef iswpunct -# undef iswspace -# undef iswupper -# undef iswxdigit - -static inline int -iswalnum (__wctype_wint_t wc) +# undef iswalnum +# undef iswalpha +# undef iswblank +# undef iswcntrl +# undef iswdigit +# undef iswgraph +# undef iswlower +# undef iswprint +# undef iswpunct +# undef iswspace +# undef iswupper +# undef iswxdigit +# undef towlower +# undef towupper + +/* Linux libc5 has and the functions but they are broken. */ +# if @REPLACE_ISWCNTRL@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define iswalnum rpl_iswalnum +# define iswalpha rpl_iswalpha +# define iswblank rpl_iswblank +# define iswcntrl rpl_iswcntrl +# define iswdigit rpl_iswdigit +# define iswgraph rpl_iswgraph +# define iswlower rpl_iswlower +# define iswprint rpl_iswprint +# define iswpunct rpl_iswpunct +# define iswspace rpl_iswspace +# define iswupper rpl_iswupper +# define iswxdigit rpl_iswxdigit +# define towlower rpl_towlower +# define towupper rpl_towupper +# endif +# endif + +static inline int +# if @REPLACE_ISWCNTRL@ +rpl_iswalnum +# else +iswalnum +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')); } static inline int -iswalpha (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswalpha +# else +iswalpha +# endif + (wint_t wc) { return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'; } static inline int -iswblank (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswblank +# else +iswblank +# endif + (wint_t wc) { return wc == ' ' || wc == '\t'; } static inline int -iswcntrl (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswcntrl +# else +iswcntrl +# endif + (wint_t wc) { return (wc & ~0x1f) == 0 || wc == 0x7f; } static inline int -iswdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswdigit +# else +iswdigit +# endif + (wint_t wc) { return wc >= '0' && wc <= '9'; } static inline int -iswgraph (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswgraph +# else +iswgraph +# endif + (wint_t wc) { return wc >= '!' && wc <= '~'; } static inline int -iswlower (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswlower +# else +iswlower +# endif + (wint_t wc) { return wc >= 'a' && wc <= 'z'; } static inline int -iswprint (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswprint +# else +iswprint +# endif + (wint_t wc) { return wc >= ' ' && wc <= '~'; } static inline int -iswpunct (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswpunct +# else +iswpunct +# endif + (wint_t wc) { return (wc >= '!' && wc <= '~' - && !((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); + && !((wc >= '0' && wc <= '9') + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'))); } static inline int -iswspace (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswspace +# else +iswspace +# endif + (wint_t wc) { return (wc == ' ' || wc == '\t' - || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); + || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r'); } static inline int -iswupper (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswupper +# else +iswupper +# endif + (wint_t wc) { return wc >= 'A' && wc <= 'Z'; } static inline int -iswxdigit (__wctype_wint_t wc) +# if @REPLACE_ISWCNTRL@ +rpl_iswxdigit +# else +iswxdigit +# endif + (wint_t wc) { return ((wc >= '0' && wc <= '9') - || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); + || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F')); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towlower +# else +towlower +# endif + (wint_t wc) +{ + return (wc >= 'A' && wc <= 'Z' ? wc - 'A' + 'a' : wc); +} + +static inline wint_t +# if @REPLACE_ISWCNTRL@ +rpl_towupper +# else +towupper +# endif + (wint_t wc) +{ + return (wc >= 'a' && wc <= 'z' ? wc - 'a' + 'A' : wc); } -# endif /* ! HAVE_ISWCNTRL */ +#elif ! @HAVE_ISWBLANK@ +/* Only the iswblank function is missing. */ + +static inline int +iswblank (wint_t wc) +{ + return wc == ' ' || wc == '\t'; +} + +#endif + +#if defined __MINGW32__ + +/* On native Windows, wchar_t is uint16_t, and wint_t is uint32_t. + The functions towlower and towupper are implemented in the MSVCRT library + to take a wchar_t argument and return a wchar_t result. mingw declares + these functions to take a wint_t argument and return a wint_t result. + This means that: + 1. When the user passes an argument outside the range 0x0000..0xFFFF, the + function will look only at the lower 16 bits. This is allowed according + to POSIX. + 2. The return value is returned in the lower 16 bits of the result register. + The upper 16 bits are random: whatever happened to be in that part of the + result register. We need to fix this by adding a zero-extend from + wchar_t to wint_t after the call. */ + +static inline wint_t +rpl_towlower (wint_t wc) +{ + return (wint_t) (wchar_t) towlower (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towlower rpl_towlower +# endif + +static inline wint_t +rpl_towupper (wint_t wc) +{ + return (wint_t) (wchar_t) towupper (wc); +} +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# define towupper rpl_towupper +# endif + +#endif /* __MINGW32__ */ + +#if @REPLACE_ISWCNTRL@ +_GL_CXXALIAS_RPL (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_RPL (iswxdigit, int, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (iswalnum, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswalpha, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswblank, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswcntrl, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswdigit, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswgraph, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswlower, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswprint, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswpunct, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswspace, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswupper, int, (wint_t wc)); +_GL_CXXALIAS_SYS (iswxdigit, int, (wint_t wc)); +#endif +_GL_CXXALIASWARN (iswalnum); +_GL_CXXALIASWARN (iswalpha); +_GL_CXXALIASWARN (iswblank); +_GL_CXXALIASWARN (iswcntrl); +_GL_CXXALIASWARN (iswdigit); +_GL_CXXALIASWARN (iswgraph); +_GL_CXXALIASWARN (iswlower); +_GL_CXXALIASWARN (iswprint); +_GL_CXXALIASWARN (iswpunct); +_GL_CXXALIASWARN (iswspace); +_GL_CXXALIASWARN (iswupper); +_GL_CXXALIASWARN (iswxdigit); + +#if @REPLACE_ISWCNTRL@ || defined __MINGW32__ +_GL_CXXALIAS_RPL (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_RPL (towupper, wint_t, (wint_t wc)); +#else +_GL_CXXALIAS_SYS (towlower, wint_t, (wint_t wc)); +_GL_CXXALIAS_SYS (towupper, wint_t, (wint_t wc)); +#endif +_GL_CXXALIASWARN (towlower); +_GL_CXXALIASWARN (towupper); + #endif /* _GL_WCTYPE_H */ #endif /* _GL_WCTYPE_H */ diff -Nru gettext-0.17/gettext-tools/libgettextpo/wcwidth.c gettext-0.18.1.1/gettext-tools/libgettextpo/wcwidth.c --- gettext-0.17/gettext-tools/libgettextpo/wcwidth.c 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/wcwidth.c 2010-04-25 09:22:41.000000000 +0000 @@ -1,5 +1,5 @@ /* Determine the number of screen columns needed for a character. - Copyright (C) 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,17 +26,16 @@ #include "streq.h" #include "uniwidth.h" -#undef wcwidth - int -rpl_wcwidth (wchar_t wc) +wcwidth (wchar_t wc) +#undef wcwidth { /* In UTF-8 locales, use a Unicode aware width function. */ const char *encoding = locale_charset (); if (STREQ (encoding, "UTF-8", 'U', 'T', 'F', '-', '8', 0, 0, 0 ,0)) { /* We assume that in a UTF-8 locale, a wide character is the same as a - Unicode character. */ + Unicode character. */ return uc_width (wc, encoding); } else diff -Nru gettext-0.17/gettext-tools/libgettextpo/xalloc.h gettext-0.18.1.1/gettext-tools/libgettextpo/xalloc.h --- gettext-0.17/gettext-tools/libgettextpo/xalloc.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xalloc.h 2010-06-06 12:49:58.000000000 +0000 @@ -84,8 +84,8 @@ known at compile-time. */ # define XNMALLOC(N,T) \ ((T *) (sizeof (T) == 1 \ - ? xmalloc (N) \ - : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) + ? xmalloc (N) \ + : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) static inline void * xnboundedmalloc (size_t n, size_t bound, size_t s) { diff -Nru gettext-0.17/gettext-tools/libgettextpo/xasprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/xasprintf.c --- gettext-0.17/gettext-tools/libgettextpo/xasprintf.c 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xasprintf.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,6 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 1999, 2002-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2004, 2006, 2009-2010 Free Software Foundation, + Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -Nru gettext-0.17/gettext-tools/libgettextpo/xconcat-filename.c gettext-0.18.1.1/gettext-tools/libgettextpo/xconcat-filename.c --- gettext-0.17/gettext-tools/libgettextpo/xconcat-filename.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xconcat-filename.c 2010-02-16 21:33:16.000000000 +0000 @@ -0,0 +1,41 @@ +/* Construct a full filename from a directory and a relative filename. + Copyright (C) 2001-2004, 2006-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 3 of the License, or any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible . */ + +#include + +/* Specification. */ +#include "concat-filename.h" + +#include "xalloc.h" + +/* Concatenate a directory filename, a relative filename and an optional + suffix. The directory may end with the directory separator. The second + argument may not start with the directory separator (it is relative). + Return a freshly allocated filename. */ +char * +xconcatenated_filename (const char *directory, const char *filename, + const char *suffix) +{ + char *result; + + result = concatenated_filename (directory, filename, suffix); + if (result == NULL) + xalloc_die (); + + return result; +} diff -Nru gettext-0.17/gettext-tools/libgettextpo/xerror.c gettext-0.18.1.1/gettext-tools/libgettextpo/xerror.c --- gettext-0.17/gettext-tools/libgettextpo/xerror.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xerror.c 2010-06-06 12:49:58.000000000 +0000 @@ -49,10 +49,10 @@ { width = 0; if (error_with_progname) - { - fprintf (stderr, "%s: ", program_name); - width += mbswidth (program_name, 0) + 2; - } + { + fprintf (stderr, "%s: ", program_name); + width += mbswidth (program_name, 0) + 2; + } fputs (prefix, stderr); width += mbswidth (prefix, 0); free (prefix); @@ -64,16 +64,16 @@ const char *np; for (i = width; i > 0; i--) - putc (' ', stderr); + putc (' ', stderr); after_indent: np = strchr (cp, '\n'); if (np == NULL || np[1] == '\0') - { - fputs (cp, stderr); - break; - } + { + fputs (cp, stderr); + break; + } np++; fwrite (cp, 1, np - cp, stderr); diff -Nru gettext-0.17/gettext-tools/libgettextpo/xmalloca.c gettext-0.18.1.1/gettext-tools/libgettextpo/xmalloca.c --- gettext-0.17/gettext-tools/libgettextpo/xmalloca.c 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xmalloca.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -22,6 +22,8 @@ #include "xalloc.h" +#if HAVE_ALLOCA + void * xmmalloca (size_t n) { @@ -32,3 +34,5 @@ xalloc_die (); return p; } + +#endif diff -Nru gettext-0.17/gettext-tools/libgettextpo/xmalloca.h gettext-0.18.1.1/gettext-tools/libgettextpo/xmalloca.h --- gettext-0.17/gettext-tools/libgettextpo/xmalloca.h 2007-10-17 22:37:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xmalloca.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -19,6 +19,7 @@ #define _XMALLOCA_H #include "malloca.h" +#include "xalloc.h" #ifdef __cplusplus @@ -31,7 +32,7 @@ the function returns. Upon failure, it exits with an error message. */ #if HAVE_ALLOCA # define xmalloca(N) \ - ((N) < 4032 - sa_increment \ + ((N) < 4032 - sa_increment \ ? (void *) ((char *) alloca ((N) + sa_increment) + sa_increment) \ : xmmalloca (N)) extern void * xmmalloca (size_t n); @@ -40,9 +41,19 @@ xmalloc (N) #endif -/* Maybe we should also define a variant - xnmalloca (size_t n, size_t s) - behaves like xmalloca (n * s) - If this would be useful in your application. please speak up. */ +/* xnmalloca(N,S) is an overflow-safe variant of xmalloca (N * S). + It allocates an array of N objects, each with S bytes of memory, + on the stack. S must be positive and N must be nonnegative. + The array must be freed using freea() before the function returns. + Upon failure, it exits with an error message. */ +#if HAVE_ALLOCA +/* Rely on xmalloca (SIZE_MAX) calling xalloc_die (). */ +# define xnmalloca(n, s) \ + xmalloca (xalloc_oversized ((n), (s)) ? (size_t) (-1) : (n) * (s)) +#else +# define xnmalloca(n, s) \ + xnmalloc ((n), (s)) +#endif #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/libgettextpo/xsize.h gettext-0.18.1.1/gettext-tools/libgettextpo/xsize.h --- gettext-0.17/gettext-tools/libgettextpo/xsize.h 2006-10-20 22:36:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xsize.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,10 +1,10 @@ /* xsize.h -- Checked size_t computations. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2008, 2009, 2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -94,7 +94,7 @@ /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even - when N is of a wider tupe and N > SIZE_MAX. */ + when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) diff -Nru gettext-0.17/gettext-tools/libgettextpo/xstriconv.c gettext-0.18.1.1/gettext-tools/libgettextpo/xstriconv.c --- gettext-0.17/gettext-tools/libgettextpo/xstriconv.c 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xstriconv.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible. This program is free software: you can redistribute it and/or modify @@ -30,7 +30,7 @@ int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp) + char **resultp, size_t *lengthp) { int retval = mem_cd_iconv (src, srclen, cd, resultp, lengthp); diff -Nru gettext-0.17/gettext-tools/libgettextpo/xstriconv.h gettext-0.18.1.1/gettext-tools/libgettextpo/xstriconv.h --- gettext-0.17/gettext-tools/libgettextpo/xstriconv.h 2007-10-07 20:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xstriconv.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* Charset conversion with out-of-memory checking. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible and Simon Josefsson. This program is free software: you can redistribute it and/or modify @@ -43,7 +43,7 @@ in *LENGTHP. *RESULTP is set to a freshly allocated memory block, or is unchanged if no dynamic memory allocation was necessary. */ extern int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd, - char **resultp, size_t *lengthp); + char **resultp, size_t *lengthp); /* Convert an entire string from one encoding to another, using iconv. The original string is the NUL-terminated string starting at SRC. @@ -67,7 +67,7 @@ Return value: the freshly allocated resulting NUL-terminated string if successful, otherwise NULL and errno set. */ extern char * xstr_iconv (const char *src, - const char *from_codeset, const char *to_codeset); + const char *from_codeset, const char *to_codeset); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/libgettextpo/xvasprintf.c gettext-0.18.1.1/gettext-tools/libgettextpo/xvasprintf.c --- gettext-0.17/gettext-tools/libgettextpo/xvasprintf.c 2007-10-07 20:30:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xvasprintf.c 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 1999, 2002-2004, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,11 +29,6 @@ /* Checked size_t computations. */ #include "xsize.h" -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - static inline char * xstrcat (size_t argcount, va_list args) { @@ -91,23 +86,23 @@ for (f = format;;) { - if (*f == '\0') - /* Recognized the special case of string concatenation. */ - return xstrcat (argcount, args); - if (*f != '%') - break; - f++; - if (*f != 's') - break; - f++; - argcount++; + if (*f == '\0') + /* Recognized the special case of string concatenation. */ + return xstrcat (argcount, args); + if (*f != '%') + break; + f++; + if (*f != 's') + break; + f++; + argcount++; } } if (vasprintf (&result, format, args) < 0) { if (errno == ENOMEM) - xalloc_die (); + xalloc_die (); return NULL; } diff -Nru gettext-0.17/gettext-tools/libgettextpo/xvasprintf.h gettext-0.18.1.1/gettext-tools/libgettextpo/xvasprintf.h --- gettext-0.17/gettext-tools/libgettextpo/xvasprintf.h 2007-10-07 20:30:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgettextpo/xvasprintf.h 2010-02-16 21:33:16.000000000 +0000 @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2004, 2006-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,15 +21,14 @@ #include #ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ +/* The __attribute__ feature is available in gcc versions 2.5 and later. + The __-protected variants of the attributes 'format' and 'printf' are + accepted by gcc versions 2.6.4 (effectively 2.7) and later. + We enable __attribute__ only if these are supported too, because + gnulib and libintl do '#define printf __printf__' when they override + the 'printf' function. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf +# define __attribute__(Spec) /* empty */ # endif #endif diff -Nru gettext-0.17/gettext-tools/libgrep/btowc.c gettext-0.18.1.1/gettext-tools/libgrep/btowc.c --- gettext-0.17/gettext-tools/libgrep/btowc.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/btowc.c 2010-05-24 14:49:26.000000000 +0000 @@ -0,0 +1,39 @@ +/* Convert unibyte character to wide character. + Copyright (C) 2008, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + +wint_t +btowc (int c) +{ + if (c != EOF) + { + char buf[1]; + wchar_t wc; + + buf[0] = c; + if (mbtowc (&wc, buf, 1) >= 0) + return wc; + } + return WEOF; +} diff -Nru gettext-0.17/gettext-tools/libgrep/ChangeLog gettext-0.18.1.1/gettext-tools/libgrep/ChangeLog --- gettext-0.17/gettext-tools/libgrep/ChangeLog 2007-11-06 23:27:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,141 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-24 Bruno Haible + + Use the newest regex module from gnulib. + * regex.h: Remove file. + * regex.c: Remove file. + * memchr.c: Remove file. + * Makefile.am: Include Makefile.gnulib. + (BUILT_SOURCES, MOSTLYCLEANFILES, MOSTLYCLEANDIRS, CLEANFILES, + DISTCLEANFILES, MAINTAINERCLEANFILES): New variables. + (noinst_LIBRARIES): Initialize empty. + (libgrep_a_SOURCES): Augment instead of initializing. + (LIBADD_SOURCE, libgrep_a_LIBADD, libgrep_a_DEPENDENCIES): Remove + variables. + * gnulib-lib/Makefile.am: New file. + +2010-05-24 Bruno Haible + + Code cleanup. + * m-regex.c (EGexecute): Write logic in a similar way as + m-fgrep.c:Fexecute. + +2010-05-24 Bruno Haible + + Fix bug: Avoid out-of-bounds access. + * m-regex.c (EGexecute): Fix test before second call to + IS_WORD_CONSTITUENT. + +2010-05-24 Bruno Haible + + Cleanup syntax. + * m-regex.c (compile, EGexecute): Remove useless parentheses. + +2010-05-24 Bruno Haible + + Tiny optimization. + * m-fgrep.c (Fexecute): New local variable buflim. + +2010-05-24 Bruno Haible + + * m-fgrep.c (Fcompile, Fexecute): Reduce scope of local variables. + * m-regex.c (compile, EGexecute): Likewise. + * kwset.c (kwsincr, treefails, kwsprep, bmexec, cwexec): Likewise. + (kwsexec): Remove useless cast. + +2010-05-23 Bruno Haible + + * kwset.c: Use GNU coding style. + (kwsalloc): Write NULL, not 0. Remove useless cast. + +2010-05-23 Bruno Haible + + msggrep: Fix interpretation of '$' in regular expressions. + * m-regex.c (EGexecute): When searching up to the end of a string that + does not end in a newline, set not_eol to 0. + Reported by Sean Flanigan . + +2010-05-24 Bruno Haible + + * m-fgrep.c: Untabify. + * m-regex.c: Likewise. + * kwset.h: Likewise. + * kwset.c: Likewise. + +2010-05-23 Bruno Haible + + Fix bug: A regex was not regonized when it matched the end of the last + line and that last line was not terminated with a newline. + * m-regex.c (EGexecute): Don't ignore the last byte of the buffer if it + is not a newline. + * m-fgrep.c (Fexecute): Don't assume that the buffer contains a + newline. + +2010-05-23 Bruno Haible + + Do regex matching purely with regex, not regex + dfa + kwset. + * dfa.h: Remove file. + * dfa.c: Remove file. + * hard-locale.h: Remove file. + * hard-locale.c: Remove file. + * m-common.h: Remove file. + * m-common.c: Remove file. + * m-fgrep.c: Include , , not m-common.h. + (MBS_SUPPORT): Moved here from m-common.h. + Include kwset.h, gettext.h. + (_, ISUPPER, TOLOWER): Moved here from m-common.c. + (IS_WORD_CONSTITUENT, NCHAR, compiled_kwset): Moved here from + m-common.h. + (kwsinit, check_multibyte_string): Moved here from m-common.c. + * m-regex.c: Include , , not m-common.h. + (IS_WORD_CONSTITUENT): Moved here from m-common.h. + (struct compiled_regex): Remove fields dfa, ckwset, + kwset_exact_matches. + (dfaerror, kwsmusts): Remove functions. + (compile): Simplify accordingly. + (Gcompile): Likewise. Invoke compile. + (EGexecute): Simplify accordingly. + * Makefile.am (libgrep_a_SOURCES): Update. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2009-12-12 Bruno Haible + + * libgrep.h: Untabify. + * hard-locale.c: Untabify. + * memchr.c: Untabify. + +2009-08-15 Bruno Haible + + Stop using gnulib module 'strdup'. + * strdup.c: Remove file. + * Makefile.am (LIBADD_SOURCE): Remove strdup.c. + +2008-04-28 Eric Blake + + * memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check. + +2008-04-27 Bruno Haible + + * memchr.c (__memchr): Change type of 'i'. + +2008-04-26 Eric Blake + Bruno Haible + + * memchr.c: Include intprops.h. + (__memchr): Optimize parallel detection of matching bytes. Rename local + variables. Add explanatory comments. + +2008-04-26 Bruno Haible + + Fix module 'memchr', broken since 2000-10-28. + * memchr.c: Outside glibc, define memchr, not __memchr. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/libgrep/dfa.c gettext-0.18.1.1/gettext-tools/libgrep/dfa.c --- gettext-0.17/gettext-tools/libgrep/dfa.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/dfa.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,3574 +0,0 @@ -/* dfa.c - deterministic extended regexp routines for GNU - Copyright 1988, 1998, 2000, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written June, 1988 by Mike Haertel - Modified July, 1988 by Arthur David Olson to assist BMG speedups */ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include -#include -#include - -#include -#include -#include -#include - -#if defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_MBRTOWC -/* We can handle multibyte string. */ -# define MBS_SUPPORT -#endif - -#ifdef MBS_SUPPORT -# include -# include -#endif - -#ifndef DEBUG /* use the same approach as regex.c */ -#undef assert -#define assert(e) -#endif /* DEBUG */ - -#ifndef isgraph -#define isgraph(C) (isprint(C) && !isspace(C)) -#endif - -#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -#define ISALPHA(C) isalpha(C) -#define ISUPPER(C) isupper(C) -#define ISLOWER(C) islower(C) -#define ISDIGIT(C) isdigit(C) -#define ISXDIGIT(C) isxdigit(C) -#define ISSPACE(C) isspace(C) -#define ISPUNCT(C) ispunct(C) -#define ISALNUM(C) isalnum(C) -#define ISPRINT(C) isprint(C) -#define ISGRAPH(C) isgraph(C) -#define ISCNTRL(C) iscntrl(C) -#else -#define ISALPHA(C) (isascii(C) && isalpha(C)) -#define ISUPPER(C) (isascii(C) && isupper(C)) -#define ISLOWER(C) (isascii(C) && islower(C)) -#define ISDIGIT(C) (isascii(C) && isdigit(C)) -#define ISXDIGIT(C) (isascii(C) && isxdigit(C)) -#define ISSPACE(C) (isascii(C) && isspace(C)) -#define ISPUNCT(C) (isascii(C) && ispunct(C)) -#define ISALNUM(C) (isascii(C) && isalnum(C)) -#define ISPRINT(C) (isascii(C) && isprint(C)) -#define ISGRAPH(C) (isascii(C) && isgraph(C)) -#define ISCNTRL(C) (isascii(C) && iscntrl(C)) -#endif - -/* ISASCIIDIGIT differs from ISDIGIT, as follows: - - Its arg may be any int or unsigned int; it need not be an unsigned char. - - It's guaranteed to evaluate its argument exactly once. - - It's typically faster. - Posix 1003.2-1992 section 2.5.2.1 page 50 lines 1556-1558 says that - only '0' through '9' are digits. Prefer ISASCIIDIGIT to ISDIGIT unless - it's important to use the locale's definition of `digit' even when the - host does not conform to Posix. */ -#define ISASCIIDIGIT(c) ((unsigned) (c) - '0' <= 9) - -#include "regex.h" -#include "dfa.h" -#include "hard-locale.h" -#include "gettext.h" -#define _(str) gettext (str) - -/* HPUX, define those as macros in sys/param.h */ -#ifdef setbit -# undef setbit -#endif -#ifdef clrbit -# undef clrbit -#endif - -static void dfamust (struct dfa *dfa); -static void regexp (int toplevel); - -static ptr_t -xcalloc (size_t n, size_t s) -{ - ptr_t r = calloc(n, s); - - if (!r) - dfaerror(_("Memory exhausted")); - return r; -} - -static ptr_t -xmalloc (size_t n) -{ - ptr_t r = malloc(n); - - assert(n != 0); - if (!r) - dfaerror(_("Memory exhausted")); - return r; -} - -static ptr_t -xrealloc (ptr_t p, size_t n) -{ - ptr_t r = realloc(p, n); - - assert(n != 0); - if (!r) - dfaerror(_("Memory exhausted")); - return r; -} - -#define CALLOC(p, t, n) ((p) = (t *) xcalloc((size_t)(n), sizeof (t))) -#define MALLOC(p, t, n) ((p) = (t *) xmalloc((n) * sizeof (t))) -#define REALLOC(p, t, n) ((p) = (t *) xrealloc((ptr_t) (p), (n) * sizeof (t))) - -/* Reallocate an array of type t if nalloc is too small for index. */ -#define REALLOC_IF_NECESSARY(p, t, nalloc, index) \ - if ((index) >= (nalloc)) \ - { \ - do \ - (nalloc) *= 2; \ - while ((index) >= (nalloc)); \ - REALLOC(p, t, nalloc); \ - } - -#ifdef DEBUG - -static void -prtok (token t) -{ - char const *s; - - if (t < 0) - fprintf(stderr, "END"); - else if (t < NOTCHAR) - fprintf(stderr, "%c", t); - else - { - switch (t) - { - case EMPTY: s = "EMPTY"; break; - case BACKREF: s = "BACKREF"; break; - case BEGLINE: s = "BEGLINE"; break; - case ENDLINE: s = "ENDLINE"; break; - case BEGWORD: s = "BEGWORD"; break; - case ENDWORD: s = "ENDWORD"; break; - case LIMWORD: s = "LIMWORD"; break; - case NOTLIMWORD: s = "NOTLIMWORD"; break; - case QMARK: s = "QMARK"; break; - case STAR: s = "STAR"; break; - case PLUS: s = "PLUS"; break; - case CAT: s = "CAT"; break; - case OR: s = "OR"; break; - case ORTOP: s = "ORTOP"; break; - case LPAREN: s = "LPAREN"; break; - case RPAREN: s = "RPAREN"; break; - case CRANGE: s = "CRANGE"; break; -#ifdef MBS_SUPPORT - case ANYCHAR: s = "ANYCHAR"; break; - case MBCSET: s = "MBCSET"; break; -#endif /* MBS_SUPPORT */ - default: s = "CSET"; break; - } - fprintf(stderr, "%s", s); - } -} -#endif /* DEBUG */ - -/* Stuff pertaining to charclasses. */ - -static int -tstbit (unsigned b, charclass c) -{ - return c[b / INTBITS] & 1 << b % INTBITS; -} - -static void -setbit (unsigned b, charclass c) -{ - c[b / INTBITS] |= 1 << b % INTBITS; -} - -static void -clrbit (unsigned b, charclass c) -{ - c[b / INTBITS] &= ~(1 << b % INTBITS); -} - -static void -copyset (charclass src, charclass dst) -{ - memcpy (dst, src, sizeof (charclass)); -} - -static void -zeroset (charclass s) -{ - memset (s, 0, sizeof (charclass)); -} - -static void -notset (charclass s) -{ - int i; - - for (i = 0; i < CHARCLASS_INTS; ++i) - s[i] = ~s[i]; -} - -static int -equal (charclass s1, charclass s2) -{ - return memcmp (s1, s2, sizeof (charclass)) == 0; -} - -/* A pointer to the current dfa is kept here during parsing. */ -static struct dfa *dfa; - -/* Find the index of charclass s in dfa->charclasses, or allocate a new charclass. */ -static int -charclass_index (charclass s) -{ - int i; - - for (i = 0; i < dfa->cindex; ++i) - if (equal(s, dfa->charclasses[i])) - return i; - REALLOC_IF_NECESSARY(dfa->charclasses, charclass, dfa->calloc, dfa->cindex); - ++dfa->cindex; - copyset(s, dfa->charclasses[i]); - return i; -} - -/* Syntax bits controlling the behavior of the lexical analyzer. */ -static reg_syntax_t syntax_bits, syntax_bits_set; - -/* Flag for case-folding letters into sets. */ -static int case_fold; - -/* End-of-line byte in data. */ -static unsigned char eolbyte; - -/* Entry point to set syntax options. */ -void -dfasyntax (reg_syntax_t bits, int fold, unsigned char eol) -{ - syntax_bits_set = 1; - syntax_bits = bits; - case_fold = fold; - eolbyte = eol; -} - -/* Like setbit, but if case is folded, set both cases of a letter. */ -static void -setbit_case_fold (unsigned b, charclass c) -{ - setbit (b, c); - if (case_fold) - { - if (ISUPPER (b)) - setbit (tolower (b), c); - else if (ISLOWER (b)) - setbit (toupper (b), c); - } -} - -/* Lexical analyzer. All the dross that deals with the obnoxious - GNU Regex syntax bits is located here. The poor, suffering - reader is referred to the GNU Regex documentation for the - meaning of the @#%!@#%^!@ syntax bits. */ - -static char const *lexstart; /* Pointer to beginning of input string. */ -static char const *lexptr; /* Pointer to next input character. */ -static int lexleft; /* Number of characters remaining. */ -static token lasttok; /* Previous token returned; initially END. */ -static int laststart; /* True if we're separated from beginning or (, | - only by zero-width characters. */ -static int parens; /* Count of outstanding left parens. */ -static int minrep, maxrep; /* Repeat counts for {m,n}. */ -static int hard_LC_COLLATE; /* Nonzero if LC_COLLATE is hard. */ - -#ifdef MBS_SUPPORT -/* These variables are used only if (MB_CUR_MAX > 1). */ -static mbstate_t mbs; /* Mbstate for mbrlen(). */ -static int cur_mb_len; /* Byte length of the current scanning - multibyte character. */ -static int cur_mb_index; /* Byte index of the current scanning multibyte - character. - - singlebyte character : cur_mb_index = 0 - multibyte character - 1st byte : cur_mb_index = 1 - 2nd byte : cur_mb_index = 2 - ... - nth byte : cur_mb_index = n */ -static unsigned char *mblen_buf;/* Correspond to the input buffer in dfaexec(). - Each element store the amount of remain - byte of corresponding multibyte character - in the input string. A element's value - is 0 if corresponding character is a - singlebyte chracter. - e.g. input : 'a', , , - mblen_buf : 0, 3, 2, 1 - */ -static wchar_t *inputwcs; /* Wide character representation of input - string in dfaexec(). - The length of this array is same as - the length of input string(char array). - inputstring[i] is a single-byte char, - or 1st byte of a multibyte char. - And inputwcs[i] is the codepoint. */ -static unsigned char const *buf_begin;/* refference to begin in dfaexec(). */ -static unsigned char const *buf_end; /* refference to end in dfaexec(). */ -#endif /* MBS_SUPPORT */ - -#ifdef MBS_SUPPORT -/* This function update cur_mb_len, and cur_mb_index. - p points current lexptr, len is the remaining buffer length. */ -static void -update_mb_len_index (char const *p, int len) -{ - /* If last character is a part of a multibyte character, - we update cur_mb_index. */ - if (cur_mb_index) - cur_mb_index = (cur_mb_index >= cur_mb_len)? 0 - : cur_mb_index + 1; - - /* If last character is a single byte character, or the - last portion of a multibyte character, we check whether - next character is a multibyte character or not. */ - if (! cur_mb_index) - { - cur_mb_len = mbrlen(p, len, &mbs); - if (cur_mb_len > 1) - /* It is a multibyte character. - cur_mb_len was already set by mbrlen(). */ - cur_mb_index = 1; - else if (cur_mb_len < 1) - /* Invalid sequence. We treat it as a singlebyte character. - cur_mb_index is aleady 0. */ - cur_mb_len = 1; - /* Otherwise, cur_mb_len == 1, it is a singlebyte character. - cur_mb_index is aleady 0. */ - } -} -#endif /* MBS_SUPPORT */ - -#ifdef MBS_SUPPORT -/* Note that characters become unsigned here. */ -# define FETCH(c, eoferr) \ - { \ - if (! lexleft) \ - { \ - if (eoferr != 0) \ - dfaerror (eoferr); \ - else \ - return lasttok = END; \ - } \ - if (MB_CUR_MAX > 1) \ - update_mb_len_index(lexptr, lexleft); \ - (c) = (unsigned char) *lexptr++; \ - --lexleft; \ - } - -/* This function fetch a wide character, and update cur_mb_len, - used only if the current locale is a multibyte environment. */ -static wchar_t -fetch_wc (char const *eoferr) -{ - wchar_t wc; - if (! lexleft) - { - if (eoferr != 0) - dfaerror (eoferr); - else - return -1; - } - - cur_mb_len = mbrtowc(&wc, lexptr, lexleft, &mbs); - if (cur_mb_len <= 0) - { - cur_mb_len = 1; - wc = *lexptr; - } - lexptr += cur_mb_len; - lexleft -= cur_mb_len; - return wc; -} -#else -/* Note that characters become unsigned here. */ -# define FETCH(c, eoferr) \ - { \ - if (! lexleft) \ - { \ - if (eoferr != 0) \ - dfaerror (eoferr); \ - else \ - return lasttok = END; \ - } \ - (c) = (unsigned char) *lexptr++; \ - --lexleft; \ - } -#endif /* MBS_SUPPORT */ - -#ifdef MBS_SUPPORT -/* Multibyte character handling sub-routin for lex. - This function parse a bracket expression and build a struct - mb_char_classes. */ -static void -parse_bracket_exp_mb () -{ - wchar_t wc, wc1, wc2; - - /* Work area to build a mb_char_classes. */ - struct mb_char_classes *work_mbc; - int chars_al, range_sts_al, range_ends_al, ch_classes_al, - equivs_al, coll_elems_al; - - REALLOC_IF_NECESSARY(dfa->mbcsets, struct mb_char_classes, - dfa->mbcsets_alloc, dfa->nmbcsets + 1); - /* dfa->multibyte_prop[] hold the index of dfa->mbcsets. - We will update dfa->multibyte_prop in addtok(), because we can't - decide the index in dfa->tokens[]. */ - - /* Initialize work are */ - work_mbc = &(dfa->mbcsets[dfa->nmbcsets++]); - - chars_al = 1; - range_sts_al = range_ends_al = 0; - ch_classes_al = equivs_al = coll_elems_al = 0; - MALLOC(work_mbc->chars, wchar_t, chars_al); - - work_mbc->nchars = work_mbc->nranges = work_mbc->nch_classes = 0; - work_mbc->nequivs = work_mbc->ncoll_elems = 0; - work_mbc->chars = NULL; - work_mbc->ch_classes = NULL; - work_mbc->range_sts = work_mbc->range_ends = NULL; - work_mbc->equivs = work_mbc->coll_elems = NULL; - - wc = fetch_wc(_("Unbalanced [")); - if (wc == L'^') - { - wc = fetch_wc(_("Unbalanced [")); - work_mbc->invert = 1; - } - else - work_mbc->invert = 0; - do - { - wc1 = -1; /* mark wc1 is not initialized". */ - - /* Note that if we're looking at some other [:...:] construct, - we just treat it as a bunch of ordinary characters. We can do - this because we assume regex has checked for syntax errors before - dfa is ever called. */ - if (wc == L'[' && (syntax_bits & RE_CHAR_CLASSES)) - { -#define BRACKET_BUFFER_SIZE 128 - char str[BRACKET_BUFFER_SIZE]; - wc1 = wc; - wc = fetch_wc(_("Unbalanced [")); - - /* If pattern contains `[[:', `[[.', or `[[='. */ - if (cur_mb_len == 1 && (wc == L':' || wc == L'.' || wc == L'=')) - { - unsigned char c; - unsigned char delim = (unsigned char)wc; - int len = 0; - for (;;) - { - if (! lexleft) - dfaerror (_("Unbalanced [")); - c = (unsigned char) *lexptr++; - --lexleft; - - if ((c == delim && *lexptr == ']') || lexleft == 0) - break; - if (len < BRACKET_BUFFER_SIZE) - str[len++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[len] = '\0'; - - if (lexleft == 0) - { - REALLOC_IF_NECESSARY(work_mbc->chars, wchar_t, chars_al, - work_mbc->nchars + 2); - work_mbc->chars[work_mbc->nchars++] = L'['; - work_mbc->chars[work_mbc->nchars++] = delim; - break; - } - - if (--lexleft, *lexptr++ != ']') - dfaerror (_("Unbalanced [")); - if (delim == ':') - /* build character class. */ - { - wctype_t wt; - /* Query the character class as wctype_t. */ - wt = wctype (str); - - if (ch_classes_al == 0) - MALLOC(work_mbc->ch_classes, wctype_t, ++ch_classes_al); - REALLOC_IF_NECESSARY(work_mbc->ch_classes, wctype_t, - ch_classes_al, - work_mbc->nch_classes + 1); - work_mbc->ch_classes[work_mbc->nch_classes++] = wt; - - } - else if (delim == '=' || delim == '.') - { - char *elem; - MALLOC(elem, char, len + 1); - strncpy(elem, str, len + 1); - - if (delim == '=') - /* build equivalent class. */ - { - if (equivs_al == 0) - MALLOC(work_mbc->equivs, char*, ++equivs_al); - REALLOC_IF_NECESSARY(work_mbc->equivs, char*, - equivs_al, - work_mbc->nequivs + 1); - work_mbc->equivs[work_mbc->nequivs++] = elem; - } - - if (delim == '.') - /* build collating element. */ - { - if (coll_elems_al == 0) - MALLOC(work_mbc->coll_elems, char*, ++coll_elems_al); - REALLOC_IF_NECESSARY(work_mbc->coll_elems, char*, - coll_elems_al, - work_mbc->ncoll_elems + 1); - work_mbc->coll_elems[work_mbc->ncoll_elems++] = elem; - } - } - wc = -1; - } - else - /* We treat '[' as a normal character here. */ - { - wc2 = wc1; wc1 = wc; wc = wc2; /* swap */ - } - } - else - { - if (wc == L'\\' && (syntax_bits & RE_BACKSLASH_ESCAPE_IN_LISTS)) - wc = fetch_wc(("Unbalanced [")); - } - - if (wc1 == -1) - wc1 = fetch_wc(_("Unbalanced [")); - - if (wc1 == L'-') - /* build range characters. */ - { - wc2 = fetch_wc(_("Unbalanced [")); - if (wc2 == L']') - { - /* In the case [x-], the - is an ordinary hyphen, - which is left in c1, the lookahead character. */ - lexptr -= cur_mb_len; - lexleft += cur_mb_len; - wc2 = wc; - } - else - { - if (wc2 == L'\\' - && (syntax_bits & RE_BACKSLASH_ESCAPE_IN_LISTS)) - wc2 = fetch_wc(_("Unbalanced [")); - wc1 = fetch_wc(_("Unbalanced [")); - } - - if (range_sts_al == 0) - { - MALLOC(work_mbc->range_sts, wchar_t, ++range_sts_al); - MALLOC(work_mbc->range_ends, wchar_t, ++range_ends_al); - } - REALLOC_IF_NECESSARY(work_mbc->range_sts, wchar_t, - range_sts_al, work_mbc->nranges + 1); - work_mbc->range_sts[work_mbc->nranges] = wc; - REALLOC_IF_NECESSARY(work_mbc->range_ends, wchar_t, - range_ends_al, work_mbc->nranges + 1); - work_mbc->range_ends[work_mbc->nranges++] = wc2; - } - else if (wc != -1) - /* build normal characters. */ - { - REALLOC_IF_NECESSARY(work_mbc->chars, wchar_t, chars_al, - work_mbc->nchars + 1); - work_mbc->chars[work_mbc->nchars++] = wc; - } - } - while ((wc = wc1) != L']'); -} -#endif /* MBS_SUPPORT */ - -#ifdef __STDC__ -#define FUNC(F, P) static int F(int c) { return P(c); } -#else -#define FUNC(F, P) static int F(c) int c; { return P(c); } -#endif - -FUNC(is_alpha, ISALPHA) -FUNC(is_upper, ISUPPER) -FUNC(is_lower, ISLOWER) -FUNC(is_digit, ISDIGIT) -FUNC(is_xdigit, ISXDIGIT) -FUNC(is_space, ISSPACE) -FUNC(is_punct, ISPUNCT) -FUNC(is_alnum, ISALNUM) -FUNC(is_print, ISPRINT) -FUNC(is_graph, ISGRAPH) -FUNC(is_cntrl, ISCNTRL) - -static int -is_blank (int c) -{ - return (c == ' ' || c == '\t'); -} - -/* The following list maps the names of the Posix named character classes - to predicate functions that determine whether a given character is in - the class. The leading [ has already been eaten by the lexical analyzer. */ -static struct { - const char *name; - int (*pred) (int); -} const prednames[] = { - { ":alpha:]", is_alpha }, - { ":upper:]", is_upper }, - { ":lower:]", is_lower }, - { ":digit:]", is_digit }, - { ":xdigit:]", is_xdigit }, - { ":space:]", is_space }, - { ":punct:]", is_punct }, - { ":alnum:]", is_alnum }, - { ":print:]", is_print }, - { ":graph:]", is_graph }, - { ":cntrl:]", is_cntrl }, - { ":blank:]", is_blank }, - { 0 } -}; - -/* Return non-zero if C is a `word-constituent' byte; zero otherwise. */ -#define IS_WORD_CONSTITUENT(C) (ISALNUM(C) || (C) == '_') - -static int -looking_at (char const *s) -{ - size_t len; - - len = strlen(s); - if (lexleft < len) - return 0; - return strncmp(s, lexptr, len) == 0; -} - -static token -lex (void) -{ - unsigned c, c1, c2; - int backslash = 0, invert; - charclass ccl; - int i; - - /* Basic plan: We fetch a character. If it's a backslash, - we set the backslash flag and go through the loop again. - On the plus side, this avoids having a duplicate of the - main switch inside the backslash case. On the minus side, - it means that just about every case begins with - "if (backslash) ...". */ - for (i = 0; i < 2; ++i) - { - FETCH(c, 0); -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1 && cur_mb_index) - /* If this is a part of a multi-byte character, we must treat - this byte data as a normal character. - e.g. In case of SJIS encoding, some character contains '\', - but they must not be backslash. */ - goto normal_char; -#endif /* MBS_SUPPORT */ - switch (c) - { - case '\\': - if (backslash) - goto normal_char; - if (lexleft == 0) - dfaerror(_("Unfinished \\ escape")); - backslash = 1; - break; - - case '^': - if (backslash) - goto normal_char; - if (syntax_bits & RE_CONTEXT_INDEP_ANCHORS - || lasttok == END - || lasttok == LPAREN - || lasttok == OR) - return lasttok = BEGLINE; - goto normal_char; - - case '$': - if (backslash) - goto normal_char; - if (syntax_bits & RE_CONTEXT_INDEP_ANCHORS - || lexleft == 0 - || (syntax_bits & RE_NO_BK_PARENS - ? lexleft > 0 && *lexptr == ')' - : lexleft > 1 && lexptr[0] == '\\' && lexptr[1] == ')') - || (syntax_bits & RE_NO_BK_VBAR - ? lexleft > 0 && *lexptr == '|' - : lexleft > 1 && lexptr[0] == '\\' && lexptr[1] == '|') - || ((syntax_bits & RE_NEWLINE_ALT) - && lexleft > 0 && *lexptr == '\n')) - return lasttok = ENDLINE; - goto normal_char; - - case '1': - case '2': - case '3': - case '4': - case '5': - case '6': - case '7': - case '8': - case '9': - if (backslash && !(syntax_bits & RE_NO_BK_REFS)) - { - laststart = 0; - return lasttok = BACKREF; - } - goto normal_char; - - case '`': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = BEGLINE; /* FIXME: should be beginning of string */ - goto normal_char; - - case '\'': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = ENDLINE; /* FIXME: should be end of string */ - goto normal_char; - - case '<': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = BEGWORD; - goto normal_char; - - case '>': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = ENDWORD; - goto normal_char; - - case 'b': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = LIMWORD; - goto normal_char; - - case 'B': - if (backslash && !(syntax_bits & RE_NO_GNU_OPS)) - return lasttok = NOTLIMWORD; - goto normal_char; - - case '?': - if (syntax_bits & RE_LIMITED_OPS) - goto normal_char; - if (backslash != ((syntax_bits & RE_BK_PLUS_QM) != 0)) - goto normal_char; - if (!(syntax_bits & RE_CONTEXT_INDEP_OPS) && laststart) - goto normal_char; - return lasttok = QMARK; - - case '*': - if (backslash) - goto normal_char; - if (!(syntax_bits & RE_CONTEXT_INDEP_OPS) && laststart) - goto normal_char; - return lasttok = STAR; - - case '+': - if (syntax_bits & RE_LIMITED_OPS) - goto normal_char; - if (backslash != ((syntax_bits & RE_BK_PLUS_QM) != 0)) - goto normal_char; - if (!(syntax_bits & RE_CONTEXT_INDEP_OPS) && laststart) - goto normal_char; - return lasttok = PLUS; - - case '{': - if (!(syntax_bits & RE_INTERVALS)) - goto normal_char; - if (backslash != ((syntax_bits & RE_NO_BK_BRACES) == 0)) - goto normal_char; - if (!(syntax_bits & RE_CONTEXT_INDEP_OPS) && laststart) - goto normal_char; - - if (syntax_bits & RE_NO_BK_BRACES) - { - /* Scan ahead for a valid interval; if it's not valid, - treat it as a literal '{'. */ - int lo = -1, hi = -1; - char const *p = lexptr; - char const *lim = p + lexleft; - for (; p != lim && ISASCIIDIGIT (*p); p++) - lo = (lo < 0 ? 0 : lo * 10) + *p - '0'; - if (p != lim && *p == ',') - while (++p != lim && ISASCIIDIGIT (*p)) - hi = (hi < 0 ? 0 : hi * 10) + *p - '0'; - else - hi = lo; - if (p == lim || *p != '}' - || lo < 0 || RE_DUP_MAX < hi || (0 <= hi && hi < lo)) - goto normal_char; - } - - minrep = 0; - /* Cases: - {M} - exact count - {M,} - minimum count, maximum is infinity - {M,N} - M through N */ - FETCH(c, _("unfinished repeat count")); - if (ISASCIIDIGIT (c)) - { - minrep = c - '0'; - for (;;) - { - FETCH(c, _("unfinished repeat count")); - if (! ISASCIIDIGIT (c)) - break; - minrep = 10 * minrep + c - '0'; - } - } - else - dfaerror(_("malformed repeat count")); - if (c == ',') - { - FETCH (c, _("unfinished repeat count")); - if (! ISASCIIDIGIT (c)) - maxrep = -1; - else - { - maxrep = c - '0'; - for (;;) - { - FETCH (c, _("unfinished repeat count")); - if (! ISASCIIDIGIT (c)) - break; - maxrep = 10 * maxrep + c - '0'; - } - if (0 <= maxrep && maxrep < minrep) - dfaerror (_("malformed repeat count")); - } - } - else - maxrep = minrep; - if (!(syntax_bits & RE_NO_BK_BRACES)) - { - if (c != '\\') - dfaerror(_("malformed repeat count")); - FETCH(c, _("unfinished repeat count")); - } - if (c != '}') - dfaerror(_("malformed repeat count")); - laststart = 0; - return lasttok = REPMN; - - case '|': - if (syntax_bits & RE_LIMITED_OPS) - goto normal_char; - if (backslash != ((syntax_bits & RE_NO_BK_VBAR) == 0)) - goto normal_char; - laststart = 1; - return lasttok = OR; - - case '\n': - if (syntax_bits & RE_LIMITED_OPS - || backslash - || !(syntax_bits & RE_NEWLINE_ALT)) - goto normal_char; - laststart = 1; - return lasttok = OR; - - case '(': - if (backslash != ((syntax_bits & RE_NO_BK_PARENS) == 0)) - goto normal_char; - ++parens; - laststart = 1; - return lasttok = LPAREN; - - case ')': - if (backslash != ((syntax_bits & RE_NO_BK_PARENS) == 0)) - goto normal_char; - if (parens == 0 && syntax_bits & RE_UNMATCHED_RIGHT_PAREN_ORD) - goto normal_char; - --parens; - laststart = 0; - return lasttok = RPAREN; - - case '.': - if (backslash) - goto normal_char; -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - /* In multibyte environment period must match with a single - character not a byte. So we use ANYCHAR. */ - laststart = 0; - return lasttok = ANYCHAR; - } -#endif /* MBS_SUPPORT */ - zeroset(ccl); - notset(ccl); - if (!(syntax_bits & RE_DOT_NEWLINE)) - clrbit(eolbyte, ccl); - if (syntax_bits & RE_DOT_NOT_NULL) - clrbit('\0', ccl); - laststart = 0; - return lasttok = CSET + charclass_index(ccl); - - case 'w': - case 'W': - if (!backslash || (syntax_bits & RE_NO_GNU_OPS)) - goto normal_char; - zeroset(ccl); - for (c2 = 0; c2 < NOTCHAR; ++c2) - if (IS_WORD_CONSTITUENT(c2)) - setbit(c2, ccl); - if (c == 'W') - notset(ccl); - laststart = 0; - return lasttok = CSET + charclass_index(ccl); - - case '[': - if (backslash) - goto normal_char; - laststart = 0; -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - /* In multibyte environment a bracket expression may contain - multibyte characters, which must be treated as characters - (not bytes). So we parse it by parse_bracket_exp_mb(). */ - parse_bracket_exp_mb(); - return lasttok = MBCSET; - } -#endif - zeroset(ccl); - FETCH(c, _("Unbalanced [")); - if (c == '^') - { - FETCH(c, _("Unbalanced [")); - invert = 1; - } - else - invert = 0; - do - { - /* Nobody ever said this had to be fast. :-) - Note that if we're looking at some other [:...:] - construct, we just treat it as a bunch of ordinary - characters. We can do this because we assume - regex has checked for syntax errors before - dfa is ever called. */ - if (c == '[' && (syntax_bits & RE_CHAR_CLASSES)) - for (c1 = 0; prednames[c1].name; ++c1) - if (looking_at(prednames[c1].name)) - { - int (*pred) (int) = prednames[c1].pred; - - for (c2 = 0; c2 < NOTCHAR; ++c2) - if ((*pred)(c2)) - setbit_case_fold (c2, ccl); - lexptr += strlen(prednames[c1].name); - lexleft -= strlen(prednames[c1].name); - FETCH(c1, _("Unbalanced [")); - goto skip; - } - if (c == '\\' && (syntax_bits & RE_BACKSLASH_ESCAPE_IN_LISTS)) - FETCH(c, _("Unbalanced [")); - FETCH(c1, _("Unbalanced [")); - if (c1 == '-') - { - FETCH(c2, _("Unbalanced [")); - if (c2 == ']') - { - /* In the case [x-], the - is an ordinary hyphen, - which is left in c1, the lookahead character. */ - --lexptr; - ++lexleft; - } - else - { - if (c2 == '\\' - && (syntax_bits & RE_BACKSLASH_ESCAPE_IN_LISTS)) - FETCH(c2, _("Unbalanced [")); - FETCH(c1, _("Unbalanced [")); - if (!hard_LC_COLLATE) { - for (; c <= c2; c++) - setbit_case_fold (c, ccl); - } else { - /* POSIX locales are painful - leave the decision to libc */ - regex_t re; - char expr[6]; /* = { '[', c, '-', c2, ']', '\0' }; */ - - expr[0] = '['; expr[1] = c; expr[2] = '-'; - expr[3] = c2; expr[4] = ']'; expr[5] = '\0'; - if (regcomp (&re, expr, case_fold ? REG_ICASE : 0) == REG_NOERROR) { - for (c = 0; c < NOTCHAR; ++c) { - regmatch_t mat; - char buf[2]; /* = { c, '\0' }; */ - - buf[0] = c; buf[1] = '\0'; - if (regexec (&re, buf, 1, &mat, 0) == REG_NOERROR - && mat.rm_so == 0 && mat.rm_eo == 1) - setbit_case_fold (c, ccl); - } - regfree (&re); - } - } - continue; - } - } - - setbit_case_fold (c, ccl); - - skip: - ; - } - while ((c = c1) != ']'); - if (invert) - { - notset(ccl); - if (syntax_bits & RE_HAT_LISTS_NOT_NEWLINE) - clrbit(eolbyte, ccl); - } - return lasttok = CSET + charclass_index(ccl); - - default: - normal_char: - laststart = 0; - if (case_fold && ISALPHA(c)) - { - zeroset(ccl); - setbit_case_fold (c, ccl); - return lasttok = CSET + charclass_index(ccl); - } - return c; - } - } - - /* The above loop should consume at most a backslash - and some other character. */ - abort(); - return END; /* keeps pedantic compilers happy. */ -} - -/* Recursive descent parser for regular expressions. */ - -static token tok; /* Lookahead token. */ -static int depth; /* Current depth of a hypothetical stack - holding deferred productions. This is - used to determine the depth that will be - required of the real stack later on in - dfaanalyze(). */ - -/* Add the given token to the parse tree, maintaining the depth count and - updating the maximum depth if necessary. */ -static void -addtok (token t) -{ -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - REALLOC_IF_NECESSARY(dfa->multibyte_prop, int, dfa->nmultibyte_prop, - dfa->tindex); - /* Set dfa->multibyte_prop. See struct dfa in dfa.h. */ - if (t == MBCSET) - dfa->multibyte_prop[dfa->tindex] = ((dfa->nmbcsets - 1) << 2) + 3; - else if (t < NOTCHAR) - dfa->multibyte_prop[dfa->tindex] - = (cur_mb_len == 1)? 3 /* single-byte char */ - : (((cur_mb_index == 1)? 1 : 0) /* 1st-byte of multibyte char */ - + ((cur_mb_index == cur_mb_len)? 2 : 0)); /* last-byte */ - else - /* It may be unnecesssary, but it is safer to treat other - symbols as singlebyte characters. */ - dfa->multibyte_prop[dfa->tindex] = 3; - } -#endif - - REALLOC_IF_NECESSARY(dfa->tokens, token, dfa->talloc, dfa->tindex); - dfa->tokens[dfa->tindex++] = t; - - switch (t) - { - case QMARK: - case STAR: - case PLUS: - break; - - case CAT: - case OR: - case ORTOP: - --depth; - break; - - default: - ++dfa->nleaves; - case EMPTY: - ++depth; - break; - } - if (depth > dfa->depth) - dfa->depth = depth; -} - -/* The grammar understood by the parser is as follows. - - regexp: - regexp OR branch - branch - - branch: - branch closure - closure - - closure: - closure QMARK - closure STAR - closure PLUS - closure REPMN - atom - - atom: - - - ANYCHAR - MBCSET - CSET - BACKREF - BEGLINE - ENDLINE - BEGWORD - ENDWORD - LIMWORD - NOTLIMWORD - CRANGE - LPAREN regexp RPAREN - - - The parser builds a parse tree in postfix form in an array of tokens. */ - -static void -atom (void) -{ - if ((tok >= 0 && tok < NOTCHAR) || tok >= CSET || tok == BACKREF - || tok == BEGLINE || tok == ENDLINE || tok == BEGWORD -#ifdef MBS_SUPPORT - || tok == ANYCHAR || tok == MBCSET /* MB_CUR_MAX > 1 */ -#endif /* MBS_SUPPORT */ - || tok == ENDWORD || tok == LIMWORD || tok == NOTLIMWORD) - { - addtok(tok); - tok = lex(); -#ifdef MBS_SUPPORT - /* We treat a multibyte character as a single atom, so that DFA - can treat a multibyte character as a single expression. - - e.g. We construct following tree from "". - - - */ - if (MB_CUR_MAX > 1) - { - while (cur_mb_index > 1 && tok >= 0 && tok < NOTCHAR) - { - addtok(tok); - addtok(CAT); - tok = lex(); - } - } -#endif /* MBS_SUPPORT */ - } - else if (tok == CRANGE) - { - /* A character range like "[a-z]" in a locale other than "C" or - "POSIX". This range might any sequence of one or more - characters. Unfortunately the POSIX locale primitives give - us no practical way to find what character sequences might be - matched. Treat this approximately like "(.\1)" -- i.e. match - one character, and then punt to the full matcher. */ - charclass ccl; - zeroset (ccl); - notset (ccl); - addtok (CSET + charclass_index (ccl)); - addtok (BACKREF); - addtok (CAT); - tok = lex (); - } - else if (tok == LPAREN) - { - tok = lex(); - regexp(0); - if (tok != RPAREN) - dfaerror(_("Unbalanced (")); - tok = lex(); - } - else - addtok(EMPTY); -} - -/* Return the number of tokens in the given subexpression. */ -static int -nsubtoks (int tindex) -{ - int ntoks1; - - switch (dfa->tokens[tindex - 1]) - { - default: - return 1; - case QMARK: - case STAR: - case PLUS: - return 1 + nsubtoks(tindex - 1); - case CAT: - case OR: - case ORTOP: - ntoks1 = nsubtoks(tindex - 1); - return 1 + ntoks1 + nsubtoks(tindex - 1 - ntoks1); - } -} - -/* Copy the given subexpression to the top of the tree. */ -static void -copytoks (int tindex, int ntokens) -{ - int i; - - for (i = 0; i < ntokens; ++i) - addtok(dfa->tokens[tindex + i]); -} - -static void -closure (void) -{ - int tindex, ntokens, i; - - atom(); - while (tok == QMARK || tok == STAR || tok == PLUS || tok == REPMN) - if (tok == REPMN) - { - ntokens = nsubtoks(dfa->tindex); - tindex = dfa->tindex - ntokens; - if (maxrep < 0) - addtok(PLUS); - if (minrep == 0) - addtok(QMARK); - for (i = 1; i < minrep; ++i) - { - copytoks(tindex, ntokens); - addtok(CAT); - } - for (; i < maxrep; ++i) - { - copytoks(tindex, ntokens); - addtok(QMARK); - addtok(CAT); - } - tok = lex(); - } - else - { - addtok(tok); - tok = lex(); - } -} - -static void -branch (void) -{ - closure(); - while (tok != RPAREN && tok != OR && tok >= 0) - { - closure(); - addtok(CAT); - } -} - -static void -regexp (int toplevel) -{ - branch(); - while (tok == OR) - { - tok = lex(); - branch(); - if (toplevel) - addtok(ORTOP); - else - addtok(OR); - } -} - -/* Main entry point for the parser. S is a string to be parsed, len is the - length of the string, so s can include NUL characters. D is a pointer to - the struct dfa to parse into. */ -void -dfaparse (char const *s, size_t len, struct dfa *d) -{ - dfa = d; - lexstart = lexptr = s; - lexleft = len; - lasttok = END; - laststart = 1; - parens = 0; -#if ENABLE_NLS - hard_LC_COLLATE = hard_locale (LC_COLLATE); -#endif -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - cur_mb_index = 0; - cur_mb_len = 0; - memset(&mbs, 0, sizeof(mbstate_t)); - } -#endif /* MBS_SUPPORT */ - - if (! syntax_bits_set) - dfaerror(_("No syntax specified")); - - tok = lex(); - depth = d->depth; - - regexp(1); - - if (tok != END) - dfaerror(_("Unbalanced )")); - - addtok(END - d->nregexps); - addtok(CAT); - - if (d->nregexps) - addtok(ORTOP); - - ++d->nregexps; -} - -/* Some primitives for operating on sets of positions. */ - -/* Copy one set to another; the destination must be large enough. */ -static void -copy (position_set const *src, position_set *dst) -{ - int i; - - for (i = 0; i < src->nelem; ++i) - dst->elems[i] = src->elems[i]; - dst->nelem = src->nelem; -} - -/* Insert a position in a set. Position sets are maintained in sorted - order according to index. If position already exists in the set with - the same index then their constraints are logically or'd together. - S->elems must point to an array large enough to hold the resulting set. */ -static void -insert (position p, position_set *s) -{ - int i; - position t1, t2; - - for (i = 0; i < s->nelem && p.index < s->elems[i].index; ++i) - continue; - if (i < s->nelem && p.index == s->elems[i].index) - s->elems[i].constraint |= p.constraint; - else - { - t1 = p; - ++s->nelem; - while (i < s->nelem) - { - t2 = s->elems[i]; - s->elems[i++] = t1; - t1 = t2; - } - } -} - -/* Merge two sets of positions into a third. The result is exactly as if - the positions of both sets were inserted into an initially empty set. */ -static void -merge (position_set const *s1, position_set const *s2, position_set *m) -{ - int i = 0, j = 0; - - m->nelem = 0; - while (i < s1->nelem && j < s2->nelem) - if (s1->elems[i].index > s2->elems[j].index) - m->elems[m->nelem++] = s1->elems[i++]; - else if (s1->elems[i].index < s2->elems[j].index) - m->elems[m->nelem++] = s2->elems[j++]; - else - { - m->elems[m->nelem] = s1->elems[i++]; - m->elems[m->nelem++].constraint |= s2->elems[j++].constraint; - } - while (i < s1->nelem) - m->elems[m->nelem++] = s1->elems[i++]; - while (j < s2->nelem) - m->elems[m->nelem++] = s2->elems[j++]; -} - -/* Delete a position from a set. */ -static void -delete_pos (position p, position_set *s) -{ - int i; - - for (i = 0; i < s->nelem; ++i) - if (p.index == s->elems[i].index) - break; - if (i < s->nelem) - for (--s->nelem; i < s->nelem; ++i) - s->elems[i] = s->elems[i + 1]; -} - -/* Find the index of the state corresponding to the given position set with - the given preceding context, or create a new state if there is no such - state. Newline and letter tell whether we got here on a newline or - letter, respectively. */ -static int -state_index (struct dfa *d, position_set const *s, int newline, int letter) -{ - int hash = 0; - int constraint; - int i, j; - - newline = newline ? 1 : 0; - letter = letter ? 1 : 0; - - for (i = 0; i < s->nelem; ++i) - hash ^= s->elems[i].index + s->elems[i].constraint; - - /* Try to find a state that exactly matches the proposed one. */ - for (i = 0; i < d->sindex; ++i) - { - if (hash != d->states[i].hash || s->nelem != d->states[i].elems.nelem - || newline != d->states[i].newline || letter != d->states[i].letter) - continue; - for (j = 0; j < s->nelem; ++j) - if (s->elems[j].constraint - != d->states[i].elems.elems[j].constraint - || s->elems[j].index != d->states[i].elems.elems[j].index) - break; - if (j == s->nelem) - return i; - } - - /* We'll have to create a new state. */ - REALLOC_IF_NECESSARY(d->states, dfa_state, d->salloc, d->sindex); - d->states[i].hash = hash; - MALLOC(d->states[i].elems.elems, position, s->nelem); - copy(s, &d->states[i].elems); - d->states[i].newline = newline; - d->states[i].letter = letter; - d->states[i].backref = 0; - d->states[i].constraint = 0; - d->states[i].first_end = 0; -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - d->states[i].mbps.nelem = 0; -#endif - for (j = 0; j < s->nelem; ++j) - if (d->tokens[s->elems[j].index] < 0) - { - constraint = s->elems[j].constraint; - if (SUCCEEDS_IN_CONTEXT(constraint, newline, 0, letter, 0) - || SUCCEEDS_IN_CONTEXT(constraint, newline, 0, letter, 1) - || SUCCEEDS_IN_CONTEXT(constraint, newline, 1, letter, 0) - || SUCCEEDS_IN_CONTEXT(constraint, newline, 1, letter, 1)) - d->states[i].constraint |= constraint; - if (! d->states[i].first_end) - d->states[i].first_end = d->tokens[s->elems[j].index]; - } - else if (d->tokens[s->elems[j].index] == BACKREF) - { - d->states[i].constraint = NO_CONSTRAINT; - d->states[i].backref = 1; - } - - ++d->sindex; - - return i; -} - -/* Find the epsilon closure of a set of positions. If any position of the set - contains a symbol that matches the empty string in some context, replace - that position with the elements of its follow labeled with an appropriate - constraint. Repeat exhaustively until no funny positions are left. - S->elems must be large enough to hold the result. */ -static void -epsclosure (position_set *s, struct dfa const *d) -{ - int i, j; - int *visited; - position p, old; - - MALLOC(visited, int, d->tindex); - for (i = 0; i < d->tindex; ++i) - visited[i] = 0; - - for (i = 0; i < s->nelem; ++i) - if (d->tokens[s->elems[i].index] >= NOTCHAR - && d->tokens[s->elems[i].index] != BACKREF -#ifdef MBS_SUPPORT - && d->tokens[s->elems[i].index] != ANYCHAR - && d->tokens[s->elems[i].index] != MBCSET -#endif - && d->tokens[s->elems[i].index] < CSET) - { - old = s->elems[i]; - p.constraint = old.constraint; - delete_pos(s->elems[i], s); - if (visited[old.index]) - { - --i; - continue; - } - visited[old.index] = 1; - switch (d->tokens[old.index]) - { - case BEGLINE: - p.constraint &= BEGLINE_CONSTRAINT; - break; - case ENDLINE: - p.constraint &= ENDLINE_CONSTRAINT; - break; - case BEGWORD: - p.constraint &= BEGWORD_CONSTRAINT; - break; - case ENDWORD: - p.constraint &= ENDWORD_CONSTRAINT; - break; - case LIMWORD: - p.constraint &= LIMWORD_CONSTRAINT; - break; - case NOTLIMWORD: - p.constraint &= NOTLIMWORD_CONSTRAINT; - break; - default: - break; - } - for (j = 0; j < d->follows[old.index].nelem; ++j) - { - p.index = d->follows[old.index].elems[j].index; - insert(p, s); - } - /* Force rescan to start at the beginning. */ - i = -1; - } - - free(visited); -} - -/* Perform bottom-up analysis on the parse tree, computing various functions. - Note that at this point, we're pretending constructs like \< are real - characters rather than constraints on what can follow them. - - Nullable: A node is nullable if it is at the root of a regexp that can - match the empty string. - * EMPTY leaves are nullable. - * No other leaf is nullable. - * A QMARK or STAR node is nullable. - * A PLUS node is nullable if its argument is nullable. - * A CAT node is nullable if both its arguments are nullable. - * An OR node is nullable if either argument is nullable. - - Firstpos: The firstpos of a node is the set of positions (nonempty leaves) - that could correspond to the first character of a string matching the - regexp rooted at the given node. - * EMPTY leaves have empty firstpos. - * The firstpos of a nonempty leaf is that leaf itself. - * The firstpos of a QMARK, STAR, or PLUS node is the firstpos of its - argument. - * The firstpos of a CAT node is the firstpos of the left argument, union - the firstpos of the right if the left argument is nullable. - * The firstpos of an OR node is the union of firstpos of each argument. - - Lastpos: The lastpos of a node is the set of positions that could - correspond to the last character of a string matching the regexp at - the given node. - * EMPTY leaves have empty lastpos. - * The lastpos of a nonempty leaf is that leaf itself. - * The lastpos of a QMARK, STAR, or PLUS node is the lastpos of its - argument. - * The lastpos of a CAT node is the lastpos of its right argument, union - the lastpos of the left if the right argument is nullable. - * The lastpos of an OR node is the union of the lastpos of each argument. - - Follow: The follow of a position is the set of positions that could - correspond to the character following a character matching the node in - a string matching the regexp. At this point we consider special symbols - that match the empty string in some context to be just normal characters. - Later, if we find that a special symbol is in a follow set, we will - replace it with the elements of its follow, labeled with an appropriate - constraint. - * Every node in the firstpos of the argument of a STAR or PLUS node is in - the follow of every node in the lastpos. - * Every node in the firstpos of the second argument of a CAT node is in - the follow of every node in the lastpos of the first argument. - - Because of the postfix representation of the parse tree, the depth-first - analysis is conveniently done by a linear scan with the aid of a stack. - Sets are stored as arrays of the elements, obeying a stack-like allocation - scheme; the number of elements in each set deeper in the stack can be - used to determine the address of a particular set's array. */ -void -dfaanalyze (struct dfa *d, int searchflag) -{ - int *nullable; /* Nullable stack. */ - int *nfirstpos; /* Element count stack for firstpos sets. */ - position *firstpos; /* Array where firstpos elements are stored. */ - int *nlastpos; /* Element count stack for lastpos sets. */ - position *lastpos; /* Array where lastpos elements are stored. */ - int *nalloc; /* Sizes of arrays allocated to follow sets. */ - position_set tmp; /* Temporary set for merging sets. */ - position_set merged; /* Result of merging sets. */ - int wants_newline; /* True if some position wants newline info. */ - int *o_nullable; - int *o_nfirst, *o_nlast; - position *o_firstpos, *o_lastpos; - int i, j; - position *pos; - -#ifdef DEBUG - fprintf(stderr, "dfaanalyze:\n"); - for (i = 0; i < d->tindex; ++i) - { - fprintf(stderr, " %d:", i); - prtok(d->tokens[i]); - } - putc('\n', stderr); -#endif - - d->searchflag = searchflag; - - MALLOC(nullable, int, d->depth); - o_nullable = nullable; - MALLOC(nfirstpos, int, d->depth); - o_nfirst = nfirstpos; - MALLOC(firstpos, position, d->nleaves); - o_firstpos = firstpos, firstpos += d->nleaves; - MALLOC(nlastpos, int, d->depth); - o_nlast = nlastpos; - MALLOC(lastpos, position, d->nleaves); - o_lastpos = lastpos, lastpos += d->nleaves; - MALLOC(nalloc, int, d->tindex); - for (i = 0; i < d->tindex; ++i) - nalloc[i] = 0; - MALLOC(merged.elems, position, d->nleaves); - - CALLOC(d->follows, position_set, d->tindex); - - for (i = 0; i < d->tindex; ++i) -#ifdef DEBUG - { /* Nonsyntactic #ifdef goo... */ -#endif - switch (d->tokens[i]) - { - case EMPTY: - /* The empty set is nullable. */ - *nullable++ = 1; - - /* The firstpos and lastpos of the empty leaf are both empty. */ - *nfirstpos++ = *nlastpos++ = 0; - break; - - case STAR: - case PLUS: - /* Every element in the firstpos of the argument is in the follow - of every element in the lastpos. */ - tmp.nelem = nfirstpos[-1]; - tmp.elems = firstpos; - pos = lastpos; - for (j = 0; j < nlastpos[-1]; ++j) - { - merge(&tmp, &d->follows[pos[j].index], &merged); - REALLOC_IF_NECESSARY(d->follows[pos[j].index].elems, position, - nalloc[pos[j].index], merged.nelem - 1); - copy(&merged, &d->follows[pos[j].index]); - } - - case QMARK: - /* A QMARK or STAR node is automatically nullable. */ - if (d->tokens[i] != PLUS) - nullable[-1] = 1; - break; - - case CAT: - /* Every element in the firstpos of the second argument is in the - follow of every element in the lastpos of the first argument. */ - tmp.nelem = nfirstpos[-1]; - tmp.elems = firstpos; - pos = lastpos + nlastpos[-1]; - for (j = 0; j < nlastpos[-2]; ++j) - { - merge(&tmp, &d->follows[pos[j].index], &merged); - REALLOC_IF_NECESSARY(d->follows[pos[j].index].elems, position, - nalloc[pos[j].index], merged.nelem - 1); - copy(&merged, &d->follows[pos[j].index]); - } - - /* The firstpos of a CAT node is the firstpos of the first argument, - union that of the second argument if the first is nullable. */ - if (nullable[-2]) - nfirstpos[-2] += nfirstpos[-1]; - else - firstpos += nfirstpos[-1]; - --nfirstpos; - - /* The lastpos of a CAT node is the lastpos of the second argument, - union that of the first argument if the second is nullable. */ - if (nullable[-1]) - nlastpos[-2] += nlastpos[-1]; - else - { - pos = lastpos + nlastpos[-2]; - for (j = nlastpos[-1] - 1; j >= 0; --j) - pos[j] = lastpos[j]; - lastpos += nlastpos[-2]; - nlastpos[-2] = nlastpos[-1]; - } - --nlastpos; - - /* A CAT node is nullable if both arguments are nullable. */ - nullable[-2] = nullable[-1] && nullable[-2]; - --nullable; - break; - - case OR: - case ORTOP: - /* The firstpos is the union of the firstpos of each argument. */ - nfirstpos[-2] += nfirstpos[-1]; - --nfirstpos; - - /* The lastpos is the union of the lastpos of each argument. */ - nlastpos[-2] += nlastpos[-1]; - --nlastpos; - - /* An OR node is nullable if either argument is nullable. */ - nullable[-2] = nullable[-1] || nullable[-2]; - --nullable; - break; - - default: - /* Anything else is a nonempty position. (Note that special - constructs like \< are treated as nonempty strings here; - an "epsilon closure" effectively makes them nullable later. - Backreferences have to get a real position so we can detect - transitions on them later. But they are nullable. */ - *nullable++ = d->tokens[i] == BACKREF; - - /* This position is in its own firstpos and lastpos. */ - *nfirstpos++ = *nlastpos++ = 1; - --firstpos, --lastpos; - firstpos->index = lastpos->index = i; - firstpos->constraint = lastpos->constraint = NO_CONSTRAINT; - - /* Allocate the follow set for this position. */ - nalloc[i] = 1; - MALLOC(d->follows[i].elems, position, nalloc[i]); - break; - } -#ifdef DEBUG - /* ... balance the above nonsyntactic #ifdef goo... */ - fprintf(stderr, "node %d:", i); - prtok(d->tokens[i]); - putc('\n', stderr); - fprintf(stderr, nullable[-1] ? " nullable: yes\n" : " nullable: no\n"); - fprintf(stderr, " firstpos:"); - for (j = nfirstpos[-1] - 1; j >= 0; --j) - { - fprintf(stderr, " %d:", firstpos[j].index); - prtok(d->tokens[firstpos[j].index]); - } - fprintf(stderr, "\n lastpos:"); - for (j = nlastpos[-1] - 1; j >= 0; --j) - { - fprintf(stderr, " %d:", lastpos[j].index); - prtok(d->tokens[lastpos[j].index]); - } - putc('\n', stderr); - } -#endif - - /* For each follow set that is the follow set of a real position, replace - it with its epsilon closure. */ - for (i = 0; i < d->tindex; ++i) - if (d->tokens[i] < NOTCHAR || d->tokens[i] == BACKREF -#ifdef MBS_SUPPORT - || d->tokens[i] == ANYCHAR - || d->tokens[i] == MBCSET -#endif - || d->tokens[i] >= CSET) - { -#ifdef DEBUG - fprintf(stderr, "follows(%d:", i); - prtok(d->tokens[i]); - fprintf(stderr, "):"); - for (j = d->follows[i].nelem - 1; j >= 0; --j) - { - fprintf(stderr, " %d:", d->follows[i].elems[j].index); - prtok(d->tokens[d->follows[i].elems[j].index]); - } - putc('\n', stderr); -#endif - copy(&d->follows[i], &merged); - epsclosure(&merged, d); - if (d->follows[i].nelem < merged.nelem) - REALLOC(d->follows[i].elems, position, merged.nelem); - copy(&merged, &d->follows[i]); - } - - /* Get the epsilon closure of the firstpos of the regexp. The result will - be the set of positions of state 0. */ - merged.nelem = 0; - for (i = 0; i < nfirstpos[-1]; ++i) - insert(firstpos[i], &merged); - epsclosure(&merged, d); - - /* Check if any of the positions of state 0 will want newline context. */ - wants_newline = 0; - for (i = 0; i < merged.nelem; ++i) - if (PREV_NEWLINE_DEPENDENT(merged.elems[i].constraint)) - wants_newline = 1; - - /* Build the initial state. */ - d->salloc = 1; - d->sindex = 0; - MALLOC(d->states, dfa_state, d->salloc); - state_index(d, &merged, wants_newline, 0); - - free(o_nullable); - free(o_nfirst); - free(o_firstpos); - free(o_nlast); - free(o_lastpos); - free(nalloc); - free(merged.elems); -} - -/* Find, for each character, the transition out of state s of d, and store - it in the appropriate slot of trans. - - We divide the positions of s into groups (positions can appear in more - than one group). Each group is labeled with a set of characters that - every position in the group matches (taking into account, if necessary, - preceding context information of s). For each group, find the union - of the its elements' follows. This set is the set of positions of the - new state. For each character in the group's label, set the transition - on this character to be to a state corresponding to the set's positions, - and its associated backward context information, if necessary. - - If we are building a searching matcher, we include the positions of state - 0 in every state. - - The collection of groups is constructed by building an equivalence-class - partition of the positions of s. - - For each position, find the set of characters C that it matches. Eliminate - any characters from C that fail on grounds of backward context. - - Search through the groups, looking for a group whose label L has nonempty - intersection with C. If L - C is nonempty, create a new group labeled - L - C and having the same positions as the current group, and set L to - the intersection of L and C. Insert the position in this group, set - C = C - L, and resume scanning. - - If after comparing with every group there are characters remaining in C, - create a new group labeled with the characters of C and insert this - position in that group. */ -void -dfastate (int s, struct dfa *d, int trans[]) -{ - position_set grps[NOTCHAR]; /* As many as will ever be needed. */ - charclass labels[NOTCHAR]; /* Labels corresponding to the groups. */ - int ngrps = 0; /* Number of groups actually used. */ - position pos; /* Current position being considered. */ - charclass matches; /* Set of matching characters. */ - int matchesf; /* True if matches is nonempty. */ - charclass intersect; /* Intersection with some label set. */ - int intersectf; /* True if intersect is nonempty. */ - charclass leftovers; /* Stuff in the label that didn't match. */ - int leftoversf; /* True if leftovers is nonempty. */ - static charclass letters; /* Set of characters considered letters. */ - static charclass newline; /* Set of characters that aren't newline. */ - position_set follows; /* Union of the follows of some group. */ - position_set tmp; /* Temporary space for merging sets. */ - int state; /* New state. */ - int wants_newline; /* New state wants to know newline context. */ - int state_newline; /* New state on a newline transition. */ - int wants_letter; /* New state wants to know letter context. */ - int state_letter; /* New state on a letter transition. */ - static int initialized; /* Flag for static initialization. */ -#ifdef MBS_SUPPORT - int next_isnt_1st_byte = 0; /* Flag If we can't add state0. */ -#endif - int i, j, k; - - /* Initialize the set of letters, if necessary. */ - if (! initialized) - { - initialized = 1; - for (i = 0; i < NOTCHAR; ++i) - if (IS_WORD_CONSTITUENT(i)) - setbit(i, letters); - setbit(eolbyte, newline); - } - - zeroset(matches); - - for (i = 0; i < d->states[s].elems.nelem; ++i) - { - pos = d->states[s].elems.elems[i]; - if (d->tokens[pos.index] >= 0 && d->tokens[pos.index] < NOTCHAR) - setbit(d->tokens[pos.index], matches); - else if (d->tokens[pos.index] >= CSET) - copyset(d->charclasses[d->tokens[pos.index] - CSET], matches); -#ifdef MBS_SUPPORT - else if (d->tokens[pos.index] == ANYCHAR - || d->tokens[pos.index] == MBCSET) - /* MB_CUR_MAX > 1 */ - { - /* ANYCHAR and MBCSET must match with a single character, so we - must put it to d->states[s].mbps, which contains the positions - which can match with a single character not a byte. */ - if (d->states[s].mbps.nelem == 0) - { - MALLOC(d->states[s].mbps.elems, position, - d->states[s].elems.nelem); - } - insert(pos, &(d->states[s].mbps)); - continue; - } -#endif /* MBS_SUPPORT */ - else - continue; - - /* Some characters may need to be eliminated from matches because - they fail in the current context. */ - if (pos.constraint != 0xFF) - { - if (! MATCHES_NEWLINE_CONTEXT(pos.constraint, - d->states[s].newline, 1)) - clrbit(eolbyte, matches); - if (! MATCHES_NEWLINE_CONTEXT(pos.constraint, - d->states[s].newline, 0)) - for (j = 0; j < CHARCLASS_INTS; ++j) - matches[j] &= newline[j]; - if (! MATCHES_LETTER_CONTEXT(pos.constraint, - d->states[s].letter, 1)) - for (j = 0; j < CHARCLASS_INTS; ++j) - matches[j] &= ~letters[j]; - if (! MATCHES_LETTER_CONTEXT(pos.constraint, - d->states[s].letter, 0)) - for (j = 0; j < CHARCLASS_INTS; ++j) - matches[j] &= letters[j]; - - /* If there are no characters left, there's no point in going on. */ - for (j = 0; j < CHARCLASS_INTS && !matches[j]; ++j) - continue; - if (j == CHARCLASS_INTS) - continue; - } - - for (j = 0; j < ngrps; ++j) - { - /* If matches contains a single character only, and the current - group's label doesn't contain that character, go on to the - next group. */ - if (d->tokens[pos.index] >= 0 && d->tokens[pos.index] < NOTCHAR - && !tstbit(d->tokens[pos.index], labels[j])) - continue; - - /* Check if this group's label has a nonempty intersection with - matches. */ - intersectf = 0; - for (k = 0; k < CHARCLASS_INTS; ++k) - (intersect[k] = matches[k] & labels[j][k]) ? (intersectf = 1) : 0; - if (! intersectf) - continue; - - /* It does; now find the set differences both ways. */ - leftoversf = matchesf = 0; - for (k = 0; k < CHARCLASS_INTS; ++k) - { - /* Even an optimizing compiler can't know this for sure. */ - int match = matches[k], label = labels[j][k]; - - (leftovers[k] = ~match & label) ? (leftoversf = 1) : 0; - (matches[k] = match & ~label) ? (matchesf = 1) : 0; - } - - /* If there were leftovers, create a new group labeled with them. */ - if (leftoversf) - { - copyset(leftovers, labels[ngrps]); - copyset(intersect, labels[j]); - MALLOC(grps[ngrps].elems, position, d->nleaves); - copy(&grps[j], &grps[ngrps]); - ++ngrps; - } - - /* Put the position in the current group. Note that there is no - reason to call insert() here. */ - grps[j].elems[grps[j].nelem++] = pos; - - /* If every character matching the current position has been - accounted for, we're done. */ - if (! matchesf) - break; - } - - /* If we've passed the last group, and there are still characters - unaccounted for, then we'll have to create a new group. */ - if (j == ngrps) - { - copyset(matches, labels[ngrps]); - zeroset(matches); - MALLOC(grps[ngrps].elems, position, d->nleaves); - grps[ngrps].nelem = 1; - grps[ngrps].elems[0] = pos; - ++ngrps; - } - } - - MALLOC(follows.elems, position, d->nleaves); - MALLOC(tmp.elems, position, d->nleaves); - - /* If we are a searching matcher, the default transition is to a state - containing the positions of state 0, otherwise the default transition - is to fail miserably. */ - if (d->searchflag) - { - wants_newline = 0; - wants_letter = 0; - for (i = 0; i < d->states[0].elems.nelem; ++i) - { - if (PREV_NEWLINE_DEPENDENT(d->states[0].elems.elems[i].constraint)) - wants_newline = 1; - if (PREV_LETTER_DEPENDENT(d->states[0].elems.elems[i].constraint)) - wants_letter = 1; - } - copy(&d->states[0].elems, &follows); - state = state_index(d, &follows, 0, 0); - if (wants_newline) - state_newline = state_index(d, &follows, 1, 0); - else - state_newline = state; - if (wants_letter) - state_letter = state_index(d, &follows, 0, 1); - else - state_letter = state; - for (i = 0; i < NOTCHAR; ++i) - trans[i] = (IS_WORD_CONSTITUENT(i)) ? state_letter : state; - trans[eolbyte] = state_newline; - } - else - for (i = 0; i < NOTCHAR; ++i) - trans[i] = -1; - - for (i = 0; i < ngrps; ++i) - { - follows.nelem = 0; - - /* Find the union of the follows of the positions of the group. - This is a hideously inefficient loop. Fix it someday. */ - for (j = 0; j < grps[i].nelem; ++j) - for (k = 0; k < d->follows[grps[i].elems[j].index].nelem; ++k) - insert(d->follows[grps[i].elems[j].index].elems[k], &follows); - -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - /* If a token in follows.elems is not 1st byte of a multibyte - character, or the states of follows must accept the bytes - which are not 1st byte of the multibyte character. - Then, if a state of follows encounter a byte, it must not be - a 1st byte of a multibyte character nor singlebyte character. - We cansel to add state[0].follows to next state, because - state[0] must accept 1st-byte - - For example, we assume is a certain singlebyte - character, is a certain multibyte character, and the - codepoint of equals the 2nd byte of the codepoint of - . - When state[0] accepts , state[i] transit to state[i+1] - by accepting accepts 1st byte of , and state[i+1] - accepts 2nd byte of , if state[i+1] encounter the - codepoint of , it must not be but 2nd byte of - , so we can not add state[0]. */ - - next_isnt_1st_byte = 0; - for (j = 0; j < follows.nelem; ++j) - { - if (!(d->multibyte_prop[follows.elems[j].index] & 1)) - { - next_isnt_1st_byte = 1; - break; - } - } - } -#endif - - /* If we are building a searching matcher, throw in the positions - of state 0 as well. */ -#ifdef MBS_SUPPORT - if (d->searchflag && (MB_CUR_MAX == 1 || !next_isnt_1st_byte)) -#else - if (d->searchflag) -#endif - for (j = 0; j < d->states[0].elems.nelem; ++j) - insert(d->states[0].elems.elems[j], &follows); - - /* Find out if the new state will want any context information. */ - wants_newline = 0; - if (tstbit(eolbyte, labels[i])) - for (j = 0; j < follows.nelem; ++j) - if (PREV_NEWLINE_DEPENDENT(follows.elems[j].constraint)) - wants_newline = 1; - - wants_letter = 0; - for (j = 0; j < CHARCLASS_INTS; ++j) - if (labels[i][j] & letters[j]) - break; - if (j < CHARCLASS_INTS) - for (j = 0; j < follows.nelem; ++j) - if (PREV_LETTER_DEPENDENT(follows.elems[j].constraint)) - wants_letter = 1; - - /* Find the state(s) corresponding to the union of the follows. */ - state = state_index(d, &follows, 0, 0); - if (wants_newline) - state_newline = state_index(d, &follows, 1, 0); - else - state_newline = state; - if (wants_letter) - state_letter = state_index(d, &follows, 0, 1); - else - state_letter = state; - - /* Set the transitions for each character in the current label. */ - for (j = 0; j < CHARCLASS_INTS; ++j) - for (k = 0; k < INTBITS; ++k) - if (labels[i][j] & 1 << k) - { - int c = j * INTBITS + k; - - if (c == eolbyte) - trans[c] = state_newline; - else if (IS_WORD_CONSTITUENT(c)) - trans[c] = state_letter; - else if (c < NOTCHAR) - trans[c] = state; - } - } - - for (i = 0; i < ngrps; ++i) - free(grps[i].elems); - free(follows.elems); - free(tmp.elems); -} - -/* Some routines for manipulating a compiled dfa's transition tables. - Each state may or may not have a transition table; if it does, and it - is a non-accepting state, then d->trans[state] points to its table. - If it is an accepting state then d->fails[state] points to its table. - If it has no table at all, then d->trans[state] is NULL. - TODO: Improve this comment, get rid of the unnecessary redundancy. */ - -static void -build_state (int s, struct dfa *d) -{ - int *trans; /* The new transition table. */ - int i; - - /* Set an upper limit on the number of transition tables that will ever - exist at once. 1024 is arbitrary. The idea is that the frequently - used transition tables will be quickly rebuilt, whereas the ones that - were only needed once or twice will be cleared away. */ - if (d->trcount >= 1024) - { - for (i = 0; i < d->tralloc; ++i) - if (d->trans[i]) - { - free((ptr_t) d->trans[i]); - d->trans[i] = NULL; - } - else if (d->fails[i]) - { - free((ptr_t) d->fails[i]); - d->fails[i] = NULL; - } - d->trcount = 0; - } - - ++d->trcount; - - /* Set up the success bits for this state. */ - d->success[s] = 0; - if (ACCEPTS_IN_CONTEXT(d->states[s].newline, 1, d->states[s].letter, 0, - s, *d)) - d->success[s] |= 4; - if (ACCEPTS_IN_CONTEXT(d->states[s].newline, 0, d->states[s].letter, 1, - s, *d)) - d->success[s] |= 2; - if (ACCEPTS_IN_CONTEXT(d->states[s].newline, 0, d->states[s].letter, 0, - s, *d)) - d->success[s] |= 1; - - MALLOC(trans, int, NOTCHAR); - dfastate(s, d, trans); - - /* Now go through the new transition table, and make sure that the trans - and fail arrays are allocated large enough to hold a pointer for the - largest state mentioned in the table. */ - for (i = 0; i < NOTCHAR; ++i) - if (trans[i] >= d->tralloc) - { - int oldalloc = d->tralloc; - - while (trans[i] >= d->tralloc) - d->tralloc *= 2; - REALLOC(d->realtrans, int *, d->tralloc + 1); - d->trans = d->realtrans + 1; - REALLOC(d->fails, int *, d->tralloc); - REALLOC(d->success, int, d->tralloc); - while (oldalloc < d->tralloc) - { - d->trans[oldalloc] = NULL; - d->fails[oldalloc++] = NULL; - } - } - - /* Newline is a sentinel. */ - trans[eolbyte] = -1; - - if (ACCEPTING(s, *d)) - d->fails[s] = trans; - else - d->trans[s] = trans; -} - -static void -build_state_zero (struct dfa *d) -{ - d->tralloc = 1; - d->trcount = 0; - CALLOC(d->realtrans, int *, d->tralloc + 1); - d->trans = d->realtrans + 1; - CALLOC(d->fails, int *, d->tralloc); - MALLOC(d->success, int, d->tralloc); - build_state(0, d); -} - -#ifdef MBS_SUPPORT -/* Multibyte character handling sub-routins for dfaexec. */ - -/* Initial state may encounter the byte which is not a singlebyte character - nor 1st byte of a multibyte character. But it is incorrect for initial - state to accept such a byte. - For example, in sjis encoding the regular expression like "\\" accepts - the codepoint 0x5c, but should not accept the 2nd byte of the codepoint - 0x815c. Then Initial state must skip the bytes which are not a singlebyte - character nor 1st byte of a multibyte character. */ -#define SKIP_REMAINS_MB_IF_INITIAL_STATE(s, p) \ - if (s == 0) \ - { \ - while (inputwcs[p - buf_begin] == 0 \ - && mblen_buf[p - buf_begin] > 0 \ - && p < buf_end) \ - ++p; \ - if (p >= end) \ - { \ - free(mblen_buf); \ - free(inputwcs); \ - return (size_t) -1; \ - } \ - } - -static void -realloc_trans_if_necessary(struct dfa *d, int new_state) -{ - /* Make sure that the trans and fail arrays are allocated large enough - to hold a pointer for the new state. */ - if (new_state >= d->tralloc) - { - int oldalloc = d->tralloc; - - while (new_state >= d->tralloc) - d->tralloc *= 2; - REALLOC(d->realtrans, int *, d->tralloc + 1); - d->trans = d->realtrans + 1; - REALLOC(d->fails, int *, d->tralloc); - REALLOC(d->success, int, d->tralloc); - while (oldalloc < d->tralloc) - { - d->trans[oldalloc] = NULL; - d->fails[oldalloc++] = NULL; - } - } -} - -/* Return values of transit_state_singlebyte(), and - transit_state_consume_1char. */ -typedef enum -{ - TRANSIT_STATE_IN_PROGRESS, /* State transition has not finished. */ - TRANSIT_STATE_DONE, /* State transition has finished. */ - TRANSIT_STATE_END_BUFFER /* Reach the end of the buffer. */ -} status_transit_state; - -/* Consume a single byte and transit state from 's' to '*next_state'. - This function is almost same as the state transition routin in dfaexec(). - But state transition is done just once, otherwise matching succeed or - reach the end of the buffer. */ -static status_transit_state -transit_state_singlebyte (struct dfa *d, int s, unsigned char const *p, - int *next_state) -{ - int *t; - int works = s; - - status_transit_state rval = TRANSIT_STATE_IN_PROGRESS; - - while (rval == TRANSIT_STATE_IN_PROGRESS) - { - if ((t = d->trans[works]) != NULL) - { - works = t[*p]; - rval = TRANSIT_STATE_DONE; - if (works < 0) - works = 0; - } - else if (works < 0) - { - if (p == buf_end) - /* At the moment, it must not happen. */ - return TRANSIT_STATE_END_BUFFER; - works = 0; - } - else if (d->fails[works]) - { - works = d->fails[works][*p]; - rval = TRANSIT_STATE_DONE; - } - else - { - build_state(works, d); - } - } - *next_state = works; - return rval; -} - -/* Check whether period can match or not in the current context. If it can, - return the amount of the bytes with which period can match, otherwise - return 0. - `pos' is the position of the period. `index' is the index from the - buf_begin, and it is the current position in the buffer. */ -static int -match_anychar (struct dfa *d, int s, position pos, int index) -{ - int newline = 0; - int letter = 0; - wchar_t wc; - int mbclen; - - wc = inputwcs[index]; - mbclen = (mblen_buf[index] == 0)? 1 : mblen_buf[index]; - - /* Check context. */ - if (wc == (wchar_t)eolbyte) - { - if (!(syntax_bits & RE_DOT_NEWLINE)) - return 0; - newline = 1; - } - else if (wc == (wchar_t)'\0') - { - if (syntax_bits & RE_DOT_NOT_NULL) - return 0; - newline = 1; - } - - if (iswalnum(wc) || wc == L'_') - letter = 1; - - if (!SUCCEEDS_IN_CONTEXT(pos.constraint, d->states[s].newline, - newline, d->states[s].letter, letter)) - return 0; - - return mbclen; -} - -/* Check whether bracket expression can match or not in the current context. - If it can, return the amount of the bytes with which expression can match, - otherwise return 0. - `pos' is the position of the bracket expression. `index' is the index - from the buf_begin, and it is the current position in the buffer. */ -int -match_mb_charset (struct dfa *d, int s, position pos, int index) -{ - int i; - int match; /* Flag which represent that matching succeed. */ - int match_len; /* Length of the character (or collating element) - with which this operator match. */ - int op_len; /* Length of the operator. */ - char buffer[128]; - wchar_t wcbuf[6]; - - /* Pointer to the structure to which we are currently reffering. */ - struct mb_char_classes *work_mbc; - - int newline = 0; - int letter = 0; - wchar_t wc; /* Current reffering character. */ - - wc = inputwcs[index]; - - /* Check context. */ - if (wc == (wchar_t)eolbyte) - { - if (!(syntax_bits & RE_DOT_NEWLINE)) - return 0; - newline = 1; - } - else if (wc == (wchar_t)'\0') - { - if (syntax_bits & RE_DOT_NOT_NULL) - return 0; - newline = 1; - } - if (iswalnum(wc) || wc == L'_') - letter = 1; - if (!SUCCEEDS_IN_CONTEXT(pos.constraint, d->states[s].newline, - newline, d->states[s].letter, letter)) - return 0; - - /* Assign the current reffering operator to work_mbc. */ - work_mbc = &(d->mbcsets[(d->multibyte_prop[pos.index]) >> 2]); - match = !work_mbc->invert; - match_len = (mblen_buf[index] == 0)? 1 : mblen_buf[index]; - - /* match with a character class? */ - for (i = 0; inch_classes; i++) - { - if (iswctype((wint_t)wc, work_mbc->ch_classes[i])) - goto charset_matched; - } - - strncpy(buffer, (const char *) (buf_begin + index), match_len); - buffer[match_len] = '\0'; - - /* match with an equivalent class? */ - for (i = 0; inequivs; i++) - { - op_len = strlen(work_mbc->equivs[i]); - strncpy(buffer, (const char *) (buf_begin + index), op_len); - buffer[op_len] = '\0'; - if (strcoll(work_mbc->equivs[i], buffer) == 0) - { - match_len = op_len; - goto charset_matched; - } - } - - /* match with a collating element? */ - for (i = 0; incoll_elems; i++) - { - op_len = strlen(work_mbc->coll_elems[i]); - strncpy(buffer, (const char *) (buf_begin + index), op_len); - buffer[op_len] = '\0'; - - if (strcoll(work_mbc->coll_elems[i], buffer) == 0) - { - match_len = op_len; - goto charset_matched; - } - } - - wcbuf[0] = wc; - wcbuf[1] = wcbuf[3] = wcbuf[5] = '\0'; - - /* match with a range? */ - for (i = 0; inranges; i++) - { - wcbuf[2] = work_mbc->range_sts[i]; - wcbuf[4] = work_mbc->range_ends[i]; - - if (wcscoll(wcbuf, wcbuf+2) >= 0 && - wcscoll(wcbuf+4, wcbuf) >= 0) - goto charset_matched; - } - - /* match with a character? */ - for (i = 0; inchars; i++) - { - if (wc == work_mbc->chars[i]) - goto charset_matched; - } - - match = !match; - - charset_matched: - return match ? match_len : 0; -} - -/* Check each of `d->states[s].mbps.elem' can match or not. Then return the - array which corresponds to `d->states[s].mbps.elem' and each element of - the array contains the amount of the bytes with which the element can - match. - `index' is the index from the buf_begin, and it is the current position - in the buffer. - Caller MUST free the array which this function return. */ -static int* -check_matching_with_multibyte_ops (struct dfa *d, int s, int index) -{ - int i; - int* rarray; - - MALLOC(rarray, int, d->states[s].mbps.nelem); - for (i = 0; i < d->states[s].mbps.nelem; ++i) - { - position pos = d->states[s].mbps.elems[i]; - switch(d->tokens[pos.index]) - { - case ANYCHAR: - rarray[i] = match_anychar(d, s, pos, index); - break; - case MBCSET: - rarray[i] = match_mb_charset(d, s, pos, index); - break; - default: - break; /* can not happen. */ - } - } - return rarray; -} - -/* Consume a single character and enumerate all of the positions which can - be next position from the state `s'. - `match_lens' is the input. It can be NULL, but it can also be the output - of check_matching_with_multibyte_ops() for optimization. - `mbclen' and `pps' are the output. `mbclen' is the length of the - character consumed, and `pps' is the set this function enumerate. */ -static status_transit_state -transit_state_consume_1char (struct dfa *d, int s, unsigned char const **pp, - int *match_lens, int *mbclen, position_set *pps) -{ - int i, j; - int s1, s2; - int* work_mbls; - status_transit_state rs = TRANSIT_STATE_DONE; - - /* Calculate the length of the (single/multi byte) character - to which p points. */ - *mbclen = (mblen_buf[*pp - buf_begin] == 0)? 1 - : mblen_buf[*pp - buf_begin]; - - /* Calculate the state which can be reached from the state `s' by - consuming `*mbclen' single bytes from the buffer. */ - s1 = s; - for (i = 0; i < *mbclen; i++) - { - s2 = s1; - rs = transit_state_singlebyte(d, s2, (*pp)++, &s1); - } - /* Copy the positions contained by `s1' to the set `pps'. */ - copy(&(d->states[s1].elems), pps); - - /* Check (inputed)match_lens, and initialize if it is NULL. */ - if (match_lens == NULL && d->states[s].mbps.nelem != 0) - work_mbls = check_matching_with_multibyte_ops(d, s, *pp - buf_begin); - else - work_mbls = match_lens; - - /* Add all of the positions which can be reached from `s' by consuming - a single character. */ - for (i = 0; i < d->states[s].mbps.nelem ; i++) - { - if (work_mbls[i] == *mbclen) - for (j = 0; j < d->follows[d->states[s].mbps.elems[i].index].nelem; - j++) - insert(d->follows[d->states[s].mbps.elems[i].index].elems[j], - pps); - } - - if (match_lens == NULL && work_mbls != NULL) - free(work_mbls); - return rs; -} - -/* Transit state from s, then return new state and update the pointer of the - buffer. This function is for some operator which can match with a multi- - byte character or a collating element(which may be multi characters). */ -static int -transit_state (struct dfa *d, int s, unsigned char const **pp) -{ - int s1; - int mbclen; /* The length of current input multibyte character. */ - int maxlen = 0; - int i, j; - int *match_lens = NULL; - int nelem = d->states[s].mbps.nelem; /* Just a alias. */ - position_set follows; - unsigned char const *p1 = *pp; - status_transit_state rs; - wchar_t wc; - - if (nelem > 0) - /* This state has (a) multibyte operator(s). - We check whether each of them can match or not. */ - { - /* Note: caller must free the return value of this function. */ - match_lens = check_matching_with_multibyte_ops(d, s, *pp - buf_begin); - - for (i = 0; i < nelem; i++) - /* Search the operator which match the longest string, - in this state. */ - { - if (match_lens[i] > maxlen) - maxlen = match_lens[i]; - } - } - - if (nelem == 0 || maxlen == 0) - /* This state has no multibyte operator which can match. - We need to check only one singlebyte character. */ - { - status_transit_state rs; - rs = transit_state_singlebyte(d, s, *pp, &s1); - - /* We must update the pointer if state transition succeeded. */ - if (rs == TRANSIT_STATE_DONE) - ++*pp; - - if (match_lens != NULL) - free(match_lens); - return s1; - } - - /* This state has some operators which can match a multibyte character. */ - follows.nelem = 0; - MALLOC(follows.elems, position, d->nleaves); - - /* `maxlen' may be longer than the length of a character, because it may - not be a character but a (multi character) collating element. - We enumerate all of the positions which `s' can reach by consuming - `maxlen' bytes. */ - rs = transit_state_consume_1char(d, s, pp, match_lens, &mbclen, &follows); - - wc = inputwcs[*pp - mbclen - buf_begin]; - s1 = state_index(d, &follows, wc == L'\n', iswalnum(wc)); - realloc_trans_if_necessary(d, s1); - - while (*pp - p1 < maxlen) - { - follows.nelem = 0; - rs = transit_state_consume_1char(d, s1, pp, NULL, &mbclen, &follows); - - for (i = 0; i < nelem ; i++) - { - if (match_lens[i] == *pp - p1) - for (j = 0; - j < d->follows[d->states[s1].mbps.elems[i].index].nelem; j++) - insert(d->follows[d->states[s1].mbps.elems[i].index].elems[j], - &follows); - } - - wc = inputwcs[*pp - mbclen - buf_begin]; - s1 = state_index(d, &follows, wc == L'\n', iswalnum(wc)); - realloc_trans_if_necessary(d, s1); - } - free(match_lens); - free(follows.elems); - return s1; -} - -#endif - -/* Search through a buffer looking for a match to the given struct dfa. - Find the first occurrence of a string matching the regexp in the buffer, - and the shortest possible version thereof. Return the offset of the first - character after the match, or (size_t) -1 if none is found. BEGIN points to - the beginning of the buffer, and SIZE is the size of the buffer. If SIZE - is nonzero, BEGIN[SIZE - 1] must be a newline. BACKREF points to a place - where we're supposed to store a 1 if backreferencing happened and the - match needs to be verified by a backtracking matcher. Otherwise - we store a 0 in *backref. */ -size_t -dfaexec (struct dfa *d, char const *begin, size_t size, int *backref) -{ - register int s; /* Current state. */ - register unsigned char const *p; /* Current input character. */ - register unsigned char const *end; /* One past the last input character. */ - register int **trans, *t; /* Copy of d->trans so it can be optimized - into a register. */ - register unsigned char eol = eolbyte; /* Likewise for eolbyte. */ - static int sbit[NOTCHAR]; /* Table for anding with d->success. */ - static int sbit_init; - - if (! sbit_init) - { - int i; - - sbit_init = 1; - for (i = 0; i < NOTCHAR; ++i) - sbit[i] = (IS_WORD_CONSTITUENT(i)) ? 2 : 1; - sbit[eol] = 4; - } - - if (! d->tralloc) - build_state_zero(d); - - s = 0; - p = (unsigned char const *) begin; - end = p + size; - trans = d->trans; - -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - int remain_bytes, i; - buf_begin = (unsigned char const *)begin; - buf_end = end; - - /* initialize mblen_buf, and inputwcs. */ - MALLOC(mblen_buf, unsigned char, end - (unsigned char const *)begin + 2); - MALLOC(inputwcs, wchar_t, end - (unsigned char const *)begin + 2); - memset(&mbs, 0, sizeof(mbstate_t)); - remain_bytes = 0; - for (i = 0; i < end - (unsigned char const *)begin + 1; i++) - { - if (remain_bytes == 0) - { - remain_bytes - = mbrtowc(inputwcs + i, begin + i, - end - (unsigned char const *)begin - i + 1, &mbs); - if (remain_bytes <= 1) - { - remain_bytes = 0; - inputwcs[i] = (wchar_t)begin[i]; - mblen_buf[i] = 0; - } - else - { - mblen_buf[i] = remain_bytes; - remain_bytes--; - } - } - else - { - mblen_buf[i] = remain_bytes; - inputwcs[i] = 0; - remain_bytes--; - } - } - mblen_buf[i] = 0; - inputwcs[i] = 0; /* sentinel */ - } -#endif /* MBS_SUPPORT */ - - for (;;) - { -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - while ((t = trans[s])) - { - if (p == end) - { - free(mblen_buf); - free(inputwcs); - return (size_t) -1; - } - if (d->states[s].mbps.nelem != 0) - { - /* Can match with a multibyte character( and multi character - collating element). */ - unsigned char const *nextp; - - SKIP_REMAINS_MB_IF_INITIAL_STATE(s, p); - - nextp = p; - s = transit_state(d, s, &nextp); - p = nextp; - - /* Trans table might be updated. */ - trans = d->trans; - } - else - { - SKIP_REMAINS_MB_IF_INITIAL_STATE(s, p); - s = t[*p++]; - } - } - else -#endif /* MBS_SUPPORT */ - while ((t = trans[s])) - { - if (p == end) - return (size_t) -1; - s = t[*p++]; - } - - if (s < 0) - { - if (p == end) - { -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - free(mblen_buf); - free(inputwcs); - } -#endif /* MBS_SUPPORT */ - return (size_t) -1; - } - s = 0; - } - else if ((t = d->fails[s])) - { - if (d->success[s] & sbit[*p]) - { - if (backref) - *backref = (d->states[s].backref != 0); -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - free(mblen_buf); - free(inputwcs); - } -#endif /* MBS_SUPPORT */ - return (char const *) p - begin; - } - -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - SKIP_REMAINS_MB_IF_INITIAL_STATE(s, p); - if (d->states[s].mbps.nelem != 0) - { - /* Can match with a multibyte character( and multi - character collating element). */ - unsigned char const *nextp; - nextp = p; - s = transit_state(d, s, &nextp); - p = nextp; - - /* Trans table might be updated. */ - trans = d->trans; - } - else - s = t[*p++]; - } - else -#endif /* MBS_SUPPORT */ - s = t[*p++]; - } - else - { - build_state(s, d); - trans = d->trans; - } - } -} - -/* Initialize the components of a dfa that the other routines don't - initialize for themselves. */ -void -dfainit (struct dfa *d) -{ - d->calloc = 1; - MALLOC(d->charclasses, charclass, d->calloc); - d->cindex = 0; - - d->talloc = 1; - MALLOC(d->tokens, token, d->talloc); - d->tindex = d->depth = d->nleaves = d->nregexps = 0; -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - d->nmultibyte_prop = 1; - MALLOC(d->multibyte_prop, int, d->nmultibyte_prop); - d->nmbcsets = 0; - d->mbcsets_alloc = 1; - MALLOC(d->mbcsets, struct mb_char_classes, d->mbcsets_alloc); - } -#endif - - d->searchflag = 0; - d->tralloc = 0; - - d->musts = 0; -} - -/* Parse and analyze a single string of the given length. */ -void -dfacomp (char const *s, size_t len, struct dfa *d, int searchflag) -{ - if (case_fold) /* dummy folding in service of dfamust() */ - { - char *lcopy; - int i; - - lcopy = (char *) malloc(len); - if (!lcopy) - dfaerror(_("out of memory")); - - /* This is a kludge. */ - case_fold = 0; - for (i = 0; i < len; ++i) - if (ISUPPER ((unsigned char) s[i])) - lcopy[i] = tolower ((unsigned char) s[i]); - else - lcopy[i] = s[i]; - - dfainit(d); - dfaparse(lcopy, len, d); - free(lcopy); - dfamust(d); - d->cindex = d->tindex = d->depth = d->nleaves = d->nregexps = 0; - case_fold = 1; - dfaparse(s, len, d); - dfaanalyze(d, searchflag); - } - else - { - dfainit(d); - dfaparse(s, len, d); - dfamust(d); - dfaanalyze(d, searchflag); - } -} - -/* Free the storage held by the components of a dfa. */ -void -dfafree (struct dfa *d) -{ - int i; - struct dfamust *dm, *ndm; - - free((ptr_t) d->charclasses); - free((ptr_t) d->tokens); - -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - { - free((ptr_t) d->multibyte_prop); - for (i = 0; i < d->nmbcsets; ++i) - { - int j; - struct mb_char_classes *p = &(d->mbcsets[i]); - if (p->chars != NULL) - free(p->chars); - if (p->ch_classes != NULL) - free(p->ch_classes); - if (p->range_sts != NULL) - free(p->range_sts); - if (p->range_ends != NULL) - free(p->range_ends); - - for (j = 0; j < p->nequivs; ++j) - free(p->equivs[j]); - if (p->equivs != NULL) - free(p->equivs); - - for (j = 0; j < p->ncoll_elems; ++j) - free(p->coll_elems[j]); - if (p->coll_elems != NULL) - free(p->coll_elems); - } - free((ptr_t) d->mbcsets); - } -#endif /* MBS_SUPPORT */ - - for (i = 0; i < d->sindex; ++i) - free((ptr_t) d->states[i].elems.elems); - free((ptr_t) d->states); - for (i = 0; i < d->tindex; ++i) - if (d->follows[i].elems) - free((ptr_t) d->follows[i].elems); - free((ptr_t) d->follows); - for (i = 0; i < d->tralloc; ++i) - if (d->trans[i]) - free((ptr_t) d->trans[i]); - else if (d->fails[i]) - free((ptr_t) d->fails[i]); - if (d->realtrans) free((ptr_t) d->realtrans); - if (d->fails) free((ptr_t) d->fails); - if (d->success) free((ptr_t) d->success); - for (dm = d->musts; dm; dm = ndm) - { - ndm = dm->next; - free(dm->must); - free((ptr_t) dm); - } -} - -/* Having found the postfix representation of the regular expression, - try to find a long sequence of characters that must appear in any line - containing the r.e. - Finding a "longest" sequence is beyond the scope here; - we take an easy way out and hope for the best. - (Take "(ab|a)b"--please.) - - We do a bottom-up calculation of sequences of characters that must appear - in matches of r.e.'s represented by trees rooted at the nodes of the postfix - representation: - sequences that must appear at the left of the match ("left") - sequences that must appear at the right of the match ("right") - lists of sequences that must appear somewhere in the match ("in") - sequences that must constitute the match ("is") - - When we get to the root of the tree, we use one of the longest of its - calculated "in" sequences as our answer. The sequence we find is returned in - d->must (where "d" is the single argument passed to "dfamust"); - the length of the sequence is returned in d->mustn. - - The sequences calculated for the various types of node (in pseudo ANSI c) - are shown below. "p" is the operand of unary operators (and the left-hand - operand of binary operators); "q" is the right-hand operand of binary - operators. - - "ZERO" means "a zero-length sequence" below. - - Type left right is in - ---- ---- ----- -- -- - char c # c # c # c # c - - ANYCHAR ZERO ZERO ZERO ZERO - - MBCSET ZERO ZERO ZERO ZERO - - CSET ZERO ZERO ZERO ZERO - - STAR ZERO ZERO ZERO ZERO - - QMARK ZERO ZERO ZERO ZERO - - PLUS p->left p->right ZERO p->in - - CAT (p->is==ZERO)? (q->is==ZERO)? (p->is!=ZERO && p->in plus - p->left : q->right : q->is!=ZERO) ? q->in plus - p->is##q->left p->right##q->is p->is##q->is : p->right##q->left - ZERO - - OR longest common longest common (do p->is and substrings common to - leading trailing q->is have same p->in and q->in - (sub)sequence (sub)sequence length and - of p->left of p->right content) ? - and q->left and q->right p->is : NULL - - If there's anything else we recognize in the tree, all four sequences get set - to zero-length sequences. If there's something we don't recognize in the tree, - we just return a zero-length sequence. - - Break ties in favor of infrequent letters (choosing 'zzz' in preference to - 'aaa')? - - And. . .is it here or someplace that we might ponder "optimizations" such as - egrep 'psi|epsilon' -> egrep 'psi' - egrep 'pepsi|epsilon' -> egrep 'epsi' - (Yes, we now find "epsi" as a "string - that must occur", but we might also - simplify the *entire* r.e. being sought) - grep '[c]' -> grep 'c' - grep '(ab|a)b' -> grep 'ab' - grep 'ab*' -> grep 'a' - grep 'a*b' -> grep 'b' - - There are several issues: - - Is optimization easy (enough)? - - Does optimization actually accomplish anything, - or is the automaton you get from "psi|epsilon" (for example) - the same as the one you get from "psi" (for example)? - - Are optimizable r.e.'s likely to be used in real-life situations - (something like 'ab*' is probably unlikely; something like is - 'psi|epsilon' is likelier)? */ - -static char * -icatalloc (char *stem, char *suffix) -{ - char *result; - size_t stemsize, suffixsize; - - suffixsize = (suffix == NULL) ? 0 : strlen(suffix); - if (stem == NULL) - stemsize = 0; - else if (suffixsize == 0) - return stem; - else stemsize = strlen(stem); - if (stem == NULL) - result = (char *) malloc(suffixsize + 1); - else - result = (char *) realloc((void *) stem, stemsize + suffixsize + 1); - if (result != NULL && suffix != NULL) - (void) strcpy(result + stemsize, suffix); - return result; -} - -static char * -icpyalloc (char *string) -{ - return icatalloc((char *) NULL, string); -} - -static char * -istrstr (char *lookin, char *lookfor) -{ - char *cp; - size_t len; - - len = strlen(lookfor); - for (cp = lookin; *cp != '\0'; ++cp) - if (strncmp(cp, lookfor, len) == 0) - return cp; - return NULL; -} - -static void -ifree (char *cp) -{ - if (cp != NULL) - free(cp); -} - -static void -freelist (char **cpp) -{ - int i; - - if (cpp == NULL) - return; - for (i = 0; cpp[i] != NULL; ++i) - { - free(cpp[i]); - cpp[i] = NULL; - } -} - -static char ** -enlist (char **cpp, char *suffix, size_t len) -{ - int i, j; - - if (cpp == NULL) - return NULL; - if ((suffix = icpyalloc(suffix)) == NULL) - { - freelist(cpp); - return NULL; - } - suffix[len] = '\0'; - /* Is there already something in the list that's suffix (or longer)? */ - for (i = 0; cpp[i] != NULL; ++i) - if (istrstr(cpp[i], suffix) != NULL) - { - free(suffix); - return cpp; - } - /* Eliminate any obsoleted strings. */ - j = 0; - while (cpp[j] != NULL) - if (istrstr(suffix, cpp[j]) == NULL) - ++j; - else - { - free(cpp[j]); - if (--i == j) - break; - cpp[j] = cpp[i]; - cpp[i] = NULL; - } - /* Add the new string. */ - cpp = (char **) realloc((char *) cpp, (i + 2) * sizeof *cpp); - if (cpp == NULL) - return NULL; - cpp[i] = suffix; - cpp[i + 1] = NULL; - return cpp; -} - -/* Given pointers to two strings, return a pointer to an allocated - list of their distinct common substrings. Return NULL if something - seems wild. */ -static char ** -comsubs (char *left, char *right) -{ - char **cpp; - char *lcp; - char *rcp; - size_t i, len; - - if (left == NULL || right == NULL) - return NULL; - cpp = (char **) malloc(sizeof *cpp); - if (cpp == NULL) - return NULL; - cpp[0] = NULL; - for (lcp = left; *lcp != '\0'; ++lcp) - { - len = 0; - rcp = strchr (right, *lcp); - while (rcp != NULL) - { - for (i = 1; lcp[i] != '\0' && lcp[i] == rcp[i]; ++i) - continue; - if (i > len) - len = i; - rcp = strchr (rcp + 1, *lcp); - } - if (len == 0) - continue; - if ((cpp = enlist(cpp, lcp, len)) == NULL) - break; - } - return cpp; -} - -static char ** -addlists (char **old, char **suffixes) -{ - int i; - - if (old == NULL || suffixes == NULL) - return NULL; - for (i = 0; suffixes[i] != NULL; ++i) - { - old = enlist(old, suffixes[i], strlen(suffixes[i])); - if (old == NULL) - break; - } - return old; -} - -/* Given two lists of substrings, return a new list giving substrings - common to both. */ -static char ** -inboth (char **left, char **right) -{ - char **both; - char **temp; - int lnum, rnum; - - if (left == NULL || right == NULL) - return NULL; - both = (char **) malloc(sizeof *both); - if (both == NULL) - return NULL; - both[0] = NULL; - for (lnum = 0; left[lnum] != NULL; ++lnum) - { - for (rnum = 0; right[rnum] != NULL; ++rnum) - { - temp = comsubs(left[lnum], right[rnum]); - if (temp == NULL) - { - freelist(both); - return NULL; - } - both = addlists(both, temp); - freelist(temp); - free(temp); - if (both == NULL) - return NULL; - } - } - return both; -} - -typedef struct -{ - char **in; - char *left; - char *right; - char *is; -} must; - -static void -resetmust (must *mp) -{ - mp->left[0] = mp->right[0] = mp->is[0] = '\0'; - freelist(mp->in); -} - -static void -dfamust (struct dfa *dfa) -{ - must *musts; - must *mp; - char *result; - int ri; - int i; - int exact; - token t; - static must must0; - struct dfamust *dm; - static char empty_string[] = ""; - - result = empty_string; - exact = 0; - musts = (must *) malloc((dfa->tindex + 1) * sizeof *musts); - if (musts == NULL) - return; - mp = musts; - for (i = 0; i <= dfa->tindex; ++i) - mp[i] = must0; - for (i = 0; i <= dfa->tindex; ++i) - { - mp[i].in = (char **) malloc(sizeof *mp[i].in); - mp[i].left = (char *) malloc(2); - mp[i].right = (char *) malloc(2); - mp[i].is = (char *) malloc(2); - if (mp[i].in == NULL || mp[i].left == NULL || - mp[i].right == NULL || mp[i].is == NULL) - goto done; - mp[i].left[0] = mp[i].right[0] = mp[i].is[0] = '\0'; - mp[i].in[0] = NULL; - } -#ifdef DEBUG - fprintf(stderr, "dfamust:\n"); - for (i = 0; i < dfa->tindex; ++i) - { - fprintf(stderr, " %d:", i); - prtok(dfa->tokens[i]); - } - putc('\n', stderr); -#endif - for (ri = 0; ri < dfa->tindex; ++ri) - { - switch (t = dfa->tokens[ri]) - { - case LPAREN: - case RPAREN: - goto done; /* "cannot happen" */ - case EMPTY: - case BEGLINE: - case ENDLINE: - case BEGWORD: - case ENDWORD: - case LIMWORD: - case NOTLIMWORD: - case BACKREF: - resetmust(mp); - break; - case STAR: - case QMARK: - if (mp <= musts) - goto done; /* "cannot happen" */ - --mp; - resetmust(mp); - break; - case OR: - case ORTOP: - if (mp < &musts[2]) - goto done; /* "cannot happen" */ - { - char **common; - must *lmp; - must *rmp; - int j, ln, rn, n; - - rmp = --mp; - lmp = --mp; - /* Guaranteed to be. Unlikely, but. . . */ - if (strcmp(lmp->is, rmp->is) != 0) - lmp->is[0] = '\0'; - /* Left side--easy */ - i = 0; - while (lmp->left[i] != '\0' && lmp->left[i] == rmp->left[i]) - ++i; - lmp->left[i] = '\0'; - /* Right side */ - ln = strlen(lmp->right); - rn = strlen(rmp->right); - n = ln; - if (n > rn) - n = rn; - for (i = 0; i < n; ++i) - if (lmp->right[ln - i - 1] != rmp->right[rn - i - 1]) - break; - for (j = 0; j < i; ++j) - lmp->right[j] = lmp->right[(ln - i) + j]; - lmp->right[j] = '\0'; - common = inboth(lmp->in, rmp->in); - if (common == NULL) - goto done; - freelist(lmp->in); - free((char *) lmp->in); - lmp->in = common; - } - break; - case PLUS: - if (mp <= musts) - goto done; /* "cannot happen" */ - --mp; - mp->is[0] = '\0'; - break; - case END: - if (mp != &musts[1]) - goto done; /* "cannot happen" */ - for (i = 0; musts[0].in[i] != NULL; ++i) - if (strlen(musts[0].in[i]) > strlen(result)) - result = musts[0].in[i]; - if (strcmp(result, musts[0].is) == 0) - exact = 1; - goto done; - case CAT: - if (mp < &musts[2]) - goto done; /* "cannot happen" */ - { - must *lmp; - must *rmp; - - rmp = --mp; - lmp = --mp; - /* In. Everything in left, plus everything in - right, plus catenation of - left's right and right's left. */ - lmp->in = addlists(lmp->in, rmp->in); - if (lmp->in == NULL) - goto done; - if (lmp->right[0] != '\0' && - rmp->left[0] != '\0') - { - char *tp; - - tp = icpyalloc(lmp->right); - if (tp == NULL) - goto done; - tp = icatalloc(tp, rmp->left); - if (tp == NULL) - goto done; - lmp->in = enlist(lmp->in, tp, - strlen(tp)); - free(tp); - if (lmp->in == NULL) - goto done; - } - /* Left-hand */ - if (lmp->is[0] != '\0') - { - lmp->left = icatalloc(lmp->left, - rmp->left); - if (lmp->left == NULL) - goto done; - } - /* Right-hand */ - if (rmp->is[0] == '\0') - lmp->right[0] = '\0'; - lmp->right = icatalloc(lmp->right, rmp->right); - if (lmp->right == NULL) - goto done; - /* Guaranteed to be */ - if (lmp->is[0] != '\0' && rmp->is[0] != '\0') - { - lmp->is = icatalloc(lmp->is, rmp->is); - if (lmp->is == NULL) - goto done; - } - else - lmp->is[0] = '\0'; - } - break; - default: - if (t < END) - { - /* "cannot happen" */ - goto done; - } - else if (t == '\0') - { - /* not on *my* shift */ - goto done; - } - else if (t >= CSET -#ifdef MBS_SUPPORT - || t == ANYCHAR - || t == MBCSET -#endif /* MBS_SUPPORT */ - ) - { - /* easy enough */ - resetmust(mp); - } - else - { - /* plain character */ - resetmust(mp); - mp->is[0] = mp->left[0] = mp->right[0] = t; - mp->is[1] = mp->left[1] = mp->right[1] = '\0'; - mp->in = enlist(mp->in, mp->is, (size_t)1); - if (mp->in == NULL) - goto done; - } - break; - } -#ifdef DEBUG - fprintf(stderr, " node: %d:", ri); - prtok(dfa->tokens[ri]); - fprintf(stderr, "\n in:"); - for (i = 0; mp->in[i]; ++i) - fprintf(stderr, " \"%s\"", mp->in[i]); - fprintf(stderr, "\n is: \"%s\"\n", mp->is); - fprintf(stderr, " left: \"%s\"\n", mp->left); - fprintf(stderr, " right: \"%s\"\n", mp->right); -#endif - ++mp; - } - done: - if (strlen(result)) - { - dm = (struct dfamust *) malloc(sizeof (struct dfamust)); - dm->exact = exact; - dm->must = (char *) malloc(strlen(result) + 1); - strcpy(dm->must, result); - dm->next = dfa->musts; - dfa->musts = dm; - } - mp = musts; - for (i = 0; i <= dfa->tindex; ++i) - { - freelist(mp[i].in); - ifree((char *) mp[i].in); - ifree(mp[i].left); - ifree(mp[i].right); - ifree(mp[i].is); - } - free((char *) mp); -} -/* vim:set shiftwidth=2: */ diff -Nru gettext-0.17/gettext-tools/libgrep/dfa.h gettext-0.18.1.1/gettext-tools/libgrep/dfa.h --- gettext-0.17/gettext-tools/libgrep/dfa.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/dfa.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,415 +0,0 @@ -/* dfa.h - declarations for GNU deterministic regexp compiler - Copyright (C) 1988, 1998, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written June, 1988 by Mike Haertel */ - -/* FIXME: - 2. We should not export so much of the DFA internals. - In addition to clobbering modularity, we eat up valuable - name space. */ - -#include "regex.h" - -typedef void * ptr_t; - -/* Number of bits in an unsigned char. */ -#ifndef CHARBITS -#define CHARBITS 8 -#endif - -/* First integer value that is greater than any character code. */ -#define NOTCHAR (1 << CHARBITS) - -/* INTBITS need not be exact, just a lower bound. */ -#ifndef INTBITS -#define INTBITS (CHARBITS * sizeof (int)) -#endif - -/* Number of ints required to hold a bit for every character. */ -#define CHARCLASS_INTS ((NOTCHAR + INTBITS - 1) / INTBITS) - -/* Sets of unsigned characters are stored as bit vectors in arrays of ints. */ -typedef int charclass[CHARCLASS_INTS]; - -/* The regexp is parsed into an array of tokens in postfix form. Some tokens - are operators and others are terminal symbols. Most (but not all) of these - codes are returned by the lexical analyzer. */ - -enum -{ - END = -1, /* END is a terminal symbol that matches the - end of input; any value of END or less in - the parse tree is such a symbol. Accepting - states of the DFA are those that would have - a transition on END. */ - - /* Ordinary character values are terminal symbols that match themselves. */ - - EMPTY = NOTCHAR, /* EMPTY is a terminal symbol that matches - the empty string. */ - - BACKREF, /* BACKREF is generated by \; it - it not completely handled. If the scanner - detects a transition on backref, it returns - a kind of "semi-success" indicating that - the match will have to be verified with - a backtracking matcher. */ - - BEGLINE, /* BEGLINE is a terminal symbol that matches - the empty string if it is at the beginning - of a line. */ - - ENDLINE, /* ENDLINE is a terminal symbol that matches - the empty string if it is at the end of - a line. */ - - BEGWORD, /* BEGWORD is a terminal symbol that matches - the empty string if it is at the beginning - of a word. */ - - ENDWORD, /* ENDWORD is a terminal symbol that matches - the empty string if it is at the end of - a word. */ - - LIMWORD, /* LIMWORD is a terminal symbol that matches - the empty string if it is at the beginning - or the end of a word. */ - - NOTLIMWORD, /* NOTLIMWORD is a terminal symbol that - matches the empty string if it is not at - the beginning or end of a word. */ - - QMARK, /* QMARK is an operator of one argument that - matches zero or one occurences of its - argument. */ - - STAR, /* STAR is an operator of one argument that - matches the Kleene closure (zero or more - occurrences) of its argument. */ - - PLUS, /* PLUS is an operator of one argument that - matches the positive closure (one or more - occurrences) of its argument. */ - - REPMN, /* REPMN is a lexical token corresponding - to the {m,n} construct. REPMN never - appears in the compiled token vector. */ - - CAT, /* CAT is an operator of two arguments that - matches the concatenation of its - arguments. CAT is never returned by the - lexical analyzer. */ - - OR, /* OR is an operator of two arguments that - matches either of its arguments. */ - - ORTOP, /* OR at the toplevel in the parse tree. - This is used for a boyer-moore heuristic. */ - - LPAREN, /* LPAREN never appears in the parse tree, - it is only a lexeme. */ - - RPAREN, /* RPAREN never appears in the parse tree. */ - - CRANGE, /* CRANGE never appears in the parse tree. - It stands for a character range that can - match a string of one or more characters. - For example, [a-z] can match "ch" in - a Spanish locale. */ - -#ifdef MBS_SUPPORT - ANYCHAR, /* ANYCHAR is a terminal symbol that matches - any multibyte(or singlebyte) characters. - It is used only if MB_CUR_MAX > 1. */ - - MBCSET, /* MBCSET is similar to CSET, but for - multibyte characters. */ -#endif /* MBS_SUPPORT */ - - CSET /* CSET and (and any value greater) is a - terminal symbol that matches any of a - class of characters. */ -}; -typedef int token; - -/* Sets are stored in an array in the compiled dfa; the index of the - array corresponding to a given set token is given by SET_INDEX(t). */ -#define SET_INDEX(t) ((t) - CSET) - -/* Sometimes characters can only be matched depending on the surrounding - context. Such context decisions depend on what the previous character - was, and the value of the current (lookahead) character. Context - dependent constraints are encoded as 8 bit integers. Each bit that - is set indicates that the constraint succeeds in the corresponding - context. - - bit 7 - previous and current are newlines - bit 6 - previous was newline, current isn't - bit 5 - previous wasn't newline, current is - bit 4 - neither previous nor current is a newline - bit 3 - previous and current are word-constituents - bit 2 - previous was word-constituent, current isn't - bit 1 - previous wasn't word-constituent, current is - bit 0 - neither previous nor current is word-constituent - - Word-constituent characters are those that satisfy isalnum(). - - The macro SUCCEEDS_IN_CONTEXT determines whether a a given constraint - succeeds in a particular context. Prevn is true if the previous character - was a newline, currn is true if the lookahead character is a newline. - Prevl and currl similarly depend upon whether the previous and current - characters are word-constituent letters. */ -#define MATCHES_NEWLINE_CONTEXT(constraint, prevn, currn) \ - ((constraint) & 1 << (((prevn) ? 2 : 0) + ((currn) ? 1 : 0) + 4)) -#define MATCHES_LETTER_CONTEXT(constraint, prevl, currl) \ - ((constraint) & 1 << (((prevl) ? 2 : 0) + ((currl) ? 1 : 0))) -#define SUCCEEDS_IN_CONTEXT(constraint, prevn, currn, prevl, currl) \ - (MATCHES_NEWLINE_CONTEXT(constraint, prevn, currn) \ - && MATCHES_LETTER_CONTEXT(constraint, prevl, currl)) - -/* The following macros give information about what a constraint depends on. */ -#define PREV_NEWLINE_DEPENDENT(constraint) \ - (((constraint) & 0xc0) >> 2 != ((constraint) & 0x30)) -#define PREV_LETTER_DEPENDENT(constraint) \ - (((constraint) & 0x0c) >> 2 != ((constraint) & 0x03)) - -/* Tokens that match the empty string subject to some constraint actually - work by applying that constraint to determine what may follow them, - taking into account what has gone before. The following values are - the constraints corresponding to the special tokens previously defined. */ -#define NO_CONSTRAINT 0xff -#define BEGLINE_CONSTRAINT 0xcf -#define ENDLINE_CONSTRAINT 0xaf -#define BEGWORD_CONSTRAINT 0xf2 -#define ENDWORD_CONSTRAINT 0xf4 -#define LIMWORD_CONSTRAINT 0xf6 -#define NOTLIMWORD_CONSTRAINT 0xf9 - -/* States of the recognizer correspond to sets of positions in the parse - tree, together with the constraints under which they may be matched. - So a position is encoded as an index into the parse tree together with - a constraint. */ -typedef struct -{ - unsigned index; /* Index into the parse array. */ - unsigned constraint; /* Constraint for matching this position. */ -} position; - -/* Sets of positions are stored as arrays. */ -typedef struct -{ - position *elems; /* Elements of this position set. */ - int nelem; /* Number of elements in this set. */ -} position_set; - -/* A state of the dfa consists of a set of positions, some flags, - and the token value of the lowest-numbered position of the state that - contains an END token. */ -typedef struct -{ - int hash; /* Hash of the positions of this state. */ - position_set elems; /* Positions this state could match. */ - char newline; /* True if previous state matched newline. */ - char letter; /* True if previous state matched a letter. */ - char backref; /* True if this state matches a \. */ - unsigned char constraint; /* Constraint for this state to accept. */ - int first_end; /* Token value of the first END in elems. */ -#ifdef MBS_SUPPORT - position_set mbps; /* Positions which can match multibyte - characters. e.g. period. - These staff are used only if - MB_CUR_MAX > 1. */ -#endif -} dfa_state; - -/* Element of a list of strings, at least one of which is known to - appear in any R.E. matching the DFA. */ -struct dfamust -{ - int exact; - char *must; - struct dfamust *next; -}; - -#ifdef MBS_SUPPORT -/* A bracket operator. - e.g. [a-c], [[:alpha:]], etc. */ -struct mb_char_classes -{ - int invert; - wchar_t *chars; /* Normal characters. */ - int nchars; - wctype_t *ch_classes; /* Character classes. */ - int nch_classes; - wchar_t *range_sts; /* Range characters (start of the range). */ - wchar_t *range_ends; /* Range characters (end of the range). */ - int nranges; - char **equivs; /* Equivalent classes. */ - int nequivs; - char **coll_elems; - int ncoll_elems; /* Collating elements. */ -}; -#endif - -/* A compiled regular expression. */ -struct dfa -{ - /* Stuff built by the scanner. */ - charclass *charclasses; /* Array of character sets for CSET tokens. */ - int cindex; /* Index for adding new charclasses. */ - int calloc; /* Number of charclasses currently allocated. */ - - /* Stuff built by the parser. */ - token *tokens; /* Postfix parse array. */ - int tindex; /* Index for adding new tokens. */ - int talloc; /* Number of tokens currently allocated. */ - int depth; /* Depth required of an evaluation stack - used for depth-first traversal of the - parse tree. */ - int nleaves; /* Number of leaves on the parse tree. */ - int nregexps; /* Count of parallel regexps being built - with dfaparse(). */ -#ifdef MBS_SUPPORT - /* These stuff are used only if MB_CUR_MAX > 1 or multibyte environments. */ - int nmultibyte_prop; - int *multibyte_prop; - /* The value of multibyte_prop[i] is defined by following rule. - if tokens[i] < NOTCHAR - bit 1 : tokens[i] is a singlebyte character, or the last-byte of - a multibyte character. - bit 0 : tokens[i] is a singlebyte character, or the 1st-byte of - a multibyte character. - if tokens[i] = MBCSET - ("the index of mbcsets correspnd to this operator" << 2) + 3 - - e.g. - tokens - = 'single_byte_a', 'multi_byte_A', single_byte_b' - = 'sb_a', 'mb_A(1st byte)', 'mb_A(2nd byte)', 'mb_A(3rd byte)', 'sb_b' - multibyte_prop - = 3 , 1 , 0 , 2 , 3 - */ - - /* Array of the bracket expressoin in the DFA. */ - struct mb_char_classes *mbcsets; - int nmbcsets; - int mbcsets_alloc; -#endif - - /* Stuff owned by the state builder. */ - dfa_state *states; /* States of the dfa. */ - int sindex; /* Index for adding new states. */ - int salloc; /* Number of states currently allocated. */ - - /* Stuff built by the structure analyzer. */ - position_set *follows; /* Array of follow sets, indexed by position - index. The follow of a position is the set - of positions containing characters that - could conceivably follow a character - matching the given position in a string - matching the regexp. Allocated to the - maximum possible position index. */ - int searchflag; /* True if we are supposed to build a searching - as opposed to an exact matcher. A searching - matcher finds the first and shortest string - matching a regexp anywhere in the buffer, - whereas an exact matcher finds the longest - string matching, but anchored to the - beginning of the buffer. */ - - /* Stuff owned by the executor. */ - int tralloc; /* Number of transition tables that have - slots so far. */ - int trcount; /* Number of transition tables that have - actually been built. */ - int **trans; /* Transition tables for states that can - never accept. If the transitions for a - state have not yet been computed, or the - state could possibly accept, its entry in - this table is NULL. */ - int **realtrans; /* Trans always points to realtrans + 1; this - is so trans[-1] can contain NULL. */ - int **fails; /* Transition tables after failing to accept - on a state that potentially could do so. */ - int *success; /* Table of acceptance conditions used in - dfaexec and computed in build_state. */ - struct dfamust *musts; /* List of strings, at least one of which - is known to appear in any r.e. matching - the dfa. */ -}; - -/* Some macros for user access to dfa internals. */ - -/* ACCEPTING returns true if s could possibly be an accepting state of r. */ -#define ACCEPTING(s, r) ((r).states[s].constraint) - -/* ACCEPTS_IN_CONTEXT returns true if the given state accepts in the - specified context. */ -#define ACCEPTS_IN_CONTEXT(prevn, currn, prevl, currl, state, dfa) \ - SUCCEEDS_IN_CONTEXT((dfa).states[state].constraint, \ - prevn, currn, prevl, currl) - -/* FIRST_MATCHING_REGEXP returns the index number of the first of parallel - regexps that a given state could accept. Parallel regexps are numbered - starting at 1. */ -#define FIRST_MATCHING_REGEXP(state, dfa) (-(dfa).states[state].first_end) - -/* Entry points. */ - -/* dfasyntax() takes three arguments; the first sets the syntax bits described - earlier in this file, the second sets the case-folding flag, and the - third specifies the line terminator. */ -extern void dfasyntax (reg_syntax_t, int, unsigned char); - -/* Compile the given string of the given length into the given struct dfa. - Final argument is a flag specifying whether to build a searching or an - exact matcher. */ -extern void dfacomp (char const *, size_t, struct dfa *, int); - -/* Execute the given struct dfa on the buffer of characters. The - last byte of the buffer must equal the end-of-line byte. - The final argument points to a flag that will - be set if further examination by a backtracking matcher is needed in - order to verify backreferencing; otherwise the flag will be cleared. - Returns (size_t) -1 if no match is found, or the offset of the first - character after the first & shortest matching string in the buffer. */ -extern size_t dfaexec (struct dfa *, char const *, size_t, int *); - -/* Free the storage held by the components of a struct dfa. */ -extern void dfafree (struct dfa *); - -/* Entry points for people who know what they're doing. */ - -/* Initialize the components of a struct dfa. */ -extern void dfainit (struct dfa *); - -/* Incrementally parse a string of given length into a struct dfa. */ -extern void dfaparse (char const *, size_t, struct dfa *); - -/* Analyze a parsed regexp; second argument tells whether to build a searching - or an exact matcher. */ -extern void dfaanalyze (struct dfa *, int); - -/* Compute, for each possible character, the transitions out of a given - state, storing them in an array of integers. */ -extern void dfastate (int, struct dfa *, int []); - -/* Error handling. */ - -/* dfaerror() is called by the regexp routines whenever an error occurs. It - takes a single argument, a NUL-terminated string describing the error. - The user must supply a dfaerror. */ -extern void dfaerror (const char *); diff -Nru gettext-0.17/gettext-tools/libgrep/dummy.c gettext-0.18.1.1/gettext-tools/libgrep/dummy.c --- gettext-0.17/gettext-tools/libgrep/dummy.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/dummy.c 2010-05-24 14:49:26.000000000 +0000 @@ -0,0 +1,42 @@ +/* A dummy file, to prevent empty libraries from breaking builds. + Copyright (C) 2004, 2007, 2009, 2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create + libraries without any object files. You might get an error like: + + > ar cru .libs/libgl.a + > ar: no archive members specified + + Compiling this file, and adding its object file to the library, will + prevent the library from being empty. */ + +/* Some systems, such as Solaris with cc 5.0, refuse to work with libraries + that don't export any symbol. You might get an error like: + + > cc ... libgnu.a + > ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a + + Compiling this file, and adding its object file to the library, will + prevent the library from exporting no symbols. */ + +#ifdef __sun +/* This declaration ensures that the library will export at least 1 symbol. */ +int gl_dummy_symbol; +#else +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; +#endif diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/btowc.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/btowc.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/btowc.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/btowc.m4 2010-06-04 10:27:10.000000000 +0000 @@ -0,0 +1,107 @@ +# btowc.m4 serial 6 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_BTOWC], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + dnl Check whether is usable at all, first. Otherwise the test + dnl program below may lead to an endless loop. See + dnl . + AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) + + AC_CHECK_FUNCS_ONCE([btowc]) + if test $ac_cv_func_btowc = no; then + HAVE_BTOWC=0 + else + + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + + dnl Cygwin 1.7.2 btowc('\0') is WEOF, not 0. + AC_CACHE_CHECK([whether btowc(0) is correct], + [gl_cv_func_btowc_nul], + [ + AC_TRY_RUN([ +#include +#include +#include +int main () +{ + if (btowc ('\0') != 0) + return 1; + return 0; +}], + [gl_cv_func_btowc_nul=yes], + [gl_cv_func_btowc_nul=no], + [ +changequote(,)dnl + case "$host_os" in + # Guess no on Cygwin. + cygwin*) gl_cv_func_btowc_nul="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_btowc_nul="guessing yes" ;; + esac +changequote([,])dnl + ]) + ]) + + dnl IRIX 6.5 btowc(EOF) is 0xFF, not WEOF. + AC_CACHE_CHECK([whether btowc(EOF) is correct], + [gl_cv_func_btowc_eof], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on IRIX. + irix*) gl_cv_func_btowc_eof="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_btowc_eof="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR != none; then + AC_TRY_RUN([ +#include +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + if (btowc (EOF) != WEOF) + return 1; + } + return 0; +}], + [gl_cv_func_btowc_eof=yes], + [gl_cv_func_btowc_eof=no], + [:]) + fi + ]) + + case "$gl_cv_func_btowc_nul" in + *yes) ;; + *) REPLACE_BTOWC=1 ;; + esac + case "$gl_cv_func_btowc_eof" in + *yes) ;; + *) REPLACE_BTOWC=1 ;; + esac + fi + if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([btowc]) + gl_PREREQ_BTOWC + fi +]) + +# Prerequisites of lib/btowc.c. +AC_DEFUN([gl_PREREQ_BTOWC], [ + : +]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/gnulib-cache.m4 2010-06-06 20:10:34.000000000 +0000 @@ -0,0 +1,34 @@ +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the specification of how gnulib-tool is used. +# It acts as a cache: It is written and read by gnulib-tool. +# In projects using CVS, this file is meant to be stored in CVS, +# like the configure.ac and various Makefile.am files. + + +# Specification in the form of a command-line invocation: +# gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --avoid=alloca-opt --avoid=extensions --avoid=gettext-h --avoid=include_next --avoid=localcharset --avoid=malloc-posix --avoid=mbrtowc --avoid=mbsinit --avoid=multiarch --avoid=ssize_t --avoid=stdbool --avoid=stddef --avoid=stdint --avoid=stdlib --avoid=streq --avoid=unistd --avoid=verify --avoid=wchar --avoid=wctype --makefile-name=Makefile.gnulib --no-libtool --macro-prefix=grgl regex + +# Specification in the form of a few gnulib-tool.m4 macro invocations: +gl_LOCAL_DIR([../gnulib-local]) +gl_MODULES([ + regex +]) +gl_AVOID([alloca-opt extensions gettext-h include_next localcharset malloc-posix mbrtowc mbsinit multiarch ssize_t stdbool stddef stdint stdlib streq unistd verify wchar wctype]) +gl_SOURCE_BASE([libgrep]) +gl_M4_BASE([libgrep/gnulib-m4]) +gl_PO_BASE([]) +gl_DOC_BASE([doc]) +gl_TESTS_BASE([tests]) +gl_LIB([libgrep]) +gl_MAKEFILE_NAME([Makefile.gnulib]) +gl_MACRO_PREFIX([grgl]) +gl_PO_DOMAIN([]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/gnulib-comp.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/gnulib-comp.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/gnulib-comp.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/gnulib-comp.m4 2010-06-04 10:27:11.000000000 +0000 @@ -0,0 +1,237 @@ +# DO NOT EDIT! GENERATED AUTOMATICALLY! +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# +# This file represents the compiled summary of the specification in +# gnulib-cache.m4. It lists the computed macro invocations that need +# to be invoked from configure.ac. +# In projects using CVS, this file can be treated like other built files. + + +# This macro should be invoked from gettext-tools/configure.ac, in the section +# "Checks for programs", right after AC_PROG_CC, and certainly before +# any checks for libraries, header files, types and library functions. +AC_DEFUN([grgl_EARLY], +[ + m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace + m4_pattern_allow([^gl_ES$])dnl a valid locale name + m4_pattern_allow([^gl_LIBOBJS$])dnl a variable + m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable + AC_REQUIRE([AC_PROG_RANLIB]) + # Code from module btowc: + # Code from module c++defs: + # Code from module langinfo: + # Code from module nl_langinfo: + # Code from module regex: + # Code from module warn-on-use: + # Code from module wcrtomb: +]) + +# This macro should be invoked from gettext-tools/configure.ac, in the section +# "Check for header files, types and library functions". +AC_DEFUN([grgl_INIT], +[ + AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) + gl_cond_libtool=false + gl_libdeps= + gl_ltlibdeps= + gl_m4_base='libgrep/gnulib-m4' + m4_pushdef([AC_LIBOBJ], m4_defn([grgl_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgl_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([grgl_LIBSOURCES])) + m4_pushdef([grgl_LIBSOURCES_LIST], []) + m4_pushdef([grgl_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='libgrep' + # Code from module btowc: + gl_FUNC_BTOWC + gl_WCHAR_MODULE_INDICATOR([btowc]) + # Code from module c++defs: + # Code from module langinfo: + gl_LANGINFO_H + # Code from module nl_langinfo: + gl_FUNC_NL_LANGINFO + gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) + # Code from module regex: + gl_REGEX + # Code from module warn-on-use: + # Code from module wcrtomb: + gl_FUNC_WCRTOMB + gl_WCHAR_MODULE_INDICATOR([wcrtomb]) + # Code from module dummy: + # End of code from modules + m4_ifval(grgl_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([grgl_LIBSOURCES_DIR])[ || + for gl_file in ]grgl_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([grgl_LIBSOURCES_DIR]) + m4_popdef([grgl_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + grgl_libobjs= + grgl_ltlibobjs= + if test -n "$grgl_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + grgl_libobjs="$grgl_libobjs $i.$ac_objext" + grgl_ltlibobjs="$grgl_ltlibobjs $i.lo" + done + fi + AC_SUBST([grgl_LIBOBJS], [$grgl_libobjs]) + AC_SUBST([grgl_LTLIBOBJS], [$grgl_ltlibobjs]) + ]) + gltests_libdeps= + gltests_ltlibdeps= + m4_pushdef([AC_LIBOBJ], m4_defn([grgltests_LIBOBJ])) + m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgltests_REPLACE_FUNCS])) + m4_pushdef([AC_LIBSOURCES], m4_defn([grgltests_LIBSOURCES])) + m4_pushdef([grgltests_LIBSOURCES_LIST], []) + m4_pushdef([grgltests_LIBSOURCES_DIR], []) + gl_COMMON + gl_source_base='tests' +changequote(,)dnl + grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([grgltests_WITNESS]) + gl_module_indicator_condition=$grgltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) + m4_ifval(grgltests_LIBSOURCES_LIST, [ + m4_syscmd([test ! -d ]m4_defn([grgltests_LIBSOURCES_DIR])[ || + for gl_file in ]grgltests_LIBSOURCES_LIST[ ; do + if test ! -r ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file ; then + echo "missing file ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file" >&2 + exit 1 + fi + done])dnl + m4_if(m4_sysval, [0], [], + [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) + ]) + m4_popdef([grgltests_LIBSOURCES_DIR]) + m4_popdef([grgltests_LIBSOURCES_LIST]) + m4_popdef([AC_LIBSOURCES]) + m4_popdef([AC_REPLACE_FUNCS]) + m4_popdef([AC_LIBOBJ]) + AC_CONFIG_COMMANDS_PRE([ + grgltests_libobjs= + grgltests_ltlibobjs= + if test -n "$grgltests_LIBOBJS"; then + # Remove the extension. + sed_drop_objext='s/\.o$//;s/\.obj$//' + for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do + grgltests_libobjs="$grgltests_libobjs $i.$ac_objext" + grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo" + done + fi + AC_SUBST([grgltests_LIBOBJS], [$grgltests_libobjs]) + AC_SUBST([grgltests_LTLIBOBJS], [$grgltests_ltlibobjs]) + ]) + LIBGREP_LIBDEPS="$gl_libdeps" + AC_SUBST([LIBGREP_LIBDEPS]) + LIBGREP_LTLIBDEPS="$gl_ltlibdeps" + AC_SUBST([LIBGREP_LTLIBDEPS]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into grgl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([grgl_LIBOBJ], [ + AS_LITERAL_IF([$1], [grgl_LIBSOURCES([$1.c])])dnl + grgl_LIBOBJS="$grgl_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into grgl_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([grgl_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [grgl_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([grgl_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([grgl_LIBSOURCES_DIR], [libgrep]) + m4_append([grgl_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# Like AC_LIBOBJ, except that the module name goes +# into grgltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([grgltests_LIBOBJ], [ + AS_LITERAL_IF([$1], [grgltests_LIBSOURCES([$1.c])])dnl + grgltests_LIBOBJS="$grgltests_LIBOBJS $1.$ac_objext" +]) + +# Like AC_REPLACE_FUNCS, except that the module name goes +# into grgltests_LIBOBJS instead of into LIBOBJS. +AC_DEFUN([grgltests_REPLACE_FUNCS], [ + m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl + AC_CHECK_FUNCS([$1], , [grgltests_LIBOBJ($ac_func)]) +]) + +# Like AC_LIBSOURCES, except the directory where the source file is +# expected is derived from the gnulib-tool parameterization, +# and alloca is special cased (for the alloca-opt module). +# We could also entirely rely on EXTRA_lib..._SOURCES. +AC_DEFUN([grgltests_LIBSOURCES], [ + m4_foreach([_gl_NAME], [$1], [ + m4_if(_gl_NAME, [alloca.c], [], [ + m4_define([grgltests_LIBSOURCES_DIR], [tests]) + m4_append([grgltests_LIBSOURCES_LIST], _gl_NAME, [ ]) + ]) + ]) +]) + +# This macro records the list of files which have been installed by +# gnulib-tool and may be removed by future gnulib-tool invocations. +AC_DEFUN([grgl_FILE_LIST], [ + build-aux/c++defs.h + build-aux/warn-on-use.h + lib/btowc.c + lib/dummy.c + lib/langinfo.in.h + lib/nl_langinfo.c + lib/regcomp.c + lib/regex.c + lib/regex.h + lib/regex_internal.c + lib/regex_internal.h + lib/regexec.c + lib/wcrtomb.c + m4/00gnulib.m4 + m4/btowc.m4 + m4/codeset.m4 + m4/gnulib-common.m4 + m4/langinfo_h.m4 + m4/locale-fr.m4 + m4/locale-ja.m4 + m4/locale-zh.m4 + m4/mbrtowc.m4 + m4/mbstate_t.m4 + m4/nl_langinfo.m4 + m4/onceonly.m4 + m4/regex.m4 + m4/warn-on-use.m4 + m4/wcrtomb.m4 +]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/langinfo_h.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/langinfo_h.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/langinfo_h.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/langinfo_h.m4 2010-06-04 10:27:10.000000000 +0000 @@ -0,0 +1,77 @@ +# langinfo_h.m4 serial 6 +dnl Copyright (C) 2009-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_LANGINFO_H], +[ + AC_REQUIRE([gl_LANGINFO_H_DEFAULTS]) + + dnl Persuade glibc-2.0.6 to define CODESET. + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + + dnl is always overridden, because of GNULIB_POSIXCHECK. + gl_CHECK_NEXT_HEADERS([langinfo.h]) + + dnl Determine whether exists. It is missing on mingw and BeOS. + HAVE_LANGINFO_CODESET=0 + HAVE_LANGINFO_ERA=0 + AC_CHECK_HEADERS_ONCE([langinfo.h]) + if test $ac_cv_header_langinfo_h = yes; then + HAVE_LANGINFO_H=1 + dnl Determine what defines. CODESET and ERA etc. are missing + dnl on OpenBSD 3.8. + AC_CACHE_CHECK([whether langinfo.h defines CODESET], + [gl_cv_header_langinfo_codeset], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include +int a = CODESET; +]])], + [gl_cv_header_langinfo_codeset=yes], + [gl_cv_header_langinfo_codeset=no]) + ]) + if test $gl_cv_header_langinfo_codeset = yes; then + HAVE_LANGINFO_CODESET=1 + fi + AC_CACHE_CHECK([whether langinfo.h defines ERA], + [gl_cv_header_langinfo_era], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include +int a = ERA; +]])], + [gl_cv_header_langinfo_era=yes], + [gl_cv_header_langinfo_era=no]) + ]) + if test $gl_cv_header_langinfo_era = yes; then + HAVE_LANGINFO_ERA=1 + fi + else + HAVE_LANGINFO_H=0 + fi + AC_SUBST([HAVE_LANGINFO_H]) + AC_SUBST([HAVE_LANGINFO_CODESET]) + AC_SUBST([HAVE_LANGINFO_ERA]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include + ]], [nl_langinfo]) +]) + +AC_DEFUN([gl_LANGINFO_MODULE_INDICATOR], +[ + dnl Use AC_REQUIRE here, so that the default settings are expanded once only. + AC_REQUIRE([gl_LANGINFO_H_DEFAULTS]) + gl_MODULE_INDICATOR_SET_VARIABLE([$1]) + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR_FOR_TESTS([$1]) +]) + +AC_DEFUN([gl_LANGINFO_H_DEFAULTS], +[ + GNULIB_NL_LANGINFO=0; AC_SUBST([GNULIB_NL_LANGINFO]) + dnl Assume proper GNU behavior unless another module says otherwise. + HAVE_NL_LANGINFO=1; AC_SUBST([HAVE_NL_LANGINFO]) + REPLACE_NL_LANGINFO=0; AC_SUBST([REPLACE_NL_LANGINFO]) +]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/nl_langinfo.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/nl_langinfo.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/nl_langinfo.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/nl_langinfo.m4 2010-06-04 10:27:10.000000000 +0000 @@ -0,0 +1,25 @@ +# nl_langinfo.m4 serial 3 +dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_NL_LANGINFO], +[ + AC_REQUIRE([gl_LANGINFO_H_DEFAULTS]) + AC_REQUIRE([gl_LANGINFO_H]) + AC_CHECK_FUNCS_ONCE([nl_langinfo]) + if test $ac_cv_func_nl_langinfo = yes; then + if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then + : + else + REPLACE_NL_LANGINFO=1 + AC_DEFINE([REPLACE_NL_LANGINFO], [1], + [Define if nl_langinfo exists but is overridden by gnulib.]) + AC_LIBOBJ([nl_langinfo]) + fi + else + HAVE_NL_LANGINFO=0 + AC_LIBOBJ([nl_langinfo]) + fi +]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/regex.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/regex.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/regex.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/regex.m4 2010-06-04 10:27:10.000000000 +0000 @@ -0,0 +1,230 @@ +# serial 56 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +dnl Initially derived from code in GNU grep. +dnl Mostly written by Jim Meyering. + +AC_PREREQ([2.50]) + +AC_DEFUN([gl_REGEX], +[ + AC_CHECK_HEADERS_ONCE([locale.h]) + + AC_ARG_WITH([included-regex], + [AS_HELP_STRING([--without-included-regex], + [don't compile regex; this is the default on systems + with recent-enough versions of the GNU C Library + (use with caution on other systems).])]) + + case $with_included_regex in #( + yes|no) ac_use_included_regex=$with_included_regex + ;; + '') + # If the system regex support is good enough that it passes the + # following run test, then default to *not* using the included regex.c. + # If cross compiling, assume the test would fail and use the included + # regex.c. + AC_CACHE_CHECK([for working re_compile_pattern], + [gl_cv_func_re_compile_pattern_working], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [AC_INCLUDES_DEFAULT[ + #if HAVE_LOCALE_H + #include + #endif + #include + #include + ]], + [[static struct re_pattern_buffer regex; + unsigned char folded_chars[UCHAR_MAX + 1]; + int i; + const char *s; + struct re_registers regs; + + #if HAVE_LOCALE_H + /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html + This test needs valgrind to catch the bug on Debian + GNU/Linux 3.1 x86, but it might catch the bug better + on other platforms and it shouldn't hurt to try the + test here. */ + if (setlocale (LC_ALL, "en_US.UTF-8")) + { + static char const pat[] = "insert into"; + static char const data[] = + "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK"; + re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE + | RE_ICASE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern (pat, sizeof pat - 1, ®ex); + if (s) + return 1; + if (re_search (®ex, data, sizeof data - 1, + 0, sizeof data - 1, ®s) + != -1) + return 1; + if (! setlocale (LC_ALL, "C")) + return 1; + } + #endif + + /* This test is from glibc bug 3957, reported by Andrew Mackey. */ + re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("a[^x]b", 6, ®ex); + if (s) + return 1; + + /* This should fail, but succeeds for glibc-2.5. */ + if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1) + return 1; + + /* This regular expression is from Spencer ere test number 75 + in grep-2.3. */ + re_set_syntax (RE_SYNTAX_POSIX_EGREP); + memset (®ex, 0, sizeof regex); + for (i = 0; i <= UCHAR_MAX; i++) + folded_chars[i] = i; + regex.translate = folded_chars; + s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, ®ex); + /* This should fail with _Invalid character class name_ error. */ + if (!s) + return 1; + + /* Ensure that [b-a] is diagnosed as invalid, when + using RE_NO_EMPTY_RANGES. */ + re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("a[b-a]", 6, ®ex); + if (s == 0) + return 1; + + /* This should succeed, but does not for glibc-2.1.3. */ + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("{1", 2, ®ex); + + if (s) + return 1; + + /* The following example is derived from a problem report + against gawk from Jorge Stolfi . */ + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("[an\371]*n", 7, ®ex); + if (s) + return 1; + + /* This should match, but does not for glibc-2.2.1. */ + if (re_match (®ex, "an", 2, 0, ®s) != 2) + return 1; + + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("x", 1, ®ex); + if (s) + return 1; + + /* glibc-2.2.93 does not work with a negative RANGE argument. */ + if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) + return 1; + + /* The version of regex.c in older versions of gnulib + ignored RE_ICASE. Detect that problem too. */ + re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("x", 1, ®ex); + if (s) + return 1; + + if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0) + return 1; + + /* Catch a bug reported by Vin Shelton in + http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html + */ + re_set_syntax (RE_SYNTAX_POSIX_BASIC + & ~RE_CONTEXT_INVALID_DUP + & ~RE_NO_EMPTY_RANGES); + memset (®ex, 0, sizeof regex); + s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex); + if (s) + return 1; + + /* REG_STARTEND was added to glibc on 2004-01-15. + Reject older versions. */ + if (! REG_STARTEND) + return 1; + + /* Reject hosts whose regoff_t values are too narrow. + These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t + and 32-bit int. */ + if (sizeof (regoff_t) < sizeof (ptrdiff_t) + || sizeof (regoff_t) < sizeof (ssize_t)) + return 1; + + return 0;]])], + [gl_cv_func_re_compile_pattern_working=yes], + [gl_cv_func_re_compile_pattern_working=no], + dnl When crosscompiling, assume it is not working. + [gl_cv_func_re_compile_pattern_working=no])]) + case $gl_cv_func_re_compile_pattern_working in #( + yes) ac_use_included_regex=no;; #( + no) ac_use_included_regex=yes;; + esac + ;; + *) AC_MSG_ERROR([Invalid value for --with-included-regex: $with_included_regex]) + ;; + esac + + if test $ac_use_included_regex = yes; then + AC_DEFINE([_REGEX_LARGE_OFFSETS], [1], + [Define if you want regoff_t to be at least as wide POSIX requires.]) + AC_DEFINE([re_syntax_options], [rpl_re_syntax_options], + [Define to rpl_re_syntax_options if the replacement should be used.]) + AC_DEFINE([re_set_syntax], [rpl_re_set_syntax], + [Define to rpl_re_set_syntax if the replacement should be used.]) + AC_DEFINE([re_compile_pattern], [rpl_re_compile_pattern], + [Define to rpl_re_compile_pattern if the replacement should be used.]) + AC_DEFINE([re_compile_fastmap], [rpl_re_compile_fastmap], + [Define to rpl_re_compile_fastmap if the replacement should be used.]) + AC_DEFINE([re_search], [rpl_re_search], + [Define to rpl_re_search if the replacement should be used.]) + AC_DEFINE([re_search_2], [rpl_re_search_2], + [Define to rpl_re_search_2 if the replacement should be used.]) + AC_DEFINE([re_match], [rpl_re_match], + [Define to rpl_re_match if the replacement should be used.]) + AC_DEFINE([re_match_2], [rpl_re_match_2], + [Define to rpl_re_match_2 if the replacement should be used.]) + AC_DEFINE([re_set_registers], [rpl_re_set_registers], + [Define to rpl_re_set_registers if the replacement should be used.]) + AC_DEFINE([re_comp], [rpl_re_comp], + [Define to rpl_re_comp if the replacement should be used.]) + AC_DEFINE([re_exec], [rpl_re_exec], + [Define to rpl_re_exec if the replacement should be used.]) + AC_DEFINE([regcomp], [rpl_regcomp], + [Define to rpl_regcomp if the replacement should be used.]) + AC_DEFINE([regexec], [rpl_regexec], + [Define to rpl_regexec if the replacement should be used.]) + AC_DEFINE([regerror], [rpl_regerror], + [Define to rpl_regerror if the replacement should be used.]) + AC_DEFINE([regfree], [rpl_regfree], + [Define to rpl_regfree if the replacement should be used.]) + AC_LIBOBJ([regex]) + gl_PREREQ_REGEX + fi +]) + +# Prerequisites of lib/regex.c and lib/regex_internal.c. +AC_DEFUN([gl_PREREQ_REGEX], +[ + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_C_INLINE]) + AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + AC_CHECK_HEADERS([libintl.h]) + AC_CHECK_FUNCS_ONCE([isblank iswctype wcscoll]) + AC_CHECK_DECLS([isblank], [], [], [#include ]) +]) diff -Nru gettext-0.17/gettext-tools/libgrep/gnulib-m4/wcrtomb.m4 gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/wcrtomb.m4 --- gettext-0.17/gettext-tools/libgrep/gnulib-m4/wcrtomb.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/gnulib-m4/wcrtomb.m4 2010-06-04 10:27:10.000000000 +0000 @@ -0,0 +1,93 @@ +# wcrtomb.m4 serial 5 +dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_WCRTOMB], +[ + AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) + + AC_REQUIRE([AC_TYPE_MBSTATE_T]) + gl_MBSTATE_T_BROKEN + + AC_CHECK_FUNCS_ONCE([wcrtomb]) + if test $ac_cv_func_wcrtomb = no; then + HAVE_WCRTOMB=0 + else + if test $REPLACE_MBSTATE_T = 1; then + REPLACE_WCRTOMB=1 + else + dnl On AIX 4.3, OSF/1 5.1 and Solaris 10, wcrtomb (NULL, 0, NULL) sometimes + dnl returns 0 instead of 1. + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gt_LOCALE_FR]) + AC_REQUIRE([gt_LOCALE_FR_UTF8]) + AC_REQUIRE([gt_LOCALE_JA]) + AC_REQUIRE([gt_LOCALE_ZH_CN]) + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles + AC_CACHE_CHECK([whether wcrtomb return value is correct], + [gl_cv_func_wcrtomb_retval], + [ + dnl Initial guess, used when cross-compiling or when no suitable locale + dnl is present. +changequote(,)dnl + case "$host_os" in + # Guess no on AIX 4, OSF/1 and Solaris. + aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;; + # Guess yes otherwise. + *) gl_cv_func_wcrtomb_retval="guessing yes" ;; + esac +changequote([,])dnl + if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then + AC_TRY_RUN([ +#include +#include +#include +#include +int main () +{ + if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) + { + if (wcrtomb (NULL, 0, NULL) != 1) + return 1; + } + return 0; +}], + [gl_cv_func_wcrtomb_retval=yes], + [gl_cv_func_wcrtomb_retval=no], + [:]) + fi + ]) + case "$gl_cv_func_wcrtomb_retval" in + *yes) ;; + *) REPLACE_WCRTOMB=1 ;; + esac + fi + fi + if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then + gl_REPLACE_WCHAR_H + AC_LIBOBJ([wcrtomb]) + gl_PREREQ_WCRTOMB + fi +]) + +# Prerequisites of lib/wcrtomb.c. +AC_DEFUN([gl_PREREQ_WCRTOMB], [ + : +]) diff -Nru gettext-0.17/gettext-tools/libgrep/hard-locale.c gettext-0.18.1.1/gettext-tools/libgrep/hard-locale.c --- gettext-0.17/gettext-tools/libgrep/hard-locale.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/hard-locale.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -/* hard-locale.c -- Determine whether a locale is hard. - - Copyright (C) 1997-1999, 2002-2005, 2007 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "hard-locale.h" - -#include -#include -#include - -#ifdef __GLIBC__ -# define GLIBC_VERSION __GLIBC__ -#else -# define GLIBC_VERSION 0 -#endif - -/* Return true if the current CATEGORY locale is hard, i.e. if you - can't get away with assuming traditional C or POSIX behavior. */ -bool -hard_locale (int category) -{ - bool hard = true; - char const *p = setlocale (category, NULL); - - if (p) - { - if (2 <= GLIBC_VERSION) - { - if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0) - hard = false; - } - else - { - char *locale = strdup (p); - if (locale) - { - /* Temporarily set the locale to the "C" and "POSIX" locales - to find their names, so that we can determine whether one - or the other is the caller's locale. */ - if (((p = setlocale (category, "C")) - && strcmp (p, locale) == 0) - || ((p = setlocale (category, "POSIX")) - && strcmp (p, locale) == 0)) - hard = false; - - /* Restore the caller's locale. */ - setlocale (category, locale); - free (locale); - } - } - } - - return hard; -} diff -Nru gettext-0.17/gettext-tools/libgrep/hard-locale.h gettext-0.18.1.1/gettext-tools/libgrep/hard-locale.h --- gettext-0.17/gettext-tools/libgrep/hard-locale.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/hard-locale.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -/* Determine whether a locale is hard. - - Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef HARD_LOCALE_H_ -# define HARD_LOCALE_H_ 1 - -# include - -bool hard_locale (int); - -#endif /* HARD_LOCALE_H_ */ diff -Nru gettext-0.17/gettext-tools/libgrep/kwset.c gettext-0.18.1.1/gettext-tools/libgrep/kwset.c --- gettext-0.17/gettext-tools/libgrep/kwset.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/kwset.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* kwset.c - search for any of a set of keywords. - Copyright 1989, 1998, 2000, 2005-2006 Free Software Foundation, Inc. + Copyright 1989, 1998, 2000, 2005-2006, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -50,39 +50,39 @@ /* Balanced tree of edges and labels leaving a given trie node. */ struct tree { - struct tree *llink; /* Left link; MUST be first field. */ - struct tree *rlink; /* Right link (to larger labels). */ - struct trie *trie; /* Trie node pointed to by this edge. */ - unsigned char label; /* Label on this edge. */ - char balance; /* Difference in depths of subtrees. */ + struct tree *llink; /* Left link; MUST be first field. */ + struct tree *rlink; /* Right link (to larger labels). */ + struct trie *trie; /* Trie node pointed to by this edge. */ + unsigned char label; /* Label on this edge. */ + char balance; /* Difference in depths of subtrees. */ }; /* Node of a trie representing a set of reversed keywords. */ struct trie { - unsigned int accepting; /* Word index of accepted word, or zero. */ - struct tree *links; /* Tree of edges leaving this node. */ - struct trie *parent; /* Parent of this node. */ - struct trie *next; /* List of all trie nodes in level order. */ - struct trie *fail; /* Aho-Corasick failure function. */ - int depth; /* Depth of this node from the root. */ - int shift; /* Shift function for search failures. */ - int maxshift; /* Max shift of self and descendents. */ + unsigned int accepting; /* Word index of accepted word, or zero. */ + struct tree *links; /* Tree of edges leaving this node. */ + struct trie *parent; /* Parent of this node. */ + struct trie *next; /* List of all trie nodes in level order. */ + struct trie *fail; /* Aho-Corasick failure function. */ + int depth; /* Depth of this node from the root. */ + int shift; /* Shift function for search failures. */ + int maxshift; /* Max shift of self and descendents. */ }; /* Structure returned opaquely to the caller, containing everything. */ struct kwset { - struct obstack obstack; /* Obstack for node allocation. */ - int words; /* Number of words in the trie. */ - struct trie *trie; /* The trie itself. */ - int mind; /* Minimum depth of an accepting node. */ - int maxd; /* Maximum depth of any node. */ - unsigned char delta[NCHAR]; /* Delta table for rapid search. */ - struct trie *next[NCHAR]; /* Table of children of the root. */ - char *target; /* Target string if there's only one. */ - int mind2; /* Used in Boyer-Moore search for one string. */ - char const *trans; /* Character translation table. */ + struct obstack obstack; /* Obstack for node allocation. */ + int words; /* Number of words in the trie. */ + struct trie *trie; /* The trie itself. */ + int mind; /* Minimum depth of an accepting node. */ + int maxd; /* Maximum depth of any node. */ + unsigned char delta[NCHAR]; /* Delta table for rapid search. */ + struct trie *next[NCHAR]; /* Table of children of the root. */ + char *target; /* Target string if there's only one. */ + int mind2; /* Used in Boyer-Moore search for one string. */ + char const *trans; /* Character translation table. */ }; /* Allocate and initialize a keyword set object, returning an opaque @@ -92,18 +92,18 @@ { struct kwset *kwset; - kwset = (struct kwset *) malloc(sizeof (struct kwset)); + kwset = (struct kwset *) malloc (sizeof (struct kwset)); if (!kwset) - return 0; + return NULL; - obstack_init(&kwset->obstack); + obstack_init (&kwset->obstack); kwset->words = 0; kwset->trie - = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie)); + = (struct trie *) obstack_alloc (&kwset->obstack, sizeof (struct trie)); if (!kwset->trie) { - kwsfree((kwset_t) kwset); - return 0; + kwsfree (kwset); + return NULL; } kwset->trie->accepting = 0; kwset->trie->links = 0; @@ -117,7 +117,7 @@ kwset->target = 0; kwset->trans = trans; - return (kwset_t) kwset; + return kwset; } /* Add the given string to the contents of the keyword set. Return NULL @@ -127,12 +127,6 @@ { struct kwset *kwset; register struct trie *trie; - register unsigned char label; - register struct tree *link; - register int depth; - struct tree *links[12]; - enum { L, R } dirs[12]; - struct tree *t, *r, *l, *rl, *lr; kwset = (struct kwset *) kws; trie = kwset->trie; @@ -142,122 +136,131 @@ installing new nodes when necessary. */ while (len--) { + register unsigned char label; + register struct tree *link; + register int depth; + struct tree *links[12]; + enum { L, R } dirs[12]; + label = kwset->trans ? kwset->trans[(unsigned char) *--text] : *--text; /* Descend the tree of outgoing links for this trie node, - looking for the current character and keeping track - of the path followed. */ + looking for the current character and keeping track + of the path followed. */ link = trie->links; links[0] = (struct tree *) &trie->links; dirs[0] = L; depth = 1; while (link && label != link->label) - { - links[depth] = link; - if (label < link->label) - dirs[depth++] = L, link = link->llink; - else - dirs[depth++] = R, link = link->rlink; - } + { + links[depth] = link; + if (label < link->label) + dirs[depth++] = L, link = link->llink; + else + dirs[depth++] = R, link = link->rlink; + } /* The current character doesn't have an outgoing link at - this trie node, so build a new trie node and install - a link in the current trie node's tree. */ + this trie node, so build a new trie node and install + a link in the current trie node's tree. */ if (!link) - { - link = (struct tree *) obstack_alloc(&kwset->obstack, - sizeof (struct tree)); - if (!link) - return _("memory exhausted"); - link->llink = 0; - link->rlink = 0; - link->trie = (struct trie *) obstack_alloc(&kwset->obstack, - sizeof (struct trie)); - if (!link->trie) - return _("memory exhausted"); - link->trie->accepting = 0; - link->trie->links = 0; - link->trie->parent = trie; - link->trie->next = 0; - link->trie->fail = 0; - link->trie->depth = trie->depth + 1; - link->trie->shift = 0; - link->label = label; - link->balance = 0; - - /* Install the new tree node in its parent. */ - if (dirs[--depth] == L) - links[depth]->llink = link; - else - links[depth]->rlink = link; - - /* Back up the tree fixing the balance flags. */ - while (depth && !links[depth]->balance) - { - if (dirs[depth] == L) - --links[depth]->balance; - else - ++links[depth]->balance; - --depth; - } - - /* Rebalance the tree by pointer rotations if necessary. */ - if (depth && ((dirs[depth] == L && --links[depth]->balance) - || (dirs[depth] == R && ++links[depth]->balance))) - { - switch (links[depth]->balance) - { - case (char) -2: - switch (dirs[depth + 1]) - { - case L: - r = links[depth], t = r->llink, rl = t->rlink; - t->rlink = r, r->llink = rl; - t->balance = r->balance = 0; - break; - case R: - r = links[depth], l = r->llink, t = l->rlink; - rl = t->rlink, lr = t->llink; - t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; - l->balance = t->balance != 1 ? 0 : -1; - r->balance = t->balance != (char) -1 ? 0 : 1; - t->balance = 0; - break; - default: - abort (); - } - break; - case 2: - switch (dirs[depth + 1]) - { - case R: - l = links[depth], t = l->rlink, lr = t->llink; - t->llink = l, l->rlink = lr; - t->balance = l->balance = 0; - break; - case L: - l = links[depth], r = l->rlink, t = r->llink; - lr = t->llink, rl = t->rlink; - t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; - l->balance = t->balance != 1 ? 0 : -1; - r->balance = t->balance != (char) -1 ? 0 : 1; - t->balance = 0; - break; - default: - abort (); - } - break; - default: - abort (); - } - - if (dirs[depth - 1] == L) - links[depth - 1]->llink = t; - else - links[depth - 1]->rlink = t; - } - } + { + link = (struct tree *) obstack_alloc (&kwset->obstack, + sizeof (struct tree)); + if (!link) + return _("memory exhausted"); + link->llink = 0; + link->rlink = 0; + link->trie = (struct trie *) obstack_alloc (&kwset->obstack, + sizeof (struct trie)); + if (!link->trie) + return _("memory exhausted"); + link->trie->accepting = 0; + link->trie->links = 0; + link->trie->parent = trie; + link->trie->next = 0; + link->trie->fail = 0; + link->trie->depth = trie->depth + 1; + link->trie->shift = 0; + link->label = label; + link->balance = 0; + + /* Install the new tree node in its parent. */ + if (dirs[--depth] == L) + links[depth]->llink = link; + else + links[depth]->rlink = link; + + /* Back up the tree fixing the balance flags. */ + while (depth && !links[depth]->balance) + { + if (dirs[depth] == L) + --links[depth]->balance; + else + ++links[depth]->balance; + --depth; + } + + /* Rebalance the tree by pointer rotations if necessary. */ + if (depth && ((dirs[depth] == L && --links[depth]->balance) + || (dirs[depth] == R && ++links[depth]->balance))) + { + struct tree *t; + + switch (links[depth]->balance) + { + struct tree *r, *l, *rl, *lr; + case (char) -2: + switch (dirs[depth + 1]) + { + case L: + r = links[depth], t = r->llink, rl = t->rlink; + t->rlink = r, r->llink = rl; + t->balance = r->balance = 0; + break; + case R: + r = links[depth], l = r->llink, t = l->rlink; + rl = t->rlink, lr = t->llink; + t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; + l->balance = t->balance != 1 ? 0 : -1; + r->balance = t->balance != (char) -1 ? 0 : 1; + t->balance = 0; + break; + default: + abort (); + } + break; + case 2: + switch (dirs[depth + 1]) + { + case R: + l = links[depth], t = l->rlink, lr = t->llink; + t->llink = l, l->rlink = lr; + t->balance = l->balance = 0; + break; + case L: + l = links[depth], r = l->rlink, t = r->llink; + lr = t->llink, rl = t->rlink; + t->llink = l, l->rlink = lr, t->rlink = r, r->llink = rl; + l->balance = t->balance != 1 ? 0 : -1; + r->balance = t->balance != (char) -1 ? 0 : 1; + t->balance = 0; + break; + default: + abort (); + } + break; + default: + abort (); + } + + if (dirs[depth - 1] == L) + links[depth - 1]->llink = t; + else + links[depth - 1]->rlink = t; + } + } trie = link->trie; } @@ -284,8 +287,8 @@ { if (!tree) return; - enqueue(tree->llink, last); - enqueue(tree->rlink, last); + enqueue (tree->llink, last); + enqueue (tree->rlink, last); (*last) = (*last)->next = tree->trie; } @@ -294,31 +297,31 @@ well as a last resort failure node. */ static void treefails (register struct tree const *tree, struct trie const *fail, - struct trie *recourse) + struct trie *recourse) { - register struct tree *link; - if (!tree) return; - treefails(tree->llink, fail, recourse); - treefails(tree->rlink, fail, recourse); + treefails (tree->llink, fail, recourse); + treefails (tree->rlink, fail, recourse); /* Find, in the chain of fails going back to the root, the first node that has a descendent on the current label. */ while (fail) { + register struct tree *link; + link = fail->links; while (link && tree->label != link->label) - if (tree->label < link->label) - link = link->llink; - else - link = link->rlink; + if (tree->label < link->label) + link = link->llink; + else + link = link->rlink; if (link) - { - tree->trie->fail = link->trie; - return; - } + { + tree->trie->fail = link->trie; + return; + } fail = fail->fail; } @@ -329,13 +332,13 @@ the preexisting delta value is larger than the current depth. */ static void treedelta (register struct tree const *tree, - register unsigned int depth, - unsigned char delta[]) + register unsigned int depth, + unsigned char delta[]) { if (!tree) return; - treedelta(tree->llink, depth, delta); - treedelta(tree->rlink, depth, delta); + treedelta (tree->llink, depth, delta); + treedelta (tree->rlink, depth, delta); if (depth < delta[tree->label]) delta[tree->label] = depth; } @@ -346,9 +349,9 @@ { if (!b) return 1; - if (!hasevery(a, b->llink)) + if (!hasevery (a, b->llink)) return 0; - if (!hasevery(a, b->rlink)) + if (!hasevery (a, b->rlink)) return 0; while (a && b->label != a->label) if (b->label < a->label) @@ -365,124 +368,143 @@ { if (!tree) return; - treenext(tree->llink, next); - treenext(tree->rlink, next); + treenext (tree->llink, next); + treenext (tree->rlink, next); next[tree->label] = tree->trie; } /* Compute the shift for each trie node, as well as the delta table and next cache for the given keyword set. */ const char * -kwsprep (kwset_t kws) +kwsprep (kwset_t kwset) { - register struct kwset *kwset; - register int i; - register struct trie *curr, *fail; - register char const *trans; unsigned char delta[NCHAR]; - struct trie *last, *next[NCHAR]; - - kwset = (struct kwset *) kws; /* Initial values for the delta table; will be changed later. The delta entry for a given character is the smallest depth of any node at which an outgoing edge is labeled by that character. */ - if (kwset->mind < 256) - for (i = 0; i < NCHAR; ++i) - delta[i] = kwset->mind; - else - for (i = 0; i < NCHAR; ++i) - delta[i] = 255; + { + register int i; + + if (kwset->mind < 256) + for (i = 0; i < NCHAR; ++i) + delta[i] = kwset->mind; + else + for (i = 0; i < NCHAR; ++i) + delta[i] = 255; + } /* Check if we can use the simple boyer-moore algorithm, instead of the hairy commentz-walter algorithm. */ if (kwset->words == 1 && kwset->trans == 0) { + register int i; + register struct trie *curr; + /* Looking for just one string. Extract it from the trie. */ - kwset->target = (char *) obstack_alloc(&kwset->obstack, kwset->mind); + kwset->target = (char *) obstack_alloc (&kwset->obstack, kwset->mind); for (i = kwset->mind - 1, curr = kwset->trie; i >= 0; --i) - { - kwset->target[i] = curr->links->label; - curr = curr->links->trie; - } + { + kwset->target[i] = curr->links->label; + curr = curr->links->trie; + } /* Build the Boyer Moore delta. Boy that's easy compared to CW. */ for (i = 0; i < kwset->mind; ++i) - delta[(unsigned char) kwset->target[i]] = kwset->mind - (i + 1); + delta[(unsigned char) kwset->target[i]] = kwset->mind - (i + 1); kwset->mind2 = kwset->mind; /* Find the minimal delta2 shift that we might make after - a backwards match has failed. */ + a backwards match has failed. */ for (i = 0; i < kwset->mind - 1; ++i) - if (kwset->target[i] == kwset->target[kwset->mind - 1]) - kwset->mind2 = kwset->mind - (i + 1); + if (kwset->target[i] == kwset->target[kwset->mind - 1]) + kwset->mind2 = kwset->mind - (i + 1); } else { + register struct trie *curr; + struct trie *last; + /* Traverse the nodes of the trie in level order, simultaneously - computing the delta table, failure function, and shift function. */ + computing the delta table, failure function, and shift function. */ for (curr = last = kwset->trie; curr; curr = curr->next) - { - /* Enqueue the immediate descendents in the level order queue. */ - enqueue(curr->links, &last); - - curr->shift = kwset->mind; - curr->maxshift = kwset->mind; - - /* Update the delta table for the descendents of this node. */ - treedelta(curr->links, curr->depth, delta); - - /* Compute the failure function for the decendents of this node. */ - treefails(curr->links, curr->fail, kwset->trie); - - /* Update the shifts at each node in the current node's chain - of fails back to the root. */ - for (fail = curr->fail; fail; fail = fail->fail) - { - /* If the current node has some outgoing edge that the fail - doesn't, then the shift at the fail should be no larger - than the difference of their depths. */ - if (!hasevery(fail->links, curr->links)) - if (curr->depth - fail->depth < fail->shift) - fail->shift = curr->depth - fail->depth; - - /* If the current node is accepting then the shift at the - fail and its descendents should be no larger than the - difference of their depths. */ - if (curr->accepting && fail->maxshift > curr->depth - fail->depth) - fail->maxshift = curr->depth - fail->depth; - } - } + { + register struct trie *fail; + + /* Enqueue the immediate descendents in the level order queue. */ + enqueue (curr->links, &last); + + curr->shift = kwset->mind; + curr->maxshift = kwset->mind; + + /* Update the delta table for the descendents of this node. */ + treedelta (curr->links, curr->depth, delta); + + /* Compute the failure function for the decendents of this node. */ + treefails (curr->links, curr->fail, kwset->trie); + + /* Update the shifts at each node in the current node's chain + of fails back to the root. */ + for (fail = curr->fail; fail; fail = fail->fail) + { + /* If the current node has some outgoing edge that the fail + doesn't, then the shift at the fail should be no larger + than the difference of their depths. */ + if (!hasevery (fail->links, curr->links)) + if (curr->depth - fail->depth < fail->shift) + fail->shift = curr->depth - fail->depth; + + /* If the current node is accepting then the shift at the + fail and its descendents should be no larger than the + difference of their depths. */ + if (curr->accepting && fail->maxshift > curr->depth - fail->depth) + fail->maxshift = curr->depth - fail->depth; + } + } /* Traverse the trie in level order again, fixing up all nodes whose - shift exceeds their inherited maxshift. */ + shift exceeds their inherited maxshift. */ for (curr = kwset->trie->next; curr; curr = curr->next) - { - if (curr->maxshift > curr->parent->maxshift) - curr->maxshift = curr->parent->maxshift; - if (curr->shift > curr->maxshift) - curr->shift = curr->maxshift; - } + { + if (curr->maxshift > curr->parent->maxshift) + curr->maxshift = curr->parent->maxshift; + if (curr->shift > curr->maxshift) + curr->shift = curr->maxshift; + } /* Create a vector, indexed by character code, of the outgoing links - from the root node. */ - for (i = 0; i < NCHAR; ++i) - next[i] = 0; - treenext(kwset->trie->links, next); + from the root node. */ + { + struct trie *next[NCHAR]; + register int i; - if ((trans = kwset->trans) != 0) - for (i = 0; i < NCHAR; ++i) - kwset->next[i] = next[(unsigned char) trans[i]]; - else - for (i = 0; i < NCHAR; ++i) - kwset->next[i] = next[i]; + for (i = 0; i < NCHAR; ++i) + next[i] = 0; + treenext (kwset->trie->links, next); + + { + register char const *trans; + + if ((trans = kwset->trans) != 0) + for (i = 0; i < NCHAR; ++i) + kwset->next[i] = next[(unsigned char) trans[i]]; + else + for (i = 0; i < NCHAR; ++i) + kwset->next[i] = next[i]; + } + } } /* Fix things up for any translation table. */ - if ((trans = kwset->trans) != 0) - for (i = 0; i < NCHAR; ++i) - kwset->delta[i] = delta[(unsigned char) trans[i]]; - else - for (i = 0; i < NCHAR; ++i) - kwset->delta[i] = delta[i]; + { + register char const *trans; + register int i; + + if ((trans = kwset->trans) != 0) + for (i = 0; i < NCHAR; ++i) + kwset->delta[i] = delta[(unsigned char) trans[i]]; + else + for (i = 0; i < NCHAR; ++i) + kwset->delta[i] = delta[i]; + } return 0; } @@ -494,9 +516,7 @@ bmexec (kwset_t kws, char const *text, size_t size) { struct kwset const *kwset; - register unsigned char const *d1; - register char const *ep, *sp, *tp; - register int d, gc, i, len, md2; + register int len; kwset = (struct kwset const *) kws; len = kwset->mind; @@ -507,70 +527,92 @@ return -1; if (len == 1) { + register char const *tp; + tp = (const char *) memchr (text, kwset->target[0], size); return tp ? tp - text : -1; } - d1 = kwset->delta; - sp = kwset->target + len; - gc = U(sp[-2]); - md2 = kwset->mind2; - tp = text + len; - - /* Significance of 12: 1 (initial offset) + 10 (skip loop) + 1 (md2). */ - if (size > 12 * len) - /* 11 is not a bug, the initial offset happens only once. */ - for (ep = text + size - 11 * len;;) + { + register unsigned char const *d1; + register char const *sp; + register int gc; + register int md2; + register char const *tp; + + d1 = kwset->delta; + sp = kwset->target + len; + gc = U(sp[-2]); + md2 = kwset->mind2; + tp = text + len; + + /* Significance of 12: 1 (initial offset) + 10 (skip loop) + 1 (md2). */ + if (size > 12 * len) { - while (tp <= ep) - { - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - if (d == 0) - goto found; - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - if (d == 0) - goto found; - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - if (d == 0) - goto found; - d = d1[U(tp[-1])], tp += d; - d = d1[U(tp[-1])], tp += d; - } - break; - found: - if (U(tp[-2]) == gc) - { - for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) - ; - if (i > len) - return tp - len - text; - } - tp += md2; + register char const *ep; + register int d; + + /* 11 is not a bug, the initial offset happens only once. */ + for (ep = text + size - 11 * len;;) + { + while (tp <= ep) + { + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + if (d == 0) + goto found; + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + if (d == 0) + goto found; + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + if (d == 0) + goto found; + d = d1[U(tp[-1])], tp += d; + d = d1[U(tp[-1])], tp += d; + } + break; + found: + if (U(tp[-2]) == gc) + { + register int i; + for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) + ; + if (i > len) + return tp - len - text; + } + tp += md2; + } } - /* Now we have only a few characters left to search. We - carefully avoid ever producing an out-of-bounds pointer. */ - ep = text + size; - d = d1[U(tp[-1])]; - while (d <= ep - tp) { - d = d1[U((tp += d)[-1])]; - if (d != 0) - continue; - if (U(tp[-2]) == gc) - { - for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) - ; - if (i > len) - return tp - len - text; - } - d = md2; + /* Now we have only a few characters left to search. We + carefully avoid ever producing an out-of-bounds pointer. */ + register char const *ep; + register int d; + + ep = text + size; + d = d1[U(tp[-1])]; + while (d <= ep - tp) + { + d = d1[U((tp += d)[-1])]; + if (d != 0) + continue; + if (U(tp[-2]) == gc) + { + register int i; + for (i = 3; i <= len && U(tp[-i]) == U(sp[-i]); ++i) + ; + if (i > len) + return tp - len - text; + } + d = md2; + } } + } return -1; } @@ -580,155 +622,181 @@ cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch) { struct kwset const *kwset; - struct trie * const *next; - struct trie const *trie; - struct trie const *accept; - char const *beg, *lim, *mch, *lmch; - register unsigned char c; - register unsigned char const *delta; - register int d; - register char const *end, *qlim; - register struct tree const *tree; - register char const *trans; - - accept = NULL; /* Initialize register copies and look for easy ways out. */ kwset = (struct kwset *) kws; if (len < kwset->mind) return -1; - next = kwset->next; - delta = kwset->delta; - trans = kwset->trans; - lim = text + len; - end = text; - if ((d = kwset->mind) != 0) - mch = 0; - else - { - mch = text, accept = kwset->trie; - goto match; - } + { + struct trie const *accept; + struct trie * const *next; + register unsigned char const *delta; + register char const *trans; + char const *lim; + register char const *end; + register int d; + char const *mch; + register char const *qlim; + + accept = NULL; + + next = kwset->next; + delta = kwset->delta; + trans = kwset->trans; + lim = text + len; + end = text; + if ((d = kwset->mind) != 0) + mch = 0; + else + { + mch = text, accept = kwset->trie; + goto match; + } - if (len >= 4 * kwset->mind) - qlim = lim - 4 * kwset->mind; - else - qlim = 0; + if (len >= 4 * kwset->mind) + qlim = lim - 4 * kwset->mind; + else + qlim = 0; - while (lim - end >= d) - { - if (qlim && end <= qlim) - { - end += d - 1; - while ((d = delta[c = *end]) && end < qlim) - { - end += d; - end += delta[(unsigned char) *end]; - end += delta[(unsigned char) *end]; - } - ++end; - } - else - d = delta[c = (end += d)[-1]]; - if (d) - continue; - beg = end - 1; - trie = next[c]; - if (trie->accepting) - { - mch = beg; - accept = trie; - } - d = trie->shift; - while (beg > text) - { - c = trans ? trans[(unsigned char) *--beg] : *--beg; - tree = trie->links; - while (tree && c != tree->label) - if (c < tree->label) - tree = tree->llink; - else - tree = tree->rlink; - if (tree) - { - trie = tree->trie; - if (trie->accepting) - { - mch = beg; - accept = trie; - } - } - else - break; - d = trie->shift; - } - if (mch) - goto match; - } - return -1; + while (lim - end >= d) + { + char const *beg; + struct trie const *trie; - match: - /* Given a known match, find the longest possible match anchored - at or before its starting point. This is nearly a verbatim - copy of the preceding main search loops. */ - if (lim - mch > kwset->maxd) - lim = mch + kwset->maxd; - lmch = 0; - d = 1; - while (lim - end >= d) - { - if ((d = delta[c = (end += d)[-1]]) != 0) - continue; - beg = end - 1; - if (!(trie = next[c])) - { - d = 1; - continue; - } - if (trie->accepting && beg <= mch) - { - lmch = beg; - accept = trie; - } - d = trie->shift; - while (beg > text) - { - c = trans ? trans[(unsigned char) *--beg] : *--beg; - tree = trie->links; - while (tree && c != tree->label) - if (c < tree->label) - tree = tree->llink; - else - tree = tree->rlink; - if (tree) - { - trie = tree->trie; - if (trie->accepting && beg <= mch) - { - lmch = beg; - accept = trie; - } - } - else - break; - d = trie->shift; - } - if (lmch) - { - mch = lmch; - goto match; - } - if (!d) - d = 1; - } + { + register unsigned char c; - if (kwsmatch) - { - kwsmatch->index = accept->accepting / 2; - kwsmatch->offset[0] = mch - text; - kwsmatch->size[0] = accept->depth; + if (qlim && end <= qlim) + { + end += d - 1; + while ((d = delta[c = *end]) && end < qlim) + { + end += d; + end += delta[(unsigned char) *end]; + end += delta[(unsigned char) *end]; + } + ++end; + } + else + d = delta[c = (end += d)[-1]]; + if (d) + continue; + beg = end - 1; + trie = next[c]; + } + if (trie->accepting) + { + mch = beg; + accept = trie; + } + d = trie->shift; + while (beg > text) + { + register unsigned char c; + register struct tree const *tree; + + c = trans ? trans[(unsigned char) *--beg] : *--beg; + tree = trie->links; + while (tree && c != tree->label) + if (c < tree->label) + tree = tree->llink; + else + tree = tree->rlink; + if (tree) + { + trie = tree->trie; + if (trie->accepting) + { + mch = beg; + accept = trie; + } + } + else + break; + d = trie->shift; + } + if (mch) + goto match; + } + return -1; + + match: + /* Given a known match, find the longest possible match anchored + at or before its starting point. This is nearly a verbatim + copy of the preceding main search loops. */ + { + char const *lmch; + + if (lim - mch > kwset->maxd) + lim = mch + kwset->maxd; + lmch = 0; + d = 1; + while (lim - end >= d) + { + char const *beg; + struct trie const *trie; + + { + register unsigned char c; + + if ((d = delta[c = (end += d)[-1]]) != 0) + continue; + beg = end - 1; + if (!(trie = next[c])) + { + d = 1; + continue; + } + } + if (trie->accepting && beg <= mch) + { + lmch = beg; + accept = trie; + } + d = trie->shift; + while (beg > text) + { + register unsigned char c; + register struct tree const *tree; + + c = trans ? trans[(unsigned char) *--beg] : *--beg; + tree = trie->links; + while (tree && c != tree->label) + if (c < tree->label) + tree = tree->llink; + else + tree = tree->rlink; + if (tree) + { + trie = tree->trie; + if (trie->accepting && beg <= mch) + { + lmch = beg; + accept = trie; + } + } + else + break; + d = trie->shift; + } + if (lmch) + { + mch = lmch; + goto match; + } + if (!d) + d = 1; + } } - return mch - text; + + if (kwsmatch) + { + kwsmatch->index = accept->accepting / 2; + kwsmatch->offset[0] = mch - text; + kwsmatch->size[0] = accept->depth; + } + return mch - text; + } } /* Search through the given text for a match of any member of the @@ -740,31 +808,28 @@ keyword matched. */ size_t kwsexec (kwset_t kws, char const *text, size_t size, - struct kwsmatch *kwsmatch) + struct kwsmatch *kwsmatch) { struct kwset const *kwset = (struct kwset *) kws; if (kwset->words == 1 && kwset->trans == 0) { size_t ret = bmexec (kws, text, size); if (kwsmatch != 0 && ret != (size_t) -1) - { - kwsmatch->index = 0; - kwsmatch->offset[0] = ret; - kwsmatch->size[0] = kwset->mind; - } + { + kwsmatch->index = 0; + kwsmatch->offset[0] = ret; + kwsmatch->size[0] = kwset->mind; + } return ret; } else - return cwexec(kws, text, size, kwsmatch); + return cwexec (kws, text, size, kwsmatch); } /* Free the components of the given keyword set. */ void -kwsfree (kwset_t kws) +kwsfree (kwset_t kwset) { - struct kwset *kwset; - - kwset = (struct kwset *) kws; - obstack_free(&kwset->obstack, 0); - free(kws); + obstack_free (&kwset->obstack, 0); + free (kwset); } diff -Nru gettext-0.17/gettext-tools/libgrep/kwset.h gettext-0.18.1.1/gettext-tools/libgrep/kwset.h --- gettext-0.17/gettext-tools/libgrep/kwset.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/kwset.h 2010-06-06 12:49:57.000000000 +0000 @@ -22,9 +22,9 @@ struct kwsmatch { - int index; /* Index number of matching keyword. */ - size_t offset[1]; /* Offset of each submatch. */ - size_t size[1]; /* Length of each submatch. */ + int index; /* Index number of matching keyword. */ + size_t offset[1]; /* Offset of each submatch. */ + size_t size[1]; /* Length of each submatch. */ }; typedef struct kwset * kwset_t; diff -Nru gettext-0.17/gettext-tools/libgrep/langinfo.in.h gettext-0.18.1.1/gettext-tools/libgrep/langinfo.in.h --- gettext-0.17/gettext-tools/libgrep/langinfo.in.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/langinfo.in.h 2010-05-24 14:49:26.000000000 +0000 @@ -0,0 +1,162 @@ +/* Substitute for and wrapper around . + Copyright (C) 2009, 2010 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* + * POSIX for platforms that lack it or have an incomplete one. + * + */ + +#ifndef _GL_LANGINFO_H + +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + +/* The include_next requires a split double-inclusion guard. */ +#if @HAVE_LANGINFO_H@ +# @INCLUDE_NEXT@ @NEXT_LANGINFO_H@ +#endif + +#ifndef _GL_LANGINFO_H +#define _GL_LANGINFO_H + + +#if !@HAVE_LANGINFO_H@ + +/* A platform that lacks . */ + +/* Assume that it also lacks and the nl_item type. */ +typedef int nl_item; + +/* nl_langinfo items of the LC_CTYPE category */ +# define CODESET 10000 +/* nl_langinfo items of the LC_NUMERIC category */ +# define RADIXCHAR 10001 +# define THOUSEP 10002 +/* nl_langinfo items of the LC_TIME category */ +# define D_T_FMT 10003 +# define D_FMT 10004 +# define T_FMT 10005 +# define T_FMT_AMPM 10006 +# define AM_STR 10007 +# define PM_STR 10008 +# define DAY_1 10009 +# define DAY_2 (DAY_1 + 1) +# define DAY_3 (DAY_1 + 2) +# define DAY_4 (DAY_1 + 3) +# define DAY_5 (DAY_1 + 4) +# define DAY_6 (DAY_1 + 5) +# define DAY_7 (DAY_1 + 6) +# define ABDAY_1 10016 +# define ABDAY_2 (ABDAY_1 + 1) +# define ABDAY_3 (ABDAY_1 + 2) +# define ABDAY_4 (ABDAY_1 + 3) +# define ABDAY_5 (ABDAY_1 + 4) +# define ABDAY_6 (ABDAY_1 + 5) +# define ABDAY_7 (ABDAY_1 + 6) +# define MON_1 10023 +# define MON_2 (MON_1 + 1) +# define MON_3 (MON_1 + 2) +# define MON_4 (MON_1 + 3) +# define MON_5 (MON_1 + 4) +# define MON_6 (MON_1 + 5) +# define MON_7 (MON_1 + 6) +# define MON_8 (MON_1 + 7) +# define MON_9 (MON_1 + 8) +# define MON_10 (MON_1 + 9) +# define MON_11 (MON_1 + 10) +# define MON_12 (MON_1 + 11) +# define ABMON_1 10035 +# define ABMON_2 (ABMON_1 + 1) +# define ABMON_3 (ABMON_1 + 2) +# define ABMON_4 (ABMON_1 + 3) +# define ABMON_5 (ABMON_1 + 4) +# define ABMON_6 (ABMON_1 + 5) +# define ABMON_7 (ABMON_1 + 6) +# define ABMON_8 (ABMON_1 + 7) +# define ABMON_9 (ABMON_1 + 8) +# define ABMON_10 (ABMON_1 + 9) +# define ABMON_11 (ABMON_1 + 10) +# define ABMON_12 (ABMON_1 + 11) +# define ERA 10047 +# define ERA_D_FMT 10048 +# define ERA_D_T_FMT 10049 +# define ERA_T_FMT 10050 +# define ALT_DIGITS 10051 +/* nl_langinfo items of the LC_MONETARY category */ +# define CRNCYSTR 10052 +/* nl_langinfo items of the LC_MESSAGES category */ +# define YESEXPR 10053 +# define NOEXPR 10054 + +#else + +/* A platform that has . */ + +# if !@HAVE_LANGINFO_CODESET@ +# define CODESET 10000 +# define GNULIB_defined_CODESET 1 +# endif + +# if !@HAVE_LANGINFO_ERA@ +# define ERA 10047 +# define ERA_D_FMT 10048 +# define ERA_D_T_FMT 10049 +# define ERA_T_FMT 10050 +# define ALT_DIGITS 10051 +# define GNULIB_defined_ERA 1 +# endif + +#endif + +/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ + +/* The definition of _GL_WARN_ON_USE is copied here. */ + +/* Declare overridden functions. */ + + +/* Return a piece of locale dependent information. + Note: The difference between nl_langinfo (CODESET) and locale_charset () + is that the latter normalizes the encoding names to GNU conventions. */ + +#if @GNULIB_NL_LANGINFO@ +# if @REPLACE_NL_LANGINFO@ +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef nl_langinfo +# define nl_langinfo rpl_nl_langinfo +# endif +_GL_FUNCDECL_RPL (nl_langinfo, char *, (nl_item item)); +_GL_CXXALIAS_RPL (nl_langinfo, char *, (nl_item item)); +# else +# if !@HAVE_NL_LANGINFO@ +_GL_FUNCDECL_SYS (nl_langinfo, char *, (nl_item item)); +# endif +_GL_CXXALIAS_SYS (nl_langinfo, char *, (nl_item item)); +# endif +_GL_CXXALIASWARN (nl_langinfo); +#elif defined GNULIB_POSIXCHECK +# undef nl_langinfo +# if HAVE_RAW_DECL_NL_LANGINFO +_GL_WARN_ON_USE (nl_langinfo, "nl_langinfo is not portable - " + "use gnulib module nl_langinfo for portability"); +# endif +#endif + + +#endif /* _GL_LANGINFO_H */ +#endif /* _GL_LANGINFO_H */ diff -Nru gettext-0.17/gettext-tools/libgrep/libgrep.h gettext-0.18.1.1/gettext-tools/libgrep/libgrep.h --- gettext-0.17/gettext-tools/libgrep/libgrep.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/libgrep.h 2010-06-06 12:49:57.000000000 +0000 @@ -31,13 +31,13 @@ /* Compile a pattern and return the compiled pattern. */ void * (*compile) (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, - char eolbyte); + bool match_icase, bool match_words, bool match_lines, + char eolbyte); /* Execute a search. */ size_t (*execute) (const void *compiled_pattern, - const char *buf, size_t buf_size, - size_t *match_size, bool exact); + const char *buf, size_t buf_size, + size_t *match_size, bool exact); /* Free a compiled pattern. */ void (*free) (void *compiled_pattern); diff -Nru gettext-0.17/gettext-tools/libgrep/Makefile.am gettext-0.18.1.1/gettext-tools/libgrep/Makefile.am --- gettext-0.17/gettext-tools/libgrep/Makefile.am 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for libgrep directory in GNU gettext package. -## Copyright (C) 2005-2007 Free Software Foundation, Inc. +## Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,32 +18,26 @@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies EXTRA_DIST = +BUILT_SOURCES = +MOSTLYCLEANFILES = core *.stackdump +MOSTLYCLEANDIRS = +CLEANFILES = +DISTCLEANFILES = +MAINTAINERCLEANFILES = +noinst_LIBRARIES = -noinst_LIBRARIES = libgrep.a +AM_CPPFLAGS = -I.. -I../gnulib-lib -I$(top_srcdir)/gnulib-lib -I../intl + +# Rules generated and collected by gnulib-tool, for building libgrep.a. +include Makefile.gnulib # Sources that are compiled on all platforms. -libgrep_a_SOURCES = \ +libgrep_a_SOURCES += \ libgrep.h \ kwset.h kwset.c \ - dfa.h dfa.c \ - m-common.h m-common.c m-fgrep.c m-regex.c \ - hard-locale.h hard-locale.c - -# Sources that are compiled only on platforms that lack the functions. - -LIBADD_SOURCE = \ - memchr.c \ - regex.h regex.c \ - strdup.c + m-fgrep.c m-regex.c -# How to build libgrep.a. -libgrep_a_LIBADD = @LIBGREPOBJS@ -libgrep_a_DEPENDENCIES = @LIBGREPOBJS@ - -# List of files to be distributed. - -EXTRA_DIST += $(LIBADD_SOURCE) - -AM_CPPFLAGS = -I.. -I../gnulib-lib -I$(top_srcdir)/gnulib-lib -I../intl +# Allow users to use "gnulib-tool --update". +EXTRA_DIST += gnulib-m4/gnulib-cache.m4 diff -Nru gettext-0.17/gettext-tools/libgrep/Makefile.gnulib gettext-0.18.1.1/gettext-tools/libgrep/Makefile.gnulib --- gettext-0.17/gettext-tools/libgrep/Makefile.gnulib 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/Makefile.gnulib 2010-06-04 10:11:59.000000000 +0000 @@ -0,0 +1,145 @@ +## DO NOT EDIT! GENERATED AUTOMATICALLY! +## Process this file with automake to produce Makefile.in. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --avoid=alloca-opt --avoid=extensions --avoid=gettext-h --avoid=include_next --avoid=localcharset --avoid=malloc-posix --avoid=mbrtowc --avoid=mbsinit --avoid=multiarch --avoid=ssize_t --avoid=stdbool --avoid=stddef --avoid=stdint --avoid=stdlib --avoid=streq --avoid=unistd --avoid=verify --avoid=wchar --avoid=wctype --makefile-name=Makefile.gnulib --no-libtool --macro-prefix=grgl regex + + +MOSTLYCLEANFILES += core *.stackdump + +noinst_LIBRARIES += libgrep.a + +libgrep_a_SOURCES = +libgrep_a_LIBADD = $(grgl_LIBOBJS) +libgrep_a_DEPENDENCIES = $(grgl_LIBOBJS) +EXTRA_libgrep_a_SOURCES = + +## begin gnulib module btowc + + +EXTRA_DIST += btowc.c + +EXTRA_libgrep_a_SOURCES += btowc.c + +## end gnulib module btowc + +## begin gnulib module c++defs + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. + +BUILT_SOURCES += c++defs.h +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += c++defs.h c++defs.h-t + +CXXDEFS_H=c++defs.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/c++defs.h + +## end gnulib module c++defs + +## begin gnulib module langinfo + +BUILT_SOURCES += langinfo.h + +# We need the following in order to create an empty placeholder for +# when the system doesn't have one. +langinfo.h: langinfo.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \ + -e 's|@''GNULIB_NL_LANGINFO''@|$(GNULIB_NL_LANGINFO)|g' \ + -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \ + -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \ + -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \ + -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/langinfo.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += langinfo.h langinfo.h-t + +EXTRA_DIST += langinfo.in.h + +## end gnulib module langinfo + +## begin gnulib module nl_langinfo + + +EXTRA_DIST += nl_langinfo.c + +EXTRA_libgrep_a_SOURCES += nl_langinfo.c + +## end gnulib module nl_langinfo + +## begin gnulib module regex + + +EXTRA_DIST += regcomp.c regex.c regex.h regex_internal.c regex_internal.h regexec.c + +EXTRA_libgrep_a_SOURCES += regcomp.c regex.c regex_internal.c regexec.c + +## end gnulib module regex + +## begin gnulib module warn-on-use + +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +EXTRA_DIST += $(top_srcdir)/../build-aux/warn-on-use.h + +## end gnulib module warn-on-use + +## begin gnulib module wcrtomb + + +EXTRA_DIST += wcrtomb.c + +EXTRA_libgrep_a_SOURCES += wcrtomb.c + +## end gnulib module wcrtomb + +## begin gnulib module dummy + +libgrep_a_SOURCES += dummy.c + +## end gnulib module dummy + + +mostlyclean-local: mostlyclean-generic + @for dir in '' $(MOSTLYCLEANDIRS); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + : diff -Nru gettext-0.17/gettext-tools/libgrep/Makefile.in gettext-0.18.1.1/gettext-tools/libgrep/Makefile.in --- gettext-0.17/gettext-tools/libgrep/Makefile.in 2007-11-06 23:40:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/Makefile.in 2010-06-06 20:12:31.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,10 +15,22 @@ @SET_MAKE@ +# Copyright (C) 2002-2010 Free Software Foundation, Inc. +# +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. +# +# Generated by gnulib-tool. +# Reproduce by: gnulib-tool --import --dir=gettext-tools --local-dir=gnulib-local --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --doc-base=doc --tests-base=tests --aux-dir=../build-aux --avoid=alloca-opt --avoid=extensions --avoid=gettext-h --avoid=include_next --avoid=localcharset --avoid=malloc-posix --avoid=mbrtowc --avoid=mbsinit --avoid=multiarch --avoid=ssize_t --avoid=stdbool --avoid=stddef --avoid=stdint --avoid=stdlib --avoid=streq --avoid=unistd --avoid=verify --avoid=wchar --avoid=wctype --makefile-name=Makefile.gnulib --no-libtool --macro-prefix=grgl regex + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -32,33 +45,47 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.gnulib \ + $(srcdir)/Makefile.in ChangeLog subdir = libgrep -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -66,13 +93,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -81,23 +109,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -105,68 +141,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -186,13 +252,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -200,27 +266,47 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru +AM_V_AR = $(am__v_AR_$(V)) +am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY)) +am__v_AR_0 = @echo " AR " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ libgrep_a_AR = $(AR) $(ARFLAGS) -am_libgrep_a_OBJECTS = kwset.$(OBJEXT) dfa.$(OBJEXT) \ - m-common.$(OBJEXT) m-fgrep.$(OBJEXT) m-regex.$(OBJEXT) \ - hard-locale.$(OBJEXT) +am__DEPENDENCIES_1 = +am_libgrep_a_OBJECTS = dummy.$(OBJEXT) kwset.$(OBJEXT) \ + m-fgrep.$(OBJEXT) m-regex.$(OBJEXT) libgrep_a_OBJECTS = $(am_libgrep_a_OBJECTS) -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(libgrep_a_SOURCES) -DIST_SOURCES = $(libgrep_a_SOURCES) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +SOURCES = $(libgrep_a_SOURCES) $(EXTRA_libgrep_a_SOURCES) +DIST_SOURCES = $(libgrep_a_SOURCES) $(EXTRA_libgrep_a_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -228,8 +314,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -270,136 +360,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -413,53 +687,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -472,17 +826,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -490,18 +847,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -516,6 +881,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -526,94 +892,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -623,13 +1117,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -650,8 +1145,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -666,6 +1172,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -679,50 +1186,61 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies -# List of files to be distributed. -EXTRA_DIST = $(LIBADD_SOURCE) +# Allow users to use "gnulib-tool --update". +EXTRA_DIST = btowc.c $(top_srcdir)/../build-aux/c++defs.h \ + langinfo.in.h nl_langinfo.c regcomp.c regex.c regex.h \ + regex_internal.c regex_internal.h regexec.c \ + $(top_srcdir)/../build-aux/warn-on-use.h wcrtomb.c \ + gnulib-m4/gnulib-cache.m4 + +# The BUILT_SOURCES created by this Makefile snippet are not used via #include +# statements but through direct file reference. Therefore this snippet must be +# present in all Makefile.am that need it. This is ensured by the applicability +# 'all' defined above. +BUILT_SOURCES = c++defs.h langinfo.h warn-on-use.h +MOSTLYCLEANFILES = core *.stackdump core *.stackdump c++defs.h \ + c++defs.h-t langinfo.h langinfo.h-t warn-on-use.h \ + warn-on-use.h-t +MOSTLYCLEANDIRS = +CLEANFILES = +DISTCLEANFILES = +MAINTAINERCLEANFILES = noinst_LIBRARIES = libgrep.a +AM_CPPFLAGS = -I.. -I../gnulib-lib -I$(top_srcdir)/gnulib-lib -I../intl + +# Rules generated and collected by gnulib-tool, for building libgrep.a. # Sources that are compiled on all platforms. -libgrep_a_SOURCES = \ - libgrep.h \ - kwset.h kwset.c \ - dfa.h dfa.c \ - m-common.h m-common.c m-fgrep.c m-regex.c \ - hard-locale.h hard-locale.c - - -# Sources that are compiled only on platforms that lack the functions. -LIBADD_SOURCE = \ - memchr.c \ - regex.h regex.c \ - strdup.c - - -# How to build libgrep.a. -libgrep_a_LIBADD = @LIBGREPOBJS@ -libgrep_a_DEPENDENCIES = @LIBGREPOBJS@ -AM_CPPFLAGS = -I.. -I../gnulib-lib -I$(top_srcdir)/gnulib-lib -I../intl -all: all-am +libgrep_a_SOURCES = dummy.c libgrep.h kwset.h kwset.c m-fgrep.c \ + m-regex.c +libgrep_a_LIBADD = $(grgl_LIBOBJS) +libgrep_a_DEPENDENCIES = $(grgl_LIBOBJS) +EXTRA_libgrep_a_SOURCES = btowc.c nl_langinfo.c regcomp.c regex.c \ + regex_internal.c regexec.c wcrtomb.c +CXXDEFS_H = c++defs.h +WARN_ON_USE_H = warn-on-use.h +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/Makefile.gnulib $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libgrep/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits libgrep/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libgrep/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits libgrep/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -740,13 +1258,14 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libgrep.a: $(libgrep_a_OBJECTS) $(libgrep_a_DEPENDENCIES) - -rm -f libgrep.a - $(libgrep_a_AR) libgrep.a $(libgrep_a_OBJECTS) $(libgrep_a_LIBADD) - $(RANLIB) libgrep.a + $(AM_V_at)-rm -f libgrep.a + $(AM_V_AR)$(libgrep_a_AR) libgrep.a $(libgrep_a_OBJECTS) $(libgrep_a_LIBADD) + $(AM_V_at)$(RANLIB) libgrep.a mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -755,12 +1274,15 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: @@ -774,45 +1296,49 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -833,21 +1359,27 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am -check: check-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LIBRARIES) installdirs: -install: install-am +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am @@ -862,15 +1394,21 @@ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: + -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ @@ -887,6 +1425,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -895,18 +1435,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -916,7 +1466,7 @@ mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool + mostlyclean-libtool mostlyclean-local pdf: pdf-am @@ -928,7 +1478,7 @@ uninstall-am: -.MAKE: install-am install-strip +.MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ @@ -941,7 +1491,53 @@ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ - pdf pdf-am ps ps-am tags uninstall uninstall-am + mostlyclean-local pdf pdf-am ps ps-am tags uninstall \ + uninstall-am + +# The c++defs.h that gets inserted into generated .h files is the same as +# build-aux/c++defs.h, except that it has the copyright header cut off. +c++defs.h: $(top_srcdir)/../build-aux/c++defs.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/_GL_CXXDEFS/,$$p' \ + < $(top_srcdir)/../build-aux/c++defs.h \ + > $@-t && \ + mv $@-t $@ + +# We need the following in order to create an empty placeholder for +# when the system doesn't have one. +langinfo.h: langinfo.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \ + -e 's|@''GNULIB_NL_LANGINFO''@|$(GNULIB_NL_LANGINFO)|g' \ + -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \ + -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \ + -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \ + -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/langinfo.in.h; \ + } > $@-t && \ + mv $@-t $@ +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/warn-on-use.h, except that it has the copyright header cut off. +warn-on-use.h: $(top_srcdir)/../build-aux/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/../build-aux/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ + +mostlyclean-local: mostlyclean-generic + @for dir in '' $(MOSTLYCLEANDIRS); do \ + if test -n "$$dir" && test -d $$dir; then \ + echo "rmdir $$dir"; rmdir $$dir; \ + fi; \ + done; \ + : # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff -Nru gettext-0.17/gettext-tools/libgrep/m-common.c gettext-0.18.1.1/gettext-tools/libgrep/m-common.c --- gettext-0.17/gettext-tools/libgrep/m-common.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/m-common.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,98 +0,0 @@ -/* Pattern Matchers - Common Utilities. - Copyright (C) 1992, 1998, 2000, 2005-2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifdef HAVE_CONFIG_H -# include -#endif - -/* Specification. */ -#include "m-common.h" - -#include -#include -#include - -#include "error.h" -#include "exitfail.h" -#include "xalloc.h" -#include "gettext.h" -#define _(str) gettext (str) - -#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -# define IN_CTYPE_DOMAIN(c) 1 -#else -# define IN_CTYPE_DOMAIN(c) isascii(c) -#endif -#define ISUPPER(C) (IN_CTYPE_DOMAIN (C) && isupper (C)) -#define TOLOWER(C) (ISUPPER(C) ? tolower(C) : (C)) - -void -kwsinit (struct compiled_kwset *ckwset, - bool match_icase, bool match_words, bool match_lines, char eolbyte) -{ - if (match_icase) - { - int i; - - ckwset->trans = XNMALLOC (NCHAR, char); - for (i = 0; i < NCHAR; i++) - ckwset->trans[i] = TOLOWER (i); - ckwset->kwset = kwsalloc (ckwset->trans); - } - else - { - ckwset->trans = NULL; - ckwset->kwset = kwsalloc (NULL); - } - if (ckwset->kwset == NULL) - error (exit_failure, 0, _("memory exhausted")); - ckwset->match_words = match_words; - ckwset->match_lines = match_lines; - ckwset->eolbyte = eolbyte; -} - -#ifdef MBS_SUPPORT -/* This function allocate the array which correspond to "buf". - Then this check multibyte string and mark on the positions which - are not singlebyte character nor the first byte of a multibyte - character. Caller must free the array. */ -char* -check_multibyte_string (const char *buf, size_t buf_size) -{ - char *mb_properties = (char *) malloc (buf_size); - mbstate_t cur_state; - int i; - - memset (&cur_state, 0, sizeof (mbstate_t)); - memset (mb_properties, 0, sizeof (char) * buf_size); - for (i = 0; i < buf_size ;) - { - size_t mbclen; - mbclen = mbrlen (buf + i, buf_size - i, &cur_state); - - if (mbclen == (size_t) -1 || mbclen == (size_t) -2 || mbclen == 0) - { - /* An invalid sequence, or a truncated multibyte character. - We treat it as a singlebyte character. */ - mbclen = 1; - } - mb_properties[i] = mbclen; - i += mbclen; - } - - return mb_properties; -} -#endif diff -Nru gettext-0.17/gettext-tools/libgrep/m-common.h gettext-0.18.1.1/gettext-tools/libgrep/m-common.h --- gettext-0.17/gettext-tools/libgrep/m-common.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/m-common.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -/* Pattern Matchers - Common Utilities. - Copyright (C) 1992, 1998, 2000, 2005 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include -#include -#include -#include "kwset.h" - -#if defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_MBRTOWC -/* We can handle multibyte string. */ -# define MBS_SUPPORT -# include -# include -#endif - -#define NCHAR (UCHAR_MAX + 1) - -struct compiled_kwset { - kwset_t kwset; - char *trans; - bool match_words; - bool match_lines; - char eolbyte; -}; - -extern void - kwsinit (struct compiled_kwset *ckwset, - bool match_icase, bool match_words, bool match_lines, - char eolbyte); - -#ifdef MBS_SUPPORT -extern char* - check_multibyte_string (const char *buf, size_t buf_size); -#endif - -#define IS_WORD_CONSTITUENT(C) (ISALNUM(C) || (C) == '_') diff -Nru gettext-0.17/gettext-tools/libgrep/memchr.c gettext-0.18.1.1/gettext-tools/libgrep/memchr.c --- gettext-0.17/gettext-tools/libgrep/memchr.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/memchr.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,200 +0,0 @@ -/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2006 Free - Software Foundation, Inc. - - Based on strlen implementation by Torbjorn Granlund (tege@sics.se), - with help from Dan Sahlin (dan@sics.se) and - commentary by Jim Blandy (jimb@ai.mit.edu); - adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), - and implemented by Roland McGrath (roland@ai.mit.edu). - -NOTE: The canonical source of this file is maintained with the GNU C Library. -Bugs can be reported to bug-glibc@prep.ai.mit.edu. - -This program is free software: you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 3 of the License, or any -later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#ifndef _LIBC -# include -#endif - -#include - -#include - -#if defined _LIBC -# include -#else -# define reg_char char -#endif - -#include - -#if HAVE_BP_SYM_H || defined _LIBC -# include -#else -# define BP_SYM(sym) sym -#endif - -#undef memchr -#undef __memchr - -/* Search no more than N bytes of S for C. */ -void * -__memchr (void const *s, int c_in, size_t n) -{ - const unsigned char *char_ptr; - const unsigned long int *longword_ptr; - unsigned long int longword, magic_bits, charmask; - unsigned reg_char c; - int i; - - c = (unsigned char) c_in; - - /* Handle the first few characters by reading one character at a time. - Do this until CHAR_PTR is aligned on a longword boundary. */ - for (char_ptr = (const unsigned char *) s; - n > 0 && (size_t) char_ptr % sizeof longword != 0; - --n, ++char_ptr) - if (*char_ptr == c) - return (void *) char_ptr; - - /* All these elucidatory comments refer to 4-byte longwords, - but the theory applies equally well to any size longwords. */ - - longword_ptr = (const unsigned long int *) char_ptr; - - /* Bits 31, 24, 16, and 8 of this number are zero. Call these bits - the "holes." Note that there is a hole just to the left of - each byte, with an extra at the end: - - bits: 01111110 11111110 11111110 11111111 - bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD - - The 1-bits make sure that carries propagate to the next 0-bit. - The 0-bits provide holes for carries to fall into. */ - - /* Set MAGIC_BITS to be this pattern of 1 and 0 bits. - Set CHARMASK to be a longword, each of whose bytes is C. */ - - magic_bits = 0xfefefefe; - charmask = c | (c << 8); - charmask |= charmask << 16; -#if 0xffffffffU < ULONG_MAX - magic_bits |= magic_bits << 32; - charmask |= charmask << 32; - if (8 < sizeof longword) - for (i = 64; i < sizeof longword * 8; i *= 2) - { - magic_bits |= magic_bits << i; - charmask |= charmask << i; - } -#endif - magic_bits = (ULONG_MAX >> 1) & (magic_bits | 1); - - /* Instead of the traditional loop which tests each character, - we will test a longword at a time. The tricky part is testing - if *any of the four* bytes in the longword in question are zero. */ - while (n >= sizeof longword) - { - /* We tentatively exit the loop if adding MAGIC_BITS to - LONGWORD fails to change any of the hole bits of LONGWORD. - - 1) Is this safe? Will it catch all the zero bytes? - Suppose there is a byte with all zeros. Any carry bits - propagating from its left will fall into the hole at its - least significant bit and stop. Since there will be no - carry from its most significant bit, the LSB of the - byte to the left will be unchanged, and the zero will be - detected. - - 2) Is this worthwhile? Will it ignore everything except - zero bytes? Suppose every byte of LONGWORD has a bit set - somewhere. There will be a carry into bit 8. If bit 8 - is set, this will carry into bit 16. If bit 8 is clear, - one of bits 9-15 must be set, so there will be a carry - into bit 16. Similarly, there will be a carry into bit - 24. If one of bits 24-30 is set, there will be a carry - into bit 31, so all of the hole bits will be changed. - - The one misfire occurs when bits 24-30 are clear and bit - 31 is set; in this case, the hole at bit 31 is not - changed. If we had access to the processor carry flag, - we could close this loophole by putting the fourth hole - at bit 32! - - So it ignores everything except 128's, when they're aligned - properly. - - 3) But wait! Aren't we looking for C, not zero? - Good point. So what we do is XOR LONGWORD with a longword, - each of whose bytes is C. This turns each byte that is C - into a zero. */ - - longword = *longword_ptr++ ^ charmask; - - /* Add MAGIC_BITS to LONGWORD. */ - if ((((longword + magic_bits) - - /* Set those bits that were unchanged by the addition. */ - ^ ~longword) - - /* Look at only the hole bits. If any of the hole bits - are unchanged, most likely one of the bytes was a - zero. */ - & ~magic_bits) != 0) - { - /* Which of the bytes was C? If none of them were, it was - a misfire; continue the search. */ - - const unsigned char *cp = (const unsigned char *) (longword_ptr - 1); - - if (cp[0] == c) - return (void *) cp; - if (cp[1] == c) - return (void *) &cp[1]; - if (cp[2] == c) - return (void *) &cp[2]; - if (cp[3] == c) - return (void *) &cp[3]; - if (4 < sizeof longword && cp[4] == c) - return (void *) &cp[4]; - if (5 < sizeof longword && cp[5] == c) - return (void *) &cp[5]; - if (6 < sizeof longword && cp[6] == c) - return (void *) &cp[6]; - if (7 < sizeof longword && cp[7] == c) - return (void *) &cp[7]; - if (8 < sizeof longword) - for (i = 8; i < sizeof longword; i++) - if (cp[i] == c) - return (void *) &cp[i]; - } - - n -= sizeof longword; - } - - char_ptr = (const unsigned char *) longword_ptr; - - while (n-- > 0) - { - if (*char_ptr == c) - return (void *) char_ptr; - else - ++char_ptr; - } - - return 0; -} -#ifdef weak_alias -weak_alias (__memchr, BP_SYM (memchr)) -#endif diff -Nru gettext-0.17/gettext-tools/libgrep/m-fgrep.c gettext-0.18.1.1/gettext-tools/libgrep/m-fgrep.c --- gettext-0.17/gettext-tools/libgrep/m-fgrep.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/m-fgrep.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Pattern Matcher for Fixed String search. - Copyright (C) 1992, 1998, 2000, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1992, 1998, 2000, 2005-2006, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,28 +22,78 @@ #include "libgrep.h" #include +#include +#include #include #include +#if defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_MBRTOWC +/* We can handle multibyte string. */ +# define MBS_SUPPORT +# include +# include +#endif + #include "error.h" #include "exitfail.h" #include "xalloc.h" -#include "m-common.h" +#include "kwset.h" +#include "gettext.h" +#define _(str) gettext (str) #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -# define IN_CTYPE_DOMAIN(c) 1 +# define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif +#define ISUPPER(C) (IN_CTYPE_DOMAIN (C) && isupper (C)) +#define TOLOWER(C) (ISUPPER(C) ? tolower(C) : (C)) #define ISALNUM(C) (IN_CTYPE_DOMAIN (C) && isalnum (C)) +#define IS_WORD_CONSTITUENT(C) (ISALNUM(C) || (C) == '_') + +#define NCHAR (UCHAR_MAX + 1) + +struct compiled_kwset { + kwset_t kwset; + char *trans; + bool match_words; + bool match_lines; + char eolbyte; +}; + +static void +kwsinit (struct compiled_kwset *ckwset, + bool match_icase, bool match_words, bool match_lines, char eolbyte) +{ + if (match_icase) + { + int i; + + ckwset->trans = XNMALLOC (NCHAR, char); + for (i = 0; i < NCHAR; i++) + ckwset->trans[i] = TOLOWER (i); + ckwset->kwset = kwsalloc (ckwset->trans); + } + else + { + ckwset->trans = NULL; + ckwset->kwset = kwsalloc (NULL); + } + if (ckwset->kwset == NULL) + error (exit_failure, 0, _("memory exhausted")); + ckwset->match_words = match_words; + ckwset->match_lines = match_lines; + ckwset->eolbyte = eolbyte; +} static void * Fcompile (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, - char eolbyte) + bool match_icase, bool match_words, bool match_lines, + char eolbyte) { struct compiled_kwset *ckwset; - const char *beg, *lim, *err; + const char *beg; + const char *err; ckwset = XMALLOC (struct compiled_kwset); kwsinit (ckwset, match_icase, match_words, match_lines, eolbyte); @@ -51,12 +101,14 @@ beg = pattern; do { + const char *lim; + for (lim = beg; lim < pattern + pattern_size && *lim != '\n'; ++lim) - ; + ; if ((err = kwsincr (ckwset->kwset, beg, lim - beg)) != NULL) - error (exit_failure, 0, err); + error (exit_failure, 0, err); if (lim < pattern + pattern_size) - ++lim; + ++lim; beg = lim; } while (beg < pattern + pattern_size); @@ -66,81 +118,117 @@ return ckwset; } +#ifdef MBS_SUPPORT +/* This function allocate the array which correspond to "buf". + Then this check multibyte string and mark on the positions which + are not singlebyte character nor the first byte of a multibyte + character. Caller must free the array. */ +static char* +check_multibyte_string (const char *buf, size_t buf_size) +{ + char *mb_properties = (char *) malloc (buf_size); + mbstate_t cur_state; + int i; + + memset (&cur_state, 0, sizeof (mbstate_t)); + memset (mb_properties, 0, sizeof (char) * buf_size); + for (i = 0; i < buf_size ;) + { + size_t mbclen; + mbclen = mbrlen (buf + i, buf_size - i, &cur_state); + + if (mbclen == (size_t) -1 || mbclen == (size_t) -2 || mbclen == 0) + { + /* An invalid sequence, or a truncated multibyte character. + We treat it as a singlebyte character. */ + mbclen = 1; + } + mb_properties[i] = mbclen; + i += mbclen; + } + + return mb_properties; +} +#endif + static size_t Fexecute (const void *compiled_pattern, const char *buf, size_t buf_size, - size_t *match_size, bool exact) + size_t *match_size, bool exact) { struct compiled_kwset *ckwset = (struct compiled_kwset *) compiled_pattern; - register const char *beg, *curr, *end; - register size_t len; char eol = ckwset->eolbyte; - struct kwsmatch kwsmatch; + register const char *buflim = buf + buf_size; + register const char *beg; + register size_t len; #ifdef MBS_SUPPORT char *mb_properties; if (MB_CUR_MAX > 1) mb_properties = check_multibyte_string (buf, buf_size); #endif /* MBS_SUPPORT */ - for (beg = buf; beg <= buf + buf_size; ++beg) + for (beg = buf; beg <= buflim; ++beg) { - size_t offset = - kwsexec (ckwset->kwset, beg, buf + buf_size - beg, &kwsmatch); + struct kwsmatch kwsmatch; + size_t offset = kwsexec (ckwset->kwset, beg, buflim - beg, &kwsmatch); if (offset == (size_t) -1) - { + { #ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - free (mb_properties); + if (MB_CUR_MAX > 1) + free (mb_properties); #endif /* MBS_SUPPORT */ - return offset; - } + return offset; + } #ifdef MBS_SUPPORT if (MB_CUR_MAX > 1 && mb_properties[offset+beg-buf] == 0) - continue; /* It is a part of multibyte character. */ + continue; /* It is a part of multibyte character. */ #endif /* MBS_SUPPORT */ beg += offset; len = kwsmatch.size[0]; if (exact) - { - *match_size = len; + { + *match_size = len; #ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - free (mb_properties); + if (MB_CUR_MAX > 1) + free (mb_properties); #endif /* MBS_SUPPORT */ - return beg - buf; - } + return beg - buf; + } if (ckwset->match_lines) - { - if (beg > buf && beg[-1] != eol) - continue; - if (beg + len < buf + buf_size && beg[len] != eol) - continue; - goto success; - } + { + if (beg > buf && beg[-1] != eol) + continue; + if (beg + len < buflim && beg[len] != eol) + continue; + goto success; + } else if (ckwset->match_words) - for (curr = beg; len; ) - { - if (curr > buf && IS_WORD_CONSTITUENT ((unsigned char) curr[-1])) - break; - if (curr + len < buf + buf_size - && IS_WORD_CONSTITUENT ((unsigned char) curr[len])) - { - offset = kwsexec (ckwset->kwset, beg, --len, &kwsmatch); - if (offset == (size_t) -1) - { -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - free (mb_properties); -#endif /* MBS_SUPPORT */ - return offset; - } - curr = beg + offset; - len = kwsmatch.size[0]; - } - else - goto success; - } + { + register const char *curr; + for (curr = beg; len; ) + { + if (curr > buf && IS_WORD_CONSTITUENT ((unsigned char) curr[-1])) + break; + if (curr + len < buflim + && IS_WORD_CONSTITUENT ((unsigned char) curr[len])) + { + offset = kwsexec (ckwset->kwset, beg, --len, &kwsmatch); + if (offset == (size_t) -1) + { +#ifdef MBS_SUPPORT + if (MB_CUR_MAX > 1) + free (mb_properties); +#endif /* MBS_SUPPORT */ + return offset; + } + curr = beg + offset; + len = kwsmatch.size[0]; + } + else + goto success; + } + } else - goto success; + goto success; } #ifdef MBS_SUPPORT @@ -150,16 +238,23 @@ return -1; success: - end = (const char *) memchr (beg + len, eol, (buf + buf_size) - (beg + len)); - end++; - while (buf < beg && beg[-1] != eol) - --beg; - *match_size = end - beg; + { + register const char *end; + + end = (const char *) memchr (beg + len, eol, buflim - (beg + len)); + if (end != NULL) + end++; + else + end = buflim; + while (buf < beg && beg[-1] != eol) + --beg; + *match_size = end - beg; #ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - free (mb_properties); + if (MB_CUR_MAX > 1) + free (mb_properties); #endif /* MBS_SUPPORT */ - return beg - buf; + return beg - buf; + } } static void diff -Nru gettext-0.17/gettext-tools/libgrep/m-regex.c gettext-0.18.1.1/gettext-tools/libgrep/m-regex.c --- gettext-0.17/gettext-tools/libgrep/m-regex.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/m-regex.c 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ /* Pattern Matchers for Regular Expressions. - Copyright (C) 1992, 1998, 2000, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1992, 1998, 2000, 2005-2006, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,30 +22,29 @@ #include "libgrep.h" #include +#include #include #include +#include #include "error.h" #include "exitfail.h" #include "xalloc.h" -#include "m-common.h" - -/* This must be included _after_ m-common.h: It depends on MBS_SUPPORT. */ -#include "dfa.h" #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII)) -# define IN_CTYPE_DOMAIN(c) 1 +# define IN_CTYPE_DOMAIN(c) 1 #else # define IN_CTYPE_DOMAIN(c) isascii(c) #endif #define ISALNUM(C) (IN_CTYPE_DOMAIN (C) && isalnum (C)) +#define IS_WORD_CONSTITUENT(C) (ISALNUM(C) || (C) == '_') struct patterns { /* Regex compiled regexp. */ struct re_pattern_buffer regexbuf; struct re_registers regs; /* This is here on account of a BRAIN-DEAD - Q@#%!# library interface in regex.c. */ + Q@#%!# library interface in regex.c. */ }; struct compiled_regex { @@ -53,78 +52,17 @@ bool match_lines; char eolbyte; - /* DFA compiled regexp. */ - struct dfa dfa; - /* The Regex compiled patterns. */ struct patterns *patterns; size_t pcount; - - /* KWset compiled pattern. We compile a list of strings, at least one of - which is known to occur in any string matching the regexp. */ - struct compiled_kwset ckwset; - - /* Number of compiled fixed strings known to exactly match the regexp. - If kwsexec returns < kwset_exact_matches, then we don't need to - call the regexp matcher at all. */ - int kwset_exact_matches; }; -/* Callback from dfa.c. */ -void -dfaerror (const char *mesg) -{ - error (exit_failure, 0, mesg); -} - -/* If the DFA turns out to have some set of fixed strings one of - which must occur in the match, then we build a kwset matcher - to find those strings, and thus quickly filter out impossible - matches. */ -static void -kwsmusts (struct compiled_regex *cregex, - bool match_icase, bool match_words, bool match_lines, char eolbyte) -{ - struct dfamust const *dm; - const char *err; - - if (cregex->dfa.musts) - { - kwsinit (&cregex->ckwset, match_icase, match_words, match_lines, eolbyte); - /* First, we compile in the substrings known to be exact - matches. The kwset matcher will return the index - of the matching string that it chooses. */ - for (dm = cregex->dfa.musts; dm; dm = dm->next) - { - if (!dm->exact) - continue; - cregex->kwset_exact_matches++; - if ((err = kwsincr (cregex->ckwset.kwset, dm->must, strlen (dm->must))) != NULL) - error (exit_failure, 0, err); - } - /* Now, we compile the substrings that will require - the use of the regexp matcher. */ - for (dm = cregex->dfa.musts; dm; dm = dm->next) - { - if (dm->exact) - continue; - if ((err = kwsincr (cregex->ckwset.kwset, dm->must, strlen (dm->must))) != NULL) - error (exit_failure, 0, err); - } - if ((err = kwsprep (cregex->ckwset.kwset)) != NULL) - error (exit_failure, 0, err); - } -} - static void * -Gcompile (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, char eolbyte) +compile (const char *pattern, size_t pattern_size, + bool match_icase, bool match_words, bool match_lines, char eolbyte, + reg_syntax_t syntax) { struct compiled_regex *cregex; - const char *err; - const char *sep; - size_t total = pattern_size; - const char *motif = pattern; cregex = XMALLOC (struct compiled_regex); memset (cregex, '\0', sizeof (struct compiled_regex)); @@ -134,326 +72,168 @@ cregex->patterns = NULL; cregex->pcount = 0; - re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE); - dfasyntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE, match_icase, eolbyte); + re_set_syntax (syntax); /* For GNU regex compiler we have to pass the patterns separately to detect errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" - GNU regex should have raise a syntax error. The same for backref, where + GNU regex should have raised a syntax error. The same for backref, where the backref should have been local to each pattern. */ - do - { - size_t len; - sep = (const char *) memchr (motif, '\n', total); - if (sep) - { - len = sep - motif; - sep++; - total -= (len + 1); - } - else - { - len = total; - total = 0; - } - - cregex->patterns = xrealloc (cregex->patterns, (cregex->pcount + 1) * sizeof (struct patterns)); - memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns)); - - if ((err = re_compile_pattern (motif, len, - &(cregex->patterns[cregex->pcount].regexbuf))) != NULL) - error (exit_failure, 0, err); - cregex->pcount++; - - motif = sep; - } while (sep && total != 0); - - /* In the match_words and match_lines cases, we use a different pattern - for the DFA matcher that will quickly throw out cases that won't work. - Then if DFA succeeds we do some hairy stuff using the regex matcher - to decide whether the match should really count. */ - if (match_words || match_lines) - { - /* In the whole-word case, we use the pattern: - \(^\|[^[:alnum:]_]\)\(userpattern\)\([^[:alnum:]_]|$\). - In the whole-line case, we use the pattern: - ^\(userpattern\)$. */ - - static const char line_beg[] = "^\\("; - static const char line_end[] = "\\)$"; - static const char word_beg[] = "\\(^\\|[^[:alnum:]_]\\)\\("; - static const char word_end[] = "\\)\\([^[:alnum:]_]\\|$\\)"; - char *n = XNMALLOC (sizeof word_beg - 1 + pattern_size + sizeof word_end, char); - size_t i; - strcpy (n, match_lines ? line_beg : word_beg); - i = strlen (n); - memcpy (n + i, pattern, pattern_size); - i += pattern_size; - strcpy (n + i, match_lines ? line_end : word_end); - i += strlen (n + i); - pattern = n; - pattern_size = i; - } - - dfacomp (pattern, pattern_size, &cregex->dfa, 1); - kwsmusts (cregex, match_icase, match_words, match_lines, eolbyte); + { + const char *sep; + size_t total = pattern_size; + const char *motif = pattern; + + do + { + size_t len; + const char *err; + + sep = (const char *) memchr (motif, '\n', total); + if (sep) + { + len = sep - motif; + sep++; + total -= (len + 1); + } + else + { + len = total; + total = 0; + } + + cregex->patterns = xrealloc (cregex->patterns, (cregex->pcount + 1) * sizeof (struct patterns)); + memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns)); + + if ((err = re_compile_pattern (motif, len, + &cregex->patterns[cregex->pcount].regexbuf)) != NULL) + error (exit_failure, 0, err); + cregex->pcount++; + + motif = sep; + } + while (sep && total != 0); + } return cregex; } static void * -compile (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, char eolbyte, - reg_syntax_t syntax) +Gcompile (const char *pattern, size_t pattern_size, + bool match_icase, bool match_words, bool match_lines, char eolbyte) { - struct compiled_regex *cregex; - const char *err; - const char *sep; - size_t total = pattern_size; - const char *motif = pattern; - - cregex = XMALLOC (struct compiled_regex); - memset (cregex, '\0', sizeof (struct compiled_regex)); - cregex->match_words = match_words; - cregex->match_lines = match_lines; - cregex->eolbyte = eolbyte; - cregex->patterns = NULL; - cregex->pcount = 0; - - re_set_syntax (syntax); - dfasyntax (syntax, match_icase, eolbyte); - - /* For GNU regex compiler we have to pass the patterns separately to detect - errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" - GNU regex should have raise a syntax error. The same for backref, where - the backref should have been local to each pattern. */ - do - { - size_t len; - sep = (const char *) memchr (motif, '\n', total); - if (sep) - { - len = sep - motif; - sep++; - total -= (len + 1); - } - else - { - len = total; - total = 0; - } - - cregex->patterns = xrealloc (cregex->patterns, (cregex->pcount + 1) * sizeof (struct patterns)); - memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns)); - - if ((err = re_compile_pattern (motif, len, - &(cregex->patterns[cregex->pcount].regexbuf))) != NULL) - error (exit_failure, 0, err); - cregex->pcount++; - - motif = sep; - } while (sep && total != 0); - - /* In the match_words and match_lines cases, we use a different pattern - for the DFA matcher that will quickly throw out cases that won't work. - Then if DFA succeeds we do some hairy stuff using the regex matcher - to decide whether the match should really count. */ - if (match_words || match_lines) - { - /* In the whole-word case, we use the pattern: - (^|[^[:alnum:]_])(userpattern)([^[:alnum:]_]|$). - In the whole-line case, we use the pattern: - ^(userpattern)$. */ - - static const char line_beg[] = "^("; - static const char line_end[] = ")$"; - static const char word_beg[] = "(^|[^[:alnum:]_])("; - static const char word_end[] = ")([^[:alnum:]_]|$)"; - char *n = XNMALLOC (sizeof word_beg - 1 + pattern_size + sizeof word_end, char); - size_t i; - strcpy (n, match_lines ? line_beg : word_beg); - i = strlen(n); - memcpy (n + i, pattern, pattern_size); - i += pattern_size; - strcpy (n + i, match_lines ? line_end : word_end); - i += strlen (n + i); - pattern = n; - pattern_size = i; - } - - dfacomp (pattern, pattern_size, &cregex->dfa, 1); - kwsmusts (cregex, match_icase, match_words, match_lines, eolbyte); - - return cregex; + return compile (pattern, pattern_size, + match_icase, match_words, match_lines, eolbyte, + RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE); } static void * Ecompile (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, char eolbyte) + bool match_icase, bool match_words, bool match_lines, char eolbyte) { return compile (pattern, pattern_size, - match_icase, match_words, match_lines, eolbyte, - RE_SYNTAX_POSIX_EGREP); + match_icase, match_words, match_lines, eolbyte, + RE_SYNTAX_POSIX_EGREP); } static void * AWKcompile (const char *pattern, size_t pattern_size, - bool match_icase, bool match_words, bool match_lines, char eolbyte) + bool match_icase, bool match_words, bool match_lines, char eolbyte) { return compile (pattern, pattern_size, - match_icase, match_words, match_lines, eolbyte, - RE_SYNTAX_AWK); + match_icase, match_words, match_lines, eolbyte, + RE_SYNTAX_AWK); } static size_t EGexecute (const void *compiled_pattern, - const char *buf, size_t buf_size, - size_t *match_size, bool exact) + const char *buf, size_t buf_size, + size_t *match_size, bool exact) { struct compiled_regex *cregex = (struct compiled_regex *) compiled_pattern; - register const char *buflim, *beg, *end; char eol = cregex->eolbyte; - int backref, start, len; - struct kwsmatch kwsm; - size_t i; -#ifdef MBS_SUPPORT - char *mb_properties = NULL; -#endif /* MBS_SUPPORT */ - -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1 && cregex->ckwset.kwset) - mb_properties = check_multibyte_string (buf, buf_size); -#endif /* MBS_SUPPORT */ - - buflim = buf + buf_size; + register const char *buflim = buf + buf_size; + register const char *beg; + register const char *end; - for (beg = end = buf; end < buflim; beg = end) + for (beg = buf; beg < buflim; beg = end) { - if (!exact) - { - if (cregex->ckwset.kwset) - { - /* Find a possible match using the KWset matcher. */ - size_t offset = kwsexec (cregex->ckwset.kwset, beg, buflim - beg, &kwsm); - if (offset == (size_t) -1) - { -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1) - free (mb_properties); -#endif - return (size_t)-1; - } - beg += offset; - /* Narrow down to the line containing the candidate, and - run it through DFA. */ - end = (const char *) memchr (beg, eol, buflim - beg); - if (end != NULL) - end++; - else - end = buflim; -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1 && mb_properties[beg - buf] == 0) - continue; -#endif - while (beg > buf && beg[-1] != eol) - --beg; - if (kwsm.index < cregex->kwset_exact_matches) - goto success; - if (dfaexec (&cregex->dfa, beg, end - beg, &backref) == (size_t) -1) - continue; - } - else - { - /* No good fixed strings; start with DFA. */ - size_t offset = dfaexec (&cregex->dfa, beg, buflim - beg, &backref); - if (offset == (size_t) -1) - break; - /* Narrow down to the line we've found. */ - beg += offset; - end = (const char *) memchr (beg, eol, buflim - beg); - if (end != NULL) - end++; - else - end = buflim; - while (beg > buf && beg[-1] != eol) - --beg; - } - /* Successful, no backreferences encountered! */ - if (!backref) - goto success; - } - else - end = beg + buf_size; + size_t i; + + end = (const char *) memchr (beg, eol, buflim - beg); + if (end == NULL) + end = buflim; + /* Here, either end < buflim && *end == eol, or end == buflim. */ - /* If we've made it to this point, this means DFA has seen - a probable match, and we need to run it through Regex. */ for (i = 0; i < cregex->pcount; i++) - { - cregex->patterns[i].regexbuf.not_eol = 0; - if (0 <= (start = re_search (&(cregex->patterns[i].regexbuf), beg, - end - beg - 1, 0, - end - beg - 1, &(cregex->patterns[i].regs)))) - { - len = cregex->patterns[i].regs.end[0] - start; - if (exact) - { - *match_size = len; - return start; - } - if ((!cregex->match_lines && !cregex->match_words) - || (cregex->match_lines && len == end - beg - 1)) - goto success; - /* If -w, check if the match aligns with word boundaries. - We do this iteratively because: - (a) the line may contain more than one occurence of the - pattern, and - (b) Several alternatives in the pattern might be valid at a - given point, and we may need to consider a shorter one to - find a word boundary. */ - if (cregex->match_words) - while (start >= 0) - { - if ((start == 0 || !IS_WORD_CONSTITUENT ((unsigned char) beg[start - 1])) - && (len == end - beg - 1 - || !IS_WORD_CONSTITUENT ((unsigned char) beg[start + len]))) - goto success; - if (len > 0) - { - /* Try a shorter length anchored at the same place. */ - --len; - cregex->patterns[i].regexbuf.not_eol = 1; - len = re_match (&(cregex->patterns[i].regexbuf), beg, - start + len, start, - &(cregex->patterns[i].regs)); - } - if (len <= 0) - { - /* Try looking further on. */ - if (start == end - beg - 1) - break; - ++start; - cregex->patterns[i].regexbuf.not_eol = 0; - start = re_search (&(cregex->patterns[i].regexbuf), beg, - end - beg - 1, - start, end - beg - 1 - start, - &(cregex->patterns[i].regs)); - len = cregex->patterns[i].regs.end[0] - start; - } - } - } - } /* for Regex patterns. */ - } /* for (beg = end ..) */ -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1 && mb_properties) - free (mb_properties); -#endif /* MBS_SUPPORT */ + { + int start, len; + + cregex->patterns[i].regexbuf.not_eol = 0; + if (0 <= (start = re_search (&cregex->patterns[i].regexbuf, beg, + end - beg, 0, + end - beg, &cregex->patterns[i].regs))) + { + len = cregex->patterns[i].regs.end[0] - start; + if (exact) + { + *match_size = len; + return start; + } + if (cregex->match_lines) + { + if (len == end - beg) /* implies start == 0 */ + goto success; + } + else if (cregex->match_words) + { + /* If -w, check if the match aligns with word boundaries. + We do this iteratively because: + (a) the line may contain more than one occurence of the + pattern, and + (b) Several alternatives in the pattern might be valid at + a given point, and we may need to consider a shorter + one to find a word boundary. */ + while (start >= 0) + { + if ((start == 0 || !IS_WORD_CONSTITUENT ((unsigned char) beg[start - 1])) + && (start + len == end - beg + || !IS_WORD_CONSTITUENT ((unsigned char) beg[start + len]))) + goto success; + if (len > 0) + { + /* Try a shorter length anchored at the same place. */ + --len; + cregex->patterns[i].regexbuf.not_eol = 1; + len = re_match (&cregex->patterns[i].regexbuf, beg, + start + len, start, + &cregex->patterns[i].regs); + } + if (len <= 0) + { + /* Try looking further on. */ + if (start == end - beg) + break; + ++start; + cregex->patterns[i].regexbuf.not_eol = 0; + start = re_search (&cregex->patterns[i].regexbuf, beg, + end - beg, + start, end - beg - start, + &cregex->patterns[i].regs); + len = cregex->patterns[i].regs.end[0] - start; + } + } + } + else + goto success; + } + } + + if (end < buflim) + end++; + } return (size_t) -1; success: -#ifdef MBS_SUPPORT - if (MB_CUR_MAX > 1 && mb_properties) - free (mb_properties); -#endif /* MBS_SUPPORT */ *match_size = end - beg; return beg - buf; } @@ -463,9 +243,7 @@ { struct compiled_regex *cregex = (struct compiled_regex *) compiled_pattern; - dfafree (&cregex->dfa); free (cregex->patterns); - free (cregex->ckwset.trans); free (cregex); } diff -Nru gettext-0.17/gettext-tools/libgrep/nl_langinfo.c gettext-0.18.1.1/gettext-tools/libgrep/nl_langinfo.c --- gettext-0.17/gettext-tools/libgrep/nl_langinfo.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/nl_langinfo.c 2010-05-24 14:49:26.000000000 +0000 @@ -0,0 +1,260 @@ +/* nl_langinfo() replacement: query locale dependent information. + + Copyright (C) 2007-2010 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#if REPLACE_NL_LANGINFO + +/* Override nl_langinfo with support for added nl_item values. */ + +# include +# include + +# undef nl_langinfo + +char * +rpl_nl_langinfo (nl_item item) +{ + switch (item) + { +# if GNULIB_defined_CODESET + case CODESET: + { + const char *locale; + static char buf[2 + 10 + 1]; + + locale = setlocale (LC_CTYPE, NULL); + if (locale != NULL && locale[0] != '\0') + { + /* If the locale name contains an encoding after the dot, return + it. */ + const char *dot = strchr (locale, '.'); + + if (dot != NULL) + { + const char *modifier; + + dot++; + /* Look for the possible @... trailer and remove it, if any. */ + modifier = strchr (dot, '@'); + if (modifier == NULL) + return dot; + if (modifier - dot < sizeof (buf)) + { + memcpy (buf, dot, modifier - dot); + buf [modifier - dot] = '\0'; + return buf; + } + } + } + return ""; + } +# endif +# if GNULIB_defined_ERA + case ERA: + /* The format is not standardized. In glibc it is a sequence of strings + of the form "direction:offset:start_date:end_date:era_name:era_format" + with an empty string at the end. */ + return ""; + case ERA_D_FMT: + /* The %Ex conversion in strftime behaves like %x if the locale does not + have an alternative time format. */ + item = D_FMT; + break; + case ERA_D_T_FMT: + /* The %Ec conversion in strftime behaves like %c if the locale does not + have an alternative time format. */ + item = D_T_FMT; + break; + case ERA_T_FMT: + /* The %EX conversion in strftime behaves like %X if the locale does not + have an alternative time format. */ + item = T_FMT; + break; + case ALT_DIGITS: + /* The format is not standardized. In glibc it is a sequence of 10 + strings, appended in memory. */ + return "\0\0\0\0\0\0\0\0\0\0"; +# endif + default: + break; + } + return nl_langinfo (item); +} + +#else + +/* Provide nl_langinfo from scratch. */ + +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + +/* Native Windows platforms. */ + +# define WIN32_LEAN_AND_MEAN /* avoid including junk */ +# include + +# include + +# else + +/* An old Unix platform without locales, such as Linux libc5 or BeOS. */ + +# endif + +# include + +char * +nl_langinfo (nl_item item) +{ + switch (item) + { + /* nl_langinfo items of the LC_CTYPE category */ + case CODESET: +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + { + static char buf[2 + 10 + 1]; + + /* Woe32 has a function returning the locale's codepage as a number. */ + sprintf (buf, "CP%u", GetACP ()); + return buf; + } +# elif defined __BEOS__ + return "UTF-8"; +# else + return "ISO-8859-1"; +# endif + /* nl_langinfo items of the LC_NUMERIC category */ + case RADIXCHAR: + return localeconv () ->decimal_point; + case THOUSEP: + return localeconv () ->thousands_sep; + /* nl_langinfo items of the LC_TIME category. + TODO: Really use the locale. */ + case D_T_FMT: + case ERA_D_T_FMT: + return "%a %b %e %H:%M:%S %Y"; + case D_FMT: + case ERA_D_FMT: + return "%m/%d/%y"; + case T_FMT: + case ERA_T_FMT: + return "%H:%M:%S"; + case T_FMT_AMPM: + return "%I:%M:%S %p"; + case AM_STR: + return "AM"; + case PM_STR: + return "PM"; + case DAY_1: + return "Sunday"; + case DAY_2: + return "Monday"; + case DAY_3: + return "Tuesday"; + case DAY_4: + return "Wednesday"; + case DAY_5: + return "Thursday"; + case DAY_6: + return "Friday"; + case DAY_7: + return "Saturday"; + case ABDAY_1: + return "Sun"; + case ABDAY_2: + return "Mon"; + case ABDAY_3: + return "Tue"; + case ABDAY_4: + return "Wed"; + case ABDAY_5: + return "Thu"; + case ABDAY_6: + return "Fri"; + case ABDAY_7: + return "Sat"; + case MON_1: + return "January"; + case MON_2: + return "February"; + case MON_3: + return "March"; + case MON_4: + return "April"; + case MON_5: + return "May"; + case MON_6: + return "June"; + case MON_7: + return "July"; + case MON_8: + return "August"; + case MON_9: + return "September"; + case MON_10: + return "October"; + case MON_11: + return "November"; + case MON_12: + return "December"; + case ABMON_1: + return "Jan"; + case ABMON_2: + return "Feb"; + case ABMON_3: + return "Mar"; + case ABMON_4: + return "Apr"; + case ABMON_5: + return "May"; + case ABMON_6: + return "Jun"; + case ABMON_7: + return "Jul"; + case ABMON_8: + return "Aug"; + case ABMON_9: + return "Sep"; + case ABMON_10: + return "Oct"; + case ABMON_11: + return "Nov"; + case ABMON_12: + return "Dec"; + case ERA: + return ""; + case ALT_DIGITS: + return "\0\0\0\0\0\0\0\0\0\0"; + /* nl_langinfo items of the LC_MONETARY category + TODO: Really use the locale. */ + case CRNCYSTR: + return "-"; + /* nl_langinfo items of the LC_MESSAGES category + TODO: Really use the locale. */ + case YESEXPR: + return "^[yY]"; + case NOEXPR: + return "^[nN]"; + default: + return ""; + } +} + +#endif diff -Nru gettext-0.17/gettext-tools/libgrep/regcomp.c gettext-0.18.1.1/gettext-tools/libgrep/regcomp.c --- gettext-0.17/gettext-tools/libgrep/regcomp.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regcomp.c 2010-05-24 14:49:27.000000000 +0000 @@ -0,0 +1,3877 @@ +/* Extended regular expression matching and search library. + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free + Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Isamu Hasegawa . + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern, + size_t length, reg_syntax_t syntax); +static void re_compile_fastmap_iter (regex_t *bufp, + const re_dfastate_t *init_state, + char *fastmap); +static reg_errcode_t init_dfa (re_dfa_t *dfa, size_t pat_len); +#ifdef RE_ENABLE_I18N +static void free_charset (re_charset_t *cset); +#endif /* RE_ENABLE_I18N */ +static void free_workarea_compile (regex_t *preg); +static reg_errcode_t create_initial_state (re_dfa_t *dfa); +#ifdef RE_ENABLE_I18N +static void optimize_utf8 (re_dfa_t *dfa); +#endif +static reg_errcode_t analyze (regex_t *preg); +static reg_errcode_t preorder (bin_tree_t *root, + reg_errcode_t (fn (void *, bin_tree_t *)), + void *extra); +static reg_errcode_t postorder (bin_tree_t *root, + reg_errcode_t (fn (void *, bin_tree_t *)), + void *extra); +static reg_errcode_t optimize_subexps (void *extra, bin_tree_t *node); +static reg_errcode_t lower_subexps (void *extra, bin_tree_t *node); +static bin_tree_t *lower_subexp (reg_errcode_t *err, regex_t *preg, + bin_tree_t *node); +static reg_errcode_t calc_first (void *extra, bin_tree_t *node); +static reg_errcode_t calc_next (void *extra, bin_tree_t *node); +static reg_errcode_t link_nfa_nodes (void *extra, bin_tree_t *node); +static Idx duplicate_node (re_dfa_t *dfa, Idx org_idx, unsigned int constraint); +static Idx search_duplicated_node (const re_dfa_t *dfa, Idx org_node, + unsigned int constraint); +static reg_errcode_t calc_eclosure (re_dfa_t *dfa); +static reg_errcode_t calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, + Idx node, bool root); +static reg_errcode_t calc_inveclosure (re_dfa_t *dfa); +static Idx fetch_number (re_string_t *input, re_token_t *token, + reg_syntax_t syntax); +static int peek_token (re_token_t *token, re_string_t *input, + reg_syntax_t syntax) internal_function; +static bin_tree_t *parse (re_string_t *regexp, regex_t *preg, + reg_syntax_t syntax, reg_errcode_t *err); +static bin_tree_t *parse_reg_exp (re_string_t *regexp, regex_t *preg, + re_token_t *token, reg_syntax_t syntax, + Idx nest, reg_errcode_t *err); +static bin_tree_t *parse_branch (re_string_t *regexp, regex_t *preg, + re_token_t *token, reg_syntax_t syntax, + Idx nest, reg_errcode_t *err); +static bin_tree_t *parse_expression (re_string_t *regexp, regex_t *preg, + re_token_t *token, reg_syntax_t syntax, + Idx nest, reg_errcode_t *err); +static bin_tree_t *parse_sub_exp (re_string_t *regexp, regex_t *preg, + re_token_t *token, reg_syntax_t syntax, + Idx nest, reg_errcode_t *err); +static bin_tree_t *parse_dup_op (bin_tree_t *dup_elem, re_string_t *regexp, + re_dfa_t *dfa, re_token_t *token, + reg_syntax_t syntax, reg_errcode_t *err); +static bin_tree_t *parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, + re_token_t *token, reg_syntax_t syntax, + reg_errcode_t *err); +static reg_errcode_t parse_bracket_element (bracket_elem_t *elem, + re_string_t *regexp, + re_token_t *token, int token_len, + re_dfa_t *dfa, + reg_syntax_t syntax, + bool accept_hyphen); +static reg_errcode_t parse_bracket_symbol (bracket_elem_t *elem, + re_string_t *regexp, + re_token_t *token); +#ifdef RE_ENABLE_I18N +static reg_errcode_t build_equiv_class (bitset_t sbcset, + re_charset_t *mbcset, + Idx *equiv_class_alloc, + const unsigned char *name); +static reg_errcode_t build_charclass (RE_TRANSLATE_TYPE trans, + bitset_t sbcset, + re_charset_t *mbcset, + Idx *char_class_alloc, + const unsigned char *class_name, + reg_syntax_t syntax); +#else /* not RE_ENABLE_I18N */ +static reg_errcode_t build_equiv_class (bitset_t sbcset, + const unsigned char *name); +static reg_errcode_t build_charclass (RE_TRANSLATE_TYPE trans, + bitset_t sbcset, + const unsigned char *class_name, + reg_syntax_t syntax); +#endif /* not RE_ENABLE_I18N */ +static bin_tree_t *build_charclass_op (re_dfa_t *dfa, + RE_TRANSLATE_TYPE trans, + const unsigned char *class_name, + const unsigned char *extra, + bool non_match, reg_errcode_t *err); +static bin_tree_t *create_tree (re_dfa_t *dfa, + bin_tree_t *left, bin_tree_t *right, + re_token_type_t type); +static bin_tree_t *create_token_tree (re_dfa_t *dfa, + bin_tree_t *left, bin_tree_t *right, + const re_token_t *token); +static bin_tree_t *duplicate_tree (const bin_tree_t *src, re_dfa_t *dfa); +static void free_token (re_token_t *node); +static reg_errcode_t free_tree (void *extra, bin_tree_t *node); +static reg_errcode_t mark_opt_subexp (void *extra, bin_tree_t *node); + +/* This table gives an error message for each of the error codes listed + in regex.h. Obviously the order here has to be same as there. + POSIX doesn't require that we do anything for REG_NOERROR, + but why not be nice? */ + +static const char __re_error_msgid[] = + { +#define REG_NOERROR_IDX 0 + gettext_noop ("Success") /* REG_NOERROR */ + "\0" +#define REG_NOMATCH_IDX (REG_NOERROR_IDX + sizeof "Success") + gettext_noop ("No match") /* REG_NOMATCH */ + "\0" +#define REG_BADPAT_IDX (REG_NOMATCH_IDX + sizeof "No match") + gettext_noop ("Invalid regular expression") /* REG_BADPAT */ + "\0" +#define REG_ECOLLATE_IDX (REG_BADPAT_IDX + sizeof "Invalid regular expression") + gettext_noop ("Invalid collation character") /* REG_ECOLLATE */ + "\0" +#define REG_ECTYPE_IDX (REG_ECOLLATE_IDX + sizeof "Invalid collation character") + gettext_noop ("Invalid character class name") /* REG_ECTYPE */ + "\0" +#define REG_EESCAPE_IDX (REG_ECTYPE_IDX + sizeof "Invalid character class name") + gettext_noop ("Trailing backslash") /* REG_EESCAPE */ + "\0" +#define REG_ESUBREG_IDX (REG_EESCAPE_IDX + sizeof "Trailing backslash") + gettext_noop ("Invalid back reference") /* REG_ESUBREG */ + "\0" +#define REG_EBRACK_IDX (REG_ESUBREG_IDX + sizeof "Invalid back reference") + gettext_noop ("Unmatched [ or [^") /* REG_EBRACK */ + "\0" +#define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [ or [^") + gettext_noop ("Unmatched ( or \\(") /* REG_EPAREN */ + "\0" +#define REG_EBRACE_IDX (REG_EPAREN_IDX + sizeof "Unmatched ( or \\(") + gettext_noop ("Unmatched \\{") /* REG_EBRACE */ + "\0" +#define REG_BADBR_IDX (REG_EBRACE_IDX + sizeof "Unmatched \\{") + gettext_noop ("Invalid content of \\{\\}") /* REG_BADBR */ + "\0" +#define REG_ERANGE_IDX (REG_BADBR_IDX + sizeof "Invalid content of \\{\\}") + gettext_noop ("Invalid range end") /* REG_ERANGE */ + "\0" +#define REG_ESPACE_IDX (REG_ERANGE_IDX + sizeof "Invalid range end") + gettext_noop ("Memory exhausted") /* REG_ESPACE */ + "\0" +#define REG_BADRPT_IDX (REG_ESPACE_IDX + sizeof "Memory exhausted") + gettext_noop ("Invalid preceding regular expression") /* REG_BADRPT */ + "\0" +#define REG_EEND_IDX (REG_BADRPT_IDX + sizeof "Invalid preceding regular expression") + gettext_noop ("Premature end of regular expression") /* REG_EEND */ + "\0" +#define REG_ESIZE_IDX (REG_EEND_IDX + sizeof "Premature end of regular expression") + gettext_noop ("Regular expression too big") /* REG_ESIZE */ + "\0" +#define REG_ERPAREN_IDX (REG_ESIZE_IDX + sizeof "Regular expression too big") + gettext_noop ("Unmatched ) or \\)") /* REG_ERPAREN */ + }; + +static const size_t __re_error_msgid_idx[] = + { + REG_NOERROR_IDX, + REG_NOMATCH_IDX, + REG_BADPAT_IDX, + REG_ECOLLATE_IDX, + REG_ECTYPE_IDX, + REG_EESCAPE_IDX, + REG_ESUBREG_IDX, + REG_EBRACK_IDX, + REG_EPAREN_IDX, + REG_EBRACE_IDX, + REG_BADBR_IDX, + REG_ERANGE_IDX, + REG_ESPACE_IDX, + REG_BADRPT_IDX, + REG_EEND_IDX, + REG_ESIZE_IDX, + REG_ERPAREN_IDX + }; + +/* Entry points for GNU code. */ + +/* re_compile_pattern is the GNU regular expression compiler: it + compiles PATTERN (of length LENGTH) and puts the result in BUFP. + Returns 0 if the pattern was valid, otherwise an error string. + + Assumes the `allocated' (and perhaps `buffer') and `translate' fields + are set in BUFP on entry. */ + +#ifdef _LIBC +const char * +re_compile_pattern (pattern, length, bufp) + const char *pattern; + size_t length; + struct re_pattern_buffer *bufp; +#else /* size_t might promote */ +const char * +re_compile_pattern (const char *pattern, size_t length, + struct re_pattern_buffer *bufp) +#endif +{ + reg_errcode_t ret; + + /* And GNU code determines whether or not to get register information + by passing null for the REGS argument to re_match, etc., not by + setting no_sub, unless RE_NO_SUB is set. */ + bufp->no_sub = !!(re_syntax_options & RE_NO_SUB); + + /* Match anchors at newline. */ + bufp->newline_anchor = 1; + + ret = re_compile_internal (bufp, pattern, length, re_syntax_options); + + if (!ret) + return NULL; + return gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]); +} +#ifdef _LIBC +weak_alias (__re_compile_pattern, re_compile_pattern) +#endif + +/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can + also be assigned to arbitrarily: each pattern buffer stores its own + syntax, so it can be changed between regex compilations. */ +/* This has no initializer because initialized variables in Emacs + become read-only after dumping. */ +reg_syntax_t re_syntax_options; + + +/* Specify the precise syntax of regexps for compilation. This provides + for compatibility for various utilities which historically have + different, incompatible syntaxes. + + The argument SYNTAX is a bit mask comprised of the various bits + defined in regex.h. We return the old syntax. */ + +reg_syntax_t +re_set_syntax (syntax) + reg_syntax_t syntax; +{ + reg_syntax_t ret = re_syntax_options; + + re_syntax_options = syntax; + return ret; +} +#ifdef _LIBC +weak_alias (__re_set_syntax, re_set_syntax) +#endif + +int +re_compile_fastmap (bufp) + struct re_pattern_buffer *bufp; +{ + re_dfa_t *dfa = (re_dfa_t *) bufp->buffer; + char *fastmap = bufp->fastmap; + + memset (fastmap, '\0', sizeof (char) * SBC_MAX); + re_compile_fastmap_iter (bufp, dfa->init_state, fastmap); + if (dfa->init_state != dfa->init_state_word) + re_compile_fastmap_iter (bufp, dfa->init_state_word, fastmap); + if (dfa->init_state != dfa->init_state_nl) + re_compile_fastmap_iter (bufp, dfa->init_state_nl, fastmap); + if (dfa->init_state != dfa->init_state_begbuf) + re_compile_fastmap_iter (bufp, dfa->init_state_begbuf, fastmap); + bufp->fastmap_accurate = 1; + return 0; +} +#ifdef _LIBC +weak_alias (__re_compile_fastmap, re_compile_fastmap) +#endif + +static inline void +__attribute ((always_inline)) +re_set_fastmap (char *fastmap, bool icase, int ch) +{ + fastmap[ch] = 1; + if (icase) + fastmap[tolower (ch)] = 1; +} + +/* Helper function for re_compile_fastmap. + Compile fastmap for the initial_state INIT_STATE. */ + +static void +re_compile_fastmap_iter (regex_t *bufp, const re_dfastate_t *init_state, + char *fastmap) +{ + re_dfa_t *dfa = (re_dfa_t *) bufp->buffer; + Idx node_cnt; + bool icase = (dfa->mb_cur_max == 1 && (bufp->syntax & RE_ICASE)); + for (node_cnt = 0; node_cnt < init_state->nodes.nelem; ++node_cnt) + { + Idx node = init_state->nodes.elems[node_cnt]; + re_token_type_t type = dfa->nodes[node].type; + + if (type == CHARACTER) + { + re_set_fastmap (fastmap, icase, dfa->nodes[node].opr.c); +#ifdef RE_ENABLE_I18N + if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1) + { + unsigned char buf[MB_LEN_MAX]; + unsigned char *p; + wchar_t wc; + mbstate_t state; + + p = buf; + *p++ = dfa->nodes[node].opr.c; + while (++node < dfa->nodes_len + && dfa->nodes[node].type == CHARACTER + && dfa->nodes[node].mb_partial) + *p++ = dfa->nodes[node].opr.c; + memset (&state, '\0', sizeof (state)); + if (__mbrtowc (&wc, (const char *) buf, p - buf, + &state) == p - buf + && (__wcrtomb ((char *) buf, towlower (wc), &state) + != (size_t) -1)) + re_set_fastmap (fastmap, false, buf[0]); + } +#endif + } + else if (type == SIMPLE_BRACKET) + { + int i, ch; + for (i = 0, ch = 0; i < BITSET_WORDS; ++i) + { + int j; + bitset_word_t w = dfa->nodes[node].opr.sbcset[i]; + for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch) + if (w & ((bitset_word_t) 1 << j)) + re_set_fastmap (fastmap, icase, ch); + } + } +#ifdef RE_ENABLE_I18N + else if (type == COMPLEX_BRACKET) + { + re_charset_t *cset = dfa->nodes[node].opr.mbcset; + Idx i; + +# ifdef _LIBC + /* See if we have to try all bytes which start multiple collation + elements. + e.g. In da_DK, we want to catch 'a' since "aa" is a valid + collation element, and don't catch 'b' since 'b' is + the only collation element which starts from 'b' (and + it is caught by SIMPLE_BRACKET). */ + if (_NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES) != 0 + && (cset->ncoll_syms || cset->nranges)) + { + const int32_t *table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); + for (i = 0; i < SBC_MAX; ++i) + if (table[i] < 0) + re_set_fastmap (fastmap, icase, i); + } +# endif /* _LIBC */ + + /* See if we have to start the match at all multibyte characters, + i.e. where we would not find an invalid sequence. This only + applies to multibyte character sets; for single byte character + sets, the SIMPLE_BRACKET again suffices. */ + if (dfa->mb_cur_max > 1 + && (cset->nchar_classes || cset->non_match || cset->nranges +# ifdef _LIBC + || cset->nequiv_classes +# endif /* _LIBC */ + )) + { + unsigned char c = 0; + do + { + mbstate_t mbs; + memset (&mbs, 0, sizeof (mbs)); + if (__mbrtowc (NULL, (char *) &c, 1, &mbs) == (size_t) -2) + re_set_fastmap (fastmap, false, (int) c); + } + while (++c != 0); + } + + else + { + /* ... Else catch all bytes which can start the mbchars. */ + for (i = 0; i < cset->nmbchars; ++i) + { + char buf[256]; + mbstate_t state; + memset (&state, '\0', sizeof (state)); + if (__wcrtomb (buf, cset->mbchars[i], &state) != (size_t) -1) + re_set_fastmap (fastmap, icase, *(unsigned char *) buf); + if ((bufp->syntax & RE_ICASE) && dfa->mb_cur_max > 1) + { + if (__wcrtomb (buf, towlower (cset->mbchars[i]), &state) + != (size_t) -1) + re_set_fastmap (fastmap, false, *(unsigned char *) buf); + } + } + } + } +#endif /* RE_ENABLE_I18N */ + else if (type == OP_PERIOD +#ifdef RE_ENABLE_I18N + || type == OP_UTF8_PERIOD +#endif /* RE_ENABLE_I18N */ + || type == END_OF_RE) + { + memset (fastmap, '\1', sizeof (char) * SBC_MAX); + if (type == END_OF_RE) + bufp->can_be_null = 1; + return; + } + } +} + +/* Entry point for POSIX code. */ +/* regcomp takes a regular expression as a string and compiles it. + + PREG is a regex_t *. We do not expect any fields to be initialized, + since POSIX says we shouldn't. Thus, we set + + `buffer' to the compiled pattern; + `used' to the length of the compiled pattern; + `syntax' to RE_SYNTAX_POSIX_EXTENDED if the + REG_EXTENDED bit in CFLAGS is set; otherwise, to + RE_SYNTAX_POSIX_BASIC; + `newline_anchor' to REG_NEWLINE being set in CFLAGS; + `fastmap' to an allocated space for the fastmap; + `fastmap_accurate' to zero; + `re_nsub' to the number of subexpressions in PATTERN. + + PATTERN is the address of the pattern string. + + CFLAGS is a series of bits which affect compilation. + + If REG_EXTENDED is set, we use POSIX extended syntax; otherwise, we + use POSIX basic syntax. + + If REG_NEWLINE is set, then . and [^...] don't match newline. + Also, regexec will try a match beginning after every newline. + + If REG_ICASE is set, then we considers upper- and lowercase + versions of letters to be equivalent when matching. + + If REG_NOSUB is set, then when PREG is passed to regexec, that + routine will report only success or failure, and nothing about the + registers. + + It returns 0 if it succeeds, nonzero if it doesn't. (See regex.h for + the return codes and their meanings.) */ + +int +regcomp (preg, pattern, cflags) + regex_t *_Restrict_ preg; + const char *_Restrict_ pattern; + int cflags; +{ + reg_errcode_t ret; + reg_syntax_t syntax = ((cflags & REG_EXTENDED) ? RE_SYNTAX_POSIX_EXTENDED + : RE_SYNTAX_POSIX_BASIC); + + preg->buffer = NULL; + preg->allocated = 0; + preg->used = 0; + + /* Try to allocate space for the fastmap. */ + preg->fastmap = re_malloc (char, SBC_MAX); + if (BE (preg->fastmap == NULL, 0)) + return REG_ESPACE; + + syntax |= (cflags & REG_ICASE) ? RE_ICASE : 0; + + /* If REG_NEWLINE is set, newlines are treated differently. */ + if (cflags & REG_NEWLINE) + { /* REG_NEWLINE implies neither . nor [^...] match newline. */ + syntax &= ~RE_DOT_NEWLINE; + syntax |= RE_HAT_LISTS_NOT_NEWLINE; + /* It also changes the matching behavior. */ + preg->newline_anchor = 1; + } + else + preg->newline_anchor = 0; + preg->no_sub = !!(cflags & REG_NOSUB); + preg->translate = NULL; + + ret = re_compile_internal (preg, pattern, strlen (pattern), syntax); + + /* POSIX doesn't distinguish between an unmatched open-group and an + unmatched close-group: both are REG_EPAREN. */ + if (ret == REG_ERPAREN) + ret = REG_EPAREN; + + /* We have already checked preg->fastmap != NULL. */ + if (BE (ret == REG_NOERROR, 1)) + /* Compute the fastmap now, since regexec cannot modify the pattern + buffer. This function never fails in this implementation. */ + (void) re_compile_fastmap (preg); + else + { + /* Some error occurred while compiling the expression. */ + re_free (preg->fastmap); + preg->fastmap = NULL; + } + + return (int) ret; +} +#ifdef _LIBC +weak_alias (__regcomp, regcomp) +#endif + +/* Returns a message corresponding to an error code, ERRCODE, returned + from either regcomp or regexec. We don't use PREG here. */ + +#ifdef _LIBC +size_t +regerror (errcode, preg, errbuf, errbuf_size) + int errcode; + const regex_t *_Restrict_ preg; + char *_Restrict_ errbuf; + size_t errbuf_size; +#else /* size_t might promote */ +size_t +regerror (int errcode, const regex_t *_Restrict_ preg, + char *_Restrict_ errbuf, size_t errbuf_size) +#endif +{ + const char *msg; + size_t msg_size; + + if (BE (errcode < 0 + || errcode >= (int) (sizeof (__re_error_msgid_idx) + / sizeof (__re_error_msgid_idx[0])), 0)) + /* Only error codes returned by the rest of the code should be passed + to this routine. If we are given anything else, or if other regex + code generates an invalid error code, then the program has a bug. + Dump core so we can fix it. */ + abort (); + + msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]); + + msg_size = strlen (msg) + 1; /* Includes the null. */ + + if (BE (errbuf_size != 0, 1)) + { + size_t cpy_size = msg_size; + if (BE (msg_size > errbuf_size, 0)) + { + cpy_size = errbuf_size - 1; + errbuf[cpy_size] = '\0'; + } + memcpy (errbuf, msg, cpy_size); + } + + return msg_size; +} +#ifdef _LIBC +weak_alias (__regerror, regerror) +#endif + + +#ifdef RE_ENABLE_I18N +/* This static array is used for the map to single-byte characters when + UTF-8 is used. Otherwise we would allocate memory just to initialize + it the same all the time. UTF-8 is the preferred encoding so this is + a worthwhile optimization. */ +static const bitset_t utf8_sb_map = +{ + /* Set the first 128 bits. */ +# if 4 * BITSET_WORD_BITS < ASCII_CHARS +# error "bitset_word_t is narrower than 32 bits" +# elif 3 * BITSET_WORD_BITS < ASCII_CHARS + BITSET_WORD_MAX, BITSET_WORD_MAX, BITSET_WORD_MAX, +# elif 2 * BITSET_WORD_BITS < ASCII_CHARS + BITSET_WORD_MAX, BITSET_WORD_MAX, +# elif 1 * BITSET_WORD_BITS < ASCII_CHARS + BITSET_WORD_MAX, +# endif + (BITSET_WORD_MAX + >> (SBC_MAX % BITSET_WORD_BITS == 0 + ? 0 + : BITSET_WORD_BITS - SBC_MAX % BITSET_WORD_BITS)) +}; +#endif + + +static void +free_dfa_content (re_dfa_t *dfa) +{ + Idx i, j; + + if (dfa->nodes) + for (i = 0; i < dfa->nodes_len; ++i) + free_token (dfa->nodes + i); + re_free (dfa->nexts); + for (i = 0; i < dfa->nodes_len; ++i) + { + if (dfa->eclosures != NULL) + re_node_set_free (dfa->eclosures + i); + if (dfa->inveclosures != NULL) + re_node_set_free (dfa->inveclosures + i); + if (dfa->edests != NULL) + re_node_set_free (dfa->edests + i); + } + re_free (dfa->edests); + re_free (dfa->eclosures); + re_free (dfa->inveclosures); + re_free (dfa->nodes); + + if (dfa->state_table) + for (i = 0; i <= dfa->state_hash_mask; ++i) + { + struct re_state_table_entry *entry = dfa->state_table + i; + for (j = 0; j < entry->num; ++j) + { + re_dfastate_t *state = entry->array[j]; + free_state (state); + } + re_free (entry->array); + } + re_free (dfa->state_table); +#ifdef RE_ENABLE_I18N + if (dfa->sb_char != utf8_sb_map) + re_free (dfa->sb_char); +#endif + re_free (dfa->subexp_map); +#ifdef DEBUG + re_free (dfa->re_str); +#endif + + re_free (dfa); +} + + +/* Free dynamically allocated space used by PREG. */ + +void +regfree (preg) + regex_t *preg; +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + if (BE (dfa != NULL, 1)) + free_dfa_content (dfa); + preg->buffer = NULL; + preg->allocated = 0; + + re_free (preg->fastmap); + preg->fastmap = NULL; + + re_free (preg->translate); + preg->translate = NULL; +} +#ifdef _LIBC +weak_alias (__regfree, regfree) +#endif + +/* Entry points compatible with 4.2 BSD regex library. We don't define + them unless specifically requested. */ + +#if defined _REGEX_RE_COMP || defined _LIBC + +/* BSD has one and only one pattern buffer. */ +static struct re_pattern_buffer re_comp_buf; + +char * +# ifdef _LIBC +/* Make these definitions weak in libc, so POSIX programs can redefine + these names if they don't use our functions, and still use + regcomp/regexec above without link errors. */ +weak_function +# endif +re_comp (s) + const char *s; +{ + reg_errcode_t ret; + char *fastmap; + + if (!s) + { + if (!re_comp_buf.buffer) + return gettext ("No previous regular expression"); + return 0; + } + + if (re_comp_buf.buffer) + { + fastmap = re_comp_buf.fastmap; + re_comp_buf.fastmap = NULL; + __regfree (&re_comp_buf); + memset (&re_comp_buf, '\0', sizeof (re_comp_buf)); + re_comp_buf.fastmap = fastmap; + } + + if (re_comp_buf.fastmap == NULL) + { + re_comp_buf.fastmap = (char *) malloc (SBC_MAX); + if (re_comp_buf.fastmap == NULL) + return (char *) gettext (__re_error_msgid + + __re_error_msgid_idx[(int) REG_ESPACE]); + } + + /* Since `re_exec' always passes NULL for the `regs' argument, we + don't need to initialize the pattern buffer fields which affect it. */ + + /* Match anchors at newlines. */ + re_comp_buf.newline_anchor = 1; + + ret = re_compile_internal (&re_comp_buf, s, strlen (s), re_syntax_options); + + if (!ret) + return NULL; + + /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */ + return (char *) gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]); +} + +#ifdef _LIBC +libc_freeres_fn (free_mem) +{ + __regfree (&re_comp_buf); +} +#endif + +#endif /* _REGEX_RE_COMP */ + +/* Internal entry point. + Compile the regular expression PATTERN, whose length is LENGTH. + SYNTAX indicate regular expression's syntax. */ + +static reg_errcode_t +re_compile_internal (regex_t *preg, const char * pattern, size_t length, + reg_syntax_t syntax) +{ + reg_errcode_t err = REG_NOERROR; + re_dfa_t *dfa; + re_string_t regexp; + + /* Initialize the pattern buffer. */ + preg->fastmap_accurate = 0; + preg->syntax = syntax; + preg->not_bol = preg->not_eol = 0; + preg->used = 0; + preg->re_nsub = 0; + preg->can_be_null = 0; + preg->regs_allocated = REGS_UNALLOCATED; + + /* Initialize the dfa. */ + dfa = (re_dfa_t *) preg->buffer; + if (BE (preg->allocated < sizeof (re_dfa_t), 0)) + { + /* If zero allocated, but buffer is non-null, try to realloc + enough space. This loses if buffer's address is bogus, but + that is the user's responsibility. If ->buffer is NULL this + is a simple allocation. */ + dfa = re_realloc (preg->buffer, re_dfa_t, 1); + if (dfa == NULL) + return REG_ESPACE; + preg->allocated = sizeof (re_dfa_t); + preg->buffer = (unsigned char *) dfa; + } + preg->used = sizeof (re_dfa_t); + + err = init_dfa (dfa, length); + if (BE (err != REG_NOERROR, 0)) + { + free_dfa_content (dfa); + preg->buffer = NULL; + preg->allocated = 0; + return err; + } +#ifdef DEBUG + /* Note: length+1 will not overflow since it is checked in init_dfa. */ + dfa->re_str = re_malloc (char, length + 1); + strncpy (dfa->re_str, pattern, length + 1); +#endif + + __libc_lock_init (dfa->lock); + + err = re_string_construct (®exp, pattern, length, preg->translate, + (syntax & RE_ICASE) != 0, dfa); + if (BE (err != REG_NOERROR, 0)) + { + re_compile_internal_free_return: + free_workarea_compile (preg); + re_string_destruct (®exp); + free_dfa_content (dfa); + preg->buffer = NULL; + preg->allocated = 0; + return err; + } + + /* Parse the regular expression, and build a structure tree. */ + preg->re_nsub = 0; + dfa->str_tree = parse (®exp, preg, syntax, &err); + if (BE (dfa->str_tree == NULL, 0)) + goto re_compile_internal_free_return; + + /* Analyze the tree and create the nfa. */ + err = analyze (preg); + if (BE (err != REG_NOERROR, 0)) + goto re_compile_internal_free_return; + +#ifdef RE_ENABLE_I18N + /* If possible, do searching in single byte encoding to speed things up. */ + if (dfa->is_utf8 && !(syntax & RE_ICASE) && preg->translate == NULL) + optimize_utf8 (dfa); +#endif + + /* Then create the initial state of the dfa. */ + err = create_initial_state (dfa); + + /* Release work areas. */ + free_workarea_compile (preg); + re_string_destruct (®exp); + + if (BE (err != REG_NOERROR, 0)) + { + free_dfa_content (dfa); + preg->buffer = NULL; + preg->allocated = 0; + } + + return err; +} + +/* Initialize DFA. We use the length of the regular expression PAT_LEN + as the initial length of some arrays. */ + +static reg_errcode_t +init_dfa (re_dfa_t *dfa, size_t pat_len) +{ + __re_size_t table_size; +#ifndef _LIBC + char *codeset_name; +#endif +#ifdef RE_ENABLE_I18N + size_t max_i18n_object_size = MAX (sizeof (wchar_t), sizeof (wctype_t)); +#else + size_t max_i18n_object_size = 0; +#endif + size_t max_object_size = + MAX (sizeof (struct re_state_table_entry), + MAX (sizeof (re_token_t), + MAX (sizeof (re_node_set), + MAX (sizeof (regmatch_t), + max_i18n_object_size)))); + + memset (dfa, '\0', sizeof (re_dfa_t)); + + /* Force allocation of str_tree_storage the first time. */ + dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE; + + /* Avoid overflows. The extra "/ 2" is for the table_size doubling + calculation below, and for similar doubling calculations + elsewhere. And it's <= rather than <, because some of the + doubling calculations add 1 afterwards. */ + if (BE (SIZE_MAX / max_object_size / 2 <= pat_len, 0)) + return REG_ESPACE; + + dfa->nodes_alloc = pat_len + 1; + dfa->nodes = re_malloc (re_token_t, dfa->nodes_alloc); + + /* table_size = 2 ^ ceil(log pat_len) */ + for (table_size = 1; ; table_size <<= 1) + if (table_size > pat_len) + break; + + dfa->state_table = calloc (sizeof (struct re_state_table_entry), table_size); + dfa->state_hash_mask = table_size - 1; + + dfa->mb_cur_max = MB_CUR_MAX; +#ifdef _LIBC + if (dfa->mb_cur_max == 6 + && strcmp (_NL_CURRENT (LC_CTYPE, _NL_CTYPE_CODESET_NAME), "UTF-8") == 0) + dfa->is_utf8 = 1; + dfa->map_notascii = (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MAP_TO_NONASCII) + != 0); +#else + codeset_name = nl_langinfo (CODESET); + if (strcasecmp (codeset_name, "UTF-8") == 0 + || strcasecmp (codeset_name, "UTF8") == 0) + dfa->is_utf8 = 1; + + /* We check exhaustively in the loop below if this charset is a + superset of ASCII. */ + dfa->map_notascii = 0; +#endif + +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + { + if (dfa->is_utf8) + dfa->sb_char = (re_bitset_ptr_t) utf8_sb_map; + else + { + int i, j, ch; + + dfa->sb_char = (re_bitset_ptr_t) calloc (sizeof (bitset_t), 1); + if (BE (dfa->sb_char == NULL, 0)) + return REG_ESPACE; + + /* Set the bits corresponding to single byte chars. */ + for (i = 0, ch = 0; i < BITSET_WORDS; ++i) + for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch) + { + wint_t wch = __btowc (ch); + if (wch != WEOF) + dfa->sb_char[i] |= (bitset_word_t) 1 << j; +# ifndef _LIBC + if (isascii (ch) && wch != ch) + dfa->map_notascii = 1; +# endif + } + } + } +#endif + + if (BE (dfa->nodes == NULL || dfa->state_table == NULL, 0)) + return REG_ESPACE; + return REG_NOERROR; +} + +/* Initialize WORD_CHAR table, which indicate which character is + "word". In this case "word" means that it is the word construction + character used by some operators like "\<", "\>", etc. */ + +static void +internal_function +init_word_char (re_dfa_t *dfa) +{ + int i, j, ch; + dfa->word_ops_used = 1; + for (i = 0, ch = 0; i < BITSET_WORDS; ++i) + for (j = 0; j < BITSET_WORD_BITS; ++j, ++ch) + if (isalnum (ch) || ch == '_') + dfa->word_char[i] |= (bitset_word_t) 1 << j; +} + +/* Free the work area which are only used while compiling. */ + +static void +free_workarea_compile (regex_t *preg) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_storage_t *storage, *next; + for (storage = dfa->str_tree_storage; storage; storage = next) + { + next = storage->next; + re_free (storage); + } + dfa->str_tree_storage = NULL; + dfa->str_tree_storage_idx = BIN_TREE_STORAGE_SIZE; + dfa->str_tree = NULL; + re_free (dfa->org_indices); + dfa->org_indices = NULL; +} + +/* Create initial states for all contexts. */ + +static reg_errcode_t +create_initial_state (re_dfa_t *dfa) +{ + Idx first, i; + reg_errcode_t err; + re_node_set init_nodes; + + /* Initial states have the epsilon closure of the node which is + the first node of the regular expression. */ + first = dfa->str_tree->first->node_idx; + dfa->init_node = first; + err = re_node_set_init_copy (&init_nodes, dfa->eclosures + first); + if (BE (err != REG_NOERROR, 0)) + return err; + + /* The back-references which are in initial states can epsilon transit, + since in this case all of the subexpressions can be null. + Then we add epsilon closures of the nodes which are the next nodes of + the back-references. */ + if (dfa->nbackref > 0) + for (i = 0; i < init_nodes.nelem; ++i) + { + Idx node_idx = init_nodes.elems[i]; + re_token_type_t type = dfa->nodes[node_idx].type; + + Idx clexp_idx; + if (type != OP_BACK_REF) + continue; + for (clexp_idx = 0; clexp_idx < init_nodes.nelem; ++clexp_idx) + { + re_token_t *clexp_node; + clexp_node = dfa->nodes + init_nodes.elems[clexp_idx]; + if (clexp_node->type == OP_CLOSE_SUBEXP + && clexp_node->opr.idx == dfa->nodes[node_idx].opr.idx) + break; + } + if (clexp_idx == init_nodes.nelem) + continue; + + if (type == OP_BACK_REF) + { + Idx dest_idx = dfa->edests[node_idx].elems[0]; + if (!re_node_set_contains (&init_nodes, dest_idx)) + { + reg_errcode_t merge_err + = re_node_set_merge (&init_nodes, dfa->eclosures + dest_idx); + if (merge_err != REG_NOERROR) + return merge_err; + i = 0; + } + } + } + + /* It must be the first time to invoke acquire_state. */ + dfa->init_state = re_acquire_state_context (&err, dfa, &init_nodes, 0); + /* We don't check ERR here, since the initial state must not be NULL. */ + if (BE (dfa->init_state == NULL, 0)) + return err; + if (dfa->init_state->has_constraint) + { + dfa->init_state_word = re_acquire_state_context (&err, dfa, &init_nodes, + CONTEXT_WORD); + dfa->init_state_nl = re_acquire_state_context (&err, dfa, &init_nodes, + CONTEXT_NEWLINE); + dfa->init_state_begbuf = re_acquire_state_context (&err, dfa, + &init_nodes, + CONTEXT_NEWLINE + | CONTEXT_BEGBUF); + if (BE (dfa->init_state_word == NULL || dfa->init_state_nl == NULL + || dfa->init_state_begbuf == NULL, 0)) + return err; + } + else + dfa->init_state_word = dfa->init_state_nl + = dfa->init_state_begbuf = dfa->init_state; + + re_node_set_free (&init_nodes); + return REG_NOERROR; +} + +#ifdef RE_ENABLE_I18N +/* If it is possible to do searching in single byte encoding instead of UTF-8 + to speed things up, set dfa->mb_cur_max to 1, clear is_utf8 and change + DFA nodes where needed. */ + +static void +optimize_utf8 (re_dfa_t *dfa) +{ + Idx node; + int i; + bool mb_chars = false; + bool has_period = false; + + for (node = 0; node < dfa->nodes_len; ++node) + switch (dfa->nodes[node].type) + { + case CHARACTER: + if (dfa->nodes[node].opr.c >= ASCII_CHARS) + mb_chars = true; + break; + case ANCHOR: + switch (dfa->nodes[node].opr.ctx_type) + { + case LINE_FIRST: + case LINE_LAST: + case BUF_FIRST: + case BUF_LAST: + break; + default: + /* Word anchors etc. cannot be handled. It's okay to test + opr.ctx_type since constraints (for all DFA nodes) are + created by ORing one or more opr.ctx_type values. */ + return; + } + break; + case OP_PERIOD: + has_period = true; + break; + case OP_BACK_REF: + case OP_ALT: + case END_OF_RE: + case OP_DUP_ASTERISK: + case OP_OPEN_SUBEXP: + case OP_CLOSE_SUBEXP: + break; + case COMPLEX_BRACKET: + return; + case SIMPLE_BRACKET: + /* Just double check. */ + { + int rshift = (ASCII_CHARS % BITSET_WORD_BITS == 0 + ? 0 + : BITSET_WORD_BITS - ASCII_CHARS % BITSET_WORD_BITS); + for (i = ASCII_CHARS / BITSET_WORD_BITS; i < BITSET_WORDS; ++i) + { + if (dfa->nodes[node].opr.sbcset[i] >> rshift != 0) + return; + rshift = 0; + } + } + break; + default: + abort (); + } + + if (mb_chars || has_period) + for (node = 0; node < dfa->nodes_len; ++node) + { + if (dfa->nodes[node].type == CHARACTER + && dfa->nodes[node].opr.c >= ASCII_CHARS) + dfa->nodes[node].mb_partial = 0; + else if (dfa->nodes[node].type == OP_PERIOD) + dfa->nodes[node].type = OP_UTF8_PERIOD; + } + + /* The search can be in single byte locale. */ + dfa->mb_cur_max = 1; + dfa->is_utf8 = 0; + dfa->has_mb_node = dfa->nbackref > 0 || has_period; +} +#endif + +/* Analyze the structure tree, and calculate "first", "next", "edest", + "eclosure", and "inveclosure". */ + +static reg_errcode_t +analyze (regex_t *preg) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + reg_errcode_t ret; + + /* Allocate arrays. */ + dfa->nexts = re_malloc (Idx, dfa->nodes_alloc); + dfa->org_indices = re_malloc (Idx, dfa->nodes_alloc); + dfa->edests = re_malloc (re_node_set, dfa->nodes_alloc); + dfa->eclosures = re_malloc (re_node_set, dfa->nodes_alloc); + if (BE (dfa->nexts == NULL || dfa->org_indices == NULL || dfa->edests == NULL + || dfa->eclosures == NULL, 0)) + return REG_ESPACE; + + dfa->subexp_map = re_malloc (Idx, preg->re_nsub); + if (dfa->subexp_map != NULL) + { + Idx i; + for (i = 0; i < preg->re_nsub; i++) + dfa->subexp_map[i] = i; + preorder (dfa->str_tree, optimize_subexps, dfa); + for (i = 0; i < preg->re_nsub; i++) + if (dfa->subexp_map[i] != i) + break; + if (i == preg->re_nsub) + { + free (dfa->subexp_map); + dfa->subexp_map = NULL; + } + } + + ret = postorder (dfa->str_tree, lower_subexps, preg); + if (BE (ret != REG_NOERROR, 0)) + return ret; + ret = postorder (dfa->str_tree, calc_first, dfa); + if (BE (ret != REG_NOERROR, 0)) + return ret; + preorder (dfa->str_tree, calc_next, dfa); + ret = preorder (dfa->str_tree, link_nfa_nodes, dfa); + if (BE (ret != REG_NOERROR, 0)) + return ret; + ret = calc_eclosure (dfa); + if (BE (ret != REG_NOERROR, 0)) + return ret; + + /* We only need this during the prune_impossible_nodes pass in regexec.c; + skip it if p_i_n will not run, as calc_inveclosure can be quadratic. */ + if ((!preg->no_sub && preg->re_nsub > 0 && dfa->has_plural_match) + || dfa->nbackref) + { + dfa->inveclosures = re_malloc (re_node_set, dfa->nodes_len); + if (BE (dfa->inveclosures == NULL, 0)) + return REG_ESPACE; + ret = calc_inveclosure (dfa); + } + + return ret; +} + +/* Our parse trees are very unbalanced, so we cannot use a stack to + implement parse tree visits. Instead, we use parent pointers and + some hairy code in these two functions. */ +static reg_errcode_t +postorder (bin_tree_t *root, reg_errcode_t (fn (void *, bin_tree_t *)), + void *extra) +{ + bin_tree_t *node, *prev; + + for (node = root; ; ) + { + /* Descend down the tree, preferably to the left (or to the right + if that's the only child). */ + while (node->left || node->right) + if (node->left) + node = node->left; + else + node = node->right; + + do + { + reg_errcode_t err = fn (extra, node); + if (BE (err != REG_NOERROR, 0)) + return err; + if (node->parent == NULL) + return REG_NOERROR; + prev = node; + node = node->parent; + } + /* Go up while we have a node that is reached from the right. */ + while (node->right == prev || node->right == NULL); + node = node->right; + } +} + +static reg_errcode_t +preorder (bin_tree_t *root, reg_errcode_t (fn (void *, bin_tree_t *)), + void *extra) +{ + bin_tree_t *node; + + for (node = root; ; ) + { + reg_errcode_t err = fn (extra, node); + if (BE (err != REG_NOERROR, 0)) + return err; + + /* Go to the left node, or up and to the right. */ + if (node->left) + node = node->left; + else + { + bin_tree_t *prev = NULL; + while (node->right == prev || node->right == NULL) + { + prev = node; + node = node->parent; + if (!node) + return REG_NOERROR; + } + node = node->right; + } + } +} + +/* Optimization pass: if a SUBEXP is entirely contained, strip it and tell + re_search_internal to map the inner one's opr.idx to this one's. Adjust + backreferences as well. Requires a preorder visit. */ +static reg_errcode_t +optimize_subexps (void *extra, bin_tree_t *node) +{ + re_dfa_t *dfa = (re_dfa_t *) extra; + + if (node->token.type == OP_BACK_REF && dfa->subexp_map) + { + int idx = node->token.opr.idx; + node->token.opr.idx = dfa->subexp_map[idx]; + dfa->used_bkref_map |= 1 << node->token.opr.idx; + } + + else if (node->token.type == SUBEXP + && node->left && node->left->token.type == SUBEXP) + { + Idx other_idx = node->left->token.opr.idx; + + node->left = node->left->left; + if (node->left) + node->left->parent = node; + + dfa->subexp_map[other_idx] = dfa->subexp_map[node->token.opr.idx]; + if (other_idx < BITSET_WORD_BITS) + dfa->used_bkref_map &= ~((bitset_word_t) 1 << other_idx); + } + + return REG_NOERROR; +} + +/* Lowering pass: Turn each SUBEXP node into the appropriate concatenation + of OP_OPEN_SUBEXP, the body of the SUBEXP (if any) and OP_CLOSE_SUBEXP. */ +static reg_errcode_t +lower_subexps (void *extra, bin_tree_t *node) +{ + regex_t *preg = (regex_t *) extra; + reg_errcode_t err = REG_NOERROR; + + if (node->left && node->left->token.type == SUBEXP) + { + node->left = lower_subexp (&err, preg, node->left); + if (node->left) + node->left->parent = node; + } + if (node->right && node->right->token.type == SUBEXP) + { + node->right = lower_subexp (&err, preg, node->right); + if (node->right) + node->right->parent = node; + } + + return err; +} + +static bin_tree_t * +lower_subexp (reg_errcode_t *err, regex_t *preg, bin_tree_t *node) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_t *body = node->left; + bin_tree_t *op, *cls, *tree1, *tree; + + if (preg->no_sub + /* We do not optimize empty subexpressions, because otherwise we may + have bad CONCAT nodes with NULL children. This is obviously not + very common, so we do not lose much. An example that triggers + this case is the sed "script" /\(\)/x. */ + && node->left != NULL + && (node->token.opr.idx >= BITSET_WORD_BITS + || !(dfa->used_bkref_map + & ((bitset_word_t) 1 << node->token.opr.idx)))) + return node->left; + + /* Convert the SUBEXP node to the concatenation of an + OP_OPEN_SUBEXP, the contents, and an OP_CLOSE_SUBEXP. */ + op = create_tree (dfa, NULL, NULL, OP_OPEN_SUBEXP); + cls = create_tree (dfa, NULL, NULL, OP_CLOSE_SUBEXP); + tree1 = body ? create_tree (dfa, body, cls, CONCAT) : cls; + tree = create_tree (dfa, op, tree1, CONCAT); + if (BE (tree == NULL || tree1 == NULL || op == NULL || cls == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + + op->token.opr.idx = cls->token.opr.idx = node->token.opr.idx; + op->token.opt_subexp = cls->token.opt_subexp = node->token.opt_subexp; + return tree; +} + +/* Pass 1 in building the NFA: compute FIRST and create unlinked automaton + nodes. Requires a postorder visit. */ +static reg_errcode_t +calc_first (void *extra, bin_tree_t *node) +{ + re_dfa_t *dfa = (re_dfa_t *) extra; + if (node->token.type == CONCAT) + { + node->first = node->left->first; + node->node_idx = node->left->node_idx; + } + else + { + node->first = node; + node->node_idx = re_dfa_add_node (dfa, node->token); + if (BE (node->node_idx == REG_MISSING, 0)) + return REG_ESPACE; + if (node->token.type == ANCHOR) + dfa->nodes[node->node_idx].constraint = node->token.opr.ctx_type; + } + return REG_NOERROR; +} + +/* Pass 2: compute NEXT on the tree. Preorder visit. */ +static reg_errcode_t +calc_next (void *extra, bin_tree_t *node) +{ + switch (node->token.type) + { + case OP_DUP_ASTERISK: + node->left->next = node; + break; + case CONCAT: + node->left->next = node->right->first; + node->right->next = node->next; + break; + default: + if (node->left) + node->left->next = node->next; + if (node->right) + node->right->next = node->next; + break; + } + return REG_NOERROR; +} + +/* Pass 3: link all DFA nodes to their NEXT node (any order will do). */ +static reg_errcode_t +link_nfa_nodes (void *extra, bin_tree_t *node) +{ + re_dfa_t *dfa = (re_dfa_t *) extra; + Idx idx = node->node_idx; + reg_errcode_t err = REG_NOERROR; + + switch (node->token.type) + { + case CONCAT: + break; + + case END_OF_RE: + assert (node->next == NULL); + break; + + case OP_DUP_ASTERISK: + case OP_ALT: + { + Idx left, right; + dfa->has_plural_match = 1; + if (node->left != NULL) + left = node->left->first->node_idx; + else + left = node->next->node_idx; + if (node->right != NULL) + right = node->right->first->node_idx; + else + right = node->next->node_idx; + assert (REG_VALID_INDEX (left)); + assert (REG_VALID_INDEX (right)); + err = re_node_set_init_2 (dfa->edests + idx, left, right); + } + break; + + case ANCHOR: + case OP_OPEN_SUBEXP: + case OP_CLOSE_SUBEXP: + err = re_node_set_init_1 (dfa->edests + idx, node->next->node_idx); + break; + + case OP_BACK_REF: + dfa->nexts[idx] = node->next->node_idx; + if (node->token.type == OP_BACK_REF) + err = re_node_set_init_1 (dfa->edests + idx, dfa->nexts[idx]); + break; + + default: + assert (!IS_EPSILON_NODE (node->token.type)); + dfa->nexts[idx] = node->next->node_idx; + break; + } + + return err; +} + +/* Duplicate the epsilon closure of the node ROOT_NODE. + Note that duplicated nodes have constraint INIT_CONSTRAINT in addition + to their own constraint. */ + +static reg_errcode_t +internal_function +duplicate_node_closure (re_dfa_t *dfa, Idx top_org_node, Idx top_clone_node, + Idx root_node, unsigned int init_constraint) +{ + Idx org_node, clone_node; + bool ok; + unsigned int constraint = init_constraint; + for (org_node = top_org_node, clone_node = top_clone_node;;) + { + Idx org_dest, clone_dest; + if (dfa->nodes[org_node].type == OP_BACK_REF) + { + /* If the back reference epsilon-transit, its destination must + also have the constraint. Then duplicate the epsilon closure + of the destination of the back reference, and store it in + edests of the back reference. */ + org_dest = dfa->nexts[org_node]; + re_node_set_empty (dfa->edests + clone_node); + clone_dest = duplicate_node (dfa, org_dest, constraint); + if (BE (clone_dest == REG_MISSING, 0)) + return REG_ESPACE; + dfa->nexts[clone_node] = dfa->nexts[org_node]; + ok = re_node_set_insert (dfa->edests + clone_node, clone_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + } + else if (dfa->edests[org_node].nelem == 0) + { + /* In case of the node can't epsilon-transit, don't duplicate the + destination and store the original destination as the + destination of the node. */ + dfa->nexts[clone_node] = dfa->nexts[org_node]; + break; + } + else if (dfa->edests[org_node].nelem == 1) + { + /* In case of the node can epsilon-transit, and it has only one + destination. */ + org_dest = dfa->edests[org_node].elems[0]; + re_node_set_empty (dfa->edests + clone_node); + /* If the node is root_node itself, it means the epsilon closure + has a loop. Then tie it to the destination of the root_node. */ + if (org_node == root_node && clone_node != org_node) + { + ok = re_node_set_insert (dfa->edests + clone_node, org_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + break; + } + /* In case the node has another constraint, append it. */ + constraint |= dfa->nodes[org_node].constraint; + clone_dest = duplicate_node (dfa, org_dest, constraint); + if (BE (clone_dest == REG_MISSING, 0)) + return REG_ESPACE; + ok = re_node_set_insert (dfa->edests + clone_node, clone_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + } + else /* dfa->edests[org_node].nelem == 2 */ + { + /* In case of the node can epsilon-transit, and it has two + destinations. In the bin_tree_t and DFA, that's '|' and '*'. */ + org_dest = dfa->edests[org_node].elems[0]; + re_node_set_empty (dfa->edests + clone_node); + /* Search for a duplicated node which satisfies the constraint. */ + clone_dest = search_duplicated_node (dfa, org_dest, constraint); + if (clone_dest == REG_MISSING) + { + /* There is no such duplicated node, create a new one. */ + reg_errcode_t err; + clone_dest = duplicate_node (dfa, org_dest, constraint); + if (BE (clone_dest == REG_MISSING, 0)) + return REG_ESPACE; + ok = re_node_set_insert (dfa->edests + clone_node, clone_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + err = duplicate_node_closure (dfa, org_dest, clone_dest, + root_node, constraint); + if (BE (err != REG_NOERROR, 0)) + return err; + } + else + { + /* There is a duplicated node which satisfies the constraint, + use it to avoid infinite loop. */ + ok = re_node_set_insert (dfa->edests + clone_node, clone_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + } + + org_dest = dfa->edests[org_node].elems[1]; + clone_dest = duplicate_node (dfa, org_dest, constraint); + if (BE (clone_dest == REG_MISSING, 0)) + return REG_ESPACE; + ok = re_node_set_insert (dfa->edests + clone_node, clone_dest); + if (BE (! ok, 0)) + return REG_ESPACE; + } + org_node = org_dest; + clone_node = clone_dest; + } + return REG_NOERROR; +} + +/* Search for a node which is duplicated from the node ORG_NODE, and + satisfies the constraint CONSTRAINT. */ + +static Idx +search_duplicated_node (const re_dfa_t *dfa, Idx org_node, + unsigned int constraint) +{ + Idx idx; + for (idx = dfa->nodes_len - 1; dfa->nodes[idx].duplicated && idx > 0; --idx) + { + if (org_node == dfa->org_indices[idx] + && constraint == dfa->nodes[idx].constraint) + return idx; /* Found. */ + } + return REG_MISSING; /* Not found. */ +} + +/* Duplicate the node whose index is ORG_IDX and set the constraint CONSTRAINT. + Return the index of the new node, or REG_MISSING if insufficient storage is + available. */ + +static Idx +duplicate_node (re_dfa_t *dfa, Idx org_idx, unsigned int constraint) +{ + Idx dup_idx = re_dfa_add_node (dfa, dfa->nodes[org_idx]); + if (BE (dup_idx != REG_MISSING, 1)) + { + dfa->nodes[dup_idx].constraint = constraint; + dfa->nodes[dup_idx].constraint |= dfa->nodes[org_idx].constraint; + dfa->nodes[dup_idx].duplicated = 1; + + /* Store the index of the original node. */ + dfa->org_indices[dup_idx] = org_idx; + } + return dup_idx; +} + +static reg_errcode_t +calc_inveclosure (re_dfa_t *dfa) +{ + Idx src, idx; + bool ok; + for (idx = 0; idx < dfa->nodes_len; ++idx) + re_node_set_init_empty (dfa->inveclosures + idx); + + for (src = 0; src < dfa->nodes_len; ++src) + { + Idx *elems = dfa->eclosures[src].elems; + for (idx = 0; idx < dfa->eclosures[src].nelem; ++idx) + { + ok = re_node_set_insert_last (dfa->inveclosures + elems[idx], src); + if (BE (! ok, 0)) + return REG_ESPACE; + } + } + + return REG_NOERROR; +} + +/* Calculate "eclosure" for all the node in DFA. */ + +static reg_errcode_t +calc_eclosure (re_dfa_t *dfa) +{ + Idx node_idx; + bool incomplete; +#ifdef DEBUG + assert (dfa->nodes_len > 0); +#endif + incomplete = false; + /* For each nodes, calculate epsilon closure. */ + for (node_idx = 0; ; ++node_idx) + { + reg_errcode_t err; + re_node_set eclosure_elem; + if (node_idx == dfa->nodes_len) + { + if (!incomplete) + break; + incomplete = false; + node_idx = 0; + } + +#ifdef DEBUG + assert (dfa->eclosures[node_idx].nelem != REG_MISSING); +#endif + + /* If we have already calculated, skip it. */ + if (dfa->eclosures[node_idx].nelem != 0) + continue; + /* Calculate epsilon closure of `node_idx'. */ + err = calc_eclosure_iter (&eclosure_elem, dfa, node_idx, true); + if (BE (err != REG_NOERROR, 0)) + return err; + + if (dfa->eclosures[node_idx].nelem == 0) + { + incomplete = true; + re_node_set_free (&eclosure_elem); + } + } + return REG_NOERROR; +} + +/* Calculate epsilon closure of NODE. */ + +static reg_errcode_t +calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, Idx node, bool root) +{ + reg_errcode_t err; + Idx i; + re_node_set eclosure; + bool ok; + bool incomplete = false; + err = re_node_set_alloc (&eclosure, dfa->edests[node].nelem + 1); + if (BE (err != REG_NOERROR, 0)) + return err; + + /* This indicates that we are calculating this node now. + We reference this value to avoid infinite loop. */ + dfa->eclosures[node].nelem = REG_MISSING; + + /* If the current node has constraints, duplicate all nodes + since they must inherit the constraints. */ + if (dfa->nodes[node].constraint + && dfa->edests[node].nelem + && !dfa->nodes[dfa->edests[node].elems[0]].duplicated) + { + err = duplicate_node_closure (dfa, node, node, node, + dfa->nodes[node].constraint); + if (BE (err != REG_NOERROR, 0)) + return err; + } + + /* Expand each epsilon destination nodes. */ + if (IS_EPSILON_NODE(dfa->nodes[node].type)) + for (i = 0; i < dfa->edests[node].nelem; ++i) + { + re_node_set eclosure_elem; + Idx edest = dfa->edests[node].elems[i]; + /* If calculating the epsilon closure of `edest' is in progress, + return intermediate result. */ + if (dfa->eclosures[edest].nelem == REG_MISSING) + { + incomplete = true; + continue; + } + /* If we haven't calculated the epsilon closure of `edest' yet, + calculate now. Otherwise use calculated epsilon closure. */ + if (dfa->eclosures[edest].nelem == 0) + { + err = calc_eclosure_iter (&eclosure_elem, dfa, edest, false); + if (BE (err != REG_NOERROR, 0)) + return err; + } + else + eclosure_elem = dfa->eclosures[edest]; + /* Merge the epsilon closure of `edest'. */ + err = re_node_set_merge (&eclosure, &eclosure_elem); + if (BE (err != REG_NOERROR, 0)) + return err; + /* If the epsilon closure of `edest' is incomplete, + the epsilon closure of this node is also incomplete. */ + if (dfa->eclosures[edest].nelem == 0) + { + incomplete = true; + re_node_set_free (&eclosure_elem); + } + } + + /* An epsilon closure includes itself. */ + ok = re_node_set_insert (&eclosure, node); + if (BE (! ok, 0)) + return REG_ESPACE; + if (incomplete && !root) + dfa->eclosures[node].nelem = 0; + else + dfa->eclosures[node] = eclosure; + *new_set = eclosure; + return REG_NOERROR; +} + +/* Functions for token which are used in the parser. */ + +/* Fetch a token from INPUT. + We must not use this function inside bracket expressions. */ + +static void +internal_function +fetch_token (re_token_t *result, re_string_t *input, reg_syntax_t syntax) +{ + re_string_skip_bytes (input, peek_token (result, input, syntax)); +} + +/* Peek a token from INPUT, and return the length of the token. + We must not use this function inside bracket expressions. */ + +static int +internal_function +peek_token (re_token_t *token, re_string_t *input, reg_syntax_t syntax) +{ + unsigned char c; + + if (re_string_eoi (input)) + { + token->type = END_OF_RE; + return 0; + } + + c = re_string_peek_byte (input, 0); + token->opr.c = c; + + token->word_char = 0; +#ifdef RE_ENABLE_I18N + token->mb_partial = 0; + if (input->mb_cur_max > 1 && + !re_string_first_byte (input, re_string_cur_idx (input))) + { + token->type = CHARACTER; + token->mb_partial = 1; + return 1; + } +#endif + if (c == '\\') + { + unsigned char c2; + if (re_string_cur_idx (input) + 1 >= re_string_length (input)) + { + token->type = BACK_SLASH; + return 1; + } + + c2 = re_string_peek_byte_case (input, 1); + token->opr.c = c2; + token->type = CHARACTER; +#ifdef RE_ENABLE_I18N + if (input->mb_cur_max > 1) + { + wint_t wc = re_string_wchar_at (input, + re_string_cur_idx (input) + 1); + token->word_char = IS_WIDE_WORD_CHAR (wc) != 0; + } + else +#endif + token->word_char = IS_WORD_CHAR (c2) != 0; + + switch (c2) + { + case '|': + if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_NO_BK_VBAR)) + token->type = OP_ALT; + break; + case '1': case '2': case '3': case '4': case '5': + case '6': case '7': case '8': case '9': + if (!(syntax & RE_NO_BK_REFS)) + { + token->type = OP_BACK_REF; + token->opr.idx = c2 - '1'; + } + break; + case '<': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = WORD_FIRST; + } + break; + case '>': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = WORD_LAST; + } + break; + case 'b': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = WORD_DELIM; + } + break; + case 'B': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = NOT_WORD_DELIM; + } + break; + case 'w': + if (!(syntax & RE_NO_GNU_OPS)) + token->type = OP_WORD; + break; + case 'W': + if (!(syntax & RE_NO_GNU_OPS)) + token->type = OP_NOTWORD; + break; + case 's': + if (!(syntax & RE_NO_GNU_OPS)) + token->type = OP_SPACE; + break; + case 'S': + if (!(syntax & RE_NO_GNU_OPS)) + token->type = OP_NOTSPACE; + break; + case '`': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = BUF_FIRST; + } + break; + case '\'': + if (!(syntax & RE_NO_GNU_OPS)) + { + token->type = ANCHOR; + token->opr.ctx_type = BUF_LAST; + } + break; + case '(': + if (!(syntax & RE_NO_BK_PARENS)) + token->type = OP_OPEN_SUBEXP; + break; + case ')': + if (!(syntax & RE_NO_BK_PARENS)) + token->type = OP_CLOSE_SUBEXP; + break; + case '+': + if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM)) + token->type = OP_DUP_PLUS; + break; + case '?': + if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_BK_PLUS_QM)) + token->type = OP_DUP_QUESTION; + break; + case '{': + if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES))) + token->type = OP_OPEN_DUP_NUM; + break; + case '}': + if ((syntax & RE_INTERVALS) && (!(syntax & RE_NO_BK_BRACES))) + token->type = OP_CLOSE_DUP_NUM; + break; + default: + break; + } + return 2; + } + + token->type = CHARACTER; +#ifdef RE_ENABLE_I18N + if (input->mb_cur_max > 1) + { + wint_t wc = re_string_wchar_at (input, re_string_cur_idx (input)); + token->word_char = IS_WIDE_WORD_CHAR (wc) != 0; + } + else +#endif + token->word_char = IS_WORD_CHAR (token->opr.c); + + switch (c) + { + case '\n': + if (syntax & RE_NEWLINE_ALT) + token->type = OP_ALT; + break; + case '|': + if (!(syntax & RE_LIMITED_OPS) && (syntax & RE_NO_BK_VBAR)) + token->type = OP_ALT; + break; + case '*': + token->type = OP_DUP_ASTERISK; + break; + case '+': + if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM)) + token->type = OP_DUP_PLUS; + break; + case '?': + if (!(syntax & RE_LIMITED_OPS) && !(syntax & RE_BK_PLUS_QM)) + token->type = OP_DUP_QUESTION; + break; + case '{': + if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES)) + token->type = OP_OPEN_DUP_NUM; + break; + case '}': + if ((syntax & RE_INTERVALS) && (syntax & RE_NO_BK_BRACES)) + token->type = OP_CLOSE_DUP_NUM; + break; + case '(': + if (syntax & RE_NO_BK_PARENS) + token->type = OP_OPEN_SUBEXP; + break; + case ')': + if (syntax & RE_NO_BK_PARENS) + token->type = OP_CLOSE_SUBEXP; + break; + case '[': + token->type = OP_OPEN_BRACKET; + break; + case '.': + token->type = OP_PERIOD; + break; + case '^': + if (!(syntax & (RE_CONTEXT_INDEP_ANCHORS | RE_CARET_ANCHORS_HERE)) && + re_string_cur_idx (input) != 0) + { + char prev = re_string_peek_byte (input, -1); + if (!(syntax & RE_NEWLINE_ALT) || prev != '\n') + break; + } + token->type = ANCHOR; + token->opr.ctx_type = LINE_FIRST; + break; + case '$': + if (!(syntax & RE_CONTEXT_INDEP_ANCHORS) && + re_string_cur_idx (input) + 1 != re_string_length (input)) + { + re_token_t next; + re_string_skip_bytes (input, 1); + peek_token (&next, input, syntax); + re_string_skip_bytes (input, -1); + if (next.type != OP_ALT && next.type != OP_CLOSE_SUBEXP) + break; + } + token->type = ANCHOR; + token->opr.ctx_type = LINE_LAST; + break; + default: + break; + } + return 1; +} + +/* Peek a token from INPUT, and return the length of the token. + We must not use this function out of bracket expressions. */ + +static int +internal_function +peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax) +{ + unsigned char c; + if (re_string_eoi (input)) + { + token->type = END_OF_RE; + return 0; + } + c = re_string_peek_byte (input, 0); + token->opr.c = c; + +#ifdef RE_ENABLE_I18N + if (input->mb_cur_max > 1 && + !re_string_first_byte (input, re_string_cur_idx (input))) + { + token->type = CHARACTER; + return 1; + } +#endif /* RE_ENABLE_I18N */ + + if (c == '\\' && (syntax & RE_BACKSLASH_ESCAPE_IN_LISTS) + && re_string_cur_idx (input) + 1 < re_string_length (input)) + { + /* In this case, '\' escape a character. */ + unsigned char c2; + re_string_skip_bytes (input, 1); + c2 = re_string_peek_byte (input, 0); + token->opr.c = c2; + token->type = CHARACTER; + return 1; + } + if (c == '[') /* '[' is a special char in a bracket exps. */ + { + unsigned char c2; + int token_len; + if (re_string_cur_idx (input) + 1 < re_string_length (input)) + c2 = re_string_peek_byte (input, 1); + else + c2 = 0; + token->opr.c = c2; + token_len = 2; + switch (c2) + { + case '.': + token->type = OP_OPEN_COLL_ELEM; + break; + case '=': + token->type = OP_OPEN_EQUIV_CLASS; + break; + case ':': + if (syntax & RE_CHAR_CLASSES) + { + token->type = OP_OPEN_CHAR_CLASS; + break; + } + /* else fall through. */ + default: + token->type = CHARACTER; + token->opr.c = c; + token_len = 1; + break; + } + return token_len; + } + switch (c) + { + case '-': + token->type = OP_CHARSET_RANGE; + break; + case ']': + token->type = OP_CLOSE_BRACKET; + break; + case '^': + token->type = OP_NON_MATCH_LIST; + break; + default: + token->type = CHARACTER; + } + return 1; +} + +/* Functions for parser. */ + +/* Entry point of the parser. + Parse the regular expression REGEXP and return the structure tree. + If an error is occured, ERR is set by error code, and return NULL. + This function build the following tree, from regular expression : + CAT + / \ + / \ + EOR + + CAT means concatenation. + EOR means end of regular expression. */ + +static bin_tree_t * +parse (re_string_t *regexp, regex_t *preg, reg_syntax_t syntax, + reg_errcode_t *err) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_t *tree, *eor, *root; + re_token_t current_token; + dfa->syntax = syntax; + fetch_token (¤t_token, regexp, syntax | RE_CARET_ANCHORS_HERE); + tree = parse_reg_exp (regexp, preg, ¤t_token, syntax, 0, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + eor = create_tree (dfa, NULL, NULL, END_OF_RE); + if (tree != NULL) + root = create_tree (dfa, tree, eor, CONCAT); + else + root = eor; + if (BE (eor == NULL || root == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + return root; +} + +/* This function build the following tree, from regular expression + |: + ALT + / \ + / \ + + + ALT means alternative, which represents the operator `|'. */ + +static bin_tree_t * +parse_reg_exp (re_string_t *regexp, regex_t *preg, re_token_t *token, + reg_syntax_t syntax, Idx nest, reg_errcode_t *err) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_t *tree, *branch = NULL; + tree = parse_branch (regexp, preg, token, syntax, nest, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + + while (token->type == OP_ALT) + { + fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE); + if (token->type != OP_ALT && token->type != END_OF_RE + && (nest == 0 || token->type != OP_CLOSE_SUBEXP)) + { + branch = parse_branch (regexp, preg, token, syntax, nest, err); + if (BE (*err != REG_NOERROR && branch == NULL, 0)) + return NULL; + } + else + branch = NULL; + tree = create_tree (dfa, tree, branch, OP_ALT); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + } + return tree; +} + +/* This function build the following tree, from regular expression + : + CAT + / \ + / \ + + + CAT means concatenation. */ + +static bin_tree_t * +parse_branch (re_string_t *regexp, regex_t *preg, re_token_t *token, + reg_syntax_t syntax, Idx nest, reg_errcode_t *err) +{ + bin_tree_t *tree, *expr; + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + tree = parse_expression (regexp, preg, token, syntax, nest, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + + while (token->type != OP_ALT && token->type != END_OF_RE + && (nest == 0 || token->type != OP_CLOSE_SUBEXP)) + { + expr = parse_expression (regexp, preg, token, syntax, nest, err); + if (BE (*err != REG_NOERROR && expr == NULL, 0)) + { + return NULL; + } + if (tree != NULL && expr != NULL) + { + tree = create_tree (dfa, tree, expr, CONCAT); + if (tree == NULL) + { + *err = REG_ESPACE; + return NULL; + } + } + else if (tree == NULL) + tree = expr; + /* Otherwise expr == NULL, we don't need to create new tree. */ + } + return tree; +} + +/* This function build the following tree, from regular expression a*: + * + | + a +*/ + +static bin_tree_t * +parse_expression (re_string_t *regexp, regex_t *preg, re_token_t *token, + reg_syntax_t syntax, Idx nest, reg_errcode_t *err) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_t *tree; + switch (token->type) + { + case CHARACTER: + tree = create_token_tree (dfa, NULL, NULL, token); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + { + while (!re_string_eoi (regexp) + && !re_string_first_byte (regexp, re_string_cur_idx (regexp))) + { + bin_tree_t *mbc_remain; + fetch_token (token, regexp, syntax); + mbc_remain = create_token_tree (dfa, NULL, NULL, token); + tree = create_tree (dfa, tree, mbc_remain, CONCAT); + if (BE (mbc_remain == NULL || tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + } + } +#endif + break; + case OP_OPEN_SUBEXP: + tree = parse_sub_exp (regexp, preg, token, syntax, nest + 1, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + break; + case OP_OPEN_BRACKET: + tree = parse_bracket_exp (regexp, dfa, token, syntax, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + break; + case OP_BACK_REF: + if (!BE (dfa->completed_bkref_map & (1 << token->opr.idx), 1)) + { + *err = REG_ESUBREG; + return NULL; + } + dfa->used_bkref_map |= 1 << token->opr.idx; + tree = create_token_tree (dfa, NULL, NULL, token); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + ++dfa->nbackref; + dfa->has_mb_node = 1; + break; + case OP_OPEN_DUP_NUM: + if (syntax & RE_CONTEXT_INVALID_DUP) + { + *err = REG_BADRPT; + return NULL; + } + /* FALLTHROUGH */ + case OP_DUP_ASTERISK: + case OP_DUP_PLUS: + case OP_DUP_QUESTION: + if (syntax & RE_CONTEXT_INVALID_OPS) + { + *err = REG_BADRPT; + return NULL; + } + else if (syntax & RE_CONTEXT_INDEP_OPS) + { + fetch_token (token, regexp, syntax); + return parse_expression (regexp, preg, token, syntax, nest, err); + } + /* else fall through */ + case OP_CLOSE_SUBEXP: + if ((token->type == OP_CLOSE_SUBEXP) && + !(syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)) + { + *err = REG_ERPAREN; + return NULL; + } + /* else fall through */ + case OP_CLOSE_DUP_NUM: + /* We treat it as a normal character. */ + + /* Then we can these characters as normal characters. */ + token->type = CHARACTER; + /* mb_partial and word_char bits should be initialized already + by peek_token. */ + tree = create_token_tree (dfa, NULL, NULL, token); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + break; + case ANCHOR: + if ((token->opr.ctx_type + & (WORD_DELIM | NOT_WORD_DELIM | WORD_FIRST | WORD_LAST)) + && dfa->word_ops_used == 0) + init_word_char (dfa); + if (token->opr.ctx_type == WORD_DELIM + || token->opr.ctx_type == NOT_WORD_DELIM) + { + bin_tree_t *tree_first, *tree_last; + if (token->opr.ctx_type == WORD_DELIM) + { + token->opr.ctx_type = WORD_FIRST; + tree_first = create_token_tree (dfa, NULL, NULL, token); + token->opr.ctx_type = WORD_LAST; + } + else + { + token->opr.ctx_type = INSIDE_WORD; + tree_first = create_token_tree (dfa, NULL, NULL, token); + token->opr.ctx_type = INSIDE_NOTWORD; + } + tree_last = create_token_tree (dfa, NULL, NULL, token); + tree = create_tree (dfa, tree_first, tree_last, OP_ALT); + if (BE (tree_first == NULL || tree_last == NULL || tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + } + else + { + tree = create_token_tree (dfa, NULL, NULL, token); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + } + /* We must return here, since ANCHORs can't be followed + by repetition operators. + eg. RE"^*" is invalid or "", + it must not be "". */ + fetch_token (token, regexp, syntax); + return tree; + case OP_PERIOD: + tree = create_token_tree (dfa, NULL, NULL, token); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + if (dfa->mb_cur_max > 1) + dfa->has_mb_node = 1; + break; + case OP_WORD: + case OP_NOTWORD: + tree = build_charclass_op (dfa, regexp->trans, + (const unsigned char *) "alnum", + (const unsigned char *) "_", + token->type == OP_NOTWORD, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + break; + case OP_SPACE: + case OP_NOTSPACE: + tree = build_charclass_op (dfa, regexp->trans, + (const unsigned char *) "space", + (const unsigned char *) "", + token->type == OP_NOTSPACE, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + break; + case OP_ALT: + case END_OF_RE: + return NULL; + case BACK_SLASH: + *err = REG_EESCAPE; + return NULL; + default: + /* Must not happen? */ +#ifdef DEBUG + assert (0); +#endif + return NULL; + } + fetch_token (token, regexp, syntax); + + while (token->type == OP_DUP_ASTERISK || token->type == OP_DUP_PLUS + || token->type == OP_DUP_QUESTION || token->type == OP_OPEN_DUP_NUM) + { + tree = parse_dup_op (tree, regexp, dfa, token, syntax, err); + if (BE (*err != REG_NOERROR && tree == NULL, 0)) + return NULL; + /* In BRE consecutive duplications are not allowed. */ + if ((syntax & RE_CONTEXT_INVALID_DUP) + && (token->type == OP_DUP_ASTERISK + || token->type == OP_OPEN_DUP_NUM)) + { + *err = REG_BADRPT; + return NULL; + } + } + + return tree; +} + +/* This function build the following tree, from regular expression + (): + SUBEXP + | + +*/ + +static bin_tree_t * +parse_sub_exp (re_string_t *regexp, regex_t *preg, re_token_t *token, + reg_syntax_t syntax, Idx nest, reg_errcode_t *err) +{ + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; + bin_tree_t *tree; + size_t cur_nsub; + cur_nsub = preg->re_nsub++; + + fetch_token (token, regexp, syntax | RE_CARET_ANCHORS_HERE); + + /* The subexpression may be a null string. */ + if (token->type == OP_CLOSE_SUBEXP) + tree = NULL; + else + { + tree = parse_reg_exp (regexp, preg, token, syntax, nest, err); + if (BE (*err == REG_NOERROR && token->type != OP_CLOSE_SUBEXP, 0)) + *err = REG_EPAREN; + if (BE (*err != REG_NOERROR, 0)) + return NULL; + } + + if (cur_nsub <= '9' - '1') + dfa->completed_bkref_map |= 1 << cur_nsub; + + tree = create_tree (dfa, tree, NULL, SUBEXP); + if (BE (tree == NULL, 0)) + { + *err = REG_ESPACE; + return NULL; + } + tree->token.opr.idx = cur_nsub; + return tree; +} + +/* This function parse repetition operators like "*", "+", "{1,3}" etc. */ + +static bin_tree_t * +parse_dup_op (bin_tree_t *elem, re_string_t *regexp, re_dfa_t *dfa, + re_token_t *token, reg_syntax_t syntax, reg_errcode_t *err) +{ + bin_tree_t *tree = NULL, *old_tree = NULL; + Idx i, start, end, start_idx = re_string_cur_idx (regexp); + re_token_t start_token = *token; + + if (token->type == OP_OPEN_DUP_NUM) + { + end = 0; + start = fetch_number (regexp, token, syntax); + if (start == REG_MISSING) + { + if (token->type == CHARACTER && token->opr.c == ',') + start = 0; /* We treat "{,m}" as "{0,m}". */ + else + { + *err = REG_BADBR; /* {} is invalid. */ + return NULL; + } + } + if (BE (start != REG_ERROR, 1)) + { + /* We treat "{n}" as "{n,n}". */ + end = ((token->type == OP_CLOSE_DUP_NUM) ? start + : ((token->type == CHARACTER && token->opr.c == ',') + ? fetch_number (regexp, token, syntax) : REG_ERROR)); + } + if (BE (start == REG_ERROR || end == REG_ERROR, 0)) + { + /* Invalid sequence. */ + if (BE (!(syntax & RE_INVALID_INTERVAL_ORD), 0)) + { + if (token->type == END_OF_RE) + *err = REG_EBRACE; + else + *err = REG_BADBR; + + return NULL; + } + + /* If the syntax bit is set, rollback. */ + re_string_set_index (regexp, start_idx); + *token = start_token; + token->type = CHARACTER; + /* mb_partial and word_char bits should be already initialized by + peek_token. */ + return elem; + } + + if (BE ((end != REG_MISSING && start > end) + || token->type != OP_CLOSE_DUP_NUM, 0)) + { + /* First number greater than second. */ + *err = REG_BADBR; + return NULL; + } + } + else + { + start = (token->type == OP_DUP_PLUS) ? 1 : 0; + end = (token->type == OP_DUP_QUESTION) ? 1 : REG_MISSING; + } + + fetch_token (token, regexp, syntax); + + if (BE (elem == NULL, 0)) + return NULL; + if (BE (start == 0 && end == 0, 0)) + { + postorder (elem, free_tree, NULL); + return NULL; + } + + /* Extract "{n,m}" to "...{0,}". */ + if (BE (start > 0, 0)) + { + tree = elem; + for (i = 2; i <= start; ++i) + { + elem = duplicate_tree (elem, dfa); + tree = create_tree (dfa, tree, elem, CONCAT); + if (BE (elem == NULL || tree == NULL, 0)) + goto parse_dup_op_espace; + } + + if (start == end) + return tree; + + /* Duplicate ELEM before it is marked optional. */ + elem = duplicate_tree (elem, dfa); + old_tree = tree; + } + else + old_tree = NULL; + + if (elem->token.type == SUBEXP) + postorder (elem, mark_opt_subexp, (void *) (long) elem->token.opr.idx); + + tree = create_tree (dfa, elem, NULL, + (end == REG_MISSING ? OP_DUP_ASTERISK : OP_ALT)); + if (BE (tree == NULL, 0)) + goto parse_dup_op_espace; + +/* From gnulib's "intprops.h": + True if the arithmetic type T is signed. */ +#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) + + /* This loop is actually executed only when end != REG_MISSING, + to rewrite {0,n} as ((...?)?)?... We have + already created the start+1-th copy. */ + if (TYPE_SIGNED (Idx) || end != REG_MISSING) + for (i = start + 2; i <= end; ++i) + { + elem = duplicate_tree (elem, dfa); + tree = create_tree (dfa, tree, elem, CONCAT); + if (BE (elem == NULL || tree == NULL, 0)) + goto parse_dup_op_espace; + + tree = create_tree (dfa, tree, NULL, OP_ALT); + if (BE (tree == NULL, 0)) + goto parse_dup_op_espace; + } + + if (old_tree) + tree = create_tree (dfa, old_tree, tree, CONCAT); + + return tree; + + parse_dup_op_espace: + *err = REG_ESPACE; + return NULL; +} + +/* Size of the names for collating symbol/equivalence_class/character_class. + I'm not sure, but maybe enough. */ +#define BRACKET_NAME_BUF_SIZE 32 + +#ifndef _LIBC + /* Local function for parse_bracket_exp only used in case of NOT _LIBC. + Build the range expression which starts from START_ELEM, and ends + at END_ELEM. The result are written to MBCSET and SBCSET. + RANGE_ALLOC is the allocated size of mbcset->range_starts, and + mbcset->range_ends, is a pointer argument sinse we may + update it. */ + +static reg_errcode_t +internal_function +# ifdef RE_ENABLE_I18N +build_range_exp (const reg_syntax_t syntax, + bitset_t sbcset, + re_charset_t *mbcset, + Idx *range_alloc, + const bracket_elem_t *start_elem, + const bracket_elem_t *end_elem) +# else /* not RE_ENABLE_I18N */ +build_range_exp (const reg_syntax_t syntax, + bitset_t sbcset, + const bracket_elem_t *start_elem, + const bracket_elem_t *end_elem) +# endif /* not RE_ENABLE_I18N */ +{ + unsigned int start_ch, end_ch; + /* Equivalence Classes and Character Classes can't be a range start/end. */ + if (BE (start_elem->type == EQUIV_CLASS || start_elem->type == CHAR_CLASS + || end_elem->type == EQUIV_CLASS || end_elem->type == CHAR_CLASS, + 0)) + return REG_ERANGE; + + /* We can handle no multi character collating elements without libc + support. */ + if (BE ((start_elem->type == COLL_SYM + && strlen ((char *) start_elem->opr.name) > 1) + || (end_elem->type == COLL_SYM + && strlen ((char *) end_elem->opr.name) > 1), 0)) + return REG_ECOLLATE; + +# ifdef RE_ENABLE_I18N + { + wchar_t wc; + wint_t start_wc; + wint_t end_wc; + wchar_t cmp_buf[6] = {L'\0', L'\0', L'\0', L'\0', L'\0', L'\0'}; + + start_ch = ((start_elem->type == SB_CHAR) ? start_elem->opr.ch + : ((start_elem->type == COLL_SYM) ? start_elem->opr.name[0] + : 0)); + end_ch = ((end_elem->type == SB_CHAR) ? end_elem->opr.ch + : ((end_elem->type == COLL_SYM) ? end_elem->opr.name[0] + : 0)); + start_wc = ((start_elem->type == SB_CHAR || start_elem->type == COLL_SYM) + ? __btowc (start_ch) : start_elem->opr.wch); + end_wc = ((end_elem->type == SB_CHAR || end_elem->type == COLL_SYM) + ? __btowc (end_ch) : end_elem->opr.wch); + if (start_wc == WEOF || end_wc == WEOF) + return REG_ECOLLATE; + cmp_buf[0] = start_wc; + cmp_buf[4] = end_wc; + + if (BE ((syntax & RE_NO_EMPTY_RANGES) + && wcscoll (cmp_buf, cmp_buf + 4) > 0, 0)) + return REG_ERANGE; + + /* Got valid collation sequence values, add them as a new entry. + However, for !_LIBC we have no collation elements: if the + character set is single byte, the single byte character set + that we build below suffices. parse_bracket_exp passes + no MBCSET if dfa->mb_cur_max == 1. */ + if (mbcset) + { + /* Check the space of the arrays. */ + if (BE (*range_alloc == mbcset->nranges, 0)) + { + /* There is not enough space, need realloc. */ + wchar_t *new_array_start, *new_array_end; + Idx new_nranges; + + /* +1 in case of mbcset->nranges is 0. */ + new_nranges = 2 * mbcset->nranges + 1; + /* Use realloc since mbcset->range_starts and mbcset->range_ends + are NULL if *range_alloc == 0. */ + new_array_start = re_realloc (mbcset->range_starts, wchar_t, + new_nranges); + new_array_end = re_realloc (mbcset->range_ends, wchar_t, + new_nranges); + + if (BE (new_array_start == NULL || new_array_end == NULL, 0)) + return REG_ESPACE; + + mbcset->range_starts = new_array_start; + mbcset->range_ends = new_array_end; + *range_alloc = new_nranges; + } + + mbcset->range_starts[mbcset->nranges] = start_wc; + mbcset->range_ends[mbcset->nranges++] = end_wc; + } + + /* Build the table for single byte characters. */ + for (wc = 0; wc < SBC_MAX; ++wc) + { + cmp_buf[2] = wc; + if (wcscoll (cmp_buf, cmp_buf + 2) <= 0 + && wcscoll (cmp_buf + 2, cmp_buf + 4) <= 0) + bitset_set (sbcset, wc); + } + } +# else /* not RE_ENABLE_I18N */ + { + unsigned int ch; + start_ch = ((start_elem->type == SB_CHAR ) ? start_elem->opr.ch + : ((start_elem->type == COLL_SYM) ? start_elem->opr.name[0] + : 0)); + end_ch = ((end_elem->type == SB_CHAR ) ? end_elem->opr.ch + : ((end_elem->type == COLL_SYM) ? end_elem->opr.name[0] + : 0)); + if (start_ch > end_ch) + return REG_ERANGE; + /* Build the table for single byte characters. */ + for (ch = 0; ch < SBC_MAX; ++ch) + if (start_ch <= ch && ch <= end_ch) + bitset_set (sbcset, ch); + } +# endif /* not RE_ENABLE_I18N */ + return REG_NOERROR; +} +#endif /* not _LIBC */ + +#ifndef _LIBC +/* Helper function for parse_bracket_exp only used in case of NOT _LIBC.. + Build the collating element which is represented by NAME. + The result are written to MBCSET and SBCSET. + COLL_SYM_ALLOC is the allocated size of mbcset->coll_sym, is a + pointer argument since we may update it. */ + +static reg_errcode_t +internal_function +build_collating_symbol (bitset_t sbcset, +# ifdef RE_ENABLE_I18N + re_charset_t *mbcset, Idx *coll_sym_alloc, +# endif + const unsigned char *name) +{ + size_t name_len = strlen ((const char *) name); + if (BE (name_len != 1, 0)) + return REG_ECOLLATE; + else + { + bitset_set (sbcset, name[0]); + return REG_NOERROR; + } +} +#endif /* not _LIBC */ + +/* This function parse bracket expression like "[abc]", "[a-c]", + "[[.a-a.]]" etc. */ + +static bin_tree_t * +parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token, + reg_syntax_t syntax, reg_errcode_t *err) +{ +#ifdef _LIBC + const unsigned char *collseqmb; + const char *collseqwc; + uint32_t nrules; + int32_t table_size; + const int32_t *symb_table; + const unsigned char *extra; + + /* Local function for parse_bracket_exp used in _LIBC environement. + Seek the collating symbol entry correspondings to NAME. + Return the index of the symbol in the SYMB_TABLE. */ + + auto inline int32_t + __attribute ((always_inline)) + seek_collating_symbol_entry (name, name_len) + const unsigned char *name; + size_t name_len; + { + int32_t hash = elem_hash ((const char *) name, name_len); + int32_t elem = hash % table_size; + if (symb_table[2 * elem] != 0) + { + int32_t second = hash % (table_size - 2) + 1; + + do + { + /* First compare the hashing value. */ + if (symb_table[2 * elem] == hash + /* Compare the length of the name. */ + && name_len == extra[symb_table[2 * elem + 1]] + /* Compare the name. */ + && memcmp (name, &extra[symb_table[2 * elem + 1] + 1], + name_len) == 0) + { + /* Yep, this is the entry. */ + break; + } + + /* Next entry. */ + elem += second; + } + while (symb_table[2 * elem] != 0); + } + return elem; + } + + /* Local function for parse_bracket_exp used in _LIBC environment. + Look up the collation sequence value of BR_ELEM. + Return the value if succeeded, UINT_MAX otherwise. */ + + auto inline unsigned int + __attribute ((always_inline)) + lookup_collation_sequence_value (br_elem) + bracket_elem_t *br_elem; + { + if (br_elem->type == SB_CHAR) + { + /* + if (MB_CUR_MAX == 1) + */ + if (nrules == 0) + return collseqmb[br_elem->opr.ch]; + else + { + wint_t wc = __btowc (br_elem->opr.ch); + return __collseq_table_lookup (collseqwc, wc); + } + } + else if (br_elem->type == MB_CHAR) + { + if (nrules != 0) + return __collseq_table_lookup (collseqwc, br_elem->opr.wch); + } + else if (br_elem->type == COLL_SYM) + { + size_t sym_name_len = strlen ((char *) br_elem->opr.name); + if (nrules != 0) + { + int32_t elem, idx; + elem = seek_collating_symbol_entry (br_elem->opr.name, + sym_name_len); + if (symb_table[2 * elem] != 0) + { + /* We found the entry. */ + idx = symb_table[2 * elem + 1]; + /* Skip the name of collating element name. */ + idx += 1 + extra[idx]; + /* Skip the byte sequence of the collating element. */ + idx += 1 + extra[idx]; + /* Adjust for the alignment. */ + idx = (idx + 3) & ~3; + /* Skip the multibyte collation sequence value. */ + idx += sizeof (unsigned int); + /* Skip the wide char sequence of the collating element. */ + idx += sizeof (unsigned int) * + (1 + *(unsigned int *) (extra + idx)); + /* Return the collation sequence value. */ + return *(unsigned int *) (extra + idx); + } + else if (symb_table[2 * elem] == 0 && sym_name_len == 1) + { + /* No valid character. Match it as a single byte + character. */ + return collseqmb[br_elem->opr.name[0]]; + } + } + else if (sym_name_len == 1) + return collseqmb[br_elem->opr.name[0]]; + } + return UINT_MAX; + } + + /* Local function for parse_bracket_exp used in _LIBC environement. + Build the range expression which starts from START_ELEM, and ends + at END_ELEM. The result are written to MBCSET and SBCSET. + RANGE_ALLOC is the allocated size of mbcset->range_starts, and + mbcset->range_ends, is a pointer argument sinse we may + update it. */ + + auto inline reg_errcode_t + __attribute ((always_inline)) + build_range_exp (sbcset, mbcset, range_alloc, start_elem, end_elem) + re_charset_t *mbcset; + Idx *range_alloc; + bitset_t sbcset; + bracket_elem_t *start_elem, *end_elem; + { + unsigned int ch; + uint32_t start_collseq; + uint32_t end_collseq; + + /* Equivalence Classes and Character Classes can't be a range + start/end. */ + if (BE (start_elem->type == EQUIV_CLASS || start_elem->type == CHAR_CLASS + || end_elem->type == EQUIV_CLASS || end_elem->type == CHAR_CLASS, + 0)) + return REG_ERANGE; + + start_collseq = lookup_collation_sequence_value (start_elem); + end_collseq = lookup_collation_sequence_value (end_elem); + /* Check start/end collation sequence values. */ + if (BE (start_collseq == UINT_MAX || end_collseq == UINT_MAX, 0)) + return REG_ECOLLATE; + if (BE ((syntax & RE_NO_EMPTY_RANGES) && start_collseq > end_collseq, 0)) + return REG_ERANGE; + + /* Got valid collation sequence values, add them as a new entry. + However, if we have no collation elements, and the character set + is single byte, the single byte character set that we + build below suffices. */ + if (nrules > 0 || dfa->mb_cur_max > 1) + { + /* Check the space of the arrays. */ + if (BE (*range_alloc == mbcset->nranges, 0)) + { + /* There is not enough space, need realloc. */ + uint32_t *new_array_start; + uint32_t *new_array_end; + Idx new_nranges; + + /* +1 in case of mbcset->nranges is 0. */ + new_nranges = 2 * mbcset->nranges + 1; + new_array_start = re_realloc (mbcset->range_starts, uint32_t, + new_nranges); + new_array_end = re_realloc (mbcset->range_ends, uint32_t, + new_nranges); + + if (BE (new_array_start == NULL || new_array_end == NULL, 0)) + return REG_ESPACE; + + mbcset->range_starts = new_array_start; + mbcset->range_ends = new_array_end; + *range_alloc = new_nranges; + } + + mbcset->range_starts[mbcset->nranges] = start_collseq; + mbcset->range_ends[mbcset->nranges++] = end_collseq; + } + + /* Build the table for single byte characters. */ + for (ch = 0; ch < SBC_MAX; ch++) + { + uint32_t ch_collseq; + /* + if (MB_CUR_MAX == 1) + */ + if (nrules == 0) + ch_collseq = collseqmb[ch]; + else + ch_collseq = __collseq_table_lookup (collseqwc, __btowc (ch)); + if (start_collseq <= ch_collseq && ch_collseq <= end_collseq) + bitset_set (sbcset, ch); + } + return REG_NOERROR; + } + + /* Local function for parse_bracket_exp used in _LIBC environement. + Build the collating element which is represented by NAME. + The result are written to MBCSET and SBCSET. + COLL_SYM_ALLOC is the allocated size of mbcset->coll_sym, is a + pointer argument sinse we may update it. */ + + auto inline reg_errcode_t + __attribute ((always_inline)) + build_collating_symbol (sbcset, mbcset, coll_sym_alloc, name) + re_charset_t *mbcset; + Idx *coll_sym_alloc; + bitset_t sbcset; + const unsigned char *name; + { + int32_t elem, idx; + size_t name_len = strlen ((const char *) name); + if (nrules != 0) + { + elem = seek_collating_symbol_entry (name, name_len); + if (symb_table[2 * elem] != 0) + { + /* We found the entry. */ + idx = symb_table[2 * elem + 1]; + /* Skip the name of collating element name. */ + idx += 1 + extra[idx]; + } + else if (symb_table[2 * elem] == 0 && name_len == 1) + { + /* No valid character, treat it as a normal + character. */ + bitset_set (sbcset, name[0]); + return REG_NOERROR; + } + else + return REG_ECOLLATE; + + /* Got valid collation sequence, add it as a new entry. */ + /* Check the space of the arrays. */ + if (BE (*coll_sym_alloc == mbcset->ncoll_syms, 0)) + { + /* Not enough, realloc it. */ + /* +1 in case of mbcset->ncoll_syms is 0. */ + Idx new_coll_sym_alloc = 2 * mbcset->ncoll_syms + 1; + /* Use realloc since mbcset->coll_syms is NULL + if *alloc == 0. */ + int32_t *new_coll_syms = re_realloc (mbcset->coll_syms, int32_t, + new_coll_sym_alloc); + if (BE (new_coll_syms == NULL, 0)) + return REG_ESPACE; + mbcset->coll_syms = new_coll_syms; + *coll_sym_alloc = new_coll_sym_alloc; + } + mbcset->coll_syms[mbcset->ncoll_syms++] = idx; + return REG_NOERROR; + } + else + { + if (BE (name_len != 1, 0)) + return REG_ECOLLATE; + else + { + bitset_set (sbcset, name[0]); + return REG_NOERROR; + } + } + } +#endif + + re_token_t br_token; + re_bitset_ptr_t sbcset; +#ifdef RE_ENABLE_I18N + re_charset_t *mbcset; + Idx coll_sym_alloc = 0, range_alloc = 0, mbchar_alloc = 0; + Idx equiv_class_alloc = 0, char_class_alloc = 0; +#endif /* not RE_ENABLE_I18N */ + bool non_match = false; + bin_tree_t *work_tree; + int token_len; + bool first_round = true; +#ifdef _LIBC + collseqmb = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQMB); + nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + if (nrules) + { + /* + if (MB_CUR_MAX > 1) + */ + collseqwc = _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQWC); + table_size = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_SYMB_HASH_SIZEMB); + symb_table = (const int32_t *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_TABLEMB); + extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_SYMB_EXTRAMB); + } +#endif + sbcset = (re_bitset_ptr_t) calloc (sizeof (bitset_t), 1); +#ifdef RE_ENABLE_I18N + mbcset = (re_charset_t *) calloc (sizeof (re_charset_t), 1); +#endif /* RE_ENABLE_I18N */ +#ifdef RE_ENABLE_I18N + if (BE (sbcset == NULL || mbcset == NULL, 0)) +#else + if (BE (sbcset == NULL, 0)) +#endif /* RE_ENABLE_I18N */ + { + *err = REG_ESPACE; + return NULL; + } + + token_len = peek_token_bracket (token, regexp, syntax); + if (BE (token->type == END_OF_RE, 0)) + { + *err = REG_BADPAT; + goto parse_bracket_exp_free_return; + } + if (token->type == OP_NON_MATCH_LIST) + { +#ifdef RE_ENABLE_I18N + mbcset->non_match = 1; +#endif /* not RE_ENABLE_I18N */ + non_match = true; + if (syntax & RE_HAT_LISTS_NOT_NEWLINE) + bitset_set (sbcset, '\n'); + re_string_skip_bytes (regexp, token_len); /* Skip a token. */ + token_len = peek_token_bracket (token, regexp, syntax); + if (BE (token->type == END_OF_RE, 0)) + { + *err = REG_BADPAT; + goto parse_bracket_exp_free_return; + } + } + + /* We treat the first ']' as a normal character. */ + if (token->type == OP_CLOSE_BRACKET) + token->type = CHARACTER; + + while (1) + { + bracket_elem_t start_elem, end_elem; + unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE]; + unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE]; + reg_errcode_t ret; + int token_len2 = 0; + bool is_range_exp = false; + re_token_t token2; + + start_elem.opr.name = start_name_buf; + ret = parse_bracket_element (&start_elem, regexp, token, token_len, dfa, + syntax, first_round); + if (BE (ret != REG_NOERROR, 0)) + { + *err = ret; + goto parse_bracket_exp_free_return; + } + first_round = false; + + /* Get information about the next token. We need it in any case. */ + token_len = peek_token_bracket (token, regexp, syntax); + + /* Do not check for ranges if we know they are not allowed. */ + if (start_elem.type != CHAR_CLASS && start_elem.type != EQUIV_CLASS) + { + if (BE (token->type == END_OF_RE, 0)) + { + *err = REG_EBRACK; + goto parse_bracket_exp_free_return; + } + if (token->type == OP_CHARSET_RANGE) + { + re_string_skip_bytes (regexp, token_len); /* Skip '-'. */ + token_len2 = peek_token_bracket (&token2, regexp, syntax); + if (BE (token2.type == END_OF_RE, 0)) + { + *err = REG_EBRACK; + goto parse_bracket_exp_free_return; + } + if (token2.type == OP_CLOSE_BRACKET) + { + /* We treat the last '-' as a normal character. */ + re_string_skip_bytes (regexp, -token_len); + token->type = CHARACTER; + } + else + is_range_exp = true; + } + } + + if (is_range_exp == true) + { + end_elem.opr.name = end_name_buf; + ret = parse_bracket_element (&end_elem, regexp, &token2, token_len2, + dfa, syntax, true); + if (BE (ret != REG_NOERROR, 0)) + { + *err = ret; + goto parse_bracket_exp_free_return; + } + + token_len = peek_token_bracket (token, regexp, syntax); + +#ifdef _LIBC + *err = build_range_exp (sbcset, mbcset, &range_alloc, + &start_elem, &end_elem); +#else +# ifdef RE_ENABLE_I18N + *err = build_range_exp (syntax, sbcset, + dfa->mb_cur_max > 1 ? mbcset : NULL, + &range_alloc, &start_elem, &end_elem); +# else + *err = build_range_exp (syntax, sbcset, &start_elem, &end_elem); +# endif +#endif /* RE_ENABLE_I18N */ + if (BE (*err != REG_NOERROR, 0)) + goto parse_bracket_exp_free_return; + } + else + { + switch (start_elem.type) + { + case SB_CHAR: + bitset_set (sbcset, start_elem.opr.ch); + break; +#ifdef RE_ENABLE_I18N + case MB_CHAR: + /* Check whether the array has enough space. */ + if (BE (mbchar_alloc == mbcset->nmbchars, 0)) + { + wchar_t *new_mbchars; + /* Not enough, realloc it. */ + /* +1 in case of mbcset->nmbchars is 0. */ + mbchar_alloc = 2 * mbcset->nmbchars + 1; + /* Use realloc since array is NULL if *alloc == 0. */ + new_mbchars = re_realloc (mbcset->mbchars, wchar_t, + mbchar_alloc); + if (BE (new_mbchars == NULL, 0)) + goto parse_bracket_exp_espace; + mbcset->mbchars = new_mbchars; + } + mbcset->mbchars[mbcset->nmbchars++] = start_elem.opr.wch; + break; +#endif /* RE_ENABLE_I18N */ + case EQUIV_CLASS: + *err = build_equiv_class (sbcset, +#ifdef RE_ENABLE_I18N + mbcset, &equiv_class_alloc, +#endif /* RE_ENABLE_I18N */ + start_elem.opr.name); + if (BE (*err != REG_NOERROR, 0)) + goto parse_bracket_exp_free_return; + break; + case COLL_SYM: + *err = build_collating_symbol (sbcset, +#ifdef RE_ENABLE_I18N + mbcset, &coll_sym_alloc, +#endif /* RE_ENABLE_I18N */ + start_elem.opr.name); + if (BE (*err != REG_NOERROR, 0)) + goto parse_bracket_exp_free_return; + break; + case CHAR_CLASS: + *err = build_charclass (regexp->trans, sbcset, +#ifdef RE_ENABLE_I18N + mbcset, &char_class_alloc, +#endif /* RE_ENABLE_I18N */ + start_elem.opr.name, syntax); + if (BE (*err != REG_NOERROR, 0)) + goto parse_bracket_exp_free_return; + break; + default: + assert (0); + break; + } + } + if (BE (token->type == END_OF_RE, 0)) + { + *err = REG_EBRACK; + goto parse_bracket_exp_free_return; + } + if (token->type == OP_CLOSE_BRACKET) + break; + } + + re_string_skip_bytes (regexp, token_len); /* Skip a token. */ + + /* If it is non-matching list. */ + if (non_match) + bitset_not (sbcset); + +#ifdef RE_ENABLE_I18N + /* Ensure only single byte characters are set. */ + if (dfa->mb_cur_max > 1) + bitset_mask (sbcset, dfa->sb_char); + + if (mbcset->nmbchars || mbcset->ncoll_syms || mbcset->nequiv_classes + || mbcset->nranges || (dfa->mb_cur_max > 1 && (mbcset->nchar_classes + || mbcset->non_match))) + { + bin_tree_t *mbc_tree; + int sbc_idx; + /* Build a tree for complex bracket. */ + dfa->has_mb_node = 1; + br_token.type = COMPLEX_BRACKET; + br_token.opr.mbcset = mbcset; + mbc_tree = create_token_tree (dfa, NULL, NULL, &br_token); + if (BE (mbc_tree == NULL, 0)) + goto parse_bracket_exp_espace; + for (sbc_idx = 0; sbc_idx < BITSET_WORDS; ++sbc_idx) + if (sbcset[sbc_idx]) + break; + /* If there are no bits set in sbcset, there is no point + of having both SIMPLE_BRACKET and COMPLEX_BRACKET. */ + if (sbc_idx < BITSET_WORDS) + { + /* Build a tree for simple bracket. */ + br_token.type = SIMPLE_BRACKET; + br_token.opr.sbcset = sbcset; + work_tree = create_token_tree (dfa, NULL, NULL, &br_token); + if (BE (work_tree == NULL, 0)) + goto parse_bracket_exp_espace; + + /* Then join them by ALT node. */ + work_tree = create_tree (dfa, work_tree, mbc_tree, OP_ALT); + if (BE (work_tree == NULL, 0)) + goto parse_bracket_exp_espace; + } + else + { + re_free (sbcset); + work_tree = mbc_tree; + } + } + else +#endif /* not RE_ENABLE_I18N */ + { +#ifdef RE_ENABLE_I18N + free_charset (mbcset); +#endif + /* Build a tree for simple bracket. */ + br_token.type = SIMPLE_BRACKET; + br_token.opr.sbcset = sbcset; + work_tree = create_token_tree (dfa, NULL, NULL, &br_token); + if (BE (work_tree == NULL, 0)) + goto parse_bracket_exp_espace; + } + return work_tree; + + parse_bracket_exp_espace: + *err = REG_ESPACE; + parse_bracket_exp_free_return: + re_free (sbcset); +#ifdef RE_ENABLE_I18N + free_charset (mbcset); +#endif /* RE_ENABLE_I18N */ + return NULL; +} + +/* Parse an element in the bracket expression. */ + +static reg_errcode_t +parse_bracket_element (bracket_elem_t *elem, re_string_t *regexp, + re_token_t *token, int token_len, re_dfa_t *dfa, + reg_syntax_t syntax, bool accept_hyphen) +{ +#ifdef RE_ENABLE_I18N + int cur_char_size; + cur_char_size = re_string_char_size_at (regexp, re_string_cur_idx (regexp)); + if (cur_char_size > 1) + { + elem->type = MB_CHAR; + elem->opr.wch = re_string_wchar_at (regexp, re_string_cur_idx (regexp)); + re_string_skip_bytes (regexp, cur_char_size); + return REG_NOERROR; + } +#endif /* RE_ENABLE_I18N */ + re_string_skip_bytes (regexp, token_len); /* Skip a token. */ + if (token->type == OP_OPEN_COLL_ELEM || token->type == OP_OPEN_CHAR_CLASS + || token->type == OP_OPEN_EQUIV_CLASS) + return parse_bracket_symbol (elem, regexp, token); + if (BE (token->type == OP_CHARSET_RANGE, 0) && !accept_hyphen) + { + /* A '-' must only appear as anything but a range indicator before + the closing bracket. Everything else is an error. */ + re_token_t token2; + (void) peek_token_bracket (&token2, regexp, syntax); + if (token2.type != OP_CLOSE_BRACKET) + /* The actual error value is not standardized since this whole + case is undefined. But ERANGE makes good sense. */ + return REG_ERANGE; + } + elem->type = SB_CHAR; + elem->opr.ch = token->opr.c; + return REG_NOERROR; +} + +/* Parse a bracket symbol in the bracket expression. Bracket symbols are + such as [::], [..], and + [==]. */ + +static reg_errcode_t +parse_bracket_symbol (bracket_elem_t *elem, re_string_t *regexp, + re_token_t *token) +{ + unsigned char ch, delim = token->opr.c; + int i = 0; + if (re_string_eoi(regexp)) + return REG_EBRACK; + for (;; ++i) + { + if (i >= BRACKET_NAME_BUF_SIZE) + return REG_EBRACK; + if (token->type == OP_OPEN_CHAR_CLASS) + ch = re_string_fetch_byte_case (regexp); + else + ch = re_string_fetch_byte (regexp); + if (re_string_eoi(regexp)) + return REG_EBRACK; + if (ch == delim && re_string_peek_byte (regexp, 0) == ']') + break; + elem->opr.name[i] = ch; + } + re_string_skip_bytes (regexp, 1); + elem->opr.name[i] = '\0'; + switch (token->type) + { + case OP_OPEN_COLL_ELEM: + elem->type = COLL_SYM; + break; + case OP_OPEN_EQUIV_CLASS: + elem->type = EQUIV_CLASS; + break; + case OP_OPEN_CHAR_CLASS: + elem->type = CHAR_CLASS; + break; + default: + break; + } + return REG_NOERROR; +} + + /* Helper function for parse_bracket_exp. + Build the equivalence class which is represented by NAME. + The result are written to MBCSET and SBCSET. + EQUIV_CLASS_ALLOC is the allocated size of mbcset->equiv_classes, + is a pointer argument sinse we may update it. */ + +static reg_errcode_t +#ifdef RE_ENABLE_I18N +build_equiv_class (bitset_t sbcset, re_charset_t *mbcset, + Idx *equiv_class_alloc, const unsigned char *name) +#else /* not RE_ENABLE_I18N */ +build_equiv_class (bitset_t sbcset, const unsigned char *name) +#endif /* not RE_ENABLE_I18N */ +{ +#ifdef _LIBC + uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + if (nrules != 0) + { + const int32_t *table, *indirect; + const unsigned char *weights, *extra, *cp; + unsigned char char_buf[2]; + int32_t idx1, idx2; + unsigned int ch; + size_t len; + /* This #include defines a local function! */ +# include + /* Calculate the index for equivalence class. */ + cp = name; + table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); + weights = (const unsigned char *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_WEIGHTMB); + extra = (const unsigned char *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_EXTRAMB); + indirect = (const int32_t *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_INDIRECTMB); + idx1 = findidx (&cp); + if (BE (idx1 == 0 || cp < name + strlen ((const char *) name), 0)) + /* This isn't a valid character. */ + return REG_ECOLLATE; + + /* Build single byte matcing table for this equivalence class. */ + char_buf[1] = (unsigned char) '\0'; + len = weights[idx1 & 0xffffff]; + for (ch = 0; ch < SBC_MAX; ++ch) + { + char_buf[0] = ch; + cp = char_buf; + idx2 = findidx (&cp); +/* + idx2 = table[ch]; +*/ + if (idx2 == 0) + /* This isn't a valid character. */ + continue; + /* Compare only if the length matches and the collation rule + index is the same. */ + if (len == weights[idx2 & 0xffffff] && (idx1 >> 24) == (idx2 >> 24)) + { + int cnt = 0; + + while (cnt <= len && + weights[(idx1 & 0xffffff) + 1 + cnt] + == weights[(idx2 & 0xffffff) + 1 + cnt]) + ++cnt; + + if (cnt > len) + bitset_set (sbcset, ch); + } + } + /* Check whether the array has enough space. */ + if (BE (*equiv_class_alloc == mbcset->nequiv_classes, 0)) + { + /* Not enough, realloc it. */ + /* +1 in case of mbcset->nequiv_classes is 0. */ + Idx new_equiv_class_alloc = 2 * mbcset->nequiv_classes + 1; + /* Use realloc since the array is NULL if *alloc == 0. */ + int32_t *new_equiv_classes = re_realloc (mbcset->equiv_classes, + int32_t, + new_equiv_class_alloc); + if (BE (new_equiv_classes == NULL, 0)) + return REG_ESPACE; + mbcset->equiv_classes = new_equiv_classes; + *equiv_class_alloc = new_equiv_class_alloc; + } + mbcset->equiv_classes[mbcset->nequiv_classes++] = idx1; + } + else +#endif /* _LIBC */ + { + if (BE (strlen ((const char *) name) != 1, 0)) + return REG_ECOLLATE; + bitset_set (sbcset, *name); + } + return REG_NOERROR; +} + + /* Helper function for parse_bracket_exp. + Build the character class which is represented by NAME. + The result are written to MBCSET and SBCSET. + CHAR_CLASS_ALLOC is the allocated size of mbcset->char_classes, + is a pointer argument sinse we may update it. */ + +static reg_errcode_t +#ifdef RE_ENABLE_I18N +build_charclass (RE_TRANSLATE_TYPE trans, bitset_t sbcset, + re_charset_t *mbcset, Idx *char_class_alloc, + const unsigned char *class_name, reg_syntax_t syntax) +#else /* not RE_ENABLE_I18N */ +build_charclass (RE_TRANSLATE_TYPE trans, bitset_t sbcset, + const unsigned char *class_name, reg_syntax_t syntax) +#endif /* not RE_ENABLE_I18N */ +{ + int i; + const char *name = (const char *) class_name; + + /* In case of REG_ICASE "upper" and "lower" match the both of + upper and lower cases. */ + if ((syntax & RE_ICASE) + && (strcmp (name, "upper") == 0 || strcmp (name, "lower") == 0)) + name = "alpha"; + +#ifdef RE_ENABLE_I18N + /* Check the space of the arrays. */ + if (BE (*char_class_alloc == mbcset->nchar_classes, 0)) + { + /* Not enough, realloc it. */ + /* +1 in case of mbcset->nchar_classes is 0. */ + Idx new_char_class_alloc = 2 * mbcset->nchar_classes + 1; + /* Use realloc since array is NULL if *alloc == 0. */ + wctype_t *new_char_classes = re_realloc (mbcset->char_classes, wctype_t, + new_char_class_alloc); + if (BE (new_char_classes == NULL, 0)) + return REG_ESPACE; + mbcset->char_classes = new_char_classes; + *char_class_alloc = new_char_class_alloc; + } + mbcset->char_classes[mbcset->nchar_classes++] = __wctype (name); +#endif /* RE_ENABLE_I18N */ + +#define BUILD_CHARCLASS_LOOP(ctype_func) \ + do { \ + if (BE (trans != NULL, 0)) \ + { \ + for (i = 0; i < SBC_MAX; ++i) \ + if (ctype_func (i)) \ + bitset_set (sbcset, trans[i]); \ + } \ + else \ + { \ + for (i = 0; i < SBC_MAX; ++i) \ + if (ctype_func (i)) \ + bitset_set (sbcset, i); \ + } \ + } while (0) + + if (strcmp (name, "alnum") == 0) + BUILD_CHARCLASS_LOOP (isalnum); + else if (strcmp (name, "cntrl") == 0) + BUILD_CHARCLASS_LOOP (iscntrl); + else if (strcmp (name, "lower") == 0) + BUILD_CHARCLASS_LOOP (islower); + else if (strcmp (name, "space") == 0) + BUILD_CHARCLASS_LOOP (isspace); + else if (strcmp (name, "alpha") == 0) + BUILD_CHARCLASS_LOOP (isalpha); + else if (strcmp (name, "digit") == 0) + BUILD_CHARCLASS_LOOP (isdigit); + else if (strcmp (name, "print") == 0) + BUILD_CHARCLASS_LOOP (isprint); + else if (strcmp (name, "upper") == 0) + BUILD_CHARCLASS_LOOP (isupper); + else if (strcmp (name, "blank") == 0) + BUILD_CHARCLASS_LOOP (isblank); + else if (strcmp (name, "graph") == 0) + BUILD_CHARCLASS_LOOP (isgraph); + else if (strcmp (name, "punct") == 0) + BUILD_CHARCLASS_LOOP (ispunct); + else if (strcmp (name, "xdigit") == 0) + BUILD_CHARCLASS_LOOP (isxdigit); + else + return REG_ECTYPE; + + return REG_NOERROR; +} + +static bin_tree_t * +build_charclass_op (re_dfa_t *dfa, RE_TRANSLATE_TYPE trans, + const unsigned char *class_name, + const unsigned char *extra, bool non_match, + reg_errcode_t *err) +{ + re_bitset_ptr_t sbcset; +#ifdef RE_ENABLE_I18N + re_charset_t *mbcset; + Idx alloc = 0; +#endif /* not RE_ENABLE_I18N */ + reg_errcode_t ret; + re_token_t br_token; + bin_tree_t *tree; + + sbcset = (re_bitset_ptr_t) calloc (sizeof (bitset_t), 1); +#ifdef RE_ENABLE_I18N + mbcset = (re_charset_t *) calloc (sizeof (re_charset_t), 1); +#endif /* RE_ENABLE_I18N */ + +#ifdef RE_ENABLE_I18N + if (BE (sbcset == NULL || mbcset == NULL, 0)) +#else /* not RE_ENABLE_I18N */ + if (BE (sbcset == NULL, 0)) +#endif /* not RE_ENABLE_I18N */ + { + *err = REG_ESPACE; + return NULL; + } + + if (non_match) + { +#ifdef RE_ENABLE_I18N + mbcset->non_match = 1; +#endif /* not RE_ENABLE_I18N */ + } + + /* We don't care the syntax in this case. */ + ret = build_charclass (trans, sbcset, +#ifdef RE_ENABLE_I18N + mbcset, &alloc, +#endif /* RE_ENABLE_I18N */ + class_name, 0); + + if (BE (ret != REG_NOERROR, 0)) + { + re_free (sbcset); +#ifdef RE_ENABLE_I18N + free_charset (mbcset); +#endif /* RE_ENABLE_I18N */ + *err = ret; + return NULL; + } + /* \w match '_' also. */ + for (; *extra; extra++) + bitset_set (sbcset, *extra); + + /* If it is non-matching list. */ + if (non_match) + bitset_not (sbcset); + +#ifdef RE_ENABLE_I18N + /* Ensure only single byte characters are set. */ + if (dfa->mb_cur_max > 1) + bitset_mask (sbcset, dfa->sb_char); +#endif + + /* Build a tree for simple bracket. */ + br_token.type = SIMPLE_BRACKET; + br_token.opr.sbcset = sbcset; + tree = create_token_tree (dfa, NULL, NULL, &br_token); + if (BE (tree == NULL, 0)) + goto build_word_op_espace; + +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + { + bin_tree_t *mbc_tree; + /* Build a tree for complex bracket. */ + br_token.type = COMPLEX_BRACKET; + br_token.opr.mbcset = mbcset; + dfa->has_mb_node = 1; + mbc_tree = create_token_tree (dfa, NULL, NULL, &br_token); + if (BE (mbc_tree == NULL, 0)) + goto build_word_op_espace; + /* Then join them by ALT node. */ + tree = create_tree (dfa, tree, mbc_tree, OP_ALT); + if (BE (mbc_tree != NULL, 1)) + return tree; + } + else + { + free_charset (mbcset); + return tree; + } +#else /* not RE_ENABLE_I18N */ + return tree; +#endif /* not RE_ENABLE_I18N */ + + build_word_op_espace: + re_free (sbcset); +#ifdef RE_ENABLE_I18N + free_charset (mbcset); +#endif /* RE_ENABLE_I18N */ + *err = REG_ESPACE; + return NULL; +} + +/* This is intended for the expressions like "a{1,3}". + Fetch a number from `input', and return the number. + Return REG_MISSING if the number field is empty like "{,1}". + Return REG_ERROR if an error occurred. */ + +static Idx +fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax) +{ + Idx num = REG_MISSING; + unsigned char c; + while (1) + { + fetch_token (token, input, syntax); + c = token->opr.c; + if (BE (token->type == END_OF_RE, 0)) + return REG_ERROR; + if (token->type == OP_CLOSE_DUP_NUM || c == ',') + break; + num = ((token->type != CHARACTER || c < '0' || '9' < c + || num == REG_ERROR) + ? REG_ERROR + : ((num == REG_MISSING) ? c - '0' : num * 10 + c - '0')); + num = (num > RE_DUP_MAX) ? REG_ERROR : num; + } + return num; +} + +#ifdef RE_ENABLE_I18N +static void +free_charset (re_charset_t *cset) +{ + re_free (cset->mbchars); +# ifdef _LIBC + re_free (cset->coll_syms); + re_free (cset->equiv_classes); + re_free (cset->range_starts); + re_free (cset->range_ends); +# endif + re_free (cset->char_classes); + re_free (cset); +} +#endif /* RE_ENABLE_I18N */ + +/* Functions for binary tree operation. */ + +/* Create a tree node. */ + +static bin_tree_t * +create_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right, + re_token_type_t type) +{ + re_token_t t; + t.type = type; + return create_token_tree (dfa, left, right, &t); +} + +static bin_tree_t * +create_token_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right, + const re_token_t *token) +{ + bin_tree_t *tree; + if (BE (dfa->str_tree_storage_idx == BIN_TREE_STORAGE_SIZE, 0)) + { + bin_tree_storage_t *storage = re_malloc (bin_tree_storage_t, 1); + + if (storage == NULL) + return NULL; + storage->next = dfa->str_tree_storage; + dfa->str_tree_storage = storage; + dfa->str_tree_storage_idx = 0; + } + tree = &dfa->str_tree_storage->data[dfa->str_tree_storage_idx++]; + + tree->parent = NULL; + tree->left = left; + tree->right = right; + tree->token = *token; + tree->token.duplicated = 0; + tree->token.opt_subexp = 0; + tree->first = NULL; + tree->next = NULL; + tree->node_idx = REG_MISSING; + + if (left != NULL) + left->parent = tree; + if (right != NULL) + right->parent = tree; + return tree; +} + +/* Mark the tree SRC as an optional subexpression. + To be called from preorder or postorder. */ + +static reg_errcode_t +mark_opt_subexp (void *extra, bin_tree_t *node) +{ + Idx idx = (Idx) (long) extra; + if (node->token.type == SUBEXP && node->token.opr.idx == idx) + node->token.opt_subexp = 1; + + return REG_NOERROR; +} + +/* Free the allocated memory inside NODE. */ + +static void +free_token (re_token_t *node) +{ +#ifdef RE_ENABLE_I18N + if (node->type == COMPLEX_BRACKET && node->duplicated == 0) + free_charset (node->opr.mbcset); + else +#endif /* RE_ENABLE_I18N */ + if (node->type == SIMPLE_BRACKET && node->duplicated == 0) + re_free (node->opr.sbcset); +} + +/* Worker function for tree walking. Free the allocated memory inside NODE + and its children. */ + +static reg_errcode_t +free_tree (void *extra, bin_tree_t *node) +{ + free_token (&node->token); + return REG_NOERROR; +} + + +/* Duplicate the node SRC, and return new node. This is a preorder + visit similar to the one implemented by the generic visitor, but + we need more infrastructure to maintain two parallel trees --- so, + it's easier to duplicate. */ + +static bin_tree_t * +duplicate_tree (const bin_tree_t *root, re_dfa_t *dfa) +{ + const bin_tree_t *node; + bin_tree_t *dup_root; + bin_tree_t **p_new = &dup_root, *dup_node = root->parent; + + for (node = root; ; ) + { + /* Create a new tree and link it back to the current parent. */ + *p_new = create_token_tree (dfa, NULL, NULL, &node->token); + if (*p_new == NULL) + return NULL; + (*p_new)->parent = dup_node; + (*p_new)->token.duplicated = 1; + dup_node = *p_new; + + /* Go to the left node, or up and to the right. */ + if (node->left) + { + node = node->left; + p_new = &dup_node->left; + } + else + { + const bin_tree_t *prev = NULL; + while (node->right == prev || node->right == NULL) + { + prev = node; + node = node->parent; + dup_node = dup_node->parent; + if (!node) + return dup_root; + } + node = node->right; + p_new = &dup_node->right; + } + } +} diff -Nru gettext-0.17/gettext-tools/libgrep/regex.c gettext-0.18.1.1/gettext-tools/libgrep/regex.c --- gettext-0.17/gettext-tools/libgrep/regex.c 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regex.c 2010-06-03 21:36:52.000000000 +0000 @@ -1,8298 +1,72 @@ -/* Extended regular expression matching and search library, - version 0.12. - (Implements POSIX draft P1003.2/D11.2, except for some of the - internationalization features.) +/* Extended regular expression matching and search library. + Copyright (C) 2002, 2003, 2005, 2006, 2009, 2010 Free Software Foundation, + Inc. + This file is part of the GNU C Library. + Contributed by Isamu Hasegawa . - Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2006 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + the Free Software Foundation; either version 3, or (at your option) + any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* AIX requires this to be the first thing in the file. */ -#if defined _AIX && !defined REGEX_MALLOC - #pragma alloca -#endif - -#undef _GNU_SOURCE -#define _GNU_SOURCE - -#ifdef HAVE_CONFIG_H -# include + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include + +/* Make sure noone compiles this code with a C++ compiler. */ +#if defined __cplusplus && defined _LIBC +# error "This is C code, use a C compiler" #endif -#ifndef INSIDE_RECURSION - -# include - -# define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) - -/* For platform which support the ISO C amendement 1 functionality we - support user defined character classes. */ -# if defined _LIBC || WIDE_CHAR_SUPPORT -/* Solaris 2.5 has a bug: must be included before . */ -# include -# include -# endif - -# ifdef _LIBC +#ifdef _LIBC /* We have to keep the namespace clean. */ -# define regfree(preg) __regfree (preg) -# define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef) -# define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags) -# define regerror(errcode, preg, errbuf, errbuf_size) \ +# define regfree(preg) __regfree (preg) +# define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef) +# define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags) +# define regerror(errcode, preg, errbuf, errbuf_size) \ __regerror(errcode, preg, errbuf, errbuf_size) -# define re_set_registers(bu, re, nu, st, en) \ +# define re_set_registers(bu, re, nu, st, en) \ __re_set_registers (bu, re, nu, st, en) -# define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ +# define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \ __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) -# define re_match(bufp, string, size, pos, regs) \ +# define re_match(bufp, string, size, pos, regs) \ __re_match (bufp, string, size, pos, regs) -# define re_search(bufp, string, size, startpos, range, regs) \ +# define re_search(bufp, string, size, startpos, range, regs) \ __re_search (bufp, string, size, startpos, range, regs) -# define re_compile_pattern(pattern, length, bufp) \ +# define re_compile_pattern(pattern, length, bufp) \ __re_compile_pattern (pattern, length, bufp) -# define re_set_syntax(syntax) __re_set_syntax (syntax) -# define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ +# define re_set_syntax(syntax) __re_set_syntax (syntax) +# define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \ __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop) -# define re_compile_fastmap(bufp) __re_compile_fastmap (bufp) - -# define btowc __btowc -# define iswctype __iswctype -# define mbrtowc __mbrtowc -# define wcslen __wcslen -# define wcscoll __wcscoll -# define wcrtomb __wcrtomb -# define mempcpy __mempcpy - -/* We are also using some library internals. */ -# include -# include -# include -# include -# endif - -# ifdef _LIBC -# include -# undef gettext -# define gettext(msgid) __dcgettext ("libc", msgid, LC_MESSAGES) - /* This define is so xgettext can find the internationalizable strings. */ -# define gettext_noop(msgid) msgid -# else -/* This is for other GNU distributions with internationalized messages. */ -# include "gettext.h" -# endif - -/* Support for bounded pointers. */ -# if !defined _LIBC && !defined __BOUNDED_POINTERS__ -# define __bounded /* nothing */ -# define __unbounded /* nothing */ -# define __ptrvalue /* nothing */ -# endif - -/* The `emacs' switch turns on certain matching commands - that make sense only in Emacs. */ -# ifdef emacs - -# include "lisp.h" -# include "buffer.h" -# include "syntax.h" - -# else /* not emacs */ - -/* If we are not linking with Emacs proper, - we can't use the relocating allocator - even if config.h says that we can. */ -# undef REL_ALLOC - -# include - -/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow. - If nothing else has been done, use the method below. */ -# ifdef INHIBIT_STRING_HEADER -# if !(defined HAVE_BZERO && defined HAVE_BCOPY) -# if !defined bzero && !defined bcopy -# undef INHIBIT_STRING_HEADER -# endif -# endif -# endif - -/* This is the normal way of making sure we have a bcopy and a bzero. - This is used in most programs--a few other programs avoid this - by defining INHIBIT_STRING_HEADER. */ -# ifndef INHIBIT_STRING_HEADER -# include -# ifndef bzero -# ifndef _LIBC -# define bzero(s, n) (memset (s, '\0', n), (s)) -# else -# define bzero(s, n) __bzero (s, n) -# endif -# endif -# endif - -/* Define the syntax stuff for \<, \>, etc. */ - -/* This must be nonzero for the wordchar and notwordchar pattern - commands in re_match_2. */ -# ifndef Sword -# define Sword 1 -# endif - -# ifdef SWITCH_ENUM_BUG -# define SWITCH_ENUM_CAST(x) ((int)(x)) -# else -# define SWITCH_ENUM_CAST(x) (x) -# endif - -# endif /* not emacs */ - -# include - -# ifndef MB_LEN_MAX -# define MB_LEN_MAX 1 -# endif - -/* Get the interface, including the syntax bits. */ -# include - -/* isalpha etc. are used for the character classes. */ -# include - -/* Jim Meyering writes: - - "... Some ctype macros are valid only for character codes that - isascii says are ASCII (SGI's IRIX-4.0.5 is one such system --when - using /bin/cc or gcc but without giving an ansi option). So, all - ctype uses should be through macros like ISPRINT... If - STDC_HEADERS is defined, then autoconf has verified that the ctype - macros don't need to be guarded with references to isascii. ... - Defining isascii to 1 should let any compiler worth its salt - eliminate the && through constant folding." - Solaris defines some of these symbols so we must undefine them first. */ - -# if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII) -# define IN_CTYPE_DOMAIN(c) 1 -# else -# define IN_CTYPE_DOMAIN(c) isascii(c) -# endif - -# ifdef isblank -# define ISBLANK(c) (IN_CTYPE_DOMAIN (c) && isblank (c)) -# else -# define ISBLANK(c) ((c) == ' ' || (c) == '\t') -# endif -# ifdef isgraph -# define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isgraph (c)) -# else -# define ISGRAPH(c) (IN_CTYPE_DOMAIN (c) && isprint (c) && !isspace (c)) -# endif - -# undef ISPRINT -# define ISPRINT(c) (IN_CTYPE_DOMAIN (c) && isprint (c)) -# define ISDIGIT(c) (IN_CTYPE_DOMAIN (c) && isdigit (c)) -# define ISALNUM(c) (IN_CTYPE_DOMAIN (c) && isalnum (c)) -# define ISALPHA(c) (IN_CTYPE_DOMAIN (c) && isalpha (c)) -# define ISCNTRL(c) (IN_CTYPE_DOMAIN (c) && iscntrl (c)) -# define ISLOWER(c) (IN_CTYPE_DOMAIN (c) && islower (c)) -# define ISPUNCT(c) (IN_CTYPE_DOMAIN (c) && ispunct (c)) -# define ISSPACE(c) (IN_CTYPE_DOMAIN (c) && isspace (c)) -# define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c)) -# define ISXDIGIT(c) (IN_CTYPE_DOMAIN (c) && isxdigit (c)) - -# ifdef _tolower -# define TOLOWER(c) _tolower(c) -# else -# define TOLOWER(c) tolower(c) -# endif - -# ifndef emacs -/* How many characters in the character set. */ -# define CHAR_SET_SIZE 256 - -# ifdef SYNTAX_TABLE - -extern char *re_syntax_table; - -# else /* not SYNTAX_TABLE */ - -static char re_syntax_table[CHAR_SET_SIZE]; - -static void -init_syntax_once (void) -{ - register int c; - static int done = 0; - - if (done) - return; - bzero (re_syntax_table, sizeof re_syntax_table); - - for (c = 0; c < CHAR_SET_SIZE; ++c) - if (ISALNUM (c)) - re_syntax_table[c] = Sword; - - re_syntax_table['_'] = Sword; - - done = 1; -} - -# endif /* not SYNTAX_TABLE */ - -# define SYNTAX(c) re_syntax_table[(unsigned char) (c)] - -# endif /* emacs */ - -/* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we - use `alloca' instead of `malloc'. This is because using malloc in - re_search* or re_match* could cause memory leaks when C-g is used in - Emacs; also, malloc is slower and causes storage fragmentation. On - the other hand, malloc is more portable, and easier to debug. - - Because we sometimes use alloca, some routines have to be macros, - not functions -- `alloca'-allocated space disappears at the end of the - function it is called in. */ - -# ifdef REGEX_MALLOC - -# define REGEX_ALLOCATE malloc -# define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize) -# define REGEX_FREE free - -# else /* not REGEX_MALLOC */ - -/* Emacs already defines alloca, sometimes. */ -# ifndef alloca - -/* Make alloca work the best possible way. */ -# include - -# endif /* not alloca */ - -# define REGEX_ALLOCATE alloca - -/* Assumes a `char *destination' variable. */ -# define REGEX_REALLOCATE(source, osize, nsize) \ - (destination = (char *) alloca (nsize), \ - memcpy (destination, source, osize)) +# define re_compile_fastmap(bufp) __re_compile_fastmap (bufp) -/* No need to do anything to free, after alloca. */ -# define REGEX_FREE(arg) ((void)0) /* Do nothing! But inhibit gcc warning. */ - -# endif /* not REGEX_MALLOC */ - -/* Define how to allocate the failure stack. */ - -# if defined REL_ALLOC && defined REGEX_MALLOC - -# define REGEX_ALLOCATE_STACK(size) \ - r_alloc (&failure_stack_ptr, (size)) -# define REGEX_REALLOCATE_STACK(source, osize, nsize) \ - r_re_alloc (&failure_stack_ptr, (nsize)) -# define REGEX_FREE_STACK(ptr) \ - r_alloc_free (&failure_stack_ptr) - -# else /* not using relocating allocator */ - -# ifdef REGEX_MALLOC - -# define REGEX_ALLOCATE_STACK malloc -# define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize) -# define REGEX_FREE_STACK free - -# else /* not REGEX_MALLOC */ - -# define REGEX_ALLOCATE_STACK alloca - -# define REGEX_REALLOCATE_STACK(source, osize, nsize) \ - REGEX_REALLOCATE (source, osize, nsize) -/* No need to explicitly free anything. */ -# define REGEX_FREE_STACK(arg) - -# endif /* not REGEX_MALLOC */ -# endif /* not using relocating allocator */ - - -/* True if `size1' is non-NULL and PTR is pointing anywhere inside - `string1' or just past its end. This works if PTR is NULL, which is - a good thing. */ -# define FIRST_STRING_P(ptr) \ - (size1 && string1 <= (ptr) && (ptr) <= string1 + size1) - -/* (Re)Allocate N items of type T using malloc, or fail. */ -# define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t))) -# define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t))) -# define RETALLOC_IF(addr, n, t) \ - if (addr) RETALLOC((addr), (n), t); else (addr) = TALLOC ((n), t) -# define REGEX_TALLOC(n, t) ((t *) REGEX_ALLOCATE ((n) * sizeof (t))) - -# define BYTEWIDTH 8 /* In bits. */ - -# define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) - -# undef MAX -# undef MIN -# define MAX(a, b) ((a) > (b) ? (a) : (b)) -# define MIN(a, b) ((a) < (b) ? (a) : (b)) - -typedef char boolean; -# define false 0 -# define true 1 - -static reg_errcode_t byte_regex_compile (const char *pattern, size_t size, - reg_syntax_t syntax, - struct re_pattern_buffer *bufp); - -static int byte_re_match_2_internal (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int pos, - struct re_registers *regs, - int stop); -static int byte_re_search_2 (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int startpos, int range, - struct re_registers *regs, int stop); -static int byte_re_compile_fastmap (struct re_pattern_buffer *bufp); - -#ifdef MBS_SUPPORT -static reg_errcode_t wcs_regex_compile (const char *pattern, size_t size, - reg_syntax_t syntax, - struct re_pattern_buffer *bufp); - - -static int wcs_re_match_2_internal (struct re_pattern_buffer *bufp, - const char *cstring1, int csize1, - const char *cstring2, int csize2, - int pos, - struct re_registers *regs, - int stop, - wchar_t *string1, int size1, - wchar_t *string2, int size2, - int *mbs_offset1, int *mbs_offset2); -static int wcs_re_search_2 (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int startpos, int range, - struct re_registers *regs, int stop); -static int wcs_re_compile_fastmap (struct re_pattern_buffer *bufp); +# include "../locale/localeinfo.h" #endif - -/* These are the command codes that appear in compiled regular - expressions. Some opcodes are followed by argument bytes. A - command code can specify any interpretation whatsoever for its - arguments. Zero bytes may appear in the compiled regular expression. */ - -typedef enum -{ - no_op = 0, - - /* Succeed right away--no more backtracking. */ - succeed, - - /* Followed by one byte giving n, then by n literal bytes. */ - exactn, - -# ifdef MBS_SUPPORT - /* Same as exactn, but contains binary data. */ - exactn_bin, -# endif - - /* Matches any (more or less) character. */ - anychar, - - /* Matches any one char belonging to specified set. First - following byte is number of bitmap bytes. Then come bytes - for a bitmap saying which chars are in. Bits in each byte - are ordered low-bit-first. A character is in the set if its - bit is 1. A character too large to have a bit in the map is - automatically not in the set. */ - /* ifdef MBS_SUPPORT, following element is length of character - classes, length of collating symbols, length of equivalence - classes, length of character ranges, and length of characters. - Next, character class element, collating symbols elements, - equivalence class elements, range elements, and character - elements follow. - See regex_compile function. */ - charset, - - /* Same parameters as charset, but match any character that is - not one of those specified. */ - charset_not, - - /* Start remembering the text that is matched, for storing in a - register. Followed by one byte with the register number, in - the range 0 to one less than the pattern buffer's re_nsub - field. Then followed by one byte with the number of groups - inner to this one. (This last has to be part of the - start_memory only because we need it in the on_failure_jump - of re_match_2.) */ - start_memory, - /* Stop remembering the text that is matched and store it in a - memory register. Followed by one byte with the register - number, in the range 0 to one less than `re_nsub' in the - pattern buffer, and one byte with the number of inner groups, - just like `start_memory'. (We need the number of inner - groups here because we don't have any easy way of finding the - corresponding start_memory when we're at a stop_memory.) */ - stop_memory, +/* On some systems, limits.h sets RE_DUP_MAX to a lower value than + GNU regex allows. Include it before , which correctly + #undefs RE_DUP_MAX and sets it to the right value. */ +#include - /* Match a duplicate of something remembered. Followed by one - byte containing the register number. */ - duplicate, +#include +#include "regex_internal.h" - /* Fail unless at beginning of line. */ - begline, +#include "regex_internal.c" +#include "regcomp.c" +#include "regexec.c" - /* Fail unless at end of line. */ - endline, - - /* Succeeds if at beginning of buffer (if emacs) or at beginning - of string to be matched (if not). */ - begbuf, - - /* Analogously, for end of buffer/string. */ - endbuf, - - /* Followed by two byte relative address to which to jump. */ - jump, - - /* Same as jump, but marks the end of an alternative. */ - jump_past_alt, - - /* Followed by two-byte relative address of place to resume at - in case of failure. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - on_failure_jump, - - /* Like on_failure_jump, but pushes a placeholder instead of the - current string position when executed. */ - on_failure_keep_string_jump, - - /* Throw away latest failure point and then jump to following - two-byte relative address. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - pop_failure_jump, - - /* Change to pop_failure_jump if know won't have to backtrack to - match; otherwise change to jump. This is used to jump - back to the beginning of a repeat. If what follows this jump - clearly won't match what the repeat does, such that we can be - sure that there is no use backtracking out of repetitions - already matched, then we change it to a pop_failure_jump. - Followed by two-byte address. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - maybe_pop_jump, - - /* Jump to following two-byte address, and push a dummy failure - point. This failure point will be thrown away if an attempt - is made to use it for a failure. A `+' construct makes this - before the first repeat. Also used as an intermediary kind - of jump when compiling an alternative. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - dummy_failure_jump, - - /* Push a dummy failure point and continue. Used at the end of - alternatives. */ - push_dummy_failure, - - /* Followed by two-byte relative address and two-byte number n. - After matching N times, jump to the address upon failure. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - succeed_n, - - /* Followed by two-byte relative address, and two-byte number n. - Jump to the address N times, then fail. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - jump_n, - - /* Set the following two-byte relative address to the - subsequent two-byte number. The address *includes* the two - bytes of number. */ - /* ifdef MBS_SUPPORT, the size of address is 1. */ - set_number_at, - - wordchar, /* Matches any word-constituent character. */ - notwordchar, /* Matches any char that is not a word-constituent. */ - - wordbeg, /* Succeeds if at word beginning. */ - wordend, /* Succeeds if at word end. */ - - wordbound, /* Succeeds if at a word boundary. */ - notwordbound /* Succeeds if not at a word boundary. */ - -# ifdef emacs - ,before_dot, /* Succeeds if before point. */ - at_dot, /* Succeeds if at point. */ - after_dot, /* Succeeds if after point. */ - - /* Matches any character whose syntax is specified. Followed by - a byte which contains a syntax code, e.g., Sword. */ - syntaxspec, - - /* Matches any character whose syntax is not that specified. */ - notsyntaxspec -# endif /* emacs */ -} re_opcode_t; -#endif /* not INSIDE_RECURSION */ - - -#ifdef BYTE -# define CHAR_T char -# define UCHAR_T unsigned char -# define COMPILED_BUFFER_VAR bufp->buffer -# define OFFSET_ADDRESS_SIZE 2 -# define PREFIX(name) byte_##name -# define ARG_PREFIX(name) name -# define PUT_CHAR(c) putchar (c) -#else -# ifdef WCHAR -# define CHAR_T wchar_t -# define UCHAR_T wchar_t -# define COMPILED_BUFFER_VAR wc_buffer -# define OFFSET_ADDRESS_SIZE 1 /* the size which STORE_NUMBER macro use */ -# define CHAR_CLASS_SIZE ((__alignof__(wctype_t)+sizeof(wctype_t))/sizeof(CHAR_T)+1) -# define PREFIX(name) wcs_##name -# define ARG_PREFIX(name) c##name -/* Should we use wide stream?? */ -# define PUT_CHAR(c) printf ("%C", c); -# define TRUE 1 -# define FALSE 0 -# else -# ifdef MBS_SUPPORT -# define WCHAR -# define INSIDE_RECURSION -# include "regex.c" -# undef INSIDE_RECURSION -# endif -# define BYTE -# define INSIDE_RECURSION -# include "regex.c" -# undef INSIDE_RECURSION +/* Binary backward compatibility. */ +#if _LIBC +# include +# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3) +link_warning (re_max_failures, "the 're_max_failures' variable is obsolete and will go away.") +int re_max_failures = 2000; # endif #endif - -#if USE_UNLOCKED_IO -# include "unlocked-io.h" -#endif - -#ifdef INSIDE_RECURSION -/* Common operations on the compiled pattern. */ - -/* Store NUMBER in two contiguous bytes starting at DESTINATION. */ -/* ifdef MBS_SUPPORT, we store NUMBER in 1 element. */ - -# ifdef WCHAR -# define STORE_NUMBER(destination, number) \ - do { \ - *(destination) = (UCHAR_T)(number); \ - } while (0) -# else /* BYTE */ -# define STORE_NUMBER(destination, number) \ - do { \ - (destination)[0] = (number) & 0377; \ - (destination)[1] = (number) >> 8; \ - } while (0) -# endif /* WCHAR */ - -/* Same as STORE_NUMBER, except increment DESTINATION to - the byte after where the number is stored. Therefore, DESTINATION - must be an lvalue. */ -/* ifdef MBS_SUPPORT, we store NUMBER in 1 element. */ - -# define STORE_NUMBER_AND_INCR(destination, number) \ - do { \ - STORE_NUMBER (destination, number); \ - (destination) += OFFSET_ADDRESS_SIZE; \ - } while (0) - -/* Put into DESTINATION a number stored in two contiguous bytes starting - at SOURCE. */ -/* ifdef MBS_SUPPORT, we store NUMBER in 1 element. */ - -# ifdef WCHAR -# define EXTRACT_NUMBER(destination, source) \ - do { \ - (destination) = *(source); \ - } while (0) -# else /* BYTE */ -# define EXTRACT_NUMBER(destination, source) \ - do { \ - (destination) = *(source) & 0377; \ - (destination) += (signed char) (*((source) + 1)) << 8; \ - } while (0) -# endif - -# ifdef DEBUG -static void -PREFIX(extract_number) (int *dest, UCHAR_T *source) -{ -# ifdef WCHAR - *dest = *source; -# else /* BYTE */ - signed char temp = source[1]; - *dest = *source & 0377; - *dest += temp << 8; -# endif -} - -# ifndef EXTRACT_MACROS /* To debug the macros. */ -# undef EXTRACT_NUMBER -# define EXTRACT_NUMBER(dest, src) PREFIX(extract_number) (&dest, src) -# endif /* not EXTRACT_MACROS */ - -# endif /* DEBUG */ - -/* Same as EXTRACT_NUMBER, except increment SOURCE to after the number. - SOURCE must be an lvalue. */ - -# define EXTRACT_NUMBER_AND_INCR(destination, source) \ - do { \ - EXTRACT_NUMBER (destination, source); \ - (source) += OFFSET_ADDRESS_SIZE; \ - } while (0) - -# ifdef DEBUG -static void -PREFIX(extract_number_and_incr) (int *destination, UCHAR_T **source) -{ - PREFIX(extract_number) (destination, *source); - *source += OFFSET_ADDRESS_SIZE; -} - -# ifndef EXTRACT_MACROS -# undef EXTRACT_NUMBER_AND_INCR -# define EXTRACT_NUMBER_AND_INCR(dest, src) \ - PREFIX(extract_number_and_incr) (&dest, &src) -# endif /* not EXTRACT_MACROS */ - -# endif /* DEBUG */ - - - -/* If DEBUG is defined, Regex prints many voluminous messages about what - it is doing (if the variable `debug' is nonzero). If linked with the - main program in `iregex.c', you can enter patterns and strings - interactively. And if linked with the main program in `main.c' and - the other test files, you can run the already-written tests. */ - -# ifdef DEBUG - -# ifndef DEFINED_ONCE - -/* We use standard I/O for debugging. */ -# include - -/* It is useful to test things that ``must'' be true when debugging. */ -# include - -static int debug; - -# define DEBUG_STATEMENT(e) e -# define DEBUG_PRINT1(x) if (debug) printf (x) -# define DEBUG_PRINT2(x1, x2) if (debug) printf (x1, x2) -# define DEBUG_PRINT3(x1, x2, x3) if (debug) printf (x1, x2, x3) -# define DEBUG_PRINT4(x1, x2, x3, x4) if (debug) printf (x1, x2, x3, x4) -# endif /* not DEFINED_ONCE */ - -# define DEBUG_PRINT_COMPILED_PATTERN(p, s, e) \ - if (debug) PREFIX(print_partial_compiled_pattern) (s, e) -# define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) \ - if (debug) PREFIX(print_double_string) (w, s1, sz1, s2, sz2) - - -/* Print the fastmap in human-readable form. */ - -# ifndef DEFINED_ONCE -void -print_fastmap (char *fastmap) -{ - unsigned was_a_range = 0; - unsigned i = 0; - - while (i < (1 << BYTEWIDTH)) - { - if (fastmap[i++]) - { - was_a_range = 0; - putchar (i - 1); - while (i < (1 << BYTEWIDTH) && fastmap[i]) - { - was_a_range = 1; - i++; - } - if (was_a_range) - { - printf ("-"); - putchar (i - 1); - } - } - } - putchar ('\n'); -} -# endif /* not DEFINED_ONCE */ - - -/* Print a compiled pattern string in human-readable form, starting at - the START pointer into it and ending just before the pointer END. */ - -void -PREFIX(print_partial_compiled_pattern) (UCHAR_T *start, UCHAR_T *end) -{ - int mcnt, mcnt2; - UCHAR_T *p1; - UCHAR_T *p = start; - UCHAR_T *pend = end; - - if (start == NULL) - { - printf ("(null)\n"); - return; - } - - /* Loop over pattern commands. */ - while (p < pend) - { -# ifdef _LIBC - printf ("%td:\t", p - start); -# else - printf ("%ld:\t", (long int) (p - start)); -# endif - - switch ((re_opcode_t) *p++) - { - case no_op: - printf ("/no_op"); - break; - - case exactn: - mcnt = *p++; - printf ("/exactn/%d", mcnt); - do - { - putchar ('/'); - PUT_CHAR (*p++); - } - while (--mcnt); - break; - -# ifdef MBS_SUPPORT - case exactn_bin: - mcnt = *p++; - printf ("/exactn_bin/%d", mcnt); - do - { - printf("/%lx", (long int) *p++); - } - while (--mcnt); - break; -# endif /* MBS_SUPPORT */ - - case start_memory: - mcnt = *p++; - printf ("/start_memory/%d/%ld", mcnt, (long int) *p++); - break; - - case stop_memory: - mcnt = *p++; - printf ("/stop_memory/%d/%ld", mcnt, (long int) *p++); - break; - - case duplicate: - printf ("/duplicate/%ld", (long int) *p++); - break; - - case anychar: - printf ("/anychar"); - break; - - case charset: - case charset_not: - { -# ifdef WCHAR - int i, length; - wchar_t *workp = p; - printf ("/charset [%s", - (re_opcode_t) *(workp - 1) == charset_not ? "^" : ""); - p += 5; - length = *workp++; /* the length of char_classes */ - for (i=0 ; ibuffer; - - PREFIX(print_partial_compiled_pattern) (buffer, buffer - + bufp->used / sizeof(UCHAR_T)); - printf ("%ld bytes used/%ld bytes allocated.\n", - bufp->used, bufp->allocated); - - if (bufp->fastmap_accurate && bufp->fastmap) - { - printf ("fastmap: "); - print_fastmap (bufp->fastmap); - } - -# ifdef _LIBC - printf ("re_nsub: %Zd\t", bufp->re_nsub); -# else - printf ("re_nsub: %ld\t", (long int) bufp->re_nsub); -# endif - printf ("regs_alloc: %d\t", bufp->regs_allocated); - printf ("can_be_null: %d\t", bufp->can_be_null); - printf ("newline_anchor: %d\n", bufp->newline_anchor); - printf ("no_sub: %d\t", bufp->no_sub); - printf ("not_bol: %d\t", bufp->not_bol); - printf ("not_eol: %d\t", bufp->not_eol); - printf ("syntax: %lx\n", bufp->syntax); - /* Perhaps we should print the translate table? */ -} - - -void -PREFIX(print_double_string) (const CHAR_T *where, - const CHAR_T *string1, - const CHAR_T *string2, - int size1, - int size2) -{ - int this_char; - - if (where == NULL) - printf ("(null)"); - else - { - int cnt; - - if (FIRST_STRING_P (where)) - { - for (this_char = where - string1; this_char < size1; this_char++) - PUT_CHAR (string1[this_char]); - - where = string2; - } - - cnt = 0; - for (this_char = where - string2; this_char < size2; this_char++) - { - PUT_CHAR (string2[this_char]); - if (++cnt > 100) - { - fputs ("...", stdout); - break; - } - } - } -} - -# ifndef DEFINED_ONCE -void -printchar (c) - int c; -{ - putc (c, stderr); -} -# endif - -# else /* not DEBUG */ - -# ifndef DEFINED_ONCE -# undef assert -# define assert(e) - -# define DEBUG_STATEMENT(e) -# define DEBUG_PRINT1(x) -# define DEBUG_PRINT2(x1, x2) -# define DEBUG_PRINT3(x1, x2, x3) -# define DEBUG_PRINT4(x1, x2, x3, x4) -# endif /* not DEFINED_ONCE */ -# define DEBUG_PRINT_COMPILED_PATTERN(p, s, e) -# define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) - -# endif /* not DEBUG */ - - - -# ifdef WCHAR -/* This convert a multibyte string to a wide character string. - And write their correspondances to offset_buffer(see below) - and write whether each wchar_t is binary data to is_binary. - This assume invalid multibyte sequences as binary data. - We assume offset_buffer and is_binary is already allocated - enough space. */ - -static size_t -convert_mbs_to_wcs (CHAR_T *dest, - const unsigned char* src, - - /* The length of multibyte string. */ - size_t len, - - /* Correspondences between src(char string) and - dest(wchar_t string) for optimization. E.g.: - src = "xxxyzz" - dest = {'X', 'Y', 'Z'} - (each "xxx", "y" and "zz" represent one - multibyte character corresponding to 'X', - 'Y' and 'Z'.) - offset_buffer = {0, 0+3("xxx"), 0+3+1("y"), - 0+3+1+2("zz")} - = {0, 3, 4, 6} */ - int *offset_buffer, - - char *is_binary) -{ - wchar_t *pdest = dest; - const unsigned char *psrc = src; - size_t wc_count = 0; - - mbstate_t mbs; - int i, consumed; - size_t mb_remain = len; - size_t mb_count = 0; - - /* Initialize the conversion state. */ - memset (&mbs, 0, sizeof (mbstate_t)); - - offset_buffer[0] = 0; - for( ; mb_remain > 0 ; ++wc_count, ++pdest, mb_remain -= consumed, - psrc += consumed) - { - consumed = mbrtowc (pdest, psrc, mb_remain, &mbs); - - if (consumed <= 0) - /* failed to convert. maybe src contains binary data. - So we consume 1 byte manualy. */ - { - *pdest = *psrc; - consumed = 1; - is_binary[wc_count] = TRUE; - } - else - is_binary[wc_count] = FALSE; - /* In sjis encoding, we use yen sign as escape character in - place of reverse solidus. So we convert 0x5c(yen sign in - sjis) to not 0xa5(yen sign in UCS2) but 0x5c(reverse - solidus in UCS2). */ - if (consumed == 1 && (int) *psrc == 0x5c && (int) *pdest == 0xa5) - *pdest = (wchar_t) *psrc; - - offset_buffer[wc_count + 1] = mb_count += consumed; - } - - /* Fill remain of the buffer with sentinel. */ - for (i = wc_count + 1 ; i <= len ; i++) - offset_buffer[i] = mb_count + 1; - - return wc_count; -} - -# endif /* WCHAR */ - -#else /* not INSIDE_RECURSION */ - -/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can - also be assigned to arbitrarily: each pattern buffer stores its own - syntax, so it can be changed between regex compilations. */ -/* This has no initializer because initialized variables in Emacs - become read-only after dumping. */ -reg_syntax_t re_syntax_options; - - -/* Specify the precise syntax of regexps for compilation. This provides - for compatibility for various utilities which historically have - different, incompatible syntaxes. - - The argument SYNTAX is a bit mask comprised of the various bits - defined in regex.h. We return the old syntax. */ - -reg_syntax_t -re_set_syntax (reg_syntax_t syntax) -{ - reg_syntax_t ret = re_syntax_options; - - re_syntax_options = syntax; -# ifdef DEBUG - if (syntax & RE_DEBUG) - debug = 1; - else if (debug) /* was on but now is not */ - debug = 0; -# endif /* DEBUG */ - return ret; -} -# ifdef _LIBC -weak_alias (__re_set_syntax, re_set_syntax) -# endif - -/* This table gives an error message for each of the error codes listed - in regex.h. Obviously the order here has to be same as there. - POSIX doesn't require that we do anything for REG_NOERROR, - but why not be nice? */ - -static const char re_error_msgid[] = - { -# define REG_NOERROR_IDX 0 - gettext_noop ("Success") /* REG_NOERROR */ - "\0" -# define REG_NOMATCH_IDX (REG_NOERROR_IDX + sizeof "Success") - gettext_noop ("No match") /* REG_NOMATCH */ - "\0" -# define REG_BADPAT_IDX (REG_NOMATCH_IDX + sizeof "No match") - gettext_noop ("Invalid regular expression") /* REG_BADPAT */ - "\0" -# define REG_ECOLLATE_IDX (REG_BADPAT_IDX + sizeof "Invalid regular expression") - gettext_noop ("Invalid collation character") /* REG_ECOLLATE */ - "\0" -# define REG_ECTYPE_IDX (REG_ECOLLATE_IDX + sizeof "Invalid collation character") - gettext_noop ("Invalid character class name") /* REG_ECTYPE */ - "\0" -# define REG_EESCAPE_IDX (REG_ECTYPE_IDX + sizeof "Invalid character class name") - gettext_noop ("Trailing backslash") /* REG_EESCAPE */ - "\0" -# define REG_ESUBREG_IDX (REG_EESCAPE_IDX + sizeof "Trailing backslash") - gettext_noop ("Invalid back reference") /* REG_ESUBREG */ - "\0" -# define REG_EBRACK_IDX (REG_ESUBREG_IDX + sizeof "Invalid back reference") - gettext_noop ("Unmatched [ or [^") /* REG_EBRACK */ - "\0" -# define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [ or [^") - gettext_noop ("Unmatched ( or \\(") /* REG_EPAREN */ - "\0" -# define REG_EBRACE_IDX (REG_EPAREN_IDX + sizeof "Unmatched ( or \\(") - gettext_noop ("Unmatched \\{") /* REG_EBRACE */ - "\0" -# define REG_BADBR_IDX (REG_EBRACE_IDX + sizeof "Unmatched \\{") - gettext_noop ("Invalid content of \\{\\}") /* REG_BADBR */ - "\0" -# define REG_ERANGE_IDX (REG_BADBR_IDX + sizeof "Invalid content of \\{\\}") - gettext_noop ("Invalid range end") /* REG_ERANGE */ - "\0" -# define REG_ESPACE_IDX (REG_ERANGE_IDX + sizeof "Invalid range end") - gettext_noop ("Memory exhausted") /* REG_ESPACE */ - "\0" -# define REG_BADRPT_IDX (REG_ESPACE_IDX + sizeof "Memory exhausted") - gettext_noop ("Invalid preceding regular expression") /* REG_BADRPT */ - "\0" -# define REG_EEND_IDX (REG_BADRPT_IDX + sizeof "Invalid preceding regular expression") - gettext_noop ("Premature end of regular expression") /* REG_EEND */ - "\0" -# define REG_ESIZE_IDX (REG_EEND_IDX + sizeof "Premature end of regular expression") - gettext_noop ("Regular expression too big") /* REG_ESIZE */ - "\0" -# define REG_ERPAREN_IDX (REG_ESIZE_IDX + sizeof "Regular expression too big") - gettext_noop ("Unmatched ) or \\)") /* REG_ERPAREN */ - }; - -static const size_t re_error_msgid_idx[] = - { - REG_NOERROR_IDX, - REG_NOMATCH_IDX, - REG_BADPAT_IDX, - REG_ECOLLATE_IDX, - REG_ECTYPE_IDX, - REG_EESCAPE_IDX, - REG_ESUBREG_IDX, - REG_EBRACK_IDX, - REG_EPAREN_IDX, - REG_EBRACE_IDX, - REG_BADBR_IDX, - REG_ERANGE_IDX, - REG_ESPACE_IDX, - REG_BADRPT_IDX, - REG_EEND_IDX, - REG_ESIZE_IDX, - REG_ERPAREN_IDX - }; - -#endif /* INSIDE_RECURSION */ - -#ifndef DEFINED_ONCE -/* Avoiding alloca during matching, to placate r_alloc. */ - -/* Define MATCH_MAY_ALLOCATE unless we need to make sure that the - searching and matching functions should not call alloca. On some - systems, alloca is implemented in terms of malloc, and if we're - using the relocating allocator routines, then malloc could cause a - relocation, which might (if the strings being searched are in the - ralloc heap) shift the data out from underneath the regexp - routines. - - Here's another reason to avoid allocation: Emacs - processes input from X in a signal handler; processing X input may - call malloc; if input arrives while a matching routine is calling - malloc, then we're scrod. But Emacs can't just block input while - calling matching routines; then we don't notice interrupts when - they come in. So, Emacs blocks input around all regexp calls - except the matching calls, which it leaves unprotected, in the - faith that they will not malloc. */ - -/* Normally, this is fine. */ -# define MATCH_MAY_ALLOCATE - -/* When using GNU C, we are not REALLY using the C alloca, no matter - what config.h may say. So don't take precautions for it. */ -# ifdef __GNUC__ -# undef C_ALLOCA -# endif - -/* The match routines may not allocate if (1) they would do it with malloc - and (2) it's not safe for them to use malloc. - Note that if REL_ALLOC is defined, matching would not use malloc for the - failure stack, but we would still use it for the register vectors; - so REL_ALLOC should not affect this. */ -# if (defined C_ALLOCA || defined REGEX_MALLOC) && defined emacs -# undef MATCH_MAY_ALLOCATE -# endif -#endif /* not DEFINED_ONCE */ - -#ifdef INSIDE_RECURSION -/* Failure stack declarations and macros; both re_compile_fastmap and - re_match_2 use a failure stack. These have to be macros because of - REGEX_ALLOCATE_STACK. */ - - -/* Number of failure points for which to initially allocate space - when matching. If this number is exceeded, we allocate more - space, so it is not a hard limit. */ -# ifndef INIT_FAILURE_ALLOC -# define INIT_FAILURE_ALLOC 5 -# endif - -/* Roughly the maximum number of failure points on the stack. Would be - exactly that if always used MAX_FAILURE_ITEMS items each time we failed. - This is a variable only so users of regex can assign to it; we never - change it ourselves. */ - -# ifdef INT_IS_16BIT - -# ifndef DEFINED_ONCE -# if defined MATCH_MAY_ALLOCATE -/* 4400 was enough to cause a crash on Alpha OSF/1, - whose default stack limit is 2mb. */ -long int re_max_failures = 4000; -# else -long int re_max_failures = 2000; -# endif -# endif - -union PREFIX(fail_stack_elt) -{ - UCHAR_T *pointer; - long int integer; -}; - -typedef union PREFIX(fail_stack_elt) PREFIX(fail_stack_elt_t); - -typedef struct -{ - PREFIX(fail_stack_elt_t) *stack; - unsigned long int size; - unsigned long int avail; /* Offset of next open position. */ -} PREFIX(fail_stack_type); - -# else /* not INT_IS_16BIT */ - -# ifndef DEFINED_ONCE -# if defined MATCH_MAY_ALLOCATE -/* 4400 was enough to cause a crash on Alpha OSF/1, - whose default stack limit is 2mb. */ -int re_max_failures = 4000; -# else -int re_max_failures = 2000; -# endif -# endif - -union PREFIX(fail_stack_elt) -{ - UCHAR_T *pointer; - int integer; -}; - -typedef union PREFIX(fail_stack_elt) PREFIX(fail_stack_elt_t); - -typedef struct -{ - PREFIX(fail_stack_elt_t) *stack; - unsigned size; - unsigned avail; /* Offset of next open position. */ -} PREFIX(fail_stack_type); - -# endif /* INT_IS_16BIT */ - -# ifndef DEFINED_ONCE -# define FAIL_STACK_EMPTY() (fail_stack.avail == 0) -# define FAIL_STACK_PTR_EMPTY() (fail_stack_ptr->avail == 0) -# define FAIL_STACK_FULL() (fail_stack.avail == fail_stack.size) -# endif - - -/* Define macros to initialize and free the failure stack. - Do `return -2' if the alloc fails. */ - -# ifdef MATCH_MAY_ALLOCATE -# define INIT_FAIL_STACK() \ - do { \ - fail_stack.stack = (PREFIX(fail_stack_elt_t) *) \ - REGEX_ALLOCATE_STACK (INIT_FAILURE_ALLOC * sizeof (PREFIX(fail_stack_elt_t))); \ - \ - if (fail_stack.stack == NULL) \ - return -2; \ - \ - fail_stack.size = INIT_FAILURE_ALLOC; \ - fail_stack.avail = 0; \ - } while (0) - -# define RESET_FAIL_STACK() REGEX_FREE_STACK (fail_stack.stack) -# else -# define INIT_FAIL_STACK() \ - do { \ - fail_stack.avail = 0; \ - } while (0) - -# define RESET_FAIL_STACK() -# endif - - -/* Double the size of FAIL_STACK, up to approximately `re_max_failures' items. - - Return 1 if succeeds, and 0 if either ran out of memory - allocating space for it or it was already too large. - - REGEX_REALLOCATE_STACK requires `destination' be declared. */ - -# define DOUBLE_FAIL_STACK(fail_stack) \ - ((fail_stack).size > (unsigned) (re_max_failures * MAX_FAILURE_ITEMS) \ - ? 0 \ - : ((fail_stack).stack = (PREFIX(fail_stack_elt_t) *) \ - REGEX_REALLOCATE_STACK ((fail_stack).stack, \ - (fail_stack).size * sizeof (PREFIX(fail_stack_elt_t)), \ - ((fail_stack).size << 1) * sizeof (PREFIX(fail_stack_elt_t))),\ - \ - (fail_stack).stack == NULL \ - ? 0 \ - : ((fail_stack).size <<= 1, \ - 1))) - - -/* Push pointer POINTER on FAIL_STACK. - Return 1 if was able to do so and 0 if ran out of memory allocating - space to do so. */ -# define PUSH_PATTERN_OP(POINTER, FAIL_STACK) \ - ((FAIL_STACK_FULL () \ - && !DOUBLE_FAIL_STACK (FAIL_STACK)) \ - ? 0 \ - : ((FAIL_STACK).stack[(FAIL_STACK).avail++].pointer = POINTER, \ - 1)) - -/* Push a pointer value onto the failure stack. - Assumes the variable `fail_stack'. Probably should only - be called from within `PUSH_FAILURE_POINT'. */ -# define PUSH_FAILURE_POINTER(item) \ - fail_stack.stack[fail_stack.avail++].pointer = (UCHAR_T *) (item) - -/* This pushes an integer-valued item onto the failure stack. - Assumes the variable `fail_stack'. Probably should only - be called from within `PUSH_FAILURE_POINT'. */ -# define PUSH_FAILURE_INT(item) \ - fail_stack.stack[fail_stack.avail++].integer = (item) - -/* Push a fail_stack_elt_t value onto the failure stack. - Assumes the variable `fail_stack'. Probably should only - be called from within `PUSH_FAILURE_POINT'. */ -# define PUSH_FAILURE_ELT(item) \ - fail_stack.stack[fail_stack.avail++] = (item) - -/* These three POP... operations complement the three PUSH... operations. - All assume that `fail_stack' is nonempty. */ -# define POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer -# define POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer -# define POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail] - -/* Used to omit pushing failure point id's when we're not debugging. */ -# ifdef DEBUG -# define DEBUG_PUSH PUSH_FAILURE_INT -# define DEBUG_POP(item_addr) *(item_addr) = POP_FAILURE_INT () -# else -# define DEBUG_PUSH(item) -# define DEBUG_POP(item_addr) -# endif - - -/* Push the information about the state we will need - if we ever fail back to it. - - Requires variables fail_stack, regstart, regend, reg_info, and - num_regs_pushed be declared. DOUBLE_FAIL_STACK requires `destination' - be declared. - - Does `return FAILURE_CODE' if runs out of memory. */ - -# define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \ - do { \ - char *destination; \ - /* Must be int, so when we don't save any registers, the arithmetic \ - of 0 + -1 isn't done as unsigned. */ \ - /* Can't be int, since there is not a shred of a guarantee that int \ - is wide enough to hold a value of something to which pointer can \ - be assigned */ \ - active_reg_t this_reg; \ - \ - DEBUG_STATEMENT (failure_id++); \ - DEBUG_STATEMENT (nfailure_points_pushed++); \ - DEBUG_PRINT2 ("\nPUSH_FAILURE_POINT #%u:\n", failure_id); \ - DEBUG_PRINT2 (" Before push, next avail: %d\n", (fail_stack).avail);\ - DEBUG_PRINT2 (" size: %d\n", (fail_stack).size);\ - \ - DEBUG_PRINT2 (" slots needed: %ld\n", NUM_FAILURE_ITEMS); \ - DEBUG_PRINT2 (" available: %d\n", REMAINING_AVAIL_SLOTS); \ - \ - /* Ensure we have enough space allocated for what we will push. */ \ - while (REMAINING_AVAIL_SLOTS < NUM_FAILURE_ITEMS) \ - { \ - if (!DOUBLE_FAIL_STACK (fail_stack)) \ - return failure_code; \ - \ - DEBUG_PRINT2 ("\n Doubled stack; size now: %d\n", \ - (fail_stack).size); \ - DEBUG_PRINT2 (" slots available: %d\n", REMAINING_AVAIL_SLOTS);\ - } \ - \ - /* Push the info, starting with the registers. */ \ - DEBUG_PRINT1 ("\n"); \ - \ - if (1) \ - for (this_reg = lowest_active_reg; this_reg <= highest_active_reg; \ - this_reg++) \ - { \ - DEBUG_PRINT2 (" Pushing reg: %lu\n", this_reg); \ - DEBUG_STATEMENT (num_regs_pushed++); \ - \ - DEBUG_PRINT2 (" start: %p\n", regstart[this_reg]); \ - PUSH_FAILURE_POINTER (regstart[this_reg]); \ - \ - DEBUG_PRINT2 (" end: %p\n", regend[this_reg]); \ - PUSH_FAILURE_POINTER (regend[this_reg]); \ - \ - DEBUG_PRINT2 (" info: %p\n ", \ - reg_info[this_reg].word.pointer); \ - DEBUG_PRINT2 (" match_null=%d", \ - REG_MATCH_NULL_STRING_P (reg_info[this_reg])); \ - DEBUG_PRINT2 (" active=%d", IS_ACTIVE (reg_info[this_reg])); \ - DEBUG_PRINT2 (" matched_something=%d", \ - MATCHED_SOMETHING (reg_info[this_reg])); \ - DEBUG_PRINT2 (" ever_matched=%d", \ - EVER_MATCHED_SOMETHING (reg_info[this_reg])); \ - DEBUG_PRINT1 ("\n"); \ - PUSH_FAILURE_ELT (reg_info[this_reg].word); \ - } \ - \ - DEBUG_PRINT2 (" Pushing low active reg: %ld\n", lowest_active_reg);\ - PUSH_FAILURE_INT (lowest_active_reg); \ - \ - DEBUG_PRINT2 (" Pushing high active reg: %ld\n", highest_active_reg);\ - PUSH_FAILURE_INT (highest_active_reg); \ - \ - DEBUG_PRINT2 (" Pushing pattern %p:\n", pattern_place); \ - DEBUG_PRINT_COMPILED_PATTERN (bufp, pattern_place, pend); \ - PUSH_FAILURE_POINTER (pattern_place); \ - \ - DEBUG_PRINT2 (" Pushing string %p: `", string_place); \ - DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2, \ - size2); \ - DEBUG_PRINT1 ("'\n"); \ - PUSH_FAILURE_POINTER (string_place); \ - \ - DEBUG_PRINT2 (" Pushing failure id: %u\n", failure_id); \ - DEBUG_PUSH (failure_id); \ - } while (0) - -# ifndef DEFINED_ONCE -/* This is the number of items that are pushed and popped on the stack - for each register. */ -# define NUM_REG_ITEMS 3 - -/* Individual items aside from the registers. */ -# ifdef DEBUG -# define NUM_NONREG_ITEMS 5 /* Includes failure point id. */ -# else -# define NUM_NONREG_ITEMS 4 -# endif - -/* We push at most this many items on the stack. */ -/* We used to use (num_regs - 1), which is the number of registers - this regexp will save; but that was changed to 5 - to avoid stack overflow for a regexp with lots of parens. */ -# define MAX_FAILURE_ITEMS (5 * NUM_REG_ITEMS + NUM_NONREG_ITEMS) - -/* We actually push this many items. */ -# define NUM_FAILURE_ITEMS \ - (((0 \ - ? 0 : highest_active_reg - lowest_active_reg + 1) \ - * NUM_REG_ITEMS) \ - + NUM_NONREG_ITEMS) - -/* How many items can still be added to the stack without overflowing it. */ -# define REMAINING_AVAIL_SLOTS ((fail_stack).size - (fail_stack).avail) -# endif /* not DEFINED_ONCE */ - - -/* Pops what PUSH_FAIL_STACK pushes. - - We restore into the parameters, all of which should be lvalues: - STR -- the saved data position. - PAT -- the saved pattern position. - LOW_REG, HIGH_REG -- the highest and lowest active registers. - REGSTART, REGEND -- arrays of string positions. - REG_INFO -- array of information about each subexpression. - - Also assumes the variables `fail_stack' and (if debugging), `bufp', - `pend', `string1', `size1', `string2', and `size2'. */ -# define POP_FAILURE_POINT(str, pat, low_reg, high_reg, regstart, regend, reg_info)\ -{ \ - DEBUG_STATEMENT (unsigned failure_id;) \ - active_reg_t this_reg; \ - const UCHAR_T *string_temp; \ - \ - assert (!FAIL_STACK_EMPTY ()); \ - \ - /* Remove failure points and point to how many regs pushed. */ \ - DEBUG_PRINT1 ("POP_FAILURE_POINT:\n"); \ - DEBUG_PRINT2 (" Before pop, next avail: %d\n", fail_stack.avail); \ - DEBUG_PRINT2 (" size: %d\n", fail_stack.size); \ - \ - assert (fail_stack.avail >= NUM_NONREG_ITEMS); \ - \ - DEBUG_POP (&failure_id); \ - DEBUG_PRINT2 (" Popping failure id: %u\n", failure_id); \ - \ - /* If the saved string location is NULL, it came from an \ - on_failure_keep_string_jump opcode, and we want to throw away the \ - saved NULL, thus retaining our current position in the string. */ \ - string_temp = POP_FAILURE_POINTER (); \ - if (string_temp != NULL) \ - str = (const CHAR_T *) string_temp; \ - \ - DEBUG_PRINT2 (" Popping string %p: `", str); \ - DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2); \ - DEBUG_PRINT1 ("'\n"); \ - \ - pat = (UCHAR_T *) POP_FAILURE_POINTER (); \ - DEBUG_PRINT2 (" Popping pattern %p:\n", pat); \ - DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend); \ - \ - /* Restore register info. */ \ - high_reg = (active_reg_t) POP_FAILURE_INT (); \ - DEBUG_PRINT2 (" Popping high active reg: %ld\n", high_reg); \ - \ - low_reg = (active_reg_t) POP_FAILURE_INT (); \ - DEBUG_PRINT2 (" Popping low active reg: %ld\n", low_reg); \ - \ - if (1) \ - for (this_reg = high_reg; this_reg >= low_reg; this_reg--) \ - { \ - DEBUG_PRINT2 (" Popping reg: %ld\n", this_reg); \ - \ - reg_info[this_reg].word = POP_FAILURE_ELT (); \ - DEBUG_PRINT2 (" info: %p\n", \ - reg_info[this_reg].word.pointer); \ - \ - regend[this_reg] = (const CHAR_T *) POP_FAILURE_POINTER (); \ - DEBUG_PRINT2 (" end: %p\n", regend[this_reg]); \ - \ - regstart[this_reg] = (const CHAR_T *) POP_FAILURE_POINTER (); \ - DEBUG_PRINT2 (" start: %p\n", regstart[this_reg]); \ - } \ - else \ - { \ - for (this_reg = highest_active_reg; this_reg > high_reg; this_reg--) \ - { \ - reg_info[this_reg].word.integer = 0; \ - regend[this_reg] = 0; \ - regstart[this_reg] = 0; \ - } \ - highest_active_reg = high_reg; \ - } \ - \ - set_regs_matched_done = 0; \ - DEBUG_STATEMENT (nfailure_points_popped++); \ -} /* POP_FAILURE_POINT */ - -/* Structure for per-register (a.k.a. per-group) information. - Other register information, such as the - starting and ending positions (which are addresses), and the list of - inner groups (which is a bits list) are maintained in separate - variables. - - We are making a (strictly speaking) nonportable assumption here: that - the compiler will pack our bit fields into something that fits into - the type of `word', i.e., is something that fits into one item on the - failure stack. */ - - -/* Declarations and macros for re_match_2. */ - -typedef union -{ - PREFIX(fail_stack_elt_t) word; - struct - { - /* This field is one if this group can match the empty string, - zero if not. If not yet determined, `MATCH_NULL_UNSET_VALUE'. */ -# define MATCH_NULL_UNSET_VALUE 3 - unsigned match_null_string_p : 2; - unsigned is_active : 1; - unsigned matched_something : 1; - unsigned ever_matched_something : 1; - } bits; -} PREFIX(register_info_type); - -# ifndef DEFINED_ONCE -# define REG_MATCH_NULL_STRING_P(R) ((R).bits.match_null_string_p) -# define IS_ACTIVE(R) ((R).bits.is_active) -# define MATCHED_SOMETHING(R) ((R).bits.matched_something) -# define EVER_MATCHED_SOMETHING(R) ((R).bits.ever_matched_something) - - -/* Call this when have matched a real character; it sets `matched' flags - for the subexpressions which we are currently inside. Also records - that those subexprs have matched. */ -# define SET_REGS_MATCHED() \ - do \ - { \ - if (!set_regs_matched_done) \ - { \ - active_reg_t r; \ - set_regs_matched_done = 1; \ - for (r = lowest_active_reg; r <= highest_active_reg; r++) \ - { \ - MATCHED_SOMETHING (reg_info[r]) \ - = EVER_MATCHED_SOMETHING (reg_info[r]) \ - = 1; \ - } \ - } \ - } \ - while (0) -# endif /* not DEFINED_ONCE */ - -/* Registers are set to a sentinel when they haven't yet matched. */ -static CHAR_T PREFIX(reg_unset_dummy); -# define REG_UNSET_VALUE (&PREFIX(reg_unset_dummy)) -# define REG_UNSET(e) ((e) == REG_UNSET_VALUE) - -/* Subroutine declarations and macros for regex_compile. */ -static void PREFIX(store_op1) (re_opcode_t op, UCHAR_T *loc, int arg); -static void PREFIX(store_op2) (re_opcode_t op, UCHAR_T *loc, - int arg1, int arg2); -static void PREFIX(insert_op1) (re_opcode_t op, UCHAR_T *loc, - int arg, UCHAR_T *end); -static void PREFIX(insert_op2) (re_opcode_t op, UCHAR_T *loc, - int arg1, int arg2, UCHAR_T *end); -static boolean PREFIX(at_begline_loc_p) (const CHAR_T *pattern, - const CHAR_T *p, - reg_syntax_t syntax); -static boolean PREFIX(at_endline_loc_p) (const CHAR_T *p, - const CHAR_T *pend, - reg_syntax_t syntax); -# ifdef WCHAR -static reg_errcode_t wcs_compile_range (CHAR_T range_start, - const CHAR_T **p_ptr, - const CHAR_T *pend, - char *translate, - reg_syntax_t syntax, - UCHAR_T *b, - CHAR_T *char_set); -static void insert_space (int num, CHAR_T *loc, CHAR_T *end); -# else /* BYTE */ -static reg_errcode_t byte_compile_range (unsigned int range_start, - const char **p_ptr, - const char *pend, - char *translate, - reg_syntax_t syntax, - unsigned char *b); -# endif /* WCHAR */ - -/* Fetch the next character in the uncompiled pattern---translating it - if necessary. Also cast from a signed character in the constant - string passed to us by the user to an unsigned char that we can use - as an array index (in, e.g., `translate'). */ -/* ifdef MBS_SUPPORT, we translate only if character <= 0xff, - because it is impossible to allocate 4GB array for some encodings - which have 4 byte character_set like UCS4. */ -# ifndef PATFETCH -# ifdef WCHAR -# define PATFETCH(c) \ - do {if (p == pend) return REG_EEND; \ - c = (UCHAR_T) *p++; \ - if (translate && (c <= 0xff)) c = (UCHAR_T) translate[c]; \ - } while (0) -# else /* BYTE */ -# define PATFETCH(c) \ - do {if (p == pend) return REG_EEND; \ - c = (unsigned char) *p++; \ - if (translate) c = (unsigned char) translate[c]; \ - } while (0) -# endif /* WCHAR */ -# endif - -/* Fetch the next character in the uncompiled pattern, with no - translation. */ -# define PATFETCH_RAW(c) \ - do {if (p == pend) return REG_EEND; \ - c = (UCHAR_T) *p++; \ - } while (0) - -/* Go backwards one character in the pattern. */ -# define PATUNFETCH p-- - - -/* If `translate' is non-null, return translate[D], else just D. We - cast the subscript to translate because some data is declared as - `char *', to avoid warnings when a string constant is passed. But - when we use a character as a subscript we must make it unsigned. */ -/* ifdef MBS_SUPPORT, we translate only if character <= 0xff, - because it is impossible to allocate 4GB array for some encodings - which have 4 byte character_set like UCS4. */ - -# ifndef TRANSLATE -# ifdef WCHAR -# define TRANSLATE(d) \ - ((translate && ((UCHAR_T) (d)) <= 0xff) \ - ? (char) translate[(unsigned char) (d)] : (d)) -# else /* BYTE */ -# define TRANSLATE(d) \ - (translate ? (char) translate[(unsigned char) (d)] : (d)) -# endif /* WCHAR */ -# endif - - -/* Macros for outputting the compiled pattern into `buffer'. */ - -/* If the buffer isn't allocated when it comes in, use this. */ -# define INIT_BUF_SIZE (32 * sizeof(UCHAR_T)) - -/* Make sure we have at least N more bytes of space in buffer. */ -# ifdef WCHAR -# define GET_BUFFER_SPACE(n) \ - while (((unsigned long)b - (unsigned long)COMPILED_BUFFER_VAR \ - + (n)*sizeof(CHAR_T)) > bufp->allocated) \ - EXTEND_BUFFER () -# else /* BYTE */ -# define GET_BUFFER_SPACE(n) \ - while ((unsigned long) (b - bufp->buffer + (n)) > bufp->allocated) \ - EXTEND_BUFFER () -# endif /* WCHAR */ - -/* Make sure we have one more byte of buffer space and then add C to it. */ -# define BUF_PUSH(c) \ - do { \ - GET_BUFFER_SPACE (1); \ - *b++ = (UCHAR_T) (c); \ - } while (0) - - -/* Ensure we have two more bytes of buffer space and then append C1 and C2. */ -# define BUF_PUSH_2(c1, c2) \ - do { \ - GET_BUFFER_SPACE (2); \ - *b++ = (UCHAR_T) (c1); \ - *b++ = (UCHAR_T) (c2); \ - } while (0) - - -/* As with BUF_PUSH_2, except for three bytes. */ -# define BUF_PUSH_3(c1, c2, c3) \ - do { \ - GET_BUFFER_SPACE (3); \ - *b++ = (UCHAR_T) (c1); \ - *b++ = (UCHAR_T) (c2); \ - *b++ = (UCHAR_T) (c3); \ - } while (0) - -/* Store a jump with opcode OP at LOC to location TO. We store a - relative address offset by the three bytes the jump itself occupies. */ -# define STORE_JUMP(op, loc, to) \ - PREFIX(store_op1) (op, loc, (int) ((to) - (loc) - (1 + OFFSET_ADDRESS_SIZE))) - -/* Likewise, for a two-argument jump. */ -# define STORE_JUMP2(op, loc, to, arg) \ - PREFIX(store_op2) (op, loc, (int) ((to) - (loc) - (1 + OFFSET_ADDRESS_SIZE)), arg) - -/* Like `STORE_JUMP', but for inserting. Assume `b' is the buffer end. */ -# define INSERT_JUMP(op, loc, to) \ - PREFIX(insert_op1) (op, loc, (int) ((to) - (loc) - (1 + OFFSET_ADDRESS_SIZE)), b) - -/* Like `STORE_JUMP2', but for inserting. Assume `b' is the buffer end. */ -# define INSERT_JUMP2(op, loc, to, arg) \ - PREFIX(insert_op2) (op, loc, (int) ((to) - (loc) - (1 + OFFSET_ADDRESS_SIZE)),\ - arg, b) - -/* This is not an arbitrary limit: the arguments which represent offsets - into the pattern are two bytes long. So if 2^16 bytes turns out to - be too small, many things would have to change. */ -/* Any other compiler which, like MSC, has allocation limit below 2^16 - bytes will have to use approach similar to what was done below for - MSC and drop MAX_BUF_SIZE a bit. Otherwise you may end up - reallocating to 0 bytes. Such thing is not going to work too well. - You have been warned!! */ -# ifndef DEFINED_ONCE -# if defined _MSC_VER && !defined WIN32 -/* Microsoft C 16-bit versions limit malloc to approx 65512 bytes. - The REALLOC define eliminates a flurry of conversion warnings, - but is not required. */ -# define MAX_BUF_SIZE 65500L -# define REALLOC(p,s) realloc ((p), (size_t) (s)) -# else -# define MAX_BUF_SIZE (1L << 16) -# define REALLOC(p,s) realloc ((p), (s)) -# endif - -/* Extend the buffer by twice its current size via realloc and - reset the pointers that pointed into the old block to point to the - correct places in the new one. If extending the buffer results in it - being larger than MAX_BUF_SIZE, then flag memory exhausted. */ -# if __BOUNDED_POINTERS__ -# define SET_HIGH_BOUND(P) (__ptrhigh (P) = __ptrlow (P) + bufp->allocated) -# define MOVE_BUFFER_POINTER(P) \ - (__ptrlow (P) += incr, SET_HIGH_BOUND (P), __ptrvalue (P) += incr) -# define ELSE_EXTEND_BUFFER_HIGH_BOUND \ - else \ - { \ - SET_HIGH_BOUND (b); \ - SET_HIGH_BOUND (begalt); \ - if (fixup_alt_jump) \ - SET_HIGH_BOUND (fixup_alt_jump); \ - if (laststart) \ - SET_HIGH_BOUND (laststart); \ - if (pending_exact) \ - SET_HIGH_BOUND (pending_exact); \ - } -# else -# define MOVE_BUFFER_POINTER(P) (P) += incr -# define ELSE_EXTEND_BUFFER_HIGH_BOUND -# endif -# endif /* not DEFINED_ONCE */ - -# ifdef WCHAR -# define EXTEND_BUFFER() \ - do { \ - UCHAR_T *old_buffer = COMPILED_BUFFER_VAR; \ - int wchar_count; \ - if (bufp->allocated + sizeof(UCHAR_T) > MAX_BUF_SIZE) \ - return REG_ESIZE; \ - bufp->allocated <<= 1; \ - if (bufp->allocated > MAX_BUF_SIZE) \ - bufp->allocated = MAX_BUF_SIZE; \ - /* How many characters the new buffer can have? */ \ - wchar_count = bufp->allocated / sizeof(UCHAR_T); \ - if (wchar_count == 0) wchar_count = 1; \ - /* Truncate the buffer to CHAR_T align. */ \ - bufp->allocated = wchar_count * sizeof(UCHAR_T); \ - RETALLOC (COMPILED_BUFFER_VAR, wchar_count, UCHAR_T); \ - bufp->buffer = (char*)COMPILED_BUFFER_VAR; \ - if (COMPILED_BUFFER_VAR == NULL) \ - return REG_ESPACE; \ - /* If the buffer moved, move all the pointers into it. */ \ - if (old_buffer != COMPILED_BUFFER_VAR) \ - { \ - int incr = COMPILED_BUFFER_VAR - old_buffer; \ - MOVE_BUFFER_POINTER (b); \ - MOVE_BUFFER_POINTER (begalt); \ - if (fixup_alt_jump) \ - MOVE_BUFFER_POINTER (fixup_alt_jump); \ - if (laststart) \ - MOVE_BUFFER_POINTER (laststart); \ - if (pending_exact) \ - MOVE_BUFFER_POINTER (pending_exact); \ - } \ - ELSE_EXTEND_BUFFER_HIGH_BOUND \ - } while (0) -# else /* BYTE */ -# define EXTEND_BUFFER() \ - do { \ - UCHAR_T *old_buffer = COMPILED_BUFFER_VAR; \ - if (bufp->allocated == MAX_BUF_SIZE) \ - return REG_ESIZE; \ - bufp->allocated <<= 1; \ - if (bufp->allocated > MAX_BUF_SIZE) \ - bufp->allocated = MAX_BUF_SIZE; \ - bufp->buffer = (UCHAR_T *) REALLOC (COMPILED_BUFFER_VAR, bufp->allocated); \ - if (COMPILED_BUFFER_VAR == NULL) \ - return REG_ESPACE; \ - /* If the buffer moved, move all the pointers into it. */ \ - if (old_buffer != COMPILED_BUFFER_VAR) \ - { \ - int incr = COMPILED_BUFFER_VAR - old_buffer; \ - MOVE_BUFFER_POINTER (b); \ - MOVE_BUFFER_POINTER (begalt); \ - if (fixup_alt_jump) \ - MOVE_BUFFER_POINTER (fixup_alt_jump); \ - if (laststart) \ - MOVE_BUFFER_POINTER (laststart); \ - if (pending_exact) \ - MOVE_BUFFER_POINTER (pending_exact); \ - } \ - ELSE_EXTEND_BUFFER_HIGH_BOUND \ - } while (0) -# endif /* WCHAR */ - -# ifndef DEFINED_ONCE -/* Since we have one byte reserved for the register number argument to - {start,stop}_memory, the maximum number of groups we can report - things about is what fits in that byte. */ -# define MAX_REGNUM 255 - -/* But patterns can have more than `MAX_REGNUM' registers. We just - ignore the excess. */ -typedef unsigned regnum_t; - - -/* Macros for the compile stack. */ - -/* Since offsets can go either forwards or backwards, this type needs to - be able to hold values from -(MAX_BUF_SIZE - 1) to MAX_BUF_SIZE - 1. */ -/* int may be not enough when sizeof(int) == 2. */ -typedef long pattern_offset_t; - -typedef struct -{ - pattern_offset_t begalt_offset; - pattern_offset_t fixup_alt_jump; - pattern_offset_t inner_group_offset; - pattern_offset_t laststart_offset; - regnum_t regnum; -} compile_stack_elt_t; - - -typedef struct -{ - compile_stack_elt_t *stack; - unsigned size; - unsigned avail; /* Offset of next open position. */ -} compile_stack_type; - - -# define INIT_COMPILE_STACK_SIZE 32 - -# define COMPILE_STACK_EMPTY (compile_stack.avail == 0) -# define COMPILE_STACK_FULL (compile_stack.avail == compile_stack.size) - -/* The next available element. */ -# define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail]) - -# endif /* not DEFINED_ONCE */ - -/* Set the bit for character C in a list. */ -# ifndef DEFINED_ONCE -# define SET_LIST_BIT(c) \ - (b[((unsigned char) (c)) / BYTEWIDTH] \ - |= 1 << (((unsigned char) c) % BYTEWIDTH)) -# endif /* DEFINED_ONCE */ - -/* Get the next unsigned number in the uncompiled pattern. */ -# define GET_UNSIGNED_NUMBER(num) \ - { \ - while (p != pend) \ - { \ - PATFETCH (c); \ - if (c < '0' || c > '9') \ - break; \ - if (num <= RE_DUP_MAX) \ - { \ - if (num < 0) \ - num = 0; \ - num = num * 10 + c - '0'; \ - } \ - } \ - } - -# ifndef DEFINED_ONCE -# if defined _LIBC || WIDE_CHAR_SUPPORT -/* The GNU C library provides support for user-defined character classes - and the functions from ISO C amendement 1. */ -# ifdef CHARCLASS_NAME_MAX -# define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX -# else -/* This shouldn't happen but some implementation might still have this - problem. Use a reasonable default value. */ -# define CHAR_CLASS_MAX_LENGTH 256 -# endif - -# ifdef _LIBC -# define IS_CHAR_CLASS(string) __wctype (string) -# else -# define IS_CHAR_CLASS(string) wctype (string) -# endif -# else -# define CHAR_CLASS_MAX_LENGTH 6 /* Namely, `xdigit'. */ - -# define IS_CHAR_CLASS(string) \ - (STREQ (string, "alpha") || STREQ (string, "upper") \ - || STREQ (string, "lower") || STREQ (string, "digit") \ - || STREQ (string, "alnum") || STREQ (string, "xdigit") \ - || STREQ (string, "space") || STREQ (string, "print") \ - || STREQ (string, "punct") || STREQ (string, "graph") \ - || STREQ (string, "cntrl") || STREQ (string, "blank")) -# endif -# endif /* DEFINED_ONCE */ - -# ifndef MATCH_MAY_ALLOCATE - -/* If we cannot allocate large objects within re_match_2_internal, - we make the fail stack and register vectors global. - The fail stack, we grow to the maximum size when a regexp - is compiled. - The register vectors, we adjust in size each time we - compile a regexp, according to the number of registers it needs. */ - -static PREFIX(fail_stack_type) fail_stack; - -/* Size with which the following vectors are currently allocated. - That is so we can make them bigger as needed, - but never make them smaller. */ -# ifdef DEFINED_ONCE -static int regs_allocated_size; - -static const char ** regstart, ** regend; -static const char ** old_regstart, ** old_regend; -static const char **best_regstart, **best_regend; -static const char **reg_dummy; -# endif /* DEFINED_ONCE */ - -static PREFIX(register_info_type) *PREFIX(reg_info); -static PREFIX(register_info_type) *PREFIX(reg_info_dummy); - -/* Make the register vectors big enough for NUM_REGS registers, - but don't make them smaller. */ - -static void -PREFIX(regex_grow_registers) (int num_regs) -{ - if (num_regs > regs_allocated_size) - { - RETALLOC_IF (regstart, num_regs, const char *); - RETALLOC_IF (regend, num_regs, const char *); - RETALLOC_IF (old_regstart, num_regs, const char *); - RETALLOC_IF (old_regend, num_regs, const char *); - RETALLOC_IF (best_regstart, num_regs, const char *); - RETALLOC_IF (best_regend, num_regs, const char *); - RETALLOC_IF (PREFIX(reg_info), num_regs, PREFIX(register_info_type)); - RETALLOC_IF (reg_dummy, num_regs, const char *); - RETALLOC_IF (PREFIX(reg_info_dummy), num_regs, PREFIX(register_info_type)); - - regs_allocated_size = num_regs; - } -} - -# endif /* not MATCH_MAY_ALLOCATE */ - -# ifndef DEFINED_ONCE -static boolean group_in_compile_stack (compile_stack_type - compile_stack, - regnum_t regnum); -# endif /* not DEFINED_ONCE */ - -/* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX. - Returns one of error codes defined in `regex.h', or zero for success. - - Assumes the `allocated' (and perhaps `buffer') and `translate' - fields are set in BUFP on entry. - - If it succeeds, results are put in BUFP (if it returns an error, the - contents of BUFP are undefined): - `buffer' is the compiled pattern; - `syntax' is set to SYNTAX; - `used' is set to the length of the compiled pattern; - `fastmap_accurate' is zero; - `re_nsub' is the number of subexpressions in PATTERN; - `not_bol' and `not_eol' are zero; - - The `fastmap' and `newline_anchor' fields are neither - examined nor set. */ - -/* Return, freeing storage we allocated. */ -# ifdef WCHAR -# define FREE_STACK_RETURN(value) \ - return (free(pattern), free(mbs_offset), free(is_binary), free (compile_stack.stack), value) -# else -# define FREE_STACK_RETURN(value) \ - return (free (compile_stack.stack), value) -# endif /* WCHAR */ - -static reg_errcode_t -PREFIX(regex_compile) (const char *ARG_PREFIX(pattern), - size_t ARG_PREFIX(size), - reg_syntax_t syntax, - struct re_pattern_buffer *bufp) -{ - /* We fetch characters from PATTERN here. Even though PATTERN is - `char *' (i.e., signed), we declare these variables as unsigned, so - they can be reliably used as array indices. */ - register UCHAR_T c, c1; - -#ifdef WCHAR - /* A temporary space to keep wchar_t pattern and compiled pattern. */ - CHAR_T *pattern, *COMPILED_BUFFER_VAR; - size_t size; - /* offset buffer for optimization. See convert_mbs_to_wc. */ - int *mbs_offset = NULL; - /* It hold whether each wchar_t is binary data or not. */ - char *is_binary = NULL; - /* A flag whether exactn is handling binary data or not. */ - char is_exactn_bin = FALSE; -#endif /* WCHAR */ - - /* A random temporary spot in PATTERN. */ - const CHAR_T *p1; - - /* Points to the end of the buffer, where we should append. */ - register UCHAR_T *b; - - /* Keeps track of unclosed groups. */ - compile_stack_type compile_stack; - - /* Points to the current (ending) position in the pattern. */ -#ifdef WCHAR - const CHAR_T *p; - const CHAR_T *pend; -#else /* BYTE */ - const CHAR_T *p = pattern; - const CHAR_T *pend = pattern + size; -#endif /* WCHAR */ - - /* How to translate the characters in the pattern. */ - RE_TRANSLATE_TYPE translate = bufp->translate; - - /* Address of the count-byte of the most recently inserted `exactn' - command. This makes it possible to tell if a new exact-match - character can be added to that command or if the character requires - a new `exactn' command. */ - UCHAR_T *pending_exact = 0; - - /* Address of start of the most recently finished expression. - This tells, e.g., postfix * where to find the start of its - operand. Reset at the beginning of groups and alternatives. */ - UCHAR_T *laststart = 0; - - /* Address of beginning of regexp, or inside of last group. */ - UCHAR_T *begalt; - - /* Address of the place where a forward jump should go to the end of - the containing expression. Each alternative of an `or' -- except the - last -- ends with a forward jump of this sort. */ - UCHAR_T *fixup_alt_jump = 0; - - /* Counts open-groups as they are encountered. Remembered for the - matching close-group on the compile stack, so the same register - number is put in the stop_memory as the start_memory. */ - regnum_t regnum = 0; - -#ifdef WCHAR - /* Initialize the wchar_t PATTERN and offset_buffer. */ - p = pend = pattern = TALLOC(csize + 1, CHAR_T); - mbs_offset = TALLOC(csize + 1, int); - is_binary = TALLOC(csize + 1, char); - if (pattern == NULL || mbs_offset == NULL || is_binary == NULL) - { - free(pattern); - free(mbs_offset); - free(is_binary); - return REG_ESPACE; - } - pattern[csize] = L'\0'; /* sentinel */ - size = convert_mbs_to_wcs(pattern, cpattern, csize, mbs_offset, is_binary); - pend = p + size; - if (size < 0) - { - free(pattern); - free(mbs_offset); - free(is_binary); - return REG_BADPAT; - } -#endif - -#ifdef DEBUG - DEBUG_PRINT1 ("\nCompiling pattern: "); - if (debug) - { - unsigned debug_count; - - for (debug_count = 0; debug_count < size; debug_count++) - PUT_CHAR (pattern[debug_count]); - putchar ('\n'); - } -#endif /* DEBUG */ - - /* Initialize the compile stack. */ - compile_stack.stack = TALLOC (INIT_COMPILE_STACK_SIZE, compile_stack_elt_t); - if (compile_stack.stack == NULL) - { -#ifdef WCHAR - free(pattern); - free(mbs_offset); - free(is_binary); -#endif - return REG_ESPACE; - } - - compile_stack.size = INIT_COMPILE_STACK_SIZE; - compile_stack.avail = 0; - - /* Initialize the pattern buffer. */ - bufp->syntax = syntax; - bufp->fastmap_accurate = 0; - bufp->not_bol = bufp->not_eol = 0; - - /* Set `used' to zero, so that if we return an error, the pattern - printer (for debugging) will think there's no pattern. We reset it - at the end. */ - bufp->used = 0; - - /* Always count groups, whether or not bufp->no_sub is set. */ - bufp->re_nsub = 0; - -#if !defined emacs && !defined SYNTAX_TABLE - /* Initialize the syntax table. */ - init_syntax_once (); -#endif - - if (bufp->allocated == 0) - { - if (bufp->buffer) - { /* If zero allocated, but buffer is non-null, try to realloc - enough space. This loses if buffer's address is bogus, but - that is the user's responsibility. */ -#ifdef WCHAR - /* Free bufp->buffer and allocate an array for wchar_t pattern - buffer. */ - free(bufp->buffer); - COMPILED_BUFFER_VAR = TALLOC (INIT_BUF_SIZE/sizeof(UCHAR_T), - UCHAR_T); -#else - RETALLOC (COMPILED_BUFFER_VAR, INIT_BUF_SIZE, UCHAR_T); -#endif /* WCHAR */ - } - else - { /* Caller did not allocate a buffer. Do it for them. */ - COMPILED_BUFFER_VAR = TALLOC (INIT_BUF_SIZE / sizeof(UCHAR_T), - UCHAR_T); - } - - if (!COMPILED_BUFFER_VAR) FREE_STACK_RETURN (REG_ESPACE); -#ifdef WCHAR - bufp->buffer = (char*)COMPILED_BUFFER_VAR; -#endif /* WCHAR */ - bufp->allocated = INIT_BUF_SIZE; - } -#ifdef WCHAR - else - COMPILED_BUFFER_VAR = (UCHAR_T*) bufp->buffer; -#endif - - begalt = b = COMPILED_BUFFER_VAR; - - /* Loop through the uncompiled pattern until we're at the end. */ - while (p != pend) - { - PATFETCH (c); - - switch (c) - { - case '^': - { - if ( /* If at start of pattern, it's an operator. */ - p == pattern + 1 - /* If context independent, it's an operator. */ - || syntax & RE_CONTEXT_INDEP_ANCHORS - /* Otherwise, depends on what's come before. */ - || PREFIX(at_begline_loc_p) (pattern, p, syntax)) - BUF_PUSH (begline); - else - goto normal_char; - } - break; - - - case '$': - { - if ( /* If at end of pattern, it's an operator. */ - p == pend - /* If context independent, it's an operator. */ - || syntax & RE_CONTEXT_INDEP_ANCHORS - /* Otherwise, depends on what's next. */ - || PREFIX(at_endline_loc_p) (p, pend, syntax)) - BUF_PUSH (endline); - else - goto normal_char; - } - break; - - - case '+': - case '?': - if ((syntax & RE_BK_PLUS_QM) - || (syntax & RE_LIMITED_OPS)) - goto normal_char; - handle_plus: - case '*': - /* If there is no previous pattern... */ - if (!laststart) - { - if (syntax & RE_CONTEXT_INVALID_OPS) - FREE_STACK_RETURN (REG_BADRPT); - else if (!(syntax & RE_CONTEXT_INDEP_OPS)) - goto normal_char; - } - - { - /* Are we optimizing this jump? */ - boolean keep_string_p = false; - - /* 1 means zero (many) matches is allowed. */ - char zero_times_ok = 0, many_times_ok = 0; - - /* If there is a sequence of repetition chars, collapse it - down to just one (the right one). We can't combine - interval operators with these because of, e.g., `a{2}*', - which should only match an even number of `a's. */ - - for (;;) - { - zero_times_ok |= c != '+'; - many_times_ok |= c != '?'; - - if (p == pend) - break; - - PATFETCH (c); - - if (c == '*' - || (!(syntax & RE_BK_PLUS_QM) && (c == '+' || c == '?'))) - ; - - else if (syntax & RE_BK_PLUS_QM && c == '\\') - { - if (p == pend) FREE_STACK_RETURN (REG_EESCAPE); - - PATFETCH (c1); - if (!(c1 == '+' || c1 == '?')) - { - PATUNFETCH; - PATUNFETCH; - break; - } - - c = c1; - } - else - { - PATUNFETCH; - break; - } - - /* If we get here, we found another repeat character. */ - } - - /* Star, etc. applied to an empty pattern is equivalent - to an empty pattern. */ - if (!laststart) - break; - - /* Now we know whether or not zero matches is allowed - and also whether or not two or more matches is allowed. */ - if (many_times_ok) - { /* More than one repetition is allowed, so put in at the - end a backward relative jump from `b' to before the next - jump we're going to put in below (which jumps from - laststart to after this jump). - - But if we are at the `*' in the exact sequence `.*\n', - insert an unconditional jump backwards to the ., - instead of the beginning of the loop. This way we only - push a failure point once, instead of every time - through the loop. */ - assert (p - 1 > pattern); - - /* Allocate the space for the jump. */ - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - - /* We know we are not at the first character of the pattern, - because laststart was nonzero. And we've already - incremented `p', by the way, to be the character after - the `*'. Do we have to do something analogous here - for null bytes, because of RE_DOT_NOT_NULL? */ - if (TRANSLATE (*(p - 2)) == TRANSLATE ('.') - && zero_times_ok - && p < pend && TRANSLATE (*p) == TRANSLATE ('\n') - && !(syntax & RE_DOT_NEWLINE)) - { /* We have .*\n. */ - STORE_JUMP (jump, b, laststart); - keep_string_p = true; - } - else - /* Anything else. */ - STORE_JUMP (maybe_pop_jump, b, laststart - - (1 + OFFSET_ADDRESS_SIZE)); - - /* We've added more stuff to the buffer. */ - b += 1 + OFFSET_ADDRESS_SIZE; - } - - /* On failure, jump from laststart to b + 3, which will be the - end of the buffer after this jump is inserted. */ - /* ifdef WCHAR, 'b + 1 + OFFSET_ADDRESS_SIZE' instead of - 'b + 3'. */ - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - INSERT_JUMP (keep_string_p ? on_failure_keep_string_jump - : on_failure_jump, - laststart, b + 1 + OFFSET_ADDRESS_SIZE); - pending_exact = 0; - b += 1 + OFFSET_ADDRESS_SIZE; - - if (!zero_times_ok) - { - /* At least one repetition is required, so insert a - `dummy_failure_jump' before the initial - `on_failure_jump' instruction of the loop. This - effects a skip over that instruction the first time - we hit that loop. */ - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - INSERT_JUMP (dummy_failure_jump, laststart, laststart + - 2 + 2 * OFFSET_ADDRESS_SIZE); - b += 1 + OFFSET_ADDRESS_SIZE; - } - } - break; - - - case '.': - laststart = b; - BUF_PUSH (anychar); - break; - - - case '[': - { - boolean had_char_class = false; -#ifdef WCHAR - CHAR_T range_start = 0xffffffff; -#else - unsigned int range_start = 0xffffffff; -#endif - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - -#ifdef WCHAR - /* We assume a charset(_not) structure as a wchar_t array. - charset[0] = (re_opcode_t) charset(_not) - charset[1] = l (= length of char_classes) - charset[2] = m (= length of collating_symbols) - charset[3] = n (= length of equivalence_classes) - charset[4] = o (= length of char_ranges) - charset[5] = p (= length of chars) - - charset[6] = char_class (wctype_t) - charset[6+CHAR_CLASS_SIZE] = char_class (wctype_t) - ... - charset[l+5] = char_class (wctype_t) - - charset[l+6] = collating_symbol (wchar_t) - ... - charset[l+m+5] = collating_symbol (wchar_t) - ifdef _LIBC we use the index if - _NL_COLLATE_SYMB_EXTRAMB instead of - wchar_t string. - - charset[l+m+6] = equivalence_classes (wchar_t) - ... - charset[l+m+n+5] = equivalence_classes (wchar_t) - ifdef _LIBC we use the index in - _NL_COLLATE_WEIGHT instead of - wchar_t string. - - charset[l+m+n+6] = range_start - charset[l+m+n+7] = range_end - ... - charset[l+m+n+2o+4] = range_start - charset[l+m+n+2o+5] = range_end - ifdef _LIBC we use the value looked up - in _NL_COLLATE_COLLSEQ instead of - wchar_t character. - - charset[l+m+n+2o+6] = char - ... - charset[l+m+n+2o+p+5] = char - - */ - - /* We need at least 6 spaces: the opcode, the length of - char_classes, the length of collating_symbols, the length of - equivalence_classes, the length of char_ranges, the length of - chars. */ - GET_BUFFER_SPACE (6); - - /* Save b as laststart. And We use laststart as the pointer - to the first element of the charset here. - In other words, laststart[i] indicates charset[i]. */ - laststart = b; - - /* We test `*p == '^' twice, instead of using an if - statement, so we only need one BUF_PUSH. */ - BUF_PUSH (*p == '^' ? charset_not : charset); - if (*p == '^') - p++; - - /* Push the length of char_classes, the length of - collating_symbols, the length of equivalence_classes, the - length of char_ranges and the length of chars. */ - BUF_PUSH_3 (0, 0, 0); - BUF_PUSH_2 (0, 0); - - /* Remember the first position in the bracket expression. */ - p1 = p; - - /* charset_not matches newline according to a syntax bit. */ - if ((re_opcode_t) b[-6] == charset_not - && (syntax & RE_HAT_LISTS_NOT_NEWLINE)) - { - BUF_PUSH('\n'); - laststart[5]++; /* Update the length of characters */ - } - - /* Read in characters and ranges, setting map bits. */ - for (;;) - { - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - PATFETCH (c); - - /* \ might escape characters inside [...] and [^...]. */ - if ((syntax & RE_BACKSLASH_ESCAPE_IN_LISTS) && c == '\\') - { - if (p == pend) FREE_STACK_RETURN (REG_EESCAPE); - - PATFETCH (c1); - BUF_PUSH(c1); - laststart[5]++; /* Update the length of chars */ - range_start = c1; - continue; - } - - /* Could be the end of the bracket expression. If it's - not (i.e., when the bracket expression is `[]' so - far), the ']' character bit gets set way below. */ - if (c == ']' && p != p1 + 1) - break; - - /* Look ahead to see if it's a range when the last thing - was a character class. */ - if (had_char_class && c == '-' && *p != ']') - FREE_STACK_RETURN (REG_ERANGE); - - /* Look ahead to see if it's a range when the last thing - was a character: if this is a hyphen not at the - beginning or the end of a list, then it's the range - operator. */ - if (c == '-' - && !(p - 2 >= pattern && p[-2] == '[') - && !(p - 3 >= pattern && p[-3] == '[' && p[-2] == '^') - && *p != ']') - { - reg_errcode_t ret; - /* Allocate the space for range_start and range_end. */ - GET_BUFFER_SPACE (2); - /* Update the pointer to indicate end of buffer. */ - b += 2; - ret = wcs_compile_range (range_start, &p, pend, translate, - syntax, b, laststart); - if (ret != REG_NOERROR) FREE_STACK_RETURN (ret); - range_start = 0xffffffff; - } - else if (p[0] == '-' && p[1] != ']') - { /* This handles ranges made up of characters only. */ - reg_errcode_t ret; - - /* Move past the `-'. */ - PATFETCH (c1); - /* Allocate the space for range_start and range_end. */ - GET_BUFFER_SPACE (2); - /* Update the pointer to indicate end of buffer. */ - b += 2; - ret = wcs_compile_range (c, &p, pend, translate, syntax, b, - laststart); - if (ret != REG_NOERROR) FREE_STACK_RETURN (ret); - range_start = 0xffffffff; - } - - /* See if we're at the beginning of a possible character - class. */ - else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') - { /* Leave room for the null. */ - char str[CHAR_CLASS_MAX_LENGTH + 1]; - - PATFETCH (c); - c1 = 0; - - /* If pattern is `[[:'. */ - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (;;) - { - PATFETCH (c); - if ((c == ':' && *p == ']') || p == pend) - break; - if (c1 < CHAR_CLASS_MAX_LENGTH) - str[c1++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[c1] = '\0'; - - /* If isn't a word bracketed by `[:' and `:]': - undo the ending character, the letters, and leave - the leading `:' and `[' (but store them as character). */ - if (c == ':' && *p == ']') - { - wctype_t wt; - uintptr_t alignedp; - - /* Query the character class as wctype_t. */ - wt = IS_CHAR_CLASS (str); - if (wt == 0) - FREE_STACK_RETURN (REG_ECTYPE); - - /* Throw away the ] at the end of the character - class. */ - PATFETCH (c); - - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - /* Allocate the space for character class. */ - GET_BUFFER_SPACE(CHAR_CLASS_SIZE); - /* Update the pointer to indicate end of buffer. */ - b += CHAR_CLASS_SIZE; - /* Move data which follow character classes - not to violate the data. */ - insert_space(CHAR_CLASS_SIZE, - laststart + 6 + laststart[1], - b - 1); - alignedp = ((uintptr_t)(laststart + 6 + laststart[1]) - + __alignof__(wctype_t) - 1) - & ~(uintptr_t)(__alignof__(wctype_t) - 1); - /* Store the character class. */ - *((wctype_t*)alignedp) = wt; - /* Update length of char_classes */ - laststart[1] += CHAR_CLASS_SIZE; - - had_char_class = true; - } - else - { - c1++; - while (c1--) - PATUNFETCH; - BUF_PUSH ('['); - BUF_PUSH (':'); - laststart[5] += 2; /* Update the length of characters */ - range_start = ':'; - had_char_class = false; - } - } - else if (syntax & RE_CHAR_CLASSES && c == '[' && (*p == '=' - || *p == '.')) - { - CHAR_T str[128]; /* Should be large enough. */ - CHAR_T delim = *p; /* '=' or '.' */ -# ifdef _LIBC - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); -# endif - PATFETCH (c); - c1 = 0; - - /* If pattern is `[[=' or '[[.'. */ - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (;;) - { - PATFETCH (c); - if ((c == delim && *p == ']') || p == pend) - break; - if (c1 < sizeof (str) - 1) - str[c1++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[c1] = '\0'; - - if (c == delim && *p == ']' && str[0] != '\0') - { - unsigned int i, offset; - /* If we have no collation data we use the default - collation in which each character is in a class - by itself. It also means that ASCII is the - character set and therefore we cannot have character - with more than one byte in the multibyte - representation. */ - - /* If not defined _LIBC, we push the name and - `\0' for the sake of matching performance. */ - int datasize = c1 + 1; - -# ifdef _LIBC - int32_t idx = 0; - if (nrules == 0) -# endif - { - if (c1 != 1) - FREE_STACK_RETURN (REG_ECOLLATE); - } -# ifdef _LIBC - else - { - const int32_t *table; - const int32_t *weights; - const int32_t *extra; - const int32_t *indirect; - wint_t *cp; - - /* This #include defines a local function! */ -# include - - if(delim == '=') - { - /* We push the index for equivalence class. */ - cp = (wint_t*)str; - - table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_TABLEWC); - weights = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_WEIGHTWC); - extra = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_EXTRAWC); - indirect = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_INDIRECTWC); - - idx = findidx ((const wint_t**)&cp); - if (idx == 0 || cp < (wint_t*) str + c1) - /* This is no valid character. */ - FREE_STACK_RETURN (REG_ECOLLATE); - - str[0] = (wchar_t)idx; - } - else /* delim == '.' */ - { - /* We push collation sequence value - for collating symbol. */ - int32_t table_size; - const int32_t *symb_table; - const unsigned char *extra; - int32_t idx; - int32_t elem; - int32_t second; - int32_t hash; - char char_str[c1]; - - /* We have to convert the name to a single-byte - string. This is possible since the names - consist of ASCII characters and the internal - representation is UCS4. */ - for (i = 0; i < c1; ++i) - char_str[i] = str[i]; - - table_size = - _NL_CURRENT_WORD (LC_COLLATE, - _NL_COLLATE_SYMB_HASH_SIZEMB); - symb_table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_TABLEMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_EXTRAMB); - - /* Locate the character in the hashing table. */ - hash = elem_hash (char_str, c1); - - idx = 0; - elem = hash % table_size; - second = hash % (table_size - 2); - while (symb_table[2 * elem] != 0) - { - /* First compare the hashing value. */ - if (symb_table[2 * elem] == hash - && c1 == extra[symb_table[2 * elem + 1]] - && memcmp (char_str, - &extra[symb_table[2 * elem + 1] - + 1], c1) == 0) - { - /* Yep, this is the entry. */ - idx = symb_table[2 * elem + 1]; - idx += 1 + extra[idx]; - break; - } - - /* Next entry. */ - elem += second; - } - - if (symb_table[2 * elem] != 0) - { - /* Compute the index of the byte sequence - in the table. */ - idx += 1 + extra[idx]; - /* Adjust for the alignment. */ - idx = (idx + 3) & ~3; - - str[0] = (wchar_t) idx + 4; - } - else if (symb_table[2 * elem] == 0 && c1 == 1) - { - /* No valid character. Match it as a - single byte character. */ - had_char_class = false; - BUF_PUSH(str[0]); - /* Update the length of characters */ - laststart[5]++; - range_start = str[0]; - - /* Throw away the ] at the end of the - collating symbol. */ - PATFETCH (c); - /* exit from the switch block. */ - continue; - } - else - FREE_STACK_RETURN (REG_ECOLLATE); - } - datasize = 1; - } -# endif - /* Throw away the ] at the end of the equivalence - class (or collating symbol). */ - PATFETCH (c); - - /* Allocate the space for the equivalence class - (or collating symbol) (and '\0' if needed). */ - GET_BUFFER_SPACE(datasize); - /* Update the pointer to indicate end of buffer. */ - b += datasize; - - if (delim == '=') - { /* equivalence class */ - /* Calculate the offset of char_ranges, - which is next to equivalence_classes. */ - offset = laststart[1] + laststart[2] - + laststart[3] +6; - /* Insert space. */ - insert_space(datasize, laststart + offset, b - 1); - - /* Write the equivalence_class and \0. */ - for (i = 0 ; i < datasize ; i++) - laststart[offset + i] = str[i]; - - /* Update the length of equivalence_classes. */ - laststart[3] += datasize; - had_char_class = true; - } - else /* delim == '.' */ - { /* collating symbol */ - /* Calculate the offset of the equivalence_classes, - which is next to collating_symbols. */ - offset = laststart[1] + laststart[2] + 6; - /* Insert space and write the collationg_symbol - and \0. */ - insert_space(datasize, laststart + offset, b-1); - for (i = 0 ; i < datasize ; i++) - laststart[offset + i] = str[i]; - - /* In re_match_2_internal if range_start < -1, we - assume -range_start is the offset of the - collating symbol which is specified as - the character of the range start. So we assign - -(laststart[1] + laststart[2] + 6) to - range_start. */ - range_start = -(laststart[1] + laststart[2] + 6); - /* Update the length of collating_symbol. */ - laststart[2] += datasize; - had_char_class = false; - } - } - else - { - c1++; - while (c1--) - PATUNFETCH; - BUF_PUSH ('['); - BUF_PUSH (delim); - laststart[5] += 2; /* Update the length of characters */ - range_start = delim; - had_char_class = false; - } - } - else - { - had_char_class = false; - BUF_PUSH(c); - laststart[5]++; /* Update the length of characters */ - range_start = c; - } - } - -#else /* BYTE */ - /* Ensure that we have enough space to push a charset: the - opcode, the length count, and the bitset; 34 bytes in all. */ - GET_BUFFER_SPACE (34); - - laststart = b; - - /* We test `*p == '^' twice, instead of using an if - statement, so we only need one BUF_PUSH. */ - BUF_PUSH (*p == '^' ? charset_not : charset); - if (*p == '^') - p++; - - /* Remember the first position in the bracket expression. */ - p1 = p; - - /* Push the number of bytes in the bitmap. */ - BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH); - - /* Clear the whole map. */ - bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH); - - /* charset_not matches newline according to a syntax bit. */ - if ((re_opcode_t) b[-2] == charset_not - && (syntax & RE_HAT_LISTS_NOT_NEWLINE)) - SET_LIST_BIT ('\n'); - - /* Read in characters and ranges, setting map bits. */ - for (;;) - { - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - PATFETCH (c); - - /* \ might escape characters inside [...] and [^...]. */ - if ((syntax & RE_BACKSLASH_ESCAPE_IN_LISTS) && c == '\\') - { - if (p == pend) FREE_STACK_RETURN (REG_EESCAPE); - - PATFETCH (c1); - SET_LIST_BIT (c1); - range_start = c1; - continue; - } - - /* Could be the end of the bracket expression. If it's - not (i.e., when the bracket expression is `[]' so - far), the ']' character bit gets set way below. */ - if (c == ']' && p != p1 + 1) - break; - - /* Look ahead to see if it's a range when the last thing - was a character class. */ - if (had_char_class && c == '-' && *p != ']') - FREE_STACK_RETURN (REG_ERANGE); - - /* Look ahead to see if it's a range when the last thing - was a character: if this is a hyphen not at the - beginning or the end of a list, then it's the range - operator. */ - if (c == '-' - && !(p - 2 >= pattern && p[-2] == '[') - && !(p - 3 >= pattern && p[-3] == '[' && p[-2] == '^') - && *p != ']') - { - reg_errcode_t ret - = byte_compile_range (range_start, &p, pend, translate, - syntax, b); - if (ret != REG_NOERROR) FREE_STACK_RETURN (ret); - range_start = 0xffffffff; - } - - else if (p[0] == '-' && p[1] != ']') - { /* This handles ranges made up of characters only. */ - reg_errcode_t ret; - - /* Move past the `-'. */ - PATFETCH (c1); - - ret = byte_compile_range (c, &p, pend, translate, syntax, b); - if (ret != REG_NOERROR) FREE_STACK_RETURN (ret); - range_start = 0xffffffff; - } - - /* See if we're at the beginning of a possible character - class. */ - - else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') - { /* Leave room for the null. */ - char str[CHAR_CLASS_MAX_LENGTH + 1]; - - PATFETCH (c); - c1 = 0; - - /* If pattern is `[[:'. */ - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (;;) - { - PATFETCH (c); - if ((c == ':' && *p == ']') || p == pend) - break; - if (c1 < CHAR_CLASS_MAX_LENGTH) - str[c1++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[c1] = '\0'; - - /* If isn't a word bracketed by `[:' and `:]': - undo the ending character, the letters, and leave - the leading `:' and `[' (but set bits for them). */ - if (c == ':' && *p == ']') - { -# if defined _LIBC || WIDE_CHAR_SUPPORT - boolean is_lower = STREQ (str, "lower"); - boolean is_upper = STREQ (str, "upper"); - wctype_t wt; - int ch; - - wt = IS_CHAR_CLASS (str); - if (wt == 0) - FREE_STACK_RETURN (REG_ECTYPE); - - /* Throw away the ] at the end of the character - class. */ - PATFETCH (c); - - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (ch = 0; ch < 1 << BYTEWIDTH; ++ch) - { - if (iswctype (btowc (ch), wt)) - SET_LIST_BIT (ch); - - if (translate && (is_upper || is_lower) - && (ISUPPER (ch) || ISLOWER (ch))) - SET_LIST_BIT (ch); - } - - had_char_class = true; -# else - int ch; - boolean is_alnum = STREQ (str, "alnum"); - boolean is_alpha = STREQ (str, "alpha"); - boolean is_blank = STREQ (str, "blank"); - boolean is_cntrl = STREQ (str, "cntrl"); - boolean is_digit = STREQ (str, "digit"); - boolean is_graph = STREQ (str, "graph"); - boolean is_lower = STREQ (str, "lower"); - boolean is_print = STREQ (str, "print"); - boolean is_punct = STREQ (str, "punct"); - boolean is_space = STREQ (str, "space"); - boolean is_upper = STREQ (str, "upper"); - boolean is_xdigit = STREQ (str, "xdigit"); - - if (!IS_CHAR_CLASS (str)) - FREE_STACK_RETURN (REG_ECTYPE); - - /* Throw away the ] at the end of the character - class. */ - PATFETCH (c); - - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (ch = 0; ch < 1 << BYTEWIDTH; ch++) - { - /* This was split into 3 if's to - avoid an arbitrary limit in some compiler. */ - if ( (is_alnum && ISALNUM (ch)) - || (is_alpha && ISALPHA (ch)) - || (is_blank && ISBLANK (ch)) - || (is_cntrl && ISCNTRL (ch))) - SET_LIST_BIT (ch); - if ( (is_digit && ISDIGIT (ch)) - || (is_graph && ISGRAPH (ch)) - || (is_lower && ISLOWER (ch)) - || (is_print && ISPRINT (ch))) - SET_LIST_BIT (ch); - if ( (is_punct && ISPUNCT (ch)) - || (is_space && ISSPACE (ch)) - || (is_upper && ISUPPER (ch)) - || (is_xdigit && ISXDIGIT (ch))) - SET_LIST_BIT (ch); - if ( translate && (is_upper || is_lower) - && (ISUPPER (ch) || ISLOWER (ch))) - SET_LIST_BIT (ch); - } - had_char_class = true; -# endif /* libc || wctype.h */ - } - else - { - c1++; - while (c1--) - PATUNFETCH; - SET_LIST_BIT ('['); - SET_LIST_BIT (':'); - range_start = ':'; - had_char_class = false; - } - } - else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == '=') - { - unsigned char str[MB_LEN_MAX + 1]; -# ifdef _LIBC - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); -# endif - - PATFETCH (c); - c1 = 0; - - /* If pattern is `[[='. */ - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (;;) - { - PATFETCH (c); - if ((c == '=' && *p == ']') || p == pend) - break; - if (c1 < MB_LEN_MAX) - str[c1++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[c1] = '\0'; - - if (c == '=' && *p == ']' && str[0] != '\0') - { - /* If we have no collation data we use the default - collation in which each character is in a class - by itself. It also means that ASCII is the - character set and therefore we cannot have character - with more than one byte in the multibyte - representation. */ -# ifdef _LIBC - if (nrules == 0) -# endif - { - if (c1 != 1) - FREE_STACK_RETURN (REG_ECOLLATE); - - /* Throw away the ] at the end of the equivalence - class. */ - PATFETCH (c); - - /* Set the bit for the character. */ - SET_LIST_BIT (str[0]); - } -# ifdef _LIBC - else - { - /* Try to match the byte sequence in `str' against - those known to the collate implementation. - First find out whether the bytes in `str' are - actually from exactly one character. */ - const int32_t *table; - const unsigned char *weights; - const unsigned char *extra; - const int32_t *indirect; - int32_t idx; - const unsigned char *cp = str; - int ch; - - /* This #include defines a local function! */ -# include - - table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); - weights = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); - indirect = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB); - - idx = findidx (&cp); - if (idx == 0 || cp < str + c1) - /* This is no valid character. */ - FREE_STACK_RETURN (REG_ECOLLATE); - - /* Throw away the ] at the end of the equivalence - class. */ - PATFETCH (c); - - /* Now we have to go throught the whole table - and find all characters which have the same - first level weight. - - XXX Note that this is not entirely correct. - we would have to match multibyte sequences - but this is not possible with the current - implementation. */ - for (ch = 1; ch < 256; ++ch) - /* XXX This test would have to be changed if we - would allow matching multibyte sequences. */ - if (table[ch] > 0) - { - int32_t idx2 = table[ch]; - size_t len = weights[idx2]; - - /* Test whether the lenghts match. */ - if (weights[idx] == len) - { - /* They do. New compare the bytes of - the weight. */ - size_t cnt = 0; - - while (cnt < len - && (weights[idx + 1 + cnt] - == weights[idx2 + 1 + cnt])) - ++cnt; - - if (cnt == len) - /* They match. Mark the character as - acceptable. */ - SET_LIST_BIT (ch); - } - } - } -# endif - had_char_class = true; - } - else - { - c1++; - while (c1--) - PATUNFETCH; - SET_LIST_BIT ('['); - SET_LIST_BIT ('='); - range_start = '='; - had_char_class = false; - } - } - else if (syntax & RE_CHAR_CLASSES && c == '[' && *p == '.') - { - unsigned char str[128]; /* Should be large enough. */ -# ifdef _LIBC - uint32_t nrules = - _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); -# endif - - PATFETCH (c); - c1 = 0; - - /* If pattern is `[[.'. */ - if (p == pend) FREE_STACK_RETURN (REG_EBRACK); - - for (;;) - { - PATFETCH (c); - if ((c == '.' && *p == ']') || p == pend) - break; - if (c1 < sizeof (str)) - str[c1++] = c; - else - /* This is in any case an invalid class name. */ - str[0] = '\0'; - } - str[c1] = '\0'; - - if (c == '.' && *p == ']' && str[0] != '\0') - { - /* If we have no collation data we use the default - collation in which each character is the name - for its own class which contains only the one - character. It also means that ASCII is the - character set and therefore we cannot have character - with more than one byte in the multibyte - representation. */ -# ifdef _LIBC - if (nrules == 0) -# endif - { - if (c1 != 1) - FREE_STACK_RETURN (REG_ECOLLATE); - - /* Throw away the ] at the end of the equivalence - class. */ - PATFETCH (c); - - /* Set the bit for the character. */ - SET_LIST_BIT (str[0]); - range_start = ((const unsigned char *) str)[0]; - } -# ifdef _LIBC - else - { - /* Try to match the byte sequence in `str' against - those known to the collate implementation. - First find out whether the bytes in `str' are - actually from exactly one character. */ - int32_t table_size; - const int32_t *symb_table; - const unsigned char *extra; - int32_t idx; - int32_t elem; - int32_t second; - int32_t hash; - - table_size = - _NL_CURRENT_WORD (LC_COLLATE, - _NL_COLLATE_SYMB_HASH_SIZEMB); - symb_table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_TABLEMB); - extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_SYMB_EXTRAMB); - - /* Locate the character in the hashing table. */ - hash = elem_hash (str, c1); - - idx = 0; - elem = hash % table_size; - second = hash % (table_size - 2); - while (symb_table[2 * elem] != 0) - { - /* First compare the hashing value. */ - if (symb_table[2 * elem] == hash - && c1 == extra[symb_table[2 * elem + 1]] - && memcmp (str, - &extra[symb_table[2 * elem + 1] - + 1], - c1) == 0) - { - /* Yep, this is the entry. */ - idx = symb_table[2 * elem + 1]; - idx += 1 + extra[idx]; - break; - } - - /* Next entry. */ - elem += second; - } - - if (symb_table[2 * elem] == 0) - /* This is no valid character. */ - FREE_STACK_RETURN (REG_ECOLLATE); - - /* Throw away the ] at the end of the equivalence - class. */ - PATFETCH (c); - - /* Now add the multibyte character(s) we found - to the accept list. - - XXX Note that this is not entirely correct. - we would have to match multibyte sequences - but this is not possible with the current - implementation. Also, we have to match - collating symbols, which expand to more than - one file, as a whole and not allow the - individual bytes. */ - c1 = extra[idx++]; - if (c1 == 1) - range_start = extra[idx]; - while (c1-- > 0) - { - SET_LIST_BIT (extra[idx]); - ++idx; - } - } -# endif - had_char_class = false; - } - else - { - c1++; - while (c1--) - PATUNFETCH; - SET_LIST_BIT ('['); - SET_LIST_BIT ('.'); - range_start = '.'; - had_char_class = false; - } - } - else - { - had_char_class = false; - SET_LIST_BIT (c); - range_start = c; - } - } - - /* Discard any (non)matching list bytes that are all 0 at the - end of the map. Decrease the map-length byte too. */ - while ((int) b[-1] > 0 && b[b[-1] - 1] == 0) - b[-1]--; - b += b[-1]; -#endif /* WCHAR */ - } - break; - - - case '(': - if (syntax & RE_NO_BK_PARENS) - goto handle_open; - else - goto normal_char; - - - case ')': - if (syntax & RE_NO_BK_PARENS) - goto handle_close; - else - goto normal_char; - - - case '\n': - if (syntax & RE_NEWLINE_ALT) - goto handle_alt; - else - goto normal_char; - - - case '|': - if (syntax & RE_NO_BK_VBAR) - goto handle_alt; - else - goto normal_char; - - - case '{': - if (syntax & RE_INTERVALS && syntax & RE_NO_BK_BRACES) - goto handle_interval; - else - goto normal_char; - - - case '\\': - if (p == pend) FREE_STACK_RETURN (REG_EESCAPE); - - /* Do not translate the character after the \, so that we can - distinguish, e.g., \B from \b, even if we normally would - translate, e.g., B to b. */ - PATFETCH_RAW (c); - - switch (c) - { - case '(': - if (syntax & RE_NO_BK_PARENS) - goto normal_backslash; - - handle_open: - bufp->re_nsub++; - regnum++; - - if (COMPILE_STACK_FULL) - { - RETALLOC (compile_stack.stack, compile_stack.size << 1, - compile_stack_elt_t); - if (compile_stack.stack == NULL) return REG_ESPACE; - - compile_stack.size <<= 1; - } - - /* These are the values to restore when we hit end of this - group. They are all relative offsets, so that if the - whole pattern moves because of realloc, they will still - be valid. */ - COMPILE_STACK_TOP.begalt_offset = begalt - COMPILED_BUFFER_VAR; - COMPILE_STACK_TOP.fixup_alt_jump - = fixup_alt_jump ? fixup_alt_jump - COMPILED_BUFFER_VAR + 1 : 0; - COMPILE_STACK_TOP.laststart_offset = b - COMPILED_BUFFER_VAR; - COMPILE_STACK_TOP.regnum = regnum; - - /* We will eventually replace the 0 with the number of - groups inner to this one. But do not push a - start_memory for groups beyond the last one we can - represent in the compiled pattern. */ - if (regnum <= MAX_REGNUM) - { - COMPILE_STACK_TOP.inner_group_offset = b - - COMPILED_BUFFER_VAR + 2; - BUF_PUSH_3 (start_memory, regnum, 0); - } - - compile_stack.avail++; - - fixup_alt_jump = 0; - laststart = 0; - begalt = b; - /* If we've reached MAX_REGNUM groups, then this open - won't actually generate any code, so we'll have to - clear pending_exact explicitly. */ - pending_exact = 0; - break; - - - case ')': - if (syntax & RE_NO_BK_PARENS) goto normal_backslash; - - if (COMPILE_STACK_EMPTY) - { - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) - goto normal_backslash; - else - FREE_STACK_RETURN (REG_ERPAREN); - } - - handle_close: - if (fixup_alt_jump) - { /* Push a dummy failure point at the end of the - alternative for a possible future - `pop_failure_jump' to pop. See comments at - `push_dummy_failure' in `re_match_2'. */ - BUF_PUSH (push_dummy_failure); - - /* We allocated space for this jump when we assigned - to `fixup_alt_jump', in the `handle_alt' case below. */ - STORE_JUMP (jump_past_alt, fixup_alt_jump, b - 1); - } - - /* See similar code for backslashed left paren above. */ - if (COMPILE_STACK_EMPTY) - { - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) - goto normal_char; - else - FREE_STACK_RETURN (REG_ERPAREN); - } - - /* Since we just checked for an empty stack above, this - ``can't happen''. */ - assert (compile_stack.avail != 0); - { - /* We don't just want to restore into `regnum', because - later groups should continue to be numbered higher, - as in `(ab)c(de)' -- the second group is #2. */ - regnum_t this_group_regnum; - - compile_stack.avail--; - begalt = COMPILED_BUFFER_VAR + COMPILE_STACK_TOP.begalt_offset; - fixup_alt_jump - = COMPILE_STACK_TOP.fixup_alt_jump - ? COMPILED_BUFFER_VAR + COMPILE_STACK_TOP.fixup_alt_jump - 1 - : 0; - laststart = COMPILED_BUFFER_VAR + COMPILE_STACK_TOP.laststart_offset; - this_group_regnum = COMPILE_STACK_TOP.regnum; - /* If we've reached MAX_REGNUM groups, then this open - won't actually generate any code, so we'll have to - clear pending_exact explicitly. */ - pending_exact = 0; - - /* We're at the end of the group, so now we know how many - groups were inside this one. */ - if (this_group_regnum <= MAX_REGNUM) - { - UCHAR_T *inner_group_loc - = COMPILED_BUFFER_VAR + COMPILE_STACK_TOP.inner_group_offset; - - *inner_group_loc = regnum - this_group_regnum; - BUF_PUSH_3 (stop_memory, this_group_regnum, - regnum - this_group_regnum); - } - } - break; - - - case '|': /* `\|'. */ - if (syntax & RE_LIMITED_OPS || syntax & RE_NO_BK_VBAR) - goto normal_backslash; - handle_alt: - if (syntax & RE_LIMITED_OPS) - goto normal_char; - - /* Insert before the previous alternative a jump which - jumps to this alternative if the former fails. */ - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - INSERT_JUMP (on_failure_jump, begalt, - b + 2 + 2 * OFFSET_ADDRESS_SIZE); - pending_exact = 0; - b += 1 + OFFSET_ADDRESS_SIZE; - - /* The alternative before this one has a jump after it - which gets executed if it gets matched. Adjust that - jump so it will jump to this alternative's analogous - jump (put in below, which in turn will jump to the next - (if any) alternative's such jump, etc.). The last such - jump jumps to the correct final destination. A picture: - _____ _____ - | | | | - | v | v - a | b | c - - If we are at `b', then fixup_alt_jump right now points to a - three-byte space after `a'. We'll put in the jump, set - fixup_alt_jump to right after `b', and leave behind three - bytes which we'll fill in when we get to after `c'. */ - - if (fixup_alt_jump) - STORE_JUMP (jump_past_alt, fixup_alt_jump, b); - - /* Mark and leave space for a jump after this alternative, - to be filled in later either by next alternative or - when know we're at the end of a series of alternatives. */ - fixup_alt_jump = b; - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - b += 1 + OFFSET_ADDRESS_SIZE; - - laststart = 0; - begalt = b; - break; - - - case '{': - /* If \{ is a literal. */ - if (!(syntax & RE_INTERVALS) - /* If we're at `\{' and it's not the open-interval - operator. */ - || (syntax & RE_NO_BK_BRACES)) - goto normal_backslash; - - handle_interval: - { - /* If got here, then the syntax allows intervals. */ - - /* At least (most) this many matches must be made. */ - int lower_bound = -1, upper_bound = -1; - - /* Place in the uncompiled pattern (i.e., just after - the '{') to go back to if the interval is invalid. */ - const CHAR_T *beg_interval = p; - - if (p == pend) - goto invalid_interval; - - GET_UNSIGNED_NUMBER (lower_bound); - - if (c == ',') - { - GET_UNSIGNED_NUMBER (upper_bound); - if (upper_bound < 0) - upper_bound = RE_DUP_MAX; - } - else - /* Interval such as `{1}' => match exactly once. */ - upper_bound = lower_bound; - - if (! (0 <= lower_bound && lower_bound <= upper_bound)) - goto invalid_interval; - - if (!(syntax & RE_NO_BK_BRACES)) - { - if (c != '\\' || p == pend) - goto invalid_interval; - PATFETCH (c); - } - - if (c != '}') - goto invalid_interval; - - /* If it's invalid to have no preceding re. */ - if (!laststart) - { - if (syntax & RE_CONTEXT_INVALID_OPS - && !(syntax & RE_INVALID_INTERVAL_ORD)) - FREE_STACK_RETURN (REG_BADRPT); - else if (syntax & RE_CONTEXT_INDEP_OPS) - laststart = b; - else - goto unfetch_interval; - } - - /* We just parsed a valid interval. */ - - if (RE_DUP_MAX < upper_bound) - FREE_STACK_RETURN (REG_BADBR); - - /* If the upper bound is zero, don't want to succeed at - all; jump from `laststart' to `b + 3', which will be - the end of the buffer after we insert the jump. */ - /* ifdef WCHAR, 'b + 1 + OFFSET_ADDRESS_SIZE' - instead of 'b + 3'. */ - if (upper_bound == 0) - { - GET_BUFFER_SPACE (1 + OFFSET_ADDRESS_SIZE); - INSERT_JUMP (jump, laststart, b + 1 - + OFFSET_ADDRESS_SIZE); - b += 1 + OFFSET_ADDRESS_SIZE; - } - - /* Otherwise, we have a nontrivial interval. When - we're all done, the pattern will look like: - set_number_at - set_number_at - succeed_n - - jump_n - (The upper bound and `jump_n' are omitted if - `upper_bound' is 1, though.) */ - else - { /* If the upper bound is > 1, we need to insert - more at the end of the loop. */ - unsigned nbytes = 2 + 4 * OFFSET_ADDRESS_SIZE + - (upper_bound > 1) * (2 + 4 * OFFSET_ADDRESS_SIZE); - - GET_BUFFER_SPACE (nbytes); - - /* Initialize lower bound of the `succeed_n', even - though it will be set during matching by its - attendant `set_number_at' (inserted next), - because `re_compile_fastmap' needs to know. - Jump to the `jump_n' we might insert below. */ - INSERT_JUMP2 (succeed_n, laststart, - b + 1 + 2 * OFFSET_ADDRESS_SIZE - + (upper_bound > 1) * (1 + 2 * OFFSET_ADDRESS_SIZE) - , lower_bound); - b += 1 + 2 * OFFSET_ADDRESS_SIZE; - - /* Code to initialize the lower bound. Insert - before the `succeed_n'. The `5' is the last two - bytes of this `set_number_at', plus 3 bytes of - the following `succeed_n'. */ - /* ifdef WCHAR, The '1+2*OFFSET_ADDRESS_SIZE' - is the 'set_number_at', plus '1+OFFSET_ADDRESS_SIZE' - of the following `succeed_n'. */ - PREFIX(insert_op2) (set_number_at, laststart, 1 - + 2 * OFFSET_ADDRESS_SIZE, lower_bound, b); - b += 1 + 2 * OFFSET_ADDRESS_SIZE; - - if (upper_bound > 1) - { /* More than one repetition is allowed, so - append a backward jump to the `succeed_n' - that starts this interval. - - When we've reached this during matching, - we'll have matched the interval once, so - jump back only `upper_bound - 1' times. */ - STORE_JUMP2 (jump_n, b, laststart - + 2 * OFFSET_ADDRESS_SIZE + 1, - upper_bound - 1); - b += 1 + 2 * OFFSET_ADDRESS_SIZE; - - /* The location we want to set is the second - parameter of the `jump_n'; that is `b-2' as - an absolute address. `laststart' will be - the `set_number_at' we're about to insert; - `laststart+3' the number to set, the source - for the relative address. But we are - inserting into the middle of the pattern -- - so everything is getting moved up by 5. - Conclusion: (b - 2) - (laststart + 3) + 5, - i.e., b - laststart. - - We insert this at the beginning of the loop - so that if we fail during matching, we'll - reinitialize the bounds. */ - PREFIX(insert_op2) (set_number_at, laststart, - b - laststart, - upper_bound - 1, b); - b += 1 + 2 * OFFSET_ADDRESS_SIZE; - } - } - pending_exact = 0; - break; - - invalid_interval: - if (!(syntax & RE_INVALID_INTERVAL_ORD)) - FREE_STACK_RETURN (p == pend ? REG_EBRACE : REG_BADBR); - unfetch_interval: - /* Match the characters as literals. */ - p = beg_interval; - c = '{'; - if (syntax & RE_NO_BK_BRACES) - goto normal_char; - else - goto normal_backslash; - } - -#ifdef emacs - /* There is no way to specify the before_dot and after_dot - operators. rms says this is ok. --karl */ - case '=': - BUF_PUSH (at_dot); - break; - - case 's': - laststart = b; - PATFETCH (c); - BUF_PUSH_2 (syntaxspec, syntax_spec_code[c]); - break; - - case 'S': - laststart = b; - PATFETCH (c); - BUF_PUSH_2 (notsyntaxspec, syntax_spec_code[c]); - break; -#endif /* emacs */ - - - case 'w': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - laststart = b; - BUF_PUSH (wordchar); - break; - - - case 'W': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - laststart = b; - BUF_PUSH (notwordchar); - break; - - - case '<': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (wordbeg); - break; - - case '>': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (wordend); - break; - - case 'b': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (wordbound); - break; - - case 'B': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (notwordbound); - break; - - case '`': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (begbuf); - break; - - case '\'': - if (syntax & RE_NO_GNU_OPS) - goto normal_char; - BUF_PUSH (endbuf); - break; - - case '1': case '2': case '3': case '4': case '5': - case '6': case '7': case '8': case '9': - if (syntax & RE_NO_BK_REFS) - goto normal_char; - - c1 = c - '0'; - - if (c1 > regnum) - FREE_STACK_RETURN (REG_ESUBREG); - - /* Can't back reference to a subexpression if inside of it. */ - if (group_in_compile_stack (compile_stack, (regnum_t) c1)) - goto normal_char; - - laststart = b; - BUF_PUSH_2 (duplicate, c1); - break; - - - case '+': - case '?': - if (syntax & RE_BK_PLUS_QM) - goto handle_plus; - else - goto normal_backslash; - - default: - normal_backslash: - /* You might think it would be useful for \ to mean - not to translate; but if we don't translate it - it will never match anything. */ - c = TRANSLATE (c); - goto normal_char; - } - break; - - - default: - /* Expects the character in `c'. */ - normal_char: - /* If no exactn currently being built. */ - if (!pending_exact -#ifdef WCHAR - /* If last exactn handle binary(or character) and - new exactn handle character(or binary). */ - || is_exactn_bin != is_binary[p - 1 - pattern] -#endif /* WCHAR */ - - /* If last exactn not at current position. */ - || pending_exact + *pending_exact + 1 != b - - /* We have only one byte following the exactn for the count. */ - || *pending_exact == (1 << BYTEWIDTH) - 1 - - /* If followed by a repetition operator. */ - || *p == '*' || *p == '^' - || ((syntax & RE_BK_PLUS_QM) - ? *p == '\\' && (p[1] == '+' || p[1] == '?') - : (*p == '+' || *p == '?')) - || ((syntax & RE_INTERVALS) - && ((syntax & RE_NO_BK_BRACES) - ? *p == '{' - : (p[0] == '\\' && p[1] == '{')))) - { - /* Start building a new exactn. */ - - laststart = b; - -#ifdef WCHAR - /* Is this exactn binary data or character? */ - is_exactn_bin = is_binary[p - 1 - pattern]; - if (is_exactn_bin) - BUF_PUSH_2 (exactn_bin, 0); - else - BUF_PUSH_2 (exactn, 0); -#else - BUF_PUSH_2 (exactn, 0); -#endif /* WCHAR */ - pending_exact = b - 1; - } - - BUF_PUSH (c); - (*pending_exact)++; - break; - } /* switch (c) */ - } /* while p != pend */ - - - /* Through the pattern now. */ - - if (fixup_alt_jump) - STORE_JUMP (jump_past_alt, fixup_alt_jump, b); - - if (!COMPILE_STACK_EMPTY) - FREE_STACK_RETURN (REG_EPAREN); - - /* If we don't want backtracking, force success - the first time we reach the end of the compiled pattern. */ - if (syntax & RE_NO_POSIX_BACKTRACKING) - BUF_PUSH (succeed); - -#ifdef WCHAR - free (pattern); - free (mbs_offset); - free (is_binary); -#endif - free (compile_stack.stack); - - /* We have succeeded; set the length of the buffer. */ -#ifdef WCHAR - bufp->used = (uintptr_t) b - (uintptr_t) COMPILED_BUFFER_VAR; -#else - bufp->used = b - bufp->buffer; -#endif - -#ifdef DEBUG - if (debug) - { - DEBUG_PRINT1 ("\nCompiled pattern: \n"); - PREFIX(print_compiled_pattern) (bufp); - } -#endif /* DEBUG */ - -#ifndef MATCH_MAY_ALLOCATE - /* Initialize the failure stack to the largest possible stack. This - isn't necessary unless we're trying to avoid calling alloca in - the search and match routines. */ - { - int num_regs = bufp->re_nsub + 1; - - /* Since DOUBLE_FAIL_STACK refuses to double only if the current size - is strictly greater than re_max_failures, the largest possible stack - is 2 * re_max_failures failure points. */ - if (fail_stack.size < (2 * re_max_failures * MAX_FAILURE_ITEMS)) - { - fail_stack.size = (2 * re_max_failures * MAX_FAILURE_ITEMS); - -# ifdef emacs - if (! fail_stack.stack) - fail_stack.stack - = (PREFIX(fail_stack_elt_t) *) xmalloc (fail_stack.size - * sizeof (PREFIX(fail_stack_elt_t))); - else - fail_stack.stack - = (PREFIX(fail_stack_elt_t) *) xrealloc (fail_stack.stack, - (fail_stack.size - * sizeof (PREFIX(fail_stack_elt_t)))); -# else /* not emacs */ - if (! fail_stack.stack) - fail_stack.stack - = malloc (fail_stack.size * sizeof (PREFIX(fail_stack_elt_t))); - else - fail_stack.stack - = realloc (fail_stack.stack, - fail_stack.size * sizeof (PREFIX(fail_stack_elt_t))); -# endif /* not emacs */ - } - - PREFIX(regex_grow_registers) (num_regs); - } -#endif /* not MATCH_MAY_ALLOCATE */ - - return REG_NOERROR; -} /* regex_compile */ - -/* Subroutines for `regex_compile'. */ - -/* Store OP at LOC followed by two-byte integer parameter ARG. */ -/* ifdef WCHAR, integer parameter is 1 wchar_t. */ - -static void -PREFIX(store_op1) (re_opcode_t op, UCHAR_T *loc, int arg) -{ - *loc = (UCHAR_T) op; - STORE_NUMBER (loc + 1, arg); -} - - -/* Like `store_op1', but for two two-byte parameters ARG1 and ARG2. */ -/* ifdef WCHAR, integer parameter is 1 wchar_t. */ - -static void -PREFIX(store_op2) (re_opcode_t op, UCHAR_T *loc, int arg1, int arg2) -{ - *loc = (UCHAR_T) op; - STORE_NUMBER (loc + 1, arg1); - STORE_NUMBER (loc + 1 + OFFSET_ADDRESS_SIZE, arg2); -} - - -/* Copy the bytes from LOC to END to open up three bytes of space at LOC - for OP followed by two-byte integer parameter ARG. */ -/* ifdef WCHAR, integer parameter is 1 wchar_t. */ - -static void -PREFIX(insert_op1) (re_opcode_t op, UCHAR_T *loc, int arg, UCHAR_T *end) -{ - register UCHAR_T *pfrom = end; - register UCHAR_T *pto = end + 1 + OFFSET_ADDRESS_SIZE; - - while (pfrom != loc) - *--pto = *--pfrom; - - PREFIX(store_op1) (op, loc, arg); -} - - -/* Like `insert_op1', but for two two-byte parameters ARG1 and ARG2. */ -/* ifdef WCHAR, integer parameter is 1 wchar_t. */ - -static void -PREFIX(insert_op2) (re_opcode_t op, UCHAR_T *loc, int arg1, int arg2, - UCHAR_T *end) -{ - register UCHAR_T *pfrom = end; - register UCHAR_T *pto = end + 1 + 2 * OFFSET_ADDRESS_SIZE; - - while (pfrom != loc) - *--pto = *--pfrom; - - PREFIX(store_op2) (op, loc, arg1, arg2); -} - - -/* P points to just after a ^ in PATTERN. Return true if that ^ comes - after an alternative or a begin-subexpression. We assume there is at - least one character before the ^. */ - -static boolean -PREFIX(at_begline_loc_p) (const CHAR_T *pattern, const CHAR_T *p, - reg_syntax_t syntax) -{ - const CHAR_T *prev = p - 2; - boolean prev_prev_backslash = prev > pattern && prev[-1] == '\\'; - - return - /* After a subexpression? */ - (*prev == '(' && (syntax & RE_NO_BK_PARENS || prev_prev_backslash)) - /* After an alternative? */ - || (*prev == '|' && (syntax & RE_NO_BK_VBAR || prev_prev_backslash)); -} - - -/* The dual of at_begline_loc_p. This one is for $. We assume there is - at least one character after the $, i.e., `P < PEND'. */ - -static boolean -PREFIX(at_endline_loc_p) (const CHAR_T *p, const CHAR_T *pend, - reg_syntax_t syntax) -{ - const CHAR_T *next = p; - boolean next_backslash = *next == '\\'; - const CHAR_T *next_next = p + 1 < pend ? p + 1 : 0; - - return - /* Before a subexpression? */ - (syntax & RE_NO_BK_PARENS ? *next == ')' - : next_backslash && next_next && *next_next == ')') - /* Before an alternative? */ - || (syntax & RE_NO_BK_VBAR ? *next == '|' - : next_backslash && next_next && *next_next == '|'); -} - -#else /* not INSIDE_RECURSION */ - -/* Returns true if REGNUM is in one of COMPILE_STACK's elements and - false if it's not. */ - -static boolean -group_in_compile_stack (compile_stack_type compile_stack, - regnum_t regnum) -{ - int this_element; - - for (this_element = compile_stack.avail - 1; - this_element >= 0; - this_element--) - if (compile_stack.stack[this_element].regnum == regnum) - return true; - - return false; -} -#endif /* not INSIDE_RECURSION */ - -#ifdef INSIDE_RECURSION - -#ifdef WCHAR -/* This insert space, which size is "num", into the pattern at "loc". - "end" must point the end of the allocated buffer. */ -static void -insert_space (int num, CHAR_T *loc, CHAR_T *end) -{ - register CHAR_T *pto = end; - register CHAR_T *pfrom = end - num; - - while (pfrom >= loc) - *pto-- = *pfrom--; -} -#endif /* WCHAR */ - -#ifdef WCHAR -static reg_errcode_t -wcs_compile_range (CHAR_T range_start_char, - const CHAR_T **p_ptr, const CHAR_T *pend, - RE_TRANSLATE_TYPE translate, reg_syntax_t syntax, - CHAR_T *b, CHAR_T *char_set) -{ - const CHAR_T *p = *p_ptr; - CHAR_T range_start, range_end; - reg_errcode_t ret; -# ifdef _LIBC - uint32_t nrules; - uint32_t start_val, end_val; -# endif - if (p == pend) - return REG_ERANGE; - -# ifdef _LIBC - nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); - if (nrules != 0) - { - const char *collseq = (const char *) _NL_CURRENT(LC_COLLATE, - _NL_COLLATE_COLLSEQWC); - const unsigned char *extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); - - if (range_start_char < -1) - { - /* range_start is a collating symbol. */ - int32_t *wextra; - /* Retreive the index and get collation sequence value. */ - wextra = (int32_t*)(extra + char_set[-range_start_char]); - start_val = wextra[1 + *wextra]; - } - else - start_val = collseq_table_lookup(collseq, TRANSLATE(range_start_char)); - - end_val = collseq_table_lookup (collseq, TRANSLATE (p[0])); - - /* Report an error if the range is empty and the syntax prohibits - this. */ - ret = ((syntax & RE_NO_EMPTY_RANGES) - && (start_val > end_val))? REG_ERANGE : REG_NOERROR; - - /* Insert space to the end of the char_ranges. */ - insert_space(2, b - char_set[5] - 2, b - 1); - *(b - char_set[5] - 2) = (wchar_t)start_val; - *(b - char_set[5] - 1) = (wchar_t)end_val; - char_set[4]++; /* ranges_index */ - } - else -# endif - { - range_start = (range_start_char >= 0)? TRANSLATE (range_start_char): - range_start_char; - range_end = TRANSLATE (p[0]); - /* Report an error if the range is empty and the syntax prohibits - this. */ - ret = ((syntax & RE_NO_EMPTY_RANGES) - && (range_start > range_end))? REG_ERANGE : REG_NOERROR; - - /* Insert space to the end of the char_ranges. */ - insert_space(2, b - char_set[5] - 2, b - 1); - *(b - char_set[5] - 2) = range_start; - *(b - char_set[5] - 1) = range_end; - char_set[4]++; /* ranges_index */ - } - /* Have to increment the pointer into the pattern string, so the - caller isn't still at the ending character. */ - (*p_ptr)++; - - return ret; -} -#else /* BYTE */ -/* Read the ending character of a range (in a bracket expression) from the - uncompiled pattern *P_PTR (which ends at PEND). We assume the - starting character is in `P[-2]'. (`P[-1]' is the character `-'.) - Then we set the translation of all bits between the starting and - ending characters (inclusive) in the compiled pattern B. - - Return an error code. - - We use these short variable names so we can use the same macros as - `regex_compile' itself. */ - -static reg_errcode_t -byte_compile_range (unsigned int range_start_char, - const char **p_ptr, const char *pend, - RE_TRANSLATE_TYPE translate, reg_syntax_t syntax, - unsigned char *b) -{ - unsigned this_char; - const char *p = *p_ptr; - reg_errcode_t ret; -# if _LIBC - const unsigned char *collseq; - unsigned int start_colseq; - unsigned int end_colseq; -# else - unsigned end_char; -# endif - - if (p == pend) - return REG_ERANGE; - - /* Have to increment the pointer into the pattern string, so the - caller isn't still at the ending character. */ - (*p_ptr)++; - - /* Report an error if the range is empty and the syntax prohibits this. */ - ret = syntax & RE_NO_EMPTY_RANGES ? REG_ERANGE : REG_NOERROR; - -# if _LIBC - collseq = (const unsigned char *) _NL_CURRENT (LC_COLLATE, - _NL_COLLATE_COLLSEQMB); - - start_colseq = collseq[(unsigned char) TRANSLATE (range_start_char)]; - end_colseq = collseq[(unsigned char) TRANSLATE (p[0])]; - for (this_char = 0; this_char <= (unsigned char) -1; ++this_char) - { - unsigned int this_colseq = collseq[(unsigned char) TRANSLATE (this_char)]; - - if (start_colseq <= this_colseq && this_colseq <= end_colseq) - { - SET_LIST_BIT (TRANSLATE (this_char)); - ret = REG_NOERROR; - } - } -# else - /* Here we see why `this_char' has to be larger than an `unsigned - char' -- we would otherwise go into an infinite loop, since all - characters <= 0xff. */ - range_start_char = TRANSLATE (range_start_char); - /* TRANSLATE(p[0]) is casted to char (not unsigned char) in TRANSLATE, - and some compilers cast it to int implicitly, so following for_loop - may fall to (almost) infinite loop. - e.g. If translate[p[0]] = 0xff, end_char may equals to 0xffffffff. - To avoid this, we cast p[0] to unsigned int and truncate it. */ - end_char = ((unsigned)TRANSLATE(p[0]) & ((1 << BYTEWIDTH) - 1)); - - for (this_char = range_start_char; this_char <= end_char; ++this_char) - { - SET_LIST_BIT (TRANSLATE (this_char)); - ret = REG_NOERROR; - } -# endif - - return ret; -} -#endif /* WCHAR */ - -/* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in - BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible - characters can start a string that matches the pattern. This fastmap - is used by re_search to skip quickly over impossible starting points. - - The caller must supply the address of a (1 << BYTEWIDTH)-byte data - area as BUFP->fastmap. - - We set the `fastmap', `fastmap_accurate', and `can_be_null' fields in - the pattern buffer. - - Returns 0 if we succeed, -2 if an internal error. */ - -#ifdef WCHAR -/* local function for re_compile_fastmap. - truncate wchar_t character to char. */ - -static unsigned char -truncate_wchar (CHAR_T c) -{ - unsigned char buf[MB_CUR_MAX]; - mbstate_t state; - int retval; - memset (&state, '\0', sizeof (state)); - retval = wcrtomb (buf, c, &state); - return retval > 0 ? buf[0] : (unsigned char) c; -} -#endif /* WCHAR */ - -static int -PREFIX(re_compile_fastmap) (struct re_pattern_buffer *bufp) -{ - int j, k; -#ifdef MATCH_MAY_ALLOCATE - PREFIX(fail_stack_type) fail_stack; -#endif -#ifndef REGEX_MALLOC - char *destination; -#endif - - register char *fastmap = bufp->fastmap; - -#ifdef WCHAR - /* We need to cast pattern to (wchar_t*), because we casted this compiled - pattern to (char*) in regex_compile. */ - UCHAR_T *pattern = (UCHAR_T*)bufp->buffer; - register UCHAR_T *pend = (UCHAR_T*) (bufp->buffer + bufp->used); -#else /* BYTE */ - UCHAR_T *pattern = bufp->buffer; - register UCHAR_T *pend = pattern + bufp->used; -#endif /* WCHAR */ - UCHAR_T *p = pattern; - -#ifdef REL_ALLOC - /* This holds the pointer to the failure stack, when - it is allocated relocatably. */ - fail_stack_elt_t *failure_stack_ptr; -#endif - - /* Assume that each path through the pattern can be null until - proven otherwise. We set this false at the bottom of switch - statement, to which we get only if a particular path doesn't - match the empty string. */ - boolean path_can_be_null = true; - - /* We aren't doing a `succeed_n' to begin with. */ - boolean succeed_n_p = false; - - assert (fastmap != NULL && p != NULL); - - INIT_FAIL_STACK (); - bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */ - bufp->fastmap_accurate = 1; /* It will be when we're done. */ - bufp->can_be_null = 0; - - while (1) - { - if (p == pend || *p == succeed) - { - /* We have reached the (effective) end of pattern. */ - if (!FAIL_STACK_EMPTY ()) - { - bufp->can_be_null |= path_can_be_null; - - /* Reset for next path. */ - path_can_be_null = true; - - p = fail_stack.stack[--fail_stack.avail].pointer; - - continue; - } - else - break; - } - - /* We should never be about to go beyond the end of the pattern. */ - assert (p < pend); - - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) - { - - /* I guess the idea here is to simply not bother with a fastmap - if a backreference is used, since it's too hard to figure out - the fastmap for the corresponding group. Setting - `can_be_null' stops `re_search_2' from using the fastmap, so - that is all we do. */ - case duplicate: - bufp->can_be_null = 1; - goto done; - - - /* Following are the cases which match a character. These end - with `break'. */ - -#ifdef WCHAR - case exactn: - fastmap[truncate_wchar(p[1])] = 1; - break; -#else /* BYTE */ - case exactn: - fastmap[p[1]] = 1; - break; -#endif /* WCHAR */ -#ifdef MBS_SUPPORT - case exactn_bin: - fastmap[p[1]] = 1; - break; -#endif - -#ifdef WCHAR - /* It is hard to distinguish fastmap from (multi byte) characters - which depends on current locale. */ - case charset: - case charset_not: - case wordchar: - case notwordchar: - bufp->can_be_null = 1; - goto done; -#else /* BYTE */ - case charset: - for (j = *p++ * BYTEWIDTH - 1; j >= 0; j--) - if (p[j / BYTEWIDTH] & (1 << (j % BYTEWIDTH))) - fastmap[j] = 1; - break; - - - case charset_not: - /* Chars beyond end of map must be allowed. */ - for (j = *p * BYTEWIDTH; j < (1 << BYTEWIDTH); j++) - fastmap[j] = 1; - - for (j = *p++ * BYTEWIDTH - 1; j >= 0; j--) - if (!(p[j / BYTEWIDTH] & (1 << (j % BYTEWIDTH)))) - fastmap[j] = 1; - break; - - - case wordchar: - for (j = 0; j < (1 << BYTEWIDTH); j++) - if (SYNTAX (j) == Sword) - fastmap[j] = 1; - break; - - - case notwordchar: - for (j = 0; j < (1 << BYTEWIDTH); j++) - if (SYNTAX (j) != Sword) - fastmap[j] = 1; - break; -#endif /* WCHAR */ - - case anychar: - { - int fastmap_newline = fastmap['\n']; - - /* `.' matches anything ... */ - for (j = 0; j < (1 << BYTEWIDTH); j++) - fastmap[j] = 1; - - /* ... except perhaps newline. */ - if (!(bufp->syntax & RE_DOT_NEWLINE)) - fastmap['\n'] = fastmap_newline; - - /* Return if we have already set `can_be_null'; if we have, - then the fastmap is irrelevant. Something's wrong here. */ - else if (bufp->can_be_null) - goto done; - - /* Otherwise, have to check alternative paths. */ - break; - } - -#ifdef emacs - case syntaxspec: - k = *p++; - for (j = 0; j < (1 << BYTEWIDTH); j++) - if (SYNTAX (j) == (enum syntaxcode) k) - fastmap[j] = 1; - break; - - - case notsyntaxspec: - k = *p++; - for (j = 0; j < (1 << BYTEWIDTH); j++) - if (SYNTAX (j) != (enum syntaxcode) k) - fastmap[j] = 1; - break; - - - /* All cases after this match the empty string. These end with - `continue'. */ - - - case before_dot: - case at_dot: - case after_dot: - continue; -#endif /* emacs */ - - - case no_op: - case begline: - case endline: - case begbuf: - case endbuf: - case wordbound: - case notwordbound: - case wordbeg: - case wordend: - case push_dummy_failure: - continue; - - - case jump_n: - case pop_failure_jump: - case maybe_pop_jump: - case jump: - case jump_past_alt: - case dummy_failure_jump: - EXTRACT_NUMBER_AND_INCR (j, p); - p += j; - if (j > 0) - continue; - - /* Jump backward implies we just went through the body of a - loop and matched nothing. Opcode jumped to should be - `on_failure_jump' or `succeed_n'. Just treat it like an - ordinary jump. For a * loop, it has pushed its failure - point already; if so, discard that as redundant. */ - if ((re_opcode_t) *p != on_failure_jump - && (re_opcode_t) *p != succeed_n) - continue; - - p++; - EXTRACT_NUMBER_AND_INCR (j, p); - p += j; - - /* If what's on the stack is where we are now, pop it. */ - if (!FAIL_STACK_EMPTY () - && fail_stack.stack[fail_stack.avail - 1].pointer == p) - fail_stack.avail--; - - continue; - - - case on_failure_jump: - case on_failure_keep_string_jump: - handle_on_failure_jump: - EXTRACT_NUMBER_AND_INCR (j, p); - - /* For some patterns, e.g., `(a?)?', `p+j' here points to the - end of the pattern. We don't want to push such a point, - since when we restore it above, entering the switch will - increment `p' past the end of the pattern. We don't need - to push such a point since we obviously won't find any more - fastmap entries beyond `pend'. Such a pattern can match - the null string, though. */ - if (p + j < pend) - { - if (!PUSH_PATTERN_OP (p + j, fail_stack)) - { - RESET_FAIL_STACK (); - return -2; - } - } - else - bufp->can_be_null = 1; - - if (succeed_n_p) - { - EXTRACT_NUMBER_AND_INCR (k, p); /* Skip the n. */ - succeed_n_p = false; - } - - continue; - - - case succeed_n: - /* Get to the number of times to succeed. */ - p += OFFSET_ADDRESS_SIZE; - - /* Increment p past the n for when k != 0. */ - EXTRACT_NUMBER_AND_INCR (k, p); - if (k == 0) - { - p -= 2 * OFFSET_ADDRESS_SIZE; - succeed_n_p = true; /* Spaghetti code alert. */ - goto handle_on_failure_jump; - } - continue; - - - case set_number_at: - p += 2 * OFFSET_ADDRESS_SIZE; - continue; - - - case start_memory: - case stop_memory: - p += 2; - continue; - - - default: - abort (); /* We have listed all the cases. */ - } /* switch *p++ */ - - /* Getting here means we have found the possible starting - characters for one path of the pattern -- and that the empty - string does not match. We need not follow this path further. - Instead, look at the next alternative (remembered on the - stack), or quit if no more. The test at the top of the loop - does these things. */ - path_can_be_null = false; - p = pend; - } /* while p */ - - /* Set `can_be_null' for the last path (also the first path, if the - pattern is empty). */ - bufp->can_be_null |= path_can_be_null; - - done: - RESET_FAIL_STACK (); - return 0; -} - -#else /* not INSIDE_RECURSION */ - -int -re_compile_fastmap (struct re_pattern_buffer *bufp) -{ -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - return wcs_re_compile_fastmap(bufp); - else -# endif - return byte_re_compile_fastmap(bufp); -} /* re_compile_fastmap */ -#ifdef _LIBC -weak_alias (__re_compile_fastmap, re_compile_fastmap) -#endif - - -/* Set REGS to hold NUM_REGS registers, storing them in STARTS and - ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use - this memory for recording register information. STARTS and ENDS - must be allocated using the malloc library routine, and must each - be at least NUM_REGS * sizeof (regoff_t) bytes long. - - If NUM_REGS == 0, then subsequent matches should allocate their own - register data. - - Unless this function is called, the first search or match using - PATTERN_BUFFER will allocate its own register data, without - freeing the old data. */ - -void -re_set_registers (struct re_pattern_buffer *bufp, - struct re_registers *regs, - unsigned int num_regs, - regoff_t *starts, regoff_t *ends) -{ - if (num_regs) - { - bufp->regs_allocated = REGS_REALLOCATE; - regs->num_regs = num_regs; - regs->start = starts; - regs->end = ends; - } - else - { - bufp->regs_allocated = REGS_UNALLOCATED; - regs->num_regs = 0; - regs->start = regs->end = (regoff_t *) 0; - } -} -#ifdef _LIBC -weak_alias (__re_set_registers, re_set_registers) -#endif - -/* Searching routines. */ - -/* Like re_search_2, below, but only one string is specified, and - doesn't let you say where to stop matching. */ - -int -re_search (struct re_pattern_buffer *bufp, - const char *string, - int size, int startpos, int range, - struct re_registers *regs) -{ - return re_search_2 (bufp, NULL, 0, string, size, startpos, range, - regs, size); -} -#ifdef _LIBC -weak_alias (__re_search, re_search) -#endif - - -/* Using the compiled pattern in BUFP->buffer, first tries to match the - virtual concatenation of STRING1 and STRING2, starting first at index - STARTPOS, then at STARTPOS + 1, and so on. - - STRING1 and STRING2 have length SIZE1 and SIZE2, respectively. - - RANGE is how far to scan while trying to match. RANGE = 0 means try - only at STARTPOS; in general, the last start tried is STARTPOS + - RANGE. - - In REGS, return the indices of the virtual concatenation of STRING1 - and STRING2 that matched the entire BUFP->buffer and its contained - subexpressions. - - Do not consider matching one past the index STOP in the virtual - concatenation of STRING1 and STRING2. - - We return either the position in the strings at which the match was - found, -1 if no match, or -2 if error (such as failure - stack overflow). */ - -int -re_search_2 (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int startpos, int range, - struct re_registers *regs, - int stop) -{ -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - return wcs_re_search_2 (bufp, string1, size1, string2, size2, startpos, - range, regs, stop); - else -# endif - return byte_re_search_2 (bufp, string1, size1, string2, size2, startpos, - range, regs, stop); -} /* re_search_2 */ -#ifdef _LIBC -weak_alias (__re_search_2, re_search_2) -#endif - -#endif /* not INSIDE_RECURSION */ - -#ifdef INSIDE_RECURSION - -#ifdef MATCH_MAY_ALLOCATE -# define FREE_VAR(var) if (var) REGEX_FREE (var); var = NULL -#else -# define FREE_VAR(var) if (var) free (var); var = NULL -#endif - -#ifdef WCHAR -# define MAX_ALLOCA_SIZE 2000 - -# define FREE_WCS_BUFFERS() \ - do { \ - if (size1 > MAX_ALLOCA_SIZE) \ - { \ - free (wcs_string1); \ - free (mbs_offset1); \ - } \ - else \ - { \ - FREE_VAR (wcs_string1); \ - FREE_VAR (mbs_offset1); \ - } \ - if (size2 > MAX_ALLOCA_SIZE) \ - { \ - free (wcs_string2); \ - free (mbs_offset2); \ - } \ - else \ - { \ - FREE_VAR (wcs_string2); \ - FREE_VAR (mbs_offset2); \ - } \ - } while (0) - -#endif - - -static int -PREFIX(re_search_2) (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int startpos, int range, - struct re_registers *regs, - int stop) -{ - int val; - register char *fastmap = bufp->fastmap; - register RE_TRANSLATE_TYPE translate = bufp->translate; - int total_size = size1 + size2; - int endpos = startpos + range; -#ifdef WCHAR - /* We need wchar_t* buffers correspond to cstring1, cstring2. */ - wchar_t *wcs_string1 = NULL, *wcs_string2 = NULL; - /* We need the size of wchar_t buffers correspond to csize1, csize2. */ - int wcs_size1 = 0, wcs_size2 = 0; - /* offset buffer for optimizatoin. See convert_mbs_to_wc. */ - int *mbs_offset1 = NULL, *mbs_offset2 = NULL; - /* They hold whether each wchar_t is binary data or not. */ - char *is_binary = NULL; -#endif /* WCHAR */ - - /* Check for out-of-range STARTPOS. */ - if (startpos < 0 || startpos > total_size) - return -1; - - /* Fix up RANGE if it might eventually take us outside - the virtual concatenation of STRING1 and STRING2. - Make sure we won't move STARTPOS below 0 or above TOTAL_SIZE. */ - if (endpos < 0) - range = 0 - startpos; - else if (endpos > total_size) - range = total_size - startpos; - - /* If the search isn't to be a backwards one, don't waste time in a - search for a pattern that must be anchored. */ - if (bufp->used > 0 && range > 0 - && ((re_opcode_t) bufp->buffer[0] == begbuf - /* `begline' is like `begbuf' if it cannot match at newlines. */ - || ((re_opcode_t) bufp->buffer[0] == begline - && !bufp->newline_anchor))) - { - if (startpos > 0) - return -1; - else - range = 1; - } - -#ifdef emacs - /* In a forward search for something that starts with \=. - don't keep searching past point. */ - if (bufp->used > 0 && (re_opcode_t) bufp->buffer[0] == at_dot && range > 0) - { - range = PT - startpos; - if (range <= 0) - return -1; - } -#endif /* emacs */ - - /* Update the fastmap now if not correct already. */ - if (fastmap && !bufp->fastmap_accurate) - if (re_compile_fastmap (bufp) == -2) - return -2; - -#ifdef WCHAR - /* Allocate wchar_t array for wcs_string1 and wcs_string2 and - fill them with converted string. */ - if (size1 != 0) - { - if (size1 > MAX_ALLOCA_SIZE) - { - wcs_string1 = TALLOC (size1 + 1, CHAR_T); - mbs_offset1 = TALLOC (size1 + 1, int); - is_binary = TALLOC (size1 + 1, char); - } - else - { - wcs_string1 = REGEX_TALLOC (size1 + 1, CHAR_T); - mbs_offset1 = REGEX_TALLOC (size1 + 1, int); - is_binary = REGEX_TALLOC (size1 + 1, char); - } - if (!wcs_string1 || !mbs_offset1 || !is_binary) - { - if (size1 > MAX_ALLOCA_SIZE) - { - free (wcs_string1); - free (mbs_offset1); - free (is_binary); - } - else - { - FREE_VAR (wcs_string1); - FREE_VAR (mbs_offset1); - FREE_VAR (is_binary); - } - return -2; - } - wcs_size1 = convert_mbs_to_wcs(wcs_string1, string1, size1, - mbs_offset1, is_binary); - wcs_string1[wcs_size1] = L'\0'; /* for a sentinel */ - if (size1 > MAX_ALLOCA_SIZE) - free (is_binary); - else - FREE_VAR (is_binary); - } - if (size2 != 0) - { - if (size2 > MAX_ALLOCA_SIZE) - { - wcs_string2 = TALLOC (size2 + 1, CHAR_T); - mbs_offset2 = TALLOC (size2 + 1, int); - is_binary = TALLOC (size2 + 1, char); - } - else - { - wcs_string2 = REGEX_TALLOC (size2 + 1, CHAR_T); - mbs_offset2 = REGEX_TALLOC (size2 + 1, int); - is_binary = REGEX_TALLOC (size2 + 1, char); - } - if (!wcs_string2 || !mbs_offset2 || !is_binary) - { - FREE_WCS_BUFFERS (); - if (size2 > MAX_ALLOCA_SIZE) - free (is_binary); - else - FREE_VAR (is_binary); - return -2; - } - wcs_size2 = convert_mbs_to_wcs(wcs_string2, string2, size2, - mbs_offset2, is_binary); - wcs_string2[wcs_size2] = L'\0'; /* for a sentinel */ - if (size2 > MAX_ALLOCA_SIZE) - free (is_binary); - else - FREE_VAR (is_binary); - } -#endif /* WCHAR */ - - - /* Loop through the string, looking for a place to start matching. */ - for (;;) - { - /* If a fastmap is supplied, skip quickly over characters that - cannot be the start of a match. If the pattern can match the - null string, however, we don't need to skip characters; we want - the first null string. */ - if (fastmap && startpos < total_size && !bufp->can_be_null) - { - if (range > 0) /* Searching forwards. */ - { - register const char *d; - register int lim = 0; - int irange = range; - - if (startpos < size1 && startpos + range >= size1) - lim = range - (size1 - startpos); - - d = (startpos >= size1 ? string2 - size1 : string1) + startpos; - - /* Written out as an if-else to avoid testing `translate' - inside the loop. */ - if (translate) - while (range > lim - && !fastmap[(unsigned char) - translate[(unsigned char) *d++]]) - range--; - else - while (range > lim && !fastmap[(unsigned char) *d++]) - range--; - - startpos += irange - range; - } - else /* Searching backwards. */ - { - register CHAR_T c = (size1 == 0 || startpos >= size1 - ? string2[startpos - size1] - : string1[startpos]); - - if (!fastmap[(unsigned char) TRANSLATE (c)]) - goto advance; - } - } - - /* If can't match the null string, and that's all we have left, fail. */ - if (range >= 0 && startpos == total_size && fastmap - && !bufp->can_be_null) - { -#ifdef WCHAR - FREE_WCS_BUFFERS (); -#endif - return -1; - } - -#ifdef WCHAR - val = wcs_re_match_2_internal (bufp, string1, size1, string2, - size2, startpos, regs, stop, - wcs_string1, wcs_size1, - wcs_string2, wcs_size2, - mbs_offset1, mbs_offset2); -#else /* BYTE */ - val = byte_re_match_2_internal (bufp, string1, size1, string2, - size2, startpos, regs, stop); -#endif /* BYTE */ - -#ifndef REGEX_MALLOC -# ifdef C_ALLOCA - alloca (0); -# endif -#endif - - if (val >= 0) - { -#ifdef WCHAR - FREE_WCS_BUFFERS (); -#endif - return startpos; - } - - if (val == -2) - { -#ifdef WCHAR - FREE_WCS_BUFFERS (); -#endif - return -2; - } - - advance: - if (!range) - break; - else if (range > 0) - { - range--; - startpos++; - } - else - { - range++; - startpos--; - } - } -#ifdef WCHAR - FREE_WCS_BUFFERS (); -#endif - return -1; -} - -#ifdef WCHAR -/* This converts PTR, a pointer into one of the search wchar_t strings - `string1' and `string2' into an multibyte string offset from the - beginning of that string. We use mbs_offset to optimize. - See convert_mbs_to_wcs. */ -# define POINTER_TO_OFFSET(ptr) \ - (FIRST_STRING_P (ptr) \ - ? ((regoff_t)(mbs_offset1 != NULL? mbs_offset1[(ptr)-string1] : 0)) \ - : ((regoff_t)((mbs_offset2 != NULL? mbs_offset2[(ptr)-string2] : 0) \ - + csize1))) -#else /* BYTE */ -/* This converts PTR, a pointer into one of the search strings `string1' - and `string2' into an offset from the beginning of that string. */ -# define POINTER_TO_OFFSET(ptr) \ - (FIRST_STRING_P (ptr) \ - ? ((regoff_t) ((ptr) - string1)) \ - : ((regoff_t) ((ptr) - string2 + size1))) -#endif /* WCHAR */ - -/* Macros for dealing with the split strings in re_match_2. */ - -#define MATCHING_IN_FIRST_STRING (dend == end_match_1) - -/* Call before fetching a character with *d. This switches over to - string2 if necessary. */ -#define PREFETCH() \ - while (d == dend) \ - { \ - /* End of string2 => fail. */ \ - if (dend == end_match_2) \ - goto fail; \ - /* End of string1 => advance to string2. */ \ - d = string2; \ - dend = end_match_2; \ - } - -/* Test if at very beginning or at very end of the virtual concatenation - of `string1' and `string2'. If only one string, it's `string2'. */ -#define AT_STRINGS_BEG(d) ((d) == (size1 ? string1 : string2) || !size2) -#define AT_STRINGS_END(d) ((d) == end2) - - -/* Test if D points to a character which is word-constituent. We have - two special cases to check for: if past the end of string1, look at - the first character in string2; and if before the beginning of - string2, look at the last character in string1. */ -#ifdef WCHAR -/* Use internationalized API instead of SYNTAX. */ -# define WORDCHAR_P(d) \ - (iswalnum ((wint_t)((d) == end1 ? *string2 \ - : (d) == string2 - 1 ? *(end1 - 1) : *(d))) != 0 \ - || ((d) == end1 ? *string2 \ - : (d) == string2 - 1 ? *(end1 - 1) : *(d)) == L'_') -#else /* BYTE */ -# define WORDCHAR_P(d) \ - (SYNTAX ((d) == end1 ? *string2 \ - : (d) == string2 - 1 ? *(end1 - 1) : *(d)) \ - == Sword) -#endif /* WCHAR */ - -/* Disabled due to a compiler bug -- see comment at case wordbound */ -#if 0 -/* Test if the character before D and the one at D differ with respect - to being word-constituent. */ -#define AT_WORD_BOUNDARY(d) \ - (AT_STRINGS_BEG (d) || AT_STRINGS_END (d) \ - || WORDCHAR_P (d - 1) != WORDCHAR_P (d)) -#endif - -/* Free everything we malloc. */ -#ifdef MATCH_MAY_ALLOCATE -# ifdef WCHAR -# define FREE_VARIABLES() \ - do { \ - REGEX_FREE_STACK (fail_stack.stack); \ - FREE_VAR (regstart); \ - FREE_VAR (regend); \ - FREE_VAR (old_regstart); \ - FREE_VAR (old_regend); \ - FREE_VAR (best_regstart); \ - FREE_VAR (best_regend); \ - FREE_VAR (reg_info); \ - FREE_VAR (reg_dummy); \ - FREE_VAR (reg_info_dummy); \ - if (!cant_free_wcs_buf) \ - { \ - FREE_VAR (string1); \ - FREE_VAR (string2); \ - FREE_VAR (mbs_offset1); \ - FREE_VAR (mbs_offset2); \ - } \ - } while (0) -# else /* BYTE */ -# define FREE_VARIABLES() \ - do { \ - REGEX_FREE_STACK (fail_stack.stack); \ - FREE_VAR (regstart); \ - FREE_VAR (regend); \ - FREE_VAR (old_regstart); \ - FREE_VAR (old_regend); \ - FREE_VAR (best_regstart); \ - FREE_VAR (best_regend); \ - FREE_VAR (reg_info); \ - FREE_VAR (reg_dummy); \ - FREE_VAR (reg_info_dummy); \ - } while (0) -# endif /* WCHAR */ -#else -# ifdef WCHAR -# define FREE_VARIABLES() \ - do { \ - if (!cant_free_wcs_buf) \ - { \ - FREE_VAR (string1); \ - FREE_VAR (string2); \ - FREE_VAR (mbs_offset1); \ - FREE_VAR (mbs_offset2); \ - } \ - } while (0) -# else /* BYTE */ -# define FREE_VARIABLES() ((void)0) /* Do nothing! But inhibit gcc warning. */ -# endif /* WCHAR */ -#endif /* not MATCH_MAY_ALLOCATE */ - -/* These values must meet several constraints. They must not be valid - register values; since we have a limit of 255 registers (because - we use only one byte in the pattern for the register number), we can - use numbers larger than 255. They must differ by 1, because of - NUM_FAILURE_ITEMS above. And the value for the lowest register must - be larger than the value for the highest register, so we do not try - to actually save any registers when none are active. */ -#define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH) -#define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1) - -#else /* not INSIDE_RECURSION */ -/* Matching routines. */ - -#ifndef emacs /* Emacs never uses this. */ -/* re_match is like re_match_2 except it takes only a single string. */ - -int -re_match (struct re_pattern_buffer *bufp, - const char *string, - int size, int pos, - struct re_registers *regs) -{ - int result; -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - result = wcs_re_match_2_internal (bufp, NULL, 0, string, size, - pos, regs, size, - NULL, 0, NULL, 0, NULL, NULL); - else -# endif - result = byte_re_match_2_internal (bufp, NULL, 0, string, size, - pos, regs, size); -# ifndef REGEX_MALLOC -# ifdef C_ALLOCA - alloca (0); -# endif -# endif - return result; -} -# ifdef _LIBC -weak_alias (__re_match, re_match) -# endif -#endif /* not emacs */ - -#endif /* not INSIDE_RECURSION */ - -#ifdef INSIDE_RECURSION -static boolean PREFIX(group_match_null_string_p) (UCHAR_T **p, - UCHAR_T *end, - PREFIX(register_info_type) *reg_info); -static boolean PREFIX(alt_match_null_string_p) (UCHAR_T *p, - UCHAR_T *end, - PREFIX(register_info_type) *reg_info); -static boolean PREFIX(common_op_match_null_string_p) (UCHAR_T **p, - UCHAR_T *end, - PREFIX(register_info_type) *reg_info); -static int PREFIX(bcmp_translate) (const CHAR_T *s1, const CHAR_T *s2, - int len, char *translate); -#else /* not INSIDE_RECURSION */ - -/* re_match_2 matches the compiled pattern in BUFP against the - the (virtual) concatenation of STRING1 and STRING2 (of length SIZE1 - and SIZE2, respectively). We start matching at POS, and stop - matching at STOP. - - If REGS is non-null and the `no_sub' field of BUFP is nonzero, we - store offsets for the substring each group matched in REGS. See the - documentation for exactly how many groups we fill. - - We return -1 if no match, -2 if an internal error (such as the - failure stack overflowing). Otherwise, we return the length of the - matched substring. */ - -int -re_match_2 (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int pos, struct re_registers *regs, - int stop) -{ - int result; -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - result = wcs_re_match_2_internal (bufp, string1, size1, string2, size2, - pos, regs, stop, - NULL, 0, NULL, 0, NULL, NULL); - else -# endif - result = byte_re_match_2_internal (bufp, string1, size1, string2, size2, - pos, regs, stop); - -#ifndef REGEX_MALLOC -# ifdef C_ALLOCA - alloca (0); -# endif -#endif - return result; -} -#ifdef _LIBC -weak_alias (__re_match_2, re_match_2) -#endif - -#endif /* not INSIDE_RECURSION */ - -#ifdef INSIDE_RECURSION - -#ifdef WCHAR - -/* This check the substring (from 0, to length) of the multibyte string, - to which offset_buffer correspond. And count how many wchar_t_characters - the substring occupy. We use offset_buffer to optimization. - See convert_mbs_to_wcs. */ - -static int -count_mbs_length (int *offset_buffer, int length) -{ - int upper, lower; - - /* Check whether the size is valid. */ - if (length < 0) - return -1; - - if (offset_buffer == NULL) - return 0; - - /* If there are no multibyte character, offset_buffer[i] == i. - Optmize for this case. */ - if (offset_buffer[length] == length) - return length; - - /* Set up upper with length. (because for all i, offset_buffer[i] >= i) */ - upper = length; - lower = 0; - - while (true) - { - int middle = (lower + upper) / 2; - if (middle == lower || middle == upper) - break; - if (offset_buffer[middle] > length) - upper = middle; - else if (offset_buffer[middle] < length) - lower = middle; - else - return middle; - } - - return -1; -} -#endif /* WCHAR */ - -/* This is a separate function so that we can force an alloca cleanup - afterwards. */ -#ifdef WCHAR -static int -wcs_re_match_2_internal (struct re_pattern_buffer *bufp, - const char *cstring1, int csize1, - const char *cstring2, int csize2, - int pos, - struct re_registers *regs, - int stop, - /* string1 == string2 == NULL means - string1/2, size1/2 and mbs_offset1/2 need - setting up in this function. */ - /* We need wchar_t * buffers corresponding to - cstring1, cstring2. */ - wchar_t *string1, int size1, - wchar_t *string2, int size2, - /* Offset buffer for optimization. See - convert_mbs_to_wc. */ - int *mbs_offset1, - int *mbs_offset2) -#else /* BYTE */ -static int -byte_re_match_2_internal (struct re_pattern_buffer *bufp, - const char *string1, int size1, - const char *string2, int size2, - int pos, - struct re_registers *regs, - int stop) -#endif /* BYTE */ -{ - /* General temporaries. */ - int mcnt; - UCHAR_T *p1; -#ifdef WCHAR - /* They hold whether each wchar_t is binary data or not. */ - char *is_binary = NULL; - /* If true, we can't free string1/2, mbs_offset1/2. */ - int cant_free_wcs_buf = 1; -#endif /* WCHAR */ - - /* Just past the end of the corresponding string. */ - const CHAR_T *end1, *end2; - - /* Pointers into string1 and string2, just past the last characters in - each to consider matching. */ - const CHAR_T *end_match_1, *end_match_2; - - /* Where we are in the data, and the end of the current string. */ - const CHAR_T *d, *dend; - - /* Where we are in the pattern, and the end of the pattern. */ -#ifdef WCHAR - UCHAR_T *pattern, *p; - register UCHAR_T *pend; -#else /* BYTE */ - UCHAR_T *p = bufp->buffer; - register UCHAR_T *pend = p + bufp->used; -#endif /* WCHAR */ - - /* Mark the opcode just after a start_memory, so we can test for an - empty subpattern when we get to the stop_memory. */ - UCHAR_T *just_past_start_mem = 0; - - /* We use this to map every character in the string. */ - RE_TRANSLATE_TYPE translate = bufp->translate; - - /* Failure point stack. Each place that can handle a failure further - down the line pushes a failure point on this stack. It consists of - restart, regend, and reg_info for all registers corresponding to - the subexpressions we're currently inside, plus the number of such - registers, and, finally, two char *'s. The first char * is where - to resume scanning the pattern; the second one is where to resume - scanning the strings. If the latter is zero, the failure point is - a ``dummy''; if a failure happens and the failure point is a dummy, - it gets discarded and the next next one is tried. */ -#ifdef MATCH_MAY_ALLOCATE /* otherwise, this is global. */ - PREFIX(fail_stack_type) fail_stack; -#endif -#ifdef DEBUG - static unsigned failure_id; - unsigned nfailure_points_pushed = 0, nfailure_points_popped = 0; -#endif - -#ifdef REL_ALLOC - /* This holds the pointer to the failure stack, when - it is allocated relocatably. */ - fail_stack_elt_t *failure_stack_ptr; -#endif - - /* We fill all the registers internally, independent of what we - return, for use in backreferences. The number here includes - an element for register zero. */ - size_t num_regs = bufp->re_nsub + 1; - - /* The currently active registers. */ - active_reg_t lowest_active_reg = NO_LOWEST_ACTIVE_REG; - active_reg_t highest_active_reg = NO_HIGHEST_ACTIVE_REG; - - /* Information on the contents of registers. These are pointers into - the input strings; they record just what was matched (on this - attempt) by a subexpression part of the pattern, that is, the - regnum-th regstart pointer points to where in the pattern we began - matching and the regnum-th regend points to right after where we - stopped matching the regnum-th subexpression. (The zeroth register - keeps track of what the whole pattern matches.) */ -#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */ - const CHAR_T **regstart, **regend; -#endif - - /* If a group that's operated upon by a repetition operator fails to - match anything, then the register for its start will need to be - restored because it will have been set to wherever in the string we - are when we last see its open-group operator. Similarly for a - register's end. */ -#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */ - const CHAR_T **old_regstart, **old_regend; -#endif - - /* The is_active field of reg_info helps us keep track of which (possibly - nested) subexpressions we are currently in. The matched_something - field of reg_info[reg_num] helps us tell whether or not we have - matched any of the pattern so far this time through the reg_num-th - subexpression. These two fields get reset each time through any - loop their register is in. */ -#ifdef MATCH_MAY_ALLOCATE /* otherwise, this is global. */ - PREFIX(register_info_type) *reg_info; -#endif - - /* The following record the register info as found in the above - variables when we find a match better than any we've seen before. - This happens as we backtrack through the failure points, which in - turn happens only if we have not yet matched the entire string. */ - unsigned best_regs_set = false; -#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */ - const CHAR_T **best_regstart, **best_regend; -#endif - - /* Logically, this is `best_regend[0]'. But we don't want to have to - allocate space for that if we're not allocating space for anything - else (see below). Also, we never need info about register 0 for - any of the other register vectors, and it seems rather a kludge to - treat `best_regend' differently than the rest. So we keep track of - the end of the best match so far in a separate variable. We - initialize this to NULL so that when we backtrack the first time - and need to test it, it's not garbage. */ - const CHAR_T *match_end = NULL; - - /* This helps SET_REGS_MATCHED avoid doing redundant work. */ - int set_regs_matched_done = 0; - - /* Used when we pop values we don't care about. */ -#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */ - const CHAR_T **reg_dummy; - PREFIX(register_info_type) *reg_info_dummy; -#endif - -#ifdef DEBUG - /* Counts the total number of registers pushed. */ - unsigned num_regs_pushed = 0; -#endif - - /* Definitions for state transitions. More efficiently for gcc. */ -#ifdef __GNUC__ -# if defined HAVE_SUBTRACT_LOCAL_LABELS && defined SHARED -# define NEXT \ - do \ - { \ - int offset; \ - const void *__unbounded ptr; \ - offset = (p == pend \ - ? 0 : jmptable[SWITCH_ENUM_CAST ((re_opcode_t) *p++)]); \ - ptr = &&end_of_pattern + offset; \ - goto *ptr; \ - } \ - while (0) -# define REF(x) \ - &&label_##x - &&end_of_pattern -# define JUMP_TABLE_TYPE const int -# else -# define NEXT \ - do \ - { \ - const void *__unbounded ptr; \ - ptr = (p == pend ? &&end_of_pattern \ - : jmptable[SWITCH_ENUM_CAST ((re_opcode_t) *p++)]); \ - goto *ptr; \ - } \ - while (0) -# define REF(x) \ - &&label_##x -# define JUMP_TABLE_TYPE const void *const -# endif -# define CASE(x) label_##x - static JUMP_TABLE_TYPE jmptable[] = - { - REF (no_op), - REF (succeed), - REF (exactn), -# ifdef MBS_SUPPORT - REF (exactn_bin), -# endif - REF (anychar), - REF (charset), - REF (charset_not), - REF (start_memory), - REF (stop_memory), - REF (duplicate), - REF (begline), - REF (endline), - REF (begbuf), - REF (endbuf), - REF (jump), - REF (jump_past_alt), - REF (on_failure_jump), - REF (on_failure_keep_string_jump), - REF (pop_failure_jump), - REF (maybe_pop_jump), - REF (dummy_failure_jump), - REF (push_dummy_failure), - REF (succeed_n), - REF (jump_n), - REF (set_number_at), - REF (wordchar), - REF (notwordchar), - REF (wordbeg), - REF (wordend), - REF (wordbound), - REF (notwordbound) -# ifdef emacs - ,REF (before_dot), - REF (at_dot), - REF (after_dot), - REF (syntaxspec), - REF (notsyntaxspec) -# endif - }; -#else -# define NEXT \ - break -# define CASE(x) \ - case x -#endif - - DEBUG_PRINT1 ("\n\nEntering re_match_2.\n"); - - INIT_FAIL_STACK (); - -#ifdef MATCH_MAY_ALLOCATE - /* Do not bother to initialize all the register variables if there are - no groups in the pattern, as it takes a fair amount of time. If - there are groups, we include space for register 0 (the whole - pattern), even though we never use it, since it simplifies the - array indexing. We should fix this. */ - if (bufp->re_nsub) - { - regstart = REGEX_TALLOC (num_regs, const CHAR_T *); - regend = REGEX_TALLOC (num_regs, const CHAR_T *); - old_regstart = REGEX_TALLOC (num_regs, const CHAR_T *); - old_regend = REGEX_TALLOC (num_regs, const CHAR_T *); - best_regstart = REGEX_TALLOC (num_regs, const CHAR_T *); - best_regend = REGEX_TALLOC (num_regs, const CHAR_T *); - reg_info = REGEX_TALLOC (num_regs, PREFIX(register_info_type)); - reg_dummy = REGEX_TALLOC (num_regs, const CHAR_T *); - reg_info_dummy = REGEX_TALLOC (num_regs, PREFIX(register_info_type)); - - if (!(regstart && regend && old_regstart && old_regend && reg_info - && best_regstart && best_regend && reg_dummy && reg_info_dummy)) - { - FREE_VARIABLES (); - return -2; - } - } - else - { - /* We must initialize all our variables to NULL, so that - `FREE_VARIABLES' doesn't try to free them. */ - regstart = regend = old_regstart = old_regend = best_regstart - = best_regend = reg_dummy = NULL; - reg_info = reg_info_dummy = (PREFIX(register_info_type) *) NULL; - } -#endif /* MATCH_MAY_ALLOCATE */ - - /* The starting position is bogus. */ -#ifdef WCHAR - if (pos < 0 || pos > csize1 + csize2) -#else /* BYTE */ - if (pos < 0 || pos > size1 + size2) -#endif - { - FREE_VARIABLES (); - return -1; - } - -#ifdef WCHAR - /* Allocate wchar_t array for string1 and string2 and - fill them with converted string. */ - if (string1 == NULL && string2 == NULL) - { - /* We need seting up buffers here. */ - - /* We must free wcs buffers in this function. */ - cant_free_wcs_buf = 0; - - if (csize1 != 0) - { - string1 = REGEX_TALLOC (csize1 + 1, CHAR_T); - mbs_offset1 = REGEX_TALLOC (csize1 + 1, int); - is_binary = REGEX_TALLOC (csize1 + 1, char); - if (!string1 || !mbs_offset1 || !is_binary) - { - FREE_VAR (string1); - FREE_VAR (mbs_offset1); - FREE_VAR (is_binary); - return -2; - } - } - if (csize2 != 0) - { - string2 = REGEX_TALLOC (csize2 + 1, CHAR_T); - mbs_offset2 = REGEX_TALLOC (csize2 + 1, int); - is_binary = REGEX_TALLOC (csize2 + 1, char); - if (!string2 || !mbs_offset2 || !is_binary) - { - FREE_VAR (string1); - FREE_VAR (mbs_offset1); - FREE_VAR (string2); - FREE_VAR (mbs_offset2); - FREE_VAR (is_binary); - return -2; - } - size2 = convert_mbs_to_wcs(string2, cstring2, csize2, - mbs_offset2, is_binary); - string2[size2] = L'\0'; /* for a sentinel */ - FREE_VAR (is_binary); - } - } - - /* We need to cast pattern to (wchar_t*), because we casted this compiled - pattern to (char*) in regex_compile. */ - p = pattern = (CHAR_T*)bufp->buffer; - pend = (CHAR_T*)(bufp->buffer + bufp->used); - -#endif /* WCHAR */ - - /* Initialize subexpression text positions to -1 to mark ones that no - start_memory/stop_memory has been seen for. Also initialize the - register information struct. */ - for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++) - { - regstart[mcnt] = regend[mcnt] - = old_regstart[mcnt] = old_regend[mcnt] = REG_UNSET_VALUE; - - REG_MATCH_NULL_STRING_P (reg_info[mcnt]) = MATCH_NULL_UNSET_VALUE; - IS_ACTIVE (reg_info[mcnt]) = 0; - MATCHED_SOMETHING (reg_info[mcnt]) = 0; - EVER_MATCHED_SOMETHING (reg_info[mcnt]) = 0; - } - - /* We move `string1' into `string2' if the latter's empty -- but not if - `string1' is null. */ - if (size2 == 0 && string1 != NULL) - { - string2 = string1; - size2 = size1; - string1 = 0; - size1 = 0; -#ifdef WCHAR - mbs_offset2 = mbs_offset1; - csize2 = csize1; - mbs_offset1 = NULL; - csize1 = 0; -#endif - } - end1 = string1 + size1; - end2 = string2 + size2; - - /* Compute where to stop matching, within the two strings. */ -#ifdef WCHAR - if (stop <= csize1) - { - mcnt = count_mbs_length(mbs_offset1, stop); - end_match_1 = string1 + mcnt; - end_match_2 = string2; - } - else - { - if (stop > csize1 + csize2) - stop = csize1 + csize2; - end_match_1 = end1; - mcnt = count_mbs_length(mbs_offset2, stop-csize1); - end_match_2 = string2 + mcnt; - } - if (mcnt < 0) - { /* count_mbs_length return error. */ - FREE_VARIABLES (); - return -1; - } -#else - if (stop <= size1) - { - end_match_1 = string1 + stop; - end_match_2 = string2; - } - else - { - end_match_1 = end1; - end_match_2 = string2 + stop - size1; - } -#endif /* WCHAR */ - - /* `p' scans through the pattern as `d' scans through the data. - `dend' is the end of the input string that `d' points within. `d' - is advanced into the following input string whenever necessary, but - this happens before fetching; therefore, at the beginning of the - loop, `d' can be pointing at the end of a string, but it cannot - equal `string2'. */ -#ifdef WCHAR - if (size1 > 0 && pos <= csize1) - { - mcnt = count_mbs_length(mbs_offset1, pos); - d = string1 + mcnt; - dend = end_match_1; - } - else - { - mcnt = count_mbs_length(mbs_offset2, pos-csize1); - d = string2 + mcnt; - dend = end_match_2; - } - - if (mcnt < 0) - { /* count_mbs_length return error. */ - FREE_VARIABLES (); - return -1; - } -#else - if (size1 > 0 && pos <= size1) - { - d = string1 + pos; - dend = end_match_1; - } - else - { - d = string2 + pos - size1; - dend = end_match_2; - } -#endif /* WCHAR */ - - DEBUG_PRINT1 ("The compiled pattern is:\n"); - DEBUG_PRINT_COMPILED_PATTERN (bufp, p, pend); - DEBUG_PRINT1 ("The string to match is: `"); - DEBUG_PRINT_DOUBLE_STRING (d, string1, size1, string2, size2); - DEBUG_PRINT1 ("'\n"); - - /* This loops over pattern commands. It exits by returning from the - function if the match is complete, or it drops through if the match - fails at this starting point in the input data. */ - for (;;) - { -#ifdef _LIBC - DEBUG_PRINT2 ("\n%p: ", p); -#else - DEBUG_PRINT2 ("\n0x%x: ", p); -#endif - -#ifdef __GNUC__ - NEXT; -#else - if (p == pend) -#endif - { -#ifdef __GNUC__ - end_of_pattern: -#endif - /* End of pattern means we might have succeeded. */ - DEBUG_PRINT1 ("end of pattern ... "); - - /* If we haven't matched the entire string, and we want the - longest match, try backtracking. */ - if (d != end_match_2) - { - /* 1 if this match is the best seen so far. */ - boolean best_match_p; - { - /* 1 if this match ends in the same string (string1 or string2) - as the best previous match. */ - boolean same_str_p = (FIRST_STRING_P (match_end) - == MATCHING_IN_FIRST_STRING); - - /* AIX compiler got confused when this was combined - with the previous declaration. */ - if (same_str_p) - best_match_p = d > match_end; - else - best_match_p = !MATCHING_IN_FIRST_STRING; - } - - DEBUG_PRINT1 ("backtracking.\n"); - - if (!FAIL_STACK_EMPTY ()) - { /* More failure points to try. */ - - /* If exceeds best match so far, save it. */ - if (!best_regs_set || best_match_p) - { - best_regs_set = true; - match_end = d; - - DEBUG_PRINT1 ("\nSAVING match as best so far.\n"); - - for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++) - { - best_regstart[mcnt] = regstart[mcnt]; - best_regend[mcnt] = regend[mcnt]; - } - } - goto fail; - } - - /* If no failure points, don't restore garbage. And if - last match is real best match, don't restore second - best one. */ - else if (best_regs_set && !best_match_p) - { - restore_best_regs: - /* Restore best match. It may happen that `dend == - end_match_1' while the restored d is in string2. - For example, the pattern `x.*y.*z' against the - strings `x-' and `y-z-', if the two strings are - not consecutive in memory. */ - DEBUG_PRINT1 ("Restoring best registers.\n"); - - d = match_end; - dend = ((d >= string1 && d <= end1) - ? end_match_1 : end_match_2); - - for (mcnt = 1; (unsigned) mcnt < num_regs; mcnt++) - { - regstart[mcnt] = best_regstart[mcnt]; - regend[mcnt] = best_regend[mcnt]; - } - } - } /* d != end_match_2 */ - - succeed_label: - DEBUG_PRINT1 ("Accepting match.\n"); - /* If caller wants register contents data back, do it. */ - if (regs && !bufp->no_sub) - { - /* Have the register data arrays been allocated? */ - if (bufp->regs_allocated == REGS_UNALLOCATED) - { /* No. So allocate them with malloc. We need one - extra element beyond `num_regs' for the `-1' marker - GNU code uses. */ - regs->num_regs = MAX (RE_NREGS, num_regs + 1); - regs->start = TALLOC (regs->num_regs, regoff_t); - regs->end = TALLOC (regs->num_regs, regoff_t); - if (regs->start == NULL || regs->end == NULL) - { - FREE_VARIABLES (); - return -2; - } - bufp->regs_allocated = REGS_REALLOCATE; - } - else if (bufp->regs_allocated == REGS_REALLOCATE) - { /* Yes. If we need more elements than were already - allocated, reallocate them. If we need fewer, just - leave it alone. */ - if (regs->num_regs < num_regs + 1) - { - regs->num_regs = num_regs + 1; - RETALLOC (regs->start, regs->num_regs, regoff_t); - RETALLOC (regs->end, regs->num_regs, regoff_t); - if (regs->start == NULL || regs->end == NULL) - { - FREE_VARIABLES (); - return -2; - } - } - } - else - { - /* These braces fend off a "empty body in an else-statement" - warning under GCC when assert expands to nothing. */ - assert (bufp->regs_allocated == REGS_FIXED); - } - - /* Convert the pointer data in `regstart' and `regend' to - indices. Register zero has to be set differently, - since we haven't kept track of any info for it. */ - if (regs->num_regs > 0) - { - regs->start[0] = pos; -#ifdef WCHAR - if (MATCHING_IN_FIRST_STRING) - regs->end[0] = (mbs_offset1 != NULL ? - mbs_offset1[d-string1] : 0); - else - regs->end[0] = csize1 + (mbs_offset2 != NULL - ? mbs_offset2[d-string2] : 0); -#else - regs->end[0] = (MATCHING_IN_FIRST_STRING - ? ((regoff_t) (d - string1)) - : ((regoff_t) (d - string2 + size1))); -#endif /* WCHAR */ - } - - /* Go through the first `min (num_regs, regs->num_regs)' - registers, since that is all we initialized. */ - for (mcnt = 1; (unsigned) mcnt < MIN (num_regs, regs->num_regs); - mcnt++) - { - if (REG_UNSET (regstart[mcnt]) || REG_UNSET (regend[mcnt])) - regs->start[mcnt] = regs->end[mcnt] = -1; - else - { - regs->start[mcnt] - = (regoff_t) POINTER_TO_OFFSET (regstart[mcnt]); - regs->end[mcnt] - = (regoff_t) POINTER_TO_OFFSET (regend[mcnt]); - } - } - - /* If the regs structure we return has more elements than - were in the pattern, set the extra elements to -1. If - we (re)allocated the registers, this is the case, - because we always allocate enough to have at least one - -1 at the end. */ - for (mcnt = num_regs; (unsigned) mcnt < regs->num_regs; mcnt++) - regs->start[mcnt] = regs->end[mcnt] = -1; - } /* regs && !bufp->no_sub */ - - DEBUG_PRINT4 ("%u failure points pushed, %u popped (%u remain).\n", - nfailure_points_pushed, nfailure_points_popped, - nfailure_points_pushed - nfailure_points_popped); - DEBUG_PRINT2 ("%u registers pushed.\n", num_regs_pushed); - -#ifdef WCHAR - if (MATCHING_IN_FIRST_STRING) - mcnt = mbs_offset1 != NULL ? mbs_offset1[d-string1] : 0; - else - mcnt = (mbs_offset2 != NULL ? mbs_offset2[d-string2] : 0) + - csize1; - mcnt -= pos; -#else - mcnt = d - pos - (MATCHING_IN_FIRST_STRING - ? string1 : string2 - size1); -#endif /* WCHAR */ - - DEBUG_PRINT2 ("Returning %d from re_match_2.\n", mcnt); - - FREE_VARIABLES (); - return mcnt; - } - -#ifndef __GNUC__ - /* Otherwise match next pattern command. */ - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) - { -#endif - /* Ignore these. Used to ignore the n of succeed_n's which - currently have n == 0. */ - CASE (no_op): - DEBUG_PRINT1 ("EXECUTING no_op.\n"); - NEXT; - - CASE (succeed): - DEBUG_PRINT1 ("EXECUTING succeed.\n"); - goto succeed_label; - - /* Match the next n pattern characters exactly. The following - byte in the pattern defines n, and the n bytes after that - are the characters to match. */ - CASE (exactn): -#ifdef MBS_SUPPORT - CASE (exactn_bin): -#endif - mcnt = *p++; - DEBUG_PRINT2 ("EXECUTING exactn %d.\n", mcnt); - - /* This is written out as an if-else so we don't waste time - testing `translate' inside the loop. */ - if (translate) - { - do - { - PREFETCH (); -#ifdef WCHAR - if (*d <= 0xff) - { - if ((UCHAR_T) translate[(unsigned char) *d++] - != (UCHAR_T) *p++) - goto fail; - } - else - { - if (*d++ != (CHAR_T) *p++) - goto fail; - } -#else - if ((UCHAR_T) translate[(unsigned char) *d++] - != (UCHAR_T) *p++) - goto fail; -#endif /* WCHAR */ - } - while (--mcnt); - } - else - { - do - { - PREFETCH (); - if (*d++ != (CHAR_T) *p++) goto fail; - } - while (--mcnt); - } - SET_REGS_MATCHED (); - NEXT; - - - /* Match any character except possibly a newline or a null. */ - CASE (anychar): - DEBUG_PRINT1 ("EXECUTING anychar.\n"); - - PREFETCH (); - - if ((!(bufp->syntax & RE_DOT_NEWLINE) && TRANSLATE (*d) == '\n') - || (bufp->syntax & RE_DOT_NOT_NULL && TRANSLATE (*d) == '\000')) - goto fail; - - SET_REGS_MATCHED (); - DEBUG_PRINT2 (" Matched `%ld'.\n", (long int) *d); - d++; - NEXT; - - - CASE (charset): - CASE (charset_not): - { - register UCHAR_T c; -#ifdef WCHAR - unsigned int i, char_class_length, coll_symbol_length, - equiv_class_length, ranges_length, chars_length, length; - CHAR_T *workp, *workp2, *charset_top; -#define WORK_BUFFER_SIZE 128 - CHAR_T str_buf[WORK_BUFFER_SIZE]; -# ifdef _LIBC - uint32_t nrules; -# endif /* _LIBC */ -#endif /* WCHAR */ - boolean invert = (re_opcode_t) *(p - 1) == charset_not; - - DEBUG_PRINT2 ("EXECUTING charset%s.\n", invert ? "_not" : ""); - PREFETCH (); - c = TRANSLATE (*d); /* The character to match. */ -#ifdef WCHAR -# ifdef _LIBC - nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); -# endif /* _LIBC */ - charset_top = p - 1; - char_class_length = *p++; - coll_symbol_length = *p++; - equiv_class_length = *p++; - ranges_length = *p++; - chars_length = *p++; - /* p points charset[6], so the address of the next instruction - (charset[l+m+n+2o+k+p']) equals p[l+m+n+2*o+p'], - where l=length of char_classes, m=length of collating_symbol, - n=equivalence_class, o=length of char_range, - p'=length of character. */ - workp = p; - /* Update p to indicate the next instruction. */ - p += char_class_length + coll_symbol_length+ equiv_class_length + - 2*ranges_length + chars_length; - - /* match with char_class? */ - for (i = 0; i < char_class_length ; i += CHAR_CLASS_SIZE) - { - wctype_t wctype; - uintptr_t alignedp = ((uintptr_t)workp - + __alignof__(wctype_t) - 1) - & ~(uintptr_t)(__alignof__(wctype_t) - 1); - wctype = *((wctype_t*)alignedp); - workp += CHAR_CLASS_SIZE; - if (iswctype((wint_t)c, wctype)) - goto char_set_matched; - } - - /* match with collating_symbol? */ -# ifdef _LIBC - if (nrules != 0) - { - const unsigned char *extra = (const unsigned char *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); - - for (workp2 = workp + coll_symbol_length ; workp < workp2 ; - workp++) - { - int32_t *wextra; - wextra = (int32_t*)(extra + *workp++); - for (i = 0; i < *wextra; ++i) - if (TRANSLATE(d[i]) != wextra[1 + i]) - break; - - if (i == *wextra) - { - /* Update d, however d will be incremented at - char_set_matched:, we decrement d here. */ - d += i - 1; - goto char_set_matched; - } - } - } - else /* (nrules == 0) */ -# endif - /* If we can't look up collation data, we use wcscoll - instead. */ - { - for (workp2 = workp + coll_symbol_length ; workp < workp2 ;) - { - const CHAR_T *backup_d = d, *backup_dend = dend; - length = wcslen (workp); - - /* If wcscoll(the collating symbol, whole string) > 0, - any substring of the string never match with the - collating symbol. */ - if (wcscoll (workp, d) > 0) - { - workp += length + 1; - continue; - } - - /* First, we compare the collating symbol with - the first character of the string. - If it don't match, we add the next character to - the compare buffer in turn. */ - for (i = 0 ; i < WORK_BUFFER_SIZE-1 ; i++, d++) - { - int match; - if (d == dend) - { - if (dend == end_match_2) - break; - d = string2; - dend = end_match_2; - } - - /* add next character to the compare buffer. */ - str_buf[i] = TRANSLATE(*d); - str_buf[i+1] = '\0'; - - match = wcscoll (workp, str_buf); - if (match == 0) - goto char_set_matched; - - if (match < 0) - /* (str_buf > workp) indicate (str_buf + X > workp), - because for all X (str_buf + X > str_buf). - So we don't need continue this loop. */ - break; - - /* Otherwise(str_buf < workp), - (str_buf+next_character) may equals (workp). - So we continue this loop. */ - } - /* not matched */ - d = backup_d; - dend = backup_dend; - workp += length + 1; - } - } - /* match with equivalence_class? */ -# ifdef _LIBC - if (nrules != 0) - { - const CHAR_T *backup_d = d, *backup_dend = dend; - /* Try to match the equivalence class against - those known to the collate implementation. */ - const int32_t *table; - const int32_t *weights; - const int32_t *extra; - const int32_t *indirect; - int32_t idx, idx2; - wint_t *cp; - size_t len; - - /* This #include defines a local function! */ -# include - - table = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEWC); - weights = (const wint_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTWC); - extra = (const wint_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAWC); - indirect = (const int32_t *) - _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTWC); - - /* Write 1 collating element to str_buf, and - get its index. */ - idx2 = 0; - - for (i = 0 ; idx2 == 0 && i < WORK_BUFFER_SIZE - 1; i++) - { - cp = (wint_t*)str_buf; - if (d == dend) - { - if (dend == end_match_2) - break; - d = string2; - dend = end_match_2; - } - str_buf[i] = TRANSLATE(*(d+i)); - str_buf[i+1] = '\0'; /* sentinel */ - idx2 = findidx ((const wint_t**)&cp); - } - - /* Update d, however d will be incremented at - char_set_matched:, we decrement d here. */ - d = backup_d + ((wchar_t*)cp - (wchar_t*)str_buf - 1); - if (d >= dend) - { - if (dend == end_match_2) - d = dend; - else - { - d = string2; - dend = end_match_2; - } - } - - len = weights[idx2]; - - for (workp2 = workp + equiv_class_length ; workp < workp2 ; - workp++) - { - idx = (int32_t)*workp; - /* We already checked idx != 0 in regex_compile. */ - - if (idx2 != 0 && len == weights[idx]) - { - int cnt = 0; - while (cnt < len && (weights[idx + 1 + cnt] - == weights[idx2 + 1 + cnt])) - ++cnt; - - if (cnt == len) - goto char_set_matched; - } - } - /* not matched */ - d = backup_d; - dend = backup_dend; - } - else /* (nrules == 0) */ -# endif - /* If we can't look up collation data, we use wcscoll - instead. */ - { - for (workp2 = workp + equiv_class_length ; workp < workp2 ;) - { - const CHAR_T *backup_d = d, *backup_dend = dend; - length = wcslen (workp); - - /* If wcscoll(the collating symbol, whole string) > 0, - any substring of the string never match with the - collating symbol. */ - if (wcscoll (workp, d) > 0) - { - workp += length + 1; - break; - } - - /* First, we compare the equivalence class with - the first character of the string. - If it don't match, we add the next character to - the compare buffer in turn. */ - for (i = 0 ; i < WORK_BUFFER_SIZE - 1 ; i++, d++) - { - int match; - if (d == dend) - { - if (dend == end_match_2) - break; - d = string2; - dend = end_match_2; - } - - /* add next character to the compare buffer. */ - str_buf[i] = TRANSLATE(*d); - str_buf[i+1] = '\0'; - - match = wcscoll (workp, str_buf); - - if (match == 0) - goto char_set_matched; - - if (match < 0) - /* (str_buf > workp) indicate (str_buf + X > workp), - because for all X (str_buf + X > str_buf). - So we don't need continue this loop. */ - break; - - /* Otherwise(str_buf < workp), - (str_buf+next_character) may equals (workp). - So we continue this loop. */ - } - /* not matched */ - d = backup_d; - dend = backup_dend; - workp += length + 1; - } - } - - /* match with char_range? */ -# ifdef _LIBC - if (nrules != 0) - { - uint32_t collseqval; - const char *collseq = (const char *) - _NL_CURRENT(LC_COLLATE, _NL_COLLATE_COLLSEQWC); - - collseqval = collseq_table_lookup (collseq, c); - - for (; workp < p - chars_length ;) - { - uint32_t start_val, end_val; - - /* We already compute the collation sequence value - of the characters (or collating symbols). */ - start_val = (uint32_t) *workp++; /* range_start */ - end_val = (uint32_t) *workp++; /* range_end */ - - if (start_val <= collseqval && collseqval <= end_val) - goto char_set_matched; - } - } - else -# endif - { - /* We set range_start_char at str_buf[0], range_end_char - at str_buf[4], and compared char at str_buf[2]. */ - str_buf[1] = 0; - str_buf[2] = c; - str_buf[3] = 0; - str_buf[5] = 0; - for (; workp < p - chars_length ;) - { - wchar_t *range_start_char, *range_end_char; - - /* match if (range_start_char <= c <= range_end_char). */ - - /* If range_start(or end) < 0, we assume -range_start(end) - is the offset of the collating symbol which is specified - as the character of the range start(end). */ - - /* range_start */ - if (*workp < 0) - range_start_char = charset_top - (*workp++); - else - { - str_buf[0] = *workp++; - range_start_char = str_buf; - } - - /* range_end */ - if (*workp < 0) - range_end_char = charset_top - (*workp++); - else - { - str_buf[4] = *workp++; - range_end_char = str_buf + 4; - } - - if (wcscoll (range_start_char, str_buf+2) <= 0 - && wcscoll (str_buf+2, range_end_char) <= 0) - goto char_set_matched; - } - } - - /* match with char? */ - for (; workp < p ; workp++) - if (c == *workp) - goto char_set_matched; - - invert = !invert; - - char_set_matched: - if (invert) goto fail; -#else - /* Cast to `unsigned' instead of `unsigned char' in case the - bit list is a full 32 bytes long. */ - if (c < (unsigned) (*p * BYTEWIDTH) - && p[1 + c / BYTEWIDTH] & (1 << (c % BYTEWIDTH))) - invert = !invert; - - p += 1 + *p; - - if (!invert) goto fail; -#undef WORK_BUFFER_SIZE -#endif /* WCHAR */ - SET_REGS_MATCHED (); - d++; - NEXT; - } - - - /* The beginning of a group is represented by start_memory. - The arguments are the register number in the next byte, and the - number of groups inner to this one in the next. The text - matched within the group is recorded (in the internal - registers data structure) under the register number. */ - CASE (start_memory): - DEBUG_PRINT3 ("EXECUTING start_memory %ld (%ld):\n", - (long int) *p, (long int) p[1]); - - /* Find out if this group can match the empty string. */ - p1 = p; /* To send to group_match_null_string_p. */ - - if (REG_MATCH_NULL_STRING_P (reg_info[*p]) == MATCH_NULL_UNSET_VALUE) - REG_MATCH_NULL_STRING_P (reg_info[*p]) - = PREFIX(group_match_null_string_p) (&p1, pend, reg_info); - - /* Save the position in the string where we were the last time - we were at this open-group operator in case the group is - operated upon by a repetition operator, e.g., with `(a*)*b' - against `ab'; then we want to ignore where we are now in - the string in case this attempt to match fails. */ - old_regstart[*p] = REG_MATCH_NULL_STRING_P (reg_info[*p]) - ? REG_UNSET (regstart[*p]) ? d : regstart[*p] - : regstart[*p]; - DEBUG_PRINT2 (" old_regstart: %d\n", - POINTER_TO_OFFSET (old_regstart[*p])); - - regstart[*p] = d; - DEBUG_PRINT2 (" regstart: %d\n", POINTER_TO_OFFSET (regstart[*p])); - - IS_ACTIVE (reg_info[*p]) = 1; - MATCHED_SOMETHING (reg_info[*p]) = 0; - - /* Clear this whenever we change the register activity status. */ - set_regs_matched_done = 0; - - /* This is the new highest active register. */ - highest_active_reg = *p; - - /* If nothing was active before, this is the new lowest active - register. */ - if (lowest_active_reg == NO_LOWEST_ACTIVE_REG) - lowest_active_reg = *p; - - /* Move past the register number and inner group count. */ - p += 2; - just_past_start_mem = p; - - NEXT; - - - /* The stop_memory opcode represents the end of a group. Its - arguments are the same as start_memory's: the register - number, and the number of inner groups. */ - CASE (stop_memory): - DEBUG_PRINT3 ("EXECUTING stop_memory %ld (%ld):\n", - (long int) *p, (long int) p[1]); - - /* We need to save the string position the last time we were at - this close-group operator in case the group is operated - upon by a repetition operator, e.g., with `((a*)*(b*)*)*' - against `aba'; then we want to ignore where we are now in - the string in case this attempt to match fails. */ - old_regend[*p] = REG_MATCH_NULL_STRING_P (reg_info[*p]) - ? REG_UNSET (regend[*p]) ? d : regend[*p] - : regend[*p]; - DEBUG_PRINT2 (" old_regend: %d\n", - POINTER_TO_OFFSET (old_regend[*p])); - - regend[*p] = d; - DEBUG_PRINT2 (" regend: %d\n", POINTER_TO_OFFSET (regend[*p])); - - /* This register isn't active anymore. */ - IS_ACTIVE (reg_info[*p]) = 0; - - /* Clear this whenever we change the register activity status. */ - set_regs_matched_done = 0; - - /* If this was the only register active, nothing is active - anymore. */ - if (lowest_active_reg == highest_active_reg) - { - lowest_active_reg = NO_LOWEST_ACTIVE_REG; - highest_active_reg = NO_HIGHEST_ACTIVE_REG; - } - else - { /* We must scan for the new highest active register, since - it isn't necessarily one less than now: consider - (a(b)c(d(e)f)g). When group 3 ends, after the f), the - new highest active register is 1. */ - UCHAR_T r = *p - 1; - while (r > 0 && !IS_ACTIVE (reg_info[r])) - r--; - - /* If we end up at register zero, that means that we saved - the registers as the result of an `on_failure_jump', not - a `start_memory', and we jumped to past the innermost - `stop_memory'. For example, in ((.)*) we save - registers 1 and 2 as a result of the *, but when we pop - back to the second ), we are at the stop_memory 1. - Thus, nothing is active. */ - if (r == 0) - { - lowest_active_reg = NO_LOWEST_ACTIVE_REG; - highest_active_reg = NO_HIGHEST_ACTIVE_REG; - } - else - highest_active_reg = r; - } - - /* If just failed to match something this time around with a - group that's operated on by a repetition operator, try to - force exit from the ``loop'', and restore the register - information for this group that we had before trying this - last match. */ - if ((!MATCHED_SOMETHING (reg_info[*p]) - || just_past_start_mem == p - 1) - && (p + 2) < pend) - { - boolean is_a_jump_n = false; - - p1 = p + 2; - mcnt = 0; - switch ((re_opcode_t) *p1++) - { - case jump_n: - is_a_jump_n = true; - case pop_failure_jump: - case maybe_pop_jump: - case jump: - case dummy_failure_jump: - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - if (is_a_jump_n) - p1 += OFFSET_ADDRESS_SIZE; - break; - - default: - /* do nothing */ ; - } - p1 += mcnt; - - /* If the next operation is a jump backwards in the pattern - to an on_failure_jump right before the start_memory - corresponding to this stop_memory, exit from the loop - by forcing a failure after pushing on the stack the - on_failure_jump's jump in the pattern, and d. */ - if (mcnt < 0 && (re_opcode_t) *p1 == on_failure_jump - && (re_opcode_t) p1[1+OFFSET_ADDRESS_SIZE] == start_memory - && p1[2+OFFSET_ADDRESS_SIZE] == *p) - { - /* If this group ever matched anything, then restore - what its registers were before trying this last - failed match, e.g., with `(a*)*b' against `ab' for - regstart[1], and, e.g., with `((a*)*(b*)*)*' - against `aba' for regend[3]. - - Also restore the registers for inner groups for, - e.g., `((a*)(b*))*' against `aba' (register 3 would - otherwise get trashed). */ - - if (EVER_MATCHED_SOMETHING (reg_info[*p])) - { - unsigned r; - - EVER_MATCHED_SOMETHING (reg_info[*p]) = 0; - - /* Restore this and inner groups' (if any) registers. */ - for (r = *p; r < (unsigned) *p + (unsigned) *(p + 1); - r++) - { - regstart[r] = old_regstart[r]; - - /* xx why this test? */ - if (old_regend[r] >= regstart[r]) - regend[r] = old_regend[r]; - } - } - p1++; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - PUSH_FAILURE_POINT (p1 + mcnt, d, -2); - - goto fail; - } - } - - /* Move past the register number and the inner group count. */ - p += 2; - NEXT; - - - /* \ has been turned into a `duplicate' command which is - followed by the numeric value of as the register number. */ - CASE (duplicate): - { - register const CHAR_T *d2, *dend2; - int regno = *p++; /* Get which register to match against. */ - DEBUG_PRINT2 ("EXECUTING duplicate %d.\n", regno); - - /* Can't back reference a group which we've never matched. */ - if (REG_UNSET (regstart[regno]) || REG_UNSET (regend[regno])) - goto fail; - - /* Where in input to try to start matching. */ - d2 = regstart[regno]; - - /* Where to stop matching; if both the place to start and - the place to stop matching are in the same string, then - set to the place to stop, otherwise, for now have to use - the end of the first string. */ - - dend2 = ((FIRST_STRING_P (regstart[regno]) - == FIRST_STRING_P (regend[regno])) - ? regend[regno] : end_match_1); - for (;;) - { - /* If necessary, advance to next segment in register - contents. */ - while (d2 == dend2) - { - if (dend2 == end_match_2) break; - if (dend2 == regend[regno]) break; - - /* End of string1 => advance to string2. */ - d2 = string2; - dend2 = regend[regno]; - } - /* At end of register contents => success */ - if (d2 == dend2) break; - - /* If necessary, advance to next segment in data. */ - PREFETCH (); - - /* How many characters left in this segment to match. */ - mcnt = dend - d; - - /* Want how many consecutive characters we can match in - one shot, so, if necessary, adjust the count. */ - if (mcnt > dend2 - d2) - mcnt = dend2 - d2; - - /* Compare that many; failure if mismatch, else move - past them. */ - if (translate - ? PREFIX(bcmp_translate) (d, d2, mcnt, translate) - : memcmp (d, d2, mcnt*sizeof(UCHAR_T))) - goto fail; - d += mcnt, d2 += mcnt; - - /* Do this because we've match some characters. */ - SET_REGS_MATCHED (); - } - } - NEXT; - - - /* begline matches the empty string at the beginning of the string - (unless `not_bol' is set in `bufp'), and, if - `newline_anchor' is set, after newlines. */ - CASE (begline): - DEBUG_PRINT1 ("EXECUTING begline.\n"); - - if (AT_STRINGS_BEG (d)) - { - if (!bufp->not_bol) - { - NEXT; - } - } - else if (d[-1] == '\n' && bufp->newline_anchor) - { - NEXT; - } - /* In all other cases, we fail. */ - goto fail; - - - /* endline is the dual of begline. */ - CASE (endline): - DEBUG_PRINT1 ("EXECUTING endline.\n"); - - if (AT_STRINGS_END (d)) - { - if (!bufp->not_eol) - { - NEXT; - } - } - - /* We have to ``prefetch'' the next character. */ - else if ((d == end1 ? *string2 : *d) == '\n' - && bufp->newline_anchor) - { - NEXT; - } - goto fail; - - - /* Match at the very beginning of the data. */ - CASE (begbuf): - DEBUG_PRINT1 ("EXECUTING begbuf.\n"); - if (AT_STRINGS_BEG (d)) - { - NEXT; - } - goto fail; - - - /* Match at the very end of the data. */ - CASE (endbuf): - DEBUG_PRINT1 ("EXECUTING endbuf.\n"); - if (AT_STRINGS_END (d)) - { - NEXT; - } - goto fail; - - - /* on_failure_keep_string_jump is used to optimize `.*\n'. It - pushes NULL as the value for the string on the stack. Then - `pop_failure_point' will keep the current value for the - string, instead of restoring it. To see why, consider - matching `foo\nbar' against `.*\n'. The .* matches the foo; - then the . fails against the \n. But the next thing we want - to do is match the \n against the \n; if we restored the - string value, we would be back at the foo. - - Because this is used only in specific cases, we don't need to - check all the things that `on_failure_jump' does, to make - sure the right things get saved on the stack. Hence we don't - share its code. The only reason to push anything on the - stack at all is that otherwise we would have to change - `anychar's code to do something besides goto fail in this - case; that seems worse than this. */ - CASE (on_failure_keep_string_jump): - DEBUG_PRINT1 ("EXECUTING on_failure_keep_string_jump"); - - EXTRACT_NUMBER_AND_INCR (mcnt, p); -#ifdef _LIBC - DEBUG_PRINT3 (" %d (to %p):\n", mcnt, p + mcnt); -#else - DEBUG_PRINT3 (" %d (to 0x%x):\n", mcnt, p + mcnt); -#endif - - PUSH_FAILURE_POINT (p + mcnt, NULL, -2); - NEXT; - - - /* Uses of on_failure_jump: - - Each alternative starts with an on_failure_jump that points - to the beginning of the next alternative. Each alternative - except the last ends with a jump that in effect jumps past - the rest of the alternatives. (They really jump to the - ending jump of the following alternative, because tensioning - these jumps is a hassle.) - - Repeats start with an on_failure_jump that points past both - the repetition text and either the following jump or - pop_failure_jump back to this on_failure_jump. */ - CASE (on_failure_jump): - on_failure: - DEBUG_PRINT1 ("EXECUTING on_failure_jump"); - - EXTRACT_NUMBER_AND_INCR (mcnt, p); -#ifdef _LIBC - DEBUG_PRINT3 (" %d (to %p)", mcnt, p + mcnt); -#else - DEBUG_PRINT3 (" %d (to 0x%x)", mcnt, p + mcnt); -#endif - - /* If this on_failure_jump comes right before a group (i.e., - the original * applied to a group), save the information - for that group and all inner ones, so that if we fail back - to this point, the group's information will be correct. - For example, in \(a*\)*\1, we need the preceding group, - and in \(zz\(a*\)b*\)\2, we need the inner group. */ - - /* We can't use `p' to check ahead because we push - a failure point to `p + mcnt' after we do this. */ - p1 = p; - - /* We need to skip no_op's before we look for the - start_memory in case this on_failure_jump is happening as - the result of a completed succeed_n, as in \(a\)\{1,3\}b\1 - against aba. */ - while (p1 < pend && (re_opcode_t) *p1 == no_op) - p1++; - - if (p1 < pend && (re_opcode_t) *p1 == start_memory) - { - /* We have a new highest active register now. This will - get reset at the start_memory we are about to get to, - but we will have saved all the registers relevant to - this repetition op, as described above. */ - highest_active_reg = *(p1 + 1) + *(p1 + 2); - if (lowest_active_reg == NO_LOWEST_ACTIVE_REG) - lowest_active_reg = *(p1 + 1); - } - - DEBUG_PRINT1 (":\n"); - PUSH_FAILURE_POINT (p + mcnt, d, -2); - NEXT; - - - /* A smart repeat ends with `maybe_pop_jump'. - We change it to either `pop_failure_jump' or `jump'. */ - CASE (maybe_pop_jump): - EXTRACT_NUMBER_AND_INCR (mcnt, p); - DEBUG_PRINT2 ("EXECUTING maybe_pop_jump %d.\n", mcnt); - { - register UCHAR_T *p2 = p; - - /* Compare the beginning of the repeat with what in the - pattern follows its end. If we can establish that there - is nothing that they would both match, i.e., that we - would have to backtrack because of (as in, e.g., `a*a') - then we can change to pop_failure_jump, because we'll - never have to backtrack. - - This is not true in the case of alternatives: in - `(a|ab)*' we do need to backtrack to the `ab' alternative - (e.g., if the string was `ab'). But instead of trying to - detect that here, the alternative has put on a dummy - failure point which is what we will end up popping. */ - - /* Skip over open/close-group commands. - If what follows this loop is a ...+ construct, - look at what begins its body, since we will have to - match at least one of that. */ - while (1) - { - if (p2 + 2 < pend - && ((re_opcode_t) *p2 == stop_memory - || (re_opcode_t) *p2 == start_memory)) - p2 += 3; - else if (p2 + 2 + 2 * OFFSET_ADDRESS_SIZE < pend - && (re_opcode_t) *p2 == dummy_failure_jump) - p2 += 2 + 2 * OFFSET_ADDRESS_SIZE; - else - break; - } - - p1 = p + mcnt; - /* p1[0] ... p1[2] are the `on_failure_jump' corresponding - to the `maybe_finalize_jump' of this case. Examine what - follows. */ - - /* If we're at the end of the pattern, we can change. */ - if (p2 == pend) - { - /* Consider what happens when matching ":\(.*\)" - against ":/". I don't really understand this code - yet. */ - p[-(1+OFFSET_ADDRESS_SIZE)] = (UCHAR_T) - pop_failure_jump; - DEBUG_PRINT1 - (" End of pattern: change to `pop_failure_jump'.\n"); - } - - else if ((re_opcode_t) *p2 == exactn -#ifdef MBS_SUPPORT - || (re_opcode_t) *p2 == exactn_bin -#endif - || (bufp->newline_anchor && (re_opcode_t) *p2 == endline)) - { - register UCHAR_T c - = *p2 == (UCHAR_T) endline ? '\n' : p2[2]; - - if (((re_opcode_t) p1[1+OFFSET_ADDRESS_SIZE] == exactn -#ifdef MBS_SUPPORT - || (re_opcode_t) p1[1+OFFSET_ADDRESS_SIZE] == exactn_bin -#endif - ) && p1[3+OFFSET_ADDRESS_SIZE] != c) - { - p[-(1+OFFSET_ADDRESS_SIZE)] = (UCHAR_T) - pop_failure_jump; -#ifdef WCHAR - DEBUG_PRINT3 (" %C != %C => pop_failure_jump.\n", - (wint_t) c, - (wint_t) p1[3+OFFSET_ADDRESS_SIZE]); -#else - DEBUG_PRINT3 (" %c != %c => pop_failure_jump.\n", - (char) c, - (char) p1[3+OFFSET_ADDRESS_SIZE]); -#endif - } - -#ifndef WCHAR - else if ((re_opcode_t) p1[3] == charset - || (re_opcode_t) p1[3] == charset_not) - { - int invert = (re_opcode_t) p1[3] == charset_not; - - if (c < (unsigned) (p1[4] * BYTEWIDTH) - && p1[5 + c / BYTEWIDTH] & (1 << (c % BYTEWIDTH))) - invert = !invert; - - /* `not' is equal to 1 if c would match, which means - that we can't change to pop_failure_jump. */ - if (!invert) - { - p[-3] = (unsigned char) pop_failure_jump; - DEBUG_PRINT1 (" No match => pop_failure_jump.\n"); - } - } -#endif /* not WCHAR */ - } -#ifndef WCHAR - else if ((re_opcode_t) *p2 == charset) - { - /* We win if the first character of the loop is not part - of the charset. */ - if ((re_opcode_t) p1[3] == exactn - && ! ((int) p2[1] * BYTEWIDTH > (int) p1[5] - && (p2[2 + p1[5] / BYTEWIDTH] - & (1 << (p1[5] % BYTEWIDTH))))) - { - p[-3] = (unsigned char) pop_failure_jump; - DEBUG_PRINT1 (" No match => pop_failure_jump.\n"); - } - - else if ((re_opcode_t) p1[3] == charset_not) - { - int idx; - /* We win if the charset_not inside the loop - lists every character listed in the charset after. */ - for (idx = 0; idx < (int) p2[1]; idx++) - if (! (p2[2 + idx] == 0 - || (idx < (int) p1[4] - && ((p2[2 + idx] & ~ p1[5 + idx]) == 0)))) - break; - - if (idx == p2[1]) - { - p[-3] = (unsigned char) pop_failure_jump; - DEBUG_PRINT1 (" No match => pop_failure_jump.\n"); - } - } - else if ((re_opcode_t) p1[3] == charset) - { - int idx; - /* We win if the charset inside the loop - has no overlap with the one after the loop. */ - for (idx = 0; - idx < (int) p2[1] && idx < (int) p1[4]; - idx++) - if ((p2[2 + idx] & p1[5 + idx]) != 0) - break; - - if (idx == p2[1] || idx == p1[4]) - { - p[-3] = (unsigned char) pop_failure_jump; - DEBUG_PRINT1 (" No match => pop_failure_jump.\n"); - } - } - } -#endif /* not WCHAR */ - } - p -= OFFSET_ADDRESS_SIZE; /* Point at relative address again. */ - if ((re_opcode_t) p[-1] != pop_failure_jump) - { - p[-1] = (UCHAR_T) jump; - DEBUG_PRINT1 (" Match => jump.\n"); - goto unconditional_jump; - } - /* Note fall through. */ - - - /* The end of a simple repeat has a pop_failure_jump back to - its matching on_failure_jump, where the latter will push a - failure point. The pop_failure_jump takes off failure - points put on by this pop_failure_jump's matching - on_failure_jump; we got through the pattern to here from the - matching on_failure_jump, so didn't fail. */ - CASE (pop_failure_jump): - { - /* We need to pass separate storage for the lowest and - highest registers, even though we don't care about the - actual values. Otherwise, we will restore only one - register from the stack, since lowest will == highest in - `pop_failure_point'. */ - active_reg_t dummy_low_reg, dummy_high_reg; - UCHAR_T *pdummy = NULL; - const CHAR_T *sdummy = NULL; - - DEBUG_PRINT1 ("EXECUTING pop_failure_jump.\n"); - POP_FAILURE_POINT (sdummy, pdummy, - dummy_low_reg, dummy_high_reg, - reg_dummy, reg_dummy, reg_info_dummy); - } - /* Note fall through. */ - - unconditional_jump: -#ifdef _LIBC - DEBUG_PRINT2 ("\n%p: ", p); -#else - DEBUG_PRINT2 ("\n0x%x: ", p); -#endif - /* Note fall through. */ - - /* Unconditionally jump (without popping any failure points). */ - CASE (jump): - EXTRACT_NUMBER_AND_INCR (mcnt, p); /* Get the amount to jump. */ - DEBUG_PRINT2 ("EXECUTING jump %d ", mcnt); - p += mcnt; /* Do the jump. */ -#ifdef _LIBC - DEBUG_PRINT2 ("(to %p).\n", p); -#else - DEBUG_PRINT2 ("(to 0x%x).\n", p); -#endif - NEXT; - - - /* We need this opcode so we can detect where alternatives end - in `group_match_null_string_p' et al. */ - CASE (jump_past_alt): - DEBUG_PRINT1 ("EXECUTING jump_past_alt.\n"); - goto unconditional_jump; - - - /* Normally, the on_failure_jump pushes a failure point, which - then gets popped at pop_failure_jump. We will end up at - pop_failure_jump, also, and with a pattern of, say, `a+', we - are skipping over the on_failure_jump, so we have to push - something meaningless for pop_failure_jump to pop. */ - CASE (dummy_failure_jump): - DEBUG_PRINT1 ("EXECUTING dummy_failure_jump.\n"); - /* It doesn't matter what we push for the string here. What - the code at `fail' tests is the value for the pattern. */ - PUSH_FAILURE_POINT (NULL, NULL, -2); - goto unconditional_jump; - - - /* At the end of an alternative, we need to push a dummy failure - point in case we are followed by a `pop_failure_jump', because - we don't want the failure point for the alternative to be - popped. For example, matching `(a|ab)*' against `aab' - requires that we match the `ab' alternative. */ - CASE (push_dummy_failure): - DEBUG_PRINT1 ("EXECUTING push_dummy_failure.\n"); - /* See comments just above at `dummy_failure_jump' about the - two zeroes. */ - PUSH_FAILURE_POINT (NULL, NULL, -2); - NEXT; - - /* Have to succeed matching what follows at least n times. - After that, handle like `on_failure_jump'. */ - CASE (succeed_n): - EXTRACT_NUMBER (mcnt, p + OFFSET_ADDRESS_SIZE); - DEBUG_PRINT2 ("EXECUTING succeed_n %d.\n", mcnt); - - assert (mcnt >= 0); - /* Originally, this is how many times we HAVE to succeed. */ - if (mcnt > 0) - { - mcnt--; - p += OFFSET_ADDRESS_SIZE; - STORE_NUMBER_AND_INCR (p, mcnt); -#ifdef _LIBC - DEBUG_PRINT3 (" Setting %p to %d.\n", p - OFFSET_ADDRESS_SIZE - , mcnt); -#else - DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p - OFFSET_ADDRESS_SIZE - , mcnt); -#endif - } - else if (mcnt == 0) - { -#ifdef _LIBC - DEBUG_PRINT2 (" Setting two bytes from %p to no_op.\n", - p + OFFSET_ADDRESS_SIZE); -#else - DEBUG_PRINT2 (" Setting two bytes from 0x%x to no_op.\n", - p + OFFSET_ADDRESS_SIZE); -#endif /* _LIBC */ - -#ifdef WCHAR - p[1] = (UCHAR_T) no_op; -#else - p[2] = (UCHAR_T) no_op; - p[3] = (UCHAR_T) no_op; -#endif /* WCHAR */ - goto on_failure; - } - NEXT; - - CASE (jump_n): - EXTRACT_NUMBER (mcnt, p + OFFSET_ADDRESS_SIZE); - DEBUG_PRINT2 ("EXECUTING jump_n %d.\n", mcnt); - - /* Originally, this is how many times we CAN jump. */ - if (mcnt) - { - mcnt--; - STORE_NUMBER (p + OFFSET_ADDRESS_SIZE, mcnt); - -#ifdef _LIBC - DEBUG_PRINT3 (" Setting %p to %d.\n", p + OFFSET_ADDRESS_SIZE, - mcnt); -#else - DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p + OFFSET_ADDRESS_SIZE, - mcnt); -#endif /* _LIBC */ - goto unconditional_jump; - } - /* If don't have to jump any more, skip over the rest of command. */ - else - p += 2 * OFFSET_ADDRESS_SIZE; - NEXT; - - CASE (set_number_at): - { - DEBUG_PRINT1 ("EXECUTING set_number_at.\n"); - - EXTRACT_NUMBER_AND_INCR (mcnt, p); - p1 = p + mcnt; - EXTRACT_NUMBER_AND_INCR (mcnt, p); -#ifdef _LIBC - DEBUG_PRINT3 (" Setting %p to %d.\n", p1, mcnt); -#else - DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p1, mcnt); -#endif - STORE_NUMBER (p1, mcnt); - NEXT; - } - -#if 0 - /* The DEC Alpha C compiler 3.x generates incorrect code for the - test WORDCHAR_P (d - 1) != WORDCHAR_P (d) in the expansion of - AT_WORD_BOUNDARY, so this code is disabled. Expanding the - macro and introducing temporary variables works around the bug. */ - - CASE (wordbound): - DEBUG_PRINT1 ("EXECUTING wordbound.\n"); - if (AT_WORD_BOUNDARY (d)) - { - NEXT; - } - goto fail; - - CASE (notwordbound): - DEBUG_PRINT1 ("EXECUTING notwordbound.\n"); - if (AT_WORD_BOUNDARY (d)) - goto fail; - NEXT; -#else - CASE (wordbound): - { - boolean prevchar, thischar; - - DEBUG_PRINT1 ("EXECUTING wordbound.\n"); - if (AT_STRINGS_BEG (d) || AT_STRINGS_END (d)) - { - NEXT; - } - - prevchar = WORDCHAR_P (d - 1); - thischar = WORDCHAR_P (d); - if (prevchar != thischar) - { - NEXT; - } - goto fail; - } - - CASE (notwordbound): - { - boolean prevchar, thischar; - - DEBUG_PRINT1 ("EXECUTING notwordbound.\n"); - if (AT_STRINGS_BEG (d) || AT_STRINGS_END (d)) - goto fail; - - prevchar = WORDCHAR_P (d - 1); - thischar = WORDCHAR_P (d); - if (prevchar != thischar) - goto fail; - NEXT; - } -#endif - - CASE (wordbeg): - DEBUG_PRINT1 ("EXECUTING wordbeg.\n"); - if (!AT_STRINGS_END (d) && WORDCHAR_P (d) - && (AT_STRINGS_BEG (d) || !WORDCHAR_P (d - 1))) - { - NEXT; - } - goto fail; - - CASE (wordend): - DEBUG_PRINT1 ("EXECUTING wordend.\n"); - if (!AT_STRINGS_BEG (d) && WORDCHAR_P (d - 1) - && (AT_STRINGS_END (d) || !WORDCHAR_P (d))) - { - NEXT; - } - goto fail; - -#ifdef emacs - CASE (before_dot): - DEBUG_PRINT1 ("EXECUTING before_dot.\n"); - if (PTR_CHAR_POS ((unsigned char *) d) >= point) - goto fail; - NEXT; - - CASE (at_dot): - DEBUG_PRINT1 ("EXECUTING at_dot.\n"); - if (PTR_CHAR_POS ((unsigned char *) d) != point) - goto fail; - NEXT; - - CASE (after_dot): - DEBUG_PRINT1 ("EXECUTING after_dot.\n"); - if (PTR_CHAR_POS ((unsigned char *) d) <= point) - goto fail; - NEXT; - - CASE (syntaxspec): - DEBUG_PRINT2 ("EXECUTING syntaxspec %d.\n", mcnt); - mcnt = *p++; - goto matchsyntax; - - CASE (wordchar): - DEBUG_PRINT1 ("EXECUTING Emacs wordchar.\n"); - mcnt = (int) Sword; - matchsyntax: - PREFETCH (); - /* Can't use *d++ here; SYNTAX may be an unsafe macro. */ - d++; - if (SYNTAX (d[-1]) != (enum syntaxcode) mcnt) - goto fail; - SET_REGS_MATCHED (); - NEXT; - - CASE (notsyntaxspec): - DEBUG_PRINT2 ("EXECUTING notsyntaxspec %d.\n", mcnt); - mcnt = *p++; - goto matchnotsyntax; - - CASE (notwordchar): - DEBUG_PRINT1 ("EXECUTING Emacs notwordchar.\n"); - mcnt = (int) Sword; - matchnotsyntax: - PREFETCH (); - /* Can't use *d++ here; SYNTAX may be an unsafe macro. */ - d++; - if (SYNTAX (d[-1]) == (enum syntaxcode) mcnt) - goto fail; - SET_REGS_MATCHED (); - NEXT; - -#else /* not emacs */ - CASE (wordchar): - DEBUG_PRINT1 ("EXECUTING non-Emacs wordchar.\n"); - PREFETCH (); - if (!WORDCHAR_P (d)) - goto fail; - SET_REGS_MATCHED (); - d++; - NEXT; - - CASE (notwordchar): - DEBUG_PRINT1 ("EXECUTING non-Emacs notwordchar.\n"); - PREFETCH (); - if (WORDCHAR_P (d)) - goto fail; - SET_REGS_MATCHED (); - d++; - NEXT; -#endif /* not emacs */ - -#ifndef __GNUC__ - default: - abort (); - } - continue; /* Successfully executed one pattern command; keep going. */ -#endif - - - /* We goto here if a matching operation fails. */ - fail: - if (!FAIL_STACK_EMPTY ()) - { /* A restart point is known. Restore to that state. */ - DEBUG_PRINT1 ("\nFAIL:\n"); - POP_FAILURE_POINT (d, p, - lowest_active_reg, highest_active_reg, - regstart, regend, reg_info); - - /* If this failure point is a dummy, try the next one. */ - if (!p) - goto fail; - - /* If we failed to the end of the pattern, don't examine *p. */ - assert (p <= pend); - if (p < pend) - { - boolean is_a_jump_n = false; - - /* If failed to a backwards jump that's part of a repetition - loop, need to pop this failure point and use the next one. */ - switch ((re_opcode_t) *p) - { - case jump_n: - is_a_jump_n = true; - case maybe_pop_jump: - case pop_failure_jump: - case jump: - p1 = p + 1; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - p1 += mcnt; - - if ((is_a_jump_n && (re_opcode_t) *p1 == succeed_n) - || (!is_a_jump_n - && (re_opcode_t) *p1 == on_failure_jump)) - goto fail; - break; - default: - /* do nothing */ ; - } - } - - if (d >= string1 && d <= end1) - dend = end_match_1; - } - else - break; /* Matching at this starting point really fails. */ - } /* for (;;) */ - - if (best_regs_set) - goto restore_best_regs; - - FREE_VARIABLES (); - - return -1; /* Failure to match. */ -} /* re_match_2 */ - -/* Subroutine definitions for re_match_2. */ - - -/* We are passed P pointing to a register number after a start_memory. - - Return true if the pattern up to the corresponding stop_memory can - match the empty string, and false otherwise. - - If we find the matching stop_memory, sets P to point to one past its number. - Otherwise, sets P to an undefined byte less than or equal to END. - - We don't handle duplicates properly (yet). */ - -static boolean -PREFIX(group_match_null_string_p) (UCHAR_T **p, UCHAR_T *end, - PREFIX(register_info_type) *reg_info) -{ - int mcnt; - /* Point to after the args to the start_memory. */ - UCHAR_T *p1 = *p + 2; - - while (p1 < end) - { - /* Skip over opcodes that can match nothing, and return true or - false, as appropriate, when we get to one that can't, or to the - matching stop_memory. */ - - switch ((re_opcode_t) *p1) - { - /* Could be either a loop or a series of alternatives. */ - case on_failure_jump: - p1++; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - - /* If the next operation is not a jump backwards in the - pattern. */ - - if (mcnt >= 0) - { - /* Go through the on_failure_jumps of the alternatives, - seeing if any of the alternatives cannot match nothing. - The last alternative starts with only a jump, - whereas the rest start with on_failure_jump and end - with a jump, e.g., here is the pattern for `a|b|c': - - /on_failure_jump/0/6/exactn/1/a/jump_past_alt/0/6 - /on_failure_jump/0/6/exactn/1/b/jump_past_alt/0/3 - /exactn/1/c - - So, we have to first go through the first (n-1) - alternatives and then deal with the last one separately. */ - - - /* Deal with the first (n-1) alternatives, which start - with an on_failure_jump (see above) that jumps to right - past a jump_past_alt. */ - - while ((re_opcode_t) p1[mcnt-(1+OFFSET_ADDRESS_SIZE)] == - jump_past_alt) - { - /* `mcnt' holds how many bytes long the alternative - is, including the ending `jump_past_alt' and - its number. */ - - if (!PREFIX(alt_match_null_string_p) (p1, p1 + mcnt - - (1 + OFFSET_ADDRESS_SIZE), - reg_info)) - return false; - - /* Move to right after this alternative, including the - jump_past_alt. */ - p1 += mcnt; - - /* Break if it's the beginning of an n-th alternative - that doesn't begin with an on_failure_jump. */ - if ((re_opcode_t) *p1 != on_failure_jump) - break; - - /* Still have to check that it's not an n-th - alternative that starts with an on_failure_jump. */ - p1++; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - if ((re_opcode_t) p1[mcnt-(1+OFFSET_ADDRESS_SIZE)] != - jump_past_alt) - { - /* Get to the beginning of the n-th alternative. */ - p1 -= 1 + OFFSET_ADDRESS_SIZE; - break; - } - } - - /* Deal with the last alternative: go back and get number - of the `jump_past_alt' just before it. `mcnt' contains - the length of the alternative. */ - EXTRACT_NUMBER (mcnt, p1 - OFFSET_ADDRESS_SIZE); - - if (!PREFIX(alt_match_null_string_p) (p1, p1 + mcnt, reg_info)) - return false; - - p1 += mcnt; /* Get past the n-th alternative. */ - } /* if mcnt > 0 */ - break; - - - case stop_memory: - assert (p1[1] == **p); - *p = p1 + 2; - return true; - - - default: - if (!PREFIX(common_op_match_null_string_p) (&p1, end, reg_info)) - return false; - } - } /* while p1 < end */ - - return false; -} /* group_match_null_string_p */ - - -/* Similar to group_match_null_string_p, but doesn't deal with alternatives: - It expects P to be the first byte of a single alternative and END one - byte past the last. The alternative can contain groups. */ - -static boolean -PREFIX(alt_match_null_string_p) (UCHAR_T *p, UCHAR_T *end, - PREFIX(register_info_type) *reg_info) -{ - int mcnt; - UCHAR_T *p1 = p; - - while (p1 < end) - { - /* Skip over opcodes that can match nothing, and break when we get - to one that can't. */ - - switch ((re_opcode_t) *p1) - { - /* It's a loop. */ - case on_failure_jump: - p1++; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - p1 += mcnt; - break; - - default: - if (!PREFIX(common_op_match_null_string_p) (&p1, end, reg_info)) - return false; - } - } /* while p1 < end */ - - return true; -} /* alt_match_null_string_p */ - - -/* Deals with the ops common to group_match_null_string_p and - alt_match_null_string_p. - - Sets P to one after the op and its arguments, if any. */ - -static boolean -PREFIX(common_op_match_null_string_p) (UCHAR_T **p, UCHAR_T *end, - PREFIX(register_info_type) *reg_info) -{ - int mcnt; - boolean ret; - int reg_no; - UCHAR_T *p1 = *p; - - switch ((re_opcode_t) *p1++) - { - case no_op: - case begline: - case endline: - case begbuf: - case endbuf: - case wordbeg: - case wordend: - case wordbound: - case notwordbound: -#ifdef emacs - case before_dot: - case at_dot: - case after_dot: -#endif - break; - - case start_memory: - reg_no = *p1; - assert (reg_no > 0 && reg_no <= MAX_REGNUM); - ret = PREFIX(group_match_null_string_p) (&p1, end, reg_info); - - /* Have to set this here in case we're checking a group which - contains a group and a back reference to it. */ - - if (REG_MATCH_NULL_STRING_P (reg_info[reg_no]) == MATCH_NULL_UNSET_VALUE) - REG_MATCH_NULL_STRING_P (reg_info[reg_no]) = ret; - - if (!ret) - return false; - break; - - /* If this is an optimized succeed_n for zero times, make the jump. */ - case jump: - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - if (mcnt >= 0) - p1 += mcnt; - else - return false; - break; - - case succeed_n: - /* Get to the number of times to succeed. */ - p1 += OFFSET_ADDRESS_SIZE; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - - if (mcnt == 0) - { - p1 -= 2 * OFFSET_ADDRESS_SIZE; - EXTRACT_NUMBER_AND_INCR (mcnt, p1); - p1 += mcnt; - } - else - return false; - break; - - case duplicate: - if (!REG_MATCH_NULL_STRING_P (reg_info[*p1])) - return false; - break; - - case set_number_at: - p1 += 2 * OFFSET_ADDRESS_SIZE; - - default: - /* All other opcodes mean we cannot match the empty string. */ - return false; - } - - *p = p1; - return true; -} /* common_op_match_null_string_p */ - - -/* Return zero if TRANSLATE[S1] and TRANSLATE[S2] are identical for LEN - bytes; nonzero otherwise. */ - -static int -PREFIX(bcmp_translate) (const CHAR_T *s1, const CHAR_T *s2, - register int len, - RE_TRANSLATE_TYPE translate) -{ - register const UCHAR_T *p1 = (const UCHAR_T *) s1; - register const UCHAR_T *p2 = (const UCHAR_T *) s2; - while (len) - { -#ifdef WCHAR - if (((*p1<=0xff)?translate[*p1++]:*p1++) - != ((*p2<=0xff)?translate[*p2++]:*p2++)) - return 1; -#else /* BYTE */ - if (translate[*p1++] != translate[*p2++]) return 1; -#endif /* WCHAR */ - len--; - } - return 0; -} - - -#else /* not INSIDE_RECURSION */ - -/* Entry points for GNU code. */ - -/* re_compile_pattern is the GNU regular expression compiler: it - compiles PATTERN (of length SIZE) and puts the result in BUFP. - Returns 0 if the pattern was valid, otherwise an error string. - - Assumes the `allocated' (and perhaps `buffer') and `translate' fields - are set in BUFP on entry. - - We call regex_compile to do the actual compilation. */ - -const char * -re_compile_pattern (const char *pattern, - size_t length, - struct re_pattern_buffer *bufp) -{ - reg_errcode_t ret; - - /* GNU code is written to assume at least RE_NREGS registers will be set - (and at least one extra will be -1). */ - bufp->regs_allocated = REGS_UNALLOCATED; - - /* And GNU code determines whether or not to get register information - by passing null for the REGS argument to re_match, etc., not by - setting no_sub. */ - bufp->no_sub = 0; - - /* Match anchors at newline. */ - bufp->newline_anchor = 1; - -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - ret = wcs_regex_compile (pattern, length, re_syntax_options, bufp); - else -# endif - ret = byte_regex_compile (pattern, length, re_syntax_options, bufp); - - if (!ret) - return NULL; - return gettext (re_error_msgid + re_error_msgid_idx[(int) ret]); -} -#ifdef _LIBC -weak_alias (__re_compile_pattern, re_compile_pattern) -#endif - -/* Entry points compatible with 4.2 BSD regex library. We don't define - them unless specifically requested. */ - -#if defined _REGEX_RE_COMP || defined _LIBC - -/* BSD has one and only one pattern buffer. */ -static struct re_pattern_buffer re_comp_buf; - -char * -#ifdef _LIBC -/* Make these definitions weak in libc, so POSIX programs can redefine - these names if they don't use our functions, and still use - regcomp/regexec below without link errors. */ -weak_function -#endif -re_comp (const char *s) -{ - reg_errcode_t ret; - - if (!s) - { - if (!re_comp_buf.buffer) - return (char *) gettext ("No previous regular expression"); - return 0; - } - - if (!re_comp_buf.buffer) - { - re_comp_buf.buffer = malloc (200); - if (re_comp_buf.buffer == NULL) - return (char *) gettext (re_error_msgid - + re_error_msgid_idx[(int) REG_ESPACE]); - re_comp_buf.allocated = 200; - - re_comp_buf.fastmap = malloc (1 << BYTEWIDTH); - if (re_comp_buf.fastmap == NULL) - return (char *) gettext (re_error_msgid - + re_error_msgid_idx[(int) REG_ESPACE]); - } - - /* Since `re_exec' always passes NULL for the `regs' argument, we - don't need to initialize the pattern buffer fields which affect it. */ - - /* Match anchors at newlines. */ - re_comp_buf.newline_anchor = 1; - -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - ret = wcs_regex_compile (s, strlen (s), re_syntax_options, &re_comp_buf); - else -# endif - ret = byte_regex_compile (s, strlen (s), re_syntax_options, &re_comp_buf); - - if (!ret) - return NULL; - - /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */ - return (char *) gettext (re_error_msgid + re_error_msgid_idx[(int) ret]); -} - - -int -#ifdef _LIBC -weak_function -#endif -re_exec (const char *s) -{ - const int len = strlen (s); - return - 0 <= re_search (&re_comp_buf, s, len, 0, len, 0); -} - -#endif /* _REGEX_RE_COMP */ - -/* POSIX.2 functions. Don't define these for Emacs. */ - -#ifndef emacs - -/* regcomp takes a regular expression as a string and compiles it. - - PREG is a regex_t *. We do not expect any fields to be initialized, - since POSIX says we shouldn't. Thus, we set - - `buffer' to the compiled pattern; - `used' to the length of the compiled pattern; - `syntax' to RE_SYNTAX_POSIX_EXTENDED if the - REG_EXTENDED bit in CFLAGS is set; otherwise, to - RE_SYNTAX_POSIX_BASIC; - `newline_anchor' to REG_NEWLINE being set in CFLAGS; - `fastmap' to an allocated space for the fastmap; - `fastmap_accurate' to zero; - `re_nsub' to the number of subexpressions in PATTERN. - - PATTERN is the address of the pattern string. - - CFLAGS is a series of bits which affect compilation. - - If REG_EXTENDED is set, we use POSIX extended syntax; otherwise, we - use POSIX basic syntax. - - If REG_NEWLINE is set, then . and [^...] don't match newline. - Also, regexec will try a match beginning after every newline. - - If REG_ICASE is set, then we considers upper- and lowercase - versions of letters to be equivalent when matching. - - If REG_NOSUB is set, then when PREG is passed to regexec, that - routine will report only success or failure, and nothing about the - registers. - - It returns 0 if it succeeds, nonzero if it doesn't. (See regex.h for - the return codes and their meanings.) */ - -int -regcomp (regex_t *preg, const char *pattern, int cflags) -{ - reg_errcode_t ret; - reg_syntax_t syntax - = (cflags & REG_EXTENDED) ? - RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC; - - /* regex_compile will allocate the space for the compiled pattern. */ - preg->buffer = 0; - preg->allocated = 0; - preg->used = 0; - - /* Try to allocate space for the fastmap. */ - preg->fastmap = (char *) malloc (1 << BYTEWIDTH); - - if (cflags & REG_ICASE) - { - unsigned i; - - preg->translate = - (RE_TRANSLATE_TYPE) - malloc (CHAR_SET_SIZE * sizeof (*(RE_TRANSLATE_TYPE)0)); - if (preg->translate == NULL) - return (int) REG_ESPACE; - - /* Map uppercase characters to corresponding lowercase ones. */ - for (i = 0; i < CHAR_SET_SIZE; i++) - preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i; - } - else - preg->translate = NULL; - - /* If REG_NEWLINE is set, newlines are treated differently. */ - if (cflags & REG_NEWLINE) - { /* REG_NEWLINE implies neither . nor [^...] match newline. */ - syntax &= ~RE_DOT_NEWLINE; - syntax |= RE_HAT_LISTS_NOT_NEWLINE; - /* It also changes the matching behavior. */ - preg->newline_anchor = 1; - } - else - preg->newline_anchor = 0; - - preg->no_sub = !!(cflags & REG_NOSUB); - - /* POSIX says a null character in the pattern terminates it, so we - can use strlen here in compiling the pattern. */ -# ifdef MBS_SUPPORT - if (MB_CUR_MAX != 1) - ret = wcs_regex_compile (pattern, strlen (pattern), syntax, preg); - else -# endif - ret = byte_regex_compile (pattern, strlen (pattern), syntax, preg); - - /* POSIX doesn't distinguish between an unmatched open-group and an - unmatched close-group: both are REG_EPAREN. */ - if (ret == REG_ERPAREN) ret = REG_EPAREN; - - if (ret == REG_NOERROR && preg->fastmap) - { - /* Compute the fastmap now, since regexec cannot modify the pattern - buffer. */ - if (re_compile_fastmap (preg) == -2) - { - /* Some error occurred while computing the fastmap, just forget - about it. */ - free (preg->fastmap); - preg->fastmap = NULL; - } - } - - return (int) ret; -} -#ifdef _LIBC -weak_alias (__regcomp, regcomp) -#endif - - -/* regexec searches for a given pattern, specified by PREG, in the - string STRING. - - If NMATCH is zero or REG_NOSUB was set in the cflags argument to - `regcomp', we ignore PMATCH. Otherwise, we assume PMATCH has at - least NMATCH elements, and we set them to the offsets of the - corresponding matched substrings. - - EFLAGS specifies `execution flags' which affect matching: if - REG_NOTBOL is set, then ^ does not match at the beginning of the - string; if REG_NOTEOL is set, then $ does not match at the end. - - We return 0 if we find a match and REG_NOMATCH if not. */ - -int -regexec (const regex_t *preg, const char *string, - size_t nmatch, regmatch_t pmatch[], int eflags) -{ - int ret; - struct re_registers regs; - regex_t private_preg; - int len = strlen (string); - boolean want_reg_info = !preg->no_sub && nmatch > 0; - - private_preg = *preg; - - private_preg.not_bol = !!(eflags & REG_NOTBOL); - private_preg.not_eol = !!(eflags & REG_NOTEOL); - - /* The user has told us exactly how many registers to return - information about, via `nmatch'. We have to pass that on to the - matching routines. */ - private_preg.regs_allocated = REGS_FIXED; - - if (want_reg_info) - { - regs.num_regs = nmatch; - regs.start = TALLOC (nmatch * 2, regoff_t); - if (regs.start == NULL) - return (int) REG_NOMATCH; - regs.end = regs.start + nmatch; - } - - /* Perform the searching operation. */ - ret = re_search (&private_preg, string, len, - /* start: */ 0, /* range: */ len, - want_reg_info ? ®s : 0); - - /* Copy the register information to the POSIX structure. */ - if (want_reg_info) - { - if (ret >= 0) - { - unsigned r; - - for (r = 0; r < nmatch; r++) - { - pmatch[r].rm_so = regs.start[r]; - pmatch[r].rm_eo = regs.end[r]; - } - } - - /* If we needed the temporary register info, free the space now. */ - free (regs.start); - } - - /* We want zero return to mean success, unlike `re_search'. */ - return ret >= 0 ? (int) REG_NOERROR : (int) REG_NOMATCH; -} -#ifdef _LIBC -weak_alias (__regexec, regexec) -#endif - - -/* Returns a message corresponding to an error code, ERRCODE, returned - from either regcomp or regexec. We don't use PREG here. */ - -size_t -regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) -{ - const char *msg; - size_t msg_size; - - if (errcode < 0 - || errcode >= (int) (sizeof (re_error_msgid_idx) - / sizeof (re_error_msgid_idx[0]))) - /* Only error codes returned by the rest of the code should be passed - to this routine. If we are given anything else, or if other regex - code generates an invalid error code, then the program has a bug. - Dump core so we can fix it. */ - abort (); - - msg = gettext (re_error_msgid + re_error_msgid_idx[errcode]); - - msg_size = strlen (msg) + 1; /* Includes the null. */ - - if (errbuf_size != 0) - { - if (msg_size > errbuf_size) - { -#if defined HAVE_MEMPCPY || defined _LIBC - *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0'; -#else - memcpy (errbuf, msg, errbuf_size - 1); - errbuf[errbuf_size - 1] = 0; -#endif - } - else - memcpy (errbuf, msg, msg_size); - } - - return msg_size; -} -#ifdef _LIBC -weak_alias (__regerror, regerror) -#endif - - -/* Free dynamically allocated space used by PREG. */ - -void -regfree (regex_t *preg) -{ - if (preg->buffer != NULL) - free (preg->buffer); - preg->buffer = NULL; - - preg->allocated = 0; - preg->used = 0; - - if (preg->fastmap != NULL) - free (preg->fastmap); - preg->fastmap = NULL; - preg->fastmap_accurate = 0; - - if (preg->translate != NULL) - free (preg->translate); - preg->translate = NULL; -} -#ifdef _LIBC -weak_alias (__regfree, regfree) -#endif - -#endif /* not emacs */ - -#endif /* not INSIDE_RECURSION */ - - -#undef STORE_NUMBER -#undef STORE_NUMBER_AND_INCR -#undef EXTRACT_NUMBER -#undef EXTRACT_NUMBER_AND_INCR - -#undef DEBUG_PRINT_COMPILED_PATTERN -#undef DEBUG_PRINT_DOUBLE_STRING - -#undef INIT_FAIL_STACK -#undef RESET_FAIL_STACK -#undef DOUBLE_FAIL_STACK -#undef PUSH_PATTERN_OP -#undef PUSH_FAILURE_POINTER -#undef PUSH_FAILURE_INT -#undef PUSH_FAILURE_ELT -#undef POP_FAILURE_POINTER -#undef POP_FAILURE_INT -#undef POP_FAILURE_ELT -#undef DEBUG_PUSH -#undef DEBUG_POP -#undef PUSH_FAILURE_POINT -#undef POP_FAILURE_POINT - -#undef REG_UNSET_VALUE -#undef REG_UNSET - -#undef PATFETCH -#undef PATFETCH_RAW -#undef PATUNFETCH -#undef TRANSLATE - -#undef INIT_BUF_SIZE -#undef GET_BUFFER_SPACE -#undef BUF_PUSH -#undef BUF_PUSH_2 -#undef BUF_PUSH_3 -#undef STORE_JUMP -#undef STORE_JUMP2 -#undef INSERT_JUMP -#undef INSERT_JUMP2 -#undef EXTEND_BUFFER -#undef GET_UNSIGNED_NUMBER -#undef FREE_STACK_RETURN - -# undef POINTER_TO_OFFSET -# undef MATCHING_IN_FRST_STRING -# undef PREFETCH -# undef AT_STRINGS_BEG -# undef AT_STRINGS_END -# undef WORDCHAR_P -# undef FREE_VAR -# undef FREE_VARIABLES -# undef NO_HIGHEST_ACTIVE_REG -# undef NO_LOWEST_ACTIVE_REG - -# undef CHAR_T -# undef UCHAR_T -# undef COMPILED_BUFFER_VAR -# undef OFFSET_ADDRESS_SIZE -# undef CHAR_CLASS_SIZE -# undef PREFIX -# undef ARG_PREFIX -# undef PUT_CHAR -# undef BYTE -# undef WCHAR - -# define DEFINED_ONCE diff -Nru gettext-0.17/gettext-tools/libgrep/regexec.c gettext-0.18.1.1/gettext-tools/libgrep/regexec.c --- gettext-0.17/gettext-tools/libgrep/regexec.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regexec.c 2010-05-24 14:49:27.000000000 +0000 @@ -0,0 +1,4416 @@ +/* Extended regular expression matching and search library. + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free + Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Isamu Hasegawa . + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags, + Idx n) internal_function; +static void match_ctx_clean (re_match_context_t *mctx) internal_function; +static void match_ctx_free (re_match_context_t *cache) internal_function; +static reg_errcode_t match_ctx_add_entry (re_match_context_t *cache, Idx node, + Idx str_idx, Idx from, Idx to) + internal_function; +static Idx search_cur_bkref_entry (const re_match_context_t *mctx, Idx str_idx) + internal_function; +static reg_errcode_t match_ctx_add_subtop (re_match_context_t *mctx, Idx node, + Idx str_idx) internal_function; +static re_sub_match_last_t * match_ctx_add_sublast (re_sub_match_top_t *subtop, + Idx node, Idx str_idx) + internal_function; +static void sift_ctx_init (re_sift_context_t *sctx, re_dfastate_t **sifted_sts, + re_dfastate_t **limited_sts, Idx last_node, + Idx last_str_idx) + internal_function; +static reg_errcode_t re_search_internal (const regex_t *preg, + const char *string, Idx length, + Idx start, Idx last_start, Idx stop, + size_t nmatch, regmatch_t pmatch[], + int eflags) internal_function; +static regoff_t re_search_2_stub (struct re_pattern_buffer *bufp, + const char *string1, Idx length1, + const char *string2, Idx length2, + Idx start, regoff_t range, + struct re_registers *regs, + Idx stop, bool ret_len) internal_function; +static regoff_t re_search_stub (struct re_pattern_buffer *bufp, + const char *string, Idx length, Idx start, + regoff_t range, Idx stop, + struct re_registers *regs, + bool ret_len) internal_function; +static unsigned int re_copy_regs (struct re_registers *regs, regmatch_t *pmatch, + Idx nregs, int regs_allocated) + internal_function; +static reg_errcode_t prune_impossible_nodes (re_match_context_t *mctx) + internal_function; +static Idx check_matching (re_match_context_t *mctx, bool fl_longest_match, + Idx *p_match_first) internal_function; +static Idx check_halt_state_context (const re_match_context_t *mctx, + const re_dfastate_t *state, Idx idx) + internal_function; +static void update_regs (const re_dfa_t *dfa, regmatch_t *pmatch, + regmatch_t *prev_idx_match, Idx cur_node, + Idx cur_idx, Idx nmatch) internal_function; +static reg_errcode_t push_fail_stack (struct re_fail_stack_t *fs, + Idx str_idx, Idx dest_node, Idx nregs, + regmatch_t *regs, + re_node_set *eps_via_nodes) + internal_function; +static reg_errcode_t set_regs (const regex_t *preg, + const re_match_context_t *mctx, + size_t nmatch, regmatch_t *pmatch, + bool fl_backtrack) internal_function; +static reg_errcode_t free_fail_stack_return (struct re_fail_stack_t *fs) + internal_function; + +#ifdef RE_ENABLE_I18N +static int sift_states_iter_mb (const re_match_context_t *mctx, + re_sift_context_t *sctx, + Idx node_idx, Idx str_idx, Idx max_str_idx) + internal_function; +#endif /* RE_ENABLE_I18N */ +static reg_errcode_t sift_states_backward (const re_match_context_t *mctx, + re_sift_context_t *sctx) + internal_function; +static reg_errcode_t build_sifted_states (const re_match_context_t *mctx, + re_sift_context_t *sctx, Idx str_idx, + re_node_set *cur_dest) + internal_function; +static reg_errcode_t update_cur_sifted_state (const re_match_context_t *mctx, + re_sift_context_t *sctx, + Idx str_idx, + re_node_set *dest_nodes) + internal_function; +static reg_errcode_t add_epsilon_src_nodes (const re_dfa_t *dfa, + re_node_set *dest_nodes, + const re_node_set *candidates) + internal_function; +static bool check_dst_limits (const re_match_context_t *mctx, + const re_node_set *limits, + Idx dst_node, Idx dst_idx, Idx src_node, + Idx src_idx) internal_function; +static int check_dst_limits_calc_pos_1 (const re_match_context_t *mctx, + int boundaries, Idx subexp_idx, + Idx from_node, Idx bkref_idx) + internal_function; +static int check_dst_limits_calc_pos (const re_match_context_t *mctx, + Idx limit, Idx subexp_idx, + Idx node, Idx str_idx, + Idx bkref_idx) internal_function; +static reg_errcode_t check_subexp_limits (const re_dfa_t *dfa, + re_node_set *dest_nodes, + const re_node_set *candidates, + re_node_set *limits, + struct re_backref_cache_entry *bkref_ents, + Idx str_idx) internal_function; +static reg_errcode_t sift_states_bkref (const re_match_context_t *mctx, + re_sift_context_t *sctx, + Idx str_idx, const re_node_set *candidates) + internal_function; +static reg_errcode_t merge_state_array (const re_dfa_t *dfa, + re_dfastate_t **dst, + re_dfastate_t **src, Idx num) + internal_function; +static re_dfastate_t *find_recover_state (reg_errcode_t *err, + re_match_context_t *mctx) internal_function; +static re_dfastate_t *transit_state (reg_errcode_t *err, + re_match_context_t *mctx, + re_dfastate_t *state) internal_function; +static re_dfastate_t *merge_state_with_log (reg_errcode_t *err, + re_match_context_t *mctx, + re_dfastate_t *next_state) + internal_function; +static reg_errcode_t check_subexp_matching_top (re_match_context_t *mctx, + re_node_set *cur_nodes, + Idx str_idx) internal_function; +#if 0 +static re_dfastate_t *transit_state_sb (reg_errcode_t *err, + re_match_context_t *mctx, + re_dfastate_t *pstate) + internal_function; +#endif +#ifdef RE_ENABLE_I18N +static reg_errcode_t transit_state_mb (re_match_context_t *mctx, + re_dfastate_t *pstate) + internal_function; +#endif /* RE_ENABLE_I18N */ +static reg_errcode_t transit_state_bkref (re_match_context_t *mctx, + const re_node_set *nodes) + internal_function; +static reg_errcode_t get_subexp (re_match_context_t *mctx, + Idx bkref_node, Idx bkref_str_idx) + internal_function; +static reg_errcode_t get_subexp_sub (re_match_context_t *mctx, + const re_sub_match_top_t *sub_top, + re_sub_match_last_t *sub_last, + Idx bkref_node, Idx bkref_str) + internal_function; +static Idx find_subexp_node (const re_dfa_t *dfa, const re_node_set *nodes, + Idx subexp_idx, int type) internal_function; +static reg_errcode_t check_arrival (re_match_context_t *mctx, + state_array_t *path, Idx top_node, + Idx top_str, Idx last_node, Idx last_str, + int type) internal_function; +static reg_errcode_t check_arrival_add_next_nodes (re_match_context_t *mctx, + Idx str_idx, + re_node_set *cur_nodes, + re_node_set *next_nodes) + internal_function; +static reg_errcode_t check_arrival_expand_ecl (const re_dfa_t *dfa, + re_node_set *cur_nodes, + Idx ex_subexp, int type) + internal_function; +static reg_errcode_t check_arrival_expand_ecl_sub (const re_dfa_t *dfa, + re_node_set *dst_nodes, + Idx target, Idx ex_subexp, + int type) internal_function; +static reg_errcode_t expand_bkref_cache (re_match_context_t *mctx, + re_node_set *cur_nodes, Idx cur_str, + Idx subexp_num, int type) + internal_function; +static bool build_trtable (const re_dfa_t *dfa, + re_dfastate_t *state) internal_function; +#ifdef RE_ENABLE_I18N +static int check_node_accept_bytes (const re_dfa_t *dfa, Idx node_idx, + const re_string_t *input, Idx idx) + internal_function; +# ifdef _LIBC +static unsigned int find_collation_sequence_value (const unsigned char *mbs, + size_t name_len) + internal_function; +# endif /* _LIBC */ +#endif /* RE_ENABLE_I18N */ +static Idx group_nodes_into_DFAstates (const re_dfa_t *dfa, + const re_dfastate_t *state, + re_node_set *states_node, + bitset_t *states_ch) internal_function; +static bool check_node_accept (const re_match_context_t *mctx, + const re_token_t *node, Idx idx) + internal_function; +static reg_errcode_t extend_buffers (re_match_context_t *mctx) + internal_function; + +/* Entry point for POSIX code. */ + +/* regexec searches for a given pattern, specified by PREG, in the + string STRING. + + If NMATCH is zero or REG_NOSUB was set in the cflags argument to + `regcomp', we ignore PMATCH. Otherwise, we assume PMATCH has at + least NMATCH elements, and we set them to the offsets of the + corresponding matched substrings. + + EFLAGS specifies `execution flags' which affect matching: if + REG_NOTBOL is set, then ^ does not match at the beginning of the + string; if REG_NOTEOL is set, then $ does not match at the end. + + We return 0 if we find a match and REG_NOMATCH if not. */ + +int +regexec (preg, string, nmatch, pmatch, eflags) + const regex_t *_Restrict_ preg; + const char *_Restrict_ string; + size_t nmatch; + regmatch_t pmatch[_Restrict_arr_]; + int eflags; +{ + reg_errcode_t err; + Idx start, length; +#ifdef _LIBC + re_dfa_t *dfa = (re_dfa_t *) preg->buffer; +#endif + + if (eflags & ~(REG_NOTBOL | REG_NOTEOL | REG_STARTEND)) + return REG_BADPAT; + + if (eflags & REG_STARTEND) + { + start = pmatch[0].rm_so; + length = pmatch[0].rm_eo; + } + else + { + start = 0; + length = strlen (string); + } + + __libc_lock_lock (dfa->lock); + if (preg->no_sub) + err = re_search_internal (preg, string, length, start, length, + length, 0, NULL, eflags); + else + err = re_search_internal (preg, string, length, start, length, + length, nmatch, pmatch, eflags); + __libc_lock_unlock (dfa->lock); + return err != REG_NOERROR; +} + +#ifdef _LIBC +# include +versioned_symbol (libc, __regexec, regexec, GLIBC_2_3_4); + +# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4) +__typeof__ (__regexec) __compat_regexec; + +int +attribute_compat_text_section +__compat_regexec (const regex_t *_Restrict_ preg, + const char *_Restrict_ string, size_t nmatch, + regmatch_t pmatch[], int eflags) +{ + return regexec (preg, string, nmatch, pmatch, + eflags & (REG_NOTBOL | REG_NOTEOL)); +} +compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0); +# endif +#endif + +/* Entry points for GNU code. */ + +/* re_match, re_search, re_match_2, re_search_2 + + The former two functions operate on STRING with length LENGTH, + while the later two operate on concatenation of STRING1 and STRING2 + with lengths LENGTH1 and LENGTH2, respectively. + + re_match() matches the compiled pattern in BUFP against the string, + starting at index START. + + re_search() first tries matching at index START, then it tries to match + starting from index START + 1, and so on. The last start position tried + is START + RANGE. (Thus RANGE = 0 forces re_search to operate the same + way as re_match().) + + The parameter STOP of re_{match,search}_2 specifies that no match exceeding + the first STOP characters of the concatenation of the strings should be + concerned. + + If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match + and all groups is stored in REGS. (For the "_2" variants, the offsets are + computed relative to the concatenation, not relative to the individual + strings.) + + On success, re_match* functions return the length of the match, re_search* + return the position of the start of the match. Return value -1 means no + match was found and -2 indicates an internal error. */ + +regoff_t +re_match (bufp, string, length, start, regs) + struct re_pattern_buffer *bufp; + const char *string; + Idx length, start; + struct re_registers *regs; +{ + return re_search_stub (bufp, string, length, start, 0, length, regs, true); +} +#ifdef _LIBC +weak_alias (__re_match, re_match) +#endif + +regoff_t +re_search (bufp, string, length, start, range, regs) + struct re_pattern_buffer *bufp; + const char *string; + Idx length, start; + regoff_t range; + struct re_registers *regs; +{ + return re_search_stub (bufp, string, length, start, range, length, regs, + false); +} +#ifdef _LIBC +weak_alias (__re_search, re_search) +#endif + +regoff_t +re_match_2 (bufp, string1, length1, string2, length2, start, regs, stop) + struct re_pattern_buffer *bufp; + const char *string1, *string2; + Idx length1, length2, start, stop; + struct re_registers *regs; +{ + return re_search_2_stub (bufp, string1, length1, string2, length2, + start, 0, regs, stop, true); +} +#ifdef _LIBC +weak_alias (__re_match_2, re_match_2) +#endif + +regoff_t +re_search_2 (bufp, string1, length1, string2, length2, start, range, regs, stop) + struct re_pattern_buffer *bufp; + const char *string1, *string2; + Idx length1, length2, start, stop; + regoff_t range; + struct re_registers *regs; +{ + return re_search_2_stub (bufp, string1, length1, string2, length2, + start, range, regs, stop, false); +} +#ifdef _LIBC +weak_alias (__re_search_2, re_search_2) +#endif + +static regoff_t +internal_function +re_search_2_stub (struct re_pattern_buffer *bufp, + const char *string1, Idx length1, + const char *string2, Idx length2, + Idx start, regoff_t range, struct re_registers *regs, + Idx stop, bool ret_len) +{ + const char *str; + regoff_t rval; + Idx len = length1 + length2; + char *s = NULL; + + if (BE (length1 < 0 || length2 < 0 || stop < 0 || len < length1, 0)) + return -2; + + /* Concatenate the strings. */ + if (length2 > 0) + if (length1 > 0) + { + s = re_malloc (char, len); + + if (BE (s == NULL, 0)) + return -2; +#ifdef _LIBC + memcpy (__mempcpy (s, string1, length1), string2, length2); +#else + memcpy (s, string1, length1); + memcpy (s + length1, string2, length2); +#endif + str = s; + } + else + str = string2; + else + str = string1; + + rval = re_search_stub (bufp, str, len, start, range, stop, regs, + ret_len); + re_free (s); + return rval; +} + +/* The parameters have the same meaning as those of re_search. + Additional parameters: + If RET_LEN is true the length of the match is returned (re_match style); + otherwise the position of the match is returned. */ + +static regoff_t +internal_function +re_search_stub (struct re_pattern_buffer *bufp, + const char *string, Idx length, + Idx start, regoff_t range, Idx stop, struct re_registers *regs, + bool ret_len) +{ + reg_errcode_t result; + regmatch_t *pmatch; + Idx nregs; + regoff_t rval; + int eflags = 0; +#ifdef _LIBC + re_dfa_t *dfa = (re_dfa_t *) bufp->buffer; +#endif + Idx last_start = start + range; + + /* Check for out-of-range. */ + if (BE (start < 0 || start > length, 0)) + return -1; + if (BE (length < last_start || (0 <= range && last_start < start), 0)) + last_start = length; + else if (BE (last_start < 0 || (range < 0 && start <= last_start), 0)) + last_start = 0; + + __libc_lock_lock (dfa->lock); + + eflags |= (bufp->not_bol) ? REG_NOTBOL : 0; + eflags |= (bufp->not_eol) ? REG_NOTEOL : 0; + + /* Compile fastmap if we haven't yet. */ + if (start < last_start && bufp->fastmap != NULL && !bufp->fastmap_accurate) + re_compile_fastmap (bufp); + + if (BE (bufp->no_sub, 0)) + regs = NULL; + + /* We need at least 1 register. */ + if (regs == NULL) + nregs = 1; + else if (BE (bufp->regs_allocated == REGS_FIXED + && regs->num_regs <= bufp->re_nsub, 0)) + { + nregs = regs->num_regs; + if (BE (nregs < 1, 0)) + { + /* Nothing can be copied to regs. */ + regs = NULL; + nregs = 1; + } + } + else + nregs = bufp->re_nsub + 1; + pmatch = re_malloc (regmatch_t, nregs); + if (BE (pmatch == NULL, 0)) + { + rval = -2; + goto out; + } + + result = re_search_internal (bufp, string, length, start, last_start, stop, + nregs, pmatch, eflags); + + rval = 0; + + /* I hope we needn't fill ther regs with -1's when no match was found. */ + if (result != REG_NOERROR) + rval = -1; + else if (regs != NULL) + { + /* If caller wants register contents data back, copy them. */ + bufp->regs_allocated = re_copy_regs (regs, pmatch, nregs, + bufp->regs_allocated); + if (BE (bufp->regs_allocated == REGS_UNALLOCATED, 0)) + rval = -2; + } + + if (BE (rval == 0, 1)) + { + if (ret_len) + { + assert (pmatch[0].rm_so == start); + rval = pmatch[0].rm_eo - start; + } + else + rval = pmatch[0].rm_so; + } + re_free (pmatch); + out: + __libc_lock_unlock (dfa->lock); + return rval; +} + +static unsigned int +internal_function +re_copy_regs (struct re_registers *regs, regmatch_t *pmatch, Idx nregs, + int regs_allocated) +{ + int rval = REGS_REALLOCATE; + Idx i; + Idx need_regs = nregs + 1; + /* We need one extra element beyond `num_regs' for the `-1' marker GNU code + uses. */ + + /* Have the register data arrays been allocated? */ + if (regs_allocated == REGS_UNALLOCATED) + { /* No. So allocate them with malloc. */ + regs->start = re_malloc (regoff_t, need_regs); + if (BE (regs->start == NULL, 0)) + return REGS_UNALLOCATED; + regs->end = re_malloc (regoff_t, need_regs); + if (BE (regs->end == NULL, 0)) + { + re_free (regs->start); + return REGS_UNALLOCATED; + } + regs->num_regs = need_regs; + } + else if (regs_allocated == REGS_REALLOCATE) + { /* Yes. If we need more elements than were already + allocated, reallocate them. If we need fewer, just + leave it alone. */ + if (BE (need_regs > regs->num_regs, 0)) + { + regoff_t *new_start = re_realloc (regs->start, regoff_t, need_regs); + regoff_t *new_end; + if (BE (new_start == NULL, 0)) + return REGS_UNALLOCATED; + new_end = re_realloc (regs->end, regoff_t, need_regs); + if (BE (new_end == NULL, 0)) + { + re_free (new_start); + return REGS_UNALLOCATED; + } + regs->start = new_start; + regs->end = new_end; + regs->num_regs = need_regs; + } + } + else + { + assert (regs_allocated == REGS_FIXED); + /* This function may not be called with REGS_FIXED and nregs too big. */ + assert (regs->num_regs >= nregs); + rval = REGS_FIXED; + } + + /* Copy the regs. */ + for (i = 0; i < nregs; ++i) + { + regs->start[i] = pmatch[i].rm_so; + regs->end[i] = pmatch[i].rm_eo; + } + for ( ; i < regs->num_regs; ++i) + regs->start[i] = regs->end[i] = -1; + + return rval; +} + +/* Set REGS to hold NUM_REGS registers, storing them in STARTS and + ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use + this memory for recording register information. STARTS and ENDS + must be allocated using the malloc library routine, and must each + be at least NUM_REGS * sizeof (regoff_t) bytes long. + + If NUM_REGS == 0, then subsequent matches should allocate their own + register data. + + Unless this function is called, the first search or match using + PATTERN_BUFFER will allocate its own register data, without + freeing the old data. */ + +void +re_set_registers (bufp, regs, num_regs, starts, ends) + struct re_pattern_buffer *bufp; + struct re_registers *regs; + __re_size_t num_regs; + regoff_t *starts, *ends; +{ + if (num_regs) + { + bufp->regs_allocated = REGS_REALLOCATE; + regs->num_regs = num_regs; + regs->start = starts; + regs->end = ends; + } + else + { + bufp->regs_allocated = REGS_UNALLOCATED; + regs->num_regs = 0; + regs->start = regs->end = NULL; + } +} +#ifdef _LIBC +weak_alias (__re_set_registers, re_set_registers) +#endif + +/* Entry points compatible with 4.2 BSD regex library. We don't define + them unless specifically requested. */ + +#if defined _REGEX_RE_COMP || defined _LIBC +int +# ifdef _LIBC +weak_function +# endif +re_exec (s) + const char *s; +{ + return 0 == regexec (&re_comp_buf, s, 0, NULL, 0); +} +#endif /* _REGEX_RE_COMP */ + +/* Internal entry point. */ + +/* Searches for a compiled pattern PREG in the string STRING, whose + length is LENGTH. NMATCH, PMATCH, and EFLAGS have the same + meaning as with regexec. LAST_START is START + RANGE, where + START and RANGE have the same meaning as with re_search. + Return REG_NOERROR if we find a match, and REG_NOMATCH if not, + otherwise return the error code. + Note: We assume front end functions already check ranges. + (0 <= LAST_START && LAST_START <= LENGTH) */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_search_internal (const regex_t *preg, + const char *string, Idx length, + Idx start, Idx last_start, Idx stop, + size_t nmatch, regmatch_t pmatch[], + int eflags) +{ + reg_errcode_t err; + const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer; + Idx left_lim, right_lim; + int incr; + bool fl_longest_match; + int match_kind; + Idx match_first; + Idx match_last = REG_MISSING; + Idx extra_nmatch; + bool sb; + int ch; +#if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) + re_match_context_t mctx = { .dfa = dfa }; +#else + re_match_context_t mctx; +#endif + char *fastmap = ((preg->fastmap != NULL && preg->fastmap_accurate + && start != last_start && !preg->can_be_null) + ? preg->fastmap : NULL); + RE_TRANSLATE_TYPE t = preg->translate; + +#if !(defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)) + memset (&mctx, '\0', sizeof (re_match_context_t)); + mctx.dfa = dfa; +#endif + + extra_nmatch = (nmatch > preg->re_nsub) ? nmatch - (preg->re_nsub + 1) : 0; + nmatch -= extra_nmatch; + + /* Check if the DFA haven't been compiled. */ + if (BE (preg->used == 0 || dfa->init_state == NULL + || dfa->init_state_word == NULL || dfa->init_state_nl == NULL + || dfa->init_state_begbuf == NULL, 0)) + return REG_NOMATCH; + +#ifdef DEBUG + /* We assume front-end functions already check them. */ + assert (0 <= last_start && last_start <= length); +#endif + + /* If initial states with non-begbuf contexts have no elements, + the regex must be anchored. If preg->newline_anchor is set, + we'll never use init_state_nl, so do not check it. */ + if (dfa->init_state->nodes.nelem == 0 + && dfa->init_state_word->nodes.nelem == 0 + && (dfa->init_state_nl->nodes.nelem == 0 + || !preg->newline_anchor)) + { + if (start != 0 && last_start != 0) + return REG_NOMATCH; + start = last_start = 0; + } + + /* We must check the longest matching, if nmatch > 0. */ + fl_longest_match = (nmatch != 0 || dfa->nbackref); + + err = re_string_allocate (&mctx.input, string, length, dfa->nodes_len + 1, + preg->translate, (preg->syntax & RE_ICASE) != 0, + dfa); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + mctx.input.stop = stop; + mctx.input.raw_stop = stop; + mctx.input.newline_anchor = preg->newline_anchor; + + err = match_ctx_init (&mctx, eflags, dfa->nbackref * 2); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + + /* We will log all the DFA states through which the dfa pass, + if nmatch > 1, or this dfa has "multibyte node", which is a + back-reference or a node which can accept multibyte character or + multi character collating element. */ + if (nmatch > 1 || dfa->has_mb_node) + { + /* Avoid overflow. */ + if (BE (SIZE_MAX / sizeof (re_dfastate_t *) <= mctx.input.bufs_len, 0)) + { + err = REG_ESPACE; + goto free_return; + } + + mctx.state_log = re_malloc (re_dfastate_t *, mctx.input.bufs_len + 1); + if (BE (mctx.state_log == NULL, 0)) + { + err = REG_ESPACE; + goto free_return; + } + } + else + mctx.state_log = NULL; + + match_first = start; + mctx.input.tip_context = (eflags & REG_NOTBOL) ? CONTEXT_BEGBUF + : CONTEXT_NEWLINE | CONTEXT_BEGBUF; + + /* Check incrementally whether of not the input string match. */ + incr = (last_start < start) ? -1 : 1; + left_lim = (last_start < start) ? last_start : start; + right_lim = (last_start < start) ? start : last_start; + sb = dfa->mb_cur_max == 1; + match_kind = + (fastmap + ? ((sb || !(preg->syntax & RE_ICASE || t) ? 4 : 0) + | (start <= last_start ? 2 : 0) + | (t != NULL ? 1 : 0)) + : 8); + + for (;; match_first += incr) + { + err = REG_NOMATCH; + if (match_first < left_lim || right_lim < match_first) + goto free_return; + + /* Advance as rapidly as possible through the string, until we + find a plausible place to start matching. This may be done + with varying efficiency, so there are various possibilities: + only the most common of them are specialized, in order to + save on code size. We use a switch statement for speed. */ + switch (match_kind) + { + case 8: + /* No fastmap. */ + break; + + case 7: + /* Fastmap with single-byte translation, match forward. */ + while (BE (match_first < right_lim, 1) + && !fastmap[t[(unsigned char) string[match_first]]]) + ++match_first; + goto forward_match_found_start_or_reached_end; + + case 6: + /* Fastmap without translation, match forward. */ + while (BE (match_first < right_lim, 1) + && !fastmap[(unsigned char) string[match_first]]) + ++match_first; + + forward_match_found_start_or_reached_end: + if (BE (match_first == right_lim, 0)) + { + ch = match_first >= length + ? 0 : (unsigned char) string[match_first]; + if (!fastmap[t ? t[ch] : ch]) + goto free_return; + } + break; + + case 4: + case 5: + /* Fastmap without multi-byte translation, match backwards. */ + while (match_first >= left_lim) + { + ch = match_first >= length + ? 0 : (unsigned char) string[match_first]; + if (fastmap[t ? t[ch] : ch]) + break; + --match_first; + } + if (match_first < left_lim) + goto free_return; + break; + + default: + /* In this case, we can't determine easily the current byte, + since it might be a component byte of a multibyte + character. Then we use the constructed buffer instead. */ + for (;;) + { + /* If MATCH_FIRST is out of the valid range, reconstruct the + buffers. */ + __re_size_t offset = match_first - mctx.input.raw_mbs_idx; + if (BE (offset >= (__re_size_t) mctx.input.valid_raw_len, 0)) + { + err = re_string_reconstruct (&mctx.input, match_first, + eflags); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + + offset = match_first - mctx.input.raw_mbs_idx; + } + /* If MATCH_FIRST is out of the buffer, leave it as '\0'. + Note that MATCH_FIRST must not be smaller than 0. */ + ch = (match_first >= length + ? 0 : re_string_byte_at (&mctx.input, offset)); + if (fastmap[ch]) + break; + match_first += incr; + if (match_first < left_lim || match_first > right_lim) + { + err = REG_NOMATCH; + goto free_return; + } + } + break; + } + + /* Reconstruct the buffers so that the matcher can assume that + the matching starts from the beginning of the buffer. */ + err = re_string_reconstruct (&mctx.input, match_first, eflags); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + +#ifdef RE_ENABLE_I18N + /* Don't consider this char as a possible match start if it part, + yet isn't the head, of a multibyte character. */ + if (!sb && !re_string_first_byte (&mctx.input, 0)) + continue; +#endif + + /* It seems to be appropriate one, then use the matcher. */ + /* We assume that the matching starts from 0. */ + mctx.state_log_top = mctx.nbkref_ents = mctx.max_mb_elem_len = 0; + match_last = check_matching (&mctx, fl_longest_match, + start <= last_start ? &match_first : NULL); + if (match_last != REG_MISSING) + { + if (BE (match_last == REG_ERROR, 0)) + { + err = REG_ESPACE; + goto free_return; + } + else + { + mctx.match_last = match_last; + if ((!preg->no_sub && nmatch > 1) || dfa->nbackref) + { + re_dfastate_t *pstate = mctx.state_log[match_last]; + mctx.last_node = check_halt_state_context (&mctx, pstate, + match_last); + } + if ((!preg->no_sub && nmatch > 1 && dfa->has_plural_match) + || dfa->nbackref) + { + err = prune_impossible_nodes (&mctx); + if (err == REG_NOERROR) + break; + if (BE (err != REG_NOMATCH, 0)) + goto free_return; + match_last = REG_MISSING; + } + else + break; /* We found a match. */ + } + } + + match_ctx_clean (&mctx); + } + +#ifdef DEBUG + assert (match_last != REG_MISSING); + assert (err == REG_NOERROR); +#endif + + /* Set pmatch[] if we need. */ + if (nmatch > 0) + { + Idx reg_idx; + + /* Initialize registers. */ + for (reg_idx = 1; reg_idx < nmatch; ++reg_idx) + pmatch[reg_idx].rm_so = pmatch[reg_idx].rm_eo = -1; + + /* Set the points where matching start/end. */ + pmatch[0].rm_so = 0; + pmatch[0].rm_eo = mctx.match_last; + /* FIXME: This function should fail if mctx.match_last exceeds + the maximum possible regoff_t value. We need a new error + code REG_OVERFLOW. */ + + if (!preg->no_sub && nmatch > 1) + { + err = set_regs (preg, &mctx, nmatch, pmatch, + dfa->has_plural_match && dfa->nbackref > 0); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + + /* At last, add the offset to the each registers, since we slided + the buffers so that we could assume that the matching starts + from 0. */ + for (reg_idx = 0; reg_idx < nmatch; ++reg_idx) + if (pmatch[reg_idx].rm_so != -1) + { +#ifdef RE_ENABLE_I18N + if (BE (mctx.input.offsets_needed != 0, 0)) + { + pmatch[reg_idx].rm_so = + (pmatch[reg_idx].rm_so == mctx.input.valid_len + ? mctx.input.valid_raw_len + : mctx.input.offsets[pmatch[reg_idx].rm_so]); + pmatch[reg_idx].rm_eo = + (pmatch[reg_idx].rm_eo == mctx.input.valid_len + ? mctx.input.valid_raw_len + : mctx.input.offsets[pmatch[reg_idx].rm_eo]); + } +#else + assert (mctx.input.offsets_needed == 0); +#endif + pmatch[reg_idx].rm_so += match_first; + pmatch[reg_idx].rm_eo += match_first; + } + for (reg_idx = 0; reg_idx < extra_nmatch; ++reg_idx) + { + pmatch[nmatch + reg_idx].rm_so = -1; + pmatch[nmatch + reg_idx].rm_eo = -1; + } + + if (dfa->subexp_map) + for (reg_idx = 0; reg_idx + 1 < nmatch; reg_idx++) + if (dfa->subexp_map[reg_idx] != reg_idx) + { + pmatch[reg_idx + 1].rm_so + = pmatch[dfa->subexp_map[reg_idx] + 1].rm_so; + pmatch[reg_idx + 1].rm_eo + = pmatch[dfa->subexp_map[reg_idx] + 1].rm_eo; + } + } + + free_return: + re_free (mctx.state_log); + if (dfa->nbackref) + match_ctx_free (&mctx); + re_string_destruct (&mctx.input); + return err; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +prune_impossible_nodes (re_match_context_t *mctx) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx halt_node, match_last; + reg_errcode_t ret; + re_dfastate_t **sifted_states; + re_dfastate_t **lim_states = NULL; + re_sift_context_t sctx; +#ifdef DEBUG + assert (mctx->state_log != NULL); +#endif + match_last = mctx->match_last; + halt_node = mctx->last_node; + + /* Avoid overflow. */ + if (BE (SIZE_MAX / sizeof (re_dfastate_t *) <= match_last, 0)) + return REG_ESPACE; + + sifted_states = re_malloc (re_dfastate_t *, match_last + 1); + if (BE (sifted_states == NULL, 0)) + { + ret = REG_ESPACE; + goto free_return; + } + if (dfa->nbackref) + { + lim_states = re_malloc (re_dfastate_t *, match_last + 1); + if (BE (lim_states == NULL, 0)) + { + ret = REG_ESPACE; + goto free_return; + } + while (1) + { + memset (lim_states, '\0', + sizeof (re_dfastate_t *) * (match_last + 1)); + sift_ctx_init (&sctx, sifted_states, lim_states, halt_node, + match_last); + ret = sift_states_backward (mctx, &sctx); + re_node_set_free (&sctx.limits); + if (BE (ret != REG_NOERROR, 0)) + goto free_return; + if (sifted_states[0] != NULL || lim_states[0] != NULL) + break; + do + { + --match_last; + if (! REG_VALID_INDEX (match_last)) + { + ret = REG_NOMATCH; + goto free_return; + } + } while (mctx->state_log[match_last] == NULL + || !mctx->state_log[match_last]->halt); + halt_node = check_halt_state_context (mctx, + mctx->state_log[match_last], + match_last); + } + ret = merge_state_array (dfa, sifted_states, lim_states, + match_last + 1); + re_free (lim_states); + lim_states = NULL; + if (BE (ret != REG_NOERROR, 0)) + goto free_return; + } + else + { + sift_ctx_init (&sctx, sifted_states, lim_states, halt_node, match_last); + ret = sift_states_backward (mctx, &sctx); + re_node_set_free (&sctx.limits); + if (BE (ret != REG_NOERROR, 0)) + goto free_return; + if (sifted_states[0] == NULL) + { + ret = REG_NOMATCH; + goto free_return; + } + } + re_free (mctx->state_log); + mctx->state_log = sifted_states; + sifted_states = NULL; + mctx->last_node = halt_node; + mctx->match_last = match_last; + ret = REG_NOERROR; + free_return: + re_free (sifted_states); + re_free (lim_states); + return ret; +} + +/* Acquire an initial state and return it. + We must select appropriate initial state depending on the context, + since initial states may have constraints like "\<", "^", etc.. */ + +static inline re_dfastate_t * +__attribute ((always_inline)) internal_function +acquire_init_state_context (reg_errcode_t *err, const re_match_context_t *mctx, + Idx idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + if (dfa->init_state->has_constraint) + { + unsigned int context; + context = re_string_context_at (&mctx->input, idx - 1, mctx->eflags); + if (IS_WORD_CONTEXT (context)) + return dfa->init_state_word; + else if (IS_ORDINARY_CONTEXT (context)) + return dfa->init_state; + else if (IS_BEGBUF_CONTEXT (context) && IS_NEWLINE_CONTEXT (context)) + return dfa->init_state_begbuf; + else if (IS_NEWLINE_CONTEXT (context)) + return dfa->init_state_nl; + else if (IS_BEGBUF_CONTEXT (context)) + { + /* It is relatively rare case, then calculate on demand. */ + return re_acquire_state_context (err, dfa, + dfa->init_state->entrance_nodes, + context); + } + else + /* Must not happen? */ + return dfa->init_state; + } + else + return dfa->init_state; +} + +/* Check whether the regular expression match input string INPUT or not, + and return the index where the matching end. Return REG_MISSING if + there is no match, and return REG_ERROR in case of an error. + FL_LONGEST_MATCH means we want the POSIX longest matching. + If P_MATCH_FIRST is not NULL, and the match fails, it is set to the + next place where we may want to try matching. + Note that the matcher assume that the maching starts from the current + index of the buffer. */ + +static Idx +internal_function __attribute_warn_unused_result__ +check_matching (re_match_context_t *mctx, bool fl_longest_match, + Idx *p_match_first) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err; + Idx match = 0; + Idx match_last = REG_MISSING; + Idx cur_str_idx = re_string_cur_idx (&mctx->input); + re_dfastate_t *cur_state; + bool at_init_state = p_match_first != NULL; + Idx next_start_idx = cur_str_idx; + + err = REG_NOERROR; + cur_state = acquire_init_state_context (&err, mctx, cur_str_idx); + /* An initial state must not be NULL (invalid). */ + if (BE (cur_state == NULL, 0)) + { + assert (err == REG_ESPACE); + return REG_ERROR; + } + + if (mctx->state_log != NULL) + { + mctx->state_log[cur_str_idx] = cur_state; + + /* Check OP_OPEN_SUBEXP in the initial state in case that we use them + later. E.g. Processing back references. */ + if (BE (dfa->nbackref, 0)) + { + at_init_state = false; + err = check_subexp_matching_top (mctx, &cur_state->nodes, 0); + if (BE (err != REG_NOERROR, 0)) + return err; + + if (cur_state->has_backref) + { + err = transit_state_bkref (mctx, &cur_state->nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + } + } + } + + /* If the RE accepts NULL string. */ + if (BE (cur_state->halt, 0)) + { + if (!cur_state->has_constraint + || check_halt_state_context (mctx, cur_state, cur_str_idx)) + { + if (!fl_longest_match) + return cur_str_idx; + else + { + match_last = cur_str_idx; + match = 1; + } + } + } + + while (!re_string_eoi (&mctx->input)) + { + re_dfastate_t *old_state = cur_state; + Idx next_char_idx = re_string_cur_idx (&mctx->input) + 1; + + if (BE (next_char_idx >= mctx->input.bufs_len, 0) + || (BE (next_char_idx >= mctx->input.valid_len, 0) + && mctx->input.valid_len < mctx->input.len)) + { + err = extend_buffers (mctx); + if (BE (err != REG_NOERROR, 0)) + { + assert (err == REG_ESPACE); + return REG_ERROR; + } + } + + cur_state = transit_state (&err, mctx, cur_state); + if (mctx->state_log != NULL) + cur_state = merge_state_with_log (&err, mctx, cur_state); + + if (cur_state == NULL) + { + /* Reached the invalid state or an error. Try to recover a valid + state using the state log, if available and if we have not + already found a valid (even if not the longest) match. */ + if (BE (err != REG_NOERROR, 0)) + return REG_ERROR; + + if (mctx->state_log == NULL + || (match && !fl_longest_match) + || (cur_state = find_recover_state (&err, mctx)) == NULL) + break; + } + + if (BE (at_init_state, 0)) + { + if (old_state == cur_state) + next_start_idx = next_char_idx; + else + at_init_state = false; + } + + if (cur_state->halt) + { + /* Reached a halt state. + Check the halt state can satisfy the current context. */ + if (!cur_state->has_constraint + || check_halt_state_context (mctx, cur_state, + re_string_cur_idx (&mctx->input))) + { + /* We found an appropriate halt state. */ + match_last = re_string_cur_idx (&mctx->input); + match = 1; + + /* We found a match, do not modify match_first below. */ + p_match_first = NULL; + if (!fl_longest_match) + break; + } + } + } + + if (p_match_first) + *p_match_first += next_start_idx; + + return match_last; +} + +/* Check NODE match the current context. */ + +static bool +internal_function +check_halt_node_context (const re_dfa_t *dfa, Idx node, unsigned int context) +{ + re_token_type_t type = dfa->nodes[node].type; + unsigned int constraint = dfa->nodes[node].constraint; + if (type != END_OF_RE) + return false; + if (!constraint) + return true; + if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context)) + return false; + return true; +} + +/* Check the halt state STATE match the current context. + Return 0 if not match, if the node, STATE has, is a halt node and + match the context, return the node. */ + +static Idx +internal_function +check_halt_state_context (const re_match_context_t *mctx, + const re_dfastate_t *state, Idx idx) +{ + Idx i; + unsigned int context; +#ifdef DEBUG + assert (state->halt); +#endif + context = re_string_context_at (&mctx->input, idx, mctx->eflags); + for (i = 0; i < state->nodes.nelem; ++i) + if (check_halt_node_context (mctx->dfa, state->nodes.elems[i], context)) + return state->nodes.elems[i]; + return 0; +} + +/* Compute the next node to which "NFA" transit from NODE("NFA" is a NFA + corresponding to the DFA). + Return the destination node, and update EPS_VIA_NODES; + return REG_MISSING in case of errors. */ + +static Idx +internal_function +proceed_next_node (const re_match_context_t *mctx, Idx nregs, regmatch_t *regs, + Idx *pidx, Idx node, re_node_set *eps_via_nodes, + struct re_fail_stack_t *fs) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx i; + bool ok; + if (IS_EPSILON_NODE (dfa->nodes[node].type)) + { + re_node_set *cur_nodes = &mctx->state_log[*pidx]->nodes; + re_node_set *edests = &dfa->edests[node]; + Idx dest_node; + ok = re_node_set_insert (eps_via_nodes, node); + if (BE (! ok, 0)) + return REG_ERROR; + /* Pick up a valid destination, or return REG_MISSING if none + is found. */ + for (dest_node = REG_MISSING, i = 0; i < edests->nelem; ++i) + { + Idx candidate = edests->elems[i]; + if (!re_node_set_contains (cur_nodes, candidate)) + continue; + if (dest_node == REG_MISSING) + dest_node = candidate; + + else + { + /* In order to avoid infinite loop like "(a*)*", return the second + epsilon-transition if the first was already considered. */ + if (re_node_set_contains (eps_via_nodes, dest_node)) + return candidate; + + /* Otherwise, push the second epsilon-transition on the fail stack. */ + else if (fs != NULL + && push_fail_stack (fs, *pidx, candidate, nregs, regs, + eps_via_nodes)) + return REG_ERROR; + + /* We know we are going to exit. */ + break; + } + } + return dest_node; + } + else + { + Idx naccepted = 0; + re_token_type_t type = dfa->nodes[node].type; + +#ifdef RE_ENABLE_I18N + if (dfa->nodes[node].accept_mb) + naccepted = check_node_accept_bytes (dfa, node, &mctx->input, *pidx); + else +#endif /* RE_ENABLE_I18N */ + if (type == OP_BACK_REF) + { + Idx subexp_idx = dfa->nodes[node].opr.idx + 1; + naccepted = regs[subexp_idx].rm_eo - regs[subexp_idx].rm_so; + if (fs != NULL) + { + if (regs[subexp_idx].rm_so == -1 || regs[subexp_idx].rm_eo == -1) + return REG_MISSING; + else if (naccepted) + { + char *buf = (char *) re_string_get_buffer (&mctx->input); + if (memcmp (buf + regs[subexp_idx].rm_so, buf + *pidx, + naccepted) != 0) + return REG_MISSING; + } + } + + if (naccepted == 0) + { + Idx dest_node; + ok = re_node_set_insert (eps_via_nodes, node); + if (BE (! ok, 0)) + return REG_ERROR; + dest_node = dfa->edests[node].elems[0]; + if (re_node_set_contains (&mctx->state_log[*pidx]->nodes, + dest_node)) + return dest_node; + } + } + + if (naccepted != 0 + || check_node_accept (mctx, dfa->nodes + node, *pidx)) + { + Idx dest_node = dfa->nexts[node]; + *pidx = (naccepted == 0) ? *pidx + 1 : *pidx + naccepted; + if (fs && (*pidx > mctx->match_last || mctx->state_log[*pidx] == NULL + || !re_node_set_contains (&mctx->state_log[*pidx]->nodes, + dest_node))) + return REG_MISSING; + re_node_set_empty (eps_via_nodes); + return dest_node; + } + } + return REG_MISSING; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +push_fail_stack (struct re_fail_stack_t *fs, Idx str_idx, Idx dest_node, + Idx nregs, regmatch_t *regs, re_node_set *eps_via_nodes) +{ + reg_errcode_t err; + Idx num = fs->num++; + if (fs->num == fs->alloc) + { + struct re_fail_stack_ent_t *new_array; + new_array = realloc (fs->stack, (sizeof (struct re_fail_stack_ent_t) + * fs->alloc * 2)); + if (new_array == NULL) + return REG_ESPACE; + fs->alloc *= 2; + fs->stack = new_array; + } + fs->stack[num].idx = str_idx; + fs->stack[num].node = dest_node; + fs->stack[num].regs = re_malloc (regmatch_t, nregs); + if (fs->stack[num].regs == NULL) + return REG_ESPACE; + memcpy (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs); + err = re_node_set_init_copy (&fs->stack[num].eps_via_nodes, eps_via_nodes); + return err; +} + +static Idx +internal_function +pop_fail_stack (struct re_fail_stack_t *fs, Idx *pidx, Idx nregs, + regmatch_t *regs, re_node_set *eps_via_nodes) +{ + Idx num = --fs->num; + assert (REG_VALID_INDEX (num)); + *pidx = fs->stack[num].idx; + memcpy (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs); + re_node_set_free (eps_via_nodes); + re_free (fs->stack[num].regs); + *eps_via_nodes = fs->stack[num].eps_via_nodes; + return fs->stack[num].node; +} + +/* Set the positions where the subexpressions are starts/ends to registers + PMATCH. + Note: We assume that pmatch[0] is already set, and + pmatch[i].rm_so == pmatch[i].rm_eo == -1 for 0 < i < nmatch. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +set_regs (const regex_t *preg, const re_match_context_t *mctx, size_t nmatch, + regmatch_t *pmatch, bool fl_backtrack) +{ + const re_dfa_t *dfa = (const re_dfa_t *) preg->buffer; + Idx idx, cur_node; + re_node_set eps_via_nodes; + struct re_fail_stack_t *fs; + struct re_fail_stack_t fs_body = { 0, 2, NULL }; + regmatch_t *prev_idx_match; + bool prev_idx_match_malloced = false; + +#ifdef DEBUG + assert (nmatch > 1); + assert (mctx->state_log != NULL); +#endif + if (fl_backtrack) + { + fs = &fs_body; + fs->stack = re_malloc (struct re_fail_stack_ent_t, fs->alloc); + if (fs->stack == NULL) + return REG_ESPACE; + } + else + fs = NULL; + + cur_node = dfa->init_node; + re_node_set_init_empty (&eps_via_nodes); + + if (__libc_use_alloca (nmatch * sizeof (regmatch_t))) + prev_idx_match = (regmatch_t *) alloca (nmatch * sizeof (regmatch_t)); + else + { + prev_idx_match = re_malloc (regmatch_t, nmatch); + if (prev_idx_match == NULL) + { + free_fail_stack_return (fs); + return REG_ESPACE; + } + prev_idx_match_malloced = true; + } + memcpy (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); + + for (idx = pmatch[0].rm_so; idx <= pmatch[0].rm_eo ;) + { + update_regs (dfa, pmatch, prev_idx_match, cur_node, idx, nmatch); + + if (idx == pmatch[0].rm_eo && cur_node == mctx->last_node) + { + Idx reg_idx; + if (fs) + { + for (reg_idx = 0; reg_idx < nmatch; ++reg_idx) + if (pmatch[reg_idx].rm_so > -1 && pmatch[reg_idx].rm_eo == -1) + break; + if (reg_idx == nmatch) + { + re_node_set_free (&eps_via_nodes); + if (prev_idx_match_malloced) + re_free (prev_idx_match); + return free_fail_stack_return (fs); + } + cur_node = pop_fail_stack (fs, &idx, nmatch, pmatch, + &eps_via_nodes); + } + else + { + re_node_set_free (&eps_via_nodes); + if (prev_idx_match_malloced) + re_free (prev_idx_match); + return REG_NOERROR; + } + } + + /* Proceed to next node. */ + cur_node = proceed_next_node (mctx, nmatch, pmatch, &idx, cur_node, + &eps_via_nodes, fs); + + if (BE (! REG_VALID_INDEX (cur_node), 0)) + { + if (BE (cur_node == REG_ERROR, 0)) + { + re_node_set_free (&eps_via_nodes); + if (prev_idx_match_malloced) + re_free (prev_idx_match); + free_fail_stack_return (fs); + return REG_ESPACE; + } + if (fs) + cur_node = pop_fail_stack (fs, &idx, nmatch, pmatch, + &eps_via_nodes); + else + { + re_node_set_free (&eps_via_nodes); + if (prev_idx_match_malloced) + re_free (prev_idx_match); + return REG_NOMATCH; + } + } + } + re_node_set_free (&eps_via_nodes); + if (prev_idx_match_malloced) + re_free (prev_idx_match); + return free_fail_stack_return (fs); +} + +static reg_errcode_t +internal_function +free_fail_stack_return (struct re_fail_stack_t *fs) +{ + if (fs) + { + Idx fs_idx; + for (fs_idx = 0; fs_idx < fs->num; ++fs_idx) + { + re_node_set_free (&fs->stack[fs_idx].eps_via_nodes); + re_free (fs->stack[fs_idx].regs); + } + re_free (fs->stack); + } + return REG_NOERROR; +} + +static void +internal_function +update_regs (const re_dfa_t *dfa, regmatch_t *pmatch, + regmatch_t *prev_idx_match, Idx cur_node, Idx cur_idx, Idx nmatch) +{ + int type = dfa->nodes[cur_node].type; + if (type == OP_OPEN_SUBEXP) + { + Idx reg_num = dfa->nodes[cur_node].opr.idx + 1; + + /* We are at the first node of this sub expression. */ + if (reg_num < nmatch) + { + pmatch[reg_num].rm_so = cur_idx; + pmatch[reg_num].rm_eo = -1; + } + } + else if (type == OP_CLOSE_SUBEXP) + { + Idx reg_num = dfa->nodes[cur_node].opr.idx + 1; + if (reg_num < nmatch) + { + /* We are at the last node of this sub expression. */ + if (pmatch[reg_num].rm_so < cur_idx) + { + pmatch[reg_num].rm_eo = cur_idx; + /* This is a non-empty match or we are not inside an optional + subexpression. Accept this right away. */ + memcpy (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); + } + else + { + if (dfa->nodes[cur_node].opt_subexp + && prev_idx_match[reg_num].rm_so != -1) + /* We transited through an empty match for an optional + subexpression, like (a?)*, and this is not the subexp's + first match. Copy back the old content of the registers + so that matches of an inner subexpression are undone as + well, like in ((a?))*. */ + memcpy (pmatch, prev_idx_match, sizeof (regmatch_t) * nmatch); + else + /* We completed a subexpression, but it may be part of + an optional one, so do not update PREV_IDX_MATCH. */ + pmatch[reg_num].rm_eo = cur_idx; + } + } + } +} + +/* This function checks the STATE_LOG from the SCTX->last_str_idx to 0 + and sift the nodes in each states according to the following rules. + Updated state_log will be wrote to STATE_LOG. + + Rules: We throw away the Node `a' in the STATE_LOG[STR_IDX] if... + 1. When STR_IDX == MATCH_LAST(the last index in the state_log): + If `a' isn't the LAST_NODE and `a' can't epsilon transit to + the LAST_NODE, we throw away the node `a'. + 2. When 0 <= STR_IDX < MATCH_LAST and `a' accepts + string `s' and transit to `b': + i. If 'b' isn't in the STATE_LOG[STR_IDX+strlen('s')], we throw + away the node `a'. + ii. If 'b' is in the STATE_LOG[STR_IDX+strlen('s')] but 'b' is + thrown away, we throw away the node `a'. + 3. When 0 <= STR_IDX < MATCH_LAST and 'a' epsilon transit to 'b': + i. If 'b' isn't in the STATE_LOG[STR_IDX], we throw away the + node `a'. + ii. If 'b' is in the STATE_LOG[STR_IDX] but 'b' is thrown away, + we throw away the node `a'. */ + +#define STATE_NODE_CONTAINS(state,node) \ + ((state) != NULL && re_node_set_contains (&(state)->nodes, node)) + +static reg_errcode_t +internal_function +sift_states_backward (const re_match_context_t *mctx, re_sift_context_t *sctx) +{ + reg_errcode_t err; + int null_cnt = 0; + Idx str_idx = sctx->last_str_idx; + re_node_set cur_dest; + +#ifdef DEBUG + assert (mctx->state_log != NULL && mctx->state_log[str_idx] != NULL); +#endif + + /* Build sifted state_log[str_idx]. It has the nodes which can epsilon + transit to the last_node and the last_node itself. */ + err = re_node_set_init_1 (&cur_dest, sctx->last_node); + if (BE (err != REG_NOERROR, 0)) + return err; + err = update_cur_sifted_state (mctx, sctx, str_idx, &cur_dest); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + + /* Then check each states in the state_log. */ + while (str_idx > 0) + { + /* Update counters. */ + null_cnt = (sctx->sifted_states[str_idx] == NULL) ? null_cnt + 1 : 0; + if (null_cnt > mctx->max_mb_elem_len) + { + memset (sctx->sifted_states, '\0', + sizeof (re_dfastate_t *) * str_idx); + re_node_set_free (&cur_dest); + return REG_NOERROR; + } + re_node_set_empty (&cur_dest); + --str_idx; + + if (mctx->state_log[str_idx]) + { + err = build_sifted_states (mctx, sctx, str_idx, &cur_dest); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + + /* Add all the nodes which satisfy the following conditions: + - It can epsilon transit to a node in CUR_DEST. + - It is in CUR_SRC. + And update state_log. */ + err = update_cur_sifted_state (mctx, sctx, str_idx, &cur_dest); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + err = REG_NOERROR; + free_return: + re_node_set_free (&cur_dest); + return err; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +build_sifted_states (const re_match_context_t *mctx, re_sift_context_t *sctx, + Idx str_idx, re_node_set *cur_dest) +{ + const re_dfa_t *const dfa = mctx->dfa; + const re_node_set *cur_src = &mctx->state_log[str_idx]->non_eps_nodes; + Idx i; + + /* Then build the next sifted state. + We build the next sifted state on `cur_dest', and update + `sifted_states[str_idx]' with `cur_dest'. + Note: + `cur_dest' is the sifted state from `state_log[str_idx + 1]'. + `cur_src' points the node_set of the old `state_log[str_idx]' + (with the epsilon nodes pre-filtered out). */ + for (i = 0; i < cur_src->nelem; i++) + { + Idx prev_node = cur_src->elems[i]; + int naccepted = 0; + bool ok; + +#ifdef DEBUG + re_token_type_t type = dfa->nodes[prev_node].type; + assert (!IS_EPSILON_NODE (type)); +#endif +#ifdef RE_ENABLE_I18N + /* If the node may accept `multi byte'. */ + if (dfa->nodes[prev_node].accept_mb) + naccepted = sift_states_iter_mb (mctx, sctx, prev_node, + str_idx, sctx->last_str_idx); +#endif /* RE_ENABLE_I18N */ + + /* We don't check backreferences here. + See update_cur_sifted_state(). */ + if (!naccepted + && check_node_accept (mctx, dfa->nodes + prev_node, str_idx) + && STATE_NODE_CONTAINS (sctx->sifted_states[str_idx + 1], + dfa->nexts[prev_node])) + naccepted = 1; + + if (naccepted == 0) + continue; + + if (sctx->limits.nelem) + { + Idx to_idx = str_idx + naccepted; + if (check_dst_limits (mctx, &sctx->limits, + dfa->nexts[prev_node], to_idx, + prev_node, str_idx)) + continue; + } + ok = re_node_set_insert (cur_dest, prev_node); + if (BE (! ok, 0)) + return REG_ESPACE; + } + + return REG_NOERROR; +} + +/* Helper functions. */ + +static reg_errcode_t +internal_function +clean_state_log_if_needed (re_match_context_t *mctx, Idx next_state_log_idx) +{ + Idx top = mctx->state_log_top; + + if (next_state_log_idx >= mctx->input.bufs_len + || (next_state_log_idx >= mctx->input.valid_len + && mctx->input.valid_len < mctx->input.len)) + { + reg_errcode_t err; + err = extend_buffers (mctx); + if (BE (err != REG_NOERROR, 0)) + return err; + } + + if (top < next_state_log_idx) + { + memset (mctx->state_log + top + 1, '\0', + sizeof (re_dfastate_t *) * (next_state_log_idx - top)); + mctx->state_log_top = next_state_log_idx; + } + return REG_NOERROR; +} + +static reg_errcode_t +internal_function +merge_state_array (const re_dfa_t *dfa, re_dfastate_t **dst, + re_dfastate_t **src, Idx num) +{ + Idx st_idx; + reg_errcode_t err; + for (st_idx = 0; st_idx < num; ++st_idx) + { + if (dst[st_idx] == NULL) + dst[st_idx] = src[st_idx]; + else if (src[st_idx] != NULL) + { + re_node_set merged_set; + err = re_node_set_init_union (&merged_set, &dst[st_idx]->nodes, + &src[st_idx]->nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + dst[st_idx] = re_acquire_state (&err, dfa, &merged_set); + re_node_set_free (&merged_set); + if (BE (err != REG_NOERROR, 0)) + return err; + } + } + return REG_NOERROR; +} + +static reg_errcode_t +internal_function +update_cur_sifted_state (const re_match_context_t *mctx, + re_sift_context_t *sctx, Idx str_idx, + re_node_set *dest_nodes) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err = REG_NOERROR; + const re_node_set *candidates; + candidates = ((mctx->state_log[str_idx] == NULL) ? NULL + : &mctx->state_log[str_idx]->nodes); + + if (dest_nodes->nelem == 0) + sctx->sifted_states[str_idx] = NULL; + else + { + if (candidates) + { + /* At first, add the nodes which can epsilon transit to a node in + DEST_NODE. */ + err = add_epsilon_src_nodes (dfa, dest_nodes, candidates); + if (BE (err != REG_NOERROR, 0)) + return err; + + /* Then, check the limitations in the current sift_context. */ + if (sctx->limits.nelem) + { + err = check_subexp_limits (dfa, dest_nodes, candidates, &sctx->limits, + mctx->bkref_ents, str_idx); + if (BE (err != REG_NOERROR, 0)) + return err; + } + } + + sctx->sifted_states[str_idx] = re_acquire_state (&err, dfa, dest_nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + } + + if (candidates && mctx->state_log[str_idx]->has_backref) + { + err = sift_states_bkref (mctx, sctx, str_idx, candidates); + if (BE (err != REG_NOERROR, 0)) + return err; + } + return REG_NOERROR; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +add_epsilon_src_nodes (const re_dfa_t *dfa, re_node_set *dest_nodes, + const re_node_set *candidates) +{ + reg_errcode_t err = REG_NOERROR; + Idx i; + + re_dfastate_t *state = re_acquire_state (&err, dfa, dest_nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + + if (!state->inveclosure.alloc) + { + err = re_node_set_alloc (&state->inveclosure, dest_nodes->nelem); + if (BE (err != REG_NOERROR, 0)) + return REG_ESPACE; + for (i = 0; i < dest_nodes->nelem; i++) + { + err = re_node_set_merge (&state->inveclosure, + dfa->inveclosures + dest_nodes->elems[i]); + if (BE (err != REG_NOERROR, 0)) + return REG_ESPACE; + } + } + return re_node_set_add_intersect (dest_nodes, candidates, + &state->inveclosure); +} + +static reg_errcode_t +internal_function +sub_epsilon_src_nodes (const re_dfa_t *dfa, Idx node, re_node_set *dest_nodes, + const re_node_set *candidates) +{ + Idx ecl_idx; + reg_errcode_t err; + re_node_set *inv_eclosure = dfa->inveclosures + node; + re_node_set except_nodes; + re_node_set_init_empty (&except_nodes); + for (ecl_idx = 0; ecl_idx < inv_eclosure->nelem; ++ecl_idx) + { + Idx cur_node = inv_eclosure->elems[ecl_idx]; + if (cur_node == node) + continue; + if (IS_EPSILON_NODE (dfa->nodes[cur_node].type)) + { + Idx edst1 = dfa->edests[cur_node].elems[0]; + Idx edst2 = ((dfa->edests[cur_node].nelem > 1) + ? dfa->edests[cur_node].elems[1] : REG_MISSING); + if ((!re_node_set_contains (inv_eclosure, edst1) + && re_node_set_contains (dest_nodes, edst1)) + || (REG_VALID_NONZERO_INDEX (edst2) + && !re_node_set_contains (inv_eclosure, edst2) + && re_node_set_contains (dest_nodes, edst2))) + { + err = re_node_set_add_intersect (&except_nodes, candidates, + dfa->inveclosures + cur_node); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&except_nodes); + return err; + } + } + } + } + for (ecl_idx = 0; ecl_idx < inv_eclosure->nelem; ++ecl_idx) + { + Idx cur_node = inv_eclosure->elems[ecl_idx]; + if (!re_node_set_contains (&except_nodes, cur_node)) + { + Idx idx = re_node_set_contains (dest_nodes, cur_node) - 1; + re_node_set_remove_at (dest_nodes, idx); + } + } + re_node_set_free (&except_nodes); + return REG_NOERROR; +} + +static bool +internal_function +check_dst_limits (const re_match_context_t *mctx, const re_node_set *limits, + Idx dst_node, Idx dst_idx, Idx src_node, Idx src_idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx lim_idx, src_pos, dst_pos; + + Idx dst_bkref_idx = search_cur_bkref_entry (mctx, dst_idx); + Idx src_bkref_idx = search_cur_bkref_entry (mctx, src_idx); + for (lim_idx = 0; lim_idx < limits->nelem; ++lim_idx) + { + Idx subexp_idx; + struct re_backref_cache_entry *ent; + ent = mctx->bkref_ents + limits->elems[lim_idx]; + subexp_idx = dfa->nodes[ent->node].opr.idx; + + dst_pos = check_dst_limits_calc_pos (mctx, limits->elems[lim_idx], + subexp_idx, dst_node, dst_idx, + dst_bkref_idx); + src_pos = check_dst_limits_calc_pos (mctx, limits->elems[lim_idx], + subexp_idx, src_node, src_idx, + src_bkref_idx); + + /* In case of: + ( ) + ( ) + ( ) */ + if (src_pos == dst_pos) + continue; /* This is unrelated limitation. */ + else + return true; + } + return false; +} + +static int +internal_function +check_dst_limits_calc_pos_1 (const re_match_context_t *mctx, int boundaries, + Idx subexp_idx, Idx from_node, Idx bkref_idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + const re_node_set *eclosures = dfa->eclosures + from_node; + Idx node_idx; + + /* Else, we are on the boundary: examine the nodes on the epsilon + closure. */ + for (node_idx = 0; node_idx < eclosures->nelem; ++node_idx) + { + Idx node = eclosures->elems[node_idx]; + switch (dfa->nodes[node].type) + { + case OP_BACK_REF: + if (bkref_idx != REG_MISSING) + { + struct re_backref_cache_entry *ent = mctx->bkref_ents + bkref_idx; + do + { + Idx dst; + int cpos; + + if (ent->node != node) + continue; + + if (subexp_idx < BITSET_WORD_BITS + && !(ent->eps_reachable_subexps_map + & ((bitset_word_t) 1 << subexp_idx))) + continue; + + /* Recurse trying to reach the OP_OPEN_SUBEXP and + OP_CLOSE_SUBEXP cases below. But, if the + destination node is the same node as the source + node, don't recurse because it would cause an + infinite loop: a regex that exhibits this behavior + is ()\1*\1* */ + dst = dfa->edests[node].elems[0]; + if (dst == from_node) + { + if (boundaries & 1) + return -1; + else /* if (boundaries & 2) */ + return 0; + } + + cpos = + check_dst_limits_calc_pos_1 (mctx, boundaries, subexp_idx, + dst, bkref_idx); + if (cpos == -1 /* && (boundaries & 1) */) + return -1; + if (cpos == 0 && (boundaries & 2)) + return 0; + + if (subexp_idx < BITSET_WORD_BITS) + ent->eps_reachable_subexps_map + &= ~((bitset_word_t) 1 << subexp_idx); + } + while (ent++->more); + } + break; + + case OP_OPEN_SUBEXP: + if ((boundaries & 1) && subexp_idx == dfa->nodes[node].opr.idx) + return -1; + break; + + case OP_CLOSE_SUBEXP: + if ((boundaries & 2) && subexp_idx == dfa->nodes[node].opr.idx) + return 0; + break; + + default: + break; + } + } + + return (boundaries & 2) ? 1 : 0; +} + +static int +internal_function +check_dst_limits_calc_pos (const re_match_context_t *mctx, Idx limit, + Idx subexp_idx, Idx from_node, Idx str_idx, + Idx bkref_idx) +{ + struct re_backref_cache_entry *lim = mctx->bkref_ents + limit; + int boundaries; + + /* If we are outside the range of the subexpression, return -1 or 1. */ + if (str_idx < lim->subexp_from) + return -1; + + if (lim->subexp_to < str_idx) + return 1; + + /* If we are within the subexpression, return 0. */ + boundaries = (str_idx == lim->subexp_from); + boundaries |= (str_idx == lim->subexp_to) << 1; + if (boundaries == 0) + return 0; + + /* Else, examine epsilon closure. */ + return check_dst_limits_calc_pos_1 (mctx, boundaries, subexp_idx, + from_node, bkref_idx); +} + +/* Check the limitations of sub expressions LIMITS, and remove the nodes + which are against limitations from DEST_NODES. */ + +static reg_errcode_t +internal_function +check_subexp_limits (const re_dfa_t *dfa, re_node_set *dest_nodes, + const re_node_set *candidates, re_node_set *limits, + struct re_backref_cache_entry *bkref_ents, Idx str_idx) +{ + reg_errcode_t err; + Idx node_idx, lim_idx; + + for (lim_idx = 0; lim_idx < limits->nelem; ++lim_idx) + { + Idx subexp_idx; + struct re_backref_cache_entry *ent; + ent = bkref_ents + limits->elems[lim_idx]; + + if (str_idx <= ent->subexp_from || ent->str_idx < str_idx) + continue; /* This is unrelated limitation. */ + + subexp_idx = dfa->nodes[ent->node].opr.idx; + if (ent->subexp_to == str_idx) + { + Idx ops_node = REG_MISSING; + Idx cls_node = REG_MISSING; + for (node_idx = 0; node_idx < dest_nodes->nelem; ++node_idx) + { + Idx node = dest_nodes->elems[node_idx]; + re_token_type_t type = dfa->nodes[node].type; + if (type == OP_OPEN_SUBEXP + && subexp_idx == dfa->nodes[node].opr.idx) + ops_node = node; + else if (type == OP_CLOSE_SUBEXP + && subexp_idx == dfa->nodes[node].opr.idx) + cls_node = node; + } + + /* Check the limitation of the open subexpression. */ + /* Note that (ent->subexp_to = str_idx != ent->subexp_from). */ + if (REG_VALID_INDEX (ops_node)) + { + err = sub_epsilon_src_nodes (dfa, ops_node, dest_nodes, + candidates); + if (BE (err != REG_NOERROR, 0)) + return err; + } + + /* Check the limitation of the close subexpression. */ + if (REG_VALID_INDEX (cls_node)) + for (node_idx = 0; node_idx < dest_nodes->nelem; ++node_idx) + { + Idx node = dest_nodes->elems[node_idx]; + if (!re_node_set_contains (dfa->inveclosures + node, + cls_node) + && !re_node_set_contains (dfa->eclosures + node, + cls_node)) + { + /* It is against this limitation. + Remove it form the current sifted state. */ + err = sub_epsilon_src_nodes (dfa, node, dest_nodes, + candidates); + if (BE (err != REG_NOERROR, 0)) + return err; + --node_idx; + } + } + } + else /* (ent->subexp_to != str_idx) */ + { + for (node_idx = 0; node_idx < dest_nodes->nelem; ++node_idx) + { + Idx node = dest_nodes->elems[node_idx]; + re_token_type_t type = dfa->nodes[node].type; + if (type == OP_CLOSE_SUBEXP || type == OP_OPEN_SUBEXP) + { + if (subexp_idx != dfa->nodes[node].opr.idx) + continue; + /* It is against this limitation. + Remove it form the current sifted state. */ + err = sub_epsilon_src_nodes (dfa, node, dest_nodes, + candidates); + if (BE (err != REG_NOERROR, 0)) + return err; + } + } + } + } + return REG_NOERROR; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +sift_states_bkref (const re_match_context_t *mctx, re_sift_context_t *sctx, + Idx str_idx, const re_node_set *candidates) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err; + Idx node_idx, node; + re_sift_context_t local_sctx; + Idx first_idx = search_cur_bkref_entry (mctx, str_idx); + + if (first_idx == REG_MISSING) + return REG_NOERROR; + + local_sctx.sifted_states = NULL; /* Mark that it hasn't been initialized. */ + + for (node_idx = 0; node_idx < candidates->nelem; ++node_idx) + { + Idx enabled_idx; + re_token_type_t type; + struct re_backref_cache_entry *entry; + node = candidates->elems[node_idx]; + type = dfa->nodes[node].type; + /* Avoid infinite loop for the REs like "()\1+". */ + if (node == sctx->last_node && str_idx == sctx->last_str_idx) + continue; + if (type != OP_BACK_REF) + continue; + + entry = mctx->bkref_ents + first_idx; + enabled_idx = first_idx; + do + { + Idx subexp_len; + Idx to_idx; + Idx dst_node; + bool ok; + re_dfastate_t *cur_state; + + if (entry->node != node) + continue; + subexp_len = entry->subexp_to - entry->subexp_from; + to_idx = str_idx + subexp_len; + dst_node = (subexp_len ? dfa->nexts[node] + : dfa->edests[node].elems[0]); + + if (to_idx > sctx->last_str_idx + || sctx->sifted_states[to_idx] == NULL + || !STATE_NODE_CONTAINS (sctx->sifted_states[to_idx], dst_node) + || check_dst_limits (mctx, &sctx->limits, node, + str_idx, dst_node, to_idx)) + continue; + + if (local_sctx.sifted_states == NULL) + { + local_sctx = *sctx; + err = re_node_set_init_copy (&local_sctx.limits, &sctx->limits); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + local_sctx.last_node = node; + local_sctx.last_str_idx = str_idx; + ok = re_node_set_insert (&local_sctx.limits, enabled_idx); + if (BE (! ok, 0)) + { + err = REG_ESPACE; + goto free_return; + } + cur_state = local_sctx.sifted_states[str_idx]; + err = sift_states_backward (mctx, &local_sctx); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + if (sctx->limited_states != NULL) + { + err = merge_state_array (dfa, sctx->limited_states, + local_sctx.sifted_states, + str_idx + 1); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + local_sctx.sifted_states[str_idx] = cur_state; + re_node_set_remove (&local_sctx.limits, enabled_idx); + + /* mctx->bkref_ents may have changed, reload the pointer. */ + entry = mctx->bkref_ents + enabled_idx; + } + while (enabled_idx++, entry++->more); + } + err = REG_NOERROR; + free_return: + if (local_sctx.sifted_states != NULL) + { + re_node_set_free (&local_sctx.limits); + } + + return err; +} + + +#ifdef RE_ENABLE_I18N +static int +internal_function +sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx, + Idx node_idx, Idx str_idx, Idx max_str_idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + int naccepted; + /* Check the node can accept `multi byte'. */ + naccepted = check_node_accept_bytes (dfa, node_idx, &mctx->input, str_idx); + if (naccepted > 0 && str_idx + naccepted <= max_str_idx && + !STATE_NODE_CONTAINS (sctx->sifted_states[str_idx + naccepted], + dfa->nexts[node_idx])) + /* The node can't accept the `multi byte', or the + destination was already thrown away, then the node + could't accept the current input `multi byte'. */ + naccepted = 0; + /* Otherwise, it is sure that the node could accept + `naccepted' bytes input. */ + return naccepted; +} +#endif /* RE_ENABLE_I18N */ + + +/* Functions for state transition. */ + +/* Return the next state to which the current state STATE will transit by + accepting the current input byte, and update STATE_LOG if necessary. + If STATE can accept a multibyte char/collating element/back reference + update the destination of STATE_LOG. */ + +static re_dfastate_t * +internal_function __attribute_warn_unused_result__ +transit_state (reg_errcode_t *err, re_match_context_t *mctx, + re_dfastate_t *state) +{ + re_dfastate_t **trtable; + unsigned char ch; + +#ifdef RE_ENABLE_I18N + /* If the current state can accept multibyte. */ + if (BE (state->accept_mb, 0)) + { + *err = transit_state_mb (mctx, state); + if (BE (*err != REG_NOERROR, 0)) + return NULL; + } +#endif /* RE_ENABLE_I18N */ + + /* Then decide the next state with the single byte. */ +#if 0 + if (0) + /* don't use transition table */ + return transit_state_sb (err, mctx, state); +#endif + + /* Use transition table */ + ch = re_string_fetch_byte (&mctx->input); + for (;;) + { + trtable = state->trtable; + if (BE (trtable != NULL, 1)) + return trtable[ch]; + + trtable = state->word_trtable; + if (BE (trtable != NULL, 1)) + { + unsigned int context; + context + = re_string_context_at (&mctx->input, + re_string_cur_idx (&mctx->input) - 1, + mctx->eflags); + if (IS_WORD_CONTEXT (context)) + return trtable[ch + SBC_MAX]; + else + return trtable[ch]; + } + + if (!build_trtable (mctx->dfa, state)) + { + *err = REG_ESPACE; + return NULL; + } + + /* Retry, we now have a transition table. */ + } +} + +/* Update the state_log if we need */ +static re_dfastate_t * +internal_function +merge_state_with_log (reg_errcode_t *err, re_match_context_t *mctx, + re_dfastate_t *next_state) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx cur_idx = re_string_cur_idx (&mctx->input); + + if (cur_idx > mctx->state_log_top) + { + mctx->state_log[cur_idx] = next_state; + mctx->state_log_top = cur_idx; + } + else if (mctx->state_log[cur_idx] == 0) + { + mctx->state_log[cur_idx] = next_state; + } + else + { + re_dfastate_t *pstate; + unsigned int context; + re_node_set next_nodes, *log_nodes, *table_nodes = NULL; + /* If (state_log[cur_idx] != 0), it implies that cur_idx is + the destination of a multibyte char/collating element/ + back reference. Then the next state is the union set of + these destinations and the results of the transition table. */ + pstate = mctx->state_log[cur_idx]; + log_nodes = pstate->entrance_nodes; + if (next_state != NULL) + { + table_nodes = next_state->entrance_nodes; + *err = re_node_set_init_union (&next_nodes, table_nodes, + log_nodes); + if (BE (*err != REG_NOERROR, 0)) + return NULL; + } + else + next_nodes = *log_nodes; + /* Note: We already add the nodes of the initial state, + then we don't need to add them here. */ + + context = re_string_context_at (&mctx->input, + re_string_cur_idx (&mctx->input) - 1, + mctx->eflags); + next_state = mctx->state_log[cur_idx] + = re_acquire_state_context (err, dfa, &next_nodes, context); + /* We don't need to check errors here, since the return value of + this function is next_state and ERR is already set. */ + + if (table_nodes != NULL) + re_node_set_free (&next_nodes); + } + + if (BE (dfa->nbackref, 0) && next_state != NULL) + { + /* Check OP_OPEN_SUBEXP in the current state in case that we use them + later. We must check them here, since the back references in the + next state might use them. */ + *err = check_subexp_matching_top (mctx, &next_state->nodes, + cur_idx); + if (BE (*err != REG_NOERROR, 0)) + return NULL; + + /* If the next state has back references. */ + if (next_state->has_backref) + { + *err = transit_state_bkref (mctx, &next_state->nodes); + if (BE (*err != REG_NOERROR, 0)) + return NULL; + next_state = mctx->state_log[cur_idx]; + } + } + + return next_state; +} + +/* Skip bytes in the input that correspond to part of a + multi-byte match, then look in the log for a state + from which to restart matching. */ +static re_dfastate_t * +internal_function +find_recover_state (reg_errcode_t *err, re_match_context_t *mctx) +{ + re_dfastate_t *cur_state; + do + { + Idx max = mctx->state_log_top; + Idx cur_str_idx = re_string_cur_idx (&mctx->input); + + do + { + if (++cur_str_idx > max) + return NULL; + re_string_skip_bytes (&mctx->input, 1); + } + while (mctx->state_log[cur_str_idx] == NULL); + + cur_state = merge_state_with_log (err, mctx, NULL); + } + while (*err == REG_NOERROR && cur_state == NULL); + return cur_state; +} + +/* Helper functions for transit_state. */ + +/* From the node set CUR_NODES, pick up the nodes whose types are + OP_OPEN_SUBEXP and which have corresponding back references in the regular + expression. And register them to use them later for evaluating the + correspoding back references. */ + +static reg_errcode_t +internal_function +check_subexp_matching_top (re_match_context_t *mctx, re_node_set *cur_nodes, + Idx str_idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx node_idx; + reg_errcode_t err; + + /* TODO: This isn't efficient. + Because there might be more than one nodes whose types are + OP_OPEN_SUBEXP and whose index is SUBEXP_IDX, we must check all + nodes. + E.g. RE: (a){2} */ + for (node_idx = 0; node_idx < cur_nodes->nelem; ++node_idx) + { + Idx node = cur_nodes->elems[node_idx]; + if (dfa->nodes[node].type == OP_OPEN_SUBEXP + && dfa->nodes[node].opr.idx < BITSET_WORD_BITS + && (dfa->used_bkref_map + & ((bitset_word_t) 1 << dfa->nodes[node].opr.idx))) + { + err = match_ctx_add_subtop (mctx, node, str_idx); + if (BE (err != REG_NOERROR, 0)) + return err; + } + } + return REG_NOERROR; +} + +#if 0 +/* Return the next state to which the current state STATE will transit by + accepting the current input byte. */ + +static re_dfastate_t * +transit_state_sb (reg_errcode_t *err, re_match_context_t *mctx, + re_dfastate_t *state) +{ + const re_dfa_t *const dfa = mctx->dfa; + re_node_set next_nodes; + re_dfastate_t *next_state; + Idx node_cnt, cur_str_idx = re_string_cur_idx (&mctx->input); + unsigned int context; + + *err = re_node_set_alloc (&next_nodes, state->nodes.nelem + 1); + if (BE (*err != REG_NOERROR, 0)) + return NULL; + for (node_cnt = 0; node_cnt < state->nodes.nelem; ++node_cnt) + { + Idx cur_node = state->nodes.elems[node_cnt]; + if (check_node_accept (mctx, dfa->nodes + cur_node, cur_str_idx)) + { + *err = re_node_set_merge (&next_nodes, + dfa->eclosures + dfa->nexts[cur_node]); + if (BE (*err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return NULL; + } + } + } + context = re_string_context_at (&mctx->input, cur_str_idx, mctx->eflags); + next_state = re_acquire_state_context (err, dfa, &next_nodes, context); + /* We don't need to check errors here, since the return value of + this function is next_state and ERR is already set. */ + + re_node_set_free (&next_nodes); + re_string_skip_bytes (&mctx->input, 1); + return next_state; +} +#endif + +#ifdef RE_ENABLE_I18N +static reg_errcode_t +internal_function +transit_state_mb (re_match_context_t *mctx, re_dfastate_t *pstate) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err; + Idx i; + + for (i = 0; i < pstate->nodes.nelem; ++i) + { + re_node_set dest_nodes, *new_nodes; + Idx cur_node_idx = pstate->nodes.elems[i]; + int naccepted; + Idx dest_idx; + unsigned int context; + re_dfastate_t *dest_state; + + if (!dfa->nodes[cur_node_idx].accept_mb) + continue; + + if (dfa->nodes[cur_node_idx].constraint) + { + context = re_string_context_at (&mctx->input, + re_string_cur_idx (&mctx->input), + mctx->eflags); + if (NOT_SATISFY_NEXT_CONSTRAINT (dfa->nodes[cur_node_idx].constraint, + context)) + continue; + } + + /* How many bytes the node can accept? */ + naccepted = check_node_accept_bytes (dfa, cur_node_idx, &mctx->input, + re_string_cur_idx (&mctx->input)); + if (naccepted == 0) + continue; + + /* The node can accepts `naccepted' bytes. */ + dest_idx = re_string_cur_idx (&mctx->input) + naccepted; + mctx->max_mb_elem_len = ((mctx->max_mb_elem_len < naccepted) ? naccepted + : mctx->max_mb_elem_len); + err = clean_state_log_if_needed (mctx, dest_idx); + if (BE (err != REG_NOERROR, 0)) + return err; +#ifdef DEBUG + assert (dfa->nexts[cur_node_idx] != REG_MISSING); +#endif + new_nodes = dfa->eclosures + dfa->nexts[cur_node_idx]; + + dest_state = mctx->state_log[dest_idx]; + if (dest_state == NULL) + dest_nodes = *new_nodes; + else + { + err = re_node_set_init_union (&dest_nodes, + dest_state->entrance_nodes, new_nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + } + context = re_string_context_at (&mctx->input, dest_idx - 1, + mctx->eflags); + mctx->state_log[dest_idx] + = re_acquire_state_context (&err, dfa, &dest_nodes, context); + if (dest_state != NULL) + re_node_set_free (&dest_nodes); + if (BE (mctx->state_log[dest_idx] == NULL && err != REG_NOERROR, 0)) + return err; + } + return REG_NOERROR; +} +#endif /* RE_ENABLE_I18N */ + +static reg_errcode_t +internal_function +transit_state_bkref (re_match_context_t *mctx, const re_node_set *nodes) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err; + Idx i; + Idx cur_str_idx = re_string_cur_idx (&mctx->input); + + for (i = 0; i < nodes->nelem; ++i) + { + Idx dest_str_idx, prev_nelem, bkc_idx; + Idx node_idx = nodes->elems[i]; + unsigned int context; + const re_token_t *node = dfa->nodes + node_idx; + re_node_set *new_dest_nodes; + + /* Check whether `node' is a backreference or not. */ + if (node->type != OP_BACK_REF) + continue; + + if (node->constraint) + { + context = re_string_context_at (&mctx->input, cur_str_idx, + mctx->eflags); + if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context)) + continue; + } + + /* `node' is a backreference. + Check the substring which the substring matched. */ + bkc_idx = mctx->nbkref_ents; + err = get_subexp (mctx, node_idx, cur_str_idx); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + + /* And add the epsilon closures (which is `new_dest_nodes') of + the backreference to appropriate state_log. */ +#ifdef DEBUG + assert (dfa->nexts[node_idx] != REG_MISSING); +#endif + for (; bkc_idx < mctx->nbkref_ents; ++bkc_idx) + { + Idx subexp_len; + re_dfastate_t *dest_state; + struct re_backref_cache_entry *bkref_ent; + bkref_ent = mctx->bkref_ents + bkc_idx; + if (bkref_ent->node != node_idx || bkref_ent->str_idx != cur_str_idx) + continue; + subexp_len = bkref_ent->subexp_to - bkref_ent->subexp_from; + new_dest_nodes = (subexp_len == 0 + ? dfa->eclosures + dfa->edests[node_idx].elems[0] + : dfa->eclosures + dfa->nexts[node_idx]); + dest_str_idx = (cur_str_idx + bkref_ent->subexp_to + - bkref_ent->subexp_from); + context = re_string_context_at (&mctx->input, dest_str_idx - 1, + mctx->eflags); + dest_state = mctx->state_log[dest_str_idx]; + prev_nelem = ((mctx->state_log[cur_str_idx] == NULL) ? 0 + : mctx->state_log[cur_str_idx]->nodes.nelem); + /* Add `new_dest_node' to state_log. */ + if (dest_state == NULL) + { + mctx->state_log[dest_str_idx] + = re_acquire_state_context (&err, dfa, new_dest_nodes, + context); + if (BE (mctx->state_log[dest_str_idx] == NULL + && err != REG_NOERROR, 0)) + goto free_return; + } + else + { + re_node_set dest_nodes; + err = re_node_set_init_union (&dest_nodes, + dest_state->entrance_nodes, + new_dest_nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&dest_nodes); + goto free_return; + } + mctx->state_log[dest_str_idx] + = re_acquire_state_context (&err, dfa, &dest_nodes, context); + re_node_set_free (&dest_nodes); + if (BE (mctx->state_log[dest_str_idx] == NULL + && err != REG_NOERROR, 0)) + goto free_return; + } + /* We need to check recursively if the backreference can epsilon + transit. */ + if (subexp_len == 0 + && mctx->state_log[cur_str_idx]->nodes.nelem > prev_nelem) + { + err = check_subexp_matching_top (mctx, new_dest_nodes, + cur_str_idx); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + err = transit_state_bkref (mctx, new_dest_nodes); + if (BE (err != REG_NOERROR, 0)) + goto free_return; + } + } + } + err = REG_NOERROR; + free_return: + return err; +} + +/* Enumerate all the candidates which the backreference BKREF_NODE can match + at BKREF_STR_IDX, and register them by match_ctx_add_entry(). + Note that we might collect inappropriate candidates here. + However, the cost of checking them strictly here is too high, then we + delay these checking for prune_impossible_nodes(). */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +get_subexp (re_match_context_t *mctx, Idx bkref_node, Idx bkref_str_idx) +{ + const re_dfa_t *const dfa = mctx->dfa; + Idx subexp_num, sub_top_idx; + const char *buf = (const char *) re_string_get_buffer (&mctx->input); + /* Return if we have already checked BKREF_NODE at BKREF_STR_IDX. */ + Idx cache_idx = search_cur_bkref_entry (mctx, bkref_str_idx); + if (cache_idx != REG_MISSING) + { + const struct re_backref_cache_entry *entry + = mctx->bkref_ents + cache_idx; + do + if (entry->node == bkref_node) + return REG_NOERROR; /* We already checked it. */ + while (entry++->more); + } + + subexp_num = dfa->nodes[bkref_node].opr.idx; + + /* For each sub expression */ + for (sub_top_idx = 0; sub_top_idx < mctx->nsub_tops; ++sub_top_idx) + { + reg_errcode_t err; + re_sub_match_top_t *sub_top = mctx->sub_tops[sub_top_idx]; + re_sub_match_last_t *sub_last; + Idx sub_last_idx, sl_str, bkref_str_off; + + if (dfa->nodes[sub_top->node].opr.idx != subexp_num) + continue; /* It isn't related. */ + + sl_str = sub_top->str_idx; + bkref_str_off = bkref_str_idx; + /* At first, check the last node of sub expressions we already + evaluated. */ + for (sub_last_idx = 0; sub_last_idx < sub_top->nlasts; ++sub_last_idx) + { + regoff_t sl_str_diff; + sub_last = sub_top->lasts[sub_last_idx]; + sl_str_diff = sub_last->str_idx - sl_str; + /* The matched string by the sub expression match with the substring + at the back reference? */ + if (sl_str_diff > 0) + { + if (BE (bkref_str_off + sl_str_diff > mctx->input.valid_len, 0)) + { + /* Not enough chars for a successful match. */ + if (bkref_str_off + sl_str_diff > mctx->input.len) + break; + + err = clean_state_log_if_needed (mctx, + bkref_str_off + + sl_str_diff); + if (BE (err != REG_NOERROR, 0)) + return err; + buf = (const char *) re_string_get_buffer (&mctx->input); + } + if (memcmp (buf + bkref_str_off, buf + sl_str, sl_str_diff) != 0) + /* We don't need to search this sub expression any more. */ + break; + } + bkref_str_off += sl_str_diff; + sl_str += sl_str_diff; + err = get_subexp_sub (mctx, sub_top, sub_last, bkref_node, + bkref_str_idx); + + /* Reload buf, since the preceding call might have reallocated + the buffer. */ + buf = (const char *) re_string_get_buffer (&mctx->input); + + if (err == REG_NOMATCH) + continue; + if (BE (err != REG_NOERROR, 0)) + return err; + } + + if (sub_last_idx < sub_top->nlasts) + continue; + if (sub_last_idx > 0) + ++sl_str; + /* Then, search for the other last nodes of the sub expression. */ + for (; sl_str <= bkref_str_idx; ++sl_str) + { + Idx cls_node; + regoff_t sl_str_off; + const re_node_set *nodes; + sl_str_off = sl_str - sub_top->str_idx; + /* The matched string by the sub expression match with the substring + at the back reference? */ + if (sl_str_off > 0) + { + if (BE (bkref_str_off >= mctx->input.valid_len, 0)) + { + /* If we are at the end of the input, we cannot match. */ + if (bkref_str_off >= mctx->input.len) + break; + + err = extend_buffers (mctx); + if (BE (err != REG_NOERROR, 0)) + return err; + + buf = (const char *) re_string_get_buffer (&mctx->input); + } + if (buf [bkref_str_off++] != buf[sl_str - 1]) + break; /* We don't need to search this sub expression + any more. */ + } + if (mctx->state_log[sl_str] == NULL) + continue; + /* Does this state have a ')' of the sub expression? */ + nodes = &mctx->state_log[sl_str]->nodes; + cls_node = find_subexp_node (dfa, nodes, subexp_num, + OP_CLOSE_SUBEXP); + if (cls_node == REG_MISSING) + continue; /* No. */ + if (sub_top->path == NULL) + { + sub_top->path = calloc (sizeof (state_array_t), + sl_str - sub_top->str_idx + 1); + if (sub_top->path == NULL) + return REG_ESPACE; + } + /* Can the OP_OPEN_SUBEXP node arrive the OP_CLOSE_SUBEXP node + in the current context? */ + err = check_arrival (mctx, sub_top->path, sub_top->node, + sub_top->str_idx, cls_node, sl_str, + OP_CLOSE_SUBEXP); + if (err == REG_NOMATCH) + continue; + if (BE (err != REG_NOERROR, 0)) + return err; + sub_last = match_ctx_add_sublast (sub_top, cls_node, sl_str); + if (BE (sub_last == NULL, 0)) + return REG_ESPACE; + err = get_subexp_sub (mctx, sub_top, sub_last, bkref_node, + bkref_str_idx); + if (err == REG_NOMATCH) + continue; + } + } + return REG_NOERROR; +} + +/* Helper functions for get_subexp(). */ + +/* Check SUB_LAST can arrive to the back reference BKREF_NODE at BKREF_STR. + If it can arrive, register the sub expression expressed with SUB_TOP + and SUB_LAST. */ + +static reg_errcode_t +internal_function +get_subexp_sub (re_match_context_t *mctx, const re_sub_match_top_t *sub_top, + re_sub_match_last_t *sub_last, Idx bkref_node, Idx bkref_str) +{ + reg_errcode_t err; + Idx to_idx; + /* Can the subexpression arrive the back reference? */ + err = check_arrival (mctx, &sub_last->path, sub_last->node, + sub_last->str_idx, bkref_node, bkref_str, + OP_OPEN_SUBEXP); + if (err != REG_NOERROR) + return err; + err = match_ctx_add_entry (mctx, bkref_node, bkref_str, sub_top->str_idx, + sub_last->str_idx); + if (BE (err != REG_NOERROR, 0)) + return err; + to_idx = bkref_str + sub_last->str_idx - sub_top->str_idx; + return clean_state_log_if_needed (mctx, to_idx); +} + +/* Find the first node which is '(' or ')' and whose index is SUBEXP_IDX. + Search '(' if FL_OPEN, or search ')' otherwise. + TODO: This function isn't efficient... + Because there might be more than one nodes whose types are + OP_OPEN_SUBEXP and whose index is SUBEXP_IDX, we must check all + nodes. + E.g. RE: (a){2} */ + +static Idx +internal_function +find_subexp_node (const re_dfa_t *dfa, const re_node_set *nodes, + Idx subexp_idx, int type) +{ + Idx cls_idx; + for (cls_idx = 0; cls_idx < nodes->nelem; ++cls_idx) + { + Idx cls_node = nodes->elems[cls_idx]; + const re_token_t *node = dfa->nodes + cls_node; + if (node->type == type + && node->opr.idx == subexp_idx) + return cls_node; + } + return REG_MISSING; +} + +/* Check whether the node TOP_NODE at TOP_STR can arrive to the node + LAST_NODE at LAST_STR. We record the path onto PATH since it will be + heavily reused. + Return REG_NOERROR if it can arrive, or REG_NOMATCH otherwise. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +check_arrival (re_match_context_t *mctx, state_array_t *path, Idx top_node, + Idx top_str, Idx last_node, Idx last_str, int type) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err = REG_NOERROR; + Idx subexp_num, backup_cur_idx, str_idx, null_cnt; + re_dfastate_t *cur_state = NULL; + re_node_set *cur_nodes, next_nodes; + re_dfastate_t **backup_state_log; + unsigned int context; + + subexp_num = dfa->nodes[top_node].opr.idx; + /* Extend the buffer if we need. */ + if (BE (path->alloc < last_str + mctx->max_mb_elem_len + 1, 0)) + { + re_dfastate_t **new_array; + Idx old_alloc = path->alloc; + Idx new_alloc = old_alloc + last_str + mctx->max_mb_elem_len + 1; + if (BE (new_alloc < old_alloc, 0) + || BE (SIZE_MAX / sizeof (re_dfastate_t *) < new_alloc, 0)) + return REG_ESPACE; + new_array = re_realloc (path->array, re_dfastate_t *, new_alloc); + if (BE (new_array == NULL, 0)) + return REG_ESPACE; + path->array = new_array; + path->alloc = new_alloc; + memset (new_array + old_alloc, '\0', + sizeof (re_dfastate_t *) * (path->alloc - old_alloc)); + } + + str_idx = path->next_idx ? path->next_idx : top_str; + + /* Temporary modify MCTX. */ + backup_state_log = mctx->state_log; + backup_cur_idx = mctx->input.cur_idx; + mctx->state_log = path->array; + mctx->input.cur_idx = str_idx; + + /* Setup initial node set. */ + context = re_string_context_at (&mctx->input, str_idx - 1, mctx->eflags); + if (str_idx == top_str) + { + err = re_node_set_init_1 (&next_nodes, top_node); + if (BE (err != REG_NOERROR, 0)) + return err; + err = check_arrival_expand_ecl (dfa, &next_nodes, subexp_num, type); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + } + else + { + cur_state = mctx->state_log[str_idx]; + if (cur_state && cur_state->has_backref) + { + err = re_node_set_init_copy (&next_nodes, &cur_state->nodes); + if (BE (err != REG_NOERROR, 0)) + return err; + } + else + re_node_set_init_empty (&next_nodes); + } + if (str_idx == top_str || (cur_state && cur_state->has_backref)) + { + if (next_nodes.nelem) + { + err = expand_bkref_cache (mctx, &next_nodes, str_idx, + subexp_num, type); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + } + cur_state = re_acquire_state_context (&err, dfa, &next_nodes, context); + if (BE (cur_state == NULL && err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + mctx->state_log[str_idx] = cur_state; + } + + for (null_cnt = 0; str_idx < last_str && null_cnt <= mctx->max_mb_elem_len;) + { + re_node_set_empty (&next_nodes); + if (mctx->state_log[str_idx + 1]) + { + err = re_node_set_merge (&next_nodes, + &mctx->state_log[str_idx + 1]->nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + } + if (cur_state) + { + err = check_arrival_add_next_nodes (mctx, str_idx, + &cur_state->non_eps_nodes, + &next_nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + } + ++str_idx; + if (next_nodes.nelem) + { + err = check_arrival_expand_ecl (dfa, &next_nodes, subexp_num, type); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + err = expand_bkref_cache (mctx, &next_nodes, str_idx, + subexp_num, type); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + } + context = re_string_context_at (&mctx->input, str_idx - 1, mctx->eflags); + cur_state = re_acquire_state_context (&err, dfa, &next_nodes, context); + if (BE (cur_state == NULL && err != REG_NOERROR, 0)) + { + re_node_set_free (&next_nodes); + return err; + } + mctx->state_log[str_idx] = cur_state; + null_cnt = cur_state == NULL ? null_cnt + 1 : 0; + } + re_node_set_free (&next_nodes); + cur_nodes = (mctx->state_log[last_str] == NULL ? NULL + : &mctx->state_log[last_str]->nodes); + path->next_idx = str_idx; + + /* Fix MCTX. */ + mctx->state_log = backup_state_log; + mctx->input.cur_idx = backup_cur_idx; + + /* Then check the current node set has the node LAST_NODE. */ + if (cur_nodes != NULL && re_node_set_contains (cur_nodes, last_node)) + return REG_NOERROR; + + return REG_NOMATCH; +} + +/* Helper functions for check_arrival. */ + +/* Calculate the destination nodes of CUR_NODES at STR_IDX, and append them + to NEXT_NODES. + TODO: This function is similar to the functions transit_state*(), + however this function has many additional works. + Can't we unify them? */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +check_arrival_add_next_nodes (re_match_context_t *mctx, Idx str_idx, + re_node_set *cur_nodes, re_node_set *next_nodes) +{ + const re_dfa_t *const dfa = mctx->dfa; + bool ok; + Idx cur_idx; +#ifdef RE_ENABLE_I18N + reg_errcode_t err = REG_NOERROR; +#endif + re_node_set union_set; + re_node_set_init_empty (&union_set); + for (cur_idx = 0; cur_idx < cur_nodes->nelem; ++cur_idx) + { + int naccepted = 0; + Idx cur_node = cur_nodes->elems[cur_idx]; +#ifdef DEBUG + re_token_type_t type = dfa->nodes[cur_node].type; + assert (!IS_EPSILON_NODE (type)); +#endif +#ifdef RE_ENABLE_I18N + /* If the node may accept `multi byte'. */ + if (dfa->nodes[cur_node].accept_mb) + { + naccepted = check_node_accept_bytes (dfa, cur_node, &mctx->input, + str_idx); + if (naccepted > 1) + { + re_dfastate_t *dest_state; + Idx next_node = dfa->nexts[cur_node]; + Idx next_idx = str_idx + naccepted; + dest_state = mctx->state_log[next_idx]; + re_node_set_empty (&union_set); + if (dest_state) + { + err = re_node_set_merge (&union_set, &dest_state->nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&union_set); + return err; + } + } + ok = re_node_set_insert (&union_set, next_node); + if (BE (! ok, 0)) + { + re_node_set_free (&union_set); + return REG_ESPACE; + } + mctx->state_log[next_idx] = re_acquire_state (&err, dfa, + &union_set); + if (BE (mctx->state_log[next_idx] == NULL + && err != REG_NOERROR, 0)) + { + re_node_set_free (&union_set); + return err; + } + } + } +#endif /* RE_ENABLE_I18N */ + if (naccepted + || check_node_accept (mctx, dfa->nodes + cur_node, str_idx)) + { + ok = re_node_set_insert (next_nodes, dfa->nexts[cur_node]); + if (BE (! ok, 0)) + { + re_node_set_free (&union_set); + return REG_ESPACE; + } + } + } + re_node_set_free (&union_set); + return REG_NOERROR; +} + +/* For all the nodes in CUR_NODES, add the epsilon closures of them to + CUR_NODES, however exclude the nodes which are: + - inside the sub expression whose number is EX_SUBEXP, if FL_OPEN. + - out of the sub expression whose number is EX_SUBEXP, if !FL_OPEN. +*/ + +static reg_errcode_t +internal_function +check_arrival_expand_ecl (const re_dfa_t *dfa, re_node_set *cur_nodes, + Idx ex_subexp, int type) +{ + reg_errcode_t err; + Idx idx, outside_node; + re_node_set new_nodes; +#ifdef DEBUG + assert (cur_nodes->nelem); +#endif + err = re_node_set_alloc (&new_nodes, cur_nodes->nelem); + if (BE (err != REG_NOERROR, 0)) + return err; + /* Create a new node set NEW_NODES with the nodes which are epsilon + closures of the node in CUR_NODES. */ + + for (idx = 0; idx < cur_nodes->nelem; ++idx) + { + Idx cur_node = cur_nodes->elems[idx]; + const re_node_set *eclosure = dfa->eclosures + cur_node; + outside_node = find_subexp_node (dfa, eclosure, ex_subexp, type); + if (outside_node == REG_MISSING) + { + /* There are no problematic nodes, just merge them. */ + err = re_node_set_merge (&new_nodes, eclosure); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&new_nodes); + return err; + } + } + else + { + /* There are problematic nodes, re-calculate incrementally. */ + err = check_arrival_expand_ecl_sub (dfa, &new_nodes, cur_node, + ex_subexp, type); + if (BE (err != REG_NOERROR, 0)) + { + re_node_set_free (&new_nodes); + return err; + } + } + } + re_node_set_free (cur_nodes); + *cur_nodes = new_nodes; + return REG_NOERROR; +} + +/* Helper function for check_arrival_expand_ecl. + Check incrementally the epsilon closure of TARGET, and if it isn't + problematic append it to DST_NODES. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +check_arrival_expand_ecl_sub (const re_dfa_t *dfa, re_node_set *dst_nodes, + Idx target, Idx ex_subexp, int type) +{ + Idx cur_node; + for (cur_node = target; !re_node_set_contains (dst_nodes, cur_node);) + { + bool ok; + + if (dfa->nodes[cur_node].type == type + && dfa->nodes[cur_node].opr.idx == ex_subexp) + { + if (type == OP_CLOSE_SUBEXP) + { + ok = re_node_set_insert (dst_nodes, cur_node); + if (BE (! ok, 0)) + return REG_ESPACE; + } + break; + } + ok = re_node_set_insert (dst_nodes, cur_node); + if (BE (! ok, 0)) + return REG_ESPACE; + if (dfa->edests[cur_node].nelem == 0) + break; + if (dfa->edests[cur_node].nelem == 2) + { + reg_errcode_t err; + err = check_arrival_expand_ecl_sub (dfa, dst_nodes, + dfa->edests[cur_node].elems[1], + ex_subexp, type); + if (BE (err != REG_NOERROR, 0)) + return err; + } + cur_node = dfa->edests[cur_node].elems[0]; + } + return REG_NOERROR; +} + + +/* For all the back references in the current state, calculate the + destination of the back references by the appropriate entry + in MCTX->BKREF_ENTS. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +expand_bkref_cache (re_match_context_t *mctx, re_node_set *cur_nodes, + Idx cur_str, Idx subexp_num, int type) +{ + const re_dfa_t *const dfa = mctx->dfa; + reg_errcode_t err; + Idx cache_idx_start = search_cur_bkref_entry (mctx, cur_str); + struct re_backref_cache_entry *ent; + + if (cache_idx_start == REG_MISSING) + return REG_NOERROR; + + restart: + ent = mctx->bkref_ents + cache_idx_start; + do + { + Idx to_idx, next_node; + + /* Is this entry ENT is appropriate? */ + if (!re_node_set_contains (cur_nodes, ent->node)) + continue; /* No. */ + + to_idx = cur_str + ent->subexp_to - ent->subexp_from; + /* Calculate the destination of the back reference, and append it + to MCTX->STATE_LOG. */ + if (to_idx == cur_str) + { + /* The backreference did epsilon transit, we must re-check all the + node in the current state. */ + re_node_set new_dests; + reg_errcode_t err2, err3; + next_node = dfa->edests[ent->node].elems[0]; + if (re_node_set_contains (cur_nodes, next_node)) + continue; + err = re_node_set_init_1 (&new_dests, next_node); + err2 = check_arrival_expand_ecl (dfa, &new_dests, subexp_num, type); + err3 = re_node_set_merge (cur_nodes, &new_dests); + re_node_set_free (&new_dests); + if (BE (err != REG_NOERROR || err2 != REG_NOERROR + || err3 != REG_NOERROR, 0)) + { + err = (err != REG_NOERROR ? err + : (err2 != REG_NOERROR ? err2 : err3)); + return err; + } + /* TODO: It is still inefficient... */ + goto restart; + } + else + { + re_node_set union_set; + next_node = dfa->nexts[ent->node]; + if (mctx->state_log[to_idx]) + { + bool ok; + if (re_node_set_contains (&mctx->state_log[to_idx]->nodes, + next_node)) + continue; + err = re_node_set_init_copy (&union_set, + &mctx->state_log[to_idx]->nodes); + ok = re_node_set_insert (&union_set, next_node); + if (BE (err != REG_NOERROR || ! ok, 0)) + { + re_node_set_free (&union_set); + err = err != REG_NOERROR ? err : REG_ESPACE; + return err; + } + } + else + { + err = re_node_set_init_1 (&union_set, next_node); + if (BE (err != REG_NOERROR, 0)) + return err; + } + mctx->state_log[to_idx] = re_acquire_state (&err, dfa, &union_set); + re_node_set_free (&union_set); + if (BE (mctx->state_log[to_idx] == NULL + && err != REG_NOERROR, 0)) + return err; + } + } + while (ent++->more); + return REG_NOERROR; +} + +/* Build transition table for the state. + Return true if successful. */ + +static bool +internal_function +build_trtable (const re_dfa_t *dfa, re_dfastate_t *state) +{ + reg_errcode_t err; + Idx i, j; + int ch; + bool need_word_trtable = false; + bitset_word_t elem, mask; + bool dests_node_malloced = false; + bool dest_states_malloced = false; + Idx ndests; /* Number of the destination states from `state'. */ + re_dfastate_t **trtable; + re_dfastate_t **dest_states = NULL, **dest_states_word, **dest_states_nl; + re_node_set follows, *dests_node; + bitset_t *dests_ch; + bitset_t acceptable; + + struct dests_alloc + { + re_node_set dests_node[SBC_MAX]; + bitset_t dests_ch[SBC_MAX]; + } *dests_alloc; + + /* We build DFA states which corresponds to the destination nodes + from `state'. `dests_node[i]' represents the nodes which i-th + destination state contains, and `dests_ch[i]' represents the + characters which i-th destination state accepts. */ + if (__libc_use_alloca (sizeof (struct dests_alloc))) + dests_alloc = (struct dests_alloc *) alloca (sizeof (struct dests_alloc)); + else + { + dests_alloc = re_malloc (struct dests_alloc, 1); + if (BE (dests_alloc == NULL, 0)) + return false; + dests_node_malloced = true; + } + dests_node = dests_alloc->dests_node; + dests_ch = dests_alloc->dests_ch; + + /* Initialize transiton table. */ + state->word_trtable = state->trtable = NULL; + + /* At first, group all nodes belonging to `state' into several + destinations. */ + ndests = group_nodes_into_DFAstates (dfa, state, dests_node, dests_ch); + if (BE (! REG_VALID_NONZERO_INDEX (ndests), 0)) + { + if (dests_node_malloced) + free (dests_alloc); + if (ndests == 0) + { + state->trtable = (re_dfastate_t **) + calloc (sizeof (re_dfastate_t *), SBC_MAX); + return true; + } + return false; + } + + err = re_node_set_alloc (&follows, ndests + 1); + if (BE (err != REG_NOERROR, 0)) + goto out_free; + + /* Avoid arithmetic overflow in size calculation. */ + if (BE ((((SIZE_MAX - (sizeof (re_node_set) + sizeof (bitset_t)) * SBC_MAX) + / (3 * sizeof (re_dfastate_t *))) + < ndests), + 0)) + goto out_free; + + if (__libc_use_alloca ((sizeof (re_node_set) + sizeof (bitset_t)) * SBC_MAX + + ndests * 3 * sizeof (re_dfastate_t *))) + dest_states = (re_dfastate_t **) + alloca (ndests * 3 * sizeof (re_dfastate_t *)); + else + { + dest_states = (re_dfastate_t **) + re_malloc (re_dfastate_t *, ndests * 3); + if (BE (dest_states == NULL, 0)) + { +out_free: + if (dest_states_malloced) + free (dest_states); + re_node_set_free (&follows); + for (i = 0; i < ndests; ++i) + re_node_set_free (dests_node + i); + if (dests_node_malloced) + free (dests_alloc); + return false; + } + dest_states_malloced = true; + } + dest_states_word = dest_states + ndests; + dest_states_nl = dest_states_word + ndests; + bitset_empty (acceptable); + + /* Then build the states for all destinations. */ + for (i = 0; i < ndests; ++i) + { + Idx next_node; + re_node_set_empty (&follows); + /* Merge the follows of this destination states. */ + for (j = 0; j < dests_node[i].nelem; ++j) + { + next_node = dfa->nexts[dests_node[i].elems[j]]; + if (next_node != REG_MISSING) + { + err = re_node_set_merge (&follows, dfa->eclosures + next_node); + if (BE (err != REG_NOERROR, 0)) + goto out_free; + } + } + dest_states[i] = re_acquire_state_context (&err, dfa, &follows, 0); + if (BE (dest_states[i] == NULL && err != REG_NOERROR, 0)) + goto out_free; + /* If the new state has context constraint, + build appropriate states for these contexts. */ + if (dest_states[i]->has_constraint) + { + dest_states_word[i] = re_acquire_state_context (&err, dfa, &follows, + CONTEXT_WORD); + if (BE (dest_states_word[i] == NULL && err != REG_NOERROR, 0)) + goto out_free; + + if (dest_states[i] != dest_states_word[i] && dfa->mb_cur_max > 1) + need_word_trtable = true; + + dest_states_nl[i] = re_acquire_state_context (&err, dfa, &follows, + CONTEXT_NEWLINE); + if (BE (dest_states_nl[i] == NULL && err != REG_NOERROR, 0)) + goto out_free; + } + else + { + dest_states_word[i] = dest_states[i]; + dest_states_nl[i] = dest_states[i]; + } + bitset_merge (acceptable, dests_ch[i]); + } + + if (!BE (need_word_trtable, 0)) + { + /* We don't care about whether the following character is a word + character, or we are in a single-byte character set so we can + discern by looking at the character code: allocate a + 256-entry transition table. */ + trtable = state->trtable = + (re_dfastate_t **) calloc (sizeof (re_dfastate_t *), SBC_MAX); + if (BE (trtable == NULL, 0)) + goto out_free; + + /* For all characters ch...: */ + for (i = 0; i < BITSET_WORDS; ++i) + for (ch = i * BITSET_WORD_BITS, elem = acceptable[i], mask = 1; + elem; + mask <<= 1, elem >>= 1, ++ch) + if (BE (elem & 1, 0)) + { + /* There must be exactly one destination which accepts + character ch. See group_nodes_into_DFAstates. */ + for (j = 0; (dests_ch[j][i] & mask) == 0; ++j) + ; + + /* j-th destination accepts the word character ch. */ + if (dfa->word_char[i] & mask) + trtable[ch] = dest_states_word[j]; + else + trtable[ch] = dest_states[j]; + } + } + else + { + /* We care about whether the following character is a word + character, and we are in a multi-byte character set: discern + by looking at the character code: build two 256-entry + transition tables, one starting at trtable[0] and one + starting at trtable[SBC_MAX]. */ + trtable = state->word_trtable = + (re_dfastate_t **) calloc (sizeof (re_dfastate_t *), 2 * SBC_MAX); + if (BE (trtable == NULL, 0)) + goto out_free; + + /* For all characters ch...: */ + for (i = 0; i < BITSET_WORDS; ++i) + for (ch = i * BITSET_WORD_BITS, elem = acceptable[i], mask = 1; + elem; + mask <<= 1, elem >>= 1, ++ch) + if (BE (elem & 1, 0)) + { + /* There must be exactly one destination which accepts + character ch. See group_nodes_into_DFAstates. */ + for (j = 0; (dests_ch[j][i] & mask) == 0; ++j) + ; + + /* j-th destination accepts the word character ch. */ + trtable[ch] = dest_states[j]; + trtable[ch + SBC_MAX] = dest_states_word[j]; + } + } + + /* new line */ + if (bitset_contain (acceptable, NEWLINE_CHAR)) + { + /* The current state accepts newline character. */ + for (j = 0; j < ndests; ++j) + if (bitset_contain (dests_ch[j], NEWLINE_CHAR)) + { + /* k-th destination accepts newline character. */ + trtable[NEWLINE_CHAR] = dest_states_nl[j]; + if (need_word_trtable) + trtable[NEWLINE_CHAR + SBC_MAX] = dest_states_nl[j]; + /* There must be only one destination which accepts + newline. See group_nodes_into_DFAstates. */ + break; + } + } + + if (dest_states_malloced) + free (dest_states); + + re_node_set_free (&follows); + for (i = 0; i < ndests; ++i) + re_node_set_free (dests_node + i); + + if (dests_node_malloced) + free (dests_alloc); + + return true; +} + +/* Group all nodes belonging to STATE into several destinations. + Then for all destinations, set the nodes belonging to the destination + to DESTS_NODE[i] and set the characters accepted by the destination + to DEST_CH[i]. This function return the number of destinations. */ + +static Idx +internal_function +group_nodes_into_DFAstates (const re_dfa_t *dfa, const re_dfastate_t *state, + re_node_set *dests_node, bitset_t *dests_ch) +{ + reg_errcode_t err; + bool ok; + Idx i, j, k; + Idx ndests; /* Number of the destinations from `state'. */ + bitset_t accepts; /* Characters a node can accept. */ + const re_node_set *cur_nodes = &state->nodes; + bitset_empty (accepts); + ndests = 0; + + /* For all the nodes belonging to `state', */ + for (i = 0; i < cur_nodes->nelem; ++i) + { + re_token_t *node = &dfa->nodes[cur_nodes->elems[i]]; + re_token_type_t type = node->type; + unsigned int constraint = node->constraint; + + /* Enumerate all single byte character this node can accept. */ + if (type == CHARACTER) + bitset_set (accepts, node->opr.c); + else if (type == SIMPLE_BRACKET) + { + bitset_merge (accepts, node->opr.sbcset); + } + else if (type == OP_PERIOD) + { +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + bitset_merge (accepts, dfa->sb_char); + else +#endif + bitset_set_all (accepts); + if (!(dfa->syntax & RE_DOT_NEWLINE)) + bitset_clear (accepts, '\n'); + if (dfa->syntax & RE_DOT_NOT_NULL) + bitset_clear (accepts, '\0'); + } +#ifdef RE_ENABLE_I18N + else if (type == OP_UTF8_PERIOD) + { + if (ASCII_CHARS % BITSET_WORD_BITS == 0) + memset (accepts, -1, ASCII_CHARS / CHAR_BIT); + else + bitset_merge (accepts, utf8_sb_map); + if (!(dfa->syntax & RE_DOT_NEWLINE)) + bitset_clear (accepts, '\n'); + if (dfa->syntax & RE_DOT_NOT_NULL) + bitset_clear (accepts, '\0'); + } +#endif + else + continue; + + /* Check the `accepts' and sift the characters which are not + match it the context. */ + if (constraint) + { + if (constraint & NEXT_NEWLINE_CONSTRAINT) + { + bool accepts_newline = bitset_contain (accepts, NEWLINE_CHAR); + bitset_empty (accepts); + if (accepts_newline) + bitset_set (accepts, NEWLINE_CHAR); + else + continue; + } + if (constraint & NEXT_ENDBUF_CONSTRAINT) + { + bitset_empty (accepts); + continue; + } + + if (constraint & NEXT_WORD_CONSTRAINT) + { + bitset_word_t any_set = 0; + if (type == CHARACTER && !node->word_char) + { + bitset_empty (accepts); + continue; + } +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + for (j = 0; j < BITSET_WORDS; ++j) + any_set |= (accepts[j] &= (dfa->word_char[j] | ~dfa->sb_char[j])); + else +#endif + for (j = 0; j < BITSET_WORDS; ++j) + any_set |= (accepts[j] &= dfa->word_char[j]); + if (!any_set) + continue; + } + if (constraint & NEXT_NOTWORD_CONSTRAINT) + { + bitset_word_t any_set = 0; + if (type == CHARACTER && node->word_char) + { + bitset_empty (accepts); + continue; + } +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + for (j = 0; j < BITSET_WORDS; ++j) + any_set |= (accepts[j] &= ~(dfa->word_char[j] & dfa->sb_char[j])); + else +#endif + for (j = 0; j < BITSET_WORDS; ++j) + any_set |= (accepts[j] &= ~dfa->word_char[j]); + if (!any_set) + continue; + } + } + + /* Then divide `accepts' into DFA states, or create a new + state. Above, we make sure that accepts is not empty. */ + for (j = 0; j < ndests; ++j) + { + bitset_t intersec; /* Intersection sets, see below. */ + bitset_t remains; + /* Flags, see below. */ + bitset_word_t has_intersec, not_subset, not_consumed; + + /* Optimization, skip if this state doesn't accept the character. */ + if (type == CHARACTER && !bitset_contain (dests_ch[j], node->opr.c)) + continue; + + /* Enumerate the intersection set of this state and `accepts'. */ + has_intersec = 0; + for (k = 0; k < BITSET_WORDS; ++k) + has_intersec |= intersec[k] = accepts[k] & dests_ch[j][k]; + /* And skip if the intersection set is empty. */ + if (!has_intersec) + continue; + + /* Then check if this state is a subset of `accepts'. */ + not_subset = not_consumed = 0; + for (k = 0; k < BITSET_WORDS; ++k) + { + not_subset |= remains[k] = ~accepts[k] & dests_ch[j][k]; + not_consumed |= accepts[k] = accepts[k] & ~dests_ch[j][k]; + } + + /* If this state isn't a subset of `accepts', create a + new group state, which has the `remains'. */ + if (not_subset) + { + bitset_copy (dests_ch[ndests], remains); + bitset_copy (dests_ch[j], intersec); + err = re_node_set_init_copy (dests_node + ndests, &dests_node[j]); + if (BE (err != REG_NOERROR, 0)) + goto error_return; + ++ndests; + } + + /* Put the position in the current group. */ + ok = re_node_set_insert (&dests_node[j], cur_nodes->elems[i]); + if (BE (! ok, 0)) + goto error_return; + + /* If all characters are consumed, go to next node. */ + if (!not_consumed) + break; + } + /* Some characters remain, create a new group. */ + if (j == ndests) + { + bitset_copy (dests_ch[ndests], accepts); + err = re_node_set_init_1 (dests_node + ndests, cur_nodes->elems[i]); + if (BE (err != REG_NOERROR, 0)) + goto error_return; + ++ndests; + bitset_empty (accepts); + } + } + return ndests; + error_return: + for (j = 0; j < ndests; ++j) + re_node_set_free (dests_node + j); + return REG_MISSING; +} + +#ifdef RE_ENABLE_I18N +/* Check how many bytes the node `dfa->nodes[node_idx]' accepts. + Return the number of the bytes the node accepts. + STR_IDX is the current index of the input string. + + This function handles the nodes which can accept one character, or + one collating element like '.', '[a-z]', opposite to the other nodes + can only accept one byte. */ + +static int +internal_function +check_node_accept_bytes (const re_dfa_t *dfa, Idx node_idx, + const re_string_t *input, Idx str_idx) +{ + const re_token_t *node = dfa->nodes + node_idx; + int char_len, elem_len; + Idx i; + + if (BE (node->type == OP_UTF8_PERIOD, 0)) + { + unsigned char c = re_string_byte_at (input, str_idx), d; + if (BE (c < 0xc2, 1)) + return 0; + + if (str_idx + 2 > input->len) + return 0; + + d = re_string_byte_at (input, str_idx + 1); + if (c < 0xe0) + return (d < 0x80 || d > 0xbf) ? 0 : 2; + else if (c < 0xf0) + { + char_len = 3; + if (c == 0xe0 && d < 0xa0) + return 0; + } + else if (c < 0xf8) + { + char_len = 4; + if (c == 0xf0 && d < 0x90) + return 0; + } + else if (c < 0xfc) + { + char_len = 5; + if (c == 0xf8 && d < 0x88) + return 0; + } + else if (c < 0xfe) + { + char_len = 6; + if (c == 0xfc && d < 0x84) + return 0; + } + else + return 0; + + if (str_idx + char_len > input->len) + return 0; + + for (i = 1; i < char_len; ++i) + { + d = re_string_byte_at (input, str_idx + i); + if (d < 0x80 || d > 0xbf) + return 0; + } + return char_len; + } + + char_len = re_string_char_size_at (input, str_idx); + if (node->type == OP_PERIOD) + { + if (char_len <= 1) + return 0; + /* FIXME: I don't think this if is needed, as both '\n' + and '\0' are char_len == 1. */ + /* '.' accepts any one character except the following two cases. */ + if ((!(dfa->syntax & RE_DOT_NEWLINE) && + re_string_byte_at (input, str_idx) == '\n') || + ((dfa->syntax & RE_DOT_NOT_NULL) && + re_string_byte_at (input, str_idx) == '\0')) + return 0; + return char_len; + } + + elem_len = re_string_elem_size_at (input, str_idx); + if ((elem_len <= 1 && char_len <= 1) || char_len == 0) + return 0; + + if (node->type == COMPLEX_BRACKET) + { + const re_charset_t *cset = node->opr.mbcset; +# ifdef _LIBC + const unsigned char *pin + = ((const unsigned char *) re_string_get_buffer (input) + str_idx); + Idx j; + uint32_t nrules; +# endif /* _LIBC */ + int match_len = 0; + wchar_t wc = ((cset->nranges || cset->nchar_classes || cset->nmbchars) + ? re_string_wchar_at (input, str_idx) : 0); + + /* match with multibyte character? */ + for (i = 0; i < cset->nmbchars; ++i) + if (wc == cset->mbchars[i]) + { + match_len = char_len; + goto check_node_accept_bytes_match; + } + /* match with character_class? */ + for (i = 0; i < cset->nchar_classes; ++i) + { + wctype_t wt = cset->char_classes[i]; + if (__iswctype (wc, wt)) + { + match_len = char_len; + goto check_node_accept_bytes_match; + } + } + +# ifdef _LIBC + nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + if (nrules != 0) + { + unsigned int in_collseq = 0; + const int32_t *table, *indirect; + const unsigned char *weights, *extra; + const char *collseqwc; + int32_t idx; + /* This #include defines a local function! */ +# include + + /* match with collating_symbol? */ + if (cset->ncoll_syms) + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); + for (i = 0; i < cset->ncoll_syms; ++i) + { + const unsigned char *coll_sym = extra + cset->coll_syms[i]; + /* Compare the length of input collating element and + the length of current collating element. */ + if (*coll_sym != elem_len) + continue; + /* Compare each bytes. */ + for (j = 0; j < *coll_sym; j++) + if (pin[j] != coll_sym[1 + j]) + break; + if (j == *coll_sym) + { + /* Match if every bytes is equal. */ + match_len = j; + goto check_node_accept_bytes_match; + } + } + + if (cset->nranges) + { + if (elem_len <= char_len) + { + collseqwc = _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQWC); + in_collseq = __collseq_table_lookup (collseqwc, wc); + } + else + in_collseq = find_collation_sequence_value (pin, elem_len); + } + /* match with range expression? */ + for (i = 0; i < cset->nranges; ++i) + if (cset->range_starts[i] <= in_collseq + && in_collseq <= cset->range_ends[i]) + { + match_len = elem_len; + goto check_node_accept_bytes_match; + } + + /* match with equivalence_class? */ + if (cset->nequiv_classes) + { + const unsigned char *cp = pin; + table = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); + weights = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_WEIGHTMB); + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); + indirect = (const int32_t *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB); + int32_t idx = findidx (&cp); + if (idx > 0) + for (i = 0; i < cset->nequiv_classes; ++i) + { + int32_t equiv_class_idx = cset->equiv_classes[i]; + size_t weight_len = weights[idx & 0xffffff]; + if (weight_len == weights[equiv_class_idx & 0xffffff] + && (idx >> 24) == (equiv_class_idx >> 24)) + { + Idx cnt = 0; + + idx &= 0xffffff; + equiv_class_idx &= 0xffffff; + + while (cnt <= weight_len + && (weights[equiv_class_idx + 1 + cnt] + == weights[idx + 1 + cnt])) + ++cnt; + if (cnt > weight_len) + { + match_len = elem_len; + goto check_node_accept_bytes_match; + } + } + } + } + } + else +# endif /* _LIBC */ + { + /* match with range expression? */ +#if __GNUC__ >= 2 && ! (__STDC_VERSION__ < 199901L && __STRICT_ANSI__) + wchar_t cmp_buf[] = {L'\0', L'\0', wc, L'\0', L'\0', L'\0'}; +#else + wchar_t cmp_buf[] = {L'\0', L'\0', L'\0', L'\0', L'\0', L'\0'}; + cmp_buf[2] = wc; +#endif + for (i = 0; i < cset->nranges; ++i) + { + cmp_buf[0] = cset->range_starts[i]; + cmp_buf[4] = cset->range_ends[i]; + if (wcscoll (cmp_buf, cmp_buf + 2) <= 0 + && wcscoll (cmp_buf + 2, cmp_buf + 4) <= 0) + { + match_len = char_len; + goto check_node_accept_bytes_match; + } + } + } + check_node_accept_bytes_match: + if (!cset->non_match) + return match_len; + else + { + if (match_len > 0) + return 0; + else + return (elem_len > char_len) ? elem_len : char_len; + } + } + return 0; +} + +# ifdef _LIBC +static unsigned int +internal_function +find_collation_sequence_value (const unsigned char *mbs, size_t mbs_len) +{ + uint32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + if (nrules == 0) + { + if (mbs_len == 1) + { + /* No valid character. Match it as a single byte character. */ + const unsigned char *collseq = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_COLLSEQMB); + return collseq[mbs[0]]; + } + return UINT_MAX; + } + else + { + int32_t idx; + const unsigned char *extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB); + int32_t extrasize = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_SYMB_EXTRAMB + 1) - extra; + + for (idx = 0; idx < extrasize;) + { + int mbs_cnt; + bool found = false; + int32_t elem_mbs_len; + /* Skip the name of collating element name. */ + idx = idx + extra[idx] + 1; + elem_mbs_len = extra[idx++]; + if (mbs_len == elem_mbs_len) + { + for (mbs_cnt = 0; mbs_cnt < elem_mbs_len; ++mbs_cnt) + if (extra[idx + mbs_cnt] != mbs[mbs_cnt]) + break; + if (mbs_cnt == elem_mbs_len) + /* Found the entry. */ + found = true; + } + /* Skip the byte sequence of the collating element. */ + idx += elem_mbs_len; + /* Adjust for the alignment. */ + idx = (idx + 3) & ~3; + /* Skip the collation sequence value. */ + idx += sizeof (uint32_t); + /* Skip the wide char sequence of the collating element. */ + idx = idx + sizeof (uint32_t) * (extra[idx] + 1); + /* If we found the entry, return the sequence value. */ + if (found) + return *(uint32_t *) (extra + idx); + /* Skip the collation sequence value. */ + idx += sizeof (uint32_t); + } + return UINT_MAX; + } +} +# endif /* _LIBC */ +#endif /* RE_ENABLE_I18N */ + +/* Check whether the node accepts the byte which is IDX-th + byte of the INPUT. */ + +static bool +internal_function +check_node_accept (const re_match_context_t *mctx, const re_token_t *node, + Idx idx) +{ + unsigned char ch; + ch = re_string_byte_at (&mctx->input, idx); + switch (node->type) + { + case CHARACTER: + if (node->opr.c != ch) + return false; + break; + + case SIMPLE_BRACKET: + if (!bitset_contain (node->opr.sbcset, ch)) + return false; + break; + +#ifdef RE_ENABLE_I18N + case OP_UTF8_PERIOD: + if (ch >= ASCII_CHARS) + return false; + /* FALLTHROUGH */ +#endif + case OP_PERIOD: + if ((ch == '\n' && !(mctx->dfa->syntax & RE_DOT_NEWLINE)) + || (ch == '\0' && (mctx->dfa->syntax & RE_DOT_NOT_NULL))) + return false; + break; + + default: + return false; + } + + if (node->constraint) + { + /* The node has constraints. Check whether the current context + satisfies the constraints. */ + unsigned int context = re_string_context_at (&mctx->input, idx, + mctx->eflags); + if (NOT_SATISFY_NEXT_CONSTRAINT (node->constraint, context)) + return false; + } + + return true; +} + +/* Extend the buffers, if the buffers have run out. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +extend_buffers (re_match_context_t *mctx) +{ + reg_errcode_t ret; + re_string_t *pstr = &mctx->input; + + /* Avoid overflow. */ + if (BE (SIZE_MAX / 2 / sizeof (re_dfastate_t *) <= pstr->bufs_len, 0)) + return REG_ESPACE; + + /* Double the lengthes of the buffers. */ + ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2); + if (BE (ret != REG_NOERROR, 0)) + return ret; + + if (mctx->state_log != NULL) + { + /* And double the length of state_log. */ + /* XXX We have no indication of the size of this buffer. If this + allocation fail we have no indication that the state_log array + does not have the right size. */ + re_dfastate_t **new_array = re_realloc (mctx->state_log, re_dfastate_t *, + pstr->bufs_len + 1); + if (BE (new_array == NULL, 0)) + return REG_ESPACE; + mctx->state_log = new_array; + } + + /* Then reconstruct the buffers. */ + if (pstr->icase) + { +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + { + ret = build_wcs_upper_buffer (pstr); + if (BE (ret != REG_NOERROR, 0)) + return ret; + } + else +#endif /* RE_ENABLE_I18N */ + build_upper_buffer (pstr); + } + else + { +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + build_wcs_buffer (pstr); + else +#endif /* RE_ENABLE_I18N */ + { + if (pstr->trans != NULL) + re_string_translate_buffer (pstr); + } + } + return REG_NOERROR; +} + + +/* Functions for matching context. */ + +/* Initialize MCTX. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +match_ctx_init (re_match_context_t *mctx, int eflags, Idx n) +{ + mctx->eflags = eflags; + mctx->match_last = REG_MISSING; + if (n > 0) + { + /* Avoid overflow. */ + size_t max_object_size = + MAX (sizeof (struct re_backref_cache_entry), + sizeof (re_sub_match_top_t *)); + if (BE (SIZE_MAX / max_object_size < n, 0)) + return REG_ESPACE; + + mctx->bkref_ents = re_malloc (struct re_backref_cache_entry, n); + mctx->sub_tops = re_malloc (re_sub_match_top_t *, n); + if (BE (mctx->bkref_ents == NULL || mctx->sub_tops == NULL, 0)) + return REG_ESPACE; + } + /* Already zero-ed by the caller. + else + mctx->bkref_ents = NULL; + mctx->nbkref_ents = 0; + mctx->nsub_tops = 0; */ + mctx->abkref_ents = n; + mctx->max_mb_elem_len = 1; + mctx->asub_tops = n; + return REG_NOERROR; +} + +/* Clean the entries which depend on the current input in MCTX. + This function must be invoked when the matcher changes the start index + of the input, or changes the input string. */ + +static void +internal_function +match_ctx_clean (re_match_context_t *mctx) +{ + Idx st_idx; + for (st_idx = 0; st_idx < mctx->nsub_tops; ++st_idx) + { + Idx sl_idx; + re_sub_match_top_t *top = mctx->sub_tops[st_idx]; + for (sl_idx = 0; sl_idx < top->nlasts; ++sl_idx) + { + re_sub_match_last_t *last = top->lasts[sl_idx]; + re_free (last->path.array); + re_free (last); + } + re_free (top->lasts); + if (top->path) + { + re_free (top->path->array); + re_free (top->path); + } + free (top); + } + + mctx->nsub_tops = 0; + mctx->nbkref_ents = 0; +} + +/* Free all the memory associated with MCTX. */ + +static void +internal_function +match_ctx_free (re_match_context_t *mctx) +{ + /* First, free all the memory associated with MCTX->SUB_TOPS. */ + match_ctx_clean (mctx); + re_free (mctx->sub_tops); + re_free (mctx->bkref_ents); +} + +/* Add a new backreference entry to MCTX. + Note that we assume that caller never call this function with duplicate + entry, and call with STR_IDX which isn't smaller than any existing entry. +*/ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +match_ctx_add_entry (re_match_context_t *mctx, Idx node, Idx str_idx, Idx from, + Idx to) +{ + if (mctx->nbkref_ents >= mctx->abkref_ents) + { + struct re_backref_cache_entry* new_entry; + new_entry = re_realloc (mctx->bkref_ents, struct re_backref_cache_entry, + mctx->abkref_ents * 2); + if (BE (new_entry == NULL, 0)) + { + re_free (mctx->bkref_ents); + return REG_ESPACE; + } + mctx->bkref_ents = new_entry; + memset (mctx->bkref_ents + mctx->nbkref_ents, '\0', + sizeof (struct re_backref_cache_entry) * mctx->abkref_ents); + mctx->abkref_ents *= 2; + } + if (mctx->nbkref_ents > 0 + && mctx->bkref_ents[mctx->nbkref_ents - 1].str_idx == str_idx) + mctx->bkref_ents[mctx->nbkref_ents - 1].more = 1; + + mctx->bkref_ents[mctx->nbkref_ents].node = node; + mctx->bkref_ents[mctx->nbkref_ents].str_idx = str_idx; + mctx->bkref_ents[mctx->nbkref_ents].subexp_from = from; + mctx->bkref_ents[mctx->nbkref_ents].subexp_to = to; + + /* This is a cache that saves negative results of check_dst_limits_calc_pos. + If bit N is clear, means that this entry won't epsilon-transition to + an OP_OPEN_SUBEXP or OP_CLOSE_SUBEXP for the N+1-th subexpression. If + it is set, check_dst_limits_calc_pos_1 will recurse and try to find one + such node. + + A backreference does not epsilon-transition unless it is empty, so set + to all zeros if FROM != TO. */ + mctx->bkref_ents[mctx->nbkref_ents].eps_reachable_subexps_map + = (from == to ? -1 : 0); + + mctx->bkref_ents[mctx->nbkref_ents++].more = 0; + if (mctx->max_mb_elem_len < to - from) + mctx->max_mb_elem_len = to - from; + return REG_NOERROR; +} + +/* Return the first entry with the same str_idx, or REG_MISSING if none is + found. Note that MCTX->BKREF_ENTS is already sorted by MCTX->STR_IDX. */ + +static Idx +internal_function +search_cur_bkref_entry (const re_match_context_t *mctx, Idx str_idx) +{ + Idx left, right, mid, last; + last = right = mctx->nbkref_ents; + for (left = 0; left < right;) + { + mid = (left + right) / 2; + if (mctx->bkref_ents[mid].str_idx < str_idx) + left = mid + 1; + else + right = mid; + } + if (left < last && mctx->bkref_ents[left].str_idx == str_idx) + return left; + else + return REG_MISSING; +} + +/* Register the node NODE, whose type is OP_OPEN_SUBEXP, and which matches + at STR_IDX. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +match_ctx_add_subtop (re_match_context_t *mctx, Idx node, Idx str_idx) +{ +#ifdef DEBUG + assert (mctx->sub_tops != NULL); + assert (mctx->asub_tops > 0); +#endif + if (BE (mctx->nsub_tops == mctx->asub_tops, 0)) + { + Idx new_asub_tops = mctx->asub_tops * 2; + re_sub_match_top_t **new_array = re_realloc (mctx->sub_tops, + re_sub_match_top_t *, + new_asub_tops); + if (BE (new_array == NULL, 0)) + return REG_ESPACE; + mctx->sub_tops = new_array; + mctx->asub_tops = new_asub_tops; + } + mctx->sub_tops[mctx->nsub_tops] = calloc (1, sizeof (re_sub_match_top_t)); + if (BE (mctx->sub_tops[mctx->nsub_tops] == NULL, 0)) + return REG_ESPACE; + mctx->sub_tops[mctx->nsub_tops]->node = node; + mctx->sub_tops[mctx->nsub_tops++]->str_idx = str_idx; + return REG_NOERROR; +} + +/* Register the node NODE, whose type is OP_CLOSE_SUBEXP, and which matches + at STR_IDX, whose corresponding OP_OPEN_SUBEXP is SUB_TOP. */ + +static re_sub_match_last_t * +internal_function +match_ctx_add_sublast (re_sub_match_top_t *subtop, Idx node, Idx str_idx) +{ + re_sub_match_last_t *new_entry; + if (BE (subtop->nlasts == subtop->alasts, 0)) + { + Idx new_alasts = 2 * subtop->alasts + 1; + re_sub_match_last_t **new_array = re_realloc (subtop->lasts, + re_sub_match_last_t *, + new_alasts); + if (BE (new_array == NULL, 0)) + return NULL; + subtop->lasts = new_array; + subtop->alasts = new_alasts; + } + new_entry = calloc (1, sizeof (re_sub_match_last_t)); + if (BE (new_entry != NULL, 1)) + { + subtop->lasts[subtop->nlasts] = new_entry; + new_entry->node = node; + new_entry->str_idx = str_idx; + ++subtop->nlasts; + } + return new_entry; +} + +static void +internal_function +sift_ctx_init (re_sift_context_t *sctx, re_dfastate_t **sifted_sts, + re_dfastate_t **limited_sts, Idx last_node, Idx last_str_idx) +{ + sctx->sifted_states = sifted_sts; + sctx->limited_states = limited_sts; + sctx->last_node = last_node; + sctx->last_str_idx = last_str_idx; + re_node_set_init_empty (&sctx->limits); +} diff -Nru gettext-0.17/gettext-tools/libgrep/regex.h gettext-0.18.1.1/gettext-tools/libgrep/regex.h --- gettext-0.17/gettext-tools/libgrep/regex.h 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regex.h 2010-06-03 21:36:52.000000000 +0000 @@ -1,21 +1,23 @@ /* Definitions for data structures and routines for the regular expression library. - Copyright (C) 1985,1989-93,1995-98,2000,2001,2002,2003 - Free Software Foundation, Inc. + Copyright (C) 1985, 1989, 1990, 1991, 1992, 1993, 1995, 1996, 1997, 1998, + 2000, 2001, 2002, 2003, 2005, 2006, 2009, 2010 Free Software Foundation, + Inc. This file is part of the GNU C Library. - This program is free software: you can redistribute it and/or modify + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + the Free Software Foundation; either version 3, or (at your option) + any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _REGEX_H #define _REGEX_H 1 @@ -27,13 +29,55 @@ extern "C" { #endif -/* POSIX says that must be included (by the caller) before - . */ +/* Define __USE_GNU_REGEX to declare GNU extensions that violate the + POSIX name space rules. */ +#undef __USE_GNU_REGEX +#if (defined _GNU_SOURCE \ + || (!defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE \ + && !defined _XOPEN_SOURCE)) +# define __USE_GNU_REGEX 1 +#endif + +#ifdef _REGEX_LARGE_OFFSETS + +/* Use types and values that are wide enough to represent signed and + unsigned byte offsets in memory. This currently works only when + the regex code is used outside of the GNU C library; it is not yet + supported within glibc itself, and glibc users should not define + _REGEX_LARGE_OFFSETS. */ + +/* The type of the offset of a byte within a string. + For historical reasons POSIX 1003.1-2004 requires that regoff_t be + at least as wide as off_t. However, many common POSIX platforms set + regoff_t to the more-sensible ssize_t and the Open Group has + signalled its intention to change the requirement to be that + regoff_t be at least as wide as ptrdiff_t and ssize_t; see XBD ERN + 60 (2005-08-25). We don't know of any hosts where ssize_t or + ptrdiff_t is wider than ssize_t, so ssize_t is safe. */ +typedef ssize_t regoff_t; + +/* The type of nonnegative object indexes. Traditionally, GNU regex + uses 'int' for these. Code that uses __re_idx_t should work + regardless of whether the type is signed. */ +typedef size_t __re_idx_t; + +/* The type of object sizes. */ +typedef size_t __re_size_t; + +/* The type of object sizes, in places where the traditional code + uses unsigned long int. */ +typedef size_t __re_long_size_t; + +#else + +/* Use types that are binary-compatible with the traditional GNU regex + implementation, which mishandles strings longer than INT_MAX. */ + +typedef int regoff_t; +typedef int __re_idx_t; +typedef unsigned int __re_size_t; +typedef unsigned long int __re_long_size_t; -#if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS -/* VMS doesn't have `size_t' in , even though POSIX says it - should be there. */ -# include #endif /* The following two types have to be signed and unsigned integer type @@ -50,20 +94,22 @@ add or remove a bit, only one other definition need change. */ typedef unsigned long int reg_syntax_t; +#ifdef __USE_GNU_REGEX + /* If this bit is not set, then \ inside a bracket expression is literal. If set, then such a \ quotes the following character. */ -#define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1) +# define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1) /* If this bit is not set, then + and ? are operators, and \+ and \? are literals. If set, then \+ and \? are operators and + and ? are literals. */ -#define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1) +# define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1) /* If this bit is set, then character classes are supported. They are: [:alpha:], [:upper:], [:lower:], [:digit:], [:alnum:], [:xdigit:], [:space:], [:print:], [:punct:], [:graph:], and [:cntrl:]. If not set, then character classes are not supported. */ -#define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1) +# define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1) /* If this bit is set, then ^ and $ are always anchors (outside bracket expressions, of course). @@ -77,7 +123,7 @@ POSIX draft 11.2 says that * etc. in leading positions is undefined. We already implemented a previous draft which made those constructs invalid, though, so we haven't changed the code back. */ -#define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1) +# define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1) /* If this bit is set, then special characters are always special regardless of where they are in the pattern. @@ -85,71 +131,71 @@ some contexts; otherwise they are ordinary. Specifically, * + ? and intervals are only special when not after the beginning, open-group, or alternation operator. */ -#define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1) +# define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1) /* If this bit is set, then *, +, ?, and { cannot be first in an re or immediately after an alternation or begin-group operator. */ -#define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1) +# define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1) /* If this bit is set, then . matches newline. If not set, then it doesn't. */ -#define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1) +# define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1) /* If this bit is set, then . doesn't match NUL. If not set, then it does. */ -#define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1) +# define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1) /* If this bit is set, nonmatching lists [^...] do not match newline. If not set, they do. */ -#define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1) +# define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1) /* If this bit is set, either \{...\} or {...} defines an interval, depending on RE_NO_BK_BRACES. If not set, \{, \}, {, and } are literals. */ -#define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1) +# define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1) /* If this bit is set, +, ? and | aren't recognized as operators. If not set, they are. */ -#define RE_LIMITED_OPS (RE_INTERVALS << 1) +# define RE_LIMITED_OPS (RE_INTERVALS << 1) /* If this bit is set, newline is an alternation operator. If not set, newline is literal. */ -#define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1) +# define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1) /* If this bit is set, then `{...}' defines an interval, and \{ and \} are literals. If not set, then `\{...\}' defines an interval. */ -#define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1) +# define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1) /* If this bit is set, (...) defines a group, and \( and \) are literals. If not set, \(...\) defines a group, and ( and ) are literals. */ -#define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1) +# define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1) /* If this bit is set, then \ matches . If not set, then \ is a back-reference. */ -#define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1) +# define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1) /* If this bit is set, then | is an alternation operator, and \| is literal. If not set, then \| is an alternation operator, and | is literal. */ -#define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1) +# define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1) /* If this bit is set, then an ending range point collating higher than the starting range point, as in [z-a], is invalid. If not set, then when ending range point collates higher than the starting range point, the range is ignored. */ -#define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1) +# define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1) /* If this bit is set, then an unmatched ) is ordinary. If not set, then an unmatched ) is invalid. */ -#define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1) +# define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1) /* If this bit is set, succeed as soon as we match the whole pattern, without further backtracking. */ -#define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1) +# define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1) /* If this bit is set, do not process the GNU regex operators. If not set, then the GNU regex operators are recognized. */ -#define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) +# define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) /* If this bit is set, turn on internal regex debugging. If not set, and debugging was on, turn it off. @@ -157,16 +203,31 @@ We define this bit always, so that all that's needed to turn on debugging is to recompile regex.c; the calling code can always have this bit set, and it won't affect anything in the normal case. */ -#define RE_DEBUG (RE_NO_GNU_OPS << 1) +# define RE_DEBUG (RE_NO_GNU_OPS << 1) /* If this bit is set, a syntactically invalid interval is treated as a string of ordinary characters. For example, the ERE 'a{1' is treated as 'a\{1'. */ -#define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1) +# define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1) /* If this bit is set, then ignore case when matching. If not set, then case is significant. */ -#define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1) +# define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1) + +/* This bit is used internally like RE_CONTEXT_INDEP_ANCHORS but only + for ^, because it is difficult to scan the regex backwards to find + whether ^ should be special. */ +# define RE_CARET_ANCHORS_HERE (RE_ICASE << 1) + +/* If this bit is set, then \{ cannot be first in an bre or + immediately after an alternation or begin-group operator. */ +# define RE_CONTEXT_INVALID_DUP (RE_CARET_ANCHORS_HERE << 1) + +/* If this bit is set, then no_sub will be set to 1 during + re_compile_pattern. */ +# define RE_NO_SUB (RE_CONTEXT_INVALID_DUP << 1) + +#endif /* defined __USE_GNU_REGEX */ /* This global variable defines the particular regexp syntax to use (for some interfaces). When a regexp is compiled, the syntax used is @@ -174,63 +235,64 @@ already-compiled regexps. */ extern reg_syntax_t re_syntax_options; +#ifdef __USE_GNU_REGEX /* Define combinations of the above bits for the standard possibilities. (The [[[ comments delimit what gets put into the Texinfo file, so don't delete them!) */ /* [[[begin syntaxes]]] */ -#define RE_SYNTAX_EMACS 0 +# define RE_SYNTAX_EMACS 0 -#define RE_SYNTAX_AWK \ +# define RE_SYNTAX_AWK \ (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \ | RE_NO_BK_PARENS | RE_NO_BK_REFS \ | RE_NO_BK_VBAR | RE_NO_EMPTY_RANGES \ | RE_DOT_NEWLINE | RE_CONTEXT_INDEP_ANCHORS \ | RE_UNMATCHED_RIGHT_PAREN_ORD | RE_NO_GNU_OPS) -#define RE_SYNTAX_GNU_AWK \ +# define RE_SYNTAX_GNU_AWK \ ((RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DEBUG) \ & ~(RE_DOT_NOT_NULL | RE_INTERVALS | RE_CONTEXT_INDEP_OPS \ | RE_CONTEXT_INVALID_OPS )) -#define RE_SYNTAX_POSIX_AWK \ +# define RE_SYNTAX_POSIX_AWK \ (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS \ | RE_INTERVALS | RE_NO_GNU_OPS) -#define RE_SYNTAX_GREP \ +# define RE_SYNTAX_GREP \ (RE_BK_PLUS_QM | RE_CHAR_CLASSES \ | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS \ | RE_NEWLINE_ALT) -#define RE_SYNTAX_EGREP \ +# define RE_SYNTAX_EGREP \ (RE_CHAR_CLASSES | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE \ | RE_NEWLINE_ALT | RE_NO_BK_PARENS \ | RE_NO_BK_VBAR) -#define RE_SYNTAX_POSIX_EGREP \ +# define RE_SYNTAX_POSIX_EGREP \ (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES \ | RE_INVALID_INTERVAL_ORD) /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff. */ -#define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC +# define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC -#define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC +# define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC /* Syntax bits common to both basic and extended POSIX regex syntax. */ -#define _RE_SYNTAX_POSIX_COMMON \ +# define _RE_SYNTAX_POSIX_COMMON \ (RE_CHAR_CLASSES | RE_DOT_NEWLINE | RE_DOT_NOT_NULL \ | RE_INTERVALS | RE_NO_EMPTY_RANGES) -#define RE_SYNTAX_POSIX_BASIC \ - (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM) +# define RE_SYNTAX_POSIX_BASIC \ + (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM | RE_CONTEXT_INVALID_DUP) /* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes RE_LIMITED_OPS, i.e., \? \+ \| are not recognized. Actually, this isn't minimal, since other operators, such as \`, aren't disabled. */ -#define RE_SYNTAX_POSIX_MINIMAL_BASIC \ +# define RE_SYNTAX_POSIX_MINIMAL_BASIC \ (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS) -#define RE_SYNTAX_POSIX_EXTENDED \ +# define RE_SYNTAX_POSIX_EXTENDED \ (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INDEP_OPS | RE_NO_BK_BRACES \ | RE_NO_BK_PARENS | RE_NO_BK_VBAR \ @@ -238,21 +300,34 @@ /* Differs from ..._POSIX_EXTENDED in that RE_CONTEXT_INDEP_OPS is removed and RE_NO_BK_REFS is added. */ -#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED \ +# define RE_SYNTAX_POSIX_MINIMAL_EXTENDED \ (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES \ | RE_NO_BK_PARENS | RE_NO_BK_REFS \ | RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD) /* [[[end syntaxes]]] */ + +#endif /* defined __USE_GNU_REGEX */ -/* Maximum number of duplicates an interval can allow. Some systems - (erroneously) define this in other header files, but we want our +#ifdef __USE_GNU_REGEX + +/* Maximum number of duplicates an interval can allow. POSIX-conforming + systems might define this in , but we want our value, so remove any previous define. */ -#ifdef RE_DUP_MAX -# undef RE_DUP_MAX -#endif -/* If sizeof(int) == 2, then ((1 << 15) - 1) overflows. */ -#define RE_DUP_MAX (0x7fff) +# ifdef RE_DUP_MAX +# undef RE_DUP_MAX +# endif + +/* RE_DUP_MAX is 2**15 - 1 because an earlier implementation stored + the counter as a 2-byte signed integer. This is no longer true, so + RE_DUP_MAX could be increased to (INT_MAX / 10 - 1), or to + ((SIZE_MAX - 2) / 10 - 1) if _REGEX_LARGE_OFFSETS is defined. + However, there would be a huge performance problem if someone + actually used a pattern like a\{214748363\}, so RE_DUP_MAX retains + its historical value. */ +# define RE_DUP_MAX (0x7fff) + +#endif /* defined __USE_GNU_REGEX */ /* POSIX `cflags' bits (i.e., information for `regcomp'). */ @@ -263,16 +338,16 @@ /* If this bit is set, then ignore case when matching. If not set, then case is significant. */ -#define REG_ICASE (REG_EXTENDED << 1) +#define REG_ICASE (1 << 1) /* If this bit is set, then anchors do not match at newline characters in the string. If not set, then anchors do match at newlines. */ -#define REG_NEWLINE (REG_ICASE << 1) +#define REG_NEWLINE (1 << 2) /* If this bit is set, then report only success or fail in regexec. If not set, then returns differ between not matching and errors. */ -#define REG_NOSUB (REG_NEWLINE << 1) +#define REG_NOSUB (1 << 3) /* POSIX `eflags' bits (i.e., information for regexec). */ @@ -287,137 +362,176 @@ /* Like REG_NOTBOL, except for the end-of-line. */ #define REG_NOTEOL (1 << 1) +/* Use PMATCH[0] to delimit the start and end of the search in the + buffer. */ +#define REG_STARTEND (1 << 2) + /* If any error codes are removed, changed, or added, update the - `re_error_msg' table in regex.c. */ + `__re_error_msgid' table in regcomp.c. */ + typedef enum { -#ifdef _XOPEN_SOURCE - REG_ENOSYS = -1, /* This will never happen for this implementation. */ -#endif - - REG_NOERROR = 0, /* Success. */ - REG_NOMATCH, /* Didn't find a match (for regexec). */ + _REG_ENOSYS = -1, /* This will never happen for this implementation. */ + _REG_NOERROR = 0, /* Success. */ + _REG_NOMATCH, /* Didn't find a match (for regexec). */ /* POSIX regcomp return error codes. (In the order listed in the standard.) */ - REG_BADPAT, /* Invalid pattern. */ - REG_ECOLLATE, /* Not implemented. */ - REG_ECTYPE, /* Invalid character class name. */ - REG_EESCAPE, /* Trailing backslash. */ - REG_ESUBREG, /* Invalid back reference. */ - REG_EBRACK, /* Unmatched left bracket. */ - REG_EPAREN, /* Parenthesis imbalance. */ - REG_EBRACE, /* Unmatched \{. */ - REG_BADBR, /* Invalid contents of \{\}. */ - REG_ERANGE, /* Invalid range end. */ - REG_ESPACE, /* Ran out of memory. */ - REG_BADRPT, /* No preceding re for repetition op. */ + _REG_BADPAT, /* Invalid pattern. */ + _REG_ECOLLATE, /* Invalid collating element. */ + _REG_ECTYPE, /* Invalid character class name. */ + _REG_EESCAPE, /* Trailing backslash. */ + _REG_ESUBREG, /* Invalid back reference. */ + _REG_EBRACK, /* Unmatched left bracket. */ + _REG_EPAREN, /* Parenthesis imbalance. */ + _REG_EBRACE, /* Unmatched \{. */ + _REG_BADBR, /* Invalid contents of \{\}. */ + _REG_ERANGE, /* Invalid range end. */ + _REG_ESPACE, /* Ran out of memory. */ + _REG_BADRPT, /* No preceding re for repetition op. */ /* Error codes we've added. */ - REG_EEND, /* Premature end. */ - REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */ - REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */ + _REG_EEND, /* Premature end. */ + _REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */ + _REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */ } reg_errcode_t; + +#ifdef _XOPEN_SOURCE +# define REG_ENOSYS _REG_ENOSYS +#endif +#define REG_NOERROR _REG_NOERROR +#define REG_NOMATCH _REG_NOMATCH +#define REG_BADPAT _REG_BADPAT +#define REG_ECOLLATE _REG_ECOLLATE +#define REG_ECTYPE _REG_ECTYPE +#define REG_EESCAPE _REG_EESCAPE +#define REG_ESUBREG _REG_ESUBREG +#define REG_EBRACK _REG_EBRACK +#define REG_EPAREN _REG_EPAREN +#define REG_EBRACE _REG_EBRACE +#define REG_BADBR _REG_BADBR +#define REG_ERANGE _REG_ERANGE +#define REG_ESPACE _REG_ESPACE +#define REG_BADRPT _REG_BADRPT +#define REG_EEND _REG_EEND +#define REG_ESIZE _REG_ESIZE +#define REG_ERPAREN _REG_ERPAREN +/* struct re_pattern_buffer normally uses member names like `buffer' + that POSIX does not allow. In POSIX mode these members have names + with leading `re_' (e.g., `re_buffer'). */ +#ifdef __USE_GNU_REGEX +# define _REG_RE_NAME(id) id +# define _REG_RM_NAME(id) id +#else +# define _REG_RE_NAME(id) re_##id +# define _REG_RM_NAME(id) rm_##id +#endif + +/* The user can specify the type of the re_translate member by + defining the macro RE_TRANSLATE_TYPE, which defaults to unsigned + char *. This pollutes the POSIX name space, so in POSIX mode just + use unsigned char *. */ +#ifdef __USE_GNU_REGEX +# ifndef RE_TRANSLATE_TYPE +# define RE_TRANSLATE_TYPE unsigned char * +# endif +# define REG_TRANSLATE_TYPE RE_TRANSLATE_TYPE +#else +# define REG_TRANSLATE_TYPE unsigned char * +#endif + /* This data structure represents a compiled pattern. Before calling the pattern compiler, the fields `buffer', `allocated', `fastmap', `translate', and `no_sub' can be set. After the pattern has been compiled, the `re_nsub' field is available. All other fields are private to the regex routines. */ -#ifndef RE_TRANSLATE_TYPE -# define RE_TRANSLATE_TYPE char * -#endif - struct re_pattern_buffer { -/* [[[begin pattern_buffer]]] */ - /* Space that holds the compiled pattern. It is declared as - `unsigned char *' because its elements are - sometimes used as array indexes. */ - unsigned char *buffer; - - /* Number of bytes to which `buffer' points. */ - unsigned long int allocated; - - /* Number of bytes actually used in `buffer'. */ - unsigned long int used; - - /* Syntax setting with which the pattern was compiled. */ - reg_syntax_t syntax; - - /* Pointer to a fastmap, if any, otherwise zero. re_search uses - the fastmap, if there is one, to skip over impossible - starting points for matches. */ - char *fastmap; - - /* Either a translate table to apply to all characters before - comparing them, or zero for no translation. The translation - is applied to a pattern when it is compiled and to a string - when it is matched. */ - RE_TRANSLATE_TYPE translate; + /* Space that holds the compiled pattern. It is declared as + `unsigned char *' because its elements are sometimes used as + array indexes. */ + unsigned char *_REG_RE_NAME (buffer); + + /* Number of bytes to which `buffer' points. */ + __re_long_size_t _REG_RE_NAME (allocated); + + /* Number of bytes actually used in `buffer'. */ + __re_long_size_t _REG_RE_NAME (used); + + /* Syntax setting with which the pattern was compiled. */ + reg_syntax_t _REG_RE_NAME (syntax); + + /* Pointer to a fastmap, if any, otherwise zero. re_search uses the + fastmap, if there is one, to skip over impossible starting points + for matches. */ + char *_REG_RE_NAME (fastmap); + + /* Either a translate table to apply to all characters before + comparing them, or zero for no translation. The translation is + applied to a pattern when it is compiled and to a string when it + is matched. */ + REG_TRANSLATE_TYPE _REG_RE_NAME (translate); - /* Number of subexpressions found by the compiler. */ + /* Number of subexpressions found by the compiler. */ size_t re_nsub; - /* Zero if this pattern cannot match the empty string, one else. - Well, in truth it's used only in `re_search_2', to see - whether or not we should use the fastmap, so we don't set - this absolutely perfectly; see `re_compile_fastmap' (the - `duplicate' case). */ - unsigned can_be_null : 1; - - /* If REGS_UNALLOCATED, allocate space in the `regs' structure - for `max (RE_NREGS, re_nsub + 1)' groups. - If REGS_REALLOCATE, reallocate space if necessary. - If REGS_FIXED, use what's there. */ -#define REGS_UNALLOCATED 0 -#define REGS_REALLOCATE 1 -#define REGS_FIXED 2 - unsigned regs_allocated : 2; - - /* Set to zero when `regex_compile' compiles a pattern; set to one - by `re_compile_fastmap' if it updates the fastmap. */ - unsigned fastmap_accurate : 1; - - /* If set, `re_match_2' does not return information about - subexpressions. */ - unsigned no_sub : 1; - - /* If set, a beginning-of-line anchor doesn't match at the - beginning of the string. */ - unsigned not_bol : 1; + /* Zero if this pattern cannot match the empty string, one else. + Well, in truth it's used only in `re_search_2', to see whether or + not we should use the fastmap, so we don't set this absolutely + perfectly; see `re_compile_fastmap' (the `duplicate' case). */ + unsigned int _REG_RE_NAME (can_be_null) : 1; + + /* If REGS_UNALLOCATED, allocate space in the `regs' structure + for `max (RE_NREGS, re_nsub + 1)' groups. + If REGS_REALLOCATE, reallocate space if necessary. + If REGS_FIXED, use what's there. */ +#ifdef __USE_GNU_REGEX +# define REGS_UNALLOCATED 0 +# define REGS_REALLOCATE 1 +# define REGS_FIXED 2 +#endif + unsigned int _REG_RE_NAME (regs_allocated) : 2; + + /* Set to zero when `regex_compile' compiles a pattern; set to one + by `re_compile_fastmap' if it updates the fastmap. */ + unsigned int _REG_RE_NAME (fastmap_accurate) : 1; + + /* If set, `re_match_2' does not return information about + subexpressions. */ + unsigned int _REG_RE_NAME (no_sub) : 1; + + /* If set, a beginning-of-line anchor doesn't match at the beginning + of the string. */ + unsigned int _REG_RE_NAME (not_bol) : 1; - /* Similarly for an end-of-line anchor. */ - unsigned not_eol : 1; + /* Similarly for an end-of-line anchor. */ + unsigned int _REG_RE_NAME (not_eol) : 1; - /* If true, an anchor at a newline matches. */ - unsigned newline_anchor : 1; + /* If true, an anchor at a newline matches. */ + unsigned int _REG_RE_NAME (newline_anchor) : 1; /* [[[end pattern_buffer]]] */ }; typedef struct re_pattern_buffer regex_t; -/* Type for byte offsets within the string. POSIX mandates this. */ -typedef int regoff_t; - - /* This is the structure we store register match data in. See regex.texinfo for a full description of what registers match. */ struct re_registers { - unsigned num_regs; - regoff_t *start; - regoff_t *end; + __re_size_t _REG_RM_NAME (num_regs); + regoff_t *_REG_RM_NAME (start); + regoff_t *_REG_RM_NAME (end); }; /* If `regs_allocated' is REGS_UNALLOCATED in the pattern buffer, `re_match_2' returns information about at least this many registers the first time a `regs' structure is passed. */ -#ifndef RE_NREGS +#if !defined RE_NREGS && defined __USE_GNU_REGEX # define RE_NREGS 30 #endif @@ -435,19 +549,19 @@ /* Sets the current default syntax to SYNTAX, and return the old syntax. You can also simply assign to the `re_syntax_options' variable. */ -extern reg_syntax_t re_set_syntax (reg_syntax_t syntax); +extern reg_syntax_t re_set_syntax (reg_syntax_t __syntax); /* Compile the regular expression PATTERN, with length LENGTH and syntax given by the global `re_syntax_options', into the buffer BUFFER. Return NULL if successful, and an error string if not. */ -extern const char *re_compile_pattern (const char *pattern, size_t length, - struct re_pattern_buffer *buffer); +extern const char *re_compile_pattern (const char *__pattern, size_t __length, + struct re_pattern_buffer *__buffer); /* Compile a fastmap for the compiled pattern in BUFFER; used to accelerate searches. Return 0 if successful and -2 if was an internal error. */ -extern int re_compile_fastmap (struct re_pattern_buffer *buffer); +extern int re_compile_fastmap (struct re_pattern_buffer *__buffer); /* Search in the string STRING (with length LENGTH) for the pattern @@ -455,29 +569,35 @@ characters. Return the starting position of the match, -1 for no match, or -2 for an internal error. Also return register information in REGS (if REGS and BUFFER->no_sub are nonzero). */ -extern int re_search (struct re_pattern_buffer *buffer, const char *string, - int length, int start, int range, - struct re_registers *regs); +extern regoff_t re_search (struct re_pattern_buffer *__buffer, + const char *__string, __re_idx_t __length, + __re_idx_t __start, regoff_t __range, + struct re_registers *__regs); /* Like `re_search', but search in the concatenation of STRING1 and STRING2. Also, stop searching at index START + STOP. */ -extern int re_search_2 (struct re_pattern_buffer *buffer, const char *string1, - int length1, const char *string2, int length2, - int start, int range, struct re_registers *regs, - int stop); +extern regoff_t re_search_2 (struct re_pattern_buffer *__buffer, + const char *__string1, __re_idx_t __length1, + const char *__string2, __re_idx_t __length2, + __re_idx_t __start, regoff_t __range, + struct re_registers *__regs, + __re_idx_t __stop); /* Like `re_search', but return how many characters in STRING the regexp in BUFFER matched, starting at position START. */ -extern int re_match (struct re_pattern_buffer *buffer, const char *string, - int length, int start, struct re_registers *regs); +extern regoff_t re_match (struct re_pattern_buffer *__buffer, + const char *__string, __re_idx_t __length, + __re_idx_t __start, struct re_registers *__regs); /* Relates to `re_match' as `re_search_2' relates to `re_search'. */ -extern int re_match_2 (struct re_pattern_buffer *buffer, const char *string1, - int length1, const char *string2, int length2, - int start, struct re_registers *regs, int stop); +extern regoff_t re_match_2 (struct re_pattern_buffer *__buffer, + const char *__string1, __re_idx_t __length1, + const char *__string2, __re_idx_t __length2, + __re_idx_t __start, struct re_registers *__regs, + __re_idx_t __stop); /* Set REGS to hold NUM_REGS registers, storing them in STARTS and @@ -492,9 +612,10 @@ Unless this function is called, the first search or match using PATTERN_BUFFER will allocate its own register data, without freeing the old data. */ -extern void re_set_registers (struct re_pattern_buffer *buffer, - struct re_registers *regs, unsigned num_regs, - regoff_t *starts, regoff_t *ends); +extern void re_set_registers (struct re_pattern_buffer *__buffer, + struct re_registers *__regs, + __re_size_t __num_regs, + regoff_t *__starts, regoff_t *__ends); #if defined _REGEX_RE_COMP || defined _LIBC # ifndef _CRAY @@ -505,37 +626,45 @@ #endif /* GCC 2.95 and later have "__restrict"; C99 compilers have - "restrict", and "configure" may have defined "restrict". */ -#ifndef __restrict -# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__)) -# if defined restrict || 199901L <= __STDC_VERSION__ -# define __restrict restrict -# else -# define __restrict -# endif + "restrict", and "configure" may have defined "restrict". + Other compilers use __restrict, __restrict__, and _Restrict, and + 'configure' might #define 'restrict' to those words, so pick a + different name. */ +#ifndef _Restrict_ +# if 199901L <= __STDC_VERSION__ +# define _Restrict_ restrict +# elif 2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__) +# define _Restrict_ __restrict +# else +# define _Restrict_ # endif #endif -/* gcc 3.1 and up support the [restrict] syntax. */ -#ifndef __restrict_arr -# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define __restrict_arr __restrict +/* gcc 3.1 and up support the [restrict] syntax. Don't trust + sys/cdefs.h's definition of __restrict_arr, though, as it + mishandles gcc -ansi -pedantic. */ +#ifndef _Restrict_arr_ +# if ((199901L <= __STDC_VERSION__ \ + || ((3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) \ + && !__STRICT_ANSI__)) \ + && !defined __GNUG__) +# define _Restrict_arr_ _Restrict_ # else -# define __restrict_arr +# define _Restrict_arr_ # endif #endif /* POSIX compatibility. */ -extern int regcomp (regex_t *__restrict __preg, - const char *__restrict __pattern, +extern int regcomp (regex_t *_Restrict_ __preg, + const char *_Restrict_ __pattern, int __cflags); -extern int regexec (const regex_t *__restrict __preg, - const char *__restrict __string, size_t __nmatch, - regmatch_t __pmatch[__restrict_arr], +extern int regexec (const regex_t *_Restrict_ __preg, + const char *_Restrict_ __string, size_t __nmatch, + regmatch_t __pmatch[_Restrict_arr_], int __eflags); -extern size_t regerror (int __errcode, const regex_t *__preg, - char *__errbuf, size_t __errbuf_size); +extern size_t regerror (int __errcode, const regex_t *_Restrict_ __preg, + char *_Restrict_ __errbuf, size_t __errbuf_size); extern void regfree (regex_t *__preg); @@ -545,11 +674,3 @@ #endif /* C++ */ #endif /* regex.h */ - -/* -Local variables: -make-backup-files: t -version-control: t -trim-versions-without-asking: nil -End: -*/ diff -Nru gettext-0.17/gettext-tools/libgrep/regex_internal.c gettext-0.18.1.1/gettext-tools/libgrep/regex_internal.c --- gettext-0.17/gettext-tools/libgrep/regex_internal.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regex_internal.c 2010-05-24 14:49:27.000000000 +0000 @@ -0,0 +1,1740 @@ +/* Extended regular expression matching and search library. + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free + Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Isamu Hasegawa . + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +static void re_string_construct_common (const char *str, Idx len, + re_string_t *pstr, + RE_TRANSLATE_TYPE trans, bool icase, + const re_dfa_t *dfa) internal_function; +static re_dfastate_t *create_ci_newstate (const re_dfa_t *dfa, + const re_node_set *nodes, + re_hashval_t hash) internal_function; +static re_dfastate_t *create_cd_newstate (const re_dfa_t *dfa, + const re_node_set *nodes, + unsigned int context, + re_hashval_t hash) internal_function; + +/* Functions for string operation. */ + +/* This function allocate the buffers. It is necessary to call + re_string_reconstruct before using the object. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_string_allocate (re_string_t *pstr, const char *str, Idx len, Idx init_len, + RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) +{ + reg_errcode_t ret; + Idx init_buf_len; + + /* Ensure at least one character fits into the buffers. */ + if (init_len < dfa->mb_cur_max) + init_len = dfa->mb_cur_max; + init_buf_len = (len + 1 < init_len) ? len + 1: init_len; + re_string_construct_common (str, len, pstr, trans, icase, dfa); + + ret = re_string_realloc_buffers (pstr, init_buf_len); + if (BE (ret != REG_NOERROR, 0)) + return ret; + + pstr->word_char = dfa->word_char; + pstr->word_ops_used = dfa->word_ops_used; + pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; + pstr->valid_len = (pstr->mbs_allocated || dfa->mb_cur_max > 1) ? 0 : len; + pstr->valid_raw_len = pstr->valid_len; + return REG_NOERROR; +} + +/* This function allocate the buffers, and initialize them. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_string_construct (re_string_t *pstr, const char *str, Idx len, + RE_TRANSLATE_TYPE trans, bool icase, const re_dfa_t *dfa) +{ + reg_errcode_t ret; + memset (pstr, '\0', sizeof (re_string_t)); + re_string_construct_common (str, len, pstr, trans, icase, dfa); + + if (len > 0) + { + ret = re_string_realloc_buffers (pstr, len + 1); + if (BE (ret != REG_NOERROR, 0)) + return ret; + } + pstr->mbs = pstr->mbs_allocated ? pstr->mbs : (unsigned char *) str; + + if (icase) + { +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + { + while (1) + { + ret = build_wcs_upper_buffer (pstr); + if (BE (ret != REG_NOERROR, 0)) + return ret; + if (pstr->valid_raw_len >= len) + break; + if (pstr->bufs_len > pstr->valid_len + dfa->mb_cur_max) + break; + ret = re_string_realloc_buffers (pstr, pstr->bufs_len * 2); + if (BE (ret != REG_NOERROR, 0)) + return ret; + } + } + else +#endif /* RE_ENABLE_I18N */ + build_upper_buffer (pstr); + } + else + { +#ifdef RE_ENABLE_I18N + if (dfa->mb_cur_max > 1) + build_wcs_buffer (pstr); + else +#endif /* RE_ENABLE_I18N */ + { + if (trans != NULL) + re_string_translate_buffer (pstr); + else + { + pstr->valid_len = pstr->bufs_len; + pstr->valid_raw_len = pstr->bufs_len; + } + } + } + + return REG_NOERROR; +} + +/* Helper functions for re_string_allocate, and re_string_construct. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_string_realloc_buffers (re_string_t *pstr, Idx new_buf_len) +{ +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + { + wint_t *new_wcs; + + /* Avoid overflow. */ + size_t max_object_size = MAX (sizeof (wint_t), sizeof (Idx)); + if (BE (SIZE_MAX / max_object_size < new_buf_len, 0)) + return REG_ESPACE; + + new_wcs = re_realloc (pstr->wcs, wint_t, new_buf_len); + if (BE (new_wcs == NULL, 0)) + return REG_ESPACE; + pstr->wcs = new_wcs; + if (pstr->offsets != NULL) + { + Idx *new_offsets = re_realloc (pstr->offsets, Idx, new_buf_len); + if (BE (new_offsets == NULL, 0)) + return REG_ESPACE; + pstr->offsets = new_offsets; + } + } +#endif /* RE_ENABLE_I18N */ + if (pstr->mbs_allocated) + { + unsigned char *new_mbs = re_realloc (pstr->mbs, unsigned char, + new_buf_len); + if (BE (new_mbs == NULL, 0)) + return REG_ESPACE; + pstr->mbs = new_mbs; + } + pstr->bufs_len = new_buf_len; + return REG_NOERROR; +} + + +static void +internal_function +re_string_construct_common (const char *str, Idx len, re_string_t *pstr, + RE_TRANSLATE_TYPE trans, bool icase, + const re_dfa_t *dfa) +{ + pstr->raw_mbs = (const unsigned char *) str; + pstr->len = len; + pstr->raw_len = len; + pstr->trans = trans; + pstr->icase = icase; + pstr->mbs_allocated = (trans != NULL || icase); + pstr->mb_cur_max = dfa->mb_cur_max; + pstr->is_utf8 = dfa->is_utf8; + pstr->map_notascii = dfa->map_notascii; + pstr->stop = pstr->len; + pstr->raw_stop = pstr->stop; +} + +#ifdef RE_ENABLE_I18N + +/* Build wide character buffer PSTR->WCS. + If the byte sequence of the string are: + (0), (1), (0), (1), + Then wide character buffer will be: + , WEOF , , WEOF , + We use WEOF for padding, they indicate that the position isn't + a first byte of a multibyte character. + + Note that this function assumes PSTR->VALID_LEN elements are already + built and starts from PSTR->VALID_LEN. */ + +static void +internal_function +build_wcs_buffer (re_string_t *pstr) +{ +#ifdef _LIBC + unsigned char buf[MB_LEN_MAX]; + assert (MB_LEN_MAX >= pstr->mb_cur_max); +#else + unsigned char buf[64]; +#endif + mbstate_t prev_st; + Idx byte_idx, end_idx, remain_len; + size_t mbclen; + + /* Build the buffers from pstr->valid_len to either pstr->len or + pstr->bufs_len. */ + end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; + for (byte_idx = pstr->valid_len; byte_idx < end_idx;) + { + wchar_t wc; + const char *p; + + remain_len = end_idx - byte_idx; + prev_st = pstr->cur_state; + /* Apply the translation if we need. */ + if (BE (pstr->trans != NULL, 0)) + { + int i, ch; + + for (i = 0; i < pstr->mb_cur_max && i < remain_len; ++i) + { + ch = pstr->raw_mbs [pstr->raw_mbs_idx + byte_idx + i]; + buf[i] = pstr->mbs[byte_idx + i] = pstr->trans[ch]; + } + p = (const char *) buf; + } + else + p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx; + mbclen = __mbrtowc (&wc, p, remain_len, &pstr->cur_state); + if (BE (mbclen == (size_t) -2, 0)) + { + /* The buffer doesn't have enough space, finish to build. */ + pstr->cur_state = prev_st; + break; + } + else if (BE (mbclen == (size_t) -1 || mbclen == 0, 0)) + { + /* We treat these cases as a singlebyte character. */ + mbclen = 1; + wc = (wchar_t) pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]; + if (BE (pstr->trans != NULL, 0)) + wc = pstr->trans[wc]; + pstr->cur_state = prev_st; + } + + /* Write wide character and padding. */ + pstr->wcs[byte_idx++] = wc; + /* Write paddings. */ + for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) + pstr->wcs[byte_idx++] = WEOF; + } + pstr->valid_len = byte_idx; + pstr->valid_raw_len = byte_idx; +} + +/* Build wide character buffer PSTR->WCS like build_wcs_buffer, + but for REG_ICASE. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +build_wcs_upper_buffer (re_string_t *pstr) +{ + mbstate_t prev_st; + Idx src_idx, byte_idx, end_idx, remain_len; + size_t mbclen; +#ifdef _LIBC + char buf[MB_LEN_MAX]; + assert (MB_LEN_MAX >= pstr->mb_cur_max); +#else + char buf[64]; +#endif + + byte_idx = pstr->valid_len; + end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; + + /* The following optimization assumes that ASCII characters can be + mapped to wide characters with a simple cast. */ + if (! pstr->map_notascii && pstr->trans == NULL && !pstr->offsets_needed) + { + while (byte_idx < end_idx) + { + wchar_t wc; + + if (isascii (pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]) + && mbsinit (&pstr->cur_state)) + { + /* In case of a singlebyte character. */ + pstr->mbs[byte_idx] + = toupper (pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]); + /* The next step uses the assumption that wchar_t is encoded + ASCII-safe: all ASCII values can be converted like this. */ + pstr->wcs[byte_idx] = (wchar_t) pstr->mbs[byte_idx]; + ++byte_idx; + continue; + } + + remain_len = end_idx - byte_idx; + prev_st = pstr->cur_state; + mbclen = __mbrtowc (&wc, + ((const char *) pstr->raw_mbs + pstr->raw_mbs_idx + + byte_idx), remain_len, &pstr->cur_state); + if (BE (mbclen < (size_t) -2, 1)) + { + wchar_t wcu = wc; + if (iswlower (wc)) + { + size_t mbcdlen; + + wcu = towupper (wc); + mbcdlen = wcrtomb (buf, wcu, &prev_st); + if (BE (mbclen == mbcdlen, 1)) + memcpy (pstr->mbs + byte_idx, buf, mbclen); + else + { + src_idx = byte_idx; + goto offsets_needed; + } + } + else + memcpy (pstr->mbs + byte_idx, + pstr->raw_mbs + pstr->raw_mbs_idx + byte_idx, mbclen); + pstr->wcs[byte_idx++] = wcu; + /* Write paddings. */ + for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) + pstr->wcs[byte_idx++] = WEOF; + } + else if (mbclen == (size_t) -1 || mbclen == 0) + { + /* It is an invalid character or '\0'. Just use the byte. */ + int ch = pstr->raw_mbs[pstr->raw_mbs_idx + byte_idx]; + pstr->mbs[byte_idx] = ch; + /* And also cast it to wide char. */ + pstr->wcs[byte_idx++] = (wchar_t) ch; + if (BE (mbclen == (size_t) -1, 0)) + pstr->cur_state = prev_st; + } + else + { + /* The buffer doesn't have enough space, finish to build. */ + pstr->cur_state = prev_st; + break; + } + } + pstr->valid_len = byte_idx; + pstr->valid_raw_len = byte_idx; + return REG_NOERROR; + } + else + for (src_idx = pstr->valid_raw_len; byte_idx < end_idx;) + { + wchar_t wc; + const char *p; + offsets_needed: + remain_len = end_idx - byte_idx; + prev_st = pstr->cur_state; + if (BE (pstr->trans != NULL, 0)) + { + int i, ch; + + for (i = 0; i < pstr->mb_cur_max && i < remain_len; ++i) + { + ch = pstr->raw_mbs [pstr->raw_mbs_idx + src_idx + i]; + buf[i] = pstr->trans[ch]; + } + p = (const char *) buf; + } + else + p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + src_idx; + mbclen = __mbrtowc (&wc, p, remain_len, &pstr->cur_state); + if (BE (mbclen < (size_t) -2, 1)) + { + wchar_t wcu = wc; + if (iswlower (wc)) + { + size_t mbcdlen; + + wcu = towupper (wc); + mbcdlen = wcrtomb ((char *) buf, wcu, &prev_st); + if (BE (mbclen == mbcdlen, 1)) + memcpy (pstr->mbs + byte_idx, buf, mbclen); + else if (mbcdlen != (size_t) -1) + { + size_t i; + + if (byte_idx + mbcdlen > pstr->bufs_len) + { + pstr->cur_state = prev_st; + break; + } + + if (pstr->offsets == NULL) + { + pstr->offsets = re_malloc (Idx, pstr->bufs_len); + + if (pstr->offsets == NULL) + return REG_ESPACE; + } + if (!pstr->offsets_needed) + { + for (i = 0; i < (size_t) byte_idx; ++i) + pstr->offsets[i] = i; + pstr->offsets_needed = 1; + } + + memcpy (pstr->mbs + byte_idx, buf, mbcdlen); + pstr->wcs[byte_idx] = wcu; + pstr->offsets[byte_idx] = src_idx; + for (i = 1; i < mbcdlen; ++i) + { + pstr->offsets[byte_idx + i] + = src_idx + (i < mbclen ? i : mbclen - 1); + pstr->wcs[byte_idx + i] = WEOF; + } + pstr->len += mbcdlen - mbclen; + if (pstr->raw_stop > src_idx) + pstr->stop += mbcdlen - mbclen; + end_idx = (pstr->bufs_len > pstr->len) + ? pstr->len : pstr->bufs_len; + byte_idx += mbcdlen; + src_idx += mbclen; + continue; + } + else + memcpy (pstr->mbs + byte_idx, p, mbclen); + } + else + memcpy (pstr->mbs + byte_idx, p, mbclen); + + if (BE (pstr->offsets_needed != 0, 0)) + { + size_t i; + for (i = 0; i < mbclen; ++i) + pstr->offsets[byte_idx + i] = src_idx + i; + } + src_idx += mbclen; + + pstr->wcs[byte_idx++] = wcu; + /* Write paddings. */ + for (remain_len = byte_idx + mbclen - 1; byte_idx < remain_len ;) + pstr->wcs[byte_idx++] = WEOF; + } + else if (mbclen == (size_t) -1 || mbclen == 0) + { + /* It is an invalid character or '\0'. Just use the byte. */ + int ch = pstr->raw_mbs[pstr->raw_mbs_idx + src_idx]; + + if (BE (pstr->trans != NULL, 0)) + ch = pstr->trans [ch]; + pstr->mbs[byte_idx] = ch; + + if (BE (pstr->offsets_needed != 0, 0)) + pstr->offsets[byte_idx] = src_idx; + ++src_idx; + + /* And also cast it to wide char. */ + pstr->wcs[byte_idx++] = (wchar_t) ch; + if (BE (mbclen == (size_t) -1, 0)) + pstr->cur_state = prev_st; + } + else + { + /* The buffer doesn't have enough space, finish to build. */ + pstr->cur_state = prev_st; + break; + } + } + pstr->valid_len = byte_idx; + pstr->valid_raw_len = src_idx; + return REG_NOERROR; +} + +/* Skip characters until the index becomes greater than NEW_RAW_IDX. + Return the index. */ + +static Idx +internal_function +re_string_skip_chars (re_string_t *pstr, Idx new_raw_idx, wint_t *last_wc) +{ + mbstate_t prev_st; + Idx rawbuf_idx; + size_t mbclen; + wint_t wc = WEOF; + + /* Skip the characters which are not necessary to check. */ + for (rawbuf_idx = pstr->raw_mbs_idx + pstr->valid_raw_len; + rawbuf_idx < new_raw_idx;) + { + wchar_t wc2; + Idx remain_len; + remain_len = pstr->len - rawbuf_idx; + prev_st = pstr->cur_state; + mbclen = __mbrtowc (&wc2, (const char *) pstr->raw_mbs + rawbuf_idx, + remain_len, &pstr->cur_state); + if (BE (mbclen == (size_t) -2 || mbclen == (size_t) -1 || mbclen == 0, 0)) + { + /* We treat these cases as a single byte character. */ + if (mbclen == 0 || remain_len == 0) + wc = L'\0'; + else + wc = *(unsigned char *) (pstr->raw_mbs + rawbuf_idx); + mbclen = 1; + pstr->cur_state = prev_st; + } + else + wc = wc2; + /* Then proceed the next character. */ + rawbuf_idx += mbclen; + } + *last_wc = wc; + return rawbuf_idx; +} +#endif /* RE_ENABLE_I18N */ + +/* Build the buffer PSTR->MBS, and apply the translation if we need. + This function is used in case of REG_ICASE. */ + +static void +internal_function +build_upper_buffer (re_string_t *pstr) +{ + Idx char_idx, end_idx; + end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; + + for (char_idx = pstr->valid_len; char_idx < end_idx; ++char_idx) + { + int ch = pstr->raw_mbs[pstr->raw_mbs_idx + char_idx]; + if (BE (pstr->trans != NULL, 0)) + ch = pstr->trans[ch]; + if (islower (ch)) + pstr->mbs[char_idx] = toupper (ch); + else + pstr->mbs[char_idx] = ch; + } + pstr->valid_len = char_idx; + pstr->valid_raw_len = char_idx; +} + +/* Apply TRANS to the buffer in PSTR. */ + +static void +internal_function +re_string_translate_buffer (re_string_t *pstr) +{ + Idx buf_idx, end_idx; + end_idx = (pstr->bufs_len > pstr->len) ? pstr->len : pstr->bufs_len; + + for (buf_idx = pstr->valid_len; buf_idx < end_idx; ++buf_idx) + { + int ch = pstr->raw_mbs[pstr->raw_mbs_idx + buf_idx]; + pstr->mbs[buf_idx] = pstr->trans[ch]; + } + + pstr->valid_len = buf_idx; + pstr->valid_raw_len = buf_idx; +} + +/* This function re-construct the buffers. + Concretely, convert to wide character in case of pstr->mb_cur_max > 1, + convert to upper case in case of REG_ICASE, apply translation. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags) +{ + Idx offset; + + if (BE (pstr->raw_mbs_idx <= idx, 0)) + offset = idx - pstr->raw_mbs_idx; + else + { + /* Reset buffer. */ +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + memset (&pstr->cur_state, '\0', sizeof (mbstate_t)); +#endif /* RE_ENABLE_I18N */ + pstr->len = pstr->raw_len; + pstr->stop = pstr->raw_stop; + pstr->valid_len = 0; + pstr->raw_mbs_idx = 0; + pstr->valid_raw_len = 0; + pstr->offsets_needed = 0; + pstr->tip_context = ((eflags & REG_NOTBOL) ? CONTEXT_BEGBUF + : CONTEXT_NEWLINE | CONTEXT_BEGBUF); + if (!pstr->mbs_allocated) + pstr->mbs = (unsigned char *) pstr->raw_mbs; + offset = idx; + } + + if (BE (offset != 0, 1)) + { + /* Should the already checked characters be kept? */ + if (BE (offset < pstr->valid_raw_len, 1)) + { + /* Yes, move them to the front of the buffer. */ +#ifdef RE_ENABLE_I18N + if (BE (pstr->offsets_needed, 0)) + { + Idx low = 0, high = pstr->valid_len, mid; + do + { + mid = (high + low) / 2; + if (pstr->offsets[mid] > offset) + high = mid; + else if (pstr->offsets[mid] < offset) + low = mid + 1; + else + break; + } + while (low < high); + if (pstr->offsets[mid] < offset) + ++mid; + pstr->tip_context = re_string_context_at (pstr, mid - 1, + eflags); + /* This can be quite complicated, so handle specially + only the common and easy case where the character with + different length representation of lower and upper + case is present at or after offset. */ + if (pstr->valid_len > offset + && mid == offset && pstr->offsets[mid] == offset) + { + memmove (pstr->wcs, pstr->wcs + offset, + (pstr->valid_len - offset) * sizeof (wint_t)); + memmove (pstr->mbs, pstr->mbs + offset, pstr->valid_len - offset); + pstr->valid_len -= offset; + pstr->valid_raw_len -= offset; + for (low = 0; low < pstr->valid_len; low++) + pstr->offsets[low] = pstr->offsets[low + offset] - offset; + } + else + { + /* Otherwise, just find out how long the partial multibyte + character at offset is and fill it with WEOF/255. */ + pstr->len = pstr->raw_len - idx + offset; + pstr->stop = pstr->raw_stop - idx + offset; + pstr->offsets_needed = 0; + while (mid > 0 && pstr->offsets[mid - 1] == offset) + --mid; + while (mid < pstr->valid_len) + if (pstr->wcs[mid] != WEOF) + break; + else + ++mid; + if (mid == pstr->valid_len) + pstr->valid_len = 0; + else + { + pstr->valid_len = pstr->offsets[mid] - offset; + if (pstr->valid_len) + { + for (low = 0; low < pstr->valid_len; ++low) + pstr->wcs[low] = WEOF; + memset (pstr->mbs, 255, pstr->valid_len); + } + } + pstr->valid_raw_len = pstr->valid_len; + } + } + else +#endif + { + pstr->tip_context = re_string_context_at (pstr, offset - 1, + eflags); +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + memmove (pstr->wcs, pstr->wcs + offset, + (pstr->valid_len - offset) * sizeof (wint_t)); +#endif /* RE_ENABLE_I18N */ + if (BE (pstr->mbs_allocated, 0)) + memmove (pstr->mbs, pstr->mbs + offset, + pstr->valid_len - offset); + pstr->valid_len -= offset; + pstr->valid_raw_len -= offset; +#if DEBUG + assert (pstr->valid_len > 0); +#endif + } + } + else + { +#ifdef RE_ENABLE_I18N + /* No, skip all characters until IDX. */ + Idx prev_valid_len = pstr->valid_len; + + if (BE (pstr->offsets_needed, 0)) + { + pstr->len = pstr->raw_len - idx + offset; + pstr->stop = pstr->raw_stop - idx + offset; + pstr->offsets_needed = 0; + } +#endif + pstr->valid_len = 0; +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + { + Idx wcs_idx; + wint_t wc = WEOF; + + if (pstr->is_utf8) + { + const unsigned char *raw, *p, *end; + + /* Special case UTF-8. Multi-byte chars start with any + byte other than 0x80 - 0xbf. */ + raw = pstr->raw_mbs + pstr->raw_mbs_idx; + end = raw + (offset - pstr->mb_cur_max); + if (end < pstr->raw_mbs) + end = pstr->raw_mbs; + p = raw + offset - 1; +#ifdef _LIBC + /* We know the wchar_t encoding is UCS4, so for the simple + case, ASCII characters, skip the conversion step. */ + if (isascii (*p) && BE (pstr->trans == NULL, 1)) + { + memset (&pstr->cur_state, '\0', sizeof (mbstate_t)); + /* pstr->valid_len = 0; */ + wc = (wchar_t) *p; + } + else +#endif + for (; p >= end; --p) + if ((*p & 0xc0) != 0x80) + { + mbstate_t cur_state; + wchar_t wc2; + Idx mlen = raw + pstr->len - p; + unsigned char buf[6]; + size_t mbclen; + + if (BE (pstr->trans != NULL, 0)) + { + int i = mlen < 6 ? mlen : 6; + while (--i >= 0) + buf[i] = pstr->trans[p[i]]; + } + /* XXX Don't use mbrtowc, we know which conversion + to use (UTF-8 -> UCS4). */ + memset (&cur_state, 0, sizeof (cur_state)); + mbclen = __mbrtowc (&wc2, (const char *) p, mlen, + &cur_state); + if (raw + offset - p <= mbclen + && mbclen < (size_t) -2) + { + memset (&pstr->cur_state, '\0', + sizeof (mbstate_t)); + pstr->valid_len = mbclen - (raw + offset - p); + wc = wc2; + } + break; + } + } + + if (wc == WEOF) + pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx; + if (wc == WEOF) + pstr->tip_context + = re_string_context_at (pstr, prev_valid_len - 1, eflags); + else + pstr->tip_context = ((BE (pstr->word_ops_used != 0, 0) + && IS_WIDE_WORD_CHAR (wc)) + ? CONTEXT_WORD + : ((IS_WIDE_NEWLINE (wc) + && pstr->newline_anchor) + ? CONTEXT_NEWLINE : 0)); + if (BE (pstr->valid_len, 0)) + { + for (wcs_idx = 0; wcs_idx < pstr->valid_len; ++wcs_idx) + pstr->wcs[wcs_idx] = WEOF; + if (pstr->mbs_allocated) + memset (pstr->mbs, 255, pstr->valid_len); + } + pstr->valid_raw_len = pstr->valid_len; + } + else +#endif /* RE_ENABLE_I18N */ + { + int c = pstr->raw_mbs[pstr->raw_mbs_idx + offset - 1]; + pstr->valid_raw_len = 0; + if (pstr->trans) + c = pstr->trans[c]; + pstr->tip_context = (bitset_contain (pstr->word_char, c) + ? CONTEXT_WORD + : ((IS_NEWLINE (c) && pstr->newline_anchor) + ? CONTEXT_NEWLINE : 0)); + } + } + if (!BE (pstr->mbs_allocated, 0)) + pstr->mbs += offset; + } + pstr->raw_mbs_idx = idx; + pstr->len -= offset; + pstr->stop -= offset; + + /* Then build the buffers. */ +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1) + { + if (pstr->icase) + { + reg_errcode_t ret = build_wcs_upper_buffer (pstr); + if (BE (ret != REG_NOERROR, 0)) + return ret; + } + else + build_wcs_buffer (pstr); + } + else +#endif /* RE_ENABLE_I18N */ + if (BE (pstr->mbs_allocated, 0)) + { + if (pstr->icase) + build_upper_buffer (pstr); + else if (pstr->trans != NULL) + re_string_translate_buffer (pstr); + } + else + pstr->valid_len = pstr->len; + + pstr->cur_idx = 0; + return REG_NOERROR; +} + +static unsigned char +internal_function __attribute ((pure)) +re_string_peek_byte_case (const re_string_t *pstr, Idx idx) +{ + int ch; + Idx off; + + /* Handle the common (easiest) cases first. */ + if (BE (!pstr->mbs_allocated, 1)) + return re_string_peek_byte (pstr, idx); + +#ifdef RE_ENABLE_I18N + if (pstr->mb_cur_max > 1 + && ! re_string_is_single_byte_char (pstr, pstr->cur_idx + idx)) + return re_string_peek_byte (pstr, idx); +#endif + + off = pstr->cur_idx + idx; +#ifdef RE_ENABLE_I18N + if (pstr->offsets_needed) + off = pstr->offsets[off]; +#endif + + ch = pstr->raw_mbs[pstr->raw_mbs_idx + off]; + +#ifdef RE_ENABLE_I18N + /* Ensure that e.g. for tr_TR.UTF-8 BACKSLASH DOTLESS SMALL LETTER I + this function returns CAPITAL LETTER I instead of first byte of + DOTLESS SMALL LETTER I. The latter would confuse the parser, + since peek_byte_case doesn't advance cur_idx in any way. */ + if (pstr->offsets_needed && !isascii (ch)) + return re_string_peek_byte (pstr, idx); +#endif + + return ch; +} + +static unsigned char +internal_function __attribute ((pure)) +re_string_fetch_byte_case (re_string_t *pstr) +{ + if (BE (!pstr->mbs_allocated, 1)) + return re_string_fetch_byte (pstr); + +#ifdef RE_ENABLE_I18N + if (pstr->offsets_needed) + { + Idx off; + int ch; + + /* For tr_TR.UTF-8 [[:islower:]] there is + [[: CAPITAL LETTER I WITH DOT lower:]] in mbs. Skip + in that case the whole multi-byte character and return + the original letter. On the other side, with + [[: DOTLESS SMALL LETTER I return [[:I, as doing + anything else would complicate things too much. */ + + if (!re_string_first_byte (pstr, pstr->cur_idx)) + return re_string_fetch_byte (pstr); + + off = pstr->offsets[pstr->cur_idx]; + ch = pstr->raw_mbs[pstr->raw_mbs_idx + off]; + + if (! isascii (ch)) + return re_string_fetch_byte (pstr); + + re_string_skip_bytes (pstr, + re_string_char_size_at (pstr, pstr->cur_idx)); + return ch; + } +#endif + + return pstr->raw_mbs[pstr->raw_mbs_idx + pstr->cur_idx++]; +} + +static void +internal_function +re_string_destruct (re_string_t *pstr) +{ +#ifdef RE_ENABLE_I18N + re_free (pstr->wcs); + re_free (pstr->offsets); +#endif /* RE_ENABLE_I18N */ + if (pstr->mbs_allocated) + re_free (pstr->mbs); +} + +/* Return the context at IDX in INPUT. */ + +static unsigned int +internal_function +re_string_context_at (const re_string_t *input, Idx idx, int eflags) +{ + int c; + if (BE (! REG_VALID_INDEX (idx), 0)) + /* In this case, we use the value stored in input->tip_context, + since we can't know the character in input->mbs[-1] here. */ + return input->tip_context; + if (BE (idx == input->len, 0)) + return ((eflags & REG_NOTEOL) ? CONTEXT_ENDBUF + : CONTEXT_NEWLINE | CONTEXT_ENDBUF); +#ifdef RE_ENABLE_I18N + if (input->mb_cur_max > 1) + { + wint_t wc; + Idx wc_idx = idx; + while(input->wcs[wc_idx] == WEOF) + { +#ifdef DEBUG + /* It must not happen. */ + assert (REG_VALID_INDEX (wc_idx)); +#endif + --wc_idx; + if (! REG_VALID_INDEX (wc_idx)) + return input->tip_context; + } + wc = input->wcs[wc_idx]; + if (BE (input->word_ops_used != 0, 0) && IS_WIDE_WORD_CHAR (wc)) + return CONTEXT_WORD; + return (IS_WIDE_NEWLINE (wc) && input->newline_anchor + ? CONTEXT_NEWLINE : 0); + } + else +#endif + { + c = re_string_byte_at (input, idx); + if (bitset_contain (input->word_char, c)) + return CONTEXT_WORD; + return IS_NEWLINE (c) && input->newline_anchor ? CONTEXT_NEWLINE : 0; + } +} + +/* Functions for set operation. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_alloc (re_node_set *set, Idx size) +{ + set->alloc = size; + set->nelem = 0; + set->elems = re_malloc (Idx, size); + if (BE (set->elems == NULL, 0)) + return REG_ESPACE; + return REG_NOERROR; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_init_1 (re_node_set *set, Idx elem) +{ + set->alloc = 1; + set->nelem = 1; + set->elems = re_malloc (Idx, 1); + if (BE (set->elems == NULL, 0)) + { + set->alloc = set->nelem = 0; + return REG_ESPACE; + } + set->elems[0] = elem; + return REG_NOERROR; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_init_2 (re_node_set *set, Idx elem1, Idx elem2) +{ + set->alloc = 2; + set->elems = re_malloc (Idx, 2); + if (BE (set->elems == NULL, 0)) + return REG_ESPACE; + if (elem1 == elem2) + { + set->nelem = 1; + set->elems[0] = elem1; + } + else + { + set->nelem = 2; + if (elem1 < elem2) + { + set->elems[0] = elem1; + set->elems[1] = elem2; + } + else + { + set->elems[0] = elem2; + set->elems[1] = elem1; + } + } + return REG_NOERROR; +} + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_init_copy (re_node_set *dest, const re_node_set *src) +{ + dest->nelem = src->nelem; + if (src->nelem > 0) + { + dest->alloc = dest->nelem; + dest->elems = re_malloc (Idx, dest->alloc); + if (BE (dest->elems == NULL, 0)) + { + dest->alloc = dest->nelem = 0; + return REG_ESPACE; + } + memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx)); + } + else + re_node_set_init_empty (dest); + return REG_NOERROR; +} + +/* Calculate the intersection of the sets SRC1 and SRC2. And merge it to + DEST. Return value indicate the error code or REG_NOERROR if succeeded. + Note: We assume dest->elems is NULL, when dest->alloc is 0. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_add_intersect (re_node_set *dest, const re_node_set *src1, + const re_node_set *src2) +{ + Idx i1, i2, is, id, delta, sbase; + if (src1->nelem == 0 || src2->nelem == 0) + return REG_NOERROR; + + /* We need dest->nelem + 2 * elems_in_intersection; this is a + conservative estimate. */ + if (src1->nelem + src2->nelem + dest->nelem > dest->alloc) + { + Idx new_alloc = src1->nelem + src2->nelem + dest->alloc; + Idx *new_elems = re_realloc (dest->elems, Idx, new_alloc); + if (BE (new_elems == NULL, 0)) + return REG_ESPACE; + dest->elems = new_elems; + dest->alloc = new_alloc; + } + + /* Find the items in the intersection of SRC1 and SRC2, and copy + into the top of DEST those that are not already in DEST itself. */ + sbase = dest->nelem + src1->nelem + src2->nelem; + i1 = src1->nelem - 1; + i2 = src2->nelem - 1; + id = dest->nelem - 1; + for (;;) + { + if (src1->elems[i1] == src2->elems[i2]) + { + /* Try to find the item in DEST. Maybe we could binary search? */ + while (REG_VALID_INDEX (id) && dest->elems[id] > src1->elems[i1]) + --id; + + if (! REG_VALID_INDEX (id) || dest->elems[id] != src1->elems[i1]) + dest->elems[--sbase] = src1->elems[i1]; + + if (! REG_VALID_INDEX (--i1) || ! REG_VALID_INDEX (--i2)) + break; + } + + /* Lower the highest of the two items. */ + else if (src1->elems[i1] < src2->elems[i2]) + { + if (! REG_VALID_INDEX (--i2)) + break; + } + else + { + if (! REG_VALID_INDEX (--i1)) + break; + } + } + + id = dest->nelem - 1; + is = dest->nelem + src1->nelem + src2->nelem - 1; + delta = is - sbase + 1; + + /* Now copy. When DELTA becomes zero, the remaining + DEST elements are already in place; this is more or + less the same loop that is in re_node_set_merge. */ + dest->nelem += delta; + if (delta > 0 && REG_VALID_INDEX (id)) + for (;;) + { + if (dest->elems[is] > dest->elems[id]) + { + /* Copy from the top. */ + dest->elems[id + delta--] = dest->elems[is--]; + if (delta == 0) + break; + } + else + { + /* Slide from the bottom. */ + dest->elems[id + delta] = dest->elems[id]; + if (! REG_VALID_INDEX (--id)) + break; + } + } + + /* Copy remaining SRC elements. */ + memcpy (dest->elems, dest->elems + sbase, delta * sizeof (Idx)); + + return REG_NOERROR; +} + +/* Calculate the union set of the sets SRC1 and SRC2. And store it to + DEST. Return value indicate the error code or REG_NOERROR if succeeded. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_init_union (re_node_set *dest, const re_node_set *src1, + const re_node_set *src2) +{ + Idx i1, i2, id; + if (src1 != NULL && src1->nelem > 0 && src2 != NULL && src2->nelem > 0) + { + dest->alloc = src1->nelem + src2->nelem; + dest->elems = re_malloc (Idx, dest->alloc); + if (BE (dest->elems == NULL, 0)) + return REG_ESPACE; + } + else + { + if (src1 != NULL && src1->nelem > 0) + return re_node_set_init_copy (dest, src1); + else if (src2 != NULL && src2->nelem > 0) + return re_node_set_init_copy (dest, src2); + else + re_node_set_init_empty (dest); + return REG_NOERROR; + } + for (i1 = i2 = id = 0 ; i1 < src1->nelem && i2 < src2->nelem ;) + { + if (src1->elems[i1] > src2->elems[i2]) + { + dest->elems[id++] = src2->elems[i2++]; + continue; + } + if (src1->elems[i1] == src2->elems[i2]) + ++i2; + dest->elems[id++] = src1->elems[i1++]; + } + if (i1 < src1->nelem) + { + memcpy (dest->elems + id, src1->elems + i1, + (src1->nelem - i1) * sizeof (Idx)); + id += src1->nelem - i1; + } + else if (i2 < src2->nelem) + { + memcpy (dest->elems + id, src2->elems + i2, + (src2->nelem - i2) * sizeof (Idx)); + id += src2->nelem - i2; + } + dest->nelem = id; + return REG_NOERROR; +} + +/* Calculate the union set of the sets DEST and SRC. And store it to + DEST. Return value indicate the error code or REG_NOERROR if succeeded. */ + +static reg_errcode_t +internal_function __attribute_warn_unused_result__ +re_node_set_merge (re_node_set *dest, const re_node_set *src) +{ + Idx is, id, sbase, delta; + if (src == NULL || src->nelem == 0) + return REG_NOERROR; + if (dest->alloc < 2 * src->nelem + dest->nelem) + { + Idx new_alloc = 2 * (src->nelem + dest->alloc); + Idx *new_buffer = re_realloc (dest->elems, Idx, new_alloc); + if (BE (new_buffer == NULL, 0)) + return REG_ESPACE; + dest->elems = new_buffer; + dest->alloc = new_alloc; + } + + if (BE (dest->nelem == 0, 0)) + { + dest->nelem = src->nelem; + memcpy (dest->elems, src->elems, src->nelem * sizeof (Idx)); + return REG_NOERROR; + } + + /* Copy into the top of DEST the items of SRC that are not + found in DEST. Maybe we could binary search in DEST? */ + for (sbase = dest->nelem + 2 * src->nelem, + is = src->nelem - 1, id = dest->nelem - 1; + REG_VALID_INDEX (is) && REG_VALID_INDEX (id); ) + { + if (dest->elems[id] == src->elems[is]) + is--, id--; + else if (dest->elems[id] < src->elems[is]) + dest->elems[--sbase] = src->elems[is--]; + else /* if (dest->elems[id] > src->elems[is]) */ + --id; + } + + if (REG_VALID_INDEX (is)) + { + /* If DEST is exhausted, the remaining items of SRC must be unique. */ + sbase -= is + 1; + memcpy (dest->elems + sbase, src->elems, (is + 1) * sizeof (Idx)); + } + + id = dest->nelem - 1; + is = dest->nelem + 2 * src->nelem - 1; + delta = is - sbase + 1; + if (delta == 0) + return REG_NOERROR; + + /* Now copy. When DELTA becomes zero, the remaining + DEST elements are already in place. */ + dest->nelem += delta; + for (;;) + { + if (dest->elems[is] > dest->elems[id]) + { + /* Copy from the top. */ + dest->elems[id + delta--] = dest->elems[is--]; + if (delta == 0) + break; + } + else + { + /* Slide from the bottom. */ + dest->elems[id + delta] = dest->elems[id]; + if (! REG_VALID_INDEX (--id)) + { + /* Copy remaining SRC elements. */ + memcpy (dest->elems, dest->elems + sbase, + delta * sizeof (Idx)); + break; + } + } + } + + return REG_NOERROR; +} + +/* Insert the new element ELEM to the re_node_set* SET. + SET should not already have ELEM. + Return true if successful. */ + +static bool +internal_function __attribute_warn_unused_result__ +re_node_set_insert (re_node_set *set, Idx elem) +{ + Idx idx; + /* In case the set is empty. */ + if (set->alloc == 0) + return BE (re_node_set_init_1 (set, elem) == REG_NOERROR, 1); + + if (BE (set->nelem, 0) == 0) + { + /* We already guaranteed above that set->alloc != 0. */ + set->elems[0] = elem; + ++set->nelem; + return true; + } + + /* Realloc if we need. */ + if (set->alloc == set->nelem) + { + Idx *new_elems; + set->alloc = set->alloc * 2; + new_elems = re_realloc (set->elems, Idx, set->alloc); + if (BE (new_elems == NULL, 0)) + return false; + set->elems = new_elems; + } + + /* Move the elements which follows the new element. Test the + first element separately to skip a check in the inner loop. */ + if (elem < set->elems[0]) + { + idx = 0; + for (idx = set->nelem; idx > 0; idx--) + set->elems[idx] = set->elems[idx - 1]; + } + else + { + for (idx = set->nelem; set->elems[idx - 1] > elem; idx--) + set->elems[idx] = set->elems[idx - 1]; + } + + /* Insert the new element. */ + set->elems[idx] = elem; + ++set->nelem; + return true; +} + +/* Insert the new element ELEM to the re_node_set* SET. + SET should not already have any element greater than or equal to ELEM. + Return true if successful. */ + +static bool +internal_function __attribute_warn_unused_result__ +re_node_set_insert_last (re_node_set *set, Idx elem) +{ + /* Realloc if we need. */ + if (set->alloc == set->nelem) + { + Idx *new_elems; + set->alloc = (set->alloc + 1) * 2; + new_elems = re_realloc (set->elems, Idx, set->alloc); + if (BE (new_elems == NULL, 0)) + return false; + set->elems = new_elems; + } + + /* Insert the new element. */ + set->elems[set->nelem++] = elem; + return true; +} + +/* Compare two node sets SET1 and SET2. + Return true if SET1 and SET2 are equivalent. */ + +static bool +internal_function __attribute ((pure)) +re_node_set_compare (const re_node_set *set1, const re_node_set *set2) +{ + Idx i; + if (set1 == NULL || set2 == NULL || set1->nelem != set2->nelem) + return false; + for (i = set1->nelem ; REG_VALID_INDEX (--i) ; ) + if (set1->elems[i] != set2->elems[i]) + return false; + return true; +} + +/* Return (idx + 1) if SET contains the element ELEM, return 0 otherwise. */ + +static Idx +internal_function __attribute ((pure)) +re_node_set_contains (const re_node_set *set, Idx elem) +{ + __re_size_t idx, right, mid; + if (! REG_VALID_NONZERO_INDEX (set->nelem)) + return 0; + + /* Binary search the element. */ + idx = 0; + right = set->nelem - 1; + while (idx < right) + { + mid = (idx + right) / 2; + if (set->elems[mid] < elem) + idx = mid + 1; + else + right = mid; + } + return set->elems[idx] == elem ? idx + 1 : 0; +} + +static void +internal_function +re_node_set_remove_at (re_node_set *set, Idx idx) +{ + if (idx < 0 || idx >= set->nelem) + return; + --set->nelem; + for (; idx < set->nelem; idx++) + set->elems[idx] = set->elems[idx + 1]; +} + + +/* Add the token TOKEN to dfa->nodes, and return the index of the token. + Or return REG_MISSING if an error occurred. */ + +static Idx +internal_function +re_dfa_add_node (re_dfa_t *dfa, re_token_t token) +{ + if (BE (dfa->nodes_len >= dfa->nodes_alloc, 0)) + { + size_t new_nodes_alloc = dfa->nodes_alloc * 2; + Idx *new_nexts, *new_indices; + re_node_set *new_edests, *new_eclosures; + re_token_t *new_nodes; + size_t max_object_size = + MAX (sizeof (re_token_t), + MAX (sizeof (re_node_set), + sizeof (Idx))); + + /* Avoid overflows. */ + if (BE (SIZE_MAX / 2 / max_object_size < dfa->nodes_alloc, 0)) + return REG_MISSING; + + new_nodes = re_realloc (dfa->nodes, re_token_t, new_nodes_alloc); + if (BE (new_nodes == NULL, 0)) + return REG_MISSING; + dfa->nodes = new_nodes; + new_nexts = re_realloc (dfa->nexts, Idx, new_nodes_alloc); + new_indices = re_realloc (dfa->org_indices, Idx, new_nodes_alloc); + new_edests = re_realloc (dfa->edests, re_node_set, new_nodes_alloc); + new_eclosures = re_realloc (dfa->eclosures, re_node_set, new_nodes_alloc); + if (BE (new_nexts == NULL || new_indices == NULL + || new_edests == NULL || new_eclosures == NULL, 0)) + return REG_MISSING; + dfa->nexts = new_nexts; + dfa->org_indices = new_indices; + dfa->edests = new_edests; + dfa->eclosures = new_eclosures; + dfa->nodes_alloc = new_nodes_alloc; + } + dfa->nodes[dfa->nodes_len] = token; + dfa->nodes[dfa->nodes_len].constraint = 0; +#ifdef RE_ENABLE_I18N + { + int type = token.type; + dfa->nodes[dfa->nodes_len].accept_mb = + (type == OP_PERIOD && dfa->mb_cur_max > 1) || type == COMPLEX_BRACKET; + } +#endif + dfa->nexts[dfa->nodes_len] = REG_MISSING; + re_node_set_init_empty (dfa->edests + dfa->nodes_len); + re_node_set_init_empty (dfa->eclosures + dfa->nodes_len); + return dfa->nodes_len++; +} + +static inline re_hashval_t +internal_function +calc_state_hash (const re_node_set *nodes, unsigned int context) +{ + re_hashval_t hash = nodes->nelem + context; + Idx i; + for (i = 0 ; i < nodes->nelem ; i++) + hash += nodes->elems[i]; + return hash; +} + +/* Search for the state whose node_set is equivalent to NODES. + Return the pointer to the state, if we found it in the DFA. + Otherwise create the new one and return it. In case of an error + return NULL and set the error code in ERR. + Note: - We assume NULL as the invalid state, then it is possible that + return value is NULL and ERR is REG_NOERROR. + - We never return non-NULL value in case of any errors, it is for + optimization. */ + +static re_dfastate_t * +internal_function __attribute_warn_unused_result__ +re_acquire_state (reg_errcode_t *err, const re_dfa_t *dfa, + const re_node_set *nodes) +{ + re_hashval_t hash; + re_dfastate_t *new_state; + struct re_state_table_entry *spot; + Idx i; +#ifdef lint + /* Suppress bogus uninitialized-variable warnings. */ + *err = REG_NOERROR; +#endif + if (BE (nodes->nelem == 0, 0)) + { + *err = REG_NOERROR; + return NULL; + } + hash = calc_state_hash (nodes, 0); + spot = dfa->state_table + (hash & dfa->state_hash_mask); + + for (i = 0 ; i < spot->num ; i++) + { + re_dfastate_t *state = spot->array[i]; + if (hash != state->hash) + continue; + if (re_node_set_compare (&state->nodes, nodes)) + return state; + } + + /* There are no appropriate state in the dfa, create the new one. */ + new_state = create_ci_newstate (dfa, nodes, hash); + if (BE (new_state == NULL, 0)) + *err = REG_ESPACE; + + return new_state; +} + +/* Search for the state whose node_set is equivalent to NODES and + whose context is equivalent to CONTEXT. + Return the pointer to the state, if we found it in the DFA. + Otherwise create the new one and return it. In case of an error + return NULL and set the error code in ERR. + Note: - We assume NULL as the invalid state, then it is possible that + return value is NULL and ERR is REG_NOERROR. + - We never return non-NULL value in case of any errors, it is for + optimization. */ + +static re_dfastate_t * +internal_function __attribute_warn_unused_result__ +re_acquire_state_context (reg_errcode_t *err, const re_dfa_t *dfa, + const re_node_set *nodes, unsigned int context) +{ + re_hashval_t hash; + re_dfastate_t *new_state; + struct re_state_table_entry *spot; + Idx i; +#ifdef lint + /* Suppress bogus uninitialized-variable warnings. */ + *err = REG_NOERROR; +#endif + if (nodes->nelem == 0) + { + *err = REG_NOERROR; + return NULL; + } + hash = calc_state_hash (nodes, context); + spot = dfa->state_table + (hash & dfa->state_hash_mask); + + for (i = 0 ; i < spot->num ; i++) + { + re_dfastate_t *state = spot->array[i]; + if (state->hash == hash + && state->context == context + && re_node_set_compare (state->entrance_nodes, nodes)) + return state; + } + /* There are no appropriate state in `dfa', create the new one. */ + new_state = create_cd_newstate (dfa, nodes, context, hash); + if (BE (new_state == NULL, 0)) + *err = REG_ESPACE; + + return new_state; +} + +/* Finish initialization of the new state NEWSTATE, and using its hash value + HASH put in the appropriate bucket of DFA's state table. Return value + indicates the error code if failed. */ + +static reg_errcode_t +__attribute_warn_unused_result__ +register_state (const re_dfa_t *dfa, re_dfastate_t *newstate, + re_hashval_t hash) +{ + struct re_state_table_entry *spot; + reg_errcode_t err; + Idx i; + + newstate->hash = hash; + err = re_node_set_alloc (&newstate->non_eps_nodes, newstate->nodes.nelem); + if (BE (err != REG_NOERROR, 0)) + return REG_ESPACE; + for (i = 0; i < newstate->nodes.nelem; i++) + { + Idx elem = newstate->nodes.elems[i]; + if (!IS_EPSILON_NODE (dfa->nodes[elem].type)) + if (BE (! re_node_set_insert_last (&newstate->non_eps_nodes, elem), 0)) + return REG_ESPACE; + } + + spot = dfa->state_table + (hash & dfa->state_hash_mask); + if (BE (spot->alloc <= spot->num, 0)) + { + Idx new_alloc = 2 * spot->num + 2; + re_dfastate_t **new_array = re_realloc (spot->array, re_dfastate_t *, + new_alloc); + if (BE (new_array == NULL, 0)) + return REG_ESPACE; + spot->array = new_array; + spot->alloc = new_alloc; + } + spot->array[spot->num++] = newstate; + return REG_NOERROR; +} + +static void +free_state (re_dfastate_t *state) +{ + re_node_set_free (&state->non_eps_nodes); + re_node_set_free (&state->inveclosure); + if (state->entrance_nodes != &state->nodes) + { + re_node_set_free (state->entrance_nodes); + re_free (state->entrance_nodes); + } + re_node_set_free (&state->nodes); + re_free (state->word_trtable); + re_free (state->trtable); + re_free (state); +} + +/* Create the new state which is independ of contexts. + Return the new state if succeeded, otherwise return NULL. */ + +static re_dfastate_t * +internal_function __attribute_warn_unused_result__ +create_ci_newstate (const re_dfa_t *dfa, const re_node_set *nodes, + re_hashval_t hash) +{ + Idx i; + reg_errcode_t err; + re_dfastate_t *newstate; + + newstate = (re_dfastate_t *) calloc (sizeof (re_dfastate_t), 1); + if (BE (newstate == NULL, 0)) + return NULL; + err = re_node_set_init_copy (&newstate->nodes, nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_free (newstate); + return NULL; + } + + newstate->entrance_nodes = &newstate->nodes; + for (i = 0 ; i < nodes->nelem ; i++) + { + re_token_t *node = dfa->nodes + nodes->elems[i]; + re_token_type_t type = node->type; + if (type == CHARACTER && !node->constraint) + continue; +#ifdef RE_ENABLE_I18N + newstate->accept_mb |= node->accept_mb; +#endif /* RE_ENABLE_I18N */ + + /* If the state has the halt node, the state is a halt state. */ + if (type == END_OF_RE) + newstate->halt = 1; + else if (type == OP_BACK_REF) + newstate->has_backref = 1; + else if (type == ANCHOR || node->constraint) + newstate->has_constraint = 1; + } + err = register_state (dfa, newstate, hash); + if (BE (err != REG_NOERROR, 0)) + { + free_state (newstate); + newstate = NULL; + } + return newstate; +} + +/* Create the new state which is depend on the context CONTEXT. + Return the new state if succeeded, otherwise return NULL. */ + +static re_dfastate_t * +internal_function __attribute_warn_unused_result__ +create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, + unsigned int context, re_hashval_t hash) +{ + Idx i, nctx_nodes = 0; + reg_errcode_t err; + re_dfastate_t *newstate; + + newstate = (re_dfastate_t *) calloc (sizeof (re_dfastate_t), 1); + if (BE (newstate == NULL, 0)) + return NULL; + err = re_node_set_init_copy (&newstate->nodes, nodes); + if (BE (err != REG_NOERROR, 0)) + { + re_free (newstate); + return NULL; + } + + newstate->context = context; + newstate->entrance_nodes = &newstate->nodes; + + for (i = 0 ; i < nodes->nelem ; i++) + { + re_token_t *node = dfa->nodes + nodes->elems[i]; + re_token_type_t type = node->type; + unsigned int constraint = node->constraint; + + if (type == CHARACTER && !constraint) + continue; +#ifdef RE_ENABLE_I18N + newstate->accept_mb |= node->accept_mb; +#endif /* RE_ENABLE_I18N */ + + /* If the state has the halt node, the state is a halt state. */ + if (type == END_OF_RE) + newstate->halt = 1; + else if (type == OP_BACK_REF) + newstate->has_backref = 1; + + if (constraint) + { + if (newstate->entrance_nodes == &newstate->nodes) + { + newstate->entrance_nodes = re_malloc (re_node_set, 1); + if (BE (newstate->entrance_nodes == NULL, 0)) + { + free_state (newstate); + return NULL; + } + if (re_node_set_init_copy (newstate->entrance_nodes, nodes) + != REG_NOERROR) + return NULL; + nctx_nodes = 0; + newstate->has_constraint = 1; + } + + if (NOT_SATISFY_PREV_CONSTRAINT (constraint,context)) + { + re_node_set_remove_at (&newstate->nodes, i - nctx_nodes); + ++nctx_nodes; + } + } + } + err = register_state (dfa, newstate, hash); + if (BE (err != REG_NOERROR, 0)) + { + free_state (newstate); + newstate = NULL; + } + return newstate; +} diff -Nru gettext-0.17/gettext-tools/libgrep/regex_internal.h gettext-0.18.1.1/gettext-tools/libgrep/regex_internal.h --- gettext-0.17/gettext-tools/libgrep/regex_internal.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/regex_internal.h 2010-05-24 14:49:27.000000000 +0000 @@ -0,0 +1,873 @@ +/* Extended regular expression matching and search library. + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free + Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Isamu Hasegawa . + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _REGEX_INTERNAL_H +#define _REGEX_INTERNAL_H 1 + +#include +#include +#include +#include +#include +#include + +#include +#ifndef _LIBC +# include "localcharset.h" +#endif +#if defined HAVE_LOCALE_H || defined _LIBC +# include +#endif + +#include +#include +#include +#if defined _LIBC +# include +#else +# define __libc_lock_init(NAME) do { } while (0) +# define __libc_lock_lock(NAME) do { } while (0) +# define __libc_lock_unlock(NAME) do { } while (0) +#endif + +/* In case that the system doesn't have isblank(). */ +#if !defined _LIBC && ! (defined isblank || (HAVE_ISBLANK && HAVE_DECL_ISBLANK)) +# define isblank(ch) ((ch) == ' ' || (ch) == '\t') +#endif + +#ifdef _LIBC +# ifndef _RE_DEFINE_LOCALE_FUNCTIONS +# define _RE_DEFINE_LOCALE_FUNCTIONS 1 +# include +# include +# include +# endif +#endif + +/* This is for other GNU distributions with internationalized messages. */ +#if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC +# include +# ifdef _LIBC +# undef gettext +# define gettext(msgid) \ + INTUSE(__dcgettext) (_libc_intl_domainname, msgid, LC_MESSAGES) +# endif +#else +# define gettext(msgid) (msgid) +#endif + +#ifndef gettext_noop +/* This define is so xgettext can find the internationalizable + strings. */ +# define gettext_noop(String) String +#endif + +/* For loser systems without the definition. */ +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif + +#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCSCOLL) || _LIBC +# define RE_ENABLE_I18N +#endif + +#if __GNUC__ >= 3 +# define BE(expr, val) __builtin_expect (expr, val) +#else +# define BE(expr, val) (expr) +# ifdef _LIBC +# define inline +# endif +#endif + +/* Number of ASCII characters. */ +#define ASCII_CHARS 0x80 + +/* Number of single byte characters. */ +#define SBC_MAX (UCHAR_MAX + 1) + +#define COLL_ELEM_LEN_MAX 8 + +/* The character which represents newline. */ +#define NEWLINE_CHAR '\n' +#define WIDE_NEWLINE_CHAR L'\n' + +/* Rename to standard API for using out of glibc. */ +#ifndef _LIBC +# define __wctype wctype +# define __iswctype iswctype +# define __btowc btowc +# define __wcrtomb wcrtomb +# define __mbrtowc mbrtowc +# define __regfree regfree +# define attribute_hidden +#endif /* not _LIBC */ + +#if __GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# define __attribute(arg) __attribute__ (arg) +#else +# define __attribute(arg) +#endif + +typedef __re_idx_t Idx; + +/* Special return value for failure to match. */ +#define REG_MISSING ((Idx) -1) + +/* Special return value for internal error. */ +#define REG_ERROR ((Idx) -2) + +/* Test whether N is a valid index, and is not one of the above. */ +#ifdef _REGEX_LARGE_OFFSETS +# define REG_VALID_INDEX(n) ((Idx) (n) < REG_ERROR) +#else +# define REG_VALID_INDEX(n) (0 <= (n)) +#endif + +/* Test whether N is a valid nonzero index. */ +#ifdef _REGEX_LARGE_OFFSETS +# define REG_VALID_NONZERO_INDEX(n) ((Idx) ((n) - 1) < (Idx) (REG_ERROR - 1)) +#else +# define REG_VALID_NONZERO_INDEX(n) (0 < (n)) +#endif + +/* A hash value, suitable for computing hash tables. */ +typedef __re_size_t re_hashval_t; + +/* An integer used to represent a set of bits. It must be unsigned, + and must be at least as wide as unsigned int. */ +typedef unsigned long int bitset_word_t; +/* All bits set in a bitset_word_t. */ +#define BITSET_WORD_MAX ULONG_MAX + +/* Number of bits in a bitset_word_t. For portability to hosts with + padding bits, do not use '(sizeof (bitset_word_t) * CHAR_BIT)'; + instead, deduce it directly from BITSET_WORD_MAX. Avoid + greater-than-32-bit integers and unconditional shifts by more than + 31 bits, as they're not portable. */ +#if BITSET_WORD_MAX == 0xffffffffUL +# define BITSET_WORD_BITS 32 +#elif BITSET_WORD_MAX >> 31 >> 4 == 1 +# define BITSET_WORD_BITS 36 +#elif BITSET_WORD_MAX >> 31 >> 16 == 1 +# define BITSET_WORD_BITS 48 +#elif BITSET_WORD_MAX >> 31 >> 28 == 1 +# define BITSET_WORD_BITS 60 +#elif BITSET_WORD_MAX >> 31 >> 31 >> 1 == 1 +# define BITSET_WORD_BITS 64 +#elif BITSET_WORD_MAX >> 31 >> 31 >> 9 == 1 +# define BITSET_WORD_BITS 72 +#elif BITSET_WORD_MAX >> 31 >> 31 >> 31 >> 31 >> 3 == 1 +# define BITSET_WORD_BITS 128 +#elif BITSET_WORD_MAX >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 7 == 1 +# define BITSET_WORD_BITS 256 +#elif BITSET_WORD_MAX >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 31 >> 7 > 1 +# define BITSET_WORD_BITS 257 /* any value > SBC_MAX will do here */ +# if BITSET_WORD_BITS <= SBC_MAX +# error "Invalid SBC_MAX" +# endif +#else +# error "Add case for new bitset_word_t size" +#endif + +/* Number of bitset_word_t values in a bitset_t. */ +#define BITSET_WORDS ((SBC_MAX + BITSET_WORD_BITS - 1) / BITSET_WORD_BITS) + +typedef bitset_word_t bitset_t[BITSET_WORDS]; +typedef bitset_word_t *re_bitset_ptr_t; +typedef const bitset_word_t *re_const_bitset_ptr_t; + +#define PREV_WORD_CONSTRAINT 0x0001 +#define PREV_NOTWORD_CONSTRAINT 0x0002 +#define NEXT_WORD_CONSTRAINT 0x0004 +#define NEXT_NOTWORD_CONSTRAINT 0x0008 +#define PREV_NEWLINE_CONSTRAINT 0x0010 +#define NEXT_NEWLINE_CONSTRAINT 0x0020 +#define PREV_BEGBUF_CONSTRAINT 0x0040 +#define NEXT_ENDBUF_CONSTRAINT 0x0080 +#define WORD_DELIM_CONSTRAINT 0x0100 +#define NOT_WORD_DELIM_CONSTRAINT 0x0200 + +typedef enum +{ + INSIDE_WORD = PREV_WORD_CONSTRAINT | NEXT_WORD_CONSTRAINT, + WORD_FIRST = PREV_NOTWORD_CONSTRAINT | NEXT_WORD_CONSTRAINT, + WORD_LAST = PREV_WORD_CONSTRAINT | NEXT_NOTWORD_CONSTRAINT, + INSIDE_NOTWORD = PREV_NOTWORD_CONSTRAINT | NEXT_NOTWORD_CONSTRAINT, + LINE_FIRST = PREV_NEWLINE_CONSTRAINT, + LINE_LAST = NEXT_NEWLINE_CONSTRAINT, + BUF_FIRST = PREV_BEGBUF_CONSTRAINT, + BUF_LAST = NEXT_ENDBUF_CONSTRAINT, + WORD_DELIM = WORD_DELIM_CONSTRAINT, + NOT_WORD_DELIM = NOT_WORD_DELIM_CONSTRAINT +} re_context_type; + +typedef struct +{ + Idx alloc; + Idx nelem; + Idx *elems; +} re_node_set; + +typedef enum +{ + NON_TYPE = 0, + + /* Node type, These are used by token, node, tree. */ + CHARACTER = 1, + END_OF_RE = 2, + SIMPLE_BRACKET = 3, + OP_BACK_REF = 4, + OP_PERIOD = 5, +#ifdef RE_ENABLE_I18N + COMPLEX_BRACKET = 6, + OP_UTF8_PERIOD = 7, +#endif /* RE_ENABLE_I18N */ + + /* We define EPSILON_BIT as a macro so that OP_OPEN_SUBEXP is used + when the debugger shows values of this enum type. */ +#define EPSILON_BIT 8 + OP_OPEN_SUBEXP = EPSILON_BIT | 0, + OP_CLOSE_SUBEXP = EPSILON_BIT | 1, + OP_ALT = EPSILON_BIT | 2, + OP_DUP_ASTERISK = EPSILON_BIT | 3, + ANCHOR = EPSILON_BIT | 4, + + /* Tree type, these are used only by tree. */ + CONCAT = 16, + SUBEXP = 17, + + /* Token type, these are used only by token. */ + OP_DUP_PLUS = 18, + OP_DUP_QUESTION, + OP_OPEN_BRACKET, + OP_CLOSE_BRACKET, + OP_CHARSET_RANGE, + OP_OPEN_DUP_NUM, + OP_CLOSE_DUP_NUM, + OP_NON_MATCH_LIST, + OP_OPEN_COLL_ELEM, + OP_CLOSE_COLL_ELEM, + OP_OPEN_EQUIV_CLASS, + OP_CLOSE_EQUIV_CLASS, + OP_OPEN_CHAR_CLASS, + OP_CLOSE_CHAR_CLASS, + OP_WORD, + OP_NOTWORD, + OP_SPACE, + OP_NOTSPACE, + BACK_SLASH + +} re_token_type_t; + +#ifdef RE_ENABLE_I18N +typedef struct +{ + /* Multibyte characters. */ + wchar_t *mbchars; + + /* Collating symbols. */ +# ifdef _LIBC + int32_t *coll_syms; +# endif + + /* Equivalence classes. */ +# ifdef _LIBC + int32_t *equiv_classes; +# endif + + /* Range expressions. */ +# ifdef _LIBC + uint32_t *range_starts; + uint32_t *range_ends; +# else /* not _LIBC */ + wchar_t *range_starts; + wchar_t *range_ends; +# endif /* not _LIBC */ + + /* Character classes. */ + wctype_t *char_classes; + + /* If this character set is the non-matching list. */ + unsigned int non_match : 1; + + /* # of multibyte characters. */ + Idx nmbchars; + + /* # of collating symbols. */ + Idx ncoll_syms; + + /* # of equivalence classes. */ + Idx nequiv_classes; + + /* # of range expressions. */ + Idx nranges; + + /* # of character classes. */ + Idx nchar_classes; +} re_charset_t; +#endif /* RE_ENABLE_I18N */ + +typedef struct +{ + union + { + unsigned char c; /* for CHARACTER */ + re_bitset_ptr_t sbcset; /* for SIMPLE_BRACKET */ +#ifdef RE_ENABLE_I18N + re_charset_t *mbcset; /* for COMPLEX_BRACKET */ +#endif /* RE_ENABLE_I18N */ + Idx idx; /* for BACK_REF */ + re_context_type ctx_type; /* for ANCHOR */ + } opr; +#if __GNUC__ >= 2 && !__STRICT_ANSI__ + re_token_type_t type : 8; +#else + re_token_type_t type; +#endif + unsigned int constraint : 10; /* context constraint */ + unsigned int duplicated : 1; + unsigned int opt_subexp : 1; +#ifdef RE_ENABLE_I18N + unsigned int accept_mb : 1; + /* These 2 bits can be moved into the union if needed (e.g. if running out + of bits; move opr.c to opr.c.c and move the flags to opr.c.flags). */ + unsigned int mb_partial : 1; +#endif + unsigned int word_char : 1; +} re_token_t; + +#define IS_EPSILON_NODE(type) ((type) & EPSILON_BIT) + +struct re_string_t +{ + /* Indicate the raw buffer which is the original string passed as an + argument of regexec(), re_search(), etc.. */ + const unsigned char *raw_mbs; + /* Store the multibyte string. In case of "case insensitive mode" like + REG_ICASE, upper cases of the string are stored, otherwise MBS points + the same address that RAW_MBS points. */ + unsigned char *mbs; +#ifdef RE_ENABLE_I18N + /* Store the wide character string which is corresponding to MBS. */ + wint_t *wcs; + Idx *offsets; + mbstate_t cur_state; +#endif + /* Index in RAW_MBS. Each character mbs[i] corresponds to + raw_mbs[raw_mbs_idx + i]. */ + Idx raw_mbs_idx; + /* The length of the valid characters in the buffers. */ + Idx valid_len; + /* The corresponding number of bytes in raw_mbs array. */ + Idx valid_raw_len; + /* The length of the buffers MBS and WCS. */ + Idx bufs_len; + /* The index in MBS, which is updated by re_string_fetch_byte. */ + Idx cur_idx; + /* length of RAW_MBS array. */ + Idx raw_len; + /* This is RAW_LEN - RAW_MBS_IDX + VALID_LEN - VALID_RAW_LEN. */ + Idx len; + /* End of the buffer may be shorter than its length in the cases such + as re_match_2, re_search_2. Then, we use STOP for end of the buffer + instead of LEN. */ + Idx raw_stop; + /* This is RAW_STOP - RAW_MBS_IDX adjusted through OFFSETS. */ + Idx stop; + + /* The context of mbs[0]. We store the context independently, since + the context of mbs[0] may be different from raw_mbs[0], which is + the beginning of the input string. */ + unsigned int tip_context; + /* The translation passed as a part of an argument of re_compile_pattern. */ + RE_TRANSLATE_TYPE trans; + /* Copy of re_dfa_t's word_char. */ + re_const_bitset_ptr_t word_char; + /* true if REG_ICASE. */ + unsigned char icase; + unsigned char is_utf8; + unsigned char map_notascii; + unsigned char mbs_allocated; + unsigned char offsets_needed; + unsigned char newline_anchor; + unsigned char word_ops_used; + int mb_cur_max; +}; +typedef struct re_string_t re_string_t; + + +struct re_dfa_t; +typedef struct re_dfa_t re_dfa_t; + +#ifndef _LIBC +# if defined __i386__ && !defined __EMX__ +# define internal_function __attribute ((regparm (3), stdcall)) +# else +# define internal_function +# endif +#endif + +static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr, + Idx new_buf_len) + internal_function; +#ifdef RE_ENABLE_I18N +static void build_wcs_buffer (re_string_t *pstr) internal_function; +static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) + internal_function; +#endif /* RE_ENABLE_I18N */ +static void build_upper_buffer (re_string_t *pstr) internal_function; +static void re_string_translate_buffer (re_string_t *pstr) internal_function; +static unsigned int re_string_context_at (const re_string_t *input, Idx idx, + int eflags) + internal_function __attribute ((pure)); +#define re_string_peek_byte(pstr, offset) \ + ((pstr)->mbs[(pstr)->cur_idx + offset]) +#define re_string_fetch_byte(pstr) \ + ((pstr)->mbs[(pstr)->cur_idx++]) +#define re_string_first_byte(pstr, idx) \ + ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF) +#define re_string_is_single_byte_char(pstr, idx) \ + ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \ + || (pstr)->wcs[(idx) + 1] != WEOF)) +#define re_string_eoi(pstr) ((pstr)->stop <= (pstr)->cur_idx) +#define re_string_cur_idx(pstr) ((pstr)->cur_idx) +#define re_string_get_buffer(pstr) ((pstr)->mbs) +#define re_string_length(pstr) ((pstr)->len) +#define re_string_byte_at(pstr,idx) ((pstr)->mbs[idx]) +#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) +#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) + +#include + +#ifndef _LIBC +# if HAVE_ALLOCA +/* The OS usually guarantees only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + allocate anything larger than 4096 bytes. Also care for the possibility + of a few compiler-allocated temporary stack slots. */ +# define __libc_use_alloca(n) ((n) < 4032) +# else +/* alloca is implemented with malloc, so just use malloc. */ +# define __libc_use_alloca(n) 0 +# undef alloca +# define alloca(n) malloc (n) +# endif +#endif + +#ifndef MAX +# define MAX(a,b) ((a) < (b) ? (b) : (a)) +#endif + +#define re_malloc(t,n) ((t *) malloc ((n) > 0 ? (n) * sizeof (t) : 1)) +#define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t))) +#define re_free(p) free (p) + +struct bin_tree_t +{ + struct bin_tree_t *parent; + struct bin_tree_t *left; + struct bin_tree_t *right; + struct bin_tree_t *first; + struct bin_tree_t *next; + + re_token_t token; + + /* `node_idx' is the index in dfa->nodes, if `type' == 0. + Otherwise `type' indicate the type of this node. */ + Idx node_idx; +}; +typedef struct bin_tree_t bin_tree_t; + +#define BIN_TREE_STORAGE_SIZE \ + ((1024 - sizeof (void *)) / sizeof (bin_tree_t)) + +struct bin_tree_storage_t +{ + struct bin_tree_storage_t *next; + bin_tree_t data[BIN_TREE_STORAGE_SIZE]; +}; +typedef struct bin_tree_storage_t bin_tree_storage_t; + +#define CONTEXT_WORD 1 +#define CONTEXT_NEWLINE (CONTEXT_WORD << 1) +#define CONTEXT_BEGBUF (CONTEXT_NEWLINE << 1) +#define CONTEXT_ENDBUF (CONTEXT_BEGBUF << 1) + +#define IS_WORD_CONTEXT(c) ((c) & CONTEXT_WORD) +#define IS_NEWLINE_CONTEXT(c) ((c) & CONTEXT_NEWLINE) +#define IS_BEGBUF_CONTEXT(c) ((c) & CONTEXT_BEGBUF) +#define IS_ENDBUF_CONTEXT(c) ((c) & CONTEXT_ENDBUF) +#define IS_ORDINARY_CONTEXT(c) ((c) == 0) + +#define IS_WORD_CHAR(ch) (isalnum (ch) || (ch) == '_') +#define IS_NEWLINE(ch) ((ch) == NEWLINE_CHAR) +#define IS_WIDE_WORD_CHAR(ch) (iswalnum (ch) || (ch) == L'_') +#define IS_WIDE_NEWLINE(ch) ((ch) == WIDE_NEWLINE_CHAR) + +#define NOT_SATISFY_PREV_CONSTRAINT(constraint,context) \ + ((((constraint) & PREV_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \ + || ((constraint & PREV_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \ + || ((constraint & PREV_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context))\ + || ((constraint & PREV_BEGBUF_CONSTRAINT) && !IS_BEGBUF_CONTEXT (context))) + +#define NOT_SATISFY_NEXT_CONSTRAINT(constraint,context) \ + ((((constraint) & NEXT_WORD_CONSTRAINT) && !IS_WORD_CONTEXT (context)) \ + || (((constraint) & NEXT_NOTWORD_CONSTRAINT) && IS_WORD_CONTEXT (context)) \ + || (((constraint) & NEXT_NEWLINE_CONSTRAINT) && !IS_NEWLINE_CONTEXT (context)) \ + || (((constraint) & NEXT_ENDBUF_CONSTRAINT) && !IS_ENDBUF_CONTEXT (context))) + +struct re_dfastate_t +{ + re_hashval_t hash; + re_node_set nodes; + re_node_set non_eps_nodes; + re_node_set inveclosure; + re_node_set *entrance_nodes; + struct re_dfastate_t **trtable, **word_trtable; + unsigned int context : 4; + unsigned int halt : 1; + /* If this state can accept `multi byte'. + Note that we refer to multibyte characters, and multi character + collating elements as `multi byte'. */ + unsigned int accept_mb : 1; + /* If this state has backreference node(s). */ + unsigned int has_backref : 1; + unsigned int has_constraint : 1; +}; +typedef struct re_dfastate_t re_dfastate_t; + +struct re_state_table_entry +{ + Idx num; + Idx alloc; + re_dfastate_t **array; +}; + +/* Array type used in re_sub_match_last_t and re_sub_match_top_t. */ + +typedef struct +{ + Idx next_idx; + Idx alloc; + re_dfastate_t **array; +} state_array_t; + +/* Store information about the node NODE whose type is OP_CLOSE_SUBEXP. */ + +typedef struct +{ + Idx node; + Idx str_idx; /* The position NODE match at. */ + state_array_t path; +} re_sub_match_last_t; + +/* Store information about the node NODE whose type is OP_OPEN_SUBEXP. + And information about the node, whose type is OP_CLOSE_SUBEXP, + corresponding to NODE is stored in LASTS. */ + +typedef struct +{ + Idx str_idx; + Idx node; + state_array_t *path; + Idx alasts; /* Allocation size of LASTS. */ + Idx nlasts; /* The number of LASTS. */ + re_sub_match_last_t **lasts; +} re_sub_match_top_t; + +struct re_backref_cache_entry +{ + Idx node; + Idx str_idx; + Idx subexp_from; + Idx subexp_to; + char more; + char unused; + unsigned short int eps_reachable_subexps_map; +}; + +typedef struct +{ + /* The string object corresponding to the input string. */ + re_string_t input; +#if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) + const re_dfa_t *const dfa; +#else + const re_dfa_t *dfa; +#endif + /* EFLAGS of the argument of regexec. */ + int eflags; + /* Where the matching ends. */ + Idx match_last; + Idx last_node; + /* The state log used by the matcher. */ + re_dfastate_t **state_log; + Idx state_log_top; + /* Back reference cache. */ + Idx nbkref_ents; + Idx abkref_ents; + struct re_backref_cache_entry *bkref_ents; + int max_mb_elem_len; + Idx nsub_tops; + Idx asub_tops; + re_sub_match_top_t **sub_tops; +} re_match_context_t; + +typedef struct +{ + re_dfastate_t **sifted_states; + re_dfastate_t **limited_states; + Idx last_node; + Idx last_str_idx; + re_node_set limits; +} re_sift_context_t; + +struct re_fail_stack_ent_t +{ + Idx idx; + Idx node; + regmatch_t *regs; + re_node_set eps_via_nodes; +}; + +struct re_fail_stack_t +{ + Idx num; + Idx alloc; + struct re_fail_stack_ent_t *stack; +}; + +struct re_dfa_t +{ + re_token_t *nodes; + size_t nodes_alloc; + size_t nodes_len; + Idx *nexts; + Idx *org_indices; + re_node_set *edests; + re_node_set *eclosures; + re_node_set *inveclosures; + struct re_state_table_entry *state_table; + re_dfastate_t *init_state; + re_dfastate_t *init_state_word; + re_dfastate_t *init_state_nl; + re_dfastate_t *init_state_begbuf; + bin_tree_t *str_tree; + bin_tree_storage_t *str_tree_storage; + re_bitset_ptr_t sb_char; + int str_tree_storage_idx; + + /* number of subexpressions `re_nsub' is in regex_t. */ + re_hashval_t state_hash_mask; + Idx init_node; + Idx nbackref; /* The number of backreference in this dfa. */ + + /* Bitmap expressing which backreference is used. */ + bitset_word_t used_bkref_map; + bitset_word_t completed_bkref_map; + + unsigned int has_plural_match : 1; + /* If this dfa has "multibyte node", which is a backreference or + a node which can accept multibyte character or multi character + collating element. */ + unsigned int has_mb_node : 1; + unsigned int is_utf8 : 1; + unsigned int map_notascii : 1; + unsigned int word_ops_used : 1; + int mb_cur_max; + bitset_t word_char; + reg_syntax_t syntax; + Idx *subexp_map; +#ifdef DEBUG + char* re_str; +#endif +#ifdef _LIBC + __libc_lock_define (, lock) +#endif +}; + +#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set)) +#define re_node_set_remove(set,id) \ + (re_node_set_remove_at (set, re_node_set_contains (set, id) - 1)) +#define re_node_set_empty(p) ((p)->nelem = 0) +#define re_node_set_free(set) re_free ((set)->elems) + + +typedef enum +{ + SB_CHAR, + MB_CHAR, + EQUIV_CLASS, + COLL_SYM, + CHAR_CLASS +} bracket_elem_type; + +typedef struct +{ + bracket_elem_type type; + union + { + unsigned char ch; + unsigned char *name; + wchar_t wch; + } opr; +} bracket_elem_t; + + +/* Inline functions for bitset_t operation. */ + +static inline void +bitset_set (bitset_t set, Idx i) +{ + set[i / BITSET_WORD_BITS] |= (bitset_word_t) 1 << i % BITSET_WORD_BITS; +} + +static inline void +bitset_clear (bitset_t set, Idx i) +{ + set[i / BITSET_WORD_BITS] &= ~ ((bitset_word_t) 1 << i % BITSET_WORD_BITS); +} + +static inline bool +bitset_contain (const bitset_t set, Idx i) +{ + return (set[i / BITSET_WORD_BITS] >> i % BITSET_WORD_BITS) & 1; +} + +static inline void +bitset_empty (bitset_t set) +{ + memset (set, '\0', sizeof (bitset_t)); +} + +static inline void +bitset_set_all (bitset_t set) +{ + memset (set, -1, sizeof (bitset_word_t) * (SBC_MAX / BITSET_WORD_BITS)); + if (SBC_MAX % BITSET_WORD_BITS != 0) + set[BITSET_WORDS - 1] = + ((bitset_word_t) 1 << SBC_MAX % BITSET_WORD_BITS) - 1; +} + +static inline void +bitset_copy (bitset_t dest, const bitset_t src) +{ + memcpy (dest, src, sizeof (bitset_t)); +} + +static inline void +bitset_not (bitset_t set) +{ + int bitset_i; + for (bitset_i = 0; bitset_i < SBC_MAX / BITSET_WORD_BITS; ++bitset_i) + set[bitset_i] = ~set[bitset_i]; + if (SBC_MAX % BITSET_WORD_BITS != 0) + set[BITSET_WORDS - 1] = + ((((bitset_word_t) 1 << SBC_MAX % BITSET_WORD_BITS) - 1) + & ~set[BITSET_WORDS - 1]); +} + +static inline void +bitset_merge (bitset_t dest, const bitset_t src) +{ + int bitset_i; + for (bitset_i = 0; bitset_i < BITSET_WORDS; ++bitset_i) + dest[bitset_i] |= src[bitset_i]; +} + +static inline void +bitset_mask (bitset_t dest, const bitset_t src) +{ + int bitset_i; + for (bitset_i = 0; bitset_i < BITSET_WORDS; ++bitset_i) + dest[bitset_i] &= src[bitset_i]; +} + +#ifdef RE_ENABLE_I18N +/* Inline functions for re_string. */ +static inline int +internal_function __attribute ((pure)) +re_string_char_size_at (const re_string_t *pstr, Idx idx) +{ + int byte_idx; + if (pstr->mb_cur_max == 1) + return 1; + for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx) + if (pstr->wcs[idx + byte_idx] != WEOF) + break; + return byte_idx; +} + +static inline wint_t +internal_function __attribute ((pure)) +re_string_wchar_at (const re_string_t *pstr, Idx idx) +{ + if (pstr->mb_cur_max == 1) + return (wint_t) pstr->mbs[idx]; + return (wint_t) pstr->wcs[idx]; +} + +static int +internal_function __attribute ((pure)) +re_string_elem_size_at (const re_string_t *pstr, Idx idx) +{ +# ifdef _LIBC + const unsigned char *p, *extra; + const int32_t *table, *indirect; + int32_t tmp; +# include + uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); + + if (nrules != 0) + { + table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); + extra = (const unsigned char *) + _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); + indirect = (const int32_t *) _NL_CURRENT (LC_COLLATE, + _NL_COLLATE_INDIRECTMB); + p = pstr->mbs + idx; + tmp = findidx (&p); + return p - pstr->mbs - idx; + } + else +# endif /* _LIBC */ + return 1; +} +#endif /* RE_ENABLE_I18N */ + +#ifndef __GNUC_PREREQ +# if defined __GNUC__ && defined __GNUC_MINOR__ +# define __GNUC_PREREQ(maj, min) \ + ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) +# else +# define __GNUC_PREREQ(maj, min) 0 +# endif +#endif + +#if __GNUC_PREREQ (3,4) +# undef __attribute_warn_unused_result__ +# define __attribute_warn_unused_result__ \ + __attribute__ ((__warn_unused_result__)) +#else +# define __attribute_warn_unused_result__ /* empty */ +#endif + +#endif /* _REGEX_INTERNAL_H */ diff -Nru gettext-0.17/gettext-tools/libgrep/strdup.c gettext-0.18.1.1/gettext-tools/libgrep/strdup.c --- gettext-0.17/gettext-tools/libgrep/strdup.c 2007-10-07 21:25:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/strdup.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006, 2007 Free - Software Foundation, Inc. - - This file is part of the GNU C Library. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - -#ifndef _LIBC -# include -#endif - -/* Get specification. */ -#include - -#include - -#undef __strdup -#ifdef _LIBC -# undef strdup -#endif - -#ifndef weak_alias -# define __strdup strdup -#endif - -/* Duplicate S, returning an identical malloc'd string. */ -char * -__strdup (const char *s) -{ - size_t len = strlen (s) + 1; - void *new = malloc (len); - - if (new == NULL) - return NULL; - - return (char *) memcpy (new, s, len); -} -#ifdef libc_hidden_def -libc_hidden_def (__strdup) -#endif -#ifdef weak_alias -weak_alias (__strdup, strdup) -#endif diff -Nru gettext-0.17/gettext-tools/libgrep/wcrtomb.c gettext-0.18.1.1/gettext-tools/libgrep/wcrtomb.c --- gettext-0.17/gettext-tools/libgrep/wcrtomb.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/libgrep/wcrtomb.c 2010-05-24 14:49:27.000000000 +0000 @@ -0,0 +1,53 @@ +/* Convert wide character to multibyte character. + Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Written by Bruno Haible , 2008. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include + +/* Specification. */ +#include + +#include +#include + + +size_t +wcrtomb (char *s, wchar_t wc, mbstate_t *ps) +{ + /* This implementation of wcrtomb on top of wctomb() supports only + stateless encodings. ps must be in the initial state. */ + if (ps != NULL && !mbsinit (ps)) + { + errno = EINVAL; + return (size_t)(-1); + } + + if (s == NULL) + /* We know the NUL wide character corresponds to the NUL character. */ + return 1; + else + { + int ret = wctomb (s, wc); + + if (ret >= 0) + return ret; + else + { + errno = EILSEQ; + return (size_t)(-1); + } + } +} diff -Nru gettext-0.17/gettext-tools/m4/ChangeLog gettext-0.18.1.1/gettext-tools/m4/ChangeLog --- gettext-0.17/gettext-tools/m4/ChangeLog 2007-11-06 23:27:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,77 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-24 Bruno Haible + + Use the newest regex module from gnulib. + * libgrep.m4: Remove file. + * regex.m4: Remove file. + * Makefile.am (EXTRA_DIST): Remove them. + +2010-05-23 Bruno Haible + + Do regex matching purely with regex, not regex + dfa + kwset. + * libgrep.m4 (gt_LIBGREP): Don't invoke gl_HARD_LOCALE. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-04-02 Bruno Haible + + * Makefile.am (aclocal_DATA): Take lib-*.m4 from the + gettext-runtime/gnulib-m4/ directory. + +2009-12-25 Bruno Haible + + * Makefile.am (aclocal_DATA): Add fcntl-o.m4. Remove fcntl_h.m4. + +2009-12-12 Bruno Haible + + * regex.m4: Untabify. + +2009-10-18 Bruno Haible + + * Makefile.am (aclocal_DATA): Add fcntl_h.m4. + +2009-08-15 Bruno Haible + + Stop using gnulib module 'strdup'. + * libgrep.m4 (gt_LIBGREP): Don't invoke gl_FUNC_STRDUP. + +2009-08-03 Bruno Haible + + * setlocale.m4 (gt_SETLOCALE): Fix displayed message with + autoconf-2.64. + +2009-04-11 Bruno Haible + + * exported.m4: New file, extracted from ../configure.ac. + * Makefile.am (EXTRA_DIST): Add it. + +2009-01-25 Bruno Haible + + * Makefile.am (EXTRA_DIST): Remove locale-ja.m4. + +2008-12-18 Bruno Haible + + * locale-ja.m4: Remove file. Moved to gnulib. + +2008-12-17 Bruno Haible + + * libgrep.m4 (gt_LIBGREP): Use AC_FUNC_MBRTOWC instead of + gl_FUNC_MBRTOWC. + +2008-08-17 Bruno Haible + + * Makefile.am (aclocal_DATA): Add threadlib.m4. + +2008-01-13 Bruno Haible + + * locale-ja.m4 (gt_LOCALE_JA): Check that the locale encoding is not + ASCII. Needed for OpenBSD 4.0. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/m4/exported.m4 gettext-0.18.1.1/gettext-tools/m4/exported.m4 --- gettext-0.17/gettext-tools/m4/exported.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/exported.m4 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,21 @@ +# exported.m4 serial 1 (gettext-0.18) +dnl Copyright (C) 2006, 2009 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Prerequisites of the exported.sh script: +dnl Check for nm output filter that yields the exported symbols. +AC_DEFUN([gt_GLOBAL_SYMBOL_PIPE], [ + AC_REQUIRE([AC_PROG_NM]) dnl provided by libtool.m4 + AC_SUBST([NM]) + AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE]) dnl provided by libtool.m4 + GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe + AC_SUBST([GLOBAL_SYMBOL_PIPE]) + if test -n "$GLOBAL_SYMBOL_PIPE"; then + HAVE_GLOBAL_SYMBOL_PIPE=1 + else + HAVE_GLOBAL_SYMBOL_PIPE= + fi + AC_SUBST([HAVE_GLOBAL_SYMBOL_PIPE]) +]) diff -Nru gettext-0.17/gettext-tools/m4/libgrep.m4 gettext-0.18.1.1/gettext-tools/m4/libgrep.m4 --- gettext-0.17/gettext-tools/m4/libgrep.m4 2006-10-25 11:44:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/libgrep.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -# libgrep.m4 serial 2 (gettext-0.16) -dnl Copyright (C) 2005-2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gt_LIBGREP], -[ - AC_REQUIRE([AM_STDBOOL_H]) - AC_REQUIRE([gl_FUNC_MBRTOWC]) - AC_CHECK_FUNC([wcscoll], , - [AC_DEFINE([wcscoll], [wcscmp], - [Define to wcscmp if the function wcscoll does not exist.])]) - m4_pushdef([AC_LIBOBJ], m4_defn([gt_LIBGREP_OBJ])) - m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gt_LIBGREP_REPLACE_FUNCS])) - gl_HARD_LOCALE - gl_FUNC_MEMCHR - gl_FUNC_STRDUP - gl_INCLUDED_REGEX([libgrep/regex.c]) - m4_popdef([AC_REPLACE_FUNCS]) - m4_popdef([AC_LIBOBJ]) - AC_SUBST([LIBGREPOBJS]) -]) - -# Like AC_LIBOBJ, except that the module name goes into LIBGREPOBJS -# instead of into LIBOBJS. -AC_DEFUN([gt_LIBGREP_OBJ], - [LIBGREPOBJS="$LIBGREPOBJS $1.$ac_objext"]) - -# Like AC_REPLACE_FUNCS, except that the module name goes into LIBGREPOBJS -# instead of into LIBOBJS. -AC_DEFUN([gt_LIBGREP_REPLACE_FUNCS], - [AC_CHECK_FUNCS([$1], , [gt_LIBGREP_OBJ($ac_func)])]) diff -Nru gettext-0.17/gettext-tools/m4/locale-ja.m4 gettext-0.18.1.1/gettext-tools/m4/locale-ja.m4 --- gettext-0.17/gettext-tools/m4/locale-ja.m4 2007-10-28 17:49:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/locale-ja.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,115 +0,0 @@ -# locale-ja.m4 serial 3 (gettext-0.17) -dnl Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl Determine the name of a japanese locale with EUC-JP encoding. -AC_DEFUN([gt_LOCALE_JA], -[ - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AM_LANGINFO_CODESET]) - AC_CACHE_CHECK([for a traditional japanese locale], gt_cv_locale_ja, [ - macosx= -changequote(,)dnl - case "$host_os" in - darwin[56]*) ;; - darwin*) macosx=yes;; - esac -changequote([,])dnl - if test -n "$macosx"; then - # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8 - # encodings, but the kernel does not support them. The documentation - # says: - # "... all code that calls BSD system routines should ensure - # that the const *char parameters of these routines are in UTF-8 - # encoding. All BSD system functions expect their string - # parameters to be in UTF-8 encoding and nothing else." - # See the comments in config.charset. Therefore we bypass the test. - gt_cv_locale_ja=none - else - AC_LANG_CONFTEST([AC_LANG_SOURCE([ -changequote(,)dnl -#include -#include -#if HAVE_LANGINFO_CODESET -# include -#endif -#include -#include -struct tm t; -char buf[16]; -int main () -{ - const char *p; - /* Check whether the given locale name is recognized by the system. */ - if (setlocale (LC_ALL, "") == NULL) return 1; - /* Check whether nl_langinfo(CODESET) is nonempty. - On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) - is empty, and the behaviour of Tcl 8.4 in this locale is not useful. */ -#if HAVE_LANGINFO_CODESET - if (nl_langinfo (CODESET) [0] == '\0') return 1; -#endif -#ifdef __CYGWIN__ - /* On Cygwin, avoid locale names without encoding suffix, because the - locale_charset() function relies on the encoding suffix. Note that - LC_ALL is set on the command line. */ - if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; -#endif - /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. - This excludes the UTF-8 encoding. */ - t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; - if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; - for (p = buf; *p != '\0'; p++) - if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) - return 1; - return 0; -} -changequote([,])dnl - ])]) - if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then - # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because - # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the - # configure script would override the LC_ALL setting. Likewise for - # LC_CTYPE, which is also set at the beginning of the configure script. - # Test for the AIX locale name. - if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP - else - # Test for the locale name with explicit encoding suffix. - if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.EUC-JP - else - # Test for the HP-UX, OSF/1, NetBSD locale name. - if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.eucJP - else - # Test for the IRIX, FreeBSD locale name. - if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja_JP.EUC - else - # Test for the Solaris 7 locale name. - if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then - gt_cv_locale_ja=ja - else - # Special test for NetBSD 1.6. - if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then - gt_cv_locale_ja=ja_JP.eucJP - else - # None found. - gt_cv_locale_ja=none - fi - fi - fi - fi - fi - fi - fi - rm -fr conftest* - fi - ]) - LOCALE_JA=$gt_cv_locale_ja - AC_SUBST([LOCALE_JA]) -]) diff -Nru gettext-0.17/gettext-tools/m4/Makefile.am gettext-0.18.1.1/gettext-tools/m4/Makefile.am --- gettext-0.17/gettext-tools/m4/Makefile.am 2007-10-31 12:34:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -4,10 +4,11 @@ aclocaldir = @aclocaldir@ aclocal_DATA = \ - ../../autoconf-lib-link/m4/lib-ld.m4 \ - ../../autoconf-lib-link/m4/lib-link.m4 \ - ../../autoconf-lib-link/m4/lib-prefix.m4 \ + ../../gettext-runtime/gnulib-m4/lib-ld.m4 \ + ../../gettext-runtime/gnulib-m4/lib-link.m4 \ + ../../gettext-runtime/gnulib-m4/lib-prefix.m4 \ ../../gettext-runtime/m4/codeset.m4 \ + ../../gettext-runtime/m4/fcntl-o.m4 \ ../../gettext-runtime/m4/gettext.m4 \ ../../gettext-runtime/m4/glibc2.m4 \ ../../gettext-runtime/m4/glibc21.m4 \ @@ -28,6 +29,7 @@ ../../gettext-runtime/m4/progtest.m4 \ ../../gettext-runtime/m4/size_max.m4 \ ../../gettext-runtime/m4/stdint_h.m4 \ + ../../gettext-runtime/m4/threadlib.m4 \ ../../gettext-runtime/m4/uintmax_t.m4 \ ../../gettext-runtime/m4/visibility.m4 \ ../../gettext-runtime/m4/wchar_t.m4 \ @@ -44,9 +46,7 @@ # Generate this list with # find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012' EXTRA_DIST = README csharpexec-test.exe \ +exported.m4 \ hostname.m4 \ -libgrep.m4 \ -locale-ja.m4 \ -regex.m4 \ setlocale.m4 \ siginfo.m4 diff -Nru gettext-0.17/gettext-tools/m4/Makefile.in gettext-0.18.1.1/gettext-tools/m4/Makefile.in --- gettext-0.17/gettext-tools/m4/Makefile.in 2007-11-06 23:40:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/Makefile.in 2010-06-06 20:12:31.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,8 +19,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -40,28 +42,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -69,13 +84,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -84,23 +100,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -108,68 +132,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -189,13 +243,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -203,6 +257,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -210,19 +271,36 @@ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(aclocaldir)" \ "$(DESTDIR)$(examplesbuildauxdir)" -aclocalDATA_INSTALL = $(INSTALL_DATA) -examplesbuildauxDATA_INSTALL = $(INSTALL_DATA) DATA = $(aclocal_DATA) $(examplesbuildaux_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -263,136 +341,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -406,53 +668,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -465,17 +807,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -483,18 +828,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -509,6 +862,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -519,94 +873,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -616,13 +1098,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -643,8 +1126,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -659,6 +1153,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -672,13 +1167,15 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ aclocal_DATA = \ - ../../autoconf-lib-link/m4/lib-ld.m4 \ - ../../autoconf-lib-link/m4/lib-link.m4 \ - ../../autoconf-lib-link/m4/lib-prefix.m4 \ + ../../gettext-runtime/gnulib-m4/lib-ld.m4 \ + ../../gettext-runtime/gnulib-m4/lib-link.m4 \ + ../../gettext-runtime/gnulib-m4/lib-prefix.m4 \ ../../gettext-runtime/m4/codeset.m4 \ + ../../gettext-runtime/m4/fcntl-o.m4 \ ../../gettext-runtime/m4/gettext.m4 \ ../../gettext-runtime/m4/glibc2.m4 \ ../../gettext-runtime/m4/glibc21.m4 \ @@ -699,6 +1196,7 @@ ../../gettext-runtime/m4/progtest.m4 \ ../../gettext-runtime/m4/size_max.m4 \ ../../gettext-runtime/m4/stdint_h.m4 \ + ../../gettext-runtime/m4/threadlib.m4 \ ../../gettext-runtime/m4/uintmax_t.m4 \ ../../gettext-runtime/m4/visibility.m4 \ ../../gettext-runtime/m4/wchar_t.m4 \ @@ -716,10 +1214,8 @@ # Generate this list with # find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012' EXTRA_DIST = README csharpexec-test.exe \ +exported.m4 \ hostname.m4 \ -libgrep.m4 \ -locale-ja.m4 \ -regex.m4 \ setlocale.m4 \ siginfo.m4 @@ -730,14 +1226,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu m4/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -755,6 +1251,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -764,37 +1261,43 @@ install-aclocalDATA: $(aclocal_DATA) @$(NORMAL_INSTALL) test -z "$(aclocaldir)" || $(MKDIR_P) "$(DESTDIR)$(aclocaldir)" - @list='$(aclocal_DATA)'; for p in $$list; do \ + @list='$(aclocal_DATA)'; test -n "$(aclocaldir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(aclocalDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(aclocaldir)/$$f'"; \ - $(aclocalDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(aclocaldir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(aclocaldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(aclocaldir)" || exit $$?; \ done uninstall-aclocalDATA: @$(NORMAL_UNINSTALL) - @list='$(aclocal_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(aclocaldir)/$$f'"; \ - rm -f "$(DESTDIR)$(aclocaldir)/$$f"; \ - done + @list='$(aclocal_DATA)'; test -n "$(aclocaldir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(aclocaldir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(aclocaldir)" && rm -f $$files install-examplesbuildauxDATA: $(examplesbuildaux_DATA) @$(NORMAL_INSTALL) test -z "$(examplesbuildauxdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesbuildauxdir)" - @list='$(examplesbuildaux_DATA)'; for p in $$list; do \ + @list='$(examplesbuildaux_DATA)'; test -n "$(examplesbuildauxdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(examplesbuildauxDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(examplesbuildauxdir)/$$f'"; \ - $(examplesbuildauxDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(examplesbuildauxdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesbuildauxdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesbuildauxdir)" || exit $$?; \ done uninstall-examplesbuildauxDATA: @$(NORMAL_UNINSTALL) - @list='$(examplesbuildaux_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(examplesbuildauxdir)/$$f'"; \ - rm -f "$(DESTDIR)$(examplesbuildauxdir)/$$f"; \ - done + @list='$(examplesbuildaux_DATA)'; test -n "$(examplesbuildauxdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(examplesbuildauxdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(examplesbuildauxdir)" && rm -f $$files tags: TAGS TAGS: @@ -818,13 +1321,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -855,6 +1362,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -873,6 +1381,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -881,18 +1391,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -929,6 +1449,7 @@ uninstall-aclocalDATA uninstall-am \ uninstall-examplesbuildauxDATA + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/m4/regex.m4 gettext-0.18.1.1/gettext-tools/m4/regex.m4 --- gettext-0.17/gettext-tools/m4/regex.m4 2006-08-17 11:47:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/regex.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,127 +0,0 @@ -#serial 24 - -dnl Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2006 Free -dnl Software Foundation, Inc. -dnl -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Initially derived from code in GNU grep. -dnl Mostly written by Jim Meyering. - -AC_DEFUN([gl_REGEX], -[ - gl_INCLUDED_REGEX([lib/regex.c]) -]) - -dnl Usage: gl_INCLUDED_REGEX([lib/regex.c]) -dnl -AC_DEFUN([gl_INCLUDED_REGEX], - [ - dnl Even packages that don't use regex.c can use this macro. - dnl Of course, for them it doesn't do anything. - - # Assume we'll default to using the included regex.c. - ac_use_included_regex=yes - - # However, if the system regex support is good enough that it passes the - # the following run test, then default to *not* using the included regex.c. - # If cross compiling, assume the test would fail and use the included - # regex.c. The first failing regular expression is from `Spencer ere - # test #75' in grep-2.3. - AC_CACHE_CHECK([for working re_compile_pattern], - jm_cv_func_working_re_compile_pattern, - [AC_TRY_RUN( -[#include -#include -#include -#include - int - main () - { - static struct re_pattern_buffer regex; - const char *s; - struct re_registers regs; - re_set_syntax (RE_SYNTAX_POSIX_EGREP); - memset (®ex, 0, sizeof (regex)); - [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);] - /* This should fail with _Invalid character class name_ error. */ - if (!s) - exit (1); - - /* This should succeed, but doesn't for e.g. glibc-2.1.3. */ - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("{1", 2, ®ex); - - if (s) - exit (1); - - /* The following example is derived from a problem report - against gawk from Jorge Stolfi . */ - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("[[an\371]]*n", 7, ®ex); - if (s) - exit (1); - - /* This should match, but doesn't for e.g. glibc-2.2.1. */ - if (re_match (®ex, "an", 2, 0, ®s) != 2) - exit (1); - - memset (®ex, 0, sizeof (regex)); - s = re_compile_pattern ("x", 1, ®ex); - if (s) - exit (1); - - /* The version of regex.c in e.g. GNU libc-2.2.93 didn't - work with a negative RANGE argument. */ - if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1) - exit (1); - - exit (0); - } - ], - jm_cv_func_working_re_compile_pattern=yes, - jm_cv_func_working_re_compile_pattern=no, - dnl When crosscompiling, assume it's broken. - jm_cv_func_working_re_compile_pattern=no)]) - if test $jm_cv_func_working_re_compile_pattern = yes; then - ac_use_included_regex=no - fi - - test -n "$1" || AC_MSG_ERROR([missing argument]) - m4_syscmd([test -f $1]) - ifelse(m4_sysval, 0, - [ - AC_ARG_WITH(included-regex, - [ --without-included-regex don't compile regex; this is the default on - systems with version 2 of the GNU C library - (use with caution on other system)], - jm_with_regex=$withval, - jm_with_regex=$ac_use_included_regex) - if test "$jm_with_regex" = yes; then - AC_LIBOBJ(regex) - gl_PREREQ_REGEX - fi - ], - ) - ] -) - -# Prerequisites of lib/regex.c. -AC_DEFUN([gl_PREREQ_REGEX], -[ - dnl FIXME: Maybe provide a btowc replacement someday: Solaris 2.5.1 lacks it. - dnl FIXME: Check for wctype and iswctype, and and add -lw if necessary - dnl to get them. - - dnl Persuade glibc to declare mempcpy(). - AC_REQUIRE([AC_GNU_SOURCE]) - - AC_REQUIRE([AC_C_RESTRICT]) - AC_REQUIRE([AC_FUNC_ALLOCA]) - AC_REQUIRE([AC_HEADER_STDC]) - AC_CHECK_HEADERS_ONCE(wchar.h wctype.h) - AC_CHECK_FUNCS_ONCE(isascii mempcpy) - AC_CHECK_FUNCS(btowc) -]) diff -Nru gettext-0.17/gettext-tools/m4/setlocale.m4 gettext-0.18.1.1/gettext-tools/m4/setlocale.m4 --- gettext-0.17/gettext-tools/m4/setlocale.m4 2006-06-30 14:14:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/m4/setlocale.m4 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ -# setlocale.m4 serial 3 (gettext-0.15) -dnl Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. +# setlocale.m4 serial 4 (gettext-0.18) +dnl Copyright (C) 2001-2002, 2006, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -24,8 +24,8 @@ ], [], gt_cv_proto_setlocale_arg1="", gt_cv_proto_setlocale_arg1="const") gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"]) gt_cv_proto_setlocale=`echo "[$]gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'` -AC_MSG_RESULT([$]{ac_t:- - }[$]gt_cv_proto_setlocale) +AC_MSG_RESULT([ + $gt_cv_proto_setlocale]) AC_DEFINE_UNQUOTED(SETLOCALE_CONST,$gt_cv_proto_setlocale_arg1, [Define as const if the declaration of setlocale() needs const.]) ]) diff -Nru gettext-0.17/gettext-tools/Makefile.am gettext-0.18.1.1/gettext-tools/Makefile.am --- gettext-0.17/gettext-tools/Makefile.am 2007-10-28 15:22:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools directory of GNU gettext -## Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1999, 2000-2007, 2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies ACLOCAL = ../build-aux/fixaclocal @ACLOCAL@ -ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 +ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples @@ -29,7 +29,7 @@ # Files installed for use by gettextize. gettextsrcdir = $(datadir)/gettext -gettextsrc_SCRIPTS = ../autoconf-lib-link/config.rpath +gettextsrc_SCRIPTS = ../build-aux/config.rpath # Files installed for the examples. diff -Nru gettext-0.17/gettext-tools/Makefile.in gettext-0.18.1.1/gettext-tools/Makefile.in --- gettext-0.17/gettext-tools/Makefile.in 2007-11-06 23:40:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/Makefile.in 2010-06-06 20:12:33.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -17,8 +18,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -60,28 +62,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -89,13 +104,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -104,23 +120,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -128,68 +152,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -209,13 +263,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -226,12 +280,39 @@ CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = csharpcomp.sh csharpexec.sh javacomp.sh \ javaexec.sh intl/Makefile +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(gettextsrcdir)" \ "$(DESTDIR)$(examplesbuildauxdir)" -gettextsrcSCRIPT_INSTALL = $(INSTALL_SCRIPT) SCRIPTS = $(gettextsrc_SCRIPTS) depcomp = am__depfiles_maybe = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -241,16 +322,12 @@ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -examplesbuildauxDATA_INSTALL = $(INSTALL_DATA) DATA = $(examplesbuildaux_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -258,9 +335,34 @@ distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print @@ -269,8 +371,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -311,136 +417,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -454,53 +744,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -513,17 +883,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -531,18 +904,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -557,6 +938,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -567,94 +949,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -664,13 +1174,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -691,8 +1202,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -707,6 +1229,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -720,10 +1243,11 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4 +ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples # Allow users to use "gnulib-tool --update". @@ -737,7 +1261,7 @@ # Files installed for use by gettextize. gettextsrcdir = $(datadir)/gettext -gettextsrc_SCRIPTS = ../autoconf-lib-link/config.rpath +gettextsrc_SCRIPTS = ../build-aux/config.rpath # Files installed for the examples. examplesbuildauxdir = $(docdir)/examples/build-aux @@ -755,15 +1279,15 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -779,9 +1303,10 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ @@ -793,7 +1318,7 @@ @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ @@ -812,22 +1337,37 @@ install-gettextsrcSCRIPTS: $(gettextsrc_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(gettextsrcdir)" || $(MKDIR_P) "$(DESTDIR)$(gettextsrcdir)" - @list='$(gettextsrc_SCRIPTS)'; for p in $$list; do \ + @list='$(gettextsrc_SCRIPTS)'; test -n "$(gettextsrcdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(gettextsrcSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - $(gettextsrcSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(gettextsrcdir)/$$f"; \ - else :; fi; \ - done + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(gettextsrcdir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(gettextsrcdir)$$dir" || exit $$?; \ + } \ + ; done uninstall-gettextsrcSCRIPTS: @$(NORMAL_UNINSTALL) - @list='$(gettextsrc_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - rm -f "$(DESTDIR)$(gettextsrcdir)/$$f"; \ - done + @list='$(gettextsrc_SCRIPTS)'; test -n "$(gettextsrcdir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(gettextsrcdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(gettextsrcdir)" && rm -f $$files mostlyclean-libtool: -rm -f *.lo @@ -836,24 +1376,27 @@ -rm -rf .libs _libs distclean-libtool: - -rm -f libtool + -rm -f libtool config.lt install-examplesbuildauxDATA: $(examplesbuildaux_DATA) @$(NORMAL_INSTALL) test -z "$(examplesbuildauxdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesbuildauxdir)" - @list='$(examplesbuildaux_DATA)'; for p in $$list; do \ + @list='$(examplesbuildaux_DATA)'; test -n "$(examplesbuildauxdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(examplesbuildauxDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(examplesbuildauxdir)/$$f'"; \ - $(examplesbuildauxDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(examplesbuildauxdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesbuildauxdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesbuildauxdir)" || exit $$?; \ done uninstall-examplesbuildauxDATA: @$(NORMAL_UNINSTALL) - @list='$(examplesbuildaux_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(examplesbuildauxdir)/$$f'"; \ - rm -f "$(DESTDIR)$(examplesbuildauxdir)/$$f"; \ - done + @list='$(examplesbuildaux_DATA)'; test -n "$(examplesbuildauxdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(examplesbuildauxdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(examplesbuildauxdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -862,7 +1405,7 @@ # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -879,7 +1422,7 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ @@ -887,7 +1430,7 @@ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -913,16 +1456,16 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) @@ -930,14 +1473,14 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -949,46 +1492,50 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -1004,38 +1551,55 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -1044,6 +1608,14 @@ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -1067,13 +1639,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -1081,9 +1657,11 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ --with-included-gettext \ $(DISTCHECK_CONFIGURE_FLAGS) \ @@ -1106,13 +1684,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -1158,6 +1738,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -1178,6 +1759,8 @@ html: html-recursive +html-am: + info: info-recursive info-am: @@ -1187,18 +1770,28 @@ install-dvi: install-dvi-recursive +install-dvi-am: + install-exec-am: install-html: install-html-recursive +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: install-pdf: install-pdf-recursive +install-pdf-am: + install-ps: install-ps-recursive +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -1222,26 +1815,27 @@ uninstall-am: uninstall-examplesbuildauxDATA \ uninstall-gettextsrcSCRIPTS -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ + ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am all-local am--refresh check check-am clean \ clean-generic clean-libtool ctags ctags-recursive dist \ - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \ - distcheck distclean distclean-generic distclean-hdr \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-examplesbuildauxDATA install-exec \ - install-exec-am install-gettextsrcSCRIPTS install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-examplesbuildauxDATA uninstall-gettextsrcSCRIPTS + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-examplesbuildauxDATA \ + install-exec install-exec-am install-gettextsrcSCRIPTS \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ + uninstall uninstall-am uninstall-examplesbuildauxDATA \ + uninstall-gettextsrcSCRIPTS # Files copied from other directories. @@ -1249,6 +1843,7 @@ all-local: $(srcdir)/ABOUT-NLS $(srcdir)/ABOUT-NLS: $(srcdir)/../gettext-runtime/ABOUT-NLS cp $(srcdir)/../gettext-runtime/ABOUT-NLS $(srcdir)/ABOUT-NLS + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/man/autopoint.1 gettext-0.18.1.1/gettext-tools/man/autopoint.1 --- gettext-0.17/gettext-tools/man/autopoint.1 2007-11-07 00:33:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/autopoint.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH AUTOPOINT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH AUTOPOINT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME autopoint \- copies standard gettext infrastructure .SH SYNOPSIS @@ -26,10 +26,10 @@ Written by Bruno Haible .SH "REPORTING BUGS" Report bugs to . -.SH COPYRIGHT -Copyright \(co 2002-2007 Free Software Foundation, Inc. +.PP +Uses a versions archive in git format. +Copyright (C) 2002-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later -.br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" diff -Nru gettext-0.17/gettext-tools/man/autopoint.1.html gettext-0.18.1.1/gettext-tools/man/autopoint.1.html --- gettext-0.17/gettext-tools/man/autopoint.1.html 2007-11-07 00:34:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/autopoint.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -13,137 +14,176 @@ OPTIONS
    AUTHOR
    REPORTING BUGS
    -COPYRIGHT
    SEE ALSO

    -

    NAME

    + -
    -autopoint - copies standard gettext infrastructure
    + + +

    autopoint − copies standard gettext +infrastructure

    + +

    SYNOPSIS

    - + -
    -autopoint [OPTION]...
    + + +

    autopoint [OPTION]...

    + +

    DESCRIPTION

    - + -
    -Copies standard gettext infrastructure files into a source -package.
    + + +

    Copies standard gettext infrastructure files into a +source package.

    + +

    OPTIONS

    - + + cols="5" cellspacing="0" cellpadding="0"> -
    ---help
    + + - - -
    -print this help and exit
    +

    −−help

    + + + +

    print this help and exit

    + + + + + -
    ---version
    - + + +

    −−version

    + + -
    -print version information and exit
    - + + +

    print version information and exit

    + + + -
    --f, --force
    - + + +

    −f, −−force

    + + -
    -force overwriting of files that already exist
    - + + +

    force overwriting of files that already exist

    + + + -
    --n, --dry-run
    - + + +

    −n, +−−dry−run

    + + -
    -print modifications but don't perform them
    + + +

    print modifications but don’t perform them

    + +

    AUTHOR

    - + -
    -Written by Bruno Haible
    + + +

    Written by Bruno Haible

    + +

    REPORTING BUGS

    - - - -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    - -

    COPYRIGHT

    - + -
    -Copyright 2002-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later -<http://gnu.org/licenses/gpl.html>
    -This is free software: you are free to change and -redistribute it. There is NO WARRANTY, to the extent -permitted by law.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    Uses a versions archive in git format. Copyright (C) +2002-2010 Free Software Foundation, Inc. License GPLv3+: GNU +GPL version 3 or later +<http://gnu.org/licenses/gpl.html> This is free +software: you are free to change and redistribute it. There +is NO WARRANTY, to the extent permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for autopoint is maintained as -a Texinfo manual. If the info and autopoint + +

    The full documentation for autopoint is maintained +as a Texinfo manual. If the info and autopoint programs are properly installed at your site, the -command

    - +command

    + + + -
    -info autopoint
    - + + +

    info autopoint

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/ChangeLog gettext-0.18.1.1/gettext-tools/man/ChangeLog --- gettext-0.17/gettext-tools/man/ChangeLog 2007-11-06 23:27:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,11 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/man/gettextize.1 gettext-0.18.1.1/gettext-tools/man/gettextize.1 --- gettext-0.17/gettext-tools/man/gettextize.1 2007-11-07 00:33:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/gettextize.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH GETTEXTIZE "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH GETTEXTIZE "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME gettextize \- install or upgrade gettext infrastructure .SH SYNOPSIS @@ -21,7 +21,7 @@ force writing of new files even if old exist .TP \fB\-\-intl\fR -install libintl in a subdirectory +install libintl in a subdirectory (deprecated) .TP \fB\-\-po\-dir\fR=\fIDIR\fR specify directory with PO files @@ -39,7 +39,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/gettextize.1.html gettext-0.18.1.1/gettext-tools/man/gettextize.1.html --- gettext-0.17/gettext-tools/man/gettextize.1.html 2007-11-07 00:34:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/gettextize.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -17,181 +18,248 @@ SEE ALSO

    -

    NAME

    + -
    -gettextize - install or upgrade gettext infrastructure
    + + +

    gettextize − install or upgrade gettext +infrastructure

    + +

    SYNOPSIS

    - + -
    -gettextize [OPTION]... -[package-dir]
    + + +

    gettextize [OPTION]... +[package-dir]

    + +

    DESCRIPTION

    - + -
    -Prepares a source package to use gettext.
    + + +

    Prepares a source package to use gettext.

    + +

    OPTIONS

    - + + cols="5" cellspacing="0" cellpadding="0"> -
    ---help
    + + - - -
    -print this help and exit
    +

    −−help

    + + + +

    print this help and exit

    + + + + + -
    ---version
    - + + +

    −−version

    + + -
    -print version information and exit
    - + + +

    print version information and exit

    + + + -
    --f, --force
    - + + +

    −f, −−force

    + + -
    -force writing of new files even if old exist
    - + + +

    force writing of new files even if old exist

    + + + + cols="4" cellspacing="0" cellpadding="0"> -
    ---intl
    + + - - -
    -install libintl in a subdirectory
    +

    −−intl

    + + + +

    install libintl in a subdirectory (deprecated)

    + + + -
    ---po-dir=DIR
    - + + +

    −−po−dir=DIR

    + + -
    -specify directory with PO files
    - + + +

    specify directory with PO files

    + + + -
    ---no-changelog
    - + + +

    −−no−changelog

    + + -
    -don't update or create ChangeLog files
    - + + +

    don’t update or create ChangeLog files

    + + + -
    ---symlink
    - + + +

    −−symlink

    + + -
    -make symbolic links instead of copying files
    - + + +

    make symbolic links instead of copying files

    + + + -
    --n, --dry-run
    - + + +

    −n, +−−dry−run

    + + -
    -print modifications but don't perform them
    + + +

    print modifications but don’t perform them

    + +

    AUTHOR

    - + -
    -Written by Ulrich Drepper
    + + +

    Written by Ulrich Drepper

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for gettextize is maintained -as a Texinfo manual. If the info and + +

    The full documentation for gettextize is +maintained as a Texinfo manual. If the info and gettextize programs are properly installed at your -site, the command

    - +site, the command

    + + + -
    -info gettextize
    - + + +

    info gettextize

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/Makefile.in gettext-0.18.1.1/gettext-tools/man/Makefile.in --- gettext-0.17/gettext-tools/man/Makefile.in 2007-11-06 23:40:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/Makefile.in 2010-06-06 20:12:31.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -37,28 +39,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -66,13 +81,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -81,23 +97,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -105,68 +129,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -186,13 +240,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -200,8 +254,36 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = x-to-1 +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff @@ -211,8 +293,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -253,136 +339,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -396,53 +666,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -455,17 +805,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -473,18 +826,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -499,6 +860,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -509,94 +871,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -606,13 +1096,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -633,8 +1124,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -649,6 +1151,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -662,6 +1165,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -712,14 +1216,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits man/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits man/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits man/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits man/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -737,6 +1241,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): x-to-1: $(top_builddir)/config.status $(srcdir)/x-to-1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ @@ -745,51 +1250,44 @@ clean-libtool: -rm -rf .libs _libs -install-man1: $(man1_MANS) $(man_MANS) +install-man1: $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ done; \ - for i in $$list; do \ - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ - done + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + uninstall-man1: @$(NORMAL_UNINSTALL) - @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ - for i in $$l2; do \ - case "$$i" in \ - *.1*) list="$$list $$i" ;; \ - esac; \ - done; \ - for i in $$list; do \ - ext=`echo $$i | sed -e 's/^.*\\.//'`; \ - case "$$ext" in \ - 1*) ;; \ - *) ext='1' ;; \ - esac; \ - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ - inst=`echo $$inst | sed -e 's/^.*\///'`; \ - inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ - rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ - done + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } tags: TAGS TAGS: @@ -798,6 +1296,19 @@ distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -813,13 +1324,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -850,6 +1365,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -879,6 +1395,8 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am @@ -887,12 +1405,18 @@ install-info: install-info-am +install-info-am: + install-man: install-man1 install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -1066,6 +1590,7 @@ for file in $(man_HTML); do \ $(RM) $(DESTDIR)$(htmldir)/$$file; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/man/msgattrib.1 gettext-0.18.1.1/gettext-tools/man/msgattrib.1 --- gettext-0.17/gettext-tools/man/msgattrib.1 2007-11-07 00:33:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgattrib.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGATTRIB "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGATTRIB "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgattrib \- attribute matching and manipulation on message catalog .SH SYNOPSIS @@ -84,6 +84,16 @@ input file is in NeXTstep/GNUstep .strings syntax .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -135,7 +145,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgattrib.1.html gettext-0.18.1.1/gettext-tools/man/msgattrib.1.html --- gettext-0.17/gettext-tools/man/msgattrib.1.html 2007-11-07 00:33:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgattrib.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,572 +17,855 @@ SEE ALSO

    -

    NAME

    + -
    -msgattrib - attribute matching and manipulation on message catalog
    + + +

    msgattrib − attribute matching and manipulation on +message catalog

    + +

    SYNOPSIS

    - + -
    -msgattrib [OPTION] -[INPUTFILE]
    + + +

    msgattrib [OPTION] [INPUTFILE]

    + +

    DESCRIPTION

    - + -
    -Filters the messages of a translation catalog according to -their attributes, and manipulates the -attributes.
    - + + +

    Filters the messages of a translation catalog according +to their attributes, and manipulates the attributes.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE

    + + -
    -INPUTFILE
    - + + +

    input PO file

    + + + -
    -input PO file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Message selection:

    + + -
    -Message selection:
    - + + +

    −−translated

    + + -
    ---translated
    - + + +

    keep translated, remove untranslated messages

    + + + -
    -keep translated, remove untranslated messages
    - + + +

    −−untranslated

    + + -
    ---untranslated
    - + + +

    keep untranslated, remove translated messages

    + + + -
    -keep untranslated, remove translated messages
    - + + +

    −−no−fuzzy

    + + -
    ---no-fuzzy
    - + + +

    remove ’fuzzy’ marked messages

    + + + -
    -remove 'fuzzy' marked messages
    - + + +

    −−only−fuzzy

    + + -
    ---only-fuzzy
    - + + +

    keep ’fuzzy’ marked messages

    + + + -
    -keep 'fuzzy' marked messages
    - + + +

    −−no−obsolete

    + + -
    ---no-obsolete
    - + + +

    remove obsolete #~ messages

    + + + -
    -remove obsolete #~ messages
    - + + +

    −−only−obsolete

    + + -
    ---only-obsolete
    - + + +

    keep obsolete #~ messages

    + + + -
    -keep obsolete #~ messages
    - + + +

    Attribute manipulation:

    + + -
    -Attribute manipulation:
    - + + +

    −−set−fuzzy

    + + -
    ---set-fuzzy
    - + + +

    set all messages ’fuzzy’

    + + + -
    -set all messages 'fuzzy'
    - + + +

    −−clear−fuzzy

    + + -
    ---clear-fuzzy
    - + + +

    set all messages non-’fuzzy’

    + + + -
    -set all messages non-'fuzzy'
    - + + +

    −−set−obsolete

    + + -
    ---set-obsolete
    - + + +

    set all messages obsolete

    + + + -
    -set all messages obsolete
    - + + +

    −−clear−obsolete

    + + -
    ---clear-obsolete
    - + + +

    set all messages non-obsolete

    + + + -
    -set all messages non-obsolete
    - + + +

    −−clear−previous

    + + -
    ---clear-previous
    - + + +

    remove the "previous msgid" from all +messages

    + + + -
    -remove the "previous msgid" from all -messages
    + + +

    −−only−file=FILE.po

    + + -
    ---only-file=FILE.po
    - + + +

    manipulate only entries listed in FILE.po

    + + + -
    -manipulate only entries listed in FILE.po
    + + +

    −−ignore−file=FILE.po

    + + -
    ---ignore-file=FILE.po
    - + + +

    manipulate only entries not listed in FILE.po

    + + + -
    -manipulate only entries not listed in FILE.po
    - + + +

    −−fuzzy

    + + -
    ---fuzzy
    - + + +

    synonym for −−only−fuzzy +−−clear−fuzzy

    + + + -
    -synonym for --only-fuzzy --clear-fuzzy
    - + + +

    −−obsolete

    + + -
    ---obsolete
    - + + +

    synonym for −−only−obsolete +−−clear−obsolete

    + + + -
    -synonym for --only-obsolete ---clear-obsolete
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input file is in Java .properties syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −−color

    + + -
    --e, --no-escape
    - + + +

    use colors and other text attributes always

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−color=WHEN

    + + -
    --E, --escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−style=STYLEFILE

    + + -
    ---force-po
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -write PO file even if empty
    - + + +

    −e, +−−no−escape

    + + -
    --i, --indent
    - + + +

    do not use C escapes in output (default)

    + + + -
    -write the .po file using indented style
    - + + +

    −E, −−escape

    + + -
    ---no-location
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -do not write '#: filename:line' lines
    - + + +

    −−force−po

    + + -
    --n, --add-location
    - + + +

    write PO file even if empty

    + + + -
    -generate '#: filename:line' lines (default)
    - + + +

    −i, −−indent

    + + -
    ---strict
    - + + +

    write the .po file using indented style

    + + + -
    -write out strict Uniforum conforming .po file
    - + + +

    −−no−location

    + + -
    --p, --properties-output
    - + + +

    do not write ’#: filename:line’ lines

    + + + -
    -write out a Java .properties file
    - + + +

    −n, +−−add−location

    + + -
    ---stringtable-output
    - + + +

    generate ’#: filename:line’ lines +(default)

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−strict

    + + -
    --w, --width=NUMBER
    - + + +

    write out strict Uniforum conforming .po file

    + + + -
    -set output page width
    - + + +

    −p, +−−properties−output

    + + -
    ---no-wrap
    - + + +

    write out a Java .properties file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−stringtable−output

    + + -
    --s, --sort-output
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -generate sorted output
    - + + +

    −w, +−−width=NUMBER

    + + -
    --F, --sort-by-file
    - + + +

    set output page width

    + + + -
    -sort output by file location
    - + + +

    −−no−wrap

    + + -
    -Informative output:
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --h, --help
    - + + +

    −s, +−−sort−output

    + + -
    -display this help and exit
    - + + +

    generate sorted output

    + + + -
    --V, --version
    - + + +

    −F, +−−sort−by−file

    + + + + + + +
    +

    sort output by file location

    +
    + + + + + +
    +

    Informative output:

    + + + + + +
    +

    −h, −−help

    + -
    -output version information and exit
    + + +

    display this help and exit

    + + + + + + + +
    +

    −V, −−version

    + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgattrib is maintained as -a Texinfo manual. If the info and msgattrib + +

    The full documentation for msgattrib is maintained +as a Texinfo manual. If the info and msgattrib programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgattrib
    - + + +

    info msgattrib

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgcat.1 gettext-0.18.1.1/gettext-tools/man/msgcat.1 --- gettext-0.17/gettext-tools/man/msgcat.1 2007-11-07 00:33:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcat.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGCAT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGCAT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgcat \- combines several message catalogs .SH SYNOPSIS @@ -68,6 +68,9 @@ use first available translation for each message, don't merge several translations .TP +\fB\-\-lang\fR=\fICATALOGNAME\fR +set 'Language' field in the header entry +.TP \fB\-\-color\fR use colors and other text attributes always .TP @@ -129,7 +132,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgcat.1.html gettext-0.18.1.1/gettext-tools/man/msgcat.1.html --- gettext-0.17/gettext-tools/man/msgcat.1.html 2007-11-07 00:33:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcat.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,505 +17,724 @@ SEE ALSO

    -

    NAME

    + -
    -msgcat - combines several message catalogs
    + + +

    msgcat − combines several message catalogs

    + +

    SYNOPSIS

    - + -
    -msgcat [OPTION] -[INPUTFILE]...
    + + +

    msgcat [OPTION] [INPUTFILE]...

    + +

    DESCRIPTION

    - + - +
    -Concatenates and merges the specified PO files. Find + +

    Concatenates and merges the specified PO files. Find messages which are common to two or more of the specified PO -files. By using the --more-than option, greater -commonality may be requested before messages are printed. -Conversely, the --less-than option may be used to +files. By using the −−more−than +option, greater commonality may be requested before messages +are printed. Conversely, the +−−less−than option may be used to specify less commonality before messages are printed (i.e. ---less-than=2 will only print the unique -messages). Translations, comments and extract comments will -be cumulated, except that if --use-first is -specified, they will be taken from the first PO file to -define them. File positions from all PO files will be -cumulated.

    - +−−less−than=2 will only +print the unique messages). Translations, comments and +extract comments will be cumulated, except that if +−−use−first is specified, they will +be taken from the first PO file to define them. File +positions from all PO files will be cumulated.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE ...

    + + -
    -INPUTFILE ...
    - + + +

    input files

    + + + -
    -input files
    - + + +

    −f, +−−files−from=FILE

    + + -
    --f, --files-from=FILE
    - + + +

    get list of input files from FILE

    + + + -
    -get list of input files from FILE
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If input file is -, standard input is read.

    + + + -
    -If input file is -, standard input is read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Message selection:

    + + -
    -Message selection:
    - + + +

    -<, +−−less−than=NUMBER

    + + -
    --<, --less-than=NUMBER
    - + + +

    print messages with less than this many definitions, +defaults to infinite if not set

    + + + -
    -print messages with less than this many definitions, -defaults to infinite if not set
    - + + +

    ->, +−−more−than=NUMBER

    + + -
    -->, --more-than=NUMBER
    - + + +

    print messages with more than this many definitions, +defaults to 0 if not set

    + + + -
    -print messages with more than this many definitions, -defaults to 0 if not set
    - + + +

    −u, −−unique

    + + -
    --u, --unique
    - + + +

    shorthand for +−−less−than=2, requests that +only unique messages be printed

    + + + -
    -shorthand for --less-than=2, requests that -only unique messages be printed
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input files are in Java .properties syntax

    + + + -
    -input files are in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input files are in NeXTstep/GNUstep .strings syntax

    + + + -
    -input files are in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −t, +−−to−code=NAME

    + + -
    --t, --to-code=NAME
    - + + +

    encoding for output

    + + + -
    -encoding for output
    - + + +

    −−use−first

    + + -
    ---use-first
    - + + +

    use first available translation for each message, +don’t merge several translations

    + + + -
    -use first available translation for each message, don't -merge several translations
    - + + +

    −−lang=CATALOGNAME

    + + -
    ---color
    - + + +

    set ’Language’ field in the header entry

    + + + -
    -use colors and other text attributes always
    - + + +

    −−color

    + + -
    ---color=WHEN
    - + + +

    use colors and other text attributes always

    + + + -
    -use colors and other text attributes if WHEN. WHEN may be -'always', 'never', 'auto', or 'html'.
    - + + +

    −−color=WHEN

    + + -
    ---style=STYLEFILE
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -specify CSS style rule file for --color
    - + + +

    −−style=STYLEFILE

    + + -
    --e, --no-escape
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −e, +−−no−escape

    + + -
    --E, --escape
    - + + +

    do not use C escapes in output (default)

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −E, −−escape

    + + -
    ---force-po
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -write PO file even if empty
    - + + +

    −−force−po

    + + -
    --i, --indent
    - + + +

    write PO file even if empty

    + + + -
    -write the .po file using indented style
    - + + +

    −i, −−indent

    + + -
    ---no-location
    - + + +

    write the .po file using indented style

    + + + -
    -do not write '#: filename:line' lines
    - + + +

    −−no−location

    + + -
    --n, --add-location
    - + + +

    do not write ’#: filename:line’ lines

    + + + -
    -generate '#: filename:line' lines (default)
    - + + +

    −n, +−−add−location

    + + -
    ---strict
    - + + +

    generate ’#: filename:line’ lines +(default)

    + + + -
    -write out strict Uniforum conforming .po file
    - + + +

    −−strict

    + + -
    --p, --properties-output
    - + + +

    write out strict Uniforum conforming .po file

    + + + -
    -write out a Java .properties file
    - + + +

    −p, +−−properties−output

    + + -
    ---stringtable-output
    - + + +

    write out a Java .properties file

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−stringtable−output

    + + -
    --w, --width=NUMBER
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -set output page width
    - + + +

    −w, +−−width=NUMBER

    + + -
    ---no-wrap
    - + + +

    set output page width

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−no−wrap

    + + -
    --s, --sort-output
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    -generate sorted output
    - + + +

    −s, +−−sort−output

    + + -
    --F, --sort-by-file
    - + + +

    generate sorted output

    + + + -
    -sort output by file location
    - + + +

    −F, +−−sort−by−file

    + + -
    -Informative output:
    - + + +

    sort output by file location

    + + + -
    --h, --help
    - + + +

    Informative output:

    + + -
    -display this help and exit
    - + + +

    −h, −−help

    + + -
    --V, --version
    - + + +

    display this help and exit

    + + + -
    -output version information and exit
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgcat is maintained as a -Texinfo manual. If the info and msgcat + +

    The full documentation for msgcat is maintained as +a Texinfo manual. If the info and msgcat programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgcat
    - + + +

    info msgcat

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgcmp.1 gettext-0.18.1.1/gettext-tools/man/msgcmp.1 --- gettext-0.17/gettext-tools/man/msgcmp.1 2007-11-07 00:33:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcmp.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGCMP "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGCMP "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgcmp \- compare message catalog and template .SH SYNOPSIS @@ -31,6 +31,9 @@ \fB\-m\fR, \fB\-\-multi\-domain\fR apply ref.pot to each of the domains in def.po .TP +\fB\-N\fR, \fB\-\-no\-fuzzy\-matching\fR +do not use fuzzy matching +.TP \fB\-\-use\-fuzzy\fR consider fuzzy entries .TP @@ -56,7 +59,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgcmp.1.html gettext-0.18.1.1/gettext-tools/man/msgcmp.1.html --- gettext-0.17/gettext-tools/man/msgcmp.1.html 2007-11-07 00:33:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcmp.1.html 2010-06-06 18:39:07.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,242 +17,342 @@ SEE ALSO

    -

    NAME

    + -
    -msgcmp - compare message catalog and template
    + + +

    msgcmp − compare message catalog and template

    + +

    SYNOPSIS

    - + -
    -msgcmp [OPTION] def.po -ref.pot
    + + +

    msgcmp [OPTION] def.po ref.pot

    + +

    DESCRIPTION

    - + - +
    -Compare two Uniforum style .po files to check that both + +

    Compare two Uniforum style .po files to check that both contain the same set of msgid strings. The def.po file is an existing PO file with the translations. The ref.pot file is the last created PO file, or a PO Template file (generally created by xgettext). This is useful for checking that you have translated each and every message in your program. Where an exact match cannot be found, fuzzy matching is used -to produce better diagnostics.

    - +to produce better diagnostics.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + + cols="5" cellspacing="0" cellpadding="0"> -
    -Input file location:
    + + +

    def.po

    + + + + +

    translations

    + + + + + -
    -def.po
    - + + +

    ref.pot

    + + -
    -translations
    - + + +

    references to the sources

    + + + -
    -ref.pot
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    -references to the sources
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    --D, --directory=DIRECTORY
    - + + +

    Operation modifiers:

    + + -
    -add DIRECTORY to list for input files search
    - + + +

    −m, +−−multi−domain

    + + -
    -Operation modifiers:
    - + + +

    apply ref.pot to each of the domains in def.po

    + + + -
    --m, --multi-domain
    - + + +

    −N, +−−no−fuzzy−matching

    + + -
    -apply ref.pot to each of the domains in def.po
    - + + +

    do not use fuzzy matching

    + + + -
    ---use-fuzzy
    - + + +

    −−use−fuzzy

    + + -
    -consider fuzzy entries
    - + + +

    consider fuzzy entries

    + + + -
    ---use-untranslated
    - + + +

    −−use−untranslated

    + + -
    -consider untranslated entries
    - + + +

    consider untranslated entries

    + + + -
    -Input file syntax:
    - + + +

    Input file syntax:

    + + -
    --P, --properties-input
    - + + +

    −P, +−−properties−input

    + + -
    -input files are in Java .properties syntax
    - + + +

    input files are in Java .properties syntax

    + + + -
    ---stringtable-input
    - + + +

    −−stringtable−input

    + + -
    -input files are in NeXTstep/GNUstep .strings -syntax
    - + + +

    input files are in NeXTstep/GNUstep .strings syntax

    + + + -
    -Informative output:
    - + + +

    Informative output:

    + + -
    --h, --help
    - + + +

    −h, −−help

    + + -
    -display this help and exit
    - + + +

    display this help and exit

    + + + -
    --V, --version
    - + + +

    −V, −−version

    + + -
    -output version information and exit
    + + +

    output version information and exit

    + +

    AUTHOR

    - + -
    -Written by Peter Miller.
    + + +

    Written by Peter Miller.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgcmp is maintained as a -Texinfo manual. If the info and msgcmp + +

    The full documentation for msgcmp is maintained as +a Texinfo manual. If the info and msgcmp programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgcmp
    - + + +

    info msgcmp

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgcomm.1 gettext-0.18.1.1/gettext-tools/man/msgcomm.1 --- gettext-0.17/gettext-tools/man/msgcomm.1 2007-11-07 00:33:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcomm.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGCOMM "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGCOMM "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgcomm \- match two message catalogs .SH SYNOPSIS @@ -60,6 +60,16 @@ syntax .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -114,7 +124,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgcomm.1.html gettext-0.18.1.1/gettext-tools/man/msgcomm.1.html --- gettext-0.17/gettext-tools/man/msgcomm.1.html 2007-11-07 00:33:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgcomm.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,454 +17,687 @@ SEE ALSO

    -

    NAME

    + -
    -msgcomm - match two message catalogs
    + + +

    msgcomm − match two message catalogs

    + +

    SYNOPSIS

    - + -
    -msgcomm [OPTION] -[INPUTFILE]...
    + + +

    msgcomm [OPTION] [INPUTFILE]...

    + +

    DESCRIPTION

    - + -
    -Find messages which are common to two or more of the -specified PO files. By using the --more-than option, -greater commonality may be requested before messages are -printed. Conversely, the --less-than option may be -used to specify less commonality before messages are printed -(i.e. --less-than=2 will only print the unique -messages). Translations, comments and extract comments will -be preserved, but only from the first PO file to define -them. File positions from all PO files will be -cumulated.
    - + + +

    Find messages which are common to two or more of the +specified PO files. By using the +−−more−than option, greater +commonality may be requested before messages are printed. +Conversely, the −−less−than option +may be used to specify less commonality before messages are +printed (i.e. −−less−than=2 +will only print the unique messages). Translations, comments +and extract comments will be preserved, but only from the +first PO file to define them. File positions from all PO +files will be cumulated.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE ...

    + + -
    -INPUTFILE ...
    - + + +

    input files

    + + + -
    -input files
    - + + +

    −f, +−−files−from=FILE

    + + -
    --f, --files-from=FILE
    - + + +

    get list of input files from FILE

    + + + -
    -get list of input files from FILE
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If input file is -, standard input is read.

    + + + -
    -If input file is -, standard input is read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Message selection:

    + + -
    -Message selection:
    - + + +

    -<, +−−less−than=NUMBER

    + + -
    --<, --less-than=NUMBER
    - + + +

    print messages with less than this many definitions, +defaults to infinite if not set

    + + + -
    -print messages with less than this many definitions, -defaults to infinite if not set
    - + + +

    ->, +−−more−than=NUMBER

    + + -
    -->, --more-than=NUMBER
    - + + +

    print messages with more than this many definitions, +defaults to 1 if not set

    + + + -
    -print messages with more than this many definitions, -defaults to 1 if not set
    - + + +

    −u, −−unique

    + + -
    --u, --unique
    - + + +

    shorthand for +−−less−than=2, requests that +only unique messages be printed

    + + + -
    -shorthand for --less-than=2, requests that -only unique messages be printed
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input files are in Java .properties syntax

    + + + -
    -input files are in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input files are in NeXTstep/GNUstep .strings syntax

    + + + -
    -input files are in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −−color

    + + -
    --e, --no-escape
    - + + +

    use colors and other text attributes always

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−color=WHEN

    + + -
    --E, --escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−style=STYLEFILE

    + + -
    ---force-po
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -write PO file even if empty
    - + + +

    −e, +−−no−escape

    + + -
    --i, --indent
    - + + +

    do not use C escapes in output (default)

    + + + -
    -write the .po file using indented style
    - + + +

    −E, −−escape

    + + -
    ---no-location
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -do not write '#: filename:line' lines
    - + + +

    −−force−po

    + + -
    --n, --add-location
    - + + +

    write PO file even if empty

    + + + -
    -generate '#: filename:line' lines (default)
    - + + +

    −i, −−indent

    + + -
    ---strict
    - + + +

    write the .po file using indented style

    + + + -
    -write out strict Uniforum conforming .po file
    - + + +

    −−no−location

    + + -
    --p, --properties-output
    - + + +

    do not write ’#: filename:line’ lines

    + + + -
    -write out a Java .properties file
    - + + +

    −n, +−−add−location

    + + -
    ---stringtable-output
    - + + +

    generate ’#: filename:line’ lines +(default)

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−strict

    + + -
    --w, --width=NUMBER
    - + + +

    write out strict Uniforum conforming .po file

    + + + -
    -set output page width
    - + + +

    −p, +−−properties−output

    + + -
    ---no-wrap
    - + + +

    write out a Java .properties file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−stringtable−output

    + + -
    --s, --sort-output
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -generate sorted output
    - + + +

    −w, +−−width=NUMBER

    + + -
    --F, --sort-by-file
    - + + +

    set output page width

    + + + -
    -sort output by file location
    - + + +

    −−no−wrap

    + + -
    ---omit-header
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    -don't write header with `msgid ""' -entry
    - + + +

    −s, +−−sort−output

    + + -
    -Informative output:
    - + + +

    generate sorted output

    + + + -
    --h, --help
    - + + +

    −F, +−−sort−by−file

    + + -
    -display this help and exit
    - + + +

    sort output by file location

    + + + -
    --V, --version
    - + + +

    −−omit−header

    + + -
    -output version information and exit
    + + +

    don’t write header with ‘msgid +""’ entry

    + + + + + + + +
    +

    Informative output:

    + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + + + + + +
    +

    −V, −−version

    + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Peter Miller.
    + + +

    Written by Peter Miller.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgcomm is maintained as a -Texinfo manual. If the info and msgcomm + +

    The full documentation for msgcomm is maintained +as a Texinfo manual. If the info and msgcomm programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgcomm
    - + + +

    info msgcomm

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgconv.1 gettext-0.18.1.1/gettext-tools/man/msgconv.1 --- gettext-0.17/gettext-tools/man/msgconv.1 2007-11-07 00:33:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgconv.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGCONV "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGCONV "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgconv \- character set conversion for message catalog .SH SYNOPSIS @@ -42,6 +42,16 @@ input file is in NeXTstep/GNUstep .strings syntax .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -93,7 +103,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgconv.1.html gettext-0.18.1.1/gettext-tools/man/msgconv.1.html --- gettext-0.17/gettext-tools/man/msgconv.1.html 2007-11-07 00:33:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgconv.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,402 +17,614 @@ SEE ALSO

    -

    NAME

    + -
    -msgconv - character set conversion for message catalog
    + + +

    msgconv − character set conversion for message +catalog

    + +

    SYNOPSIS

    - + -
    -msgconv [OPTION] -[INPUTFILE]
    + + +

    msgconv [OPTION] [INPUTFILE]

    + +

    DESCRIPTION

    - + -
    -Converts a translation catalog to a different character -encoding.
    - + + +

    Converts a translation catalog to a different character +encoding.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE

    + + -
    -INPUTFILE
    - + + +

    input PO file

    + + + -
    -input PO file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Conversion target:

    + + -
    -Conversion target:
    - + + +

    −t, +−−to−code=NAME

    + + -
    --t, --to-code=NAME
    - + + +

    encoding for output

    + + + -
    -encoding for output
    - + + +

    The default encoding is the current locale’s +encoding.

    + + + -
    -The default encoding is the current locale's -encoding.
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input file is in Java .properties syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −−color

    + + -
    --e, --no-escape
    - + + +

    use colors and other text attributes always

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−color=WHEN

    + + -
    --E, --escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−style=STYLEFILE

    + + -
    ---force-po
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -write PO file even if empty
    - + + +

    −e, +−−no−escape

    + + -
    --i, --indent
    - + + +

    do not use C escapes in output (default)

    + + + -
    -indented output style
    - + + +

    −E, −−escape

    + + -
    ---no-location
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -suppress '#: filename:line' lines
    - + + +

    −−force−po

    + + -
    ---add-location
    - + + +

    write PO file even if empty

    + + + -
    -preserve '#: filename:line' lines (default)
    - + + +

    −i, −−indent

    + + -
    ---strict
    - + + +

    indented output style

    + + + -
    -strict Uniforum output style
    - + + +

    −−no−location

    + + -
    --p, --properties-output
    - + + +

    suppress ’#: filename:line’ lines

    + + + -
    -write out a Java .properties file
    - + + +

    −−add−location

    + + -
    ---stringtable-output
    - + + +

    preserve ’#: filename:line’ lines +(default)

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−strict

    + + -
    --w, --width=NUMBER
    - + + +

    strict Uniforum output style

    + + + -
    -set output page width
    - + + +

    −p, +−−properties−output

    + + -
    ---no-wrap
    - + + +

    write out a Java .properties file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−stringtable−output

    + + -
    --s, --sort-output
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -generate sorted output
    - + + +

    −w, +−−width=NUMBER

    + + -
    --F, --sort-by-file
    - + + +

    set output page width

    + + + -
    -sort output by file location
    - + + +

    −−no−wrap

    + + -
    -Informative output:
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --h, --help
    - + + +

    −s, +−−sort−output

    + + -
    -display this help and exit
    - + + +

    generate sorted output

    + + + -
    --V, --version
    - + + +

    −F, +−−sort−by−file

    + + + + + + +
    +

    sort output by file location

    +
    + -
    -output version information and exit
    + + +

    Informative output:

    + + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + + + + + +
    +

    −V, −−version

    + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgconv is maintained as a -Texinfo manual. If the info and msgconv + +

    The full documentation for msgconv is maintained +as a Texinfo manual. If the info and msgconv programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgconv
    - + + +

    info msgconv

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgen.1 gettext-0.18.1.1/gettext-tools/man/msgen.1 --- gettext-0.17/gettext-tools/man/msgen.1 2007-11-07 00:33:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgen.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGEN "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGEN "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgen \- create English message catalog .SH SYNOPSIS @@ -39,6 +39,19 @@ input file is in NeXTstep/GNUstep .strings syntax .SS "Output details:" .TP +\fB\-\-lang\fR=\fICATALOGNAME\fR +set 'Language' field in the header entry +.TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -90,7 +103,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgen.1.html gettext-0.18.1.1/gettext-tools/man/msgen.1.html --- gettext-0.17/gettext-tools/man/msgen.1.html 2007-11-07 00:33:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgen.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,378 +17,595 @@ SEE ALSO

    -

    NAME

    + -
    -msgen - create English message catalog
    + + +

    msgen − create English message catalog

    + +

    SYNOPSIS

    - + -
    -msgen [OPTION] INPUTFILE
    + + +

    msgen [OPTION] INPUTFILE

    + +

    DESCRIPTION

    - + - +
    -Creates an English translation catalog. The input file is + +

    Creates an English translation catalog. The input file is the last created English PO file, or a PO Template file (generally created by xgettext). Untranslated entries are -assigned a translation that is identical to the -msgid.

    - +assigned a translation that is identical to the msgid.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE

    + + -
    -INPUTFILE
    - + + +

    input PO or POT file

    + + + -
    -input PO or POT file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If input file is -, standard input is read.

    + + + -
    -If input file is -, standard input is read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input file is in Java .properties syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −−lang=CATALOGNAME

    + + -
    --e, --no-escape
    - + + +

    set ’Language’ field in the header entry

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−color

    + + -
    --E, --escape
    - + + +

    use colors and other text attributes always

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−color=WHEN

    + + -
    ---force-po
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -write PO file even if empty
    - + + +

    −−style=STYLEFILE

    + + -
    --i, --indent
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -indented output style
    - + + +

    −e, +−−no−escape

    + + -
    ---no-location
    - + + +

    do not use C escapes in output (default)

    + + + -
    -suppress '#: filename:line' lines
    - + + +

    −E, −−escape

    + + -
    ---add-location
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -preserve '#: filename:line' lines (default)
    - + + +

    −−force−po

    + + -
    ---strict
    - + + +

    write PO file even if empty

    + + + -
    -strict Uniforum output style
    - + + +

    −i, −−indent

    + + -
    --p, --properties-output
    - + + +

    indented output style

    + + + -
    -write out a Java .properties file
    - + + +

    −−no−location

    + + -
    ---stringtable-output
    - + + +

    suppress ’#: filename:line’ lines

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−add−location

    + + -
    --w, --width=NUMBER
    - + + +

    preserve ’#: filename:line’ lines +(default)

    + + + -
    -set output page width
    - + + +

    −−strict

    + + -
    ---no-wrap
    - + + +

    strict Uniforum output style

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −p, +−−properties−output

    + + -
    --s, --sort-output
    - + + +

    write out a Java .properties file

    + + + -
    -generate sorted output
    - + + +

    −−stringtable−output

    + + -
    --F, --sort-by-file
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -sort output by file location
    - + + +

    −w, +−−width=NUMBER

    + + -
    -Informative output:
    - + + +

    set output page width

    + + + -
    --h, --help
    - + + +

    −−no−wrap

    + + -
    -display this help and exit
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --V, --version
    - + + +

    −s, +−−sort−output

    + + + + + + +
    +

    generate sorted output

    +
    + + + + + +
    +

    −F, +−−sort−by−file

    + + + + + +
    +

    sort output by file location

    +
    + + + + + +
    +

    Informative output:

    + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + -
    -output version information and exit
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + -
    -The full documentation for msgen is maintained as a -Texinfo manual. If the info and msgen programs -are properly installed at your site, the -command
    - + + +

    The full documentation for msgen is maintained as +a Texinfo manual. If the info and msgen +programs are properly installed at your site, the +command

    + + + -
    -info msgen
    - + + +

    info msgen

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgexec.1 gettext-0.18.1.1/gettext-tools/man/msgexec.1 --- gettext-0.17/gettext-tools/man/msgexec.1 2007-11-07 00:33:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgexec.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGEXEC "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGEXEC "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgexec \- process translations of message catalog .SH SYNOPSIS @@ -46,7 +46,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgexec.1.html gettext-0.18.1.1/gettext-tools/man/msgexec.1.html --- gettext-0.17/gettext-tools/man/msgexec.1.html 2007-11-07 00:33:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgexec.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,202 +17,263 @@ SEE ALSO

    -

    NAME

    + -
    -msgexec - process translations of message catalog
    + + +

    msgexec − process translations of message +catalog

    + +

    SYNOPSIS

    - + -
    -msgexec [OPTION] COMMAND -[COMMAND-OPTION]
    + + +

    msgexec [OPTION] COMMAND +[COMMAND-OPTION]

    + +

    DESCRIPTION

    - + - +
    -Applies a command to all translations of a translation + +

    Applies a command to all translations of a translation catalog. The COMMAND can be any program that reads a translation from standard input. It is invoked once for each -translation. Its output becomes msgexec's output. msgexec's -return code is the maximum return code across all -invocations.

    - - - -
    -A special builtin command called '0' outputs the -translation, followed by a null byte. The output of +translation. Its output becomes msgexec’s output. +msgexec’s return code is the maximum return code +across all invocations.

    + +

    A special builtin command called ’0’ outputs +the translation, followed by a null byte. The output of "msgexec 0" is suitable as input for "xargs --0".

    - - - -
    -Mandatory arguments to long options are mandatory for short -options too.
    - +−0".

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Input file location:
    - + + +

    Input file location:

    + + -
    --i, --input=INPUTFILE
    - + + +

    −i, +−−input=INPUTFILE

    + + -
    -input PO file
    - + + +

    input PO file

    + + + -
    --D, --directory=DIRECTORY
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    -add DIRECTORY to list for input files search
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -Input file syntax:
    - + + +

    Input file syntax:

    + + -
    --P, --properties-input
    - + + +

    −P, +−−properties−input

    + + -
    -input file is in Java .properties syntax
    - + + +

    input file is in Java .properties syntax

    + + + -
    ---stringtable-input
    - + + +

    −−stringtable−input

    + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -Informative output:
    - + + +

    Informative output:

    + + -
    --h, --help
    - + + +

    −h, −−help

    + + -
    -display this help and exit
    - + + +

    display this help and exit

    + + + -
    --V, --version
    - + + +

    −V, −−version

    + + -
    -output version information and exit
    + + +

    output version information and exit

    + +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgexec is maintained as a -Texinfo manual. If the info and msgexec + +

    The full documentation for msgexec is maintained +as a Texinfo manual. If the info and msgexec programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgexec
    - + + +

    info msgexec

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgfilter.1 gettext-0.18.1.1/gettext-tools/man/msgfilter.1 --- gettext-0.17/gettext-tools/man/msgfilter.1 2007-11-07 00:33:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgfilter.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGFILTER "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGFILTER "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgfilter \- edit translations of message catalog .SH SYNOPSIS @@ -50,6 +50,16 @@ input file is in NeXTstep/GNUstep .strings syntax .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -104,7 +114,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgfilter.1.html gettext-0.18.1.1/gettext-tools/man/msgfilter.1.html --- gettext-0.17/gettext-tools/man/msgfilter.1.html 2007-11-07 00:33:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgfilter.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,441 +17,664 @@ SEE ALSO

    -

    NAME

    + -
    -msgfilter - edit translations of message catalog
    + + +

    msgfilter − edit translations of message +catalog

    + +

    SYNOPSIS

    - + -
    -msgfilter [OPTION] FILTER -[FILTER-OPTION]
    + + +

    msgfilter [OPTION] FILTER +[FILTER-OPTION]

    + +

    DESCRIPTION

    - + -
    -Applies a filter to all translations of a translation -catalog.
    - + + +

    Applies a filter to all translations of a translation +catalog.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    −i, +−−input=INPUTFILE

    + + -
    --i, --input=INPUTFILE
    - + + +

    input PO file

    + + + -
    -input PO file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + +

    The FILTER can be any program that reads a translation +from standard input and writes a modified translation to +standard output.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Useful FILTER-OPTIONs when the FILTER is +’sed’:

    + + -
    -The FILTER can be any program that reads a translation from -standard input and writes a modified translation to standard -output.
    - + + +

    −e, +−−expression=SCRIPT

    + + -
    -Useful FILTER-OPTIONs when the FILTER is -'sed':
    - + + +

    add SCRIPT to the commands to be executed

    + + + -
    --e, --expression=SCRIPT
    - + + +

    −f, +−−file=SCRIPTFILE

    + + -
    -add SCRIPT to the commands to be executed
    - + + +

    add the contents of SCRIPTFILE to the commands to be +executed

    + + + -
    --f, --file=SCRIPTFILE
    - + + +

    −n, −−quiet, +−−silent

    + + -
    -add the contents of SCRIPTFILE to the commands to be -executed
    - + + +

    suppress automatic printing of pattern space

    + + + -
    --n, --quiet, --silent
    - + + +

    Input file syntax:

    + + -
    -suppress automatic printing of pattern space
    - + + +

    −P, +−−properties−input

    + + -
    -Input file syntax:
    - + + +

    input file is in Java .properties syntax

    + + + -
    --P, --properties-input
    - + + +

    −−stringtable−input

    + + -
    -input file is in Java .properties syntax
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    ---stringtable-input
    - + + +

    Output details:

    + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    −−color

    + + -
    -Output details:
    - + + +

    use colors and other text attributes always

    + + + -
    ---no-escape
    - + + +

    −−color=WHEN

    + + -
    -do not use C escapes in output (default)
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    --E, --escape
    - + + +

    −−style=STYLEFILE

    + + -
    -use C escapes in output, no extended chars
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    ---force-po
    - + + +

    −−no−escape

    + + -
    -write PO file even if empty
    - + + +

    do not use C escapes in output (default)

    + + + -
    ---indent
    - + + +

    −E, −−escape

    + + -
    -indented output style
    - + + +

    use C escapes in output, no extended chars

    + + + -
    ---keep-header
    - + + +

    −−force−po

    + + -
    -keep header entry unmodified, don't filter it
    - + + +

    write PO file even if empty

    + + + -
    ---no-location
    - + + +

    −−indent

    + + -
    -suppress '#: filename:line' lines
    - + + +

    indented output style

    + + + -
    ---add-location
    - + + +

    −−keep−header

    + + -
    -preserve '#: filename:line' lines (default)
    - + + +

    keep header entry unmodified, don’t filter it

    + + + -
    ---strict
    - + + +

    −−no−location

    + + -
    -strict Uniforum output style
    - + + +

    suppress ’#: filename:line’ lines

    + + + -
    --p, --properties-output
    - + + +

    −−add−location

    + + -
    -write out a Java .properties file
    - + + +

    preserve ’#: filename:line’ lines +(default)

    + + + -
    ---stringtable-output
    - + + +

    −−strict

    + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    strict Uniforum output style

    + + + -
    --w, --width=NUMBER
    - + + +

    −p, +−−properties−output

    + + -
    -set output page width
    - + + +

    write out a Java .properties file

    + + + -
    ---no-wrap
    - + + +

    −−stringtable−output

    + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    --s, --sort-output
    - + + +

    −w, +−−width=NUMBER

    + + -
    -generate sorted output
    - + + +

    set output page width

    + + + -
    --F, --sort-by-file
    - + + +

    −−no−wrap

    + + -
    -sort output by file location
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    -Informative output:
    - + + +

    −s, +−−sort−output

    + + -
    --h, --help
    - + + +

    generate sorted output

    + + + -
    -display this help and exit
    - + + +

    −F, +−−sort−by−file

    + + -
    --V, --version
    - + + +

    sort output by file location

    + + + + + + + +
    +

    Informative output:

    + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + -
    -output version information and exit
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgfilter is maintained as -a Texinfo manual. If the info and msgfilter + +

    The full documentation for msgfilter is maintained +as a Texinfo manual. If the info and msgfilter programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgfilter
    - + + +

    info msgfilter

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgfmt.1 gettext-0.18.1.1/gettext-tools/man/msgfmt.1 --- gettext-0.17/gettext-tools/man/msgfmt.1 2007-11-07 00:33:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgfmt.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGFMT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGFMT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgfmt \- compile message catalog to binary format .SH SYNOPSIS @@ -144,7 +144,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgfmt.1.html gettext-0.18.1.1/gettext-tools/man/msgfmt.1.html --- gettext-0.17/gettext-tools/man/msgfmt.1.html 2007-11-07 00:33:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgfmt.1.html 2010-06-06 18:39:07.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,595 +17,822 @@ SEE ALSO

    -

    NAME

    + -
    -msgfmt - compile message catalog to binary format
    + + +

    msgfmt − compile message catalog to binary +format

    + +

    SYNOPSIS

    - + -
    -msgfmt [OPTION] filename.po -...
    + + +

    msgfmt [OPTION] filename.po ...

    + +

    DESCRIPTION

    - + -
    -Generate binary message catalog from textual translation -description.
    - + + +

    Generate binary message catalog from textual translation +description.

    + +

    Mandatory arguments to long options are mandatory for +short options too. Similarly for optional arguments.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too. Similarly for optional arguments.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    filename.po ...

    + + -
    -filename.po ...
    - + + +

    input files

    + + + -
    -input files
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If input file is -, standard input is read.

    + + + -
    -If input file is -, standard input is read.
    - + + +

    Operation mode:

    + + -
    -Operation mode:
    - + + +

    −j, −−java

    + + -
    --j, --java
    - + + +

    Java mode: generate a Java ResourceBundle class

    + + + -
    -Java mode: generate a Java ResourceBundle class
    - + + +

    −−java2

    + + -
    ---java2
    - + + +

    like −−java, and assume Java2 (JDK 1.2 +or higher)

    + + + -
    -like --java, and assume Java2 (JDK 1.2 or -higher)
    - + + +

    −−csharp

    + + -
    ---csharp
    - + + +

    C# mode: generate a .NET .dll file

    + + + -
    -C# mode: generate a .NET .dll file
    - + + +

    −−csharp−resources

    + + -
    ---csharp-resources
    - + + +

    C# resources mode: generate a .NET .resources file

    + + + + cols="5" cellspacing="0" cellpadding="0"> -
    -C# resources mode: generate a .NET .resources -file
    + + - - -
    ---tcl
    +

    −−tcl

    + + + - +

    Tcl mode: generate a tcl/msgcat .msg file

    + + -
    +
    -Tcl mode: generate a tcl/msgcat .msg file
    + + - - -
    ---qt
    +

    −−qt

    + + + +

    Qt mode: generate a Qt .qm file

    + + + + + -
    -Qt mode: generate a Qt .qm file
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    −−strict

    + + -
    ---strict
    - + + +

    enable strict Uniforum mode

    + + + -
    -enable strict Uniforum mode
    - + + +

    If output file is -, output is written to standard +output.

    + + + -
    -If output file is -, output is written to standard -output.
    - + + +

    Output file location in Java mode:

    + + -
    -Output file location in Java mode:
    - + + +

    −r, +−−resource=RESOURCE

    + + -
    --r, --resource=RESOURCE
    - + + +

    resource name

    + + + -
    -resource name
    - + + +

    −l, +−−locale=LOCALE

    + + -
    --l, --locale=LOCALE
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    −d DIRECTORY

    + + -
    --d DIRECTORY
    - + + +

    base directory of classes directory hierarchy

    + + + -
    -base directory of classes directory hierarchy
    - + + +

    The class name is determined by appending the locale name +to the resource name, separated with an underscore. The +−d option is mandatory. The class is written +under the specified directory.

    + + + -
    -The class name is determined by appending the locale name to -the resource name, separated with an underscore. The --d option is mandatory. The class is written under -the specified directory.
    - + + +

    Output file location in C# mode:

    + + -
    -Output file location in C# mode:
    - + + +

    −r, +−−resource=RESOURCE

    + + -
    --r, --resource=RESOURCE
    - + + +

    resource name

    + + + -
    -resource name
    - + + +

    −l, +−−locale=LOCALE

    + + -
    --l, --locale=LOCALE
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    −d DIRECTORY

    + + -
    --d DIRECTORY
    - + + +

    base directory for locale dependent .dll files

    + + + -
    -base directory for locale dependent .dll files
    - + + +

    The −l and −d options are +mandatory. The .dll file is written in a subdirectory of the +specified directory whose name depends on the locale.

    + + + -
    -The -l and -d options are mandatory. The .dll -file is written in a subdirectory of the specified directory -whose name depends on the locale.
    - - - -
    -Output file location in Tcl mode:
    - + + +

    Output file location in Tcl mode:

    + + -
    --l, --locale=LOCALE
    - + + +

    −l, +−−locale=LOCALE

    + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    --d DIRECTORY
    - + + +

    −d DIRECTORY

    + + -
    -base directory of .msg message catalogs
    - + + +

    base directory of .msg message catalogs

    + + + -
    -The -l and -d options are mandatory. The .msg -file is written in the specified directory.
    - + + +

    The −l and −d options are +mandatory. The .msg file is written in the specified +directory.

    + + + -
    -Input file syntax:
    - + + +

    Input file syntax:

    + + -
    --P, --properties-input
    - + + +

    −P, +−−properties−input

    + + -
    -input files are in Java .properties syntax
    - + + +

    input files are in Java .properties syntax

    + + + -
    ---stringtable-input
    - + + +

    −−stringtable−input

    + + -
    -input files are in NeXTstep/GNUstep .strings -syntax
    - + + +

    input files are in NeXTstep/GNUstep .strings syntax

    + + + -
    -Input file interpretation:
    - + + +

    Input file interpretation:

    + + -
    --c, --check
    - + + +

    −c, −−check

    + + -
    -perform all the checks implied by --check-format, ---check-header, --check-domain
    - + + +

    perform all the checks implied by +−−check−format, +−−check−header, +−−check−domain

    + + + -
    ---check-format
    - + + +

    −−check−format

    + + -
    -check language dependent format strings
    - + + +

    check language dependent format strings

    + + + -
    ---check-header
    - + + +

    −−check−header

    + + -
    -verify presence and contents of the header -entry
    - + + +

    verify presence and contents of the header entry

    + + + -
    ---check-domain
    - + + +

    −−check−domain

    + + -
    -check for conflicts between domain directives and the ---output-file option
    - + + +

    check for conflicts between domain directives and the +−−output−file option

    + + + -
    --C, --check-compatibility
    - + + +

    −C, +−−check−compatibility

    + + -
    -check that GNU msgfmt behaves like X/Open -msgfmt
    - + + +

    check that GNU msgfmt behaves like X/Open msgfmt

    + + + -
    ---check-accelerators[=CHAR]
    + + +

    −−check−accelerators[=CHAR]

    + + -
    -check presence of keyboard accelerators for menu -items
    - + + +

    check presence of keyboard accelerators for menu +items

    + + + -
    --f, --use-fuzzy
    - + + +

    −f, +−−use−fuzzy

    + + -
    -use fuzzy entries in output
    - + + +

    use fuzzy entries in output

    + + + -
    -Output details:
    - + + +

    Output details:

    + + -
    --a, --alignment=NUMBER
    - + + +

    −a, +−−alignment=NUMBER

    + + -
    -align strings to NUMBER bytes (default: 1)
    - + + +

    align strings to NUMBER bytes (default: 1)

    + + + -
    ---no-hash
    - + + +

    −−no−hash

    + + -
    -binary file will not include the hash table
    - + + +

    binary file will not include the hash table

    + + + -
    -Informative output:
    - + + +

    Informative output:

    + + -
    --h, --help
    - + + +

    −h, −−help

    + + -
    -display this help and exit
    - + + +

    display this help and exit

    + + + -
    --V, --version
    - + + +

    −V, −−version

    + + -
    -output version information and exit
    - + + +

    output version information and exit

    + + + -
    ---statistics
    - + + +

    −−statistics

    + + -
    -print statistics about translations
    - + + +

    print statistics about translations

    + + + -
    --v, --verbose
    - + + +

    −v, −−verbose

    + + -
    -increase verbosity level
    + + +

    increase verbosity level

    + +

    AUTHOR

    - + -
    -Written by Ulrich Drepper.
    + + +

    Written by Ulrich Drepper.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgfmt is maintained as a -Texinfo manual. If the info and msgfmt + +

    The full documentation for msgfmt is maintained as +a Texinfo manual. If the info and msgfmt programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgfmt
    - + + +

    info msgfmt

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msggrep.1 gettext-0.18.1.1/gettext-tools/man/msggrep.1 --- gettext-0.17/gettext-tools/man/msggrep.1 2007-11-07 00:33:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msggrep.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGGREP "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGGREP "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msggrep \- pattern matching on message catalog .SH SYNOPSIS @@ -101,6 +101,16 @@ input file is in NeXTstep/GNUstep .strings syntax .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -152,7 +162,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msggrep.1.html gettext-0.18.1.1/gettext-tools/man/msggrep.1.html --- gettext-0.17/gettext-tools/man/msggrep.1.html 2007-11-07 00:33:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msggrep.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,595 +17,870 @@ SEE ALSO

    -

    NAME

    + -
    -msggrep - pattern matching on message catalog
    + + +

    msggrep − pattern matching on message catalog

    + +

    SYNOPSIS

    - + -
    -msggrep [OPTION] -[INPUTFILE]
    + + +

    msggrep [OPTION] [INPUTFILE]

    + +

    DESCRIPTION

    - + -
    -Extracts all messages of a translation catalog that match a -given pattern or belong to some given source -files.
    - + + +

    Extracts all messages of a translation catalog that match +a given pattern or belong to some given source files.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE

    + + -
    -INPUTFILE
    - + + +

    input PO file

    + + + -
    -input PO file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Message selection:

    + + -
    -Message selection:
    - + + +

    [-N SOURCEFILE]... [-M DOMAINNAME]... [-J +MSGCTXT-PATTERN] [-K MSGID-PATTERN] [-T MSGSTR-PATTERN] [-C +COMMENT-PATTERN] [-X EXTRACTED-COMMENT-PATTERN]

    + + + -
    -[-N SOURCEFILE]... [-M DOMAINNAME]... [-J MSGCTXT-PATTERN] -[-K MSGID-PATTERN] [-T MSGSTR-PATTERN] [-C COMMENT-PATTERN] -[-X EXTRACTED-COMMENT-PATTERN]
    - + + +

    A message is selected if it comes from one of the +specified source files, or if it comes from one of the +specified domains, or if −J is given and its +context (msgctxt) matches MSGCTXT-PATTERN, or if +−K is given and its key (msgid or msgid_plural) +matches MSGID-PATTERN, or if −T is given and +its translation (msgstr) matches MSGSTR-PATTERN, or if +−C is given and the translator’s comment +matches COMMENT-PATTERN, or if −X is given and +the extracted comment matches EXTRACTED-COMMENT-PATTERN.

    + +

    When more than one selection criterion is specified, the +set of selected messages is the union of the selected +messages of each criterion.

    + +

    MSGCTXT-PATTERN or MSGID-PATTERN or MSGSTR-PATTERN or +COMMENT-PATTERN or EXTRACTED-COMMENT-PATTERN syntax:

    + + + -
    -A message is selected if it comes from one of the specified -source files, or if it comes from one of the specified -domains, or if -J is given and its context (msgctxt) -matches MSGCTXT-PATTERN, or if -K is given and its -key (msgid or msgid_plural) matches MSGID-PATTERN, or if --T is given and its translation (msgstr) matches -MSGSTR-PATTERN, or if -C is given and the -translator's comment matches COMMENT-PATTERN, or if --X is given and the extracted comment matches -EXTRACTED-COMMENT-PATTERN.
    - + + +

    [-E | −F] [-e PATTERN | −f +FILE]...

    + + + -
    -When more than one selection criterion is specified, the set -of selected messages is the union of the selected messages -of each criterion.
    - + + +

    PATTERNs are basic regular expressions by default, or +extended regular expressions if −E is given, or +fixed strings if −F is given.

    + + + -
    -MSGCTXT-PATTERN or MSGID-PATTERN or MSGSTR-PATTERN or -COMMENT-PATTERN or EXTRACTED-COMMENT-PATTERN -syntax:
    - + + +

    −N, +−−location=SOURCEFILE

    + + -
    -[-E | -F] [-e PATTERN | -f -FILE]...
    - + + +

    select messages extracted from SOURCEFILE

    + + + -
    -PATTERNs are basic regular expressions by default, or -extended regular expressions if -E is given, or fixed -strings if -F is given.
    - + + +

    −M, +−−domain=DOMAINNAME

    + + -
    --N, --location=SOURCEFILE
    - + + +

    select messages belonging to domain DOMAINNAME

    + + + -
    -select messages extracted from SOURCEFILE
    - + + +

    −J, −−msgctxt

    + + -
    --M, --domain=DOMAINNAME
    - + + +

    start of patterns for the msgctxt

    + + + -
    -select messages belonging to domain DOMAINNAME
    - + + +

    −K, −−msgid

    + + -
    --J, --msgctxt
    - + + +

    start of patterns for the msgid

    + + + -
    -start of patterns for the msgctxt
    - + + +

    −T, −−msgstr

    + + -
    --K, --msgid
    - + + +

    start of patterns for the msgstr

    + + + -
    -start of patterns for the msgid
    - + + +

    −C, −−comment

    + + -
    --T, --msgstr
    - + + +

    start of patterns for the translator’s comment

    + + + -
    -start of patterns for the msgstr
    - + + +

    −X, +−−extracted−comment

    + + -
    --C, --comment
    - + + +

    start of patterns for the extracted comment

    + + + -
    -start of patterns for the translator's comment
    - + + +

    −E, +−−extended−regexp

    + + -
    --X, --extracted-comment
    - + + +

    PATTERN is an extended regular expression

    + + + -
    -start of patterns for the extracted comment
    - + + +

    −F, +−−fixed−strings

    + + -
    --E, --extended-regexp
    - + + +

    PATTERN is a set of newline-separated strings

    + + + -
    -PATTERN is an extended regular expression
    - + + +

    −e, +−−regexp=PATTERN

    + + -
    --F, --fixed-strings
    - + + +

    use PATTERN as a regular expression

    + + + -
    -PATTERN is a set of newline-separated strings
    - + + +

    −f, +−−file=FILE

    + + -
    --e, --regexp=PATTERN
    - + + +

    obtain PATTERN from FILE

    + + + -
    -use PATTERN as a regular expression
    - + + +

    −i, +−−ignore−case

    + + -
    --f, --file=FILE
    - + + +

    ignore case distinctions

    + + + -
    -obtain PATTERN from FILE
    - + + +

    −v, +−−invert−match

    + + -
    --i, --ignore-case
    - + + +

    output only the messages that do not match any selection +criterion

    + + + -
    -ignore case distinctions
    - + + +

    Input file syntax:

    + + -
    --v, --invert-match
    - + + +

    −P, +−−properties−input

    + + -
    -output only the messages that do not match any selection -criterion
    - + + +

    input file is in Java .properties syntax

    + + + -
    -Input file syntax:
    - + + +

    −−stringtable−input

    + + -
    --P, --properties-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    Output details:

    + + -
    ---stringtable-input
    - + + +

    −−color

    + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    use colors and other text attributes always

    + + + -
    -Output details:
    - + + +

    −−color=WHEN

    + + -
    ---no-escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−style=STYLEFILE

    + + -
    ---escape
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−no−escape

    + + -
    ---force-po
    - + + +

    do not use C escapes in output (default)

    + + + -
    -write PO file even if empty
    - + + +

    −−escape

    + + -
    ---indent
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -indented output style
    - + + +

    −−force−po

    + + -
    ---no-location
    - + + +

    write PO file even if empty

    + + + -
    -suppress '#: filename:line' lines
    - + + +

    −−indent

    + + -
    ---add-location
    - + + +

    indented output style

    + + + -
    -preserve '#: filename:line' lines (default)
    - + + +

    −−no−location

    + + -
    ---strict
    - + + +

    suppress ’#: filename:line’ lines

    + + + -
    -strict Uniforum output style
    - + + +

    −−add−location

    + + -
    --p, --properties-output
    - + + +

    preserve ’#: filename:line’ lines +(default)

    + + + -
    -write out a Java .properties file
    - + + +

    −−strict

    + + -
    ---stringtable-output
    - + + +

    strict Uniforum output style

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −p, +−−properties−output

    + + -
    --w, --width=NUMBER
    - + + +

    write out a Java .properties file

    + + + -
    -set output page width
    - + + +

    −−stringtable−output

    + + -
    ---no-wrap
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −w, +−−width=NUMBER

    + + -
    ---sort-output
    - + + +

    set output page width

    + + + -
    -generate sorted output
    - + + +

    −−no−wrap

    + + -
    ---sort-by-file
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    -sort output by file location
    - + + +

    −−sort−output

    + + -
    -Informative output:
    - + + +

    generate sorted output

    + + + -
    --h, --help
    - + + +

    −−sort−by−file

    + + -
    -display this help and exit
    - + + +

    sort output by file location

    + + + -
    --V, --version
    - + + +

    Informative output:

    + + + + + + +
    +

    −h, −−help

    + -
    -output version information and exit
    + + +

    display this help and exit

    + + + + + + + +
    +

    −V, −−version

    + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msggrep is maintained as a -Texinfo manual. If the info and msggrep + +

    The full documentation for msggrep is maintained +as a Texinfo manual. If the info and msggrep programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msggrep
    - + + +

    info msggrep

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msginit.1 gettext-0.18.1.1/gettext-tools/man/msginit.1 --- gettext-0.17/gettext-tools/man/msginit.1 2007-11-07 00:33:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msginit.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGINIT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGINIT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msginit \- initialize a message catalog .SH SYNOPSIS @@ -41,6 +41,16 @@ \fB\-\-no\-translator\fR assume the PO file is automatically generated .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-p\fR, \fB\-\-properties\-output\fR write out a Java .properties file .TP @@ -65,7 +75,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msginit.1.html gettext-0.18.1.1/gettext-tools/man/msginit.1.html --- gettext-0.17/gettext-tools/man/msginit.1.html 2007-11-07 00:33:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msginit.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,283 +17,441 @@ SEE ALSO

    -

    NAME

    + -
    -msginit - initialize a message catalog
    + + +

    msginit − initialize a message catalog

    + +

    SYNOPSIS

    - + -
    -msginit [OPTION]
    + + +

    msginit [OPTION]

    + +

    DESCRIPTION

    - + -
    -Creates a new PO file, initializing the meta information -with values from the user's environment.
    - + + +

    Creates a new PO file, initializing the meta information +with values from the user’s environment.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    −i, +−−input=INPUTFILE

    + + -
    --i, --input=INPUTFILE
    - + + +

    input POT file

    + + + -
    -input POT file
    - + + +

    If no input file is given, the current directory is +searched for the POT file. If it is -, standard input is +read.

    + + + -
    -If no input file is given, the current directory is searched -for the POT file. If it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified PO file

    + + + -
    -write output to specified PO file
    - + + +

    If no output file is given, it depends on the +−−locale option or the user’s +locale setting. If it is -, the results are written to +standard output.

    + + + -
    -If no output file is given, it depends on the ---locale option or the user's locale setting. If it -is -, the results are written to standard -output.
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input file is in Java .properties syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −l, +−−locale=LL_CC

    + + -
    --l, --locale=LL_CC
    - + + +

    set target locale

    + + + -
    -set target locale
    - + + +

    −−no−translator

    + + -
    ---no-translator
    - + + +

    assume the PO file is automatically generated

    + + + -
    -assume the PO file is automatically generated
    - + + +

    −−color

    + + -
    --p, --properties-output
    - + + +

    use colors and other text attributes always

    + + + -
    -write out a Java .properties file
    - + + +

    −−color=WHEN

    + + -
    ---stringtable-output
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−style=STYLEFILE

    + + -
    --w, --width=NUMBER
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -set output page width
    - + + +

    −p, +−−properties−output

    + + -
    ---no-wrap
    - + + +

    write out a Java .properties file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−stringtable−output

    + + -
    -Informative output:
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    --h, --help
    - + + +

    −w, +−−width=NUMBER

    + + -
    -display this help and exit
    - + + +

    set output page width

    + + + -
    --V, --version
    - + + +

    −−no−wrap

    + + + + + + +
    +

    do not break long message lines, longer than the output +page width, into several lines

    +
    + -
    -output version information and exit
    + + +

    Informative output:

    + + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + + + + + +
    +

    −V, −−version

    + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msginit is maintained as a -Texinfo manual. If the info and msginit + +

    The full documentation for msginit is maintained +as a Texinfo manual. If the info and msginit programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msginit
    - + + +

    info msginit

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgmerge.1 gettext-0.18.1.1/gettext-tools/man/msgmerge.1 --- gettext-0.17/gettext-tools/man/msgmerge.1 2007-11-07 00:33:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgmerge.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGMERGE "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGMERGE "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgmerge \- merge message catalog and template .SH SYNOPSIS @@ -92,6 +92,19 @@ syntax .SS "Output details:" .TP +\fB\-\-lang\fR=\fICATALOGNAME\fR +set 'Language' field in the header entry +.TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -149,7 +162,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgmerge.1.html gettext-0.18.1.1/gettext-tools/man/msgmerge.1.html --- gettext-0.17/gettext-tools/man/msgmerge.1.html 2007-11-07 00:33:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgmerge.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,31 +17,37 @@ SEE ALSO

    -

    NAME

    + -
    -msgmerge - merge message catalog and template
    + + +

    msgmerge − merge message catalog and template

    + +

    SYNOPSIS

    - + -
    -msgmerge [OPTION] def.po -ref.pot
    + + +

    msgmerge [OPTION] def.po ref.pot

    + +

    DESCRIPTION

    - + - +
    -Merges two Uniforum style .po files together. The def.po + +

    Merges two Uniforum style .po files together. The def.po file is an existing PO file with translations which will be taken over to the newly created file as long as they still match; comments will be preserved, but extracted comments @@ -50,552 +57,840 @@ created by xgettext); any translations or comments in the file will be discarded, however dot comments and file positions will be preserved. Where an exact match cannot be -found, fuzzy matching is used to produce better -results.

    - +found, fuzzy matching is used to produce better results.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    + + +

    Input file location:

    + + + + + + + + + +
    + +

    def.po

    +
    +

    translations referring to old sources

    +
    +
    + -
    -Input file location:
    - + + +

    ref.pot

    + + -
    -def.po
    - + + +

    references to new sources

    + + + -
    -translations referring to old sources
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    -ref.pot
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -references to new sources
    - + + +

    −C, +−−compendium=FILE

    + + -
    --D, --directory=DIRECTORY
    - + + +

    additional library of message translations, may be +specified more than once

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    Operation mode:

    + + -
    --C, --compendium=FILE
    - + + +

    −U, −−update

    + + -
    -additional library of message translations, may be specified -more than once
    - + + +

    update def.po, do nothing if def.po already up to +date

    + + + -
    -Operation mode:
    - + + +

    Output file location:

    + + -
    --U, --update
    - + + +

    −o, +−−output−file=FILE

    + + -
    -update def.po, do nothing if def.po already up to -date
    - + + +

    write output to specified file

    + + + -
    -Output file location:
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + +

    Output file location in update mode: The result is +written back to def.po.

    + + + -
    --o, --output-file=FILE
    - + + +

    −−backup=CONTROL

    + + -
    -write output to specified file
    - + + +

    make a backup of def.po

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    −−suffix=SUFFIX

    + + -
    -Output file location in update mode: The result is written -back to def.po.
    - + + +

    override the usual backup suffix

    + + + -
    ---backup=CONTROL
    - + + +

    The version control method may be selected via the +−−backup option or through the +VERSION_CONTROL environment variable. Here are the +values:

    + + + -
    -make a backup of def.po
    - + + +

    none, off

    + + -
    ---suffix=SUFFIX
    - + + +

    never make backups (even if −−backup +is given)

    + + + -
    -override the usual backup suffix
    - + + +

    numbered, t

    + + -
    -The version control method may be selected via the ---backup option or through the VERSION_CONTROL -environment variable. Here are the values:
    - + + +

    make numbered backups

    + + + -
    -none, off
    - + + +

    existing, nil

    + + -
    -never make backups (even if --backup is -given)
    - + + +

    numbered if numbered backups exist, simple otherwise

    + + + -
    -numbered, t
    - + + +

    simple, never

    + + -
    -make numbered backups
    - + + +

    always make simple backups

    + + + -
    -existing, nil
    - + + +

    The backup suffix is ‘~’, unless set with +−−suffix or the SIMPLE_BACKUP_SUFFIX +environment variable.

    + + + -
    -numbered if numbered backups exist, simple -otherwise
    - + + +

    Operation modifiers:

    + + -
    -simple, never
    - + + +

    −m, +−−multi−domain

    + + -
    -always make simple backups
    - + + +

    apply ref.pot to each of the domains in def.po

    + + + -
    -The backup suffix is `~', unless set with --suffix or -the SIMPLE_BACKUP_SUFFIX environment variable.
    - + + +

    −N, +−−no−fuzzy−matching

    + + -
    -Operation modifiers:
    - + + +

    do not use fuzzy matching

    + + + -
    --m, --multi-domain
    - + + +

    −−previous

    + + -
    -apply ref.pot to each of the domains in def.po
    - + + +

    keep previous msgids of translated messages

    + + + -
    --N, --no-fuzzy-matching
    - + + +

    Input file syntax:

    + + -
    -do not use fuzzy matching
    - + + +

    −P, +−−properties−input

    + + -
    ---previous
    - + + +

    input files are in Java .properties syntax

    + + + -
    -keep previous msgids of translated messages
    - + + +

    −−stringtable−input

    + + -
    -Input file syntax:
    - + + +

    input files are in NeXTstep/GNUstep .strings syntax

    + + + -
    --P, --properties-input
    - + + +

    Output details:

    + + -
    -input files are in Java .properties syntax
    - + + +

    −−lang=CATALOGNAME

    + + -
    ---stringtable-input
    - + + +

    set ’Language’ field in the header entry

    + + + -
    -input files are in NeXTstep/GNUstep .strings -syntax
    - + + +

    −−color

    + + -
    -Output details:
    - + + +

    use colors and other text attributes always

    + + + -
    --e, --no-escape
    - + + +

    −−color=WHEN

    + + -
    -do not use C escapes in output (default)
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    --E, --escape
    - + + +

    −−style=STYLEFILE

    + + -
    -use C escapes in output, no extended chars
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    ---force-po
    - + + +

    −e, +−−no−escape

    + + -
    -write PO file even if empty
    - + + +

    do not use C escapes in output (default)

    + + + -
    --i, --indent
    - + + +

    −E, −−escape

    + + -
    -indented output style
    - + + +

    use C escapes in output, no extended chars

    + + + -
    ---no-location
    - + + +

    −−force−po

    + + -
    -suppress '#: filename:line' lines
    - + + +

    write PO file even if empty

    + + + -
    ---add-location
    - + + +

    −i, −−indent

    + + -
    -preserve '#: filename:line' lines (default)
    - + + +

    indented output style

    + + + -
    ---strict
    - + + +

    −−no−location

    + + -
    -strict Uniforum output style
    - + + +

    suppress ’#: filename:line’ lines

    + + + -
    --p, --properties-output
    - + + +

    −−add−location

    + + -
    -write out a Java .properties file
    - + + +

    preserve ’#: filename:line’ lines +(default)

    + + + -
    ---stringtable-output
    - + + +

    −−strict

    + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    strict Uniforum output style

    + + + -
    --w, --width=NUMBER
    - + + +

    −p, +−−properties−output

    + + -
    -set output page width
    - + + +

    write out a Java .properties file

    + + + -
    ---no-wrap
    - + + +

    −−stringtable−output

    + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    --s, --sort-output
    - + + +

    −w, +−−width=NUMBER

    + + -
    -generate sorted output
    - + + +

    set output page width

    + + + -
    --F, --sort-by-file
    - + + +

    −−no−wrap

    + + -
    -sort output by file location
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    -Informative output:
    - + + +

    −s, +−−sort−output

    + + -
    --h, --help
    - + + +

    generate sorted output

    + + + -
    -display this help and exit
    - + + +

    −F, +−−sort−by−file

    + + -
    --V, --version
    - + + +

    sort output by file location

    + + + -
    -output version information and exit
    - + + +

    Informative output:

    + + -
    --v, --verbose
    - + + +

    −h, −−help

    + + -
    -increase verbosity level
    - + + +

    display this help and exit

    + + + -
    --q, --quiet, --silent
    - + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +
    + + + + + +
    +

    −v, −−verbose

    + -
    -suppress progress indicators
    + + +

    increase verbosity level

    + + + + + + + +
    +

    −q, −−quiet, +−−silent

    + + + + + +
    +

    suppress progress indicators

    +

    AUTHOR

    - + -
    -Written by Peter Miller.
    + + +

    Written by Peter Miller.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgmerge is maintained as -a Texinfo manual. If the info and msgmerge + +

    The full documentation for msgmerge is maintained +as a Texinfo manual. If the info and msgmerge programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgmerge
    - + + +

    info msgmerge

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msgunfmt.1 gettext-0.18.1.1/gettext-tools/man/msgunfmt.1 --- gettext-0.17/gettext-tools/man/msgunfmt.1 2007-11-07 00:33:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgunfmt.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGUNFMT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGUNFMT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msgunfmt \- uncompile message catalog from binary format .SH SYNOPSIS @@ -72,6 +72,16 @@ or if it is -. .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -117,7 +127,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msgunfmt.1.html gettext-0.18.1.1/gettext-tools/man/msgunfmt.1.html --- gettext-0.17/gettext-tools/man/msgunfmt.1.html 2007-11-07 00:33:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msgunfmt.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,493 +17,738 @@ SEE ALSO

    -

    NAME

    + -
    -msgunfmt - uncompile message catalog from binary format
    + + +

    msgunfmt − uncompile message catalog from binary +format

    + +

    SYNOPSIS

    - + -
    -msgunfmt [OPTION] -[FILE]...
    + + +

    msgunfmt [OPTION] [FILE]...

    + +

    DESCRIPTION

    - + -
    -Convert binary message catalog to Uniforum style .po -file.
    - + + +

    Convert binary message catalog to Uniforum style .po +file.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Operation mode:

    + + -
    -Operation mode:
    - + + +

    −j, −−java

    + + -
    --j, --java
    - + + +

    Java mode: input is a Java ResourceBundle class

    + + + -
    -Java mode: input is a Java ResourceBundle class
    - + + +

    −−csharp

    + + -
    ---csharp
    - + + +

    C# mode: input is a .NET .dll file

    + + + -
    -C# mode: input is a .NET .dll file
    - + + +

    −−csharp−resources

    + + -
    ---csharp-resources
    + + +

    C# resources mode: input is a .NET .resources file

    + + + + + + + + + + +
    +

    −−tcl

    +
    + +

    Tcl mode: input is a tcl/msgcat .msg file

    +
    +
    + -
    -C# resources mode: input is a .NET .resources -file
    - + + +

    Input file location:

    + + -
    ---tcl
    - + + +

    FILE ...

    + + -
    -Tcl mode: input is a tcl/msgcat .msg file
    - + + +

    input .mo files

    + + + -
    -Input file location:
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -FILE ...
    - + + +

    Input file location in Java mode:

    + + -
    -input .mo files
    - + + +

    −r, +−−resource=RESOURCE

    + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    resource name

    + + + -
    -Input file location in Java mode:
    - + + +

    −l, +−−locale=LOCALE

    + + -
    --r, --resource=RESOURCE
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    -resource name
    - + + +

    The class name is determined by appending the locale name +to the resource name, separated with an underscore. The +class is located using the CLASSPATH.

    + + + -
    --l, --locale=LOCALE
    - + + +

    Input file location in C# mode:

    + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    −r, +−−resource=RESOURCE

    + + -
    -The class name is determined by appending the locale name to -the resource name, separated with an underscore. The class -is located using the CLASSPATH.
    - + + +

    resource name

    + + + -
    -Input file location in C# mode:
    - + + +

    −l, +−−locale=LOCALE

    + + -
    --r, --resource=RESOURCE
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    -resource name
    - + + +

    −d DIRECTORY

    + + -
    --l, --locale=LOCALE
    - + + +

    base directory for locale dependent .dll files

    + + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    The −l and −d options are +mandatory. The .dll file is located in a subdirectory of the +specified directory whose name depends on the locale.

    + + + -
    --d DIRECTORY
    - + + +

    Input file location in Tcl mode:

    + + -
    -base directory for locale dependent .dll files
    - + + +

    −l, +−−locale=LOCALE

    + + -
    -The -l and -d options are mandatory. The .dll -file is located in a subdirectory of the specified directory -whose name depends on the locale.
    - + + +

    locale name, either language or language_COUNTRY

    + + + -
    -Input file location in Tcl mode:
    - + + +

    −d DIRECTORY

    + + -
    --l, --locale=LOCALE
    - + + +

    base directory of .msg message catalogs

    + + + -
    -locale name, either language or -language_COUNTRY
    - + + +

    The −l and −d options are +mandatory. The .msg file is located in the specified +directory.

    + + + -
    --d DIRECTORY
    - + + +

    Output file location:

    + + -
    -base directory of .msg message catalogs
    - + + +

    −o, +−−output−file=FILE

    + + -
    -The -l and -d options are mandatory. The .msg -file is located in the specified directory.
    - + + +

    write output to specified file

    + + + -
    -Output file location:
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    --o, --output-file=FILE
    - + + +

    Output details:

    + + -
    -write output to specified file
    - + + +

    −−color

    + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    use colors and other text attributes always

    + + + -
    -Output details:
    - + + +

    −−color=WHEN

    + + -
    --e, --no-escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−style=STYLEFILE

    + + -
    --E, --escape
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −e, +−−no−escape

    + + -
    ---force-po
    - + + +

    do not use C escapes in output (default)

    + + + -
    -write PO file even if empty
    - + + +

    −E, −−escape

    + + -
    --i, --indent
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -write indented output style
    - + + +

    −−force−po

    + + -
    ---strict
    - + + +

    write PO file even if empty

    + + + -
    -write strict uniforum style
    - + + +

    −i, −−indent

    + + -
    --p, --properties-output
    - + + +

    write indented output style

    + + + -
    -write out a Java .properties file
    - + + +

    −−strict

    + + -
    ---stringtable-output
    - + + +

    write strict uniforum style

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −p, +−−properties−output

    + + -
    --w, --width=NUMBER
    - + + +

    write out a Java .properties file

    + + + -
    -set output page width
    - + + +

    −−stringtable−output

    + + -
    ---no-wrap
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −w, +−−width=NUMBER

    + + -
    --s, --sort-output
    - + + +

    set output page width

    + + + -
    -generate sorted output
    - + + +

    −−no−wrap

    + + -
    -Informative output:
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --h, --help
    - + + +

    −s, +−−sort−output

    + + -
    -display this help and exit
    - + + +

    generate sorted output

    + + + -
    --V, --version
    - + + +

    Informative output:

    + + -
    -output version information and exit
    - + + +

    −h, −−help

    + + -
    --v, --verbose
    - + + +

    display this help and exit

    + + + -
    -increase verbosity level
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +
    + + + + + +
    +

    −v, −−verbose

    + + + + + +
    +

    increase verbosity level

    +

    AUTHOR

    - + -
    -Written by Ulrich Drepper.
    + + +

    Written by Ulrich Drepper.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msgunfmt is maintained as -a Texinfo manual. If the info and msgunfmt + +

    The full documentation for msgunfmt is maintained +as a Texinfo manual. If the info and msgunfmt programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msgunfmt
    - + + +

    info msgunfmt

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/msguniq.1 gettext-0.18.1.1/gettext-tools/man/msguniq.1 --- gettext-0.17/gettext-tools/man/msguniq.1 2007-11-07 00:33:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msguniq.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH MSGUNIQ "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH MSGUNIQ "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME msguniq \- unify duplicate translations in message catalog .SH SYNOPSIS @@ -57,6 +57,16 @@ use first available translation for each message, don't merge several translations .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -108,7 +118,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 2001-2007 Free Software Foundation, Inc. +Copyright \(co 2001-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/msguniq.1.html gettext-0.18.1.1/gettext-tools/man/msguniq.1.html --- gettext-0.17/gettext-tools/man/msguniq.1.html 2007-11-07 00:33:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/msguniq.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,441 +17,667 @@ SEE ALSO

    -

    NAME

    + -
    -msguniq - unify duplicate translations in message catalog
    + + +

    msguniq − unify duplicate translations in message +catalog

    + +

    SYNOPSIS

    - + -
    -msguniq [OPTION] -[INPUTFILE]
    + + +

    msguniq [OPTION] [INPUTFILE]

    + +

    DESCRIPTION

    - + - +
    -Unifies duplicate translations in a translation catalog. + +

    Unifies duplicate translations in a translation catalog. Finds duplicate translations of the same message ID. Such duplicates are invalid input for other programs like msgfmt, msgmerge or msgcat. By default, duplicates are merged -together. When using the --repeated option, only -duplicates are output, and all other messages are discarded. -Comments and extracted comments will be cumulated, except -that if --use-first is specified, they will be taken -from the first translation. File positions will be -cumulated. When using the --unique option, duplicates -are discarded.

    - +together. When using the −−repeated +option, only duplicates are output, and all other messages +are discarded. Comments and extracted comments will be +cumulated, except that if +−−use−first is specified, they will +be taken from the first translation. File positions will be +cumulated. When using the −−unique +option, duplicates are discarded.

    + +

    Mandatory arguments to long options are mandatory for +short options too.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE

    + + -
    -INPUTFILE
    - + + +

    input PO file

    + + + -
    -input PO file
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If no input file is given or if it is -, standard input +is read.

    + + + -
    -If no input file is given or if it is -, standard input is -read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −o, +−−output−file=FILE

    + + -
    --o, --output-file=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    The results are written to standard output if no output +file is specified or if it is -.

    + + + -
    -The results are written to standard output if no output file -is specified or if it is -.
    - + + +

    Message selection:

    + + -
    -Message selection:
    - + + +

    −d, −−repeated

    + + -
    --d, --repeated
    - + + +

    print only duplicates

    + + + -
    -print only duplicates
    - + + +

    −u, −−unique

    + + -
    --u, --unique
    - + + +

    print only unique messages, discard duplicates

    + + + -
    -print only unique messages, discard duplicates
    - + + +

    Input file syntax:

    + + -
    -Input file syntax:
    - + + +

    −P, +−−properties−input

    + + -
    --P, --properties-input
    - + + +

    input file is in Java .properties syntax

    + + + -
    -input file is in Java .properties syntax
    - + + +

    −−stringtable−input

    + + -
    ---stringtable-input
    - + + +

    input file is in NeXTstep/GNUstep .strings syntax

    + + + -
    -input file is in NeXTstep/GNUstep .strings -syntax
    - + + +

    Output details:

    + + -
    -Output details:
    - + + +

    −t, +−−to−code=NAME

    + + -
    --t, --to-code=NAME
    - + + +

    encoding for output

    + + + -
    -encoding for output
    - + + +

    −−use−first

    + + -
    ---use-first
    - + + +

    use first available translation for each message, +don’t merge several translations

    + + + -
    -use first available translation for each message, don't -merge several translations
    - + + +

    −−color

    + + -
    --e, --no-escape
    - + + +

    use colors and other text attributes always

    + + + -
    -do not use C escapes in output (default)
    - + + +

    −−color=WHEN

    + + -
    --E, --escape
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    -use C escapes in output, no extended chars
    - + + +

    −−style=STYLEFILE

    + + -
    ---force-po
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    -write PO file even if empty
    - + + +

    −e, +−−no−escape

    + + -
    --i, --indent
    - + + +

    do not use C escapes in output (default)

    + + + -
    -write the .po file using indented style
    - + + +

    −E, −−escape

    + + -
    ---no-location
    - + + +

    use C escapes in output, no extended chars

    + + + -
    -do not write '#: filename:line' lines
    - + + +

    −−force−po

    + + -
    --n, --add-location
    - + + +

    write PO file even if empty

    + + + -
    -generate '#: filename:line' lines (default)
    - + + +

    −i, −−indent

    + + -
    ---strict
    - + + +

    write the .po file using indented style

    + + + -
    -write out strict Uniforum conforming .po file
    - + + +

    −−no−location

    + + -
    --p, --properties-output
    - + + +

    do not write ’#: filename:line’ lines

    + + + -
    -write out a Java .properties file
    - + + +

    −n, +−−add−location

    + + -
    ---stringtable-output
    - + + +

    generate ’#: filename:line’ lines +(default)

    + + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    −−strict

    + + -
    --w, --width=NUMBER
    - + + +

    write out strict Uniforum conforming .po file

    + + + -
    -set output page width
    - + + +

    −p, +−−properties−output

    + + -
    ---no-wrap
    - + + +

    write out a Java .properties file

    + + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    −−stringtable−output

    + + -
    --s, --sort-output
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    -generate sorted output
    - + + +

    −w, +−−width=NUMBER

    + + -
    --F, --sort-by-file
    - + + +

    set output page width

    + + + -
    -sort output by file location
    - + + +

    −−no−wrap

    + + -
    -Informative output:
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --h, --help
    - + + +

    −s, +−−sort−output

    + + -
    -display this help and exit
    - + + +

    generate sorted output

    + + + -
    --V, --version
    - + + +

    −F, +−−sort−by−file

    + + + + + + +
    +

    sort output by file location

    +
    + + + + + +
    +

    Informative output:

    + + + + + +
    +

    −h, −−help

    + + + + + +
    +

    display this help and exit

    +
    + -
    -output version information and exit
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Bruno Haible.
    + + +

    Written by Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2001-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2001-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for msguniq is maintained as a -Texinfo manual. If the info and msguniq + +

    The full documentation for msguniq is maintained +as a Texinfo manual. If the info and msguniq programs are properly installed at your site, the -command

    - +command

    + + + -
    -info msguniq
    - + + +

    info msguniq

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/recode-sr-latin.1 gettext-0.18.1.1/gettext-tools/man/recode-sr-latin.1 --- gettext-0.17/gettext-tools/man/recode-sr-latin.1 2007-11-07 00:33:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/recode-sr-latin.1 2010-06-06 18:39:07.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH RECODE-SR-LATIN "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH RECODE-SR-LATIN "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME recode-sr-latin \- convert Serbian text from Cyrillic to Latin script .SH SYNOPSIS diff -Nru gettext-0.17/gettext-tools/man/recode-sr-latin.1.html gettext-0.18.1.1/gettext-tools/man/recode-sr-latin.1.html --- gettext-0.17/gettext-tools/man/recode-sr-latin.1.html 2007-11-07 00:33:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/recode-sr-latin.1.html 2010-06-06 18:39:09.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,114 +17,154 @@ SEE ALSO

    -

    NAME

    + -
    -recode-sr-latin - convert Serbian text from Cyrillic to Latin script
    + + +

    recode-sr-latin − convert Serbian text from +Cyrillic to Latin script

    + +

    SYNOPSIS

    - + -
    -recode-sr-latin [OPTION]
    + + +

    recode-sr-latin [OPTION]

    + +

    DESCRIPTION

    - + -
    -Recode Serbian text from Cyrillic to Latin script. The input -text is read from standard input. The converted text is -output to standard output.
    - + + +

    Recode Serbian text from Cyrillic to Latin script. The +input text is read from standard input. The converted text +is output to standard output.

    + + + -
    -Informative output:
    - + + +

    Informative output:

    + + -
    --h, --help
    - + + +

    −h, −−help

    + + -
    -display this help and exit
    - + + +

    display this help and exit

    + + + -
    --V, --version
    - + + +

    −V, −−version

    + + -
    -output version information and exit
    + + +

    output version information and exit

    + +

    AUTHOR

    - + -
    -Written by Danilo Segan and Bruno Haible.
    + + +

    Written by Danilo Segan and Bruno Haible.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 2006-2007 Free Software Foundation, Inc. License -GPLv3+: GNU GPL version 3 or later + +

    Copyright © 2006-2007 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for recode-sr-latin is + +

    The full documentation for recode-sr-latin is maintained as a Texinfo manual. If the info and recode-sr-latin programs are properly installed at -your site, the command

    - +your site, the command

    + + + -
    -info recode-sr-latin
    - + + +

    info recode-sr-latin

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/man/xgettext.1 gettext-0.18.1.1/gettext-tools/man/xgettext.1 --- gettext-0.17/gettext-tools/man/xgettext.1 2007-11-07 00:33:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/xgettext.1 2010-06-06 18:39:06.000000000 +0000 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24. -.TH XGETTEXT "1" "November 2007" "GNU gettext-tools 0.17" GNU +.TH XGETTEXT "1" "June 2010" "GNU gettext-tools 0.18.1" GNU .SH NAME xgettext \- extract gettext strings from source .SH SYNOPSIS @@ -64,9 +64,13 @@ \fB\-x\fR, \fB\-\-exclude\-file\fR=\fIFILE\fR.po entries from FILE.po are not extracted .TP -\fB\-c\fR, \fB\-\-add\-comments\fR[=\fITAG\fR] -place comment block with TAG (or those -preceding keyword lines) in output file +\fB\-cTAG\fR, \fB\-\-add\-comments\fR=\fITAG\fR +place comment blocks starting with TAG and +preceding keyword lines in output file +.TP +\fB\-c\fR, \fB\-\-add\-comments\fR +place all comment blocks preceding keyword lines +in output file .SS "Language specific options:" .TP \fB\-a\fR, \fB\-\-extract\-all\fR @@ -75,10 +79,11 @@ Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade) .TP -\fB\-k\fR, \fB\-\-keyword\fR[=\fIWORD\fR] -additional keyword to be looked for (without -WORD means not to use default keywords) -.IP +\fB\-kWORD\fR, \fB\-\-keyword\fR=\fIWORD\fR +look for WORD as an additional keyword +.TP +\fB\-k\fR, \fB\-\-keyword\fR +do not to use default keywords (only languages C, C++, ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade) @@ -111,6 +116,16 @@ more detailed formatstring recognition result .SS "Output details:" .TP +\fB\-\-color\fR +use colors and other text attributes always +.TP +\fB\-\-color\fR=\fIWHEN\fR +use colors and other text attributes if WHEN. +WHEN may be 'always', 'never', 'auto', or 'html'. +.TP +\fB\-\-style\fR=\fISTYLEFILE\fR +specify CSS style rule file for \fB\-\-color\fR +.TP \fB\-e\fR, \fB\-\-no\-escape\fR do not use C escapes in output (default) .TP @@ -169,11 +184,13 @@ \fB\-\-msgid\-bugs\-address\fR=\fIEMAIL\fR@ADDRESS set report address for msgid bugs .TP -\fB\-m\fR, \fB\-\-msgstr\-prefix\fR[=\fISTRING\fR] -use STRING or "" as prefix for msgstr entries -.TP -\fB\-M\fR, \fB\-\-msgstr\-suffix\fR[=\fISTRING\fR] -use STRING or "" as suffix for msgstr entries +\fB\-m[STRING]\fR, \fB\-\-msgstr\-prefix\fR[=\fISTRING\fR] +use STRING or "" as prefix for msgstr +values +.TP +\fB\-M[STRING]\fR, \fB\-\-msgstr\-suffix\fR[=\fISTRING\fR] +use STRING or "" as suffix for msgstr +values .SS "Informative output:" .TP \fB\-h\fR, \fB\-\-help\fR @@ -186,7 +203,7 @@ .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT -Copyright \(co 1995-1998, 2000-2007 Free Software Foundation, Inc. +Copyright \(co 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later .br This is free software: you are free to change and redistribute it. diff -Nru gettext-0.17/gettext-tools/man/xgettext.1.html gettext-0.18.1.1/gettext-tools/man/xgettext.1.html --- gettext-0.17/gettext-tools/man/xgettext.1.html 2007-11-07 00:33:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/man/xgettext.1.html 2010-06-06 18:39:08.000000000 +0000 @@ -1,3 +1,4 @@ + @@ -16,717 +17,1079 @@ SEE ALSO

    -

    NAME

    + -
    -xgettext - extract gettext strings from source
    + + +

    xgettext − extract gettext strings from source

    + +

    SYNOPSIS

    - + -
    -xgettext [OPTION] -[INPUTFILE]...
    + + +

    xgettext [OPTION] [INPUTFILE]...

    + +

    DESCRIPTION

    - + -
    -Extract translatable strings from given input -files.
    - + + +

    Extract translatable strings from given input files.

    + +

    Mandatory arguments to long options are mandatory for +short options too. Similarly for optional arguments.

    + + + -
    -Mandatory arguments to long options are mandatory for short -options too. Similarly for optional arguments.
    - + + +

    Input file location:

    + + -
    -Input file location:
    - + + +

    INPUTFILE ...

    + + -
    -INPUTFILE ...
    - + + +

    input files

    + + + -
    -input files
    - + + +

    −f, +−−files−from=FILE

    + + -
    --f, --files-from=FILE
    - + + +

    get list of input files from FILE

    + + + -
    -get list of input files from FILE
    - + + +

    −D, +−−directory=DIRECTORY

    + + -
    --D, --directory=DIRECTORY
    - + + +

    add DIRECTORY to list for input files search

    + + + -
    -add DIRECTORY to list for input files search
    - + + +

    If input file is -, standard input is read.

    + + + -
    -If input file is -, standard input is read.
    - + + +

    Output file location:

    + + -
    -Output file location:
    - + + +

    −d, +−−default−domain=NAME

    + + -
    --d, --default-domain=NAME
    - + + +

    use NAME.po for output (instead of messages.po)

    + + + -
    -use NAME.po for output (instead of messages.po)
    - + + +

    −o, +−−output=FILE

    + + -
    --o, --output=FILE
    - + + +

    write output to specified file

    + + + -
    -write output to specified file
    - + + +

    −p, +−−output−dir=DIR

    + + -
    --p, --output-dir=DIR
    - + + +

    output files will be placed in directory DIR

    + + + -
    -output files will be placed in directory DIR
    - + + +

    If output file is -, output is written to standard +output.

    + + + -
    -If output file is -, output is written to standard -output.
    - + + +

    Choice of input file language:

    + + -
    -Choice of input file language:
    - + + +

    −L, +−−language=NAME

    + + -
    --L, --language=NAME
    - + + +

    recognise the specified language (C, C++, ObjectiveC, PO, +Shell, Python, Lisp, EmacsLisp, librep, Scheme, Smalltalk, +Java, JavaProperties, C#, awk, YCP, Tcl, Perl, PHP, +GCC-source, NXStringTable, RST, Glade)

    + + + -
    -recognise the specified language (C, C++, ObjectiveC, PO, -Shell, Python, Lisp, EmacsLisp, librep, Scheme, Smalltalk, -Java, JavaProperties, C#, awk, YCP, Tcl, Perl, PHP, -GCC-source, NXStringTable, RST, Glade)
    - + + +

    −C, −−c++

    + + -
    --C, --c++
    - + + +

    shorthand for +−−language=C++

    + + + -
    -shorthand for --language=C++
    - + + +

    By default the language is guessed depending on the input +file name extension.

    + + + -
    -By default the language is guessed depending on the input -file name extension.
    - + + +

    Input file interpretation:

    + + -
    -Input file interpretation:
    + + +

    −−from−code=NAME

    + + -
    ---from-code=NAME
    - + + +

    encoding of input files (except for Python, Tcl, +Glade)

    + + + -
    -encoding of input files (except for Python, Tcl, -Glade)
    - + + +

    By default the input files are assumed to be in +ASCII.

    + + + -
    -By default the input files are assumed to be in -ASCII.
    - + + +

    Operation mode:

    + + -
    -Operation mode:
    - + + +

    −j, +−−join−existing

    + + -
    --j, --join-existing
    - + + +

    join messages with existing file

    + + + -
    -join messages with existing file
    - + + +

    −x, +−−exclude−file=FILE.po

    + + -
    --x, --exclude-file=FILE.po
    - + + +

    entries from FILE.po are not extracted

    + + + -
    -entries from FILE.po are not extracted
    - + + +

    −cTAG, +−−add−comments=TAG

    + + -
    --c, --add-comments[=TAG]
    - + + +

    place comment blocks starting with TAG and preceding +keyword lines in output file

    + + + -
    -place comment block with TAG (or those preceding keyword -lines) in output file
    - + + +

    −c, +−−add−comments

    + + -
    -Language specific options:
    - + + +

    place all comment blocks preceding keyword lines in +output file

    + + + -
    --a, --extract-all
    - + + +

    Language specific options:

    + + + + + + +
    +

    −a, +−−extract−all

    + - +
    -extract all strings (only languages C, C++, ObjectiveC, + +

    extract all strings (only languages C, C++, ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, -awk, Tcl, Perl, PHP, GCC-source, Glade)

    - +awk, Tcl, Perl, PHP, GCC-source, Glade)

    + + + -
    --k, --keyword[=WORD]
    - + + +

    −kWORD, +−−keyword=WORD

    + + -
    -additional keyword to be looked for (without WORD means not -to use default keywords)
    - + + +

    look for WORD as an additional keyword

    + + + -
    -(only languages C, C++, ObjectiveC, Shell, Python, Lisp, -EmacsLisp, librep, Scheme, Java, C#, awk, Tcl, Perl, PHP, -GCC-source, Glade)
    - + + +

    −k, −−keyword

    + + -
    ---flag=WORD:ARG:FLAG
    - + + +

    do not to use default keywords (only languages C, C++, +ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Scheme, +Java, C#, awk, Tcl, Perl, PHP, GCC-source, Glade)

    + + + -
    -additional flag for strings inside the argument number ARG -of keyword WORD
    - + + +

    −−flag=WORD:ARG:FLAG

    + + + + + + +
    +

    additional flag for strings inside the argument number +ARG of keyword WORD

    +
    + - +
    -(only languages C, C++, ObjectiveC, Shell, Python, Lisp, + +

    (only languages C, C++, ObjectiveC, Shell, Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, awk, YCP, Tcl, Perl, -PHP, GCC-source)

    - +PHP, GCC-source)

    + + + -
    --T, --trigraphs
    - + + +

    −T, −−trigraphs

    + + -
    -understand ANSI C trigraphs for input (only languages C, -C++, ObjectiveC)
    + + +

    understand ANSI C trigraphs for input (only languages C, +C++, ObjectiveC)

    + + + + + + + + + + + + + + +
    +

    −−qt

    +
    + +

    recognize Qt format strings (only language C++)

    +
    + +

    −−kde

    +
    + +

    recognize KDE 4 format strings (only language C++)

    +
    + -
    ---qt
    - + + +

    −−boost

    + + -
    -recognize Qt format strings (only language C++)
    - + + +

    recognize Boost format strings (only language C++)

    + + + -
    ---kde
    - + + +

    −−debug

    + + -
    -recognize KDE 4 format strings (only language -C++)
    - + + +

    more detailed formatstring recognition result

    + + + -
    ---boost
    - + + +

    Output details:

    + + -
    -recognize Boost format strings (only language -C++)
    - + + +

    −−color

    + + -
    ---debug
    - + + +

    use colors and other text attributes always

    + + + -
    -more detailed formatstring recognition result
    - + + +

    −−color=WHEN

    + + -
    -Output details:
    - + + +

    use colors and other text attributes if WHEN. WHEN may be +’always’, ’never’, +’auto’, or ’html’.

    + + + -
    --e, --no-escape
    - + + +

    −−style=STYLEFILE

    + + -
    -do not use C escapes in output (default)
    - + + +

    specify CSS style rule file for +−−color

    + + + -
    --E, --escape
    - + + +

    −e, +−−no−escape

    + + -
    -use C escapes in output, no extended chars
    - + + +

    do not use C escapes in output (default)

    + + + -
    ---force-po
    - + + +

    −E, −−escape

    + + -
    -write PO file even if empty
    - + + +

    use C escapes in output, no extended chars

    + + + -
    --i, --indent
    - + + +

    −−force−po

    + + -
    -write the .po file using indented style
    - + + +

    write PO file even if empty

    + + + -
    ---no-location
    - + + +

    −i, −−indent

    + + -
    -do not write '#: filename:line' lines
    - + + +

    write the .po file using indented style

    + + + -
    --n, --add-location
    - + + +

    −−no−location

    + + -
    -generate '#: filename:line' lines (default)
    - + + +

    do not write ’#: filename:line’ lines

    + + + -
    ---strict
    - + + +

    −n, +−−add−location

    + + -
    -write out strict Uniforum conforming .po file
    - + + +

    generate ’#: filename:line’ lines +(default)

    + + + -
    ---properties-output
    - + + +

    −−strict

    + + -
    -write out a Java .properties file
    - + + +

    write out strict Uniforum conforming .po file

    + + + -
    ---stringtable-output
    - + + +

    −−properties−output

    + + -
    -write out a NeXTstep/GNUstep .strings file
    - + + +

    write out a Java .properties file

    + + + -
    --w, --width=NUMBER
    - + + +

    −−stringtable−output

    + + -
    -set output page width
    - + + +

    write out a NeXTstep/GNUstep .strings file

    + + + -
    ---no-wrap
    - + + +

    −w, +−−width=NUMBER

    + + -
    -do not break long message lines, longer than the output page -width, into several lines
    - + + +

    set output page width

    + + + -
    --s, --sort-output
    - + + +

    −−no−wrap

    + + -
    -generate sorted output
    - + + +

    do not break long message lines, longer than the output +page width, into several lines

    + + + -
    --F, --sort-by-file
    - + + +

    −s, +−−sort−output

    + + -
    -sort output by file location
    - + + +

    generate sorted output

    + + + -
    ---omit-header
    - + + +

    −F, +−−sort−by−file

    + + -
    -don't write header with `msgid ""' -entry
    - + + +

    sort output by file location

    + + + -
    ---copyright-holder=STRING
    - + + +

    −−omit−header

    + + -
    -set copyright holder in output
    - + + +

    don’t write header with ‘msgid +""’ entry

    + + + -
    ---foreign-user
    + + +

    −−copyright−holder=STRING

    + + -
    -omit FSF copyright in output for foreign user
    - + + +

    set copyright holder in output

    + + + -
    ---package-name=PACKAGE
    - + + +

    −−foreign−user

    + + -
    -set package name in output
    - + + +

    omit FSF copyright in output for foreign user

    + + + -
    ---package-version=VERSION
    + + +

    −−package−name=PACKAGE

    + + -
    -set package version in output
    - + + +

    set package name in output

    + + + -
    - ---msgid-bugs-address=EMAIL@ADDRESS
    + + +

    −−package−version=VERSION

    + + -
    -set report address for msgid bugs
    - + + +

    set package version in output

    + + + -
    --m, ---msgstr-prefix[=STRING]
    + + +

    −−msgid−bugs−address=EMAIL@ADDRESS

    + + -
    -use STRING or "" as prefix for msgstr -entries
    - + + +

    set report address for msgid bugs

    + + + -
    --M, ---msgstr-suffix[=STRING]
    - + + +

    −m[STRING], +−−msgstr−prefix[=STRING]

    + + -
    -use STRING or "" as suffix for msgstr -entries
    - + + +

    use STRING or "" as prefix for msgstr +values

    + + + -
    -Informative output:
    - + + +

    −M[STRING], +−−msgstr−suffix[=STRING]

    + + -
    --h, --help
    - + + +

    use STRING or "" as suffix for msgstr +values

    + + + -
    -display this help and exit
    - + + +

    Informative output:

    + + -
    --V, --version
    - + + +

    −h, −−help

    + + + + + + +
    +

    display this help and exit

    +
    + -
    -output version information and exit
    + + +

    −V, −−version

    + + + + + + +
    +

    output version information and exit

    +

    AUTHOR

    - + -
    -Written by Ulrich Drepper.
    + + +

    Written by Ulrich Drepper.

    + +

    REPORTING BUGS

    - + -
    -Report bugs to <bug-gnu-gettext@gnu.org>.
    + + +

    Report bugs to <bug-gnu-gettext@gnu.org>.

    + +

    COPYRIGHT

    - + - +
    -Copyright 1995-1998, 2000-2007 Free Software Foundation, -Inc. License GPLv3+: GNU GPL version 3 or later + +

    Copyright © 1995-1998, 2000-2010 Free Software +Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent -permitted by law.

    +permitted by law.

    + +

    SEE ALSO

    - + - +
    -The full documentation for xgettext is maintained as -a Texinfo manual. If the info and xgettext + +

    The full documentation for xgettext is maintained +as a Texinfo manual. If the info and xgettext programs are properly installed at your site, the -command

    - +command

    + + + -
    -info xgettext
    - + + +

    info xgettext

    + + + -
    -should give you access to the complete manual.
    + + +

    should give you access to the complete manual.

    + +
    diff -Nru gettext-0.17/gettext-tools/misc/add-to-archive gettext-0.18.1.1/gettext-tools/misc/add-to-archive --- gettext-0.17/gettext-tools/misc/add-to-archive 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/add-to-archive 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2002, 2006 Free Software Foundation, Inc. +# Copyright (C) 2002, 2006, 2009-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,8 +17,8 @@ # # Usage: add-to-archive /somewhere/gettext-0.xx.yy.tar.gz -# Adds the infrastructure files for gettext version 0.xx.yy to the compressed -# CVS repository in the archive.tar.gz file. +# Adds the infrastructure files for gettext version 0.xx.yy to the reposutory +# in the archive.dir.tar.gz file. if test $# != 1; then echo "Usage: add-to-archive /somewhere/gettext-0.xx.yy.tar.gz" @@ -38,11 +38,6 @@ pack=`echo "$pack_ver" | sed -e 's/^\([^-]*\)-.*/\1/'` ver=`echo "$pack_ver" | sed -e 's/^[^-]*-\(.*\)/\1/'` -# Set a nonstandard variable, for a good-looking cvs history. -cvsuser=bruno -gcc -shared -O cvsuser.c -o cvsuser.so -cvsuser_hack=`pwd`/cvsuser.so - # Unpack, build and install the source distribution. myprefix=`pwd`/${pack_ver}-inst gunzip -c < "$sourcetgz" | tar xvf - @@ -91,21 +86,16 @@ ) # Add the contents of this directory to the repository. -cvsroot=`pwd`/autopoint-files -mkdir "$cvsroot" -cvs -d "$cvsroot" init -(cd autopoint-files && tar xvfz ../archive.tar.gz) -cvsver=$pack-`echo "$ver" | sed -e 's/\./_/g'` -(cd "$work_archive" - CVSUSER=$cvsuser LD_PRELOAD=$cvsuser_hack \ - cvs -d "$cvsroot" import -m "Import $pack_ver" archive release "$cvsver" -) -(cd autopoint-files && tar cvfz ../archive.tar.gz --owner=root --group=root archive) -(cd autopoint-files && du archive) +mkdir autopoint-files +(cd autopoint-files && tar xfz ../archive.dir.tar.gz) +mkdir autopoint-files/$pack_ver +(cd "$work_archive" && tar cf - .) | (cd autopoint-files/$pack_ver && tar xf -) +(cd autopoint-files && tar cfz ../archive.dir.tar.gz --owner=root --group=root *) # Clean up. -rm -rf "$cvsroot" +rm -rf autopoint-files rm -rf "$work_dir" +rm -f cvsuser.so rm -rf "$myprefix" exit 0 Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/misc/archive.dir.tar.gz and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/misc/archive.dir.tar.gz differ Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/misc/archive.tar.gz and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/misc/archive.tar.gz differ diff -Nru gettext-0.17/gettext-tools/misc/autopoint.in gettext-0.18.1.1/gettext-tools/misc/autopoint.in --- gettext-0.17/gettext-tools/misc/autopoint.in 2007-11-07 02:53:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/autopoint.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2002-2007 Free Software Foundation, Inc. +# Copyright (C) 2002-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -173,7 +173,8 @@ func_version () { echo "$progname (GNU $package) $version" - echo "Copyright (C) 2002-2007 Free Software Foundation, Inc. + echo "Uses a versions archive in @ARCHIVE_FORMAT@ format." + echo "Copyright (C) 2002-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." @@ -266,7 +267,9 @@ # Check whether the -V option and the version number in configure.in match. # At least one of the two must be given. If both are given, they must agree. -xver=`cat "$configure_in" | grep '^AM_GNU_GETTEXT_VERSION(' | sed -e 's/^AM_GNU_GETTEXT_VERSION(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` +sed_extract_AM_GNU_GETTEXT_VERSION_argument='s/^AM_GNU_GETTEXT_VERSION(\([^()]*\)).*$/\1/' +sed_remove_outer_brackets='s/^\[\(.*\)\]$/\1/' +xver=`cat "$configure_in" | grep '^AM_GNU_GETTEXT_VERSION(' | sed -n -e "$sed_extract_AM_GNU_GETTEXT_VERSION_argument"p | sed -e "$sed_remove_outer_brackets" | sed -e 1q` if test -z "$xver" && test -f intl/VERSION; then xver=`cat intl/VERSION | LC_ALL=C sed -n -e 's/^.*gettext-\([-+_.0-9A-Za-z]*\).*$/\1/p'` fi @@ -293,55 +296,16 @@ 0.14 | 0.14.1 | 0.14.2 | 0.14.3 | 0.14.4 | 0.14.5 | 0.14.6 | \ 0.15 | \ 0.16 | 0.16.1 | \ - 0.17 ) + 0.17 | \ + 0.18 | 0.18.1 ) ;; *) - func_fatal_error "The AM_GNU_GETTEXT_VERSION declaration in your $configure_in\ - file requires the infrastructure from gettext-$ver but this version\ + func_fatal_error "The AM_GNU_GETTEXT_VERSION declaration in your $configure_in + file requires the infrastructure from gettext-$ver but this version is older. Please upgrade to gettext-$ver or newer." ;; esac -# We distribute the many different versions of the files in a CVS repository. -# This guarantees a good compression rate: -# -# Including version size in KB of -# "du autopoint-files/archive" -# 0.10.35 240 -# 0.10.36 428 -# 0.10.37 436 -# 0.10.38 488 -# 0.10.39 500 -# 0.10.40 528 -# 0.11 720 -# 0.11.1 740 -# 0.11.2 748 -# 0.11.3 804 -# 0.11.4 864 -# 0.11.5 880 -# 0.12 1032 -# 0.12.1 1032 -# 0.13 1220 -# 0.13.1 1236 -# 0.14 1296 -# 0.14.1 1300 -# 0.14.2 1420 -# 0.14.3 1428 -# 0.14.4 1464 -# 0.14.5 1508 -# 0.14.6 1580 -# 0.15 1760 -# 0.16 1808 -# 0.16.1 1812 -# 0.17 2128 -# -# The requirement that the user must have the CVS program available is not -# a severe restrictions, because most of the people who use autopoint are -# users of CVS. -# -# Check availability of the CVS program. -(cvs -v) >/dev/null 2>/dev/null || func_fatal_error "cvs program not found" - # Check in which directory config.rpath, mkinstalldirs etc. belong. auxdir=`cat "$configure_in" | grep '^AC_CONFIG_AUX_DIR' | sed -n -e 's/AC_CONFIG_AUX_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` if test -n "$auxdir"; then @@ -373,25 +337,38 @@ omitintl=`cat "$configure_in" | grep '^AM_GNU_GETTEXT' | sed -n -e 's/^AM_GNU_GETTEXT(\([^(),]*\).*$/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` omitintl=`if test 'external' = "$omitintl"; then echo yes; fi` -# Set up a temporary CVS repository and a temporary checkout directory. -# We need the temporary CVS repository because any checkout needs write -# access to the CVSROOT/history file, so it cannot be under $gettext_dir. -# We need the temporary checkout directory because when --force was not -# given, we need to compare the existing files with the checked out ones. +# Check in which directory or directories the po/* infrastructure belongs. +sed_extract_config_files='s,#.*$,, +s,^dnl .*$,, +s, dnl .*$,, +/AC_CONFIG_FILES(/ { + ta + :a + s/)/)/ + tb + s/\\$// + N + ba + :b + s,^.*AC_CONFIG_FILES([[ ]*\([^]"$`\\)]*\).*$,\1,p +}' +configfiles=`cat "$configure_in" | sed -n -e "$sed_extract_config_files"` +# PO directories have a Makefile.in generated from Makefile.in.in. +# Treat a directory as a PO directory if and only if it has a +# POTFILES.in file. This allows packages to have multiple PO +# directories under different names or in different locations. +sed_remove_Makefile_in='s,/Makefile\.in$,,' +podirs=`for f in $configfiles; do case "$f" in */Makefile.in) echo $f;; esac; done | sed -e "$sed_remove_Makefile_in"` +if test -z "$podirs"; then + # If we cannot get the list of PO directories from configure.ac, assume the + # common default. + podirs="po" +fi + +# Set up a temporary checkout directory. # Set variables -# - cvs_dir directory containing the temporary repository # - work_dir directory containing the temporary checkout -cvs_dir=tmpcvs$$ work_dir=tmpwrk$$ -# Use an umask of 077, to avoid attacks that work by overwriting files in the -# "$CVSROOT"/CVSROOT directory. -(umask 077 && mkdir "$cvs_dir") || { - if test -d "$cvs_dir"; then - func_fatal_error "directory $cvs_dir already exists" - else - func_fatal_error "cannot create directory $cvs_dir" - fi -} mkdir "$work_dir" || { if test -d "$work_dir"; then func_fatal_error "directory $work_dir already exists" @@ -399,37 +376,153 @@ func_fatal_error "cannot create directory $work_dir" fi } -CVSROOT="$srcdir/$cvs_dir" -export CVSROOT -unset CVS_CLIENT_LOG -unset CVS_CLIENT_PORT -unset CVS_IGNORE_REMOTE_ROOT -unset CVS_PASSFILE -unset CVS_PASSWORD -unset CVS_RCMD_PORT -unset CVS_RSH -unset CVS_SERVER -unset CVS_SERVER_SLEEP -unset CVSIGNORE -unset CVSREAD -unset CVSUMASK -unset CVSWRAPPERS - -# Need to pass -d "$CVSROOT", because there may be a CVS directory in the -# current directory. -cvs -d "$CVSROOT" init -gzip -d -c < "$gettext_dir/archive.tar.gz" | (cd "$cvs_dir" && tar xf -) - -cd "$work_dir" -cvsver=gettext-`echo "$ver" | sed -e 's/\./_/g'` -(cvs checkout -r"$cvsver" archive > /dev/null) 2>&1 | grep -v '^cvs checkout: Updating' -find archive -name CVS -type d -print | xargs rm -rf -if test `find archive -type f -print | wc -l` = 0; then - cd .. - rm -rf "$cvs_dir" "$work_dir" - func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version" -fi -cd .. + +# We support three archive formats. +# +# Format | Size (KiB) for gettext-0.17 | Extra tools needed | +# -------+-----------------------------+--------------------+ +# dir | 3000 | -- | +# cvs | 356 | cvs | +# git | 484 | git | +# -------+-----------------------------+--------------------+ + +case "@ARCHIVE_FORMAT@" in + dir) + # The archive of different versions is very large, but using it does not + # require special tools. + gzip -d -c < "$gettext_dir/archive.dir.tar.gz" | (cd "$work_dir" && tar xf - "gettext-$ver") + if test `find "$work_dir" -type f -print | wc -l` = 0; then + rm -rf "$work_dir" + func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version" + fi + mv "$work_dir/gettext-$ver" "$work_dir/archive" + ;; + + cvs) + # We distributed the many different versions of the files in a CVS + # repository. This guaranteed a good compression rate: + # + # Including version size in KB of + # "du autopoint-files/archive" + # 0.10.35 240 + # 0.10.36 428 + # 0.10.37 436 + # 0.10.38 488 + # 0.10.39 500 + # 0.10.40 528 + # 0.11 720 + # 0.11.1 740 + # 0.11.2 748 + # 0.11.3 804 + # 0.11.4 864 + # 0.11.5 880 + # 0.12 1032 + # 0.12.1 1032 + # 0.13 1220 + # 0.13.1 1236 + # 0.14 1296 + # 0.14.1 1300 + # 0.14.2 1420 + # 0.14.3 1428 + # 0.14.4 1464 + # 0.14.5 1508 + # 0.14.6 1580 + # 0.15 1760 + # 0.16 1808 + # 0.16.1 1812 + # 0.17 2128 + # 0.18 2656 + # + # The requirement that the user must have the CVS program available is not + # a severe restrictions, because most of the people who use autopoint are + # users of CVS. + # + # But the CVS format is now deprecated, because "cvs init" does not work in + # all circumstances + # (see ) + # and we are not allowed to distribute the cvs infrastructure files + # ourselves + # (see ). + # + # Check availability of the CVS program. + (cvs -v) >/dev/null 2>/dev/null || func_fatal_error "cvs program not found" + + # Set up a temporary CVS repository. + # We need the temporary CVS repository because any checkout needs write + # access to the CVSROOT/history file, so it cannot be under $gettext_dir. + # We need the temporary checkout directory because when --force was not + # given, we need to compare the existing files with the checked out ones. + # Set variables + # - cvs_dir directory containing the temporary repository + cvs_dir=tmpcvs$$ + # Use an umask of 077, to avoid attacks that work by overwriting files in + # the "$CVSROOT"/CVSROOT directory. + (umask 077 && mkdir "$cvs_dir") || { + if test -d "$cvs_dir"; then + func_fatal_error "directory $cvs_dir already exists" + else + func_fatal_error "cannot create directory $cvs_dir" + fi + } + CVSROOT="$srcdir/$cvs_dir" + unset CVS_CLIENT_LOG + unset CVS_CLIENT_PORT + unset CVS_IGNORE_REMOTE_ROOT + unset CVS_LOCAL_BRANCH_NUM + unset CVS_NOBASES + unset CVS_PASSFILE + unset CVS_PASSWORD + unset CVS_PROXY_PORT + unset CVS_RCMD_PORT + unset CVS_RSH + unset CVS_SERVER + unset CVS_SERVER_SLEEP + CVS_SIGN_COMMITS= + export CVS_SIGN_COMMITS + unset CVS_SSH + unset CVS_VERIFY_CHECKOUTS + unset CVS_VERIFY_TEMPLATE + unset CVSIGNORE + unset CVSREAD + unset CVSREADONLYFS + unset CVSUMASK + unset CVSWRAPPERS + + # Need to pass -d "$CVSROOT", because there may be a CVS directory in the + # current directory. + cvs -d "$CVSROOT" init + gzip -d -c < "$gettext_dir/archive.cvs.tar.gz" | (cd "$cvs_dir" && tar xf -) + + cd "$work_dir" + cvsver=gettext-`echo "$ver" | sed -e 's/\./_/g'` + (cvs -d "$CVSROOT" checkout -r"$cvsver" archive > /dev/null) 2>&1 | grep -v '^cvs checkout: Updating' + find archive -name CVS -type d -print | xargs rm -rf + cd .. + rm -rf "$cvs_dir" + # Check that really all CVS directories are gone, otherwise we would overwrite + # the contents of the user's CVS directories. + if test `find $work_dir/archive -name CVS -type d -print | wc -l` != 0; then + rm -rf "$work_dir" + func_fatal_error "failed to remove all CVS subdirectories" + fi + if test `find $work_dir/archive -type f -print | wc -l` = 0; then + rm -rf "$work_dir" + func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version" + fi + ;; + + git) + # Check availability of the git program. + (git --version) >/dev/null 2>/dev/null || func_fatal_error "git program not found" + mkdir "$work_dir/archive" + gzip -d -c < "$gettext_dir/archive.git.tar.gz" | (cd "$work_dir/archive" && tar xf -) + (cd "$work_dir/archive" && git checkout -q "gettext-$ver") || { + rm -rf "$work_dir" + func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version" + } + (cd "$work_dir/archive" && rm -rf .git .gitignore) + ;; +esac # func_destfile file # determines the destination file, relative to the package's top level @@ -439,6 +532,7 @@ # empty if the file shall be omitted # - sharedowner yes if the file is not only owned by GNU gettext but may # be installed by automake or other tools, otherwise empty +# - allpodirs yes if the file is to be installed in every dir in $podirs func_destfile () { # There are five categories of files: @@ -446,8 +540,9 @@ # config.rpath mkinstalldirs -> $auxdir # m4/* -> $m4dir/ # intl/* -> intl/ - # po/* -> po/ + # po/* -> sharedowner= + allpodirs= case `echo "$1" | sed -e 's,[^/]*$,,'` in "" ) case "$1" in @@ -458,10 +553,45 @@ ;; m4/ ) destfile=`echo "$1" | sed -e "s,^m4/,$m4dir/,"` ;; intl/ ) if test -n "$omitintl"; then destfile=""; else destfile="$1"; fi ;; + po/ ) destfile=`echo "$1" | sed -e "s,^po/,,"` allpodirs=yes ;; * ) destfile="$1" ;; esac } +# func_compare existingfile gettextfile +# compares the existing file and the file from gettext, and decides whether the +# existing file should be overwritten with the file from gettext. Returns 0 if +# it should be overwritten, or 1 if it should be skipped. +sed_extract_serial='s/^#.* serial \([^ ]*\).*/\1/p +1q' +func_compare () +{ + if cmp -s "$1" "$2"; then + false + else + case "$2" in + *.m4) + # For interoperability with gnulib. gnulib often has newer versions of + # the *.m4 files than the latest gettext release. Don't overwrite a + # newer version from gnulib with an older version from the gettext + # release. The version can be retrieved from the first line, which + # looks like this: # file.m4 serial NN ... + existing_serial=`sed -n -e "$sed_extract_serial" < "$1"` + gettext_serial=`sed -n -e "$sed_extract_serial" < "$2"` + if test -n "$existing_serial" && test -n "$gettext_serial" \ + && test "$existing_serial" -ge "$gettext_serial" 2> /dev/null; then + false + else + true + fi + ;; + *) + true + ;; + esac + fi +} + # If some files have been locally modified and we have not been requested # to overwrite them, then bail out. This is better than leaving a source # package around where half of the files are locally modified and half are @@ -473,23 +603,32 @@ for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do func_destfile "$file" if test -n "$destfile"; then - if test -f "$destfile"; then - if cmp -s "$work_dir/archive/$file" "$destfile"; then - : - else - if test -n "$sharedowner"; then - echo "autopoint: warning: File $destfile has been locally modified." 1>&2 - else - echo "autopoint: File $destfile has been locally modified." 1>&2 - mismatch=yes - diff -c "$work_dir/archive/$file" "$destfile" | sed -e "1s,$work_dir/archive/,," >> "$mismatchfile" + func_compare_to_destfile () + { + finaldestfile="$1" + if test -f "$finaldestfile"; then + if func_compare "$finaldestfile" "$work_dir/archive/$file"; then + if test -n "$sharedowner"; then + echo "autopoint: warning: File $finaldestfile has been locally modified." 1>&2 + else + echo "autopoint: File $finaldestfile has been locally modified." 1>&2 + mismatch=yes + diff -c "$work_dir/archive/$file" "$finaldestfile" | sed -e "1s,$work_dir/archive/,," >> "$mismatchfile" + fi fi fi + } + if test -n "$allpodirs"; then + for dir in $podirs; do + func_compare_to_destfile "$dir/$destfile" + done + else + func_compare_to_destfile "$destfile" fi fi done if test -n "$mismatch"; then - rm -rf "$cvs_dir" "$work_dir" + rm -rf "$work_dir" func_fatal_error "Some files have been locally modified. Not overwriting them because --force has not been specified. For your convenience, you find the local modifications in the file '$mismatchfile'." fi rm -rf "$tmp" @@ -541,29 +680,38 @@ # Now copy the files. for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do func_destfile "$file" - mustcopy= if test -n "$destfile"; then - if test -f "$destfile"; then - if cmp -s "$work_dir/archive/$file" "$destfile"; then - : - else - if test -n "$force"; then - # Overwrite locally modified file. - mustcopy=yes + func_copy_to_destfile () + { + finaldestfile="$1" + mustcopy= + if test -f "$finaldestfile"; then + if func_compare "$finaldestfile" "$work_dir/archive/$file"; then + if test -n "$force"; then + # Overwrite locally modified file. + mustcopy=yes + fi + # If --force is not specified, don't overwrite locally modified files + # for which GNU gettext is a shared owner. fi - # If --force is not specified, don't overwrite locally modified files - # for which GNU gettext is a shared owner. + else + mustcopy=yes + fi + if test -n "$mustcopy"; then + func_backup "$finaldestfile" + func_copy "$work_dir/archive/$file" "$finaldestfile" fi + } + if test -n "$allpodirs"; then + for dir in $podirs; do + func_copy_to_destfile "$dir/$destfile" + done else - mustcopy=yes + func_copy_to_destfile "$destfile" fi fi - if test -n "$mustcopy"; then - func_backup "$destfile" - func_copy "$work_dir/archive/$file" "$destfile" - fi done # That's it. -rm -rf "$cvs_dir" "$work_dir" +rm -rf "$work_dir" exit 0 diff -Nru gettext-0.17/gettext-tools/misc/ChangeLog gettext-0.18.1.1/gettext-tools/misc/ChangeLog --- gettext-0.17/gettext-tools/misc/ChangeLog 2007-11-07 02:53:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,268 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-04 Bruno Haible + + Don't assume GNU tar. + * convert-archive.in (TAR, TAR_OPTIONS): New variables. + Reported by Ryan Schmidt . + +2010-06-04 Bruno Haible + + * autopoint.in: Update for 0.18.1. + +2010-06-03 Bruno Haible + + Deprecate the --with-cvs option. + * autopoint.in: Update comments. + * add-to-archive: Update archive.dir.tar.gz, not archive.cvs.tar.gz. + * Makefile.am (CLEANFILES): Add archive.cvs.tar.gz instead of + archive.dir.tar.gz. + (EXTRA_DIST): Add archive.dir.tar.gz instead of archive.cvs.tar.gz. + (archive.dir.tar.gz): Adapted from archive.cvs.tar.gz rule. + (archive.git.tar.gz, archive.cvs.tar.gz): Generate from + archive.dir.tar.gz. + +2010-05-26 Bruno Haible + + Interoperability with newer versions of 'cvs'. + * autopoint.in: Unset some more environment variables. Set + CVS_SIGN_COMMITS to empty. + * convert-archive.in: Likewise. + +2010-05-16 Bruno Haible + + convert-archive: Don't publicize the builder's name and email. + * convert-archive.in: Unset GIT_CONFIG and set dummy user.name and + user.email parameters. + Reported by Santiago Vila . + +2010-05-16 Bruno Haible + + Avoid keyword substitution in cvs archives created by convert-archive. + * convert-archive.in: When creating a cvs archive, use "cvs admin -ko" + on all files. + +2010-05-16 Bruno Haible + + Make convert-archive more robust. + * convert-archive.in: Report a fatal error in many error conditions. + Reported by Santiago Vila . + +2010-05-16 Bruno Haible + + * convert-archive.in: Remove known 'rlog' warning from error output. + (func_version): Update copyright years. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * autopoint.in: Update for 0.18. + +2010-05-09 Bruno Haible + + * autopoint.in (func_version): Bump copyright year. + +2010-05-08 Bruno Haible + + * po-mode.el (po-mode-version-string): Bump to 2.2. + +2010-05-08 Noritada Kobayashi + + po-mode: Fix bug in po-previous-translated-entry function. + * po-mode.el (po-previous-translated-entry): Use correct regular + expression. + Reported via Santiago Vila in + . + +2010-05-08 Noritada Kobayashi + Bruno Haible + + po-mode: Optionally delete previous untranslated comment when editing. + * po-mode.el (po-auto-delete-previous-msgid): New customizable + variable. + (po-any-previous-msgctxt-regexp, po-any-previous-msgid-regexp, + po-any-previous-msgid_plural-regexp): New variables. + (po-msgid-to-msgstr, po-kill-msgstr, po-yank-msgstr, po-subedit-exit): + Invoke po-maybe-delete-previous-untranslated after po-set-msgstr-form. + (po-unfuzzy): Invoke po-maybe-delete-previous-untranslated. + (po-previous-untranslated-region-for, po-previous-untranslated-regions, + po-delete-previous-untranslated, po-maybe-delete-previous-untranslated): + New functions. + Reported in + . + +2010-05-08 Bruno Haible + + po-mode: Fix po-msgid-to-msgstr on plural entries. + * po-mode.el (po-get-msgid_plural): New function. + (po-msgid-to-msgstr): Use it. + +2010-05-08 Noritada Kobayashi + Bruno Haible + + po-mode: Fix po-get-msgid function in plural entries. + * po-mode.el (po-get-msgid): Use po-start-of-msgid_plural as end + pointer, if it is set. + Reported in + . + +2010-05-08 Noritada Kobayashi + Bruno Haible + + po-mode: Determine position of "msgid_plural" line in current entry. + * po-mode.el (po-start-of-msgid_plural): New variable. + (po-any-msgid_plural-regexp): New variable. + (po-mode): Make po-start-of-msgid_plural buffer-local. + (po-find-span-of-entry): Set also po-start-of-msgid_plural. + Based on patch in + . + +2010-05-08 Bruno Haible + + * po-mode.el (po-get-msgstr-flavor): Preserve the point's position. + +2010-05-08 Noritada Kobayashi + + Fix failure of po-msgid-to-msgstr just after opening a buffer. + * po-mode.el (po-msgstr-form-flavor): Remove variable. + (po-get-msgstr-form): Do not call po-get-msgstr-flavor. + (po-set-msgstr-form): Call po-get-msgstr-flavor function here. + Reported in + . + +2010-05-08 Bruno Haible + + * po-mode.el (po-edit-string): Assign major mode text-mode to the + subedit buffer. + Reported by Kenichi Handa . + +2010-03-28 Bruno Haible + + * gettexize.in: Warn about use of --intl option. + (func_usage): Mark it as deprecated. + (func_version): Bump copyright year. + +2009-12-25 Bruno Haible + + * gettextize.in (m4filelist): Add fcntl-o.m4 instead of fcntl_h.m4 to + the list. + +2009-12-12 Bruno Haible + + * po-compat.el: Untabify. + * gettextize.in: Partially untabify. + +2009-10-18 Bruno Haible + + * gettextize.in (m4filelist): Add fcntl_h.m4 to the list. + (func_version): Bump copyright year. + +2009-09-27 Bruno Haible + + * add-to-archive: Pass option -fPIC to gcc. Clean up cvsuser.so. + +2009-09-27 Bruno Haible + + Support alternative to the cvs-compression of the archive. + * convert-archive.in: New file. + * autopoint.in (func_version): Show the archive format. + Support archive formats dir, cvs, git, instead of only cvs. + * Makefile.am (DISTCLEANFILES): Add convert-archive. + (CLEANFILES): Add archive.dir.tar.gz, archive.git.tar.gz. + (gettextsrc_DATA): Depend on @ARCHIVE_FORMAT@. + (archive.dir.tar.gz, archive.git.tar.gz): New rules. + Reported by Arkadiusz Miskiewicz in + . + +2009-09-27 Bruno Haible + + * add-to-archive: Use archive.cvs.tar.gz instead of archive.tar.gz. + * autopoint.in: Likewise. + * Makefile.am (archive.cvs.tar.gz): Renamed from archive.tar.gz. + (EXTRA_DIST, gettextsrc_DATA): Update. + +2009-08-14 Bruno Haible + + * Makefile.am (archive.tar.gz): Update error message. + +2009-08-09 Bruno Haible + + Add support for multiple PO directories to autopoint. + * autopoint.in (sed_extract_config_files, configfiles, + sed_remove_Makefile_in, podirs): New variables. + (func_destfile): Set allpodirs. + When allpodirs is set, loop over $podirs. + Reported by Guillem Jover + via Santiago Vila . + +2008-12-07 Bruno Haible + + * autopoint.in (func_version): Bump copyright year. + +2008-12-07 Bruno Haible + + * autopoint.in (func_compare): New function. + Don't overwrite *.m4 files when the existing file has a version number + at least as large as the one from the gettext release. + Reported by Colin Watson + and Sylvain Beucler . + +2008-08-17 Bruno Haible + + * gettextize.in (m4filelist): Add threadlib.m4 to the list. + (func_version): Bump copyright year. + +2008-08-13 Sven Joachim + + * po-mode.el (po-check-file-header): Use forward-line with + negative argument instead of previous-line. + (po-add-attribute): Use forward-line instead of next-line. + +2008-05-25 Bruno Haible + + * po-mode.el (po-replace-revision-date): Return nil. + Patch by Kobayashi Noritada . + +2008-05-07 Bruno Haible + + * po-mode.el (po-team-name-to-code): Add Beja. Remove Adangme, Banda, + Batak. Update Scottish Gaelic, Central Khmer, Romansh. + +2008-05-07 Bruno Haible + + Fix editing of plural forms. + * po-mode.el (po-mode-version-string): Bump to 2.11. + (po-any-msgstr-block-regexp): Must start with msgstr or msgstr[0]; + needed for re-search-backward. + (po-get-msgstr-flavor): Set the point to po-start-of-msgstr-form, not + to the beginning of the line. + Reported by Stéphane Raimbault . + +2008-04-20 Bruno Haible + + * autopoint.in: Check that really all CVS directories are removed. + Reported by Jim Meyering . + +2008-01-18 Bruno Haible + + * autopoint.in (xver): Make its computation more robust. + Reported by Michael Bauschert . + +2008-01-18 Bruno Haible + + * autopoint.in: Fix line breaking in an error message. + +2007-12-02 Bruno Haible + + * po-mode.el: Use modern backquote syntax. + Report and patch by Agustin Martin via + Santiago Vila . + 2007-11-07 Bruno Haible * gettext-0.17 released. @@ -12,8 +277,8 @@ 2007-10-17 Bruno Haible - * po-mode.el (po-msgstr-form-flavor): Renamed from - po-this-msgstr-flavor. New defvar. + * po-mode.el (po-msgstr-form-flavor): Renamed from + po-this-msgstr-flavor. New defvar. 2007-10-15 Bruno Haible diff -Nru gettext-0.17/gettext-tools/misc/convert-archive.in gettext-0.18.1.1/gettext-tools/misc/convert-archive.in --- gettext-0.17/gettext-tools/misc/convert-archive.in 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/convert-archive.in 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,347 @@ +#! /bin/sh +# +# Copyright (C) 2009-2010 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +# Usage: convert-archive FROM TO [FROMFILE [TOFILE]] +# where FROM is dir or cvs or git +# and TO is dir or cvs or git +# This will read FROMFILE (default: archive.$FROM.tar.gz) +# and produce TOFILE (default: archive.$TO.tar.gz). + +progname=$0 +package=@PACKAGE@ +version=@VERSION@ + +# func_usage +# outputs to stdout the --help usage message. +func_usage () +{ + echo "\ +Usage: convert-archive FROM TO [FROMFILE [TOFILE]] + +Converts the archive of gettext infrastructure from the FROM format +to the TO format. +FROMFILE is the original file, defaulting to archive.\$FROM.tar.gz. +TOFILE is the destination file, defaulting to archive.\$TO.tar.gz. + +Report bugs to ." +} + +# func_version +# outputs to stdout the --version message. +func_version () +{ + echo "$progname (GNU $package) $version" + echo "Copyright (C) 2009-2010 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law." + echo "Written by" "Bruno Haible" +} + +# func_fatal_error message +# outputs to stderr a fatal error message, and terminates the program. +func_fatal_error () +{ + echo "convert-archive: *** $1" 1>&2 + echo "convert-archive: *** Stop." 1>&2 + exit 1 +} + +# Command-line option processing. + +if ! { { test $# = 2 || test $# = 3 || test $# = 4; } \ + && case "$1" in dir | cvs | git ) true;; *) false;; esac \ + && case "$2" in dir | cvs | git ) true;; *) false;; esac; }; then + echo "Usage: convert-archive {dir|cvs|git} {dir|cvs|git} [fromfile [tofile]]" + exit 1 +fi + +from="$1" +to="$2" +fromfile="$3" +test -n "$fromfile" || fromfile=`pwd`/archive.$from.tar.gz +tofile="$4" +test -n "$tofile" || tofile=`pwd`/archive.$to.tar.gz + +unpacked=`pwd`/unpacked-files +mkdir "$unpacked" || { + if test -d "$unpacked"; then + func_fatal_error "directory $unpacked already exists" + else + func_fatal_error "cannot create directory $unpacked" + fi +} + +# Unpack the original archive. +case "$from" in + dir) + gzip -d -c < "$fromfile" | (cd "$unpacked" && tar xf -) \ + || func_fatal_error "file copy failed" + ;; + + cvs) + # Set variables + # - work_dir directory containing the temporary checkout + work_dir=tmpwrk$$ + mkdir "$work_dir" || { + if test -d "$work_dir"; then + func_fatal_error "directory $work_dir already exists" + else + func_fatal_error "cannot create directory $work_dir" + fi + } + + # Set variables + # - cvs_dir directory containing the temporary repository + cvs_dir=tmpcvs$$ + # Use an umask of 077, to avoid attacks that work by overwriting files in + # the "$CVSROOT"/CVSROOT directory. + (umask 077 && mkdir "$cvs_dir") || { + if test -d "$cvs_dir"; then + func_fatal_error "directory $cvs_dir already exists" + else + func_fatal_error "cannot create directory $cvs_dir" + fi + } + CVSROOT=`pwd`/"$cvs_dir" + unset CVS_CLIENT_LOG + unset CVS_CLIENT_PORT + unset CVS_IGNORE_REMOTE_ROOT + unset CVS_LOCAL_BRANCH_NUM + unset CVS_NOBASES + unset CVS_PASSFILE + unset CVS_PASSWORD + unset CVS_PROXY_PORT + unset CVS_RCMD_PORT + unset CVS_RSH + unset CVS_SERVER + unset CVS_SERVER_SLEEP + CVS_SIGN_COMMITS= + export CVS_SIGN_COMMITS + unset CVS_SSH + unset CVS_VERIFY_CHECKOUTS + unset CVS_VERIFY_TEMPLATE + unset CVSIGNORE + unset CVSREAD + unset CVSREADONLYFS + unset CVSUMASK + unset CVSWRAPPERS + + # Need to pass -d "$CVSROOT", because there may be a CVS directory in the + # current directory. + cvs -d "$CVSROOT" init || func_fatal_error "cvs init failed" + gzip -d -c < "$fromfile" | (cd "$cvs_dir" && tar xf -) + + # A witness that contains all versions. + # Can be e.g. ABOUT-NLS, intl/ChangeLog, m4/gettext.m4. + witness='ABOUT-NLS' + + # Get list of tags or versions. + sed_extract_tags_from_log1='/^symbolic names:/{ +:a +/^ /p +n +ba +} +/^keyword substitution:/q' + sed_extract_tags_from_log2='s/^ \([^:]*\):.*/\1/' + rlog_harmless_warning_regex="warning: Unknown phrases like \`commitid \.\.\.;' are present\." + tags=` + ( LC_ALL=C rlog "$cvs_dir"/archive/$witness,v 2>&1 1>&3 \ + | grep -v "$rlog_harmless_warning_regex" 1>&2 ) 3>&1 \ + | sed -n -e "$sed_extract_tags_from_log1" \ + | sed -e "$sed_extract_tags_from_log2"` + test -n "$tags" || func_fatal_error "no release tags found" + sed_tag_to_version='s/_/./g' + for tag in $tags; do + if test $tag != release; then + version=`echo "$tag" | sed -e "$sed_tag_to_version"` + (cd "$work_dir" + cvs -d "$CVSROOT" checkout -r"$tag" archive > /dev/null 2> cvs.err \ + || { cat cvs.err 1>&2; exit 1; } + cat cvs.err | grep -v '^cvs checkout: Updating' + find archive -name CVS -type d -print | xargs rm -rf + rm -rf CVS + ) || func_fatal_error "cvs checkout failed" + mv "$work_dir"/archive "$unpacked/$version" + fi + done + rm -rf "$cvs_dir" + rm -rf "$work_dir" + ;; + + git) + # Set variables + # - work_dir directory containing the temporary checkout + work_dir=tmpwrk$$ + mkdir "$work_dir" || { + if test -d "$work_dir"; then + func_fatal_error "directory $work_dir already exists" + else + func_fatal_error "cannot create directory $work_dir" + fi + } + + mkdir "$work_dir/master" || func_fatal_error "mkdir failed" + gzip -d -c < "$fromfile" | (cd "$work_dir/master" && tar xf -) + cd "$work_dir" + tags=`cd master && git tag` + test -n "$tags" || func_fatal_error "no release tags found" + for tag in $tags; do + if test $tag != empty; then + version=$tag + (cd master && git checkout -q $tag) \ + || func_fatal_error "git checkout failed" + rm -f master/.gitignore + mv master/.git .git + mkdir "$unpacked/$version" || func_fatal_error "mkdir failed" + (cd master && tar cf - .) | (cd "$unpacked/$version" && tar xf -) \ + || func_fatal_error "file copy failed" + mv .git master/.git + fi + done + cd .. + rm -rf "$work_dir" + ;; +esac + +# Find a good 'tar' program. +existing_file=gettext-0.10.35/ABOUT-NLS +TAR=tar +TAR_OPTIONS= +for prog in tar gnutar gtar; do + if (cd "$unpacked" && $prog cf - --owner=root --group=root "$existing_file") >/dev/null 2>&1; then + TAR=$prog + TAR_OPTIONS='--owner=root --group=root' + break + fi +done + +# Create the target archive. +case "$to" in + dir) + (cd "$unpacked" && $TAR cf - $TAR_OPTIONS *) \ + | gzip -c -9 > "$tofile" \ + || func_fatal_error "archive creation failed" + ;; + + cvs) + # Set variables + # - cvs_dir directory containing the temporary repository + cvs_dir=autopoint-files + # Use an umask of 077, to avoid attacks that work by overwriting files in + # the "$CVSROOT"/CVSROOT directory. + (umask 077 && mkdir "$cvs_dir") || { + if test -d "$cvs_dir"; then + func_fatal_error "directory $cvs_dir already exists" + else + func_fatal_error "cannot create directory $cvs_dir" + fi + } + CVSROOT=`pwd`/"$cvs_dir" + unset CVS_CLIENT_LOG + unset CVS_CLIENT_PORT + unset CVS_IGNORE_REMOTE_ROOT + unset CVS_PASSFILE + unset CVS_PASSWORD + unset CVS_RCMD_PORT + unset CVS_RSH + unset CVS_SERVER + unset CVS_SERVER_SLEEP + unset CVSIGNORE + unset CVSREAD + unset CVSUMASK + unset CVSWRAPPERS + + # Set a nonstandard variable, for a good-looking cvs history. + cvsuser=bruno + gcc -shared -fPIC -O cvsuser.c -o cvsuser.so + cvsuser_hack=`pwd`/cvsuser.so + + # Need to pass -d "$CVSROOT", because there may be a CVS directory in the + # current directory. + cvs -d "$CVSROOT" init || func_fatal_error "cvs init failed" + + # Add the contents of the unpacked directory to the repository. + (cd "$unpacked" + for version in *; do + cvsver=`echo "$version" | sed -e 's/\./_/g'` + (cd $version + CVSUSER=$cvsuser LD_PRELOAD=$cvsuser_hack \ + cvs -d "$CVSROOT" import -m "Import $version" archive release "$cvsver" > /dev/null + ) || func_fatal_error "cvs import failed" + # In order to avoid keyword substitution, we have to use "cvs admin" + # in a temporary checkout. + mkdir tmpcheckout || func_fatal_error "mkdir failed" + (cd tmpcheckout \ + && cvs -d "$CVSROOT" checkout -r"$cvsver" archive > /dev/null \ + && cvs -d "$CVSROOT" admin -ko `find . -type f -print | sed -e 's,^\./,,' | grep -v '^CVS/' | grep -v '/CVS/'` > /dev/null + ) 2> cvs.err || { cat cvs.err 1>&2; func_fatal_error "cvs checkout or admin failed"; } + rm -rf tmpcheckout + done + ) + (cd "$cvs_dir" && $TAR cf - $TAR_OPTIONS archive) \ + | gzip -c -9 > "$tofile" \ + || func_fatal_error "archive creation failed" + rm -rf "$cvs_dir" cvsuser.so + ;; + + git) + git_dir=`pwd`/tmpgit$$ + mkdir "$git_dir" || func_fatal_error "mkdir failed" + unset GIT_CONFIG + (cd "$git_dir" && { + git init -q + git config user.name 'GNU Gettext Build' + git config user.email 'bug-gnu-gettext@gnu.org' + touch .gitignore + git add . + git commit --author="Bruno Haible " \ + --message="Empty directory" 2>&1 \ + | grep -v '^ ' + git tag empty + }) || func_fatal_error "git init failed" + sed_remove_leading_dot='s,^\./,,' + sed_remove_git_infrastructure='/^\.git/d' + (cd "$unpacked" + for version in *; do + (cd $version && tar cf - .) | \ + (cd "$git_dir" && { + prev_files=`find . -type f | sed -e "$sed_remove_leading_dot" -e "$sed_remove_git_infrastructure"` + if test -n "$prev_files"; then + git rm -q $prev_files + fi + tar xf - + git add . + git commit --author="Bruno Haible " \ + --message="Import $version" 2>&1 \ + | grep -v '^ ' + git tag "$version" + }) || func_fatal_error "file copy into git repository failed" + done + ) + (cd "$git_dir" && git reset -q --hard empty && git repack -a -d -q) \ + || func_fatal_error "git reset or repack failed" + (cd "$git_dir" && $TAR cf - $TAR_OPTIONS .git) \ + | gzip -c -9 > "$tofile" \ + || func_fatal_error "archive creation failed" + rm -rf "$git_dir" + ;; +esac + +rm -rf "$unpacked" diff -Nru gettext-0.17/gettext-tools/misc/gettextize.in gettext-0.18.1.1/gettext-tools/misc/gettextize.in --- gettext-0.17/gettext-tools/misc/gettextize.in 2007-10-31 12:34:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/gettextize.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +# Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -160,7 +160,7 @@ --help print this help and exit --version print version information and exit -f, --force force writing of new files even if old exist - --intl install libintl in a subdirectory + --intl install libintl in a subdirectory (deprecated) --po-dir=DIR specify directory with PO files --no-changelog don't update or create ChangeLog files --symlink make symbolic links instead of copying files @@ -174,7 +174,7 @@ func_version () { echo "$progname (GNU $package) $version" - echo "Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + echo "Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." @@ -247,7 +247,7 @@ --version | --versio | --versi | --vers | --ver | --ve | --v ) func_version exit 0 ;; - -- ) # Stop option prcessing + -- ) # Stop option prcessing shift; break ;; -* ) echo "gettextize: unknown option $1" 1>&2 @@ -261,6 +261,11 @@ test -n "$podirs" || podirs="po" } +# Warn about deprecated options. +if test -n "$intldir"; then + echo "gettextize: warning: the option '--intl' is deprecated and will be removed" 1>&2 +fi + # Command-line argument processing. # Analyzes the remaining arguments. # Sets the variables @@ -768,10 +773,10 @@ min_automake_version=1.9 if test -n "$intldir" || test -z "$have_automake19"; then # Add intldir.m4, intl.m4 and its dependencies. - m4filelist=$m4filelist' codeset.m4 glibc2.m4 glibc21.m4 intdiv0.m4 intl.m4 - intldir.m4 intlmacosx.m4 intmax.m4 inttypes_h.m4 inttypes-pri.m4 + m4filelist=$m4filelist' codeset.m4 fcntl-o.m4 glibc2.m4 glibc21.m4 intdiv0.m4 + intl.m4 intldir.m4 intlmacosx.m4 intmax.m4 inttypes_h.m4 inttypes-pri.m4 lcmessage.m4 lock.m4 longlong.m4 printf-posix.m4 size_max.m4 stdint_h.m4 - uintmax_t.m4 visibility.m4 wchar_t.m4 wint_t.m4 xsize.m4' + threadlib.m4 uintmax_t.m4 visibility.m4 wchar_t.m4 wint_t.m4 xsize.m4' min_automake_version=1.8 fi diff -Nru gettext-0.17/gettext-tools/misc/Makefile.am gettext-0.18.1.1/gettext-tools/misc/Makefile.am --- gettext-0.17/gettext-tools/misc/Makefile.am 2007-10-07 19:37:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/misc subdirectory of GNU gettext -## Copyright (C) 1995-1997, 2000-2003, 2005-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1997, 2000-2003, 2005-2007, 2009-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,6 +18,7 @@ AUTOMAKE_OPTIONS = 1.2 gnits EXTRA_DIST = +CLEANFILES = DISTCLEANFILES = @@ -25,23 +26,43 @@ bin_SCRIPTS = gettextize autopoint -DISTCLEANFILES += gettextize autopoint +DISTCLEANFILES += gettextize autopoint convert-archive -EXTRA_DIST += add-to-archive cvsuser.c archive.tar.gz +CLEANFILES += archive.cvs.tar.gz archive.git.tar.gz + +EXTRA_DIST += add-to-archive cvsuser.c archive.dir.tar.gz gettextsrcdir = $(datadir)/gettext -gettextsrc_DATA = archive.tar.gz +gettextsrc_DATA = archive.@ARCHIVE_FORMAT@.tar.gz -# The archive.tar.gz is not in the CVS. Alpha-testers must use the one from an -# already installed release. -archive.tar.gz: - if test -f $(gettextsrcdir)/archive.tar.gz; then \ - cp -p $(gettextsrcdir)/archive.tar.gz $@; \ +# The archive.dir.tar.gz is not in the CVS. Alpha-testers must use the one from +# an already installed release. +archive.dir.tar.gz: + if test -f $(gettextsrcdir)/archive.dir.tar.gz; then \ + cp -p $(gettextsrcdir)/archive.dir.tar.gz $@; \ else \ - echo "archive.tar.gz is not in the CVS. Please copy the archive.tar.gz from an already installed release to gettext-tools/misc/." 1>&2; \ + echo "archive.dir.tar.gz is not under version control. Please copy the archive.dir.tar.gz from an already installed release to gettext-tools/misc/." 1>&2; \ exit 1; \ fi +# The archive.git.tar.gz is generated from archive.dir.tar.gz. +archive.git.tar.gz: archive.dir.tar.gz + if test -f archive.dir.tar.gz; then \ + inputfile=archive.dir.tar.gz; \ + else \ + inputfile='$(srcdir)'/archive.dir.tar.gz; \ + fi; \ + ./convert-archive dir git "$$inputfile" $@ + +# The archive.cvs.tar.gz is generated from archive.dir.tar.gz. +archive.cvs.tar.gz: archive.dir.tar.gz + if test -f archive.dir.tar.gz; then \ + inputfile=archive.dir.tar.gz; \ + else \ + inputfile='$(srcdir)'/archive.dir.tar.gz; \ + fi; \ + ./convert-archive dir cvs "$$inputfile" $@ + # Emacs Lisp code. lisp_LISP = start-po.el po-mode.el po-compat.el diff -Nru gettext-0.17/gettext-tools/misc/Makefile.in gettext-0.18.1.1/gettext-tools/misc/Makefile.in --- gettext-0.17/gettext-tools/misc/Makefile.in 2007-11-06 23:40:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/Makefile.in 2010-06-06 20:12:31.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,8 +19,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -36,32 +38,46 @@ host_triplet = @host@ subdir = misc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/autopoint.in $(srcdir)/gettextize.in ChangeLog + $(srcdir)/autopoint.in $(srcdir)/convert-archive.in \ + $(srcdir)/gettextize.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -69,13 +85,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -84,23 +101,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -108,68 +133,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -189,47 +244,71 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = gettextize autopoint -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(lispdir)" \ - "$(DESTDIR)$(gettextsrcdir)" -binSCRIPT_INSTALL = $(INSTALL_SCRIPT) -SCRIPTS = $(bin_SCRIPTS) -SOURCES = -DIST_SOURCES = +CONFIG_CLEAN_FILES = gettextize autopoint convert-archive +CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(lispdir)" \ + "$(DESTDIR)$(gettextsrcdir)" +SCRIPTS = $(bin_SCRIPTS) +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +SOURCES = +DIST_SOURCES = lispLISP_INSTALL = $(INSTALL_DATA) LISP = $(lisp_LISP) am__ELFILES = po-compat.el po-mode.el start-po.el am__ELCFILES = $(am__ELFILES:.el=.elc) ELCFILES = $(LISP:.el=.elc) elisp_comp = $(top_srcdir)/../build-aux/elisp-comp -gettextsrcDATA_INSTALL = $(INSTALL_DATA) DATA = $(gettextsrc_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -270,136 +349,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -413,53 +676,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -472,17 +815,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -490,18 +836,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -516,6 +870,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -526,94 +881,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -623,13 +1106,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -650,8 +1134,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -666,6 +1161,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -679,16 +1175,18 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits -EXTRA_DIST = add-to-archive cvsuser.c archive.tar.gz $(lisp_LISP) -DISTCLEANFILES = gettextize autopoint +EXTRA_DIST = add-to-archive cvsuser.c archive.dir.tar.gz $(lisp_LISP) +CLEANFILES = archive.cvs.tar.gz archive.git.tar.gz +DISTCLEANFILES = gettextize autopoint convert-archive # Scripts for maintainers. bin_SCRIPTS = gettextize autopoint gettextsrcdir = $(datadir)/gettext -gettextsrc_DATA = archive.tar.gz +gettextsrc_DATA = archive.@ARCHIVE_FORMAT@.tar.gz # Emacs Lisp code. lisp_LISP = start-po.el po-mode.el po-compat.el @@ -699,14 +1197,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits misc/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits misc/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits misc/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits misc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -724,29 +1222,47 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): gettextize: $(top_builddir)/config.status $(srcdir)/gettextize.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ autopoint: $(top_builddir)/config.status $(srcdir)/autopoint.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +convert-archive: $(top_builddir)/config.status $(srcdir)/convert-archive.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_SCRIPTS)'; for p in $$list; do \ + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ - else :; fi; \ - done + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) - @list='$(bin_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files installcheck-binSCRIPTS: $(bin_SCRIPTS) bad=0; pid=$$$$; list="$(bin_SCRIPTS)"; for p in $$list; do \ @@ -796,49 +1312,54 @@ else : ; fi install-lispLISP: $(lisp_LISP) $(ELCFILES) @$(NORMAL_INSTALL) - @if test "$(EMACS)" != no; then \ - test -z "$(lispdir)" || $(MKDIR_P) "$(DESTDIR)$(lispdir)"; \ + @if test "$(EMACS)" != no && test -n "$(lispdir)"; then \ + $(MKDIR_P) "$(DESTDIR)$(lispdir)"; \ list='$(lisp_LISP)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ + $(am__strip_dir) \ echo " $(lispLISP_INSTALL) '$$d$$p' '$(DESTDIR)$(lispdir)/$$f'"; \ - $(lispLISP_INSTALL) "$$d$$p" "$(DESTDIR)$(lispdir)/$$f"; \ + $(lispLISP_INSTALL) "$$d$$p" "$(DESTDIR)$(lispdir)/$$f" || exit $$?; \ if test -f $${p}c; then \ echo " $(lispLISP_INSTALL) '$${p}c' '$(DESTDIR)$(lispdir)/$${f}c'"; \ - $(lispLISP_INSTALL) "$${p}c" "$(DESTDIR)$(lispdir)/$${f}c"; \ + $(lispLISP_INSTALL) "$${p}c" "$(DESTDIR)$(lispdir)/$${f}c" || exit $$?; \ else : ; fi; \ done; \ else : ; fi uninstall-lispLISP: @$(NORMAL_UNINSTALL) - @if test "$(EMACS)" != no; then \ - list='$(lisp_LISP)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(lispdir)/$$f' '$(DESTDIR)$(lispdir)/$${f}c'"; \ - rm -f "$(DESTDIR)$(lispdir)/$$f" "$(DESTDIR)$(lispdir)/$${f}c"; \ - done; \ - else : ; fi + @test "$(EMACS)" != no && test -n "$(lispdir)" || exit 0; \ + list='$(lisp_LISP)'; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + filesc=`echo "$$files" | sed 's|$$|c|'`; \ + echo " ( cd '$(DESTDIR)$(lispdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(lispdir)" && rm -f $$files || exit $$?; \ + echo " ( cd '$(DESTDIR)$(lispdir)' && rm -f" $$filesc ")"; \ + cd "$(DESTDIR)$(lispdir)" && rm -f $$filesc clean-lisp: -rm -f elc-stamp $(ELCFILES) install-gettextsrcDATA: $(gettextsrc_DATA) @$(NORMAL_INSTALL) test -z "$(gettextsrcdir)" || $(MKDIR_P) "$(DESTDIR)$(gettextsrcdir)" - @list='$(gettextsrc_DATA)'; for p in $$list; do \ + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(gettextsrcDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - $(gettextsrcDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gettextsrcdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gettextsrcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gettextsrcdir)" || exit $$?; \ done uninstall-gettextsrcDATA: @$(NORMAL_UNINSTALL) - @list='$(gettextsrc_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(gettextsrcdir)/$$f'"; \ - rm -f "$(DESTDIR)$(gettextsrcdir)/$$f"; \ - done + @list='$(gettextsrc_DATA)'; test -n "$(gettextsrcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(gettextsrcdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(gettextsrcdir)" && rm -f $$files tags: TAGS TAGS: @@ -862,13 +1383,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -896,9 +1421,11 @@ mostlyclean-generic: clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -918,6 +1445,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -926,18 +1455,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-binSCRIPTS install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: installcheck-binSCRIPTS maintainer-clean: maintainer-clean-am @@ -977,15 +1516,34 @@ uninstall-lispLISP -# The archive.tar.gz is not in the CVS. Alpha-testers must use the one from an -# already installed release. -archive.tar.gz: - if test -f $(gettextsrcdir)/archive.tar.gz; then \ - cp -p $(gettextsrcdir)/archive.tar.gz $@; \ +# The archive.dir.tar.gz is not in the CVS. Alpha-testers must use the one from +# an already installed release. +archive.dir.tar.gz: + if test -f $(gettextsrcdir)/archive.dir.tar.gz; then \ + cp -p $(gettextsrcdir)/archive.dir.tar.gz $@; \ else \ - echo "archive.tar.gz is not in the CVS. Please copy the archive.tar.gz from an already installed release to gettext-tools/misc/." 1>&2; \ + echo "archive.dir.tar.gz is not under version control. Please copy the archive.dir.tar.gz from an already installed release to gettext-tools/misc/." 1>&2; \ exit 1; \ fi + +# The archive.git.tar.gz is generated from archive.dir.tar.gz. +archive.git.tar.gz: archive.dir.tar.gz + if test -f archive.dir.tar.gz; then \ + inputfile=archive.dir.tar.gz; \ + else \ + inputfile='$(srcdir)'/archive.dir.tar.gz; \ + fi; \ + ./convert-archive dir git "$$inputfile" $@ + +# The archive.cvs.tar.gz is generated from archive.dir.tar.gz. +archive.cvs.tar.gz: archive.dir.tar.gz + if test -f archive.dir.tar.gz; then \ + inputfile=archive.dir.tar.gz; \ + else \ + inputfile='$(srcdir)'/archive.dir.tar.gz; \ + fi; \ + ./convert-archive dir cvs "$$inputfile" $@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/misc/po-compat.el gettext-0.18.1.1/gettext-tools/misc/po-compat.el --- gettext-0.17/gettext-tools/misc/po-compat.el 2005-05-20 21:06:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/po-compat.el 2010-06-06 12:49:57.000000000 +0000 @@ -44,10 +44,10 @@ ;; - GNU Emacs (version 19) -> no flag. (eval-and-compile (cond ((string-match "XEmacs\\|Lucid" emacs-version) - (setq po-EMACS20 nil po-XEMACS t)) - ((and (string-lessp "19" emacs-version) (featurep 'faces)) - (setq po-EMACS20 t po-XEMACS nil)) - (t (setq po-EMACS20 nil po-XEMACS nil)))) + (setq po-EMACS20 nil po-XEMACS t)) + ((and (string-lessp "19" emacs-version) (featurep 'faces)) + (setq po-EMACS20 t po-XEMACS nil)) + (t (setq po-EMACS20 nil po-XEMACS nil)))) ;; Handle missing 'with-temp-buffer' function. (eval-and-compile @@ -57,17 +57,17 @@ (defmacro po-with-temp-buffer (&rest forms) "Create a temporary buffer, and evaluate FORMS there like 'progn'." (let ((curr-buffer (make-symbol "curr-buffer")) - (temp-buffer (make-symbol "temp-buffer"))) - `(let ((,curr-buffer (current-buffer)) - (,temp-buffer (get-buffer-create - (generate-new-buffer-name " *po-temp*")))) - (unwind-protect - (progn - (set-buffer ,temp-buffer) - ,@forms) - (set-buffer ,curr-buffer) - (and (buffer-name ,temp-buffer) - (kill-buffer ,temp-buffer)))))))) + (temp-buffer (make-symbol "temp-buffer"))) + `(let ((,curr-buffer (current-buffer)) + (,temp-buffer (get-buffer-create + (generate-new-buffer-name " *po-temp*")))) + (unwind-protect + (progn + (set-buffer ,temp-buffer) + ,@forms) + (set-buffer ,curr-buffer) + (and (buffer-name ,temp-buffer) + (kill-buffer ,temp-buffer)))))))) (defconst po-content-type-charset-alist '(; Note: Emacs 21 doesn't support all encodings, thus the missing entries. @@ -154,8 +154,8 @@ "Return PO file charset value." (interactive) (let ((charset-regexp - "^\"Content-Type: text/plain;[ \t]*charset=\\(.*\\)\\\\n\"") - (short-read nil)) + "^\"Content-Type: text/plain;[ \t]*charset=\\(.*\\)\\\\n\"") + (short-read nil)) ;; Try the first 4096 bytes. In case we cannot find the charset value ;; within the first 4096 bytes (the PO file might start with a long ;; comment) try the next 4096 bytes repeatedly until we'll know for sure @@ -163,64 +163,64 @@ (while (not (or short-read (re-search-forward "^msgid" nil t))) (save-excursion (goto-char (point-max)) - (let ((pair (insert-file-contents-literally filename nil - (1- (point)) - (1- (+ (point) 4096))))) - (setq short-read (< (nth 1 pair) 4096))))) + (let ((pair (insert-file-contents-literally filename nil + (1- (point)) + (1- (+ (point) 4096))))) + (setq short-read (< (nth 1 pair) 4096))))) (cond ((re-search-forward charset-regexp nil t) (match-string 1)) - (short-read nil) - ;; We've found the first msgid; maybe, only a part of the msgstr - ;; value was loaded. Load the next 1024 bytes; if charset still - ;; isn't available, give up. - (t (save-excursion - (goto-char (point-max)) - (insert-file-contents-literally filename nil - (1- (point)) - (1- (+ (point) 1024)))) - (if (re-search-forward charset-regexp nil t) - (match-string 1)))))) + (short-read nil) + ;; We've found the first msgid; maybe, only a part of the msgstr + ;; value was loaded. Load the next 1024 bytes; if charset still + ;; isn't available, give up. + (t (save-excursion + (goto-char (point-max)) + (insert-file-contents-literally filename nil + (1- (point)) + (1- (+ (point) 1024)))) + (if (re-search-forward charset-regexp nil t) + (match-string 1)))))) (eval-and-compile (if po-EMACS20 (defun po-find-file-coding-system-guts (operation filename) - "\ + "\ Return a Mule (DECODING . ENCODING) pair, according to PO file charset. Called through file-coding-system-alist, before the file is visited for real." - (and (eq operation 'insert-file-contents) - (file-exists-p filename) - (po-with-temp-buffer - (let* ((coding-system-for-read 'no-conversion) - (charset (or (po-find-charset filename) "ascii")) - (charset-upper (upcase charset)) - (charset-lower (downcase charset)) - (candidate - (cdr (assoc charset-upper po-content-type-charset-alist))) - (try-symbol (or candidate (intern-soft charset-lower))) - (try-string - (if try-symbol (symbol-name try-symbol) charset-lower))) - (list (cond ((and try-symbol (coding-system-p try-symbol)) - try-symbol) - ((and po-EMACS20 - (string-match "\\`cp[1-9][0-9][0-9]?\\'" - try-string) - (assoc (substring try-string 2) - (cp-supported-codepages))) - (codepage-setup (substring try-string 2)) - (intern try-string)) - (t - 'no-conversion)))))))) + (and (eq operation 'insert-file-contents) + (file-exists-p filename) + (po-with-temp-buffer + (let* ((coding-system-for-read 'no-conversion) + (charset (or (po-find-charset filename) "ascii")) + (charset-upper (upcase charset)) + (charset-lower (downcase charset)) + (candidate + (cdr (assoc charset-upper po-content-type-charset-alist))) + (try-symbol (or candidate (intern-soft charset-lower))) + (try-string + (if try-symbol (symbol-name try-symbol) charset-lower))) + (list (cond ((and try-symbol (coding-system-p try-symbol)) + try-symbol) + ((and po-EMACS20 + (string-match "\\`cp[1-9][0-9][0-9]?\\'" + try-string) + (assoc (substring try-string 2) + (cp-supported-codepages))) + (codepage-setup (substring try-string 2)) + (intern try-string)) + (t + 'no-conversion)))))))) (if po-XEMACS (defun po-find-file-coding-system-guts (operation filename) - "\ + "\ Return a Mule (DECODING . ENCODING) pair, according to PO file charset. Called through file-coding-system-alist, before the file is visited for real." - (and (eq operation 'insert-file-contents) - (file-exists-p filename) - (po-with-temp-buffer - (let ((coding-system-for-read 'no-conversion)) + (and (eq operation 'insert-file-contents) + (file-exists-p filename) + (po-with-temp-buffer + (let ((coding-system-for-read 'no-conversion)) (let* ((charset (or (po-find-charset filename) - "ascii")) + "ascii")) (charset-upper (upcase charset)) (charset-lower (intern (downcase charset)))) (list (or (cdr (assoc charset-upper @@ -231,17 +231,17 @@ (if po-EMACS20 (defun po-find-file-coding-system (arg-list) - "\ + "\ Return a Mule (DECODING . ENCODING) pair, according to PO file charset. Called through file-coding-system-alist, before the file is visited for real." - (po-find-file-coding-system-guts (car arg-list) (car (cdr arg-list))))) + (po-find-file-coding-system-guts (car arg-list) (car (cdr arg-list))))) (if po-XEMACS (defun po-find-file-coding-system (operation filename) - "\ + "\ Return a Mule (DECODING . ENCODING) pair, according to PO file charset. Called through file-coding-system-alist, before the file is visited for real." - (po-find-file-coding-system-guts operation filename))) + (po-find-file-coding-system-guts operation filename))) ) diff -Nru gettext-0.17/gettext-tools/misc/po-mode.el gettext-0.18.1.1/gettext-tools/misc/po-mode.el --- gettext-0.17/gettext-tools/misc/po-mode.el 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/misc/po-mode.el 2010-06-06 12:49:57.000000000 +0000 @@ -1,28 +1,26 @@ ;;; po-mode.el -- major mode for GNU gettext PO files -;; Copyright (C) 1995-1999, 2000-2002, 2005-2007 Free Software Foundation, Inc. +;; Copyright (C) 1995-1999, 2000-2002, 2005-2008, 2010 Free Software Foundation, Inc. -;; Authors: Franois Pinard +;; Authors: François Pinard ;; Greg McGary ;; Keywords: i18n gettext ;; Created: 1995 ;; This file is part of GNU gettext. -;; GNU gettext is free software; you can redistribute it and/or modify +;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 2, or (at your option) -;; any later version. +;; the Free Software Foundation; either version 3 of the License, or +;; (at your option) any later version. -;; GNU gettext is distributed in the hope that it will be useful, +;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. +;; along with this program. If not, see . ;;; Commentary: @@ -64,7 +62,7 @@ ;;; Code: -(defconst po-mode-version-string "2.1" "\ +(defconst po-mode-version-string "2.2" "\ Version number of this version of po-mode.el.") ;;; Emacs portability matters - part I. @@ -119,6 +117,14 @@ :type 'boolean :group 'po) +(defcustom po-auto-delete-previous-msgid t + "*Automatically delete previous msgid (marked #|) when editing entry. +Value is nil, t, or ask." + :type '(choice (const nil) + (const t) + (const ask)) + :group 'po) + (defcustom po-auto-select-on-unfuzzy nil "*Automatically select some new entry while making an entry not fuzzy." :type 'boolean @@ -188,7 +194,6 @@ ("(Afan) Oromo" . "om") ("Abkhazian" . "ab") ("Achinese" . "ace") - ("Adangme" . "ad") ("Afar" . "aa") ("Afrikaans" . "af") ("Akan" . "ak") @@ -208,10 +213,9 @@ ("Balinese" . "ban") ("Baluchi" . "bal") ("Bambara" . "bm") - ("Banda" . "bad") ("Bashkir" . "ba") ("Basque" . "eu") - ("Batak" . "btk") + ("Beja" . "bej") ("Belarusian" . "be") ("Bemba" . "bem") ("Bengali" . "bn") @@ -228,6 +232,7 @@ ("Burmese" . "my") ("Catalan" . "ca") ("Cebuano" . "ceb") + ("Central Khmer" . "km") ("Chamorro" . "ch") ("Chechen" . "ce") ("Chinese" . "zh") @@ -302,7 +307,7 @@ ("Kashmiri" . "ks") ("Kashubian" . "csb") ("Kazakh" . "kk") - ("Khmer" . "km") + ("Khmer" . "km") ; old name ("Kikuyu" . "ki") ("Kimbundu" . "kmb") ("Kinyarwanda" . "rw") @@ -369,7 +374,7 @@ ("Old English" . "ang") ("Oriya" . "or") ("Ossetian" . "os") - ("Pez" . "pbb") + ("Páez" . "pbb") ("Pali" . "pi") ("Pampanga" . "pam") ("Pangasinan" . "pag") @@ -380,8 +385,9 @@ ("Punjabi" . "pa") ("Quechua" . "qu") ("Rajasthani" . "raj") - ("Rhaeto-Roman" . "rm") + ("Rhaeto-Roman" . "rm") ; old name ("Romanian" . "ro") + ("Romansh" . "rm") ("Russian" . "ru") ("Samoan" . "sm") ("Sango" . "sg") @@ -389,7 +395,8 @@ ("Santali" . "sat") ("Sardinian" . "sc") ("Sasak" . "sas") - ("Scots" . "gd") + ("Scots" . "gd") ; old name + ("Scottish Gaelic" . "gd") ("Serbian" . "sr") ("Serer" . "srr") ("Sesotho" . "st") @@ -688,12 +695,12 @@ (defvar po-start-of-entry) (defvar po-start-of-msgctxt) ; = po-start-of-msgid if there is no msgctxt (defvar po-start-of-msgid) +(defvar po-start-of-msgid_plural) ; = nil if there is no msgid_plural (defvar po-start-of-msgstr-block) (defvar po-start-of-msgstr-form) (defvar po-end-of-msgstr-form) (defvar po-end-of-entry) (defvar po-entry-type) -(defvar po-msgstr-form-flavor) ;; A few counters are usefully shown in the Emacs mode line. (defvar po-translated-counter) @@ -1002,6 +1009,18 @@ (error (_"I do not know how to mail to '%s'") to)))))) "Function to start composing an electronic message.") +(defvar po-any-previous-msgctxt-regexp + "^#\\(~\\)?|[ \t]*msgctxt.*\n\\(#\\(~\\)?|[ \t]*\".*\n\\)*" + "Regexp matching a whole #| msgctxt field, whether obsolete or not.") + +(defvar po-any-previous-msgid-regexp + "^#\\(~\\)?|[ \t]*msgid.*\n\\(#\\(~\\)?|[ \t]*\".*\n\\)*" + "Regexp matching a whole #| msgid field, whether obsolete or not.") + +(defvar po-any-previous-msgid_plural-regexp + "^#\\(~\\)?|[ \t]*msgid_plural.*\n\\(#\\(~\\)?|[ \t]*\".*\n\\)*" + "Regexp matching a whole #| msgid_plural field, whether obsolete or not.") + (defvar po-any-msgctxt-msgid-regexp "^\\(#~[ \t]*\\)?msg\\(ctxt\\|id\\).*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*" "Regexp matching a whole msgctxt or msgid field, whether obsolete or not.") @@ -1010,8 +1029,12 @@ "^\\(#~[ \t]*\\)?msgid.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*" "Regexp matching a whole msgid field, whether obsolete or not.") +(defvar po-any-msgid_plural-regexp + "^\\(#~[ \t]*\\)?msgid_plural.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*" + "Regexp matching a whole msgid_plural field, whether obsolete or not.") + (defvar po-any-msgstr-block-regexp - "^\\(#~[ \t]*\\)?msgstr.*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\(\\(#~[ \t]*\\)?msgstr\\[[0-9]\\].*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\)*" + "^\\(#~[ \t]*\\)?msgstr\\([ \t]\\|\\[0\\]\\).*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\(\\(#~[ \t]*\\)?msgstr\\[[0-9]\\].*\n\\(\\(#~[ \t]*\\)?\".*\n\\)*\\)*" "Regexp matching a whole msgstr or msgstr[] field, whether obsolete or not.") (defvar po-any-msgstr-form-regexp @@ -1160,6 +1183,7 @@ (make-local-variable 'po-start-of-entry) (make-local-variable 'po-start-of-msgctxt) (make-local-variable 'po-start-of-msgid) + (make-local-variable 'po-start-of-msgid_plural) (make-local-variable 'po-start-of-msgstr-block) (make-local-variable 'po-end-of-entry) (make-local-variable 'po-entry-type) @@ -1353,7 +1377,7 @@ ;; This is an oldish header. Replace it all. (goto-char end-of-header) (while (> (point) (point-min)) - (previous-line 1) + (forward-line -1) (insert "#~ ") (beginning-of-line)) (beginning-of-line) @@ -1393,16 +1417,17 @@ t t)))) (message "")) (message (_"PO-Revision-Date should be adjusted..."))) + ;; Return nil to indicate that the buffer has not yet been saved. nil) ;;; Handling span of entry, entry type and entry attributes. (defun po-find-span-of-entry () "Find the extent of the PO file entry where the cursor is. -Set variables PO-START-OF-ENTRY, PO-START-OF-MSGCTXT, PO-START-OF-MSGID, -po-start-of-msgstr-block, PO-END-OF-ENTRY and PO-ENTRY-TYPE to meaningful -values. Decreasing priority of type interpretation is: obsolete, fuzzy, -untranslated or translated." +Set variables po-start-of-entry, po-start-of-msgctxt, po-start-of-msgid, +po-start-of-msgid_plural, po-start-of-msgstr-block, po-end-of-entry, and +po-entry-type to meaningful values. po-entry-type may be set to: obsolete, +fuzzy, untranslated, or translated." (let ((here (point))) (if (re-search-backward po-any-msgstr-block-regexp nil t) (progn @@ -1460,12 +1485,19 @@ (re-search-forward po-any-msgid-regexp) (setq po-start-of-msgid (match-beginning 0)) (save-excursion + (goto-char po-start-of-msgid) + (setq po-start-of-msgid_plural + (if (re-search-forward po-any-msgid_plural-regexp + po-start-of-msgstr-block t) + (match-beginning 0) + nil))) + (save-excursion (when (>= here po-start-of-msgstr-block) ;; point was somewhere inside of msgstr* (goto-char here) (end-of-line) (re-search-backward "^\\(#~[ \t]*\\)?msgstr")) - ;; Detect the bounderies of the msgstr we are interested in. + ;; Detect the boundaries of the msgstr we are interested in. (re-search-forward po-any-msgstr-form-regexp) (setq po-start-of-msgstr-form (match-beginning 0) po-end-of-msgstr-form (match-end 0))) @@ -1498,7 +1530,7 @@ (insert ", " name))) (skip-chars-forward "\n") (while (eq (following-char) ?#) - (next-line 1)) + (forward-line 1)) (insert "#, " name "\n"))))) (defun po-delete-attribute (name) @@ -1671,9 +1703,12 @@ (po-find-span-of-entry) (if (or (eq po-entry-type 'untranslated) (eq po-entry-type 'obsolete) - (y-or-n-p (_"Really lose previous translation? "))) - (po-set-msgstr-form (po-get-msgid))) - (message "")) + (prog1 (y-or-n-p (_"Really lose previous translation? ")) + (message ""))) + ;; In an entry with plural forms, use the msgid_plural string, + ;; as it is more general than the msgid string. + (if (po-set-msgstr-form (or (po-get-msgid_plural) (po-get-msgid))) + (po-maybe-delete-previous-untranslated)))) ;; Obsolete entries. @@ -1714,6 +1749,7 @@ (cond ((eq po-entry-type 'fuzzy) (po-decrease-type-counter) (po-delete-attribute "fuzzy") + (po-maybe-delete-previous-untranslated) (po-current-entry) (po-increase-type-counter))) (if po-auto-select-on-unfuzzy @@ -1741,7 +1777,7 @@ (po-previous-entry-with-regexp po-any-msgstr-block-regexp t) (po-find-span-of-entry) (while (not (eq po-entry-type 'translated)) - (po-previous-entry-with-regexp po-untranslated-regexp t) + (po-previous-entry-with-regexp po-any-msgstr-block-regexp t) (po-find-span-of-entry)))) ;; Auto-selection feature. @@ -1889,22 +1925,33 @@ "Extract and return the unquoted msgid string." (let ((string (po-extract-unquoted (current-buffer) po-start-of-msgid - po-start-of-msgstr-block))) + (or po-start-of-msgid_plural + po-start-of-msgstr-block)))) string)) +(defun po-get-msgid_plural () + "Extract and return the unquoted msgid_plural string. +Return nil if it is not present." + (if po-start-of-msgid_plural + (let ((string (po-extract-unquoted (current-buffer) + po-start-of-msgid_plural + po-start-of-msgstr-block))) + string) + nil)) + (defun po-get-msgstr-flavor () - "Helper function to detect msgstr and msgstr[] variants." - (beginning-of-line) - (re-search-forward "^\\(#~[ \t]*\\)?\\(msgstr\\(\\[[0-9]\\]\\)?\\)") - (match-string 2)) + "Helper function to detect msgstr and msgstr[] variants. +Returns one of \"msgstr\" or \"msgstr[i]\" for some i." + (save-excursion + (goto-char po-start-of-msgstr-form) + (re-search-forward "^\\(#~[ \t]*\\)?\\(msgstr\\(\\[[0-9]\\]\\)?\\)") + (match-string 2))) (defun po-get-msgstr-form () "Extract and return the unquoted msgstr string." - (let ((flavor (po-get-msgstr-flavor)) - (string (po-extract-unquoted (current-buffer) + (let ((string (po-extract-unquoted (current-buffer) po-start-of-msgstr-form po-end-of-msgstr-form))) - (setq po-msgstr-form-flavor flavor) string)) (defun po-set-msgid (form) @@ -1935,7 +1982,7 @@ Returns 'nil' if the buffer has not been modified, for if the new msgstr described by FORM is merely identical to the msgstr already in place." (let ((string (po-eval-requoted form - po-msgstr-form-flavor + (po-get-msgstr-flavor) (eq po-entry-type 'obsolete)))) (save-excursion (goto-char po-start-of-msgstr-form) @@ -1961,13 +2008,15 @@ "Empty the msgstr string from current entry, pushing it on the kill ring." (interactive) (po-kill-ring-save-msgstr) - (po-set-msgstr-form "")) + (if (po-set-msgstr-form "") + (po-maybe-delete-previous-untranslated))) (defun po-yank-msgstr () "Replace the current msgstr string by the top of the kill ring." (interactive) (po-find-span-of-entry) - (po-set-msgstr-form (if (eq last-command 'yank) '(yank-pop 1) '(yank))) + (if (po-set-msgstr-form (if (eq last-command 'yank) '(yank-pop 1) '(yank))) + (po-maybe-delete-previous-untranslated)) (setq this-command 'yank)) (defun po-fade-out-entry () @@ -2090,7 +2139,62 @@ (po-set-comment (if (eq last-command 'yank) '(yank-pop 1) '(yank))) (setq this-command 'yank) (po-redisplay)) - + +;;; Deleting the "previous untranslated" comment. + +(defun po-previous-untranslated-region-for (rx) + "Return the list of previous untranslated regions (at most one) for the +given regular expression RX." + (save-excursion + (goto-char po-start-of-entry) + (if (re-search-forward rx po-start-of-msgctxt t) + (list (cons (copy-marker (match-beginning 0)) + (copy-marker (match-end 0)))) + nil))) + +(defun po-previous-untranslated-regions () + "Return the list of previous untranslated regions in the current entry." + (append (po-previous-untranslated-region-for po-any-previous-msgctxt-regexp) + (po-previous-untranslated-region-for po-any-previous-msgid-regexp) + (po-previous-untranslated-region-for po-any-previous-msgid_plural-regexp))) + +(defun po-delete-previous-untranslated () + "Delete the previous msgctxt, msgid, msgid_plural fields (marked as #| +comments) from the current entry." + (interactive) + (po-find-span-of-entry) + (let ((buffer-read-only po-read-only)) + (dolist (region (po-previous-untranslated-regions)) + (delete-region (car region) (cdr region)))) + (po-redisplay)) + +(defun po-maybe-delete-previous-untranslated () + "Delete the previous msgctxt, msgid, msgid_plural fields (marked as #| +comments) from the current entry, if the user gives the permission." + (po-find-span-of-entry) + (let ((previous-regions (po-previous-untranslated-regions))) + (if previous-regions + (if (or (eq po-auto-delete-previous-msgid t) + (and (eq po-auto-delete-previous-msgid 'ask) + (let ((overlays nil)) + (unwind-protect + (progn + (setq overlays + (mapcar (function + (lambda (region) + (let ((overlay (po-create-overlay))) + (po-highlight overlay (car region) (cdr region)) + overlay))) + previous-regions)) + ;; Scroll, to show the previous-regions. + (goto-char (car (car previous-regions))) + (prog1 (y-or-n-p (_"Delete previous msgid comments? ")) + (message ""))) + (mapc 'po-dehighlight overlays))))) + (let ((buffer-read-only po-read-only)) + (dolist (region previous-regions) + (delete-region (car region) (cdr region)))))))) + ;;; Editing management and submode. ;; In a string edit buffer, BACK-POINTER points to one of the slots of the @@ -2213,7 +2317,7 @@ (erase-buffer) (insert-buffer-substring oldbuf start-1 end-1) (setq buffer-read-only t)) - + (setq start-2 (point)) (save-excursion ;; check for a third variant; if found ignore it @@ -2265,15 +2369,16 @@ (po-set-comment string) (po-redisplay)) ((= (point) po-start-of-msgstr-form) - (let ((replaced (po-set-msgstr-form string))) - (if (and replaced - po-auto-fuzzy-on-edit - (eq po-entry-type 'translated)) - (progn - (po-decrease-type-counter) - (po-add-attribute "fuzzy") - (po-current-entry) - (po-increase-type-counter))))) + (if (po-set-msgstr-form string) + (progn + (po-maybe-delete-previous-untranslated) + (if (and po-auto-fuzzy-on-edit + (eq po-entry-type 'translated)) + (progn + (po-decrease-type-counter) + (po-add-attribute "fuzzy") + (po-current-entry) + (po-increase-type-counter)))))) (t (debug))))) (defun po-edit-string (string type expand-tabs) @@ -2304,6 +2409,7 @@ (setq slot (list marker edit-buffer overlay) po-edited-fields (cons slot po-edited-fields)) (pop-to-buffer edit-buffer) + (text-mode) (set (make-local-variable 'po-subedit-back-pointer) slot) (set (make-local-variable 'indent-line-function) 'indent-relative) @@ -2328,7 +2434,7 @@ (interactive) (po-find-span-of-entry) (po-edit-string (po-get-comment nil) 'comment nil)) - + (defun po-edit-comment-and-ediff () "Use `ediff' to edit the current translator comment. This function calls `po-edit-msgstr' and `po-subedit-ediff'; for more info @@ -3451,6 +3557,7 @@ ;; Hey Emacs! ;; Local Variables: ;; indent-tabs-mode: nil +;; coding: utf-8 ;; End: ;;; po-mode.el ends here Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/be.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/be.gmo differ diff -Nru gettext-0.17/gettext-tools/po/be.po gettext-0.18.1.1/gettext-tools/po/be.po --- gettext-0.17/gettext-tools/po/be.po 2007-11-02 02:23:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/be.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,15 +6,16 @@ msgstr "" "Project-Id-Version: gettext 0.11.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2002-09-04 18:51+0300\n" "Last-Translator: Ales Nyakhaychyk \n" "Language-Team: Belarusian \n" +"Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: gnulib-lib/argmatch.c:133 #, fuzzy, c-format @@ -31,24 +32,24 @@ msgid "Valid arguments are:" msgstr "Рэчаісныя аргумэнты:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "немагчыма знайсці часовую дырэкторыю, паспрабуйце ўсталяваць $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" "немагчыма стварыць часовую дырэкторыю,\n" "выкарыстоўвываючы ўзор \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "немагчыма стварыць файл вываду \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "" @@ -59,44 +60,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "памылка ў час чытаньня файла \"%s\"" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "немагчыма адчыніць дубліруючы файл \"%s\" для запісу" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "памылка чытаньня \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "памылка запісу файла \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "памылка пасля чытаньня \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() памылка" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, fuzzy, c-format msgid "C# compiler not found, try installing pnet" msgstr "Java кампілятар ня знойдзен, паспрабуйце ўсталяваць gcj ці $JAVAC" @@ -107,74 +108,73 @@ msgstr "" "Віртуальная Java-машына ня знойдзена, паспрабуйце ўсталяваць gij ці $JAVA" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Невядомая сістэмная памылка" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s падпрацэс спынены з-за памылкі" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: выбар `%s' неадназначны\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: выбар `--%s' не патрабуе аргумэнтаў\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: выбар `%c%s' не патрабуе аргумэнтаў\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: выбар `%s' патрабуе аргумэнт\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: нераспазнаны выбар `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: нераспазнаны выбар `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: несапраўдны выбар -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: нерэчаісны выбар -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: выбар патрабуе аргумэнт -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: выбар `-W %s' неадназначны\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: выбар `-W %s' не патрабуе аргумэнтаў\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: выбар `%s' патрабуе аргумэнт\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -186,20 +186,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "немагчыма стварыць \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "памылка ў час запісу файла \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Java кампілятар ня знойдзен, паспрабуйце ўсталяваць gcj ці $JAVAC" @@ -210,20 +210,20 @@ msgstr "" "Віртуальная Java-машына ня знойдзена, паспрабуйце ўсталяваць gij ці $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "падпрацэс %s, памылка ўводу-вываду" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "памяць вычарпана" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -242,70 +242,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, fuzzy, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "падпрацэс %s завершыўся з кодам выхаду %d" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "немагчыма стварыць файл вываду \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s падпрацэс" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s падрацэс атрымаў фатальны сігнал %d" -#: src/format.c:143 +#: src/format.c:148 #, fuzzy, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "'%s' - гэта нерэчаісны %s фармат радку, у адрозьненьне ад 'msgid'" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "спэцыфікацыя фармату для аргумэнта %u, як у '%s', ня йснуе ў 'msgid'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "спэцыфікацыя фармату для аргумэнта %u ня йснуе ў '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "спэцыфікатары фармату ў 'msgid' і '%s' для аргумэнта %u неаднолькавыя" #: src/format-boost.c:449 @@ -330,9 +329,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "колькасьць спэцыфікацый фармату ў 'msgid' і '%s' не супадае" #: src/format-csharp.c:88 src/format-java.c:205 @@ -372,48 +371,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -503,21 +502,20 @@ msgstr "" #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "спэцыфікацыя фармату для аргумэнта {%u}, як у '%s', не йснуе ў 'msgid'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "спэцыфікацыя фармату для аргумэнта {%u} не йснуе ў '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "спэцыфікацыі фармату ў 'msgid' і '%s' для аргумэнта {%u} не аднолькавыя" @@ -532,11 +530,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -583,13 +581,13 @@ msgstr "" #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "спэцыфікацыі фармата ў 'msgid' і '%s' нераўназначныя" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "спэцыфікацыі фармата ў '%s' не з'яўляюцца падмноствам спэцыфікацый у 'msgid'" @@ -600,56 +598,53 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "спцэыфікацыя фармату для аргумэнта \"%s\" ня йснуе ў \"%s\"" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "спэцыфікацыі фармата ў 'msgid' і '%s' нераўназначныя" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "спэцыфікацыі фармата ў '%s' не з'яўляюцца падмноствам спэцыфікацый у 'msgid'" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "спэцыфікацыі фармату для аргумэнту '%s', як у '%s', не існуюць у'msgid'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "спэцыфікацыі фармату ў 'msgid' і '%s' для аргумэнта '%s' неаднолькавыя" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -686,11 +681,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -699,38 +694,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Аўтар %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "вельмі шмат аргумэнтаў" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Паспрабуйце \"%s --help\" для больш падрабязных зьвестак.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Выкарыстаньне: %s [ВЫБАР]\n" @@ -768,29 +763,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, fuzzy, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -802,11 +797,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Паведамляйце аб памылках на адрас .\n" @@ -815,30 +810,30 @@ msgid "could not get host name" msgstr "немагчыма атрымаць назву вузла" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "па большай частцы адзін уваходзячы файл зацьверджан" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s і %s узаема выключны" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Выкарыстаньне: %s [ВЫБАР] [УВАХОДЗЯЧЫ_ФАЙЛ]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -847,40 +842,40 @@ "Фільтруе паведамленьні каталёга перакладаў суадносна іх атрыбутам, а так сама,\n" "узьдзейнічае на іх\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Аргумэнты, абавязковыя для доўгіх выбараў, абавязковы й для кароткіх.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "невызначан уваходзячы файл" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, fuzzy, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" @@ -888,24 +883,24 @@ " ФАЙЛ ... .mo файлы\n" "Калі ўваходзячы файл не зададзен, ці замест яго -, чытае стандартны ўвод.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, fuzzy, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -916,203 +911,221 @@ "Вынікі запісваюцца ў стандартны вывад, калі ймя файла для вываду не\n" "зададзена, ці замест яго -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1133,31 +1146,31 @@ " даўжэй чым шырыня, на некалькі радкоў\n" " -s, --sort-output ствараць упарадкаваны вывад\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "зададзен немагчымы крытэрый выбару (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Выкарыстаньне: %s [ВЫБАР] [УВАХОДЗЯЧЫ_ФАЙЛ]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1181,105 +1194,97 @@ "будуць узяты з першага PO-файла.\n" "Пазіцыі з усіх PO-файлаў будуць аб'яднаны ў кучу\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "не зададзены ўводзячыя файлы" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "патрабуецца менавіта 2 уводзячых файла" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Выкарыстаньне: %s [ВЫБАР] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1297,22 +1302,22 @@ "супадзеньне ня будзе знойдзена, выкарыстоўвываецца недакладае - для\n" "лепшай праверкі.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, fuzzy, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1322,7 +1327,12 @@ " -m, --multi-domain прымяніць ref.pot для кожнага маёнтка з def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" @@ -1330,42 +1340,42 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "увага: гэта паведамленьне не выкарыстоўваецца" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "гэта паведамленьне выкарыстоўваецца, але не вызначана..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...але гэта вызначэньне падобна" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "гэта паведамленьне выкарыстоўваецца, але не вызначана ў %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "увага: гэта паведамленьне не выкарыстоўваецца" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1373,12 +1383,12 @@ msgstr[1] "знойдзена %d фатальныя памылкі" msgstr[2] "знойдзена %d фатальных памылак" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "неабходна задаць не менш двух файлаў" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1399,30 +1409,30 @@ "камэнтары будуць захаваны, але толькі зь першага PO файла, у якім яны былі\n" "вызначаны. Каментары становішчаў у файлах з усіх PO файлаў будуць аб'яднаны.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Пераўтварае каталёг з перакладамі ў розныя сімвальныя кадзіроўкі.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, fuzzy, c-format msgid "Conversion target:\n" msgstr "памылка пераўтварэньня" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, fuzzy, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" @@ -1430,46 +1440,46 @@ " -t, --to-code=НАЗВА перакаўтварае кадзіроўку для вываду\n" "Звычайна выкарыстоўвываецца бягучая кадзіроўка лакалі\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "невызначан уваходзячы файл" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "патрабуецца менавіта адзін уваходзячы файл" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Выкарыстаньне: %s [ВЫБАР] УВАХОДЗЯЧЫ_ФАЙЛ\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, fuzzy, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1482,22 +1492,22 @@ "Неперакладзеныя уваходжаньні прымаюцца як пераклады, аднолькавыя msgid, і\n" "пазначаюцца як недакладныя (fuzzy).\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "прапушчана назва каманды" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Выкарыстаньне: %s [ВЫБАР] ЗАГАД [ВЫБАР_ЗАГАДА]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1511,7 +1521,7 @@ "адзін раз для кожнага пераклада. Яго вывад становіцца вывадам msgexec.\n" "Праграма msgexec вяртае код - гэта найбольшы код вяртаньня паміж усіх выклікаў.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1520,42 +1530,42 @@ "Асабісты ўбудаваны загад, завецца '0', выводзіць пераклад й нулявы байт за ім.\n" "Вывад каманды \"msgexec 0\" падыходзіць для ўваходу каманды \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "памылка запісу ў stdout" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "памылка запісу ў падпрацэс %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "прапушчана назва фільтра" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "па меншай меры адзін sed-скрыпт павінен быць зададзены" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Выкарыстаньне: %s [ВЫБАР] ФІЛЬТР [ВЫБАРЫ_ФІЛЬТРА]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Прымае фільтар да ўсіх перакладаў зь каталёгу перакладаў.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1565,18 +1575,18 @@ "ўводу\n" "й запісвае зьмененыя пераклады ў стандартны вывад.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1584,91 +1594,73 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "немагчыма ўсталяваць неблакіруючы ўвод-вывад у падпрацэс %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "памылка ўзаемадзеяньня з падпрацэсам %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "памылка чытаньня з падпрацэса %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "падпрацэс %s завершыўся з кодам выхаду %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "аргумэнт %s павінен быць адзіночным знакам прыпынку" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s патрабуе \"-d дырэкторыя\" спэцыфікацыі" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s патрабуе \"-l locale\" спэцыфікацыі" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s рэчаісны толькі з %s ці %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, fuzzy, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s рэчаісны толькі з %s ці %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1676,7 +1668,7 @@ msgstr[1] "%d паведамленьні перакладзена" msgstr[2] "%d паведамленьняў перакладзена" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1690,7 +1682,7 @@ ",\n" "%d недакладных перакладаў" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1704,17 +1696,17 @@ ",\n" "%d неперакладзеных паведамленьняў" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Выкарыстаньне: %s [ВЫБАР] файл.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Стварае дваічны каталёг паведамленьняў зь іх тэкставага апісаньня.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1723,31 +1715,31 @@ "Аргумэнты, абавязковыя для доўгх выбараў, абавязковы так сама\n" "і для кароткі. Тое саме-ж і для выбарачных аргумэнтаў.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, fuzzy, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" @@ -1755,7 +1747,7 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1765,13 +1757,13 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, fuzzy, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" @@ -1779,41 +1771,41 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, fuzzy, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1831,48 +1823,48 @@ "абмежаваным падкрэсьліваньнем. Выбар -d абавязковы. Кляс запісваецца ў\n" "зададзеную дырэкторыю.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "невызначан уваходзячы файл" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1880,33 +1872,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1914,105 +1906,105 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, fuzzy, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" "Падрабязнасьці вываду:\n" -" -a, --alignment=ЛІК выроўніваць радкі па ЛІКу байтаў (звычайна: %" -"d)\n" +" -a, --alignment=ЛІК выроўніваць радкі па ЛІКу байтаў (звычайна: " +"%d)\n" " --no-hash дваічны файл не зьмяшчае хэш табліцы\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, fuzzy, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" "Падрабязнасьці вываду:\n" -" -a, --alignment=ЛІК выроўніваць радкі па ЛІКу байтаў (звычайна: %" -"d)\n" +" -a, --alignment=ЛІК выроўніваць радкі па ЛІКу байтаў (звычайна: " +"%d)\n" " --no-hash дваічны файл не зьмяшчае хэш табліцы\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "увага: загаловак PO-файла прапушчан ці нерэчаісны\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "увага: пераўтварэньне кадзіровак не будзе працаваць\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "увага: загаловак PO-файла мае недакладны пераклад\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "даменная назва \"%s\" не падыходзіць у якасці назвы файла" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "даменная назва \"%s\" не падыходзіць у якасці назвы файла;\n" "будзе выкарыстаны прэфікс" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "дырэктыва `domain %s' ігнаруецца" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "парожняе уваходжаньне `msgstr' прапушчана" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "недакладнае уваходжаньне `msgstr' прапушчана" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: увага: ізыходны файл змяшчае недакладны пераклад" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "памылка ў час чытаньня \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2020,14 +2012,14 @@ msgstr "" "выбар '%c' не можа быць выкарыстаны раней чым 'K' ці 'T' будуць зададзены" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2067,30 +2059,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2101,12 +2093,12 @@ "Калі ласка, задайце мясцовасьць з дапамогай выбару --locale\n" "ці .po файл вываду з дапамогай выбару --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Створан %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2115,12 +2107,12 @@ "Стварае новы PO файл, задае пачатковыя мэтададзеныя значэньнямі з асяродзьдзя\n" "карыстальніка.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, fuzzy, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2131,12 +2123,12 @@ " ФАЙЛ ... .mo файлы\n" "Калі ўваходзячы файл не зададзен, ці замест яго -, чытае стандартны ўвод.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, fuzzy, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2147,18 +2139,18 @@ " --strict уключае рэжым жорсткага адпавяданьня Uniforum\n" "Калі замест назвы файла вываду -, вывад запісваецца ў стандартны вывад.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2166,12 +2158,12 @@ "Знойдзен больш чым адзін .pot файл.\n" "Калі ласка задайце .pot файл уводу з дапамогай выбара --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "памылка чытаньня бягучай дырэкторыі" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2179,14 +2171,14 @@ "Ня знойдзен .pot файл у бягучай дырэкторыі.\n" "Калі ласка задайце .pot файл уводу з дапамогай выбара --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, fuzzy, c-format msgid "%s subprocess failed with exit code %d" msgstr "падпрацэс %s завершыўся з кодам выхаду %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2198,22 +2190,22 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Беларускі пераклад для %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "уваходзячы файл зьмяшчае два розных набора сімвалаў \"%s\" і \"%s\"" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2221,7 +2213,7 @@ "уваходзячы файл `%s' не зьмяшчае загаловачны запіс\n" "са сьпецыфікацыей кодавай старонкі" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, fuzzy, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2230,26 +2222,26 @@ "уваходзячы файл `%s' не зьмяшчае загаловачны запіс\n" "са сьпецыфікацыей кодавай старонкі" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "увага: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2258,7 +2250,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2267,7 +2259,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2276,12 +2268,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2289,7 +2281,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2298,7 +2290,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2306,25 +2298,25 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "выраз множнага ліку можа ўтвараць адмоўнае значэньне" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu але выраз множнага ліку можа ўтвараць значэньні такія як %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "выраз множнага ліку можа ўтвараць дзяленьне на нуль" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "выраз множнага ліку можа ўтвараць цэлалікавае перапаўненьне" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2332,40 +2324,40 @@ "выраз множнага ліку можа ўтвараць арыфмэтычныя выключэньні, магчыма\n" "дзяленьне на нуль" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "Паспрабуйце выкарыстоўваць наступнае, рэчаіснае для %s\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "каталёг паведамленьня мае пераклады форм множнага ліку..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...але ў загалоўку нехапае атрыбута \"plural=ВЫРАЗ\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...але ў загалоўку нехапае атрыбута \"plural=ЦЭЛЫ_ЛІК\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "нерэчаіснае значэньне nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "нерэчаісны выраз формы мнножнага ліку (plural)" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2375,7 +2367,7 @@ msgstr[2] "" "...але некаторыя паведамленьні маюць толькі %lu формаў множнага ліку" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2383,88 +2375,88 @@ msgstr[1] "...але некаторыя паведамленьні маюць %lu формы множнага ліку" msgstr[2] "...але некаторыя паведамленьні маюць %lu формаў множнага ліку" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 #, fuzzy msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "каталёг паведамленьня мае пераклады форм множнага ліку..." -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "`msgid' і `msgid_plural' не пачынаюцца разам з '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' і `msgstr[%u]' не пачынаюцца разам з \"\\n\"" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' і `msgstr' не пачынаюцца разам з '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' і `msgid_plural' не заканчваюцца разам на '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' і `msgstr[%u]' не заканчваюцца разам на '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' і `msgstr' не заканчваюцца разам на '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "апрацоўка множнага ліку - гэта пашырэньне GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "поле загалоку `%s' прапушчана ў загалоўку\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "поле загалоку `%s' павінна пачынацца на пачатку радка\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "некаторыя палі загалока ўсё яшчэ маюць пачатковае значэньне\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "поле `%s' усё яшчэ мае пачатковае значэньне\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "некаторыя палі загалока ўсё яшчэ маюць пачатковае значэньне\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "памылка ў час чытаньня файла \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "уваходзячы файл не змяшчае загаловачнага запісу аб наборы сімвалаў" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2473,15 +2465,15 @@ "Кадзіроўка \"%s\" не падтрымліваецца. %s спадзяецца на iconv(),\n" "але iconv() не падтрымлівае \"%s\".\n" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2490,16 +2482,16 @@ "Кадзіроўка \"%s\" не падтрымліваецца. %s спадзяецца на iconv().\n" "Гэта вэрсія пабудавана без iconv().\n" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s рэчаісны толькі з %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2520,51 +2512,51 @@ "супадзеньне ня будзе знойдзена, выкарыстоўвываецца недакладае - для\n" "лепшай праверкі.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2576,7 +2568,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2584,12 +2576,7 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2598,22 +2585,22 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "гэтае паведамленьне павінна вызначаць хормы множнага ліка" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "гэтае паведамленьне не павінна вызначаць хормы множнага ліка" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2622,26 +2609,28 @@ "%sПрачытана %ld старых + %ld новых, аб'яднаных %ld, недакладных %ld;\n" "прапушчана %ld, састарэлых %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " зроблена.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s і яўная назва файла ўзаема выключальны" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Выкарыстаньне: %s [ВЫБАР] [ФАЙЛ]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Пераўтварае дваічны каталёг паведамленьняў у Uniforum .po файл.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, fuzzy, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2651,7 +2640,7 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, fuzzy, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" @@ -2659,7 +2648,7 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2669,7 +2658,7 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, fuzzy, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2678,17 +2667,17 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, fuzzy, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2705,41 +2694,41 @@ "абмежаваным падкрэсьліваньнем. Выбар -d абавязковы. Кляс запісваецца ў\n" "зададзеную дырэкторыю.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "невызначан уваходзячы файл" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2752,12 +2741,12 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, fuzzy, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2767,7 +2756,7 @@ " -d, --repeated друкаваць толькі паўтараючыеся\n" " -u, --unique друкаваць толькі непаўторныя\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2854,65 +2843,65 @@ msgid "plural form has wrong index" msgstr "формы множнага ліку маюць дрэнныі індэкс" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "вельмі шмат памылак..." -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "нерэчаісная шматсімвальная паслядоўнасць" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "няпоўная шматбайтная пасьлядоўнасьць на прыканцы файла" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "няпоўная шматбайтная пасьлядоўнасьць на прыканцы радка" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "памылка iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "невядомае ключавое слова \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "нерэчаісная кантралюючая паслядоўнасць" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "сімвал канца файла знаходзіцца ўнутры радка" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "сімвал канца радка знаходзіцца ўнутры радка" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "гэты файл можа не змяшчаць дырэктыў дамену" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "двайное вызначэньне паведамленьня" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...гэта месцазнаходжаньне першага вызначэньня" @@ -3002,28 +2991,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "памылка ў час чытаньня файла \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "чакалісь два аргумэнты" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Выкарыстаньне: %s [ВЫБАР] URL ФАЙЛ\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "памылка запісу ў stdout" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3057,47 +3061,47 @@ "support them." msgstr "каталёг паведамленьня мае пераклады форм множнага ліку..." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "немагчыма стварыць файл вываду \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "стандартны вывад" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr "немагчыма стварыць \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, fuzzy, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" "памылка кампіляцыі Java кляса, калі ласка паспрабуйце --verbose,\n" "ці ўсталяваць пераменную асяроддзя $JAVAC" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "" "памылка кампіляцыі Java кляса, калі ласка паспрабуйце --verbose,\n" "ці ўсталяваць пераменную асяроддзя $JAVAC" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "нерэчаісная назва Java-класа: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "памылка кампіляцыі Java кляса, калі ласка паспрабуйце --verbose,\n" "ці ўсталяваць пераменную асяроддзя $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3109,14 +3113,14 @@ msgid "error while opening \"%s\" for writing" msgstr "памылка ў час адкрыцця \"%s\" для запісу" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "перакладзеныя паведамленьні не павінны зьмяшчаць \"\\%c\" ESC-пасьлядоўнасьці" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3130,7 +3134,7 @@ "выкарыстаньня толькі ASCII сымбаляў у msgid\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3152,8 +3156,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3170,14 +3174,14 @@ msgid "error while writing to %s subprocess" msgstr "памылка ў час запісу файла \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "каталёг паведамленьня мае пераклады форм множнага ліку..." -#: src/write-resources.c:149 +#: src/write-resources.c:150 #, fuzzy msgid "" "message catalog has plural form translations\n" @@ -3197,99 +3201,96 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: увага: незавершаны радок" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: увага: незавершаны радок" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: увага: незавершаная сімвальная канстанта" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: увага: незавершаны радок" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, fuzzy, c-format msgid "%s:%d: iconv failure" msgstr "памылка iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: увага: незавершаная сімвальная канстанта" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: увага: незавершаны радок" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, fuzzy, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3298,55 +3299,53 @@ "Кадзіроўка \"%s\" не падтрымліваецца. %s спадзяецца на iconv().\n" "Гэта вэрсія пабудавана без iconv().\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: увага: незавершаны радок" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: нерэчаіснае вызначэньне радка" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3354,7 +3353,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3362,7 +3361,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3370,7 +3369,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3378,7 +3377,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3386,77 +3385,77 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: нерэчаіснае вызначэньне радка" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: прапушчан нумар пасьля #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: нерэчаісны выраз-радок" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--joun-existing не можа быць выкарастаны пры запісы ў stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext не можа працаваць без ключавых слоў для пошуку" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "увага: файл \"%s\" суфікс \"%s\" невядомы; паспрабуйце C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Атрымлівае перакладаемыя радкі з дадзеных уваходзячых файлаў.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "невызначан уваходзячы файл" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3468,58 +3467,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3528,14 +3530,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3543,7 +3545,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3552,17 +3554,17 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, fuzzy, c-format msgid " --qt recognize Qt format strings\n" msgstr "" @@ -3570,12 +3572,12 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" @@ -3583,7 +3585,7 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr "" @@ -3591,89 +3593,106 @@ " -j, --java Java рэжым: увод гэта ResourceBundle кляс\n" " --tcl Tcl рэжым: увод гэта tcl/msgcat .msg файл\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "стандартны ўвод" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, fuzzy, c-format msgid "%s%s: warning: " msgstr "%s: увага: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, fuzzy, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "'%s' - гэта нерэчаісны %s фармат радку, у адрозьненьне ад 'msgid'" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3682,7 +3701,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3692,27 +3711,27 @@ "gettext(\"\") вяртае загаловак зь\n" "метададзенымі, а ня пусты радок.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "неадназначны аргумэнт `%s' для `%s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, fuzzy, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "неадназначны аргумэнт `%s' для `%s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, fuzzy, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "неадназначны аргумэнт `%s' для `%s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3720,7 +3739,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "невядомая мова `%s'" @@ -3729,6 +3748,28 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: несапраўдны выбар -- %c\n" + +#, fuzzy +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "падпрацэс %s завершыўся з кодам выхаду %d" + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "немагчыма ўсталяваць неблакіруючы ўвод-вывад у падпрацэс %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "памылка ўзаемадзеяньня з падпрацэсам %s" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "памылка чытаньня з падпрацэса %s" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "падпрацэс %s завершыўся з кодам выхаду %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "поле `%s' усё яшчэ мае пачатковае значэньне\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/bg.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/bg.gmo differ diff -Nru gettext-0.17/gettext-tools/po/bg.po gettext-0.18.1.1/gettext-tools/po/bg.po --- gettext-0.17/gettext-tools/po/bg.po 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/bg.po 2010-06-06 12:49:57.000000000 +0000 @@ -0,0 +1,4033 @@ +# Bulgarian translations for gettext-tools package. +# Copyright (C) 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Roumen Petrov , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: gettext-tools 0.18\n" +"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-11 11:46+0300\n" +"Last-Translator: Roumen Petrov \n" +"Language-Team: Bulgarian \n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: gnulib-lib/argmatch.c:133 +#, c-format +msgid "invalid argument %s for %s" +msgstr "неправилен аргумент %s за %s" + +#: gnulib-lib/argmatch.c:134 +#, c-format +msgid "ambiguous argument %s for %s" +msgstr "двусмислен аргумент %s за %s" + +#: gnulib-lib/argmatch.c:153 +#, c-format +msgid "Valid arguments are:" +msgstr "Правилни аргументи са:" + +#: gnulib-lib/clean-temp.c:335 +#, c-format +msgid "cannot find a temporary directory, try setting $TMPDIR" +msgstr "" +"не можа да се намери временна директория, да се опита с задаване на $TMPDIR" + +#: gnulib-lib/clean-temp.c:349 +#, c-format +msgid "cannot create a temporary directory using template \"%s\"" +msgstr "не можа да се създаде временна директория използвайки за пример \"%s\"" + +#: gnulib-lib/clean-temp.c:445 +#, c-format +msgid "cannot remove temporary file %s" +msgstr "не можа да се изтрие временен файл %s" + +#: gnulib-lib/clean-temp.c:460 +#, c-format +msgid "cannot remove temporary directory %s" +msgstr "не можа да се изтрие временна директория %s" + +#: gnulib-lib/closeout.c:66 +msgid "write error" +msgstr "грешка при запис" + +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 +#, c-format +msgid "error while opening \"%s\" for reading" +msgstr "грешка при отваряне за четене на \"%s\"" + +#: gnulib-lib/copy-file.c:74 +#, c-format +msgid "cannot open backup file \"%s\" for writing" +msgstr "не можа да се отвори за запис резервно копие \"%s\"" + +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 +#, c-format +msgid "error reading \"%s\"" +msgstr "грешка при четене \"%s\"" + +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 +#, c-format +msgid "error writing \"%s\"" +msgstr "грешка при записване \"%s\"" + +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 +#, c-format +msgid "error after reading \"%s\"" +msgstr "грешка след прочитане на \"%s\"" + +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 +#: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 +#: src/read-tcl.c:110 src/write-resources.c:77 +#, c-format +msgid "fdopen() failed" +msgstr "fdopen() не успя" + +#: gnulib-lib/csharpcomp.c:571 +#, c-format +msgid "C# compiler not found, try installing pnet" +msgstr "не е намерен C# компилатор, да се опита при инсталиран pnet" + +#: gnulib-lib/csharpexec.c:343 +#, c-format +msgid "C# virtual machine not found, try installing pnet" +msgstr "не е намерена виртуална машина за C#, да се опита при инсталиран pnet" + +#: gnulib-lib/error.c:181 +msgid "Unknown system error" +msgstr "Неизвестна системна грешка" + +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 +#, c-format +msgid "%s subprocess failed" +msgstr "пропадна подпроцес %s" + +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: двусмислена опция '%s'\n" + +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: опцията '--%s' е без аргументи\n" + +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: опцията '%c%s' е без аргументи\n" + +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: опцията '--%s' изисква аргумент\n" + +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, c-format +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: неразпозната опция '--%s'\n" + +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, c-format +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: неразпозната опция '%c%s'\n" + +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: неправилна опция -- '%c'\n" + +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, c-format +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: опцията изисква аргумент -- '%c'\n" + +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: двусмислена опция '-W %s'\n" + +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: опцията '-W %s' е без аргументи\n" + +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: опцията '-W %s' изисква аргумент\n" + +#: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 +#: gnulib-lib/javacomp.c:156 +#, c-format +msgid "invalid source_version argument to compile_java_class" +msgstr "неправилен аргумент за \"версия на източник\"за compile_java_class" + +#: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 +#, c-format +msgid "invalid target_version argument to compile_java_class" +msgstr "неправлен аргумент за \"версия на резултат\" за compile_java_class" + +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 +#, c-format +msgid "failed to create \"%s\"" +msgstr "не успя създаването на \"%s\"" + +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 +#: src/write-qt.c:748 src/write-tcl.c:222 +#, c-format +msgid "error while writing \"%s\" file" +msgstr "грешка при записване на файл \"%s\"" + +#: gnulib-lib/javacomp.c:2343 +#, c-format +msgid "Java compiler not found, try installing gcj or set $JAVAC" +msgstr "" +"не е намерен Java компилатор, да се опита с инсталиран gcj или със задаване " +"на $JAVAC" + +#: gnulib-lib/javaexec.c:417 +#, c-format +msgid "Java virtual machine not found, try installing gij or set $JAVA" +msgstr "" +"не е намерена виртуална машина за Java, да се опита с инсталиран gcj или със " +"задаване на $JAVAC" + +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 +#, c-format +msgid "%s subprocess I/O error" +msgstr "%s В/И грешка при подпроцес" + +#: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 +#, c-format +msgid "memory exhausted" +msgstr "паметта е изчерпана" + +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:265 +#, c-format +msgid "cannot create pipe" +msgstr "не можа да се създаде канал" + +#. TRANSLATORS: +#. Get translations for open and closing quotation marks. +#. +#. The message catalog should translate "`" to a left +#. quotation mark suitable for the locale, and similarly for +#. "'". If the catalog has no translation, +#. locale_quoting_style quotes `like this', and +#. clocale_quoting_style quotes "like this". +#. +#. For example, an American English Unicode locale should +#. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and +#. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION +#. MARK). A British English Unicode locale should instead +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. +#. If you don't know what to put here, please see +#. +#. and use glyphs suitable for your language. +#: gnulib-lib/quotearg.c:272 +msgid "`" +msgstr "„" + +#: gnulib-lib/quotearg.c:273 +msgid "'" +msgstr "“" + +#: gnulib-lib/w32spawn.h:40 +#, c-format +msgid "_open_osfhandle failed" +msgstr "_open_osfhandle не успя" + +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "не можа да се възстанови описание на файл %d, dup2 не успя" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 +#, c-format +msgid "%s subprocess" +msgstr "подпроцес %s" + +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 +#, c-format +msgid "%s subprocess got fatal signal %d" +msgstr "подпроцес %s получи смъртоносен сигнал %d" + +#: src/format.c:148 +#, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" +msgstr "'%s' е неправилен %s форматиращ низ, за разлика от '%s'. Причина: %s" + +#: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, c-format +msgid "" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "указания формат за аргумент %u, както е в '%s', не съществува за '%s'" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 +#, c-format +msgid "a format specification for argument %u doesn't exist in '%s'" +msgstr "указания формат за аргумент %u не съществува за '%s'" + +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "не са еднакви указаните формати при '%s' и при '%s' за аргумент %u" + +#: src/format-boost.c:449 +#, c-format +msgid "The directive number %u starts with | but does not end with |." +msgstr "Директива номер %u започва с |, но не завършва с |." + +#: src/format-c.c:181 +#, c-format +msgid "" +"In the directive number %u, the token after '<' is not the name of a format " +"specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." +msgstr "" +"При директива номер %u, частта след '<' не е име на форматиращ макрос. " +"Правилните имена на макроси са изброени в ИСО Си 99 секция 7.8.1." + +#: src/format-c.c:588 +#, c-format +msgid "In the directive number %u, the token after '<' is not followed by '>'." +msgstr "В директива номер %u, частта след '<' не е завършена с '>'." + +#: src/format-c.c:814 +#, c-format +msgid "The string refers to argument number %u but ignores argument number %u." +msgstr "Низа указва към аргумент номер %u, но пренебрегва аргумент номер %u." + +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, c-format +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "не съвпада указания брой на формати при '%s' и при '%s'" + +#: src/format-csharp.c:88 src/format-java.c:205 +#, c-format +msgid "In the directive number %u, '{' is not followed by an argument number." +msgstr "При директива номер %u, '{' не е последван от номер на аргумент." + +#: src/format-csharp.c:109 +#, c-format +msgid "In the directive number %u, ',' is not followed by a number." +msgstr "При директива номер %u, ',' не е последван от число." + +#: src/format-csharp.c:130 src/format-java.c:191 +msgid "" +"The string ends in the middle of a directive: found '{' without matching '}'." +msgstr "" +"Низът завършва по средата на директивата: намерено '{' без съответен '}'." + +#: src/format-csharp.c:139 +#, c-format +msgid "" +"The directive number %u ends with an invalid character '%c' instead of '}'." +msgstr "Директива номер %u завършва с неправилен знак '%c' вместо '}'." + +#: src/format-csharp.c:140 +#, c-format +msgid "The directive number %u ends with an invalid character instead of '}'." +msgstr "Директива номер %u завършва с неправилен знак вместо '}'." + +#: src/format-csharp.c:161 src/format-java.c:346 +msgid "" +"The string starts in the middle of a directive: found '}' without matching " +"'{'." +msgstr "Низът започва в средата на директива : намерено '}' без съответен '{'." + +#: src/format-csharp.c:162 +#, c-format +msgid "The string contains a lone '}' after directive number %u." +msgstr "Низът съдържа самотен '}' след директива номер %u." + +#: src/format-gcc-internal.c:255 +#, c-format +msgid "In the directive number %u, the flags combination is invalid." +msgstr "При директива номер %u, комбинацията от флагове не е правилна." + +#: src/format-gcc-internal.c:292 +#, c-format +msgid "In the directive number %u, a precision is not allowed before '%c'." +msgstr "При директива номер %u, точност не е разрешена преди '%c'." + +#: src/format-gcc-internal.c:334 +#, c-format +msgid "" +"In the directive number %u, the argument number for the precision must be " +"equal to %u." +msgstr "При директива номер %u, числото за точност трябва да бъде равно на %u." + +#: src/format-gcc-internal.c:398 +#, c-format +msgid "" +"In the directive number %u, a precision specification is not allowed before " +"'%c'." +msgstr "" +"При директива номер %u, указването на точност не е разрешено преди '%c'." + +#: src/format-gcc-internal.c:406 +#, c-format +msgid "In the directive number %u, the precision specification is invalid." +msgstr "При директива номер %u, точността не се зададена правилно." + +#: src/format-gcc-internal.c:463 +#, c-format +msgid "In the directive number %u, flags are not allowed before '%c'." +msgstr "При директива номер %u, флаговете не за разрешени преди '%c'." + +#: src/format-gcc-internal.c:677 +#, c-format +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s' използва %%m, а '%s' не" + +#: src/format-gcc-internal.c:680 +#, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s' не използва %%m, а '%s' използва %%m" + +#: src/format-invalid.h:22 +msgid "The string ends in the middle of a directive." +msgstr "Низът завършва в средата на директива." + +#: src/format-invalid.h:25 +msgid "" +"The string refers to arguments both through absolute argument numbers and " +"through unnumbered argument specifications." +msgstr "" +"Низа указва аргументи и чрез номер на аргумент, и чрез неномерирано задаване " +"на аргумент." + +#: src/format-invalid.h:28 +#, c-format +msgid "" +"In the directive number %u, the argument number 0 is not a positive integer." +msgstr "При директива номер %u, аргумент номер 0 не е цяло положително число." + +#: src/format-invalid.h:30 +#, c-format +msgid "" +"In the directive number %u, the width's argument number 0 is not a positive " +"integer." +msgstr "" +"При директива номер %u, ширината за аргумент номер 0 не е цяло положително " +"число." + +#: src/format-invalid.h:32 +#, c-format +msgid "" +"In the directive number %u, the precision's argument number 0 is not a " +"positive integer." +msgstr "" +"При директива номер %u, точността за аргумент номер 0 не е цяло положително " +"число." + +#: src/format-invalid.h:36 +#, c-format +msgid "" +"In the directive number %u, the character '%c' is not a valid conversion " +"specifier." +msgstr "При директива номер %u, знакът '%c' не е валиден за превръщане." + +#: src/format-invalid.h:37 +#, c-format +msgid "" +"The character that terminates the directive number %u is not a valid " +"conversion specifier." +msgstr "" +"Знакът, който прекратява директива номер %u, не е валиден за превръщане." + +#: src/format-invalid.h:40 +#, c-format +msgid "The string refers to argument number %u in incompatible ways." +msgstr "Низа указва към аргумент номер %u по несъвместим начин." + +#: src/format-java.c:240 +#, c-format +msgid "" +"In the directive number %u, the substring \"%s\" is not a valid date/time " +"style." +msgstr "При директива номер %u, низът \"%s\" не е правилен за дата/час." + +#: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 +#, c-format +msgid "In the directive number %u, \"%s\" is not followed by a comma." +msgstr "При директива номер %u, \"%s\" не е последван от запетая." + +#: src/format-java.c:274 +#, c-format +msgid "" +"In the directive number %u, the substring \"%s\" is not a valid number style." +msgstr "При директива номер %u, низът \"%s\" не е правилен за число." + +#: src/format-java.c:323 +#, c-format +msgid "" +"In the directive number %u, the argument number is not followed by a comma " +"and one of \"%s\", \"%s\", \"%s\", \"%s\"." +msgstr "" +"При директива номер %u, номера на аргумент не е последван от запетая или " +"някой от \"%s\", \"%s\", \"%s\", \"%s\"." + +#: src/format-java.c:572 +#, c-format +msgid "In the directive number %u, a choice contains no number." +msgstr "При директива номер %u, избора е без число." + +#: src/format-java.c:583 +#, c-format +msgid "" +"In the directive number %u, a choice contains a number that is not followed " +"by '<', '#' or '%s'." +msgstr "" +"При директива номер %u, избора съдържа число, което не е последвано от '<', " +"'#' или '%s'." + +#: src/format-java.c:745 +#, c-format +msgid "" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "" +"указания формат за аргумент {%u}, както е при '%s', не съществува в '%s'" + +#: src/format-java.c:756 +#, c-format +msgid "a format specification for argument {%u} doesn't exist in '%s'" +msgstr "указания формат за аргумент {%u} не съществува в '%s'" + +#: src/format-java.c:776 +#, c-format +msgid "" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "не са еднакви указаните формати при '%s' и при '%s' за аргумент {%u}" + +#: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 +#: src/format-scheme.c:2375 +#, c-format +msgid "" +"In the directive number %u, parameter %u is of type '%s' but a parameter of " +"type '%s' is expected." +msgstr "" +"При директива номер %u, параметър %u е от тип '%s', но се очаква параметър " +"от тип '%s'." + +#: src/format-lisp.c:2372 src/format-scheme.c:2398 +#, c-format +msgid "" +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." +msgid_plural "" +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." +msgstr[0] "" +"При директива номер %u, са зададени твърде много параметри, а се очаква най-" +"много%u параметър." +msgstr[1] "" +"При директива номер %u, са зададени твърде много параметри, а се очаква най-" +"много%u параметри." + +#: src/format-lisp.c:2496 src/format-scheme.c:2499 +#, c-format +msgid "In the directive number %u, '%c' is not followed by a digit." +msgstr "При директива номер %u, '%c' не е последван от цифра." + +#: src/format-lisp.c:2736 src/format-scheme.c:2754 +#, c-format +msgid "In the directive number %u, the argument %d is negative." +msgstr "При директива номер %u, аргумента %d е отрицателен." + +#: src/format-lisp.c:2805 +msgid "The string ends in the middle of a ~/.../ directive." +msgstr "Низът завършва в средата на ~/.../ директива." + +#: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 +#: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 +#: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 +#, c-format +msgid "Found '~%c' without matching '~%c'." +msgstr "Намерен '~%c' без съответен '~%c'." + +#: src/format-lisp.c:2863 src/format-scheme.c:2860 +#, c-format +msgid "In the directive number %u, both the @ and the : modifiers are given." +msgstr "При директива номер %u, са зададени и @, и :." + +#: src/format-lisp.c:2976 src/format-scheme.c:2973 +#, c-format +msgid "" +"In the directive number %u, '~:[' is not followed by two clauses, separated " +"by '~;'." +msgstr "" +"При директива номер %u, '~:[' не е последван от две клаузи , разделен от " +"'~;'." + +#: src/format-lisp.c:3326 src/format-scheme.c:3263 +#, c-format +msgid "In the directive number %u, '~;' is used in an invalid position." +msgstr "При директива номер %u, '~;' е използван на неправилно място." + +#: src/format-lisp.c:3432 src/format-scheme.c:3355 +msgid "The string refers to some argument in incompatible ways." +msgstr "Низа указва към някои аргументи по несъвместими начини." + +#: src/format-lisp.c:3474 src/format-scheme.c:3397 +#, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "не са равностойни указаните формати при '%s' и при '%s'" + +#: src/format-lisp.c:3490 src/format-scheme.c:3413 +#, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "указаните формати при '%s' не са подмножество на тези при '%s'" + +#: src/format-perl.c:433 +#, c-format +msgid "" +"In the directive number %u, the size specifier is incompatible with the " +"conversion specifier '%c'." +msgstr "При директива номер %u, размерът не е съвместим с превръщането '%c'." + +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 +#, c-format +msgid "a format specification for argument '%s' doesn't exist in '%s'" +msgstr "указания формат за аргумент '%s' не съществува при '%s'" + +#: src/format-python.c:115 +msgid "" +"The string refers to arguments both through argument names and through " +"unnamed argument specifications." +msgstr "Низа указва към аргументи и чрез име на аргумент, и чрез " + +#: src/format-python.c:354 +#, c-format +msgid "The string refers to the argument named '%s' in incompatible ways." +msgstr "Низа указва към аргумент с име '%s' по несъвместими начини." + +#: src/format-python.c:430 +#, c-format +msgid "" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" +msgstr "" +"указаните формати при '%s' очакват изобразяване, а тази при '%s' очакват " +"последователност" + +#: src/format-python.c:437 +#, c-format +msgid "" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" +msgstr "" +"указаните формати при '%s' очакват последователност, а тази при '%s' очакват " +"изобразяване" + +#: src/format-python.c:460 src/format-sh.c:297 +#, c-format +msgid "" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "" +"указания формат за аргумент '%s', като при '%s', не съществува при '%s'" + +#: src/format-python.c:494 +#, c-format +msgid "" +"format specifications in '%s' and '%s' for argument '%s' are not the same" +msgstr "не са еднакви указаните формати при '%s' и при '%s' за аргумент %s" + +#: src/format-qt.c:152 +#, c-format +msgid "" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" +msgstr "" +"'%s' е обикновен низ за формат, но '%s' не е: той съдържа 'L' флаг или " +"аргумент за число с плаваща запетая с двойна точност" + +#: src/format-sh.c:79 +msgid "The string refers to a shell variable with a non-ASCII name." +msgstr "Низа указва към променлива от обкръжението, която не е с ASCII име." + +#: src/format-sh.c:81 +msgid "" +"The string refers to a shell variable with complex shell brace syntax. This " +"syntax is unsupported here due to security reasons." +msgstr "" +"Низа указа към променлива от обкръжението, чрез сложен израз в скоби. Това " +"не се поддържа от съображения за сигурност." + +#: src/format-sh.c:83 +msgid "" +"The string refers to a shell variable whose value may be different inside " +"shell functions." +msgstr "" +"Низа указа към променлива от обкръжението, чиято стойност може да е различна " +"в функции на обвивката." + +#: src/format-sh.c:85 +msgid "The string refers to a shell variable with an empty name." +msgstr "Низа указа към променлива от обкръжението с \"празно\" име" + +#: src/format-ycp.c:90 +#, c-format +msgid "" +"In the directive number %u, the character '%c' is not a digit between 1 and " +"9." +msgstr "При директива номер %u, знакът '%c' не е цифра между 1 и 9." + +#: src/format-ycp.c:91 +#, c-format +msgid "" +"The character that terminates the directive number %u is not a digit between " +"1 and 9." +msgstr "Знакът, който прекратява директива номер %u, не е число между 1 и 9." + +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 +#, c-format, no-wrap +msgid "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" +msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"Лицензия GPLv3+: Публичен лиценз ГНУ версия 3 или следваща \n" +"Това е свободен програмен продукт: свободни сте да го променяте и разпространявате.\n" +"Не се дават НИКАКВИ ГАРАНЦИИ до степента позволена от закона.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 +#, c-format +msgid "Written by %s.\n" +msgstr "Създадена от %s.\n" + +#. This is a proper name. See the gettext manual, section Names. +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 +msgid "Bruno Haible" +msgstr "Бруно Хаибле" + +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 +#, c-format +msgid "too many arguments" +msgstr "твърде много аргументи" + +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 +#, c-format +msgid "Try `%s --help' for more information.\n" +msgstr "За повече информация, опитайте '%s --help'.\n" + +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 +#, c-format, no-wrap +msgid "Usage: %s [OPTION]\n" +msgstr "Употреба: %s [ОПЦИЯ]\n" + +#: src/hostname.c:215 +#, c-format +msgid "Print the machine's hostname.\n" +msgstr "Извежда мрежовото име на машината.\n" + +#: src/hostname.c:218 +#, c-format +msgid "Output format:\n" +msgstr "Формати за извеждане:\n" + +#: src/hostname.c:220 +#, c-format +msgid " -s, --short short host name\n" +msgstr " -s, --short кратко мрежово име\n" + +#: src/hostname.c:222 +#, c-format +msgid "" +" -f, --fqdn, --long long host name, includes fully qualified " +"domain\n" +" name, and aliases\n" +msgstr "" +" -f, --fqdn, --long дълго мрежово име, включващо пълно име на " +"интернет\n" +" област(domain) и синоними\n" + +#: src/hostname.c:225 +#, c-format +msgid " -i, --ip-address addresses for the hostname\n" +msgstr " -i, --ip-address адреси за мрежово име\n" + +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 +#, c-format, no-wrap +msgid "Informative output:\n" +msgstr "Осведомително извеждане:\n" + +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 +#, c-format, no-wrap +msgid " -h, --help display this help and exit\n" +msgstr " -h, --help извеждане на тази помощ и изход\n" + +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 +#, c-format, no-wrap +msgid " -V, --version output version information and exit\n" +msgstr " -V, --version извеждане на информация за версия и изход\n" + +#. TRANSLATORS: The placeholder indicates the bug-reporting address +#. for this package. Please add _another line_ saying +#. "Report translation bugs to <...>\n" with the address for translation +#. bugs (typically your translation team's web or email address). +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 +msgid "Report bugs to .\n" +msgstr "" +"Подавайте доклади за грешки на ,\n" +"а за грешки в превода на .\n" + +#: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 +#, c-format +msgid "could not get host name" +msgstr "не можа да се определи мрежовото име" + +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 +#, c-format +msgid "at most one input file allowed" +msgstr "позволява се най-много един входящ файл" + +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 +#, c-format +msgid "%s and %s are mutually exclusive" +msgstr "%s и %s са взаимоизключващи се" + +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 +#, c-format +msgid "Usage: %s [OPTION] [INPUTFILE]\n" +msgstr "Употреба: %s [ОПЦИЯ] [ВХФАЙЛ]\n" + +#: src/msgattrib.c:412 +#, c-format, no-wrap +msgid "" +"Filters the messages of a translation catalog according to their attributes,\n" +"and manipulates the attributes.\n" +msgstr "" +"Прецежда съобщенията от каталога с преводи според техните атрибути и \n" +"обработва атрибутите.\n" + +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 +#, c-format +msgid "" +"Mandatory arguments to long options are mandatory for short options too.\n" +msgstr "" +"Задължителни аргументи за \"дълги\" опции са също задължителни за \"къси\" " +"опции.\n" + +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 +#, c-format +msgid "Input file location:\n" +msgstr "Местоположение на входящ файл:\n" + +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 +#, c-format +msgid " INPUTFILE input PO file\n" +msgstr " ВХФАЙЛ входящ PO файл\n" + +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 +#, c-format +msgid "" +" -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" +msgstr "" +" -D, --directory=ДИР добавя директория ДИР към списъка за търсене " +"на входящи файлове\n" + +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 +#, c-format +msgid "If no input file is given or if it is -, standard input is read.\n" +msgstr "" +"Ако не е зададено име на входящ файл или то е -, ще се чете от стандартния " +"вход.\n" + +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 +#, c-format +msgid "Output file location:\n" +msgstr "Местоположение на резултата:\n" + +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 +#, c-format +msgid " -o, --output-file=FILE write output to specified file\n" +msgstr "" +" -o, --output-file=ФАЙЛ записване на резултата в зададения файл\n" + +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 +#, c-format +msgid "" +"The results are written to standard output if no output file is specified\n" +"or if it is -.\n" +msgstr "" +"Резултатите се извеждат на стандартния изход, ако не е зададен файл за запис " +"или той е -\n" + +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 +#, c-format +msgid "Message selection:\n" +msgstr "Избор на съобщения:\n" + +#: src/msgattrib.c:438 +#, c-format +msgid "" +" --translated keep translated, remove untranslated messages\n" +msgstr "" +" --translated запазване на преведените, изтриване на " +"непреведените съобщения\n" + +#: src/msgattrib.c:440 +#, c-format +msgid "" +" --untranslated keep untranslated, remove translated messages\n" +msgstr "" +" --untranslated запазване на непреведените, изтриване на " +"преведение съобщения\n" + +#: src/msgattrib.c:442 +#, c-format +msgid " --no-fuzzy remove 'fuzzy' marked messages\n" +msgstr "" +" --no-fuzzy изтриване на съобщенията отбелязани като " +"мъгляви('fuzzy')\n" + +#: src/msgattrib.c:444 +#, c-format +msgid " --only-fuzzy keep 'fuzzy' marked messages\n" +msgstr "" +" --only-fuzzy запазване на на съобщенията отбелязани като " +"мъгляви('fuzzy')\n" + +#: src/msgattrib.c:446 +#, c-format +msgid " --no-obsolete remove obsolete #~ messages\n" +msgstr " --no-obsolete изтриване на остарялите #~ съобщения\n" + +#: src/msgattrib.c:448 +#, c-format +msgid " --only-obsolete keep obsolete #~ messages\n" +msgstr " --only-obsolete запазване на остарялите #~ съобщения\n" + +#: src/msgattrib.c:451 +#, c-format +msgid "Attribute manipulation:\n" +msgstr "Управление на атрибутите:\n" + +#: src/msgattrib.c:453 +#, c-format +msgid " --set-fuzzy set all messages 'fuzzy'\n" +msgstr "" +" --set-fuzzy установяване на всички съобщения като мъгляви" +"('fuzzy')\n" + +#: src/msgattrib.c:455 +#, c-format +msgid " --clear-fuzzy set all messages non-'fuzzy'\n" +msgstr "" +" --clear-fuzzy установяване на всички съобщения да не са " +"мъгляви('fuzzy')\n" + +#: src/msgattrib.c:457 +#, c-format +msgid " --set-obsolete set all messages obsolete\n" +msgstr "" +" --set-obsolete установяване на всички съобщения като " +"остаряли\n" + +#: src/msgattrib.c:459 +#, c-format +msgid " --clear-obsolete set all messages non-obsolete\n" +msgstr "" +" --clear-obsolete установяване на всички съобщения да не са " +"остаряли\n" + +#: src/msgattrib.c:461 +#, c-format +msgid "" +" --clear-previous remove the \"previous msgid\" from all " +"messages\n" +msgstr "" +" --clear-previous изтрива \"предишния\" msgid от всички " +"съобщения\n" + +#: src/msgattrib.c:463 +#, c-format +msgid "" +" --only-file=FILE.po manipulate only entries listed in FILE.po\n" +msgstr "" +" --only-file=ФАЙЛ.po управлява само записите изброени в ФАЙЛ.po\n" + +#: src/msgattrib.c:465 +#, c-format +msgid "" +" --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" +msgstr "" +" --ignore-file=ФАЙЛ.po управлява само записите, които не са изброени " +"в ФАЙЛ.po\n" + +#: src/msgattrib.c:467 +#, c-format +msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" +msgstr " --fuzzy синоним за --only-fuzzy --clear-fuzzy\n" + +#: src/msgattrib.c:469 +#, c-format +msgid "" +" --obsolete synonym for --only-obsolete --clear-obsolete\n" +msgstr "" +" --obsolete синоним за --only-obsolete --clear-obsolete\n" + +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 +#, c-format +msgid "Input file syntax:\n" +msgstr "Синтаксис на входящия файл:\n" + +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 +#, c-format +msgid "" +" -P, --properties-input input file is in Java .properties syntax\n" +msgstr "" +" -P, --properties-input входящия файл е със синтаксис на Java ." +"properties\n" + +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 +#, c-format +msgid "" +" --stringtable-input input file is in NeXTstep/GNUstep .strings " +"syntax\n" +msgstr "" +" --stringtable-input входящия файл е със синтаксис на NeXTstep/" +"GNUstep .низове\n" + +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 +#, c-format +msgid "Output details:\n" +msgstr "Подробности за извеждане:\n" + +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color винаги с използване на цвят и др. атрибути за " +"текст\n" +" --color=КОГА използване на цвят и др. атрибути за текст, " +"ако КОГА.\n" +" КОГА може да бъде 'always', 'never', 'auto', " +"или 'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr " --style=СТИЛФАЙЛ задава CSS правила за --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 +#, c-format +msgid "" +" -e, --no-escape do not use C escapes in output (default)\n" +msgstr "" +" -e, --no-escape без използване на Си освобождаващи " +"последователности в резултата (по подразбиране)\n" + +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 +#, c-format +msgid "" +" -E, --escape use C escapes in output, no extended chars\n" +msgstr "" +" -E, --escape използване на Си освобождаващи " +"последователности в резултата, без разширени знаци\n" + +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 +#, c-format +msgid " --force-po write PO file even if empty\n" +msgstr "" +" --force-po записване на PO файл, дори ако е празен\n" + +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 +#, c-format +msgid " -i, --indent write the .po file using indented style\n" +msgstr "" +" -i, --indent записване на .po файл в стил с отмествания\n" + +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 +#, c-format +msgid " --no-location do not write '#: filename:line' lines\n" +msgstr "" +" --no-location без записване на редове '#: filename:line'\n" + +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 +#, c-format +msgid "" +" -n, --add-location generate '#: filename:line' lines (default)\n" +msgstr "" +" -n, --add-location създаване на редове '#: filename:line' (по " +"подразбиране)\n" + +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 +#, c-format +msgid "" +" --strict write out strict Uniforum conforming .po file\n" +msgstr "" +" --strict записва строго отговарящ за уеднаквяване .po " +"файл\n" + +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 +#, c-format +msgid " -p, --properties-output write out a Java .properties file\n" +msgstr " -p, --properties-output записване на Java .properties файл\n" + +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 +#, c-format +msgid "" +" --stringtable-output write out a NeXTstep/GNUstep .strings file\n" +msgstr "" +" --stringtable-output записване на NeXTstep/GNUstep .strings файл\n" + +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 +#, c-format +msgid " -w, --width=NUMBER set output page width\n" +msgstr "" +" -w, --width=ЦЯЛО установяване на ширината на изходящата " +"страница\n" + +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 +#, c-format +msgid "" +" --no-wrap do not break long message lines, longer than\n" +" the output page width, into several lines\n" +msgstr "" +" --no-wrap без разделяне на няколко реда на съобщения,\n" +" по-дълги от ширината на изходящата страница\n" + +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 +#, c-format +msgid " -s, --sort-output generate sorted output\n" +msgstr " -s, --sort-output резултата да е подреден\n" + +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 +#, c-format +msgid " -F, --sort-by-file sort output by file location\n" +msgstr "" +" -F, --sort-by-file подреждане на резултата по място на файла\n" + +#: src/msgcat.c:321 src/msgcomm.c:326 +#, c-format +msgid "impossible selection criteria specified (%d < n < %d)" +msgstr "избран е невъзможен критерии за избор (%d < n < %d)" + +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 +#, c-format +msgid "Usage: %s [OPTION] [INPUTFILE]...\n" +msgstr "Употреба: %s [ОПЦИЯ] [ВХФАЙЛ]...\n" + +#: src/msgcat.c:371 +#, c-format, no-wrap +msgid "" +"Concatenates and merges the specified PO files.\n" +"Find messages which are common to two or more of the specified PO files.\n" +"By using the --more-than option, greater commonality may be requested\n" +"before messages are printed. Conversely, the --less-than option may be\n" +"used to specify less commonality before messages are printed (i.e.\n" +"--less-than=2 will only print the unique messages). Translations,\n" +"comments and extract comments will be cumulated, except that if --use-first\n" +"is specified, they will be taken from the first PO file to define them.\n" +"File positions from all PO files will be cumulated.\n" +msgstr "" +"Съединява и смесва указаните PO файлове.\n" +"Намира съобщения, които са общи за два или повече от указаните PO файлове.\n" +"При използване на --more-than опцията, може да се поиска по-голямо сходство,\n" +"преди съобщенията да се изведат. Обратно, опцията --less-than, може да\n" +"се използва, за да се укаже по-малко сходство преди съобщенията да се\n" +"изведат, т.е. --less-than=2 ще изведе само неповтарящи се съобщения. Преводите,\n" +"коментарите и извлечените коментари ще се натрупат, освен ако е зададено\n" +"--use-first, като тогава ще се вземат от първия PO файл, който ги определя.\n" +"От всички PO файлове ще се натрупат позициите във файловете.\n" + +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 +#, c-format +msgid " INPUTFILE ... input files\n" +msgstr " ВХФАЙЛ ... входящи файлове\n" + +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 +#, c-format +msgid " -f, --files-from=FILE get list of input files from FILE\n" +msgstr "" +" -f, --files-from=ФАЙЛ получаване на списъка с входящи файлове от " +"ФАЙЛ\n" + +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 +#, c-format +msgid "If input file is -, standard input is read.\n" +msgstr "Ако входящия файл е -, се чете от стандартния вход.\n" + +#: src/msgcat.c:407 src/msgcomm.c:398 +#, c-format +msgid "" +" -<, --less-than=NUMBER print messages with less than this many\n" +" definitions, defaults to infinite if not set\n" +msgstr "" +" -<, --less-than=ЦЯЛО извежда съобщенията определени по-малко пъти " +"от това\n" +" По-поразбиране безкрайност, ако не е " +"установено\n" + +#: src/msgcat.c:410 +#, c-format +msgid "" +" ->, --more-than=NUMBER print messages with more than this many\n" +" definitions, defaults to 0 if not set\n" +msgstr "" +" ->, --more-than=ЦЯЛО извежда съобщенията определени повече пъти от " +"това\n" +" По-поразбиране 0, ако не е установено\n" + +#: src/msgcat.c:413 src/msgcomm.c:404 +#, c-format +msgid "" +" -u, --unique shorthand for --less-than=2, requests\n" +" that only unique messages be printed\n" +msgstr "" +" -u, --unique съкращения за --less-than=2, поисква се\n" +" извеждане на неповтарящите се съобщения\n" + +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 +#, c-format +msgid "" +" -P, --properties-input input files are in Java .properties syntax\n" +msgstr "" +" -P, --properties-input входящите файлове са с Java .properties " +"синтаксис\n" + +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 +#, c-format +msgid "" +" --stringtable-input input files are in NeXTstep/GNUstep .strings\n" +" syntax\n" +msgstr "" +" --stringtable-input входящите файлове са с NeXTstep/GNUstep ." +"strings\n" +" синтаксис\n" + +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 +#, c-format +msgid " -t, --to-code=NAME encoding for output\n" +msgstr " -t, --to-code=ИМЕ кодировка при извеждане\n" + +#: src/msgcat.c:429 src/msguniq.c:379 +#, c-format +msgid "" +" --use-first use first available translation for each\n" +" message, don't merge several translations\n" +msgstr "" +" --use-first използване на първия наличен превод за всяко\n" +" съобщение, без сливане на отделни преводи\n" + +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 +#, c-format +msgid "" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" +msgstr "" +" --lang=ИМЕКАТАЛОГ задава поле 'Language' за заглавния блок\n" + +#. This is a proper name. See the gettext manual, section Names. +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 +msgid "Peter Miller" +msgstr "Петер Милер" + +#: src/msgcmp.c:189 src/msgmerge.c:361 +#, c-format +msgid "no input files given" +msgstr "не е зададен входящ файл" + +#: src/msgcmp.c:194 src/msgmerge.c:366 +#, c-format +msgid "exactly 2 input files required" +msgstr "точно 2 входящи файла са необходими" + +#: src/msgcmp.c:213 src/msgmerge.c:480 +#, c-format +msgid "Usage: %s [OPTION] def.po ref.pot\n" +msgstr "Употреба: %s [ОПЦИЯ] def.po ref.pot\n" + +#: src/msgcmp.c:218 +#, c-format, no-wrap +msgid "" +"Compare two Uniforum style .po files to check that both contain the same\n" +"set of msgid strings. The def.po file is an existing PO file with the\n" +"translations. The ref.pot file is the last created PO file, or a PO Template\n" +"file (generally created by xgettext). This is useful for checking that\n" +"you have translated each and every message in your program. Where an exact\n" +"match cannot be found, fuzzy matching is used to produce better diagnostics.\n" +msgstr "" +"Сравнява два .po файла в уеднаквен стил, за да се провери дали двата съдържат\n" +"същото множество от msgid низове. Файлът def.po е съществуващ PO файл с\n" +"преводи. Файлът ref.pot е последния създаден PO файл или PO примерен файл\n" +"(в общия случай създаден от xgettext). Това е полезно за проверка, дали са\n" +"преведени всички съобщения в програмата. Ако не е намерено точно съвпадение,\n" +"за получаване на по-добър резултат, се използва размито съвпадение.\n" + +#: src/msgcmp.c:232 +#, c-format +msgid " def.po translations\n" +msgstr " def.po преводи\n" + +#: src/msgcmp.c:234 +#, c-format +msgid " ref.pot references to the sources\n" +msgstr " ref.pot препратки към източници\n" + +#: src/msgcmp.c:239 src/msgmerge.c:546 +#, c-format +msgid "Operation modifiers:\n" +msgstr "Уточняване на операциите:\n" + +#: src/msgcmp.c:241 src/msgmerge.c:548 +#, c-format +msgid "" +" -m, --multi-domain apply ref.pot to each of the domains in def." +"po\n" +msgstr "" +" -m, --multi-domain приложи ref.pot за всяка от областите в def." +"po\n" + +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching да не се използва размито съвпадение\n" + +#: src/msgcmp.c:245 +#, c-format +msgid " --use-fuzzy consider fuzzy entries\n" +msgstr " --use-fuzzy да се отчитат мъглявите записи\n" + +#: src/msgcmp.c:247 +#, c-format +msgid " --use-untranslated consider untranslated entries\n" +msgstr " --use-untranslated да се отчитат непреведените записи\n" + +#: src/msgcmp.c:324 +#, c-format +msgid "this message is untranslated" +msgstr "съобщението не е преведено " + +#: src/msgcmp.c:330 +#, c-format +msgid "this message needs to be reviewed by the translator" +msgstr "съобщението трябва да се прегледа от преводача" + +#: src/msgcmp.c:369 src/msgmerge.c:1500 +#, c-format +msgid "this message is used but not defined..." +msgstr "съобщението се използва, но не е определено..." + +#: src/msgcmp.c:372 src/msgmerge.c:1503 +#, c-format +msgid "...but this definition is similar" +msgstr "...но определението е подобно" + +#: src/msgcmp.c:377 src/msgmerge.c:1531 +#, c-format +msgid "this message is used but not defined in %s" +msgstr "съобщението се използва, но не е определено в %s" + +#: src/msgcmp.c:546 +#, c-format +msgid "warning: this message is not used" +msgstr "предупреждение: съобщението не се използва" + +#: src/msgcmp.c:553 src/msgfmt.c:541 +#, c-format +msgid "found %d fatal error" +msgid_plural "found %d fatal errors" +msgstr[0] "открита е %d пагубна грешка" +msgstr[1] "открити са %d пагубни грешки" + +#: src/msgcomm.c:315 +#, c-format +msgid "at least two files must be specified" +msgstr "най-малко два реда трябва да се зададат" + +#: src/msgcomm.c:363 +#, c-format, no-wrap +msgid "" +"Find messages which are common to two or more of the specified PO files.\n" +"By using the --more-than option, greater commonality may be requested\n" +"before messages are printed. Conversely, the --less-than option may be\n" +"used to specify less commonality before messages are printed (i.e.\n" +"--less-than=2 will only print the unique messages). Translations,\n" +"comments and extract comments will be preserved, but only from the first\n" +"PO file to define them. File positions from all PO files will be\n" +"cumulated.\n" +msgstr "" +"Намира съобщения, които са общи за два или повече от указаните PO файлове.\n" +"При използване на --more-than опция, може да се поиска по-голямо сходство,\n" +"преди съобщенията да се изведат. Обратно, опцията --less-than, може да\n" +"се използва, за да се укаже по-малко сходство, преди съобщенията да се\n" +"изведат, т.е. --less-than=2 ще изведа само неповтарящи съобщения. Преводите,\n" +"коментарите и извлечените коментари ще се натрупат, освен ако е зададено\n" +"--use-first, като тогава ще се вземат от първия PO файл, който ги определя.\n" +"От всички PO файлове ще се натрупат позициите във файловете.\n" + +#: src/msgcomm.c:401 +#, c-format +msgid "" +" ->, --more-than=NUMBER print messages with more than this many\n" +" definitions, defaults to 1 if not set\n" +msgstr "" +" ->, --more-than=ЦЯЛО извежда съобщенията определени повече пъти от " +"това\n" +" По-поразбиране 1, ако не е установено\n" + +#: src/msgcomm.c:451 src/xgettext.c:961 +#, c-format +msgid "" +" --omit-header don't write header with `msgid \"\"' entry\n" +msgstr "" +" --omit-header без записване на заглавен 'msgid \"\"' запис\n" + +#: src/msgconv.c:306 +#, c-format +msgid "Converts a translation catalog to a different character encoding.\n" +msgstr "Преобразува каталог с преводи в различна кодировка за знаци.\n" + +#: src/msgconv.c:330 +#, c-format +msgid "Conversion target:\n" +msgstr "Цел за преобразуване:\n" + +#: src/msgconv.c:334 +#, c-format +msgid "The default encoding is the current locale's encoding.\n" +msgstr "Кодировка по подразбиране е текущата кодировка на локала.\n" + +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 +#, c-format +msgid " -i, --indent indented output style\n" +msgstr " -i, --indent резултат в стил с отместване\n" + +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 +#, c-format +msgid " --no-location suppress '#: filename:line' lines\n" +msgstr "" +" --no-location подтискане на редове '#: filename:line'\n" + +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 +#, c-format +msgid "" +" --add-location preserve '#: filename:line' lines (default)\n" +msgstr "" +" --add-location запазване на редове '#: filename:line' (по " +"подразбиране)\n" + +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 +#, c-format +msgid " --strict strict Uniforum output style\n" +msgstr " --strict строг уеднаквен стил за резултат\n" + +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 +#, c-format +msgid "no input file given" +msgstr "не е зададен входящ файл" + +#: src/msgen.c:253 +#, c-format +msgid "exactly one input file required" +msgstr "необходим е точно един входящ файл" + +#: src/msgen.c:298 +#, c-format +msgid "Usage: %s [OPTION] INPUTFILE\n" +msgstr "Употреба: %s [ОПЦИЯ] ВХФАЙЛ\n" + +#: src/msgen.c:303 +#, c-format, no-wrap +msgid "" +"Creates an English translation catalog. The input file is the last\n" +"created English PO file, or a PO Template file (generally created by\n" +"xgettext). Untranslated entries are assigned a translation that is\n" +"identical to the msgid.\n" +msgstr "" +"Създаване на английски каталог с преводи. Входящ файл е последния\n" +"създаден английски PO файл или PO примерен файл (в общия случай\n" +"създаден от xgettext). На непреведените записи се присвоява превод,\n" +"който е еднакъв с msgid.\n" + +#: src/msgen.c:315 +#, c-format +msgid " INPUTFILE input PO or POT file\n" +msgstr " ВХФАЙЛ входящ PO или POT файл\n" + +#: src/msgexec.c:196 +#, c-format +msgid "missing command name" +msgstr "липсва име на команда" + +#: src/msgexec.c:257 +#, c-format +msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" +msgstr "Употреба: %s [ОПЦИЯ] КОМАНДА [КОМАНДНА-ОПЦИЯ]\n" + +#: src/msgexec.c:262 +#, c-format, no-wrap +msgid "" +"Applies a command to all translations of a translation catalog.\n" +"The COMMAND can be any program that reads a translation from standard\n" +"input. It is invoked once for each translation. Its output becomes\n" +"msgexec's output. msgexec's return code is the maximum return code\n" +"across all invocations.\n" +msgstr "" +"Прилага команда на всички преводи от каталога с преводи.\n" +"КОМАНДА може да се всяка програма, която чете преводи от стандартния\n" +"вход. Тя се извиква еднократно за всеки превод. Изведените от нея\n" +"данни стават резултат на msgexec. Върнатия от msgexec код на излизане\n" +"е най-големият получен при всички извиквания.\n" + +#: src/msgexec.c:271 +#, c-format, no-wrap +msgid "" +"A special builtin command called '0' outputs the translation, followed by a\n" +"null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" +msgstr "" +"Специална вградена команда наречена '0' извежда преводите последвани от \n" +" байт. Резултата от \"msgexec 0\" е подходящ като входящ за \"xargs -0\".\n" + +#: src/msgexec.c:281 src/msgfilter.c:401 +#, c-format +msgid " -i, --input=INPUTFILE input PO file\n" +msgstr " -i, --input=ВХФАЙЛ входящ PO файл\n" + +#: src/msgexec.c:345 +#, c-format +msgid "write to stdout failed" +msgstr "пропадна записването на стандартния изход" + +#: src/msgexec.c:389 +#, c-format +msgid "write to %s subprocess failed" +msgstr "пропадна записването към подпроцес %s " + +#: src/msgfilter.c:289 +#, c-format +msgid "missing filter name" +msgstr "липсва име на филтър" + +#: src/msgfilter.c:313 +#, c-format +msgid "at least one sed script must be specified" +msgstr "трябва да се зададе най-малко един sed скрипт" + +#: src/msgfilter.c:388 +#, c-format +msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" +msgstr "Употреба: %s [ОПЦИЯ] ФИЛТЪР [ФИЛТЪРНА-ОПЦИЯ]\n" + +#: src/msgfilter.c:392 +#, c-format +msgid "Applies a filter to all translations of a translation catalog.\n" +msgstr "Прилагане на филтър към всички преводи от каталога с преводи.\n" + +#: src/msgfilter.c:416 +#, c-format +msgid "" +"The FILTER can be any program that reads a translation from standard input\n" +"and writes a modified translation to standard output.\n" +msgstr "" +"ФИЛТЪР може е всяка програма, която чете превод от стандартния вход\n" +"и записва променения превод на стандартния изход.\n" + +#: src/msgfilter.c:421 +#, c-format +msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" +msgstr "Полезни ФИЛТЪР-ОПЦИИ, когато ФИЛТЪР е 'sed':\n" + +#: src/msgfilter.c:423 +#, c-format +msgid "" +" -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" +msgstr "" +" -e, --expression=СКРИПТ добавя СКРИПТ към командите за изпълнение\n" + +#: src/msgfilter.c:425 +#, c-format +msgid "" +" -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " +"commands\n" +" to be executed\n" +msgstr "" +" -f, --file=СКРИПТФАЙЛ добавя съдържанието на СКРИПТФАЙЛ към " +"командите\n" +" за изпълнение\n" + +#: src/msgfilter.c:428 +#, c-format +msgid "" +" -n, --quiet, --silent suppress automatic printing of pattern space\n" +msgstr "" +" -n, --quiet, --silent подтискане на автоматичното извеждане на " +"пространството от образи\n" + +#: src/msgfilter.c:446 src/msggrep.c:595 +#, c-format +msgid "" +" --no-escape do not use C escapes in output (default)\n" +msgstr "" +" --no-escape без използване на Си освобождаващи " +"последователности в резултата (по подразбиране)\n" + +#: src/msgfilter.c:452 src/msggrep.c:601 +#, c-format +msgid " --indent indented output style\n" +msgstr " --indent резултат в стил с отместване\n" + +#: src/msgfilter.c:454 +#, c-format +msgid "" +" --keep-header keep header entry unmodified, don't filter it\n" +msgstr "" +" --keep-header запазване на заглавни записи без промяна, да " +"не се филтрират\n" + +#: src/msgfmt.c:304 +#, c-format +msgid "the argument to %s should be a single punctuation character" +msgstr "аргумента на %s трябва да е единичен препинателен знак" + +#: src/msgfmt.c:351 +#, c-format +msgid "invalid endianness: %s" +msgstr "неправилно име за начин на подреждане на байтове: %s" + +#. This is a proper name. See the gettext manual, section Names. +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 +msgid "Ulrich Drepper" +msgstr "Улрих Дрепер" + +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 +#, c-format +msgid "%s requires a \"-d directory\" specification" +msgstr "%s изисква указване на \"-d директория\"" + +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 +#, c-format +msgid "%s requires a \"-l locale\" specification" +msgstr "%s изисква указване на \"-l локал\"" + +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 +#, c-format +msgid "%s is only valid with %s or %s" +msgstr "%s е правилен само с %s или %s" + +#: src/msgfmt.c:484 src/msgfmt.c:490 +#, c-format +msgid "%s is only valid with %s, %s or %s" +msgstr "%s е правилен само с %s, %s или %s" + +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 +#, c-format +msgid "%d translated message" +msgid_plural "%d translated messages" +msgstr[0] "%d преведено съобщение" +msgstr[1] "%d преведени съобщения" + +#: src/msgfmt.c:625 +#, c-format +msgid ", %d fuzzy translation" +msgid_plural ", %d fuzzy translations" +msgstr[0] ", %d мъгляв превод" +msgstr[1] ", %d мъгляви преводи" + +#: src/msgfmt.c:630 +#, c-format +msgid ", %d untranslated message" +msgid_plural ", %d untranslated messages" +msgstr[0] ", %d непреведено съобщение" +msgstr[1] ", %d непреведени съобщения" + +#: src/msgfmt.c:650 +#, c-format +msgid "Usage: %s [OPTION] filename.po ...\n" +msgstr "Употреба: %s [ОПЦИЯ] имефайл.po ...\n" + +#: src/msgfmt.c:654 +#, c-format +msgid "Generate binary message catalog from textual translation description.\n" +msgstr "" +"Създаване на двоичен каталог със съобщения от текстово описание на " +"преводите.\n" + +#: src/msgfmt.c:659 src/xgettext.c:825 +#, c-format, no-wrap +msgid "" +"Mandatory arguments to long options are mandatory for short options too.\n" +"Similarly for optional arguments.\n" +msgstr "" +"Задължителни аргументи за \"дълги\" опции са също задължителни за \"къси\" опции.\n" +"Също така за незадължителните аргументи.\n" + +#: src/msgfmt.c:666 +#, c-format +msgid " filename.po ... input files\n" +msgstr " имефайл.po ... входящи файлове\n" + +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 +#, c-format +msgid "Operation mode:\n" +msgstr "Режими на работа:\n" + +#: src/msgfmt.c:675 +#, c-format +msgid "" +" -j, --java Java mode: generate a Java ResourceBundle " +"class\n" +msgstr "" +" -j, --java Java режим: създаване на Java ResourceBundle " +"клас\n" + +#: src/msgfmt.c:677 +#, c-format +msgid "" +" --java2 like --java, and assume Java2 (JDK 1.2 or " +"higher)\n" +msgstr "" +" --java2 като --java и се подразбира Java2 (JDK 1.2 или " +"по-нова)\n" + +#: src/msgfmt.c:679 +#, c-format +msgid " --csharp C# mode: generate a .NET .dll file\n" +msgstr " --csharp C# режим: създаване на .NET .dll файл\n" + +#: src/msgfmt.c:681 +#, c-format +msgid "" +" --csharp-resources C# resources mode: generate a .NET .resources " +"file\n" +msgstr "" +" --csharp-resources C# ресурс режим: създаване на .NET .resources " +"файл\n" + +#: src/msgfmt.c:683 +#, c-format +msgid "" +" --tcl Tcl mode: generate a tcl/msgcat .msg file\n" +msgstr "" +" --tcl Tcl режим: създаване на tcl/msgcat .msg файл\n" + +#: src/msgfmt.c:685 +#, c-format +msgid " --qt Qt mode: generate a Qt .qm file\n" +msgstr " --qt Qt режим: създаване на Qt .qm файл\n" + +#: src/msgfmt.c:692 +#, c-format +msgid " --strict enable strict Uniforum mode\n" +msgstr " --strict разрешава стриктен уеднаквен режим\n" + +#: src/msgfmt.c:694 src/xgettext.c:849 +#, c-format +msgid "If output file is -, output is written to standard output.\n" +msgstr "Ако изходящия файл е -, резултата се записва на стандартния изход.\n" + +#: src/msgfmt.c:697 +#, c-format +msgid "Output file location in Java mode:\n" +msgstr "Местоположение на резултата при Java режим:\n" + +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 +#, c-format +msgid " -r, --resource=RESOURCE resource name\n" +msgstr " -r, --resource=РЕСУРС име на ресурс\n" + +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 +#, c-format +msgid "" +" -l, --locale=LOCALE locale name, either language or " +"language_COUNTRY\n" +msgstr "" +" -l, --locale=ЛОКАЛ име на локал, или език, или език_ДЪРЖАВА\n" + +#: src/msgfmt.c:703 +#, c-format +msgid "" +" -d DIRECTORY base directory of classes directory hierarchy\n" +msgstr "" +" -d ДИРЕКТОРИЯ основна директория с йерархията на класовете\n" + +#: src/msgfmt.c:705 +#, c-format +msgid "" +"The class name is determined by appending the locale name to the resource " +"name,\n" +"separated with an underscore. The -d option is mandatory. The class is\n" +"written under the specified directory.\n" +msgstr "" +"Името на класа се определя като се добави името на локал към името на " +"ресурса,\n" +"разделени с долна черта. Опцията -d е задължителна. Класът се записва в\n" +"зададената директория.\n" + +#: src/msgfmt.c:711 +#, c-format +msgid "Output file location in C# mode:\n" +msgstr "Местоположение на резултата при C# режим:\n" + +#: src/msgfmt.c:717 src/msgunfmt.c:473 +#, c-format +msgid "" +" -d DIRECTORY base directory for locale dependent .dll " +"files\n" +msgstr "" +" -d ДИРЕКТОРИЯ основна директория за зависими от локал .dll " +"файлове\n" + +#: src/msgfmt.c:719 +#, c-format +msgid "" +"The -l and -d options are mandatory. The .dll file is written in a\n" +"subdirectory of the specified directory whose name depends on the locale.\n" +msgstr "" +"Опциите -l и -d са задължителни. .dll файла се записва в поддиректория\n" +"на указаната, чието име зависи от локала.\n" + +#: src/msgfmt.c:723 +#, c-format +msgid "Output file location in Tcl mode:\n" +msgstr "Местоположение на резултата при Tcl режим:\n" + +#: src/msgfmt.c:727 src/msgunfmt.c:483 +#, c-format +msgid " -d DIRECTORY base directory of .msg message catalogs\n" +msgstr "" +" -d ДИРЕКТОРИЯ основна директория за каталози с .msg " +"съобщения\n" + +#: src/msgfmt.c:729 +#, c-format +msgid "" +"The -l and -d options are mandatory. The .msg file is written in the\n" +"specified directory.\n" +msgstr "" +"Опциите -l и -d са задължителни. .msg файла се записва в указаната\n" +"директория.\n" + +#: src/msgfmt.c:741 src/xgettext.c:865 +#, c-format +msgid "Input file interpretation:\n" +msgstr "Тълкувания за входящия файл:\n" + +#: src/msgfmt.c:743 +#, c-format +msgid "" +" -c, --check perform all the checks implied by\n" +" --check-format, --check-header, --check-" +"domain\n" +msgstr "" +" -c, --check изпълняват се всички проверки подразбиращи се " +"от\n" +" --check-format, --check-header, --check-" +"domain\n" + +#: src/msgfmt.c:746 +#, c-format +msgid " --check-format check language dependent format strings\n" +msgstr "" +" --check-format проверка на езиково зависимите форматиращи " +"низове\n" + +#: src/msgfmt.c:748 +#, c-format +msgid "" +" --check-header verify presence and contents of the header " +"entry\n" +msgstr "" +" --check-header проверка на наличието и съдържанието на " +"заглавни записи\n" + +#: src/msgfmt.c:750 +#, c-format +msgid "" +" --check-domain check for conflicts between domain directives\n" +" and the --output-file option\n" +msgstr "" +" --check-domain проверка за противоречие между директивите за " +"област\n" +" и опцията --output-file\n" + +#: src/msgfmt.c:753 +#, c-format +msgid "" +" -C, --check-compatibility check that GNU msgfmt behaves like X/Open " +"msgfmt\n" +msgstr "" +" -C, --check-compatibility проверка дали ГНУ msgfmt се държи като X/Open " +"msgfmt\n" + +#: src/msgfmt.c:755 +#, c-format +msgid "" +" --check-accelerators[=CHAR] check presence of keyboard accelerators " +"for\n" +" menu items\n" +msgstr "" +" --check-accelerators[=ЗНАК] проверка за наличието на ускорени " +"клавиши\n" +" за елементи на меню\n" + +#: src/msgfmt.c:758 +#, c-format +msgid " -f, --use-fuzzy use fuzzy entries in output\n" +msgstr "" +" -f, --use-fuzzy използване на мъгляви(fuzzy) записи при " +"извеждане\n" + +#: src/msgfmt.c:763 +#, c-format +msgid "" +" -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" +msgstr "" +" -a, --alignment=БРОЙ подравнява низовете до БРОЙ байтове (по " +"подразбиране: %d)\n" + +#: src/msgfmt.c:765 +#, c-format +msgid "" +" --no-hash binary file will not include the hash table\n" +msgstr "" +" --no-hash двоичният файл няма да съдържа хеш-таблица\n" + +#: src/msgfmt.c:774 +#, c-format +msgid " --statistics print statistics about translations\n" +msgstr " --statistics извежда статистика за преводите\n" + +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 +#, c-format +msgid " -v, --verbose increase verbosity level\n" +msgstr " -v, --verbose увеличава нивото на подробност\n" + +#: src/msgfmt.c:890 +#, c-format +msgid "warning: PO file header missing or invalid\n" +msgstr "предупреждение: заглавието на PO файла липсва или не е правилно\n" + +#: src/msgfmt.c:893 +#, c-format +msgid "warning: charset conversion will not work\n" +msgstr "предупреждение: няма да работи превръщането м/у кодировки\n" + +#: src/msgfmt.c:903 +#, c-format +msgid "warning: PO file header fuzzy\n" +msgstr "предупреждение: заглавието на PO файла е мъгляво\n" + +#: src/msgfmt.c:905 +#, c-format +msgid "warning: older versions of msgfmt will give an error on this\n" +msgstr "предупреждение: стари версии на msgfmt ще дадат грешка за това\n" + +#: src/msgfmt.c:929 +#, c-format +msgid "domain name \"%s\" not suitable as file name" +msgstr "името на област \"%s\" не е подходящо за име на файл" + +#: src/msgfmt.c:934 +#, c-format +msgid "domain name \"%s\" not suitable as file name: will use prefix" +msgstr "" +"името на област \"%s\" не е подходящо за име на файл: ще се използва " +"представка" + +#: src/msgfmt.c:948 +#, c-format +msgid "`domain %s' directive ignored" +msgstr "пренебрегната директива 'област %s'" + +#: src/msgfmt.c:1008 +#, c-format +msgid "empty `msgstr' entry ignored" +msgstr "пренебрегнат празен 'msgstr' запис" + +#: src/msgfmt.c:1009 +#, c-format +msgid "fuzzy `msgstr' entry ignored" +msgstr "пренебрегнат мъгляв(fuzzy) 'msgstr' запис" + +#: src/msgfmt.c:1058 +#, c-format +msgid "%s: warning: source file contains fuzzy translation" +msgstr "%s: предупреждение: файла източник съдържа мъгляви преводи" + +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 +#, c-format +msgid "error while reading \"%s\"" +msgstr "грешка при четене на \"%s\"" + +#: src/msggrep.c:496 +#, c-format +msgid "" +"option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " +"specified" +msgstr "" +"опцията '%c' не може да се използва преди да се зададе или 'J', или 'K', или " +"'T', или 'C', или 'X'" + +#: src/msggrep.c:516 +#, c-format, no-wrap +msgid "" +"Extracts all messages of a translation catalog that match a given pattern\n" +"or belong to some given source files.\n" +msgstr "" +"Извличане на всички съобщения от каталога с преводи, които съвпадат с даден образ\n" +"или принадлежат на дадени файлове източници.\n" + +#: src/msggrep.c:542 +#, c-format, no-wrap +msgid "" +"Message selection:\n" +" [-N SOURCEFILE]... [-M DOMAINNAME]...\n" +" [-J MSGCTXT-PATTERN] [-K MSGID-PATTERN] [-T MSGSTR-PATTERN]\n" +" [-C COMMENT-PATTERN] [-X EXTRACTED-COMMENT-PATTERN]\n" +"A message is selected if it comes from one of the specified source files,\n" +"or if it comes from one of the specified domains,\n" +"or if -J is given and its context (msgctxt) matches MSGCTXT-PATTERN,\n" +"or if -K is given and its key (msgid or msgid_plural) matches MSGID-PATTERN,\n" +"or if -T is given and its translation (msgstr) matches MSGSTR-PATTERN,\n" +"or if -C is given and the translator's comment matches COMMENT-PATTERN,\n" +"or if -X is given and the extracted comment matches EXTRACTED-COMMENT-PATTERN.\n" +"\n" +"When more than one selection criterion is specified, the set of selected\n" +"messages is the union of the selected messages of each criterion.\n" +"\n" +"MSGCTXT-PATTERN or MSGID-PATTERN or MSGSTR-PATTERN or COMMENT-PATTERN or\n" +"EXTRACTED-COMMENT-PATTERN syntax:\n" +" [-E | -F] [-e PATTERN | -f FILE]...\n" +"PATTERNs are basic regular expressions by default, or extended regular\n" +"expressions if -E is given, or fixed strings if -F is given.\n" +"\n" +" -N, --location=SOURCEFILE select messages extracted from SOURCEFILE\n" +" -M, --domain=DOMAINNAME select messages belonging to domain DOMAINNAME\n" +" -J, --msgctxt start of patterns for the msgctxt\n" +" -K, --msgid start of patterns for the msgid\n" +" -T, --msgstr start of patterns for the msgstr\n" +" -C, --comment start of patterns for the translator's comment\n" +" -X, --extracted-comment start of patterns for the extracted comment\n" +" -E, --extended-regexp PATTERN is an extended regular expression\n" +" -F, --fixed-strings PATTERN is a set of newline-separated strings\n" +" -e, --regexp=PATTERN use PATTERN as a regular expression\n" +" -f, --file=FILE obtain PATTERN from FILE\n" +" -i, --ignore-case ignore case distinctions\n" +" -v, --invert-match output only the messages that do not match any\n" +" selection criterion\n" +msgstr "" +"Избор на съобщение:\n" +" [-N ФАЙЛИЗТОЧНИК]... [-M ОБЛАСТ]...\n" +" [-J СЪОБТКСТ-ОБРАЗЕЦ] [-K СЪОБКЛЮЧ-ОБРАЗЕЦ] [-T СЪОБНИЗ-ОБРАЗЕЦ]\n" +" [-C КОМЕНТАР-ОБРАЗЕЦ] [-X ИЗВЛЕЧЕН-КОМЕНТАР-ОБРАЗЕЦ]\n" +"Съобщението се избира, ако е от някой от зададените файлове източници\n" +"или е от някоя от зададените области,\n" +"или ако е зададено -J и неговото съдържание (msgctxt) съвпада с СЪОБТКСТ-ОБРАЗЕЦ,\n" +"или ако е зададено -K и неговия ключ (msgid или msgid_plural) съвпада с СЪОБКЛЮЧ-ОБРАЗЕЦ,\n" +"или ако е зададено -T и неговия превод (msgstr) съвпада с СЪОБНИЗ-ОБРАЗЕЦ,\n" +"или ако е зададено -C и неговия коментар за превод съвпада с КОМЕНТАР-ОБРАЗЕЦ,\n" +"или ако е зададено -X и неговия извлечен коментар съвпада с ИЗВЛЕЧЕН-КОМЕНТАР-ОБРАЗЕЦ.\n" +"\n" +"Ако се зададе повече от един критерии за избор, множеството от избраните\n" +"съобщения е обединение от избраните съобщения за всеки критерии.\n" +"\n" +"СЪОБТКСТ-ОБРАЗЕЦ или СЪОБКЛЮЧ-ОБРАЗЕЦ, или СЪОБНИЗ-ОБРАЗЕЦ, или КОМЕНТАР-ОБРАЗЕЦ, или\n" +"ИЗВЛЕЧЕН-КОМЕНТАР-ОБРАЗЕЦ синтаксис:\n" +" [-E | -F] [-e ОБРАЗЕЦ | -f ФАЙЛ]...\n" +"по подразбиране ОБРАЗЕЦ-и са основни регулярни изрази, разширени регулярни\n" +"изрази, ако се зададе -E или точни низове, ако се зададе -F.\n" +"\n" +" -N, --location=ФАЙЛИЗТОЧНИК избиране на съобщенията извлечени от ФАЙЛИЗТОЧНИК\n" +" -M, --domain=ОБЛАСТ избиране на съобщенията принадлежащи на областта ОБЛАСТ\n" +" -J, --msgctxt начало на образците за msgctxt\n" +" -K, --msgid начало на образците за msgid\n" +" -T, --msgstr начало на образците за msgstr\n" +" -C, --comment начало на образците за коментар за преводачи\n" +" -X, --extracted-comment начало на образците за извлечен коментар\n" +" -E, --extended-regexp ОБРАЗЕЦ е разширен регулярен израз\n" +" -F, --fixed-strings ОБРАЗЕЦ множество от низове разделени от нов ред\n" +" -e, --regexp=ОБРАЗЕЦ използване на ОБРАЗЕЦ като регулярен израз\n" +" -f, --file=ФАЙЛ получаване на ОБРАЗЕЦ от ФАЙЛ\n" +" -i, --ignore-case без разлика малки/големи(букви)\n" +" -v, --invert-match извеждане на съобщенията, които не съвпадат със никой\n" +" от критериите за избор\n" + +#: src/msggrep.c:597 +#, c-format +msgid "" +" --escape use C escapes in output, no extended chars\n" +msgstr "" +" --escape резултат с използване на Си освобождаващи " +"последователности, без разширени знаци\n" + +#: src/msggrep.c:618 +#, c-format +msgid " --sort-output generate sorted output\n" +msgstr " --sort-output резултата да е подреден\n" + +#: src/msggrep.c:620 +#, c-format +msgid " --sort-by-file sort output by file location\n" +msgstr "" +" --sort-by-file подреждане на резултата по място на файла\n" + +#: src/msginit.c:297 +msgid "" +"You are in a language indifferent environment. Please set\n" +"your LANG environment variable, as described in the ABOUT-NLS\n" +"file. This is necessary so you can test your translations.\n" +msgstr "" +"Използва се езиково неутрално обкръжение. Да се зададе променливата\n" +"от обкръжението LANG, като е описано в файла ABOUT-NLS. Това е\n" +"необходимо, за да се тества превода.\n" + +#: src/msginit.c:321 +#, c-format +msgid "" +"Output file %s already exists.\n" +"Please specify the locale through the --locale option or\n" +"the output .po file through the --output-file option.\n" +msgstr "" +"Файла за резултат %s вече съществува.\n" +"Да се зададе локал, чрез опцията --locale или .po файл за резултат, \n" +"чрез опцията --output-file.\n" + +#: src/msginit.c:347 +#, c-format +msgid "Created %s.\n" +msgstr "Създаден %s.\n" + +#: src/msginit.c:367 +#, c-format, no-wrap +msgid "" +"Creates a new PO file, initializing the meta information with values from the\n" +"user's environment.\n" +msgstr "" +"Създаване на нов PO файл, запълвайки метаинформацията със стойности\n" +"от потребителското обкръжение.\n" + +#: src/msginit.c:377 +#, c-format +msgid " -i, --input=INPUTFILE input POT file\n" +msgstr " -i, --input=ВХФАЙЛ входящ POT файл\n" + +#: src/msginit.c:379 +#, c-format +msgid "" +"If no input file is given, the current directory is searched for the POT " +"file.\n" +"If it is -, standard input is read.\n" +msgstr "" +"Ако не е зададен входящ файл, текущата директория се претърсва за POT файл.\n" +"Ако той е -, се чете от стандартния вход.\n" + +#: src/msginit.c:385 +#, c-format +msgid " -o, --output-file=FILE write output to specified PO file\n" +msgstr "" +" -o, --output-file=ФАЙЛ записване на резултата в указания PO файл\n" + +#: src/msginit.c:387 +#, c-format +msgid "" +"If no output file is given, it depends on the --locale option or the user's\n" +"locale setting. If it is -, the results are written to standard output.\n" +msgstr "" +"Ако не е зададен файл за резултат, той зависи от опцията --locale или от\n" +"потребителските настройки за локал. Ако той е -, резултата се извежда на\n" +"стандартния изход.\n" + +#: src/msginit.c:400 +#, c-format +msgid " -l, --locale=LL_CC set target locale\n" +msgstr " -l, --locale=LL_CC задаване на целевия локал\n" + +#: src/msginit.c:402 +#, c-format +msgid "" +" --no-translator assume the PO file is automatically generated\n" +msgstr "" +" --no-translator приема се, че PO файла се създава автоматично\n" + +#: src/msginit.c:468 +msgid "" +"Found more than one .pot file.\n" +"Please specify the input .pot file through the --input option.\n" +msgstr "" +"Намерен е повече от един .pot файл.\n" +"Да се зададе входящ .pot файл с опцията --input.\n" + +#: src/msginit.c:476 src/msginit.c:481 +#, c-format +msgid "error reading current directory" +msgstr "грешка при четене на текущата директория" + +#: src/msginit.c:489 +msgid "" +"Found no .pot file in the current directory.\n" +"Please specify the input .pot file through the --input option.\n" +msgstr "" +"Не е намерен .pot файл в текущата директория.\n" +"Да се зададе входящ .pot файл с опцията --input.\n" + +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 +#, c-format +msgid "%s subprocess failed with exit code %d" +msgstr "пропадна подпроцес %s и излезе с код %d" + +#: src/msginit.c:1118 +msgid "" +"The new message catalog should contain your email address, so that users " +"can\n" +"give you feedback about the translations, and so that maintainers can " +"contact\n" +"you in case of unexpected technical problems.\n" +msgstr "" +"Новият каталог със съобщения трябва да съдържа вашия адрес за е-поща, така " +"че\n" +"потребителите да могат да ви върнат отговори относно превода и също така, за " +"да\n" +"може поддръжката да се свърже с вас в случай на неочаквани технически " +"проблеми.\n" + +#. TRANSLATORS: "English" needs to be replaced by your language. +#. For example in it.po write "Traduzioni italiani ...", +#. *not* "Traduzioni inglesi ...". +#: src/msginit.c:1534 +#, c-format +msgid "English translations for %s package" +msgstr "Български превод за пакет %s" + +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 +#, c-format +msgid "present charset \"%s\" is not a portable encoding name" +msgstr "текущото кодово множество \"%s\" не е с преносимо име" + +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 +#, c-format +msgid "two different charsets \"%s\" and \"%s\" in input file" +msgstr "входящия файл е с две различни кодови множества \"%s\" и \"%s\"" + +#: src/msgl-cat.c:203 +#, c-format +msgid "" +"input file `%s' doesn't contain a header entry with a charset specification" +msgstr "" +"входящия файл '%s' не съдържа заглавен запис с указано кодово множество" + +#: src/msgl-cat.c:207 +#, c-format +msgid "" +"domain \"%s\" in input file `%s' doesn't contain a header entry with a " +"charset specification" +msgstr "" +"областта \"%s\" в входящия файл '%s' не съдържа заглавен запис с указано " +"кодово множество" + +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 +#, c-format +msgid "target charset \"%s\" is not a portable encoding name." +msgstr "целевото кодово множество \"%s\" не е с преносимо име" + +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 +#, c-format +msgid "warning: " +msgstr "предупреждение: " + +#: src/msgl-cat.c:443 +#, c-format +msgid "" +"Input files contain messages in different encodings, UTF-8 among others.\n" +"Converting the output to UTF-8.\n" +msgstr "" +"Входящите файлове съдържат съобщения с различни кодировки и UTF-8 е между " +"тях.\n" +"Преобразуване на резултата в UTF-8.\n" + +#: src/msgl-cat.c:449 +#, c-format +msgid "" +"Input files contain messages in different encodings, %s and %s among " +"others.\n" +"Converting the output to UTF-8.\n" +"To select a different output encoding, use the --to-code option.\n" +msgstr "" +"Входящите файлове съдържат съобщения с различна кодировка, %s и %s между " +"другото.\n" +"Преобразуване на резултата в UTF-8.\n" +"За избор на различно кодиране на резултата се използва опцията --to-code.\n" + +#: src/msgl-cat.c:488 +#, c-format +msgid "" +"Conversion of file %s from %s encoding to %s encoding\n" +"changes some msgids or msgctxts.\n" +"Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" +"UTF-8 encoded from the beginning, i.e. already in your source code files.\n" +msgstr "" +"Преобразуването на файла %s от кодировка %s към кодировка %s промени някои\n" +"msgids или msgctxts.\n" +"Или да се променят всички msgids и msgctxts да са в ASCII или да се " +"осигури,\n" +"да са кодирани в UTF-8 поначало, т.е. във файловете с програмен код.\n" + +#: src/msgl-charset.c:93 +#, c-format +msgid "" +"Locale charset \"%s\" is different from\n" +"input file charset \"%s\".\n" +"Output of '%s' might be incorrect.\n" +"Possible workarounds are:\n" +msgstr "" +"Кодовото множество на локала \"%s\" в различно от кодовото множество на\n" +"входящия файл \"%s\".\n" +"Резултата на '%s' може да не е коректен.\n" +"Възможни заобикаляния са:\n" + +#: src/msgl-charset.c:100 +#, c-format +msgid "- Set LC_ALL to a locale with encoding %s.\n" +msgstr "- Задаване на LC_ALL локал с кодировка %s.\n" + +#: src/msgl-charset.c:105 +#, c-format +msgid "" +"- Convert the translation catalog to %s using 'msgconv',\n" +" then apply '%s',\n" +" then convert back to %s using 'msgconv'.\n" +msgstr "" +"- Преобразуване на каталога с преводи в %s използвайки 'msgconv',\n" +" после прилагане на '%s',\n" +" после обратно преобразуване към %s използвайки 'msgconv'.\n" + +#: src/msgl-charset.c:114 +#, c-format +msgid "" +"- Set LC_ALL to a locale with encoding %s,\n" +" convert the translation catalog to %s using 'msgconv',\n" +" then apply '%s',\n" +" then convert back to %s using 'msgconv'.\n" +msgstr "" +"- Установяване на LC_ALL към локал с кодировка %s,\n" +" преобразуване на каталога с преводи към %s използвайки 'msgconv',\n" +" после прилагане на '%s',\n" +" после обратно преобразуване към %s използвайки 'msgconv'.\n" + +#: src/msgl-charset.c:128 +#, c-format +msgid "" +"Locale charset \"%s\" is not a portable encoding name.\n" +"Output of '%s' might be incorrect.\n" +"A possible workaround is to set LC_ALL=C.\n" +msgstr "" +"Кодовото множество \"%s\" на локала не е преносимо име на кодировка.\n" +"Резултата от '%s' може да не е правилен.\n" +"Възможно заобикаляне е да се установи LC_ALL=C.\n" + +#: src/msgl-check.c:130 +msgid "plural expression can produce negative values" +msgstr "израза за множествено число може да върне отрицателен резултат" + +#: src/msgl-check.c:141 +#, c-format +msgid "nplurals = %lu but plural expression can produce values as large as %lu" +msgstr "" +"nplurals = %lu, но израза за множествено число може да върне стойност по-" +"голяма от %lu" + +#: src/msgl-check.c:187 +msgid "plural expression can produce division by zero" +msgstr "в израза за множествено число може да получи деление на нула" + +#: src/msgl-check.c:192 +msgid "plural expression can produce integer overflow" +msgstr "в израза за множествено число може да получи целочислено препълване" + +#: src/msgl-check.c:197 +msgid "" +"plural expression can produce arithmetic exceptions, possibly division by " +"zero" +msgstr "" +"в израза за множествено число може да се получи аритметична грешка, възможно " +"е деление на нула" + +#: src/msgl-check.c:266 +#, c-format +msgid "Try using the following, valid for %s:" +msgstr "Да се опита следното, правилно за %s:" + +#: src/msgl-check.c:352 src/msgl-check.c:376 +msgid "message catalog has plural form translations" +msgstr "каталога със съобщенията съдържа преводи за множествено число" + +#: src/msgl-check.c:354 +msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" +msgstr "но в заглавния блок липсва запис \"plural=ИЗРАЗ\"" + +#: src/msgl-check.c:378 +msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" +msgstr "но в заглавния блок липсва запис \"nplurals=ЦЯЛО\"" + +#: src/msgl-check.c:414 +msgid "invalid nplurals value" +msgstr "неправилна стойност за nplurals" + +#: src/msgl-check.c:436 +msgid "invalid plural expression" +msgstr "неправилен израз за множествено число" + +#: src/msgl-check.c:466 src/msgl-check.c:482 +#, c-format +msgid "nplurals = %lu" +msgstr "nplurals = %lu" + +#: src/msgl-check.c:468 +#, c-format +msgid "but some messages have only one plural form" +msgid_plural "but some messages have only %lu plural forms" +msgstr[0] "но някой съобщения съдържат само една форма за множествено число" +msgstr[1] "но някой съобщения съдържат само %lu форми за множествено число" + +#: src/msgl-check.c:484 +#, c-format +msgid "but some messages have one plural form" +msgid_plural "but some messages have %lu plural forms" +msgstr[0] "но някой съобщения съдържат една форма за множествено число" +msgstr[1] "но някой съобщения съдържат %lu форми за множествено число" + +#: src/msgl-check.c:508 +msgid "" +"message catalog has plural form translations, but lacks a header entry with " +"\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" +msgstr "" +"каталога със съобщения съдържа форми за множествено число, но липсва " +"заглавен запис с \"Plural-Forms: nplurals=ЦЯЛО; plural=ИЗРАЗ;\"" + +#: src/msgl-check.c:602 +msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" +msgstr "и двата записа 'msgid' и 'msgid_plural' не започват с '\\n'" + +#: src/msgl-check.c:610 +#, c-format +msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" +msgstr "и двата записа 'msgid' и 'msgstr[%u]' не започват с '\\n'" + +#: src/msgl-check.c:625 +msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" +msgstr "и двата записа 'msgid' и '`msgstr' не започват с '\\n'" + +#: src/msgl-check.c:643 +msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" +msgstr "и двата записа 'msgid' и 'msgid_plural' не завършват с '\\n'" + +#: src/msgl-check.c:651 +#, c-format +msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" +msgstr "и двата записа 'msgid' и 'msgstr[%u]' не завършват с '\\n'" + +#: src/msgl-check.c:666 +msgid "`msgid' and `msgstr' entries do not both end with '\\n'" +msgstr "и двата записа 'msgid' и 'msgstr' не завършват с '\\n'" + +#: src/msgl-check.c:678 +msgid "plural handling is a GNU gettext extension" +msgstr "поддръжката на множествено число е допълнение на ГНУ gettext" + +#: src/msgl-check.c:720 +#, c-format +msgid "msgstr lacks the keyboard accelerator mark '%c'" +msgstr "msgstr е без отбелязване за ускорена клавишна комбинация '%c'" + +#: src/msgl-check.c:730 +#, c-format +msgid "msgstr has too many keyboard accelerator marks '%c'" +msgstr "msgstr е отбелязан с твърде много ускорени клавишни комбинации '%c'" + +#: src/msgl-check.c:776 +#, c-format +msgid "header field `%s' missing in header\n" +msgstr "в заглавния блок липсва поле '%s'\n" + +#: src/msgl-check.c:784 +#, c-format +msgid "header field `%s' should start at beginning of line\n" +msgstr "заглавно поле '%s' трябва да започне от началото на реда\n" + +#: src/msgl-check.c:809 +msgid "some header fields still have the initial default value\n" +msgstr "" +"все още някой заглавни полета са с началните стойност по подразбиране\n" + +#: src/msgl-check.c:826 +#, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "все още заглавното поле '%s' е с началната стойност по подразбиране\n" + +#: src/msgl-iconv.c:65 +#, c-format +msgid "%s: input is not valid in \"%s\" encoding" +msgstr "%s: входящите данни не са с \"%s\" кодировка" + +#: src/msgl-iconv.c:69 +#, c-format +msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" +msgstr "%s: грешка при преобразуване от кодировка \"%s\" към кодировка \"%s\"" + +#: src/msgl-iconv.c:290 +msgid "input file doesn't contain a header entry with a charset specification" +msgstr "входящия файл не съдържа запис указващ знаково множество" + +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 +#, c-format +msgid "" +"Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " +"not support this conversion." +msgstr "" +"Не може да се превърне от \"%s\" към \"%s\". %s използва iconv(), а iconv() " +"не поддържа това превръщане." + +#: src/msgl-iconv.c:335 +#, c-format +msgid "" +"Conversion from \"%s\" to \"%s\" introduces duplicates: some different " +"msgids become equal." +msgstr "" +"Превръщането от \"%s\" към \"%s\" създаде повторения: някой различни msgids " +"се получиха еднакви." + +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 +#, c-format +msgid "" +"Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " +"built without iconv()." +msgstr "" +"Не може да се превърне от \"%s\" към \"%s\". %s използва iconv(). Тази " +"версия е създадена без iconv()." + +#: src/msgmerge.c:383 src/msgmerge.c:389 +#, c-format +msgid "%s is only valid with %s" +msgstr "%s е правилно само с %s" + +#: src/msgmerge.c:448 +msgid "backup type" +msgstr "тип на резервно копие" + +#: src/msgmerge.c:485 +#, c-format, no-wrap +msgid "" +"Merges two Uniforum style .po files together. The def.po file is an\n" +"existing PO file with translations which will be taken over to the newly\n" +"created file as long as they still match; comments will be preserved,\n" +"but extracted comments and file positions will be discarded. The ref.pot\n" +"file is the last created PO file with up-to-date source references but\n" +"old translations, or a PO Template file (generally created by xgettext);\n" +"any translations or comments in the file will be discarded, however dot\n" +"comments and file positions will be preserved. Where an exact match\n" +"cannot be found, fuzzy matching is used to produce better results.\n" +msgstr "" +"Слива два .po файла с уеднаквен стил. Файлът def.po е съществуващ PO\n" +"файл с преводи, които ще бъдат взети в предвид за новосъздадения файл,\n" +"само ако съвпадат, коментарите ще се запазят, но извлечените коментари\n" +"и позициите във файловете ще се отхвърлят. Файла ref.pot е последния\n" +"създаден PO файл с осъвременени отпратки към източника, но с предишен превод\n" +"или PO примерен файл (в общия случай създаден от xgettext). Всички\n" +"преводи или коментари в файла ще се отхвърлят, обаче вградените коментари\n" +"и позициите в файловете ще се запазят. Ако не може да се намери точно\n" +"съвпадение, за получаван на по-добри резултати ще се използват размити\n" +"(fuzzy) съвпадения\n" + +#: src/msgmerge.c:502 +#, c-format +msgid " def.po translations referring to old sources\n" +msgstr "" +" def.po преводи препращащи към на старите източници\n" + +#: src/msgmerge.c:504 +#, c-format +msgid " ref.pot references to new sources\n" +msgstr " ref.pot препратки към новите източници\n" + +#: src/msgmerge.c:508 +#, c-format +msgid "" +" -C, --compendium=FILE additional library of message translations,\n" +" may be specified more than once\n" +msgstr "" +" -C, --compendium=ФАЙЛ допълнителна библиотека с преведени " +"съобщения,\n" +" може да се укаже повече от веднъж\n" + +#: src/msgmerge.c:514 +#, c-format +msgid "" +" -U, --update update def.po,\n" +" do nothing if def.po already up to date\n" +msgstr "" +" -U, --update обнови def.po,\n" +" не прави нищо, ако def.po е осъвременен\n" + +#: src/msgmerge.c:526 +#, c-format +msgid "Output file location in update mode:\n" +msgstr "Място на изходящия файл при обновяване:\n" + +#: src/msgmerge.c:528 +#, c-format +msgid "The result is written back to def.po.\n" +msgstr "Резултата се записва обратно в def.po.\n" + +#: src/msgmerge.c:530 +#, c-format +msgid " --backup=CONTROL make a backup of def.po\n" +msgstr " --backup=КОНТРОЛ създаване на резервно копие на def.po\n" + +#: src/msgmerge.c:532 +#, c-format +msgid " --suffix=SUFFIX override the usual backup suffix\n" +msgstr " --suffix=НАСТ задава наставка за резервно копие\n" + +#: src/msgmerge.c:534 +#, c-format +msgid "" +"The version control method may be selected via the --backup option or " +"through\n" +"the VERSION_CONTROL environment variable. Here are the values:\n" +" none, off never make backups (even if --backup is given)\n" +" numbered, t make numbered backups\n" +" existing, nil numbered if numbered backups exist, simple otherwise\n" +" simple, never always make simple backups\n" +msgstr "" +"Начина за контрол на версиите може да се избере чрез опцията --backup или\n" +"чрез променливата на обкръжението VERSION_CONTROL. Това са стойностите:\n" +" none, off не създавай копие (дори ако е зададено --backup)\n" +" numbered, t създаване на номерирано копие\n" +" existing, nil номериран, ако съществува такъв, иначе обикновен\n" +" simple, never винаги се създава обикновено резервно копие\n" + +#: src/msgmerge.c:541 +#, c-format +msgid "" +"The backup suffix is `~', unless set with --suffix or the " +"SIMPLE_BACKUP_SUFFIX\n" +"environment variable.\n" +msgstr "" +"Наставката за резервно копие е `~', освен ако е зададен с --suffix или с\n" +"променливата на обкръжението SIMPLE_BACKUP_SUFFIX.\n" + +#: src/msgmerge.c:552 +#, c-format +msgid "" +" --previous keep previous msgids of translated messages\n" +msgstr "" +" --previous запазване на предишните msgid-ита на " +"преведените съобщения\n" + +#: src/msgmerge.c:609 src/urlget.c:192 +#, c-format +msgid " -q, --quiet, --silent suppress progress indicators\n" +msgstr "" +" -q, --quiet, --silent подтискане на показването ход на процеса\n" + +#: src/msgmerge.c:1604 +#, c-format +msgid "this message should define plural forms" +msgstr "това съобщение трябва да зададе форми за множествено число" + +#: src/msgmerge.c:1627 +#, c-format +msgid "this message should not define plural forms" +msgstr "това съобщение не трябва да зададе форми за множествено число" + +#: src/msgmerge.c:2030 +#, c-format +msgid "" +"%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " +"obsolete %ld.\n" +msgstr "" +"%sПрочетени %ld стари + %ld препратки, сляти %ld, мъгляви %ld, липсващи %ld, " +"остаряли %ld.\n" + +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format +msgid " done.\n" +msgstr " готово.\n" + +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 +#, c-format +msgid "%s and explicit file names are mutually exclusive" +msgstr "%s и изрични имена на файлове са взаимоизключващи се" + +#: src/msgunfmt.c:427 +#, c-format +msgid "Usage: %s [OPTION] [FILE]...\n" +msgstr "Употреба: %s [ОПЦИЯ] [ФАЙЛ]...\n" + +#: src/msgunfmt.c:431 +#, c-format +msgid "Convert binary message catalog to Uniforum style .po file.\n" +msgstr "" +"Преобразува каталог с двоични съобщения в .po файл каталог с уеднаквен " +"стил.\n" + +#: src/msgunfmt.c:440 +#, c-format +msgid "" +" -j, --java Java mode: input is a Java ResourceBundle " +"class\n" +msgstr "" +" -j, --java Java режим: входящ е Java ResourceBundle клас\n" + +#: src/msgunfmt.c:442 +#, c-format +msgid " --csharp C# mode: input is a .NET .dll file\n" +msgstr " --csharp C# режим: входящ е .NET .dll файл\n" + +#: src/msgunfmt.c:444 +#, c-format +msgid "" +" --csharp-resources C# resources mode: input is a .NET .resources " +"file\n" +msgstr "" +" --csharp-resources C# ресурсен режим: входящ е .NET .resources " +"файл\n" + +#: src/msgunfmt.c:446 +#, c-format +msgid "" +" --tcl Tcl mode: input is a tcl/msgcat .msg file\n" +msgstr "" +" --tcl Tcl режим: входящ е tcl/msgcat .msg файл\n" + +#: src/msgunfmt.c:451 +#, c-format +msgid " FILE ... input .mo files\n" +msgstr " ФАЙЛ ... входящи .mo файлове\n" + +#: src/msgunfmt.c:456 +#, c-format +msgid "Input file location in Java mode:\n" +msgstr "Местоположение на входящите файлове при Java режим:\n" + +#: src/msgunfmt.c:462 +#, c-format +msgid "" +"The class name is determined by appending the locale name to the resource " +"name,\n" +"separated with an underscore. The class is located using the CLASSPATH.\n" +msgstr "" +"Името на класа се определя като се добави име на локал към името на " +"ресурса,\n" +"разделени с долна черта. Класът се намира използвайки CLASSPATH.\n" + +#: src/msgunfmt.c:467 +#, c-format +msgid "Input file location in C# mode:\n" +msgstr "Местоположение на входящия файл при C# режим:\n" + +#: src/msgunfmt.c:475 +#, c-format +msgid "" +"The -l and -d options are mandatory. The .dll file is located in a\n" +"subdirectory of the specified directory whose name depends on the locale.\n" +msgstr "" +"Опциите -l и -d са задължителни. .dll файла се намира в\n" +"поддиректория на указаната, чието име зависи от локала.\n" + +#: src/msgunfmt.c:479 +#, c-format +msgid "Input file location in Tcl mode:\n" +msgstr "Местоположение на входящия файл при Tcl режим:\n" + +#: src/msgunfmt.c:485 +#, c-format +msgid "" +"The -l and -d options are mandatory. The .msg file is located in the\n" +"specified directory.\n" +msgstr "" +"Опциите -l и -d са задължителни. .msg файла се намира в\n" +"указаната директория.\n" + +#: src/msgunfmt.c:511 +#, c-format +msgid " -i, --indent write indented output style\n" +msgstr "" +" -i, --indent записване на резултата в стил с отмествания\n" + +#: src/msgunfmt.c:513 +#, c-format +msgid " --strict write strict uniforum style\n" +msgstr " --strict записване в стриктен уеднаквен стил\n" + +#: src/msguniq.c:330 +#, c-format, no-wrap +msgid "" +"Unifies duplicate translations in a translation catalog.\n" +"Finds duplicate translations of the same message ID. Such duplicates are\n" +"invalid input for other programs like msgfmt, msgmerge or msgcat. By\n" +"default, duplicates are merged together. When using the --repeated option,\n" +"only duplicates are output, and all other messages are discarded. Comments\n" +"and extracted comments will be cumulated, except that if --use-first is\n" +"specified, they will be taken from the first translation. File positions\n" +"will be cumulated. When using the --unique option, duplicates are discarded.\n" +msgstr "" +"Уеднаквява повтарящи се преводи с каталога с преводи.\n" +"Намира повтарящи се преводи със същия ключ на съобщение. Тези повторения са\n" +"неправилни входни данни за други програми като msgfmt, msgmerge или msgcat. По\n" +"подразбиране, повторенията се обединяват. Ако се използва опцията --repeated,\n" +"само повторенията се извеждат и всички други съобщения се отхвърлят. Коментарите\n" +"и извлечените коментари ще се натрупат, освен ако е зададено --use-first,\n" +"като тогава ще се вземат от първия превод. Позициите във файловете ще се натрупат.\n" +"Ако се използва --unique, повторенията ще се отхвърлят.\n" + +#: src/msguniq.c:363 +#, c-format +msgid " -d, --repeated print only duplicates\n" +msgstr " -d, --repeated извежда само повторенията\n" + +#: src/msguniq.c:365 +#, c-format +msgid "" +" -u, --unique print only unique messages, discard " +"duplicates\n" +msgstr "" +" -u, --unique извежда само неповтарящи се съобщения, " +"отхвърляне на повторения\n" + +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 +#: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 +msgid "" +msgstr "<стандвх>" + +#: src/po-charset.c:489 +#, c-format +msgid "" +"Charset \"%s\" is not a portable encoding name.\n" +"Message conversion to user's charset might not work.\n" +msgstr "" +"Кодовото множество \"%s\" не е с преносимо име за кодировка.\n" +"Преобразуването на съобщенията в потребителското кодовото множество може да " +"не работи.\n" + +#: src/po-charset.c:556 +#, c-format +msgid "" +"Charset \"%s\" is not supported. %s relies on iconv(),\n" +"and iconv() does not support \"%s\".\n" +msgstr "" +"Кодовото множество \"%s\" не се поддържа. %s използва iconv(),\n" +"и iconv() не поддържа \"%s\".\n" + +#: src/po-charset.c:563 src/po-charset.c:611 +msgid "" +"Installing GNU libiconv and then reinstalling GNU gettext\n" +"would fix this problem.\n" +msgstr "" +"Инсталирането на ГНУ libiconv е след това преинсталирането на ГНУ gettext\n" +"ще оправи този проблем.\n" + +#: src/po-charset.c:577 src/po-charset.c:615 +msgid "Continuing anyway, expect parse errors." +msgstr "Продължаване във всеки случай, очакват се грешки при разбора." + +#: src/po-charset.c:579 +msgid "Continuing anyway." +msgstr "Продължаване във всеки случай." + +#: src/po-charset.c:606 +#, c-format +msgid "" +"Charset \"%s\" is not supported. %s relies on iconv().\n" +"This version was built without iconv().\n" +msgstr "" +"Кодовото множество \"%s\" не се поддържа. %s използва iconv().\n" +"Тази версия е създадена без iconv().\n" + +#: src/po-charset.c:643 +msgid "" +"Charset missing in header.\n" +"Message conversion to user's charset will not work.\n" +msgstr "" +"В заглавието липсва кодово множество.\n" +"Преобразуването на съобщенията в потребителско множество няма да работи.\n" + +#: src/po-gram-gen.y:93 +#, c-format +msgid "inconsistent use of #~" +msgstr "противоречиво използване на #~" + +#: src/po-gram-gen.y:240 +#, c-format +msgid "missing `msgstr[]' section" +msgstr "липсва секция 'msgstr[]'" + +#: src/po-gram-gen.y:249 +#, c-format +msgid "missing `msgid_plural' section" +msgstr "липсва секция 'msgid_plural'" + +#: src/po-gram-gen.y:257 +#, c-format +msgid "missing `msgstr' section" +msgstr "липсва секция 'msgstr'" + +#: src/po-gram-gen.y:396 +#, c-format +msgid "first plural form has nonzero index" +msgstr "първата форма за множествено число не е с нулев индекс" + +#: src/po-gram-gen.y:398 +#, c-format +msgid "plural form has wrong index" +msgstr "формата за множествено число с грешен индекс" + +#: src/po-lex.c:90 src/po-lex.c:109 +#, c-format +msgid "too many errors, aborting" +msgstr "твърде много грешки, прекратяване" + +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 +#, c-format +msgid "invalid multibyte sequence" +msgstr "неправилно много-байтова последователност" + +#: src/po-lex.c:465 +#, c-format +msgid "incomplete multibyte sequence at end of file" +msgstr "незавършена много-байтова последователност в края на файла" + +#: src/po-lex.c:475 +#, c-format +msgid "incomplete multibyte sequence at end of line" +msgstr "незавършена много-байтова последователност в края на реда" + +#: src/po-lex.c:487 +msgid "iconv failure" +msgstr "неуспех на iconv" + +#: src/po-lex.c:744 +#, c-format +msgid "keyword \"%s\" unknown" +msgstr "непознат ключ \"%s\"" + +#: src/po-lex.c:854 +#, c-format +msgid "invalid control sequence" +msgstr "неправилна контролна последователност" + +#: src/po-lex.c:981 +#, c-format +msgid "end-of-file within string" +msgstr "край-на-файл в низ" + +#: src/po-lex.c:987 +#, c-format +msgid "end-of-line within string" +msgstr "край-на-ред в низ" + +#: src/po-lex.c:1008 +#, c-format +msgid "context separator within string" +msgstr "разделител на съдържание в низ" + +#: src/read-catalog.c:332 src/xgettext.c:1003 +#, c-format +msgid "this file may not contain domain directives" +msgstr "този файл май не съдържа директиви за област" + +#: src/read-catalog.c:377 +msgid "duplicate message definition" +msgstr "повторно определение на съобщение" + +#: src/read-catalog.c:379 +msgid "this is the location of the first definition" +msgstr "това е мястото на първото определение" + +#: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 +#, c-format +msgid "file \"%s\" is truncated" +msgstr "файлът \"%s\" е отрязан" + +#: src/read-mo.c:129 +#, c-format +msgid "file \"%s\" contains a not NUL terminated string" +msgstr "файлът \"%s\" съдържа низ не завършващ на NUL" + +#: src/read-mo.c:165 src/read-mo.c:274 +#, c-format +msgid "file \"%s\" is not in GNU .mo format" +msgstr "файла \"%s\" не е в ГНУ .mo формат" + +#: src/read-mo.c:178 +#, c-format +msgid "file \"%s\" contains a not NUL terminated string, at %s" +msgstr "файла \"%s\" съдържа незавършващ с NUL низ на позиция %s" + +#: src/read-properties.c:227 +msgid "warning: invalid \\uxxxx syntax for Unicode character" +msgstr "предупреждение: неправилен \\uxxxx синтаксис за знак в уникод" + +#: src/read-stringtable.c:802 +msgid "warning: unterminated string" +msgstr "предупреждение: незавършен низ" + +#: src/read-stringtable.c:810 +msgid "warning: syntax error" +msgstr "предупреждение: синтактична грешка" + +#: src/read-stringtable.c:871 src/read-stringtable.c:893 +msgid "warning: unterminated key/value pair" +msgstr "предупреждение: незавършена двойка ключ/стойност" + +#: src/read-stringtable.c:939 +msgid "warning: syntax error, expected ';' after string" +msgstr "предупреждение: синтактична грешка, очаква се ';' след низа" + +#: src/read-stringtable.c:948 +msgid "warning: syntax error, expected '=' or ';' after string" +msgstr "предупреждение: синтактична грешка, очаква се '=' или ';' след низа" + +#: src/recode-sr-latin.c:116 +#, c-format +msgid "Written by %s and %s.\n" +msgstr "Създадена от %s и %s.\n" + +#. TRANSLATORS: This is a proper name. The last name is +#. (with Unicode escapes) "\u0160egan" or (with HTML entities) +#. "Šegan". +#. This is a proper name. See the gettext manual, section Names. +#: src/recode-sr-latin.c:120 +msgid "Danilo Segan" +msgstr "Данило Сеган" + +#: src/recode-sr-latin.c:153 +#, c-format, no-wrap +msgid "Recode Serbian text from Cyrillic to Latin script.\n" +msgstr "Прекодира сръбски текст от кирилица на латиница.\n" + +#: src/recode-sr-latin.c:156 +#, c-format, no-wrap +msgid "" +"The input text is read from standard input. The converted text is output to\n" +"standard output.\n" +msgstr "" +"Входящия текст се чете от стандартния вход. Преобразувания текст се извежда\n" +"на стандартния изход.\n" + +#: src/recode-sr-latin.c:338 +#, c-format +msgid "input is not valid in \"%s\" encoding" +msgstr "входните данни не са правилни при кодировка \"%s\"" + +#: src/recode-sr-latin.c:366 +#, c-format +msgid "error while converting from \"%s\" encoding to \"%s\" encoding" +msgstr "грешка при преобразуване от кодировка \"%s\" към кодировка \"%s\"" + +#: src/urlget.c:159 +#, c-format +msgid "expected two arguments" +msgstr "очакват се два аргумента" + +#: src/urlget.c:176 +#, c-format +msgid "Usage: %s [OPTION] URL FILE\n" +msgstr "Употреба: %s [ОПЦИЯ] АДРЕС ФАЙЛ\n" + +#: src/urlget.c:181 +#, c-format, no-wrap +msgid "" +"Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" +"the locally accessible FILE is used instead.\n" +msgstr "" +"Донася и извежда съдържанието на URL. Ако URL не е достъпен, то се използва\n" +"достъпен локално ФАЙЛ\n" + +#: src/urlget.c:234 +#, c-format +msgid "error writing stdout" +msgstr "грешка за записване на стандартния изход" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Получава %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " просрочка.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " не успя.\n" + +#: src/write-catalog.c:126 +msgid "" +"Cannot output multiple translation domains into a single file with the " +"specified output format. Try using PO file syntax instead." +msgstr "" +"При указания формат, в един файл не може да се получи резултат с много " +"области за превод. В замяна да се опита със синтаксис на PO файл." + +#: src/write-catalog.c:129 +msgid "" +"Cannot output multiple translation domains into a single file with the " +"specified output format." +msgstr "" +"При указания формат, в един файл не може да се получи резултат с много " +"области за превод." + +#: src/write-catalog.c:162 +msgid "" +"message catalog has context dependent translations, but the output format " +"does not support them." +msgstr "" +"каталога със съобщенията съдържа преводи в зависимост от текста, но формата " +"за резултат не ги поддържа." + +#: src/write-catalog.c:197 +msgid "" +"message catalog has plural form translations, but the output format does not " +"support them. Try generating a Java class using \"msgfmt --java\", instead " +"of a properties file." +msgstr "" +"каталога със съобщенията съдържа преводи в множествено число, но формата за " +"резултат не ги поддържа.Да се опита създаване на Java клас използвайки " +"\"msgfmt --java\", в замяна на .properties файл." + +#: src/write-catalog.c:202 +msgid "" +"message catalog has plural form translations, but the output format does not " +"support them." +msgstr "" +"каталога със съобщенията съдържа преводи в множествено число, но формата за " +"резултат не ги поддържа." + +#: src/write-catalog.c:231 src/write-catalog.c:275 +#, c-format +msgid "cannot create output file \"%s\"" +msgstr "не можа да се създаде изходящия файл \"%s\"" + +#: src/write-catalog.c:239 src/write-catalog.c:283 +msgid "standard output" +msgstr "стандартен изход" + +#: src/write-csharp.c:703 +#, c-format +msgid "failed to create directory \"%s\"" +msgstr "не можа да се създаде директория \"%s\"" + +#: src/write-csharp.c:766 +#, c-format +msgid "compilation of C# class failed, please try --verbose" +msgstr "пропадна компилирането на C# клас, да се опита --verbose" + +#: src/write-csharp.c:768 +#, c-format +msgid "compilation of C# class failed" +msgstr "пропадна компилирането на C# клас" + +#: src/write-java.c:1080 +#, c-format +msgid "not a valid Java class name: %s" +msgstr "неправилно име на Java клас: %s" + +#: src/write-java.c:1165 +#, c-format +msgid "compilation of Java class failed, please try --verbose or set $JAVAC" +msgstr "" +"пропадна компилирането на Java клас, да се опита --verbose или да се " +"установи $JAVAC" + +#: src/write-java.c:1168 +#, c-format +msgid "compilation of Java class failed, please try to set $JAVAC" +msgstr "пропадна компилирането на Java клас, да се опита с установяване $JAVAC" + +#: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 +#, c-format +msgid "error while opening \"%s\" for writing" +msgstr "грешка при отваряне на \"%s\" за запис" + +#: src/write-po.c:802 +#, c-format +msgid "" +"internationalized messages should not contain the `\\%c' escape sequence" +msgstr "" +"съобщения за превод не би трябвало да съдържат '\\%c' освобождаваща " +"последователност" + +#: src/write-po.c:1253 src/write-po.c:1382 +#, c-format +msgid "" +"The following msgctxt contains non-ASCII characters.\n" +"This will cause problems to translators who use a character encoding\n" +"different from yours. Consider using a pure ASCII msgctxt instead.\n" +"%s\n" +msgstr "" +"Следващия msgctxt съдържа букви извън ASCII.\n" +"Това може да създаде проблем за преводачи, които използват различна\n" +"кодировка. Да се обмисли използването на чисто ASCII msgid.\n" +"%s\n" + +#: src/write-po.c:1265 src/write-po.c:1394 +#, c-format +msgid "" +"The following msgid contains non-ASCII characters.\n" +"This will cause problems to translators who use a character encoding\n" +"different from yours. Consider using a pure ASCII msgid instead.\n" +"%s\n" +msgstr "" +"Следващия msgid съдържа букви извън ASCII.\n" +"Това може да създаде проблем за преводачи, които използват различна\n" +"кодировка. Да се обмисли използването на чисто ASCII msgid.\n" +"%s\n" + +#: src/write-qt.c:667 +msgid "" +"message catalog has plural form translations\n" +"but the Qt message catalog format doesn't support plural handling\n" +msgstr "" +"каталога със съобщенията съдържа преводи в множествено число,\n" +"но не се поддържат от Qt каталог със съобщения\n" + +#: src/write-qt.c:693 +msgid "" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" +"but the Qt message catalog format supports Unicode only in the translated\n" +"strings, not in the context strings\n" +msgstr "" +"каталога със съобщенията съдържа в msgctxt букви извън ISO-8859-1,\n" +"но формата на Qt каталог със съобщения поддържа уникод само за\n" +"преведените низове, не не и в низовете за обстоятелство\n" + +#: src/write-qt.c:717 +msgid "" +"message catalog has msgid strings containing characters outside ISO-8859-1\n" +"but the Qt message catalog format supports Unicode only in the translated\n" +"strings, not in the untranslated strings\n" +msgstr "" +"каталога със съобщенията съдържа msgid низове букви извън ISO-8859-1,\n" +"но формата на Qt каталог със съобщения поддържа уникод само за\n" +"преведените низове, не не и за непреведените\n" + +#: src/write-resources.c:94 +#, c-format +msgid "error while writing to %s subprocess" +msgstr "грешка при запис към подпроцес %s" + +#: src/write-resources.c:131 +msgid "" +"message catalog has context dependent translations\n" +"but the C# .resources format doesn't support contexts\n" +msgstr "" +"каталога със съобщенията съдържа преводи в зависимост от обстоятелство,\n" +"но формата на C# .resources не ги поддържа\n" +"но не се поддържат от C# .resources\n" + +#: src/write-resources.c:150 +msgid "" +"message catalog has plural form translations\n" +"but the C# .resources format doesn't support plural handling\n" +msgstr "" +"каталога със съобщенията съдържа преводи в множествено число,\n" +"но не се поддържат от C# .resources\n" + +#: src/write-tcl.c:157 +msgid "" +"message catalog has context dependent translations\n" +"but the Tcl message catalog format doesn't support contexts\n" +msgstr "" +"каталога със съобщенията съдържа преводи в зависимост от текста,\n" +"но не се поддържат от Tcl каталог със съобщения\n" + +#: src/write-tcl.c:176 +msgid "" +"message catalog has plural form translations\n" +"but the Tcl message catalog format doesn't support plural handling\n" +msgstr "" +"каталога със съобщенията съдържа преводи в множествено число,\n" +"но те не се поддържат от Tcl каталог със съобщения\n" + +#: src/x-awk.c:341 src/x-python.c:1074 +#, c-format +msgid "%s:%d: warning: unterminated string" +msgstr "%s:%d: предупреждение: незавършен низ" + +#: src/x-awk.c:592 +#, fuzzy, c-format +msgid "%s:%d: warning: unterminated regular expression" +msgstr "%s:%d: предупреждение: незавършен регулярен израз\n" + +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 +#, c-format +msgid "%s:%d: warning: unterminated character constant" +msgstr "%s:%d: предупреждение: незавършена константа за буква" + +#: src/x-c.c:1247 +#, c-format +msgid "%s:%d: warning: unterminated string literal" +msgstr "%s:%d: предупреждение: незавършен заместител на низ" + +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Да се зададе кодировка на източника чрез --from-code." + +#: src/x-csharp.c:269 +#, c-format +msgid "" +"%s:%d: Invalid multibyte sequence.\n" +"Please specify the correct source encoding through --from-code.\n" +msgstr "" +"%s:%d: Неправилна много-байтова последователност.\n" +"Да се зададе правилна кодировка на източника чрез --from-code.\n" + +#: src/x-csharp.c:285 +#, c-format +msgid "" +"%s:%d: Long incomplete multibyte sequence.\n" +"Please specify the correct source encoding through --from-code.\n" +msgstr "" +"%s:%d: Непълна много-байтова последователност.\n" +"Да се зададе правилна кодировка на източника чрез --from-code.\n" + +#: src/x-csharp.c:297 +#, c-format +msgid "" +"%s:%d: Incomplete multibyte sequence at end of file.\n" +"Please specify the correct source encoding through --from-code.\n" +msgstr "" +"%s:%d: Непълна много-байтова последователност в края на файла.\n" +"Да се зададе правилна кодировка на източника чрез --from-code.\n" + +#: src/x-csharp.c:306 +#, c-format +msgid "" +"%s:%d: Incomplete multibyte sequence at end of line.\n" +"Please specify the correct source encoding through --from-code.\n" +msgstr "" +"%s:%d: Непълна много-байтова последователност в края на реда.\n" +"Да се зададе правилна кодировка на източника чрез --from-code.\n" + +#: src/x-csharp.c:315 src/x-python.c:332 +#, c-format +msgid "%s:%d: iconv failure" +msgstr "%s:%d: iconv не успя" + +#: src/x-csharp.c:338 +#, c-format +msgid "" +"%s:%d: Invalid multibyte sequence.\n" +"Please specify the source encoding through --from-code.\n" +msgstr "" +"%s:%d: Неправилна много-байтова последователност.\n" +"Да се зададе кодировка на източника чрез --from-code.\n" + +#: src/x-csharp.c:1390 src/x-python.c:1281 +#, c-format +msgid "%s:%d: warning: invalid Unicode character" +msgstr "%s:%d: предупреждение: неправилен знак на уникод" + +#: src/x-csharp.c:1512 src/x-java.c:875 +#, c-format +msgid "%s:%d: warning: unterminated string constant" +msgstr "%s:%d: предупреждение: незавършена низова константа" + +#: src/x-csharp.c:2020 src/x-java.c:1369 +#, c-format +msgid "%s:%d: warning: ')' found where '}' was expected" +msgstr "%s:%d: предупреждение: намерено е ')', където се очаква'}'" + +#: src/x-csharp.c:2054 src/x-java.c:1403 +#, c-format +msgid "%s:%d: warning: '}' found where ')' was expected" +msgstr "%s:%d: предупреждение: намерено е '}', където се очаква ')'" + +#: src/x-glade.c:623 src/x-glade.c:630 +#, c-format +msgid "%s:%lu:%lu: %s" +msgstr "%s:%lu:%lu: %s" + +#: src/x-glade.c:657 +#, c-format +msgid "" +"Language \"glade\" is not supported. %s relies on expat.\n" +"This version was built without expat.\n" +msgstr "" +"Не се поддържа езика \"glade\". %s използва expat.\n" +"Тази версия е създадена без expat.\n" + +#: src/x-java.c:494 +#, c-format +msgid "%s:%d: warning: lone surrogate U+%04X" +msgstr "%s:%d: предупреждение: самотен заместител U+%04X" + +#: src/x-perl.c:308 +#, c-format +msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" +msgstr "" +"%s:%d: не може да се намери ограничител за край на низ \"%s\" до края на " +"файла" + +#: src/x-perl.c:1043 +#, c-format +msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" +msgstr "%s:%d: липсва дясна скоба за \\x{ШЕСТНАДЕСЕТИЧНО}" + +#: src/x-perl.c:1163 +#, c-format +msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" +msgstr "%s:%d: неправилно вмъкване (\"\\l\") на 8-битова буква \"%c\"" + +#: src/x-perl.c:1183 +#, c-format +msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" +msgstr "%s:%d: неправилно вмъкване (\"\\u\") на 8-битова буква \"%c\"" + +#: src/x-perl.c:1217 +#, c-format +msgid "%s:%d: invalid variable interpolation at \"%c\"" +msgstr "%s:%d: неправилно вмъкване на променлива при \"%c\"" + +#: src/x-perl.c:1230 +#, c-format +msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" +msgstr "%s:%d: неправилно вмъкване (\"\\L\") на 8-битова буква \"%c\"" + +#: src/x-perl.c:1247 +#, c-format +msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" +msgstr "%s:%d: неправилно вмъкване (\"\\U\") на 8-битова буква \"%c\"" + +#: src/x-python.c:236 +msgid "" +"Please specify the source encoding through --from-code or through a comment\n" +"as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"Да се зададе кодиране на източника чрез --from-code или чрез\n" +"коментар, като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:282 +#, c-format +msgid "" +"%s:%d: Invalid multibyte sequence.\n" +"Please specify the correct source encoding through --from-code or through a\n" +"comment as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"%s:%d: Неправилна много-байтова последователност.\n" +"Да се зададе правилното кодиране на източника чрез --from-code или чрез\n" +"коментар, като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:299 +#, c-format +msgid "" +"%s:%d: Long incomplete multibyte sequence.\n" +"Please specify the correct source encoding through --from-code or through a\n" +"comment as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"%s:%d: Незавършена много-байтова последователност.\n" +"Да се зададе правилното кодиране на източника чрез --from-code или чрез\n" +"коментар, като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:312 +#, c-format +msgid "" +"%s:%d: Incomplete multibyte sequence at end of file.\n" +"Please specify the correct source encoding through --from-code or through a\n" +"comment as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"%s:%d: Незавършена много-байтова последователност в края на файла.\n" +"Да се зададе правилното кодиране на източника чрез --from-code или чрез\n" +"коментар, като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:322 +#, c-format +msgid "" +"%s:%d: Incomplete multibyte sequence at end of line.\n" +"Please specify the correct source encoding through --from-code or through a\n" +"comment as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"%s:%d: Непълна много-байтова последователност в края на реда.\n" +"Да се зададе правилното кодиране на източника чрез --from-code или чрез\n" +"коментар, като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:355 +#, c-format +msgid "" +"%s:%d: Invalid multibyte sequence.\n" +"Please specify the source encoding through --from-code or through a comment\n" +"as specified in http://www.python.org/peps/pep-0263.html.\n" +msgstr "" +"%s:%d: Неправилна много-байтова последователност.\n" +"Да се зададе кодиране на източника чрез --from-code или чрез коментар,\n" +"като е указано в http://www.python.org/peps/pep-0263.html.\n" + +#: src/x-python.c:679 +#, c-format +msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." +msgstr "Неизвестно кодиране \"%s\". Продължаване на работата с ASCII." + +#: src/x-rst.c:108 +#, c-format +msgid "%s:%d: invalid string definition" +msgstr "%s:%d: неправилен определение за низ" + +#: src/x-rst.c:172 +#, c-format +msgid "%s:%d: missing number after #" +msgstr "%s:%d: липсва число след #" + +#: src/x-rst.c:207 +#, c-format +msgid "%s:%d: invalid string expression" +msgstr "%s:%d: неправилен израз от тип низ" + +#: src/x-sh.c:1074 +#, c-format +msgid "" +"%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " +"use eval_gettext instead" +msgstr "" +"%s:%lu: предупреждение: синтаксиса $\"...\" е забранен от съображения за " +"сигурност, вместо това да се използва eval_gettext" + +#: src/xgettext.c:621 +#, c-format +msgid "--join-existing cannot be used when output is written to stdout" +msgstr "" +"--join-existing не може да се използва когато резултата се записва на " +"стандартния изход" + +#: src/xgettext.c:626 +#, c-format +msgid "xgettext cannot work without keywords to look for" +msgstr "xgettext не може да работи без ключове за търсене" + +#: src/xgettext.c:769 +#, c-format +msgid "warning: file `%s' extension `%s' is unknown; will try C" +msgstr "предупреждение: файлът '%s' с окончание '%s' е непознат, ще се опита C" + +#: src/xgettext.c:820 +#, c-format +msgid "Extract translatable strings from given input files.\n" +msgstr "Извличане на низовете за превод от зададените входящи файлове.\n" + +#: src/xgettext.c:843 +#, c-format +msgid "" +" -d, --default-domain=NAME use NAME.po for output (instead of messages." +"po)\n" +msgstr "" +" -d, --default-domain=ИМЕ използване на ИМЕ.po за изходящ (вместо " +"messages.po)\n" + +#: src/xgettext.c:845 +#, c-format +msgid " -o, --output=FILE write output to specified file\n" +msgstr "" +" -o, --output=ФАЙЛ записване на изходните данни в указания файл\n" + +#: src/xgettext.c:847 +#, c-format +msgid "" +" -p, --output-dir=DIR output files will be placed in directory DIR\n" +msgstr "" +" -p, --output-dir=ДИР изходящите файлове да се запишат в директория " +"ДИР\n" + +#: src/xgettext.c:852 +#, c-format +msgid "Choice of input file language:\n" +msgstr "Избиране на език на входящия файл:\n" + +#: src/xgettext.c:854 +#, c-format +msgid "" +" -L, --language=NAME recognise the specified language\n" +" (C, C++, ObjectiveC, PO, Shell, Python, " +"Lisp,\n" +" EmacsLisp, librep, Scheme, Smalltalk, Java,\n" +" JavaProperties, C#, awk, YCP, Tcl, Perl, " +"PHP,\n" +" GCC-source, NXStringTable, RST, Glade)\n" +msgstr "" +" -L, --language=ИМЕ приемане на указания език\n" +" (C, C++, ObjectiveC, PO, Shell, Python, " +"Lisp,\n" +" EmacsLisp, librep, Scheme, Smalltalk, Java,\n" +" JavaProperties, C#, awk, YCP, Tcl, Perl, " +"PHP,\n" +" GCC-source, NXStringTable, RST, Glade)\n" + +#: src/xgettext.c:860 +#, c-format +msgid " -C, --c++ shorthand for --language=C++\n" +msgstr " -C, --c++ за краткост на --language=C++\n" + +#: src/xgettext.c:862 +#, c-format +msgid "" +"By default the language is guessed depending on the input file name " +"extension.\n" +msgstr "" +"По подразбиране езикът се отгатва в зависимост от окончанието на входящия " +"файл.\n" + +#: src/xgettext.c:867 +#, c-format +msgid "" +" --from-code=NAME encoding of input files\n" +" (except for Python, Tcl, Glade)\n" +msgstr "" +" --from-code=NAME кодиране на входящите файлове\n" +" (без Python, Tcl, Glade)\n" + +#: src/xgettext.c:870 +#, c-format +msgid "By default the input files are assumed to be in ASCII.\n" +msgstr "По подразбиране входящите файлове са в ASCII.\n" + +#: src/xgettext.c:875 +#, c-format +msgid " -j, --join-existing join messages with existing file\n" +msgstr "" +" -j, --join-existing добавя съобщенията към съществуващ файл\n" + +#: src/xgettext.c:877 +#, c-format +msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" +msgstr " -x, --exclude-file=ФАЙЛ.po да не се извличат записите от FILE.po\n" + +#: src/xgettext.c:879 +#, c-format +msgid "" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cБЕЛЕГ, --add-comments=БЕЛЕГ в резултата се поставя блок с коментар\n" +" започващ с БЕЛЕГ и редовете преди ключа\n" +" -c, --add-comments в резултата се поставят всички блокове с\n" +" коментар от редовете преди ключа\n" + +#: src/xgettext.c:885 +#, c-format +msgid "Language specific options:\n" +msgstr "Опции за определен език:\n" + +#: src/xgettext.c:887 +#, c-format +msgid " -a, --extract-all extract all strings\n" +msgstr " -a, --extract-all извличане на всички низове\n" + +#: src/xgettext.c:889 src/xgettext.c:896 +#, c-format +msgid "" +" (only languages C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" +msgstr "" +" (само езици C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" + +#: src/xgettext.c:893 +#, c-format +msgid "" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" +msgstr "" +" -kДУМА, --keyword=ДУМА търсене по ДУМА като допълнителен ключ\n" +" -k, --keyword да не се използва ключ по подразбиране\n" + +#: src/xgettext.c:900 +#, c-format +msgid "" +" --flag=WORD:ARG:FLAG additional flag for strings inside the " +"argument\n" +" number ARG of keyword WORD\n" +msgstr "" +" --flag=ДУМА:АРГ:ФЛАГ допълнителен флаг за низове при номер на\n" +" аргумент АРГ за ключ ДУМА\n" + +#: src/xgettext.c:903 +#, c-format +msgid "" +" (only languages C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" +msgstr "" +" (само езици C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" + +#: src/xgettext.c:907 +#, c-format +msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" +msgstr "" +" -T, --trigraphs разпознаване на ANSI Си тризнаци в входните " +"данни\n" + +#: src/xgettext.c:909 +#, c-format +msgid " (only languages C, C++, ObjectiveC)\n" +msgstr " (само езици C, C++, ObjectiveC)\n" + +#: src/xgettext.c:911 +#, c-format +msgid " --qt recognize Qt format strings\n" +msgstr " --qt разпознава Qt формат за низове\n" + +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 +#, c-format +msgid " (only language C++)\n" +msgstr " (само език C++)\n" + +#: src/xgettext.c:915 +#, c-format +msgid " --kde recognize KDE 4 format strings\n" +msgstr " --kde разпознава KDE 4 формат за низове\n" + +#: src/xgettext.c:919 +#, c-format +msgid " --boost recognize Boost format strings\n" +msgstr " --boost разпознава Boost формат за низове\n" + +#: src/xgettext.c:923 +#, c-format +msgid "" +" --debug more detailed formatstring recognition result\n" +msgstr "" +" --debug по-подробен резултат как е разпознато " +"съобщението като вид формат\n" + +#: src/xgettext.c:948 +#, c-format +msgid " --properties-output write out a Java .properties file\n" +msgstr " --properties-output записва Java .properties файл\n" + +#: src/xgettext.c:963 +#, c-format +msgid " --copyright-holder=STRING set copyright holder in output\n" +msgstr "" +" --copyright-holder=НИЗ задава носител на авторско право в " +"резултата\n" + +#: src/xgettext.c:965 +#, c-format +msgid "" +" --foreign-user omit FSF copyright in output for foreign user\n" +msgstr "" +" --foreign-user резултат без авторско право на ФСС за\n" +" чуждестранни потребители\n" + +#: src/xgettext.c:967 +#, c-format +msgid " --package-name=PACKAGE set package name in output\n" +msgstr " --package-name=ПАКЕТ задава име на пакет в резултата\n" + +#: src/xgettext.c:969 +#, c-format +msgid " --package-version=VERSION set package version in output\n" +msgstr " --package-version=ВЕРСИЯ задава версия на паката в резултата\n" + +#: src/xgettext.c:971 +#, c-format +msgid "" +" --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" +msgstr "" +" --msgid-bugs-address=ПОЩА@АДРЕС задава адрес за рапортуване на " +"грешки при msgid\n" + +#: src/xgettext.c:973 +#, c-format +msgid "" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" +msgstr "" +" -m[НИЗ], --msgstr-prefix[=НИЗ] използва НИЗ или \"\" като " +"представка за\n" +" стойностите на msgstr\n" + +#: src/xgettext.c:976 +#, c-format +msgid "" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" +msgstr "" +" -M[НИЗ], --msgstr-suffix[=НИЗ] използва НИЗ или \"\" като наставка " +"за\n" +" стойности на msgstr\n" + +#: src/xgettext.c:1782 +#, c-format +msgid "" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" +msgstr "Аргумента --flag не е с <ключ>:<ном_арг>:[pass-]<флаг> синтаксис: %s" + +#: src/xgettext.c:1881 +msgid "standard input" +msgstr "стандартен изход" + +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Знак извън ASCII кодиране при %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Коментар, който е извън ASCII кодиране, при или преди %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Низ извън ASCII кодиране при %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 +#, c-format +msgid "%s%s: warning: " +msgstr "%s%s: предупреждение: " + +#: src/xgettext.c:2103 +#, c-format +msgid "" +"Although being used in a format string position, the %s is not a valid %s " +"format string. Reason: %s\n" +msgstr "" +"Макар че е използван в място за низове за формат, %s не е правилен низ за %s " +"формат. Причина: %s\n" + +#: src/xgettext.c:2104 +#, c-format +msgid "" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" +msgstr "" +"Макар че е обявен като такъв, %s не е правилен низ за %s формат. Причина: " +"%s\n" + +#: src/xgettext.c:2135 +#, c-format +msgid "" +"'%s' format string with unnamed arguments cannot be properly localized:\n" +"The translator cannot reorder the arguments.\n" +"Please consider using a format string with named arguments,\n" +"and a mapping instead of a tuple for the arguments.\n" +msgstr "" +"низ за '%s' формат с безимени аргументи не може да се преведе като трябва:\n" +"Преводачите не могат да пренареждат аргументите.\n" +"Да се обмисли използването на низ за формат с именувани аргументи и \n" +"привързване, вместо последователност за аргументите.\n" + +#: src/xgettext.c:2197 +msgid "" +"Empty msgid. It is reserved by GNU gettext:\n" +"gettext(\"\") returns the header entry with\n" +"meta information, not the empty string.\n" +msgstr "" +"Празен msgid. Това е запазено за ГНУ gettext:\n" +"gettext(\"\") връща заглавен запис с метаинформация,\n" +"а не празен низ.\n" + +#: src/xgettext.c:2834 +#, c-format +msgid "ambiguous argument specification for keyword '%.*s'" +msgstr "двусмислено зададен аргумент за ключ '%.*s'" + +#: src/xgettext.c:2861 +#, c-format +msgid "warning: missing context for keyword '%.*s'" +msgstr "предупреждение: липсва съдържание за ключ '%.*s'" + +#: src/xgettext.c:2886 +#, c-format +msgid "warning: missing context for plural argument of keyword '%.*s'" +msgstr "предупреждение: липсва съдържание за множествено число на ключ '%.*s'" + +#: src/xgettext.c:2907 +#, c-format +msgid "context mismatch between singular and plural form" +msgstr "Несъответствие на съдържание м/у единствено и множествено число" + +#: src/xgettext.c:3016 +msgid "" +"The option --msgid-bugs-address was not specified.\n" +"If you are using a `Makevars' file, please specify\n" +"the MSGID_BUGS_ADDRESS variable there; otherwise please\n" +"specify an --msgid-bugs-address command line option.\n" +msgstr "" +"Опцията --msgid-bugs-address не е зададена.\n" +"Ако се използва файл 'Makevars', тук се задава\n" +"MSGID_BUGS_ADDRESS променлива, иначе се задава\n" +"опция --msgid-bugs-address на командния ред.\n" + +#: src/xgettext.c:3226 +#, c-format +msgid "language `%s' unknown" +msgstr "непознат език '%s'" + +#: libgettextpo/gettext-po.c:84 +msgid "" +msgstr "<неназован>" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/ca.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/ca.gmo differ diff -Nru gettext-0.17/gettext-tools/po/ca.po gettext-0.18.1.1/gettext-tools/po/ca.po --- gettext-0.17/gettext-tools/po/ca.po 2007-11-02 02:23:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ca.po 2010-06-06 12:49:57.000000000 +0000 @@ -50,10 +50,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-28 18:06+0100\n" "Last-Translator: Ivan Vilata i Balaguer \n" "Language-Team: Catalan \n" +"Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -76,7 +77,7 @@ msgid "Valid arguments are:" msgstr "Els arguments vàlids són:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "" @@ -84,19 +85,19 @@ "TMPDIR" # No usa quote(). ivb -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "no s’ha pogut crear un directori temporal amb la plantilla «%s»" # No usa quote(). ivb -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "no s’ha pogut eliminar el fitxer temporal «%s»" # No usa quote(). ivb -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "no s’ha pogut eliminar el directori temporal «%s»" @@ -105,44 +106,44 @@ msgid "write error" msgstr "error d’escriptura" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "error en obrir «%s» per a llegir" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "no s’ha pogut obrir el fitxer còpia de seguretat «%s» per a escriure" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "error en llegir «%s»" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "error en escriure «%s»" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "error després d’haver llegit «%s»" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "ha fallat fdopen()" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "no s’ha trobat cap compiŀlador de C#, instaŀleu «pnet»" @@ -153,74 +154,73 @@ msgstr "no s’ha trobat cap màquina virtual de C#, instaŀleu «pnet»" # Amb el mateix format que els errors de la libc. ivb -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Error desconegut del sistema" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "el subprocés «%s» ha fallat" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: l’opció «%s» és ambígua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: l’opció «--%s» no admet arguments\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: l’opció «%c%s» no admet arguments\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: l’opció «%s» necessita un argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: l’opció «--%s» no és reconeguda\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: l’opció «%c%s» no és reconeguda\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: no es permet l’opció «%c»\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: l’opció «%c» no és vàlida\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: l’opció «%c» necessita un argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: l’opció «-W %s» és ambígua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: l’opció «-W %s» no admet arguments\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: l’opció «%s» necessita un argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -232,20 +232,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "l’argument «target_version» passat a compile_java_class() no és vàlid" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "no s’ha pogut crear «%s»" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "error en escriure el fitxer «%s»" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -259,20 +259,20 @@ "no s’ha trobat cap màquina virtual de Java, instaŀleu «gij» o establiu la " "variable d’entorn JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "error d’E/S amb el subprocés «%s»" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "la memòria s’ha exhaurit" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -291,37 +291,37 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "«" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "»" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle() ha fallat amb el codi d’error 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "ha fallat _open_osfhandle()" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "no s’ha pogut crear el fitxer d’eixida «%s»" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "subprocés «%s»" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "el subprocés «%s» ha rebut el senyal fatal %d" @@ -330,40 +330,39 @@ # ivb Ací el segon «%s» és el nom d’un llenguatge de programació. # El primer és «msgstr» o «msgstr[n]». ivb # El motiu està traduït. ivb -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "«%s» no és una cadena vàlida de format de %s, com la de «msgid». Motiu: %s" # «%s» és «msgstr». ivb #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -"no existeix, com en «%2$s», una especificació de format de l’argument %1$u en " -"«msgid»" +"no existeix, com en «%2$s», una especificació de format de l’argument %1$u " +"en «msgid»" # «%s» és «msgstr». ivb -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "no existeix una especificació de format de l’argument %u en «%s»" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "les especificacions de format en «msgid» i «%s» de l’argument %u no són les " "mateixes" @@ -396,9 +395,9 @@ "La cadena es refereix a l’argument número %u però passa per alt l’argument " "número %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "el nombre d’especificacions de format en «msgid» i «%s» no coincideix" #: src/format-csharp.c:88 src/format-java.c:205 @@ -443,18 +442,18 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "La cadena conté un «}» solt després de la directiva número %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "A la directiva número %u, la combinació d’indicadors no és vàlida." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "A la directiva número %u, no es pot especificar la precisió abans de «%c»." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -463,7 +462,7 @@ "A la directiva número %u, el número d’argument per a la precisió ha de ser " "igual a %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -471,24 +470,24 @@ msgstr "" "A la directiva número %u, no es pot especificar la precisió abans de «%c»." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "A la directiva número %u, l’especificació de precisió no és vàlida." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "A la directiva número %u, no es permeten indicadors abans de «%c»." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "«msgid» empra %%m però «%s» no ho fa" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "«msgid» no empra %%m però «%s» empra %%m" #: src/format-invalid.h:22 @@ -557,7 +556,8 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" -"A la directiva número %u, la subcadena «%s» no té un estil de data/hora vàlid." +"A la directiva número %u, la subcadena «%s» no té un estil de data/hora " +"vàlid." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format @@ -592,30 +592,29 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" -"A la directiva número %u, una selecció («choice») conté un número que no està " -"seguit per «<», «#» o «%s»." +"A la directiva número %u, una selecció («choice») conté un número que no " +"està seguit per «<», «#» o «%s»." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"no existeix una especificació de format de l’argument {%u} en «msgid», com en " -"«%s»" +"no existeix una especificació de format de l’argument {%u} en «msgid», com " +"en «%s»" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "no existeix una especificació de format de l’argument {%u} en «%s»" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"les especificacions de format de l’argument {%2$u} en «msgid» i «%1$s» no són " -"les mateixes" +"les especificacions de format de l’argument {%2$u} en «msgid» i «%1$s» no " +"són les mateixes" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -630,14 +629,14 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" -"A la directiva número %u, s’han especificat massa paràmetres; se n’esperava %" -"u com a molt." +"A la directiva número %u, s’han especificat massa paràmetres; se n’esperava " +"%u com a molt." msgstr[1] "" "A la directiva número %u, s’han especificat massa paràmetres; se n’esperaven " "%u com a molt." @@ -668,7 +667,8 @@ #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." msgstr "" -"A la directiva número %u, s’han especificat tant el modificador «@» com el «:»." +"A la directiva número %u, s’han especificat tant el modificador «@» com el " +"«:»." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -676,8 +676,8 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" -"A la directiva número %u, «~[» no està seguit de dues clàusules separades per " -"«~;»." +"A la directiva número %u, «~[» no està seguit de dues clàusules separades " +"per «~;»." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format @@ -689,13 +689,13 @@ msgstr "La cadena es refereix a algun argument de formes incompatibles." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "les especificacions de format en «msgid» i «%s» no són equivalents" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "les especificacions de format de «%s» no són un subconjunt de les de «msgid»" @@ -708,12 +708,12 @@ "A la directiva número %u, l’especificador de mida no és compatible amb " "l’especificador de conversió «%c»." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "no existeix una especificació de format de l’argument «%s» en «%s»" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -721,55 +721,52 @@ "La subcadena es refereix a arguments tant pel seu nom com per " "especificacions d’argument sense nom." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "La cadena es refereix a l’argument anomenat «%s» de formes incompatibles." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "les especificacions de format de «msgid» necessiten un mapa, les de «%s» una " "tupla" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"les especificacions de format de «msgid» necessiten una tupla, les de «%s» un " -"mapa" +"les especificacions de format de «msgid» necessiten una tupla, les de «%s» " +"un mapa" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -"no existeix una especificació de format de l’argument «%s» en «msgid», com en «%" -"s»" +"no existeix una especificació de format de l’argument «%s» en «msgid», com " +"en «%s»" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"les especificacions de format de l’argument «%2$s» en «msgid» i «%1$s» no són " -"les mateixes" +"les especificacions de format de l’argument «%2$s» en «msgid» i «%1$s» no " +"són les mateixes" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"«msgid» és una cadena de format simple, però «%s» no ho és: conté un indicador " -"«L» o un número d’argument amb un dígit doble" +"«msgid» és una cadena de format simple, però «%s» no ho és: conté un " +"indicador «L» o un número d’argument amb un dígit doble" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -810,11 +807,11 @@ msgstr "" "El caràcter que termina la directiva número %u no és un dígit entre 1 i 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -827,38 +824,38 @@ "Aquest és programari lliure: podeu modificar‐lo i redistribuir‐lo si voleu.\n" "No hi ha CAP GARANTIA, en la mesura que ho permeta la llei.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Escrit per %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "sobren arguments" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Proveu «%s --help» per a obtenir més informació.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Forma d’ús: %s [OPCIÓ]\n" @@ -893,29 +890,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address Adreces corresponents al nom d’estació.\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Eixida informativa:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help Mostra aquesta ajuda i ix.\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version Mostra informació sobre la versió i ix.\n" @@ -924,11 +921,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Informeu dels errors a .\n" @@ -937,30 +934,30 @@ msgid "could not get host name" msgstr "no s’ha pogut obtenir el nom d’estació" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "es permet com a molt un fitxer d’entrada" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "«%s» i «%s» són mútuament excloents" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Forma d’ús: %s [OPCIÓ] [FITXER_ENTRADA]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -969,10 +966,10 @@ "Filtra els missatges d’un catàleg de traduccions segons els seus atributs, i\n" "manipula aquests atributs.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -980,23 +977,23 @@ "Els arguments obligatoris per a les opcions llargues també ho són per a les\n" "opcions curtes corresponents.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Ubicació del fitxer d’entrada:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " FITXER_ENTRADA Fitxer PO d’entrada.\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -1005,34 +1002,34 @@ " Afegeix el DIRECTORI a la llista de cerca de fitxers\n" " d’entrada.\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Si no s’especifica cap fitxer d’entrada, o si aquest és «-», es llegirà\n" "l’entrada estàndard.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Ubicació del fitxer d’eixida:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" " -o, --output-file=FITXER\n" " Escriu l’eixida al fitxer especificat.\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -1042,12 +1039,12 @@ "fitxer\n" "d’eixida, o si aquest és «-».\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Selecció dels missatges:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -1055,7 +1052,7 @@ " --translated Manté els missatges traduïts, elimina els no " "traduïts.\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -1063,53 +1060,53 @@ " --untranslated Manté els missatges no traduïts, elimina els " "traduïts.\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy Elimina els missatges marcats com a «fuzzy».\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy Manté els missatges marcats com a «fuzzy».\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete Elimina els missatges obsolets («#~»).\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete Manté els missatges obsolets («#~»).\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipulació dels atributs:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy Marca tots els missatges com a «fuzzy».\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy Marca tots els missatges com a no‐«fuzzy».\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete Marca tots els missatges com a obsolets.\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete Marca tots els missatges com a no obsolets.\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1118,7 +1115,7 @@ " --clear-previous Elimina de tots els missatges el comentari amb el\n" " «msgid» anterior.\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1127,7 +1124,7 @@ " Només manipula les entrades llistades al FITXER.po\n" " indicat.\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1137,27 +1134,27 @@ "po\n" " indicat.\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy Equival a «--only-fuzzy --clear-fuzzy».\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr " --obsolete Equival a «--only-obsolete --clear-obsolete».\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Sintaxi del fitxer d’entrada:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1167,8 +1164,8 @@ "de\n" " Java.\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1178,17 +1175,43 @@ " El fitxer d’entrada segueix la sintaxi «.strings» de\n" " NeXTstep/GNUstep.\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Detalls de l’eixida:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color Sempre empra colors i altres atributs per al text.\n" +" --color=QUAN Controla quan s’empren colors i altres atributs per " +"al\n" +" text. QUAN pot ser: «always», «never», «auto» o " +"«html»\n" +" (sempre, mai, automàtic, HTML).\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=FITXER Empra el fitxer indicat de full d’estil CSS per a\n" +" «--color».\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1196,9 +1219,9 @@ " -e, --no-escape No empra seqüències d’escapada de C a l’eixida (per\n" " defecte).\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1206,27 +1229,27 @@ " -E, --escape Empra seqüències d’escapada de C a l’eixida, en lloc\n" " de caràcters estesos.\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po Genera el fitxer PO encara que estiga buit.\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent Genera el fitxer PO emprant l’estil indentat.\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location No escriu les línies «#: nom_fitxer:línia».\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1234,8 +1257,8 @@ " -n, --add-location Escriu les línies «#: nom_fitxer:línia» (per\n" " defecte).\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1243,18 +1266,18 @@ " --strict Genera un fitxer PO estrictament conforme amb " "Uniforum.\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" " -p, --properties-output\n" " Genera un fitxer amb sintaxi «.properties» de Java.\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" @@ -1263,16 +1286,16 @@ " Genera un fitxer amb sintaxi «.strings» de\n" " NeXTstep/GNUstep.\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=AMPLADA Estableix l’amplada de pàgina de l’eixida.\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1281,27 +1304,27 @@ " --no-wrap No parteix les línies de missatge més llargues que\n" " l’amplada de pàgina.\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output Genera una eixida ordenada.\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file Ordena les eixides per llurs ubicacions en fitxer.\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "s’ha especificat un criteri de selecció impossible (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Forma d’ús: %s [OPCIÓ] [FITXER_ENTRADA]…\n" @@ -1309,7 +1332,7 @@ # ivb (2001/12/24) # ivb Aquesta traducció no és completament literal però queda més clar. # ivb Amb «commonality» vol dir «nombre de coincidències». -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1332,25 +1355,25 @@ "treuran del primer fitxer PO que els definesca. Les posicions de fitxer de\n" "tots els fitxers PO s’acumularan.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " FITXER_ENTRADA… Fitxers d’entrada.\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FITXER\n" " Obté la llista de fitxers d’entrada del FITXER.\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Si el fitxer d’entrada és «-» es llegirà l’entrada estàndard.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1360,7 +1383,7 @@ " Escriu els missatges amb menys de NÚMERO definicions\n" " (per defecte infinites).\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1371,7 +1394,7 @@ "(per\n" " defecte 0).\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1381,8 +1404,8 @@ "s’escriguen\n" " els missatges únics.\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1392,8 +1415,8 @@ "properties»\n" " de Java.\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1404,12 +1427,12 @@ "de\n" " NeXTstep/GNUstep.\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NOM Codificació de l’eixida.\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1419,48 +1442,33 @@ "mescla\n" " diverses traduccions.\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color Sempre empra colors i altres atributs per al text.\n" -" --color=QUAN Controla quan s’empren colors i altres atributs per " -"al\n" -" text. QUAN pot ser: «always», «never», «auto» o «html»\n" -" (sempre, mai, automàtic, HTML).\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=FITXER Empra el fitxer indicat de full d’estil CSS per a\n" -" «--color».\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "no s’ha especificat cap fitxer d’entrada" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "cal que especifiqueu exactament dos fitxers d’entrada" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Forma d’ús: %s [OPCIÓ] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1478,79 +1486,87 @@ "es puga trobar una coincidència exacta, s’emprarà una comparació difusa per a\n" "produir uns diagnòstics millors.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po Traduccions.\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot Referències al codi font.\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modificadors del funcionament:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -" -m, --multi-domain Aplica «ref.pot» a cadascun dels dominis de «def.po».\n" +" -m, --multi-domain Aplica «ref.pot» a cadascun dels dominis de «def." +"po».\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" +" -N, --no-fuzzy-matching\n" +" No empra la comparació difusa.\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy Té en compte les entrades difuses.\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" " --use-untranslated\n" " Té en compte les entrades no traduïdes.\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "aquest missatge no està traduït" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "aquest missatge ha de ser revisat pel traductor" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "aquest missatge s’empra però no s’ha definit…" -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "…però aquesta definició és similar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "aquest missatge s’empra però no s’ha definit en «%s»" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "avís: aquest missatge no s’empra" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "s’ha trobat %d error fatal" msgstr[1] "s’han trobat %d errors fatals" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "cal que especifiqueu almenys dos fitxers" @@ -1558,7 +1574,7 @@ # ivb (2001/12/24) # ivb Aquesta traducció no és completament literal però queda més clar. # ivb Amb «commonality» vol dir «nombre de coincidències». -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1579,7 +1595,7 @@ "que els definesca. Les posicions de fitxer de tots els fitxers PO\n" "s’acumularan.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1590,43 +1606,43 @@ "(per\n" " defecte 1).\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header No escriu la capçalera amb l’entrada «msgid \"\"».\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "Converteix un catàleg de traduccions a una codificació de caràcters " "diferent.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Objectiu de la conversió:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "La codificació per defecte és la del locale actual.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent Genera el fitxer PO emprant l’estil indentat.\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location No escriu les línies «#: nom_fitxer:línia».\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1634,30 +1650,30 @@ " --add-location Escriu les línies «#: nom_fitxer:línia» (per\n" " defecte).\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict Genera un fitxer PO estrictament conforme amb " "Uniforum.\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "no s’ha especificat cap fitxer d’entrada" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "cal que especifiqueu exactament un fitxer d’entrada" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Forma d’ús: %s [OPCIÓ] FITXER_ENTRADA\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1670,22 +1686,22 @@ "amb «xgettext»). S’assignarà a les entrades no traduïdes una traducció igual\n" "al «msgid» corresponent.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " FITXER_ENTRADA Fitxer d’entrada PO o POT.\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "manca el nom d’una ordre" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Forma d’ús: %s [OPCIÓ] ORDRE [OPCIÓ_D’ORDRE]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1700,7 +1716,7 @@ "esdevé l’eixida de «msgexec». El codi de retorn de «msgexec» és el codi màxim\n" "de totes les invocacions del programa.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1709,44 +1725,44 @@ "L’ordre incorporada «0» genera la traducció seguida d’un octet nul. L’eixida\n" "de «msgexec 0» és adequada com a entrada per a «xargs -0».\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" " -i, --input=FITXER_ENTRADA\n" " Fitxer PO d’entrada.\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "no s’ha pogut escriure a l’eixida estàndard" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "no s’ha pogut escriure al subprocés «%s»" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "manca el nom d’un filtre" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "cal que especifiqueu almenys un guió de «sed»" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Forma d’ús: %s [OPCIÓ] FILTRE [OPCIÓ_DE_FILTRE]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Aplica un filtre a cada traducció d’un catàleg de traduccions.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1755,18 +1771,18 @@ "El FILTRE pot ser qualsevol programa que llija una traducció de l’entrada\n" "estàndard i n’escriga una de modificada a l’eixida estàndard.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "OPCIONS_DE_FILTRE útils quan el FILTRE és «sed»:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=GUIÓ Afegeix el GUIÓ a les ordres a executar.\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1778,7 +1794,7 @@ "a\n" " executar.\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1786,7 +1802,7 @@ " -n, --quiet, --silent Evita la impressió automàtica de l’espai de " "patró.\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1794,12 +1810,12 @@ " --no-escape No empra seqüències d’escapada de C a l’eixida (per\n" " defecte).\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent Genera el fitxer PO emprant l’estil indentat.\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1807,105 +1823,87 @@ " --keep-header Manté intacta l’entrada de capçalera, sense filtrar‐" "la.\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Encara no s’ha implementat." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "no s’ha pogut establir una E/S no blocadora amb el subprocés «%s»" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "la comunicació amb el subprocés «%s» ha fallat" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "no s’ha pogut llegir del subprocés «%s»" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "el subprocés «%s» ha terminat amb codi d’eixida %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "l’argument de «%s» ha de ser un sol caràcter de puntuació" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "l’ordenació d’octets «%s» no és vàlida" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "«%s» necessita una especificació «-d directori»" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "«%s» necessita una especificació «-l locale»" # ivb (2001/12/26) # ivb Els «%s» es refereixen a opcions -> femení. -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "«%s» només és vàlida amb «%s» o «%s»" # ivb (2001/12/26) # ivb Els «%s» es refereixen a opcions -> femení. -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "«%s» només és vàlida amb «%s», «%s» o «%s»" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d missatge traduït" msgstr[1] "%d missatges traduïts" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traducció difusa" msgstr[1] ", %d traduccions difuses" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d missatge no traduït" msgstr[1] ", %d missatges no traduïts" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Forma d’ús: %s [OPCIÓ] nom_fitxer.po…\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Genera un catàleg binari de missatges partint d’una descripció textual de\n" "traduccions.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1914,17 +1912,17 @@ "Els arguments obligatoris per a les opcions llargues també ho són per a les\n" "opcions curtes corresponents. El mateix ocorre amb els arguments opcionals.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " nom_fitxer.po… Fitxers d’entrada.\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Mode de funcionament:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1933,7 +1931,7 @@ " -j, --java Mode Java: genera una classe «ResourceBundle» de " "Java.\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1942,13 +1940,13 @@ " --java2 Com «--java», però assumeix Java2 (JDK 1.2 o " "superior).\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp Mode C#: genera un fitxer «.dll» de .NET.\n" # Els recursos són cosa de la plataforma .NET, no només de C#. ivb -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1960,7 +1958,7 @@ " .NET.\n" # Amb «tcl/msgcat» es refereix al paquet «msgcat» de Tcl. ivb -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" @@ -1968,35 +1966,35 @@ " --tcl Mode Tcl: genera un fitxer «.msg» per a «msgcat» de\n" " Tcl.\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Mode Qt: genera un fitxer «.qm» de Qt.\n" # Ull! En aquest cas no és un fitxer PO! ivb -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict Genera un fitxer estrictament conforme amb Uniforum.\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Si el fitxer d’eixida és «-» s’escriurà a l’eixida estàndard.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Ubicació del fitxer d’eixida al mode Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RECURS Nom del recurs.\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -2004,7 +2002,7 @@ msgstr "" " -l, --locale=LOCALE Nom del locale, bé «idioma» o bé «idioma_PAÍS».\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -2012,7 +2010,7 @@ " -d DIRECTORI Directori base de la jerarquia de directoris de les\n" " classes.\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2025,12 +2023,12 @@ "separats per un caràcter de subratllat. L’opció «-d» és obligatòria. La\n" "classe s’escriurà sota el directori especificat.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Ubicació del fitxer d’eixida al mode C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -2039,42 +2037,44 @@ " -d DIRECTORI Directori base dels fitxers «.dll» dependents del\n" " locale.\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"Les opcions «-l» i «-d» són obligatòries. El fitxer «.dll» s’escriurà sota un\n" +"Les opcions «-l» i «-d» són obligatòries. El fitxer «.dll» s’escriurà sota " +"un\n" "subdirectori del directori especificat. El nom del subdirectori depén del\n" "locale.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Ubicació del fitxer d’eixida al mode Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORI Directori base dels catàlegs «.msg» de missatges.\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -"Les opcions «-l» i «-d» són obligatòries. El fitxer «.msg» s’escriurà sota el\n" +"Les opcions «-l» i «-d» són obligatòries. El fitxer «.msg» s’escriurà sota " +"el\n" "directori especificat.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretació del fitxer d’entrada:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2082,17 +2082,18 @@ "domain\n" msgstr "" " -c, --check Realitza totes les comprovacions implicades per\n" -" «--check-format», «--check-header» i «--check-domain».\n" +" «--check-format», «--check-header» i «--check-" +"domain».\n" # Segons la doc, quan ací diu «language» es refereix a un de programació. ivb -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format Comprova les cadenes de format dependents del\n" " llenguatge de programació.\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2102,7 +2103,7 @@ " capçalera.\n" # La directiva s’anomena «domain». ivb -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2111,7 +2112,7 @@ " --check-domain Comprova si hi ha conflictes entre les directives\n" " «domain» i l’opció «--output-file».\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2121,7 +2122,7 @@ " Comprova si el «msgfmt» de GNU es comporta com el\n" " «msgfmt» d’X/Open.\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2132,12 +2133,12 @@ " Comprova la presència d’acceleradors de teclat per a\n" " ítems de menú.\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy Empra a l’eixida les entrades difuses.\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2145,7 +2146,7 @@ " -a, --alignment=NÚMERO\n" " Alinea les cadenes a NÚMERO octets (%d per defecte).\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2153,87 +2154,88 @@ " --no-hash Fa que el fitxer binari no incloga la taula de\n" " dispersió.\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics Mostra estadístiques sobre les traduccions.\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose Augmenta el nivell de descripció.\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "avís: la capçalera del fitxer PO manca o no és vàlida\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "avís: la conversió del joc de caràcters no funcionarà\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "avís: la capçalera del fitxer PO està marcada com a difusa\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "avís: les versions antigues de «msgfmt» ho indicaran com un error\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "el nom de domini «%s» no és adequat com a nom de fitxer" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "el nom de domini «%s» no és adequat com a nom de fitxer: se n’emprarà un " "prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "es descarta la directiva «domain %s»" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "es descarta l’entrada «msgstr» buida" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "es descarta l’entrada «msgstr» difusa" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: avís: el fitxer font conté una traducció difusa" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "error en llegir «%s»" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" -msgstr "no es pot emprar l’opció «%c» abans d’especificar «J», «K», «T», «C» o «X»" +msgstr "" +"no es pot emprar l’opció «%c» abans d’especificar «J», «K», «T», «C» o «X»" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2242,7 +2244,7 @@ "Extrau d’un catàleg de traduccions tots els missatges que concorden amb\n" "un patró especificat o que pertanyen a uns fitxers font indicats.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2323,7 +2325,7 @@ " -v, --invert-match Només tria els missatges que no concorden amb cap\n" " criteri de selecció.\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2332,19 +2334,19 @@ "de\n" " caràcters estesos.\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output Genera una eixida ordenada.\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file Ordena les eixides per llurs ubicacions en fitxer.\n" # Multilínia. ivb -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2356,7 +2358,7 @@ "vostres traduccions.\n" # Multilínia. ivb -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2367,12 +2369,12 @@ "Per favor, especifiqueu el locale mitjançant l’opció «--locale» o el\n" "fitxer PO d’eixida mitjançant l’opció «--output-file».\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "S’ha creat «%s».\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2381,14 +2383,14 @@ "Crea un fitxer PO nou, inicialitzant‐ne la metainformació amb valors obtesos\n" "de l’entorn de l’usuari.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" " -i, --input=FITXER_ENTRADA\n" " Fitxer POT d’entrada.\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2399,14 +2401,14 @@ "directori\n" "actual. Si el fitxer d’entrada és «-» es llegirà l’entrada estàndard.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FITXER\n" " Escriu l’eixida al fitxer PO especificat.\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2418,13 +2420,13 @@ "s’escriuran a l’eixida estàndard.\n" # Espere que s’entenga… ivb -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" " -l, --locale=ii_PP Estableix el locale objectiu (idioma i país).\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2432,7 +2434,7 @@ " --no-translator Assumeix que el fitxer PO és generat " "automàticament.\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2440,13 +2442,13 @@ "S’ha trobat més d’un fitxer «.pot».\n" "Per favor, especifiqueu el fitxer POT d’entrada amb l’opció «--input».\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "error en llegir el directori actual" # Multilínia. ivb -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2454,15 +2456,15 @@ "No s’ha trobat cap fitxer «.pot» al directori actual. Per favor,\n" "especifiqueu el fitxer POT d’entrada amb l’opció «--input».\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "el subprocés «%s» ha fallat amb codi d’eixida %d" # Aquest missatge va directament per pantalla… ivb -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2480,22 +2482,22 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traduccions al català del paquet «%s»" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "el joc de caràcters actual, «%s», no és un nom portable de codificació" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "el fitxer d’entrada conté dos jocs de caràcters distints, «%s» i «%s»" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2503,30 +2505,30 @@ "el fitxer d’entrada «%s» no conté una entrada de capçalera amb una " "especificació de joc de caràcters" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -"el domini «%s» del fitxer d’entrada «%s» no conté una entrada de capçalera amb " -"una especificació de joc de caràcters" +"el domini «%s» del fitxer d’entrada «%s» no conté una entrada de capçalera " +"amb una especificació de joc de caràcters" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" "el joc de caràcters destinació, «%s», no és un nom portable de codificació" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "avís: " # Multilínia. ivb -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2536,7 +2538,7 @@ "«UTF-8» entre altres. Es convertirà l’eixida a «UTF-8».\n" # Multilínia. ivb -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2550,7 +2552,7 @@ "codificació, useu l’opció «--to-code».\n" # Multilínia. ivb -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2565,7 +2567,7 @@ "codi font.\n" # Multilínia. ivb -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2579,13 +2581,13 @@ "Aquestes són unes solucions possibles:\n" # Multilínia. ivb -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "— Establiu LC_ALL a un locale amb codificació «%s».\n" # Multilínia. ivb -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2597,7 +2599,7 @@ " i aleshores torneu‐lo a convertir en «%s» amb «msgconv».\n" # Multilínia. ivb -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2611,7 +2613,7 @@ " i aleshores torneu‐lo a convertir en «%s» amb «msgconv».\n" # Multilínia. ivb -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2625,26 +2627,26 @@ # ivb (2002/01/03) # ivb En aquestes frases, tant «nplurals» com «plural» es refereixen a # ivb variables del camp «Plural-Forms» de la capçalera. -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "l’expressió de «plural» pot produir valors negatius" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -"«nplurals» és %lu, però l’expressió de «plural» pot produir valors de fins a %" -"lu" +"«nplurals» és %lu, però l’expressió de «plural» pot produir valors de fins a " +"%lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "l’expressió de «plural» pot produir una divisió entre zero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "l’expressió de «plural» pot produir un desbordament enter" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2656,51 +2658,51 @@ # ivb El «%s» es refereix a un idioma, i tot el missatge recomana usar una # ivb entrada de capçalera «Plural-Forms:». # L’idioma és el de «Language-Team» (en anglés). ivb -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Proveu d’emprar açò, vàlid per a l’idioma «%s»:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "el catàleg de missatges té traduccions amb forma plural" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "però l’atribut «plural=EXPRESSIÓ» manca a l’entrada de capçalera" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "però l’atribut «nplurals=ENTER» manca a l’entrada de capçalera" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "el valor d’«nplurals» no és vàlid" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "l’expressió de «plural» no és vàlida" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "«nplurals» és %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "però alguns missatges només tenen una forma plural" msgstr[1] "però alguns missatges només tenen %lu formes plurals" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "però alguns missatges tenen una forma plural" msgstr[1] "però alguns missatges tenen %lu formes plurals" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2708,84 +2710,85 @@ "el catàleg de missatges té traduccions amb forma plural, però hi manca una " "entrada de capçalera amb «Plural-Forms: nplurals=ENTER; plural=EXPRESSIÓ;»" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "ambdues entrades «msgid» i «msgid_plural» no comencen per «\\n»" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "ambdues entrades «msgid» i «msgstr[%u]» no comencen per «\\n»" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "ambdues entrades «msgid» i «msgstr» no comencen per «\\n»" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "ambdues entrades «msgid» i «msgid_plural» no acaben en «\\n»" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "ambdues entrades «msgid» i «msgstr[%u]» no acaben en «\\n»" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "ambdues entrades «msgid» i «msgstr» no acaben en «\\n»" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "el maneig de plurals és una extensió del «gettext» de GNU" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "manca la marca d’accelerador de teclat «%c» en «msgstr»" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "sobren marques d’accelerador de teclat «%c» en «msgstr»" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "manca el camp de capçalera «%s» a la capçalera\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "cal que el camp de capçalera «%s» comence a l’inici de la línia\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" "alguns camps de la capçalera encara tenen els valors inicials per defecte\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "el camp «%s» encara té el valor inicial per defecte\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "" +"alguns camps de la capçalera encara tenen els valors inicials per defecte\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: l’entrada no és vàlida segons la codificació «%s»" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: error en convertir de la condificació «%s» a la codificació «%s»" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "el fitxer d’entrada no conté una entrada de capçalera amb una especificació " "de joc de caràcters" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2795,7 +2798,7 @@ "permet l’ús d’aquesta conversió." # Es refereix a quelcom que _ha_ocorregut_. ivb -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2804,28 +2807,28 @@ "La conversió de «%s» a «%s» crea duplicats: alguns msgid diferents esdevenen " "iguals." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -"No es pot convertir de «%s» a «%s». «%s» es basa en iconv(). Aquesta versió " -"ha estat construïda sense iconv()." +"No es pot convertir de «%s» a «%s». «%s» es basa en iconv(). Aquesta " +"versió ha estat construïda sense iconv()." # ivb (2001/12/26) # ivb Els «%s» es refereixen a opcions -> femení. -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "«%s» només és vàlida amb «%s»" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "tipus de còpia de seguretat" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2849,17 +2852,17 @@ "Quan no es puga trobar una coincidència exacta s’emprarà una comparació difusa\n" "per a produir uns resultats millors.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po Traduccions referents al codi font antic.\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot Referències al nou codi font.\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2870,38 +2873,39 @@ "es\n" " pot especificar diverses voltes.\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -" -U, --update Actualitza «def.po», no fa res si «def.po» ja es troba\n" +" -U, --update Actualitza «def.po», no fa res si «def.po» ja es " +"troba\n" " actualitzat.\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Ubicació del fitxer d’eixida al mode d’actualització:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "El resultat es torna a escriure sobre «def.po».\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL Crea una còpia de seguretat de «def.po».\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix=SUFIX Substitueix el sufix habitual de còpia de " "seguretat.\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2922,41 +2926,35 @@ " simples en cas contrari.\n" " simple, never Fa còpies de seguretat simples sempre.\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" -"El sufix de còpia de seguretat és «~», si no s’estableix amb «--suffix» o amb\n" +"El sufix de còpia de seguretat és «~», si no s’estableix amb «--suffix» o " +"amb\n" "la variable d’entorn SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching\n" -" No empra la comparació difusa.\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous Manté els «msgid» anteriors dels missatges traduïts.\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent No mostra els indicadors de progrés.\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "cal definir formes plurals d’aquest missatge" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "no s’han de definir formes plurals d’aquest missatge" @@ -2965,38 +2963,40 @@ # ivb Pense que «aprofitades» queda més clar que «mesclades»; es refereix # ivb a les traduccions obteses directament de «def.po». El primer «%s» és # ivb (o no) una nova línia. -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sS’han llegit %ld traduccions antigues + %ld referències, %ld aprofitades, %" -"ld difuses, %ld mancants, %ld obsoletes.\n" +"%sS’han llegit %ld traduccions antigues + %ld referències, %ld aprofitades, " +"%ld difuses, %ld mancants, %ld obsoletes.\n" # ivb (2002/01/08) # ivb Indica el final del processament, el gènere i nombre no són importants. -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " fet.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "«%s» i els noms explícits de fitxer són mútuament excloents" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Forma d’ús: %s [OPCIÓ] [FITXER]…\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Converteix un catàleg binari de missatges en un fitxer PO d’estil Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -3006,14 +3006,14 @@ "de\n" " Java.\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp Mode C#: l’entrada és un fitxer «.dll» de .NET.\n" # Els recursos són cosa de la plataforma .NET, no només de C#. ivb -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -3024,25 +3024,26 @@ " «.resources» de .NET.\n" # Amb «tcl/msgcat» es refereix al paquet «msgcat» de Tcl. ivb -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -" --tcl Mode Tcl: l’entrada és un fitxer «.msg» per a «msgcat»\n" +" --tcl Mode Tcl: l’entrada és un fitxer «.msg» per a " +"«msgcat»\n" " de Tcl.\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FITXER… Fitxers MO d’entrada.\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Ubicació del fitxer d’entrada al mode Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -3055,28 +3056,29 @@ "el\n" "camí a les classes, CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Ubicació del fitxer d’entrada al mode C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"Les opcions «-l» i «-d» són obligatòries. El fitxer «.dll» es trobarà en un\n" +"Les opcions «-l» i «-d» són obligatòries. El fitxer «.dll» es trobarà en " +"un\n" "subdirectori del directori especificat. El nom del subdirectori dependrà " "del\n" "locale.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Ubicació del fitxer d’entrada al mode Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -3085,19 +3087,19 @@ "Les opcions «-l» i «-d» són obligatòries. El fitxer «.msg» es trobarà al\n" "directori especificat.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent Genera el fitxer PO emprant l’estil indentat.\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict Genera un fitxer PO estrictament conforme amb " "Uniforum.\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3119,12 +3121,12 @@ "de la primera traducció. Les posicions de fitxer s’acumularan. Quan useu\n" "l’opció «--unique» es descartaran els duplicats.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated Només mostra els missatges duplicats.\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3133,7 +3135,7 @@ " -u, --unique Només mostra els missatges únics, descartant els\n" " duplicats.\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3227,67 +3229,67 @@ msgid "plural form has wrong index" msgstr "la forma plural té un índex incorrecte" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "hi ha massa errors, s’avorta" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "la seqüència multioctet no és vàlida" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "hi ha una seqüència multioctet incompleta al final del fitxer" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "hi ha una seqüència multioctet incompleta al final de la línia" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "ha fallat iconv()" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "la paraula clau «%s» no és coneguda" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "la seqüència de control no és vàlida" # S’indica la posició exacta de la cadena. ivb -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "s’ha trobat el final de fitxer emmig de la cadena" # S’indica la posició exacta de la cadena. ivb< -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "s’ha trobat un final de línia emmig de la cadena" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "s’ha trobat un separador de context «EOT» enmig de la cadena" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "aquest fitxer no ha de contenir directives «domain»" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "la definició del missatge és duplicada" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "aquesta és la ubicació de la primera definició" @@ -3375,17 +3377,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "error en convertir de la condificació «%s» a la codificació «%s»" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "calen dos arguments" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Forma d’ús: %s [OPCIÓ] URL FITXER\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3394,11 +3396,26 @@ "Obté i mostra el contingut d’una URL. Si no es pot accedir a la URL,\n" "s’emprarà el FITXER accessible localment en lloc d’aquella.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "error en escriure a l’eixida estàndard" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3441,43 +3458,43 @@ "El catàleg de missatges té traduccions amb forma plural, però el format " "d’eixida no en permet l’ús." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "no s’ha pogut crear el fitxer d’eixida «%s»" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "eixida estàndard" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "no s’ha pogut crear el directori «%s»" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "no s’ha pogut compiŀlar la classe C#, per favor useu «--verbose»" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "no s’ha pogut compiŀlar la classe C#" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "«%s» no és un nom vàlid de classe Java" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -"no s’ha pogut compiŀlar la classe Java, per favor useu «--verbose» o establiu " -"la variable d’entorn JAVAC" +"no s’ha pogut compiŀlar la classe Java, per favor useu «--verbose» o " +"establiu la variable d’entorn JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3489,7 +3506,7 @@ msgid "error while opening \"%s\" for writing" msgstr "error en obrir «%s» per a escriure" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3498,7 +3515,7 @@ "«%c»" # Multilínia. ivb -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3512,7 +3529,7 @@ "%s\n" # Multilínia. ivb -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3538,8 +3555,8 @@ # Multilínia. ivb #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3565,7 +3582,7 @@ msgstr "error en escriure al subprocés «%s»" # Multilínia. ivb -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3574,7 +3591,7 @@ "el format «.resources» de C# no permet l’ús de contexts.\n" # Multilínia. ivb -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3601,39 +3618,37 @@ "format de catàleg de missatges de Tcl no permet el tractament de\n" "plurals.\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: avís: la cadena no està terminada" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: avís: l’expressió regular no està terminada" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: avís: la constant caràcter no està terminada" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: avís: el literal cadena no està terminat" # Multilínia. ivb # Cadena amb format «nom_fitxer:línia». ivb -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Hi ha una cadena no‐ASCII en «%s%s».\n" "Per favor, especifiqueu la codificació d’origen correcta amb «--from-code».\n" # Multilínia. ivb -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3644,7 +3659,7 @@ # Multilínia. ivb # Hau! ivb -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3654,7 +3669,7 @@ "Per favor, especifiqueu la codificació d’origen correcta amb «--from-code».\n" # Multilínia. ivb -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3664,7 +3679,7 @@ "Per favor, especifiqueu la codificació d’origen correcta amb «--from-code».\n" # Multilínia. ivb -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3674,13 +3689,13 @@ "Per favor, especifiqueu la codificació d’origen correcta amb «--from-code».\n" # La funció. ivb -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: ha fallat iconv()" # Multilínia. ivb -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3689,34 +3704,34 @@ "%s:%d: La seqüència multioctet no és vàlida.\n" "Per favor, especifiqueu la codificació d’origen correcta amb «--from-code».\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: avís: el caràcter Unicode no és vàlid" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: avís: la constant cadena no està terminada" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: avís: s’ha trobat «)» on s’esperava «}»" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: avís: s’ha trobat «}» on s’esperava «)»" # Crec que no hauria de tenir traducció. ivb -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" # Multilínia. L’argument és el nom del programa. ivb -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3725,58 +3740,57 @@ "No es permet l’ús del llenguatge «glade». «%s» fa ús d’«expat».\n" "Aquesta versió ha estat construïda sense «expat».\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: avís: el punt de codi surrogat U+%04X està solt" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: no s’ha trobat el terminador de cadena «%s» abans del final de fitxer" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: manca la clau dreta de «\\x{NÚMERO_HEX}»" # Sembla que «interpolació» és una expressió pròpia de Perl. ivb -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: la interpolació «\\l» del caràcter de 8 bits «%c» no és vàlida" # Sembla que «interpolació» és una expressió pròpia de Perl. ivb -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: la interpolació «\\u» del caràcter de 8 bits «%c» no és vàlida" # Sembla que «interpolació» és una expressió pròpia de Perl. ivb -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: la interpolació de variable amb «%c» no és vàlida" # Sembla que «interpolació» és una expressió pròpia de Perl. ivb -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: la interpolació «\\L» del caràcter de 8 bits «%c» no és vàlida" # Sembla que «interpolació» és una expressió pròpia de Perl. ivb -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: la interpolació «\\U» del caràcter de 8 bits «%c» no és vàlida" # Multilínia. ivb # Cadena amb format «nom_fitxer:línia». ivb -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3786,7 +3800,7 @@ "http://www.python.org/peps/pep-0263.html.\n" # Multilínia. ivb -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3800,7 +3814,7 @@ # Multilínia. ivb # Hau! ivb -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3813,7 +3827,7 @@ "http://www.python.org/peps/pep-0263.html.\n" # Multilínia. ivb -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3826,7 +3840,7 @@ "http://www.python.org/peps/pep-0263.html.\n" # Multilínia. ivb -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3839,7 +3853,7 @@ "http://www.python.org/peps/pep-0263.html.\n" # Multilínia. ivb -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3852,28 +3866,28 @@ "http://www.python.org/peps/pep-0263.html.\n" # No multilínia. ivb -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "la codificació «%s» no és coneguda, s’emprarà ASCII al seu lloc" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: la definició de cadena no és vàlida" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: manca un número després de «#»" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: l’expressió de cadena no és vàlida" # És una funció d’intèrpret. ivb -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3882,29 +3896,29 @@ "%s:%lu: avís: la sintaxi «$\"…\"» està desaprovada per motius de seguretat; " "useu «eval_gettext» al seu lloc" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "no es pot emprar «--join-existing» quan s’escriu a l’eixida estàndard" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "«xgettext» no funciona sense paraules clau que cercar" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "avís: l’extensió «%2$s» del fitxer «%1$s» no és coneguda; es provarà amb el " "llenguatge «C»" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Extreu les cadenes traduïbles dels fitxers d’entrada indicats.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3914,12 +3928,12 @@ " Empra «NOM.po» com a eixida (en lloc de «messages." "po»).\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FITXER Escriu l’eixida al FITXER especificat.\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3928,12 +3942,12 @@ " Els fitxers d’eixida es desaran al DIRECTORI.\n" # Es refereix al llenguatge de programació. ivb -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Selecció del llenguatge del fitxer d’entrada:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3952,12 +3966,12 @@ " Tcl, Perl, PHP, GCC-source, NXStringTable, RST, " "Glade).\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ Equival a «--language=C++».\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3967,7 +3981,7 @@ "fitxer\n" "d’entrada.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3976,20 +3990,20 @@ " --from-code=NOM Codificació dels fitxers d’entrada (excepte per a\n" " Python, Tcl i Glade).\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" "Per defecte s’assumeix que els fitxers d’entrada estan codificats en ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing Uneix els missatges extrets amb els d’un fitxer\n" " existent.\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" @@ -3997,11 +4011,14 @@ " No extreu les entrades que ja es troben al FITXER.po\n" " indicat.\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ETIQUETA]\n" " Inclou els blocs de comentaris marcats amb " @@ -4009,18 +4026,18 @@ " o aquells que precedeixen les línies amb una paraula\n" " clau, al fitxer d’eixida.\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Opcions específiques del llenguatge:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all Extreu totes les cadenes.\n" # No mola pq va darrere d’un punt… ivb -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -4034,11 +4051,11 @@ "awk,\n" " Tcl, Perl, PHP, GCC-source i Glade.)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=PARAULA]\n" " Paraula clau addicional a cercar (si no s’especifica " @@ -4046,7 +4063,7 @@ " PARAULA no s’empraran les paraules clau per " "defecte).\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -4059,7 +4076,7 @@ " l’argument ARG de la paraula clau PARAULA.\n" # No mola pq va darrere d’un punt… ivb -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -4073,42 +4090,42 @@ "awk,\n" " YCP, Tcl, Perl, PHP i GCC-source.)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs Interpreta els trígrafs del C ANSI a l’entrada.\n" # No mola pq va darrere d’un punt… ivb -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (Només per als llenguatges C, C++ i ObjectiveC.)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Reconeix les cadenes de format de Qt.\n" # No mola pq va darrere d’un punt… ivb -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (Només per al llenguatge C++.)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde Reconeix les cadenes de format de KDE 4.\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost Reconeix les cadenes de format de Boost.\n" # Simplement mireu l’info. ivb -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -4117,14 +4134,14 @@ "de\n" " cadenes de format.\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" " -p, --properties-output\n" " Genera un fitxer amb sintaxi «.properties» de Java.\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" @@ -4132,7 +4149,7 @@ " Estableix a l’eixida la propietària o propietari del\n" " copyright.\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -4141,21 +4158,21 @@ "a\n" " uns usuaris diferents.\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" " --package-name=NOM\n" " Estableix a l’eixida el NOM del paquet.\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --package-version=VERSIÓ\n" " Estableix a l’eixida la VERSIÓ del paquet.\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -4165,40 +4182,57 @@ "cadenes\n" " «msgid».\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=CADENA]\n" " Empra la CADENA, o «», com a prefix de les entrades\n" " «msgstr».\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=CADENA]\n" " Empra la CADENA, o «», com a sufix de les entrades\n" " «msgstr».\n" # Missatge d’error. ivb -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Un argument de «--flag» no té la sintaxi «PARCLAU:NUMARG:[pass-]INDIC»: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrada estàndard" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: avís: " @@ -4208,7 +4242,7 @@ # ivb Ací el segon «%s» és el nom d’un llenguatge de programació. # El primer és «msgid» o «msgid_plural». ivb # El motiu està traduït. ivb -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4222,17 +4256,17 @@ # ivb Ací el segon «%s» és el nom d’un llenguatge de programació. # El primer és «msgid» o «msgid_plural». ivb # El motiu està traduït. ivb -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Tot i ser declarada com a tal, %s no és una cadena vàlida de format de %s. " "Motiu: %s\n" # Multilínia. ivb -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4246,7 +4280,7 @@ "arguments amb nom, i un mapa en lloc d’una tupla per a aquests.\n" # Multilínia. ivb -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4256,28 +4290,29 @@ "«gettext(\"\")» retorna l’entrada de capçalera amb metainformació, no la\n" "cadena buida.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "l’especificació d’argument per a la paraula clau «%.*s» és ambígua" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "avís: manca el context de la paraula clau «%.*s»" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" -msgstr "avís: manca el context de l’argument «plural» de la paraula clau «%.*s»" +msgstr "" +"avís: manca el context de l’argument «plural» de la paraula clau «%.*s»" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "els contexts de les formes singular i plural no corcorden" # Multilínia. ivb -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4290,7 +4325,7 @@ "d’ordres.\n" # Llenguatge de programació. ivb -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "el llenguatge «%s» no és conegut" @@ -4298,3 +4333,27 @@ #: libgettextpo/gettext-po.c:84 msgid "" msgstr "" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: no es permet l’opció «%c»\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle() ha fallat amb el codi d’error 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Encara no s’ha implementat." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "no s’ha pogut establir una E/S no blocadora amb el subprocés «%s»" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "la comunicació amb el subprocés «%s» ha fallat" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "no s’ha pogut llegir del subprocés «%s»" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "el subprocés «%s» ha terminat amb codi d’eixida %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "el camp «%s» encara té el valor inicial per defecte\n" diff -Nru gettext-0.17/gettext-tools/po/ChangeLog gettext-0.18.1.1/gettext-tools/po/ChangeLog --- gettext-0.17/gettext-tools/po/ChangeLog 2007-11-06 23:27:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ChangeLog 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,112 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-24 Bruno Haible + + * bg.po: Update from Roumen Petrov . + * id.po: Update from Arif E. Nugroho . + * ja.po: Update from Masahito Yamaga . + * ko.po: Update from Changwoo Ryu . + * pl.po: Update from Rafał Maszkowski . + * sk.po: Update from Marcel Telka . + * sv.po: Update from Jan Djärv . + * vi.po: Update from Clytie Siddall . + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * Makefile.in.in (GETTEXT_MACRO_VERSION): Bump to 0.18. + +2010-03-03 Bruno Haible + + * bg.po: Update from Roumen Petrov . + +2010-02-07 Bruno Haible + + * bg.po: New file, from Roumen Petrov . + * LINGUAS: Add bg. + +2009-12-19 Bruno Haible + + * fi.po: Update from Lauri Nurmi . + * id.po: Update from Arif E. Nugroho . + * ko.po: Update from Changwoo Ryu . + * nl.po: Update from Benno Schulenberg and + Erwin Poeze . + * nn.po: Update from Eirik U. Birkeland . + * ja.po: Update from Masahito Yamaga . + * zh_CN.po: Update from Ji ZhengYu . + +2009-08-16 Bruno Haible + + * Makevars (MSGMERGE_OPTIONS): New variable. + * Makefile.in.in ($(POFILES), .nop.po-update): Use it when invoking + msgmerge. + Suggested by Guillem Jover . + +2009-07-28 Bruno Haible + + * sk.po: Update from Marcel Telka . + +2009-07-25 Bruno Haible + + * de.po: Update from Karl Eichwalder . + +2009-06-08 Bruno Haible + + * Makefile.in.in (install-data-yes, installdirs-data-yes): Remove + unnecessary mkdir of $(datadir). + Reported by Serge Pavlovsky . + +2009-02-27 Bruno Haible + + * Makefile.in.in (Makefile): Use @SHELL@, not $(SHELL). + Reported by Scott James Remnant . + +2009-01-18 Bruno Haible + + * Makefile.in.in (.po.gmo): Pass --verbose to msgfmt when producing + statistics. + Suggested by Vincent Lefevre . + +2009-01-18 Bruno Haible + + * id.po: Update from Arif E. Nugroho . + * zh_CN.po: Update from Ji ZhengYu . + +2008-09-28 Bruno Haible + + * Rules-quot (.insert-header.po-update-en): Pass the locale name with + suffix to msginit. Needed for the "Language:" field in the header + entry. + +2008-05-19 Bruno Haible + + * Makevars (XGETTEXT_OPTIONS): Remove the options for proper_name and + proper_name_utf8, now collected automatically through + AM_XGETTEXT_OPTION. + +2008-05-08 Bruno Haible + + * sk.po: Update from Marcel Telka . + * sv.po: Update from Jan Djärv . + +2007-12-24 Bruno Haible + + * Makefile.in.in ($(POFILES), .nop.po-update): When using msgmerge + 0.18 or newer, pass a --lang option. + +2007-12-24 Bruno Haible + + * Makefile.in.in (.nop.po-update): Put all non-option arguments after + all option arguments, so that the commands work 1. when POSIXLY_CORRECT + is set, 2. on platforms whose getopt facility is POSIX compliant but + not GNU libc compatible, such as Cygwin. + 2007-11-07 Bruno Haible * gettext-0.17 released. Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/cs.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/cs.gmo differ diff -Nru gettext-0.17/gettext-tools/po/cs.po gettext-0.18.1.1/gettext-tools/po/cs.po --- gettext-0.17/gettext-tools/po/cs.po 2007-11-02 02:23:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/cs.po 2010-06-06 12:49:57.000000000 +0000 @@ -13,15 +13,16 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.38\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-08-18 15:22+0200\n" "Last-Translator: Vladimir Michl \n" "Language-Team: Czech \n" +"Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: gnulib-lib/argmatch.c:133 #, c-format @@ -39,25 +40,25 @@ msgstr "" # src/message.c:1115 -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "vstupn soubor \"%s\" nelze vytvoit" # src/message.c:1115 -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "vstupn soubor \"%s\" nelze vytvoit" # src/message.c:1115 -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "vstupn soubor \"%s\" nelze vytvoit" # src/message.c:1115 -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "vstupn soubor \"%s\" nelze vytvoit" @@ -68,48 +69,48 @@ # src/msgunfmt.c:357 src/po-lex.c:74 src/xget-lex.c:159 src/xget-lex.c:174 # src/xget-lex.c:191 src/xgettext.c:616 -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "chyba pi otevrn souboru \"%s\" pro ten" # src/msgfmt.c:321 -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "chyba pi otevrn souboru \"%s\" pro zpis" # src/msgunfmt.c:266 src/msgunfmt.c:330 src/po-lex.c:185 src/xget-lex.c:254 -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "chyba pi ten \"%s\"" # src/message.c:1182 -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "chyba pi zpisu do souboru \"%s\"" # src/msgunfmt.c:266 src/msgunfmt.c:330 src/po-lex.c:185 src/xget-lex.c:254 -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "chyba pi ten \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -120,85 +121,84 @@ msgstr "" # lib/error.c:91 -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznm systmov chyba" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" # lib/getopt.c:628 -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: pepna `%s' nen jednoznan\n" # lib/getopt.c:652 -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: pepna `--%s' mus bt zadn bez argumentu\n" # lib/getopt.c:657 -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: pepna `%c%s' mus bt zadn bez argumentu\n" # lib/getopt.c:674 lib/getopt.c:847 -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: pepna `%s' vyaduje argument\n" # lib/getopt.c:703 -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: neznm pepna `--%s'\n" # lib/getopt.c:707 -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: neznm pepna `%c%s'\n" -# lib/getopt.c:733 -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: neznm pepna -- %c\n" - # lib/getopt.c:736 -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: neznm pepna -- %c\n" # lib/getopt.c:766 lib/getopt.c:896 -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: pepna vyaduje argument -- %c\n" # lib/getopt.c:813 -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: pepna `-W %s' nen jednoznan\n" # lib/getopt.c:831 -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: pepna ` -W %s' mus bt zadn bez argumentu\n" +# lib/getopt.c:674 lib/getopt.c:847 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: pepna `%s' vyaduje argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -210,21 +210,21 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" # src/message.c:1182 -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "chyba pi zpisu do souboru \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -234,22 +234,22 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" # lib/xmalloc.c:82 #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "pam vyerpna" # src/message.c:1115 -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -268,73 +268,73 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +# src/message.c:1115 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "vstupn soubor \"%s\" nelze vytvoit" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" # src/msgfmt.c:909 #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" # src/msgfmt.c:909 -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" # src/msgfmt.c:909 -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" #: src/format-boost.c:449 @@ -360,9 +360,9 @@ msgstr "" # src/msgfmt.c:892 -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "poet formtovacch specifiktor v `msgid' a `msgstr' nen stejn" #: src/format-csharp.c:88 src/format-java.c:205 @@ -402,48 +402,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -536,21 +536,20 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" # src/msgfmt.c:909 -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" # src/msgfmt.c:909 -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -564,11 +563,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -617,13 +616,13 @@ # src/msgfmt.c:892 #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "poet formtovacch specifiktor v `msgid' a `msgstr' nen stejn" # src/msgfmt.c:909 #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" #: src/format-perl.c:433 @@ -634,58 +633,55 @@ msgstr "" # src/msgfmt.c:909 -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" # src/msgfmt.c:892 -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "poet formtovacch specifiktor v `msgid' a `msgstr' nen stejn" # src/msgfmt.c:892 -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "poet formtovacch specifiktor v `msgid' a `msgstr' nen stejn" # src/msgfmt.c:909 -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" # src/msgfmt.c:909 -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "formtovac specifiktory pro argument %lu nejsou stejn" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -722,11 +718,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -737,41 +733,41 @@ # src/gettextp.c:139 src/msgcmp.c:149 src/msgfmt.c:262 src/msgmerge.c:256 # src/msgunfmt.c:180 src/xgettext.c:399 -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Autor: %s\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" # src/gettextp.c:164 -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "pli mnoho argument" # src/gettextp.c:228 src/msgcmp.c:181 src/msgfmt.c:361 src/msgmerge.c:298 # src/msgunfmt.c:210 src/xgettext.c:532 -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Vce informac zskte pkazem `%s --help'.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -804,29 +800,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -837,11 +833,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr "" @@ -855,297 +851,315 @@ msgstr "" # src/msgcmp.c:165 src/msgmerge.c:272 -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "jsou poadovny pesn 2 vstupn soubory" # src/xgettext.c:378 src/xgettext.c:382 -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s a %s se vzjemn vyluuj" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" # src/msgfmt.c:273 src/xgettext.c:410 -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "vstupn soubor nen zadn" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" # src/msgunfmt.c:215 -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1168,31 +1182,31 @@ " -V, --version vype oznaen verze a ukon se\n" " -w, --width=SLO nastav ku vstupn strnky\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "zadno nemon vbrov kritrium (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1221,108 +1235,100 @@ "ponechny, ale pouze z prvnho .po souboru, kter je definuje. Oznaen pozic\n" "v souborech bude ponechno ze vech .po soubor.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" # src/msgcmp.c:160 src/msgmerge.c:267 -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "vstupn soubory nejsou zadny" # src/msgcmp.c:165 src/msgmerge.c:272 -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "jsou poadovny pesn 2 vstupn soubory" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" # src/msgcmp.c:186 -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1347,75 +1353,80 @@ "vaem programu. Pokud pi porovnvn nejsou zprvy pesn shodn, zkoum se,\n" "zda si nejsou podobn.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" # src/msgcmp.c:281 -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "upozornn: tato zprva nen pouita" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" # src/msgcmp.c:259 src/msgmerge.c:711 -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "tato zprva je pouita, ale nikoli definovna..." # src/msgcmp.c:261 src/msgmerge.c:713 -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...ale tato definice je podobn" # src/msgcmp.c:267 src/msgmerge.c:740 -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "tato zprva je pouita, ale nikoli definovna v %s" # src/msgcmp.c:281 -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "upozornn: tato zprva nen pouita" # src/po-lex.c:84 -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1423,12 +1434,12 @@ msgstr[1] "nalezeny %d zvan chyby" msgstr[2] "nalezeno %d zvanch chyb" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "mus bt zadny nejmn dva rzn soubory" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1456,76 +1467,76 @@ "ponechny, ale pouze z prvnho .po souboru, kter je definuje. Oznaen pozic\n" "v souborech bude ponechno ze vech .po soubor.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" # src/msgfmt.c:273 src/xgettext.c:410 -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "vstupn soubor nen zadn" # src/msgcmp.c:165 src/msgmerge.c:272 -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "jsou poadovny pesn 2 vstupn soubory" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1534,23 +1545,23 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" # src/gettextp.c:154 -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "chyb argumenty" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1560,68 +1571,68 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" # src/gettextp.c:154 -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "chyb argumenty" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr "mus bt zadny nejmn dva rzn soubory" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1629,92 +1640,74 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + # src/msgfmt.c:343 -#: src/msgfmt.c:599 +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1723,7 +1716,7 @@ msgstr[2] "%d peloench zprv" # src/msgfmt.c:345 -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1732,7 +1725,7 @@ msgstr[2] ", %d neplnch peklad" # src/msgfmt.c:347 -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1740,105 +1733,105 @@ msgstr[1] ", %d nepeloen zprvy" msgstr[2] ", %d nepeloench zprv" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1848,48 +1841,48 @@ msgstr "" # src/msgfmt.c:273 src/xgettext.c:410 -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "vstupn soubor nen zadn" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1897,33 +1890,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1931,67 +1924,67 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: upozornn: chyb hlavika PO souboru (nepln nebo neplatn)\n" "%*s upozornn: pevod znakov sady nebude fungovat" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "V hlavice chyb definice znakov sady.\n" "Konverze zprv do uivatelovy znakov sady nen mon.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: upozornn: chyb hlavika PO souboru (nepln nebo neplatn)\n" "%*s upozornn: pevod znakov sady nebude fungovat" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" # src/msgfmt.c:471 -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "jmno domny \"%s\" nen vhodn jako jmno souboru" # src/msgfmt.c:476 -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" @@ -1999,56 +1992,56 @@ "pedpona" # src/msgfmt.c:489 -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "pkaz `domain %s' ignorovn" # src/msgfmt.c:517 -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "przdn poloka `msgstr' ignorovna" # src/msgfmt.c:518 -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "nepln poloka `msgstr' ignorovna" # src/msgfmt.c:668 -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: upozornn: zdrojov soubor obsahuje nepln peklad" # src/msgunfmt.c:266 src/msgunfmt.c:330 src/po-lex.c:185 src/xget-lex.c:254 -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "chyba pi ten \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2088,30 +2081,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2119,24 +2112,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2144,54 +2137,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2203,54 +2196,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, fuzzy, c-format msgid "warning: " msgstr "%s: upozornn: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2259,7 +2252,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2268,7 +2261,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2277,12 +2270,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2290,7 +2283,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2299,7 +2292,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2307,66 +2300,66 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" # src/po-lex.c:332 -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "neplatn dc sekvence" # src/po-lex.c:332 -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "neplatn dc sekvence" # src/po-lex.c:332 -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "neplatn dc sekvence" # src/msgcmp.c:267 src/msgmerge.c:740 -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2375,7 +2368,7 @@ msgstr[2] "tato zprva je pouita, ale nikoli definovna v %s" # src/msgcmp.c:267 src/msgmerge.c:740 -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2383,100 +2376,100 @@ msgstr[1] "tato zprva je pouita, ale nikoli definovna v %s" msgstr[2] "tato zprva je pouita, ale nikoli definovna v %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" # src/msgfmt.c:870 -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "ob poloky `msgid' a `msgid_plural' nezanaj '\\n'" # src/msgfmt.c:870 -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "ob poloky `msgid' a `msgstr[%u]' nezanaj '\\n'" # src/msgfmt.c:870 -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "ob poloky `msgid' a `msgstr' nezanaj '\\n'" # src/msgfmt.c:878 -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "ob poloky `msgid' a `msgid_plural' nekon '\\n'" # src/msgfmt.c:878 -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "ob poloky `msgid' a `msgstr[%u]' nekon '\\n'" # src/msgfmt.c:878 -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "ob poloky `msgid' a `msgstr' nekon '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" # src/msgfmt.c:561 -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "poloka hlaviky `%s' v hlavice chyb" # src/msgfmt.c:564 -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "poloka hlaviky `%s' by mla zanat na zatku dku" # src/msgfmt.c:573 -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "nkter poloky hlaviky maj stle poten implicitn hodnotu" -# src/msgfmt.c:583 -#: src/msgl-check.c:730 +# src/msgfmt.c:573 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "poloka `%s' m stle poten implicitn hodnotu" +msgid "header field `%s' still has the initial default value\n" +msgstr "nkter poloky hlaviky maj stle poten implicitn hodnotu" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" # src/msgunfmt.c:357 src/po-lex.c:74 src/xget-lex.c:159 src/xget-lex.c:174 # src/xget-lex.c:191 src/xgettext.c:616 -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "chyba pi otevrn souboru \"%s\" pro ten" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2485,15 +2478,15 @@ "Znakov sada \"%s\" nen podporovna. %s spolh na iconv()\n" "a iconv() \"%s\" nepodporuje.\n" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2502,17 +2495,17 @@ "Znakov sada \"%s\" nen podporovna. %s spolh na iconv().\n" "Tato verze byla kompilovna bez iconv().\n" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" # src/msgmerge.c:321 -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2537,51 +2530,51 @@ "zklad podobnosti vzor. Tm je dosaeno lepho slit obou katalog.\n" " Nen-li vstupn soubor uren, vsledek bude vypisovn na standardn vstup.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2593,7 +2586,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2601,36 +2594,31 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" # src/msgcmp.c:267 src/msgmerge.c:740 -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "tato zprva je pouita, ale nikoli definovna v %s" # src/msgcmp.c:267 src/msgmerge.c:740 -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "tato zprva je pouita, ale nikoli definovna v %s" # src/msgmerge.c:769 -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2640,62 +2628,64 @@ "chyb %ld, zastaralch %ld.\n" # src/msgmerge.c:775 -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " dokoneno.\n" # src/xgettext.c:378 src/xgettext.c:382 -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s a %s se vzjemn vyluuj" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2704,41 +2694,41 @@ msgstr "" # src/msgfmt.c:273 src/xgettext.c:410 -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "vstupn soubor nen zadn" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2751,19 +2741,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2853,72 +2843,72 @@ msgstr "mnon slo m chybn index" # src/po-lex.c:129 src/po-lex.c:168 -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "pli mnoho chyb, konm" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "neplatn vceznakov sekvence" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "neplatn vceznakov sekvence" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "neplatn vceznakov sekvence" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" # src/po-lex.c:241 -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "klov slovo \"%s\" nen znmo" # src/po-lex.c:332 -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "neplatn dc sekvence" # src/po-lex.c:420 -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "konec souboru uprosted etzce" # src/po-lex.c:415 -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "konec dku uprosted etzce" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" # src/xgettext.c:658 src/xgettext.c:968 -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "tento soubor neme obsahovat pkazy pro domnu" # src/msgcmp.c:355 src/msgfmt.c:628 src/msgmerge.c:490 src/xgettext.c:1061 -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "dvojnsobn definice zprvy" # src/msgcmp.c:356 src/msgfmt.c:629 src/msgmerge.c:491 src/xgettext.c:1062 -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...toto je umstn prvn definice" @@ -3023,17 +3013,17 @@ msgstr "chyba pi otevrn souboru \"%s\" pro ten" # src/gettextp.c:164 -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "pli mnoho argument" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3041,11 +3031,26 @@ msgstr "" # src/message.c:1182 -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "chyba pi zpisu do souboru \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3078,42 +3083,42 @@ msgstr "" # src/message.c:1115 -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "vstupn soubor \"%s\" nelze vytvoit" # src/message.c:1122 -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standardn vstup" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3125,13 +3130,13 @@ msgstr "chyba pi otevrn souboru \"%s\" pro zpis" # src/message.c:784 -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "zprvy katalogu nesm obsahovat escape sekvenci `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3140,7 +3145,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3157,8 +3162,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3176,13 +3181,13 @@ msgid "error while writing to %s subprocess" msgstr "chyba pi zpisu do souboru \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3201,70 +3206,67 @@ msgstr "" # src/xget-lex.c:914 -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: upozornn: neukonen etzec literl" # src/xget-lex.c:914 -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: upozornn: neukonen etzec literl" # src/xget-lex.c:892 -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: upozornn: neukonen znakov konstanta" # src/xget-lex.c:914 -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: upozornn: neukonen etzec literl" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3272,33 +3274,33 @@ msgstr "" # src/xget-lex.c:892 -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: upozornn: neukonen znakov konstanta" # src/xget-lex.c:914 -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: upozornn: neukonen etzec literl" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, fuzzy, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3308,56 +3310,54 @@ "Tato verze byla kompilovna bez iconv().\n" # src/xget-lex.c:914 -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: upozornn: neukonen etzec literl" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" # lib/getopt.c:736 -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: neznm pepna -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3365,7 +3365,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3373,7 +3373,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3381,7 +3381,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3389,7 +3389,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3397,28 +3397,28 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" # src/xget-lex.c:914 -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: upozornn: neukonen etzec literl" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3426,52 +3426,52 @@ msgstr "" # src/xgettext.c:386 -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--join-existing neme bt pouit, je-li vstup zapisovn do stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext neme pracovat bez toho, ani by znal slova, kter m hledat" # src/xgettext.c:501 -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "upozornn: ppona `%2$s' souboru `%1$s' nen znma; zkusm C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" # src/msgfmt.c:273 src/xgettext.c:410 -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "vstupn soubor nen zadn" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3483,58 +3483,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3543,14 +3546,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3558,7 +3561,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3567,120 +3570,137 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" # src/xget-lex.c:150 -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standardn vstup" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, fuzzy, c-format msgid "%s%s: warning: " msgstr "%s: upozornn: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3689,34 +3709,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3725,7 +3745,7 @@ msgstr "" # src/xgettext.c:1342 -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "jazyk `%s' nen znm" @@ -3734,6 +3754,15 @@ msgid "" msgstr "" +# lib/getopt.c:733 +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: neznm pepna -- %c\n" + +# src/msgfmt.c:583 +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "poloka `%s' m stle poten implicitn hodnotu" + # src/gettextp.c:134 src/msgcmp.c:144 src/msgfmt.c:257 src/msgmerge.c:251 # src/msgunfmt.c:175 src/xgettext.c:394 #~ msgid "" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/da.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/da.gmo differ diff -Nru gettext-0.17/gettext-tools/po/da.po gettext-0.18.1.1/gettext-tools/po/da.po --- gettext-0.17/gettext-tools/po/da.po 2007-11-02 02:23:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/da.po 2010-06-06 12:49:57.000000000 +0000 @@ -9,10 +9,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.12-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2003-03-08 19:32+0200\n" "Last-Translator: Keld Simonsen \n" "Language-Team: Danish \n" +"Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -33,22 +34,22 @@ msgid "Valid arguments are:" msgstr "Gyldige argumenter er:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "kan ikke finde et midlertidigt katalog, prv at stte $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "kan ikke oprette et midlertidigt katalog ved brug af skabelon '%s'" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "kan ikke oprette uddatafil '%s'" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "kan ikke oprette et midlertidigt katalog ved brug af skabelon '%s'" @@ -57,44 +58,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "fejl ved lse-bning af '%s'" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "Kan ikke bne sikkerhedskopi-fil '%s' for skrivning" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "fejl ved lsning af '%s'" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "fejl ved skrivning til filen '%s'" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "fejl efter lsning af '%s'" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() mislykkedes" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, fuzzy, c-format msgid "C# compiler not found, try installing pnet" msgstr "Javakompilator ikke fundet, forsg at installere gcj eller st $JAVAC" @@ -105,74 +106,73 @@ msgstr "" "Virtuel Javamaskine ikke fundet, forsg at installere gij eller st $JAVA" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Ukendt systemfejl" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s-underproces mislykkedes" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: tilvalget '%s' kan betyde flere ting\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: tilvalget '--%s' tillader ikke et argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: tilvalget `%c%s' tillader ikke et argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: tilvalget `%s' krver et argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: ukendt tilvalg `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: ukendt tilvalg `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovligt tilvalg -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ugyldigt tilvalg -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: tilvalget '%c' krver et argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: tilvalget '-W %s' er flertydigt\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: tilvalget '-W %s' tillader ikke et argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: tilvalget `%s' krver et argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -184,20 +184,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "kunne ikke oprette '%s'" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "fejl ved skrivning til filen '%s'" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Javakompilator ikke fundet, forsg at installere gcj eller st $JAVAC" @@ -208,20 +208,20 @@ msgstr "" "Virtuel Javamaskine ikke fundet, forsg at installere gij eller st $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "I/O-fejl i %s-underproces" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "ikke mere ledig hukommelse" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -240,72 +240,71 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, fuzzy, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "%s-underproces fejlede med slutstatus %d" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "kan ikke oprette uddatafil '%s'" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s underproces" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s underproces fik et ddeligt signal %d" -#: src/format.c:143 +#: src/format.c:148 #, fuzzy, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "'%s' er ikke en gyldig formatstreng i %s, til forskel fra \"msgid\"" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "formateringsdirektiv for argument \"%u\", som i \"%s\", findes ikke i \"msgid" "\"" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "formateringsdirektiv for argument %u findes ikke i \"%s\"" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "formatangivelser i 'msgid' og '%s' for argument %u er ikke ens" #: src/format-boost.c:449 @@ -330,9 +329,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "antal af formatangivelser i 'msgid' og '%s' er ikke overensstemmende" #: src/format-csharp.c:88 src/format-java.c:205 @@ -372,48 +371,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -503,22 +502,21 @@ msgstr "" #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "formateringsdirektiv for argument {%u}, som i \"%s\", findes ikke i \"msgid\"" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "formateringsdirektiv for argument {%u} findes ikke i \"%s\"" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "formatangivelser i 'msgid' og '%s' for argument {%u} er ikke det samme" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -532,11 +530,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -583,13 +581,13 @@ msgstr "" #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "formatangivelser i 'msgid' og '%s' er ikke de samme" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "formateringsdirektiv i \"%s\" er ikke en delmngde af dem i \"msgid\"" #: src/format-perl.c:433 @@ -599,61 +597,58 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "formateringsdirektiv for argument \"%s\" findes ikke i \"%s\"" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "formateringsdirektiv i \"msgid\" tager en afbildning, dem i \"%s\" tager en " "tuppel" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "formateringsdirektiv i \"msgid\" tager en tuppel, de i \"%s\" tager en " "afbildning" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "formateringsdirektiv for argument \"%s\", som i \"%s\", findes ikke i \"msgid" "\"" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "formateringsdirektiv i \"msgid\" og \"%s\" for argument \"%s\" er ikke ens" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -690,11 +685,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -703,38 +698,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Skrevet af %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "For mange argumenter" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Prv '%s --help' for yderligere oplysninger.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Brug: %s [TILVALG]\n" @@ -772,29 +767,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, fuzzy, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -806,11 +801,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Rapportr fejl p engelsk til .\n" @@ -819,30 +814,30 @@ msgid "could not get host name" msgstr "kunne ikke hente vrtsnavn" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "Hjst n inddatalinje tilladt" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s og %s udelukker hinanden" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Brug: %s [TILVALG] [INDDATAFIL]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -851,10 +846,10 @@ "Filtrerer beskederne i et beskedskatalog efter deres attributter og\n" "manipulerer attributterne.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -863,30 +858,30 @@ "tilsvarende\n" "korte tilvalg.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "ingen inddatafil angivet" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, fuzzy, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" @@ -894,24 +889,24 @@ " FIL ... .mo-infiler\n" "Hvis ingen indfil er givet eller hvis den er - lses standard-ind.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, fuzzy, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -922,203 +917,221 @@ "Resultaterne udskrives til standard-uddata hvis ingen uddatafil er angivet,\n" "eller hvis den er angivet til - .\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1131,31 +1144,31 @@ " --no-wrap ombryd ikke lange beskeder, lngere end\n" " uddatasidens bredde, til flere linjer\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "Umuligt udvlgelseskriterium angivet (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Brug: %s [TILVALG] [INDDATAFIL]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1177,105 +1190,97 @@ "men hvis --use-first er angivet, vil de blive taget fra den frste PO-fil,\n" "der definerer dem. Filpositioner fra alle PO-filer sammenbringes.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "ingen filer angivet som inddata" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "der krves netop to inddatafiler" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Brug: %s [TILVALG] gammel.po ny.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1294,22 +1299,22 @@ "mellem msgid-tekststrengene, benyttes en uprcis sammenligningsmetode til at\n" "give bedre fejlretningsinformation.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, fuzzy, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1318,7 +1323,12 @@ "Bearbejdningsvarianter:\n" " -m, --multi-domain brug ref.pot til hvert domne i def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" @@ -1328,54 +1338,54 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "advarsel: denne tekst bliver ikke brugt" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "denne tekst bruges, men er ikke erklret..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...men denne tekst ligner" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "denne tekst er brugt, men ikke erklret i %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "advarsel: denne tekst bliver ikke brugt" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "fandt %d fatal fejl" msgstr[1] "fandt %d fatale fejl" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "Mindst to filer skal angives" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1395,30 +1405,30 @@ "men kun fra den frste PO-fil, der definerer dem. Filpositioner fra alle PO-filer\n" "vil blive sammenbragt.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Konverterer et beskedskatalog til en anden tegnkodning.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, fuzzy, c-format msgid "Conversion target:\n" msgstr "konverteringsfejl" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, fuzzy, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" @@ -1426,46 +1436,46 @@ " -t, --to-code=NAVN Kodning for uddata\n" "Standardvrdi er nuvrende locales kodning.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "ingen inddatafil angivet" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "der krves prcist n inddatafil" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Brug: %s [FLAG] INDFIL\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, fuzzy, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1478,22 +1488,22 @@ "Uoversatte poster gives en oversttelse som er identisk med msgid og\n" "markeres som uafklaret.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "kommandonavn mangler" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Brug: %s [TILVALG] KOMMANDO [KOMMANDOTILVALG]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1508,7 +1518,7 @@ "bliver uddata fra msgexec. Slutstatusvrdien for msgexec er den strste\n" "slutstatusvrdi fra alle kommandokrslerne.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1518,42 +1528,42 @@ "af et nultegn. Uddata for \"msgexec 0\" er brugbart som inddata for\n" "\"xargs -O\"\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "skrivning til standard ud mislykkedes" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "skrivning til %s-underproces mislykkedes" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "filternavn mangler" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "mindst et sed-skript skal angives" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Brug: %s [FLAG] FILTER [FILTERFLAG]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Udfrer et filter p alle oversttelser i et beskedskatalog.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1562,18 +1572,18 @@ "FILTER kan vre hvilket som helst program som lser en oversttelse fra\n" "standard ind og skriver den ndrede oversttelse til standard ud.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1581,123 +1591,105 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "kan ikke opstte ikke-blokerende I/O til %s-underproces" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "kommunikation med %s-underproces mislykkedes" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "lsning fra %s-underproces mislykkedes" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s-underproces afsluttede med slutstatus %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "argumentet til %s br vre et enkelt skilletegn" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s krver at \"-d katalog\" angives" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s krver en \"-l lokale\"-angivelse" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s er kun gyldig med %s eller %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, fuzzy, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s er kun gyldig med %s eller %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d oversat tekst" msgstr[1] "%d oversatte tekster" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d uafklaret oversttelse" msgstr[1] ", %d uafklarede oversttelser" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d uoversat tekst" msgstr[1] ", %d uoversatte tekster" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Brug: %s [FLAG] filnavn.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Generr binrt tekstkatalog fra oversttelsebeskrivelse i kildetekst.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1707,17 +1699,17 @@ "korte tilvalg.\n" "Tilvarende glder for valgfri argumenter.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, fuzzy, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1727,14 +1719,14 @@ " -j, --java Javatilstand: generr en Java ResourceBundle-" "klasse\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, fuzzy, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" @@ -1744,7 +1736,7 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1756,13 +1748,13 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, fuzzy, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" @@ -1772,41 +1764,41 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, fuzzy, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1822,48 +1814,48 @@ "adskilt med en understreg. Flaget -d er obligatorisk. Klassen skrives\n" "i det opgivne katalog.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "ingen inddatafil angivet" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1871,33 +1863,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1905,12 +1897,12 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, fuzzy, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -1919,7 +1911,7 @@ " -a, --alignment=TAL lg strenge p lige TAL byte (normalt: %d)\n" " --no-hash binrfil indholder ikke hashtabellen\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, fuzzy, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -1928,79 +1920,79 @@ " -a, --alignment=TAL lg strenge p lige TAL byte (normalt: %d)\n" " --no-hash binrfil indholder ikke hashtabellen\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "advarsel: PO-filhoved mangler eller ugyldigt\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "advarsel: tegnstskonvertering vil ikke virke\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "advarsel: PO-filhoved er uafklaret\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "advarsel: ldre versioner af msgfmt vil give en fejl for dette\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domnet '%s' kan ikke bruges som filnavn" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domnet '%s' er ikke brugbart som filnavn. Vil bruge prfiks istedet" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "`domain %s'-kommando ignoreres" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "tom `msgstr'-kommando ignoreret" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "\"fuzzy\" `msgstr'-tekst ignoreret" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "" "%s: advarsel: kildetekstfilen indeholder uafklarede oversttelser (fuzzy)" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "fejl ved lsning af '%s'" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2008,7 +2000,7 @@ msgstr "" "flaget \"%c\" kan ikke bruges frend \"K\" eller \"T\" er blevet angivet" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2017,7 +2009,7 @@ "Udtrkker alle beskeder i et beskedskatalog som matcher et vist\n" "mnster eller hrer til en given kildetekstfil.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, fuzzy, c-format, no-wrap msgid "" "Message selection:\n" @@ -2084,23 +2076,23 @@ " -f, --file=FIL hent MNSTER fra FIL\n" " -i, --ignore-case versaluflsomt\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2110,7 +2102,7 @@ "LANG som beskrevet i filen ABOUT-NLS. Dette er ndvendigt for at\n" "du kan teste dine oversttelser.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2121,12 +2113,12 @@ "Angiv locale med flaget --locale eller\n" ".po-udfilen med flaget --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Oprettede %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2135,12 +2127,12 @@ "Opretter en ny PO-fil og initierer metainformation med vrdier fra\n" "brugerens miljvariabler.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, fuzzy, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2152,12 +2144,12 @@ "Hvis ingen indfil angives, sges efter POT-filen i aktuelt katalog.\n" "Hvis den er - lses standard ind.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, fuzzy, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2169,18 +2161,18 @@ "brugerens\n" "indstilling af locale. Hvis den er - skrives resultaterne p standard ud.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2188,12 +2180,12 @@ "Fandt mere end en .pot-fil.\n" "Angiv .pot-indfil med flaget --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "fejl ved lsning af aktuelt katalog" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2201,14 +2193,14 @@ "Fandt ingen .pot-fil i aktuelt katalog.\n" "Angiv .pot-indfil med flaget --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s-underproces fejlede med slutstatus %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2223,28 +2215,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Danske oversttelser for pakke %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "nuvrende tegnst \"%s\" er ikke et portabelt kodningsnavn" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "to forskellige tegnst \"%s\" og \"%s\" i indfilen" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "indfilen \"%s\" mangler en indgang i hovedet med angivelse af tegnst" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2253,19 +2245,19 @@ "domne \"%s\" i indfil \"%s\" mangler en indgang i hovedet med angivelse af " "tegnst" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "mltegnst \"%s\" er ikke et portabelt kodningsnavn" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "advarsel: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2274,7 +2266,7 @@ "Indfiler har beskeder med flere kodninger, deriblandt UTF-8.\n" "Konverterer resultatet til UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2286,7 +2278,7 @@ "Konverterer resultatet til UTF-8.\n" "Brug flaget --to-code for at vlge en anden kodning.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2295,7 +2287,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2308,12 +2300,12 @@ "Resultatet for \"%s\" kan blive forkert.\n" "Mulige mder at omg problemet er:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- St LC_ALL til et locale med kodning %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2324,7 +2316,7 @@ " udfr derefter \"%s\",\n" " konvertr s tilbage til %s med \"msgconv\".\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2337,7 +2329,7 @@ " udfr derefter \"%s\"\n" " konvertr s tilbage til %s med \"msgconv\".\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2348,77 +2340,77 @@ "Resultatet for \"%s\" kan blive forkert.\n" "En mulig mde at omg problemet er at stte LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "flertalsudtryk kan give negative vrdier" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu men flertalsudtryk kan give vrdier op til %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "flertalsudtryk kan give division med nul" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "flertalsudtryk kan give heltalsoverlb" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "flertalsudtryk kan give aritmetiske fejl, mske division med nul" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "Prv at bruge det flgende, gldende for %s:\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "tekstkatalog har oversttelser med flertalsform..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...men headerindgange mangler attribut af type \"plurals=UDTRYK\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...men headerindgange mangler attribut af type \"plurals=HELTAL\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "ugyldig nplurals-vrdi" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "ugyldigt flertalsudtryk" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "...men nogen tekster har kun n flertalsform" msgstr[1] "...men nogen tekster har kun %lu flertalsformer" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "...men nogen tekster har n flertalsform" msgstr[1] "...men nogen tekster har %lu flertalsformer" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2426,81 +2418,81 @@ "beskedkatalog har oversttelser med flertalsformer, men mangler en " "headerindgang med \"Plural-Forms: nplurals=HELTAL; plural=UDTRYK;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "'msgid' og 'msgid_plural'-teksterne begynder ikke begge med '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' og `msgstr[%u]'-teksterne begynder ikke begge med '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' og `msgstr' teksterne begynder ikke begge med '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' og `msgid_plural'-teksterne slutter ikke begge med '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' og `msgstr[%u]'-teksterne slutter ikke begge med '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' og `msgstr' teksterne slutter ikke begge med '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "flertalsbehandling er en GNU gettext-udvidelse" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr mangler mrket \"%c\" for tastaturgenvej" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr har for mange mrker \"%c\" for tastaturgenveje" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "feltet `%s' mangler i hovedet\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "feltet '%s' i hovedet br starte ved linjens begyndelse\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "nogle felter i hovedet har stadig den oprindelige standardvrdi\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "feltet `%s' har stadig den oprindelige standardvrdi\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "nogle felter i hovedet har stadig den oprindelige standardvrdi\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "fejl ved lse-bning af '%s'" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "indfilen mangler en indgang i hovedet med angivelse af tegnst" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2509,15 +2501,15 @@ "Kan ikke konvertere fra '%s' til '%s'. %s bygger p iconv(), og iconv() " "understtter ikke denne konvertering." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2526,16 +2518,16 @@ "Kan ikke konvertere fra '%s' til '%s'. %s bygger p iconv(). Denne version " "er bygget uden iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s er kun gyldig med %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "sikkerhedskopitype" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2559,24 +2551,24 @@ "overensstemmelse, vil 'ls sgning' (fuzzy matching) blive brugt til at give\n" "bedre resultater.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, fuzzy, c-format msgid "" " -U, --update update def.po,\n" @@ -2587,27 +2579,27 @@ " gr ingenting hvis def.po allerede er " "opdateret\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, fuzzy, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2633,7 +2625,7 @@ "eller\n" "miljvariablen SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2641,12 +2633,7 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2657,50 +2644,52 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "denne tekst burde definere flertalsformer" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "denne tekst burde ikke definere flertalsformer" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sLste %ld gamle + %ld reference, flettede %ld, uafklarede %ld, mangler %" -"ld, forldede %ld.\n" +"%sLste %ld gamle + %ld reference, flettede %ld, uafklarede %ld, mangler " +"%ld, forldede %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " afsluttet.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s og udtrykkelige filnavne udelukker hinanden" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Brug: %s [TILVALG] [FIL]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Konvertr et binr beskedskatalog til en .po-fil af Uniforum-type\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, fuzzy, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2710,7 +2699,7 @@ " -j, --java Javatilstand: generr en Java ResourceBundle-" "klasse\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, fuzzy, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" @@ -2720,7 +2709,7 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2732,7 +2721,7 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, fuzzy, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2743,17 +2732,17 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, fuzzy, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2766,41 +2755,41 @@ "Klassenavnet bestemmes ved at tilfje localenavnet til ressourcenavnet\n" "adskilt med en understreg. Klassen findes med hjlp af CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "ingen inddatafil angivet" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2822,12 +2811,12 @@ "oversttelse. Filpositioner samles sammen.\n" "Nr flaget --unique angives fjernes alle gentagede.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, fuzzy, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2838,7 +2827,7 @@ " -u, --unique skriv kun unikke beskeder, gentagede " "fjernes\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2924,65 +2913,65 @@ msgid "plural form has wrong index" msgstr "flertalsform har forkert indeks" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "afbryder krslen p grund af for mange fejl" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "Ugyldig multibytesekvens" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "Ugyldig multibytesekvens ved slutning p fil" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "Ugyldig multibytesekvens ved slutning p linje" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv-fejl" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "ukendt ngleord '%s'" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "ugyldig kontrolsekvens" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "tekststreng ikke afsluttet da filens slutning blev net" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "tekststreng var ikke afsluttet ved linjeskift" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "denne fil m ikke indeholde 'domain'-kommandoer" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "tekst erklret mere end en gang" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "... her er den frste erklring" @@ -3072,17 +3061,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "fejl ved lse-bning af '%s'" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "forventede to argumenter" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Brug: %s [TILVALG] URL FIL\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3091,11 +3080,26 @@ "Henter og udskriver indholdet af en URL. Hvis URL'en ikke kan hentes bruges\n" "den lokale fil FIL i stedet.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "fejl ved skrivning af standard-uddata" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3133,47 +3137,47 @@ "beskedkatalog har oversttelser med flertalsformer,\n" "men Tcl-formatet for beskedskataloger understtter ikke flertalsformer\n" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "kan ikke oprette uddatafil '%s'" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard-uddata" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr "kunne ikke oprette '%s'" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, fuzzy, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" "oversttelse af Java-klasse mislykkedes, prv gerne --verbose eller st " "$JAVAC" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "" "oversttelse af Java-klasse mislykkedes, prv gerne --verbose eller st " "$JAVAC" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "ikke et gyldigt Java-klassenavn: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "oversttelse af Java-klasse mislykkedes, prv gerne --verbose eller st " "$JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3185,13 +3189,13 @@ msgid "error while opening \"%s\" for writing" msgstr "fejl opstet ved skrive-bning af '%s'" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "oversttelige tekster m ikke indeholde `\\%c'-escapesekvensen" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3204,7 +3208,7 @@ "som er et andet end dit. Forsg at bruge en ren ASCII-msgid i stedet.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3228,8 +3232,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3246,7 +3250,7 @@ msgid "error while writing to %s subprocess" msgstr "fejl ved skrivning til filen '%s'" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" @@ -3255,7 +3259,7 @@ "beskedkatalog har oversttelser med flertalsformer,\n" "men Tcl-formatet for beskedskataloger understtter ikke flertalsformer\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 #, fuzzy msgid "" "message catalog has plural form translations\n" @@ -3281,36 +3285,34 @@ "beskedkatalog har oversttelser med flertalsformer,\n" "men Tcl-formatet for beskedskataloger understtter ikke flertalsformer\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: advarsel: streng ikke afsluttet" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: advarsel: regulrt udtryk ikke afsluttet" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: advarsel: tegnkonstant ikke afsluttet korrekt" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: advarsel: strengkonstant ikke afsluttet" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, fuzzy, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3319,7 +3321,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3328,7 +3330,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3337,7 +3339,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3346,12 +3348,12 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, fuzzy, c-format msgid "%s:%d: iconv failure" msgstr "iconv-fejl" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3360,32 +3362,32 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: advarsel: ugyldigt ISO 10646-tegn" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: advarsel: streng ikke afsluttet" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, fuzzy, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%d:%d: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3394,57 +3396,56 @@ "Sproget 'glade' er ikke understttet. %s bygger p expat,\n" "Denne version er bygget uden expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: advarsel: streng ikke afsluttet" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: ugyldig streng-definition" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3454,7 +3455,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3464,7 +3465,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3474,7 +3475,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3484,7 +3485,7 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3494,79 +3495,79 @@ "Ikke-ASCII streng ved %s%s.\n" "Angiv venligst kodning af kildetekst via --from-code." -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: ugyldig streng-definition" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: mangler tal efter #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: ugyldigt streng-udtryk" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing kan ikke benyttes nr uddata sendes til standard-uddata" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext kan ikke arbejde uden nogen ngleord at kigge efter" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "advarsel: ukendt type for fil `%s' med endelse `%s'; C benyttes i stedet" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Udtrk oversttelige strenge fra givne indfiler.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "ingen inddatafil angivet" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, fuzzy, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3585,19 +3586,19 @@ " -C, --c++ kort skrivemde for --language=C++\n" "Som standard antages sproget ud fra endelsen p inddatafilen.\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, fuzzy, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3608,43 +3609,46 @@ " (undtagen for Python, Tcl, Glade)\n" "Som standard antages inddatafilerne at vre i ASCII.\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -j, --join-existing kombiner tekster med eksisterende fil\n" " -x, --exclude-file=FIL.po tekster i FIL.po benyttes ikke\n" " -c, --add-comments[=MRKE] placr kommentarafsnit for MRKE (eller \n" " de foregende ngleordslinjer) i uddata\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3660,14 +3664,14 @@ " -C, --c++ kort skrivemde for --language=C++\n" "Som standard antages sproget ud fra endelsen p inddatafilen.\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3675,7 +3679,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3691,17 +3695,17 @@ " -C, --c++ kort skrivemde for --language=C++\n" "Som standard antages sproget ud fra endelsen p inddatafilen.\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, fuzzy, c-format msgid " --qt recognize Qt format strings\n" msgstr "" @@ -3711,12 +3715,12 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" @@ -3726,7 +3730,7 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr "" @@ -3736,89 +3740,106 @@ " --tcl Tcl-tilstand: inddata er en tcl/msgcat .msg-" "fil\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard-inddata" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: advarsel: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, fuzzy, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "'%s' er ikke en gyldig formatstreng i %s, til forskel fra \"msgid\"" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3827,7 +3848,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3837,27 +3858,27 @@ "gettext(\"\") returnerer hovedet med metainformation,\n" "ikke den tomme streng.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "flertydigt argument '%s' for '%s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, fuzzy, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "flertydigt argument '%s' for '%s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, fuzzy, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "flertydigt argument '%s' for '%s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3869,7 +3890,7 @@ "variablen MSGID_BUGS_ADDRESS dr; ellers angiv\n" "tilvalget --msgid-bugs-address p kommandolinjen.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "ukendt sprog '%s'" @@ -3878,6 +3899,28 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ulovligt tilvalg -- %c\n" + +#, fuzzy +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "%s-underproces fejlede med slutstatus %d" + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "kan ikke opstte ikke-blokerende I/O til %s-underproces" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "kommunikation med %s-underproces mislykkedes" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "lsning fra %s-underproces mislykkedes" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s-underproces afsluttede med slutstatus %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "feltet `%s' har stadig den oprindelige standardvrdi\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/de.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/de.gmo differ diff -Nru gettext-0.17/gettext-tools/po/de.po gettext-0.18.1.1/gettext-tools/po/de.po --- gettext-0.17/gettext-tools/po/de.po 2007-11-02 02:23:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/de.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,6 +1,7 @@ # German translations for GNU gettext-tools package. -# Copyright © 1995, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# Karl Eichwalder , 2001, 2002, 2003, 2004, 2005, 2006. +# Copyright © 1995, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2009 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Karl Eichwalder , 2001, 2002, 2003, 2004, 2005, 2006, 2009. # Ulrich Drepper , 1995-1997. # # 2003-05-06 22:23:59 CEST: start updating, many a lot msgs still to be @@ -79,12 +80,13 @@ # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-tools 0.16\n" +"Project-Id-Version: GNU gettext-tools 0.17\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-06-28 16:37+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-07-24 09:27+0200\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -105,24 +107,24 @@ msgid "Valid arguments are:" msgstr "Gültige Argumente sind:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "temporäres Verzeichnis ist nicht zu finden; bitte setzen Sie $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" "es ist nicht möglich, ein temporäres Verzeichnis mittels\n" "der Vorlage »%s« anzulegen" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "Temporäre Datei %s kann nicht entfernt werden" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "Temporäres Verz/Verzeichnis %s kann nicht entfernt werden" @@ -131,44 +133,44 @@ msgid "write error" msgstr "Fehler beim Schreiben" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "Öffnen der Datei »%s« zum Lesen fehlgeschlagen" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "Öffnen der Sicherungsdatei »%s« zum Schreiben fehlgeschlagen" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "Fehler beim Lesen von »%s«" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "Fehler beim Schreiben von »%s«" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "Fehler nach dem Lesen von »%s«" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() fehlgeschlagen" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C#-Compiler nicht gefunden; bitte »pnet« installieren" @@ -178,74 +180,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Virtuelle C#-Maschine nicht gefunden; bitte »pnet« installieren" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unbekannter Systemfehler" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "Subprozeß %s fehlgeschlagen" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: Option »%s« ist mehrdeutig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: Option »--%s« erwartet kein Argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: Option »%c%s« erwartet kein Argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: Option »%s« erwartet ein Argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unbekannte Option »--%s«\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unbekannte Option »%c%s«\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: unzulässige Option -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ungültige Option -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: Option erwartet ein Argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: Option »-W %s« ist mehrdeutig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: Option »-W %s« erwartet kein Argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: Option »%s« erwartet ein Argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -257,20 +258,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "ungültiges Argument target_version für compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "Fehler beim Anlegen von »%s«" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "Fehler beim Schreiben von Datei »%s«" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -283,20 +284,20 @@ "Virtuelle Java-Maschine nicht gefunden; bitte »gcj« installieren oder\n" "$JAVA setzen" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "Subprozeß %s mit Ein-/Ausgabefehler" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "virtueller Speicher aufgebraucht" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -315,72 +316,72 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "»" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "«" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle ist mit dem Exitcode 0x%08x fehlgeschlagen" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle fehlgeschlagen" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "Ausgabedatei »%s« kann nicht erstellt werden" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "Subprozeß %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "Subprozeß %s hat das fatale Signal %d erhalten" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"»%s« ist ein ungültiges Formatelement %s, im Vergleich zu »msgid«. Der Grund: %" -"s" +"»%s« ist ein ungültiges Formatelement %s, im Vergleich zu »msgid«. Der " +"Grund: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "eine Formatspezifikation für Argument %u, wie in »%s«, fehlt in »msgid«" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "" +"eine Formatspezifikation für Argument %u, wie in »%s«, fehlt in »msgid«" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "eine Formatspezifikation für Argument »%u« fehlt in »%s«" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "Formatspezifikation in »msgid« und »%s« für Argument %u sind nicht identisch" @@ -411,9 +412,9 @@ "Die Zeichenkette bezieht sich auf das %u. Argument, ignoriert aber das %u. " "Argument." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" "Anzahl der Formatspezifikationen in »msgid« und »%s« stimmt nicht überein" @@ -453,8 +454,8 @@ "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" -"Die Zeichenkette beginnt mitten in einer Anweisung: »}« ohne übereinstimmende " -"»{« gefunden." +"Die Zeichenkette beginnt mitten in einer Anweisung: »}« ohne " +"übereinstimmende »{« gefunden." #: src/format-csharp.c:162 #, c-format @@ -462,49 +463,53 @@ msgstr "" "Die Zeichenkette beinhaltet eine einzelne '}' nach der %u. Formatanweisung." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "In der %u. Formatanweisung ist die Kombination der Flags ungültig." -#: src/format-gcc-internal.c:290 -#, fuzzy, c-format +#: src/format-gcc-internal.c:292 +#, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." -msgstr "In der %u. Formatanweisung sind Flags vor »%c« nicht erlaubt." +msgstr "" +"In der %u. Formatanweisung ist eine Genauigkeit vor »%c« nicht erlaubt." -#: src/format-gcc-internal.c:332 -#, fuzzy, c-format +#: src/format-gcc-internal.c:334 +#, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -"In der %u. Formatanweisung ist das 0. Argument keine positive Ganzzahl." +"In der %u. Formatanweisung muss die Argumentzahl für die Genauigkeit gleich " +"sein mit %u." -#: src/format-gcc-internal.c:396 -#, fuzzy, c-format +#: src/format-gcc-internal.c:398 +#, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." -msgstr "In der %u. Formatanweisung sind Flags vor »%c« nicht erlaubt." +msgstr "" +"In der %u. Formatanweisung ist eine Genauigkeitsspezifikation vor »%c« nicht " +"erlaubt." -#: src/format-gcc-internal.c:404 -#, fuzzy, c-format +#: src/format-gcc-internal.c:406 +#, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "In der %u. Formatanweisung ist das %d. Argument negativ." +msgstr "In der %u. Formatanweisung ist die Genauigkeitsspezifikation ungültig." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "In der %u. Formatanweisung sind Flags vor »%c« nicht erlaubt." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "»msgid« verwendet %%m, aber »%s« nicht" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "»msgid« verwendet nicht %%m, aber »%s« verwendet %%m" #: src/format-invalid.h:22 @@ -615,22 +620,21 @@ "'<', '#' or '%s' folgt." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "eine Formatspezifikation für Argument {%u}, wie in »%s«, fehlt in »msgid«" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "eine Formatspezifikation für Argument {%u} fehlt in »%s«" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "Formatspezifikationen in »msgid« und »%s« für Argument {%u} sind nicht " "identisch" @@ -648,11 +652,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "In der %u. Formatanweisung sind zo viele Parameter angegeben; es wird " "höchstens %u Parameter erwartet." @@ -708,14 +712,15 @@ "Die Zeichenkette bezieht sich in nicht kompatibler Weise auf ein Argument." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "Formatspezifikationen in »msgid« und »%s« sind nicht gleichbedeutend" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "Formatspezifikationen in »%s« sind keine Untermenge von deren in »msgid«" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "" +"Formatspezifikationen in »%s« sind keine Untermenge von deren in »msgid«" #: src/format-perl.c:433 #, c-format @@ -726,12 +731,12 @@ "In der %u. Formatanweisung ist die Größenspezifikation mit der " "Konvertierungsspezifikation »%c« nicht kompatibel." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "eine Formatspezifikation für Argument »%s« fehlt in »%s«" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -739,7 +744,7 @@ "Die Zeichenkette bezieht sich auf Argumente mit bezeichneten Argumenten und " "mit unbezeichneten Argumentspezifikationen." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" @@ -747,45 +752,45 @@ "Argument »%s«." # CHECKIT -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"Formatspezifikationen in »msgid« erwarten ein Mapping, die in »%s« jedoch ein " -"Tuple" +"Formatspezifikationen in »msgid« erwarten ein Mapping, die in »%s« jedoch " +"ein Tuple" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "Formatspezifikationen in »msgid« erwarten ein Tuple, die in »%s« jedoch ein\n" "Mapping" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr "eine Formatspezifikation für Argument »%s«, wie in »%s«, fehlt in »msgid«" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "" +"eine Formatspezifikation für Argument »%s«, wie in »%s«, fehlt in »msgid«" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "Formatspezifikationen in »msgid« und »%s« für Argument »%s« stimmen nicht " "überein" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'msgid' ist ein einfaches Formatelement, aber '%s' ist es nicht: es weist " +"ein 'L'-Flag oder eine Double-Zahl als Argument auf" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -833,11 +838,11 @@ "Das Zeichen, das die %u. Formatanweisung terminiert, ist keine Ziffer " "zwischen 1 und 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -845,39 +850,45 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"Copyright © %s Free Software Foundation, Inc.\n" +"Lizenz GPLv3: GNU GPL Version 3 oder später \n" +"\n" +"Dies ist freie Software; es steht Ihnen frei, sie zu verändern und\n" +"weiterzugeben.\n" +"Es gibt KEINE GARANTIE, soweit als vom Gesetz erlaubt.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Geschrieben von %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "zu viele Argumente" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "»%s --help« gibt weitere Informationen.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Aufruf: %s [OPTION]\n" @@ -912,29 +923,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address Adressen für den Rechnernamen\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informative Ausgabe:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help diese Hilfe anzeigen und beenden\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version Versionsnummer anzeigen und beenden\n" @@ -943,46 +954,47 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" "Fehler bitte auf Englisch an melden.\n" "\n" -"Für die deutsche Übersetzung ist die Mailingliste zuständig.\n" +"Für die deutsche Übersetzung sind die Übersetzer der Mailingliste\n" +" zuständig.\n" #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" msgstr "es ist nicht möglich, den Rechnernamen (Hostname) herauszufinden" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "höchstens eine Eingabedatei erlaubt" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s und %s schließen sich gegenseitig aus" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Aufruf: %s [OPTION] [EINGABEDATEI]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -991,10 +1003,10 @@ "Meldungen eines Katalogs mit Übersetzungen anhand von Attributen filtern und\n" "Attribute der Meldungen bearbeiten.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1002,56 +1014,56 @@ "Notwendige Argumente für Optionen in Langform sind auch für die Kurzform\n" "notwendig.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Angaben zu Eingabedateien:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " EINGABEDATEI PO-Eingabedatei\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory=VERZ VERZ der Liste der Eingabedateien hinzufügen\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Wenn keine Eingabedatei oder »-« angegeben ist, wird die Standardeingabe\n" "gelesen.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Angaben zu Ausgabedateien:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" " -o, --output-file=DATEI Ausgabe in die angegebene DATEI schreiben\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -1061,73 +1073,73 @@ "oder\n" "»-« angegeben ist.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Auswahl der Meldungen:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated übersetzte übernehmen, unübersetzte verwerfen\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" " --untranslated unübersetzte übernehmen, übersetzte verwerfen\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy mit 'fuzzy' markierte verwerfen\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy mit 'fuzzy' markierte übernehmen\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete obsolete Meldungen (#~) verwerfen\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete obsolete Meldungen (#~) übernehmen\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Attribute verändern:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy alle Meldungen auf 'fuzzy' setzen\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy 'fuzzy'-Markierung von allen Meldungen " "entfernen\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete alle Meldungen obsolet machen\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete alle Meldungen nicht-obsolet machen\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1136,7 +1148,7 @@ " --clear-previous »previous msgid« von allen Meldungen " "entfernen\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1145,7 +1157,7 @@ "po\n" " gelistet sind\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1154,13 +1166,13 @@ "po\n" " nicht gelistet sind\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy Synonym für »--only-fuzzy --clear-fuzzy«\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" @@ -1168,16 +1180,16 @@ " --obsolete Synonym für »--only-obsolete --clear-" "obsolete«\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Syntax der Eingabedatei:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1185,8 +1197,8 @@ " -P, --properties-input Eingabedatei folgt der .properties-Syntax von\n" " Java\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1195,17 +1207,42 @@ " --stringtable-input Eingabedatei folgt der .strings-Syntax von\n" " Nextstep/Gnustep\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Details zur Ausgabe:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color immer Farben und andere Text-Attribute " +"verwenden\n" +" --color=BEI Farben und andere Text-Attribute verwenden, " +"wenn BEI.\n" +" Bei kann 'always', 'never', 'auto' oder 'html' " +"sein.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=STYLEDATEI CSS-Datei mit Style-Regel für --color angeben\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1213,9 +1250,9 @@ " -e, --no-escape keine C-Escape-Sequenzen in Ausgabe verwenden\n" " (Vorgabe)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1223,29 +1260,29 @@ " -E, --escape C-Escape-Sequenzen und keine erweiterten\n" " Zeichen in Ausgabe verwenden\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" " --force-po PO-Datei erstellen, auch wenn sie leer ist\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent Ausgabe eingerückt darstellen\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location Zeilen mit »#: Datei:Zeilennr.« nicht schreiben\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1253,26 +1290,26 @@ " -n, --add-location Zeilen mit »#: Datei:Zeilennr.« erhalten " "(Vorgabe)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict .po-Datei streng nach Uniforum-Format erstellen\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" " -p, --properties-output Datei in der .properties-Syntax von Java\n" " ausgeben\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" @@ -1280,17 +1317,17 @@ " --stringtable-output eine ».strings«-Datei von Nextstep/Gnustep\n" " erstellen\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" " -w, --width=ANZAHL Breite der Ausgabe auf ANZAHL Spalten festlegen\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1300,32 +1337,32 @@ " Breite der Ausgabe sind, nicht auf mehrere\n" " Zeilen umbrechen\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output sortierte Ausgabe erstellen\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file Ausgabe gemäß Vorkommen in Dateien erstellen\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "Auswahlkriterium nicht möglich (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Aufruf: %s [OPTION] [EINGABEDATEI]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1350,24 +1387,24 @@ "Stellenangaben der Meldungen in den Quellen werden für alle PO-Dateien\n" "kumuliert.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " EINGABEDATEI... Eingabedateien\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=DATEI Namen der Eingabedateien aus DATEI holen\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Wenn die Eingabedatei »-« ist, wird die Standardeingabe gelesen.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1376,7 +1413,7 @@ " -<, --less-than=ANZAHL Meldungen mit weniger als ANZAHL Definitionen\n" " anzeigen (Vorgabe: unendlich)\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1385,7 +1422,7 @@ " ->, --more-than=ANZAHL Meldungen mit mehr als ANZAHL Definitionen\n" " anzeigen (Vorgabe: 0)\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1394,8 +1431,8 @@ " -u, --unique Abkürzung für »--less-than=2«; Meldungen\n" " anfordern, die nur einmal vorkommen\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1404,8 +1441,8 @@ "von\n" " Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1415,12 +1452,12 @@ "Syntax\n" " für .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NAME Kodierung für die Ausgabe\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1430,41 +1467,33 @@ " Meldung verwenden, nicht mehrere\n" " Übersetzungen zusammenziehen\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "keine Eingabedateien angegeben" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "es werden genau zwei Eingabedateien benötigt" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Aufruf: %s [OPTION] Def.po Ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1484,22 +1513,22 @@ "geben.\n" "\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " Def.po Übersetzungen\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " Ref.pot Referenzen auf die Quelldateien\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Optionen, die Verarbeitungen modifizieren:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1507,59 +1536,64 @@ msgstr "" " -m, --multi-domain Ref.pot auf jeden Bereich in Def.po anwenden\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching fuzzy-Übereinstimmung nicht verwenden\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy ungenaue Einträge (»fuzzy«) verwenden\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated unübersetzte Einträge verwenden\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "diese Meldung ist unübersetzt" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "diese Meldung muss vom Übersetzer geprüft werden" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "diese Meldung kommt vor, ist aber nicht definiert..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...diese Definition ist ähnlich" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "diese Meldung kommt vor, ist aber in %s nicht definiert" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "Warnung: diese Meldung kommt nicht vor" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "es ist %d fataler Fehler aufgetreten" msgstr[1] "es sind %d fatale Fehler aufgetreten" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "es müssen mindestens zwei Dateien angegeben werden" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1581,7 +1615,7 @@ "Stellenangaben der Meldungen in den Quellen werden für alle PO-Dateien\n" "kumuliert.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1590,7 +1624,7 @@ " ->, --more-than=ANZAHL Meldungen mit mehr als ANZAHL Definitionen\n" " anzeigen (Vorgabe: 1)\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" @@ -1598,39 +1632,39 @@ " --omit-header »msgid \"\"«-Eintrag im Kopfteil nicht " "erstellen\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "Einen Katalog mit Übersetzungen in eine andere Zeichensatz-Kodierung\n" "konvertieren.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Zielformat der Konvertierung:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" "Die Vorgabe für die Kodierung ist die Kodierung der aktuellen Lokale.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent Ausgabe eingerückt darstellen\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location Zeilen mit »#: Datei:Zeilennr.« nicht " "schreiben\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1638,30 +1672,30 @@ " --add-location Zeilen mit »#: Datei:Zeilennr.« erhalten\n" " (Vorgabe)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict .po-Datei streng nach Uniforum-Format " "erstellen\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "Eingabedatei fehlt" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "es wird genau eine Eingabedatei benötigt" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Aufruf: %s [OPTION] EINGABEDATEI\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1674,22 +1708,22 @@ "i. A. von xgettext erstellt). Unübersetzte Einträge bekommen eine Übersetzung\n" "zugewiesen, die mit der msgid identisch ist.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " EINGABEDATEI PO- oder POT-Eingabedatei\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "Name des Befehls fehlt" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Aufruf: %s [OPTION] BEFEHL [BEFEHL-OPTION]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1705,7 +1739,7 @@ "Ausgabe wird zur Ausgabe von »msgexec«. Der Rückgabewert von »msgexec« ist der\n" "höchste Rückgabewert von allen Aufrufen.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1715,44 +1749,44 @@ "von einem Nullbyte-Zeichen. Die Ausgabe von »msgexec 0« ist geeignet als\n" "Eingabe für »xargs -0«.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=EINGABEDATEI PO-Eingabedatei\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "Schreiben nach Standardausgabe fehlgeschlagen" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "Schreiben zum Subprozeß %s fehlgeschlagen" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "Name des Filters fehlt" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "es muß mindestens ein sed-Skript angegeben werden" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Aufruf: %s [OPTION] FILTER [FILTER-OPTION]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" "Einen Filter auf alle Übersetzungen eines Katalogs mit Übersetzungen " "anwenden.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1763,19 +1797,19 @@ "Standardausgabe\n" "schreibt.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Nützliche FILTER-OPTIONen, wenn »sed« der FILTER ist:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" " -e, --expression=SKRIPT SKRIPT den auszuführenden Befehlen hinzufügen\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1785,14 +1819,14 @@ " -f, --file=SKRIPT_DATEI Inhalt der SKRIPT_DATEI den auszuführenden\n" " Befehlen hinzufügen\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent \"Pattern-Space\" nicht automatisch ausgeben\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1800,12 +1834,12 @@ " --no-escape keine C-Escape-Sequenzen in Ausgabe\n" " verwenden (Vorgabe)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent Ausgabe eingerückt darstellen\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1813,102 +1847,82 @@ " --keep-header Kopfeintrag unverändert übernehmen, nicht " "filtern\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Noch nicht implementiert." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" -"es ist nicht möglich, eine nicht-blockierende Ein/Ausgabe zum Subprozeß %s\n" -"zu setzen" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "Kommunikation mit dem Subprozeß %s fehlgeschlagen" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "Lesen vorm Subprozeß %s fehlgeschlagen" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "Subprozeß %s wurde mit dem Exitcode %d beendet" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "das Argument für %s sollte ein einfaches Punktzeichen sein" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "ungültiger Endian-Wert: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s erfordert eine Angabe in der Art »-d Verzeichnis«" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s erfordert eine Angabe in der Art »-l Lokale«" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s ist nur mit %s oder %s gültig" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s ist nur mit %s, %s oder %s gültig" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d übersetzte Meldung" msgstr[1] "%d übersetzte Meldungen" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d ungenaue Übersetzung" msgstr[1] ", %d ungenaue Übersetzungen" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d unübersetzte Meldung" msgstr[1] ", %d unübersetzte Meldungen" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Aufruf: %s [OPTION] Datei.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Binären Katalog mit Meldungen aus der textuellen Übersetzung erstellen.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1917,17 +1931,17 @@ "Notwendige Argumente für Optionen in Langform sind auch für die Kurzform\n" "notwendig. Dies gilt in gleicher Weise für optionale Argumente.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " Datei.po ... Eingabedateien\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Art der Verarbeitung:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1936,7 +1950,7 @@ " -j, --java Java-Modus: eine ResourceBundle-Klasse für Java\n" " erstellen\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1945,13 +1959,13 @@ " --java2 wie --java, aber Java2 (JDK 1.2 oder höher) " "annehmen\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --qt C#-Modus: eine .dll-Datei für .NET erstellen\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1960,7 +1974,7 @@ " --csharp-resources C#-Ressourcenmodus: eine .resources-Datei für\n" " .NET erstellen\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" @@ -1968,36 +1982,36 @@ " --tcl Tcl-Modus: eine .msg-Datei für tcl/msgcat " "erstellen\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt-Modus: eine .qm-Datei für Qt erstellen\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict Datei streng nach Uniforum-Format erstellen\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" "Ergebnisse werden nach der Standardausgabe geschrieben, wenn »-« angegeben " "ist.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Angaben zu Ausgabedateien im Java-Modus:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESSOURCE Name der Ressource\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -2007,7 +2021,7 @@ "»de«)\n" " oder »sprache_LAND\" (z. B. »de_DE«)\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -2016,7 +2030,7 @@ "mit\n" " den Klassen\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2031,12 +2045,12 @@ "»-d« ist notwendig. Die Klasse wird unter dem angegebenen Verzeichnis\n" "geschrieben.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Angaben zu Ausgabedateien im C#-Modus:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -2046,7 +2060,7 @@ "abhängigen\n" " .dll-Dateien\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -2057,19 +2071,19 @@ "von\n" "der Lokale abhängig ist.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Angaben zu Ausgabedateien im Tcl-Modus:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d VERZEICHNIS Basis-Verzeichnis der .msg-Kataloge mit " "Meldungen\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -2078,12 +2092,12 @@ "Die Optionen »-l« und »-d« sind notwendig. Die .msg-Datei wird in das\n" "angegebene Verzeichnis geschrieben.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Überprüfung der Eingebedatei:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2094,13 +2108,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format sprachabhängige Formatelemente überprüfen\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2109,7 +2123,7 @@ " --check-header Existenz und Inhalt des Kopfeintrags " "verifizieren\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2119,7 +2133,7 @@ "die\n" " Option --output-file hin überprüfen\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2129,7 +2143,7 @@ "Open\n" " msgfmt verhält\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2140,14 +2154,14 @@ "Accelerators\n" " für Menüeinträge überprüfen\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy auch ungenaue Übersetzungen (»fuzzy«) " "verwenden\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2155,7 +2169,7 @@ " -a, --alignment=ZAHL Ausgaben an ZAHL (Vorgabe: %d) Bytegrenze\n" " ausrichten\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2163,84 +2177,84 @@ " --no-hash Binärdatei soll keine Hash-Tabelle " "enthalten\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" " --statistics Statistik zu den Übersetzungen anzeigen\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" " -v, --verbose mehr Hinweise während der Verarbeitung geben\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "Warnung: Kopfteil der PO-Datei fehlt oder ist ungültig\n" # = Konvertierung der Meldung in Hinblick auf den Zeichensatz # 2001-03-11 20:56:03 CET -ke- -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "Warnung: Konvertierung des Zeichensatzes wird fehlschlagen.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "Warnung: Kopfteil der PO-Datei ist ungenau (fuzzy)\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "Warnung: ältere Versionen von »msgfmt« werden hierbei einen Fehler melden\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "Bereichsname »%s« ist nicht als Dateiname geeignet" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "Bereichsname »%s« ist nicht als Dateiname geeignet; Präfix wird verwendet." -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "»domain %s«-Anweisung wird ignoriert" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "leerer »msgstr«-Eintrag wird ignoriert" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "ungenauer »msgstr«-Eintrag wird ignoriert" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: Warnung: Quelldatei enthält ungenaue Übersetzungen" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "Fehler beim Lesen von »%s«" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2249,7 +2263,7 @@ "Option »%c« kann nicht verwendet werden, bevor »J«, »K«, »T«, »C« oder »X« " "festgelegt ist" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2260,7 +2274,7 @@ # To avoid confusion, let msgid and msgstr untranslated here! # 2001-11-04 11:16:55 CET -ke- -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2343,7 +2357,7 @@ " -v, --invert-match Nur die Meldungen ausgeben, die nicht mit einem\n" " Auswahlkriterium übereinstimmen\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2351,18 +2365,18 @@ " --escape C-Escape-Sequenzen und keine erweiterten\n" " Zeichen in Ausgabe verwenden\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output sortierte Ausgabe erstellen\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file Ausgabe gemäß Vorkommen in Dateien erstellen\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2373,7 +2387,7 @@ "beschrieben. Dies ist notwendig, damit Sie Ihre Übersetzungen testen " "können.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2384,12 +2398,12 @@ "Bitte legen Sie die Lokale mit der Option »--locale« oder\n" "die .po-Datei für die Ausgabe mit der Option »--output-file« fest.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s wurde erstellt.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2398,12 +2412,12 @@ "Neue PO-Datei erstellen und die Meta-Informationen mit Werten der Umgebung des\n" "Benutzers initialisieren.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=EINGABEDATEI POT-Eingabedatei\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2415,13 +2429,13 @@ "POT-Datei gesucht. Wenn die Eingabedatei »-« ist, wird die Standardeingabe\n" "gelesen.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=DATEI Ausgabe in die angegebene DATEI schreiben\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2432,19 +2446,19 @@ "Ergebnisse werden nach der Standardausgabe geschrieben, wenn »-« angegeben " "ist.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC Lokale für die Ausgabe setzen\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator automatische Erstellung der PO-Datei annehmen\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2452,12 +2466,12 @@ "Mehr als eine .pot-Datei gefunden.\n" "Bitte geben Sie die .pot-Datei für die Eingabe mit der Option »--input« an.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "Fehler beim Lesen des aktuellen Verzeichnisses" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2465,14 +2479,14 @@ "Keine .pot-Datei im aktuellen Verzeichnis gefunden.\n" "Bitte geben Sie die .pot-Datei für die Eingabe mit der Option »--input« an.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "Subprozeß %s mit dem Exitcode %d fehlgeschlagen" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2489,29 +2503,29 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "German messages for %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "der Zeichensatz »%s« bezeichnet keine portable Kodierung" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "zwei unterschiedliche Zeichensätze »%s« und »%s« in Eingabedatei" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" "bei Eingabedatei »%s« fehlt der Kopfeintrag mit der Angabe des Zeichensatzes" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2520,19 +2534,19 @@ "bei Bereich »%s« der Eingabedatei »%s« fehlt Kopfeintrag mit der Angabe des\n" "Zeichensatzes" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "Zeichensatz »%s« für die Ausgabe bezeichnet keine portable Kodierung" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "Warnung: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2541,7 +2555,7 @@ "Eingabedateien enthalten Meldungen in unterschiedlichen Kodierungen (u. a.\n" "UTF-8). Die Ausgabe wird nach UTF-8 konvertiert.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2555,7 +2569,7 @@ "bitte\n" "die Option --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2569,7 +2583,7 @@ "Sie sicher, daß sie von vornherein UTF-8-kodiert sind; ändern Sie dazu die\n" "Quellcodedateien.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2582,12 +2596,12 @@ "Ausgabe von '%s' könnte nicht korrekt sein.\n" "Mögliche Abhilfen:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "· LC_ALL auf eine Lokale mit der Kodierung »%s« setzen.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2598,7 +2612,7 @@ " dann '%s' anwenden,\n" " dann nach »%s« mittels 'msgconv' zurück konvertieren.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2611,7 +2625,7 @@ " dann '%s' anwenden,\n" " dann nach »%s« mittels 'msgconv' zurück konvertieren.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2622,24 +2636,24 @@ "Ausgabe von '%s' könnte nicht korrekt sein.\n" "Eine mögliche Abhilfe ist, LC_ALL=C zu setzen.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "Pluralausdruck kann negative Werte ergeben" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu, aber Pluralausdruck kann Werte so groß wie %lu ergeben" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "Pluralausdruck kann Teilung durch Null ergeben" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "Pluralausdruck kann einen Ganzzahl-Überlauf ergeben" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2648,51 +2662,51 @@ "Teilung\n" "durch Null" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Bitte das Folgende versuchen; gültig für %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "aber dem Kopfeintrag fehlt das Attribut »plural=AUSDRUCK«" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "aber dem Kopfeintrag fehlt das Attribut »nplurals=GANZZAHL«" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "ungültige Pluralwerte" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "ungültiger Pluralausdruck" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "aber einige Meldungen haben nur eine Pluralform" msgstr[1] "aber einige Meldungen haben nur %lu Pluralformen" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "aber einige Meldungen haben eine Pluralform" msgstr[1] "aber einige Meldungen haben %lu Pluralformen" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2701,86 +2715,87 @@ "Kopfeintrag fehlt die Zeile:\n" "»Plural-Forms: nplurals=GANZZAHL; plural=AUSDRUCK;«" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "»msgid«- und »msgstr_plural«-Eintrag beginnen nicht jeweils mit »\\n«" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "»msgid«- und »msgstr[%u]«-Eintrag beginnen nicht jeweils mit »\\n«" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "»msgid«- und »msgstr«-Eintrag beginnen nicht jeweils mit »\\n«" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "»msgid«- und »msgstr_plural«-Eintrag enden nicht jeweils mit »\\n«" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "»msgid«- und »msgstr[%u]«-Eintrag enden nicht jeweils mit »\\n«" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\\n«" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "Die Plural-Behandlung ist eine Erweiterung von GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "bei »msgstr« fehlt die Markierung »%c« für den Tastatur-Accelerator" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" "»msgstr« weist mehr als eine Markierung »%c« für den Tastatur-Accelerator auf" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "Im Kopfeintrag fehlt das Feld »%s«\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "Feld »%s« im Kopfeintrag sollte am Beginn der Zeile anfangen\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" "Einige Felder im Kopfeintrag haben immer noch den anfänglichen Vorgabewert\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "Feld »%s« hat immer noch den anfänglichen Vorgabewert\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "" +"Einige Felder im Kopfeintrag haben immer noch den anfänglichen Vorgabewert\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: Eingabe ist nicht gültig in der Kodierung »%s«" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" "%s: Fehler beim Konvertieren von der Kodierung »%s« nach der\n" "Kodierung »%s«" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "bei der Eingabedatei fehlt der Kopfeintrag mit der Angabe des Zeichensatzes" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2789,7 +2804,7 @@ "Es ist nicht möglich, von »%s« nach »%s« zu konvertieren.\n" "%s hängt von iconv() ab, und iconv() unterstützt diese Konvertierung nicht." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2798,8 +2813,8 @@ "Konvertierung »%s« nach »%s« führt zu doppelten Einträgen: unterschiedliche " "msgids werden gleich." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2808,16 +2823,16 @@ "Es ist nicht möglich, von »%s« nach »%s« zu konvertieren.\n" "%s hängt von iconv() ab. Diese Version wurde ohne iconv() erstellt." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s ist nur mit %s gültig" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "Art der Sicherung" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2841,19 +2856,19 @@ "exakte Übereinstimmung bei Meldungen gibt, wird mittels nicht-exakter Suche\n" "versucht, ein besseres Ergebnis zu erzielen.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " Def.po Übersetzungen, die sich auf die alten Quellen\n" " beziehen\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " Ref.pot Referenzen aus den neuen Quellen\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2862,7 +2877,7 @@ " -C, --compendium=DATEI zusätzliche Bibliothek mit Übersetzungen, es\n" " können mehrere angegeben werden\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2871,30 +2886,30 @@ " -U, --update Def.po aktualisieren; nichts unternehmen,\n" " wenn Def.po bereits aktuell ist\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Angaben zu Ausgabedateien beim Aktualisieren (Update):\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Das Ergebnis wird nach Def.po zurückgeschrieben.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" " --backup=KONTROLLE Eine Sicherungskopie von Def.po anlegen\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix=SUFFIX Das übliche Suffix der Sicherungskopie\n" " überschreiben\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2916,7 +2931,7 @@ " andernfalls einfache.\n" " simple, never immer einfache Sicherungskopien erstellen\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2926,12 +2941,7 @@ "Das Suffix für Sicherungskopien ist ~, außer wenn --suffix oder die\n" "Umgebungsvariable SIMPLE_BACKUP_SUFFIX gesetzt ist.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching fuzzy-Übereinstimmung nicht verwenden\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2940,22 +2950,22 @@ "Meldungen\n" " beibehalten\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent Fortschrittsanzeige unterdrücken\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "diese Meldung sollte Pluralformen definieren" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "diese Meldung sollte keine Pluralformen definieren" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2964,28 +2974,30 @@ "%s%ld alte + %ld Referenzeinträge gelesen,\n" "%ld stimmen überein, %ld ungenau, %ld fehlen, %ld veraltet.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " fertig.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s und explizite Angabe des Dateinamens schließen sich gegenseitig aus" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Aufruf: %s [OPTION] [DATEI]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Binären Katalog mit Meldungen in eine .po-Datei gemäß Uniforum-Format\n" "umwandeln.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2995,12 +3007,12 @@ "Klasse\n" " für Java erstellen\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C#-Modus: Eingabe ist eine .dll-Datei\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -3009,7 +3021,7 @@ " --csharp-resources C#-Ressourcenmodus: .NET-.resources-Datei ist\n" " eine eingabedatei\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -3017,17 +3029,17 @@ " --tcl Tcl-Modus: Eingabe ist eine tcl/msgcat .msg-" "Datei\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " DATEI ... .mo-Eingabedateien\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Angaben zu Eingabedateien im Java-Modus:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -3040,12 +3052,12 @@ "Option\n" "»-d« ist notwendig. Die Klasse mittels CLASSPATH gesucht.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Angaben zu Eingabedateien im C#-Modus:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -3056,12 +3068,12 @@ "dessen\n" "Name von der Lokale abhängig ist.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Angaben zu Eingabedateien im Tcl-Modus:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -3070,18 +3082,18 @@ "Die Optionen »-l« und »-d« sind notwendig. Die .msg-Datei wird in das\n" "angegebene Verzeichnis geschrieben.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent Ausgabe eingerückt darstellen\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict .po-Datei streng nach Uniforum-Format erstellen\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3104,12 +3116,12 @@ "Stellenangaben der Meldungen in den Quellen werden kumuliert. Bei Verwendung\n" "der Option --unique werden doppelte Einträge verworfen.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated nur doppelte Einträge ausgeben\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3119,7 +3131,7 @@ "doppelte\n" " verwerfen\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3207,65 +3219,65 @@ msgid "plural form has wrong index" msgstr "Pluralform hat einen falschen Index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "zu viele Fehler: Abbruch" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "ungültige Multibyte-Sequenz" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "ungültige Multibyte-Sequenz am Ende der Datei" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "ungültige Multibyte-Sequenz am Ende der Zeile" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "Fehler von iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "Schlüsselwort »%s« ist unbekannt" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "ungültige Kontrollsequenz" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "Dateiende innerhalb einer Zeichenkette" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "Zeilenende innerhalb einer Zeichenkette" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "Kontext-Trenner innerhalb einer Zeichenkette" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "diese Datei darf keine »domain«-Anweisung enthalten" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "Mehrfachdefinition der Meldung" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "dies ist die Stelle der ersten Definition" @@ -3348,19 +3360,20 @@ #: src/recode-sr-latin.c:366 #, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "Fehler beim Konvertieren von der Kodierung »%s« nach der Kodierung »%s«" +msgstr "" +"Fehler beim Konvertieren von der Kodierung »%s« nach der Kodierung »%s«" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "zwei Argumente werden erwartet" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Aufruf: %s [OPTION] URL DATEI\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3369,38 +3382,50 @@ "URL holen und Inhalt ausgeben. Wenn auf den URL nicht zugegriffen werden kann,\n" "wird die lokal zugängliche Datei stattdessen verwendet.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "Fehler beim Schreiben von Standardausgabe" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" -"Es ist nicht möglich, mehrere Übersetzungsbereiche in eine Datei mit der »." -"properties«-Syntax von Java auszugeben. Versuchen Sie als Ersatz auf die PO-" -"Dateien- Syntax auszuweichen." +"Es ist nicht möglich, mehrere Übersetzungsbereiche in eine Datei mit dem " +"angegebenen Ausgabeformat auszugeben. Versuchen Sie als Ersatz auf die PO-" +"Dateien-Syntax auszuweichen." #: src/write-catalog.c:129 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." msgstr "" -"Es ist nicht möglich, mehrere Übersetzungsbereiche in eine Datei mit der »." -"strings«-Syntax von Nextstep/Gnustep auszugeben." +"Es ist nicht möglich, mehrere Übersetzungsbereiche in eine Datei mit dem " +"angegebenen Ausgabeformat auszugeben." #: src/write-catalog.c:162 -#, fuzzy msgid "" "message catalog has context dependent translations, but the output format " "does not support them." msgstr "" -"Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber das " -"Ausgabeformat unterstützt keine Pluralbehandlung." +"Katalog mit Meldungen weist kontextabhängige Übersetzungen auf, aber das " +"Ausgabeformat unterstützt diese nicht." #: src/write-catalog.c:197 msgid "" @@ -3420,79 +3445,78 @@ "Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber das " "Ausgabeformat unterstützt keine Pluralbehandlung." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "Ausgabedatei »%s« kann nicht erstellt werden" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "Standardausgabe" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "Fehler beim Anlegen von Verzeichnis »%s«" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" "Kompilierung der C#-Klasse ist fehlgeschlagen; bitte versuchen Sie --verbose" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "" -"Kompilierung der C#-Klasse ist fehlgeschlagen; bitte versuchen Sie --verbose" +msgstr "Kompilierung der C#-Klasse ist fehlgeschlagen" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "kein gültiger Name einer Java-Klasse: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "Kompilierung der Java-Klasse ist fehlgeschlagen; bitte versuchen Sie\n" "--verbose oder setzen Sie $JAVAC" -#: src/write-java.c:1063 -#, fuzzy, c-format +#: src/write-java.c:1168 +#, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" -"Kompilierung der Java-Klasse ist fehlgeschlagen; bitte versuchen Sie\n" -"--verbose oder setzen Sie $JAVAC" +"Kompilierung der Java-Klasse ist fehlgeschlagen; bitte versuchen Sie, " +"$JAVAC\n" +"zu setzen" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" msgstr "Fehler beim Öffnen von »%s« zum Schreiben" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "Zu übersetzende Meldungen sollten nicht die Escape-Sequenz »\\%c« enthalten" -#: src/write-po.c:1212 src/write-po.c:1341 -#, fuzzy, c-format +#: src/write-po.c:1253 src/write-po.c:1382 +#, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" "This will cause problems to translators who use a character encoding\n" "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" msgstr "" -"Die folgende msgid enthält Zeichen, die nicht ASCII-kodiert sind.\n" -"Dies kann bei den Übersetzungen Schwierigkeiten bereiten, wenn die " -"Übersetzer\n" -"eine andere Zeichen-Kodierung als Sie verwenden. Bitte auf eine msgid\n" -"ausweichen, die nur aus ASCII-kodierten Zeichen besteht.\n" +"Der folgende msgctxt enthält Zeichen, die nicht ASCII-kodiert sind.\n" +"Dies kann Übersetzer Schwierigkeiten bereiten, wenn die eine andere\n" +"Zeichen-Kodierung als Sie verwenden. Bitte auf einen msgctxt\n" +"ausweichen, der stattdessen nur aus ASCII-kodierten Zeichen besteht.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3516,19 +3540,17 @@ "Qt-Katalog mit den Meldungen unterstützt keine Pluralbehandlung.\n" #: src/write-qt.c:693 -#, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"Katalog mit Meldungen weist msgid-Zeichenketten auf, die Zeichen außerhalb " -"von\n" -"ISO-8859-1 liegen, aber das Qt-Format für Kataloge mit Meldungen " -"unterstützt\n" -"Unicode nur in übersetzten Zeichenketten, nicht in unübersetzten " -"Zeichenketten\n" +"Katalog mit Meldungen weist msgctxt-Zeichenketten auf, deren Zeichen " +"außerhalb\n" +"von ISO-8859-1 liegen, aber das Qt-Format für Kataloge mit Meldungen\n" +"unterstützt Unicode nur in übersetzten Zeichenketten, nicht in\n" +"Kontext-Zeichenketten\n" #: src/write-qt.c:717 msgid "" @@ -3548,31 +3570,29 @@ msgid "error while writing to %s subprocess" msgstr "Fehler beim Schreiben zum Subprozeß %s" -#: src/write-resources.c:130 -#, fuzzy +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -"Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber das\n" -".resources-Format von C# unterstützt keine Pluralbehandlung.\n" +"Katalog mit Meldungen weist kontextabhängige Übersetzungen auf, aber das\n" +".resources-Format von C# unterstützt keine Kontextangaben\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" msgstr "" "Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber das\n" -".resources-Format von C# unterstützt keine Pluralbehandlung.\n" +".resources-Format von C# unterstützt keine Pluralbehandlung\n" #: src/write-tcl.c:157 -#, fuzzy msgid "" "message catalog has context dependent translations\n" "but the Tcl message catalog format doesn't support contexts\n" msgstr "" -"Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber der\n" -"Tcl-Katalog mit den Meldungen unterstützt keine Pluralbehandlung\n" +"Katalog mit Meldungen weist kontextabhängige Übersetzungen auf, aber der\n" +"Tcl-Katalog mit den Meldungen unterstützt keine Kontextangaben\n" #: src/write-tcl.c:176 msgid "" @@ -3582,36 +3602,34 @@ "Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber der\n" "Tcl-Katalog mit den Meldungen unterstützt keine Pluralbehandlung\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: Warnung: Zeichenkette nicht korrekt terminiert" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: Warnung: regulärer Ausdruck nicht korrekt terminiert" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: Warnung: Zeichenkonstante nicht korrekt terminiert" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: Warnung: Zeichenkette nicht korrekt terminiert" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Zeichenkette bei %s%s ist nicht ASCII-kodiert.\n" "Bitte die Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3620,7 +3638,7 @@ "%s:%d: Ungültige Multibyte-Sequenz.\n" "Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3629,7 +3647,7 @@ "%s:%d: Lange unvollständige Multibyte-Sequenz.\n" "Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3638,7 +3656,7 @@ "%s:%d: Unvollständige Multibyte-Sequenz am Ende der Datei.\n" "Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3647,12 +3665,12 @@ "%s:%d: Unvollständige Multibyte-Sequenz am Ende der Zeile.\n" "Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: Fehler von iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3661,33 +3679,33 @@ "%s:%d: Ungültige Multibyte-Sequenz.\n" "Bitte die Kodierung des Quelltextes mit --from-code angeben.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: Warnung: ungültiges Unicode-Zeichen" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: Warnung: nicht terminierte konstante Zeichenkette" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: Warnung: ')' gefunden, wo '}' erwartet wurde" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: Warnung: '}' gefunden, wo ')' erwartet wurde" # CHECKIT -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3696,128 +3714,145 @@ "Die Sprache »glade« wird nicht unterstützt. %s hängt von expat ab.\n" "Diese Version wurde ohne expat erstellt.\n" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: Warnung: Zeichenkette nicht korrekt terminiert" +msgstr "%s:%d: Warnung: Einzelnes Surrogat U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: »%s« zum Terminieren der Zeichenkette ist vor EOF nicht vorhanden" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: rechte Klammer bei \\x{HEXZAHL} fehlt" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: ungültige Interpolation (»\\l«) bei dem 8-Bit-Zeichen »%c«" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: ungültige Interpolation (»\\u«) bei dem 8-Bit-Zeichen »%c«" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: ungültige Interpolation einer Variablen bei »%c«" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: ungültige Interpolation (»\\L«) bei dem 8-Bit-Zeichen »%c«" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: ungültige Interpolation (»\\U«) bei dem 8-Bit-Zeichen »%c«" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "Zeichenkette bei %s%s ist nicht ASCII-kodiert.\n" -"Bitte die Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:281 -#, fuzzy, c-format +#: src/x-python.c:282 +#, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Ungültige Multibyte-Sequenz.\n" -"Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:298 -#, fuzzy, c-format +#: src/x-python.c:299 +#, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Lange unvollständige Multibyte-Sequenz.\n" -"Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:311 -#, fuzzy, c-format +#: src/x-python.c:312 +#, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Unvollständige Multibyte-Sequenz am Ende der Datei.\n" -"Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:321 -#, fuzzy, c-format +#: src/x-python.c:322 +#, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Unvollständige Multibyte-Sequenz am Ende der Zeile.\n" -"Bitte die korrekte Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:354 -#, fuzzy, c-format +#: src/x-python.c:355 +#, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Ungültige Multibyte-Sequenz.\n" -"Bitte die Kodierung des Quelltextes mit --from-code angeben.\n" +"Bitte die Kodierung des Quelltextes mit --from-code oder mit einem " +"Kommentar\n" +"angeben, wie er bei http://www.python.org/peps/pep-0263.html spezifiziert " +"ist.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Unbekannt Kodierung »%s«. Es wird stattdessen mit ASCII fortgefahren." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: ungültige Definition einer Zeichenkette" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: Zahl nach # fehlt" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: ungültiger Ausdruck einer Zeichenkette" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3826,32 +3861,32 @@ "%s:%lu: Warnung: die Syntax $\"...\" ist aus Sicherheitsgründen als veraltet " "zu betrachten; verwenden Sie stattdessen use eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "»--join-existing« kann nicht benutzt werden, wenn nach Standardausgabe\n" "geschrieben wird" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" "ohne Angabe zu berücksichtigender Schlüsselwörter schlägt xgettext fehl" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "Warnung: Typ der Datei »%s« mit Suffix »%s« ist unbekannt; C wird versucht" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" "Aus den Eingabedateien die zu übersetzenden Meldungen herausschreiben.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3859,25 +3894,25 @@ msgstr "" " -d, --default-domain=NAME Ausgabe in NAME.po (anstatt in messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" " -o, --output=DATEI Ausgabe in die angegebene DATEI schreiben\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" " -p, --output-dir=VERZ Ausgabedateien in Verzeichnis VERZ ablegen\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Wahl der Sprache für die Eingabedatei:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3895,12 +3930,12 @@ " PHP, GCC-source, NXStringTable, RST, " "Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ Abkürzung für --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3910,7 +3945,7 @@ "Eingabedatei\n" "geraten.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3919,44 +3954,47 @@ " --from-code=NAME Kodierung der Eingebedateien\n" " (außer für Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Die Vorgabe ist, dass für Eingabedateien ASCII angenommen wird.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing Meldungen an existierende Datei anhängen\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=DATEI.po Einträge aus DATEI.po nicht herausholen\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=KENNUNG] Kommentare mit KENNUNG (oder die aus " "Zeilen\n" " vor einem Schlüsselwort) herausschreiben\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Besondere Optionen bei »Language«:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all alle Zeichenketten extrahieren\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3969,17 +4007,17 @@ " EmacsLisp, librep, Scheme, Java, C#, awk,\n" " Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=WORT] zusätzliches Schlüsselwort, nach dem gesucht\n" " wird (ohne WORT-Angabe wird nicht nach den\n" " vorgegebenen Schlüsselwörtern gesucht)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3991,7 +4029,7 @@ " der Argumentzahl ARG des Schlüsselworts " "WORT\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -4005,42 +4043,43 @@ " librep, Scheme, Java, C#, awk, YCP, Tcl,\n" " Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs Trigraph-Zeichen von ANSI C bei der Eingabe\n" " erkennen\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (nur die Programmiersprachen C, C++,\n" " ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Zeichenketten im Qt-Format erkennen\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (nur die Programmiersprache C++)\n" -#: src/xgettext.c:859 -#, fuzzy, c-format +#: src/xgettext.c:915 +#, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --qt Zeichenketten im Qt-Format erkennen\n" +msgstr "" +" --kde Zeichenketten im KDE 4-Format erkennen\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" " --boost Zeichenketten im Boost-Format erkennen\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -4048,19 +4087,19 @@ " --debug detaillierteres Ergebnis bei Erkennung der\n" " Formatelemente\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" " --properties-output eine ».properties«-Datei von Java erstellen\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=KETTE Halter des Copyrights in Ausgabe setzen\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -4068,61 +4107,77 @@ " --foreign-user keine Zeile mit FSF-Copyright in Ausgabe\n" " einfügen\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=PAKET Paketname für die Ausgabe setzen\n" -#: src/xgettext.c:907 -#, fuzzy, c-format +#: src/xgettext.c:969 +#, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr "" -" --copyright-holder=KETTE Halter des Copyrights in Ausgabe setzen\n" +msgstr " --package-version=VERSION Paketversion in Ausgabe setzen\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=EMAIL@ADRESSE Adresse für msgid-Fehler angeben\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=KETTE] KETTE oder \"\" als Präfix für msgstr " "nehmen\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=KETTE] KETTE oder \"\" als Suffix für msgstr " "nehmen\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Ein --flag-Argument folgt nicht der ::[pass-]-Syntax: " "%s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "Standardeingabe" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: Warnung: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4131,16 +4186,16 @@ "Obwohl das Formatelement an der Position eines Formatelements verwendet " "wird, ist %s kein gültiges %s Formatelement. Der Grund: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Obwohl es als Formatelement deklariert wurde, ist %s kein gültiges %s " "Formatelement. Der Grund: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4154,7 +4209,7 @@ "Verwenden Sie besser ein Formatelement mit bezeichneten Argumenten\n" "und einem Mapping anstelle eines Tuples für die Argumente.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4164,28 +4219,28 @@ "gettext(\"\") gibt den Kopfeintrag mit Meta-Informationen\n" "zurück, keine leere Zeichenkette.\n" -#: src/xgettext.c:2664 -#, fuzzy, c-format +#: src/xgettext.c:2834 +#, c-format msgid "ambiguous argument specification for keyword '%.*s'" -msgstr "mehrdeutiges Argument %s für %s" +msgstr "mehrdeutige Argumentspezifikation für das Schlüsselwort »%.*s«" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "Warnung: fehlender Kontext für das Schlüsselwort »%.*s«" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" "Warnung: fehlender Kontext für das Plural-Argument des Schlüsselwortes »%.*s«" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "Abweichung beim Kontext zwischen Singular- und Pluralform" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4197,7 +4252,7 @@ "Variable MSGID_BUGS_ADDRESS aus; falls nicht, geben Sie bitte die\n" "Option an der Befehlszeile mit --msgid-bugs-address an.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "Programmiersprache »%s« unbekannt" @@ -4206,77 +4261,39 @@ msgid "" msgstr "" -#~ msgid "Multiple references to %%%c." -#~ msgstr "Mehrfache Referenzen für %%%c." +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: unzulässige Option -- %c\n" -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright © %s Free Software Foundation, Inc.\n" -#~ "Dies ist freie Software; in den Quellen befindet sich die " -#~ "Lizenzbedingung.\n" -#~ "Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder\n" -#~ "die VERWENDBARKEIT ZU EINEN ANGEGEBENEN ZWECK.\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the C# .dll format doesn't support contexts\n" -#~ msgstr "" -#~ "Katalog mit Meldungen weist kontext-abhängige Übersetzungen auf, aber " -#~ "das\n" -#~ ".dll Format von C# unterstützt keine Kontextangaben.\n" +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle ist mit dem Exitcode 0x%08x fehlgeschlagen" -#, fuzzy -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the Java ResourceBundle format doesn't support contexts\n" -#~ msgstr "" -#~ "Katalog mit Meldungen weist Übersetzungen mit Pluralformen auf, aber das\n" -#~ ".resources-Format von C# unterstützt keine Pluralbehandlung.\n" +#~ msgid "Not yet implemented." +#~ msgstr "Noch nicht implementiert." -#~ msgid "The %%J directive is only allowed at the beginning of the string." +#~ msgid "cannot set up nonblocking I/O to %s subprocess" #~ msgstr "" -#~ "Die Formatanweisung %%J ist nur am Beginn einer Zeichenkette erlaubt." +#~ "es ist nicht möglich, eine nicht-blockierende Ein/Ausgabe zum Subprozeß " +#~ "%s\n" +#~ "zu setzen" -#~ msgid "The %%J directive does not support flags." -#~ msgstr "Die Formatanweisung %%J unterstützt keine Flags." - -#~ msgid "%s:%lu: warning: unterminated string" -#~ msgstr "%s:%lu: Warnung: nicht terminierte Zeichenkette" +#~ msgid "communication with %s subprocess failed" +#~ msgstr "Kommunikation mit dem Subprozeß %s fehlgeschlagen" -#~ msgid "%s:%d: fatal: plural message seen before singular message\n" -#~ msgstr "" -#~ "%s:%d: fatal Fehler: Die Plural-Meldung steht vor der Singular-Meldung\n" +#~ msgid "read from %s subprocess failed" +#~ msgstr "Lesen vorm Subprozeß %s fehlgeschlagen" -#~ msgid "Please choose the number, or enter your email address." -#~ msgstr "Bitte wählen Sie die Nummer oder geben Sie Ihre E-Mail-Adresse ein." +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "Subprozeß %s wurde mit dem Exitcode %d beendet" -#~ msgid "Invalid email address: invalid character." -#~ msgstr "Ungültige E-Mail-Adresse: ungültiges Zeichen." +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "Feld »%s« hat immer noch den anfänglichen Vorgabewert\n" -#~ msgid "" -#~ "Invalid email address: need a fully qualified host name or domain name." -#~ msgstr "" -#~ "Ungültige E-Mail-Adresse: ein vollständiger Rechnername oder Domainname " -#~ "ist erforderlich." - -#~ msgid "Invalid email address: missing @" -#~ msgstr "Ungültige E-Mail-Adresse: @ fehlt" +#~ msgid "Multiple references to %%%c." +#~ msgstr "Mehrfache Referenzen für %%%c." -#~ msgid "Is the following your email address?" -#~ msgstr "Ist dies Ihre E-Mail-Adresse?" +#~ msgid "%s:%lu: warning: unterminated string" +#~ msgstr "%s:%lu: Warnung: nicht terminierte Zeichenkette" -#~ msgid "Please confirm by pressing Return, or enter your email address." +#~ msgid "%s:%d: fatal: plural message seen before singular message\n" #~ msgstr "" -#~ "Bitte bestätigen Sie mit der Eingabetaste oder geben Sie Ihre E-Mail-" -#~ "Adresse ein." - -#~ msgid "Couldn't find out about your email address." -#~ msgstr "Ihre E-Mail-Adresse konnte nicht festgestellt werden." - -#~ msgid "Please enter your email address." -#~ msgstr "Bitte geben Sie Ihre E-Mail-Adresse ein." +#~ "%s:%d: fatal Fehler: Die Plural-Meldung steht vor der Singular-Meldung\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/el.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/el.gmo differ diff -Nru gettext-0.17/gettext-tools/po/el.po gettext-0.18.1.1/gettext-tools/po/el.po --- gettext-0.17/gettext-tools/po/el.po 2007-11-02 02:23:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/el.po 2010-06-06 12:49:57.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.34\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 1998-05-17 13:12+0200\n" "Last-Translator: Simos KSenitellis \n" "Language-Team: Greek \n" +"Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-7\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,25 +32,25 @@ msgstr "" # -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr " \"%s\"" # -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr " \"%s\"" # -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr " \"%s\"" # -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr " \"%s\"" @@ -59,48 +60,48 @@ msgstr "" # -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr " \"%s\" " # -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr " \"%s\" " # -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr " \"%s\"" # -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr " \"%s\"" # -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr " \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -111,85 +112,84 @@ msgstr "" # -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr " " -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" # -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s' \n" # -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' \n" # -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' \n" # -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' \n" # -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s'\n" # -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s'\n" # -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: -- %c\n" - -# -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: -- %c\n" # -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: -- %c\n" # -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s' \n" # -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' \n" +# +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' \n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -201,21 +201,21 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" # -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr " \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -225,22 +225,22 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" # #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, fuzzy, c-format msgid "memory exhausted" msgstr "H " # -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -259,73 +259,73 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +# +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr " \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" # #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr " %u " # -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr " %u " # -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr " %u " #: src/format-boost.c:449 @@ -351,9 +351,9 @@ msgstr "" # -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" " `msgid' `msgstr' " @@ -394,48 +394,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -528,21 +528,20 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr " %u " # -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr " %u " # -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr " %u " #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -556,11 +555,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -609,14 +608,14 @@ # #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "" " `msgid' `msgstr' " # #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr " %u " #: src/format-perl.c:433 @@ -627,60 +626,57 @@ msgstr "" # -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr " %u " -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" # -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" " `msgid' `msgstr' " # -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" " `msgid' `msgstr' " # -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr " %u " # -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr " %u " #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -717,11 +713,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -731,40 +727,40 @@ msgstr "" # -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr " / %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" # -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr " " # -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr " `%s --help' .\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -797,29 +793,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -829,11 +825,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr " .\n" @@ -844,297 +840,315 @@ msgstr "" # -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr " " # -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr " %s %s " -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" # -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr " " -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" # -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1152,33 +1166,33 @@ " -S, --strict Uniforum\n" " -V, --version \n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" # -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr " (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" # -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1208,108 +1222,100 @@ " PO . PO\n" " .\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" # -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr " " # -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr " " -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" # -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1335,88 +1341,93 @@ " . o,\n" " .\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" # -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr ": " -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" # -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr " , ..." # -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "... " # -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr " , %s" # -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr ": " # -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, fuzzy, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] " %d " # -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr " " # -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1445,76 +1456,76 @@ " PO . PO\n" " .\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" # -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr " " # -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr " " -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1523,23 +1534,23 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" # -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr " " -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1549,69 +1560,69 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" # -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr " " # -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr " " -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1619,210 +1630,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + # -#: src/msgfmt.c:599 +#: src/msgfmt.c:620 #, fuzzy, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d " # -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, fuzzy, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d " # -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, fuzzy, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d " -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1832,48 +1825,48 @@ msgstr "" # -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr " " -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1881,33 +1874,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1915,67 +1908,67 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" # -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: : " # -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "%s: : " # -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: : " -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" # -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr " \"%s\" " # -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" @@ -1983,57 +1976,57 @@ " " # -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr " `domain %s' " # -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr " `msgstr' " # -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr " `msgstr' " # -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "" "%s: : " # -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr " \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2073,30 +2066,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2104,24 +2097,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2129,54 +2122,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2188,54 +2181,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2244,7 +2237,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2253,7 +2246,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2262,12 +2255,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2275,7 +2268,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2284,7 +2277,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2292,66 +2285,66 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" # -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr " " # -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr " " # -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr " " # -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2359,140 +2352,140 @@ msgstr[1] " , %s" # -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] " , %s" msgstr[1] " , %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" # -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr " `msgid' `msgstr' '\\n'" # -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr " `msgid' `msgstr' '\\n'" # -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr " `msgid' `msgstr' '\\n'" # -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr " `msgid' `msgstr' '\\n'" # -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr " `msgid' `msgstr' '\\n'" # -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr " `msgid' `msgstr' '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" # -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr " `%s' " # -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr " `%s' " # -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr " " # -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr " `%s' " +msgid "header field `%s' still has the initial default value\n" +msgstr " " -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" # -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr " \"%s\" " -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" # -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2518,51 +2511,51 @@ " \n" " .\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2574,7 +2567,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2582,36 +2575,31 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" # -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr " , %s" # -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr " , %s" # -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, fuzzy, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2621,62 +2609,64 @@ " %d, %d.\n" # -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " .\n" # -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr " %s %s " -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2685,41 +2675,41 @@ msgstr "" # -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr " " -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2732,19 +2722,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2829,75 +2819,75 @@ msgstr "" # -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr " , " # -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, fuzzy, c-format msgid "invalid multibyte sequence" msgstr " " # -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr " " # -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr " " -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" # -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr " \"%s\"" # -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, fuzzy, c-format msgid "invalid control sequence" msgstr " " # -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr " (EOF) " # -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "- (eol) " -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" # -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr " " # -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr " " # -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr " " @@ -2999,17 +2989,17 @@ msgstr " \"%s\" " # -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr " " -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3017,11 +3007,26 @@ msgstr "" # -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr " \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3054,43 +3059,43 @@ msgstr "" # -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr " \"%s\"" # -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr " " # -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr " \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3102,15 +3107,15 @@ msgstr " \"%s\" " # -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" -" `\\%" -"c'" +" `\\" +"%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3119,7 +3124,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3136,8 +3141,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3155,13 +3160,13 @@ msgid "error while writing to %s subprocess" msgstr " \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3180,70 +3185,67 @@ msgstr "" # -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: : " # -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: : " # -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: : " # -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: : " -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3251,33 +3253,33 @@ msgstr "" # -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: : " # -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: : " -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3285,56 +3287,54 @@ msgstr "" # -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: : " -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" # -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3342,7 +3342,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3350,7 +3350,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3358,7 +3358,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3366,7 +3366,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3374,28 +3374,28 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" # -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: : " -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3403,55 +3403,55 @@ msgstr "" # -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" " --join-existing " " " -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" # -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" ": `%s' `%s' C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" # -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr " " -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3463,58 +3463,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3523,14 +3526,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3538,7 +3541,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3547,120 +3550,137 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" # -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr " " -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3669,34 +3689,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3705,7 +3725,7 @@ msgstr "" # -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr " `%s' " @@ -3715,6 +3735,15 @@ msgstr "" # +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: -- %c\n" + +# +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr " `%s' " + +# #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -3880,8 +3909,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/en@boldquot.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/en@boldquot.gmo differ diff -Nru gettext-0.17/gettext-tools/po/en@boldquot.po gettext-0.18.1.1/gettext-tools/po/en@boldquot.po --- gettext-0.17/gettext-tools/po/en@boldquot.po 2007-11-02 02:23:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/en@boldquot.po 2010-06-03 23:57:28.000000000 +0000 @@ -1,7 +1,7 @@ # English translations for gettext-tools package. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the gettext-tools package. -# Automatically generated, 2007. +# Automatically generated, 2010. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation @@ -30,12 +30,13 @@ # msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.17\n" +"Project-Id-Version: gettext-tools 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-06-04 01:57+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" +"Language: en@boldquot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -56,22 +57,22 @@ msgid "Valid arguments are:" msgstr "Valid arguments are:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "cannot find a temporary directory, try setting $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "cannot create a temporary directory using template “%s”" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "cannot remove temporary file %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "cannot remove temporary directory %s" @@ -80,44 +81,44 @@ msgid "write error" msgstr "write error" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "error while opening “%s” for reading" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "cannot open backup file “%s” for writing" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "error reading “%s”" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "error writing “%s”" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "error after reading “%s”" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() failed" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C# compiler not found, try installing pnet" @@ -127,74 +128,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "C# virtual machine not found, try installing pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unknown system error" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s subprocess failed" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: option ‘%s’ is ambiguous\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: option ‘--%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: option ‘%c%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: option ‘%s’ requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: option ‘--%s’ requires an argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unrecognized option ‘--%s’\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unrecognized option ‘%c%s’\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: invalid option -- ‘%c’\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: option requires an argument -- ‘%c’\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: option requires an argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: option ‘-W %s’ is ambiguous\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: option ‘-W %s’ doesn't allow an argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: option ‘-W %s’ requires an argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -206,20 +206,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "invalid target_version argument to compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "failed to create “%s”" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "error while writing “%s” file" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Java compiler not found, try installing gcj or set $JAVAC" @@ -229,20 +229,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "Java virtual machine not found, try installing gij or set $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s subprocess I/O error" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memory exhausted" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -261,75 +261,74 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle failed with error code 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle failed" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "cannot restore fd %d: dup2 failed" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s subprocess" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s subprocess got fatal signal %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" -msgstr "‘%s’ is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" +msgstr "‘%s’ is not a valid %s format string, unlike '%s'. Reason: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument %u, as in '%s', doesn't exist in " -"‘msgid’" +"a format specification for argument %u, as in '%s', doesn't exist in ‘%s" +"[0m’" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "a format specification for argument %u doesn't exist in ‘%s’" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument %u are " -"not the same" +"format specifications in ‘%s’ and ‘%s’ for argument %u are not " +"the same" #: src/format-boost.c:449 #, c-format @@ -358,12 +357,11 @@ msgstr "" "The string refers to argument number %u but ignores argument number %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" -"number of format specifications in ‘msgid’ and ‘%s’ does not " -"match" +"number of format specifications in ‘%s’ and ‘%s’ does not match" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -409,17 +407,17 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "The string contains a lone ‘}’ after directive number %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "In the directive number %u, the flags combination is invalid." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "In the directive number %u, a precision is not allowed before '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -428,7 +426,7 @@ "In the directive number %u, the argument number for the precision must be " "equal to %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -437,25 +435,25 @@ "In the directive number %u, a precision specification is not allowed before " "'%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "In the directive number %u, the precision specification is invalid." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "In the directive number %u, flags are not allowed before '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "‘msgid’ uses %%m but ‘%s’ doesn't" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "‘%s’ uses %%m but ‘%s’ doesn't" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "‘msgid’ does not use %%m but ‘%s’ uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "‘%s’ does not use %%m but ‘%s’ uses %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -565,24 +563,23 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"‘msgid’" +"a format specification for argument {%u}, as in '%s', doesn't exist in ‘%s" +"[0m’" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "a format specification for argument {%u} doesn't exist in ‘%s’" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument {%u} are " -"not the same" +"format specifications in ‘%s’ and ‘%s’ for argument {%u} are not " +"the same" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -597,17 +594,17 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgstr[1] "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format @@ -655,16 +652,14 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "" -"format specifications in ‘msgid’ and ‘%s’ are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "format specifications in ‘%s’ and ‘%s’ are not equivalent" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" -"format specifications in ‘%s’ are not a subset of those in ‘msgid" -"[0m’" +"format specifications in ‘%s’ are not a subset of those in ‘%s’" #: src/format-perl.c:433 #, c-format @@ -675,13 +670,13 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "" "a format specification for argument ‘%s’ doesn't exist in ‘%s’" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -689,55 +684,52 @@ "The string refers to arguments both through argument names and through " "unnamed argument specifications." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "The string refers to the argument named ‘%s’ in incompatible ways." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"format specifications in ‘msgid’ expect a mapping, those in ‘%s’ " +"format specifications in ‘%s’ expect a mapping, those in ‘%s’ " "expect a tuple" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"format specifications in ‘msgid’ expect a tuple, those in ‘%s’ " +"format specifications in ‘%s’ expect a tuple, those in ‘%s’ " "expect a mapping" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"‘msgid’" +"a format specification for argument '%s', as in '%s', doesn't exist in ‘%s" +"[0m’" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument ‘%s" -"[0m’ are not the same" +"format specifications in ‘%s’ and ‘%s’ for argument ‘%s’ " +"are not the same" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"‘msgid’ is a simple format string, but ‘%s’ is not: it contains " -"an ‘L’ flag or a double-digit argument number" +"‘%s’ is a simple format string, but ‘%s’ is not: it contains an " +"‘L’ flag or a double-digit argument number" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -781,11 +773,11 @@ "The character that terminates the directive number %u is not a digit between " "1 and 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -798,38 +790,38 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Written by %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "too many arguments" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Try ‘%s --help’ for more information.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Usage: %s [OPTION]\n" @@ -865,29 +857,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address addresses for the hostname\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informative output:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help display this help and exit\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version output version information and exit\n" @@ -896,11 +888,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Report bugs to .\n" @@ -909,30 +901,30 @@ msgid "could not get host name" msgstr "could not get host name" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "at most one input file allowed" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s and %s are mutually exclusive" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Usage: %s [OPTION] [INPUTFILE]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -941,63 +933,63 @@ "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Mandatory arguments to long options are mandatory for short options too.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Input file location:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INPUTFILE input PO file\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "If no input file is given or if it is -, standard input is read.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Output file location:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FILE write output to specified file\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -1006,71 +998,71 @@ "The results are written to standard output if no output file is specified\n" "or if it is -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Message selection:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated keep translated, remove untranslated messages\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" " --untranslated keep untranslated, remove translated messages\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy remove ‘fuzzy’ marked messages\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy keep ‘fuzzy’ marked messages\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete remove obsolete #~ messages\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete keep obsolete #~ messages\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Attribute manipulation:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy set all messages ‘fuzzy’\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy set all messages non-'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete set all messages obsolete\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete set all messages non-obsolete\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1079,50 +1071,50 @@ " --clear-previous remove the “previous msgid” from all " "messages\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Input file syntax:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input input file is in Java .properties syntax\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1131,55 +1123,78 @@ " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Output details:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=STYLEFILE specify CSS style rule file for --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" " -e, --no-escape do not use C escapes in output (default)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" " -E, --escape use C escapes in output, no extended chars\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po write PO file even if empty\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent write the .po file using indented style\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location do not write ‘#: filename:line’ lines\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1187,40 +1202,40 @@ " -n, --add-location generate ‘#: filename:line’ lines " "(default)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict write out strict Uniforum conforming .po file\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output write out a Java .properties file\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMBER set output page width\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1229,31 +1244,31 @@ " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output generate sorted output\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file sort output by file location\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "impossible selection criteria specified (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Usage: %s [OPTION] [INPUTFILE]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1276,23 +1291,23 @@ "is specified, they will be taken from the first PO file to define them.\n" "File positions from all PO files will be cumulated.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INPUTFILE ... input files\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=FILE get list of input files from FILE\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "If input file is -, standard input is read.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1301,7 +1316,7 @@ " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1310,7 +1325,7 @@ " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1319,16 +1334,16 @@ " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input input files are in Java .properties syntax\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1337,12 +1352,12 @@ " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NAME encoding for output\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1351,46 +1366,35 @@ " --use-first use first available translation for each\n" " message, don't merge several translations\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set ‘Language’ field in the header " +"entry\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "no input files given" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "exactly 2 input files required" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Usage: %s [OPTION] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1407,22 +1411,22 @@ "you have translated each and every message in your program. Where an exact\n" "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po translations\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot references to the sources\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Operation modifiers:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1431,59 +1435,64 @@ " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching do not use fuzzy matching\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy consider fuzzy entries\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated consider untranslated entries\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "this message is untranslated" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "this message needs to be reviewed by the translator" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "this message is used but not defined..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...but this definition is similar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "this message is used but not defined in %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "warning: this message is not used" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "found %d fatal error" msgstr[1] "found %d fatal errors" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "at least two files must be specified" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1504,7 +1513,7 @@ "PO file to define them. File positions from all PO files will be\n" "cumulated.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1513,7 +1522,7 @@ " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" @@ -1521,35 +1530,35 @@ " --omit-header don't write header with ‘msgid \"\"’ " "entry\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Converts a translation catalog to a different character encoding.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Conversion target:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "The default encoding is the current locale's encoding.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent indented output style\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location suppress ‘#: filename:line’ lines\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1557,28 +1566,28 @@ " --add-location preserve ‘#: filename:line’ lines " "(default)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict strict Uniforum output style\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "no input file given" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "exactly one input file required" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Usage: %s [OPTION] INPUTFILE\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1591,22 +1600,22 @@ "xgettext). Untranslated entries are assigned a translation that is\n" "identical to the msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " INPUTFILE input PO or POT file\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "missing command name" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1621,7 +1630,7 @@ "msgexec's output. msgexec's return code is the maximum return code\n" "across all invocations.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1630,42 +1639,42 @@ "A special builtin command called ‘0’ outputs the translation, followed by a\n" "null byte. The output of “msgexec 0” is suitable as input for “xargs -0”.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INPUTFILE input PO file\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "write to stdout failed" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "write to %s subprocess failed" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "missing filter name" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "at least one sed script must be specified" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Applies a filter to all translations of a translation catalog.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1674,19 +1683,19 @@ "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1697,126 +1706,108 @@ "commands\n" " to be executed\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" " --no-escape do not use C escapes in output (default)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent indented output style\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header keep header entry unmodified, don't filter it\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Not yet implemented." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "cannot set up nonblocking I/O to %s subprocess" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "communication with %s subprocess failed" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "read from %s subprocess failed" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s subprocess terminated with exit code %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "the argument to %s should be a single punctuation character" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "invalid endianness: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s requires a “-d directory” specification" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s requires a “-l locale” specification" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s is only valid with %s or %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s is only valid with %s, %s or %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d translated message" msgstr[1] "%d translated messages" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d fuzzy translation" msgstr[1] ", %d fuzzy translations" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d untranslated message" msgstr[1] ", %d untranslated messages" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Usage: %s [OPTION] filename.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Generate binary message catalog from textual translation description.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1825,17 +1816,17 @@ "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filename.po ... input files\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Operation mode:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1844,7 +1835,7 @@ " -j, --java Java mode: generate a Java ResourceBundle " "class\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1853,12 +1844,12 @@ " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# mode: generate a .NET .dll file\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1867,40 +1858,40 @@ " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt mode: generate a Qt .qm file\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict enable strict Uniforum mode\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "If output file is -, output is written to standard output.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Output file location in Java mode:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESOURCE resource name\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1909,14 +1900,14 @@ " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d DIRECTORY base directory of classes directory hierarchy\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1929,12 +1920,12 @@ "separated with an underscore. The -d option is mandatory. The class is\n" "written under the specified directory.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Output file location in C# mode:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1943,7 +1934,7 @@ " -d DIRECTORY base directory for locale dependent .dll " "files\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1952,18 +1943,18 @@ "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Output file location in Tcl mode:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORY base directory of .msg message catalogs\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1972,12 +1963,12 @@ "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Input file interpretation:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1988,13 +1979,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format check language dependent format strings\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2003,7 +1994,7 @@ " --check-header verify presence and contents of the header " "entry\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2012,7 +2003,7 @@ " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2021,7 +2012,7 @@ " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2032,97 +2023,97 @@ "for\n" " menu items\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy use fuzzy entries in output\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash binary file will not include the hash table\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics print statistics about translations\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose increase verbosity level\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "warning: PO file header missing or invalid\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "warning: charset conversion will not work\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "warning: PO file header fuzzy\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "warning: older versions of msgfmt will give an error on this\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domain name “%s” not suitable as file name" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domain name “%s” not suitable as file name: will use prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "‘domain %s’ directive ignored" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "empty ‘msgstr’ entry ignored" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "fuzzy ‘msgstr’ entry ignored" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: warning: source file contains fuzzy translation" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "error while reading “%s”" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2131,7 +2122,7 @@ "option ‘%c’ cannot be used before ‘J’ or ‘K’ or ‘T’ " "or ‘C’ or ‘X’ has been specified" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2140,7 +2131,7 @@ "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2215,24 +2206,24 @@ " -v, --invert-match output only the messages that do not match any\n" " selection criterion\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" " --escape use C escapes in output, no extended chars\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output generate sorted output\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file sort output by file location\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2242,7 +2233,7 @@ "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2253,12 +2244,12 @@ "Please specify the locale through the --locale option or\n" "the output .po file through the --output-file option.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Created %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2267,12 +2258,12 @@ "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=INPUTFILE input POT file\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2283,12 +2274,12 @@ "file.\n" "If it is -, standard input is read.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=FILE write output to specified PO file\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2297,19 +2288,19 @@ "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC set target locale\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator assume the PO file is automatically generated\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2317,12 +2308,12 @@ "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "error reading current directory" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2330,14 +2321,14 @@ "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s subprocess failed with exit code %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2354,22 +2345,22 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "English translations for %s package" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "present charset “%s” is not a portable encoding name" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "two different charsets “%s” and “%s” in input file" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2377,7 +2368,7 @@ "input file ‘%s’ doesn't contain a header entry with a charset " "specification" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2386,19 +2377,19 @@ "domain “%s” in input file ‘%s’ doesn't contain a header entry " "with a charset specification" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "target charset “%s” is not a portable encoding name." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "warning: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2407,7 +2398,7 @@ "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2420,7 +2411,7 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2433,7 +2424,7 @@ "Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2446,12 +2437,12 @@ "Output of ‘%s’ might be incorrect.\n" "Possible workarounds are:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Set LC_ALL to a locale with encoding %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2462,7 +2453,7 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2475,7 +2466,7 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2486,25 +2477,25 @@ "Output of ‘%s’ might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "plural expression can produce negative values" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu but plural expression can produce values as large as %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "plural expression can produce division by zero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "plural expression can produce integer overflow" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2512,51 +2503,51 @@ "plural expression can produce arithmetic exceptions, possibly division by " "zero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Try using the following, valid for %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "message catalog has plural form translations" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "but header entry lacks a “plural=EXPRESSION” attribute" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "but header entry lacks a “nplurals=INTEGER” attribute" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "invalid nplurals value" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "invalid plural expression" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "but some messages have only one plural form" msgstr[1] "but some messages have only %lu plural forms" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "but some messages have one plural form" msgstr[1] "but some messages have %lu plural forms" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2564,91 +2555,91 @@ "message catalog has plural form translations, but lacks a header entry with " "“Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;”" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "‘msgid’ and ‘msgid_plural’ entries do not both begin with ‘\\n" "[0m’" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" "‘msgid’ and ‘msgstr[%u]’ entries do not both begin with ‘\\n" "[0m’" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "" "‘msgid’ and ‘msgstr’ entries do not both begin with ‘\\n’" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "‘msgid’ and ‘msgid_plural’ entries do not both end with ‘\\n" "[0m’" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" "‘msgid’ and ‘msgstr[%u]’ entries do not both end with ‘\\n’" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "" "‘msgid’ and ‘msgstr’ entries do not both end with ‘\\n’" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "plural handling is a GNU gettext extension" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr lacks the keyboard accelerator mark ‘%c’" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr has too many keyboard accelerator marks ‘%c’" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "headerfield ‘%s’ missing in header\n" +msgid "header field `%s' missing in header\n" +msgstr "header field ‘%s’ missing in header\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "header field ‘%s’ should start at beginning of line\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "some header fields still have the initial default value\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "field ‘%s’ still has initial default value\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "header field ‘%s’ still has the initial default value\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: input is not valid in “%s” encoding" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" "%s: error while converting from “%s” encoding to “%s” encoding" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "input file doesn't contain a header entry with a charset specification" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2657,7 +2648,7 @@ "Cannot convert from “%s” to “%s”. %s relies on iconv(), and iconv" "() does not support this conversion." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2666,8 +2657,8 @@ "Conversion from “%s” to “%s” introduces duplicates: some " "different msgids become equal." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2676,16 +2667,16 @@ "Cannot convert from “%s” to “%s”. %s relies on iconv(). This " "version was built without iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s is only valid with %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "backup type" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2708,17 +2699,17 @@ "comments and file positions will be preserved. Where an exact match\n" "cannot be found, fuzzy matching is used to produce better results.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po translations referring to old sources\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot references to new sources\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2727,7 +2718,7 @@ " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2736,27 +2727,27 @@ " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Output file location in update mode:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "The result is written back to def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL make a backup of def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFIX override the usual backup suffix\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2775,7 +2766,7 @@ " existing, nil numbered if numbered backups exist, simple otherwise\n" " simple, never always make simple backups\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2786,34 +2777,29 @@ "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching do not use fuzzy matching\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous keep previous msgids of translated messages\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent suppress progress indicators\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "this message should define plural forms" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "this message should not define plural forms" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2822,26 +2808,28 @@ "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " done.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s and explicit file names are mutually exclusive" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Usage: %s [OPTION] [FILE]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Convert binary message catalog to Uniforum style .po file.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2850,12 +2838,12 @@ " -j, --java Java mode: input is a Java ResourceBundle " "class\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# mode: input is a .NET .dll file\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2864,24 +2852,24 @@ " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FILE ... input .mo files\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Input file location in Java mode:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2892,12 +2880,12 @@ "name,\n" "separated with an underscore. The class is located using the CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Input file location in C# mode:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2906,12 +2894,12 @@ "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Input file location in Tcl mode:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2920,17 +2908,17 @@ "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent write indented output style\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict write strict uniforum style\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2951,12 +2939,12 @@ "specified, they will be taken from the first translation. File positions\n" "will be cumulated. When using the --unique option, duplicates are discarded.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated print only duplicates\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2965,7 +2953,7 @@ " -u, --unique print only unique messages, discard " "duplicates\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3051,65 +3039,65 @@ msgid "plural form has wrong index" msgstr "plural form has wrong index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "too many errors, aborting" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "invalid multibyte sequence" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "incomplete multibyte sequence at end of file" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "incomplete multibyte sequence at end of line" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv failure" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "keyword “%s” unknown" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "invalid control sequence" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "end-of-file within string" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "end-of-line within string" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "context separator within string" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "this file may not contain domain directives" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "duplicate message definition" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "this is the location of the first definition" @@ -3194,17 +3182,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "error while converting from “%s” encoding to “%s” encoding" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "expected two arguments" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Usage: %s [OPTION] URL FILE\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3213,11 +3201,26 @@ "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "error writing stdout" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Retrieving %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " timed out.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " failed.\n" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3260,41 +3263,41 @@ "message catalog has plural form translations, but the output format does not " "support them." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "cannot create output file “%s”" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard output" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "failed to create directory “%s”" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "compilation of C# class failed, please try --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "compilation of C# class failed" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "not a valid Java class name: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "compilation of Java class failed, please try --verbose or set $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "compilation of Java class failed, please try to set $JAVAC" @@ -3304,7 +3307,7 @@ msgid "error while opening \"%s\" for writing" msgstr "error while opening “%s” for writing" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3312,7 +3315,7 @@ "internationalized messages should not contain the ‘\\%c’ escape " "sequence" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3325,7 +3328,7 @@ "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3348,13 +3351,13 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" @@ -3373,7 +3376,7 @@ msgid "error while writing to %s subprocess" msgstr "error while writing to %s subprocess" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3381,7 +3384,7 @@ "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3405,36 +3408,31 @@ "message catalog has plural form translations\n" "but the Tcl message catalog format doesn't support plural handling\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: warning: unterminated string" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: warning: unterminated regular expression" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: warning: unterminated character constant" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: warning: unterminated string literal" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Please specify the source encoding through --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3443,7 +3441,7 @@ "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3452,7 +3450,7 @@ "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3461,7 +3459,7 @@ "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3470,12 +3468,12 @@ "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv failure" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3484,32 +3482,32 @@ "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: warning: invalid Unicode character" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: warning: unterminated string constant" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: warning: ‘)’ found where ‘}’ was expected" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: warning: ‘}’ found where ‘)’ was expected" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3518,62 +3516,59 @@ "Language “glade” is not supported. %s relies on expat.\n" "This version was built without expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: warning: lone surrogate U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: can't find string terminator “%s” anywhere before EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: missing right brace on \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" "%s:%d: invalid interpolation (“\\l”) of 8bit character “%c”" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" "%s:%d: invalid interpolation (“\\u”) of 8bit character “%c”" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: invalid variable interpolation at “%c”" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" "%s:%d: invalid interpolation (“\\L”) of 8bit character “%c”" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" "%s:%d: invalid interpolation (“\\U”) of 8bit character “%c”" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3584,7 +3579,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3595,7 +3590,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3606,7 +3601,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3617,7 +3612,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3628,27 +3623,27 @@ "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Unknown encoding “%s”. Proceeding with ASCII instead." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: invalid string definition" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: missing number after #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: invalid string expression" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3657,27 +3652,27 @@ "%s:%lu: warning: the syntax $“...” is deprecated due to security " "reasons; use eval_gettext instead" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--join-existing cannot be used when output is written to stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext cannot work without keywords to look for" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "warning: file ‘%s’ extension ‘%s’ is unknown; will try C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Extract translatable strings from given input files.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3686,24 +3681,24 @@ " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE write output to specified file\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Choice of input file language:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3722,12 +3717,12 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ shorthand for --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3736,7 +3731,7 @@ "By default the language is guessed depending on the input file name " "extension.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3745,41 +3740,47 @@ " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "By default the input files are assumed to be in ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing join messages with existing file\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Language specific options:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extract all strings\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3792,16 +3793,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3812,7 +3813,7 @@ "argument\n" " number ARG of keyword WORD\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3825,114 +3826,133 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs understand ANSI C trigraphs for input\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (only languages C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt recognize Qt format strings\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (only language C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde recognize KDE 4 format strings\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost recognize Boost format strings\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug more detailed formatstring recognition result\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output write out a Java .properties file\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=STRING set copyright holder in output\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" " --foreign-user omit FSF copyright in output for foreign user\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr " --package-name=PACKAGE set package name in output\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --package-version=VERSION set package version in output\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard input" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Non-ASCII character at %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Non-ASCII comment at or before %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Non-ASCII string at %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: warning: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3941,16 +3961,16 @@ "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3964,7 +3984,7 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3974,27 +3994,27 @@ "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "ambiguous argument specification for keyword ‘%.*s’" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "warning: missing context for keyword ‘%.*s’" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "warning: missing context for plural argument of keyword ‘%.*s’" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "context mismatch between singular and plural form" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4006,7 +4026,7 @@ "the MSGID_BUGS_ADDRESS variable there; otherwise please\n" "specify an --msgid-bugs-address command line option.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "language ‘%s’ unknown" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/en@quot.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/en@quot.gmo differ diff -Nru gettext-0.17/gettext-tools/po/en@quot.po gettext-0.18.1.1/gettext-tools/po/en@quot.po --- gettext-0.17/gettext-tools/po/en@quot.po 2007-11-02 02:23:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/en@quot.po 2010-06-03 23:57:27.000000000 +0000 @@ -1,7 +1,7 @@ # English translations for gettext-tools package. -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the gettext-tools package. -# Automatically generated, 2007. +# Automatically generated, 2010. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation @@ -27,12 +27,13 @@ # msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.17\n" +"Project-Id-Version: gettext-tools 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-06-04 01:57+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" +"Language: en@quot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -53,22 +54,22 @@ msgid "Valid arguments are:" msgstr "Valid arguments are:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "cannot find a temporary directory, try setting $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "cannot create a temporary directory using template “%s”" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "cannot remove temporary file %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "cannot remove temporary directory %s" @@ -77,44 +78,44 @@ msgid "write error" msgstr "write error" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "error while opening “%s” for reading" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "cannot open backup file “%s” for writing" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "error reading “%s”" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "error writing “%s”" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "error after reading “%s”" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() failed" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C# compiler not found, try installing pnet" @@ -124,74 +125,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "C# virtual machine not found, try installing pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Unknown system error" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s subprocess failed" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: option ‘%s’ is ambiguous\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: option ‘--%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: option ‘%c%s’ doesn't allow an argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: option ‘%s’ requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: option ‘--%s’ requires an argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: unrecognized option ‘--%s’\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: unrecognized option ‘%c%s’\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: invalid option -- ‘%c’\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: option requires an argument -- ‘%c’\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: option requires an argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: option ‘-W %s’ is ambiguous\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: option ‘-W %s’ doesn't allow an argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: option ‘-W %s’ requires an argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -203,20 +203,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "invalid target_version argument to compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "failed to create “%s”" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "error while writing “%s” file" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Java compiler not found, try installing gcj or set $JAVAC" @@ -226,20 +226,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "Java virtual machine not found, try installing gij or set $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s subprocess I/O error" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memory exhausted" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -258,73 +258,72 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle failed with error code 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle failed" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "cannot restore fd %d: dup2 failed" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s subprocess" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s subprocess got fatal signal %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" -msgstr "‘%s’ is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" +msgstr "‘%s’ is not a valid %s format string, unlike '%s'. Reason: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument %u, as in '%s', doesn't exist in ‘msgid’" +"a format specification for argument %u, as in '%s', doesn't exist in ‘%s’" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "a format specification for argument %u doesn't exist in ‘%s’" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument %u are not the same" +"format specifications in ‘%s’ and ‘%s’ for argument %u are not the same" #: src/format-boost.c:449 #, c-format @@ -352,10 +351,10 @@ msgstr "" "The string refers to argument number %u but ignores argument number %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "number of format specifications in ‘msgid’ and ‘%s’ does not match" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "number of format specifications in ‘%s’ and ‘%s’ does not match" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -398,17 +397,17 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "The string contains a lone ‘}’ after directive number %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "In the directive number %u, the flags combination is invalid." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "In the directive number %u, a precision is not allowed before '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -417,7 +416,7 @@ "In the directive number %u, the argument number for the precision must be " "equal to %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -426,25 +425,25 @@ "In the directive number %u, a precision specification is not allowed before " "'%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "In the directive number %u, the precision specification is invalid." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "In the directive number %u, flags are not allowed before '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "‘msgid’ uses %%m but ‘%s’ doesn't" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "‘%s’ uses %%m but ‘%s’ doesn't" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "‘msgid’ does not use %%m but ‘%s’ uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "‘%s’ does not use %%m but ‘%s’ uses %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -553,23 +552,21 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"‘msgid’" +"a format specification for argument {%u}, as in '%s', doesn't exist in ‘%s’" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "a format specification for argument {%u} doesn't exist in ‘%s’" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument {%u} are not the same" +"format specifications in ‘%s’ and ‘%s’ for argument {%u} are not the same" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -584,17 +581,17 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgstr[1] "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format @@ -642,13 +639,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "format specifications in ‘msgid’ and ‘%s’ are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "format specifications in ‘%s’ and ‘%s’ are not equivalent" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "format specifications in ‘%s’ are not a subset of those in ‘msgid’" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "format specifications in ‘%s’ are not a subset of those in ‘%s’" #: src/format-perl.c:433 #, c-format @@ -659,12 +656,12 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "a format specification for argument ‘%s’ doesn't exist in ‘%s’" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -672,53 +669,47 @@ "The string refers to arguments both through argument names and through " "unnamed argument specifications." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "The string refers to the argument named ‘%s’ in incompatible ways." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"format specifications in ‘msgid’ expect a mapping, those in ‘%s’ expect a " -"tuple" +"format specifications in ‘%s’ expect a mapping, those in ‘%s’ expect a tuple" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"format specifications in ‘msgid’ expect a tuple, those in ‘%s’ expect a " -"mapping" +"format specifications in ‘%s’ expect a tuple, those in ‘%s’ expect a mapping" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"‘msgid’" +"a format specification for argument '%s', as in '%s', doesn't exist in ‘%s’" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"format specifications in ‘msgid’ and ‘%s’ for argument ‘%s’ are not the same" +"format specifications in ‘%s’ and ‘%s’ for argument ‘%s’ are not the same" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"‘msgid’ is a simple format string, but ‘%s’ is not: it contains an ‘L’ flag " -"or a double-digit argument number" +"‘%s’ is a simple format string, but ‘%s’ is not: it contains an ‘L’ flag or " +"a double-digit argument number" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -762,11 +753,11 @@ "The character that terminates the directive number %u is not a digit between " "1 and 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -779,38 +770,38 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Written by %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "too many arguments" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Try ‘%s --help’ for more information.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Usage: %s [OPTION]\n" @@ -846,29 +837,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address addresses for the hostname\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informative output:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help display this help and exit\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version output version information and exit\n" @@ -877,11 +868,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Report bugs to .\n" @@ -890,30 +881,30 @@ msgid "could not get host name" msgstr "could not get host name" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "at most one input file allowed" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s and %s are mutually exclusive" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Usage: %s [OPTION] [INPUTFILE]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -922,63 +913,63 @@ "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Mandatory arguments to long options are mandatory for short options too.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Input file location:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INPUTFILE input PO file\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "If no input file is given or if it is -, standard input is read.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Output file location:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FILE write output to specified file\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -987,71 +978,71 @@ "The results are written to standard output if no output file is specified\n" "or if it is -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Message selection:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated keep translated, remove untranslated messages\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" " --untranslated keep untranslated, remove translated messages\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy remove ‘fuzzy’ marked messages\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy keep ‘fuzzy’ marked messages\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete remove obsolete #~ messages\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete keep obsolete #~ messages\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Attribute manipulation:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy set all messages ‘fuzzy’\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy set all messages non-'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete set all messages obsolete\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete set all messages non-obsolete\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1059,50 +1050,50 @@ msgstr "" " --clear-previous remove the “previous msgid” from all messages\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Input file syntax:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input input file is in Java .properties syntax\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1111,94 +1102,117 @@ " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Output details:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=STYLEFILE specify CSS style rule file for --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" " -e, --no-escape do not use C escapes in output (default)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" " -E, --escape use C escapes in output, no extended chars\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po write PO file even if empty\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent write the .po file using indented style\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location do not write ‘#: filename:line’ lines\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" " -n, --add-location generate ‘#: filename:line’ lines (default)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict write out strict Uniforum conforming .po file\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output write out a Java .properties file\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMBER set output page width\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1207,31 +1221,31 @@ " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output generate sorted output\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file sort output by file location\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "impossible selection criteria specified (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Usage: %s [OPTION] [INPUTFILE]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1254,23 +1268,23 @@ "is specified, they will be taken from the first PO file to define them.\n" "File positions from all PO files will be cumulated.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INPUTFILE ... input files\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=FILE get list of input files from FILE\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "If input file is -, standard input is read.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1279,7 +1293,7 @@ " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1288,7 +1302,7 @@ " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1297,16 +1311,16 @@ " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input input files are in Java .properties syntax\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1315,12 +1329,12 @@ " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NAME encoding for output\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1329,46 +1343,34 @@ " --use-first use first available translation for each\n" " message, don't merge several translations\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set ‘Language’ field in the header entry\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "no input files given" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "exactly 2 input files required" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Usage: %s [OPTION] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1385,22 +1387,22 @@ "you have translated each and every message in your program. Where an exact\n" "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po translations\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot references to the sources\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Operation modifiers:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1409,59 +1411,64 @@ " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching do not use fuzzy matching\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy consider fuzzy entries\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated consider untranslated entries\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "this message is untranslated" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "this message needs to be reviewed by the translator" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "this message is used but not defined..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...but this definition is similar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "this message is used but not defined in %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "warning: this message is not used" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "found %d fatal error" msgstr[1] "found %d fatal errors" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "at least two files must be specified" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1482,7 +1489,7 @@ "PO file to define them. File positions from all PO files will be\n" "cumulated.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1491,69 +1498,69 @@ " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header don't write header with ‘msgid \"\"’ entry\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Converts a translation catalog to a different character encoding.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Conversion target:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "The default encoding is the current locale's encoding.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent indented output style\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location suppress ‘#: filename:line’ lines\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" " --add-location preserve ‘#: filename:line’ lines (default)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict strict Uniforum output style\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "no input file given" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "exactly one input file required" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Usage: %s [OPTION] INPUTFILE\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1566,22 +1573,22 @@ "xgettext). Untranslated entries are assigned a translation that is\n" "identical to the msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " INPUTFILE input PO or POT file\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "missing command name" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1596,7 +1603,7 @@ "msgexec's output. msgexec's return code is the maximum return code\n" "across all invocations.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1605,42 +1612,42 @@ "A special builtin command called ‘0’ outputs the translation, followed by a\n" "null byte. The output of “msgexec 0” is suitable as input for “xargs -0”.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INPUTFILE input PO file\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "write to stdout failed" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "write to %s subprocess failed" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "missing filter name" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "at least one sed script must be specified" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Applies a filter to all translations of a translation catalog.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1649,19 +1656,19 @@ "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1672,126 +1679,108 @@ "commands\n" " to be executed\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" " --no-escape do not use C escapes in output (default)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent indented output style\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header keep header entry unmodified, don't filter it\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Not yet implemented." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "cannot set up nonblocking I/O to %s subprocess" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "communication with %s subprocess failed" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "read from %s subprocess failed" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s subprocess terminated with exit code %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "the argument to %s should be a single punctuation character" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "invalid endianness: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s requires a “-d directory” specification" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s requires a “-l locale” specification" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s is only valid with %s or %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s is only valid with %s, %s or %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d translated message" msgstr[1] "%d translated messages" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d fuzzy translation" msgstr[1] ", %d fuzzy translations" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d untranslated message" msgstr[1] ", %d untranslated messages" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Usage: %s [OPTION] filename.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Generate binary message catalog from textual translation description.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1800,17 +1789,17 @@ "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filename.po ... input files\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Operation mode:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1819,7 +1808,7 @@ " -j, --java Java mode: generate a Java ResourceBundle " "class\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1828,12 +1817,12 @@ " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# mode: generate a .NET .dll file\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1842,40 +1831,40 @@ " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt mode: generate a Qt .qm file\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict enable strict Uniforum mode\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "If output file is -, output is written to standard output.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Output file location in Java mode:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESOURCE resource name\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1884,14 +1873,14 @@ " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d DIRECTORY base directory of classes directory hierarchy\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1904,12 +1893,12 @@ "separated with an underscore. The -d option is mandatory. The class is\n" "written under the specified directory.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Output file location in C# mode:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1918,7 +1907,7 @@ " -d DIRECTORY base directory for locale dependent .dll " "files\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1927,18 +1916,18 @@ "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Output file location in Tcl mode:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORY base directory of .msg message catalogs\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1947,12 +1936,12 @@ "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Input file interpretation:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1963,13 +1952,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format check language dependent format strings\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1978,7 +1967,7 @@ " --check-header verify presence and contents of the header " "entry\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1987,7 +1976,7 @@ " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1996,7 +1985,7 @@ " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2007,97 +1996,97 @@ "for\n" " menu items\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy use fuzzy entries in output\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash binary file will not include the hash table\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics print statistics about translations\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose increase verbosity level\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "warning: PO file header missing or invalid\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "warning: charset conversion will not work\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "warning: PO file header fuzzy\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "warning: older versions of msgfmt will give an error on this\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domain name “%s” not suitable as file name" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domain name “%s” not suitable as file name: will use prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "‘domain %s’ directive ignored" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "empty ‘msgstr’ entry ignored" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "fuzzy ‘msgstr’ entry ignored" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: warning: source file contains fuzzy translation" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "error while reading “%s”" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2106,7 +2095,7 @@ "option ‘%c’ cannot be used before ‘J’ or ‘K’ or ‘T’ or ‘C’ or ‘X’ has been " "specified" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2115,7 +2104,7 @@ "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2190,24 +2179,24 @@ " -v, --invert-match output only the messages that do not match any\n" " selection criterion\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" " --escape use C escapes in output, no extended chars\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output generate sorted output\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file sort output by file location\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2217,7 +2206,7 @@ "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2228,12 +2217,12 @@ "Please specify the locale through the --locale option or\n" "the output .po file through the --output-file option.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Created %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2242,12 +2231,12 @@ "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=INPUTFILE input POT file\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2258,12 +2247,12 @@ "file.\n" "If it is -, standard input is read.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=FILE write output to specified PO file\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2272,19 +2261,19 @@ "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC set target locale\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator assume the PO file is automatically generated\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2292,12 +2281,12 @@ "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "error reading current directory" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2305,14 +2294,14 @@ "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s subprocess failed with exit code %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2329,29 +2318,29 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "English translations for %s package" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "present charset “%s” is not a portable encoding name" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "two different charsets “%s” and “%s” in input file" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" "input file ‘%s’ doesn't contain a header entry with a charset specification" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2360,19 +2349,19 @@ "domain “%s” in input file ‘%s’ doesn't contain a header entry with a charset " "specification" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "target charset “%s” is not a portable encoding name." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "warning: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2381,7 +2370,7 @@ "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2394,7 +2383,7 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2407,7 +2396,7 @@ "Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2420,12 +2409,12 @@ "Output of ‘%s’ might be incorrect.\n" "Possible workarounds are:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Set LC_ALL to a locale with encoding %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2436,7 +2425,7 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2449,7 +2438,7 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2460,25 +2449,25 @@ "Output of ‘%s’ might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "plural expression can produce negative values" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu but plural expression can produce values as large as %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "plural expression can produce division by zero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "plural expression can produce integer overflow" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2486,51 +2475,51 @@ "plural expression can produce arithmetic exceptions, possibly division by " "zero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Try using the following, valid for %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "message catalog has plural form translations" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "but header entry lacks a “plural=EXPRESSION” attribute" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "but header entry lacks a “nplurals=INTEGER” attribute" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "invalid nplurals value" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "invalid plural expression" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "but some messages have only one plural form" msgstr[1] "but some messages have only %lu plural forms" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "but some messages have one plural form" msgstr[1] "but some messages have %lu plural forms" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2538,81 +2527,81 @@ "message catalog has plural form translations, but lacks a header entry with " "“Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;”" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "‘msgid’ and ‘msgid_plural’ entries do not both begin with ‘\\n’" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "‘msgid’ and ‘msgstr[%u]’ entries do not both begin with ‘\\n’" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "‘msgid’ and ‘msgstr’ entries do not both begin with ‘\\n’" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "‘msgid’ and ‘msgid_plural’ entries do not both end with ‘\\n’" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "‘msgid’ and ‘msgstr[%u]’ entries do not both end with ‘\\n’" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "‘msgid’ and ‘msgstr’ entries do not both end with ‘\\n’" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "plural handling is a GNU gettext extension" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr lacks the keyboard accelerator mark ‘%c’" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr has too many keyboard accelerator marks ‘%c’" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "headerfield ‘%s’ missing in header\n" +msgid "header field `%s' missing in header\n" +msgstr "header field ‘%s’ missing in header\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "header field ‘%s’ should start at beginning of line\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "some header fields still have the initial default value\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "field ‘%s’ still has initial default value\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "header field ‘%s’ still has the initial default value\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: input is not valid in “%s” encoding" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: error while converting from “%s” encoding to “%s” encoding" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "input file doesn't contain a header entry with a charset specification" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2621,7 +2610,7 @@ "Cannot convert from “%s” to “%s”. %s relies on iconv(), and iconv() does not " "support this conversion." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2630,8 +2619,8 @@ "Conversion from “%s” to “%s” introduces duplicates: some different msgids " "become equal." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2640,16 +2629,16 @@ "Cannot convert from “%s” to “%s”. %s relies on iconv(). This version was " "built without iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s is only valid with %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "backup type" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2672,17 +2661,17 @@ "comments and file positions will be preserved. Where an exact match\n" "cannot be found, fuzzy matching is used to produce better results.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po translations referring to old sources\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot references to new sources\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2691,7 +2680,7 @@ " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2700,27 +2689,27 @@ " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Output file location in update mode:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "The result is written back to def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL make a backup of def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFIX override the usual backup suffix\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2739,7 +2728,7 @@ " existing, nil numbered if numbered backups exist, simple otherwise\n" " simple, never always make simple backups\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2750,34 +2739,29 @@ "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching do not use fuzzy matching\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous keep previous msgids of translated messages\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent suppress progress indicators\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "this message should define plural forms" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "this message should not define plural forms" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2786,26 +2770,28 @@ "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " done.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s and explicit file names are mutually exclusive" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Usage: %s [OPTION] [FILE]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Convert binary message catalog to Uniforum style .po file.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2814,12 +2800,12 @@ " -j, --java Java mode: input is a Java ResourceBundle " "class\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# mode: input is a .NET .dll file\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2828,24 +2814,24 @@ " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FILE ... input .mo files\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Input file location in Java mode:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2856,12 +2842,12 @@ "name,\n" "separated with an underscore. The class is located using the CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Input file location in C# mode:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2870,12 +2856,12 @@ "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Input file location in Tcl mode:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2884,17 +2870,17 @@ "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent write indented output style\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict write strict uniforum style\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2915,12 +2901,12 @@ "specified, they will be taken from the first translation. File positions\n" "will be cumulated. When using the --unique option, duplicates are discarded.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated print only duplicates\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2929,7 +2915,7 @@ " -u, --unique print only unique messages, discard " "duplicates\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3015,65 +3001,65 @@ msgid "plural form has wrong index" msgstr "plural form has wrong index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "too many errors, aborting" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "invalid multibyte sequence" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "incomplete multibyte sequence at end of file" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "incomplete multibyte sequence at end of line" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv failure" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "keyword “%s” unknown" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "invalid control sequence" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "end-of-file within string" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "end-of-line within string" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "context separator within string" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "this file may not contain domain directives" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "duplicate message definition" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "this is the location of the first definition" @@ -3158,17 +3144,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "error while converting from “%s” encoding to “%s” encoding" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "expected two arguments" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Usage: %s [OPTION] URL FILE\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3177,11 +3163,26 @@ "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "error writing stdout" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Retrieving %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " timed out.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " failed.\n" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3224,41 +3225,41 @@ "message catalog has plural form translations, but the output format does not " "support them." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "cannot create output file “%s”" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard output" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "failed to create directory “%s”" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "compilation of C# class failed, please try --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "compilation of C# class failed" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "not a valid Java class name: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "compilation of Java class failed, please try --verbose or set $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "compilation of Java class failed, please try to set $JAVAC" @@ -3268,14 +3269,14 @@ msgid "error while opening \"%s\" for writing" msgstr "error while opening “%s” for writing" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "internationalized messages should not contain the ‘\\%c’ escape sequence" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3288,7 +3289,7 @@ "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3311,13 +3312,13 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" @@ -3336,7 +3337,7 @@ msgid "error while writing to %s subprocess" msgstr "error while writing to %s subprocess" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3344,7 +3345,7 @@ "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3368,36 +3369,31 @@ "message catalog has plural form translations\n" "but the Tcl message catalog format doesn't support plural handling\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: warning: unterminated string" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: warning: unterminated regular expression" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: warning: unterminated character constant" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: warning: unterminated string literal" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Please specify the source encoding through --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3406,7 +3402,7 @@ "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3415,7 +3411,7 @@ "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3424,7 +3420,7 @@ "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3433,12 +3429,12 @@ "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv failure" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3447,32 +3443,32 @@ "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: warning: invalid Unicode character" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: warning: unterminated string constant" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: warning: ‘)’ found where ‘}’ was expected" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: warning: ‘}’ found where ‘)’ was expected" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3481,58 +3477,55 @@ "Language “glade” is not supported. %s relies on expat.\n" "This version was built without expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: warning: lone surrogate U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: can't find string terminator “%s” anywhere before EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: missing right brace on \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: invalid interpolation (“\\l”) of 8bit character “%c”" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: invalid interpolation (“\\u”) of 8bit character “%c”" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: invalid variable interpolation at “%c”" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: invalid interpolation (“\\L”) of 8bit character “%c”" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: invalid interpolation (“\\U”) of 8bit character “%c”" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3543,7 +3536,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3554,7 +3547,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3565,7 +3558,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3576,7 +3569,7 @@ "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3587,27 +3580,27 @@ "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Unknown encoding “%s”. Proceeding with ASCII instead." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: invalid string definition" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: missing number after #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: invalid string expression" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3616,27 +3609,27 @@ "%s:%lu: warning: the syntax $“...” is deprecated due to security reasons; " "use eval_gettext instead" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--join-existing cannot be used when output is written to stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext cannot work without keywords to look for" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "warning: file ‘%s’ extension ‘%s’ is unknown; will try C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Extract translatable strings from given input files.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3645,24 +3638,24 @@ " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE write output to specified file\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Choice of input file language:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3681,12 +3674,12 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ shorthand for --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3695,7 +3688,7 @@ "By default the language is guessed depending on the input file name " "extension.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3704,41 +3697,47 @@ " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "By default the input files are assumed to be in ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing join messages with existing file\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Language specific options:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extract all strings\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3751,16 +3750,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3771,7 +3770,7 @@ "argument\n" " number ARG of keyword WORD\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3784,114 +3783,133 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs understand ANSI C trigraphs for input\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (only languages C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt recognize Qt format strings\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (only language C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde recognize KDE 4 format strings\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost recognize Boost format strings\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug more detailed formatstring recognition result\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output write out a Java .properties file\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=STRING set copyright holder in output\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" " --foreign-user omit FSF copyright in output for foreign user\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr " --package-name=PACKAGE set package name in output\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --package-version=VERSION set package version in output\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard input" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Non-ASCII character at %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Non-ASCII comment at or before %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Non-ASCII string at %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: warning: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3900,16 +3918,16 @@ "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3922,7 +3940,7 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3932,27 +3950,27 @@ "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "ambiguous argument specification for keyword ‘%.*s’" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "warning: missing context for keyword ‘%.*s’" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "warning: missing context for plural argument of keyword ‘%.*s’" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "context mismatch between singular and plural form" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3964,7 +3982,7 @@ "the MSGID_BUGS_ADDRESS variable there; otherwise please\n" "specify an --msgid-bugs-address command line option.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "language ‘%s’ unknown" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/es.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/es.gmo differ diff -Nru gettext-0.17/gettext-tools/po/es.po gettext-0.18.1.1/gettext-tools/po/es.po --- gettext-0.17/gettext-tools/po/es.po 2007-11-02 02:23:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/es.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: GNU gettext-tools 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2005-06-27 17:09-0500\n" "Last-Translator: Max de Mendizbal \n" "Language-Team: Spanish \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +32,22 @@ msgid "Valid arguments are:" msgstr "Los argumentos vlidos son:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "no se puede encontrar un directorio temporal, pruebe poner $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "no se puede crear un directorio temporal utilizando el formato \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "no se puede crear el fichero de salida \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "no se puede crear un directorio temporal utilizando el formato \"%s\"" @@ -55,44 +56,44 @@ msgid "write error" msgstr "error de escritura" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "error al abrir el fichero \"%s\" para lectura" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "no se puede abrir el fichero de respaldo \"%s\" para escritura" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "error al leer \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "error al escribir \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "error despus de leer \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fallo en fdopen()" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "No se encontr al compilador de C#, intente instalar pnet" @@ -104,76 +105,73 @@ # Nota: El error es del sistema, pero no se sabe cul es el error, # por eso es (adems) desconocido. -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Error del sistema desconocido" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "fallo en el subproceso %s" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: la opcin `%s' es ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: la opcin `--%s' no admite ningn argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: la opcin `%c%s' no admite ningn argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: la opcin `%s' requiere un argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opcin no reconocida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opcin no reconocida `%c%s'\n" -# acepto la sugerencia de em en cuanto a que invlida parece crcel -# o intil pero mejor puse invlida -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opcin invlida -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opcin invlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: la opcin requiere un argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: la opcin `-W %s' es ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: la opcin `-W %s' no admite ningn argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: la opcin `%s' requiere un argumento\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -185,20 +183,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "fallo al crear \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "hubo un error al escribir el fichero \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -211,20 +209,20 @@ "No se encontr a la mquina virtual de Java, intente instalar gij o poner " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "error de E/S en el subproceso %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "Memoria agotada" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -243,75 +241,72 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" -"fallo de duplicacin de manejador (DuplicateHandle) con cdigo de error 0x%" -"08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "fallo en _open_osfhandle" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "no se puede crear el fichero de salida \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "subproceso %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "el subproceso %s tiene una seal fatal %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "'%s' no es un formato de cadena vlido %s, a diferencia de 'msgid'. Razn: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "una especificacin de formato para el argumento %u, como en '%s', no existe " "en 'msgid'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "una especificacin de formato para el argumento %u no existe en '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "las especificaciones de formato en 'msgid' y '%s' para el argumento %u no " "son las mismas" @@ -346,9 +341,9 @@ "La cadena se refiere al argumento nmero %u, pero ignora el argumento nmero " "%u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "el nmero de especificaciones de formato en `msgid' y '%s' no coincide" #: src/format-csharp.c:88 src/format-java.c:205 @@ -396,18 +391,18 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "La cadena contiene un '}' solitario posterior a la instruccin %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, fuzzy, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "En la instruccin nmero %u, el argumento %d es negativo." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, fuzzy, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "En la instruccin nmero %u, las banderas no estn permitidas antes de '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, fuzzy, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -416,7 +411,7 @@ "En la instruccin nmero %u, el nmero de argumento 0 no es un entero " "positivo." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -424,25 +419,25 @@ msgstr "" "En la instruccin nmero %u, las banderas no estn permitidas antes de '%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, fuzzy, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "En la instruccin nmero %u, el argumento %d es negativo." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" "En la instruccin nmero %u, las banderas no estn permitidas antes de '%c'." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid' utiliza %%m pero '%s' no" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid' no utiliza %%m pero '%s' utiliza %%m" #: src/format-invalid.h:22 @@ -553,23 +548,22 @@ "seguido por '<', '#' o '%s'." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "una especificacin de formato para el argumento {%u}, como en '%s', no " "existe en 'msgid'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "una especificacin de formato para el argumento {%u} no existe en '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "las especificaciones de formato en 'msgid' y '%s' para el argumento {%u} no " "son las mismas" @@ -587,11 +581,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "En la instruccin nmero %u se dieron demasiados parmetros; se espera a lo " "ms %u parmetro." @@ -644,13 +638,13 @@ msgstr "La cadena se refiere a algn argumento de forma incompatible." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "las especificaciones de formato en `msgid' y '%s' no son equivalentes" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "las especificaciones de formato en '%s' no son un subconjunto de aquellas en " "'msgid'" @@ -664,12 +658,12 @@ "En la instruccin nmero %u, el tamao del especificador es incompatible " "con el especificador de conversin '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "una especificacin de formato para el argumento '%s' no existe en '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -677,43 +671,40 @@ "La cadena se refiere a ambos argumentos a travs de nmeros de argumento " "absolutos y a travs de especificaciones de argumentos no numerados." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "La cadena se refiere al argumento denominado '%s' en formas incompatibles." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "las especificaciones de formato en `msgid' requieren un mapeo, y aquellas en " "'%s' requieren una tupla" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "las especificaciones de formato en `msgid' requieren una tupla y aquellas en " "'%s' requieren un mapeo" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "una especificacin de formato para el argumento '%s', como en '%s', no " "existe en 'msgid'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "las especificaciones de formato en 'msgid' y '%s' para el argumento '%s' no " "son las mismas" @@ -721,8 +712,8 @@ #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -766,11 +757,11 @@ msgstr "" "El carcter que termina la instruccin nmero %u no es un dgito entre 1 y 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -779,38 +770,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Escrito por %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "demasiados argumentos" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Pruebe `%s --help' para ms informacin.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Modo de empleo: %s [OPCIN]\n" @@ -847,29 +838,29 @@ msgstr "" " -i, --ip-address direcciones para el nombre de la mquina\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Salida informativa:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help muestra esta ayuda y finaliza\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version muestra la versin y finaliza\n" @@ -878,11 +869,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Comunicar los `bugs' a .\n" @@ -891,30 +882,30 @@ msgid "could not get host name" msgstr "no se pudo obtener el nombre de la mquina" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "slo se permite un fichero de entrada mximo" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s y %s son mutuamente excluyentes" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Modo de empleo: %s [OPCIN] [FICHEROENTRADA]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -923,10 +914,10 @@ "Filtra los mensajes de un catlogo de traduccin de acuerdo con sus\n" "atributos, y luego manipula los atributos.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -935,23 +926,23 @@ "obligatorios para las opciones cortas.\n" # acepto sugerencia de em pero agrego un "el". mm -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Localizacin del fichero de entrada:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " FICHERODEENTRADA fichero PO de entrada\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -960,33 +951,33 @@ "ficheros\n" " de entrada\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Si no se especifica un fichero de entrada o si es -, se lee la entrada " "estndar.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Localizacin del fichero de salida:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" " -o, --output-file=FICHERO escribe la salida al FICHERO especificado\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -995,12 +986,12 @@ "Los resultados se escriben a la salida estndar si no se especifica ningn\n" "fichero de salida o si es -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Seleccin de mensaje:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -1008,7 +999,7 @@ " --translated mantiene lo traducido, elimina los mensajes " "sin traducir\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -1016,61 +1007,61 @@ " --untranslated mantiene lo no traducido, elimina los mensajes " "traducidos\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy elimina los mensajes difusos marcados como " "'fuzzy'\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy mantiene los mensajes difusos marcados con " "'fuzzy'\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete elimina los mensajes obsoletos #~\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete mantiene los mensajes obsoletos #~\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipulacin de atributos:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" " --set-fuzzy marca todos los mensajes como difusos 'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy marca todos los mensajes como no difusos " "(no-'fuzzy')\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" " --set-obsolete marca todos los mensajes como obsoletos\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete marca todos los mensajes como no-obsoletos\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, fuzzy, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1079,7 +1070,7 @@ " --clear-fuzzy marca todos los mensajes como no difusos " "(no-'fuzzy')\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1087,7 +1078,7 @@ " --only-file=FICHERO.po manipula slo las entradas enlistadas en el " "FICHERO.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1095,28 +1086,28 @@ " --ignore-file=FICHERO.po manipula slo las entradas no listadas en " "FICHERO.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy sinnimo de --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete sinnimo de --only-obsolete --clean-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Sintxis del fichero de entrada:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1124,8 +1115,8 @@ " -P, --properties-input el fichero de entrada est en la sintxis de ." "properties de Java\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1134,17 +1125,35 @@ " --stringtable-input el fichero de entrada est en la sintxis de ." "strings de NeXTstep/GNUstep\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Detalles de salida:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1152,9 +1161,9 @@ " -e, --no-escape no utiliza escapes de C en la salida (por " "omisin)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1162,55 +1171,55 @@ " -E, --escape utiliza escapes de C en la salida, sin " "carcteres extendidos\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" " --force-po escribe un fichero PO an si est vaco\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent escribe el fichero .po utilizando estilo con " "sangrados\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location no escribe las lneas '#: fichero:lnea'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" " -n, --add-location genera lneas '#: fichero:lnea' (por omisin)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict escribe un fichero .po con Uniforum estricto\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output escribe un fichero .properties de Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" @@ -1218,16 +1227,16 @@ " --stringtable-output escribe un fichero .strings de NeXTstep/" "GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NMERO pone la anchura de la pgina de salida\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1238,32 +1247,32 @@ " sean mayores a la anchura de la pgina de " "salida\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output genera una salida ordenada\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file ordena la salida por ubicacin de fichero\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "se especific un criterio de seleccin imposible (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Modo de empleo: %s [OPCIN] [FICHEROENTRADA]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1289,25 +1298,25 @@ "fichero PO para definirlos. Las posiciones dentro del fichero de todos\n" "los ficheros PO se conservarn. \n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " FICHERODEENTRADA ... ficheros de entrada\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FICHERO obtiene una lista de ficheros de entrada del " "FICHERO\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Si el fichero de entrada es -, se lee la entrada estndar.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1318,7 +1327,7 @@ " definiciones, si no se especifica, es " "infinito\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1328,7 +1337,7 @@ "de\n" " definiciones, si no se pone, utiliza 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1337,8 +1346,8 @@ " -u, --unique abreviatura de --less-than=2, solicita\n" " que slo se impriman los mensajes nicos\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1346,8 +1355,8 @@ " -P, --properties-input los ficheros de entrada estn en la sintxis ." "properties de Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1356,12 +1365,12 @@ " --stringtable-input los ficheros de entrada estn en la sintxis\n" " .strings de NeXTstep/GNUstep.\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NOMBRE codifica para la salida\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1370,36 +1379,28 @@ " -use-first utiliza la primera traduccin disponible para\n" " cada mensaje, no mezcla varias traducciones\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "no se especificaron ficheros de entrada" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "se requieren exactamente 2 ficheros de entrada" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Modo de empleo: %s [OPCIN] def.po ref.pot\n" @@ -1464,7 +1465,7 @@ # y en otros de otra (la frase no era exactamente igual). # 11061996mm: En particular en gettext el letrero es estndar, por lo que # prefiero "tambin son" que, creo suena mejor. Homogeinizo todo. -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1483,22 +1484,22 @@ "se encuentre un resultado exacto, se utilizar coincidencia difusa, de\n" "tal forma que la precisin del diagnstico sea mejor.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po traducciones\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.po referencias a las fuentes\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modificadores de operacin:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1507,45 +1508,50 @@ " -m, --multi-domain aplica ref.pot a cada uno de los dominios en\n" " def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching no utiliza la coincidencia difusa\n" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" " -f, --use-fuzzy utiliza entradas difusas para la salida\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, fuzzy, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" " --untranslated mantiene lo no traducido, elimina los mensajes " "traducidos\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "atencin: este mensaje no se utiliza" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "este mensaje se usa pero no est definido..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...pero esta definicin es parecida" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "este mensaje se usa pero no est definido en %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "atencin: este mensaje no se utiliza" @@ -1571,19 +1577,19 @@ # # 07061996mm: Mujer fatal es menos que mortal, menos que peligroso e incita a la # aventura. Quiz no sea tan malo como dice Enrique, a menos que... -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "se encontr el error fatal %d" msgstr[1] "se encontraron %d errores fatales" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "se deben especificar por lo menos dos ficheros" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1606,7 +1612,7 @@ "defina. Las posiciones dentro del fichero de todos los ficheros PO se\n" "conservarn.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1616,45 +1622,45 @@ " nmero de definiciones, si no se pone,\n" " el valor por omisin es 0\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header no escribe la lnea de encabezado `msgid \"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "Convierte un catlogo de traduccin a una codificacin de carcteres " "distinta.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Blanco de conversin:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" "La codificacin por omisin es la que est en uso por la funcion locale.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent estilo de salida con sangras\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location no escribe las lneas '#: fichero:lnea'\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1662,29 +1668,29 @@ " --add-location genera lneas '#: fichero:lnea' (por " "omisin)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict escribe en estilo Uniforum estricto\n" # acepto sugerencia de em pero agrego un "el". mm -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "no se especific el fichero de entrada" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "se requieren exactamente un ficheros de entrada" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Modo de empleo: %s [OPCIN] FICHEROENTRADA\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1697,22 +1703,22 @@ "(generalmente creado por xgettext). Las entradas no traducidas son\n" "asignadas a una traduccin que es idntica a la del msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " FICHEROENTRADA fichero de entrada PO o POT\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "Se omiti el nombre de la instruccin" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Modo de empleo: %s [OPCIN] INSTRUCCIN [OPCIONES-DE-LA-INSTRUCCIN]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1728,7 +1734,7 @@ "msgexec es el mximo de los cdigos de retornos obtenidos a lo largo de \n" "todas las invocaciones.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1738,43 +1744,43 @@ "traduccin, seguido por un byte nulo. La salida de \"msgexec 0\" se puede \n" "utilizar como entrada para \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=FICHEROENTRADA fichero PO de entrada\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "fallo en la escritura a la salida estndar" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "fallo en la escritura la subproceso %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "falta el nombre del filtro" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "se debe especificar al menos un guin de sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Modo de empleo: %s [OPCIN] FILTRO [OPCIONES-DEL-FILTRO]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" "Aplica un filtro a todas las traducciones de un catlogo de traduccin.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1783,12 +1789,12 @@ "El FILTRO puede ser cualquier programa que lea una traduccin de la entrada\n" "estndar y escriba una traduccin modificada a la salida estndar.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Algunas OPCIONES-DEL-FILTRO cuando el FILTRO es 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" @@ -1796,7 +1802,7 @@ " -e, --expression=GUIN aade un GUIN a las instrucciones que sern\n" " ejecutadas\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1806,7 +1812,7 @@ " -f, --file=FICHEROGUIN aade el contenido del FICHEROGUIN a las\n" " instrucciones que sern ejecutadas\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1814,7 +1820,7 @@ " -n, --quiet, --silent elimina la impresin automtica del espacio\n" " de patrones\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1822,13 +1828,13 @@ " --no-escape no utiliza las secuencias de escape tipo C\n" " en la salida (por omisin)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" " --indent escribe el fichero .po utilizando sangras\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1837,101 +1843,83 @@ "modificacin,\n" " es decir, no la filtra\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "An no est implementado." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "no se puede eliminar el bloqueo de la E/S del subproceso %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "fallo en la comunicacin con el subproceso %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "fallo en la lectura del subproceso %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "el subproceso %s termin con un cdigo de salida %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "el argumento a %s debe ser un solo carcter de puntuacin" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s requiere que se especifique un \"-d directorio\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s requiere que se especifique un \"-l local\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s slo es vlido con %s o %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s slo es vlido con %s, %s o %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d mensaje traducido" msgstr[1] "%d mensajes traducidos" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traduccin difusa" msgstr[1] ", %d traducciones difusas" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d mensaje sin traducir" msgstr[1] ", %d mensajes sin traducir" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Modo de empleo: %s [OPCIN] fichero.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Genera un catlogo binario de mensajes a partir de la descripcin de la " "traduccin textual.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1940,17 +1928,17 @@ "Los argumentos obligatorios en las opciones largas tambin lo son para las \n" "opciones cortas. De forma similar se comportan los argumentos opcionales.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " fichero.po ... ficheros de entrada\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Modo de operacin:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1959,7 +1947,7 @@ " -j, --java Modo Java: la entrada es una clase de Java " "ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1968,13 +1956,13 @@ " --java2 como --java, y supone el uso de Java2\n" " (JDK 1.2 o superior)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --csharp Modo C#: genera un fichero .dll de .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1983,40 +1971,40 @@ " --csharp-resources modo de recursos C#: genera un fichero ." "resources de .NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Modo tcl: genera un fichero .msg tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Modo Qt: genera un fichero .qm de Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict escribe en estilo Uniforum estricto\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Si el fichero de salida es -, se escribe en la salida estndar.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Localizacin del fichero de salida en modo Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RECURSO nombre del recurso\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -2024,14 +2012,14 @@ msgstr "" " -l, --locale=LOCAL nombre local, ya sea idioma o idioma_PAIS\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d DIRECTORIO directorio base de la jerarqua de clases\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2043,12 +2031,12 @@ "recurso, separados por un guin bajo. La opcin -d es obligatoria. La clase\n" "se escribe bajo el directorio especificado.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Localizacin del fichero de salida en modo C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -2057,7 +2045,7 @@ " -d DIRECTORIO directorio base de los ficheros .dll de " "dependencias locales\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -2067,19 +2055,19 @@ "un subdirectorio del directorio especificado cuyo nombre depender de la " "localizacin.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Localizacin del fichero de salida en modo Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORIO directorio base de los catlogos de\n" " mensajes .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -2088,12 +2076,12 @@ "Las opciones -l y -d son obligatorias. El fichero .msg ser escrito en\n" "el directorio especificado.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretacin del fichero de entrada:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2104,7 +2092,7 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" @@ -2112,7 +2100,7 @@ "del\n" " idioma\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2121,7 +2109,7 @@ " --check-header verifica la presencia y contenido de la\n" " lnea de encabezado\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2131,7 +2119,7 @@ "instrucciones\n" " del dominio y la opcin --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2141,7 +2129,7 @@ "el\n" " msgfmt de X/Open\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2151,13 +2139,13 @@ " --check-accelerators[=CAR] revisa la presencia de aceleradores de\n" " teclado para los elementos del men\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy utiliza entradas difusas para la salida\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2165,7 +2153,7 @@ " -a, --alignment=NMERO alinea las cadenas al NMERO de bytes\n" " (por omisin es: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2173,52 +2161,52 @@ " --no-hash el fichero binario no incluir la tabla de " "hash\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" " --statistics muestra las estadsticas sobre las " "traducciones\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose aumenta el cantidad de mensajes\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "atencin: el encabezado del fichero PO no existe o es invlido\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "atencin: la conversin del conjunto de caracteres no funcionar\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "atencin: el encabezado del fichero PO est difuso\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "atencin: las versiones anteriores de msgfmt producirn un error en esto\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "el nombre de dominio \"%s\" no es vlido como nombre de fichero" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "el nombre del dominio \"%s\" no es vlido como nombre de fichero:\n" "se utilizar un prefijo" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "la instruccin `domain %s' no tiene efecto" @@ -2227,35 +2215,35 @@ # Ignorar es no saber (not to know). "to ignore" es "no hacer caso". # Sugerencia: Descartar. sv # Excelente palabreja. Me gusta mucho. mm -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "se descarta la lnea vaca `msgstr'" # Lo mismo. sv # Ok. mm -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "se descarta la lnea difusa `msgstr'" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: atencin: el fichero fuente contiene una traduccin difusa" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "error al leer \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2264,7 +2252,7 @@ "la opcin '%c' no se puede usar antes de que 'K', 'T' o 'C' hayan sido " "especificadas" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2273,7 +2261,7 @@ "Extrae todos los mensajes de un catlogo de traduccin que coincidan con un\n" "patrn dado o pertenezcan a algunos de los ficheros fuente dados.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, fuzzy, c-format, no-wrap msgid "" "Message selection:\n" @@ -2348,7 +2336,7 @@ "-f, --file=FICHERO obtiene al PATRN del FICHERO\n" "-i, --ignore-case indistingue si es maysculas o minsculas\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2357,18 +2345,18 @@ "caracteres\n" " extendidos\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output genera una salida ordenada\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file ordena la salida por localizacin de ficheros\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2378,7 +2366,7 @@ "de entorno LANG, tal como se describe en el fichero ABOUT-NLS. Esto\n" "es necesario para que se puedan probar las traducciones.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2389,12 +2377,12 @@ "Favor de especificar el formato local a travs de la opcin --locale o\n" "el fichero de salida .po a travs de la opcin --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Creado %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2403,12 +2391,12 @@ "Crea un nuevo fichero PO, inicializando la metainformacin con valores\n" "tomados del entorno del usuario.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=FICHEROENTRADA fichero de entrada POT\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2418,13 +2406,13 @@ "Si no se da el fichero de entrada, el fichero POT se busca en el directorio\n" "actual. Si es -, se lee la entrada estndar.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FICHERO escribe la salida al fichero PO especificado\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2434,13 +2422,13 @@ "de la seleccin local del usuario. Si es -, los resultados se escriben en\n" "la salida estndar.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" " -o, --output-file=FICHERO escribe la salida al fichero PO especificado\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2448,7 +2436,7 @@ " --no-translator supone que el fichero PO ser generado\n" " automticamente\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2457,12 +2445,12 @@ "Favor de especificar el fichero .pot de entrada utilizando la opcin --" "input\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "error en la lectura del directorio actual" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2471,14 +2459,14 @@ "Favor de especificar el fichero .pot de entrada utilizando la opcin --" "input\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "fallo en el subproceso %s con cdigo de salida %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2494,26 +2482,26 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traducciones al espaol para el paquete %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" "el conjunto de caracteres actual \"%s\" no es un nombre de codificacin " "porttil" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" "hay dos distintos conjuntos de caracteres \"%s\" y \"%s\" en el fichero de " "entrada" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2521,7 +2509,7 @@ "el fichero de entrada `%s' no contiene una lnea de encabezado con la " "especificacin del conjunto de caracteres" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2530,21 +2518,21 @@ "el dominio \"%s\" en el fichero de entrada `%s' no contiene una lnea de\n" "encabezado con la especificacin del conjunto de caracteres" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" "el conjunto de caracteres destino \"%s\" no es un nombre de codificacin " "porttil." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "atencin: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2553,7 +2541,7 @@ "Los ficheros de entrada contienen mensajes en distintas codificaciones,\n" "UTF-8 entre otras. Por ello se convierte la salida a UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2565,7 +2553,7 @@ "%s y %s entre otras.\n" "Por ello se convierte la salida a UTF-8.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2574,7 +2562,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2587,12 +2575,12 @@ "La salida de '%s' podra ser incorrecta.\n" "Las posibles alternativas son:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Poner LC_ALL como local con la codificacin %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2603,7 +2591,7 @@ " y luego aplicar '%s',\n" " y luego reconvertirlo a %s utilizando 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2616,7 +2604,7 @@ " y luego aplicar '%s',\n" " y luego reconvertirlo a %s utilizando 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2628,26 +2616,26 @@ "La salida de '%s' podra ser incorrecta.\n" "Una alternativa posible s poner LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "la expresin plural puede producir resultados negativos" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu pero las expresiones plurales pueden producir valores tan " "grades como %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "la expresin plural puede producir una divisin por cero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "la expresin plural puede producir un sobreflujo entero" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2655,54 +2643,54 @@ "la expresin plural puede producir excepciones aritmticas, posiblemente una " "divisin por cero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "Pruebe utilizando lo siguiente, vlido para %s:\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "el catlogo de mensajes tiene formas plurales en las traducciones..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "... pero el encabezado no tiene el atributo \"plural=EXPRESIN\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "... pero el encabezado no tiene el atributo \"nplurals=ENTERO\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "valor invlido de nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "expresin plural invlida" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu ..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "... pero algunos mensajes slo tienen solo una forma plural" msgstr[1] "... pero algunos mensajes slo tienen %lu formas plurales" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "... pero algunos mensajes tienen solo una forma plural" msgstr[1] "... pero algunos mensajes tienen %lu formas plurales" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2726,7 +2714,7 @@ # Sigue pareciendo que deben tenerlo las dos (y no es esa la idea). # Si no se te ocurre nada mejor, sugerencia: # "Una de las lneas msgid y msgstr comienza con `\\n' y la otra no" sv+ -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "a alguna de las lneas `msgid' y `msgid_plural' les falta el `\\n' inicial" @@ -2747,7 +2735,7 @@ # Sigue pareciendo que deben tenerlo las dos (y no es esa la idea). # Si no se te ocurre nada mejor, sugerencia: # "Una de las lneas msgid y msgstr comienza con `\\n' y la otra no" sv+ -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" @@ -2769,81 +2757,81 @@ # Sigue pareciendo que deben tenerlo las dos (y no es esa la idea). # Si no se te ocurre nada mejor, sugerencia: # "Una de las lneas msgid y msgstr comienza con `\\n' y la otra no" sv+ -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "a alguna de las lneas `msgid' y `msgstr' les falta el `\\n' inicial" # Lo mismo, no es que a una de las dos le falte, sino que una lo tiene # y la otra no, as de sencillo. sv+ -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "a alguna de las lneas `msgid' y `msgid_plural' les falta el `\\n' final" # Lo mismo, no es que a una de las dos le falte, sino que una lo tiene # y la otra no, as de sencillo. sv+ -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "a alguna de las lneas `msgid' y `msgstr[%u]' les falta el `\\n' final" # Lo mismo, no es que a una de las dos le falte, sino que una lo tiene # y la otra no, as de sencillo. sv+ -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "a alguna de las lneas `msgid' y `msgstr' les falta el `\\n' final" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "el manejo del plural es una extensin del gettext de GNU" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr no tiene la marca del acelerador de teclado '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr tiene demasiadas marcas de aceleracin de teclado '%c'" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "no existe el campo `%s' en la cabecera\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "el campo de encabezado `%s' debe comenzar al principio de la lnea\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "algunos campos de cabecera an tienen el valor inicial por omisin\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "el campo `%s' an tiene el valor inicial por omisin\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "algunos campos de cabecera an tienen el valor inicial por omisin\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "error al abrir el fichero \"%s\" para lectura" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "El fichero de entrada no contiene una lnea de encabezado que especifique el " "conjunto de caracteres" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2852,7 +2840,7 @@ "No se puede convertir de \"%s\" a \"%s\". %s se basa en iconv(), e iconv()\n" "no soporta este tipo de conversin." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2861,8 +2849,8 @@ "La conversin de \"%s\" a \"%s\" introduce duplicados: algunos msgid " "distintos se vuelven iguales." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2871,16 +2859,16 @@ "No se puede convertir de \"%s\" a \"%s\". %s se basa en iconv().\n" "Esta versin fue construida sin iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s slo es vlido con %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "tipo de respaldo" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2903,19 +2891,19 @@ "haya una coincidencia exacta, se utilizar el mtodo de comparacin difusa\n" "para obtener mejores resultados.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po traducciones que se refieren a las viejas " "fuentes\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot referencias a las nuevas fuentes\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2925,7 +2913,7 @@ "mensajes,\n" " puede ser especificada ms de una vez\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2934,27 +2922,27 @@ " -U, --update actualiza def.po,\n" " no hace nada si def.po ya est actualizado\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Localizacin del fichero de salida en modo de actualizacin:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "El resultado se escribi sobre def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL hace un respado de def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFIJO sobreescribe el sufijo de respaldo\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2975,7 +2963,7 @@ " no es as\n" " simple, never siempre hace backups sencillos\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2985,12 +2973,7 @@ "El sufijo del respaldo es `~', a menos que se modifique con --suffix o con\n" "la variable de entorno SIMPLE_BACKUP_SUFFIX\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching no utiliza la coincidencia difusa\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2998,22 +2981,22 @@ " --translated mantiene lo traducido, elimina los mensajes " "sin traducir\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent suprime los indicadores de progreso\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "este mensaje debera definir las formas plurales" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "este mensaje no debera definir las formas plurales" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -3023,28 +3006,30 @@ "incorporados %ld, convertidos en difusos %ld, faltan %ld, obsoletos %ld.\n" # Porque no mejor poner simplemente 'fin'? mm++ -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " terminado.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s y los nombres de ficheros explcitos son mutuamente excluyentes" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Modo de empleo: %s [OPCIN] [FICHERO]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Convierte el catlogo de mensajes binarios al fichero de estilo Uniforum ." "po.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -3053,14 +3038,14 @@ " -j, --java Modo Java: la entrada es una clase de Java \n" " ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp Modo C#: la entrada es un fichero .dll de ." "NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -3069,7 +3054,7 @@ " --csharp-resources modo de recursos C#: genera un fichero ." "resources de .NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -3077,17 +3062,17 @@ " --tcl Modo Tcl: la entrada es un fichero .msg tcl/" "msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FICHERO ... ficheros .mo de entrada\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Localizacin del fichero de entrada en modo Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -3098,12 +3083,12 @@ "recurso, separado por un guin bajo. La clase se localiza utilizando la\n" "variable de entorno CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Localizacin del fichero de entrada en modo C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -3113,12 +3098,12 @@ "un subdirectorio del directorio especificado cuyo nombre depende de la " "configuracin local.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Localizacin del fichero de entrada en modo Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -3127,18 +3112,18 @@ "Las opciones -l y -d son obligatorias. El fichero .msg ser escrito en\n" "el directorio especificado.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" " -i, --indent escribe el fichero .po utilizando sangras\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict escribe en estilo Uniforum estricto\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3161,12 +3146,12 @@ "ficheros sern acumuladas. Cuando se utiliza la opcin --unique, los \n" "duplicados se descartan.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated muestra nicamente los duplicados\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3176,7 +3161,7 @@ "a\n" " los duplicados\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3297,51 +3282,51 @@ # 20071996sv: Eso no seguira la regla implcita de que el programa no debe # hablar en primera persona sino en estilo impersonal. # (Esta regla estar en el manual de Enrique, con toda seguridad). -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "demasiados errores, programa interrumpido" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "sucesin de multibyte invlida" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "sucesin de multibyte invlida al final del fichero" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "sucesin de multibyte invlida al final de la lnea" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "fallo en iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "palabra clave \"%s\" desconocida" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "secuencia de control ilegal" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "fin de fichero dentro de una cadena" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "fin de lnea dentro de una cadena" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" @@ -3377,17 +3362,17 @@ # mente el verbo poder en Castellano es mucho ms flexible que en otros # idiomas. De todas maneras siempre se puede mirar otras traducciones. em # ok. Acepto en 'no puede' a reserva de encontrar nuevos argumentos. mm -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "este fichero no puede contener instrucciones de dominio" # Nota: es la definicin la que est duplicada. -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definicin del mensaje duplicada" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...aqu est la primera definicin" @@ -3480,17 +3465,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "error al abrir el fichero \"%s\" para lectura" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "se esperan dos argumentos" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Modo de empleo: %s [OPCIN] URL FICHEROENTRADA\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3499,11 +3484,26 @@ "Trae y muestra el contenido de una URL. Si la URL no puede ser accesada,\n" "se utiliza el FICHERO local.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "error al escribir la salida estndar" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 #, fuzzy msgid "" @@ -3549,42 +3549,42 @@ "el catlogo de mensajes tiene traducciones con formas plurales, pero el " "catlogo de mensajes no admite el trato plural" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "no se puede crear el fichero de salida \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "salida estndar" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "fallo al crear el directorio \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "fallo en la compilacin de la clase C#, intente --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "fallo en la compilacin de la clase C#, intente --verbose" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "no es un nombre de clase Java vlido: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "fallo en la compilacin de la clase Java, intente --verbose o poner $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3595,7 +3595,7 @@ msgid "error while opening \"%s\" for writing" msgstr "error al abrir el fichero \"%s\" para escritura" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3603,7 +3603,7 @@ "Los mensajes internacionalizados no deben contener la secuencia de escape `\\" "%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3616,7 +3616,7 @@ "caracteres diferente a la suya. Considere la opcin de utilizar un msgid\n" "en ASCII puro. %s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3640,8 +3640,8 @@ #: src/write-qt.c:693 #, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3666,7 +3666,7 @@ msgid "error while writing to %s subprocess" msgstr "hubo un error al escribir al subproceso %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" @@ -3675,7 +3675,7 @@ "el catlogo de mensajes tiene traducciones con formas plurales, pero el \n" "formato de los recursos de C# no tiene implementado el trato plural\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3700,36 +3700,34 @@ "el catlogo de mensajes tiene traducciones con formas plurales, pero el \n" "catlogo de mensajes de Tcl no soporta el trato plural\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: atencin: cadena no finalizada" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: atencin: expresin regular no finalizada" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: atencin: constante de tipo carcter no finalizada" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: atencin: literal de cadena no finalizada" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Hay una cadena que no est en ASCII en %s%s.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3738,7 +3736,7 @@ "%s:%d: Secuencia multibyte invlida.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3747,7 +3745,7 @@ "%s:%d: Secuencia multibyte larga incompleta.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3756,7 +3754,7 @@ "%s:%d: Hay una secuencia multibyte incompleta al final del fichero.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3765,12 +3763,12 @@ "%s:%d: Hay una secuencia multibyte incompleta al final de la lnea.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: fallo en iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3779,32 +3777,32 @@ "%s:%d: Hay una secuencia multibyte invlida.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: atencin: carcter Unicode invlido" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: atencin: cadena constante no finalizada" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: cuidado: se encontr un ')' en donde se esperaba un '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: cuidado: se encontr un '}' en donde se esperaba un ')'" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, fuzzy, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%d:%d: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3813,59 +3811,58 @@ "El lenguaje \"glade\" no est soportado. %s se basa en expat.\n" "Esta versin fue construida sin expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: atencin: cadena no finalizada" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: no se puede encontrar el terminador de cadena \"%s\" en ningn lugar " "antes del fin del fichero" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: falta una llave derecha en \\x{NMEROHEX}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: interpolacin no vlida (\"\\l\") del caracter de 8 bits \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: interpolacin no vlida (\"\\u\") del caracter de 8 bits \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: interpolacin de variable no vlida en \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s%d: interpolacin no vlida (\"\\L\") del caracter de 8 bits \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: interpolacin no vlida (\"\\U\") del caracter de 8 bits \"%c\"" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "Hay una cadena que no est en ASCII en %s%s.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3875,7 +3872,7 @@ "%s:%d: Secuencia multibyte invlida.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3885,7 +3882,7 @@ "%s:%d: Secuencia multibyte larga incompleta.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3895,7 +3892,7 @@ "%s:%d: Hay una secuencia multibyte incompleta al final del fichero.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3905,7 +3902,7 @@ "%s:%d: Hay una secuencia multibyte incompleta al final de la lnea.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3915,27 +3912,27 @@ "%s:%d: Hay una secuencia multibyte invlida.\n" "Especifique la codificacin del cdigo fuente utilizando --from-code.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: definicin de cadena invlida" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: falta un nmero despus del smbolo #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: expresin de cadena invlida" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3944,32 +3941,32 @@ "%s:%lu: cuidado: la sintxis $\"...\" se desaconseja debido a cuestiones de " "seguiridad; mejor utilice eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "no se puede utilizar --join-existing cuando el resultado se escribe en la\n" "salida estndar (stdout)" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext no puede funcionar sin palabras claves que buscar" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "atencin: el fichero `%s' con extensin `%s'\n" "es desconocido; se intentar tipo C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" "Extrae las cadenas traducibles a partir de un grupo de ficheros dados.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3978,13 +3975,13 @@ " -d, --default-domain=NOMBRE utiliza NOMBRE.po para la salida (en vez de\n" " mensajes.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" " -o, --output=FICHERO escribe la salida al fichero especificado\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3993,12 +3990,12 @@ " directorio DIR\n" # acepto sugerencia de em pero agrego un "el". mm -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Seleccin del lenguaje del fichero de entrada:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -4018,12 +4015,12 @@ "PHP,\n" " fuente-GCC, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ abreviatura de --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -4032,7 +4029,7 @@ "Por omisin, el lenguaje se adivina dependiendo de la extensin del fichero " "de entrada.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -4041,45 +4038,48 @@ " --from-code=NOMBRE codifica a partir de los ficheros de entrada\n" " (excepto para Python, Tcl y Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" "Por omisin, los ficheros de entrada se presupone que estn en ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing une los mensajes con un fichero existente\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=FICHERO.po las lneas del FICHERO.po no son extraidas\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ETIQUETA] comenta un bloque con la ETIQUETA (o\n" " aquellas lneas que preceden a la palabra\n" " clave) en el fichero de salida\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Opciones especficas del lenguaje:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extrae todas las cadenas\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -4093,11 +4093,11 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, fuente-GCC, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=PALABRA] una palabra clabe adicional que se debe " "buscar \n" @@ -4105,7 +4105,7 @@ "utilizar \n" " las palabras clave por omisin)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -4118,7 +4118,7 @@ "palabra\n" " clave PALABRA\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -4132,40 +4132,40 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, fuente-GCC)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs entiende los trgrafos de ANSI C para la\n" " entrada\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (slo en lenguajes C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt reconoce los formatos de cadena Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (slo lenguaje C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt reconoce los formatos de cadena Qt\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr " --qt reconoce los formatos de cadena Qt\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -4173,18 +4173,18 @@ " --debug muestra con ms detalle el reconocimiento\n" " de las cadenas de formato\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output escribe un fichero .properties de Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=CADENA pone al dueo del copyright en la salida\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -4192,18 +4192,18 @@ " --foreign-user omite el copyright de la FSF en la salida\n" " para los usuarios extranjeros\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --copyright-holder=CADENA pone al dueo del copyright en la salida\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -4211,45 +4211,62 @@ " --msgid-bugs-address=DIRECCION@DECORREO pone la direccin de correo \n" " para reportar los errores\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=CADENA] utiliza la CADENA o \"\" como prefijo para " "las\n" " lneas del msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=CADENA] utiliza la CADENA o \"\" como sufijo para " "las\n" " lneas del msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Un argumento --flag no tiene la sintxis ::[pass-]" ": %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrada estndar" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: atencin: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4258,16 +4275,16 @@ "Aunque se utiliz en una posicin de formato de cadena, el %s no se un " "formato de cadena vlido %s. La razn es: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Aunque as est declarado, '%s' no es un formato de cadena vlido %s. Razn: " "%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4276,7 +4293,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4286,27 +4303,27 @@ "gettext(\"\") regresa la lnea de encabezado con la\n" "metainformacin, no una cadena vaca.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "el argumento %s es ambiguo para %s" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4318,7 +4335,7 @@ "all la variable MSGID_BUGS_ADDRESS; si no lo hace,\n" "debe se poner la opcin --msgid-bugs-address\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "idioma `%s' desconocido" @@ -4327,6 +4344,34 @@ msgid "" msgstr "" +# acepto la sugerencia de em en cuanto a que invlida parece crcel +# o intil pero mejor puse invlida +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opcin invlida -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "" +#~ "fallo de duplicacin de manejador (DuplicateHandle) con cdigo de error 0x" +#~ "%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "An no est implementado." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "no se puede eliminar el bloqueo de la E/S del subproceso %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "fallo en la comunicacin con el subproceso %s" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "fallo en la lectura del subproceso %s" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "el subproceso %s termin con un cdigo de salida %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "el campo `%s' an tiene el valor inicial por omisin\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Referencias mltiples a %%%c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/et.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/et.gmo differ diff -Nru gettext-0.17/gettext-tools/po/et.po gettext-0.18.1.1/gettext-tools/po/et.po --- gettext-0.17/gettext-tools/po/et.po 2007-11-02 02:23:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/et.po 2010-06-06 12:49:57.000000000 +0000 @@ -5,10 +5,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.37\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-04-30 16:25+0200\n" "Last-Translator: Ivar Smolin \n" "Language-Team: Estonian \n" +"Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,22 +30,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "ei suuda luua vljundfaili \"%s\"" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "ei suuda luua vljundfaili \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "ei suuda luua vljundfaili \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "ei suuda luua vljundfaili \"%s\"" @@ -53,44 +54,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "viga faili \"%s\" avamisel (lugemiseks)" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "viga faili \"%s\" avamisel (kirjutamiseks)" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "viga \"%s\" lugemisel" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "viga faili \"%s\" kirjutamisel" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "viga \"%s\" lugemisel" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -100,74 +101,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Tundmatu ssteemne viga" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: vti `%s' on mitmethenduslik\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: vtmel `--%s' ei tohi olla argumente\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: vtmel `%c%s' ei tohi olla argumente\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: vtme `%s' jrel peab olema argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: tundmatu vti `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: tundmatu vti `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: lubamatu vti -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: vigane vti -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: vtme jrel peab olema argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: vti `-W %s' on mitmethenduslik\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: vtmel `-W %s' ei tohi olla argumente\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: vtme `%s' jrel peab olema argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -179,20 +179,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "viga faili \"%s\" kirjutamisel" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -202,20 +202,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "mlu sai otsa" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -234,70 +234,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "ei suuda luua vljundfaili \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" #: src/format-boost.c:449 @@ -322,9 +321,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "vormingukirjeldused `msgid' ja `msgstr' kirjetel ei ole sarnased" #: src/format-csharp.c:88 src/format-java.c:205 @@ -364,48 +363,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -497,19 +496,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -523,11 +521,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -575,12 +573,12 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "vormingukirjeldused `msgid' ja `msgstr' kirjetel ei ole sarnased" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" #: src/format-perl.c:433 @@ -590,54 +588,51 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "vormingukirjeldused `msgid' ja `msgstr' kirjetel ei ole sarnased" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "vormingukirjeldused `msgid' ja `msgstr' kirjetel ei ole sarnased" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "vormingukirjeldused argumendi %lu jaoks ei ole sarnased" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -674,11 +669,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -687,38 +682,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Selle programmi on kirjutanud %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "liiga palju argumente" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Tiendava info saamiseks proovi `%s --help'.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -751,29 +746,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -782,11 +777,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr "Vigadest teata aadressile .\n" @@ -796,294 +791,312 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "vaja lheb tpselt kahte sisendfaili" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s ja %s on vastastikku vlistavad" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "sisendfail on mramata" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1104,31 +1117,31 @@ " -V, --version vljastab versiooniinfo ja lpetab programmi t\n" " -w, --width=NUMBER mrab vljastatava leheklje laiuse\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "lubamatu valikukriteeriumi kirjeldus (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1156,105 +1169,97 @@ "comments) jetakse alles ainult esimesena kirjeldatud PO failist.\n" "Positsioonikirjeldused vetakse ja silitatakse kikidest PO failidest.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "sisendfailid on mramata" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "vaja lheb tpselt kahte sisendfaili" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1280,81 +1285,86 @@ "teated on tlgitud. Kui tpseid vasteid ei suudeta leida, kasutatakse parema\n" "diagnoosi huvides mratlust 'kahtlane'.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "hoiatus: see teade on kasutamata" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "see teade on kasutusel, kuid kirjeldamata..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...kuid see kirjeldus on sarnane" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "see teade on kasutusel, kuid %s poolt kirjeldamata" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "hoiatus: see teade on kasutamata" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "leitud %d tsine viga" msgstr[1] "leitud %d tsist viga" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "vhemalt kaks faili peab olema ette antud" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1381,74 +1391,74 @@ "comments) jetakse alles ainult esimesena kirjeldatud PO failist.\n" "Positsioonikirjeldused vetakse ja silitatakse kikidest PO failidest.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "sisendfail on mramata" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "vaja lheb tpselt kahte sisendfaili" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1457,22 +1467,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "argumendid on puudu" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1482,67 +1492,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "argumendid on puudu" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr "vhemalt kaks faili peab olema ette antud" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1550,210 +1560,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d tlgitud teade" msgstr[1] "%d tlgitud teadet" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d kahtlane tlge" msgstr[1] ", %d kahtlast tlget" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d tlkimata teade" msgstr[1] ", %d tlkimata teadet" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1762,48 +1754,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "sisendfail on mramata" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1811,33 +1803,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1845,115 +1837,115 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: hoiatus: PO faili pis puudub, on kahtlane vi vigane\n" "%*s hoiatus: charset conversion will not work" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "Kooditabel on pises kirjeldamata.\n" "Tlgete teisendamine kasutaja kooditabelisse ei toimi.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: hoiatus: PO faili pis puudub, on kahtlane vi vigane\n" "%*s hoiatus: charset conversion will not work" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domeeni nimi \"%s\" ei ole kasutatav failinimena" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domeeni nimi \"%s\" ei ole kasutatav failinimena: kasutan eesliidet" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "ignoreerin `domain %s' direktiivi" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "ignoreerin thja `msgstr' kirjet" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "ignoreerin kahtlast `msgstr' kirjet" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: hoiatus: lhtefail sisaldab kahtlast tlget" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "viga \"%s\" lugemisel" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1993,30 +1985,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2024,24 +2016,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2049,54 +2041,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2108,54 +2100,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, fuzzy, c-format msgid "warning: " msgstr "%s: hoiatus: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2164,7 +2156,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2173,7 +2165,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2182,12 +2174,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2195,7 +2187,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2204,7 +2196,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2212,157 +2204,157 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "vigane juhtjada" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "vigane juhtjada" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "vigane juhtjada" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "see teade on kasutusel, kuid %s poolt kirjeldamata" msgstr[1] "see teade on kasutusel, kuid %s poolt kirjeldamata" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "see teade on kasutusel, kuid %s poolt kirjeldamata" msgstr[1] "see teade on kasutusel, kuid %s poolt kirjeldamata" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "`msgid' ja `msgst_plural' kirjed ei alga sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' ja `msgstr[%u]' kirjed ei alga sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' ja `msgstr' kirjed ei alga sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' ja `msgst_plural' kirjed ei lppe sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' ja `msgstr[%u]' kirjed ei lppe sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' ja `msgstr' kirjed ei lppe sarnaselt mrgiga '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "pise kirjest on puudu vli `%s'" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "pise kirjes peab vli `%s' algama rea algusest" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "mned pise kirjes olevad vljad sisaldavad ikka veel algseid vrtusi" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "vli `%s' sisaldab ikka veel algset vrtust" +msgid "header field `%s' still has the initial default value\n" +msgstr "mned pise kirjes olevad vljad sisaldavad ikka veel algseid vrtusi" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "viga faili \"%s\" avamisel (lugemiseks)" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2371,15 +2363,15 @@ "Kooditabel \"%s\" ei ole toetatud. %s asendatakse,\n" "iconv() poolt ja iconv() ei toeta \"%s\".\n" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2388,16 +2380,16 @@ "Kooditabel \"%s\" ei ole toetatud. %s asendatakse,\n" "iconv() poolt. See versioon tehakse ilma iconv() kasutamata.\n" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2424,51 +2416,51 @@ "kahtlased. Kui vljundfaili ei ole kirjeldatud, saadetakse tulemus\n" "standardvljunisse.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2480,7 +2472,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2488,96 +2480,93 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "see teade on kasutusel, kuid %s poolt kirjeldamata" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "see teade on kasutusel, kuid %s poolt kirjeldamata" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sLoetud %ld vana + %ld viidet, hendatud %ld, kahtlaseid %ld, puuduvaid %" -"ld, vananenuid %ld.\n" +"%sLoetud %ld vana + %ld viidet, hendatud %ld, kahtlaseid %ld, puuduvaid " +"%ld, vananenuid %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " valmis.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s ja %s on vastastikku vlistavad" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2585,41 +2574,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "sisendfail on mramata" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2632,19 +2621,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2731,65 +2720,65 @@ msgid "plural form has wrong index" msgstr "mitmuse vorm omab vale indeksit" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "liiga palju vigu, katkestan t" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "vigane multibait jada" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "vigane multibait jada" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "vigane multibait jada" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "tundmatu vtmesna: \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "vigane juhtjada" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "Ootamatu faili lpp (fail lppeb poole stringi pealt)" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "reavahetus asub stringi sees" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "see fail ei tohi sisaldada domeeni direktiive" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "teade on kirjeldatud kaks korda" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...see on esimese kirjelduse asukoht" @@ -2879,28 +2868,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "viga faili \"%s\" avamisel (lugemiseks)" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "liiga palju argumente" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "viga faili \"%s\" kirjutamisel" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2932,41 +2936,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "ei suuda luua vljundfaili \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standardvljund" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2976,13 +2980,13 @@ msgid "error while opening \"%s\" for writing" msgstr "viga faili \"%s\" avamisel (kirjutamiseks)" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "tlgitud teated peaksid mitte sisaldama `\\%c' erimrgijada" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2991,7 +2995,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3008,8 +3012,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3026,13 +3030,13 @@ msgid "error while writing to %s subprocess" msgstr "viga faili \"%s\" kirjutamisel" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3050,99 +3054,96 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: lpetamata smbolkonstant" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: lpetamata smbolkonstant" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, fuzzy, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3151,55 +3152,53 @@ "Kooditabel \"%s\" ei ole toetatud. %s asendatakse,\n" "iconv() poolt. See versioon tehakse ilma iconv() kasutamata.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: vigane vti -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3207,7 +3206,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3215,7 +3214,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3223,7 +3222,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3231,7 +3230,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3239,79 +3238,79 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: hoiatus: lpetamata string" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "vtit `--join-existing' ei ole vimalik pruukida kui vljunit kirjutatakse " "standardvljundisse" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext ei tta ilma vajalike vtmesnadeta" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "hoiatus: faili `%s' laiend `%s' on tundmatu; proovin C vormingut" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "sisendfail on mramata" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3323,58 +3322,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3383,14 +3385,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3398,7 +3400,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3407,119 +3409,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standardsisend" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, fuzzy, c-format msgid "%s%s: warning: " msgstr "%s: hoiatus: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3528,34 +3547,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3563,7 +3582,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "tundmatu keel `%s'" @@ -3572,6 +3591,13 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: lubamatu vti -- %c\n" + +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "vli `%s' sisaldab ikka veel algset vrtust" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/eu.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/eu.gmo differ diff -Nru gettext-0.17/gettext-tools/po/eu.po gettext-0.18.1.1/gettext-tools/po/eu.po --- gettext-0.17/gettext-tools/po/eu.po 2007-11-02 02:23:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/eu.po 2010-06-06 12:49:57.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-08-31 11:36+0200\n" "Last-Translator: Piarres Beobide \n" "Language-Team: Basque \n" +"Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,22 +33,22 @@ msgid "Valid arguments are:" msgstr "Argumentu erabilgarria:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "ezin da aldiroko direktorioa aurkitu, saiatu $TMPDIR ezartzen" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "ezin da \"%s\" txantiloia erabiliaz aldiroko direktorioa sortu" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "ezin da aldiroko %s fitxategia ezabatu" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "ezin da aldiroko %s direktorioa ezabatu" @@ -56,44 +57,44 @@ msgid "write error" msgstr "idazketa errorea" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "errorea \"%s\" irakurketarako irekitzerakoan" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "ezin da \"%s\" babeskopia fitxategia idazketarako ireki" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "errorea \"%s\" irakurtzean" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "errorea \"%s\" idaztean" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "errorea \"%s\" irakurri ondoren" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() -ek huts egin du" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Ez da C# konpiladorerik aurkitu, saiatu pnet instalatuaz" @@ -103,74 +104,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Ez da C# makina birtualik aurkitu, saiatu pnet instalatuaz" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Sistema errore ezezaguna" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s azpirpozesuak huts egin du" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s' aukera anbiguoa da\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' aukerak ez du argumenturik onartzen\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' aukerak ez du argumenturik onartzen\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `--%s' aukerak argumentu bat behar du\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s' aukera ezezaguna\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s' aukera ezezaguna\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: legezkanpoko aukera -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: aukera baliogabea -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: -- %c aukerak argumentu bat behar du\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s' aukera anbiguoa da\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' aukerak ez du argumenturik onartzen\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `--%s' aukerak argumentu bat behar du\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -182,20 +182,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "target_version argumentu baliogabea compile_java_class-rentzat" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "Huts \"%s\" sortzerakoan" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "errorea \"%s\" fitxategia idazterakoan" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -208,20 +208,20 @@ "ez da java makina birtualik aurkitu, saiatu gcj instalatuaz edo $JAVAC " "ezarriaz" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s azpiprozesu S/I errorea" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memoria askieza" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -240,70 +240,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle-ek 0x%08x errore kodeaz huts egin du" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle -ek huts egin du" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "ezin da \"%s\" irteera fitxategia sortu" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s azpiprozesua" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s azpiprozesua %d seinale konponezina jaso du" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "'%s' ez da baliozko %s formatu katea, ez 'msgid' bezala. Arrazoia: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "a formateatu - u in s t in" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "%u argumentuaren formatu espezifikazioa ez dago '%s'-en" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "'msgid' eta '%s' formatu ezarpenak ez dira berdina %u argumentuarentzat" @@ -335,9 +334,9 @@ "Kateak %u argumentuaz ari da baina %u argumentu zenbakia alde batetara uzten " "du." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "'msgid' eta '%s' -ren formatu espezifikazio zenbakiak ez dira berdinak" #: src/format-csharp.c:88 src/format-java.c:205 @@ -380,17 +379,17 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "%u direktiban, bandera nahastea ez da zuzena." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "%u zenbakidun direktiban, zehatapena ez da onartze '%c' ondoren" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -399,31 +398,31 @@ "%u zenbakidun direktiban, zehaztapenaren argumentu zenbakia %u-ren berdina " "izan behar da." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "%u zenbakidun direktiban, zehatapena ez da onartze '%c' ondoren" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "%u zenbakidun direktiban, zehaztepen ezapena baliogabea da." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "%u zenbakidun direktiban, banderak ez dira onartzen '%c' ondoren." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid'-ek %%m erabiltzen du baina '%s'-ek ez" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid'-ek ez du %%m erabiltzen baina '%s'-ek %%m erabiltzen du" #: src/format-invalid.h:22 @@ -534,19 +533,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "a formateatu - u in s t in" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "a formateatu - u t in s" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "formateatu in eta s - u" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -560,11 +558,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, fuzzy, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "Handiagotu u u." msgstr[1] "Handiagotu u u." @@ -614,12 +612,12 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "formateatu in eta s" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "formateatu in s a - in" #: src/format-perl.c:433 @@ -629,55 +627,52 @@ "conversion specifier '%c'." msgstr "Handiagotu u tamaina da honekin k." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "a formateatu - s t in s" -#: src/format-python.c:112 +#: src/format-python.c:115 #, fuzzy msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "katea nori eta izengabe." -#: src/format-python.c:343 +#: src/format-python.c:354 #, fuzzy, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "katea nori s in." -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "formateatu in a in s a" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "formateatu in a in s a" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "a formateatu - s in s t in" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "formateatu in eta s - s" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -718,11 +713,11 @@ "1 and 9." msgstr "u da a eta." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -731,38 +726,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "%s-ek idatzia.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "argumentu gehiegi" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "`%s --help' erabili argibide gehiagorako.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Erabilera: %s [AUKERA]\n" @@ -798,29 +793,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address ostalari izenaren helbidea\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informazio irteera:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help laguntza hau bisarazi eta irten\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version bertsio argibideak bistarazi eta irten\n" @@ -829,11 +824,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Programa erroreen berri emateko: .\n" @@ -842,30 +837,30 @@ msgid "could not get host name" msgstr "ezind a ostalari izena eskuratu" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "behintzat sarrera fitxategi bat onartu da" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s eta %s ez dira bateragarriak" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Erabilera: %s [AUKERA] [SARFITXATEGIA]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -874,10 +869,10 @@ "Itzulpen katalogko kateak beraien atributuen arabera iragazi,\n" "eta beren atributuak eraldatu.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -885,23 +880,23 @@ "Aukera luzeentzat beharrezko argumentuak beharrezkoak dira aukera " "laburrentzat ere.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Sarrera fitxategi kokapena:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " SARRERA_FITXATEGIA sarrera PO fitxatergia\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -909,32 +904,32 @@ " -D, --directory=DIRECTORIOA Gehitu DIRECTORIOA sarrera fitxategiak " "bilatzeko zerrendara\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Sarrera fitxategirik ematen ez bada edo berau - bada, sarrera estandarra " "irakurriko da.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Irteera fitxategi kokapena:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FITX idatzi irteera ezarritako fitxategian\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -944,12 +939,12 @@ "bada\n" "edo berau - bada.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Mezu hautapena:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -957,7 +952,7 @@ " --translated mantendu itzulitakoak, ezabatu itzuli gabeko " "mezuak\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -965,55 +960,55 @@ " --untranslated mantendu itzuli gabekoak, ezabatu itzulitako " "mezuak\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy ezabatu zalantza bezala markaturiko kateak\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy mantendu zalantza bezala markaturiko kateka\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete mantendu zaharkituriko #~ mezuak\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Atributu manipulazioa:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy ezarri kate guztiak zalantza bezala\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy zalantza bandera kendu kate guztiei\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete ezarri mezu guztiak zaharkituak bezala\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete ezarri mezu guztiak ez-zaharkituk bezala\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1021,7 +1016,7 @@ msgstr "" " --clear-previous ezabatu \"previous msgid\" mezu guztietatik\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1029,7 +1024,7 @@ " --only-file=FITX.po FITX.po fitxategian zerrendaturiko sarrerak " "bakarrik eraldatu\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1037,13 +1032,13 @@ " --ignore-file=FILE.po FITX.po fitxategian ez zerrendaturiko sarrerak " "bakarrik eraldatu\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy --only-fuzzy --clear-fuzzy -ren sinonimo\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" @@ -1051,16 +1046,16 @@ " --obsolete --only-obsolete --clear-obsolete -ren " "sinonimo\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Sarrera fitxategi sintaxia:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1068,8 +1063,8 @@ " -P, --properties-input sarrera fitxategia Java .properties sintaxian " "dago\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1078,26 +1073,44 @@ " --stringtable-input sarrera fitxategia NeXTstep/GNUstep .strings " "sintaxian dago\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Irteera xehetasunak:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" " -e, --no-escape ez erabili C ihesak irteeran (lehenetsia)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1105,97 +1118,97 @@ " -E, --escape C ihesak erabili irteeran, ez hedatutako " "karaktereak\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po PO fitxategia idatzi nahiz hutsik egon\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent .po fitxategia koskadun estiloa erabiliaz " "idatzi\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=ZENBAKIA irteera orri zabalera ezarri\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output ordenatutako irteera sortu\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file irteera fixattegi kokapenaz ordenatu\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "ezinezko hatapen kriterio bat ezarri da (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Erabilera: %s [AUKERA] [SARRERA_FITX]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1209,47 +1222,47 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INPUTFILE ... sarrera fitxategiak\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FITXATEGI sarrera fitxategi zerrenda FITXATEGI-tik " "eskuratu\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Sarrera fitxategia - bada, sarrera estandarra irakurriko da.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1257,8 +1270,8 @@ " -P, --properties-input sarrera fixtategiak Java .properties sintasian " "daude\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1267,53 +1280,45 @@ " --stringtable-input sarrera fitxategiak NeXTstep/GNUstep .strings\n" " sintaxian daude\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=IZENA irteeraren kodeketa\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "ez da sarrera fitxategirik eman" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "zehazki 2 sarrera fitxategi behar dira" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Erabilera: %s [AUKERA] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1324,22 +1329,22 @@ "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po itzulpenak\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot iturburura erreferentziak\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Operazio aldagaiak:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1347,59 +1352,64 @@ msgstr "" " -m, --multi-domain ref.pot ezarri def.po-ko domeinu bakoitzean\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching ez erabili zalantza parekatzea\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy konutan izan zalantzan dauden sarrerak\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated kontutan izan itzuli gabeko mezuak\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "mezu hau itzuli gabe dago" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "mezu hau itzultzaile batek gainbegiratu behar du" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "mezu hau erabilia baina definitu gabe daago..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...baina definizio hau oso antzekoa da" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "mezu hau erabilia dago baina ez dago %s-en ezarria" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "oharra: mezu hau ez da erabiltzen" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "errorea konponezin %d aurkitu da" msgstr[1] "%d errorea konponezin aurkitu dira" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "behintza bi fitxategi ezarri behar dira" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1412,48 +1422,48 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "Itzulpen katalogo bat karaktere kodeketa ezberdin batera bihurtzen du.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Bihurtze helburua:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Lehenetsiriko kodeketa uneko lokalaren kodeketa da.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent kokadun irteera estiloa\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location kendu '#: filename:line' lerroak\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1461,28 +1471,28 @@ " --add-location mantendu '#: filename:line' lerroak " "(lehenetsia)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict Uniforum zehatz irteera estiloa\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "ez da sarrera fitxategirik eman" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "zehazki sarrera fitxategi bat behar da" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Erabilera: %s [AUKERA] SAR_FITXATEGIA\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1491,22 +1501,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " INPUTFILE sarrera PO edo POT fitxategia\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "komando izena falta da" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Erabilera: %s [AUKERA] KOMANDOA [KOMANDO-AUKERA]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1516,67 +1526,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INPUTFILE sarrera PO fitxategia\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "huts irteera estandarrean idaztean" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "huts %s azpiprozesuan idaztean" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "iragazki izena falta da" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Erabilera: %s [AUKERA] IRAGAZKIA [IRAGAZKI-AUKERA]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "IRagazkia ezarri itzulpen guztiei edo itzulpen katalogo bati.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1584,124 +1594,106 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" " --no-escape ez erabili C ihesak irteeran (lehenespena)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header utzi goiburua eraldatu gabe, ez berau iragazi\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Oraindik ez da onartzen." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "%s azpiprozuarekiko komunikazioak huts egin du" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "Huts %s azpiprozesua irakurtzerakoan" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s azpiprozesua %d irteera kodeaz amaitu da" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s-ek \"-d directory\" ezarpen bat behar du" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s-ek \"-l locale\" ezarpen bat behar du" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s bakarrik %s edo %s-rekin da erabilgarria" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s bakarrik %s, %s edo %s-rekin da erabilgarria" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "itzulitako kate %d" msgstr[1] "%d itzulitako kate" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", zalantzan kate %d" msgstr[1] ", %d kate zalantzan" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", itzuli gabeko kate %d" msgstr[1] ", %d itzuli gabeko kate" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Erabilera: %s [AUKERA] fitxategizena.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Testu itzulpen deskribapen batetik mezu katalogo bitar bat sortu.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1710,17 +1702,17 @@ "Aukera luzeentzat beharrezko argumentuak beharrezkoak dira aukera laburrentzat ere.\n" "Antzekoa aukerako argumentuentzat.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " fitxategizena.po ... sarrera fitxategiak\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Funtzionamendu modua:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1729,7 +1721,7 @@ " -j, --java Java modua: Java ResourceBundle klase bat " "sortu\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1738,20 +1730,20 @@ " --java2 --java bezala , bain Java2 erabiliaz (JDK 1.2 " "edo altuagoa)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --csharp C# modua: .NET .dll fitxategi bat sortu\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" @@ -1759,33 +1751,33 @@ " --tcl Tcl modua: tcl/msgcat .msg fitxategi bat " "sortu\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt modua: Qt .qm fitxategi bat sortu\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict Uniforum zehatz modua gaitu\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Irteera fitxategia - bada, irteera irteera estandarrean idatziko da.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Irteera fitxategi kokapena java moduan:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1794,7 +1786,7 @@ " -l, --locale=LAKALA lokal izena, edo hizkunzta edo " "hizkutza_NAZIOA\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -1802,7 +1794,7 @@ " -d DIRECTORY klse direktorio ierarkiaren oinarri " "direktorioa\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1816,37 +1808,37 @@ "azpian\n" "idatziko da.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Irteera fitxategi kokalekua C# moduan:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Irteera fitxategi kokapena Tcl moduan:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORY msg mezu katalogoen oinarri direktorioa\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1856,12 +1848,12 @@ "direktorioan\n" "idatziko da.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Sarrera fitxategi interpretazioa:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1869,33 +1861,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1903,18 +1895,18 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy zalantzazko kateak erabili irteeran\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -1922,80 +1914,80 @@ " --no-hash fitxategi bitarrak ez du hash taula " "barneratuko\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics itzulpenaren estatistikak inprimatu\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose handitu argibide maila\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "oharra: PO fitxategi goiburua falta edo baliogabea da\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "oharra: karaktere joko bihurketak ez du funtzionatuko\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "oharra: PO fitxategi burua nahasirik\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "oharra: msgfmt-ren bertsio zaharragoek errorea emango dute honetan\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "\"%s\" domeinu izena ez da fixtategi izen bezala erabili" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "\"%s\" domeinu izena ez da fixtategi izen bezala erabili: aurrizki bat " "erabiliko da" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "`domain %s' direktiba alde batetara utziko da" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "hutsik dagoen `msgstr' sarrera alde batetara utziko da" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "zalantzan dagoen `msgstr' sarrera alde batetara utziko da" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: oharra: jatorri fitxategiak zalantzazko itzulpenak ditu" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "errorea \"%s\" irakurtzean" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2004,14 +1996,14 @@ "'%c' aukera ezin da erabili 'J' , 'K' , 'T' , 'C' edo 'X' ezarria izan " "ondoren" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2051,7 +2043,7 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2059,17 +2051,17 @@ " --escape C ihesak erabili irteeran, ez hedatutako " "karaktereak\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output ordenatutako irteera sortu\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file fitxategi kokapenez ordenatu\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2079,7 +2071,7 @@ "ezarri LANG ingurune aldagaia, ABOUT-NLS fitxategian azaltzen\n" "den moduan. HAu beharrezkoa da itzulpenak probatu ahal izateko.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2090,12 +2082,12 @@ "Mesedez ezarri locale-a --locale aukeraren bidez edo irteera\n" ".po fitxategia --output-file fitxategiaren bidez.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s-ek sortua .\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2104,12 +2096,12 @@ "PO fitxategi berri bat sortu, meta informazioa erabiltzailearen inguruneko balioez\n" "abiarazten.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=SAR_FITXATEGIA sarrera POT fitxategia\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2120,26 +2112,26 @@ "fitxategiaren bila.\n" "berau - bada, sarrera estandarra irakurriko da\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FITXATEGIA idatzi irteera ezarritako PO " "fitxategian\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC helburu locale-a ezarri\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2147,7 +2139,7 @@ " --no-translator PO fitxategia automatikoki sortu dela " "pentsatu\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2155,12 +2147,12 @@ ".pot fitxategi bat baino gehiago topatu da.\n" "Mesedez ezarri sarrera .pot fitxategia --input aukeraren bidez.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "errorea uneko direkotrioa irakurtzerakoan" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2168,14 +2160,14 @@ "Ez da uneko direkotrioan .pot fitxategirik aurkitu.\n" "Mesedez ezarri sarrera .pot fitxategia --input aukeraren bidez.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s azpiprozesuak %d irteera kodeaz huts egin du" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2192,47 +2184,47 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "%s paketearen Ingelesezko itzulpena" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "dagoen \"%s\" karaktere jokoa ez da kodeketa izen portable bat" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "bi karaktere joko ezberdin \"%s\" eta \"%s\" sarrera fitxategian" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "`%s' sarrera fitxategiak ez du karaktere joko ezarpena duen goibururik" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, fuzzy, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "s in s t a goiburua honekin a" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, fuzzy, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "s da a." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "oharra: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2242,7 +2234,7 @@ "artean.\n" "Irteera UTF-8 -ra bihurtzen.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2255,7 +2247,7 @@ "Irteera UTF-8 -ra bihurtzen.\n" "BEste irteera kodeketa bat hautatzeko, --to-code aukera erabili.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2264,7 +2256,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2277,12 +2269,12 @@ "'%s'-ren irteera okerra izan.\n" "Aukera posibleak:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- LC_ALL %s kodeketa duen lokal batetara ezarri.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2293,7 +2285,7 @@ " orduan '%s' ezarri,\n" " gero %s 'msgconv' erabiliaz atzera bihurtu.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2306,7 +2298,7 @@ " orduan '%s' ezarri,\n" " gero 'msgconv' erabiliaz %s-ra atzera bihurtu.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2317,26 +2309,26 @@ "'%s'-ren irteera okerra izan daiteke.\n" "Aukera bat LC_ALL=C ezartzea da.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "espresio pluralek balio negatiboak sortu ditzakete" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu baina plural espresioek %lu baino balio handiagoak sortu " "ditzakete" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "espresio pluralek 0-z zatiketak srotu ditzakete" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "espresio pluralek zenbaki oso gainezkatze bat sortu dezakete" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2344,51 +2336,51 @@ "espresio pluralek salbuespen aritmetikoak sortu ditzakete, posibleki 0-z " "zatiketak" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Hurrengoa erabiliaz saiatu, %s-rentzat baliagarria:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "mezu katalogoak plural moduko itzulpenak ditu" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "baina goiburuak ez du \"plural=ESPRESIOA\" atributurik" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "baina goiburuak ez du \"nplurals=ZENBAKI_OSO\" atributurik" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "nplurals balio baliogabea" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "plural espresio baliogabea" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "baina zenbait mezuk bakarrik forma plural bat dute" msgstr[1] "baina zenbait mezuk bakarrik %lu forma plural dituzte" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "baina zenbait mezuk forma plural bat dute" msgstr[1] "baina zenbait mezuk %lu forma plural dituzte" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2396,82 +2388,82 @@ "mezu katalogoak plural moduko iztuilpenak ditu, baina ez du \"Plural-Forms: " "nplurals=INTEGER; plural=EXPRESSION;\" goiburuan" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "`msgid' eta`msgid_plural' sarrerak ez dira biak honela hasten: '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' and `msgstr[%u]' sarrerak ez dira biak honela hasten: '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' eta `msgstr' sarrerak ez dira biak honela hasten: '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' eta`msgid_plural' sarrerak ez dira biak honela amaitzen: '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' and `msgstr[%u]' sarrerak ez dira biak honela amaitzen: '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' eta `msgstr' sarrerak ez dira biak honela amaitzen: '\\n''" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "plural kudeaketa GNU gettext hedapen bat da" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "`%s' goiburu eremua falta da goiburuan\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "`%s' goiburu eremua lerro hasieran hasi behar da\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "zenbait goiburu eremuk oraindik hasierako balioa dute\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "`%s' eremuak oraindik hasierako balioa du\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "zenbait goiburu eremuk oraindik hasierako balioa dute\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: sarrera ez da baliozkoa \"%s\" kodeketan" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: errorea \"%s\" kodeketatik \"%s\" kodeketara bihurketa egitean" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "sarrera fitxategiak ez du karaktere jokoa ezartzen duen goiburu sarrerarik" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2480,15 +2472,15 @@ "Ezinda \"%s\"-tik \"%s\"-ra bihurketa egin. %s iconv() funtzioan " "oinarriturik dago, eta iconv() -ek ez du bihurketa hau onartzen." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2497,16 +2489,16 @@ "Ezinda \"%s\"-tik \"%s\"-ra bihurketa egin. %s iconv() funtzioan " "oinarriturik dago. Bertsio hau iconv() gabe erabili zen." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s %s-rekin bakarrik da baliozkoa" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "babeskopia mota" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2520,24 +2512,24 @@ "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2547,27 +2539,27 @@ " ez egin ezer def.po dagoeneko eguneraturik " "badago\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Irteera fitxategi kokapena eguneraketa moduan:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Emaiztak berriz def.po fitxategian idatziko dira.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=KONTROL def.po-ren babeskopia bat egin\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=AURRIZKI gainidatzi babeskopia aurrizki arrunta\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2579,7 +2571,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2587,60 +2579,57 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching ez erabili zalantza parekatzea\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous mantendu aurreko msgid-ak itzulitako mezuetan\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent kendu aurrerapen erakusleak\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "mezu honek plural moduak ezarri behar ditu" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "uneko" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " eginda.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s eta fitxategi izen zehatzak batak bestea oztopatzen dute" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Erabilera: %s [AUKERA] [FITXATEGIA]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Bihurtu mezu katalogo bitarra Uniforum rdtiloko .po fitxategi.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2649,20 +2638,20 @@ " -j, --java Java modua: sarrera Java ResourceBundle klase " "bat da\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp C# modua: sarrera .NET .dll fitxategi bat da\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2670,17 +2659,17 @@ " --tcl Tcl modeua: sarrera tcl/msgcat .msg fitxategi " "bat da\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FITXATEGIA... sarrera .mo fixtaegiak\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Sarrera fitxategi kokapena Java moduan:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2688,41 +2677,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Sarrera fitxategi kokapen C# moduan\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Sarrera fitxategi kokalekua Tcl moduan\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent idatzi koskadun estiloko irteera\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict idatzi uniforum zehatz estiloan\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2735,13 +2724,13 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" " -d, --repeated errepikaturiko mezuak bakarrik inprimatu\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2750,7 +2739,7 @@ " -u, --unique mezu bakarrak bakarrik inprimatu, " "bikoiztutakoak alboratu\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2837,65 +2826,65 @@ msgid "plural form has wrong index" msgstr "plural moduak okerreko indize bat du" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "errore gehiegi, uzten" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "multibyte sekuentzia baliogabea" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "byte-anitzeko sekuentzia amaitugabea fitxategi amaieran" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "byte-anitzeko sekuentzia amaitugabea lerro amaieran" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv hutsa" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "\"%s\" hitz-gakoa ezezaguna da" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "kontrol sekuentzia baliogabea" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "fitxategi-amaiera katerik gabe" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "lerro-amaiera katerik gabe" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "kontestu bereizlea katerik gabe" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "fitxategi honek ez lituzke domeinu direktibak izan beharko" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "bikoizturiko mezu definizioa" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "hau da lehen definizioaren kokalekua" @@ -2980,17 +2969,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "errorea \"%s\" kodeketatik \"%s\" kodeketara formatua bihurtzean" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "bi argumentu espero ziren" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Erabilera: %s [AUKERA] URL FITXATEGIA\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -2999,11 +2988,26 @@ "URL batetako edukiak eskuratu eta atera. URL-a ezin bada ebatzi,\n" "lokalki eskuragarri dagoen FITXATEGIA erabiliko da.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "errorea irteera estandarrean idazterakoan" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 #, fuzzy msgid "" @@ -3041,43 +3045,43 @@ "mezu katalogoak itzulpen pluralak ditu, baina irteera formatuak ez ditu " "onartzen." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "ezin da \"%s\" irteera fitxategia sortu" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "irteera estandarra" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "Huts \"%s\" direktorioa sortzerakoan" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "C# klase konpilazioak huts egin du, saiatu --verbose erabiliaz" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "C# klase konpilazioak huts egin du, saiatu --verbose erabiliaz" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "ez da baliozko java klase izena: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "Java klasearen konpilazioak huts egin du, saiatu --verbose erabiliz edo " "$JAVAC ezarriz" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3089,13 +3093,13 @@ msgid "error while opening \"%s\" for writing" msgstr "errorea \"%s\" idaztekatarako irekitzerakoan" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "internazionalizatutako kateek ezin dute `\\%c' ihes sekuentzia eduki" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3109,7 +3113,7 @@ " garbia erabiltzean pensta ezazu.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3134,8 +3138,8 @@ #: src/write-qt.c:693 #, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "karakterera Qt formateatu Unicode in in n" @@ -3153,14 +3157,14 @@ msgid "error while writing to %s subprocess" msgstr "errorea %s azpirpozesuan idazterakoan" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "C formateatu t n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 #, fuzzy msgid "" "message catalog has plural form translations\n" @@ -3181,99 +3185,97 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "formateatu t n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "s l katea" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "s l" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, fuzzy, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "s l" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "s l katea" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, fuzzy, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "ASCII katea s s Nork n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "s l Baliogabea Nork n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "s l osatu gabea Nork n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "s l Osatugabea - Nork n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "s l Osatugabea - Nork n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv hutsa" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "s l Baliogabea Nork n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: oharra: Unicode karaktere baliogabea" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "s l katea" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: oharra: ')' aurkitu da '}' espero zen lekuan" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: oharra: '}' aurkitu da ')'espero zen lekuan" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3282,56 +3284,55 @@ "\"glade\" hizkuntza ez da onartzen. %s expat-en oinarritua.\n" "Bertsio hau expta gabe eraiki da.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "s l katea" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: ez da kate amaiera aurkitzen \"%s\" fixtategi amaiera aurreko inon" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: eskuin giltza falta da hemen: \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazio baliogabea (\"\\l\") 8bit-eko karakterean\"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazio baliogabea (\"\\u\") 8bit-eko karakterean\"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: aldagai interpolazio baliogabe a \"%c\"-en" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazio baliogabea (\"\\L\") 8bit-eko karakterean\"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazio baliogabea (\"\\U\") 8bit-eko karakterean\"%c\"" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "ASCII katea s s Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3339,7 +3340,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "s l Baliogabea Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3347,7 +3348,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "s l osatu gabea Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3355,7 +3356,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "s l Osatugabea - Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3363,7 +3364,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "s l Osatugabea - Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3371,27 +3372,27 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "s l Baliogabea Nork a inhttp://www.python.org/peps/pep-0263.html. n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "\"%s\" kodeketa ezezaguna. ASCII erabiliaz aurrera egingo da." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: kate definizio baliogabea" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: zenbaki bat faltda da # ondoren" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: kate espresio baliogabea" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3400,28 +3401,28 @@ "%s:%lu: oharra: $\"...\" sintasia zaharkiturik dago segurtasun " "arrazoiegatik ; eval_gettext erabili horren ordez" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing ezin da erabili irteera irteera estandarrean idazten denean" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "oharra: `%s' fitxategi hedaopena `%s' ezezaguna da, C probatuko da" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Irauli kate itzulgarriak emandako sarrera fitxategietatik.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3430,12 +3431,12 @@ " -d, --default-domain=IZENA IZENA erabili irteerarako (messages.po " "ordez)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE idatzi irteera ezarritako fitxategian\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3443,12 +3444,12 @@ " -p, --output-dir=DIR irteera fitxategiak DIR direktorioan utziko " "dira\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Sarrera fitxategiaren hizkuntza hautapena:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3467,12 +3468,12 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++-ren laburopena\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3481,7 +3482,7 @@ "Lehenespen bezala hizkuntza sarrera fitxategiaren izen hedapenaz igarriko " "da.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3490,41 +3491,44 @@ " --from-code=NAME sarrera fixtategien kodeket\n" " (Python, Tcl, Glade-en ezezik)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Lehenespen modura sarrera fitxategiak ASCII direla suposatuko da.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=FITXATEGIA.po FITXATEGIA.po fitxategiko kateak ez dira " "irauliko\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Hizkuntzaren aukera bereziak:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all kate guztiak atera\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3538,14 +3542,14 @@ " Perl, PHP, GCC-source eta Glade hizkuntzetan " "bakarrik)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3553,7 +3557,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3567,38 +3571,38 @@ " Tcl, Perl, PHP, GCC-source hizkuntzetan " "bakarrik)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs ANSI C trigraphs-ak ulertu sarreran\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (C, C++, ObjectiveC hizkuntzetan bakarrik)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Qt formatuko kateak antzeman\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (C++ hizkuntz bakarrik)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt Qt formatuko kateak antzeman\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost Boost formatuko kateak antzeman\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3606,17 +3610,17 @@ " --debug kate formatu atzemateari buruzko informazio " "hedatuagoa\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output idatzi Java .properties fitxategi bat\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=KATEA copyright jabea ezarri irteeran\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3624,17 +3628,17 @@ " --foreign-user alde batera utzi FSF copyright-a kanpoko " "erabiltzaileen irteeran\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --copyright-holder=KATEA copyright jabea ezarri irteeran\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3642,56 +3646,73 @@ " --msgid-bugs-address=EPOSTA@HELBIDEA msgid erroreentzat erreporte " "helbidea ezarri\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-prefix[=KATEA] KATEA erabili edo \"\" aurrizki bezala msgstr " "sarreretan\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=KATEA] KATEA erabili edo \"\" atzizki bezala msgstr " "sarreretan\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "--flag argumentuak ez du ::[pasa-] sintasia: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "sarrera estandarra" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: oharra: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3700,7 +3721,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3710,28 +3731,28 @@ "gettext(\"\")-ek meta informazioa duen goiburua\n" "itzultzen du, ez date hutsa.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "oharra: argumentu ezarpen zalanatzagarria '%.*s' hitz-gakoarentzat" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "oharra: kontestua falta da '%.*s' hitz-gakoarentzat" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" "oharra: kontestua falta da '%.*s' hitz-gakoaren plural arumentuarentzat" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "kontestu parekatze okerra formatu singular eta pluralaren artean" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3743,7 +3764,7 @@ "MSGID_BUGS_ADDRESS aldagaia hor; bestela mesedez ezarri\n" "--msgid-bugs-address aukera komando lerroan.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "`%s' hizkuntza ezezaguna" @@ -3752,6 +3773,27 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: legezkanpoko aukera -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle-ek 0x%08x errore kodeaz huts egin du" + +#~ msgid "Not yet implemented." +#~ msgstr "Oraindik ez da onartzen." + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "%s azpiprozuarekiko komunikazioak huts egin du" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "Huts %s azpiprozesua irakurtzerakoan" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s azpiprozesua %d irteera kodeaz amaitu da" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "`%s' eremuak oraindik hasierako balioa du\n" + #, fuzzy #~ msgid "Multiple references to %%%c." #~ msgstr "Anizkoitza nori k." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/fi.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/fi.gmo differ diff -Nru gettext-0.17/gettext-tools/po/fi.po gettext-0.18.1.1/gettext-tools/po/fi.po --- gettext-0.17/gettext-tools/po/fi.po 2007-11-02 02:23:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/fi.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,175 +1,177 @@ # Finnish translations for GNU Gettext package. -# Copyright 2002 Free Software Foundation, Inc. -# Sami J. Laine , 2002 -# This file is distributed under the same license as the PACKAGE package. +# This file is distributed under the same license as the gettext package. +# Copyright © 2002, 2009 Free Software Foundation, Inc. # Sami J. Laine , 2002 +# Lauri Nurmi , 2009 # msgid "" msgstr "" -"Project-Id-Version: gettext 0.11.2\n" +"Project-Id-Version: gettext-tools 0.17\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2002-06-05 18:06+0200\n" -"Last-Translator: Sami J. Laine \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-06-06 20:36+0300\n" +"Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" +"Language: fi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #: gnulib-lib/argmatch.c:133 -#, fuzzy, c-format +#, c-format msgid "invalid argument %s for %s" -msgstr "virheellinen argumentti `%s' `%s':lle" +msgstr "virheellinen argumentti %s %s:lle" +# Vähän huono käyttää taivutuspäätettä, mutta jälkimmäinen %s voinee +# viitata moneenkin asiaan. #: gnulib-lib/argmatch.c:134 -#, fuzzy, c-format +#, c-format msgid "ambiguous argument %s for %s" -msgstr "moniselitteinen argumentti `%s' `%s':lle" +msgstr "moniselitteinen argumentti %s %s:lle" #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" msgstr "Kelvolliset argumentit ovat:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "ei voi luoda putkea" -#: gnulib-lib/clean-temp.c:443 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:445 +#, c-format msgid "cannot remove temporary file %s" -msgstr "ei voi luoda putkea" +msgstr "väliaikaistiedostoa %s ei voi poistaa" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "" +msgstr "kirjoitusvirhe" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" -msgstr "virhe avattaessa \"%s\" lukemista varten" +msgstr "virhe avattaessa tiedostoa ”%s” lukemista varten" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr "ei voida avata varmuuskopiotiedostoa \"%s\" kirjoittamista varten" +msgstr "ei voida avata varmuuskopiotiedostoa ”%s” kirjoittamista varten" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" -msgstr "virhe luettaessa \"%s\"" +msgstr "virhe luettaessa tiedostoa ”%s”" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" -msgstr "virhe kirjoitettaessa \"%s\"" +msgstr "virhe kirjoitettaessa tiedostoa ”%s”" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" -msgstr "virhe \"%s\" lukemisen jlkeen" +msgstr "virhe tiedoston ”%s” lukemisen jälkeen" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" -msgstr "" +msgstr "fdopen() epäonnistui" -#: gnulib-lib/csharpcomp.c:570 -#, fuzzy, c-format +#: gnulib-lib/csharpcomp.c:571 +#, c-format msgid "C# compiler not found, try installing pnet" -msgstr "Java-kntj ei lytynyt, yrit gcj:n asentamista tai aseta $JAVAC" +msgstr "C#-kääntäjää ei löytynyt, yritä asentaa pnet" #: gnulib-lib/csharpexec.c:343 -#, fuzzy, c-format +#, c-format msgid "C# virtual machine not found, try installing pnet" -msgstr "" -"Java virtuaalikonetta ei lytynyt, yrit gij:n asentamista tai aseta $JAVA" +msgstr "C#-virtuaalikonetta ei löytynyt, yritä asentaa pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "Tuntematon jrjestelmn virhe" +msgstr "Tuntematon järjestelmän virhe" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" -msgstr "%s aliprosessi eponnistui" +msgstr "%s aliprosessi epäonnistui" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: valitsin `%s' on moniselitteinen\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: valitsin ”%s” on moniselitteinen\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: valitsin `--%s' ei salli argumenttia\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: valitsin ”--%s” ei salli argumenttia\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: valitsin `%c%s' ei salli argumenttia\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: valitsin ”%c%s” ei salli argumenttia\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: valitsin `%s' vaatii argumentin\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: valitsin ”%s” vaatii argumentin\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: tuntematon valitsin `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: tuntematon valitsin ”--%s”\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: tuntematon valitsin `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: tuntematon valitsin ”%c%s”\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: virheellinen valitsin -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: virheellinen valitsin – %c\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: virheellinen valitsin -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: valitsin vaatii argumentin – %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: valitsin vaatii argumentin -- %c\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: valitsin ”-W %s” on moniselitteinen\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: valitsin `-W %s' on moniselitteinen\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: valitsin ”-W %s” ei salli argumenttia\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: valitsin `-W %s' ei salli argumenttia\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: valitsin ”%s” vaatii argumentin\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 @@ -182,44 +184,43 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, fuzzy, c-format msgid "error while writing \"%s\" file" -msgstr "virhe kirjoitettaessa \"%s\"" +msgstr "virhe kirjoitettaessa ”%s”" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" -msgstr "Java-kntj ei lytynyt, yrit gcj:n asentamista tai aseta $JAVAC" +msgstr "Java-kääntäjää ei löytynyt, yritä asentaa gcj tai aseta $JAVAC" #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" -msgstr "" -"Java virtuaalikonetta ei lytynyt, yrit gij:n asentamista tai aseta $JAVA" +msgstr "Java-virtuaalikonetta ei löytynyt, yritä asentaa gij tai aseta $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, fuzzy, c-format msgid "%s subprocess I/O error" msgstr "%s aliprosessi" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "muisti loppu" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -238,72 +239,71 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" -msgstr "" +msgstr "”" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" -msgstr "" - -#: gnulib-lib/w32spawn.h:47 -#, fuzzy, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "%s aliprosessi eponnistui" +msgstr "”" -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "ei voi luoda putkea" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s aliprosessi" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s aliprosessi vastaanotti fataalin signaalin %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "muotomrittely argumentille %u ei ole olemassa 'msgid':lle '%s':ss" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "muotomäärittelyä argumentille %u ei ole olemassa 'msgid':lle '%s':ssä" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" -msgstr "muotomrittely argumentille %u ei ole '%s':ss" +msgstr "muotomäärittely argumentille %u ei ole '%s':ssä" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" -"muotomrittelyiden mr 'msgid':ss ja '%s':ss argumentille %u ei ole sama" +"muotomäärittelyiden määrä 'msgid':ssä ja '%s':ssä argumentille %u ei ole sama" #: src/format-boost.c:449 #, c-format @@ -327,10 +327,10 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "muotomrittelyiden mr 'msgid':ss ja '%s':ss ei tsm" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "muotomäärittelyiden määrä 'msgid':ssä ja '%s':ssä ei täsmää" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -369,48 +369,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -500,23 +500,22 @@ msgstr "" #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr "muotomrittely argumentille {%u}, kuten '%s':ss, ei ole 'msgid':ss" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "muotomäärittely argumentille {%u}, kuten '%s':ssä, ei ole 'msgid':ssä" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" -msgstr "muotomrittely argumentille {%u} ei ole '%s':ss" +msgstr "muotomäärittely argumentille {%u} ei ole '%s':ssä" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"muotomrittelyt 'msgid':ss ja '%s':ss argumentille {%u} eivt ole samat" +"muotomäärittelyt 'msgid':ssä ja '%s':ssä argumentille {%u} eivät ole samat" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -529,11 +528,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -580,15 +579,15 @@ msgstr "" #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "muotomrittelyt 'msgid' ja '%s' eivt ole yhdenmukaiset" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "muotomäärittelyt 'msgid' ja '%s' eivät ole yhdenmukaiset" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" -"muotomrittelyt '%s':ss eivt ole 'msgid':n muotomrittelyiden osajoukko" +"muotomäärittelyt '%s':ssä eivät ole 'msgid':n muotomäärittelyiden osajoukko" #: src/format-perl.c:433 #, c-format @@ -597,59 +596,56 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" -msgstr "muotomrittely argumentille '%s' ei lyty '%s':st" +msgstr "muotomäärittelyä argumentille '%s' ei löyty '%s':stä" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"muotomrittelyt 'mdgid':ss edellyttvt kartoitusta, mrittelyt '%s':ss " -"edellyttvt " +"muotomäärittelyt 'mdgid':ssä edellyttävät kartoitusta, määrittelyt '%s':ssä " +"edellyttävät " -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"muotomrittelyt 'msgid':ss' edellyttvt jrjestetty joukkoa, mrittelyt " -"'%s':ss' edellyttvt " +"muotomäärittelyt 'msgid':ss' edellyttävät järjestettyä joukkoa, määrittelyt " +"'%s':ss' edellyttävät " -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr "muotomrittely argumentille '%s', kuten '%s':ss, ei lydy " +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "muotomäärittelyä argumentille '%s', kuten '%s':ssä, ei löydy " -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"muotomrittely 'msgid':ss ja '%s':ss argumentille '%s' eivt ole samat" +"muotomäärittely 'msgid':ssä ja '%s':ssä argumentille '%s' eivät ole samat" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -686,11 +682,12 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +# Käännetty M. Välimäen GPLv3-käännöksestä vihjeitä katsoen. +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -698,52 +695,56 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"Tekijänoikeudet © %s Free Software Foundation, Inc.\n" +"Lisenssi GPLv3+: GNU GPL versio 3 tai myöhempi \n" +"Tämä on vapaa ohjelmisto ja sen muuttaminen ja levittäminen edelleen on sallittua.\n" +"Ohjelmalle EI ANNETA TAKUUTA lain sallimissa rajoissa.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Kirjoittanut %s\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "liian monta argumenttia" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Yrit `%s --help' saadaksesi lis tietoja.\n" +msgstr "Komento ”%s --help” antaa lisää tietoja.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr "Kytt: %s [VALITSIN]\n" +msgstr "Käyttö: %s [VALITSIN]\n" #: src/hostname.c:215 #, c-format msgid "Print the machine's hostname.\n" -msgstr "Tulosta laitteen isntnimi.\n" +msgstr "Näytä laitteen konenimi.\n" #: src/hostname.c:218 #, c-format msgid "Output format:\n" -msgstr "" +msgstr "Tulosteen muoto:\n" #: src/hostname.c:220 #, c-format @@ -758,383 +759,401 @@ " name, and aliases\n" msgstr "" "Tulostuksen muoto:\n" -" -s, --short lyhyt isntnimi\n" -" -f, --fqdn, --long pitk isntnimi, sislt tyden domain-nimen ja\n" -" sen mahdolliset lisnimet\n" -" -i, --ip-address osoitteet isntnimelle\n" +" -s, --short lyhyt isäntänimi\n" +" -f, --fqdn, --long pitkä isäntänimi, sisältää täyden domain-nimen ja\n" +" sen mahdolliset lisänimet\n" +" -i, --ip-address osoitteet isäntänimelle\n" #: src/hostname.c:225 #, c-format msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" -msgstr "" +msgstr "Selittävä tuloste:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr "" +msgstr " -h, --help näytä tämä ohje ja poistu\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 -#, fuzzy, c-format, no-wrap +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 +#, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr "" -"Tietoja antavat tulosteet:\n" -" -h, --help nytt tmn ohjeen ja lopettaa suorituksen\n" -" -V, --version nytt ohjelmiston version ja lopettaa\n" -" suorituksen\n" +msgstr " -V, --version tulosta ohjelman versiotiedot ja poistu\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" -msgstr "Ilmoita ohjelmiston vioista osoitteeseen .\n" +msgstr "" +"Ilmoita ohjelmiston vioista osoitteeseen .\n" +"Ilmoita suomennoksen vioista listalle .\n" #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" -msgstr "ei saatu isntnime" +msgstr "ei saatu isäntänimeä" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" -msgstr "enintn yksi sytetiedosto on sallittu" +msgstr "enintään yksi syötetiedosto on sallittu" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s ja %s ovat toisensa poissulkevia" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] [SYÖTETIEDOSTO]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" +"Pitkien valitsinten pakolliset argumentit ovat pakollisia myös lyhyille.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" -msgstr "" +msgstr " --set-fuzzy aseta kaikki viestit vajaiksi\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" -msgstr "" +msgstr " --clear-fuzzy aseta kaikki viestit epävajaiksi\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" -msgstr "" +msgstr "Syötetiedoston syntaksi:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" +msgstr "Tulosteen yksityiskohdat:\n" + +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 -#, fuzzy, c-format +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 +#, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] [SYÖTETIEDOSTO]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1148,105 +1167,97 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" -msgstr "" +msgstr " SYÖTETIEDOSTO ... syötetiedostot\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" -msgstr "" +msgstr "Jos syötetiedosto on -, luetaan vakiosyötettä.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" -msgstr "" +msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" -msgstr "" +msgstr "syötetiedostoja ei annettu" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" -msgstr "" +msgstr "tarvitaan täsmälleen kaksi syötetiedostoa" -#: src/msgcmp.c:202 src/msgmerge.c:453 -#, fuzzy, c-format +#: src/msgcmp.c:213 src/msgmerge.c:480 +#, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" -msgstr "Kytt: %s [VALITSIN]\n" +msgstr "Käyttö: %s [VALITSIN] tiedosto.po referenssi.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1257,81 +1268,86 @@ "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" -msgstr "" +msgstr "tämä viesti on kääntämättä" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "" -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" -msgstr "" +msgstr "varoitus: tätä viestiä ei käytetä" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" -msgstr[0] "" -msgstr[1] "" +msgstr[0] "%d vakava virhe" +msgstr[1] "%d vakavaa virhettä" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" -msgstr "" +msgstr "on annettava vähintään kaksi tiedostoa" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1344,74 +1360,74 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" -msgstr "" +msgstr "syötetiedostoa ei annettu" -#: src/msgen.c:233 -#, fuzzy, c-format +#: src/msgen.c:253 +#, c-format msgid "exactly one input file required" -msgstr "enintn yksi sytetiedosto on sallittu" +msgstr "tarvitaan täsmälleen yksi syötetiedosto" -#: src/msgen.c:274 -#, fuzzy, c-format +#: src/msgen.c:298 +#, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] SYÖTETIEDOSTO\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1420,22 +1436,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" -msgstr "" +msgstr "puuttuva komento" -#: src/msgexec.c:240 -#, fuzzy, c-format +#: src/msgexec.c:257 +#, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] KOMENTO [KOMENNON VALITSIN]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1445,67 +1461,72 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" +"Erityinen sisäinen komento nimeltä ”0” tulostaa käännöksen ja nollatavun.\n" +"”msgexec 0”:n tuloste kelpaa syötteeksi ”xargs -0”:lle.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" -msgstr "" +msgstr " -i, --input=SYÖTETIED syöte-PO-tiedosto\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "" +msgstr "kirjoittaminen vakiotulosteeseen epäonnistui" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, fuzzy, c-format msgid "write to %s subprocess failed" -msgstr "%s aliprosessi eponnistui" +msgstr "%s aliprosessi epäonnistui" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" -msgstr "ei riittvsti argumentteja" +msgstr "ei riittävästi argumentteja" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "" -#: src/msgfilter.c:395 -#, fuzzy, c-format +#: src/msgfilter.c:388 +#, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] SUODATIN [SUODATTIMEN VALITSIN]\n" -#: src/msgfilter.c:399 -#, c-format +#: src/msgfilter.c:392 +#, fuzzy, c-format msgid "Applies a filter to all translations of a translation catalog.\n" -msgstr "" +msgstr "Soveltaa suodatinta kaikkiin käännösluettelon käännöksiin.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" +"SUODATIN voi olla mikä tahansa ohjelma, joka lukee käännöksen " +"vakiosyötteestä\n" +"ja kirjoittaa muutetun käännöksen vakiotulosteeseen.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1513,210 +1534,197 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, fuzzy, c-format -msgid "communication with %s subprocess failed" -msgstr "%s aliprosessi eponnistui" - -#: src/msgfilter.c:695 -#, fuzzy, c-format -msgid "read from %s subprocess failed" -msgstr "%s aliprosessi eponnistui" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, fuzzy, c-format msgid "%s is only valid with %s or %s" -msgstr "virheellinen argumentti `%s' `%s':lle" +msgstr "virheellinen argumentti ”%s” ”%s”:lle" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, fuzzy, c-format msgid "%s is only valid with %s, %s or %s" -msgstr "virheellinen argumentti `%s' `%s':lle" +msgstr "virheellinen argumentti ”%s” ”%s”:lle" + +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" -#: src/msgfmt.c:599 +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" -msgstr[0] "" -msgstr[1] "" +msgstr[0] "%d käännetty viesti" +msgstr[1] "%d käännettyä viestiä" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" -msgstr[0] "" -msgstr[1] "" +msgstr[0] ", %d vajaa käännös" +msgstr[1] ", %d vajaata käännöstä" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" -msgstr[0] "" -msgstr[1] "" +msgstr[0] ", %d kääntämätön viesti" +msgstr[1] ", %d kääntämätöntä viestiä" -#: src/msgfmt.c:629 -#, fuzzy, c-format +#: src/msgfmt.c:650 +#, c-format msgid "Usage: %s [OPTION] filename.po ...\n" -msgstr "Kytt: %s [VALITSIN]\n" +msgstr "Käyttö: %s [VALITSIN] tiedosto.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" +"Luo binäärimuotoisia viestiluetteloita tekstimuotoisesta " +"käännöskuvauksesta.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" +"Pitkien valitsinten pakolliset argumentit ovat pakollisia myös lyhyille.\n" +"Valinnaiset argumentit vastaavasti.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" -msgstr "" +msgstr " tiedosto.po ... syötetiedostot\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" -msgstr "" +msgstr "Toimintatila:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" -msgstr "" +msgstr " --qt Qt-tila: luo Qt:n .qm-tiedosto\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" -msgstr "" +msgstr "Jos tulostiedosto on -, tuloste kirjoitetaan vakiotulosteeseen.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" +" -l, --locale=MAA-ASETUSTO maa-asetuston nimi, joko kieli tai kieli_MAA\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1725,48 +1733,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" -msgstr "" +msgstr "Syötetiedoston tulkinta:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1774,33 +1782,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1808,109 +1816,109 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" -msgstr "" +msgstr " -f, --use-fuzzy käytä vajavuusmerkintöjä tulosteessa\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" -msgstr "" +msgstr "varoitus: PO-tiedoston otsake puuttuu tai on virheellinen\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" -msgstr "" +msgstr "varoitus: merkistömuunnos ei tule toimimaan\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" -msgstr "" +msgstr "varoitus: PO-tiedoston otsake on merkitty vajaaksi\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" -msgstr "" +msgstr "varoitus: msgfmt:n vanhat versiot antavat tästä virheen\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" -msgstr "" +msgstr "tyhjä ”msgstr”-merkintä jätetty huomioimatta" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" -msgstr "" +msgstr "vajaa ”msgstr”-merkintä jätetty huomioimatta" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" -msgstr "" +msgstr "%s: varoitus: lähdetiedosto sisältää vajaan käännöksen" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 -#, fuzzy, c-format +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 +#, c-format msgid "error while reading \"%s\"" -msgstr "virhe luettaessa \"%s\"" +msgstr "virhe luettaessa tiedostoa ”%s”" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1950,30 +1958,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" -msgstr "" +msgstr " --sort-output tuota lajiteltu tuloste\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -1981,24 +1989,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2006,54 +2014,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, fuzzy, c-format msgid "%s subprocess failed with exit code %d" -msgstr "%s aliprosessi eponnistui" +msgstr "%s aliprosessi epäonnistui" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2065,54 +2073,56 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" -msgstr "" +msgstr "Suomenkielinen käännös %s-paketille" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " -msgstr "" +msgstr "varoitus: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" +"Syötetiedosto sisältää viestejä eri merkistöissä, mm. UTF-8:na.\n" +"Muunnetaan tuloste UTF-8:ksi.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2121,7 +2131,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2130,7 +2140,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2139,12 +2149,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2152,7 +2162,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2161,7 +2171,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2169,185 +2179,187 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" -msgstr "" +msgstr "monikkolauseke voi palauttaa negatiivisia arvoja" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" -msgstr "" +msgstr "nplurals = %lu, mutta monikkolauseke voi palauttaa jopa arvon %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" -msgstr "" +msgstr "monikkolauseke voi aiheuttaa jaon nollalla" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" -msgstr "" +msgstr "monikkolauseke voi aiheuttaa kokonaisluvun ylivuodon" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" +"monikkolauseke voi aiheuttaa aritmeettisia poikkeuksia, mahdollisesti jaon " +"nollalla" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" -msgstr "" +msgstr "virheellinen nplurals-arvo" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" -msgstr "" +msgstr "virheellinen monikkolauseke" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" -msgstr "" +msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "" -msgstr[1] "" +msgstr[0] "mutta joillakin viesteillä on vain yksi monikkomuoto" +msgstr[1] "mutta joillakin viesteillä on vain %lu monikkomuotoa" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "" -msgstr[1] "" +msgstr[0] "mutta joillakin viesteillä on yksi monikkomuoto" +msgstr[1] "mutta joillakin viesteillä on %lu monikkomuotoa" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" -msgstr "" +msgstr "monikkomuotojen käsittely on GNU gettext -laajennos" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "kenttä ”%s” on edelleen oletusarvossaan\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "virhe avattaessa \"%s\" lukemista varten" +msgstr "virhe avattaessa ”%s” lukemista varten" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" -msgstr "" +msgstr "syötetiedosto ei sisällä merkistön määrittelevää otsakeriviä" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2361,51 +2373,51 @@ "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2417,7 +2429,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2425,94 +2437,92 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" -msgstr "" +msgstr " valmis.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s ja %s ovat toisensa poissulkevia" -#: src/msgunfmt.c:415 -#, fuzzy, c-format +#: src/msgunfmt.c:427 +#, c-format msgid "Usage: %s [OPTION] [FILE]...\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] [TIEDOSTO]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" +"Muunna binäärimuotoinen viestiluettelo Uniforum-tyyliseksi .po-tiedostoksi.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2520,41 +2530,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2567,22 +2577,22 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" -msgstr "" +msgstr "" #: src/po-charset.c:489 #, c-format @@ -2603,6 +2613,8 @@ "Installing GNU libiconv and then reinstalling GNU gettext\n" "would fix this problem.\n" msgstr "" +"GNU libiconvin asennus ja GNU gettextin uudelleenasennus\n" +"sen jälkeen korjaisi tämän ongelman.\n" #: src/po-charset.c:577 src/po-charset.c:615 msgid "Continuing anyway, expect parse errors." @@ -2633,17 +2645,17 @@ #: src/po-gram-gen.y:240 #, c-format msgid "missing `msgstr[]' section" -msgstr "" +msgstr "puuttuva ”msgid_plural[]”-osio" #: src/po-gram-gen.y:249 #, c-format msgid "missing `msgid_plural' section" -msgstr "" +msgstr "puuttuva ”msgid_plural”-osio" #: src/po-gram-gen.y:257 #, c-format msgid "missing `msgstr' section" -msgstr "" +msgstr "puuttuva ”msgstr”-osio" #: src/po-gram-gen.y:396 #, c-format @@ -2655,67 +2667,67 @@ msgid "plural form has wrong index" msgstr "" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" -msgstr "" +msgstr "tiedoston loppu merkkijonon sisällä" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" -msgstr "" +msgstr "rivinvaihto merkkijonon sisällä" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" -msgstr "" +msgstr "kaksinkertainen viestimäärittely" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" -msgstr "" +msgstr "ensimmäinen määrittely täällä" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 #, c-format @@ -2730,7 +2742,7 @@ #: src/read-mo.c:165 src/read-mo.c:274 #, c-format msgid "file \"%s\" is not in GNU .mo format" -msgstr "" +msgstr "tiedosto ”%s” ei ole GNU:n .mo-muodossa" #: src/read-mo.c:178 #, c-format @@ -2743,15 +2755,15 @@ #: src/read-stringtable.c:802 msgid "warning: unterminated string" -msgstr "" +msgstr "varoitus: päättämätön merkkijono" #: src/read-stringtable.c:810 msgid "warning: syntax error" -msgstr "" +msgstr "varoitus: syntaksivirhe" #: src/read-stringtable.c:871 src/read-stringtable.c:893 msgid "warning: unterminated key/value pair" -msgstr "" +msgstr "varoitus: päättämätön avain/arvo-pari" #: src/read-stringtable.c:939 msgid "warning: syntax error, expected ';' after string" @@ -2762,9 +2774,9 @@ msgstr "" #: src/recode-sr-latin.c:116 -#, fuzzy, c-format +#, c-format msgid "Written by %s and %s.\n" -msgstr "Kirjoittanut %s\n" +msgstr "Kirjoittaneet %s ja %s.\n" #. TRANSLATORS: This is a proper name. The last name is #. (with Unicode escapes) "\u0160egan" or (with HTML entities) @@ -2772,7 +2784,7 @@ #. This is a proper name. See the gettext manual, section Names. #: src/recode-sr-latin.c:120 msgid "Danilo Segan" -msgstr "" +msgstr "Danilo Šegan" #: src/recode-sr-latin.c:153 #, c-format, no-wrap @@ -2794,29 +2806,44 @@ #: src/recode-sr-latin.c:366 #, fuzzy, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "virhe avattaessa \"%s\" lukemista varten" +msgstr "virhe avattaessa ”%s” lukemista varten" -#: src/urlget.c:146 -#, fuzzy, c-format +#: src/urlget.c:159 +#, c-format msgid "expected two arguments" -msgstr "liian monta argumenttia" +msgstr "odotettiin kahta argumenttia" -#: src/urlget.c:163 -#, fuzzy, c-format +#: src/urlget.c:176 +#, c-format msgid "Usage: %s [OPTION] URL FILE\n" -msgstr "Kytt: %s [VALITSIN] [SYTETIEDOSTO]\n" +msgstr "Käyttö: %s [VALITSIN] URL TIEDOSTO\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 -#, fuzzy, c-format +#: src/urlget.c:234 +#, c-format msgid "error writing stdout" -msgstr "virhe kirjoitettaessa \"%s\"" +msgstr "virhe kirjoitettaessa vakiotulosteeseen" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" #: src/write-catalog.c:126 msgid "" @@ -2849,41 +2876,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, fuzzy, c-format msgid "cannot create output file \"%s\"" msgstr "ei voi luoda putkea" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" -msgstr "" +msgstr "vakiotuloste" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "%s aliprosessi eponnistui" +msgstr "C#-luokan kääntäminen epäonnistui" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2891,15 +2918,15 @@ #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, fuzzy, c-format msgid "error while opening \"%s\" for writing" -msgstr "virhe avattaessa \"%s\" lukemista varten" +msgstr "virhe avattaessa ”%s” lukemista varten" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2908,7 +2935,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2925,8 +2952,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -2941,15 +2968,15 @@ #: src/write-resources.c:94 #, fuzzy, c-format msgid "error while writing to %s subprocess" -msgstr "virhe kirjoitettaessa \"%s\"" +msgstr "virhe kirjoitettaessa ”%s”" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -2967,154 +2994,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" -msgstr "%s: virheellinen valitsin -- %c\n" +msgstr "%s: virheellinen valitsin – %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3122,7 +3144,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3130,7 +3152,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3138,7 +3160,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3146,7 +3168,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3154,77 +3176,77 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3236,58 +3258,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" -msgstr "" +msgstr "Kielikohtaiset valitsimet:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3296,14 +3321,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3311,7 +3336,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3320,119 +3345,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 #, c-format -msgid "%s%s: warning: " +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 +#, c-format +msgid "%s%s: warning: " +msgstr "%s%s: varoitus: " + +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3441,34 +3483,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "moniselitteinen argumentti `%s' `%s':lle" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, fuzzy, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "moniselitteinen argumentti `%s' `%s':lle" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, fuzzy, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "moniselitteinen argumentti `%s' `%s':lle" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3476,14 +3518,255 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" -msgstr "" +msgstr "kieli ”%s” on tuntematon" #: libgettextpo/gettext-po.c:84 msgid "" -msgstr "" +msgstr "" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: virheellinen valitsin – %c\n" + +#, fuzzy +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "%s aliprosessi epäonnistui" + +#~ msgid "Not yet implemented." +#~ msgstr "Ei vielä toteutettu." + +#, fuzzy +#~ msgid "communication with %s subprocess failed" +#~ msgstr "%s aliprosessi epäonnistui" + +#, fuzzy +#~ msgid "read from %s subprocess failed" +#~ msgstr "%s aliprosessi epäonnistui" + +#~ msgid "missing arguments" +#~ msgstr "ei riittävästi argumentteja" + +#~ msgid "Usage: %s [OPTION] [SHELL-FORMAT]\n" +#~ msgstr "Käyttö: %s [VALITSIN] [SHELL-MUOTO]\n" + +#~ msgid "Substitutes the values of environment variables.\n" +#~ msgstr "Korvaa ympäristömuuttujien arvot.\n" + +#~ msgid "" +#~ " -v, --variables output the variables occurring in SHELL-" +#~ "FORMAT\n" +#~ msgstr "" +#~ " -v, --variables tulostaa SHELL-MUODOSSA ilmenevät " +#~ "muuttujat\n" + +#~ msgid "" +#~ "In normal operation mode, standard input is copied to standard output,\n" +#~ "with references to environment variables of the form $VARIABLE or " +#~ "${VARIABLE}\n" +#~ "being replaced with the corresponding values. If a SHELL-FORMAT is " +#~ "given,\n" +#~ "only those environment variables that are referenced in SHELL-FORMAT are\n" +#~ "substituted; otherwise all environment variables references occurring in\n" +#~ "standard input are substituted.\n" +#~ msgstr "" +#~ "Tavallisessa toimintatilassa vakiosyöte kopioidaan vakiotulosteeseen\n" +#~ "siten, että viittaukset ympäristömuuttujiin, muodossa $MUUTTUJA tai\n" +#~ "${MUUTTUJA}, korvataan vastaavilla arvoilla. Mikäli SHELL-MUOTO\n" +#~ "annetaan, vain ne ympäristömuuttujat korvataan, joihin viitataan\n" +#~ "SHELL-MUODOssa. Muussa tapauksessa kaikki vakiosyötteessä esiintyvät\n" +#~ "ympäristömuuttujat korvataan.\n" + +#~ msgid "" +#~ "When --variables is used, standard input is ignored, and the output " +#~ "consists\n" +#~ "of the environment variables that are referenced in SHELL-FORMAT, one per " +#~ "line.\n" +#~ msgstr "" +#~ "Valitsinta --variables käytettäessä vakiosyöte jätetään huomiotta ja\n" +#~ "tuloste muodostuu ympäristömuuttujista, yksi kutakin riviä kohti,\n" +#~ "joihin viitataan SHELL-MUODOssa.\n" + +#~ msgid "" +#~ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" +#~ "or: %s [OPTION] -s [MSGID]...\n" +#~ msgstr "" +#~ "Käyttö: %s [VALITSIN] [[KÄÄNNÖSJOUKKO] VIESTI-ID]\n" +#~ "tai: %s [VALITSIN] -s [VIESTI-ID]...\n" + +#~ msgid "Display native language translation of a textual message.\n" +#~ msgstr "Näyttää kotoistetun käännöksen tekstimuotoiselle viestille.\n" + +#~ msgid "" +#~ " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" +#~ " -e enable expansion of some escape sequences\n" +#~ " -E (ignored for compatibility)\n" +#~ " -h, --help display this help and exit\n" +#~ " -n suppress trailing newline\n" +#~ " -V, --version display version information and exit\n" +#~ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" +#~ " to MSGID from TEXTDOMAIN\n" +#~ msgstr "" +#~ " -d, --domain=KÄÄNNÖSJOUKKO hae käännetyt viestit KÄÄNNÖSJOUKOSTA\n" +#~ " -e salli joidenkin lainauskoodien laajentaminen\n" +#~ " -E (jätetään huomiotta yhteensopivuuden vuoksi)\n" +#~ " -h, --help näytä tämä ohje ja poistu\n" +#~ " -n jättää pois rivinvaihdon rivin lopusta\n" +#~ " -V, --version näyttää ohjelmiston versiotiedot ja lopettaa\n" +#~ " suorituksen\n" +#~ " [KÄÄNNÖSJOUKKO] VIESTI-ID etsii käännetyn viestin, joka vastaa VIESTI-" +#~ "ID:tä\n" +#~ " KÄÄNNÖSJOUKOSSA\n" + +#~ msgid "" +#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " +#~ "the\n" +#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " +#~ "the\n" +#~ "regular directory, another location can be specified with the " +#~ "environment\n" +#~ "variable TEXTDOMAINDIR.\n" +#~ "When used with the -s option the program behaves like the `echo' " +#~ "command.\n" +#~ "But it does not simply copy its arguments to stdout. Instead those " +#~ "messages\n" +#~ "found in the selected catalog are translated.\n" +#~ "Standard search directory: %s\n" +#~ msgstr "" +#~ "Jos KÄÄNNÖSJOUKKO-parametria ei anneta, joukko päätellään TEXTDOMAIN-\n" +#~ "ympäristömuuttujan perusteella. Jos viestiluettelo ei ole tavanomaisessa\n" +#~ "hakemistossa, vaihtoehtoinen sijainti voidaan määritellä " +#~ "ympäristömuuttu-\n" +#~ "jalla TEXTDOMAINDIR.\n" +#~ "Valitsimen -s kanssa ohjelma toimii kuten ”echo”-komento.\n" +#~ "Ohjelma ei kuitenkaan vain kopioi argumenttejaan vakiotulosteeseen, vaan\n" +#~ "valitusta viestiluettelosta löydetyt viestit näytetään käännettyinä.\n" +#~ "Perushakemisto, josta haku suoritetaan: %s\n" + +#~ msgid "Usage: %s [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n" +#~ msgstr "" +#~ "Käyttö: %s [VALITSIN] [KÄÄNNÖSJOUKKO] VIESTI-ID VIESTI-ID-MONIKKO MÄÄRÄ\n" + +#~ msgid "" +#~ "Display native language translation of a textual message whose " +#~ "grammatical\n" +#~ "form depends on a number.\n" +#~ msgstr "" +#~ "Näyttää kotoistetun käännöksen tekstimuotoiselle viestille, jonka muoto\n" +#~ "riippuu lukuarvosta.\n" + +#~ msgid "" +#~ " -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" +#~ " -e enable expansion of some escape sequences\n" +#~ " -E (ignored for compatibility)\n" +#~ " -h, --help display this help and exit\n" +#~ " -V, --version display version information and exit\n" +#~ " [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" +#~ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL " +#~ "(plural)\n" +#~ " COUNT choose singular/plural form based on this " +#~ "value\n" +#~ msgstr "" +#~ " -d, --domain=KÄÄNNÖSJOUKKO hae käännetyt viestit KÄÄNNÖSJOUKOSTA\n" +#~ " -e salli joidenkin lainauskoodien laajentaminen\n" +#~ " -h, --help näytä tämä ohje ja poistu\n" +#~ " -V, --version näytä versiotiedot ja poistu\n" +#~ " [KÄÄNNÖSJOUKKO] hae käännetty sanoma KÄÄNNÖSJOUKOSTA\n" +#~ " VIESTI-ID VIESTI-ID-MON käännä VIESTI-ID (yksikkö) / VIESTI-ID-MON " +#~ "(monikko)\n" +#~ " MÄÄRÄ valitse yksikkö-/monikkomuoto tämän arvon\n" +#~ " perusteella\n" + +#~ msgid "" +#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " +#~ "the\n" +#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " +#~ "the\n" +#~ "regular directory, another location can be specified with the " +#~ "environment\n" +#~ "variable TEXTDOMAINDIR.\n" +#~ "Standard search directory: %s\n" +#~ msgstr "" +#~ "Jos KÄÄNNÖSJOUKKO-parametria ei anneta, joukko päätellään TEXTDOMAIN-\n" +#~ "ympäristömuuttujan perusteella. Jos viestiluettelo ei ole tavanomaisessa\n" +#~ "hakemistossa, vaihtoehtoinen sijainti voidaan määritellä " +#~ "ympäristömuuttu-\n" +#~ "jalla TEXTDOMAINDIR.\n" +#~ "Perushakemisto, josta haku suoritetaan: %s\n" + +#~ msgid "Try `getopt --help' for more information.\n" +#~ msgstr "Komento ”getopt --help” antaa lisää tietoa.\n" + +#~ msgid "empty long option after -l or --long argument" +#~ msgstr "tyhjä pitkä valitsin argumentin -l tai --long jälkeen" + +#~ msgid "unknown shell after -s or --shell argument" +#~ msgstr "tuntematon kuori argumentin -s tai --shell jälkeen" + +#~ msgid "Usage: getopt optstring parameters\n" +#~ msgstr "Käyttö: getopt valitsinmerkkijono parametrit\n" + +#~ msgid " getopt [options] [--] optstring parameters\n" +#~ msgstr " getopt [valitsimet] [--] valitsinmerkkijono parametrit\n" + +#~ msgid " getopt [options] -o|--options optstring [options] [--]\n" +#~ msgstr "" +#~ " getopt [valitsimet] -o|--options valitsinmerkkijono [valitsimet] " +#~ "[--]\n" + +#~ msgid " parameters\n" +#~ msgstr " parametrit\n" + +#~ msgid "" +#~ " -a, --alternative Allow long options starting with single -\n" +#~ msgstr "" +#~ " -a, --alternative Salli pitkien valitsimien alkaminen " +#~ "yhdellä -:lla\n" + +#~ msgid " -h, --help This small usage guide\n" +#~ msgstr " -h, --help Tämä pieni käyttöopas\n" + +#~ msgid " -l, --longoptions=longopts Long options to be recognized\n" +#~ msgstr " -l, --longoptions=valitsimet Pitkät tunnistettavat valitsimet\n" + +#~ msgid "" +#~ " -n, --name=progname The name under which errors are reported\n" +#~ msgstr "" +#~ " -n, --name=ohjelmanimi Nimi, joka ilmoitetaan virheiden " +#~ "yhteydessä\n" + +#~ msgid " -o, --options=optstring Short options to be recognized\n" +#~ msgstr " -o, --options=valitsimet Lyhyet tunnistettavat valitsimet\n" + +#~ msgid "" +#~ " -q, --quiet Disable error reporting by getopt(3)\n" +#~ msgstr "" +#~ " -q, --quiet Vaienna getopt(3):n virheilmoitukset\n" + +#~ msgid " -Q, --quiet-output No normal output\n" +#~ msgstr " -Q, --quiet-output Ei normaalia tulostetta\n" + +#~ msgid " -s, --shell=shell Set shell quoting conventions\n" +#~ msgstr " -s, --shell=kuori Aseta kuoren lainauskäytännöt\n" + +#~ msgid " -T, --test Test for getopt(1) version\n" +#~ msgstr " -T, --test Testaa getopt(1):n versio\n" + +#~ msgid " -u, --unqote Do not quote the output\n" +#~ msgstr " -u, --unquote Ei lainausmerkkejä tulosteeseen\n" + +#~ msgid " -V, --version Output version information\n" +#~ msgstr " -V, --version Näytä versiotiedot\n" + +#~ msgid "missing optstring argument" +#~ msgstr "puuttuva valitsinmerkkijonon argumentti" + +#~ msgid "getopt (enhanced) 1.1.4\n" +#~ msgstr "getopt (parannettu) 1.1.4\n" + +#~ msgid "internal error, contact the author." +#~ msgstr "sisäinen virhe, ota yhteyttä tekijään." #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -3493,15 +3776,15 @@ #~ "PURPOSE.\n" #~ msgstr "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "Tm on vapaa ohjelmisto; kts. lhdekoodi kopioinnin ehdoille. " +#~ "Tämä on vapaa ohjelmisto; kts. lähdekoodi kopioinnin ehdoille. " #~ "Ohjelmisolle\n" -#~ "EI mynnet takuuta; ei edes KAUPATTAVUUDELLE tai SOVELTUVUUDELLE " +#~ "EI myönnetä takuuta; ei edes KAUPATTAVUUDELLE tai SOVELTUVUUDELLE " #~ "TIETTYYN\n" #~ "tarkoitukseen.\n" #, fuzzy #~ msgid "write to grep subprocess failed" -#~ msgstr "%s aliprosessi eponnistui" +#~ msgstr "%s aliprosessi epäonnistui" #, fuzzy #~ msgid "" @@ -3510,9 +3793,9 @@ #~ " -V, --version output version information and exit\n" #~ msgstr "" #~ "Tietoja antavat tulosteet:\n" -#~ " -h, --help nytt tmn ohjeen ja lopettaa " +#~ " -h, --help näyttää tämän ohjeen ja lopettaa " #~ "suorituksen\n" -#~ " -V, --version nytt ohjelmiston version ja lopettaa\n" +#~ " -V, --version näyttää ohjelmiston version ja lopettaa\n" #~ " suorituksen\n" #, fuzzy @@ -3524,9 +3807,9 @@ #~ " -v, --verbose increase verbosity level\n" #~ msgstr "" #~ "Tietoja antavat tulosteet:\n" -#~ " -h, --help nytt tmn ohjeen ja lopettaa " +#~ " -h, --help näyttää tämän ohjeen ja lopettaa " #~ "suorituksen\n" -#~ " -V, --version nytt ohjelmiston version ja lopettaa\n" +#~ " -V, --version näyttää ohjelmiston version ja lopettaa\n" #~ " suorituksen\n" #, fuzzy @@ -3538,9 +3821,9 @@ #~ " -q, --quiet, --silent suppress progress indicators\n" #~ msgstr "" #~ "Tietoja antavat tulosteet:\n" -#~ " -h, --help nytt tmn ohjeen ja lopettaa " +#~ " -h, --help näyttää tämän ohjeen ja lopettaa " #~ "suorituksen\n" -#~ " -V, --version nytt ohjelmiston version ja lopettaa\n" +#~ " -V, --version näyttää ohjelmiston version ja lopettaa\n" #~ " suorituksen\n" #, fuzzy @@ -3551,38 +3834,7 @@ #~ " -v, --verbose increase verbosity level\n" #~ msgstr "" #~ "Tietoja antavat tulosteet:\n" -#~ " -h, --help nytt tmn ohjeen ja lopettaa " +#~ " -h, --help näyttää tämän ohjeen ja lopettaa " #~ "suorituksen\n" -#~ " -V, --version nytt ohjelmiston version ja lopettaa\n" +#~ " -V, --version näyttää ohjelmiston version ja lopettaa\n" #~ " suorituksen\n" - -#~ msgid "" -#~ "Usage: %s [OPTION] [[TEXTDOMAIN] MSGID]\n" -#~ "or: %s [OPTION] -s [MSGID]...\n" -#~ msgstr "" -#~ "Kytt: %s [VALITSIN][[TEXTDOMAIN] MSGID]\n" -#~ "tai: %s [VALITSIN] -s [MSGID]...\n" - -#~ msgid "Display native language translation of a textual message.\n" -#~ msgstr "Nyt kansallinen knns tekstimuotoiselle viestille.\n" - -#~ msgid "" -#~ " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" -#~ " -e enable expansion of some escape sequences\n" -#~ " -E (ignored for compatibility)\n" -#~ " -h, --help display this help and exit\n" -#~ " -n suppress trailing newline\n" -#~ " -V, --version display version information and exit\n" -#~ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" -#~ " to MSGID from TEXTDOMAIN\n" -#~ msgstr "" -#~ " -d, --domain=TEXTDOMAIN etsi knnetyt viestit TEXTDOMAIN:sta\n" -#~ " -e salli joidenkin lainauskoodien laajentaminen\n" -#~ " -E (jtetn huomiotta yhteensopivuuden vuoksi)\n" -#~ " -h, --help nytt tmn ohjeen ja lopettaa suorituksen\n" -#~ " -n jtt pois rivinvaihdon rivin lopusta\n" -#~ " -V, --version nytt ohjelmiston versiotiedot ja lopettaa\n" -#~ " suorituksen\n" -#~ " [TEXTDOMAIN] MSGID etsii knnetyn viestin, joka vastaa MSGID:" -#~ "t\n" -#~ " TEXTDOMAIN:ssa\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/fr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/fr.gmo differ diff -Nru gettext-0.17/gettext-tools/po/fr.po gettext-0.18.1.1/gettext-tools/po/fr.po --- gettext-0.17/gettext-tools/po/fr.po 2007-11-02 02:23:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/fr.po 2010-06-06 12:49:57.000000000 +0000 @@ -10,10 +10,11 @@ msgstr "" "Project-Id-Version: GNU gettext-tools 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-27 13:35+0200\n" "Last-Translator: Christophe Combelles \n" "Language-Team: French \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -34,25 +35,25 @@ msgid "Valid arguments are:" msgstr "Les arguments valides sont :" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "" "Impossible de trouver un répertoire temporaire. Essayez de définir la " "variable $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" "Impossible de créer un répertoire temporaire en utilisant le modèle « %s »" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "Impossible de supprimer le fichier temporaire « %s »" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "Impossible de supprimer le dossier temporaire « %s »" @@ -61,44 +62,44 @@ msgid "write error" msgstr "Erreur d'écriture" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "Erreur lors de l'ouverture de « %s » en lecture " -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "Erreur d'ouverture du fichier d'archive « %s » en écriture" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "Erreur de lecture de « %s »" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "Erreur d'écriture de « %s »" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "Erreur après la lecture de « %s »" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "Échec de la fonction « fdopen() »" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Le compilateur C# est introuvable. Essayez d'installer « pnet »" @@ -108,74 +109,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "La machine virtuelle C# est introuvable. Essayez d'installer « pnet »" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erreur système non identifiée" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "Échec du sous-processus %s" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s : l'option « %s » est ambiguë\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s : l'option « --%s » ne tolère pas d'argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s : l'option « %c%s » ne tolère pas d'argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s : l'option « %s » requiert un argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s : l'option « --%s » n'est pas connue\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s : l'option « %c%s » n'est pas connue\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s : l'option « --%c » n'est pas permise\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s : l'option « --%c » n'est pas valide\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s : l'option « --%c » exige un argument\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s : l'option « -W %s » est ambiguë\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s : l'option « -W %s » ne tolère pas d'argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s : l'option « %s » requiert un argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -187,20 +187,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "argument target_version invalide pour compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "Échec lors de la création de « %s »" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "Erreur pendant l'écriture du fichier « %s »" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -214,20 +214,20 @@ "La machine virtuelle Java est introuvable. Essayez d'installer « gij » ou de " "définir la variable d'environnement $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "Erreur d'E/S du sous-processus %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "Mémoire épuisée" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -246,74 +246,73 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "Échec de la fonction « DuplicateHandle » avec le code d'erreur 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "Échec de la fonction « _open_osfhandle »" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "Impossible de créer le fichier « %s »" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "sous-processus %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "Le sous-processus %s a reçu le signal fatal %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "« %s » n'est pas une chaîne de format %s valide, contrairement à « msgid ». " "Raison : %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format -msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "" -"Le format de l'argument «·%u·» dans la chaîne « msgid » n'a pas été spécifié, " -"comme dans « %s »." - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format +msgid "" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "" +"Le format de l'argument «·%u·» dans la chaîne « msgid » n'a pas été " +"spécifié, comme dans « %s »." + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "Le format de l'argument « %u » n'a pas été spécifié dans « %s »" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "Les spécifications de format entre « msgid » et « %s » de l'argument %u ne " "sont pas identiques" @@ -347,12 +346,12 @@ msgstr "" "La chaîne fait appel à l'argument numéro %u mais ignore l'argument numéro %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" -"Il n'y a pas le même nombre de spécifications de format entre « msgid » et « %" -"s »." +"Il n'y a pas le même nombre de spécifications de format entre « msgid » et " +"« %s »." #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -379,8 +378,8 @@ msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." msgstr "" -"La directive numéro %u se termine par le caractère invalide « %c » au lieu de " -"« } »." +"La directive numéro %u se termine par le caractère invalide « %c » au lieu " +"de « } »." #: src/format-csharp.c:140 #, c-format @@ -402,18 +401,18 @@ msgstr "" "La chaîne contient un caractère « } » solitaire après la directive numéro %u" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "Dans la directive numéro %u, la combinaison des est invalide" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "Dans la directive numéro %u, une précision n'est pas permise avant « %c »." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -422,7 +421,7 @@ "Dans la directive numéro %u, le nombre d'arguments pour la précision doit " "être égal à %u" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -431,25 +430,25 @@ "Dans la directive numéro %u, une indication de précision n'est pas permise " "avant « %c »." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "Dans la directive numéro %u, l'indication de précision est incorrecte." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" "Dans la directive numéro %u, les drapeaux ne sont pas permis avant « %c »." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid' utilise %%m mais '%s' ne l'utilise pas" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid' n'utilise pas %%m mais '%s' utilise %%m" #: src/format-invalid.h:22 @@ -561,23 +560,22 @@ "suivi par « < », « # » ou « %s »." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "Une spécification de format pour l'argument {%u} dans la chaîne « msgid » " "n'est pas spécifié, comme dans « %s »." -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "Le format de l'argument {%u} dans la chaîne « %s » n'est pas spécifié." -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "Les spécifications de format dans la chaîne « msgid » et dans « %s ».ne sont " "pas les mêmes pour l'argument {%u}." @@ -595,11 +593,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "Dans la directive numéro %u, trop de paramètres sont fournis (il en faut %u " "au maximum)." @@ -647,22 +645,23 @@ #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." -msgstr "Dans la directive numéro %u, « ~; » est utilisé à une place incorrecte." +msgstr "" +"Dans la directive numéro %u, « ~; » est utilisé à une place incorrecte." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." msgstr "La chaîne fait référence à un argument de manière incompatible." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "" "Les spécifications de format dans la chaîne « msgid » et dans « %s » ne sont " "pas équivalentes" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "Les spécifications de format dans « %s » ne sont pas un sous-ensemble de " "celles de la chaîne « msgid »." @@ -676,12 +675,12 @@ "Dans la directive numéro %u, l'indicateur de taille est incompatible avec " "l'indicateur de conversion « %c »." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "Le format de l'argument « %s » dans « %s » n'est pas spécifié." -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -689,54 +688,52 @@ "La chaîne fait référence à des arguments de deux façons différentes : avec " "des noms d'arguments et avec des spécifications d'arguments sans nom." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "La chaîne fait référence à l'argument « %s » de manière incompatible." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "Les spécifications de format de « msgid » requièrent une carte de " "correspondance, celles de « %s » requièrent un n-uplet." -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "Les spécifications de format de « msgid » requièrent un n-uplet (tuple), " "celles de « %s » requièrent une carte de correspondance (mapping)." -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "Le format de l'argument « %s » dans la chaîne « msgid » n'est pas spécifié, " "comme dans « %s »." -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "Les spécifications de format dans la chaîne « msgid » et « %s » pour " "l'argument « %s » ne sont pas les mêmes." #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"La chaîne « msgid » est une chaîne de format simple, mais « %s » n'en est pas " -"une : elle contient un drapeau « L » ou un nombre d'arguments à deux chiffres" +"La chaîne « msgid » est une chaîne de format simple, mais « %s » n'en est " +"pas une : elle contient un drapeau « L » ou un nombre d'arguments à deux " +"chiffres" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -771,8 +768,8 @@ "In the directive number %u, the character '%c' is not a digit between 1 and " "9." msgstr "" -"Dans la directive numéro %u, le caractère « %c » n'est pas un chiffre compris " -"entre 1 et 9." +"Dans la directive numéro %u, le caractère « %c » n'est pas un chiffre " +"compris entre 1 et 9." #: src/format-ycp.c:91 #, c-format @@ -783,11 +780,11 @@ "Le caractère qui termine la directive numéro %u n'est pas un chiffre compris " "entre 1 et 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -800,38 +797,38 @@ "Ceci est un logiciel libre : vous pouvez le modifier et le redistribuer.\n" "Il n'y a PAS DE GARANTIE, dans la mesure de ce que permet la loi.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Écrit par %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "Trop d'arguments" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Pour plus d'information, essayez « %s --help ».\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Usage : %s [OPTION]\n" @@ -867,29 +864,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address adresses IP du nom de machine\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Sortie informative :\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help afficher ce message d'aide, puis terminer\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version afficher le numéro de version de ce programme, puis terminer\n" @@ -898,11 +895,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Signalez tout bogue à .\n" @@ -911,30 +908,30 @@ msgid "could not get host name" msgstr "Impossible d'obtenir le nom de machine" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "Un seul fichier est permis en entrée" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s et %s s'excluent mutuellement" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Usage : %s [OPTION] [FICHIER_ENTRÉE]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -943,10 +940,10 @@ "msgattrib permet de filtrer les messages d'un catalogue de traduction selon leurs attributs\n" "et de manipuler les attributs.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -955,23 +952,23 @@ "également\n" "obligatoires pour les formes courtes correspondantes.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Emplacement du fichier d'entrée :\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " FICHIER ... fichier PO d'entrée\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -979,32 +976,32 @@ " -D, --directory=DOSSIER ajouter le DOSSIER pour la recherche des " "fichiers d'entrée\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" " Si le nom du fichier d'entrée est « - » ou s'il n'est pas fourni, les " "données sont lues depuis l'entrée standard.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Emplacement du fichier de sortie :\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FICHIER écrire la sortie dans le FICHIER\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -1013,12 +1010,12 @@ " Si aucun fichier n'est spécifié ou si le nom de fichier est « - »,\n" " les résultats sont envoyés vers la sortie standard.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Sélection des messages :\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -1026,7 +1023,7 @@ " --translated conserver les messages traduit, retirer les " "messages non traduits\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -1034,60 +1031,61 @@ " --untranslated conserver les messages non traduits, retirer " "les messages traduits\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy retirer les messages marqués « fuzzy »\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy conserver seulement les messages marqués " "« fuzzy »\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete retirer les messages obsolètes « #~ »\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" " --only-obsolete conserver seulement les messages obsolètes " "« #~ »\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipulation d'attribut :\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -" --set-fuzzy placer tous les messages dans l'état « fuzzy »\n" +" --set-fuzzy placer tous les messages dans l'état " +"« fuzzy »\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy retirer l'état « fuzzy » de tous les messages\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" " --set-obsolete marquer tous les messages comme obsolètes\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete marquer tous les messages comme non-obsolètes\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1096,7 +1094,7 @@ " --clear-previous retirer la chaîne « previous msgid » de tous " "les messages\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1104,7 +1102,7 @@ " --only-file=FICHIER.po manipuler seulement les entrées listées dans " "le FICHIER.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1112,13 +1110,13 @@ " --ignore-file=FICHIER.po manipuler seulement les entrées qui ne sont " "pas listées dans le FICHIER.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy identique à « --only-fuzzy --clear-fuzzy »\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" @@ -1126,16 +1124,16 @@ " --obsolete identique à « --only-obsolete --clear-" "obsolete »\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Syntaxe du fichier d'entrée :\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1143,8 +1141,8 @@ " -P, --properties-input la syntaxe du fichier d'entrée est celle\n" " des fichiers « .properties » de Java\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1153,17 +1151,43 @@ " --stringtable-input la syntaxe du fichier d'entrée est celle\n" " des fichiers « .strings » de NeXTstep/GNUstep\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Détails des données de sortie :\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color toujours utiliser de la couleur et d'autres " +"attributs de texte\n" +" --color=QUAND utiliser de la couleur et des attributs de " +"texte seulement QUAND.\n" +" QUAND peut être « always », « never », « auto " +"», or « html ».\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=FICHIERSTYLE spécifie le fichier de règles de style CSS " +"pour --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1171,9 +1195,9 @@ " -e, --no-escape ne pas utiliser de séquences d'échappement C " "dans la sortie (par défaut)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1181,31 +1205,31 @@ " -E, --escape utiliser des séquences d'échappements C dans " "la sortie, sans caractère étendu\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" " --force-po créer un fichier .po même s'il est vide\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent créer le fichier .po avec un style indenté\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location ne pas créer les commentaires de numérotation " "du type « #: fichier:ligne»\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1213,8 +1237,8 @@ " -n, --add-location créer des commentaires de numérotation du type " "« #: fichier:ligne » (par défaut)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1222,17 +1246,17 @@ " --strict créer des fichier .po strictement conformes à " "l'Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" " -p, --properties-output créer un fichier « .properties » de type Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" @@ -1240,16 +1264,16 @@ " --stringtable-output créer un fichier « .strings » de type NeXTstep/" "GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NOMBRE spécifier la largeur de page\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1259,33 +1283,33 @@ "plus longues\n" " que la largeur des pages de sortie.\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output trier les données de sortie\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file trier les données de sortie selon " "l'emplacement des fichiers\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "Critère de sélection irréalisable (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Usage : %s [OPTION] [FICHIER_ENTRÉE]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1307,27 +1331,27 @@ "ils seront pris dans le premier fichier .po où ils ont été définis.\n" "Les indications de position de tous les fichiers .po seront accumulées.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " FICHIER ... fichiers d'entrée\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FICHIER obtenir la liste des fichiers d'entrée à " "partir du FICHIER\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" " Si le nom du fichier d'entrée est « - », les données sont lues depuis " "l'entrée standard.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1336,7 +1360,7 @@ " -<, --less-than=N afficher les messages définis moins de N fois\n" " (sans limite par défaut)\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1345,7 +1369,7 @@ " ->, --more-than=N afficher les messages définis plus de N fois\n" " (zéro par défaut, càd sans limite)\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1354,8 +1378,8 @@ " -u, --unique Afficher les messages uniques (identique à « --" "less-than=2 »)\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1363,8 +1387,8 @@ " -P, --properties-input la syntaxe des fichiers d'entrée est celle\n" " des fichiers « .properties » de Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1373,12 +1397,12 @@ " --stringtable-input la syntaxe des fichiers d'entrée est celle\n" " des fichiers « .strings » de NeXTstep/GNUstep\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=ENCODAGE encodage de sortie\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1389,49 +1413,33 @@ " message ; ne pas faire la fusion de plusieurs " "traductions\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color toujours utiliser de la couleur et d'autres " -"attributs de texte\n" -" --color=QUAND utiliser de la couleur et des attributs de " -"texte seulement QUAND.\n" -" QUAND peut être « always », « never », « auto », " -"or « html ».\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=FICHIERSTYLE spécifie le fichier de règles de style CSS " -"pour --color\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "Fichiers d'entrée non spécifiés" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "Deux fichiers sont requis en entrée" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Usage : %s [OPTION] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1450,22 +1458,22 @@ "de votre programme. Lorsqu'une correspondance exacte n'est pas possible,\n" "une correspondance floue est utilisé pour un meilleur diagnostic.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po traductions\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot références aux sources\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modificateurs d'opération:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1474,61 +1482,67 @@ " -m, --multi-domain appliquer ref.pot à chaque domaine défini dans " "def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" +" -N, --no-fuzzy-matching ne pas utiliser la correspondance floue\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" " --use-fuzzy utiliser les traductions approximatives " "(fuzzy)\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated utiliser les messages non traduits\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "ce message n'est pas traduit" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "ce message doit être révisé par le traducteur" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "Ce message est utilisé mais non défini..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...mais cette définition est semblable" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "Ce message est utilisé mais non défini dans « %s »" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "AVERTISSEMENT : ce message n'est pas utilisé" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "%d erreur fatale trouvée" msgstr[1] "%d erreurs fatales trouvées" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "Il faut indiquer au moins deux fichiers" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1548,7 +1562,7 @@ "ils seront pris dans le premier fichier .po où ils ont été définis.\n" "Les commentaires de position de tous les fichiers .po seront accumulés.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1558,7 +1572,7 @@ "N\n" " définitions (1 par défaut)\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" @@ -1566,70 +1580,70 @@ " --omit-header ne pas créer d'en-têtes de la forme « msgid " "\"\" »' \n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "msgconv permet de modifier l'encodage utilisé dans un catalogue de " "traduction.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Cible de conversion :\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" "L'encodage par défaut est l'encodage de « locale » actuellement utilisé.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent indenter les données de sortie\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -" --no-location supprimer les commentaires du type « #: fichier:" -"ligne »\n" +" --no-location supprimer les commentaires du type « #: " +"fichier:ligne »\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -" --add-location conserver les commentaires du type « #: fichier:" -"ligne » (par défaut)\n" +" --add-location conserver les commentaires du type « #: " +"fichier:ligne » (par défaut)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict créer une sortie strictement conforme à " "l'Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "Aucun fichier d'entrée n'a été fourni" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "Un (et un seul) fichier d'entrée doit être fourni" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Usage : %s [OPTION] FICHIER_ENTRÉE\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1643,22 +1657,22 @@ "Le texte original anglais du champ « msgid » est alors utilisé\n" "comme traduction pour les messages non traduits.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " FICHIER ... fichiers d'entrée .po ou .pot\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "Il manque le nom de la commande" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Usage : %s [OPTION] COMMANDE [OPTION_DE_COMMANDE]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1673,7 +1687,7 @@ "la sortie de msgexec. msgexec renvoie un code qui correspond au maximum du code de\n" "retour pour toutes les invocations.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1682,44 +1696,44 @@ "Une commande interne spéciale appelée « 0 » renvoie la traduction suivie par un\n" "octet nul. La sortie de « msgexec 0 » peut être utilisée comme entrée pour « xargs -0 ».\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=FICHIER fichier .po d'entrée\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "Échec d'écriture sur la sortie standard" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "Échec d'écriture sur le sous-processus %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "Il manque le nom du filtre" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "Un script « sed » doit au moins être spécifié" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Usage : %s [OPTION] FILTRE [OPTION_DU_FILTRE]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" "msgfilter permet d'appliquer un filtre à toutes les traductions d'un " "catalogue.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1729,19 +1743,19 @@ "l'entrée standard et qui renvoie une traduction modifiée sur la sortie " "standard.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Options de filtrage utiles lorsque le FILTRE est « sed » :\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" " -e, --expression=SCRIPT ajouter le SCRIPT aux commandes à exécuter\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1751,7 +1765,7 @@ " -f, --file=FICHIER_SCRIPT ajouter le contenu du FICHIER_SCRIPT aux " "commandes à exécuter\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1759,7 +1773,7 @@ " -n, --quiet, --silent demander à « sed » de ne pas afficher son " "espace de travail (pattern space)\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1767,114 +1781,94 @@ " --no-escape ne pas utiliser de séquences d'échappement C " "dans la sortie (par défaut)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent indenter la sortie\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr " --keep-header ne pas filtrer ni modifier l'en-tête\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Pas encore implanté" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" -"Impossible d'établir des entrées/sorties non bloquantes pour le sous-" -"processus %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "Échec de communication avec le sous-processus %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "Échec de lecture depuis le sous-processus %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "Sous-processus %s terminé avec le code de sortie %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "L'argument de %s devrait être un simple caractère de ponctuation" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "ordre des octets invalide (endianness) : %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s a besoin de l'option « -d DOSSIER »" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s a besoin de l'option « -l locale »" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s n'est valide qu'avec %s ou %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s n'est valide qu'avec %s, %s ou %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d message traduit" msgstr[1] "%d messages traduits" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traduction approximative" msgstr[1] ", %d traductions approximatives" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d message non traduit" msgstr[1] ", %d messages non traduits" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Usage : %s [OPTION] fichier.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "msgfmt permet de créer un catalogue binaire de messages à partir de la " "description textuelle des traductions.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1883,17 +1877,17 @@ "Les arguments obligatoires pour les formes longues des options sont également\n" "obligatoires pour les formes courtes correspondantes. (idem options factultatives)\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " fichier.po ... fichiers d'entrée\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Mode d'exécution :\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1902,7 +1896,7 @@ " -j, --java mode JAVA : produire une classe Java " "« ResourceBundle »\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1911,63 +1905,63 @@ " --java2 identique à --java, mais pour Java2 (JDK 1.2 " "ou plus récent)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --csharp mode C# : générer un fichier « .dll » de type ." "NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -" --csharp-resources mode C# : produire un fichier « .resources » de " -"type .NET\n" +" --csharp-resources mode C# : produire un fichier « .resources » " +"de type .NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -" --tcl mode TCL : produire un fichier « .msg » de type " -"tcl/msgcat\n" +" --tcl mode TCL : produire un fichier « .msg » de " +"type tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" " --tcl mode QT : produire un fichier « .qm » de type " "Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict active le mode de conformité stricte à " "l'Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" " Si le nom du fichier de sortie est « - », la sortie est envoyée vers la " "sortie standard\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Emplacement du fichier de sortie en mode Java :\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESSOURCE nom de la ressource\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1976,7 +1970,7 @@ " -l, --locale=LOCALE nom de la « locale » (par exemple « fr » ou " "« fr_FR »)\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -1984,7 +1978,7 @@ " -d DOSSIER répertoire de base de la hiérarchie des " "classes\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1998,12 +1992,12 @@ "obligatoire. La classe est créée\n" " dans le répertoire spécifié.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Emplacement du fichier de sortie en mode C# :\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -2012,7 +2006,7 @@ " -d DOSSIER répertoire de base pour les fichiers .dll " "dépendants de la « locale »\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -2022,19 +2016,19 @@ " Le fichier .dll est créé dans le sous-répertoire (du répertoire spécifié)\n" " dont le nom dépend de la « locale ».\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Emplacement du fichier de sortie en mode Tcl :\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DOSSIER répertoire de base des catalogues de messages " "de type « .msg »\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -2043,12 +2037,12 @@ " Les options « -l » et « -d » sont obligatoires.\n" " Le fichier .msg est créé dans le répertoire spécifié.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interprétation du fichier d'entrée :\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2060,14 +2054,14 @@ " --check-format, --check-header et --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format vérifier les chaînes de formatage dépendantes " "du langage\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2076,7 +2070,7 @@ " --check-header vérifier la présence et le contenu de l'en-" "tête\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2086,7 +2080,7 @@ "domaine\n" " et l'option « --output-file »\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2095,7 +2089,7 @@ " -C, --check-compatibility vérifier que le « msgfmt » de GNU se comporte " "comme celui de X/Open\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2106,14 +2100,14 @@ "clavier\n" " pour les éléments de menu\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy utiliser les traductions approximatives " "(fuzzy) dans la sortie\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2121,7 +2115,7 @@ " -a, --alignment=N effectuer un alignement des chaînes à N octets " "(%d par défaut)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2129,94 +2123,94 @@ " --no-hash ne pas inclure la table de hachage dans le " "fichier binaire\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" " --statistics afficher les statistiques de traduction\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose afficher plus d'informations\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "AVERTISSEMENT : l'en-tête du fichier .po est absent ou invalide\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "AVERTISSEMENT : la conversion d'encodage ne fonctionnera pas\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "AVERTISSEMENT : l'en-tête du fichier .po est approximatif (fuzzy)\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "AVERTISSEMENT : les versions plus anciennes de « msgfmt » génèreront une " "erreur à cet endroit\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "Le nom de domaine « %s » n'est pas un nom de fichier approprié" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "Le nom de domaine « %s » n'est pas un nom de fichier approprié : un préfixe " "sera utilisé" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "La directive « domain %s » a été ignorée" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "Une chaîne vide « msgstr » a été ignorée" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "Une chaîne « msgstr » approximative (fuzzy) a été ignorée" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "" "%s : AVERTISSEMENT : le fichier source contient des traductions " "approximatives" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "Erreur lors de la lecture de « %s »" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -"L'option « %c » ne peut être utilisée avant que « J », « K », « T », « C » ou « X " -"» n'ait été spécifié" +"L'option « %c » ne peut être utilisée avant que « J », « K », « T », « C » " +"ou « X » n'ait été spécifié" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2225,7 +2219,7 @@ "msggrep permet d'extraire tous les messages d'un catalogue de traduction qui concordent avec\n" "un motif particulier ou qui appartiennent à des fichiers sources donnés.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2300,7 +2294,7 @@ " -v, --invert-match récupère seulement les messages qui ne concordent avec\n" " aucun critère de sélection\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2308,19 +2302,19 @@ " --escape utiliser les séquences d'échappements C dans " "la sortie, sans caractère étendu\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output trier les données en sortie\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file trier la sortie selon l'emplacement des " "fichiers\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2331,7 +2325,7 @@ "le fichier ABOUT-NLS. Ceci est nécessaire pour pouvoir tester vos " "traductions.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2342,12 +2336,12 @@ "Veuillez définir la langue à l'aide de l'option « --locale »\n" "ou le fichier de sortie .po à l'aide de l'option « --output-file ».\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s a été créé.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2356,12 +2350,12 @@ "msginit permet de créer un nouveau fichier .po en initialisant les informations de contexte\n" "avec des valeurs provenant de l'environnement de l'utilisateur.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=FICHIER_ENTRÉE fichier .pot d'entrée\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2371,14 +2365,14 @@ " Si le nom du fichier d'entrée est « - » ou s'il n'est pas spécifié, les " "données sont lues depuis l'entrée standard.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FICHIER écrire les données en sortie dans le FICHIER " "spécifié\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2390,12 +2384,12 @@ "fichier de sortie\n" " est « - », les données sont envoyées vers la sortie standard.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC définir la langue cible\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2403,7 +2397,7 @@ " --no-translator supposer que le fichier .po est produit de " "manière automatique\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2412,12 +2406,12 @@ "Veuillez spécifier le fichier .pot d'entrée à l'aide de l'option « --" "input ».\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "Erreur de lecture du dossier actuel" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2426,14 +2420,14 @@ "Veuillez spécifier le fichier .pot d'entrée à l'aide de l'option « --" "input ».\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "Échec du sous-processus %s avec le code de sortie %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2449,32 +2443,33 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traductions françaises du paquet %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" -msgstr "Le jeu de caractères actuel « %s » n'est pas un nom d'encodage portable" +msgstr "" +"Le jeu de caractères actuel « %s » n'est pas un nom d'encodage portable" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -"Le fichier d'entrée contient deux jeux de caractères différents « %s » et « %" -"s »" +"Le fichier d'entrée contient deux jeux de caractères différents « %s » et " +"« %s »" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -"Aucun jeu de caractères n'est spécifié dans l'en-tête du fichier d'entrée « %" -"s »" +"Aucun jeu de caractères n'est spécifié dans l'en-tête du fichier d'entrée " +"« %s »" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2483,19 +2478,20 @@ "Aucun jeu de caractères n'est spécifié pour le domaine « %s » dans l'en-tête " "du fichier d'entrée « %s »" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." -msgstr "Le jeu de caractères cible « %s » n'est pas un nom d'encodage portable." +msgstr "" +"Le jeu de caractères cible « %s » n'est pas un nom d'encodage portable." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "AVERTISSEMENT : " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2505,7 +2501,7 @@ "dont l'UTF-8.\n" "L'ensemble a été converti en UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2518,7 +2514,7 @@ "L'ensemble a été converti en UTF-8.\n" "Pour choisir un encodage différent, utilisez l'option « --to-code ».\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2532,7 +2528,7 @@ "vous assurer qu'ils sont\n" "encodés en UTF-8 depuis l'origine, c-à-d dans vos fichiers de code source.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2545,14 +2541,14 @@ "Il se peut que les données de sortie de « %s » soient incorrectes.\n" "Pour contourner le problème, vous pouvez :\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" "- assigner à la variable d'environnement LC_ALL un nom de langue ayant " "l'encodage %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2563,7 +2559,7 @@ " puis appliquer « %s »,\n" " et reconvertir en %s en utilisant « msgconv ».\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2577,7 +2573,7 @@ " puis appliquer « %s »,\n" " et reconvertir en %s en utilisant « msgconv ».\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2589,26 +2585,26 @@ "Il se peut que les données de sortie de « %s » soient incorrectes.\n" "Pour contourner le problème, vous pouvez définir LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "L'expression au pluriel peut produire des valeurs négatives." -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu mais l'expression au pluriel peut produire des valeurs aussi " "grande que %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "L'expression au pluriel peut induire une division par zéro." -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "L'expression au pluriel peut induire un débordement d'entier" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2616,52 +2612,52 @@ "L'expression au pluriel peut produire une erreur arithmétique, probablement " "une division par zéro" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Essayez d'utiliser ce qui suit, valable pour %s :" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" "Le catalogue de messages contient des traductions d'expressions au pluriel" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "mais l'attribut « plural=EXPRESSION » est absent de l'en-tête" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "mais l'attribut « nplurals=ENTIER » est absent de l'en-tête" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "Valeur « nplurals » invalide" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "Expression au pluriel invalide" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "mais certains messages n'ont qu'une forme de pluriel" msgstr[1] "mais certains messages n'ont que %lu formes de pluriel" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "mais certains messages ont une forme de pluriel" msgstr[1] "mais certains messages ont %lu formes de pluriel" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2670,97 +2666,98 @@ "il manque une entrée « Plural-Forms: nplurals=INTEGER; plural=EXPRESSION; » " "dans l'en-tête" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" -"Les chaînes « msgid » et « msgid_plural » ne débutent pas toutes les deux par " -"« \\n »" +"Les chaînes « msgid » et « msgid_plural » ne débutent pas toutes les deux " +"par « \\n »" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" "Les chaînes « msgid » et « msgstr[%u] » ne débutent pas toutes les deux par " "« \\n »" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "" -"Les chaînes « msgid » et « msgstr » ne débutent pas toutes les deux par « \\n »" +"Les chaînes « msgid » et « msgstr » ne débutent pas toutes les deux par " +"« \\n »" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" -"Les chaînes « msgid » et « msgid_plural » ne se terminent pas toutes les deux " -"par « \\n »" +"Les chaînes « msgid » et « msgid_plural » ne se terminent pas toutes les " +"deux par « \\n »" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" "Les chaînes « msgid » et « msgstr[%u] » ne se terminent pas toutes les deux " "par « \\n »" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "" "Les chaînes « msgid » et « msgstr » ne se terminent pas toutes les deux par " "« \\n »" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" "La gestion des formes du pluriel est une extension de la version GNU de " "gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "« msgstr » n'a pas de marqueur de raccourci clavier « %c »" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "« msgstr » a trop de marqueurs de raccourcis clavier « %c »" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "Le champ « %s » est absent de l'en-tête\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "Le champ d'en-tête « %s » devrait être au début de la ligne\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "Certains champs d'en-tête ont encore leur valeur initiale par défaut\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "Le champ « %s » a encore sa valeur initiale par défaut\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "Certains champs d'en-tête ont encore leur valeur initiale par défaut\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s : l'entrée n'est pas valide dans l'encodage %s" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" -"%s : erreur pendant la conversion depuis l'encodage « %s » vers l'encodage « %" -"s »" +"%s : erreur pendant la conversion depuis l'encodage « %s » vers l'encodage « " +"%s »" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "Aucun jeu de caractères n'a été défini dans l'en-tête du fichier d'entrée" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2769,17 +2766,17 @@ "Impossible de convertir de « %s » vers « %s ». %s s'appuie sur iconv() et " "celui-ci ne permet pas cette conversion." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -"La conversion de « %s » vers « %s » introduit des doublons : certaines chaînes " -"« msgids » différentes deviennent identiques." +"La conversion de « %s » vers « %s » introduit des doublons : certaines " +"chaînes « msgids » différentes deviennent identiques." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2788,16 +2785,16 @@ "Impossible de convertir de « %s » vers « %s ». %s s'appuie sur iconv(), et " "cette version a été compilée sans iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s est valable seulement avec %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "Type de sauvegarde" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2823,18 +2820,18 @@ "Lorsqu'une correspondance exacte n'est pas possible,\n" " une correspondance floue (fuzzy) est utilisée pour produire un meilleur résultat. \n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po traduction des anciens messages sources\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot messages sources actuels à traduire\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2844,7 +2841,7 @@ "traduction,\n" " peut être spécifié plusieurs fois\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2854,28 +2851,28 @@ " ne rien faire si le fichier def.po est déjà à " "jour\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Emplacement du fichier de sortie en mode mise à jour :\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr " Le résultat est réécrit dans le fichier def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTRÔLE créer une sauvegarde de def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix=SUFFIXE choisir un suffixe différent de sauvegarde\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2898,77 +2895,73 @@ " sinon effectuer des sauvegardes simples\n" " simple, never toujours créer des sauvegardes simples\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" -"Le suffixe de sauvegarde est « ~ », à moins qu'il ne soit défini par l'option " -"«--suffix »\n" +"Le suffixe de sauvegarde est « ~ », à moins qu'il ne soit défini par " +"l'option «--suffix »\n" "ou par la variable d'environnement SIMPLE_BACKUP_SUFFIX\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching ne pas utiliser la correspondance floue\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -" --previous conserver les précédentes chaînes « msgid » des " -"messages traduits\n" +" --previous conserver les précédentes chaînes « msgid » " +"des messages traduits\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent supprimer le témoin de progression\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "Ce message devrait définir des formes au pluriel" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "Ce message ne devrait pas définir de forme au pluriel" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%s lues %ld anciennes + %ld références, %ld fusionnées, %ld approximatives, %" -"ld manquantes, %ld périmées.\n" +"%s lues %ld anciennes + %ld références, %ld fusionnées, %ld approximatives, " +"%ld manquantes, %ld périmées.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " terminé.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s n'est pas compatible avec les noms de fichiers explicites" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Usage : %s [OPTION] [FICHIER]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "msgunfmt permet de convertir un catalogue binaire de traductions en fichier ." "po de type Uniforum\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2977,23 +2970,23 @@ " -j, --java mode Java : l'entrée est une classe Java " "ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp mode C# : l'entrée est un fichier « .dll » de " "type .NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -" --csharp-resources mode ressources C# : l'entrée est un fichier « ." -"resources » de type .NET\n" +" --csharp-resources mode ressources C# : l'entrée est un fichier " +"« .resources » de type .NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -3001,17 +2994,17 @@ " --tcl mode Tcl : l'entrée est un fichier « .msg » de " "type tcl/msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FICHIER ... fichiers d'entrée .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Emplacement du fichier d'entrée en mode Java :\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -3024,12 +3017,12 @@ " L'emplacement de la classe est déterminé par la variable d'environnement " "CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Emplacement du fichier d'entrée en mode C# :\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -3040,12 +3033,12 @@ "spécifié)\n" " dont le nom dépend de la langue.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Emplacement du fichier d'entrée en mode Tcl :\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -3054,19 +3047,19 @@ " Les options « -l » et « -d » sont obligatoires.\n" " Le fichier « .msg » est situé dans le répertoire spécifié.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent indenter la sortie\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict produire une sortie strictement conforme à " "l'Uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3087,12 +3080,12 @@ "Si l'option « --use-first » est spécifiée, seuls ceux de la première traduction seront utilisés.\n" "Les commentaires de position sont cumulés. Lorsque l'option « --unique » est utilisée, seuls les messages uniques sont conservés.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated afficher seulement les doublons\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3101,7 +3094,7 @@ " -u, --unique afficher seulement les messages uniques,\n" " en ignorant les doublons\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3191,65 +3184,65 @@ msgid "plural form has wrong index" msgstr "La forme du pluriel a un indice erroné" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "Trop d'erreurs, on abandonne" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "Séquence d'octets multiples invalide" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "Séquence d'octets multiples incomplète à la fin du fichier" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "Séquence d'octets multiples incomplète à la fin de la ligne" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "Échec de « iconv() »" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "Mot clé inconnu : « %s »" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "Séquence de contrôle invalide" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "Fin de fichier au milieu d'une chaîne" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "Fin de ligne au milieu d'une chaîne" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "séparateur de contexte à l'intérieur d'une chaîne" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "Ce fichier peut ne pas contenir de directive de domaine" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "Double définition de message" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "voici l'endroit de la première occurence" @@ -3337,17 +3330,17 @@ msgstr "" "Erreur lors de la conversion depuis l'encodage « %s » vers l'encodage « %s »" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "Deux arguments étaient attendus" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Usage : %s [OPTION] URL FICHIER\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3356,11 +3349,26 @@ "urlget permet de récupérer et d'afficher le contenu d'une URL.\n" "Si l'URL ne peut être atteintte, le FICHIER local est utilisé.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "Erreur d'écriture sur la sortie standard" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3404,43 +3412,43 @@ "Le catalogue de messages contient des formes de traduction au pluriel\n" "mais le format de sortie ne les supporte pas." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "Impossible de créer le fichier « %s »" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "sortie standard" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "Échec lors de la création du dossier « %s »" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "Échec de compilation de la classe C#. Essayez l'option « --verbose »" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "Échec de compilation de la classe C#" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "« %s » n'est pas un nom de classe Java valide" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "Échec de compilation de la classe Java. Essayez l'option « --verbose » ou " "définissez $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "Échec de compilation de la classe Java. Essayez de définir $JAVAC" @@ -3450,14 +3458,14 @@ msgid "error while opening \"%s\" for writing" msgstr "Erreur lors de l'ouverture de « %s » en écriture" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "un message à traduire ne doit pas contenir de séquence d'échappement « \\%c »" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3470,7 +3478,7 @@ "différent du vôtre. Vous devriez utiliser un msgctxt en pur ASCII.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3495,8 +3503,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3523,7 +3531,7 @@ msgid "error while writing to %s subprocess" msgstr "Erreur pendant l'écriture sur le sous-processus %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3531,7 +3539,7 @@ "le catalogue de messages contient des traductions dépendantes du contexte\n" "mais le format .resources de type C# ne les supporte pas.\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3556,36 +3564,34 @@ "mais le format de catalogue de type Tcl ne supporte pas les formes au " "pluriel\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d : AVERTISSEMENT : chaîne non terminée" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d : AVERTISSEMENT : expression rationnelle non terminée" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d : AVERTISSEMENT : constante caractère sans terminaison" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d : AVERTISSEMENT : chaîne sans terminaison" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Chaîne non-ASCII repérée à %s%s.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3594,7 +3600,7 @@ "%s:%d : séquence d'octets multiples invalide.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3603,7 +3609,7 @@ "%s:%d : séquence longue d'octets multiples incomplète.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3612,7 +3618,7 @@ "%s:%d : séquence d'octets multiples incomplète à la fin du fichier.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3621,12 +3627,12 @@ "%s:%d : séquence d'octets multiples incomplète à la fin de la ligne.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d : Échec de « iconv »" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3635,32 +3641,32 @@ "%s:%d : séquence d'octets multiples invalide.\n" "Veuillez spécifier l'encodage de la source avec l'option « --from-code ».\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d : AVERTISSEMENT : caractère Unicode invalide" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d : AVERTISSEMENT : constante chaîne de caractères non terminée" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d : AVERTISSEMENT : caractère « ) » trouvé à la place de « } »" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d : AVERTISSEMENT : caractère « } » trouvé à la place de « ) »" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3669,52 +3675,55 @@ "Le langage « glade » n'est pas supporté. %s utilise expat(),\n" "Cette version a été compilée sans expat().\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d : AVERTISSEMENT : substitut isolé U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -"%s:%d : impossible de trouver la terminaison de chaîne « %s » avant la fin du " -"fichier" +"%s:%d : impossible de trouver la terminaison de chaîne « %s » avant la fin " +"du fichier" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d : accolade fermante manquante sur \\x{NOMBRE_HEXA}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" -msgstr "%s:%d : interpolation invalide (« \\l ») de caractères de 8 bits « %c »" +msgstr "" +"%s:%d : interpolation invalide (« \\l ») de caractères de 8 bits « %c »" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" -msgstr "%s:%d : interpolation invalide (« \\u ») de caractères de 8 bits « %c »" +msgstr "" +"%s:%d : interpolation invalide (« \\u ») de caractères de 8 bits « %c »" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d : interpolation invalide de variable à « %c »" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" -msgstr "%s:%d : interpolation invalide (« \\L ») de caractères de 8 bits « %c »" +msgstr "" +"%s:%d : interpolation invalide (« \\L ») de caractères de 8 bits « %c »" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" -msgstr "%s:%d : interpolation invalide (« \\U ») de caractères de 8 bits « %c »" +msgstr "" +"%s:%d : interpolation invalide (« \\U ») de caractères de 8 bits « %c »" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3723,7 +3732,7 @@ "avec un commentaire\n" "comme spécifié sur la page http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3735,7 +3744,7 @@ "avec un commentaire\n" "comme spécifié sur la page http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3747,7 +3756,7 @@ "avec un commentaire\n" "comme spécifié sur la page http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3759,7 +3768,7 @@ "avec un commentaire\n" "comme spécifié sur la page http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3771,7 +3780,7 @@ "avec un commentaire\n" "comme spécifié sur la page : http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3783,27 +3792,27 @@ "avec un commentaire\n" "comme spécifié sur la page http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Encodage « %s » inconnu. Traitement effectué en ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d : définition de chaîne invalide" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d : nombre manquant après « # »" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d : expression chaîne invalide" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3812,33 +3821,33 @@ "%s:%lu : AVERTISSEMENT : la syntaxe « $\"...\" » ne doit pas être utilisée " "pour des raisons de sécurité. Utilisez plutôt « eval_gettext »" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" -"L'option « --join-existing » ne peut pas être utilisée pour l'écriture sur la " -"sortie standard" +"L'option « --join-existing » ne peut pas être utilisée pour l'écriture sur " +"la sortie standard" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext ne peut pas fonctionner sans mot clé à rechercher" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "AVERTISSEMENT : pour le fichier « %s », l'extension « %s » est inconnue. On " "suppose que c'est du C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" "xgettext analyse des fichiers de code source et permet d'en extraire les " "chaînes qui peuvent être traduites dans d'autres langues.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3847,13 +3856,13 @@ " -d, --default-domain=NOM utiliser NOM.po pour la sortie (au lieu de " "messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" " -o, --output=FICHIER écrire la sortie dans le FICHIER spécifié\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3861,12 +3870,12 @@ " -p, --output-dir=RÉP créer les fichiers de sortie dans le " "répertoire spécifié\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Choix du langage du fichier d'entrée :\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3883,12 +3892,12 @@ " JavaProperties, C#, awk, YCP, Tcl, Perl, PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ identique à « --language=C++ »\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3896,7 +3905,7 @@ msgstr "" " Par défaut, le langage est deviné selon l'extension du nom du fichier.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3905,46 +3914,49 @@ " --from-code=NOM encodage des fichiers d'entrée\n" " (sauf pour Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr " Par défaut les fichiers d'entrée sont supposés être en ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing joindre les messages au fichier existant\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=FICHIER.po les entrées du FICHIER.po ne sont pas " "extraites\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=REPÈRE] ajouter un bloc de commentaire avec un " "REPÈRE,\n" " (ou ceux précédant les lignes mots clés) " "dans le fichier de sortie\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Options spécifiques au langage:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extraire toutes les chaînes\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3958,17 +3970,17 @@ "C#, awk,\n" " awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=MOT] MOT clé additionnel à rechercher (sans\n" " MOT clé signifie : ne pas utiliser des mots " "clés par défaut)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3979,7 +3991,7 @@ "l'intérieur de\n" " l'argument numéro ARG du MOT clé\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3993,42 +4005,42 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs comprendre les trigrammes ANSI C pour " "l'entrée\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (seuls les langages C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt reconnaître les chaînes au format Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (seulement le langage C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" " --kde reconnaître les chaînes au format KDE 4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" " --boost reconnaître les chaînes au format Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -4036,19 +4048,19 @@ " --debug mieux détailler la reconnaissance des chaînes " "de format\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" " --properties-output produire un fichier « .properties » de type " "Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=AUTEUR définit l'auteur dans la sortie\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -4056,18 +4068,18 @@ " --foreign-user omettre le copyright FSF dans la sortie pour " "les utilisateurs étrangers\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr " --package-name=PAQUET donne le nom de paquet dans la sortie\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --package-version=VERSION donne la version du paquet dans la sortie\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -4075,43 +4087,60 @@ " --msgid-bugs-address=ADRESSE@COURRIEL adresse de courriel pour les " "rapport d'anomalie des msgid\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=PREFIXE] utiliser un PREFIXE ou « \"\" » pour les " "entrées msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=SUFFIXE] utiliser un SUFFIXE ou « \"\"» pour les " "entrées msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Un argument « --flag » n'a pas la syntaxe ::[pass-]" ":%s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrée standard" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s : AVERTISSEMENT : " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4120,16 +4149,16 @@ "Malgré sa position, %s n'est pas une chaîne de format %s valide. La raison " "est :%s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Malgré sa déclaration, %s n'est pas une chaîne de format %s valide. La " "raison est :%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4143,7 +4172,7 @@ "Envisagez d'utiliser une chaîne de format contenant des arguments nommés,\n" "et un mapping plutôt qu'un tuple pour les arguments.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4153,29 +4182,30 @@ "GNU gettext : gettext(\"\") retourne l'en-tête\n" "avec les informations de contexte, pas une chaîne vide.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "Argument ambigu pour le mot clé « %.*s »" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "AVERTISSEMENT : contexte absent pour le mot clé « %.*s »" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -"AVERTISSEMENT : contexte absent pour l'argument de pluriel du mot clé « %.*s »" +"AVERTISSEMENT : contexte absent pour l'argument de pluriel du mot clé « %.*s " +"»" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" "incohérence de contexte entre la forme du singulier et celle du pluriel" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4187,7 +4217,7 @@ "la variable MSGID_BUGS_ADDRESS à cet endroit. Sinon, veuillez\n" "utiliser l'option « --msgid-bugs-address » en ligne de commande.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "langage « %s » inconnu" @@ -4196,6 +4226,33 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s : l'option « --%c » n'est pas permise\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "" +#~ "Échec de la fonction « DuplicateHandle » avec le code d'erreur 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Pas encore implanté" + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "" +#~ "Impossible d'établir des entrées/sorties non bloquantes pour le sous-" +#~ "processus %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "Échec de communication avec le sous-processus %s" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "Échec de lecture depuis le sous-processus %s" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "Sous-processus %s terminé avec le code de sortie %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "Le champ « %s » a encore sa valeur initiale par défaut\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Références multiples à %%%c." @@ -4387,7 +4444,8 @@ #~ " enlever ceux qui ne sont pas traduits\n" #~ " --untranslated conserver les non traduits, enlever ceux " #~ "traduits\n" -#~ " --no-fuzzy enlever les messages marqués « fuzzy »\n" +#~ " --no-fuzzy enlever les messages marqués " +#~ "« fuzzy »\n" #~ " --only-fuzzy conserver les messages marqués " #~ "« fuzzy »\n" #~ " --no-obsolete enlever les messages obsolètes #~\n" @@ -5143,8 +5201,8 @@ #~ " -s, --sort-output générer une sortie triée\n" #~ " -F, --sort-by-file trier la sortie selon la localisation " #~ "des fichiers\n" -#~ " --omit-header omettre les en-têtes pour « msgid \"\" " -#~ "»\n" +#~ " --omit-header omettre les en-têtes pour « msgid " +#~ "\"\" »\n" #~ " --copyright-holder=CHAÎNE identifier le champ des droits d'auteur " #~ "dans la sortie\n" #~ " --foreign-user inhiber la production d'un copyright " @@ -5243,8 +5301,8 @@ #~ "LIGNE »\n" #~ " -n, --add-location produire les « #: FICHIER:LIGNE " #~ "» (implicite)\n" -#~ " --omit-header omettre les en-têtes pour « msgid \"\" " -#~ "»\n" +#~ " --omit-header omettre les en-têtes pour « msgid " +#~ "\"\" »\n" #~ " -o, --output=FICHIER produire la sortie sur le FICHIER " #~ "indiqué\n" #~ " -p, --output-dir=RÉPERTOIRE sortir le fichier produit dans tel " @@ -5262,8 +5320,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -5456,8 +5514,8 @@ #~ msgstr "" #~ " -n, --add-location produire les « #: FICHIER:LIGNE " #~ "» (implicite)\n" -#~ " --omit-header omettre les en-têtes pour « msgid \"\" " -#~ "»\n" +#~ " --omit-header omettre les en-têtes pour « msgid " +#~ "\"\" »\n" #~ " -o, --output=FICHIER produire la sortie sur le FICHIER " #~ "indiqué\n" #~ " -p, --output-dir=RÉPERTOIRE sortir le fichier produit dans tel " diff -Nru gettext-0.17/gettext-tools/po/gettext-tools.pot gettext-0.18.1.1/gettext-tools/po/gettext-tools.pot --- gettext-0.17/gettext-tools/po/gettext-tools.pot 2007-11-02 02:23:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/gettext-tools.pot 2010-06-06 12:49:57.000000000 +0000 @@ -6,12 +6,13 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.17\n" +"Project-Id-Version: gettext-tools 0.18.1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,22 +33,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "" @@ -56,44 +57,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -103,72 +104,71 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" msgstr "" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" +msgid "%s: invalid option -- '%c'\n" msgstr "" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" msgstr "" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' requires an argument\n" msgstr "" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 @@ -182,20 +182,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -205,20 +205,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -237,70 +237,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 +#: gnulib-lib/w32spawn.h:40 #, c-format -msgid "DuplicateHandle failed with error code 0x%08x" +msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:81 #, c-format -msgid "_open_osfhandle failed" +msgid "cannot restore fd %d: dup2 failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" #: src/format-boost.c:449 @@ -325,9 +324,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" #: src/format-csharp.c:88 src/format-java.c:205 @@ -367,48 +366,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -500,19 +499,18 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -526,11 +524,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -578,12 +576,12 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" #: src/format-perl.c:433 @@ -593,54 +591,51 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -677,11 +672,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -690,38 +685,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -754,29 +749,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -785,11 +780,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" @@ -798,325 +793,343 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1130,105 +1143,97 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1239,81 +1244,86 @@ "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "" -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "" msgstr[1] "" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1326,74 +1336,74 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1402,22 +1412,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1427,67 +1437,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1495,210 +1505,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1707,48 +1699,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1756,33 +1748,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1790,109 +1782,109 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1932,30 +1924,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -1963,24 +1955,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -1988,54 +1980,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2047,54 +2039,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2103,7 +2095,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2112,7 +2104,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2121,12 +2113,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2134,7 +2126,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2143,7 +2135,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2151,185 +2143,185 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "" msgstr[1] "" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "" msgstr[1] "" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" +msgid "header field `%s' still has the initial default value\n" msgstr "" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2343,51 +2335,51 @@ "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2399,7 +2391,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2407,94 +2399,91 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr "" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2502,41 +2491,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2549,19 +2538,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2637,65 +2626,65 @@ msgid "plural form has wrong index" msgstr "" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "" @@ -2778,28 +2767,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2831,41 +2835,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2875,13 +2879,13 @@ msgid "error while opening \"%s\" for writing" msgstr "" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2890,7 +2894,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2907,8 +2911,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -2925,13 +2929,13 @@ msgid "error while writing to %s subprocess" msgstr "" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -2949,154 +2953,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3104,7 +3103,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3112,7 +3111,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3120,7 +3119,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3128,7 +3127,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3136,77 +3135,77 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3218,58 +3217,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3278,14 +3280,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3293,7 +3295,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3302,119 +3304,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3423,34 +3442,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3458,7 +3477,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/gl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/gl.gmo differ diff -Nru gettext-0.17/gettext-tools/po/gl.po gettext-0.18.1.1/gettext-tools/po/gl.po --- gettext-0.17/gettext-tools/po/gl.po 2007-11-02 02:23:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/gl.po 2010-06-06 12:49:57.000000000 +0000 @@ -11,10 +11,11 @@ msgstr "" "Project-Id-Version: gettext 0.10.39\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-07-28 17:00+0200\n" "Last-Translator: Jess Bravo lvarez \n" "Language-Team: Galician \n" +"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -35,22 +36,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "non se pode crea-lo ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "non se pode crea-lo ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "non se pode crea-lo ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "non se pode crea-lo ficheiro de sada \"%s\"" @@ -59,44 +60,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "erro ao abrir \"%s\" para lectura" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "erro ao abrir \"%s\" para escribir" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "erro ao escribi-lo ficheiro \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -106,74 +107,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro de sistema descoecido" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: a opcin `%s' ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: a opcin `--%s' non permite ningn argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: a opcin `%c%s' non permite ningn argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: a opcin `%s' require un argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opcin `--%s' descoecida\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opcin `%c%s' descoecida\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opcin ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opcin non vlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: a opcin require un argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: a opcin `-W %s' ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: a opcin `-W %s' non permite ningn argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: a opcin `%s' require un argumento\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -185,20 +185,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "erro ao escribi-lo ficheiro \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -208,20 +208,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memoria esgotada" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -240,70 +240,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "non se pode crea-lo ficheiro de sada \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "as especificacins de formato do argumento %lu non son as mesmas" #: src/format-boost.c:449 @@ -328,9 +327,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" "o nmero de especificacins de formato en `msgid' e `msgstr' non coincide" @@ -371,48 +370,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -504,19 +503,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "as especificacins de formato do argumento %lu non son as mesmas" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -530,11 +528,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -582,13 +580,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "" "o nmero de especificacins de formato en `msgid' e `msgstr' non coincide" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" #: src/format-perl.c:433 @@ -598,56 +596,53 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "o nmero de especificacins de formato en `msgid' e `msgstr' non coincide" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "o nmero de especificacins de formato en `msgid' e `msgstr' non coincide" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "as especificacins de formato do argumento %lu non son as mesmas" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "as especificacins de formato do argumento %lu non son as mesmas" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -684,11 +679,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -697,38 +692,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Escrito por %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "demasiados argumentos" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Use `%s --help' para mis informacin.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -761,29 +756,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -792,11 +787,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr "Comunique os erros a .\n" @@ -806,294 +801,312 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "precsanse exactamente dous ficheiros de entrada" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s e %s son mutuamente excluntes" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "non se indicou ningn ficheiro de entrada" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1115,31 +1128,31 @@ " -V, --version amosa-la informacin da versin e sar\n" " -w, --width=NMERO establece-la anchura da pxina de sada\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "o criterio de seleccin indicado imposible (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1169,105 +1182,97 @@ "comentarios e comentarios de extraccin mantense, pero s do primeiro\n" "ficheiro para definilos. Mantense as posicins de tdolos ficheiros PO.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "non se indicou ningn ficheiro de entrada" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "precsanse exactamente dous ficheiros de entrada" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1293,81 +1298,86 @@ "un emparellamento exacto, sase coincidencia difusa, de xeito que se produza\n" "un mellor diagnstico.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "aviso: esta mensaxe non se usa" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "esta mensaxe sase mais non est definida..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...mais esta definicin semellante" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "esta mensaxe sase mais non est definida en %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "aviso: esta mensaxe non se usa" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "atopouse %d erro grave" msgstr[1] "atopronse %d erros graves" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "tense que indicar polo menos dous ficheiros" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1396,74 +1406,74 @@ "comentarios e comentarios de extraccin mantense, pero s do primeiro\n" "ficheiro para definilos. Mantense as posicins de tdolos ficheiros PO.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "non se indicou ningn ficheiro de entrada" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "precsanse exactamente dous ficheiros de entrada" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1472,22 +1482,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "faltan argumentos" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1497,67 +1507,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "faltan argumentos" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr "tense que indicar polo menos dous ficheiros" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1565,210 +1575,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d mensaxe traducida" msgstr[1] "%d mensaxes traducidas" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traduccin difusa" msgstr[1] ", %d traduccins difusas" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d mensaxe sen traducir" msgstr[1] ", %d mensaxes sen traducir" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1777,48 +1769,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "non se indicou ningn ficheiro de entrada" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1826,33 +1818,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1860,117 +1852,117 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: aviso: a cabeceira do ficheiro PO non existe, 'fuzzy' ou invlida\n" "%*s aviso: a conversin de cdigo de caracteres non vai funcionar" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "Falta o cdigo de caracteres na cabeceira.\n" "A conversin da mensaxe ao cdigo do usuario non vai funcionar.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: aviso: a cabeceira do ficheiro PO non existe, 'fuzzy' ou invlida\n" "%*s aviso: a conversin de cdigo de caracteres non vai funcionar" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "o nome de dominio \"%s\" non axeitado para nome de ficheiro" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "o nome de dominio \"%s\" non axeitado como nome de ficheiro:\n" "empregarase un prefixo" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "directiva `domain %s' ignorada" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "entrada `msgstr' baleira ignorada" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "entrada `msgstr' difusa ignorada" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: aviso: o ficheiro fonte contn traduccins difusas" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2010,30 +2002,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2041,24 +2033,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2066,54 +2058,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2125,54 +2117,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, fuzzy, c-format msgid "warning: " msgstr "%s: aviso: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2181,7 +2173,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2190,7 +2182,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2199,12 +2191,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2212,7 +2204,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2221,7 +2213,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2229,159 +2221,159 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "secuencia de control ilegal" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "secuencia de control ilegal" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "secuencia de control ilegal" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "esta mensaxe sase mais non est definida en %s" msgstr[1] "esta mensaxe sase mais non est definida en %s" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "esta mensaxe sase mais non est definida en %s" msgstr[1] "esta mensaxe sase mais non est definida en %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "as entradas `msgid' e `msgid_plural' non comezan mbalas das con '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "as entradas `msgid' e `msgstr[%u]' non comezan mbalas das con '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "as entradas `msgid' e `msgstr' non comezan mbalas das con '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "as entradas `msgid' e `msgid_plural' non rematan mbalas das con '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "as entradas `msgid' e `msgstr[%u]' non rematan mbalas das con '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "as entradas `msgid' e `msgstr' non rematan mbalas das con '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "falta o campo `%s' na cabeceira" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "o campo `%s' da cabeceira tera que comezar ao principio da lia" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "algns campos da cabeceira anda teen o valor inicial por defecto" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "o campo `%s' anda ten o valor inicial por defecto" +msgid "header field `%s' still has the initial default value\n" +msgstr "algns campos da cabeceira anda teen o valor inicial por defecto" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro ao abrir \"%s\" para lectura" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2390,15 +2382,15 @@ "O cdigo de caracteres \"%s\" non est soportado. %s depende de\n" "iconv(), e iconv() non soporta \"%s\".\n" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2407,17 +2399,17 @@ "O cdigo de caracteres \"%s\" non est soportado. %s depende de iconv().\n" "Esta versin foi compilada sen iconv().\n" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" # src/msgmerge.c:324 -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2442,51 +2434,51 @@ "para producir mellores resultados. Os resultados escrbense na sada\n" "estndar a menos que se indique un ficheiro de sada.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2498,7 +2490,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2506,96 +2498,93 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "esta mensaxe sase mais non est definida en %s" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "esta mensaxe sase mais non est definida en %s" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sLidas %ld antigas + %ld referencias, mesturadas %ld, difusas %ld, faltan %" -"ld, obsoletas %ld.\n" +"%sLidas %ld antigas + %ld referencias, mesturadas %ld, difusas %ld, faltan " +"%ld, obsoletas %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " rematado.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s e %s son mutuamente excluntes" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2603,41 +2592,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "non se indicou ningn ficheiro de entrada" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2650,19 +2639,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2748,65 +2737,65 @@ msgid "plural form has wrong index" msgstr "a forma do plural ten un ndice errneo" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "demasiados erros, interrompendo" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "secuencia multibyte non vlida" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "secuencia multibyte non vlida" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "secuencia multibyte non vlida" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "palabra chave \"%s\" descoecida" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "secuencia de control ilegal" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "fin de ficheiro nunha cadea" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "fin de lia nunha cadea" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "este ficheiro non pode conter directivas de dominio" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definicin de mensaxe duplicada" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...este o lugar da primeira definicin" @@ -2896,28 +2885,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro ao abrir \"%s\" para lectura" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "demasiados argumentos" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "erro ao escribi-lo ficheiro \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2949,41 +2953,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "non se pode crea-lo ficheiro de sada \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "sada estndar" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2993,14 +2997,14 @@ msgid "error while opening \"%s\" for writing" msgstr "erro ao abrir \"%s\" para escribir" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "as mensaxes internacionalizadas non deben conte-la secuencia de escape `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3009,7 +3013,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3026,8 +3030,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3044,13 +3048,13 @@ msgid "error while writing to %s subprocess" msgstr "erro ao escribi-lo ficheiro \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3068,99 +3072,96 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: aviso: constante de tipo carcter non rematada" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: aviso: constante de tipo carcter non rematada" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, fuzzy, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3169,55 +3170,53 @@ "O cdigo de caracteres \"%s\" non est soportado. %s depende de iconv().\n" "Esta versin foi compilada sen iconv().\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: opcin non vlida -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3225,7 +3224,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3233,7 +3232,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3241,7 +3240,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3249,7 +3248,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3257,77 +3256,77 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: aviso: literal de cadea non rematada" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "non se pode usar --join-existing cando a sada se escribe en stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext non funciona sen palabras chave polas que buscar" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "aviso: o ficheiro `%s' coa extensin `%s' descoecido; tentarse C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "non se indicou ningn ficheiro de entrada" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3339,58 +3338,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3399,14 +3401,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3414,7 +3416,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3423,119 +3425,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrada estndar" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, fuzzy, c-format msgid "%s%s: warning: " msgstr "%s: aviso: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3544,34 +3563,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3579,7 +3598,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "linguaxe `%s' descoecida" @@ -3588,6 +3607,13 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opcin ilegal -- %c\n" + +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "o campo `%s' anda ten o valor inicial por defecto" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -3860,8 +3886,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -3887,8 +3913,8 @@ #~ "Os argumentos obrigatorios para as opcins longas son tamn obrigatorios " #~ "para\n" #~ "as opcins curtas.\n" -#~ " -a, --alignment=NMERO alia-las cadeas a NMERO bytes (defecto: %" -#~ "d)\n" +#~ " -a, --alignment=NMERO alia-las cadeas a NMERO bytes (defecto: " +#~ "%d)\n" #~ " -c, --check facer comprobacins dependentes da " #~ "linguaxe\n" #~ " nas cadeas\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/id.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/id.gmo differ diff -Nru gettext-0.17/gettext-tools/po/id.po gettext-0.18.1.1/gettext-tools/po/id.po --- gettext-0.17/gettext-tools/po/id.po 2007-11-02 02:23:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/id.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,225 +1,230 @@ -# GNU gettext-0_10_35 (Indonesian) +# Pesan bahasa indonesia untuk gettext-tools # Copyright (C) 1999 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. # Tedi Heriyanto , 1999. +# Arif E. Nugroho , 2008, 2009, 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext 0.10.35\n" +"Project-Id-Version: gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 1999-09-19 10:24+07:00\n" -"Last-Translator: Tedi Heriyanto \n" -"Language-Team: Indonesian \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-24 13:30+0700\n" +"Last-Translator: Arif E. Nugroho \n" +"Language-Team: Indonesian \n" +"Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" #: gnulib-lib/argmatch.c:133 #, c-format msgid "invalid argument %s for %s" -msgstr "" +msgstr "argumen %s tidak valid untuk %s" #: gnulib-lib/argmatch.c:134 #, c-format msgid "ambiguous argument %s for %s" -msgstr "" +msgstr "argumen %s ambigu untuk %s" #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" -msgstr "" +msgstr "Argumen yang valid adalah:" -#: gnulib-lib/clean-temp.c:333 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:335 +#, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "" +"tidak dapat menemukan direktori sementara, coba set konfigurasi $TMPDIR" -#: gnulib-lib/clean-temp.c:347 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:349 +#, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "" +"tidak dapat membuat sebuah direktori sementara menggunakan template \"%s\"" -#: gnulib-lib/clean-temp.c:443 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:445 +#, c-format msgid "cannot remove temporary file %s" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "tidak dapat menghapus berkas sementara %s" -#: gnulib-lib/clean-temp.c:458 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:460 +#, c-format msgid "cannot remove temporary directory %s" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "tidak dapat menghapus direktori sementara %s" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "" +msgstr "tulis error" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" -msgstr "kesalahan saat membuka \"%s\" untuk dibaca" +msgstr "error ketika membuka \"%s\" untuk dibaca" -#: gnulib-lib/copy-file.c:73 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:74 +#, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr "kesalahan ketika membuka \"%s\" untuk ditulis" +msgstr "tidak dapat membuka berkas backup \"%s\" untuk ditulis" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 +#, c-format msgid "error reading \"%s\"" -msgstr "kesalahan ketika membaca \"%s\"" +msgstr "error ketika membaca \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 +#, c-format msgid "error writing \"%s\"" -msgstr "kesalahan saat menulis file \"%s\"" +msgstr "error ketika menulis \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 +#, c-format msgid "error after reading \"%s\"" -msgstr "kesalahan ketika membaca \"%s\"" +msgstr "error setelah membaca \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" -msgstr "" +msgstr "fdopen() gagal" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" -msgstr "" +msgstr "C# kompiler tidak ditemukan, coba pasang pnet" #: gnulib-lib/csharpexec.c:343 #, c-format msgid "C# virtual machine not found, try installing pnet" -msgstr "" +msgstr "C# mesin maya tidak ditemukan, coba pasang pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "Kesalahan sistem tak dikenal" +msgstr "Sistem error tidak diketahui" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" -msgstr "" +msgstr "%s subproses gagal" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: pilihan `%s' rancu\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: pilihan '%s' rancu\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: pilihan `--%s' tidak membolehkan argumen\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: pilihan '--%s' tidak membolehkan argumen\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: pilihan `%c%s' tidak membolehkan argumen\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: pilihan '%c%s' tidak membolehkan argumen\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "pilihan %s: `%s' memerlukan sebuah argumen\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: pilihan '--%s' membutuhkan sebuah argumen\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: pilihan tak dikenal `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: pilihan tidak diketahui '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: pilihan tak dikenal `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: pilihan tidak diketahui '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: pilihan ilegal -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: pilihan tidak valid -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: pilihan tidak valid -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: pilihan membutuhkan sebuah argumen -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: pilihan membutuhkan sebuah argumen -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: pilihan '-W %s' rancu\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: pilihan `-W %s' rancu\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: pilihan '-W %s' tidak membolehkan sebuah argumen\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: pilihan `-W %s' tidak membolehkan sebuah argumen\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: pilihan '-W %s' membutuhkan sebuah argumen\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format msgid "invalid source_version argument to compile_java_class" -msgstr "" +msgstr "argumen source_version tidak valid untuk compile_java_class" #: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 #, c-format msgid "invalid target_version argument to compile_java_class" -msgstr "" +msgstr "argumen target_version tidak valid untuk compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" -msgstr "" +msgstr "gagal untuk membuat \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" -msgstr "kesalahan saat menulis file \"%s\"" +msgstr "error ketika menulis berkas \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" -msgstr "" +msgstr "Kompiler java tidak ditemukan, coba pasang gcj atau set $JAVAC" #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" -msgstr "" +msgstr "Mesin maya java tidak ditemukan, coba pasang gij atau set $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" -msgstr "" +msgstr "%s subproses I/O error" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 -#, fuzzy, c-format +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 +#, c-format msgid "memory exhausted" -msgstr "Memori habis" +msgstr "kehabisan memori" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 -#, fuzzy, c-format +#, c-format msgid "cannot create pipe" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "tidak dapat membuat pipe" #. TRANSLATORS: #. Get translations for open and closing quotation marks. @@ -234,76 +239,78 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" -msgstr "" +msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" -msgstr "" +msgstr "'" -#: gnulib-lib/w32spawn.h:47 +#: gnulib-lib/w32spawn.h:40 #, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" +msgid "_open_osfhandle failed" +msgstr "_open_osfhandle gagal" -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:81 #, c-format -msgid "_open_osfhandle failed" -msgstr "" +msgid "cannot restore fd %d: dup2 failed" +msgstr "tidak dapat mengembalikan deskripsi berkas %d: dup2 gagal" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" -msgstr "" +msgstr "%s subproses" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" -msgstr "" +msgstr "%s subproses mendapatkan sinyal fatal %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" +"'%s' bukan sebuah format string %s yang sah, tidak seperti '%s'. Karena: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, fuzzy, c-format -msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "spesifikasi format untuk argumen %u tidak sama" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 -#, fuzzy, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, c-format +msgid "" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "" +"sebuah spesifikasi format untuk argumen %u, seperti dalam '%s', tidak ada " +"dalam '%s'" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 +#, c-format msgid "a format specification for argument %u doesn't exist in '%s'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +msgstr "sebuah spesifikasi format untuk argumen %u tidak ada dalam '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "spesifikasi format untuk argumen %u tidak sama" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "spesifikasi format dalam '%s' dan '%s' untuk argumen %u tidak sama" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr "" +msgstr "Direktif nomor %u berawal dengan | tetapi tidak berakhir dengan |." #: src/format-c.c:181 #, c-format @@ -311,118 +318,136 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" +"Dalam direktif nomor %u, simbol setelah '<' bukan nama dari sebuah format " +"penspesifikasi makor. Nama makro yang valid terdaftar dalam ISO C 99 bagian " +"7.8.1." #: src/format-c.c:588 #, c-format msgid "In the directive number %u, the token after '<' is not followed by '>'." -msgstr "" +msgstr "Dalam direktif nomor %u, token setelah '<' tidak diikuti dengan '>'." #: src/format-c.c:814 #, c-format msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" +"String yang mereferensi ke argumen nomor %u tetapi mengabaikan argumen nomor " +"%u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "jumlah spesifikasi format dalam `msgid' dan `msgstr' tidak sesuai" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, c-format +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "jumlah spesifikasi format dalam '%s' dan '%s' tidak cocok" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." msgstr "" +"Dalam direktif nomor %u, '{' tidak diikuti dengan sebuah nomor argumen." #: src/format-csharp.c:109 #, c-format msgid "In the directive number %u, ',' is not followed by a number." -msgstr "" +msgstr "Dalam direktif nomor %u, ',' tidak diikuti dengan sebuah angka." #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." msgstr "" +"String berakhir di akhir dari sebuah direktif: ditemukan '{' tanpa " +"pencocokan '}'." #: src/format-csharp.c:139 #, c-format msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." msgstr "" +"Direktif nomor %u berakhir dengan sebuah karakter tidak valid '%c' daripada " +"'}'." #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." msgstr "" +"Direktif nomor %u berakhir dengan sebuah karakter tidak valid daripada '}'." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" +"String berawal di tengah dari sebuah direktif: ditemukan '}' tanpa " +"pencocokan '{'." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." -msgstr "" +msgstr "String berisi sebuah '}' tunggal setelah direktif nomor %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr "" +msgstr "Dalam direktif nomor %u, kombinasi tanda tidak valid." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." -msgstr "" +msgstr "Dalam direktif nomor %u, sebuah presisi tidak diijinkan sebelum '%c'. " -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" +"Dalam direktif nomor %u, argumen nomor untuk presisi harus sama dengan %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" +"Dalam direktif nomor %u, sebuah spesifikasi presisi tidak diijinkan sebelum " +"'%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "" +msgstr "Dalam direktif nomor %u, spesifikasi presisi tidak valid." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." -msgstr "" +msgstr "Dalam direktif nomor %u, simbol tidak diijinkan sebelum '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s' menggunakan %%m tetapi '%s' tidak" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s' tidak digunakan %%m tetapi '%s' menggunakan %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." -msgstr "" +msgstr "String berakhir ditengan dari sebuah direktif." #: src/format-invalid.h:25 msgid "" "The string refers to arguments both through absolute argument numbers and " "through unnumbered argument specifications." msgstr "" +"String mereferensi ke argumen baik melalui argumen nomor absolut dan melalui " +"spesifikasi argumen tidak bernomor." #: src/format-invalid.h:28 #, c-format msgid "" "In the directive number %u, the argument number 0 is not a positive integer." -msgstr "" +msgstr "Dalam direktif nomor %u, nomor argumen 0 bukan sebuah positif integer." #: src/format-invalid.h:30 #, c-format @@ -430,6 +455,7 @@ "In the directive number %u, the width's argument number 0 is not a positive " "integer." msgstr "" +"Dalam direktif nomor %u, lebar nomor argumen 0 bukan sebuah integer positif." #: src/format-invalid.h:32 #, c-format @@ -437,6 +463,8 @@ "In the directive number %u, the precision's argument number 0 is not a " "positive integer." msgstr "" +"Dalam direktif nomor %u, argumen presisi nomor 0 bukan sebuah positif " +"integer." #: src/format-invalid.h:36 #, c-format @@ -444,6 +472,8 @@ "In the directive number %u, the character '%c' is not a valid conversion " "specifier." msgstr "" +"Dalam direktif nomor %u, karakter '%c' bukan sebuah penspesifikasi konversi " +"valid." #: src/format-invalid.h:37 #, c-format @@ -451,11 +481,14 @@ "The character that terminates the directive number %u is not a valid " "conversion specifier." msgstr "" +"Karakter yang berakhir di direktif nomor %u bukan sebuah penspesifikasi " +"konversi yang valid." #: src/format-invalid.h:40 #, c-format msgid "The string refers to argument number %u in incompatible ways." msgstr "" +"String mereferensi ke argumen nomor %u dalam cara yang tidak kompatibel." #: src/format-java.c:240 #, c-format @@ -463,17 +496,20 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" +"dalam direktif nomor %u, substring \"%s\" bukan sebuah gaya tanggal/waktu " +"yang valid." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format msgid "In the directive number %u, \"%s\" is not followed by a comma." -msgstr "" +msgstr "Dalam direktif nomor %u, \"%s\" tidak diikuti oleh sebuah koma." #: src/format-java.c:274 #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." msgstr "" +"Dalam direktif nomor %u, substring \"%s\" bukan sebuah nomor gaya yang valid." #: src/format-java.c:323 #, c-format @@ -481,11 +517,13 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" +"Dalam direktif nomor %u, nomor argumen tidak diikuti oleh sebuah koma dan " +"salah satu dari \"%s\", \"%s\", \"%s\", \"%s\"." #: src/format-java.c:572 #, c-format msgid "In the directive number %u, a choice contains no number." -msgstr "" +msgstr "Dalam direktif nomor %u, sebuah pilihan berisi bukan angka." #: src/format-java.c:583 #, c-format @@ -493,24 +531,27 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" +"Dalam direktif nomor %u, sebuah pilihan berisi sebuah angka yang tidak " +"diikuti dengan '<', '#' atau '%s'." #: src/format-java.c:745 -#, fuzzy, c-format +#, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "" +"sebuah spesifikasi format untuk argumen {%u}, seperti dalam '%s', tidak ada " +"dalam '%s'" -#: src/format-java.c:755 -#, fuzzy, c-format +#: src/format-java.c:756 +#, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +msgstr "sebuah spesifikasi format untuk argumen {%u} tidak ada dalam '%s'" -#: src/format-java.c:775 -#, fuzzy, c-format +#: src/format-java.c:776 +#, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" -msgstr "spesifikasi format untuk argumen %u tidak sama" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "spesifikasi format dalam '%s' dan '%s' untuk argumen {%u} tidak sama" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -519,43 +560,49 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" +"Dalam direktif nomor %u, parameter %u tipe '%s' tetapi sebuah parameter dari " +"tipe '%s' yang diduga." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" +"Dalam direktif nomor %u, terlalu banyak parameter yang diberikan; diduga di " +"akhir %u parameter." msgstr[1] "" +"Dalam direktif nomor %u, terlalu banyak parameter yang diberikan; diduga " +"diakhir %u parameter." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format msgid "In the directive number %u, '%c' is not followed by a digit." -msgstr "" +msgstr "Dalam direktif nomor %u, '%c' tidak diikuti oleh sebuah digit." #: src/format-lisp.c:2736 src/format-scheme.c:2754 #, c-format msgid "In the directive number %u, the argument %d is negative." -msgstr "" +msgstr "Dalam direktif nomor %u, argumen %d negatif." #: src/format-lisp.c:2805 msgid "The string ends in the middle of a ~/.../ directive." -msgstr "" +msgstr "String berakhir ditengah dari sebuah ~/.../ direktif." #: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 #: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 #: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 #, c-format msgid "Found '~%c' without matching '~%c'." -msgstr "" +msgstr "Ditemukan '~%c' tanpa pencocokan '~%c'." #: src/format-lisp.c:2863 src/format-scheme.c:2860 #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." -msgstr "" +msgstr "Dalam direktif nomor %u, baik @ dan pemodifikasi : diberikan." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -563,25 +610,29 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" +"Dalam direktif nomor %u, '~:[]' tidak diikuti oleh dua klausa, dipisahkan " +"oleh '~;'." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." msgstr "" +"Dalam direkftif nomor %u, '~;' digunakan dalam sebuah posisi tidak valid." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." msgstr "" +"String mereferensikan ke beberapa argumen dalam cara yang tidak komptibel." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "jumlah spesifikasi format dalam `msgid' dan `msgstr' tidak sesuai" +#, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "spesifikasi format dalam '%s' dan `%s' tidak sesuai" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +#, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "spesifikasi format dalam '%s' bukan sebuah subset dari '%s'" #: src/format-perl.c:433 #, c-format @@ -589,76 +640,93 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." msgstr "" +"Dalam direktif nomor %u, ukuran penspesifikasi tidak kompatibel dengan " +"penspesifkasi konversi '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 -#, fuzzy, c-format +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 +#, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +msgstr "spesifikasi format untuk argumen '%s' tidak ada dalam '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" +"String mereferensikan argumen baik melalui nama argumen dan melalui " +"spesifikasi argumen tidak bernama." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" +"String mereferensikan ke argumen bernama '%s' dalam cara yang tidak " +"kompatibel." -#: src/format-python.c:419 -#, fuzzy, c-format +#: src/format-python.c:430 +#, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" -msgstr "jumlah spesifikasi format dalam `msgid' dan `msgstr' tidak sesuai" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" +msgstr "" +"spesifikasi format dalam '%s' diduga sebuah pemetaan, baik dalam '%s' diduga " +"sebuah tuple" -#: src/format-python.c:426 -#, fuzzy, c-format +#: src/format-python.c:437 +#, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" -msgstr "jumlah spesifikasi format dalam `msgid' dan `msgstr' tidak sesuai" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" +msgstr "" +"spesifikasi format dalam '%s' diduga sebuah tuple, baik dalam '%s' diduga " +"sebuah pemetaan" -#: src/format-python.c:449 src/format-sh.c:297 -#, fuzzy, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr "spesifikasi format untuk argumen %u tidak sama" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "" +"spesifikasi format untuk argumen '%s', seperti dalam '%s', tidak ada dalam " +"'%s'" -#: src/format-python.c:479 -#, fuzzy, c-format +#: src/format-python.c:494 +#, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" -msgstr "spesifikasi format untuk argumen %u tidak sama" +"format specifications in '%s' and '%s' for argument '%s' are not the same" +msgstr "spesifikasi format dalam '%s' dan '%s' untuk argumen '%s' tidak sama" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'%s' sebuah format string sederhana, tetapi '%s' bukan: ini berisi sebuah " +"tanda 'L' atau sebuah nomor argumen double-digit" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." msgstr "" +"String mereferensikan ke sebuah variabel shell dengan sebuah nama bukan " +"ASCII." #: src/format-sh.c:81 msgid "" "The string refers to a shell variable with complex shell brace syntax. This " "syntax is unsupported here due to security reasons." msgstr "" +"String mereferensikan ke sebuah variabel shell dengan kompleks sintaks shell " +"kompleks. Sintaks ini tidak didukung disini karena alasan keamanan." #: src/format-sh.c:83 msgid "" "The string refers to a shell variable whose value may be different inside " "shell functions." msgstr "" +"String mereferensikan ke sebuah variabel shell yang nilainya mungkin berbeda " +"didalam fungsi shell." #: src/format-sh.c:85 msgid "The string refers to a shell variable with an empty name." -msgstr "" +msgstr "String mereferensi ke sebuah variabel shell dengan sebuah nama kosong." #: src/format-ycp.c:90 #, c-format @@ -666,6 +734,7 @@ "In the directive number %u, the character '%c' is not a digit between 1 and " "9." msgstr "" +"Dalam direktif nomor %u, karakter '%c' bukan sebuah angka diantara 1 dan 9." #: src/format-ycp.c:91 #, c-format @@ -673,12 +742,14 @@ "The character that terminates the directive number %u is not a digit between " "1 and 9." msgstr "" +"Karakter yang mengakhiri nomor direktif %u bukan sebuah angka diantara 1 dan " +"9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -686,57 +757,61 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"Hak Cipta (C) %s Free Software Foundation, Inc.\n" +"Lisensi GPLv3+: GNU GPL versi 3 atau selanjutnya \n" +"Ini adalah piranti lunak bebas: anda bebas untuk mengubah dan meredistribusikannya.\n" +"TIDAK ADA GARANSI, sampai batas yang diijinkan oleh hukum yang berlaku.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Ditulis oleh %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "terlalu banyak argumen" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Coba `%s --help' untuk informasi lebih jauh.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN]\n" #: src/hostname.c:215 #, c-format msgid "Print the machine's hostname.\n" -msgstr "" +msgstr "Tampilkan nama host mesin.\n" #: src/hostname.c:218 #, c-format msgid "Output format:\n" -msgstr "" +msgstr "Format keluaran:\n" #: src/hostname.c:220 #, c-format msgid " -s, --short short host name\n" -msgstr "" +msgstr " -s, --short nama pendek host\n" #: src/hostname.c:222 #, c-format @@ -745,389 +820,445 @@ "domain\n" " name, and aliases\n" msgstr "" +" -f, --fqdn, --long nama panjang host, termasuk fully qualified " +"domain\n" +" nama, dan aliases\n" #: src/hostname.c:225 #, c-format msgid " -i, --ip-address addresses for the hostname\n" -msgstr "" +msgstr " -i, --ip-address alamat untuk hostname\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" -msgstr "" +msgstr "Keluaran informatif:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr "" +msgstr " -h, --help tampilkan bantuan ini dan keluar\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr "" +msgstr " -V, --version keluarkan informasi versi dan keluar\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 -#, fuzzy +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" -msgstr "Laporkan kesalahan ke .\n" +msgstr "Laporkan bugs ke .\n" #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" -msgstr "" +msgstr "tidak dapat mendapatkan nama host" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 -#, fuzzy, c-format +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 +#, c-format msgid "at most one input file allowed" -msgstr "dibutuhkan tepat 2 file input" +msgstr "di paling tidak satu berkas masukan diijinkan" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s dan %s adalah mutually exclusive" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] [BERKAS MASUKAN]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" +"Saring pesan dari sebuah katalog terjemahan menurut atributnya,\n" +"dan manipulasi atribut.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" +"Argumen wajib untuk pilihan panjang juga wajib untuk pilihan pendek juga.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 -#, fuzzy, c-format +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 +#, c-format msgid "Input file location:\n" -msgstr "tidak diberikan file input" +msgstr "Lokasi berkas masukan:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" -msgstr "" +msgstr " BERKAS MASUKAN berkas masukan PO\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" +" -D, --directory=DIREKTORI tambahkan DIREKTORI ke daftar pencarian " +"masukan berkas\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" +"Jika tidak ada berkas masukan yang diberikan atau jika ini adalah -, standar " +"masukan yang dibaca.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" -msgstr "" +msgstr "Lokasi berkas keluaran:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" +" -o, --output-file=BERKAS tulis keluaran ke berkas yang " +"dispesifikasikan\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" +"Hasil ditulis ke standar keluaran jika tidak ada berkas keluaran yang\n" +"dispesifikasikan atau jika ini adalah -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" -msgstr "" +msgstr "Pemilihan pesan:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" +" --translated simpan terjemahan, hapus pesan tidak " +"diterjemahkan\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" +" --untranslated simpan tidak terjemahkan, hapus pesan " +"terjemahan\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" -msgstr "" +msgstr " --no-fuzzy hapus pesan ditandai 'fuzzy'\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" -msgstr "" +msgstr " --only-fuzzy simpan pesan ditandai 'fuzzy'\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" -msgstr "" +msgstr " --no-obsolete hapus pesan sudah ditinggalkan #~\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" -msgstr "" +msgstr " --only-obsolete simpan pesan sudah ditinggalkan #~\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" -msgstr "" +msgstr "Manipulasi atribut:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" -msgstr "" +msgstr " --set-fuzzy set seluruh pesan 'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" -msgstr "" +msgstr " --clear-fuzzy set seluruh pesan non-'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" -msgstr "" +msgstr " --set-obsolete set seluruh pesan sudah ditinggalkan\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" -msgstr "" +msgstr " --clear-obsolete set seluruh pesan tidak ditinggalkan\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" +" --clear-previous hapus \"previous msgid\" dari seluruh pesan\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" +" --only-file=BERKAS.po hanya manipulasi masukan terdaftar dalam " +"BERKAS.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" +" --ignore-file=BERKAS.po hanya manipulasi masukan tidak terdaftar dalam " +"BERKAS.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" +" --fuzzy sinonim untuk --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" +" --obsolete sinonim untuk --only-obsolete --clear-" +"obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" -msgstr "" +msgstr "Sintaks berkas masukan:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" +" -P, --properties-input berkas masukan berada dalam .properties " +"sintaks Java\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" +" --stringtable-input berkas masukan berada dalam sintaks .strings " +"NexTstep/GNUstep\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" +msgstr "Detil keluaran:\n" + +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color gunakan selalu warna dan atribut teks lain.\n" +" --color=KETIKA gunakan warna dan atribut teks lain jika " +"KETIKA.\n" +" KETIKA dapat berupa 'always', 'never', 'auto', " +"atau 'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" msgstr "" +" --style=BERKAS GAYA spesifikasikan aturan gaya CSS berkas untuk --" +"color\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" +" -e, --no-escape jangan gunakan C escape dalam keluaran (baku)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" +" -E, --escape gunakan C escape dalam keluaran, bukan " +"karakter ekstensi\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" -msgstr "" +msgstr " --force-po tulis berkas PO walaupun itu kosong\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" +" -i, --indent tulis berkas .po menggunakan gaya teridentasi\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" +" --no-location jangan tulis '#: nama berkas:baris' baris\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" +" -n, --add-location hasilkan '#: nama berkas:baris' baris (baku)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" +" --strict tulis strict Uniforum konform berkas .po\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" -msgstr "" +msgstr " -p, --properties-output tulis sebuah berkas .properties Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" +" --stringtable-output tulis sebuah .string berkas NeXTstep/GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" -msgstr "" +msgstr " -w, --width=ANGKA set keluaran lebar halaman\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 -#, fuzzy, c-format +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 +#, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -"Pemakaian: %s [PILIHAN] [FILE]...\n" -"Argumen wajib untuk pilihan panjang juga wajib untuk pilihan pendek.\n" -" -e, --no-escape jangan gunakan escape C dalam output (baku)\n" -" -E, --escape gunakan escape C dalam output, tanpa ekst. " -"karakter\n" -" --force-po tulis file PO bahkan bila kosong\n" -" -h, --help tampilkan bantuan ini dan keluar\n" -" -i, --indent tulis output bergaya indentasi\n" -" -o, --output-file=FILE tulis output ke FILE\n" -" --strict tulis dalam gaya strict uniforum\n" -" -V, --version tampilkan informasi versi dan keluar\n" -" -w, --width=NUMBER set lebar halaman output\n" - -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +" --no-wrap jangan potong baris pesan panjang, lebih " +"panjang\n" +" dari lebar halaman keluaran, dalam beberapa " +"beris\n" + +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" -msgstr "" +msgstr " -s, --sort-output hasilkan keluaran terurut\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" +" -F, --sort-by-file urutkan keluaran berdasarkan lokasi berkas\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" -msgstr "digunakan kriteria pemilihan yang tidak mungkin (%d < n < %d)" +msgstr "" +"kriteria pemilihan yang dispesifikasikan tidak memungkinkan (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] [BERKAS MASUKAN]...\n" -#: src/msgcat.c:359 -#, fuzzy, c-format, no-wrap +#: src/msgcat.c:371 +#, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" "Find messages which are common to two or more of the specified PO files.\n" @@ -1139,121 +1270,125 @@ "is specified, they will be taken from the first PO file to define them.\n" "File positions from all PO files will be cumulated.\n" msgstr "" -" -V, --version tampilkan versi informasi dan keluar\n" -" -w, --width=NUMBER set lebar halaman output\n" -" -<, --less-than=NUMBER cetak pesan dengan definisi kurang dari ini,\n" -" baku adalah infinit jika tidak diset\n" -" ->, --more-than=NUMBER cetak pesan dengan definisi lebih dari ini,\n" -" baku adalah 1 jika tidak diset\n" -"\n" -"Temukan pesan yang umum di antara dua/lebih file PO yang dispesifikasikan.\n" +"Potong dan gabungkan berkas PO yang dispesifikasikan.\n" +"Temukan pesan yang umum di antara dua/lebih berkas PO yang dispesifikasikan.\n" "Dengan menggunakan pilihan --more-than, kesamaan umum dapat diminta sebelum\n" "pesan dicetak. Sebaliknya, pilihan --less-than dapat digunakan untuk \n" "menspesifikasikan kesamaan yang kurang sebelum pesan dicetak (misal \n" "--less-than=2 akan mencetak pesan-pesan unik). Terjemahan, komentar dan\n" -"komentar ekstraksi akan dijaga, tetapi hanya dari file PO pertama yang\n" -"mendefinisikan mereka. Posisi file dari seluruh file PO akan dijaga.\n" +"komentar ekstraksi akan dijaga, tetapi hanya dari berkas PO pertama yang\n" +"mendefinisikan mereka. Posisi berkas dari seluruh berkas PO akan dijaga.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" -msgstr "" +msgstr " BERKAS MASUKAN ... berkas masukan\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" +" -f, --files-from=BERKAS dapatkan daftar dari berkas masukan dari " +"BERKAS\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" -msgstr "" +msgstr "Jika berkas masukan adalah -, standar masukan dibaca.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" +" -<, --less-than=ANGKA tampilkan pesan dengan lebih kecil dari \n" +" definisi ini, baku ke tidak terhingga jika " +"tidak diset\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" +" ->, --more-than=ANGKA tampilkan pesan dengan lebih besar dari \n" +" definisi ini, baku ke 0 jika tidak diset\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" +" -u, --unique kependekan untuk --less-than=2, diminta\n" +" hanya pesan unik untuk ditampilkan\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" +" -P, --properties-input berkas masukan berada dalam sintaks ." +"properties Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" +" --stringtable-input berkas masukan berada dalam sintaks .strings " +"NeXTstep/GNUstep\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" -msgstr "" +msgstr " -t, --to-code=NAMA pengkodean untuk keluaran\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" +" --use-first gunakan terjemahan pertama yang tersedia " +"untuk\n" +" setiap pesan, jangan gabungkan beberapa " +"terjemahan.\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" +" --lang=NAMAKATALOG isi baris 'Language' dalam masukan header\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" -msgstr "" +msgstr "Peter MIller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" -msgstr "tidak diberikan file input" +msgstr "tidak ada berkas masukan yang diberikan" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" -msgstr "dibutuhkan tepat 2 file input" +msgstr "dibutuhkan tepat 2 berkas input" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] def.po ref.pot\n" -#: src/msgcmp.c:207 -#, fuzzy, c-format, no-wrap +#: src/msgcmp.c:218 +#, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" "set of msgid strings. The def.po file is an existing PO file with the\n" @@ -1262,95 +1397,97 @@ "you have translated each and every message in your program. Where an exact\n" "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -"Pemakaian: %s [PILIHAN] def.po ref.po\n" -"Argumen yang perlu untuk pilihan yang panjang juga diperlukan untuk pilihan pendek.\n" -" -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk pencarian\n" -" file input\n" -" -h, --help tampilkan bantuan ini dan keluar\n" -" -V, --version tampilkan informasi versi dan keluar\n" -"\n" -"Membandingkan dua gaya Uniforum file .po untuk memeriksa keduanya mengandung\n" -"string msgid yang sama. File def.po adalah file PO terjemahan terdahulu. File\n" -"ref.po adalah file PO terbaru (diciptakan biasanya oleh xgettext). Hal ini\n" +"Membandingkan dua gaya Uniforum berkas .po untuk memeriksa keduanya mengandung\n" +"string msgid yang sama. File def.po adalah berkas PO terjemahan terdahulu. File\n" +"ref.po adalah berkas PO terbaru (diciptakan biasanya oleh xgettext). Hal ini\n" "berguna untuk memeriksa bahwa anda telah menerjemahkan setiap pesan dalam\n" "program anda. Bilamana tidak ditemukan kecocokan yang tepat, digunakan fuzzy\n" "matching untuk menghasilkan diagnostik yang lebih baik.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" -msgstr "" +msgstr " def.po terjemahan\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" -msgstr "" +msgstr " ref.pot referensi ke sumber\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" -msgstr "" +msgstr "Operasi pemodifikasi:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" +" -m, --multi-domain aplikasikan ref.pot ke setiap dari domain " +"dalam def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching jangan gunakan fuzzy matching\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" -msgstr "" +msgstr " --use-fuzzy pertimbangkan masukan fuzzy\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" +" --use-untranslated pertimbangkan masukan tidak diterjemahkan\n" -#: src/msgcmp.c:309 -#, fuzzy, c-format +#: src/msgcmp.c:324 +#, c-format msgid "this message is untranslated" -msgstr "peringatan: pesan ini tidak digunakan" +msgstr "pesan ini tidak diterjemahkan" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" -msgstr "" +msgstr "pesan ini butuh untuk diulas oleh penerjemah" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "pesan ini digunakan tapi tidak didefinisikan..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...tetapi definisi ini serupa" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "pesan ini digunakan tapi tidak didefinisikan dalam %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "peringatan: pesan ini tidak digunakan" -#: src/msgcmp.c:450 src/msgfmt.c:541 -#, fuzzy, c-format +#: src/msgcmp.c:553 src/msgfmt.c:541 +#, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "ditemukan %d kesalahan fatal" +msgstr[1] "ditemukan %d kesalahan fatal" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" -msgstr "paling tidak dua file harus dispesifikasikan" +msgstr "paling tidak dua berkas harus dispesifikasikan" -#: src/msgcomm.c:351 -#, fuzzy, c-format, no-wrap +#: src/msgcomm.c:363 +#, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" "By using the --more-than option, greater commonality may be requested\n" @@ -1361,89 +1498,88 @@ "PO file to define them. File positions from all PO files will be\n" "cumulated.\n" msgstr "" -" -V, --version tampilkan versi informasi dan keluar\n" -" -w, --width=NUMBER set lebar halaman output\n" -" -<, --less-than=NUMBER cetak pesan dengan definisi kurang dari ini,\n" -" baku adalah infinit jika tidak diset\n" -" ->, --more-than=NUMBER cetak pesan dengan definisi lebih dari ini,\n" -" baku adalah 1 jika tidak diset\n" -"\n" -"Temukan pesan yang umum di antara dua/lebih file PO yang dispesifikasikan.\n" +"Temukan pesan yang umum di antara dua/lebih berkas PO yang dispesifikasikan.\n" "Dengan menggunakan pilihan --more-than, kesamaan umum dapat diminta sebelum\n" "pesan dicetak. Sebaliknya, pilihan --less-than dapat digunakan untuk \n" "menspesifikasikan kesamaan yang kurang sebelum pesan dicetak (misal \n" "--less-than=2 akan mencetak pesan-pesan unik). Terjemahan, komentar dan\n" -"komentar ekstraksi akan dijaga, tetapi hanya dari file PO pertama yang\n" -"mendefinisikan mereka. Posisi file dari seluruh file PO akan dijaga.\n" +"komentar ekstraksi akan dijaga, tetapi hanya dari berkas PO pertama yang\n" +"mendefinisikan mereka. Posisi berkas dari seluruh berkas PO akan diakumulasikan.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" +" ->, --more-than=ANGKA tampilkan pesan dengan lebih dari definisi\n" +" ini, baku ke 1 jika tidak diset\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" +" --omit-header jangan tulis header dengan masukan `msgid " +"\"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" +"Konversikan sebuah katalog terjemahan ke pengkodean karakter yang berbeda.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" -msgstr "" +msgstr "Target konversi:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" -msgstr "" +msgstr "Pengkodean baku adalah pengkodean lokal sekarang.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" -msgstr "" +msgstr " -i, --indent gaya keluaran terindentasi\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" -msgstr "" +msgstr " --no-location tekan '#: nama berkas:baris' baris\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" +" --add-location simpan '#: nama berkas: baris' baris (baku)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" -msgstr "" +msgstr " --strict gaya keluaran Uniforum strict\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" -msgstr "tidak diberikan file input" +msgstr "tidak ada berkas masukan yang diberikan" -#: src/msgen.c:233 -#, fuzzy, c-format +#: src/msgen.c:253 +#, c-format msgid "exactly one input file required" -msgstr "dibutuhkan tepat 2 file input" +msgstr "tepatnya sebuah berkas masukan dibutuhkan" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] BERKAS MASUKAN\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1451,23 +1587,27 @@ "xgettext). Untranslated entries are assigned a translation that is\n" "identical to the msgid.\n" msgstr "" +"Buat sebuah katalog terjemahan bahasa inggris. Berkas masukan adalah\n" +"yang terakhir dibuat oleh berkas PO Inggris, atau sebuah template berkas PO\n" +"(secara umum dibuat oleh xgettext). Masukan yang tidak diterjemahkan diberikan\n" +"sebuah terjemahan yang identik dengan msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" -msgstr "" +msgstr " BERKAS MASUKAN berkas masukan PO atau POT\n" -#: src/msgexec.c:194 -#, fuzzy, c-format +#: src/msgexec.c:196 +#, c-format msgid "missing command name" -msgstr "Argumen hilang" +msgstr "hilang nama perintah" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] PERINTAH [PILIHAN-PERINTAH]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1476,276 +1616,292 @@ "msgexec's output. msgexec's return code is the maximum return code\n" "across all invocations.\n" msgstr "" +"Aplikasikan sebuah perintah ke seluruh terjemahan dari sebuah katalog terjemahan.\n" +"PERINTAH dapat berupa aplikasi apapun yang membaca sebuah terjemahan dari\n" +"standar masukan. Ini dipanggil sekali untuk setiap terjemahan. Keluarannya\n" +"menjadi keluaran msgexec. msgexec mengembalikan kode yang maksimal kode kembali\n" +"ke seluruh pemanggilan.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" +"Sebuah perintah bawaan dipanggil '0' mengeluarkan terjemahan, diikuti oleh sebuah\n" +"null byte. Keluaran dari \"msgexec 0\" cocok sebagai sebuah masukan untuk \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" -msgstr "" +msgstr " -i, --input=BERKAS MASUKAN masukan berkas PO\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "" +msgstr "penulisan ke stdout gagal" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" -msgstr "" +msgstr "tulis ke %s subproses gagal" -#: src/msgfilter.c:296 -#, fuzzy, c-format +#: src/msgfilter.c:289 +#, c-format msgid "missing filter name" -msgstr "Argumen hilang" +msgstr "hilang nama penyaring" -#: src/msgfilter.c:320 -#, fuzzy, c-format +#: src/msgfilter.c:313 +#, c-format msgid "at least one sed script must be specified" -msgstr "paling tidak dua file harus dispesifikasikan" +msgstr "paling tidak sebuah script sed harus dispesifikasikan" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] PENYARING [PILIHAN-PENYARING]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" +"Mengaplikasikan sebuah penyaring ke seluruh terjemahan dari sebuah katalog " +"terjemahan.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" +"PENYARING dapat berupa aplikasi apapun yang membaca sebuah terjemahan dari " +"standar masukan\n" +"dan menulis sebuah terjemahan termodifikasi ke standar keluaran.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -msgstr "" +msgstr "Sangat berguna FILTER-OPTIONs ketika PENYARING adalah 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" +" -e, --expression=SCRIPT tambahkan SCRIPT ke perintah yang dijalankan\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " "commands\n" " to be executed\n" msgstr "" +" -f, --file=SCRIPTFILE tambahkan isi dari SCRIPTFILE ke perintah\n" +" untuk dijalankan\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" +" -n, --quiet, --silent tekan pencetakan otomatis dari ruang pola\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" +" --no-escape jangan gunakan C escapes dalam keluaran " +"(baku)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" -msgstr "" +msgstr " --indent gaya keluaran terindentasi\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" +" --keep-header simpan masukan header tidak termodifikasi, " +"janya saring itu\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" -msgstr "" +msgstr "argumen ke %s seharusnya berupa sebuah karakter punctuation tunggal" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" -msgstr "" +msgstr "endianness tidak valid: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" -msgstr "" +msgstr "%s membutuhkan sebuah spesifikasi \"-d direktori\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" -msgstr "" +msgstr "%s membutuhkan sebuah spesifikasi \"-l lokal\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" -msgstr "" +msgstr "%s hanya valid dengan %s atau %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" -msgstr "" +msgstr "%s hanya valid dengan %s, %s atau %s" + +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " -#: src/msgfmt.c:599 -#, fuzzy, c-format +#: src/msgfmt.c:620 +#, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d pesan diterjemahkan" +msgstr[1] "%d pesan diterjemahkan" -#: src/msgfmt.c:604 -#, fuzzy, c-format +#: src/msgfmt.c:625 +#, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d terjemahan fuzzy" +msgstr[1] ", %d terjemahan fuzzy" -#: src/msgfmt.c:609 -#, fuzzy, c-format +#: src/msgfmt.c:630 +#, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d pesan belum diterjemahkan" +msgstr[1] ", %d pesan belum diterjemahkan" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] nama-berkas.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" -msgstr "" +msgstr "Hasilkan katalog pesan binari dari deskripsi tekstual terjemahan.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" +"Argumen wajib ke pilihan panjang juga wajib untuk pilihan pendek juga.\n" +"Sama untuk opsional argumen.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" -msgstr "" +msgstr " nama-berkas.po ... berkas masukan\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" -msgstr "" +msgstr "Mode operasi:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" +" -j, --java Mode: java menghasilkan sebuah class Java " +"ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" +" --java2 seperti --java, dan asumsikan Java2 (JDK 1.2 " +"atau lebih tinggi)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" +" --csharp C# mode: hasilkan sebuah berkas .dll .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" +" --csharp-resources mode resources C#: hasilkan sbeuah berkas ." +"resources .NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" -msgstr "" +msgstr " --tcl mode Tcl: hasilkan sebuah .tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" -msgstr "" +msgstr " --qt mode Qt: hasilkan sebuah berkas Qt .qm\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" -msgstr "" +msgstr " --strict aktifkan mode strict Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" -msgstr "" +msgstr "Jika keluaran berkas adalah -, keluaran ditulis ke standar keluaran.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" -msgstr "" +msgstr "Lokasi berkas keluaran dalam mode Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" -msgstr "" +msgstr " -r, --resource=RESOURCE nama resource\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" +" -l, --locale=LOKAL nama lokal, baik bahasa atau bahasa_NEGARA\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" +" -d DIREKTORI basis direktori dari struktur direktori kelas\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1753,194 +1909,229 @@ "separated with an underscore. The -d option is mandatory. The class is\n" "written under the specified directory.\n" msgstr "" +"Nama kelas ditentukan dengan cara menambahkan nama lokal ke nama resource,\n" +"dipisahkan dengan sebuah garis bawah. Pilihan -d wajib. Kelas ditulis " +"dibawah\n" +"direktoris yang dispesifikasikan.\n" -#: src/msgfmt.c:690 -#, fuzzy, c-format +#: src/msgfmt.c:711 +#, c-format msgid "Output file location in C# mode:\n" -msgstr "tidak diberikan file input" +msgstr "Lokasi keluaran berkas dalam mode C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" +" -d DIREKTORI basis direktori untuk lokal dependen berkas ." +"dll\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" +"Pilihan -l dan -d wajib. Berkas .dll ditulis dalam sebuah subdirektori\n" +"dari direktori yang dispesifikasikan yang namanya tergantung dari lokal.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" -msgstr "" +msgstr "Lokasi keluaran berkas dalam mode Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" +" -d DIREKTORI basis direktori dari katalog pesan .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" +"Pilihan -l dan -d wajib. Berkas .msg ditulis dalam direktori yang " +"dispesifikasikan.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" -msgstr "" +msgstr "Interpretasi masukan berkas:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" " --check-format, --check-header, --check-" "domain\n" msgstr "" +" -c, --check lakukan seluruh pemeriksaan mengimplikasikan " +"oleh\n" +" --check-format, --check-header, --check-" +"domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" +" --check-format periksa format string tergantung bahasa\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" +" --check-header verifikasi keberadaan dan isi dari masukan " +"header\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" +" --check-domain periksa untuk konflik diantara direktif " +"domain\n" +" dan pilihan --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" +" -C, --check-compatibility periksa GNU msgfmt berlaku seperti X/Open " +"msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " "for\n" " menu items\n" msgstr "" +" --check-accelerators[=CHAR] periksa keberadaan dari akselerator\n" +" keyboard untuk item menu\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" -msgstr "" +msgstr " -f, --use-fuzzy gunakan masukan fuzzy dalam keluaran\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" +" -a, --alignment=JUMLAH align string ke JUMLAH bytes (baku: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" +" --no-hash berkas binari tidak akan dimasukan dalam tabel " +"hash\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" +" --statistics tampilkan statistik mengenai terjemahan\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" -msgstr "" +msgstr " -v, --verbose naikan tingkat keramaian\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" -msgstr "" +msgstr "peringatan: header berkas PO hilang atau tidak valid\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" -msgstr "" +msgstr "peringatan: konversi set karakter tidak akan bekerja\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" -msgstr "" +msgstr "peringatan: header berkas PO fuzzy\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" +"peringatan: versi lebih lama dari msgfmt akan memberikan sebuah error " +"disini\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" -msgstr "nama domain \"%s\" tidak sesuai dengan nama file" +msgstr "nama domain \"%s\" tidak sesuai dengan nama berkas" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" -"nama domain \"%s\" tidak sesuai dengan nama file: akan menggunakan prefix" +"nama domain \"%s\" tidak sesuai dengan nama berkas: akan menggunakan prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" -msgstr "direktiv `domain %s' diabaikan" +msgstr "direktif `domain %s' diabaikan" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "masukan `msgstr' kosong diabaikan" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "masukan fuzzy `msgstr' diabaikan" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" -msgstr "%s: peringatan: file source mengandung terjemahan fuzzy" +msgstr "%s: peringatan: berkas sumber mengandung terjemahan fuzzy" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "kesalahan ketika membaca \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" +"pilihan '%c' tidak dapat digunakan sebelum 'J' atau 'K' atau 'T' atau 'C' " +"atau 'X' telah dispesifikasikan" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" +"Ekstrak seluruh pesan dari sebuah katalog terjemahan yang cocok dengan pola\n" +"yang diberikan atau milik dari beberapa berkas sumber yang diberikan.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1979,111 +2170,171 @@ " -v, --invert-match output only the messages that do not match any\n" " selection criterion\n" msgstr "" +"Pemilihan pesan:\n" +" [-N BERKAS SUMBER]... [-M NAMA DOMAIN]...\n" +" [-J POLA-MSGCTXT] [-K POLA-MSGID] [-T POLA-MSGSTR]\n" +" [-C POLA-KOMENTAR] [-X POLA-KOMENTAR-TEREKSTRAK]\n" +"Sebuah pesan dipilih jika itu berasal dari salah satu sumber berkas yang dispesifikasikan,\n" +"atau jika ini berasal dari salah satu domain yang dispesifikasikan,\n" +"atau jika -J diberikan dan konteksnya (msgctxt) cocok POLA-MSGCTXT,\n" +"atau jika -K diberikan dan kuncinya (msgid atau msgid_plural) cocok POLA-MSGID,\n" +"atau jika -T diberikan dan terjemahannya (msgstr) cocok POLA-MSGSTR,\n" +"atau jika -C diberikan dan komentar penerjemahnya cocok POLA-KOMENTAR,\n" +"atau jika -X diberikan dan komentar terekstraks cocok POLA-KOMENTAR-TEREKSTRAK.\n" +"\n" +"Ketika lebih dari satu kriteria pemilihan dispesifikasikan, set dari pesan\n" +"yang dipilih adalah gabungan dari pemilihan pesan dari setiap kriteria.\n" +"\n" +"POLA-MSGCTXT atau POLA-MSGID atau POLA-MSGSTR atau POLA-KOMENTAR atau\n" +"POLA-KOMENTAR-TEREKSTRAK sintaks:\n" +" [-E | -F] [-e POLA | -f BERKAS]...\n" +"POLA adalah ekspresi regular dasar secara baku atau ekspresi regular\n" +"ekstensi jika -E diberikan, atau string tetap jika -F diberikan.\n" +"\n" +" -N, --location=SOURCEFILE pilih pesan yang terekstraks dari BERKAS SUMBER\n" +" -M, --domain=DOMAINNAME pilih pesan yang berasal dari domain NAMA DOMAIN\n" +" -J, --msgctxt awal dari pola untuk msgctxt\n" +" -K, --msgid awal dari pola untuk msgid\n" +" -T, --msgstr awal dari pola untuk msgstr\n" +" -C, --comment awal dari pola untuk komentar penerjemah\n" +" -X, --extracted-comment awal dari pola untuk komentar terekstrak\n" +" -E, --extended-regexp POLA adalah sebuah ekspresi regular ekstensi\n" +" -F, --fixed-strings POLA adalah sebuah set string dipisahkan baris baru\n" +" -e, --regexp=PATTERN gunakan POLA sebagai sebuah ekspresi regular\n" +" -f, --file=FILE dapatkan POLA dari BERKAS\n" +" -i, --ignore-case abaikan perbedaan besar huruf\n" +" -v, --invert-match keluarkan hanya pesan yang tidak cocok dengan\n" +" kriteria pemilihan apapun\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" +" --escape gunakan C escapes dalam keluaran, tidak ada " +"karakter ekstensi\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" -msgstr "" +msgstr " --sort-output hasilkan keluaran terurut\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" +" --sort-by-file urutkan keluaran berdasarkan lokasi berkas\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" +"Anda berada dalam sebuah bahasa yang berbeda dengan lingkungan. Mohon set\n" +"variabel lingkungan LANG anda, seperti dijelaskan dalam berkas ABOUT-NLS.\n" +"Ini diperlukan sehingga anda dapat memeriksa terjemahan anda.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" "Please specify the locale through the --locale option or\n" "the output .po file through the --output-file option.\n" msgstr "" +"Berkas keluaran %s telah ada.\n" +"Mohon spesifikasikan lokal melalui pilihan --locale atau\n" +"berkas keluaran .po melalui pilihan --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" -msgstr "" +msgstr "Dibuat %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" +"Dibuat sebuah berkas PO baru, menginisialisasi informasi meta dengan nilai\n" +"lingkungan pengguna.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" -msgstr "" +msgstr " -i, --input=BERKAS MASUKAN berkas masukan POT\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " "file.\n" "If it is -, standard input is read.\n" msgstr "" +"Jika tidak ada berkas masukan yang diberikan, direktori sekarang dicari " +"untuk\n" +"berkas POT. Jika ini adalah -, standar masukan dibaca.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" +" -o, --output-file=BERKAS tulis keluaran ke berkas PO yang " +"dispesifikasikan\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" +"Jika tidak ada berkas keluaran yang diberikan, ini tergantung dari pilihan\n" +"--locale atau konfigurasi lokal pengguna. Jika ini adalah -, hasil akan\n" +"ditulis ke standar keluaran.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" -msgstr "" +msgstr " -l, --locale=LL_CC set target lokal\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" +" --no-translator asumsikan berkas PO secara otomatis " +"dihasilkan\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" +"Ditemukan lebih dari satu berkas .pot.\n" +"Mohon spesifikasikan berkas masukan .pot melalui pilihan --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" -msgstr "" +msgstr "error membaca direktori disini" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" +"Tidak ditemukan berkas .pot dalam direktori ini.\n" +"Mohon spesifikasikan berkas masukan .pot melalui pilihan --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" -msgstr "" +msgstr "%s subproses gagal dengan kode keluar %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2091,58 +2342,70 @@ "contact\n" "you in case of unexpected technical problems.\n" msgstr "" +"Pesan katalog barus seharusnya berisi alamat surat elektronik anda, jadi\n" +"pengguna dapat memberikan umpan balik mengenai terjemahan, dan juga\n" +"pengelola dapat menghubungi anda jika ada masalah teknis yang tidak " +"terduga.\n" #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" -msgstr "" +msgstr "Terjemahan bahasa inggris untuk paket %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" +"set karakter saat ini \"%s\" bukan sebuah nama pengkodean yang portabel" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" -msgstr "" +msgstr "dua set karakter berbeda \"%s\" dan \"%s\" dalam berkas masukan" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" +"berkas masukan `%s' tidak berisi sebuah masukan header dengan sebuah " +"spesifikasi set karakter" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" +"domain \"%s\" dalam berkas masukan `%s' tidak berisi sebuah masukan header " +"dengan sebuah spesifikasi set karakter" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." -msgstr "" +msgstr "target set karakter \"%s\" bukan sebuah nama pengkodean yang portabel." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " -msgstr "" +msgstr "peringatan: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" +"Berkas masukan berisi pesan dalam pengkodean yang berbeda, UTF-8 diantara " +"lain.\n" +"Mengubah keluaran ke UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2150,8 +2413,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" +"Berkas masukan berisi pesan dalam pengkodean berbeda, %s dan %s diantara " +"yang lain.\n" +"Mengubah keluaran ke UTF-8.\n" +"Pilih sebuah keluaran pengkodean berbeda, gunakan pilihan --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2159,8 +2426,13 @@ "Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" +"Konversi dari berkas %s dari pengkodean %s ke pengkodean %s\n" +"ubah beberapa msgids dari msgctxts.\n" +"Baik ubah seluruh msgids dan msgctxts untuk menjadi ASCII murni, atau\n" +"pastikan mereka dalam pengkodean UTF-8 sejak awal, jadi telah berada dalam.\n" +"berkas sumber kode anda.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2168,21 +2440,28 @@ "Output of '%s' might be incorrect.\n" "Possible workarounds are:\n" msgstr "" +"Set karakter lokal \"%s\" berbeda dari\n" +"set karakter berkas masukan \"%s\".\n" +"Keluaran dari '%s' mungkin tidak benar.\n" +"Solusi yang memungkinkan diantaranya:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" -msgstr "" +msgstr "- Set LC_ALL ke sebuah lokal dengan pengkodean %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" +"- Ubah katalog terjemahan ke %s menggunakan 'msgconv',\n" +" kemudian aplikasikan '%s,\n" +" kemudian konversi kembali ke %s menggunakan 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2190,200 +2469,218 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" +"- Set LC_ALL ke sebuah lokal dengan pengkodean %s,\n" +" ubah katalog terjemahan ke %s menggunakan 'msgconv',\n" +" kemudian aplikasikan '%s,\n" +" kemudian konversikan kembali ke %s menggunakan 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" "Output of '%s' might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" msgstr "" +"Set karakter lokal \"%s\" bukan sebuah nama pengkodean yang portabel.\n" +"Keluaran dari '%s' mungkin tidak benar.\n" +"Solusi yang memungkinkan adalah menset LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" -msgstr "" +msgstr "ekspresi plural dapan menghasilkan nilai minus" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" +"nplurals = %lu tetapi ekspresi plural dapan menghasilkan nilai besar sebesar " +"%lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" -msgstr "" +msgstr "ekspresi plural dapan menghasilkan pembagian dengan nol" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" -msgstr "" +msgstr "ekspresi plural dapat menghasilkan integer overflow" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" +"ekspresi plural dapat menghasilkan eksepsi aritmetik, kemungkinan pembagian " +"dengan nol" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" -msgstr "" +msgstr "Coba gunakan berikut, valid untuk %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" -msgstr "" +msgstr "katalog pesan memiliki bentuk terjemahan plural" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" -msgstr "" +msgstr "tetapi masukan header kurang sebuah atribut \"plural=EKSPRESI\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" -msgstr "" +msgstr "tetapi masukan header kurang sebuah atribut \"plurals=BILANGAN BULAT\"" -#: src/msgl-check.c:338 -#, fuzzy +#: src/msgl-check.c:414 msgid "invalid nplurals value" -msgstr "urutan kendali ilegal" +msgstr "nilai nplurals tidak valid" -#: src/msgl-check.c:360 -#, fuzzy +#: src/msgl-check.c:436 msgid "invalid plural expression" -msgstr "urutan kendali ilegal" +msgstr "ekspresi plural tidak valid" -#: src/msgl-check.c:390 src/msgl-check.c:406 -#, fuzzy, c-format +#: src/msgl-check.c:466 src/msgl-check.c:482 +#, c-format msgid "nplurals = %lu" -msgstr "urutan kendali ilegal" +msgstr "nplurals = %lu" -#: src/msgl-check.c:392 -#, fuzzy, c-format +#: src/msgl-check.c:468 +#, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "pesan ini digunakan tapi tidak didefinisikan dalam %s" -msgstr[1] "pesan ini digunakan tapi tidak didefinisikan dalam %s" +msgstr[0] "tetapi beberapa pesan hanya memiliki bentuk %lu plural" +msgstr[1] "tetapi beberapa pesan hanya memiliki bentuk %lu plural" -#: src/msgl-check.c:408 -#, fuzzy, c-format +#: src/msgl-check.c:484 +#, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "pesan ini digunakan tapi tidak didefinisikan dalam %s" -msgstr[1] "pesan ini digunakan tapi tidak didefinisikan dalam %s" +msgstr[0] "tetapi beberapa pesan memiliki bentuk %lu plural" +msgstr[1] "tetapi beberapa pesan memiliki bentuk %lu plural" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" +"katalog pesan memiliki bentuk terjemahan plural, tetapi kurang sebuah " +"masukan header dengan \"Plural-Forms: nplurals=BILANG BULAT; plural=EKSPRESI;" +"\"" -#: src/msgl-check.c:526 -#, fuzzy +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak dimulai dengan '\\n'" +msgstr "masukan `msgid' dan `msgid_plural' keduanya tidak dimulai dengan '\\n'" -#: src/msgl-check.c:534 -#, fuzzy, c-format +#: src/msgl-check.c:610 +#, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak dimulai dengan '\\n'" +msgstr "masukan `msgid' dan `msgstr[%u]' keduanya tidak dimulai dengan '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak dimulai dengan '\\n'" +msgstr "masukan `msgid' dan `msgstr' keduanya tidak dimulai dengan '\\n'" -#: src/msgl-check.c:567 -#, fuzzy +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak diakhiri dengan '\\n'" +msgstr "" +"masukan `msgid' dan `msgid_plural' keduanya tidak diakhiri dengan '\\n'" -#: src/msgl-check.c:575 -#, fuzzy, c-format +#: src/msgl-check.c:651 +#, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak diakhiri dengan '\\n'" +msgstr "masukan `msgid' dan `msgstr[%u]' keduanya tidak diakhiri dengan '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" -msgstr "masukan `msgid' dan `msgstr' tidak diakhiri dengan '\\n'" +msgstr "masukan `msgid' dan `msgstr' keduanya tidak diakhiri dengan '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" -msgstr "" +msgstr "penanganan plural adalah sebuah ekstensi GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" -msgstr "" +msgstr "msgstr kuran tanda akselerasi keyboard '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" -msgstr "" +msgstr "msgstr memiliki terlalu banyak tanda akselerasi keyboard '%c'" -#: src/msgl-check.c:695 -#, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "headerfield `%s' tidak ada dalam header" +#: src/msgl-check.c:776 +#, c-format +msgid "header field `%s' missing in header\n" +msgstr "header field `%s' hilang dalam header\n" -#: src/msgl-check.c:703 -#, fuzzy, c-format +#: src/msgl-check.c:784 +#, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr "header field `%s' harus dimulai di awal baris" +msgstr "header field `%s' seharusnya dimulai di awal baris\n" -#: src/msgl-check.c:717 -#, fuzzy +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" -msgstr "beberapa field header masih memiliki nilai baku awal" +msgstr "beberapa field header masih memiliki nilai baku awal\n" -#: src/msgl-check.c:730 -#, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "field `%s' masih memiliki nilai baku awal" +#: src/msgl-check.c:826 +#, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "beberapa field header `%s' masih memiliki nilai baku awal\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" -msgstr "" +msgstr "%s: masukan tidak valid dalam pengkodean \"%s\"" -#: src/msgl-iconv.c:68 -#, fuzzy, c-format +#: src/msgl-iconv.c:69 +#, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "kesalahan saat membuka \"%s\" untuk dibaca" +msgstr "%s: error ketika mengubah dari pengkodean \"%s\" ke pengkodean \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" +"berkas masukan tidak berisi sebuah masukan header dengan sebuah spesifikasi " +"set karakter" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" +"Tidak dapat mengubah dari \"%s\" ke \"%s\". %s mengandalkan iconv(), dan " +"iconv() tidak mendukung konversi ini." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" +"Pengubahan dari \"%s\" ke \"%s\" menghadirkan duplikasi: beberapa msgids " +"berbeda menjadi sama." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" +"Tidak dapat mengubah dari \"%s\" ke \"%s\". %s mengandalkan iconv(). Versi " +"ini dibuat tanpa iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" -msgstr "" +msgstr "%s hanya valid dengan %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" -msgstr "" +msgstr "tipe backup" -#: src/msgmerge.c:458 -#, fuzzy, c-format, no-wrap +#: src/msgmerge.c:485 +#, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" "existing PO file with translations which will be taken over to the newly\n" @@ -2395,61 +2692,65 @@ "comments and file positions will be preserved. Where an exact match\n" "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -"\n" -"Gabungkan dua file .po bergaya Uniforum. File def.po adalah file PO dengan\n" -"terjemahan terdahulu yang akan digantikan oleh file yang baru tercipta selama\n" +"Gabungkan dua berkas .po bergaya Uniforum. File def.po adalah berkas PO dengan\n" +"terjemahan terdahulu yang akan digantikan oleh berkas yang baru tercipta selama\n" "mereka masih sesuai; komentar akan disimpan, tetapi komentar ekstrak dan posisi\n" -"file akan dihapus. File ref.po adalah file PO terakhir (biasa dibuat oleh\n" -"xgettext), terjemahan atau komentar dalam file akan dihapus, namun komentar\n" -"titik dan posisi file akan disimpan. Ketika tidak ditemukan kecocokan, \n" +"berkas akan dihapus. File ref.po adalah berkas PO terakhir (biasa dibuat oleh\n" +"xgettext), terjemahan atau komentar dalam berkas akan dihapus, namun komentar\n" +"titik dan posisi berkas akan disimpan. Ketika tidak ditemukan kecocokan, \n" "digunakan fuzzy matching untuk memberi hasil yang lebih baik. Hasilnya ditulis\n" -"ke stdout kecuali diberikan sebuah output file.\n" +"ke stdout kecuali diberikan sebuah output berkas.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" +" def.po terjemahan mereferensikan ke sumber lama\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" -msgstr "" +msgstr " ref.pot referensi ke sumber baru\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" +" -C, --compendium=BERKAS perpustakaan tambahan dari pesan terjemahan,\n" +" mungkin dispesifikasikan lebih dari sekali.\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" +" -U, --update perbarui def.po,\n" +" jangan lakukan apapun jika def.po telah baru\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" -msgstr "" +msgstr "Lokasi berkas keluaran dalam mode perbarui:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" -msgstr "" +msgstr "Hasil ditulis kembali ke def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" -msgstr "" +msgstr " --backup=KONTROL buat sebuah backup dari def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" -msgstr "" +msgstr " --suffix=AKHIRAN override akhiran backup biasa\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2460,147 +2761,172 @@ " existing, nil numbered if numbered backups exist, simple otherwise\n" " simple, never always make simple backups\n" msgstr "" +"Metode kontrol versi dapat dipilih melalui pilihan --backup atau melalui\n" +"variabel lingkungan VERSION_CONTROL. Disini adalah nilai nilainya:\n" +" none,off tidak pernah membuah backup (bahkan jika --backup " +"diberikan)\n" +" numbered, t buat backup bernomor\n" +" existing, nil bernomor jika backup bernomor ada, sederhana jika tidak " +"ada\n" +" simple, never selalu membuat backup sederhana\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" +"Akhiran backup adalah `~', kecuali diset dengan --suffix atau " +"SIMPLE_BACKUP_SUFFIX\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" +" --previous simpan msgids sebelumnya dari pesan yang " +"diterjemahkan\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" -msgstr "" +msgstr " -q, --quiet, --silent tekan indikator perkembangan\n" -#: src/msgmerge.c:1340 -#, fuzzy, c-format +#: src/msgmerge.c:1604 +#, c-format msgid "this message should define plural forms" -msgstr "pesan ini digunakan tapi tidak didefinisikan dalam %s" +msgstr "pesan ini seharusnya mendefinisikan bentuk plural" -#: src/msgmerge.c:1363 -#, fuzzy, c-format +#: src/msgmerge.c:1627 +#, c-format msgid "this message should not define plural forms" -msgstr "pesan ini digunakan tapi tidak didefinisikan dalam %s" +msgstr "pesan ini seharusnya tidak mendefinisikan bentuk plural" -#: src/msgmerge.c:1701 -#, fuzzy, c-format +#: src/msgmerge.c:2030 +#, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sMembaca %d lama + %d referensi, digabung %d, fuzzy %d, hilang %d, kuno %" -"d.\n" +"%sMembaca %ld lama + %ld referensi, digabung %ld, fuzzy %ld, hilang %ld, " +"sudah ditinggalkan %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " selesai.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 -#, fuzzy, c-format +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 +#, c-format msgid "%s and explicit file names are mutually exclusive" -msgstr "%s dan %s adalah mutually exclusive" +msgstr "%s dan nama berkas eksplisit adalah mutually exclusive" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] [BERKAS]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" -msgstr "" +msgstr "Konversikan katalog pesan binari ke gaya berkas .po Uniforum\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" +" -j, --java Mode java: masukan adalah sebuah Java " +"ResourceBundle class\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" +" --csharp mode C#: masukan adalah sebuah berkas .dll ." +"NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" +" --csharp-resources mode resources C#: masukan adalah sebuah " +"berkas .resources .NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" +" --tcl mode Tcl: masukan adalah sebuah berkas .msg " +"tcl/msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" -msgstr "" +msgstr " BERKAS ... berkas masukan .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" -msgstr "" +msgstr "Lokasi berkas masukan dalam mode Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " "name,\n" "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" +"Nama kelas ditentukan dengan menambahkan nama lokal ke nama resource,\n" +"dipisahkan dengan sebuah garis bawah. Kelas ditempatkan menggunakan " +"CLASSPATH.\n" -#: src/msgunfmt.c:455 -#, fuzzy, c-format +#: src/msgunfmt.c:467 +#, c-format msgid "Input file location in C# mode:\n" -msgstr "tidak diberikan file input" +msgstr "Lokasi berkas masukan dalam mode C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" +"Pilihan -l dan -d adalah wajib. Berkas .dll berada dalam sebuah " +"subdirektori\n" +"dari direktori yang dispesifikasikan yang namanya tergantung dari lokal.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" -msgstr "" +msgstr "Lokasi berkas masukan dalam mode Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" +"Pilihan -l dan -d adalah wajib. Berkas .msg berada dalam direktori yang\n" +"dispesifikasikan.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" -msgstr "" +msgstr " -i, --indent tulis keluaran gaya berindentasi\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" -msgstr "" +msgstr " --strict tulis gaya strict uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2612,23 +2938,32 @@ "specified, they will be taken from the first translation. File positions\n" "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" +"Gabungkan duplikasi terjemahan dalam sebuah katalog terjemahan.\n" +"Temukan duplikasi terjemahan dari ID pesan yang sama. Duplikasi seperti itu\n" +"bukan masukan valid untuk aplikasi lain seperti msgfmt, msgmerge, atau msgcat.\n" +"Secara baku, duplikasi digabungkan bersama. Ketika menggunakan pilihan --repeated,\n" +"hanya keluaran duplikasi, dan semua pesan lain diabaikan. Komentar dan komentar\n" +"yang terekstrak akan diakumulasikan, kecuali jika --use-first dispesifikasikan\n" +", mereka akan diambil dari terjemahan pertama. Posisi berkas akan dijaga.\n" +"Ketika menggunakan pilihan --unique, duplikasi diabaikan.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" -msgstr "" +msgstr " -d, --repeated tampilkan hanya duplikasi\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" +" -u, --unique tampilkan hanya pesan unik, abaikan duplikat\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" -msgstr "" +msgstr "" #: src/po-charset.c:489 #, c-format @@ -2636,6 +2971,8 @@ "Charset \"%s\" is not a portable encoding name.\n" "Message conversion to user's charset might not work.\n" msgstr "" +"Set karakter \"%s\" bukan sebuah nama pengkodean yang portabel.\n" +"Konversi pesan ke set karakter pengguna mungkin tidak bekerja.\n" #: src/po-charset.c:556 #, c-format @@ -2643,20 +2980,24 @@ "Charset \"%s\" is not supported. %s relies on iconv(),\n" "and iconv() does not support \"%s\".\n" msgstr "" +"Set karakter \"%s\" tidak didukung. %s tergantung pada iconv(),\n" +"dan iconv() tidak mendukung \"%s\".\n" #: src/po-charset.c:563 src/po-charset.c:611 msgid "" "Installing GNU libiconv and then reinstalling GNU gettext\n" "would fix this problem.\n" msgstr "" +"Memasang GNU libiconv dan memasang ulang GNU gettext mungkin akan\n" +"menyelesaikan masalah ini.\n" #: src/po-charset.c:577 src/po-charset.c:615 msgid "Continuing anyway, expect parse errors." -msgstr "" +msgstr "Tetap lanjutkan saja, diduga parse errors." #: src/po-charset.c:579 msgid "Continuing anyway." -msgstr "" +msgstr "Tetap lanjutkan saja." #: src/po-charset.c:606 #, c-format @@ -2664,27 +3005,31 @@ "Charset \"%s\" is not supported. %s relies on iconv().\n" "This version was built without iconv().\n" msgstr "" +"Set karakter \"%s\" tidak didukung. %s tergantung pada iconv().\n" +"Konversi ini dibuat tanpa iconv().\n" #: src/po-charset.c:643 msgid "" "Charset missing in header.\n" "Message conversion to user's charset will not work.\n" msgstr "" +"Set karakter hilang dalam header.\n" +"Pesan konversi ke set karakter pengguna tidak akan bekerja.\n" #: src/po-gram-gen.y:93 #, c-format msgid "inconsistent use of #~" -msgstr "" +msgstr "penggunaan tidak konsisten dari #~" #: src/po-gram-gen.y:240 -#, fuzzy, c-format +#, c-format msgid "missing `msgstr[]' section" -msgstr "bagian `msgstr' hilang" +msgstr "bagian `msgstr[]' hilang" #: src/po-gram-gen.y:249 -#, fuzzy, c-format +#, c-format msgid "missing `msgid_plural' section" -msgstr "bagian `msgstr' hilang" +msgstr "bagian `msgid_plural' hilang" #: src/po-gram-gen.y:257 #, c-format @@ -2694,130 +3039,123 @@ #: src/po-gram-gen.y:396 #, c-format msgid "first plural form has nonzero index" -msgstr "" +msgstr "bentuk plural pertama memiliki indeks bukan nol" #: src/po-gram-gen.y:398 #, c-format msgid "plural form has wrong index" -msgstr "" +msgstr "bentuk plural memiliki indeks salah" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" -msgstr "terlalu banyak kesalahan, dibatalkan" +msgstr "terlalu banyak kesalahan, membatalkan" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 -#, fuzzy, c-format +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 +#, c-format msgid "invalid multibyte sequence" -msgstr "urutan kendali ilegal" +msgstr "urutan multibyte tidak valid" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" -msgstr "" +msgstr "urutan multibyte tidak lengkap di akhir dari berkas" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" -msgstr "" +msgstr "urutan multibyte tidak lengkap di akhir dari baris" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" -msgstr "" +msgstr "iconv gagal" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "kata kunci \"%s\" tidak dikenal" -#: src/po-lex.c:855 -#, fuzzy, c-format +#: src/po-lex.c:854 +#, c-format msgid "invalid control sequence" -msgstr "urutan kendali ilegal" +msgstr "urutan kontrol tidak valid" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" -msgstr "end-of-file dalam string" +msgstr "akhir-dari-berkas dalam string" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" -msgstr "end-of-line dalam string" +msgstr "akhir-dari-baris dalam string" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" -msgstr "" +msgstr "konteks pemisah dalam string" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" -msgstr "file ini tidak boleh mengandung direktiv domain" +msgstr "berkas ini tidak boleh mengandung direktif domain" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" -msgstr "definisi pesan ganda" +msgstr "duplikasi definisi pesan" -#: src/read-catalog.c:374 -#, fuzzy +#: src/read-catalog.c:379 msgid "this is the location of the first definition" -msgstr "...ini adalah lokasi definisi pertama" +msgstr "ini adalah lokasi dari definisi pertama" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 -#, fuzzy, c-format +#, c-format msgid "file \"%s\" is truncated" -msgstr "file \"%s\" terpotong" +msgstr "berkas \"%s\" terpotong" #: src/read-mo.c:129 -#, fuzzy, c-format +#, c-format msgid "file \"%s\" contains a not NUL terminated string" -msgstr "file \"%s\" bukan dalam format GNU .mo" +msgstr "berkas \"%s\" berisi bukan sebuah string berakhir NULL" #: src/read-mo.c:165 src/read-mo.c:274 #, c-format msgid "file \"%s\" is not in GNU .mo format" -msgstr "file \"%s\" bukan dalam format GNU .mo" +msgstr "berkas \"%s\" bukan tidak berada dalam format GNU .mo" #: src/read-mo.c:178 -#, fuzzy, c-format +#, c-format msgid "file \"%s\" contains a not NUL terminated string, at %s" -msgstr "file \"%s\" bukan dalam format GNU .mo" +msgstr "berkas \"%s\" berisi bukan string berakhir NULL, di %s" #: src/read-properties.c:227 -#, fuzzy msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr "%s:%d: peringatan: karakter konstan yang unterminated" +msgstr "peringatan: sintaks tidak valid \\uxxxx untuk karakter Unicode" #: src/read-stringtable.c:802 -#, fuzzy msgid "warning: unterminated string" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "peringatan: string tidak terselesaikan" #: src/read-stringtable.c:810 -#, fuzzy msgid "warning: syntax error" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "peringatan: sintaks error" #: src/read-stringtable.c:871 src/read-stringtable.c:893 -#, fuzzy msgid "warning: unterminated key/value pair" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "peringatan: pasangan kunci/nilai tidak terselesaikan" #: src/read-stringtable.c:939 -#, fuzzy msgid "warning: syntax error, expected ';' after string" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "peringatan: sintaks error, diduga ';' setelah string" #: src/read-stringtable.c:948 -#, fuzzy msgid "warning: syntax error, expected '=' or ';' after string" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "peringatan: sintaks error, diduga '=' atau ';' setelah string" #: src/recode-sr-latin.c:116 -#, fuzzy, c-format +#, c-format msgid "Written by %s and %s.\n" -msgstr "Ditulis oleh %s.\n" +msgstr "Ditulis oleh %s dan %s.\n" #. TRANSLATORS: This is a proper name. The last name is #. (with Unicode escapes) "\u0160egan" or (with HTML entities) @@ -2825,12 +3163,12 @@ #. This is a proper name. See the gettext manual, section Names. #: src/recode-sr-latin.c:120 msgid "Danilo Segan" -msgstr "" +msgstr "Danilo Segan" #: src/recode-sr-latin.c:153 #, c-format, no-wrap msgid "Recode Serbian text from Cyrillic to Latin script.\n" -msgstr "" +msgstr "Recode teks Serbian dari Cyrillic ke Latin script.\n" #: src/recode-sr-latin.c:156 #, c-format, no-wrap @@ -2838,56 +3176,82 @@ "The input text is read from standard input. The converted text is output to\n" "standard output.\n" msgstr "" +"Teks masukan dibaca dari standar masukan. Teks terkonversi dikeluarkan ke\n" +"standar keluaran.\n" #: src/recode-sr-latin.c:338 #, c-format msgid "input is not valid in \"%s\" encoding" -msgstr "" +msgstr "masukan tidak berada dalam pengkodean \"%s\" yang valid" #: src/recode-sr-latin.c:366 -#, fuzzy, c-format +#, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "kesalahan saat membuka \"%s\" untuk dibaca" +msgstr "error ketika mengubah dari pengkodean \"%s\" ke pengkodean \"%s\"" -#: src/urlget.c:146 -#, fuzzy, c-format +#: src/urlget.c:159 +#, c-format msgid "expected two arguments" -msgstr "terlalu banyak argumen" +msgstr "diduga dua argumen" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" -msgstr "" +msgstr "Penggunaan: %s [PILIHAN] URL BERKAS\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" +"Ambil dan keluarkan isi dari sebuah URL. Jika URL tidak dapat diakses,\n" +"BERKAS lokal yang dapat diakses akan digunakan.\n" -#: src/urlget.c:219 -#, fuzzy, c-format +#: src/urlget.c:234 +#, c-format msgid "error writing stdout" -msgstr "kesalahan saat menulis file \"%s\"" +msgstr "error menulis stdout" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Mengambil %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " waktu habis.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " gagal.\n" #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" +"Tidak dapat mengeluarkan terjemahan multiple domain kedalam sebuah berkas " +"tunggal dengan format keluaran yang dispesifikasikan. Coba lebih baik " +"gunakan sintaks berkas PO." #: src/write-catalog.c:129 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." msgstr "" +"Tidak dapat mengeluarkan terjemahan multiple domain kedalam sebuah berkas " +"tunggal dengan format keluaran yang dispesifikasikan." #: src/write-catalog.c:162 msgid "" "message catalog has context dependent translations, but the output format " "does not support them." msgstr "" +"katalog pesan memiliki konteks tergantung terjemahan, tetapi format keluaran " +"tidak mendukungnya." #: src/write-catalog.c:197 msgid "" @@ -2895,64 +3259,69 @@ "support them. Try generating a Java class using \"msgfmt --java\", instead " "of a properties file." msgstr "" +"pesan katalog memiliki bentuk terjemahan plural, tetapi format keluaran " +"tidak mendukungnya. Coba buat sebuah class Java menggunakan \"msgfmt --java" +"\", daripada dari sebuah properti berkas." #: src/write-catalog.c:202 msgid "" "message catalog has plural form translations, but the output format does not " "support them." msgstr "" +"katalog pesan memiliki bentuk terjemahan plural, tetapi format keluaran " +"tidak mendukungnya." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr "tidak dapat membuat file output \"%s\"" +msgstr "tidak dapat membuat berkas output \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" -msgstr "standard output" +msgstr "standard keluaran" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" -msgstr "" +msgstr "gagal membuat direktori \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" -msgstr "" +msgstr "kompilasi dari kelas C# gagal, mohon coba --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" -msgstr "" +msgstr "kompilasi dari kelas C# gagal" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" -msgstr "" +msgstr "bukan sebuah nama kelas Java yang valid: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" -msgstr "" +msgstr "kompilasi dari kelas Java gagal, mohon coba --verbose atau set $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "" +msgstr "kompilasi dari kelas Java gagal, mohon coba set $JAVAC" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" -msgstr "kesalahan ketika membuka \"%s\" untuk ditulis" +msgstr "error ketika membuka \"%s\" untuk ditulis" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "Pesan internasionalisasi tidak boleh mengandung escape sequence `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2960,8 +3329,13 @@ "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" msgstr "" +"msgctxt berikut berisi karakter bukan-ASCII.\n" +"Ini akan menyebabkan masalah ke penerjemah yang menggunakan karakter " +"pengkodean\n" +"berbeda dengan anda. Pertimbangkan menggunakan sebuah msgctxt ASCII murni.\n" +"%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2969,20 +3343,30 @@ "different from yours. Consider using a pure ASCII msgid instead.\n" "%s\n" msgstr "" +"msgid berikut berisi karakter bukan-ASCII.\n" +"Ini akan menyebabkan masalah ke penerjemah yang menggunakan karakter " +"pengkodean\n" +"berbeda dengan anda. Pertimbangkan menggunakan sebuah msgid ASCII murni.\n" +"%s\n" #: src/write-qt.c:667 msgid "" "message catalog has plural form translations\n" "but the Qt message catalog format doesn't support plural handling\n" msgstr "" +"katalog pesan memiliki bentuk terjemahan plural\n" +"tetapi format pesan katalog Qt tidak mendukung penanganan plural\n" #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" +"katalog pesan memiliki string msgctxt berisi karakter diluar ISO-8859-1\n" +"tetapi format pesan katalog Qt hanya mendukung Unicode dalam string\n" +"terjemahan, bukan dalam konteks string\n" #: src/write-qt.c:717 msgid "" @@ -2990,294 +3374,349 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" +"katalog pesan memiliki msgid string berisi karakter diluar ISO-8859-1\n" +"tetapi format pesan katalog Qt hanya mendukung Unicode dalam string\n" +"terjemahan, bukan dalam string belum diterjemahkan\n" #: src/write-resources.c:94 -#, fuzzy, c-format +#, c-format msgid "error while writing to %s subprocess" -msgstr "kesalahan saat menulis file \"%s\"" +msgstr "error ketika menulis ke subproses %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" +"katalog pesan memiliki konteks tergantung terjemahan\n" +"tetapi format .resources C# tidak mendukung konteks\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" msgstr "" +"katalog pesan memiliki bentuk terjemahan plural\n" +"tetapi format .resources C# tidak mendukung penanganan plural\n" #: src/write-tcl.c:157 msgid "" "message catalog has context dependent translations\n" "but the Tcl message catalog format doesn't support contexts\n" msgstr "" +"katalog pesan memiliki konteks tergantung terjemahan\n" +"tetapi format pesan katalog Tcl tidak mendukung konteks\n" #: src/write-tcl.c:176 msgid "" "message catalog has plural form translations\n" "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" +"katalog pesan memiliki bentuk terjemahan plural\n" +"tetapi format katalog pesan Tcl tidak mendukung penanganan plural\n" -#: src/x-awk.c:342 src/x-python.c:1059 -#, fuzzy, c-format +#: src/x-awk.c:341 src/x-python.c:1074 +#, c-format msgid "%s:%d: warning: unterminated string" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "%s:%d: peringatan: string tidak terselesaikan" -#: src/x-awk.c:593 -#, fuzzy, c-format +#: src/x-awk.c:592 +#, c-format msgid "%s:%d: warning: unterminated regular expression" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "%s:%d: peringatan: ekspresi biasa tidak terselesaikan" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: peringatan: karakter konstan yang unterminated" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: peringatan: string literal yang unterminated" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Mohon spesifikasikan sumber pengkodean melalui --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" +"%s:%d: urutan multibyte tidak valid.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" +"%s:%d: Urutan panjang multibyte tidak lengkap.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" +"%s:%d: Urutan multibyte tidak lengkap diakhir dari berkas.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" +"%s:%d: Urutan multibyte tidak lengkap diakhir dari baris.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" -msgstr "" +msgstr "%s:%d: iconv gagal" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" +"%s:%d: Urutan multibyte tidak valid.\n" +"Mohon spesifikasikan sumber pengkodean melalui --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 -#, fuzzy, c-format +#: src/x-csharp.c:1390 src/x-python.c:1281 +#, c-format msgid "%s:%d: warning: invalid Unicode character" -msgstr "%s:%d: peringatan: karakter konstan yang unterminated" +msgstr "%s:%d: peringatan: karakter Unicode tidak valid" -#: src/x-csharp.c:1509 src/x-java.c:872 -#, fuzzy, c-format +#: src/x-csharp.c:1512 src/x-java.c:875 +#, c-format msgid "%s:%d: warning: unterminated string constant" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "%s:%d: peringatan: konstanta string tidak terselesaikan" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" -msgstr "" +msgstr "%s:%d: peringatan: ')' ditemukan dimana '}' diduga" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" -msgstr "" +msgstr "%s:%d: peringatan: '}' ditemukan dimana ')' diduga" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" -msgstr "" +msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" +"Bahasa \"glade\" tidak didukung. %s tergantung di expat.\n" +"Versi ini dibuat tanpa expat.\n" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "%s:%d: peringatan: surrogate U+%04X sendiri" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" +"%s:%d: tidak dapat menemukan pengakhir string \"%s\" dimanapun sebelum EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" -msgstr "" +msgstr "%s:%d: hilan kurung kanan di \\x{ANGKA HEKSA}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" -msgstr "" +msgstr "%s:%d: interpolasi tidak valid (\"\\l\") dari karakter 8bit \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" -msgstr "" +msgstr "%s:%d: interpolasi tidak valid (\"\\u\") dari karakter 8bit \"%c\"" -#: src/x-perl.c:1212 -#, fuzzy, c-format +#: src/x-perl.c:1217 +#, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" -msgstr "%s: pilihan tidak valid -- %c\n" +msgstr "%s:%d: variabel interpolasi tidak valid di \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" -msgstr "" +msgstr "%s:%d: interpolasi tidak valid (\"\\L\") dari karakter 8bit \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" -msgstr "" +msgstr "%s:%d: interpolasi tidak valid (\"\\U\") dari karakter 8bit \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"Mohon spesifikasikan sumber pengkodean melalui --from-code atau melalui " +"sebuah komentar\n" +"seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"%s:%d: Urutan multibyte tidak valid.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code atau " +"melalui sebuah\n" +"komentar seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263." +"html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"%s:%d: Urutan panjang multibyte tidak lengkap.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code atau " +"melalui sebuah\n" +"komentar seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263." +"html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"%s:%d: Urutan multibyte tidak lengkap diakhir dari berkas.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code atau " +"melalui sebuah\n" +"komentar seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263." +"html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"%s:%d: Urutan multibyte tidak lengkap di akhir dari baris.\n" +"Mohon spesifikasikan sumber pengkodean yang benar melalui --from-code atau " +"melalui sebuah\n" +"komentar seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263." +"html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" +"%s:%d: Urutan multibyte tidak valid.\n" +"Mohon spesifikasikan sumber pengkodean melalui --from-code atau melalui " +"sebuah komentar\n" +"seperti dispesifikasikan dalam http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." -msgstr "" +msgstr "Pengkodean \"%s\" tidak dikenal. Lebih baik melanjutkan dengan ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" -msgstr "" +msgstr "%s:%d: definisi string tidak valid" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" -msgstr "" +msgstr "%s:%d: hilang angka setelah #" -#: src/x-rst.c:208 -#, fuzzy, c-format +#: src/x-rst.c:207 +#, c-format msgid "%s:%d: invalid string expression" -msgstr "%s:%d: peringatan: string literal yang unterminated" +msgstr "%s:%d: ekspresi string tidak valid" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" +"%s:%lu: peringatan: sintaks $\"...\" telah ditinggalkan karena alasan " +"keamanan; lebih baik gunakan eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--join-existing tidak dapat digunakan ketika output ditulis ke stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" -msgstr "" +msgstr "xgettext tidak dapat bekerja tanpa kata kunci untuk dicari" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" -msgstr "peringatan: file `%s' ekstensi `%s' tidak dikenal; dicoba C" +msgstr "peringatan: berkas `%s' ekstensi `%s' tidak dikenal; akan mencoba C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" +"Ekstrak string yang dapat diterjemahkan dari masukan berkas yang diberikan.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" +" -d, --default-domain=NAMA gunakan NAMA.po untuk keluaran (daripada " +"messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" +" -o, --output=BERKAS tulis keluaran ke berkas yang " +"dispesifikasikan\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" +" -p, --output-dir=DIR keluarkan berkas akan ditempatkan dalam " +"direktori DIR\n" -#: src/xgettext.c:798 -#, fuzzy, c-format +#: src/xgettext.c:852 +#, c-format msgid "Choice of input file language:\n" -msgstr "tidak diberikan file input" +msgstr "Pilihan dari masukan bahasa berkas:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3288,59 +3727,81 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" +" -L, --language=NAMA kenali bahasa yang dispesifikasikan\n" +" (C, C++, ObjectiveC, PO, Shell, Python, " +"Lisp,\n" +" EmacsLisp, librep, Scheme, Smalltalk, Java,\n" +" JavaProperties, C#, awk, YCP, Tcl, Perl, " +"PHP,\n" +" GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" -msgstr "" +msgstr " -C, --c++ kependekan untuk --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" +"Secara baku bahasa ditebak tergantung dari ekstensi masukan nama berkas.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" +" --from-code=NAMA pengkodean dari berkas masukan\n" +" (kecuali untuk Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" -msgstr "" +msgstr "Secara baku berkas masukan diasumsikan berada dalam ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" +" -j, --join-existing gabungkan pesan dengan berkas yang sudah ada\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" +" -x, --exclude-file=BERKAS.po masukan dari BERKAS.po tidak diekstraksi\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cTAG, --add-cooments=TAG tempatkan blok komentar diawali dengan TAG " +"dan\n" +" baris kata kunci yang mengawalinya dalam " +"berkas keluaran\n" +" -c, --add-cooments tempatkan semua blok komentar sebelum baris " +"kata kunci\n" +" dalam berkas keluaran\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" -msgstr "" +msgstr "Pilihan spesifik untuk bahasa:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" -msgstr "" +msgstr " -a, --extract-all ekstrak seluruh string\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3348,23 +3809,31 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" +" (hanya bahasa C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" +" -kKATA, --keyword=KATA cari untuk KATA sebagai kata kunci tambahan\n" +" -k, --keyword jangan gunakan untuk kata kunci baku\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " "argument\n" " number ARG of keyword WORD\n" msgstr "" +" --flag=WORD:ARG:FLAG simbol tambahan untuk string didalam argumen\n" +" nomor ARG dari kata kunci KATA\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3372,120 +3841,160 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" +" (hanya bahasa C, C++, ObjectiveC, Shell,\n" +" Python, Lisp, EmacsLisp, librep, Scheme, " +"Java,\n" +" C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" -msgstr "" +msgstr " -T, --trigraphs pahami ANSI C trigraphs untuk masukan\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" -msgstr "" +msgstr " (hanya bahasa C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" -msgstr "" +msgstr " --qt kenali format string Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" -msgstr "" +msgstr " (hanya bahasa C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr "" +msgstr " --kde kenali format string KDE 4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" -msgstr "" +msgstr " --boost kenali format string Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" +" --debug lebih detil hasil pengenalan format string\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" +" --properties-output tulis keluar sebuah berkas .properties Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" +" --copyright-holder=STRING set pemegang hak cipta dalam keluaran\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" +" --foreign-user abaikan FSF hak cipta dalam keluaran untuk " +"pengguna luar negri\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=PAKET set nama paket dalam keluaran\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr "" +msgstr " --package-version=VERSI set versi paket dalam keluaran\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" +" --msgid-bugs-address=EMAIL@ALAMAT set alamat laporan untuk msgid " +"bugs\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" +" -m[STRING], --msgstr-prefix[=STRING] gunakan STRING atau \"\" sebagai " +"awalan\n" +" untuk nilai msgstr\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" +" -M[STRING], --msgstr-suffix[=STRING] gunakan STRING atau \"\" sebagai " +"akhiran\n" +" untuk nilai msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" +"Sebuah argumen --flag tidak memiliki ::[pass-] " +"sintaks: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard input" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Karakter bukan-ASCII di %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Komentar bukan-ASCII di atau sebelum %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "String bukan-ASCII di %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " -msgstr "" +msgstr "%s%s: peringatan: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" +"Walaupun telah digunakan dalam sebuah posisi format string, %s bukan sebuah " +"format string %s valid. Karena: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" +"Walaupun dideklarasikan seperti itu, %s bukan sebuah format string %s yang " +"valid. Karena: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3493,50 +4002,87 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" msgstr "" +"'%s' format string dengan argumen tidak bernama tidak dapat secara benar " +"dilokalisasi:\n" +"Penerjemah tidak dapat mengurutkan argumen.\n" +"Mohon pertimbangkan menggunakan sebuah format string dengan argumen " +"bernama,\n" +"dan sebuah pemetaan daripada sebuah tuple untuk argumen.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" +"msgid kosong. Ini dijaga oleh GNU gettext:\n" +"gettext(\"\") mengembalikan masukan header dengan\n" +"informasi meta, bukan string kosong.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" -msgstr "" +msgstr "spesifikasi argumen ambigu untuk kata kunci '%.*s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" -msgstr "" +msgstr "peringatan: hilang konteks untuk kata kunci '%.*s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" -msgstr "" +msgstr "peringatan: hilang konteks untuk argumen plural dari kata kunci '%.*s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" -msgstr "" +msgstr "konteks tidak cocok diantara bentuk singular dan plural" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" "the MSGID_BUGS_ADDRESS variable there; otherwise please\n" "specify an --msgid-bugs-address command line option.\n" msgstr "" +"Pilihan --msgid-bugs-address tidak dispesifikasikan.\n" +"Jika anda menggunakan sebuah berkas `Makevars', mohon spesifikasikan\n" +"variabel MSGID_BUGS_ADDRESS disana; jika tidak mohon spesifikasikan\n" +"sebuah pilihan baris perintah --msgid-bugs-address.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "bahasa `%s' tidak dikenal" #: libgettextpo/gettext-po.c:84 msgid "" -msgstr "" +msgstr "" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: pilihan tidak legal -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle gagal dengan kode error 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Belum terimplementasi." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "tidak dapat mengkonfigurasikan nonblocking I/O ke %s subproses" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "komunikasi dengan %s subproses gagal" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "baca dari %s subproses gagal" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s subproses berakhir dengan kode keluar %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "field `%s' masih memiliki nilai baku awal\n" # ) #~ msgid "" @@ -3551,192 +4097,199 @@ #~ "ada\n" #~ "jaminan; bahkan untuk PENJUALAN atau KESESUAIAN UNTUK TUJUAN TERTENTU.\n" -#, fuzzy -#~ msgid "%s:%lu: warning: unterminated string" -#~ msgstr "%s:%d: peringatan: string literal yang unterminated" +#~ msgid "" +#~ "Usage: %s [OPTION] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" +#~ " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" +#~ " -e enable expansion of some escape sequences\n" +#~ " -E (ignored for compatibility)\n" +#~ " -h, --help display this help and exit\n" +#~ " -n suppress trailing newline\n" +#~ " -V, --version display version information and exit\n" +#~ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" +#~ " to MSGID from TEXTDOMAIN\n" +#~ msgstr "" +#~ "Pemakaian: %s [PILIHAN] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" +#~ " -d, --domain=TEXTDOMAIN mengambil pesan terjemahan dari TEXTDOMAIN\n" +#~ " -e memungkinkan ekspansi beberapa escape " +#~ "sequence\n" +#~ " -E (abaikan kompatibilitas)\n" +#~ " -h, --help tampilkan bantuan ini dan keluar\n" +#~ " -n hilangkan newline yang mengekor\n" +#~ " -V, --version tampilkan informasi versi dan keluar\n" +#~ " [TEXTDOMAIN] MSGID mengambil pesan terjemahan yang sesuai\n" +#~ " untuk MSGID dari TEXTDOMAIN\n" -#, fuzzy #~ msgid "" -#~ "Output details:\n" -#~ " -t, --to-code=NAME encoding for output\n" -#~ " --use-first use first available translation for " -#~ "each\n" -#~ " message, don't merge several " -#~ "translations\n" +#~ "\n" +#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " +#~ "the\n" +#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " +#~ "the\n" +#~ "regular directory, another location can be specified with the " +#~ "environment\n" +#~ "variable TEXTDOMAINDIR.\n" +#~ "When used with the -s option the program behaves like the `echo' " +#~ "command.\n" +#~ "But it does not simply copy its arguments to stdout. Instead those " +#~ "messages\n" +#~ "found in the selected catalog are translated.\n" +#~ "Standard search directory: %s\n" +#~ msgstr "" +#~ "\n" +#~ "Jika parameter TEXTDOMAIN tidak diberikan, domain ditentukan dari\n" +#~ "variabel lingkungan TEXTDOMAIN. Jika katalog pesan tidak ditemukan dalam\n" +#~ "direktori reguler, lokasi lain dapat dispesifikasikan dengan variabel \n" +#~ "lingkungan TEXTDOMAINDIR.\n" +#~ "Bila digunakan dengan pilihan -s program berlaku seperti perintah " +#~ "`echo'.\n" +#~ "Tetapi ia tidak hanya menyalin argumennya ke stdout. Namun pesan " +#~ "tersebut\n" +#~ "diterjemahkan.\n" +#~ "Direktori pencarian standar: %s\n" + +#~ msgid "this message has no definition in the \"%s\" domain" +#~ msgstr "pesan ini tidak memiliki definisi dalam domain \"%s\"" + +#~ msgid "while preparing output" +#~ msgstr "ketika mempersiapkan output" + +#~ msgid "" +#~ "Usage: %s [OPTION] INPUTFILE ...\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -d, --default-domain=NAME use NAME.po for output (instead of " +#~ "messages.po)\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" #~ " -e, --no-escape do not use C escapes in output " #~ "(default)\n" #~ " -E, --escape use C escapes in output, no extended " #~ "chars\n" +#~ " -f, --files-from=FILE get list of input files from FILE\n" #~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" #~ " -F, --sort-by-file sort output by file location\n" +#~ " -h, --help display this help and exit\n" #~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] def.po ref.po\n" -#~ "Argumen yang perlu untuk pilihan panjang juga diperlukan untuk pilihan " +#~ "Pemakaian: %s [PILIHAN] INPUTFILE ...\n" +#~ "Argumen yang wajib untuk pilihan panjang juga wajib untuk pilihan " #~ "pendek.\n" -#~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari input " -#~ "file\n" -#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" -#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " +#~ " -d, --default-domain=NAME gunakan NAME.po sebagai output (selain " +#~ "messages.po)\n" +#~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari file " +#~ "input\n" +#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" +#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " #~ "kar.\n" -#~ " --force-po tulis file PO bahkan bila kosong\n" -#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -i, --indent gaya output terindentasi\n" -#~ " -o, --output-file=FILE hasil ditulis ke FILE\n" -#~ " --no-location hapus baris '#: filename:line'\n" -#~ " --add-location simpan baris '#: filename:line' (baku)\n" -#~ " --strict gaya output strict Uniforum\n" -#~ " -v, --verbose tingkatkan level verbositas\n" -#~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " -w, --width=NUMBER set lebar halaman output\n" +#~ " -f, --files-from=FILE ambil daftar file input dari FILE\n" +#~ " --force-po tulis file PO bahkan bila kosong\n" +#~ " -F, --sort-by-file sort output berdasar lokasi file\n" +#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#, fuzzy #~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" #~ " -i, --indent write the .po file using indented style\n" #~ " --no-location do not write '#: filename:line' lines\n" #~ " -n, --add-location generate '#: filename:line' lines " #~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" #~ " --omit-header don't write header with `msgid \"\"' " #~ "entry\n" -#~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] def.po ref.po\n" -#~ "Argumen yang perlu untuk pilihan panjang juga diperlukan untuk pilihan " -#~ "pendek.\n" -#~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari input " +#~ " -o, --output=FILE write output to specified file\n" +#~ " -p, --output-dir=DIR output files will be placed in directory " +#~ "DIR\n" +#~ " -s, --sort-output generate sorted output and remove " +#~ "duplicates\n" +#~ " --strict write out strict Uniforum conforming .po " #~ "file\n" -#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" -#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " -#~ "kar.\n" -#~ " --force-po tulis file PO bahkan bila kosong\n" -#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -i, --indent gaya output terindentasi\n" -#~ " -o, --output-file=FILE hasil ditulis ke FILE\n" -#~ " --no-location hapus baris '#: filename:line'\n" -#~ " --add-location simpan baris '#: filename:line' (baku)\n" -#~ " --strict gaya output strict Uniforum\n" -#~ " -v, --verbose tingkatkan level verbositas\n" -#~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " -w, --width=NUMBER set lebar halaman output\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent indented output style\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" +#~ " -T, --trigraphs understand ANSI C trigraphs for input\n" +#~ " -u, --unique shorthand for --less-than=2, requests\n" +#~ " that only unique messages be printed\n" #~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] def.po ref.po\n" -#~ "Argumen yang perlu untuk pilihan panjang juga diperlukan untuk pilihan " -#~ "pendek.\n" -#~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari input " -#~ "file\n" -#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" -#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " -#~ "kar.\n" -#~ " --force-po tulis file PO bahkan bila kosong\n" -#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -i, --indent gaya output terindentasi\n" -#~ " -o, --output-file=FILE hasil ditulis ke FILE\n" -#~ " --no-location hapus baris '#: filename:line'\n" -#~ " --add-location simpan baris '#: filename:line' (baku)\n" -#~ " --strict gaya output strict Uniforum\n" -#~ " -v, --verbose tingkatkan level verbositas\n" -#~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " -w, --width=NUMBER set lebar halaman output\n" +#~ " -i, --indent tulis file .po menggunakan gaya indented\n" +#~ " --no-location jangan tulis baris '#: filename:line'\n" +#~ " -n, --add-location buat baris '#: filename:line' (baku)\n" +#~ " --omit-header jangan tulis header dengan masukan `msgid'\n" +#~ " -o, --output=FILE tulis output ke file yang diberikan\n" +#~ " -p, --output-dir=DIR file output akan diletakkan dalam direktori DIR\n" +#~ " -s, --sort-output buat output dalam bentuk terurut dan hapus " +#~ "duplikat\n" +#~ " --strict tulis file .po dalam bentuk Uniforum yang " +#~ "strict\n" +#~ " -T, --trigraphs kenali trigraph ANSI C sebagai input\n" +#~ " -u, --unique singkatan untuk --less-than=2, minta\n" +#~ " hanya pesan yang unik yang dicetak\n" -#, fuzzy #~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" -#~ " --keep-header keep header entry unmodified, don't filter " -#~ "it\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" +#~ "Usage: %s [OPTION] filename.po ...\n" +#~ "Generate binary message catalog from textual translation description.\n" +#~ "\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" +#~ " -c, --check perform language dependent checks on " +#~ "strings\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -f, --use-fuzzy use fuzzy entries in output\n" +#~ " -h, --help display this help and exit\n" +#~ " --no-hash binary file will not include the hash " +#~ "table\n" +#~ " -o, --output-file=FILE specify output file name as FILE\n" +#~ " --statistics print statistics about translations\n" +#~ " --strict enable strict Uniforum mode\n" +#~ " -v, --verbose list input file anomalies\n" +#~ " -V, --version output version information and exit\n" +#~ "\n" +#~ "Giving the -v option more than once increases the verbosity level.\n" +#~ "\n" +#~ "If input file is -, standard input is read. If output file is -,\n" +#~ "output is written to standard output.\n" #~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] def.po ref.po\n" -#~ "Argumen yang perlu untuk pilihan panjang juga diperlukan untuk pilihan " +#~ "Pemakaian: %s [PILIHAN] namafile.po ...\n" +#~ "Membuat katalog pesan biner dari deskripsi terjemahan tekstual.\n" +#~ "\n" +#~ "Argumen yang perlu untuk pilihan panjang juga perlu untuk pilihan " #~ "pendek.\n" +#~ " -a, --alignment=NUMBER ratakan string menjadi NUMBER byte (baku " +#~ "%d)\n" +#~ " -c, --check periksa ketergantungan bahasa pada string\n" #~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari input " #~ "file\n" -#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" -#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " -#~ "kar.\n" -#~ " --force-po tulis file PO bahkan bila kosong\n" +#~ " -f, --use-fuzzy gunakan masukkan fuzzy dalam output\n" #~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -i, --indent gaya output terindentasi\n" -#~ " -o, --output-file=FILE hasil ditulis ke FILE\n" -#~ " --no-location hapus baris '#: filename:line'\n" -#~ " --add-location simpan baris '#: filename:line' (baku)\n" -#~ " --strict gaya output strict Uniforum\n" -#~ " -v, --verbose tingkatkan level verbositas\n" +#~ " --no-hash file biner tidak akan mencakup tabel hash\n" +#~ " -o, --output-file=FILE file output dengan nama FILE\n" +#~ " --statistics cetak statistik tentang penerjemahan\n" +#~ " --strict mode strict Uniforum\n" +#~ " -v, --verbose tampilkan anomali file input\n" #~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " -w, --width=NUMBER set lebar halaman output\n" +#~ "\n" +#~ "Memberikan pilihan -v lebih dari satu meningkatkan level verbosity.\n" +#~ "\n" +#~ "Jika file input adalah -, dibaca dari stdin. Jika file output adalah -,\n" +#~ "output ditulis ke stdout.\n" + +#~ msgid "while creating hash table" +#~ msgstr "sementara membuat tabel hash" + +#~ msgid "%s: warning: no header entry found" +#~ msgstr "%s: peringatan: tidak ditemukan masukan header" -#, fuzzy #~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " --escape use C escapes in output, no extended chars\n" +#~ "Usage: %s [OPTION] def.po ref.po\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output (default)\n" +#~ " -E, --escape use C escapes in output, no extended chars\n" #~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" +#~ " -h, --help display this help and exit\n" +#~ " -i, --indent indented output style\n" +#~ " -o, --output-file=FILE result will be written to FILE\n" #~ " --no-location suppress '#: filename:line' lines\n" #~ " --add-location preserve '#: filename:line' lines " #~ "(default)\n" #~ " --strict strict Uniforum output style\n" +#~ " -v, --verbose increase verbosity level\n" +#~ " -V, --version output version information and exit\n" #~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " --sort-output generate sorted output\n" -#~ " --sort-by-file sort output by file location\n" #~ msgstr "" #~ "Pemakaian: %s [PILIHAN] def.po ref.po\n" #~ "Argumen yang perlu untuk pilihan panjang juga diperlukan untuk pilihan " @@ -3757,18 +4310,19 @@ #~ " -V, --version tampilkan informasi versi dan keluar\n" #~ " -w, --width=NUMBER set lebar halaman output\n" -#, fuzzy #~ msgid "" -#~ "Output details:\n" +#~ "Usage: %s [OPTION] [FILE]...\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" #~ " -e, --no-escape do not use C escapes in output (default)\n" #~ " -E, --escape use C escapes in output, no extended chars\n" #~ " --force-po write PO file even if empty\n" +#~ " -h, --help display this help and exit\n" #~ " -i, --indent write indented output style\n" +#~ " -o, --output-file=FILE write output into FILE instead of standard " +#~ "output\n" #~ " --strict write strict uniforum style\n" +#~ " -V, --version output version information and exit\n" #~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" #~ msgstr "" #~ "Pemakaian: %s [PILIHAN] [FILE]...\n" #~ "Argumen wajib untuk pilihan panjang juga wajib untuk pilihan pendek.\n" @@ -3783,134 +4337,106 @@ #~ " -V, --version tampilkan informasi versi dan keluar\n" #~ " -w, --width=NUMBER set lebar halaman output\n" -#, fuzzy -#~ msgid "" -#~ " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" -#~ " -e enable expansion of some escape sequences\n" -#~ " -E (ignored for compatibility)\n" -#~ " -h, --help display this help and exit\n" -#~ " -n suppress trailing newline\n" -#~ " -V, --version display version information and exit\n" -#~ " [TEXTDOMAIN] MSGID retrieve translated message corresponding\n" -#~ " to MSGID from TEXTDOMAIN\n" -#~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -#~ " -d, --domain=TEXTDOMAIN mengambil pesan terjemahan dari TEXTDOMAIN\n" -#~ " -e memungkinkan ekspansi beberapa escape " -#~ "sequence\n" -#~ " -E (abaikan kompatibilitas)\n" -#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -n hilangkan newline yang mengekor\n" -#~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " [TEXTDOMAIN] MSGID mengambil pesan terjemahan yang sesuai\n" -#~ " untuk MSGID dari TEXTDOMAIN\n" - -#, fuzzy #~ msgid "" -#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " -#~ "the\n" -#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " -#~ "the\n" -#~ "regular directory, another location can be specified with the " -#~ "environment\n" -#~ "variable TEXTDOMAINDIR.\n" -#~ "When used with the -s option the program behaves like the `echo' " -#~ "command.\n" -#~ "But it does not simply copy its arguments to stdout. Instead those " -#~ "messages\n" -#~ "found in the selected catalog are translated.\n" -#~ "Standard search directory: %s\n" -#~ msgstr "" #~ "\n" -#~ "Jika parameter TEXTDOMAIN tidak diberikan, domain ditentukan dari\n" -#~ "variabel lingkungan TEXTDOMAIN. Jika katalog pesan tidak ditemukan dalam\n" -#~ "direktori reguler, lokasi lain dapat dispesifikasikan dengan variabel \n" -#~ "lingkungan TEXTDOMAINDIR.\n" -#~ "Bila digunakan dengan pilihan -s program berlaku seperti perintah " -#~ "`echo'.\n" -#~ "Tetapi ia tidak hanya menyalin argumennya ke stdout. Namun pesan " -#~ "tersebut\n" -#~ "diterjemahkan.\n" -#~ "Direktori pencarian standar: %s\n" - -#, fuzzy -#~ msgid "" -#~ " -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" -#~ " -e enable expansion of some escape sequences\n" -#~ " -E (ignored for compatibility)\n" -#~ " -h, --help display this help and exit\n" -#~ " -V, --version display version information and exit\n" -#~ " [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" -#~ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL " -#~ "(plural)\n" -#~ " COUNT choose singular/plural form based on this " -#~ "value\n" -#~ msgstr "" -#~ "Pemakaian: %s [PILIHAN] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -#~ " -d, --domain=TEXTDOMAIN mengambil pesan terjemahan dari TEXTDOMAIN\n" -#~ " -e memungkinkan ekspansi beberapa escape " -#~ "sequence\n" -#~ " -E (abaikan kompatibilitas)\n" -#~ " -h, --help tampilkan bantuan ini dan keluar\n" -#~ " -n hilangkan newline yang mengekor\n" -#~ " -V, --version tampilkan informasi versi dan keluar\n" -#~ " [TEXTDOMAIN] MSGID mengambil pesan terjemahan yang sesuai\n" -#~ " untuk MSGID dari TEXTDOMAIN\n" - -#, fuzzy -#~ msgid "" -#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " -#~ "the\n" -#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " -#~ "the\n" -#~ "regular directory, another location can be specified with the " -#~ "environment\n" -#~ "variable TEXTDOMAINDIR.\n" -#~ "Standard search directory: %s\n" +#~ "Convert binary .mo files to Uniforum style .po files.\n" +#~ "Both little-endian and big-endian .mo files are handled.\n" +#~ "If no input file is given or it is -, standard input is read.\n" +#~ "By default the output is written to standard output.\n" #~ msgstr "" #~ "\n" -#~ "Jika parameter TEXTDOMAIN tidak diberikan, domain ditentukan dari\n" -#~ "variabel lingkungan TEXTDOMAIN. Jika katalog pesan tidak ditemukan dalam\n" -#~ "direktori reguler, lokasi lain dapat dispesifikasikan dengan variabel \n" -#~ "lingkungan TEXTDOMAINDIR.\n" -#~ "Bila digunakan dengan pilihan -s program berlaku seperti perintah " -#~ "`echo'.\n" -#~ "Tetapi ia tidak hanya menyalin argumennya ke stdout. Namun pesan " -#~ "tersebut\n" -#~ "diterjemahkan.\n" -#~ "Direktori pencarian standar: %s\n" - -#, fuzzy -#~ msgid "file \"%s\" contains a not NUL terminated sysdep segment" -#~ msgstr "file \"%s\" bukan dalam format GNU .mo" +#~ "Konversi file biner .mo ke file .po bergaya Uniforum.\n" +#~ "File .mo little-endian dan big-endian ditangani.\n" +#~ "Jika tidak ada file input atau -, dibaca dari stdin.\n" +#~ "Secara baku output ditulis ke stdout.\n" #~ msgid "seek \"%s\" offset %ld failed" #~ msgstr "gagal mencari \"%s\" offset %ld" -#, fuzzy -#~ msgid "a format specification for argument {%u} doesn't exist in 'msgstr'" -#~ msgstr "spesifikasi format untuk argumen %u tidak sama" - -#, fuzzy -#~ msgid "a format specification for argument '%s' doesn't exist in 'msgstr'" -#~ msgstr "spesifikasi format untuk argumen %u tidak sama" - -#, fuzzy -#~ msgid "a format specification for argument %u doesn't exist in 'msgstr'" -#~ msgstr "spesifikasi format untuk argumen %u tidak sama" - -#~ msgid "while creating hash table" -#~ msgstr "sementara membuat tabel hash" - -#, fuzzy -#~ msgid "%s:%lu: warning: keyword between outer keyword and its arg" -#~ msgstr "%s:%d: peringatan: string literal yang unterminated" - -#~ msgid "while preparing output" -#~ msgstr "ketika mempersiapkan output" +#~ msgid "" +#~ "Usage: %s [OPTION] INPUTFILE ...\n" +#~ "Extract translatable string from given input files.\n" +#~ "\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -a, --extract-all extract all strings\n" +#~ " -c, --add-comments[=TAG] place comment block with TAG (or those\n" +#~ " preceding keyword lines) in output file\n" +#~ " -C, --c++ shorthand for --language=C++\n" +#~ " --debug more detailed formatstring recognision " +#~ "result\n" +#~ " -d, --default-domain=NAME use NAME.po for output (instead of " +#~ "messages.po)\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output " +#~ "(default)\n" +#~ " -E, --escape use C escapes in output, no extended " +#~ "chars\n" +#~ " -f, --files-from=FILE get list of input files from FILE\n" +#~ " --force-po write PO file even if empty\n" +#~ " --foreign-user omit FSF copyright in output for foreign " +#~ "user\n" +#~ " -F, --sort-by-file sort output by file location\n" +#~ msgstr "" +#~ "Pemakaian: %s [PILIHAN] INPUTFILE ...\n" +#~ "Mengekstrak string yang dapat diterjemahkan dari file input.\n" +#~ "\n" +#~ "Argumen wajib untuk pilihan panjang juga wajib untuk pilihan pendek.\n" +#~ " -a, --extract-all ekstraksi seluruh string\n" +#~ " -c, --add-comment[=TAG] letakkan blok komentar dengan TAG (atau " +#~ "baris \n" +#~ " kata kunci sebelumnya) dalam file output\n" +#~ " -C, --c++ singkatan untuk --language=C++\n" +#~ " --debug hasil pengenalan formatstring yang lebih " +#~ "detil\n" +#~ " -d, --default-domain=NAME gunakan NAME.po sebagai output\n" +#~ " -D, --directory=DIRECTORY tambah DIRECTORY ke daftar untuk cari file " +#~ "input\n" +#~ " -e, --no-escape jangan gunakan escape C dalam output (baku)\n" +#~ " -E, --escape gunakan escape C dalam output, tanpa ekst. " +#~ "kar.\n" +#~ " -f, --files-from=FILE ambil daftar input file dari FILE\n" +#~ " --force-po tulis file PO bahkan bila kosong\n" +#~ " --foreign-user hilangkan copyright FSF dalam output untuk " +#~ "user asing\n" +#~ " -F, --sort-by-file urutkan output berdasar lokasi file\n" -#~ msgid "this message has no definition in the \"%s\" domain" -#~ msgstr "pesan ini tidak memiliki definisi dalam domain \"%s\"" +#~ msgid "" +#~ " -h, --help display this help and exit\n" +#~ " -i, --indent write the .po file using indented style\n" +#~ " -j, --join-existing join messages with existing file\n" +#~ " -k, --keyword[=WORD] additonal keyword to be looked for " +#~ "(without\n" +#~ " WORD means not to use default keywords)\n" +#~ " -l, --string-limit=NUMBER set string length limit to NUMBER " +#~ "instead %u\n" +#~ " -L, --language=NAME recognise the specified language (C, C+" +#~ "+, PO),\n" +#~ " otherwise is guessed from file " +#~ "extension\n" +#~ " -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " +#~ "entries\n" +#~ " -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " +#~ "entries\n" +#~ " --no-location do not write '#: filename:line' lines\n" +#~ msgstr "" +#~ " -h, --help tampilkan bantuan ini dan keluar\n" +#~ " -i, --indent tulis file .po dengan gaya terindentasi\n" +#~ " -j, --join-existing gabung pesan dengan file yang telah ada\n" +#~ " -k, --keyword[=WORD] keyword tambahan untuk dicari (tanpa " +#~ "WORD \n" +#~ " berarti tidak menggunakan keyword baku)\n" +#~ " -l,--string-limit=NUMBER set batasan string ke NUMBER bukan %u\n" +#~ " -L,--language=NAME kenali bahasa tertentu (C, C++, PO), " +#~ "selain itu \n" +#~ " duga dari ekstensi file\n" +#~ " -m, --msgstr-prefix[=STRING] gunakan STRING atau \"\\\" sebagai prefix " +#~ "untuk\n" +#~ " masukan msgstr\n" +#~ " -M, --msgstr-suffix[=STRING] gunakan STRING atau \"\\\" sebagai suffix " +#~ "untuk\n" +#~ " masukan msgstr\n" +#~ " --no-location jangan gunakan baris '#: filename:line'\n" #~ msgid "" #~ " -n, --add-location generate '#: filename:line' lines " @@ -3943,6 +4469,3 @@ #~ " -x, --exclude-file=FILE masukan dari FILE tidak diekstraksi\n" #~ "\n" #~ "Jika INPUTFILE adalah -, dibaca standar input.\n" - -#~ msgid "%s: warning: no header entry found" -#~ msgstr "%s: peringatan: tidak ditemukan masukan header" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/it.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/it.gmo differ diff -Nru gettext-0.17/gettext-tools/po/it.po gettext-0.18.1.1/gettext-tools/po/it.po --- gettext-0.17/gettext-tools/po/it.po 2007-11-02 02:23:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/it.po 2010-06-06 12:49:57.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-30 17:52+0000\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" +"Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" @@ -32,23 +33,23 @@ msgid "Valid arguments are:" msgstr "Sono argomenti validi:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "" "impossibile trovare una directory temporanea, provare a impostare $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "impossibile creare la directory temporanea usando il modello \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "impossibile rimuovere il file temporaneo \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "impossibile rimuovere la directory temporanea \"%s\"" @@ -57,44 +58,44 @@ msgid "write error" msgstr "errore di scrittura" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "errore durante l'apertura di \"%s\" in lettura" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "impossibile aprire il file di backup \"%s\" in scrittura" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "errore durante la lettura di \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "errore durante la scrittura di \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "errore dopo la lettura di \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() non riuscito" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Compilatore C# non trovato, provare a installare pnet" @@ -104,74 +105,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Macchina virtuale C# non trovata, provare a installare pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Errore di sistema sconosciuto" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "sottoprocesso %s non riuscito" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: l'opzione \"%s\" è ambigua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: l'opzione \"--%s\" non accetta argomenti\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: l'opzione \"%c%s\" non accetta argomenti\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: l'opzione \"%s\" richiede un argomento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opzione \"--%s\" non riconosciuta\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opzione \"%c%s\" non riconosciuta\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opzione illecita -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opzione non valida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: l'opzione richiede un argomento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: l'opzione \"-W %s\" è ambigua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: l'opzione \"-W %s\" non accetta argomenti\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: l'opzione \"%s\" richiede un argomento\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -183,20 +183,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "argomento target_version di compile_java_class non valido" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "creazione di \"%s\" non riuscita" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "errore durante la scrittura del file \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -209,20 +209,20 @@ "Macchina virtuale Java non trovata, provare a installare gij o a impostare " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "errore di I/O nel sottoprocesso %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memoria esaurita" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -241,74 +241,73 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "\"" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "\"" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle fallito con codice di errore 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle non riuscito" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "impossibile creare il file di output \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "sottoprocesso %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "il sottoprocesso %s ha ricevuto il segnale fatale %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "\"%s\" non è una stringa di formato %s valida, diversamente da \"msgid\". " "Motivo: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "la specifica di formato per l'argomento %u, come in \"%s\", non esiste in " "\"msgid\"" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "la specifica di formato per l'argomento %u non esiste in \"%s\"" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "le specifiche di formato in \"msgid\" e \"%s\" per l'argomento %u non sono " "le stesse" @@ -341,9 +340,9 @@ "La stringa fa riferimento all'argomento numero %u ma ignora l'argomento " "numero %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" "il numero di specifiche di formato in \"msgid\" e \"%s\" non corrisponde" @@ -392,18 +391,18 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "La stringa contiene una \"}\" solitaria dopo la direttiva numero %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "Nella direttiva numero %u, la combinazione delle opzioni non è valida." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "Nella direttiva numero %u, la precisione non è ammessa prima di \"%c\"." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -412,7 +411,7 @@ "Nella direttiva numero %u, il numero di argomento per la precisione deve " "essere uguale a %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -420,25 +419,25 @@ msgstr "" "Nella direttiva numero %u, la precisione non è ammessa prima di \"%c\"." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" "Nella direttiva numero %u, la specificazione di precisione non è valida." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "Nella direttiva numero %u, non sono ammesse opzioni prima di \"%c\"." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "\"msgid\" usa %%m ma \"%s\" non lo usa" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "\"msgid\" non usa %%m ma \"%s\" usa %%m" #: src/format-invalid.h:22 @@ -548,23 +547,22 @@ "\", \"#\" o \"%s\"." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "la specifica di formato per l'argomento {%u}, come in \"%s\", non esiste in " "\"msgid\"" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "la specifica di formato per l'argomento {%u}, non esiste in \"%s\"" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "la specifica di formato in \"msgid\" e \"%s\" per l'argomento {%u} non sono " "le stesse" @@ -582,11 +580,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "Nella direttiva numero %u, sono stati indicati troppi parametri; previsto %u " "parametro al massimo." @@ -641,13 +639,13 @@ msgstr "La stringa fa riferimento a qualche argomento in modi incompatibili." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "le specifiche di formato in \"msgid\" e \"%s\" non sono equivalenti" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "le specifiche di formato in \"%s\" non sono un sottoinsieme di quelle in " "\"msgid\"" @@ -661,12 +659,12 @@ "Nella direttiva %u, lo specificatore di dimensione è incompatibile con lo " "specificatore di conversione \"%c\"." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "una specifica di formato per l'argomento \"%s\" non esiste in \"%s\"" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -674,53 +672,50 @@ "La stringa fa riferimento ad argomenti attraverso specificazioni di " "argomenti sia con nome che senza nome." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "La stringa fa riferimento all'argomento chiamato \"%s\" in modi " "incompatibili." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "le specifiche di formato in \"msgid\" prevedono una mappatura, quelle in \"%s" "\" prevedono una tupla" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "le specifiche di formato in \"msgid\" prevedono una tupla, quelle in \"%s\" " "prevedono una mappatura" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "la specifica di formato per l'argomento \"%s\", come in \"%s\", non esiste " "in \"msgid\"" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "le specifiche di formato in \"msgid\" e \"%s\" per l'argomento \"%s\" non " "sono le stesse" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" "'msgid' è una stringa di formato semplice, ma '%s' non lo è: contiene una " "flag 'L' o un argomento numerico a due cifre" @@ -766,11 +761,11 @@ msgstr "" "Il carattere che termina la direttiva numero %u non è una cifra tra 1 e 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -784,38 +779,38 @@ "Questo è software libero: siete liberi di cambiarlo e redistribuirlo.\n" "NON c'è alcuna garanzia, fino agli estremi permessi dalla legge.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Scritto da %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "troppi argomenti" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Usare \"%s --help\" per maggiori informazioni.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Uso: %s [OPZIONE]\n" @@ -851,29 +846,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address indirizzi per il nome dell'host\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Output informativo:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help mostra questo aiuto ed esce\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version mostra le informazioni sulla versione ed esce\n" @@ -882,11 +877,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Segnalare i bug a .\n" @@ -895,30 +890,30 @@ msgid "could not get host name" msgstr "impossibile ottenere il nome dell'host" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "è permesso al massimo un file di input" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s e %s sono mutuamente esclusive" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Uso: %s [OPZIONE] [FILEINPUT]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -927,10 +922,10 @@ "Filtra i messaggi di un catalogo di traduzioni in base ai loro attributi,\n" "e manipola gli attributi.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -938,23 +933,23 @@ "Gli argomenti obbligatori per le opzioni lunghe lo sono anche per quelle " "corte.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Posizione del file di input:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " FILEINPUT file PO di input\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -963,31 +958,31 @@ "file\n" " di input\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Se nessun file di input è indicato o è -, viene letto lo standard input.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Posizione del file di output:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FILE scrive l'output sul file specificato\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -996,12 +991,12 @@ "I risultati vengono scritti su standard output quando nessun file di output\n" "è specificato o è -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Selezione dei messaggi:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -1010,7 +1005,7 @@ "messaggi\n" " non tradotti\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -1018,54 +1013,54 @@ " --untranslated mantiene i messaggi non tradotti, rimuove i\n" " messaggi tradotti\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy rimuove i messaggi marcati come \"fuzzy\"\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy mantiene i messaggi marcati come \"fuzzy\"\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete rimuove i messaggi #~ obsoleti\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete mantiene i messaggi #~ obsoleti\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipolazione degli attributi:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy rende \"fuzzy\" tutti i messaggi\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy rende non \"fuzzy\" tutti i messaggi\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete rende obsoleti tutti i messaggi\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete rende non obsoleti tutti i messaggi\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1074,42 +1069,42 @@ " --clear-previous elimina i \"previous msgid\" da tutti i " "messaggi\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=FILE.po manipola solo le voci elencate in FILE.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=FILE.po manipola solo le voci non elencate in FILE.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy sinonimo di --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete sinonimo di --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Sintassi del file di input:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1117,8 +1112,8 @@ " -P, --properties-input il file di input usa la sintassi Java ." "properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1128,17 +1123,40 @@ "GNUstep\n" " .strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Dettagli di output:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color usa sempre colori e altri attributi\n" +" --color=QUANDO usa colori e altri attributi solo QUANDO.\n" +" QUANDO può essere 'always', 'never', 'auto', o " +"'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=FILESTILE specifica il file di stile CSS per --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1146,9 +1164,9 @@ " -e, --no-escape non usa gli escape del C nell'output " "(predefinito)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1157,29 +1175,29 @@ "carattere\n" " esteso\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po scrive il file PO anche se vuoto\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent scrive il file .po usando lo stile indentato\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location non scrive le righe \"#: nomefile:riga\"\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1188,40 +1206,40 @@ "\" (predefinito)\n" "\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict genera un file .po in formato Uniforum strict\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output genera un file Java .properties\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output genera un file NeXTstep/GNUstep .strings\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMERO imposta la larghezza della pagina\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1231,16 +1249,16 @@ "lunghe\n" " della larghezza della pagina\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output genera un output ordinato\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" @@ -1248,18 +1266,18 @@ "file\n" # ******************* parte 2 inizia qui ********************* -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "il criterio di selezione specificato è impossibile (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Uso: %s [OPZIONE] [FILEINPUT]...\n" # FIXME: commonality: somiglianza? -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1282,24 +1300,24 @@ "è usata, nel qual caso solo quelli nel primo file PO vengono usati.\n" "Le posizioni nei file da tutti i file PO vengono accumulate.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " FILEINPUT ... file di input\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FILE legge l'elenco dei file di input da FILE\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Se il file di input è -, viene letto lo standard input.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1308,7 +1326,7 @@ " -<, --less-than=NUMERO stampa i messaggi with con meno di NUMERO\n" " definizioni, è predefinito a 1\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1318,7 +1336,7 @@ "definizioni,\n" " è predefinito a 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1328,8 +1346,8 @@ "messaggi\n" " unici vengono stampati\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1337,8 +1355,8 @@ " -P, --properties-input i file di input usano la sintassi Java ." "properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1348,12 +1366,12 @@ "GNUstep\n" " .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NOME codifica dell'output\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1362,46 +1380,33 @@ " --use-first usa la prima traduzione disponibile per ogni\n" " messaggio, non unisce diverse traduzioni\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color usa sempre colori e altri attributi\n" -" --color=QUANDO usa colori e altri attributi solo QUANDO.\n" -" QUANDO può essere 'always', 'never', 'auto', o " -"'html'.\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=FILESTILE specifica il file di stile CSS per --color\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "non sono specificati file d'ingresso" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "sono richiesti esattamente 2 file d'ingresso" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Uso: %s [OPZIONE] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1419,23 +1424,23 @@ "programma. Quando non è possibile trovare una corrispondenza esatta, sono usate\n" "le corrispondenze approssimative (fuzzy) per produrre diagnostiche migliori.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po traduzioni\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot riferimenti alle fonti\n" # FIXME -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modificatori di operazione:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1444,59 +1449,64 @@ " -m, --multi-domain applica ref.pot a ciascuno dei domini in def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching non usa le corrispondenze fuzzy\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy considera le voci fuzzy\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated considera le voci non tradotte\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "questo messaggio non è tradotto" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "questo messaggio deve essere controllato dal traduttore" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "questo messaggio è usato ma non definito..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...ma questa definizione è simile" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "questo messaggio è usato ma non è definito in %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "attenzione: questo messaggio non è usato" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "trovato %d errore fatale" msgstr[1] "trovati %d errori fatali" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "devono essere specificati almeno due file" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1516,7 +1526,7 @@ "commenti di estrazione saranno conservati, ma solo dal primo file PO che li\n" "definisce. Le posizioni nei file di tutti i file PO verranno accumulate.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1526,7 +1536,7 @@ "definizioni,\n" " è predefinito a 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" @@ -1534,35 +1544,35 @@ " --omit-header non scrive l'intestazione con la voce 'msgid " "\"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Converte un catalogo di traduzioni in una diversa codifica.\n" # FIXME -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Obiettivo di conversione:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "La codifica predefinita è la codifica della locale corrente.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent stile di output indentato\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location sopprime le righe \"#: nomefile:riga\"\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1570,29 +1580,29 @@ " --add-location preserva le righe \"#: nomefile:riga" "\" (predefinito)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict stile di output Uniforum strict\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "non è specificato nessun file d'ingresso" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "è richiesto esattamente un file d'ingresso" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Uso: %s [OPZIONE] FILEINPUT\n" # FIXME -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1605,22 +1615,22 @@ "xgettext). Alle voci non tradotte è fornita una traduzione identica\n" "al msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " FILEINPUT file PO o POT di input\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "nome di comando mancante" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Uso: %s [OPZIONE] COMANDO [OPZIONE-COMANDO]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1635,7 +1645,7 @@ "diventa l'output di msgexec. Il codice di uscita di msgexec corrisponde al\n" "massimo codice di uscita in tutte le chiamate.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1644,43 +1654,43 @@ "Uno speciale comando interno chiamato \"0\" stampa la traduzione, seguita da\n" "un byte null. L'output di \"msgexec 0\" è valido come input per \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=FILEINPUT file PO di input\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "scrittura su standard output non riuscita" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "scrittura sul sottoprocesso %s non riuscita" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "nome di filtro mancante" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "deve essere specificato almeno uno script sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Uso: %s [OPZIONE] FILTRO [OPZIONE-FILTRO]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" "Applica un filtro a tutte le traduzioni di un catalogo di traduzioni.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1689,18 +1699,18 @@ "Un FILTRO può essere qualunque programma che legge una traduzione dallo\n" "standard input e scrive una traduzione modificata sullo standard output.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "OPZIONI-FILTRO utili quando FILTRO è \"sed\":\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=SCRIPT aggiunge SCRIPT ai comandi da eseguire\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1711,7 +1721,7 @@ " da eseguire\n" # FIXME -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1720,7 +1730,7 @@ "dei\n" " modelli\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1728,114 +1738,96 @@ " --no-escape non usa gli escape del C nell'output " "(predefinito)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent stile di output indentato\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header non modifica l'intestazione, non la filtra\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Non ancora implementato." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "impossibile impostare un I/O non bloccante per il sottoprocesso %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "comunicazione col sottoprocesso %s non riuscita" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "lettura dal sottoprocesso %s non riuscita" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "sottoprocesso %s terminato con codice d'uscita %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "l'argomento di %s deve essere un singolo carattere di punteggiatura" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "endianness non valida: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s richiede una specificazione \"-d directory\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s richiede una specificazione \"-l locale\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s è valido solo con %s o %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s è valido solo con %s, %s o %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d messaggio tradotto" msgstr[1] "%d messaggi tradotti" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traduzione fuzzy" msgstr[1] ", %d traduzioni fuzzy" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d messaggio non tradotto" msgstr[1] ", %d messaggi non tradotti" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Uso: %s [OPZIONE] nomefile.po ...\n" # FIXME -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Genera un catalogo binario di messaggi dalla descrizione di traduzioni " "testuali.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1844,17 +1836,17 @@ "Gli argomenti obbligatori per le opzioni lunghe lo sono anche per quelle corte.\n" "Similmente per gli argomenti opzionali.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filename.po ... file di input\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Modo di operazione:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1863,7 +1855,7 @@ " -j, --java modo Java: genera una classe Java " "ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1872,12 +1864,12 @@ " --java2 come --java, e assume Java2 (JDK 1.2 o " "superiore)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp modo C#: genera un file .NET .dll\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1886,42 +1878,42 @@ " --csharp-resources modo risorse C#: genera un file .NET ." "resources\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl modo Tcl: genera un file tcl/msgcat .msg\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt modo Qt: genera un file Qt .qm\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict abilita il modo Uniforum strict\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" "Se il file di output è -, l'output viene scritto sullo standard output.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Posizione del file di output in modo Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RISORSA nome della risorsa\n" # FIXME -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1930,7 +1922,7 @@ " -l, --locale=LOCALE nome della locale, o lingua o lingua_PAESE\n" # FIXME -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -1939,7 +1931,7 @@ "delle\n" " classi\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1951,12 +1943,12 @@ "della risorsa, separata da una sottolineatura. L'opzione -d è obbligatoria.\n" "La classe viene scritta nella directory specificata.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Posizione del file di output in modo C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1966,7 +1958,7 @@ "dalla\n" " locale\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1975,18 +1967,18 @@ "Le opzioni -l e -d sono obbligatorie. Il file .dll viene scritto in una\n" "sottodirectory della directory indicata, il cui nome dipende dalla locale.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Posizione del file di output in modo Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORY directory base dei cataloghi di messaggi .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1995,12 +1987,12 @@ "Le opzioni -l e -d sono obbligatorie. Il file .msg viene scritto nella\n" "directory indicata.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretazione del file di input:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2011,14 +2003,14 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format controlla le stringhe di formato dipendenti\n" " dal linguaggio\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2027,7 +2019,7 @@ " --check-header verifica l'esistenza e il contenuto\n" " dell'intestazione\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2037,7 +2029,7 @@ "dominio\n" " e l'opzione --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2046,7 +2038,7 @@ " -C, --check-compatibility controlla che GNU msgfmt si comporti come\n" " X/Open msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2056,12 +2048,12 @@ " --check-accelerators[=CAR] controlla la presenza degli acceleratori\n" " da tastiera per le voci di menù\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy usa le voci fuzzy nell'output\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2069,89 +2061,89 @@ " -a, --alignment=NUMERO allinea le stringhe a NUMERO byte\n" " (predefinito: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash non include la tabella hash nel file binario\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics stampa statistiche sulle traduzioni\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose aumenta il livello di prolissità\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "attenzione: intestazione del file PO mancante o non valida\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "attenzione: la conversione del set di caratteri non riuscirà\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "attenzione: intestazione fuzzy del file PO\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "attenzione: versioni più vecchie di msgfmt generano un errore in questo " "caso\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "il nome di dominio \"%s\" non è adatto come nome di file" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "il nome di dominio \"%s\" non è adatto come nome di file: sarà usato\n" "un prefisso" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "direttiva \"domain %s\" ignorata" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "ignorata la voce \"msgstr\" vuota" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "ignorata la voce \"msgstr\" fuzzy" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: attenzione: il file sorgente contiene traduzioni fuzzy" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "errore durante la lettura di \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2160,7 +2152,7 @@ "l'opzione \"%c\" non può essere usata prima di aver specificato \"J\", \"K" "\", \"T\", \"C\" o \"X\"." -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2169,7 +2161,7 @@ "Estrae tutti i messaggi di un catalogo di traduzioni che corrispondono a un\n" "modello indicato o appartengono a qualche file sorgente specificato.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2245,7 +2237,7 @@ " -v, --invert-match emette solo i messaggi che non corrispondono ad\n" " alcun criterio di selezione\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2254,20 +2246,20 @@ "carattere\n" " esteso\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output genera un output ordinato\n" # FIXME -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file ordina l'output in base alla posizione nel " "file\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2277,7 +2269,7 @@ "variabile d'ambiente LANG, come descritto nel file ABOUT-NLS. Questo\n" "è necessario per verificare le proprie traduzioni.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2288,12 +2280,12 @@ "Specificare la locale attraverso l'opzione --locale o\n" "il file .po di output attraverso l'opzione --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Creato %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2302,12 +2294,12 @@ "Crea un nuovo file PO, inizializzando le meta informazioni con valori\n" "dall'ambiente dell'utente.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=FILEINPUT file POT di input\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2318,12 +2310,12 @@ "directory\n" "corrente. Se è -, viene letto lo standard input.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=FILE scrive output sul file PO specificato\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2333,12 +2325,12 @@ "dalle impostazioni della locale dell'utente. Se è -, i risultati vengono\n" "scritti sullo standard output.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC imposta la locale obiettivo\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2346,7 +2338,7 @@ " --no-translator assume che il file PO sia generato " "automaticamente\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2354,12 +2346,12 @@ "Più di un file .pot trovato.\n" "Specificare il file .pot di input con l'opzione --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "errore durante la lettura della directory corrente" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2367,15 +2359,15 @@ "Nessun file .pot trovato nella directory corrente.\n" "Specificare il file .pot di input con l'opzione --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "sottoprocesso %s non riuscito con codice d'uscita %d" # FIXME -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2392,23 +2384,23 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traduzioni italiane per il pacchetto %s." -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" "il set di caratteri corrente \"%s\" non è un nome di codifica portabile" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "due diversi set di caratteri \"%s\" e \"%s\" nel file di input" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2416,7 +2408,7 @@ "l'intestazione del file di input \"%s\" non contiene una specificazione del " "set di caratteri" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2425,20 +2417,20 @@ "il dominio \"%s\" nel file di input \"%s\" non contiene un'intestazione con " "una specificazione del set di caratteri" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" "il set di caratteri obiettivo \"%s\" non è un nome di codifica portabile" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "attenzione: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2447,7 +2439,7 @@ "I file di input contengono messaggi in diverse codifiche, tra cui UTF-8.\n" "L'output viene convertito in UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2459,7 +2451,7 @@ "L'output viene convertito in UTF-8.\n" "Per scegliere una diversa codifica dell'output, usare l'opzione --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2472,7 +2464,7 @@ "Cambiare tutti i msgid e msgctxt in ASCII puro oppure assicurarsi che sono\n" "in codifica UTF-8 già nei file sorgenti.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2485,12 +2477,12 @@ "L'output di \"%s\" potrebbe essere incorretto.\n" "Possibili soluzioni sono:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Impostare LC_ALL a una locale con codifica %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2501,7 +2493,7 @@ " applicare \"%s\",\n" " poi convertire di nuovo in %s con \"msgconv\".\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2514,7 +2506,7 @@ " applicare \"%s\",\n" " poi convertire di nuovo in %s con \"msgconv\".\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2526,26 +2518,26 @@ "L'output di \"%s\" potrebbe essere incorretto.\n" "Una possibile soluzione è impostare LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "l'espressione plurale può produrre valori negativi" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu, ma l'espressione plurale può produrre valori fino a %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "l'espressione plurale può produrre una divisione per zero" # FIXME -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "l'espressione plurale può produrre un overflow dell'intero" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2553,51 +2545,51 @@ "l'espressione plurale può produrre una eccezione aritmetica, forse una " "divisione per zero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Provare ad usare il seguente, valido per %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "il catalogo dei messaggi contiene traduzioni di forme plurali" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "ma l'intestazione non contiene un attributo \"plural=ESPRESSIONE\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "ma l'intestazione non contiene un attributo \"plural=INTERO\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "valore di nplurals non valido" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "espressione plurale non valida" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "ma alcuni messaggi hanno solo una forma plurale" msgstr[1] "ma alcuni messaggi hanno solo %lu forme plurali" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "ma alcuni messaggi hanno una forma plurale" msgstr[1] "ma alcuni messaggi hanno %lu forme plurali" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2606,89 +2598,90 @@ "l'intestazione non contiene \"Plural-Forms: nplurals=INTERO; " "plural=ESPRESSIONE;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "le voci \"msgid\" e \"msgid_plural\" non cominciano entrambe con \"\\n\"" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "le voci \"msgid\" e \"msgstr[%u]\" non cominciano entrambe con \"\\n\"" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "le voci \"msgid\" e \"msgstr\" non cominciano entrambe con \"\\n\"" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "le voci \"msgid\" e \"msgid_plural\" non finiscono entrambe con \"\\n\"" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "le voci \"msgid\" e \"msgstr[%u]\" non finiscono entrambe con \"\\n\"" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "le voci \"msgid\" e \"msgstr\" non finiscono entrambe con \"\\n\"" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "la gestione del plurale è un'estensione di GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "in msgstr manca il carattere \"%c\" per l'acceleratore da tastiera" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" "in msgstr ci sono troppi caratteri \"%c\" per l'acceleratore da tastiera" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "campo \"%s\" mancante nell'intestazione\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "" "il campo \"%s\" dell'intestazione dovrebbe cominciare all'inizio della riga\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" "alcuni campi dell'intestazione sono ancora al valore iniziale predefinito\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "il campo \"%s\" ha ancora il valore iniziale predefinito\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "" +"alcuni campi dell'intestazione sono ancora al valore iniziale predefinito\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: input non valido nella codifica \"%s\"" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" "%s: errore durante la conversione dalla codifica \"%s\" alla codifica \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "il file di input non contiene un'intestazione con una specificazione del set " "di caratteri" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2697,7 +2690,7 @@ "Impossibile convertire da \"%s\" a \"%s\". %s si basa su iconv(), e iconv() " "non gestisce questa conversione." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2707,8 +2700,8 @@ "diventano\n" "uguali." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2717,17 +2710,17 @@ "Impossibile convertire da \"%s\" a \"%s\". %s si basa su iconv(). Questa " "versione è stata compilata senza iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s è valido solamente con %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "tipo di backup" # FIXME UPSTREAM -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2752,19 +2745,19 @@ "Quando è impossibile trovare una corrispondenza esatta, una corrispondenza\n" "approssimativa (fuzzy) è usata per ottenere i migliori risultati.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po traduzioni che si riferiscono alle vecchie " "fonti\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot riferimenti alle nuove fonti\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2774,7 +2767,7 @@ "messaggi,\n" " può essere specificata più di una volta\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2783,28 +2776,28 @@ " -U, --update aggiorna il file def.po,\n" " non fa niente se def.po è già aggiornato\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Posizione del file di output in modalità di aggiornamento:\n" # FIXME -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Il risultato è riscritto in def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROLLO fa il backup di def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFISSO cambia il solito suffisso dei backup\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2823,7 +2816,7 @@ " existing, nil numerati se esistono backup numerati, altrimenti semplici\n" " simple, never fa sempre backup semplici\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2833,12 +2826,7 @@ "Il suffisso dei backup è \"~\", a meno che sia impostato con --suffix o la\n" "variabile d'ambiente SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching non usa le corrispondenze fuzzy\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2846,22 +2834,22 @@ " --previous mantiene i precedenti msgid dei messaggi " "tradotti\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent sopprime gli indicatori di avanzamento\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "questo messaggio dovrebbe definire forme plurali" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "questo messaggio non dovrebbe definire forme plurali" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2870,27 +2858,29 @@ "%sLetti %ld vecchi + %ld riferimenti, fusi %ld, fuzzy %ld, persi %ld, " "obsoleti %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " fatto.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s e i nomi di file espliciti sono mutuamente esclusivi" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Uso: %s [OPZIONE] [FILE]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Converte un catalogo binario di messaggi in un file .po in stile Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2900,12 +2890,12 @@ "ResourceBundle\n" " di Java\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp modo C#: l'input è un file .NET .dll\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2914,24 +2904,24 @@ " --csharp-resources modo risorse C#: l'input è un file .NET ." "resources\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl modo Tcl: l'input è un file tcl/msgcat .msg\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FILE ... file .mo di input\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Posizione del file di input in modo Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2942,12 +2932,12 @@ "della risorsa, separata da una sottolineatura. La classe viene localizzata\n" "con CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Posizione del file di input in modo C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2956,12 +2946,12 @@ "Le opzioni -l e -d sono obbligatorie. Il file .dll si trova in una\n" "sottodirectory della directory indicata, il cui nome dipende dalla locale.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Posizione del file di input in modo Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2970,18 +2960,18 @@ "Le opzioni -l e -d sono obbligatorie. Il file .msg si trova della directory\n" "indicata.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent scrive con stile di output indentato\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict scrive in stile Uniforum strict\n" # FIXME UPSTREAM -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3004,12 +2994,12 @@ "traduzione. Le posizioni dei file vengono accumulate. Quando si usa l'opzione\n" "--unique, i duplicati vengono scartati.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated stampa solo i duplicati\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3018,7 +3008,7 @@ " -u, --unique stampa solo i messaggi unici, scarta i " "duplicati\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3107,65 +3097,65 @@ msgid "plural form has wrong index" msgstr "la forma plurale ha indice non corretto" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "troppi errori, interrotto" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "sequenza multibyte non valida" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "sequenza multibyte non valida alla fine del file" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "sequenza multibyte non valida a fine riga" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "errore in iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "la parola chiave \"%s\" è sconosciuta" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "sequenza di controllo non valida" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "end-of-file all'interno di una stringa" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "end-of-line all'interno di una stringa" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "separatore di contesto all'interno di una stringa" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "questo file potrebbe non contenere direttive di dominio" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definizione del messaggio duplicata" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "questa è la posizione della prima definizione" @@ -3250,17 +3240,17 @@ msgstr "" "errore durante la conversione dalla codifica \"%s\" alla codifica \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "attesi due argomenti" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Uso: %s [OPZIONE] URL FILE\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3269,11 +3259,26 @@ "Scarica e mostra i contenuti di un URL. Se non è possibile accedere all'URL,\n" "viene usato il FILE locale al suo posto.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "errore durante la scrittura su standard output" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3318,43 +3323,43 @@ "formato\n" "di output non le gestisce." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "impossibile creare il file di output \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard output" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "creazione della directory \"%s\" non riuscita" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "compilazione della classe C# non riuscita, provare --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "compilazione della classe C# non riuscita" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "nome di classe Java non valido: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "compilazione della classe Java non riuscita, provare --verbose o impostare " "$JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3365,7 +3370,7 @@ msgid "error while opening \"%s\" for writing" msgstr "errore durante l'apertura di \"%s\" in scrittura" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3373,7 +3378,7 @@ "i messaggi internazionalizzati non devono contenere la sequenza di escape " "\"\\%c\"" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3386,7 +3391,7 @@ "diversa dalla propria. Considerare l'uso di un msgctxt in puro ASCII.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3410,13 +3415,13 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"il catalogo dei messaggi contiene stringhe msgctxt con caratteri non in ISO-" -"8859-1,\n" +"il catalogo dei messaggi contiene stringhe msgctxt con caratteri non in " +"ISO-8859-1,\n" "ma il formato dei cataloghi Qt gestisce Unicode solo nelle stringhe " "tradotte,\n" "non nelle stringhe di contesto\n" @@ -3427,8 +3432,8 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" -"il catalogo dei messaggi contiene stringhe msgid con caratteri non in ISO-" -"8859-1,\n" +"il catalogo dei messaggi contiene stringhe msgid con caratteri non in " +"ISO-8859-1,\n" "ma il formato dei cataloghi Qt gestisce Unicode solo nelle stringhe " "tradotte,\n" "non in quelle originali\n" @@ -3438,7 +3443,7 @@ msgid "error while writing to %s subprocess" msgstr "errore durante la scrittura sul sottoprocesso %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3446,7 +3451,7 @@ "il catalogo dei messaggi contiene traduzioni dipendenti dal contesto,\n" "ma il formato delle risorse C# non le gestisce.\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3472,36 +3477,34 @@ "formato\n" "dei cataloghi Tcl non le gestisce.\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: attenzione: stringa non terminata" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: attenzione: espressione regolare non terminata" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: attenzione: costante carattere non terminata" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: attenzione: costante stringa non terminata" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Stringa non ASCII in %s%s.\n" "Specificare la codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3510,7 +3513,7 @@ "%s:%d: sequenza multibyte non valida.\n" "Indicare la corretta codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3519,7 +3522,7 @@ "%s:%d: sequenza multibyte lunga incompleta.\n" "Indicare la corretta codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3528,7 +3531,7 @@ "%s:%d: sequenza multibyte incompleta alla fine del file.\n" "Indicare la corretta codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3537,12 +3540,12 @@ "%s:%d: sequenza multibyte incompleta alla fine della riga.\n" "Indicare la corretta codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv non riuscita" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3551,32 +3554,32 @@ "%s:%d: sequenza multibyte non valida.\n" "Indicare la codifica del sorgente usando --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: attenzione: carattere Unicode non valido" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: attenzione: costante stringa non terminata" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: attenzione: trovata \")\" dove era prevista \"}\"" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: attenzione: trovata \"}\" dove era prevista \")\"" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3586,51 +3589,50 @@ "Questa versione è stata compilata senza expat.\n" # FIXME -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: attenzione: lone surrogate U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: impossibile trovare il terminatore di stringa \"%s\" prima di EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: \"}\" mancante in \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazione non valida (\"\\l\") del carattere a 8bit \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazione non valida (\"\\u\") del carattere a 8bit \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: interpolazione variabile non valida in \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazione non valida (\"\\L\") del carattere a 8bit \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: interpolazione non valida (\"\\U\") del carattere a 8bit \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3638,7 +3640,7 @@ "Indicare la codifica del sorgente usando --from-code o con un commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3650,7 +3652,7 @@ "commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3662,7 +3664,7 @@ "commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3674,7 +3676,7 @@ "commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3686,7 +3688,7 @@ "commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3697,27 +3699,27 @@ "Indicare la codifica del sorgente usando --from-code o con un commento\n" "come specificato in http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Codifica \"%s\" sconosciuta. Si continua con ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: definizione stringa non valida" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: numero mancante dopo #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: espressione stringa non valida" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3726,30 +3728,30 @@ "%s:%lu: attenzione: la sintassi $\"...\" è deprecata per motivi di " "sicurezza; usare eval_gettext al suo posto" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing non può essere usato quando l'output è scritto su standard " "output" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext non può operare senza parole chiavi da ricercare" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "attenzione: il file \"%s\" ha estensione \"%s\" sconosciuta: si prova con C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Estrae le stringhe traducibili dai file di input indicati.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3758,12 +3760,12 @@ " -d, --default-domain=NOME usa NOME.po per l'output (invece di messages." "po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE scrive l'output sul file indicato\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3771,12 +3773,12 @@ " -p, --output-dir=DIR i file di output saranno posizionati nella\n" " directory DIR\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Scelta del linguaggio del file di input:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3795,12 +3797,12 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ abbreviazione di --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3809,7 +3811,7 @@ "Come impostazione predefinita, la scelta del linguaggio si basa " "sull'estensione del file di input.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3818,44 +3820,47 @@ " --from-code=NOME codifica dei file di input\n" " (ad eccezione di Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Come impostazione predefinita, i file di input si considerano ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing unisce i messaggi con il file esistente\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FILE.po non estrae le voci in FILE.po\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=TAG] mette il blocco di commenti che contiene TAG\n" " (o le righe di parole chiave che le " "precedono)\n" " nel file di output \n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Opzioni di linguaggio specifiche:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all estrae tutte le stringhe\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3868,18 +3873,18 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=PAROLA] parola chiave aggiuntiva da cercare (senza " "PAROLA\n" " indica di non usare le parole chiave " "predefinite)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3890,7 +3895,7 @@ "nell'argomento\n" " numero ARG della parola chiave PAROLA\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3903,37 +3908,37 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs riconosce i trigrammi ANSI C in input\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (solo linguaggi C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt riconosce le stringhe di formato Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (solo linguaggio C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde riconosce le stringhe di formato KDE 4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost riconosce le stringhe di formato Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3942,12 +3947,12 @@ "del\n" " riconoscimento della stringa di formato\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output scrive un file .properties Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" @@ -3955,7 +3960,7 @@ "output\n" # FIXME UPSTREAM -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3963,20 +3968,20 @@ " --foreign-user omette dall'output il copyright della FSF per\n" " gli utenti non GNU\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" " --package-name=NOME imposta il nome del pacchetto in output\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --package-version=VERSIONE imposta la versione del pacchetto in " "output\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3985,44 +3990,61 @@ "segnalare\n" " errori nelle voci msgid\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=STRINGA] usa STRINGA o \"\" come prefisso delle voci " "msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=STRINGA] usa STRINGA o \"\" come suffisso delle voci " "msgstr\n" # FIXME UPSTREAM -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Un argomento di --flag non usa la sintassi ::[pass-]" "[flag]: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard input" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: attenzione: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4031,17 +4053,17 @@ "Sebbene usata dove dovrebbe esserci una stringa di formato, %s non è una " "stringa di formato %s valida. Motivo: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Sebbene dichiarata come tale, %s non è una stringa di formato %s valida. " "Motivo: %s\n" # FIXME -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4055,7 +4077,7 @@ "Considerare l'uso di una stringa di formato con argomenti con nome,\n" "e di una mappatura invece di una tupla per gli argomenti.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4065,29 +4087,29 @@ "gettext(\"\") restituisce l'intestazione con\n" "le metainformazioni, non la stringa vuota.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "specificazione di argomento ambigua per la parola chiave \"%.*s\"" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "attenzione: contesto mancante per la parola chiave \"%.*s\"" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" "attenzione: contesto mancante per l'argomento plurale della parola chiave " "\"%.*s\"" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "differenza di contesto tra la forma singolare e la forma plurale" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4099,7 +4121,7 @@ "variabile MSGID_BUGS_ADDRESS; altrimenti specificare \n" "l'opzione --msgid-bugs-address da riga di comando.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "linguaggio \"%s\" sconosciuto" @@ -4108,6 +4130,30 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opzione illecita -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle fallito con codice di errore 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Non ancora implementato." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "impossibile impostare un I/O non bloccante per il sottoprocesso %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "comunicazione col sottoprocesso %s non riuscita" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "lettura dal sottoprocesso %s non riuscita" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "sottoprocesso %s terminato con codice d'uscita %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "il campo \"%s\" ha ancora il valore iniziale predefinito\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Riferimenti multipli a %%%c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/ja.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/ja.gmo differ diff -Nru gettext-0.17/gettext-tools/po/ja.po gettext-0.18.1.1/gettext-tools/po/ja.po --- gettext-0.17/gettext-tools/po/ja.po 2007-11-02 02:23:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ja.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,15 +1,17 @@ # Translation of `gettext-tools' messages to Japanese. -# Copyright (C) 1999, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. -# Masahito Yamaga , 2007. +# Copyright (C) 1999, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Masahito Yamaga , 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-tools 0.16\n" +"Project-Id-Version: GNU gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-06-13 23:39+0900\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 18:11+0900\n" "Last-Translator: Masahito Yamaga \n" "Language-Team: Japanese \n" +"Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=EUC-JP\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,22 +32,22 @@ msgid "Valid arguments are:" msgstr ":" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "ǥ쥯ȥդޤ. $TMPDIR ꤷƤߤƤ" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "ƥץ졼 \"%s\" Ȥäưǥ쥯ȥ뤳ȤǤޤ" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "ե \"%s\" Ǥޤ" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "ǥ쥯ȥ %s Ǥޤ" @@ -54,44 +56,44 @@ msgid "write error" msgstr "񤭹ߥ顼" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "\"%s\" ɤ߹⤦Ȥƥ顼ȯޤ" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "Хååץե \"%s\" 񤭹Ѥ˳ȤǤޤ" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "\"%s\" ɤ߹˥顼ȯޤ" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "\"%s\" 񤭹˥顼ȯޤ" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "\"%s\" ɤ߹˥顼ȯޤ" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() " -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C# ѥ餬Ĥޤ. pnet 򥤥󥹥ȡ뤷ƤߤƤ" @@ -101,73 +103,72 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "C# ۥޥ󤬸Ĥޤ. pnet 򥤥󥹥ȡ뤷ƤߤƤ" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "̤ΤΥƥ२顼" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s ֥ץԤޤ" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: ץ `%s' ۣǤ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: ץ '%s' ۣǤ\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: ץ `--%s' ˤϰϤޤ\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: ץ '--%s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: ץ `%c%s' ˤϰϤޤ\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: ץ '%c%s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: ץ `%s' ˤϰɬפǤ\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: ץ '--%s' ˤϰɬפǤ\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ץ `--%s' ǧޤ\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: ץ `--%s' Բ\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ץ `%c%s' ǧޤ\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: ץ '%c%s' Բ\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ʥץ -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: ̵ʥץ -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ̵ʥץ -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: ɬפʥץ -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: ɬפʥץ -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: ץ '-W %s' ۣǤ\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: ץ `-W %s' ۣǤ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: ץ '-W %s' ˰Ϥޤ\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: ץ `-W %s' ˤϰϤޤ\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: ץ '-W %s' ˤϰɬפǤ\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 @@ -180,20 +181,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "compile_java_class Ф̵ target_version " -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "\"%s\" ˼Ԥޤ" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "\"%s\" ե񤭹˥顼ȯޤ" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -207,20 +208,20 @@ "Java ۥޥ󤬸Ĥޤ. gij 򥤥󥹥ȡ뤹뤫 $JAVA ꤷƤ" "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s ֥ץϥ顼" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "Ȥ̤ޤ" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -239,72 +240,70 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "顼 0x%08x DuplicateHandle " - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle " -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "fd %d Ǥޤ: dup2 " + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s ֥ץ" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s ֥ץ̿Ūʥʥ %d ޤ" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" -msgstr "'%s' 'msgid' Ȱä %s ʸǤϤޤ. ͳ: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" +msgstr "'%s' %s ʸǤϤʤ, '%s' Ȥϰ㤤ޤ. ͳ: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr " %u Фλ꤬ '%s' Τ褦 'msgid' ¸ߤޤ" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr " %u Фλ꤬ '%s' Τ褦 '%s' ¸ߤޤ" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr " %u Фλ꤬ '%s' ¸ߤޤ" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "" -" %2$u Ф 'msgid' '%1$s' Ǥηλ꤬ƱǤϤޤ" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr " %3$u Ф '%1$s' '%2$s' Ǥηλ꤬ƱǤϤޤ" #: src/format-boost.c:449 #, c-format @@ -330,10 +329,10 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "ʸϰֹ %u 򻲾ȤƤޤֹ %u ̵뤷Ƥޤ." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "`msgid' `%s' ǻꤷοäƤޤ" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "'%s' '%s' ǻꤷοäƤޤ" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -372,49 +371,49 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "ʸֹ̿ %u ΤȤĤƤʤ '}' ޤǤޤ." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "ֹ̿ %u Ǥ, Υե饰Ȥ߹碌̵Ǥ." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "ֹ̿ %u Ǥ, '%c' ٤뤳ȤϤޤ." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "ֹ̿ %u Ǥ, ٤ΰͤ %u ʤƤϤʤޤ." -#: src/format-gcc-internal.c:396 -#, fuzzy, c-format +#: src/format-gcc-internal.c:398 +#, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." -msgstr "ֹ̿ %u Ǥ, '%c' ٤뤳ȤϤޤ." +msgstr "ֹ̿ %u Ǥ, '%c' ٻ꤬뤳ȤϤޤ." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "ֹ̿ %u Ǥ, ٻ̵Ǥ." +msgstr "ֹ̿ %u Ǥ, ٻ̵Ǥ." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "ֹ̿ %u Ǥ, '%c' ˥ե饰뤳ȤϤޤ." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "'msgid' %%m ϻȤޤ '%s' ϻȤޤ" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s' %%m Ȥޤ '%s' ϻȤޤ" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "'msgid' %%m ϻȤޤ '%s' ϻȤޤ" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s' %%m Ȥޤ '%s' %%m Ȥޤ" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -511,20 +510,19 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr " {%u} Фλ꤬ '%s' Τ褦 'msgid' ¸ߤޤ" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr " {%u} Фλ꤬ '%s' Τ褦 '%s' ¸ߤޤ" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr " {%u} Фλ꤬ '%s' ¸ߤޤ" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" -msgstr "'msgid' '%s' Ǥΰ {%u} Фλ꤬ƱǤϤޤ" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "'%s' '%s' Ǥΰ {%u} Фλ꤬ƱǤϤޤ" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -539,11 +537,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "ֹ̿ %u Ǥ, ꤵ줿ѥ᡼¿ޤ: ѥ᡼ϺǤ %u " "ĤǤ." @@ -592,13 +590,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "`msgid' `%s' Ǥηλ꤬ޤ" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "'%s' '%s' Ǥηλ꤬ޤ" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "'%s' Ǥηλ꤬ 'msgid' ǤΥ֥åȤǤϤޤ" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "'%s' Ǥηλ꤬ '%s' ǤΥ֥åȤǤϤޤ" #: src/format-perl.c:433 #, c-format @@ -607,57 +605,55 @@ "conversion specifier '%c'." msgstr "ֹ̿ %u Ǥ, Ѵ '%c' ȸߴǤϤޤ." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr " '%s' Ф꤬ '%s' ¸ߤޤ" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" "ʸ, ̾Τ, ̾ʤΰ, ɤΰ⻲ȤƤޤ." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "ʸߴˡǰ̾ '%s' 򻲾ȤƤޤ." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" -msgstr "'msgid' Ǥηϥޥåԥ󥰤Ǥ, '%s' Ǥϥץ (tuple) Ǥ" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" +msgstr "'%s' Ǥηϥޥåԥ󥰤Ǥ, '%s' Ǥϥץ (tuple) Ǥ" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" -msgstr "'msgid' Ǥηϥץ (tuple) Ǥ, '%s' Ǥϥޥåԥ󥰤Ǥ" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" +msgstr "'%s' Ǥηϥץ (tuple) Ǥ, '%s' Ǥϥޥåԥ󥰤Ǥ" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr " '%s' Ф꤬ '%s' Τ褦 'msgid' ¸ߤޤ" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr " '%s' Ф꤬ '%s' Τ褦 '%s' ¸ߤޤ" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" -msgstr "" -" '%2$s' Ф 'msgid' '%1$s' Ǥη꤬ƱǤϤޤ" +"format specifications in '%s' and '%s' for argument '%s' are not the same" +msgstr " '%3$s' Ф '%1$s' '%2$s' Ǥη꤬ƱǤϤޤ" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'%s' ñʥեޥåʸǤ, '%s' ϰ㤤ޤ. 'L' ե饰 2ο" +"Ͱޤߤޤ" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -696,11 +692,11 @@ "1 and 9." msgstr "ֹ̿ %u νüʸ 1 9 δ֤οǤϤޤ." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -708,39 +704,47 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" +"\n" +"[]\n" +"ϥե꡼եȥǤΤѹȺۤϼͳǤ.\n" +"ˡΧϰϤ̵ݾڤǤ.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr " %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "¿ޤ" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "¿ξ뤿ˤ `%s --help' ϤƤ.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "ˡ: %s [ץ]\n" @@ -776,29 +780,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address ۥ̾Ф륢ɥ쥹\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr ":\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help Υإפɽƽλ\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version Сɽƽλ\n" @@ -807,11 +811,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "ХݡȤ ޤ.\n" @@ -820,93 +824,93 @@ msgid "could not get host name" msgstr "ۥ̾ǤޤǤ" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr " 1Ĥϥե뤬ޤ" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s %s ȿǤ" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "ˡ: %s [ץ] [ϥե]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "°˽äΥå̤, °򤦤ޤޤ.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "ĹץɬܤΰûץˤɬܤǤ.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "ϥեλ:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INPUTFILE PO ե\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory=DIRECTORY ϥեθꥹȤ DIRECTORY ɲ\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "ϥե뤬ꤵʤ, ⤷ - ξɸϤɤ߹ޤޤ.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "ϥեλ:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FILE ꤷե˽\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -915,19 +919,19 @@ "ϥե뤬ꤵʤ, ⤷ - ξɸϤ˷̤񤭽Ф" ".\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "å:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated 줿åĤ, ̤\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -935,53 +939,53 @@ " --untranslated ̤ΥåĤ, 줿Τ" "\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy 'fuzzy' ޡդΥå\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy 'fuzzy' ޡդΥåĤ\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete Ѥ줿 #~ å\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete Ѥ줿 #~ åĤ\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "°:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy ƤΥå 'fuzzy' \n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy ƤΥå ' fuzzy' \n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete ƤΥå 'Ѥ줿' ֤\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete ƤΥå 'Ѥ줿' ֤\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -989,47 +993,47 @@ msgstr "" " --clear-previous ƤΥå \" msgid\" \n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr " --only-file=FILE.po FILE.po ˤ륨ȥΤ߽\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr " --ignore-file=FILE.po FILE.po ˤʤȥΤ߽\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy --only-fuzzy --clear-fuzzy Ʊ\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete --only-obsolete --clear-obsolete Ʊ\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "ϥեʸˡ:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr " -P, --properties-input ϥե Java .properties ʸˡ\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1038,26 +1042,49 @@ " --stringtable-input ϥե NeXTstep/GNUstep .strings ʸ" "ˡ\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Ϥξܺ:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color ˥顼¾Υƥ°Ȥ\n" +" --color=WHEN WHEN ʤХ顼¾Υƥ°Ȥ.\n" +" WHEN 'always', 'never', 'auto', ޤ " +"'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=STYLEFILE --color Ф CSS 롼\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" " -e, --no-escape Ϥ C ΥפȤʤ (ɸ)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1065,68 +1092,68 @@ " -E, --escape Ϥ C ΥפȤ,\n" " ĥʸޤʤ\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po ǤäƤ PO ե񤭽Ф\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent .po ե\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location '#: ե̾:ֹ' ιԤ񤭽Фʤ\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" " -n, --add-location '#: ե̾:ֹ' ιԤ (ɸ)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict ̩ Uniforum .po ե\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output Java .properties ե\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output NeXTstep/GNUstep .strings ե\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMBER ϥڡ\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1135,31 +1162,31 @@ " --no-wrap ϥڡĹåԤԤ" "\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output Ȥ줿Ϥ\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file եǽϤ򥽡\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "ꤵ줿 (%d < n < %d) ԲǽǤ" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "ˡ: %s [ץ] [ϥե]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1182,23 +1209,23 @@ "줿ǽ PO եΤΤΤޤ޻Ĥޤ. ޤեΰ\n" "Ƥ PO ե뤫餽Τޤ޻Ĥޤ.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INPUTFILE ... ϥե\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=FILE ϥեΥꥹȤ FILE \n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "ϥե뤬 - ξɸϤɤ߹ޤޤ.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1207,7 +1234,7 @@ " -<, --less-than=NUMBER NUMBER 꾯ʤ줿å\n" " . ꤵʤɸ̵¸\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1216,7 +1243,7 @@ " ->, --more-than=NUMBER NUMBER ¿줿å\n" " ꤵʤɸ 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1225,15 +1252,15 @@ " -u, --unique --less-than=2 û̷. 1Ĥʤå\n" " Τߤɽ\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr " -P, --properties-input ϥե Java .properties ʸˡ\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1242,12 +1269,12 @@ " --stringtable-input ϥե NeXTstep/GNUstep .strings ʸ" "ˡ\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NAME ϤΥ󥳡ǥ\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1256,41 +1283,33 @@ " --use-first ơΥåκǽͭȤ\n" " ʣޡʤ\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" +msgstr " --lang=CATALOGNAME إåܤ 'Language' \n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "ϥե뤬ꤵƤޤ" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "Τ 2Ĥϥե뤬ɬפǤ" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "ˡ: %s [ץ] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1308,22 +1327,22 @@ "Τ˰פƤĽ꤬Ĥʤ, ޤ (fuzzy) Ȥ\n" "ɤǥåޤ.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po \n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot ؤλ\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr ":\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1331,58 +1350,63 @@ msgstr "" " -m, --multi-domain ref.pot def.po ΥɥᥤγơŬ\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching ޤԤʤ\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy fuzzy (ޤ) ܤθ\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated ̤Υåθ\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "Υå̤Ǥ" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "ΥåԤˤӥ塼ɬפǤ" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "ΥåϻȤޤƤޤ..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...Ƥޤ" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "ΥåϻȤޤ %s ǤƤޤ" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "ٹ: ΥåϻȤޤ" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "%d Ĥ̿Ū顼Ĥޤ" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "ʤȤ 2ĤΥեꤷʤФޤ" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1402,7 +1426,7 @@ "Ȥ, 餬줿ǽ PO եΤΤΤߤΤޤ޻Ĥޤ.\n" "ޤեΰ֤Ƥ PO ե뤫餽Τޤ޻Ĥޤ.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1411,68 +1435,68 @@ " ->, --more-than=NUMBER NUMBER ¿줿å\n" " ꤵʤɸ 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header `msgid \"\"' ޤإåϤʤ\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "ۤʤäʸ󥳡ǥ󥰤Ѵ.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Ѵо:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "ɸΥ󥳡ǥ󥰤ϸߤΥΥ󥳡ǥ󥰤Ǥ.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent ν\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location '#: filename:line' ιԤϤʤ\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr " --add-location '#: filename:line' ιԤݻ (ɸ)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict ̩ Uniforum Ϸ\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "ϥե뤬ꤵƤޤ" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "Τ 1Ĥϥե뤬ɬפǤ" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "ˡ: %s [ץ] INPUTFILE\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1484,22 +1508,22 @@ "PO ƥץ졼ȥե (̤ xgettext ˤä) Ǥ. ̤Υȥ\n" " msgid Ʊ˳Ƥޤ.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " INPUTFILE Ϥ PO ޤ POT ե\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "ޥ̾ޤ" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "ˡ: %s [ץ] ޥ [ޥɥץ]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1514,7 +1538,7 @@ "νϤ msgexec νϤˤʤޤ. msgexec νλɤƤ\n" "Ф줿ץνλɤκͤˤʤޤ.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1523,42 +1547,42 @@ "'0' Ȥ̤Ȥ߹ߥޥɤϺǸ˥̥ʸդϤޤ.\n" "\"msgexec 0\" νϤ \"xargs -0\" ؤϤŬƤޤ.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INPUTFILE Ϥ PO ե\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "ɸϤؤν񤭽ФԤޤ" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "%s ؽ񤭽Ф֥ץԤޤ" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "ե륿̾ޤ" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "ʤȤ 1Ĥ sed ץȤꤷʤФޤ" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "ˡ: %s [ץ] ե륿 [ե륿ץ]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Ƥ˥ե륿Ŭ.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1568,18 +1592,18 @@ "\n" "ǤդΥץꤹ뤳ȤǤޤ.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "FILTER 'sed' ξ FILTER-OPTION:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=SCRIPT ¹Ԥ륳ޥɤ SCRIPT ɲ\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1588,120 +1612,102 @@ msgstr "" " -f, --file=SCRIPTFILE SCRIPTFILE Ƥ¹Ԥ륳ޥɤɲ\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr " -n, --quiet, --silent ѥ󥹥ڡμưŪɽ\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" " --no-escape Ϥ C ΥפȤʤ (ɸ)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent ν\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr " --keep-header إåΥȥݻ\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "̤." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "%s ֥ץ˥֥å󥰤ʤϤǤޤ" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "%s ֥ץȤ̿˼" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "%s ֥ץɤ߹ߤ˼" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s ֥ץλ %d ǽλ" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "%s ؤΰñζڤʸǤ٤Ǥ" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "̵ʥǥ: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s ˤ \"-d ǥ쥯ȥ\" λ꤬ɬפǤ" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s ˤ \"-l \" λ꤬ɬפǤ" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s %s ޤ %s ˤΤͭǤ" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s %s, %s ޤ %s ˤΤͭǤ" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d Ĥå" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d ĤޤǤ" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d Ĥ̤Υå" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "ˡ: %s [ץ] filename.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "ХʥåʸεҤ.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1710,17 +1716,17 @@ "ĹץɬܤΰûץˤɬܤǤ.\n" "ɬܤǤʤƱǤ.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filename.po ... ϥե\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "⡼:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1728,7 +1734,7 @@ msgstr "" " -j, --java Java ⡼: Java ResourceBundle 饹\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1736,12 +1742,12 @@ msgstr "" " --java2 --java Ʊ Java2 (JDK 1.2 ʹ) \n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# ⡼: .NET .dll ե\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1750,40 +1756,40 @@ " --csharp-resources C# resources ⡼: .NET .resources ե" "\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl ⡼: tcl/msgcat .msg ե\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt ⡼: Qt .qm ե\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict ̩ Uniforum ⡼ɤͭ\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "ϥե뤬 - ξɸϤ˷̤񤭽Фޤ.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Java ⡼ɤˤϥեξ:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESOURCE ꥽̾\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1791,14 +1797,14 @@ msgstr "" " -l, --locae=LOCALE ̾. ̾⤷ \"̾_̾\"\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d DIRECTORY 饹ǥ쥯ȥγؤδܥǥ쥯ȥ\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1812,12 +1818,12 @@ "\n" "񤭽Фޤ.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "C# ⡼ɤˤϥեξ:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1826,7 +1832,7 @@ " -d DIRECTORY ¸ .dll եδܥǥ쥯" "\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1835,18 +1841,18 @@ "-l -d ץɬܤǤ. .dll եϥ˰¸̾\n" "ꤵ줿ǥ쥯ȥΥ֥ǥ쥯ȥ˽񤭽Фޤ.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Tcl ⡼ɤˤϥեξ:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTORY .msg åδܥǥ쥯ȥ\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1855,12 +1861,12 @@ "-l -d ץɬܤǤ. .msg եϻꤵ줿ǥ쥯ȥ˽\n" "Фޤ.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "ϥեβ:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1871,20 +1877,20 @@ "domain\n" " ǻꤵƤΥåԤʤ\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format ˰¸եޥåʸå\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr " --check-header إåܤ¸ߤƤǧ\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1893,7 +1899,7 @@ " --check-domain ɥᥤ̿ --output-file ץδ֤\n" " ̷⤬ʤå\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1901,7 +1907,7 @@ msgstr "" " -C, --check-compatibility GNU msgfmt X/Open msgfmt Ȥθߴǧ\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1910,98 +1916,98 @@ msgstr "" " --check-accelerators[=ʸ] ˥塼ܤؤΥƤå\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy fuzzy (ޤ) ܤϤ˻Ȥ\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=NUMBER ʸ NUMBER ХȤ· (ɸ: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash Хʥեϥϥåơ֥ޤޤʤ\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics ˴ؤ׾ɽ\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose ǥ٥夲\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "ٹ: PO եΥإåʤ, ⤷Ǥ\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "ٹ: ʸåȤѴǽޤ\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "ٹ: PO եإåޤǤ\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "ٹ: msgfmt ΰΥСǤϤǥ顼ˤʤޤ\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "ɥᥤ̾ \"%s\" ϥե̾ȤŬڤǤϤޤ" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "ɥᥤ̾ \"%s\" ϥե̾ȤŬڤǤϤޤ. ƬȤޤ" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "`ɥᥤ %s' ̵̿뤵ޤ" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr " `msgstr' ȥ̵뤵ޤ" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "ޤ (fuzzy) `msgstr' ȥ̵뤵ޤ" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: ٹ: եˤޤ (fuzzy) ޤ" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "\"%s\" ɤ߹˥顼ȯޤ" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2010,7 +2016,7 @@ "ץ '%c' 'J' 'K' 'T' 'C' 'X' ꤵ˻ȤȤ" "Ǥޤ" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2019,7 +2025,7 @@ "椫, ꤵ줿ѥ˰פ, ⤷ϻꤵ줿\n" "Υե˴ޤޤƤΥåФޤ.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2094,7 +2100,7 @@ " -i, --ignore-case ʸʸ̤ʤ\n" " -v, --invert-match ɤˤפʤåΤߤ\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2102,17 +2108,17 @@ " --escape Ϥ C ΥפȤ,\n" " ĥʸޤʤ\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output Ȥ줿Ϥ\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file եǽϤ򥽡\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2121,7 +2127,7 @@ "ʤϸ˴ؤΤʤĶˤޤ. ABOUT-NLS ˵Ҥ줿褦\n" "Ķѿ LANG ꤷƤ. ƥȤ뤳ȤǤޤ.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2132,24 +2138,24 @@ "--locale ץǥꤹ뤫, --output-file ץ\n" "Ϥ .po եꤷƤ.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s .\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr " PO ե. 桼Ķͤǥ᥿ޤ.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=INPUTFILE Ϥ POT ե\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2159,12 +2165,12 @@ "ϥե뤬ꤵʤϥȥǥ쥯ȥ POT ե뤬\n" "ޤ. ⤷ϥե뤬 - ʤɸϤɤ߹ޤޤ.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=FILE ꤵ줿 PO ե˽\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2174,18 +2180,18 @@ "\n" "˰¸ޤ. ⤷ - ʤз̤ɸϤ˽Ϥޤ.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC оݤȤʤ\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr " --no-translator PO ե뤬ưȲ\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2193,12 +2199,12 @@ "1İʾ .pot ե򸫤Ĥޤ.\n" "--input ץϤ .pot եꤷƤ.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "ȥǥ쥯ȥɤ߹ߥ顼" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2206,14 +2212,14 @@ "ȥǥ쥯ȥ .pot ե뤬ĤޤǤ.\n" "--input ץϤ .pot եꤷƤ.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s ֥ץ, λ %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2230,28 +2236,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "%s ѥåФ" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "ߤʸå \"%s\" ϲΤ륨󥳡ǥ̾ǤϤޤ" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "2Ĥΰۤʤäʸå \"%s\" \"%s\" ϥեˤޤ" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "ϥե `%s' ʸåȤꤹإåܤޤ" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2260,20 +2266,20 @@ "ϥե `%2$s' Υɥᥤ \"%1$s\" ˤʸåȤꤹإå" "ޤ" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" "оݤȤʤʸå \"%s\" ϲΤ륨󥳡ǥ̾ǤϤޤ" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "ٹ: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2282,7 +2288,7 @@ "ϥեˤϰۤʤä󥳡ǥ󥰤ΥåޤޤƤޤ.\n" "Ϥ UTF-8 Ѵޤ.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2296,7 +2302,7 @@ "̤νϥ󥳡ǥ󥰤򤹤 --to-code ץȤäƤ" ".\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2311,7 +2317,7 @@ "ɥե, UTF-8 ǥ󥳡ɤƤ뤳Ȥݾڤ뤫\n" "ɤ餫Ǥ.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2324,12 +2330,12 @@ "'%s' νϤΤǤǽޤ.\n" "ǽʲ:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- LC_ALL 򥨥󥳡ǥ %s Υ.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2340,7 +2346,7 @@ " θ '%s' Ŭ.\n" " 'msgconv' Ȥä %s ᤹.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2353,7 +2359,7 @@ " θ '%s' Ŭ.\n" " 'msgconv' Ȥä %s ᤹.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2364,73 +2370,73 @@ "'%s' νϤΤǤǽޤ.\n" "ǽʲȤƤ LC_ALL=C ꤷޤ.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "ʣɽͤǽޤ" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu Ǥʣɽ %lu Ʊ٤ͤǽޤ" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "ʣɽ򵯤ǽޤ" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "ʣɽդ򵯤ǽޤ" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "ʣɽ黻㳰, 餯򵯤ǽޤ" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "%s ˤȤäͭ, ȤäƤߤƤ:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "åʣޤ" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "إåȥ \"plural=EXPRESSION\" °ޤ" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "إåȥ \"nplurals=INTEGER\" °ޤ" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr " nplurals " -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "ʣ (plural) ɽ" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "ĤΥåˤ %lu Ĥʣޤ" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "ĤΥåˤ %lu Ĥʣޤ" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2438,86 +2444,86 @@ "åˤʣޤ. \"Plural-Forms: " "nplurals=INTEGER; plural=EXPRESSION;\" Ȥإåȥ꤬ޤ" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "`msgid' `msgid_plural' Υȥ꤬ɤ '\\n' ǻϤޤäƤޤ" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' `msgstr[%u]' Υȥ꤬ɤ '\\n' ǻϤޤäƤޤ" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' `msgstr' Υȥ꤬ɤ '\\n' ǻϤޤäƤޤ" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "`msgid' `msgstr_plural' Υȥ꤬ɤ '\\n' ǽäƤޤ" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' `msgstr[%u]' Υȥ꤬ɤ '\\n' ǽäƤޤ" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' `msgstr' Υȥ꤬ɤ '\\n' ǽäƤޤ" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "ʣ GNU gettext γĥǤ" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr ˤϥܡɥ졼ε '%c' ޤ" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" "msgstr ˤϤޤ¿Υܡɥ졼ε '%c' ޤ" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "إå `%s' إåˤޤ\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "إå `%s' ϹƬˤʤФޤ\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "ĤΥإå󤬽ɸͤΤޤޤǤ\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr " `%s' ɸͤΤޤޤǤ\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "إå `%s' ɸͤΤޤޤǤ\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: Ϥ \"%s\" 󥳡ǥ󥰤ˤͭǤϤޤ" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" "%s: \"%s\" 󥳡ǥ󥰤 \"%s\" 󥳡ǥ󥰤Ѵݤ˥顼" "ȯޤ" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "ϥեʸåȤꤹإåܤޤ" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2526,7 +2532,7 @@ "\"%s\" \"%s\" ѴǤޤ. %s iconv() ˰¸Ƥޤ,iconv" "() ϤѴƤޤ." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2535,8 +2541,8 @@ "\"%s\" \"%s\" ؤѴʣ, Ĥΰۤʤä msgid ʤäƤ" "ޤ." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2545,16 +2551,16 @@ "\"%s\" \"%s\" ѴǤޤ. %s iconv() ˰¸Ƥޤ.ΥС" " iconv() ʤǺƤޤ." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s %s ˤΤͭǤ" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "Хååץ" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2576,17 +2582,17 @@ "Ĥޤ. Τ˰פƤĽ꤬Ĥʤ, ޤ (fuzzy)\n" "ȤȤɤ̤Ǥ礦. \n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po ŤФ뻲\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot Ф뻲\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2595,7 +2601,7 @@ " -C, --compendium=FILE åɲʸ\n" " 1ʾꤵǽ\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2604,27 +2610,27 @@ " -U, --update def.po 򹹿\n" " def.po ˺ǿǤǤв⤷ʤ\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "⡼ɤǤνϥեξ:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "̤ def.po ˽ᤵޤ.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL def.po ΥХååפ\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFIX ̾ΥХåå\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2644,7 +2650,7 @@ "\n" " simple, never ñΥХååפ\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2654,34 +2660,29 @@ "--suffix Ķѿ SIMPLE_BACKUP_SUFFIX ꤵƤʤ,\n" "Хåå `~' Ǥ.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching ޤԤʤ\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous 줿å msgid Ĥ\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent ʹԾɽʤ\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "Υåʣ٤Ǥ" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "Υåʣ٤ǤϤޤ" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2690,26 +2691,28 @@ "%s %ld() + %ld() ɤ߹ (ޡ %ld, ޤ %ld, %ld, " " %ld).\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " λ.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s Ū˻ꤵ줿ե̾ȿǤ" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "ˡ: %s [ץ] [ե]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Хʥå Uniforum .po եѴ.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2718,12 +2721,12 @@ " -j, --java Java ⡼: Ϥ Java ResourceBundle " "\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# ⡼: Ϥ .NET .dll ե\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2732,24 +2735,24 @@ " --csharp-resources C# resources ⡼: Ϥ .NET .resources " "ե\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl ⡼: Ϥ tcl/msgcat .msg ե\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FILE ... Ϥ .mo ե\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Java ⡼ɤˤϥեξ:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2760,12 +2763,12 @@ "\n" "Ƿޤ. 饹ξ CLASSPATH ǻꤵޤ.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "C# ⡼ɤˤϥեξ:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2774,12 +2777,12 @@ "-l -d ץɬ. .dll եϥ˰¸̾\n" "ꤵ줿ǥ쥯ȥΥ֥ǥ쥯ȥ֤ޤ.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Tcl ⡼ɤˤϥեξ:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2788,17 +2791,17 @@ "-l -d ץɬ. .msg եϻꤵ줿ǥ쥯ȥ֤" ".\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent ν\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict ̩ Uniforum ǽ\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2819,12 +2822,12 @@ "ǽФޤ. եΰ֤ϤΤޤ޻Ĥޤ. --unique\n" "ץȤȽʣ̵뤵ޤ.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated ʣƤΤΤߤɽ\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2832,7 +2835,7 @@ msgstr "" " -u, --unique ͣΥåΤߤɽ, ʣ̵\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "<ɸ>" @@ -2918,65 +2921,65 @@ msgid "plural form has wrong index" msgstr "ʣ˴ְäޤ" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "顼¿᤮Τ, Ǥڤޤ" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "ʣХȤΥ" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "ե뽪üԴʣХȤΥ" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "ԴʣХȤΥ" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv μ" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr " \"%s\" Τޤ" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "楷" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "ʸ end-of-file" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "ʸ end-of-line" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "ʸʸ̮ѥ졼 " -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "Υեϥɥᥤ̿ޤǤʤ褦Ǥ" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "åŤƤޤ" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "ϺǽξǤ" @@ -3063,17 +3066,17 @@ "\"%s\" 󥳡ǥ󥰤 \"%s\" 󥳡ǥ󥰤Ѵݤ˥顼ȯ" "ޤ" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr " 2ĤǤ" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "ˡ: %s [ץ] URL ե\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3082,11 +3085,26 @@ "URL ƤϤޤ. ⤷ URL ˥Ǥʤ,\n" "˥ǽ FILE ˻Ȥޤ.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "ɸϤ˽񤭹˥顼ȯޤ" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "%s 򸡺..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " ॢ.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " .\n" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3129,53 +3147,52 @@ "åˤʣޤ, ϷϤƤ" "ޤ." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "ϥե \"%s\" 뤳ȤǤޤ" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "ɸ" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "ǥ쥯ȥ \"%s\" κ˼Ԥޤ" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "C# 饹Υѥ˼. --verbose Ƥ" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "C# 饹Υѥ˼. --verbose Ƥ" +msgstr "C# 饹Υѥ˼" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr " Java 饹̾ǤϤޤ: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "Java 饹Υѥ˼. --verbose  $JAVAC ꤷƤ" -#: src/write-java.c:1063 -#, fuzzy, c-format +#: src/write-java.c:1168 +#, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "" -"Java 饹Υѥ˼. --verbose  $JAVAC ꤷƤ" +msgstr "Java 饹Υѥ˼. $JAVAC ꤷƤߤƤ" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" msgstr "\"%s\" ˽񤭹⤦Ȥƥ顼ȯޤ" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3183,7 +3200,7 @@ "ݲ줿å `\\%c' Ȥץ󥹤ޤǤϤޤ" "" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3197,7 +3214,7 @@ "ƤƤ.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3221,8 +3238,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3247,7 +3264,7 @@ msgid "error while writing to %s subprocess" msgstr "%s ֥ץؤν񤭹˥顼ȯޤ" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3255,7 +3272,7 @@ "åˤʸ̮¸ޤ.\n" " C# .resources ʸ̮Ƥޤ\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3279,36 +3296,31 @@ "åˤʣޤ.\n" " Tcl åʣνƤޤ\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: ٹ: ʸ˽üޤ" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: ٹ: ɽ˽üޤ" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: ٹ: ʸ˽üޤ" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: ٹ: ʸ˽üޤ" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"%s%s ASCII ʸ.\n" -"--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "--from-code ϥ󥳡ǥ󥰤ꤷƤ." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3317,7 +3329,7 @@ "%s:%d: ʥޥХȥ.\n" "--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3326,7 +3338,7 @@ "%s:%d: ĹԴʥޥХȥ.\n" "--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3335,7 +3347,7 @@ "%s:%d: եκǸԴʥޥХȥ.\n" "--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3344,12 +3356,12 @@ "%s:%d: ʥޥХȥ.\n" "--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv μ" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3358,32 +3370,32 @@ "%s:%d: ʥޥХȥ.\n" "--from-code ϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: ٹ: Unicode ʸ" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: ٹ: ʸ˽üޤ" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: ٹ: '}' ٤Ȥ ')' ޤ" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: ٹ: ')' ٤Ȥ '}' ޤ" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3392,59 +3404,56 @@ "\"glade\" ϼƤޤ. %s expat ˰¸ޤ.\n" "ΥС expat ޤޤ˺ޤ.\n" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: ٹ: ʸ˽üޤ" +msgstr "%s:%d: ٹ: Ĺ U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: EOF Τɤˤʸü \"%s\" Ĥޤ" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: \\x{HEXNUMBER} ˱̤ޤ" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\l\") 8bit ʸ \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\u\") 8bit ʸ \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: \"%c\" ѿ" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\L\") 8bit ʸ \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\U\") 8bit ʸ \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s%s ASCII ʸ.\n" "--from-code ޤ http://www.python.org/peps/pep-0263.html ˤ륳" "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3456,7 +3465,7 @@ "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3468,7 +3477,7 @@ "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3480,7 +3489,7 @@ "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3492,7 +3501,7 @@ "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3504,27 +3513,27 @@ "\n" "Ȥäϥ󥳡ǥ󥰤ꤷƤ.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "̤ΤΥ󥳡ǥ \"%s\". ASCII Ȥƿʤޤ." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: ʸ" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: # θ˿ޤ" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: ʸɽ" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3533,27 +3542,27 @@ "%s:%lu: ٹ: ʸˡ $\"...\" ϥƥͳǿ侩ޤ. " "eval_gettext ȤäƤ" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "--join-existing Ͻ褬ɸϤξˤϻȤޤ" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext ϸ륭ɤʤưޤ" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "ٹ: ե `%s' (ĥ `%s') ̤ΤηʤΤ C ޤ" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Ϳ줿ϥե뤫ǽʸФޤ.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3561,23 +3570,23 @@ msgstr "" " -d, --default-domain=NAME Ϥ NAME.po (message.po )\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE ꤵ줿ե˽\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir=DIR ǥ쥯ȥ DIR ˥ե\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "ϥե:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3596,19 +3605,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++ û̷\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "ɸǸϥեγĥҤǼ̤ޤ.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3617,41 +3626,46 @@ " --from-code=NAME ϥեΥ󥳡ǥ\n" " (Python, Tcl, Glade ʳ)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "ɸǤ, ϥե ASCII Ȳꤵޤ.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing ¸ߤեȥå\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FILE.po FILE.po ιܤФʤ\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -" -c, --add-comments[=TAG] TAG (ޤϥɹ) դ\n" -" ʬϥե\n" +" -cTAG, --add-comments=TAG TAG 饭ɹԤޤǤΥʬ\n" +" ϥե\n" +" -c, --add-comments[=TAG] ɹԤޤǤƤΥʬ\n" +" ϥե\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "ꥪץ:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all Ƥʸ\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3665,16 +3679,16 @@ " C#, awk. Tcl, Perl, PHP, GCC-source, Glade " "Τ)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=WORD] 륭ɤλ (WORD ꤵ\n" -" ʤɸΥɤϻȤʤ)\n" +" -kWORD, --keyword=WORD ɲåɤȤ WORD 򸡺\n" +" -k, --keyword ɸΥɤϻȤʤ\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3685,7 +3699,7 @@ "\n" " ղåե饰\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3699,110 +3713,131 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC " "Τ)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs Ϥ줿 ANSI C ȥ饤դǧ\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (C, C++, ObjectiveC Τ)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Qt ʸǧ\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (C++ Τ)\n" -#: src/xgettext.c:859 -#, fuzzy, c-format +#: src/xgettext.c:915 +#, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --qt Qt ʸǧ\n" +msgstr " --kde KDE 4 ʸǧ\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost Boost ʸǧ\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr " --debug ܺ٤ʥեޥåʸǧ\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output Java .properties ե\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=STRING ͭԤϤ\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" " --foreign-user ¾Υ桼˽ FSF ά\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=PACKAGE ѥå̾Ϥ\n" -#: src/xgettext.c:907 -#, fuzzy, c-format +#: src/xgettext.c:969 +#, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr " --copyright-holder=STRING ͭԤϤ\n" +msgstr " --package-version=VERSION ѥåСϤ\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=EMAIL@ADDRESS msgid ΥХѥɥ쥹\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=STRING] msgstr ܤƬ STRING \"\" \n" +" -m[STRING], --msgstr-prefix[=STRING] msgstr ܤƬ STRING " +"\"\"\n" +" \n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=STRING] msgstr ܤ STRING \"\" \n" +" -M[STRING], --msgstr-suffix[=STRING] msgstr ܤ STRING " +"\"\"\n" +" \n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "--flag ::[pass-] ʸˡäƤޤ: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "ɸ" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "%s%s ASCIIʸ." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "%s%s ޤϤASCII." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "%s%s ASCIIʸ." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: ٹ: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3811,16 +3846,16 @@ "եޥåʸΰ֤ǻȤƤޤ, %s %s եޥåʸ" "ǤϤޤ. ͳ: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Τ褦Ƥޤ, '%s' %s ʸǤϤޤ. " "ͳ: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3833,7 +3868,7 @@ "̾դΤեޥåʸȤ, İФ (tuple)\n" "˥ޥåԥ󥰤ȤȤƤƤ.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3843,27 +3878,27 @@ "gettxt(\"\") ϥ᥿դإåȥ֤ޤ\n" "ʸ֤ޤ.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr " '%.*s' Ф꤬ۣǤ" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "ٹ:  '%.*s' Фʸ̮ޤ" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "ٹ:  '%.*s' ʣʸ̮ޤ" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "ʸ̮ñϤʣǰפޤ" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3875,7 +3910,7 @@ ".\n" "⤷, ޥɥ饤󥪥ץ --msgid-bugs-address ꤷƤ.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr " `%s' Τޤ" @@ -3884,38 +3919,26 @@ msgid "" msgstr "<̾ʤ>" -#~ msgid "Multiple references to %%%c." -#~ msgstr "%%%c ؤʣλ" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ʥץ -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "顼 0x%08x DuplicateHandle " + +#~ msgid "Not yet implemented." +#~ msgstr "̤." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "%s ֥ץ˥֥å󥰤ʤϤǤޤ" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "%s ֥ץȤ̿˼" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "%s ֥ץɤ߹ߤ˼" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s ֥ץλ %d ǽλ" -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ "\n" -#~ "[]\n" -#~ "ϥե꡼եȥǤ. ԡξˤĤƤϥɤߤ" -#~ ".\n" -#~ "ԾڤŪŬǡˤ餺, ʤݾڤ⤢ޤ.\n" -#~ "\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the C# .dll format doesn't support contexts\n" -#~ msgstr "" -#~ "åˤʸ̮˰¸ޤ.\n" -#~ " C# .dll ʸ̮Ƥޤ\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the Java ResourceBundle format doesn't support contexts\n" -#~ msgstr "" -#~ "åˤʸ̮˰¸ޤ.\n" -#~ " Java ResourceBundle ʸ̮Ƥޤ\n" +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr " `%s' ɸͤΤޤޤǤ\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/ko.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/ko.gmo differ diff -Nru gettext-0.17/gettext-tools/po/ko.po gettext-0.18.1.1/gettext-tools/po/ko.po --- gettext-0.17/gettext-tools/po/ko.po 2007-11-02 02:23:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ko.po 2010-06-06 12:49:57.000000000 +0000 @@ -1,229 +1,231 @@ # gettext-tools -# Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# # Bang Jun-Young , 1995-1997. -# Changwoo Ryu , 2001-2005, 2007. +# Changwoo Ryu , 2001-2005, 2007, 2009, 2010. # msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.16\n" +"Project-Id-Version: gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-06-13 21:37+0900\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-15 23:48+0900\n" "Last-Translator: Changwoo Ryu \n" "Language-Team: Korean \n" +"Language: ko\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=EUC-KR\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: gnulib-lib/argmatch.c:133 #, c-format msgid "invalid argument %s for %s" -msgstr "`%2$s' `%1$s'() ߸Ǿϴ" +msgstr "`%2$s'에 대한 인자 `%1$s'이(가) 잘못되었습니다" #: gnulib-lib/argmatch.c:134 #, c-format msgid "ambiguous argument %s for %s" -msgstr "`%2$s' `%1$s'() ָմϴ" +msgstr "`%2$s'에 대한 인자 `%1$s'이(가) 애매합니다" #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" -msgstr "ùٸ ڴ ϴ:" +msgstr "올바른 인자는 다음과 같습니다:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "ӽ 丮 ϴ, $TMPDIR ȯ溯 Ͻʽÿ" +msgstr "임시 디렉터리가 없습니다, $TMPDIR 환경변수를 세팅하십시오" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "Ʋ \"%s\"() ̿ ӽ 丮 ϴ" +msgstr "틀 \"%s\"을(를) 이용해 임시 디렉터리를 만들 수 없습니다" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" -msgstr "ӽ %s() ϴ" +msgstr "임시 파일 %s을(를) 지울 수 없습니다" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" -msgstr "ӽ 丮 %s() ϴ" +msgstr "임시 디렉터리 %s을(를) 지울 수 없습니다" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr " " +msgstr "쓰기 오류" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" -msgstr "б \"%s\"() ߻" +msgstr "읽기 위해 \"%s\"을(를) 여는 동안 오류 발생" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr " \"%s\"() ߽ϴ" +msgstr "백업 파일 \"%s\"을(를) 쓰기 위해 열지 못했습니다" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" -msgstr "\"%s\" д ߻" +msgstr "\"%s\" 파일을 읽는 동안 오류 발생" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" -msgstr "\"%s\" ߻" +msgstr "\"%s\" 파일을 쓰는 동안 오류 발생" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" -msgstr "\"%s\" Ŀ ߻" +msgstr "\"%s\" 파일을 읽은 후에 오류 발생" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" -msgstr "fdopen() ߽ϴ" +msgstr "fdopen()이 실패했습니다" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" -msgstr "C# Ϸ ϴ. pnet ġ ʽÿ" +msgstr "C# 컴파일러가 없습니다. pnet을 설치해 보십시오" #: gnulib-lib/csharpexec.c:343 #, c-format msgid "C# virtual machine not found, try installing pnet" -msgstr "C# 谡 ϴ. pnet ġ ʽÿ" +msgstr "C# 가상기계가 없습니다. pnet을 설치해 보십시오" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr " ý " +msgstr "알 수 없는 시스템 오류" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" -msgstr "%s μ ߽ϴ" +msgstr "%s 하위 프로세스가 실패했습니다" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: `%s'() ȣ ɼԴϴ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: '%s' 옵션은 모호한 옵션입니다\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: `--%s' ɼ μ ʽϴ\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: '--%s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: `%c%s' ɼ μ ʽϴ\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: '%c%s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: `%s' ɼ μ ʿմϴ\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: '--%s' 옵션은 인수가 필요합니다\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ν ɼ `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: 인식할 수 없는 옵션 '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ν ɼ `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: 인식할 수 없는 옵션 '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ߸ ɼ -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: 부적절한 옵션 -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ɼ -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: 이 옵션은 인수가 필요합니다 -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: ɼ μ ʿմϴ -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: '-W %s' 옵션은 모호한 옵션입니다\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: `-W %s'() ȣ ɼԴϴ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: '-W %s' 옵션은 인수를 허용하지 않습니다\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: `-W %s' ɼ μ ʽϴ\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: '-W %s' 옵션은 인수가 필요합니다\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format msgid "invalid source_version argument to compile_java_class" -msgstr "compile_java_class source_version ڰ ߸Ǿϴ" +msgstr "compile_java_class에 대한 source_version 인자가 잘못되었습니다" #: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 #, c-format msgid "invalid target_version argument to compile_java_class" -msgstr "compile_java_class target_version ڰ ߸Ǿϴ" +msgstr "compile_java_class에 대한 target_version 인자가 잘못되었습니다" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" -msgstr "\"%s\"() ߽ϴ" +msgstr "\"%s\"을(를) 만드는 데 실패했습니다" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" -msgstr "\"%s\" ߻" +msgstr "\"%s\" 파일을 쓰는 동안 오류 발생" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" -"ڹ Ϸ ϴ. gcj ġϰų $JAVAC ȯ溯 Ͻʽÿ" +"자바 컴파일러가 없습니다. gcj를 설치하거나 $JAVAC 환경변수를 세팅하십시오" #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -"ڹ 谡 ϴ. gij ġϰų $JAVAC ȯ溯 Ͻʽÿ" +"자바 가상기계가 없습니다. gij를 설치하거나 $JAVAC 환경변수를 세팅하십시오" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" -msgstr "%s μ " +msgstr "%s 하위 프로세스 입출력 오류" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" -msgstr "޸𸮰 ٴڳϴ" +msgstr "메모리가 바닥났습니다" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" -msgstr " ϴ" +msgstr "파이프를 만들 수 없습니다" #. TRANSLATORS: #. Get translations for open and closing quotation marks. @@ -238,78 +240,77 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 +#: gnulib-lib/w32spawn.h:40 #, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle ڵ 0x%08x ߽ϴ" +msgid "_open_osfhandle failed" +msgstr "_open_osfhandle 실패" -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:81 #, c-format -msgid "_open_osfhandle failed" -msgstr "_open_osfhandle " +msgid "cannot restore fd %d: dup2 failed" +msgstr "파일 디스크립터 %d번을 복구할 수 없습니다: dup2 실패" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" -msgstr "%s μ" +msgstr "%s 하위 프로세스" -# fatal signal -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +# fatal signal 번역 개선 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" -msgstr "%s μ ġ ñ׳ %d() ޾ҽϴ" +msgstr "%s 하위 프로세스가 치명적인 시그널 %d번을 받았습니다" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"'msgid'ʹ ޸, '%s'() ùٸ %s ڿ ƴմϴ. : %s" +"'%3$s'와는 달리, '%1$s'은(는) 올바른 %2$s 형식 문자열이 아닙니다. 이유: %4$s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "'%2$s' ȿ ִ, %1$u 'msgid' ϴ" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "'%2$s' 안에 있는, 인자 %1$u에 대한 서식 지정이 '%3$s'에 없습니다" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" -msgstr " %u '%s' ϴ" +msgstr "인자 %u에 대한 서식 지정이 '%s'에 없습니다" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "'msgid' '%s' %u ʽϴ" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "'%s'와 '%s'에 쓰인 인자 %u에 대한 서식 지정이 같지 않습니다" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr " %u | | ʽϴ." +msgstr "지시자 %u번이 |로 시작하지만 |로 끝나지 않습니다." #: src/format-c.c:181 #, c-format @@ -317,157 +318,157 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" -" %u, '<' ū ϴ ũ ̸ ƴմϴ. ù" -" ũ ̸ ISO C 99 7.8.1 ŵǾ ֽϴ." +"지시자 %u번에서, '<' 뒤의 토큰이 포맷을 지정하는 매크로 이름이 아닙니다. 올바" +"른 매크로 이름은 ISO C 99 섹션 7.8.1에 열거되어 있습니다." #: src/format-c.c:588 #, c-format msgid "In the directive number %u, the token after '<' is not followed by '>'." -msgstr " %u, '<' ū '>' ʽϴ." +msgstr "지시자 %u번에서, '<' 뒤의 토큰 다음에 '>'가 오지 않습니다." #: src/format-c.c:814 #, c-format msgid "The string refers to argument number %u but ignores argument number %u." -msgstr "ڿ ȣ %u() ȣ %u() մϴ." +msgstr "문자열이 인자 번호 %u을(를) 참조하지만 인자 번호 %u을(를) 무시합니다." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "'msgid' '%s' ġ ʽϴ" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "'%s'와 '%s'에 쓰인 서식 지정자의 개수가 일치하지 않습니다" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." -msgstr " %u, '{' ȣ ʽϴ." +msgstr "지시자 %u번에서, '{' 다음에 인자 번호가 오지 않습니다." #: src/format-csharp.c:109 #, c-format msgid "In the directive number %u, ',' is not followed by a number." -msgstr " %u, ',' ʽϴ." +msgstr "지시자 %u번에서, 숫자 다음에 ','가 오지 않습니다." #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." msgstr "" -"ڿ ߰ ϴ: ¦ ´ '}' '{' ߽߰ϴ." +"문자열이 지시자 중간에서 끝납니다: 짝이 맞는 '}'가 없는 '{'를 발견했습니다." #: src/format-csharp.c:139 #, c-format msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." -msgstr " %u '}' ƴ϶ ߸ '%c' ڷ ϴ." +msgstr "지시자 %u번이 '}'가 아니라 잘못된 '%c' 문자로 끝납니다." #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." -msgstr " %u '}' ƴ϶ ߸ ڷ ϴ." +msgstr "지시자 %u번이 '}'가 아니라 잘못된 문자로 끝납니다." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" -" ߰ ڿ մϴ: ¦ ´ '}' '{' ߽߰ϴ." +"지시자 중간에서 문자열이 시작합니다: 짝이 맞는 '}'가 없는 '{'를 발견했습니다." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." -msgstr "ڿ %u ڿ '}' ֽϴ." +msgstr "문자열에 지시자 %u번 뒤에 '}'가 들어 있습니다." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr " %u, ÷ ߸Ǿϴ." +msgstr "지시자 %u번에서, 플래그 조합이 잘못되었습니다." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." -msgstr " %u, '%c' տ ȿڸ ϴ." +msgstr "지시자 %u번에서, '%c' 앞에는 유효숫자가 올 수 없습니다." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." -msgstr " %u, ȿڿ %u() ƾ մϴ." +msgstr "지시자 %u번에서, 유효숫자에 대해 인자 개수가 %u와(과) 같아야 합니다." -#: src/format-gcc-internal.c:396 -#, fuzzy, c-format +#: src/format-gcc-internal.c:398 +#, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." -msgstr " %u, '%c' տ ȿڸ ϴ." +msgstr "지시자 %u번에서, '%c' 앞에는 유효숫자를 지정할 수 없습니다." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr " %u, ȿ ߸Ǿϴ." +msgstr "지시자 %u번에서, 유효숫자 지정이 잘못되었습니다." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." -msgstr " %u, '%c' տ ÷׸ ϴ." +msgstr "지시자 %u번에서, '%c' 앞에는 플래그를 쓸 수 없습니다." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "'msgid' %%m '%s'() ʽϴ" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s'이(가) %%m 포맷을 사용하지만 '%s'은(는) 사용하지 않습니다" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "'msgid' %%m '%s'() %%m մϴ" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s'이(가) %%m 포맷을 사용하지 않지만 '%s'은(는) %%m 포맷을 사용합니다" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." -msgstr " ߰ ڿ ϴ." +msgstr "지시자 중간에서 문자열이 끝납니다." #: src/format-invalid.h:25 msgid "" "The string refers to arguments both through absolute argument numbers and " "through unnumbered argument specifications." msgstr "" -"ڿ ȣ ̸ ϴ " -" մϴ." +"문자열이 인자의 절대 번호를 통한 방법과 이름없이 지정하는 방법 두 가지로 인자" +"를 참조합니다." #: src/format-invalid.h:28 #, c-format msgid "" "In the directive number %u, the argument number 0 is not a positive integer." -msgstr " %u, ȣ 0 1 ̻ ƴմϴ." +msgstr "지시자 %u번에서, 인자 번호 0이 1 이상의 정수가 아닙니다." #: src/format-invalid.h:30 #, c-format msgid "" "In the directive number %u, the width's argument number 0 is not a positive " "integer." -msgstr " %u, ʺ ȣ 0 1 ̻ ƴմϴ." +msgstr "지시자 %u번에서, 너비의 인자 번호 0이 1 이상의 정수가 아닙니다." #: src/format-invalid.h:32 #, c-format msgid "" "In the directive number %u, the precision's argument number 0 is not a " "positive integer." -msgstr " %u, е ȣ 0 1 ̻ ƴմϴ." +msgstr "지시자 %u번에서, 정밀도의 인자 번호 0이 1 이상의 정수가 아닙니다." #: src/format-invalid.h:36 #, c-format msgid "" "In the directive number %u, the character '%c' is not a valid conversion " "specifier." -msgstr " %u, '%c' ڴ ùٸ ȯ ڰ ƴմϴ." +msgstr "지시자 %u번에서, '%c' 문자는 올바른 변환 지정자가 아닙니다." #: src/format-invalid.h:37 #, c-format msgid "" "The character that terminates the directive number %u is not a valid " "conversion specifier." -msgstr " %u ġ ڰ ùٸ ȯ ڰ ƴմϴ." +msgstr "지시자 %u번을 끝마치는 문자가 올바른 변환 지정자가 아닙니다." #: src/format-invalid.h:40 #, c-format msgid "The string refers to argument number %u in incompatible ways." -msgstr "ڿ ȣȯ ʴ ȣ %u() մϴ." +msgstr "문자열에서 호환되지 않는 방법으로 인자 번호 %u을(를) 참조합니다." #: src/format-java.c:240 #, c-format @@ -475,19 +476,19 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" -" %u, 깮ڿ \"%s\"() ùٸ ¥/ð Ÿ ƴմϴ." +"지시자 %u번에서, 서브문자열 \"%s\"은(는) 올바른 날짜/시각 스타일이 아닙니다." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format msgid "In the directive number %u, \"%s\" is not followed by a comma." -msgstr " %u, \"%s\" ǥ ʽϴ." +msgstr "지시자 %u번에서, \"%s\" 다음에 쉼표가 오지 않습니다." #: src/format-java.c:274 #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." msgstr "" -" %u, 깮ڿ \"%s\"() ùٸ Ÿ ƴմϴ." +"지시자 %u번에서, 서브문자열 \"%s\"은(는) 올바른 숫자 스타일이 아닙니다." #: src/format-java.c:323 #, c-format @@ -495,13 +496,13 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" -" %u, ȣ ǥ \"%s\", \"%s\", \"%s\", \"%s\" " -"ϳ ʽϴ." +"지시자 %u번에서, 인자 번호 다음에 쉼표와 \"%s\", \"%s\", \"%s\", \"%s\"중의 " +"하나가 오지 않습니다." #: src/format-java.c:572 #, c-format msgid "In the directive number %u, a choice contains no number." -msgstr " %u, ڰ ʽϴ." +msgstr "지시자 %u번에서, 선택 지정에 숫자가 들어 있지 않습니다." #: src/format-java.c:583 #, c-format @@ -509,26 +510,25 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" -" %u, '<', '#', Ȥ '%s'() ʽ" -"ϴ." +"지시자 %u번에서, 선택 지정에 숫자 다음에 '<', '#', 혹은 '%s'이(가) 오지 않습" +"니다." #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr "'%2$s' ȿ ִ, {%1$u} 'msgid' ϴ" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "'%2$s' 안에 있는, 인자 {%1$u}에 대한 서식 지정이 '%3$s'에 없습니다" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" -msgstr " {%u} '%s' ϴ" +msgstr "인자 {%u}에 대한 서식 지정이 '%s'에 없습니다" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" -msgstr " {%2$u} 'msgid' '%1$s' ʽϴ" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "인자 {%3$u}에 대한 '%1$s'와 '%2$s'의 서식 지정이 같지 않습니다" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -537,45 +537,45 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" -" %u, Ķ %u() '%s' Ÿ, '%s' Ÿ̾ մϴ." +"지시자 %u번에서, 파라미터 %u은(는) '%s' 타입이지만, '%s' 타입이어야 합니다." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" -" %u, Ű ʹ ϴ; ִ %u Ű ֽ" -"ϴ." +"지시자 %u번에서, 매개변수가 너무 많습니다; 최대 %u개의 매개변수만 올 수 있습" +"니다." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format msgid "In the directive number %u, '%c' is not followed by a digit." -msgstr " %u, '%c' ڰ ʽϴ." +msgstr "지시자 %u번에서, '%c' 다음에 숫자가 오지 않습니다." #: src/format-lisp.c:2736 src/format-scheme.c:2754 #, c-format msgid "In the directive number %u, the argument %d is negative." -msgstr " %u, %d() 0 ۽ϴ." +msgstr "지시자 %u번에서, 인자 %d이(가) 0보다 작습니다." #: src/format-lisp.c:2805 msgid "The string ends in the middle of a ~/.../ directive." -msgstr "ڿ ~/.../ ߰ ϴ." +msgstr "문자열이 ~/.../ 지시자의 중간에서 끝납니다." #: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 #: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 #: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 #, c-format msgid "Found '~%c' without matching '~%c'." -msgstr "'~%c' ¦ ´ '~%c'() ϴ." +msgstr "'~%c'에 짝이 맞는 '~%c'이(가) 없습니다." #: src/format-lisp.c:2863 src/format-scheme.c:2860 #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." -msgstr " %u, @ : ڰ ֽϴ." +msgstr "지시자 %u번에서, @와 : 변경자가 모두 들어 있습니다." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -583,130 +583,129 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" -" %u, '~:[' ; ϴ '~;' е ʽ" -"ϴ." +"지시자 %u번에서, '~:[' 다음에 와야 하는 '~;'로 구분된 두 개의 절이 오지 않습" +"니다." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." -msgstr " %u, '~;' ߸ ġ ϴ." +msgstr "지시자 %u번에서, '~;'이 잘못된 위치에 쓰여졌습니다." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." -msgstr "ڿ ȣȯ ʴ ڸ մϴ." +msgstr "문자열이 호환되지 않는 방법으로 인자를 참조합니다." -# ⼭ equivalent ؼ? +# 여기서 equivalent에 대한 해석은? #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "'msgid' '%s' ʽϴ" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "'%s'와 '%s'의 서식 지정이 동등하지 않습니다" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "'%s' ȿ ִ 'msgid' ϴ" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "'%s' 안에 있는 서식 지정이 '%s'에 없습니다" #: src/format-perl.c:433 #, c-format msgid "" "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." -msgstr " %u, ũ '%c' ȯ ȣȯ ʽϴ." +msgstr "지시자 %u번에서, 크기 지정은 '%c' 변환 지정과 호환되지 않습니다." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" -msgstr " '%s' '%s' ϴ" +msgstr "인자 '%s'에 대한 서식 지정이 '%s'에 없습니다" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -"ڿ ̸ ̸ ϴ ڸ " -"մϴ." +"문자열이 인자 이름을 통한 방법과 이름없이 지정하는 방법 두 가지로 인자를 참조" +"합니다." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." -msgstr "ڿ ȣȯ ʴ '%s'() ̸ ڸ մϴ." +msgstr "문자열이 호환되지 않는 방법으로 '%s'(이)라는 이름의 인자를 참조합니다." -# mapping tuple: python Ÿ -#: src/format-python.c:419 +# mapping과 tuple: python 데이타 구조 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" -msgstr "'msgid' ڴ ʿѵ, '%s' ʿմϴ" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" +msgstr "'%s'의 서식 지정자는 매핑이 필요한데, '%s'에는 터플이 필요합니다" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" -msgstr "'msgid' ڴ ʿѵ, '%s' ʿմϴ" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" +msgstr "'%s'의 서식 지정자는 터플이 필요한데, '%s'에는 매핑이 필요합니다" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr "'%2$s' ȿ ִ, '%1$s' 'msgid' ϴ" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "'%2$s' 안에 있는, 인자 '%1$s'에 대한 서식 지정이 '%3$s'에 없습니다" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" -msgstr " '%s' 'msgid' '%s' ʽϴ" +"format specifications in '%s' and '%s' for argument '%s' are not the same" +msgstr "인자 '%s'에 대한 '%s'와 '%s'의 서식 지정이 같지 않습니다" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'%s'은(는) 간단한 형식 문자열이지만 '%s' 문자열은 아닙니다: 'L' 플래그가 들" +"어 있거나 인자 번호가 두 자리로 들어 있습니다." #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." -msgstr "ڿ ASCII ƴ ̸ մϴ." +msgstr "문자열이 ASCII가 아닌 이름으로 쉘 변수를 참조합니다." #: src/format-sh.c:81 msgid "" "The string refers to a shell variable with complex shell brace syntax. This " "syntax is unsupported here due to security reasons." msgstr "" -"ڿ ߰ȣ մϴ. Ȼ " -" ʽϴ." +"문자열이 복잡한 쉘 중괄호 문법으로 쉘 변수를 참조합니다. 이 문법은 보안상의 " +"이유때문에 지원하지 않습니다." #: src/format-sh.c:83 msgid "" "The string refers to a shell variable whose value may be different inside " "shell functions." -msgstr "ڿ Լ ȿ ٸ ִ մϴ." +msgstr "문자열이 쉘 함수 안에서 다를 수도 있는 쉘 변수를 참조합니다." #: src/format-sh.c:85 msgid "The string refers to a shell variable with an empty name." -msgstr "ڿ ̸ մϴ." +msgstr "문자열이 빈 이름의 쉘 변수를 참조합니다." #: src/format-ycp.c:90 #, c-format msgid "" "In the directive number %u, the character '%c' is not a digit between 1 and " "9." -msgstr " %u, '%c'() 1 9 ڰ ƴմϴ." +msgstr "지시자 %u번에서, 문자 '%c'이(가) 1과 9 사이의 숫자가 아닙니다." #: src/format-ycp.c:91 #, c-format msgid "" "The character that terminates the directive number %u is not a digit between " "1 and 9." -msgstr " %u ġ ڰ 1 9 ڰ ƴմϴ." +msgstr "지시자 %u번을 끝마치는 문자가 1과 9 사이의 숫자가 아닙니다." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -714,57 +713,61 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" -msgstr "%s() ϴ.\n" +msgstr "%s이(가) 만들었습니다.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" -msgstr " ̺ (Bruno Haible)" +msgstr "브루노 헤이블 (Bruno Haible)" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" -msgstr "μ ʹ " +msgstr "인수가 너무 많음" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr " `%s --help' Ͻʽÿ.\n" +msgstr "더 많은 정보를 보려면 `%s --help' 하십시오.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr ": %s [<ɼ>]\n" +msgstr "사용법: %s [<옵션>]\n" #: src/hostname.c:215 #, c-format msgid "Print the machine's hostname.\n" -msgstr " ȣƮ̸ ǥմϴ.\n" +msgstr "이 기계의 호스트이름을 표시합니다.\n" #: src/hostname.c:218 #, c-format msgid "Output format:\n" -msgstr " :\n" +msgstr "출력 형식:\n" #: src/hostname.c:220 #, c-format msgid " -s, --short short host name\n" -msgstr " -s, --short ª ȣƮ̸\n" +msgstr " -s, --short 짧은 호스트이름\n" #: src/hostname.c:222 #, c-format @@ -773,408 +776,429 @@ "domain\n" " name, and aliases\n" msgstr "" -" -f, --fqdn, --long ȣƮ̸, ̸(Fully Qualified\n" -" Domain Name) (alias) \n" +" -f, --fqdn, --long 긴 호스트이름, 완전 공인 도메인이름(Fully Qualified\n" +" Domain Name) 및 별명(alias)들을 모두 포함\n" #: src/hostname.c:225 #, c-format msgid " -i, --ip-address addresses for the hostname\n" -msgstr " -i, --ip-address ȣƮ̸ ּ\n" +msgstr " -i, --ip-address 호스트이름에 대한 주소\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" -msgstr " :\n" +msgstr "정보 출력:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr " -h, --help ְ ϴ\n" +msgstr " -h, --help 이 도움말을 보여주고 끝납니다\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr " -V, --version ǥϰ ϴ\n" +msgstr " -V, --version 버전 정보를 표시하고 끝납니다\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" -msgstr " ˷ ֽʽÿ.\n" +msgstr "로 문제점을 알려 주십시오.\n" #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" -msgstr "ȣƮ̸ ˾Ƴ ϴ" +msgstr "호스트이름을 알아낼 수 없습니다" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" -msgstr "ִ Էϸ ˴ϴ" +msgstr "최대 한 개의 입력파일만이 허용됩니다" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" -msgstr "%s() %s() ŸԴϴ" +msgstr "%s과(와) %s은(는) 서로 배타적입니다" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" -msgstr ": %s [ɼ] [Է]\n" +msgstr "사용법: %s [옵션] [입력파일]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -" ޼ Ӽ ɷ, Ӽ մϴ.\n" +"번역 메시지들을 그 속성에 따라 걸러내고, 그 속성을 조작합니다.\n" "\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" -msgstr " ɼǿ ʿ μ ª ɼǿ ʿմϴ.\n" +msgstr "긴 옵션에서 꼭 필요한 인수는 짧은 옵션에도 꼭 필요합니다.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" -msgstr "Է ġ:\n" +msgstr "입력 파일 위치:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" -msgstr " <Է> Է PO \n" +msgstr " <입력파일> 입력 PO 파일\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -" -D, --directory=<丮> Է Ž ܿ <丮> մ" -"\n" +" -D, --directory=<디렉터리> 입력 파일 탐색 명단에 <디렉터리>를 추가합니다\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" -msgstr "Է ־ ʰų \"-\"̸, ǥ Է¿ нϴ.\n" +msgstr "입력 파일이 주어지지 않거나 \"-\"이면, 표준 입력에서 읽습니다.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" -msgstr " ġ:\n" +msgstr "출력 파일 위치:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" -msgstr " -o, --output-file=<> Ϸ մϴ\n" +msgstr " -o, --output-file=<파일> 지정한 파일로 출력합니다\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -" ʾҰų \"-\" , ǥ \n" -"մϴ.\n" +"만약 출력 파일이 지정되지 않았거나 \"-\"인 경우, 결과물을 표준 출력으로 \n" +"출력합니다.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" -msgstr "޼ :\n" +msgstr "메시지 선택:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -" --translated Ǿ ΰ, ʾ " -"\n" +" --translated 번역되었으면 놔 두고, 번역되지 않았으면 지웁니" +"다\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -" --untranslated ʾ ΰ, Ǿ " -"\n" +" --untranslated 번역되지 않았으면 놔 두고, 번역되었으면 지웁니" +"다\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" -msgstr " --no-fuzzy 'fuzzy' ǥõ ޼ ϴ\n" +msgstr " --no-fuzzy 'fuzzy'로 표시된 메시지를 지웁니다\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" -msgstr " --only-fuzzy 'fuzzy' ǥõ ޼ Ӵϴ\n" +msgstr " --only-fuzzy 'fuzzy'로 표시된 메시지를 놔 둡니다\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" -msgstr " --no-obsolete #~ ޼ ϴ\n" +msgstr " --no-obsolete 없어진 #~ 메시지를 지웁니다\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" -msgstr " --only-obsolete #~ ޼ Ӵϴ\n" +msgstr " --only-obsolete 없어진 #~ 메시지를 놔 둡니다\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" -msgstr "Ӽ :\n" +msgstr "속성 조작:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" -msgstr " --set-fuzzy ޼ 'fuzzy' ϴ\n" +msgstr " --set-fuzzy 모든 메시지를 'fuzzy'로 만듭니다\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -" --clear-fuzzy ޼ 'fuzzy' ƴϵ ϴ\n" +" --clear-fuzzy 모든 메시지를 'fuzzy'가 아니도록 만듭니다\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" -msgstr " --set-obsolete ޼ ޼ ϴ\n" +msgstr " --set-obsolete 모든 메시지를 없는 메시지로 만듭니다\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -" --clear-obsolete ޼ ޼ ƴϵ ϴ\n" +" --clear-obsolete 모든 메시지를 없는 메시지가 아니도록 만듭니다\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -" --clear-previous ޼ \" msgid\" ϴ\n" +" --clear-previous 모든 메시지에서 \"이전의 msgid\"를 지웁니다\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -" --only-file=<>.po <>.po ִ ׸ մϴ\n" +" --only-file=<파일>.po <파일>.po에 들어 있는 항목만 조작합니다\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -" --ignore-file=<>.po <>.po ׸ մϴ\n" +" --ignore-file=<파일>.po <파일>.po에 들어 있지 않은 항목만 조작합니다\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -" --fuzzy \"--only-fuzzy --clear-fuzzy\" մϴ\n" +" --fuzzy \"--only-fuzzy --clear-fuzzy\"와 동일합니다\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -" --obsolete \"--only-obsolete --clear-obsolete\" մ" -"\n" +" --obsolete \"--only-obsolete --clear-obsolete\"와 동일합니" +"다\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" -msgstr "Է :\n" +msgstr "입력 파일 문법:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -" -P, --properties-input Է ڹ .properties Ǿ ֽ" -"ϴ\n" +" -P, --properties-input 입력 파일이 자바 .properties 문법입니다\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -" --stringtable-input Է NeXTstep/GNUstep .strings Դ" -"\n" +" --stringtable-input 입력 파일이 NeXTstep/GNUstep .strings 문법입니" +"다\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" -msgstr " :\n" +msgstr "출력 상세:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color 색이나 기타 텍스트 속성을 항상 사용합니다\n" +" --color=<상황> 색이나 기타 텍스트 속성을 <상황>에 사용합니다\n" +" <상황>은 'always', 'never', 'auto', 혹은 " +"'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=<스타일파일> --color 옵션에 대해 CSS 스타일을 지정합니다\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -" -e, --no-escape ¿ C ̽ ʽϴ (⺻)\n" +" -e, --no-escape 출력에 C 이스케이프를 쓰지 않습니다 (기본값)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -" -E, --escape ¿ C ̽ Ȯ ڸ " -"ϴ\n" +" -E, --escape 출력에 C 이스케이프를 쓰고 확장 문자를 쓰지 않" +"습니다\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" -msgstr " --force-po ִ ̶ PO Ϸ ϴ\n" +msgstr " --force-po 비어 있는 파일이라도 PO 파일로 씁니다\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" -msgstr " -i, --indent 鿩 ŸϷ .po ϴ\n" +msgstr " -i, --indent 들여쓰기된 스타일로 .po 파일을 씁니다\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -" --no-location '#: ̸:ٹȣ' ʽϴ\n" +" --no-location '#: 파일이름:줄번호' 줄을 쓰지 않습니다\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -" -n, --add-location '#: ̸:ٹȣ' ϴ (⺻)\n" +" -n, --add-location '#: 파일이름:줄번호' 줄을 만듭니다 (기본값)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -" --strict ϰ .po ϴ\n" +" --strict 엄격하게 유니포럼을 따르는 .po 파일을 씁니다\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" -msgstr " -p, --properties-output ڹ .properties ϴ\n" +msgstr " -p, --properties-output 자바 .properties 파일을 씁니다\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -" --stringtable-input NeXTstep/GNUstep .strings ϴ\n" +" --stringtable-output NeXTstep/GNUstep .strings 파일을 씁니다\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" -msgstr " -w, --width=<> ʺ մϴ\n" +msgstr " -w, --width=<숫자> 출력 페이지의 너비를 지정합니다\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -" --no-wrap ޼ ٷ\n" -" ڸ ʽϴ.\n" +" --no-wrap 출력 페이지 폭보다 긴 메시지 라인을 여러 줄로\n" +" 자르지 않습니다.\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" -msgstr " -s, --sort-output ĵ ϴ\n" +msgstr " -s, --sort-output 정렬된 출력을 만들어 냅니다\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" -msgstr " -F, --sort-by-file ġ մϴ\n" +msgstr " -F, --sort-by-file 파일 위치에 따라 출력을 정렬합니다\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" -msgstr "Ұ Ͽϴ (%d < n < %d)" +msgstr "불가능한 선택 조건을 지정하였습니다 (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr ": %s [<ɼ>] [<Է>]...\n" +msgstr "사용법: %s [<옵션>] [<입력파일>]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1187,127 +1211,119 @@ "is specified, they will be taken from the first PO file to define them.\n" "File positions from all PO files will be cumulated.\n" msgstr "" -" PO ϵ ϰ Ĩϴ.\n" -" Ȥ ̻ PO Ͽ ִ ޼ \n" -"ãϴ. --more-than ɼ ϸ ޼ ޼ \n" -"µ Դϴ. ݴ, --less-than ɼ ޼ \n" -" ޼ µǰ ˴ϴ ( --less-than \n" -"޼ մϴ). , ּ ҽ ּ \n" -" , --user-first ɼ ϸ ޼ \n" -"Ÿ ù ° PO Ͽ ִ PO Ͽ \n" -"ġ ״ Դϴ.\n" +"지정한 PO 파일들을 연결하고 합칩니다.\n" +"두 개 혹은 그 이상의 PO 파일에서 공통적으로 들어 있는 메시지를 \n" +"찾습니다. --more-than 옵션을 사용하면 같은 메시지가 많은 메시지가 \n" +"출력될 것입니다. 그 반대로, --less-than 옵션은 같은 메시지가 더 \n" +"적은 메시지들이 출력되게 됩니다 (예를 들어 --less-than은 유일한 \n" +"메시지만을 출력합니다). 번역문, 주석문과 소스에서 추출된 주석문은 \n" +"모두 유지될 것이지만, --user-first 옵션을 사용하면 그 메시지가 \n" +"나타나는 가장 첫 번째 PO 파일에 들어 있는 모든 PO 파일에서 파일 \n" +"위치는 그대로 유지될 것입니다.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" -msgstr " Է ... Է \n" +msgstr " 입력파일 ... 입력 파일\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" -msgstr " -f, --files-from=<> Է <> нϴ\n" +msgstr " -f, --files-from=<파일> 입력 파일의 목록을 <파일>에서 읽습니다\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" -msgstr "Է -̸, ǥ Է нϴ.\n" +msgstr "입력 파일이 -이면, 표준 입력을 읽습니다.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -" -<, --less-than=<ũ> ͺ ޼ մϴ.\n" -" ɼ 쿡 ⺻ ѴԴϴ.\n" +" -<, --less-than=<크기> 지정한 것보다 적은 메시지만을 출력합니다.\n" +" 이 옵션이 없을 경우에 기본값은 무한대입니다.\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -" -<, --less-than=<ũ> ͺ ޼ մϴ.\n" -" ɼ 쿡 ⺻ ѴԴϴ.\n" +" -<, --less-than=<크기> 지정한 것보다 많은 메시지만을 출력합니다.\n" +" 이 옵션이 없을 경우에 기본값은 무한대입니다.\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -" -u, --unique --less-than=2 ª Դϴ.\n" -" ޼ մϴ.\n" +" -u, --unique --less-than=2를 짧게 쓴 것입니다.\n" +" 유일한 메시지만을 출력합니다.\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -" -P, --properties-input Է ڹ .properties Ǿ ֽ" -"ϴ\n" +" -P, --properties-input 입력 파일이 자바 .properties 문법으로 되어 있습" +"니다\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -" --stringtable-input Է NeXTstep/GNUstep .strings Դ" -"\n" +" --stringtable-input 입력 파일이 NeXTstep/GNUstep .strings 문법입니" +"다\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" -msgstr " -t, --to-code=≮> ڵ\n" +msgstr " -t, --to-code=<이름> 출력의 인코딩\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -" --use-first ޼߿ ù° Ÿ \n" -" ϰ, ġ ʽϴ\n" +" --use-first 각 메시지중에서 첫번째로 나타나는 번역문만\n" +" 사용하고, 여러 번역문을 합치지 않습니다\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" +msgstr " --lang=<목록이름> 헤더에 'Language' 항목을 설정합니다\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" -msgstr " з (Peter Miller)" +msgstr "피터 밀러 (Peter Miller)" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" -msgstr "Է ־ ʾҽϴ" +msgstr "입력 파일이 주어지지 않았습니다" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" -msgstr "Ȯ 2 Է ʿմϴ" +msgstr "정확히 2개의 입력 파일이 필요합니다" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" -msgstr ": %s [<ɼ>] def.po ref.pot\n" +msgstr "사용법: %s [<옵션>] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1317,89 +1333,94 @@ "you have translated each and every message in your program. Where an exact\n" "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -" msgid ڿ ϰ ִ Ȯϱ Uniforum \n" -" .po մϴ. def.po ̹ ϴ ̸ \n" -" ޽ ֽϴ. ref.po ֱٿ PO ̰ų \n" -"PO Ʋ Դϴ(Ϲ xgettext ϴ). α׷\n" -"α׷ ִ ޽ Ǿ Ȯ մϴ.\n" -"Ȯ ¦ ã , Ī ˴ϴ.\n" +"같은 내용의 msgid 문자열을 포함하고 있는지 확인하기 위해 Uniforum 형태의 \n" +"두 .po 파일을 비교합니다. def.po 파일은 이미 존재하는 파일이며 예전에 \n" +"번역된 메시지를 담고 있습니다. ref.po 파일은 최근에 만들어진 PO 파일이거나 \n" +"PO 틀 파일입니다(일반적으로 xgettext에 의해 만들어집니다). 이 프로그램은\n" +"프로그램 내에 있는 각각의 메시지들이 번역되었는지 확인할 때 유용합니다.\n" +"정확한 짝을 찾지 못할 경우, 보다 나은 결과를 얻기 위해 퍼지 매칭이 사용됩니다.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" -msgstr " def.po \n" +msgstr " def.po 번역문\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" -msgstr " ref.pot ҽ \n" +msgstr " ref.pot 소스를 참조\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" -msgstr " :\n" +msgstr "동작 변경:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -" -m, --multi-domain ref.pot def.po ο մ" -"\n" +" -m, --multi-domain ref.pot 파일을 def.po의 각 도메인에 적용합니" +"다\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching 퍼지 매칭을 하지 않습니다\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" -msgstr " --use-fuzzy ׸ մϴ\n" +msgstr " --use-fuzzy 퍼지 항목을 사용합니다\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" -msgstr " --use-untranslated ׸ մϴ\n" +msgstr " --use-untranslated 번역하지 않은 항목을 사용합니다\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" -msgstr " ޼ ʾҽϴ" +msgstr "이 메시지는 번역되지 않았습니다" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" -msgstr " ޼ 䰡 ʿմϴ" +msgstr "이 메시지는 번역자의 검토가 필요합니다" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." -msgstr " ޽ ǵ ʾҽϴ..." +msgstr "이 메시지는 사용되지만 정의되지 않았습니다..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" -msgstr "... Ǵ մϴ" +msgstr "...하지만 이 정의는 유사합니다" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" -msgstr " ޽ %s ǵ ʾҽϴ" +msgstr "이 메시지는 사용되지만 %s에서 정의되지 않았습니다" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" -msgstr ": ޽ ʽϴ" +msgstr "경고: 이 메시지는 사용되지 않습니다" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" -msgstr[0] "%d ġ ãҽϴ" +msgstr[0] "%d개의 치명적인 오류를 찾았습니다" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" -msgstr "ּ ؾ մϴ" +msgstr "최소한 두 개의 파일을 지정해야 합니다" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1411,88 +1432,88 @@ "PO file to define them. File positions from all PO files will be\n" "cumulated.\n" msgstr "" -" Ȥ ̻ PO Ͽ ִ ޼ \n" -"ãϴ. --more-than ɼ ϸ ޼ ޼ \n" -"µ Դϴ. ݴ, --less-than ɼ ޼ \n" -" ޼ µǰ ˴ϴ ( --less-than \n" -"޼ մϴ). , ּ ҽ ּ \n" -" , --user-first ɼ ϸ ޼ \n" -"Ÿ ù ° PO Ͽ ִ PO Ͽ \n" -"ġ ״ Դϴ.\n" +"두 개 혹은 그 이상의 PO 파일에서 공통적으로 들어 있는 메시지를 \n" +"찾습니다. --more-than 옵션을 사용하면 같은 메시지가 많은 메시지가 \n" +"출력될 것입니다. 그 반대로, --less-than 옵션은 같은 메시지가 더 \n" +"적은 메시지들이 출력되게 됩니다 (예를 들어 --less-than은 유일한 \n" +"메시지만을 출력합니다). 번역문, 주석문과 소스에서 추출된 주석문은 \n" +"모두 유지될 것이지만, --user-first 옵션을 사용하면 그 메시지가 \n" +"나타나는 가장 첫 번째 PO 파일에 들어 있는 모든 PO 파일에서 파일 \n" +"위치는 그대로 유지될 것입니다.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -" ->, --more-than=<ũ> ͺ ޼ մϴ.\n" -" ɼ 쿡 ⺻ 1Դϴ.\n" +" ->, --more-than=<크기> 지정한 것보다 많은 메시지만을 출력합니다.\n" +" 이 옵션이 없을 경우에 기본값은 1입니다.\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -" --omit-header `msgid \"\"' ׸ ʽϴ\n" +" --omit-header 헤더에 `msgid \"\"' 항목을 쓰지 않습니다\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" -msgstr " ٸ ڵ ȯմϴ.\n" +msgstr "번역 목록을 다른 문자 인코딩으로 변환합니다.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" -msgstr "ȯ ǥ:\n" +msgstr "변환 목표:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" -msgstr "⺻ ڵ ڵԴϴ.\n" +msgstr "기본 인코딩은 현재 로캘의 인코딩입니다.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" -msgstr " -i, --indent 鿩 \n" +msgstr " -i, --indent 들여쓰기된 출력 형태\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -" --no-location ''#: ̸:ٹȣ' ʽϴ\n" +" --no-location ''#: 파일이름:줄번호' 줄을 쓰지 않습니다\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -" --add-location '#: filename:line' ϴ (⺻)\n" +" --add-location '#: filename:line' 줄을 만듭니다 (기본값)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" -msgstr " --strict Uniforum · ϴ\n" +msgstr " --strict 엄격한 Uniforum 출력 형태로 씁니다\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" -msgstr "Է ־ ʾҽϴ" +msgstr "입력 파일이 주어지지 않았습니다" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" -msgstr "Ȯ Է ʿմϴ" +msgstr "정확히 한 개의 입력 파일이 필요합니다" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr ": %s [<ɼ>] <Է>\n" +msgstr "사용법: %s [<옵션>] <입력파일>\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1500,27 +1521,27 @@ "xgettext). Untranslated entries are assigned a translation that is\n" "identical to the msgid.\n" msgstr "" -" ϴ. Է ֱٿ \n" -"PO ̰ų, PO Ʋ Դϴ (Ϲ xgettext ϴ).\n" -" ׸ msgid Ҵ ̰,\n" -" ǥõ Դϴ.\n" +"영어 번역 목록을 만듭니다. 입력 파일은 최근에 만들어진 영어\n" +"PO 파일이거나, PO 틀 파일입니다 (일반적으로 xgettext로 만듭니다).\n" +"번역되지 않은 항목은 msgid와 동일한 번역문이 할당될 것이고,\n" +"퍼지로 표시될 것입니다.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" -msgstr " <Է> Է PO Ȥ POT \n" +msgstr " <입력파일> 입력 PO 파일 혹은 POT 파일\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" -msgstr "ɾ ̸ ϴ" +msgstr "명령어 이름이 빠졌습니다" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr ": %s [<ɼ>] <ɾ> [<ɾ-ɼ>]\n" +msgstr "사용법: %s [<옵션>] <명령어> [<명령어-옵션>]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1529,300 +1550,283 @@ "msgexec's output. msgexec's return code is the maximum return code\n" "across all invocations.\n" msgstr "" -" ɾ մϴ. <ɾ> ǥ\n" -"Է¿ о̴  α׷̶ ֽϴ. \n" -"α׷ ˴ϴ. α׷ \n" -" msgexec ˴ϴ. α׷ \n" -"ū ڵ尡 msgexec ڵ尡 ˴ϴ.\n" +"번역 목록의 모든 번역문에 대해 명령어를 실행합니다. <명령어>는 표준\n" +"입력에서 번역문을 읽어들이는 어떤 프로그램이라도 될 수 있습니다. 이\n" +"프로그램은 각각의 번역문에 대해 한 번씩 실행됩니다. 이 프로그램의 \n" +"출력은 msgexec의 출력이 됩니다. 프로그램을 번역문마다 실행했을 때 가장 \n" +"큰 리턴 코드가 msgexec의 리턴 코드가 됩니다.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -"Ư ɾ '0' ״ ϰ, 0 Ʈ \n" -"մϴ. \"msgexec 0\" ¹ \"xargs -0\" Է ϱ⿡ մϴ\n" +"특별히 내부 명령어 '0'은 번역문을 그대로 출력하고, 맨 끝에 0 널 바이트를 \n" +"출력합니다. \"msgexec 0\"의 출력물은 \"xargs -0\"의 입력으로 사용하기에 적합합니다\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" -msgstr " -i, --input=<Է> Է PO \n" +msgstr " -i, --input=<입력파일> 입력 PO 파일\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "ǥ ¿ Ⱑ ߽ϴ" +msgstr "표준 출력에 쓰기가 실패했습니다" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" -msgstr "%s μ Ⱑ ߽ϴ" +msgstr "%s 하위 프로세스에 쓰기가 실패했습니다" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" -msgstr " ̸ ϴ" +msgstr "필터 이름이 빠졌습니다" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" -msgstr "ּ sed ũƮ ؾ մϴ" +msgstr "최소한 한 개의 sed 스크립트를 지정해야 합니다" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr ": %s [<ɼ>] <> [<-ɼ>]\n" +msgstr "사용법: %s [<옵션>] <필터> [<필터-옵션>]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" -msgstr " Ͽ ͸ մϴ.\n" +msgstr "번역 목록의 모든 번역문에 대하여 필터를 적용합니다.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -"\"\" ǥ Է¿ о ǥ \n" -"ϴ α׷̸  α׷̵ մϴ.\n" +"\"필터\"는 표준 입력에서 번역문을 읽어서 수정된 번역문을 표준 출력으로\n" +"출력하는 프로그램이면 어떤 프로그램이든 가능합니다.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -msgstr "<> 'sed' <-ɼ>:\n" +msgstr "<필터>가 'sed'일 때 유용한 <필터-옵션>들:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" -msgstr " -e, --expression=<ũƮ> ɾ <ũƮ> մϴ\n" +msgstr "" +" -e, --expression=<스크립트> 실행할 명령어에 <스크립트>를 추가합니다\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " "commands\n" " to be executed\n" msgstr "" -" -f, --file=<ũƮ> <ũƮ> ɾ\n" -" մϴ.\n" +" -f, --file=<스크립트파일> <스크립트파일>의 내용을 실행할 명령어에\n" +" 추가합니다.\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -" -n, --quiet, --silent ڵ ʵ մϴ\n" +" -n, --quiet, --silent 패턴 공백을 자동으로 출력하지 않도록 합니다\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -" --no-escape ¿ C ̽ ʽϴ (⺻)\n" +" --no-escape 출력에 C 이스케이프를 쓰지 않습니다 (기본값)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" -msgstr " --indent 鿩 Ÿ\n" +msgstr " --indent 들여 쓰기된 출력 스타일\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -" --keep-header ׸ ʽϴ. ͸ ʽ" -"ϴ.\n" - -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr " ʾҽϴ." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "%s μ ϴ" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "%s μ ſ ߽ϴ" +" --keep-header 헤더 항목을 수정하지 않습니다. 필터링하지 않습" +"니다.\n" -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "%s μ бⰡ ߽ϴ" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s μ ڵ %d() ϴ" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" -msgstr "%s ڴ ڿ մϴ" +msgstr "%s의 인자는 한 개의 구두점 문자여야 합니다" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" -msgstr " ƲȽϴ: %s" +msgstr "엔디안이 틀렸습니다: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" -msgstr "︮ 巹 (Ulrich Drepper)" +msgstr "울리히 드레퍼 (Ulrich Drepper)" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" -msgstr "%s() \"-d 丮\" ʿմϴ" +msgstr "%s은(는) \"-d 디렉터리\" 지정이 필요합니다" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" -msgstr "%s() \"-d \" ʿմϴ" +msgstr "%s은(는) \"-d 로캘\" 지정이 필요합니다" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" -msgstr "%s() %s Ȥ %s() Բ ߸ ȿ ֽϴ" +msgstr "%s은(는) %s 혹은 %s과(와) 함께 써야만 효과가 있습니다" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" -msgstr "%s() %s, %s Ȥ %s() Բ ߸ ȿ ֽϴ" +msgstr "%s은(는) %s, %s 혹은 %s과(와) 함께 써야만 효과가 있습니다" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" -msgstr[0] " ޽ %d" +msgstr[0] "번역된 메시지 %d개" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" -msgstr[0] ", %d" +msgstr[0] ", 퍼지 번역문 %d개" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" -msgstr[0] ", ޽ %d" +msgstr[0] ", 번역되지 않은 메시지 %d개" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" -msgstr ": %s [<ɼ>] ≮>.po ...\n" +msgstr "사용법: %s [<옵션>] <파일이름>.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" -msgstr "־ ޼ ϴ.\n" +msgstr "주어진 번역문에서 이진 메시지 목록 파일을 만들어 냅니다.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -" ɼǿ ʿ μ ª ɼǿ ʿմϴ.\n" -" Ǵ ڵ Դϴ.\n" +"긴 옵션에서 꼭 필요한 인수는 짧은 옵션에도 꼭 필요합니다.\n" +"없어도 되는 인자도 마찬가지입니다.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" -msgstr " ≮>.po ... Է \n" +msgstr " <파일이름>.po ... 입력 파일\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" -msgstr " :\n" +msgstr "동작 모드:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -" -j, --java ڹ : ڹ ResourceBundle Ŭ " -"\n" +" -j, --java 자바 모드: 자바 ResourceBundle 클래스를 만듭니" +"다\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -" --java2 --java , Java2 մϴ(JDK 1.2 " -")\n" +" --java2 --java와 같지만, Java2를 가정합니다(JDK 1.2 이" +"상)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" -msgstr " --csharp C# : .NET .dll ϴ\n" +msgstr " --csharp C# 모드: .NET .dll 파일을 만듭니다\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -" --csharp-resources C# ҽ : .NET .resources " -"\n" +" --csharp-resources C# 리소스 모드: .NET .resources 파일을 만듭니" +"다\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -" --tcl Tcl : tcl/msgcat .msg ϴ\n" +" --tcl Tcl 모드: tcl/msgcat .msg 파일을 만듭니다\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" -msgstr " --qt Qt : Qt .qm ϴ\n" +msgstr " --qt Qt 모드: Qt .qm 파일을 만듭니다\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" -msgstr " --strict Uniforum · ϴ\n" +msgstr " --strict 엄격한 Uniforum 출력 형태로 씁니다\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" -msgstr " -̸, ǥ ¿ ϴ.\n" +msgstr "출력 파일이 -이면, 출력은 표준 출력에 씁니다.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" -msgstr "ڹ 忡 ġ:\n" +msgstr "자바 모드에서 출력 파일 위치:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" -msgstr " -r, --resource=<ҽ> ҽ ̸\n" +msgstr " -r, --resource=<리소스> 리소스 이름\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" -msgstr " -l, --locale=<> ̸, Ȥ _\n" +msgstr " -l, --locale=<로캘> 로캘 이름, 언어 혹은 언어_국가\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" -msgstr " -d <丮> Ŭ 丮 ̽ 丮\n" +msgstr " -d <디렉터리> 클래스 디렉터리 구조의 베이스 디렉터리\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1830,57 +1834,54 @@ "separated with an underscore. The -d option is mandatory. The class is\n" "written under the specified directory.\n" msgstr "" -"Ŭ ̸ ҽ ̸ ̸, ̿ ٷ ؼ \n" -"̸ ˴ϴ. -d ɼ ʿմϴ. Ŭ 丮\n" -"Ʒ µ˴ϴ.\n" +"클래스 이름은 리소스 이름에 로캘 이름을, 사이에 밑줄로 구분해서 덧붙인 \n" +"이름으로 결정됩니다. -d 옵션은 꼭 필요합니다. 클래스는 지정한 디렉터리\n" +"아래에 출력됩니다.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" -msgstr "C# 忡 ġ:\n" +msgstr "C# 모드에서 출력 파일 위치:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" -msgstr "" -" -d <丮> .dll ̽ 丮\n" +msgstr " -d <디렉터리> 로캘 의존 .dll 파일의 베이스 디렉터리\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"-l -d ɼ ʿմϴ. .dll 丮 (Ͽ " -"޶ ̸) Ʒ 丮 ϴ.\n" +"-l과 -d 옵션은 꼭 필요합니다. .dll 파일은 지정한 디렉터리의 (로캘에 따라 달라" +"지는 이름의) 아래 디렉터리에 씁니다.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" -msgstr "Tcl 忡 ġ:\n" +msgstr "Tcl 모드에서 출력 파일 위치:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" -msgstr " -d <丮> .msg ޼ ̽ 丮\n" +msgstr " -d <디렉터리> .msg 메시지 목록의 베이스 디렉터리\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" -msgstr "" -"-l -d ɼ ʿմϴ. .msg 丮\n" -"ϴ.\n" +msgstr "-l과 -d 옵션은 꼭 필요합니다. .msg 파일은 지정한 디렉터리에 씁니다.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" -msgstr "Է ؼ:\n" +msgstr "입력 파일 해석:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1888,160 +1889,160 @@ "domain\n" msgstr "" " -c, --check --check-format, --check-header, \n" -" --check-domain ϴ ˻縦 մ" -"\n" +" --check-domain에서 하는 검사를 모두 수행합니" +"다\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" -msgstr " --check-format  ڿ ˻մϴ\n" +msgstr " --check-format 언어에 따라 포맷 문자열을 검사합니다\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -" --check-header ׸ ִ ˻մϴ\n" +" --check-header 헤더 항목이 있는지와 그 내용을 검사합니다\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -" --check-domain --output-file ɼ \n" -" 浹 ʴ ˻մϴ\n" +" --check-domain 도메인 지정과 --output-file 옵션의 도메인이\n" +" 충돌하지 않는지 검사합니다\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -" -C, --check-compatibility GNU msgfmt X/Open msgfmtó ˻մϴ\n" +" -C, --check-compatibility GNU msgfmt이 X/Open의 msgfmt처럼 검사합니다\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " "for\n" " menu items\n" msgstr "" -" --check-accelerators[=CHAR] ޴ ۿ Ű ۼ谡 ִ \n" -" ˻մϴ\n" +" --check-accelerators[=CHAR] 메뉴 아이템에 키보드 단축글쇠가 있는지 \n" +" 검사합니다\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" -msgstr " -f, --use-fuzzy ¿ ׸ մϴ\n" +msgstr " -f, --use-fuzzy 출력에 퍼지 항목을 사용합니다\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -" -a, --alignment=<ũ> ڿ <ũ> Ʈ մϴ(⺻: %" -"d)\n" +" -a, --alignment=<크기> 문자열을 <크기> 바이트에 정렬합니다(기본값: " +"%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -" --no-hash Ͽ ؽ ̺ ʽϴ\n" +" --no-hash 이진 파일에 해쉬 테이블을 넣지 않습니다\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" -msgstr " --statistics 踦 ǥմϴ\n" +msgstr " --statistics 번역에 대한 통계를 표시합니다\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" -msgstr " -v, --verbose ڼ մϴ\n" +msgstr " -v, --verbose 더 자세히 출력합니다\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" -msgstr ": PO ų ߸Ǿϴ\n" +msgstr "경고: PO 파일 헤더가 빠졌거나 잘못되었습니다\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" -msgstr ": ڼ ȯ Դϴ\n" +msgstr "경고: 문자셋 변환이 동작하지 않을 것입니다\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" -msgstr ": PO Դϴ\n" +msgstr "경고: PO 파일 헤더가 퍼지입니다\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" -msgstr ": msgfmt ⿡ Դϴ\n" +msgstr "경고: 과거 버전의 msgfmt은 여기에 오류를 낼 것입니다\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" -msgstr "̸ \"%s\"() ̸ ˸ ʽϴ" +msgstr "도메인이름 \"%s\"은(는) 파일 이름으로 알맞지 않습니다" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" -"̸ \"%s\"() ̸ ˸ ʽϴ. ׷Ƿ λ縦\n" -" Դϴ" +"도메인이름 \"%s\"은(는) 파일 이름으로 알맞지 않습니다. 그러므로 접두사를\n" +"사용할 것입니다" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" -msgstr "`domain %s' ڴ õ" +msgstr "`domain %s' 지시자는 무시됨" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" -msgstr " `msgstr' ׸ õ" +msgstr "빈 `msgstr' 항목은 무시됨" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" -msgstr " `msgstr' ׸ õ" +msgstr "퍼지 `msgstr' 항목은 무시됨" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" -msgstr "%s: : ҽ ϰ ֽϴ" +msgstr "%s: 경고: 소스 파일이 퍼지 번역문을 포함하고 있습니다" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" -msgstr "\"%s\"() д ߻" +msgstr "\"%s\"을(를) 읽는 동안 오류 발생" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -"'%c' ɼ 'J' 'K' 'T' 'C' 'X' DZ ϴ" +"'%c' 옵션은 'J'나 'K'나 'T'나 'C'나 'X'가 지정되기 전에는 쓸 수 없습니다" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -" Ͽ ־ Ͽ ´ ޼ Ȥ ־ ҽ Ͽ ִ\n" -"޼ ̾ ϴ.\n" +"번역 목록에서 주어진 패턴에 맞는 메시지 혹은 주어진 소스 파일에 들어 있는\n" +"메시지만을 뽑아 냅니다.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2080,163 +2081,163 @@ " -v, --invert-match output only the messages that do not match any\n" " selection criterion\n" msgstr "" -"޼ :\n" -" [-N ҽ]... [-M ̸]...\n" -" [-J MSGCTXT-] [-K MSGID-] [-T MSGSTR-]\n" -" [ -C ּ- ] [-X -ּ-]\n" -"޼ մϴ: ҽ ϳ ޼,\n" -"Ȥ ϳ ޼\n" -"Ȥ -J ɼ ٸ ؽƮ(msgctxt) \"MSGCTXT-\" ´ ,\n" -"Ȥ -K ɼ ٸ Ű(msgid msgid_plural) \"MSGID-\" ´ ,\n" -"Ȥ -T ɼ ٸ (msgstr) \"MSGSTR-\" ´ ,\n" -"Ȥ -C ɼ ٸ ּ \"ּ-\" ´ ,\n" -"Ȥ -X ɼ ٸ ּ \"-ּ-\" ´ .\n" +"메시지 선택:\n" +" [-N 소스파일]... [-M 도메인이름]...\n" +" [-J MSGCTXT-패턴] [-K MSGID-패턴] [-T MSGSTR-패턴]\n" +" [ -C 주석-패턴 ] [-X 추출한-주석-패턴]\n" +"메시지를 선택합니다: 지정한 소스 파일중 하나에서 나온 메시지,\n" +"혹은 지정한 도메인중 하나에서 나온 메시지\n" +"혹은 -J 옵션을 쓴다면 그 컨텍스트(msgctxt)가 \"MSGCTXT-패턴\"과 맞는 경우,\n" +"혹은 -K 옵션을 쓴다면 그 키(msgid나 msgid_plural)가 \"MSGID-패턴\"과 맞는 경우,\n" +"혹은 -T 옵션을 쓴다면 그 번역(msgstr)이 \"MSGSTR-패턴\"과 맞는 경우,\n" +"혹은 -C 옵션을 쓴다면 그 번역자 주석이 \"주석-패턴\"과 맞는 경우,\n" +"혹은 -X 옵션을 쓴다면 그 추출한 주석이 \"추출한-주석-패턴\"과 맞는 경우.\n" "\n" -"ϴ Ǵ , õǴ ޼ ϴ\n" -" õ ޼ մϴ.\n" +"선택하는 방법이 여러 개 지정되는 경우, 선택되는 메시지는 각 선택하는\n" +"방법으로 선택된 메시지들의 공집합니다.\n" "\n" -"\"MSGCTXT-\" Ȥ \"MSGID-\" Ȥ \"MSGSTR-\" Ȥ \"ּ-\" Ȥ\n" -"\"-ּ-\" :\n" -" [-E | -F] [-e | -f ]...\n" -"⺻ \"\" Խ̰, -E ־ Ȯ Խ̰, -F\n" -"־ ڿԴϴ.\n" +"\"MSGCTXT-패턴\" 혹은 \"MSGID-패턴\" 혹은 \"MSGSTR-패턴\" 혹은 \"주석-패턴\" 혹은\n" +"\"추출한-주석-패턴\"의 형식:\n" +" [-E | -F] [-e 패턴 | -f 파일]...\n" +"기본값으로 \"패턴\"은 간단한 정규식이고, -E가 주어진 경우 확장 정규식이고, -F가\n" +"주어진 경우 고정된 문자열입니다.\n" "\n" -" -N, --location=<ҽ> <ҽ> ޼ մϴ\n" -" -M, --domain=≮> ≮> ο ޼ մϴ\n" -" -J, --msgctxt msgctxt \n" -" -K, --msgid msgid \n" -" -T, --msgstr msgstr \n" -" -C, --comment ּ \n" -" -X, --extracted-comment ּ \n" -" -E, --extended-regexp \"\" Ȯ ԽԴϴ\n" -" -F, --fixed-strings \"\" ٹٲ е ڿ Դϴ\n" -" -e, --regexp=<> <> Խ մϴ\n" -" -f, --file=<> \"\" <> ɴϴ\n" -" -i, --ignore-case ҹ ʽϴ\n" -" -v, --invert-match ɼǿ ʴ ޼ մϴ\n" +" -N, --location=<소스파일> <소스파일>에서 메시지를 선택합니다\n" +" -M, --domain=<도메인이름> <도메인이름> 도메인에 속한 메시지를 선택합니다\n" +" -J, --msgctxt msgctxt의 시작 패턴\n" +" -K, --msgid msgid의 시작 패턴\n" +" -T, --msgstr msgstr의 시작 패턴\n" +" -C, --comment 번역자 주석의 시작 패턴\n" +" -X, --extracted-comment 추출한 주석의 시작 패턴\n" +" -E, --extended-regexp \"패턴\"이 확장 정규식입니다\n" +" -F, --fixed-strings \"패턴\"이 줄바꿈으로 구분된 문자열 집합입니다\n" +" -e, --regexp=<패턴> <패턴>을 정규식으로 사용합니다\n" +" -f, --file=<파일> \"패턴\"을 <파일>에서 가져옵니다\n" +" -i, --ignore-case 대소문자 구별을 하지 않습니다\n" +" -v, --invert-match 지정한 옵션에 맞지 않는 메시지만을 출력합니다\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -" --escape Ȯ , ¿ C ̽ ϴ\n" +" --escape 확장 문자 없이, 출력에 C 이스케이프를 씁니다\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" -msgstr " --sort-output ĵ ϴ\n" +msgstr " --sort-output 정렬된 출력을 만듭니다\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" -msgstr " --sort-by-file ġ մϴ\n" +msgstr " --sort-by-file 파일의 위치에 따라 출력을 정렬합니다\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -" ȯԴϴ. ABOUT-NLS Ͽ \n" -" LANG ȯ溯 Ͻʽÿ. ؾ߸ \n" -" ׽Ʈ ֽϴ.\n" +"언어가 지정되지 않은 환경입니다. ABOUT-NLS 파일에 설명된 대로\n" +"여러분의 LANG 환경변수를 세팅하십시오. 세팅해야만이 여러분의\n" +"번역문을 테스트할 수 있습니다.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" "Please specify the locale through the --locale option or\n" "the output .po file through the --output-file option.\n" msgstr "" -" %s() ̹ մϴ.\n" -"--locale ɼ ϰų --output-file ɼ\n" -" .po Ͻʽÿ.\n" +"출력 파일 %s이(가) 이미 존재합니다.\n" +"--locale 옵션으로 로캘을 지정하거나 --output-file 옵션으로\n" +"출력 .po 파일을 지정하십시오.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" -msgstr "%s() ϴ.\n" +msgstr "%s을(를) 만들었습니다.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -"ο PO , ȯ濡 Ÿ \n" -"ʱȭմϴ\n" +"새로운 PO 파일을 만들고, 사용자의 환경에서 메타 정보들을\n" +"초기화합니다\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" -msgstr " -i, --input=<Է> Է POT \n" +msgstr " -i, --input=<입력파일> 입력 POT 파일\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " "file.\n" "If it is -, standard input is read.\n" msgstr "" -" Է ־ , 丮 POT ãϴ.\n" -"Է \"-\"̸, ǥ Է нϴ.\n" +"만약 입력 파일이 주어지지 않으면, 현재 디렉터리에서 POT 파일을 찾습니다.\n" +"입력 파일이 \"-\"이면, 표준 입력을 읽습니다.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" -msgstr " -o, --output-file=<> PO Ϸ մϴ\n" +msgstr " -o, --output-file=<파일> 지정한 PO 파일로 출력합니다\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -" ־ , --locale ɼ̳ ÿ\n" -" ˴ϴ. \"-\"̸, ǥ ¿ ϴ.\n" +"만약 출력 파일이 주어지지 않으면, --locale 옵션이나 사용자의 로캘 세팅에\n" +"따라 결정됩니다. 출력 파일이 \"-\"이면, 표준 출력에 씁니다.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" -msgstr " -l, --locale=LL_CC ǥ մϴ\n" +msgstr " -l, --locale=LL_CC 목표 로캘을 지정합니다\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -" --no-translator PO ڵ ٰ մϴ\n" +" --no-translator PO 파일이 자동으로 만들어졌다고 가정합니다\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -" ̻ .pot ãҽϴ.\n" -"Է .pot --input ɼ Ͻʽÿ.\n" +"두 개 이상의 .pot 파일을 찾았습니다.\n" +"입력 .pot 파일을 --input 옵션으로 지정하십시오.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" -msgstr " 丮 д ߻߽ϴ" +msgstr "현재 디렉터리를 읽는 데 오류가 발생했습니다" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -" 丮 .pot ã ϴ.\n" -"--input ɼ Է .pot Ͻʽÿ.\n" +"현재 디렉터리에서 .pot 파일을 찾을 수 없습니다.\n" +"--input 옵션으로 입력 .pot 파일을 지정하십시오.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" -msgstr "%s μ ڵ %d() ߽ϴ" +msgstr "%s 하위 프로세스가 종료 코드 %d 번으로 실패했습니다" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2244,66 +2245,65 @@ "contact\n" "you in case of unexpected technical problems.\n" msgstr "" -"ο ޼ Ͽ ݵ ̸ ּҰ  ־ մ" -". \n" -"׷߸ ڰ ǵ ְ, ̳ʰ ۽ \n" -" ߻ п ֽϴ.\n" +"새로운 메시지 목록에는 반드시 여러분의 이메일 주소가 들어가 있어야 합니다.\n" +"그래야만 사용자가 번역에 대한 피드백을 줄 수 있고, 메인테이너가 갑작스런 \n" +"기술적 문제가 발생했을 때 여러분에게 연락을 할 수 있습니다.\n" #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" -msgstr "%s Ű ѱ " +msgstr "%s 패키지에 대한 한국어 번역문" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" -msgstr " ڼ \"%s\"() θ ִ ڵ ̸ ƴմϴ" +msgstr "현재 문자셋 \"%s\"은(는) 널리 쓸 수 있는 인코딩 이름이 아닙니다" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" -msgstr "Է Ͽ ڼ \"%s\"() \"%s\"() մϴ" +msgstr "입력 파일에 두 개의 문자셋 \"%s\"과(와) \"%s\"이(가) 존재합니다" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" -msgstr "Է `%s' ڼ ϴ ׸ ʽϴ" +msgstr "입력 파일 `%s'에는 문자셋을 지정하는 헤더 항목이 들어 있지 않습니다" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -"Է `%2$s' \"%1$s\" ڼ ϴ ׸ " -" ʽϴ" +"입력 파일 `%2$s'의 도메인 \"%1$s\"에는 문자셋을 지정하는 헤더 항목이 들어 있" +"지 않습니다" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." -msgstr "ǥ ڼ \"%s\"() θ ִ ڵ ̸ ƴմϴ." +msgstr "목표 문자셋 \"%s\"은(는) 널리 쓸 수 있는 인코딩 이름이 아닙니다." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " -msgstr ": " +msgstr "경고: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -"Է ڵ ޼ ְ, ϳ \n" -"UTF-8Դϴ. UTF-8 ȯմϴ.\n" +"입력 파일은 여러 개의 인코딩으로 된 메시지가 들어 있고, 그 중의 하나가 \n" +"UTF-8입니다. 출력을 UTF-8으로 변환합니다.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2311,11 +2311,11 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Է ڵ ޼ ְ, ߿ %s()\n" -"%s() ֽϴ. UTF-8 ȯմϴ.\n" -"ٸ ڵ Ϸ, --to-code ɼ .\n" +"입력 파일은 여러 개의 인코딩으로 된 메시지가 들어 있고, 그 중에 %s과(와)\n" +"%s이(가) 있습니다. 출력을 UTF-8으로 변환합니다.\n" +"다른 출력 인코딩을 선택하려면, --to-code 옵션을 쓰세요.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2323,12 +2323,12 @@ "Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -"%s %s ڵ %s ڵ ȯϸ Ϻ msgid msgctxt ٲٰ " -"˴ϴ.\n" -" msgid msgctxt ASCII ٲٰų, ó (ҽڵ) UTF-8\n" -"ڵ ʽÿ.\n" +"%s 파일을 %s 인코딩에서 %s 인코딩으로 변환하면 일부 msgid와 msgctxt를 바꾸게 " +"됩니다.\n" +"모든 msgid와 msgctxt를 순수 ASCII로 바꾸거나, 처음부터 (소스코드부터) UTF-8\n" +"인코딩으로 만드십시오.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2336,28 +2336,28 @@ "Output of '%s' might be incorrect.\n" "Possible workarounds are:\n" msgstr "" -" ڼ \"%s\"() Է \n" -"ڼ \"%s\"() ٸϴ.\n" -"'%s'() ϴ Ʋ ֽϴ.\n" -" ذå:\n" +"로캘 문자셋 \"%s\"은(는) 입력 파일의\n" +"문자셋 \"%s\"과(와) 다릅니다.\n" +"'%s'로(으로) 출력하는 것이 틀렸을 수 있습니다.\n" +"가능한 해결책은:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" -msgstr "- LC_ALL ȯ溯 %s ڵ Ϸ Ͻʽÿ.\n" +msgstr "- LC_ALL 환경변수를 %s 인코딩을 쓰는 로캘로 세팅하십시오.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" -"- 'msgconv' ̿ %s() ȯϽʽÿ\n" -" '%s'() ϰ,\n" -" ٽ 'msgconv' ̿ '%s'() ȯϽʽÿ\n" +"- 번역 목록을'msgconv'를 이용해 %s로(으로) 변환하십시오\n" +" 그 다음 '%s'을(를) 적용하고,\n" +" 다시 'msgconv'를 이용해 '%s'로(으로) 변환하십시오\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2365,209 +2365,209 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" -"- LC_ALL ȯ溯 %s ڵ Ϸ ϰ,\n" -" 'msgconv' ̿ %s() ȯϽʽÿ\n" -" '%s'() ϰ,\n" -" ٽ 'msgconv' ̿ '%s'() ȯϽʽÿ\n" +"- LC_ALL 환경변수를 %s 인코딩을 쓰는 로캘로 세팅하고,\n" +" 번역 목록을'msgconv'를 이용해 %s로(으로) 변환하십시오\n" +" 그 다음 '%s'을(를) 적용하고,\n" +" 다시 'msgconv'를 이용해 '%s'로(으로) 변환하십시오\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" "Output of '%s' might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" msgstr "" -"ǥ ڼ \"%s\"() θ ִ ڵ ̸ ƴմϴ\n" -"'%s'() ϴ Ʋ ֽϴ.\n" -" ذå \"LC_ALL=C\" ϴ Դϴ.\n" +"목표 문자셋 \"%s\"은(는) 널리 쓸 수 있는 인코딩 이름이 아닙니다\n" +"'%s'로(으로) 출력하는 것이 틀렸을 수 있습니다.\n" +"가능한 해결책은 \"LC_ALL=C\"로 세팅하는 것입니다.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" -msgstr " ǥ ֽϴ" +msgstr "복수 표현식이 음수 값을 만들 수도 있습니다" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" -msgstr "nplurals = %lu ǥ %luŭ ū ֽϴ" +msgstr "nplurals = %lu 하지만 복수 표현식이 %lu만큼 큰 값을 만들 수도 있습니다" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" -msgstr " ǥ 0 ֽϴ" +msgstr "복수 표현식이 0으로 나누는 연산을 할 수도 있습니다" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" -msgstr " ǥ ÷ο츦 ߻ų ֽϴ" +msgstr "복수 표현식이 정수 오버플로우를 발생시킬 수 있습니다" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -" ǥ ܸ ߻ų ֽϴ. 0 " -"ϴ" +"복수 표현식이 연산 예외를 발생시킬 수 있습니다. 0으로 나누는 연산을 할 수 있" +"습니다" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" -msgstr " ʽÿ. %s ؼ ùٸ:" +msgstr "다음을 사용해 보십시오. %s에 대해서 올바름:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" -msgstr "޼ ֽϴ" +msgstr "메시지 목록은 복수형 번역이 들어 있습니다" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" -msgstr " ׸񿡴 \"plural=ǥ\" Ӽ ʽϴ" +msgstr "하지만 헤더 항목에는 \"plural=표현식\" 속성이 들어 있지 않습니다" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" -msgstr " ׸񿡴 \"nplurals=\" Ӽ ʽϴ" +msgstr "하지만 헤더 항목에는 \"nplurals=정수\" 속성이 들어 있지 않습니다" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" -msgstr "nplurals ߸Ǿϴ" +msgstr "nplurals 값이 잘못되었습니다" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" -msgstr "߸ ǥ" +msgstr "잘못된 복수 표현식" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "  ޼ %lu ۿ ϴ" +msgstr[0] "하지만 어떤 메시지는 %lu개의 복수 형밖에 없습니다" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "  ޼ %lu ֽϴ" +msgstr[0] "하지만 어떤 메시지는 %lu개의 복수 형이 있습니다" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -"޼ Ͽ , ׸ \"Plural-Forms: " -"nplurals=; plural=ǥ;\" ϴ" +"메시지 목록에 복수형 번역이 들어 있지만, 헤더 항목에 \"Plural-Forms: " +"nplurals=정수; plural=표현식;\"이 없습니다" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" -msgstr "`msgid' `msgstr_plural' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgstr_plural' 항목이 모두 '\\n'으로 시작하지 않습니다" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -msgstr "`msgid' `msgstr[%u]' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgstr[%u]' 항목이 모두 '\\n'으로 시작하지 않습니다" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" -msgstr "`msgid' `msgstr' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgstr' 항목이 모두 '\\n'으로 시작하지 않습니다" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" -msgstr "`msgid' `msgid_plural' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgid_plural' 항목이 모두 '\\n'으로 끝나지 않습니다" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" -msgstr "`msgid' `msgstr[%u]' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgstr[%u]' 항목이 모두 '\\n'으로 끝나지 않습니다" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" -msgstr "`msgid' `msgstr' ׸ '\\n' ʽϴ" +msgstr "`msgid'와 `msgstr' 항목이 모두 '\\n'으로 끝나지 않습니다" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" -msgstr " ó GNU gettext Ȯ Դϴ" +msgstr "복수 처리는 GNU gettext 확장 기능입니다" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" -msgstr "msgstr Ű Ű '%c' ǥð ϴ" +msgstr "msgstr에 키보드 단축키 '%c'에 대한 표시가 없습니다" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" -msgstr "msgstr Ű Ű '%c' ǥð ʹ ϴ" +msgstr "msgstr에 키보드 단축키 '%c' 표시가 너무 많습니다" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr " ʵ `%s'() \n" +msgid "header field `%s' missing in header\n" +msgstr "헤더에 헤더 필드 `%s'이(가) 빠졌음\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr " ʵ `%s'() ó ؾ մϴ\n" +msgstr "헤더 필드 `%s'은(는) 행의 처음부터 시작해야 합니다\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" -msgstr " ʵ尡 ʱ ֽϴ\n" +msgstr "몇몇 헤더 필드가 아직도 초기의 기본값을 가지고 있습니다\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "`%s' ʵ尡 ʱ ֽϴ\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "'%s' 헤더 필드가 아직도 초기의 기본값을 가지고 있습니다\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" -msgstr "%s: Է \"%s\" ڵ ùٸ ʽϴ" +msgstr "%s: 입력이 \"%s\" 인코딩에서 올바르지 않습니다" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "%s: \"%s\" ڵ \"%s\" ڵ ȯϴ ߻" +msgstr "%s: \"%s\" 인코딩에서 \"%s\" 인코딩으로 변환하는 동안 오류 발생" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" -msgstr "Է ڼ ϴ ׸ ʽϴ" +msgstr "입력 파일은 문자셋을 지정하는 헤더 항목이 들어 있지 않습니다" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -"\"%s\" \"%s\"() ȯ ϴ. %s() iconv() " -", iconv() ̰ ȯ ʽϴ." +"\"%s\"에서 \"%s\"로(으로) 변환할 수 없습니다. %s은(는) iconv()에 의존하지만, " +"iconv()가 이같은 변환을 지원하지 않습니다." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -"\"%s\" \"%s\"() ȯϸ ߺ˴ϴ: ٸ ̻ msgid Ȱ" -" ϴ." +"\"%s\"에서 \"%s\"(으)로 변환하면 중복됩니다: 다른 두 개 이상의 msgid가 똑같" +"아 집니다." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -"\"%s\" \"%s\"() ȯ ϴ. %s() iconv() , " -" iconv() ʴ · Ǿϴ." +"\"%s\"에서 \"%s\"로(으로) 변환할 수 없습니다. %s은(는) iconv()에 의존하지만, " +"이 버전은 iconv()를 지원되지 않는 상태로 빌드되었습니다." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" -msgstr "%s() %s() Բ ߸ ȿ ֽϴ" +msgstr "%s은(는) %s과(와) 함께 써야만 효과가 있습니다" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" -msgstr " " +msgstr "백업 종류" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2580,67 +2580,67 @@ "comments and file positions will be preserved. Where an exact match\n" "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -"Uniforum ϳ Ĩϴ. def.po ̹ \n" -"ϴ ̸ ޽ ֽϴ. \n" -"¦ ִ Ϳ Ӱ ü˴ϴ; ּ \n" -" ּ ġ ŵ˴ϴ. ref.pot ֱٿ\n" -"鼭 ֽ ҽ ؼ \n" -"̰ų, PO Ʋ Դϴ (Ϲ xgettext ϴ); \n" -" ̳ ּ ŵ ּ ġ \n" -"˴ϴ. Ȯ ¦ ã , \n" -"Ī ˴ϴ.\n" +"Uniforum 형태의 두 파일을 하나로 합칩니다. def.po 파일은 이미 \n" +"존재하는 파일이며 예전에 번역된 메시지를 담고 있습니다. 이 번역문들은\n" +"짝이 있는 것에 한해 새롭게 만들어진 파일의 것으로 대체됩니다; 주석은 \n" +"보존되지만 추출 주석과 파일 위치는 제거됩니다. ref.pot 파일은 최근에\n" +"만들어졌으면서 최신의 소스를 참조해서 만들어 졌지만 과거의 번역문을 가진 \n" +"파일이거나, PO 틀 파일입니다 (일반적으로 xgettext에 의해 만들어집니다); \n" +"파일 내의 모든 번역문이나 주석은 제거되지만 점 주석과 파일 위치는 \n" +"보존됩니다. 정확한 짝을 찾지 못할 경우, 보다 나은 결과를 얻기 위해 퍼지 \n" +"매칭이 사용됩니다.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" -msgstr " def.po ҽ ϴ \n" +msgstr " def.po 과거 소스를 참조하는 번역문\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" -msgstr " ref.pot ο ҽ \n" +msgstr " ref.pot 새로운 소스를 참조\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -" -C, --compendium=<> ޼ ̺귯 ϱ,\n" -" ̻ ֽϴ\n" +" -C, --compendium=<파일> 메시지 번역 라이브러리 추가,\n" +" 두 개 이상 지정할 수 있습니다\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -" -U, --update def.po մϴ,\n" -" ̹ def.po ŵǾ ִٸ ƹ ͵ մ" -"\n" +" -U, --update def.po를 업데이트합니다\n" +" 이미 def.po를 업데이트했다면 아무 것도 안 합니" +"다\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" -msgstr "Ʈ 忡 ġ:\n" +msgstr "업데이트 모드에서 출력 파일 위치:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" -msgstr " def.poϷ ٽ ϴ.\n" +msgstr "결과물은 def.po파일로 다시 쓰여집니다.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" -msgstr " --backup=<Ʈ> def.po ϴ\n" +msgstr " --backup=<컨트롤> def.po의 백업을 만듭니다\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -" --suffix=<̾> Ϲ ̾ <̾> ϴ\n" +" --suffix=<접미어> 일반적인 백업 접미어 대신 <접미어>를 씁니다\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2651,168 +2651,165 @@ " existing, nil numbered if numbered backups exist, simple otherwise\n" " simple, never always make simple backups\n" msgstr "" -" Ʈ --backup ɼ̳ VERSION_CONTROL ȯ \n" -" ֽϴ. ֽϴ:\n" -" none, off ʽϴ (--backup ɼ )\n" -" nummbered, t ȣ ϴ\n" -" existing, nil ȣ ȣ ٿ, ׷ " -"\n" -" simple, never ϴ\n" +"버전 컨트롤 방법은 --backup 옵션이나 VERSION_CONTROL 환경 변수로 \n" +"선택할 수 있습니다. 다음의 값을 쓸 수 있습니다:\n" +" none, off 백업을 만들지 않습니다 (--backup 옵션이 있을지라도)\n" +" nummbered, t 번호를 붙인 백업을 만듭니다\n" +" existing, nil 번호를 붙인 백업이 있으면 번호를 붙여서, 그렇지 않으면 간단" +"히\n" +" simple, never 간단한 백업만을 만듭니다\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" -"--suffix ɼ̳ SIMPLE_BACKUP_SUFFIX ȯ ʾҴٸ, " -"̾ '~'Դϴ.\n" - -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching Ī ʽϴ\n" +"--suffix 옵션이나 SIMPLE_BACKUP_SUFFIX 환경 변수를 세팅하지 않았다면, 백업 접" +"미어는 '~'입니다.\n" -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -" --previous ޼ msgid Ӵϴ\n" +" --previous 이전에 번역한 메시지의 msgid를 놔 둡니다\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" -msgstr " -q, --quiet, --silent ǥø ʽϴ\n" +msgstr " -q, --quiet, --silent 진행상태 표시를 하지 않습니다\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" -msgstr " ޽ ؾ߸ մϴ" +msgstr "이 메시지는 복수형을 지정해야만 합니다" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" -msgstr " ޽ ؼ ˴ϴ" +msgstr "이 메시지는 복수형을 지정해서는 안 됩니다" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%s%ld + %ld , յ %ld, %ld, %ld, " -" %ld оϴ.\n" +"%s%ld개의 예전 것 + %ld개의 참조문, 결합된 것 %ld, 퍼지 %ld, 빠진 것 %ld, 쓸" +"모없는 것 %ld개를 읽었습니다.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" -msgstr " Ϸ.\n" +msgstr " 완료.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" -msgstr "%s() ̸ ϴ ÿ ϴ" +msgstr "%s과(와) 파일이름을 명시적으로 지정하는 것은 동시에 쓸 수 없습니다" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" -msgstr ": %s [<ɼ>] [<>]...\n" +msgstr "사용법: %s [<옵션>] [<파일>]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" -msgstr " ޼ Uniforum Ÿ .po Ϸ ȯմϴ.\n" +msgstr "이진 메시지 목록을 Uniforum 스타일 .po 파일로 변환합니다.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -" -j, --java ڹ : Է ڹ ResourceBundle Ŭ" -"ϴ\n" +" -j, --java 자바 모드: 입력은 자바 ResourceBundle 클래스입" +"니다\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" -msgstr " --csharp C# : Է .NET .dll Դϴ\n" +msgstr " --csharp C# 모드: 입력은 .NET .dll 파일입니다\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -" --csharp-resources C# ҽ : Է .NET .resources Դ" -"\n" +" --csharp-resources C# 리소스 모드: 입력은 .NET .resources 파일입니" +"다\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -" --tcl Tcl : Է tcl/msgcat .msg Դϴ\n" +" --tcl Tcl 모드: 입력은 tcl/msgcat .msg 파일입니다\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" -msgstr " <> ... Է .mo \n" +msgstr " <파일> ... 입력 .mo 파일\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" -msgstr "ڹ 忡 Է ġ:\n" +msgstr "자바 모드에서 입력 파일 위치:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " "name,\n" "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -"Ŭ ̸ ̸ ҽ ̸ ٷ ؼ ̸\n" -"˴ϴ. Ŭ CLASSPATH ġ ̰ ˴ϴ.\n" +"클래스 이름은 로캘 이름에 리소스 이름을 밑줄로 구분해서 연결한 이름으로\n" +"결정됩니다. 클래스는 CLASSPATH에 따른 위치에 놓이게 됩니다.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" -msgstr "C# 忡 Է :\n" +msgstr "C# 모드에서 입력 파일 지정:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"-l -d ɼ ʿմϴ. .dll 丮 (Ͽ " -"޶ ̸) Ʒ 丮 ֽϴ.\n" +"-l과 -d 옵션은 꼭 필요합니다. .dll 파일은 지정한 디렉터리의 아래\n" +"디렉터리에 (디렉터리 이름은 로캘에 따라 달라집니다) 들어 있습니다.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" -msgstr "Tcl 忡 Է :\n" +msgstr "Tcl 모드에서 입력 파일 지정:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -"-l ɼǰ -d ɼ ʿմϴ. .msg 丮\n" -"Ʒ ֽϴ.\n" +"-l 옵션과 -d 옵션은 꼭 필요합니다. .msg 파일은 지정한 디렉터리\n" +"아래에 들어 있습니다.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" -msgstr " -i, --indent 鿩 · ϴ\n" +msgstr " -i, --indent 들여쓰기된 출력 형태로 씁니다\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" -msgstr " --strict Uniforum · ϴ\n" +msgstr " --strict 엄격한 Uniforum 출력 형태로 씁니다\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2824,33 +2821,33 @@ "specified, they will be taken from the first translation. File positions\n" "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -" Ͽ ߺ ϳ ϴ.\n" -" ޼ ID ߺ ãϴ. ̷ ߺ \n" -"msgfmt, msgmerge msgcat α׷鿡 ߸ Է ˴ϴ.\n" -"⺻, ߺ ϳ ϴ. --repeated ɼ ϸ,\n" -"ߺ ޼ µǰ, ٸ ޼ ϴ. ּ \n" -" ּ , --use-first ϸ ù °\n" -" ִ ͸ ˴ϴ. ġ Դϴ.\n" -"--unique ɼ , ߺ ޼ ϴ.\n" +"번역 목록에서 중복된 번역문을 하나로 만듭니다.\n" +"같은 메시지 ID를 가진 중복된 번역문을 찾습니다. 이렇게 중복된 번역문은\n" +"msgfmt, msgmerge나 msgcat같은 프로그램들에서 잘못된 입력이 됩니다.\n" +"기본값으로, 중복된 번역문은 하나로 합쳐집니다. --repeated 옵션을 사용하면,\n" +"중복된 메시지만이 출력되고, 다른 메시지들을 버립니다. 주석문과 \n" +"추출된 주석문은 모두 유지될 것이지만, --use-first를 지정하면 첫 번째\n" +"번역문에 있는 것만을 쓰게 됩니다. 파일의 위치는 모두 유지될 것입니다.\n" +"--unique 옵션을 사용할 때, 중복된 메시지들을 버립니다.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" -msgstr " -d, --repeated ߺ ޼ մϴ\n" +msgstr " -d, --repeated 중복된 메시지만을 출력합니다\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -" -u, --unique ޼ ϰ, ߺ " -"ϴ\n" +" -u, --unique 유일한 메시지만을 출력하고, 중복된 것은 버립" +"니다\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" -msgstr "<ǥԷ>" +msgstr "<표준입력>" #: src/po-charset.c:489 #, c-format @@ -2858,8 +2855,8 @@ "Charset \"%s\" is not a portable encoding name.\n" "Message conversion to user's charset might not work.\n" msgstr "" -"ڼ \"%s\"() ̿ϴ ڵ ̸ ƴմϴ.\n" -" ڼ ޼ ȯ Դϴ.\n" +"문자셋 \"%s\"이(가) 공통적으로 이용하는 인코딩 이름이 아닙니다.\n" +"사용자의 문자셋으로의 메시지 변환은 하지 않을 것입니다.\n" #: src/po-charset.c:556 #, c-format @@ -2867,24 +2864,24 @@ "Charset \"%s\" is not supported. %s relies on iconv(),\n" "and iconv() does not support \"%s\".\n" msgstr "" -"ڼ \"%s\"() ʽϴ. %s() iconv() ,\n" -"iconv() %s() ʽϴ.\n" +"문자셋 \"%s\"은(는) 지원되지 않습니다. %s은(는) iconv()에 의존하지만,\n" +"iconv()는 %s을(를) 지원하지 않습니다.\n" #: src/po-charset.c:563 src/po-charset.c:611 msgid "" "Installing GNU libiconv and then reinstalling GNU gettext\n" "would fix this problem.\n" msgstr "" -"GNU libiconv ġϰ GNU gettext ٽ ġϸ \n" -" Դϴ.\n" +"GNU libiconv를 설치하고 GNU gettext를 다시 설치하면 이\n" +"문제가 없을 것입니다.\n" #: src/po-charset.c:577 src/po-charset.c:615 msgid "Continuing anyway, expect parse errors." -msgstr "· մϴ. ַ Ÿ Դϴ." +msgstr "어쨌든 계속합니다. 문법 애러가 타나날 것입니다." #: src/po-charset.c:579 msgid "Continuing anyway." -msgstr "· մϴ." +msgstr "어쨌든 계속합니다." #: src/po-charset.c:606 #, c-format @@ -2892,157 +2889,157 @@ "Charset \"%s\" is not supported. %s relies on iconv().\n" "This version was built without iconv().\n" msgstr "" -"ڼ \"%s\"() ʽϴ. %s() iconv() ,\n" -" iconv() ʴ · Ǿϴ.\n" +"문자셋 \"%s\"은(는) 지원되지 않습니다. %s은(는) iconv()에 의존하지만,\n" +"이 버전은 iconv()를 지원되지 않는 상태로 빌드되었습니다.\n" #: src/po-charset.c:643 msgid "" "Charset missing in header.\n" "Message conversion to user's charset will not work.\n" msgstr "" -" ڼ ϴ\n" -" ڼ ޼ ȯ ʽϴ.\n" +"헤더에 문자셋이 없습니다\n" +"사용자 문자셋으로의 메시지 변환은 하지 않습니다.\n" #: src/po-gram-gen.y:93 #, c-format msgid "inconsistent use of #~" -msgstr "#~ ǰ ̿Ǿϴ" +msgstr "#~가 모순되게 이용되었습니다" #: src/po-gram-gen.y:240 #, c-format msgid "missing `msgstr[]' section" -msgstr "`msgstr[]' κ ϴ" +msgstr "`msgstr[]' 부분이 빠졌습니다" #: src/po-gram-gen.y:249 #, c-format msgid "missing `msgid_plural' section" -msgstr "`msgstr_plural' κ ϴ" +msgstr "`msgstr_plural' 부분이 빠졌습니다" #: src/po-gram-gen.y:257 #, c-format msgid "missing `msgstr' section" -msgstr "`msgstr' κ ϴ" +msgstr "`msgstr' 부분이 빠졌습니다" #: src/po-gram-gen.y:396 #, c-format msgid "first plural form has nonzero index" -msgstr "ù ° ε 0 ƴմϴ" +msgstr "첫 번째 복수형의 인덱스가 0이 아닙니다" #: src/po-gram-gen.y:398 #, c-format msgid "plural form has wrong index" -msgstr " ε ߸Ǿϴ" +msgstr "복수형의 인덱스가 잘못되었습니다" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" -msgstr " ʹ Ƽ ߴմϴ" +msgstr "오류가 너무 많아서 중단합니다" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" -msgstr "߸ Ʈ ڿ" +msgstr "잘못된 가변바이트 문자열" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" -msgstr " ҿ ߹Ʈ ڿ" +msgstr "파일의 끝에서 불완전한 다중바이트 문자열" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" -msgstr " ҿ ߹Ʈ ڿ" +msgstr "줄의 끝에서 불완전한 다중바이트 문자열" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" -msgstr "iconv " +msgstr "iconv 실패" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" -msgstr " Ű \"%s\"" +msgstr "알 수 없는 키워드 \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" -msgstr "߸ " +msgstr "잘못된 제어 순서열" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" -msgstr "ڿ ο " +msgstr "문자열 내부에서 파일이 끝남" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" -msgstr "ڿ ο " +msgstr "문자열 내부에서 행이 끝남" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" -msgstr "ڿ ȿ ؽƮ ֽϴ." +msgstr "문자열 안에 컨텍스트 구분 가 있습니다." -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" -msgstr " ڸ ϰ ֽϴ" +msgstr "이 파일은 도메인 지시자를 포함하고 있지 않을 수도 있습니다" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" -msgstr "ߺ ޽ " +msgstr "중복된 메시지 정의" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" -msgstr " ù° ġԴϴ" +msgstr "여기는 첫번째 정의의 위치입니다" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 #, c-format msgid "file \"%s\" is truncated" -msgstr "\"%s\" ߷Ƚϴ" +msgstr "\"%s\" 파일이 잘렸습니다" #: src/read-mo.c:129 #, c-format msgid "file \"%s\" contains a not NUL terminated string" -msgstr "\"%s\" Ͽ NUL ʴ ڿ ֽϴ" +msgstr "\"%s\" 파일에 NUL로 끝나지 않는 문자열이 있습니다" #: src/read-mo.c:165 src/read-mo.c:274 #, c-format msgid "file \"%s\" is not in GNU .mo format" -msgstr "\"%s\" GNU .mo ƴմϴ" +msgstr "\"%s\" 파일은 GNU .mo 형식이 아닙니다" #: src/read-mo.c:178 #, c-format msgid "file \"%s\" contains a not NUL terminated string, at %s" -msgstr "\"%s\" %s ġ NUL ʴ ڿ ֽϴ" +msgstr "\"%s\" 파일의 %s 위치에 NUL로 끝나지 않는 문자열이 있습니다" #: src/read-properties.c:227 msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr ": ڵ ڿ \\uxxxx ƲȽϴ" +msgstr "경고: 유니코드 문자에 \\uxxxx 문법이 틀렸습니다" #: src/read-stringtable.c:802 msgid "warning: unterminated string" -msgstr ": ϰ ڿ" +msgstr "경고: 완결되지 않은 문자열" #: src/read-stringtable.c:810 msgid "warning: syntax error" -msgstr ": " +msgstr "경고: 문법 오류" #: src/read-stringtable.c:871 src/read-stringtable.c:893 msgid "warning: unterminated key/value pair" -msgstr ": Ű/ ϰ ʾҽϴ" +msgstr "경고: 키/값 쌍이 완결되지 않았습니다" #: src/read-stringtable.c:939 msgid "warning: syntax error, expected ';' after string" -msgstr ": , ڿ ';' ; մϴ" +msgstr "경고: 문법 오류, 문자열 다음에 ';'이 와야 합니다" #: src/read-stringtable.c:948 msgid "warning: syntax error, expected '=' or ';' after string" -msgstr ": , ڿ '=' Ȥ ';' ; մϴ" +msgstr "경고: 문법 오류, 문자열 다음에 '=' 혹은 ';'이 와야 합니다" #: src/recode-sr-latin.c:116 #, c-format msgid "Written by %s and %s.\n" -msgstr "%s %s() ϴ.\n" +msgstr "%s 및 %s이(가) 만들었습니다.\n" #. TRANSLATORS: This is a proper name. The last name is #. (with Unicode escapes) "\u0160egan" or (with HTML entities) @@ -3050,76 +3047,91 @@ #. This is a proper name. See the gettext manual, section Names. #: src/recode-sr-latin.c:120 msgid "Danilo Segan" -msgstr "ٴҷ ̰ (Danilo Segan)" +msgstr "다닐로 세이건 (Danilo Segan)" #: src/recode-sr-latin.c:153 #, c-format, no-wrap msgid "Recode Serbian text from Cyrillic to Latin script.\n" -msgstr "ƾ ؽƮ Ű ڿ ƾ ڷ ȯմϴ.\n" +msgstr "세르비아어 텍스트를 키릴 문자에서 라틴 문자로 변환합니다.\n" #: src/recode-sr-latin.c:156 #, c-format, no-wrap msgid "" "The input text is read from standard input. The converted text is output to\n" "standard output.\n" -msgstr "Է ؽƮ ǥ Է¿ нϴ. ȯ ؽƮ ǥ մϴ.\n" +msgstr "입력 텍스트는 표준 입력에서 읽습니다. 변환한 텍스트는 표준 출력으로 출력합니다.\n" #: src/recode-sr-latin.c:338 #, c-format msgid "input is not valid in \"%s\" encoding" -msgstr "Է \"%s\" ڵ ùٸ ʽϴ" +msgstr "입력이 \"%s\" 인코딩에서 올바르지 않습니다" #: src/recode-sr-latin.c:366 #, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "\"%s\" ڵ \"%s\" ڵ ȯϴ ߻" +msgstr "\"%s\" 인코딩에서 \"%s\" 인코딩으로 변환하는 동안 오류 발생" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" -msgstr "μ ̾ մϴ" +msgstr "인수는 두 개이어야 합니다" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" -msgstr ": %s [<ɼ>] <>\n" +msgstr "사용법: %s [<옵션>] <파일>\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -"URL ͼ մϴ. 쿡, Į ִ\n" -"<> ˴ϴ.\n" +"URL의 내용을 가져와서 출력합니다. 에 접근할 수 없는 경우에는, 로칼에서 접근할 수 있는\n" +"<파일>이 대신 사용됩니다.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" -msgstr "ǥ ¿ ߻" +msgstr "표준 출력에 쓰는 동안 오류 발생" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "%s 항목을 가져오는 중..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " 제한 시간 초과.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " 실패.\n" #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" -" Ŀ Ϸ ϴ. " -"PO õ ʽÿ." +"여러 개의 번역 도메인을 출력 형식에 따라 한 개의 파일로 출력할 수 없습니다. " +"PO 파일 문법을 시도해 보십시오." #: src/write-catalog.c:129 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." msgstr "" -" Ŀ Ϸ ϴ." +"여러 개의 번역 도메인을 출력 형식에 따라 한 개의 파일로 출력할 수 없습니다." #: src/write-catalog.c:162 msgid "" "message catalog has context dependent translations, but the output format " "does not support them." msgstr "" -"޼ Ͽ ؽƮ , ؽƮ " -" ʽϴ." +"메시지 목록에 컨텍스트 의존 번역이 들어 있지만, 출력 형식이 컨텍스트를 지원하" +"지 않습니다." #: src/write-catalog.c:197 msgid "" @@ -3127,72 +3139,70 @@ "support them. Try generating a Java class using \"msgfmt --java\", instead " "of a properties file." msgstr "" -"޼ Ͽ , ʽ" -". properties ſ \"msgfmt --java\" ڹ Ŭ ʽÿ." +"메시지 목록에 복수형 번역이 들어 있지만, 출력 형식이 복수형을 지원하지 않습니" +"다. properties 파일 대신에 \"msgfmt --java\"로 자바 클래스를 만들어 보십시오." #: src/write-catalog.c:202 msgid "" "message catalog has plural form translations, but the output format does not " "support them." msgstr "" -"޼ Ͽ , ʽ" -"." +"메시지 목록에 복수형 번역이 들어 있지만, 출력 형식이 복수형을 지원하지 않습니" +"다." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr " \"%s\"() ϴ" +msgstr "출력 파일 \"%s\"을(를) 만들 수 없습니다" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" -msgstr "ǥ " +msgstr "표준 출력" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" -msgstr "\"%s\" 丮 ߽ϴ" +msgstr "\"%s\" 디렉터리를 만드는 데 실패했습니다" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" -msgstr "C# Ŭ Ͽ ߽ϴ. --verbose õ ʽÿ" +msgstr "C# 클래스 컴파일에 실패했습니다. --verbose로 시도해 보십시오" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "C# Ŭ Ͽ ߽ϴ. --verbose õ ʽÿ" +msgstr "C# 클래스 컴파일에 실패했습니다" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" -msgstr "ùٸ ڹ Ŭ ̸ ƴմϴ: %s" +msgstr "올바른 자바 클래스 이름이 아닙니다: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -"ڹ Ŭ Ͽ ߽ϴ. --verbose õ ų $JAVAC ȯ溯" -" Ͻʽÿ" +"자바 클래스 컴파일에 실패했습니다. --verbose로 시도해 보거나 $JAVAC 환경변수" +"를 세팅하십시오" -#: src/write-java.c:1063 -#, fuzzy, c-format +#: src/write-java.c:1168 +#, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "" -"ڹ Ŭ Ͽ ߽ϴ. --verbose õ ų $JAVAC ȯ溯" -" Ͻʽÿ" +msgstr "자바 클래스 컴파일에 실패했습니다. $JAVAC 환경변수를 세팅하십시오" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" -msgstr " \"%s\"() ߻" +msgstr "쓰기 위해 \"%s\"을(를) 여는 동안 오류 발생" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" -msgstr "ȭ ޽ `\\%c' ̽ ϴ" +msgstr "국제화된 메시지는 `\\%c' 이스케이프 순서열을 포함할 수 없습니다" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3200,12 +3210,12 @@ "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" msgstr "" -" msgctxt ASCII ƴ ڰ ֽϴ.\n" -"̷ а ٸ ڵ ϴ ڿ \n" -"߻ ֽϴ. ASCII msgctxt ϵ Ͻʽÿ.\n" +"다음 msgctxt는 ASCII가 아닌 문자가 들어 있습니다.\n" +"이러면 여러분과 다른 문자 인코딩을 사용하는 번역자에게 문제가 \n" +"발생할 수 있습니다. 순수한 ASCII msgctxt만을 사용하도록 하십시오.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3213,9 +3223,9 @@ "different from yours. Consider using a pure ASCII msgid instead.\n" "%s\n" msgstr "" -" msgid ASCII ƴ ڰ ֽϴ.\n" -"̷ а ٸ ڵ ϴ ڿ \n" -"߻ ֽϴ. ASCII msgid ϵ Ͻʽÿ.\n" +"다음 msgid는 ASCII가 아닌 문자가 들어 있습니다.\n" +"이러면 여러분과 다른 문자 인코딩을 사용하는 번역자에게 문제가 \n" +"발생할 수 있습니다. 순수한 ASCII msgid만을 사용하도록 하십시오.\n" "%s\n" #: src/write-qt.c:667 @@ -3223,21 +3233,21 @@ "message catalog has plural form translations\n" "but the Qt message catalog format doesn't support plural handling\n" msgstr "" -"޼ Ͽ , Qt ޼ " -"ʽϴ\n" +"메시지 목록에 복수형 번역이 들어 있지만, Qt 메시지 목록은 복수형을 지원하지 " +"않습니다\n" #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"޼ Ͽ ISO-8859-1 ƴ msgctxt ڿ ֽϴ. Qt ޼ " -"\n" -"Ŀ ڿ ڵ带 ϰ, ؽƮ ڿ " -"\n" -"ʽϴ.\n" +"메시지 목록에 ISO-8859-1이 아닌 msgctxt 문자열이 들어 있습니다. Qt 메시지 목" +"록\n" +"형식에서는 번역된 문자열만 유니코드를 지원하고, 컨텍스트 문자열에서는 지원하" +"지\n" +"않습니다.\n" #: src/write-qt.c:717 msgid "" @@ -3245,346 +3255,338 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" -"޼ Ͽ ISO-8859-1 ƴ msgid ڿ ֽϴ. Qt ޼ " -"\n" -"Ŀ ڿ ڵ带 ϰ, ڿ " -"\n" -"ʽϴ.\n" +"메시지 목록에 ISO-8859-1이 아닌 msgid 문자열이 들어 있습니다. Qt 메시지 목" +"록\n" +"형식에서는 번역된 문자열만 유니코드를 지원하고, 번역하지 않은 문자열에서는 지" +"원하지\n" +"않습니다.\n" #: src/write-resources.c:94 #, c-format msgid "error while writing to %s subprocess" -msgstr "%s μ ߻" +msgstr "%s 하위 프로세스에 쓰는 동안 오류 발생" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -"޼ Ͽ ؽƮ ,\n" -"C# .resources ؽƮ ʽϴ\n" +"메시지 목록에 컨텍스트 의존 번역이 들어 있지만,\n" +"C# .resources 형식은 컨텍스트를 지원하지 않습니다\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" msgstr "" -"޼ Ͽ ,\n" -"C# .resource ʽϴ\n" +"메시지 목록에 복수형 번역이 들어 있지만,\n" +"C# .resource 형식은 복수형을 지원하지 않습니다\n" #: src/write-tcl.c:157 msgid "" "message catalog has context dependent translations\n" "but the Tcl message catalog format doesn't support contexts\n" msgstr "" -"޼ Ͽ ؽƮ ,\n" -"Tcl ޼ ؽƮ ʽϴ\n" +"메시지 목록에 컨텍스트 의존 번역이 들어 있지만,\n" +"Tcl 메시지 목록 형식은 컨텍스트를 지원하지 않습니다\n" #: src/write-tcl.c:176 msgid "" "message catalog has plural form translations\n" "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -"޼ Ͽ , \n" -"Tcl ޼ ʽϴ\n" +"메시지 목록에 복수형 번역이 들어 있지만, \n" +"Tcl 메시지 목록 형식은 복수형을 지원하지 않습니다\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" -msgstr "%s:%d: : ϰ ڿ" +msgstr "%s:%d: 경고: 완결되지 않은 문자열" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" -msgstr "%s:%d: : ϰ Խ" +msgstr "%s:%d: 경고: 완결되지 않은 정규식" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" -msgstr "%s:%d: : ϰ " +msgstr "%s:%d: 경고: 완결되지 않은 문자 상수" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" -msgstr "%s:%d: : ϰ ڿ " +msgstr "%s:%d: 경고: 완결되지 않은 문자열 상수" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"%s%s ASCII ƴ ڿ ֽϴ.\n" -"ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "소스 인코딩을 --from-code 옵션으로 지정하십시오." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: ߸ ߹Ʈ .\n" -"ùٸ ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +"%s:%d: 잘못된 다중바이트 시퀀스.\n" +"올바른 소스 인코딩을 --from-code 옵션으로 지정하십시오.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ .\n" -"ùٸ ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +"%s:%d: 길고 불완전한 다중바이트 시퀀스.\n" +"올바른 소스 인코딩을 --from-code 옵션으로 지정하십시오.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ .\n" -"ùٸ ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +"%s:%d: 파일의 끝에 불완전한 다중바이트 시퀀스.\n" +"올바른 소스 인코딩을 --from-code 옵션으로 지정하십시오.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ .\n" -"ùٸ ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +"%s:%d: 줄 끝에 불완전한 다중바이트 시퀀스.\n" +"올바른 소스 인코딩을 --from-code 옵션으로 지정하십시오.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" -msgstr "%s:%d: iconv " +msgstr "%s:%d: iconv 실패" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -"%s:%d: ߸ ߹Ʈ .\n" -"ùٸ ҽ ڵ --from-code ɼ Ͻʽÿ.\n" +"%s:%d: 잘못된 다중바이트 시퀀스.\n" +"올바른 소스 인코딩을 --from-code 옵션으로 지정하십시오.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" -msgstr "%s:%d: : ߸ ڵ " +msgstr "%s:%d: 경고: 잘못된 유니코드 문자" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" -msgstr "%s:%d: : ϰ ڿ " +msgstr "%s:%d: 경고: 완결되지 않은 문자열 상수" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" -msgstr "%s:%d: : '}' ; ϴ ')' ߰ߵǾϴ" +msgstr "%s:%d: 경고: '}'가 와야 하는 곳에 ')'가 발견되었습니다" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" -msgstr "%s:%d: : ') ; ϴ '}' ߰ߵǾϴ" +msgstr "%s:%d: 경고: ')가 와야 하는 곳에 '}'가 발견되었습니다" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -" \"glade\" ʽϴ. %s() expat մϴ.\n" -" expat Ǿϴ.\n" +"언어 \"glade\"는 지원되지 않습니다. %s은(는) expat에 의존합니다.\n" +"이 버전은 expat 없이 빌드되었습니다.\n" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: : ϰ ڿ" +msgstr "%s:%d: 경고: U+%04X 서로게이트 문자가 단독으로 있습니다" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -"%s:%d: ڿ \"%s\"() ʾҽϴ." +"%s:%d: 문자열을 끝내는 \"%s\"이(가) 파일이 끝나기 전에 나오지 않았습니다." -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" -msgstr "%s:%d: \\x{} ߰ȣ ϴ" +msgstr "%s:%d: \\x{십육진수}에서 오른쪽 중괄호가 빠졌습니다" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" -msgstr "%s:%d: 8Ʈ \"%c\" ̼(\"\\l\") ߸Ǿϴ" +msgstr "%s:%d: 8비트 문자 \"%c\"의 인터폴레이션(\"\\l\")이 잘못되었습니다" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" -msgstr "%s:%d: 8Ʈ \"%c\" ̼(\"\\u\") ߸Ǿϴ" +msgstr "%s:%d: 8비트 문자 \"%c\"의 인터폴레이션(\"\\u\")이 잘못되었습니다" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" -msgstr "%s:%d: \"%c\" ̼ ߸Ǿϴ" +msgstr "%s:%d: \"%c\"에서 변수 인터폴레이션이 잘못되었습니다" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" -msgstr "%s:%d: 8Ʈ \"%c\" ̼(\"\\L\") ߸Ǿϴ" +msgstr "%s:%d: 8비트 문자 \"%c\"의 인터폴레이션(\"\\L\")이 잘못되었습니다" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" -msgstr "%s:%d: 8Ʈ \"%c\" ̼(\"\\U\") ߸Ǿϴ" +msgstr "%s:%d: 8비트 문자 \"%c\"의 인터폴레이션(\"\\U\")이 잘못되었습니다" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s%s ASCII ƴ ڿ ֽϴ.\n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: ߸ ߹Ʈ \n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"%s:%d: 잘못된 다중바이트 시퀀스\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ \n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"%s:%d: 길고 불완전한 다중바이트 시퀀스\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ .\n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"%s:%d: 파일의 끝에 불완전한 다중바이트 시퀀스.\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: ҿ ߹Ʈ .\n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"%s:%d: 줄 끝에 불완전한 다중바이트 시퀀스.\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: ߸ ߹Ʈ .\n" -"ҽ ڵ --from-code ɼ ϰų http://www.python.org/peps/pep-" -"0263.html ִ ó ּ Ͻʽÿ.\n" +"%s:%d: 잘못된 다중바이트 시퀀스.\n" +"소스 인코딩을 --from-code 옵션으로 지정하거나 http://www.python.org/peps/" +"pep-0263.html 페이지에 있는 것처럼 주석으로 지정하십시오.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -"\"%s\" ڵ  ڵ ϴ. ASCII մϴ." +"\"%s\" 인코딩은 어떤 인코딩인지 알 수 없습니다. 대신 ASCII로 진행합니다." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" -msgstr "%s:%d: ߸ ڿ " +msgstr "%s:%d: 잘못된 문자열 정의" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" -msgstr "%s:%d: # ڰ ϴ" +msgstr "%s:%d: # 다음에 숫자가 빠졌습니다" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" -msgstr "%s:%d: ߸ ڿ ǥ" +msgstr "%s:%d: 잘못된 문자열 표현" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -"%s:%lu: : $\"...\" Ȼ Դϴ; ſ " -"eval_gettext Ͻʽÿ" +"%s:%lu: 경고: $\"...\" 문법은 보안상의 이유로 없어질 예정입니다; 대신에 " +"eval_gettext를 사용하십시오" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" -msgstr "--join-exeisting ǥ¿ ϴ" +msgstr "--join-exeisting은 출력이 표준출력에 쓰여질 때 사용될 수 없습니다" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" -msgstr "xgettext ˻ Ű ̴ ʽϴ" +msgstr "xgettext는 검색할 키워드 없이는 동작하지 않습니다" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" -msgstr ": `%s' Ȯ `%s'() ϴ; C " +msgstr "경고: `%s' 파일의 확장자 `%s'을(를) 알 수 없습니다; C 형식으로 간주함" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" -msgstr "־ Է Ͽ ڿ ̾Ƴϴ.\n" +msgstr "주어진 입력 파일에서 번역 가능한 문자열을 뽑아냅니다.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -" -d, --default-domain=≮> ¿ (messages.po ) ≮>.po " -"\n" +" -d, --default-domain=<이름> 출력에 (messages.po 대신) <이름>.po를 씁니" +"다\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" -msgstr " -o, --output=<> Ͽ մϴ\n" +msgstr " -o, --output=<파일> 지정된 파일에 출력합니다\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -" -p, --output-dir=<丮> <丮> 丮 ϴ\n" +" -p, --output-dir=<디렉터리> 출력 파일을 <디렉터리> 디렉터리에 놓습니다\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" -msgstr "Է :\n" +msgstr "입력 파일의 언어 선택:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3595,7 +3597,7 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -" -L, --language=≮> νϵ մϴ\n" +" -L, --language=<이름> 지정한 언어로 인식하도록 합니다\n" " (C, C++, ObjectiveC, PO, Shell, Python, " "Lisp,\n" " EmacsLisp, librep, Scheme, Smalltalk, Java,\n" @@ -3603,65 +3605,70 @@ "PHP, \n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" -msgstr " -C, --c++ --language=C++ ª Դϴ\n" +msgstr " -C, --c++ --language=C++를 짧게 쓴 것입니다\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -"⺻ Է Ȯڿ   մϴ.\n" +"기본적으로 입력 파일의 확장자에 따라 어떤 언어를 사용할 지 짐작합니다.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -" --from-code=≮> Է ڵ\n" -" (Python, Tcl, Glade )\n" +" --from-code=<이름> 입력 파일의 인코딩\n" +" (Python, Tcl, Glade 제외)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" -msgstr "⺻ Է ASCII ڵǾ ִٰ մϴ.\n" +msgstr "기본값으로 입력 파일은 ASCII로 인코딩되어 있다고 가정합니다.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" -msgstr " -j, --join-existing ϴ ϰ ޼ Ĩϴ\n" +msgstr " -j, --join-existing 현존하는 파일과 메시지를 합칩니다\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -" -x, --exclude-file=<.po> <.po> ޼ ̾Ƴ ʽϴ\n" +" -x, --exclude-file=<파일.po> <파일.po>의 메시지는 뽑아내지 않습니다\n" -# TAG Ȯ ? -#: src/xgettext.c:825 +# TAG가 정확이 뭐지? +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -" -c, --add-comments[=<±>] ּ κ <ũ> (Ȥ Ű տ\n" -" ִ ) Ͽ ϴ\n" +" -c<태그>, --add-comments[=<태그>] 키워드 줄 앞에 <태그>로 시작하는 주석\n" +" 부분을 출력 파일에 씁니다\n" +" -c, --add-comments 키워드 줄 앞에 모든 주석 부분을 출력\n" +" 파일에 씁니다\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" -msgstr "Language ɼ:\n" +msgstr "Language 관련 옵션:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" -msgstr " -a, --extract-all ڿ ̾ ϴ\n" +msgstr " -a, --extract-all 모든 문자열을 뽑아 냅니다\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3669,32 +3676,32 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -" (  : C, C++, ObjectiveC, " +" (다음 언어만 지원: C, C++, ObjectiveC, " "Shell,\n" " Python, Lisp, EmacsLisp, librep, Scheme " "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=<ܾ>] ߰ ã Ű (<ܾ> ⺻\n" -" Ű带 ʰڴٴ ǹԴϴ)\n" +" -k<단어>, --keyword=<단어> <단어>를 추가 키워드로 찾습니다\n" +" -k, --keyword 기본 키워드를 사용하지 않습니다\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " "argument\n" " number ARG of keyword WORD\n" msgstr "" -" --flag=WORD:ARG:FLAG Ű WORD ȣ ARGȿ ִ ڿ\n" -" ߰ ÷\n" +" --flag=WORD:ARG:FLAG 키워드 WORD의 인자 번호 ARG안에 있는 문자열의\n" +" 추가 플래그\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3702,139 +3709,158 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -" (  : C, C++, ObjectiveC, " +" (다음 언어만 지원: C, C++, ObjectiveC, " "Shell,\n" " Python, Lisp, EmacsLisp, librep, Scheme, " "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -" -T, --trigraphs Է¿ ANSI C (trigraph) νմ" -"\n" +" -T, --trigraphs 입력에서 ANSI C 삼중자(trigraph)를 인식합니" +"다\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -" (  : C, C++, ObjectiveC)\n" +" (다음 언어만 지원: C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" -msgstr " --qt Qt ڿ ˾Ƴϴ\n" +msgstr " --qt Qt 형식 문자열을 알아냅니다\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" -msgstr " (C++ )\n" +msgstr " (C++만 지원)\n" -#: src/xgettext.c:859 -#, fuzzy, c-format +#: src/xgettext.c:915 +#, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --qt Qt ڿ ˾Ƴϴ\n" +msgstr " --kde KDE 4 형식 문자열을 알아냅니다\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" -msgstr " --boost Boost ڿ ˾Ƴϴ\n" +msgstr " --boost Boost 형식 문자열을 알아냅니다\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" -msgstr " --debug ڼ Ĺڿ ν \n" +msgstr " --debug 더 자세한 형식문자열 인식 결과\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" -msgstr " --properties-output ڹ .properties ϴ\n" +msgstr " --properties-output 자바 .properties 파일을 씁니다\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" -msgstr " --copyright-holder=<ڿ> ۱ ڸ մϴ\n" +msgstr " --copyright-holder=<문자열> 출력할 저작권 소유자를 지정합니다\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -" --foreign-user ܺ ڸ FSF ۱ ǥø " -"\n" +" --foreign-user 외부 사용자를 위해 FSF 저작권 표시를 뺍니" +"다\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=<패키지> 출력에서 패키지 이름을 지정합니다\n" -#: src/xgettext.c:907 -#, fuzzy, c-format +#: src/xgettext.c:969 +#, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr " --copyright-holder=<ڿ> ۱ ڸ մϴ\n" +msgstr " --package-version=<버전> 출력에서 패키지 버전을 지정합니다\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -" --msgid-bugs-address≠@ּ msgid ׸ ּҸ " -"ϴ\n" +" --msgid-bugs-address=이메일@주소 msgid 버그를 보고할 주소를 지정합" +"니다\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=<ڿ>] msgstr ׸ <ڿ> Ȥ \"\" ξ" -"\n" +" -m[<문자열>], --msgstr-prefix[=<문자열>] msgstr 항목에 <문자열> 혹은 " +"\"\"을 \n" +" 접두어로 사용합니다\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=<ڿ>] msgstr ׸ <ڿ> Ȥ \"\" ̾" -"\n" +" -M[<문자열>], --msgstr-suffix[=<문자열>] msgstr 항목에 <문자열> 혹은 " +"\"\"을 \n" +" 접미어로 사용합니다\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" -msgstr "--flag ڰ ::[pass-] ƴմϴ: %s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" +msgstr "--flag의 인자가 ::[pass-] 문법이 아닙니다: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" -msgstr "ǥ Է" +msgstr "표준 입력" + +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "%s%s에 ASCII가 아닌 문자열이 있습니다." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "%s%s에 또는 그 앞에 ASCII가 아닌 문자열이 있습니다." -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "%s%s에 시작하는 ASCII가 아닌 문자열이 있습니다." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " -msgstr "%s%s: : " +msgstr "%s%s: 경고: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -" ڿ ġ , %s() ߸ %s ڿԴϴ. " -": %s\n" +"형식 문자열에 위치 지정을 사용했지만, %s은(는) 잘못된 %s 형식 문자열입니다. " +"이유: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -" Ͱ ޸, '%s'() ùٸ %s ڿ ƴմϴ. : %s\n" +"선언한 것과는 달리, '%s'은(는) 올바른 %s 형식 문자열이 아닙니다. 이유: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3842,132 +3868,58 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" msgstr "" -"̸ ڷ '%s' ڿ ùٸ ȭ ϴ.\n" -"ڰ ؾ մϴ.\n" -"̸ ִ ڸ ̿ ڿ ʽÿ.\n" -"ƴϸ ڿ Ʃ ſ ʽÿ.\n" +"이름없는 인자로 '%s' 포맷 문자열을 쓰면 올바른 지역화를 할 수 없습니다.\n" +"번역자가 인자 순서를 조정해야 합니다.\n" +"이름이 있는 인자를 이용해 형식 문자열을 사용해 보십시오.\n" +"아니면 인자에 대해 튜플 대신에 매핑을 사용해 보십시오.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -" ִ msgidԴϴ. msgid GNU gettext ٸ մϴ:\n" -"gettext(\"\") ڿ ƴ϶, Ÿ ִ \n" -" ׸ մϴ.\n" +"비어 있는 msgid입니다. 이 msgid는 GNU gettext가 다른 목적으로 사용합니다:\n" +"gettext(\"\")는 빈 문자열이 아니라, 메타 정보가 들어 있는 \n" +"헤더 항목을 리턴합니다.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" -msgstr "'%.*s' Ű忡 ָմϴ" +msgstr "'%.*s' 키워드에 대한 인자 지정이 애매합니다" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" -msgstr ": '%.*s' Ű忡 ؽƮ ϴ" +msgstr "경고: '%.*s' 키워드에 대해 컨텍스트가 없습니다" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" -msgstr ": '%.*s' Ű ڿ ؽƮ ϴ" +msgstr "경고: '%.*s' 키워드의 복수형 인자에 대해 컨텍스트가 없습니다" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" -msgstr "ܼ ̿ ؽƮ ٸϴ" +msgstr "단수형과 복수형 사이에 컨텍스트가 다릅니다" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" "the MSGID_BUGS_ADDRESS variable there; otherwise please\n" "specify an --msgid-bugs-address command line option.\n" msgstr "" -"--msgid-bugs-address ɼ ʾҽϴ.\n" -"`Makevars' , MSGID_BUGS_ADDRESS\n" -" Ͻʽÿ; ׷ --msgid-bugs-address\n" -" ɼ Ͻʽÿ.\n" +"--msgid-bugs-address 옵션이 지정되지 않았습니다.\n" +"`Makevars' 파일을 사용할 경우, MSGID_BUGS_ADDRESS\n" +"변수를 지정하십시오; 그렇지 않으면 --msgid-bugs-address\n" +"명령행 옵션을 사용하십시오.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" -msgstr "\"%s\" Ͽ NUL ʴ sysdep ׸Ʈ ֽϴ" +msgstr "\"%s\" 파일에 NUL로 끝나지 않는 sysdep 세그먼트가 있습니다" #: libgettextpo/gettext-po.c:84 msgid "" -msgstr "≮>" - -#~ msgid "Multiple references to %%%c." -#~ msgstr "%%%c() ߽ϴ." - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ " α׷ ƮԴϴ. ҽ Ͻʽÿ. " -#~ "ǰ\n" -#~ "̳ Ư ռ Ͽ,  ʽϴ.\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the C# .dll format doesn't support contexts\n" -#~ msgstr "" -#~ "޼ Ͽ ؽƮ ,\n" -#~ "C# .dll ؽƮ ʽϴ\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the Java ResourceBundle format doesn't support contexts\n" -#~ msgstr "" -#~ "޼ Ͽ ؽƮ ,\n" -#~ "Java ResourceBundle ؽƮ ʽϴ\n" - -#~ msgid "conversion failure" -#~ msgstr "ȯ " - -#~ msgid "%s: warning: " -#~ msgstr "%s: : " - -#~ msgid "%s\n" -#~ msgstr "%s\n" - -#~ msgid "%s:%lu: warning: unterminated string" -#~ msgstr "%s:%lu: : ڿ ϰ ʾҽϴ" - -#~ msgid "%s:%d: fatal: plural message seen before singular message\n" -#~ msgstr "%s:%d: ġ : ޼ ܼ ޼ տ Խϴ\n" - -#~ msgid "Which is your email address?" -#~ msgstr "ڸ ּҰ Դϱ?" - -#~ msgid "Please choose the number, or enter your email address." -#~ msgstr " ϳ Ͻðų, ڸ ּҸ ԷϽʽÿ." - -#~ msgid "Invalid email address: invalid character." -#~ msgstr "߸ ڸ ּ: ڰ ֽϴ." - -#~ msgid "" -#~ "Invalid email address: need a fully qualified host name or domain name." -#~ msgstr "" -#~ "߸ ڸ ּ: (fully qualified) ȣƮ ̸ Ȥ " -#~ " ʿմϴ." - -#~ msgid "Invalid email address: missing @" -#~ msgstr "߸ ڸ ּ: @ ϴ" - -#~ msgid "Is the following your email address?" -#~ msgstr "ڸ ּҰ ϱ?" - -#~ msgid "Please confirm by pressing Return, or enter your email address." -#~ msgstr " Ȯϰų, ڸ ּҸ ԷϽʽÿ." - -#~ msgid "Couldn't find out about your email address." -#~ msgstr "ڸ ּҸ ˾Ƴ ϴ." - -#~ msgid "Please enter your email address." -#~ msgstr "ڸ ּҸ ԷϽʽÿ." +msgstr "<이름없음>" diff -Nru gettext-0.17/gettext-tools/po/LINGUAS gettext-0.18.1.1/gettext-tools/po/LINGUAS --- gettext-0.17/gettext-tools/po/LINGUAS 2007-10-30 23:35:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/LINGUAS 2010-06-06 12:49:57.000000000 +0000 @@ -1,2 +1,2 @@ # Set of available languages. -be ca cs da de el en@quot en@boldquot es et eu fi fr gl id it ja ko nb nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_TW +be bg ca cs da de el en@quot en@boldquot es et eu fi fr gl id it ja ko nb nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN zh_TW diff -Nru gettext-0.17/gettext-tools/po/Makefile.in.in gettext-0.18.1.1/gettext-tools/po/Makefile.in.in --- gettext-0.17/gettext-tools/po/Makefile.in.in 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/Makefile.in.in 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ # Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper +# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public @@ -8,8 +8,8 @@ # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # -# Origin: gettext-0.17 -GETTEXT_MACRO_VERSION = 0.17 +# Origin: gettext-0.18 +GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ @@ -88,8 +88,8 @@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ + cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ @@ -193,8 +193,15 @@ @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ - cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + cd $(srcdir) \ + && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + esac; \ + }; \ else \ $(MAKE) $${lang}.po-create; \ fi @@ -217,7 +224,6 @@ fi install-data-no: all install-data-yes: all - $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ @@ -269,7 +275,6 @@ fi installdirs-data-no: installdirs-data-yes: - $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ @@ -395,9 +400,15 @@ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ - if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ + if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + *) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + esac; \ + }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/po/Makevars gettext-0.18.1.1/gettext-tools/po/Makevars --- gettext-0.17/gettext-tools/po/Makevars 2006-04-03 11:34:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/Makevars 2010-06-06 12:49:57.000000000 +0000 @@ -11,8 +11,6 @@ XGETTEXT_OPTIONS = \ --keyword=_ --flag=_:1:pass-c-format \ --keyword=N_ --flag=N_:1:pass-c-format \ - --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' \ - --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' \ --flag=error:3:c-format --flag=error_at_line:5:c-format \ --flag=asprintf:2:c-format --flag=vasprintf:2:c-format \ --flag=xasprintf:1:c-format --flag=error_logger:1:c-format \ @@ -54,3 +52,9 @@ # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no + +# These options get passed to msgmerge. +# Useful options are in particular: +# --previous to keep previous msgids of translated messages, +# --quiet to reduce the verbosity. +MSGMERGE_OPTIONS = Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/nb.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/nb.gmo differ diff -Nru gettext-0.17/gettext-tools/po/nb.po gettext-0.18.1.1/gettext-tools/po/nb.po --- gettext-0.17/gettext-tools/po/nb.po 2007-11-02 02:23:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/nb.po 2010-06-06 12:49:58.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.37\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-05-09 02:08+02:00\n" "Last-Translator: Trond Endrestl \n" "Language-Team: Norwegian-bokml \n" +"Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -30,22 +31,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "kan ikke opprette utfilen %s" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "kan ikke opprette utfilen %s" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "kan ikke opprette utfilen %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "kan ikke opprette utfilen %s" @@ -54,44 +55,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "feil under pning av %s for lesing" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "feil under pning av %s for skriving" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "feil under lesing av %s" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "feil under skriving av filen %s" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "feil under lesing av %s" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -101,74 +102,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Ukjent systemfeil" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: flagget %s er flertydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: flagget --%s tillater ikke argumenter\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: flagget %c%s tillater ikke argumenter\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: flagget %s krever et argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: ukjent flagg --%s\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: ukjent flagg %c%s\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovlig flagg -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ugyldig flagg -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: flagg krever et argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: flagg -W %s er flertydig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: flagg -W %s tillater ikke et argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: flagget %s krever et argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -180,20 +180,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "feil under skriving av filen %s" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -203,20 +203,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "minnet oppbrukt" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -235,70 +235,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "kan ikke opprette utfilen %s" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "format-spesifiseringene for argument %lu er ulike" #: src/format-boost.c:449 @@ -323,9 +322,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "antallet format-spesifiseringer i msgid og msgstr stemmer ikke" #: src/format-csharp.c:88 src/format-java.c:205 @@ -365,48 +364,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -498,19 +497,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "format-spesifiseringene for argument %lu er ulike" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -524,11 +522,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -576,12 +574,12 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "antallet format-spesifiseringer i msgid og msgstr stemmer ikke" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" #: src/format-perl.c:433 @@ -591,54 +589,51 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "antallet format-spesifiseringer i msgid og msgstr stemmer ikke" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "antallet format-spesifiseringer i msgid og msgstr stemmer ikke" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "format-spesifiseringene for argument %lu er ulike" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "format-spesifiseringene for argument %lu er ulike" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -675,11 +670,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -688,38 +683,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Skrevet av %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "for mange argumenter" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Prv %s --help for mer informasjon.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -752,29 +747,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -783,11 +778,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr "Rapporter feil til .\n" @@ -797,294 +792,312 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "trenger nyaktig to innfiler" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s og %s utelukker hverandre" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "ingen innfil angitt" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1103,31 +1116,31 @@ " -V, --version skriv ut programversjon og avslutt\n" " -w, --width=ANTALL sett sidebredden i utdata\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "umulig utvalgskriterie angitt (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1157,105 +1170,97 @@ "PO-filen som definerer dem. Filposisjonene fra alle PO-filene vil\n" "bli bevart.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "ingen innfiler angitt" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "trenger nyaktig to innfiler" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1278,81 +1283,86 @@ "alle meldingene i programmet ditt. Nr en eksakt overensstemmelse ikke\n" "finnes, blir fuzzy-sammenligning brukt for f en bedre diagnostikk.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "advarsel: denne meldingen er ikke brukt" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "denne meldingen er brukt, men ikke definert..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "... men denne definisjonen ligner" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "denne meldingen er brukt, men ikke definert i %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "advarsel: denne meldingen er ikke brukt" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "fant %d fatale feil" msgstr[1] "fant %d fatale feil" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "minst to filer m angis" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1381,74 +1391,74 @@ "PO-filen som definerer dem. Filposisjonene fra alle PO-filene vil\n" "bli bevart.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "ingen innfil angitt" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "trenger nyaktig to innfiler" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1457,22 +1467,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "mangler argumenter" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1482,67 +1492,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "mangler argumenter" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr "minst to filer m angis" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1550,210 +1560,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d oversatt melding" msgstr[1] "%d oversatte meldinger" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d antatt oversettelse" msgstr[1] ", %d antatte oversettelser" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d uoversatt melding" msgstr[1] ", %d uoversatte meldinger" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1762,48 +1754,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "ingen innfil angitt" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1811,33 +1803,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1845,115 +1837,115 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: advarsel: PO-filheader mangler, fuzzy, eller ugyldig\n" "%*s advarsel: tegnsettkonvertering vil ikke virke" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "Tegnsettet mangler i headeren.\n" "Meldingskonvertering til brukerens tegnsett kan ikke virke.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: advarsel: PO-filheader mangler, fuzzy, eller ugyldig\n" "%*s advarsel: tegnsettkonvertering vil ikke virke" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domenenavnet %s passer ikke som filnavn" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domenenavnet %s passer ikke som filnavn: bruker prefiks" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "nkkelord domain %s ignorert" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "tom msgstr-linje ignorert" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "antatt msgstr-linje ignorert" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: advarselL: kildefil har antatte oversettelser" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "feil under lesing av %s" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1993,30 +1985,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2024,24 +2016,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2049,54 +2041,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2108,54 +2100,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, fuzzy, c-format msgid "warning: " msgstr "%s: advarsel: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2164,7 +2156,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2173,7 +2165,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2182,12 +2174,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2195,7 +2187,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2204,7 +2196,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2212,158 +2204,158 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "ulovlig kontrollsekvens" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "ulovlig kontrollsekvens" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "ulovlig kontrollsekvens" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "denne meldingen er brukt, men ikke definert i %s" msgstr[1] "denne meldingen er brukt, men ikke definert i %s" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "denne meldingen er brukt, men ikke definert i %s" msgstr[1] "denne meldingen er brukt, men ikke definert i %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "msgid- og msgid_plural-innslagene begynner ikke med `\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "msgid- og msgstr[%u]-innslagene begynner ikke med `\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "msgid- og msgstr-innslagene begynner ikke med `\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "msgid- og msgstr[%u]-innslagene slutter ikke med `\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "msgid- og msgstr[%u]-innslagene slutter ikke med `\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "msgid- og msgstr-innslagene slutter ikke med `\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "filhodefelt %s mangler i filhode" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "filhodefelt %s skulle ha startet ved begynnelsen av linjen" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "noen filhodefelt har fremdeles sin initielle verdi" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "feltet %s har fremdeles sin forvalgte verdi" +msgid "header field `%s' still has the initial default value\n" +msgstr "noen filhodefelt har fremdeles sin initielle verdi" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "feil under pning av %s for lesing" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2372,15 +2364,15 @@ "Tegnsettet \"%s\" er ikke stttet. %s er avhengig av iconv(),\n" "og iconv() sttter ikke \"%s\".\n" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, fuzzy, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2389,16 +2381,16 @@ "Tegnsettet \"%s\" er ikke stttet. %s er avhengig av iconv().\n" "Denne versjonen ble blygget uten iconv().\n" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2423,51 +2415,51 @@ "resultater. Resultatet blir skrevet til standard ut, med mindre en utfil\n" "er spesifisert.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2479,7 +2471,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2487,33 +2479,28 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "denne meldingen er brukt, men ikke definert i %s" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "denne meldingen er brukt, men ikke definert i %s" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2522,61 +2509,63 @@ "%sLeste %ld gamle + %ld referanser, flettet %ld, antok %ld, mangler %ld, " "foreldete %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " ferdig.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s og %s utelukker hverandre" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2584,41 +2573,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "ingen innfil angitt" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2631,19 +2620,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2729,65 +2718,65 @@ msgid "plural form has wrong index" msgstr "flertallsform har feil indeks" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "for mange feil, avbryter" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "ulovlig multibytesekvens" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "ulovlig multibytesekvens" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "ulovlig multibytesekvens" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "nkkelord %s ukjent" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "ulovlig kontrollsekvens" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "slutt-p-fil inne i streng" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "slutt-p-linje inne i streng" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "denne filen kan ikke inneholde domene-direktiver" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "duplisert definisjon av melding" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "... dette er lokasjonen til den frste definisjonen" @@ -2877,28 +2866,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "feil under pning av %s for lesing" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "for mange argumenter" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "feil under skriving av filen %s" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2930,41 +2934,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "kan ikke opprette utfilen %s" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard ut" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2974,14 +2978,14 @@ msgid "error while opening \"%s\" for writing" msgstr "feil under pning av %s for skriving" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "internasjonaliserte meldinger br ikke inneholde escape-sekvensen \\%c" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2990,7 +2994,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3007,8 +3011,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3025,13 +3029,13 @@ msgid "error while writing to %s subprocess" msgstr "feil under skriving av filen %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3049,99 +3053,96 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: advarsel: uavsluttet tegnkonstant" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: advarsel: uavsluttet tegnkonstant" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, fuzzy, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3150,55 +3151,53 @@ "Tegnsettet \"%s\" er ikke stttet. %s er avhengig av iconv().\n" "Denne versjonen ble blygget uten iconv().\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: ugyldig flagg -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3206,7 +3205,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3214,7 +3213,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3222,7 +3221,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3230,7 +3229,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3238,78 +3237,78 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: advarsel: uavsluttet strengliteral" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing kan ikke brukes nr utdata blir skrevet til standard ut" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext kan ikke arbeide uten finne nkkelord" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "advarsel: typen til fil %s med utvidelsen %s er ukjent, forsker C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "ingen innfil angitt" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3321,58 +3320,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3381,14 +3383,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3396,7 +3398,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3405,119 +3407,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard inn" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, fuzzy, c-format msgid "%s%s: warning: " msgstr "%s: advarsel: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3526,34 +3545,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3561,7 +3580,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "sprket %s er ukjent" @@ -3570,6 +3589,13 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ulovlig flagg -- %c\n" + +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "feltet %s har fremdeles sin forvalgte verdi" + # Hva skal MERCHANTABILITY og FITNESS FOR PARTICULAR PURPOSE oversettes med? # Er denne oversettelsen grei nok? #~ msgid "" @@ -3863,7 +3889,8 @@ #~ "miljvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikke finnes i den\n" #~ "vanlige katalogen, kan en annen katalog spesifiseres ved hjelp av\n" #~ "miljvariabelen TEXTDOMAIN.\n" -#~ "Nr flagget -s blir brukt, oppfrer programmet seg som kommandoen echo.\n" +#~ "Nr flagget -s blir brukt, oppfrer programmet seg som kommandoen " +#~ "echo.\n" #~ "Programmet kopierer imidlertid ikke sine argumenter til standard ut. I\n" #~ "stedet blir funne meldinger i den valgte katalogen oversatt.\n" #~ "Standard skekatalog er: %s\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/nl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/nl.gmo differ diff -Nru gettext-0.17/gettext-tools/po/nl.po gettext-0.18.1.1/gettext-tools/po/nl.po --- gettext-0.17/gettext-tools/po/nl.po 2007-11-02 02:23:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/nl.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,22 +1,24 @@ -# Translation of gettext-tools-0.16.2-pre5 to Dutch. -# Dutch translation for GNU gettext messages. -# Copyright (C) 1996, 2007 Free Software Foundation, Inc. +# Dutch translations for gettext-tools. +# Copyright (C) 2009 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. # # Erick Branderhorst , 1996. -# Benno Schulenberg , 2007. +# Benno Schulenberg , 2007, 2008. msgid "" msgstr "" "Project-Id-Version: gettext-tools-0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-10-17 23:28+0200\n" -"Last-Translator: Benno Schulenberg \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-03-10 12:48+0100\n" +"Last-Translator: Erwin Poeze \n" "Language-Team: Dutch \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Launchpad-Export-Date: 2008-06-30 19:52+0000\n" +"X-Generator: KBabel 1.11.4\n" #: gnulib-lib/argmatch.c:133 #, c-format @@ -33,22 +35,22 @@ msgid "Valid arguments are:" msgstr "Geldige argumenten zijn:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "kan geen tijdelijke map vinden -- zet omgevingsvariabele TMPDIR" +msgstr "kan geen tijdelijke map vinden; zet $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "kan met sjabloon '%s' geen tijdelijke map aanmaken" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "kan tijdelijk bestand '%s' niet verwijderen" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "kan tijdelijke map '%s' niet verwijderen" @@ -57,44 +59,44 @@ msgid "write error" msgstr "schrijffout" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "fout bij openen van '%s' voor lezen" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "kan reservebestand '%s' niet openen voor schrijven" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "fout bij lezen van '%s'" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "fout bij schrijven van '%s'" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "fout na lezen van '%s'" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() is mislukt" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C#-compiler is niet gevonden; installeer 'pnet'" @@ -104,74 +106,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "virtuele C#-machine is niet gevonden; installeer 'pnet'" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Onbekende systeemfout" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "subproces %s is mislukt" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: optie '%s' is niet eenduidig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: optie '--%s' staat geen argument toe\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: optie '%c%s' staat geen argument toe\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: optie '%s' vereist een argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: onbekende optie '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: onbekende optie '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ongeldige optie -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: ongeldige optie -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: optie vereist een argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: optie '-W %s' is niet eenduidig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: optie '-W %s' staat geen argument toe\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: optie '%s' vereist een argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -183,20 +184,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "ongeldige waarde voor 'target_version' in compile_java_class()" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "aanmaken van '%s' is mislukt" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "fout bij schrijven van bestand '%s'" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Java-compiler is niet gevonden; installeer 'gcj' of zet $JAVAC" @@ -204,22 +205,22 @@ #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" -msgstr "Java virtuele machine is niet gevonden; installeer 'gcj' of zet $JAVAC" +msgstr "Virtuele Java-machine is niet gevonden; installeer 'gcj' of zet $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "I/O-fout in subproces %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "onvoldoende geheugen beschikbaar" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -238,77 +239,76 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "‘" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "’" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle() is mislukt met foutcode 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle() is mislukt" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "kan uitvoerbestand '%s' niet aanmaken" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "subproces %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "subproces %s ontving het fatale signaal %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "'%s' is geen geldige opmaakreeks voor %s, anders dan 'msgid'. Reden: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "opmaakcode voor argument %u, als in '%s', komt niet voor in 'msgid'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "opmaakcode voor argument %u komt niet voor in '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "opmaakcodes in 'msgid' en '%s' voor argument %u zijn niet hetzelfde" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr "" +msgstr "Directiefnummer %u begint met | maar eindigt niet op |." #: src/format-c.c:181 #, c-format @@ -316,118 +316,137 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" +"In directiefnummer %u is de tekenreeks na '<' niet de naam van macro met een " +"opmaakcode. Juiste macronamen staan opgesomd in ISO C 99, paragraaf 7.8.1." #: src/format-c.c:588 #, c-format msgid "In the directive number %u, the token after '<' is not followed by '>'." msgstr "" +"In directiefnummer %u wordt de tekenreeks na '<' niet gevolgd door '>'." #: src/format-c.c:814 #, c-format msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" +"De tekenreeks verwijst naar argumentnummer %u maar negeert argumentnummer %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "het aantal opmaakcodes in 'msgid' en '%s' is niet gelijk" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." -msgstr "" +msgstr "In directiefnummer %u wordt '{' niet gevolgd door een argumentnummer." #: src/format-csharp.c:109 #, c-format msgid "In the directive number %u, ',' is not followed by a number." -msgstr "" +msgstr "In directiefnummer %u wordt ',' niet gevolgd door een nummer." #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." msgstr "" +"De tekenreeks stopt midden in een directief: '{' gevonden zonder gepaarde " +"'}'." #: src/format-csharp.c:139 #, c-format msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." msgstr "" +"Het directiefnummer %u eindigt op een ongeldig karakter '%c' in plaats van " +"'}'." #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." msgstr "" +"Het directiefnummer %u eindigt op een ongeldig karakter in plaats van '}'." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" +"De tekenreeks begint midden in een directief: '}' gevonden zonder gepaarde " +"'{'." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." -msgstr "" +msgstr "De tekenreeks bevat een ongepaarde '}' na directiefnummer %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr "" +msgstr "In directiefnummer %u is de combinatie van vlaggen ongeldig." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" +"In directiefnummer %u is geen nauwkeurigheidsaanduiding voor '%c' toegestaan." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" +"In directiefnummer %u moet het argumentnummer voor de nauwkeurigheid gelijk " +"zijn aan %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" +"In directiefnummer %u is geen nauwkeurigheidsspecificatie toegestaan voor " +"'%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "" +msgstr "In directiefnummer %u is de nauwkeurigheidsspecificatie ongeldig." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" +"In directiefnummer %u zijn geen vlaggen toegestaan voorafgaand aan '%c'." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid' gebruikt %%m, maar '%s' niet" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid' gebruikt geen %%m, maar '%s' gebruikt %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." -msgstr "" +msgstr "De tekenreeks stopt midden in een directief." #: src/format-invalid.h:25 msgid "" "The string refers to arguments both through absolute argument numbers and " "through unnumbered argument specifications." msgstr "" +"De tekenreeks verwijst naar argumenten zowel via absolute argumentnummers " +"als via ongenummerde argumentspecificaties." #: src/format-invalid.h:28 #, c-format msgid "" "In the directive number %u, the argument number 0 is not a positive integer." -msgstr "" +msgstr "In directiefnummer %u is argumentnummer 0 geen positief geheel getal." #: src/format-invalid.h:30 #, c-format @@ -435,6 +454,8 @@ "In the directive number %u, the width's argument number 0 is not a positive " "integer." msgstr "" +"In directiefnummer %u is de breedte's argumentnummer 0 geen positief geheel " +"getal." #: src/format-invalid.h:32 #, c-format @@ -442,6 +463,8 @@ "In the directive number %u, the precision's argument number 0 is not a " "positive integer." msgstr "" +"In directiefnummer %u is de nauwkeurigheid's argumentnummer 0 geen positief " +"geheel getal." #: src/format-invalid.h:36 #, c-format @@ -449,6 +472,7 @@ "In the directive number %u, the character '%c' is not a valid conversion " "specifier." msgstr "" +"In directiefnummer %u is karakter '%c' geen geldige conversiespecificatie." #: src/format-invalid.h:37 #, c-format @@ -456,11 +480,14 @@ "The character that terminates the directive number %u is not a valid " "conversion specifier." msgstr "" +"Het karakter waarmee directiefnummer %u afsluit is geen geldige " +"conversiespecificatie." #: src/format-invalid.h:40 #, c-format msgid "The string refers to argument number %u in incompatible ways." msgstr "" +"De tekenreeks verwijst naar argumentnummer %u op niet-compatibele manieren." #: src/format-java.c:240 #, c-format @@ -468,17 +495,19 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" +"In directiefnummer %u is deeltekenreeks \"%s\" geen geldige datum/tijdstijl." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format msgid "In the directive number %u, \"%s\" is not followed by a comma." -msgstr "" +msgstr "In directiefnummer %u wordt \"%s\" niet gevolgd door een komma." #: src/format-java.c:274 #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." msgstr "" +"In directiefnummer %u is deeltekenreeks \"%s\" geen geldige getallenstijl." #: src/format-java.c:323 #, c-format @@ -486,11 +515,13 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" +"In directiefnummer %u wordt het argumentnummer niet gevolgd door een komma " +"en één van \"%s\", \"%s\", \"%s\", \"%s\"." #: src/format-java.c:572 #, c-format msgid "In the directive number %u, a choice contains no number." -msgstr "" +msgstr "In directiefnummer %u bevat een keuze geen getal." #: src/format-java.c:583 #, c-format @@ -498,23 +529,24 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" +"In directiefnummer %u bevat een keuze een getal dat niet gevolgd wordt door " +"'<', '#' of '%s'." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "opmaakcode voor argument {%u}, als in '%s', komt niet voor in 'msgid'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "opmaakcode voor argument {%u} komt niet voor in '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "opmaakcodes in 'msgid' en '%s' voor argument {%u} zijn niet hetzelfde" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -524,43 +556,49 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" +"In directiefnummer %u is parameter %u van type '%s' maar wordt een parameter " +"van type '%s' verwacht." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" +"In directiefnummer %u zijn teveel parameters opgegeven; maximaal %u " +"parameter wordt verwacht." msgstr[1] "" +"In directiefnummer %u zijn teveel parameters opgegeven; maximaal %u " +"parameters worden verwacht." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format msgid "In the directive number %u, '%c' is not followed by a digit." -msgstr "" +msgstr "In directiefnummer %u wordt '%c' niet gevolgd door een cijfer." #: src/format-lisp.c:2736 src/format-scheme.c:2754 #, c-format msgid "In the directive number %u, the argument %d is negative." -msgstr "" +msgstr "In directiefnummer %u is argument %d negatief." #: src/format-lisp.c:2805 msgid "The string ends in the middle of a ~/.../ directive." -msgstr "" +msgstr "De tekenreeks stopt midden in een ~/.../ directief." #: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 #: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 #: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 #, c-format msgid "Found '~%c' without matching '~%c'." -msgstr "" +msgstr "'-%c' gevonden zonder overeenkomstige '-%c'." #: src/format-lisp.c:2863 src/format-scheme.c:2860 #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." -msgstr "" +msgstr "In directiefnummer %u zijn zowel de @- en de :-aanpastekens gegeven." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -568,24 +606,27 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" +"In directiefnummer %u is '~:[' niet gevolgd door twee clausules, gescheiden " +"door een '~;'." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." -msgstr "" +msgstr "In directiefnummer %u is '~;' gebruikt op een onjuiste positie." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." msgstr "" +"De tekenreeks verwijst naar enig argument op niet-compatibele manieren." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "de opmaakcodes in 'msgid' en '%s' zijn niet gelijkwaardig" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "de opmaakcodes in '%s' zijn geen subset van die in 'msgid'" #: src/format-perl.c:433 @@ -594,59 +635,66 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." msgstr "" +"In directiefnummer %u is de groottespecificatie niet-compatibel met de " +"conversiespecificatie '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "opmaakcode voor argument '%s' komt niet voor in '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" +"De tekenreeks verwijst naar argumenten zowel via argumentnamen als via " +"onbenoemde argumentspecificaties." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" +"De tekenreeks verwijst naar het argument genaamd '%s' op niet-compatibele " +"wijze." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "de opmaakcodes in 'msgid' verwachten een afbeelding, die in '%s' verwachten " "een tupel" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" +"opmaakcodes in 'msgid' verwachten een tuple, terwijl die in '%s' een " +"afbeelding verwachten" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "opmaakcode voor argument '%s', als in '%s', komt niet voor in 'msgid'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "de opmaakcodes in 'msgid' en '%s' voor argument '%s' zijn niet hetzelfde" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'msgid' is een eenvoudige opmaakcode maar '%s' is dat niet: het bevat een " +"'L'-vlag of een argumentnummer met dubbele cijfers." #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -682,11 +730,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -700,56 +748,56 @@ "zie http://gnu.org/licenses/gpl.html voor de volledige tekst.\n" "Er is GEEN GARANTIE, voor zover de wet dit toestaat.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Geschreven door %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "te veel argumenten" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Typ '%s --help' voor meer informatie.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr "" +msgstr "Gebruik: %s [OPTIE...]\n" #: src/hostname.c:215 #, c-format msgid "Print the machine's hostname.\n" -msgstr "" +msgstr "De hostnaam van de machine tonen.\n" #: src/hostname.c:218 #, c-format msgid "Output format:\n" -msgstr "" +msgstr "Opmaak van de uitvoer:\n" #: src/hostname.c:220 #, c-format msgid " -s, --short short host name\n" -msgstr "" +msgstr " -s, --short korte hostnaam\n" #: src/hostname.c:222 #, c-format @@ -757,49 +805,49 @@ " -f, --fqdn, --long long host name, includes fully qualified " "domain\n" " name, and aliases\n" -msgstr "" +msgstr " -f, --fqdn, --long lange hostnaam: FQDN plus aliassen\n" #: src/hostname.c:225 #, c-format msgid " -i, --ip-address addresses for the hostname\n" -msgstr "" +msgstr " -i, --ip-address IP-adressen behorend bij de hostnaam\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" -msgstr "" +msgstr "Informatieve uitvoer:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr "" +msgstr " -h, --help deze hulptekst tonen en stoppen\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr "" +msgstr " -V, --version programmaversie tonen en stoppen\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" "Rapporteer gebreken in het programma aan ;\n" @@ -808,327 +856,346 @@ #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" -msgstr "" +msgstr "kan hostnaam niet verkrijgen" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" -msgstr "" +msgstr "hoogstens één invoerbestand is toegestaan" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" -msgstr "%s en %s zijn mutually exclusive" +msgstr "%s en %s sluiten elkaar uit" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" -msgstr "" +msgstr "Gebruik: %s [OPTIE...] [INVOERBESTAND]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" +"Een verplicht argument bij een lange optie geldt ook voor de korte vorm.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Locatie van invoerbestand:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INVOERBESTAND in te lezen PO-bestand\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Locatie van uitvoerbestand:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" -msgstr "" +msgstr "Berichtenselectie:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" +msgstr "Uitvoerdetails:\n" + +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr "" +msgstr "Gebruik: %s [OPTIE...] [INVOERBESTAND]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1142,105 +1209,97 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INVOERBESTAND... invoerbestanden\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" -msgstr "" +msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "geen invoerbestanden gegeven" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "precies twee invoerbestanden zijn vereist" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" -msgstr "Gebruik: %s [OPTIE] bestaande.po referentie.pot\n" +msgstr "Gebruik: %s [OPTIE...] bestaande.po referentie.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1253,86 +1312,91 @@ "Twee PO-bestaden in Uniforum-stijl vergelijken en controleren dat beide\n" "dezelfde set msgid's bevatten. Het bestand 'bestaande.po' is een bestaand\n" "PO-bestand met oude vertalingen; het bestand 'referentie.pot' is het laatst\n" -" aangemaakte PO-bestand, of een een POT-bestand (gewoonlijk aangemaakt door\n" +"aangemaakte PO-bestand, of een een POT-bestand (gewoonlijk aangemaakt door\n" "'xgettext'). Het is belangrijk om te controleren dat alle berichten in het\n" "programma vertaald zijn. Wanneer er geen exacte overeenkomst is, wordt er\n" "ook naar vage gelijkenissen gekeken, om een betere diagnose te kunnen geven.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " bestaande.po bestaand bestand met vertalingen\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " referentie.pot verwijzingen naar de programmatekst\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "dit bericht is onvertaald" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "dit bericht moet door een vertaler gecontroleerd worden" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "dit bericht wordt gebruikt maar is niet gedefinieerd..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...maar de definitie is gelijksoortig" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "dit bericht wordt gebruikt maar is niet gedefinieerd in %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "waarschuwing: dit bericht wordt niet gebruikt" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "%d fatale fout gevonden" msgstr[1] "%d fatale fouten gevonden" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "er moeten minstens twee bestanden opgegeven worden" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1345,74 +1409,74 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "geen invoerbestand gegeven" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "precies één invoerbestand is vereist" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr "Gebruik: %s [OPTIE] INVOERBESTAND\n" +msgstr "Gebruik: %s [OPTIE...] INVOERBESTAND\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1421,22 +1485,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" -msgstr "" +msgstr "ontbrekende opdrachtnaam" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr "" +msgstr "Gebruik: %s [OPTIE...] OPDRACHT [OPDRACHTOPTIE...]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1446,67 +1510,69 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "" +msgstr "schrijven naar standaarduitvoer is mislukt" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" -msgstr "" +msgstr "schrijven naar subproces %s is mislukt" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "ontbrekende filternaam" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" -msgstr "" +msgstr "er moet minstens één sed-script gegeven worden" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr "" +msgstr "Gebruik: %s [OPTIE...] FILTER [FILTEROPTIE...]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" -msgstr "" +msgstr "Een filter toepassen op alle vertalingen in een PO-bestand.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" +"Het FILTER kan elk programma zijn dat een bericht leest van standaardinvoer\n" +"en een gewijzigd bericht naar standaarduitvoer schrijft.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -msgstr "" +msgstr "Nuttige FILTEROPTIEs als het FILTER 'sed' is:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1514,210 +1580,194 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d vertaald bericht" msgstr[1] "%d vertaalde berichten" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d vage gelijkenis" msgstr[1] ", %d vage gelijkenissen" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d onvertaald bericht" msgstr[1] ", %d onvertaalde berichten" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Gebruik: %s [OPTIE] bestandsnaam.po...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Uit een vertalingenbestand een binaire berichtencatalogus genereren.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" +"Een verplicht of optioneel argument bij een lange optie\n" +"geldt ook voor de korte vorm.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " bestandsnaam.po... invoerbestanden\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Werkingsmodus:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" -msgstr "" +msgstr "Locatie van uitvoerbestand in Java-modus:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1726,48 +1776,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" -msgstr "" +msgstr "Locatie van uitvoerbestand in C#-modus:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" -msgstr "" +msgstr "Locatie van uitvoerbestand in Tcl-modus:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1775,33 +1825,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1809,111 +1859,113 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "waarschuwing: PO-kopregels ontbreken of zijn ongeldig\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "waarschuwing: tekensetconversie zal niet werken\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "waarschuwing: PO-kopregels zijn gemarkeerd als 'fuzzy'\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "waarschuwing: oudere versies van 'msgfmt' vinden dit een fout\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domeinnaam '%s' is niet bruikbaar als bestandsnaam" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "domeinnaam '%s' is niet bruikbaar als bestandsnaam: voorvoegsel wordt " "gebruikt" -#: src/msgfmt.c:927 -#, fuzzy, c-format +#: src/msgfmt.c:948 +#, c-format msgid "`domain %s' directive ignored" -msgstr "`domein %s' directive genegeerd" +msgstr "directief 'domain %s' is genegeerd" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" -msgstr "leeg 'msgstr'-item genegeerd" +msgstr "leeg 'msgstr'-item is genegeerd" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" -msgstr "vaag 'msgstr'-item genegeerd" +msgstr "vaag 'msgstr'-item is genegeerd" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: waarschuwing: bronbestand bevat vage vertaling" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "fout tijdens lezen van '%s'" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" +"optie '%c' kan niet gebruikt worden voordat\n" +"'J' of 'K' of 'T' of 'C' of 'X' gegeven is" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1953,30 +2005,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -1984,24 +2036,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Aangemaakt op %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2009,54 +2061,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "fout bij lezen van huidige map" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "subproces %s is mislukt met afsluitwaarde %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2068,54 +2120,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" -msgstr "Engelse vertalingen voor het pakket %s" +msgstr "Nederlandse vertalingen voor het pakket %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" -msgstr "" +msgstr "huidige tekensetnaam '%s' is geen overdraagbare coderingsnaam" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." -msgstr "" +msgstr "doeltekensetnaam '%s' is geen overdraagbare coderingsnaam" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "waarschuwing: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2124,7 +2176,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2133,7 +2185,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2142,12 +2194,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2155,7 +2207,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2164,195 +2216,196 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" "Output of '%s' might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" msgstr "" +"Tekensetnaam '%s' (gegeven door de taalregio) is geen overdraagbare\n" +"coderingsnaam. De uitvoer van '%s' zou onjuist kunnen zijn.\n" +"Het zetten van LC_ALL=C kan dit eventueel vermijden.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "ongeldige waarde van 'nplurals'" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "ongeldige meervoudsexpressie" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "aantal meervouden = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "maar sommige berichten hebben slechts één meervoudsvorm" msgstr[1] "maar sommige berichten hebben slechts %lu meervoudsvormen" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "" -"maar sommige berichten hebben maar sommige berichten hebben slechts één " -"meervoudsvorméén meervoudsvorm" +msgstr[0] "maar sommige berichten hebben één meervoudsvorm" msgstr[1] "maar sommige berichten hebben %lu meervoudsvormen" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "'msgid' en 'msgid_plural' beginnen niet beide met '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "'msgid' en 'msgstr[%u]' beginnen niet beide met '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "'msgid' en 'msgstr' beginnen niet beide met '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "'msgid' en 'msgid_plural' eindigen niet beide met '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "'msgid' en 'msgstr[%u]' eindigen niet beide met '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "'msgid' en 'msgstr' eindigen niet beide met '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "meervoudsvormen zijn een uitbreiding van GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "sneltoetsmarkering '%c' ontbreekt in 'msgstr'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "'msgstr' bevat te veel '%c'-sneltoetsmarkeringen" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "kopveld '%s' ontbreekt in PO-kopregels\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "kopveld '%s' moet aan het begin van de regel beginnen\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "sommige kopvelden hebben nog de standaardwaarde\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "kopveld '%s' heeft nog de standaardwaarde\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "sommige kopvelden hebben nog de standaardwaarde\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: invoer is ongeldig in codering '%s'" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: fout tijdens omzetten van codering '%s' naar '%s'" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "invoerbestand bevat geen kopregel met een tekensetspecificatie" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s is alleen geldig met %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2376,52 +2429,52 @@ "Wanneer er geen exacte overeenkomst is, wordt er ook naar vage gelijkenissen\n" "gekeken, om een beter resultaat te produceren.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " bestaande.po bestaand bestand met oude vertalingen\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" " referentie.pot verwijzingen naar nieuwe programmatekst\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" -msgstr "" +msgstr "Locatie van uitvoerbestand in update-modus:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Het resultaat wordt teruggeschreven naar bestaande.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2433,7 +2486,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2441,96 +2494,93 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "dit bericht dient meervouden te definiëren" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "dit bericht dient geen meervouden te definiëren" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%s Gelezen: %ld bestaande plus %ld referentiebestanden -- %ld overgenomen, %" -"ld vervanderd, %ld ontbreken, %ld verouderd.\n" +"%s Gelezen: %ld bestaande plus %ld referentiebestanden -- %ld overgenomen, " +"%ld vervanderd, %ld ontbreken, %ld verouderd.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " voltooid.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s en expliciete bestandsnamen gaan niet samen" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" -msgstr "Gebruik: %s [OPTIE] [BESTAND]...\n" +msgstr "Gebruik: %s [OPTIE...] [BESTAND]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" -msgstr "" +msgstr "Locatie van invoerbestand in Java-modus:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2538,41 +2588,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" -msgstr "" +msgstr "Locatie van invoerbestand in C#-modus:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" -msgstr "" +msgstr "Locatie van invoerbestand in Tcl-modus:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2585,19 +2635,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2608,6 +2658,8 @@ "Charset \"%s\" is not a portable encoding name.\n" "Message conversion to user's charset might not work.\n" msgstr "" +"Tekensetnaam '%s' is geen overdraagbare coderingsnaam.\n" +"Conversie van berichten naar een andere tekenset kan mislukken.\n" #: src/po-charset.c:556 #, c-format @@ -2615,6 +2667,8 @@ "Charset \"%s\" is not supported. %s relies on iconv(),\n" "and iconv() does not support \"%s\".\n" msgstr "" +"Tekenset '%s' wordt niet ondersteund -- %s gebruikt iconv(),\n" +"en iconv() ondersteunt '%s' niet.\n" #: src/po-charset.c:563 src/po-charset.c:611 msgid "" @@ -2636,6 +2690,8 @@ "Charset \"%s\" is not supported. %s relies on iconv().\n" "This version was built without iconv().\n" msgstr "" +"Tekenset '%s' wordt niet ondersteund -- %s steunt op iconv(),\n" +"en deze versie is gecompileerd zonder iconv().\n" #: src/po-charset.c:643 msgid "" @@ -2675,65 +2731,65 @@ msgid "plural form has wrong index" msgstr "meervoudsvorm heeft een onjuiste index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "te veel fouten -- gestopt" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "ongeldige multibyte-sequentie" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "onvolledige multibyte-sequentie aan einde van bestand" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "onvolledige multibyte-sequentie aan einde van regel" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv() is mislukt" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "sleutelwoord '%s' is onbekend" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "ongeldige stuurtekenreeks" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "bestandseindeteken IN een tekenreeks" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "regeleindeteken IN een tekenreeks" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "tekstscheidingteken IN een tekenreeks" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "dit bestand mag geen domeindirectieven bevatten" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "dubbele definitie van een bericht" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "dit is de plek van de eerste definitie" @@ -2762,7 +2818,7 @@ #: src/read-properties.c:227 msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr "" +msgstr "waarschuwing: ongeldige '\\uxxxx '-syntax voor Unicode-teken" #: src/read-stringtable.c:802 msgid "warning: unterminated string" @@ -2819,28 +2875,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "fout tijdens omzetten van codering '%s' naar '%s'" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "er werden twee argumenten verwacht" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Gebruik: %s [OPTIE] URL BESTAND\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "fout bij schrijven naar standaarduitvoer" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2872,41 +2943,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr "kan uitvoerbestand \"%s\" niet aanmaken" +msgstr "kan uitvoerbestand '%s' niet aanmaken" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standaarduitvoer" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" -msgstr "" +msgstr "kan map '%s' niet aanmaken" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2914,16 +2985,16 @@ #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" -msgstr "fout bij openen om te schrijven van \"%s\"" +msgstr "fout bij openen van '%s' voor schrijven" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "geïnternationaliseerde berichten horen geen '\\%c'-stuurcodes te bevatten" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2932,7 +3003,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2949,8 +3020,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -2965,15 +3036,15 @@ #: src/write-resources.c:94 #, c-format msgid "error while writing to %s subprocess" -msgstr "fout bij schrijven naar '%s'-subproces" +msgstr "fout bij schrijven naar subproces %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -2991,154 +3062,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: waarschuwing: onafgesloten tekenreeks" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: waarschuwing: onafgesloten reguliere expressie" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: waarschuwing: onafgesloten tekenconstante" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: waarschuwing: onafgesloten tekenreeks" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: waarschuwing: ongeldig Unicode-teken" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: waarschuwing: onafgesloten tekenreeksconstante" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: waarschuwing: ')' gevonden waar '}' werd verwacht" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: waarschuwing: '}' gevonden waar ')' werd verwacht" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: waarschuwing: losse U+%04X " +msgstr "%s:%d: waarschuwing: losse U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: kan tekenreeksafsluiter '%s' niet vinden" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: ontbrekend rechterhaakje in \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3146,7 +3212,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3154,7 +3220,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3162,7 +3228,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3170,7 +3236,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3178,81 +3244,81 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: ongeldige definitie van tekenreeks" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: ontbrekend getal na #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: ongeldige tekenreeksexpressie" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "'--join-existing' kan niet gebruikt worden wanneer uitvoer naar " "standaarduitvoer wordt geschreven" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "waarschuwing: onbekende extensie '%2$s' van bestand '%1$s'; C wordt " "aangenomen" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Vertaalbare berichten extraheren uit de gegeven invoerbestanden.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3264,58 +3330,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3324,14 +3393,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3339,7 +3408,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3348,119 +3417,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standaardinvoer" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: waarschuwing: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3469,34 +3555,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3504,7 +3590,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "taal '%s' is onbekend" @@ -3512,3 +3598,24 @@ #: libgettextpo/gettext-po.c:84 msgid "" msgstr "" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: ongeldige optie -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle() is mislukt met foutcode 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Nog niet geïmplementeerd." + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "communicatie met subproces %s is mislukt" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "lezen van subproces %s is mislukt" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "subproces %s is geëindigd met afsluitwaarde %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "kopveld '%s' heeft nog de standaardwaarde\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/nn.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/nn.gmo differ diff -Nru gettext-0.17/gettext-tools/po/nn.po gettext-0.18.1.1/gettext-tools/po/nn.po --- gettext-0.17/gettext-tools/po/nn.po 2007-11-02 02:23:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/nn.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,226 +1,233 @@ -# Norwegian messages for GNU gettext. (nynorsk dialect) +# Norwegian Nynorsk translation of GNU gettext-tools. # Copyright (C) 1996 Free Software Foundation, Inc. -# Karl Anders ygard , 1996. +# This file is distributed under the same license as the gettext package. # +# Karl Anders Øygard , 1996. +# Eirik U. Birkeland , 2009 (started thorough revision). msgid "" msgstr "" -"Project-Id-Version: GNU gettext 0.10.12\n" +"Project-Id-Version: GNU gettext-tools 0.17\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 1996-03-21 08:46 EST\n" -"Last-Translator: Karl Anders ygard \n" -"Language-Team: Norwegian-nynorsk \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-06-17 22:37+0200\n" +"Last-Translator: Eirik U. Birkeland \n" +"Language-Team: Norwegian Nynorsk \n" +"Language: nn\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 0.3\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: gnulib-lib/argmatch.c:133 #, c-format msgid "invalid argument %s for %s" -msgstr "" +msgstr "Ugyldig argument %s for %s" #: gnulib-lib/argmatch.c:134 #, c-format msgid "ambiguous argument %s for %s" -msgstr "" +msgstr "Fleirtydig argument %s for %s" #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" -msgstr "" +msgstr "Gyldige argument er:" -#: gnulib-lib/clean-temp.c:333 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:335 +#, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "kan ikkje skifte tilbake til filkatalog \"%s\"" +msgstr "Finn inga mellombels mappe. Prøv å velja «$TMPDIR»" -#: gnulib-lib/clean-temp.c:347 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:349 +#, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "kan ikkje skifte tilbake til filkatalog \"%s\"" +msgstr "Klarer ikkje laga mellombels mappe med malen «%s»" -#: gnulib-lib/clean-temp.c:443 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:445 +#, c-format msgid "cannot remove temporary file %s" -msgstr "kan ikkje opprette utfila \"%s\"" +msgstr "Klarer ikkje fjerna mellombelsfila «%s»" -#: gnulib-lib/clean-temp.c:458 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:460 +#, c-format msgid "cannot remove temporary directory %s" -msgstr "kan ikkje skifte tilbake til filkatalog \"%s\"" +msgstr "Klarer ikkje fjerna mellombelsmappa «%s»" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "" +msgstr "Skrivefeil" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 +#, c-format msgid "error while opening \"%s\" for reading" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Feil ved opning av fila «%s» for lesing" -#: gnulib-lib/copy-file.c:73 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:74 +#, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Klarer ikkje opna reservekopien «%s» for skriving" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 +#, c-format msgid "error reading \"%s\"" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Feil ved lesing av «%s»" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 +#, c-format msgid "error writing \"%s\"" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Feil ved skriving til «%s»" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 -#, fuzzy, c-format +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 +#, c-format msgid "error after reading \"%s\"" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Feil etter lesing av «%s»" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" -msgstr "" +msgstr "«fdopen()» mislukkast" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" -msgstr "" +msgstr "Fann ikkje C#-kompilatoren. Prøv å installera «pnet»." #: gnulib-lib/csharpexec.c:343 #, c-format msgid "C# virtual machine not found, try installing pnet" -msgstr "" +msgstr "Fann ikkje virtuell maskin for C#. Prøv å installera «pnet»." -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "" +msgstr "Ukjend systemfeil" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" -msgstr "" +msgstr "Underprosessen %s var mislukka" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: flagg %s er fleirtydig\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: Flagget «%s» er fleirtydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: flagg --%s tek ikkje argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: Flagget «--%s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: flagg %c%s tek ikkje argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: Flagget «%c%s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: flagg %s treng eit argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: Flagget «%s» treng eit argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, fuzzy, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: Flagget «--%s» er ukjent\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, fuzzy, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: Flagget «%c%s» er ukjent\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: ulovleg flagg -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: Flagget «--%s» er ugyldig\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, fuzzy, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ulovleg flagg -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: Flagget treng eit argument -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: flagg treng eit argument -- %c\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: Flagget «-W %s» er fleirtydig\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, fuzzy, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: flagg %s er fleirtydig\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: Flagget «-W %s» tek ikkje argument\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, fuzzy, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: flagg --%s tek ikkje argument\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: Flagget «%s» treng eit argument\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format msgid "invalid source_version argument to compile_java_class" -msgstr "" +msgstr "Ugyldig «source_version»-argument til «compile_java_class»" #: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 #, c-format msgid "invalid target_version argument to compile_java_class" -msgstr "" +msgstr "Ugyldig «target_version»-argument til «compile_java_class»" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" -msgstr "" +msgstr "Klarte ikkje oppretta «%s»" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" -msgstr "feil under skriving av fila \"%s\"" +msgstr "Feil under skriving av fila «%s»" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" +"Fann ikkje Java-kompilatoren. Prøv å installera «gcj» eller vel " +"«$JAVAC»." #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" +"Fann ikkje virtuell maskin for Java. Prøv å installera «gij» eller vel " +"«$JAVA»." -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" -msgstr "" +msgstr "Inn/ut-feil i underprosessen %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" -msgstr "" +msgstr "Tomt for minne" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 -#, fuzzy, c-format +#, c-format msgid "cannot create pipe" -msgstr "kan ikkje opprette utfila \"%s\"" +msgstr "Klarer ikkje oppretta røyr" #. TRANSLATORS: #. Get translations for open and closing quotation marks. @@ -235,76 +242,80 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" -msgstr "" +msgstr "'" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" -msgstr "" +msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" -msgstr "" +msgstr "«_open_osfhandle» mislukkast" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "kan ikkje opprette utfila \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" -msgstr "" +msgstr "%s-underprosess" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" -msgstr "" +msgstr "Underprosessen %s fekk det alvorlege signalet %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" +"«%s» er ikkje ein gyldig streng i %s-formatet, til skilnad frå «msgif». " +"Årsak: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "format-spesifiseringane for argument %u er ulike" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "" +"Ein formatspesifikasjon for argumentet %u, som i «%s», finst ikkje i " +"«msgid»" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 -#, fuzzy, c-format +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 +#, c-format msgid "a format specification for argument %u doesn't exist in '%s'" -msgstr "format-spesifiseringane for argument %u er ulike" +msgstr "Ein formatspesifikasjon for argumentet %u finst ikkje i «%s»" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "format-spesifiseringane for argument %u er ulike" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "" +"Formatspesifikasjonane i «msgid» og «%s» for argumentet %u er ikkje like" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr "" +msgstr "Direktivnummeret %u startar, men sluttar ikkje, med |." #: src/format-c.c:181 #, c-format @@ -312,119 +323,135 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" +"I direktivnummer %u er symbolet etter «<» ikkje namnet på ein " +"formatspesifikasjonsmakro. Gyldige makronamn kan ein finne i ISO C 99, " +"avsnitt 7.8.1." #: src/format-c.c:588 #, c-format msgid "In the directive number %u, the token after '<' is not followed by '>'." msgstr "" +"I direktivnummer %u er symbolet etter «<» ikkje etterfølgt av «>»." #: src/format-c.c:814 #, c-format msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" +"Strengen viser til argumentnummer %u, men tek ikkje omsyn til argumentnummer " +"%u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" -"antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" +"Talet på formatspesifikasjonar i «msgid» og «%s» er ikkje det same" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." -msgstr "" +msgstr "I direktivnummer %u er ikkje «{» etterfølgt av eit argumentnummer." #: src/format-csharp.c:109 #, c-format msgid "In the directive number %u, ',' is not followed by a number." -msgstr "" +msgstr "I direktivnummer %u er ikkje «,» etterfølgt av eit tal." #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." msgstr "" +"Strengen sluttar midt i eit direktiv. «{» vart funnen utan tilhøyrande «}" +"»." #: src/format-csharp.c:139 #, c-format msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." msgstr "" +"Direktivnummer %u sluttar med det ugyldige teiknet «%c», i staden for «}" +"»." #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." -msgstr "" +msgstr "Direktivnummer %u sluttar med eit ugyldig teikn i staden for «}»." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" +"Strengen byrjar midt i eit direktiv. «}» vart funnen utan tilhøyrande " +"«{»." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." -msgstr "" +msgstr "Strengen inneheld ein enkelt «}» etter direktivnummer %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr "" +msgstr "Flaggkombinasjonen i direktivnummer %u er ugyldig." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." -msgstr "" +msgstr "I direktivnummer %u er det ikkje lov med ei presisering før «%c»." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." -msgstr "" +msgstr "Argumentnummeret for presiseringa må vera lik %u i direktivnummer %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" +"I direktivnummer %u er det ikkje lov med ein presiseringsspesifikasjon før " +"«%c»." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "" +msgstr "Presiseringsspesifikasjonen i direktivnummer %u er ugyldig." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." -msgstr "" +msgstr "I direktivnummer %u er det ikkje lov med flagg før «%c»." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "«msgid» brukar %%m, men «%s» gjer det ikkje" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "«msgid» brukar ikkje %%m, men «%s» brukar %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." -msgstr "" +msgstr "Strengen sluttar midt i eit direktiv." #: src/format-invalid.h:25 msgid "" "The string refers to arguments both through absolute argument numbers and " "through unnumbered argument specifications." msgstr "" +"Strengen viser til argument både gjennom absolutte argumentnummer og " +"unummererte argumentspesifikasjonar." #: src/format-invalid.h:28 #, c-format msgid "" "In the directive number %u, the argument number 0 is not a positive integer." -msgstr "" +msgstr "Argumentnummeret 0 i direktivnummer %u er ikkje eit positivt heiltal." #: src/format-invalid.h:30 #, c-format @@ -432,6 +459,7 @@ "In the directive number %u, the width's argument number 0 is not a positive " "integer." msgstr "" +"Breiddeargumentnummeret 0 i direktivnummer %u er ikkje eit positivt heiltal." #: src/format-invalid.h:32 #, c-format @@ -439,6 +467,8 @@ "In the directive number %u, the precision's argument number 0 is not a " "positive integer." msgstr "" +"Presisjonsargumentnummeret 0 i direktivnummer %u er ikkje eit positivt " +"heiltal." #: src/format-invalid.h:36 #, c-format @@ -446,6 +476,8 @@ "In the directive number %u, the character '%c' is not a valid conversion " "specifier." msgstr "" +"I direktivnummer %u er ikkje teiknet «%c» ein gyldig " +"omgjeringsspesifikasjon." #: src/format-invalid.h:37 #, c-format @@ -453,11 +485,13 @@ "The character that terminates the directive number %u is not a valid " "conversion specifier." msgstr "" +"Teiknet som avsluttar direktivnummer %u er ikkje ein gyldig " +"omgjeringsspesifikasjon." #: src/format-invalid.h:40 #, c-format msgid "The string refers to argument number %u in incompatible ways." -msgstr "" +msgstr "Strengen viser til argumentnummer %u på måtar som ikkje er gyldige." #: src/format-java.c:240 #, c-format @@ -465,17 +499,19 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" +"I direktivnummer %u har ikkje delstrengen «%s» eit gyldig format for dato " +"og klokkeslett." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format msgid "In the directive number %u, \"%s\" is not followed by a comma." -msgstr "" +msgstr "I direktivnummer %u er ikkje «%s» etterfølgt av eit komma." #: src/format-java.c:274 #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." -msgstr "" +msgstr "I direktivnummer %u har ikkje delstrengen «%s» eit gyldig talformat." #: src/format-java.c:323 #, c-format @@ -483,11 +519,13 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" +"Argumentnummeret i direktivnummer %u er ikkje etterfølgt av eit komma og " +"anten «%s», «%s», «%s» eller «%s»." #: src/format-java.c:572 #, c-format msgid "In the directive number %u, a choice contains no number." -msgstr "" +msgstr "Valet i direktivnummer %u har ikkje noko nummer." #: src/format-java.c:583 #, c-format @@ -495,24 +533,29 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" +"Valet i direktivnummer %u har eit nummer som ikkje er etterfølgt av «<», " +"«#» eller «%s»." #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr "format-spesifiseringane for argument %u er ulike" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "" +"Ein formatspesifikasjon for argument {%u}, som i «%s», finst ikkje i " +"«msgid»" -#: src/format-java.c:755 -#, fuzzy, c-format +#: src/format-java.c:756 +#, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" -msgstr "format-spesifiseringane for argument %u er ulike" +msgstr "Ein formatspesifikasjon for argument {%u} finst ikkje i «%s»" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" -msgstr "format-spesifiseringane for argument %u er ulike" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "" +"Formatspesifikasjonane i «msgid» og «%s» for argumentet {%u} er ikkje " +"like" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -521,43 +564,50 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" +"Parameteren «%u» i direktivnummer %u er av typen «%s», men det var venta " +"ein parameter av typen «%s»." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" +"Det er oppgjeve for mange parametrar i direktivnummer %u. Det var på det " +"meste venta %u parameter." msgstr[1] "" +"Det er oppgjeve for mange parametrar i direktivnummer %u. Det var på det " +"meste venta %u parametrar." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format msgid "In the directive number %u, '%c' is not followed by a digit." -msgstr "" +msgstr "I direktivnummer %u er ikkje «%c» etterfølgt av eit tal." #: src/format-lisp.c:2736 src/format-scheme.c:2754 #, c-format msgid "In the directive number %u, the argument %d is negative." -msgstr "" +msgstr "I direktivnummer %u er argumentet «%d» negativt." #: src/format-lisp.c:2805 msgid "The string ends in the middle of a ~/.../ directive." -msgstr "" +msgstr "Strengen sluttar midt i eit «~/.../»-direktiv." #: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 #: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 #: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 #, c-format msgid "Found '~%c' without matching '~%c'." -msgstr "" +msgstr "Fann «~%c» utan passande «~%c»." #: src/format-lisp.c:2863 src/format-scheme.c:2860 #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." msgstr "" +"Det er oppgjeve valtastar for både «@» og «:» i direktivnummer %u." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -565,26 +615,27 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" +"«~:[» i direktivnummer %u er ikkje etterfølgt av to paragrafteikn skilde " +"av «~;»." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." -msgstr "" +msgstr "«~;» har ei ugyldig plassering i direktivnummer %u." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." -msgstr "" +msgstr "Strengen viser til nokre av argumenta på måtar som ikkje er gyldige." #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "" -"antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "Formatspesifikasjonane i «msgid» og «%s» er ikkje like" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "format-spesifiseringane for argument %u er ulike" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "Formatspesifikasjonane i «%s» er ikkje ein del av dei i «msgid»" #: src/format-perl.c:433 #, c-format @@ -592,57 +643,60 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." msgstr "" +"Storleiksspesifikasjonen i direktivnummer %u er ikkje gyldig med " +"omgjeringsspesifikasjonen «%c»." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 -#, fuzzy, c-format +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 +#, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" -msgstr "format-spesifiseringane for argument %u er ulike" +msgstr "Ein formatspesifikasjon for argument «%s» finst ikkje i «%s»" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" +"Strengen viser til argument både gjennom argumentnamn og gjennom namnlause " +"argumentspesifikasjonar." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" +"antall format-spesifiseringar i «msgid» og «msgstr» stemmer ikkje " +"overeins" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"antall format-spesifiseringar i msgid og msgstr stemmer ikkje overeins" +"antall format-spesifiseringar i «msgid» og «msgstr» stemmer ikkje " +"overeins" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "format-spesifiseringane for argument %u er ulike" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "format-spesifiseringane for argument %u er ulike" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -679,11 +733,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -691,42 +745,46 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"© %s Free Software Foundation, Inc.\n" +"Lisens: GPLv3+ (GNU GPL versjon 3 eller seinare, )\n" +"Dette er fri programvare. Du kan fritt endra og distribuera henne vidare.\n" +"Det er INGEN GARANTI for dette produktet utover det som står i lova.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" -msgstr "" +msgstr "Skrive av %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 -#, fuzzy, c-format +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 +#, c-format msgid "too many arguments" -msgstr "manglar argument" +msgstr "For mange argument" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 -#, fuzzy, c-format +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 +#, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Prv %s --help for meir informasjon\n" +msgstr "Prøv «%s --help» for meir informasjon.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr "" +msgstr "Bruk: %s [VAL]\n" #: src/hostname.c:215 #, c-format @@ -756,29 +814,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -787,11 +845,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" @@ -800,335 +858,343 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 -#, fuzzy, c-format +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 +#, c-format msgid "at most one input file allowed" -msgstr "treng nyaktig to innfiler" +msgstr "" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s og %s utelukker kvarandre" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "inga innfil spesifisert" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 -#, fuzzy, c-format +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 +#, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -"Usage: %s [OPTION] [FILE]...\n" -"Mandatory arguments to long options are mandatory for short options too.\n" -" -e, --no-escape do not use C escapes in output (default)\n" -" -E, --escape use C escapes in output, no extended chars\n" -" -h, --help display this help and exit\n" -" -i, --indent write indented output style\n" -" -o, --output-file=FILE write output into FILE instead of standard " -"output\n" -" --strict write strict uniforum style\n" -" -V, --version output version information and exit\n" - -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 + +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1142,105 +1208,97 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, fuzzy, c-format msgid "no input files given" msgstr "inga innfil spesifisert" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" -msgstr "treng nyaktig to innfiler" +msgstr "treng nøyaktig to innfiler" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1251,91 +1309,97 @@ "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" "Bruk: %s [FLAGG] def.po ref.po\n" -"Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte flagg.\n" +"Obligatoriske argumenter til lange flagg er obligatoriske også til korte flagg.\n" " -h, --help vis denne hjelpeteksta og avslutt\n" " -V, --version vis programversjon og avslutt\n" "\n" -"Samanliknar to Uniforum .po-filer for sjekke at begge inneheld det samme\n" +"Samanliknar to Uniforum .po-filer for å sjekke at begge inneheld det samme\n" "settet msgid-strengar. def.po-filen er ein eksisterende PO-fil med dei\n" "gamle oversetjingane. ref.po-filen er den sist genererte PO-fila\n" -"(vanligvis generert med xgettext). Dette er nyttig for sjekke at du har\n" +"(vanligvis generert med xgettext). Dette er nyttig for å sjekke at du har\n" "oversett alle meldingar i programmet. Der samsvar ikkje kan finnast, vert\n" -"fuzzy samanlikning brukt for f betre diagnostikk.\n" +"«fuzzy» samanlikning brukt for å få betre diagnostikk.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "advarsel: denne meldinga er ikkje brukt" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "denne meldinga er brukt, men ikkje definert..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "... men denne definisjonen liknar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "denne meldinga er brukt, men ikkje definert i %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "advarsel: denne meldinga er ikkje brukt" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, fuzzy, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "fann %d fatale feil" +msgstr[1] "fann %d fatale feil" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1348,74 +1412,74 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "inga innfil spesifisert" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" -msgstr "treng nyaktig to innfiler" +msgstr "treng nøyaktig to innfiler" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1424,22 +1488,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 -#, fuzzy, c-format +#: src/msgexec.c:196 +#, c-format msgid "missing command name" -msgstr "manglar argument" +msgstr "" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1449,67 +1513,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "manglar argument" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1517,210 +1581,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] "" msgstr[1] "" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1729,48 +1775,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 -#, fuzzy, c-format +#: src/msgfmt.c:711 +#, c-format msgid "Output file location in C# mode:\n" -msgstr "inga innfil spesifisert" +msgstr "" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1778,33 +1824,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1812,109 +1858,109 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domenenamnet \"%s\" passar ikkje som filnavn" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domenenamnet \"%s\" passar ikkje som filnavn: brukar prefiks" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, fuzzy, c-format msgid "%s: warning: source file contains fuzzy translation" -msgstr "ADVARSEL: kildefila har fuzzy oversetjingar" +msgstr "ADVARSEL: kildefila har «fuzzy» oversetjingar" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, fuzzy, c-format msgid "error while reading \"%s\"" msgstr "feil under skriving av fila \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1954,30 +2000,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -1985,24 +2031,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2010,54 +2056,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2069,54 +2115,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2125,7 +2171,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2134,7 +2180,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2143,12 +2189,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2156,7 +2202,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2165,7 +2211,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2173,190 +2219,190 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "" -#: src/msgl-check.c:392 -#, fuzzy, c-format +#: src/msgl-check.c:468 +#, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "denne meldinga er brukt, men ikkje definert i %s" -msgstr[1] "denne meldinga er brukt, men ikkje definert i %s" +msgstr[0] "" +msgstr[1] "" -#: src/msgl-check.c:408 -#, fuzzy, c-format +#: src/msgl-check.c:484 +#, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "denne meldinga er brukt, men ikkje definert i %s" -msgstr[1] "denne meldinga er brukt, men ikkje definert i %s" +msgstr[0] "" +msgstr[1] "" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" -msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane byrjarr ikkje båe med '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane byrjarr ikkje båe med '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 #, fuzzy msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" -msgstr "msgid- og msgstr-verdiane byrjarr ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane byrjarr ikkje båe med '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" -msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane sluttar ikkje båe med '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" -msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane sluttar ikkje båe med '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 #, fuzzy msgid "`msgid' and `msgstr' entries do not both end with '\\n'" -msgstr "msgid- og msgstr-verdiane sluttar ikkje be med '\\n'" +msgstr "«msgid»- og «msgstr»-verdiane sluttar ikkje båe med '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "filhovud-feltet %s manglar i filhovud" +msgid "header field `%s' missing in header\n" +msgstr "filhovud-feltet «%s» manglar i filhovud" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr "filhovud-feltet %s skulle ha starta p byrjinga av linja" +msgstr "filhovud-feltet «%s» skulle ha starta på byrjinga av linja" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "nokre filhovud-felt har framleis sin initielle verdi" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "feltet %s har framleis sin forvalgte verdi" +msgid "header field `%s' still has the initial default value\n" +msgstr "nokre filhovud-felt har framleis sin initielle verdi" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "feil under skriving av fila \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2371,61 +2417,61 @@ msgstr "" "\n" "Fletter saman to Uniforum .po-filer. def.po-filen er ei eksisterande\n" -"PO-fil med gamle oversetjingar, som vil verte overfrt til den nye fila\n" +"PO-fil med gamle oversetjingar, som vil verte overført til den nye fila\n" "dersom dei framleis stemmer. Kommentarar vert teke med, men kommentarer om\n" -"sjlve ekstraheringa og fil-posisjoner vert sletta. ref.po-filen er den\n" +"sjølve ekstraheringa og fil-posisjoner vert sletta. ref.po-filen er den\n" "sist genererte PO-fila (vanlegvis generert med xgettext). Oversetjingar\n" "eller kommentarer i denne fila vert sletta, men punktum-kommentarer og\n" -"fil-posisjonar vert teke vare p. Der det ikkje er mogleg finne ei\n" -"eksakt overeinsstemming, vert fuzzy samanlikning brukt for f betre\n" +"fil-posisjonar vert teke vare på. Der det ikkje er mogleg å finne ei\n" +"eksakt overeinsstemming, vert «fuzzy» samanlikning brukt for å få betre\n" "resultat. Resultatet vert skrive til standard ut, med mindre ei utfil er\n" "spesifisert.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2437,7 +2483,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2445,96 +2491,93 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "denne meldinga er brukt, men ikkje definert i %s" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "denne meldinga er brukt, men ikkje definert i %s" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, fuzzy, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sLeste %d gamle + %d referansar, fletta inn %d, fuzzya %d, manglar %d,\n" +"%sLeste %d gamle + %d referansar, fletta inn %d, «fuzzya» %d, manglar %d,\n" "utdaterte %d.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr "" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s og %s utelukker kvarandre" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2542,41 +2585,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 -#, fuzzy, c-format +#: src/msgunfmt.c:467 +#, c-format msgid "Input file location in C# mode:\n" -msgstr "inga innfil spesifisert" +msgstr "" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2589,19 +2632,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2655,17 +2698,17 @@ #: src/po-gram-gen.y:240 #, fuzzy, c-format msgid "missing `msgstr[]' section" -msgstr "manglar msgstr-seksjon" +msgstr "manglar «msgstr»-seksjon" #: src/po-gram-gen.y:249 #, fuzzy, c-format msgid "missing `msgid_plural' section" -msgstr "manglar msgstr-seksjon" +msgstr "manglar «msgstr»-seksjon" #: src/po-gram-gen.y:257 #, c-format msgid "missing `msgstr' section" -msgstr "manglar msgstr-seksjon" +msgstr "manglar «msgstr»-seksjon" #: src/po-gram-gen.y:396 #, c-format @@ -2677,68 +2720,68 @@ msgid "plural form has wrong index" msgstr "" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, fuzzy, c-format msgid "too many errors, aborting" msgstr "for mange feil, avsluttar" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" -msgstr "denne fila kan ikkje innehalde domene-nkkelord" +msgstr "denne fila kan ikkje innehalde domene-nøkkelord" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" -msgstr "den frste definisjonen finst her" +msgstr "den første definisjonen finst her" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 #, fuzzy, c-format @@ -2756,39 +2799,33 @@ msgstr "fila \"%s\" er ikkje i GNU .mo-format" #: src/read-mo.c:178 -#, fuzzy, c-format +#, c-format msgid "file \"%s\" contains a not NUL terminated string, at %s" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-properties.c:227 -#, fuzzy msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-stringtable.c:802 -#, fuzzy msgid "warning: unterminated string" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-stringtable.c:810 -#, fuzzy msgid "warning: syntax error" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-stringtable.c:871 src/read-stringtable.c:893 -#, fuzzy msgid "warning: unterminated key/value pair" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-stringtable.c:939 -#, fuzzy msgid "warning: syntax error, expected ';' after string" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/read-stringtable.c:948 -#, fuzzy msgid "warning: syntax error, expected '=' or ';' after string" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" #: src/recode-sr-latin.c:116 #, c-format @@ -2825,28 +2862,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "feil under skriving av fila \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "manglar argument" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "feil under skriving av fila \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2878,41 +2930,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "kan ikkje opprette utfila \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr "kan ikkje skifte til filkatalog \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2922,14 +2974,14 @@ msgid "error while opening \"%s\" for writing" msgstr "feil under skriving av fila \"%s\"" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" -"internasjonaliserte meldingar skal ikkje innehalde escape-sekvensen \\%c" +"internasjonaliserte meldingar skal ikkje innehalde escape-sekvensen «\\%c»" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2938,7 +2990,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2955,8 +3007,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -2973,13 +3025,13 @@ msgid "error while writing to %s subprocess" msgstr "feil under skriving av fila \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -2997,154 +3049,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "advarsel: denne meldinga er ikkje brukt" -#: src/x-awk.c:593 -#, fuzzy, c-format +#: src/x-awk.c:592 +#, c-format msgid "%s:%d: warning: unterminated regular expression" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 -#, fuzzy, c-format +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 +#, c-format msgid "%s:%d: warning: unterminated character constant" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-c.c:1218 -#, fuzzy, c-format +#: src/x-c.c:1247 +#, c-format msgid "%s:%d: warning: unterminated string literal" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 -#, fuzzy, c-format +#: src/x-csharp.c:1390 src/x-python.c:1281 +#, c-format msgid "%s:%d: warning: invalid Unicode character" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-csharp.c:1509 src/x-java.c:872 -#, fuzzy, c-format +#: src/x-csharp.c:1512 src/x-java.c:875 +#, c-format msgid "%s:%d: warning: unterminated string constant" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "fila \"%s\" er ikkje i GNU .mo-format" +msgstr "" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: ulovleg flagg -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3152,7 +3199,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3160,7 +3207,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3168,7 +3215,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3176,7 +3223,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3184,78 +3231,78 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" -"--join-existing kan ikkje brukast nr utdata vert skrive til standard ut" +"--join-existing kan ikkje brukast når utdata vert skrive til standard ut" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "inga innfil spesifisert" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3267,58 +3314,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3327,14 +3377,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3342,7 +3392,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3351,119 +3401,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3472,34 +3539,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3507,7 +3574,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "" @@ -3516,207 +3583,19 @@ msgid "" msgstr "" -#, fuzzy -#~ msgid "...this is the location of the first definition" -#~ msgstr "den frste definisjonen finst her" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: Flagget «-- %c» er ulovleg\n" -#, fuzzy -#~ msgid "%s:%lu: warning: unterminated string" -#~ msgstr "fila \"%s\" er ikkje i GNU .mo-format" +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "Feil i «DuplicateHandle», med feilkoden 0x%08x" #, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -t, --to-code=NAME encoding for output\n" -#~ " --use-first use first available translation for " -#~ "each\n" -#~ " message, don't merge several " -#~ "translations\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output " -#~ "(default)\n" -#~ " -E, --escape use C escapes in output, no extended " -#~ "chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write the .po file using indented style\n" -#~ " --no-location do not write '#: filename:line' lines\n" -#~ " -n, --add-location generate '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict write out strict Uniforum conforming .po " -#~ "file\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several " -#~ "lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ " --omit-header don't write header with `msgid \"\"' " -#~ "entry\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent indented output style\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" -#~ " --keep-header keep header entry unmodified, don't filter " -#~ "it\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ " -F, --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " --no-escape do not use C escapes in output (default)\n" -#~ " --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " --indent indented output style\n" -#~ " --no-location suppress '#: filename:line' lines\n" -#~ " --add-location preserve '#: filename:line' lines " -#~ "(default)\n" -#~ " --strict strict Uniforum output style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer " -#~ "than\n" -#~ " the output page width, into several lines\n" -#~ " --sort-output generate sorted output\n" -#~ " --sort-by-file sort output by file location\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] INNFIL ...\n" -#~ "Obligatoriske argumenter til lange flagg er obligatoriske ogs til korte " -#~ "flagg.\n" -#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" -#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " -#~ "teikn\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -i, --indent indentert utdata\n" -#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" -#~ " --strict lag strengt Uniforum-konformt utdata\n" -#~ " -V, --version vis programversjon og avslutt\n" - -#, fuzzy -#~ msgid "" -#~ "Output details:\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " --force-po write PO file even if empty\n" -#~ " -i, --indent write indented output style\n" -#~ " --strict write strict uniforum style\n" -#~ " -w, --width=NUMBER set output page width\n" -#~ " --no-wrap do not break long message lines, longer than\n" -#~ " the output page width, into several lines\n" -#~ " -s, --sort-output generate sorted output\n" -#~ msgstr "" -#~ "Usage: %s [OPTION] [FILE]...\n" -#~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -e, --no-escape do not use C escapes in output (default)\n" -#~ " -E, --escape use C escapes in output, no extended chars\n" -#~ " -h, --help display this help and exit\n" -#~ " -i, --indent write indented output style\n" -#~ " -o, --output-file=FILE write output into FILE instead of standard " -#~ "output\n" -#~ " --strict write strict uniforum style\n" -#~ " -V, --version output version information and exit\n" +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "feltet «%s» har framleis sin forvalgte verdi" #, fuzzy #~ msgid "" +#~ "Usage: %s [OPTION] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" #~ " -d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN\n" #~ " -e enable expansion of some escape sequences\n" #~ " -E (ignored for compatibility)\n" @@ -3727,19 +3606,19 @@ #~ " to MSGID from TEXTDOMAIN\n" #~ msgstr "" #~ "Bruk: %s [FLAGG] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -#~ " -d, --domain=TEXTDOMAIN hent oversette meldingar fr TEXTDOMAIN\n" -#~ " -e sl p ekspandering av nokre escape-" +#~ " -d, --domain=TEXTDOMAIN hent oversette meldingar frå TEXTDOMAIN\n" +#~ " -e slå på ekspandering av nokre escape-" #~ "sekvensar\n" #~ " -E (tillete av kompatibilitetsomsyn)\n" #~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -n undertrykk etterflgjande linjeskift\n" +#~ " -n undertrykk etterfølgjande linjeskift\n" #~ " -v, --version vis programversjon og avslutt\n" #~ " [TEXTDOMAIN] MSGID hent oversett melding som stemmer overeins " #~ "med\n" -#~ " MSGID fr TEXTDOMAIN\n" +#~ " MSGID frå TEXTDOMAIN\n" -#, fuzzy #~ msgid "" +#~ "\n" #~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " #~ "the\n" #~ "environment variable TEXTDOMAIN. If the message catalog is not found in " @@ -3755,86 +3634,57 @@ #~ "Standard search directory: %s\n" #~ msgstr "" #~ "\n" -#~ "Dersom TEXTDOMAIN-parameteren ikkje er gjeven, vert domenet valgt fr\n" -#~ "miljvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikkje finst i den\n" -#~ "vanlege filkatalogen, kan ein annan filkatalog spesifiserast ved hjelp " -#~ "av\n" -#~ "miljvariabelen TEXTDOMAIN.\n" -#~ "Nr flagget -s vert brukt, oppfrer programmet seg som kommandoen echo,\n" -#~ "men gjer ikkje ein enkel kopiering av argumenta sine til standard ut. I\n" -#~ "staden vert meldingar som er funne i den valgte katalogen oversatt.\n" -#~ "Standard skekatalog er: %s\n" - -#, fuzzy -#~ msgid "" -#~ " -d, --domain=TEXTDOMAIN retrieve translated message from TEXTDOMAIN\n" -#~ " -e enable expansion of some escape sequences\n" -#~ " -E (ignored for compatibility)\n" -#~ " -h, --help display this help and exit\n" -#~ " -V, --version display version information and exit\n" -#~ " [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN\n" -#~ " MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL " -#~ "(plural)\n" -#~ " COUNT choose singular/plural form based on this " -#~ "value\n" -#~ msgstr "" -#~ "Bruk: %s [FLAGG] [[[TEXTDOMAIN] MSGID] | [-s [MSGID]...]]\n" -#~ " -d, --domain=TEXTDOMAIN hent oversette meldingar fr TEXTDOMAIN\n" -#~ " -e sl p ekspandering av nokre escape-" -#~ "sekvensar\n" -#~ " -E (tillete av kompatibilitetsomsyn)\n" -#~ " -h, --help vis denne hjelpeteksta og avslutt\n" -#~ " -n undertrykk etterflgjande linjeskift\n" -#~ " -v, --version vis programversjon og avslutt\n" -#~ " [TEXTDOMAIN] MSGID hent oversett melding som stemmer overeins " -#~ "med\n" -#~ " MSGID fr TEXTDOMAIN\n" - -#, fuzzy -#~ msgid "" -#~ "If the TEXTDOMAIN parameter is not given, the domain is determined from " -#~ "the\n" -#~ "environment variable TEXTDOMAIN. If the message catalog is not found in " -#~ "the\n" -#~ "regular directory, another location can be specified with the " -#~ "environment\n" -#~ "variable TEXTDOMAINDIR.\n" -#~ "Standard search directory: %s\n" -#~ msgstr "" -#~ "\n" -#~ "Dersom TEXTDOMAIN-parameteren ikkje er gjeven, vert domenet valgt fr\n" -#~ "miljvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikkje finst i den\n" +#~ "Dersom TEXTDOMAIN-parameteren ikkje er gjeven, vert domenet valgt frå\n" +#~ "miljøvariabelen TEXTDOMAIN. Dersom meldingskatalogen ikkje finst i den\n" #~ "vanlege filkatalogen, kan ein annan filkatalog spesifiserast ved hjelp " #~ "av\n" -#~ "miljvariabelen TEXTDOMAIN.\n" -#~ "Nr flagget -s vert brukt, oppfrer programmet seg som kommandoen echo,\n" +#~ "miljøvariabelen TEXTDOMAIN.\n" +#~ "Når flagget -s vert brukt, oppfører programmet seg som kommandoen " +#~ "«echo»,\n" #~ "men gjer ikkje ein enkel kopiering av argumenta sine til standard ut. I\n" #~ "staden vert meldingar som er funne i den valgte katalogen oversatt.\n" -#~ "Standard skekatalog er: %s\n" - -#~ msgid "seek \"%s\" offset %ld failed" -#~ msgstr "seek \"%s\" posisjon %ld feila" - -#, fuzzy -#~ msgid "a format specification for argument {%u} doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" +#~ "Standard søkekatalog er: %s\n" -#, fuzzy -#~ msgid "a format specification for argument '%s' doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#, fuzzy -#~ msgid "a format specification for argument %u doesn't exist in 'msgstr'" -#~ msgstr "format-spesifiseringane for argument %u er ulike" - -#~ msgid "while creating hash table" -#~ msgstr "mens hash-tabellen vart laga" +#~ msgid "this message has no definition in the \"%s\" domain" +#~ msgstr "denne meldinga har ingen definisjon i \"%s\"-domenet" #~ msgid "while preparing output" #~ msgstr "under klargjering av utdata" -#~ msgid "this message has no definition in the \"%s\" domain" -#~ msgstr "denne meldinga har ingen definisjon i \"%s\"-domenet" +#, fuzzy +#~ msgid "" +#~ "Usage: %s [OPTION] INPUTFILE ...\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -d, --default-domain=NAME use NAME.po for output (instead of " +#~ "messages.po)\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output " +#~ "(default)\n" +#~ " -E, --escape use C escapes in output, no extended " +#~ "chars\n" +#~ " -f, --files-from=FILE get list of input files from FILE\n" +#~ " --force-po write PO file even if empty\n" +#~ " -F, --sort-by-file sort output by file location\n" +#~ " -h, --help display this help and exit\n" +#~ msgstr "" +#~ "Bruk: %s [FLAGG] INNFIL ...\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " +#~ "flagg.\n" +#~ " -a, --extract-all ekstrahér alle strengar\n" +#~ " -c, --add-comments[=TAG] lagre kommentarblokker med TAG (eller\n" +#~ " kommentarar i linjer som kjem foran\n" +#~ " nøkkelord) i utfila\n" +#~ " -C, --c++ kjenn igjen C++-kommentarar\n" +#~ " -d, --default-domain=NAVN lagre utdata i NAVN.po (i staden for\n" +#~ " messages.po)\n" +#~ " -D, --directory=FILKATALOG skift til FILKATALOG før prosessering\n" +#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata " +#~ "(forvalgt)\n" +#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " +#~ "teikn\n" +#~ " -f, --files-from=FIL hent liste av innfiler frå FIL\n" +#~ " -F, --sort-by-file sorter utdata etter fil-lokasjon\n" #, fuzzy #~ msgid "" @@ -3855,16 +3705,96 @@ #~ " -u, --unique shorthand for --less-than=2, requests\n" #~ " that only unique messages be printed\n" #~ msgstr "" -#~ " -n, --add-location lag #: filenavn:linje-linjer (forvalgt)\n" -#~ " --omit-header ikkje lag startseksjon med msgid \"\"\n" -#~ " -p, --output-dir=KAT plassr utfiler i filkatalogen KAT\n" -#~ " -s, --sort-output sortr utdata og ta bort duplikat\n" +#~ " -n, --add-location lag «#: filenavn:linje»-linjer " +#~ "(forvalgt)\n" +#~ " --omit-header ikkje lag startseksjon med «msgid " +#~ "\"\"»\n" +#~ " -p, --output-dir=KAT plassér utfiler i filkatalogen KAT\n" +#~ " -s, --sort-output sortér utdata og ta bort duplikat\n" #~ " --strict lag strengt Uniforum-konform .po-fil\n" -#~ " -T, --trigraphs forst ANSI C trigraphs i inndata\n" +#~ " -T, --trigraphs forstå ANSI C trigraphs i inndata\n" #~ " -V, --version vis programversjon og avslutt\n" -#~ " -x, --exclude-file=FIL innslag fr FIL vert ikkje ekstrahert\n" +#~ " -x, --exclude-file=FIL innslag frå FIL vert ikkje ekstrahert\n" +#~ "\n" +#~ "Dersom INNFIL er -, vil det verte lese frå standard inn.\n" + +#, fuzzy +#~ msgid "" +#~ "Usage: %s [OPTION] filename.po ...\n" +#~ "Generate binary message catalog from textual translation description.\n" +#~ "\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" +#~ " -c, --check perform language dependent checks on " +#~ "strings\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -f, --use-fuzzy use fuzzy entries in output\n" +#~ " -h, --help display this help and exit\n" +#~ " --no-hash binary file will not include the hash " +#~ "table\n" +#~ " -o, --output-file=FILE specify output file name as FILE\n" +#~ " --statistics print statistics about translations\n" +#~ " --strict enable strict Uniforum mode\n" +#~ " -v, --verbose list input file anomalies\n" +#~ " -V, --version output version information and exit\n" +#~ "\n" +#~ "Giving the -v option more than once increases the verbosity level.\n" #~ "\n" -#~ "Dersom INNFIL er -, vil det verte lese fr standard inn.\n" +#~ "If input file is -, standard input is read. If output file is -,\n" +#~ "output is written to standard output.\n" +#~ msgstr "" +#~ "Bruk: %s [FLAGG] filnavn.po ...\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " +#~ "flagg.\n" +#~ " -a, --alignment=ANTALL justér strengar til ANTALL bytes (forvalgt: " +#~ "%d)\n" +#~ " -h, --help vis denne hjelpeteksta og avslutt\n" +#~ " --no-hash binærfil skal ikkje innehalde hash-tabell\n" +#~ " -o, --output-file=FILNAVN sett utfil til FILNAVN\n" +#~ " --strict lag strengt Uniforum-konform .po-fil\n" +#~ " -v, --verbose list alle avvik i innfil\n" +#~ " -V, --version vis programversjon og avslutt\n" +#~ "\n" +#~ "Dersom innfil er -, vil inndata verte lest frå standard inn. Dersom " +#~ "utfil\n" +#~ "er -, vil utdata verte skrive til standard ut.\n" + +#~ msgid "while creating hash table" +#~ msgstr "mens hash-tabellen vart laga" + +#, fuzzy +#~ msgid "" +#~ "Usage: %s [OPTION] def.po ref.po\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output (default)\n" +#~ " -E, --escape use C escapes in output, no extended chars\n" +#~ " --force-po write PO file even if empty\n" +#~ " -h, --help display this help and exit\n" +#~ " -i, --indent indented output style\n" +#~ " -o, --output-file=FILE result will be written to FILE\n" +#~ " --no-location suppress '#: filename:line' lines\n" +#~ " --add-location preserve '#: filename:line' lines " +#~ "(default)\n" +#~ " --strict strict Uniforum output style\n" +#~ " -v, --verbose increase verbosity level\n" +#~ " -V, --version output version information and exit\n" +#~ " -w, --width=NUMBER set output page width\n" +#~ msgstr "" +#~ "Bruk: %s [FLAGG] INNFIL ...\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " +#~ "flagg.\n" +#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata (forvalgt)\n" +#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " +#~ "teikn\n" +#~ " -h, --help vis denne hjelpeteksta og avslutt\n" +#~ " -i, --indent indentert utdata\n" +#~ " -o, --output-file=FIL resultat vert skrive til FIL\n" +#~ " --strict lag strengt Uniforum-konformt utdata\n" +#~ " -V, --version vis programversjon og avslutt\n" #, fuzzy #~ msgid "" @@ -3901,11 +3831,59 @@ #~ "By default the output is written to standard output.\n" #~ msgstr "" #~ "\n" -#~ "Konverter binre .mo-filer til Uniforum .po-filer. Bde little-endian " -#~ "og\n" -#~ "big-endian .mo filer vert hndtert. Dersom innfil er -, blir standard\n" +#~ "Konverter binære .mo-filer til Uniforum .po-filer. Både «little-" +#~ "endian» og\n" +#~ "«big-endian» .mo filer vert håndtert. Dersom innfil er -, blir " +#~ "standard\n" #~ "inn lest. Dersom utfil er -, vert det skrive til standard ut.\n" +#~ msgid "seek \"%s\" offset %ld failed" +#~ msgstr "«seek» \"%s\" posisjon %ld feila" + +#, fuzzy +#~ msgid "" +#~ "Usage: %s [OPTION] INPUTFILE ...\n" +#~ "Extract translatable string from given input files.\n" +#~ "\n" +#~ "Mandatory arguments to long options are mandatory for short options too.\n" +#~ " -a, --extract-all extract all strings\n" +#~ " -c, --add-comments[=TAG] place comment block with TAG (or those\n" +#~ " preceding keyword lines) in output file\n" +#~ " -C, --c++ shorthand for --language=C++\n" +#~ " --debug more detailed formatstring recognision " +#~ "result\n" +#~ " -d, --default-domain=NAME use NAME.po for output (instead of " +#~ "messages.po)\n" +#~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " +#~ "search\n" +#~ " -e, --no-escape do not use C escapes in output " +#~ "(default)\n" +#~ " -E, --escape use C escapes in output, no extended " +#~ "chars\n" +#~ " -f, --files-from=FILE get list of input files from FILE\n" +#~ " --force-po write PO file even if empty\n" +#~ " --foreign-user omit FSF copyright in output for foreign " +#~ "user\n" +#~ " -F, --sort-by-file sort output by file location\n" +#~ msgstr "" +#~ "Bruk: %s [FLAGG] INNFIL ...\n" +#~ "Obligatoriske argumenter til lange flagg er obligatoriske også til korte " +#~ "flagg.\n" +#~ " -a, --extract-all ekstrahér alle strengar\n" +#~ " -c, --add-comments[=TAG] lagre kommentarblokker med TAG (eller\n" +#~ " kommentarar i linjer som kjem foran\n" +#~ " nøkkelord) i utfila\n" +#~ " -C, --c++ kjenn igjen C++-kommentarar\n" +#~ " -d, --default-domain=NAVN lagre utdata i NAVN.po (i staden for\n" +#~ " messages.po)\n" +#~ " -D, --directory=FILKATALOG skift til FILKATALOG før prosessering\n" +#~ " -e, --no-escape ikkje bruk C-escapekoder i utdata " +#~ "(forvalgt)\n" +#~ " -E, --escape bruk C-escapekoder i utdata, ingen utvida " +#~ "teikn\n" +#~ " -f, --files-from=FIL hent liste av innfiler frå FIL\n" +#~ " -F, --sort-by-file sorter utdata etter fil-lokasjon\n" + #, fuzzy #~ msgid "" #~ " -h, --help display this help and exit\n" @@ -3914,6 +3892,8 @@ #~ " -k, --keyword[=WORD] additonal keyword to be looked for " #~ "(without\n" #~ " WORD means not to use default keywords)\n" +#~ " -l, --string-limit=NUMBER set string length limit to NUMBER " +#~ "instead %u\n" #~ " -L, --language=NAME recognise the specified language (C, C+" #~ "+, PO),\n" #~ " otherwise is guessed from file " @@ -3928,17 +3908,17 @@ #~ " -i, --indent lag indentert utdata\n" #~ " -j, --join-existing flett saman meldingar med eksisterande " #~ "fil\n" -#~ " -k, --keyword[=ORD] sj ogs etter nkkelordet ORD (manglar " -#~ "ORD,\n" -#~ " skal ikkje dei vanlege nkkelorda " +#~ " -k, --keyword[=ORD] sjå også etter nøkkelordet ORD " +#~ "(manglar ORD,\n" +#~ " skal ikkje dei vanlege nøkkelorda " #~ "nyttast)\n" -#~ " -l, --string-limit=NUMMER sett strste streng-lengde til NUMMER\n" +#~ " -l, --string-limit=NUMMER sett største streng-lengde til NUMMER\n" #~ " i staden for %u\n" #~ " -m, --msgstr-prefix[=STRENG] bruk STRENG eller \"\" som prefiks for\n" #~ " msgstr-verdiar\n" #~ " -M, --msgstr-suffix[=STRENG] bruk STRENG eller \"\" som suffiks for\n" #~ " msgstr-verdiar\n" -#~ " --no-location ikkje lag #: filnavn:linje-linjer\n" +#~ " --no-location ikkje lag «#: filnavn:linje»-linjer\n" #, fuzzy #~ msgid "" @@ -3960,35 +3940,15 @@ #~ "\n" #~ "If INPUTFILE is -, standard input is read.\n" #~ msgstr "" -#~ " -n, --add-location lag #: filenavn:linje-linjer (forvalgt)\n" -#~ " --omit-header ikkje lag startseksjon med msgid \"\"\n" -#~ " -p, --output-dir=KAT plassr utfiler i filkatalogen KAT\n" -#~ " -s, --sort-output sortr utdata og ta bort duplikat\n" +#~ " -n, --add-location lag «#: filenavn:linje»-linjer " +#~ "(forvalgt)\n" +#~ " --omit-header ikkje lag startseksjon med «msgid " +#~ "\"\"»\n" +#~ " -p, --output-dir=KAT plassér utfiler i filkatalogen KAT\n" +#~ " -s, --sort-output sortér utdata og ta bort duplikat\n" #~ " --strict lag strengt Uniforum-konform .po-fil\n" -#~ " -T, --trigraphs forst ANSI C trigraphs i inndata\n" +#~ " -T, --trigraphs forstå ANSI C trigraphs i inndata\n" #~ " -V, --version vis programversjon og avslutt\n" -#~ " -x, --exclude-file=FIL innslag fr FIL vert ikkje ekstrahert\n" +#~ " -x, --exclude-file=FIL innslag frå FIL vert ikkje ekstrahert\n" #~ "\n" -#~ "Dersom INNFIL er -, vil det verte lese fr standard inn.\n" - -#, fuzzy -#~ msgid "" -#~ "%s: warning: charset \"%s\" is not supported by iconv%s\n" -#~ "%*s warning: consider installing GNU libiconv and then\n" -#~ "%*s reinstalling GNU gettext" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" - -#, fuzzy -#~ msgid "" -#~ "%s: warning: charset \"%s\" is not supported without iconv%s\n" -#~ "%*s warning: consider installing GNU libiconv and then\n" -#~ "%*s reinstalling GNU gettext" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" - -#, fuzzy -#~ msgid "found %d errors" -#~ msgstr "fann %d fatale feil" - -#, fuzzy -#~ msgid "%s: warning: no header entry found" -#~ msgstr "advarsel: denne meldinga er ikkje brukt" +#~ "Dersom INNFIL er -, vil det verte lese frå standard inn.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/pl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/pl.gmo differ diff -Nru gettext-0.17/gettext-tools/po/pl.po gettext-0.18.1.1/gettext-tools/po/pl.po --- gettext-0.17/gettext-tools/po/pl.po 2007-11-02 02:23:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/pl.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,27 +1,29 @@ # Polish translations for the GNU gettext messages, tools domain -# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. -# Rafa Maszkowski , 1995-1999, 2001, 2003-2007 +# Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004, 2005, 2006, 2007, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Rafał Maszkowski , 1995-1999, 2001, 2003-2007, 2010 „” # Piotr Pogorzelski , 1995 # Jakub Bogusz , 2002, 2003 # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-tools 0.16.2-pre5\n" +"Project-Id-Version: GNU gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-10-17 13:50+0200\n" -"Last-Translator: Rafa Maszkowski \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 13:30+0200\n" +"Last-Translator: Rafał Maszkowski \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-2\n" -"Content-Transfer-Encoding: 8-bit\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: gnulib-lib/argmatch.c:133 #, c-format msgid "invalid argument %s for %s" -msgstr "bdny argument %s opcji %s" +msgstr "błędny argument %s opcji %s" #: gnulib-lib/argmatch.c:134 #, c-format @@ -31,202 +33,201 @@ #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" -msgstr "Prawidowe argumenty to:" +msgstr "Prawidłowe argumenty to:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "nie mona znale katalogu tymczasowego - naley ustawi $TMPDIR" +msgstr "nie można znaleźć katalogu tymczasowego - należy ustawić $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "nie mona utworzy katalogu tymczasowego przy uyciu szablonu \"%s\"" +msgstr "nie można utworzyć katalogu tymczasowego przy użyciu szablonu \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" -msgstr "nie mona usun pliku tymczasowego %s" +msgstr "nie można usunąć pliku tymczasowego %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" -msgstr "nie mona usun katalogu tymczasowego przy %s" +msgstr "nie można usunąć katalogu tymczasowego przy %s" #: gnulib-lib/closeout.c:66 msgid "write error" -msgstr "bd zapisu" +msgstr "błąd zapisu" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" -msgstr "bd w czasie otwierania \"%s\" do czytania" +msgstr "błąd w czasie otwierania \"%s\" do czytania" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr "bd otwarcia kopii zapasowej \"%s\" do pisania" +msgstr "błąd otwarcia kopii zapasowej \"%s\" do pisania" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" -msgstr "bd czytania \"%s\"" +msgstr "błąd czytania \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" -msgstr "bd pisania do \"%s\"" +msgstr "błąd pisania do \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" -msgstr "bd po przeczytaniu \"%s\"" +msgstr "błąd po przeczytaniu \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" -msgstr "fdopen() nie powiodo si" +msgstr "fdopen() nie powiodło się" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" -msgstr "Nie znaleziono kompilatora C#, prosz zainstalowa pnet" +msgstr "Nie znaleziono kompilatora C#, proszę zainstalować pnet" #: gnulib-lib/csharpexec.c:343 #, c-format msgid "C# virtual machine not found, try installing pnet" -msgstr "Nie znaleziono maszyny wirtualnej C#, prosz zainstalowa pnet" +msgstr "Nie znaleziono maszyny wirtualnej C#, proszę zainstalować pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" -msgstr "Nieznany bd systemu" +msgstr "Nieznany błąd systemu" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "niepowodzenie podprocesu %s" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: opcja: `%s' jest niejednoznaczna\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: opcja: '%s' jest niejednoznaczna\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: opcja `--%s' nie moe mie argumentu\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: opcja '--%s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: opcja `%c%s' nie moe mie argumentu\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: opcja '%c%s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: opcja `%s' wymaga argumentu\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: opcja '--%s' wymaga argumentu\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: nierozpoznana opcja `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: nierozpoznana opcja '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: nierozpoznana opcja `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: nierozpoznana opcja '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: niedozwolona opcja -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: błędna opcja -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: bdna opcja -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: opcja wymaga argumentu -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: opcja wymaga argumentu -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: opcja '-W %s' jest niejednoznaczna\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: opcja `-W %s' jest niejednoznaczna\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: opcja '-W %s' nie może mieć argumentu\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: opcja `-W %s' nie moe mie argumentu\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opcja '-W %s' wymaga argumentu\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format msgid "invalid source_version argument to compile_java_class" -msgstr "bdny argument source_version do compile_java_class" +msgstr "błędny argument source_version do compile_java_class" #: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 #, c-format msgid "invalid target_version argument to compile_java_class" -msgstr "bdny argument target_version do compile_java_class" +msgstr "błędny argument target_version do compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" -msgstr "tworzenie \"%s\" nie powiodo si" +msgstr "tworzenie \"%s\" nie powiodło się" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" -msgstr "bd podczas pisania do pliku \"%s\"" +msgstr "błąd podczas pisania do pliku \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" -"Nie znaleziono kompilatora Javy, prosz zainstalowa gcj lub ustawi $JAVAC" +"Nie znaleziono kompilatora Javy, proszę zainstalować gcj lub ustawić $JAVAC" #: gnulib-lib/javaexec.c:417 #, c-format msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -"Nie znaleziono maszyny wirtualnej Javy, prosz zainstalowa gij lub ustawi " +"Nie znaleziono maszyny wirtualnej Javy, proszę zainstalować gij lub ustawić " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" -msgstr "bd wejcia/wyjcia podprocesu %s" +msgstr "błąd wejścia/wyjścia podprocesu %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" -msgstr "pami wyczerpana" +msgstr "pamięć wyczerpana" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" -msgstr "nie mona utworzy potoku" +msgstr "nie można utworzyć potoku" #. TRANSLATORS: #. Get translations for open and closing quotation marks. @@ -241,79 +242,78 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "\"" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "\"" -#: gnulib-lib/w32spawn.h:47 +#: gnulib-lib/w32spawn.h:40 #, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "bd DuplicateHandle, kod 0x%08x" +msgid "_open_osfhandle failed" +msgstr "błąd _open_osfhandle" -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:81 #, c-format -msgid "_open_osfhandle failed" -msgstr "bd _open_osfhandle" +msgid "cannot restore fd %d: dup2 failed" +msgstr "nie można odtworzyć deskryptora pliku nr %d: niepowodzenie dup2()" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "podproces %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" -msgstr "podproces %s otrzyma krytyczny sygna %d" +msgstr "podproces %s otrzymał krytyczny sygnał %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"'%s' nie jest poprawnym formatem %s w przeciwiestwie do 'msgid'.\n" -"Powd: %s" +"'%s' nie jest poprawnym formatem %s w przeciwieństwie do '%s'.\n" +"Powód: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -"specyfikacja formatu dla argumentu %u, obecna w '%s', nie istnieje w 'msgid'" +"specyfikacja formatu dla argumentu %u, obecna w '%s', nie istnieje w '%s'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "specyfikacja formatu dla argumentu %u nie istnieje w '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "rnice si specyfikacje formatu w 'msgid' i '%s' dla argumentu %u" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "różniące się specyfikacje formatu w '%s' i '%s' dla argumentu %u" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr "Dyrektywa numer %u zaczyna si od |, ale nie koczy |." +msgstr "Dyrektywa numer %u zaczyna się od |, ale nie kończy |." #: src/format-c.c:181 #, c-format @@ -321,132 +321,132 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" -"W dyrektywie numer %u oznaczenie po '<' nie jest nazw makra specyfikujcego " -"format. Poprawne nazwy makr s podane w rozdziale 7.8.1 ISO C 99." +"W dyrektywie numer %u oznaczenie po '<' nie jest nazwą makra specyfikującego " +"format. Poprawne nazwy makr są podane w rozdziale 7.8.1 ISO C 99." #: src/format-c.c:588 #, c-format msgid "In the directive number %u, the token after '<' is not followed by '>'." -msgstr "W dyrektywie numer %u oznaczenie po '<' nie jest zakoczone przez '>'." +msgstr "W dyrektywie numer %u oznaczenie po '<' nie jest zakończone przez '>'." #: src/format-c.c:814 #, c-format msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -"Napis odwouje si do argumentu numer %u, ale ignoruje argument numer %u." +"Napis odwołuje się do argumentu numer %u, ale ignoruje argument numer %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "nie zgadza si liczba specyfikacji formatu w 'msgid' i w '%s'" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "nie zgadza się liczba specyfikacji formatu w '%s' i w '%s'" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." -msgstr "W dyrektywie numer %u po '{' nie wystpuje numer argumentu." +msgstr "W dyrektywie numer %u po '{' nie występuje numer argumentu." #: src/format-csharp.c:109 #, c-format msgid "In the directive number %u, ',' is not followed by a number." -msgstr "W dyrektywie numer %u po ',' nie wystpuje liczba." +msgstr "W dyrektywie numer %u po ',' nie występuje liczba." #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." msgstr "" -"acuch koczy si w rodku dyrektywy: znaleziono '{' bez odpowiadajcego " +"Łańcuch kończy się w środku dyrektywy: znaleziono '{' bez odpowiadającego " "'}'." #: src/format-csharp.c:139 #, c-format msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." -msgstr "Dyrektywa numer %u koczy si bdnym znakiem '%c' zamiast '}'." +msgstr "Dyrektywa numer %u kończy się błędnym znakiem '%c' zamiast '}'." #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." -msgstr "Dyrektywa numer %u koczy si bdnym znakiem zamiast '}'." +msgstr "Dyrektywa numer %u kończy się błędnym znakiem zamiast '}'." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." msgstr "" -"acuch zaczyna si w rodku dyrektywy: znaleziono '}' bez odpowiadajcego " +"Łańcuch zaczyna się w środku dyrektywy: znaleziono '}' bez odpowiadającego " "'{'." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." -msgstr "acuch zawiera samotny '}' po numerze dyrektywy %u." +msgstr "Łańcuch zawiera samotny '}' po numerze dyrektywy %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr "Bdny poczenie flag w dyrektywie numer %u." +msgstr "Błędny połączenie flag w dyrektywie numer %u." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -"W dyrektywie numer %u specyfikacja dokadnoci nie jest dozwolona przed '%c'." +"W dyrektywie numer %u specyfikacja dokładności nie jest dozwolona przed '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -"W dyrektywie numer %u numer argumentu specyfikacji dokadnoci musi by " -"rwny %u." +"W dyrektywie numer %u numer argumentu specyfikacji dokładności musi być " +"równy %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -"W dyrektywie numer %u specyfikacja dokadnoci nie jest dozwolona przed '%c'." +"W dyrektywie numer %u specyfikacja dokładności nie jest dozwolona przed '%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "W dyrektywie numer %u jest bdna specyfikacja dokadnoci." +msgstr "W dyrektywie numer %u jest błędna specyfikacja dokładności." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." -msgstr "W dyrektywie numer %u flagi nie s dozwolone przed '%c'." +msgstr "W dyrektywie numer %u flagi nie są dozwolone przed '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "'msgid' zawiera %%m, a '%s' nie" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s' zawiera %%m, a '%s' nie" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "'msgid' nie zawiera %%m, a '%s' zawiera" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s' nie zawiera %%m, a '%s' zawiera %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." -msgstr "acuch koczy si w rodku dyrektywy." +msgstr "Łańcuch kończy się w środku dyrektywy." #: src/format-invalid.h:25 msgid "" "The string refers to arguments both through absolute argument numbers and " "through unnumbered argument specifications." msgstr "" -"acuch odwouje si do argumentw jednoczenie poprzez bezwzgldne numery " -"argumentw i nienumerowane specyfikacje." +"Łańcuch odwołuje się do argumentów jednocześnie poprzez bezwzględne numery " +"argumentów i nienumerowane specyfikacje." #: src/format-invalid.h:28 #, c-format msgid "" "In the directive number %u, the argument number 0 is not a positive integer." msgstr "" -"W dyrektywie numer %u numer argumentu 0 nie jest dodatni liczb cakowit." +"W dyrektywie numer %u numer argumentu 0 nie jest dodatnią liczbą całkowitą." #: src/format-invalid.h:30 #, c-format @@ -454,8 +454,8 @@ "In the directive number %u, the width's argument number 0 is not a positive " "integer." msgstr "" -"W dyrektywie numer %u numer argumentu szerokoci 0 nie jest dodatni liczb " -"cakowit." +"W dyrektywie numer %u numer argumentu szerokości 0 nie jest dodatnią liczbą " +"całkowitą." #: src/format-invalid.h:32 #, c-format @@ -463,8 +463,8 @@ "In the directive number %u, the precision's argument number 0 is not a " "positive integer." msgstr "" -"W dyrektywie numer %u numer argumentu precyzji 0 nie jest dodatni liczb " -"cakowit." +"W dyrektywie numer %u numer argumentu precyzji 0 nie jest dodatnią liczbą " +"całkowitą." #: src/format-invalid.h:36 #, c-format @@ -472,7 +472,7 @@ "In the directive number %u, the character '%c' is not a valid conversion " "specifier." msgstr "" -"W dyrektywie numer %u znak '%c' nie jest poprawn specyfikacj konwersji." +"W dyrektywie numer %u znak '%c' nie jest poprawną specyfikacją konwersji." #: src/format-invalid.h:37 #, c-format @@ -480,12 +480,12 @@ "The character that terminates the directive number %u is not a valid " "conversion specifier." msgstr "" -"Znak koczcy dyrektyw numer %u nie jest poprawn specyfikacj konwersji." +"Znak kończący dyrektywę numer %u nie jest poprawną specyfikacją konwersji." #: src/format-invalid.h:40 #, c-format msgid "The string refers to argument number %u in incompatible ways." -msgstr "acuch odwouje si do argumentu numer %u na niekompatybilne sposoby." +msgstr "Łańcuch odwołuje się do argumentu numer %u na niekompatybilne sposoby." #: src/format-java.c:240 #, c-format @@ -493,18 +493,18 @@ "In the directive number %u, the substring \"%s\" is not a valid date/time " "style." msgstr "" -"W dyrektywie numer %u podcig \"%s\" nie jest poprawnym stylem daty/czasu." +"W dyrektywie numer %u podciąg \"%s\" nie jest poprawnym stylem daty/czasu." #: src/format-java.c:251 src/format-java.c:285 src/format-java.c:314 #, c-format msgid "In the directive number %u, \"%s\" is not followed by a comma." -msgstr "W dyrektywie numer %u po \"%s\" nie wystpuje przecinek." +msgstr "W dyrektywie numer %u po \"%s\" nie występuje przecinek." #: src/format-java.c:274 #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." -msgstr "W dyrektywie numer %u podcig \"%s\" nie jest poprawnym stylem liczby." +msgstr "W dyrektywie numer %u podciąg \"%s\" nie jest poprawnym stylem liczby." #: src/format-java.c:323 #, c-format @@ -512,13 +512,13 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" -"W dyrektywie numer %u po numerze argumentu nie wystpuje przecinek i jedno z " +"W dyrektywie numer %u po numerze argumentu nie występuje przecinek i jedno z " "\"%s\", \"%s\", \"%s\", \"%s\"." #: src/format-java.c:572 #, c-format msgid "In the directive number %u, a choice contains no number." -msgstr "W dyrektywie numer %u wybr nie zawiera liczby." +msgstr "W dyrektywie numer %u wybór nie zawiera liczby." #: src/format-java.c:583 #, c-format @@ -526,29 +526,27 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" -"W dyrektywie numer %u wybr zawiera liczb, po ktrej nie wystpuje '<', '#' " +"W dyrektywie numer %u wybór zawiera liczbę, po której nie występuje '<', '#' " "ani '%s'." #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"specyfikacja formatu dla argumentu {%u}, obecna w '%s', nie istnieje w " -"'msgid'" +"specyfikacja formatu dla argumentu {%u} obecna w '%s' nie istnieje w '%s'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "specyfikacja formatu dla argumentu {%u} nie istnieje w '%s'" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"specyfikacje formatu w 'msgid' i w '%s' dla argumentu {%u} nie s takie same" +"specyfikacje formatu w '%s' i w '%s' dla argumentu {%u} nie są takie same" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -563,22 +561,22 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" -"Za duo parametrw w dyrektywie numer %u, oczekiwano najwyej %u parametru." +"Za dużo parametrów w dyrektywie numer %u, oczekiwano najwyżej %u parametru." msgstr[1] "" -"Za duo parametrw w dyrektywie numer %u, oczekiwano najwyej %u parametrw." +"Za dużo parametrów w dyrektywie numer %u, oczekiwano najwyżej %u parametrów." msgstr[2] "" -"Za duo parametrw w dyrektywie numer %u, oczekiwano najwyej %u parametrw." +"Za dużo parametrów w dyrektywie numer %u, oczekiwano najwyżej %u parametrów." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format msgid "In the directive number %u, '%c' is not followed by a digit." -msgstr "W dyrektywie numer %u po '%c' nie wystpuje cyfra." +msgstr "W dyrektywie numer %u po '%c' nie występuje cyfra." #: src/format-lisp.c:2736 src/format-scheme.c:2754 #, c-format @@ -587,19 +585,19 @@ #: src/format-lisp.c:2805 msgid "The string ends in the middle of a ~/.../ directive." -msgstr "acuch koczy si w rodku dyrektywy ~/.../." +msgstr "Łańcuch kończy się w środku dyrektywy ~/.../." #: src/format-lisp.c:2843 src/format-lisp.c:3108 src/format-lisp.c:3225 #: src/format-lisp.c:3285 src/format-lisp.c:3397 src/format-scheme.c:2840 #: src/format-scheme.c:3105 src/format-scheme.c:3222 src/format-scheme.c:3320 #, c-format msgid "Found '~%c' without matching '~%c'." -msgstr "Znaleziono '~%c' bez odpowiadajcego '~%c'." +msgstr "Znaleziono '~%c' bez odpowiadającego '~%c'." #: src/format-lisp.c:2863 src/format-scheme.c:2860 #, c-format msgid "In the directive number %u, both the @ and the : modifiers are given." -msgstr "W dyrektywie numer %u podano jednoczenie modyfikatory @ i :." +msgstr "W dyrektywie numer %u podano jednocześnie modyfikatory @ i :." #: src/format-lisp.c:2976 src/format-scheme.c:2973 #, c-format @@ -607,27 +605,27 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" -"W dyrektywie numer %u po '~:[' nie wystpuj dwa wyraenia oddzielone przez " +"W dyrektywie numer %u po '~:[' nie występują dwa wyrażenia oddzielone przez " "'~;'." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format msgid "In the directive number %u, '~;' is used in an invalid position." -msgstr "W dyrektywie numer %u '~;' jest uyte w zym miejscu." +msgstr "W dyrektywie numer %u '~;' jest użyte w złym miejscu." #: src/format-lisp.c:3432 src/format-scheme.c:3355 msgid "The string refers to some argument in incompatible ways." -msgstr "acuch odwouje si do argumentu na niekompatybilne sposoby." +msgstr "Łańcuch odwołuje się do argumentu na niekompatybilne sposoby." #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "specyfikacje formatu w 'msgid' i w '%s' nie s rwnowane" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "specyfikacje formatu w '%s' i w '%s' nie są równoważne" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "specyfikacje formatu w '%s' nie s podzbiorem tych z 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "specyfikacje formatu w '%s' nie są podzbiorem tych z '%s'" #: src/format-perl.c:433 #, c-format @@ -635,116 +633,112 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." msgstr "" -"W dyrektywie numer %u specyfikacja rozmiaru jest niezgodna ze specyfikacj " +"W dyrektywie numer %u specyfikacja rozmiaru jest niezgodna ze specyfikacją " "conwersji '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "specyfikacja formatu dla argumentu '%s' nie istnieje w '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -"acuch odwouje si do argumentw jednoczenie poprzez nazwy i nienazwane " +"Łańcuch odwołuje się do argumentów jednocześnie poprzez nazwy i nienazwane " "specyfikacje." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -"acuch odwouje si do argumentu o nazwie '%s' na niekompatybilne sposoby." +"Łańcuch odwołuje się do argumentu o nazwie '%s' na niekompatybilne sposoby." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"specyfikacje formatu w 'msgid' oczekuj mapowania, a te w '%s' oczekuj " +"specyfikacje formatu w '%s' potrzebują mapowania, a te w '%s' potrzebują " "krotki" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"specyfikacje formatu w 'msgid' oczekuj krotki, a te w '%s' oczekuj " +"specyfikacje formatu w '%s' potrzebują krotki, a te w '%s' potrzebują " "mapowania" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -"specyfikacja formatu dla argumentu '%s', obecna w '%s', nie istnieje w " -"'msgid'" +"specyfikacja formatu dla argumentu '%s', obecna w '%s', nie istnieje w '%s'" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"specyfikacje formatu w 'msgid' i w '%s' dla argumentu '%s' nie s takie same" +"specyfikacje formatu w '%s' i w '%s' dla argumentu '%s' nie są takie same" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"'msgid' jest w prostym formacie, a '%s' nie jest: zawiera flag 'L' albo " -"dwucyfrow liczb argumentw" +"'%s' jest w prostym formacie, a '%s' nie jest: zawiera flagę 'L' albo " +"dwucyfrową liczbę argumentów" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." msgstr "" -"Zmienna powoki, do ktrej odwouje si acuch znakw ma nazw nie ze " -"znakw ASCII." +"Zmienna powłoki, do której odwołuje się łańcuch znaków ma nazwę nie ze " +"znaków ASCII." #: src/format-sh.c:81 msgid "" "The string refers to a shell variable with complex shell brace syntax. This " "syntax is unsupported here due to security reasons." msgstr "" -"Zmienna powoki, do ktrej odwouje si acuch znakw ma skomplikowan " -"skadni nawiasw. Ta skadnia nie jest uywana z powodw bezpieczestwa." +"Zmienna powłoki, do której odwołuje się łańcuch znaków ma skomplikowaną " +"składnię nawiasów. Ta składnia nie jest używana z powodów bezpieczeństwa." #: src/format-sh.c:83 msgid "" "The string refers to a shell variable whose value may be different inside " "shell functions." msgstr "" -"Zmienna powoki, do ktrej odwouje si acuch znakw moe mie inn " -"warto wewntrz funkcji powoki." +"Zmienna powłoki, do której odwołuje się łańcuch znaków może mieć inną " +"wartość wewnątrz funkcji powłoki." #: src/format-sh.c:85 msgid "The string refers to a shell variable with an empty name." -msgstr "Zmienna powoki, do ktrej odwouje si acuch znakw ma pust nazw." +msgstr "Zmienna powłoki, do której odwołuje się łańcuch znaków ma pustą nazwę." #: src/format-ycp.c:90 #, c-format msgid "" "In the directive number %u, the character '%c' is not a digit between 1 and " "9." -msgstr "W dyrektywie numer %u znak '%c' nie jest cyfr od 1 do 9." +msgstr "W dyrektywie numer %u znak '%c' nie jest cyfrą od 1 do 9." #: src/format-ycp.c:91 #, c-format msgid "" "The character that terminates the directive number %u is not a digit between " "1 and 9." -msgstr "Znak koczcy dyrektyw %u nie jest cyfr od 1 do 9." +msgstr "Znak kończący dyrektywę %u nie jest cyfrą od 1 do 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -754,44 +748,44 @@ msgstr "" "Copyright (C) %s Free Software Foundation, Inc.\n" "Licencja GPLv3+: GNU GPL, wersja 3 lub nowsza \n" -"To jest wolne oprogramowanie: moesz je modyfikowa i rozpowszechnia.\n" -"Autorzy NIE DAJ GWARANCJI, na ile pozwala na to prawo.\n" +"To jest wolne oprogramowanie: możesz je modyfikować i rozpowszechniać.\n" +"Autorzy NIE DAJĄ GWARANCJI, na ile pozwala na to prawo.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" -msgstr "Program napisa %s.\n" +msgstr "Program napisał %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" -msgstr "za duo argumentw" +msgstr "za dużo argumentów" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" -msgstr "Polecenie `%s --help' poda wicej informacji.\n" +msgstr "Polecenie `%s --help' poda więcej informacji.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" -msgstr "Skadnia: %s [OPCJA]\n" +msgstr "Składnia: %s [OPCJA]\n" #: src/hostname.c:215 #, c-format @@ -801,12 +795,12 @@ #: src/hostname.c:218 #, c-format msgid "Output format:\n" -msgstr "Format wyjcia:\n" +msgstr "Format wyjścia:\n" #: src/hostname.c:220 #, c-format msgid " -s, --short short host name\n" -msgstr " -s, --short krtka nazwa komputera\n" +msgstr " -s, --short krótka nazwa komputera\n" #: src/hostname.c:222 #, c-format @@ -815,8 +809,8 @@ "domain\n" " name, and aliases\n" msgstr "" -" -f, --fqdn, --long duga nazwa komputera, zawierajca pen " -"nazw\n" +" -f, --fqdn, --long długa nazwa komputera, zawierająca pełną " +"nazwę\n" " domeny i aliasy\n" #: src/hostname.c:225 @@ -824,418 +818,444 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address adresy komputera\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informacje:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" -msgstr " -h, --help wywietlenie tego opisu i zakoczenie\n" +msgstr " -h, --help wyświetlenie tego opisu i zakończenie\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" -msgstr " -V, --version wypisanie informacji o wersji i zakoczenie pracy\n" +msgstr " -V, --version wypisanie informacji o wersji i zakończenie pracy\n" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" -msgstr "Raporty o bdach prosimy wysya do bug-gnu-gettext@gnu.org .\n" +msgstr "Raporty o błędach prosimy wysyłać do bug-gnu-gettext@gnu.org .\n" #: src/hostname.c:255 src/hostname.c:261 src/hostname.c:268 #, c-format msgid "could not get host name" -msgstr "nie mona odczyta nazwy komputera" +msgstr "nie można odczytać nazwy komputera" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" -msgstr "dozwolony najwyej jeden plik wejciowy" +msgstr "dozwolony najwyżej jeden plik wejściowy" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" -msgstr "%s i %s wzajemnie si wykluczaj" +msgstr "%s i %s wzajemnie się wykluczają" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" -msgstr "Skadnia: %s [OPCJA] [PLIK-WEJCIOWY]\n" +msgstr "Składnia: %s [OPCJA] [PLIK-WEJŚCIOWY]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -"Filtrowanie komunikatw z katalogu tumacze zgodnie z ich atrybutami oraz\n" +"Filtrowanie komunikatów z katalogu tłumaczeń zgodnie z ich atrybutami oraz\n" "manipulowanie atrybutami.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -"Argumenty obowizkowe dla opcji dugich s obowizkowe take dla krtkich.\n" +"Argumenty obowiązkowe dla opcji długich są obowiązkowe także dla krótkich.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" -msgstr "Pooenie pliku wejciowego:\n" +msgstr "Położenie pliku wejściowego:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" -msgstr " PLIK-WEJCIOWY wczytanie pliku PO\n" +msgstr " PLIK-WEJŚCIOWY wczytanie pliku PO\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -" -D, --directory=KATALOG dodanie KATALOGU do listy poszukiwania plikw\n" +" -D, --directory=KATALOG dodanie KATALOGU do listy poszukiwania plików\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -"Jeli nie podano pliku wejciowego lub plik to -, czytane jest standardowe\n" -"wejcie.\n" +"Jeśli nie podano pliku wejściowego lub plik to -, czytane jest standardowe\n" +"wejście.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" -msgstr "Pooenie pliku wyjciowego:\n" +msgstr "Położenie pliku wyjściowego:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=PLIK zapisanie wyniku do podanego pliku\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -"Wyniki s wypisywane na standardowe wyjcie jeli nie podano pliku lub " +"Wyniki są wypisywane na standardowe wyjście jeśli nie podano pliku lub " "podany\n" "plik to -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" -msgstr "Wybr komunikatw:\n" +msgstr "Wybór komunikatów:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -" --translated zachowanie przetumaczonych, usunicie nie\n" -" przetumaczonych\n" +" --translated zachowanie przetłumaczonych, usunięcie nie\n" +" przetłumaczonych\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -" --untranslated zachowanie nie przetumaczonych, usunicie\n" -" przetumaczonych\n" +" --untranslated zachowanie nie przetłumaczonych, usunięcie\n" +" przetłumaczonych\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -" --no-fuzzy usunicie komunikatw oznaczonych 'fuzzy'\n" +" --no-fuzzy usunięcie komunikatów oznaczonych 'fuzzy'\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -" --only-fuzzy zachowanie komunikatw oznaczonych 'fuzzy'\n" +" --only-fuzzy zachowanie komunikatów oznaczonych 'fuzzy'\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -" --no-obsolete usunicie przestarzaych komunikatw #~\n" +" --no-obsolete usunięcie przestarzałych komunikatów #~\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -" --only-obsolete zachowanie przestarzaych komunikatw #~\n" +" --only-obsolete zachowanie przestarzałych komunikatów #~\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipulowanie atrybutami:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -" --set-fuzzy oznaczenie wszystkich komunikatw jako " +" --set-fuzzy oznaczenie wszystkich komunikatów jako " "'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -" --clear-fuzzy oznaczenie wszystkich komunikatw jako\n" +" --clear-fuzzy oznaczenie wszystkich komunikatów jako\n" " nie-'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -" --set-obsolete oznaczenie wszystkich komunikatw jako\n" -" przestarzae\n" +" --set-obsolete oznaczenie wszystkich komunikatów jako\n" +" przestarzałe\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -" --clear-obsolete oznaczenie wszystkich komunikatw jako nie\n" -" przestarzae\n" +" --clear-obsolete oznaczenie wszystkich komunikatów jako nie\n" +" przestarzałe\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -" --clear-previous usunicie \"previous msgid\" z wszystkich " -"komunikatw\n" +" --clear-previous usunięcie \"previous msgid\" z wszystkich " +"komunikatów\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -" --only-file=PLIK.po modyfikacja tylko wpisw obecnych w PLIKU.po\n" +" --only-file=PLIK.po modyfikacja tylko wpisów obecnych w PLIKU.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -" --ignore-file=PLIK.po modyfikacja tylko wpisw nie obecnych w PLIKU." +" --ignore-file=PLIK.po modyfikacja tylko wpisów nie obecnych w PLIKU." "po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy synonim dla --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete synonim dla --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" -msgstr "Skadnia pliku wejciowego:\n" +msgstr "Składnia pliku wejściowego:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -" -P, --properties-input plik wejciowy ma skadni .properties Javy\n" +" -P, --properties-input plik wejściowy ma składnię .properties Javy\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -" --stringtable-input plik wejciowy ma skadni .string z\n" +" --stringtable-input plik wejściowy ma składnię .string z\n" " NeXTstep/GNUstep\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" -msgstr "Szczegy dotyczce wyjcia:\n" +msgstr "Szczegóły dotyczące wyjścia:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color używanie zawsze kolorów i innych atrybutów " +"tekstu\n" +" --color=WARUNEK używanie kolorów i innych atrybutów jeżeli\n" +" zachodzi WARUNEK, który może mieć wartości:\n" +" 'always' (zawsze), 'never' (nigdy), 'auto' " +"albo\n" +" 'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=PLIKSTYLU podanie pliku reguł CSS dla opcji --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -" -e, --no-escape nie uywanie sekwencji C na wyjciu " -"(domylne)\n" +" -e, --no-escape nie używanie sekwencji C na wyjściu " +"(domyślne)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -" -E, --escape uywanie sekwencji C, bez znakw " +" -E, --escape używanie sekwencji C, bez znaków " "rozszerzonych\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -" --force-po zapisanie pliku PO nawet jeli jest pusty\n" +" --force-po zapisanie pliku PO nawet jeśli jest pusty\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -" -i, --indent zapisanie pliku .po w stylu z wciciami\n" +" -i, --indent zapisanie pliku .po w stylu z wcięciami\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location nie zapisywanie linii '#: plik:linia'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -" -n, --add-location generowanie linii '#: plik:linia' (domylne)\n" +" -n, --add-location generowanie linii '#: plik:linia' (domyślne)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -" --strict zapisanie pliku .po cile zgodnego z " +" --strict zapisanie pliku .po ściśle zgodnego z " "Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output zapisanie pliku .properties Javy\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output zapisanie pliku .strings NeXTstep/GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -" -w, --width=LICZBA ustawienie szerokoci strony dla wyjcia\n" +" -w, --width=LICZBA ustawienie szerokości strony dla wyjścia\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -" --no-wrap nie amanie na wiele linii komunikatw " -"duszych\n" -" ni szeroko strony\n" - -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +" --no-wrap nie łamanie na wiele linii komunikatów " +"dłuższych\n" +" niż szerokość strony\n" + +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" -msgstr " -s, --sort-output generowanie posortowanego wyjcia\n" +msgstr " -s, --sort-output generowanie posortowanego wyjścia\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -" -F, --sort-by-file sortowanie wyjcia wedug pooenia pliku\n" +" -F, --sort-by-file sortowanie wyjścia według położenia pliku\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" -msgstr "podane niemoliwe kryteria selekcji (%d < n < %d)" +msgstr "podane niemożliwe kryteria selekcji (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr "Skadnia: %s [OPCJA] [PLIK-WEJCIOWY]\n" +msgstr "Składnia: %s [OPCJA] [PLIK-WEJŚCIOWY]\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1248,137 +1268,121 @@ "is specified, they will be taken from the first PO file to define them.\n" "File positions from all PO files will be cumulated.\n" msgstr "" -"czenie i zespalanie podanych plikw PO.\n" -"Znajduje komunikaty wsplne dla dwch lub wicej podanych plikw PO.\n" -"Mona zada wikszego uwsplnienia przed wypisaniem komunikatw uywajc\n" -"opcji --more-than. Odpowiednio opcja --less-than moe by uyta dla ustalenia\n" -"mniejszego uwsplnienia pomidzy komunikatami (np. --less-than=2 wypisze tylko\n" -"unikalne komunikaty). Tumaczenia, komentarze tumacze i wydobyte zostan\n" -"zgromadzone, chyba e zostanie podana opcja --use-first, wtedy bd skopiowane\n" -"tylko z pierwszego definiujcego je pliku PO. Pozycje w plikach dla wszystkich\n" -"plikw PO zostan zgromadzone.\n" +"Łączenie i zespalanie podanych plików PO.\n" +"Znajduje komunikaty wspólne dla dwóch lub więcej podanych plików PO.\n" +"Można zażądać większego uwspólnienia przed wypisaniem komunikatów używając\n" +"opcji --more-than. Odpowiednio opcja --less-than może być użyta dla ustalenia\n" +"mniejszego uwspólnienia pomiędzy komunikatami (np. --less-than=2 wypisze tylko\n" +"unikalne komunikaty). Tłumaczenia, komentarze tłumaczeń i wydobyte zostaną\n" +"zgromadzone, chyba że zostanie podana opcja --use-first, wtedy będą skopiowane\n" +"tylko z pierwszego definiującego je pliku PO. Pozycje w plikach dla wszystkich\n" +"plików PO zostaną zgromadzone.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" -msgstr " PLIK-WEJCIOWY ... pliki wejciowe\n" +msgstr " PLIK-WEJŚCIOWY ... pliki wejściowe\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -" -f, --files-from=PLIK odczytanie listy plikw wejciowych z PLIKU\n" +" -f, --files-from=PLIK odczytanie listy plików wejściowych z PLIKU\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" -msgstr "Jeli plik wejciowy to -, czytane jest standardowe wejcie.\n" +msgstr "Jeśli plik wejściowy to -, czytane jest standardowe wejście.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -" -<, --less-than=LICZBA wypisanie komunikatw z liczb definicji\n" -" mniejsz od LICZBY, domylnie " -"nieskoczonoci\n" +" -<, --less-than=LICZBA wypisanie komunikatów z liczbą definicji\n" +" mniejszą od LICZBY, domyślnie " +"nieskończoności\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -" ->, --more-than=LICZBA wypisanie komunikatw z liczb definicji\n" -" wiksz od LICZBY, domylnie 1\n" +" ->, --more-than=LICZBA wypisanie komunikatów z liczbą definicji\n" +" większą od LICZBY, domyślnie 1\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -" -u, --unique skrt dla --less-than=2, danie wypisania\n" -" wycznie unikalnych komunikatw\n" +" -u, --unique skrót dla --less-than=2, żądanie wypisania\n" +" wyłącznie unikalnych komunikatów\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -" -P, --properties-input pliki wejciowe maj skadni .properties " +" -P, --properties-input pliki wejściowe mają składnię .properties " "Javy\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -" --stringtable-input pliki wejciowe maj skadni .strings\n" +" --stringtable-input pliki wejściowe mają składnię .strings\n" " NeXTstep/GNUstep\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" -msgstr " -t, --to-code=NAZWA kodowanie dla wyjcia\n" +msgstr " -t, --to-code=NAZWA kodowanie dla wyjścia\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -" --use-first uycie pierwszego dostpnego tumaczenia dla\n" -" kadego komunikatu zamiast czenia wielu\n" +" --use-first użycie pierwszego dostępnego tłumaczenia dla\n" +" każdego komunikatu zamiast łączenia wielu\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" -" --color uywanie zawsze kolorw i innych atrybutw " -"tekstu\n" -" --color=WARUNEK uywanie kolorw i innych atrybutw jeeli\n" -" zachodzi WARUNEK, ktry moe mie wartoci:\n" -" 'always' (zawsze), 'never' (nigdy), 'auto' " -"albo\n" -" 'html'.\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr "" -" --style=PLIKSTYLU podanie pliku regu CSS dla opcji --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" +msgstr " --lang=NAZWA_KATALOGU ustawienie pola 'Language' w nagłówku\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" -msgstr "nie podano plikw wejciowych" +msgstr "nie podano plików wejściowych" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" -msgstr "wymagane s dokadnie dwa pliki wejciowe" +msgstr "wymagane są dokładnie dwa pliki wejściowe" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" -msgstr "Skadnia: %s [OPCJA] def.po ref.pot\n" +msgstr "Składnia: %s [OPCJA] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1388,30 +1392,30 @@ "you have translated each and every message in your program. Where an exact\n" "match cannot be found, fuzzy matching is used to produce better diagnostics.\n" msgstr "" -"Porwnanie dwch plikw .po w stylu Uniforum, eby sprawdzi czy zawieraj te\n" -"same zbiory napisw msgid. Plik def.po to istniejcy plik PO z tumaczeniami.\n" +"Porównanie dwóch plików .po w stylu Uniforum, żeby sprawdzić czy zawierają te\n" +"same zbiory napisów msgid. Plik def.po to istniejący plik PO z tłumaczeniami.\n" "Plik ref.po jest ostatnio utworzonym plikiem PO lub plikiem PO Template\n" "(zwykle tworzonym przez xgettext). Jest to przydatne do stwierdzenia czy\n" -"wszystkie komunikaty w programie zostay przetumaczone. Tam gdzie nie mona\n" -"dopasowa dokadnie, uywane jest dopasowywanie rozmyte dla lepszej\n" +"wszystkie komunikaty w programie zostały przetłumaczone. Tam gdzie nie można\n" +"dopasować dokładnie, używane jest dopasowywanie rozmyte dla lepszej\n" "diagnostyki.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" -msgstr " def.po tumaczenia\n" +msgstr " def.po tłumaczenia\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" -msgstr " ref.pot odniesienia do rde\n" +msgstr " ref.pot odniesienia do źródeł\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modyfikatory operacji:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1420,63 +1424,68 @@ " -m, --multi-domain zastosowanie ref.pot dla wszystkich domen def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching nie używanie dopasowywania rozmytego\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -" --use-fuzzy uycie na wyjciu niepewnych (fuzzy) " -"komunikatw\n" +" --use-fuzzy użycie na wyjściu niepewnych (fuzzy) " +"komunikatów\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -" --use-untranslated uycie nie przetumaczonych komunikatw\n" +" --use-untranslated użycie nie przetłumaczonych komunikatów\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" -msgstr "uwaga: ten komunikat nie jest przetumaczony" +msgstr "uwaga: ten komunikat nie jest przetłumaczony" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" -msgstr "ten komunikat powinien by sprawdzony przez tumacza" +msgstr "ten komunikat powinien być sprawdzony przez tłumacza" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." -msgstr "ten komunikat jest uyty, ale nie zdefiniowany..." +msgstr "ten komunikat jest użyty, ale nie zdefiniowany..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...ale ta definicja jest podobna" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" -msgstr "ten komunikat jest uyty, ale nie zdefiniowany w %s" +msgstr "ten komunikat jest użyty, ale nie zdefiniowany w %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" -msgstr "uwaga: ten komunikat nie jest uyty" +msgstr "uwaga: ten komunikat nie jest użyty" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" -msgstr[0] "znaleziono %d bd krytyczny" -msgstr[1] "znaleziono %d bdy krytyczne" -msgstr[2] "znaleziono %d bdw krytycznych" +msgstr[0] "znaleziono %d błąd krytyczny" +msgstr[1] "znaleziono %d błędy krytyczne" +msgstr[2] "znaleziono %d błędów krytycznych" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" -msgstr "musz by podane przynajmniej dwa pliki" +msgstr "muszą być podane przynajmniej dwa pliki" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1488,90 +1497,90 @@ "PO file to define them. File positions from all PO files will be\n" "cumulated.\n" msgstr "" -"Znajdywanie komunikatw wsplnych dla dwch lub wicej podanych plikw PO.\n" -"Mona zada wikszego uwsplnienia przed wypisaniem komunikatw uywajc\n" -"opcji --more-than. Odpowiednio opcja --less-than moe by uyta dla ustalenia\n" -"mniejszego uwsplnienia pomidzy komunikatami (np. --less-than=2 wypisze tylko\n" -"unikalne komunikaty). Tumaczenia, komentarze tumacze i wydobyte zostan\n" -"zachowane, ale tylko z pierwszego definiujcego je pliku PO. Pozycje w plikach\n" -"dla wszystkich plikw PO zostan zgromadzone.\n" +"Znajdywanie komunikatów wspólnych dla dwóch lub więcej podanych plików PO.\n" +"Można zażądać większego uwspólnienia przed wypisaniem komunikatów używając\n" +"opcji --more-than. Odpowiednio opcja --less-than może być użyta dla ustalenia\n" +"mniejszego uwspólnienia pomiędzy komunikatami (np. --less-than=2 wypisze tylko\n" +"unikalne komunikaty). Tłumaczenia, komentarze tłumaczeń i wydobyte zostaną\n" +"zachowane, ale tylko z pierwszego definiującego je pliku PO. Pozycje w plikach\n" +"dla wszystkich plików PO zostaną zgromadzone.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -" ->, --more-than=LICZBA wypisanie komunikatw z liczb definicji\n" -" wiksz od LICZBY, domylnie 1\n" +" ->, --more-than=LICZBA wypisanie komunikatów z liczbą definicji\n" +" większą od LICZBY, domyślnie 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -" --omit-header nie zapisywanie nagwka z wpisem `msgid " +" --omit-header nie zapisywanie nagłówka z wpisem `msgid " "\"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" -msgstr "Konwersja katalogu tumacze na inne kodowanie znakw.\n" +msgstr "Konwersja katalogu tłumaczeń na inne kodowanie znaków.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Cel konwersji:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" -msgstr "Domylnym kodowaniem jest kodowanie dla aktualnej lokalizacji.\n" +msgstr "Domyślnym kodowaniem jest kodowanie dla aktualnej lokalizacji.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -" -i, --indent zapisanie pliku .po w stylu z wciciami\n" +" -i, --indent zapisanie pliku .po w stylu z wcięciami\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" -msgstr " --no-location pominicie linii '#: plik:linia'\n" +msgstr " --no-location pominięcie linii '#: plik:linia'\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -" -n, --add-location zachowanie linii '#: plik:linia' (domylne)\n" +" -n, --add-location zachowanie linii '#: plik:linia' (domyślne)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -" --strict zapisanie pliku .po cile zgodnego z " +" --strict zapisanie pliku .po ściśle zgodnego z " "Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" -msgstr "nie podano nazwy pliku wejciowego" +msgstr "nie podano nazwy pliku wejściowego" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" -msgstr "wymagany jest dokadnie jeden plik wejciowy" +msgstr "wymagany jest dokładnie jeden plik wejściowy" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr "Skadnia: %s [OPCJA] PLIK-WEJCIOWY\n" +msgstr "Składnia: %s [OPCJA] PLIK-WEJŚCIOWY\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1579,27 +1588,27 @@ "xgettext). Untranslated entries are assigned a translation that is\n" "identical to the msgid.\n" msgstr "" -"Tworzy plik tumacze angielskich. Plikiem wejciowym jest ostatnio\n" +"Tworzy plik tłumaczeń angielskich. Plikiem wejściowym jest ostatnio\n" "tworzony angielski plik PO lub plik PO Template (zazwyczaj stworzony przez\n" -"xgettext). Nie przetumaczonym wpisom s przypisywane tumaczenia identyczne\n" +"xgettext). Nie przetłumaczonym wpisom są przypisywane tłumaczenia identyczne\n" "z msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" -msgstr " PLIK-WEJCIOWY plik wejciowy PO lub POT\n" +msgstr " PLIK-WEJŚCIOWY plik wejściowy PO lub POT\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "brak nazwy polecenia" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr "Skadnia: %s [OPCJA] POLECENIE [OPCJA-POLECENIA]\n" +msgstr "Składnia: %s [OPCJA] POLECENIE [OPCJA-POLECENIA]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1608,231 +1617,213 @@ "msgexec's output. msgexec's return code is the maximum return code\n" "across all invocations.\n" msgstr "" -"Wykonanie polecenie na wszystkich tumaczeniach z katalogu tumacze.\n" -"POLECENIE moe by dowolnym programem czytajcym tumaczenie ze\n" -"standardowego wejcia. Jest wywoywane raz dla kadego tumaczenia.\n" -"Jego wyjcie staje si wyjciem msgexec. Kod wyjcia msgexec to maksimum\n" -"z kodw wyjcia dla wszystkich wywoa.\n" +"Wykonanie polecenie na wszystkich tłumaczeniach z katalogu tłumaczeń.\n" +"POLECENIE może być dowolnym programem czytającym tłumaczenie ze\n" +"standardowego wejścia. Jest wywoływane raz dla każdego tłumaczenia.\n" +"Jego wyjście staje się wyjściem msgexec. Kod wyjścia msgexec to maksimum\n" +"z kodów wyjścia dla wszystkich wywołań.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -"Specjalne wbudowane polecenie o nazwie '0' wypisuje tumaczenie zakoczone\n" -"bajtem 0. Wyjcie \"msgexec 0\" moe by wejciem dla \"xargs -0\".\n" +"Specjalne wbudowane polecenie o nazwie '0' wypisuje tłumaczenie zakończone\n" +"bajtem 0. Wyjście \"msgexec 0\" może być wejściem dla \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" -msgstr " -i, --input=PLIK-WEJCIOWY plik wejciowy PO\n" +msgstr " -i, --input=PLIK-WEJŚCIOWY plik wejściowy PO\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "pisanie na standardowe wyjcie nie powiodo si" +msgstr "pisanie na standardowe wyjście nie powiodło się" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" -msgstr "pisanie do podprocesu %s nie powiodo si" +msgstr "pisanie do podprocesu %s nie powiodło się" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "brak nazwy filtru" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" -msgstr "musi by podany przynajmniej jeden skrypt seda" +msgstr "musi być podany przynajmniej jeden skrypt seda" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr "Skadnia: %s [OPCJA] FILTR [OPCJA-FILTRA]\n" +msgstr "Składnia: %s [OPCJA] FILTR [OPCJA-FILTRA]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -"Zastosowanie filtru na wszystkich tumaczeniach z katalogu tumacze.\n" +"Zastosowanie filtru na wszystkich tłumaczeniach z katalogu tłumaczeń.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -"FILTR moe by dowolnym programem czytajcym tumaczenie ze standardowego\n" -"wejcia i wypisujcym zmodyfikowane tumaczenie na standardowym wyjciu.\n" +"FILTR może być dowolnym programem czytającym tłumaczenie ze standardowego\n" +"wejścia i wypisującym zmodyfikowane tłumaczenie na standardowym wyjściu.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" -msgstr "Przydatne OPCJE-FILTRA jeli FILTREM jest 'sed':\n" +msgstr "Przydatne OPCJE-FILTRA jeśli FILTREM jest 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -" -e, --expresion=SKRYPT dodanie SKRYPTU do wykonywanych polece\n" +" -e, --expresion=SKRYPT dodanie SKRYPTU do wykonywanych poleceń\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " "commands\n" " to be executed\n" msgstr "" -" -f, --file=PLIK-SKRYPTU dodanie zawartoci PLIKU-SKRYPTU do " +" -f, --file=PLIK-SKRYPTU dodanie zawartości PLIKU-SKRYPTU do " "wykonywanych\n" -" polece\n" +" poleceń\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" -msgstr " -n, --quiet, --silent nie wypisywanie zawartoci wzorca\n" +msgstr " -n, --quiet, --silent nie wypisywanie zawartości wzorca\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -" --no-escape nie uywanie sekwencji C na wyjciu " -"(domylne)\n" +" --no-escape nie używanie sekwencji C na wyjściu " +"(domyślne)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" -msgstr " --indent zapisanie pliku w stylu z wciciami\n" +msgstr " --indent zapisanie pliku w stylu z wcięciami\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -" --keep-header zachowanie nagwka z pominiciem filtra\n" - -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Jeszcze nie zaimplementowane." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "nie mona ustawi nieblokujcego we/wy dla podprocesu %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "komunikacja z podprocesem %s nie powioda si" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "czytanie z podprocesu %s nie powiodo si" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "podproces %s zakoczony z kodem wyjcia %d" +" --keep-header zachowanie nagłówka z pominięciem filtra\n" -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" -msgstr "argument dla %s powinien by pojedynczym znakiem przestankowym" +msgstr "argument dla %s powinien być pojedynczym znakiem przestankowym" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" -msgstr "bdna endianness: %s" +msgstr "błędna endianness: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s wymaga podania \"-d katalog\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s wymaga podania \"-l lokalizacja\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" -msgstr "%s jest prawidowe tylko z %s lub %s" +msgstr "%s jest prawidłowe tylko z %s lub %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" -msgstr "%s jest prawidowe tylko z %s, %s albo z %s" +msgstr "%s jest prawidłowe tylko z %s, %s albo z %s" + +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " -#: src/msgfmt.c:599 +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" -msgstr[0] "%d przetumaczony komunikat" -msgstr[1] "%d przetumaczone komunikaty" -msgstr[2] "%d przetumaczonych komunikatw" +msgstr[0] "%d przetłumaczony komunikat" +msgstr[1] "%d przetłumaczone komunikaty" +msgstr[2] "%d przetłumaczonych komunikatów" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" -msgstr[0] ", %d tumaczenie budzi wtpliwoci" -msgstr[1] ", %d tumaczenia budz wtpliwoci" -msgstr[2] ", %d tumacze budzi wtpliwoci" +msgstr[0] ", %d tłumaczenie budzi wątpliwości" +msgstr[1] ", %d tłumaczenia budzą wątpliwości" +msgstr[2] ", %d tłumaczeń budzi wątpliwości" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" -msgstr[0] ", %d nie przetumaczony komunikat" -msgstr[1] ", %d nie przetumaczone komunikaty" -msgstr[2] ", %d nie przetumaczonych komunikatw" +msgstr[0] ", %d nie przetłumaczony komunikat" +msgstr[1] ", %d nie przetłumaczone komunikaty" +msgstr[2] ", %d nie przetłumaczonych komunikatów" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" -msgstr "Skadnia: %s [OPCJA] nazwa-pliku.po ...\n" +msgstr "Składnia: %s [OPCJA] nazwa-pliku.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -"Generowanie binarnego katalogu komunikatw z tekstowego opisu tumacze.\n" +"Generowanie binarnego katalogu komunikatów z tekstowego opisu tłumaczeń.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -"Argumenty obowizkowe dla dugich opcji s obowizkowe take dla krtkich.\n" -"Podobnie dla argumentw opcjonalnych.\n" +"Argumenty obowiązkowe dla długich opcji są obowiązkowe także dla krótkich.\n" +"Podobnie dla argumentów opcjonalnych.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" -msgstr " nazwa-pliku.po ... pliki wejciowe\n" +msgstr " nazwa-pliku.po ... pliki wejściowe\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" -msgstr "Tryb dziaania:\n" +msgstr "Tryb działania:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1841,7 +1832,7 @@ " -j, --java tryb Javy: generowanie klas Java " "ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1849,73 +1840,73 @@ msgstr "" " --java2 jak --java dla Javy 2 (JDK 1.2 i nowsze)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp tryb C#: generowanie pliku .dll .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -" --csharp-resources tryb zasobw C#: generowanie pliku .resources ." +" --csharp-resources tryb zasobów C#: generowanie pliku .resources ." "NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl tryb Tcl: generowanie pliku tcl/msgcat .msg\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" " --qt tryb Qt: generowanie pliku .qm formatu Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -" --strict wczenie trybu cisej zgodnoci z Uniforum\n" +" --strict włączenie trybu ścisłej zgodności z Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -"Jeli plikiem wyjciowym jest -, wynik jest kierowany na standardowe " -"wyjcie.\n" +"Jeśli plikiem wyjściowym jest -, wynik jest kierowany na standardowe " +"wyjście.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" -msgstr "Pooenie pliku wyjciowego w trybie Javy:\n" +msgstr "Położenie pliku wyjściowego w trybie Javy:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" -msgstr " -r, --resource=ZASB nazwa zasobu\n" +msgstr " -r, --resource=ZASÓB nazwa zasobu\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -" -l, --locale=LOKALIZACJA nazwa lokalizacji - jzyk lub jzyk_KRAJ\n" +" -l, --locale=LOKALIZACJA nazwa lokalizacji - język lub język_KRAJ\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d KATALOG bazowy katalog w hierarchii katalogu klas\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1923,230 +1914,230 @@ "separated with an underscore. The -d option is mandatory. The class is\n" "written under the specified directory.\n" msgstr "" -"Nazwa klasy jest okrelana poprzez doczenie nazwy lokalizacji do nazwy\n" -"zasobu, oddzielajc je znakiem podkrelenia. Opcja -d jest obowizkowa. " +"Nazwa klasy jest określana poprzez dołączenie nazwy lokalizacji do nazwy\n" +"zasobu, oddzielając je znakiem podkreślenia. Opcja -d jest obowiązkowa. " "Klasa\n" "jest zapisywana w podanym katalogu.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" -msgstr "Pooenie pliku wyjciowego w trybie C#:\n" +msgstr "Położenie pliku wyjściowego w trybie C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -" -d KATALOG katalog bazowy plikw .dll zalenych od " +" -d KATALOG katalog bazowy plików .dll zależnych od " "locale\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"Opcje -l i -d s obowizkowe. Plik .dll jest zapisywany w podkatalogu " +"Opcje -l i -d są obowiązkowe. Plik .dll jest zapisywany w podkatalogu " "podanego\n" -"katalogu, ktrego nazwa zaley od locale.\n" +"katalogu, którego nazwa zależy od locale.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" -msgstr "Pooenie pliku wyjciowego w trybie Tcl:\n" +msgstr "Położenie pliku wyjściowego w trybie Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -" -d KATALOG bazowy katalog katalogw komunikatw .msg\n" +" -d KATALOG bazowy katalog katalogów komunikatów .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -"Opcje -l i -d s obowizkowe. Plik .msg jest zapisywany w podanym katalogu.\n" +"Opcje -l i -d są obowiązkowe. Plik .msg jest zapisywany w podanym katalogu.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" -msgstr "Interpretacja pliku wejciowego:\n" +msgstr "Interpretacja pliku wejściowego:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" " --check-format, --check-header, --check-" "domain\n" msgstr "" -" -c, --check wykonanie wszystkich testw wczanych przez\n" +" -c, --check wykonanie wszystkich testów włączanych przez\n" " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -" --check-format sprawdzenie tumacze z formatw zalenych od\n" -" jzyka\n" +" --check-format sprawdzenie tłumaczeń z formatów zależnych od\n" +" języka\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -" --check-header sprawdzenie obecnoci i zawartoci wpisu " -"nagwka\n" +" --check-header sprawdzenie obecności i zawartości wpisu " +"nagłówka\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -" --check-domain sprawdzenie konfliktw midzy dyrektywami\n" -" dotyczcymi domeny i opcj --output-file\n" +" --check-domain sprawdzenie konfliktów między dyrektywami\n" +" dotyczącymi domeny i opcją --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -" -C, --check-compatibility kontrola czy GNU msgfmt dziaa jak X/Open " +" -C, --check-compatibility kontrola czy GNU msgfmt działa jak X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " "for\n" " menu items\n" msgstr "" -" --check-accelerators[=ZNAK] sprawdzenie obecnoci skrtw " +" --check-accelerators[=ZNAK] sprawdzenie obecności skrótów " "klawiszowych\n" " dla opcji w menu\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -" -f, --use-fuzzy uycie na wyjciu niepewnych (fuzzy) wpisw\n" +" -f, --use-fuzzy użycie na wyjściu niepewnych (fuzzy) wpisów\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -" -a, --alignment=LICZBA wyrwnanie napisw do LICZBY bajtw " -"(domylnie:\n" +" -a, --alignment=LICZBA wyrównanie napisów do LICZBY bajtów " +"(domyślnie:\n" " %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash tworzenie pliku binarnego bez tablicy " -"haszujcej\n" +"haszującej\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -" --statistics wypisanie statystyk dotyczcych tumacze\n" +" --statistics wypisanie statystyk dotyczących tłumaczeń\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -" -v, --verbose zwikszenie iloci podawanych informacji\n" +" -v, --verbose zwiększenie ilości podawanych informacji\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" -msgstr "uwaga: brakujcy lub niepoprawny nagwek pliku PO\n" +msgstr "uwaga: brakujący lub niepoprawny nagłówek pliku PO\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" -msgstr "uwaga: konwersja zestawu znakw nie bdzie dziaa\n" +msgstr "uwaga: konwersja zestawu znaków nie będzie działać\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" -msgstr "uwaga: nagwek pliku PO jest niepewny (fuzzy)\n" +msgstr "uwaga: nagłówek pliku PO jest niepewny (fuzzy)\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" -msgstr "uwaga: starsze wersje msgfmt nie zgosz bdu w tym miejscu\n" +msgstr "uwaga: starsze wersje msgfmt nie zgłoszą błędu w tym miejscu\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" -msgstr "nazwa domeny \"%s\" nie jest odpowiedni nazwa pliku" +msgstr "nazwa domeny \"%s\" nie jest odpowiednią nazwa pliku" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" -"nazwa domeny \"%s\" nie jest dobra jako nazwa pliku: uycie przedrostka" +"nazwa domeny \"%s\" nie jest dobra jako nazwa pliku: użycie przedrostka" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "dyrektywa `domain %s' zignorowana" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" -msgstr "zignorowana pusta warto `msgstr'" +msgstr "zignorowana pusta wartość `msgstr'" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" -msgstr "zignorowana niepewna (fuzzy) warto `msgstr'" +msgstr "zignorowana niepewna (fuzzy) wartość `msgstr'" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" -msgstr "%s: uwaga: plik rdowy zawiera tumaczenie budzce wtpliwoci" +msgstr "%s: uwaga: plik źródłowy zawiera tłumaczenie budzące wątpliwości" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" -msgstr "bd w czasie czytania \"%s\"" +msgstr "błąd w czasie czytania \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -"opcja '%c' nie moe by uyta przed podaniem 'J', 'K', 'T', 'C' lub 'X'" +"opcja '%c' nie może być użyta przed podaniem 'J', 'K', 'T', 'C' lub 'X'" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -"Wycignicie z katalogu tumacze wszystkich komunikatw pasujcych do podanego\n" -"wzorca lub nalecych do podanego pliku rdowego.\n" +"Wyciągnięcie z katalogu tłumaczeń wszystkich komunikatów pasujących do podanego\n" +"wzorca lub należących do podanego pliku źródłowego.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2185,169 +2176,169 @@ " -v, --invert-match output only the messages that do not match any\n" " selection criterion\n" msgstr "" -"Wybr komunikatw:\n" -" [-N PLIK-RDOWY]... [-M DOMENA]...\n" +"Wybór komunikatów:\n" +" [-N PLIK-ŹRÓDŁOWY]... [-M DOMENA]...\n" " [-J WZORZEC-KONTEKST] [-K WZORZEC-MSGID] [-T WZORZEC-MSGSTR]\n" " [-C WZORZEC-KOMENTARZA] [-X WZORZEC-WYDOB-KOMENTARZA]\n" -"Komunikat jest wybierany jeli pochodzi z jednego z podanych plikw\n" -"rdowych lub pochodzi z jednej z podanych domen,\n" -"lub, jeli podano -J i kontekst (msgctxt) pasuje do WZORCA-KONTEKST\n" -"lub, jeli podano -K i klucz (msgid lub msgid_plural), pasuje do WZORCA-MSGID,\n" -"lub, jeli podano -T i to tumaczenie (msgstr) pasuje do WZORCA-MSGSTR,\n" -"lub, jeli podano -C i komentarz tumacza pasuje do WZORCA-KOMENTARZA.\n" -"lub, jeli podano -X i wydobyty komentarz pasuje do WZORCA-WYDOB-KOMENTARZA.\n" +"Komunikat jest wybierany jeśli pochodzi z jednego z podanych plików\n" +"źródłowych lub pochodzi z jednej z podanych domen,\n" +"lub, jeśli podano -J i kontekst (msgctxt) pasuje do WZORCA-KONTEKST\n" +"lub, jeśli podano -K i klucz (msgid lub msgid_plural), pasuje do WZORCA-MSGID,\n" +"lub, jeśli podano -T i to tłumaczenie (msgstr) pasuje do WZORCA-MSGSTR,\n" +"lub, jeśli podano -C i komentarz tłumacza pasuje do WZORCA-KOMENTARZA.\n" +"lub, jeśli podano -X i wydobyty komentarz pasuje do WZORCA-WYDOB-KOMENTARZA.\n" "\n" -"Jeli podano wicej ni jedno kryterium wyboru, zbir wybranych komunikatw\n" -"jest sum komunikatw wybranych dla kadego kryterium.\n" +"Jeśli podano więcej niż jedno kryterium wyboru, zbiór wybranych komunikatów\n" +"jest sumą komunikatów wybranych dla każdego kryterium.\n" "\n" -"Skadnia WZORCA-KONTEKST, WZORCA-MSGID, WZORCA-MSGSTR, WZORCA-KOMENTARZA i\n" +"Składnia WZORCA-KONTEKST, WZORCA-MSGID, WZORCA-MSGSTR, WZORCA-KOMENTARZA i\n" "WZORCA-WYDOB-KOMENTARZA:\n" " [-E | -F] [-e WZORZEC | -f PLIK]...\n" -"WZORCE s domylnie podstawowymi wyraeniami regularnymi, lub rozszerzonymi\n" -"wyraeniami regularnymi jeli podano -E, lub staymi cigami jeli podano -F.\n" +"WZORCE są domyślnie podstawowymi wyrażeniami regularnymi, lub rozszerzonymi\n" +"wyrażeniami regularnymi jeśli podano -E, lub stałymi ciągami jeśli podano -F.\n" "\n" -" -N, --location=PLIK-RD wybranie komunikatw wydobytych z PLIKU-RD\n" -" -M, --domain=DOMENA wybranie komunikatw nalecych do DOMENY\n" -" -J, --msgctxt pocztek wzorcw msgctxt\n" -" -K, --msgid pocztek wzorcw dla msgid\n" -" -T, --msgstr pocztek wzorcw dla msgstr\n" -" -C, --comment pocztek wzorcw dla komentarza tumacza\n" -" -X, --extracted-comment pocztek wzorcw dla wydobytego komentarza\n" -" -E, --extended-regexp WZORZEC jest rozszerzonym wyraeniem regularnym\n" -" -F, --fixed-strings WZORZEC jest zbiorem napisw oddzielonych \\n\n" -" -e, --regexp=WZORZEC uycie WZORCA jako wyraenia regularnego\n" +" -N, --location=PLIK-ŹRÓDŁ wybranie komunikatów wydobytych z PLIKU-ŹRÓDŁ\n" +" -M, --domain=DOMENA wybranie komunikatów należących do DOMENY\n" +" -J, --msgctxt początek wzorców msgctxt\n" +" -K, --msgid początek wzorców dla msgid\n" +" -T, --msgstr początek wzorców dla msgstr\n" +" -C, --comment początek wzorców dla komentarza tłumacza\n" +" -X, --extracted-comment początek wzorców dla wydobytego komentarza\n" +" -E, --extended-regexp WZORZEC jest rozszerzonym wyrażeniem regularnym\n" +" -F, --fixed-strings WZORZEC jest zbiorem napisów oddzielonych \\n\n" +" -e, --regexp=WZORZEC użycie WZORCA jako wyrażenia regularnego\n" " -f, --file=PLIK pobranie WZORCA z PLIKU\n" -" -i, --ignore-case nie rozrnianie wielkoci liter\n" -" -v, --invert-match wypisanie tylko komunikatw, ktre nie pasuj do\n" -" kryteriw wyboru\n" +" -i, --ignore-case nie rozróżnianie wielkości liter\n" +" -v, --invert-match wypisanie tylko komunikatów, które nie pasują do\n" +" kryteriów wyboru\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -" --escape uywanie sekwencji C, bez znakw " +" --escape używanie sekwencji C, bez znaków " "rozszerzonych\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" -msgstr " --sort-output generowanie posortowanego wyjcia\n" +msgstr " --sort-output generowanie posortowanego wyjścia\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -" --sort-by-file sortowanie wyjcia wedug pooenia pliku\n" +" --sort-by-file sortowanie wyjścia według położenia pliku\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -"Aktualne rodowisko jest obojtne jzykowo. Prosz ustawi zmienn\n" -"rodowiskow LANG zgodnie z opisem w pliku ABOUT-NLS. Jest to\n" -"niezbdne do testowania tumacze.\n" +"Aktualne środowisko jest obojętne językowo. Proszę ustawić zmienną\n" +"środowiskową LANG zgodnie z opisem w pliku ABOUT-NLS. Jest to\n" +"niezbędne do testowania tłumaczeń.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" "Please specify the locale through the --locale option or\n" "the output .po file through the --output-file option.\n" msgstr "" -"Plik wyjciowy %s ju istnieje.\n" -"Prosz poda lokalizacj za pomoc opcji --locale lub plik\n" -"wyjciowy .po za pomoc opcji --output-file.\n" +"Plik wyjściowy %s już istnieje.\n" +"Proszę podać lokalizację za pomocą opcji --locale lub plik\n" +"wyjściowy .po za pomocą opcji --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Utworzono %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -"Stworzenie nowego pliku PO, inicjalizujc meta-informacje wartociami ze\n" -"rodowiska uytkownika.\n" +"Stworzenie nowego pliku PO, inicjalizując meta-informacje wartościami ze\n" +"środowiska użytkownika.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" -msgstr " -i, --input-PLIK-WEJCIOWY plik wejciowy POT\n" +msgstr " -i, --input-PLIK-WEJŚCIOWY plik wejściowy POT\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " "file.\n" "If it is -, standard input is read.\n" msgstr "" -"Jeli nie podano pliku wejciowego, plik POT jest szukany w biecym " +"Jeśli nie podano pliku wejściowego, plik POT jest szukany w bieżącym " "katalogu.\n" -"Jeli plik to -, czytane jest standardowe wejcie.\n" +"Jeśli plik to -, czytane jest standardowe wejście.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=PLIK zapisanie wyniku do podanego pliku PO\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -"Jeli nie podano pliku wyjciowego, zaley on od podanej opcji --locale lub\n" -"ustawie lokalizacji uytkownika. Jeli plik to -, wyniki s wypisywane na\n" -"standardowym wyjciu.\n" +"Jeśli nie podano pliku wyjściowego, zależy on od podanej opcji --locale lub\n" +"ustawień lokalizacji użytkownika. Jeśli plik to -, wyniki są wypisywane na\n" +"standardowym wyjściu.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=JJ_KK ustawienie docelowej lokalizacji\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -" --no-translator uznanie, e plik PO jest generowany " +" --no-translator uznanie, że plik PO jest generowany " "automatycznie\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -"Znaleziono wicej ni jeden plik .pot.\n" -"Prosz poda plik .pot za pomoc opcji --input.\n" +"Znaleziono więcej niż jeden plik .pot.\n" +"Proszę podać plik .pot za pomocą opcji --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" -msgstr "bd podczas czytania biecego katalogu" +msgstr "błąd podczas czytania bieżącego katalogu" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -"Nie znaleziono pliku .pot w katalogu biecym.\n" -"Prosz poda plik .pot za pomoc opcji --input.\n" +"Nie znaleziono pliku .pot w katalogu bieżącym.\n" +"Proszę podać plik .pot za pomocą opcji --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" -msgstr "podproces %s zawid z kodem wyjcia %d" +msgstr "podproces %s zawiódł z kodem wyjścia %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2355,67 +2346,67 @@ "contact\n" "you in case of unexpected technical problems.\n" msgstr "" -"Nowy katalog komunikatw powinien zawiera adres e-mail tumacza, tak eby\n" -"uytkownicy mogli wysya komentarze dotyczce tumacze i prowadzcy " +"Nowy katalog komunikatów powinien zawierać adres e-mail tłumacza, tak żeby\n" +"użytkownicy mogli wysyłać komentarze dotyczące tłumaczeń i prowadzący " "projekty\n" -"mogli kontaktowa si w przypadku niespodziewanych problemw technicznych.\n" +"mogli kontaktować się w przypadku niespodziewanych problemów technicznych.\n" #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" -msgstr "Polskie tumaczenia dla pakietu %s" +msgstr "Polskie tłumaczenia dla pakietu %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" -msgstr "aktualny zestaw znakw \"%s\" nie jest przenon nazw kodowania" +msgstr "aktualny zestaw znaków \"%s\" nie jest przenośną nazwą kodowania" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" -msgstr "dwa rne zestawy znakw \"%s\" oraz \"%s\" w pliku wejciowym" +msgstr "dwa różne zestawy znaków \"%s\" oraz \"%s\" w pliku wejściowym" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -"plik wejciowy `%s' nie zawiera wpisu nagwka ze specyfikacj zestawu znakw" +"plik wejściowy `%s' nie zawiera wpisu nagłówka ze specyfikacją zestawu znaków" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -"domena \"%s\" w pliku wejciowym `%s' nie zawiera wpisu nagwka ze " -"specyfikacj zestawu znakw" +"domena \"%s\" w pliku wejściowym `%s' nie zawiera wpisu nagłówka ze " +"specyfikacją zestawu znaków" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." -msgstr "docelowy zestaw znakw \"%s\" nie jest przenon nazw kodowania." +msgstr "docelowy zestaw znaków \"%s\" nie jest przenośną nazwą kodowania." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "uwaga: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -"Pliki wejciowe zawieraj komunikaty w rnych kodowaniach, w tym UTF-8.\n" -"Konwersja wyjcia do UTF-8.\n" +"Pliki wejściowe zawierają komunikaty w różnych kodowaniach, w tym UTF-8.\n" +"Konwersja wyjścia do UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2423,11 +2414,11 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Pliki wejciowe zawieraj komunikaty w rnych kodowaniach, w tym %s i %s.\n" -"Konwersja wyjcia do UTF-8.\n" -"Aby wybra inne kodowanie wyjciowe, naley uy opcji --to-code.\n" +"Pliki wejściowe zawierają komunikaty w różnych kodowaniach, w tym %s i %s.\n" +"Konwersja wyjścia do UTF-8.\n" +"Aby wybrać inne kodowanie wyjściowe, należy użyć opcji --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2436,12 +2427,12 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" "Konwersja pliku %s z kodowania %s do kodowania %s\n" -"zmienia niektre identyfikatory msgid albo msgctxt.\n" -"Zmie wszystkie identyfikatory msgid i msgctxt tak, eby byy wycznie\n" -"w ASCII albo upewnij si, e s od pocztku, ju w plikach rdwych,\n" +"zmienia niektóre identyfikatory msgid albo msgctxt.\n" +"Zmień wszystkie identyfikatory msgid i msgctxt tak, żeby były wyłącznie\n" +"w ASCII albo upewnij się, że są od początku, już w plikach źródłówych,\n" "zakodowane w UTF-8.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2449,28 +2440,28 @@ "Output of '%s' might be incorrect.\n" "Possible workarounds are:\n" msgstr "" -"Lokalny zestaw znakw \"%s\" jest rny od\n" -"zestawu znakw pliku wejciowego \"%s\".\n" -"Wyjcie '%s' moe by niepoprawne.\n" -"Moliwe obejcia problemu to:\n" +"Lokalny zestaw znaków \"%s\" jest różny od\n" +"zestawu znaków pliku wejściowego \"%s\".\n" +"Wyjście '%s' może być niepoprawne.\n" +"Możliwe obejścia problemu to:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" -msgstr "- Ustawienie LC_ALL na lokalizacj z kodowaniem %s.\n" +msgstr "- Ustawienie LC_ALL na lokalizację z kodowaniem %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" -"- Przekonwertowanie katalogu tumacze do %s przy uyciu 'msgconv',\n" -" a nastpnie wykonanie '%s',\n" -" a nastpnie przekonwertowanie z powrotem do %s przy uyciu 'msgconv'.\n" +"- Przekonwertowanie katalogu tłumaczeń do %s przy użyciu 'msgconv',\n" +" a następnie wykonanie '%s',\n" +" a następnie przekonwertowanie z powrotem do %s przy użyciu 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2478,217 +2469,217 @@ " then apply '%s',\n" " then convert back to %s using 'msgconv'.\n" msgstr "" -"- Ustawienie LC_ALL na lokalizacj z kodowaniem %s,\n" -" przekonwertowanie katalogu tumacze do %s przy uyciu 'msgconv',\n" -" a nastpnie wykonanie '%s',\n" -" a nastpnie przekonwertowanie z powrotem do %s przy uyciu 'msgconv'.\n" +"- Ustawienie LC_ALL na lokalizację z kodowaniem %s,\n" +" przekonwertowanie katalogu tłumaczeń do %s przy użyciu 'msgconv',\n" +" a następnie wykonanie '%s',\n" +" a następnie przekonwertowanie z powrotem do %s przy użyciu 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" "Output of '%s' might be incorrect.\n" "A possible workaround is to set LC_ALL=C.\n" msgstr "" -"Lokalny zestaw znakw \"%s\" nie jest przenon nazw kodowania.\n" -"Wyjcie '%s' moe by niepoprawne.\n" -"Moliwym obejciem problemu jest ustawienie LC_ALL=C.\n" +"Lokalny zestaw znaków \"%s\" nie jest przenośną nazwą kodowania.\n" +"Wyjście '%s' może być niepoprawne.\n" +"Możliwym obejściem problemu jest ustawienie LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" -msgstr "wyraenie do wyliczania liczby mnogiej moe zwrci wartoci ujemne" +msgstr "wyrażenie do wyliczania liczby mnogiej może zwrócić wartości ujemne" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -"nplurals = %lu, ale wyraenie do wyliczania liczby mnogiej moe zwrci " -"wartoci do %lu" +"nplurals = %lu, ale wyrażenie do wyliczania liczby mnogiej może zwrócić " +"wartości do %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -"wyraenie do wyliczania liczby mnogiej moe spowodowa dzielenie przez zero" +"wyrażenie do wyliczania liczby mnogiej może spowodować dzielenie przez zero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" -msgstr "wyraenie do wyliczania liczby mnogiej moe spowodowa przepenienie" +msgstr "wyrażenie do wyliczania liczby mnogiej może spowodować przepełnienie" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -"wyraenie do wyliczania liczby mnogiej moe spowodowa wyjtki, moliwe " +"wyrażenie do wyliczania liczby mnogiej może spowodować wyjątki, możliwe " "dzielenie przez zero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" -msgstr "Prosz sprbowa tego, poprawnego dla %s:" +msgstr "Proszę spróbować tego, poprawnego dla %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" -msgstr "katalog komunikatw zawiera tumaczenia form mnogich" +msgstr "katalog komunikatów zawiera tłumaczenia form mnogich" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" -msgstr "ale wpis nagwka nie ma atrybutu \"plural=WYRAENIE\"" +msgstr "ale wpis nagłówka nie ma atrybutu \"plural=WYRAŻENIE\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" -msgstr "ale wpis nagwka nie ma atrybutu \"nplurals=LICZBA\"" +msgstr "ale wpis nagłówka nie ma atrybutu \"nplurals=LICZBA\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" -msgstr "bdna warto nplurals" +msgstr "błędna wartość nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" -msgstr "bdne wyraenie do wyliczania liczby mnogiej" +msgstr "błędne wyrażenie do wyliczania liczby mnogiej" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "ale niektre komunikaty maj tylko jedn form mnog" -msgstr[1] "ale niektre komunikaty maj tylko %lu formy mnogie" -msgstr[2] "ale niektre komunikaty maj tylko %lu form mnogich" +msgstr[0] "ale niektóre komunikaty mają tylko jedną formę mnogą" +msgstr[1] "ale niektóre komunikaty mają tylko %lu formy mnogie" +msgstr[2] "ale niektóre komunikaty mają tylko %lu form mnogich" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "ale niektre komunikaty maj jedn form mnog" -msgstr[1] "ale niektre komunikaty maj %lu formy mnogie" -msgstr[2] "ale niektre komunikaty maj %lu form mnogich" +msgstr[0] "ale niektóre komunikaty mają jedną formę mnogą" +msgstr[1] "ale niektóre komunikaty mają %lu formy mnogie" +msgstr[2] "ale niektóre komunikaty mają %lu form mnogich" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -"katalog komunikatw zawiera tumaczenia form mnogich, ale brakuje wpisu " -"nagwka z \"Plural-Forms: nplurals=LICZBA; plural=WYRAENIE;\"" +"katalog komunikatów zawiera tłumaczenia form mnogich, ale brakuje wpisu " +"nagłówka z \"Plural-Forms: nplurals=LICZBA; plural=WYRAŻENIE;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" -msgstr "linie `msgid' i `msgid_plural' nie zaczynaj si obie od '\\n'`" +msgstr "linie `msgid' i `msgid_plural' nie zaczynają się obie od '\\n'`" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -msgstr "linie `msgid' i `msgstr[%u]' nie zaczynaj si obie od '\\n'`" +msgstr "linie `msgid' i `msgstr[%u]' nie zaczynają się obie od '\\n'`" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" -msgstr "linie `msgid' i `msgstr' nie zaczynaj si obie od '\\n'`" +msgstr "linie `msgid' i `msgstr' nie zaczynają się obie od '\\n'`" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" -msgstr "linie `msgid' i `msgid_plural' nie kocz si obie na '\\n'" +msgstr "linie `msgid' i `msgid_plural' nie kończą się obie na '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" -msgstr "linie `msgid' i `msgstr[%u]' nie kocz si obie na '\\n'" +msgstr "linie `msgid' i `msgstr[%u]' nie kończą się obie na '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" -msgstr "linie `msgid' i `msgstr' nie kocz si obie na '\\n'" +msgstr "linie `msgid' i `msgstr' nie kończą się obie na '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" -msgstr "obsuga form mnogich jest rozszerzeniem gettexta GNU" +msgstr "obsługa form mnogich jest rozszerzeniem gettexta GNU" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" -msgstr "w msgstr brakuje skrtu oznaczenia klawiszowego '%c'" +msgstr "w msgstr brakuje skrótu oznaczenia klawiszowego '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" -msgstr "msgstr zawiera zbyt duo oznacze skrtw klawiszowych '%c'" +msgstr "msgstr zawiera zbyt dużo oznaczeń skrótów klawiszowych '%c'" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "w nagwku brakuje pola `%s'\n" +msgid "header field `%s' missing in header\n" +msgstr "w nagłówku brakuje pola '%s'\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr "pole nagwka `%s' powinno si zaczyna na pocztku linii\n" +msgstr "pole nagłówka `%s' powinno się zaczynać na początku linii\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" -msgstr "niektre pola nagwka nadal zawieraj pocztkowe wartoci domylne\n" +msgstr "niektóre pola nagłówka nadal zawierają początkowe wartości domyślne\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "pole `%s' ma nadal pocztkow warto domyln\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "pole nagłówka `%s' nadal zawiera początkową wartość domyślną\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" -msgstr "%s: dane wejciowe s bdne jeeli kodowanie to \"%s\"" +msgstr "%s: dane wejściowe są błędne jeżeli kodowanie to \"%s\"" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "%s: bd w czasie zamiany kodowania z \"%s\" na \"%s\"" +msgstr "%s: błąd w czasie zamiany kodowania z \"%s\" na \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -"plik wejciowy nie zawiera wpisu nagwka ze specyfikacj zestawu znakw" +"plik wejściowy nie zawiera wpisu nagłówka ze specyfikacją zestawu znaków" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -"Nie mona przekonwertowa z \"%s\" do \"%s\". %s opiera si na iconv(), a " -"iconv() nie obsuguje tej konwersji." +"Nie można przekonwertować z \"%s\" do \"%s\". %s opiera się na iconv(), a " +"iconv() nie obsługuje tej konwersji." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -"Konwersja z \"%s\" do \"%s\" wprowadza duplikaty: niektre rnice si " -"msgid staj si identyczne." +"Konwersja z \"%s\" do \"%s\" wprowadza duplikaty: niektóre różniące się " +"msgid stają się identyczne." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -"Nie mona przekonwertowa z \"%s\" do \"%s\". %s opiera si na iconv(). Ta " -"wersja zostaa zbudowana bez iconv()." +"Nie można przekonwertować z \"%s\" do \"%s\". %s opiera się na iconv(). Ta " +"wersja została zbudowana bez iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" -msgstr "%s jest prawidowe tylko z %s" +msgstr "%s jest prawidłowe tylko z %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "typ zapasowy" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2701,66 +2692,66 @@ "comments and file positions will be preserved. Where an exact match\n" "cannot be found, fuzzy matching is used to produce better results.\n" msgstr "" -"czy razem dwa pliki .po w stylu Uniforum. Plik def.po jest istniejcym\n" -"plikiem PO ze starymi tumaczeniami, ktre bd przeniesione do nowo\n" -"utworzonego pliku jeeli nadal pasuj; komentarze bd zachowane, ale\n" -"komentarze wydobyte i pozycje w pliku bd pominite. Plik ref.po jest\n" +"Łączy razem dwa pliki .po w stylu Uniforum. Plik def.po jest istniejącym\n" +"plikiem PO ze starymi tłumaczeniami, które będą przeniesione do nowo\n" +"utworzonego pliku jeżeli nadal pasują; komentarze będą zachowane, ale\n" +"komentarze wydobyte i pozycje w pliku będą pominięte. Plik ref.po jest\n" "ostatnio utworzonym plikiem PO Template (zwykle tworzonym przez xgettext),\n" -"tumaczenia i komentarze w nim zawarte bd zignorowane, ale komentarze z\n" -"kropk i pozycje w plikach bd zachowane. Tam, gdzie nie mona dopasowa\n" -"dokadnie, uywane jest dopasowanie rozmyte, dla lepszych wynikw.\n" +"tłumaczenia i komentarze w nim zawarte będą zignorowane, ale komentarze z\n" +"kropką i pozycje w plikach będą zachowane. Tam, gdzie nie można dopasować\n" +"dokładnie, używane jest dopasowanie rozmyte, dla lepszych wyników.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -" def.po tumaczenia odnoszce si do starych rde\n" +" def.po tłumaczenia odnoszące się do starych źródeł\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" -msgstr " ref.pot odniesienia do nowych rde\n" +msgstr " ref.pot odniesienia do nowych źródeł\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -" -C, --compendium=PLIK dodatkowa biblioteka tumacze komunikatw,\n" -" moe by podana wicej ni raz\n" +" -C, --compendium=PLIK dodatkowa biblioteka tłumaczeń komunikatów,\n" +" może być podana więcej niż raz\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" " -U, --update uaktualnienie def.po, nie wykonywanie\n" -" niczego jeli def.po jest ju aktualny\n" +" niczego jeśli def.po jest już aktualny\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" -msgstr "Pooenie pliku wyjciowego w trybie uaktualniania:\n" +msgstr "Położenie pliku wyjściowego w trybie uaktualniania:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Wynik jest zapisywany z powrotem do def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=KONTROLA utworzenie kopii zapasowej def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -" --suffix=KOCWKA zmiana domylnej kocwki kopii zapasowej\n" +" --suffix=KOŃCÓWKA zmiana domyślnej końcówki kopii zapasowej\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2771,175 +2762,172 @@ " existing, nil numbered if numbered backups exist, simple otherwise\n" " simple, never always make simple backups\n" msgstr "" -"Metoda kontroli wersji moe by wybrana za pomoc opcji --backup lub " +"Metoda kontroli wersji może być wybrana za pomocą opcji --backup lub " "zmiennej\n" -"rodowiskowej VERSION_CONTROL. Wartoci to:\n" -" none, off nie tworzenie kopii zapasowych (nawet jeli podano --" +"środowiskowej VERSION_CONTROL. Wartości to:\n" +" none, off nie tworzenie kopii zapasowych (nawet jeśli podano --" "backup)\n" " numbered, t tworzenie numerowanych kopii zapasowych\n" -" existing, nil numerowanie jeli istniej numerowane, proste jeli nie\n" +" existing, nil numerowanie jeśli istnieją numerowane, proste jeśli nie\n" " simple, never tworzenie zawsze prostych kopii zapasowych\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" -"Kocwka kopii zapasowej to `~', o ile nie ustawiono przez --suffix lub\n" -"zmienn rodowiskow SIMPLE_BACKUP_SUFFIX.\n" +"Końcówka kopii zapasowej to `~', o ile nie ustawiono przez --suffix lub\n" +"zmienną środowiskową SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching nie uywanie dopasowywania rozmytego\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -" --previous zachowanie poprzednich identyfikatorw\n" -" przetumaczonych komunikatw\n" +" --previous zachowanie poprzednich identyfikatorów\n" +" przetłumaczonych komunikatów\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" -msgstr " -q, --quiet, --silent pominicie znacznikw postpu\n" +msgstr " -q, --quiet, --silent pominięcie znaczników postępu\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" -msgstr "ten komunikat powinien definiowa formy mnogie" +msgstr "ten komunikat powinien definiować formy mnogie" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" -msgstr "ten komunikat nie powinien definiowa form mnogich" +msgstr "ten komunikat nie powinien definiować form mnogich" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sPrzeczytane %ld starych + %ld odnonikw, %ld doczonych, %ld " -"niedokadnych, %ld brakujcych, %ld przestarzaych.\n" +"%sPrzeczytane %ld starych + %ld odnośników, %ld dołączonych, %ld " +"niedokładnych, %ld brakujących, %ld przestarzałych.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " zrobione.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" -msgstr "%s i podanie nazw plikw wzajemnie si wykluczaj" +msgstr "%s i podanie nazw plików wzajemnie się wykluczają" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" -msgstr "Skadnia: %s [OPCJA] [PLIK]...\n" +msgstr "Składnia: %s [OPCJA] [PLIK]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -"Przekonwertowanie binarnego katalogu komunikatw na plik .po w stylu " +"Przekonwertowanie binarnego katalogu komunikatów na plik .po w stylu " "Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -" -j, --java tryb Javy: wejcie jest klas Java " +" -j, --java tryb Javy: wejście jest klasą Java " "ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp tryb C#: wynik jest plikiem .dll .NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -" --csharp-resources tryb zasobw C#: na wejciu plik .resources ." +" --csharp-resources tryb zasobów C#: na wejściu plik .resources ." "NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -" --tcl tryb Tcl: wejcie jest plikiem tcl/msgcat ." +" --tcl tryb Tcl: wejście jest plikiem tcl/msgcat ." "msg\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" -msgstr " PLIK ... pliki wejciowe .mo\n" +msgstr " PLIK ... pliki wejściowe .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" -msgstr "Pooenie pliku wejciowego w trybie Javy:\n" +msgstr "Położenie pliku wejściowego w trybie Javy:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " "name,\n" "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -"Nazwa klasy jest okrelana poprzez doczenie nazwy lokalizacji do nazwy\n" -"zasobu, rozdzielajc je znakiem podkrelenia. Klasa jest szukana przy " -"uyciu\n" +"Nazwa klasy jest określana poprzez dołączenie nazwy lokalizacji do nazwy\n" +"zasobu, rozdzielając je znakiem podkreślenia. Klasa jest szukana przy " +"użyciu\n" "CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" -msgstr "Pooenie pliku wejciowego w trybie C#:\n" +msgstr "Położenie pliku wejściowego w trybie C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -"Opcje -l i -d s obowizkowe. Plik .dll znajduje si w podkatalogu podanego\n" -"katalogu, ktrego nazwa zaley od locale.\n" +"Opcje -l i -d są obowiązkowe. Plik .dll znajduje się w podkatalogu podanego\n" +"katalogu, którego nazwa zależy od locale.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" -msgstr "Pooenie pliku wejciowego w trybie Tcl:\n" +msgstr "Położenie pliku wejściowego w trybie Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -"Opcje -l i -d s obowizkowe. Plik .msg jest szukany w podanym katalogu.\n" +"Opcje -l i -d są obowiązkowe. Plik .msg jest szukany w podanym katalogu.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" -msgstr " -i, --indent zapisanie pliku w stylu z wciciami\n" +msgstr " -i, --indent zapisanie pliku w stylu z wcięciami\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -" --strict zapisanie pliku cile zgodnego z Uniforum\n" +" --strict zapisanie pliku ściśle zgodnego z Uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2951,33 +2939,33 @@ "specified, they will be taken from the first translation. File positions\n" "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -"Unifikacja powielonych tumacze w katalogu tumacze.\n" -"Odnajduje powielone tumaczenia z tym samym ID komunikatu. Takie duplikaty nie\n" -"s poprawnym wejciem dla innych programw, takich jak msgfmt, msgmerge czy\n" -"msgcat. Domylnie duplikaty s czone. Jeli podano opcj --repeated,\n" -"wypisywane s tylko duplikaty, a wszystkie inne komunikaty s pomijane.\n" -"Komentarze i wydobyte komentarze zostan zgromadzone, chyba e podano opcj\n" -"--use-first - wtedy bd skopiowane tylko z pierwszego tumaczenia. Pozycje\n" -"w plikach zostan zgromadzone. W przypadku uycia opcji --unique, duplikaty\n" -"zostan usunite.\n" +"Unifikacja powielonych tłumaczeń w katalogu tłumaczeń.\n" +"Odnajduje powielone tłumaczenia z tym samym ID komunikatu. Takie duplikaty nie\n" +"są poprawnym wejściem dla innych programów, takich jak msgfmt, msgmerge czy\n" +"msgcat. Domyślnie duplikaty są łączone. Jeśli podano opcję --repeated,\n" +"wypisywane są tylko duplikaty, a wszystkie inne komunikaty są pomijane.\n" +"Komentarze i wydobyte komentarze zostaną zgromadzone, chyba że podano opcję\n" +"--use-first - wtedy będą skopiowane tylko z pierwszego tłumaczenia. Pozycje\n" +"w plikach zostaną zgromadzone. W przypadku użycia opcji --unique, duplikaty\n" +"zostaną usunięte.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" -msgstr " -d, --repeated wypisanie tylko duplikatw\n" +msgstr " -d, --repeated wypisanie tylko duplikatów\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -" -u, --unique wypisanie tylko unikalnych, bez duplikatw\n" +" -u, --unique wypisanie tylko unikalnych, bez duplikatów\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" -msgstr "" +msgstr "" #: src/po-charset.c:489 #, c-format @@ -2985,8 +2973,8 @@ "Charset \"%s\" is not a portable encoding name.\n" "Message conversion to user's charset might not work.\n" msgstr "" -"Zestaw znakw \"%s\" nie jest przenon nazw kodowania.\n" -"Przekodowanie na zestaw znakw uytkownika moe nie dziaa.\n" +"Zestaw znaków \"%s\" nie jest przenośną nazwą kodowania.\n" +"Przekodowanie na zestaw znaków użytkownika może nie działać.\n" #: src/po-charset.c:556 #, c-format @@ -2994,20 +2982,20 @@ "Charset \"%s\" is not supported. %s relies on iconv(),\n" "and iconv() does not support \"%s\".\n" msgstr "" -"Kodowanie \"%s\" nie jest obsugiwane. %s opiera si na iconv(),\n" -"a iconv() nie obsuguje \"%s\".\n" +"Kodowanie \"%s\" nie jest obsługiwane. %s opiera się na iconv(),\n" +"a iconv() nie obsługuje \"%s\".\n" #: src/po-charset.c:563 src/po-charset.c:611 msgid "" "Installing GNU libiconv and then reinstalling GNU gettext\n" "would fix this problem.\n" msgstr "" -"Problem mona rozwiza instalujc libiconv GNU i instalujc\n" +"Problem można rozwiązać instalując libiconv GNU i instalując\n" "ponownie gettext GNU.\n" #: src/po-charset.c:577 src/po-charset.c:615 msgid "Continuing anyway, expect parse errors." -msgstr "Kontynuacja mimo wszystko, mona oczekiwa bdw analizy skadni." +msgstr "Kontynuacja mimo wszystko, można oczekiwać błędów analizy składni." #: src/po-charset.c:579 msgid "Continuing anyway." @@ -3019,36 +3007,36 @@ "Charset \"%s\" is not supported. %s relies on iconv().\n" "This version was built without iconv().\n" msgstr "" -"Kodowanie \"%s\" nie jest obsugiwane. %s opiera si na iconv().\n" -"Ta wersja zostaa skompilowana bez iconv().\n" +"Kodowanie \"%s\" nie jest obsługiwane. %s opiera się na iconv().\n" +"Ta wersja została skompilowana bez iconv().\n" #: src/po-charset.c:643 msgid "" "Charset missing in header.\n" "Message conversion to user's charset will not work.\n" msgstr "" -"W nagwku brakuje nazwy kodowania.\n" -"Przekodowanie na kodowanie uytkownika nie bdzie dziaa.\n" +"W nagłówku brakuje nazwy kodowania.\n" +"Przekodowanie na kodowanie użytkownika nie będzie działać.\n" #: src/po-gram-gen.y:93 #, c-format msgid "inconsistent use of #~" -msgstr "niekonsekwentne uycie #~" +msgstr "niekonsekwentne użycie #~" #: src/po-gram-gen.y:240 #, c-format msgid "missing `msgstr[]' section" -msgstr "brak czsci `msgstr[]'" +msgstr "brak częsci `msgstr[]'" #: src/po-gram-gen.y:249 #, c-format msgid "missing `msgid_plural' section" -msgstr "brak czsci `msgstr_plural'" +msgstr "brak częsci `msgstr_plural'" #: src/po-gram-gen.y:257 #, c-format msgid "missing `msgstr' section" -msgstr "brak czsci `msgstr'" +msgstr "brak częsci `msgstr'" #: src/po-gram-gen.y:396 #, c-format @@ -3058,79 +3046,79 @@ #: src/po-gram-gen.y:398 #, c-format msgid "plural form has wrong index" -msgstr "forma mnoga ma zy indeks" +msgstr "forma mnoga ma zły indeks" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" -msgstr "za duo bdw, przerwanie wykonywania" +msgstr "za dużo błędów, przerwanie wykonywania" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" -msgstr "bdna sekwencja wielobajtowa" +msgstr "błędna sekwencja wielobajtowa" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" -msgstr "niekompletna sekwencja wielobajtowa na kocu pliku" +msgstr "niekompletna sekwencja wielobajtowa na końcu pliku" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" -msgstr "niekompletna sekwencja wielobajtowa na kocu linii" +msgstr "niekompletna sekwencja wielobajtowa na końcu linii" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" -msgstr "iconv zawid" +msgstr "iconv zawiódł" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" -msgstr "nieznane sowo kluczowe \"%s\"" +msgstr "nieznane słowo kluczowe \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" -msgstr "bdna sekwencja sterujca" +msgstr "błędna sekwencja sterująca" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" -msgstr "znak koca pliku wewntrz napisu" +msgstr "znak końca pliku wewnątrz napisu" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" -msgstr "znak koca wiersza wewntrz napisu" +msgstr "znak końca wiersza wewnątrz napisu" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" -msgstr "separator kontekstu wewntrz napisu" +msgstr "separator kontekstu wewnątrz napisu" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" -msgstr "ten plik nie moe zawiera dyrektyw domain" +msgstr "ten plik nie może zawierać dyrektyw domain" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" -msgstr "podwjna definicja komunikatu" +msgstr "podwójna definicja komunikatu" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" -msgstr "to jest pooenie pierwszej definicji" +msgstr "to jest położenie pierwszej definicji" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 #, c-format msgid "file \"%s\" is truncated" -msgstr "plik \"%s\" jest obcity" +msgstr "plik \"%s\" jest obcięty" #: src/read-mo.c:129 #, c-format msgid "file \"%s\" contains a not NUL terminated string" -msgstr "plik \"%s\" zawiera napis, ktry nie jest zakoczony znakiem NUL" +msgstr "plik \"%s\" zawiera napis, który nie jest zakończony znakiem NUL" #: src/read-mo.c:165 src/read-mo.c:274 #, c-format @@ -3140,31 +3128,31 @@ #: src/read-mo.c:178 #, c-format msgid "file \"%s\" contains a not NUL terminated string, at %s" -msgstr "plik \"%s\" zawiera napis nie zakoczony znakiem NUL pod %s" +msgstr "plik \"%s\" zawiera napis nie zakończony znakiem NUL pod %s" #: src/read-properties.c:227 msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr "uwaga: bdna skadnia znaku Unicode: \\uxxxx" +msgstr "uwaga: błędna składnia znaku Unicode: \\uxxxx" #: src/read-stringtable.c:802 msgid "warning: unterminated string" -msgstr "uwaga: niezakoczony napis" +msgstr "uwaga: niezakończony napis" #: src/read-stringtable.c:810 msgid "warning: syntax error" -msgstr "uwaga: bd skadniowy" +msgstr "uwaga: błąd składniowy" #: src/read-stringtable.c:871 src/read-stringtable.c:893 msgid "warning: unterminated key/value pair" -msgstr "uwaga: niezakoczona para klucz/warto" +msgstr "uwaga: niezakończona para klucz/wartość" #: src/read-stringtable.c:939 msgid "warning: syntax error, expected ';' after string" -msgstr "uwaga: bd skadniowy, oczekiwano ';' po napisie" +msgstr "uwaga: błąd składniowy, oczekiwano ';' po napisie" #: src/read-stringtable.c:948 msgid "warning: syntax error, expected '=' or ';' after string" -msgstr "uwaga: bd skdniowy, oczekiwano '=' albo ';' po napisie" +msgstr "uwaga: błąd skłądniowy, oczekiwano '=' albo ';' po napisie" #: src/recode-sr-latin.c:116 #, c-format @@ -3182,7 +3170,7 @@ #: src/recode-sr-latin.c:153 #, c-format, no-wrap msgid "Recode Serbian text from Cyrillic to Latin script.\n" -msgstr "Przekodowanie serbskiego tekstu z cyrylicy na alfabet aciski.\n" +msgstr "Przekodowanie serbskiego tekstu z cyrylicy na alfabet łaciński.\n" #: src/recode-sr-latin.c:156 #, c-format, no-wrap @@ -3190,57 +3178,72 @@ "The input text is read from standard input. The converted text is output to\n" "standard output.\n" msgstr "" -"Tekst wejciowy jest czytany ze standardowego wejcia. Tekst przeksztacony\n" -"jest wysyany do standardowego wyjcia.\n" +"Tekst wejściowy jest czytany ze standardowego wejścia. Tekst przekształcony\n" +"jest wysyłany do standardowego wyjścia.\n" #: src/recode-sr-latin.c:338 #, c-format msgid "input is not valid in \"%s\" encoding" -msgstr "dane wejciowe s bdne jeeli kodowanie to \"%s\"" +msgstr "dane wejściowe są błędne jeżeli kodowanie to \"%s\"" #: src/recode-sr-latin.c:366 #, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "bd w czasie zmiany kodowania z \"%s\" na \"%s\"" +msgstr "błąd w czasie zmiany kodowania z \"%s\" na \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" -msgstr "oczekiwano dwch argumentw" +msgstr "oczekiwano dwóch argumentów" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" -msgstr "Skadnia: %s [OPCJA] URL PLIK\n" +msgstr "Składnia: %s [OPCJA] URL PLIK\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -"Pobranie i wypisanie zawartoci URL-a. Jeli URL jest niedostpny, uywany jest\n" -"lokalnie dostpny PLIK.\n" +"Pobranie i wypisanie zawartości URL-a. Jeśli URL jest niedostępny, używany jest\n" +"lokalnie dostępny PLIK.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" -msgstr "bd podczas pisania na standardowe wyjcie" +msgstr "błąd podczas pisania na standardowe wyjście" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Ściąganie %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " czas minął.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " niepowodzenie.\n" #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" -"Nie mona zapisa wielu domen tumacze do jednego pliku o podanym formacie " -"wyjciowym. Mona to zrobi uywajc pliku o skadni PO." +"Nie można zapisać wielu domen tłumaczeń do jednego pliku o podanym formacie " +"wyjściowym. Można to zrobić używając pliku o składni PO." #: src/write-catalog.c:129 msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." msgstr "" -"W podanym formacie wyjciowym nie mona zapisa wielu domen tumaczenia w " +"W podanym formacie wyjściowym nie można zapisać wielu domen tłumaczenia w " "pojedynczym pliku." #: src/write-catalog.c:162 @@ -3248,8 +3251,8 @@ "message catalog has context dependent translations, but the output format " "does not support them." msgstr "" -"katalog komunikatw ma formy mnogie, ale nie mog by zapisane w podanym " -"formacie wyjciowym." +"katalog komunikatów ma formy mnogie, ale nie mogą być zapisane w podanym " +"formacie wyjściowym." #: src/write-catalog.c:197 msgid "" @@ -3257,8 +3260,8 @@ "support them. Try generating a Java class using \"msgfmt --java\", instead " "of a properties file." msgstr "" -"katalog komunikatw ma tumaczenia form mnogich, ale format wyjciowy tego " -"nie obsuguje. Mona wygenerowa klas Javy przy uyciu \"msgfmt --java\" " +"katalog komunikatów ma tłumaczenia form mnogich, ale format wyjściowy tego " +"nie obsługuje. Można wygenerować klasę Javy przy użyciu \"msgfmt --java\" " "zamiast pliku properties." #: src/write-catalog.c:202 @@ -3266,60 +3269,60 @@ "message catalog has plural form translations, but the output format does not " "support them." msgstr "" -"katalog komunikatw ma formy mnogie, ale nie mog by zapisane na wyjciu." +"katalog komunikatów ma formy mnogie, ale nie mogą być zapisane na wyjściu." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr "nie mona utworzy pliku wyjciowego \"%s\"" +msgstr "nie można utworzyć pliku wyjściowego \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" -msgstr "standardowe wyjcie" +msgstr "standardowe wyjście" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" -msgstr "nie udao si utworzy katalogu \"%s\"" +msgstr "nie udało się utworzyć katalogu \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" -msgstr "kompilacja klasy C# nie udaa si, prosz uy --verbose" +msgstr "kompilacja klasy C# nie udała się, proszę użyć --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" -msgstr "kompilacja klasy C# nie udaa si" +msgstr "kompilacja klasy C# nie udała się" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "niepoprawna nazwa klasy Javy: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -"kompilacja klasy Javy nie udaa si, prosz uy --verbose lub ustawi $JAVAC" +"kompilacja klasy Javy nie udała się, proszę użyć --verbose lub ustawić $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "kompilacja klasy Javy nie udaa si, prosz ustawi $JAVAC" +msgstr "kompilacja klasy Javy nie udała się, proszę ustawić $JAVAC" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" -msgstr "bd otwarcia \"%s\" do pisania" +msgstr "błąd otwarcia \"%s\" do pisania" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" -msgstr "umidzynaradawiane komunikaty nie powinny zawiera sekwencji `\\%c'" +msgstr "umiędzynaradawiane komunikaty nie powinny zawierać sekwencji `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3327,12 +3330,12 @@ "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" msgstr "" -"Nastpujcy msgctxt zawiera znaki spoza ASCII.\n" -"Bdzie to sprawia problemy tumaczom uywajcym kodowania znakw\n" -"innego ni ty. Rozwa uywanie w nazwach msgctxt wycznie znakw ASCII.\n" +"Następujący msgctxt zawiera znaki spoza ASCII.\n" +"Będzie to sprawiać problemy tłumaczom używającym kodowania znaków\n" +"innego niż ty. Rozważ używanie w nazwach msgctxt wyłącznie znaków ASCII.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3340,9 +3343,9 @@ "different from yours. Consider using a pure ASCII msgid instead.\n" "%s\n" msgstr "" -"Nastpujcy msgid zawiera znaki spoza ASCII.\n" -"Bdzie to sprawia problemy tumaczom uywajcym kodowania znakw\n" -"innego ni teraz uywane. Lepiej uywa msgid wycznie ze znakw ASCII.\n" +"Następujący msgid zawiera znaki spoza ASCII.\n" +"Będzie to sprawiać problemy tłumaczom używającym kodowania znaków\n" +"innego niż teraz używane. Lepiej używać msgid wyłącznie ze znaków ASCII.\n" "%s\n" #: src/write-qt.c:667 @@ -3350,18 +3353,18 @@ "message catalog has plural form translations\n" "but the Qt message catalog format doesn't support plural handling\n" msgstr "" -"katalog komunikatw ma formy mnogie,\n" -"ale katalog komunikatw Qt nie pozwala ich uywa\n" +"katalog komunikatów ma formy mnogie,\n" +"ale katalog komunikatów Qt nie pozwala ich używać\n" #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"katalog komunikatw zawiera napisy msgctxt ze znakami spoza ISO-8859-1,\n" -"a katalog komunikatw Qt rozumie tylko Unicode w przetumaczonych\n" +"katalog komunikatów zawiera napisy msgctxt ze znakami spoza ISO-8859-1,\n" +"a katalog komunikatów Qt rozumie tylko Unicode w przetłumaczonych\n" "napisach, nie rozumie go w napisach kontekstu\n" #: src/write-qt.c:717 @@ -3370,346 +3373,338 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" -"katalog komunikatw ma zawiera napisy msgid ze znakami spoza ISO-8859-1,\n" -"a katalog komunikatw Qt rozumie tylko Unicode w przetumaczonych\n" -"napisach, nie rozumie go w nieprzetumaczonych\n" +"katalog komunikatów ma zawiera napisy msgid ze znakami spoza ISO-8859-1,\n" +"a katalog komunikatów Qt rozumie tylko Unicode w przetłumaczonych\n" +"napisach, nie rozumie go w nieprzetłumaczonych\n" #: src/write-resources.c:94 #, c-format msgid "error while writing to %s subprocess" -msgstr "bd podczas pisania do podprocesu %s" +msgstr "błąd podczas pisania do podprocesu %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -"katalog komunikatw ma tumaczenia zalene od kontekstu,\n" -"ale format C# .resources nie pozwala uywa kontekstw\n" +"katalog komunikatów ma tłumaczenia zależne od kontekstu,\n" +"ale format C# .resources nie pozwala używać kontekstów\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" msgstr "" -"katalog komunikatw ma formy mnogie,\n" -"ale katalog komunikatw C# nie pozwala ich uywa\n" +"katalog komunikatów ma formy mnogie,\n" +"ale katalog komunikatów C# nie pozwala ich używać\n" #: src/write-tcl.c:157 msgid "" "message catalog has context dependent translations\n" "but the Tcl message catalog format doesn't support contexts\n" msgstr "" -"katalog komunikatw zawiera tumaczenia zalene od kontekstu,\n" -"ale format katalogu komunikatw Tcl-a nie pozwala zmienia kontekstw\n" +"katalog komunikatów zawiera tłumaczenia zależne od kontekstu,\n" +"ale format katalogu komunikatów Tcl-a nie pozwala zmieniać kontekstów\n" #: src/write-tcl.c:176 msgid "" "message catalog has plural form translations\n" "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -"katalog komunikatw zawiera tumaczenia form mnogich,\n" -"ale format katalogu komunikatw Tcl-a nie obsuguje liczby mnogiej\n" +"katalog komunikatów zawiera tłumaczenia form mnogich,\n" +"ale format katalogu komunikatów Tcl-a nie obsługuje liczby mnogiej\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" -msgstr "%s:%d: uwaga: niezakoczony napis" +msgstr "%s:%d: uwaga: niezakończony napis" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" -msgstr "%s:%d: uwaga: niezakoczone wyraenie regularne" +msgstr "%s:%d: uwaga: niezakończone wyrażenie regularne" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" -msgstr "%s:%d: uwaga: niezakoczona staa znakowa" +msgstr "%s:%d: uwaga: niezakończona stała znakowa" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" -msgstr "%s:%d: uwaga: niezakoczona staa acuchowa" +msgstr "%s:%d: uwaga: niezakończona stała łańcuchowa" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"acuch nie-ASCII w %s%s.\n" -"Prosz poda kodowanie rda przy pomocy --from-code .\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Proszę podać kodowanie źródła przy pomocy --from-code ." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: Bdna sekwensja wielobajtowa.\n" -"Prosz poda poprawne kodowanie rdowe przy pomocy --from-code .\n" +"%s:%d: Błędna sekwensja wielobajtowa.\n" +"Proszę podać poprawne kodowanie źródłowe przy pomocy --from-code .\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: Niekompletna duga sekwencja wielobajtowa.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code .\n" +"%s:%d: Niekompletna długa sekwencja wielobajtowa.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code .\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: Niekompletna sekwencja wielobajtowa na kocu pliku.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code .\n" +"%s:%d: Niekompletna sekwencja wielobajtowa na końcu pliku.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code .\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: Niekompletna sekwencja wielobajtowa na kocu linii.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code .\n" +"%s:%d: Niekompletna sekwencja wielobajtowa na końcu linii.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code .\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" -msgstr "%s:%d: bd iconv" +msgstr "%s:%d: błąd iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -"%s:%d: Nieprawidowa sekwencja wielobajtowa.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code .\n" +"%s:%d: Nieprawidłowa sekwencja wielobajtowa.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code .\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" -msgstr "%s:%d: uwaga: bdny znak unikodowy" +msgstr "%s:%d: uwaga: błędny znak unikodowy" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" -msgstr "%s:%d: uwaga: niezakoczona staa znakowa" +msgstr "%s:%d: uwaga: niezakończona stała znakowa" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: uwaga: znaleziono ')', oczekiwano '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: uwaga: znaleziono '}', oczekiwano ')'" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -"Jzyk \"glade\" nie jest obsugiwany. %s polega na expat.\n" -"Ta wersja zostaa skompilowana bez expat.\n" +"Język \"glade\" nie jest obsługiwany. %s polega na expat.\n" +"Ta wersja została skompilowana bez expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: uwaga: niezakoczony napis U+%04X" +msgstr "%s:%d: uwaga: niezakończony napis U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" -msgstr "%s:%d: nie mona znale koca napisu \"%s\" przez kocem pliku" +msgstr "%s:%d: nie można znaleźć końca napisu \"%s\" przez końcem pliku" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" -msgstr "%s:%d: brakujcy prawy nawias w \\x{LICZBA_SZESNASTKOWA}" +msgstr "%s:%d: brakujący prawy nawias w \\x{LICZBA_SZESNASTKOWA}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" -msgstr "%s:%d: bdna interpolacja (\"\\l\") 8-bitowego znaku \"%c\"" +msgstr "%s:%d: błędna interpolacja (\"\\l\") 8-bitowego znaku \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" -msgstr "%s:%d: bdna interpolacja (\"\\u\") 8-bitowego znaku \"%c\"" +msgstr "%s:%d: błędna interpolacja (\"\\u\") 8-bitowego znaku \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" -msgstr "%s:%d: bdna interpolacja zmiennej w \"%c\"" +msgstr "%s:%d: błędna interpolacja zmiennej w \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" -msgstr "%s:%d: bdna interpolacja (\"\\L\") 8-bitowego znaku \"%c\"" +msgstr "%s:%d: błędna interpolacja (\"\\L\") 8-bitowego znaku \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" -msgstr "%s:%d: bdna interpolacja (\"\\U\") 8-bitowego znaku \"%c\"" +msgstr "%s:%d: błędna interpolacja (\"\\U\") 8-bitowego znaku \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"acuch nie-ASCII w %s%s.\n" -"Prosz poda kodowanie rda przy pomocy --from-code albo przez komentarz\n" +"Proszę podać kodowanie źródła przy pomocy --from-code albo przez komentarz\n" "wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Bdna sekwensja wielobajtowa.\n" -"Prosz poda poprawne kodowanie rdowe przy pomocy --from-code albo przez\n" +"%s:%d: Błędna sekwensja wielobajtowa.\n" +"Proszę podać poprawne kodowanie źródłowe przy pomocy --from-code albo przez\n" "komentarz wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Niekompletna duga sekwencja wielobajtowa.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code albo " +"%s:%d: Niekompletna długa sekwencja wielobajtowa.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code albo " "przez\n" "komentarz wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Niekompletna sekwencja wielobajtowa na kocu pliku.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code albo " +"%s:%d: Niekompletna sekwencja wielobajtowa na końcu pliku.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code albo " "przez\n" "komentarz wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Niekompletna sekwencja wielobajtowa na kocu linii.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code albo " +"%s:%d: Niekompletna sekwencja wielobajtowa na końcu linii.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code albo " "przez\n" "komentarz wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Nieprawidowa sekwencja wielobajtowa.\n" -"Prosz poda prawidowe kodowanie rdowe przy pomocy --from-code albo " +"%s:%d: Nieprawidłowa sekwencja wielobajtowa.\n" +"Proszę podać prawidłowe kodowanie źródłowe przy pomocy --from-code albo " "przez\n" "komentarz wg specyfikacji w http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." -msgstr "Nieznane kodowanie \"%s\". Uyte bdzie kodowanie ASCII." +msgstr "Nieznane kodowanie \"%s\". Użyte będzie kodowanie ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" -msgstr "%s:%d: bdna definicja napisu" +msgstr "%s:%d: błędna definicja napisu" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" -msgstr "%s:%d: brakujca liczba po #" +msgstr "%s:%d: brakująca liczba po #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" -msgstr "%s:%d: bdne wyraenie napisowe" +msgstr "%s:%d: błędne wyrażenie napisowe" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -"%s:%lu: uwaga: skadnia $\"...\" nie jest uywana ze wzgldu na " -"bezpieczestwo; uyj eval_gettext" +"%s:%lu: uwaga: składnia $\"...\" nie jest używana ze względu na " +"bezpieczeństwo; użyj eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" -msgstr "--join-existing nie moe by uyte przy pisaniu na standardowe wyjcie" +msgstr "--join-existing nie może być użyte przy pisaniu na standardowe wyjście" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" -msgstr "xgettext nie moe dziaa bez podania sw kluczowych" +msgstr "xgettext nie może działać bez podania słów kluczowych" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" -msgstr "uwaga: typ pliku `%s' z rozszerzeniem `%s' jest nieznany; sprbuj C" +msgstr "uwaga: typ pliku `%s' z rozszerzeniem `%s' jest nieznany; spróbuję C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -"Wycignicie przetumaczalnych napisw z podanych plikw wejciowych.\n" +"Wyciągnięcie przetłumaczalnych napisów z podanych plików wejściowych.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -" -d, --default-domain=NAZWA uycie NAZWA.po (nie messages.po) dla wyjcia\n" +" -d, --default-domain=NAZWA użycie NAZWA.po (nie messages.po) dla wyjścia\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=PLIK zapisanie wyniku do podanego pliku\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -" -p, --output-dir=KATALOG umieszczenie plikw wyjciowych w KATALOGU\n" +" -p, --output-dir=KATALOG umieszczenie plików wyjściowych w KATALOGU\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" -msgstr "Wybr jzyka pliku wejciowego:\n" +msgstr "Wybór języka pliku wejściowego:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3720,7 +3715,7 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -" -L, --language=NAZWA rozpoznawanie podanego jzyka\n" +" -L, --language=NAZWA rozpoznawanie podanego języka\n" " (C, C++, ObjectiveC, PO, Shell, Python, " "Lisp,\n" " EmacsLisp, librep, Scheme, Smalltalk, Java,\n" @@ -3728,67 +3723,75 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" -msgstr " -C, --c++ skrt dla --language=C++\n" +msgstr " -C, --c++ skrót dla --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -"Domylnie jzyk jest zgadywany na podstawie rozszerzenia pliku wejciowego.\n" +"Domyślnie język jest zgadywany na podstawie rozszerzenia pliku wejściowego.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -" --from-code=NAZWA kodowanie plikw wejciowych\n" -" (oprcz Pythona, Tcl-a, Glade)\n" +" --from-code=NAZWA kodowanie plików wejściowych\n" +" (oprócz Pythona, Tcl-a, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" -msgstr "Domylnie zakada si, e pliki wejciowe s w ASCII.\n" +msgstr "Domyślnie zakłada się, że pliki wejściowe są w ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -" -j, --join-existing doczenie komunikatw do istniejcego pliku\n" +" -j, --join-existing dołączenie komunikatów do istniejącego pliku\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" -msgstr " -x, --exclude-file=PLIK.po pominicie wpisw z PLIKU.po\n" +msgstr " -x, --exclude-file=PLIK.po pominięcie wpisów z PLIKU.po\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" -" -c, --add-comments[=ZNACZNIK] umieszczenie blokw komentarza ze " +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cZNACZNIK, --add-comments=ZNACZNIK w pliku wyjściowym będą umieszczone\n" +" bloki komentarzy zaczynające się od " +"ZNACZNIKA\n" +" i poprzedzające je linie ze słowami " +"kluczowymi\n" +" -c, --add-comments[=ZNACZNIK] umieszczenie bloków komentarza ze " "ZNACZNIKIEM\n" -" (lub poprzedzajcych linie ze sowem " +" (lub poprzedzających linie ze słowem " "kluczowym)\n" -" w pliku wyjciowym\n" +" w pliku wyjściowym\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" -msgstr "Opcje specyficzne dla jzyka:\n" +msgstr "Opcje specyficzne dla języka:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" -msgstr " -a, --extract-all wycignicie wszystkich napisw\n" +msgstr " -a, --extract-all wyciągnięcie wszystkich napisów\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3796,32 +3799,32 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -" (tylko jzyki C, C++, ObjectiveC, Shell,\n" +" (tylko języki C, C++, ObjectiveC, Shell,\n" " Python, Lisp, EmacsLisp, librep, Scheme, " "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=SOWO] dodatkowe sowo kluczowe do poszukiwania\n" -" (bez SOWA oznacza nie uywanie domylnych)\n" +" -kSŁOWO, --keyword=SŁOWO dodatkowe słowo kluczowe do poszukiwania\n" +" -k, --keyword bez używania domyślnych słów kluczowych\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " "argument\n" " number ARG of keyword WORD\n" msgstr "" -" --flag=SOWO:ARG:FLAGA dodatkowa flaga napisu wewntrz argumentu " +" --flag=SŁOWO:ARG:FLAGA dodatkowa flaga napisu wewnątrz argumentu " "numer\n" -" ARG sowa kluczowego SOWO\n" +" ARG słowa kluczowego SŁOWO\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3829,142 +3832,158 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -" (tylko jzyki C, C++, ObjectiveC, Shell,\n" +" (tylko języki C, C++, ObjectiveC, Shell,\n" " Python, Lisp, EmacsLisp, librep, Scheme, " "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -" -T, --trigraphs przetwarzanie na wejciu trjznakw ANSI C\n" +" -T, --trigraphs przetwarzanie na wejściu trójznaków ANSI C\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" -msgstr " (tylko jzyki C, C++, ObjectiveC)\n" +msgstr " (tylko języki C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" -msgstr " --qt rozpoznawanie napisw w formacie Qt\n" +msgstr " --qt rozpoznawanie napisów w formacie Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" -msgstr " (tylko jzyk C++)\n" +msgstr " (tylko język C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --kde rozpoznawanie napisw w formacie KDE 4\n" +msgstr " --kde rozpoznawanie napisów w formacie KDE 4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" -msgstr " --boost rozpoznawanie napisw w formacie Boost\n" +msgstr " --boost rozpoznawanie napisów w formacie Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -" --debug wicej szczegw o rozpoznawaniu formatw\n" -" napisw\n" +" --debug więcej szczegółów o rozpoznawaniu formatów\n" +" napisów\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output zapisanie pliku .properties Javy\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -" --copyright-holder=NAPIS wypisanie waciciela praw autorskich\n" +" --copyright-holder=NAPIS wypisanie właściciela praw autorskich\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -" --foreign-user pominicie na wyjciu copyrightu FSF dla\n" -" zewntrznych projektw\n" +" --foreign-user pominięcie na wyjściu copyrightu FSF dla\n" +" zewnętrznych projektów\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr " --package-name=PAKIET podanie nazwy PAKIETU na wyjciu\n" +msgstr " --package-name=PAKIET podanie nazwy PAKIETU na wyjściu\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr " --package-version=WERSJA podanie na wyjciu WERSJI pakietu\n" +msgstr " --package-version=WERSJA podanie na wyjściu WERSJI pakietu\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -" --msgid-bugs-address=ADRES@EMAIL adres do zgaszania bdw w msgid\n" +" --msgid-bugs-address=ADRES@EMAIL adres do zgłaszania błędów w msgid\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=NAPIS] uycie NAPISU lub \"\" jako przedrostka " -"wpisw\n" -" msgstr\n" +" -m[NAPIS], --msgstr-prefix[=NAPIS] użycie NAPISU lub \"\" jako\n" +" przedrostka wpisów msgstr\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=NAPIS] uycie NAPISU lub \"\" jako przyrostka " -"wpisw\n" -" msgstr\n" +" -M[NAPIS], --msgstr-suffix[=NAPIS] użycie NAPISU lub \"\" jako " +"przyrostka\n" +" wpisów msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -"Argument opcji --flag nie ma skadni ::[pass-]: %s" +"Argument opcji --flag nie ma składni ::[pass-]: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" -msgstr "standardowe wejcie" +msgstr "standardowe wejście" + +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Znak nie-ASCII w %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Komentarz ze znakami nie-ASCII przy albo przez %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Napis nie-ASCII przy %s%s." -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: uwaga: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -"Chocia %s jest uyte w formacie pooenia napisu, %s nie jest prawidowym " -"formatem. Powd: %s\n" +"Chociaż %s jest użyte w formacie położenia napisu, %s nie jest prawidłowym " +"formatem. Powód: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"%s nie jest prawidowym formatem napisu %s, mimo e jest tak zadeklarowany. " -"Powd: %s\n" +"%s nie jest prawidłowym formatem napisu %s, mimo że jest tak zadeklarowany. " +"Powód: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3972,59 +3991,83 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" msgstr "" -"acuch formatu '%s' z nienazwanymi argumentami nie moe by poprawnie " -"przetumaczony:\n" -"Tumacz nie moe uporzdkowa argumentw.\n" -"Rozwa uycie formatu z nazwami argumentw i mapowania zamiast\n" -"zestawu argumentw.\n" +"Łańcuch formatu '%s' z nienazwanymi argumentami nie może być poprawnie " +"przetłumaczony:\n" +"Tłumacz nie może uporządkować argumentów.\n" +"Rozważ użycie formatu z nazwami argumentów i mapowania zamiast\n" +"zestawu argumentów.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" "Pusty msgid. Jest on zarezerwowany dla gettexta GNU:\n" -"gettext(\"\") zwraca wpis nagwka z meta-informacjami,\n" +"gettext(\"\") zwraca wpis nagłówka z meta-informacjami,\n" "a nie pusty napis.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" -msgstr "niejednoznaczna specyfikacja argumentu sowa kluczowego '%.*s'" +msgstr "niejednoznaczna specyfikacja argumentu słowa kluczowego '%.*s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" -msgstr "uwaga: brak kontekstu sowa kluczowego '%.*s'" +msgstr "uwaga: brak kontekstu słowa kluczowego '%.*s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" -msgstr "uwaga: brak kontekstu dla mnogiego argumentu sowa kluczowego '%.*s'" +msgstr "uwaga: brak kontekstu dla mnogiego argumentu słowa kluczowego '%.*s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" -msgstr "pomieszanie kontekstw midzy form pojedycz i mnog" +msgstr "pomieszanie kontekstów między formą pojedyńczą i mnogą" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" "the MSGID_BUGS_ADDRESS variable there; otherwise please\n" "specify an --msgid-bugs-address command line option.\n" msgstr "" -"Opcja --msgid-bugs-address nie zostaa podana.\n" -"Jeli jest uywany plik `Makevars', prosz poda w nim\n" -"zmienn MSGID_BUGS_ADDRESS; w przeciwnym wypadku prosz\n" -"poda opcj --msgid-bugs-address z linii polece.\n" +"Opcja --msgid-bugs-address nie została podana.\n" +"Jeśli jest używany plik `Makevars', proszę podać w nim\n" +"zmienną MSGID_BUGS_ADDRESS; w przeciwnym wypadku proszę\n" +"podać opcję --msgid-bugs-address z linii poleceń.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" -msgstr "nieznany jzyk `%s'" +msgstr "nieznany język `%s'" #: libgettextpo/gettext-po.c:84 msgid "" msgstr "" + +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: niedozwolona opcja -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "błąd DuplicateHandle, kod 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Jeszcze nie zaimplementowane." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "nie można ustawić nieblokującego we/wy dla podprocesu %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "komunikacja z podprocesem %s nie powiodła się" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "czytanie z podprocesu %s nie powiodło się" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "podproces %s zakończony z kodem wyjścia %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "pole `%s' ma nadal początkową wartość domyślną\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/pt_BR.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/pt_BR.gmo differ diff -Nru gettext-0.17/gettext-tools/po/pt_BR.po gettext-0.18.1.1/gettext-tools/po/pt_BR.po --- gettext-0.17/gettext-tools/po/pt_BR.po 2007-11-02 02:23:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/pt_BR.po 2010-06-06 12:49:58.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.36\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2001-04-03 08:25+02:00\n" "Last-Translator: Flvio Bruno Leitner \n" "Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,22 +33,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "no foi possvel criar o arquivo de sada \"%s\"" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "no foi possvel criar o arquivo de sada \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "no foi possvel criar o arquivo de sada \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "no foi possvel criar o arquivo de sada \"%s\"" @@ -56,44 +57,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "erro ao abrir \"%s\" para leitura" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "erro ao abrir o arquivo \"%s\" para gravao" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "erro ao gravar o arquivo \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -103,74 +104,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro de sistema desconhecido" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: opo `%s' ambgua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: opo `--%s' no aceita parmetros\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: opo `%c%s' no aceita parmetros\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: opo `%s' requer um argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opo no reconhecida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opo no reconhecida `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opo ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opo invlida -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opo requer um argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: opo `-W %s' ambgua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: opo `-W %s' no aceita parmetros\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opo `%s' requer um argumento\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -182,20 +182,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "erro ao gravar o arquivo \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -205,20 +205,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "Memria insuficiente" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -237,70 +237,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "no foi possvel criar o arquivo de sada \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "especificaes de formato para o argumento %lu so diferentes" #: src/format-boost.c:449 @@ -325,9 +324,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "" "nmero de especificaes de formatos em `msgid' e `msgstr' no conferem" @@ -368,48 +367,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -501,19 +500,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "especificaes de formato para o argumento %lu so diferentes" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -527,11 +525,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -579,13 +577,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "" "nmero de especificaes de formatos em `msgid' e `msgstr' no conferem" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" #: src/format-perl.c:433 @@ -595,56 +593,53 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "nmero de especificaes de formatos em `msgid' e `msgstr' no conferem" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "nmero de especificaes de formatos em `msgid' e `msgstr' no conferem" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "especificaes de formato para o argumento %lu so diferentes" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "especificaes de formato para o argumento %lu so diferentes" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -681,11 +676,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -694,38 +689,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Escrito por %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "excesso de parmetros" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Tente `%s --help' para maiores informaes\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -758,29 +753,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -789,11 +784,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 #, fuzzy msgid "Report bugs to .\n" msgstr "Reporte bugs para .\n" @@ -803,294 +798,312 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "so necessrios 2 arquivos de entrada" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s e %s so mutuamente exclusivos" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "no foi informado o arquivo de entrada" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1110,31 +1123,31 @@ " -V, --version apresenta informaes de verso e finaliza\n" " -w, --width=NMERO configura largura da pgina de sada\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "critrio de seleo especificado impossvel (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, fuzzy, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1164,105 +1177,97 @@ "primeiro arquivo PO que os definirem. As posies de arquivo de todos\n" "os arquivos PO sero preservados.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "arquivos de entrada no informados" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "so necessrios 2 arquivos de entrada" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1287,81 +1292,86 @@ "mensagens do programa foram traduzidas. Onde uma igualdade no puder ser\n" "encontrada uma aproximao utilizada para produzir um melhor diagnstico.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "ateno: esta mensagem no utilizada" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "esta mensagem utilizada, mas no foi definida..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...mas esta definio similar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "esta mensagem utilizada mas no definida em %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "ateno: esta mensagem no utilizada" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "encontrado %d erro fatal" msgstr[1] "encontrados %d erros fatais" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "pelo menos dois arquivos devem ser especificados" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, fuzzy, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1390,74 +1400,74 @@ "primeiro arquivo PO que os definirem. As posies de arquivo de todos\n" "os arquivos PO sero preservados.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "no foi informado o arquivo de entrada" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "so necessrios 2 arquivos de entrada" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1466,22 +1476,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "parmetros no informados" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1491,67 +1501,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "parmetros no informados" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, fuzzy, c-format msgid "at least one sed script must be specified" msgstr "pelo menos dois arquivos devem ser especificados" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1559,210 +1569,192 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d mensagem traduzida" msgstr[1] "%d mensagens traduzidas" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traduo aproximada (fuzzy)" msgstr[1] ", %d tradues aproximadas (fuzzy)" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d mensagem no traduzida" msgstr[1] ", %d mensagens no traduzidas" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1771,48 +1763,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "no foi informado o arquivo de entrada" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1820,33 +1812,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1854,117 +1846,117 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "" "%s: aviso: Cabealho do arquivo PO esquecido, aproximado ou invlido\n" "%*s aviso: converso de charset no vai funcionar" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "" "%s: aviso: falta o cabealho relativo ao charset\n" "%*s aviso: converso de charset no vai funcionar" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "" "%s: aviso: Cabealho do arquivo PO esquecido, aproximado ou invlido\n" "%*s aviso: converso de charset no vai funcionar" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "nome do domnio \"%s\" no vlido como nome de arquivo" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "nome do domnio \"%s\" no vlido como nome de arquivo: ser usado um " "prefixo" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "`domain %s': diretiva ignorada" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "`msgstr' vazia: mensagem ignorada" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "`msgstr' aproximada (fuzzy): mensagem ignorada" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: aviso: arquivo fonte contm tradues aproximadas" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "erro ao ler \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2004,30 +1996,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2035,24 +2027,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2060,54 +2052,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2119,54 +2111,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, fuzzy, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "%s: aviso: charset \"%s\" no suportado pelo iconv%s" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, fuzzy, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "%s: aviso: charset \"%s\" no suportado pelo iconv%s" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2175,7 +2167,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2184,7 +2176,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2193,12 +2185,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2206,7 +2198,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2215,7 +2207,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2223,188 +2215,188 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "seqncia de controle ilegal" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "seqncia de controle ilegal" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "seqncia de controle ilegal" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "esta mensagem utilizada mas no definida em %s" msgstr[1] "esta mensagem utilizada mas no definida em %s" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "esta mensagem utilizada mas no definida em %s" msgstr[1] "esta mensagem utilizada mas no definida em %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "`msgid' e `msgstr' no comeam com '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' e `msgstr[%u]' no comeam com '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' e `msgstr' no comeam com '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' e `msgstr' no terminam com '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' e `msgstr[%u]' no terminam com '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' e `msgstr' no terminam com '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "campo `%s' faltando no cabealho" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "campo `%s' deve iniciar no comeo da linha" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "alguns campos do cabealho ainda possuem os valores iniciais padres" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "campo `%s' ainda possui o valor inicial" +msgid "header field `%s' still has the initial default value\n" +msgstr "alguns campos do cabealho ainda possuem os valores iniciais padres" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro ao abrir \"%s\" para leitura" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2429,51 +2421,51 @@ "Os resultados sero gravados na sada padro, a menos que um arquivo de\n" "sada seja especificado.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2485,7 +2477,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2493,33 +2485,28 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "esta mensagem utilizada mas no definida em %s" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "esta mensagem utilizada mas no definida em %s" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2528,61 +2515,63 @@ "%sLido %ld antigas + %ld referncia, concatenadas %ld, aproximadas %ld, " "perdidas %ld, obsoletas %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " feito.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s e %s so mutuamente exclusivos" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2590,41 +2579,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "no foi informado o arquivo de entrada" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2637,19 +2626,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2730,65 +2719,65 @@ msgid "plural form has wrong index" msgstr "forma plural tem o ndice errado" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "excesso de erros - finalizando" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "sequncia multibyte invlido" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "sequncia multibyte invlido" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "sequncia multibyte invlido" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "palavra chave \"%s\" desconhecida" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "seqncia de controle ilegal" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "fim de arquivo sem string" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "fim de linha sem string" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "este arquivo parece no conter diretivas de domnio" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definio duplicada de mensagem" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...esta a localizao da primeira definio" @@ -2878,28 +2867,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro ao abrir \"%s\" para leitura" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "excesso de parmetros" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "erro ao gravar o arquivo \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2931,41 +2935,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "no foi possvel criar o arquivo de sada \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "sada padro" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2975,14 +2979,14 @@ msgid "error while opening \"%s\" for writing" msgstr "erro ao abrir o arquivo \"%s\" para gravao" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "mensagens internacionalizadas no devem conter o caractere de escape `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2991,7 +2995,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3008,8 +3012,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3026,13 +3030,13 @@ msgid "error while writing to %s subprocess" msgstr "erro ao gravar o arquivo \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3050,154 +3054,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: aviso: caractere constante indeterminado" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: aviso: caractere constante indeterminado" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: opo invlida -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3205,7 +3204,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3213,7 +3212,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3221,7 +3220,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3229,7 +3228,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3237,78 +3236,78 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, fuzzy, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: aviso: string literal indeterminada" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing no pode ser usado enquanto a sada escrita na sada padro" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext no pode funcionar sem as teclas para procurar" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "aviso: arquivo `%s' extenso `%s' desconhecida; tentarei C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "no foi informado o arquivo de entrada" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3320,58 +3319,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3380,14 +3382,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3395,7 +3397,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3404,119 +3406,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrada padro" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3525,34 +3544,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3560,7 +3579,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "idioma `%s' desconhecido" @@ -3569,6 +3588,13 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opo ilegal -- %c\n" + +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "campo `%s' ainda possui o valor inicial" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " @@ -3736,8 +3762,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -3763,8 +3789,8 @@ #~ "\n" #~ "Parmetros obrigatrios para opes longas so tambm obrigatrios\n" #~ "para as opes curtas\n" -#~ " -a, --alignment=NMERO alinha strings em um NMERO de bytes (padro: %" -#~ "d)\n" +#~ " -a, --alignment=NMERO alinha strings em um NMERO de bytes (padro: " +#~ "%d)\n" #~ " -c, --check executa conferncias dependentes de linguagem " #~ "em strings\n" #~ " -D, --directory=DIR adiciona DIR para a lista de pesquisa de " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/pt.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/pt.gmo differ diff -Nru gettext-0.17/gettext-tools/po/pt.po gettext-0.18.1.1/gettext-tools/po/pt.po --- gettext-0.17/gettext-tools/po/pt.po 2007-11-02 02:23:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/pt.po 2010-06-06 12:49:58.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: GNU gettext 0.10.23\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 1996-09-18 20:51 WET DST\n" "Last-Translator: Nuno Oliveira \n" "Language-Team: Portuguese \n" +"Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -29,22 +30,22 @@ msgid "Valid arguments are:" msgstr "" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, fuzzy, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "impossvel criar o ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, fuzzy, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "impossvel criar o ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "impossvel criar o ficheiro de sada \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "impossvel criar o ficheiro de sada \"%s\"" @@ -53,44 +54,44 @@ msgid "write error" msgstr "" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "erro durante a abertura de \"%s\" para leitura" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, fuzzy, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "erro durante a abertura de \"%s\" para escrita" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, fuzzy, c-format msgid "error reading \"%s\"" msgstr "erro durante a leitura de \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, fuzzy, c-format msgid "error writing \"%s\"" msgstr "erro durante a escrita do ficheiro \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, fuzzy, c-format msgid "error after reading \"%s\"" msgstr "erro durante a leitura de \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -100,74 +101,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Erro desconhecido do sistema" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: a opo `%s' ambgua\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: a opo `--%s' no permite um argumento\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: a opo `%c%s' no permite um argumento\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: a opo `%s' requere um argumento\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opo no reconhecida `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opo no reconhecida `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opo ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: opo ilegal -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opo requere um argumento -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, fuzzy, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: a opo `%s' ambgua\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, fuzzy, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: a opo `--%s' no permite um argumento\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: a opo `%s' requere um argumento\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -179,20 +179,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "erro durante a escrita do ficheiro \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -202,20 +202,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, fuzzy, c-format msgid "memory exhausted" msgstr "memria exausta" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, fuzzy, c-format msgid "cannot create pipe" @@ -234,70 +234,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "impossvel criar o ficheiro de sada \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, fuzzy, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, fuzzy, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "as especificaes do argumento %u so diferentes" #: src/format-boost.c:449 @@ -322,9 +321,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, fuzzy, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "o nmero de especificaes em `msgid' e `msgstr' diferente" #: src/format-csharp.c:88 src/format-java.c:205 @@ -364,48 +363,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -497,19 +496,18 @@ #: src/format-java.c:745 #, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-java.c:755 +#: src/format-java.c:756 #, fuzzy, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-java.c:775 +#: src/format-java.c:776 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "as especificaes do argumento %u so diferentes" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -523,11 +521,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -575,12 +573,12 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, fuzzy, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "o nmero de especificaes em `msgid' e `msgstr' diferente" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, fuzzy, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "as especificaes do argumento %u so diferentes" #: src/format-perl.c:433 @@ -590,54 +588,51 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, fuzzy, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 +#: src/format-python.c:430 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "o nmero de especificaes em `msgid' e `msgstr' diferente" -#: src/format-python.c:426 +#: src/format-python.c:437 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "o nmero de especificaes em `msgid' e `msgstr' diferente" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "as especificaes do argumento %u so diferentes" -#: src/format-python.c:479 +#: src/format-python.c:494 #, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "as especificaes do argumento %u so diferentes" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -674,11 +669,11 @@ "1 and 9." msgstr "" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -687,38 +682,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "demasiados argumentos" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, fuzzy, c-format msgid "Try `%s --help' for more information.\n" msgstr "Tente `%s --help' para mais informao\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "" @@ -751,29 +746,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr "" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr "" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr "" @@ -782,11 +777,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" @@ -795,294 +790,312 @@ msgid "could not get host name" msgstr "" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, fuzzy, c-format msgid "at most one input file allowed" msgstr "so necessrios exactamente 2 ficheiros" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s e %s so mutuamente exclusivas" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, fuzzy, c-format msgid "Input file location:\n" msgstr "nenhum ficheiro de entrada fornecido" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr "" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " "syntax\n" msgstr "" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr "" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr "" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, fuzzy, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1104,31 +1117,31 @@ " -V, --version mostra a informao de verso e sai\n" " -w, --width=NMERO especifica a largura de pgina na sada\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr "" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1142,105 +1155,97 @@ "File positions from all PO files will be cumulated.\n" msgstr "" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" " syntax\n" msgstr "" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "ficheiros de entrada no fornecidos" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "so necessrios exactamente 2 ficheiros" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, fuzzy, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1267,80 +1272,85 @@ " usado um emparelhamento aproximado para produzir melhores\n" "diagnsticos.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr "" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr "" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr "" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "ateno: esta mensagem no usada" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "esta mensagem usada mas no definida..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...mas esta definio semelhante" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "esta mensagem usada mas no definida em %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "ateno: esta mensagem no usada" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, fuzzy, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "encontrados %d erros fatais" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1353,74 +1363,74 @@ "cumulated.\n" msgstr "" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "nenhum ficheiro de entrada fornecido" -#: src/msgen.c:233 +#: src/msgen.c:253 #, fuzzy, c-format msgid "exactly one input file required" msgstr "so necessrios exactamente 2 ficheiros" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1429,22 +1439,22 @@ "identical to the msgid.\n" msgstr "" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, fuzzy, c-format msgid "missing command name" msgstr "argumentos insuficientes" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1454,67 +1464,67 @@ "across all invocations.\n" msgstr "" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" "null byte. The output of \"msgexec 0\" is suitable as input for \"xargs -0\".\n" msgstr "" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, fuzzy, c-format msgid "missing filter name" msgstr "argumentos insuficientes" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1522,207 +1532,189 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, fuzzy, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d mensagens traduzidas" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, fuzzy, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d tradues aproximadas" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, fuzzy, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d mensagens no traduzidas" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr "" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " "higher)\n" msgstr "" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr "" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr "" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1731,48 +1723,48 @@ "written under the specified directory.\n" msgstr "" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "nenhum ficheiro de entrada fornecido" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1780,33 +1772,33 @@ "domain\n" msgstr "" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr "" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" " and the --output-file option\n" msgstr "" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1814,111 +1806,111 @@ " menu items\n" msgstr "" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, fuzzy, c-format msgid "warning: PO file header missing or invalid\n" msgstr "CUIDADO: o ficheiro fonte contm tradues aproximadas" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, fuzzy, c-format msgid "warning: charset conversion will not work\n" msgstr "CUIDADO: o ficheiro fonte contm tradues aproximadas" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, fuzzy, c-format msgid "warning: PO file header fuzzy\n" msgstr "CUIDADO: o ficheiro fonte contm tradues aproximadas" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "nome de domnio \"%s\" no apropriado como nome de ficheiro" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "nome de domnio \"%s\" no apropriado como nome de ficheiro:\n" "prefixo usado" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "directiva `domnio %s' ignorada" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "elemento `msgstr' vazio ignorada" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, fuzzy, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "elemento `msgstr' vazio ignorada" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, fuzzy, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "CUIDADO: o ficheiro fonte contm tradues aproximadas" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "erro durante a leitura de \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -1958,30 +1950,30 @@ " selection criterion\n" msgstr "" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr "" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" "file. This is necessary so you can test your translations.\n" msgstr "" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -1989,24 +1981,24 @@ "the output .po file through the --output-file option.\n" msgstr "" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr "" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2014,54 +2006,54 @@ "If it is -, standard input is read.\n" msgstr "" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr "" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" msgstr "" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2073,54 +2065,54 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" "Converting the output to UTF-8.\n" msgstr "" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2129,7 +2121,7 @@ "To select a different output encoding, use the --to-code option.\n" msgstr "" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2138,7 +2130,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2147,12 +2139,12 @@ "Possible workarounds are:\n" msgstr "" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2160,7 +2152,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2169,7 +2161,7 @@ " then convert back to %s using 'msgconv'.\n" msgstr "" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2177,192 +2169,192 @@ "A possible workaround is to set LC_ALL=C.\n" msgstr "" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 #, fuzzy msgid "invalid nplurals value" msgstr "sequncia de controlo ilegal" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 #, fuzzy msgid "invalid plural expression" msgstr "sequncia de controlo ilegal" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "sequncia de controlo ilegal" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "esta mensagem usada mas no definida em %s" msgstr[1] "esta mensagem usada mas no definida em %s" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "esta mensagem usada mas no definida em %s" msgstr[1] "esta mensagem usada mas no definida em %s" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" msgstr "" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "os campos `msgid' e `msgstr' no comeam ambos por '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "os campos `msgid' e `msgstr' no comeam ambos por '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 #, fuzzy msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "os campos `msgid' e `msgstr' no comeam ambos por '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 #, fuzzy msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "os campos `msgid' e `msgstr' no terminam ambos por '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, fuzzy, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "os campos `msgid' e `msgstr' no terminam ambos por '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 #, fuzzy msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "os campos `msgid' e `msgstr' no terminam ambos por '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, fuzzy, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "o campo `%s' falta no cabealho" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, fuzzy, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "o campo `%s' do cabealho deve comear no incio da linha" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 #, fuzzy msgid "some header fields still have the initial default value\n" msgstr "alguns campos do cabealho ainda tm o valor inicial por defeito" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, fuzzy, c-format -msgid "field `%s' still has initial default value\n" -msgstr "o campo `%s' ainda tem o valor por defeito inicial" +msgid "header field `%s' still has the initial default value\n" +msgstr "alguns campos do cabealho ainda tm o valor inicial por defeito" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro durante a abertura de \"%s\" para leitura" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, fuzzy, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2389,51 +2381,51 @@ "resultados sero escritos no canal de sada por defeito (stdout) a\n" "menos que seja especificado um ficheiro de sada.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr "" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr "" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr "" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2445,7 +2437,7 @@ " simple, never always make simple backups\n" msgstr "" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2453,96 +2445,93 @@ "environment variable.\n" msgstr "" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr "" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, fuzzy, c-format msgid "this message should define plural forms" msgstr "esta mensagem usada mas no definida em %s" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, fuzzy, c-format msgid "this message should not define plural forms" msgstr "esta mensagem usada mas no definida em %s" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, fuzzy, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" -"%sLidas %d antigas + %d referncias, combinadas %d, aproximadas %d, faltam %" -"d, obsoletas %d.\n" +"%sLidas %d antigas + %d referncias, combinadas %d, aproximadas %d, faltam " +"%d, obsoletas %d.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr "terminado.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, fuzzy, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s e %s so mutuamente exclusivas" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr "" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " "file\n" msgstr "" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr "" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2550,41 +2539,41 @@ "separated with an underscore. The class is located using the CLASSPATH.\n" msgstr "" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "nenhum ficheiro de entrada fornecido" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2597,19 +2586,19 @@ "will be cumulated. When using the --unique option, duplicates are discarded.\n" msgstr "" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr "" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr "" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2686,65 +2675,65 @@ msgid "plural form has wrong index" msgstr "" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "demasiados erros, interrompendo" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, fuzzy, c-format msgid "invalid multibyte sequence" msgstr "sequncia de controlo ilegal" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of file" msgstr "sequncia de controlo ilegal" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, fuzzy, c-format msgid "incomplete multibyte sequence at end of line" msgstr "sequncia de controlo ilegal" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "palavra chave \"%s\" desconhecida" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, fuzzy, c-format msgid "invalid control sequence" msgstr "sequncia de controlo ilegal" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "fim-de-ficheiro dentro da cadeia" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "fim-de-linha dentro da cadeia" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "este ficheiro no pode conter directivas de domnio" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definio de mensagem duplicada" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "este o local da primeira definio" @@ -2833,28 +2822,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "erro durante a abertura de \"%s\" para leitura" -#: src/urlget.c:146 +#: src/urlget.c:159 #, fuzzy, c-format msgid "expected two arguments" msgstr "demasiados argumentos" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "" -#: src/urlget.c:219 +#: src/urlget.c:234 #, fuzzy, c-format msgid "error writing stdout" msgstr "erro durante a escrita do ficheiro \"%s\"" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -2886,41 +2890,41 @@ "support them." msgstr "" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "impossvel criar o ficheiro de sada \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "canal de sada por defeito (stdout)" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -2930,7 +2934,7 @@ msgid "error while opening \"%s\" for writing" msgstr "erro durante a abertura de \"%s\" para escrita" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -2938,7 +2942,7 @@ "as mensagens de internacionalizao no devem conter\n" "a sequncia de escape `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -2947,7 +2951,7 @@ "%s\n" msgstr "" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -2964,8 +2968,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -2982,13 +2986,13 @@ msgid "error while writing to %s subprocess" msgstr "erro durante a escrita do ficheiro \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3006,154 +3010,149 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, fuzzy, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, fuzzy, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." msgstr "" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, fuzzy, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" "This version was built without expat.\n" msgstr "" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "o ficheiro \"%s\" no est no formato .mo GNU" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, fuzzy, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s: opo ilegal -- %c\n" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3161,7 +3160,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3169,7 +3168,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3177,7 +3176,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3185,7 +3184,7 @@ "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3193,81 +3192,81 @@ "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing no pode ser usada quando a sada\n" " escrita no stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, fuzzy, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "cuidado: o tipo do ficheiro `%s' com a extenso `%s' desconhecido;\n" "ser tentado C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr "" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, fuzzy, c-format msgid "Choice of input file language:\n" msgstr "nenhum ficheiro de entrada fornecido" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3279,58 +3278,61 @@ " GCC-source, NXStringTable, RST, Glade)\n" msgstr "" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr "" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr "" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3339,14 +3341,14 @@ " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" msgstr "" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3354,7 +3356,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3363,119 +3365,136 @@ " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" msgstr "" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr "" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr "" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr "" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr "" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "entrada standard" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3484,34 +3503,34 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3519,7 +3538,7 @@ "specify an --msgid-bugs-address command line option.\n" msgstr "" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "" @@ -3528,6 +3547,13 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opo ilegal -- %c\n" + +#, fuzzy +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "o campo `%s' ainda tem o valor por defeito inicial" + #~ msgid "...this is the location of the first definition" #~ msgstr "...este o local da primeira definio" @@ -3845,8 +3871,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " @@ -3869,8 +3895,8 @@ #~ "Utilizao: %s [OPO] ficheiro.po ...\n" #~ "Os argumentos obrigatrios para as opes longas so igualmente\n" #~ "obrigatrios para as opes curtas.\n" -#~ " -a, --alignment=NMERO alinha as cadeias a NMERO bytes (defeito: %" -#~ "d)\n" +#~ " -a, --alignment=NMERO alinha as cadeias a NMERO bytes (defeito: " +#~ "%d)\n" #~ " -c, --check executa testes dependentes da linguagem na\n" #~ " cadeia\n" #~ " -D, --directory=DIRECTRIO adiciona DIRECTRIO lista de procura " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/ro.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/ro.gmo differ diff -Nru gettext-0.17/gettext-tools/po/ro.po gettext-0.18.1.1/gettext-tools/po/ro.po --- gettext-0.17/gettext-tools/po/ro.po 2007-11-02 02:23:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ro.po 2010-06-06 12:49:58.000000000 +0000 @@ -7,10 +7,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.13-pre1\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2003-11-23 11:43+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" +"Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-2\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,23 +32,23 @@ msgid "Valid arguments are:" msgstr "Parametrii valizi sunt: " -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "nu se poate gsi un director temporar, ncercai s setai $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" "nu se poate crea un director temporar folosind modelul(template) \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "nu se poate crea fiierul de ieire(output) \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "" @@ -57,44 +58,44 @@ msgid "write error" msgstr "eroare de scriere" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "eroare n timpul deschiderii \"%s\" pentru citire" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "nu se poate deschide fiierul de backup \"%s\" pentru scriere" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "eroare n citirea lui \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "eroare n scrierea lui \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "eroare dup citirea lui \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() euat" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, fuzzy, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -108,74 +109,73 @@ "Nu a fost gsit maina virtual Java, ncercai s instalai gij sau s " "setai $JAVA" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Eroare de sistem necunoscut" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "Subprocesul %s a euat" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: opiunea `%s' este ambigu\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: opiunea `--%s' nu permite parametri\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: opiunea `%c%s' nu permite parametri\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: opiunea `%s' necesit un parametru\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: opiune necunoscut `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: opiune necunoscut `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: opiune ilegal -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: optiune invalid -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: opiunea necesit un parametru -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: opiunea `-W %s' este ambigu\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: opiunea `-W %s' nu permite parametri\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: opiunea `%s' necesit un parametru\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -187,20 +187,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "eroare n crearea \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "eroare n scrierea fiierului \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -214,20 +214,20 @@ "Nu a fost gsit maina virtual Java, ncercai s instalai gij sau s " "setai $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "eroare I/O a subprocesului %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "memorie plin" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -246,73 +246,72 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle a euat cu cod de eroare 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle a euat" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "nu se poate crea fiierul de ieire(output) \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "subprocesul %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "subprocesul %s a primit semnalul fatal %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "'%s' nu este un format valid de ir %s, spre deosebire de 'msgid'. Motiv: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "o specificaie de formatare pentru parametrul %u, ca n `%s', nu exist n " "'msgid'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "o specificaie de format pentru argumentul %u nu exist n '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" "specificaiile de formatare din 'msgid' i '%s' pentru argumentul %u sunt " "diferite" @@ -344,9 +343,9 @@ msgstr "" "irul are referire la argumentul numrul %u dar ignor argumentul numrul %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "numrul de specificaii de formatare din 'msgid' i '%s' este diferit" #: src/format-csharp.c:88 src/format-java.c:205 @@ -390,18 +389,18 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "irul se termin n mijlocul directivei." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, fuzzy, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "n directiva numrul %u parametrul %d este negativ." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, fuzzy, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "n numrul de directiv %u, marcajele(flags) nu sunt admise nainte de '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, fuzzy, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -409,7 +408,7 @@ msgstr "" "n directiva numrul %u, numrul de argument 0 nu este un ntreg pozitiv." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -417,25 +416,25 @@ msgstr "" "n numrul de directiv %u, marcajele(flags) nu sunt admise nainte de '%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, fuzzy, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "n directiva numrul %u parametrul %d este negativ." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" "n numrul de directiv %u, marcajele(flags) nu sunt admise nainte de '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -543,23 +542,22 @@ "'<', '#' sau '%s'." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "o specificaie de formatare pentru argumentul {%u}, ca n '%s', nu exist n " "'msgid'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "o specificaie de formatare pentru argumentul {%u} nu exist n '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "specificaiile de format din 'msgid' i '%s' pentru argument {%u} nu sunt la " "fel" @@ -577,11 +575,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, fuzzy, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "n directiva numrul %u sunt furnizai prea muli parametri; se ateptau cel " "mult %u parametrii." @@ -634,13 +632,13 @@ msgstr "irul se refer la anumite argumente n moduri incompatibile." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "specificaiile de format din 'msgid' i '%s' nu sunt echivalente" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "specificaiile de format din '%s' nu sunt subset al acelora din 'msgid'" @@ -653,12 +651,12 @@ "n directiva numrul %u, specificatorul de mrime este incompatibil cu " "specificatorul de conversie '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "o specificare de format pentru argumentul '%s' nu exist n '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -666,42 +664,39 @@ "irul se refer la argumente att prin numele argumentelor ct i prin " "specificaii de argument nenominalizate." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "irul se refer la argumentul numit '%s' n moduri incompatibile." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "specificaiile de format din 'msgid' ateapt o mapare, acelea din '%s' " "ateapt altceva(tuple)" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "specificaiile de formatare din 'msgid' ateapt altceva (tuple), acelea din " "'%s' ateapt o mapare" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "specificarea de formatare pentru argumentul '%s', precum n '%s' nu exist " "n 'msgid'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "specificaiile de formatare din 'msgid' i '%s' pentru argumentul '%s' nu " "sunt la fel" @@ -709,8 +704,8 @@ #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -753,11 +748,11 @@ msgstr "" "Caracterul care termin directiva numrul %u nu este un digit ntre 1 i 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -766,38 +761,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Scris de %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "prea muli parametri" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "ncercai `%s --help' pentru mai multe informaii.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Folosire: %s [OPIUNE]\n" @@ -833,29 +828,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address adresele pentru numele de host\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Ieire(output) informativ:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help afieaz acest ajutor i iese\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version afieaz informaii despre versiune i iese\n" @@ -864,11 +859,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Raportai bug-urile la .\n" @@ -877,30 +872,30 @@ msgid "could not get host name" msgstr "nu s-a putut afla numele de host" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "cel mult un fiier de intrare(input) este permis" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s i %s se exclud reciproc" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Folosire: %s [OPIUNE] [FIIER_INTRARE]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -909,10 +904,10 @@ "Filtreaz mesajele unui catalog de traduceri potrivit atributelor lor,\n" "i manipuleaz atributele.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -920,23 +915,23 @@ "Parametrii obligatorii la opiunile lungi sunt obligatorii i la opiunile " "scurte.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Locaie fiier intrare(input):\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " FIIER_INTRARE fiier de intrare(input) PO\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -944,33 +939,33 @@ " -D, --directory=DIRECTOR adaug DIRECTOR n lista de cutare a " "fiierelor de intrare\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Dac nu este dat nici un fiier de intrare sau este -, se va citi intrarea" "(input) standard.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Locaie fiier ieire(output):\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr "" " -o, --output-file=FIIER scrie output-ul n fiierul specificat\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -980,12 +975,12 @@ "fiier\n" "de ieire(output) sau dac acesta este -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Selecie mesaje:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -993,7 +988,7 @@ " --translated pstreaz pe cele traduse, terge mesajele " "netraduse\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -1001,59 +996,59 @@ " --untranslated pstreaz pe cele netraduse, terge mesajele " "traduse\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy terge mesajele marcate 'fuzzy'\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy pstreaz mesajele marcate 'fuzzy'\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete terge mesajele nvechite #~ \n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete pstreaz mesajele nvechite #~ \n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Manipulare de atribute:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy seteaz toate mesajele 'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy seteaz toate mesajele non-'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete seteaz toate mesajele nvechite\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete seteaz toate mesajele non-nvechite\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, fuzzy, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr " --clear-fuzzy seteaz toate mesajele non-'fuzzy'\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1061,7 +1056,7 @@ " --only-file=FIIER.po manipuleaz doar intrrile listate n FIIER." "po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1069,13 +1064,13 @@ " --ignore-file=FIIER.po manipuleaz doar intrrile nelistate n " "FIIER.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy sinonim pentru --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" @@ -1083,16 +1078,16 @@ " --obsolete sinonim pentru --only-obsolete --clear-" "obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Sintax fiier de intrare(input:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1100,8 +1095,8 @@ " -P, --properties-input fiierul de intrare(input) este n sintax " "Java .properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1110,25 +1105,43 @@ " --stringtable-input fiierul de intrare(input) este n sintax \n" "NeXTstep/GNUstep .strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Detalii de output:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr " -e, --no-escape nu folosete escape-uri C n output\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1136,28 +1149,28 @@ " -E, --escape folosete escape-uri C n output, fr " "caractere extinse\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po scrie fiierul PO chiar dac e gol\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent scrie fiierul .po folosind stil indentat\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location nu scrie liniile '#: filename:line'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1165,39 +1178,39 @@ " -n, --add-location genereaz liniile '#: filename:" "line' (implicit)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr " --strict scrie strict fiiere conforme Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output scrie un fiier .properties Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output scrie un fiier .strings NeXTstep/GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMR setare lime output pagin\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1208,32 +1221,32 @@ " dect limea paginii de output,n cteva " "linii\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output genereaz output sortat\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file sorteaz output-ul dup locaia fiierului\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "criteriu de selecie specificat imposibil (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Folosire: %s [OPIUNE] [FIIER_INTRARE]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1257,26 +1270,26 @@ "este specificat --use-first, caz n care vor fi preluate din primul fiier PO pentru\n" "a fi definite. Pozitiile din fiier din toate fiierele PO vor fi cumulate.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " FIIER_INTRARE ... fiiere de intrare(input)\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=FIIER obine lista de fiiere de intrare din " "FIIER\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "" "Dac fiierul de intrare este -, se va citi intrarea(input) standard.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1287,7 +1300,7 @@ "este\n" " infinit\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1297,7 +1310,7 @@ " definiii, dac nu este setat implicit este " "0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1306,8 +1319,8 @@ " -u, --unique scurttur pentru --less-than=2, solicit\n" " ca doar mesajele unice s fie tiprite\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1315,8 +1328,8 @@ " -P, --properties-input fiierele de intrare(input) sunt n sintax ." "properties Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1325,13 +1338,13 @@ " --stringtable-input fiierele de intrare(input) sunt n sintax \n" "NeXTstep/GNUstep .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr "" " -t, --to-code=NUME codarea(encoding) pentru ieire(output)\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1342,41 +1355,33 @@ " fiecare mesaj, nu mbin mai multe " "traduceri\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "nu au fost date fiiere de intrare(input)" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "sunt necesare exact 2 fiiere de intrare(input)" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Folosire: %s [OPIUNE] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1394,22 +1399,22 @@ "s-a gsit o potrivire exact, se va marca mesajul cu fuzzy pentru a produce\n" "diagnostice mai bune.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po traduceri\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot referine la surse\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modificatori de operaie:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1417,63 +1422,69 @@ msgstr "" " -m, --multi-domain aplic ref.pot pe fiecare domeniu din def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" +" -N, --no-fuzzy-matching nu folosete potrivire aproximativ(fuzzy)\n" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" " -f, --use-fuzzy folosete intrri parial traduse la ieire" "(output)\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, fuzzy, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" " --untranslated pstreaz pe cele netraduse, terge mesajele " "traduse\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "avertisment: acest mesaj nu este folosit" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "acest mesaj este folosit dar nu este definit..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...dar definiia este similar" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "acest mesaj este folosit dar nu i definit n %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "avertisment: acest mesaj nu este folosit" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "s-a gsit %d eroare fatal" msgstr[1] "s-au gsit %d erori fatale" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "cel puin dou fiiere trebuie specificate" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1494,7 +1505,7 @@ "comentariile i comentariile extrase vor fi pstrate, dar doar dac sunt definite\n" "n primul fiier PO. Pozitiile din fiier din toate fiierele PO vor fi cumulate.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1504,46 +1515,46 @@ " definiii, dac nu este setat implicit este " "1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header nu include n header intrarea `msgid \"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "" "Face conversia unui catalog de traduceri ntr-o alt codare(encoding) de " "caractere.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "int conversie:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "" "Codarea(encoding) implicit este codarea(encoding) localizrii curente.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr "" " --force-po scrie fiierul PO chiar dac este vid\n" " -i, --indent scrie fiierul .po folosind stil indentat\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location nu scrie linii '#: filename:line'\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1551,29 +1562,29 @@ " --add-location genereaz linii '#: filename:" "line' (implicit)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict scrie strict fiiere conforme Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "nu este furnizat nici un fiier de intrare" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "este solicitat exact un singur fiier de intrare" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Folosire: %s [OPIUNE] FIIER_INTRARE\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1586,23 +1597,23 @@ "(n general creat de xgettext). Intrrilor netraduse le sunt asignate traduceri care\n" "sunt identice cu msgid, i care vor fi marcate fuzzy.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr "" " FIIER_INTRARE ... fiiere de intrare(input) PO sau POT\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "lipsete numele comenzii" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Folosire: %s [OPIUNE] COMAND [OPIUNE-COMAND]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1617,7 +1628,7 @@ "Ieirea(output) acesteia devine output-ul msgexec. codul returnat de msgexec\n" "este maximumul de returnare de-a lungul tuturor invocaiilor.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1627,43 +1638,43 @@ "un octet null. Rezultatul(output) \"msgexec 0\" este potrivit ca intrare(input)\n" "pentru \"xargs - 0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr "" " -i, --input=FIIER_INTRARE ... fiier de intrare(input) PO\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "scriere la stdout euat" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "scrierea n subprocesul %s euat" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "lipsete numele de filtru" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "cel puin un script sed trebuie specificat" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Folosire: %s [OPIUNE] FILTRU [OPIUNE-FILTRU]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Aplic un filtru pe toate traducerile unui catalog de traduceri.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1672,12 +1683,12 @@ "FILTRU poate fi orice program care citete de la intrarea(input) standard\n" "i scrie traducerea modificat la ieirea(output) standard.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "OPIUNi de FILTRU folositoare atunci cnd FILTRU este 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" @@ -1685,7 +1696,7 @@ " -e, --expression=SCRIPT adaug SCRIPTul la comenzile ce vor fi " "executate\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1695,7 +1706,7 @@ " -f, --file=FIIERSCRIPT adaug coninutul FIIERSCRIPT la comenzile\n" " ce vor fi executate\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1703,7 +1714,7 @@ " -n, --quiet, --silent suprim tiprirea automat a spaiului model" "(pattern)\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1711,13 +1722,13 @@ " --no-escape nu folosete escape-uri C n output " "(implicit)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr "" " --indent scrie fiierul .po folosind stil indentat\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1725,100 +1736,82 @@ " --keep-header pstreaz headerul nemodificat, nu l " "filtreaz\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Neimplimentat nc." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "nu se poate seta I/O neblocant pentru subprocesul %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "comunicaia cu subprocesul %s a euat" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "citirea din subprocesul %s a euat" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "subprocesul %s s-a terminat cu cod de ieire %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "argumentul lui %s ar trebui s fie un singur caracter de punctuaie" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s necesit specificarea \"-d director\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s necesit specificarea \"-l localizare\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s e valid doar cu %s sau cu %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, fuzzy, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s e valid doar cu %s sau cu %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d mesaj tradus" msgstr[1] "%d mesaje traduse" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d traducere aproximativ(fuzzy)" msgstr[1] ", %d traduceri aproximative(fuzzy)" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d mesaj netradus" msgstr[1] ", %d mesaje netraduse" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Folosire: %s [OPIUNE] numefiier.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Genereaz un catalog binar de mesaje din descriere de traducere textual\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1827,17 +1820,17 @@ "Argumentele obligatorii pentru opiunile lungi sunt obligatorii i pentru opiunile\n" "scurte. Similar pentru argumentele opionale.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " numefiier.po ... fiiere de intrare(input)\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Mod de operare:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1846,7 +1839,7 @@ " -j, --java Mod Java: genereaz o clas Java " "ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1855,54 +1848,54 @@ " --java2 precum --java, i presupune Java2 (JDK 1.2 sau " "ulterior)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, fuzzy, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --qt Mod Qt: genereaz un fiier .qm Qt\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr " --qt Mod Qt: genereaz un fiier .qm Qt\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Mod tcl: genereaz un fiier tcl/msgcat .msg\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Mod Qt: genereaz un fiier .qm Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict activeaz modul strict Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" "Dac fiierul de ieire(output) este -, output-ul este scris la ieirea " "standard.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Locaie fiier output n mod Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESURS nume resurs\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1911,14 +1904,14 @@ " -l, --locale=LOCALIZARE nume localizare, fie limb, " "fie limb_AR\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d DIRECTOR directorul de baz al ierarhiei directoarelor\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1931,12 +1924,12 @@ "separat de liniu_jos. Opiunea -d este obligatorie. Clasa este\n" "scris n directorul specificat.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, fuzzy, c-format msgid "Output file location in C# mode:\n" msgstr "Locaie fiier output n mod Tcl:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, fuzzy, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1944,7 +1937,7 @@ msgstr "" " -d DIRECTOR directorul de baz al ierarhiei directoarelor\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, fuzzy, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1954,19 +1947,19 @@ "directorul\n" "specificat\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Locaie fiier output n mod Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d DIRECTOR directorul de baz al cataloagelor de mesaje ." "msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1976,12 +1969,12 @@ "directorul\n" "specificat\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretare fiier de intrarea(input):\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1992,13 +1985,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format verific irurile format dependent de limbaj\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -2006,7 +1999,7 @@ msgstr "" " --check-header verific prezena i coninutul header-ului\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2016,7 +2009,7 @@ "directivele\n" " de domenii i opiunea --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -2025,7 +2018,7 @@ " -C, --check-compatibility verific dac GNU msgfmt se comport ca X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2036,103 +2029,103 @@ "tastatur\n" " pentru elementele meniului\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy folosete intrri parial traduse la ieire" "(output)\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -" -a, --alignment=NUMR aliniaz irurile la NUMR octei (implicit: %" -"d)\n" +" -a, --alignment=NUMR aliniaz irurile la NUMR octei (implicit: " +"%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash fiierul binar nu va include tabela de hash\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics afieaz statistici despre traduceri\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose mrete nivelul de detaliere\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "avertisment: headerul fiierului PO lipsete sau este invalid\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "avertisment: conversia setului de caractere nu va funciona\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "avertisment: headerul fiierului PO este neclar(fuzzy)\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "avertisment: versiunile mai vechi ale msgfmt ar putea aici raporta o eroare\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "numele de domeniu \"%s\" nu este potrivit ca nume fiier" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "numele de domeniu \"%s\" nu este potrivit ca nume de fiier: se va utiliza " "prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "directiva `domain %s' ignorat" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "intrarea `msgstr' vid ignorat" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "intrarea `msgstr' neclar(fuzzy) ignorat" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: avertisment: fiierul surs conine traduceri aproximative(fuzzy)" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "eroare n timpul citirii \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2140,7 +2133,7 @@ msgstr "" "opiunea '%c' nu poate fi folosit nainte ca 'K' sau 'T' s fie specificate" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2149,7 +2142,7 @@ "Extrage toate mesajele unui catalog care se potrivete unui tipar dat\n" "sau care e dependent de fiiere surs date.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, fuzzy, c-format, no-wrap msgid "" "Message selection:\n" @@ -2215,7 +2208,7 @@ " -f, --file=FIIER obine TIPAR din FIIER\n" " -i, --ignore-case ignor distincia de caz\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2223,18 +2216,18 @@ " --escape folosete escape-uri C n output, nu \n" "caractere extinse\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output genereaz output sortat\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file sorteaz output-ul dup locaia fiierului\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2244,7 +2237,7 @@ "variabila voastr de mediu LANG, n modul n care este descris n fiierul\n" "ABOUT-NLS. Aceasta este necesar pentru a v testa traducerile.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2255,12 +2248,12 @@ "Specificai localizarea prin opiunea --locale sau\n" "fiierul de ieire(output) .po prin opiunea --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "S-a creat %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2269,12 +2262,12 @@ "Creaz un nou fier PO, iniializnd informaiile meta cu valori pentru\n" "mediul utilizatorului.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=FIIER_INTRARE fiierul de intrare POT\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2286,13 +2279,13 @@ "fiierul POT.\n" "Dac acesta este -, se va citi intrarea(input) standard.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FIIER scrie output-ul spre fiierul PO specificat\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2303,12 +2296,12 @@ "sau de setrile de localizare ale utilizatorului.\n" "Dac este -, rezultatele vor fi scrise la ieirea(output) standard.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC seteaz localizarea int\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2316,7 +2309,7 @@ " --no-translator se presupune c fiierul PO este generat " "automat\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2324,12 +2317,12 @@ "S-a gsit mai mult de un fiier .pot.\n" "Specificai fiierul de intrare .pot prin opiunea --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "eroare n citirea directorului curent" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2337,14 +2330,14 @@ "Nu s-a gsit nici un fiier .pot n directorul curent.\n" "V rugm specificai fiierul de intrare .pot prin opiunea --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "subprocesul %s a euat cu cod de ieire %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2361,26 +2354,26 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traducerea n limba romn pentru pachetul %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "" "setul de caractere prezent \"%s\" nu este un nume de codare(encoding) " "portabil" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "" "dou seturi diferite de caractere \"%s\" i \"%s\" n fiierul de intrare" "(input)" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" @@ -2388,7 +2381,7 @@ "fiierul de intrare(input) `%s' nu conine un header cu specificaie de set " "de caractere" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2397,20 +2390,20 @@ "domeniu \"%s\" din fiierul de intrare `%s' nu conine un header cu o " "specificaie de set de caractere" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "" "setul de caractere int \"%s\" nu este un nume de codare(encoding) portabil." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "avertisment: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2420,7 +2413,7 @@ "printre altele.\n" "Se convertete ieirea(output) n UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2435,7 +2428,7 @@ "opiunea\n" "--to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2444,7 +2437,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2457,12 +2450,12 @@ "Output-ul lui '%s' poate fi incorect.\n" "Rezolvri(workadrounds) posibile sunt:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Setare LC_ALL la o localizare cu codare(encoding) %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2473,7 +2466,7 @@ " dup care se aplic '%s',\n" " i apoi reconvertire n %s folosind 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2486,7 +2479,7 @@ " apoi aplicarea '%s',\n" " dup care se reconvertete n %s folosind 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2498,78 +2491,78 @@ "Output-ul lui '%s' poate fi incorect.\n" "O posibil soluie(workaround) este setarea LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "expresiile plurale pot produce valori negative" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu dar expresiile plurale pot produce valori pn la %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "expresia plural poate produce mprire la zero" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "plural expression can produce depire(overflow) de ntreg(integer)" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" "expresia plural poate produce excepii aritmetice, posibil mprire la zero" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "ncercai s folosii urmtoarele, valide pentru %s:\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "catalogul de mesaje are traduceri n forme plurale..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...dar header-ului i lipsete atributul \"plural=EXPRESSION\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...dar header-ului i lipsete atributul \"plural=INTEGER\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "valoare nplurals invalid" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "expresie plural invalid" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "...dar cteva mesaje au doar o singur form plural" msgstr[1] "...dar cteva mesaje au doar %lu forme plurale" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "...dar cteva mesaje au o singur form plural" msgstr[1] "...dar cteva mesaje au %lu forme plurale" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2577,84 +2570,85 @@ "catalogul de mesaje are traduceri de form plural, dar i lipsete un " "header cu\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "intrrile `msgid' i `msgid_plural' nu ncep amndou cu '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "intrrile `msgid' i `msgstr[%u]' nu ncep amndou cu '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "intrrile `msgid' i `msgstr' nu ncep amndou cu '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "intrrile `msgid' i `msgid_plural' nu se termin amndou cu '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "intrrile `msgid' i `msgstr[%u]' nu se termin amndou cu '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "intrrile `msgid' i `msgstr' nu se termin amndou cu '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "manipularea de plurale este o extensie a GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr nu are marcaj de accelerator de tastatur '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr are prea multe marcaje de acceleratoare tastatur '%c'" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "cmpul header '%s' lipsete din header\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "cmpul header `%s' ar trebui s nceap la nceputul liniei\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" "cteva cmpuri de header ar trebui s aib valoare implicit iniial\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "cmpul `%s' nc are valoarea implicit iniial\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "" +"cteva cmpuri de header ar trebui s aib valoare implicit iniial\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "eroare n timpul deschiderii \"%s\" pentru citire" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "" "fiierul de intrare(input) nu conine un header cu specificaia unui set de " "caractere" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2663,7 +2657,7 @@ "Nu se poate converti din \"%s\" n \"%s\". %s se bazeaz pe inconv(), iar " "iconv() nu suport aceast conversie." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2672,8 +2666,8 @@ "Conversia din \"%s\" n \"%s\" introduce duplicate: anumite msgid-uri " "diferite devin egale." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2682,16 +2676,16 @@ "Nu se poate converti din \"%s\" n \"%s\". %s se bazeaz pe iconv(). Aceast " "versiune a fost construit(built) fr inconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s e valid doar cu %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "tip de backup" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2715,17 +2709,17 @@ "exact, se va folosi potrivirea aproximativ(fuzzy) pentru a produce rezultate\n" "mai bune.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po traducerile referitoare la surse vechi\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot referine la surse noi\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2735,7 +2729,7 @@ "mesaje,\n" " poate fi specificat de mai multe ori\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2745,27 +2739,27 @@ " nu face nimic dac def.po este deja adus la " "zi\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Locaie fiiere de ieire(output) n modul aducerii la zi(update):\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Rezultatele vor fi scrise n def.po:\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL se creaz un backup al def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFIX suprascrie sufixul obinuit de backup\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2785,7 +2779,7 @@ " existing, nil numerotate dac exist backup-uri, simple n caz contrar\n" " simple, never creaz ntotdeauna backup-uri simple\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2796,13 +2790,7 @@ "cu\n" "variabila de mediu SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching nu folosete potrivire aproximativ(fuzzy)\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2810,22 +2798,22 @@ " --translated pstreaz pe cele traduse, terge mesajele " "netraduse\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent suprim indicatorii de progres\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "acest mesaj ar trebui s defineasc formele plurale" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "acest mesaj nu ar trebui s defineasc formele plurale" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2834,26 +2822,28 @@ "%sCitite %ld vechi + %ld referine, unite %ld, aproximri %ld, lips %ld, " "nvechite %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " efectuat.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s i numele de fiiere explicite se exclud reciproc" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Folosire: %s [OPIUNE] [FIIER]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Convertete catalogul de mesaje binar n fiier .po stil Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2862,14 +2852,14 @@ " -j, --java mod Java: intrarea(input) este o clas Java\n" "ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, fuzzy, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --tcl mod Tcl: intrarea(input) este un fiier tcl/" "msgcat .msg\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, fuzzy, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2878,7 +2868,7 @@ " --tcl mod Tcl: intrarea(input) este un fiier tcl/" "msgcat .msg\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2886,17 +2876,17 @@ " --tcl mod Tcl: intrarea(input) este un fiier tcl/" "msgcat .msg\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FIIER ... fiiere de intrare(input) .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Locaie fiiere intrare n mod Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2907,12 +2897,12 @@ "resursei, separat de liniu_jos(underscore). Clasa e localizat folosind " "CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, fuzzy, c-format msgid "Input file location in C# mode:\n" msgstr "Locaie fiiere intrare n mod Tcl:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, fuzzy, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2922,12 +2912,12 @@ "directorul\n" "specificat.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Locaie fiiere intrare n mod Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2937,18 +2927,18 @@ "directorul\n" "specificat.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent scrie fiierul .po folosind stil indentat\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict scrie strict fiiere conforme Uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2970,12 +2960,12 @@ "Poziiile din fiier vor fi cumulate. Dac se folosete opiunea --unique,\n" "duplicatele vor fi omise.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated afieaz doar duplicatele\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2984,7 +2974,7 @@ " -u, --unique afieaz doar mesajele unice, omind " "duplicatele\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3073,65 +3063,65 @@ msgid "plural form has wrong index" msgstr "forma plural are index greit" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "prea multe erori, se renun" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "secven multibyte invalid" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "secven multibyte incomplet la sfritul fiierului" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "secven multibyte incomplet la sfritul liniei" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "eroare iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "cuvntul cheie \"%s\" este necunoscut" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "secven de control invalid" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "sfrit de fiier n ir" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "sfrit de linie n ir" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "acest fiier poate s nu conin directive de domeniu" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "definiie duplicat de mesaj" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...aceasta este locaia primei definiii" @@ -3222,17 +3212,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "eroare n timpul deschiderii \"%s\" pentru citire" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "se ateptau dou argumente" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Folosire: %s [OPIUNE] URL FIIER\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3241,11 +3231,26 @@ "Aduce(fetches) i afieaz(outputs) coninutul unui URL. Dac URL-ul nu poate\n" "fi accesat, se va folosi n loc FIIERul accesibil local.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "eroare n scrierea stdout" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 #, fuzzy msgid "" @@ -3291,47 +3296,47 @@ "catalogul de mesaje are traduceri n form plural, dar formatul de ieire" "(output) nu le suport." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "nu se poate crea fiierul de ieire(output) \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "ieire(output) standard" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr "eroare n crearea \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, fuzzy, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" "compilarea clasei Java a euat, v rugm ncercai --verbose sau setai " "$JAVAC" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "" "compilarea clasei Java a euat, v rugm ncercai --verbose sau setai " "$JAVAC" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "nu este un nume valid de clas Java: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "compilarea clasei Java a euat, v rugm ncercai --verbose sau setai " "$JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3343,14 +3348,14 @@ msgid "error while opening \"%s\" for writing" msgstr "eroare n deschiderea \"%s\" pentru scriere" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "mesajele internaionalizate nu ar trebui s conin secvena de escape `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3365,7 +3370,7 @@ "pur ASCII n loc.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3391,13 +3396,13 @@ #: src/write-qt.c:693 #, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"catalogul de mesaje are iruri msgid care conin caractere din afara ISO-" -"8859-1\n" +"catalogul de mesaje are iruri msgid care conin caractere din afara " +"ISO-8859-1\n" "dar formatul catalogului de mesaje Qt suport Unicode doar n irurile " "traduse,\n" "nu i in cele netraduse.\n" @@ -3408,8 +3413,8 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" -"catalogul de mesaje are iruri msgid care conin caractere din afara ISO-" -"8859-1\n" +"catalogul de mesaje are iruri msgid care conin caractere din afara " +"ISO-8859-1\n" "dar formatul catalogului de mesaje Qt suport Unicode doar n irurile " "traduse,\n" "nu i in cele netraduse.\n" @@ -3419,7 +3424,7 @@ msgid "error while writing to %s subprocess" msgstr "eroare n scrierea fiierului \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" @@ -3428,7 +3433,7 @@ "catalogul de mesaje are traduceri n form plural,\n" "dar formatul catalogului de mesaje Qt nu suport manipularea pluralelor\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 #, fuzzy msgid "" "message catalog has plural form translations\n" @@ -3454,36 +3459,34 @@ "catalogul de mesaje are traduceri n form plural,\n" "dar formatul catalogului de mesaje Tcl nu suport manipularea pluralelor\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: avertisment: ir neterminat" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: avertisment: expresie regulat neterminat" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: avertisment: constant caracter neterminat" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: avertisment: ir literal neterminat" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3492,7 +3495,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3501,7 +3504,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3510,7 +3513,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3519,12 +3522,12 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, fuzzy, c-format msgid "%s:%d: iconv failure" msgstr "eroare iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3533,32 +3536,32 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: avertisment: caracter Unicode invalid" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, fuzzy, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: avertisment: ir neterminat" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: avertisment: s-a gsit ')' unde se atepta '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: avertisment: s-a gsit '}' unde se atepta ')'" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, fuzzy, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%d:%d: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3567,58 +3570,57 @@ "Limbajul \"glade\" nu este suportat. %s se bazeaz pe expat.\n" "Aceast versiune a fost construit fr expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: avertisment: ir neterminat" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: nu se poate gsi terminatorul de ir \"%s\" oriunde nainte de EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: lipsete acolad dreapt n \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: interpolare invalid (\"\\l\") a caracterului pe 8bii \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: interpolare invalid (\"\\u\") a caracterului pe 8bii \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: interpolare invalid de variabil la \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: interpolare invalid (\"\\L\") a caracterului pe 8bii \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: interpolare invalid (\"\\U\") a caracterului pe 8bii \"%c\"" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3628,7 +3630,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3638,7 +3640,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3648,7 +3650,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3658,7 +3660,7 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3668,27 +3670,27 @@ "ir non-ASCII la %s%s.\n" "V rugm specificai sursa codrii(encoding) prin --from-code.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: definiie invalid de ir" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: lipsete numr dup #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: expresie ir invalid" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3697,30 +3699,30 @@ "%s:%lu: avertisment: sintaxa $\"...\" nu se mai folosete din motive de " "securitate; nlocuii cu eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing nu poate fi folosit cnd output-ul este scris la stdout" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext nu poate funciona fr cuvinte cheie dup care s caute" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "avertisment: fiierul `%s' extensia `%s' este necunoscut(); se va ncerca C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "" "Extrage irurile traductibile din fiierele de intrare(input) specificate.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3729,13 +3731,13 @@ " -d, --default-domain=NUME folosete NUME.po pentru output \n" "(n loc de messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" " -o, --output=FIIER scrie output-ul n fiierul specificat\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3744,12 +3746,12 @@ "n \n" "directorul DIR\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Alegerea limbajul fiierelor de intrare(input):\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, fuzzy, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3767,12 +3769,12 @@ " JavaProperties, awk, YCP, Tcl, Perl, PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ scurttur pentru --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3782,7 +3784,7 @@ "intrare \n" "(input)\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3791,29 +3793,32 @@ " --from-code=NUME codare pentru fiierele de intrare(input)\n" " (exceptnd Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Implicit fiierele de intrare(input) sunt presupuse a fi n ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing altur mesajele fiierului existent\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=FIIER.po intrrile din FIIER.po nu vor fi " "extrase\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ETICHET] plaseaz blocul de comentarii cu\n" " ETICHET (sau pe acelea care preced liniile " @@ -3821,17 +3826,17 @@ " cuvinte cheie) n fiierul de ieire" "(output)\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Opiuni specifice limbajului:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extrage toate irurile\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3843,18 +3848,18 @@ " Python, Lisp, EmacsLisp, librep, Java, awk,\n" " Tcl, Perl, PHP, GCC-surs, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=CUVNT] cuvinte cheie de cutat (fr\n" " CUVNT nseamn neutilizarea " "cuvintelor_cheie\n" " implicite)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3865,7 +3870,7 @@ "argumentul\n" " numrul ARG al cuvntului cheie CUVNT\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3877,7 +3882,7 @@ " Python, Lisp, EmacsLisp, librep, Java, awk,\n" " YCP, Tcl, Perl, PHP, GCC-surs)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" @@ -3885,32 +3890,32 @@ "pentru intrare\n" " (input)\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (doar limbajele C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt recunoate formatul irurilor Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (doar limbajul C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt recunoate formatul irurilor Qt\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr " --qt recunoate formatul irurilor Qt\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3918,19 +3923,19 @@ " --debug rezultat mai detaliat al recunoaterii " "formatstring\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output scrie un fiier .properties Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=IR seteaz deintorul copyright-ului la ieire" "(output)\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3938,19 +3943,19 @@ " --foreign-user omite copyright FSF la ieire pentru user " "strin(foreign)\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --copyright-holder=IR seteaz deintorul copyright-ului la ieire" "(output)\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3958,42 +3963,59 @@ " --msgid-bugs-address=EMAIL@ADRES seteaz adresa de reportare a\n" "bug-urilor msgid\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=IR] folosete IR sau \"\" ca prefix pentru " "intrrile msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=IR] folosete IR sau \"\" ca suefix pentru " "intrrile msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Un argument --flag nu are sintaxa ::[pass-] : %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "intrare(input) standard" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: avertisment: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -4002,16 +4024,16 @@ "Dei este folosit ntr-o poziie de format a irului, %s nu este un format\n" "al irului valid %s. Motiv: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Dei este declarat astfel, %s nu este un format al irului valid %s: Motiv:\n" "%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4020,7 +4042,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -4030,27 +4052,27 @@ "gettext(\"\") returneaz header-ul cu informaii\n" "meta, nu cu irul vid.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "parametru ambiguu `%s' pentru `%s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, fuzzy, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "parametru ambiguu `%s' pentru `%s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, fuzzy, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "parametru ambiguu `%s' pentru `%s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4062,7 +4084,7 @@ "aici variabila MSGID_BUGS_ADDRESS; n caz contrar\n" "v rugm specificai optiunea --msgid-bugs-address n linia de comand.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "limbajul `%s' este necunoscut" @@ -4071,6 +4093,30 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: opiune ilegal -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle a euat cu cod de eroare 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Neimplimentat nc." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "nu se poate seta I/O neblocant pentru subprocesul %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "comunicaia cu subprocesul %s a euat" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "citirea din subprocesul %s a euat" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "subprocesul %s s-a terminat cu cod de ieire %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "cmpul `%s' nc are valoarea implicit iniial\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Referine multiple la % % %c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/ru.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/ru.gmo differ diff -Nru gettext-0.17/gettext-tools/po/Rules-quot gettext-0.18.1.1/gettext-tools/po/Rules-quot --- gettext-0.17/gettext-tools/po/Rules-quot 2004-01-16 15:45:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/Rules-quot 2010-06-06 12:49:57.000000000 +0000 @@ -20,7 +20,7 @@ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ - if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ + if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff -Nru gettext-0.17/gettext-tools/po/ru.po gettext-0.18.1.1/gettext-tools/po/ru.po --- gettext-0.17/gettext-tools/po/ru.po 2007-11-02 02:23:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/ru.po 2010-06-06 12:49:58.000000000 +0000 @@ -6,15 +6,16 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-06-14 10:41+0400\n" "Last-Translator: Oleg S. Tihonov \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=koi8-r\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #: gnulib-lib/argmatch.c:133 #, c-format @@ -31,22 +32,22 @@ msgid "Valid arguments are:" msgstr " :" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr " , $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr " \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr " %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr " %s" @@ -55,44 +56,44 @@ msgid "write error" msgstr " " -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr " \"%s\" " -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr " \"%s\" " -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr " \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr " \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr " \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr " fdopen() " -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr " C#, pnet" @@ -102,74 +103,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr " C#, pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr " " -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr " %s " -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s'\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' \n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' \n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' c \n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: %c c \n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s'\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' \n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' c \n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -181,20 +181,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr " target_version compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr " \"%s\" " -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr " \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -207,20 +207,20 @@ " Java, gij " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr " / %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr " " -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -239,72 +239,71 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr " DuplicateHandle 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr " _open_osfhandle " -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr " \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr " %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr " %s %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "'%s' %s 'msgid'. " ": %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr " 'msgid' '%u' '%s'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr " %u '%s' " -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr " `msgid' `%s' %u" #: src/format-boost.c:449 @@ -334,9 +333,9 @@ msgstr "" " %u, %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr " `msgid' `%s'" #: src/format-csharp.c:88 src/format-java.c:205 @@ -378,17 +377,17 @@ msgid "The string contains a lone '}' after directive number %u." msgstr " '}' %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr " %u ." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr " %u '%c' ." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -396,31 +395,31 @@ msgstr "" " %u %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr " %u '%c' ." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr " %u ." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr " %u '%c' ." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr " 'msgid' %%m, '%s' " -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr " 'msgid' %%m, '%s' " #: src/format-invalid.h:22 @@ -520,21 +519,20 @@ "'<', '#' '%s'." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr " '%u' 'msgid' '%s'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr " {%u} '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr " 'msgid' '%s' {%u}" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -550,11 +548,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -602,13 +600,13 @@ msgstr " - ." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr " `msgid' `%s' " #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" " '%s' " "'msgid' " @@ -622,12 +620,12 @@ " %u " " '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr " '%s' '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -635,43 +633,40 @@ " , " " ." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr " '%s' ." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr " 'msgid' , '%s' -- " -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr " 'msgid' , '%s' -- " -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr " 'msgid' '%s', '%s'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr " 'msgid' '%s' %s" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -714,11 +709,11 @@ "1 and 9." msgstr ", %u 1 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -727,38 +722,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr " -- %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr " " -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr " " -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr " `%s --help' .\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr ": %s []\n" @@ -794,29 +789,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address \n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr " :\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help \n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version \n" @@ -825,11 +820,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr " .\n" @@ -838,30 +833,30 @@ msgid "could not get host name" msgstr " " -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr " " -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s %s " -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr ": %s [] [-]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -870,64 +865,64 @@ " \n" " .\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" ", , .\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr " :\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " - PO-\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory= \n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" " -, .\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr " :\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file= \n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -936,12 +931,12 @@ " , \n" " -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr " :\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -949,7 +944,7 @@ " --translated , " "\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -957,63 +952,63 @@ " --untranslated , " "\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy ''\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy ''\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr "" " --no-obsolete , ''\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr "" " --only-obsolete , ''\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr " :\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy ''\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy ''\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete ''\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete ''\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr " --clear-previous ' msgid'\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" @@ -1021,7 +1016,7 @@ " --only-file=.po , ." "po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1029,36 +1024,36 @@ " --ignore-file=.po , ." "po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr " :\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input Java .properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1067,17 +1062,35 @@ " --stringtable-input NeXTstep/GNUstep ." "strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr " :\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1086,9 +1099,9 @@ " escape- C ( " ")\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1096,28 +1109,28 @@ " -E, --escape escape-, \n" " \n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po PO-, \n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent PO-, \n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location '#: :'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1125,8 +1138,8 @@ " -n, --add-location '#: :' ( " ")\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1135,32 +1148,32 @@ "\n" " Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output .properties- Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output .strings- NeXTstep/GNUstep\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width= \n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1169,31 +1182,31 @@ " --no-wrap , \n" " \n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output \n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file \n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr " (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr ": %s [] [-]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1217,24 +1230,24 @@ " . , \n" " PO-.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " -... \n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from= \n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr " -, .\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1245,7 +1258,7 @@ "\n" " )\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1256,7 +1269,7 @@ "\n" " )\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1265,8 +1278,8 @@ " -u, --unique --less-than=2, \n" " \n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1274,8 +1287,8 @@ " -P, --properties-input Java ." "properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1285,12 +1298,12 @@ "GNUstep\n" " .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code= \n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1300,41 +1313,33 @@ "\n" " , \n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr " " -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr " " -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr " " -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr ": %s [] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1352,22 +1357,22 @@ " , \n" " .\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po \n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot \n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr " :\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1375,47 +1380,52 @@ msgstr "" " -m, --multi-domain ref.pot def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching \n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy \n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated \n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr " " -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr " " -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr " , ..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "... " -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr " %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr ": " -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1423,12 +1433,12 @@ msgstr[1] " %d " msgstr[2] " %d " -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr " " -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1448,7 +1458,7 @@ " PO-, . ,\n" " PO-.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1459,41 +1469,41 @@ "\n" " )\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header `msgid \"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr " .\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr " :\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr " .\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent \n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location '#: :'\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1501,30 +1511,30 @@ " --add-location '#: :' ( " ")\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict " "Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr " " -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr " " -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr ": %s [] -\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1537,22 +1547,22 @@ " xgettext). ,\n" " msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " - PO- POT-\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr " " -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr ": %s [] [-]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1567,7 +1577,7 @@ " msgexec. , msgexec --\n" " .\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1576,42 +1586,42 @@ " '0' \n" ". \"msgexec 0\" \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=- PO-\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr " " -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr " %s " -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr " " -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr " sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr ": %s [] [-]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr " .\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1621,18 +1631,18 @@ "\n" " .\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr " - , 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression= \n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1642,14 +1652,14 @@ " -f, --file=- - \n" " \n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent \n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1658,12 +1668,12 @@ " escape- C ( " ")\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent \n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1671,69 +1681,50 @@ " --keep-header , " "\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr " ." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" -" / %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr " %s " - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr " %s " - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr " %s %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr " %s " -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr " " -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s \"-d \"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s \"-l \"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s %s %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s %s, %s %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1741,7 +1732,7 @@ msgstr[1] "%d " msgstr[2] "%d " -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1749,7 +1740,7 @@ msgstr[1] ", %d " msgstr[2] ", %d " -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1757,17 +1748,17 @@ msgstr[1] ", %d " msgstr[2] ", %d " -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr ": %s [] -.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr " .\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1776,17 +1767,17 @@ ", , .\n" " .\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " -.po ... \n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr " :\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1794,7 +1785,7 @@ msgstr "" " -j, --java Java: Java- ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1803,12 +1794,12 @@ " --java2 --java, Java2 (JDK 1.2 " ")\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C#: .dll- .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1817,42 +1808,42 @@ " --csharp-resources C#: .resources- ." "NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl: .msg- tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt: .qm- Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" " -, .\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr " Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource= \n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1860,14 +1851,14 @@ msgstr "" " -l, --locale= , , _\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d \n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1880,12 +1871,12 @@ " . -d . \n" ".\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr " C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1894,7 +1885,7 @@ " -d .dll-" "\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1904,17 +1895,17 @@ " , \n" ".\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr " Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr " -d .msg-\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1923,12 +1914,12 @@ " -l -d . .msg- " ".\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr " :\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1940,13 +1931,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format \n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1954,7 +1945,7 @@ msgstr "" " --check-header \n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1964,7 +1955,7 @@ " \n" " --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1973,7 +1964,7 @@ " -C, --check-compatibility , GNU msgfmt , \n" " X/Open msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1984,13 +1975,13 @@ " \n" " \n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy \n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -1998,89 +1989,89 @@ " -a, --alignment= ( " ": %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash -\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics \n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr "" " -v, --verbose " "\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr ": PO- \n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr ": \n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr ": PO- \n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr ": msgfmt \n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr " \"%s\" " -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" " \"%s\" , \n" " " -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr " `domain %s' " -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr " `msgstr' " -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr " `msgstr' " -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: : " -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr " \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2088,7 +2079,7 @@ msgstr "" " '%c' , 'J', 'K', 'T', 'C' 'X'" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2098,7 +2089,7 @@ " .\n" "\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2185,7 +2176,7 @@ " -v, --invert-match , \n" " \n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2193,17 +2184,17 @@ " --escape escape-, \n" " \n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output \n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file \n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2213,7 +2204,7 @@ " LANG ABOUT-NLS. \n" ", .\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2224,12 +2215,12 @@ ", --locale \n" "po- --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr " %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2238,12 +2229,12 @@ " PO-, \n" " .\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=- POT-\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2253,12 +2244,12 @@ " , .\n" " -, .\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file= \n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2268,12 +2259,12 @@ " . -, \n" " .\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=_ \n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2281,7 +2272,7 @@ " --no-translator , PO- " "\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2289,12 +2280,12 @@ " pot-.\n" ", pot- --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr " " -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2302,14 +2293,14 @@ " pot-.\n" ", pot- --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr " %s %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2325,28 +2316,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr " %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr " \"%s\" " -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr " \"%s\" \"%s\"" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr " `%s' " -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2355,19 +2346,19 @@ " \"%s\" `%s' " "" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr " \"%s\" ." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr ": " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2376,7 +2367,7 @@ " , \n" "UTF-8. UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2384,12 +2375,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -" , %s %" -"s.\n" +" , %s " +"%s.\n" " UTF-8. ,\n" " --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2403,7 +2394,7 @@ "\n" " UTF-8, .\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2415,12 +2406,12 @@ " '%s' .\n" " :\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- LC_ALL %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2431,7 +2422,7 @@ " '%s',\n" " %s 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2444,7 +2435,7 @@ " '%s',\n" " %s 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2455,26 +2446,26 @@ " '%s' .\n" " -- LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr " " -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu, " "%lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr " " -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr " " -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2482,37 +2473,37 @@ " " ", , " -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr " , %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr " " -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr " \"plural=\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr " \"nplurals=\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr " nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr " " -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2520,7 +2511,7 @@ msgstr[1] " %lu " msgstr[2] " %lu " -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2528,7 +2519,7 @@ msgstr[1] " %lu " msgstr[2] " %lu " -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2536,93 +2527,94 @@ " , " " \"Plural-Forms: nplurals=; plural=;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" " `msgid' `msgid_plural' '\\n', " " -- " -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" " `msgid' `msgstr[%u]' '\\n', " "-- " -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "" " `msgid' `msgstr' '\\n', -- " "" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" " `msgid' `msgid_plural' '\\n', " "-- " -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" " `msgid' `msgstr[%u]' '\\n', " "-- " -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "" " `msgid' `msgstr' '\\n', -- " -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr " GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr " msgstr '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr " msgstr '%c'" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr " `%s'\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr " `%s' \n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" " \n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr " `%s' \n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "" +" \n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: \"%s\"" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: \"%s\" \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr " " -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2631,7 +2623,7 @@ " \"%s\" \"%s\". %s iconv(), " "iconv() ." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2640,8 +2632,8 @@ " \"%s\" \"%s\" : " " ." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2650,16 +2642,16 @@ " \"%s\" \"%s\". %s iconv(). " " iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr " " -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2684,18 +2676,18 @@ " , \n" ".\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po , \n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot \n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2705,7 +2697,7 @@ ", \n" " \n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2714,28 +2706,28 @@ " -U, --update def.po,\n" " , def.po \n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr " :\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr " def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup= def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix= \n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2754,7 +2746,7 @@ " simple, never \n" "\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2765,12 +2757,7 @@ " --suffix \n" "SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching \n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2778,22 +2765,22 @@ " --previous msgid " "\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent \n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr " " -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr " " -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2802,26 +2789,28 @@ "%s : %ld + %ld; %ld, " " %ld, %ld, %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " .\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s " -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr ": %s [] []...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr " .po- Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2830,12 +2819,12 @@ " -j, --java Java: Java- " "ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C#: .dll- .NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2844,24 +2833,24 @@ " --csharp-resources C#: .resources- ." "NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl: .msg- tcl/msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " ... .mo-\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr " Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2871,12 +2860,12 @@ " \n" " . CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr " C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2885,12 +2874,12 @@ " -l -d . .dll- \n" " , .\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr " Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2898,19 +2887,19 @@ msgstr "" " -l -d . .msg- .\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent \n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict " "Uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2933,12 +2922,12 @@ " --unique, \n" ".\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated \n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2947,7 +2936,7 @@ " -u, --unique , " "\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "< >" @@ -3033,66 +3022,66 @@ msgid "plural form has wrong index" msgstr " " -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr " , " -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr " " -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr " " -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr " " -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr " iconv " -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr " \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr " " -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr " " -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr " " -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr " " # -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr " " -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr " " -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr " " @@ -3178,17 +3167,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr " \"%s\" \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr " " -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr ": %s [] URL \n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3197,11 +3186,26 @@ " URL. URL \n" " , .\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr " " +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3244,43 +3248,43 @@ " , " " ." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr " \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr " " -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr " \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr " C#- , --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr " C#- , --verbose" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "%s Java" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" " Java- , --verbose " " $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3292,14 +3296,14 @@ msgid "error while opening \"%s\" for writing" msgstr " \"%s\" " -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" " escape- `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3312,7 +3316,7 @@ ", . msgctxt ASCII.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3336,8 +3340,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3360,7 +3364,7 @@ msgid "error while writing to %s subprocess" msgstr " \"%s\"" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3368,7 +3372,7 @@ " , \n" ".resources C# \n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3393,36 +3397,34 @@ " Tcl \n" "\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: : " -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: : " -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: : " -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: : " -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "-ASCII- %s%s.\n" ", --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3431,7 +3433,7 @@ "%s:%d: .\n" ", --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3440,7 +3442,7 @@ "%s:%d: .\n" ", --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3449,7 +3451,7 @@ "%s:%d: .\n" ", --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3458,12 +3460,12 @@ "%s:%d: .\n" ", --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv " -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3472,32 +3474,32 @@ "%s:%d: .\n" ", --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: : Unicode-" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: : " -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: : ')', '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: : '}', ')'" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3506,51 +3508,50 @@ " \"glade\" . %s expat.\n" " expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: : " -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: \"%s\" " -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\l\") \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\u\") \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\L\") \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: (\"\\U\") \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3559,7 +3560,7 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3571,7 +3572,7 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3583,7 +3584,7 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3595,7 +3596,7 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3607,7 +3608,7 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3619,27 +3620,27 @@ "\n" " http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr " \"%s\" . ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: " -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: " -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3648,29 +3649,29 @@ "%s:%lu: : $\"...\" " "; eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" " --join-existing " -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext , " -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" ": `%s' `%s'; C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr " .\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3678,23 +3679,23 @@ msgstr "" " -d, --default-domain= .po ( messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output= \n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir= \n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr " :\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3713,19 +3714,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr " .\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3734,42 +3735,45 @@ " --from-code= \n" " ( Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr " , ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing \n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=.po .po\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=] \n" " ( , \n" " )\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr " :\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all \n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3782,17 +3786,17 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=] (\n" " , \n" " )\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3803,7 +3807,7 @@ "\n" " \n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3816,37 +3820,37 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs ANSI C\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " ( C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " ( C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt Qt\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3854,19 +3858,19 @@ " --debug " "\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output .properties- Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=\n" " \n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3874,19 +3878,19 @@ " --foreign-user " "FSF\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --copyright-holder=\n" " \n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3895,45 +3899,62 @@ " , " "\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=]\n" " \"\" " "msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=]\n" " \"\" " "msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" " --flag <->:<->:" "[pass-]<>: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr " " -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: : " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3942,16 +3963,16 @@ " , , %s " " %s. : %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" " %s %s, " ". : %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3965,7 +3986,7 @@ ", \n" " .\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3975,29 +3996,29 @@ "gettext(\"\") ,\n" " .\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr " '%.*s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr ": '%.*s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" ": " " '%.*s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr " " -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4008,7 +4029,7 @@ "`Makevars', MSGID_BUGS_ADDRESS, \n" " --msgid-bugs-address.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr " `%s' " @@ -4017,6 +4038,33 @@ msgid "" msgstr "< >" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "" +#~ " DuplicateHandle 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr " ." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "" +#~ " / %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr " %s " + +#~ msgid "read from %s subprocess failed" +#~ msgstr " %s " + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr " %s %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "" +#~ " `%s' \n" + #~ msgid "Multiple references to %%%c." #~ msgstr " %%%c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/sk.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/sk.gmo differ diff -Nru gettext-0.17/gettext-tools/po/sk.po gettext-0.18.1.1/gettext-tools/po/sk.po --- gettext-0.17/gettext-tools/po/sk.po 2007-11-02 02:24:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/sk.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,16 +1,18 @@ # Slovak translations for GNU gettext-tools package. -# Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -# Marcel Telka , 2001, 2002, 2003, 2004, 2005. +# Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. # Štefan Ondrejička , 1999. +# Marcel Telka , 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2010. # msgid "" msgstr "" -"Project-Id-Version: GNU gettext-tools 0.14.5\n" +"Project-Id-Version: GNU gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2005-05-23 22:16+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-10 12:48+0200\n" "Last-Translator: Marcel Telka \n" "Language-Team: Slovak \n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,68 +33,68 @@ msgid "Valid arguments are:" msgstr "Platné parametre sú:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "nemôžem nájsť dočasný adresár, skúste nastaviť $TMPDIR" +msgstr "nemožno nájsť dočasný adresár, skúste nastaviť $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "nemôžem vytvoriť dočasný adresár so šablónou \"%s\"" +msgstr "nemožno vytvoriť dočasný adresár so šablónou \"%s\"" -#: gnulib-lib/clean-temp.c:443 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:445 +#, c-format msgid "cannot remove temporary file %s" -msgstr "nie je možné vytvoriť výstupný súbor \"%s\"" +msgstr "nemožno odstrániť dočasný súbor %s" -#: gnulib-lib/clean-temp.c:458 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:460 +#, c-format msgid "cannot remove temporary directory %s" -msgstr "nemôžem vytvoriť dočasný adresár so šablónou \"%s\"" +msgstr "nemožno odstrániť dočasný adresár %s" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "chyba zápisu" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "chyba pri otváraní súboru \"%s\" na čítanie" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" -msgstr "nemôžem otvoriť súbor \"%s\" na zápis" +msgstr "nemožno otvoriť záložný súbor \"%s\" na zápis" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "chyba pri čítaní \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "chyba pri zápise \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "chyba po čítaní \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() zlyhalo" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Kompilátor C# nebol nájdený. Skúste nainštalovať pnet" @@ -102,99 +104,98 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Virtuálny stroj C# nebol nájdený. Skúste nainštalovať pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznáma systémová chyba" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s podproces zlyhal" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: voľba `%s' nie je jednoznačná\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: voľba '%s' nie je jednoznačná\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" -msgstr "%s: voľba `--%s' nepovoľuje parameter\n" +msgid "%s: option '--%s' doesn't allow an argument\n" +msgstr "%s: voľba '--%s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" -msgstr "%s: voľba `%c%s' nepovoľuje parameter\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" +msgstr "%s: voľba '%c%s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: voľba `%s' vyžaduje parameter\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: voľba '--%s' vyžaduje parameter\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: neznáma voľba `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: neznáma voľba '--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: neznáma voľba `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: neznáma voľba '%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: neprípustná voľba -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: neplatná voľba -- '%c'\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: neplatná voľba -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: voľba vyžaduje parameter -- '%c'\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: voľba vyžaduje parameter -- %c\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: voľba '-W %s' nie je jednoznačná\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: voľba `-W %s' nie je jednoznačná\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: voľba '-W %s' nepovoľuje parameter\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: voľba `-W %s' nedovoľuje použitie parametra\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: voľba '-W %s' vyžaduje parameter\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format msgid "invalid source_version argument to compile_java_class" -msgstr "" +msgstr "neplatný parameter source_version pre compile_java_class" #: gnulib-lib/javacomp.c:171 gnulib-lib/javacomp.c:192 #, c-format msgid "invalid target_version argument to compile_java_class" -msgstr "" +msgstr "neplatný parameter target_version pre compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "zlyhalo vytvorenie \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "chyba počas zápisu do súboru \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -207,24 +208,24 @@ "Virtuálny stroj Javy nebol nájdený. Skúste nainštalovať gij alebo nastavte " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "V/V chyba podprocesu %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "pamäť je vyčerpaná" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" -msgstr "nemôžem vytvoriť rúru" +msgstr "nemožno vytvoriť rúru" #. TRANSLATORS: #. Get translations for open and closing quotation marks. @@ -239,77 +240,76 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" -msgstr "" +msgstr "„" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" -msgstr "" +msgstr "“" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle zlyhal s chybovým kódom 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "zlyhalo _open_osfhandle" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "nemožno obnoviť fd %d: zlyhalo dup2" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s podproces" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s podproces dostal kritický signál %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"'%s' nie je platný formátovací reťazec %s, na rozdiel od 'msgid'. Dôvod: %s" +"'%s' nie je platný formátovací reťazec %s, na rozdiel od '%s'. Dôvod: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" -msgstr "formátovacia značka pre parameter %u v '%s' nie je v 'msgid'" - -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" +msgstr "formátovacia značka pre parameter %u v '%s' nie je v '%s'" + +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "formátovacia značka pre parameter %u nie je v '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" -msgstr "formátovacie značky v 'msgid' a '%s' pre parameter %u nie sú rovnaké" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" +msgstr "formátovacie značky v '%s' a '%s' pre parameter %u nie sú rovnaké" #: src/format-boost.c:449 -#, fuzzy, c-format +#, c-format msgid "The directive number %u starts with | but does not end with |." -msgstr "Direktíva číslo %u končí neplatným znakom namiesto '}'." +msgstr "Direktíva číslo %u začína znakom |, ale nekončí znakom |." #: src/format-c.c:181 #, c-format @@ -331,10 +331,10 @@ msgstr "" "Reťazec sa odkazuje na parameter číslo %u, ale ignoruje parameter číslo %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "počet formátovacích značiek v 'msgid' a '%s' sa nezhoduje" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "počet formátovacích značiek v '%s' a '%s' sa nezhoduje" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -374,49 +374,49 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Reťazec obsahuje osamotené '}' po direktíve číslo %u." -#: src/format-gcc-internal.c:253 -#, fuzzy, c-format +#: src/format-gcc-internal.c:255 +#, c-format msgid "In the directive number %u, the flags combination is invalid." -msgstr "V direktíve číslo %u, parameter %d je negatívny." +msgstr "V direktíve číslo %u je neplatná kombinácia príznakov." -#: src/format-gcc-internal.c:290 -#, fuzzy, c-format +#: src/format-gcc-internal.c:292 +#, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." -msgstr "V direktíve číslo %u, príznaky nie sú povolené pred '%c'." +msgstr "V direktíve číslo %u nie je povolená presnosť pred '%c'." -#: src/format-gcc-internal.c:332 -#, fuzzy, c-format +#: src/format-gcc-internal.c:334 +#, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." -msgstr "V direktíve číslo %u, parameter číslo 0 nie je kladné číslo." +msgstr "V direktíve číslo %u sa musí číslo parametra pre presnosť rovnať %u." -#: src/format-gcc-internal.c:396 -#, fuzzy, c-format +#: src/format-gcc-internal.c:398 +#, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." -msgstr "V direktíve číslo %u, príznaky nie sú povolené pred '%c'." +msgstr "V direktíve číslo %u nie je povolené špecifikovať presnosť pred '%c'." -#: src/format-gcc-internal.c:404 -#, fuzzy, c-format +#: src/format-gcc-internal.c:406 +#, c-format msgid "In the directive number %u, the precision specification is invalid." -msgstr "V direktíve číslo %u, parameter %d je negatívny." +msgstr "V direktíve číslo %u je neplatne špecifikovaná presnosť." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." -msgstr "V direktíve číslo %u, príznaky nie sú povolené pred '%c'." +msgstr "V direktíve číslo %u nie sú povolené príznaky pred '%c'." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "'msgid' používa %%m, ale '%s' nie" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "'%s' používa %%m, ale '%s' nie" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "'msgid' nepoužíva %%m, ale '%s' používa %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "'%s' nepoužíva %%m, ale '%s' používa %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -515,20 +515,19 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" -msgstr "formátovacia značka pre parameter {%u} v '%s' nie je v 'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" +msgstr "formátovacia značka pre parameter {%u} v '%s' nie je v '%s'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "formátovacia značka pre parameter {%u} neexistuje v '%s'" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" -msgstr "formátovacie značky v 'msgid' a '%s' pre parameter {%u} nie sú rovnaké" +"format specifications in '%s' and '%s' for argument {%u} are not the same" +msgstr "formátovacie značky v '%s' a '%s' pre parameter {%u} nie sú rovnaké" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -543,20 +542,20 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "V direktíve číslo %u, je zadaných príliš veľa parametrov. Očakávaných " "najviac %u parametrov." msgstr[1] "" -"V direktíve číslo %u, je zadaných príliš veľa parametrov. Očakávaný najviac %" -"u parameter." +"V direktíve číslo %u, je zadaných príliš veľa parametrov. Očakávaný najviac " +"%u parameter." msgstr[2] "" -"V direktíve číslo %u, je zadaných príliš veľa parametrov. Očakávané najviac %" -"u parametre." +"V direktíve číslo %u, je zadaných príliš veľa parametrov. Očakávané najviac " +"%u parametre." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format @@ -604,13 +603,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "formátovacie značky v 'msgid' a '%s' nie sú ekvivalentné" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "formátovacie značky v '%s' a '%s' nie sú ekvivalentné" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "formátovacie značky v '%s' nie sú podmnožinou značiek z 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "formátovacie značky v '%s' nie sú podmnožinou značiek z '%s'" #: src/format-perl.c:433 #, c-format @@ -621,12 +620,12 @@ "V direktíve číslo %u, určenie veľkosti nie je kompatibilné so zadanou " "konverziou '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "formátovacia značka pre parameter '%s' nie je v '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -634,49 +633,48 @@ "Reťazec sa odkazuje na parameter cez meno parametra aj cez nepomenované " "špecifikácie parametra." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "Reťazec sa odkazuje na argument pomenovaný '%s' nekompatibilnými spôsobmi." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"formátovacie značky v 'msgid' predpokladajú mapovanie, ale značky v '%s' " +"formátovacie značky v '%s' predpokladajú mapovanie, ale značky v '%s' " "predpokladajú tuple" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"formátovacie značky v 'msgid' predpokladajú tuple, ale značky v '%s' " +"formátovacie značky v '%s' predpokladajú tuple, ale značky v '%s' " "predpokladajú mapovanie" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" -msgstr "formátovacia značka pre parameter '%s' v '%s' nie je v 'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" +msgstr "formátovacia značka pre parameter '%s' v '%s' nie je v '%s'" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" -msgstr "formátovacie značky v 'msgid' a '%s' pre parameter '%s' nie sú rovnaké" +"format specifications in '%s' and '%s' for argument '%s' are not the same" +msgstr "formátovacie značky v '%s' a '%s' pre parameter '%s' nie sú rovnaké" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'%s' je reťazec s jednoduchým formátom, ale '%s' nie je: obsahuje príznak " +"'L' alebo dvojmiestne číslo parametra" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -718,11 +716,11 @@ "1 and 9." msgstr "Znak, ktorý ukončuje direktívu číslo %u nie je číslica medzi 1 a 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -730,39 +728,43 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" - -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +"Autorské práva (C) %s Free Software Foundation, Inc.\n" +"Licencia GPLv3+: GNU GPL verzia 3 alebo novšia \n" +"Toto je voľne šíriteľný softvér: môžete ho voľne meniť a ďalej šíriť.\n" +"Neposkytuje sa ŽIADNA ZÁRUKA, v rozsahu povolenom zákonmi.\n" + +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Napísal %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" -msgstr "" +msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "príliš veľa parametrov" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Skúste `%s --help' a dozviete sa viac informácií.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Použitie: %s [VOĽBA]\n" @@ -798,29 +800,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address adresy pre meno hostiteľa\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informatívny výstup:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help zobraziť túto nápovedu a skončiť\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version zobraziť informáciu o verzii a skončiť\n" @@ -829,11 +831,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" "Správy o chybách zasielajte na adresu (iba " @@ -846,30 +848,30 @@ msgid "could not get host name" msgstr "Nemôžem získať meno hostiteľa" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "povolený najviac jeden vstupný súbor" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s a %s sa navzájom vylučujú" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Použitie: %s [VOĽBA] [VSTUPNÝSÚBOR]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -878,32 +880,32 @@ "Filtruje správy z prekladového katalógu podľa ich vlastností a mení tieto\n" "vlastnosti.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "Povinné parametre pre dlhé voľby sú povinnými aj pre skrátené voľby.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Umiestnenie vstupného súboru:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " VSTUPNÝSÚBOR vstupný PO súbor\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -911,31 +913,31 @@ " -D, --directory=ADRESÁR pridať ADRESÁR do zoznamu pre vyhľadávané\n" " vstupné súbory\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Ak nie je zadaný vstupný súbor alebo je -, je načítaný štandardný vstup.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Umiestnenie výstupného súboru:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=SÚBOR zapísať výstup do zadaného súboru\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -944,12 +946,12 @@ "Výsledky sú zapísané na štandardný výstup ak nie je zadaný výstupný súbor\n" "alebo ak je -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Výber správy:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -957,7 +959,7 @@ " --translated zachovať preložené, odstrániť nepreložené " "správy\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -965,82 +967,83 @@ " --untranslated zachovať nepreložené, odstrániť preložené " "správy\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy odstrániť nepresné preklady\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy zachovať nepresné preklady\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete odstrániť zastarané správy označené #~\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete zachovať zastarané správy označené #~\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Úprava vlastností:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy nastaviť všetky správy ako nepresné\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy nastaviť všetky správy ako nie nepresné\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete nastaviť všetky správy ako zastarané\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete nastaviť všetky správy ako nie zastarané\n" -#: src/msgattrib.c:449 -#, fuzzy, c-format +#: src/msgattrib.c:461 +#, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr "" -" --clear-fuzzy nastaviť všetky správy ako nie nepresné\n" +" --clear-previous odstrániť \"predchádzajúce msgid\" zo všetkých " +"správ\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=SÚBOR.po spracovať len položky uvedené v SÚBOR.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=SÚBOR.po spracovať len položky neuvedené v SÚBOR.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy synonymum pre --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" @@ -1048,24 +1051,24 @@ " --obsolete synonymum pre --only-obsolete --clear-" "obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Syntax vstupného súboru:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input vstupný súbor má syntax Java .properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1074,17 +1077,40 @@ " --stringtable-input vstupný súbor má syntax NeXTstep/GNUstep ." "strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Podrobnosti výstupu:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color vždy použiť farby a ostatné vlastnosti textu\n" +" --color=KEDY KEDY použiť farby a ostatné vlastnosti textu.\n" +" KEDY môže byť 'always' (vždy), " +"'never' (nikdy),\n" +" 'auto' (automaticky) alebo 'html'.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr " --style=SÚBORŠTÝLU zadať pravidlo štýlu CSS pre --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1092,9 +1118,9 @@ " -e, --no-escape nepoužiť na výstupe riadiace sekvencie\n" " jazyka C (predvolené)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1103,29 +1129,29 @@ "C,\n" " bez rozšírených znakov\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po zapísať súbor PO, aj keď bude prázdny\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent zapísať .po súbor s použitím odsadzovania\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location nezapisovať riadky '#: meno_súboru:riadok'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1133,41 +1159,41 @@ " -n, --add-location generovať riadky '#: meno_súboru:riadok'\n" " (predvolené)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" -" --strict zapísať .po súbor presne doržiavajúci štýl\n" +" --strict zapísať .po súbor presne dodržiavajúci štýl\n" " Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output zapísať Java súbor .properties\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output zapísať súbor NeXTstep/GNUstep .strings\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=ČÍSLO nastaviť šírku výstupnej strany\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1176,32 +1202,32 @@ " --no-wrap nezalamovať riadky správ dlhšie ako šírka\n" " výstupnej strany do viacerých riadkov\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output generovať utriedený výstup\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file utriediť výstup podľa umiestnenia v súboroch\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "je uvedené nepovolené kritérium výberu (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Použitie: %s [VOĽBA] [VSTUPNÝSÚBOR]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1224,24 +1250,24 @@ "zabezpečí ich zachovanie iba z prvého PO súboru, ktorý ich definuje.\n" "Pozície v zdrojových súboroch budú zlúčené zo všetkých PO súborov.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " VSTUPNÝSÚBOR ... vstupné súbory\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=SÚBOR získať zoznam vstupných súborov zo SÚBORu\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Ak je vstupný súbor -, načítaný je štandardný vstup.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1250,7 +1276,7 @@ " -<, --less-than=POČET vypísať správy, ktoré sú definované menej ako\n" " POČET-krát, štandardne nastavené na nekonečno\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1259,7 +1285,7 @@ " ->, --more-than=POČET vypísať správy, ktoré sú defineované viac\n" " ako POČET-krát, štandardne nastavené na 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1268,16 +1294,16 @@ " -u, --unique skratka pre --less-than=2, nastavuje výpis\n" " len unikátnych správ\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input vstupné súbory májú syntax Java .properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1286,12 +1312,12 @@ " --stringtable-input vstupné súbory majú syntax NeXTstep-GNUstep\n" " .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NÁZOV kódovanie pre výstup\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1301,41 +1327,34 @@ "správu,\n" " nezlučovať viacero prekladov\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" +" --lang=NÁZOVKATALÓGU nastaviť pole 'Language' v položke hlavička\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" -msgstr "" +msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "neboli zadané vstupné súbory" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "potrebné sú presne 2 vstupné súbory" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Použitie: %s [VOĽBA] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1349,25 +1368,25 @@ "skupinu reťazcov msgid. Súbor def.po je existujúci PO súbor s prekladmi. Súbor\n" "ref.po je najnovší PO súbor alebo šablóna PO (väčšinou vytvorený programom\n" "xgettext). Používa sa na kontrolu, či už sú preložené všetky správy z programu.\n" -"Keď nie je možné nájsť presnú zhodu, je použitý fuzzy algoritmus, ktorý\n" +"Keď nemožno nájsť presnú zhodu, je použitý fuzzy algoritmus, ktorý\n" "umožňuje lepšiu kontrolu zhody.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po preklady\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot odkazy na zdrojové súbory\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modifikátory operácie:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1375,49 +1394,54 @@ msgstr "" " -m, --multi-domain použije ref.pot na všetky domény v def.po\n" -#: src/msgcmp.c:232 -#, fuzzy, c-format +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" +" -N, --no-fuzzy-matching nepoužiť algoritmus pre nájdenie nepresných\n" +" prekladov\n" + +#: src/msgcmp.c:245 +#, c-format msgid " --use-fuzzy consider fuzzy entries\n" -msgstr " -f, --use-fuzzy použiť nepresné preklady vo výstupe\n" +msgstr " --use-fuzzy brať do úvahy nepresné preklady\n" -#: src/msgcmp.c:234 -#, fuzzy, c-format +#: src/msgcmp.c:247 +#, c-format msgid " --use-untranslated consider untranslated entries\n" -msgstr "" -" --untranslated zachovať nepreložené, odstrániť preložené " -"správy\n" +msgstr " --untranslated brať do úvahy nepreložené preklady\n" -#: src/msgcmp.c:309 -#, fuzzy, c-format +#: src/msgcmp.c:324 +#, c-format msgid "this message is untranslated" -msgstr "upozornenie: táto správa nie je použitá" +msgstr "táto správa je nepreložená" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" -msgstr "" +msgstr "táto správa musí byť skontrolovaná prekladateľom" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "táto správa je použitá, ale nie je definovaná..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...ale táto definícia je podobná" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "táto správa je použitá, ale nie je definovaná v %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "upozornenie: táto správa nie je použitá" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1425,12 +1449,12 @@ msgstr[1] "nájdená %d závažná chyba" msgstr[2] "nájdené %d závažné chyby" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "musia byť uvedené minimálne dva súbory" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1450,7 +1474,7 @@ "komentáre budú zachované iba z prvého PO súboru, v ktorom sú definované.\n" "Pozície v zdrojových súboroch budú zlúčené zo všetkých PO súborov.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1459,42 +1483,42 @@ " ->, --more-than=POČET vypísať správy, ktoré sú defineované viac\n" " ako POČET-krát, štandardne nastavené na 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header nezapisovať hlavičku s položkou `msgid \"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Konvertovať prekladový katalóg do iného kódovania znakov.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Cieľ konverzie:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" -msgstr "Predvolené kódovanie je kódovanie aktuálneho národného prostreda.\n" +msgstr "Predvolené kódovanie je kódovanie aktuálneho národného prostredia.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent výstup s použitím odsadzovania\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location nezapisovať riadky '#: meno_súboru:riadok'\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1502,28 +1526,28 @@ " --add-location zachovať riadky '#: meno_súboru:riadok'\n" " (predvolené)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict presné dodržiavanie štýlu Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "nie sú zadané vstupné súbory" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "potrebné je presne jeden vstupný súbor" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Použitie: %s [VOĽBA] VSTUPNÝSÚBOR\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1536,22 +1560,22 @@ "programom xgettext). Nepreloženým položkám je priradený preklad\n" "zhodný s msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " VSTUPNÝSÚBOR vstupný PO alebo POT súbor\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "chýbajúci názov príkazu" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Použitie: %s [VOĽBA] PRÍKAZ [VOĽBA-PRÍKAZU]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1566,7 +1590,7 @@ "bude aj výstupom programu msgexec. Návratová hodnota programu msgexec je\n" "maximum návratových hodnôt všetkých spustení príkazu.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1575,42 +1599,42 @@ "Špeciálny vstavaný príkaz s názvom '0' vypisuje preklad nasledovaný nulovým\n" "bajtom. Výstup príkazu \"msgexec 0\" je použiteľný ako vstup pre \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=VSTUPNÝSÚBOR vstupný PO súbor\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "zápis na štandardný výstup zlyhal" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "zápis do podprocesu %s zlyhal" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "chýbajúci názov filtra" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "musí byť uvedený aspoň jeden sed skript" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Použitie: %s [VOĽBA] FILTER [VOĽBA-FILTRA]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Aplikovať filter na všetky preklady prekladového katalógu.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1620,18 +1644,18 @@ "vstupu\n" "a zapisuje upravené preklady na štandardný výstup.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Užitočné VOĽBY-FILTRA keď je použitý FILTER 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=SKRIPT pridať SKRIPT k vykonávaným príkazom\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1642,14 +1666,14 @@ "výkonávaným\n" " príkazom\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent potlačiť automatickú tlač priestoru vzorov\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1657,12 +1681,12 @@ " --no-escape nepoužiť na výstupe riadiace sekvencie\n" " jazyka C (predvolené)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent výstup s použitím odsadzovania\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1670,68 +1694,50 @@ " --keep-header zachovať položku hlavičky nezmenenú,\n" " neodfiltrovať ju\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Ešte nie je implementované." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "nemôžem nastaviť neblokujúce V/V na podproces %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "komunikácia s podprocesom %s zlyhala" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "čítanie z podprocesu %s zlyhalo" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "podproces %s bol ukončený s ukončovacím kódom %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "parameter pre %s by malo byť len jedno interpunkčné znamienko" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" -msgstr "" +msgstr "neplatné poradie bajtov: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" -msgstr "" +msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s vyžaduje špecifikáciu \"-d adresár\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s vyžaduje špecifikáciu \"-l národné prostredie\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s je platné len s %s alebo %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s je platné len s %s, %s alebo %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1739,7 +1745,7 @@ msgstr[1] "%d preložená správa" msgstr[2] "%d preložené správy" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1747,7 +1753,7 @@ msgstr[1] ", %d nepresný preklad" msgstr[2] ", %d nepresné preklady" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1755,17 +1761,17 @@ msgstr[1] ", %d nepreložená správa" msgstr[2] ", %d nepreložené správy" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Použitie: %s [VOĽBA] menosúboru.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Generovať binárny katalóg správ z textového popisu prekladu.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1774,17 +1780,17 @@ "Povinné parametre dlhých volieb sú povinné aj pre krátke voľby.\n" "Podobne aj pre voliteľné parametre.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " menosúboru.po ... vstupné súbory\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Mód činnosti:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1793,7 +1799,7 @@ " -j, --java mód Java: generovať triedu Java " "ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1803,12 +1809,12 @@ "alebo\n" " vyššie)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp mód C#: generovať .dll súbor pre .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1817,40 +1823,40 @@ " --csharp-resources režim zdrojov C#: generovať .resources súbor " "pre .NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl mód Tcl: generovať súbor .msg tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt mód Qt: generovať Qt súbor .qm\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict povoliť presne dodržaný mód Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Ak je výstupný súbor -, výstup je zapísaný na štandardný výstup.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Umiestnenie výstupného súboru v móde Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=ZDROJ názov zdroja\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1859,14 +1865,14 @@ " -l, --locale=N_PROSTREDIE názov národného prostredia, buď jazyk alebo\n" " jazyk_KRAJINA\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d ADRESÁR základný adresár adresárov hierarchie tried\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1878,12 +1884,12 @@ "oddelené znakom \"_\". Voľba -d je povinná. Trieda je zapísaná do zadaného\n" "adresára.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Umiestnenie výstupného súboru v režime C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1892,7 +1898,7 @@ " -d ADRESÁR základný adresár pre lokálne závislé .dll " "súbory\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1902,17 +1908,17 @@ "adresára,\n" "ktorého názov závisí od národného prostredia.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Umiestnenie výstupného súboru v móde Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr " -d ADRESÁR základný adresár katalógov správ .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1920,12 +1926,12 @@ msgstr "" "Voľby -l a -d sú povinné. Súbor .msg je zapísaný do zadaného adresára.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretácia vstupného súboru:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1936,14 +1942,14 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format kontrolovať jazykovo závislé formátované " "reťazce\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1951,7 +1957,7 @@ msgstr "" " --check-header overiť prítomnosť a obsah položky hlavičky\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1961,7 +1967,7 @@ "domény\n" " a voľbou --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1970,7 +1976,7 @@ " -C, --check-compatibility kontrolovať, či sa GNU msgfmt správa tak ako\n" " X/Open msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1981,20 +1987,20 @@ "skratiek\n" " pre položky menu\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy použiť nepresné preklady vo výstupe\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -" -a, --alignment=POČET zarovnať reťazce na POČET bajtov (štandardne: %" -"d)\n" +" -a, --alignment=POČET zarovnať reťazce na POČET bajtov (štandardne: " +"%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2002,86 +2008,88 @@ " --no-hash binárny súbor nebude obsahovať hašovaciu " "tabuľku\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics zobraziť štatistiky prekladov\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose zvýšiť úroveň táravosti\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "upozornenie: hlavička súboru PO chýba alebo je neplatná\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "upozornenie: konverzia znakovej sady nebude fungovať\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "upozornenie: hlavička súboru PO je nepresná\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "upozornenie: staršie verzie msgfmt vrátia pri tomto chybu\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "meno domény \"%s\" nie je použitelné ako meno súboru" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "meno domény \"%s\" nie je použitelné ako meno súboru: použije sa predpona" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "direktíva `domain %s' bola ignorovaná" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "prázdna položka `msgstr' bola ignorovaná" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "nepresná položka `msgstr' bola ignorovaná" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: upozornenie: zdrojový súbor obsahuje nepresné preklady" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "chyba pri čítaní súboru \"%s\"" -#: src/msggrep.c:484 -#, fuzzy, c-format +#: src/msggrep.c:496 +#, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" -msgstr "voľba '%c' nemôže byť použitá pred špecifikovaným 'K', 'T' alebo 'C'" +msgstr "" +"voľba '%c' nemôže byť použitá pred špecifikovaným 'J' alebo 'K' alebo 'T' " +"alebo 'C' alebo 'X'" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2090,8 +2098,8 @@ "Vyberie všetky správy z prekladového katalógu, ktoré vyhovujú zadanému\n" "vzoru alebo sú v zadaných zdrojových súboroch.\n" -#: src/msggrep.c:530 -#, fuzzy, c-format, no-wrap +#: src/msggrep.c:542 +#, c-format, no-wrap msgid "" "Message selection:\n" " [-N SOURCEFILE]... [-M DOMAINNAME]...\n" @@ -2131,34 +2139,43 @@ msgstr "" "Výber správy:\n" " [-N ZDROJOVÝSÚBOR]... [-M NÁZOVDOMÉNY]...\n" -" [-K MSGID-VZOR] [-T MSGSTR-VZOR] [-C KOMENTÁR-VZOR]\n" -"Správa je vybratá, ak je z jedného zo zadaných zdrojových súborov,\n" -"alebo ak je z jednej zo zadaných domén,\n" +" [-J MSGCTX-VZOR] [-K MSGID-VZOR] [-T MSGSTR-VZOR]\n" +" [-C KOMENTÁR-VZOR] [-X EXTRAHOVANÝ-KOMENTÁR-VZOR]\n" +"Správa je vybratá, ak pochádza z jedného zo zadaných zdrojových súborov,\n" +"alebo ak pochádza z jednej zo zadaných domén,\n" +"alebo ak je zadané -J a jej kontext (msgctxt) vyhovuje vzoru MSGCTXT-VZOR,\n" "alebo ak je zadané -K a jej kľúč (msgid alebo msgid_plural) vyhovuje vzoru\n" "MSGID-VZOR,\n" "alebo ak je zadané -T a jej preklad (msgstr) vyhovuje vzoru MSGSTR-VZOR,\n" -"alebo ak je zadané -C a komentár prekladateľa vyhovuje vzoru KOMENTÁR-VZOR.\n" +"alebo ak je zadané -C a komentár prekladateľa vyhovuje vzoru KOMENTÁR-VZOR,\n" +"alebo ak je zadané -X a vytiahnutý komentár vyhovuje vzoru\n" +"EXTRAHOVANÝ-KOMENTÁR-VZOR.\n" "\n" "Ak je zadaných viac ako jedno výberové kritérium, množina vybratých správ\n" -"bude zjednotením vybratých správ jednotlivých kritérií.\n" +"bude zjednotením vybratých správ podľa jednotlivých kritérií.\n" "\n" -"Syntax pre MSGID-VZOR, MSGSTR-VZOR a KOMENTÁR-VZOR:\n" +"Syntax pre MSGCTX-VZOR alebo MSGID-VZOR alebo MSGSTR-VZOR alebo KOMENTÁR-VZOR\n" +"alevo EXTRAHOVANÝ-KOMENTÁR-VZOR:\n" " [-E | -F] [-e VZOR | -f SÚBOR]...\n" "VZORy sú štandardne základné regulárne výrazy alebo, ak je zadané -E, rozšírené\n" "regulárne výrazy alebo, ak je zadané -F, obyčajné reťazce.\n" "\n" " -N, --location=ZDROJOVÝSÚBOR vybrať správy extrahované zo súboru ZDROJOVÝSÚBOR\n" " -M, --domain=NÁZOVDOMÉNY vybrať správy patriace do domény NÁZOVDOMÉNY\n" +" -J, --msgctxt začiatok vzorov pre msgctxt\n" " -K, --msgid začiatok vzorov pre msgid\n" " -T, --msgstr začiatok vzorov pre msgstr\n" " -C, --comment začiatok vzorov pre komentár prekladateľa\n" +" -X, --extracted-comment začiator vzorov pre extrahovaný komentár\n" " -E, --extended-regexp VZOR je rozšírený regulárny výraz\n" " -F, --fixed-strings VZOR je množina reťazcov oddelených znakom nový riadok\n" " -e, --regexp=VZOR použiť VZOR ako regulárny výraz\n" " -f, --file=SÚBOR získať VZOR zo SÚBORu\n" " -i, --ignore-case ignorovať rozlíšenie veľkých a malých písmen\n" +" -v, --invert-match vytlačiť len tie správy, ktoré nevyhovujú žiadnemu\n" +" výberovému kritériu\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2167,18 +2184,18 @@ "C,\n" " bez rozšírených znakov\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output generovať utriedený výstup\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file utriediť výstup podľa umiestnenia v súboroch\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2189,7 +2206,7 @@ "ABOUT-NLS. Toto je potrebné na to, aby ste mohli otestovať\n" "vaše preklady.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2200,12 +2217,12 @@ "Zadajte, prosím, národné prostredie pomocou voľby --locale alebo\n" "výstupný .po súbor pomocou voľby --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Vytvorený %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2214,12 +2231,12 @@ "Vytvorí nový PO súbor, inicializuje meta informácie podľa hodnôt z prostredia\n" "používateľa.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=VSTUPNÝSÚBOR vstupný POT súbor\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2230,12 +2247,12 @@ "adresári.\n" "Ak je -, načítaný je štandardný vstup.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=SÚBOR zapísať výstup do zadaného PO súboru\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2245,12 +2262,12 @@ "nastavenia národného prostredia používateľa. Ak je -, výstup je zapísaný na\n" "štandardný výstup.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC nastaviť cieľové národné prostredie\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2258,7 +2275,7 @@ " --no-translator označiť, že PO súbor je generovaný " "automaticky\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2266,12 +2283,12 @@ "Nájdených viac ako jeden .pot súbor.\n" "Prosím zadajte vstupný .pot súbor pomocou voľby --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "chyba pri čítaní adresára" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2279,14 +2296,14 @@ "V aktuálnom adresári nebol nájdený žiaden .pot súbor.\n" "Prosím zadajte vstupný .pot súbor pomocou voľby --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "podproces %s zlyhal s ukončovacím kódom %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2303,28 +2320,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Slovenské preklady pre balík %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "aktuálna znaková sada \"%s\" nie je prenositeľné meno kódovania" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "dve rozdielne znakové sady \"%s\" a \"%s\" vo vstupnom súbore" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "vstupný súbor \"%s\" nemá v hlavičke uvedenú znakovú sadu" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2332,19 +2349,19 @@ msgstr "" "doména \"%s\" vo vstupnom súbore \"%s\" nemá v hlavičke uvedenú znakovú sadu" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "cieľová znaková sada \"%s\" nie je prenositeľné meno kódovania." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "upozornenie: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2354,7 +2371,7 @@ "UTF-8.\n" "Konvertujem výstup do UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2362,12 +2379,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Vstupné súbory obsahujú správy v rozdielnych kódovaniach, medzi inými aj v %" -"s a v %s.\n" +"Vstupné súbory obsahujú správy v rozdielnych kódovaniach, medzi inými aj v " +"%s a v %s.\n" "Konvertujem výstup do UTF-8.\n" "Iné výstupné kódovanie si môžete zvoliť pomocou voľby --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2375,8 +2392,12 @@ "Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n" "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" +"Konverzia súboru %s z kódovania %s do kódovania %s\n" +"mení niektoré msgid alebo msgctxt.\n" +"Buď zmeňte všetky msgid a msgctxt na čisté ASCII alebo sa uistite, že sú\n" +"od počiatku kódované v UTF-8, t.j. už vo vašich zdrojových súboroch.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2389,12 +2410,12 @@ "Výstup z '%s' môže byť nesprávny.\n" "Možné riešenia sú:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Nastaviť LC_ALL na národné prostredie s kódovaním %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2405,7 +2426,7 @@ " potom použiť '%s',\n" " potom konvertovať späť na %s pomocou 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2418,7 +2439,7 @@ " potom použiť '%s',\n" " potom konvertovať späť na %s pomocou 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2430,26 +2451,26 @@ "Výstup z '%s' môže byť nesprávny.\n" "Možnou obchádzkou je nastavenie LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "výraz pre množné číslo môže nadobúdať záporné hodnoty" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu, ale výraz pre množné číslo môže nadobúdať hodnoty väčšie ako " "%lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "výraz pre množné číslo môže spôsobiť delenie nulou" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "výraz pre množné číslo môže spôsobiť celočíselné pretečenie" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2457,56 +2478,53 @@ "výraz pre množné číslo môže spôsobiť aritmetickú výnimku, pravdepodobne " "delenie nulou" -#: src/msgl-check.c:189 -#, fuzzy, c-format +#: src/msgl-check.c:266 +#, c-format msgid "Try using the following, valid for %s:" -msgstr "Skúste použiť nasledujúce, platné pre %s:\n" +msgstr "Skúste použiť nasledujúce, platné pre %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 -#, fuzzy +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" -msgstr "katalóg správ má preklady s množnými číslami..." +msgstr "katalóg správ má preklady s množnými číslami" -#: src/msgl-check.c:278 -#, fuzzy +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" -msgstr "...ale v hlavičke chýba \"plural=VÝRAZ\"" +msgstr "ale v hlavičke chýba príznak \"plural=VÝRAZ\"" -#: src/msgl-check.c:302 -#, fuzzy +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" -msgstr "...ale v hlavičke chýba \"nplurals=ČÍSLO\"" +msgstr "ale v hlavičke chýba príznak \"nplurals=ČÍSLO\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "neplatná hodnota nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "neplatný výraz pre množné číslo" -#: src/msgl-check.c:390 src/msgl-check.c:406 -#, fuzzy, c-format +#: src/msgl-check.c:466 src/msgl-check.c:482 +#, c-format msgid "nplurals = %lu" -msgstr "nplurals = %lu..." +msgstr "nplurals = %lu" -#: src/msgl-check.c:392 -#, fuzzy, c-format +#: src/msgl-check.c:468 +#, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" -msgstr[0] "...ale niektoré správy majú len %lu tvarov množných čísel" -msgstr[1] "...ale niektoré správy majú len %lu tvar množného čísla" -msgstr[2] "...ale niektoré správy majú len %lu tvary množných čísel" +msgstr[0] "ale niektoré správy majú len %lu tvarov množných čísel" +msgstr[1] "ale niektoré správy majú len %lu tvar množného čísla" +msgstr[2] "ale niektoré správy majú len %lu tvary množných čísel" -#: src/msgl-check.c:408 -#, fuzzy, c-format +#: src/msgl-check.c:484 +#, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" -msgstr[0] "...ale niektoré správy majú %lu tvarov množných čísel" -msgstr[1] "...ale niektoré správy majú %lu tvar množného čísla" -msgstr[2] "...ale niektoré správy majú %lu tvary množných čísel" +msgstr[0] "ale niektoré správy majú %lu tvarov množných čísel" +msgstr[1] "ale niektoré správy majú %lu tvar množného čísla" +msgstr[2] "ale niektoré správy majú %lu tvary množných čísel" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2514,82 +2532,82 @@ "katalóg správ má preklady s množnými číslami, ale v hlavičke chýba \"Plural-" "Forms: nplurals=ČÍSLO; plural=VÝRAZ;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "položky `msgid' a `msgid_plural' nezačínajú obe s '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "položky `msgid' a `msgstr[%u]' nezačínajú obe s '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "položky `msgid' a `msgstr' nezačínajú obe s '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "položky `msgid' a `msgid_plural' nie sú obe ukončené s '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "položky `msgid' a `msgstr[%u]' nie sú obe ukončené s '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "položky `msgid' a `msgstr' nie sú obe ukončené s '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "spracovanie množných čísel je rozšírením GNU" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "v msgstr chýba značka klávesovej skratky '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr obsahuje príliš veľa značiek klávesových skratiek '%c'" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "hlavičková položka `%s' chýba v hlavičke\n" +msgid "header field `%s' missing in header\n" +msgstr "položka hlavičky `%s' v hlavičke chýba\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr "hlavičková položka `%s' má začínať na začiatku riadku\n" +msgstr "položka hlavičky `%s' má začínať na začiatku riadka\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "" "niektoré položky hlavičky ešte obsahujú počiatočné štandardné hodnoty\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "položka `%s' ešte obsahuje počiatočnú štandardnú hodnotu\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "položka hlavičky `%s' ešte obsahujú počiatočnú štandardnú hodnotu\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" -msgstr "" +msgstr "%s: vstup nie je platný v kódovaní \"%s\"" -#: src/msgl-iconv.c:68 -#, fuzzy, c-format +#: src/msgl-iconv.c:69 +#, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "chyba pri otváraní súboru \"%s\" na čítanie" +msgstr "%s: chyba pri konverzii kódovania z \"%s\" na \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "vstupný súbor nemá v hlavičke uvedenú znakovú sadu" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2598,7 +2616,7 @@ "Nemôžem konvertovať z \"%s\" do \"%s\". %s spolieha na iconv() a iconv() " "nepodporuje takúto konverziu." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2607,8 +2625,8 @@ "Konverzia z \"%s\" do \"%s\" zavedie duplicity: niektoré rozdielne msgid sa " "stanú rovnakými." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2617,16 +2635,16 @@ "Nemôžem konvertovať z \"%s\" do \"%s\". %s spolieha na iconv(). Táto verzia " "bola preložená bez iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s je platné len s %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "typ zálohy" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2647,21 +2665,21 @@ "alebo šablóna PO súboru (väčšinou vytvorená programom xgettext); všetky\n" "preklady alebo komentáre v tomto súbore budú zmazané, okrem komentárov\n" "začínajúcich bodkou a informácií o pozícii v zdrojovom súbore. Pri správach,\n" -"pri ktorých nie je možné nájsť presnú zhodu, bude použitý fuzzy algoritmus,\n" +"pri ktorých nemožno nájsť presnú zhodu, bude použitý fuzzy algoritmus,\n" "ktorý dosahuje lepšie výsledky.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po preklady podľa starých zdrojových súborov\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot odkazy na nové zdrojové súbory\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2670,7 +2688,7 @@ " -C, --compendium=SÚBOR prídavná knižnica prekladov správ, môže byť\n" " zadaná viac ako raz\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2679,27 +2697,27 @@ " -U, --update aktualizovať def.po,\n" " nerobiť nič, ak def.po je aktuálny\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Umiestnenie výstupného súboru v móde aktualizácie:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Výsledok je zapísaný späť do def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL vytvoriť zálohu súboru def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=PRÍPONA prekryť obvyklú príponu zálohy\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2717,7 +2735,7 @@ " existing, nil numbered, ak existuje číslovaná záloha, inak simple\n" " simple, never vždy vytvoriť jednoduchú zálohu\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2727,37 +2745,30 @@ "Prípona zálohy je '~', pokiaľ nie je zadaná voľba --suffix alebo nastavená\n" "premenná prostredia SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 +#: src/msgmerge.c:552 #, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching nepoužiť algoritmus pre nájdenie nepresných\n" -" prekladov\n" - -#: src/msgmerge.c:525 -#, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" -" --translated zachovať preložené, odstrániť nepreložené " -"správy\n" +" --previous zachovať predchádzajúce msgid preložených " +"správ\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent potlačiť indikátory postupu\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "táto správa by mala definovať tvary množného čísla" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "táto správa by nemala definovať tvary množného čísla" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2766,26 +2777,28 @@ "%sNačítané %ld starých + %ld odkazov, %ld zlučených, %ld nepresných, %ld " "chýbajucich, %ld zrušených.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " hotovo.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s a explicitné mená súborov sa navzájom vylučujú" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Použitie: %s [VOĽBA] [SÚBOR]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Konvertovať binárny katalóg správ na .po súbor v Uniforum štýle.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2793,12 +2806,12 @@ msgstr "" " -j, --java mód Java: vstup je trieda Java ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp režim C#: vstup je .dll súbor .NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2807,24 +2820,24 @@ " --csharp-resources režim zdrojov C#: vstup je .resources súbor " "pre .NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl mód Tcl: vstup je súbor .msg tcl/msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " SÚBOR ... vstupné .mo súbory\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Umiestnenie vstupného súboru v móde Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2834,12 +2847,12 @@ "Názov triedy je získaný pridaním názvu národného prostredia k názvu zdroja,\n" "oddelených znakom \"_\". Trieda je umiestnená pomocou CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Umiestnenie vstupného súboru v režime C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2848,12 +2861,12 @@ "Voľby -l a -d sú povinné. Súbor .dll je umiestnený v podadresári zadaného,\n" "ktorého názov závisí od národného prostredia adresára.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Umiestnenie vstupného súboru v móde Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2861,20 +2874,20 @@ msgstr "" "Voľby -l a -d sú povinné. Súbor .msg je umiestnený v zadanom adresári.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" " -i, --indent zapísať pomocou odsadeného výstupného štýlu\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" -" --strict zapísať súbor s presne doržaným štýlom " +" --strict zapísať súbor s presne dodržaným štýlom " "uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2895,12 +2908,12 @@ "z prvého prekladu. Pozície v súboroch budú zlúčené. Pri použití voľby\n" "--unique budú duplikáty potlačené.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated zobraziť len duplikáty\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2909,7 +2922,7 @@ " -u, --unique zobraziť len unikátne správy, potlačiť " "duplikáty\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "<štandardný vstup>" @@ -2995,68 +3008,67 @@ msgid "plural form has wrong index" msgstr "množné číslo má nesprávny index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "vyskytlo sa príliš veľa chýb, ukončuje sa program" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "neplatná viacznaková sekvencia" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "nekompletná viacznaková sekvencia na konci súboru" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" -msgstr "nekompletná viacznaková sekvencia na konci riadku" +msgstr "nekompletná viacznaková sekvencia na konci riadka" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv zlyhal" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "neznáme kľúčové slovo \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "neplatná riadiaca sekvencia" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "koniec súboru uprostred reťazca" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" -msgstr "koniec riadku uprostred reťazca" +msgstr "koniec riadka uprostred reťazca" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" -msgstr "" +msgstr "oddeľovač kontextu v reťazci" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "tento súbor nesmie obsahovať direktívy pre doménu" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "duplicitná definícia správy" -#: src/read-catalog.c:374 -#, fuzzy +#: src/read-catalog.c:379 msgid "this is the location of the first definition" -msgstr "...toto je miesto prvého definovania" +msgstr "toto je miesto prvého definovania" #: src/read-mo.c:105 src/read-mo.c:126 src/read-mo.c:172 src/read-mo.c:199 #, c-format @@ -3079,39 +3091,33 @@ msgstr "súbor \"%s\" obsahuje reťazec, ktorý nie je ukončený nulou, na %s" #: src/read-properties.c:227 -#, fuzzy msgid "warning: invalid \\uxxxx syntax for Unicode character" -msgstr "%s:%lu: upozornenie: neplatná syntax \\uxxxx pre znak Unicode" +msgstr "upozornenie: neplatná syntax \\uxxxx pre znak Unicode" #: src/read-stringtable.c:802 -#, fuzzy msgid "warning: unterminated string" -msgstr "%s:%d: upozornenie: neukončený reťazec" +msgstr "upozornenie: neukončený reťazec" #: src/read-stringtable.c:810 -#, fuzzy msgid "warning: syntax error" -msgstr "%s:%lu: upozornenie: chyba syntaxe" +msgstr "upozornenie: chyba syntaxe" #: src/read-stringtable.c:871 src/read-stringtable.c:893 -#, fuzzy msgid "warning: unterminated key/value pair" -msgstr "%s:%lu: upozornenie: neukončený pár kľúč/hodnota" +msgstr "upozornenie: neukončený pár kľúč/hodnota" #: src/read-stringtable.c:939 -#, fuzzy msgid "warning: syntax error, expected ';' after string" -msgstr "%s:%lu: upozornenie: chyba syntaxe, očakávané ';' po reťazci" +msgstr "upozornenie: chyba syntaxe, očakávané ';' po reťazci" #: src/read-stringtable.c:948 -#, fuzzy msgid "warning: syntax error, expected '=' or ';' after string" -msgstr "%s:%lu: upozornenie: chyba syntaxe, očakávané '=' alebo ';' po reťazci" +msgstr "upozornenie: chyba syntaxe, očakávané '=' alebo ';' po reťazci" #: src/recode-sr-latin.c:116 -#, fuzzy, c-format +#, c-format msgid "Written by %s and %s.\n" -msgstr "Napísal %s.\n" +msgstr "Napísal %s a %s.\n" #. TRANSLATORS: This is a proper name. The last name is #. (with Unicode escapes) "\u0160egan" or (with HTML entities) @@ -3119,12 +3125,12 @@ #. This is a proper name. See the gettext manual, section Names. #: src/recode-sr-latin.c:120 msgid "Danilo Segan" -msgstr "" +msgstr "Danilo Šegan" #: src/recode-sr-latin.c:153 #, c-format, no-wrap msgid "Recode Serbian text from Cyrillic to Latin script.\n" -msgstr "" +msgstr "Prekódovať srbský text z cyriliky do latinky.\n" #: src/recode-sr-latin.c:156 #, c-format, no-wrap @@ -3132,28 +3138,30 @@ "The input text is read from standard input. The converted text is output to\n" "standard output.\n" msgstr "" +"Vstupný text je čítaný zo štandardného vstupu. Konvertovaný text je vytlačený\n" +"na štandardný výstup.\n" #: src/recode-sr-latin.c:338 #, c-format msgid "input is not valid in \"%s\" encoding" -msgstr "" +msgstr "vstup nie je platný v kódovaná \"%s\"" #: src/recode-sr-latin.c:366 -#, fuzzy, c-format +#, c-format msgid "error while converting from \"%s\" encoding to \"%s\" encoding" -msgstr "chyba pri otváraní súboru \"%s\" na čítanie" +msgstr "chyba pri konverzii kódovania z \"%s\" do \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "očakávané dva parametre" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Použitie: %s [VOĽBA] URL SÚBOR\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3162,36 +3170,48 @@ "Stiahne a zobrazí obsah z URL. Ak URL nie je dostupné, použije sa SÚBOR\n" "z lokálneho disku.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "chyba pri zápise na štandardný výstup" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Získavanie %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " časový limit vypršal.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " zlyhalo.\n" + #: src/write-catalog.c:126 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" -"Nie je možné zapísať viacnásobné prekladové domény do jedného súboru so " -"syntaxou Java .properties. Skúste použiť namiesto toho syntax PO." +"Nemožno zapísať viacnásobné prekladové domény do jedného súboru v zadanom " +"výstupnom formáte. Skúste použiť namiesto toho syntax PO." #: src/write-catalog.c:129 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." msgstr "" -"Nie je možné zapísať viacnásobné prekladové domény do jedného súboru so " -"syntaxou NeXTstep/GNUstep .strings." +"Nemožno zapísať viacnásobné prekladové domény do jedného súboru v zadanom " +"výstupnom formáte." #: src/write-catalog.c:162 -#, fuzzy msgid "" "message catalog has context dependent translations, but the output format " "does not support them." msgstr "" -"katalóg správ má preklady s množnými číslami, ale výstupný formát ich " +"katalóg správ má preklady závisiace od kontextu, ale výstupný formát ich " "nepodporuje." #: src/write-catalog.c:197 @@ -3212,72 +3232,71 @@ "katalóg správ má preklady s množnými číslami, ale výstupný formát ich " "nepodporuje." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr "nie je možné vytvoriť výstupný súbor \"%s\"" +msgstr "nemožno vytvoriť výstupný súbor \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "štandardný výstup" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "zlyhalo vytvorenie adresára \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" -msgstr "kompilácia triedy C# zlyhalo, prosím skúste --verbose" +msgstr "kompilácia triedy C# zlyhala, prosím skúste --verbose" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "kompilácia triedy C# zlyhalo, prosím skúste --verbose" +msgstr "kompilácia triedy C# zlyhala" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "nie je platným názvom triedy Java: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" -"kompilácia triedy Java zlyhalo, prosím skúste --verbose alebo nastavte $JAVAC" +"kompilácia triedy Java zlyhala, prosím skúste --verbose alebo nastavte $JAVAC" -#: src/write-java.c:1063 -#, fuzzy, c-format +#: src/write-java.c:1168 +#, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "" -"kompilácia triedy Java zlyhalo, prosím skúste --verbose alebo nastavte $JAVAC" +msgstr "kompilácia triedy Java zlyhala, prosím skúste nastaviť $JAVAC" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" msgstr "chyba pri otváraní súboru \"%s\" na zápis" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "internacionalizované správy nesmú obsahovať riadiacu sekvenciu `\\%c'" -#: src/write-po.c:1212 src/write-po.c:1341 -#, fuzzy, c-format +#: src/write-po.c:1253 src/write-po.c:1382 +#, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" "This will cause problems to translators who use a character encoding\n" "different from yours. Consider using a pure ASCII msgctxt instead.\n" "%s\n" msgstr "" -"Nasledujúci msgid obsahuje znaky mimo ASCII.\n" +"Nasledujúci msgctxt obsahuje znaky mimo ASCII.\n" "Toto spôsobí problémy prekladateľom, ktorí používajú iné kódovanie znakov\n" -"ako vy. Zvážte namiesto to použitie msgid len s ASCII znakmi.\n" +"ako vy. Zvážte namiesto toho použitie msgctxt len s ASCII znakmi.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3287,7 +3306,7 @@ msgstr "" "Nasledujúci msgid obsahuje znaky mimo ASCII.\n" "Toto spôsobí problémy prekladateľom, ktorí používajú iné kódovanie znakov\n" -"ako vy. Zvážte namiesto to použitie msgid len s ASCII znakmi.\n" +"ako vy. Zvážte namiesto toiho použitie msgid len s ASCII znakmi.\n" "%s\n" #: src/write-qt.c:667 @@ -3299,16 +3318,15 @@ "ale formát katalógu správ Qt nepodporuje množné čísla\n" #: src/write-qt.c:693 -#, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"katalóg správ má reťazce msgid obsahujúce znaky mimo ISO-8859-1 ale\n" +"katalóg správ má reťazce msgctxt obsahujúce znaky mimo ISO-8859-1 ale\n" "formát katalógu správ Qt podporuje Unicode len v preložených reťazcoch\n" -"a nie v nepreložených reťazcoch\n" +"a nie v kontextových reťazcoch\n" #: src/write-qt.c:717 msgid "" @@ -3325,16 +3343,15 @@ msgid "error while writing to %s subprocess" msgstr "chyba počas zápisu do do podprocesu %s" -#: src/write-resources.c:130 -#, fuzzy +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "" -"katalóg správ má preklady s množnými číslami,\n" -"ale formát C# .resources nepodporuje množné čísla\n" +"katalóg správ má preklady závislé od kontextu,\n" +"ale formát C# .resources nepodporuje kontexty\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3343,13 +3360,12 @@ "ale formát C# .resources nepodporuje množné čísla\n" #: src/write-tcl.c:157 -#, fuzzy msgid "" "message catalog has context dependent translations\n" "but the Tcl message catalog format doesn't support contexts\n" msgstr "" -"katalóg správ má preklady s množnými číslami,\n" -"ale formát katalógu správ Tcl nepodporuje množné čísla\n" +"katalóg správ má preklady závislé od kontextu,\n" +"ale formát katalógu správ Tcl nepodporuje kontexty\n" #: src/write-tcl.c:176 msgid "" @@ -3359,111 +3375,106 @@ "katalóg správ má preklady s množnými číslami,\n" "ale formát katalógu správ Tcl nepodporuje množné čísla\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: upozornenie: neukončený reťazec" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: upozornenie: neukončený regulárny výraz" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: upozornenie: neukončená znaková konštanta" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: upozornenie: neukončený znakový reťazec" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"Nie ASCII reťazec na %s%s.\n" -"Presím zadajte kódovanie zdroja pomocou --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Prosím, zadajte kódovanie zdroja pomocou --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" "%s:%d: Neplatná viacbajtová postupnosť.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" "%s:%d: Nekompletná dlhá viacbajtová postupnosť.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" "%s:%d: Nekompletná viacbajtová postupnosť na konci súboru.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code.\n" msgstr "" -"%s:%d: Nekompletná viacbajtová postupnosť na konci riadku.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"%s:%d: Nekompletná viacbajtová postupnosť na konci riadka.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv zlyhal" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code.\n" msgstr "" "%s:%d: Neplatná viacbajtová postupnosť.\n" -"Presím zadajte kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte kódovanie zdroja pomocou --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: upozornenie: neplatný znak Unicode" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: upozornenie: neukončená reťazcová konštanta" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: upozornenie: nájdené ')' tam, kde bolo očakávané '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: upozornenie: nájdené '}' tam, kde bolo očakávané ')'" -#: src/x-glade.c:611 src/x-glade.c:618 -#, fuzzy, c-format +#: src/x-glade.c:623 src/x-glade.c:630 +#, c-format msgid "%s:%lu:%lu: %s" -msgstr "%s:%d:%d: %s" +msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3472,127 +3483,130 @@ "Jazyk \"glade\" je nepodporovaný. %s spolieha na expat.\n" "Táto verzia bola preložená bez expat.\n" -#: src/x-java.c:492 -#, fuzzy, c-format +#: src/x-java.c:494 +#, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d: upozornenie: neukončený reťazec" +msgstr "%s:%d: upozornenie: osamotený náhradník U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: nepodarilo sa nájsť ukončenie reťazca \"%s\" pred koncom súboru" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: chýbajúca pravá zátvorka v \\x{ŠESTNÁSTKOVÉČÍSLO}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: neplatná interpolácia (\"\\l\") 8-bitového znaku \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: neplatná interpolácia (\"\\u\") 8-bitového znaku \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: neplatná interpolácia premennej na \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: neplatná interpolácia (\"\\L\") 8-bitového znaku \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: neplatná interpolácia (\"\\U\") 8-bitového znaku \"%c\"" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"Nie ASCII reťazec na %s%s.\n" -"Presím zadajte kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte kódovanie zdroja pomocou --from-code alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 -#, fuzzy, c-format +#: src/x-python.c:282 +#, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Neplatná viacbajtová postupnosť.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 -#, fuzzy, c-format +#: src/x-python.c:299 +#, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Nekompletná dlhá viacbajtová postupnosť.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 -#, fuzzy, c-format +#: src/x-python.c:312 +#, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Nekompletná viacbajtová postupnosť na konci súboru.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-codei alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 -#, fuzzy, c-format +#: src/x-python.c:322 +#, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" "Please specify the correct source encoding through --from-code or through a\n" "comment as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"%s:%d: Nekompletná viacbajtová postupnosť na konci riadku.\n" -"Presím zadajte správne kódovanie zdroja pomocou --from-code.\n" +"%s:%d: Nekompletná viacbajtová postupnosť na konci riadka.\n" +"Prosím, zadajte správne kódovanie zdroja pomocou --from-code alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 -#, fuzzy, c-format +#: src/x-python.c:355 +#, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s:%d: Neplatná viacbajtová postupnosť.\n" -"Presím zadajte kódovanie zdroja pomocou --from-code.\n" +"Prosím, zadajte kódovanie zdroja pomocou --from-code alebo pomocou\n" +"komentára tak, ako je uvedené na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." -msgstr "" +msgstr "Neznáme kódovanie \"%s\". Pokračujem namiesto neho s ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: neplatná definícia reťazca" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: chýbajúce číslo za #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: neplatný výraz reťazca" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3601,29 +3615,28 @@ "%s:%lu: upozornenie: syntax $\"...\" je neodporúčaná z bezpečnostných " "dôvodov; použite namiesto toho eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" -"--join-existing nesmie byť použité ak je výstup posielaný na štandardný " -"výstup" +"--join-existing nemožno použiť ak je výstup posielaný na štandardný výstup" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext nemôže pracovať bez kľúčových slov, ktoré má hľadať" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "upozornenie: súbor `%s' s príponou `%s' je neznámy; skúsim C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Extrahovať preložiteľné reťazce zo zadaných vstupných súborov.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3632,12 +3645,12 @@ " -d, --default-domain=NÁZOV použiť NÁZOV.po pre výstup (namiesto messages." "po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=SÚBOR zapísať výstup do zadaného súboru\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3645,12 +3658,12 @@ " -p, --output-dir=ADRESÁR výstupné súbory budú umiestnené v adresári " "ADRESÁR\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Voľba jazyka vstupného súboru:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3669,19 +3682,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ skratka pre --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "Štandardne je jazyk odhadnutý podľa prípony vstupného súboru\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3690,45 +3703,51 @@ " --from-code=NÁZOV kódovanie vstupných súborov\n" " (s výnimkou pre Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Štandardne sa predpokladá, že vstupné súbory sú v kódovaní ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing spojiť správy s existujúcim súborom\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=SÚBOR.po položky zo súboru SÚBOR.po nie sú " "extrahované\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" -" -c, --add-comments[=ZNAČKA] umiestniť blok komentára obsahujúci ZNAČKU\n" -" (alebo tie, ktoré predchádzajú kľúčové " -"riadky)\n" -" do výstupného súboru\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cZNAČKA, --add-comments=ZNAČKA umiestniť bloky komentára začínajúce " +"ZNAČKOU\n" +" a predchádzajúce riadky s kľúčovými slovami\n" +" do výstupného súboru\n" +" -c, --add-comments umiestniť všetky bloky komentára, ktoré\n" +" predchádzajú riadky s kľúčovými slovami,\n" +" do výstupného súboru\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Špecifické voľby jazyk:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extrahovať všetky reťazce\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3741,17 +3760,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=SLOVO] ďalšie kľúčové slovo, ktoré bude vyhľadané\n" -" (bez SLOVO znamená: nepoužiť predvolené\n" -" kľúčové slová)\n" +" -kSLOVO, --keyword=SLOVO hľadať SLOVO ako ďalšie kľúčové slovo\n" +" -k, --keyword nepoužiť predvolené kľúčové slová)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3762,7 +3780,7 @@ "číslo\n" " ARG kľúčového slova SLOVO\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3775,37 +3793,37 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs poznať ANSI C trojznaky na vstupe\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (len jazyky C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt rozoznať formát reťazcov Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (len jazyk C++)\n" -#: src/xgettext.c:859 -#, fuzzy, c-format +#: src/xgettext.c:915 +#, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --qt rozoznať formát reťazcov Qt\n" +msgstr " --kde rozoznať formát reťazcov KDE 4\n" -#: src/xgettext.c:863 -#, fuzzy, c-format +#: src/xgettext.c:919 +#, c-format msgid " --boost recognize Boost format strings\n" -msgstr " --qt rozoznať formát reťazcov Qt\n" +msgstr " --boost rozoznať formát reťazcov Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3814,19 +3832,19 @@ "formátovacích\n" " reťazcov\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output zapísať Java súbor .properties\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=REŤAZEC nastaviť držiteľa autorských práv vo " "výstupe\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3834,19 +3852,17 @@ " --foreign-user vynechať informáciu o autorských právach FSF\n" " pre cudzieho používateľa\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=BALÍK nastaviť názov balíka vo výstupe\n" -#: src/xgettext.c:907 -#, fuzzy, c-format +#: src/xgettext.c:969 +#, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr "" -" --copyright-holder=REŤAZEC nastaviť držiteľa autorských práv vo " -"výstupe\n" +msgstr " --package-version=VERZIA nastaviť verziu balíka vo výstupe\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3855,42 +3871,61 @@ "chýb\n" " v msgid\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=REŤAZEC] použiť REŤAZEC alebo \"\" ako predponu pre\n" -" položky msgstr\n" +" -m[REŤAZEC], --msgstr-prefix[=REŤAZEC] použiť REŤAZEC alebo \"\" ako " +"predponu\n" +" pre hodnoty msgstr\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=REŤAZEC] použiť REŤAZEC alebo \"\" ako príponu pre\n" -" položky msgstr\n" +" -M[REŤAZEC], --msgstr-suffix[=REŤAZEC] použiť REŤAZEC alebo \"\" ako " +"príponu pre\n" +" hodnoty msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Parameter pre --flag nemá tvar :<č_param>:[pass-]: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "štandardný vstup" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Nie ASCII znak na %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Nie ASCII komentár na alebo pred %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Nie ASCII reťazec na %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: upozornenie: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3899,16 +3934,16 @@ "Aj keď je použité v pozícii formátovacieho reťazca, %s nie je platný " "formátovací reťazec %s. Dôvod: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Aj keď je to tak deklarované, %s nie je platný formátovací reťazec %s. " "Dôvod: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3916,8 +3951,13 @@ "Please consider using a format string with named arguments,\n" "and a mapping instead of a tuple for the arguments.\n" msgstr "" +"Formátovací reťazec '%s' s nepomenovanými parametrami nemôže byť správne\n" +"upravený pre národné prostredie:\n" +"Prekladateľ nemôže zmeniť poradie parametrov.\n" +"Prosím, zvážte použitie formátovacieho reťazca s pomenovanými parametrami\n" +"a mapovaním namiesto zoznamu parametrov.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3927,27 +3967,29 @@ "gettext(\"\") vráti hlavičku s meta informáciami\n" "a nie prázdny reťazec.\n" -#: src/xgettext.c:2664 -#, fuzzy, c-format +#: src/xgettext.c:2834 +#, c-format msgid "ambiguous argument specification for keyword '%.*s'" -msgstr "nejednoznačný parameter %s pre %s" +msgstr "nejednoznačne zadaný parameter pre kľúčové slovo '%.*s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" -msgstr "" +msgstr "upozornenie: chýbajúci kontext pre kľúčové slovo '%.*s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" +"upozornenie: chýbajúci kontext pre parameter množného čísla kľúčového slova " +"'%.*s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" -msgstr "" +msgstr "nezhoda kontextu medzi jednotným a množným číslom" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3958,9 +4000,9 @@ " Ak používate\n" "súbor `Makevars', prosím nastavte v ňom premennú\n" "MSGID_BUGS_ADDRESS; inak prosím zadajte voľbu príkazového\n" -"riadku --msgid-bugs-address.\n" +"riadka --msgid-bugs-address.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "jazyk `%s' je neznámy" @@ -3968,91 +4010,3 @@ #: libgettextpo/gettext-po.c:84 msgid "" msgstr "" - -#~ msgid "Multiple references to %%%c." -#~ msgstr "Viacnásobné odkazy na %%%c." - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Autorské práva (C) %s Free Software Foundation, Inc.\n" -#~ "Toto je voľne šíriteľný softvér; pre podmienky kopírovania pozri zdrojový " -#~ "kód.\n" -#~ "Neposkytuje sa ŽIADNA záruka; ani čo sa týka OBCHODOVATEĽNOSTI alebo " -#~ "VHODNOSTI\n" -#~ "NA KONKRÉTNY ÚČEL.\n" - -#, fuzzy -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the C# .dll format doesn't support contexts\n" -#~ msgstr "" -#~ "katalóg správ má preklady s množnými číslami,\n" -#~ "ale formát C# .resources nepodporuje množné čísla\n" - -#, fuzzy -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the Java ResourceBundle format doesn't support contexts\n" -#~ msgstr "" -#~ "katalóg správ má preklady s množnými číslami,\n" -#~ "ale formát C# .resources nepodporuje množné čísla\n" - -#~ msgid "The %%J directive is only allowed at the beginning of the string." -#~ msgstr "Direktíva %%J je povolená len na začiatku reťazca." - -#~ msgid "The %%J directive does not support flags." -#~ msgstr "Direktíva %%J nepodporuje príznaky." - -#~ msgid "Which is your email address?" -#~ msgstr "Aká je vaša adresa elektronickej pošty?" - -#~ msgid "Please choose the number, or enter your email address." -#~ msgstr "Prosím zvoľte číslo, alebo zadajte vašu adresu elektronickej pošty." - -#~ msgid "Invalid email address: invalid character." -#~ msgstr "Neplatná adresa elektronickej pošty: neplatný znak." - -#~ msgid "" -#~ "Invalid email address: need a fully qualified host name or domain name." -#~ msgstr "" -#~ "Neplatná adresa elektronickej pošty: je potrebné zadať plné meno " -#~ "hostiteľa alebo domény." - -#~ msgid "Invalid email address: missing @" -#~ msgstr "Neplatná adresa elektronickej pošty: chýbajúci @" - -#~ msgid "Is the following your email address?" -#~ msgstr "Je toto vaša adresa elektronickej pošty?" - -#~ msgid "Please confirm by pressing Return, or enter your email address." -#~ msgstr "" -#~ "Prosím potvrďte stlačením klávesy Enter, alebo zadajte vašu adresu " -#~ "elektronickej pošty." - -#~ msgid "Couldn't find out about your email address." -#~ msgstr "Nepodarilo sa nájsť vašu adresu elektronickej pošty." - -#~ msgid "Please enter your email address." -#~ msgstr "Prosím zadajte vašu adresu elektronickej pošty." - -#~ msgid "conversion failure" -#~ msgstr "konverzia zlyhala" - -#~ msgid "%s: warning: " -#~ msgstr "%s: upozornenie: " - -#~ msgid "%s\n" -#~ msgstr "%s\n" - -#~ msgid "%s:%lu: warning: unterminated string" -#~ msgstr "%s:%lu: upozornenie: neukončený reťazec" - -#~ msgid "%s:%d: fatal: plural message seen before singular message\n" -#~ msgstr "" -#~ "%s:%d: závažné: správa v množnom čísle je uvedená pred správou v " -#~ "jednotnom čísle\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/sl.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/sl.gmo differ diff -Nru gettext-0.17/gettext-tools/po/sl.po gettext-0.18.1.1/gettext-tools/po/sl.po --- gettext-0.17/gettext-tools/po/sl.po 2007-11-02 02:24:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/sl.po 2010-06-06 12:49:58.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: GNU gettext-tools 0.16.2-pre5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-10-19 14:00+0200\n" "Last-Translator: Primož Peterlin \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" @@ -33,22 +34,22 @@ msgid "Valid arguments are:" msgstr "Veljavni argumenti so:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "začasnega imenika ni mogoče najti, poskusite nastaviti $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "ni mogoče ustvariti začasnega imenika z vzorcem \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "začasne datoteke %s ni mogoče odstraniti" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "začasnega imenika %s ni mogoče odstraniti" @@ -57,44 +58,44 @@ msgid "write error" msgstr "napaka pri pisanju" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "datoteke \"%s\" ni moč odpreti za branje" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "varnostnega izvoda \"%s\" ni mogoče odpreti za pisanje" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "napaka pri branju »%s«" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "napaka pri pisanju na »%s«" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "napaka po branju »%s«" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "klic fdopen() neuspešen" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Prevajalnika za C# ni najti; poskusite namestiti pnet" @@ -104,74 +105,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Virtualnega stroja za C# ni najti; poskusite namestit pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Neznana sistemska napaka" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s podproces neuspešen" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: izbira »%s« ni enoznačna\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: izbira »--%s« ne dovoljuje argumenta\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: izbira »%c%s« ne dovoljuje argumenta\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: izbira »%s« zahteva argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: neprepoznana izbira »--%s«\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: neprepoznana izbira »%c%s«\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: nedovoljena izbira -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: neveljavna izbira -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: izbira zahteva argument -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: izbira »-W %s« je dvoumna\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: izbira »-W %s« ne dovoljuje argumenta\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: izbira »%s« zahteva argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -183,20 +183,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "neveljaven argument target_version za compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "ustvarjanje »%s« neuspešno" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "napaka pri pisanju na datoteko »%s«" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Prevajalnika za javo ni najti; namestite gcj ali nastavite $JAVAC" @@ -207,21 +207,21 @@ msgstr "" "Virtualnega javanskega stroja ni najti; namestite gij ali nastavite $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "V/I napaka v podprocesu %s" # Morda ,,Zmanjkalo pomnilnika''? #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "zmanjkalo pomnilnika" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -240,70 +240,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "»" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "«" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle neuspešen z izhodno kodo 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "Klic _open_osfhandle neuspešen" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "izhodne datoteke \"%s\" ni mogoče ustvariti" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "podproces %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "podproces %s prejel kritični signal %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "»%s« za razliko od »msgid« ni veljaven formatni niz %s. Razlog: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "formatno določilo za argument %u, kot v »%s«, v »msgid« ne obstaja" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "formatno določilo za argument %u ne obstaja v »%s«" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "formatni določili v »msgid« in »%s« za argument %u nista enaki" #: src/format-boost.c:449 @@ -331,9 +330,9 @@ msgstr "" "Niz se sklicuje na argument številka %u, vendar ne upošteva argumenta št. %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "števili formatnih določil v »msgid« in »%s« se ne ujemata" #: src/format-csharp.c:88 src/format-java.c:205 @@ -349,7 +348,8 @@ #: src/format-csharp.c:130 src/format-java.c:191 msgid "" "The string ends in the middle of a directive: found '{' without matching '}'." -msgstr "Niz se konča sredi direktive: najden je oklepaj »{« brez zaklepaja »}«." +msgstr "" +"Niz se konča sredi direktive: najden je oklepaj »{« brez zaklepaja »}«." #: src/format-csharp.c:139 #, c-format @@ -361,30 +361,32 @@ #: src/format-csharp.c:140 #, c-format msgid "The directive number %u ends with an invalid character instead of '}'." -msgstr "Direktivo številka %u zaključuje neveljaven znak namesto zaklepaja »}«." +msgstr "" +"Direktivo številka %u zaključuje neveljaven znak namesto zaklepaja »}«." #: src/format-csharp.c:161 src/format-java.c:346 msgid "" "The string starts in the middle of a directive: found '}' without matching " "'{'." -msgstr "Niz se začne sredi direktive: najden je zaklepaj »}« brez oklepaja »{«." +msgstr "" +"Niz se začne sredi direktive: najden je zaklepaj »}« brez oklepaja »{«." #: src/format-csharp.c:162 #, c-format msgid "The string contains a lone '}' after directive number %u." msgstr "Niz vsebuje zaklepaj »}« brez para za direktivo številka %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "V direktivi številka %u je kombinacija modifikatorjev neveljavna." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "V direktivi številka %u natančnost pred »%c« ni dovoljena." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -392,31 +394,31 @@ msgstr "" "V direktivi številka %u mora biti številka argumenta za natančnost enaka %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "V direktivi številka %u določitev natančnosti pred »%c« ni dovoljena." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "V direktivi številka %u je določitev natančnosti neveljavna." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "V direktivi številka %u modifikatorji niso dovoljeni pred »%c«." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "»msgid« uporablja %%m, »%s« pa ne" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "»msgid« ne uporablja %%m, »%s« pa uporablja %%m" #: src/format-invalid.h:22 @@ -513,25 +515,24 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" -"V direktivi številka %u izbira vsebuje število, ki mu ne sledi »<«, »#« ali »%" -"s«." +"V direktivi številka %u izbira vsebuje število, ki mu ne sledi »<«, »#« ali " +"»%s«." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "v »msgid« ni formatnega določila za argument {%u}, kot v »%s«" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "v »%2$s« ni formatnega določila za argument {%1$u}" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "formatni določili v »msgid« in »%s« za argument {%u} nista enaki" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -541,29 +542,29 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" -"V direktivi številka %u je parameter %u tipa »%s«, pričakovan pa je parameter " -"tipa »%s«." +"V direktivi številka %u je parameter %u tipa »%s«, pričakovan pa je " +"parameter tipa »%s«." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "V direktivi številka %u je podanih preveč parametrov; pričakovanih je največ " "%u parametrov." msgstr[1] "" -"V direktivi številka %u je podanih preveč parametrov; pričakovan je največ %" -"u parameter." +"V direktivi številka %u je podanih preveč parametrov; pričakovan je največ " +"%u parameter." msgstr[2] "" "V direktivi številka %u je podanih preveč parametrov; pričakovana sta največ " "%u parametra." msgstr[3] "" -"V direktivi številka %u je podanih preveč parametrov; pričakovani so največ %" -"u parametri." +"V direktivi številka %u je podanih preveč parametrov; pričakovani so največ " +"%u parametri." #: src/format-lisp.c:2496 src/format-scheme.c:2499 #, c-format @@ -608,13 +609,13 @@ msgstr "Niz se sklicuje na nek argument na nezdružljive načine." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "formatni določili v »msgid« in »%s« nista enakovredni" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "formatna določila v »%s« niso podmnožica tistih v »msgid«" #: src/format-perl.c:433 @@ -626,12 +627,12 @@ "V direktivi številka %u je določilo velikosti nezdružljivo s pretvornim " "faktorjem »%c«." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "v »%2$s« ni formatnega določila za argument »%1$s«" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -639,47 +640,44 @@ "Niz se sklicuje na argumente tako prek njihovih imen kot prek nepoimenovanih " "določil argumentov." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "Niz se sklicuje na argument »%s« na nezdružljive načine." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "formatno določilo v »msgid« zahteva preslikavo, tisto v »%s« pa pričakuje n-" "terček" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "formatno določilo v »msgid« zahteva n-terček, tisto v »%s« pa pričakuje " "preslikavo" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "v »msgid« ni formatnega določila za argument »%s«, kot v »%s«" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "formatni določili v »msgid« in »%s« za argument »%s« nista enaki" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" "»msgid« je enostaven formatni niz, »%s« pa ne: vsebuje zastavico »L« ali " "dvoštevilčno število argumenta" @@ -725,11 +723,11 @@ "1 and 9." msgstr "Znak, ki zaključuje direktivo številka %u, ni števka med 1 in 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -742,38 +740,38 @@ "To je prost program; smete ga spreminjati in deliti z drugimi.\n" "Za program ni NOBENEGA JAMSTVA do zakonsko podanih omejitev.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Avtor(ica) %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "preveč argumentov" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Poskusite »%s --help« za izčrpnejša navodila\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Uporaba: %s [IZBIRA]\n" @@ -809,29 +807,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address internetni naslov za gostiteljsko ime\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informativni izpis:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help ta navodila\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version različica programa\n" @@ -840,11 +838,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Morebitne napake v programu sporočite na .\n" @@ -853,30 +851,30 @@ msgid "could not get host name" msgstr "gostiteljskega imena ni moč ugotoviti" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "dovoljena je največ ena vhodna datoteka" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s in %s se med seboj izključujeta" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Uporaba: %s [IZBIRA] [VHODNA_DATOTEKA]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -885,10 +883,10 @@ "Filtriranje sporočil iz kataloga prevodov glede na njihova določila\n" "in rokovanje z njimi.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -896,23 +894,23 @@ "Če je pri dolgi obliki izbire naveden obvezen argument, je ta obvezen\n" "tudi za kratko obliko.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Izbira vhodne datoteke:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " VHODNA_DATOTEKA vhodna datoteka PO\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -920,31 +918,31 @@ " -D, --directory=IMENIK vhodne datoteke iščemo tudi v navedenem " "IMENIKU\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Če vhodna datoteka ni podana ali je enaka -, se bere standardni vhod.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Izbira izhodne datoteke:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=DATOTEKA izhod zapisujemo v navedeno DATOTEKO\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -954,12 +952,12 @@ "standardni\n" "izhod.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Izbira sporočil:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -967,7 +965,7 @@ " --translated obdržimo prevedena sporočila, zavržemo " "neprevedena\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -975,57 +973,57 @@ " --untranslated obdržimo neprevedena sporočila, zavržemo " "prevedena\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy brez ohlapnih samodejno prevedenih sporočil\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy zgolj ohlapna samodejno prevedena sporočila\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete brez zastarelih (#~) sporočil\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete zgolj zastarela (#~) sporočila\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Rokovanje z določili:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr "" " --set-fuzzy vsa sporočila označimo kot ohlapno pprevedena\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy izbrišemo vse oznake o ohlapnosti prevodov\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete vsa sporočila označimo kot zastarela\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete izbrišemo vse oznake o zastarelosti prevodov\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1034,14 +1032,14 @@ " --clear-previous izbrišemo oznake \"previous msgid\" iz vseh " "sporočil\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=DATOTEKA.po obdelamo le vnose, navedene v DATOTEKI.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1049,28 +1047,28 @@ " --ignore-file=DATOTEKA.po obdelamo vnose razen navedenih v DATOTEKI." "po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy isto kot --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete isto kot --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Skladnja vhodne datoteke:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1078,8 +1076,8 @@ " -P, --properties-input skladnja vhodne datoteke je javanska ." "properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1088,17 +1086,42 @@ " --stringtable-input skladnja vhodne datoteke je NeXTstep/GNUstep ." "strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Podrobnosti izpisa:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color vedno uporabimo barve in druge besedilne " +"atribute\n" +" --color=POGOJ barve in druge besedilne atribute uporabimo " +"pri\n" +" POGOJU; POGOJ je lahko »always«, »never«, " +"»auto«\n" +" ali »html«\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr " --style=DATOTEKA-CSS določi slogovna pravila CSS za --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1106,9 +1129,9 @@ " -e, --no-escape brez ubežnih sekvenc v skladnji jezika C " "(privzeto)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1116,27 +1139,28 @@ " -E, --escape z ubežnimi sekvencami v skladnji C, brez \n" " razširjenega nabora znakov\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po vedno izpišemo datoteko PO, četudi prazno\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent izpis datoteke PO z zamiki\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" -msgstr " --no-location brez vrstic »#: datoteka:vrstica« v izpisu\n" +msgstr "" +" --no-location brez vrstic »#: datoteka:vrstica« v izpisu\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1144,8 +1168,8 @@ " -n, --add-location z vrsticami »#: datoteka:vrstica« v izpisu " "(privzeto)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1153,32 +1177,32 @@ " --strict izpis v strogi obliki Uniforum, brez razširitev " "GNU\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output zapiši javansko datoteko .properties\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output zapiši NeXTstep/GNUstep datoteko .strings\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=ŠTEVILO širina strani pri izpisu, v znakih\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1186,32 +1210,32 @@ msgstr "" " --no-wrap brez deljenja dolgih sporočil v več vrstic\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output izhod abecedno urejen po sporočilih\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file izhod abecedno urejen po izvornih datotekah\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "določeni kriteriji izbire niso mogoči (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Uporaba: %s [IZBIRA] [VHODNA_DATOTEKA]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1233,26 +1257,26 @@ "zahtevamo, da se ohranijo samo iz prve datoteke PO, ki jih definira. Mesta\n" "v datotekah iz vseh datotek PO se ohranijo.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr "" " VHODNA_DATOTEKA ... vhodna datoteka (ali več vhodnih datotek)\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=DATOTEKA seznam vhodnih datotek preberemo iz " "DATOTEKE\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Če je vhodna datoteka enaka -, se bere standardni vhod.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1262,7 +1286,7 @@ "definicij\n" " (privzeta vrednost je neskončno)\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1272,7 +1296,7 @@ "definicij\n" " (privzeta vrednost je 1)\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1281,8 +1305,8 @@ " -u, --unique okrajšava za --less-than=2, izpišemo samo\n" " enolično definirana sporočila\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1290,8 +1314,8 @@ " -P, --properties-input skladnja vhodnih datotek je javanska ." "properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1300,12 +1324,12 @@ " --stringtable-input skladnja vhodnih datotek je NeXTstep/GNUstep \n" " .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NABOR nabor znakov izhodne datoteke\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1314,47 +1338,33 @@ " --use-first uporabimo prvi prevod sporočila, na katerega\n" " naletimo; ne združujemo več prevodov\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --color vedno uporabimo barve in druge besedilne " -"atribute\n" -" --color=POGOJ barve in druge besedilne atribute uporabimo " -"pri\n" -" POGOJU; POGOJ je lahko »always«, »never«, »auto«\n" -" ali »html«\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr " --style=DATOTEKA-CSS določi slogovna pravila CSS za --color\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "vhodni datoteki nista podani" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "potrebni sta natančno dve vhodni datoteki" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Uporaba: %s [IZBIRA] def.po ref.po\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1371,22 +1381,22 @@ "v programu. Kadar ne najdemo natančnega ujemanja msgid, zaradi boljše\n" "diagnostike poskusimo z ohlapnim (fuzzy) algoritmom.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po prevodi\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot sklici na vire\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Modifikatorji delovanja:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1394,48 +1404,53 @@ msgstr "" " -m, --multi-domain ref.po uporabimo na vseh domenah iz def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching ne uporabljamo ohlapnega ujemanja\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr "" " --use-fuzzy uporabimo ohlapne samodejno prevedene prevode\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated obdržimo neprevedena sporočila\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "to sporočilo ni prevedeno" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "to sporočilo mora pregledati prevajalec" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "to sporočilo je uporabljeno, a ne definirano..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...a ta definicija je podobna" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "to sporočilo je uporabljeno, a ne definirano v %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "opozorilo: to sporočilo ni uporabljeno" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1444,12 +1459,12 @@ msgstr[2] "%d kritični napaki" msgstr[3] "%d kritične napake" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "podani morata biti vsaj dve datoteki" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1468,7 +1483,7 @@ "pri izvlačenju se ohranijo samo iz prve podane datoteke PO. Mesta v datotekah \n" "se ohranijo iz vseh datotek PO.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1478,41 +1493,41 @@ "definicij\n" " (privzeta vrednost je 1)\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr " --omit-header brez glave z vnosom »msgid \"\"«\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Pretvarjanje kataloga sporočil v drug kodni nabor.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Cilj pretvorbe:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Privzeta vrednost je kodni nabor izbrane krajevne nastavitve.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent izpis datoteke PO z zamiki\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location brez vrstic »#: datoteka:vrstica« v izpisu\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1520,30 +1535,30 @@ " --add-location z vrsticami »#: datoteka:vrstica« v izpisu " "(privzeto)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr "" " --strict izpis v strogi obliki Uniforum brez " "razširitev\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "vhodna datoteka ni podana" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "zahtevana je natančno ena vhodna datoteka" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Uporaba: %s [IZBIRA] VHODNA_DATOTEKA\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1556,22 +1571,22 @@ "ukazom xgettext). Neprevedenim sporočilom se pripiše prevod, enak izvirniku\n" "msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " VHODNA_DATOTEKA vhodna datoteka PO\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "manjka ime ukaza" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Uporaba: %s [IZBIRA] UKAZ [IZBIRA-UKAZA]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1585,7 +1600,7 @@ "prevod posebej. Izhod programa postane izhod programa msgexec. Izhodna\n" "koda programa msgexec je največja od izhodnih kod pri klicu ukaza.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1594,42 +1609,42 @@ "Poseben vgrajen ukaz »0« izpiše prevod in izpis zaključi z znakom s kodo nič.\n" "Izhod ukaza \"msgexec 0\" je primeren kot vhod za ukaz \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=DATOTEKA vhodna datoteka PO\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "izpis na standardni izhod neuspešen" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "posredovanje podatkov podprocesu %s neuspešno" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "manjka ime filtra" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "podan mora biti vsaj en skript v sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Uporaba: %s [IZBIRA] FILTER [IZBIRA-FILTRA]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Na vsakem prevodu iz kataloga uporabimo dani filter.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1638,18 +1653,18 @@ "FILTER je lahko ime kateregakoli programa, ki prebere prevod s standardnega\n" "vhoda in izpiše spremnjen prevod na standardni izhod.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Uporabne IZBIRE FILTRA, kadar je FILTER »sed«:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=SKRIPT dodaj SKRIPT med ukaze, ki se izvedejo\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1659,14 +1674,14 @@ " -f, --file=SKRIPTNA_DATOTEKA dodaj vsebino SKRIPTNE DATOTEKE med ukaze,\n" " ki se izvedejo\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent brez samodejnega izpisa prostora vzorcev\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1674,80 +1689,62 @@ " --no-escape brez ubežnih sekvenc v skladnji jezika C " "(privzeto)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent izpis datoteke PO z zamiki\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header ohrani glavo nespremenjeno, ne filtriraj je\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Funkcija še ni izvedena." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "s podprocesom %s ni mogoče vzpostaviti nebločne V/I povezave" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "povezava s podprocesom %s neuspešna" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "branje izhoda podprocesa %s neuspešno" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "podproces %s zaključil z izhodno kodo %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "argument %s mora biti eno samo ločilo" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "neveljaven vrstni red bajtov: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s zahteva določitev \"-d directory\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s zahteva določitev \"-l locale\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s je veljavno edino z %s ali %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s je veljavno edino z %s, %s ali %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1756,7 +1753,7 @@ msgstr[2] "%d prevedeni sporočili" msgstr[3] "%d prevedena sporočila" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1765,7 +1762,7 @@ msgstr[2] ", %d ohlapna prevoda" msgstr[3] ", %d ohlapni prevodi" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1774,17 +1771,17 @@ msgstr[2] ", %d neprevedeni sporočili" msgstr[3] ", %d neprevedena sporočila" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Uporaba: %s [IZBIRA] datoteka.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Besedilni opis prevodov pretvorimo v binarni katalog sporočil.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1793,17 +1790,17 @@ "Če je pri dolgi obliki izbire naveden obvezen argument, je ta obvezen\n" "tudi za kratko obliko. Enako za neobvezne argumente.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " datoteka.po ... vhodne datoteke\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Način delovanja:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1812,7 +1809,7 @@ " -j, --java javanski način: ustvarimo javanski razred\n" " ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1821,12 +1818,12 @@ " --java2 kot --java, privzeta je java2 (JDK 1.2 ali " "več)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp način C#: ustvarimo .NET-datoteko .dll\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1834,43 +1831,43 @@ msgstr "" " --csharp-resources način C#: ustvarimo .NET-datoteko z viri\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl način tcl: ustvarimo datoteko tcl/msgcat .msg\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt način Qt: ustvarimo datoteko .qm za Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict izpis v strogi obliki Uniforum brez razširitev " "GNU\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" "Če je izhodna datoteka enaka -, se rezultat izpiše na standardni izhod.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Izbira izhodne datoteke v javanskem načinu:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=SREDSTVO ime sredstva\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1878,13 +1875,13 @@ msgstr "" " -l, --locale=JJ_DD jezikovno okolje (jezik ali jezik_država)\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d IMENIK korenski imenik hierarhije razredov\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1898,12 +1895,12 @@ "podani\n" "imenik.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Položaj izhodne datoteke v načinu C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1912,7 +1909,7 @@ " -d IMENIK korenski imenik za krajevno odvisne datoteke ." "dll\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1921,17 +1918,17 @@ "Izbiri -l in -d sta obvezni. Datoteka .dll se zapiše v podimenik podanega\n" "imenika; ime podimenika ustreza oznaki izbrane krajevne prilagoditve.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Izbira izhodne datoteke v načinu tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr " -d IMENIK korenski imenik hierarhije razredov\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1939,12 +1936,12 @@ msgstr "" "Izbiri -l in -d sta obvezni. Datoteka .msg se zapiše v podani imenik.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Interpretacija vhodne datoteke:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1955,20 +1952,20 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format preverimo od jezika odvisne formatne nize\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr " --check-header preverimo obstoj in vsebino glave\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1977,7 +1974,7 @@ " --check-domain preverimo morebitna nesoglasja med direktivo\n" " domene in izbiro --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1986,7 +1983,7 @@ " -C, --check-compatibility preverimo združljivost GNU gettext z X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1996,13 +1993,13 @@ " --check-accelerators[=ZNAK] preverimo, ali obstajajo bližnjice za\n" " menujske izbire\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr "" " -f, --use-fuzzy uporabimo ohlapne samodejno prevedene prevode\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2010,7 +2007,7 @@ " -a, --alignment=ŠTEVILO poravnava nizov na dano ŠTEVILO bajtov " "(privzeto %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" @@ -2018,85 +2015,86 @@ " --no-hash binarni katalog sporočil bo brez razpršene " "tabele\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics s statistiko glede prevodov\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose z dodatnimi sporočili med izvajanjem\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "opozorilo: glava datoteke PO ni veljavna ali pa manjka\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "opozorilo: pretvorba v navedeni nabor znakov ne bo delovala\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "opozorilo: glava datoteke PO ni razberljiva\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "opozorilo: starejše izdaje msgfmt bodo pri tem javile napako\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "ime domene \"%s\" ni primerno kot ime datoteke" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "ime domene \"%s\" ni primerno kot ime datoteke: uporabimo predpono" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "direktiva »domain %s« ni bila upoštevana" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "prazno polje »msgstr« zavrženo" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "ohlapni vnos za polje »msgstr« zavržen" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: opozorilo: vhodna datoteka vsebuje ohlapne (fuzzy) prevode" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "napaka pri branju \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" -msgstr "izbire »%c« ni moč uporabiti, preden je izbrano »J«, »K«, »T«, »C« ali »X«" +msgstr "" +"izbire »%c« ni moč uporabiti, preden je izbrano »J«, »K«, »T«, »C« ali »X«" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2105,7 +2103,7 @@ "Izvlečemo vsa sporočila iz kataloga prevodov, ki ustrezajo danemu vzorcu ali\n" "pripadajo dani izvorni datoteki.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2186,7 +2184,7 @@ " -v, --invert-match izpiši le sporočila, ki ne ustrezajo nobenemu\n" " od podanih kriterijev\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2194,18 +2192,18 @@ " --escape z ubežnimi sekvencami v skladnji C, brez \n" " razširjenega nabora znakov\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output izhod abecedno urejen po sporočilih\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file izhod abecedno urejen po izvornih datotekah\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2215,7 +2213,7 @@ "spremenljivko LANG, kot je opisano v datoteki ABOUT-NLS.\n" "Brez tega ne morete preizkusiti vaših prevodov.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2226,12 +2224,12 @@ "Prosim, izberite jezikovno okolje z izbiro --locale, ali pa\n" "določite izhodno datoteko PO z izbiro --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Ustvarjena datoteka %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2240,12 +2238,12 @@ "Ustvarimo novo datoteko PO in metainformacije dopolnimo z vrednostmi iz\n" "uporabnikovega jezikovnega okolja.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=DATOTEKA vhodna datoteka POT\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2256,12 +2254,12 @@ "imeniku.\n" "Če je enaka -, se bere standardni vhod.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=DATOTEKA izhod zapisujemo v navedeno DATOTEKO\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2271,12 +2269,12 @@ "nastavitev uporabnikovega jezikovnega okolja. Če je kot izhodna datoteka \n" "podan -, se rezultat izpiše na standardni izhod.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=JJ_DD določitev ciljnega jezikovnega okolja\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" @@ -2284,7 +2282,7 @@ " --no-translator privzamemo, da je datoteka PO samodejno " "ustvarjena\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2292,12 +2290,12 @@ "Našli smo več kot eno datoteko .pot.\n" "Prosim, določite vhodno datoteko .pot z izbiro --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "napaka pri branju trenutnega imenika" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2305,14 +2303,14 @@ "V trenutnem imeniku ni najti nobene datoteke .pot.\n" "Prosim, določite vhodno datoteko .pot z izbiro --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "podproces %s neuspešen z izhodno kodo %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2327,28 +2325,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Slovenski prevodi paketa %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "trenutno izbrani nabor \"%s\" ni prenosljivo ime kodnega nabora" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "v vhodni datoteki sta dva različna nabora znakov, \"%s\" in \"%s\"" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "vhodna datoteka »%s« ne vsebuje glave z določitvijo nabora znakov" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2357,19 +2355,19 @@ "domena \"%s\" v vhodni datoteki »%s« ne vsebuje glave z določitvijo nabora " "znakov" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "ciljni nabor \"%s\" ni prenosljivo ime kodnega nabora." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "opozorilo: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2379,7 +2377,7 @@ "UTF8.\n" "Izhod je pretvorjen v UTF8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2387,12 +2385,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Vhodne datoteke vsebujejo sporočila v različnih kodnih naborih, med %s in %" -"s.\n" +"Vhodne datoteke vsebujejo sporočila v različnih kodnih naborih, med %s in " +"%s.\n" "Izhod je pretvorjen v UTF8.\n" "Drugačen kodni nabor lahko določite z izbiro --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2407,7 +2405,7 @@ "so kodirani skladno z UTF-8 od samega začetka, torej v datotekah z izvorno " "kodo.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2420,12 +2418,12 @@ "Izhod »%s« bo morda napačen.\n" "Predlagane rešitve za to težavo so:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Nastavite LC_ALL na jezikovno okolje s kodnim naborom %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2436,7 +2434,7 @@ " zatem uporabite »%s«,\n" " in ga končno z ukazom »msgconv« pretvorite nazaj v %s.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2449,7 +2447,7 @@ " zatem uporabite »%s«,\n" " in ga končno z ukazom »msgconv« pretvorite nazaj v %s.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2460,25 +2458,25 @@ "Izhod »%s« bo morda napačen.\n" "Mogoča rešitev za to težavo je, da nastavite LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "rezultat izraza za izbiro množinske oblike je lahko negativna vrednost" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu, izraz za izbiro množinske oblike pa lahko da vrednosti do %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "izraz za izbiro množinske oblike lahko povzroči deljenje z nič" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "izraz za izbiro množinske oblike lahko povzroči prekoračitev obsega" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2486,32 +2484,32 @@ "izraz za izbiro množinske oblike lahko povzroči aritmetične napake, morda\n" "deljenje z nič" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Poskusite uporabiti naslednje, veljavno za %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "katalog sporočil vsebuje množinske oblike prevodov," -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "v glavi pa manjka določilo \"plural=IZRAZ\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "v glavi pa manjka določilo \"nplurals=ŠTEVILO\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "neveljavna vrednost nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "neveljaven izraz za množinske oblike" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" @@ -2521,7 +2519,7 @@ # msgstr[1] "...nekatera sporočila pa imajo samo %lu množinsko obliko" # msgstr[2] "...nekatera sporočila pa imajo samo %lu množinski obliki" # msgstr[3] "...nekatera sporočila pa imajo samo %lu množinske oblike" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2535,7 +2533,7 @@ # msgstr[1] "...nekatera sporočila pa imajo %lu množinsko obliko" # msgstr[2] "...nekatera sporočila pa imajo %lu množinski obliki" # msgstr[3] "...nekatera sporočila pa imajo %lu množinske oblike" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2544,7 +2542,7 @@ msgstr[2] "nekatera sporočila pa imajo %lu množinski obliki" msgstr[3] "nekatera sporočila pa imajo %lu množinske oblike" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2552,81 +2550,81 @@ "katalog sporočil vsebuje množinske oblike, manjka pa glava z določili\n" "\"Plural-Forms: nplurals=ŠTEVILO; plural=IZRAZ;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "polji ,msgid` in ,msgid_plural` se ne začneta obe z ,\\n`" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "polji »msgid« in »msgstr[%u]« se ne začneta obe z »\\n«" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "polji »msgid« in »msgstr« se ne začneta obe z »\\n«" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "polji »msgid« in »msgid_plural« se ne končata obe z »\\n«" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "polji »msgid« in »msgstr[%u]« se ne končata obe z »\\n«" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "polji »msgid« in »msgstr« se ne končata obe z »\\n«" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "rokovanje z množinskimi oblikami je razširitev GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "v msgstr manjka oznaka bližnjice »%c«" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "v msgstr je preveč oznak bližnjic »%c«" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "v glavi manjka polje »%s«\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "polje »%s« v glavi se mora začeti na začetku vrstice\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "nekatera polja v glavi imajo še vedno začetne privzete vrednosti\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "polje »%s« ima še vedno začetno privzeto vrednost\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "nekatera polja v glavi imajo še vedno začetne privzete vrednosti\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: vhod ni veljaven v kodnem naboru »%s«" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: napaka pri pretvorbi iz nabora znakov \"%s\" v nabor \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "v vhodni datoteki manjka glava z določilom kodnega nabora" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2635,7 +2633,7 @@ "Pretvorba iz »%s« v »%s« ni mogoča. %s kliče iconv(), ta pa ne podpira te " "pretvorbe." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2644,26 +2642,26 @@ "Pretvorba iz »%s« v »%s« privede do podvojevanje: nekateri različni ključi " "msgid postanejo enaki." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "" -"Pretvorba iz »%s« v »%s« ni mogoča. %s kliče iconv(), vendar ta izvod programa " -"ni preveden za uporabo iconv()." +"Pretvorba iz »%s« v »%s« ni mogoča. %s kliče iconv(), vendar ta izvod " +"programa ni preveden za uporabo iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s je veljavno edino z %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "vrsta varnostne kopije" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2686,17 +2684,17 @@ "pa bodo strojno ustvarjeni komentarji in podatki o številki vrstice. Kjer\n" "natančnega prevoda ni, se uporabi ohlapni (fuzzy) algoritem.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po prevodi\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot sklici na vire\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2706,7 +2704,7 @@ "navedemo\n" " lahko več kot eno\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2715,29 +2713,29 @@ " -U, --update posodobi def.po,\n" " če je def.po že posodobljen, ne stori nič\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Mesto izhodne datoteke v posodobitvenem načinu:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Rezultat se zapiše nazaj v datoteko def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr "" " --backup=TIP izdelamo varnostno kopijo datoteke def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " -S, --suffix=PRIPONA pripona varnostne kopije naj bo PRIPONA\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2756,7 +2754,7 @@ " sicer enostavne\n" " simple, never vedno enostavne varnostne kopije\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2766,12 +2764,7 @@ "Varnostna kopija ima pripono »~«, razen če ni z izbiro --suffix ali\n" "spremenljivko SIMPLE_BACKUP_SUFFIX nastavljeno drugače. \n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching ne uporabljamo ohlapnega ujemanja\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2779,22 +2772,22 @@ " --previous obdržimo prejšnja polja msgid prevedenih " "sporočil\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent brez kazalnika poteka\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "pri tem sporočilu bi morale biti določene množinske oblike" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "pri tem sporočilu ne bi smele biti določene množinske oblike" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2803,27 +2796,29 @@ "%sPrebrano %ld starih + %ld referenčnih, združenih %ld, ohlapnih %ld, " "manjkajočih %ld, opuščenih %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " opravljeno.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s in izrecna imena datotek se med seboj izključujejo" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Uporaba: %s [IZBIRA] [DATOTEKA]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Pretvorba kataloga sporočil iz binarne oblike .mo v obliko Uniforum .po.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2832,12 +2827,12 @@ " -j, --java javanski način: ustvarimo javanski razred\n" " ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp način C#: vhod je .NET-datoteka .dll\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2846,24 +2841,24 @@ " --csharp-resources način virov C#: vhod je .NET-datoteka ." "resources\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl način tcl: vhod je datoteka tcl/msgcat .msg\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " DATOTEKA ... datoteka MO (ali več datotek MO)\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Izbira izhodne datoteke v javanskem načinu:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2874,12 +2869,12 @@ "podčrtajem,\n" "pridá ime jezikovnega okolja. Razred je določen s spremenljivko CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Mesto izhodne datoteke v načinu C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2888,12 +2883,12 @@ "Izbiri -l in -d sta obvezni. Datoteka .dll se nahaja v podimeniku podanega\n" "imenika; ime podimenika ustreza oznaki izbrane krajevne prilagoditve.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Izbira izhodne datoteke v načinu tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2901,18 +2896,18 @@ msgstr "" "Izbiri -l in -d sta obvezni. Datoteka .msg se zapiše v podani imenik.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent izpis datoteke PO z zamiki\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict izpis v strogi obliki Uniforum, brez razširitev\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2933,12 +2928,12 @@ "ohranijo le komentarji prvega prevoda. Ohranijo se vsi podatki o mestu\n" "sporočila v izvorni datoteki. Z izbiro --unique se podvojena sporočila zavržejo.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated izpišemo le podvojena sporočila\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2947,7 +2942,7 @@ " -u, --unique vsako sporočilo izpišemo le enkrat,\n" " dvojnike zavržemo\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3033,65 +3028,65 @@ msgid "plural form has wrong index" msgstr "množinska oblika ima napačen indeks" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "preveč napak, nadaljevanje ni možno" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "neveljavno večzložno zaporedje" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "nepopolno večzložno zaporedje na koncu datoteke" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "nepopolno večzložno zaporedje na koncu vrstice" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv neuspešen" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "ključna beseda \"%s\" neprepoznana" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "neveljavno krmilno zaporedje" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "znak za konec datoteke sredi niza" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "znak za konec vrstice sredi niza" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "razmejilnik konteksta znotraj niza" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "ta datoteka morda ne vsebuje direktiv domene" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "podvojena definicija sporočila" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "to je kraj prve definicije" @@ -3176,17 +3171,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "napaka pri pretvorbi iz nabora znakov \"%s\" v nabor \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "pričakujemo dva argumenta" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Uporaba: %s [IZBIRA] URL DATOTEKA\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3195,11 +3190,26 @@ "Prinese in izpiše vsebino podanega URL. Če URL ni dosegljiv, se uporabni\n" "krajevno dostopna DATOTEKA.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "napaka pri pisanju na standardni izhod" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3242,43 +3252,43 @@ "katalog sporočil vsebuje množinske oblike, izbrani izhodni zapis pa jih ne " "podpira" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "izhodne datoteke \"%s\" ni mogoče ustvariti" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standardni izhod" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "ustvarjanje imenika »%s« neuspešno" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "prevajanje razreda C# neuspešno, poskusite z --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "prevajanje razreda C# neuspešno" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "ni veljavno javansko ime razreda: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "prevajanje javanskega razreda neuspešno, uporabite --verbose ali nastavite " "$JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "prevajanje javanskega razreda neuspešno, poskusite nastaviti $JAVAC" @@ -3288,14 +3298,14 @@ msgid "error while opening \"%s\" for writing" msgstr "napaka pri odpiranju \"%s\" za pisanje" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "internacionalizirana sporočila ne smejo vsebovati ubežne sekvence »\\%c«" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3309,7 +3319,7 @@ "vi. Razmislite o uporabi sporočil v naboru znakov ASCII.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3334,8 +3344,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3359,7 +3369,7 @@ msgid "error while writing to %s subprocess" msgstr "napaka pri pisanju v podproces %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3367,7 +3377,7 @@ "katalog sporočil vsebuje od konteksta odvisne prevode\n" " vendar zapis virov C# ne podpira kontekstov\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3391,36 +3401,34 @@ "katalog sporočil vsebuje množinske oblike, vendar katalog sporočil TCL\n" "ne podpira množinskih oblik\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: opozorilo: nezaključen niz" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: opozorilo: nezaključen regularni izraz" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: opozorilo: nezaključena znakovna konstanta" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: opozorilo: nezaključen niz" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Ne-ASCII niz na %s%s.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3429,7 +3437,7 @@ "%s:%d: Neveljavno večbajtno zaporedje.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3438,7 +3446,7 @@ "%s:%d: Nepopolno dolgo večbajtno zaporedje.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3447,7 +3455,7 @@ "%s:%d: Nezaključeno večbajtno zaporedje na koncu datoteke.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3456,12 +3464,12 @@ "%s:%d: Nezaključeno večbajtno zaporedje na koncu vrstice.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: napaka v iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3470,34 +3478,34 @@ "%s:%d: Neveljavno večbajtno zaporedje.\n" "Prosim, določite vhodni nabor znakov z izbiro --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: opozorilo: neveljavni unikodni znak" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: opozorilo: nezaključen konstanten nit" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" "%s:%d: opozorilo: zaklepaj »)« na mestu, kjer pričakujemo zaviti zaklepaj »}«" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" "%s:%d: opozorilo: zaviti zaklepaj »}« na mestu, kjer pričakujemo zaklepaj »)«" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3506,50 +3514,49 @@ "Programski jezik \"glade\" ni podprt. %s se naslanja na expat().\n" "Ta izdaja je bila prevedena brez expat().\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: opozorilo: osamljen surogat U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: zaključka niza \"%s\" ni najti pred koncem datoteke" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: manjkajoči zaviti zaklepaj v \\x{ŠESTNAJSTIŠKO}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: neveljavna interpolacija (\"\\l\") osembitnega znaka \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: neveljavna interpolacija (\"\\u\") osembitnega znaka \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: neveljavna interpolacija spremenljivke pri »%c«" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: neveljavna interpolacija (\"\\L\") osembitnega znaka \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: neveljavna interpolacija (\"\\U\") osembitnega znaka \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3558,7 +3565,7 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3570,7 +3577,7 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3582,7 +3589,7 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3594,7 +3601,7 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3606,7 +3613,7 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3618,27 +3625,27 @@ "komentarjem,\n" "kot je opisano na http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Neznani nabor znakov »%s«. Nadaljujemo z ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: neveljavna definicija niza" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: za # manjka številka" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: niz ni veljaven izraz" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3647,27 +3654,28 @@ "%s:%lu: opozorilo: skladnja $\"...\" je odsvetovana iz varnostnih razlogov, " "uporabite raje eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "pri izpisu na standardni izhod ne moremo uporabiti --join-existing" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext ne deluje brez ključnih besed, ki naj jih išče" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" -msgstr "opozorilo: vrsta datoteka »%s« s pripono »%s« ni prepoznana; poskušamo C" +msgstr "" +"opozorilo: vrsta datoteka »%s« s pripono »%s« ni prepoznana; poskušamo C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Iz vhodnih datotek izvlečemo prevedljive nize znakov.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3675,25 +3683,25 @@ msgstr "" " -d, --default-domain=DOMENA namesto messages.po je privzeta DOMENA.po\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr "" " -o, --output-file=DATOTEKA izhod zapisujemo v navedeno DATOTEKO\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" " -p, --output-dir=IMENIK izhodne datoteke pišemo v navedeni IMENIK\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Izbira vhodnega jezika:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3714,19 +3722,19 @@ "NXStringTable,\n" " RST, glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ okrajšava za --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "Privzeto se jezik poskusi uganiti iz pripone vhodne datoteke.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3735,44 +3743,47 @@ " --from-code=NABOR nabor znakov vhodnih datotek\n" " (razen za Python, Tcl in Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Privzeti nabor znakov vhodnih datotek je ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing združi sporočila z obstoječo datoteko\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=DATOTEKA.po vnosov iz navedene DATOTEKE ne izvlečemo\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ZNAČKA] v vhodno datoteko dodamo komentar z " "navedeno\n" " ZNAČKO\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Izbire, specifične za jezik:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all iz datotek potegnemo vse nize\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3786,18 +3797,18 @@ "java,\n" " C#, awk, TCL, perl, PHP, GCC-vir, glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=BESEDA] iskanje po dodatnih ključih besedah " "(prazen\n" " niz BESEDA pomeni brez uporabe privzetih\n" " ključnih besed)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3807,7 +3818,7 @@ " --flag=BESEDA:ARG:STIKALO dodatno stikalo za nize znotraj argumenta\n" " številka ARG ključne besede BESEDA\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3821,37 +3832,37 @@ "java,\n" " C#, awk, YCP, TCL, perl, PHP, GCC-vir)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs razumi trigrafe ANSI C na vhodu\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (samo jeziki C, C++ in predmetni C)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt prepoznaj oblikovne nize Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (samo jezik C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde prepoznaj oblikovne nize KDE 4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost prepoznaj oblikovne nize Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" @@ -3859,19 +3870,19 @@ " --debug bolj razčlenjen rezultat razpoznave\n" " oblikovnega niza\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output zapiši javansko datoteko .properties\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=NIZ v izhodu nastavimo nosilca avtorskih pravic " "na NIZ\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3879,18 +3890,18 @@ " --foreign-user brez copyrighta FSF v izpisu za tuje " "uporabnike\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr " --package-name=PAKET nastavi ime PAKETA na izhodu\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --package-version=NIZ v izhodu nastavimo različico paketa na NIZ\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3898,38 +3909,55 @@ " --msgid-bugs-address=EPOŠTA@NASLOV naslov za sporočila o napakah " "msgid\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr " -m, --msgstr-prefix[=NIZ] NIZ ali \"\" kot predpona za msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr " -M, --msgstr-suffix[=NIZ] NIZ ali \"\" kot pripona za msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Argument --flag nima skladnje :<št-arg>:[pass-]: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standardni vhod" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: opozorilo: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3938,16 +3966,16 @@ "Čeprav je uporabljen na mestu oblikovnega niza, %s ni veljaven oblikovni niz " "%s. Razlog: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"Čeprav je deklariran kot tak, %s ni veljaven oblikovni niz za %s. Razlog: %" -"s\n" +"Čeprav je deklariran kot tak, %s ni veljaven oblikovni niz za %s. Razlog: " +"%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3960,7 +3988,7 @@ "Prosimo, razmislite o uporabi oblikovnega niza s poimenovanimi argumenti\n" "ter preslikave namesto n-terčka argumentov.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3970,28 +3998,28 @@ "gettext(\"\") vrne glavo z metapodatki, ne pa\n" "praznega niza.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "dvoumno določen argument za ključno besede »%.*s«" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "opozorilo: manjkajoči kontekst za ključno besedo »%.*s«" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" "opozorilo: manjkajoči kontekst za množinski argument ključne besede »%.*s«" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "neujemanje kontekstov med edninsko in množinsko obliko" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4003,7 +4031,7 @@ "spremenljivko MSGID_BUGS_ADDRESS tam, sicer pa \n" "z izbiro --msgid-bugs-address v ukazni vrstici.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "jezik »%s« ni poznan" @@ -4012,6 +4040,30 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: nedovoljena izbira -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle neuspešen z izhodno kodo 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Funkcija še ni izvedena." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "s podprocesom %s ni mogoče vzpostaviti nebločne V/I povezave" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "povezava s podprocesom %s neuspešna" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "branje izhoda podprocesa %s neuspešno" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "podproces %s zaključil z izhodno kodo %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "polje »%s« ima še vedno začetno privzeto vrednost\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Večterni sklici na %%%c." @@ -5026,8 +5078,8 @@ #~ "Generate binary message catalog from textual translation description.\n" #~ "\n" #~ "Mandatory arguments to long options are mandatory for short options too.\n" -#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %" -#~ "d)\n" +#~ " -a, --alignment=NUMBER align strings to NUMBER bytes (default: " +#~ "%d)\n" #~ " -c, --check perform language dependent checks on " #~ "strings\n" #~ " -D, --directory=DIRECTORY add DIRECTORY to list for input files " Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/sr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/sr.gmo differ diff -Nru gettext-0.17/gettext-tools/po/sr.po gettext-0.18.1.1/gettext-tools/po/sr.po --- gettext-0.17/gettext-tools/po/sr.po 2007-11-02 02:24:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/sr.po 2010-06-06 12:49:58.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.14\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2004-02-16 16:00+0100\n" "Last-Translator: Danilo Segan \n" "Language-Team: Serbian \n" +"Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +32,22 @@ msgid "Valid arguments are:" msgstr "Исправни аргументи су:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "не могу да нађем привремени директоријум, поставите $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "не могу да направим привремени директоријум помоћу шаблона „%s“" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "не могу да направим излазну датотеку „%s“" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "не могу да направим привремени директоријум помоћу шаблона „%s“" @@ -55,44 +56,44 @@ msgid "write error" msgstr "грешка уписа" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "грешка приликом отварања „%s“ за читање" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "не могу да отворим резервну датотеку „%s“ ради уписа" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "грешка при читању „%s“" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "грешка при упису „%s“" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "грешка након читања „%s“" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "неуспешан fdopen()" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, fuzzy, c-format msgid "C# compiler not found, try installing pnet" msgstr "" @@ -106,74 +107,73 @@ "Нисам нашао виртуелну Јава машину, покушајте да инсталирате gij или да " "поставите $JAVA" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Непозната системска грешка" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s: неуспешан подпроцес" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: опција „%s“ није једнозначна\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: опција „--%s“ не дозвољава аргументе\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: опција „%c%s“ не дозвољава аргументе\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: опција „%s“ захтева аргумент\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: непозната опција „--%s“\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: непозната опција „%c%s“\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: неисправна опција %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: неисправна опција -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: опција захтева аргумент -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: опција „-W %s“ није једнозначна\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: опција „-W %s“ не дозвољава аргумент\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: опција „%s“ захтева аргумент\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -185,20 +185,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "не могу да направим „%s“" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "грешка при писању датотеке „%s“" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -212,20 +212,20 @@ "Нисам нашао виртуелну Јава машину, покушајте да инсталирате gij или да " "поставите $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "У/И грешка подпроцеса %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "меморија исцрпљена" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -244,71 +244,70 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "Неуспешан DuplicateHandle са грешком 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "неуспешан _open_osfhandle" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "не могу да направим излазну датотеку „%s“" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "подпроцес од %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "подпроцес од %s је примио кобни сигнал %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "„%s“ није исправна ниска формата %s, за разлику од „msgid“. Разлог: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "спецификација формата за %u. аргумент, као у „%s“, не постоји у „msgid“" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "спецификација формата за %u. аргумент не постоји у „%s“" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "спецификације формата у „msgid“ и „%s“ за %u. аргумент нису исте" #: src/format-boost.c:449 @@ -335,9 +334,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "Ниска позива %u. аргумент, али занемарује %u. аргумент." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "не поклапа се број спецификација формата у „msgid“ и „%s“" #: src/format-csharp.c:88 src/format-java.c:205 @@ -377,48 +376,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Ниска се завршава усред директиве." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, fuzzy, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "У %u. директиви, %d. аргумент је негативан." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, fuzzy, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "У %u. директиви, нису дозвољене назнаке пре „%c“." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, fuzzy, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "У %u. директиви, аргумент са бројем 0 није позитиван цео број." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "У %u. директиви, нису дозвољене назнаке пре „%c“." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, fuzzy, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "У %u. директиви, %d. аргумент је негативан." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "У %u. директиви, нису дозвољене назнаке пре „%c“." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +msgid "'%s' uses %%m but '%s' doesn't" msgstr "" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "" #: src/format-invalid.h:22 @@ -499,8 +498,8 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" -"У %u. директиви, број аргумента није праћен запетом и неким од „%s“, „%s“, „%" -"s“, „%s“." +"У %u. директиви, број аргумента није праћен запетом и неким од „%s“, „%s“, " +"„%s“, „%s“." #: src/format-java.c:572 #, c-format @@ -515,22 +514,21 @@ msgstr "У %u. директиви, избор садржи број који није праћен „<“, „#“ или „%s“." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "спецификација формата за аргумент {%u}, као у „%s“, не постоји у „msgid“" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "спецификација формата за аргумент {%u} не постоји у „%s“" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "нису једнаке спецификације формата у „msgid“ и „%s“ за аргумент {%u}" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -540,17 +538,17 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" -"У %u. директиви, %u. параметар је типа „%s“ а очекиван је параметар типа „%" -"s“." +"У %u. директиви, %u. параметар је типа „%s“ а очекиван је параметар типа " +"„%s“." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "У %u. директиви, дато је превише параметара; очекивах највише %u параметар." msgstr[1] "" @@ -602,13 +600,13 @@ msgstr "Ниска се позива на неке аргументе на несагласан начин." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "спецификације формата у „msgid“ и „%s“ нису еквивалентне" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "спецификакције формата у „%s“ не представљају подскуп оних из „msgid“" #: src/format-perl.c:433 @@ -619,12 +617,12 @@ msgstr "" "У %u. директиви, ознака величине је несагласна са ознаком претварања „%c“." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "спецификација формата за аргумент „%s“ не постоји у „%s“" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -632,48 +630,45 @@ "Ниска позива аргументе и кроз имена аргумената и кроз неименоване наводе " "аргумената." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "Ниска позива аргумент са именом „%s“ на несагласне начине." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "спецификација формата у „msgid“ очекује мапирање, а они у „%s“ очекују н-" "торку" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "спецификација формата у „msgid“ очекује н-торку, а они у „%s“ очекују " "мапирање" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "спецификација формата за аргумент „%s“, као у „%s“, не постоји у „msgid“" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "нису исте спецификације формата у „msgid“ и „%s“ за аргумент „%s“" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -714,11 +709,11 @@ "1 and 9." msgstr "Знак који завршава %u. директиву није цифра између 1 и 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -727,38 +722,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Написа %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "превише аргумената" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Пробајте „%s --help“ за више података.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Употреба: %s [ОПЦИЈА]\n" @@ -793,29 +788,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address адресе за име рачунара\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Обавештајни излаз:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help прикажи ову помоћ и заврши\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version испиши податке о издању и заврши\n" @@ -824,11 +819,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Пријавите грешке на .\n" @@ -837,30 +832,30 @@ msgid "could not get host name" msgstr "не могу да сазнам име домаћина" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "дозвољена највише једна улазна датотека" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s и %s су међусобно искључиви" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Употреба: %s [ОПЦИЈА] [УЛАЗНА-ДАТОТЕКА]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -869,32 +864,32 @@ "Филтрира поруке каталога превода према њиховим особинама, и барата\n" "тим особинама.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "Обавезни аргументи дугих опција су обавезни и за кратке опције.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Путања до улазне датотеке:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " УЛАЗНА-ДАТОТЕКА улазна PO датотека\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -902,31 +897,31 @@ " -D, --directory=ДИР додај ДИР у списак за тражење улазних " "датотека\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Уколико није дата улазна датотека или је „-“, чита се стандардни улаз.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Путања излазне датотеке:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=ДАТОТЕКА испиши излаз у наведену датотеку\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -936,85 +931,85 @@ "или\n" "ако је она „-“.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Избор поруке:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated задржи преведене, уклони непреведене поруке\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" " --untranslated задржи непреведене, уклони преведене поруке\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy уклони поруке означене као „нејасне“\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy задржи поруке означене као „нејасне“\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete уклони застареле поруке #~\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete задржи застареле поруке #~\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Баратање особинама:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy означи све поруке као „нејасне“\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy означи све поруке као не-„нејасне“\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete означи све поруке као застареле\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete означи све поруке као не-застареле\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, fuzzy, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr " --clear-fuzzy означи све поруке као не-„нејасне“\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=ДАТОТЕКА.po баратај једино пољима уписаним у ДАТОТЕКА.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1022,28 +1017,28 @@ " --ignore-file=ДАТОТЕКА.po баратај једино пољима која нису у ДАТОТЕКА." "po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy исто што и --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete исто што и --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Синтакса улазне датотеке:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1051,8 +1046,8 @@ " -P, --properties-input улазна датотека је у синтакси Јава ." "properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1062,17 +1057,35 @@ "GNUstep\n" " .strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Детаљи излаза:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1080,9 +1093,9 @@ " -e, --no-escape не користи C истицање у излазу " "(подразумевано)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1090,28 +1103,28 @@ " -E, --escape користи C истицање у излазу, без проширених \n" " знакова\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po испиши ПО датотеку чак и ако је празна\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent испиши ПО датотеку користећи стил увлачења\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location не исписуј редове „#: датотека:ред“\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1119,8 +1132,8 @@ " -n, --add-location образуј редове „#: датотека:" "ред“ (подразумевано)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1128,32 +1141,32 @@ " --strict испиши ПО датотеку строго сагласну са " "Унифорумом\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output испиши Јава .properties датотеку\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output испиши NeXTstep/GNUstep .strings датотеку\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=БРОЈ постави ширину излазне странице\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1163,31 +1176,31 @@ "ширине \n" " излазне странице, у више редова\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output образуј поређани излаз\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file поређај излаз по положају у датотеци\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "дат је немогућ критеријум избора (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Употреба: %s [ОПЦИЈА] [УЛАЗНА-ДАТОТЕКА]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1209,24 +1222,24 @@ "осим ако се користи --use-first, када се узимају из прве ПО датотеке \n" "која их дефинише. Положаји у датотекама из свих ПО датотека се гомилају.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " УЛАЗНА-ДАТОТЕКА ... улазне датотеке\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=ДАТОТЕКА преузми списак улазних датотека из ДАТОТЕКА\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Уколико је улазна датотека „-“, чита се стандардни улаз.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1235,7 +1248,7 @@ " -<, --less-than=БРОЈ испиши поруке са мање од оволико дефиниција,\n" " уобичајено је бесконачно ако није постављено\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1244,7 +1257,7 @@ " -<, --more-than=БРОЈ испиши поруке са више од оволико дефиниција,\n" " уобичајено је 0 ако није постављено\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1253,8 +1266,8 @@ " -u, --unique скраћено за --less-than=2, захтева да\n" " се испишу једино јединствене поруке\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1262,8 +1275,8 @@ " -P, --properties-input улазне датотеке користе синтаксу за Јава ." "properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1273,12 +1286,12 @@ "GNUstep \n" " .strings датотеке\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=ИМЕ кодирање за излаз\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1287,41 +1300,33 @@ " --use-first користи први доступни превод за сваку поруку,\n" " не спајај више превода\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "нису дате улазне датотеке" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "неопходне су тачно две улазне датотеке" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Употреба: %s [ОПЦИЈА] подр.po реф.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1338,22 +1343,22 @@ "превели баш сваку поруку вашег програма. Када не може да нађе тачно \n" "поклапање, користи се нејасно поклапање ради боље дијагностике.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " подр.po преводи\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " реф.pot референце на изворне поруке\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Измењивачи рада:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1361,48 +1366,53 @@ msgstr "" " -m, --multi-domain примени реф.pot на сваки домен у подр.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching не користи нејасно поклапање\n" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " -f, --use-fuzzy користи нејасне преводе у излазу\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, fuzzy, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" " --untranslated задржи непреведене, уклони преведене поруке\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "упозорење: ова порука се не користи" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "ова порука се користи али није дефинисана..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...али ова дефиниција је слична" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "ова порука се користи али није дефинисана у %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "упозорење: ова порука се не користи" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1410,12 +1420,12 @@ msgstr[1] "нађох %d кобне грешке" msgstr[2] "нађох %d кобних грешака" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "обавезно је навести бар две датотеке" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1434,7 +1444,7 @@ "извучене примедбе ће се очувати, али само из прве ПО датотеке која их \n" "дефинише. Положаји у датотекама из свих ПО датотека ће се гомилати.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1443,41 +1453,41 @@ " ->, --more-than=БРОЈ испиши поруке са више од оволико дефиниција,\n" " уобичајено је 1 ако није постављено\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header изостави заглавље са пољем „msgid \"\"“\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Претвара каталог превода у друго кодирање знакова.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Одредиште претварања:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Подразумевано кодирање је кодирање текућег локалитета.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent стил излаза са увлачењем\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location избаци редове „#: датотека:ред“\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1485,28 +1495,28 @@ " --add-location сачувај редове „#: датотека:" "ред“ (подразумевано)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict строги Унифорум стил исписа\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "није наведена улазна датотека" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "неопходна је тачно једна улазна датотека" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Употреба: %s [ОПЦИЈА] УЛАЗНА-ДАТОТЕКА\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1519,22 +1529,22 @@ "направљена помоћу xgettext-а). Непреведена поља добијају превод \n" "идентичан са msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " УЛАЗНА-ДАТОТЕКА улазна PO или POT датотека\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "недостаје име наредбе" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Употреба: %s [ОПЦИЈА] НАРЕДБА [ОПЦИЈА-НАРЕДБЕ]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1548,7 +1558,7 @@ "једном за сваки превод. Његов излаз постаје улаз msgexec-а. Повратни\n" "код msgexec-а је највећи повратни код кроз све позиве програма.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1557,42 +1567,42 @@ "Нарочита уграђена наредба звана „0“ исписује превод, праћен нула-бајтом.\n" "Излаз „msgexec 0“ је погодан као улаз за „xargs -0“.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=УЛАЗНА-ДАТОТЕКА улазна ПО датотека\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "неуспешан упис на стандардни излаз" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "неуспешан упис у подпроцес %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "недостаје име филтера" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "обавезно је навести бар један sed спис" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Употреба: %s [ОПЦИЈА] ФИЛТЕР [ОПЦИЈЕ-ФИЛТЕРА]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Примењује филтер на све преводе из каталога превода.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1601,18 +1611,18 @@ "ФИЛТЕР може бити било који програм који чита превод са стандардног улаза\n" "и уписује измењени превод на стандардни излаз.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Корисне ОПЦИЈЕ-ФИЛТЕРа када је ФИЛТЕР „sed“:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=СПИС додај СПИС међу наредбе за извршавање\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1622,14 +1632,14 @@ " -f, --file=ДАТОТЕКА-СПИСА додај садржај ДАТОТЕКА-СПИСА међу наредбе\n" " које се извршавају\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent избаци аутоматски испис простора шаблона\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1637,80 +1647,62 @@ " --no-escape не користи C истицање у излазу " "(подразумевано)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent стил излаза са увлачењем\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" " --keep-header не мењај поље са заглављем, не филтрирај га\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Још увек није направљено." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "не могу да поставим неблокирајући У/И за подпроцес %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "неуспешно споразумевање са подпроцесом %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "неуспешно читање из подпроцеса %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "подпроцес %s је прекинут уз повратни код %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "аргумент за %s треба да буде један интерпункцијски знак" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "за %s је обавезно навести „-d директоријум“" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "за %s је обавезно навести „-l локалитет“" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s је једино исправно уз %s или %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s је једино исправно уз %s, %s или %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1718,7 +1710,7 @@ msgstr[1] "%d преведене поруке" msgstr[2] "%d преведених порука" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1726,7 +1718,7 @@ msgstr[1] ", %d нејасне поруке" msgstr[2] ", %d нејасних порука" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1734,17 +1726,17 @@ msgstr[1] ", %d непреведене поруке" msgstr[2] ", %d непреведених порука" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Употреба: %s [ОПЦИЈА] датотека.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Образуј бинарни каталог порука из текстуалног описа превода.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1753,17 +1745,17 @@ "Обавезни аргументи за дуге опције су обавезни и за кратке опције.\n" "Слично за необавезне аргументе.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " датотека.po ... улазне датотеке\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Режим рада:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1771,7 +1763,7 @@ msgstr "" " -j, --java Јава режим: образуј Јава класу ResourceBundle\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1780,12 +1772,12 @@ " --java2 налик --java, и претпостави Јава2 (JDK 1.2 или " "новији)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# режим: образуј .NET .dll датотеку\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1794,40 +1786,40 @@ " --csharp-resources Режим са C# ресурсима: образује .NET ." "resources датотеку\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl режим: образуј tcl/msgcat .msg датотеку\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt режим: образуј Qt .qm датотеку\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict омогући строг Унифорум режим\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Уколико је излазна датотека „-“, испис се врши на стандардни излаз.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Путања излазне датотеке у Јава режиму:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=РЕСУРС име ресурса\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1835,7 +1827,7 @@ msgstr "" " -l, --locale=ЛОКАЛИТЕТ име локалитета, или језик или језик_ДРЖАВА\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" @@ -1843,7 +1835,7 @@ " -d ДИРЕКТОРИЈУМ основни директоријум за хијерархију \n" " директоријума класе\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1855,12 +1847,12 @@ "раздвојено подвлаком. Опција -d је обавезна. Класа се уписује под\n" "наведеним директоријумом.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Путања излазне датотеке у C# режиму:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1868,7 +1860,7 @@ msgstr "" " -d ДИРЕКТОРИЈУМ основни директоријум за .dll за локалитет\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1877,18 +1869,18 @@ "Опције -l и -d су обавезне. Датотека .dll се уписује у поддиректоријум \n" "датог директоријума чије име зависи од локалитета.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Путања излазне датотеке у Tcl режиму:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d ДИРЕКТОРИЈУМ основни директоријум .msg каталога порука\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1896,12 +1888,12 @@ msgstr "" "Опције -l и -d су обавезне. Датотека .msg се уписује у дати директоријум.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Обрада улазне датотеке:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1912,20 +1904,20 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format провери ниске формата у зависности од језика\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr " --check-header провери присуство и садржај заглавља\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1934,7 +1926,7 @@ " --check-domain провери сударе међу директивама домена и\n" " опције --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1943,7 +1935,7 @@ " -C, --check-compatibility провери да ли се ГНУ msgfmt понаша као \n" " X/Open msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1954,97 +1946,97 @@ "у \n" " ставкама менија\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy користи нејасне преводе у излазу\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=БРОЈ поравнај ниске на БРОЈ бајтова (обично: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash бинарна датотека неће садржати хеш табелу\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics испиши статистичке податке о преводима\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose опширнији испис\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "упозорење: недостаје или је неисправно заглавље PO датотеке\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "упозорење: претварање скупа знакова неће радити\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "упозорење: заглавље PO датотеке је нејасно\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "упозорење: старија издања msgfmt-а ће овде наићи на грешку\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "име домена „%s“ није прикладно за име датотеке" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "име домена „%s“ није прикладно за име датотеке: користићу префикс" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "занемарена директива „domain %s“" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "занемарен унос са празним „msgstr“" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "занемарен нејасан „msgstr“ унос" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: упозорење: изворна датотека садржи нејасне преводе" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "грешка при читању „%s“" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2052,7 +2044,7 @@ msgstr "" "опција „%c“ се не може користити пре него што се наведе „K“, „Т“ или „C“" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2061,7 +2053,7 @@ "Извлачи све поруке из каталога превода које одговарају датом шаблону\n" "или припадају одређеним изворним датотекама.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, fuzzy, c-format, no-wrap msgid "" "Message selection:\n" @@ -2128,7 +2120,7 @@ " -f, --file=ДАТОТЕКА преузми ШАБЛОН из ДАТОТЕКА\n" " -i, --ignore-case занемари разлике величине слова\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2136,18 +2128,18 @@ " --escape користи C истицање у излазу, без проширених \n" " знакова\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output образуј поређан излаз\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr "" " --sort-by-file поређај излаз према положају у датотеци\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2157,7 +2149,7 @@ "окружења LANG, како је описано у датотеци ABOUT-NLS. Ово је\n" "неопходно ради испробавања ваших превода.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2168,12 +2160,12 @@ "Наведите локалитет помоћу опције --locale или \n" "излазну ПО датотеку помоћу опције --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Направих %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2182,12 +2174,12 @@ "Образујем нову ПО датотеку, постављајући мета податке помоћу вредности из \n" "окружења корисника.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=УЛАЗНА-ДАТОТЕКА улазна ПОТ датотека\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2197,12 +2189,12 @@ "Уколико није дата улазна датотека, тражићу ПОТ датотеку у текућем \n" "директоријуму. Уколико је „-“, читам стандардни улаз.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=ДАТОТЕКА испиши излаз у наведену ПО датотеку\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2212,19 +2204,19 @@ "подешавања корисниковог локалитета. Ако је „-“, резултат исписујем на\n" "стандардни излаз.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=ЈЈ_ДД постави одредишни локалитет\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator претпостави да је ПО датотека самоизграђена\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2232,12 +2224,12 @@ "Нађох више од једне .pot датотеке.\n" "Наведите улазну .pot датотеку помоћу опције --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "грешка при читању текућег директоријума" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2245,14 +2237,14 @@ "Не нађох .pot датотеку у текућем директоријуму.\n" "Наведите улазну .pot датотеку помоћу опције --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "неуспешан подпроцес %s са повратним кодом %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2268,28 +2260,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "енглески преводи за пакет %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "присутни скуп знакова „%s“ не чини име преносивог кодирања" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "два различита скупа знакова „%s“ и „%s“ у улазној датотеци" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "улазна датотека „%s“ не садржи поље заглавља са ознаком скупа знакова" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2298,19 +2290,19 @@ "домен „%s“ у улазној датотеци „%s“ не садржи поље заглавља са ознаком скупа " "знакова" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "одредишни скуп знакова „%s“ није преносиво име за кодирање." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "упозорење: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2319,7 +2311,7 @@ "Улазне датотеке садрже поруке у разним кодирањима, између осталих и УТФ-8.\n" "Претварам излаз у УТФ-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2327,12 +2319,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Улазне датотеке садрже поруке у разним кодирањима, између осталих у %s и %" -"s.\n" +"Улазне датотеке садрже поруке у разним кодирањима, између осталих у %s и " +"%s.\n" "Претварам излаз у УТФ-8.\n" "Да изаберете другачије кодирање излаза, користите опцију --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2341,7 +2333,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2354,12 +2346,12 @@ "Излаз „%s“-а може бити нетачан.\n" "Могућа решења су:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Поставите LC_ALL на локалитет са кодирањем %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2370,7 +2362,7 @@ " затим примените „%s“,\n" " а онда претворите назад у %s помоћу „msgconv“.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2383,7 +2375,7 @@ " затим примените „%s“,\n" " и онда претворите назад у %s помоћу „msgconv“.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2394,64 +2386,64 @@ "Излаз из „%s“-а може бити нетачан.\n" "Могуће решење је да поставите LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "израз за множине може дати негативне вредности" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu али израз за множине може дати чак и вредности %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "израз за множине може проузроковати дељење нулом" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "израз за множине може проузроковати прекорачење опсега целих бројева" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" "израз за множине може проузроковати аритметичке изузетке, нпр. дељење нулом" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "Покушајте да користите следеће, исправно за %s:\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "каталог порука садржи преводе облика за множину..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...али у заглављу недостаје поље „plural=ИЗРАЗ“" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...али у заглављу недостаје поље „nplurals=БРОЈ“" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "недозвољена вредност за nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "недозвољен израз за plural" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2459,7 +2451,7 @@ msgstr[1] "али неке поруке имају само %lu облика за множину" msgstr[2] "али неке поруке имају само %lu облика за множину" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2467,7 +2459,7 @@ msgstr[1] "али неке поруке имају %lu облика за множину" msgstr[2] "али неке поруке имају %lu облика за множину" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2475,81 +2467,81 @@ "каталог порука садржи преводе облика множине, али нема поља заглавља „Plural-" "Forms: nplurals=БРОЈ; plural=ИЗРАЗ;“" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "не почиње и „msgid“ и „msgid_plural“ са „\\n“" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "не почиње и „msgid“ и „msgstr[%u]“ са „\\n“" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "не почиње и „msgid“ и „msgstr“ са „\\n“" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "не завршава се и „msgid“ и „msgid_plural“ са „\\n“" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "не завршава се и „msgid“ и „msgstr[%u]“ са „\\n“" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "не завршава се и „msgid“ и „msgstr“ са „\\n“" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "баратање множинама је Гнуово проширење gettext-а" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "У msgstr недостаје ознака пречице са тастатуре „%c“" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "У msgstr има превише ознака пречица са тастатуре „%c“" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "недостаје поље „%s“ у заглављу\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "поље „%s“ у заглављу треба да почне на почетку реда\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "нека поља заглавља и даље садрже почетне подразумеване вредности\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "поља „%s“ и даље садржи почетну подразумевану вредност\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "нека поља заглавља и даље садрже почетне подразумеване вредности\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "грешка приликом отварања „%s“ за читање" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "улазна датотека не садржи поље заглавља са ознаком скупа знакова" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2558,7 +2550,7 @@ "Не могу да претворим из „%s“ у „%s“. %s се ослања на iconv(), а iconv() не " "подржава ово претварање." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2567,8 +2559,8 @@ "Претварање из „%s“ у „%s“ уводи понављања: неки различити msgid-ови постају " "једнаки." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2577,16 +2569,16 @@ "Не могу да претворим из „%s“ у „%s“. %s се ослања на iconv(). Ово издање је " "изграђено без iconv()-а." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s је једино исправно уз %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "врста резерве" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2609,18 +2601,18 @@ "положаји у датотекама. Када нема тачног поклапања, користи се нејасно \n" "поклапање ради добијања бољих резултата.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " подр.po преводи који одговарају старом изворном коду\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " реф.pot позива нове изворне поруке\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2629,7 +2621,7 @@ " -C, --compendium=ДАТОТЕКА додатна библиотека превода порука, може се\n" " навести више него једном\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2638,27 +2630,27 @@ " -U, --update освежи подр.po,\n" " не ради ништа ако је већ усклађен подр.po\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Путања излазне датотеке у режиму освежавања:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Резултат се уписује назад у подр.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=УПРАВЉАЊЕ сачини резерву за подр.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=СУФИКС измени уобичајени суфикс за резерве\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2676,7 +2668,7 @@ " existing, nil побројане ако већ постоје побројане резерве, иначе обичне\n" " simple, never увек прави обичне резерве\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2687,34 +2679,29 @@ "променљиве \n" "окружења SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching не користи нејасно поклапање\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --translated задржи преведене, уклони непреведене поруке\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent искључи обавештавање о напретку\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "ова порука треба да дефинише облике множине" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "ова порука не треба да дефинише облике множине" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2723,26 +2710,28 @@ "%sПрочитах %ld старих + %ld референтних, спојих %ld, нејасних %ld, недостаје " "%ld, превазиђених %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " готово.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s и изричито име датотеке су међу собом искључиви" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Употреба: %s [ОПЦИЈА] [ДАТОТЕКА]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Претвори бинарни каталог порука у .po датотеку Унифорум стила.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2750,12 +2739,12 @@ msgstr "" " -j, --java Јава режим: улаз је Јава класа ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# режим: улаз је .NET .dll датотека\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2764,24 +2753,24 @@ " --csharp-resources Режим за C# ресурсе: улаз је .NET .resources " "датотека\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl режим: улаз је tcl/msgcat .msg датотека\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " ДАТОТЕКА ... улазне .mo датотеке\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Путања улазне датотеке у Јава режиму:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2791,12 +2780,12 @@ "Име класе се одређујем надодавањем имена локалитета на име ресурса, \n" "раздвојено подвлаком. Класа се проналази помоћу CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Путања улазне датотеке у C# режиму:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2805,12 +2794,12 @@ "Опције -l и -d су обавезне. Датотека .dll се налази у поддиректоријуму \n" "датог директоријума чије име зависи од локалитета.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Путања улазне датотеке у Tcl режиму:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2818,17 +2807,17 @@ msgstr "" "Опције -l и -d су обавезне. Датотека .msg се налази у датом директоријуму.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent стил исписа са увлачењем\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict испис у строгом стилу унифорума\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2849,12 +2838,12 @@ "Положаји у датотеци ће се такође гомилати. Када се користи опција --unique,\n" "поновљени преводи се занемарују.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated испиши само поновљене\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2863,7 +2852,7 @@ " -u, --unique испиши само јединствене поруке, занемари " "поновљене\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "<стдул>" @@ -2949,65 +2938,65 @@ msgid "plural form has wrong index" msgstr "облик множине има погрешан индекс" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "превише грешака, одустајем" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "неисправан вишебајтни низ" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "недовршен вишебајтни низ на крају датотеке" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "недовршен вишебајтни низ на крају реда" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "неуспех iconv-а" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "непозната кључна реч „%s“" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "неисправан контролни низ" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "крај датотеке унутар ниске" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "крај реда унутар ниске" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "ова датотека не сме садржати директиве за домен" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "двострука дефиниција поруке" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...ово је положај прве дефиниције" @@ -3099,17 +3088,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "грешка приликом отварања „%s“ за читање" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "очекивах два аргумента" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Употреба: %s [ОПЦИЈА] АДРЕСА ДАТОТЕКА\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3118,11 +3107,26 @@ "Преузимам и исписујем садржај адресе. Уколико не могу да приступим адреси,\n" "користи се локално доступна ДАТОТЕКА уместо ње.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "грешка при писању на стандардни излаз" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 #, fuzzy msgid "" @@ -3168,44 +3172,44 @@ "каталог порука садржи преводе са облицима множине, али излазни облик их не " "подржава." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "не могу да направим излазну датотеку „%s“" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "стандардни излаз" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, fuzzy, c-format msgid "failed to create directory \"%s\"" msgstr "не могу да направим „%s“" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, fuzzy, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "" "неуспешно изграђивање Јава класе, пробајте --verbose или поставите $JAVAC" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "" "неуспешно изграђивање Јава класе, пробајте --verbose или поставите $JAVAC" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "није исправно име Јава класе: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "неуспешно изграђивање Јава класе, пробајте --verbose или поставите $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3216,13 +3220,13 @@ msgid "error while opening \"%s\" for writing" msgstr "грешка при отварању датотеке „%s“ ради уписа" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "интернационализоване поруке не треба да садрже „\\%c“ низове истицања" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3235,7 +3239,7 @@ "другачије од вашег. Пробајте да користите АКСРИ msgid.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3259,8 +3263,8 @@ #: src/write-qt.c:693 #, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3283,7 +3287,7 @@ msgid "error while writing to %s subprocess" msgstr "грешка при писању датотеке „%s“" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" @@ -3292,7 +3296,7 @@ "каталог порука садржи преводе облика множине\n" "али облик Qt каталога порука не подржава баратање множинама\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 #, fuzzy msgid "" "message catalog has plural form translations\n" @@ -3319,36 +3323,34 @@ "али облик Tcl каталога порука не подржава баратање множинама\n" # bug: there are similar messages with "%s:%lu: warning:" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: упозорење: неокончана ниска" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: упозорење: неокончан регуларни израз" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: упозорење: неокончана знаковна константа" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: упозорење: неокончана дословна ниска" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3357,7 +3359,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3366,7 +3368,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3375,7 +3377,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3384,12 +3386,12 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, fuzzy, c-format msgid "%s:%d: iconv failure" msgstr "неуспех iconv-а" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3398,33 +3400,33 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: упозорење: неисправан Уникод знак" # bug: there are similar messages with "%s:%lu: warning:" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: упозорење: неокончана константна ниска" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: упозорење: нађох „)“ где очекивах „}“" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: упозорење: нађох „}“ где очекивах „)“" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, fuzzy, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%d:%d: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3434,58 +3436,57 @@ "Ово издање је изграђено без expat-а.\n" # bug: there are similar messages with "%s:%lu: warning:" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: упозорење: неокончана ниска" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: не могу да нађем окончање ниске „%s“ било где пре краја датотеке" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: недостаје десна заграда у \\x{ХЕКСАДЕКАДНИ-БРОЈ}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: неисправна интерполација („\\l“) 8-битног знака „%c“" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: неисправна интерполација („\\u“) 8-битног знака „%c“" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: неисправно вредновање променљивих на „%c“" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: неисправна интерполација („\\L“) 8-битног знака „%c“" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: неисправна интерполација („\\U“) 8-битног знака „%c“" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3495,7 +3496,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3505,7 +3506,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3515,7 +3516,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3525,7 +3526,7 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3535,27 +3536,27 @@ "Не-АСКРИ ниска на %s%s.\n" "Наведите кодирање извора помоћу --from-code.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: неисправна дефиниција ниске" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: недостаје број након #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: неисправна ниска са изразом" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3564,29 +3565,29 @@ "%s:%lu: упозорење: синтакса $\"...\" је превазиђена из безбедносних разлога; " "уместо тога користите eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing се не може користити када се излаз исписује на стандардни " "излаз" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext не може да ради без кључних речи које тражи" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "упозорење: екстензија „%2$s“ датотеке „%1$s“ је непозната; пробаћу C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Извуци преводиве ниске из датих улазних датотека.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3594,12 +3595,12 @@ msgstr "" " -d, --default-domain=ИМЕ користи ИМЕ.po за излаз (уместо messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=ДАТОТЕКА испиши излаз у наведену датотеку\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3607,12 +3608,12 @@ " -p, --output-dir=ДИР излазне датотеке се смештају у директоријум " "ДИР\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Избор језика улазне датотеке:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, fuzzy, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3631,19 +3632,19 @@ "PHP,\n" " GCC-извор, NXStringTable, RST, Глејд)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ пречица за --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "Подразумева се погађање језика на основу проширења имена датотеке.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3652,43 +3653,46 @@ " --from-code=ИМЕ кодирање улазних датотека\n" " (осим за Питон, Tcl, Глејд)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Подразумева се да су улазне датотеке у АСКРИ запису.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing споји поруке са постојећом датотеком\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=ДАТОТЕКА.po поља из ДАТОТЕКА.po се не извлаче\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ОЗНАКА] постави блок примедбу помоћу ОЗНАКА (или оне \n" " које претходе редовима кључне речи) у " "излазној \n" " датотеци\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Посебне опције за језик:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all извуци све ниске\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3700,18 +3704,18 @@ " Питон, Лисп, ЕмаксЛисп, librep, Јава, C#,\n" " awk, Tcl, Перл, PHP, GCC-извор, Глејд)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=РЕЧ] додатне кључне речи које да тражим " "(изостављање\n" " РЕЧ означава употребу подразумеваних кључних \n" " речи)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3722,7 +3726,7 @@ "бројем \n" " АРГ кључне речи РЕЧ\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, fuzzy, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3734,55 +3738,55 @@ " Питон, Лисп, ЕмаксЛисп, librep, Јава, C#,\n" " awk, YCP, Tcl, Перл, PHP, GCC-извор)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs разумевање АНСИ C триграфа за улаз\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (једино језици C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt препознај Qt ниске формата\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (једино језик C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt препознај Qt ниске формата\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr " --qt препознај Qt ниске формата\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug детаљнији резултат препознавања ниске формата\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output испиши Јава .properties датотеку\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=НИСКА постави носиоца ауторских права у излазу\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3790,18 +3794,18 @@ " --foreign-user избаци FSF ауторска права у излазу за стране \n" " кориснике\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" " --copyright-holder=НИСКА постави носиоца ауторских права у излазу\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3809,41 +3813,58 @@ " --msgid-bugs-address=АДРЕСА@Е-ПОШТЕ постави адресу за пријављивање \n" " грешака у msgid-има\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=НИСКА] користи НИСКА или „“ за префикс msgstr поља\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=НИСКА] користи НИСКА или „“ за суфикс msgstr поља\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "A --flag аргумент не користи синтаксу <кључна-реч>:<брарг>:[пролаз-]" "<ознака>: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "стандардни улаз" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: упозорење: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3852,16 +3873,16 @@ "Иако се користи на месту ниске формата, %s не представља исправну ниску " "формата %s. Разлог: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Иако је објављена као таква, %s не представља исправну ниску формата %s. " "Разлог: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3870,7 +3891,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3880,27 +3901,27 @@ "gettext(\"\") враћа поље заглавља са мета-подацима, а не \n" "празну ниску.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "неједнозначан аргумент „%s“ за %s" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, fuzzy, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "неједнозначан аргумент „%s“ за %s" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, fuzzy, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "неједнозначан аргумент „%s“ за %s" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3912,7 +3933,7 @@ "променљиву MSGID_BUGS_ADDRESS; иначе, наведите опцију\n" "--msgid-bugs-address у наредби.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "језик „%s“ није познат" @@ -3921,6 +3942,30 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: неисправна опција %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "Неуспешан DuplicateHandle са грешком 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Још увек није направљено." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "не могу да поставим неблокирајући У/И за подпроцес %s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "неуспешно споразумевање са подпроцесом %s" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "неуспешно читање из подпроцеса %s" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "подпроцес %s је прекинут уз повратни код %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "поља „%s“ и даље садржи почетну подразумевану вредност\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Вишеструко позивање %%%c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/sv.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/sv.gmo differ diff -Nru gettext-0.17/gettext-tools/po/sv.po gettext-0.18.1.1/gettext-tools/po/sv.po --- gettext-0.17/gettext-tools/po/sv.po 2007-11-02 02:24:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/sv.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,16 +1,18 @@ # Swedish messages for gettext-tools -# Copyright © 1996, 1997, 1998, 2001, 2002, 2003 Free Software Foundation, Inc. -# Jan Djärv , 1998, 2001, 2002, 2003, 2006, 2007 -# $Revision: 1.19% +# Copyright © 1996, 1997, 1998, 2001, 2002, 2003, 2007, 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Jan Djärv , 1998, 2001, 2002, 2003, 2006, 2007, 2010 +# Revision: 1.28 # msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.16.2-pre5\n" +"Project-Id-Version: gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-10-17 15:23+0200\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-15 12:24+0200\n" "Last-Translator: Jan Djärv \n" "Language-Team: Swedish \n" +"Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +33,22 @@ msgid "Valid arguments are:" msgstr "Giltiga argument är:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "kan inte hitta en temporärkatalog, försök sätta $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "kan inte skapa temporärkatalog med mall \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "kan inte ta bort temporärfil %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "kan inte ta bort temporärkatalog %s" @@ -55,44 +57,44 @@ msgid "write error" msgstr "skrivfel" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "fel uppstod när \"%s\" öppnades för läsning" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "kan inte öppna säkerhetskopiefil \"%s\" för skrivning" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "fel uppstod då \"%s\" lästes" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "fel vid skrivning till \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "fel efter \"%s\" lästes" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() misslyckades" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Kompilator för C# hittades inte, försök installera pnet" @@ -102,74 +104,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Virtuell maskin för C# hittades inte, försök installera pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Okänt systemfel" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s-barnprocess misslyckades" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: flaggan \"%s\" är tvetydig\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: flaggan \"--%s\" tar inget argument\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: flaggan \"%c%s\" tar inget argument\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: flaggan \"%s\" kräver ett argument\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: okänd flagga \"--%s\"\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: okänd flagga \"%c%s\"\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: otillåten flagga -- %c\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: ogiltig flagga -- \"%c\"\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: ogiltig flagga -- %c\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: flaggan kräver ett argument -- \"%c\"\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: flaggan kräver ett argument -- %c\n" - -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: flaggan \"-W %s\" är tvetydig\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: flaggan \"-W %s\" tar inget argument\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: flaggan \"-W %s\" kräver ett argument\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -181,20 +182,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "ogiltigt värde på argumentet target_version till compile_java_clas" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "misslyckades med att skapa \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "fel vid skrivning till filen \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "Javakompilator hittades inte, försök installera gcj eller sätt $JAVAC" @@ -205,20 +206,20 @@ msgstr "" "Virtuell Javamaskin hittades inte, försök installera gij eller sätt $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "I/O-fel i %s-barnprocess" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "minnet slut" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -237,77 +238,74 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "\"" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "\"" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle misslyckades med felkod 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle misslyckades" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "kan inte återställa filnummer %d: dup2 misslyckades" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s-barnprocess" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s-barnprocess fick ödesdiger signal %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"\"%s\" är inte en giltig formatsträng i %s, till skillnad från \"msgid\".\n" +"\"%s\" är inte en giltig formatsträng i %s, till skillnad från \"%s\".\n" "Orsak: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" -"formateringsdirektiv för argument \"%u\", som i \"%s\", finns inte i \"msgid" -"\"" +"formateringsdirektiv för argument %u, som i \"%s\", finns inte i \"%s\"" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "formateringsdirektiv för argument %u finns inte i \"%s\"" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" -"formateringsdirektivet i \"msgid\" och \"%s\" för argument %u är inte " -"likadana" +"formateringsdirektivet i \"%s\" och \"%s\" för argument %u är inte likadana" #: src/format-boost.c:449 #, c-format @@ -335,10 +333,10 @@ msgstr "" "Strängen refererar till argument nummer %u men ignorerar argument nummer %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "antalet formateringsdirektiv i \"msgid\" och \"%s\" är olika" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "antalet formateringsdirektiv i \"%s\" och \"%s\" är olika" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format @@ -361,8 +359,8 @@ msgid "" "The directive number %u ends with an invalid character '%c' instead of '}'." msgstr "" -"Direktiv nummer %u avslutas med det ogiltiga tecknet \"%c\" istället för \"}" -"\"." +"Direktiv nummer %u avslutas med det ogiltiga tecknet \"%c\" istället för " +"\"}\"." #: src/format-csharp.c:140 #, c-format @@ -382,24 +380,24 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Strängen innehåller ett ensamt \"}\" efter direktiv nummer %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "I direktiv nummer %u: flaggkombinationen är inte tillåten." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "I direktiv nummer %u: en precision är inte tillåten före \"%c\"." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "I direktiv nummer %u: argumentnumret för precisionen måste vara %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -408,25 +406,25 @@ "I direktiv nummer %u: en precisionsspecifikation är inte tillåten före \"%c" "\"." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "I direktiv nummer %u: precisionsspecifikationen är ogiltig." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "I direktiv nummer %u: flaggor är inte tillåtna före \"%c\"." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "\"msgid\" använder %%m men '%s' gör inte det" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "\"%s\" använder %%m men \"%s\" gör inte det" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "\"msgid\" använder inte %%m men '%s' använder %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "\"%s\" använder inte %%m men \"%s\" använder %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -528,23 +526,21 @@ #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"formateringsdirektiv för argument {%u}, som i \"%s\", finns inte i \"msgid\"" +"formateringsdirektiv för argument {%u}, som i \"%s\", finns inte i \"%s\"" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "formateringsdirektiv för argument {%u} finns inte i \"%s\"" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"formateringsdirektiv i \"msgid\" och \"%s\" för argument {%u} är inte " -"likadana" +"formateringsdirektiv i \"%s\" och \"%s\" för argument {%u} är inte likadana" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -559,11 +555,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "I direktiv nummer %u anges för många parametrar, förväntade högst %u " "parameter." @@ -616,13 +612,13 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "formateringsdirektiv i \"msgid\" och \"%s\" är inte ekvivalenta" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "formateringsdirektiv i \"%s\" och \"%s\" är inte ekvivalenta" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" -msgstr "formateringsdirektiv i \"%s\" är inte en delmängd av de i \"msgid\"" +msgid "format specifications in '%s' are not a subset of those in '%s'" +msgstr "formateringsdirektiv i \"%s\" är inte en delmängd av de i \"%s\"" #: src/format-perl.c:433 #, c-format @@ -633,12 +629,12 @@ "I direktiv nummer %u är storleksbestämningen inkompatibel med konverteringen " "\"%c\"." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "formateringsdirektiv för argument \"%s\" finns inte i \"%s\"" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -646,52 +642,47 @@ "Strängen refererar till argument både via argumentnamn och via namnlösa " "argumentspecifikationer." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "Strängen refererar till argumentet \"%s\" på inkompatibla sätt." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"formateringsdirektiv i \"msgid\" tar en avbildning, de i \"%s\" tar en tupel" +"formateringsdirektiv i \"%s\" tar en avbildning, de i \"%s\" tar en tupel" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"formateringsdirektiv i \"msgid\" tar en tupel, de i \"%s\" tar en avbildning" +"formateringsdirektiv i \"%s\" tar en tupel, de i \"%s\" tar en avbildning" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" -"formateringsdirektiv för argument \"%s\", som i \"%s\", finns inte i \"msgid" -"\"" +"formateringsdirektiv för argument \"%s\", som i \"%s\", finns inte i \"%s\"" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"formateringsdirektiv i \"msgid\" och \"%s\" för argument \"%s\" är inte " -"likadana" +"formateringsdirektiv i \"%s\" och \"%s\" för argument \"%s\" är inte likadana" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"\"msgid\" är en enkel formatsträng, men \"%s\" är inte det; den innehåller " -"en \"L\"-flagga eller ett tvåsiffrigt argumenttal" +"\"%s\" är en enkel formatsträng, men \"%s\" är inte det; den innehåller en " +"\"L\"-flagga eller ett tvåsiffrigt argumenttal" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -732,11 +723,11 @@ msgstr "" "Tecknet som avslutar direktiv nummer %u är inte en siffra mellan 1 och 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -746,41 +737,41 @@ msgstr "" "Copyright © %s Free Software Foundation, Inc.\n" "Licens GPLv3+: GNU GPL version 3 eller senare \n" -"Detta program är fri programvara. Du kan modifiera och distribuera det.\n" +"Detta program är fri programvara. Du kan modifiera och distribuera den.\n" "Det finns inte NÅGON SOM HELST GARANTI, till den grad som lagen tillåter.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Skrivet av %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "för många argument" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Försök med \"%s --help\" för mer information.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Användning: %s [FLAGGA]\n" @@ -815,29 +806,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address adresser för värdnamnet\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Informativ utskrift:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help visa denna hjälptext och avsluta\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version visa versionsinformation och avsluta\n" @@ -846,11 +837,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" "Rapportera fel till .\n" @@ -862,30 +853,30 @@ msgid "could not get host name" msgstr "kunde inte hämta värdnamn" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "högst en infil tillåten" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s och %s är ömsesidigt uteslutande" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Användning: %s [FLAGGA] [INFIL]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -894,62 +885,62 @@ "Filtrerar meddelanden i en meddelandekatalog efter deras attribut och\n" "manipulerar attributen.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Obligatoriska argument för långa flaggor är obligatoriska även för korta.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Plats för infiler:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INFIL PO-infil\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr " -D, --directory=KATALOG sök infiler även i KATALOG\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "Om ingen infil är given eller om den är - läses standard in.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Plats för utfil:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=FIL skriv resultat till angiven fil\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -957,12 +948,12 @@ msgstr "" "Resultatet skrivs till standard ut om ingen utfil anges eller om den är -.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Meddelandeval:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -970,7 +961,7 @@ " --translated behåll översatta, ta bort oöversatta " "meddelanden\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -978,59 +969,59 @@ " --untranslated behåll oöversatta, ta bort översatta " "meddelanden\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy ta bort meddelanden markerade som \"fuzzy\"\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy behåll meddelanden markerade som \"fuzzy\"\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete ta bort föråldrade #~ meddelanden\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete behåll föråldrade #~ meddelanden\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Attributmanipulation:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy markera alla meddelanden som \"fuzzy\"\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy ta bort \"fuzzy\"-markering från alla " "meddelanden\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr "" " --set-obsolete markera alla meddelanden som föråldrade\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete ta bort föråldradmarkering från alla " "meddelanden\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1039,49 +1030,49 @@ " --clear-previous ta bort \"previous msgid\" från alla " "meddelanden\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=FIL.po bearbeta bara poster som finns i FIL.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=FIL.po bearbeta bara poster som inte finns i FIL.po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy samma som --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete samma som --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Syntax på infil:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr " -P, --properties-input infil har \"Java .properties\"-syntax\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1090,17 +1081,41 @@ " --stringtable-input infil har NeXTstep/GNUstep \".strings\"-" "syntax\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Resultatdetaljer:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color använd alltid färger och andra textattribut\n" +" --color=VILLKOR använd färger och andra textattribut beroende " +"på\n" +" VILLKOR, som kan vara \"always\", \"never\", " +"\"auto\"\n" +" eller \"html\".\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr " --style=STILMALL ange CSS stillmallsfil för --color\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1108,9 +1123,9 @@ " -e, --no-escape använd inte C-kontrollsekvenser i resultatet\n" " (normalläge)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1118,28 +1133,28 @@ " -E, --escape använd C-kontrollsekvenser i resultatet, men\n" " inte \\v aller \\a\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po skriv PO-fil även om den är tom\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent indentera resultatet\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location skriv inte rader med \"#: filnamn:rad\"\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1147,39 +1162,39 @@ " -n, --add-location skriv rader med \"#: filnamn:rad" "\" (normalläge)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr " --strict strikt Uniforum-format på resultatet\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output skriv en \"Java .properties\"-fil\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output skriv en NeXTstep/GNUstep \".strings\"-fil\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=ANTAL välj antal kolumner i resultatet\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1188,31 +1203,31 @@ " --no-wrap dela inte meddelanden som är längre än\n" " resultatets kolumnantal i flera rader\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output sortera resultatet\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file sortera resultatet efter filposition\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "omöjligt urvalskriterium angivet (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Användning: %s [FLAGGA] [INFIL]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1235,23 +1250,23 @@ "utom om --use-first ges. Då tas de endast från den första PO-filen som\n" "definierar dem. Filpositioner från alla filer bevaras.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INFIL ... infiler\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=FIL läs lista av infiler från FIL\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Om infil är - läses standard in.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1260,7 +1275,7 @@ " -<, --less-than=ANTAL skriv meddelanden med färre än ANTAL\n" " definitioner. Standardvärde: oändligt\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1269,7 +1284,7 @@ " ->, --more-than=ANTAL skriv meddelanden med fler än ANTAL\n" " definitioner. Standardvärde: 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1278,16 +1293,16 @@ " -u, --unique samma som --less-than=2, begär att\n" " endast unika meddelanden skrivs\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input infiler har \"Java .properties\"-syntax\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1296,12 +1311,12 @@ " --stringtable-input infiler har NeXTstep/GNUstep \".strings\"-" "syntax\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=NAMN kodning för resultatet\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1310,47 +1325,33 @@ " --use-first använd först hittade översättning för varje\n" " meddelande, slå inte ihop översättningar\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" -" --color använd alltid färger och andra textattribut\n" -" --color=VILLKOR använd färger och andra textattribut beroende " -"på\n" -" VILLKOR, som kan vara \"always\", \"never\", " -"\"auto\"\n" -" eller \"html\".\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" -msgstr " --style=STILMALL ange CSS stillmallsfil för --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" +msgstr " --lang=KATALOGNAMN sätt \"Language\"-fältet i huvudet\n" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "inga infiler givna" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "exakt 2 infiler krävs" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Användning: %s [FLAGGA] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1368,22 +1369,22 @@ "programmet. Om en exakt likhet inte kan hittas används luddig jämförelse \n" "för att ge bättre felmeddelanden.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po översättningar\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot referenser till källkod\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Bearbetningsvarianter:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1391,59 +1392,64 @@ msgstr "" " -m, --multi-domain tillämpa ref.pot till alla domäner i def.po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching använd inte luddig jämförelse\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy använd luddiga poster i resultatet\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated beakta oöversatta meddelanden\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "detta meddelande är oöversatt" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "detta meddelande behöver granskas av översättaren" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "detta meddelande används men är inte definierat..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...men denna definition är likartad" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "detta meddelande används men är inte definierat i %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "varning: detta meddelande används inte" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "%d allvarligt fel hittat" msgstr[1] "%d allvarliga fel hittades" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "minst två filer måste anges" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1464,7 +1470,7 @@ "endast från den första PO-filen som definierar dem. Filpositioner från\n" "alla filer bevaras.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1473,41 +1479,41 @@ " ->, --more-than=ANTAL skriv meddelanden med fler än ANTAL\n" " definitioner. Standardvärde: 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr " --omit-header skriv inte ut huvudet med 'msgid \"\"'\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Konverterar en meddelandekatalog till en annan teckenkodning.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Konverteringsmål:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Standardvärde är nuvarande lokals kodning.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent indentera resultatet\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location skriv inte rader med \"#: filnamn:rad\"\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1515,28 +1521,28 @@ " --add-location skriv rader med \"#: filnamn:rad" "\" (normalläge)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict strikt Uniforum-format på resultatet\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "inga infiler givna" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "exakt en infil krävs" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Användning: %s [FLAGGA] INFIL\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1548,22 +1554,22 @@ "engelska PO-filen eller en PO-mönsterfil (ofta skapad med xgettext).\n" "Oöversatta poster ges en översättning som är identisk med msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " INFIL PO- eller POT-infil\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "kommandonamn saknas" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Användning: %s [FLAGGA] KOMMANDO [KOMMANDOFLAGGOR]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1578,7 +1584,7 @@ "blir utdata från msgexec. Slutstatusvärdet för msgexec är det maximala\n" "slutstatusvärdet för alla kommandokörningar.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1588,42 +1594,42 @@ "av ett nolltecken. Utdata för \"msgexec 0\" är lämpligt som indata för\n" "\"xargs -O\"\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INFIL PO-infil\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "skrivning till standard ut misslyckades" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "skrivning till %s-barnprocess misslyckades" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "filternamn saknas" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "minst ett sed-skript måste anges" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Användning: %s [FLAGGA] FILTER [FILTERFLAGGOR]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Tillämpar ett filter på alla översättningar i en meddelandekatalog.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1632,19 +1638,19 @@ "FILTER kan vara vilket program som helst som läser en översättning från\n" "standard in och skriver den modifierade översättningen till standard ut.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Användbara FILTERFLAGGOR när FILTER är \"sed\":\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" " -e, --expression=SKRIPT lägg till SKRIPT till kommandon att exekvera\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1655,7 +1661,7 @@ "kommandon\n" " att exekvera\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" @@ -1663,7 +1669,7 @@ " -n, --quiet, --silent undertryck automatisk utskrift av " "mönsterutrymmet\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1671,12 +1677,12 @@ " --no-escape använd inte C-kontrollsekvenser i resultatet\n" " (normalläge)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent indentera resultatet\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1684,100 +1690,82 @@ " --keep-header bevara huvudrader oförändrade, filtrera dem " "inte\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Inte implementerad ännu." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "kan inte sätta upp icke-blockerande I/O till %s-barnprocess" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "kommunikation med %s-barnprocess misslyckades" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "läsning från %s-barnprocess misslyckades" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s-barnprocess avslutade med slutstatus %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "argumentet till %s ska vara ett enskilt skiljetecken" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "ogiltig byteordning: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s kräver att \"-d katalog\" anges" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s kräver att \"-l lokal\" anges" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s är endast giltig med %s eller %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s är endast giltig med %s, %s eller %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d översatt meddelande" msgstr[1] "%d översatta meddelanden" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d luddig översättning" msgstr[1] ", %d luddiga översättningar" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d oöversatt meddelande" msgstr[1] ", %d oöversatta meddelanden" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Användning: %s [FLAGGA] filnamn.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Generera en binär meddelandekatalog från en textuell meddelandekatalog.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1786,17 +1774,17 @@ "Obligatoriska argument för långa flaggor är obligatoriska även för korta.\n" "Motsvarande gäller för frivilliga argument.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filnamn.po ... infiler\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Körläge:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1805,7 +1793,7 @@ " -j, --java Javaläge: generera en Java ResourceBundle-" "klass\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1814,12 +1802,12 @@ " --java2 som --java, och anta Java2 (JDK 1.2 eller " "högre)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C#-läge: generera en .NET .dll-fil\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1828,7 +1816,7 @@ " --csharp-resources C#-resursläge: generera en .NET .resources-" "fil\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" @@ -1836,33 +1824,33 @@ " --tcl Tcl-läge: generera en .msg-fil av tcl/msgcat-" "typ\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt-läge: generera en Qt .qm-fil\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict strikt Uniforum-format på resultatet\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Om UTFIL är - skrivs resultatet till standard ut.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Plats för utfil i Javaläge:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESURS resursnamn\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1870,13 +1858,13 @@ msgstr "" " -l, --locale=LOKAL lokalnamn, antingen språk eller språk_LAND\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d KATALOG startkatalog för klassers katalogträd\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1888,12 +1876,12 @@ "avskiljt med ett understreck. Flaggan -d är obligatorisk. Klassen skrivs\n" "till den givna katalogen.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Plats för utfil i C#-läge:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1901,7 +1889,7 @@ msgstr "" " -d KATALOG startkatalog för lokalberoende .dll-filer\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1911,18 +1899,18 @@ "underkatalog\n" "till den givna katalogen. Underkatalogens namn beror på lokalen.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Plats för utfil i Tcl-läge:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d KATALOG startkatalog för .msg-meddelandekataloger\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1931,12 +1919,12 @@ "Flaggorna -l och -d är obligatoriska. .msg-filen skrivs till den givna\n" "katalogen.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Tolkning av infil:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1947,13 +1935,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format kontrollera språkberoende formatsträngar\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1961,7 +1949,7 @@ msgstr "" " --check-header verifiera närvaro och innehåll av huvudrader\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1970,7 +1958,7 @@ " --check-domain kontrollera konflikter mellan domändirektiv\n" " och flaggan --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1979,7 +1967,7 @@ " -C, --check-compatibility kontrollera att GNU msgfmt uppför sig som\n" " X/Open msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1990,98 +1978,98 @@ "tangentkortkommandon\n" " för menyer\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy använd luddiga poster i resultatet\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=TAL lägg strängar på jämna TAL byte (normalt: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr " --no-hash binärfil innehåller inte hashtabellen\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics skriv ut statistik om översättningarna\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose öka mängden information i meddelanden\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "varning: PO-filens huvudrader saknas eller är ogiltiga\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "" "varning: konvertering till användarens teckenuppsättning kommer att " "misslyckas.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "varning: PO-filens huvudrader är luddiga\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "varning: äldre versioner av msgfmt ger ett fel för detta\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "domännamnet \"%s\" är inte lämpligt som filnamn" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "domännamnet \"%s\" är inte lämpligt som filnamn: använder ett prefix" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "direktivet \"domain %s\" ignoreras" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "tom \"msgstr\"-rad ignorerad" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "luddig \"msgstr\"-rad ignorerad" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: varning: källfilen innehåller luddiga översättningar" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "fel uppstod då \"%s\" lästes" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2090,7 +2078,7 @@ "flagga \"%c\" kan inte användas förrän \"J\", \"K\", \"T\" \"C\" eller \"X\" " "angivits" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2099,7 +2087,7 @@ "Extraherar alla meddelanden i en meddelandekatalog som matchar ett visst\n" "mönster eller hör till någon given källkodsfil.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2175,7 +2163,7 @@ " -v, --invert-match skriv ut endast de meddelanden som inte matchar\n" " något urvalskriteria.\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2183,17 +2171,17 @@ " --escape använd C-kontrollsekvenser i resultatet, men\n" " inte \\v eller \\a\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output sortera resultatet\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file sortera resultatet efter filposition\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2203,7 +2191,7 @@ "LANG såsom beskrivs i filen ABOUT-NLS. Detta är nödvändigt för att\n" "du ska kunna testa dina översättningar.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2214,12 +2202,12 @@ "Ange lokal med flaggan --locale eller\n" ".po-utfilen med flaggan --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Skapade %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2228,12 +2216,12 @@ "Skapar en ny PO-fil och initierar metainformation med värden från\n" "användarens miljövariabler.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=INFIL POT-infil\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2243,13 +2231,13 @@ "Om ingen infil ges söks POT-filen i aktuell katalog.\n" "Om den är - läses standard in.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr "" " -o, --output-file=FIL skriv resultatet till den givna PO-filen\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2258,18 +2246,18 @@ "Om ingen utfil ges beror den på flaggan --locale eller användarens\n" "lokalinställning. Om den är - skrivs resultatet till standard ut.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC sätt mållokal\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr " --no-translator antag att PO-filen är automatgenererad\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2277,12 +2265,12 @@ "Hittade fler än en .pot-fil.\n" "Ange .pot-infil med flaggan --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "fel vid läsning av aktuell katalog" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2290,14 +2278,14 @@ "Hittade ingen .pot-fil i aktuell katalog.\n" "Ange .pot-infil med flaggan --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s-barnprocess terminerade med slutstatus %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2312,28 +2300,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Svenska översättningar för paket %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "nuvarande teckenuppsättning \"%s\" är inte ett portabelt kodningsnamn" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "två olika teckenuppsättningar \"%s\" och \"%s\" i infilen" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "infilen \"%s\" saknar en huvudrad som anger teckenuppsättning" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2341,19 +2329,19 @@ msgstr "" "domän \"%s\" i infil \"%s\" saknar en huvudrad som anger teckenuppsättning" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "målteckenuppsättning \"%s\" är inte ett portabelt kodningsnamn" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "varning: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2362,7 +2350,7 @@ "Infiler har meddelanden med flera kodningar, däribland UTF-8.\n" "Konverterar resultatet till UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2374,7 +2362,7 @@ "Konverterar resultatet till UTF-8.\n" "Använd flaggan --to-code för att välja en annan kodning.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2388,7 +2376,7 @@ "eller se till att de är UTF-8-kodade från början, d.v.s. redan i dina\n" "källkodsfiler.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2401,12 +2389,12 @@ "Resultatet för \"%s\" kan bli felaktigt.\n" "Möjliga sätt att komma runt problemet är:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Sätt LC_ALL till en lokal med kodning %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2417,7 +2405,7 @@ " tillämpa därefter \"%s\",\n" " konvertera sedan tillbaka till %s med \"msgconv\".\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2430,7 +2418,7 @@ " tillämpa därefter \"%s\"\n" " konvertera sedan tillbaka till %s med \"msgconv\".\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2441,74 +2429,74 @@ "Resultatet för \"%s\" kan bli felaktigt.\n" "Ett möjligt sätt att komma runt problemet är att sätta LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "pluraluttryck kan producera negativa värden" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu men pluraluttryck kan ge värden upp till %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "pluraluttryck kan ge division med noll" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "pluraluttryck kan ge heltalsspill" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "pluraluttryck kan ge aritmetiska fel, möjligen division med noll" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Försök använda den här, gäller för \"%s\":" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "meddelandekatalog har översättningar med pluralform" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "men huvudrader saknar attribut av typ \"plurals=UTTRYCK\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "men huvudrader saknar ett attribut av typ \"nplurals=HELTAL\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "ogiltigt värde för nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "ogiltigt pluraluttryck" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "men några meddelanden har bara en pluralform" msgstr[1] "men några meddelanden har bara %lu pluralformer" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "men några meddelanden har en pluralform" msgstr[1] "men några meddelanden har %lu pluralformer" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2516,83 +2504,83 @@ "meddelandekatalog har översättningar med pluralformer, men saknar huvudrad " "med \"Plural-Forms: nplurals=HELTAL; plural=UTTRYCK;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "\"msgid\"- och \"msgid_plural\"-raderna börjar inte båda med \"\\n\"" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "\"msgid\"- och \"msgstr[%u]\"-raderna börjar inte båda med \"\\n\"" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "\"msgid\"- och \"msgstr\"-raderna börjar inte båda med \"\\n\"" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "\"msgid\"- och \"msgid_plural\"-raderna slutar inte båda med \"\\n\"" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "\"msgid\"- och \"msgstr[%u]\"-raderna slutar inte båda med \"\\n\"" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "\"msgid\"- och \"msgstr\"-raderna slutar inte båda med \"\\n\"" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "hantering av plural är en utökning i GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr saknar märket \"%c\" för tangentkortkommandon" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr har för många märken \"%c\" för tangentkortkommandon" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" +msgid "header field `%s' missing in header\n" msgstr "huvudrad \"%s\" saknas i huvudet\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "huvudrad \"%s\" bör ligga i början på raden\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "vissa huvudrader har kvar initiala standardvärden\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" +msgid "header field `%s' still has the initial default value\n" msgstr "huvudrad \"%s\" har kvar initialt standardvärde\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: indata är inte giltig i teckenkodningen \"%s\"" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "" "%s: fel uppstod vid konvertering från teckenuppsättning \"%s\" till " "teckenuppsättning \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "infilen saknar en huvudrad som anger teckenuppsättning" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2601,7 +2589,7 @@ "Kan inte konvertera från \"%s\" till \"%s\". %s beror på iconv()\n" "och iconv() stöder inte denna konvertering." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2610,8 +2598,8 @@ "Konvertering från \"%s\" till \"%s\" ger duplikat: några msgid som skiljer " "sig blir lika." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2620,16 +2608,16 @@ "Kan inte konvertera från \"%s\" till \"%s\". %s beror på iconv().\n" "Denna version byggdes utan iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s är endast giltig med %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "säkerhetskopieringstyp" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2652,19 +2640,19 @@ "dock bevaras punktkommentarer och filpositioner. Om en exakt likhet\n" "inte kan hittas används luddig jämförelse för att ge bättre resultat.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr "" " def.po översättningar som refererar till gamla " "källkoden\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot referenser till den nya källkoden\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2673,7 +2661,7 @@ " -C, --compendium=FIL ytterligare kataloger med översättningar,\n" " kan anges flera gånger\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2682,27 +2670,27 @@ " -U, --update updatera def.po,\n" " gör ingenting om def.po redan är aktuell\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Plats för utfil i uppdateringsläge:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Resultatet skrivs tillbaka till def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=KONTROLL gör en säkerhetskopia av def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFIX använd ett annat suffix än det vanliga\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2721,7 +2709,7 @@ "annars\n" " simple, never gör alltid enkla säkerhetskopior\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2731,12 +2719,7 @@ "Suffix för säkerhetskopior är \"~\", om den inte sätts med --suffix eller\n" "miljövariabeln SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching använd inte luddig jämförelse\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2744,22 +2727,22 @@ " --previous behåll föregående \"msgid\" för översatta " "meddelanden\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent visa inte förloppsindikatorer\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "detta meddelande ska definiera pluralformer" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "detta meddelande ska inte definiera pluralformer" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2768,27 +2751,29 @@ "%sLäste %ld gamla + %ld referenser, %ld sammanslagna, %ld luddiga, %ld " "saknade, %ld föråldrade.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " klar.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s och explicita filnamn är ömsesidigt uteslutande" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Användning: %s [FLAGGA] [FIL]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Konvertera en binär meddelandekatalog till en .po-fil av Uniforum-typ\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2797,12 +2782,12 @@ " -j, --java Javaläge: indata är en Java ResourceBundle-" "klass\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C#-läge: indata är en .NET .dll-fil\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2811,7 +2796,7 @@ " --csharp-resources C#-resursläge: indata är en .NET .resources-" "fil\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2819,17 +2804,17 @@ " --tcl Tcl-läge: indata är en .msg-fil av tcl/msgcat-" "typ\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " FIL ... .mo-infiler\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Plats för infil i Javaläge:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2839,12 +2824,12 @@ "Klassnamnet härleds genom att lägga till lokalnamnet till resursnamnet\n" "avskiljt med ett understreck. Klassen söks med hjälp av CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Plats för infil i C#-läge:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2854,12 +2839,12 @@ "underkatalog\n" "till den givna katalogen. Underkatalogens namn beror på lokalen.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Plats för infil i Tcl-läge:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2868,17 +2853,17 @@ "Flaggorna -l och -d är obligatoriska. .msg-filen ligger i den givna\n" "katalogen.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent indentera resultatet\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict strikt Uniforum-format på resultatet\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2900,12 +2885,12 @@ "översättningen. Filpositioner samlas ihop.\n" "När flaggan --unique anges kastas duplikat bort.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated skriv bara duplicerade meddelanden\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2913,7 +2898,7 @@ msgstr "" " -u, --unique skriv bara unika meddelanden, duplikat kastas\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3000,65 +2985,65 @@ msgid "plural form has wrong index" msgstr "pluralform har fel index" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "för många fel, avbryter körningen" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "ogiltig flerbytesekvens" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "ofullständig flerbytesekvens i slutet på filen" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "ofullständig flerbytesekvens i slutet på raden" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv misslyckades" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "nyckelordet \"%s\" är okänt" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "ogiltig kontrollsekvens" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "filslut inne i en sträng" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "radslut inne i en sträng" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "kontextseparator inne i sträng" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "denna fil kan inte innehålla domändirektiv" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "meddelandedefinitionen är dubblerad" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "detta är platsen för den första definitionen" @@ -3146,17 +3131,17 @@ "fel uppstod vid konvertering från teckenuppsättning \"%s\" till " "teckenuppsättning \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "förväntade två argument" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Användning: %s [FLAGGA] URL FIL\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3165,11 +3150,26 @@ "Hämtar och skriver ut innehållet på URL. Om URL inte kan hämtas används\n" "den lokala filen FIL istället.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "fel vid skrivning till standard ut" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Hämtar %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " tiden tog slut.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " misslyckades.\n" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3212,42 +3212,42 @@ "meddelandekatalog har översättningar med pluralformer, men utdataformatet " "stöder inte pluralhantering." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "kan inte skapa utfilen \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standard ut" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "misslyckades med att skapa katalogen \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" -msgstr "kompilering av C# klass misslyckades, försök med --verbose" +msgstr "kompilering av C#-klass misslyckades, försök med --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" -msgstr "kompilering av C# klass misslyckades" +msgstr "kompilering av C#-klass misslyckades" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "inte ett giltigt Javaklassnamn: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "kompilering av Javaklass misslyckades, försök med --verbose eller sätt $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "kompilering av Javaklass misslyckades, försök sätta $JAVAC" @@ -3257,14 +3257,14 @@ msgid "error while opening \"%s\" for writing" msgstr "fel uppstod när \"%s\" öppnades för skrivning" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "" "internationaliserade meddelanden bör inte ha kontrollsekvensen \"\\%c\"" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3277,7 +3277,7 @@ "teckenuppsättning än du. Försök använda en ren ASCII-msgctxt istället.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3300,8 +3300,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3324,7 +3324,7 @@ msgid "error while writing to %s subprocess" msgstr "fel vid skrivning till subprocess %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3332,7 +3332,7 @@ "meddelandekatalog har kontextberoende översättningar men formatet för\n" "C# .resources stödjer inte kontexter\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3356,36 +3356,31 @@ "meddelandekatalog har översättningar med pluralformer men formatet för\n" "Tcl-meddelandekataloger stöder inte pluralhantering\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: varning: oavslutad sträng" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: varning: oavslutat reguljärt uttryck" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: varning: oavslutad teckenkonstant" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: varning: oavslutad sträng" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"Sträng är inte i ASCII i %s%s.\n" -"Ange källkodning med --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Ange källkodning med --from-code." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3394,7 +3389,7 @@ "%s:%d: Ogiltig multibytesekvens.\n" "Ange korrekt källkodning med --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3404,7 +3399,7 @@ "Ange korrekt källkodning med --from-code.\n" "\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3414,7 +3409,7 @@ "Ange korrekt källkodning med --from-code.\n" "\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3423,12 +3418,12 @@ "%s:%d: Ofullständig multibytesekvens vid radslut.\n" "Ange korrekt källkodning med --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv misslyckades" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3438,32 +3433,32 @@ "Ange korrekt källkodning med --from-code.\n" "\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: varning: ogiltigt Unicodetecken" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: varning: oavslutad strängkonstant" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: varning: \")\" hittades där \"}\" förväntades" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: varning: \"}\" hittades där \")\" förväntades" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3472,58 +3467,55 @@ "Språk \"glade\" stöds ej. %s beror på expat.\n" "Denna version byggdes utan expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: varning: ensamt surrogat U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: hittar inte strängslutet \"%s\" någonstans före filslut" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: höger krullparentes fattas i \\x{HEXNUMMER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: ogiltig sekvens (\"\\l\") för åttabitarstecknet \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: ogiltig sekvens (\"\\u\") för åttabitarstecknet \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: ogiltig variabelinterpolation vid \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: ogiltig sekvens (\"\\L\") för åttabitarstecknet \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: ogiltig sekvens (\"\\U\") för åttabitarstecknet \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"Sträng är inte i ASCII i %s%s.\n" "Ange källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3534,7 +3526,7 @@ "Ange korrekt källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3545,7 +3537,7 @@ "Ange korrekt källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3556,7 +3548,7 @@ "Ange korrekt källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3567,7 +3559,7 @@ "Ange korrekt källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3578,27 +3570,27 @@ "Ange korrekt källkodning med --from-code eller med en kommentar enligt\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Okänd kodning \"%s\". Fortsätter med ASCII istället." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: ogiltig strängdefinition" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d fattas tal efter #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: ogiltigt strängmönster" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3607,28 +3599,28 @@ "%s:%lu: varning: syntaxen $\"...\" kommer att tas bort av säkerhetsskäl; " "använd eval_gettext istället" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing kan inte användas då resultatet skrivs till standard ut" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext måste ha nyckelord att söka efter för att fungera" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "varning: filtyp \"%s\" med suffix \"%s\" är okänd; försöker med C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Extrahera översättbara strängar från givna infiler.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3637,23 +3629,23 @@ " -d, --default-domain=NAMN använd NAMN.po som utfil (i st.f. messages." "po) \n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FIL skriv resultatet till FIL\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir=KATALOG utfiler placeras i katalogen KATALOG\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Språkval i infiler:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3672,19 +3664,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ samma som --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "I normalläge gissas språket från filändelsen på infilen.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3693,42 +3685,49 @@ " --from-code=NAMN kodning av infiler\n" " (utom för Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Normalt antas att filer är i ASCII-format.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing slå ihop meddelanden med existerande fil\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FIL.po rader från FIL tas inte ut\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" -msgstr "" -" -c, --add-comments[=MÄRKE] skriv kommentarsblock med MÄRKE (eller de\n" -" före nyckelordsrader) till resultatet\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" +msgstr "" +" -cMÄRKE, --add-comments=MÄRKE skriv kommentarsblock som börjar med MÄRKE\n" +" och föregående nyckelordsrader till " +"resultatet\n" +" -c, --add-comments skriv alla kommentarsblock före " +"nyckelordsrader\n" +" till resultatet\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Språkspecifika val:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all extrahera alla strängar\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3741,17 +3740,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=ORD] extra nyckelord att titta efter (om ORD\n" -" utelämnas, titta inte efter " -"standardnyckelord)\n" +" -kORD, --keyword[=ORD] sök efter ORD som ett extra nyckelord\n" +" -k, --keyword använd inte standardnyckelord\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3761,7 +3759,7 @@ " --flag=ORD:NR:FLAGGA extra FLAGGA för strängar inne i argument\n" " nummer NR för nyckelord ORD\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3774,73 +3772,73 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs hantera ANSI C treteckenssekvenser i infiler\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (bara språken C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt känn igen Qt-formatsträngar\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (bara språket C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde känn igen KDE 4 formatsträngar\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost känn igen Boost-formatsträngar\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug mer detaljerad igenkänning av formatsträngar\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output skriv en \"Java .properties\"-fil\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" " --copyright-holder=STRÄNG sätt copyrightinnehavare i resultatet\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr "" " --foreign-user utelämna FSF copyrighttext i resultatet\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr " --package-name=PAKET sätt paketnamn i utdata\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --package-version=VERSION sätt paketversion i utdata\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3848,42 +3846,59 @@ " --msgid-bugs-address=EPOST@ADRESS sätt mottagare för msgid-" "felrapporter\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=STRÄNG] inled översatta strängar med STRÄNG eller " -"\"\"\n" +" -m[STRÄNG], --msgstr-prefix[=STRÄNG] inled översatta strängar med STRÄNG " +"eller \"\"\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=STRÄNG] avsluta översatta strängar med STRÄNG eller " -"\"\"\n" +" -M[STRÄNG], --msgstr-suffix[=STRÄNG] avsluta översatta strängar med " +"STRÄNG eller \"\"\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Ett \"--flag\"-argument har inte ::[pass-] syntax: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standard in" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Icke-ASCII-tecken vid %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Icke-ASCII-kommentar vid eller före %s%s." + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Icke-ASCII-sträng vid %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: varning: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3892,16 +3907,16 @@ "%s är inte en giltig formatsträng för %s trots att den används i en " "formatsträngsposition. Orsak: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "%s är inte en giltig formatsträng för %s trots att den är deklarerad som en. " "Orsak: %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3915,7 +3930,7 @@ "Överväg att istället använda en formatsträng med namngivna argument\n" "och en mappning istället för en lista för argumenten.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3925,27 +3940,27 @@ "gettext(\"\") returnerar huvudet med metainformation,\n" "inte den tomma strängen.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "tvetydig argumentspecifikation för nyckelord \"%.*s\"" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "varning: kontext saknas för nyckelordet \"%.*s\"" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "varning: kontext saknas för pluralargumentet till nyckelordet \"%.*s\"" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "kontext misstämmer mellan singular- och pluralformen" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3957,7 +3972,7 @@ "på variabeln MSGID_BUGS_ADDRESS där, annars ange\n" "flaggan --msgid-bugs-address på kommandoraden.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "språket \"%s\" okänt" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/tr.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/tr.gmo differ diff -Nru gettext-0.17/gettext-tools/po/tr.po gettext-0.18.1.1/gettext-tools/po/tr.po --- gettext-0.17/gettext-tools/po/tr.po 2007-11-02 02:24:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/tr.po 2010-06-06 12:49:58.000000000 +0000 @@ -6,10 +6,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-07-09 09:21+0300\n" "Last-Translator: Nilgün Belma Bugüner \n" "Language-Team: Turkish \n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,22 +32,22 @@ msgid "Valid arguments are:" msgstr "Geçerli argümanlar:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "geçici dizin bulunamadı, $TMPDIR ortam değişkeniyle belirtmeyi deneyin" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "\"%s\" şablonu kullanılarak bir geçici dizin oluşturulamaz" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "geçici dosya %s silinemiyor" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "geçici dizin %s silinemiyor" @@ -55,44 +56,44 @@ msgid "write error" msgstr "yazma hatası" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "\"%s\" okunmak için açılırken hata" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "\"%s\" yedek dosyası yazılmak için açılırken hata" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "\"%s\" okunurken hata" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "\"%s\" yazılırken hata" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "\"%s\" okunduktan sonra hata" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() başarısız" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "C# derleyici bulunamadı, pnet kurmayı deneyin" @@ -102,74 +103,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "C# sanal makinası bulunamadı, pnet kurmayı deneyin" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Bilinmeyen sistem hatası" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s alt süreci başarısız" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: `%s' seçeneği belirsiz\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: `--%s' seçeneği argümansız kullanılır\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: `%c%s' seçeneği argümansız kullanılır\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: `%s' seçeneği bir argümanla kullanılır\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: `--%s' seçeneği bilinmiyor\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: `%c%s' seçeneği bilinmiyor\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: kuraldışı seçenek -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: geçersiz seçenek -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: seçenek için bir argüman gerekli -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: `-W %s' seçeneği belirsiz\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: `-W %s' seçeneği bir argümanla kullanılmaz\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: `%s' seçeneği bir argümanla kullanılır\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -181,20 +181,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "compile_java_class'ın target_version argümanı geçersiz" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "\"%s\" oluşturulamadı" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "\"%s\" dosyasına yazarken hata" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -207,20 +207,20 @@ "Java sanal makinası bulunamadı,\n" "ya gij kurun ya da $JAVA değişkenini belirleyin" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s alt süreci G/Ç hatası" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "bellek tükendi" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -239,71 +239,70 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle 0x%08x hata kodu vererek başarısız oldu" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle başarısız oldu" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "\"%s\" çıktı dosyası oluşturulamıyor" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s alt süreci" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s alt süreci ölümcül sinyal %d aldı" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "'%s', 'msgid' gibi geçerli bir %s biçem dizgesi değil. Sebebi: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "'%2$s' içindeki %1$u.argüman için bir biçem belirteci 'msgid' içinde yok" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "%u. argüman için '%s' içinde bir biçem belirteci yok" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "`msgid' ve '%s' girdilerindeki biçem belirteçleri %u için aynı değil" #: src/format-boost.c:449 @@ -334,9 +333,9 @@ msgstr "" "Dizge %u numaralı argümana karşılık değil, %u numaralı argüman yok sayılıyor." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "`msgid' ve '%s' girdilerindeki biçem belirteçleri farklı sayıda" #: src/format-csharp.c:88 src/format-java.c:205 @@ -380,48 +379,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Dizge, %u yönerge numarasının hemen ardından gelen bir '}' içeriyor." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "%u numaralı yönergede seçeneklerin birleşimi geçersiz" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "%u numaralı yönergede, '%c' den önce bir hassasiyet olmamalı." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "%u numaralı yönergede, hassaiyet için argüman numarası %u olmalı." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "%u numaralı yönergede, '%c' den önce bir hassasiyet olmamalı." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "%u numaralı yönergede, hassasiyet belirtimi geçersiz." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "%u numaralı yönergede, \"%c\" den önce imler olmamalı." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid' %%m kullanırken '%s' kullanmıyor" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid' %%m kullanmazken '%s' %%m kullanıyor" #: src/format-invalid.h:22 @@ -527,22 +526,21 @@ "gelmeyen bir numara içeriyor." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" "'%2$s' içindeki {%1$u}. argüman için bir biçem belirteci 'msgid' içinde yok" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "{%u}.argüman için '%s' içinde bir biçem belirteci yok" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "`msgid' ve '%s' girdilerindeki biçem belirteçleri {%u} için aynı değil" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -558,11 +556,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "%u numaralı yönergede, çok fazla parametre verilmiş; en fazla %u parametre " "umuluyordu." @@ -615,13 +613,13 @@ msgstr "Dizge bazı argümanlara uyumsuz bir yolla karşılık getirilmiş." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "`msgid' ve '%s' girdilerindeki biçem belirteçleri aynı değil" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" "'%s' içindeki biçem belirteçleri 'msgid' içindekilerin bir alt kümesi değil" @@ -634,12 +632,12 @@ "%u numaralı yönergede, boyut belirteci '%c' dönüşüm belirtimi ile uyumlu " "değil." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "'%s' için '%s' içinde bir biçem belirteci yok" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -647,47 +645,44 @@ "Dizge hem argüman isimlerine hem de numarasız argüman belirtimlerine " "karşılık geliyor." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "Dizge '%s' isimli argümana uyumsuz bir yolla karşılık getirilmiş." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "`msgid' içindeki biçem belirteçleri ile bir eşlem umulurken '%s' " "içindekilerle bir işlem umuluyor" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "`msgid' içindeki biçem belirteçleri ile bir işlem umulurken '%s' " "içindekilerle bir eşlem umuluyor" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "'%2$s' içinde '%1$s' için 'msgid' içinde bir biçem belirteci yok" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "'%2$s' için biçem belirteci 'msgid' ve '%1$s' içinde aynı değil" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -730,11 +725,11 @@ msgstr "" "%u numaralı yönergeyi sonlandıran karakter 1 ile 9 arasında bir rakam değil." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -743,38 +738,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "%s tarafından yazıldı.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "çok fazla argüman" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Daha fazla bilgilendirilmek için `%s --help' yazınız.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Kullanımı: %s [SEÇENEK]\n" @@ -809,29 +804,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address konak adresleri\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Bilgilendirme çıktısı:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help bu yardım iletisini gösterir ve çıkar\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version Sürüm bilgilerini gösterir ve çıkar\n" @@ -840,11 +835,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "" "Yazılım hatalarını adresine,\n" @@ -855,30 +850,30 @@ msgid "could not get host name" msgstr "makina ismi alınamadı" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "en fazla bir girdi dosyasına izin var" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s ile %s bağdaşmıyor" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Kullanımı: %s [SEÇENEK] [GİRDİDOSYASI]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -887,33 +882,33 @@ "Çeviri kataloğundaki iletileri belirtilen özelliklere göre süzer,\n" "ve özellikleri uygular.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Uzun seçeneklerdeki zorunlu argümanlar kısa seçenekler için de zorunludur.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Girdi dosyasının yeri:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " GİRDİDOSYASI girdi olan PO dosyası\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -921,30 +916,30 @@ " -D, --directory=DİZİN girdi dosyasının arandığı listeye DİZİNi " "ekler\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "Bir DOSYA verilmemişse ya da - verilmişse standart girdi okunur.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Çıktı dosyasının yeri:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=DOSYA çıktıyı DOSYAya yazar\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -952,12 +947,12 @@ msgstr "" "Sonuçlar DOSYA verilmezse ya da - verilirse standart çıktıya yazılır.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "İleti seçimi:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" @@ -965,7 +960,7 @@ " --translated çevrilmiş iletileri tutar çevrilmemişleri " "siler\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" @@ -973,54 +968,54 @@ " --untranslated çevrilmemiş iletileri tutar çevrilmişleri " "siler\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy 'fuzzy' imli iletileri siler\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy 'fuzzy' imli iletileri tutar\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete kullanımdışı olan #~ iletilerini siler\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete kullanımdışı olan #~ iletilerini tutar\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Nitelik değiştirme:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy tüm iletileri 'fuzzy' olarak imler\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy tüm 'fuzzy' imlerini kaldırır\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete tüm iletileri kullanımdışı yapar\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete kullanımdışı iletilerin tümünü kullanıma " "sokar\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1028,14 +1023,14 @@ msgstr "" " --clear-previous tüm iletilerden eski msgid'ler kaldırılır\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=DOSYA.po sadece DOSYA.po içindeki girdileri değiştirir\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1043,29 +1038,29 @@ " --ignore-file=DOSYA.po sadece DOSYA.po içinde bulunmayan girdileri\n" " değiştirir\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr "" " --fuzzy --only-fuzzy --clear-fuzzy ile eşanlamlı\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete --only-obsolete --clear-obsolete ile eşanlamlı\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Girdi dosyası sözdizimi:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" @@ -1073,8 +1068,8 @@ " -P, --properties-input girdi dosyası Java .properties " "sözdizimindedir\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1083,17 +1078,35 @@ " --stringtable-input NeXTstep/GNUstep .strings sözdizimli girdi " "dosyası\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Çıktı ayrıntıları:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1101,9 +1114,9 @@ " -e, --no-escape çıktıda C öncelemeleri kullanılmaz " "(öntanımlı)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1112,28 +1125,28 @@ "karakterler\n" " yorumlanmaz\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po boş bile olsa PO dosyasını yazar\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent .po dosyasını girintili tarzda yazar\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location '#: dosyaismi:satır' satırları yazılmaz\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1141,25 +1154,25 @@ " -n, --add-location '#: dosyaismi:satır' satırları üretilir\n" " (öntanımlı\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict .po dosyasının bilinen biçeminde yazar.\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" " -p, --properties-output çıktıyı bir Java .properties dosyasına yazar\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" @@ -1167,16 +1180,16 @@ " --stringtable-output çıktıyı bir NeXTstep/GNUstep .strings\n" " dosyasına yazar\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=SAYI sayfa genişliğini SAYIya ayarlar\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1185,31 +1198,31 @@ " --no-wrap sayfa genişliğine sığmayan satırların taşan\n" " kısmı bir alt satıra indirilmez\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output sıralı çıktı üretir\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file çıktıyı dosyadaki yerine göre sıralar\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "belirtilen seçim kriteri mümkün değil (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Kullanımı: %s [SEÇENEK] [GİRDİDOSYASI]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1233,24 +1246,24 @@ "korunur, belirtildiğinde bunlar ilk PO dosyasında belirtildiği şekliyle\n" "alınır.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " GİRDİDOSYASI ... girdi dosyaları\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" " -f, --files-from=DOSYA girdi dosyalarının listesi DOSYAdan alınır\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Girdi dosyası - ise, standart girdi okunur.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1259,7 +1272,7 @@ " -<, --less-than=SAYI bu SAYIdan daha fazla olan iletileri basmaz,\n" " belirtilmezse öntanımlı sonsuzdur.\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1268,7 +1281,7 @@ " ->, --more-than=NUMBER bu SAYIdan daha az olan iletileri basmaz,\n" " belirtilmezse öntanımlı 0 dır.\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1277,8 +1290,8 @@ " -u, --unique --less-than=2 için kısaltmadır, sadece\n" " eşi olmayan iletiler basılır\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" @@ -1286,8 +1299,8 @@ " -P, --properties-input girdi dosyaları Java .properties " "sözdizimlidir\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1296,12 +1309,12 @@ " --stringtable-input NeXTstep/GNUstep .strings sözdizimli girdi\n" " dosyaları\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=İSİM çıktı için kodlama\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1310,41 +1323,33 @@ " --use-first her ileti için mevcut olan ilk kullanılır,\n" " çok sayıda çeviri varsa bile alınmaz.\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "hiçbir girdi dosyası verilmemiş" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "tam olarak 2 girdi dosyası gerekli" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Kullanımı: %s [SEÇENEK] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1360,22 +1365,22 @@ "ve çevirisini kontrol etmek için kullanışlıdır. Zorunlu eşleşme bulunamazsa,\n" "belirsiz (fuzzy) eşleştirme yapılır.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po çeviriler\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot kaynaklara bağlantılar\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "İşlem değiştiriciler:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1383,60 +1388,65 @@ msgstr "" " -m, --multi-domain ref.pot'u tüm def.po dosyalarına uygular\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching fuzzy eşleşmeler kullanılmaz\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy çıktıda fuzzy girdiler kullanılır\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr "" " --use-untranslated çıktıda çevrilmemiş girdiler kullanılır\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "bu ileti çevrilmemiş" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "bu iletiyi çevirmenin gözden geçirmesi lazım" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "bu ileti kullanıldı ama tanımlı değil..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...ama bu tanımlama benzer" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "bu ileti kullanıldı ama %s'de tanımlı değil" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "uyarı: bu ileti kullanılmamış" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "%d ölümcül hata bulundu" msgstr[1] "%d ölümcül hata bulundu" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "en az iki dosya belirtilmelidir" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1458,7 +1468,7 @@ "çıkarma yorumları korunmuş olacaktır. Tüm PO dosyalarındaki dosya konumları\n" "korunmuş olacaktır.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1467,42 +1477,42 @@ " ->, --more-than=SAYI SAYIdan daha fazla olan iletileri basar,\n" " verilmezse öntanımlı 1 dir\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr "" " --omit-header başlıktaki `msgid \"\"' girdisini yazmaz\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Bir çeviri kataloğunu başka bir karakter kodlamasına dönüştürür.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Dönüşüm hedefi:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Öntanımlı kodlama mevcut yerelin kodlamasıdır.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent girintili çıktı tarzı\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" " --no-location '#: dosyaismi:satır' satırlarını engeller\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" @@ -1510,28 +1520,28 @@ " --add-location '#: dosyaismi:satır' satırları korunur\n" " (öntanımlı)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict çıktı bilinen biçemde yazılır\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "hiç girdi dosyası verilmemiş" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "tam olarak 1 girdi dosyası gerekli" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Kullanımı: %s [SEÇENEK] GİRDİDOSYASI\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1544,22 +1554,22 @@ "PO Şablon dosyasıdır. Çevirisiz girdilere msgid ile uyuşan bir çeviri\n" "yerleştirilir ve fuzzy olarak imlenir.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " GİRDİDOSYASI PO ya da POT dosyası\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "komut ismi eksik" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Kullanımı: %s [SEÇENEK] KOMUT [KOMUT-SEÇENEĞİ]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1574,7 +1584,7 @@ "çıktısı olarak görünür. msgexec dönüş kodu olarak tüm çağrılardan\n" "elde edilen en yüksek dönüş kodunu verir.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1583,42 +1593,42 @@ "'0' özel bir yerleşik komuttur ve bir null bayt ile sonlanan çeviri\n" "çıktılar. \"msgexec 0\"ın çıktısı \"xargs -0\"a girdi olarak elverişlidir.\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=GİRDİDOSYASI PO dosyası\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "standart çıktıya yazılamadı" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "%s alt sürecine yazılamadı" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "süzgeç ismi eksik" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "en az bir sed betiği belirtilmelidir" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Kullanımı: %s [SEÇENEK] SÜZGEÇ [SÜZGEÇ-SEÇENEĞİ]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Bir çeviri kataloğunun tüm çevirilerine bir süzgeç uygular.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1627,18 +1637,18 @@ "SÜZGEÇ çeviriyi standart girdiden okuyabilen ve değiştirilmiş çeviriyi\n" "standart çıktıya yazabilen herhangi bir programdır.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "SÜZGEÇ 'sed' iken kullanılan SÜZGEÇ-SEÇENEKleri:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=BETİK BETİK çalıştırılacak komutlara eklenir\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1648,14 +1658,14 @@ " -f, --file=BETİK BETİK dosyasının içeriğini çalıştırılacak\n" " komutlara ekler\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr "" " -n, --quiet, --silent kalıp alanının otomatik basılmasını engeller\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1663,110 +1673,92 @@ " --no-escape çıktıda C öncelemeleri kullanılmaz " "(öntanımlı)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent girintili çıktı tarzı\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr " --keep-header başlık değiştirilmeden korunur\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Henüz çalışmıyor." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "%s alt sürecine bloklanmayan G/Ç belirtilemez" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "%s alt süreci ile haberleşilemedi" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "%s alt sürecinden okunamadı" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s alt süreci %d çıkış kodu ile sonlandırıldı" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "%s argümanı bir noktalama işareti olmalıydı" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "bayt sırası geçersiz: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s bir \"-d dizin\" uygulanmasını gerektiriyor" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s bir \"-l yerel\" belirtilmesini gerektiriyor" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s sadece %s ya da %s ile geçerlidir" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s sadece %s, %s ya da %s ile geçerlidir" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d çevrilmiş ileti" msgstr[1] "%d çevrilmiş ileti" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d belirsiz çeviri" msgstr[1] ", %d belirsiz çeviri" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d çevrilmemiş ileti" msgstr[1] ", %d çevrilmemiş ileti" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Kullanımı: %s [SEÇENEK] dosyaismi.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Çevirilerin bulunduğu dosyadan ikilik ileti kataloğunu üretir.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1775,17 +1767,17 @@ "Uzun seçeneklerdeki zorunlu argümanlar kısa seçeneklerde de zorunludur.\n" "Benzer durum seçimlik argümanlar içinde geçerlidir.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " DOSYAİSMİ.po ... girdi dosyaları\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "İşlem kipi:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1794,7 +1786,7 @@ " -j, --java Java kipi: bir Java ResourceBundle sınıfı " "üretir\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1804,13 +1796,13 @@ "yüksek)\n" " kabul edilir\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --csharp C# kipi: bir .NET .dll dosyası üretilir\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1819,53 +1811,53 @@ " --csharp-resources C# özkaynak kipi: bir .NET .resources dosyası\n" " üretilir\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl kipi:bir tcl/msgcat .msg dosyası üretilir\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt kipi: bir Qt .qm dosyası üretir\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict bilinen kip etkinleştirilir\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "Çıktı dosyası - verilmişse, standard çıktı kullanılır.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Java kipinde çıktı dosyasının yeri:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=ÖZKAYNAK özkaynak ismi\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr " -l, --locale=YEREL yerel ismi, \"tr\" ya da \"tr_TR\"\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d DİZİN sınıf ana dizini\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1876,12 +1868,12 @@ "Sınıf ismi, özkaynak ismine yerel isminin bir altçizgi ile eklenmesiyle\n" "saptanır. Sınıf DİZİNe yazılacağından -d seçeneği zorunludur.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "C# kipinde çıktı dosyasının yeri:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1889,7 +1881,7 @@ msgstr "" " -d DİZİN yerele bağımlı .dll dosyaları için kök dizin\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1899,17 +1891,17 @@ "belirlenen\n" "dizinin bir altdizinine yazılır.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Tcl kipte çıktı dosyasının yeri:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr " -d DİZİN .msg ileti kataloglarının ana dizini\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1917,12 +1909,12 @@ msgstr "" "-l ve -d seçenekleri zorunludur. .msg dosyası belirtilen dizine yazılır.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Girdi dosyası yorumlaması:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1933,13 +1925,13 @@ "domain\n" " için kısaltma\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format dile bağlı biçem dizgeleri kontrol edilir\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1948,7 +1940,7 @@ " --check-header başlık girdilerilerinin varlığı ve içeriği\n" " kontrol edilir\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1957,7 +1949,7 @@ " --check-domain --output-file seçeneği ile paket yönergeleri\n" " arasındaki çelişkiler kontrol edilir\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1965,7 +1957,7 @@ msgstr "" " -C, --check-compatibility GNU msgfmt, X/Open msgfmt gibi mi davranıyor\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1975,98 +1967,98 @@ " --check-accelerators[=KRKT] menü öğeleri için tuş belirticiler\n" " kontrol edilir\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy çıktıda fuzzy girdiler kullanılır\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=SAYI dizgeleri SAYI bayta ayarlar (öntanımlı: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash ikilik dosya saçılma tablosunu içermeyecek\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr "" " --statistics çeviriler hakkındaki istatistikleri basar\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose daha ayrıntılı çıktı verilir\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "uyarı: PO dosya başlığı ya yok ya da geçersiz\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "uyarı: Kullanıcının karakter kümesinde ileti dönüşümü yapılamayacak.\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "uyarı: PO dosya başlığı fuzzy\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "uyarı: msgfmt'ın eski sürümleri bu dosyada hata verecektir.\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "dosya ismi olarak paket ismi \"%s\" uygun değil" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "dosya ismi olarak paket ismi \"%s\" uygun değil: önek kullanılacak" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "`domain %s' yönergesi yoksayıldı" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "boş `msgstr' girdisi yoksayıldı" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "fuzzy `msgstr' girdisi yoksayıldı" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: uyarı: kaynak dosya fuzzy çeviriler içeriyor" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "\"%s\" okunurken hata" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2075,7 +2067,7 @@ "'%c' seçeneği 'J', 'K', 'T', 'C' veya 'X' harflerinden biri belirtilmeden " "önce kullanılamaz" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2084,7 +2076,7 @@ "Verilen bir kalıp ile uyuşan ya da verilen kaynak dosyalarına ait olan\n" "bir çeviri kataloğunun tüm iletilerini çıkarır.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2162,7 +2154,7 @@ " -v, --invert-match sadece bir seçim kriteri ile eşleşmeyen iletiler\n" " çıktılanır\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2171,17 +2163,17 @@ "karakterler\n" " yorumlanmaz\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output sıralı çıktı üretir\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file sıralama dosyanın yerine göre yapılır\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2191,7 +2183,7 @@ "değişkenini ABOUT-NLS dosyasında açıklandığı gibi belirtin.\n" "Bu çevirinizi test edebilmeniz için gereklidir.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2202,24 +2194,24 @@ "Lütfen --locale seçeneğinden bir yerel ya da\n" "--output-file seçeneğinden .po çıktı dosyası belirtin.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s oluşturuldu.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "Kullanıcının ortam değişkenlerindeki bilgilerle bir yeni PO dosyası oluşturur.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=GİRDİDOSYASI POT dosyası\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2229,12 +2221,12 @@ "Girdi dosyası verilmemişse, POT dosyası içinde bulunulan dizinde aranır,\n" "- verilmişse standart girdi okunur.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=DOSYA çıktı belirtilen PO dosyasına yazılır\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2243,19 +2235,19 @@ "Çıktı dosyası verilmemişse, --locale seçeneği ya da kullanıcının yerel\n" "ayarları kullanılır, - verilmişse sonuçlar standart çıktıya yazılır.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=tr_TR hedef yerel belirtilir\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator PO dosyasının otomatik üretildiği varsayılır\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2264,12 +2256,12 @@ "Lütfen girdi olarak kullanılacak .pot dosyasını --input seçeneği ile " "belirtin.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "dizin okunurken hata" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2278,14 +2270,14 @@ "Lütfen girdi olarak kullanılacak .pot dosyasını --input seçeneği ile " "belirtin.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s alt süreci çıkış kodu %d ile başarısız" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2300,28 +2292,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "%s paketi için Türkçe çeviriler" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "mevcut karakter kümesi \"%s\" kabul görmüş bir kodlama ismi değil" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "girdi dosyasında iki farklı karakter kümesi: \"%s\" ve \"%s\"" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "girdi dosyası `%s' başlığında bir karakter kümesi belirtilmemiş." -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2330,19 +2322,19 @@ "\"%s\" paketi girdi dosyası `%s' başlığındaki charset alanında bir karakter\n" "kümesi belirtilmemiş" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "hedef karakter kümesi \"%s\" kabul görmüş bir kodlama ismi değil." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "uyarı: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2351,7 +2343,7 @@ "Girdi dosyası UTF-8 ile karışık farklı kodlamalar içeriyor.\n" "Çıktı UTF-8'e dönüştürülüyor.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2363,7 +2355,7 @@ "Çıktı UTF-8'e çevriliyor.\n" "--to-code seçeneğini kullanarak başka bir kodlama da seçebilirsiniz.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2377,7 +2369,7 @@ "dosyalarınızdaki gibi başından itibaren UTF-8 kodlanmış olmalarını " "sağlayın.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2390,12 +2382,12 @@ "'%s' çıktısı yanlış olabilir.\n" "Yapılabilecekler:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- LC_ALL değişkenini %s kodlamasını kullanan bir yerele ayarlayın.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2406,7 +2398,7 @@ " '%s' uyguladıktan sonra,\n" " 'msgconv' kullanarak tekrar %s a dönün.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2419,7 +2411,7 @@ " '%s' uyguladıktan sonra,\n" " 'msgconv' kullanarak tekrar %s a dönün.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2430,75 +2422,75 @@ "'%s' çıktısı yanlış olabilir.\n" "Tek yapılabilecek LC_ALL=C ayarlamaktır.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "çoğul ifadeler negatif değerler üretebilir" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu ama çoğul ifadeler en çok %lu değer üretebilir" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "çoğul ifade sıfırla bölme hatası üretebilir" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "çoğul ifade tamsayı taşması üretebilir" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "" "çoğul ifade aritmetik hatalar, özellikle de sıfırla bölme hatası üretebilir" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Aşağıdakiler %s için geçerli mi diye kullanmayı dene:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "ileti kataloğu çoğul çeviriler içeriyor" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...ama başlıkta \"plural=İFADE\" gibi bir şey yok" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...ama başlıkta \"nplurals=TAMSAYI\" gibi bir şey yok" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "nplurals değeri geçersiz" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "plural= ile verilen ifade geçersiz" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "...ama bazı iletiler tek çoğul biçem içeriyor" msgstr[1] "...ama bazı iletiler sadece %lu çoğul biçem içeriyor" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "...ama bazı iletiler tek çoğul biçem içeriyor" msgstr[1] "...ama bazı iletiler %lu çoğul biçem içeriyor" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2506,82 +2498,82 @@ "ileti kataloğu çoğul çeviriler içermesine rağmen başlıkta\n" "\"Plural-Forms: nplurals=TAMSAYI; plural=İFADE;\" gibi bir şey yok." -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "`msgid' ve `msgid_plural' girdilerinin her ikisi de '\\n' ile başlamıyor" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "`msgid' ve `msgstr[%u]' girdilerinin her ikisi de '\\n' ile başlamıyor" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "`msgid' ve `msgstr' girdilerinin her ikisi de '\\n' ile başlamıyor" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "`msgid' ve `msgid_plural' girdilerinin her ikisi de '\\n' ile bitmiyor" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "`msgid' ve `msgstr[%u]' girdilerinin her ikisi de '\\n' ile bitmiyor" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "`msgid' ve `msgstr' girdilerinin her ikisi de '\\n' ile bitmiyor" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "çoğul biçemler bir GNU gettext özelliğidir" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "içinde '%c' tuş kısayolu eksik" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "çok fazla '%c' tuş kısayolu içeriyor" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "başlıkta `%s' başlık alanı yok\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "`%s' başlık alanı satırın başında olmalıydı\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "bazı başlık alanları hala öntanımlı ilk değere sahip\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "`%s' başlık alanı hala öntanımlı ilk değere sahip\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "bazı başlık alanları hala öntanımlı ilk değere sahip\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: girdi \"%s\" kodlama için geçersiz" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: \"%s\" kodlamasından \"%s\" kodlamasına dönüşümde hata" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "girdi dosyasının başlığında bir karakter kümesi belirtilmemiş" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2590,7 +2582,7 @@ "\"%s\" \"%s\" e dönüştürülemiyor. %s iconv()ye bağlı,\n" "ve iconv() bu dönüşümü desteklemiyor." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2599,8 +2591,8 @@ " \"%s\" den \"%s\" e dönüşüm tekrarlar oluşturuyor: bazı msgid'ler aynı " "oluyor." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2609,16 +2601,16 @@ "\"%s\" \"%s\" e dönüştürülemiyor. %s iconv()ye bağlı.\n" "Bu sürüm iconv() olmaksızın kurgulanmış." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s sadece %s ile geçerlidir" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "yedekleme türü" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2641,17 +2633,17 @@ "Daha iyi sonuçlar elde edebilmek için zorunlu eşleşmeler bulunamadığında\n" "belirsiz eşleşmeler kullanılmıştır.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po eski kaynaklara bağlı çeviriler\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot yeni kaynaklara bağlar\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2660,7 +2652,7 @@ " -C, --compendium=DOSYA ileti çevirileri için ek veritabanı, birden\n" " fazla belirtilebilir\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2669,27 +2661,27 @@ " -U, --update def.po dosyasını günceller,\n" " def.po zaten güncelse bir şey yapmaz\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Güncelleme kipinde çıktı dosyasının yeri:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Sonuç gerisin geri def.po'ya yazılır.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=KONTROL def.po'nun yedeklemesini yapar\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SONEK yedekleme sonek kullanarak yapılır\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2708,7 +2700,7 @@ " yedekleme yapılır\n" " simple, never daima basit yedekleme yapılır\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2718,34 +2710,29 @@ "--suffix seçeneği ile ya da SIMPLE_BACKUP_SUFFIX ortam değişkeni ile\n" "belrtilmedikçe yedeklenen dosyanın soneki `~' dir.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching fuzzy eşleşmeler kullanılmaz\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr "" " --previous çevrilmiş iletinin eski msgid'sini tutar\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent işlemin ilerleyişi gösterilmez\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr ".bu ileti çoğul biçem olmalıydı" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "bu ileti çoğul biçem olmamalıydı" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2754,26 +2741,28 @@ "%s%ld eski + %ld referans, %ld katışık, %ld fuzzy, %ld eksik, %ld artık " "kullanılmayan ileti okundu.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " bitti.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s ile diğer dosya isimleri bağdaşmıyor" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Kullanımı: %s [SEÇENEK] [DOSYA]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "İkilik ileti kataloğunu Uniforum tarzı .po dosyasına dönüştürür.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2782,13 +2771,13 @@ " -j, --java Java kipi: girdi bir Java ÖzkaynakPaketi " "sınıfıdır\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp C# kipi: girdi bir .NET .dll dosyasıdır\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2797,24 +2786,24 @@ " --csharp-resources C# özkaynak kipi: girdi bir .NET .resources\n" " dosyasıdır\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl kipi: girdi bir tcl/msgcat .msg dosyasıdır\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " DOSYA ... girdi .mo dosyaları\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Java kipinde girdi dosyasının yeri:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2824,12 +2813,12 @@ "Sınıf ismi, özkaynak ismine yerel isminin bir altçizgi ile eklenmesiyle\n" "saptanır. Sınıf, CLASSPATH ortam değişkeni ile konumlanır.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "C# kipinde girdi dosyasının yeri:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2839,12 +2828,12 @@ "belirlenen\n" "dizinin bir altdizininde bulunur.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Tcl kipinde girdi dosyasının yeri:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2852,17 +2841,17 @@ msgstr "" "-l ve -d seçenekleri zorunludur. .msg dosyası belirtilen dizine yazılır.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent girintili çıktı tarzı kullanılır\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict bilinen biçemde yazılır\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2883,12 +2872,12 @@ "onlar ilk çeviriden alınır. Dosya konumları korunur. --unique seçeneği\n" "kullanıldığında tekrarlananlar iptal edilir.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated sadece yinelenenler yazılır\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2897,7 +2886,7 @@ " -u, --unique sadece tek iletiler gösterilir,\n" " tekrarlananlar iptal edilir\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2983,65 +2972,65 @@ msgid "plural form has wrong index" msgstr "çoğul biçemin indeksi hatalı" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "hatalar çok fazla, bunları düzeltince programı tekrar çalıştırın" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "çoklu bayt dizisi geçersiz" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "dosya sonunda çoklu bayt dizisi tamamlanmadı" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "satır sonunda çoklu bayt dizisi tamamlanmadı" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv başarısızlığı" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "anahtar-sözcük \"%s\" bilinmiyor" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "denetim dizisi geçersiz" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "dizge içinde dosya sonu" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "dizge içinde satır sonu" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "dizge içinde bağlam ayracı" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "bu dosya paket yönergelerini içermeyebilir" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "ileti iki defa tanımlanmış" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "bu ilk tanımlamanın konumu" @@ -3127,17 +3116,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "\"%s\" kodlamasından \"%s\" kodlamasına dönüşümde hata" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "iki argüman gerekiyor" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Kullanımı: %s [SEÇENEK] URL DOSYA\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3146,11 +3135,26 @@ "Bir URL'nin içeriğini alır ve çıktılar. URL erişilebilir değilse,\n" "yerel DOSYA dosya kullanılır.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "standart çıktıya yazılırken hata" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3192,43 +3196,43 @@ "ileti kataloğu çoğul çeviriler içermesine rağmen çıktı biçimi çoğul " "çevirileri desteklemiyor." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "\"%s\" çıktı dosyası oluşturulamıyor" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "standart çıktı" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "\"%s\" dizini oluşturulamadı" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "C# sınıfı derlenemedi, lütfen --verbose seçeneğini deneyin" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "C# sınıfı derlenemedi, lütfen --verbose seçeneğini deneyin" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "Geçerli bir Java sınıfı ismi değil: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "Java sınıfı derlenemedi, lütfen --verbose seçeneğini kullanın ya da\n" "$JAVAC ortam değişkenine uygun değeri atayın." -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3240,13 +3244,13 @@ msgid "error while opening \"%s\" for writing" msgstr "\"%s\" yazılmak için açılırken hata" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "i18n iletileri `\\%c' öncelem dizilerini içeremez" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3259,7 +3263,7 @@ "olabilir. Salt ASCII msgctxt kullanmanız önerilir.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3282,8 +3286,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3308,7 +3312,7 @@ msgid "error while writing to %s subprocess" msgstr "%s alt süreçine yazarken hata" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3316,7 +3320,7 @@ "ileti kataloğu bağlama bağımlı çeviriler içermesine rağmen\n" "C# .resources biçimi bağlamları desteklemiyor\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3340,36 +3344,34 @@ "ileti kataloğu çoğul çeviriler içermesine rağmen Tcl ileti kataloğu\n" "biçemi çoğul çevirileri desteklemiyor\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: uyarı: sonlandırılmamış dizge" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: uyarı: sonlandırılmamış düzenli ifade" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: uyarı: sonlandırılmamış karakter sabiti" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: uyarı: sonlandırılmamış dizge sabiti" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "%s%s içinde ASCII olmayan dizge.\n" "Lütfen, kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3378,7 +3380,7 @@ "%s:%d: Çokbaytlı dizilim geçersiz.\n" "Lütfen, doğru kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3387,7 +3389,7 @@ "%s:%d: Çokbaytlı dizilim eksik kalmış.\n" "Lütfen, doğru kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3396,7 +3398,7 @@ "%s:%d: Dosyanın sonunda çokbaytlı dizilim eksik kalmış.\n" "Lütfen, doğru kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3405,12 +3407,12 @@ "%s:%d: Satırın sonunda çokbaytlı dizilim eksik kalmış.\n" "Lütfen, doğru kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv başarısızlığı" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3419,32 +3421,32 @@ "%s:%d: Çokbaytlı dizilim geçersiz.\n" "Lütfen, kaynak kodlamasını --from-code seçeneği ile belirtiniz.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: uyarı: Unicode karakter geçersiz" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: uyarı: sonlandırılmamış dizge sabit" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: uyarı: '}' umulan yerde ')' var" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: uyarı: ')' umulan yerde '}' var" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3453,51 +3455,50 @@ "\"glade\" dili desteklenmiyor. %s expat'a bağlı.\n" "Bu sürüm expat olmaksızın kurgulanmış.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: uyarı: sonlandırılmamış dizge" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" "%s:%d: EOF'dan önce hiçbir yerde \"%s\" dizge sonlandırıcısı bulunamadı" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: \\x{HEXNUMBER} dizgesinde kapatan kuyruklu ayraç yok" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: 8 bitlik \"%c\" karakterinin (\"\\l\") aradeğerlemesi geçersiz" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: 8 bitlik \"%c\" karakterinin (\"\\u\") aradeğerlemesi geçersiz" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: \"%c\" içindeki değişken aradeğerlemesi geçersiz" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: 8 bitlik \"%c\" karakterinin (\"\\L\") aradeğerlemesi geçersiz" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: 8 bitlik \"%c\" karakterinin (\"\\U\") aradeğerlemesi geçersiz" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3506,7 +3507,7 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3518,7 +3519,7 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3530,7 +3531,7 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3542,7 +3543,7 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3554,7 +3555,7 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3566,27 +3567,27 @@ "http://www.python.org/peps/pep-0263.html adresinde belirtildiği gibi\n" "bir açıklama ile belirtiniz.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "\"%s\" kodlaması bilinmiyor. Onun yerine ASCII ile işlem yapılacak." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: dizge ataması geçersiz" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: # dan sonra sayı yok" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: dizge ifade geçersiz" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3595,27 +3596,27 @@ "%s:%lu: uyarı: güvenlikle ilgili sebeplerden dolayı $\"...\" sözdizimi artık " "kullanılmayacak; yerine eval_gettext kullanın" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "standart çıktıya yazılırken --join-existing kullanılamaz" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext anahtar sözcükler olmaksızın bulamaz" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "uyarı: `%s' dosyası `%s' uzantısı bilinmiyor; C denenecek" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Belirtilen girdi dosyalarından çevrilebilir dizgeleri çıkartır.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3623,23 +3624,23 @@ msgstr "" " -d, --default-domain=İSİM çıktıda messages.po yerine İSİM.po kullanılır\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=DOSYA çıktı belirtilen dosyaya yazılır\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir=DİZİN çıktı dosyaları DİZİNe yazılır\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Girdi dosyası dilinin seçimi:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3658,19 +3659,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++ ile aynı\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "Öntanımlı olarak dil, girdi dosyasının uzantısına bakarak saptanır.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3679,42 +3680,45 @@ " --from-code=İSİM girdi dosyası için yerel kodlaması\n" " (Python, Tcl, Glade dışında)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "" "Öntanımlı olarak, girdi dosyalarının yerel kodlaması ASCII kabul edilir.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing iletiler mevcut dosyaya bağlanır\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=DOSYA.po girdiler DOSYA.po dosyasından elde edilir\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ETİTET] ETİKETli yorum bloğunu çıktı dosyasına yazar\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Dile özel seçenekler:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all tüm dizgeler çıkarılır\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3727,17 +3731,17 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=SÖZCÜK] aranan ek anahtar sözcük (SÖZCÜK için " "öntanımlı\n" " anahtar sözcükler kullanılmamalıdır)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3747,7 +3751,7 @@ " --flag=SÖZCÜK:ARG:İM SÖZCÜK anahtar sözcüğünün ARG numaralı\n" " argümanının içindeki dizge için ek im\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3761,56 +3765,56 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs ANSI C üçlü harfleri kabul edilir\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr "" " (sadece bu diller: C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt Qt biçim dizgeleri tanınır\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (sadece C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt Qt biçim dizgeleri tanınır\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost Boost biçim dizgeleri tanınır\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug biçemdizgesi tanıma sonuçları ayrıntılı olur\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" " --properties-output çıktı bir Java .properties dosyasına yazılır\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=DİZGE çıktı için telif hakkı bilgisi\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3818,17 +3822,17 @@ " --foreign-user yabancı kullanıcılar için FSF telif hakkı\n" " çıktıda atlanır\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --copyright-holder=DİZGE çıktı için telif hakkı bilgisi\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3836,42 +3840,59 @@ " --msgid-bugs-address=EPOSTA@ADRESİ\n" " msgid hatalarının bildirileceği adres\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=DİZGE] msgstr girdilerinde önek olarak \"\" yerine\n" " DİZGE kullanılır\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=DİZGE] msgstr girdilerinde sonek olarak \"\" yerine\n" " DİZGE kullanılır\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Bir --flag argümanı ::[pass-] sözdiziminde olmaz: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "standart girdi" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: uyarı: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3880,16 +3901,16 @@ "Bir biçim dizgesi içinde kullanılabilirse de %s, %s biçim dizgesi içinde " "geçerli değil. Sebebi: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" "Böyle bildirilebilirse de %s, %s biçim dizgesi içinde geçerli değil. Sebebi: " "%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3902,7 +3923,7 @@ "Lütfen isimli argümarları destekleyen bir biçim dizgesi kullanmayı\n" "ve argümanlar için bir demet yerine bir eşleme yapmayı düşünün.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3912,27 +3933,27 @@ "gettext(\"\") ile başlık girdilerindeki bilgileri\n" "döndürür. Boş dizge değildir.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "anahtar sözcük '%.*s' için anlamı belirsiz argüman belirtimi" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "uyarı: anahtar sözcük '%.*s' için bağlam eksik" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "uyarı: '%.*s' anahtar sözcüğünün çoğul biçimi için bağlam eksik" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "tekil ve çoğul biçimler arasında bağlamsal çelişki" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3944,7 +3965,7 @@ "MSGID_BUGS_ADDRESS değişkenini belirtin; ya da\n" "bir --msgid-bugs-address seçeneği kullanın.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "dil `%s' bilinmiyor" @@ -3953,6 +3974,30 @@ msgid "" msgstr "" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: kuraldışı seçenek -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle 0x%08x hata kodu vererek başarısız oldu" + +#~ msgid "Not yet implemented." +#~ msgstr "Henüz çalışmıyor." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "%s alt sürecine bloklanmayan G/Ç belirtilemez" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "%s alt süreci ile haberleşilemedi" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "%s alt sürecinden okunamadı" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s alt süreci %d çıkış kodu ile sonlandırıldı" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "`%s' başlık alanı hala öntanımlı ilk değere sahip\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "%%%c için çoklu başvuru." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/uk.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/uk.gmo differ diff -Nru gettext-0.17/gettext-tools/po/uk.po gettext-0.18.1.1/gettext-tools/po/uk.po --- gettext-0.17/gettext-tools/po/uk.po 2007-11-02 02:24:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/uk.po 2010-06-06 12:49:58.000000000 +0000 @@ -7,15 +7,16 @@ msgstr "" "Project-Id-Version: gettext-tools 0.16\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2007-07-04 12:19+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" +"Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" -"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: gnulib-lib/argmatch.c:133 #, c-format @@ -32,23 +33,23 @@ msgid "Valid arguments are:" msgstr "Допустимі аргументи:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "не вдається знайти тимчасовий каталог, встановіть змінну $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "" "не вдається створити тимчасовий каталог при використанні шаблону \"%s\"" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "не вдається видалити тимчасовий файл \"%s\"" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "не вдається видалити тимчасовий каталог \"%s\"" @@ -57,44 +58,44 @@ msgid "write error" msgstr "помилка запису" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "помилка при відкриванні \"%s\" для читання" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "не вдається відкрити резервний файл \"%s\" для запису" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "помилка читання \"%s\"" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "помилка запису \"%s\"" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "помилка після читання \"%s\"" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "помилка у функції fdopen()" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Компілятор C# не знайдено, спробуйте встановити pnet" @@ -104,74 +105,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Не знайдено віртуальну машину pnet, спробуйте встановити pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Невідома системна помилка" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "аварійне завершення створеного процесу %s" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s: неоднозначний параметр `%s'\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: параметр `--%s' має використовуватись без аргументів\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: параметр `%c%s' має використовуватись без аргументів\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s: параметр `%s' має використовуватись з аргументом\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s: невідомий параметр `--%s'\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s: невідомий параметр `%c%s'\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: неправильний параметр -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s: неправильний параметр -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s: параметр %c має використовуватись з аргументом\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s: неоднозначний параметр `-W %s'\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s: параметр `-W %s' має використовуватись без аргументів\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: параметр `%s' має використовуватись з аргументом\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -183,20 +183,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "некоректний аргумент target_version для compile_java_class" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "не вдається створити \"%s\"" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "помилка запису файлу \"%s\"" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -209,20 +209,20 @@ "Не знайдено віртуальну машину Java, встановіть gij або встановіть змінну " "$JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "помилка вводу-виводу у дочірньому процесі %s" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "пам'ять вичерпано" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -241,71 +241,70 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "`" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "'" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "аварійне завершення DuplicateHandle з кодом помилки 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "аварійне завершення _open_osfhandle" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "не вдається створити файл виводу \"%s\"" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "дочірній процес %s" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "дочірній процес %s отримав фатальний сигнал %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" "'%s' не є правильним рядком формату %s, на відміну від 'msgid'. Причина: %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "в 'msgid' відсутня специфікація формату для аргументу %u, як у '%s'" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "відсутня специфікація формату для аргументу %u у '%s'" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "в 'msgid' та '%s' не збігаються специфікації формату для %u" #: src/format-boost.c:449 @@ -338,9 +337,9 @@ "Рядок посилається на аргумент з номером %u, але ігнорується аргумент з " "номером %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "не відповідає кількість специфікацій формату у 'msgid' та '%s'" #: src/format-csharp.c:88 src/format-java.c:205 @@ -385,18 +384,18 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Рядок містить одну дужку '}' після директиви %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "У директиві з номером %u, некоректна комбінація ключів." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "" "У директиві з номером %u, не допускається визначник точності перед '%c'." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " @@ -405,7 +404,7 @@ "В директиві з номером %u, номер аргументу для визначника точності має " "дорівнювати %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -413,24 +412,24 @@ msgstr "" "У директиві з номером %u, не допускається визначник точності перед '%c'." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "У директиві з номером %u, некоректний визначник точності." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "У директиві з номером %u, ключі не дозволяються перед '%c'." -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "'msgid' використовує %%m, а '%s' не використовує" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "'msgid' не використовує %%m а '%s' використовує %%m" #: src/format-invalid.h:22 @@ -513,8 +512,8 @@ "In the directive number %u, the argument number is not followed by a comma " "and one of \"%s\", \"%s\", \"%s\", \"%s\"." msgstr "" -"У директиві з номером %u, номер аргументу не завершується комою та одним з\"%" -"s\", \"%s\", \"%s\", \"%s\"." +"У директиві з номером %u, номер аргументу не завершується комою та одним з" +"\"%s\", \"%s\", \"%s\", \"%s\"." #: src/format-java.c:572 #, c-format @@ -531,21 +530,20 @@ "чи '%s'." #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "специфікація формату аргументу {%u}, тобто '%s', не існує у 'msgid'" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "специфікація формату аргументу {%u} не існує у '%s'" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" "специфікації формату у 'msgid' та '%s' для аргументу {%u} не збігаються" @@ -562,11 +560,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "У директиві з номером %u, вказано надто багато параметрів; очікувалось не " "більше ніж %u параметр." @@ -623,13 +621,13 @@ msgstr "Рядок посилається на деякий аргумент несумісним способом." #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "специфікації формату у 'msgid' та '%s' не еквівалентні" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "специфікації формату у '%s' не є підмножиною специфікацій з 'msgid'" #: src/format-perl.c:433 @@ -641,61 +639,58 @@ "У директиві з номером %u, специфікація розміру несумісна з специфікацією " "перетворення '%c'." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "специфікація формату для аргументу '%s' не існує у '%s'" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" "Рядок посилається як на аргументи з назвами, так і на аргументи без назв." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "Рядок посилається на аргумент з назвою '%s' несумісним способом." -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "специфікації формату у 'msgid' очікують відображення, а специфікації у '%s' " "вимагають кортеж" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "специфікації формату у 'msgid' очікують кортеж, а специфікації у '%s' " "очікують відображення" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "у 'msgid' відсутні специфікації формату для аргументу '%s', як і у '%s'" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" "у 'msgid' та '%s' не збігаються специфікації формату для аргументу '%s'" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -736,11 +731,11 @@ "1 and 9." msgstr "Символ, що завершує директиву з номером %u, не є цифрою від 1 до 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -749,38 +744,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Автор програми %s.\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "надто багато аргументів" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Спробуйте `%s --help', щоб переглянути докладнішу інформацію.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Використання: %s [ПАРАМЕТР]\n" @@ -816,29 +811,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address адреси системи\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Інформативний вивід:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help вивести цю довідку та вийти\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version вивести інформацію про версію та вийти\n" @@ -847,11 +842,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Про помилки повідомляйте на .\n" @@ -860,30 +855,30 @@ msgid "could not get host name" msgstr "не вдається отримати назву системи" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "допускається максимум один вхідний файл" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s та %s є взаємовиключними" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Використання: %s [ПАРАМЕТР] [ВХІДНИЙ_ФАЙЛ]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -892,33 +887,33 @@ "Фільтрує повідомлення каталогу перекладів у відповідності до їх атрибутів,\n" "та маніпулює цими атрибутами.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "Аргументи, обов'язкові для довгих ключів, є обов'язковими й для коротких.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Розташування вхідного файлу:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " ВХІДНИЙ_ФАЙЛ вхідний PO файл\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" @@ -926,32 +921,32 @@ " -D, --directory=КАТАЛОГ додати КАТАЛОГ до списку вхідних файлів " "пошуку\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" "Якщо вхідний файл не вказаний, або якщо вказано -, використовується " "стандартний ввід.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Розташування файлу виводу:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=ФАЙЛ записати вивід у вказаний файл\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" @@ -961,75 +956,75 @@ "записується\n" " у стандартний вивід.\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "Вибір повідомлень:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" " --translated зберегти перекладені, видалити неперекладені\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" " --untranslated зберегти неперекладені, видалити перекладені\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr "" " --no-fuzzy видалити повідомлення, позначені як 'fuzzy'\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" " --only-fuzzy зберегти повідомлення, позначені як 'fuzzy'\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete видалити застарілі #~ повідомлення\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete зберегти застарілі #~ повідомлення\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Керування атрибутами:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy позначити всі повідомлення як 'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" " --clear-fuzzy позначити всі повідомлення як не 'fuzzy'\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete позначити всі повідомлення застарілими\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr "" " --clear-obsolete позначити всі повідомлення не застарілими\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " @@ -1038,14 +1033,14 @@ " --clear-previous видалити \"previous msgid\" з усіх " "повідомлень\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" " --only-file=ФАЙЛ.po обробляти лише елементи перелічені у ФАЙЛ.po\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" @@ -1053,36 +1048,36 @@ " --ignore-file=ФАЙЛ.po обробляти лише елементи не перелічені у ФАЙЛ." "po\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy синонім для --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" " --obsolete синонім для --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Синтаксис вхідного файлу:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input вхідний файл має синтаксис Java .properties\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1091,17 +1086,35 @@ " --stringtable-input вхідний файл має синтаксис NeXTstep/GNUstep ." "strings\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "Подробиці виводу:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1110,9 +1123,9 @@ "екранування\n" " мови C (типово)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1120,29 +1133,29 @@ " -E, --escape використовувати у виводі символи екранування\n" " мови C, без розширених символів\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po записувати PO файл, навіть порожній\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" " -i, --indent записати .po файл вживаючи стиль з відступами\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" " --no-location не записувати рядки '#: назва_файлу:рядок'\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" @@ -1150,8 +1163,8 @@ " -n, --add-location створювати рядки '#: назва_файлу:" "рядок' (типово)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" @@ -1159,32 +1172,32 @@ " --strict записувати .po файл точно відповідний " "Uniforum\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output записати файл Java .properties\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output записати файл NeXTstep/GNUstep .strings\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMBER встановити ширину сторінки виводу\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1193,32 +1206,32 @@ " --no-wrap не розривати на декілька рядків довгі рядки\n" " повідомлень, що довші за ширину сторінки\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output сортувати вивід\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr "" " -F, --sort-by-file сортувати вивід за розташуванням файлів\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "вказано неможливий критерій відбору (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "Використання: %s [ПАРАМЕТР] [ВХІДНИЙ_ФАЙЛ]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1241,23 +1254,23 @@ "беруться з першого PO файлу, у якому вони були визначені. Коментарі з назвою\n" "файлу та номером рядка зберігаються для усіх PO файлів.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " ВХІДНИЙ_ФАЙЛ ... вхідні файли\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=ФАЙЛ отримати перелік вхідних файлів з ФАЙЛ\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "Якщо назвою вхідного файлу є -, використовується стандартний ввід.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1268,7 +1281,7 @@ " кількість разів, якщо значення не вказано,\n" " типове значення - нескінченість\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1279,7 +1292,7 @@ " кількість разів, якщо не вказано, типове\n" " значення дорівнює 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1288,16 +1301,16 @@ " -u, --unique скорочення для --less-than=2, вказує\n" " виводити лише унікальні повідомлення\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input вхідні файли мають синтаксис Java .properties\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1306,12 +1319,12 @@ " --stringtable-input вхідні файли мають синтаксис NeXTstep/GNUstep\n" " .strings\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=НАЗВА кодування виводу\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1321,41 +1334,33 @@ " кожного повідомлення, не об'єднувати декілька\n" " перекладів\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "не вказані вхідні файли" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "потрібно рівно 2 вхідні файли" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Використання: %s [ПАРАМЕТР] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1372,22 +1377,22 @@ "у програмі. Якщо точну відповідність знайти не вдається, для покращення\n" "діагностики використовується приблизне порівняння.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po переклад\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot посилання на джерело\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Модифікатори режиму роботи:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1396,47 +1401,53 @@ " -m, --multi-domain застосувати ref.pot до кожного домену з def." "po\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr "" +" -N, --no-fuzzy-matching не використовувати неточну відповідність\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " --use-fuzzy використовувати неточні записи\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --use-untranslated використовувати неперекладені записи\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" msgstr "це повідомлення не перекладене" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "це повідомлення повинен перевірити перекладач" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "це повідомлення використовується програмою, але не було визначено..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...проте це визначення є подібним" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "це повідомлення використовується, але не було визначене у %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "попередження: це повідомлення не використовується" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" @@ -1444,12 +1455,12 @@ msgstr[1] "знайдено %d критичні помилки" msgstr[2] "знайдено %d критичних помилок" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "необхідно вказати принаймні два файли" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1470,7 +1481,7 @@ "беруться з першого PO файлу, у якому вони були визначені. Коментарі з назвою\n" "файлу та номером рядка зберігаються для усіх PO файлів.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1480,7 +1491,7 @@ " кількістю визначень, якщо число не вказано,\n" " типове значення дорівнює 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" @@ -1488,62 +1499,62 @@ " --omit-header не записувати заголовок у `msgid \"\"' " "елементі\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "Перетворює каталог перекладів у інше кодування.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Результат перетворення:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Типовим кодуванням є кодування поточної локалі.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent стиль виводу з відступами\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location не виводити '#: filename:line' рядки\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" " --add-location зберігати '#: filename:line' рядки (типово)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict стиль виводу Uniforum\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "не вказано вхідний файл" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "потрібен лише один вхідний файл" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "Використання: %s [ПАРАМЕТР] ВХІДНИЙ_ФАЙЛ\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1555,22 +1566,22 @@ "PO файл, або POT файл (зазвичай створений xgettext). Не перекладеним елементам\n" "призначається переклад, ідентичний до вмісту msgid.\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " ВХІДНИЙ_ФАЙЛ вхідний PO або POT файл\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "не вказана назва команди" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "Використання: %s [ПАРАМЕТР] КОМАНДА [ПАРАМЕТРИ-КОМАНДИ]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1585,7 +1596,7 @@ "виводом msgexec. Програма msgexec повертає максимальний з кодів завершення усіх\n" "викликів команди.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1594,42 +1605,42 @@ "Спеціальна вбудована команда з назвою '0' виводить переклад, який завершується\n" "нульовим байтом. Вивід команди \"msgexec 0\" підходить як ввід команди \"xargs -0\".\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=ВХІДНИЙ_ФАЙЛ вхідний PO файл\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "не вдається записати в стандартний вивід" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "не вдається записати у дочірній процес %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "не вказана назва фільтру" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "необхідно вказати принаймні один сценарій для sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "Використання: %s [ПАРАМЕТР] ФІЛЬТР [ПАРАМЕТРИ-ФІЛЬТРУ]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "Застосовує фільтр до всіх перекладів у каталозі.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1639,18 +1650,18 @@ "вводу\n" "та записує змінений переклад у стандартний вивід.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Корисні ПАРАМЕТРИ-ФІЛЬТРУ якщо ФІЛЬТР є 'sed':\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=СЦЕНАРІЙ додати СЦЕНАРІЙ до виконуваних команд\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1660,13 +1671,13 @@ " -f, --file=ФАЙЛ_СЦЕНАРІЮ додати вміст ФАЙЛУ_СЦЕНАРІЮ до виконуваних " "команд\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr " -n, --quiet, --silent не виводити автоматично шаблони\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1674,12 +1685,12 @@ " --no-escape вимкнути у виводі екранування у стилі C " "(типово)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent стиль виводу з відступами\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" @@ -1687,69 +1698,50 @@ " --keep-header залишити заголовок незмінним, не фільтрувати " "його\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Ще не реалізовано." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "" -"не вдається встановити неблокуючий режим вводу/виводу дочірнього процесу %s" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "помилка зв'язку з дочірнім процесом %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "помилка читання з дочірнього процесу %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "дочірній процес %s завершився з кодом %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "аргумент %s повинен бути поодиноким знаком пунктуації" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "неправильно вказано порядок байтів: %s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s вимагає вказати параметр \"-d каталог\"" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s вимагає вказати параметр \"-l локаль\"" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s допускається лише з %s або %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s допускається лише з %s, %s або %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" @@ -1757,7 +1749,7 @@ msgstr[1] "%d перекладених повідомлення" msgstr[2] "%d перекладених повідомлень" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" @@ -1765,7 +1757,7 @@ msgstr[1] ", %d неточних переклади" msgstr[2] ", %d неточних перекладів" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" @@ -1773,17 +1765,17 @@ msgstr[1] ", %d неперекладених повідомлення" msgstr[2] ", %d неперекладених повідомлень" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "Використання: %s [ПАРАМЕТР] назва_файлу.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "Створює двійковий каталог повідомлень з текстового опису.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1792,17 +1784,17 @@ "Аргументи, обов'язкові для довгих ключів, є обов'язковими й для коротких.\n" "Те ж саме й для необов'язкових аргументів.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " назва_файлу.po ... вхідні файли\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Режим роботи:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1810,7 +1802,7 @@ msgstr "" " -j, --java режим Java: створює Java ResourceBundle клас\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1819,12 +1811,12 @@ " --java2 як і --java, вважається Java2 (JDK 1.2 чи " "вище)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp режим C#: створює файли .NET .dll\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1833,56 +1825,56 @@ " --csharp-resources режим C# ресурсів: створює файл .NET ." "resources\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl режим Tcl: створює файл tcl/msgcat .msg\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt режим Qt: створює файл Qt .qm\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict перейти у режим відповідності до Uniforum\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "" "Якщо як файл виводу вказано -, вивід відбуватиметься у стандартний вивід.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Розташування вхідного файлу у режимі Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=РЕСУРС назва ресурсу\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " "language_COUNTRY\n" msgstr " -l, --locale=ЛОКАЛЬ назва локалі, або мова або мова_КРАЇНА\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr "" " -d КАТАЛОГ базовий каталог ієрархії каталогів класів\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1894,12 +1886,12 @@ "після знаку підкреслення. Параметр -d є обов'язковим. Клас записується\n" "у вказаний каталог.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Розташування вхідного файлу у режимі C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1908,7 +1900,7 @@ " -d КАТАЛОГ базовий каталог залежних від локалі .dll " "файлів\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1917,18 +1909,18 @@ "Параметри -l та -d є обов'язковими. Файл .dll записується у підкаталог\n" "вказаного каталогу, назва якого залежить від локалі.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Розташування вхідного файлу у режимі Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d КАТАЛОГ базовий каталог каталогів .msg повідомлень\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1937,12 +1929,12 @@ "Параметри -l та -d є обов'язковими. Файл .msg записується у вказаний " "каталог.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Інтерпретація вхідного файлу:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1953,13 +1945,13 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format перевірити залежний від мови формат рядків\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " @@ -1968,7 +1960,7 @@ " --check-header перевірити наявність та вміст елементу " "заголовка\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1978,7 +1970,7 @@ "та\n" " параметром --output-file\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1987,7 +1979,7 @@ " -C, --check-compatibility перевірити, що GNU msgfmt поводиться як X/Open " "msgfmt\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1998,12 +1990,12 @@ "у\n" " пунктах меню\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy виводити елементи неточного перекладу\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" @@ -2011,87 +2003,87 @@ " -a, --alignment=ЧИСЛО форматувати рядки по ЧИСЛО байт у рядку " "(типово: %d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash двійковий файл не буде включати хеш-таблицю\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics вивести статистику про переклад\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose збільшити рівень докладності виводу\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "попередження: заголовок PO файлу відсутній або некоректний\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "попередження: перетворення кодувань символів не працюватиме\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "попередження: заголовок PO файлу позначений як нечіткий переклад\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "попередження: старі версії msgfmt сприйматимуть це як помилку\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "назва домену \"%s\" не може використовуватись як назва файлу" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "" "назва домену \"%s\" не може використовуватись як назва файлу: буде " "використано префікс" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "директиву `domain %s' проігноровано" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "порожній елемент `msgstr' проігноровано" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "елемент з нечітким перекладом `msgstr' проігноровано" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: попередження: вихідний файл містить нечіткий переклад" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "помилка при читанні \"%s\"" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " @@ -2100,7 +2092,7 @@ "параметр '%c' не може використовуватись перед символами 'J', 'K', 'T', 'C' " "чи 'X'" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2109,7 +2101,7 @@ "Отримати усі повідомлення з каталогу перекладу, які відповідають вказаному\n" "шаблону або належать до певних вказаних вхідних файлів.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2184,7 +2176,7 @@ " -v, --invert-match виводити лише повідомлення, які не відповідають\n" " жодному критерію відбору\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2192,17 +2184,17 @@ " --escape використовувати у виводі екранування у стилі " "C, без розширених символів\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output сортувати інформацію, що виводиться\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file сортувати за розташуванням у файлах\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2212,7 +2204,7 @@ "змінну оточення LANG, як описано у файлі ABOUT-NLS. Це необхідно,\n" "щоб ви мали змогу перевірити ваш переклад.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2223,24 +2215,24 @@ "Вкажіть локаль у параметрі --locale, або вкажіть .po файл\n" "виводу у параметрі --output-file.\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "Створено %s.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "Створює новий PO файл, мета-інформація ініціалізується з оточення користувача.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=ВХІДНИЙ_ФАЙЛ вхідний POT файл\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2250,12 +2242,12 @@ "Якщо не вказано вхідний файл, POT файл шукається у поточному каталозі.\n" "Якщо вказано -, файл читається зі стандартного вводу.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=ФАЙЛ записати вивід у вказаний файл PO\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2265,19 +2257,19 @@ "локалі\n" "користувача. Якщо вказано знак -, результат виводиться у стандартний вивід.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC встановити цільову локаль\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" " --no-translator вважати, що PO файл створений автоматично\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2285,12 +2277,12 @@ "Знайдено більш ніж один .pot файл.\n" "Вкажіть вхідний .pot файл у параметрі --input.\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "помилка при читанні поточного каталогу" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2298,14 +2290,14 @@ "Не знайдено .pot файл у поточному каталозі.\n" "Вкажіть вхідний .pot файл у параметрі --input.\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "процес-нащадок %s завершився аварійно з кодом %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2322,28 +2314,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Переклад українською для пакету %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "вказане кодування \"%s\" не є переносною назвою кодування" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "у вхідному файлі два різні кодування \"%s\" та \"%s\"" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "вхідний файл `%s' не містить елемент заголовка, який вказує кодування" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2352,19 +2344,19 @@ "домен \"%s\" у вхідному файлі `%s' не містить елемент заголовку, який вказує " "кодування" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "цільове кодування \"%s\" не є переносною назвою кодування." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "попередження: " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2373,7 +2365,7 @@ "Вхідні файли містять повідомлення у інших кодуваннях, UTF-8 поміж інших.\n" "Вивід перетворюється у UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2385,7 +2377,7 @@ "Вивід перетворюється у UTF-8.\n" "Щоб вибрати інше кодування виводу, використовуйте параметр --to-code.\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2399,7 +2391,7 @@ "що\n" "вони вже у кодуванні UTF-8, тобто у файлах з текстом програми.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2412,12 +2404,12 @@ "Вивід '%s' може бути некоректним.\n" "Можливі обхідні шляхи:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- Встановити LC_ALL у значення локалі з кодуванням %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2428,7 +2420,7 @@ " потім застосувати '%s',\n" " потім перетворити назад на %s використовуючи 'msgconv'.\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2441,7 +2433,7 @@ " потім застосувати '%s',\n" " потім перетворити назад у %s використовуючи 'msgconv'.\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2452,27 +2444,27 @@ "Вивід '%s' може бути некоректним.\n" "Можливим обхідним шляхом є встановлення LC_ALL=C.\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "розширення множинних форм можуть давати від'ємні значення" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "" "nplurals = %lu, але розширення множинних форм можуть давати значення такі ж " "великі як і %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "розширення множинних форм можуть призводити до ділення на нуль" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "" "розширення множинних форм можуть призводити до переповнення цілого значення" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2480,37 +2472,37 @@ "розширення множинних форм можуть призводити до арифметичних виключних " "ситуацій, можливе ділення на нуль" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Спробуйте використати наступне, що є правильним для %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "каталог повідомлень має переклади з множинними формами" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "але заголовок не містить атрибут \"plural=ВИРАЗ\"" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "але заголовок не містить атрибут \"nplurals=ЦІЛЕ_ЧИСЛО\"" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "неправильне значення nplurals" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "неправильне значення plural" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" @@ -2518,7 +2510,7 @@ msgstr[1] "але деякі повідомлення мають лише %lu множинні форми" msgstr[2] "але деякі повідомлення мають лише %lu множинних форм" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" @@ -2526,7 +2518,7 @@ msgstr[1] "але деякі повідомлення мають %lu множинні форми" msgstr[2] "але деякі повідомлення мають %lu множинних форм" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2534,83 +2526,83 @@ "каталог повідомлень має переклад з множинними формами, але заголовок не " "містить \"Plural-Forms: nplurals=ЦІЛЕ; plural=ВИРАЗ;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "обидва елементи `msgid' та `msgid_plural' не починаються одночасно з '\\n'" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "" "обидва елементи `msgid' та `msgstr[%u]' не починаються одночасно з '\\n'" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "елементи `msgid' та `msgstr' не починаються одночасно з '\\n'" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "елементи `msgid' та `msgid_plural' не закінчуються одночасно на '\\n'" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "елементи `msgid' та `msgstr[%u]' не закінчуються одночасно на '\\n'" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "елементи `msgid' та `msgstr' не закінчуються одночасно на '\\n'" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "обробка множинних форм є розширенням GNU gettext" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "у msgstr відсутній символ клавішного акселератора '%c'" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr містить надто багато символів клавішних акселераторів '%c'" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "у заголовку відсутнє поле `%s'\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "поле заголовку `%s' повинно починатись с початку рядка\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "деякі поля заголовків досі мають початкові типові значення\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "поле `%s' досі має початкове типове значення\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "деякі поля заголовків досі мають початкові типові значення\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s: вхідний потік не є коректним для кодування \"%s\"" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: помилка при перетворенні кодування з \"%s\" на \"%s\"" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "вхідний файл не містить заголовок, що вказує кодування" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2619,7 +2611,7 @@ "Не вдається перетворити з \"%s\" на \"%s\". %s використовує iconv(), а iconv" "() не підтримує це перетворення." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2628,8 +2620,8 @@ "Перетворення з \"%s\" у \"%s\" призводить до появи дублікатів: деякі msgid " "ключі стануть однаковими." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2638,16 +2630,16 @@ "Не вдається перетворити з \"%s\" у \"%s\". %s використовує iconv(). Ця " "версія скомпільована без iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s є допустимим лише разом з %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "тип резервної копії" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2670,17 +2662,17 @@ "у файл будуть збережені. Якщо неможливо знайти точну відповідність,\n" "для отримання кращого результату використовується неточна відповідність.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po переклади з посиланнями на старий код\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot посилання на новий код\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2689,7 +2681,7 @@ " -C, --compendium=ФАЙЛ додаткова бібліотека перекладів повідомлень,\n" " може бути вказано більш ніж один раз\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2698,29 +2690,29 @@ " -U, --update оновити def.po,\n" " нічого не робить, якщо def.po вже оновлений\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Розташування файлу виводу у режимі оновлення:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Результат записується назад у def.po.\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=КОНТРОЛЬ зробити резервну копію def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix=СУФІКС перевизначити звичайний суфікс резервної " "копії\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2739,7 +2731,7 @@ "прості\n" " simple, never завжди використовувати прості резервні копії\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2750,13 +2742,7 @@ "suffix\n" "або змінною значення SIMPLE_BACKUP_SUFFIX.\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching не використовувати неточну відповідність\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2764,22 +2750,22 @@ " --previous зберегти попередні msgid перекладених " "повідомлень\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent не виводити індикатор поступу\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "це повідомлення повинно визначати множинні форми" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "це повідомлення не повинно визначати множинні форми" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2788,26 +2774,28 @@ "%sПрочитано %ld старих + %ld посилань, об'єднано %ld, неточних %ld, " "відсутніх %ld, застарілих %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " виконано.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s та явне вказування назв файлів виключають одне одного" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Використання: %s [ПАРАМЕТР] [ФАЙЛ]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "Перетворює двійковий каталог повідомлень у .po файл Uniforum стилю.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2815,13 +2803,13 @@ msgstr "" " -j, --java Java режим: вхід є класом Java ResourceBundle\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp C# режим: вхідний файл у форматі .NET .dll\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2830,7 +2818,7 @@ " --csharp-resources режим C# ресурсів: вхідний файл у форматі ." "NET .resources\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" @@ -2838,17 +2826,17 @@ " --tcl Tcl режим: вхідний файл у форматі tcl/msgcat ." "msg\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " ФАЙЛ ... вхідні файли .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Розташування вхідних файлів у Java режимі:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2859,12 +2847,12 @@ "відокремлюється символом підкреслення. Клас шукається з використанням " "CLASSPATH.\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Розташування вхідного файлу у C# режимі:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2873,12 +2861,12 @@ "Параметри -l та -d є обов'язковими. Файл .dll шукається у підкаталозі\n" "вказаного каталогу, назва якого залежить від локалі.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Розташування вхідного файлу у Tcl режимі:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2887,19 +2875,19 @@ "Параметри -l та -d є обов'язковими. Файл .msg шукається у вказаному\n" "каталозі.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr "" " -i, --indent використовувати стиль виводу з відступами\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict виводити у точній відповідності до uniforum\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2920,12 +2908,12 @@ "параметр --use-first, вони беруться від першого перекладу. Позиції у файлах\n" "будуть зібрані до купи. При використанні --unique, дублікати відкидаються.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated виводити лише дублікати\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2934,7 +2922,7 @@ " -u, --unique виводити лише унікальні повідомлення, без " "дублікатів\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3021,65 +3009,65 @@ msgid "plural form has wrong index" msgstr "множинна форма має неправильний індекс" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "надто багато помилок, виконання перервано" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "неправильна мультибайтна послідовність" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "незавершена мультибайтна послідовність наприкінці файлу" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "незавершена мультибайтна послідовність наприкінці рядка" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "помилка при iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "невідоме ключове слово \"%s\"" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "неправильна керуюча послідовність" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "кінець файлу посеред рядка" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "кінець рядка посеред рядка" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "розділювач контексту посеред рядка" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "цей файл не може містити доменних директив" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "дублікат визначення повідомлення" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "це місце першого визначення" @@ -3164,17 +3152,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "помилка при перетворення з кодування \"%s\" на \"%s\"" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "очікувалось два аргументи" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "Використання : %s [ПАРАМЕТР] URL ФАЙЛ\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3183,11 +3171,26 @@ "Витягує та виводить вміст URL. Якщо URL недоступний,\n" "натомість використовується локально доступний ФАЙЛ.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "помилка при записі у стандартний вивід" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 msgid "" "Cannot output multiple translation domains into a single file with the " @@ -3230,42 +3233,42 @@ "каталог повідомлень має переклад з множинними формами, але формат виводу їх " "не підтримує." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "не вдається створити файл виводу \"%s\"" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "стандартний вивід" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "не вдається створити каталог \"%s\"" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "помилка при компіляції класу C#, спробуйте --verbose" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "помилка при компіляції класу C#, спробуйте --verbose" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "не є правильною назвою класу Java: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "помилка при компіляції класу Java, спробуйте --verbose або встановіть $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3276,7 +3279,7 @@ msgid "error while opening \"%s\" for writing" msgstr "помилка при відкриванні \"%s\" для запису" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" @@ -3284,7 +3287,7 @@ "інтернаціоналізовані повідомлення не повинні містити `\\%c' escape-" "послідовність" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3297,7 +3300,7 @@ "вашого кодування символів. Використовуйте лише ASCII символи у msgctxt.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3320,13 +3323,13 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" -"каталог повідомлень має msgctxt рядки з символи за межами кодування ISO-8859-" -"1\n" +"каталог повідомлень має msgctxt рядки з символи за межами кодування " +"ISO-8859-1\n" "але формат каталогу повідомлень Qt підтримує Юнікод лише у полях " "перекладених\n" "рядків, а не у рядках контексту\n" @@ -3337,8 +3340,8 @@ "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the untranslated strings\n" msgstr "" -"каталог повідомлень має msgid рядки з символи за межами кодування ISO-8859-" -"1\n" +"каталог повідомлень має msgid рядки з символи за межами кодування " +"ISO-8859-1\n" "але формат каталогу повідомлень Qt підтримує Юнікод лише у перекладених " "рядках\n" @@ -3347,7 +3350,7 @@ msgid "error while writing to %s subprocess" msgstr "помилка при записі у \"%s\" дочірній процес" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3355,7 +3358,7 @@ "каталог повідомлень містить залежний від контексту переклад\n" "але формат каталогу ресурсів C# не підтримує контексти\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3379,36 +3382,34 @@ "каталог повідомлень містить переклад з множинними формами\n" "але формат каталогу повідомлень Tcl не підтримує множинні форми\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: попередження: незавершений рядок" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: попередження: незавершений регулярний вираз" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: попередження: незавершена символьна константа" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: попередження: незавершений символьний літерал" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "Не-ASCII рядок у %s%s.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3417,7 +3418,7 @@ "%s:%d: Неправильна мультибайтова послідовність.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3426,7 +3427,7 @@ "%s:%d: Довга незавершена мультибайтова послідовність.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3435,7 +3436,7 @@ "%s:%d: Незавершена мультибайтова послідовність наприкінці файлу.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3444,12 +3445,12 @@ "%s:%d: Незавершена мультибайтова послідовність наприкінці рядка.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: помилка iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3458,32 +3459,32 @@ "%s:%d: Неправильна мультибайтова послідовність.\n" "Вкажіть вхідне кодування у параметрі --from-code.\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: попередження: неправильний символ Юнікоду" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: попередження: незавершена символьна константа" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: попередження: знайдено ')' там де очікувалась '}'" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: попередження: знайдено '}' там де очікувалась ')'" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3492,50 +3493,49 @@ "Мова \"glade\" не підтримується. %s залежить від expat.\n" "Ця версія скомпільована без підтримки expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: попередження: незавершений рядок" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: не вдається знайти символ завершення рядка \"%s\" до EOF" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: відсутня права фігурна дужка у \\x{ШІСТН.ЧИСЛО}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: неправильна інтерполяція (\"\\l\") 8-бітного символу \"%c\"" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: неправильна інтерполяція (\"\\u\") 8-бітного символу \"%c\"" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: неправильна інтерполяція змінної у \"%c\"" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: неправильна інтерполяція (\"\\L\") 8-бітного символу \"%c\"" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: неправильна інтерполяція (\"\\U\") 8-бітного символу \"%c\"" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3543,7 +3543,7 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3554,7 +3554,7 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3565,7 +3565,7 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3576,7 +3576,7 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3587,7 +3587,7 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3598,27 +3598,27 @@ "Вкажіть вхідне кодування у параметрі --from-code або у коментарі,\n" "згідно http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "Невідоме кодування \"%s\". Вважається кодування ASCII." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: неправильне визначення рядка" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: після знаку # відсутнє число" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: неправильний символьний вираз" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3627,30 +3627,30 @@ "%s:%lu: попередження: синтаксис $\"...\" є забороненим з міркувань безпеки; " "натомість використовуйте eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "--join-existing не може використовуватись, якщо вивід направляється у " "стандартний вивід" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "xgettext не може працювати без вказаних ключових слів для пошуку" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "" "попередження: у файлі `%s' невідоме розширення `%s'; спроба використати C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Витягує рядки для перекладу з вказаних вхідних файлів.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3659,12 +3659,12 @@ " -d, --default-domain=НАЗВА виводити у файл НАЗВА.po (замість messages." "po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=ФАЙЛ записувати вивід у вказаний файл\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" @@ -3672,12 +3672,12 @@ " -p, --output-dir=КАТАЛОГ файли виводу будуть створені у каталозі " "КАТАЛОГ\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Вибір мови вхідного файлу:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3696,19 +3696,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ скорочення для --language=C++\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "Типово, мова визначається за розширенням назви вхідного файлу.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3717,44 +3717,47 @@ " --from-code=НАЗВА кодування для вхідних файлів\n" " (за винятком Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Типово, вважається, що вхідні файли у кодуванні ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing об'єднати повідомлення з існуючим файлом\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" " -x, --exclude-file=ФАЙЛ.po елементи з ФАЙЛ.po не будуть витягуватись\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=ТЕГ] вставляє блок коментарів з ТЕГ (або тих, що\n" " передують рядкам ключового слова) у файл " "виводу\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Параметри особливі для мови:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all витягнути усі рядки\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3767,18 +3770,18 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=СЛОВО] додаткове ключове слово, яке буде " "відшукуватись\n" " (вживання СЛОВО не означає невикористання\n" " типових ключових слів)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3788,7 +3791,7 @@ " --flag=СЛОВО:АРГ:ОЗНАКА додаткова ознака для рядків посеред номера\n" " аргументу АРГ ключового слова СЛОВО\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3801,55 +3804,55 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs розпізнавати ANSI C trigraph-и на вході\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (лише мови C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt розпізнавати рядки у Qt форматі\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (лише мова C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt розпізнавати рядки у Qt форматі\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost розпізнавати рядки у форматі Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr "" " --debug докладніший результат пошуку рядків формату\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output виводити у файл Java .properties\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=РЯДОК встановити власника авторських прав\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3857,17 +3860,17 @@ " --foreign-user пропускати у виводі FSF copyright для " "сторонніх користувачів\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --copyright-holder=РЯДОК встановити власника авторських прав\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" @@ -3875,43 +3878,60 @@ " --msgid-bugs-address=EMAIL@АДРЕСА адреса звітування про помилки у " "msgid\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=РЯДОК] вживати РЯДОК або \"\" як префікс елементів " "msgstr\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=РЯДОК] вживати РЯДОК або \"\" як суфікс елементів " "msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Аргумент --flag не підтримує синтаксис <ключове_слово>::[pass-]" ": %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "стандартний ввід" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: попередження: " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3920,16 +3940,16 @@ "Хоча й використовується у позиції рядку формату, %s не є правильним %s " "рядком формату. Причина: %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"Хоча й заявлений як такий, %s не є правильним %s рядком формату. Причина: %" -"s\n" +"Хоча й заявлений як такий, %s не є правильним %s рядком формату. Причина: " +"%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3942,7 +3962,7 @@ "Замість кортежу аргументів, використовуйте рядок формату з аргументами,\n" "що мають назву та їх підстановку.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3952,29 +3972,29 @@ "gettext(\"\") повертає елемент заголовку\n" "метаінформації, а не порожній рядок.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "неоднозначно вказане ключове слово '%.*s'" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "попередження: відсутній контекст для ключового слова '%.*s'" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -"попередження: відсутній контекст для множинного аргументу ключового слова '%." -"*s'" +"попередження: відсутній контекст для множинного аргументу ключового слова " +"'%.*s'" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "невідповідність контексту між формою однини та множини" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3986,7 +4006,7 @@ "тут змінну MSGID_BUGS_ADDRESS; у іншому випадку\n" "вкажіть --msgid-bugs-address аргумент командного рядка.\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "невідома мова `%s'" @@ -3995,6 +4015,32 @@ msgid "" msgstr "<без назви>" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s: неправильний параметр -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "аварійне завершення DuplicateHandle з кодом помилки 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "Ще не реалізовано." + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "" +#~ "не вдається встановити неблокуючий режим вводу/виводу дочірнього процесу " +#~ "%s" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "помилка зв'язку з дочірнім процесом %s" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "помилка читання з дочірнього процесу %s" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "дочірній процес %s завершився з кодом %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "поле `%s' досі має початкове типове значення\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "Множинні посилання на %%%c." Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/vi.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/vi.gmo differ diff -Nru gettext-0.17/gettext-tools/po/vi.po gettext-0.18.1.1/gettext-tools/po/vi.po --- gettext-0.17/gettext-tools/po/vi.po 2007-11-02 02:24:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/vi.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,52 +1,54 @@ # Vietnamese Translation for gettext-tools. -# Copyright © 2007 Free Software Foundation, Inc. -# Clytie Siddall , 2005-2007. +# Copyright © 2010 Free Software Foundation, Inc. +# This file is distributed under the same license as the gettext package. +# Clytie Siddall , 2005-2010. # msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.16.2-pre5\n" +"Project-Id-Version: gettext-tools 0.18\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2007-10-17 16:11+0930\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2010-05-13 17:33+0930\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: LocFactoryEditor 1.7b1\n" +"X-Generator: LocFactoryEditor 1.8\n" #: gnulib-lib/argmatch.c:133 #, c-format msgid "invalid argument %s for %s" -msgstr "đối sô không hợp lệ « %s » cho « %s »" +msgstr "sai lập đối số « %s » cho « %s »" #: gnulib-lib/argmatch.c:134 #, c-format msgid "ambiguous argument %s for %s" -msgstr "đối số mơ hồ « %s » cho « %s »" +msgstr "đối số còn mơ hồ « %s » cho « %s »" #: gnulib-lib/argmatch.c:153 #, c-format msgid "Valid arguments are:" msgstr "Đối số hợp lệ:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "không tìm thấy thư mục tạm thời, hãy thử đặt $TMPDIR" +msgstr "không tìm thấy thư mục tạm thời, hãy thử lập biến $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "không thể tạo thư mục tạm thời bằng biểu mẫu « %s »" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, c-format msgid "cannot remove temporary file %s" msgstr "không thể gỡ bỏ tập tin tạm thời %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" msgstr "không thể gỡ bỏ thư mục tạm thời %s" @@ -55,44 +57,44 @@ msgid "write error" msgstr "lỗi ghi" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "gặp lỗi khi mở « %s » để đọc" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "không thể mở tập tin sao lưu « %s » để ghi" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "gặp lỗi khi đọc « %s »" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "gặp lỗi khi ghi « %s »" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "gặp lỗi sau khi đọc « %s »" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() bị lỗi" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "Không tìm thấy trình biên dịch C#, hãy thử cài đặt pnet." @@ -102,73 +104,72 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "Không tìm thấy cơ chế ảo C#, hãy thử cài đặt pnet." -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "Lỗi hệ thống không rõ" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "Tiến trình con « %s » bị lỗi" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 #, c-format -msgid "%s: option `%s' is ambiguous\n" -msgstr "%s: tùy chọn « %s » là mơ hồ\n" +msgid "%s: option '%s' is ambiguous\n" +msgstr "%s: tùy chọn « %s » còn mơ hồ\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 #, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s: tùy chọn « --%s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 #, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s: tùy chọn « %c%s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 #, c-format -msgid "%s: option `%s' requires an argument\n" -msgstr "%s: tùy chọn « %s » cần phải có đối số\n" +msgid "%s: option '--%s' requires an argument\n" +msgstr "%s: tùy chọn « %s » yêu cầu một đối số\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 #, c-format -msgid "%s: unrecognized option `--%s'\n" -msgstr "%s: không nhận diện tùy chọn « --%s »\n" +msgid "%s: unrecognized option '--%s'\n" +msgstr "%s: không nhận ra tùy chọn « --%s »\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 #, c-format -msgid "%s: unrecognized option `%c%s'\n" -msgstr "%s: không nhận diện tùy chọn « %c%s »\n" +msgid "%s: unrecognized option '%c%s'\n" +msgstr "%s: không nhận ra tùy chọn « %c%s »\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 #, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s: không cho phép tùy chọn « -- %c »\n" +msgid "%s: invalid option -- '%c'\n" +msgstr "%s: tùy chọn không hợp lệ -- « %c »\n" -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 #, c-format -msgid "%s: invalid option -- %c\n" -msgstr "%s: tùy chọn không hợp lệ « -- %c »\n" +msgid "%s: option requires an argument -- '%c'\n" +msgstr "%s: tùy chọn yêu cầu một đối số -- « %c »\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 #, c-format -msgid "%s: option requires an argument -- %c\n" -msgstr "%s: tùy chọn cần thiết đối số « -- %c »\n" +msgid "%s: option '-W %s' is ambiguous\n" +msgstr "%s: tùy chọn « -W %s » còn mơ hồ\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 #, c-format -msgid "%s: option `-W %s' is ambiguous\n" -msgstr "%s: tùy chọn « -W %s » là mơ hồ\n" +msgid "%s: option '-W %s' doesn't allow an argument\n" +msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 #, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" -msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s: tùy chọn « -W %s » yêu cầu một đối số\n" #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 @@ -185,20 +186,20 @@ "đối số « target_version » (phiên bản đích) không hợp lệ đối với « " "compile_java_class » (biên dịch hạng Java)" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "lỗi tạo « %s »" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "gặp lỗi khi ghi tập tin « %s »" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "" @@ -209,20 +210,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "Không tìm thấy cơ chế ảo Java, hãy thử cài đặt gcj hoặc đặt $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s lỗi VR tiến trình con" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" -msgstr "hết bộ nhớ rồi" +msgstr "cạn bộ nhớ" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -241,82 +242,81 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "« " -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr " »" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle bị lỗi với mã lỗi 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle bị lỗi" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "không phục hồi được bộ mô tả tập tin %d: dup2 bị lỗi" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s tiến trình con" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" -msgstr "%s tiến trình con nhập tín hiệu nghiêm trọng %d" +msgstr "%s tiến trình con nhận được tín hiệu nghiêm trọng %d" -#: src/format.c:143 +#: src/format.c:148 #, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "" -"« %s » không phải là một chuỗi định dạng %s hợp lệ, khác với « msgid ». Lý " -"do : %s" +"« %s » không phải là một chuỗi định dạng %s đúng, khác với « %s ». Lý do : %s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 #, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "" "một đặc tả định dạng cho đối số %u, như trong « %s », không tồn tại trong « " -"msgid »" +"%s »" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" -msgstr "một đặc tả định dạng cho đối số %u, không tồn tại trong « %s »" +msgstr "một đặc tả định dạng cho đối số %u cũng không tồn tại trong « %s »" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 #, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "" -"đặc tả định dạng trong « msgid » và « %s » cho đối số %u không phải trùng" +"đặc tả định dạng trong « %s » và « %s » cho đối số %u không phải trùng nhau" #: src/format-boost.c:449 #, c-format msgid "The directive number %u starts with | but does not end with |." msgstr "" -"Chỉ thị số %u bắt đầu với ký hiệu ống dẫn « | » nhưng không kết thúc với « | »." +"Chỉ thị số %u bắt đầu với ký hiệu ống dẫn « | » nhưng không kết thúc với « | " +"»." #: src/format-c.c:181 #, c-format @@ -324,9 +324,9 @@ "In the directive number %u, the token after '<' is not the name of a format " "specifier macro. The valid macro names are listed in ISO C 99 section 7.8.1." msgstr "" -"Trong chỉ thị số %u, hiệu bài nằm sau « < » không phải là tên của vĩ lệnh đặc " -"tả định dạng. Những tên vĩ lệnh hợp lệ được liệt kê trong ISO C 99 tiết đoạn " -"7.8.1." +"Trong chỉ thị số %u, hiệu bài nằm sau « < » không phải là tên của vĩ lệnh " +"đặc tả định dạng. Những tên vĩ lệnh hợp lệ được liệt kê trong ISO C 99 tiết " +"đoạn 7.8.1." #: src/format-c.c:588 #, c-format @@ -339,15 +339,16 @@ msgstr "" "Chuỗi này tham chiệu đến đối số có số %u nhưng mà bỏ qua đối số có số %u." -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 #, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" -msgstr "số đặc tả định dạng trong « msgid » và « %s » không phải trùng" +msgid "number of format specifications in '%s' and '%s' does not match" +msgstr "« %s » và « %s » không có cùng một số các đặc tả định dạng" #: src/format-csharp.c:88 src/format-java.c:205 #, c-format msgid "In the directive number %u, '{' is not followed by an argument number." -msgstr "Trong chỉ thị số %u, dấu ngoặc móc mở « { » không có số đối số đi theo." +msgstr "" +"Trong chỉ thị số %u, dấu ngoặc móc mở « { » không có số đối số đi theo." #: src/format-csharp.c:109 #, c-format @@ -385,24 +386,24 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "Chuỗi chứa một « } » riêng lẻ nằm sau chỉ thị số %u." -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "Chỉ thị số %u chứa tổ hợp cờ không hợp lệ." -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "Trong chỉ thị số %u, không cho phép độ chính xác nằm trước « %c »." -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "Trong chỉ thị số %u, số đối số cho độ chính xác phải bằng %u." -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " @@ -410,25 +411,25 @@ msgstr "" "Trong chỉ thị số %u, không cho phép đặc tả độ chính xác nằm trước « %c »." -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "Chỉ thị số %u chứa đặc tả độ chính xác không hợp lệ." -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "Trong chỉ thị số %u, không cho phép cờ nằm trước « %c »." -#: src/format-gcc-internal.c:671 +#: src/format-gcc-internal.c:677 #, c-format -msgid "'msgid' uses %%m but '%s' doesn't" -msgstr "« msgid » dùng %%m còn « %s » không phải" +msgid "'%s' uses %%m but '%s' doesn't" +msgstr "« %s » dùng %%m còn « %s » không phải" -#: src/format-gcc-internal.c:674 +#: src/format-gcc-internal.c:680 #, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" -msgstr "« msgid » không dùng %%m còn « %s » có phải dùng %%m" +msgid "'%s' does not use %%m but '%s' uses %%m" +msgstr "« %s » không dùng %%m còn « %s » có phải dùng %%m" #: src/format-invalid.h:22 msgid "The string ends in the middle of a directive." @@ -502,7 +503,8 @@ #, c-format msgid "" "In the directive number %u, the substring \"%s\" is not a valid number style." -msgstr "Chỉ thị số %u chứa chuỗi phụ « %s » không phải kiểu dáng con số hợp lệ." +msgstr "" +"Chỉ thị số %u chứa chuỗi phụ « %s » không phải kiểu dáng con số hợp lệ." #: src/format-java.c:323 #, c-format @@ -524,29 +526,28 @@ "In the directive number %u, a choice contains a number that is not followed " "by '<', '#' or '%s'." msgstr "" -"Chỉ thị số %u có một lựa chọn chứa con số không có dấu « < », « # » hay « %s » " -"theo sau." +"Chỉ thị số %u có một lựa chọn chứa con số không có dấu « < », « # » hay « %s " +"» theo sau." #: src/format-java.c:745 #, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "" -"đặc tả định dạng cho đối số {%u}, như trong « %s », không tồn tại trong « " -"msgid »" +"đặc tả định dạng cho đối số {%u}, như trong « %s », không tồn tại trong « %s " +"»" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" -msgstr "đặc tả định dạng cho đối số {%u}, không tồn tại trong « %s »" +msgstr "đặc tả định dạng cho đối số {%u} không tồn tại trong « %s »" -#: src/format-java.c:775 +#: src/format-java.c:776 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "" -"đặc tả định dạng trong « msgid » và « %s » cho đối số {%u} không phải trùng" +"đặc tả định dạng trong « %s » và « %s » cho đối số {%u} không phải trùng nhau" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 #: src/format-scheme.c:2375 @@ -555,17 +556,17 @@ "In the directive number %u, parameter %u is of type '%s' but a parameter of " "type '%s' is expected." msgstr "" -"Chỉ thị số %u chứa tham số %u có kiểu « %s » nhưng lẽ ra phải có tham số kiểu " -"« %s »." +"Chỉ thị số %u chứa tham số %u có kiểu « %s » nhưng lẽ ra phải có tham số " +"kiểu « %s »." #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" "Chỉ thị số %u có quá nhiều tham số, còn mong đợi nhiều nhất %u tham số." @@ -601,7 +602,8 @@ "In the directive number %u, '~:[' is not followed by two clauses, separated " "by '~;'." msgstr "" -"Chỉ thị số %u chứa « ~:[ » không có hai mệnh đề đi theo, định giớí bằng « ~; »." +"Chỉ thị số %u chứa « ~:[ » không có hai mệnh đề đi theo, định giớí bằng « ~; " +"»." #: src/format-lisp.c:3326 src/format-scheme.c:3263 #, c-format @@ -616,14 +618,14 @@ #: src/format-lisp.c:3474 src/format-scheme.c:3397 #, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" -msgstr "đặc tả định dạng trong « msgid » và « %s » không phải tương đương" +msgid "format specifications in '%s' and '%s' are not equivalent" +msgstr "đặc tả định dạng trong « %s » và « %s » không phải tương đương" #: src/format-lisp.c:3490 src/format-scheme.c:3413 #, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "" -"đặc tả định dạng trong « %s » không phải tập con của đặc tả trong « msgid »" +"đặc tả định dạng trong « %s » không phải tập hợp con của đặc tả trong « %s »" #: src/format-perl.c:433 #, c-format @@ -631,15 +633,15 @@ "In the directive number %u, the size specifier is incompatible with the " "conversion specifier '%c'." msgstr "" -"Chỉ thị số %u chứa đặc tả kích cỡ không tương thích với đặc tả chuyển đổi « %" -"c »." +"Chỉ thị số %u chứa đặc tả kích cỡ không tương thích với đặc tả chuyển đổi « " +"%c »." -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "đặc tả định dạng cho đối số « %s » không tồn tại trong « %s »" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." @@ -647,67 +649,65 @@ "Chuỗi tham chiếu đến đối số bằng cả hai tên đối số và đặc tả đối số không " "tên." -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" "Chuỗi tham chiếu đến đối số tên « %s » bằng nhiều cách không tương thích với " "nhau." -#: src/format-python.c:419 +#: src/format-python.c:430 #, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" -"đặc tả định dạng trong « msgid » mong đợi sự ánh xạ, còn đặc tả trong « %s » " +"đặc tả định dạng trong « %s » mong đợi sự ánh xạ, còn đặc tả trong « %s » " "mong đợi đồ nhiều thành phần" -#: src/format-python.c:426 +#: src/format-python.c:437 #, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" -"đặc tả định dạng trong « msgid » mong đợi đồ nhiều thành phần, còn đặc tả " -"trong « %s » mong đợi sự ánh xạ" +"đặc tả định dạng trong « %s » mong đợi đồ nhiều thành phần, còn đặc tả trong " +"« %s » mong đợi sự ánh xạ" -#: src/format-python.c:449 src/format-sh.c:297 +#: src/format-python.c:460 src/format-sh.c:297 #, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "" "đặc tả định dạng cho đối số « %s », như trong « %s », không tồn tại trong « " -"msgid »" +"%s »" -#: src/format-python.c:479 +#: src/format-python.c:494 #, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "" -"đặc tả định dạng trong « msgid » và « %s » cho đối số « %s » không phải trùng" +"đặc tả định dạng trong « %s » và « %s » cho đối số « %s » không phải trùng " +"nhau" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" -"« msgid » là chuỗi định dạng đơn giản, nhưng « %s » không phải: nó chứa một cờ " -"« L » hay một số kiểu đối số có hai chữ số" +"« %s » là một chuỗi định dạng đơn giản, nhưng « %s » không phải: nó chứa một " +"cờ « L » hay một số kiểu đối số đôi chữ số" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." -msgstr "Chuỗi tham chiếu đến biến trình bao có tên khác ASCII." +msgstr "Chuỗi tham chiếu đến một biến trình bao có tên khác ASCII." #: src/format-sh.c:81 msgid "" "The string refers to a shell variable with complex shell brace syntax. This " "syntax is unsupported here due to security reasons." msgstr "" -"Chuỗi tham chiếu đến biến trình bao có cú pháp dấu ngoặc trình bao phức tạp. " -"Ở đây không hỗ trợ cú pháp đó, vì lý do bảo mật." +"Chuỗi tham chiếu đến một biến trình bao có cú pháp dấu ngoặc trình bao phức " +"tạp. Ở đây không hỗ trợ cú pháp đó, vì lý do bảo mật." #: src/format-sh.c:83 msgid "" @@ -735,11 +735,11 @@ "1 and 9." msgstr "Ký tự kết thúc chỉ thị số %u không phải chữ số nằm giữa 1 và 9." -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -752,39 +752,39 @@ "Đây là phần mềm tự do : bạn có quyền thay đổi và phát hành lại nó.\n" "KHÔNG CÓ BẢO HÀNH GÌ CẢ, với điều kiện được pháp luật cho phép.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "Tác giả: %s.\n" # Name: don't translate / Tên: đừng dịch #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "quá nhiều đối số" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Hãy thử lệnh « %s --help » để xem thông tin thêm.\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "Cách sử dụng: %s [TÙY CHỌN]\n" @@ -819,29 +819,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address các _địa chỉ_ cho tên máy đó\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "Kết xuất thông tin:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help hiện _trợ giúp_ này rồi thoát\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version xuất thông tin _phiên bản_ rồi thoát\n" @@ -850,11 +850,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "Hãy thông báo lỗi cho .\n" @@ -863,30 +863,30 @@ msgid "could not get host name" msgstr "không thể lấy tên máy" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "cho phép nhiều nhất một tập tin nhập" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s và %s loại từ lẫn nhau" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "Cách sử dụng: %s [TÙY_CHỌN] [TẬP_TIN_NHẬP]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" @@ -895,10 +895,10 @@ "Lọc các thông điệp của phân loại thông dịch tùy theo thuộc tính,\n" "cũng thao tác thuộc tính.\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -906,196 +906,190 @@ "Tất cả đối số bắt buộc phải sử dụng với tùy chọn dài cũng bắt buộc với tùy " "chọn ngắn.\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "Vị trí tập tin nhập:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " TẬP_TIN_NHẬP tập tin PO nhập vào\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr "" " -D, --directory=THƯ_MỤC\n" -"\tthêm _thư mục_ này vào danh sách để tìm kiếm tập tin nhập\n" +"\tthêm thư mục này vào danh sách để tìm kiếm tập tin nhập\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "" -"Không đưa ra tập tin nhập, hay nó là « - » thì thiết bị nhập chuẩn được đọc.\n" +"Không đưa ra tập tin nhập, hay nó là « - » thì đọc đầu vào tiêu chuẩn.\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "Vị trí tấp tin xuất:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" -msgstr " -o, --output-file=TẬP_TIN ghi kết _xuất_ vào _tập tin_ này\n" +msgstr " -o, --output-file=TẬP_TIN ghi kết xuất vào tập tin này\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "" -"Kết quả được ghi ra thiết bị xuất chuẩn nếu không có tập tin xuất được đưa " +"Kết quả được ghi ra đầu ra tiêu chuẩn nếu không có tập tin xuất được đưa " "ra,\n" -"hoặc nếu nó là « ~ ».\n" +"hoặc nếu nó là « - ».\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" -msgstr "Chọn thông điệp:\n" +msgstr "Lựa chọn thông điệp:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr "" -" --translated\n" -"\tgiữ các thông điệp _đã dịch_, gỡ bỏ các điều chưa dịch\n" +" --translated giữ các thông điệp đã dịch, bỏ các thông điệp chưa " +"dịch\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr "" -" --untranslated\n" -"\tgiữ các thông điệp _chưa dịch_, gỡ bỏ các điều đã dịch\n" +" --untranslated giữ các thông điệp chưa dịch, bỏ các thông điệp đã " +"dịch\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" -msgstr "" -" --no-fuzzy gỡ bỏ các thông điệp có nhãn « mờ » (_không mờ_)\n" +msgstr " --no-fuzzy bỏ các thông điệp có nhãn « fuzzy » (dịch mờ)\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr "" -" --only-fuzzy giữ các thông điệp có nhãn « mờ » (_chỉ mờ_)\n" +" --only-fuzzy giữ các thông điệp có nhãn « fuzzy » (dịch " +"mờ)\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" -msgstr "" -" --no-obsolete gỡ bỏ các thông điệp quá cũ [có dấu #~] " -"(_không cũ_)\n" +msgstr " --no-obsolete bỏ các thông điệp quá cũ (có dấu #~)\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" -msgstr "" -" --only-obsolete giữ các thông điệp quá cũ [có dấu #~] (_chỉ " -"cũ_)\n" +msgstr " --only-obsolete giữ các thông điệp quá cũ (có dấu #~)\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "Thao tác thuộc tính:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" -msgstr " --set-fuzzy đặt mọi thông điệp là « mờ » (_đặt mờ_)\n" +msgstr "" +" --set-fuzzy lập mọi thông điệp là « fuzzy » (dịch mờ)\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr "" -" --clear-fuzzy đặt mọi thông điệp là khác « mờ » (_xóa mờ_)\n" +" --clear-fuzzy lập mọi thông điệp là khác « fuzzy » (dịch mờ)\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" -msgstr "" -" --set-obsolete đặt mọi thông điệp là quá cũ (_đặt cũ_)\n" +msgstr " --set-obsolete lập mọi thông điệp là quá cũ\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" -msgstr "" -" --clear-obsolete đặt mọi thông điệp là khác cũ (_xóa cũ_)\n" +msgstr " --clear-obsolete lập mọi thông điệp là chưa quá cũ\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" -msgstr "" -" --clear-previous gỡ bỏ « msgid trước » ra mọi thông điệp (_xoá " -"trước_)\n" +msgstr " --clear-previous bỏ « msgid trước » ra mọi thông điệp\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr "" -" --only-file=TẬP_TIN.po\n" -"\tthao tác chỉ những mục được liệt kê trong tập tin này (_chỉ tập tin_)\n" +" --only-file=TẬP_TIN.po thao tác chỉ những mục được liệt kê trong " +"tập tin này\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr "" " --ignore-file=TẬP_TIN.po\n" "\tthao tác chỉ những mục không được liệt kê trong tập tin này\n" -"\t(_bỏ qua tập tin_)\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" -msgstr " --fuzzy bằng --only-fuzzy hay --clear-fuzzy\n" +msgstr "" +" --fuzzy bằng « --only-fuzzy » hay « --clear-fuzzy »\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr "" -" --obsolete bằng --only-obsolete hay --clear-obsolete\n" +" --obsolete bằng « --only-obsolete » hay « --clear-" +"obsolete »\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "Cú pháp tập tin nhập:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr "" " -P, --properties-input\n" -"\ttập tin nhập có cú pháp .properties (tài sản) của Java (_tài sản_)\n" +"\ttập tin nhập có cú pháp .properties (thuộc tính) của Java\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1103,147 +1097,159 @@ msgstr "" " --stringtable-input\n" "\ttập tin nhập có cú phãp .strings kiểu NeXTstep/GNUstep\n" -"\t{_bảng chuỗi-nhập_)\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" -msgstr "Chi tiết xuất:\n" +msgstr "Chi tiết kết xuất:\n" + +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color\t\t\tluôn luôn đặt màu sắc và các thuộc tính văn bản khác\n" +" --color=KHI\t\tđặt màu sắc và các thuộc tính văn bản khác KHI nào :\n" +"\t• always\t\tluôn luôn\n" +"\t• never\t\tkhông bao giờ\n" +"\t• auto\t\ttự động\n" +"\t• html\t\tHTML.\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" +" --style=TẬP_TIN ghi rõ tập tin quy tắc kiểu dáng CSS cho --color " +"(màu)\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" -" -e, --no-escape\n" -"\tkhông dùng ký tự thoát C trong kết xuất [mặc định] (_không thoát_)\n" +" -e, --no-escape không dùng ký tự thoát C trong kết xuất (mặc định)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr "" " -E, --escape\n" -"\tdùng ký tự thoát C trong kết xuất, không có ký tự đã mở rộng (_thoát_)\n" +"\tdùng ký tự thoát C trong kết xuất, không có ký tự đã mở rộng\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" -msgstr "" -" --force-po ghi ra tập tin PO thậm chí nếu nó rỗng (_buộc PO_)\n" +msgstr " --force-po ghi ra tập tin PO thậm chí nếu nó còn trống\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr "" -" -i, --indent ghi ra tập tin PO bằng kiểu dáng thụt lề " -"(_thụt lề_)\n" +" -i, --indent ghi ra tập tin PO bằng kiểu dáng thụt lề\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr "" -" --no-location\n" -"\tkhông ghi dòng kiểu « #: tên_tập_tin:số_hiệu_dòng »\n" -"\t(_không vị trí_)\n" +" --no-location không ghi dòng kiểu « #: tên_tập_tin:số_hiệu_dòng »\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" " -n, --add-location\n" -"\ttạo ra dòng kiểu « #: tên_tập_tin:số_hiệu_dòng » [mặc định]\n" -"\t(_thêm vị trí_)\n" +"\ttạo ra dòng kiểu « #: tên_tập_tin:số_hiệu_dòng » (mặc định)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" -msgstr "" -" --strict xuất tập tin PO tùy theo Uniforum chính xác\n" -"\t(_chặt chẽ_)\n" +msgstr " --strict xuất tập tin PO tùy theo Uniforum chính xác\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr "" -" -p, --properties-output\n" -"\txuất tập tin .properties (tài sản) kiểu Java (_tài sản-xuất_)\n" +" -p, --properties-output xuất tập tin .properties (thuộc tính) kiểu " +"Java\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr "" " --stringtable-output\n" "\txuất tập tin .strings (chuỗi) kiểu NeXTstep/GNUstep\n" -"\t(_bảng chuỗi-xuất_)\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" -msgstr " -w, --width=SỐ đặt độ rộng của trang xuất (_độ rộng_)\n" +msgstr " -w, --width=SỐ lập chiều rộng của trang kết xuất\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr "" -" --no-wrap\t\t_hông ngắt ra nhiều dòng, dòng thông điệp\n" -"dài hơn độ rộng của trang xuất (_không ngắt_)\n" +" --no-wrap không chia ra nhiều dòng những dòng dài hơn chiều rộng " +"trang kết xuất\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" -msgstr "" -" -s, --sort-output tạo ra kết xuất đã sắp xếp\n" -"\t(_sắp xếp kết xuất)\n" +msgstr " -s, --sort-output tạo ra kết xuất được sắp xếp\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" -msgstr "" -" -F, --sort-by-file sắp xếp kết xuất theo vị trí tập tin\n" -"\t(_sắp xếp theo tập tin_)\n" +msgstr " -F, --sort-by-file sắp xếp kết xuất theo vị trí tập tin\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" -msgstr "tiêu chuẩn lựa chọn không thể được xác định (%d < n < %d)" +msgstr "xác định tiêu chuẩn lựa chọn không thể sử dụng được (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] [TẬP_TIN_NHẬP]...\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] [TẬP_TIN_NHẬP]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1268,65 +1274,64 @@ "chúng sẽ được lấy từ tập tin PO thứ nhất có định nghĩa chúng.\n" "Vị trí tập tin từ mọi tập tin PO sẽ được lũy tích.\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " TẬP_TIN_NHẬP ... những tập tin nhập\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr "" -" -f, --files-from=TẬP_TIN\n" -"\tlấy danh sách các tập tin nhập từ tập tin này (_tập tin từ_)\n" +" -f, --files-from=TẬP_TIN lấy từ tập tin này danh sách các tập tin nhập " +"vào\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" -msgstr "Tập tin nhập là « - » thì thiết bị nhập chuẩn được đọc.\n" +msgstr "Tập tin nhập là « - » thì đọc đầu vào tiêu chuẩn.\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" " definitions, defaults to infinite if not set\n" msgstr "" " -<, --less-than=SỐ\n" -"\tin ra các thông điệp có ít hơn SỐ lời định nghĩa;\n" -"\tkhông đặt thì mặc định là vô hạn (_ít hơn_)\n" +"\tin ra các thông điệp có ít hơn SỐ các lời định nghĩa;\n" +"\tkhông bật thì mặc định là vô hạn\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 0 if not set\n" msgstr "" " ->, --more-than=SỐ\n" -"\tin ra các thông điệp có nhiều hơn SỐ lời định nghĩa;\n" -"\tkhông đặt thì mặc định là 0 (_nhiều hơn_)\n" +"\tin ra các thông điệp có nhiều hơn SỐ các lời định nghĩa;\n" +"\tkhông bật thì mặc định là 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" " that only unique messages be printed\n" msgstr "" " -u, --unique \ttốc ký cho tùy chọn « --less-than=2 » (ít hơn 2),\n" -"\tyêu cầu chỉ những thông điệp duy nhất được in (_duy nhất_)\n" +"\tyêu cầu in ra chỉ những thông điệp duy nhất\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr "" " -P, --properties-input\n" -"\ttập tin nhập có cú pháp kiểu .properties (tài sản) của Java\n" -"\t(_tài sản-nhập_)\n" +"\ttập tin nhập có cú pháp kiểu .properties (thuộc tính) của Java\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1334,66 +1339,51 @@ msgstr "" " --stringtable-input\n" "\ttập tin nhập có cú pháp .strings (chuỗi) kiểu NeXTstep/GNUstep\n" -"\t(_bảng chuỗi-nhập_)\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" -msgstr " -t, --to-code=MÃ \tbộ ký tự cho kết xuất (_đến mã_)\n" +msgstr " -t, --to-code=MÃ \tbộ ký tự cho kết xuất\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" " message, don't merge several translations\n" msgstr "" " --use-first\tdùng bản dịch sẵn sàng thứ nhất cho mỗi thông điệp,\n" -"\tkhông trộn nhiều bản dịch (_dùng thứ nhất_)\n" +"\tkhông trộn nhiều bản dịch\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" -" --color\t\t\tluôn luôn đặt màu sắc và các thuộc tính văn bản khác\n" -" --color=KHI\t\tđặt màu sắc và các thuộc tính văn bản khác KHI nào :\n" -"\t• always\t\tluôn luôn\n" -"\t• never\t\tkhông bao giờ\n" -"\t• auto\t\ttự động\n" -"\t• html\t\tHTML.\n" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" -" --style=TẬP_TIN ghi rõ tập tin quy tắc kiểu dáng CSS cho --color " -"(màu)\n" +" --lang=TÊN_PHÂN_LOẠI lập trường « Language » (Ngôn ngữ) trong " +"phần đầu\n" # Name: don't translate / Tên: đừng dịch #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "chưa đưa ra tập tin nhập" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "cần thiết chính xác 2 tập tin nhập" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "Cách sử dụng: %s [TÙY_CHỌN] cũ.po mới.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1411,22 +1401,22 @@ "của bạn. Không tìm được sự khớp chính xác thì khả năng khớp mờ\n" "được dùng để cung cấp sự chẩn đoán tốt hơn.\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " cũ.po chuỗi đã dịch\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " mới.pot tham chiếu đến nguồn\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "Sửa đổi thao tác:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1434,62 +1424,64 @@ msgstr "" " -m, --multi-domain\n" "\táp dụng tập tin mới.pot vào mỗi miền nằm trong tập tin cũ.po\n" -"\t(_đa miền_)\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching không dùng khả năng khớp mờ\n" + +#: src/msgcmp.c:245 #, c-format msgid " --use-fuzzy consider fuzzy entries\n" -msgstr " --use-fuzzy gồm mục nhập mờ (_dùng mờ_)\n" +msgstr " --use-fuzzy gồm có mục nhập mờ\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, c-format msgid " --use-untranslated consider untranslated entries\n" -msgstr "" -" --use-untranslated gồm mục nhập chưa dịch\n" -"\t(_dùng chưa dịch_)\n" +msgstr " --use-untranslated gồm có mục nhập chưa dịch\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, c-format msgid "this message is untranslated" -msgstr "thông điệp này chưa được dùng" +msgstr "thông điệp này chưa được dịch" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "thông điệp này cần phải được xem lại bởi dịch giả" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "thông điệp này được dùng còn chưa được xác định..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" -msgstr "...nhưng mà lời xác định này là tương tự" +msgstr "...nhưng mà lời xác định này vẫn tương tự" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "thông điệp này được dùng còn chưa được xác định trong %s" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "cảnh báo : thông điệp này không được dùng" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "tìm thấy %d lỗi nghiêm trọng" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "phải xác định ít nhất hai tập tin" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1510,85 +1502,80 @@ "trích sẽ được bảo tồn, nhưng chỉ từ tập tin PO thứ nhất đã xác định chúng.\n" "Vị trí tập tin từ mọi tập tin PO sẽ được tích lũy.\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" " definitions, defaults to 1 if not set\n" msgstr "" -" ->, --more-than=SỐ\n" -"\tin các thông điệp chứa nhiều lời xác định hơn số này;\n" -"\tmặc định là 1 nếu không được đặt (_nhiều hơn_)\n" +" ->, --more-than=SỐ in các thông điệp chứa nhiều lời xác định hơn SỐ " +"này;\n" +"\tkhông bật thì mặc định là 1t\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" -msgstr "" -" --omit-header\n" -"\tkhông ghi phần đầu có mục `msgid \"\"' (_bỏ sót phần đầu_)\n" +msgstr " --omit-header không ghi dòng đầu có mục `msgid \"\"' \n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" -msgstr "Chuyển đổi phân loại thông dịch sang mã ký tự khac.\n" +msgstr "Chuyển đổi phân loại thông dịch sang một mã ký tự khác.\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "Đích chuyển đổi:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "Mã ký tự mặc định theo mã ký tự của miền địa phương hiện có.\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" -msgstr " -i, --indent kiểu dáng xuất đã thụt lề (_thụt lề_)\n" +msgstr " -i, --indent kiểu dáng kết xuất đã thụt lề\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr "" -" --no-location\n" -"\tthu hồi dòng kiểu « #: tên_tập_tin:số_dòng » (_không vị trí_)\n" +" --no-location thu hồi dòng kiểu « #: tên_tập_tin:số_dòng »\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr "" -" --add-location\n" -"\tbảo quản dòng kiểu « #: tên_tập_tin:số_dòng » (_thêm vị trí_)\n" +" --add-location bảo quản dòng kiểu « #: tên_tập_tin:số_dòng » (mặc " +"định)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" -msgstr "" -" --strict xuất dữ liệu kiểu Uniforum chính xác\n" -"\t(_chặt chẽ_)\n" +msgstr " --strict xuất dữ liệu kiểu Uniforum chính xác\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "chưa đưa ra tập tin nhập vào" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" -msgstr "cần thiết chính xác một tập tin nhập vào" +msgstr "yêu cầu chính xác một tập tin nhập vào" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] TẬP_TIN_NHẬP\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] TẬP_TIN_NHẬP\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1601,22 +1588,22 @@ "(POT: thường do xgettext tạo). Mục nhập chưa dịch được gán\n" "bản dịch trùng với chuỗi gốc (msgid).\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " TẬP_TIN_NHẬP tập tin dạng .po hay .pot nhập vào\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "thiếu tên lệnh" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] LỆNH [TÙY_CHỌN_LÊNH]\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] LỆNH [TÙY_CHỌN_LÊNH]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1627,11 +1614,11 @@ msgstr "" "Áp dụng lệnh vào mọi chuỗi dịch của phân loại thông dịch.\n" "LỆNH có thể là bất cứ chương trình nào đọc bản dịch\n" -"từ thiết bị nhập chuẩn. Nó được gọi một lần cho mỗi chuỗi dịch.\n" +"từ đầu vào tiêu chuẩn. Nó được gọi một lần cho mỗi chuỗi dịch.\n" "Kết xuất của nó trở thành kết xuất của tiến trình msgexec.\n" "Mã trả lại của megexec là mã trả lại tối đa qua mọi cuộc gọi.\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1641,66 +1628,65 @@ "với một byte vô giá trị theo sau. Kết xuất của tiến trình msgexec\n" "là thích hợp là kết nhập vào « xargs -0 ».\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" -msgstr "" -" -i, --input=TẬP_TIN_NHẬP tập tin dạng .po nhập vào\n" -"\t(_tập tin nhập vào_)\n" +msgstr " -i, --input=TẬP_TIN_NHẬP tập tin dạng .po nhập vào\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" -msgstr "lỗi ghi vào thiết bị xuất chuẩn" +msgstr "lỗi ghi vào đầu ra tiêu chuẩn" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "lỗi ghi vào tiến trình phụ %s" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "thiếu tên bộ lọc" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "phải xác định ít nhất một văn lệnh sed" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] BỘ_LỌC [TÙY_CHỌN_LỌC]\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] BỘ_LỌC [TÙY_CHỌN_LỌC]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" -msgstr "Áp dụng bộ lọc vào mọi chuỗi dịch của phân loại thông dịch.\n" +msgstr "" +"Áp dụng một bộ lọc cho mọi chuỗi dịch của một phân loại thông dịch nào đó.\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" "and writes a modified translation to standard output.\n" msgstr "" -"BỘ LỌC là bất cứ chương trình nào đọc chuỗi dịch từ thiết bị nhập chuẩn\n" -"và ghi chuỗi dịch đã sửa đổi vào thiết bị xuất chuẩn.\n" +"BỘ LỌC là bất cứ chương trình nào đọc chuỗi dịch từ đầu vào tiêu chuẩn\n" +"và ghi chuỗi dịch đã sửa đổi vào đầu ra tiêu chuẩn.\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "Tùy chọn lọc hữu ích khi BỘ LỌC là « sed »:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -" -e, --expression=VĂN_LỆNH\n" -"\tthêm văn lệnh này vào những lệnh cần thực hiện (_biểu thức_)\n" +" -e, --expression=VĂN_LỆNH thêm văn lệnh này vào những lệnh cần thực " +"hiện\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1709,129 +1695,106 @@ msgstr "" " -f, --file=TẬP_TIN_VĂN_LỆNH\n" "\tthêm nội dung của tập tin văn lệnh này vào những lệnh cần thực hiện\n" -"\t(_tập tin văn lệnh_)\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" -msgstr "" -" -n, --quiet, --silent thu hồi khả năng tự động in miền mẫu (_im_)\n" +msgstr " -n, --quiet, --silent thu hồi khả năng tự động in miền mẫu\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr "" -" --no-escape\n" -"\tkhông dùng ký tự thoát C trong kết xuất [mặc định]\n" -"\t(_không thoát_)\n" +" --no-escape không dùng ký tự thoát C trong kết xuất (mặc định)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" -msgstr " --indent kiểu dáng xuất đã thụt lề (_thụt lề_)\n" +msgstr " --indent kiểu dáng kết xuất đã thụt lề\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr "" -" --keep-header giữ phần đầu không được sửa đổi, không lọc nó\n" -"\t(_giữ phần đầu_)\n" - -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "Chưa thực hiện." - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "không thể thiết lập VR không chặn tới tiến trình phụ %s" +" --keep-header giữ lại phần đầu không bị sửa đổi, không lọc nó\n" -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "lỗi liên lạc với tiến trình phụ %s" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "lỗi đọc từ tiến trình phụ %s" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "tiến trình con %s đã kết thúc với mã thoát %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "đối số tới %s nên là một ký tự chấm câu riêng lẻ" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "tình trạng cuối không hợp lệ: %s" # Name: don't translate / Tên: đừng dịch #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" -msgstr "%s cần thiết đặc tả « -d directory » (thư mục)" +msgstr "%s cần thiết một đặc tả « -d directory » (thư mục)" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" -msgstr "%s cần thiết đặc tả « -l locale » (miền địa phương)" +msgstr "%s cần thiết một đặc tả « -l locale » (miền địa phương)" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s chỉ hợp lệ với %s hay %s" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s chỉ hợp lệ với %s, %s hay %s" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "%s: " + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d thông điệp đã dịch" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ", %d bản dịch mờ" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ", %d thông điệp chưa dịch" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] tên_tập_tin.po ...\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] tên_tập_tin.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "" "Tạo ra phân loại thông điệp nhị phân từ mô tả thông dịch kiểu văn bản.\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1840,25 +1803,26 @@ "Tất cả đối số bắt buộc phải sử dụng với tùy chọn dài cũng bắt buộc với tùy chọn ngắn.\n" "Cũng vậy với đối số kiểu tùy chọn.\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " tên_tập_tin.po ... những tập tin nhập vào\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "Chế độ thao tác:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr "" -" -j, --java chế độ Java: tạo ra hạng ResourceBundle kiểu Java\n" +" -j, --java chế độ Java: tạo ra hạng ResourceBundle (bó tài " +"nguyên) kiểu Java\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1867,57 +1831,57 @@ " --java2 giống như --java, cũng giả sử Java2 (JDK 1.2 hay " "sau)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr "" " --csharp chế độ C#: tạo ra một tập tin .dll kiểu .NET\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr "" " --csharp-resources\n" -"\tchế độ tài sản C#: tạo ra một tập tin .resources kiểu .NET\n" +"\tchế độ tài sản C#: tạo ra một tập tin .resources (tài nguyên) kiểu .NET\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr "" " --tcl chế độ Tcl: tạo ra một tập tin .msg kiểu tcl/msgcat\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr "" " --qt chế độ Qt: tạo ra một tập tin .qm kiểu Qt\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr "" " --strict bật chế độ Uniforum chính xác (_chặt chẽ_)\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" -msgstr "Tập tin xuất là - thì kết xuất được ghi vào thiết bị xuất chuẩn.\n" +msgstr "Tập tin xuất là « - » thì kết xuất được ghi vào đầu ra tiêu chuẩn.\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Vị trí của tập tin xuất trong chế độ Java:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" -msgstr " -r, --resource=TÀI_SẢN tên tài sản (_tài sản_)\n" +msgstr " -r, --resource=TÀI_NGUYÊN tên của tài nguyên\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1927,13 +1891,13 @@ "\ttên miền địa phương, hoặc ngôn ngữ hoặc ngôn ngữ_quốc gia\n" "\t(v.d. hoặc « vi » hay « vi_VN »)\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d THƯ_MỤC thư mục cơ sở của phân cấp thư mục hạng\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1945,12 +1909,12 @@ "vào tên tài sản, định giới bằng dấu gạch dưới. Tùy chọn « -d » bắt buộc\n" "phải sử dụng. Hạng được ghi dưới thư mục đã xác định.\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "Vị trí của tập tin xuất trong chế độ C#:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " @@ -1959,7 +1923,7 @@ " -d THƯ_MỤC\t\tthư mục cơ sở cho tập tin dạng .dll\n" "\tphụ thuộc vào miền địa phương\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1969,19 +1933,19 @@ "Tập tin .dll được ghi trong thư mục con của thư mục đã xác định\n" "có tên phụ thuộc vào miền địa phương.\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Vị trí của tập tin xuất trong chế độ Tcl:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" " -d THƯ_MỤC\n" "\t thư mục cơ sở của phân loại thông điệp dạng .msg\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" @@ -1990,12 +1954,12 @@ "Hai tùy chọn « -l » và « -d » bắt buộc phải sử dụng.\n" "Tập tin dạng .msg được ghi trong thư mục đã xác định.\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "Giải thích tập tin nhập vào:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -2007,24 +1971,21 @@ "\t--check-header (kiểm tra phần đầu),\n" "\t--check-domain (kiểm tra miền).\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr "" " --check-format\n" "\tkiểm tra các chuỗi có định dạng phụ thuộc vào ngôn ngữ\n" -"\t(_kiểm tra định dạng_)\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" -msgstr "" -" --check-header kiểm tra có mục nhập phần đầu đúng\n" -"\t(_kiểm tra phần đầu_)\n" +msgstr " --check-header kiểm tra có mục nhập phần đầu đúng\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -2032,18 +1993,17 @@ msgstr "" " --check-domain\tkiểm tra nếu có sự xung đột giữa chỉ thị miền\n" "\tvà tùy chọn « --output-file » (tập tin xuất)\n" -"\t(_kiểm tra miền_)\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " "msgfmt\n" msgstr "" " -C, --check-compatibility kiểm tra msgfmt của GNU ứng xử\n" -"\tgiống như msgfmt của X/Open (_kiểm tra tính tương thích_)\n" +"\tgiống như msgfmt của X/Open\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -2052,114 +2012,110 @@ msgstr "" " --check-accelerators[=KÝ_TỤ]\n" "\tkiểm tra có ký tự tâng tốc bàn phím cho mục trình đơn\n" -"\t(_kiểm tra bộ tăng tốc_)\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" -msgstr "" -" -f, --use-fuzzy dùng mục nhập mờ trong kết xuất (_dùng mờ_)\n" +msgstr " -f, --use-fuzzy dùng mục nhập dịch mờ trong kết xuất\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" -" -a, --alignment=SỐ chỉnh canh các chuỗi theo số byte này (mặc định: %" -"d)\n" -"\t(_chỉnh canh_)\n" +" -a, --alignment=SỐ chỉnh canh các chuỗi theo số byte này (mặc định: " +"%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" -" --no-hash tập tin nhị phân sẽ không chứa bảng băm\n" -"\t(_không băm_)\n" +" --no-hash tập tin nhị phân sẽ không chứa bảng chuỗi duy " +"nhất\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" -msgstr "" -" --statistics in ra thống kê về các chuỗi dịch (_thống kê_)\n" +msgstr " --statistics in ra thống kê về các chuỗi dịch\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" -msgstr " -v, --verbose tăng cấp xuất thông tin (_chi tiết_)\n" +msgstr " -v, --verbose tăng cấp chi tiết\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "cảnh báo : phần đầu của tập tin .po còn thiếu hay không hợp lệ\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "cảnh báo : việc chuyển đổi bộ ký tự sẽ không hoạt động được\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "cảnh báo : phần đầu tập tin PO còn mờ\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "" "cảnh báo : phiên bản msgfmt cũ hơn sẽ thông báo lỗi trong trường hợp này.\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "tên miền « %s » không thích hợp làm tên tập tin" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "tên miền « %s » không thích hợp làm tên tập tin nên dùng tiền tố" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "chỉ thị « domain %s » bị bỏ qua" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "mục nhập « msgstr » rỗng bị bỏ qua" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" -msgstr "mục nhập « msgstr » mờ bị bỏ qua" +msgstr "mục nhập « msgstr » dịch mờ bị bỏ qua" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s: cảnh báo : tập tin nguồn chứa chuỗi dịch mờ" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "gặp lỗi khi đọc « %s »" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "" -"tùy chọn « %c » không thể được dùng trước khi xác định « J » hay « K » hay « T » " -"hay « C » hay « X »" +"tùy chọn « %c » không thể được dùng trước khi xác định « J » hay « K » hay « " +"T » hay « C » hay « X »" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" @@ -2168,7 +2124,7 @@ "Trích ra mọi thông điệp trong phân loại thông dịch tương ứng với mẫu đã cho\n" "hay thuộc về một số tập tin nguồn đã cho.\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2236,51 +2192,40 @@ "hoặc là chuỗi cố định nếu tùy chọn « -F » được đưa ra.\n" "\n" " -N, --location=TẬP_TIN_NGUỒN\n" -"\tchọn thông điệp được trích ra tập tin nguồn này (_vị trí_)\n" -" -M, --domain=TÊN_MIỀN \tchọn thông điệp thuộc về miền này (_miền_)\n" +"\tchọn thông điệp được trích ra tập tin nguồn này\n" +" -M, --domain=TÊN_MIỀN \tchọn thông điệp thuộc về miền này\n" " -J, --msgctxt \t\tbắt đầu mẫu kiểu msgctxt\n" " -K, --msgid \t\tbắt đầu mẫu kiểu msgid\n" " -T, --msgstr \t\tbắt đầu mẫu kiểu msgstr\n" " -C, --comment \t\tbắt đầu mẫu kiểu chú thích của dịch giả\n" -"\t(_chú thích_)\n" " -X, --extracted-comment \tbắt đầu mẫu kiểu chú thích đã trích ra\n" -"\t(_chú thích đã trích ra_)\n" " -E, --extended-regexp MẪU cũng là biểu thức chính quy đã mở rộng\n" -"\t(_biểu thức chính quy đã mở rộng_)\n" " -F, --fixed-strings \tMẪU là tập hợp chuỗi định giới bằng dòng mới\n" -"\t(_chuỗi cố định_)\n" " -e, --regexp=MẪU \tdùng MẪU như là biểu thức chính quy\n" -" -f, --file=TẬP_TIN \tlấy MẪU từ tập tin này (_tập tin_)\n" +" -f, --file=TẬP_TIN \tlấy MẪU từ tập tin này\n" " -i, --ignore-case \tkhông phân biệt chữ hoa/thường\n" -"\t(_bỏ qua chữ hoa/thường_)\n" " -v, --invert-match\n" "\txuất chỉ những thông điệp không khớp với tiêu chuẩn lựa chọn nào\n" -"\t(_đảo ngược sự khớp_)\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr "" " --escape\n" -"\tdùng ký tự thoá_ dạng C trong kết xuất,\n" -"\tkhông có ký tự đã mở rộng (_thoát_)\n" +"\tdùng ký tự thoát dạng C trong kết xuất, không có ký tự đã mở rộng\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" -msgstr "" -" --sort-output tạo ra kết xuất đã sắp xếp\n" -"\t(_sắp xếp kết xuất_)\n" +msgstr " --sort-output tạo ra kết xuất được sắp xếp\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" -msgstr "" -" --sort-by-file\tsắp xếp dữ liệu xuất theo vị trí của tập tin\n" -"\t(_sắp xếp theo tập tin_)\n" +msgstr " --sort-by-file\tsắp xếp kết xuất theo vị trí của tập tin\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2291,7 +2236,7 @@ "ABOUT-NLS (giới thiệu về NLS). Việc đặt ngôn ngữ chính\n" "cần thiết để thử ra bản dịch.\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2302,12 +2247,12 @@ "Hãy xác định miền địa phương bằng tùy chọn « --locale »\n" "hoặc xác định tập tin PO xuất bằng tùy chọn « --output-file »\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "%s đã được tạo.\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" @@ -2316,53 +2261,50 @@ "Tạo một tập tin PO mới, cũng khởi động siêu thông tin bằng giá trị từ\n" "môi trường riêng của người dùng.\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" -msgstr " -i, --input=TẬP_TIN_NHẬP tập tin dạng POT nhập vào (_nhập vào_)\n" +msgstr " -i, --input=TẬP_TIN_NHẬP tập tin dạng POT nhập vào\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " "file.\n" "If it is -, standard input is read.\n" msgstr "" -"Không đưa ra tập tin nhập vào thì thư mục hiện thời được quét\n" -"để tìm tập tin POT.\n" -"Nếu tập tin nhập vào là - , thiết bị nhập chuẩn được đọc.\n" +"Không đưa ra tập tin nhập vào thì thư mục hiện thời được quét tìm tập tin " +"POT.\n" +"Tập tin nhập vào là « - » thì đọc đầu vào tiêu chuẩn.\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" -msgstr "" -" -o, --output-file=TẬP_TIN ghi kết xuất vào tập tin PO này.\n" -"\t(_tập tin xuất_)\n" +msgstr " -o, --output-file=TẬP_TIN ghi kết xuất vào tập tin PO này\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" "locale setting. If it is -, the results are written to standard output.\n" msgstr "" "Không đưa ra tập tin xuất thì nó phụ thuộc vào tùy chọn « --locale »\n" -"(miền địa phương) của thiết lập miền địa phương của người dùng.\n" -"Nếu tập tin xuất là -, kết quả được ghi vào thiết bị xuất chuẩn.\n" +"(miền địa phương) hoặc vào thiết lập miền địa phương của người dùng.\n" +"Nếu tập tin xuất là « - » thì kết quả được ghi vào đầu ra tiêu chuẩn.\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=NN_QQ lập miền địa phương đích (v.d. vi_VN)\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr "" -" --no-translator \tgiả sử tập tin PO được tạo ra tự động\n" -"\t(_không có người dịch_)\n" +" --no-translator \tgiả sử tập tin PO được tự động tạo ra\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2370,12 +2312,12 @@ "Tìm thấy nhiều tập tin dạng .pot.\n" "Hãy xác định tập tin .pot nhập vào, bằng tùy chọn « --input » (nhập vào)\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "gặp lỗi khi đọc thư mục hiện thời" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2383,14 +2325,14 @@ "Không tìm thấy tập tin dạng .pot trong thư mục hiện thời.\n" "Hãy xác định tập tin .pot nhập vào, bằng tùy chọn « --input » (nhập vào)\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "tiến trình phụ %s bị lỗi với mã thoát %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2405,28 +2347,28 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Bản dịch tiếng Việt cho gói %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "bộ ký tự hiện có « %s » không phải tên bộ ký tự di động" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "tập tin nhập vào chứa hai bộ ký tự khác nhau « %s » và « %s »" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "tập tin nhập vào « %s » không chứa mục nhập phần đầu xác định bộ ký tư" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " @@ -2435,19 +2377,19 @@ "miền « %s » trong tập tin nhập vào « %s » không chứa mục nhập phần đầu xác " "định bộ ký tư" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "bộ ký tự đích « %s » không phải tên bảng mã di động." -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "cảnh báo : " -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2456,7 +2398,7 @@ "Những tập tin nhập chứa thông điệp bằng mã ký tự khác nhau, gồm UTF-8,\n" "nên chuyển đổi kết xuất sang UTF-8.\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2464,12 +2406,12 @@ "Converting the output to UTF-8.\n" "To select a different output encoding, use the --to-code option.\n" msgstr "" -"Những tập tin nhập vào chứa thông điệp bằng mã ký tự khác nhau, gồm %s và %" -"s,\n" +"Những tập tin nhập vào chứa thông điệp bằng mã ký tự khác nhau, gồm %s và " +"%s,\n" "nên chuyển đổi kết xuất sang UTF-8.\n" "Để chọn mã ký tự xuất khác, hãy dùng tùy chọn « --to-code » (sang mã).\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2483,7 +2425,7 @@ "sang mã ký tự ASCII, hoặc đảm bảo chúng được mã hoá bằng UTF-8 từ đầu,\n" "tức là trong các tập tin mã nguồn.\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2496,12 +2438,12 @@ "Kết xuất của « %s » có thể không đúng.\n" "Chỉnh sửa có thể:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "• Đặt LC_ALL thành miền địa phương có mã ký tự %s.\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2512,7 +2454,7 @@ " rồi áp dụng « %s »,\n" " rồi chuyển đổi lại về %s bằng « msgconv ».\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2525,7 +2467,7 @@ " rồi áp dụng « %s »,\n" " rồi chuyển đổi lại về %s bằng « msgconv ».\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2536,24 +2478,24 @@ "Kết xuất của « %s » có thể không đúng.\n" "Chỉnh sửa có thể là lập « LC_ALL=C »\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "biểu thức số nhiều có thể cung cấp giá trị âm" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "« nplurals = %lu » nhưng biểu thức số nhiều có thể tạo giá trị đến %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "biểu thức số nhiều có thể gây ra trường hợp chia cho số không" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "biểu thức số nhiều có thể gây ra trường hợp tràn số nguyên" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" @@ -2561,54 +2503,54 @@ "biểu thức số nhiều có thể gây ra trường hợp ngoại lệ tính toán, có lẽ chia " "cho số không" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "Hãy thử dùng điều theo đây mà hợp lệ cho %s:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "phân loại thông điệp chứa bản dịch dạng số nhiều" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "" "nhưng mà mục nhập phần đầu tập tin còn thiếu thuộc tính số nhiều « " "plural=BIỂU_THỨC »" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "" "nhưng mà mục nhập phần đầu tập tin còn thiếu thuộc tính số nhiều « " "plural=SỐ_NGUYÊN »" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "giá trị nplurals (số cách ở số nhiều) không hợp lệ" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "biểu thức số nhiều không hợp lệ" # Literal: don't translate / Nghĩa chữ: đừng dịch -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "nhưng một số thông điệp có chỉ %lu hình thái ở số nhiều" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "nhưng một số thông điệp có %lu hình thái ở số nhiều" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2619,105 +2561,108 @@ "Dòng ở số nhiều đúng cho tiếng Việt:\n" "\"Plural-Forms: nplurals=1; plural=0;\"" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "" "cả hai mục nhập « msgid » và « msgid_plural » đều không bắt đầu với « \\n »" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" -msgstr "cả hai mục nhập « msgid» và « msgstr[%u] » đều không bắt đầu với « \\n »" +msgstr "" +"cả hai mục nhập « msgid » và « msgstr[%u] » đều không bắt đầu với « \\n »" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "cả hai mục nhập « msgid » và « msgstr » đều không bắt đầu với « \\n »" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "" "cả hai mục nhập « msgid » và « msgid_plural » đều không kết thúc với « \\n »" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "" "cả hai mục nhập « msgid » và « msgstr[%u] » đều không kết thúc với « \\n »" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "cả hai mục nhập « msgid » và « msgstr » đều không kết thúc với « \\n »" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "" -"khả năng thao tác cách ở số nhiều là phần mở rộng của phần mềm gettext của " -"GNU" +"khả năng thao tác cách ở số nhiều là một phần mở rộng của phần mềm gettext " +"của GNU" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" -msgstr "chuỗi gốc msgstr còn thiếu ký tự phím tắt « %c »" +msgstr "chuỗi dịch msgstr còn thiếu ký tự phím tắt « %c »" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" -msgstr "chuỗi gốc msgstr có quá nhiều ký tự phím tắt « %c »" +msgstr "chuỗi dịch msgstr có quá nhiều ký tự phím tắt « %c »" -#: src/msgl-check.c:695 +#: src/msgl-check.c:776 #, c-format -msgid "headerfield `%s' missing in header\n" -msgstr "trường đầu tập tin « %s » còn thiếu trong phần đầu\n" +msgid "header field `%s' missing in header\n" +msgstr "trường « %s » còn thiếu trong phần đầu\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" -msgstr "trường đầu tập tin « %s » nên bắt đầu tại đầu dòng\n" +msgstr "trường phần đầu « %s » nên bắt đầu tại đầu dòng\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" -msgstr "một số trường đầu tập tin vẫn còn chứa giá tri mặc định ban đầu\n" +msgstr "" +"một số trường phần đầu vẫn còn chứa giá tri mặc định ban đầu (sửa đi)\n" -#: src/msgl-check.c:730 +#: src/msgl-check.c:826 #, c-format -msgid "field `%s' still has initial default value\n" -msgstr "trường « %s » vẫn còn chứa giá tri mặc định ban đầu\n" +msgid "header field `%s' still has the initial default value\n" +msgstr "" +"trường phần đầu « %s » vẫn còn chứa giá tri mặc định ban đầu (sửa đi)\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" -msgstr "%s: kết nhập vào không phải hợp lệ trong mã ký tự « %s »" +msgstr "%s: đầu vào không đúng trong mã ký tự « %s »" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s: gặp lỗi khi chuyển đổi từ mã ký tự « %s » sang mã ký tự « %s »" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "tập tin nhập vào không chứa mục nhập phần đầu xác định bộ ký tự" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "" -"Không thể chuyển đổi từ « %s » sang « %s ». %s phụ thuộc vào iconv() mà không " -"hỗ trợ khả năng chuyển đổi này." +"Không thể chuyển đổi từ « %s » sang « %s ». %s phụ thuộc vào iconv() mà " +"không hỗ trợ khả năng chuyển đổi này." -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "" -"Việc chuyển đổi từ « %s » sang « %s » giới thiệu một số bản sao : một số chuỗi " -"gốc « msgid » thì trở thành trùng." +"Việc chuyển đổi từ « %s » sang « %s » giới thiệu một số bản sao : một số " +"chuỗi gốc « msgid » thì trở thành trùng." -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2726,16 +2671,16 @@ "Không thể chuyển đổi từ « %s » sang « %s ». %s phụ thuộc vào iconv() nhưng " "phiên bản này đã được xây dựng không có iconv()." -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s chỉ hợp lệ với %s" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "kiểu sao lưu" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2759,17 +2704,17 @@ "Khi không tìm thấy chuỗi dịch khớp chính xác, khả năng khớp mờ được dùng\n" "để cung cấp kết quả hữu ích hơn.\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " cũ.po chuỗi dịch tham chiếu đến nguồn cũ\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " mới.pot tham chiếu đến nguồn mới\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" @@ -2779,7 +2724,7 @@ "\ttập hợp chuỗi dịch thêm, cũng có thể được xác định nhiều lần\n" "\t(_bản trích yếu_)\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2788,29 +2733,29 @@ " -U, --update\tcập nhật tập tin cũ.po ; không làm gì\n" "\tnếu nó là hiện thời (_cập nhật_)\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "Vị trí của tập tin xuất trong chế độ cập nhật:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "Kết quả được ghi về tập tin cũ.po\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=ĐIỀU_KHIỂN sao lưu tập tin cũ.po (_sao lưu_)\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr "" " --suffix=HẬU_TỐ\n" "\tcó quyền cao hơn hậu tố sao lưu bình thường (_hậu tố_)\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2833,25 +2778,19 @@ " simple, never\tluôn luôn tạo bản sao lưu đơn giản\n" "\t(_đơn giản, không bao giờ_)\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " "SIMPLE_BACKUP_SUFFIX\n" "environment variable.\n" msgstr "" -"Hậu tố sao lưu là « ~ » trừ khi được lập bằng tùy chọn « --suffix » (hậu tố)\n" +"Hậu tố sao lưu là « ~ » trừ khi được lập bằng tùy chọn « --suffix » (hậu " +"tố)\n" "hoặc bằng biến môi trường « SIMPLE_BACKUP_SUFFIX » (hậu tố sao lưu đơn " "giản).\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr "" -" -N, --no-fuzzy-matching không dùng khả năng khớp mờ\n" -"\t(_không có khả năng khớp mờ_)\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, c-format msgid "" " --previous keep previous msgids of translated messages\n" @@ -2859,22 +2798,22 @@ " --previous\tgiữ lại các chuỗi gốc msgid cũ của chuỗi đã dịch " "(_trước_)\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent thu hồi cái chỉ tiến hành (_im_)\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "thông điệp này nên xác định cách ở số nhiều" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "thông điệp này không nên xác định cách ở số nhiều" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2882,28 +2821,30 @@ msgstr "" "%sĐọc %ld cũ + %ld tham chiếu, trộn %ld, làm mờ %ld, thiếu %ld, cũ %ld.\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " hoàn tất.\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s và tên tập tin dứt khoát loại từ lẫn nhau" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "Cách sử dụng: %s [TÙY_CHỌN] [TẬP_TIN]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "" "Chuyển đổi phân loại thông điệp nhị phân sang tập tin dạng .po kiểu " "Uniforum.\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2912,13 +2853,13 @@ " -j, --java\n" "\tchế độ Java: kết nhập vào là hạng ResourceBundle kiểu Java\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr "" " --csharp chế độ C#: kết nhập vào là tập tin .dll kiểu .NET\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2927,24 +2868,24 @@ " --csharp-resources\n" "\tchế độ tài sản C#: kết nhập vào là tập tin .resources kiểu .NET\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl chế độ Tcl: kết nhập vào là tập tin .msg kiểu tcl/msgcat\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " TẬP_TIN ... nhập vào những tập tin dạng .mo\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "vị trí của tập tin nhập vào trong chế độ Java:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2955,12 +2896,12 @@ "vào tên tài sản, định giới bằng dấu gạch dưới. Hạng được định vị\n" "bằng CLASSPATH (đường dẫn hạng).\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "Vị trí của tập tin nhập vào trong chế độ C#:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2970,12 +2911,12 @@ "Tập tin .dll nằm trong thư mục con của thư mục đã xác định\n" "có tên phụ thuộc vào miền địa phương.\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Vị trí của tập tin nhập vào trong chế độ Tcl:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" @@ -2984,18 +2925,18 @@ "Hai tùy chọn « -l » và « -d » bắt buộc phải sử dụng.\n" "Tập tin .msg nằm trong thư mục đã xác định.\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent ghi kết xuất kiểu thụt lề (_thụt lề_)\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr "" " --strict ghi kiểu Uniforum chính xác (_chặt chẽ_)\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -3017,12 +2958,12 @@ "chúng được lấy từ bản dịch thứ nhất. Vị trí tập tin sẽ được tích lũy.\n" "Dùng tùy chọn « --unique » (duy nhất) thì các bản sao bị hủy.\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated in ra chỉ bản sao (_được làm lại_)\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -3031,7 +2972,7 @@ " -u, --unique\n" "\tin ra chỉ thông điệp duy nhất, hủy các bản sao (_duy nhất_)\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -3119,65 +3060,65 @@ msgid "plural form has wrong index" msgstr "cách ở số nhiều có số mũ không đúng" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "quá nhiều lỗi nên hủy bỏ" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "dây đa byte không hợp lệ" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "dây đa byte chưa hoàn thành tại kết thúc tập tin" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "dây đa byte chưa hoàn thành tại kết thúc dòng" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "lỗi iconv" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "không biết từ khóa « %s »" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "dây điều khiển không hợp lệ" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "kết thúc tập tin bên trong chuỗi" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "kết thúc dòng bên trong chuỗi" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "gặp dấu định giới ngữ cảnh bên trong chuỗi" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "tập tin này có thể không chứa chỉ thị miền" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "lời xác định thông điệp trùng" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "đây là vị trí của lời xác định thứ nhất" @@ -3252,8 +3193,8 @@ "The input text is read from standard input. The converted text is output to\n" "standard output.\n" msgstr "" -"Văn bản nhập vào được đọc từ thiết bị nhập chuẩn. Văn bản đã chuyển đổi\n" -"là kết xuất vào thiết bị xuất chuẩn.\n" +"Văn bản nhập vào được đọc từ đầu vào tiêu chuẩn. Văn bản đã chuyển đổi\n" +"được xuất vào đầu ra tiêu chuẩn.\n" #: src/recode-sr-latin.c:338 #, c-format @@ -3265,17 +3206,17 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "gặp lỗi khi chuyển đổi từ mã ký tự « %s » sang mã ký tự « %s »" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "mong đợi hai đối số" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" -msgstr "Cách sử dụng: %s [TÙY_CHỌN] URL TẬP_TIN\n" +msgstr "Sử dụng: %s [TÙY_CHỌN] URL TẬP_TIN\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" @@ -3284,10 +3225,25 @@ "Lấy và xuất nội dung của địa chỉ Mạng (URL).\n" "URL không thể tới được thì TẬP_TIN được dùng thay thế.\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" -msgstr "gặp lỗi khi ghi vào thiết bị xuất chuẩn" +msgstr "gặp lỗi khi ghi vào đầu ra tiêu chuẩn" + +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "Đang lấy %s..." + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr " quá hạn.\n" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr " bị lỗi.\n" #: src/write-catalog.c:126 msgid "" @@ -3331,43 +3287,43 @@ "phân loại thông điệp chứa bản dịch cách ở số nhiều, mà định dạng xuất không " "hỗ trợ." -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" -msgstr "không thể tạo tập tin xuất « %s »" +msgstr "không thể tạo tập tin kết xuất « %s »" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" -msgstr "thiết bị xuất chuẩn" +msgstr "đầu ra tiêu chuẩn" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "lỗi tạo thư mục « %s »" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "lỗi biên dịch hạng C#, hãy thử tùy chọn « --verbose » (xuất chi tiết)" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, c-format msgid "compilation of C# class failed" msgstr "lỗi biên dịch hạng C#" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "không phải tên hạng Java hợp lệ: %s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "lỗi biên dịch hạng Java, hãy thử tùy chọn « --verbose » (xuất chi tiết) hoặc " "đặt biến $JAVAC" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "lỗi biên dịch hạng Java, hãy thử đặt biến $JAVAC" @@ -3377,13 +3333,13 @@ msgid "error while opening \"%s\" for writing" msgstr "gặp lỗi khi mở « %s » để ghi" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "thông điệp đã quốc tế hóa không nên chứa dây thoát « \\%c »" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3396,7 +3352,7 @@ "Đề nghị bạn nhập chuỗi ngữ cảnh msgctxt hoàn toàn ASCII thay thế.\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3420,8 +3376,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3446,7 +3402,7 @@ msgid "error while writing to %s subprocess" msgstr "gặp lỗi khi ghi vào tiến trình phụ %s" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3455,7 +3411,7 @@ "vào ngữ cảnh, còn định dạng .resources (tài nguyên)\n" "kiểu C# không hỗ trợ khả năng ngữ cảnh.\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3482,36 +3438,31 @@ "còn định dạng kiểu Tcl không hỗ trợ khả năng thao tác\n" "cách ở số nhiều.\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: cảnh báo : chuỗi chưa được kết thúc" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: cảnh báo : biểu thức chính quy chưa được kết thúc" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: cảnh báo : hằng ký tự chưa được kết thúc" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: cảnh báo : bộ nghĩa chữ kiểu chuỗi chưa được kết thúc" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" -msgstr "" -"Gặp chuỗi khác ASCII tại %s%s.\n" -"Hãy xác định mã ký tự nguồn bằng tùy chọn « --from-code » (từ mã).\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +msgid "Please specify the source encoding through --from-code." +msgstr "Hãy xác định mã ký tự nguồn bằng tùy chọn « --from-code » (từ mã)." -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3520,7 +3471,7 @@ "%s:%d: dây đa byte không hợp lệ.\n" "Hãy xác định mã ký tự nguồn đúng bằng « --from-code » (từ mã).\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3529,7 +3480,7 @@ "%s:%d: dây đa byte dài chưa hoàn thành.\n" "Hãy xác định mã ký tự nguồn đúng bằng « --from-code » (từ mã).\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3538,7 +3489,7 @@ "%s:%d: dây đa byte chưa hoàn thành ở kết thúc tập tin.\n" "Hãy xác định mã ký tự nguồn đúng bằng « --from-code » (từ mã).\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3547,12 +3498,12 @@ "%s:%d: dây đa byte chưa hoàn thành ở kết thúc dòng.\n" "Hãy xác định mã ký tự nguồn đúng bằng « --from-code » (từ mã).\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: lỗi iconv" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3561,24 +3512,24 @@ "%s:%d: dây đa byte không hợp lệ.\n" "Hãy xác định mã ký tự nguồn dùng « --from-code » (từ mã).\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: cảnh báo : ký tự Unicode không hợp lệ" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: cảnh báo : hằng chuỗi chưa được kết thúc" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "" "%s:%d: cảnh báo : gặp dấu ngoặc đóng « ) » ở nơi mong đợi dấu ngoặc móc đóng " "« } »" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "" @@ -3586,12 +3537,12 @@ "« ) »" # Variable: do not translate/ biến: đừng dịch -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3600,12 +3551,12 @@ "Ngôn ngữ « glade » không được hỗ trợ. %s phụ thuộc vào expat.\n" "Phiên bản này đã được xây dựng không có expat.\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: cảnh báo : chỉ một đồ thay thế U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "" @@ -3613,49 +3564,46 @@ "thúc tập tin" # HEXNUMBER is a variable: do not translate/ HEXNUMBER là một biến: đừng dịch -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: thiếu dấu ngoặc móc đóng trên \\x{HEXNUMBER}" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: phép nội suy không hợp lệ (\"\\l\") của ký tự 8-bit « %c »" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: phép nội suy không hợp lệ (\"\\u\") của ký tự 8-bit « %c »" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d: phép nội suy biến không hợp lệ ở « %c »" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: phép nội suy không hợp lệ (\"\\L\") của ký tự 8-bit « %c »" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: phép nội suy không hợp lệ (\"\\U\") của ký tự 8-bit « %c »" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" -"Gặp chuỗi khác ASCII ở %s%s.\n" "Hãy xác định mã ký tự nguồn bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được ghi rõ trong tài liệu :\n" +"hoặc bằng ghi chú như được ghi rõ trong tài liệu :\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3664,10 +3612,10 @@ msgstr "" "%s:%d: dây đa byte không hợp lệ.\n" "Hãy xác định mã ký tự nguồn đúng bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được ghi rõ trong tài liệu :\n" +"hoặc bằng ghi chú như được ghi rõ trong tài liệu :\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3676,10 +3624,10 @@ msgstr "" "%s:%d: dây đa byte dài chưa hoàn thành.\n" "Hãy xác định mã ký tự nguồn đúng bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được ghi rõ trong tài liệu :\n" +"hoặc bằng ghi chú như được ghi rõ trong tài liệu :\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3688,10 +3636,10 @@ msgstr "" "%s:%d: dây đa byte chưa hoàn thành ở kết thúc tập tin.\n" "Hãy xác định mã ký tự nguồn đúng bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được ghi rõ trong tài liệu :\n" +"hoặc bằng ghi chú như được ghi rõ trong tài liệu :\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3700,10 +3648,10 @@ msgstr "" "%s:%d: dây đa byte chưa hoàn thành ở kết thúc của dòng.\n" "Hãy xác định mã ký tự nguồn đúng bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được ghi rõ trong tài liệu :\n" +"hoặc bằng ghi chú như được ghi rõ trong tài liệu :\n" "http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3712,30 +3660,30 @@ msgstr "" "%s:%d: dây đa byte không hợp lệ.\n" "Hãy xác định mã ký tự nguồn bằng tùy chọn « --from-code » (mã từ),\n" -"hoặc bằng chú thích như được xác định trong tài liệu\n" -".\n" +"hoặc bằng ghi chú như được xác định trong tài liệu\n" +"http://www.python.org/peps/pep-0263.html.\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." -msgstr "Không biết mã ký tự « %s » nên tiếp tục với ASCII thay thế." +msgstr "Không nhận ra mã ký tự « %s » nên tiếp tục với ASCII để thay thế." -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" -msgstr "%s:%d: lời xác định chuỗi không hợp lệ" +msgstr "%s:%d: sai xác định chuỗi" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: thiếu con số nằm sau dấu #" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: biểu thức chuỗi không hợp lệ" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3744,29 +3692,29 @@ "%s:%lu: cảnh báo : cú pháp $\"...\" bị phản đối vì lý do bảo mật; hãy dùng " "eval_gettext thay thế." -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "" "không cho phép dùng tùy chọn « --join-existing » (nối lại tồn tại) khi kết " -"xuất được ghi vào thiết bị xuất chuẩn" +"xuất được ghi vào đầu ra tiêu chuẩn" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "phần mềm xgettext không thể hoạt động khi không có từ khóa cần tìm" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "cảnh báo : không biết tập tin « %s » có phần mở rộng « %s » nên thử C" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "Trích các chuỗi có thể dịch ra những tập tin nhập vào đã cho.\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3774,27 +3722,25 @@ msgstr "" " -d, --default-domain=TÊN\n" "\tdùng tập tin TÊN này như là kết xuất (thay cho messages.po)\n" -"\t(_miền mặc định_)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" -msgstr " -o, --output=TẬP_TIN ghi kết xuất vào tập tin này (_xuất_)\n" +msgstr " -o, --output=TẬP_TIN ghi kết xuất vào tập tin này\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr "" -" -p, --output-dir=THƯ_MỤC\n" -"\tcác tập tin xuất sẽ được để vào thư mục này (_thư mục xuất_)\n" +" -p, --output-dir=THƯ_MỤC các tập tin xuất sẽ được để vào thư mục này\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "Chọn ngôn ngữ của tập tin nhập vào:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3813,12 +3759,12 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ tốc ký cho tùy chọn « --language=C++ »\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " @@ -3827,55 +3773,58 @@ "Mặc định là ngôn ngữ được đoán phụ thuộc vào phần mở rộng của tên tập tin " "nhập vào.\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" " (except for Python, Tcl, Glade)\n" msgstr "" -" --from-code=MÃ mã ký tự của tập tin nhập vào (_từ mã_)\n" +" --from-code=MÃ mã ký tự của tập tin nhập vào\n" " (trừ Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "Mặc định là giả sử tập tin nhập vào có bộ ký tự ASCII.\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr "" " -j, --join-existing nối lại các thông điệp với tập tin đã có\n" -"\t(_nối lại tồn tại_)\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr "" -" -x, --exclude-file=TẬP_TIN.po\n" -"\tmục nhập từ tập tin này sẽ không được trích ra (_loại trừ tập tin_)\n" +" -x, --exclude-file=TẬP_TIN.po mục nhập từ tập tin này sẽ không được " +"trích ra\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -" -c, --add-comments[=THẺ]\n" -"\tchèn khối chú thích với thẻ này (hay những điều nằm trước\n" -"\tdòng từ khoá) vào tập tin xuất (_thêm chú thích_)\n" +" -cTHẺ, --add-comments=THẺ để vào tập tin kết xuất các khối ghi chú\n" +"\t\tbắt đầu với thẻ này và nằm trước dòng từ khoá\n" +" -c, --add-comments để vào tập tin kết xuất các khối ghi chú nằm trước " +"dòng từ khoá\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "Tùy chọn đặc trưng cho ngôn ngữ :\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" -msgstr " -a, --extract-all trích ra mọi chuỗi (_trích ra tất cả_)\n" +msgstr " -a, --extract-all trích ra mọi chuỗi\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3888,16 +3837,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 +#: src/xgettext.c:893 #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" -" -k, --keyword[=TỪ]\n" -"\ttừ khoá thêm cần tìm (không có TỪ thì không dùng từ khoá mặc định)\n" +" -kTỪ, --keyword=TỪ quét tìm từ này như là một từ khoá bổ sung\n" +" -k, --keyword đừng dùng từ khoá mặc định\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3905,9 +3854,9 @@ " number ARG of keyword WORD\n" msgstr "" " --flag=TỪ:ĐỐI_SỐ:CỜ\tcờ thêm cho chuỗi nằm bên trong đối số\n" -"\tcó số ĐỐI SỐ của từ khoá TỪ (_cờ_)\n" +"\tcó số ĐỐI SỐ của từ khoá TỪ\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3920,60 +3869,58 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr "" " -T, --trigraphs hiểu chữ ba C kiểu ANSI để nhập vào (_chữ ba_)\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" -msgstr " (chỉ ngôn ngữ C, C++, ObjectiveC)\n" +msgstr "" +" (chỉ những ngôn ngữ C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt nhận diện chuỗi định dạng Qt\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (chỉ ngôn ngữ C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --kde nhận ra chuỗi định dạng KDE4\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost nhận diện chuỗi định dạng Boost\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" -msgstr "" -" --debug\n" -"\tkết quả nhận diện định dạng chuỗi chi tiết hơn (_gỡ lỗi _)\n" +msgstr " --debug kết quả chi tiết hơn về nhận diện định dạng chuỗi\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr "" -" --properties-output\n" -"\tghi ra tập tin .properties (tài sản) kiểu Java (_xuất_)\n" +" --properties-output ghi ra tập tin .properties (thuộc tính) kiểu " +"Java\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr "" -" --copyright-holder=CHUỖI\n" -"\tđặt người giữ bản quyền trong kết xuất\n" +" --copyright-holder=CHUỖI lập người giữ tác quyền trong kết xuất\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3981,79 +3928,96 @@ " --foreign-user\t\tbỏ sót bản quyền Tổ Chức Phần Mềm Tự Do\n" "\ttrong kết xuất cho người dùng nước ngoại\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr " --package-name=GÓI \tđặt tên gói trong kết xuất\n" +msgstr " --package-name=GÓI \tlập tên gói trong kết xuất\n" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, c-format msgid " --package-version=VERSION set package version in output\n" msgstr "" -" --package-version=PHIÊN_BẢN đặt phiên bản của gói trong kết xuất\n" +" --package-version=PHIÊN_BẢN lập phiên bản của gói trong kết xuất\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=ĐỊA_CHỈ_THƯ\n" -"\tđặt địa chỉ thông báo lỗi trong chuỗi gốc msgid\n" +"\tlập địa chỉ thông báo lỗi trong chuỗi gốc msgid\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -" -m, --msgstr-prefix[=CHUỖI]\n" -"\tdùng chuỗi này hay « » là tiền tố cho mục nhập chuỗi dịch msgstr\n" +" -m[CHUỖI], --msgstr-prefix[=CHUỖI] dùng chuỗi này hay \"\" làm tiền tố " +"cho giá trị msgstr\n" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -" -M, --msgstr-suffix[=CHUỖI]\n" -"\tdùng chuỗi này hay « » là hậu tố cho mục nhập chuỗi dịch msgstr\n" +" -M[CHUỖI], --msgstr-suffix[=CHUỖI] dùng chuỗi này hay \"\" làm hậu tố " +"cho giá trị msgstr\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" "Đối số « --flag » (cờ) không có cú pháp ::[qua-]: %s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" -msgstr "thiết bị nhập chuẩn" +msgstr "đầu vào tiêu chuẩn" + +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "Gặp một ký tự khác ASCII tại %s%s." + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "Gặp một ghi chú khác ASCII nằm tại hay trước %s%s." -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "Gặp một chuỗi khác ASCII tại %s%s." + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: cảnh báo : " -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -"Dù nó được dùng tại vị trí của chuỗi định dạng, %s không phải chuỗi định " -"dạng %s hợp lệ. Lý do : %s\n" +"Dù nó được dùng tại một vị trí của chuỗi định dạng, %s không phải là một " +"chuỗi định dạng %s đúng. Lý do : %s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" -"Dù nó được tuyên bố như vậy, %s không phải chuỗi định dạng %s hợp lệ. Lý " -"do : %s\n" +"Dù nó được tuyên bố như vậy, %s không phải là một chuỗi định dạng %s đúng. " +"Lý do : %s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -4067,38 +4031,38 @@ "Đề nghị bạn dùng chuỗi định dạng có đối số có tên,\n" "và sự ánh xạ thay cho đồ nhiều thành phần cho những đối số.\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" "meta information, not the empty string.\n" msgstr "" -"Chuỗi gốc msgid rỗng.\n" +"Chuỗi gốc msgid trống.\n" "Nó được dành riêng bởi phần mềm gettext của GNU:\n" "gettext(\"\") trả lại mục nhập phần đầu có siêu thông tin,\n" "không phải chuỗi rỗng.\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "đặc tả đối số mơ hồ cho từ khoá « %.*s »" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "cảnh báo : thiếu ngữ cảnh cho từ khoá « %.*s »" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "cảnh báo : thiếu ngữ cảnh cho đối số ở số nhiều của từ khoá « %.*s »" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "ngữ cảnh xung đột giữa cách ở số ít và số nhiều" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -4110,42 +4074,11 @@ "hãy xác định biến MSGID_BUGS_ADDRESS trong đó;\n" "không thì xác định tùy chọn dòng lệnh « --msgid-bugs-address ».\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" -msgstr "không biết ngôn ngữ « %s »" +msgstr "không nhận ra ngôn ngữ « %s »" #: libgettextpo/gettext-po.c:84 msgid "" msgstr "" - -#~ msgid "Multiple references to %%%c." -#~ msgstr "Nhiều tham chiếu đến « %%%c »." - -#~ msgid "" -#~ "Copyright (C) %s Free Software Foundation, Inc.\n" -#~ "This is free software; see the source for copying conditions. There is " -#~ "NO\n" -#~ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR " -#~ "PURPOSE.\n" -#~ msgstr "" -#~ "Tác quyền © %s của Tổ chức Phần mềm Tự do.\n" -#~ "Đây là phần mềm tự do ; xem mã nguồn để tìm điều kiện sao chép.\n" -#~ "KHÔNG CÓ BẢO HÀNH GÌ CẢ, THẬM CHÍ KHÔNG CÓ BẢO ĐẢM ĐƯỢC NGỤ Ý\n" -#~ "KHẢ NĂNG BÁN HAY KHẢ NĂNG LÀM ĐƯỢC VIỆC DỨT KHOÁT.\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the C# .dll format doesn't support contexts\n" -#~ msgstr "" -#~ "phân loại thông điệp chứa bản dịch phụ thuộc\n" -#~ "vào ngữ cảnh, còn định dạng .dll kiểu C# không\n" -#~ "hỗ trợ khả năng ngữ cảnh.\n" - -#~ msgid "" -#~ "message catalog has context dependent translations\n" -#~ "but the Java ResourceBundle format doesn't support contexts\n" -#~ msgstr "" -#~ "phân loại thông điệp chứa bản dịch phụ thuộc vào ngữ cảnh,\n" -#~ "còn định dạng ResourceBundle kiểu Java không hỗ trợ\n" -#~ "khả năng ngữ cảnh.\n" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/zh_CN.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/zh_CN.gmo differ diff -Nru gettext-0.17/gettext-tools/po/zh_CN.po gettext-0.18.1.1/gettext-tools/po/zh_CN.po --- gettext-0.17/gettext-tools/po/zh_CN.po 2007-11-02 02:24:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/zh_CN.po 2010-06-06 12:49:58.000000000 +0000 @@ -1,16 +1,18 @@ # gettext-tools 软件包的简体中文翻译 # Copyright (C) 2003 Free Software Foundation, Inc. -# This file is distributed under the same license as the gettext-tools package. +# This file is distributed under the same license as the gettext package. # Funda Wang , 2004. -# +# Ji ZhengYu , 2009. msgid "" msgstr "" -"Project-Id-Version: gettext-tools 0.15-pre5\n" +"Project-Id-Version: gettext-tools 0.17\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" -"PO-Revision-Date: 2006-08-22 23:09+0800\n" -"Last-Translator: Funda Wang \n" -"Language-Team: Chinese (simplified) \n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" +"PO-Revision-Date: 2009-03-20 20:06中国标准时间\n" +"Last-Translator: Ji ZhengYu \n" +"Language-Team: Chinese (simplified) \n" +"Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -31,68 +33,68 @@ msgid "Valid arguments are:" msgstr "有效的参数为:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" -msgstr "" +msgstr "无法找到临时目录,请尝试设置 $TMPDIR 变量" -#: gnulib-lib/clean-temp.c:347 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:349 +#, c-format msgid "cannot create a temporary directory using template \"%s\"" -msgstr "无法创建输出文件“%s”" +msgstr "无法用“%s”模板创建临时目录" -#: gnulib-lib/clean-temp.c:443 -#, fuzzy, c-format +#: gnulib-lib/clean-temp.c:445 +#, c-format msgid "cannot remove temporary file %s" -msgstr "无法创建输出文件“%s”" +msgstr "无法删除临时文件 %s" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, c-format msgid "cannot remove temporary directory %s" -msgstr "" +msgstr "无法删除临时目录 %s" #: gnulib-lib/closeout.c:66 msgid "write error" msgstr "写错误" -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "打开“%s”读取时出错" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "无法打开备份文件“%s”写入" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "读取“%s”出错" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "写入“%s”出错" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "读取“%s”后出错" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() 失败" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "未找到 C# 编译器,试着安装 pnet" @@ -102,74 +104,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "未找到 C# 虚拟机,试着安装 pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "未知的系统错误" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s 子进程失败" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s:选项“%s”含糊\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s:选项“--%s”不允许有参数\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s:选项“%c%s”不允许有参数\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s:选项“%s”需要参数\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s:无法识别的选项“--%s”\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s:无法识别的选项“%c%s”\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s:非法选项 -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s:无效选项 -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s:选项需要参数 -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s:选项“-W %s”含糊\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s:选项“-W %s”不允许参数\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s:选项“%s”需要参数\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -181,20 +182,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "compile_java_class 中有无效的 target_version 参数" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "创建“%s”失败" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "写入“%s”出错" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "未找到 Java 编译器,试着安装 gcj 或设置 $JAVAC" @@ -204,20 +205,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "未找到 Java 虚拟机,试着安装 gij 或设置 $JAVA" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s 子进程 I/O 错误" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "内存耗尽" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -236,70 +237,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "“" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "”" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle 失败,错误码为 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle 失败" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "无法创建输出文件“%s”" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s 子进程" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s 子进程收到致命信号 %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "不像“msgid”,“%s”不是有效的 %s 格式字符串。原因:%s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "“%2$s”中的参数 %1$u 的格式指定符在“msgid”中不存在" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "参数 %u 的格式指定符在“%s”中不存在" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "参数 %2$u 的“msgid”和“%1$s”中的格式指定符并不相同" #: src/format-boost.c:449 @@ -326,9 +326,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "字符串引用了第 %u 个参数但是却忽略了第 %u 个参数。" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "“msgid”和“%s”中的格式指定符数量不匹配" #: src/format-csharp.c:88 src/format-java.c:205 @@ -368,48 +368,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "第 %u 条指令之后的字符串包含独立的“}”。" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "第 %u 条指令中,标志组合无效。" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "第 %u 条指令中,“%c”前不允许有精度。" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "第 %u 条指令中,精度的参数个数必须是 %u 个。" -#: src/format-gcc-internal.c:396 -#, fuzzy, c-format +#: src/format-gcc-internal.c:398 +#, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." -msgstr "第 %u 条指令中,“%c”前不允许有精度。" +msgstr "第 %u 条指令中,‘%c’前不允许指定精度。" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "第 %u 条指令中,精度指定无效。" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "第 %u 条指令中,“%c”前不允许有标志。" -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "“msgid”使用了 %%m,但“%s”没有使用" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "“msgid”没有使用 %%m,但“%s”使用了 %%m" #: src/format-invalid.h:22 @@ -499,21 +499,20 @@ msgstr "第 %u 条指令中,选择包含的数字后面没有“<”、“#”或“%s”。" #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "“%2$s”参数 {%1$u} 的格式指定符未在“msgid”中找到" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "参数 {%u} 中未在“%s”中找到" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "参数 {%2$u} 在“msgid”和“%1$s”中的格式指定不相同" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -527,11 +526,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "第 %u 条指令中,给出的参数太多;最多只需要 %u 个参数。" #: src/format-lisp.c:2496 src/format-scheme.c:2499 @@ -577,13 +576,13 @@ msgstr "字符串引用某些参数的方式不兼容。" #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "“msgid”和“%s”中的格式指定符不同" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "“%s”中的格式指定符不是“msgid”格式指定符的子集" #: src/format-perl.c:433 @@ -593,55 +592,54 @@ "conversion specifier '%c'." msgstr "第 %u 条指令中,大小指定符与转换指定符“%c”不兼容。" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "参数“%s”的格式指定符未在“%s”中找到" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "字符串同时使用两种方式引用了参数:通过参数名称和未命名参数指定符。" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "字符串对名为“%s”的参数引用方式不兼容。" -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "“msgid”中的格式指定符需要映射,而“%s”中的格式指定符需要元组" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "“msgid”中的格式指定符需要元组,而“%s”中的格式指定符需要映射" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "“%2$s”中对参数“%1$s”的格式指定符未在“msgid”中找到" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "“msgid”和“%s”中对参数“%s”的指定符不同" #: src/format-qt.c:152 -#, c-format +#, fuzzy, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" +"'msgid' 仅仅是个格式字符串,但‘%s’不是:它包含一个‘L’标记或是一个两位数的参数" +"值" #: src/format-sh.c:79 msgid "The string refers to a shell variable with a non-ASCII name." @@ -678,11 +676,11 @@ "1 and 9." msgstr "终止第 %u 条指令的字符不是介于 1 和 9 之间的数字。" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -690,39 +688,43 @@ "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" +"Copyright (C) %s Free Software Foundation, Inc.\n" +"License GPLv3+: GNU GPL version 3 or later \n" +"This is free software: you are free to change and redistribute it.\n" +"There is NO WARRANTY, to the extent permitted by law.\n" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "由 %s 编写。\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "Bruno Haible" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "参数太多" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "试试“%s --help”查看帮助信息。\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "用法:%s [选项]\n" @@ -755,29 +757,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address 主机名地址\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "信息性输出:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help 显示此帮助并退出\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version 输出版本信息并退出\n" @@ -786,11 +788,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "将错误报告至 。\n" @@ -799,206 +801,206 @@ msgid "could not get host name" msgstr "无法获得主机名" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "允许最多一个输入文件" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s 和 %s 互相排斥" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "用法:%s [选项] [输入文件]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "根据消息的属性过滤一个翻译库里的消息,并处理消息的属性。\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "长选项必须用的参数在使用短选项时也是必须的。\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "输入文件的位置:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " 输入文件 做为输入的 PO 文件\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr " -D, --directory=目录 在<目录>中查找输入文件\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "如果没有指定输入文件或输入文件是 -,则读取标准输入。\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "输出文件位置:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=文件 将输出写入指定文件\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "如果没有指定输出文件或输出文件是 -,则将结果写入至标准输出。\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "消息选择:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr " --translated 保留已翻译的,去掉未翻译的消息\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr " --untranslated 保留未翻译的,去掉已翻译的消息\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy 删除标为模糊的消息\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy 保留标为模糊的消息\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete 移除过时 #~ 的消息\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete 保留过时 #~ 的消息\n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "属性操纵:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy 全部消息设为“模糊”\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy 全部消息清除“模糊”属性\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete 全部消息设为过时\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete 全部消息清除过时属性\n" -#: src/msgattrib.c:449 -#, fuzzy, c-format +#: src/msgattrib.c:461 +#, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" -msgstr " --clear-fuzzy 全部消息清除“模糊”属性\n" +msgstr " --clear-previous 从所有条目中删除“previous msgid”\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr " --only-file=文件.po 只处理列在 文件.po 中的项\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr " --ignore-file=文件.po 只处理未列在 文件.po 中的项\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy 等于 --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr " --obsolete 等于 --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "输入文件的语法:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr " -P, --properties-input 输入文件以 Java .properties 语法给出\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1006,120 +1008,142 @@ msgstr "" " --stringtable-input 输入文件以 NeXTstep/GNUstep .strings 语法给出\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "输出细节:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" +" --color 总是使用颜色及其它文本属性\n" +" --color=WHEN 如果符合 WHEN,就使用颜色及其它文本属性。\n" +" WHEN 可以" +"是‘always’,‘never’,‘auto’或‘html’。\n" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr " --style=STYLEFILE 为 --color 参数指定 CSS 样式文件\n" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr " -e, --no-escape 不在输出中使用 C 转码序列(默认)\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" msgstr " -E, --escape 在输出中使用 C 转码序列,没有扩展字符\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po 就算为空也写入 PO 文件\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent 使用缩进风格写入 .po 文件\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location 不写入“#: 文件名:行号”位置行\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr " -n, --add-location 生成“#: 文件名:行号”位置行(默认)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict 写入极为严格的 Uniforum 使 .po 文件保持一致\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output 写出 Java .properties 文件\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr " --stringtable-output 写出 NeXTstep/GNUstep .strings 文件\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=数字 设置输出页面宽度\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" " the output page width, into several lines\n" msgstr " --no-wrap 不将超过输出页宽度的长消息行断为多行\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output 输出前排序\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file 按文件位置排序输出\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "不可能出现的选择条件 (%d < n < %d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "用法:%s [选项] [输入文件]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1140,23 +1164,23 @@ "选项,那样则会由第一个包含该翻译条目的文件获取数据。所有 PO 文件中的翻译条目\n" "的文件位置都会累积下来。\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " 输入文件 ... 输入文件\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=文件 由<文件>读入输入文件的列表\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "如果输入文件为 -,则将读取标准输入。\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1165,7 +1189,7 @@ " -<, --less-than=数字 只打印出现次数少于指定次数的消息,若没有\n" " 指定次数则默认值为无穷大\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1174,7 +1198,7 @@ " ->, --more-than=数字 只打印出现次数多于指定次数的消息,若没有\n" " 指定次数则默认值为 0\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1183,15 +1207,15 @@ " -u, --unique --less-than=2 的缩写,要求只列出出现一次\n" " 的消息\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr " -P, --properties-input 输入文件以 Java .properties 语法给出\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1199,12 +1223,12 @@ msgstr "" " --stringtable-input 输入文件以 NeXTstep/GNUstep .strings 语法给出\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=名称 输出的编码\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1213,41 +1237,33 @@ " --use-first 对每条消息均使用第一个可用的翻译,不合并若干\n" " 种翻译\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "Peter Miller" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "没有给出输入文件" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "需要两个输入文件" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "用法:%s [选项] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1263,80 +1279,85 @@ "此程序可用来检查程序中的所有的消息是否都已经翻译好了。比较时如果\n" "有不完全匹配的字符串出现,程序会以模糊配对的方式得出较好的结果。\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po 翻译\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot 对源文件的引用\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "操作修饰:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." "po\n" msgstr " -m, --multi-domain 将 ref.pot 应用到 def.po 的每个域上\n" -#: src/msgcmp.c:232 -#, fuzzy, c-format +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching 不使用模糊匹配\n" + +#: src/msgcmp.c:245 +#, c-format msgid " --use-fuzzy consider fuzzy entries\n" -msgstr " -f, --use-fuzzy 在输出中使用模糊的翻译条目\n" +msgstr " --use-fuzzy 使用标记为 fuzzy 的条目\n" -#: src/msgcmp.c:234 -#, fuzzy, c-format +#: src/msgcmp.c:247 +#, c-format msgid " --use-untranslated consider untranslated entries\n" -msgstr " --untranslated 保留未翻译的,去掉已翻译的消息\n" +msgstr " --use-untranslated 使用未翻译的条目\n" -#: src/msgcmp.c:309 -#, fuzzy, c-format +#: src/msgcmp.c:324 +#, c-format msgid "this message is untranslated" -msgstr "警告:此消息未使用" +msgstr "此条目未翻译" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" -msgstr "" +msgstr "此条目需要由翻译者复审" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "此消息使用了但却未定义..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...但此定义十分类似" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "此消息已使用,但未定义于 %s 中" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "警告:此消息未使用" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "发现 %d 处致命错误" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "需要至少指定两个文件" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1354,7 +1375,7 @@ "息)。翻译内容、自行加上的注释和源程序注释的批注都会保留,但只会保留最先定义\n" "这些信息的 PO 文件中的内容。所有 PO 文件中的翻译条目的文件位置都会累积下来。\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1363,67 +1384,67 @@ " ->, --more-than=数字 只打印出现次数多于指定次数的消息,若没有\n" " 指定次数则默认值为 1\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr " --omit-header 不写入带有“msgid \"\"”项的文件头项\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "将一个翻译库的编码转换为另一种文字编码。\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "转换目标:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "默认编码为当前区域设置的编码。\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent 缩进的输出风格\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location 排除“#: filename:line”行\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr " --add-location 保留“#: filename:line”行(默认)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict 严格的 Uniforum 输出风格\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "没有给出输入文件" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "需要一个输入文件" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "用法:%s [选项] 输入文件\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1435,22 +1456,22 @@ "(通常由 xgettext 创建)。未翻译的条目会填上和 msgid 一样的字符串,\n" "并标记为模糊。\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " 输入文件 输入 PO 或 POT 文件\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "丢失命令名" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "用法:%s [选项] 命令 [命令选项]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1465,7 +1486,7 @@ "即是 msgexec 的输出结果。msgexec 的返回值是所有\n" "命令调用产生的返回值的最大值。\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1474,42 +1495,42 @@ "有一个称为“0”的特殊内置命令,它会输出翻译条目,并随后加上一个 null\n" "字节。“msgexec 0”的输出适用于作为“xargs -0”的输入。\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=输入文件 输入的 PO 文件\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "写入 stdout 失败" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "写入 %s 子进程失败" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "缺少过滤器名称" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "必须指定至少一个 sed 脚本" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "用法:%s [选项] 过滤器 [过滤器选项]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "对于翻译库中的所有翻译条目进行过滤。\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1518,18 +1539,18 @@ "<过滤器>可以是任何由标准输入读入翻译条目\n" "并将修改后的翻译写进标准输出的程序。\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "当过滤器是“sed”时可用的过滤选项:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr " -e, --expression=脚本 将<脚本>添加到欲执行的命令中\n" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1537,119 +1558,101 @@ " to be executed\n" msgstr " -f, --file=脚本文件 将<脚本文件>的内容添加到欲执行的命令中\n" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr " -n, --quiet, --silent 禁用对模式空白的自动打印\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" msgstr " --no-escape 在输出中不使用 C 转义字符(默认)\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent 缩进的输出风格\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr " --keep-header 保持文件头项不变,不过滤它\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "尚未实现。" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "无法为 %s 子进程创建非专用的 I/O" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "和 %s 子进程通讯时出现错误" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "由 %s 子进程读入数据时出现错误" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s 子进程已终止,错误码为 %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "%s 的参数应该是一个标点符号" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "无效的 endianness:%s" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "Ulrich Drepper" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s 需要指定“-d 目录”选项" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s 需要指定“-l locale”选项" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s 只能配合 %s 或 %s 一起使用才有效" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s 只能配合 %s、%s 或 %s 一起使用才有效" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "%d 条已翻译消息" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ",%d 条模糊消息" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ",%d 条未翻译消息" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "用法:%s [选项] 文件名.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "由文字模式描述生成二进制消息文件。\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" @@ -1658,24 +1661,24 @@ "长选项必须用的参数在使用短选项时也是必须的。\n" "可选参数也是如此。\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " 文件名.po ... 输入文件\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "操作模式:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " "class\n" msgstr " -j, --java Java 模式:生成 Java 资源包类\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1684,51 +1687,51 @@ " --java2 类似 --java,但假设是 Java2 (JDK 1.2 或较新\n" " 的版本)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# 模式:生成 .NET .dll 文件\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " "file\n" msgstr " --csharp-resources C# 资源模式:生成 .NET .resources 文件\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr " --tcl Tcl 模式:生成 tcl/msgcat .msg 文件\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt 模式:生成 Qt .qm 文件\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict 使用严格的 Uniforum 模式\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "如果输出文件是 -,则会将结果写入至标准输出。\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "以 Java 模式输出文件位置:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=资源 资源名称\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1736,13 +1739,13 @@ msgstr "" " -l, --locale=语系 语系名称,必须是“语言”或“语言_国家”的格式\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d 目录 类目录层次的基本目录\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1753,19 +1756,19 @@ "类名称是由资源名称连同语系名称共同决定的,两者之间会用下划线分隔。\n" "-d 选项是必须的。class 文件会存放在指定的目录。\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "以 C# 模式输出文件位置:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr " -d 目录 依赖语系的 .dll 文件的的基本目录\n" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" @@ -1774,29 +1777,29 @@ "-l 和 -d 选项是必要的。.dll 文件会写入指定目录的子目录,而子目录的名称取决于" "语系。\n" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "以 Tcl 模式输出文件位置:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr " --d 目录 .msg 消息库的基本目录\n" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "-l 和 -d 选项是必要的。所生成的 .msg 文件会存放在指定的目录。\n" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "输入文件的解释:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1806,19 +1809,19 @@ " -c, --check 同时进行 --check-format、--check-header 和\n" " --check-domain 三种检查\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr " --check-format 检查和语言有关的格式字符串\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr " --check-header 检查文件头项是否存在及检查其内容\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1827,7 +1830,7 @@ " --check-domain 检查 domain 指令和 --output-file 选项之间\n" " 是否冲突\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1835,7 +1838,7 @@ msgstr "" " -C, --check-compatibility 让 GNU msgfmt 以 X/Open msgfmt 的方式检查文件\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1844,110 +1847,110 @@ msgstr "" " --check-accelerators[=CHAR] 检查菜单项目中的快捷键标记是否存在\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy 在输出中使用模糊的翻译条目\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=数字 以<数字>个字节为单位对齐字符串(默认:%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr " --no-hash 二进制文件将不包含哈希表\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics 打印关于翻译的统计\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose 增加输出的详细程度\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "警告:PO 文件头丢失或无效\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "警告:字符集转换无法工作\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "警告:PO 文件头模糊\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "警告:旧版本的 msgfmt 将在此时给出错误\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "域名“%s”无法用于文件名" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "域名“%s”无法用于文件名:将使用前缀" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "域名“%s”不适合作为文件名" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "忽略了空的“msgstr”项" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "忽略了模糊的“msgstr”项" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s:警告:源文件包含模糊的翻译条目" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "读取“%s”出错" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "未指定“J”、“K”、“T”、“C”或“X”前不能使用选项“%c”" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "提取翻译库中的消息,这些消息符合某个给出的模式或属于某个给出的源文件。\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, c-format, no-wrap msgid "" "Message selection:\n" @@ -2021,23 +2024,23 @@ " -i, --ignore-case 忽略大小写区别\n" " -v, --invert-match 仅输出不符合任何条件的消息\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" msgstr " --escape 在输出中使用 C 转义字符,没有扩展字符\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output 生成排序输出\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file 根据文件位置排序输出\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2046,7 +2049,7 @@ "系统环境没有任何和语言有关的设置。请根据 ABOUT-NLS 文件所述,\n" "设置 LANG 环境变量。这是测试翻译前的必要步骤。\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2057,24 +2060,24 @@ "请通过 --locale 选项指定语系或\n" "--output-file 选项指定输出的 .po 文件。\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "已创建 %s。\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "创建新的 PO 文件,即根据用户环境取值初始化文件头。\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=输入文件 输入的 POT 文件\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2084,12 +2087,12 @@ "如果没有给出输入文件,将会搜索当前目录中的 POT 文件。\n" "如果为 - 的话,将会读取标准输入。\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=文件 将输出写入至指定的 PO 文件\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2099,18 +2102,18 @@ "定。\n" "如果输出文件是“-”,则会将结果写入至标准输出。\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC 设置目标语系\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr " --no-translator 假定 PO 文件是自动生成的\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2118,12 +2121,12 @@ "找到多于一个的 .pot 文件。\n" "请通过 --input 选项指定作为输入文件的 .pot 文件。\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "读取当前的目录时发生错误" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2131,14 +2134,14 @@ "在当前目录中找不到任何 .pot 文件。\n" "请通过 --input 选项指定作为输入文件的 .pot 文件。\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s 子进程失败,错误码为 %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2152,47 +2155,47 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "%s 软件包的简体中文翻译" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "当前的字符集编码“%s”不是通用的编码名称" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "输入文件中出现了两种不同的字符集“%s”和“%s”" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "输入文件“%s”不包含指定字符集的文件头项" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "输入文件“%2$s”的域“%1$s”不包含指定字符集的文件头项" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "目标字符集编码“%s”不是通用的编码名称。" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "警告:" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2201,7 +2204,7 @@ "输入文件所用的编码不同,其中包含 UTF-8。\n" "输出将转换为 UTF-8。\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2212,7 +2215,7 @@ "输入文件包含不同编码的消息,其中包含 %s 和 %s。会将输出的编码转换为 UTF-8。\n" "若要选择另一种输出编码,请使用 --to-code 选项。\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2224,7 +2227,7 @@ "请将全部的 msgid 和 msgctxt 都转换为纯 ASCII,或者从源代码上保证这些字符串\n" "都是 UTF-8 编码的。\n" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2235,12 +2238,12 @@ "当前语系的字符集“%s”和输入文件的字符集“%s”不同。\n" "“%s”的输出可能有误。可行的解决方法包含:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- 将 LC_ALL 设为编码 %s 对应的语系。\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2251,7 +2254,7 @@ " 然后应用“%s”命令,\n" " 最后用“msgconv”将翻译库的字符集还原为 %s。\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2264,7 +2267,7 @@ " 然后应用“%s”命令,\n" " 最后用“msgconv”将翻译库的字符集还原为 %s。\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2275,72 +2278,72 @@ "“%s”的输出可能有误。\n" "设置 LC_ALL=C 是一个可行的解决方法。\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "复数表达式将导致负值" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu,但复数表达式的最大值可能等于 %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "复数表达式将导致被零除" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "复数表达式将引起整数溢出" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "复数表达式将引起算术异常,可能被零除" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, c-format msgid "Try using the following, valid for %s:" msgstr "请尝试使用下面的,对 %s 是有效的:" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 msgid "message catalog has plural form translations" msgstr "消息库有复数形式的翻译" -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "但是文件头项中缺少“plural=表达式”属性" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "但是文件头项中缺少“nplural=整数”属性" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "nplurals 值无效" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "plural 表达式无效" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu" -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "但是某些消息只有 %lu 种复数形式" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "但是某些消息有 %lu 种复数形式" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2348,112 +2351,112 @@ "翻译库包含复数形式的翻译,但缺少以下的文件头项:\n" "“Plural-Forms: nplurals=<整数>; plural=<表达式>;”" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "“msgid”和“msgid_plural”项并非同时以“\\n”开始" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "“msgid”和“msgstr[%u]”项并非同时以“\\n”开始" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "“msgid”和“msgstr”项并非同时以“\\n”开始" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "“msgid”和“msgid_plural”项并非同时以“\\n”结束" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "“msgid”和“msgstr[%u]”项并非同时以“\\n”结束" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "“msgid”和“msgstr”项并非同时以“\\n”结束" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "复数处理是 GNU gettext 的扩展功能" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr 缺少快捷键标记“%c”" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr 包含过多的快捷键标记“%c”" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "头部缺少文件头项“%s”\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "文件头项“%s”应该位于行首\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "某些文件头项仍然是默认值\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "文件头项“%s”仍然是默认值\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "某些文件头项仍然是默认值\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "%s:在“%s”编码中输入无效" -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "%s:从“%s”编码转换到“%s”编码时出错" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "输入文件不包含指定字符集的文件头项" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " "not support this conversion." msgstr "无法从“%s”转换为“%s”。%s 需要 iconv(),但 iconv() 不支持此种转换方式。" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " "msgids become equal." msgstr "从“%s”转换为“%s”出现了重复项:某些原本不同的 msgid 变成了相同项。" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " "built without iconv()." msgstr "无法从“%s”转换为“%s”。%s 需要 iconv()。此版本创建时未包含 iconv()。" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s 只能和 %s 配合一起使用才有效" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "备份类型" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2474,24 +2477,24 @@ "在程序执行的过程中找不到完全匹配的文字,则会使用模糊的匹配以求达到较好的\n" "效果。\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po 根据旧源文件进行的翻译成果\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot 对新源文件的引用\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr " -C, --compendium=文件 消息翻译的额外库,可指定多个\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" @@ -2500,27 +2503,27 @@ " -U, --update 更新 def.po,\n" " 如果 def.po 已经是最新则不作任何事\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "以更新模式输出文件位置:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "结果将写回 def.po 中。\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=备份方法 备份 def.po\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=后缀 覆盖默认备份后缀\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2538,7 +2541,7 @@ " existing, nil 如果编号备份存在则继续编号,否则执行简单备份\n" " simple, never 总是制作简单的备份\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2547,33 +2550,28 @@ msgstr "" "备份后缀是“~”,您可以用 --suffix 或 SIMPLE_BACKUP_SUFFIX 环境变量设置。\n" -#: src/msgmerge.c:523 +#: src/msgmerge.c:552 #, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching 不使用模糊匹配\n" - -#: src/msgmerge.c:525 -#, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" -msgstr " --translated 保留已翻译的,去掉未翻译的消息\n" +msgstr " --previous 保留已翻译条目的 msgids\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent 隐藏进度指示\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "此消息应定义复数形式" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "此消息不应定义复数形式" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " @@ -2582,38 +2580,40 @@ "%s读取了 %ld 条旧的 + %ld 条引用,合并了 %ld 条,模糊的 %ld 条,缺少 %ld 条," "过时的 %ld 条。\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " 完成。\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "%s 和明确给定的文件名互相冲突" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "用法:%s [选项] [文件]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "将二进制消息库转换为 Uniforum 风格的 .po 文件。\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " "class\n" msgstr " -j, --java Java 模式:输入为 Java 资源包类\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# 模式:输入为 .NET .dll 文件\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2621,23 +2621,23 @@ msgstr "" " --csharp-resources C# 资源模式:输入为 .NET .resources 文件\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr " --tcl Tcl 模式:输入为 tcl/msgcat .msg 文件\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " 文件 ... 输入的 .mo 文件\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "以 Java 模式输入文件位置:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2647,12 +2647,12 @@ "类名称是由资源名称连同语系名称共同决定的,两者之间会用下划线分隔。\n" "类会使用 CLASSPATH 定位。\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "C# 模式下的输入文件位置:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" @@ -2661,29 +2661,29 @@ "-l 和 -d 选项是必要的。.dll 文件位于指定目录的子目录,而子目录的名称取决于语" "系。\n" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Tcl 模式下的输入文件位置:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "-l 和 -d 选项是必要的。所生成的 .msg 文件会存放在指定的目录。\n" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent 写出缩进的输出风格\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict 写出严格的 Uniforum 风格\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2702,19 +2702,19 @@ "累积起来,但如果指定了 --use-first 选项,则会从第一个翻译中取得注释。文件位置\n" "将会累积。如果使用了 --unique 选项,重复项将会被忽略。\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated 只打印重复项\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " "duplicates\n" msgstr " -u, --unique 只打印唯一的消息,忽略重复项\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "" @@ -2798,65 +2798,65 @@ msgid "plural form has wrong index" msgstr "复数形式的索引出错" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "错误太多,中止" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "无效的多字节序列" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "在文件尾发现不完整的多字节序列" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "在行尾发现不完整的多字节序列" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv 失败" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "关键字“%s”未知" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "无效的控制序列" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "字符串内遇到文件尾" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "字符串内遇到行尾" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "上下文分隔符 出现于字符串中" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "此文件可能不包含域指令" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "重复的消息定义" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 msgid "this is the location of the first definition" msgstr "这是第一次定义的位置" @@ -2940,43 +2940,55 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "从“%s”转换为“%s”编码时出错" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "需要两个参数" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "用法:%s [选项] URL 文件\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "获取 URL 并输出其内容。如果无法访问 URL,则换用指定的本地文件。\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "写入 stdout 出错" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format. Try using PO file syntax instead." msgstr "" -"使用 Java .properties 语法无法将多个翻译域输出到单个文件中。试着换用 PO 文件" -"语法。" +"无法通过指定输出格式,将多个待译稿输出为单个文件。试着用 PO 文件语法代替。" #: src/write-catalog.c:129 -#, fuzzy msgid "" "Cannot output multiple translation domains into a single file with the " "specified output format." -msgstr "使用 NeXTstep/GNUstep .strings 语法无法将多个翻译域输出到单个文件中。" +msgstr "无法通过指定输出格式,将多个待译稿输出为单个文件。" #: src/write-catalog.c:162 msgid "" @@ -2999,57 +3011,57 @@ "support them." msgstr "消息库有复数翻译,但是输出格式不支持复数处理。" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "无法创建输出文件“%s”" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "标准输出" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "创建目录“%s”失败" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "编译 C# 类失败,试试 --verbose" -#: src/write-csharp.c:753 -#, fuzzy, c-format +#: src/write-csharp.c:768 +#, c-format msgid "compilation of C# class failed" -msgstr "编译 C# 类失败,试试 --verbose" +msgstr "编译 C# 类失败" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "不是有效的 Java 类名:%s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" -msgstr "编译 Java 类失败,试试 --verbose 或设置 $JAVAC" +msgstr "编译 Java 类失败,试试 --verbose 或设置 $JAVAC 变量" -#: src/write-java.c:1063 -#, fuzzy, c-format +#: src/write-java.c:1168 +#, c-format msgid "compilation of Java class failed, please try to set $JAVAC" -msgstr "编译 Java 类失败,试试 --verbose 或设置 $JAVAC" +msgstr "编译 Java 类失败,请尝试设置 $JAVAC 变量" #: src/write-mo.c:799 src/write-qt.c:736 src/write-tcl.c:212 #, c-format msgid "error while opening \"%s\" for writing" msgstr "打开“%s”写入出错" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "国际化的消息不应包含“\\%c”转码序列" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3062,7 +3074,7 @@ "用纯 ASCII 的 msgctxt。\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3085,8 +3097,8 @@ #: src/write-qt.c:693 msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3108,7 +3120,7 @@ msgid "error while writing to %s subprocess" msgstr "写入 %s 子进程出错" -#: src/write-resources.c:130 +#: src/write-resources.c:131 msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" @@ -3116,7 +3128,7 @@ "消息库有依赖上下文的翻译\n" "但是 C# .resources 格式不支持上下文\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3140,36 +3152,34 @@ "消息库有复数翻译\n" "但是 Tcl 消息库不支持复数处理\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d:警告:未结束的字符串" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d:警告:未结束的正规表达式" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d:警告:未结束的字符常量" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d:警告:未结束的字符串字面" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "在 %s%s 出现了非 ASCII 字符串。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3178,7 +3188,7 @@ "%s:%d:出现了无效的多字节序列。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3187,7 +3197,7 @@ "%s:%d:较长的不完整多字节序列。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3196,7 +3206,7 @@ "%s:%d:文件结尾处出现了不完整的多字节序列。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3205,12 +3215,12 @@ "%s:%d:文件结尾处出现了不完整的多字节序列。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d:iconv 失败" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3219,32 +3229,32 @@ "%s:%d:无效的多字节序列。\n" "请通过 --from-code 指定源文件的编码。\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d:警告:无效的 Unicode 字符" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d:警告:未结束的字符串常量" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d:警告:期待“}”却发现了“)”" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d:警告:期待“)”却发现了“}”" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%lu:%lu:%s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3253,50 +3263,49 @@ "不支持“glade”。%s 依赖 expat。\n" "此版本创建时未包含 expat。\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" -msgstr "%s:%d:警告:未结束的字符串" +msgstr "%s:%d:警告:未结束的字符串 U+%04X" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d:在文件结束符前的任何位置都找不到字符串结束符“%s”" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d:在 \\x{十六进制数} 处缺少右大括号" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d:8位字符“%c”转义无效(“\\l”)" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d:8位字符“%c”转义无效(“\\u”)" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "%s:%d:“%c”处有无效的变量转义" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d:8位字符“%c”转义无效(“\\L”)" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d:8位字符“%c”转义无效(“\\U”)" -#: src/x-python.c:233 -#, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" @@ -3304,7 +3313,7 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3315,7 +3324,7 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3326,7 +3335,7 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3337,7 +3346,7 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3348,7 +3357,7 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3359,77 +3368,77 @@ "请通过 --from-code 指定源文件的编码,详见\n" "http://www.python.org/peps/pep-0263.html。\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "未知编码“%s”。先按照 ASCII 处理。" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d:无效的字符串定义" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d:# 后面丢失数字" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d:无效的字符串表达式" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " "use eval_gettext instead" msgstr "%s:%lu:警告:为安全起见,语法 $“...”不被推荐;请换用 eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "输出写到 stdout 时无法使用 --join-existing" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "没有指定关键字 xgettext 将无法工作" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "警告:文件“%s”扩展名“%s”未知;看作 C 语言" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "从给定的输入文件中提取可翻译的字符串。\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." "po)\n" msgstr " -d, --default-domain=名称 使用<名称.po>输出(而不是 messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=文件 将输出写入指定文件\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir=目录 输出文件将会存放在<目录>中\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "选择输入文件所用的语言:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3448,19 +3457,19 @@ "PHP,\n" " GCC-源, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++ 的简写\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "默认情况下,所使用的语言是根据输入文件的扩展名猜测的。\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3469,41 +3478,44 @@ " --from-code=名称 输入文件的编码\n" " (除了 Python, Tcl, Glade)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "默认情况下,输入文件都认为是纯 ASCII 文件。\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing 将消息加入已有文件\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=文件.po 文件.po中的项不提取\n" -#: src/xgettext.c:825 -#, c-format +#: src/xgettext.c:879 +#, fuzzy, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" " -c, --add-comments[=标记] 在输出文件中放置用<标记>(或类似的关键字\n" " 行)标明的注释块\n" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "语言特定选项:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all 提取所有字符串\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3517,16 +3529,16 @@ "Tcl,\n" " Perl, PHP, GCC-源, Glade 语言)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=单词] 要查找的额外关键字(不指定<单词>表明不使用\n" " 默认关键字)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3537,7 +3549,7 @@ "标\n" " 志\n" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3551,107 +3563,124 @@ "Tcl,\n" " Perl, PHP, GCC-源语言)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs 理解输入时的 ANSI C 分段\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (仅 C, C++, ObjectiveC 语言)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt 识别 Qt 格式字符串\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (仅 C++ 语言)\n" -#: src/xgettext.c:859 -#, fuzzy, c-format +#: src/xgettext.c:915 +#, c-format msgid " --kde recognize KDE 4 format strings\n" -msgstr " --qt 识别 Qt 格式字符串\n" +msgstr " --kde 识别 KDE 4 格式字符串\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, c-format msgid " --boost recognize Boost format strings\n" msgstr " --boost 识别 Boost 格式字符串\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr " --debug 更详细的格式字符串识别结果\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output 写出 Java .properties 文件\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=字符串 在输出中设置版权占位符\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" msgstr " --foreign-user 为外语用户省略 FSF 版权\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" -msgstr "" +msgstr " --package-name=PACKAGE 输出时设定软件包名字\n" -#: src/xgettext.c:907 -#, fuzzy, c-format +#: src/xgettext.c:969 +#, c-format msgid " --package-version=VERSION set package version in output\n" -msgstr " --copyright-holder=字符串 在输出中设置版权占位符\n" +msgstr " --package-version=VERSION 输出时设定软件包版本\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr " --msgid-bugs-address=EMAIL@ADDRESS 设置报告 msgid 错误的地址\n" -#: src/xgettext.c:911 -#, c-format +#: src/xgettext.c:973 +#, fuzzy, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" " -m, --msgstr-prefix[=字符串] 使用<字符串>或\"\"作为 msgstr 项的前缀\n" -#: src/xgettext.c:913 -#, c-format +#: src/xgettext.c:976 +#, fuzzy, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" " -M, --msgstr-suffix[=字符串] 使用<字符串>或\"\"作为 msgstr 项的后缀\n" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "--flag 参数并非以 <关键字>:<参数编号>:[遍数-]<标志> 的语法给出:%s" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "标准输入" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s:警告:" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " @@ -3659,14 +3688,14 @@ msgstr "" "尽管在格式字符串的位置使用,但 %s 仍不是有效的 %s 格式字符串。原因:%s\n" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "以所声明的语言 %2$s 来看,%1$s 不是有效的格式字符串。原因:%3$s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3678,7 +3707,7 @@ "翻译者无法重新编排参数的顺序。\n" "请考虑使用带有命名参数和映射的格式字符串,而不是使用参数数组。\n" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3688,27 +3717,27 @@ "gettext(\"\") 将返回文件头项,而不\n" "是空字符串。\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "关键字“%.*s”的参数指定含糊" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "警告:关键字“%.*s”缺少上下文" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "警告:关键字“%.*s”缺少复数参数上下文" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "单数和复数的上下文不匹配" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3719,7 +3748,7 @@ "“Makevars”文件,请指定 MSGID_BUGS_ADDRESS 变量;\n" "否则,请指定 --msgid-bugs-address 命令行选项。\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "语言“%s”未知" @@ -3728,6 +3757,30 @@ msgid "" msgstr "<未命名>" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s:非法选项 -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle 失败,错误码为 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "尚未实现。" + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "无法为 %s 子进程创建非专用的 I/O" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "和 %s 子进程通讯时出现错误" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "由 %s 子进程读入数据时出现错误" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s 子进程已终止,错误码为 %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "文件头项“%s”仍然是默认值\n" + #~ msgid "Multiple references to %%%c." #~ msgstr "对 %%%c 的多重引用。" Binary files /tmp/kFVbvx1Uuo/gettext-0.17/gettext-tools/po/zh_TW.gmo and /tmp/7LjHqj6gWa/gettext-0.18.1.1/gettext-tools/po/zh_TW.gmo differ diff -Nru gettext-0.17/gettext-tools/po/zh_TW.po gettext-0.18.1.1/gettext-tools/po/zh_TW.po --- gettext-0.17/gettext-tools/po/zh_TW.po 2007-11-02 02:24:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/po/zh_TW.po 2010-06-06 12:49:58.000000000 +0000 @@ -8,10 +8,11 @@ msgstr "" "Project-Id-Version: gettext-tools 0.14.5\n" "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n" -"POT-Creation-Date: 2007-11-02 03:23+0100\n" +"POT-Creation-Date: 2010-06-04 01:57+0200\n" "PO-Revision-Date: 2005-12-06 08:31+0800\n" "Last-Translator: Abel Cheung \n" "Language-Team: Chinese (traditional) \n" +"Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -32,22 +33,22 @@ msgid "Valid arguments are:" msgstr "有效的參數為:" -#: gnulib-lib/clean-temp.c:333 +#: gnulib-lib/clean-temp.c:335 #, c-format msgid "cannot find a temporary directory, try setting $TMPDIR" msgstr "找不到暫存檔目錄,正嘗試設定 $TMPDIR" -#: gnulib-lib/clean-temp.c:347 +#: gnulib-lib/clean-temp.c:349 #, c-format msgid "cannot create a temporary directory using template \"%s\"" msgstr "無法根據目錄名稱樣式 “%s” 建立暫存檔目錄" -#: gnulib-lib/clean-temp.c:443 +#: gnulib-lib/clean-temp.c:445 #, fuzzy, c-format msgid "cannot remove temporary file %s" msgstr "無法產生輸出檔 “%s”" -#: gnulib-lib/clean-temp.c:458 +#: gnulib-lib/clean-temp.c:460 #, fuzzy, c-format msgid "cannot remove temporary directory %s" msgstr "無法根據目錄名稱樣式 “%s” 建立暫存檔目錄" @@ -57,44 +58,44 @@ msgstr "寫入時發生錯誤" # lib/copy-file.c:61 src/file-list.c:57 src/po-lex.c:726 src/read-mo.c:171 src/urlget.c:204 src/xgettext.c:823 src/xgettext.c:836 src/xgettext.c:846 #, c-format -#: gnulib-lib/copy-file.c:66 src/file-list.c:53 src/msggrep.c:244 -#: src/open-catalog.c:121 src/read-mo.c:252 src/read-tcl.c:124 -#: src/urlget.c:201 src/xgettext.c:1794 src/xgettext.c:1807 -#: src/xgettext.c:1817 +#: gnulib-lib/copy-file.c:67 src/file-list.c:53 src/msggrep.c:247 +#: src/open-catalog.c:122 src/read-mo.c:252 src/read-tcl.c:125 +#: src/urlget.c:216 src/xgettext.c:1890 src/xgettext.c:1903 +#: src/xgettext.c:1913 #, c-format msgid "error while opening \"%s\" for reading" msgstr "當開啟檔案 “%s” 準備讀取時發生錯誤" -#: gnulib-lib/copy-file.c:73 +#: gnulib-lib/copy-file.c:74 #, c-format msgid "cannot open backup file \"%s\" for writing" msgstr "無法開啟備份檔 “%s” 來寫入內容" -#: gnulib-lib/copy-file.c:81 src/urlget.c:213 +#: gnulib-lib/copy-file.c:82 src/urlget.c:228 #, c-format msgid "error reading \"%s\"" msgstr "讀取 “%s” 時發生錯誤" -#: gnulib-lib/copy-file.c:86 gnulib-lib/copy-file.c:91 -#: gnulib-lib/copy-file.c:130 +#: gnulib-lib/copy-file.c:87 gnulib-lib/copy-file.c:94 +#: gnulib-lib/copy-file.c:133 #, c-format msgid "error writing \"%s\"" msgstr "寫入 “%s” 時發生錯誤" -#: gnulib-lib/copy-file.c:93 gnulib-lib/copy-file.c:132 src/urlget.c:223 +#: gnulib-lib/copy-file.c:96 gnulib-lib/copy-file.c:135 src/urlget.c:238 #, c-format msgid "error after reading \"%s\"" msgstr "完成讀取 “%s” 後發生錯誤" -#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:839 -#: src/msginit.c:914 src/msginit.c:1074 src/msginit.c:1173 +#: gnulib-lib/csharpcomp.c:310 gnulib-lib/javaversion.c:76 src/msginit.c:897 +#: src/msginit.c:972 src/msginit.c:1132 src/msginit.c:1231 #: src/read-csharp.c:72 src/read-java.c:70 src/read-resources.c:73 #: src/read-tcl.c:110 src/write-resources.c:77 #, c-format msgid "fdopen() failed" msgstr "fdopen() 失敗" -#: gnulib-lib/csharpcomp.c:570 +#: gnulib-lib/csharpcomp.c:571 #, c-format msgid "C# compiler not found, try installing pnet" msgstr "找不到 C# 編譯器,請安裝 pnet" @@ -104,74 +105,73 @@ msgid "C# virtual machine not found, try installing pnet" msgstr "找不到 C# virtual machine,請安裝 pnet" -#: gnulib-lib/error.c:125 +#: gnulib-lib/error.c:181 msgid "Unknown system error" msgstr "系統出現不明錯誤" -#: gnulib-lib/execute.c:184 gnulib-lib/execute.c:260 gnulib-lib/execute.c:302 -#: gnulib-lib/pipe.c:229 gnulib-lib/pipe.c:347 gnulib-lib/pipe.c:407 -#: gnulib-lib/wait-process.c:333 gnulib-lib/wait-process.c:400 +#: gnulib-lib/execute.c:189 gnulib-lib/execute.c:262 gnulib-lib/pipe.c:232 +#: gnulib-lib/pipe.c:346 gnulib-lib/wait-process.c:282 +#: gnulib-lib/wait-process.c:356 #, c-format msgid "%s subprocess failed" msgstr "%s 副進程發生錯誤" -#: gnulib-lib/getopt.c:530 gnulib-lib/getopt.c:546 -#, c-format -msgid "%s: option `%s' is ambiguous\n" +#: gnulib-lib/getopt.c:527 gnulib-lib/getopt.c:543 +#, fuzzy, c-format +msgid "%s: option '%s' is ambiguous\n" msgstr "%s:選項 ‘%s’ 不明確\n" -#: gnulib-lib/getopt.c:579 gnulib-lib/getopt.c:583 -#, c-format -msgid "%s: option `--%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:576 gnulib-lib/getopt.c:580 +#, fuzzy, c-format +msgid "%s: option '--%s' doesn't allow an argument\n" msgstr "%s:選項 ‘--%s’ 不可配合參數使用\n" -#: gnulib-lib/getopt.c:592 gnulib-lib/getopt.c:597 -#, c-format -msgid "%s: option `%c%s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:589 gnulib-lib/getopt.c:594 +#, fuzzy, c-format +msgid "%s: option '%c%s' doesn't allow an argument\n" msgstr "%s:選項 ‘%c%s’ 不可配合參數使用\n" -#: gnulib-lib/getopt.c:640 gnulib-lib/getopt.c:659 gnulib-lib/getopt.c:975 -#: gnulib-lib/getopt.c:994 -#, c-format -msgid "%s: option `%s' requires an argument\n" +#: gnulib-lib/getopt.c:637 gnulib-lib/getopt.c:656 +#, fuzzy, c-format +msgid "%s: option '--%s' requires an argument\n" msgstr "%s:選項 ‘%s’ 需要參數\n" -#: gnulib-lib/getopt.c:697 gnulib-lib/getopt.c:700 -#, c-format -msgid "%s: unrecognized option `--%s'\n" +#: gnulib-lib/getopt.c:694 gnulib-lib/getopt.c:697 +#, fuzzy, c-format +msgid "%s: unrecognized option '--%s'\n" msgstr "%s:無法辨識 ‘--%s’ 選項\n" -#: gnulib-lib/getopt.c:708 gnulib-lib/getopt.c:711 -#, c-format -msgid "%s: unrecognized option `%c%s'\n" +#: gnulib-lib/getopt.c:705 gnulib-lib/getopt.c:708 +#, fuzzy, c-format +msgid "%s: unrecognized option '%c%s'\n" msgstr "%s:無法辨識 ‘%c%s’ 選項\n" -#: gnulib-lib/getopt.c:763 gnulib-lib/getopt.c:766 -#, c-format -msgid "%s: illegal option -- %c\n" -msgstr "%s:選項不合法 -- %c\n" - -#: gnulib-lib/getopt.c:772 gnulib-lib/getopt.c:775 -#, c-format -msgid "%s: invalid option -- %c\n" +#: gnulib-lib/getopt.c:757 gnulib-lib/getopt.c:760 +#, fuzzy, c-format +msgid "%s: invalid option -- '%c'\n" msgstr "%s:選項無效 -- %c\n" -#: gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:843 gnulib-lib/getopt.c:1047 -#: gnulib-lib/getopt.c:1065 -#, c-format -msgid "%s: option requires an argument -- %c\n" +#: gnulib-lib/getopt.c:810 gnulib-lib/getopt.c:827 gnulib-lib/getopt.c:1035 +#: gnulib-lib/getopt.c:1053 +#, fuzzy, c-format +msgid "%s: option requires an argument -- '%c'\n" msgstr "%s:選項需要參數 -- %c\n" -#: gnulib-lib/getopt.c:896 gnulib-lib/getopt.c:912 -#, c-format -msgid "%s: option `-W %s' is ambiguous\n" +#: gnulib-lib/getopt.c:883 gnulib-lib/getopt.c:899 +#, fuzzy, c-format +msgid "%s: option '-W %s' is ambiguous\n" msgstr "%s:選項 ‘-W %s’ 不明確\n" -#: gnulib-lib/getopt.c:936 gnulib-lib/getopt.c:954 -#, c-format -msgid "%s: option `-W %s' doesn't allow an argument\n" +#: gnulib-lib/getopt.c:923 gnulib-lib/getopt.c:941 +#, fuzzy, c-format +msgid "%s: option '-W %s' doesn't allow an argument\n" msgstr "%s:選項 ‘-W %s’ 不可配合參數使用\n" +#: gnulib-lib/getopt.c:962 gnulib-lib/getopt.c:980 +#, fuzzy, c-format +msgid "%s: option '-W %s' requires an argument\n" +msgstr "%s:選項 ‘%s’ 需要參數\n" + #: gnulib-lib/javacomp.c:126 gnulib-lib/javacomp.c:140 #: gnulib-lib/javacomp.c:156 #, c-format @@ -183,20 +183,20 @@ msgid "invalid target_version argument to compile_java_class" msgstr "" -#: gnulib-lib/javacomp.c:503 src/write-csharp.c:724 src/write-java.c:1026 -#: src/write-java.c:1038 +#: gnulib-lib/javacomp.c:503 src/write-csharp.c:739 src/write-java.c:1131 +#: src/write-java.c:1143 #, c-format msgid "failed to create \"%s\"" msgstr "無法建立 “%s”" -#: gnulib-lib/javacomp.c:510 src/write-catalog.c:253 src/write-catalog.c:317 -#: src/write-csharp.c:733 src/write-java.c:1047 src/write-mo.c:811 +#: gnulib-lib/javacomp.c:510 src/write-catalog.c:255 src/write-catalog.c:319 +#: src/write-csharp.c:748 src/write-java.c:1152 src/write-mo.c:811 #: src/write-qt.c:748 src/write-tcl.c:222 #, c-format msgid "error while writing \"%s\" file" msgstr "當寫入檔案 “%s” 時發生錯誤" -#: gnulib-lib/javacomp.c:2341 +#: gnulib-lib/javacomp.c:2343 #, c-format msgid "Java compiler not found, try installing gcj or set $JAVAC" msgstr "找不到 Java 編譯器,請安裝 gcj 或是設定 $JAVAC 環境變數" @@ -206,20 +206,20 @@ msgid "Java virtual machine not found, try installing gij or set $JAVA" msgstr "找不到 Java virtual machine,請安裝 gij 或是設定 $JAVA 環境變數" -#: gnulib-lib/javaversion.c:84 src/msginit.c:847 src/msginit.c:922 -#: src/msginit.c:1082 +#: gnulib-lib/javaversion.c:84 src/msginit.c:905 src/msginit.c:980 +#: src/msginit.c:1140 #, c-format msgid "%s subprocess I/O error" msgstr "%s 副進程輸出/輸入錯誤" #: gnulib-lib/obstack.c:423 gnulib-lib/obstack.c:425 gnulib-lib/xmalloc.c:37 -#: gnulib-lib/xsetenv.c:38 src/msgl-check.c:473 src/po-lex.c:84 -#: src/po-lex.c:103 src/x-glade.c:588 libgettextpo/gettext-po.c:1284 +#: gnulib-lib/xsetenv.c:37 src/msgl-check.c:550 src/po-lex.c:83 +#: src/po-lex.c:102 src/x-glade.c:600 libgettextpo/gettext-po.c:1328 #, c-format msgid "memory exhausted" msgstr "記憶體耗盡" -#: gnulib-lib/pipe.c:155 gnulib-lib/pipe.c:158 gnulib-lib/pipe.c:262 +#: gnulib-lib/pipe.c:138 gnulib-lib/pipe.c:141 gnulib-lib/pipe.c:262 #: gnulib-lib/pipe.c:265 #, c-format msgid "cannot create pipe" @@ -238,70 +238,69 @@ #. translate "`" to U+201C (LEFT DOUBLE QUOTATION MARK), and #. should translate "'" to U+201D (RIGHT DOUBLE QUOTATION #. MARK). A British English Unicode locale should instead -#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and -#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. +#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) +#. and U+2019 (RIGHT SINGLE QUOTATION MARK), respectively. #. #. If you don't know what to put here, please see #. #. and use glyphs suitable for your language. -#: gnulib-lib/quotearg.c:228 +#: gnulib-lib/quotearg.c:272 msgid "`" msgstr "" -#: gnulib-lib/quotearg.c:229 +#: gnulib-lib/quotearg.c:273 msgid "'" msgstr "" -#: gnulib-lib/w32spawn.h:47 -#, c-format -msgid "DuplicateHandle failed with error code 0x%08x" -msgstr "DuplicateHandle 失敗,錯誤碼為 0x%08x" - -#: gnulib-lib/w32spawn.h:52 +#: gnulib-lib/w32spawn.h:40 #, c-format msgid "_open_osfhandle failed" msgstr "_open_osfhandle 失敗" -#: gnulib-lib/wait-process.c:276 gnulib-lib/wait-process.c:308 -#: gnulib-lib/wait-process.c:366 +#: gnulib-lib/w32spawn.h:81 +#, fuzzy, c-format +msgid "cannot restore fd %d: dup2 failed" +msgstr "無法產生輸出檔 “%s”" + +#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255 +#: gnulib-lib/wait-process.c:317 #, c-format msgid "%s subprocess" msgstr "%s 副進程" -#: gnulib-lib/wait-process.c:325 gnulib-lib/wait-process.c:392 +#: gnulib-lib/wait-process.c:274 gnulib-lib/wait-process.c:346 #, c-format msgid "%s subprocess got fatal signal %d" msgstr "%s 副進程出現代表嚴重錯誤的訊號 %d" -#: src/format.c:143 -#, c-format -msgid "'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s" +#: src/format.c:148 +#, fuzzy, c-format +msgid "'%s' is not a valid %s format string, unlike '%s'. Reason: %s" msgstr "和 ‘msgid’ 不同,‘%s’ 的 %s 格式字串無效。原因:%s" #: src/format-awk.c:509 src/format-boost.c:617 src/format-elisp.c:348 -#: src/format-gcc-internal.c:623 src/format-librep.c:312 -#: src/format-pascal.c:401 src/format-perl.c:584 src/format-php.c:350 -#: src/format-qt.c:170 src/format-tcl.c:390 src/format-ycp.c:144 -#, c-format +#: src/format-gcc-internal.c:627 src/format-librep.c:312 +#: src/format-pascal.c:397 src/format-perl.c:584 src/format-php.c:350 +#: src/format-qt.c:173 src/format-tcl.c:390 src/format-ycp.c:147 +#, fuzzy, c-format msgid "" -"a format specification for argument %u, as in '%s', doesn't exist in 'msgid'" +"a format specification for argument %u, as in '%s', doesn't exist in '%s'" msgstr "‘%2$s’ 中第 %1$u 個參數的規格在 ‘msgid’ 中並不存在" -#: src/format-awk.c:519 src/format-boost.c:627 src/format-elisp.c:358 -#: src/format-gcc-internal.c:633 src/format-librep.c:322 -#: src/format-pascal.c:411 src/format-perl.c:594 src/format-php.c:360 -#: src/format-qt.c:169 src/format-tcl.c:400 src/format-ycp.c:143 +#: src/format-awk.c:520 src/format-boost.c:628 src/format-elisp.c:359 +#: src/format-gcc-internal.c:638 src/format-librep.c:323 +#: src/format-pascal.c:408 src/format-perl.c:595 src/format-php.c:361 +#: src/format-qt.c:170 src/format-tcl.c:401 src/format-ycp.c:144 #, c-format msgid "a format specification for argument %u doesn't exist in '%s'" msgstr "第 %u 個參數的規格在‘%s’中並不存在" -#: src/format-awk.c:539 src/format-boost.c:647 src/format-c.c:910 -#: src/format-elisp.c:378 src/format-gcc-internal.c:653 -#: src/format-librep.c:342 src/format-pascal.c:431 src/format-perl.c:614 -#: src/format-php.c:380 src/format-python.c:510 src/format-tcl.c:420 -#, c-format -msgid "" -"format specifications in 'msgid' and '%s' for argument %u are not the same" +#: src/format-awk.c:540 src/format-boost.c:648 src/format-c.c:910 +#: src/format-elisp.c:379 src/format-gcc-internal.c:658 +#: src/format-librep.c:343 src/format-pascal.c:428 src/format-perl.c:615 +#: src/format-php.c:381 src/format-python.c:527 src/format-tcl.c:421 +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' for argument %u are not the same" msgstr "‘msgid’和‘%s’的第 %u 個參數的規格並不相同" #: src/format-boost.c:449 @@ -328,9 +327,9 @@ msgid "The string refers to argument number %u but ignores argument number %u." msgstr "字串中有提及第 %u 個參數,但忽略了第 %u 個。" -#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:501 -#, c-format -msgid "number of format specifications in 'msgid' and '%s' does not match" +#: src/format-c.c:901 src/format-csharp.c:206 src/format-python.c:515 +#, fuzzy, c-format +msgid "number of format specifications in '%s' and '%s' does not match" msgstr "‘msgid’ 和 ‘%s’ 的參數數目不符" #: src/format-csharp.c:88 src/format-java.c:205 @@ -370,48 +369,48 @@ msgid "The string contains a lone '}' after directive number %u." msgstr "第 %u 個參數後出現單獨的 ‘}’。" -#: src/format-gcc-internal.c:253 +#: src/format-gcc-internal.c:255 #, fuzzy, c-format msgid "In the directive number %u, the flags combination is invalid." msgstr "第 %u 個參數的子字串 “%s” 是無效的數字格式。" -#: src/format-gcc-internal.c:290 +#: src/format-gcc-internal.c:292 #, fuzzy, c-format msgid "In the directive number %u, a precision is not allowed before '%c'." msgstr "第 %u 個參數的 “%s” 後面缺少了逗號。" -#: src/format-gcc-internal.c:332 +#: src/format-gcc-internal.c:334 #, fuzzy, c-format msgid "" "In the directive number %u, the argument number for the precision must be " "equal to %u." msgstr "第 %u 個參數中的數字 0 不是正整數。" -#: src/format-gcc-internal.c:396 +#: src/format-gcc-internal.c:398 #, fuzzy, c-format msgid "" "In the directive number %u, a precision specification is not allowed before " "'%c'." msgstr "第 %u 個參數的 “%s” 後面缺少了逗號。" -#: src/format-gcc-internal.c:404 +#: src/format-gcc-internal.c:406 #, fuzzy, c-format msgid "In the directive number %u, the precision specification is invalid." msgstr "第 %u 個參數的子字串 “%s” 是無效的數字格式。" -#: src/format-gcc-internal.c:459 +#: src/format-gcc-internal.c:463 #, c-format msgid "In the directive number %u, flags are not allowed before '%c'." msgstr "" -#: src/format-gcc-internal.c:671 -#, c-format -msgid "'msgid' uses %%m but '%s' doesn't" +#: src/format-gcc-internal.c:677 +#, fuzzy, c-format +msgid "'%s' uses %%m but '%s' doesn't" msgstr "‘msgid’ 使用了 %%m 但 ‘%s’ 沒有。" -#: src/format-gcc-internal.c:674 -#, c-format -msgid "'msgid' does not use %%m but '%s' uses %%m" +#: src/format-gcc-internal.c:680 +#, fuzzy, c-format +msgid "'%s' does not use %%m but '%s' uses %%m" msgstr "‘msgid’ 沒有使用 %%m 但 ‘%s’ 有使用 %%m。" #: src/format-invalid.h:22 @@ -501,21 +500,20 @@ msgstr "" #: src/format-java.c:745 -#, c-format +#, fuzzy, c-format msgid "" -"a format specification for argument {%u}, as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument {%u}, as in '%s', doesn't exist in '%s'" msgstr "‘%2$s’ 中的參數 {%1$u} 的格式在 ‘msgid’ 中並不存在" -#: src/format-java.c:755 +#: src/format-java.c:756 #, c-format msgid "a format specification for argument {%u} doesn't exist in '%s'" msgstr "參數 {%u} 的規格在 ‘%s’ 中並不存在" -#: src/format-java.c:775 -#, c-format +#: src/format-java.c:776 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument {%u} are not the same" +"format specifications in '%s' and '%s' for argument {%u} are not the same" msgstr "‘msgid’ 和 ‘%s’ 的參數 {%u} 規格並不相同" #: src/format-lisp.c:2337 src/format-lisp.c:2349 src/format-scheme.c:2363 @@ -529,11 +527,11 @@ #: src/format-lisp.c:2372 src/format-scheme.c:2398 #, c-format msgid "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameter." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameter." msgid_plural "" -"In the directive number %u, too many parameters are given; expected at most %" -"u parameters." +"In the directive number %u, too many parameters are given; expected at most " +"%u parameters." msgstr[0] "" msgstr[1] "" @@ -580,13 +578,13 @@ msgstr "" #: src/format-lisp.c:3474 src/format-scheme.c:3397 -#, c-format -msgid "format specifications in 'msgid' and '%s' are not equivalent" +#, fuzzy, c-format +msgid "format specifications in '%s' and '%s' are not equivalent" msgstr "‘msgid’ 和 ‘%s’ 的參數規格並非同等" #: src/format-lisp.c:3490 src/format-scheme.c:3413 -#, c-format -msgid "format specifications in '%s' are not a subset of those in 'msgid'" +#, fuzzy, c-format +msgid "format specifications in '%s' are not a subset of those in '%s'" msgstr "‘%s’ 的參數規格並非 ‘msgid’ 的參數規格的一部份" #: src/format-perl.c:433 @@ -596,56 +594,53 @@ "conversion specifier '%c'." msgstr "" -#: src/format-perl-brace.c:199 src/format-python.c:459 src/format-sh.c:307 +#: src/format-perl-brace.c:199 src/format-python.c:471 src/format-sh.c:308 #, c-format msgid "a format specification for argument '%s' doesn't exist in '%s'" msgstr "參數 ‘%s’ 的規格在 ‘%s’ 中並不存在" -#: src/format-python.c:112 +#: src/format-python.c:115 msgid "" "The string refers to arguments both through argument names and through " "unnamed argument specifications." msgstr "" -#: src/format-python.c:343 +#: src/format-python.c:354 #, c-format msgid "The string refers to the argument named '%s' in incompatible ways." msgstr "" -#: src/format-python.c:419 -#, c-format +#: src/format-python.c:430 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a mapping, those in '%s' expect a " -"tuple" +"format specifications in '%s' expect a mapping, those in '%s' expect a tuple" msgstr "" "‘msgid’ 裡的規格對應的是雜湊表 (mapping),而 ‘%s’ 的卻是固定有序列 (tuple)" -#: src/format-python.c:426 -#, c-format +#: src/format-python.c:437 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' expect a tuple, those in '%s' expect a " -"mapping" +"format specifications in '%s' expect a tuple, those in '%s' expect a mapping" msgstr "" "‘msgid’ 裡的規格對應的是固定有序列 (tuple),而 ‘%s’ 的卻是雜湊表 (mapping)" -#: src/format-python.c:449 src/format-sh.c:297 -#, c-format +#: src/format-python.c:460 src/format-sh.c:297 +#, fuzzy, c-format msgid "" -"a format specification for argument '%s', as in '%s', doesn't exist in " -"'msgid'" +"a format specification for argument '%s', as in '%s', doesn't exist in '%s'" msgstr "‘%2$s’ 中的參數 ‘%1$s’ 的格式在 ‘msgid’ 中並不存在" -#: src/format-python.c:479 -#, c-format +#: src/format-python.c:494 +#, fuzzy, c-format msgid "" -"format specifications in 'msgid' and '%s' for argument '%s' are not the same" +"format specifications in '%s' and '%s' for argument '%s' are not the same" msgstr "‘msgid’和‘%s’的參數‘%s’的格式並不相同" #: src/format-qt.c:152 #, c-format msgid "" -"'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag " -"or a double-digit argument number" +"'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or " +"a double-digit argument number" msgstr "" #: src/format-sh.c:79 @@ -683,11 +678,11 @@ "1 and 9." msgstr "第 %u 個參數最後一個字元不是 1 至 9 之間的整數。" -#: src/hostname.c:178 src/msgattrib.c:325 src/msgcat.c:281 src/msgcmp.c:161 -#: src/msgcomm.c:268 src/msgconv.c:223 src/msgen.c:211 src/msgexec.c:178 -#: src/msgfilter.c:280 src/msgfmt.c:364 src/msggrep.c:398 src/msginit.c:256 -#: src/msgmerge.c:322 src/msgunfmt.c:250 src/msguniq.c:247 -#: src/recode-sr-latin.c:110 src/urlget.c:130 src/xgettext.c:530 +#: src/hostname.c:178 src/msgattrib.c:337 src/msgcat.c:289 src/msgcmp.c:172 +#: src/msgcomm.c:280 src/msgconv.c:235 src/msgen.c:231 src/msgexec.c:180 +#: src/msgfilter.c:273 src/msgfmt.c:366 src/msggrep.c:410 src/msginit.c:268 +#: src/msgmerge.c:344 src/msgunfmt.c:262 src/msguniq.c:259 +#: src/recode-sr-latin.c:110 src/urlget.c:143 src/xgettext.c:584 #, c-format, no-wrap msgid "" "Copyright (C) %s Free Software Foundation, Inc.\n" @@ -696,38 +691,38 @@ "There is NO WARRANTY, to the extent permitted by law.\n" msgstr "" -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgcmp.c:167 -#: src/msgcomm.c:274 src/msgconv.c:229 src/msgen.c:217 src/msgexec.c:184 -#: src/msgfilter.c:286 src/msgfmt.c:370 src/msggrep.c:404 src/msginit.c:262 -#: src/msgmerge.c:328 src/msgunfmt.c:256 src/msguniq.c:253 src/urlget.c:136 -#: src/xgettext.c:536 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgcmp.c:178 +#: src/msgcomm.c:286 src/msgconv.c:241 src/msgen.c:237 src/msgexec.c:186 +#: src/msgfilter.c:279 src/msgfmt.c:372 src/msggrep.c:416 src/msginit.c:274 +#: src/msgmerge.c:350 src/msgunfmt.c:268 src/msguniq.c:265 src/urlget.c:149 +#: src/xgettext.c:590 #, c-format msgid "Written by %s.\n" msgstr "由 %s 編寫。\n" #. This is a proper name. See the gettext manual, section Names. -#: src/hostname.c:184 src/msgattrib.c:331 src/msgcat.c:287 src/msgconv.c:229 -#: src/msgen.c:217 src/msgexec.c:184 src/msgfilter.c:286 src/msggrep.c:404 -#: src/msginit.c:262 src/msguniq.c:253 src/recode-sr-latin.c:121 -#: src/urlget.c:136 +#: src/hostname.c:184 src/msgattrib.c:343 src/msgcat.c:295 src/msgconv.c:241 +#: src/msgen.c:237 src/msgexec.c:186 src/msgfilter.c:279 src/msggrep.c:416 +#: src/msginit.c:274 src/msguniq.c:265 src/recode-sr-latin.c:121 +#: src/urlget.c:149 msgid "Bruno Haible" msgstr "" -#: src/hostname.c:194 src/msginit.c:272 src/recode-sr-latin.c:130 +#: src/hostname.c:194 src/msginit.c:284 src/recode-sr-latin.c:130 #, c-format msgid "too many arguments" msgstr "參數過多" -#: src/hostname.c:207 src/msgattrib.c:391 src/msgcat.c:350 src/msgcmp.c:198 -#: src/msgcomm.c:342 src/msgconv.c:286 src/msgen.c:270 src/msgexec.c:236 -#: src/msgfilter.c:391 src/msgfmt.c:625 src/msggrep.c:495 src/msginit.c:346 -#: src/msgmerge.c:449 src/msgunfmt.c:411 src/msguniq.c:309 -#: src/recode-sr-latin.c:143 src/urlget.c:159 src/xgettext.c:758 +#: src/hostname.c:207 src/msgattrib.c:403 src/msgcat.c:362 src/msgcmp.c:209 +#: src/msgcomm.c:354 src/msgconv.c:298 src/msgen.c:294 src/msgexec.c:253 +#: src/msgfilter.c:384 src/msgfmt.c:646 src/msggrep.c:507 src/msginit.c:358 +#: src/msgmerge.c:476 src/msgunfmt.c:423 src/msguniq.c:321 +#: src/recode-sr-latin.c:143 src/urlget.c:172 src/xgettext.c:812 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "請執行 ‘%s --help’ 顯示額外資訊。\n" -#: src/hostname.c:211 src/msginit.c:350 src/recode-sr-latin.c:148 +#: src/hostname.c:211 src/msginit.c:362 src/recode-sr-latin.c:148 #, c-format, no-wrap msgid "Usage: %s [OPTION]\n" msgstr "用法:%s [選項]\n" @@ -761,29 +756,29 @@ msgid " -i, --ip-address addresses for the hostname\n" msgstr " -i, --ip-address 主機的 IP 地址\n" -#: src/hostname.c:228 src/msgattrib.c:497 src/msgcat.c:454 src/msgcmp.c:245 -#: src/msgcomm.c:436 src/msgconv.c:362 src/msgen.c:343 src/msgexec.c:278 -#: src/msgfilter.c:477 src/msgfmt.c:747 src/msggrep.c:605 src/msginit.c:402 -#: src/msgmerge.c:566 src/msgunfmt.c:509 src/msguniq.c:398 -#: src/recode-sr-latin.c:161 src/urlget.c:173 src/xgettext.c:916 +#: src/hostname.c:228 src/msgattrib.c:515 src/msgcat.c:468 src/msgcmp.c:258 +#: src/msgcomm.c:454 src/msgconv.c:380 src/msgen.c:375 src/msgexec.c:295 +#: src/msgfilter.c:476 src/msgfmt.c:768 src/msggrep.c:623 src/msginit.c:420 +#: src/msgmerge.c:601 src/msgunfmt.c:527 src/msguniq.c:416 +#: src/recode-sr-latin.c:161 src/urlget.c:186 src/xgettext.c:980 #, c-format, no-wrap msgid "Informative output:\n" msgstr "顯示資訊:\n" -#: src/hostname.c:230 src/msgattrib.c:499 src/msgcat.c:456 src/msgcmp.c:247 -#: src/msgcomm.c:438 src/msgconv.c:364 src/msgen.c:345 src/msgexec.c:280 -#: src/msgfilter.c:479 src/msgfmt.c:749 src/msggrep.c:607 src/msginit.c:404 -#: src/msgmerge.c:568 src/msgunfmt.c:511 src/msguniq.c:400 -#: src/recode-sr-latin.c:164 src/urlget.c:175 src/xgettext.c:918 +#: src/hostname.c:230 src/msgattrib.c:517 src/msgcat.c:470 src/msgcmp.c:260 +#: src/msgcomm.c:456 src/msgconv.c:382 src/msgen.c:377 src/msgexec.c:297 +#: src/msgfilter.c:478 src/msgfmt.c:770 src/msggrep.c:625 src/msginit.c:422 +#: src/msgmerge.c:603 src/msgunfmt.c:529 src/msguniq.c:418 +#: src/recode-sr-latin.c:164 src/urlget.c:188 src/xgettext.c:982 #, c-format, no-wrap msgid " -h, --help display this help and exit\n" msgstr " -h, --help 顯示本訊息,然後結束\n" -#: src/hostname.c:232 src/msgattrib.c:501 src/msgcat.c:458 src/msgcmp.c:249 -#: src/msgcomm.c:440 src/msgconv.c:366 src/msgen.c:347 src/msgexec.c:282 -#: src/msgfilter.c:481 src/msgfmt.c:751 src/msggrep.c:609 src/msginit.c:406 -#: src/msgmerge.c:570 src/msgunfmt.c:513 src/msguniq.c:402 -#: src/recode-sr-latin.c:167 src/urlget.c:177 src/xgettext.c:920 +#: src/hostname.c:232 src/msgattrib.c:519 src/msgcat.c:472 src/msgcmp.c:262 +#: src/msgcomm.c:458 src/msgconv.c:384 src/msgen.c:379 src/msgexec.c:299 +#: src/msgfilter.c:480 src/msgfmt.c:772 src/msggrep.c:627 src/msginit.c:424 +#: src/msgmerge.c:605 src/msgunfmt.c:531 src/msguniq.c:420 +#: src/recode-sr-latin.c:167 src/urlget.c:190 src/xgettext.c:984 #, c-format, no-wrap msgid " -V, --version output version information and exit\n" msgstr " -V, --version 顯示版本資訊,然後結束\n" @@ -792,11 +787,11 @@ #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). -#: src/hostname.c:239 src/msgattrib.c:508 src/msgcat.c:465 src/msgcmp.c:256 -#: src/msgcomm.c:447 src/msgconv.c:373 src/msgen.c:354 src/msgexec.c:289 -#: src/msgfilter.c:488 src/msgfmt.c:762 src/msggrep.c:616 src/msginit.c:413 -#: src/msgmerge.c:581 src/msgunfmt.c:522 src/msguniq.c:409 -#: src/recode-sr-latin.c:174 src/urlget.c:184 src/xgettext.c:927 +#: src/hostname.c:239 src/msgattrib.c:526 src/msgcat.c:479 src/msgcmp.c:269 +#: src/msgcomm.c:465 src/msgconv.c:391 src/msgen.c:386 src/msgexec.c:306 +#: src/msgfilter.c:487 src/msgfmt.c:783 src/msggrep.c:634 src/msginit.c:431 +#: src/msgmerge.c:616 src/msgunfmt.c:540 src/msguniq.c:427 +#: src/recode-sr-latin.c:174 src/urlget.c:199 src/xgettext.c:991 msgid "Report bugs to .\n" msgstr "請向 匯報錯誤。\n" @@ -805,206 +800,206 @@ msgid "could not get host name" msgstr "無法取得主機名稱" -#: src/msgattrib.c:346 src/msgconv.c:244 src/msgexec.c:150 src/msgfilter.c:210 -#: src/msggrep.c:419 src/msginit.c:194 src/msguniq.c:268 +#: src/msgattrib.c:358 src/msgconv.c:256 src/msgexec.c:152 src/msgfilter.c:194 +#: src/msggrep.c:431 src/msginit.c:197 src/msguniq.c:280 #, c-format msgid "at most one input file allowed" msgstr "最多只接受一個輸入檔" -#: src/msgattrib.c:352 src/msgattrib.c:356 src/msgcat.c:303 src/msgcat.c:307 -#: src/msgcomm.c:284 src/msgcomm.c:288 src/msgconv.c:250 src/msgconv.c:254 -#: src/msgen.c:239 src/msgen.c:243 src/msgfilter.c:301 src/msgfilter.c:305 -#: src/msgfmt.c:409 src/msgfmt.c:417 src/msgfmt.c:432 src/msgfmt.c:454 -#: src/msggrep.c:425 src/msggrep.c:429 src/msgmerge.c:353 src/msgmerge.c:374 -#: src/msgmerge.c:378 src/msgunfmt.c:287 src/msguniq.c:274 src/msguniq.c:278 -#: src/xgettext.c:546 src/xgettext.c:550 src/xgettext.c:557 src/xgettext.c:560 -#: src/xgettext.c:563 +#: src/msgattrib.c:364 src/msgattrib.c:368 src/msgcat.c:311 src/msgcat.c:315 +#: src/msgcomm.c:296 src/msgcomm.c:300 src/msgconv.c:262 src/msgconv.c:266 +#: src/msgen.c:259 src/msgen.c:263 src/msgfilter.c:294 src/msgfilter.c:298 +#: src/msgfmt.c:411 src/msgfmt.c:419 src/msgfmt.c:434 src/msgfmt.c:456 +#: src/msggrep.c:437 src/msggrep.c:441 src/msgmerge.c:375 src/msgmerge.c:396 +#: src/msgmerge.c:400 src/msgunfmt.c:299 src/msguniq.c:286 src/msguniq.c:290 +#: src/xgettext.c:600 src/xgettext.c:604 src/xgettext.c:611 src/xgettext.c:614 +#: src/xgettext.c:617 #, c-format msgid "%s and %s are mutually exclusive" msgstr "%s 和 %s 兩者是互不相容的" -#: src/msgattrib.c:395 src/msgconv.c:290 src/msggrep.c:499 src/msguniq.c:313 +#: src/msgattrib.c:407 src/msgconv.c:302 src/msggrep.c:511 src/msguniq.c:325 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]\n" msgstr "用法:%s [選項] [輸入檔]\n" -#: src/msgattrib.c:400 +#: src/msgattrib.c:412 #, c-format, no-wrap msgid "" "Filters the messages of a translation catalog according to their attributes,\n" "and manipulates the attributes.\n" msgstr "根據訊息的屬性過濾翻譯檔裡的條目,並處理這些屬性。\n" -#: src/msgattrib.c:404 src/msgcat.c:371 src/msgcmp.c:216 src/msgcomm.c:362 -#: src/msgconv.c:298 src/msgen.c:286 src/msgexec.c:259 src/msgfilter.c:403 -#: src/msggrep.c:509 src/msginit.c:360 src/msgmerge.c:470 src/msgunfmt.c:423 -#: src/msguniq.c:329 +#: src/msgattrib.c:416 src/msgcat.c:383 src/msgcmp.c:227 src/msgcomm.c:374 +#: src/msgconv.c:310 src/msgen.c:310 src/msgexec.c:276 src/msgfilter.c:396 +#: src/msggrep.c:521 src/msginit.c:372 src/msgmerge.c:497 src/msgunfmt.c:435 +#: src/msguniq.c:341 #, c-format msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "長選項必須用的參數在使用短選項時也是必須的。\n" -#: src/msgattrib.c:407 src/msgcat.c:374 src/msgcmp.c:219 src/msgcomm.c:365 -#: src/msgconv.c:301 src/msgen.c:289 src/msgexec.c:262 src/msgfilter.c:406 -#: src/msgfmt.c:643 src/msggrep.c:512 src/msginit.c:363 src/msgmerge.c:473 -#: src/msgunfmt.c:437 src/msguniq.c:332 src/xgettext.c:776 +#: src/msgattrib.c:419 src/msgcat.c:386 src/msgcmp.c:230 src/msgcomm.c:377 +#: src/msgconv.c:313 src/msgen.c:313 src/msgexec.c:279 src/msgfilter.c:399 +#: src/msgfmt.c:664 src/msggrep.c:524 src/msginit.c:375 src/msgmerge.c:500 +#: src/msgunfmt.c:449 src/msguniq.c:344 src/xgettext.c:830 #, c-format msgid "Input file location:\n" msgstr "輸入檔位置:\n" -#: src/msgattrib.c:409 src/msgconv.c:303 src/msggrep.c:514 src/msguniq.c:334 +#: src/msgattrib.c:421 src/msgconv.c:315 src/msggrep.c:526 src/msguniq.c:346 #, c-format msgid " INPUTFILE input PO file\n" msgstr " INPUTFILE 用作輸入的 PO 檔\n" -#: src/msgattrib.c:411 src/msgcat.c:380 src/msgcmp.c:225 src/msgcomm.c:371 -#: src/msgconv.c:305 src/msgen.c:293 src/msgexec.c:266 src/msgfilter.c:410 -#: src/msgfmt.c:647 src/msggrep.c:516 src/msgmerge.c:479 src/msguniq.c:336 -#: src/xgettext.c:782 +#: src/msgattrib.c:423 src/msgcat.c:392 src/msgcmp.c:236 src/msgcomm.c:383 +#: src/msgconv.c:317 src/msgen.c:317 src/msgexec.c:283 src/msgfilter.c:403 +#: src/msgfmt.c:668 src/msggrep.c:528 src/msgmerge.c:506 src/msguniq.c:348 +#: src/xgettext.c:836 #, c-format msgid "" " -D, --directory=DIRECTORY add DIRECTORY to list for input files search\n" msgstr " -D, --directory=目錄 搜尋輸入檔時加入指定<目錄>\n" -#: src/msgattrib.c:413 src/msgconv.c:307 src/msgexec.c:268 src/msgfilter.c:412 -#: src/msggrep.c:518 src/msgunfmt.c:441 src/msguniq.c:338 +#: src/msgattrib.c:425 src/msgconv.c:319 src/msgexec.c:285 src/msgfilter.c:405 +#: src/msggrep.c:530 src/msgunfmt.c:453 src/msguniq.c:350 #, c-format msgid "If no input file is given or if it is -, standard input is read.\n" msgstr "如果沒有指定輸入檔或輸入檔是 ‘-’,則由標準輸入讀取內容。\n" -#: src/msgattrib.c:416 src/msgcat.c:385 src/msgcomm.c:376 src/msgconv.c:310 -#: src/msgen.c:298 src/msgfilter.c:415 src/msgfmt.c:667 src/msggrep.c:521 -#: src/msginit.c:371 src/msgmerge.c:491 src/msgunfmt.c:477 src/msguniq.c:341 -#: src/xgettext.c:787 +#: src/msgattrib.c:428 src/msgcat.c:397 src/msgcomm.c:388 src/msgconv.c:322 +#: src/msgen.c:322 src/msgfilter.c:408 src/msgfmt.c:688 src/msggrep.c:533 +#: src/msginit.c:383 src/msgmerge.c:518 src/msgunfmt.c:489 src/msguniq.c:353 +#: src/xgettext.c:841 #, c-format msgid "Output file location:\n" msgstr "輸出檔位置:\n" -#: src/msgattrib.c:418 src/msgcat.c:387 src/msgcomm.c:378 src/msgconv.c:312 -#: src/msgen.c:300 src/msgfilter.c:417 src/msgfmt.c:669 src/msggrep.c:523 -#: src/msgmerge.c:493 src/msgunfmt.c:479 src/msguniq.c:343 +#: src/msgattrib.c:430 src/msgcat.c:399 src/msgcomm.c:390 src/msgconv.c:324 +#: src/msgen.c:324 src/msgfilter.c:410 src/msgfmt.c:690 src/msggrep.c:535 +#: src/msgmerge.c:520 src/msgunfmt.c:491 src/msguniq.c:355 #, c-format msgid " -o, --output-file=FILE write output to specified file\n" msgstr " -o, --output-file=檔案 將輸出的內容寫入指定<檔案>\n" -#: src/msgattrib.c:420 src/msgcat.c:389 src/msgcomm.c:380 src/msgconv.c:314 -#: src/msgen.c:302 src/msgfilter.c:419 src/msggrep.c:525 src/msgmerge.c:495 -#: src/msgunfmt.c:481 src/msguniq.c:345 +#: src/msgattrib.c:432 src/msgcat.c:401 src/msgcomm.c:392 src/msgconv.c:326 +#: src/msgen.c:326 src/msgfilter.c:412 src/msggrep.c:537 src/msgmerge.c:522 +#: src/msgunfmt.c:493 src/msguniq.c:357 #, c-format msgid "" "The results are written to standard output if no output file is specified\n" "or if it is -.\n" msgstr "如果沒有指定<輸出檔>或<輸出檔>是 ‘-’,則會在標準輸出顯示結果。\n" -#: src/msgattrib.c:424 src/msgcat.c:393 src/msgcomm.c:384 src/msguniq.c:349 +#: src/msgattrib.c:436 src/msgcat.c:405 src/msgcomm.c:396 src/msguniq.c:361 #, c-format msgid "Message selection:\n" msgstr "篩選訊息:\n" -#: src/msgattrib.c:426 +#: src/msgattrib.c:438 #, c-format msgid "" " --translated keep translated, remove untranslated messages\n" msgstr " --translated 只保留已翻譯條目,刪除未翻譯條目\n" -#: src/msgattrib.c:428 +#: src/msgattrib.c:440 #, c-format msgid "" " --untranslated keep untranslated, remove translated messages\n" msgstr " --untranslated 只保留未翻譯條目,刪除已翻譯條目\n" -#: src/msgattrib.c:430 +#: src/msgattrib.c:442 #, c-format msgid " --no-fuzzy remove 'fuzzy' marked messages\n" msgstr " --no-fuzzy 刪除加上 'fuzzy' 標記的條目\n" -#: src/msgattrib.c:432 +#: src/msgattrib.c:444 #, c-format msgid " --only-fuzzy keep 'fuzzy' marked messages\n" msgstr " --only-fuzzy 只保留加上 'fuzzy' 標記的條目\n" -#: src/msgattrib.c:434 +#: src/msgattrib.c:446 #, c-format msgid " --no-obsolete remove obsolete #~ messages\n" msgstr " --no-obsolete 刪除過時的條目 (#~)\n" -#: src/msgattrib.c:436 +#: src/msgattrib.c:448 #, c-format msgid " --only-obsolete keep obsolete #~ messages\n" msgstr " --only-obsolete 只保留過時的條目 (#~) \n" -#: src/msgattrib.c:439 +#: src/msgattrib.c:451 #, c-format msgid "Attribute manipulation:\n" msgstr "處理屬性:\n" -#: src/msgattrib.c:441 +#: src/msgattrib.c:453 #, c-format msgid " --set-fuzzy set all messages 'fuzzy'\n" msgstr " --set-fuzzy 將所有條目標記為 'fuzzy'\n" -#: src/msgattrib.c:443 +#: src/msgattrib.c:455 #, c-format msgid " --clear-fuzzy set all messages non-'fuzzy'\n" msgstr " --clear-fuzzy 移除所有條目的 'fuzzy' 狀態\n" -#: src/msgattrib.c:445 +#: src/msgattrib.c:457 #, c-format msgid " --set-obsolete set all messages obsolete\n" msgstr " --set-obsolete 將所有條目標記為過時\n" -#: src/msgattrib.c:447 +#: src/msgattrib.c:459 #, c-format msgid " --clear-obsolete set all messages non-obsolete\n" msgstr " --clear-obsolete 清除所有條目的過時標記\n" -#: src/msgattrib.c:449 +#: src/msgattrib.c:461 #, fuzzy, c-format msgid "" " --clear-previous remove the \"previous msgid\" from all " "messages\n" msgstr " --clear-fuzzy 移除所有條目的 'fuzzy' 狀態\n" -#: src/msgattrib.c:451 +#: src/msgattrib.c:463 #, c-format msgid "" " --only-file=FILE.po manipulate only entries listed in FILE.po\n" msgstr " --only-file=FILE.po 只處理 FILE.po 裡已經有的條目\n" -#: src/msgattrib.c:453 +#: src/msgattrib.c:465 #, c-format msgid "" " --ignore-file=FILE.po manipulate only entries not listed in FILE.po\n" msgstr " --ignore-file=FILE.po 只處理 FILE.po 裡沒有的條目\n" -#: src/msgattrib.c:455 +#: src/msgattrib.c:467 #, c-format msgid " --fuzzy synonym for --only-fuzzy --clear-fuzzy\n" msgstr " --fuzzy 等於 --only-fuzzy --clear-fuzzy\n" -#: src/msgattrib.c:457 +#: src/msgattrib.c:469 #, c-format msgid "" " --obsolete synonym for --only-obsolete --clear-obsolete\n" msgstr " --obsolete 等於 --only-obsolete --clear-obsolete\n" -#: src/msgattrib.c:460 src/msgcat.c:405 src/msgcmp.c:237 src/msgcomm.c:396 -#: src/msgconv.c:325 src/msgen.c:306 src/msgexec.c:271 src/msgfilter.c:438 -#: src/msgfmt.c:712 src/msggrep.c:568 src/msginit.c:379 src/msgmerge.c:528 -#: src/msguniq.c:356 +#: src/msgattrib.c:472 src/msgcat.c:417 src/msgcmp.c:250 src/msgcomm.c:408 +#: src/msgconv.c:337 src/msgen.c:330 src/msgexec.c:288 src/msgfilter.c:431 +#: src/msgfmt.c:733 src/msggrep.c:580 src/msginit.c:391 src/msgmerge.c:555 +#: src/msguniq.c:368 #, c-format msgid "Input file syntax:\n" msgstr "輸入檔格式:\n" -#: src/msgattrib.c:462 src/msgconv.c:327 src/msgen.c:308 src/msgexec.c:273 -#: src/msgfilter.c:440 src/msggrep.c:570 src/msginit.c:381 src/msguniq.c:358 +#: src/msgattrib.c:474 src/msgconv.c:339 src/msgen.c:332 src/msgexec.c:290 +#: src/msgfilter.c:433 src/msggrep.c:582 src/msginit.c:393 src/msguniq.c:370 #, c-format msgid "" " -P, --properties-input input file is in Java .properties syntax\n" msgstr " -P, --properties-input 以 Java .properties 格式處理輸入檔\n" -#: src/msgattrib.c:464 src/msgconv.c:329 src/msgen.c:310 src/msgexec.c:275 -#: src/msgfilter.c:442 src/msggrep.c:572 src/msginit.c:383 src/msguniq.c:360 +#: src/msgattrib.c:476 src/msgconv.c:341 src/msgen.c:334 src/msgexec.c:292 +#: src/msgfilter.c:435 src/msggrep.c:584 src/msginit.c:395 src/msguniq.c:372 #, c-format msgid "" " --stringtable-input input file is in NeXTstep/GNUstep .strings " @@ -1012,17 +1007,35 @@ msgstr "" " --stringtable-input 以 NeXTstep/GNUstep .strings 格式處理輸入檔\n" -#: src/msgattrib.c:467 src/msgcat.c:413 src/msgcomm.c:404 src/msgconv.c:332 -#: src/msgen.c:313 src/msgfilter.c:445 src/msgfmt.c:740 src/msggrep.c:575 -#: src/msginit.c:386 src/msgmerge.c:536 src/msgunfmt.c:485 src/msguniq.c:363 -#: src/xgettext.c:870 +#: src/msgattrib.c:479 src/msgcat.c:425 src/msgcomm.c:416 src/msgconv.c:344 +#: src/msgen.c:337 src/msgfilter.c:438 src/msgfmt.c:761 src/msggrep.c:587 +#: src/msginit.c:398 src/msgmerge.c:563 src/msgunfmt.c:497 src/msguniq.c:375 +#: src/xgettext.c:926 #, c-format msgid "Output details:\n" msgstr "輸出內容細節:\n" -#: src/msgattrib.c:469 src/msgcat.c:426 src/msgcomm.c:406 src/msgconv.c:334 -#: src/msgen.c:315 src/msgmerge.c:538 src/msgunfmt.c:487 src/msguniq.c:370 -#: src/xgettext.c:872 +#: src/msgattrib.c:481 src/msgcat.c:434 src/msgcomm.c:418 src/msgconv.c:346 +#: src/msgen.c:341 src/msgfilter.c:440 src/msggrep.c:589 src/msginit.c:404 +#: src/msgmerge.c:567 src/msgunfmt.c:499 src/msguniq.c:382 src/xgettext.c:928 +#, c-format +msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#: src/msgattrib.c:485 src/msgcat.c:438 src/msgcomm.c:422 src/msgconv.c:350 +#: src/msgen.c:345 src/msgfilter.c:444 src/msggrep.c:593 src/msginit.c:408 +#: src/msgmerge.c:571 src/msgunfmt.c:503 src/msguniq.c:386 src/xgettext.c:932 +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#: src/msgattrib.c:487 src/msgcat.c:440 src/msgcomm.c:424 src/msgconv.c:352 +#: src/msgen.c:347 src/msgmerge.c:573 src/msgunfmt.c:505 src/msguniq.c:388 +#: src/xgettext.c:934 #, c-format msgid "" " -e, --no-escape do not use C escapes in output (default)\n" @@ -1030,9 +1043,9 @@ " -e, --no-escape 輸出結果不使用 C 轉義控制序列\n" " (escape sequence),這是預設運作方式\n" -#: src/msgattrib.c:471 src/msgcat.c:428 src/msgcomm.c:408 src/msgconv.c:336 -#: src/msgen.c:317 src/msgfilter.c:449 src/msgmerge.c:540 src/msgunfmt.c:489 -#: src/msguniq.c:372 src/xgettext.c:874 +#: src/msgattrib.c:489 src/msgcat.c:442 src/msgcomm.c:426 src/msgconv.c:354 +#: src/msgen.c:349 src/msgfilter.c:448 src/msgmerge.c:575 src/msgunfmt.c:507 +#: src/msguniq.c:390 src/xgettext.c:936 #, c-format msgid "" " -E, --escape use C escapes in output, no extended chars\n" @@ -1041,66 +1054,66 @@ "sequence)\n" " ,而不使用非 ASCII 字元\n" -#: src/msgattrib.c:473 src/msgcat.c:430 src/msgcomm.c:410 src/msgconv.c:338 -#: src/msgen.c:319 src/msgfilter.c:451 src/msggrep.c:581 src/msgmerge.c:542 -#: src/msgunfmt.c:491 src/msguniq.c:374 src/xgettext.c:876 +#: src/msgattrib.c:491 src/msgcat.c:444 src/msgcomm.c:428 src/msgconv.c:356 +#: src/msgen.c:351 src/msgfilter.c:450 src/msggrep.c:599 src/msgmerge.c:577 +#: src/msgunfmt.c:509 src/msguniq.c:392 src/xgettext.c:938 #, c-format msgid " --force-po write PO file even if empty\n" msgstr " --force-po 就算沒有內容仍產生 PO 檔\n" -#: src/msgattrib.c:475 src/msgcat.c:432 src/msgcomm.c:412 src/msguniq.c:376 -#: src/xgettext.c:878 +#: src/msgattrib.c:493 src/msgcat.c:446 src/msgcomm.c:430 src/msguniq.c:394 +#: src/xgettext.c:940 #, c-format msgid " -i, --indent write the .po file using indented style\n" msgstr " -i, --indent 寫入的 .po 檔內容會進行縮排\n" -#: src/msgattrib.c:477 src/msgcat.c:434 src/msgcomm.c:414 src/msguniq.c:378 -#: src/xgettext.c:880 +#: src/msgattrib.c:495 src/msgcat.c:448 src/msgcomm.c:432 src/msguniq.c:396 +#: src/xgettext.c:942 #, c-format msgid " --no-location do not write '#: filename:line' lines\n" msgstr " --no-location 不加入類似 '#: 檔案:行號' 的源代碼位置\n" -#: src/msgattrib.c:479 src/msgcat.c:436 src/msgcomm.c:416 src/msguniq.c:380 -#: src/xgettext.c:882 +#: src/msgattrib.c:497 src/msgcat.c:450 src/msgcomm.c:434 src/msguniq.c:398 +#: src/xgettext.c:944 #, c-format msgid "" " -n, --add-location generate '#: filename:line' lines (default)\n" msgstr "" " -n, --add-location 會加入 '#: 檔案:行號' 格式的源代碼位置 (預設)\n" -#: src/msgattrib.c:481 src/msgcat.c:438 src/msgcomm.c:418 src/msguniq.c:382 -#: src/xgettext.c:884 +#: src/msgattrib.c:499 src/msgcat.c:452 src/msgcomm.c:436 src/msguniq.c:400 +#: src/xgettext.c:946 #, c-format msgid "" " --strict write out strict Uniforum conforming .po file\n" msgstr "" " --strict 產生的 .po 檔內容跟隨嚴格的 Uniforum 格式\n" -#: src/msgattrib.c:483 src/msgcat.c:440 src/msgcomm.c:420 src/msgconv.c:348 -#: src/msgen.c:329 src/msgfilter.c:463 src/msggrep.c:591 src/msginit.c:392 -#: src/msgmerge.c:552 src/msgunfmt.c:497 src/msguniq.c:384 +#: src/msgattrib.c:501 src/msgcat.c:454 src/msgcomm.c:438 src/msgconv.c:366 +#: src/msgen.c:361 src/msgfilter.c:462 src/msggrep.c:609 src/msginit.c:410 +#: src/msgmerge.c:587 src/msgunfmt.c:515 src/msguniq.c:402 #, c-format msgid " -p, --properties-output write out a Java .properties file\n" msgstr " -p, --properties-output 產生 Java .properties 檔案\n" -#: src/msgattrib.c:485 src/msgcat.c:442 src/msgcomm.c:422 src/msgconv.c:350 -#: src/msgen.c:331 src/msgfilter.c:465 src/msggrep.c:593 src/msginit.c:394 -#: src/msgmerge.c:554 src/msgunfmt.c:499 src/msguniq.c:386 src/xgettext.c:888 +#: src/msgattrib.c:503 src/msgcat.c:456 src/msgcomm.c:440 src/msgconv.c:368 +#: src/msgen.c:363 src/msgfilter.c:464 src/msggrep.c:611 src/msginit.c:412 +#: src/msgmerge.c:589 src/msgunfmt.c:517 src/msguniq.c:404 src/xgettext.c:950 #, c-format msgid "" " --stringtable-output write out a NeXTstep/GNUstep .strings file\n" msgstr " --stringtable-output 產生 NeXTstep/GNUstep .strings 檔案\n" -#: src/msgattrib.c:487 src/msgcat.c:444 src/msgcomm.c:424 src/msgconv.c:352 -#: src/msgen.c:333 src/msgfilter.c:467 src/msggrep.c:595 src/msginit.c:396 -#: src/msgmerge.c:556 src/msgunfmt.c:501 src/msguniq.c:388 src/xgettext.c:890 +#: src/msgattrib.c:505 src/msgcat.c:458 src/msgcomm.c:442 src/msgconv.c:370 +#: src/msgen.c:365 src/msgfilter.c:466 src/msggrep.c:613 src/msginit.c:414 +#: src/msgmerge.c:591 src/msgunfmt.c:519 src/msguniq.c:406 src/xgettext.c:952 #, c-format msgid " -w, --width=NUMBER set output page width\n" msgstr " -w, --width=NUMBER 指定輸出檔每行寬度\n" -#: src/msgattrib.c:489 src/msgcat.c:446 src/msgcomm.c:426 src/msgconv.c:354 -#: src/msgen.c:335 src/msgfilter.c:469 src/msggrep.c:597 src/msginit.c:398 -#: src/msgmerge.c:558 src/msgunfmt.c:503 src/msguniq.c:390 src/xgettext.c:892 +#: src/msgattrib.c:507 src/msgcat.c:460 src/msgcomm.c:444 src/msgconv.c:372 +#: src/msgen.c:367 src/msgfilter.c:468 src/msggrep.c:615 src/msginit.c:416 +#: src/msgmerge.c:593 src/msgunfmt.c:521 src/msguniq.c:408 src/xgettext.c:954 #, c-format msgid "" " --no-wrap do not break long message lines, longer than\n" @@ -1108,31 +1121,31 @@ msgstr "" " --no-wrap 即使輸出的訊息超出頁寬,也不將輸出的訊息斷行\n" -#: src/msgattrib.c:492 src/msgcat.c:449 src/msgcomm.c:429 src/msgconv.c:357 -#: src/msgen.c:338 src/msgfilter.c:472 src/msgmerge.c:561 src/msgunfmt.c:506 -#: src/msguniq.c:393 src/xgettext.c:895 +#: src/msgattrib.c:510 src/msgcat.c:463 src/msgcomm.c:447 src/msgconv.c:375 +#: src/msgen.c:370 src/msgfilter.c:471 src/msgmerge.c:596 src/msgunfmt.c:524 +#: src/msguniq.c:411 src/xgettext.c:957 #, c-format msgid " -s, --sort-output generate sorted output\n" msgstr " -s, --sort-output 將輸出結果排序\n" -#: src/msgattrib.c:494 src/msgcat.c:451 src/msgcomm.c:431 src/msgconv.c:359 -#: src/msgen.c:340 src/msgfilter.c:474 src/msgmerge.c:563 src/msguniq.c:395 -#: src/xgettext.c:897 +#: src/msgattrib.c:512 src/msgcat.c:465 src/msgcomm.c:449 src/msgconv.c:377 +#: src/msgen.c:372 src/msgfilter.c:473 src/msgmerge.c:598 src/msguniq.c:413 +#: src/xgettext.c:959 #, c-format msgid " -F, --sort-by-file sort output by file location\n" msgstr " -F, --sort-by-file 根據檔案位置排列輸出結果\n" -#: src/msgcat.c:313 src/msgcomm.c:314 +#: src/msgcat.c:321 src/msgcomm.c:326 #, c-format msgid "impossible selection criteria specified (%d < n < %d)" msgstr "不可能出現的選擇條件 (%d < n <%d)" -#: src/msgcat.c:354 src/msgcomm.c:346 src/xgettext.c:762 +#: src/msgcat.c:366 src/msgcomm.c:358 src/xgettext.c:816 #, c-format msgid "Usage: %s [OPTION] [INPUTFILE]...\n" msgstr "用法:%s [選項] [輸入檔]...\n" -#: src/msgcat.c:359 +#: src/msgcat.c:371 #, c-format, no-wrap msgid "" "Concatenates and merges the specified PO files.\n" @@ -1153,23 +1166,23 @@ "--use-first 選項,那樣則會由第一個含有該翻譯條目的檔案取得資料。\n" "所有 PO 檔中的翻譯條目的檔案位置都會累積下來。\n" -#: src/msgcat.c:376 src/msgcomm.c:367 src/xgettext.c:778 +#: src/msgcat.c:388 src/msgcomm.c:379 src/xgettext.c:832 #, c-format msgid " INPUTFILE ... input files\n" msgstr " INPUTFILE ... 輸入檔\n" -#: src/msgcat.c:378 src/msgcomm.c:369 src/xgettext.c:780 +#: src/msgcat.c:390 src/msgcomm.c:381 src/xgettext.c:834 #, c-format msgid " -f, --files-from=FILE get list of input files from FILE\n" msgstr " -f, --files-from=FILE 由 FILE 讀取所有輸入檔的位置\n" -#: src/msgcat.c:382 src/msgcomm.c:373 src/msgen.c:295 src/msgfmt.c:649 -#: src/xgettext.c:784 +#: src/msgcat.c:394 src/msgcomm.c:385 src/msgen.c:319 src/msgfmt.c:670 +#: src/xgettext.c:838 #, c-format msgid "If input file is -, standard input is read.\n" msgstr "如果輸入檔是 - 的話,會由標準輸入讀取資料。\n" -#: src/msgcat.c:395 src/msgcomm.c:386 +#: src/msgcat.c:407 src/msgcomm.c:398 #, c-format msgid "" " -<, --less-than=NUMBER print messages with less than this many\n" @@ -1178,7 +1191,7 @@ " -<, --less-than=NUMBER 當一項條目的不同翻譯少於多少種就會顯示,\n" " 預設為無限 (即顯示所有條目)\n" -#: src/msgcat.c:398 +#: src/msgcat.c:410 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1187,7 +1200,7 @@ " ->, --more-than=NUMBER 當一項條目的不同翻譯多於多少種才會顯示,\n" " 預設為 0 種 (即顯示所有條目)\n" -#: src/msgcat.c:401 src/msgcomm.c:392 +#: src/msgcat.c:413 src/msgcomm.c:404 #, c-format msgid "" " -u, --unique shorthand for --less-than=2, requests\n" @@ -1196,15 +1209,15 @@ " -u, --unique 等於 --less-than=2,表示只顯示\n" " 只有一種翻譯的字句\n" -#: src/msgcat.c:407 src/msgcmp.c:239 src/msgcomm.c:398 src/msgfmt.c:714 -#: src/msgmerge.c:530 +#: src/msgcat.c:419 src/msgcmp.c:252 src/msgcomm.c:410 src/msgfmt.c:735 +#: src/msgmerge.c:557 #, c-format msgid "" " -P, --properties-input input files are in Java .properties syntax\n" msgstr " -P, --properties-input 輸入檔格式為 Java .properties 格式\n" -#: src/msgcat.c:409 src/msgcmp.c:241 src/msgcomm.c:400 src/msgfmt.c:716 -#: src/msgmerge.c:532 +#: src/msgcat.c:421 src/msgcmp.c:254 src/msgcomm.c:412 src/msgfmt.c:737 +#: src/msgmerge.c:559 #, c-format msgid "" " --stringtable-input input files are in NeXTstep/GNUstep .strings\n" @@ -1212,12 +1225,12 @@ msgstr "" " --stringtable-input 輸入檔格式為 NeXTstep/GNUstep .strings 格式\n" -#: src/msgcat.c:415 src/msgconv.c:320 src/msguniq.c:365 +#: src/msgcat.c:427 src/msgconv.c:332 src/msguniq.c:377 #, c-format msgid " -t, --to-code=NAME encoding for output\n" msgstr " -t, --to-code=名稱 輸出的編碼\n" -#: src/msgcat.c:417 src/msguniq.c:367 +#: src/msgcat.c:429 src/msguniq.c:379 #, c-format msgid "" " --use-first use first available translation for each\n" @@ -1226,41 +1239,33 @@ " --use-first 每句只使用第一個出現的翻譯,而不會將所有\n" " 翻譯合併起來\n" -#: src/msgcat.c:420 +#: src/msgcat.c:432 src/msgen.c:339 src/msgmerge.c:565 #, c-format msgid "" -" --color use colors and other text attributes always\n" -" --color=WHEN use colors and other text attributes if WHEN.\n" -" WHEN may be 'always', 'never', 'auto', or " -"'html'.\n" -msgstr "" - -#: src/msgcat.c:424 -#, c-format -msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +" --lang=CATALOGNAME set 'Language' field in the header entry\n" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgcmp.c:167 src/msgcomm.c:274 src/msgmerge.c:328 +#: src/msgcmp.c:178 src/msgcomm.c:286 src/msgmerge.c:350 msgid "Peter Miller" msgstr "" -#: src/msgcmp.c:178 src/msgmerge.c:339 +#: src/msgcmp.c:189 src/msgmerge.c:361 #, c-format msgid "no input files given" msgstr "未指定輸入檔" -#: src/msgcmp.c:183 src/msgmerge.c:344 +#: src/msgcmp.c:194 src/msgmerge.c:366 #, c-format msgid "exactly 2 input files required" msgstr "需要恰好指定兩個輸入檔" -#: src/msgcmp.c:202 src/msgmerge.c:453 +#: src/msgcmp.c:213 src/msgmerge.c:480 #, c-format msgid "Usage: %s [OPTION] def.po ref.pot\n" msgstr "用法:%s [選項] def.po ref.pot\n" -#: src/msgcmp.c:207 +#: src/msgcmp.c:218 #, c-format, no-wrap msgid "" "Compare two Uniforum style .po files to check that both contain the same\n" @@ -1276,22 +1281,22 @@ "此程式可用來檢查程式中的所有的訊息是否都已經翻譯好了。比較時如果\n" "有不完全配合的字串出現,程式會以模糊配對的方式得出較好的結果。\n" -#: src/msgcmp.c:221 +#: src/msgcmp.c:232 #, c-format msgid " def.po translations\n" msgstr " def.po 翻譯檔\n" -#: src/msgcmp.c:223 +#: src/msgcmp.c:234 #, c-format msgid " ref.pot references to the sources\n" msgstr " ref.pot 未翻譯檔案\n" -#: src/msgcmp.c:228 src/msgmerge.c:519 +#: src/msgcmp.c:239 src/msgmerge.c:546 #, c-format msgid "Operation modifiers:\n" msgstr "運作模式有關選項:\n" -#: src/msgcmp.c:230 src/msgmerge.c:521 +#: src/msgcmp.c:241 src/msgmerge.c:548 #, c-format msgid "" " -m, --multi-domain apply ref.pot to each of the domains in def." @@ -1299,58 +1304,63 @@ msgstr "" " -m, --multi-domain 將 ref.pot 套用於 def.po 中的每一個領域\n" -#: src/msgcmp.c:232 +#: src/msgcmp.c:243 src/msgmerge.c:550 +#, c-format +msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" +msgstr " -N, --no-fuzzy-matching 不進行模糊字串配對\n" + +#: src/msgcmp.c:245 #, fuzzy, c-format msgid " --use-fuzzy consider fuzzy entries\n" msgstr " -f, --use-fuzzy 在輸出結果中顯示模糊翻譯\n" -#: src/msgcmp.c:234 +#: src/msgcmp.c:247 #, fuzzy, c-format msgid " --use-untranslated consider untranslated entries\n" msgstr " --untranslated 只保留未翻譯條目,刪除已翻譯條目\n" -#: src/msgcmp.c:309 +#: src/msgcmp.c:324 #, fuzzy, c-format msgid "this message is untranslated" msgstr "警告:沒有使用這個訊息" -#: src/msgcmp.c:315 +#: src/msgcmp.c:330 #, c-format msgid "this message needs to be reviewed by the translator" msgstr "" -#: src/msgcmp.c:331 src/msgmerge.c:1234 +#: src/msgcmp.c:369 src/msgmerge.c:1500 #, c-format msgid "this message is used but not defined..." msgstr "這個訊息有使用過但沒有定義..." -#: src/msgcmp.c:334 src/msgmerge.c:1237 +#: src/msgcmp.c:372 src/msgmerge.c:1503 #, c-format msgid "...but this definition is similar" msgstr "...但這個定義很相似" -#: src/msgcmp.c:339 src/msgmerge.c:1267 +#: src/msgcmp.c:377 src/msgmerge.c:1531 #, c-format msgid "this message is used but not defined in %s" msgstr "這個訊息有使用過但在 %s 中沒有定義" -#: src/msgcmp.c:443 +#: src/msgcmp.c:546 #, c-format msgid "warning: this message is not used" msgstr "警告:沒有使用這個訊息" -#: src/msgcmp.c:450 src/msgfmt.c:541 +#: src/msgcmp.c:553 src/msgfmt.c:541 #, c-format msgid "found %d fatal error" msgid_plural "found %d fatal errors" msgstr[0] "找到 %d 個嚴重錯誤" -#: src/msgcomm.c:303 +#: src/msgcomm.c:315 #, c-format msgid "at least two files must be specified" msgstr "必須指定至少兩個檔案" -#: src/msgcomm.c:351 +#: src/msgcomm.c:363 #, c-format, no-wrap msgid "" "Find messages which are common to two or more of the specified PO files.\n" @@ -1368,7 +1378,7 @@ "訊息)。翻譯內容、自行加上的註解和原程式碼的註解都會保留,但只會由第一個\n" "含有該翻譯條目的檔案取得。所有 PO 檔中的翻譯條目的檔案位置都會累積下來。\n" -#: src/msgcomm.c:389 +#: src/msgcomm.c:401 #, c-format msgid "" " ->, --more-than=NUMBER print messages with more than this many\n" @@ -1376,67 +1386,67 @@ msgstr "" " ->, --more-than=NUMBER 顯示出現多於指定次數的字句,預設為 1 次\n" -#: src/msgcomm.c:433 src/xgettext.c:899 +#: src/msgcomm.c:451 src/xgettext.c:961 #, c-format msgid "" " --omit-header don't write header with `msgid \"\"' entry\n" msgstr " --omit-header 不顯示標頭 (即 ‘msgid \"\"’ 項目)\n" -#: src/msgconv.c:294 +#: src/msgconv.c:306 #, c-format msgid "Converts a translation catalog to a different character encoding.\n" msgstr "將一個翻譯檔的編碼轉換為另一種文字編碼。\n" -#: src/msgconv.c:318 +#: src/msgconv.c:330 #, c-format msgid "Conversion target:\n" msgstr "轉換目標:\n" -#: src/msgconv.c:322 +#: src/msgconv.c:334 #, c-format msgid "The default encoding is the current locale's encoding.\n" msgstr "預設的編碼為目前語言的編碼。\n" -#: src/msgconv.c:340 src/msgen.c:321 src/msgmerge.c:544 +#: src/msgconv.c:358 src/msgen.c:353 src/msgmerge.c:579 #, c-format msgid " -i, --indent indented output style\n" msgstr " -i, --indent 將輸出結果進行縮排\n" -#: src/msgconv.c:342 src/msgen.c:323 src/msgfilter.c:457 src/msggrep.c:585 -#: src/msgmerge.c:546 +#: src/msgconv.c:360 src/msgen.c:355 src/msgfilter.c:456 src/msggrep.c:603 +#: src/msgmerge.c:581 #, c-format msgid " --no-location suppress '#: filename:line' lines\n" msgstr " --no-location 不輸出源代碼位置\n" -#: src/msgconv.c:344 src/msgen.c:325 src/msgfilter.c:459 src/msggrep.c:587 -#: src/msgmerge.c:548 +#: src/msgconv.c:362 src/msgen.c:357 src/msgfilter.c:458 src/msggrep.c:605 +#: src/msgmerge.c:583 #, c-format msgid "" " --add-location preserve '#: filename:line' lines (default)\n" msgstr " --add-location 保留源代碼位置 (預設)\n" -#: src/msgconv.c:346 src/msgen.c:327 src/msgfilter.c:461 src/msggrep.c:589 -#: src/msgmerge.c:550 +#: src/msgconv.c:364 src/msgen.c:359 src/msgfilter.c:460 src/msggrep.c:607 +#: src/msgmerge.c:585 #, c-format msgid " --strict strict Uniforum output style\n" msgstr " --strict 嚴格遵從 Uniforum 格式\n" -#: src/msgen.c:228 src/msgfmt.c:381 src/xgettext.c:580 +#: src/msgen.c:248 src/msgfmt.c:383 src/xgettext.c:634 #, c-format msgid "no input file given" msgstr "未指定輸入檔" -#: src/msgen.c:233 +#: src/msgen.c:253 #, c-format msgid "exactly one input file required" msgstr "需要恰好指定一個輸入檔" -#: src/msgen.c:274 +#: src/msgen.c:298 #, c-format msgid "Usage: %s [OPTION] INPUTFILE\n" msgstr "用法:%s [選項] 輸入檔\n" -#: src/msgen.c:279 +#: src/msgen.c:303 #, c-format, no-wrap msgid "" "Creates an English translation catalog. The input file is the last\n" @@ -1447,22 +1457,22 @@ "產生英文翻譯檔。輸入檔可以是 PO 檔或 POT 檔 (通常由 xgettext 產生)。\n" "未翻譯的條目會填上和 msgid 一樣的字串。\n" -#: src/msgen.c:291 +#: src/msgen.c:315 #, c-format msgid " INPUTFILE input PO or POT file\n" msgstr " 輸入檔 作為輸入的 PO 或 POT 檔\n" -#: src/msgexec.c:194 +#: src/msgexec.c:196 #, c-format msgid "missing command name" msgstr "缺少了指令名稱" -#: src/msgexec.c:240 +#: src/msgexec.c:257 #, c-format msgid "Usage: %s [OPTION] COMMAND [COMMAND-OPTION]\n" msgstr "用法:%s [選項] 指令 [指令選項]\n" -#: src/msgexec.c:245 +#: src/msgexec.c:262 #, c-format, no-wrap msgid "" "Applies a command to all translations of a translation catalog.\n" @@ -1477,7 +1487,7 @@ "即是 msgexec 的輸出結果。msgexec 的回傳值是所有\n" "指令執行的回傳值的最大值。\n" -#: src/msgexec.c:254 +#: src/msgexec.c:271 #, c-format, no-wrap msgid "" "A special builtin command called '0' outputs the translation, followed by a\n" @@ -1486,42 +1496,42 @@ "有一個稱為 '0' 的特殊內置指令,它會輸出所有翻譯條目,並隨後加上 null 位元。\n" "“msgexec 0” 的輸出適用於作為 “xargs -0” 的輸入。\n" -#: src/msgexec.c:264 src/msgfilter.c:408 +#: src/msgexec.c:281 src/msgfilter.c:401 #, c-format msgid " -i, --input=INPUTFILE input PO file\n" msgstr " -i, --input=INPUTFILE 作為輸入的 PO 檔\n" -#: src/msgexec.c:328 +#: src/msgexec.c:345 #, c-format msgid "write to stdout failed" msgstr "寫入至標準輸出時發生錯誤" -#: src/msgexec.c:355 src/msgfilter.c:664 +#: src/msgexec.c:389 #, c-format msgid "write to %s subprocess failed" msgstr "寫入至 %s 副進程時發生錯誤" -#: src/msgfilter.c:296 +#: src/msgfilter.c:289 #, c-format msgid "missing filter name" msgstr "未指定過濾器" -#: src/msgfilter.c:320 +#: src/msgfilter.c:313 #, c-format msgid "at least one sed script must be specified" msgstr "必須指定至少一個 sed script" -#: src/msgfilter.c:395 +#: src/msgfilter.c:388 #, c-format msgid "Usage: %s [OPTION] FILTER [FILTER-OPTION]\n" msgstr "用法:%s [選項] 過濾器 [過濾器選項]\n" -#: src/msgfilter.c:399 +#: src/msgfilter.c:392 #, c-format msgid "Applies a filter to all translations of a translation catalog.\n" msgstr "對於翻譯檔中的所有翻譯條目進行過濾。\n" -#: src/msgfilter.c:423 +#: src/msgfilter.c:416 #, c-format msgid "" "The FILTER can be any program that reads a translation from standard input\n" @@ -1530,18 +1540,18 @@ "<過濾器>可以是任何由標準輸入讀入翻譯條目\n" "並將修改後的翻譯寫進標準輸出的程式。\n" -#: src/msgfilter.c:428 +#: src/msgfilter.c:421 #, c-format msgid "Useful FILTER-OPTIONs when the FILTER is 'sed':\n" msgstr "當<過濾器>是 ‘sed’ 時一些比較有用的選項:\n" -#: src/msgfilter.c:430 +#: src/msgfilter.c:423 #, c-format msgid "" " -e, --expression=SCRIPT add SCRIPT to the commands to be executed\n" msgstr "" -#: src/msgfilter.c:432 +#: src/msgfilter.c:425 #, c-format msgid "" " -f, --file=SCRIPTFILE add the contents of SCRIPTFILE to the " @@ -1549,13 +1559,13 @@ " to be executed\n" msgstr "" -#: src/msgfilter.c:435 +#: src/msgfilter.c:428 #, c-format msgid "" " -n, --quiet, --silent suppress automatic printing of pattern space\n" msgstr " -n, --quiet, --silent 不會自動顯示過濾後的結果\n" -#: src/msgfilter.c:447 src/msggrep.c:577 +#: src/msgfilter.c:446 src/msggrep.c:595 #, c-format msgid "" " --no-escape do not use C escapes in output (default)\n" @@ -1563,124 +1573,106 @@ " --no-escape 輸出結果不使用 C 轉義控制序列\n" " (escape sequence),這是預設運作方式\n" -#: src/msgfilter.c:453 src/msggrep.c:583 +#: src/msgfilter.c:452 src/msggrep.c:601 #, c-format msgid " --indent indented output style\n" msgstr " --indent 將輸出結果進行縮排\n" -#: src/msgfilter.c:455 +#: src/msgfilter.c:454 #, c-format msgid "" " --keep-header keep header entry unmodified, don't filter it\n" msgstr " --keep-header 保護標頭內容,過濾內容時不會被更改\n" -#: src/msgfilter.c:587 -#, c-format -msgid "Not yet implemented." -msgstr "功能尚未編寫。" - -#: src/msgfilter.c:616 -#, c-format -msgid "cannot set up nonblocking I/O to %s subprocess" -msgstr "無法和 %s 副進程建立非專用的 I/O" - -#: src/msgfilter.c:644 -#, c-format -msgid "communication with %s subprocess failed" -msgstr "和 %s 副進程溝通時出現錯誤" - -#: src/msgfilter.c:695 -#, c-format -msgid "read from %s subprocess failed" -msgstr "由 %s 副進程讀入資料時出現錯誤" - -#: src/msgfilter.c:711 -#, c-format -msgid "%s subprocess terminated with exit code %d" -msgstr "%s 副進程已終止,錯誤碼為 %d" - -#: src/msgfmt.c:302 +#: src/msgfmt.c:304 #, c-format msgid "the argument to %s should be a single punctuation character" msgstr "%s 的參數應該是一個標點符號" -#: src/msgfmt.c:349 +#: src/msgfmt.c:351 #, c-format msgid "invalid endianness: %s" msgstr "" #. This is a proper name. See the gettext manual, section Names. -#: src/msgfmt.c:370 src/msgunfmt.c:256 src/xgettext.c:536 +#: src/msgfmt.c:372 src/msgunfmt.c:268 src/xgettext.c:590 msgid "Ulrich Drepper" msgstr "" -#: src/msgfmt.c:423 src/msgfmt.c:445 src/msgfmt.c:467 src/msgunfmt.c:318 -#: src/msgunfmt.c:341 +#: src/msgfmt.c:425 src/msgfmt.c:447 src/msgfmt.c:469 src/msgunfmt.c:330 +#: src/msgunfmt.c:353 #, c-format msgid "%s requires a \"-d directory\" specification" msgstr "%s 需要指定 “-d 目錄” 選項" -#: src/msgfmt.c:438 src/msgfmt.c:460 src/msgunfmt.c:311 src/msgunfmt.c:334 +#: src/msgfmt.c:440 src/msgfmt.c:462 src/msgunfmt.c:323 src/msgunfmt.c:346 #, c-format msgid "%s requires a \"-l locale\" specification" msgstr "%s 需要指定 “-l locale” 選項" -#: src/msgfmt.c:476 src/msgunfmt.c:350 src/msgunfmt.c:356 +#: src/msgfmt.c:478 src/msgunfmt.c:362 src/msgunfmt.c:368 #, c-format msgid "%s is only valid with %s or %s" msgstr "%s 只能配合 %s 或 %s 一起使用才有效" -#: src/msgfmt.c:482 src/msgfmt.c:488 +#: src/msgfmt.c:484 src/msgfmt.c:490 #, c-format msgid "%s is only valid with %s, %s or %s" msgstr "%s 只能配合 %s、%s 或 %s 一起使用才有效" -#: src/msgfmt.c:599 +#. TRANSLATORS: The prefix before a statistics message. The argument +#. is a file name or a comma separated list of file names. +#: src/msgfmt.c:616 +#, c-format +msgid "%s: " +msgstr "" + +#: src/msgfmt.c:620 #, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "已翻譯 %d 個條目" -#: src/msgfmt.c:604 +#: src/msgfmt.c:625 #, c-format msgid ", %d fuzzy translation" msgid_plural ", %d fuzzy translations" msgstr[0] ",有 %d 個條目標記為模糊翻譯" -#: src/msgfmt.c:609 +#: src/msgfmt.c:630 #, c-format msgid ", %d untranslated message" msgid_plural ", %d untranslated messages" msgstr[0] ",還有 %d 個條目未翻譯" -#: src/msgfmt.c:629 +#: src/msgfmt.c:650 #, c-format msgid "Usage: %s [OPTION] filename.po ...\n" msgstr "用法:%s [選項] filename.po ...\n" -#: src/msgfmt.c:633 +#: src/msgfmt.c:654 #, c-format msgid "Generate binary message catalog from textual translation description.\n" msgstr "由文字模式翻譯檔產生二元碼翻譯檔。\n" -#: src/msgfmt.c:638 src/xgettext.c:771 +#: src/msgfmt.c:659 src/xgettext.c:825 #, c-format, no-wrap msgid "" "Mandatory arguments to long options are mandatory for short options too.\n" "Similarly for optional arguments.\n" msgstr "長選項必要的參數在使用短選項時也是必要的。對於選擇性的參數也一樣。\n" -#: src/msgfmt.c:645 +#: src/msgfmt.c:666 #, c-format msgid " filename.po ... input files\n" msgstr " filename.po ... 輸入檔\n" -#: src/msgfmt.c:652 src/msgmerge.c:485 src/msgunfmt.c:426 src/xgettext.c:819 +#: src/msgfmt.c:673 src/msgmerge.c:512 src/msgunfmt.c:438 src/xgettext.c:873 #, c-format msgid "Operation mode:\n" msgstr "操作模式:\n" -#: src/msgfmt.c:654 +#: src/msgfmt.c:675 #, c-format msgid "" " -j, --java Java mode: generate a Java ResourceBundle " @@ -1688,7 +1680,7 @@ msgstr "" " -j, --java Java 模式:產生 Java ResourceBundle class\n" -#: src/msgfmt.c:656 +#: src/msgfmt.c:677 #, c-format msgid "" " --java2 like --java, and assume Java2 (JDK 1.2 or " @@ -1697,12 +1689,12 @@ " --java2 類似 --java,假設格式為 Java2 (JDK 1.2 或以" "上)\n" -#: src/msgfmt.c:658 +#: src/msgfmt.c:679 #, c-format msgid " --csharp C# mode: generate a .NET .dll file\n" msgstr " --csharp C# 模式,會產生 .NET .dll 檔\n" -#: src/msgfmt.c:660 +#: src/msgfmt.c:681 #, c-format msgid "" " --csharp-resources C# resources mode: generate a .NET .resources " @@ -1711,39 +1703,39 @@ " --csharp-resources C# resources 模式,會產生 .NET .resources 檔" "案\n" -#: src/msgfmt.c:662 +#: src/msgfmt.c:683 #, c-format msgid "" " --tcl Tcl mode: generate a tcl/msgcat .msg file\n" msgstr " --tcl Tcl 模式:產生 tcl/msgcat .msg 檔\n" -#: src/msgfmt.c:664 +#: src/msgfmt.c:685 #, c-format msgid " --qt Qt mode: generate a Qt .qm file\n" msgstr " --qt Qt 模式:產生 Qt .qm 檔\n" -#: src/msgfmt.c:671 +#: src/msgfmt.c:692 #, c-format msgid " --strict enable strict Uniforum mode\n" msgstr " --strict 強制使用 Uniforum 格式翻譯檔\n" -#: src/msgfmt.c:673 src/xgettext.c:795 +#: src/msgfmt.c:694 src/xgettext.c:849 #, c-format msgid "If output file is -, output is written to standard output.\n" msgstr "如果輸出檔是 - 的話,則會在標準輸出顯示結果。\n" -#: src/msgfmt.c:676 +#: src/msgfmt.c:697 #, c-format msgid "Output file location in Java mode:\n" msgstr "Java 模式的輸出檔位置:\n" -#: src/msgfmt.c:678 src/msgfmt.c:692 src/msgunfmt.c:446 src/msgunfmt.c:457 +#: src/msgfmt.c:699 src/msgfmt.c:713 src/msgunfmt.c:458 src/msgunfmt.c:469 #, c-format msgid " -r, --resource=RESOURCE resource name\n" msgstr " -r, --resource=RESOURCE resource 名稱\n" -#: src/msgfmt.c:680 src/msgfmt.c:694 src/msgfmt.c:704 src/msgunfmt.c:448 -#: src/msgunfmt.c:459 src/msgunfmt.c:469 +#: src/msgfmt.c:701 src/msgfmt.c:715 src/msgfmt.c:725 src/msgunfmt.c:460 +#: src/msgunfmt.c:471 src/msgunfmt.c:481 #, c-format msgid "" " -l, --locale=LOCALE locale name, either language or " @@ -1752,13 +1744,13 @@ " -l, --locale=LOCALE 指定語言,可以用語言名稱或者 xy_XY 格式的\n" " 語言代號\n" -#: src/msgfmt.c:682 +#: src/msgfmt.c:703 #, c-format msgid "" " -d DIRECTORY base directory of classes directory hierarchy\n" msgstr " -d 目錄 class 目錄層的基本目錄\n" -#: src/msgfmt.c:684 +#: src/msgfmt.c:705 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -1769,48 +1761,48 @@ "class 名稱是由語言名稱和 resource 名稱合併來決定的,兩者之間會用底線分隔。\n" "-d 選項是必須的。class 檔會存放在指定的目錄。\n" -#: src/msgfmt.c:690 +#: src/msgfmt.c:711 #, c-format msgid "Output file location in C# mode:\n" msgstr "C# 模式的輸出檔位置:\n" -#: src/msgfmt.c:696 src/msgunfmt.c:461 +#: src/msgfmt.c:717 src/msgunfmt.c:473 #, c-format msgid "" " -d DIRECTORY base directory for locale dependent .dll " "files\n" msgstr "" -#: src/msgfmt.c:698 +#: src/msgfmt.c:719 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is written in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgfmt.c:702 +#: src/msgfmt.c:723 #, c-format msgid "Output file location in Tcl mode:\n" msgstr "Tcl 模式的輸出檔位置:\n" -#: src/msgfmt.c:706 src/msgunfmt.c:471 +#: src/msgfmt.c:727 src/msgunfmt.c:483 #, c-format msgid " -d DIRECTORY base directory of .msg message catalogs\n" msgstr "" -#: src/msgfmt.c:708 +#: src/msgfmt.c:729 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is written in the\n" "specified directory.\n" msgstr "" -#: src/msgfmt.c:720 src/xgettext.c:811 +#: src/msgfmt.c:741 src/xgettext.c:865 #, c-format msgid "Input file interpretation:\n" msgstr "輸入檔處理:\n" -#: src/msgfmt.c:722 +#: src/msgfmt.c:743 #, c-format msgid "" " -c, --check perform all the checks implied by\n" @@ -1821,19 +1813,19 @@ " --check-format, --check-header, --check-" "domain\n" -#: src/msgfmt.c:725 +#: src/msgfmt.c:746 #, c-format msgid " --check-format check language dependent format strings\n" msgstr " --check-format 檢查各種程式語言的格式字串\n" -#: src/msgfmt.c:727 +#: src/msgfmt.c:748 #, c-format msgid "" " --check-header verify presence and contents of the header " "entry\n" msgstr " --check-header 確保標頭欄位存在和內容正確\n" -#: src/msgfmt.c:729 +#: src/msgfmt.c:750 #, c-format msgid "" " --check-domain check for conflicts between domain directives\n" @@ -1842,7 +1834,7 @@ " --check-domain 檢查 domain 關鍵字和 --output-file 選項之間\n" " 有沒有衝突\n" -#: src/msgfmt.c:732 +#: src/msgfmt.c:753 #, c-format msgid "" " -C, --check-compatibility check that GNU msgfmt behaves like X/Open " @@ -1851,7 +1843,7 @@ " -C, --check-compatibility 確保 GNU msgfmt 運作的方式和 X/Open msgfmt 兼" "容\n" -#: src/msgfmt.c:734 +#: src/msgfmt.c:755 #, c-format msgid "" " --check-accelerators[=CHAR] check presence of keyboard accelerators " @@ -1859,111 +1851,111 @@ " menu items\n" msgstr " --check-accelerators[=CHAR] 檢查選單項目中代表捷徑鍵的字元\n" -#: src/msgfmt.c:737 +#: src/msgfmt.c:758 #, c-format msgid " -f, --use-fuzzy use fuzzy entries in output\n" msgstr " -f, --use-fuzzy 在輸出結果中顯示模糊翻譯\n" -#: src/msgfmt.c:742 +#: src/msgfmt.c:763 #, c-format msgid "" " -a, --alignment=NUMBER align strings to NUMBER bytes (default: %d)\n" msgstr "" " -a, --alignment=數字 以<數字>個位元組為單位配置字串位置(預設:%d)\n" -#: src/msgfmt.c:744 +#: src/msgfmt.c:765 #, c-format msgid "" " --no-hash binary file will not include the hash table\n" msgstr "" " --no-hash 二元碼檔不會包含雜湊表 (hash table) 在內\n" -#: src/msgfmt.c:753 +#: src/msgfmt.c:774 #, c-format msgid " --statistics print statistics about translations\n" msgstr " --statistics 顯示有關翻譯訊息的統計\n" -#: src/msgfmt.c:755 src/msgmerge.c:572 src/msgunfmt.c:515 +#: src/msgfmt.c:776 src/msgmerge.c:607 src/msgunfmt.c:533 #, c-format msgid " -v, --verbose increase verbosity level\n" msgstr " -v, --verbose 顯示詳細資訊\n" -#: src/msgfmt.c:869 +#: src/msgfmt.c:890 #, c-format msgid "warning: PO file header missing or invalid\n" msgstr "警告:缺少了 PO 檔的標頭或是格式無效\n" -#: src/msgfmt.c:872 +#: src/msgfmt.c:893 #, c-format msgid "warning: charset conversion will not work\n" msgstr "警告:字元集轉換的功能不會生效\n" -#: src/msgfmt.c:882 +#: src/msgfmt.c:903 #, c-format msgid "warning: PO file header fuzzy\n" msgstr "警告:PO 檔的標頭仍然是模糊狀態\n" -#: src/msgfmt.c:884 +#: src/msgfmt.c:905 #, c-format msgid "warning: older versions of msgfmt will give an error on this\n" msgstr "警告:較舊版本的 msgfmt 遇到此檔案時會印出錯誤訊息\n" -#: src/msgfmt.c:908 +#: src/msgfmt.c:929 #, c-format msgid "domain name \"%s\" not suitable as file name" msgstr "領域名稱 “%s” 不適合作為檔案名稱" -#: src/msgfmt.c:913 +#: src/msgfmt.c:934 #, c-format msgid "domain name \"%s\" not suitable as file name: will use prefix" msgstr "領域名稱 “%s” 不適合作為檔案名稱:將使用字首" -#: src/msgfmt.c:927 +#: src/msgfmt.c:948 #, c-format msgid "`domain %s' directive ignored" msgstr "忽略‘domain %s’指令" -#: src/msgfmt.c:987 +#: src/msgfmt.c:1008 #, c-format msgid "empty `msgstr' entry ignored" msgstr "忽略空的‘msgstr’欄位" -#: src/msgfmt.c:988 +#: src/msgfmt.c:1009 #, c-format msgid "fuzzy `msgstr' entry ignored" msgstr "忽略模糊的‘msgstr’欄位" -#: src/msgfmt.c:1037 +#: src/msgfmt.c:1058 #, c-format msgid "%s: warning: source file contains fuzzy translation" msgstr "%s:警告:原始檔包含模糊翻譯條目" -#: src/msggrep.c:255 src/po-lex.c:658 src/read-mo.c:86 -#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:140 -#: src/x-c.c:455 src/x-csharp.c:164 src/x-elisp.c:146 src/x-glade.c:604 -#: src/x-java.c:182 src/x-librep.c:148 src/x-lisp.c:213 src/x-perl.c:226 -#: src/x-perl.c:301 src/x-perl.c:394 src/x-php.c:164 src/x-python.c:175 -#: src/x-rst.c:234 src/x-scheme.c:172 src/x-sh.c:156 src/x-smalltalk.c:92 -#: src/x-tcl.c:151 src/x-ycp.c:92 +#: src/msggrep.c:258 src/po-lex.c:657 src/read-mo.c:86 +#: src/read-properties.c:89 src/read-stringtable.c:98 src/x-awk.c:139 +#: src/x-c.c:484 src/x-csharp.c:163 src/x-elisp.c:145 src/x-glade.c:616 +#: src/x-java.c:181 src/x-librep.c:147 src/x-lisp.c:212 src/x-perl.c:227 +#: src/x-perl.c:302 src/x-perl.c:395 src/x-php.c:163 src/x-python.c:174 +#: src/x-rst.c:233 src/x-scheme.c:171 src/x-sh.c:155 src/x-smalltalk.c:91 +#: src/x-tcl.c:150 src/x-ycp.c:91 #, c-format msgid "error while reading \"%s\"" msgstr "讀取 “%s” 時出現錯誤" -#: src/msggrep.c:484 +#: src/msggrep.c:496 #, fuzzy, c-format msgid "" "option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been " "specified" msgstr "未指定 ‘K’、‘T’ 或 ‘C’ 選項前不能使用選項 ‘%c’" -#: src/msggrep.c:504 +#: src/msggrep.c:516 #, c-format, no-wrap msgid "" "Extracts all messages of a translation catalog that match a given pattern\n" "or belong to some given source files.\n" msgstr "抽取翻譯檔中的訊息,而這些訊息符合某種樣式或屬於某個指定的來源檔。\n" -#: src/msggrep.c:530 +#: src/msggrep.c:542 #, fuzzy, c-format, no-wrap msgid "" "Message selection:\n" @@ -2032,7 +2024,7 @@ " -f, --file=FILE PATTERN 採用 FILE 的內容 \n" " -i, --ignore-case 不區分大小寫\n" -#: src/msggrep.c:579 +#: src/msggrep.c:597 #, c-format msgid "" " --escape use C escapes in output, no extended chars\n" @@ -2041,17 +2033,17 @@ "sequence)\n" " ,而不使用非 ASCII 字元\n" -#: src/msggrep.c:600 +#: src/msggrep.c:618 #, c-format msgid " --sort-output generate sorted output\n" msgstr " --sort-output 將訊息排序\n" -#: src/msggrep.c:602 +#: src/msggrep.c:620 #, c-format msgid " --sort-by-file sort output by file location\n" msgstr " --sort-by-file 根據檔案位置排序\n" -#: src/msginit.c:285 +#: src/msginit.c:297 msgid "" "You are in a language indifferent environment. Please set\n" "your LANG environment variable, as described in the ABOUT-NLS\n" @@ -2060,7 +2052,7 @@ "系統環境沒有任何和語言有關的設定。請根據 ABOUT-NLS 檔案所述,\n" "設定 LANG 環境變數。這是測試翻譯時的必要步驟。\n" -#: src/msginit.c:309 +#: src/msginit.c:321 #, c-format msgid "" "Output file %s already exists.\n" @@ -2071,24 +2063,24 @@ "請透過 --locale 選項指定語系或\n" "--output-file 選項指定輸出的 .po 檔。\n" -#: src/msginit.c:335 +#: src/msginit.c:347 #, c-format msgid "Created %s.\n" msgstr "已建立 %s。\n" -#: src/msginit.c:355 +#: src/msginit.c:367 #, c-format, no-wrap msgid "" "Creates a new PO file, initializing the meta information with values from the\n" "user's environment.\n" msgstr "建立新的 PO 檔,並由使用者環境取得初始化所需的檔頭資料。\n" -#: src/msginit.c:365 +#: src/msginit.c:377 #, c-format msgid " -i, --input=INPUTFILE input POT file\n" msgstr " -i, --input=輸入檔 輸入的 POT 檔\n" -#: src/msginit.c:367 +#: src/msginit.c:379 #, c-format msgid "" "If no input file is given, the current directory is searched for the POT " @@ -2098,12 +2090,12 @@ "如果沒有指定輸入檔,會在目前的目錄搜尋 POT 檔。\n" "如果輸入檔是 -,則讀取標準輸入的內容。\n" -#: src/msginit.c:373 +#: src/msginit.c:385 #, c-format msgid " -o, --output-file=FILE write output to specified PO file\n" msgstr " -o, --output-file=FILE 將輸出的內容寫入指定的 PO 檔\n" -#: src/msginit.c:375 +#: src/msginit.c:387 #, c-format msgid "" "If no output file is given, it depends on the --locale option or the user's\n" @@ -2112,18 +2104,18 @@ "如果沒有指定輸出檔,檔名將會由 --locale 選項或使用者的語系決定。\n" "如果輸出檔是 -,則會將結果寫至標準輸出。\n" -#: src/msginit.c:388 +#: src/msginit.c:400 #, c-format msgid " -l, --locale=LL_CC set target locale\n" msgstr " -l, --locale=LL_CC 指定地區設定\n" -#: src/msginit.c:390 +#: src/msginit.c:402 #, c-format msgid "" " --no-translator assume the PO file is automatically generated\n" msgstr " --no-translator 假設 PO 檔是自動產生的\n" -#: src/msginit.c:450 +#: src/msginit.c:468 msgid "" "Found more than one .pot file.\n" "Please specify the input .pot file through the --input option.\n" @@ -2131,12 +2123,12 @@ "找到多於一個的 .pot 檔。\n" "請透過 --input 選項指定作為輸入檔的 .pot 檔。\n" -#: src/msginit.c:458 src/msginit.c:463 +#: src/msginit.c:476 src/msginit.c:481 #, c-format msgid "error reading current directory" msgstr "讀取目前的目錄時發生錯誤" -#: src/msginit.c:471 +#: src/msginit.c:489 msgid "" "Found no .pot file in the current directory.\n" "Please specify the input .pot file through the --input option.\n" @@ -2144,14 +2136,14 @@ "在目前目錄中找不到任何 .pot 檔。\n" "請透過 --input 選項指定作為輸入檔的 .pot 檔。\n" -#: src/msginit.c:860 src/msginit.c:935 src/msginit.c:1095 src/msginit.c:1190 -#: src/read-csharp.c:82 src/read-java.c:80 src/read-resources.c:83 -#: src/read-tcl.c:126 src/write-resources.c:103 +#: src/msginit.c:918 src/msginit.c:993 src/msginit.c:1153 src/msginit.c:1248 +#: src/read-csharp.c:83 src/read-java.c:81 src/read-resources.c:84 +#: src/read-tcl.c:127 src/write-resources.c:104 #, c-format msgid "%s subprocess failed with exit code %d" msgstr "%s 副進程失敗,錯誤碼為 %d" -#: src/msginit.c:1060 +#: src/msginit.c:1118 msgid "" "The new message catalog should contain your email address, so that users " "can\n" @@ -2165,47 +2157,47 @@ #. TRANSLATORS: "English" needs to be replaced by your language. #. For example in it.po write "Traduzioni italiani ...", #. *not* "Traduzioni inglesi ...". -#: src/msginit.c:1465 +#: src/msginit.c:1534 #, c-format msgid "English translations for %s package" msgstr "Traditional Chinese translation for %s" -#: src/msgl-cat.c:176 src/msgl-charset.c:87 src/msgl-iconv.c:225 +#: src/msgl-cat.c:177 src/msgl-charset.c:86 src/msgl-iconv.c:247 #, c-format msgid "present charset \"%s\" is not a portable encoding name" msgstr "目前的字元集編碼 “%s” 不是通用的編碼名稱" -#: src/msgl-cat.c:187 src/msgl-iconv.c:237 +#: src/msgl-cat.c:188 src/msgl-iconv.c:259 #, c-format msgid "two different charsets \"%s\" and \"%s\" in input file" msgstr "輸入檔有兩種不同的字元集編碼 “%s” 和 “%s”" -#: src/msgl-cat.c:202 +#: src/msgl-cat.c:203 #, c-format msgid "" "input file `%s' doesn't contain a header entry with a charset specification" msgstr "輸入檔‘%s’的標頭欄位中沒有指定字元集" -#: src/msgl-cat.c:206 +#: src/msgl-cat.c:207 #, c-format msgid "" "domain \"%s\" in input file `%s' doesn't contain a header entry with a " "charset specification" msgstr "輸入檔 ‘%2$s’ 的 domain “%1$s” 的標頭欄位中沒有指定字元集" -#: src/msgl-cat.c:388 src/msgl-iconv.c:360 +#: src/msgl-cat.c:391 src/msgl-iconv.c:375 #, c-format msgid "target charset \"%s\" is not a portable encoding name." msgstr "目標的字元集編碼 “%s” 不是通用的編碼名稱。" -#: src/msgl-cat.c:439 src/msgl-cat.c:445 src/msgl-charset.c:93 -#: src/msgl-charset.c:128 src/po-xerror.c:121 src/po-xerror.c:146 -#: src/xgettext.c:2827 +#: src/msgl-cat.c:442 src/msgl-cat.c:448 src/msgl-charset.c:92 +#: src/msgl-charset.c:127 src/po-xerror.c:121 src/po-xerror.c:146 +#: src/xgettext.c:3015 #, c-format msgid "warning: " msgstr "警告:" -#: src/msgl-cat.c:440 +#: src/msgl-cat.c:443 #, c-format msgid "" "Input files contain messages in different encodings, UTF-8 among others.\n" @@ -2213,7 +2205,7 @@ msgstr "" "輸入檔含有不同編碼的訊息,其中一種是 UTF-8。會將輸出的編碼轉換為 UTF-8。\n" -#: src/msgl-cat.c:446 +#: src/msgl-cat.c:449 #, c-format msgid "" "Input files contain messages in different encodings, %s and %s among " @@ -2224,7 +2216,7 @@ "輸入檔含有不同編碼的訊息,其中包括 %s 和 %s。會將輸出的編碼轉換為 UTF-8。\n" "若要選擇另一種輸出編碼,請使用 --to-code 選項。\n" -#: src/msgl-cat.c:485 +#: src/msgl-cat.c:488 #, c-format msgid "" "Conversion of file %s from %s encoding to %s encoding\n" @@ -2233,7 +2225,7 @@ "UTF-8 encoded from the beginning, i.e. already in your source code files.\n" msgstr "" -#: src/msgl-charset.c:94 +#: src/msgl-charset.c:93 #, c-format msgid "" "Locale charset \"%s\" is different from\n" @@ -2245,12 +2237,12 @@ "‘%s’的輸出可能有誤。\n" "可行的解決方法包括:\n" -#: src/msgl-charset.c:101 +#: src/msgl-charset.c:100 #, c-format msgid "- Set LC_ALL to a locale with encoding %s.\n" msgstr "- 設定 LC_ALL 環境變數為使用編碼 %s 的語系。\n" -#: src/msgl-charset.c:106 +#: src/msgl-charset.c:105 #, c-format msgid "" "- Convert the translation catalog to %s using 'msgconv',\n" @@ -2261,7 +2253,7 @@ " 然後套用 ‘%s’ 指令過濾內容,\n" " 最後再用 ‘msgconv’ 將翻譯檔的字元集還原為 %s。\n" -#: src/msgl-charset.c:115 +#: src/msgl-charset.c:114 #, c-format msgid "" "- Set LC_ALL to a locale with encoding %s,\n" @@ -2274,7 +2266,7 @@ " 然後套用 ‘%s’ 指令過濾內容,\n" " 最後再用 ‘msgconv’ 將翻譯檔的字元集還原為 %s。\n" -#: src/msgl-charset.c:129 +#: src/msgl-charset.c:128 #, c-format msgid "" "Locale charset \"%s\" is not a portable encoding name.\n" @@ -2285,75 +2277,75 @@ "‘%s’ 的輸出可能有誤。\n" "設定 LC_ALL=C 是一個可行的解決方法。\n" -#: src/msgl-check.c:93 +#: src/msgl-check.c:130 msgid "plural expression can produce negative values" msgstr "複數表示式可能產生負數" -#: src/msgl-check.c:103 +#: src/msgl-check.c:141 #, c-format msgid "nplurals = %lu but plural expression can produce values as large as %lu" msgstr "nplurals = %lu,但複數表示式的最大值可能等於 %lu" -#: src/msgl-check.c:147 +#: src/msgl-check.c:187 msgid "plural expression can produce division by zero" msgstr "複數表示式會引致被 0 整除的錯誤" -#: src/msgl-check.c:152 +#: src/msgl-check.c:192 msgid "plural expression can produce integer overflow" msgstr "複數表示式會引致整數溢位的錯誤" -#: src/msgl-check.c:157 +#: src/msgl-check.c:197 msgid "" "plural expression can produce arithmetic exceptions, possibly division by " "zero" msgstr "複數表示式會引致運算錯誤,例如被 0 整除" -#: src/msgl-check.c:189 +#: src/msgl-check.c:266 #, fuzzy, c-format msgid "Try using the following, valid for %s:" msgstr "嘗試使用下列 %s 中屬於合法的型態:\n" -#: src/msgl-check.c:276 src/msgl-check.c:300 +#: src/msgl-check.c:352 src/msgl-check.c:376 #, fuzzy msgid "message catalog has plural form translations" msgstr "翻譯檔含有複數型態的翻譯..." -#: src/msgl-check.c:278 +#: src/msgl-check.c:354 #, fuzzy msgid "but header entry lacks a \"plural=EXPRESSION\" attribute" msgstr "...但檔頭缺少了像 “plural=表示式” 的項目" -#: src/msgl-check.c:302 +#: src/msgl-check.c:378 #, fuzzy msgid "but header entry lacks a \"nplurals=INTEGER\" attribute" msgstr "...但檔頭缺少了像 “nplurals=整數” 的項目" -#: src/msgl-check.c:338 +#: src/msgl-check.c:414 msgid "invalid nplurals value" msgstr "無效的 nplurals 值" -#: src/msgl-check.c:360 +#: src/msgl-check.c:436 msgid "invalid plural expression" msgstr "無效的複數表示式" -#: src/msgl-check.c:390 src/msgl-check.c:406 +#: src/msgl-check.c:466 src/msgl-check.c:482 #, fuzzy, c-format msgid "nplurals = %lu" msgstr "nplurals = %lu..." -#: src/msgl-check.c:392 +#: src/msgl-check.c:468 #, fuzzy, c-format msgid "but some messages have only one plural form" msgid_plural "but some messages have only %lu plural forms" msgstr[0] "...但某些訊息只有 %lu 種複數型態" -#: src/msgl-check.c:408 +#: src/msgl-check.c:484 #, fuzzy, c-format msgid "but some messages have one plural form" msgid_plural "but some messages have %lu plural forms" msgstr[0] "...但某些訊息有 %lu 種複數型態" -#: src/msgl-check.c:432 +#: src/msgl-check.c:508 msgid "" "message catalog has plural form translations, but lacks a header entry with " "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"" @@ -2361,82 +2353,82 @@ "翻譯檔含有複數型態的翻譯,但缺少了以下的標頭欄位:\n" "“Plural-Forms: nplurals=<整數>; plural=<表示式>;”" -#: src/msgl-check.c:526 +#: src/msgl-check.c:602 msgid "`msgid' and `msgid_plural' entries do not both begin with '\\n'" msgstr "`msgid' 和 `msgid_plural' 欄位並非同時以 '\\n' 開始" -#: src/msgl-check.c:534 +#: src/msgl-check.c:610 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both begin with '\\n'" msgstr "‘msgid’和‘msgstr[%u]’欄位並非同時以‘\\n’開始" -#: src/msgl-check.c:549 +#: src/msgl-check.c:625 msgid "`msgid' and `msgstr' entries do not both begin with '\\n'" msgstr "‘msgid’和‘msgstr’欄位並非同時以‘\\n’開始" -#: src/msgl-check.c:567 +#: src/msgl-check.c:643 msgid "`msgid' and `msgid_plural' entries do not both end with '\\n'" msgstr "‘msgid’和‘msgid_plural’欄位並非同時以‘\\n’結束" -#: src/msgl-check.c:575 +#: src/msgl-check.c:651 #, c-format msgid "`msgid' and `msgstr[%u]' entries do not both end with '\\n'" msgstr "‘msgid’和‘msgstr[%u]’欄位並非同時以‘\\n’結束" -#: src/msgl-check.c:590 +#: src/msgl-check.c:666 msgid "`msgid' and `msgstr' entries do not both end with '\\n'" msgstr "‘msgid’和‘msgstr’欄位並非同時以‘\\n’結束" -#: src/msgl-check.c:602 +#: src/msgl-check.c:678 msgid "plural handling is a GNU gettext extension" msgstr "複數處理是 GNU gettext 的擴展功能" -#: src/msgl-check.c:645 +#: src/msgl-check.c:720 #, c-format msgid "msgstr lacks the keyboard accelerator mark '%c'" msgstr "msgstr 缺少了捷徑鍵標記‘%c’" -#: src/msgl-check.c:655 +#: src/msgl-check.c:730 #, c-format msgid "msgstr has too many keyboard accelerator marks '%c'" msgstr "msgstr 含有過多的捷徑鍵標記‘%c’" -#: src/msgl-check.c:695 -#, c-format -msgid "headerfield `%s' missing in header\n" +#: src/msgl-check.c:776 +#, fuzzy, c-format +msgid "header field `%s' missing in header\n" msgstr "缺少了標頭欄位‘%s’\n" -#: src/msgl-check.c:703 +#: src/msgl-check.c:784 #, c-format msgid "header field `%s' should start at beginning of line\n" msgstr "標頭欄位‘%s’應該位於行首\n" -#: src/msgl-check.c:717 +#: src/msgl-check.c:809 msgid "some header fields still have the initial default value\n" msgstr "某些標頭欄位仍然是預設值\n" -#: src/msgl-check.c:730 -#, c-format -msgid "field `%s' still has initial default value\n" -msgstr "標頭欄位‘%s’仍然是預設值\n" +#: src/msgl-check.c:826 +#, fuzzy, c-format +msgid "header field `%s' still has the initial default value\n" +msgstr "某些標頭欄位仍然是預設值\n" -#: src/msgl-iconv.c:64 +#: src/msgl-iconv.c:65 #, c-format msgid "%s: input is not valid in \"%s\" encoding" msgstr "" # lib/copy-file.c:61 src/file-list.c:57 src/po-lex.c:726 src/read-mo.c:171 src/urlget.c:204 src/xgettext.c:823 src/xgettext.c:836 src/xgettext.c:846 #, c-format -#: src/msgl-iconv.c:68 +#: src/msgl-iconv.c:69 #, fuzzy, c-format msgid "%s: error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "當開啟檔案 “%s” 準備讀取時發生錯誤" -#: src/msgl-iconv.c:268 +#: src/msgl-iconv.c:290 msgid "input file doesn't contain a header entry with a charset specification" msgstr "輸入檔沒有指定字元集的標頭欄位" -#: src/msgl-iconv.c:290 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 -#: src/x-python.c:617 src/xgettext.c:638 +#: src/msgl-iconv.c:305 src/recode-sr-latin.c:287 src/recode-sr-latin.c:292 +#: src/x-python.c:622 src/xgettext.c:692 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), and iconv() does " @@ -2445,7 +2437,7 @@ "不支援將字元集由 “%s” 轉換至 “%s”。%s 需要 iconv(),但 iconv() 不支援此種轉換" "方式。" -#: src/msgl-iconv.c:320 +#: src/msgl-iconv.c:335 #, c-format msgid "" "Conversion from \"%s\" to \"%s\" introduces duplicates: some different " @@ -2453,8 +2445,8 @@ msgstr "" "由 “%s” 轉換至 “%s” 會產生重複訊息:有些本來不同的 msgid 轉換後會變成相同。" -#: src/msgl-iconv.c:326 src/recode-sr-latin.c:301 src/x-python.c:624 -#: src/xgettext.c:645 +#: src/msgl-iconv.c:341 src/recode-sr-latin.c:301 src/x-python.c:629 +#: src/xgettext.c:699 #, c-format msgid "" "Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). This version was " @@ -2463,16 +2455,16 @@ "不支援將字元集由 “%s” 轉換至 “%s”。%s 需要 iconv(),但編譯此程式時沒有 iconv" "() 支援。" -#: src/msgmerge.c:361 src/msgmerge.c:367 +#: src/msgmerge.c:383 src/msgmerge.c:389 #, c-format msgid "%s is only valid with %s" msgstr "%s 只能和 %s 配合一起使用才有效" -#: src/msgmerge.c:421 +#: src/msgmerge.c:448 msgid "backup type" msgstr "備份方式" -#: src/msgmerge.c:458 +#: src/msgmerge.c:485 #, c-format, no-wrap msgid "" "Merges two Uniforum style .po files together. The def.po file is an\n" @@ -2492,51 +2484,51 @@ "的註解都會被捨棄,但特殊旗標註解和檔案位置都會被保留。比較時如果有不完全\n" "配合的字串出現,程式會以模糊配對的方式得出較好的結果。\n" -#: src/msgmerge.c:475 +#: src/msgmerge.c:502 #, c-format msgid " def.po translations referring to old sources\n" msgstr " def.po 舊版本的翻譯檔\n" -#: src/msgmerge.c:477 +#: src/msgmerge.c:504 #, c-format msgid " ref.pot references to new sources\n" msgstr " ref.pot 新版本程式的翻譯檔\n" -#: src/msgmerge.c:481 +#: src/msgmerge.c:508 #, c-format msgid "" " -C, --compendium=FILE additional library of message translations,\n" " may be specified more than once\n" msgstr " -C, --compendium=FILE 額外的翻譯記憶庫,選項可以使用多次\n" -#: src/msgmerge.c:487 +#: src/msgmerge.c:514 #, c-format msgid "" " -U, --update update def.po,\n" " do nothing if def.po already up to date\n" msgstr " -U, --update 更新 def.po (僅當 def.po 未更新時)\n" -#: src/msgmerge.c:499 +#: src/msgmerge.c:526 #, c-format msgid "Output file location in update mode:\n" msgstr "更新模式的檔案輸出位置:\n" -#: src/msgmerge.c:501 +#: src/msgmerge.c:528 #, c-format msgid "The result is written back to def.po.\n" msgstr "輸出結果會寫入至 def.po。\n" -#: src/msgmerge.c:503 +#: src/msgmerge.c:530 #, c-format msgid " --backup=CONTROL make a backup of def.po\n" msgstr " --backup=CONTROL 將 def.po 備份\n" -#: src/msgmerge.c:505 +#: src/msgmerge.c:532 #, c-format msgid " --suffix=SUFFIX override the usual backup suffix\n" msgstr " --suffix=SUFFIX 自行指定備份檔名末端的字串\n" -#: src/msgmerge.c:507 +#: src/msgmerge.c:534 #, c-format msgid "" "The version control method may be selected via the --backup option or " @@ -2554,7 +2546,7 @@ " existing, nil 若有數字的備份檔已經存在則使用數字,否則使用一般名稱\n" " simple, never 永遠使用普通方式備份\n" -#: src/msgmerge.c:514 +#: src/msgmerge.c:541 #, c-format msgid "" "The backup suffix is `~', unless set with --suffix or the " @@ -2564,62 +2556,59 @@ "備份檔的後置字元為‘~’,除非以 --suffix 選項或是 SIMPLE_BACKUP_SUFFIX\n" "環境變數指定。\n" -#: src/msgmerge.c:523 -#, c-format -msgid " -N, --no-fuzzy-matching do not use fuzzy matching\n" -msgstr " -N, --no-fuzzy-matching 不進行模糊字串配對\n" - -#: src/msgmerge.c:525 +#: src/msgmerge.c:552 #, fuzzy, c-format msgid "" " --previous keep previous msgids of translated messages\n" msgstr " --translated 只保留已翻譯條目,刪除未翻譯條目\n" -#: src/msgmerge.c:574 +#: src/msgmerge.c:609 src/urlget.c:192 #, c-format msgid " -q, --quiet, --silent suppress progress indicators\n" msgstr " -q, --quiet, --silent 隱藏進度指示\n" -#: src/msgmerge.c:1340 +#: src/msgmerge.c:1604 #, c-format msgid "this message should define plural forms" msgstr "此訊息應該有複數型態" -#: src/msgmerge.c:1363 +#: src/msgmerge.c:1627 #, c-format msgid "this message should not define plural forms" msgstr "此訊息不應有複數型態" -#: src/msgmerge.c:1701 +#: src/msgmerge.c:2030 #, c-format msgid "" "%sRead %ld old + %ld reference, merged %ld, fuzzied %ld, missing %ld, " "obsolete %ld.\n" msgstr "" "%s\n" -"讀入 %ld 舊翻譯 + %ld 參考條目。合併:%ld,模糊:%ld,未譯:%ld,過時:%" -"ld。\n" +"讀入 %ld 舊翻譯 + %ld 參考條目。合併:%ld,模糊:%ld,未譯:%ld,過時:" +"%ld。\n" -#: src/msgmerge.c:1709 +#: src/msgmerge.c:2038 src/urlget.c:306 src/urlget.c:353 src/urlget.c:395 +#: src/urlget.c:437 +#, c-format msgid " done.\n" msgstr " 完成。\n" -#: src/msgunfmt.c:296 src/msgunfmt.c:305 src/msgunfmt.c:328 +#: src/msgunfmt.c:308 src/msgunfmt.c:317 src/msgunfmt.c:340 #, c-format msgid "%s and explicit file names are mutually exclusive" msgstr "使用 %s 不能同時指定檔案名稱" -#: src/msgunfmt.c:415 +#: src/msgunfmt.c:427 #, c-format msgid "Usage: %s [OPTION] [FILE]...\n" msgstr "用法:%s [選項] [檔案]...\n" -#: src/msgunfmt.c:419 +#: src/msgunfmt.c:431 #, c-format msgid "Convert binary message catalog to Uniforum style .po file.\n" msgstr "將二元碼翻譯檔轉換為 Uniforum 型式的 .po 檔。\n" -#: src/msgunfmt.c:428 +#: src/msgunfmt.c:440 #, c-format msgid "" " -j, --java Java mode: input is a Java ResourceBundle " @@ -2627,12 +2616,12 @@ msgstr "" " -j, --java Java 模式:產生 Java ResourceBundle class\n" -#: src/msgunfmt.c:430 +#: src/msgunfmt.c:442 #, c-format msgid " --csharp C# mode: input is a .NET .dll file\n" msgstr " --csharp C# 模式:輸入檔是 .NET .dll 檔\n" -#: src/msgunfmt.c:432 +#: src/msgunfmt.c:444 #, c-format msgid "" " --csharp-resources C# resources mode: input is a .NET .resources " @@ -2641,24 +2630,24 @@ " --csharp-resources C# resources 模式:輸入內容是 .NET .resources " "檔案\n" -#: src/msgunfmt.c:434 +#: src/msgunfmt.c:446 #, c-format msgid "" " --tcl Tcl mode: input is a tcl/msgcat .msg file\n" msgstr "" " --tcl Tcl 模式:輸入資料是 tcl/msgcat .msg 檔\n" -#: src/msgunfmt.c:439 +#: src/msgunfmt.c:451 #, c-format msgid " FILE ... input .mo files\n" msgstr " 檔案 ... 作為輸入的 .mo 檔\n" -#: src/msgunfmt.c:444 +#: src/msgunfmt.c:456 #, c-format msgid "Input file location in Java mode:\n" msgstr "Java 模式的輸入檔位置:\n" -#: src/msgunfmt.c:450 +#: src/msgunfmt.c:462 #, c-format msgid "" "The class name is determined by appending the locale name to the resource " @@ -2668,41 +2657,41 @@ "class 名稱是由語言名稱和 resource 名稱合併來決定的,兩者之間會用底線分隔。\n" "class 檔會在 CLASSPATH 變數所指定的目錄中搜尋。\n" -#: src/msgunfmt.c:455 +#: src/msgunfmt.c:467 #, c-format msgid "Input file location in C# mode:\n" msgstr "C# 模式的輸入檔位置:\n" -#: src/msgunfmt.c:463 +#: src/msgunfmt.c:475 #, c-format msgid "" "The -l and -d options are mandatory. The .dll file is located in a\n" "subdirectory of the specified directory whose name depends on the locale.\n" msgstr "" -#: src/msgunfmt.c:467 +#: src/msgunfmt.c:479 #, c-format msgid "Input file location in Tcl mode:\n" msgstr "Tcl 模式的輸入檔位置:\n" -#: src/msgunfmt.c:473 +#: src/msgunfmt.c:485 #, c-format msgid "" "The -l and -d options are mandatory. The .msg file is located in the\n" "specified directory.\n" msgstr "" -#: src/msgunfmt.c:493 +#: src/msgunfmt.c:511 #, c-format msgid " -i, --indent write indented output style\n" msgstr " -i, --indent 將輸出結果進行縮排\n" -#: src/msgunfmt.c:495 +#: src/msgunfmt.c:513 #, c-format msgid " --strict write strict uniforum style\n" msgstr " --strict 輸出結果嚴格遵從 Uniforum 格式\n" -#: src/msguniq.c:318 +#: src/msguniq.c:330 #, c-format, no-wrap msgid "" "Unifies duplicate translations in a translation catalog.\n" @@ -2722,12 +2711,12 @@ "則會由第一個翻譯條目中讀取這些資料。檔案位置是會累積下來的。\n" "當使用 --unique 選項時,則會捨棄任何重複的翻譯條目。\n" -#: src/msguniq.c:351 +#: src/msguniq.c:363 #, c-format msgid " -d, --repeated print only duplicates\n" msgstr " -d, --repeated 只顯示重複條目\n" -#: src/msguniq.c:353 +#: src/msguniq.c:365 #, c-format msgid "" " -u, --unique print only unique messages, discard " @@ -2735,7 +2724,7 @@ msgstr "" " -u, --unique 只顯示出現一次的條目,捨棄任何重複的條目\n" -#: src/open-catalog.c:55 libgettextpo/gettext-po.c:102 +#: src/open-catalog.c:56 libgettextpo/gettext-po.c:102 #: libgettextpo/gettext-po.c:150 libgettextpo/gettext-po.c:198 msgid "" msgstr "<標準輸入>" @@ -2819,65 +2808,65 @@ msgid "plural form has wrong index" msgstr "複數格式含有錯誤的索引數字" -#: src/po-lex.c:91 src/po-lex.c:110 +#: src/po-lex.c:90 src/po-lex.c:109 #, c-format msgid "too many errors, aborting" msgstr "錯誤太多,必須中斷作業" -#: src/po-lex.c:438 src/po-lex.c:508 src/write-po.c:707 src/write-po.c:832 +#: src/po-lex.c:437 src/po-lex.c:507 src/write-po.c:739 src/write-po.c:868 #, c-format msgid "invalid multibyte sequence" msgstr "無效的位元組序列" -#: src/po-lex.c:466 +#: src/po-lex.c:465 #, c-format msgid "incomplete multibyte sequence at end of file" msgstr "檔案末端出現不完整的位元組序列" -#: src/po-lex.c:476 +#: src/po-lex.c:475 #, c-format msgid "incomplete multibyte sequence at end of line" msgstr "行末出現不完整的位元組序列" -#: src/po-lex.c:488 +#: src/po-lex.c:487 msgid "iconv failure" msgstr "iconv 失敗" -#: src/po-lex.c:745 +#: src/po-lex.c:744 #, c-format msgid "keyword \"%s\" unknown" msgstr "不明的關鍵字“%s”" -#: src/po-lex.c:855 +#: src/po-lex.c:854 #, c-format msgid "invalid control sequence" msgstr "無效的控制序列" -#: src/po-lex.c:982 +#: src/po-lex.c:981 #, c-format msgid "end-of-file within string" msgstr "檔案在字串中段突然結束" -#: src/po-lex.c:988 +#: src/po-lex.c:987 #, c-format msgid "end-of-line within string" msgstr "字串中間突然斷行" -#: src/po-lex.c:1009 +#: src/po-lex.c:1008 #, c-format msgid "context separator within string" msgstr "" -#: src/read-catalog.c:327 src/xgettext.c:939 +#: src/read-catalog.c:332 src/xgettext.c:1003 #, c-format msgid "this file may not contain domain directives" msgstr "此檔案不能含有 domain 指令" -#: src/read-catalog.c:372 +#: src/read-catalog.c:377 msgid "duplicate message definition" msgstr "訊息被重複定義" -#: src/read-catalog.c:374 +#: src/read-catalog.c:379 #, fuzzy msgid "this is the location of the first definition" msgstr "...這是第一次定義的位置" @@ -2968,28 +2957,43 @@ msgid "error while converting from \"%s\" encoding to \"%s\" encoding" msgstr "當開啟檔案 “%s” 準備讀取時發生錯誤" -#: src/urlget.c:146 +#: src/urlget.c:159 #, c-format msgid "expected two arguments" msgstr "需要恰好兩個參數" -#: src/urlget.c:163 +#: src/urlget.c:176 #, c-format msgid "Usage: %s [OPTION] URL FILE\n" msgstr "用法:%s [選項] 網址 檔案\n" -#: src/urlget.c:168 +#: src/urlget.c:181 #, c-format, no-wrap msgid "" "Fetches and outputs the contents of an URL. If the URL cannot be accessed,\n" "the locally accessible FILE is used instead.\n" msgstr "擷取並輸出某網址的內容。如果無法存取該網址,則改用指定的本機檔案代替。\n" -#: src/urlget.c:219 +#: src/urlget.c:234 #, c-format msgid "error writing stdout" msgstr "寫入至標準輸出時發生錯誤" +#: src/urlget.c:264 +#, c-format +msgid "Retrieving %s..." +msgstr "" + +#: src/urlget.c:308 +#, c-format +msgid " timed out.\n" +msgstr "" + +#: src/urlget.c:445 +#, c-format +msgid " failed.\n" +msgstr "" + #: src/write-catalog.c:126 #, fuzzy msgid "" @@ -3029,42 +3033,42 @@ "support them." msgstr "翻譯檔含有複數型態的翻譯,但輸出檔的格式不支援複數型態。" -#: src/write-catalog.c:229 src/write-catalog.c:273 +#: src/write-catalog.c:231 src/write-catalog.c:275 #, c-format msgid "cannot create output file \"%s\"" msgstr "無法產生輸出檔 “%s”" -#: src/write-catalog.c:237 src/write-catalog.c:281 +#: src/write-catalog.c:239 src/write-catalog.c:283 msgid "standard output" msgstr "標準輸出" -#: src/write-csharp.c:688 +#: src/write-csharp.c:703 #, c-format msgid "failed to create directory \"%s\"" msgstr "無法建立 “%s” 目錄" -#: src/write-csharp.c:751 +#: src/write-csharp.c:766 #, c-format msgid "compilation of C# class failed, please try --verbose" msgstr "編譯 C# class 檔出現錯誤,請嘗試使用 --verbose 選項" -#: src/write-csharp.c:753 +#: src/write-csharp.c:768 #, fuzzy, c-format msgid "compilation of C# class failed" msgstr "編譯 C# class 檔出現錯誤,請嘗試使用 --verbose 選項" -#: src/write-java.c:975 +#: src/write-java.c:1080 #, c-format msgid "not a valid Java class name: %s" msgstr "並非有效的 Java class 名稱:%s" -#: src/write-java.c:1060 +#: src/write-java.c:1165 #, c-format msgid "compilation of Java class failed, please try --verbose or set $JAVAC" msgstr "" "編譯 Java class 檔出現錯誤,請嘗試使用 --verbose 選項或設定 $JAVAC 環境變數" -#: src/write-java.c:1063 +#: src/write-java.c:1168 #, fuzzy, c-format msgid "compilation of Java class failed, please try to set $JAVAC" msgstr "" @@ -3075,13 +3079,13 @@ msgid "error while opening \"%s\" for writing" msgstr "當開啟檔案 “%s” 來寫入內容時發生錯誤" -#: src/write-po.c:766 +#: src/write-po.c:802 #, c-format msgid "" "internationalized messages should not contain the `\\%c' escape sequence" msgstr "國際化的訊息不應含有 ‘\\%c’ 這個轉義控制序列 (escape sequence)" -#: src/write-po.c:1212 src/write-po.c:1341 +#: src/write-po.c:1253 src/write-po.c:1382 #, fuzzy, c-format msgid "" "The following msgctxt contains non-ASCII characters.\n" @@ -3094,7 +3098,7 @@ "請考慮使用只有 ASCII 字元的 msgid。\n" "%s\n" -#: src/write-po.c:1224 src/write-po.c:1353 +#: src/write-po.c:1265 src/write-po.c:1394 #, c-format msgid "" "The following msgid contains non-ASCII characters.\n" @@ -3116,8 +3120,8 @@ #: src/write-qt.c:693 #, fuzzy msgid "" -"message catalog has msgctxt strings containing characters outside ISO-8859-" -"1\n" +"message catalog has msgctxt strings containing characters outside " +"ISO-8859-1\n" "but the Qt message catalog format supports Unicode only in the translated\n" "strings, not in the context strings\n" msgstr "" @@ -3138,14 +3142,14 @@ msgid "error while writing to %s subprocess" msgstr "將內容寫入至 %s 副進程時發生錯誤" -#: src/write-resources.c:130 +#: src/write-resources.c:131 #, fuzzy msgid "" "message catalog has context dependent translations\n" "but the C# .resources format doesn't support contexts\n" msgstr "翻譯檔含有複數型態的翻譯,但 C# 的翻譯檔不能處理複數型態\n" -#: src/write-resources.c:149 +#: src/write-resources.c:150 msgid "" "message catalog has plural form translations\n" "but the C# .resources format doesn't support plural handling\n" @@ -3164,36 +3168,34 @@ "but the Tcl message catalog format doesn't support plural handling\n" msgstr "翻譯檔含有複數型態的翻譯,但 Tcl 的翻譯檔不能處理複數型態\n" -#: src/x-awk.c:342 src/x-python.c:1059 +#: src/x-awk.c:341 src/x-python.c:1074 #, c-format msgid "%s:%d: warning: unterminated string" msgstr "%s:%d: 警告:字串未完結" -#: src/x-awk.c:593 +#: src/x-awk.c:592 #, c-format msgid "%s:%d: warning: unterminated regular expression" msgstr "%s:%d: 警告:正規表示式不完整" -#: src/x-c.c:1194 src/x-csharp.c:1506 src/x-java.c:869 +#: src/x-c.c:1223 src/x-csharp.c:1509 src/x-java.c:872 #, c-format msgid "%s:%d: warning: unterminated character constant" msgstr "%s:%d: 警告:字元常數未完結" -#: src/x-c.c:1218 +#: src/x-c.c:1247 #, c-format msgid "%s:%d: warning: unterminated string literal" msgstr "%s:%d: 警告:字串未完結" -#: src/x-csharp.c:221 src/xgettext.c:1889 -#, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +#: src/x-csharp.c:224 src/xgettext.c:2020 +#, fuzzy +msgid "Please specify the source encoding through --from-code." msgstr "" "%s%s 出現不屬於 ASCII 字元的字串。\n" "請使用 --from-code 選項指定源代碼的文字編碼。\n" -#: src/x-csharp.c:268 +#: src/x-csharp.c:269 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3202,7 +3204,7 @@ "%s:%d: 出現無效的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-csharp.c:284 +#: src/x-csharp.c:285 #, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3211,7 +3213,7 @@ "%s:%d: 出現無效而且十分長的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-csharp.c:296 +#: src/x-csharp.c:297 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3220,7 +3222,7 @@ "%s:%d: 檔案末端出現不完整的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-csharp.c:305 +#: src/x-csharp.c:306 #, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3229,12 +3231,12 @@ "%s:%d: 該行末端出現不完整的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-csharp.c:314 src/x-python.c:331 +#: src/x-csharp.c:315 src/x-python.c:332 #, c-format msgid "%s:%d: iconv failure" msgstr "%s:%d: iconv 失敗" -#: src/x-csharp.c:337 +#: src/x-csharp.c:338 #, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3243,32 +3245,32 @@ "%s:%d: 出現無效的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-csharp.c:1387 src/x-python.c:1266 +#: src/x-csharp.c:1390 src/x-python.c:1281 #, c-format msgid "%s:%d: warning: invalid Unicode character" msgstr "%s:%d: 警告:Unicode 字元無效" -#: src/x-csharp.c:1509 src/x-java.c:872 +#: src/x-csharp.c:1512 src/x-java.c:875 #, c-format msgid "%s:%d: warning: unterminated string constant" msgstr "%s:%d: 警告:字元常數未完結" -#: src/x-csharp.c:2013 src/x-java.c:1366 +#: src/x-csharp.c:2020 src/x-java.c:1369 #, c-format msgid "%s:%d: warning: ')' found where '}' was expected" msgstr "%s:%d: 應該有 ‘)’ 的地方出現了 ‘}’" -#: src/x-csharp.c:2047 src/x-java.c:1400 +#: src/x-csharp.c:2054 src/x-java.c:1403 #, c-format msgid "%s:%d: warning: '}' found where ')' was expected" msgstr "%s:%d: 應該有 ‘}’ 的地方出現了 ‘)’" -#: src/x-glade.c:611 src/x-glade.c:618 +#: src/x-glade.c:623 src/x-glade.c:630 #, fuzzy, c-format msgid "%s:%lu:%lu: %s" msgstr "%s:%d:%d: %s" -#: src/x-glade.c:645 +#: src/x-glade.c:657 #, c-format msgid "" "Language \"glade\" is not supported. %s relies on expat.\n" @@ -3277,57 +3279,56 @@ "不支援 “glade” 語言。%s 是需要 expat 軟體的,\n" "但這個版本編譯時沒有加入 expat 支援。\n" -#: src/x-java.c:492 +#: src/x-java.c:494 #, fuzzy, c-format msgid "%s:%d: warning: lone surrogate U+%04X" msgstr "%s:%d: 警告:字串未完結" -#: src/x-perl.c:307 +#: src/x-perl.c:308 #, c-format msgid "%s:%d: can't find string terminator \"%s\" anywhere before EOF" msgstr "%s:%d: EOF 之前找不到任何表示字串完結的標記 “%s”" -#: src/x-perl.c:1038 +#: src/x-perl.c:1043 #, c-format msgid "%s:%d: missing right brace on \\x{HEXNUMBER}" msgstr "%s:%d: \\x{HEXNUMBER} 缺少了右邊的大括號" -#: src/x-perl.c:1158 +#: src/x-perl.c:1163 #, c-format msgid "%s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\"" msgstr "%s:%d: 8bit 字元 “%c” 的轉換 (“\\l”) 無效" -#: src/x-perl.c:1178 +#: src/x-perl.c:1183 #, c-format msgid "%s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\"" msgstr "%s:%d: 8bit 字元 “%c” 的轉換 (“\\u”) 無效" -#: src/x-perl.c:1212 +#: src/x-perl.c:1217 #, c-format msgid "%s:%d: invalid variable interpolation at \"%c\"" msgstr "" -#: src/x-perl.c:1225 +#: src/x-perl.c:1230 #, c-format msgid "%s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\"" msgstr "%s:%d: 8bit 字元 “%c” 的轉換 (“\\L”) 無效" -#: src/x-perl.c:1242 +#: src/x-perl.c:1247 #, c-format msgid "%s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\"" msgstr "%s:%d: 8bit 字元 “%c” 的轉換 (“\\U”) 無效" -#: src/x-python.c:233 -#, fuzzy, c-format +#: src/x-python.c:236 +#, fuzzy msgid "" -"Non-ASCII string at %s%s.\n" "Please specify the source encoding through --from-code or through a comment\n" "as specified in http://www.python.org/peps/pep-0263.html.\n" msgstr "" "%s%s 出現不屬於 ASCII 字元的字串。\n" "請使用 --from-code 選項指定源代碼的文字編碼。\n" -#: src/x-python.c:281 +#: src/x-python.c:282 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3337,7 +3338,7 @@ "%s:%d: 出現無效的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-python.c:298 +#: src/x-python.c:299 #, fuzzy, c-format msgid "" "%s:%d: Long incomplete multibyte sequence.\n" @@ -3347,7 +3348,7 @@ "%s:%d: 出現無效而且十分長的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-python.c:311 +#: src/x-python.c:312 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of file.\n" @@ -3357,7 +3358,7 @@ "%s:%d: 檔案末端出現不完整的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-python.c:321 +#: src/x-python.c:322 #, fuzzy, c-format msgid "" "%s:%d: Incomplete multibyte sequence at end of line.\n" @@ -3367,7 +3368,7 @@ "%s:%d: 該行末端出現不完整的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-python.c:354 +#: src/x-python.c:355 #, fuzzy, c-format msgid "" "%s:%d: Invalid multibyte sequence.\n" @@ -3377,27 +3378,27 @@ "%s:%d: 出現無效的位元組序列。\n" "請使用 --from-code 選項指定源代碼的正確文字編碼。\n" -#: src/x-python.c:674 +#: src/x-python.c:679 #, c-format msgid "Unknown encoding \"%s\". Proceeding with ASCII instead." msgstr "" -#: src/x-rst.c:109 +#: src/x-rst.c:108 #, c-format msgid "%s:%d: invalid string definition" msgstr "%s:%d: 無效的字串定義" -#: src/x-rst.c:173 +#: src/x-rst.c:172 #, c-format msgid "%s:%d: missing number after #" msgstr "%s:%d: # 後缺少了數字" -#: src/x-rst.c:208 +#: src/x-rst.c:207 #, c-format msgid "%s:%d: invalid string expression" msgstr "%s:%d: 無效的字串表示式" -#: src/x-sh.c:1075 +#: src/x-sh.c:1074 #, c-format msgid "" "%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; " @@ -3405,27 +3406,27 @@ msgstr "" "%s:%lu: 警告:$\"...\" 這種格式因為安全理由已經過時;請改用 eval_gettext" -#: src/xgettext.c:567 +#: src/xgettext.c:621 #, c-format msgid "--join-existing cannot be used when output is written to stdout" msgstr "當結果被導向至標準輸出時,不可以用 --join-existing 選項" -#: src/xgettext.c:572 +#: src/xgettext.c:626 #, c-format msgid "xgettext cannot work without keywords to look for" msgstr "若無關鍵字,xgettext 將無法運作" -#: src/xgettext.c:715 +#: src/xgettext.c:769 #, c-format msgid "warning: file `%s' extension `%s' is unknown; will try C" msgstr "警告:無法辨認檔案 ‘%s’ 的副檔名 ‘%s’;會假設是 C 格式來處理" -#: src/xgettext.c:766 +#: src/xgettext.c:820 #, c-format msgid "Extract translatable strings from given input files.\n" msgstr "由指定的輸入檔抽取可翻譯的字串。\n" -#: src/xgettext.c:789 +#: src/xgettext.c:843 #, c-format msgid "" " -d, --default-domain=NAME use NAME.po for output (instead of messages." @@ -3433,23 +3434,23 @@ msgstr "" " -d, --default-domain=NAME 使用 NAME.po 作為輸出檔 (而不是 messages.po)\n" -#: src/xgettext.c:791 +#: src/xgettext.c:845 #, c-format msgid " -o, --output=FILE write output to specified file\n" msgstr " -o, --output=FILE 將輸出內容寫入至指定檔案\n" -#: src/xgettext.c:793 +#: src/xgettext.c:847 #, c-format msgid "" " -p, --output-dir=DIR output files will be placed in directory DIR\n" msgstr " -p, --output-dir=DIR 輸出檔會存取在指定目錄\n" -#: src/xgettext.c:798 +#: src/xgettext.c:852 #, c-format msgid "Choice of input file language:\n" msgstr "輸入檔的語言選擇:\n" -#: src/xgettext.c:800 +#: src/xgettext.c:854 #, c-format msgid "" " -L, --language=NAME recognise the specified language\n" @@ -3468,19 +3469,19 @@ "PHP,\n" " GCC-source, NXStringTable, RST, Glade)\n" -#: src/xgettext.c:806 +#: src/xgettext.c:860 #, c-format msgid " -C, --c++ shorthand for --language=C++\n" msgstr " -C, --c++ --language=C++ 的簡寫\n" -#: src/xgettext.c:808 +#: src/xgettext.c:862 #, c-format msgid "" "By default the language is guessed depending on the input file name " "extension.\n" msgstr "預設的語言是由輸入檔的延伸檔名決定的。\n" -#: src/xgettext.c:813 +#: src/xgettext.c:867 #, c-format msgid "" " --from-code=NAME encoding of input files\n" @@ -3489,39 +3490,42 @@ " --from-code=NAME 輸入檔的文字編碼\n" " (Python, Tcl, Glade 例外)\n" -#: src/xgettext.c:816 +#: src/xgettext.c:870 #, c-format msgid "By default the input files are assumed to be in ASCII.\n" msgstr "輸入檔內容預設會當作 ASCII 看待。\n" -#: src/xgettext.c:821 +#: src/xgettext.c:875 #, c-format msgid " -j, --join-existing join messages with existing file\n" msgstr " -j, --join-existing 合併已存在的訊息檔\n" -#: src/xgettext.c:823 +#: src/xgettext.c:877 #, c-format msgid " -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n" msgstr " -x, --exclude-file=FILE.po 不取出屬於 FILE.po 的訊息\n" -#: src/xgettext.c:825 +#: src/xgettext.c:879 #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" -#: src/xgettext.c:829 +#: src/xgettext.c:885 #, c-format msgid "Language specific options:\n" msgstr "個別語言特殊選項:\n" -#: src/xgettext.c:831 +#: src/xgettext.c:887 #, c-format msgid " -a, --extract-all extract all strings\n" msgstr " -a, --extract-all 抽取所有字串\n" -#: src/xgettext.c:833 src/xgettext.c:840 +#: src/xgettext.c:889 src/xgettext.c:896 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3534,16 +3538,16 @@ "Java,\n" " C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n" -#: src/xgettext.c:837 -#, c-format +#: src/xgettext.c:893 +#, fuzzy, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" " -k, --keyword[=WORD] 要留意的額外關鍵字 (如果沒有指定,\n" " 表示不使用預設的關鍵字)\n" -#: src/xgettext.c:844 +#: src/xgettext.c:900 #, c-format msgid "" " --flag=WORD:ARG:FLAG additional flag for strings inside the " @@ -3551,7 +3555,7 @@ " number ARG of keyword WORD\n" msgstr "" -#: src/xgettext.c:847 +#: src/xgettext.c:903 #, c-format msgid "" " (only languages C, C++, ObjectiveC, Shell,\n" @@ -3564,53 +3568,53 @@ "Java,\n" " C#, awk, YCP, Tcl, Perl, PHP, GCC-source)\n" -#: src/xgettext.c:851 +#: src/xgettext.c:907 #, c-format msgid " -T, --trigraphs understand ANSI C trigraphs for input\n" msgstr " -T, --trigraphs 支援讀取輸入內容中的 ANSI C trigraph\n" -#: src/xgettext.c:853 +#: src/xgettext.c:909 #, c-format msgid " (only languages C, C++, ObjectiveC)\n" msgstr " (只適用於 C, C++, ObjectiveC)\n" -#: src/xgettext.c:855 +#: src/xgettext.c:911 #, c-format msgid " --qt recognize Qt format strings\n" msgstr " --qt 辨認 Qt 格式的字串\n" -#: src/xgettext.c:857 src/xgettext.c:861 src/xgettext.c:865 +#: src/xgettext.c:913 src/xgettext.c:917 src/xgettext.c:921 #, c-format msgid " (only language C++)\n" msgstr " (只適用於 C++)\n" -#: src/xgettext.c:859 +#: src/xgettext.c:915 #, fuzzy, c-format msgid " --kde recognize KDE 4 format strings\n" msgstr " --qt 辨認 Qt 格式的字串\n" -#: src/xgettext.c:863 +#: src/xgettext.c:919 #, fuzzy, c-format msgid " --boost recognize Boost format strings\n" msgstr " --qt 辨認 Qt 格式的字串\n" -#: src/xgettext.c:867 +#: src/xgettext.c:923 #, c-format msgid "" " --debug more detailed formatstring recognition result\n" msgstr " --debug 顯示較詳細的格式字串辨認結果\n" -#: src/xgettext.c:886 +#: src/xgettext.c:948 #, c-format msgid " --properties-output write out a Java .properties file\n" msgstr " --properties-output 輸出檔格式為 Java .properties 檔\n" -#: src/xgettext.c:901 +#: src/xgettext.c:963 #, c-format msgid " --copyright-holder=STRING set copyright holder in output\n" msgstr " --copyright-holder=STRING 設定輸出檔的版權所有者\n" -#: src/xgettext.c:903 +#: src/xgettext.c:965 #, c-format msgid "" " --foreign-user omit FSF copyright in output for foreign user\n" @@ -3618,68 +3622,85 @@ " --foreign-user 輸出檔不加上 FSF 的版權宣告,適用於 FSF 以外的" "專案\n" -#: src/xgettext.c:905 +#: src/xgettext.c:967 #, c-format msgid " --package-name=PACKAGE set package name in output\n" msgstr "" -#: src/xgettext.c:907 +#: src/xgettext.c:969 #, fuzzy, c-format msgid " --package-version=VERSION set package version in output\n" msgstr " --copyright-holder=STRING 設定輸出檔的版權所有者\n" -#: src/xgettext.c:909 +#: src/xgettext.c:971 #, c-format msgid "" " --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n" msgstr "" " --msgid-bugs-address=EMAIL@ADDRESS 指定匯報 msgid 問題時的郵件地址\n" -#: src/xgettext.c:911 +#: src/xgettext.c:973 #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:913 +#: src/xgettext.c:976 #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" -#: src/xgettext.c:1686 +#: src/xgettext.c:1782 #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" -#: src/xgettext.c:1785 +#: src/xgettext.c:1881 msgid "standard input" msgstr "標準輸入" -#: src/xgettext.c:1965 src/xgettext.c:1998 src/xgettext.c:2056 +#: src/xgettext.c:1985 +#, c-format +msgid "Non-ASCII character at %s%s." +msgstr "" + +#: src/xgettext.c:1989 +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#: src/xgettext.c:1994 +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +#: src/xgettext.c:2100 src/xgettext.c:2133 src/xgettext.c:2195 #, c-format msgid "%s%s: warning: " msgstr "%s%s: 警告:" -#: src/xgettext.c:1968 +#: src/xgettext.c:2103 #, c-format msgid "" "Although being used in a format string position, the %s is not a valid %s " "format string. Reason: %s\n" msgstr "" -#: src/xgettext.c:1969 +#: src/xgettext.c:2104 #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "縱使表面上 %s 宣告了是 %s 格式字串,但實際上不是。原因為:%s\n" -#: src/xgettext.c:2000 +#: src/xgettext.c:2135 #, c-format msgid "" "'%s' format string with unnamed arguments cannot be properly localized:\n" @@ -3688,7 +3709,7 @@ "and a mapping instead of a tuple for the arguments.\n" msgstr "" -#: src/xgettext.c:2058 +#: src/xgettext.c:2197 msgid "" "Empty msgid. It is reserved by GNU gettext:\n" "gettext(\"\") returns the header entry with\n" @@ -3698,27 +3719,27 @@ "gettext(\"\") 會回傳檔案開始部份的資訊,\n" "並非空白字串。\n" -#: src/xgettext.c:2664 +#: src/xgettext.c:2834 #, fuzzy, c-format msgid "ambiguous argument specification for keyword '%.*s'" msgstr "%2$s 的參數 %1$s 不明確" -#: src/xgettext.c:2691 +#: src/xgettext.c:2861 #, c-format msgid "warning: missing context for keyword '%.*s'" msgstr "" -#: src/xgettext.c:2716 +#: src/xgettext.c:2886 #, c-format msgid "warning: missing context for plural argument of keyword '%.*s'" msgstr "" -#: src/xgettext.c:2737 +#: src/xgettext.c:2907 #, c-format msgid "context mismatch between singular and plural form" msgstr "" -#: src/xgettext.c:2828 +#: src/xgettext.c:3016 msgid "" "The option --msgid-bugs-address was not specified.\n" "If you are using a `Makevars' file, please specify\n" @@ -3730,7 +3751,7 @@ "MSGID_BUGS_ADDRESS 變數;否則請在指令中\n" "使用 --msgid-bugs-address 選項。\n" -#: src/xgettext.c:3035 +#: src/xgettext.c:3226 #, c-format msgid "language `%s' unknown" msgstr "不明的語言 ‘%s’" @@ -3739,6 +3760,30 @@ msgid "" msgstr "<未命名>" +#~ msgid "%s: illegal option -- %c\n" +#~ msgstr "%s:選項不合法 -- %c\n" + +#~ msgid "DuplicateHandle failed with error code 0x%08x" +#~ msgstr "DuplicateHandle 失敗,錯誤碼為 0x%08x" + +#~ msgid "Not yet implemented." +#~ msgstr "功能尚未編寫。" + +#~ msgid "cannot set up nonblocking I/O to %s subprocess" +#~ msgstr "無法和 %s 副進程建立非專用的 I/O" + +#~ msgid "communication with %s subprocess failed" +#~ msgstr "和 %s 副進程溝通時出現錯誤" + +#~ msgid "read from %s subprocess failed" +#~ msgstr "由 %s 副進程讀入資料時出現錯誤" + +#~ msgid "%s subprocess terminated with exit code %d" +#~ msgstr "%s 副進程已終止,錯誤碼為 %d" + +#~ msgid "field `%s' still has initial default value\n" +#~ msgstr "標頭欄位‘%s’仍然是預設值\n" + #~ msgid "" #~ "Copyright (C) %s Free Software Foundation, Inc.\n" #~ "This is free software; see the source for copying conditions. There is " diff -Nru gettext-0.17/gettext-tools/projects/ChangeLog gettext-0.18.1.1/gettext-tools/projects/ChangeLog --- gettext-0.17/gettext-tools/projects/ChangeLog 2007-11-06 23:27:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/projects/ChangeLog 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,11 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/projects/Makefile.in gettext-0.18.1.1/gettext-tools/projects/Makefile.in --- gettext-0.17/gettext-tools/projects/Makefile.in 2007-11-06 23:40:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/projects/Makefile.in 2010-06-06 20:12:32.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,8 +15,9 @@ @SET_MAKE@ VPATH = @srcdir@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,28 +37,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -64,13 +79,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -79,23 +95,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -103,68 +127,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -184,13 +238,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -198,6 +252,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -206,8 +267,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -248,136 +313,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -391,53 +640,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -450,17 +779,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -468,18 +800,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -494,6 +834,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -504,94 +845,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -601,13 +1070,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -628,8 +1098,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -644,6 +1125,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -657,6 +1139,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -681,14 +1164,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits projects/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits projects/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits projects/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits projects/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -706,6 +1189,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -735,13 +1219,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -769,6 +1257,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -787,6 +1276,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -795,18 +1286,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -873,6 +1374,7 @@ echo "$(RM) $(DESTDIR)$(projectsdir)/$$f"; \ $(RM) $(DESTDIR)$(projectsdir)/$$f; \ done + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/README.woe32 gettext-0.18.1.1/gettext-tools/README.woe32 --- gettext-0.17/gettext-tools/README.woe32 2006-07-26 12:00:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/README.woe32 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -Installation on Woe32 (WinNT/2000/XP, Win95/98/ME): +Installation on Woe32 (WinNT/2000/XP/Vista, Win95/98/ME): Building requires the mingw development environment (includes gcc). MS Visual C/C++ with "nmake" is no longer supported. diff -Nru gettext-0.17/gettext-tools/src/ChangeLog gettext-0.18.1.1/gettext-tools/src/ChangeLog --- gettext-0.17/gettext-tools/src/ChangeLog 2007-11-06 23:27:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/ChangeLog 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,973 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-06-03 Bruno Haible + + xgettext: Recognize language of files ending in .perl. + * x-perl.h (EXTENSIONS_PERL): Recognize .perl. + Suggested by Ævar Arnfjörð Bjarmason . + +2010-06-03 Bruno Haible + + urlget: Don't attempt to run the Java program if we don't install it. + * Makefile.am (USEJAVA): New variable. + (DEFS): Define USEJAVA. + * urlget.c (fetch): Don't try to use Java is USEJAVA is 0. + +2010-05-19 Bruno Haible + + Link with libunistring, if it exists. + * Makefile.am (LDADD, libgettextsrc_la_LDFLAGS): Add LTLIBUNISTRING. + +2010-05-18 Bruno Haible + + Correct program dependencies. + * Makefile.am (OTHERPROGDEPENDENCIES): New variable. + (recode_sr_latin_LDADD): Remove redundant variable. + (recode_sr_latin_DEPENDENCIES): Use OTHERPROGDEPENDENCIES. + (hostname_DEPENDENCIES, urlget_DEPENDENCIES): New variables. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + * msgattrib.c (main): Update year in --version output. + * msgcat.c (main): Likewise. + * msgcmp.c (main): Likewise. + * msgcomm.c (main): Likewise. + * msgconv.c (main): Likewise. + * msgen.c (main): Likewise. + * msgexec.c (main): Likewise. + * msgfilter.c (main): Likewise. + * msgfmt.c (main): Likewise. + * msggrep.c (main): Likewise. + * msginit.c (main): Likewise. + * msgmerge.c (main): Likewise. + * msgunfmt.c (main): Likewise. + * msguniq.c (main): Likewise. + * xgettext.c (main): Likewise. + +2010-04-25 Bruno Haible + + Update support of object-pascal-format strings. + * format-pascal.c: Update description of format strings. + (enum format_arg_type): Remove FAT_INTEGER64. + (format_parse): Accept an empty digit sequence before ':'. Treat 'd', + 'u', 'x' the same way. + (main): Update. + +2010-04-05 Bruno Haible + + Interoperability with mono versions >= 2009-02-27. + * write-csharp.c (write_csharp_code): Emit a TableInitialized field. + Change ReadResources so that it may be called multiple times, even + concurrently. + Reported by Guido Flohr + +2010-03-31 Guido Flohr + + Improve how xgettext handles Perl syntax ambiguities. + * x-perl.c(enum token_type_ty): New enumeration items + token_type_number, token_type_object. + (struct token_ty): New field 'last_type'. + (token2string): Handle token_type_number, token_type_object. + (free_token): Likewise. + (prefer_division_over_regexp): Remove variable. + (extract_variable): Recognize token of type token_type_object. + (prefer_regexp_over_division): New function. + (last_token_type): Renamed from last_token. + (x_perl_prelex): Assign the token's last_type. Recognize token of type + token_type_number. Don't special-case "grep" and "split". Invoke + prefer_regexp_over_division for disambiguation. + (token_stack_dump): Handle token_type_number, token_type_object. + (x_perl_lex): Assign the token's last_type. Update last_token_type + intelligently. + (collect_message): Invoke prefer_regexp_over_division for + disambiguation. + (extract_balanced): Don't set last_token_type here. Handle + token_type_number, token_type_object. + (extract_perl): Initialize last_token_type here. + Reported by Guillem Jover via Santiago Vila. + + * x-perl.c (x_perl_prelex): Clarify interpolate_keywords arguments. + + * x-perl.c (eaten_here): Renamed from here_eaten. + (phase1_getc, get_here_document, skip_pod, extract_perl): Update. + +2010-03-13 Bruno Haible + + New options --color, --style for many programs. + * msgattrib.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgcomm.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgconv.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgen.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgfilter.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msggrep.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msginit.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgmerge.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msgunfmt.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * msguniq.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + * xgettext.c: Include color.h. + (long_options): Add options --color, --style. + (main): Implement them. + (usage): Document them. + Reported by Kalle Olavi Niemitalo + via Santiago Vila . + +2010-02-20 Bruno Haible + + * plural-table.c (plural_table): Add Bulgarian. + Reported by Roumen Petrov . + +2010-02-20 Bruno Haible + + * plural-table.c (plural_table): Sort in the same order as + gettext.texi. + +2010-02-17 Bruno Haible + + Fix error in conversion of large PO file (> 4000 msgs) to Java class. + * write-java.c: Include minmax.h. + (write_java1_init_statements, write_java2_init_statements): New + functions, extracted from write_java_code. + (write_java_code): If there are many messages, split the initialization + code into several static methods. + Reported by sasha . + +2009-12-21 Bruno Haible + + * lang-table.c (language_table): Add Mapudungun, Lower Sorbian, + Upper Sorbian, Mohawk, Yakut, Southern Sami, Lule Sami, Inari Sami, + Skolt Sami. + * msginit.c (catalogname_for_locale): Add Mapudungun, Lower Sorbian, + Upper Sorbian, Yakut, Inari Sami, Skolt Sami. + +2009-12-12 Bruno Haible + + * *.h, *.c, *.y: Untabify. + +2009-11-28 Bruno Haible + + * x-perl.c (extract_variable): Fix tp->type when returning at EOF. + Reported by Guido Flohr . + +2009-11-15 Bruno Haible + + * x-python.c: Update comments regarding PEP 0263. + +2009-09-05 Bruno Haible + + * write-po.c (wrap): Remove unused initialization. + * x-glade.c (comment_handler): Likewise. + * xgettext.c (flag_context_list_table_insert): Add comment. + Found by clang's static analyzer. + +2009-08-30 Bruno Haible + + Accommodate the Solaris iconv_open function, which cannot convert + directly between many pairs of encodings. + * msgl-iconv.h (convert_string_directly): Renamed from convert_string. + * msgl-iconv.c: Include xstriconveh.h. + (convert_string_directly): Renamed from convert_string. + (convert_string): New function. + (convert_string_list, convert_prev_msgid, convert_msgid, + iconvable_string_list, iconvable_prev_msgid, iconvable_msgid): Change + argument type to 'const iconveh_t *'. + (convert_msgstr, iconvable_string, iconvable_msgstr): Likewise. Invoke + xmem_cd_iconveh instead of xmem_cd_iconv. + (iconv_message_list_internal, is_message_list_iconvable): Invoke + iconveh_open, iconveh_close instead of iconv_open, iconv_close. + * xgettext.c (from_current_source_encoding): Update. + +2009-08-16 Bruno Haible + + Reduce dependency on project-id heuristic. + * msginit.c (project_id): Add header argument. Return first part of + Project-Id-Version field if present. + (fill_header): Update. + +2009-08-13 Bruno Haible + + * msgexec.c: Include msgl-charset.h. + (main): Invoke compare_po_locale_charsets. + (process_string): Add comment. + * msgfilter.c (process_message): Likewise. + +2009-08-10 Bruno Haible + + Avoid a gcc warning. + * msgfilter.c (sub_argv): Change type to 'const char **'. + (main): Update. + +2009-08-10 Bruno Haible + + Use type 'ucs4_t' more often. Avoids gcc warnings on Cygwin. + * po-lex.c (struct mbchar): Change type of 'uc'. + (mb_width): Update. + * read-properties.c (read_escaped_string): Change type of local + variable 'uc'. + * read-stringtable.c (phase2_getc): Likewise. + * write-properties.c (conv_to_java, write_escaped_string): Change type + of local variables 'uc', 'uc1', 'uc2'. + * write-java.c (string_hashcode, write_java_string): Likewise. + * write-csharp.c (construct_class_name, write_csharp_string): Change + type of local variable 'uc'. + * write-tcl.c (write_tcl_string): Likewise. + * write-qt.c (conv_to_iso_8859_1, conv_to_utf16): Likewise. + * x-python.c (phase2_getc, mixed_string_buffer_append): Likewise. + (mixed_string_buffer_append_unicode): Change argument type to 'ucs4_t'. + * x-java.c (string_buffer_append): Change type of local variable 'uc'. + (string_buffer_append_unicode): Change argument type to 'ucs4_t'. + * x-csharp.c (phase2_getc): Change type of local variable 'uc'. + +2009-08-04 Bruno Haible + + Port msgfilter to Woe32 platforms. + * msgfilter.c: Don't include errno.h, fcntl.h, io.h, sys/select.h, + pipe.h, wait-process.h. Include pipe-filter.h instead. + (HAVE_SELECT): Remove undefine. + (nonintr_close, nonintr_read, nonintr_write, nonintr_select): Remove + functions. + (O_NONBLOCK): Remove fallback. + (IS_EAGAIN): Remove macro. + (struct locals): New type. + (prepare_write, done_write, prepare_read, done_read): New functions. + (generic_filter): Implement using pipe_filter_ii_execute. + +2009-07-27 Часлав Илић (Chusslove Illich) + + Extend recode-sr-latin to also transform letters with accents. + * filter-sr-latin.c (table): Add entries for letters with accents. + (IS_UPPERCASE_CYRILLIC): Recognize also U+04E2, U+04EE. + (serbian_to_latin): Update. + +2009-06-06 Bruno Haible + + * x-perl.c (x_perl_prelex): Recognize the perl 5.10 operator '//'. + Reported by Kevin Ryde . + +2009-05-29 Bruno Haible + + Improve msgfmt error message about format directive mismatches + in msgstr[i]. + * format.h (struct formatstring_parser): Add pretty_msgid argument to + 'check' member. + * format-awk.c (format_check): Add pretty_msgid argument. + * format-boost.c (format_check): Likewise. + * format-c.c (format_check): Likewise. + * format-csharp.c (format_check): Likewise. + * format-elisp.c (format_check): Likewise. + * format-gcc-internal.c (format_check): Likewise. + * format-gfc-internal.c (format_check): Likewise. + * format-java.c (format_check): Likewise. + * format-kde.c (format_check): Likewise. + * format-librep.c (format_check): Likewise. + * format-lisp.c (format_check): Likewise. + * format-pascal.c (format_check): Likewise. + * format-perl-brace.c (format_check): Likewise. + * format-perl.c (format_check): Likewise. + * format-php.c (format_check): Likewise. + * format-python.c (format_check): Likewise. + * format-qt.c (format_check): Likewise. + * format-qt-plural.c (format_check): Likewise. + * format-scheme.c (format_check): Likewise. + * format-sh.c (format_check): Likewise. + * format-tcl.c (format_check): Likewise. + * format-ycp.c (format_check): Likewise. + * format.c (check_msgid_msgstr_format_i): Pass either "msgid" or + "msgid_plural" as pretty_msgid argument. + +2009-05-23 Bruno Haible + + * Makefile.am (libgettextsrc_la_LINK, msgattrib_LINK, msgcat_LINK, + msgcomm_LINK, msgconv_LINK, msgen_LINK, msgfilter_LINK, msggrep_LINK, + msgmerge_LINK, msguniq_LINK, xgettext_LINK): Add $(AM_V_lt) flag. + +2009-05-16 Bruno Haible + + Extract comments meant for translators from Glade input files. + * xgettext.h (remember_a_message): Add 'extracted_comment' argument. + * xgettext.c (remember_a_message): Likewise. + (arglist_parser_done): Update. + * x-glade.c (struct element_state): Add field 'extracted_comment'. + (start_element_handler): Fill it. + (end_element_handler): Pass it to 'remember_a_message', free it. + * x-awk.c (extract_parenthesized): Update. + * x-c.c (extract_parenthesized): Update. + * x-csharp.c (extract_parenthesized): Update. + * x-elisp.c (read_object): Update. + * x-java.c (extract_parenthesized): Update. + * x-librep.c (read_object): Update. + * x-lisp.c (read_object): Update. + * x-perl.c (extract_variable, interpolate_keywords, extract_balanced): + Update. + * x-php.c (extract_balanced): Update. + * x-python.c (extract_balanced): Update. + * x-rst.c (extract_rst): Update. + * x-scheme.c (read_object): Update. + * x-sh.c (read_word, read_command): Update. + * x-smalltalk.c (extract_smalltalk): Update. + * x-tcl.c (read_command): Update. + * x-ycp.c (extract_parenthesized): Update. + Reported by + at . + +2009-03-29 Bruno Haible + + * message.h (format_type): New enum value 'format_gfc_internal'. + (NFORMATS): Increment. + * message.c (format_language): Add format_gfc_internal entry. + (format_language_pretty): Likewise. + * format.h (formatstring_gfc_internal): New declaration. + * format-gfc-internal.c: New file. + * format.c (formatstring_parsers): Add formatstring_gfc_internal. + * x-c.h (SCANNERS_C): In language GCC-source, also keep track of + gfc-internal-format format strings. + * x-c.c (init_flag_table_gcc_internal): Also register flags for + gfc-internal-format. + * xgettext.c (xgettext_record_flag): Store gfc-internal-format flags in + flag_table_gcc_internal. + * Makefile.am (FORMAT_SOURCE): Add format-gfc-internal.c. + * FILES: Update. + Reported by Göran Uddeborg . + +2009-01-27 Bruno Haible + + * message.h (format_type): New enum value 'format_qt_plural'. + (NFORMATS): Increment. + * message.c (format_language): Add format_qt_plural entry. + (format_language_pretty): Likewise. + * format.h (formatstring_qt_plural): New declaration. + * format-qt-plural.c: New file. + * format.c (formatstring_parsers): Add formatstring_qt_plural. + * xgettext.h (struct flag_context_ty): Add fields is_format3, + pass_format3. + * xgettext.c (struct extractor_ty): Add field formatstring_parser3. + (inherited_context, flag_context_list_table_insert): Handle the new + flag_context_ty fields. + (xgettext_record_flag): Handle format_qt_plural. + (current_formatstring_parser3): New variable. + (extract_from_file): Initialize it. + (set_format_flags_from_context): Handle the new flag_context_ty fields. + (remember_a_message, remember_a_message_plural): Handle + current_formatstring_parser3. Avoid adding a c-format flag to a message + already flagged as qt-plural-format. + (arglist_parser_remember): Allow argnum1 and argnum2 in the call shape + to be the same. + (arglist_parser_done): Add special recognition of qt-plural-format + strings. + (language_to_extractor): Set the formatstring_parser3 in the result. + * Makefile.am (FORMAT_SOURCE): Add format-qt-plural.c. + * FILES: Update. + +2009-01-27 Bruno Haible + + * plural-table.c (plural_table): Put Turkish under nplurals=2. + Reported by Sertaç Ö. Yıldız . + +2009-01-26 Bruno Haible + + * msgattrib.c (main): Update year in --version output. + * msgcat.c (main): Likewise. + * msgcmp.c (main): Likewise. + * msgcomm.c (main): Likewise. + * msgconv.c (main): Likewise. + * msgen.c (main): Likewise. + * msgexec.c (main): Likewise. + * msgfilter.c (main): Likewise. + * msgfmt.c (main): Likewise. + * msggrep.c (main): Likewise. + * msginit.c (main): Likewise. + * msgmerge.c (main): Likewise. + * msgunfmt.c (main): Likewise. + * msguniq.c (main): Likewise. + * xgettext.c (main): Likewise. + * urlget.c (main): Likewise. + +2009-01-25 Bruno Haible + + Fix bug introduced on 2005-10-01. + * msgl-charset.c (compare_po_locale_charsets): Fix recognition of + header entry. + +2009-01-25 Bruno Haible + + Fix bug introduced on 2008-10-04. + * read-catalog-abstract.c (po_parse_comment_special): Initialize + *rangep. + Reported by Ralf Wildenhues . + +2009-01-18 Bruno Haible + + * msgfmt.c: Include str-list.h. + (main): When --statistics and --verbose are both specified, output the + input file name in front of the statistics line. + Suggested by Vincent Lefevre . + +2009-01-18 Bruno Haible + + Allow multiple levels of verbosity in 'msgfmt'. + * msgfmt.h (verbose): Change from 'bool' to 'int'. + * msgfmt.c (verbose): Likewise. + (main): Increment 'verbose' for each --verbose option. + * write-java.c (msgdomain_write_java): Update. + * write-csharp.c (msgdomain_write_csharp): Update. + * write-resources.c (msgdomain_write_csharp_resources): Update. + +2009-01-18 Bruno Haible + + * str-list.h (string_list_join): Change the separator argument, + allowing an entire separator string. + * str-list.c (string_list_join): Likewise. + +2009-01-18 Bruno Haible + + Fix a '(null)' in an error message. Bug present since gettext-0.16. + * read-catalog.h (DEFAULT_CATALOG_READER_TY): Add a file_name field. + * read-catalog.c (read_catalog_stream): Initialize it. + * x-po.c (extract): Likewise. + * msgfmt.c (read_catalog_file_msgfmt): Likewise. + (msgfmt_parse_debrief): Use the file_name field from the catalog reader + instead of gram_pos.file_name. + +2009-01-17 Bruno Haible + + Update after gnulib changed. + * Makefile.am (RELOCATABLE_STRIP): New variable. + +2008-12-07 Bruno Haible + + * write-po.c (message_print_comment_filepos): Use a 'const' pointer + where possible. + * write-stringtable.c (write_message): Likewise. + +2008-12-07 Bruno Haible + + Avoid gcc -Wredundant-decls warnings. + * x-awk.c: Don't include the specification header file twice. + * x-c.c: Likewise. + * x-csharp.c: Likewise. + * x-elisp.c: Likewise. + * x-glade.c: Likewise. + * x-java.c: Likewise. + * x-librep.c: Likewise. + * x-lisp.c: Likewise. + * x-perl.c: Likewise. + * x-php.c: Likewise. + * x-po.c: Likewise. + * x-python.c: Likewise. + * x-rst.c: Likewise. + * x-scheme.c: Likewise. + * x-sh.c: Likewise. + * x-smalltalk.c: Likewise. + * x-tcl.c: Likewise. + * x-ycp.c: Likewise. + +2008-11-14 Bruno Haible + + * msgfilter.c: Include xvasprintf.h, xsetenv.h. + (process_message): Set the environment variables MSGFILTER_MSGCTXT, + MSGFILTER_MSGID, MSGFILTER_LOCATION. + +2008-10-28 Bruno Haible + + * msgmerge.c (match_domain): Remove space between '#' and 'pragma' for + OpenMP. + Reported by Lamarque Eric . + +2008-10-04 Bruno Haible + + * plural-distrib.h (struct plural_distribution): New field 'histogram'. + * format.h (check_msgid_msgstr_format_i, check_msgid_msgstr_format): + Add range argument. + * format.c (check_msgid_msgstr_format_i): Add range argument. Set + strict_checking to false if, due to the range, the plural forms applies + to only one value of n. + (check_msgid_msgstr_format): Add range argument. + * msgl-check.c (plural_expression_histogram): New function. + (check_plural_eval, check_plural): Update. + (check_pair): Pass the range to check_msgid_msgstr_format. + (check_message_list): Update. + * msgmerge.c (message_merge): Pass the range to + check_msgid_msgstr_format_i. + Reported by Anatoly Techtonik + via . + +2008-10-04 Bruno Haible + + * message.h (struct argument_range): New type. + (has_range_p): New macro. + (struct message_ty): Add field 'range'. + * message.c (message_alloc): Initialize the 'range' field. + (message_copy): Copy the 'range' field. + * read-catalog-abstract.h (po_parse_comment_special): Add 'rangep' + argument. + * read-catalog-abstract.c: Include . + (po_parse_comment_special): Add 'rangep' argument. Parse the range + description syntax. + * read-catalog.h (DEFAULT_CATALOG_READER_TY): Add 'range' field. + * read-catalog.c (default_constructor): Initialize the 'range' field. + (default_copy_comment_state): Copy the 'range' field into the new + message. + (default_reset_comment_state): Clear the 'range' field. + (default_comment_special): Update. + * write-po.h (make_range_description_string): New declaration. + * write-po.c (make_range_description_string): New function. + (message_print_comment_flags): Also print the range. + * write-stringtable.c (write_message): Likewise. + * msgl-cat.c: Include . + (catenate_msgdomain_list): Fill in the range of the resulting messages. + * msgl-equal.c (message_equal): Compare also the ranges. + * msgmerge.c (message_merge): Fill in the range of the resulting + message. Set it fuzzy if a range was introduced or extended. + * xgettext.c (remember_a_message): Set the range of the new message. + +2008-10-03 Bruno Haible + + * plural-distrib.h: New file. + * format.h: Include plural-distrib.h. + (check_msgid_msgstr_format_i, check_msgid_msgstr_format): Replace + plural_distribution, plural_distribution_length arguments with a single + distribution argument. + * format.c (check_msgid_msgstr_format_i, check_msgid_msgstr_format): + Likewise. + * msgl-check.h: Include plural-distrib.h. + (check_plural_eval, check_message): Replace plural_distribution, + plural_distribution_length arguments with a single distribution + argument. + * msgl-check.c (check_plural_eval): Likewise. Free array in case of + error. + (check_plural): Replace plural_distribution, plural_distribution_length + arguments with a single distribution argument. Don't store a + distribution result when there are errors. + (check_pair, check_message): Replace plural_distribution, + plural_distribution_length arguments with a single distribution + argument. + (check_message_list): Update. + * msgmerge.c (message_merge: Replace plural_distribution, + plural_distribution_length arguments with a single distribution + argument. + (match_domain): Update. + * Makefile.am (noinst_HEADERS): Add plural-distrib.h. + * FILES: Mention plural-distrib.h. + +2008-09-28 Bruno Haible + + * write-catalog.c (msgdomain_list_print): Open the output stream in + binary mode, for consistency with the term_styled_ostream or fd_stream + based case. + +2008-09-28 Bruno Haible + + * Makefile.am (msg*_DEPENDENCIES, xgettext_DEPENDENCIES, + recode_sr_latin_DEPENDENCIES): Add $(WOE32_LDADD). + +2008-09-28 Bruno Haible + + * msgexec.c (process_string): Don't die from SIGPIPE if the subprocess + does not want our input. + Reported by Rainer Tammer . + +2008-09-28 Bruno Haible + + * Makefile.am (msgcmp_LDADD): Add MSGMERGE_LIBM. + Reported by Rainer Tammer . + +2008-09-27 Bruno Haible + + * lang-table.c (language_table): Add Asturian, Crimean Tatar, Friulian, + Papiamento. + * msginit.c (catalogname_for_locale): Add Asturian, Friulian, + Papiamento. + +2008-09-26 Bruno Haible + + * write-catalog.c (cmp_by_msgid, cmp_by_filepos): Compare the msgctxt + fields if the msgid fields are the same. + Reported by Rainer Tammer . + +2008-09-15 Bruno Haible + + * Makefile.am (msg*_DEPENDENCIES, xgettext_DEPENDENCIES, + recode_sr_latin_DEPENDENCIES): New variables. + +2008-09-15 Bruno Haible + + * msgl-fsearch.h: Include stdbool.h. + (message_fuzzy_index_search): Add 'heuristic' argument. + * msgl-fsearch.c (message_fuzzy_index_search): Likewise. If !heuristic, + consider all messages. + * msgmerge.c (struct definitions_ty): Add fields 'curr_findex', + 'curr_findex_init_lock'. + (definitions_init): Initialize them. + (definitions_set_current_list): Clear the previous curr_findex. + (definitions_init_curr_findex): New function. + (definitions_search_fuzzy): Do fuzzy matching by calling + message_fuzzy_index_search on a hashed index, rather than through + message_list_search_fuzzy. + (definitions_destroy): Update. + (merge): Determine the definitions' canonical encoding. + * msgcmp.c: Include xmalloca.h, po-charset.h, msgl-fsearch.h. + (match_domain): Add defmlp_findex, def_canon_charset arguments. Do + fuzzy matching by calling message_fuzzy_index_search on a hashed + index, rather than through message_list_search_fuzzy. + (compare): Determine the definitions' canonical encoding. Prepare room + for a lazily allocated hashed index. + * Makefile.am (msgcmp_SOURCES): Add msgl-fsearch.c. + +2008-09-15 Bruno Haible + + * msgcmp.c (use_fuzzy_matching): New variable. + (long_options): Add option -N/--no-fuzzy-matching. + (main, match_domain): Implement it. + (usage): Document it. + +2008-09-14 Bruno Haible + + * msgl-fsearch.h (message_fuzzy_index_search): Add 'lower_bound' + argument. + * msgl-fsearch.c (message_fuzzy_index_search): Likewise. + * msgmerge.c (definitions_search_fuzzy): Use the result of the fuzzy + search in the current list as a lower bound for the fuzzy search in the + compendiums. + +2008-09-14 Bruno Haible + + * message.h (message_list_search_fuzzy, FUZZY_THRESHOLD): Clarify + documentation. + + * msgmerge.c (struct definitions_ty): Rename field 'findex' to + 'comp_findex', and 'findex_init_lock' to 'comp_findex_init_lock'. + (definitions_init): Update. + (definitions_init_comp_findex): Renamed from definitions_init_findex. + Update. + (definitions_search_fuzzy, definitions_destroy): Update. + + * msgmerge.c (definitions_current_list, definitions_set_current_list): + Move functions. + +2008-09-14 Ralf Wildenhues + Bruno Haible + + * message.h (fuzzy_search_goal_function): Add 'lower_bound' argument. + * message.c (fuzzy_search_goal_function): Likewise. Use fstrcmp_bounded + instead of fstrcmp. + (message_list_search_fuzzy_inner): Pass fuzzy_search_goal_function the + best weight known so far, to shortcut computations. + * msgl-fsearch.c (message_fuzzy_index_search): Likewise. + * msgmerge.c (definitions_search_fuzzy): Update + fuzzy_search_goal_function calls. + +2008-09-14 Ralf Wildenhues + Bruno Haible + + * xgettext.c: Include concat-filename.h. + (main, xgettext_open): Use xconcatenated_filename instead of + concatenated_filename. + +2008-09-01 Bruno Haible + + * color.c: Include concat-filename.h. + (style_file_lookup, style_file_prepare): Use xconcatenated_filename + instead of concatenated_filename. + * msginit.c: Include concat-filename.h instead of filename.h. + (project_id, project_id_version): Use xconcatenated_filename instead of + concatenated_filename. + * open-catalog.c: Include concat-filename.h. + (try_open_catalog_file): Use xconcatenated_filename instead of + concatenated_filename. + * read-csharp.c: Include concat-filename.h instead of filename.h. + (msgdomain_read_csharp): Use xconcatenated_filename instead of + concatenated_filename. + * read-resources.c: Include concat-filename.h instead of filename.h. + (read_resources_file): Use xconcatenated_filename instead of + concatenated_filename. + * read-tcl.c: Include concat-filename.h instead of filename.h. + (msgdomain_read_tcl): Use xconcatenated_filename instead of + concatenated_filename. + * write-resources.c: Include concat-filename.h instead of filename.h. + (msgdomain_write_csharp_resources): Use xconcatenated_filename instead of + concatenated_filename. + * write-csharp.c: Include concat-filename.h instead of filename.h. + (msgdomain_write_csharp): Use xconcatenated_filename instead of + concatenated_filename. + * write-java.c: Include concat-filename.h instead of filename.h. + (msgdomain_write_java): Use xconcatenated_filename instead of + concatenated_filename. + * write-tcl.c: Include concat-filename.h instead of filename.h. + (msgdomain_write_tcl: Use xconcatenated_filename instead of + concatenated_filename. + +2008-08-31 Bruno Haible + + * msgexec.c: Include . + (main): Block SIGPIPE for the duration of the processing. + +2008-08-23 Bruno Haible + + Fix behaviour of "msgmerge --update" when sorting is requested and + obsolete messages are present. + * write-catalog.h (struct catalog_output_format): New field + 'sorts_obsoletes_to_end'. + * write-po.c (output_format_po): Initialize it to true. + * write-properties.c (output_format_properties): Initialize it to false. + * write-stringtable.c (output_format_stringtable): Likewise. + * msgmerge.c (msgdomain_list_stablesort_by_obsolete): New function. + (main): Before testing whether the result is the same as the old + contents, sort the result using msgdomain_list_stablesort_by_obsolete. + Reported by Vincent Danjean + via . + +2008-08-16 Bruno Haible + + * x-python.c (enum token_type_ty): New values token_type_lbracket, + token_type_rbracket. + (phase5_get): Recognize also token_type_lbracket, token_type_rbracket. + (extract_balanced): Renamed from extract_parenthesized. Add 'delim' + argument. Handle token_type_lbracket and token_type_rbracket. + (extract_python): Update. + Reported by Claude Paroz + via . + +2008-08-16 Bruno Haible + + * x-php.c (extract_balanced): Fix small bug in 2007-03-17 commit. + +2008-08-15 Bruno Haible + + * format-python.c (format_parse): For %.0s and %.0r, set the type to + FORMAT_ANY. + (format_check): When strict equality is not desired, compare FORMAT_ANY + as matching any type. + Reported by Alexander Dupuy in + . + +2008-08-14 Bruno Haible + + * format-python.c (format_parse): For '%', set the type to FAT_NONE. + +2008-08-14 Bruno Haible + + * format-python.c (format_check): Require the same number of unnamed + arguments also when !equality. + Reported by Alexander Dupuy in + . + +2008-08-14 Bruno Haible + + * msgmerge.c: Include "glthread/lock.h" instead of "lock.h". + +2008-08-03 Bruno Haible + + * x-python.c (mixed_string_buffer_append): Replace a lone high + surrogate with U+FFFD. + Reported by Yann + via Santiago Vila . + +2008-07-19 Bruno Haible + + * gnu/gettext/GetURL.java: Don't output anything to standard error. + Instead, set exit code to indicate failure reason. + * urlget.c (verbose): New variable. + (long_options): Add --quiet, --silent option. + (main): Implement --quiet, --silent option. + (usage): Document --quiet, --silent option. + (java_exitcode): New variable. + (execute_it): Set it. Return false also when the exit code is 2. + (fetch): Implement verbosity to standard error here. + Reported by 宋浩 . + +2008-06-10 Bruno Haible + + * msgexec.c (process_string): Update for changed signature of + wait_subprocess(). + * msgfilter.c (generic_filter): Likewise. + * msginit.c (project_id, project_id_version, get_user_email, + language_team_address): Likewise. + * read-csharp.c (execute_and_read_po_output): Likewise. + * read-java.c (execute_and_read_po_output): Likewise. + * read-resources.c (execute_and_read_po_output): Likewise. + * read-tcl.c (msgdomain_read_tcl): Likewise. + * write-resources.c (execute_writing_input): Likewise. + * urlget.c (execute_it, fetch): Update for changed signature of + execute(). + +2008-05-26 Bruno Haible + + * msginit.c (get_field, put_field): Recognize a field also if there is + no space after the ':'. + Reported by Nacho . + +2008-05-16 Bruno Haible + + * msgl-iconv.c (iconvable_prev_msgid): Fix typo. + Reported by Karl Eichwalder + via Philipp Thomas + at . + +2008-05-10 Bruno Haible + + * write-po.c: Include unilbrk.h instead of linebreak.h. + (wrap): Update. + * po-lex.c: Don't include linebreak.h. + +2008-04-25 Bruno Haible + + * lang-table.c (language_table): Add Beja. Remove Adangme, Banda, + Batak. Update Scottish Gaelic, Central Khmer, Romansh. + * msginit.c (catalogname_for_locale: Add Beja. Remove Banda, Batak. + Update Scottish Gaelic, Central Khmer, Romansh. + +2008-04-20 Bruno Haible + + Improve error message. + * xgettext.h (lexical_context_ty): New type. + (non_ascii_error_message): New declaration. + (from_current_source_encoding): Add lcontext argument. + * xgettext.c (non_ascii_error_message): New function. + (from_current_source_encoding): Add lcontext argument. Use + non_ascii_error_message. + (CONVERT_STRING): Add lcontext argument. + (remember_a_message, remember_a_message_plural): Update. + * x-csharp.c (lexical_context): New variable. + (phase2_getc): Use non_ascii_error_message. + (comment_start, comment_line_end, phase6_get): Set lexical_context. + (extract_csharp): Initialize lexical_context. + * x-java.c (struct string_buffer): Add lcontext field. + (init_string_buffer): Add lcontext argument. + (string_buffer_flush_curr_buffer): Update from_current_source_encoding + call. + (comment_start): Set lcontext. + (phase5_get): Pass lcontext argument. + * x-perl.c (get_here_document, phase2_getc, + extract_quotelike_pass1_utf8): Pass lcontext argument. + * x-python.c (lexical_context): New variable. + (phase2_getc): Use non_ascii_error_message. + (comment_start, comment_line_end, phase6_get): Set lexical_context. + (struct mixed_string_buffer): Add lcontext field. + (init_mixed_string_buffer): Add lcontext argument. + (mixed_string_buffer_flush_curr_buffer): Update + from_current_source_encoding call. + (phase5_get): Set lexical_context. Pass lcontext argument. + (extract_python): Initialize lexical_context. + Reported by Mark Weyer. + +2008-04-20 Bruno Haible + + * xgettext.c (usage): Clarify single-letter options that take an + optional argument: -c, -k, -m, -M. + +2008-04-16 Bruno Haible + + * msginit.c (catalogname_for_locale): Add entries for Maori, Uighur. + +2008-02-20 Jakub Jelinek + Bruno Haible + + * format-gcc-internal.c: Update for GCC 4.3. + (FAT_TREE_STATEMENT): New enum item. + (format_parse): Recognize %K. + (format_print): Update. + +2008-02-04 Bruno Haible + + * msgmerge.c (match_domain): Remove the prev_msgid fields also from + the untranslated messages. + Reported by Yukiko Bando via + Chusslove Illich (Часлав Илић) . + +2008-02-04 Bruno Haible + + * msgmerge.c (message_merge): Store the prev_msgid field also if the + resulting message is not fuzzy: it might be marked as fuzzy later. + (match_domain): Remove the prev_msgid fields from the non-fuzzy + messages. + +2008-01-29 Bruno Haible + + * write-po.c (wrap): Change the severity of the "should not contain + escape sequence" message from PO_SEVERITY_ERROR to PO_SEVERITY_WARNING. + Reported by Kerb . + +2008-01-13 Bruno Haible + + * Makefile.am (noinst_headers): Add msgl-header.h. + +2007-12-24 Bruno Haible + + Introduce 'Language' header field. + * xgettext.c (construct_header): Add an empty 'Language' field. + * msginit.c (language_value): New function. + (fields): Add 'Language'. + * msgmerge.c: Include lang-table.h. + (catalogname): New variable. + (long_options): Add --lang option. + (main): Handle --lang option. + (usage): Document --lang option. + (message_merge): Set the 'Language' field if --lang was specified or + if it is missing and can be inferred from the 'Language-Team' field. + * msgl-header.h: New file. + * msgl-header.c: New file. + * msgcat.c: Include msgl-header.h. + (long_options): Add --lang option. + (main): Handle --lang option. + (usage): Document --lang option. + * msgen.c: Include msgl-header.h. + (long_options): Add --lang option. + (main): Handle --lang option. + (usage): Document --lang option. + * msgl-check.c (plural_help): Look at the 'Language' field before + looking at the 'Language-Team' field. + (check_header_entry): Fix comparison with default value. When the + 'Language' field is missing, signal a warning. + * Makefile.am (libgettextsrc_la_SOURCES): Add msgl-header.c. + (msgmerge_SOURCES): Add lang-table.c. + * FILES: Update. + +2007-12-22 Bruno Haible + + * write-po.c (wrap): Avoid breaking line in the middle of a format + directive. + Reported by Dwayne Bailey . + +2007-11-07 Jim Meyering + Bruno Haible + + * write-catalog.c (msgdomain_list_print): Fix open() call. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/src/color.c gettext-0.18.1.1/gettext-tools/src/color.c --- gettext-0.17/gettext-tools/src/color.c 2007-10-28 15:49:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/color.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Color and styling handling. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -32,6 +32,7 @@ #include "xalloc.h" #include "relocatable.h" #include "filename.h" +#include "concat-filename.h" /* Whether to output a test page. */ @@ -50,20 +51,20 @@ if (option != NULL) { if (strcmp (option, "never") == 0 || strcmp (option, "no") == 0) - color_mode = color_no; + color_mode = color_no; else if (strcmp (option, "auto") == 0 || strcmp (option, "tty") == 0) - color_mode = color_tty; + color_mode = color_tty; else if (strcmp (option, "always") == 0 || strcmp (option, "yes") == 0) - color_mode = color_yes; + color_mode = color_yes; else if (strcmp (option, "html") == 0) - color_mode = color_html; + color_mode = color_html; else if (strcmp (option, "test") == 0) - color_test_mode = true; + color_test_mode = true; else - { - fprintf (stderr, "invalid --color argument: %s\n", option); - return true; - } + { + fprintf (stderr, "invalid --color argument: %s\n", option); + return true; + } } else /* --color is equivalent to --color=yes. */ @@ -121,23 +122,23 @@ ostream_write_str (stream, name); ostream_write_mem (stream, " ", 7 - strlen (name)); for (col = 0; col <= 8; col++) - { - term_color_t row_color = colors[row].c; - term_color_t col_color = colors[col].c; - - ostream_write_str (stream, "|"); - term_ostream_set_color (stream, row_color); - term_ostream_set_bgcolor (stream, col_color); - if (!(term_ostream_get_color (stream) == row_color - && term_ostream_get_bgcolor (stream) == col_color)) - abort (); - ostream_write_str (stream, " Words "); - term_ostream_set_color (stream, COLOR_DEFAULT); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - if (!(term_ostream_get_color (stream) == COLOR_DEFAULT - && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) - abort (); - } + { + term_color_t row_color = colors[row].c; + term_color_t col_color = colors[col].c; + + ostream_write_str (stream, "|"); + term_ostream_set_color (stream, row_color); + term_ostream_set_bgcolor (stream, col_color); + if (!(term_ostream_get_color (stream) == row_color + && term_ostream_get_bgcolor (stream) == col_color)) + abort (); + ostream_write_str (stream, " Words "); + term_ostream_set_color (stream, COLOR_DEFAULT); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + if (!(term_ostream_get_color (stream) == COLOR_DEFAULT + && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) + abort (); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); @@ -148,15 +149,15 @@ { ostream_write_str (stream, row == 0 ? "red: " : " "); for (col = 0; col <= 64; col++) - { - int r = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int g = b + (int) (row / 17.0f * (r - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int g = b + (int) (row / 17.0f * (r - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 1 to 2. */ @@ -164,15 +165,15 @@ { ostream_write_str (stream, row == 17 ? "yellow: " : " "); for (col = 0; col <= 64; col++) - { - int g = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int r = b + (int) (row / 17.0f * (g - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int r = b + (int) (row / 17.0f * (g - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 2 to 3. */ @@ -180,15 +181,15 @@ { ostream_write_str (stream, row == 0 ? "green: " : " "); for (col = 0; col <= 64; col++) - { - int g = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int b = r + (int) (row / 17.0f * (g - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int b = r + (int) (row / 17.0f * (g - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 3 to 4. */ @@ -196,15 +197,15 @@ { ostream_write_str (stream, row == 17 ? "cyan: " : " "); for (col = 0; col <= 64; col++) - { - int b = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int g = r + (int) (row / 17.0f * (b - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int g = r + (int) (row / 17.0f * (b - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 4 to 5. */ @@ -212,32 +213,32 @@ { ostream_write_str (stream, row == 0 ? "blue: " : " "); for (col = 0; col <= 64; col++) - { - int b = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int r = g + (int) (row / 17.0f * (b - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int r = g + (int) (row / 17.0f * (b - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 5 to 6. */ for (row = 17; row >= 0; row--) { ostream_write_str (stream, row == 17 ? "magenta: " : - row == 0 ? "red: " : " "); + row == 0 ? "red: " : " "); for (col = 0; col <= 64; col++) - { - int r = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int b = g + (int) (row / 17.0f * (r - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int b = g + (int) (row / 17.0f * (r - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); @@ -391,23 +392,23 @@ if (!IS_PATH_WITH_DIR (file_name)) { /* It's a file name without a directory specification. - If it does not exist in the current directory... */ + If it does not exist in the current directory... */ struct stat statbuf; if (stat (file_name, &statbuf) < 0) - { - /* ... but it exists in the styles installation location... */ - const char *gettextstylesdir = relocate (GETTEXTDATADIR "/styles"); - char *possible_file_name = - concatenated_filename (gettextstylesdir, file_name, NULL); - - if (stat (possible_file_name, &statbuf) >= 0) - { - /* ... then use the file in the styles installation directory. */ - return possible_file_name; - } - free (possible_file_name); - } + { + /* ... but it exists in the styles installation location... */ + const char *gettextstylesdir = relocate (GETTEXTDATADIR "/styles"); + char *possible_file_name = + xconcatenated_filename (gettextstylesdir, file_name, NULL); + + if (stat (possible_file_name, &statbuf) >= 0) + { + /* ... then use the file in the styles installation directory. */ + return possible_file_name; + } + free (possible_file_name); + } /* Let the CSS library show a warning. */ } @@ -423,21 +424,21 @@ const char *user_preference = getenv ("PO_STYLE"); if (user_preference != NULL && user_preference[0] != '\0') - style_file_name = style_file_lookup (xstrdup (user_preference)); + style_file_name = style_file_lookup (xstrdup (user_preference)); else - { - const char *gettextdatadir; + { + const char *gettextdatadir; - /* Make it possible to override the po-default.css location. This is - necessary for running the testsuite before "make install". */ - gettextdatadir = getenv ("GETTEXTDATADIR"); - if (gettextdatadir == NULL || gettextdatadir[0] == '\0') - gettextdatadir = relocate (GETTEXTDATADIR); - - style_file_name = - concatenated_filename (gettextdatadir, "styles/po-default.css", - NULL); - } + /* Make it possible to override the po-default.css location. This is + necessary for running the testsuite before "make install". */ + gettextdatadir = getenv ("GETTEXTDATADIR"); + if (gettextdatadir == NULL || gettextdatadir[0] == '\0') + gettextdatadir = relocate (GETTEXTDATADIR); + + style_file_name = + xconcatenated_filename (gettextdatadir, "styles/po-default.css", + NULL); + } } else style_file_name = style_file_lookup (style_file_name); diff -Nru gettext-0.17/gettext-tools/src/dir-list.c gettext-0.18.1.1/gettext-tools/src/dir-list.c --- gettext-0.17/gettext-tools/src/dir-list.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/dir-list.c 2010-06-06 12:49:58.000000000 +0000 @@ -77,7 +77,7 @@ if (directory != NULL) { if (directory->item != NULL) - free (directory->item); + free (directory->item); free (directory); } diff -Nru gettext-0.17/gettext-tools/src/file-list.c gettext-0.18.1.1/gettext-tools/src/file-list.c --- gettext-0.17/gettext-tools/src/file-list.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/file-list.c 2010-06-06 12:49:58.000000000 +0000 @@ -49,8 +49,8 @@ { fp = fopen (file_name, "r"); if (fp == NULL) - error (EXIT_FAILURE, errno, - _("error while opening \"%s\" for reading"), file_name); + error (EXIT_FAILURE, errno, + _("error while opening \"%s\" for reading"), file_name); } result = string_list_alloc (); @@ -62,20 +62,20 @@ /* In case of an error leave loop. */ if (len < 0) - break; + break; /* Remove trailing '\n' and trailing whitespace. */ if (len > 0 && line_buf[len - 1] == '\n') - line_buf[--len] = '\0'; + line_buf[--len] = '\0'; while (len > 0 - && (line_buf[len - 1] == ' ' - || line_buf[len - 1] == '\t' - || line_buf[len - 1] == '\r')) - line_buf[--len] = '\0'; + && (line_buf[len - 1] == ' ' + || line_buf[len - 1] == '\t' + || line_buf[len - 1] == '\r')) + line_buf[--len] = '\0'; /* Test if we have to ignore the line. */ if (*line_buf == '\0' || *line_buf == '#') - continue; + continue; string_list_append_unique (result, line_buf); } diff -Nru gettext-0.17/gettext-tools/src/FILES gettext-0.18.1.1/gettext-tools/src/FILES --- gettext-0.17/gettext-tools/src/FILES 2007-09-13 10:04:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/FILES 2010-06-06 12:49:58.000000000 +0000 @@ -132,6 +132,10 @@ | +-------------- The 'msgmerge' program +msgl-header.h +msgl-header.c + Message list header manipulation. + msgcomm.c Main source for the 'msgcomm' program. msgattrib.c Main source for the 'msgattrib' program. msgcat.c Main source for the 'msgcat' program. @@ -223,7 +227,9 @@ format-perl-brace.c Format string handling for Perl, braced syntax. format-php.c Format string handling for PHP. format-gcc-internal.c Format string handling GCC internal. +format-gfc-internal.c Format string handling GFC internal. format-qt.c Format string handling for Qt. +format-qt-plural.c Format string handling for Qt plural forms. format-kde.c Format string handling for KDE. format-boost.c Format string handling for Boost. format.c Table of the language dependent format string handlers. @@ -233,6 +239,8 @@ plural-eval.h plural-eval.c Evaluating plural expressions. +plural-distrib.h + Value distribution of plural expressions. msgl-check.h msgl-check.c Checking of messages. diff -Nru gettext-0.17/gettext-tools/src/filters.h gettext-0.18.1.1/gettext-tools/src/filters.h --- gettext-0.17/gettext-tools/src/filters.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/filters.h 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ in *OUTPUT_LEN_P. Input and output are in UTF-8 encoding. */ extern void serbian_to_latin (const char *input, size_t input_len, - char **output_p, size_t *output_len_p); + char **output_p, size_t *output_len_p); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/src/filter-sr-latin.c gettext-0.18.1.1/gettext-tools/src/filter-sr-latin.c --- gettext-0.17/gettext-tools/src/filter-sr-latin.c 2007-10-27 22:29:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/filter-sr-latin.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Recode Serbian text from Cyrillic to Latin script. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2009 Free Software Foundation, Inc. Written by Danilo Šegan , 2006, and Bruno Haible , 2006. @@ -29,11 +29,11 @@ /* Table for Serbian Cyrillic to Latin transcription. - The table is indexed by the Unicode code point, in the range 0x0400..0x045f. + The table is indexed by the Unicode code point, in the range 0x0400..0x04ef. The longest table entry is three bytes long. */ -static const char table[96][3 + 1] = +static const char table[240][3 + 1] = { - /* U+0400 */ "", + /* U+0400 */ "\xC3\x88", /* "È" */ /* U+0401 */ "", /* U+0402 */ "\xC4\x90", /* "Đ" */ /* U+0403 */ "", @@ -46,7 +46,7 @@ /* U+040A */ "Nj", /* U+040B */ "\xC4\x86", /* "Ć" */ /* U+040C */ "", - /* U+040D */ "", + /* U+040D */ "\xC3\x8C", /* "Ì" */ /* U+040E */ "", /* U+040F */ "D\xC5\xBE", /* "Dž" */ /* U+0410 */ "A", @@ -113,7 +113,7 @@ /* U+044D */ "", /* U+044E */ "", /* U+044F */ "", - /* U+0450 */ "", + /* U+0450 */ "\xC3\xA8", /* "è" */ /* U+0451 */ "", /* U+0452 */ "\xC4\x91", /* "đ" */ /* U+0453 */ "", @@ -126,9 +126,153 @@ /* U+045A */ "nj", /* U+045B */ "\xC4\x87", /* "ć" */ /* U+045C */ "", - /* U+045D */ "", + /* U+045D */ "\xC3\xAC", /* "ì" */ /* U+045E */ "", - /* U+045F */ "d\xC5\xBE" /* "dž" */ + /* U+045F */ "d\xC5\xBE", /* "dž" */ + /* U+0460 */ "", + /* U+0461 */ "", + /* U+0462 */ "", + /* U+0463 */ "", + /* U+0464 */ "", + /* U+0465 */ "", + /* U+0466 */ "", + /* U+0467 */ "", + /* U+0468 */ "", + /* U+0469 */ "", + /* U+046A */ "", + /* U+046B */ "", + /* U+046C */ "", + /* U+046D */ "", + /* U+046E */ "", + /* U+046F */ "", + /* U+0470 */ "", + /* U+0471 */ "", + /* U+0472 */ "", + /* U+0473 */ "", + /* U+0474 */ "", + /* U+0475 */ "", + /* U+0476 */ "", + /* U+0477 */ "", + /* U+0478 */ "", + /* U+0479 */ "", + /* U+047A */ "", + /* U+047B */ "", + /* U+047C */ "", + /* U+047D */ "", + /* U+047E */ "", + /* U+047F */ "", + /* U+0480 */ "", + /* U+0481 */ "", + /* U+0482 */ "", + /* U+0483 */ "", + /* U+0484 */ "", + /* U+0485 */ "", + /* U+0486 */ "", + /* U+0487 */ "", + /* U+0488 */ "", + /* U+0489 */ "", + /* U+048A */ "", + /* U+048B */ "", + /* U+048C */ "", + /* U+048D */ "", + /* U+048E */ "", + /* U+048F */ "", + /* U+0490 */ "", + /* U+0491 */ "", + /* U+0492 */ "", + /* U+0493 */ "", + /* U+0494 */ "", + /* U+0495 */ "", + /* U+0496 */ "", + /* U+0497 */ "", + /* U+0498 */ "", + /* U+0499 */ "", + /* U+049A */ "", + /* U+049B */ "", + /* U+049C */ "", + /* U+049D */ "", + /* U+049E */ "", + /* U+049F */ "", + /* U+04A0 */ "", + /* U+04A1 */ "", + /* U+04A2 */ "", + /* U+04A3 */ "", + /* U+04A4 */ "", + /* U+04A5 */ "", + /* U+04A6 */ "", + /* U+04A7 */ "", + /* U+04A8 */ "", + /* U+04A9 */ "", + /* U+04AA */ "", + /* U+04AB */ "", + /* U+04AC */ "", + /* U+04AD */ "", + /* U+04AE */ "", + /* U+04AF */ "", + /* U+04B0 */ "", + /* U+04B1 */ "", + /* U+04B2 */ "", + /* U+04B3 */ "", + /* U+04B4 */ "", + /* U+04B5 */ "", + /* U+04B6 */ "", + /* U+04B7 */ "", + /* U+04B8 */ "", + /* U+04B9 */ "", + /* U+04BA */ "", + /* U+04BB */ "", + /* U+04BC */ "", + /* U+04BD */ "", + /* U+04BE */ "", + /* U+04BF */ "", + /* U+04C0 */ "", + /* U+04C1 */ "", + /* U+04C2 */ "", + /* U+04C3 */ "", + /* U+04C4 */ "", + /* U+04C5 */ "", + /* U+04C6 */ "", + /* U+04C7 */ "", + /* U+04C8 */ "", + /* U+04C9 */ "", + /* U+04CA */ "", + /* U+04CB */ "", + /* U+04CC */ "", + /* U+04CD */ "", + /* U+04CE */ "", + /* U+04CF */ "", + /* U+04D0 */ "", + /* U+04D1 */ "", + /* U+04D2 */ "", + /* U+04D3 */ "", + /* U+04D4 */ "", + /* U+04D5 */ "", + /* U+04D6 */ "", + /* U+04D7 */ "", + /* U+04D8 */ "", + /* U+04D9 */ "", + /* U+04DA */ "", + /* U+04DB */ "", + /* U+04DC */ "", + /* U+04DD */ "", + /* U+04DE */ "", + /* U+04DF */ "", + /* U+04E0 */ "", + /* U+04E1 */ "", + /* U+04E2 */ "\xC4\xAA", /* "Ī" */ + /* U+04E3 */ "\xC4\xAB", /* "ī" */ + /* U+04E4 */ "", + /* U+04E5 */ "", + /* U+04E6 */ "", + /* U+04E7 */ "", + /* U+04E8 */ "", + /* U+04E9 */ "", + /* U+04EA */ "", + /* U+04EB */ "", + /* U+04EC */ "", + /* U+04ED */ "", + /* U+04EE */ "\xC5\xAA", /* "Ū" */ + /* U+04EF */ "\xC5\xAB" /* "ū" */ }; /* Quick test for an uppercase character in the range U+0041..U+005A. @@ -136,23 +280,25 @@ #define IS_UPPERCASE_LATIN(byte) \ ((unsigned char) ((byte) - 'A') <= 'Z' - 'A') -/* Quick test for an uppercase character in the range U+0400..U+042F. +/* Quick test for an uppercase character in the range U+0400..U+042F, + or exactly U+04E2 or U+04EE. The arguments must be bytes in the range 0..UCHAR_MAX. */ #define IS_UPPERCASE_CYRILLIC(byte1,byte2) \ - ((byte1) == 0xd0 && (unsigned char) ((byte2) - 0x80) < 0x30) + (((byte1) == 0xd0 && (unsigned char) ((byte2) - 0x80) < 0x30) \ + || ((byte1) == 0xd3 && ((byte2) == 0xa2 || (byte2) == 0xae))) void serbian_to_latin (const char *input, size_t input_len, - char **output_p, size_t *output_len_p) + char **output_p, size_t *output_len_p) { /* Loop through the input string, producing a replacement for each character. - Only characters in the range U+0400..U+045F (\xD0\x80..\xD1\x9F) need to + Only characters in the range U+0400..U+04EF (\xD0\x80..\xD3\xAF) need to be handled, and more precisely only those for which a replacement exists in the table. Other characters are copied without modification. The characters U+0409, U+040A, U+040F are transliterated to uppercase or mixed-case replacements ("LJ" / "Lj", "NJ" / "Nj", "DŽ" / "Dž"), depending on the case of the surrounding characters. - Since we assume UTF-8 encoding, the bytes \xD0..\xD1 can only occur at the + Since we assume UTF-8 encoding, the bytes \xD0..\xD3 can only occur at the beginning of a character; the second and further bytes of a character are all in the range \x80..\xBF. */ @@ -170,70 +316,70 @@ unsigned char byte = (unsigned char) *ip; /* Test for the first byte of a Cyrillic character. */ - if ((byte >= 0xd0 && byte <= 0xd1) && (ip + 1 < input_end)) - { - unsigned char second_byte = (unsigned char) ip[1]; - - /* Verify the second byte is valid. */ - if (second_byte >= 0x80 && second_byte < 0xc0) - { - unsigned int uc = ((byte & 0x1f) << 6) | (second_byte & 0x3f); - - if (uc >= 0x0400 && uc <= 0x045f) - { - /* Look up replacement from the table. */ - const char *repl = table[uc - 0x0400]; - - if (repl[0] != '\0') - { - /* Found a replacement. - Now handle the special cases. */ - if (uc == 0x0409 || uc == 0x040a || uc == 0x040f) - if ((ip + 2 < input_end - && IS_UPPERCASE_LATIN ((unsigned char) ip[2])) - || (ip + 3 < input_end - && IS_UPPERCASE_CYRILLIC ((unsigned char) ip[2], - (unsigned char) ip[3])) - || (ip >= input + 1 - && IS_UPPERCASE_LATIN ((unsigned char) ip[-1])) - || (ip >= input + 2 - && IS_UPPERCASE_CYRILLIC ((unsigned char) ip[-2], - (unsigned char) ip[-1]))) - { - /* Use the upper-case replacement instead of - the mixed-case replacement. */ - switch (uc) - { - case 0x0409: - repl = "LJ"; break; - case 0x040a: - repl = "NJ"; break; - case 0x040f: - repl = "D\xC5\xBD"/* "DŽ" */; break; - default: - abort (); - } - } - - /* Use the replacement. */ - *op++ = *repl++; - if (*repl != '\0') - { - *op++ = *repl++; - if (*repl != '\0') - { - *op++ = *repl++; - /* All replacements have at most 3 bytes. */ - if (*repl != '\0') - abort (); - } - } - ip += 2; - continue; - } - } - } - } + if ((byte >= 0xd0 && byte <= 0xd3) && (ip + 1 < input_end)) + { + unsigned char second_byte = (unsigned char) ip[1]; + + /* Verify the second byte is valid. */ + if (second_byte >= 0x80 && second_byte < 0xc0) + { + unsigned int uc = ((byte & 0x1f) << 6) | (second_byte & 0x3f); + + if (uc >= 0x0400 && uc <= 0x04ef) + { + /* Look up replacement from the table. */ + const char *repl = table[uc - 0x0400]; + + if (repl[0] != '\0') + { + /* Found a replacement. + Now handle the special cases. */ + if (uc == 0x0409 || uc == 0x040a || uc == 0x040f) + if ((ip + 2 < input_end + && IS_UPPERCASE_LATIN ((unsigned char) ip[2])) + || (ip + 3 < input_end + && IS_UPPERCASE_CYRILLIC ((unsigned char) ip[2], + (unsigned char) ip[3])) + || (ip >= input + 1 + && IS_UPPERCASE_LATIN ((unsigned char) ip[-1])) + || (ip >= input + 2 + && IS_UPPERCASE_CYRILLIC ((unsigned char) ip[-2], + (unsigned char) ip[-1]))) + { + /* Use the upper-case replacement instead of + the mixed-case replacement. */ + switch (uc) + { + case 0x0409: + repl = "LJ"; break; + case 0x040a: + repl = "NJ"; break; + case 0x040f: + repl = "D\xC5\xBD"/* "DŽ" */; break; + default: + abort (); + } + } + + /* Use the replacement. */ + *op++ = *repl++; + if (*repl != '\0') + { + *op++ = *repl++; + if (*repl != '\0') + { + *op++ = *repl++; + /* All replacements have at most 3 bytes. */ + if (*repl != '\0') + abort (); + } + } + ip += 2; + continue; + } + } + } + } *op++ = *ip++; } diff -Nru gettext-0.17/gettext-tools/src/format-awk.c gettext-0.18.1.1/gettext-tools/src/format-awk.c --- gettext-0.17/gettext-tools/src/format-awk.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-awk.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* awk format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -94,7 +94,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -110,294 +110,294 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - unsigned int number = 0; - enum format_arg_type type; - - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - format = ++f; - } - } - - /* Parse flags. */ - while (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0') - format++; - - /* Parse width. */ - if (*format == '*') - { - unsigned int width_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_WIDTH_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - width_number = m; - format = ++f; - } - } - - if (width_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = width_number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - unsigned int precision_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_PRECISION_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - precision_number = m; - format = ++f; - } - } - - if (precision_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = precision_number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - switch (*format) - { - case '%': - type = FAT_NONE; - break; - case 'c': - type = FAT_CHARACTER; - break; - case 's': - type = FAT_STRING; - break; - case 'i': case 'd': - type = FAT_INTEGER; - break; - case 'u': case 'o': case 'x': case 'X': - type = FAT_UNSIGNED_INTEGER; - break; - case 'e': case 'E': case 'f': case 'g': case 'G': - type = FAT_FLOAT; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (type != FAT_NONE) - { - if (number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = type; - unnumbered_arg_count++; - } - } + /* A directive. */ + unsigned int number = 0; + enum format_arg_type type; + + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + } + } + + /* Parse flags. */ + while (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0') + format++; + + /* Parse width. */ + if (*format == '*') + { + unsigned int width_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_WIDTH_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + width_number = m; + format = ++f; + } + } + + if (width_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = width_number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + unsigned int precision_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_PRECISION_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + precision_number = m; + format = ++f; + } + } + + if (precision_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = precision_number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + switch (*format) + { + case '%': + type = FAT_NONE; + break; + case 'c': + type = FAT_CHARACTER; + break; + case 's': + type = FAT_STRING; + break; + case 'i': case 'd': + type = FAT_INTEGER; + break; + case 'u': case 'o': case 'x': case 'X': + type = FAT_UNSIGNED_INTEGER; + break; + case 'e': case 'E': case 'f': case 'g': case 'G': + type = FAT_FLOAT; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (type != FAT_NONE) + { + if (number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = type; + unnumbered_arg_count++; + } + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Convert the unnumbered argument array to numbered arguments. */ @@ -410,44 +410,44 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -480,8 +480,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -494,58 +494,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -589,31 +591,31 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_UNSIGNED_INTEGER: - printf ("[unsigned]i"); - break; - case FAT_FLOAT: - printf ("f"); - break; - default: - abort (); - } + { + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_UNSIGNED_INTEGER: + printf ("[unsigned]i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -632,9 +634,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -642,7 +644,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-boost.c gettext-0.18.1.1/gettext-tools/src/format-boost.c --- gettext-0.17/gettext-tools/src/format-boost.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-boost.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Boost format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -73,13 +73,13 @@ enum format_arg_type { - FAT_NONE = 0, + FAT_NONE = 0, /* Basic types */ - FAT_INTEGER = 1, - FAT_DOUBLE = 2, - FAT_CHAR = 3, - FAT_POINTER = 4, - FAT_ANY = 5 + FAT_INTEGER = 1, + FAT_DOUBLE = 2, + FAT_CHAR = 3, + FAT_POINTER = 4, + FAT_ANY = 5 }; struct numbered_arg @@ -114,7 +114,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -130,380 +130,380 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (*format == '%') - format++; - else - { - bool brackets = false; - bool done = false; - unsigned int number = 0; - enum format_arg_type type = FAT_NONE; - - if (*format == '|') - { - format++; - brackets = true; - } - - if (isdigit (*format) && *format != '0') - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if ((!brackets && *f == '%') || *f == '$') - { - if (m == 0) /* can happen if m overflows */ - { - *invalid_reason = INVALID_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - if (*f == '%') - { - type = FAT_ANY; - done = true; - } - format = ++f; - } - } - - if (!done) - { - /* Parse flags. */ - for (;;) - { - if (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0' || *format == '\'' - || *format == '_' || *format == '=' || *format == 'h' - || *format == 'l') - format++; - else - break; - } - - /* Parse width. */ - if (*format == '*') - { - unsigned int width_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_WIDTH_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - width_number = m; - format = ++f; - } - } - - if (width_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are - exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = - INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = width_number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are - exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = - INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - unsigned int precision_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_PRECISION_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - precision_number = m; - format = ++f; - } - } - - if (precision_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are - exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = - INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = precision_number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are - exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = - INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - /* Parse size. */ - for (;;) - { - if (*format == 'h' || *format == 'l' || *format == 'L') - format++; - else - break; - } - - switch (*format++) - { - case 'c': case 'C': - type = FAT_CHAR; - break; - case 's': case 'S': - type = FAT_ANY; - break; - case 'i': case 'd': case 'o': case 'u': case 'x': case 'X': - type = FAT_INTEGER; - break; - case 'e': case 'E': case 'f': case 'g': case 'G': - type = FAT_DOUBLE; - break; - case 'p': - type = FAT_POINTER; - break; - case 't': - type = FAT_NONE; - break; - case 'T': - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - format++; - type = FAT_NONE; - break; - case 'n': - type = FAT_NONE; - break; - case '|': - if (brackets) - { - --format; - type = FAT_ANY; - break; - } - /*FALLTHROUGH*/ - default: - --format; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, - *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - if (brackets) - { - if (*format != '|') - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - xasprintf (_("The directive number %u starts with | but does not end with |."), - spec.directives); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - format++; - } - } - - if (type != FAT_NONE) - { - if (number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = type; - unnumbered_arg_count++; - } - } - } + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format == '%') + format++; + else + { + bool brackets = false; + bool done = false; + unsigned int number = 0; + enum format_arg_type type = FAT_NONE; + + if (*format == '|') + { + format++; + brackets = true; + } + + if (isdigit (*format) && *format != '0') + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if ((!brackets && *f == '%') || *f == '$') + { + if (m == 0) /* can happen if m overflows */ + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + if (*f == '%') + { + type = FAT_ANY; + done = true; + } + format = ++f; + } + } + + if (!done) + { + /* Parse flags. */ + for (;;) + { + if (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0' || *format == '\'' + || *format == '_' || *format == '=' || *format == 'h' + || *format == 'l') + format++; + else + break; + } + + /* Parse width. */ + if (*format == '*') + { + unsigned int width_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_WIDTH_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + width_number = m; + format = ++f; + } + } + + if (width_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are + exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = + INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = width_number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are + exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = + INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + unsigned int precision_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_PRECISION_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + precision_number = m; + format = ++f; + } + } + + if (precision_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are + exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = + INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = precision_number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are + exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = + INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + /* Parse size. */ + for (;;) + { + if (*format == 'h' || *format == 'l' || *format == 'L') + format++; + else + break; + } + + switch (*format++) + { + case 'c': case 'C': + type = FAT_CHAR; + break; + case 's': case 'S': + type = FAT_ANY; + break; + case 'i': case 'd': case 'o': case 'u': case 'x': case 'X': + type = FAT_INTEGER; + break; + case 'e': case 'E': case 'f': case 'g': case 'G': + type = FAT_DOUBLE; + break; + case 'p': + type = FAT_POINTER; + break; + case 't': + type = FAT_NONE; + break; + case 'T': + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + format++; + type = FAT_NONE; + break; + case 'n': + type = FAT_NONE; + break; + case '|': + if (brackets) + { + --format; + type = FAT_ANY; + break; + } + /*FALLTHROUGH*/ + default: + --format; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, + *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + if (brackets) + { + if (*format != '|') + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + xasprintf (_("The directive number %u starts with | but does not end with |."), + spec.directives); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + format++; + } + } + + if (type != FAT_NONE) + { + if (number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = type; + unnumbered_arg_count++; + } + } + } - FDI_SET (format - 1, FMTDIR_END); + FDI_SET (format - 1, FMTDIR_END); } /* Convert the unnumbered argument array to numbered arguments. */ @@ -516,46 +516,46 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2 || type2 == FAT_ANY) - type_both = type1; - else if (type1 == FAT_ANY) - type_both = type2; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2 || type2 == FAT_ANY) + type_both = type1; + else if (type1 == FAT_ANY) + type_both = type2; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -588,8 +588,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -602,58 +602,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -697,31 +699,31 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_DOUBLE: - printf ("f"); - break; - case FAT_CHAR: - printf ("c"); - break; - case FAT_POINTER: - printf ("p"); - break; - case FAT_ANY: - printf ("*"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_DOUBLE: + printf ("f"); + break; + case FAT_CHAR: + printf ("c"); + break; + case FAT_POINTER: + printf ("p"); + break; + case FAT_ANY: + printf ("*"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -740,9 +742,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -750,7 +752,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format.c gettext-0.18.1.1/gettext-tools/src/format.c --- gettext-0.17/gettext-tools/src/format.c 2007-10-20 20:25:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Format strings. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -34,44 +34,41 @@ /* Table of all format string parsers. */ struct formatstring_parser *formatstring_parsers[NFORMATS] = { - /* format_c */ &formatstring_c, - /* format_objc */ &formatstring_objc, - /* format_sh */ &formatstring_sh, - /* format_python */ &formatstring_python, - /* format_lisp */ &formatstring_lisp, - /* format_elisp */ &formatstring_elisp, - /* format_librep */ &formatstring_librep, - /* format_scheme */ &formatstring_scheme, - /* format_smalltalk */ &formatstring_smalltalk, - /* format_java */ &formatstring_java, - /* format_csharp */ &formatstring_csharp, - /* format_awk */ &formatstring_awk, - /* format_pascal */ &formatstring_pascal, - /* format_ycp */ &formatstring_ycp, - /* format_tcl */ &formatstring_tcl, - /* format_perl */ &formatstring_perl, - /* format_perl_brace */ &formatstring_perl_brace, - /* format_php */ &formatstring_php, - /* format_gcc_internal */ &formatstring_gcc_internal, - /* format_qt */ &formatstring_qt, - /* format_kde */ &formatstring_kde, - /* format_boost */ &formatstring_boost + /* format_c */ &formatstring_c, + /* format_objc */ &formatstring_objc, + /* format_sh */ &formatstring_sh, + /* format_python */ &formatstring_python, + /* format_lisp */ &formatstring_lisp, + /* format_elisp */ &formatstring_elisp, + /* format_librep */ &formatstring_librep, + /* format_scheme */ &formatstring_scheme, + /* format_smalltalk */ &formatstring_smalltalk, + /* format_java */ &formatstring_java, + /* format_csharp */ &formatstring_csharp, + /* format_awk */ &formatstring_awk, + /* format_pascal */ &formatstring_pascal, + /* format_ycp */ &formatstring_ycp, + /* format_tcl */ &formatstring_tcl, + /* format_perl */ &formatstring_perl, + /* format_perl_brace */ &formatstring_perl_brace, + /* format_php */ &formatstring_php, + /* format_gcc_internal */ &formatstring_gcc_internal, + /* format_gfc_internal */ &formatstring_gfc_internal, + /* format_qt */ &formatstring_qt, + /* format_qt_plural */ &formatstring_qt_plural, + /* format_kde */ &formatstring_kde, + /* format_boost */ &formatstring_boost }; /* Check whether both formats strings contain compatible format - specifications for format type i (0 <= i < NFORMATS). - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. - PLURAL_DISTRIBUTION_LENGTH is the length of the PLURAL_DISTRIBUTION array. - Return the number of errors that were seen. */ + specifications for format type i (0 <= i < NFORMATS). */ int check_msgid_msgstr_format_i (const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - size_t i, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - formatstring_error_logger_t error_logger) + const char *msgstr, size_t msgstr_len, + size_t i, + struct argument_range range, + const struct plural_distribution *distribution, + formatstring_error_logger_t error_logger) { int seen_errors = 0; @@ -90,10 +87,12 @@ char *invalid_reason = NULL; void *msgid_descr = parser->parse (msgid_plural != NULL ? msgid_plural : msgid, false, NULL, - &invalid_reason); + &invalid_reason); if (msgid_descr != NULL) { + const char *pretty_msgid = + (msgid_plural != NULL ? "msgid_plural" : "msgid"); char buf[18+1]; const char *pretty_msgstr = "msgstr"; bool has_plural_translations = (strlen (msgstr) + 1 < msgstr_len); @@ -102,52 +101,58 @@ unsigned int j; for (p = msgstr, j = 0; p < p_end; p += strlen (p) + 1, j++) - { - void *msgstr_descr; + { + void *msgstr_descr; - if (msgid_plural != NULL) - { - sprintf (buf, "msgstr[%u]", j); - pretty_msgstr = buf; - } - - msgstr_descr = parser->parse (p, true, NULL, &invalid_reason); - - if (msgstr_descr != NULL) - { - /* Use strict checking (require same number of format - directives on both sides) if the message has no plurals, - or if msgid_plural exists but on the msgstr[] side - there is only msgstr[0], or if plural_distribution[j] - indicates that the variant applies to infinitely many - values of N. - Use relaxed checking when there are at least two - msgstr[] forms and the plural_distribution array does - not give more precise information. */ - bool strict_checking = - (msgid_plural == NULL - || !has_plural_translations - || (plural_distribution != NULL - && j < plural_distribution_length - && plural_distribution[j])); - - if (parser->check (msgid_descr, msgstr_descr, - strict_checking, - error_logger, pretty_msgstr)) - seen_errors++; - - parser->free (msgstr_descr); - } - else - { - error_logger (_("\ -'%s' is not a valid %s format string, unlike 'msgid'. Reason: %s"), - pretty_msgstr, format_language_pretty[i], - invalid_reason); - seen_errors++; - free (invalid_reason); - } - } + if (msgid_plural != NULL) + { + sprintf (buf, "msgstr[%u]", j); + pretty_msgstr = buf; + } + + msgstr_descr = parser->parse (p, true, NULL, &invalid_reason); + + if (msgstr_descr != NULL) + { + /* Use strict checking (require same number of format + directives on both sides) if the message has no plurals, + or if msgid_plural exists but on the msgstr[] side + there is only msgstr[0], or if distribution->often[j] + indicates that the variant applies to infinitely many + values of N and the N range is not restricted in a way + that the variant applies to only one N. + Use relaxed checking when there are at least two + msgstr[] forms and the distribution does not give more + precise information. */ + bool strict_checking = + (msgid_plural == NULL + || !has_plural_translations + || (distribution != NULL + && distribution->often != NULL + && j < distribution->often_length + && distribution->often[j] + && !(has_range_p (range) + && distribution->histogram (distribution, + range.min, range.max, j) + <= 1))); + + if (parser->check (msgid_descr, msgstr_descr, + strict_checking, + error_logger, pretty_msgid, pretty_msgstr)) + seen_errors++; + + parser->free (msgstr_descr); + } + else + { + error_logger (_("\ +'%s' is not a valid %s format string, unlike '%s'. Reason: %s"), + pretty_msgstr, format_language_pretty[i], + pretty_msgid, invalid_reason); + seen_errors++; + free (invalid_reason); + } + } parser->free (msgid_descr); } @@ -159,18 +164,14 @@ /* Check whether both formats strings contain compatible format specifications. - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. - PLURAL_DISTRIBUTION_LENGTH is the length of the PLURAL_DISTRIBUTION array. Return the number of errors that were seen. */ int check_msgid_msgstr_format (const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - const enum is_format is_format[NFORMATS], - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - formatstring_error_logger_t error_logger) + const char *msgstr, size_t msgstr_len, + const enum is_format is_format[NFORMATS], + struct argument_range range, + const struct plural_distribution *distribution, + formatstring_error_logger_t error_logger) { int seen_errors = 0; size_t i; @@ -184,10 +185,10 @@ for (i = 0; i < NFORMATS; i++) if (possible_format_p (is_format[i])) seen_errors += check_msgid_msgstr_format_i (msgid, msgid_plural, - msgstr, msgstr_len, i, - plural_distribution, - plural_distribution_length, - error_logger); + msgstr, msgstr_len, i, + range, + distribution, + error_logger); return seen_errors; } diff -Nru gettext-0.17/gettext-tools/src/format-c.c gettext-0.18.1.1/gettext-tools/src/format-c.c --- gettext-0.17/gettext-tools/src/format-c.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-c.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* C format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -65,73 +65,73 @@ enum format_arg_type { - FAT_NONE = 0, + FAT_NONE = 0, /* Basic types */ - FAT_INTEGER = 1, - FAT_DOUBLE = 2, - FAT_CHAR = 3, - FAT_STRING = 4, - FAT_OBJC_OBJECT = 5, - FAT_POINTER = 6, - FAT_COUNT_POINTER = 7, + FAT_INTEGER = 1, + FAT_DOUBLE = 2, + FAT_CHAR = 3, + FAT_STRING = 4, + FAT_OBJC_OBJECT = 5, + FAT_POINTER = 6, + FAT_COUNT_POINTER = 7, /* Flags */ - FAT_UNSIGNED = 1 << 3, - FAT_SIZE_SHORT = 1 << 4, - FAT_SIZE_CHAR = 2 << 4, - FAT_SIZE_LONG = 1 << 6, - FAT_SIZE_LONGLONG = 2 << 6, - FAT_SIZE_8_T = 1 << 8, - FAT_SIZE_16_T = 1 << 9, - FAT_SIZE_32_T = 1 << 10, - FAT_SIZE_64_T = 1 << 11, - FAT_SIZE_LEAST8_T = 1 << 12, - FAT_SIZE_LEAST16_T = 1 << 13, - FAT_SIZE_LEAST32_T = 1 << 14, - FAT_SIZE_LEAST64_T = 1 << 15, - FAT_SIZE_FAST8_T = 1 << 16, - FAT_SIZE_FAST16_T = 1 << 17, - FAT_SIZE_FAST32_T = 1 << 18, - FAT_SIZE_FAST64_T = 1 << 19, - FAT_SIZE_INTMAX_T = 1 << 20, - FAT_SIZE_INTPTR_T = 1 << 21, - FAT_SIZE_SIZE_T = 1 << 22, - FAT_SIZE_PTRDIFF_T = 1 << 23, - FAT_WIDE = FAT_SIZE_LONG, + FAT_UNSIGNED = 1 << 3, + FAT_SIZE_SHORT = 1 << 4, + FAT_SIZE_CHAR = 2 << 4, + FAT_SIZE_LONG = 1 << 6, + FAT_SIZE_LONGLONG = 2 << 6, + FAT_SIZE_8_T = 1 << 8, + FAT_SIZE_16_T = 1 << 9, + FAT_SIZE_32_T = 1 << 10, + FAT_SIZE_64_T = 1 << 11, + FAT_SIZE_LEAST8_T = 1 << 12, + FAT_SIZE_LEAST16_T = 1 << 13, + FAT_SIZE_LEAST32_T = 1 << 14, + FAT_SIZE_LEAST64_T = 1 << 15, + FAT_SIZE_FAST8_T = 1 << 16, + FAT_SIZE_FAST16_T = 1 << 17, + FAT_SIZE_FAST32_T = 1 << 18, + FAT_SIZE_FAST64_T = 1 << 19, + FAT_SIZE_INTMAX_T = 1 << 20, + FAT_SIZE_INTPTR_T = 1 << 21, + FAT_SIZE_SIZE_T = 1 << 22, + FAT_SIZE_PTRDIFF_T = 1 << 23, + FAT_WIDE = FAT_SIZE_LONG, /* Meaningful combinations of basic types and flags: - 'signed char' = FAT_INTEGER | FAT_SIZE_CHAR, - 'unsigned char' = FAT_INTEGER | FAT_SIZE_CHAR | FAT_UNSIGNED, - 'short' = FAT_INTEGER | FAT_SIZE_SHORT, - 'unsigned short' = FAT_INTEGER | FAT_SIZE_SHORT | FAT_UNSIGNED, - 'int' = FAT_INTEGER, - 'unsigned int' = FAT_INTEGER | FAT_UNSIGNED, - 'long int' = FAT_INTEGER | FAT_SIZE_LONG, - 'unsigned long int' = FAT_INTEGER | FAT_SIZE_LONG | FAT_UNSIGNED, - 'long long int' = FAT_INTEGER | FAT_SIZE_LONGLONG, - 'unsigned long long int' = FAT_INTEGER | FAT_SIZE_LONGLONG | FAT_UNSIGNED, - 'double' = FAT_DOUBLE, - 'long double' = FAT_DOUBLE | FAT_SIZE_LONGLONG, - 'char'/'int' = FAT_CHAR, - 'wchar_t'/'wint_t' = FAT_CHAR | FAT_SIZE_LONG, - 'const char *' = FAT_STRING, - 'const wchar_t *' = FAT_STRING | FAT_SIZE_LONG, - 'void *' = FAT_POINTER, - FAT_COUNT_SCHAR_POINTER = FAT_COUNT_POINTER | FAT_SIZE_CHAR, - FAT_COUNT_SHORT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_SHORT, - FAT_COUNT_INT_POINTER = FAT_COUNT_POINTER, - FAT_COUNT_LONGINT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_LONG, - FAT_COUNT_LONGLONGINT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_LONGLONG, + 'signed char' = FAT_INTEGER | FAT_SIZE_CHAR, + 'unsigned char' = FAT_INTEGER | FAT_SIZE_CHAR | FAT_UNSIGNED, + 'short' = FAT_INTEGER | FAT_SIZE_SHORT, + 'unsigned short' = FAT_INTEGER | FAT_SIZE_SHORT | FAT_UNSIGNED, + 'int' = FAT_INTEGER, + 'unsigned int' = FAT_INTEGER | FAT_UNSIGNED, + 'long int' = FAT_INTEGER | FAT_SIZE_LONG, + 'unsigned long int' = FAT_INTEGER | FAT_SIZE_LONG | FAT_UNSIGNED, + 'long long int' = FAT_INTEGER | FAT_SIZE_LONGLONG, + 'unsigned long long int' = FAT_INTEGER | FAT_SIZE_LONGLONG | FAT_UNSIGNED, + 'double' = FAT_DOUBLE, + 'long double' = FAT_DOUBLE | FAT_SIZE_LONGLONG, + 'char'/'int' = FAT_CHAR, + 'wchar_t'/'wint_t' = FAT_CHAR | FAT_SIZE_LONG, + 'const char *' = FAT_STRING, + 'const wchar_t *' = FAT_STRING | FAT_SIZE_LONG, + 'void *' = FAT_POINTER, + FAT_COUNT_SCHAR_POINTER = FAT_COUNT_POINTER | FAT_SIZE_CHAR, + FAT_COUNT_SHORT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_SHORT, + FAT_COUNT_INT_POINTER = FAT_COUNT_POINTER, + FAT_COUNT_LONGINT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_LONG, + FAT_COUNT_LONGLONGINT_POINTER = FAT_COUNT_POINTER | FAT_SIZE_LONGLONG, */ /* Bitmasks */ - FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_CHAR - | FAT_SIZE_LONG | FAT_SIZE_LONGLONG - | FAT_SIZE_8_T | FAT_SIZE_16_T - | FAT_SIZE_32_T | FAT_SIZE_64_T - | FAT_SIZE_LEAST8_T | FAT_SIZE_LEAST16_T - | FAT_SIZE_LEAST32_T | FAT_SIZE_LEAST64_T - | FAT_SIZE_FAST8_T | FAT_SIZE_FAST16_T - | FAT_SIZE_FAST32_T | FAT_SIZE_FAST64_T - | FAT_SIZE_INTMAX_T | FAT_SIZE_INTPTR_T - | FAT_SIZE_SIZE_T | FAT_SIZE_PTRDIFF_T) + FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_CHAR + | FAT_SIZE_LONG | FAT_SIZE_LONGLONG + | FAT_SIZE_8_T | FAT_SIZE_16_T + | FAT_SIZE_32_T | FAT_SIZE_64_T + | FAT_SIZE_LEAST8_T | FAT_SIZE_LEAST16_T + | FAT_SIZE_LEAST32_T | FAT_SIZE_LEAST64_T + | FAT_SIZE_FAST8_T | FAT_SIZE_FAST16_T + | FAT_SIZE_FAST32_T | FAT_SIZE_FAST64_T + | FAT_SIZE_INTMAX_T | FAT_SIZE_INTPTR_T + | FAT_SIZE_SIZE_T | FAT_SIZE_PTRDIFF_T) }; #ifdef __cplusplus typedef int format_arg_type_t; @@ -182,7 +182,7 @@ static void * format_parse (const char *format, bool translated, bool objc_extensions, - char *fdi, char **invalid_reason) + char *fdi, char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -203,555 +203,555 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - unsigned int number = 0; - format_arg_type_t type; - format_arg_type_t size; - - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - format = ++f; - } - } - - /* Parse flags. */ - for (;;) - { - if (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0' || *format == '\'') - format++; - else if (translated && *format == 'I') - { - spec.sysdep_directives = - (const char **) - xrealloc (spec.sysdep_directives, - 2 * (spec.sysdep_directives_count + 1) - * sizeof (const char *)); - spec.sysdep_directives[2 * spec.sysdep_directives_count] = format; - spec.sysdep_directives[2 * spec.sysdep_directives_count + 1] = format + 1; - spec.sysdep_directives_count++; - format++; - } - else - break; - } - - /* Parse width. */ - if (*format == '*') - { - unsigned int width_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_WIDTH_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - width_number = m; - format = ++f; - } - } - - if (width_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = width_number; - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); - } - spec.unnumbered[spec.unnumbered_arg_count].type = FAT_INTEGER; - spec.unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - unsigned int precision_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = - INVALID_PRECISION_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - precision_number = m; - format = ++f; - } - } - - if (precision_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = precision_number; - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); - } - spec.unnumbered[spec.unnumbered_arg_count].type = FAT_INTEGER; - spec.unnumbered_arg_count++; - } - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - if (*format == '<') - { - spec.sysdep_directives = - (const char **) - xrealloc (spec.sysdep_directives, - 2 * (spec.sysdep_directives_count + 1) - * sizeof (const char *)); - spec.sysdep_directives[2 * spec.sysdep_directives_count] = format; - - format++; - /* Parse ISO C 99 section 7.8.1 format string directive. - Syntax: - P R I { d | i | o | u | x | X } - { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ - if (*format != 'P') - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - goto bad_format; - } - format++; - if (*format != 'R') - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - goto bad_format; - } - format++; - if (*format != 'I') - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - goto bad_format; - } - format++; - - switch (*format) - { - case 'i': case 'd': - type = FAT_INTEGER; - break; - case 'u': case 'o': case 'x': case 'X': - type = FAT_INTEGER | FAT_UNSIGNED; - break; - default: - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - goto bad_format; - } - format++; - - if (format[0] == 'M' && format[1] == 'A' && format[2] == 'X') - { - type |= FAT_SIZE_INTMAX_T; - format += 3; - } - else if (format[0] == 'P' && format[1] == 'T' && format[2] == 'R') - { - type |= FAT_SIZE_INTPTR_T; - format += 3; - } - else - { - if (format[0] == 'L' && format[1] == 'E' && format[2] == 'A' - && format[3] == 'S' && format[4] == 'T') - { - format += 5; - if (format[0] == '8') - { - type |= FAT_SIZE_LEAST8_T; - format++; - } - else if (format[0] == '1' && format[1] == '6') - { - type |= FAT_SIZE_LEAST16_T; - format += 2; - } - else if (format[0] == '3' && format[1] == '2') - { - type |= FAT_SIZE_LEAST32_T; - format += 2; - } - else if (format[0] == '6' && format[1] == '4') - { - type |= FAT_SIZE_LEAST64_T; - format += 2; - } - else - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, - FMTDIR_ERROR); - goto bad_format; - } - } - else if (format[0] == 'F' && format[1] == 'A' - && format[2] == 'S' && format[3] == 'T') - { - format += 4; - if (format[0] == '8') - { - type |= FAT_SIZE_FAST8_T; - format++; - } - else if (format[0] == '1' && format[1] == '6') - { - type |= FAT_SIZE_FAST16_T; - format += 2; - } - else if (format[0] == '3' && format[1] == '2') - { - type |= FAT_SIZE_FAST32_T; - format += 2; - } - else if (format[0] == '6' && format[1] == '4') - { - type |= FAT_SIZE_FAST64_T; - format += 2; - } - else - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, - FMTDIR_ERROR); - goto bad_format; - } - } - else - { - if (format[0] == '8') - { - type |= FAT_SIZE_8_T; - format++; - } - else if (format[0] == '1' && format[1] == '6') - { - type |= FAT_SIZE_16_T; - format += 2; - } - else if (format[0] == '3' && format[1] == '2') - { - type |= FAT_SIZE_32_T; - format += 2; - } - else if (format[0] == '6' && format[1] == '4') - { - type |= FAT_SIZE_64_T; - format += 2; - } - else - { - *invalid_reason = INVALID_C99_MACRO (spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, - FMTDIR_ERROR); - goto bad_format; - } - } - } - - if (*format != '>') - { - *invalid_reason = - xasprintf (_("In the directive number %u, the token after '<' is not followed by '>'."), spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - goto bad_format; - } - - spec.sysdep_directives[2 * spec.sysdep_directives_count + 1] = format + 1; - spec.sysdep_directives_count++; - } - else - { - /* Parse size. */ - size = 0; - for (;; format++) - { - if (*format == 'h') - { - if (size & (FAT_SIZE_SHORT | FAT_SIZE_CHAR)) - size = FAT_SIZE_CHAR; - else - size = FAT_SIZE_SHORT; - } - else if (*format == 'l') - { - if (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG)) - size = FAT_SIZE_LONGLONG; - else - size = FAT_SIZE_LONG; - } - else if (*format == 'L') - size = FAT_SIZE_LONGLONG; - else if (*format == 'q') - /* Old BSD 4.4 convention. */ - size = FAT_SIZE_LONGLONG; - else if (*format == 'j') - size = FAT_SIZE_INTMAX_T; - else if (*format == 'z' || *format == 'Z') - /* 'z' is standardized in ISO C 99, but glibc uses 'Z' - because the warning facility in gcc-2.95.2 understands - only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ - size = FAT_SIZE_SIZE_T; - else if (*format == 't') - size = FAT_SIZE_PTRDIFF_T; - else - break; - } - - switch (*format) - { - case '%': - /* Programmers writing _("%2%") most often will not want to - use this string as a c-format string, but rather as a - literal or as a different kind of format string. */ - if (format[-1] != '%') - spec.unlikely_intentional = true; - type = FAT_NONE; - break; - case 'm': /* glibc extension */ - type = FAT_NONE; - break; - case 'c': - type = FAT_CHAR; - type |= (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG) - ? FAT_WIDE : 0); - break; - case 'C': /* obsolete */ - type = FAT_CHAR | FAT_WIDE; - break; - case 's': - type = FAT_STRING; - type |= (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG) - ? FAT_WIDE : 0); - break; - case 'S': /* obsolete */ - type = FAT_STRING | FAT_WIDE; - break; - case 'i': case 'd': - type = FAT_INTEGER; - type |= (size & FAT_SIZE_MASK); - break; - case 'u': case 'o': case 'x': case 'X': - type = FAT_INTEGER | FAT_UNSIGNED; - type |= (size & FAT_SIZE_MASK); - break; - case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': - case 'a': case 'A': - type = FAT_DOUBLE; - type |= (size & FAT_SIZE_LONGLONG); - break; - case '@': - if (objc_extensions) - { - type = FAT_OBJC_OBJECT; - break; - } - goto other; - case 'p': - type = FAT_POINTER; - break; - case 'n': - type = FAT_COUNT_POINTER; - type |= (size & FAT_SIZE_MASK); - break; - other: - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - } - - if (type != FAT_NONE) - { - if (number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = number; - numbered[numbered_arg_count].type = type; - numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); - } - spec.unnumbered[spec.unnumbered_arg_count].type = type; - spec.unnumbered_arg_count++; - } - } + /* A directive. */ + unsigned int number = 0; + format_arg_type_t type; + format_arg_type_t size; + + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + } + } + + /* Parse flags. */ + for (;;) + { + if (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0' || *format == '\'') + format++; + else if (translated && *format == 'I') + { + spec.sysdep_directives = + (const char **) + xrealloc (spec.sysdep_directives, + 2 * (spec.sysdep_directives_count + 1) + * sizeof (const char *)); + spec.sysdep_directives[2 * spec.sysdep_directives_count] = format; + spec.sysdep_directives[2 * spec.sysdep_directives_count + 1] = format + 1; + spec.sysdep_directives_count++; + format++; + } + else + break; + } + + /* Parse width. */ + if (*format == '*') + { + unsigned int width_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_WIDTH_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + width_number = m; + format = ++f; + } + } + + if (width_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = width_number; + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); + } + spec.unnumbered[spec.unnumbered_arg_count].type = FAT_INTEGER; + spec.unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + unsigned int precision_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = + INVALID_PRECISION_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + precision_number = m; + format = ++f; + } + } + + if (precision_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = precision_number; + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); + } + spec.unnumbered[spec.unnumbered_arg_count].type = FAT_INTEGER; + spec.unnumbered_arg_count++; + } + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + if (*format == '<') + { + spec.sysdep_directives = + (const char **) + xrealloc (spec.sysdep_directives, + 2 * (spec.sysdep_directives_count + 1) + * sizeof (const char *)); + spec.sysdep_directives[2 * spec.sysdep_directives_count] = format; + + format++; + /* Parse ISO C 99 section 7.8.1 format string directive. + Syntax: + P R I { d | i | o | u | x | X } + { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ + if (*format != 'P') + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + goto bad_format; + } + format++; + if (*format != 'R') + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + goto bad_format; + } + format++; + if (*format != 'I') + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + goto bad_format; + } + format++; + + switch (*format) + { + case 'i': case 'd': + type = FAT_INTEGER; + break; + case 'u': case 'o': case 'x': case 'X': + type = FAT_INTEGER | FAT_UNSIGNED; + break; + default: + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + goto bad_format; + } + format++; + + if (format[0] == 'M' && format[1] == 'A' && format[2] == 'X') + { + type |= FAT_SIZE_INTMAX_T; + format += 3; + } + else if (format[0] == 'P' && format[1] == 'T' && format[2] == 'R') + { + type |= FAT_SIZE_INTPTR_T; + format += 3; + } + else + { + if (format[0] == 'L' && format[1] == 'E' && format[2] == 'A' + && format[3] == 'S' && format[4] == 'T') + { + format += 5; + if (format[0] == '8') + { + type |= FAT_SIZE_LEAST8_T; + format++; + } + else if (format[0] == '1' && format[1] == '6') + { + type |= FAT_SIZE_LEAST16_T; + format += 2; + } + else if (format[0] == '3' && format[1] == '2') + { + type |= FAT_SIZE_LEAST32_T; + format += 2; + } + else if (format[0] == '6' && format[1] == '4') + { + type |= FAT_SIZE_LEAST64_T; + format += 2; + } + else + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, + FMTDIR_ERROR); + goto bad_format; + } + } + else if (format[0] == 'F' && format[1] == 'A' + && format[2] == 'S' && format[3] == 'T') + { + format += 4; + if (format[0] == '8') + { + type |= FAT_SIZE_FAST8_T; + format++; + } + else if (format[0] == '1' && format[1] == '6') + { + type |= FAT_SIZE_FAST16_T; + format += 2; + } + else if (format[0] == '3' && format[1] == '2') + { + type |= FAT_SIZE_FAST32_T; + format += 2; + } + else if (format[0] == '6' && format[1] == '4') + { + type |= FAT_SIZE_FAST64_T; + format += 2; + } + else + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, + FMTDIR_ERROR); + goto bad_format; + } + } + else + { + if (format[0] == '8') + { + type |= FAT_SIZE_8_T; + format++; + } + else if (format[0] == '1' && format[1] == '6') + { + type |= FAT_SIZE_16_T; + format += 2; + } + else if (format[0] == '3' && format[1] == '2') + { + type |= FAT_SIZE_32_T; + format += 2; + } + else if (format[0] == '6' && format[1] == '4') + { + type |= FAT_SIZE_64_T; + format += 2; + } + else + { + *invalid_reason = INVALID_C99_MACRO (spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, + FMTDIR_ERROR); + goto bad_format; + } + } + } + + if (*format != '>') + { + *invalid_reason = + xasprintf (_("In the directive number %u, the token after '<' is not followed by '>'."), spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + goto bad_format; + } + + spec.sysdep_directives[2 * spec.sysdep_directives_count + 1] = format + 1; + spec.sysdep_directives_count++; + } + else + { + /* Parse size. */ + size = 0; + for (;; format++) + { + if (*format == 'h') + { + if (size & (FAT_SIZE_SHORT | FAT_SIZE_CHAR)) + size = FAT_SIZE_CHAR; + else + size = FAT_SIZE_SHORT; + } + else if (*format == 'l') + { + if (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG)) + size = FAT_SIZE_LONGLONG; + else + size = FAT_SIZE_LONG; + } + else if (*format == 'L') + size = FAT_SIZE_LONGLONG; + else if (*format == 'q') + /* Old BSD 4.4 convention. */ + size = FAT_SIZE_LONGLONG; + else if (*format == 'j') + size = FAT_SIZE_INTMAX_T; + else if (*format == 'z' || *format == 'Z') + /* 'z' is standardized in ISO C 99, but glibc uses 'Z' + because the warning facility in gcc-2.95.2 understands + only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ + size = FAT_SIZE_SIZE_T; + else if (*format == 't') + size = FAT_SIZE_PTRDIFF_T; + else + break; + } + + switch (*format) + { + case '%': + /* Programmers writing _("%2%") most often will not want to + use this string as a c-format string, but rather as a + literal or as a different kind of format string. */ + if (format[-1] != '%') + spec.unlikely_intentional = true; + type = FAT_NONE; + break; + case 'm': /* glibc extension */ + type = FAT_NONE; + break; + case 'c': + type = FAT_CHAR; + type |= (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG) + ? FAT_WIDE : 0); + break; + case 'C': /* obsolete */ + type = FAT_CHAR | FAT_WIDE; + break; + case 's': + type = FAT_STRING; + type |= (size & (FAT_SIZE_LONG | FAT_SIZE_LONGLONG) + ? FAT_WIDE : 0); + break; + case 'S': /* obsolete */ + type = FAT_STRING | FAT_WIDE; + break; + case 'i': case 'd': + type = FAT_INTEGER; + type |= (size & FAT_SIZE_MASK); + break; + case 'u': case 'o': case 'x': case 'X': + type = FAT_INTEGER | FAT_UNSIGNED; + type |= (size & FAT_SIZE_MASK); + break; + case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': + case 'a': case 'A': + type = FAT_DOUBLE; + type |= (size & FAT_SIZE_LONGLONG); + break; + case '@': + if (objc_extensions) + { + type = FAT_OBJC_OBJECT; + break; + } + goto other; + case 'p': + type = FAT_POINTER; + break; + case 'n': + type = FAT_COUNT_POINTER; + type |= (size & FAT_SIZE_MASK); + break; + other: + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + } + + if (type != FAT_NONE) + { + if (number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, spec.allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = number; + numbered[numbered_arg_count].type = type; + numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnumbered = (struct unnumbered_arg *) xrealloc (spec.unnumbered, spec.allocated * sizeof (struct unnumbered_arg)); + } + spec.unnumbered[spec.unnumbered_arg_count].type = type; + spec.unnumbered_arg_count++; + } + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -761,44 +761,44 @@ bool err; qsort (numbered, numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < numbered_arg_count; i++) - if (j > 0 && numbered[i].number == numbered[j-1].number) - { - format_arg_type_t type1 = numbered[i].type; - format_arg_type_t type2 = numbered[j-1].type; - format_arg_type_t type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); - err = true; - } - - numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - numbered[j].number = numbered[i].number; - numbered[j].type = numbered[i].type; - } - j++; - } + if (j > 0 && numbered[i].number == numbered[j-1].number) + { + format_arg_type_t type1 = numbered[i].type; + format_arg_type_t type2 = numbered[j-1].type; + format_arg_type_t type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); + err = true; + } + + numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + numbered[j].number = numbered[i].number; + numbered[j].type = numbered[i].type; + } + j++; + } numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } /* Verify that the format strings uses all arguments up to the highest @@ -808,20 +808,20 @@ unsigned int i; for (i = 0; i < numbered_arg_count; i++) - if (numbered[i].number != i + 1) - { - *invalid_reason = - xasprintf (_("The string refers to argument number %u but ignores argument number %u."), numbered[i].number, i + 1); - goto bad_format; - } + if (numbered[i].number != i + 1) + { + *invalid_reason = + xasprintf (_("The string refers to argument number %u but ignores argument number %u."), numbered[i].number, i + 1); + goto bad_format; + } /* So now the numbered arguments array is equivalent to a sequence - of unnumbered arguments. */ + of unnumbered arguments. */ spec.unnumbered_arg_count = numbered_arg_count; spec.allocated = spec.unnumbered_arg_count; spec.unnumbered = XNMALLOC (spec.allocated, struct unnumbered_arg); for (i = 0; i < spec.unnumbered_arg_count; i++) - spec.unnumbered[i].type = numbered[i].type; + spec.unnumbered[i].type = numbered[i].type; free (numbered); numbered_arg_count = 0; } @@ -842,14 +842,14 @@ static void * format_c_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { return format_parse (format, translated, false, fdi, invalid_reason); } static void * format_objc_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { return format_parse (format, translated, true, fdi, invalid_reason); } @@ -884,8 +884,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -898,19 +898,19 @@ : spec1->unnumbered_arg_count < spec2->unnumbered_arg_count) { if (error_logger) - error_logger (_("number of format specifications in 'msgid' and '%s' does not match"), - pretty_msgstr); + error_logger (_("number of format specifications in '%s' and '%s' does not match"), + pretty_msgid, pretty_msgstr); err = true; } else for (i = 0; i < spec2->unnumbered_arg_count; i++) if (spec1->unnumbered[i].type != spec2->unnumbered[i].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, i + 1); - err = true; - } + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, i + 1); + err = true; + } return err; } @@ -938,7 +938,7 @@ void get_sysdep_c_format_directives (const char *string, bool translated, - struct interval **intervalsp, size_t *lengthp) + struct interval **intervalsp, size_t *lengthp) { /* Parse the format string with all possible extensions turned on. (The caller has already verified that the format string is valid for the @@ -955,10 +955,10 @@ unsigned int i; for (i = 0; i < n; i++) - { - intervals[i].startpos = descr->sysdep_directives[2 * i] - string; - intervals[i].endpos = descr->sysdep_directives[2 * i + 1] - string; - } + { + intervals[i].startpos = descr->sysdep_directives[2 * i] - string; + intervals[i].endpos = descr->sysdep_directives[2 * i + 1] - string; + } *intervalsp = intervals; *lengthp = n; } @@ -998,102 +998,102 @@ for (i = 0; i < spec->unnumbered_arg_count; i++) { if (i > 0) - printf (" "); + printf (" "); if (spec->unnumbered[i].type & FAT_UNSIGNED) - printf ("[unsigned]"); + printf ("[unsigned]"); switch (spec->unnumbered[i].type & FAT_SIZE_MASK) - { - case 0: - break; - case FAT_SIZE_SHORT: - printf ("[short]"); - break; - case FAT_SIZE_CHAR: - printf ("[char]"); - break; - case FAT_SIZE_LONG: - printf ("[long]"); - break; - case FAT_SIZE_LONGLONG: - printf ("[long long]"); - break; - case FAT_SIZE_8_T: - printf ("[int8_t]"); - break; - case FAT_SIZE_16_T: - printf ("[int16_t]"); - break; - case FAT_SIZE_32_T: - printf ("[int32_t]"); - break; - case FAT_SIZE_64_T: - printf ("[int64_t]"); - break; - case FAT_SIZE_LEAST8_T: - printf ("[int_least8_t]"); - break; - case FAT_SIZE_LEAST16_T: - printf ("[int_least16_t]"); - break; - case FAT_SIZE_LEAST32_T: - printf ("[int_least32_t]"); - break; - case FAT_SIZE_LEAST64_T: - printf ("[int_least64_t]"); - break; - case FAT_SIZE_FAST8_T: - printf ("[int_fast8_t]"); - break; - case FAT_SIZE_FAST16_T: - printf ("[int_fast16_t]"); - break; - case FAT_SIZE_FAST32_T: - printf ("[int_fast32_t]"); - break; - case FAT_SIZE_FAST64_T: - printf ("[int_fast64_t]"); - break; - case FAT_SIZE_INTMAX_T: - printf ("[intmax_t]"); - break; - case FAT_SIZE_INTPTR_T: - printf ("[intptr_t]"); - break; - case FAT_SIZE_SIZE_T: - printf ("[size_t]"); - break; - case FAT_SIZE_PTRDIFF_T: - printf ("[ptrdiff_t]"); - break; - default: - abort (); - } + { + case 0: + break; + case FAT_SIZE_SHORT: + printf ("[short]"); + break; + case FAT_SIZE_CHAR: + printf ("[char]"); + break; + case FAT_SIZE_LONG: + printf ("[long]"); + break; + case FAT_SIZE_LONGLONG: + printf ("[long long]"); + break; + case FAT_SIZE_8_T: + printf ("[int8_t]"); + break; + case FAT_SIZE_16_T: + printf ("[int16_t]"); + break; + case FAT_SIZE_32_T: + printf ("[int32_t]"); + break; + case FAT_SIZE_64_T: + printf ("[int64_t]"); + break; + case FAT_SIZE_LEAST8_T: + printf ("[int_least8_t]"); + break; + case FAT_SIZE_LEAST16_T: + printf ("[int_least16_t]"); + break; + case FAT_SIZE_LEAST32_T: + printf ("[int_least32_t]"); + break; + case FAT_SIZE_LEAST64_T: + printf ("[int_least64_t]"); + break; + case FAT_SIZE_FAST8_T: + printf ("[int_fast8_t]"); + break; + case FAT_SIZE_FAST16_T: + printf ("[int_fast16_t]"); + break; + case FAT_SIZE_FAST32_T: + printf ("[int_fast32_t]"); + break; + case FAT_SIZE_FAST64_T: + printf ("[int_fast64_t]"); + break; + case FAT_SIZE_INTMAX_T: + printf ("[intmax_t]"); + break; + case FAT_SIZE_INTPTR_T: + printf ("[intptr_t]"); + break; + case FAT_SIZE_SIZE_T: + printf ("[size_t]"); + break; + case FAT_SIZE_PTRDIFF_T: + printf ("[ptrdiff_t]"); + break; + default: + abort (); + } switch (spec->unnumbered[i].type & ~(FAT_UNSIGNED | FAT_SIZE_MASK)) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_DOUBLE: - printf ("f"); - break; - case FAT_CHAR: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_OBJC_OBJECT: - printf ("@"); - break; - case FAT_POINTER: - printf ("p"); - break; - case FAT_COUNT_POINTER: - printf ("n"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_DOUBLE: + printf ("f"); + break; + case FAT_CHAR: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_OBJC_OBJECT: + printf ("@"); + break; + case FAT_POINTER: + printf ("p"); + break; + case FAT_COUNT_POINTER: + printf ("n"); + break; + default: + abort (); + } } printf (")"); } @@ -1111,9 +1111,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_c_parse (line, false, NULL, &invalid_reason); @@ -1121,7 +1121,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-csharp.c gettext-0.18.1.1/gettext-tools/src/format-csharp.c --- gettext-0.17/gettext-tools/src/format-csharp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-csharp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* C# format strings. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -57,7 +57,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -71,100 +71,100 @@ char c = *format++; if (c == '{') - { - FDI_SET (format - 1, FMTDIR_START); - if (*format == '{') - format++; - else - { - /* A directive. */ - unsigned int number; - - spec.directives++; - - if (!c_isdigit (*format)) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - return NULL; - } - number = 0; - do - { - number = 10 * number + (*format - '0'); - format++; - } - while (c_isdigit (*format)); - - if (*format == ',') - { - /* Parse width. */ - format++; - if (*format == '-') - format++; - if (!c_isdigit (*format)) - { - *invalid_reason = - xasprintf (_("In the directive number %u, ',' is not followed by a number."), spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, - FMTDIR_ERROR); - return NULL; - } - do - format++; - while (c_isdigit (*format)); - } - - if (*format == ':') - { - /* Parse format specifiers. */ - do - format++; - while (*format != '\0' && *format != '}'); - } - - if (*format == '\0') - { - *invalid_reason = - xstrdup (_("The string ends in the middle of a directive: found '{' without matching '}'.")); - FDI_SET (format - 1, FMTDIR_ERROR); - return NULL; - } - - if (*format != '}') - { - *invalid_reason = - (c_isprint (*format) - ? xasprintf (_("The directive number %u ends with an invalid character '%c' instead of '}'."), spec.directives, *format) - : xasprintf (_("The directive number %u ends with an invalid character instead of '}'."), spec.directives)); - FDI_SET (format, FMTDIR_ERROR); - return NULL; - } - - format++; - - if (spec.numbered_arg_count <= number) - spec.numbered_arg_count = number + 1; - } - FDI_SET (format - 1, FMTDIR_END); - } + { + FDI_SET (format - 1, FMTDIR_START); + if (*format == '{') + format++; + else + { + /* A directive. */ + unsigned int number; + + spec.directives++; + + if (!c_isdigit (*format)) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + return NULL; + } + number = 0; + do + { + number = 10 * number + (*format - '0'); + format++; + } + while (c_isdigit (*format)); + + if (*format == ',') + { + /* Parse width. */ + format++; + if (*format == '-') + format++; + if (!c_isdigit (*format)) + { + *invalid_reason = + xasprintf (_("In the directive number %u, ',' is not followed by a number."), spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, + FMTDIR_ERROR); + return NULL; + } + do + format++; + while (c_isdigit (*format)); + } + + if (*format == ':') + { + /* Parse format specifiers. */ + do + format++; + while (*format != '\0' && *format != '}'); + } + + if (*format == '\0') + { + *invalid_reason = + xstrdup (_("The string ends in the middle of a directive: found '{' without matching '}'.")); + FDI_SET (format - 1, FMTDIR_ERROR); + return NULL; + } + + if (*format != '}') + { + *invalid_reason = + (c_isprint (*format) + ? xasprintf (_("The directive number %u ends with an invalid character '%c' instead of '}'."), spec.directives, *format) + : xasprintf (_("The directive number %u ends with an invalid character instead of '}'."), spec.directives)); + FDI_SET (format, FMTDIR_ERROR); + return NULL; + } + + format++; + + if (spec.numbered_arg_count <= number) + spec.numbered_arg_count = number + 1; + } + FDI_SET (format - 1, FMTDIR_END); + } else if (c == '}') - { - FDI_SET (format - 1, FMTDIR_START); - if (*format == '}') - format++; - else - { - *invalid_reason = - (spec.directives == 0 - ? xstrdup (_("The string starts in the middle of a directive: found '}' without matching '{'.")) - : xasprintf (_("The string contains a lone '}' after directive number %u."), spec.directives)); - FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); - return NULL; - } - FDI_SET (format - 1, FMTDIR_END); - } + { + FDI_SET (format - 1, FMTDIR_START); + if (*format == '}') + format++; + else + { + *invalid_reason = + (spec.directives == 0 + ? xstrdup (_("The string starts in the middle of a directive: found '}' without matching '{'.")) + : xasprintf (_("The string contains a lone '}' after directive number %u."), spec.directives)); + FDI_SET (*format == '\0' ? format - 1 : format, FMTDIR_ERROR); + return NULL; + } + FDI_SET (format - 1, FMTDIR_END); + } } result = XMALLOC (struct spec); @@ -190,8 +190,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -203,8 +203,8 @@ : spec1->numbered_arg_count < spec2->numbered_arg_count) { if (error_logger) - error_logger (_("number of format specifications in 'msgid' and '%s' does not match"), - pretty_msgstr); + error_logger (_("number of format specifications in '%s' and '%s' does not match"), + pretty_msgid, pretty_msgstr); err = true; } @@ -245,7 +245,7 @@ for (i = 0; i < spec->numbered_arg_count; i++) { if (i > 0) - printf (" "); + printf (" "); printf ("*"); } printf (")"); @@ -264,9 +264,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -274,7 +274,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-elisp.c gettext-0.18.1.1/gettext-tools/src/format-elisp.c --- gettext-0.17/gettext-tools/src/format-elisp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-elisp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Emacs Lisp format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -95,7 +95,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -111,135 +111,135 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - enum format_arg_type type; + /* A directive. */ + enum format_arg_type type; - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$' && m > 0) - { - number = m; - format = ++f; - } - } - - /* Parse flags. */ - while (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0') - format++; - - /* Parse width. */ - if (*format == '*') - { - format++; - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - - number++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - format++; - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - - number++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - switch (*format) - { - case '%': - type = FAT_NONE; - break; - case 'c': - type = FAT_CHARACTER; - break; - case 'd': case 'i': case 'x': case 'X': case 'o': - type = FAT_INTEGER; - break; - case 'e': case 'E': case 'f': case 'g': case 'G': - type = FAT_FLOAT; - break; - case 's': - type = FAT_OBJECT_PRETTY; - break; - case 'S': - type = FAT_OBJECT; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (type != FAT_NONE) - { - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$' && m > 0) + { + number = m; + format = ++f; + } + } + + /* Parse flags. */ + while (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0') + format++; + + /* Parse width. */ + if (*format == '*') + { + format++; + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + + number++; + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + format++; + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + + number++; + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + switch (*format) + { + case '%': + type = FAT_NONE; + break; + case 'c': + type = FAT_CHARACTER; + break; + case 'd': case 'i': case 'x': case 'X': case 'o': + type = FAT_INTEGER; + break; + case 'e': case 'E': case 'f': case 'g': case 'G': + type = FAT_FLOAT; + break; + case 's': + type = FAT_OBJECT_PRETTY; + break; + case 'S': + type = FAT_OBJECT; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (type != FAT_NONE) + { + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; - number++; - } + number++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -249,44 +249,44 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -319,8 +319,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -333,58 +333,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -428,31 +430,31 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_FLOAT: - printf ("f"); - break; - case FAT_OBJECT_PRETTY: - printf ("s"); - break; - case FAT_OBJECT: - printf ("*"); - break; - default: - abort (); - } + { + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + case FAT_OBJECT_PRETTY: + printf ("s"); + break; + case FAT_OBJECT: + printf ("*"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -471,9 +473,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -481,7 +483,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-gcc-internal.c gettext-0.18.1.1/gettext-tools/src/format-gcc-internal.c --- gettext-0.17/gettext-tools/src/format-gcc-internal.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-gcc-internal.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GCC internal format strings. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -32,12 +32,12 @@ #define _(str) gettext (str) /* GCC internal format strings consist of language frontend independent - format directives, implemented in gcc-4.1.0/gcc/pretty-print.c (function + format directives, implemented in gcc-4.3.0/gcc/pretty-print.c (function pp_base_format), plus some frontend dependent extensions: - for the C/ObjC frontend - in gcc-4.1.0/gcc/c-objc-common.c (function c_tree_printer) + in gcc-4.3.0/gcc/c-objc-common.c (function c_tree_printer) - for the C++ frontend - in gcc-4.1.0/gcc/cp/error.c (function cp_printer) + in gcc-4.3.0/gcc/cp/error.c (function cp_printer) Taking these together, GCC internal format strings are specified as follows. A directive @@ -69,6 +69,7 @@ - 'p', that needs a 'void *' argument, - 'H', that needs a 'location_t *' argument, - 'J', that needs a general declaration argument, + - 'K', that needs a statement argument, [see gcc/pretty-print.c] - 'D', that needs a general declaration argument, @@ -91,32 +92,33 @@ enum format_arg_type { - FAT_NONE = 0, + FAT_NONE = 0, /* Basic types */ - FAT_INTEGER = 1, - FAT_CHAR = 2, - FAT_STRING = 3, - FAT_POINTER = 4, - FAT_LOCATION = 5, - FAT_TREE = 6, - FAT_TREE_CODE = 7, - FAT_LANGUAGES = 8, + FAT_INTEGER = 1, + FAT_CHAR = 2, + FAT_STRING = 3, + FAT_POINTER = 4, + FAT_LOCATION = 5, + FAT_TREE = 6, + FAT_TREE_CODE = 7, + FAT_LANGUAGES = 8, /* Flags */ - FAT_UNSIGNED = 1 << 4, - FAT_SIZE_LONG = 1 << 5, - FAT_SIZE_LONGLONG = 2 << 5, - FAT_SIZE_WIDE = 3 << 5, - FAT_TREE_DECL = 1 << 7, - FAT_TREE_FUNCDECL = 2 << 7, - FAT_TREE_TYPE = 3 << 7, - FAT_TREE_ARGUMENT = 4 << 7, - FAT_TREE_EXPRESSION = 5 << 7, - FAT_TREE_CV = 6 << 7, - FAT_TREE_CODE_BINOP = 1 << 10, - FAT_TREE_CODE_ASSOP = 2 << 10, - FAT_FUNCPARAM = 1 << 12, + FAT_UNSIGNED = 1 << 4, + FAT_SIZE_LONG = 1 << 5, + FAT_SIZE_LONGLONG = 2 << 5, + FAT_SIZE_WIDE = 3 << 5, + FAT_TREE_DECL = 1 << 7, + FAT_TREE_STATEMENT = 2 << 7, + FAT_TREE_FUNCDECL = 3 << 7, + FAT_TREE_TYPE = 4 << 7, + FAT_TREE_ARGUMENT = 5 << 7, + FAT_TREE_EXPRESSION = 6 << 7, + FAT_TREE_CV = 7 << 7, + FAT_TREE_CODE_BINOP = 1 << 10, + FAT_TREE_CODE_ASSOP = 2 << 10, + FAT_FUNCPARAM = 1 << 12, /* Bitmasks */ - FAT_SIZE_MASK = (FAT_SIZE_LONG | FAT_SIZE_LONGLONG | FAT_SIZE_WIDE) + FAT_SIZE_MASK = (FAT_SIZE_LONG | FAT_SIZE_LONGLONG | FAT_SIZE_WIDE) }; #ifdef __cplusplus typedef int format_arg_type_t; @@ -157,7 +159,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -174,344 +176,346 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (*format == '%' || *format == '<' || *format == '>' - || *format == '\'') - ; - else if (*format == 'm') - spec.uses_err_no = true; - else - { - unsigned int number = 0; - unsigned int flag_q = 0; - unsigned int flag_l = 0; - unsigned int flag_w = 0; - unsigned int flag_plus = 0; - unsigned int flag_sharp = 0; - format_arg_type_t size; - format_arg_type_t type; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - format = ++f; - } - } - - /* Parse flags and size. */ - for (;; format++) - { - switch (*format) - { - case 'q': - if (flag_q > 0) - goto invalid_flags; - flag_q = 1; - continue; - case 'l': - if (flag_l > 1 || flag_w) - goto invalid_flags; - flag_l++; - continue; - case 'w': - if (flag_w > 0 || flag_l) - goto invalid_flags; - flag_w = 1; - continue; - case '+': - if (flag_plus > 0) - goto invalid_flags; - flag_plus = 1; - continue; - case '#': - if (flag_sharp > 0) - goto invalid_flags; - flag_sharp = 1; - continue; - invalid_flags: - *invalid_reason = xasprintf (_("In the directive number %u, the flags combination is invalid."), spec.directives); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - default: - break; - } - break; - } - size = (flag_l == 2 ? FAT_SIZE_LONGLONG : - flag_l == 1 ? FAT_SIZE_LONG : - flag_w ? FAT_SIZE_WIDE : - 0); - - if (*format == 'c') - type = FAT_CHAR; - else if (*format == 's') - type = FAT_STRING; - else if (*format == '.') - { - format++; - - if (isdigit (*format)) - { - do - format++; - while (isdigit (*format)); - - if (*format != 's') - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, a precision is not allowed before '%c'."), spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - type = FAT_STRING; - } - else if (*format == '*') - { - unsigned int precision_number = 0; - - format++; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_WIDTH_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - if (unnumbered_arg_count > 0 || number == 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - if (m != number - 1) - { - *invalid_reason = xasprintf (_("In the directive number %u, the argument number for the precision must be equal to %u."), spec.directives, number - 1); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - precision_number = m; - format = ++f; - } - } - - if (precision_number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = precision_number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - } - - if (*format == 's') - type = FAT_STRING; - else - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, a precision specification is not allowed before '%c'."), spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - } - else - { - *invalid_reason = xasprintf (_("In the directive number %u, the precision specification is invalid."), spec.directives); - FDI_SET (*format == '\0' ? format - 1 : format, - FMTDIR_ERROR); - goto bad_format; - } - } - else if (*format == 'i' || *format == 'd') - type = FAT_INTEGER | size; - else if (*format == 'o' || *format == 'u' || *format == 'x') - type = FAT_INTEGER | FAT_UNSIGNED | size; - else if (*format == 'p') - type = FAT_POINTER; - else if (*format == 'H') - type = FAT_LOCATION; - else if (*format == 'J') - type = FAT_TREE | FAT_TREE_DECL; - else - { - if (*format == 'D') - type = FAT_TREE | FAT_TREE_DECL; - else if (*format == 'F') - type = FAT_TREE | FAT_TREE_FUNCDECL; - else if (*format == 'T') - type = FAT_TREE | FAT_TREE_TYPE; - else if (*format == 'E') - type = FAT_TREE | FAT_TREE_EXPRESSION; - else if (*format == 'A') - type = FAT_TREE | FAT_TREE_ARGUMENT; - else if (*format == 'C') - type = FAT_TREE_CODE; - else if (*format == 'L') - type = FAT_LANGUAGES; - else if (*format == 'O') - type = FAT_TREE_CODE | FAT_TREE_CODE_BINOP; - else if (*format == 'P') - type = FAT_INTEGER | FAT_FUNCPARAM; - else if (*format == 'Q') - type = FAT_TREE_CODE | FAT_TREE_CODE_ASSOP; - else if (*format == 'V') - type = FAT_TREE | FAT_TREE_CV; - else - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - (*format == 'c' - || *format == 's' - || *format == 'i' || *format == 'd' - || *format == 'o' || *format == 'u' || *format == 'x' - || *format == 'H' - ? xasprintf (_("In the directive number %u, flags are not allowed before '%c'."), spec.directives, *format) - : INVALID_CONVERSION_SPECIFIER (spec.directives, - *format)); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - } - - if (number) - { - /* Numbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (unnumbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; - } - else - { - /* Unnumbered argument. */ - - /* Numbered and unnumbered specifications are exclusive. */ - if (spec.numbered_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == unnumbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; - spec.numbered[unnumbered_arg_count].type = type; - unnumbered_arg_count++; - } - } + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format == '%' || *format == '<' || *format == '>' + || *format == '\'') + ; + else if (*format == 'm') + spec.uses_err_no = true; + else + { + unsigned int number = 0; + unsigned int flag_q = 0; + unsigned int flag_l = 0; + unsigned int flag_w = 0; + unsigned int flag_plus = 0; + unsigned int flag_sharp = 0; + format_arg_type_t size; + format_arg_type_t type; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + } + } + + /* Parse flags and size. */ + for (;; format++) + { + switch (*format) + { + case 'q': + if (flag_q > 0) + goto invalid_flags; + flag_q = 1; + continue; + case 'l': + if (flag_l > 1 || flag_w) + goto invalid_flags; + flag_l++; + continue; + case 'w': + if (flag_w > 0 || flag_l) + goto invalid_flags; + flag_w = 1; + continue; + case '+': + if (flag_plus > 0) + goto invalid_flags; + flag_plus = 1; + continue; + case '#': + if (flag_sharp > 0) + goto invalid_flags; + flag_sharp = 1; + continue; + invalid_flags: + *invalid_reason = xasprintf (_("In the directive number %u, the flags combination is invalid."), spec.directives); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + default: + break; + } + break; + } + size = (flag_l == 2 ? FAT_SIZE_LONGLONG : + flag_l == 1 ? FAT_SIZE_LONG : + flag_w ? FAT_SIZE_WIDE : + 0); + + if (*format == 'c') + type = FAT_CHAR; + else if (*format == 's') + type = FAT_STRING; + else if (*format == '.') + { + format++; + + if (isdigit (*format)) + { + do + format++; + while (isdigit (*format)); + + if (*format != 's') + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, a precision is not allowed before '%c'."), spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + type = FAT_STRING; + } + else if (*format == '*') + { + unsigned int precision_number = 0; + + format++; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_WIDTH_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + if (unnumbered_arg_count > 0 || number == 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + if (m != number - 1) + { + *invalid_reason = xasprintf (_("In the directive number %u, the argument number for the precision must be equal to %u."), spec.directives, number - 1); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + precision_number = m; + format = ++f; + } + } + + if (precision_number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = precision_number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + } + + if (*format == 's') + type = FAT_STRING; + else + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, a precision specification is not allowed before '%c'."), spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + } + else + { + *invalid_reason = xasprintf (_("In the directive number %u, the precision specification is invalid."), spec.directives); + FDI_SET (*format == '\0' ? format - 1 : format, + FMTDIR_ERROR); + goto bad_format; + } + } + else if (*format == 'i' || *format == 'd') + type = FAT_INTEGER | size; + else if (*format == 'o' || *format == 'u' || *format == 'x') + type = FAT_INTEGER | FAT_UNSIGNED | size; + else if (*format == 'p') + type = FAT_POINTER; + else if (*format == 'H') + type = FAT_LOCATION; + else if (*format == 'J') + type = FAT_TREE | FAT_TREE_DECL; + else if (*format == 'K') + type = FAT_TREE | FAT_TREE_STATEMENT; + else + { + if (*format == 'D') + type = FAT_TREE | FAT_TREE_DECL; + else if (*format == 'F') + type = FAT_TREE | FAT_TREE_FUNCDECL; + else if (*format == 'T') + type = FAT_TREE | FAT_TREE_TYPE; + else if (*format == 'E') + type = FAT_TREE | FAT_TREE_EXPRESSION; + else if (*format == 'A') + type = FAT_TREE | FAT_TREE_ARGUMENT; + else if (*format == 'C') + type = FAT_TREE_CODE; + else if (*format == 'L') + type = FAT_LANGUAGES; + else if (*format == 'O') + type = FAT_TREE_CODE | FAT_TREE_CODE_BINOP; + else if (*format == 'P') + type = FAT_INTEGER | FAT_FUNCPARAM; + else if (*format == 'Q') + type = FAT_TREE_CODE | FAT_TREE_CODE_ASSOP; + else if (*format == 'V') + type = FAT_TREE | FAT_TREE_CV; + else + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + (*format == 'c' + || *format == 's' + || *format == 'i' || *format == 'd' + || *format == 'o' || *format == 'u' || *format == 'x' + || *format == 'H' + ? xasprintf (_("In the directive number %u, flags are not allowed before '%c'."), spec.directives, *format) + : INVALID_CONVERSION_SPECIFIER (spec.directives, + *format)); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + } + + if (number) + { + /* Numbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (unnumbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; + } + else + { + /* Unnumbered argument. */ + + /* Numbered and unnumbered specifications are exclusive. */ + if (spec.numbered_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == unnumbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[unnumbered_arg_count].number = unnumbered_arg_count + 1; + spec.numbered[unnumbered_arg_count].type = type; + unnumbered_arg_count++; + } + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Convert the unnumbered argument array to numbered arguments. */ @@ -524,44 +528,44 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - format_arg_type_t type1 = spec.numbered[i].type; - format_arg_type_t type2 = spec.numbered[j-1].type; - format_arg_type_t type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + format_arg_type_t type1 = spec.numbered[i].type; + format_arg_type_t type2 = spec.numbered[j-1].type; + format_arg_type_t type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -594,8 +598,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -608,72 +612,74 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } /* Check that the use of err_no is the same. */ if (spec1->uses_err_no != spec2->uses_err_no) { if (error_logger) - { - if (spec1->uses_err_no) - error_logger (_("'msgid' uses %%m but '%s' doesn't"), - pretty_msgstr); - else - error_logger (_("'msgid' does not use %%m but '%s' uses %%m"), - pretty_msgstr); - } + { + if (spec1->uses_err_no) + error_logger (_("'%s' uses %%m but '%s' doesn't"), + pretty_msgid, pretty_msgstr); + else + error_logger (_("'%s' does not use %%m but '%s' uses %%m"), + pretty_msgid, pretty_msgstr); + } err = true; } @@ -718,82 +724,85 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); if (spec->numbered[i].type & FAT_UNSIGNED) - printf ("[unsigned]"); + printf ("[unsigned]"); switch (spec->numbered[i].type & FAT_SIZE_MASK) - { - case 0: - break; - case FAT_SIZE_LONG: - printf ("[long]"); - break; - case FAT_SIZE_LONGLONG: - printf ("[long long]"); - break; - case FAT_SIZE_WIDE: - printf ("[host-wide]"); - break; - default: - abort (); - } + { + case 0: + break; + case FAT_SIZE_LONG: + printf ("[long]"); + break; + case FAT_SIZE_LONGLONG: + printf ("[long long]"); + break; + case FAT_SIZE_WIDE: + printf ("[host-wide]"); + break; + default: + abort (); + } switch (spec->numbered[i].type & ~(FAT_UNSIGNED | FAT_SIZE_MASK)) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_INTEGER | FAT_FUNCPARAM: - printf ("P"); - break; - case FAT_CHAR: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_POINTER: - printf ("p"); - break; - case FAT_LOCATION: - printf ("H"); - break; - case FAT_TREE | FAT_TREE_DECL: - printf ("D"); - break; - case FAT_TREE | FAT_TREE_FUNCDECL: - printf ("F"); - break; - case FAT_TREE | FAT_TREE_TYPE: - printf ("T"); - break; - case FAT_TREE | FAT_TREE_ARGUMENT: - printf ("A"); - break; - case FAT_TREE | FAT_TREE_EXPRESSION: - printf ("E"); - break; - case FAT_TREE | FAT_TREE_CV: - printf ("V"); - break; - case FAT_TREE_CODE: - printf ("C"); - break; - case FAT_TREE_CODE | FAT_TREE_CODE_BINOP: - printf ("O"); - break; - case FAT_TREE_CODE | FAT_TREE_CODE_ASSOP: - printf ("Q"); - break; - case FAT_LANGUAGES: - printf ("L"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_INTEGER | FAT_FUNCPARAM: + printf ("P"); + break; + case FAT_CHAR: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_POINTER: + printf ("p"); + break; + case FAT_LOCATION: + printf ("H"); + break; + case FAT_TREE | FAT_TREE_DECL: + printf ("D"); + break; + case FAT_TREE | FAT_TREE_STATEMENT: + printf ("K"); + break; + case FAT_TREE | FAT_TREE_FUNCDECL: + printf ("F"); + break; + case FAT_TREE | FAT_TREE_TYPE: + printf ("T"); + break; + case FAT_TREE | FAT_TREE_ARGUMENT: + printf ("A"); + break; + case FAT_TREE | FAT_TREE_EXPRESSION: + printf ("E"); + break; + case FAT_TREE | FAT_TREE_CV: + printf ("V"); + break; + case FAT_TREE_CODE: + printf ("C"); + break; + case FAT_TREE_CODE | FAT_TREE_CODE_BINOP: + printf ("O"); + break; + case FAT_TREE_CODE | FAT_TREE_CODE_ASSOP: + printf ("Q"); + break; + case FAT_LANGUAGES: + printf ("L"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -814,9 +823,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -824,7 +833,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-gfc-internal.c gettext-0.18.1.1/gettext-tools/src/format-gfc-internal.c --- gettext-0.17/gettext-tools/src/format-gfc-internal.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-gfc-internal.c 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,504 @@ +/* GFC (GNU Fortran Compiler) internal format strings. + Copyright (C) 2003-2009 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include + +#include "format.h" +#include "c-ctype.h" +#include "xalloc.h" +#include "xvasprintf.h" +#include "format-invalid.h" +#include "gettext.h" + +#define _(str) gettext (str) + +/* GFC internal format strings consist of format directives that are specific + to the GNU Fortran Compiler frontend of GCC, implemented in + gcc-4.3.3/gcc/fortran/error.c (function error_print). + + A directive + - starts with '%', + - either is finished by '%', that needs no argument, + - or is continued like this: + - optionally 'm$' where m is a positive integer, + - finished by a specifier + - 'C', that needs no argument but uses a particular variable + (but for the purposes of 'm$' numbering it consumes an + argument nevertheless, of 'void' type), + - 'L', that needs a 'locus *' argument, + - 'i', 'd', that need a signed integer argument, + - 'u', that needs an unsigned integer argument, + - 'li', 'ld', that need a signed long integer argument, + - 'lu', that needs an unsigned long integer argument, + - 'c', that needs a character argument, + - 's', that needs a string argument. + + Numbered ('%m$') and unnumbered argument specifications can be used in the + same string. The effect of '%m$' is to set the current argument number to + m. The current argument number is incremented after processing a directive. + + When numbered argument specifications are used, specifying the Nth argument + requires that all the leading arguments, from the first to the (N-1)th, are + specified in the format string. */ + +enum format_arg_type +{ + FAT_NONE = 0, + /* Basic types */ + FAT_VOID = 1, + FAT_INTEGER = 2, + FAT_CHAR = 3, + FAT_STRING = 4, + FAT_LOCUS = 5, + /* Flags */ + FAT_UNSIGNED = 1 << 3, + FAT_SIZE_LONG = 1 << 4, + /* Bitmasks */ + FAT_SIZE_MASK = FAT_SIZE_LONG +}; +#ifdef __cplusplus +typedef int format_arg_type_t; +#else +typedef enum format_arg_type format_arg_type_t; +#endif + +struct numbered_arg +{ + unsigned int number; + format_arg_type_t type; +}; + +struct unnumbered_arg +{ + format_arg_type_t type; +}; + +struct spec +{ + unsigned int directives; + unsigned int unnumbered_arg_count; + struct unnumbered_arg *unnumbered; + bool uses_currentloc; +}; + +/* Locale independent test for a decimal digit. + Argument can be 'char' or 'unsigned char'. (Whereas the argument of + isdigit must be an 'unsigned char'.) */ +#undef isdigit +#define isdigit(c) ((unsigned int) ((c) - '0') < 10) + + +static int +numbered_arg_compare (const void *p1, const void *p2) +{ + unsigned int n1 = ((const struct numbered_arg *) p1)->number; + unsigned int n2 = ((const struct numbered_arg *) p2)->number; + + return (n1 > n2 ? 1 : n1 < n2 ? -1 : 0); +} + +static void * +format_parse (const char *format, bool translated, char *fdi, + char **invalid_reason) +{ + const char *const format_start = format; + struct spec spec; + unsigned int numbered_arg_count; + unsigned int allocated; + struct numbered_arg *numbered; + struct spec *result; + unsigned int number; + + spec.directives = 0; + numbered_arg_count = 0; + allocated = 0; + numbered = NULL; + spec.uses_currentloc = false; + number = 1; + + for (; *format != '\0';) + if (*format++ == '%') + { + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format != '%') + { + format_arg_type_t type; + + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + } + } + + if (*format == 'C') + { + type = FAT_VOID; + spec.uses_currentloc = true; + } + else if (*format == 'L') + type = FAT_LOCUS; + else if (*format == 'c') + type = FAT_CHAR; + else if (*format == 's') + type = FAT_STRING; + else + { + format_arg_type_t size = 0; + + if (*format == 'l') + { + ++format; + size = FAT_SIZE_LONG; + } + + if (*format == 'i' || *format == 'd') + type = FAT_INTEGER | size; + else if (*format == 'u') + type = FAT_INTEGER | FAT_UNSIGNED | size; + else + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + } + + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = number; + numbered[numbered_arg_count].type = type; + numbered_arg_count++; + + number++; + } + + FDI_SET (format, FMTDIR_END); + + format++; + } + + /* Sort the numbered argument array, and eliminate duplicates. */ + if (numbered_arg_count > 1) + { + unsigned int i, j; + bool err; + + qsort (numbered, numbered_arg_count, + sizeof (struct numbered_arg), numbered_arg_compare); + + /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ + err = false; + for (i = j = 0; i < numbered_arg_count; i++) + if (j > 0 && numbered[i].number == numbered[j-1].number) + { + format_arg_type_t type1 = numbered[i].type; + format_arg_type_t type2 = numbered[j-1].type; + format_arg_type_t type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); + err = true; + } + + numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + numbered[j].number = numbered[i].number; + numbered[j].type = numbered[i].type; + } + j++; + } + numbered_arg_count = j; + if (err) + /* *invalid_reason has already been set above. */ + goto bad_format; + } + + /* Verify that the format strings uses all arguments up to the highest + numbered one. */ + { + unsigned int i; + + for (i = 0; i < numbered_arg_count; i++) + if (numbered[i].number != i + 1) + { + *invalid_reason = + xasprintf (_("The string refers to argument number %u but ignores argument number %u."), numbered[i].number, i + 1); + goto bad_format; + } + } + + /* So now the numbered arguments array is equivalent to a sequence + of unnumbered arguments. Eliminate the FAT_VOID placeholders. */ + { + unsigned int i; + + spec.unnumbered_arg_count = 0; + for (i = 0; i < numbered_arg_count; i++) + if (numbered[i].type != FAT_VOID) + spec.unnumbered_arg_count++; + + if (spec.unnumbered_arg_count > 0) + { + unsigned int j; + + spec.unnumbered = XNMALLOC (spec.unnumbered_arg_count, struct unnumbered_arg); + j = 0; + for (i = 0; i < numbered_arg_count; i++) + if (numbered[i].type != FAT_VOID) + spec.unnumbered[j++].type = numbered[i].type; + } + else + spec.unnumbered = NULL; + } + free (numbered); + + result = XMALLOC (struct spec); + *result = spec; + return result; + + bad_format: + if (numbered != NULL) + free (numbered); + return NULL; +} + +static void +format_free (void *descr) +{ + struct spec *spec = (struct spec *) descr; + + if (spec->unnumbered != NULL) + free (spec->unnumbered); + free (spec); +} + +static int +format_get_number_of_directives (void *descr) +{ + struct spec *spec = (struct spec *) descr; + + return spec->directives; +} + +static bool +format_check (void *msgid_descr, void *msgstr_descr, bool equality, + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) +{ + struct spec *spec1 = (struct spec *) msgid_descr; + struct spec *spec2 = (struct spec *) msgstr_descr; + bool err = false; + unsigned int i; + + /* Check the argument types are the same. */ + if (equality + ? spec1->unnumbered_arg_count != spec2->unnumbered_arg_count + : spec1->unnumbered_arg_count < spec2->unnumbered_arg_count) + { + if (error_logger) + error_logger (_("number of format specifications in '%s' and '%s' does not match"), + pretty_msgid, pretty_msgstr); + err = true; + } + else + for (i = 0; i < spec2->unnumbered_arg_count; i++) + if (spec1->unnumbered[i].type != spec2->unnumbered[i].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, i + 1); + err = true; + } + + /* Check that the use of currentloc is the same. */ + if (spec1->uses_currentloc != spec2->uses_currentloc) + { + if (error_logger) + { + if (spec1->uses_currentloc) + error_logger (_("'%s' uses %%C but '%s' doesn't"), + pretty_msgid, pretty_msgstr); + else + error_logger (_("'%s' does not use %%C but '%s' uses %%C"), + pretty_msgid, pretty_msgstr); + } + err = true; + } + + return err; +} + + +struct formatstring_parser formatstring_gfc_internal = +{ + format_parse, + format_free, + format_get_number_of_directives, + NULL, + format_check +}; + + +#ifdef TEST + +/* Test program: Print the argument list specification returned by + format_parse for strings read from standard input. */ + +#include + +static void +format_print (void *descr) +{ + struct spec *spec = (struct spec *) descr; + unsigned int i; + + if (spec == NULL) + { + printf ("INVALID"); + return; + } + + printf ("("); + for (i = 0; i < spec->unnumbered_arg_count; i++) + { + if (i > 0) + printf (" "); + if (spec->unnumbered[i].type & FAT_UNSIGNED) + printf ("[unsigned]"); + switch (spec->unnumbered[i].type & FAT_SIZE_MASK) + { + case 0: + break; + case FAT_SIZE_LONG: + printf ("[long]"); + break; + default: + abort (); + } + switch (spec->unnumbered[i].type & ~(FAT_UNSIGNED | FAT_SIZE_MASK)) + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_CHAR: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_LOCUS: + printf ("L"); + break; + default: + abort (); + } + } + printf (")"); + if (spec->uses_currentloc) + printf (" C"); +} + +int +main () +{ + for (;;) + { + char *line = NULL; + size_t line_size = 0; + int line_len; + char *invalid_reason; + void *descr; + + line_len = getline (&line, &line_size, stdin); + if (line_len < 0) + break; + if (line_len > 0 && line[line_len - 1] == '\n') + line[--line_len] = '\0'; + + invalid_reason = NULL; + descr = format_parse (line, false, NULL, &invalid_reason); + + format_print (descr); + printf ("\n"); + if (descr == NULL) + printf ("%s\n", invalid_reason); + + free (invalid_reason); + free (line); + } + + return 0; +} + +/* + * For Emacs M-x compile + * Local Variables: + * compile-command: "/bin/sh ../libtool --tag=CC --mode=link gcc -o a.out -static -O -g -Wall -I.. -I../gnulib-lib -I../intl -DHAVE_CONFIG_H -DTEST format-gfc-internal.c ../gnulib-lib/libgettextlib.la" + * End: + */ + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/src/format.h gettext-0.18.1.1/gettext-tools/src/format.h --- gettext-0.17/gettext-tools/src/format.h 2007-10-20 20:25:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Format strings. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -20,9 +20,10 @@ #include -#include "pos.h" /* Get lex_pos_ty. */ -#include "message.h" /* Get NFORMATS. */ -#include "error.h" /* Get fallback definition of __attribute__. */ +#include "pos.h" /* Get lex_pos_ty. */ +#include "message.h" /* Get NFORMATS. */ +#include "plural-distrib.h" /* Get struct plural_distribution. */ +#include "error.h" /* Get fallback definition of __attribute__. */ #ifdef __cplusplus @@ -90,7 +91,7 @@ msgstr_descr may omit some of the arguments of msgid_descr). If not, signal an error using error_logger (only if error_logger != NULL) and return true. Otherwise return false. */ - bool (*check) (void *msgid_descr, void *msgstr_descr, bool equality, formatstring_error_logger_t error_logger, const char *pretty_msgstr); + bool (*check) (void *msgid_descr, void *msgstr_descr, bool equality, formatstring_error_logger_t error_logger, const char *pretty_msgid, const char *pretty_msgstr); }; /* Format string parsers, each defined in its own file. */ @@ -113,7 +114,9 @@ extern DLL_VARIABLE struct formatstring_parser formatstring_perl_brace; extern DLL_VARIABLE struct formatstring_parser formatstring_php; extern DLL_VARIABLE struct formatstring_parser formatstring_gcc_internal; +extern DLL_VARIABLE struct formatstring_parser formatstring_gfc_internal; extern DLL_VARIABLE struct formatstring_parser formatstring_qt; +extern DLL_VARIABLE struct formatstring_parser formatstring_qt_plural; extern DLL_VARIABLE struct formatstring_parser formatstring_kde; extern DLL_VARIABLE struct formatstring_parser formatstring_boost; @@ -132,7 +135,7 @@ }; extern void get_sysdep_c_format_directives (const char *string, bool translated, - struct interval **intervalsp, size_t *lengthp); + struct interval **intervalsp, size_t *lengthp); /* Returns the number of unnamed arguments consumed by a Python format string. */ @@ -140,32 +143,25 @@ /* Check whether both formats strings contain compatible format specifications for format type i (0 <= i < NFORMATS). - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. Return the number of errors that were seen. */ extern int check_msgid_msgstr_format_i (const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - size_t i, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - formatstring_error_logger_t error_logger); + const char *msgstr, size_t msgstr_len, + size_t i, + struct argument_range range, + const struct plural_distribution *distribution, + formatstring_error_logger_t error_logger); /* Check whether both formats strings contain compatible format specifications. - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. - PLURAL_DISTRIBUTION_LENGTH is the length of the PLURAL_DISTRIBUTION array. Return the number of errors that were seen. */ extern int check_msgid_msgstr_format (const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - const enum is_format is_format[NFORMATS], - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - formatstring_error_logger_t error_logger); + const char *msgstr, size_t msgstr_len, + const enum is_format is_format[NFORMATS], + struct argument_range range, + const struct plural_distribution *distribution, + formatstring_error_logger_t error_logger); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/format-java.c gettext-0.18.1.1/gettext-tools/src/format-java.c --- gettext-0.17/gettext-tools/src/format-java.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-java.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Java format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -106,9 +106,9 @@ enum format_arg_type { FAT_NONE, - FAT_OBJECT, /* java.lang.Object */ - FAT_NUMBER, /* java.lang.Number */ - FAT_DATE /* java.util.Date */ + FAT_OBJECT, /* java.lang.Object */ + FAT_NUMBER, /* java.lang.Number */ + FAT_DATE /* java.util.Date */ }; struct numbered_arg @@ -130,7 +130,7 @@ static bool date_format_parse (const char *format); static bool number_format_parse (const char *format); static bool choice_format_parse (const char *format, struct spec *spec, - char **invalid_reason); + char **invalid_reason); /* Quote handling: @@ -149,7 +149,7 @@ Extracts argument type information into spec. */ static bool message_format_parse (const char *format, char *fdi, struct spec *spec, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; bool quoting = false; @@ -158,199 +158,199 @@ { HANDLE_QUOTE; if (!quoting && *format == '{') - { - unsigned int depth; - const char *element_start; - const char *element_end; - size_t n; - char *element_alloced; - char *element; - unsigned int number; - enum format_arg_type type; - - FDI_SET (format, FMTDIR_START); - spec->directives++; - - element_start = ++format; - depth = 0; - for (; *format != '\0'; format++) - { - if (*format == '{') - depth++; - else if (*format == '}') - { - if (depth == 0) - break; - else - depth--; - } - } - if (*format == '\0') - { - *invalid_reason = - xstrdup (_("The string ends in the middle of a directive: found '{' without matching '}'.")); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - element_end = format++; - - n = element_end - element_start; - element = element_alloced = (char *) xmalloca (n + 1); - memcpy (element, element_start, n); - element[n] = '\0'; - - if (!c_isdigit (*element)) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec->directives); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - number = 0; - do - { - number = 10 * number + (*element - '0'); - element++; - } - while (c_isdigit (*element)); - - type = FAT_OBJECT; - if (*element == '\0') - ; - else if (strncmp (element, ",time", 5) == 0 - || strncmp (element, ",date", 5) == 0) - { - type = FAT_DATE; - element += 5; - if (*element == '\0') - ; - else if (*element == ',') - { - element++; - if (strcmp (element, "short") == 0 - || strcmp (element, "medium") == 0 - || strcmp (element, "long") == 0 - || strcmp (element, "full") == 0 - || date_format_parse (element)) - ; - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, the substring \"%s\" is not a valid date/time style."), spec->directives, element); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else - { - *element = '\0'; - element -= 4; - *invalid_reason = - xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else if (strncmp (element, ",number", 7) == 0) - { - type = FAT_NUMBER; - element += 7; - if (*element == '\0') - ; - else if (*element == ',') - { - element++; - if (strcmp (element, "currency") == 0 - || strcmp (element, "percent") == 0 - || strcmp (element, "integer") == 0 - || number_format_parse (element)) - ; - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, the substring \"%s\" is not a valid number style."), spec->directives, element); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else - { - *element = '\0'; - element -= 6; - *invalid_reason = - xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else if (strncmp (element, ",choice", 7) == 0) - { - type = FAT_NUMBER; /* because ChoiceFormat extends NumberFormat */ - element += 7; - if (*element == '\0') - ; - else if (*element == ',') - { - element++; - if (choice_format_parse (element, spec, invalid_reason)) - ; - else - { - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else - { - *element = '\0'; - element -= 6; - *invalid_reason = - xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - } - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, the argument number is not followed by a comma and one of \"%s\", \"%s\", \"%s\", \"%s\"."), spec->directives, "time", "date", "number", "choice"); - FDI_SET (format - 1, FMTDIR_ERROR); - freea (element_alloced); - return false; - } - freea (element_alloced); - - if (spec->allocated == spec->numbered_arg_count) - { - spec->allocated = 2 * spec->allocated + 1; - spec->numbered = (struct numbered_arg *) xrealloc (spec->numbered, spec->allocated * sizeof (struct numbered_arg)); - } - spec->numbered[spec->numbered_arg_count].number = number; - spec->numbered[spec->numbered_arg_count].type = type; - spec->numbered_arg_count++; + { + unsigned int depth; + const char *element_start; + const char *element_end; + size_t n; + char *element_alloced; + char *element; + unsigned int number; + enum format_arg_type type; + + FDI_SET (format, FMTDIR_START); + spec->directives++; + + element_start = ++format; + depth = 0; + for (; *format != '\0'; format++) + { + if (*format == '{') + depth++; + else if (*format == '}') + { + if (depth == 0) + break; + else + depth--; + } + } + if (*format == '\0') + { + *invalid_reason = + xstrdup (_("The string ends in the middle of a directive: found '{' without matching '}'.")); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + element_end = format++; + + n = element_end - element_start; + element = element_alloced = (char *) xmalloca (n + 1); + memcpy (element, element_start, n); + element[n] = '\0'; + + if (!c_isdigit (*element)) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec->directives); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + number = 0; + do + { + number = 10 * number + (*element - '0'); + element++; + } + while (c_isdigit (*element)); + + type = FAT_OBJECT; + if (*element == '\0') + ; + else if (strncmp (element, ",time", 5) == 0 + || strncmp (element, ",date", 5) == 0) + { + type = FAT_DATE; + element += 5; + if (*element == '\0') + ; + else if (*element == ',') + { + element++; + if (strcmp (element, "short") == 0 + || strcmp (element, "medium") == 0 + || strcmp (element, "long") == 0 + || strcmp (element, "full") == 0 + || date_format_parse (element)) + ; + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, the substring \"%s\" is not a valid date/time style."), spec->directives, element); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else + { + *element = '\0'; + element -= 4; + *invalid_reason = + xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else if (strncmp (element, ",number", 7) == 0) + { + type = FAT_NUMBER; + element += 7; + if (*element == '\0') + ; + else if (*element == ',') + { + element++; + if (strcmp (element, "currency") == 0 + || strcmp (element, "percent") == 0 + || strcmp (element, "integer") == 0 + || number_format_parse (element)) + ; + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, the substring \"%s\" is not a valid number style."), spec->directives, element); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else + { + *element = '\0'; + element -= 6; + *invalid_reason = + xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else if (strncmp (element, ",choice", 7) == 0) + { + type = FAT_NUMBER; /* because ChoiceFormat extends NumberFormat */ + element += 7; + if (*element == '\0') + ; + else if (*element == ',') + { + element++; + if (choice_format_parse (element, spec, invalid_reason)) + ; + else + { + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else + { + *element = '\0'; + element -= 6; + *invalid_reason = + xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, element); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + } + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, the argument number is not followed by a comma and one of \"%s\", \"%s\", \"%s\", \"%s\"."), spec->directives, "time", "date", "number", "choice"); + FDI_SET (format - 1, FMTDIR_ERROR); + freea (element_alloced); + return false; + } + freea (element_alloced); + + if (spec->allocated == spec->numbered_arg_count) + { + spec->allocated = 2 * spec->allocated + 1; + spec->numbered = (struct numbered_arg *) xrealloc (spec->numbered, spec->allocated * sizeof (struct numbered_arg)); + } + spec->numbered[spec->numbered_arg_count].number = number; + spec->numbered[spec->numbered_arg_count].type = type; + spec->numbered_arg_count++; - FDI_SET (format - 1, FMTDIR_END); - } + FDI_SET (format - 1, FMTDIR_END); + } /* The doc says "ab}de" is invalid. Even though JDK accepts it. */ else if (!quoting && *format == '}') - { - FDI_SET (format, FMTDIR_START); - *invalid_reason = - xstrdup (_("The string starts in the middle of a directive: found '}' without matching '{'.")); - FDI_SET (format, FMTDIR_ERROR); - return false; - } + { + FDI_SET (format, FMTDIR_START); + *invalid_reason = + xstrdup (_("The string starts in the middle of a directive: found '}' without matching '{'.")); + FDI_SET (format, FMTDIR_ERROR); + return false; + } else if (*format != '\0') - format++; + format++; else - break; + break; } return true; @@ -401,110 +401,110 @@ { /* Parse prefix. */ while (*format != '\0' - && !(!quoting && (*format == '0' || *format == '#'))) - { - if (format[0] == '\\') - { - if (format[1] == 'u' - && c_isxdigit (format[2]) - && c_isxdigit (format[3]) - && c_isxdigit (format[4]) - && c_isxdigit (format[5])) - format += 6; - else - format += 2; - } - else - format += 1; - HANDLE_QUOTE; - } + && !(!quoting && (*format == '0' || *format == '#'))) + { + if (format[0] == '\\') + { + if (format[1] == 'u' + && c_isxdigit (format[2]) + && c_isxdigit (format[3]) + && c_isxdigit (format[4]) + && c_isxdigit (format[5])) + format += 6; + else + format += 2; + } + else + format += 1; + HANDLE_QUOTE; + } /* Parse integer. */ if (!(!quoting && (*format == '0' || *format == '#'))) - return false; + return false; while (!quoting && *format == '#') - { - format++; - HANDLE_QUOTE; - if (!quoting && *format == ',') - { - format++; - HANDLE_QUOTE; - } - } + { + format++; + HANDLE_QUOTE; + if (!quoting && *format == ',') + { + format++; + HANDLE_QUOTE; + } + } while (!quoting && *format == '0') - { - format++; - HANDLE_QUOTE; - if (!quoting && *format == ',') - { - format++; - HANDLE_QUOTE; - } - } + { + format++; + HANDLE_QUOTE; + if (!quoting && *format == ',') + { + format++; + HANDLE_QUOTE; + } + } /* Parse fraction. */ if (!quoting && *format == '.') - { - format++; - HANDLE_QUOTE; - while (!quoting && *format == '0') - { - format++; - HANDLE_QUOTE; - } - while (!quoting && *format == '#') - { - format++; - HANDLE_QUOTE; - } - } + { + format++; + HANDLE_QUOTE; + while (!quoting && *format == '0') + { + format++; + HANDLE_QUOTE; + } + while (!quoting && *format == '#') + { + format++; + HANDLE_QUOTE; + } + } /* Parse exponent. */ if (!quoting && *format == 'E') - { - const char *format_save = format; - format++; - HANDLE_QUOTE; - if (!quoting && *format == '0') - { - do - { - format++; - HANDLE_QUOTE; - } - while (!quoting && *format == '0'); - } - else - { - /* Back up. */ - format = format_save; - quoting = false; - } - } + { + const char *format_save = format; + format++; + HANDLE_QUOTE; + if (!quoting && *format == '0') + { + do + { + format++; + HANDLE_QUOTE; + } + while (!quoting && *format == '0'); + } + else + { + /* Back up. */ + format = format_save; + quoting = false; + } + } /* Parse suffix. */ while (*format != '\0' - && (seen_semicolon || !(!quoting && *format == ';'))) - { - if (format[0] == '\\') - { - if (format[1] == 'u' - && c_isxdigit (format[2]) - && c_isxdigit (format[3]) - && c_isxdigit (format[4]) - && c_isxdigit (format[5])) - format += 6; - else - format += 2; - } - else - format += 1; - HANDLE_QUOTE; - } + && (seen_semicolon || !(!quoting && *format == ';'))) + { + if (format[0] == '\\') + { + if (format[1] == 'u' + && c_isxdigit (format[2]) + && c_isxdigit (format[3]) + && c_isxdigit (format[4]) + && c_isxdigit (format[5])) + format += 6; + else + format += 2; + } + else + format += 1; + HANDLE_QUOTE; + } if (seen_semicolon || !(!quoting && *format == ';')) - break; + break; } return (*format == '\0'); @@ -514,7 +514,7 @@ Extracts argument type information into spec. */ static bool choice_format_parse (const char *format, struct spec *spec, - char **invalid_reason) + char **invalid_reason) { /* Pattern syntax: pattern := | choice | choice '|' pattern @@ -532,7 +532,7 @@ for (;;) { /* Don't bother looking too precisely into the syntax of the number. - It can contain various Unicode characters. */ + It can contain various Unicode characters. */ bool number_nonempty; char *msgformat; char *mp; @@ -541,70 +541,70 @@ /* Parse number. */ number_nonempty = false; while (*format != '\0' - && !(!quoting && (*format == '<' || *format == '#' - || strncmp (format, "\\u2264", 6) == 0 - || *format == '|'))) - { - if (format[0] == '\\') - { - if (format[1] == 'u' - && c_isxdigit (format[2]) - && c_isxdigit (format[3]) - && c_isxdigit (format[4]) - && c_isxdigit (format[5])) - format += 6; - else - format += 2; - } - else - format += 1; - number_nonempty = true; - HANDLE_QUOTE; - } + && !(!quoting && (*format == '<' || *format == '#' + || strncmp (format, "\\u2264", 6) == 0 + || *format == '|'))) + { + if (format[0] == '\\') + { + if (format[1] == 'u' + && c_isxdigit (format[2]) + && c_isxdigit (format[3]) + && c_isxdigit (format[4]) + && c_isxdigit (format[5])) + format += 6; + else + format += 2; + } + else + format += 1; + number_nonempty = true; + HANDLE_QUOTE; + } /* Short clause at end of pattern is valid and is ignored! */ if (*format == '\0') - break; + break; if (!number_nonempty) - { - *invalid_reason = - xasprintf (_("In the directive number %u, a choice contains no number."), spec->directives); - return false; - } + { + *invalid_reason = + xasprintf (_("In the directive number %u, a choice contains no number."), spec->directives); + return false; + } if (*format == '<' || *format == '#') - format += 1; + format += 1; else if (strncmp (format, "\\u2264", 6) == 0) - format += 6; + format += 6; else - { - *invalid_reason = - xasprintf (_("In the directive number %u, a choice contains a number that is not followed by '<', '#' or '%s'."), spec->directives, "\\u2264"); - return false; - } + { + *invalid_reason = + xasprintf (_("In the directive number %u, a choice contains a number that is not followed by '<', '#' or '%s'."), spec->directives, "\\u2264"); + return false; + } HANDLE_QUOTE; msgformat = (char *) xmalloca (strlen (format) + 1); mp = msgformat; while (*format != '\0' && !(!quoting && *format == '|')) - { - *mp++ = *format++; - HANDLE_QUOTE; - } + { + *mp++ = *format++; + HANDLE_QUOTE; + } *mp = '\0'; msgformat_valid = - message_format_parse (msgformat, NULL, spec, invalid_reason); + message_format_parse (msgformat, NULL, spec, invalid_reason); freea (msgformat); if (!msgformat_valid) - return false; + return false; if (*format == '\0') - break; + break; format++; HANDLE_QUOTE; @@ -624,7 +624,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { struct spec spec; struct spec *result; @@ -644,46 +644,46 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2 || type2 == FAT_OBJECT) - type_both = type1; - else if (type1 == FAT_OBJECT) - type_both = type2; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2 || type2 == FAT_OBJECT) + type_both = type1; + else if (type1 == FAT_OBJECT) + type_both = type2; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -716,8 +716,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -730,58 +730,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument {%u}, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument {%u} doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument {%u}, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument {%u} doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument {%u} are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument {%u} are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -825,25 +827,25 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_OBJECT: - printf ("*"); - break; - case FAT_NUMBER: - printf ("Number"); - break; - case FAT_DATE: - printf ("Date"); - break; - default: - abort (); - } + { + case FAT_OBJECT: + printf ("*"); + break; + case FAT_NUMBER: + printf ("Number"); + break; + case FAT_DATE: + printf ("Date"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -862,9 +864,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -872,7 +874,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-kde.c gettext-0.18.1.1/gettext-tools/src/format-kde.c --- gettext-0.17/gettext-tools/src/format-kde.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-kde.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* KDE format strings. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -70,7 +70,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -84,35 +84,35 @@ for (; *format != '\0';) if (*format++ == '%') { - const char *dir_start = format - 1; + const char *dir_start = format - 1; - if (*format > '0' && *format <= '9') - { - /* A directive. */ - unsigned int number; - - FDI_SET (dir_start, FMTDIR_START); - spec.directives++; - - number = *format - '0'; - while (format[1] >= '0' && format[1] <= '9') - { - number = 10 * number + (format[1] - '0'); - format++; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered_arg_count++; + if (*format > '0' && *format <= '9') + { + /* A directive. */ + unsigned int number; + + FDI_SET (dir_start, FMTDIR_START); + spec.directives++; + + number = *format - '0'; + while (format[1] >= '0' && format[1] <= '9') + { + number = 10 * number + (format[1] - '0'); + format++; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered_arg_count++; - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; - } + format++; + } } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -121,18 +121,18 @@ unsigned int i, j; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - ; - else - { - if (j < i) - spec.numbered[j].number = spec.numbered[i].number; - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + ; + else + { + if (j < i) + spec.numbered[j].number = spec.numbered[i].number; + j++; + } spec.numbered_arg_count = j; } /* Now spec.numbered[i] >= i + 1 for i = 0,..,spec.numbered_arg_count-1 @@ -147,20 +147,20 @@ i = 0; for (; i < spec.numbered_arg_count; i++) - if (spec.numbered[i].number > i + 1) - { - unsigned int first_gap = i + 1; - for (; i < spec.numbered_arg_count; i++) - if (spec.numbered[i].number > i + 2) - { - unsigned int second_gap = i + 2; - *invalid_reason = - xasprintf (_("The string refers to argument number %u but ignores the arguments %u and %u."), - spec.numbered[i].number, first_gap, second_gap); - goto bad_format; - } - break; - } + if (spec.numbered[i].number > i + 1) + { + unsigned int first_gap = i + 1; + for (; i < spec.numbered_arg_count; i++) + if (spec.numbered[i].number > i + 2) + { + unsigned int second_gap = i + 2; + *invalid_reason = + xasprintf (_("The string refers to argument number %u but ignores the arguments %u and %u."), + spec.numbered[i].number, first_gap, second_gap); + goto bad_format; + } + break; + } } result = XMALLOC (struct spec); @@ -193,8 +193,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -208,50 +208,52 @@ unsigned int missing = 0; /* only used if !equality */ /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else if (missing) - { - if (error_logger) - error_logger (_("a format specification for arguments %u and %u doesn't exist in '%s', only one argument may be ignored"), - missing, spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - { - missing = spec1->numbered[i].number; - i++; - } - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else if (missing) + { + if (error_logger) + error_logger (_("a format specification for arguments %u and %u doesn't exist in '%s', only one argument may be ignored"), + missing, spec1->numbered[i].number, + pretty_msgstr); + err = true; + break; + } + else + { + missing = spec1->numbered[i].number; + i++; + } + } + else + j++, i++; + } } return err; @@ -295,11 +297,11 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); last = number + 1; } printf (")"); @@ -318,9 +320,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -328,7 +330,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-librep.c gettext-0.18.1.1/gettext-tools/src/format-librep.c --- gettext-0.17/gettext-tools/src/format-librep.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-librep.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* librep format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -92,7 +92,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -108,102 +108,102 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - enum format_arg_type type; + /* A directive. */ + enum format_arg_type type; - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$' && m > 0) - { - number = m; - format = ++f; - } - } - - /* Parse flags. */ - while (*format == '-' || *format == '^' || *format == '0' - || *format == '+' || *format == ' ') - format++; - - /* Parse width. */ - if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - switch (*format) - { - case '%': - type = FAT_NONE; - break; - case 'c': - type = FAT_CHARACTER; - break; - case 'd': case 'x': case 'X': case 'o': - type = FAT_INTEGER; - break; - case 's': - type = FAT_OBJECT_PRETTY; - break; - case 'S': - type = FAT_OBJECT; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (type != FAT_NONE) - { - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$' && m > 0) + { + number = m; + format = ++f; + } + } + + /* Parse flags. */ + while (*format == '-' || *format == '^' || *format == '0' + || *format == '+' || *format == ' ') + format++; + + /* Parse width. */ + if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + switch (*format) + { + case '%': + type = FAT_NONE; + break; + case 'c': + type = FAT_CHARACTER; + break; + case 'd': case 'x': case 'X': case 'o': + type = FAT_INTEGER; + break; + case 's': + type = FAT_OBJECT_PRETTY; + break; + case 'S': + type = FAT_OBJECT; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (type != FAT_NONE) + { + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; - number++; - } + number++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -213,44 +213,44 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -283,8 +283,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -297,58 +297,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -392,28 +394,28 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_OBJECT_PRETTY: - printf ("s"); - break; - case FAT_OBJECT: - printf ("*"); - break; - default: - abort (); - } + { + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_OBJECT_PRETTY: + printf ("s"); + break; + case FAT_OBJECT: + printf ("*"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -432,9 +434,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -442,7 +444,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-lisp.c gettext-0.18.1.1/gettext-tools/src/format-lisp.c --- gettext-0.17/gettext-tools/src/format-lisp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-lisp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Lisp format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -48,42 +48,42 @@ enum format_cdr_type { - FCT_REQUIRED, /* The format argument list cannot end before this argument. */ - FCT_OPTIONAL /* The format argument list may end before this argument. */ + FCT_REQUIRED, /* The format argument list cannot end before this argument. */ + FCT_OPTIONAL /* The format argument list may end before this argument. */ }; enum format_arg_type { - FAT_OBJECT, /* Any object, type T. */ - FAT_CHARACTER_INTEGER_NULL, /* Type (OR CHARACTER INTEGER NULL). */ - FAT_CHARACTER_NULL, /* Type (OR CHARACTER NULL). */ - FAT_CHARACTER, /* Type CHARACTER. */ - FAT_INTEGER_NULL, /* Type (OR INTEGER NULL). */ - FAT_INTEGER, /* Meant for objects of type INTEGER. */ - FAT_REAL, /* Meant for objects of type REAL. */ - FAT_LIST, /* Meant for proper lists. */ - FAT_FORMATSTRING, /* Format strings. */ - FAT_FUNCTION /* Function. */ + FAT_OBJECT, /* Any object, type T. */ + FAT_CHARACTER_INTEGER_NULL, /* Type (OR CHARACTER INTEGER NULL). */ + FAT_CHARACTER_NULL, /* Type (OR CHARACTER NULL). */ + FAT_CHARACTER, /* Type CHARACTER. */ + FAT_INTEGER_NULL, /* Type (OR INTEGER NULL). */ + FAT_INTEGER, /* Meant for objects of type INTEGER. */ + FAT_REAL, /* Meant for objects of type REAL. */ + FAT_LIST, /* Meant for proper lists. */ + FAT_FORMATSTRING, /* Format strings. */ + FAT_FUNCTION /* Function. */ }; struct format_arg { unsigned int repcount; /* Number of consecutive arguments this constraint - applies to. Normally 1, but unconstrained - arguments are often repeated. */ + applies to. Normally 1, but unconstrained + arguments are often repeated. */ enum format_cdr_type presence; /* Can the argument list end right before - this argument? */ - enum format_arg_type type; /* Possible values for this argument. */ - struct format_arg_list *list; /* For FAT_LIST: List elements. */ + this argument? */ + enum format_arg_type type; /* Possible values for this argument. */ + struct format_arg_list *list; /* For FAT_LIST: List elements. */ }; struct segment { - unsigned int count; /* Number of format_arg records used. */ + unsigned int count; /* Number of format_arg records used. */ unsigned int allocated; - struct format_arg *element; /* Argument constraints. */ + struct format_arg *element; /* Argument constraints. */ unsigned int length; /* Number of arguments represented by this segment. - This is the sum of all repcounts in the segment. */ + This is the sum of all repcounts in the segment. */ }; struct format_arg_list @@ -98,8 +98,8 @@ A finite sequence is represented entirely in the initial segment; the loop segment is empty. */ - struct segment initial; /* Initial arguments segment. */ - struct segment repeated; /* Endlessly repeated segment. */ + struct segment initial; /* Initial arguments segment. */ + struct segment repeated; /* Endlessly repeated segment. */ }; struct spec @@ -112,17 +112,17 @@ /* Parameter for a directive. */ enum param_type { - PT_NIL, /* param not present */ - PT_CHARACTER, /* character */ - PT_INTEGER, /* integer */ - PT_ARGCOUNT, /* number of remaining arguments */ - PT_V /* variable taken from argument list */ + PT_NIL, /* param not present */ + PT_CHARACTER, /* character */ + PT_INTEGER, /* integer */ + PT_ARGCOUNT, /* number of remaining arguments */ + PT_V /* variable taken from argument list */ }; struct param { enum param_type type; - int value; /* for PT_INTEGER: the value, for PT_V: the position */ + int value; /* for PT_INTEGER: the value, for PT_V: the position */ }; @@ -132,15 +132,15 @@ static void free_list (struct format_arg_list *list); static struct format_arg_list * copy_list (const struct format_arg_list *list); static bool equal_list (const struct format_arg_list *list1, - const struct format_arg_list *list2); + const struct format_arg_list *list2); static struct format_arg_list * make_intersected_list - (struct format_arg_list *list1, - struct format_arg_list *list2); + (struct format_arg_list *list1, + struct format_arg_list *list2); static struct format_arg_list * make_intersection_with_empty_list - (struct format_arg_list *list); + (struct format_arg_list *list); static struct format_arg_list * make_union_list - (struct format_arg_list *list1, - struct format_arg_list *list2); + (struct format_arg_list *list1, + struct format_arg_list *list2); /* ======================= Verify a format_arg_list ======================= */ @@ -218,7 +218,7 @@ /* Copy the data belonging to an argument list element. */ static inline void copy_element (struct format_arg *newelement, - const struct format_arg *oldelement) + const struct format_arg *oldelement) { newelement->repcount = oldelement->repcount; newelement->presence = oldelement->presence; @@ -247,13 +247,13 @@ else { newlist->initial.element = - XNMALLOC (newlist->initial.allocated, struct format_arg); + XNMALLOC (newlist->initial.allocated, struct format_arg); for (i = 0; i < list->initial.count; i++) - { - copy_element (&newlist->initial.element[i], - &list->initial.element[i]); - length += list->initial.element[i].repcount; - } + { + copy_element (&newlist->initial.element[i], + &list->initial.element[i]); + length += list->initial.element[i].repcount; + } } ASSERT (length == list->initial.length); newlist->initial.length = length; @@ -265,13 +265,13 @@ else { newlist->repeated.element = - XNMALLOC (newlist->repeated.allocated, struct format_arg); + XNMALLOC (newlist->repeated.allocated, struct format_arg); for (i = 0; i < list->repeated.count; i++) - { - copy_element (&newlist->repeated.element[i], - &list->repeated.element[i]); - length += list->repeated.element[i].repcount; - } + { + copy_element (&newlist->repeated.element[i], + &list->repeated.element[i]); + length += list->repeated.element[i].repcount; + } } ASSERT (length == list->repeated.length); newlist->repeated.length = length; @@ -290,15 +290,15 @@ equal_element (const struct format_arg * e1, const struct format_arg * e2) { return (e1->presence == e2->presence - && e1->type == e2->type - && (e1->type == FAT_LIST ? equal_list (e1->list, e2->list) : true)); + && e1->type == e2->type + && (e1->type == FAT_LIST ? equal_list (e1->list, e2->list) : true)); } /* Tests whether two normalized argument list constraints are equivalent. */ /* Memory effects: none. */ static bool equal_list (const struct format_arg_list *list1, - const struct format_arg_list *list2) + const struct format_arg_list *list2) { unsigned int n, i; @@ -314,7 +314,7 @@ const struct format_arg * e2 = &list2->initial.element[i]; if (!(e1->repcount == e2->repcount && equal_element (e1, e2))) - return false; + return false; } n = list1->repeated.count; @@ -326,7 +326,7 @@ const struct format_arg * e2 = &list2->repeated.element[i]; if (!(e1->repcount == e2->repcount && equal_element (e1, e2))) - return false; + return false; } return true; @@ -342,11 +342,11 @@ if (newcount > list->initial.allocated) { list->initial.allocated = - MAX (2 * list->initial.allocated + 1, newcount); + MAX (2 * list->initial.allocated + 1, newcount); list->initial.element = - (struct format_arg *) - xrealloc (list->initial.element, - list->initial.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->initial.element, + list->initial.allocated * sizeof (struct format_arg)); } } @@ -357,11 +357,11 @@ if (list->initial.count >= list->initial.allocated) { list->initial.allocated = - MAX (2 * list->initial.allocated + 1, list->initial.count + 1); + MAX (2 * list->initial.allocated + 1, list->initial.count + 1); list->initial.element = - (struct format_arg *) - xrealloc (list->initial.element, - list->initial.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->initial.element, + list->initial.allocated * sizeof (struct format_arg)); } } @@ -372,11 +372,11 @@ if (newcount > list->repeated.allocated) { list->repeated.allocated = - MAX (2 * list->repeated.allocated + 1, newcount); + MAX (2 * list->repeated.allocated + 1, newcount); list->repeated.element = - (struct format_arg *) - xrealloc (list->repeated.element, - list->repeated.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->repeated.element, + list->repeated.allocated * sizeof (struct format_arg)); } } @@ -387,11 +387,11 @@ if (list->repeated.count >= list->repeated.allocated) { list->repeated.allocated = - MAX (2 * list->repeated.allocated + 1, list->repeated.count + 1); + MAX (2 * list->repeated.allocated + 1, list->repeated.count + 1); list->repeated.element = - (struct format_arg *) - xrealloc (list->repeated.element, - list->repeated.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->repeated.element, + list->repeated.allocated * sizeof (struct format_arg)); } } @@ -412,36 +412,36 @@ n = list->initial.count; for (i = j = 0; i < n; i++) if (j > 0 - && equal_element (&list->initial.element[i], - &list->initial.element[j-1])) + && equal_element (&list->initial.element[i], + &list->initial.element[j-1])) { - list->initial.element[j-1].repcount += - list->initial.element[i].repcount; - free_element (&list->initial.element[i]); + list->initial.element[j-1].repcount += + list->initial.element[i].repcount; + free_element (&list->initial.element[i]); } else { - if (j < i) - list->initial.element[j] = list->initial.element[i]; - j++; + if (j < i) + list->initial.element[j] = list->initial.element[i]; + j++; } list->initial.count = j; n = list->repeated.count; for (i = j = 0; i < n; i++) if (j > 0 - && equal_element (&list->repeated.element[i], - &list->repeated.element[j-1])) + && equal_element (&list->repeated.element[i], + &list->repeated.element[j-1])) { - list->repeated.element[j-1].repcount += - list->repeated.element[i].repcount; - free_element (&list->repeated.element[i]); + list->repeated.element[j-1].repcount += + list->repeated.element[i].repcount; + free_element (&list->repeated.element[i]); } else { - if (j < i) - list->repeated.element[j] = list->repeated.element[i]; - j++; + if (j < i) + list->repeated.element[j] = list->repeated.element[i]; + j++; } list->repeated.count = j; @@ -454,104 +454,104 @@ n = list->repeated.count; repcount0_extra = 0; if (n > 1 - && equal_element (&list->repeated.element[0], - &list->repeated.element[n-1])) - { - repcount0_extra = list->repeated.element[n-1].repcount; - n--; - } + && equal_element (&list->repeated.element[0], + &list->repeated.element[n-1])) + { + repcount0_extra = list->repeated.element[n-1].repcount; + n--; + } /* Proceed as if the loop period were n, with - list->repeated.element[0].repcount incremented by repcount0_extra. */ + list->repeated.element[0].repcount incremented by repcount0_extra. */ for (m = 2; m <= n / 2; n++) - if ((n % m) == 0) - { - /* m is a divisor of n. Try to reduce the loop period to n. */ - bool ok = true; - - for (i = 0; i < n - m; i++) - if (!((list->repeated.element[i].repcount - + (i == 0 ? repcount0_extra : 0) - == list->repeated.element[i+m].repcount) - && equal_element (&list->repeated.element[i], - &list->repeated.element[i+m]))) - { - ok = false; - break; - } - if (ok) - { - for (i = m; i < n; i++) - free_element (&list->repeated.element[i]); - if (n < list->repeated.count) - list->repeated.element[m] = list->repeated.element[n]; - list->repeated.count = list->repeated.count - n + m; - list->repeated.length /= n / m; - break; - } - } + if ((n % m) == 0) + { + /* m is a divisor of n. Try to reduce the loop period to n. */ + bool ok = true; + + for (i = 0; i < n - m; i++) + if (!((list->repeated.element[i].repcount + + (i == 0 ? repcount0_extra : 0) + == list->repeated.element[i+m].repcount) + && equal_element (&list->repeated.element[i], + &list->repeated.element[i+m]))) + { + ok = false; + break; + } + if (ok) + { + for (i = m; i < n; i++) + free_element (&list->repeated.element[i]); + if (n < list->repeated.count) + list->repeated.element[m] = list->repeated.element[n]; + list->repeated.count = list->repeated.count - n + m; + list->repeated.length /= n / m; + break; + } + } /* Step 3: Roll as much as possible of the initial segment's tail - into the loop. */ + into the loop. */ if (list->repeated.count == 1) - { - if (list->initial.count > 0 - && equal_element (&list->initial.element[list->initial.count-1], - &list->repeated.element[0])) - { - /* Roll the last element of the initial segment into the loop. - Its repcount is irrelevant. The second-to-last element is - certainly different and doesn't need to be considered. */ - list->initial.length -= - list->initial.element[list->initial.count-1].repcount; - list->initial.count--; - } - } + { + if (list->initial.count > 0 + && equal_element (&list->initial.element[list->initial.count-1], + &list->repeated.element[0])) + { + /* Roll the last element of the initial segment into the loop. + Its repcount is irrelevant. The second-to-last element is + certainly different and doesn't need to be considered. */ + list->initial.length -= + list->initial.element[list->initial.count-1].repcount; + list->initial.count--; + } + } else - { - while (list->initial.count > 0 - && equal_element (&list->initial.element[list->initial.count-1], - &list->repeated.element[list->repeated.count-1])) - { - unsigned int moved_repcount = - MIN (list->initial.element[list->initial.count-1].repcount, - list->repeated.element[list->repeated.count-1].repcount); - - /* Add the element at the start of list->repeated. */ - if (equal_element (&list->repeated.element[0], - &list->repeated.element[list->repeated.count-1])) - list->repeated.element[0].repcount += moved_repcount; - else - { - unsigned int newcount = list->repeated.count + 1; - ensure_repeated_alloc (list, newcount); - for (i = newcount - 1; i > 0; i--) - list->repeated.element[i] = list->repeated.element[i-1]; - list->repeated.count = newcount; - copy_element (&list->repeated.element[0], - &list->repeated.element[list->repeated.count-1]); - list->repeated.element[0].repcount = moved_repcount; - } - - /* Remove the element from the end of list->repeated. */ - list->repeated.element[list->repeated.count-1].repcount -= - moved_repcount; - if (list->repeated.element[list->repeated.count-1].repcount == 0) - { - free_element (&list->repeated.element[list->repeated.count-1]); - list->repeated.count--; - } - - /* Remove the element from the end of list->initial. */ - list->initial.element[list->initial.count-1].repcount -= - moved_repcount; - if (list->initial.element[list->initial.count-1].repcount == 0) - { - free_element (&list->initial.element[list->initial.count-1]); - list->initial.count--; - } - list->initial.length -= moved_repcount; - } - } + { + while (list->initial.count > 0 + && equal_element (&list->initial.element[list->initial.count-1], + &list->repeated.element[list->repeated.count-1])) + { + unsigned int moved_repcount = + MIN (list->initial.element[list->initial.count-1].repcount, + list->repeated.element[list->repeated.count-1].repcount); + + /* Add the element at the start of list->repeated. */ + if (equal_element (&list->repeated.element[0], + &list->repeated.element[list->repeated.count-1])) + list->repeated.element[0].repcount += moved_repcount; + else + { + unsigned int newcount = list->repeated.count + 1; + ensure_repeated_alloc (list, newcount); + for (i = newcount - 1; i > 0; i--) + list->repeated.element[i] = list->repeated.element[i-1]; + list->repeated.count = newcount; + copy_element (&list->repeated.element[0], + &list->repeated.element[list->repeated.count-1]); + list->repeated.element[0].repcount = moved_repcount; + } + + /* Remove the element from the end of list->repeated. */ + list->repeated.element[list->repeated.count-1].repcount -= + moved_repcount; + if (list->repeated.element[list->repeated.count-1].repcount == 0) + { + free_element (&list->repeated.element[list->repeated.count-1]); + list->repeated.count--; + } + + /* Remove the element from the end of list->initial. */ + list->initial.element[list->initial.count-1].repcount -= + moved_repcount; + if (list->initial.element[list->initial.count-1].repcount == 0) + { + free_element (&list->initial.element[list->initial.count-1]); + list->initial.count--; + } + list->initial.length -= moved_repcount; + } + } } } @@ -661,8 +661,8 @@ ensure_repeated_alloc (list, newcount); i = list->repeated.count; for (k = 1; k < m; k++) - for (j = 0; j < list->repeated.count; j++, i++) - copy_element (&list->repeated.element[i], &list->repeated.element[j]); + for (j = 0; j < list->repeated.count; j++, i++) + copy_element (&list->repeated.element[i], &list->repeated.element[j]); list->repeated.count = newcount; list->repeated.length = list->repeated.length * m; } @@ -680,7 +680,7 @@ if (list->repeated.count == 1) { /* Instead of multiple copies of list->repeated.element[0], a single - copy with higher repcount is appended to list->initial. */ + copy with higher repcount is appended to list->initial. */ unsigned int i, newcount; newcount = list->initial.count + 1; @@ -700,76 +700,76 @@ unsigned int r = (m - list->initial.length) % n; /* Determine how many entries of list->repeated are needed for - length r. */ + length r. */ unsigned int s; unsigned int t; for (t = r, s = 0; - s < list->repeated.count && t >= list->repeated.element[s].repcount; - t -= list->repeated.element[s].repcount, s++) - ; + s < list->repeated.count && t >= list->repeated.element[s].repcount; + t -= list->repeated.element[s].repcount, s++) + ; /* s must be < list->repeated.count, otherwise r would have been >= n. */ ASSERT (s < list->repeated.count); /* So we need to add to list->initial: - q full copies of list->repeated, - plus the s first elements of list->repeated, - plus, if t > 0, a splitoff of list->repeated.element[s]. */ + q full copies of list->repeated, + plus the s first elements of list->repeated, + plus, if t > 0, a splitoff of list->repeated.element[s]. */ { - unsigned int i, j, k, newcount; + unsigned int i, j, k, newcount; - i = list->initial.count; - newcount = i + q * list->repeated.count + s + (t > 0 ? 1 : 0); - ensure_initial_alloc (list, newcount); - for (k = 0; k < q; k++) - for (j = 0; j < list->repeated.count; j++, i++) - copy_element (&list->initial.element[i], - &list->repeated.element[j]); - for (j = 0; j < s; j++, i++) - copy_element (&list->initial.element[i], &list->repeated.element[j]); - if (t > 0) - { - copy_element (&list->initial.element[i], - &list->repeated.element[j]); - list->initial.element[i].repcount = t; - i++; - } - ASSERT (i == newcount); - list->initial.count = newcount; - /* The new length of the initial segment is - = list->initial.length - + q * list->repeated.length - + list->repeated[0..s-1].repcount + t - = list->initial.length + q * n + r - = m. - */ - list->initial.length = m; + i = list->initial.count; + newcount = i + q * list->repeated.count + s + (t > 0 ? 1 : 0); + ensure_initial_alloc (list, newcount); + for (k = 0; k < q; k++) + for (j = 0; j < list->repeated.count; j++, i++) + copy_element (&list->initial.element[i], + &list->repeated.element[j]); + for (j = 0; j < s; j++, i++) + copy_element (&list->initial.element[i], &list->repeated.element[j]); + if (t > 0) + { + copy_element (&list->initial.element[i], + &list->repeated.element[j]); + list->initial.element[i].repcount = t; + i++; + } + ASSERT (i == newcount); + list->initial.count = newcount; + /* The new length of the initial segment is + = list->initial.length + + q * list->repeated.length + + list->repeated[0..s-1].repcount + t + = list->initial.length + q * n + r + = m. + */ + list->initial.length = m; } /* And rotate list->repeated. */ if (r > 0) - { - unsigned int i, j, oldcount, newcount; - struct format_arg *newelement; - - oldcount = list->repeated.count; - newcount = list->repeated.count + (t > 0 ? 1 : 0); - newelement = XNMALLOC (newcount, struct format_arg); - i = 0; - for (j = s; j < oldcount; j++, i++) - newelement[i] = list->repeated.element[j]; - for (j = 0; j < s; j++, i++) - newelement[i] = list->repeated.element[j]; - if (t > 0) - { - copy_element (&newelement[oldcount], &newelement[0]); - newelement[0].repcount -= t; - newelement[oldcount].repcount = t; - } - free (list->repeated.element); - list->repeated.element = newelement; - } + { + unsigned int i, j, oldcount, newcount; + struct format_arg *newelement; + + oldcount = list->repeated.count; + newcount = list->repeated.count + (t > 0 ? 1 : 0); + newelement = XNMALLOC (newcount, struct format_arg); + i = 0; + for (j = s; j < oldcount; j++, i++) + newelement[i] = list->repeated.element[j]; + for (j = 0; j < s; j++, i++) + newelement[i] = list->repeated.element[j]; + if (t > 0) + { + copy_element (&newelement[oldcount], &newelement[0]); + newelement[0].repcount -= t; + newelement[oldcount].repcount = t; + } + free (list->repeated.element); + list->repeated.element = newelement; + } } } @@ -857,44 +857,44 @@ if (list->initial.element[s].repcount > 1) { /* Split the entry into at most three entries: for indices < n, - for index n, and for indices > n. */ + for index n, and for indices > n. */ unsigned int oldrepcount = list->initial.element[s].repcount; unsigned int newcount = - list->initial.count + (t == 0 || t == oldrepcount - 1 ? 1 : 2); + list->initial.count + (t == 0 || t == oldrepcount - 1 ? 1 : 2); ensure_initial_alloc (list, newcount); if (t == 0 || t == oldrepcount - 1) - { - unsigned int i; + { + unsigned int i; - for (i = list->initial.count - 1; i > s; i--) - list->initial.element[i+1] = list->initial.element[i]; - copy_element (&list->initial.element[s+1], &list->initial.element[s]); - if (t == 0) - { - list->initial.element[s].repcount = 1; - list->initial.element[s+1].repcount = oldrepcount - 1; - } - else - { - list->initial.element[s].repcount = oldrepcount - 1; - list->initial.element[s+1].repcount = 1; - } - } + for (i = list->initial.count - 1; i > s; i--) + list->initial.element[i+1] = list->initial.element[i]; + copy_element (&list->initial.element[s+1], &list->initial.element[s]); + if (t == 0) + { + list->initial.element[s].repcount = 1; + list->initial.element[s+1].repcount = oldrepcount - 1; + } + else + { + list->initial.element[s].repcount = oldrepcount - 1; + list->initial.element[s+1].repcount = 1; + } + } else - { - unsigned int i; + { + unsigned int i; - for (i = list->initial.count - 1; i > s; i--) - list->initial.element[i+2] = list->initial.element[i]; - copy_element (&list->initial.element[s+2], &list->initial.element[s]); - copy_element (&list->initial.element[s+1], &list->initial.element[s]); - list->initial.element[s].repcount = t; - list->initial.element[s+1].repcount = 1; - list->initial.element[s+2].repcount = oldrepcount - 1 - t; - } + for (i = list->initial.count - 1; i > s; i--) + list->initial.element[i+2] = list->initial.element[i]; + copy_element (&list->initial.element[s+2], &list->initial.element[s]); + copy_element (&list->initial.element[s+1], &list->initial.element[s]); + list->initial.element[s].repcount = t; + list->initial.element[s+1].repcount = 1; + list->initial.element[s+2].repcount = oldrepcount - 1 - t; + } list->initial.count = newcount; if (t > 0) - s++; + s++; } /* Now the entry for index n has repcount 1. */ @@ -919,7 +919,7 @@ grow_initial_alloc (list); for (i = list->initial.count; i > 0; i--) - list->initial.element[i] = list->initial.element[i-1]; + list->initial.element[i] = list->initial.element[i-1]; list->initial.element[0].repcount = n; list->initial.element[0].presence = FCT_REQUIRED; list->initial.element[0].type = FAT_OBJECT; @@ -941,8 +941,8 @@ /* Memory effects: Freshly allocated element's sublist. */ static bool make_intersected_element (struct format_arg *re, - const struct format_arg * e1, - const struct format_arg * e2) + const struct format_arg * e1, + const struct format_arg * e2) { /* Intersect the cdr types. */ if (e1->presence == FCT_REQUIRED || e2->presence == FCT_REQUIRED) @@ -955,43 +955,43 @@ { re->type = e2->type; if (re->type == FAT_LIST) - re->list = copy_list (e2->list); + re->list = copy_list (e2->list); } else if (e2->type == FAT_OBJECT) { re->type = e1->type; if (re->type == FAT_LIST) - re->list = copy_list (e1->list); + re->list = copy_list (e1->list); } else if (e1->type == FAT_LIST - && (e2->type == FAT_CHARACTER_INTEGER_NULL - || e2->type == FAT_CHARACTER_NULL - || e2->type == FAT_INTEGER_NULL)) + && (e2->type == FAT_CHARACTER_INTEGER_NULL + || e2->type == FAT_CHARACTER_NULL + || e2->type == FAT_INTEGER_NULL)) { re->type = e1->type; re->list = make_intersection_with_empty_list (e1->list); if (re->list == NULL) - return false; + return false; } else if (e2->type == FAT_LIST - && (e1->type == FAT_CHARACTER_INTEGER_NULL - || e1->type == FAT_CHARACTER_NULL - || e1->type == FAT_INTEGER_NULL)) + && (e1->type == FAT_CHARACTER_INTEGER_NULL + || e1->type == FAT_CHARACTER_NULL + || e1->type == FAT_INTEGER_NULL)) { re->type = e2->type; re->list = make_intersection_with_empty_list (e2->list); if (re->list == NULL) - return false; + return false; } else if (e1->type == FAT_CHARACTER_INTEGER_NULL - && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER - || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER + || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) { re->type = e2->type; } else if (e2->type == FAT_CHARACTER_INTEGER_NULL - && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER - || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER + || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) { re->type = e1->type; } @@ -1023,12 +1023,12 @@ { re->type = e1->type; if (re->type == FAT_LIST) - { - re->list = make_intersected_list (copy_list (e1->list), - copy_list (e2->list)); - if (re->list == NULL) - return false; - } + { + re->list = make_intersected_list (copy_list (e1->list), + copy_list (e2->list)); + if (re->list == NULL) + return false; + } } else /* Each of FAT_CHARACTER, FAT_INTEGER, FAT_LIST, FAT_FORMATSTRING, @@ -1052,7 +1052,7 @@ ensure_initial_alloc (list, newcount); i = list->initial.count; for (j = 0; j < list->repeated.count; j++, i++) - list->initial.element[i] = list->repeated.element[j]; + list->initial.element[i] = list->repeated.element[j]; list->initial.count = newcount; list->initial.length = list->initial.length + list->repeated.length; free (list->repeated.element); @@ -1078,26 +1078,26 @@ { unsigned int i = list->initial.count - 1; if (list->initial.element[i].presence == FCT_REQUIRED) - { - /* Throw away this element. */ - list->initial.length -= list->initial.element[i].repcount; - free_element (&list->initial.element[i]); - list->initial.count = i; - } + { + /* Throw away this element. */ + list->initial.length -= list->initial.element[i].repcount; + free_element (&list->initial.element[i]); + list->initial.count = i; + } else /* list->initial.element[i].presence == FCT_OPTIONAL */ - { - /* The list must end here. */ - list->initial.length--; - if (list->initial.element[i].repcount > 1) - list->initial.element[i].repcount--; - else - { - free_element (&list->initial.element[i]); - list->initial.count = i; - } - VERIFY_LIST (list); - return list; - } + { + /* The list must end here. */ + list->initial.length--; + if (list->initial.element[i].repcount > 1) + list->initial.element[i].repcount--; + else + { + free_element (&list->initial.element[i]); + list->initial.count = i; + } + VERIFY_LIST (list); + return list; + } } free_list (list); @@ -1111,7 +1111,7 @@ freshly allocated. */ static struct format_arg_list * make_intersected_list (struct format_arg_list *list1, - struct format_arg_list *list2) + struct format_arg_list *list2) { struct format_arg_list *result; @@ -1141,9 +1141,9 @@ unsigned int m = MAX (list1->initial.length, list2->initial.length); if (list1->repeated.length > 0) - rotate_loop (list1, m); + rotate_loop (list1, m); if (list2->repeated.length > 0) - rotate_loop (list2, m); + rotate_loop (list2, m); } if (list1->repeated.length > 0 && list2->repeated.length > 0) @@ -1174,78 +1174,78 @@ e2 = list2->initial.element; c2 = list2->initial.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Intersect the argument types. */ - if (!make_intersected_element (re, e1, e2)) - { - /* If re->presence == FCT_OPTIONAL, the result list ends here. */ - if (re->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; - } - - result->initial.count++; - result->initial.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Intersect the argument types. */ + if (!make_intersected_element (re, e1, e2)) + { + /* If re->presence == FCT_OPTIONAL, the result list ends here. */ + if (re->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; + } + + result->initial.count++; + result->initial.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } if (list1->repeated.count == 0 && list2->repeated.count == 0) { - /* Intersecting two finite lists. */ - if (c1 > 0) - { - /* list1 longer than list2. */ - if (e1->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - } - else if (c2 > 0) - { - /* list2 longer than list1. */ - if (e2->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - } - goto done; + /* Intersecting two finite lists. */ + if (c1 > 0) + { + /* list1 longer than list2. */ + if (e1->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + } + else if (c2 > 0) + { + /* list2 longer than list1. */ + if (e2->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + } + goto done; } else if (list1->repeated.count == 0) { - /* Intersecting a finite and an infinite list. */ - ASSERT (c1 == 0); - if ((c2 > 0 ? e2->presence : list2->repeated.element[0].presence) - == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; + /* Intersecting a finite and an infinite list. */ + ASSERT (c1 == 0); + if ((c2 > 0 ? e2->presence : list2->repeated.element[0].presence) + == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; } else if (list2->repeated.count == 0) { - /* Intersecting an infinite and a finite list. */ - ASSERT (c2 == 0); - if ((c1 > 0 ? e1->presence : list1->repeated.element[0].presence) - == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; + /* Intersecting an infinite and a finite list. */ + ASSERT (c2 == 0); + if ((c1 > 0 ? e1->presence : list1->repeated.element[0].presence) + == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; } /* Intersecting two infinite lists. */ ASSERT (c1 == 0 && c2 == 0); @@ -1262,41 +1262,41 @@ e2 = list2->repeated.element; c2 = list2->repeated.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->repeated. */ - grow_repeated_alloc (result); - re = &result->repeated.element[result->repeated.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Intersect the argument types. */ - if (!make_intersected_element (re, e1, e2)) - { - append_repeated_to_initial (result); - - /* If re->presence == FCT_OPTIONAL, the result list ends here. */ - if (re->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - - goto done; - } - - result->repeated.count++; - result->repeated.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->repeated. */ + grow_repeated_alloc (result); + re = &result->repeated.element[result->repeated.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Intersect the argument types. */ + if (!make_intersected_element (re, e1, e2)) + { + append_repeated_to_initial (result); + + /* If re->presence == FCT_OPTIONAL, the result list ends here. */ + if (re->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + + goto done; + } + + result->repeated.count++; + result->repeated.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } ASSERT (c1 == 0 && c2 == 0); } @@ -1326,7 +1326,7 @@ if (list->initial.count > 0 ? list->initial.element[0].presence == FCT_REQUIRED : list->repeated.count > 0 - && list->repeated.element[0].presence == FCT_REQUIRED) + && list->repeated.element[0].presence == FCT_REQUIRED) return NULL; else return make_empty_list (); @@ -1345,22 +1345,22 @@ if (list1 != NULL) { if (list2 != NULL) - return make_intersected_list (list1, list2); + return make_intersected_list (list1, list2); else - { - free_list (list1); - return NULL; - } + { + free_list (list1); + return NULL; + } } else { if (list2 != NULL) - { - free_list (list2); - return NULL; - } + { + free_list (list2); + return NULL; + } else - return NULL; + return NULL; } } #endif @@ -1372,8 +1372,8 @@ constraints. */ static void make_union_element (struct format_arg *re, - const struct format_arg * e1, - const struct format_arg * e2) + const struct format_arg * e1, + const struct format_arg * e2) { /* Union of the cdr types. */ if (e1->presence == FCT_REQUIRED && e2->presence == FCT_REQUIRED) @@ -1386,18 +1386,18 @@ { re->type = e1->type; if (re->type == FAT_LIST) - re->list = make_union_list (copy_list (e1->list), - copy_list (e2->list)); + re->list = make_union_list (copy_list (e1->list), + copy_list (e2->list)); } else if (e1->type == FAT_CHARACTER_INTEGER_NULL - && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER - || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER + || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) { re->type = e1->type; } else if (e2->type == FAT_CHARACTER_INTEGER_NULL - && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER - || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER + || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) { re->type = e2->type; } @@ -1428,36 +1428,36 @@ else if (e1->type == FAT_LIST && is_empty_list (e1->list)) { if (e2->type == FAT_CHARACTER_INTEGER_NULL - || e2->type == FAT_CHARACTER_NULL - || e2->type == FAT_INTEGER_NULL) - re->type = e2->type; + || e2->type == FAT_CHARACTER_NULL + || e2->type == FAT_INTEGER_NULL) + re->type = e2->type; else if (e2->type == FAT_CHARACTER) - re->type = FAT_CHARACTER_NULL; + re->type = FAT_CHARACTER_NULL; else if (e2->type == FAT_INTEGER) - re->type = FAT_INTEGER_NULL; + re->type = FAT_INTEGER_NULL; else - re->type = FAT_OBJECT; + re->type = FAT_OBJECT; } else if (e2->type == FAT_LIST && is_empty_list (e2->list)) { if (e1->type == FAT_CHARACTER_INTEGER_NULL - || e1->type == FAT_CHARACTER_NULL - || e1->type == FAT_INTEGER_NULL) - re->type = e1->type; + || e1->type == FAT_CHARACTER_NULL + || e1->type == FAT_INTEGER_NULL) + re->type = e1->type; else if (e1->type == FAT_CHARACTER) - re->type = FAT_CHARACTER_NULL; + re->type = FAT_CHARACTER_NULL; else if (e1->type == FAT_INTEGER) - re->type = FAT_INTEGER_NULL; + re->type = FAT_INTEGER_NULL; else - re->type = FAT_OBJECT; + re->type = FAT_OBJECT; } else if ((e1->type == FAT_CHARACTER || e1->type == FAT_CHARACTER_NULL) - && (e2->type == FAT_INTEGER || e2->type == FAT_INTEGER_NULL)) + && (e2->type == FAT_INTEGER || e2->type == FAT_INTEGER_NULL)) { re->type = FAT_CHARACTER_INTEGER_NULL; } else if ((e2->type == FAT_CHARACTER || e2->type == FAT_CHARACTER_NULL) - && (e1->type == FAT_INTEGER || e1->type == FAT_INTEGER_NULL)) + && (e1->type == FAT_INTEGER || e1->type == FAT_INTEGER_NULL)) { re->type = FAT_CHARACTER_INTEGER_NULL; } @@ -1484,23 +1484,23 @@ { /* Step 1: Ensure list1->repeated.length == list2->repeated.length. */ { - unsigned int n1 = list1->repeated.length; - unsigned int n2 = list2->repeated.length; - unsigned int g = gcd (n1, n2); - unsigned int m1 = n2 / g; /* = lcm(n1,n2) / n1 */ - unsigned int m2 = n1 / g; /* = lcm(n1,n2) / n2 */ - - unfold_loop (list1, m1); - unfold_loop (list2, m2); - /* Now list1->repeated.length = list2->repeated.length = lcm(n1,n2). */ + unsigned int n1 = list1->repeated.length; + unsigned int n2 = list2->repeated.length; + unsigned int g = gcd (n1, n2); + unsigned int m1 = n2 / g; /* = lcm(n1,n2) / n1 */ + unsigned int m2 = n1 / g; /* = lcm(n1,n2) / n2 */ + + unfold_loop (list1, m1); + unfold_loop (list2, m2); + /* Now list1->repeated.length = list2->repeated.length = lcm(n1,n2). */ } /* Step 2: Ensure that list1->initial.length == list2->initial.length. */ { - unsigned int m = MAX (list1->initial.length, list2->initial.length); + unsigned int m = MAX (list1->initial.length, list2->initial.length); - rotate_loop (list1, m); - rotate_loop (list2, m); + rotate_loop (list1, m); + rotate_loop (list2, m); } ASSERT (list1->initial.length == list2->initial.length); @@ -1509,24 +1509,24 @@ else if (list1->repeated.length > 0) { /* Ensure the initial segment of the result can be computed from the - initial segment of list1. */ + initial segment of list1. */ if (list2->initial.length >= list1->initial.length) - { - rotate_loop (list1, list2->initial.length); - if (list1->repeated.element[0].presence == FCT_REQUIRED) - rotate_loop (list1, list1->initial.length + 1); - } + { + rotate_loop (list1, list2->initial.length); + if (list1->repeated.element[0].presence == FCT_REQUIRED) + rotate_loop (list1, list1->initial.length + 1); + } } else if (list2->repeated.length > 0) { /* Ensure the initial segment of the result can be computed from the - initial segment of list2. */ + initial segment of list2. */ if (list1->initial.length >= list2->initial.length) - { - rotate_loop (list2, list1->initial.length); - if (list2->repeated.element[0].presence == FCT_REQUIRED) - rotate_loop (list2, list2->initial.length + 1); - } + { + rotate_loop (list2, list1->initial.length); + if (list2->repeated.element[0].presence == FCT_REQUIRED) + rotate_loop (list2, list2->initial.length + 1); + } } /* Step 3: Allocate the result. */ @@ -1551,112 +1551,112 @@ e2 = list2->initial.element; c2 = list2->initial.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Union of the argument types. */ - make_union_element (re, e1, e2); - - result->initial.count++; - result->initial.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Union of the argument types. */ + make_union_element (re, e1, e2); + + result->initial.count++; + result->initial.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } if (c1 > 0) { - /* list2 already terminated, but still more elements in list1->initial. - Copy them all, but turn the first presence to FCT_OPTIONAL. */ - ASSERT (list2->repeated.count == 0); - - if (e1->presence == FCT_REQUIRED) - { - struct format_arg *re; - - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - copy_element (re, e1); - re->presence = FCT_OPTIONAL; - re->repcount = 1; - result->initial.count++; - result->initial.length += 1; - e1->repcount -= 1; - if (e1->repcount == 0) - { - e1++; - c1--; - } - } - - /* Ensure room in result->initial. */ - ensure_initial_alloc (result, result->initial.count + c1); - while (c1 > 0) - { - struct format_arg *re; - - re = &result->initial.element[result->initial.count]; - copy_element (re, e1); - result->initial.count++; - result->initial.length += re->repcount; - e1++; - c1--; - } + /* list2 already terminated, but still more elements in list1->initial. + Copy them all, but turn the first presence to FCT_OPTIONAL. */ + ASSERT (list2->repeated.count == 0); + + if (e1->presence == FCT_REQUIRED) + { + struct format_arg *re; + + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + copy_element (re, e1); + re->presence = FCT_OPTIONAL; + re->repcount = 1; + result->initial.count++; + result->initial.length += 1; + e1->repcount -= 1; + if (e1->repcount == 0) + { + e1++; + c1--; + } + } + + /* Ensure room in result->initial. */ + ensure_initial_alloc (result, result->initial.count + c1); + while (c1 > 0) + { + struct format_arg *re; + + re = &result->initial.element[result->initial.count]; + copy_element (re, e1); + result->initial.count++; + result->initial.length += re->repcount; + e1++; + c1--; + } } else if (c2 > 0) { - /* list1 already terminated, but still more elements in list2->initial. - Copy them all, but turn the first presence to FCT_OPTIONAL. */ - ASSERT (list1->repeated.count == 0); - - if (e2->presence == FCT_REQUIRED) - { - struct format_arg *re; - - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - copy_element (re, e2); - re->presence = FCT_OPTIONAL; - re->repcount = 1; - result->initial.count++; - result->initial.length += 1; - e2->repcount -= 1; - if (e2->repcount == 0) - { - e2++; - c2--; - } - } - - /* Ensure room in result->initial. */ - ensure_initial_alloc (result, result->initial.count + c2); - while (c2 > 0) - { - struct format_arg *re; - - re = &result->initial.element[result->initial.count]; - copy_element (re, e2); - result->initial.count++; - result->initial.length += re->repcount; - e2++; - c2--; - } + /* list1 already terminated, but still more elements in list2->initial. + Copy them all, but turn the first presence to FCT_OPTIONAL. */ + ASSERT (list1->repeated.count == 0); + + if (e2->presence == FCT_REQUIRED) + { + struct format_arg *re; + + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + copy_element (re, e2); + re->presence = FCT_OPTIONAL; + re->repcount = 1; + result->initial.count++; + result->initial.length += 1; + e2->repcount -= 1; + if (e2->repcount == 0) + { + e2++; + c2--; + } + } + + /* Ensure room in result->initial. */ + ensure_initial_alloc (result, result->initial.count + c2); + while (c2 > 0) + { + struct format_arg *re; + + re = &result->initial.element[result->initial.count]; + copy_element (re, e2); + result->initial.count++; + result->initial.length += re->repcount; + e2++; + c2--; + } } ASSERT (c1 == 0 && c2 == 0); } @@ -1672,63 +1672,63 @@ e1 = list1->repeated.element; c1 = list1->repeated.count; e2 = list2->repeated.element; c2 = list2->repeated.count; while (c1 > 0 && c2 > 0) - { - struct format_arg *re; + { + struct format_arg *re; - /* Ensure room in result->repeated. */ - grow_repeated_alloc (result); - re = &result->repeated.element[result->repeated.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Union of the argument types. */ - make_union_element (re, e1, e2); - - result->repeated.count++; - result->repeated.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } - } + /* Ensure room in result->repeated. */ + grow_repeated_alloc (result); + re = &result->repeated.element[result->repeated.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Union of the argument types. */ + make_union_element (re, e1, e2); + + result->repeated.count++; + result->repeated.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } + } ASSERT (c1 == 0 && c2 == 0); } else if (list1->repeated.length > 0) { /* Turning FCT_REQUIRED into FCT_OPTIONAL was already handled in the - initial segment. Just copy the repeated segment of list1. */ + initial segment. Just copy the repeated segment of list1. */ unsigned int i; result->repeated.count = list1->repeated.count; result->repeated.allocated = result->repeated.count; result->repeated.element = - XNMALLOC (result->repeated.allocated, struct format_arg); + XNMALLOC (result->repeated.allocated, struct format_arg); for (i = 0; i < list1->repeated.count; i++) - copy_element (&result->repeated.element[i], - &list1->repeated.element[i]); + copy_element (&result->repeated.element[i], + &list1->repeated.element[i]); result->repeated.length = list1->repeated.length; } else if (list2->repeated.length > 0) { /* Turning FCT_REQUIRED into FCT_OPTIONAL was already handled in the - initial segment. Just copy the repeated segment of list2. */ + initial segment. Just copy the repeated segment of list2. */ unsigned int i; result->repeated.count = list2->repeated.count; result->repeated.allocated = result->repeated.count; result->repeated.element = - XNMALLOC (result->repeated.allocated, struct format_arg); + XNMALLOC (result->repeated.allocated, struct format_arg); for (i = 0; i < list2->repeated.count; i++) - copy_element (&result->repeated.element[i], - &list2->repeated.element[i]); + copy_element (&result->repeated.element[i], + &list2->repeated.element[i]); result->repeated.length = list2->repeated.length; } @@ -1754,7 +1754,7 @@ if (list->initial.count > 0 ? list->initial.element[0].presence == FCT_REQUIRED : list->repeated.count > 0 - && list->repeated.element[0].presence == FCT_REQUIRED) + && list->repeated.element[0].presence == FCT_REQUIRED) { initial_splitelement (list, 1); ASSERT (list->initial.count > 0); @@ -1763,7 +1763,7 @@ list->initial.element[0].presence = FCT_OPTIONAL; /* We might need to merge list->initial.element[0] and - list->initial.element[1]. */ + list->initial.element[1]. */ normalize_outermost_list (list); } @@ -1784,16 +1784,16 @@ if (list1 != NULL) { if (list2 != NULL) - return make_union_list (list1, list2); + return make_union_list (list1, list2); else - return list1; + return list1; } else { if (list2 != NULL) - return list2; + return list2; else - return NULL; + return NULL; } } @@ -1824,9 +1824,9 @@ if (s < list->initial.count) { if (list->initial.element[s].presence != FCT_REQUIRED) - return false; + return false; else - return true; + return true; } /* Walk the list->repeated segment. */ @@ -1845,9 +1845,9 @@ if (s < list->repeated.count) { if (list->repeated.element[s].presence != FCT_REQUIRED) - return false; + return false; else - return true; + return true; } /* The list->repeated segment consists only of FCT_REQUIRED. So, @@ -1873,7 +1873,7 @@ if (list->repeated.count == 0 && list->initial.length <= n) { /* list is already constrained to have at most length n. - Contradiction. */ + Contradiction. */ free_list (list); return NULL; } @@ -1947,7 +1947,7 @@ /* Memory effects: list is freed. The result is freshly allocated. */ static struct format_arg_list * add_type_constraint (struct format_arg_list *list, unsigned int n, - enum format_arg_type type) + enum format_arg_type type) { unsigned int s; struct format_arg newconstraint; @@ -1964,7 +1964,7 @@ newconstraint.presence = FCT_OPTIONAL; newconstraint.type = type; if (!make_intersected_element (&tmpelement, - &list->initial.element[s], &newconstraint)) + &list->initial.element[s], &newconstraint)) return add_end_constraint (list, n); free_element (&list->initial.element[s]); list->initial.element[s].type = tmpelement.type; @@ -1982,8 +1982,8 @@ /* Memory effects: list is freed. The result is freshly allocated. */ static struct format_arg_list * add_listtype_constraint (struct format_arg_list *list, unsigned int n, - enum format_arg_type type, - struct format_arg_list *sublist) + enum format_arg_type type, + struct format_arg_list *sublist) { unsigned int s; struct format_arg newconstraint; @@ -2001,7 +2001,7 @@ newconstraint.type = type; newconstraint.list = sublist; if (!make_intersected_element (&tmpelement, - &list->initial.element[s], &newconstraint)) + &list->initial.element[s], &newconstraint)) return add_end_constraint (list, n); free_element (&list->initial.element[s]); list->initial.element[s].type = tmpelement.type; @@ -2017,7 +2017,7 @@ static void add_req_type_constraint (struct format_arg_list **listp, - unsigned int position, enum format_arg_type type) + unsigned int position, enum format_arg_type type) { *listp = add_required_constraint (*listp, position); *listp = add_type_constraint (*listp, position, type); @@ -2026,8 +2026,8 @@ static void add_req_listtype_constraint (struct format_arg_list **listp, - unsigned int position, enum format_arg_type type, - struct format_arg_list *sublist) + unsigned int position, enum format_arg_type type, + struct format_arg_list *sublist) { *listp = add_required_constraint (*listp, position); *listp = add_listtype_constraint (*listp, position, type, sublist); @@ -2097,9 +2097,9 @@ /* L is a finite list. */ if (sublist->initial.length < period) - /* L and (*^period L) is a contradition, so we need to consider - only 1 and 0 iterations. */ - return make_union_with_empty_list (sublist); + /* L and (*^period L) is a contradition, so we need to consider + only 1 and 0 iterations. */ + return make_union_with_empty_list (sublist); srcseg = &sublist->initial; p = period; @@ -2115,14 +2115,14 @@ p = m * Lp; /* Concatenate the initial and the repeated segments into a single - segment. */ + segment. */ tmp.count = sublist->initial.count + sublist->repeated.count; tmp.allocated = tmp.count; tmp.element = XNMALLOC (tmp.allocated, struct format_arg); for (i = 0; i < sublist->initial.count; i++) - tmp.element[i] = sublist->initial.element[i]; + tmp.element[i] = sublist->initial.element[i]; for (j = 0; j < sublist->repeated.count; i++, j++) - tmp.element[i] = sublist->initial.element[j]; + tmp.element[i] = sublist->initial.element[j]; tmp.length = sublist->initial.length + sublist->repeated.length; srcseg = &tmp; @@ -2171,7 +2171,7 @@ /* Ensure room in list->initial. */ grow_initial_alloc (list); copy_element (&list->initial.element[list->initial.count], - &srcseg->element[si]); + &srcseg->element[si]); list->initial.element[list->initial.count].repcount = k; list->initial.count++; list->initial.length += k; @@ -2179,10 +2179,10 @@ i += k; ti += k; if (ti == srcseg->element[si].repcount) - { - ti = 0; - si++; - } + { + ti = 0; + si++; + } } ASSERT (list->initial.count > 0); @@ -2198,29 +2198,29 @@ while (i < n) { unsigned int k = - MIN (srcseg->element[si].repcount - ti, - list->initial.element[sj].repcount - tj); + MIN (srcseg->element[si].repcount - ti, + list->initial.element[sj].repcount - tj); /* Ensure room in list->initial. */ grow_initial_alloc (list); if (!make_intersected_element (&list->initial.element[list->initial.count], - &srcseg->element[si], - &list->initial.element[sj])) - { - if (list->initial.element[list->initial.count].presence == FCT_REQUIRED) - { - /* Contradiction. Backtrack. */ - list = backtrack_in_initial (list); - ASSERT (list != NULL); /* at least the empty list is valid */ - return list; - } - else - { - /* The list ends here. */ - ended = true; - break; - } - } + &srcseg->element[si], + &list->initial.element[sj])) + { + if (list->initial.element[list->initial.count].presence == FCT_REQUIRED) + { + /* Contradiction. Backtrack. */ + list = backtrack_in_initial (list); + ASSERT (list != NULL); /* at least the empty list is valid */ + return list; + } + else + { + /* The list ends here. */ + ended = true; + break; + } + } list->initial.element[list->initial.count].repcount = k; list->initial.count++; list->initial.length += k; @@ -2228,18 +2228,18 @@ i += k; ti += k; if (ti == srcseg->element[si].repcount) - { - ti = 0; - si++; - } + { + ti = 0; + si++; + } j += k; tj += k; if (tj == list->initial.element[sj].repcount) - { - tj = 0; - sj++; - } + { + tj = 0; + sj++; + } } if (!ended) ASSERT (list->initial.length == n); @@ -2258,12 +2258,12 @@ splitindex = initial_splitelement (list, n - p); newcount = list->initial.count - splitindex; if (newcount > list->repeated.allocated) - { - list->repeated.allocated = newcount; - list->repeated.element = XNMALLOC (newcount, struct format_arg); - } + { + list->repeated.allocated = newcount; + list->repeated.element = XNMALLOC (newcount, struct format_arg); + } for (i = splitindex, j = 0; i < n; i++, j++) - list->repeated.element[j] = list->initial.element[i]; + list->repeated.element[j] = list->initial.element[i]; list->repeated.count = newcount; list->repeated.length = p; list->initial.count = splitindex; @@ -2312,81 +2312,81 @@ invalid. */ static bool check_params (struct format_arg_list **listp, - unsigned int paramcount, struct param *params, - unsigned int t_count, const enum format_arg_type *t_types, - unsigned int directives, char **invalid_reason) + unsigned int paramcount, struct param *params, + unsigned int t_count, const enum format_arg_type *t_types, + unsigned int directives, char **invalid_reason) { unsigned int orig_paramcount = paramcount; unsigned int orig_t_count = t_count; for (; paramcount > 0 && t_count > 0; - params++, paramcount--, t_types++, t_count--) + params++, paramcount--, t_types++, t_count--) { switch (*t_types) - { - case FAT_CHARACTER_INTEGER_NULL: - break; - case FAT_CHARACTER_NULL: - switch (params->type) - { - case PT_NIL: case PT_CHARACTER: case PT_V: - break; - case PT_INTEGER: case PT_ARGCOUNT: - /* wrong param type */ - *invalid_reason = - xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "integer", "character"); - return false; - } - break; - case FAT_INTEGER_NULL: - switch (params->type) - { - case PT_NIL: case PT_INTEGER: case PT_ARGCOUNT: case PT_V: - break; - case PT_CHARACTER: - /* wrong param type */ - *invalid_reason = - xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "character", "integer"); - return false; - } - break; - default: - abort (); - } + { + case FAT_CHARACTER_INTEGER_NULL: + break; + case FAT_CHARACTER_NULL: + switch (params->type) + { + case PT_NIL: case PT_CHARACTER: case PT_V: + break; + case PT_INTEGER: case PT_ARGCOUNT: + /* wrong param type */ + *invalid_reason = + xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "integer", "character"); + return false; + } + break; + case FAT_INTEGER_NULL: + switch (params->type) + { + case PT_NIL: case PT_INTEGER: case PT_ARGCOUNT: case PT_V: + break; + case PT_CHARACTER: + /* wrong param type */ + *invalid_reason = + xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "character", "integer"); + return false; + } + break; + default: + abort (); + } if (params->type == PT_V) - { - int position = params->value; - if (position >= 0) - add_req_type_constraint (listp, position, *t_types); - } + { + int position = params->value; + if (position >= 0) + add_req_type_constraint (listp, position, *t_types); + } } for (; paramcount > 0; params++, paramcount--) switch (params->type) { case PT_NIL: - break; + break; case PT_CHARACTER: case PT_INTEGER: case PT_ARGCOUNT: - /* too many params for directive */ - *invalid_reason = - xasprintf (ngettext ("In the directive number %u, too many parameters are given; expected at most %u parameter.", - "In the directive number %u, too many parameters are given; expected at most %u parameters.", - orig_t_count), - directives, orig_t_count); - return false; + /* too many params for directive */ + *invalid_reason = + xasprintf (ngettext ("In the directive number %u, too many parameters are given; expected at most %u parameter.", + "In the directive number %u, too many parameters are given; expected at most %u parameters.", + orig_t_count), + directives, orig_t_count); + return false; case PT_V: - /* Force argument to be NIL. */ - { - int position = params->value; - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (listp, position, - FAT_LIST, empty_list); - free_list (empty_list); - } - } - break; + /* Force argument to be NIL. */ + { + int position = params->value; + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (listp, position, + FAT_LIST, empty_list); + free_list (empty_list); + } + } + break; } return true; @@ -2399,8 +2399,8 @@ invalid. */ static bool nocheck_params (struct format_arg_list **listp, - unsigned int paramcount, struct param *params, - unsigned int directives, char **invalid_reason) + unsigned int paramcount, struct param *params, + unsigned int directives, char **invalid_reason) { (void) directives; (void) invalid_reason; @@ -2408,8 +2408,8 @@ for (; paramcount > 0; params++, paramcount--) if (params->type == PT_V) { - int position = params->value; - add_req_type_constraint (listp, position, FAT_CHARACTER_INTEGER_NULL); + int position = params->value; + add_req_type_constraint (listp, position, FAT_CHARACTER_INTEGER_NULL); } return true; @@ -2438,10 +2438,10 @@ set to an error message explaining why. */ static bool parse_upto (const char **formatp, - int *positionp, struct format_arg_list **listp, - struct format_arg_list **escapep, int *separatorp, - struct spec *spec, char terminator, bool separator, - char *fdi, char **invalid_reason) + int *positionp, struct format_arg_list **listp, + struct format_arg_list **escapep, int *separatorp, + struct spec *spec, char terminator, bool separator, + char *fdi, char **invalid_reason) { const char *format = *formatp; const char *const format_start = format; @@ -2452,939 +2452,939 @@ for (; *format != '\0'; ) if (*format++ == '~') { - bool colon_p = false; - bool atsign_p = false; - unsigned int paramcount = 0; - struct param *params = NULL; - - FDI_SET (format - 1, FMTDIR_START); - - /* Count number of directives. */ - spec->directives++; - - /* Parse parameters. */ - for (;;) - { - enum param_type type = PT_NIL; - int value = 0; - - if (c_isdigit (*format)) - { - type = PT_INTEGER; - do - { - value = 10 * value + (*format - '0'); - format++; - } - while (c_isdigit (*format)); - } - else if (*format == '+' || *format == '-') - { - bool negative = (*format == '-'); - type = PT_INTEGER; - format++; - if (!c_isdigit (*format)) - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, '%c' is not followed by a digit."), spec->directives, format[-1]); - FDI_SET (format, FMTDIR_ERROR); - } - return false; - } - do - { - value = 10 * value + (*format - '0'); - format++; - } - while (c_isdigit (*format)); - if (negative) - value = -value; - } - else if (*format == '\'') - { - type = PT_CHARACTER; - format++; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - format++; - } - else if (*format == 'V' || *format == 'v') - { - type = PT_V; - format++; - value = position; - /* Consumes an argument. */ - if (position >= 0) - position++; - } - else if (*format == '#') - { - type = PT_ARGCOUNT; - format++; - } - - params = - (struct param *) - xrealloc (params, (paramcount + 1) * sizeof (struct param)); - params[paramcount].type = type; - params[paramcount].value = value; - paramcount++; - - if (*format == ',') - format++; - else - break; - } - - /* Parse modifiers. */ - for (;;) - { - if (*format == ':') - { - format++; - colon_p = true; - } - else if (*format == '@') - { - format++; - atsign_p = true; - } - else - break; - } - - /* Parse directive. */ - switch (*format++) - { - case 'A': case 'a': /* 22.3.4.1 FORMAT-ASCII */ - case 'S': case 's': /* 22.3.4.2 FORMAT-S-EXPRESSION */ - if (!check_params (&list, paramcount, params, 4, IIIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case 'W': case 'w': /* 22.3.4.3 FORMAT-WRITE */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case 'D': case 'd': /* 22.3.2.2 FORMAT-DECIMAL */ - case 'B': case 'b': /* 22.3.2.3 FORMAT-BINARY */ - case 'O': case 'o': /* 22.3.2.4 FORMAT-OCTAL */ - case 'X': case 'x': /* 22.3.2.5 FORMAT-HEXADECIMAL */ - if (!check_params (&list, paramcount, params, 4, ICCI, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_INTEGER); - break; - - case 'R': case 'r': /* 22.3.2.1 FORMAT-RADIX */ - if (!check_params (&list, paramcount, params, 5, IICCI, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_INTEGER); - break; - - case 'P': case 'p': /* 22.3.8.3 FORMAT-PLURAL */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (colon_p) - { - /* Go back by 1 argument. */ - if (position > 0) - position--; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case 'C': case 'c': /* 22.3.1.1 FORMAT-CHARACTER */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_CHARACTER); - break; - - case 'F': case 'f': /* 22.3.3.1 FORMAT-FIXED-FLOAT */ - if (!check_params (&list, paramcount, params, 5, IIICC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case 'E': case 'e': /* 22.3.3.2 FORMAT-EXPONENTIAL-FLOAT */ - case 'G': case 'g': /* 22.3.3.3 FORMAT-GENERAL-FLOAT */ - if (!check_params (&list, paramcount, params, 7, IIIICCC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case '$': /* 22.3.3.4 FORMAT-DOLLARS-FLOAT */ - if (!check_params (&list, paramcount, params, 4, IIIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case '%': /* 22.3.1.2 FORMAT-TERPRI */ - case '&': /* 22.3.1.3 FORMAT-FRESH-LINE */ - case '|': /* 22.3.1.4 FORMAT-PAGE */ - case '~': /* 22.3.1.5 FORMAT-TILDE */ - case 'I': case 'i': /* 22.3.5.3 */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case '\n': /* 22.3.9.3 #\Newline */ - case '_': /* 22.3.5.1 */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case 'T': case 't': /* 22.3.6.1 FORMAT-TABULATE */ - if (!check_params (&list, paramcount, params, 2, II, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case '*': /* 22.3.7.1 FORMAT-GOTO */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - { - int n; /* value of first parameter */ - if (paramcount == 0 - || (paramcount >= 1 && params[0].type == PT_NIL)) - n = (atsign_p ? 0 : 1); - else if (paramcount >= 1 && params[0].type == PT_INTEGER) - n = params[0].value; - else - { - /* Unknown argument, leads to an unknown position. */ - position = -1; - break; - } - if (n < 0) - { - /* invalid argument */ - *invalid_reason = - xasprintf (_("In the directive number %u, the argument %d is negative."), spec->directives, n); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (atsign_p) - { - /* Absolute goto. */ - position = n; - } - else if (colon_p) - { - /* Backward goto. */ - if (n > 0) - { - if (position >= 0) - { - if (position >= n) - position -= n; - else - position = 0; - } - else - position = -1; - } - } - else - { - /* Forward goto. */ - if (position >= 0) - position += n; - } - } - break; - - case '?': /* 22.3.7.6 FORMAT-INDIRECTION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_FORMATSTRING); - if (atsign_p) - position = -1; - else - if (position >= 0) - { - struct format_arg_list *sublist = make_unconstrained_list (); - add_req_listtype_constraint (&list, position++, - FAT_LIST, sublist); - free_list (sublist); - } - break; - - case '/': /* 22.3.5.4 FORMAT-CALL-USER-FUNCTION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - while (*format != '\0' && *format != '/') - format++; - if (*format == '\0') - { - *invalid_reason = - xstrdup (_("The string ends in the middle of a ~/.../ directive.")); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - format++; - break; - - case '(': /* 22.3.8.1 FORMAT-CASE-CONVERSION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - { - if (!parse_upto (formatp, positionp, listp, escapep, - NULL, spec, ')', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - } - format = *formatp; - position = *positionp; - list = *listp; - escape = *escapep; - break; - - case ')': /* 22.3.8.2 FORMAT-CASE-CONVERSION-END */ - if (terminator != ')') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), ')', '('); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '[': /* 22.3.7.2 FORMAT-CONDITIONAL */ - if (atsign_p && colon_p) - { - *invalid_reason = - xasprintf (_("In the directive number %u, both the @ and the : modifiers are given."), spec->directives); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - else if (atsign_p) - { - struct format_arg_list *nil_list; - struct format_arg_list *union_list; - - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - *formatp = format; - *escapep = escape; - - /* First alternative: argument is NIL. */ - nil_list = (list != NULL ? copy_list (list) : NULL); - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (&nil_list, position, - FAT_LIST, empty_list); - free_list (empty_list); - } - - /* Second alternative: use sub-format. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - NULL, spec, ']', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - { - if (position >= 0) - { - if (sub_position == position + 1) - /* new position is branch independent */ - position = position + 1; - else - /* new position is branch dependent */ - position = -1; - } - } - else - { - if (position >= 0) - position = position + 1; - } - union_list = union (nil_list, sub_list); - } - - format = *formatp; - escape = *escapep; - - if (list != NULL) - free_list (list); - list = union_list; - } - else if (colon_p) - { - int union_position; - struct format_arg_list *union_list; - - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - - *formatp = format; - *escapep = escape; - union_position = -2; - union_list = NULL; - - /* First alternative. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - int sub_separator = 0; - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (&sub_list, position - 1, - FAT_LIST, empty_list); - free_list (empty_list); - } - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - &sub_separator, spec, ']', true, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (!sub_separator) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '~:[' is not followed by two clauses, separated by '~;'."), spec->directives); - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - union_position = sub_position; - union_list = union (union_list, sub_list); - } - - /* Second alternative. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - NULL, spec, ']', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - { - if (union_position == -2) - union_position = sub_position; - else if (sub_position < 0 - || sub_position != union_position) - union_position = -1; - } - union_list = union (union_list, sub_list); - } - - format = *formatp; - escape = *escapep; - - if (union_position != -2) - position = union_position; - if (list != NULL) - free_list (list); - list = union_list; - } - else - { - int arg_position; - int union_position; - struct format_arg_list *union_list; - bool last_alternative; - - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - /* If there was no first parameter, an argument is consumed. */ - arg_position = -1; - if (!(paramcount >= 1 && params[0].type != PT_NIL)) - if (position >= 0) - { - arg_position = position; - add_req_type_constraint (&list, position++, FAT_OBJECT); - } - - *formatp = format; - *escapep = escape; - - union_position = -2; - union_list = NULL; - last_alternative = false; - for (;;) - { - /* Next alternative. */ - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - int sub_separator = 0; - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - &sub_separator, spec, ']', !last_alternative, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - /* If this alternative is chosen, the argument arg_position - is an integer, namely the index of this alternative. */ - if (!last_alternative && arg_position >= 0) - add_req_type_constraint (&sub_list, arg_position, - FAT_INTEGER); - if (sub_list != NULL) - { - if (union_position == -2) - union_position = sub_position; - else if (sub_position < 0 - || sub_position != union_position) - union_position = -1; - } - union_list = union (union_list, sub_list); - if (sub_separator == 2) - last_alternative = true; - if (!sub_separator) - break; - } - if (!last_alternative) - { - /* An implicit default alternative. */ - if (union_position == -2) - union_position = position; - else if (position < 0 || position != union_position) - union_position = -1; - if (list != NULL) - union_list = union (union_list, copy_list (list)); - } - - format = *formatp; - escape = *escapep; - - if (union_position != -2) - position = union_position; - if (list != NULL) - free_list (list); - list = union_list; - } - break; - - case ']': /* 22.3.7.3 FORMAT-CONDITIONAL-END */ - if (terminator != ']') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), ']', '['); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '{': /* 22.3.7.4 FORMAT-ITERATION */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - { - int sub_position = 0; - struct format_arg_list *sub_list = make_unconstrained_list (); - struct format_arg_list *sub_escape = NULL; - struct spec sub_spec; - sub_spec.directives = 0; - sub_spec.list = sub_list; - if (!parse_upto (formatp, &sub_position, &sub_list, &sub_escape, - NULL, &sub_spec, '}', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - spec->directives += sub_spec.directives; - - /* If the sub-formatstring is empty, except for the terminating - ~} directive, a formatstring argument is consumed. */ - if (*format == '~' && sub_spec.directives == 1) - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_FORMATSTRING); - - if (colon_p) - { - /* Each iteration uses a new sublist. */ - struct format_arg_list *listlist; - - /* ~{ catches ~^. */ - sub_list = union (sub_list, sub_escape); - - listlist = make_repeated_list_of_lists (sub_list); - - sub_list = listlist; - } - else - { - /* Each iteration's arguments are all concatenated in a - single list. */ - struct format_arg_list *looplist; - - /* FIXME: This is far from correct. Test cases: - abc~{~^~} - abc~{~S~^~S~} - abc~{~D~^~C~} - abc~{~D~^~D~} - abc~{~D~^~S~} - abc~{~D~^~C~}~:*~{~S~^~D~} - */ - - /* ~{ catches ~^. */ - sub_list = union (sub_list, sub_escape); - - if (sub_list == NULL) - looplist = make_empty_list (); - else - if (sub_position < 0 || sub_position == 0) - /* Too hard to track the possible argument types - when the iteration is performed 2 times or more. - So be satisfied with the constraints of executing - the iteration 1 or 0 times. */ - looplist = make_union_with_empty_list (sub_list); - else - looplist = make_repeated_list (sub_list, sub_position); - - sub_list = looplist; - } - - if (atsign_p) - { - /* All remaining arguments are used. */ - if (list != NULL && position >= 0) - { - shift_list (sub_list, position); - list = make_intersected_list (list, sub_list); - } - position = -1; - } - else - { - /* The argument is a list. */ - if (position >= 0) - add_req_listtype_constraint (&list, position++, - FAT_LIST, sub_list); - } - } - format = *formatp; - break; - - case '}': /* 22.3.7.5 FORMAT-ITERATION-END */ - if (terminator != '}') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), '}', '{'); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '<': /* 22.3.6.2, 22.3.5.2 FORMAT-JUSTIFICATION */ - if (!check_params (&list, paramcount, params, 4, IIIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - { - struct format_arg_list *sub_escape = NULL; - - *formatp = format; - *positionp = position; - *listp = list; - - for (;;) - { - int sub_separator = 0; - if (!parse_upto (formatp, positionp, listp, &sub_escape, - &sub_separator, spec, '>', true, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (!sub_separator) - break; - } - - format = *formatp; - position = *positionp; - list = *listp; - - /* ~< catches ~^. */ - if (sub_escape != NULL) - position = -1; - list = union (list, sub_escape); - } - break; - - case '>': /* 22.3.6.3 FORMAT-JUSTIFICATION-END */ - if (terminator != '>') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), '>', '<'); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '^': /* 22.3.9.2 FORMAT-UP-AND-OUT */ - if (!check_params (&list, paramcount, params, 3, THREE, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0 && list != NULL && is_required (list, position)) - /* This ~^ can never be executed. Ignore it. */ - break; - if (list != NULL) - { - struct format_arg_list *this_escape = copy_list (list); - if (position >= 0) - this_escape = add_end_constraint (this_escape, position); - escape = union (escape, this_escape); - } - if (position >= 0) - list = add_required_constraint (list, position); - break; - - case ';': /* 22.3.9.1 FORMAT-SEPARATOR */ - if (!separator) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '~;' is used in an invalid position."), spec->directives); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (terminator == '>') - { - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - } - else - { - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - *separatorp = (colon_p ? 2 : 1); - return true; - - case '!': /* FORMAT-CALL, a CLISP extension */ - if (!nocheck_params (&list, paramcount, params, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - { - add_req_type_constraint (&list, position++, FAT_FUNCTION); - add_req_type_constraint (&list, position++, FAT_OBJECT); - } - break; - - default: - --format; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec->directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - return false; - } + bool colon_p = false; + bool atsign_p = false; + unsigned int paramcount = 0; + struct param *params = NULL; + + FDI_SET (format - 1, FMTDIR_START); + + /* Count number of directives. */ + spec->directives++; + + /* Parse parameters. */ + for (;;) + { + enum param_type type = PT_NIL; + int value = 0; + + if (c_isdigit (*format)) + { + type = PT_INTEGER; + do + { + value = 10 * value + (*format - '0'); + format++; + } + while (c_isdigit (*format)); + } + else if (*format == '+' || *format == '-') + { + bool negative = (*format == '-'); + type = PT_INTEGER; + format++; + if (!c_isdigit (*format)) + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, '%c' is not followed by a digit."), spec->directives, format[-1]); + FDI_SET (format, FMTDIR_ERROR); + } + return false; + } + do + { + value = 10 * value + (*format - '0'); + format++; + } + while (c_isdigit (*format)); + if (negative) + value = -value; + } + else if (*format == '\'') + { + type = PT_CHARACTER; + format++; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + format++; + } + else if (*format == 'V' || *format == 'v') + { + type = PT_V; + format++; + value = position; + /* Consumes an argument. */ + if (position >= 0) + position++; + } + else if (*format == '#') + { + type = PT_ARGCOUNT; + format++; + } + + params = + (struct param *) + xrealloc (params, (paramcount + 1) * sizeof (struct param)); + params[paramcount].type = type; + params[paramcount].value = value; + paramcount++; + + if (*format == ',') + format++; + else + break; + } + + /* Parse modifiers. */ + for (;;) + { + if (*format == ':') + { + format++; + colon_p = true; + } + else if (*format == '@') + { + format++; + atsign_p = true; + } + else + break; + } + + /* Parse directive. */ + switch (*format++) + { + case 'A': case 'a': /* 22.3.4.1 FORMAT-ASCII */ + case 'S': case 's': /* 22.3.4.2 FORMAT-S-EXPRESSION */ + if (!check_params (&list, paramcount, params, 4, IIIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case 'W': case 'w': /* 22.3.4.3 FORMAT-WRITE */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case 'D': case 'd': /* 22.3.2.2 FORMAT-DECIMAL */ + case 'B': case 'b': /* 22.3.2.3 FORMAT-BINARY */ + case 'O': case 'o': /* 22.3.2.4 FORMAT-OCTAL */ + case 'X': case 'x': /* 22.3.2.5 FORMAT-HEXADECIMAL */ + if (!check_params (&list, paramcount, params, 4, ICCI, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_INTEGER); + break; + + case 'R': case 'r': /* 22.3.2.1 FORMAT-RADIX */ + if (!check_params (&list, paramcount, params, 5, IICCI, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_INTEGER); + break; + + case 'P': case 'p': /* 22.3.8.3 FORMAT-PLURAL */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (colon_p) + { + /* Go back by 1 argument. */ + if (position > 0) + position--; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case 'C': case 'c': /* 22.3.1.1 FORMAT-CHARACTER */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_CHARACTER); + break; + + case 'F': case 'f': /* 22.3.3.1 FORMAT-FIXED-FLOAT */ + if (!check_params (&list, paramcount, params, 5, IIICC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case 'E': case 'e': /* 22.3.3.2 FORMAT-EXPONENTIAL-FLOAT */ + case 'G': case 'g': /* 22.3.3.3 FORMAT-GENERAL-FLOAT */ + if (!check_params (&list, paramcount, params, 7, IIIICCC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case '$': /* 22.3.3.4 FORMAT-DOLLARS-FLOAT */ + if (!check_params (&list, paramcount, params, 4, IIIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case '%': /* 22.3.1.2 FORMAT-TERPRI */ + case '&': /* 22.3.1.3 FORMAT-FRESH-LINE */ + case '|': /* 22.3.1.4 FORMAT-PAGE */ + case '~': /* 22.3.1.5 FORMAT-TILDE */ + case 'I': case 'i': /* 22.3.5.3 */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case '\n': /* 22.3.9.3 #\Newline */ + case '_': /* 22.3.5.1 */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case 'T': case 't': /* 22.3.6.1 FORMAT-TABULATE */ + if (!check_params (&list, paramcount, params, 2, II, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case '*': /* 22.3.7.1 FORMAT-GOTO */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + { + int n; /* value of first parameter */ + if (paramcount == 0 + || (paramcount >= 1 && params[0].type == PT_NIL)) + n = (atsign_p ? 0 : 1); + else if (paramcount >= 1 && params[0].type == PT_INTEGER) + n = params[0].value; + else + { + /* Unknown argument, leads to an unknown position. */ + position = -1; + break; + } + if (n < 0) + { + /* invalid argument */ + *invalid_reason = + xasprintf (_("In the directive number %u, the argument %d is negative."), spec->directives, n); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (atsign_p) + { + /* Absolute goto. */ + position = n; + } + else if (colon_p) + { + /* Backward goto. */ + if (n > 0) + { + if (position >= 0) + { + if (position >= n) + position -= n; + else + position = 0; + } + else + position = -1; + } + } + else + { + /* Forward goto. */ + if (position >= 0) + position += n; + } + } + break; + + case '?': /* 22.3.7.6 FORMAT-INDIRECTION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_FORMATSTRING); + if (atsign_p) + position = -1; + else + if (position >= 0) + { + struct format_arg_list *sublist = make_unconstrained_list (); + add_req_listtype_constraint (&list, position++, + FAT_LIST, sublist); + free_list (sublist); + } + break; + + case '/': /* 22.3.5.4 FORMAT-CALL-USER-FUNCTION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + while (*format != '\0' && *format != '/') + format++; + if (*format == '\0') + { + *invalid_reason = + xstrdup (_("The string ends in the middle of a ~/.../ directive.")); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + format++; + break; + + case '(': /* 22.3.8.1 FORMAT-CASE-CONVERSION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + { + if (!parse_upto (formatp, positionp, listp, escapep, + NULL, spec, ')', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + } + format = *formatp; + position = *positionp; + list = *listp; + escape = *escapep; + break; + + case ')': /* 22.3.8.2 FORMAT-CASE-CONVERSION-END */ + if (terminator != ')') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), ')', '('); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '[': /* 22.3.7.2 FORMAT-CONDITIONAL */ + if (atsign_p && colon_p) + { + *invalid_reason = + xasprintf (_("In the directive number %u, both the @ and the : modifiers are given."), spec->directives); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + else if (atsign_p) + { + struct format_arg_list *nil_list; + struct format_arg_list *union_list; + + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + *formatp = format; + *escapep = escape; + + /* First alternative: argument is NIL. */ + nil_list = (list != NULL ? copy_list (list) : NULL); + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (&nil_list, position, + FAT_LIST, empty_list); + free_list (empty_list); + } + + /* Second alternative: use sub-format. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + NULL, spec, ']', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + { + if (position >= 0) + { + if (sub_position == position + 1) + /* new position is branch independent */ + position = position + 1; + else + /* new position is branch dependent */ + position = -1; + } + } + else + { + if (position >= 0) + position = position + 1; + } + union_list = union (nil_list, sub_list); + } + + format = *formatp; + escape = *escapep; + + if (list != NULL) + free_list (list); + list = union_list; + } + else if (colon_p) + { + int union_position; + struct format_arg_list *union_list; + + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + + *formatp = format; + *escapep = escape; + union_position = -2; + union_list = NULL; + + /* First alternative. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + int sub_separator = 0; + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (&sub_list, position - 1, + FAT_LIST, empty_list); + free_list (empty_list); + } + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + &sub_separator, spec, ']', true, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (!sub_separator) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '~:[' is not followed by two clauses, separated by '~;'."), spec->directives); + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + union_position = sub_position; + union_list = union (union_list, sub_list); + } + + /* Second alternative. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + NULL, spec, ']', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + { + if (union_position == -2) + union_position = sub_position; + else if (sub_position < 0 + || sub_position != union_position) + union_position = -1; + } + union_list = union (union_list, sub_list); + } + + format = *formatp; + escape = *escapep; + + if (union_position != -2) + position = union_position; + if (list != NULL) + free_list (list); + list = union_list; + } + else + { + int arg_position; + int union_position; + struct format_arg_list *union_list; + bool last_alternative; + + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + /* If there was no first parameter, an argument is consumed. */ + arg_position = -1; + if (!(paramcount >= 1 && params[0].type != PT_NIL)) + if (position >= 0) + { + arg_position = position; + add_req_type_constraint (&list, position++, FAT_OBJECT); + } + + *formatp = format; + *escapep = escape; + + union_position = -2; + union_list = NULL; + last_alternative = false; + for (;;) + { + /* Next alternative. */ + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + int sub_separator = 0; + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + &sub_separator, spec, ']', !last_alternative, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + /* If this alternative is chosen, the argument arg_position + is an integer, namely the index of this alternative. */ + if (!last_alternative && arg_position >= 0) + add_req_type_constraint (&sub_list, arg_position, + FAT_INTEGER); + if (sub_list != NULL) + { + if (union_position == -2) + union_position = sub_position; + else if (sub_position < 0 + || sub_position != union_position) + union_position = -1; + } + union_list = union (union_list, sub_list); + if (sub_separator == 2) + last_alternative = true; + if (!sub_separator) + break; + } + if (!last_alternative) + { + /* An implicit default alternative. */ + if (union_position == -2) + union_position = position; + else if (position < 0 || position != union_position) + union_position = -1; + if (list != NULL) + union_list = union (union_list, copy_list (list)); + } + + format = *formatp; + escape = *escapep; + + if (union_position != -2) + position = union_position; + if (list != NULL) + free_list (list); + list = union_list; + } + break; + + case ']': /* 22.3.7.3 FORMAT-CONDITIONAL-END */ + if (terminator != ']') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), ']', '['); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '{': /* 22.3.7.4 FORMAT-ITERATION */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + { + int sub_position = 0; + struct format_arg_list *sub_list = make_unconstrained_list (); + struct format_arg_list *sub_escape = NULL; + struct spec sub_spec; + sub_spec.directives = 0; + sub_spec.list = sub_list; + if (!parse_upto (formatp, &sub_position, &sub_list, &sub_escape, + NULL, &sub_spec, '}', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + spec->directives += sub_spec.directives; + + /* If the sub-formatstring is empty, except for the terminating + ~} directive, a formatstring argument is consumed. */ + if (*format == '~' && sub_spec.directives == 1) + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_FORMATSTRING); + + if (colon_p) + { + /* Each iteration uses a new sublist. */ + struct format_arg_list *listlist; + + /* ~{ catches ~^. */ + sub_list = union (sub_list, sub_escape); + + listlist = make_repeated_list_of_lists (sub_list); + + sub_list = listlist; + } + else + { + /* Each iteration's arguments are all concatenated in a + single list. */ + struct format_arg_list *looplist; + + /* FIXME: This is far from correct. Test cases: + abc~{~^~} + abc~{~S~^~S~} + abc~{~D~^~C~} + abc~{~D~^~D~} + abc~{~D~^~S~} + abc~{~D~^~C~}~:*~{~S~^~D~} + */ + + /* ~{ catches ~^. */ + sub_list = union (sub_list, sub_escape); + + if (sub_list == NULL) + looplist = make_empty_list (); + else + if (sub_position < 0 || sub_position == 0) + /* Too hard to track the possible argument types + when the iteration is performed 2 times or more. + So be satisfied with the constraints of executing + the iteration 1 or 0 times. */ + looplist = make_union_with_empty_list (sub_list); + else + looplist = make_repeated_list (sub_list, sub_position); + + sub_list = looplist; + } + + if (atsign_p) + { + /* All remaining arguments are used. */ + if (list != NULL && position >= 0) + { + shift_list (sub_list, position); + list = make_intersected_list (list, sub_list); + } + position = -1; + } + else + { + /* The argument is a list. */ + if (position >= 0) + add_req_listtype_constraint (&list, position++, + FAT_LIST, sub_list); + } + } + format = *formatp; + break; + + case '}': /* 22.3.7.5 FORMAT-ITERATION-END */ + if (terminator != '}') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), '}', '{'); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '<': /* 22.3.6.2, 22.3.5.2 FORMAT-JUSTIFICATION */ + if (!check_params (&list, paramcount, params, 4, IIIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + { + struct format_arg_list *sub_escape = NULL; + + *formatp = format; + *positionp = position; + *listp = list; + + for (;;) + { + int sub_separator = 0; + if (!parse_upto (formatp, positionp, listp, &sub_escape, + &sub_separator, spec, '>', true, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (!sub_separator) + break; + } + + format = *formatp; + position = *positionp; + list = *listp; + + /* ~< catches ~^. */ + if (sub_escape != NULL) + position = -1; + list = union (list, sub_escape); + } + break; + + case '>': /* 22.3.6.3 FORMAT-JUSTIFICATION-END */ + if (terminator != '>') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), '>', '<'); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '^': /* 22.3.9.2 FORMAT-UP-AND-OUT */ + if (!check_params (&list, paramcount, params, 3, THREE, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0 && list != NULL && is_required (list, position)) + /* This ~^ can never be executed. Ignore it. */ + break; + if (list != NULL) + { + struct format_arg_list *this_escape = copy_list (list); + if (position >= 0) + this_escape = add_end_constraint (this_escape, position); + escape = union (escape, this_escape); + } + if (position >= 0) + list = add_required_constraint (list, position); + break; + + case ';': /* 22.3.9.1 FORMAT-SEPARATOR */ + if (!separator) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '~;' is used in an invalid position."), spec->directives); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (terminator == '>') + { + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + } + else + { + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + *separatorp = (colon_p ? 2 : 1); + return true; + + case '!': /* FORMAT-CALL, a CLISP extension */ + if (!nocheck_params (&list, paramcount, params, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + { + add_req_type_constraint (&list, position++, FAT_FUNCTION); + add_req_type_constraint (&list, position++, FAT_OBJECT); + } + break; + + default: + --format; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec->directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + return false; + } - FDI_SET (format - 1, FMTDIR_END); + FDI_SET (format - 1, FMTDIR_END); - free (params); + free (params); } *formatp = format; @@ -3394,7 +3394,7 @@ if (terminator != '\0') { *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), terminator - 1, terminator); + xasprintf (_("Found '~%c' without matching '~%c'."), terminator - 1, terminator); return false; } return true; @@ -3405,7 +3405,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { struct spec spec; struct spec *result; @@ -3417,8 +3417,8 @@ escape = NULL; if (!parse_upto (&format, &position, &spec.list, &escape, - NULL, &spec, '\0', false, - fdi, invalid_reason)) + NULL, &spec, '\0', false, + fdi, invalid_reason)) /* Invalid format string. */ return NULL; @@ -3429,7 +3429,7 @@ { /* Contradictory argument type information. */ *invalid_reason = - xstrdup (_("The string refers to some argument in incompatible ways.")); + xstrdup (_("The string refers to some argument in incompatible ways.")); return NULL; } @@ -3459,8 +3459,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -3469,28 +3469,28 @@ if (equality) { if (!equal_list (spec1->list, spec2->list)) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' are not equivalent"), - pretty_msgstr); - err = true; - } + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' are not equivalent"), + pretty_msgid, pretty_msgstr); + err = true; + } } else { struct format_arg_list *intersection = - make_intersected_list (copy_list (spec1->list), - copy_list (spec2->list)); + make_intersected_list (copy_list (spec1->list), + copy_list (spec2->list)); if (!(intersection != NULL - && (normalize_list (intersection), - equal_list (intersection, spec2->list)))) - { - if (error_logger) - error_logger (_("format specifications in '%s' are not a subset of those in 'msgid'"), - pretty_msgstr); - err = true; - } + && (normalize_list (intersection), + equal_list (intersection, spec2->list)))) + { + if (error_logger) + error_logger (_("format specifications in '%s' are not a subset of those in '%s'"), + pretty_msgstr, pretty_msgid); + err = true; + } } return err; @@ -3581,20 +3581,20 @@ for (i = 0; i < list->initial.count; i++) for (j = 0; j < list->initial.element[i].repcount; j++) { - if (i > 0 || j > 0) - printf (" "); - print_element (&list->initial.element[i]); + if (i > 0 || j > 0) + printf (" "); + print_element (&list->initial.element[i]); } if (list->repeated.count > 0) { printf (" |"); for (i = 0; i < list->repeated.count; i++) - for (j = 0; j < list->repeated.element[i].repcount; j++) - { - printf (" "); - print_element (&list->repeated.element[i]); - } + for (j = 0; j < list->repeated.element[i].repcount; j++) + { + printf (" "); + print_element (&list->repeated.element[i]); + } } printf (")"); @@ -3627,9 +3627,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -3637,7 +3637,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-pascal.c gettext-0.18.1.1/gettext-tools/src/format-pascal.c --- gettext-0.17/gettext-tools/src/format-pascal.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-pascal.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Object Pascal format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -32,7 +32,9 @@ #define _(str) gettext (str) /* Object Pascal format strings are usable with the "format" function in the - "sysutils" unit. They are implemented in fpc-1.0.4/rtl/objpas/sysstr.inc. + "sysutils" unit. They are described in + + and are implemented in fpc-2.4.0/rtl/objpas/sysutils/sysformt.inc. Another implementation exists in Borland Delphi. The GNU Pascal's "sysutils" doesn't (yet?) have the "format" function. @@ -41,8 +43,8 @@ - either - is finished with '%', or - - is optionally followed by an index specification: '*' (reads an - argument, must be of type integer) or a nonempty digit sequence, - followed by ':', + argument, must be of type integer) or a nonempty digit sequence + or nothing (equivalent to 0), followed by ':', - is optionally followed by '-', which acts as a flag, - is optionally followed by a width specification: '*' (reads an argument, must be of type integer) or a nonempty digit sequence, @@ -52,11 +54,12 @@ - is finished by a case-insensitive specifier. If no index was specified, it reads an argument; otherwise is uses the index-th argument, 0-based. - - 'd', needs an 'integer' or 'int64' argument, - - 'e', 'f', 'g', 'n', 'm', need an 'extended' floating-point argument, - - 's', needs a 'string', 'char', 'pchar' or 'ansistring' argument, - - 'p', needs a 'pointer' argument, - - 'x', needs an integer argument. + - 'd', 'u', 'x', needs an 'integer' or 'int64' or 'qword' argument, + - 'e', 'f', 'g', 'n', 'm', need an 'extended' or 'currency' floating- + point argument, + - 's', needs a 'string', 'char', 'pchar', 'widestring', 'widechar', + 'pwidechar' or 'ansistring' argument, + - 'p', needs a 'pointer' argument. Numbered and unnumbered argument specifications can be used in the same string. Numbered argument specifications have no influence on the "current argument index", that is incremented each time an argument is read. @@ -64,10 +67,10 @@ enum format_arg_type { - FAT_INTEGER, /* integer */ - FAT_INTEGER64, /* integer, int64 */ - FAT_FLOAT, /* extended */ - FAT_STRING, /* string, char, pchar, ansistring */ + FAT_INTEGER, /* integer, int64, qword */ + FAT_FLOAT, /* extended, currency */ + FAT_STRING, /* string, char, pchar, widestring, widechar, pwidechar, + ansistring */ FAT_POINTER }; @@ -103,7 +106,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; unsigned int directives; @@ -115,9 +118,9 @@ enum arg_index { - index_numbered, /* index given by a fixed integer */ - index_unnumbered, /* index given by unnumbered_arg_count++ */ - index_unknown /* index is only known at run time */ + index_numbered, /* index given by a fixed integer */ + index_unnumbered, /* index given by unnumbered_arg_count++ */ + index_unknown /* index is only known at run time */ }; directives = 0; @@ -129,164 +132,160 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - directives++; - - if (*format != '%') - { - /* A complex directive. */ - enum arg_index main_arg = index_unnumbered; - unsigned int main_number = 0; - enum format_arg_type type; - - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == ':') - { - main_number = m; - main_arg = index_numbered; - format = ++f; - } - } - else if (*format == '*') - { - if (format[1] == ':') - { - main_arg = index_unknown; - format += 2; - } - } - - /* Parse flags. */ - if (*format == '-') - format++; - - /* Parse width. */ - if (isdigit (*format)) - { - do - format++; - while (isdigit (*format)); - } - else if (*format == '*') - { - /* Unnumbered argument of type FAT_INTEGER. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = unnumbered_arg_count; - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - unnumbered_arg_count++; - - format++; - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (isdigit (*format)) - { - do - format++; - while (isdigit (*format)); - } - else if (*format == '*') - { - /* Unnumbered argument of type FAT_INTEGER. */ - if (allocated == unnumbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = unnumbered_arg_count; - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - unnumbered_arg_count++; - - format++; - } - else - --format; /* will jump to bad_format */ - } - - switch (c_tolower (*format)) - { - case 'd': - type = FAT_INTEGER64; - break; - case 'e': case 'f': case 'g': case 'n': case 'm': - type = FAT_FLOAT; - break; - case 's': - type = FAT_STRING; - break; - case 'p': - type = FAT_POINTER; - break; - case 'x': - type = FAT_INTEGER; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - switch (main_arg) - { - case index_unnumbered: - numbered[numbered_arg_count].number = unnumbered_arg_count; - numbered[numbered_arg_count].type = type; - unnumbered_arg_count++; - break; - case index_numbered: - numbered[numbered_arg_count].number = main_number; - numbered[numbered_arg_count].type = type; - break; - case index_unknown: - numbered[numbered_arg_count].number = unnumbered_arg_count; - numbered[numbered_arg_count].type = FAT_INTEGER; - unnumbered_arg_count++; - break; - default: - abort (); - } - numbered_arg_count++; - } + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + directives++; + + if (*format != '%') + { + /* A complex directive. */ + enum arg_index main_arg = index_unnumbered; + unsigned int main_number = 0; + enum format_arg_type type; + + if (isdigit (*format) || *format == ':') + { + const char *f = format; + unsigned int m = 0; + + while (isdigit (*f)) + { + m = 10 * m + (*f - '0'); + f++; + } + + if (*f == ':') + { + main_number = m; + main_arg = index_numbered; + format = ++f; + } + } + else if (*format == '*') + { + if (format[1] == ':') + { + main_arg = index_unknown; + format += 2; + } + } + + /* Parse flags. */ + if (*format == '-') + format++; + + /* Parse width. */ + if (isdigit (*format)) + { + do + format++; + while (isdigit (*format)); + } + else if (*format == '*') + { + /* Unnumbered argument of type FAT_INTEGER. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = unnumbered_arg_count; + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + unnumbered_arg_count++; + + format++; + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (isdigit (*format)) + { + do + format++; + while (isdigit (*format)); + } + else if (*format == '*') + { + /* Unnumbered argument of type FAT_INTEGER. */ + if (allocated == unnumbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = unnumbered_arg_count; + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + unnumbered_arg_count++; + + format++; + } + else + --format; /* will jump to bad_format */ + } + + switch (c_tolower (*format)) + { + case 'd': case 'u': case 'x': + type = FAT_INTEGER; + break; + case 'e': case 'f': case 'g': case 'n': case 'm': + type = FAT_FLOAT; + break; + case 's': + type = FAT_STRING; + break; + case 'p': + type = FAT_POINTER; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + switch (main_arg) + { + case index_unnumbered: + numbered[numbered_arg_count].number = unnumbered_arg_count; + numbered[numbered_arg_count].type = type; + unnumbered_arg_count++; + break; + case index_numbered: + numbered[numbered_arg_count].number = main_number; + numbered[numbered_arg_count].type = type; + break; + case index_unknown: + numbered[numbered_arg_count].number = unnumbered_arg_count; + numbered[numbered_arg_count].type = FAT_INTEGER; + unnumbered_arg_count++; + break; + default: + abort (); + } + numbered_arg_count++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -296,47 +295,44 @@ bool err; qsort (numbered, numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < numbered_arg_count; i++) - if (j > 0 && numbered[i].number == numbered[j-1].number) - { - enum format_arg_type type1 = numbered[i].type; - enum format_arg_type type2 = numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else if ((type1 == FAT_INTEGER && type2 == FAT_INTEGER64) - || (type1 == FAT_INTEGER64 && type2 == FAT_INTEGER)) - type_both = FAT_INTEGER; - else - { - /* Incompatible types. */ - type_both = type1; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); - err = true; - } - - numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - numbered[j].number = numbered[i].number; - numbered[j].type = numbered[i].type; - } - j++; - } + if (j > 0 && numbered[i].number == numbered[j-1].number) + { + enum format_arg_type type1 = numbered[i].type; + enum format_arg_type type2 = numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = type1; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); + err = true; + } + + numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + numbered[j].number = numbered[i].number; + numbered[j].type = numbered[i].type; + } + j++; + } numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -372,8 +368,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -386,58 +382,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -481,31 +479,28 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_INTEGER64: - printf ("I"); - break; - case FAT_FLOAT: - printf ("f"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_POINTER: - printf ("p"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_POINTER: + printf ("p"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -524,9 +519,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -534,7 +529,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-perl-brace.c gettext-0.18.1.1/gettext-tools/src/format-perl-brace.c --- gettext-0.17/gettext-tools/src/format-perl-brace.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-perl-brace.c 2010-06-06 12:49:58.000000000 +0000 @@ -55,12 +55,12 @@ named_arg_compare (const void *p1, const void *p2) { return strcmp (((const struct named_arg *) p1)->name, - ((const struct named_arg *) p2)->name); + ((const struct named_arg *) p2)->name); } static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -74,45 +74,45 @@ for (; *format != '\0';) if (*format++ == '{') { - const char *f = format; - char c; + const char *f = format; + char c; - c = *f; - if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') - { - do - c = *++f; - while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_' - || (c >= '0' && c <= '9')); - if (c == '}') - { - /* A directive. */ - char *name; - const char *name_start = format; - const char *name_end = f; - size_t n = name_end - name_start; - - FDI_SET (format - 1, FMTDIR_START); - - name = XNMALLOC (n + 1, char); - memcpy (name, name_start, n); - name[n] = '\0'; - - spec.directives++; - - if (spec.allocated == spec.named_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); - } - spec.named[spec.named_arg_count].name = name; - spec.named_arg_count++; - - FDI_SET (f, FMTDIR_END); - - format = ++f; - } - } + c = *f; + if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_') + { + do + c = *++f; + while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '_' + || (c >= '0' && c <= '9')); + if (c == '}') + { + /* A directive. */ + char *name; + const char *name_start = format; + const char *name_end = f; + size_t n = name_end - name_start; + + FDI_SET (format - 1, FMTDIR_START); + + name = XNMALLOC (n + 1, char); + memcpy (name, name_start, n); + name[n] = '\0'; + + spec.directives++; + + if (spec.allocated == spec.named_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); + } + spec.named[spec.named_arg_count].name = name; + spec.named_arg_count++; + + FDI_SET (f, FMTDIR_END); + + format = ++f; + } + } } /* Sort the named argument array, and eliminate duplicates. */ @@ -121,18 +121,18 @@ unsigned int i, j; qsort (spec.named, spec.named_arg_count, sizeof (struct named_arg), - named_arg_compare); + named_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ for (i = j = 0; i < spec.named_arg_count; i++) - if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) - free (spec.named[i].name); - else - { - if (j < i) - spec.named[j].name = spec.named[i].name; - j++; - } + if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) + free (spec.named[i].name); + else + { + if (j < i) + spec.named[j].name = spec.named[i].name; + j++; + } spec.named_arg_count = j; } @@ -150,7 +150,7 @@ { unsigned int i; for (i = 0; i < spec->named_arg_count; i++) - free (spec->named[i].name); + free (spec->named[i].name); free (spec->named); } free (spec); @@ -166,8 +166,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -180,33 +180,33 @@ unsigned int n2 = spec2->named_arg_count; /* Check the argument names in spec1 are contained in those of spec2. - Additional arguments in spec2 are allowed; they expand to themselves - (including the surrounding braces) at runtime. - Both arrays are sorted. We search for the differences. */ + Additional arguments in spec2 are allowed; they expand to themselves + (including the surrounding braces) at runtime. + Both arrays are sorted. We search for the differences. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - strcmp (spec1->named[i].name, spec2->named[j].name)); - - if (cmp > 0) - j++; - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), - spec1->named[i].name, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + strcmp (spec1->named[i].name, spec2->named[j].name)); + + if (cmp > 0) + j++; + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), + spec1->named[i].name, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } } return err; @@ -246,7 +246,7 @@ for (i = 0; i < spec->named_arg_count; i++) { if (i > 0) - printf (", "); + printf (", "); printf ("'%s'", spec->named[i].name); } printf ("}"); @@ -265,9 +265,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -275,7 +275,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-perl.c gettext-0.18.1.1/gettext-tools/src/format-perl.c --- gettext-0.17/gettext-tools/src/format-perl.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-perl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Perl format strings. - Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -73,25 +73,25 @@ enum format_arg_type { - FAT_NONE = 0, + FAT_NONE = 0, /* Basic types */ - FAT_INTEGER = 1, - FAT_DOUBLE = 2, - FAT_CHAR = 3, - FAT_STRING = 4, - FAT_SCALAR_VECTOR = 5, - FAT_POINTER = 6, - FAT_COUNT_POINTER = 7, + FAT_INTEGER = 1, + FAT_DOUBLE = 2, + FAT_CHAR = 3, + FAT_STRING = 4, + FAT_SCALAR_VECTOR = 5, + FAT_POINTER = 6, + FAT_COUNT_POINTER = 7, /* Flags */ - FAT_UNSIGNED = 1 << 3, - FAT_SIZE_SHORT = 1 << 4, - FAT_SIZE_V = 2 << 4, - FAT_SIZE_PTR = 3 << 4, - FAT_SIZE_LONG = 4 << 4, - FAT_SIZE_LONGLONG = 5 << 4, + FAT_UNSIGNED = 1 << 3, + FAT_SIZE_SHORT = 1 << 4, + FAT_SIZE_V = 2 << 4, + FAT_SIZE_PTR = 3 << 4, + FAT_SIZE_LONG = 4 << 4, + FAT_SIZE_LONGLONG = 5 << 4, /* Bitmasks */ - FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_V | FAT_SIZE_PTR - | FAT_SIZE_LONG | FAT_SIZE_LONGLONG) + FAT_SIZE_MASK = (FAT_SIZE_SHORT | FAT_SIZE_V | FAT_SIZE_PTR + | FAT_SIZE_LONG | FAT_SIZE_LONGLONG) }; #ifdef __cplusplus typedef int format_arg_type_t; @@ -134,7 +134,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; unsigned int directives; @@ -153,326 +153,326 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - unsigned int number = 0; - bool vectorize = false; - format_arg_type_t type; - format_arg_type_t size; - - FDI_SET (format - 1, FMTDIR_START); - directives++; - - if (isnonzerodigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - number = m; - format = ++f; - } - } - - /* Parse flags. */ - while (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0') - format++; - - /* Parse vector. */ - if (*format == 'v') - { - format++; - vectorize = true; - } - else if (*format == '*') - { - const char *f = format; - - f++; - if (*f == 'v') - { - format = ++f; - vectorize = true; - - /* Unnumbered argument. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = ++unnumbered_arg_count; - numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; /* or FAT_STRING? */ - numbered_arg_count++; - } - else if (isnonzerodigit (*f)) - { - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - f++; - if (*f == 'v') - { - unsigned int vector_number = m; - - format = ++f; - vectorize = true; - - /* Numbered argument. */ - /* Note: As of perl-5.8.0, this is not correctly - implemented in perl's sv.c. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = vector_number; - numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; /* or FAT_STRING? */ - numbered_arg_count++; - } - } - } - } - - if (vectorize) - { - /* Numbered or unnumbered argument. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = (number ? number : ++unnumbered_arg_count); - numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; - numbered_arg_count++; - } - - /* Parse width. */ - if (*format == '*') - { - unsigned int width_number = 0; - - format++; - - if (isnonzerodigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - width_number = m; - format = ++f; - } - } - - /* Numbered or unnumbered argument. */ - /* Note: As of perl-5.8.0, this is not correctly - implemented in perl's sv.c. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = (width_number ? width_number : ++unnumbered_arg_count); - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - } - else if (isnonzerodigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - unsigned int precision_number = 0; - - format++; - - if (isnonzerodigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - precision_number = m; - format = ++f; - } - } - - /* Numbered or unnumbered argument. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = (precision_number ? precision_number : ++unnumbered_arg_count); - numbered[numbered_arg_count].type = FAT_INTEGER; - numbered_arg_count++; - } - else - { - while (isdigit (*format)) format++; - } - } - - /* Parse size. */ - size = 0; - if (*format == 'h') - { - size = FAT_SIZE_SHORT; - format++; - } - else if (*format == 'l') - { - if (format[1] == 'l') - { - size = FAT_SIZE_LONGLONG; - format += 2; - } - else - { - size = FAT_SIZE_LONG; - format++; - } - } - else if (*format == 'L' || *format == 'q') - { - size = FAT_SIZE_LONGLONG; - format++; - } - else if (*format == 'V') - { - size = FAT_SIZE_V; - format++; - } - else if (*format == 'I') - { - if (format[1] == '6' && format[2] == '4') - { - size = FAT_SIZE_LONGLONG; - format += 3; - } - else if (format[1] == '3' && format[2] == '2') - { - size = 0; /* FAT_SIZE_INT */ - format += 3; - } - else - { - size = FAT_SIZE_PTR; - format++; - } - } - - switch (*format) - { - case '%': - type = FAT_NONE; - break; - case 'c': - type = FAT_CHAR; - break; - case 's': - type = FAT_STRING; - break; - case '_': - type = FAT_SCALAR_VECTOR; - break; - case 'D': - type = FAT_INTEGER | FAT_SIZE_V; - break; - case 'i': case 'd': - type = FAT_INTEGER | size; - break; - case 'U': case 'O': - type = FAT_INTEGER | FAT_UNSIGNED | FAT_SIZE_V; - break; - case 'u': case 'b': case 'o': case 'x': case 'X': - type = FAT_INTEGER | FAT_UNSIGNED | size; - break; - case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': - if (size == FAT_SIZE_SHORT || size == FAT_SIZE_LONG) - { - *invalid_reason = - xasprintf (_("In the directive number %u, the size specifier is incompatible with the conversion specifier '%c'."), directives, *format); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - type = FAT_DOUBLE | size; - break; - case 'p': - type = FAT_POINTER; - break; - case 'n': - type = FAT_COUNT_POINTER | size; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (type != FAT_NONE && !vectorize) - { - /* Numbered or unnumbered argument. */ - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = (number ? number : ++unnumbered_arg_count); - numbered[numbered_arg_count].type = type; - numbered_arg_count++; - } + /* A directive. */ + unsigned int number = 0; + bool vectorize = false; + format_arg_type_t type; + format_arg_type_t size; + + FDI_SET (format - 1, FMTDIR_START); + directives++; + + if (isnonzerodigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + number = m; + format = ++f; + } + } + + /* Parse flags. */ + while (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0') + format++; + + /* Parse vector. */ + if (*format == 'v') + { + format++; + vectorize = true; + } + else if (*format == '*') + { + const char *f = format; + + f++; + if (*f == 'v') + { + format = ++f; + vectorize = true; + + /* Unnumbered argument. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = ++unnumbered_arg_count; + numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; /* or FAT_STRING? */ + numbered_arg_count++; + } + else if (isnonzerodigit (*f)) + { + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + f++; + if (*f == 'v') + { + unsigned int vector_number = m; + + format = ++f; + vectorize = true; + + /* Numbered argument. */ + /* Note: As of perl-5.8.0, this is not correctly + implemented in perl's sv.c. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = vector_number; + numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; /* or FAT_STRING? */ + numbered_arg_count++; + } + } + } + } + + if (vectorize) + { + /* Numbered or unnumbered argument. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = (number ? number : ++unnumbered_arg_count); + numbered[numbered_arg_count].type = FAT_SCALAR_VECTOR; + numbered_arg_count++; + } + + /* Parse width. */ + if (*format == '*') + { + unsigned int width_number = 0; + + format++; + + if (isnonzerodigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + width_number = m; + format = ++f; + } + } + + /* Numbered or unnumbered argument. */ + /* Note: As of perl-5.8.0, this is not correctly + implemented in perl's sv.c. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = (width_number ? width_number : ++unnumbered_arg_count); + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + } + else if (isnonzerodigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + unsigned int precision_number = 0; + + format++; + + if (isnonzerodigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + precision_number = m; + format = ++f; + } + } + + /* Numbered or unnumbered argument. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = (precision_number ? precision_number : ++unnumbered_arg_count); + numbered[numbered_arg_count].type = FAT_INTEGER; + numbered_arg_count++; + } + else + { + while (isdigit (*format)) format++; + } + } + + /* Parse size. */ + size = 0; + if (*format == 'h') + { + size = FAT_SIZE_SHORT; + format++; + } + else if (*format == 'l') + { + if (format[1] == 'l') + { + size = FAT_SIZE_LONGLONG; + format += 2; + } + else + { + size = FAT_SIZE_LONG; + format++; + } + } + else if (*format == 'L' || *format == 'q') + { + size = FAT_SIZE_LONGLONG; + format++; + } + else if (*format == 'V') + { + size = FAT_SIZE_V; + format++; + } + else if (*format == 'I') + { + if (format[1] == '6' && format[2] == '4') + { + size = FAT_SIZE_LONGLONG; + format += 3; + } + else if (format[1] == '3' && format[2] == '2') + { + size = 0; /* FAT_SIZE_INT */ + format += 3; + } + else + { + size = FAT_SIZE_PTR; + format++; + } + } + + switch (*format) + { + case '%': + type = FAT_NONE; + break; + case 'c': + type = FAT_CHAR; + break; + case 's': + type = FAT_STRING; + break; + case '_': + type = FAT_SCALAR_VECTOR; + break; + case 'D': + type = FAT_INTEGER | FAT_SIZE_V; + break; + case 'i': case 'd': + type = FAT_INTEGER | size; + break; + case 'U': case 'O': + type = FAT_INTEGER | FAT_UNSIGNED | FAT_SIZE_V; + break; + case 'u': case 'b': case 'o': case 'x': case 'X': + type = FAT_INTEGER | FAT_UNSIGNED | size; + break; + case 'e': case 'E': case 'f': case 'F': case 'g': case 'G': + if (size == FAT_SIZE_SHORT || size == FAT_SIZE_LONG) + { + *invalid_reason = + xasprintf (_("In the directive number %u, the size specifier is incompatible with the conversion specifier '%c'."), directives, *format); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + type = FAT_DOUBLE | size; + break; + case 'p': + type = FAT_POINTER; + break; + case 'n': + type = FAT_COUNT_POINTER | size; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (type != FAT_NONE && !vectorize) + { + /* Numbered or unnumbered argument. */ + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = (number ? number : ++unnumbered_arg_count); + numbered[numbered_arg_count].type = type; + numbered_arg_count++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -482,44 +482,44 @@ bool err; qsort (numbered, numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < numbered_arg_count; i++) - if (j > 0 && numbered[i].number == numbered[j-1].number) - { - format_arg_type_t type1 = numbered[i].type; - format_arg_type_t type2 = numbered[j-1].type; - format_arg_type_t type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); - err = true; - } - - numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - numbered[j].number = numbered[i].number; - numbered[j].type = numbered[i].type; - } - j++; - } + if (j > 0 && numbered[i].number == numbered[j-1].number) + { + format_arg_type_t type1 = numbered[i].type; + format_arg_type_t type2 = numbered[j-1].type; + format_arg_type_t type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); + err = true; + } + + numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + numbered[j].number = numbered[i].number; + numbered[j].type = numbered[i].type; + } + j++; + } numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -555,8 +555,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -569,58 +569,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -664,61 +666,61 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); if (spec->numbered[i].type & FAT_UNSIGNED) - printf ("[unsigned]"); + printf ("[unsigned]"); switch (spec->numbered[i].type & FAT_SIZE_MASK) - { - case 0: - break; - case FAT_SIZE_SHORT: - printf ("[short]"); - break; - case FAT_SIZE_V: - printf ("[IV]"); - break; - case FAT_SIZE_PTR: - printf ("[PTR]"); - break; - case FAT_SIZE_LONG: - printf ("[long]"); - break; - case FAT_SIZE_LONGLONG: - printf ("[long long]"); - break; - default: - abort (); - } + { + case 0: + break; + case FAT_SIZE_SHORT: + printf ("[short]"); + break; + case FAT_SIZE_V: + printf ("[IV]"); + break; + case FAT_SIZE_PTR: + printf ("[PTR]"); + break; + case FAT_SIZE_LONG: + printf ("[long]"); + break; + case FAT_SIZE_LONGLONG: + printf ("[long long]"); + break; + default: + abort (); + } switch (spec->numbered[i].type & ~(FAT_UNSIGNED | FAT_SIZE_MASK)) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_DOUBLE: - printf ("f"); - break; - case FAT_CHAR: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_SCALAR_VECTOR: - printf ("sv"); - break; - case FAT_POINTER: - printf ("p"); - break; - case FAT_COUNT_POINTER: - printf ("n"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_DOUBLE: + printf ("f"); + break; + case FAT_CHAR: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_SCALAR_VECTOR: + printf ("sv"); + break; + case FAT_POINTER: + printf ("p"); + break; + case FAT_COUNT_POINTER: + printf ("n"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -737,9 +739,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -747,7 +749,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-php.c gettext-0.18.1.1/gettext-tools/src/format-php.c --- gettext-0.17/gettext-tools/src/format-php.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-php.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* PHP format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -94,7 +94,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; unsigned int directives; @@ -113,132 +113,132 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - directives++; - - if (*format != '%') - { - /* A complex directive. */ - unsigned int number; - enum format_arg_type type; - - number = ++unnumbered_arg_count; - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_ARGNO_0 (directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - format = ++f; - --unnumbered_arg_count; - } - } - - /* Parse flags. */ - for (;;) - { - if (*format == '0' || *format == '-' || *format == ' ') - format++; - else if (*format == '\'') - { - format++; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - format++; - } - else - break; - } - - /* Parse width. */ - if (isdigit (*format)) - { - do - format++; - while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (isdigit (*format)) - { - do - format++; - while (isdigit (*format)); - } - else - --format; /* will jump to bad_format */ - } - - /* Parse size. */ - if (*format == 'l') - format++; - - switch (*format) - { - case 'b': case 'd': case 'u': case 'o': case 'x': case 'X': - type = FAT_INTEGER; - break; - case 'e': case 'f': - type = FAT_FLOAT; - break; - case 'c': - type = FAT_CHARACTER; - break; - case 's': - type = FAT_STRING; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (allocated == numbered_arg_count) - { - allocated = 2 * allocated + 1; - numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); - } - numbered[numbered_arg_count].number = number; - numbered[numbered_arg_count].type = type; - numbered_arg_count++; - } + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + directives++; + + if (*format != '%') + { + /* A complex directive. */ + unsigned int number; + enum format_arg_type type; + + number = ++unnumbered_arg_count; + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + --unnumbered_arg_count; + } + } + + /* Parse flags. */ + for (;;) + { + if (*format == '0' || *format == '-' || *format == ' ') + format++; + else if (*format == '\'') + { + format++; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + format++; + } + else + break; + } + + /* Parse width. */ + if (isdigit (*format)) + { + do + format++; + while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (isdigit (*format)) + { + do + format++; + while (isdigit (*format)); + } + else + --format; /* will jump to bad_format */ + } + + /* Parse size. */ + if (*format == 'l') + format++; + + switch (*format) + { + case 'b': case 'd': case 'u': case 'o': case 'x': case 'X': + type = FAT_INTEGER; + break; + case 'e': case 'f': + type = FAT_FLOAT; + break; + case 'c': + type = FAT_CHARACTER; + break; + case 's': + type = FAT_STRING; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (allocated == numbered_arg_count) + { + allocated = 2 * allocated + 1; + numbered = (struct numbered_arg *) xrealloc (numbered, allocated * sizeof (struct numbered_arg)); + } + numbered[numbered_arg_count].number = number; + numbered[numbered_arg_count].type = type; + numbered_arg_count++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -248,44 +248,44 @@ bool err; qsort (numbered, numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < numbered_arg_count; i++) - if (j > 0 && numbered[i].number == numbered[j-1].number) - { - enum format_arg_type type1 = numbered[i].type; - enum format_arg_type type2 = numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = type1; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); - err = true; - } - - numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - numbered[j].number = numbered[i].number; - numbered[j].type = numbered[i].type; - } - j++; - } + if (j > 0 && numbered[i].number == numbered[j-1].number) + { + enum format_arg_type type1 = numbered[i].type; + enum format_arg_type type2 = numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = type1; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (numbered[i].number); + err = true; + } + + numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + numbered[j].number = numbered[i].number; + numbered[j].type = numbered[i].type; + } + j++; + } numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -321,8 +321,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -335,58 +335,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -430,28 +432,28 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_INTEGER: - printf ("i"); - break; - case FAT_FLOAT: - printf ("f"); - break; - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - default: - abort (); - } + { + case FAT_INTEGER: + printf ("i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -470,9 +472,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -480,7 +482,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-python.c gettext-0.18.1.1/gettext-tools/src/format-python.c --- gettext-0.17/gettext-tools/src/format-python.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-python.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Python format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -55,12 +55,15 @@ - is finished by a specifier - '%', that needs no argument, - 'c', that needs a character argument, - - 's', 'r', that need a string argument, + - 's', 'r', that need a string argument (or, when a precision of 0 is + given, an argument of any type), - 'i', 'd', 'u', 'o', 'x', 'X', that need an integer argument, - 'e', 'E', 'f', 'g', 'G', that need a floating-point argument. Use of '(ident)' and use of unnamed argument specifications are exclusive, because the first requires a mapping as argument, while the second requires - a tuple as argument. + a tuple as argument. When unnamed arguments are used, the number of + arguments in the format string and the number of elements in the argument + tuple (to the right of the '%' operator) must be the same. */ enum format_arg_type @@ -105,7 +108,7 @@ named_arg_compare (const void *p1, const void *p2) { return strcmp (((const struct named_arg *) p1)->name, - ((const struct named_arg *) p2)->name); + ((const struct named_arg *) p2)->name); } #define INVALID_MIXES_NAMED_UNNAMED() \ @@ -113,7 +116,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -129,187 +132,195 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - char *name = NULL; - enum format_arg_type type; - - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (*format == '(') - { - unsigned int depth; - const char *name_start; - const char *name_end; - size_t n; - - name_start = ++format; - depth = 0; - for (; *format != '\0'; format++) - { - if (*format == '(') - depth++; - else if (*format == ')') - { - if (depth == 0) - break; - else - depth--; - } - } - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - name_end = format++; - - n = name_end - name_start; - name = XNMALLOC (n + 1, char); - memcpy (name, name_start, n); - name[n] = '\0'; - } - - while (*format == '-' || *format == '+' || *format == ' ' - || *format == '#' || *format == '0') - format++; - - if (*format == '*') - { - format++; - - /* Named and unnamed specifications are exclusive. */ - if (spec.named_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnamed_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); - } - spec.unnamed[spec.unnamed_arg_count].type = FAT_INTEGER; - spec.unnamed_arg_count++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - if (*format == '.') - { - format++; - - if (*format == '*') - { - format++; - - /* Named and unnamed specifications are exclusive. */ - if (spec.named_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnamed_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); - } - spec.unnamed[spec.unnamed_arg_count].type = FAT_INTEGER; - spec.unnamed_arg_count++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - if (*format == 'h' || *format == 'l' || *format == 'L') - format++; - - switch (*format) - { - case '%': - type = FAT_ANY; - break; - case 'c': - type = FAT_CHARACTER; - break; - case 's': case 'r': - type = FAT_STRING; - break; - case 'i': case 'd': case 'u': case 'o': case 'x': case 'X': - type = FAT_INTEGER; - break; - case 'e': case 'E': case 'f': case 'g': case 'G': - type = FAT_FLOAT; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (name != NULL) - { - /* Named argument. */ - - /* Named and unnamed specifications are exclusive. */ - if (spec.unnamed_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.named_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); - } - spec.named[spec.named_arg_count].name = name; - spec.named[spec.named_arg_count].type = type; - spec.named_arg_count++; - } - else if (*format != '%') - { - /* Unnamed argument. */ - - /* Named and unnamed specifications are exclusive. */ - if (spec.named_arg_count > 0) - { - *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - - if (spec.allocated == spec.unnamed_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); - } - spec.unnamed[spec.unnamed_arg_count].type = type; - spec.unnamed_arg_count++; - } + /* A directive. */ + char *name = NULL; + bool zero_precision = false; + enum format_arg_type type; + + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format == '(') + { + unsigned int depth; + const char *name_start; + const char *name_end; + size_t n; + + name_start = ++format; + depth = 0; + for (; *format != '\0'; format++) + { + if (*format == '(') + depth++; + else if (*format == ')') + { + if (depth == 0) + break; + else + depth--; + } + } + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + name_end = format++; + + n = name_end - name_start; + name = XNMALLOC (n + 1, char); + memcpy (name, name_start, n); + name[n] = '\0'; + } + + while (*format == '-' || *format == '+' || *format == ' ' + || *format == '#' || *format == '0') + format++; + + if (*format == '*') + { + format++; + + /* Named and unnamed specifications are exclusive. */ + if (spec.named_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnamed_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); + } + spec.unnamed[spec.unnamed_arg_count].type = FAT_INTEGER; + spec.unnamed_arg_count++; + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + if (*format == '.') + { + format++; + + if (*format == '*') + { + format++; + + /* Named and unnamed specifications are exclusive. */ + if (spec.named_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnamed_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); + } + spec.unnamed[spec.unnamed_arg_count].type = FAT_INTEGER; + spec.unnamed_arg_count++; + } + else if (isdigit (*format)) + { + zero_precision = true; + do + { + if (*format != '0') + zero_precision = false; + format++; + } + while (isdigit (*format)); + } + } + + if (*format == 'h' || *format == 'l' || *format == 'L') + format++; + + switch (*format) + { + case '%': + type = FAT_NONE; + break; + case 'c': + type = FAT_CHARACTER; + break; + case 's': case 'r': + type = (zero_precision ? FAT_ANY : FAT_STRING); + break; + case 'i': case 'd': case 'u': case 'o': case 'x': case 'X': + type = FAT_INTEGER; + break; + case 'e': case 'E': case 'f': case 'g': case 'G': + type = FAT_FLOAT; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (name != NULL) + { + /* Named argument. */ + + /* Named and unnamed specifications are exclusive. */ + if (spec.unnamed_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.named_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); + } + spec.named[spec.named_arg_count].name = name; + spec.named[spec.named_arg_count].type = type; + spec.named_arg_count++; + } + else if (*format != '%') + { + /* Unnamed argument. */ + + /* Named and unnamed specifications are exclusive. */ + if (spec.named_arg_count > 0) + { + *invalid_reason = INVALID_MIXES_NAMED_UNNAMED (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + + if (spec.allocated == spec.unnamed_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.unnamed = (struct unnamed_arg *) xrealloc (spec.unnamed, spec.allocated * sizeof (struct unnamed_arg)); + } + spec.unnamed[spec.unnamed_arg_count].type = type; + spec.unnamed_arg_count++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the named argument array, and eliminate duplicates. */ @@ -319,47 +330,47 @@ bool err; qsort (spec.named, spec.named_arg_count, sizeof (struct named_arg), - named_arg_compare); + named_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.named_arg_count; i++) - if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) - { - enum format_arg_type type1 = spec.named[i].type; - enum format_arg_type type2 = spec.named[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2 || type2 == FAT_ANY) - type_both = type1; - else if (type1 == FAT_ANY) - type_both = type2; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - xasprintf (_("The string refers to the argument named '%s' in incompatible ways."), spec.named[i].name); - err = true; - } - - spec.named[j-1].type = type_both; - free (spec.named[i].name); - } - else - { - if (j < i) - { - spec.named[j].name = spec.named[i].name; - spec.named[j].type = spec.named[i].type; - } - j++; - } + if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) + { + enum format_arg_type type1 = spec.named[i].type; + enum format_arg_type type2 = spec.named[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2 || type2 == FAT_ANY) + type_both = type1; + else if (type1 == FAT_ANY) + type_both = type2; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + xasprintf (_("The string refers to the argument named '%s' in incompatible ways."), spec.named[i].name); + err = true; + } + + spec.named[j-1].type = type_both; + free (spec.named[i].name); + } + else + { + if (j < i) + { + spec.named[j].name = spec.named[i].name; + spec.named[j].type = spec.named[i].type; + } + j++; + } spec.named_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -371,7 +382,7 @@ { unsigned int i; for (i = 0; i < spec.named_arg_count; i++) - free (spec.named[i].name); + free (spec.named[i].name); free (spec.named); } if (spec.unnamed != NULL) @@ -388,7 +399,7 @@ { unsigned int i; for (i = 0; i < spec->named_arg_count; i++) - free (spec->named[i].name); + free (spec->named[i].name); free (spec->named); } if (spec->unnamed != NULL) @@ -406,8 +417,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -416,102 +427,108 @@ if (spec1->named_arg_count > 0 && spec2->unnamed_arg_count > 0) { if (error_logger) - error_logger (_("format specifications in 'msgid' expect a mapping, those in '%s' expect a tuple"), - pretty_msgstr); + error_logger (_("format specifications in '%s' expect a mapping, those in '%s' expect a tuple"), + pretty_msgid, pretty_msgstr); err = true; } else if (spec1->unnamed_arg_count > 0 && spec2->named_arg_count > 0) { if (error_logger) - error_logger (_("format specifications in 'msgid' expect a tuple, those in '%s' expect a mapping"), - pretty_msgstr); + error_logger (_("format specifications in '%s' expect a tuple, those in '%s' expect a mapping"), + pretty_msgid, pretty_msgstr); err = true; } else { if (spec1->named_arg_count + spec2->named_arg_count > 0) - { - unsigned int i, j; - unsigned int n1 = spec1->named_arg_count; - unsigned int n2 = spec2->named_arg_count; - - /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ - for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - strcmp (spec1->named[i].name, spec2->named[j].name)); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in 'msgid'"), - spec2->named[j].name, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), - spec1->named[i].name, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } - /* Check the argument types are the same. */ - if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (strcmp (spec1->named[i].name, spec2->named[j].name) == 0) - { - if (spec1->named[i].type != spec2->named[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument '%s' are not the same"), - pretty_msgstr, spec2->named[j].name); - err = true; - break; - } - j++, i++; - } - else - i++; - } - } + { + unsigned int i, j; + unsigned int n1 = spec1->named_arg_count; + unsigned int n2 = spec2->named_arg_count; + + /* Check the argument names are the same. + Both arrays are sorted. We search for the first difference. */ + for (i = 0, j = 0; i < n1 || j < n2; ) + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + strcmp (spec1->named[i].name, spec2->named[j].name)); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in '%s'"), + spec2->named[j].name, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), + spec1->named[i].name, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } + /* Check the argument types are the same. */ + if (!err) + for (i = 0, j = 0; j < n2; ) + { + if (strcmp (spec1->named[i].name, spec2->named[j].name) == 0) + { + if (!(spec1->named[i].type == spec2->named[j].type + || (!equality + && (spec1->named[i].type == FAT_ANY + || spec2->named[j].type == FAT_ANY)))) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument '%s' are not the same"), + pretty_msgid, pretty_msgstr, + spec2->named[j].name); + err = true; + break; + } + j++, i++; + } + else + i++; + } + } if (spec1->unnamed_arg_count + spec2->unnamed_arg_count > 0) - { - unsigned int i; + { + unsigned int i; - /* Check the argument types are the same. */ - if (equality - ? spec1->unnamed_arg_count != spec2->unnamed_arg_count - : spec1->unnamed_arg_count < spec2->unnamed_arg_count) - { - if (error_logger) - error_logger (_("number of format specifications in 'msgid' and '%s' does not match"), - pretty_msgstr); - err = true; - } - else - for (i = 0; i < spec2->unnamed_arg_count; i++) - if (spec1->unnamed[i].type != spec2->unnamed[i].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, i + 1); - err = true; - } - } + /* Check the argument types are the same. */ + if (spec1->unnamed_arg_count != spec2->unnamed_arg_count) + { + if (error_logger) + error_logger (_("number of format specifications in '%s' and '%s' does not match"), + pretty_msgid, pretty_msgstr); + err = true; + } + else + for (i = 0; i < spec2->unnamed_arg_count; i++) + if (!(spec1->unnamed[i].type == spec2->unnamed[i].type + || (!equality + && (spec1->unnamed[i].type == FAT_ANY + || spec2->unnamed[i].type == FAT_ANY)))) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, i + 1); + err = true; + } + } } return err; @@ -573,65 +590,65 @@ if (spec->named_arg_count > 0) { if (spec->unnamed_arg_count > 0) - abort (); + abort (); printf ("{"); for (i = 0; i < spec->named_arg_count; i++) - { - if (i > 0) - printf (", "); - printf ("'%s':", spec->named[i].name); - switch (spec->named[i].type) - { - case FAT_ANY: - printf ("*"); - break; - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_FLOAT: - printf ("f"); - break; - default: - abort (); - } - } + { + if (i > 0) + printf (", "); + printf ("'%s':", spec->named[i].name); + switch (spec->named[i].type) + { + case FAT_ANY: + printf ("*"); + break; + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + default: + abort (); + } + } printf ("}"); } else { printf ("("); for (i = 0; i < spec->unnamed_arg_count; i++) - { - if (i > 0) - printf (" "); - switch (spec->unnamed[i].type) - { - case FAT_ANY: - printf ("*"); - break; - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_FLOAT: - printf ("f"); - break; - default: - abort (); - } - } + { + if (i > 0) + printf (" "); + switch (spec->unnamed[i].type) + { + case FAT_ANY: + printf ("*"); + break; + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_FLOAT: + printf ("f"); + break; + default: + abort (); + } + } printf (")"); } } @@ -649,9 +666,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -659,7 +676,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-qt.c gettext-0.18.1.1/gettext-tools/src/format-qt.c --- gettext-0.17/gettext-tools/src/format-qt.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-qt.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Qt format strings. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -66,7 +66,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -79,40 +79,40 @@ for (; *format != '\0';) if (*format++ == '%') { - const char *dir_start = format - 1; - bool locale_flag = false; + const char *dir_start = format - 1; + bool locale_flag = false; - if (*format == 'L') - { - locale_flag = true; - format++; - } - if (*format >= '0' && *format <= '9') - { - /* A directive. */ - unsigned int number; - - FDI_SET (dir_start, FMTDIR_START); - spec.directives++; - if (locale_flag) - spec.simple = false; - - number = *format - '0'; - if (format[1] >= '0' && format[1] <= '9') - { - number = 10 * number + (format[1] - '0'); - spec.simple = false; - format++; - } - - while (spec.arg_count <= number) - spec.args_used[spec.arg_count++] = false; - spec.args_used[number] = true; + if (*format == 'L') + { + locale_flag = true; + format++; + } + if (*format >= '0' && *format <= '9') + { + /* A directive. */ + unsigned int number; + + FDI_SET (dir_start, FMTDIR_START); + spec.directives++; + if (locale_flag) + spec.simple = false; + + number = *format - '0'; + if (format[1] >= '0' && format[1] <= '9') + { + number = 10 * number + (format[1] - '0'); + spec.simple = false; + format++; + } + + while (spec.arg_count <= number) + spec.args_used[spec.arg_count++] = false; + spec.args_used[number] = true; - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; - } + format++; + } } result = XMALLOC (struct spec); @@ -138,8 +138,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -149,29 +149,33 @@ if (spec1->simple && !spec2->simple) { if (error_logger) - error_logger (_("'msgid' is a simple format string, but '%s' is not: it contains an 'L' flag or a double-digit argument number"), - pretty_msgstr); + error_logger (_("'%s' is a simple format string, but '%s' is not: it contains an 'L' flag or a double-digit argument number"), + pretty_msgid, pretty_msgstr); err = true; } if (!err) for (i = 0; i < spec1->arg_count || i < spec2->arg_count; i++) { - bool arg_used1 = (i < spec1->arg_count && spec1->args_used[i]); - bool arg_used2 = (i < spec2->arg_count && spec2->args_used[i]); + bool arg_used1 = (i < spec1->arg_count && spec1->args_used[i]); + bool arg_used2 = (i < spec2->arg_count && spec2->args_used[i]); - /* The translator cannot omit a %n from the msgstr because that would - yield a "Argument missing" warning at runtime. */ - if (arg_used1 != arg_used2) - { - if (error_logger) - error_logger (arg_used1 - ? _("a format specification for argument %u doesn't exist in '%s'") - : _("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - i, pretty_msgstr); - err = true; - break; - } + /* The translator cannot omit a %n from the msgstr because that would + yield a "Argument missing" warning at runtime. */ + if (arg_used1 != arg_used2) + { + if (error_logger) + { + if (arg_used1) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + i, pretty_msgstr); + else + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + i, pretty_msgstr, pretty_msgid); + } + err = true; + break; + } } return err; @@ -211,11 +215,11 @@ for (i = 0; i < spec->arg_count; i++) { if (i > 0) - printf (" "); + printf (" "); if (spec->args_used[i]) - printf ("*"); + printf ("*"); else - printf ("_"); + printf ("_"); } printf (")"); } @@ -233,9 +237,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -243,7 +247,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-qt-plural.c gettext-0.18.1.1/gettext-tools/src/format-qt-plural.c --- gettext-0.17/gettext-tools/src/format-qt-plural.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-qt-plural.c 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,194 @@ +/* Qt plural format strings. + Copyright (C) 2003-2004, 2006-2007, 2009 Free Software Foundation, Inc. + Written by Bruno Haible , 2009. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include + +#include "format.h" +#include "xalloc.h" +#include "gettext.h" + +#define _(str) gettext (str) + +/* Qt plural format strings are processed by QObject::tr and are documented in + qt-x11-opensource-src-4.3.1/doc/html/qobject.html#tr. + A directive + - starts with '%', + - is optionally followed by 'L' (a no-op), + - is followed by 'n'. + Every directive is replaced by the numeric argument N passed to QObject::tr. + */ + +struct spec +{ + /* Number of format directives. */ + unsigned int directives; +}; + + +static void * +format_parse (const char *format, bool translated, char *fdi, + char **invalid_reason) +{ + const char *const format_start = format; + struct spec spec; + struct spec *result; + + spec.directives = 0; + + for (; *format != '\0';) + if (*format++ == '%') + { + const char *dir_start = format - 1; + + if (*format == 'L') + format++; + if (*format == 'n') + { + /* A directive. */ + FDI_SET (dir_start, FMTDIR_START); + spec.directives++; + FDI_SET (format, FMTDIR_END); + + format++; + } + } + + result = XMALLOC (struct spec); + *result = spec; + return result; +} + +static void +format_free (void *descr) +{ + struct spec *spec = (struct spec *) descr; + + free (spec); +} + +static int +format_get_number_of_directives (void *descr) +{ + struct spec *spec = (struct spec *) descr; + + return spec->directives; +} + +static bool +format_check (void *msgid_descr, void *msgstr_descr, bool equality, + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) +{ + struct spec *spec1 = (struct spec *) msgid_descr; + struct spec *spec2 = (struct spec *) msgstr_descr; + bool err = false; + + /* Check the argument is used. */ + if ((spec1->directives == 0 && spec2->directives > 0) + || (equality && spec1->directives > 0 && spec2->directives == 0)) + { + if (error_logger) + error_logger (_("number of format specifications in '%s' and '%s' does not match"), + pretty_msgid, pretty_msgstr); + err = true; + } + + return err; +} + + +struct formatstring_parser formatstring_qt_plural = +{ + format_parse, + format_free, + format_get_number_of_directives, + NULL, + format_check +}; + + +#ifdef TEST + +/* Test program: Print the argument list specification returned by + format_parse for strings read from standard input. */ + +#include + +static void +format_print (void *descr) +{ + struct spec *spec = (struct spec *) descr; + + if (spec == NULL) + { + printf ("INVALID"); + return; + } + + printf ("("); + if (spec->directives > 0) + printf ("*"); + else + printf ("_"); + printf (")"); +} + +int +main () +{ + for (;;) + { + char *line = NULL; + size_t line_size = 0; + int line_len; + char *invalid_reason; + void *descr; + + line_len = getline (&line, &line_size, stdin); + if (line_len < 0) + break; + if (line_len > 0 && line[line_len - 1] == '\n') + line[--line_len] = '\0'; + + invalid_reason = NULL; + descr = format_parse (line, false, NULL, &invalid_reason); + + format_print (descr); + printf ("\n"); + if (descr == NULL) + printf ("%s\n", invalid_reason); + + free (invalid_reason); + free (line); + } + + return 0; +} + +/* + * For Emacs M-x compile + * Local Variables: + * compile-command: "/bin/sh ../libtool --tag=CC --mode=link gcc -o a.out -static -O -g -Wall -I.. -I../gnulib-lib -I../intl -DHAVE_CONFIG_H -DTEST format-qt-plural.c ../gnulib-lib/libgettextlib.la" + * End: + */ + +#endif /* TEST */ diff -Nru gettext-0.17/gettext-tools/src/format-scheme.c gettext-0.18.1.1/gettext-tools/src/format-scheme.c --- gettext-0.17/gettext-tools/src/format-scheme.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-scheme.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Scheme format strings. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -51,42 +51,42 @@ enum format_cdr_type { - FCT_REQUIRED, /* The format argument list cannot end before this argument. */ - FCT_OPTIONAL /* The format argument list may end before this argument. */ + FCT_REQUIRED, /* The format argument list cannot end before this argument. */ + FCT_OPTIONAL /* The format argument list may end before this argument. */ }; enum format_arg_type { - FAT_OBJECT, /* Any object, type T. */ - FAT_CHARACTER_INTEGER_NULL, /* Type (OR CHARACTER INTEGER NULL). */ - FAT_CHARACTER_NULL, /* Type (OR CHARACTER NULL). */ - FAT_CHARACTER, /* Type CHARACTER. */ - FAT_INTEGER_NULL, /* Type (OR INTEGER NULL). */ - FAT_INTEGER, /* Meant for objects of type INTEGER. */ - FAT_REAL, /* Meant for objects of type REAL. */ - FAT_COMPLEX, /* Meant for objects of type COMPLEX. */ - FAT_LIST, /* Meant for proper lists. */ - FAT_FORMATSTRING /* Format strings. */ + FAT_OBJECT, /* Any object, type T. */ + FAT_CHARACTER_INTEGER_NULL, /* Type (OR CHARACTER INTEGER NULL). */ + FAT_CHARACTER_NULL, /* Type (OR CHARACTER NULL). */ + FAT_CHARACTER, /* Type CHARACTER. */ + FAT_INTEGER_NULL, /* Type (OR INTEGER NULL). */ + FAT_INTEGER, /* Meant for objects of type INTEGER. */ + FAT_REAL, /* Meant for objects of type REAL. */ + FAT_COMPLEX, /* Meant for objects of type COMPLEX. */ + FAT_LIST, /* Meant for proper lists. */ + FAT_FORMATSTRING /* Format strings. */ }; struct format_arg { unsigned int repcount; /* Number of consecutive arguments this constraint - applies to. Normally 1, but unconstrained - arguments are often repeated. */ + applies to. Normally 1, but unconstrained + arguments are often repeated. */ enum format_cdr_type presence; /* Can the argument list end right before - this argument? */ - enum format_arg_type type; /* Possible values for this argument. */ - struct format_arg_list *list; /* For FAT_LIST: List elements. */ + this argument? */ + enum format_arg_type type; /* Possible values for this argument. */ + struct format_arg_list *list; /* For FAT_LIST: List elements. */ }; struct segment { - unsigned int count; /* Number of format_arg records used. */ + unsigned int count; /* Number of format_arg records used. */ unsigned int allocated; - struct format_arg *element; /* Argument constraints. */ + struct format_arg *element; /* Argument constraints. */ unsigned int length; /* Number of arguments represented by this segment. - This is the sum of all repcounts in the segment. */ + This is the sum of all repcounts in the segment. */ }; struct format_arg_list @@ -101,8 +101,8 @@ A finite sequence is represented entirely in the initial segment; the loop segment is empty. */ - struct segment initial; /* Initial arguments segment. */ - struct segment repeated; /* Endlessly repeated segment. */ + struct segment initial; /* Initial arguments segment. */ + struct segment repeated; /* Endlessly repeated segment. */ }; struct spec @@ -115,17 +115,17 @@ /* Parameter for a directive. */ enum param_type { - PT_NIL, /* param not present */ - PT_CHARACTER, /* character */ - PT_INTEGER, /* integer */ - PT_ARGCOUNT, /* number of remaining arguments */ - PT_V /* variable taken from argument list */ + PT_NIL, /* param not present */ + PT_CHARACTER, /* character */ + PT_INTEGER, /* integer */ + PT_ARGCOUNT, /* number of remaining arguments */ + PT_V /* variable taken from argument list */ }; struct param { enum param_type type; - int value; /* for PT_INTEGER: the value, for PT_V: the position */ + int value; /* for PT_INTEGER: the value, for PT_V: the position */ }; @@ -135,15 +135,15 @@ static void free_list (struct format_arg_list *list); static struct format_arg_list * copy_list (const struct format_arg_list *list); static bool equal_list (const struct format_arg_list *list1, - const struct format_arg_list *list2); + const struct format_arg_list *list2); static struct format_arg_list * make_intersected_list - (struct format_arg_list *list1, - struct format_arg_list *list2); + (struct format_arg_list *list1, + struct format_arg_list *list2); static struct format_arg_list * make_intersection_with_empty_list - (struct format_arg_list *list); + (struct format_arg_list *list); static struct format_arg_list * make_union_list - (struct format_arg_list *list1, - struct format_arg_list *list2); + (struct format_arg_list *list1, + struct format_arg_list *list2); /* ======================= Verify a format_arg_list ======================= */ @@ -221,7 +221,7 @@ /* Copy the data belonging to an argument list element. */ static inline void copy_element (struct format_arg *newelement, - const struct format_arg *oldelement) + const struct format_arg *oldelement) { newelement->repcount = oldelement->repcount; newelement->presence = oldelement->presence; @@ -250,13 +250,13 @@ else { newlist->initial.element = - XNMALLOC (newlist->initial.allocated, struct format_arg); + XNMALLOC (newlist->initial.allocated, struct format_arg); for (i = 0; i < list->initial.count; i++) - { - copy_element (&newlist->initial.element[i], - &list->initial.element[i]); - length += list->initial.element[i].repcount; - } + { + copy_element (&newlist->initial.element[i], + &list->initial.element[i]); + length += list->initial.element[i].repcount; + } } ASSERT (length == list->initial.length); newlist->initial.length = length; @@ -268,13 +268,13 @@ else { newlist->repeated.element = - XNMALLOC (newlist->repeated.allocated, struct format_arg); + XNMALLOC (newlist->repeated.allocated, struct format_arg); for (i = 0; i < list->repeated.count; i++) - { - copy_element (&newlist->repeated.element[i], - &list->repeated.element[i]); - length += list->repeated.element[i].repcount; - } + { + copy_element (&newlist->repeated.element[i], + &list->repeated.element[i]); + length += list->repeated.element[i].repcount; + } } ASSERT (length == list->repeated.length); newlist->repeated.length = length; @@ -293,15 +293,15 @@ equal_element (const struct format_arg * e1, const struct format_arg * e2) { return (e1->presence == e2->presence - && e1->type == e2->type - && (e1->type == FAT_LIST ? equal_list (e1->list, e2->list) : true)); + && e1->type == e2->type + && (e1->type == FAT_LIST ? equal_list (e1->list, e2->list) : true)); } /* Tests whether two normalized argument list constraints are equivalent. */ /* Memory effects: none. */ static bool equal_list (const struct format_arg_list *list1, - const struct format_arg_list *list2) + const struct format_arg_list *list2) { unsigned int n, i; @@ -317,7 +317,7 @@ const struct format_arg * e2 = &list2->initial.element[i]; if (!(e1->repcount == e2->repcount && equal_element (e1, e2))) - return false; + return false; } n = list1->repeated.count; @@ -329,7 +329,7 @@ const struct format_arg * e2 = &list2->repeated.element[i]; if (!(e1->repcount == e2->repcount && equal_element (e1, e2))) - return false; + return false; } return true; @@ -345,11 +345,11 @@ if (newcount > list->initial.allocated) { list->initial.allocated = - MAX (2 * list->initial.allocated + 1, newcount); + MAX (2 * list->initial.allocated + 1, newcount); list->initial.element = - (struct format_arg *) - xrealloc (list->initial.element, - list->initial.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->initial.element, + list->initial.allocated * sizeof (struct format_arg)); } } @@ -360,11 +360,11 @@ if (list->initial.count >= list->initial.allocated) { list->initial.allocated = - MAX (2 * list->initial.allocated + 1, list->initial.count + 1); + MAX (2 * list->initial.allocated + 1, list->initial.count + 1); list->initial.element = - (struct format_arg *) - xrealloc (list->initial.element, - list->initial.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->initial.element, + list->initial.allocated * sizeof (struct format_arg)); } } @@ -375,11 +375,11 @@ if (newcount > list->repeated.allocated) { list->repeated.allocated = - MAX (2 * list->repeated.allocated + 1, newcount); + MAX (2 * list->repeated.allocated + 1, newcount); list->repeated.element = - (struct format_arg *) - xrealloc (list->repeated.element, - list->repeated.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->repeated.element, + list->repeated.allocated * sizeof (struct format_arg)); } } @@ -390,11 +390,11 @@ if (list->repeated.count >= list->repeated.allocated) { list->repeated.allocated = - MAX (2 * list->repeated.allocated + 1, list->repeated.count + 1); + MAX (2 * list->repeated.allocated + 1, list->repeated.count + 1); list->repeated.element = - (struct format_arg *) - xrealloc (list->repeated.element, - list->repeated.allocated * sizeof (struct format_arg)); + (struct format_arg *) + xrealloc (list->repeated.element, + list->repeated.allocated * sizeof (struct format_arg)); } } @@ -415,36 +415,36 @@ n = list->initial.count; for (i = j = 0; i < n; i++) if (j > 0 - && equal_element (&list->initial.element[i], - &list->initial.element[j-1])) + && equal_element (&list->initial.element[i], + &list->initial.element[j-1])) { - list->initial.element[j-1].repcount += - list->initial.element[i].repcount; - free_element (&list->initial.element[i]); + list->initial.element[j-1].repcount += + list->initial.element[i].repcount; + free_element (&list->initial.element[i]); } else { - if (j < i) - list->initial.element[j] = list->initial.element[i]; - j++; + if (j < i) + list->initial.element[j] = list->initial.element[i]; + j++; } list->initial.count = j; n = list->repeated.count; for (i = j = 0; i < n; i++) if (j > 0 - && equal_element (&list->repeated.element[i], - &list->repeated.element[j-1])) + && equal_element (&list->repeated.element[i], + &list->repeated.element[j-1])) { - list->repeated.element[j-1].repcount += - list->repeated.element[i].repcount; - free_element (&list->repeated.element[i]); + list->repeated.element[j-1].repcount += + list->repeated.element[i].repcount; + free_element (&list->repeated.element[i]); } else { - if (j < i) - list->repeated.element[j] = list->repeated.element[i]; - j++; + if (j < i) + list->repeated.element[j] = list->repeated.element[i]; + j++; } list->repeated.count = j; @@ -457,104 +457,104 @@ n = list->repeated.count; repcount0_extra = 0; if (n > 1 - && equal_element (&list->repeated.element[0], - &list->repeated.element[n-1])) - { - repcount0_extra = list->repeated.element[n-1].repcount; - n--; - } + && equal_element (&list->repeated.element[0], + &list->repeated.element[n-1])) + { + repcount0_extra = list->repeated.element[n-1].repcount; + n--; + } /* Proceed as if the loop period were n, with - list->repeated.element[0].repcount incremented by repcount0_extra. */ + list->repeated.element[0].repcount incremented by repcount0_extra. */ for (m = 2; m <= n / 2; n++) - if ((n % m) == 0) - { - /* m is a divisor of n. Try to reduce the loop period to n. */ - bool ok = true; - - for (i = 0; i < n - m; i++) - if (!((list->repeated.element[i].repcount - + (i == 0 ? repcount0_extra : 0) - == list->repeated.element[i+m].repcount) - && equal_element (&list->repeated.element[i], - &list->repeated.element[i+m]))) - { - ok = false; - break; - } - if (ok) - { - for (i = m; i < n; i++) - free_element (&list->repeated.element[i]); - if (n < list->repeated.count) - list->repeated.element[m] = list->repeated.element[n]; - list->repeated.count = list->repeated.count - n + m; - list->repeated.length /= n / m; - break; - } - } + if ((n % m) == 0) + { + /* m is a divisor of n. Try to reduce the loop period to n. */ + bool ok = true; + + for (i = 0; i < n - m; i++) + if (!((list->repeated.element[i].repcount + + (i == 0 ? repcount0_extra : 0) + == list->repeated.element[i+m].repcount) + && equal_element (&list->repeated.element[i], + &list->repeated.element[i+m]))) + { + ok = false; + break; + } + if (ok) + { + for (i = m; i < n; i++) + free_element (&list->repeated.element[i]); + if (n < list->repeated.count) + list->repeated.element[m] = list->repeated.element[n]; + list->repeated.count = list->repeated.count - n + m; + list->repeated.length /= n / m; + break; + } + } /* Step 3: Roll as much as possible of the initial segment's tail - into the loop. */ + into the loop. */ if (list->repeated.count == 1) - { - if (list->initial.count > 0 - && equal_element (&list->initial.element[list->initial.count-1], - &list->repeated.element[0])) - { - /* Roll the last element of the initial segment into the loop. - Its repcount is irrelevant. The second-to-last element is - certainly different and doesn't need to be considered. */ - list->initial.length -= - list->initial.element[list->initial.count-1].repcount; - list->initial.count--; - } - } + { + if (list->initial.count > 0 + && equal_element (&list->initial.element[list->initial.count-1], + &list->repeated.element[0])) + { + /* Roll the last element of the initial segment into the loop. + Its repcount is irrelevant. The second-to-last element is + certainly different and doesn't need to be considered. */ + list->initial.length -= + list->initial.element[list->initial.count-1].repcount; + list->initial.count--; + } + } else - { - while (list->initial.count > 0 - && equal_element (&list->initial.element[list->initial.count-1], - &list->repeated.element[list->repeated.count-1])) - { - unsigned int moved_repcount = - MIN (list->initial.element[list->initial.count-1].repcount, - list->repeated.element[list->repeated.count-1].repcount); - - /* Add the element at the start of list->repeated. */ - if (equal_element (&list->repeated.element[0], - &list->repeated.element[list->repeated.count-1])) - list->repeated.element[0].repcount += moved_repcount; - else - { - unsigned int newcount = list->repeated.count + 1; - ensure_repeated_alloc (list, newcount); - for (i = newcount - 1; i > 0; i--) - list->repeated.element[i] = list->repeated.element[i-1]; - list->repeated.count = newcount; - copy_element (&list->repeated.element[0], - &list->repeated.element[list->repeated.count-1]); - list->repeated.element[0].repcount = moved_repcount; - } - - /* Remove the element from the end of list->repeated. */ - list->repeated.element[list->repeated.count-1].repcount -= - moved_repcount; - if (list->repeated.element[list->repeated.count-1].repcount == 0) - { - free_element (&list->repeated.element[list->repeated.count-1]); - list->repeated.count--; - } - - /* Remove the element from the end of list->initial. */ - list->initial.element[list->initial.count-1].repcount -= - moved_repcount; - if (list->initial.element[list->initial.count-1].repcount == 0) - { - free_element (&list->initial.element[list->initial.count-1]); - list->initial.count--; - } - list->initial.length -= moved_repcount; - } - } + { + while (list->initial.count > 0 + && equal_element (&list->initial.element[list->initial.count-1], + &list->repeated.element[list->repeated.count-1])) + { + unsigned int moved_repcount = + MIN (list->initial.element[list->initial.count-1].repcount, + list->repeated.element[list->repeated.count-1].repcount); + + /* Add the element at the start of list->repeated. */ + if (equal_element (&list->repeated.element[0], + &list->repeated.element[list->repeated.count-1])) + list->repeated.element[0].repcount += moved_repcount; + else + { + unsigned int newcount = list->repeated.count + 1; + ensure_repeated_alloc (list, newcount); + for (i = newcount - 1; i > 0; i--) + list->repeated.element[i] = list->repeated.element[i-1]; + list->repeated.count = newcount; + copy_element (&list->repeated.element[0], + &list->repeated.element[list->repeated.count-1]); + list->repeated.element[0].repcount = moved_repcount; + } + + /* Remove the element from the end of list->repeated. */ + list->repeated.element[list->repeated.count-1].repcount -= + moved_repcount; + if (list->repeated.element[list->repeated.count-1].repcount == 0) + { + free_element (&list->repeated.element[list->repeated.count-1]); + list->repeated.count--; + } + + /* Remove the element from the end of list->initial. */ + list->initial.element[list->initial.count-1].repcount -= + moved_repcount; + if (list->initial.element[list->initial.count-1].repcount == 0) + { + free_element (&list->initial.element[list->initial.count-1]); + list->initial.count--; + } + list->initial.length -= moved_repcount; + } + } } } @@ -664,8 +664,8 @@ ensure_repeated_alloc (list, newcount); i = list->repeated.count; for (k = 1; k < m; k++) - for (j = 0; j < list->repeated.count; j++, i++) - copy_element (&list->repeated.element[i], &list->repeated.element[j]); + for (j = 0; j < list->repeated.count; j++, i++) + copy_element (&list->repeated.element[i], &list->repeated.element[j]); list->repeated.count = newcount; list->repeated.length = list->repeated.length * m; } @@ -683,7 +683,7 @@ if (list->repeated.count == 1) { /* Instead of multiple copies of list->repeated.element[0], a single - copy with higher repcount is appended to list->initial. */ + copy with higher repcount is appended to list->initial. */ unsigned int i, newcount; newcount = list->initial.count + 1; @@ -703,76 +703,76 @@ unsigned int r = (m - list->initial.length) % n; /* Determine how many entries of list->repeated are needed for - length r. */ + length r. */ unsigned int s; unsigned int t; for (t = r, s = 0; - s < list->repeated.count && t >= list->repeated.element[s].repcount; - t -= list->repeated.element[s].repcount, s++) - ; + s < list->repeated.count && t >= list->repeated.element[s].repcount; + t -= list->repeated.element[s].repcount, s++) + ; /* s must be < list->repeated.count, otherwise r would have been >= n. */ ASSERT (s < list->repeated.count); /* So we need to add to list->initial: - q full copies of list->repeated, - plus the s first elements of list->repeated, - plus, if t > 0, a splitoff of list->repeated.element[s]. */ + q full copies of list->repeated, + plus the s first elements of list->repeated, + plus, if t > 0, a splitoff of list->repeated.element[s]. */ { - unsigned int i, j, k, newcount; + unsigned int i, j, k, newcount; - i = list->initial.count; - newcount = i + q * list->repeated.count + s + (t > 0 ? 1 : 0); - ensure_initial_alloc (list, newcount); - for (k = 0; k < q; k++) - for (j = 0; j < list->repeated.count; j++, i++) - copy_element (&list->initial.element[i], - &list->repeated.element[j]); - for (j = 0; j < s; j++, i++) - copy_element (&list->initial.element[i], &list->repeated.element[j]); - if (t > 0) - { - copy_element (&list->initial.element[i], - &list->repeated.element[j]); - list->initial.element[i].repcount = t; - i++; - } - ASSERT (i == newcount); - list->initial.count = newcount; - /* The new length of the initial segment is - = list->initial.length - + q * list->repeated.length - + list->repeated[0..s-1].repcount + t - = list->initial.length + q * n + r - = m. - */ - list->initial.length = m; + i = list->initial.count; + newcount = i + q * list->repeated.count + s + (t > 0 ? 1 : 0); + ensure_initial_alloc (list, newcount); + for (k = 0; k < q; k++) + for (j = 0; j < list->repeated.count; j++, i++) + copy_element (&list->initial.element[i], + &list->repeated.element[j]); + for (j = 0; j < s; j++, i++) + copy_element (&list->initial.element[i], &list->repeated.element[j]); + if (t > 0) + { + copy_element (&list->initial.element[i], + &list->repeated.element[j]); + list->initial.element[i].repcount = t; + i++; + } + ASSERT (i == newcount); + list->initial.count = newcount; + /* The new length of the initial segment is + = list->initial.length + + q * list->repeated.length + + list->repeated[0..s-1].repcount + t + = list->initial.length + q * n + r + = m. + */ + list->initial.length = m; } /* And rotate list->repeated. */ if (r > 0) - { - unsigned int i, j, oldcount, newcount; - struct format_arg *newelement; - - oldcount = list->repeated.count; - newcount = list->repeated.count + (t > 0 ? 1 : 0); - newelement = XNMALLOC (newcount, struct format_arg); - i = 0; - for (j = s; j < oldcount; j++, i++) - newelement[i] = list->repeated.element[j]; - for (j = 0; j < s; j++, i++) - newelement[i] = list->repeated.element[j]; - if (t > 0) - { - copy_element (&newelement[oldcount], &newelement[0]); - newelement[0].repcount -= t; - newelement[oldcount].repcount = t; - } - free (list->repeated.element); - list->repeated.element = newelement; - } + { + unsigned int i, j, oldcount, newcount; + struct format_arg *newelement; + + oldcount = list->repeated.count; + newcount = list->repeated.count + (t > 0 ? 1 : 0); + newelement = XNMALLOC (newcount, struct format_arg); + i = 0; + for (j = s; j < oldcount; j++, i++) + newelement[i] = list->repeated.element[j]; + for (j = 0; j < s; j++, i++) + newelement[i] = list->repeated.element[j]; + if (t > 0) + { + copy_element (&newelement[oldcount], &newelement[0]); + newelement[0].repcount -= t; + newelement[oldcount].repcount = t; + } + free (list->repeated.element); + list->repeated.element = newelement; + } } } @@ -860,44 +860,44 @@ if (list->initial.element[s].repcount > 1) { /* Split the entry into at most three entries: for indices < n, - for index n, and for indices > n. */ + for index n, and for indices > n. */ unsigned int oldrepcount = list->initial.element[s].repcount; unsigned int newcount = - list->initial.count + (t == 0 || t == oldrepcount - 1 ? 1 : 2); + list->initial.count + (t == 0 || t == oldrepcount - 1 ? 1 : 2); ensure_initial_alloc (list, newcount); if (t == 0 || t == oldrepcount - 1) - { - unsigned int i; + { + unsigned int i; - for (i = list->initial.count - 1; i > s; i--) - list->initial.element[i+1] = list->initial.element[i]; - copy_element (&list->initial.element[s+1], &list->initial.element[s]); - if (t == 0) - { - list->initial.element[s].repcount = 1; - list->initial.element[s+1].repcount = oldrepcount - 1; - } - else - { - list->initial.element[s].repcount = oldrepcount - 1; - list->initial.element[s+1].repcount = 1; - } - } + for (i = list->initial.count - 1; i > s; i--) + list->initial.element[i+1] = list->initial.element[i]; + copy_element (&list->initial.element[s+1], &list->initial.element[s]); + if (t == 0) + { + list->initial.element[s].repcount = 1; + list->initial.element[s+1].repcount = oldrepcount - 1; + } + else + { + list->initial.element[s].repcount = oldrepcount - 1; + list->initial.element[s+1].repcount = 1; + } + } else - { - unsigned int i; + { + unsigned int i; - for (i = list->initial.count - 1; i > s; i--) - list->initial.element[i+2] = list->initial.element[i]; - copy_element (&list->initial.element[s+2], &list->initial.element[s]); - copy_element (&list->initial.element[s+1], &list->initial.element[s]); - list->initial.element[s].repcount = t; - list->initial.element[s+1].repcount = 1; - list->initial.element[s+2].repcount = oldrepcount - 1 - t; - } + for (i = list->initial.count - 1; i > s; i--) + list->initial.element[i+2] = list->initial.element[i]; + copy_element (&list->initial.element[s+2], &list->initial.element[s]); + copy_element (&list->initial.element[s+1], &list->initial.element[s]); + list->initial.element[s].repcount = t; + list->initial.element[s+1].repcount = 1; + list->initial.element[s+2].repcount = oldrepcount - 1 - t; + } list->initial.count = newcount; if (t > 0) - s++; + s++; } /* Now the entry for index n has repcount 1. */ @@ -922,7 +922,7 @@ grow_initial_alloc (list); for (i = list->initial.count; i > 0; i--) - list->initial.element[i] = list->initial.element[i-1]; + list->initial.element[i] = list->initial.element[i-1]; list->initial.element[0].repcount = n; list->initial.element[0].presence = FCT_REQUIRED; list->initial.element[0].type = FAT_OBJECT; @@ -944,8 +944,8 @@ /* Memory effects: Freshly allocated element's sublist. */ static bool make_intersected_element (struct format_arg *re, - const struct format_arg * e1, - const struct format_arg * e2) + const struct format_arg * e1, + const struct format_arg * e2) { /* Intersect the cdr types. */ if (e1->presence == FCT_REQUIRED || e2->presence == FCT_REQUIRED) @@ -958,43 +958,43 @@ { re->type = e2->type; if (re->type == FAT_LIST) - re->list = copy_list (e2->list); + re->list = copy_list (e2->list); } else if (e2->type == FAT_OBJECT) { re->type = e1->type; if (re->type == FAT_LIST) - re->list = copy_list (e1->list); + re->list = copy_list (e1->list); } else if (e1->type == FAT_LIST - && (e2->type == FAT_CHARACTER_INTEGER_NULL - || e2->type == FAT_CHARACTER_NULL - || e2->type == FAT_INTEGER_NULL)) + && (e2->type == FAT_CHARACTER_INTEGER_NULL + || e2->type == FAT_CHARACTER_NULL + || e2->type == FAT_INTEGER_NULL)) { re->type = e1->type; re->list = make_intersection_with_empty_list (e1->list); if (re->list == NULL) - return false; + return false; } else if (e2->type == FAT_LIST - && (e1->type == FAT_CHARACTER_INTEGER_NULL - || e1->type == FAT_CHARACTER_NULL - || e1->type == FAT_INTEGER_NULL)) + && (e1->type == FAT_CHARACTER_INTEGER_NULL + || e1->type == FAT_CHARACTER_NULL + || e1->type == FAT_INTEGER_NULL)) { re->type = e2->type; re->list = make_intersection_with_empty_list (e2->list); if (re->list == NULL) - return false; + return false; } else if (e1->type == FAT_CHARACTER_INTEGER_NULL - && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER - || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER + || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) { re->type = e2->type; } else if (e2->type == FAT_CHARACTER_INTEGER_NULL - && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER - || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER + || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) { re->type = e1->type; } @@ -1023,12 +1023,12 @@ re->type = e1->type; } else if (e1->type == FAT_COMPLEX - && (e2->type == FAT_REAL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_REAL || e2->type == FAT_INTEGER)) { re->type = e2->type; } else if (e2->type == FAT_COMPLEX - && (e1->type == FAT_REAL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_REAL || e1->type == FAT_INTEGER)) { re->type = e1->type; } @@ -1036,12 +1036,12 @@ { re->type = e1->type; if (re->type == FAT_LIST) - { - re->list = make_intersected_list (copy_list (e1->list), - copy_list (e2->list)); - if (re->list == NULL) - return false; - } + { + re->list = make_intersected_list (copy_list (e1->list), + copy_list (e2->list)); + if (re->list == NULL) + return false; + } } else /* Each of FAT_CHARACTER, FAT_INTEGER, FAT_LIST, FAT_FORMATSTRING @@ -1065,7 +1065,7 @@ ensure_initial_alloc (list, newcount); i = list->initial.count; for (j = 0; j < list->repeated.count; j++, i++) - list->initial.element[i] = list->repeated.element[j]; + list->initial.element[i] = list->repeated.element[j]; list->initial.count = newcount; list->initial.length = list->initial.length + list->repeated.length; free (list->repeated.element); @@ -1091,26 +1091,26 @@ { unsigned int i = list->initial.count - 1; if (list->initial.element[i].presence == FCT_REQUIRED) - { - /* Throw away this element. */ - list->initial.length -= list->initial.element[i].repcount; - free_element (&list->initial.element[i]); - list->initial.count = i; - } + { + /* Throw away this element. */ + list->initial.length -= list->initial.element[i].repcount; + free_element (&list->initial.element[i]); + list->initial.count = i; + } else /* list->initial.element[i].presence == FCT_OPTIONAL */ - { - /* The list must end here. */ - list->initial.length--; - if (list->initial.element[i].repcount > 1) - list->initial.element[i].repcount--; - else - { - free_element (&list->initial.element[i]); - list->initial.count = i; - } - VERIFY_LIST (list); - return list; - } + { + /* The list must end here. */ + list->initial.length--; + if (list->initial.element[i].repcount > 1) + list->initial.element[i].repcount--; + else + { + free_element (&list->initial.element[i]); + list->initial.count = i; + } + VERIFY_LIST (list); + return list; + } } free_list (list); @@ -1124,7 +1124,7 @@ freshly allocated. */ static struct format_arg_list * make_intersected_list (struct format_arg_list *list1, - struct format_arg_list *list2) + struct format_arg_list *list2) { struct format_arg_list *result; @@ -1154,9 +1154,9 @@ unsigned int m = MAX (list1->initial.length, list2->initial.length); if (list1->repeated.length > 0) - rotate_loop (list1, m); + rotate_loop (list1, m); if (list2->repeated.length > 0) - rotate_loop (list2, m); + rotate_loop (list2, m); } if (list1->repeated.length > 0 && list2->repeated.length > 0) @@ -1187,78 +1187,78 @@ e2 = list2->initial.element; c2 = list2->initial.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Intersect the argument types. */ - if (!make_intersected_element (re, e1, e2)) - { - /* If re->presence == FCT_OPTIONAL, the result list ends here. */ - if (re->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; - } - - result->initial.count++; - result->initial.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Intersect the argument types. */ + if (!make_intersected_element (re, e1, e2)) + { + /* If re->presence == FCT_OPTIONAL, the result list ends here. */ + if (re->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; + } + + result->initial.count++; + result->initial.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } if (list1->repeated.count == 0 && list2->repeated.count == 0) { - /* Intersecting two finite lists. */ - if (c1 > 0) - { - /* list1 longer than list2. */ - if (e1->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - } - else if (c2 > 0) - { - /* list2 longer than list1. */ - if (e2->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - } - goto done; + /* Intersecting two finite lists. */ + if (c1 > 0) + { + /* list1 longer than list2. */ + if (e1->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + } + else if (c2 > 0) + { + /* list2 longer than list1. */ + if (e2->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + } + goto done; } else if (list1->repeated.count == 0) { - /* Intersecting a finite and an infinite list. */ - ASSERT (c1 == 0); - if ((c2 > 0 ? e2->presence : list2->repeated.element[0].presence) - == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; + /* Intersecting a finite and an infinite list. */ + ASSERT (c1 == 0); + if ((c2 > 0 ? e2->presence : list2->repeated.element[0].presence) + == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; } else if (list2->repeated.count == 0) { - /* Intersecting an infinite and a finite list. */ - ASSERT (c2 == 0); - if ((c1 > 0 ? e1->presence : list1->repeated.element[0].presence) - == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - goto done; + /* Intersecting an infinite and a finite list. */ + ASSERT (c2 == 0); + if ((c1 > 0 ? e1->presence : list1->repeated.element[0].presence) + == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + goto done; } /* Intersecting two infinite lists. */ ASSERT (c1 == 0 && c2 == 0); @@ -1275,41 +1275,41 @@ e2 = list2->repeated.element; c2 = list2->repeated.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->repeated. */ - grow_repeated_alloc (result); - re = &result->repeated.element[result->repeated.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Intersect the argument types. */ - if (!make_intersected_element (re, e1, e2)) - { - append_repeated_to_initial (result); - - /* If re->presence == FCT_OPTIONAL, the result list ends here. */ - if (re->presence == FCT_REQUIRED) - /* Contradiction. Backtrack. */ - result = backtrack_in_initial (result); - - goto done; - } - - result->repeated.count++; - result->repeated.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->repeated. */ + grow_repeated_alloc (result); + re = &result->repeated.element[result->repeated.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Intersect the argument types. */ + if (!make_intersected_element (re, e1, e2)) + { + append_repeated_to_initial (result); + + /* If re->presence == FCT_OPTIONAL, the result list ends here. */ + if (re->presence == FCT_REQUIRED) + /* Contradiction. Backtrack. */ + result = backtrack_in_initial (result); + + goto done; + } + + result->repeated.count++; + result->repeated.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } ASSERT (c1 == 0 && c2 == 0); } @@ -1339,7 +1339,7 @@ if (list->initial.count > 0 ? list->initial.element[0].presence == FCT_REQUIRED : list->repeated.count > 0 - && list->repeated.element[0].presence == FCT_REQUIRED) + && list->repeated.element[0].presence == FCT_REQUIRED) return NULL; else return make_empty_list (); @@ -1358,22 +1358,22 @@ if (list1 != NULL) { if (list2 != NULL) - return make_intersected_list (list1, list2); + return make_intersected_list (list1, list2); else - { - free_list (list1); - return NULL; - } + { + free_list (list1); + return NULL; + } } else { if (list2 != NULL) - { - free_list (list2); - return NULL; - } + { + free_list (list2); + return NULL; + } else - return NULL; + return NULL; } } #endif @@ -1385,8 +1385,8 @@ constraints. */ static void make_union_element (struct format_arg *re, - const struct format_arg * e1, - const struct format_arg * e2) + const struct format_arg * e1, + const struct format_arg * e2) { /* Union of the cdr types. */ if (e1->presence == FCT_REQUIRED && e2->presence == FCT_REQUIRED) @@ -1399,18 +1399,18 @@ { re->type = e1->type; if (re->type == FAT_LIST) - re->list = make_union_list (copy_list (e1->list), - copy_list (e2->list)); + re->list = make_union_list (copy_list (e1->list), + copy_list (e2->list)); } else if (e1->type == FAT_CHARACTER_INTEGER_NULL - && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER - || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_CHARACTER_NULL || e2->type == FAT_CHARACTER + || e2->type == FAT_INTEGER_NULL || e2->type == FAT_INTEGER)) { re->type = e1->type; } else if (e2->type == FAT_CHARACTER_INTEGER_NULL - && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER - || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_CHARACTER_NULL || e1->type == FAT_CHARACTER + || e1->type == FAT_INTEGER_NULL || e1->type == FAT_INTEGER)) { re->type = e2->type; } @@ -1439,48 +1439,48 @@ re->type = e2->type; } else if (e1->type == FAT_COMPLEX - && (e2->type == FAT_REAL || e2->type == FAT_INTEGER)) + && (e2->type == FAT_REAL || e2->type == FAT_INTEGER)) { re->type = e1->type; } else if (e2->type == FAT_COMPLEX - && (e1->type == FAT_REAL || e1->type == FAT_INTEGER)) + && (e1->type == FAT_REAL || e1->type == FAT_INTEGER)) { re->type = e2->type; } else if (e1->type == FAT_LIST && is_empty_list (e1->list)) { if (e2->type == FAT_CHARACTER_INTEGER_NULL - || e2->type == FAT_CHARACTER_NULL - || e2->type == FAT_INTEGER_NULL) - re->type = e2->type; + || e2->type == FAT_CHARACTER_NULL + || e2->type == FAT_INTEGER_NULL) + re->type = e2->type; else if (e2->type == FAT_CHARACTER) - re->type = FAT_CHARACTER_NULL; + re->type = FAT_CHARACTER_NULL; else if (e2->type == FAT_INTEGER) - re->type = FAT_INTEGER_NULL; + re->type = FAT_INTEGER_NULL; else - re->type = FAT_OBJECT; + re->type = FAT_OBJECT; } else if (e2->type == FAT_LIST && is_empty_list (e2->list)) { if (e1->type == FAT_CHARACTER_INTEGER_NULL - || e1->type == FAT_CHARACTER_NULL - || e1->type == FAT_INTEGER_NULL) - re->type = e1->type; + || e1->type == FAT_CHARACTER_NULL + || e1->type == FAT_INTEGER_NULL) + re->type = e1->type; else if (e1->type == FAT_CHARACTER) - re->type = FAT_CHARACTER_NULL; + re->type = FAT_CHARACTER_NULL; else if (e1->type == FAT_INTEGER) - re->type = FAT_INTEGER_NULL; + re->type = FAT_INTEGER_NULL; else - re->type = FAT_OBJECT; + re->type = FAT_OBJECT; } else if ((e1->type == FAT_CHARACTER || e1->type == FAT_CHARACTER_NULL) - && (e2->type == FAT_INTEGER || e2->type == FAT_INTEGER_NULL)) + && (e2->type == FAT_INTEGER || e2->type == FAT_INTEGER_NULL)) { re->type = FAT_CHARACTER_INTEGER_NULL; } else if ((e2->type == FAT_CHARACTER || e2->type == FAT_CHARACTER_NULL) - && (e1->type == FAT_INTEGER || e1->type == FAT_INTEGER_NULL)) + && (e1->type == FAT_INTEGER || e1->type == FAT_INTEGER_NULL)) { re->type = FAT_CHARACTER_INTEGER_NULL; } @@ -1507,23 +1507,23 @@ { /* Step 1: Ensure list1->repeated.length == list2->repeated.length. */ { - unsigned int n1 = list1->repeated.length; - unsigned int n2 = list2->repeated.length; - unsigned int g = gcd (n1, n2); - unsigned int m1 = n2 / g; /* = lcm(n1,n2) / n1 */ - unsigned int m2 = n1 / g; /* = lcm(n1,n2) / n2 */ - - unfold_loop (list1, m1); - unfold_loop (list2, m2); - /* Now list1->repeated.length = list2->repeated.length = lcm(n1,n2). */ + unsigned int n1 = list1->repeated.length; + unsigned int n2 = list2->repeated.length; + unsigned int g = gcd (n1, n2); + unsigned int m1 = n2 / g; /* = lcm(n1,n2) / n1 */ + unsigned int m2 = n1 / g; /* = lcm(n1,n2) / n2 */ + + unfold_loop (list1, m1); + unfold_loop (list2, m2); + /* Now list1->repeated.length = list2->repeated.length = lcm(n1,n2). */ } /* Step 2: Ensure that list1->initial.length == list2->initial.length. */ { - unsigned int m = MAX (list1->initial.length, list2->initial.length); + unsigned int m = MAX (list1->initial.length, list2->initial.length); - rotate_loop (list1, m); - rotate_loop (list2, m); + rotate_loop (list1, m); + rotate_loop (list2, m); } ASSERT (list1->initial.length == list2->initial.length); @@ -1532,24 +1532,24 @@ else if (list1->repeated.length > 0) { /* Ensure the initial segment of the result can be computed from the - initial segment of list1. */ + initial segment of list1. */ if (list2->initial.length >= list1->initial.length) - { - rotate_loop (list1, list2->initial.length); - if (list1->repeated.element[0].presence == FCT_REQUIRED) - rotate_loop (list1, list1->initial.length + 1); - } + { + rotate_loop (list1, list2->initial.length); + if (list1->repeated.element[0].presence == FCT_REQUIRED) + rotate_loop (list1, list1->initial.length + 1); + } } else if (list2->repeated.length > 0) { /* Ensure the initial segment of the result can be computed from the - initial segment of list2. */ + initial segment of list2. */ if (list1->initial.length >= list2->initial.length) - { - rotate_loop (list2, list1->initial.length); - if (list2->repeated.element[0].presence == FCT_REQUIRED) - rotate_loop (list2, list2->initial.length + 1); - } + { + rotate_loop (list2, list1->initial.length); + if (list2->repeated.element[0].presence == FCT_REQUIRED) + rotate_loop (list2, list2->initial.length + 1); + } } /* Step 3: Allocate the result. */ @@ -1574,112 +1574,112 @@ e2 = list2->initial.element; c2 = list2->initial.count; while (c1 > 0 && c2 > 0) { - struct format_arg *re; + struct format_arg *re; - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Union of the argument types. */ - make_union_element (re, e1, e2); - - result->initial.count++; - result->initial.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Union of the argument types. */ + make_union_element (re, e1, e2); + + result->initial.count++; + result->initial.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } } if (c1 > 0) { - /* list2 already terminated, but still more elements in list1->initial. - Copy them all, but turn the first presence to FCT_OPTIONAL. */ - ASSERT (list2->repeated.count == 0); - - if (e1->presence == FCT_REQUIRED) - { - struct format_arg *re; - - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - copy_element (re, e1); - re->presence = FCT_OPTIONAL; - re->repcount = 1; - result->initial.count++; - result->initial.length += 1; - e1->repcount -= 1; - if (e1->repcount == 0) - { - e1++; - c1--; - } - } - - /* Ensure room in result->initial. */ - ensure_initial_alloc (result, result->initial.count + c1); - while (c1 > 0) - { - struct format_arg *re; - - re = &result->initial.element[result->initial.count]; - copy_element (re, e1); - result->initial.count++; - result->initial.length += re->repcount; - e1++; - c1--; - } + /* list2 already terminated, but still more elements in list1->initial. + Copy them all, but turn the first presence to FCT_OPTIONAL. */ + ASSERT (list2->repeated.count == 0); + + if (e1->presence == FCT_REQUIRED) + { + struct format_arg *re; + + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + copy_element (re, e1); + re->presence = FCT_OPTIONAL; + re->repcount = 1; + result->initial.count++; + result->initial.length += 1; + e1->repcount -= 1; + if (e1->repcount == 0) + { + e1++; + c1--; + } + } + + /* Ensure room in result->initial. */ + ensure_initial_alloc (result, result->initial.count + c1); + while (c1 > 0) + { + struct format_arg *re; + + re = &result->initial.element[result->initial.count]; + copy_element (re, e1); + result->initial.count++; + result->initial.length += re->repcount; + e1++; + c1--; + } } else if (c2 > 0) { - /* list1 already terminated, but still more elements in list2->initial. - Copy them all, but turn the first presence to FCT_OPTIONAL. */ - ASSERT (list1->repeated.count == 0); - - if (e2->presence == FCT_REQUIRED) - { - struct format_arg *re; - - /* Ensure room in result->initial. */ - grow_initial_alloc (result); - re = &result->initial.element[result->initial.count]; - copy_element (re, e2); - re->presence = FCT_OPTIONAL; - re->repcount = 1; - result->initial.count++; - result->initial.length += 1; - e2->repcount -= 1; - if (e2->repcount == 0) - { - e2++; - c2--; - } - } - - /* Ensure room in result->initial. */ - ensure_initial_alloc (result, result->initial.count + c2); - while (c2 > 0) - { - struct format_arg *re; - - re = &result->initial.element[result->initial.count]; - copy_element (re, e2); - result->initial.count++; - result->initial.length += re->repcount; - e2++; - c2--; - } + /* list1 already terminated, but still more elements in list2->initial. + Copy them all, but turn the first presence to FCT_OPTIONAL. */ + ASSERT (list1->repeated.count == 0); + + if (e2->presence == FCT_REQUIRED) + { + struct format_arg *re; + + /* Ensure room in result->initial. */ + grow_initial_alloc (result); + re = &result->initial.element[result->initial.count]; + copy_element (re, e2); + re->presence = FCT_OPTIONAL; + re->repcount = 1; + result->initial.count++; + result->initial.length += 1; + e2->repcount -= 1; + if (e2->repcount == 0) + { + e2++; + c2--; + } + } + + /* Ensure room in result->initial. */ + ensure_initial_alloc (result, result->initial.count + c2); + while (c2 > 0) + { + struct format_arg *re; + + re = &result->initial.element[result->initial.count]; + copy_element (re, e2); + result->initial.count++; + result->initial.length += re->repcount; + e2++; + c2--; + } } ASSERT (c1 == 0 && c2 == 0); } @@ -1695,63 +1695,63 @@ e1 = list1->repeated.element; c1 = list1->repeated.count; e2 = list2->repeated.element; c2 = list2->repeated.count; while (c1 > 0 && c2 > 0) - { - struct format_arg *re; + { + struct format_arg *re; - /* Ensure room in result->repeated. */ - grow_repeated_alloc (result); - re = &result->repeated.element[result->repeated.count]; - re->repcount = MIN (e1->repcount, e2->repcount); - - /* Union of the argument types. */ - make_union_element (re, e1, e2); - - result->repeated.count++; - result->repeated.length += re->repcount; - - e1->repcount -= re->repcount; - if (e1->repcount == 0) - { - e1++; - c1--; - } - e2->repcount -= re->repcount; - if (e2->repcount == 0) - { - e2++; - c2--; - } - } + /* Ensure room in result->repeated. */ + grow_repeated_alloc (result); + re = &result->repeated.element[result->repeated.count]; + re->repcount = MIN (e1->repcount, e2->repcount); + + /* Union of the argument types. */ + make_union_element (re, e1, e2); + + result->repeated.count++; + result->repeated.length += re->repcount; + + e1->repcount -= re->repcount; + if (e1->repcount == 0) + { + e1++; + c1--; + } + e2->repcount -= re->repcount; + if (e2->repcount == 0) + { + e2++; + c2--; + } + } ASSERT (c1 == 0 && c2 == 0); } else if (list1->repeated.length > 0) { /* Turning FCT_REQUIRED into FCT_OPTIONAL was already handled in the - initial segment. Just copy the repeated segment of list1. */ + initial segment. Just copy the repeated segment of list1. */ unsigned int i; result->repeated.count = list1->repeated.count; result->repeated.allocated = result->repeated.count; result->repeated.element = - XNMALLOC (result->repeated.allocated, struct format_arg); + XNMALLOC (result->repeated.allocated, struct format_arg); for (i = 0; i < list1->repeated.count; i++) - copy_element (&result->repeated.element[i], - &list1->repeated.element[i]); + copy_element (&result->repeated.element[i], + &list1->repeated.element[i]); result->repeated.length = list1->repeated.length; } else if (list2->repeated.length > 0) { /* Turning FCT_REQUIRED into FCT_OPTIONAL was already handled in the - initial segment. Just copy the repeated segment of list2. */ + initial segment. Just copy the repeated segment of list2. */ unsigned int i; result->repeated.count = list2->repeated.count; result->repeated.allocated = result->repeated.count; result->repeated.element = - XNMALLOC (result->repeated.allocated, struct format_arg); + XNMALLOC (result->repeated.allocated, struct format_arg); for (i = 0; i < list2->repeated.count; i++) - copy_element (&result->repeated.element[i], - &list2->repeated.element[i]); + copy_element (&result->repeated.element[i], + &list2->repeated.element[i]); result->repeated.length = list2->repeated.length; } @@ -1777,7 +1777,7 @@ if (list->initial.count > 0 ? list->initial.element[0].presence == FCT_REQUIRED : list->repeated.count > 0 - && list->repeated.element[0].presence == FCT_REQUIRED) + && list->repeated.element[0].presence == FCT_REQUIRED) { initial_splitelement (list, 1); ASSERT (list->initial.count > 0); @@ -1786,7 +1786,7 @@ list->initial.element[0].presence = FCT_OPTIONAL; /* We might need to merge list->initial.element[0] and - list->initial.element[1]. */ + list->initial.element[1]. */ normalize_outermost_list (list); } @@ -1807,16 +1807,16 @@ if (list1 != NULL) { if (list2 != NULL) - return make_union_list (list1, list2); + return make_union_list (list1, list2); else - return list1; + return list1; } else { if (list2 != NULL) - return list2; + return list2; else - return NULL; + return NULL; } } @@ -1847,9 +1847,9 @@ if (s < list->initial.count) { if (list->initial.element[s].presence != FCT_REQUIRED) - return false; + return false; else - return true; + return true; } /* Walk the list->repeated segment. */ @@ -1868,9 +1868,9 @@ if (s < list->repeated.count) { if (list->repeated.element[s].presence != FCT_REQUIRED) - return false; + return false; else - return true; + return true; } /* The list->repeated segment consists only of FCT_REQUIRED. So, @@ -1896,7 +1896,7 @@ if (list->repeated.count == 0 && list->initial.length <= n) { /* list is already constrained to have at most length n. - Contradiction. */ + Contradiction. */ free_list (list); return NULL; } @@ -1970,7 +1970,7 @@ /* Memory effects: list is freed. The result is freshly allocated. */ static struct format_arg_list * add_type_constraint (struct format_arg_list *list, unsigned int n, - enum format_arg_type type) + enum format_arg_type type) { unsigned int s; struct format_arg newconstraint; @@ -1987,7 +1987,7 @@ newconstraint.presence = FCT_OPTIONAL; newconstraint.type = type; if (!make_intersected_element (&tmpelement, - &list->initial.element[s], &newconstraint)) + &list->initial.element[s], &newconstraint)) return add_end_constraint (list, n); free_element (&list->initial.element[s]); list->initial.element[s].type = tmpelement.type; @@ -2005,8 +2005,8 @@ /* Memory effects: list is freed. The result is freshly allocated. */ static struct format_arg_list * add_listtype_constraint (struct format_arg_list *list, unsigned int n, - enum format_arg_type type, - struct format_arg_list *sublist) + enum format_arg_type type, + struct format_arg_list *sublist) { unsigned int s; struct format_arg newconstraint; @@ -2024,7 +2024,7 @@ newconstraint.type = type; newconstraint.list = sublist; if (!make_intersected_element (&tmpelement, - &list->initial.element[s], &newconstraint)) + &list->initial.element[s], &newconstraint)) return add_end_constraint (list, n); free_element (&list->initial.element[s]); list->initial.element[s].type = tmpelement.type; @@ -2040,7 +2040,7 @@ static void add_req_type_constraint (struct format_arg_list **listp, - unsigned int position, enum format_arg_type type) + unsigned int position, enum format_arg_type type) { *listp = add_required_constraint (*listp, position); *listp = add_type_constraint (*listp, position, type); @@ -2049,8 +2049,8 @@ static void add_req_listtype_constraint (struct format_arg_list **listp, - unsigned int position, enum format_arg_type type, - struct format_arg_list *sublist) + unsigned int position, enum format_arg_type type, + struct format_arg_list *sublist) { *listp = add_required_constraint (*listp, position); *listp = add_listtype_constraint (*listp, position, type, sublist); @@ -2120,9 +2120,9 @@ /* L is a finite list. */ if (sublist->initial.length < period) - /* L and (*^period L) is a contradition, so we need to consider - only 1 and 0 iterations. */ - return make_union_with_empty_list (sublist); + /* L and (*^period L) is a contradition, so we need to consider + only 1 and 0 iterations. */ + return make_union_with_empty_list (sublist); srcseg = &sublist->initial; p = period; @@ -2138,14 +2138,14 @@ p = m * Lp; /* Concatenate the initial and the repeated segments into a single - segment. */ + segment. */ tmp.count = sublist->initial.count + sublist->repeated.count; tmp.allocated = tmp.count; tmp.element = XNMALLOC (tmp.allocated, struct format_arg); for (i = 0; i < sublist->initial.count; i++) - tmp.element[i] = sublist->initial.element[i]; + tmp.element[i] = sublist->initial.element[i]; for (j = 0; j < sublist->repeated.count; i++, j++) - tmp.element[i] = sublist->initial.element[j]; + tmp.element[i] = sublist->initial.element[j]; tmp.length = sublist->initial.length + sublist->repeated.length; srcseg = &tmp; @@ -2194,7 +2194,7 @@ /* Ensure room in list->initial. */ grow_initial_alloc (list); copy_element (&list->initial.element[list->initial.count], - &srcseg->element[si]); + &srcseg->element[si]); list->initial.element[list->initial.count].repcount = k; list->initial.count++; list->initial.length += k; @@ -2202,10 +2202,10 @@ i += k; ti += k; if (ti == srcseg->element[si].repcount) - { - ti = 0; - si++; - } + { + ti = 0; + si++; + } } ASSERT (list->initial.count > 0); @@ -2221,29 +2221,29 @@ while (i < n) { unsigned int k = - MIN (srcseg->element[si].repcount - ti, - list->initial.element[sj].repcount - tj); + MIN (srcseg->element[si].repcount - ti, + list->initial.element[sj].repcount - tj); /* Ensure room in list->initial. */ grow_initial_alloc (list); if (!make_intersected_element (&list->initial.element[list->initial.count], - &srcseg->element[si], - &list->initial.element[sj])) - { - if (list->initial.element[list->initial.count].presence == FCT_REQUIRED) - { - /* Contradiction. Backtrack. */ - list = backtrack_in_initial (list); - ASSERT (list != NULL); /* at least the empty list is valid */ - return list; - } - else - { - /* The list ends here. */ - ended = true; - break; - } - } + &srcseg->element[si], + &list->initial.element[sj])) + { + if (list->initial.element[list->initial.count].presence == FCT_REQUIRED) + { + /* Contradiction. Backtrack. */ + list = backtrack_in_initial (list); + ASSERT (list != NULL); /* at least the empty list is valid */ + return list; + } + else + { + /* The list ends here. */ + ended = true; + break; + } + } list->initial.element[list->initial.count].repcount = k; list->initial.count++; list->initial.length += k; @@ -2251,18 +2251,18 @@ i += k; ti += k; if (ti == srcseg->element[si].repcount) - { - ti = 0; - si++; - } + { + ti = 0; + si++; + } j += k; tj += k; if (tj == list->initial.element[sj].repcount) - { - tj = 0; - sj++; - } + { + tj = 0; + sj++; + } } if (!ended) ASSERT (list->initial.length == n); @@ -2281,12 +2281,12 @@ splitindex = initial_splitelement (list, n - p); newcount = list->initial.count - splitindex; if (newcount > list->repeated.allocated) - { - list->repeated.allocated = newcount; - list->repeated.element = XNMALLOC (newcount, struct format_arg); - } + { + list->repeated.allocated = newcount; + list->repeated.element = XNMALLOC (newcount, struct format_arg); + } for (i = splitindex, j = 0; i < n; i++, j++) - list->repeated.element[j] = list->initial.element[i]; + list->repeated.element[j] = list->initial.element[i]; list->repeated.count = newcount; list->repeated.length = p; list->initial.count = splitindex; @@ -2338,81 +2338,81 @@ invalid. */ static bool check_params (struct format_arg_list **listp, - unsigned int paramcount, struct param *params, - unsigned int t_count, const enum format_arg_type *t_types, - unsigned int directives, char **invalid_reason) + unsigned int paramcount, struct param *params, + unsigned int t_count, const enum format_arg_type *t_types, + unsigned int directives, char **invalid_reason) { unsigned int orig_paramcount = paramcount; unsigned int orig_t_count = t_count; for (; paramcount > 0 && t_count > 0; - params++, paramcount--, t_types++, t_count--) + params++, paramcount--, t_types++, t_count--) { switch (*t_types) - { - case FAT_CHARACTER_INTEGER_NULL: - break; - case FAT_CHARACTER_NULL: - switch (params->type) - { - case PT_NIL: case PT_CHARACTER: case PT_V: - break; - case PT_INTEGER: case PT_ARGCOUNT: - /* wrong param type */ - *invalid_reason = - xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "integer", "character"); - return false; - } - break; - case FAT_INTEGER_NULL: - switch (params->type) - { - case PT_NIL: case PT_INTEGER: case PT_ARGCOUNT: case PT_V: - break; - case PT_CHARACTER: - /* wrong param type */ - *invalid_reason = - xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "character", "integer"); - return false; - } - break; - default: - abort (); - } + { + case FAT_CHARACTER_INTEGER_NULL: + break; + case FAT_CHARACTER_NULL: + switch (params->type) + { + case PT_NIL: case PT_CHARACTER: case PT_V: + break; + case PT_INTEGER: case PT_ARGCOUNT: + /* wrong param type */ + *invalid_reason = + xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "integer", "character"); + return false; + } + break; + case FAT_INTEGER_NULL: + switch (params->type) + { + case PT_NIL: case PT_INTEGER: case PT_ARGCOUNT: case PT_V: + break; + case PT_CHARACTER: + /* wrong param type */ + *invalid_reason = + xasprintf (_("In the directive number %u, parameter %u is of type '%s' but a parameter of type '%s' is expected."), directives, orig_paramcount - paramcount + 1, "character", "integer"); + return false; + } + break; + default: + abort (); + } if (params->type == PT_V) - { - int position = params->value; - if (position >= 0) - add_req_type_constraint (listp, position, *t_types); - } + { + int position = params->value; + if (position >= 0) + add_req_type_constraint (listp, position, *t_types); + } } for (; paramcount > 0; params++, paramcount--) switch (params->type) { case PT_NIL: - break; + break; case PT_CHARACTER: case PT_INTEGER: case PT_ARGCOUNT: - /* too many params for directive */ - *invalid_reason = - xasprintf (ngettext ("In the directive number %u, too many parameters are given; expected at most %u parameter.", - "In the directive number %u, too many parameters are given; expected at most %u parameters.", - orig_t_count), - directives, orig_t_count); - return false; + /* too many params for directive */ + *invalid_reason = + xasprintf (ngettext ("In the directive number %u, too many parameters are given; expected at most %u parameter.", + "In the directive number %u, too many parameters are given; expected at most %u parameters.", + orig_t_count), + directives, orig_t_count); + return false; case PT_V: - /* Force argument to be NIL. */ - { - int position = params->value; - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (listp, position, - FAT_LIST, empty_list); - free_list (empty_list); - } - } - break; + /* Force argument to be NIL. */ + { + int position = params->value; + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (listp, position, + FAT_LIST, empty_list); + free_list (empty_list); + } + } + break; } return true; @@ -2441,10 +2441,10 @@ set to an error message explaining why. */ static bool parse_upto (const char **formatp, - int *positionp, struct format_arg_list **listp, - struct format_arg_list **escapep, int *separatorp, - struct spec *spec, char terminator, bool separator, - char *fdi, char **invalid_reason) + int *positionp, struct format_arg_list **listp, + struct format_arg_list **escapep, int *separatorp, + struct spec *spec, char terminator, bool separator, + char *fdi, char **invalid_reason) { const char *format = *formatp; const char *const format_start = format; @@ -2455,859 +2455,859 @@ for (; *format != '\0'; ) if (*format++ == '~') { - bool colon_p = false; - bool atsign_p = false; - unsigned int paramcount = 0; - struct param *params = NULL; - - FDI_SET (format - 1, FMTDIR_START); - - /* Count number of directives. */ - spec->directives++; - - /* Parse parameters. */ - for (;;) - { - enum param_type type = PT_NIL; - int value = 0; - - if (c_isdigit (*format)) - { - type = PT_INTEGER; - do - { - value = 10 * value + (*format - '0'); - format++; - } - while (c_isdigit (*format)); - } - else if (*format == '+' || *format == '-') - { - bool negative = (*format == '-'); - type = PT_INTEGER; - format++; - if (!c_isdigit (*format)) - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - xasprintf (_("In the directive number %u, '%c' is not followed by a digit."), spec->directives, format[-1]); - FDI_SET (format, FMTDIR_ERROR); - } - return false; - } - do - { - value = 10 * value + (*format - '0'); - format++; - } - while (c_isdigit (*format)); - if (negative) - value = -value; - } - else if (*format == '\'') - { - type = PT_CHARACTER; - format++; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - format++; - } - else if (*format == 'V' || *format == 'v') - { - type = PT_V; - format++; - value = position; - /* Consumes an argument. */ - if (position >= 0) - position++; - } - else if (*format == '#') - { - type = PT_ARGCOUNT; - format++; - } - - params = - (struct param *) - xrealloc (params, (paramcount + 1) * sizeof (struct param)); - params[paramcount].type = type; - params[paramcount].value = value; - paramcount++; - - if (*format == ',') - format++; - else - break; - } - - /* Parse modifiers. */ - for (;;) - { - if (*format == ':') - { - format++; - colon_p = true; - } - else if (*format == '@') - { - format++; - atsign_p = true; - } - else - break; - } - - /* Parse directive. */ - switch (*format++) - { - case 'A': case 'a': /* 22.3.4.1 FORMAT-ASCII */ - case 'S': case 's': /* 22.3.4.2 FORMAT-S-EXPRESSION */ - if (!check_params (&list, paramcount, params, 4, IIIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case 'C': case 'c': /* FORMAT-CHARACTER */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (paramcount == 0 - || (paramcount == 1 && params[0].type == PT_NIL)) - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_CHARACTER); - break; - - case 'D': case 'd': /* 22.3.2.2 FORMAT-DECIMAL */ - case 'B': case 'b': /* 22.3.2.3 FORMAT-BINARY */ - case 'O': case 'o': /* 22.3.2.4 FORMAT-OCTAL */ - case 'X': case 'x': /* 22.3.2.5 FORMAT-HEXADECIMAL */ - if (!check_params (&list, paramcount, params, 4, ICCI, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_INTEGER); - break; - - case 'R': case 'r': /* 22.3.2.1 FORMAT-RADIX */ - if (!check_params (&list, paramcount, params, 5, IICCI, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_INTEGER); - break; - - case 'P': case 'p': /* 22.3.8.3 FORMAT-PLURAL */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (colon_p) - { - /* Go back by 1 argument. */ - if (position > 0) - position--; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case 'F': case 'f': /* 22.3.3.1 FORMAT-FIXED-FLOAT */ - if (!check_params (&list, paramcount, params, 5, IIICC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case 'E': case 'e': /* 22.3.3.2 FORMAT-EXPONENTIAL-FLOAT */ - case 'G': case 'g': /* 22.3.3.3 FORMAT-GENERAL-FLOAT */ - if (!check_params (&list, paramcount, params, 7, IIIICCC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case '$': /* 22.3.3.4 FORMAT-DOLLARS-FLOAT */ - if (!check_params (&list, paramcount, params, 4, IIIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_REAL); - break; - - case 'I': case 'i': /* FORMAT-FIXED-FLOAT-COMPLEX */ - if (!check_params (&list, paramcount, params, 5, IIICC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_COMPLEX); - break; - - case 'Y': case 'y': /* FORMAT-PRETTY */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - break; - - case '%': /* 22.3.1.2 FORMAT-TERPRI */ - case '&': /* 22.3.1.3 FORMAT-FRESH-LINE */ - case '_': /* FORMAT-SPACE */ - case '/': /* FORMAT-TAB */ - case '|': /* 22.3.1.4 FORMAT-PAGE */ - case '~': /* 22.3.1.5 FORMAT-TILDE */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case '!': /* FORMAT-FORCE-OUTPUT */ - case '\n': /* 22.3.9.3 #\Newline */ - case 'Q': case 'q': /* FORMAT-IMPLEMENTATION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case 'T': case 't': /* FORMAT-TABULATE */ - if (!check_params (&list, paramcount, params, 3, IIC, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - break; - - case '*': /* 22.3.7.1 FORMAT-GOTO */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - { - int n; /* value of first parameter */ - if (paramcount == 0 - || (paramcount >= 1 && params[0].type == PT_NIL)) - n = (atsign_p ? 0 : 1); - else if (paramcount >= 1 && params[0].type == PT_INTEGER) - n = params[0].value; - else - { - /* Unknown argument, leads to an unknown position. */ - position = -1; - break; - } - if (n < 0) - { - /* invalid argument */ - *invalid_reason = - xasprintf (_("In the directive number %u, the argument %d is negative."), spec->directives, n); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (atsign_p) - { - /* Absolute goto. */ - position = n; - } - else if (colon_p) - { - /* Backward goto. */ - if (n > 0) - { - if (position >= 0) - { - if (position >= n) - position -= n; - else - position = 0; - } - else - position = -1; - } - } - else - { - /* Forward goto. */ - if (position >= 0) - position += n; - } - } - break; - - case '?': case 'K': case 'k': /* 22.3.7.6 FORMAT-INDIRECTION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_FORMATSTRING); - if (atsign_p) - position = -1; - else - if (position >= 0) - { - struct format_arg_list *sublist = make_unconstrained_list (); - add_req_listtype_constraint (&list, position++, - FAT_LIST, sublist); - free_list (sublist); - } - break; - - case '(': /* 22.3.8.1 FORMAT-CASE-CONVERSION */ - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - { - if (!parse_upto (formatp, positionp, listp, escapep, - NULL, spec, ')', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - } - format = *formatp; - position = *positionp; - list = *listp; - escape = *escapep; - break; - - case ')': /* 22.3.8.2 FORMAT-CASE-CONVERSION-END */ - if (terminator != ')') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), ')', '('); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '[': /* 22.3.7.2 FORMAT-CONDITIONAL */ - if (atsign_p && colon_p) - { - *invalid_reason = - xasprintf (_("In the directive number %u, both the @ and the : modifiers are given."), spec->directives); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - else if (atsign_p) - { - struct format_arg_list *nil_list; - struct format_arg_list *union_list; - - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - *formatp = format; - *escapep = escape; - - /* First alternative: argument is NIL. */ - nil_list = (list != NULL ? copy_list (list) : NULL); - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (&nil_list, position, - FAT_LIST, empty_list); - free_list (empty_list); - } - - /* Second alternative: use sub-format. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - NULL, spec, ']', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - { - if (position >= 0) - { - if (sub_position == position + 1) - /* new position is branch independent */ - position = position + 1; - else - /* new position is branch dependent */ - position = -1; - } - } - else - { - if (position >= 0) - position = position + 1; - } - union_list = union (nil_list, sub_list); - } - - format = *formatp; - escape = *escapep; - - if (list != NULL) - free_list (list); - list = union_list; - } - else if (colon_p) - { - int union_position; - struct format_arg_list *union_list; - - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_OBJECT); - - *formatp = format; - *escapep = escape; - union_position = -2; - union_list = NULL; - - /* First alternative. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - int sub_separator = 0; - if (position >= 0) - { - struct format_arg_list *empty_list = make_empty_list (); - add_req_listtype_constraint (&sub_list, position - 1, - FAT_LIST, empty_list); - free_list (empty_list); - } - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - &sub_separator, spec, ']', true, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (!sub_separator) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '~:[' is not followed by two clauses, separated by '~;'."), spec->directives); - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - union_position = sub_position; - union_list = union (union_list, sub_list); - } - - /* Second alternative. */ - { - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - NULL, spec, ']', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - if (sub_list != NULL) - { - if (union_position == -2) - union_position = sub_position; - else if (sub_position < 0 - || sub_position != union_position) - union_position = -1; - } - union_list = union (union_list, sub_list); - } - - format = *formatp; - escape = *escapep; - - if (union_position != -2) - position = union_position; - if (list != NULL) - free_list (list); - list = union_list; - } - else - { - int arg_position; - int union_position; - struct format_arg_list *union_list; - bool last_alternative; - - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - - /* If there was no first parameter, an argument is consumed. */ - arg_position = -1; - if (!(paramcount >= 1 && params[0].type != PT_NIL)) - if (position >= 0) - { - arg_position = position; - add_req_type_constraint (&list, position++, FAT_OBJECT); - } - - *formatp = format; - *escapep = escape; - - union_position = -2; - union_list = NULL; - last_alternative = false; - for (;;) - { - /* Next alternative. */ - int sub_position = position; - struct format_arg_list *sub_list = - (list != NULL ? copy_list (list) : NULL); - int sub_separator = 0; - if (!parse_upto (formatp, &sub_position, &sub_list, escapep, - &sub_separator, spec, ']', !last_alternative, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - /* If this alternative is chosen, the argument arg_position - is an integer, namely the index of this alternative. */ - if (!last_alternative && arg_position >= 0) - add_req_type_constraint (&sub_list, arg_position, - FAT_INTEGER); - if (sub_list != NULL) - { - if (union_position == -2) - union_position = sub_position; - else if (sub_position < 0 - || sub_position != union_position) - union_position = -1; - } - union_list = union (union_list, sub_list); - if (sub_separator == 2) - last_alternative = true; - if (!sub_separator) - break; - } - if (!last_alternative) - { - /* An implicit default alternative. */ - if (union_position == -2) - union_position = position; - else if (position < 0 || position != union_position) - union_position = -1; - if (list != NULL) - union_list = union (union_list, copy_list (list)); - } - - format = *formatp; - escape = *escapep; - - if (union_position != -2) - position = union_position; - if (list != NULL) - free_list (list); - list = union_list; - } - break; - - case ']': /* 22.3.7.3 FORMAT-CONDITIONAL-END */ - if (terminator != ']') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), ']', '['); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '{': /* 22.3.7.4 FORMAT-ITERATION */ - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - { - int sub_position = 0; - struct format_arg_list *sub_list = make_unconstrained_list (); - struct format_arg_list *sub_escape = NULL; - struct spec sub_spec; - sub_spec.directives = 0; - sub_spec.list = sub_list; - if (!parse_upto (formatp, &sub_position, &sub_list, &sub_escape, - NULL, &sub_spec, '}', false, - NULL, invalid_reason)) - { - FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, - FMTDIR_ERROR); - return false; - } - spec->directives += sub_spec.directives; - - /* If the sub-formatstring is empty, except for the terminating - ~} directive, a formatstring argument is consumed. */ - if (*format == '~' && sub_spec.directives == 1) - if (position >= 0) - add_req_type_constraint (&list, position++, FAT_FORMATSTRING); - - if (colon_p) - { - /* Each iteration uses a new sublist. */ - struct format_arg_list *listlist; - - /* ~{ catches ~^. */ - sub_list = union (sub_list, sub_escape); - - listlist = make_repeated_list_of_lists (sub_list); - - sub_list = listlist; - } - else - { - /* Each iteration's arguments are all concatenated in a - single list. */ - struct format_arg_list *looplist; - - /* FIXME: This is far from correct. Test cases: - abc~{~^~} - abc~{~S~^~S~} - abc~{~D~^~C~} - abc~{~D~^~D~} - abc~{~D~^~S~} - abc~{~D~^~C~}~:*~{~S~^~D~} - */ - - /* ~{ catches ~^. */ - sub_list = union (sub_list, sub_escape); - - if (sub_list == NULL) - looplist = make_empty_list (); - else - if (sub_position < 0 || sub_position == 0) - /* Too hard to track the possible argument types - when the iteration is performed 2 times or more. - So be satisfied with the constraints of executing - the iteration 1 or 0 times. */ - looplist = make_union_with_empty_list (sub_list); - else - looplist = make_repeated_list (sub_list, sub_position); - - sub_list = looplist; - } - - if (atsign_p) - { - /* All remaining arguments are used. */ - if (list != NULL && position >= 0) - { - shift_list (sub_list, position); - list = make_intersected_list (list, sub_list); - } - position = -1; - } - else - { - /* The argument is a list. */ - if (position >= 0) - add_req_listtype_constraint (&list, position++, - FAT_LIST, sub_list); - } - } - format = *formatp; - break; - - case '}': /* 22.3.7.5 FORMAT-ITERATION-END */ - if (terminator != '}') - { - *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), '}', '{'); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - return true; - - case '^': /* 22.3.9.2 FORMAT-UP-AND-OUT */ - if (!check_params (&list, paramcount, params, 3, THREE, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (position >= 0 && list != NULL && is_required (list, position)) - /* This ~^ can never be executed. Ignore it. */ - break; - if (list != NULL) - { - struct format_arg_list *this_escape = copy_list (list); - if (position >= 0) - this_escape = add_end_constraint (this_escape, position); - escape = union (escape, this_escape); - } - if (position >= 0) - list = add_required_constraint (list, position); - break; - - case ';': /* 22.3.9.1 FORMAT-SEPARATOR */ - if (!separator) - { - *invalid_reason = - xasprintf (_("In the directive number %u, '~;' is used in an invalid position."), spec->directives); - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - if (terminator == '>') - { - if (!check_params (&list, paramcount, params, 1, I, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - } - else - { - if (!check_params (&list, paramcount, params, 0, NULL, - spec->directives, invalid_reason)) - { - FDI_SET (format - 1, FMTDIR_ERROR); - return false; - } - } - *formatp = format; - *positionp = position; - *listp = list; - *escapep = escape; - *separatorp = (colon_p ? 2 : 1); - return true; - - default: - --format; - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec->directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - return false; - } + bool colon_p = false; + bool atsign_p = false; + unsigned int paramcount = 0; + struct param *params = NULL; + + FDI_SET (format - 1, FMTDIR_START); + + /* Count number of directives. */ + spec->directives++; + + /* Parse parameters. */ + for (;;) + { + enum param_type type = PT_NIL; + int value = 0; + + if (c_isdigit (*format)) + { + type = PT_INTEGER; + do + { + value = 10 * value + (*format - '0'); + format++; + } + while (c_isdigit (*format)); + } + else if (*format == '+' || *format == '-') + { + bool negative = (*format == '-'); + type = PT_INTEGER; + format++; + if (!c_isdigit (*format)) + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + xasprintf (_("In the directive number %u, '%c' is not followed by a digit."), spec->directives, format[-1]); + FDI_SET (format, FMTDIR_ERROR); + } + return false; + } + do + { + value = 10 * value + (*format - '0'); + format++; + } + while (c_isdigit (*format)); + if (negative) + value = -value; + } + else if (*format == '\'') + { + type = PT_CHARACTER; + format++; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + format++; + } + else if (*format == 'V' || *format == 'v') + { + type = PT_V; + format++; + value = position; + /* Consumes an argument. */ + if (position >= 0) + position++; + } + else if (*format == '#') + { + type = PT_ARGCOUNT; + format++; + } + + params = + (struct param *) + xrealloc (params, (paramcount + 1) * sizeof (struct param)); + params[paramcount].type = type; + params[paramcount].value = value; + paramcount++; + + if (*format == ',') + format++; + else + break; + } + + /* Parse modifiers. */ + for (;;) + { + if (*format == ':') + { + format++; + colon_p = true; + } + else if (*format == '@') + { + format++; + atsign_p = true; + } + else + break; + } + + /* Parse directive. */ + switch (*format++) + { + case 'A': case 'a': /* 22.3.4.1 FORMAT-ASCII */ + case 'S': case 's': /* 22.3.4.2 FORMAT-S-EXPRESSION */ + if (!check_params (&list, paramcount, params, 4, IIIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case 'C': case 'c': /* FORMAT-CHARACTER */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (paramcount == 0 + || (paramcount == 1 && params[0].type == PT_NIL)) + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_CHARACTER); + break; + + case 'D': case 'd': /* 22.3.2.2 FORMAT-DECIMAL */ + case 'B': case 'b': /* 22.3.2.3 FORMAT-BINARY */ + case 'O': case 'o': /* 22.3.2.4 FORMAT-OCTAL */ + case 'X': case 'x': /* 22.3.2.5 FORMAT-HEXADECIMAL */ + if (!check_params (&list, paramcount, params, 4, ICCI, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_INTEGER); + break; + + case 'R': case 'r': /* 22.3.2.1 FORMAT-RADIX */ + if (!check_params (&list, paramcount, params, 5, IICCI, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_INTEGER); + break; + + case 'P': case 'p': /* 22.3.8.3 FORMAT-PLURAL */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (colon_p) + { + /* Go back by 1 argument. */ + if (position > 0) + position--; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case 'F': case 'f': /* 22.3.3.1 FORMAT-FIXED-FLOAT */ + if (!check_params (&list, paramcount, params, 5, IIICC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case 'E': case 'e': /* 22.3.3.2 FORMAT-EXPONENTIAL-FLOAT */ + case 'G': case 'g': /* 22.3.3.3 FORMAT-GENERAL-FLOAT */ + if (!check_params (&list, paramcount, params, 7, IIIICCC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case '$': /* 22.3.3.4 FORMAT-DOLLARS-FLOAT */ + if (!check_params (&list, paramcount, params, 4, IIIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_REAL); + break; + + case 'I': case 'i': /* FORMAT-FIXED-FLOAT-COMPLEX */ + if (!check_params (&list, paramcount, params, 5, IIICC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_COMPLEX); + break; + + case 'Y': case 'y': /* FORMAT-PRETTY */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + break; + + case '%': /* 22.3.1.2 FORMAT-TERPRI */ + case '&': /* 22.3.1.3 FORMAT-FRESH-LINE */ + case '_': /* FORMAT-SPACE */ + case '/': /* FORMAT-TAB */ + case '|': /* 22.3.1.4 FORMAT-PAGE */ + case '~': /* 22.3.1.5 FORMAT-TILDE */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case '!': /* FORMAT-FORCE-OUTPUT */ + case '\n': /* 22.3.9.3 #\Newline */ + case 'Q': case 'q': /* FORMAT-IMPLEMENTATION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case 'T': case 't': /* FORMAT-TABULATE */ + if (!check_params (&list, paramcount, params, 3, IIC, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + break; + + case '*': /* 22.3.7.1 FORMAT-GOTO */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + { + int n; /* value of first parameter */ + if (paramcount == 0 + || (paramcount >= 1 && params[0].type == PT_NIL)) + n = (atsign_p ? 0 : 1); + else if (paramcount >= 1 && params[0].type == PT_INTEGER) + n = params[0].value; + else + { + /* Unknown argument, leads to an unknown position. */ + position = -1; + break; + } + if (n < 0) + { + /* invalid argument */ + *invalid_reason = + xasprintf (_("In the directive number %u, the argument %d is negative."), spec->directives, n); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (atsign_p) + { + /* Absolute goto. */ + position = n; + } + else if (colon_p) + { + /* Backward goto. */ + if (n > 0) + { + if (position >= 0) + { + if (position >= n) + position -= n; + else + position = 0; + } + else + position = -1; + } + } + else + { + /* Forward goto. */ + if (position >= 0) + position += n; + } + } + break; + + case '?': case 'K': case 'k': /* 22.3.7.6 FORMAT-INDIRECTION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_FORMATSTRING); + if (atsign_p) + position = -1; + else + if (position >= 0) + { + struct format_arg_list *sublist = make_unconstrained_list (); + add_req_listtype_constraint (&list, position++, + FAT_LIST, sublist); + free_list (sublist); + } + break; + + case '(': /* 22.3.8.1 FORMAT-CASE-CONVERSION */ + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + { + if (!parse_upto (formatp, positionp, listp, escapep, + NULL, spec, ')', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + } + format = *formatp; + position = *positionp; + list = *listp; + escape = *escapep; + break; + + case ')': /* 22.3.8.2 FORMAT-CASE-CONVERSION-END */ + if (terminator != ')') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), ')', '('); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '[': /* 22.3.7.2 FORMAT-CONDITIONAL */ + if (atsign_p && colon_p) + { + *invalid_reason = + xasprintf (_("In the directive number %u, both the @ and the : modifiers are given."), spec->directives); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + else if (atsign_p) + { + struct format_arg_list *nil_list; + struct format_arg_list *union_list; + + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + *formatp = format; + *escapep = escape; + + /* First alternative: argument is NIL. */ + nil_list = (list != NULL ? copy_list (list) : NULL); + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (&nil_list, position, + FAT_LIST, empty_list); + free_list (empty_list); + } + + /* Second alternative: use sub-format. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + NULL, spec, ']', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + { + if (position >= 0) + { + if (sub_position == position + 1) + /* new position is branch independent */ + position = position + 1; + else + /* new position is branch dependent */ + position = -1; + } + } + else + { + if (position >= 0) + position = position + 1; + } + union_list = union (nil_list, sub_list); + } + + format = *formatp; + escape = *escapep; + + if (list != NULL) + free_list (list); + list = union_list; + } + else if (colon_p) + { + int union_position; + struct format_arg_list *union_list; + + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_OBJECT); + + *formatp = format; + *escapep = escape; + union_position = -2; + union_list = NULL; + + /* First alternative. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + int sub_separator = 0; + if (position >= 0) + { + struct format_arg_list *empty_list = make_empty_list (); + add_req_listtype_constraint (&sub_list, position - 1, + FAT_LIST, empty_list); + free_list (empty_list); + } + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + &sub_separator, spec, ']', true, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (!sub_separator) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '~:[' is not followed by two clauses, separated by '~;'."), spec->directives); + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + union_position = sub_position; + union_list = union (union_list, sub_list); + } + + /* Second alternative. */ + { + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + NULL, spec, ']', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + if (sub_list != NULL) + { + if (union_position == -2) + union_position = sub_position; + else if (sub_position < 0 + || sub_position != union_position) + union_position = -1; + } + union_list = union (union_list, sub_list); + } + + format = *formatp; + escape = *escapep; + + if (union_position != -2) + position = union_position; + if (list != NULL) + free_list (list); + list = union_list; + } + else + { + int arg_position; + int union_position; + struct format_arg_list *union_list; + bool last_alternative; + + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + + /* If there was no first parameter, an argument is consumed. */ + arg_position = -1; + if (!(paramcount >= 1 && params[0].type != PT_NIL)) + if (position >= 0) + { + arg_position = position; + add_req_type_constraint (&list, position++, FAT_OBJECT); + } + + *formatp = format; + *escapep = escape; + + union_position = -2; + union_list = NULL; + last_alternative = false; + for (;;) + { + /* Next alternative. */ + int sub_position = position; + struct format_arg_list *sub_list = + (list != NULL ? copy_list (list) : NULL); + int sub_separator = 0; + if (!parse_upto (formatp, &sub_position, &sub_list, escapep, + &sub_separator, spec, ']', !last_alternative, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + /* If this alternative is chosen, the argument arg_position + is an integer, namely the index of this alternative. */ + if (!last_alternative && arg_position >= 0) + add_req_type_constraint (&sub_list, arg_position, + FAT_INTEGER); + if (sub_list != NULL) + { + if (union_position == -2) + union_position = sub_position; + else if (sub_position < 0 + || sub_position != union_position) + union_position = -1; + } + union_list = union (union_list, sub_list); + if (sub_separator == 2) + last_alternative = true; + if (!sub_separator) + break; + } + if (!last_alternative) + { + /* An implicit default alternative. */ + if (union_position == -2) + union_position = position; + else if (position < 0 || position != union_position) + union_position = -1; + if (list != NULL) + union_list = union (union_list, copy_list (list)); + } + + format = *formatp; + escape = *escapep; + + if (union_position != -2) + position = union_position; + if (list != NULL) + free_list (list); + list = union_list; + } + break; + + case ']': /* 22.3.7.3 FORMAT-CONDITIONAL-END */ + if (terminator != ']') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), ']', '['); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '{': /* 22.3.7.4 FORMAT-ITERATION */ + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + { + int sub_position = 0; + struct format_arg_list *sub_list = make_unconstrained_list (); + struct format_arg_list *sub_escape = NULL; + struct spec sub_spec; + sub_spec.directives = 0; + sub_spec.list = sub_list; + if (!parse_upto (formatp, &sub_position, &sub_list, &sub_escape, + NULL, &sub_spec, '}', false, + NULL, invalid_reason)) + { + FDI_SET (**formatp == '\0' ? *formatp - 1 : *formatp, + FMTDIR_ERROR); + return false; + } + spec->directives += sub_spec.directives; + + /* If the sub-formatstring is empty, except for the terminating + ~} directive, a formatstring argument is consumed. */ + if (*format == '~' && sub_spec.directives == 1) + if (position >= 0) + add_req_type_constraint (&list, position++, FAT_FORMATSTRING); + + if (colon_p) + { + /* Each iteration uses a new sublist. */ + struct format_arg_list *listlist; + + /* ~{ catches ~^. */ + sub_list = union (sub_list, sub_escape); + + listlist = make_repeated_list_of_lists (sub_list); + + sub_list = listlist; + } + else + { + /* Each iteration's arguments are all concatenated in a + single list. */ + struct format_arg_list *looplist; + + /* FIXME: This is far from correct. Test cases: + abc~{~^~} + abc~{~S~^~S~} + abc~{~D~^~C~} + abc~{~D~^~D~} + abc~{~D~^~S~} + abc~{~D~^~C~}~:*~{~S~^~D~} + */ + + /* ~{ catches ~^. */ + sub_list = union (sub_list, sub_escape); + + if (sub_list == NULL) + looplist = make_empty_list (); + else + if (sub_position < 0 || sub_position == 0) + /* Too hard to track the possible argument types + when the iteration is performed 2 times or more. + So be satisfied with the constraints of executing + the iteration 1 or 0 times. */ + looplist = make_union_with_empty_list (sub_list); + else + looplist = make_repeated_list (sub_list, sub_position); + + sub_list = looplist; + } + + if (atsign_p) + { + /* All remaining arguments are used. */ + if (list != NULL && position >= 0) + { + shift_list (sub_list, position); + list = make_intersected_list (list, sub_list); + } + position = -1; + } + else + { + /* The argument is a list. */ + if (position >= 0) + add_req_listtype_constraint (&list, position++, + FAT_LIST, sub_list); + } + } + format = *formatp; + break; + + case '}': /* 22.3.7.5 FORMAT-ITERATION-END */ + if (terminator != '}') + { + *invalid_reason = + xasprintf (_("Found '~%c' without matching '~%c'."), '}', '{'); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + return true; + + case '^': /* 22.3.9.2 FORMAT-UP-AND-OUT */ + if (!check_params (&list, paramcount, params, 3, THREE, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (position >= 0 && list != NULL && is_required (list, position)) + /* This ~^ can never be executed. Ignore it. */ + break; + if (list != NULL) + { + struct format_arg_list *this_escape = copy_list (list); + if (position >= 0) + this_escape = add_end_constraint (this_escape, position); + escape = union (escape, this_escape); + } + if (position >= 0) + list = add_required_constraint (list, position); + break; + + case ';': /* 22.3.9.1 FORMAT-SEPARATOR */ + if (!separator) + { + *invalid_reason = + xasprintf (_("In the directive number %u, '~;' is used in an invalid position."), spec->directives); + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + if (terminator == '>') + { + if (!check_params (&list, paramcount, params, 1, I, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + } + else + { + if (!check_params (&list, paramcount, params, 0, NULL, + spec->directives, invalid_reason)) + { + FDI_SET (format - 1, FMTDIR_ERROR); + return false; + } + } + *formatp = format; + *positionp = position; + *listp = list; + *escapep = escape; + *separatorp = (colon_p ? 2 : 1); + return true; + + default: + --format; + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec->directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + return false; + } - FDI_SET (format - 1, FMTDIR_END); + FDI_SET (format - 1, FMTDIR_END); - free (params); + free (params); } *formatp = format; @@ -3317,7 +3317,7 @@ if (terminator != '\0') { *invalid_reason = - xasprintf (_("Found '~%c' without matching '~%c'."), terminator - 1, terminator); + xasprintf (_("Found '~%c' without matching '~%c'."), terminator - 1, terminator); return false; } return true; @@ -3328,7 +3328,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { struct spec spec; struct spec *result; @@ -3340,8 +3340,8 @@ escape = NULL; if (!parse_upto (&format, &position, &spec.list, &escape, - NULL, &spec, '\0', false, - fdi, invalid_reason)) + NULL, &spec, '\0', false, + fdi, invalid_reason)) /* Invalid format string. */ return NULL; @@ -3352,7 +3352,7 @@ { /* Contradictory argument type information. */ *invalid_reason = - xstrdup (_("The string refers to some argument in incompatible ways.")); + xstrdup (_("The string refers to some argument in incompatible ways.")); return NULL; } @@ -3382,8 +3382,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -3392,28 +3392,28 @@ if (equality) { if (!equal_list (spec1->list, spec2->list)) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' are not equivalent"), - pretty_msgstr); - err = true; - } + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' are not equivalent"), + pretty_msgid, pretty_msgstr); + err = true; + } } else { struct format_arg_list *intersection = - make_intersected_list (copy_list (spec1->list), - copy_list (spec2->list)); + make_intersected_list (copy_list (spec1->list), + copy_list (spec2->list)); if (!(intersection != NULL - && (normalize_list (intersection), - equal_list (intersection, spec2->list)))) - { - if (error_logger) - error_logger (_("format specifications in '%s' are not a subset of those in 'msgid'"), - pretty_msgstr); - err = true; - } + && (normalize_list (intersection), + equal_list (intersection, spec2->list)))) + { + if (error_logger) + error_logger (_("format specifications in '%s' are not a subset of those in '%s'"), + pretty_msgstr, pretty_msgid); + err = true; + } } return err; @@ -3504,20 +3504,20 @@ for (i = 0; i < list->initial.count; i++) for (j = 0; j < list->initial.element[i].repcount; j++) { - if (i > 0 || j > 0) - printf (" "); - print_element (&list->initial.element[i]); + if (i > 0 || j > 0) + printf (" "); + print_element (&list->initial.element[i]); } if (list->repeated.count > 0) { printf (" |"); for (i = 0; i < list->repeated.count; i++) - for (j = 0; j < list->repeated.element[i].repcount; j++) - { - printf (" "); - print_element (&list->repeated.element[i]); - } + for (j = 0; j < list->repeated.element[i].repcount; j++) + { + printf (" "); + print_element (&list->repeated.element[i]); + } } printf (")"); @@ -3550,9 +3550,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -3560,7 +3560,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-sh.c gettext-0.18.1.1/gettext-tools/src/format-sh.c --- gettext-0.17/gettext-tools/src/format-sh.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-sh.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Shell format strings. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -72,7 +72,7 @@ named_arg_compare (const void *p1, const void *p2) { return strcmp (((const struct named_arg *) p1)->name, - ((const struct named_arg *) p2)->name); + ((const struct named_arg *) p2)->name); } #define INVALID_NON_ASCII_VARIABLE() \ @@ -86,7 +86,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -100,113 +100,113 @@ for (; *format != '\0';) if (*format++ == '$') { - /* A variable substitution. */ - char *name; + /* A variable substitution. */ + char *name; - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; - if (*format == '{') - { - const char *name_start; - const char *name_end; - size_t n; - - name_start = ++format; - for (; *format != '\0'; format++) - { - if (*format == '}') - break; - if (!c_isascii (*format)) - { - *invalid_reason = INVALID_NON_ASCII_VARIABLE (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - if (format > name_start - && (*format == '-' || *format == '=' || *format == '+' - || *format == '?' || *format == ':')) - { - *invalid_reason = INVALID_SHELL_SYNTAX (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - if (!(c_isalnum (*format) || *format == '_') - || (format == name_start && c_isdigit (*format))) - { - *invalid_reason = INVALID_CONTEXT_DEPENDENT_VARIABLE (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - } - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - name_end = format++; - - n = name_end - name_start; - if (n == 0) - { - *invalid_reason = INVALID_EMPTY_VARIABLE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - name = XNMALLOC (n + 1, char); - memcpy (name, name_start, n); - name[n] = '\0'; - } - else if (c_isalpha (*format) || *format == '_') - { - const char *name_start; - const char *name_end; - size_t n; - - name_start = format; - do - format++; - while (*format != '\0' && (c_isalnum (*format) || *format == '_')); - name_end = format; - - n = name_end - name_start; - name = XNMALLOC (n + 1, char); - memcpy (name, name_start, n); - name[n] = '\0'; - } - else if (*format != '\0') - { - if (!c_isascii (*format)) - { - *invalid_reason = INVALID_NON_ASCII_VARIABLE (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - else - { - *invalid_reason = INVALID_CONTEXT_DEPENDENT_VARIABLE (); - FDI_SET (format, FMTDIR_ERROR); - goto bad_format; - } - } - else - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - - /* Named argument. */ - if (spec.allocated == spec.named_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); - } - spec.named[spec.named_arg_count].name = name; - spec.named_arg_count++; + if (*format == '{') + { + const char *name_start; + const char *name_end; + size_t n; + + name_start = ++format; + for (; *format != '\0'; format++) + { + if (*format == '}') + break; + if (!c_isascii (*format)) + { + *invalid_reason = INVALID_NON_ASCII_VARIABLE (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + if (format > name_start + && (*format == '-' || *format == '=' || *format == '+' + || *format == '?' || *format == ':')) + { + *invalid_reason = INVALID_SHELL_SYNTAX (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + if (!(c_isalnum (*format) || *format == '_') + || (format == name_start && c_isdigit (*format))) + { + *invalid_reason = INVALID_CONTEXT_DEPENDENT_VARIABLE (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + } + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + name_end = format++; + + n = name_end - name_start; + if (n == 0) + { + *invalid_reason = INVALID_EMPTY_VARIABLE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + name = XNMALLOC (n + 1, char); + memcpy (name, name_start, n); + name[n] = '\0'; + } + else if (c_isalpha (*format) || *format == '_') + { + const char *name_start; + const char *name_end; + size_t n; + + name_start = format; + do + format++; + while (*format != '\0' && (c_isalnum (*format) || *format == '_')); + name_end = format; + + n = name_end - name_start; + name = XNMALLOC (n + 1, char); + memcpy (name, name_start, n); + name[n] = '\0'; + } + else if (*format != '\0') + { + if (!c_isascii (*format)) + { + *invalid_reason = INVALID_NON_ASCII_VARIABLE (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + else + { + *invalid_reason = INVALID_CONTEXT_DEPENDENT_VARIABLE (); + FDI_SET (format, FMTDIR_ERROR); + goto bad_format; + } + } + else + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + + /* Named argument. */ + if (spec.allocated == spec.named_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.named = (struct named_arg *) xrealloc (spec.named, spec.allocated * sizeof (struct named_arg)); + } + spec.named[spec.named_arg_count].name = name; + spec.named_arg_count++; - FDI_SET (format - 1, FMTDIR_END); + FDI_SET (format - 1, FMTDIR_END); } /* Sort the named argument array, and eliminate duplicates. */ @@ -215,18 +215,18 @@ unsigned int i, j; qsort (spec.named, spec.named_arg_count, sizeof (struct named_arg), - named_arg_compare); + named_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ for (i = j = 0; i < spec.named_arg_count; i++) - if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) - free (spec.named[i].name); - else - { - if (j < i) - spec.named[j].name = spec.named[i].name; - j++; - } + if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) + free (spec.named[i].name); + else + { + if (j < i) + spec.named[j].name = spec.named[i].name; + j++; + } spec.named_arg_count = j; } @@ -239,7 +239,7 @@ { unsigned int i; for (i = 0; i < spec.named_arg_count; i++) - free (spec.named[i].name); + free (spec.named[i].name); free (spec.named); } return NULL; @@ -254,7 +254,7 @@ { unsigned int i; for (i = 0; i < spec->named_arg_count; i++) - free (spec->named[i].name); + free (spec->named[i].name); free (spec->named); } free (spec); @@ -270,8 +270,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -284,37 +284,38 @@ unsigned int n2 = spec2->named_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - strcmp (spec1->named[i].name, spec2->named[j].name)); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in 'msgid'"), - spec2->named[j].name, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), - spec1->named[i].name, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + strcmp (spec1->named[i].name, spec2->named[j].name)); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument '%s', as in '%s', doesn't exist in '%s'"), + spec2->named[j].name, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument '%s' doesn't exist in '%s'"), + spec1->named[i].name, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } } return err; @@ -354,7 +355,7 @@ for (i = 0; i < spec->named_arg_count; i++) { if (i > 0) - printf (", "); + printf (", "); printf ("'%s'", spec->named[i].name); } printf ("}"); @@ -373,9 +374,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -383,7 +384,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-tcl.c gettext-0.18.1.1/gettext-tools/src/format-tcl.c --- gettext-0.17/gettext-tools/src/format-tcl.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-tcl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Tcl format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -98,7 +98,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -118,170 +118,170 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (*format != '%') - { - bool is_numbered_arg; - bool short_flag; - enum format_arg_type type; - - is_numbered_arg = false; - if (isdigit (*format)) - { - const char *f = format; - unsigned int m = 0; - - do - { - m = 10 * m + (*f - '0'); - f++; - } - while (isdigit (*f)); - - if (*f == '$') - { - if (m == 0) - { - *invalid_reason = INVALID_ARGNO_0 (spec.directives); - FDI_SET (f, FMTDIR_ERROR); - goto bad_format; - } - number = m; - format = ++f; - - /* Numbered and unnumbered specifications are exclusive. */ - if (seen_unnumbered_arg) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - is_numbered_arg = true; - seen_numbered_arg = true; - } - } - - /* Numbered and unnumbered specifications are exclusive. */ - if (!is_numbered_arg) - { - if (seen_numbered_arg) - { - *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); - FDI_SET (format - 1, FMTDIR_ERROR); - goto bad_format; - } - seen_unnumbered_arg = true; - } - - /* Parse flags. */ - while (*format == ' ' || *format == '+' || *format == '-' - || *format == '#' || *format == '0') - format++; - - /* Parse width. */ - if (*format == '*') - { - format++; - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - - number++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - - /* Parse precision. */ - if (*format == '.') - { - format++; - - if (*format == '*') - { - format++; - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; - spec.numbered_arg_count++; - - number++; - } - else if (isdigit (*format)) - { - do format++; while (isdigit (*format)); - } - } - - /* Parse optional size specification. */ - short_flag = false; - if (*format == 'h') - short_flag = true, format++; - else if (*format == 'l') - format++; - - switch (*format) - { - case 'c': - type = FAT_CHARACTER; - break; - case 's': - type = FAT_STRING; - break; - case 'i': case 'd': - type = (short_flag ? FAT_SHORT_INTEGER : FAT_INTEGER); - break; - case 'u': case 'o': case 'x': case 'X': - type = (short_flag ? FAT_SHORT_UNSIGNED_INTEGER : FAT_UNSIGNED_INTEGER); - break; - case 'e': case 'E': case 'f': case 'g': case 'G': - type = FAT_FLOAT; - break; - default: - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - INVALID_CONVERSION_SPECIFIER (spec.directives, *format); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } - - if (spec.allocated == spec.numbered_arg_count) - { - spec.allocated = 2 * spec.allocated + 1; - spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); - } - spec.numbered[spec.numbered_arg_count].number = number; - spec.numbered[spec.numbered_arg_count].type = type; - spec.numbered_arg_count++; + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format != '%') + { + bool is_numbered_arg; + bool short_flag; + enum format_arg_type type; + + is_numbered_arg = false; + if (isdigit (*format)) + { + const char *f = format; + unsigned int m = 0; + + do + { + m = 10 * m + (*f - '0'); + f++; + } + while (isdigit (*f)); + + if (*f == '$') + { + if (m == 0) + { + *invalid_reason = INVALID_ARGNO_0 (spec.directives); + FDI_SET (f, FMTDIR_ERROR); + goto bad_format; + } + number = m; + format = ++f; + + /* Numbered and unnumbered specifications are exclusive. */ + if (seen_unnumbered_arg) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + is_numbered_arg = true; + seen_numbered_arg = true; + } + } + + /* Numbered and unnumbered specifications are exclusive. */ + if (!is_numbered_arg) + { + if (seen_numbered_arg) + { + *invalid_reason = INVALID_MIXES_NUMBERED_UNNUMBERED (); + FDI_SET (format - 1, FMTDIR_ERROR); + goto bad_format; + } + seen_unnumbered_arg = true; + } + + /* Parse flags. */ + while (*format == ' ' || *format == '+' || *format == '-' + || *format == '#' || *format == '0') + format++; + + /* Parse width. */ + if (*format == '*') + { + format++; + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + + number++; + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + + /* Parse precision. */ + if (*format == '.') + { + format++; + + if (*format == '*') + { + format++; + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = FAT_INTEGER; + spec.numbered_arg_count++; + + number++; + } + else if (isdigit (*format)) + { + do format++; while (isdigit (*format)); + } + } + + /* Parse optional size specification. */ + short_flag = false; + if (*format == 'h') + short_flag = true, format++; + else if (*format == 'l') + format++; + + switch (*format) + { + case 'c': + type = FAT_CHARACTER; + break; + case 's': + type = FAT_STRING; + break; + case 'i': case 'd': + type = (short_flag ? FAT_SHORT_INTEGER : FAT_INTEGER); + break; + case 'u': case 'o': case 'x': case 'X': + type = (short_flag ? FAT_SHORT_UNSIGNED_INTEGER : FAT_UNSIGNED_INTEGER); + break; + case 'e': case 'E': case 'f': case 'g': case 'G': + type = FAT_FLOAT; + break; + default: + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + INVALID_CONVERSION_SPECIFIER (spec.directives, *format); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } + + if (spec.allocated == spec.numbered_arg_count) + { + spec.allocated = 2 * spec.allocated + 1; + spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, spec.allocated * sizeof (struct numbered_arg)); + } + spec.numbered[spec.numbered_arg_count].number = number; + spec.numbered[spec.numbered_arg_count].type = type; + spec.numbered_arg_count++; - number++; - } + number++; + } - FDI_SET (format, FMTDIR_END); + FDI_SET (format, FMTDIR_END); - format++; + format++; } /* Sort the numbered argument array, and eliminate duplicates. */ @@ -291,44 +291,44 @@ bool err; qsort (spec.numbered, spec.numbered_arg_count, - sizeof (struct numbered_arg), numbered_arg_compare); + sizeof (struct numbered_arg), numbered_arg_compare); /* Remove duplicates: Copy from i to j, keeping 0 <= j <= i. */ err = false; for (i = j = 0; i < spec.numbered_arg_count; i++) - if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) - { - enum format_arg_type type1 = spec.numbered[i].type; - enum format_arg_type type2 = spec.numbered[j-1].type; - enum format_arg_type type_both; - - if (type1 == type2) - type_both = type1; - else - { - /* Incompatible types. */ - type_both = FAT_NONE; - if (!err) - *invalid_reason = - INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); - err = true; - } - - spec.numbered[j-1].type = type_both; - } - else - { - if (j < i) - { - spec.numbered[j].number = spec.numbered[i].number; - spec.numbered[j].type = spec.numbered[i].type; - } - j++; - } + if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) + { + enum format_arg_type type1 = spec.numbered[i].type; + enum format_arg_type type2 = spec.numbered[j-1].type; + enum format_arg_type type_both; + + if (type1 == type2) + type_both = type1; + else + { + /* Incompatible types. */ + type_both = FAT_NONE; + if (!err) + *invalid_reason = + INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); + err = true; + } + + spec.numbered[j-1].type = type_both; + } + else + { + if (j < i) + { + spec.numbered[j].number = spec.numbered[i].number; + spec.numbered[j].type = spec.numbered[i].type; + } + j++; + } spec.numbered_arg_count = j; if (err) - /* *invalid_reason has already been set above. */ - goto bad_format; + /* *invalid_reason has already been set above. */ + goto bad_format; } result = XMALLOC (struct spec); @@ -361,8 +361,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -375,58 +375,60 @@ unsigned int n2 = spec2->numbered_arg_count; /* Check the argument names are the same. - Both arrays are sorted. We search for the first difference. */ + Both arrays are sorted. We search for the first difference. */ for (i = 0, j = 0; i < n1 || j < n2; ) - { - int cmp = (i >= n1 ? 1 : - j >= n2 ? -1 : - spec1->numbered[i].number > spec2->numbered[j].number ? 1 : - spec1->numbered[i].number < spec2->numbered[j].number ? -1 : - 0); - - if (cmp > 0) - { - if (error_logger) - error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - spec2->numbered[j].number, pretty_msgstr); - err = true; - break; - } - else if (cmp < 0) - { - if (equality) - { - if (error_logger) - error_logger (_("a format specification for argument %u doesn't exist in '%s'"), - spec1->numbered[i].number, pretty_msgstr); - err = true; - break; - } - else - i++; - } - else - j++, i++; - } + { + int cmp = (i >= n1 ? 1 : + j >= n2 ? -1 : + spec1->numbered[i].number > spec2->numbered[j].number ? 1 : + spec1->numbered[i].number < spec2->numbered[j].number ? -1 : + 0); + + if (cmp > 0) + { + if (error_logger) + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + spec2->numbered[j].number, pretty_msgstr, + pretty_msgid); + err = true; + break; + } + else if (cmp < 0) + { + if (equality) + { + if (error_logger) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + spec1->numbered[i].number, pretty_msgstr); + err = true; + break; + } + else + i++; + } + else + j++, i++; + } /* Check the argument types are the same. */ if (!err) - for (i = 0, j = 0; j < n2; ) - { - if (spec1->numbered[i].number == spec2->numbered[j].number) - { - if (spec1->numbered[i].type != spec2->numbered[j].type) - { - if (error_logger) - error_logger (_("format specifications in 'msgid' and '%s' for argument %u are not the same"), - pretty_msgstr, spec2->numbered[j].number); - err = true; - break; - } - j++, i++; - } - else - i++; - } + for (i = 0, j = 0; j < n2; ) + { + if (spec1->numbered[i].number == spec2->numbered[j].number) + { + if (spec1->numbered[i].type != spec2->numbered[j].type) + { + if (error_logger) + error_logger (_("format specifications in '%s' and '%s' for argument %u are not the same"), + pretty_msgid, pretty_msgstr, + spec2->numbered[j].number); + err = true; + break; + } + j++, i++; + } + else + i++; + } } return err; @@ -470,37 +472,37 @@ unsigned int number = spec->numbered[i].number; if (i > 0) - printf (" "); + printf (" "); if (number < last) - abort (); + abort (); for (; last < number; last++) - printf ("_ "); + printf ("_ "); switch (spec->numbered[i].type) - { - case FAT_CHARACTER: - printf ("c"); - break; - case FAT_STRING: - printf ("s"); - break; - case FAT_INTEGER: - printf ("i"); - break; - case FAT_UNSIGNED_INTEGER: - printf ("[unsigned]i"); - break; - case FAT_SHORT_INTEGER: - printf ("hi"); - break; - case FAT_SHORT_UNSIGNED_INTEGER: - printf ("[unsigned]hi"); - break; - case FAT_FLOAT: - printf ("f"); - break; - default: - abort (); - } + { + case FAT_CHARACTER: + printf ("c"); + break; + case FAT_STRING: + printf ("s"); + break; + case FAT_INTEGER: + printf ("i"); + break; + case FAT_UNSIGNED_INTEGER: + printf ("[unsigned]i"); + break; + case FAT_SHORT_INTEGER: + printf ("hi"); + break; + case FAT_SHORT_UNSIGNED_INTEGER: + printf ("[unsigned]hi"); + break; + case FAT_FLOAT: + printf ("f"); + break; + default: + abort (); + } last = number + 1; } printf (")"); @@ -519,9 +521,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -529,7 +531,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/format-ycp.c gettext-0.18.1.1/gettext-tools/src/format-ycp.c --- gettext-0.17/gettext-tools/src/format-ycp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/format-ycp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* YCP and Smalltalk format strings. - Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -48,7 +48,7 @@ static void * format_parse (const char *format, bool translated, char *fdi, - char **invalid_reason) + char **invalid_reason) { const char *const format_start = format; struct spec spec; @@ -60,41 +60,41 @@ for (; *format != '\0';) if (*format++ == '%') { - /* A directive. */ - FDI_SET (format - 1, FMTDIR_START); - spec.directives++; - - if (*format == '%') - format++; - else if (*format >= '1' && *format <= '9') - { - unsigned int number = *format - '1'; - - while (spec.arg_count <= number) - spec.args_used[spec.arg_count++] = false; - spec.args_used[number] = true; - - format++; - } - else - { - if (*format == '\0') - { - *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); - FDI_SET (format - 1, FMTDIR_ERROR); - } - else - { - *invalid_reason = - (c_isprint (*format) - ? xasprintf (_("In the directive number %u, the character '%c' is not a digit between 1 and 9."), spec.directives, *format) - : xasprintf (_("The character that terminates the directive number %u is not a digit between 1 and 9."), spec.directives)); - FDI_SET (format, FMTDIR_ERROR); - } - goto bad_format; - } + /* A directive. */ + FDI_SET (format - 1, FMTDIR_START); + spec.directives++; + + if (*format == '%') + format++; + else if (*format >= '1' && *format <= '9') + { + unsigned int number = *format - '1'; + + while (spec.arg_count <= number) + spec.args_used[spec.arg_count++] = false; + spec.args_used[number] = true; + + format++; + } + else + { + if (*format == '\0') + { + *invalid_reason = INVALID_UNTERMINATED_DIRECTIVE (); + FDI_SET (format - 1, FMTDIR_ERROR); + } + else + { + *invalid_reason = + (c_isprint (*format) + ? xasprintf (_("In the directive number %u, the character '%c' is not a digit between 1 and 9."), spec.directives, *format) + : xasprintf (_("The character that terminates the directive number %u is not a digit between 1 and 9."), spec.directives)); + FDI_SET (format, FMTDIR_ERROR); + } + goto bad_format; + } - FDI_SET (format - 1, FMTDIR_END); + FDI_SET (format - 1, FMTDIR_END); } result = XMALLOC (struct spec); @@ -123,8 +123,8 @@ static bool format_check (void *msgid_descr, void *msgstr_descr, bool equality, - formatstring_error_logger_t error_logger, - const char *pretty_msgstr) + formatstring_error_logger_t error_logger, + const char *pretty_msgid, const char *pretty_msgstr) { struct spec *spec1 = (struct spec *) msgid_descr; struct spec *spec2 = (struct spec *) msgstr_descr; @@ -137,15 +137,19 @@ bool arg_used2 = (i < spec2->arg_count && spec2->args_used[i]); if (equality ? (arg_used1 != arg_used2) : (!arg_used1 && arg_used2)) - { - if (error_logger) - error_logger (arg_used1 - ? _("a format specification for argument %u doesn't exist in '%s'") - : _("a format specification for argument %u, as in '%s', doesn't exist in 'msgid'"), - i + 1, pretty_msgstr); - err = true; - break; - } + { + if (error_logger) + { + if (arg_used1) + error_logger (_("a format specification for argument %u doesn't exist in '%s'"), + i + 1, pretty_msgstr); + else + error_logger (_("a format specification for argument %u, as in '%s', doesn't exist in '%s'"), + i + 1, pretty_msgstr, pretty_msgid); + } + err = true; + break; + } } return err; @@ -195,11 +199,11 @@ for (i = 0; i < spec->arg_count; i++) { if (i > 0) - printf (" "); + printf (" "); if (spec->args_used[i]) - printf ("*"); + printf ("*"); else - printf ("_"); + printf ("_"); } printf (")"); } @@ -217,9 +221,9 @@ line_len = getline (&line, &line_size, stdin); if (line_len < 0) - break; + break; if (line_len > 0 && line[line_len - 1] == '\n') - line[--line_len] = '\0'; + line[--line_len] = '\0'; invalid_reason = NULL; descr = format_parse (line, false, NULL, &invalid_reason); @@ -227,7 +231,7 @@ format_print (descr); printf ("\n"); if (descr == NULL) - printf ("%s\n", invalid_reason); + printf ("%s\n", invalid_reason); free (invalid_reason); free (line); diff -Nru gettext-0.17/gettext-tools/src/gnu/gettext/GetURL.java gettext-0.18.1.1/gettext-tools/src/gnu/gettext/GetURL.java --- gettext-0.17/gettext-tools/src/gnu/gettext/GetURL.java 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/gnu/gettext/GetURL.java 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Fetch an URL's contents. - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2008 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,6 +21,10 @@ import java.net.*; /** + * Fetch an URL's contents and emit it to standard output. + * Exit code: 0 = success + * 1 = failure + * 2 = timeout * @author Bruno Haible */ public class GetURL { @@ -37,10 +41,6 @@ System.exit(1); return; } - // We always print something on stderr because the user should know - // why we are trying to establish an internet connection. - System.err.print("Retrieving "+s+"..."); - System.err.flush(); done = false; timeoutThread = new Thread() { @@ -48,8 +48,7 @@ try { sleep(timeout); if (!done) { - System.err.println(" timed out."); - System.exit(1); + System.exit(2); } } catch (InterruptedException e) { } @@ -69,11 +68,9 @@ istream.close(); } catch (IOException e) { //e.printStackTrace(); - System.err.println(" failed."); System.exit(1); } done = true; - System.err.println(" done."); } public static void main (String[] args) { if (args.length != 1) diff -Nru gettext-0.17/gettext-tools/src/hostname.c gettext-0.18.1.1/gettext-tools/src/hostname.c --- gettext-0.17/gettext-tools/src/hostname.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/hostname.c 2010-06-06 12:49:58.000000000 +0000 @@ -145,10 +145,10 @@ /* Parse command line options. */ while ((optchar = getopt_long (argc, argv, "fhisV", long_options, NULL)) - != EOF) + != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'f': format = long_format; @@ -180,7 +180,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2003, 2006-2007"); + "2001-2003, 2006-2007"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -205,7 +205,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -237,7 +237,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -289,25 +289,25 @@ # elif HAVE_IN6_S6_ADDR16 # define ipv6_ntop(buffer,addr) \ sprintf (buffer, "%x:%x:%x:%x:%x:%x:%x:%x", \ - ntohs ((addr).s6_addr16[0]), \ - ntohs ((addr).s6_addr16[1]), \ - ntohs ((addr).s6_addr16[2]), \ - ntohs ((addr).s6_addr16[3]), \ - ntohs ((addr).s6_addr16[4]), \ - ntohs ((addr).s6_addr16[5]), \ - ntohs ((addr).s6_addr16[6]), \ - ntohs ((addr).s6_addr16[7])) + ntohs ((addr).s6_addr16[0]), \ + ntohs ((addr).s6_addr16[1]), \ + ntohs ((addr).s6_addr16[2]), \ + ntohs ((addr).s6_addr16[3]), \ + ntohs ((addr).s6_addr16[4]), \ + ntohs ((addr).s6_addr16[5]), \ + ntohs ((addr).s6_addr16[6]), \ + ntohs ((addr).s6_addr16[7])) # else # define ipv6_ntop(buffer,addr) \ sprintf (buffer, "%x:%x:%x:%x:%x:%x:%x:%x", \ - ((addr).s6_addr[0] << 8) | (addr).s6_addr[1], \ - ((addr).s6_addr[2] << 8) | (addr).s6_addr[3], \ - ((addr).s6_addr[4] << 8) | (addr).s6_addr[5], \ - ((addr).s6_addr[6] << 8) | (addr).s6_addr[7], \ - ((addr).s6_addr[8] << 8) | (addr).s6_addr[9], \ - ((addr).s6_addr[10] << 8) | (addr).s6_addr[11], \ - ((addr).s6_addr[12] << 8) | (addr).s6_addr[13], \ - ((addr).s6_addr[14] << 8) | (addr).s6_addr[15]) + ((addr).s6_addr[0] << 8) | (addr).s6_addr[1], \ + ((addr).s6_addr[2] << 8) | (addr).s6_addr[3], \ + ((addr).s6_addr[4] << 8) | (addr).s6_addr[5], \ + ((addr).s6_addr[6] << 8) | (addr).s6_addr[7], \ + ((addr).s6_addr[8] << 8) | (addr).s6_addr[9], \ + ((addr).s6_addr[10] << 8) | (addr).s6_addr[11], \ + ((addr).s6_addr[12] << 8) | (addr).s6_addr[13], \ + ((addr).s6_addr[14] << 8) | (addr).s6_addr[15]) # endif #endif @@ -335,7 +335,7 @@ /* Print only the part before the first dot. */ dot = strchr (hostname, '.'); if (dot != NULL) - *dot = '\0'; + *dot = '\0'; printf ("%s\n", hostname); break; @@ -344,15 +344,15 @@ #if HAVE_GETHOSTBYNAME h = gethostbyname (hostname); if (h != NULL) - { - printf ("%s\n", h->h_name); - if (h->h_aliases != NULL) - for (i = 0; h->h_aliases[i] != NULL; i++) - printf ("%s\n", h->h_aliases[i]); - } + { + printf ("%s\n", h->h_name); + if (h->h_aliases != NULL) + for (i = 0; h->h_aliases[i] != NULL; i++) + printf ("%s\n", h->h_aliases[i]); + } else #endif - printf ("%s\n", hostname); + printf ("%s\n", hostname); break; case ip_format: @@ -360,24 +360,24 @@ #if HAVE_GETHOSTBYNAME h = gethostbyname (hostname); if (h != NULL && h->h_addr_list != NULL) - for (i = 0; h->h_addr_list[i] != NULL; i++) - { + for (i = 0; h->h_addr_list[i] != NULL; i++) + { #if HAVE_IPV6 - if (h->h_addrtype == AF_INET6) - { - char buffer[45+1]; - ipv6_ntop (buffer, *(const struct in6_addr*) h->h_addr_list[i]); - printf("[%s]\n", buffer); - } - else -#endif - if (h->h_addrtype == AF_INET) - { - char buffer[15+1]; - ipv4_ntop (buffer, *(const struct in_addr*) h->h_addr_list[i]); - printf("[%s]\n", buffer); - } - } + if (h->h_addrtype == AF_INET6) + { + char buffer[45+1]; + ipv6_ntop (buffer, *(const struct in6_addr*) h->h_addr_list[i]); + printf("[%s]\n", buffer); + } + else +#endif + if (h->h_addrtype == AF_INET) + { + char buffer[15+1]; + ipv4_ntop (buffer, *(const struct in_addr*) h->h_addr_list[i]); + printf("[%s]\n", buffer); + } + } #endif break; diff -Nru gettext-0.17/gettext-tools/src/lang-table.c gettext-0.18.1.1/gettext-tools/src/lang-table.c --- gettext-0.17/gettext-tools/src/lang-table.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/lang-table.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Table of languages. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -28,7 +28,6 @@ { "aa", "Afar" }, { "ab", "Abkhazian" }, { "ace", "Achinese" }, - { "ad", "Adangme" }, { "ae", "Avestan" }, { "af", "Afrikaans" }, { "ak", "Akan" }, @@ -36,16 +35,18 @@ { "an", "Aragonese" }, { "ang", "Old English" }, { "ar", "Arabic" }, + { "arn", "Mapudungun" }, { "as", "Assamese" }, + { "ast", "Asturian" }, { "av", "Avaric" }, { "awa", "Awadhi" }, { "ay", "Aymara" }, { "az", "Azerbaijani" }, { "ba", "Bashkir" }, - { "bad", "Banda" }, { "bal", "Baluchi" }, { "ban", "Balinese" }, { "be", "Belarusian" }, + { "bej", "Beja" }, { "bem", "Bemba" }, { "bg", "Bulgarian" }, { "bh", "Bihari" }, @@ -58,7 +59,6 @@ { "bo", "Tibetan" }, { "br", "Breton" }, { "bs", "Bosnian" }, - { "btk", "Batak" }, { "bug", "Buginese" }, { "ca", "Catalan" }, { "ce", "Chechen" }, @@ -66,6 +66,7 @@ { "ch", "Chamorro" }, { "co", "Corsican" }, { "cr", "Cree" }, + { "crh", "Crimean Tatar" }, { "cs", "Czech" }, { "csb", "Kashubian" }, { "cu", "Church Slavic" }, @@ -75,6 +76,7 @@ { "de", "German" }, { "din", "Dinka" }, { "doi", "Dogri" }, + { "dsb", "Lower Sorbian" }, { "dv", "Divehi" }, { "dz", "Dzongkha" }, { "ee", "Ewe" }, @@ -92,13 +94,14 @@ { "fo", "Faroese" }, { "fon", "Fon" }, { "fr", "French" }, + { "fur", "Friulian" }, { "fy", "Western Frisian" }, { "ga", "Irish" }, - { "gd", "Scots" }, + { "gd", "Scottish Gaelic" }, { "gl", "Galician" }, { "gn", "Guarani" }, { "gon", "Gondi" }, - { "gsw", "Swiss German" }, + { "gsw", "Swiss German" }, /* can also be "Alsatian" */ { "gu", "Gujarati" }, { "gv", "Manx" }, { "ha", "Hausa" }, @@ -108,6 +111,7 @@ { "hmn", "Hmong" }, { "ho", "Hiri Motu" }, { "hr", "Croatian" }, + { "hsb", "Upper Sorbian" }, { "ht", "Haitian" }, { "hu", "Hungarian" }, { "hy", "Armenian" }, @@ -137,7 +141,7 @@ { "kj", "Kuanyama" }, { "kk", "Kazakh" }, { "kl", "Kalaallisut" }, - { "km", "Khmer" }, + { "km", "Central Khmer" }, { "kmb", "Kimbundu" }, { "kn", "Kannada" }, { "ko", "Korean" }, @@ -175,6 +179,7 @@ { "mn", "Mongolian" }, { "mni", "Manipuri" }, { "mo", "Moldavian" }, + { "moh", "Mohawk" }, { "mos", "Mossi" }, { "mr", "Marathi" }, { "ms", "Malay" }, @@ -207,6 +212,7 @@ { "pa", "Punjabi" }, { "pag", "Pangasinan" }, { "pam", "Pampanga" }, + { "pap", "Papiamento" }, { "pbb", "Páez" }, { "pi", "Pali" }, { "pl", "Polish" }, @@ -214,12 +220,13 @@ { "pt", "Portuguese" }, { "qu", "Quechua" }, { "raj", "Rajasthani" }, - { "rm", "Rhaeto-Roman" }, + { "rm", "Romansh" }, { "rn", "Kirundi" }, { "ro", "Romanian" }, { "ru", "Russian" }, { "rw", "Kinyarwanda" }, { "sa", "Sanskrit" }, + { "sah", "Yakut" }, { "sas", "Sasak" }, { "sat", "Santali" }, { "sc", "Sardinian" }, @@ -233,6 +240,10 @@ { "sk", "Slovak" }, { "sl", "Slovenian" }, { "sm", "Samoan" }, + { "sma", "Southern Sami" }, + { "smj", "Lule Sami" }, + { "smn", "Inari Sami" }, + { "sms", "Skolt Sami" }, { "sn", "Shona" }, { "so", "Somali" }, { "sq", "Albanian" }, diff -Nru gettext-0.17/gettext-tools/src/Makefile.am gettext-0.18.1.1/gettext-tools/src/Makefile.am --- gettext-0.17/gettext-tools/src/Makefile.am 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/Makefile.am 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/src subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -39,9 +39,9 @@ str-list.h \ color.h write-catalog.h write-po.h write-properties.h write-stringtable.h \ dir-list.h file-list.h po-gram-gen.h po-gram-gen2.h \ -msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-cat.h \ +msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-cat.h msgl-header.h \ msgl-english.h msgl-check.h msgl-fsearch.h msgfmt.h msgunfmt.h \ -plural-count.h plural-eval.h \ +plural-count.h plural-eval.h plural-distrib.h \ read-mo.h write-mo.h \ read-java.h write-java.h \ read-csharp.h write-csharp.h \ @@ -70,6 +70,7 @@ DEFS = \ -DLOCALEDIR=\"$(localedir)\" -DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \ -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ + -DUSEJAVA=$(USEJAVA) \ -DUSEJEXE=$(USEJEXE) \ -DGETTEXTJEXEDIR=\"$(pkglibdir)\" \ -DGETTEXTJAR=\"$(jardir)/gettext.jar\" \ @@ -78,7 +79,9 @@ -DPROJECTSDIR=\"$(projectsdir)\" @DEFS@ # Ensure that defines SIZE_MAX in C++ mode, like it does in C mode. AM_CXXFLAGS = -D__STDC_LIMIT_MACROS -LDADD = ../gnulib-lib/libgettextlib.la @LTLIBINTL@ $(WOE32_LDADD) + +LDADD = ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ $(WOE32_LDADD) +OTHERPROGDEPENDENCIES = ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) SED = sed YACC = @YACC@ -d @@ -113,14 +116,16 @@ format-c.c format-sh.c format-python.c format-lisp.c format-elisp.c \ format-librep.c format-scheme.c format-java.c format-csharp.c format-awk.c \ format-pascal.c format-ycp.c format-tcl.c format-perl.c format-perl-brace.c \ -format-php.c format-gcc-internal.c format-qt.c format-kde.c format-boost.c +format-php.c format-gcc-internal.c format-gfc-internal.c \ +format-qt.c format-qt-plural.c format-kde.c format-boost.c # libgettextsrc contains all code that is needed by at least two programs. libgettextsrc_la_SOURCES = \ $(COMMON_SOURCE) read-catalog.c \ color.c write-catalog.c write-properties.c write-stringtable.c write-po.c \ -msgl-ascii.c msgl-iconv.c msgl-equal.c msgl-cat.c msgl-english.c msgl-check.c \ -file-list.c msgl-charset.c po-time.c plural-exp.c plural-eval.c plural-table.c \ +msgl-ascii.c msgl-iconv.c msgl-equal.c msgl-cat.c msgl-header.c msgl-english.c \ +msgl-check.c file-list.c msgl-charset.c po-time.c plural-exp.c plural-eval.c \ +plural-table.c \ $(FORMAT_SOURCE) # msggrep needs pattern matching. @@ -128,6 +133,7 @@ # Source dependencies. msgcmp_SOURCES = msgcmp.c +msgcmp_SOURCES += msgl-fsearch.c msgfmt_SOURCES = msgfmt.c msgfmt_SOURCES += \ write-mo.c write-java.c write-csharp.c write-resources.c write-tcl.c \ @@ -137,7 +143,7 @@ else msgmerge_SOURCES = ../woe32dll/c++msgmerge.cc endif -msgmerge_SOURCES += msgl-fsearch.c plural-count.c +msgmerge_SOURCES += msgl-fsearch.c lang-table.c plural-count.c msgunfmt_SOURCES = msgunfmt.c msgunfmt_SOURCES += \ read-mo.c read-java.c read-csharp.c read-resources.c read-tcl.c @@ -206,12 +212,15 @@ # How to build libgettextsrc.la. # Need ../gnulib-lib/libgettextlib.la. +# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be +# taken from libunistring, when the configure option --with-libunistring-prefix +# was given. # Need @LTLIBINTL@ because many source files use gettext(). # Need @LTLIBICONV@ because po-charset.c, po-lex.c, msgl-iconv.c, write-po.c # use iconv(). libgettextsrc_la_LDFLAGS = \ -release @VERSION@ \ - ../gnulib-lib/libgettextlib.la @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@ + ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ -lc @LTNOUNDEF@ # Tell the mingw or Cygwin linker which symbols to export. if WOE32DLL @@ -235,7 +244,7 @@ # INTL_MACOSX_LIBS is needed because the programs depend on libintl.la # but libtool doesn't put -Wl,-framework options into .la files. # For msginit, it is also needed because of localename.c. -msgcmp_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) +msgcmp_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ @MSGMERGE_LIBM@ $(WOE32_LDADD) msgfmt_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msgmerge_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ @MSGMERGE_LIBM@ $(WOE32_LDADD) $(OPENMP_CFLAGS) msgunfmt_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) @@ -250,7 +259,26 @@ msggrep_LDADD = $(LIBGREP) libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msginit_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msguniq_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) -recode_sr_latin_LDADD = ../gnulib-lib/libgettextlib.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) + +# Specify when to relink the programs. +msgcmp_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgfmt_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgmerge_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgunfmt_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +xgettext_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgattrib_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgcat_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgcomm_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgconv_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgen_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgexec_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgfilter_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msggrep_DEPENDENCIES = $(LIBGREP) libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msginit_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msguniq_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +recode_sr_latin_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) +hostname_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) +urlget_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) # Specify installation directory, for --enable-relocatable. msgcmp_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" @@ -294,92 +322,92 @@ # Linking with C++ libraries is needed _only_ on mingw and Cygwin. if !WOE32DLL -libgettextsrc_la_LINK = $(LIBTOOL) --tag=CC \ +libgettextsrc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextsrc_la_LDFLAGS) $(LDFLAGS) \ -o $@ -msgattrib_LINK = $(LIBTOOL) --tag=CC \ +msgattrib_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgattrib_LDFLAGS) $(LDFLAGS) \ -o $@ -msgcat_LINK = $(LIBTOOL) --tag=CC \ +msgcat_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgcat_LDFLAGS) $(LDFLAGS) \ -o $@ -msgcomm_LINK = $(LIBTOOL) --tag=CC \ +msgcomm_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgcomm_LDFLAGS) $(LDFLAGS) \ -o $@ -msgconv_LINK = $(LIBTOOL) --tag=CC \ +msgconv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgconv_LDFLAGS) $(LDFLAGS) \ -o $@ -msgen_LINK = $(LIBTOOL) --tag=CC \ +msgen_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgen_LDFLAGS) $(LDFLAGS) \ -o $@ -msgfilter_LINK = $(LIBTOOL) --tag=CC \ +msgfilter_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgfilter_LDFLAGS) $(LDFLAGS) \ -o $@ -msggrep_LINK = $(LIBTOOL) --tag=CC \ +msggrep_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msggrep_LDFLAGS) $(LDFLAGS) \ -o $@ -msgmerge_LINK = $(LIBTOOL) --tag=CC \ +msgmerge_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(msgmerge_CFLAGS) $(CFLAGS) $(msgmerge_LDFLAGS) $(LDFLAGS) \ -o $@ -msguniq_LINK = $(LIBTOOL) --tag=CC \ +msguniq_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msguniq_LDFLAGS) $(LDFLAGS) \ -o $@ -xgettext_LINK = $(LIBTOOL) --tag=CC \ +xgettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(xgettext_LDFLAGS) $(LDFLAGS) \ -o $@ else -libgettextsrc_la_LINK = $(LIBTOOL) --tag=CXX \ +libgettextsrc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextsrc_la_LDFLAGS) $(LDFLAGS) \ -o $@ -msgattrib_LINK = $(LIBTOOL) --tag=CXX \ +msgattrib_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgattrib_LDFLAGS) $(LDFLAGS) \ -o $@ -msgcat_LINK = $(LIBTOOL) --tag=CXX \ +msgcat_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgcat_LDFLAGS) $(LDFLAGS) \ -o $@ -msgcomm_LINK = $(LIBTOOL) --tag=CXX \ +msgcomm_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgcomm_LDFLAGS) $(LDFLAGS) \ -o $@ -msgconv_LINK = $(LIBTOOL) --tag=CXX \ +msgconv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgconv_LDFLAGS) $(LDFLAGS) \ -o $@ -msgen_LINK = $(LIBTOOL) --tag=CXX \ +msgen_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgen_LDFLAGS) $(LDFLAGS) \ -o $@ -msgfilter_LINK = $(LIBTOOL) --tag=CXX \ +msgfilter_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgfilter_LDFLAGS) $(LDFLAGS) \ -o $@ -msggrep_LINK = $(LIBTOOL) --tag=CXX \ +msggrep_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msggrep_LDFLAGS) $(LDFLAGS) \ -o $@ -msgmerge_LINK = $(LIBTOOL) --tag=CXX \ +msgmerge_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(msgmerge_CXXFLAGS) $(CXXFLAGS) $(msgmerge_LDFLAGS) $(LDFLAGS) \ -o $@ -msguniq_LINK = $(LIBTOOL) --tag=CXX \ +msguniq_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msguniq_LDFLAGS) $(LDFLAGS) \ -o $@ -xgettext_LINK = $(LIBTOOL) --tag=CXX \ +xgettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(xgettext_LDFLAGS) $(LDFLAGS) \ -o $@ @@ -419,6 +447,12 @@ # Special rules for Java compilation. +USEJAVA = $(USEJAVA_@BUILDJAVAEXE@) +USEJAVA_yes = 1 +USEJAVA_no = $(USEJAVA_no_@BUILDJAVA@) +USEJAVA_no_yes = 1 +USEJAVA_no_no = 0 + USEJEXE = $(USEJEXE_@BUILDJAVAEXE@) USEJEXE_yes = 1 USEJEXE_no = 0 @@ -541,6 +575,7 @@ RELOCATABLE_SRC_DIR = $(top_srcdir)/gnulib-lib RELOCATABLE_BUILD_DIR = ../gnulib-lib RELOCATABLE_CONFIG_H_DIR = .. +RELOCATABLE_STRIP = : # Version information according to Woe32 conventions. if WOE32 diff -Nru gettext-0.17/gettext-tools/src/Makefile.in gettext-0.18.1.1/gettext-tools/src/Makefile.in --- gettext-0.17/gettext-tools/src/Makefile.in 2007-11-06 23:40:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/Makefile.in 2010-06-06 20:12:32.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -18,6 +19,7 @@ VPATH = @srcdir@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -51,28 +53,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -80,13 +95,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -95,23 +111,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -119,68 +143,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -200,13 +254,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -214,14 +268,29 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = user-email +CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" -libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libgettextsrc_la_LIBADD = am__libgettextsrc_la_SOURCES_DIST = message.c po-error.c po-xerror.c \ @@ -229,14 +298,15 @@ read-po.c read-properties.c read-stringtable.c open-catalog.c \ dir-list.c str-list.c read-catalog.c color.c write-catalog.c \ write-properties.c write-stringtable.c write-po.c msgl-ascii.c \ - msgl-iconv.c msgl-equal.c msgl-cat.c msgl-english.c \ - msgl-check.c file-list.c msgl-charset.c po-time.c plural-exp.c \ - plural-eval.c plural-table.c format.c format-invalid.h \ - format-c.c format-sh.c format-python.c format-lisp.c \ - format-elisp.c format-librep.c format-scheme.c format-java.c \ - format-csharp.c format-awk.c format-pascal.c format-ycp.c \ - format-tcl.c format-perl.c format-perl-brace.c format-php.c \ - format-gcc-internal.c format-qt.c format-kde.c format-boost.c \ + msgl-iconv.c msgl-equal.c msgl-cat.c msgl-header.c \ + msgl-english.c msgl-check.c file-list.c msgl-charset.c \ + po-time.c plural-exp.c plural-eval.c plural-table.c format.c \ + format-invalid.h format-c.c format-sh.c format-python.c \ + format-lisp.c format-elisp.c format-librep.c format-scheme.c \ + format-java.c format-csharp.c format-awk.c format-pascal.c \ + format-ycp.c format-tcl.c format-perl.c format-perl-brace.c \ + format-php.c format-gcc-internal.c format-gfc-internal.c \ + format-qt.c format-qt-plural.c format-kde.c format-boost.c \ ../woe32dll/c++format.cc ../woe32dll/gettextsrc-exports.c am__objects_1 = message.lo po-error.lo po-xerror.lo \ read-catalog-abstract.lo po-lex.lo po-gram-gen.lo \ @@ -250,7 +320,9 @@ @WOE32DLL_FALSE@ format-pascal.lo format-ycp.lo format-tcl.lo \ @WOE32DLL_FALSE@ format-perl.lo format-perl-brace.lo \ @WOE32DLL_FALSE@ format-php.lo format-gcc-internal.lo \ -@WOE32DLL_FALSE@ format-qt.lo format-kde.lo format-boost.lo +@WOE32DLL_FALSE@ format-gfc-internal.lo format-qt.lo \ +@WOE32DLL_FALSE@ format-qt-plural.lo format-kde.lo \ +@WOE32DLL_FALSE@ format-boost.lo @WOE32DLL_TRUE@am__objects_2 = c++format.lo format-c.lo format-sh.lo \ @WOE32DLL_TRUE@ format-python.lo format-lisp.lo format-elisp.lo \ @WOE32DLL_TRUE@ format-librep.lo format-scheme.lo \ @@ -258,65 +330,62 @@ @WOE32DLL_TRUE@ format-pascal.lo format-ycp.lo format-tcl.lo \ @WOE32DLL_TRUE@ format-perl.lo format-perl-brace.lo \ @WOE32DLL_TRUE@ format-php.lo format-gcc-internal.lo \ -@WOE32DLL_TRUE@ format-qt.lo format-kde.lo format-boost.lo +@WOE32DLL_TRUE@ format-gfc-internal.lo format-qt.lo \ +@WOE32DLL_TRUE@ format-qt-plural.lo format-kde.lo \ +@WOE32DLL_TRUE@ format-boost.lo @WOE32DLL_TRUE@am__objects_3 = gettextsrc-exports.lo am_libgettextsrc_la_OBJECTS = $(am__objects_1) read-catalog.lo \ color.lo write-catalog.lo write-properties.lo \ write-stringtable.lo write-po.lo msgl-ascii.lo msgl-iconv.lo \ - msgl-equal.lo msgl-cat.lo msgl-english.lo msgl-check.lo \ - file-list.lo msgl-charset.lo po-time.lo plural-exp.lo \ - plural-eval.lo plural-table.lo $(am__objects_2) \ + msgl-equal.lo msgl-cat.lo msgl-header.lo msgl-english.lo \ + msgl-check.lo file-list.lo msgl-charset.lo po-time.lo \ + plural-exp.lo plural-eval.lo plural-table.lo $(am__objects_2) \ $(am__objects_3) libgettextsrc_la_OBJECTS = $(am_libgettextsrc_la_OBJECTS) -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am_hostname_OBJECTS = hostname-hostname.$(OBJEXT) hostname_OBJECTS = $(am_hostname_OBJECTS) hostname_LDADD = $(LDADD) -@WOE32_TRUE@am__DEPENDENCIES_1 = gettext.res -hostname_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ - $(am__DEPENDENCIES_1) -hostname_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(hostname_LDFLAGS) \ - $(LDFLAGS) -o $@ +am__DEPENDENCIES_1 = +@WOE32_TRUE@am__DEPENDENCIES_2 = gettext.res +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +hostname_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(hostname_LDFLAGS) $(LDFLAGS) -o $@ am__msgattrib_SOURCES_DIST = msgattrib.c ../woe32dll/c++msgattrib.cc @WOE32DLL_FALSE@am_msgattrib_OBJECTS = msgattrib-msgattrib.$(OBJEXT) @WOE32DLL_TRUE@am_msgattrib_OBJECTS = \ @WOE32DLL_TRUE@ msgattrib-c++msgattrib.$(OBJEXT) msgattrib_OBJECTS = $(am_msgattrib_OBJECTS) -msgattrib_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am__msgcat_SOURCES_DIST = msgcat.c ../woe32dll/c++msgcat.cc @WOE32DLL_FALSE@am_msgcat_OBJECTS = msgcat-msgcat.$(OBJEXT) @WOE32DLL_TRUE@am_msgcat_OBJECTS = msgcat-c++msgcat.$(OBJEXT) msgcat_OBJECTS = $(am_msgcat_OBJECTS) -msgcat_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -am_msgcmp_OBJECTS = msgcmp-msgcmp.$(OBJEXT) +am_msgcmp_OBJECTS = msgcmp-msgcmp.$(OBJEXT) \ + msgcmp-msgl-fsearch.$(OBJEXT) msgcmp_OBJECTS = $(am_msgcmp_OBJECTS) -msgcmp_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -msgcmp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgcmp_LDFLAGS) \ - $(LDFLAGS) -o $@ +msgcmp_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(msgcmp_LDFLAGS) $(LDFLAGS) -o $@ am__msgcomm_SOURCES_DIST = msgcomm.c ../woe32dll/c++msgcomm.cc @WOE32DLL_FALSE@am_msgcomm_OBJECTS = msgcomm-msgcomm.$(OBJEXT) @WOE32DLL_TRUE@am_msgcomm_OBJECTS = msgcomm-c++msgcomm.$(OBJEXT) msgcomm_OBJECTS = $(am_msgcomm_OBJECTS) -msgcomm_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am__msgconv_SOURCES_DIST = msgconv.c ../woe32dll/c++msgconv.cc @WOE32DLL_FALSE@am_msgconv_OBJECTS = msgconv-msgconv.$(OBJEXT) @WOE32DLL_TRUE@am_msgconv_OBJECTS = msgconv-c++msgconv.$(OBJEXT) msgconv_OBJECTS = $(am_msgconv_OBJECTS) -msgconv_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am__msgen_SOURCES_DIST = msgen.c ../woe32dll/c++msgen.cc @WOE32DLL_FALSE@am_msgen_OBJECTS = msgen-msgen.$(OBJEXT) @WOE32DLL_TRUE@am_msgen_OBJECTS = msgen-c++msgen.$(OBJEXT) msgen_OBJECTS = $(am_msgen_OBJECTS) -msgen_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am_msgexec_OBJECTS = msgexec-msgexec.$(OBJEXT) msgexec_OBJECTS = $(am_msgexec_OBJECTS) -msgexec_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -msgexec_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgexec_LDFLAGS) \ - $(LDFLAGS) -o $@ +msgexec_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(msgexec_LDFLAGS) $(LDFLAGS) -o $@ am__msgfilter_SOURCES_DIST = msgfilter.c filter-sr-latin.c \ ../woe32dll/c++msgfilter.cc @WOE32DLL_FALSE@am_msgfilter_OBJECTS = msgfilter-msgfilter.$(OBJEXT) \ @@ -325,73 +394,63 @@ @WOE32DLL_TRUE@ msgfilter-c++msgfilter.$(OBJEXT) \ @WOE32DLL_TRUE@ msgfilter-filter-sr-latin.$(OBJEXT) msgfilter_OBJECTS = $(am_msgfilter_OBJECTS) -msgfilter_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am_msgfmt_OBJECTS = msgfmt-msgfmt.$(OBJEXT) msgfmt-write-mo.$(OBJEXT) \ msgfmt-write-java.$(OBJEXT) msgfmt-write-csharp.$(OBJEXT) \ msgfmt-write-resources.$(OBJEXT) msgfmt-write-tcl.$(OBJEXT) \ msgfmt-write-qt.$(OBJEXT) msgfmt-hash-string.$(OBJEXT) msgfmt_OBJECTS = $(am_msgfmt_OBJECTS) -msgfmt_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -msgfmt_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgfmt_LDFLAGS) \ - $(LDFLAGS) -o $@ +msgfmt_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(msgfmt_LDFLAGS) $(LDFLAGS) -o $@ am__msggrep_SOURCES_DIST = msggrep.c ../woe32dll/c++msggrep.cc @WOE32DLL_FALSE@am_msggrep_OBJECTS = msggrep-msggrep.$(OBJEXT) @WOE32DLL_TRUE@am_msggrep_OBJECTS = msggrep-c++msggrep.$(OBJEXT) msggrep_OBJECTS = $(am_msggrep_OBJECTS) -msggrep_DEPENDENCIES = $(LIBGREP) libgettextsrc.la \ - $(am__DEPENDENCIES_1) am_msginit_OBJECTS = msginit-msginit.$(OBJEXT) \ msginit-lang-table.$(OBJEXT) msginit-plural-count.$(OBJEXT) \ msginit-localealias.$(OBJEXT) msginit-lock.$(OBJEXT) msginit_OBJECTS = $(am_msginit_OBJECTS) -msginit_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -msginit_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msginit_LDFLAGS) \ - $(LDFLAGS) -o $@ -am__msgmerge_SOURCES_DIST = msgmerge.c msgl-fsearch.c plural-count.c \ - ../woe32dll/c++msgmerge.cc +msginit_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(msginit_LDFLAGS) $(LDFLAGS) -o $@ +am__msgmerge_SOURCES_DIST = msgmerge.c msgl-fsearch.c lang-table.c \ + plural-count.c ../woe32dll/c++msgmerge.cc @WOE32DLL_FALSE@am_msgmerge_OBJECTS = msgmerge-msgmerge.$(OBJEXT) \ @WOE32DLL_FALSE@ msgmerge-msgl-fsearch.$(OBJEXT) \ +@WOE32DLL_FALSE@ msgmerge-lang-table.$(OBJEXT) \ @WOE32DLL_FALSE@ msgmerge-plural-count.$(OBJEXT) @WOE32DLL_TRUE@am_msgmerge_OBJECTS = msgmerge-c++msgmerge.$(OBJEXT) \ @WOE32DLL_TRUE@ msgmerge-msgl-fsearch.$(OBJEXT) \ +@WOE32DLL_TRUE@ msgmerge-lang-table.$(OBJEXT) \ @WOE32DLL_TRUE@ msgmerge-plural-count.$(OBJEXT) msgmerge_OBJECTS = $(am_msgmerge_OBJECTS) -am__DEPENDENCIES_2 = -msgmerge_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_2) am_msgunfmt_OBJECTS = msgunfmt-msgunfmt.$(OBJEXT) \ msgunfmt-read-mo.$(OBJEXT) msgunfmt-read-java.$(OBJEXT) \ msgunfmt-read-csharp.$(OBJEXT) \ msgunfmt-read-resources.$(OBJEXT) msgunfmt-read-tcl.$(OBJEXT) msgunfmt_OBJECTS = $(am_msgunfmt_OBJECTS) -msgunfmt_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -msgunfmt_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgunfmt_LDFLAGS) \ - $(LDFLAGS) -o $@ +msgunfmt_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(msgunfmt_LDFLAGS) $(LDFLAGS) -o $@ am__msguniq_SOURCES_DIST = msguniq.c ../woe32dll/c++msguniq.cc @WOE32DLL_FALSE@am_msguniq_OBJECTS = msguniq-msguniq.$(OBJEXT) @WOE32DLL_TRUE@am_msguniq_OBJECTS = msguniq-c++msguniq.$(OBJEXT) msguniq_OBJECTS = $(am_msguniq_OBJECTS) -msguniq_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) am_recode_sr_latin_OBJECTS = \ recode_sr_latin-recode-sr-latin.$(OBJEXT) \ recode_sr_latin-filter-sr-latin.$(OBJEXT) recode_sr_latin_OBJECTS = $(am_recode_sr_latin_OBJECTS) -recode_sr_latin_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ - $(am__DEPENDENCIES_1) -recode_sr_latin_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(recode_sr_latin_LDFLAGS) $(LDFLAGS) -o $@ +recode_sr_latin_LDADD = $(LDADD) +recode_sr_latin_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(AM_CFLAGS) $(CFLAGS) $(recode_sr_latin_LDFLAGS) $(LDFLAGS) \ + -o $@ am_urlget_OBJECTS = urlget-urlget.$(OBJEXT) urlget_OBJECTS = $(am_urlget_OBJECTS) urlget_LDADD = $(LDADD) -urlget_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ - $(am__DEPENDENCIES_1) -urlget_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(urlget_LDFLAGS) \ - $(LDFLAGS) -o $@ +urlget_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(urlget_LDFLAGS) $(LDFLAGS) -o $@ am__xgettext_SOURCES_DIST = xgettext.c x-c.c x-po.c x-sh.c x-python.c \ x-lisp.c x-elisp.c x-librep.c x-scheme.c x-smalltalk.c \ x-java.c x-csharp.c x-awk.c x-ycp.c x-tcl.c x-perl.c x-php.c \ @@ -433,32 +492,54 @@ @WOE32DLL_TRUE@ xgettext-x-rst.$(OBJEXT) \ @WOE32DLL_TRUE@ xgettext-x-glade.$(OBJEXT) xgettext_OBJECTS = $(am_xgettext_OBJECTS) -xgettext_DEPENDENCIES = libgettextsrc.la $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_$(V)) +am__v_CXX_ = $(am__v_CXX_$(AM_DEFAULT_VERBOSITY)) +am__v_CXX_0 = @echo " CXX " $@; CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_$(V)) +am__v_CXXLD_ = $(am__v_CXXLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CXXLD_0 = @echo " CXXLD " $@; YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS) -LTYACCCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS) +LTYACCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS) +AM_V_YACC = $(am__v_YACC_$(V)) +am__v_YACC_ = $(am__v_YACC_$(AM_DEFAULT_VERBOSITY)) +am__v_YACC_0 = @echo " YACC " $@; YLWRAP = $(top_srcdir)/../build-aux/ylwrap +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(libgettextsrc_la_SOURCES) $(hostname_SOURCES) \ $(msgattrib_SOURCES) $(msgcat_SOURCES) $(msgcmp_SOURCES) \ $(msgcomm_SOURCES) $(msgconv_SOURCES) $(msgen_SOURCES) \ @@ -487,8 +568,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -529,6 +614,7 @@ DEFS = \ -DLOCALEDIR=\"$(localedir)\" -DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \ -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ + -DUSEJAVA=$(USEJAVA) \ -DUSEJEXE=$(USEJEXE) \ -DGETTEXTJEXEDIR=\"$(pkglibdir)\" \ -DGETTEXTJAR=\"$(jardir)/gettext.jar\" \ @@ -538,136 +624,320 @@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -681,53 +951,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -740,17 +1090,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -758,18 +1111,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -784,6 +1145,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -794,37 +1156,80 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = ../gnulib-lib RELOCATABLE_CONFIG_H_DIR = .. @@ -833,57 +1238,142 @@ # Support for relocatability. RELOCATABLE_LIBRARY_PATH = $(libdir) RELOCATABLE_SRC_DIR = $(top_srcdir)/gnulib-lib +RELOCATABLE_STRIP = : +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = sed SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -893,13 +1383,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ -d YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -920,8 +1411,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -936,6 +1438,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -949,6 +1452,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies @@ -973,9 +1477,9 @@ str-list.h \ color.h write-catalog.h write-po.h write-properties.h write-stringtable.h \ dir-list.h file-list.h po-gram-gen.h po-gram-gen2.h \ -msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-cat.h \ +msgl-charset.h msgl-equal.h msgl-iconv.h msgl-ascii.h msgl-cat.h msgl-header.h \ msgl-english.h msgl-check.h msgl-fsearch.h msgfmt.h msgunfmt.h \ -plural-count.h plural-eval.h \ +plural-count.h plural-eval.h plural-distrib.h \ read-mo.h write-mo.h \ read-java.h write-java.h \ read-csharp.h write-csharp.h \ @@ -999,7 +1503,8 @@ # Ensure that defines SIZE_MAX in C++ mode, like it does in C mode. AM_CXXFLAGS = -D__STDC_LIMIT_MACROS -LDADD = ../gnulib-lib/libgettextlib.la @LTLIBINTL@ $(WOE32_LDADD) +LDADD = ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ $(WOE32_LDADD) +OTHERPROGDEPENDENCIES = ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) JAVACOMP = $(SHELL) ../javacomp.sh CSHARPCOMP = $(SHELL) ../csharpcomp.sh @@ -1024,7 +1529,8 @@ @WOE32DLL_FALSE@ format-java.c format-csharp.c format-awk.c \ @WOE32DLL_FALSE@ format-pascal.c format-ycp.c format-tcl.c \ @WOE32DLL_FALSE@ format-perl.c format-perl-brace.c format-php.c \ -@WOE32DLL_FALSE@ format-gcc-internal.c format-qt.c format-kde.c \ +@WOE32DLL_FALSE@ format-gcc-internal.c format-gfc-internal.c \ +@WOE32DLL_FALSE@ format-qt.c format-qt-plural.c format-kde.c \ @WOE32DLL_FALSE@ format-boost.c @WOE32DLL_TRUE@FORMAT_SOURCE = ../woe32dll/c++format.cc \ @WOE32DLL_TRUE@ format-invalid.h format-c.c format-sh.c \ @@ -1033,29 +1539,30 @@ @WOE32DLL_TRUE@ format-csharp.c format-awk.c format-pascal.c \ @WOE32DLL_TRUE@ format-ycp.c format-tcl.c format-perl.c \ @WOE32DLL_TRUE@ format-perl-brace.c format-php.c \ -@WOE32DLL_TRUE@ format-gcc-internal.c format-qt.c format-kde.c \ +@WOE32DLL_TRUE@ format-gcc-internal.c format-gfc-internal.c \ +@WOE32DLL_TRUE@ format-qt.c format-qt-plural.c format-kde.c \ @WOE32DLL_TRUE@ format-boost.c # libgettextsrc contains all code that is needed by at least two programs. libgettextsrc_la_SOURCES = $(COMMON_SOURCE) read-catalog.c color.c \ write-catalog.c write-properties.c write-stringtable.c \ write-po.c msgl-ascii.c msgl-iconv.c msgl-equal.c msgl-cat.c \ - msgl-english.c msgl-check.c file-list.c msgl-charset.c \ - po-time.c plural-exp.c plural-eval.c plural-table.c \ - $(FORMAT_SOURCE) $(am__append_1) + msgl-header.c msgl-english.c msgl-check.c file-list.c \ + msgl-charset.c po-time.c plural-exp.c plural-eval.c \ + plural-table.c $(FORMAT_SOURCE) $(am__append_1) # msggrep needs pattern matching. LIBGREP = ../libgrep/libgrep.a # Source dependencies. -msgcmp_SOURCES = msgcmp.c +msgcmp_SOURCES = msgcmp.c msgl-fsearch.c msgfmt_SOURCES = msgfmt.c write-mo.c write-java.c write-csharp.c \ write-resources.c write-tcl.c write-qt.c \ ../../gettext-runtime/intl/hash-string.c @WOE32DLL_FALSE@msgmerge_SOURCES = msgmerge.c msgl-fsearch.c \ -@WOE32DLL_FALSE@ plural-count.c +@WOE32DLL_FALSE@ lang-table.c plural-count.c @WOE32DLL_TRUE@msgmerge_SOURCES = ../woe32dll/c++msgmerge.cc \ -@WOE32DLL_TRUE@ msgl-fsearch.c plural-count.c +@WOE32DLL_TRUE@ msgl-fsearch.c lang-table.c plural-count.c msgunfmt_SOURCES = msgunfmt.c read-mo.c read-java.c read-csharp.c \ read-resources.c read-tcl.c @WOE32DLL_FALSE@xgettext_SOURCES = xgettext.c x-c.c x-po.c x-sh.c \ @@ -1099,12 +1606,15 @@ # How to build libgettextsrc.la. # Need ../gnulib-lib/libgettextlib.la. +# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be +# taken from libunistring, when the configure option --with-libunistring-prefix +# was given. # Need @LTLIBINTL@ because many source files use gettext(). # Need @LTLIBICONV@ because po-charset.c, po-lex.c, msgl-iconv.c, write-po.c # use iconv(). libgettextsrc_la_LDFLAGS = -release @VERSION@ \ - ../gnulib-lib/libgettextlib.la @LTLIBINTL@ @LTLIBICONV@ -lc \ - @LTNOUNDEF@ $(am__append_2) + ../gnulib-lib/libgettextlib.la $(LTLIBUNISTRING) @LTLIBINTL@ \ + @LTLIBICONV@ -lc @LTNOUNDEF@ $(am__append_2) # Compile-time flags for particular source files. msgmerge_CFLAGS = $(AM_CFLAGS) $(OPENMP_CFLAGS) @@ -1114,7 +1624,7 @@ # INTL_MACOSX_LIBS is needed because the programs depend on libintl.la # but libtool doesn't put -Wl,-framework options into .la files. # For msginit, it is also needed because of localename.c. -msgcmp_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) +msgcmp_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ @MSGMERGE_LIBM@ $(WOE32_LDADD) msgfmt_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msgmerge_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ @MSGMERGE_LIBM@ $(WOE32_LDADD) $(OPENMP_CFLAGS) msgunfmt_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) @@ -1129,7 +1639,26 @@ msggrep_LDADD = $(LIBGREP) libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msginit_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) msguniq_LDADD = libgettextsrc.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) -recode_sr_latin_LDADD = ../gnulib-lib/libgettextlib.la @INTL_MACOSX_LIBS@ $(WOE32_LDADD) + +# Specify when to relink the programs. +msgcmp_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgfmt_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgmerge_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgunfmt_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +xgettext_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgattrib_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgcat_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgcomm_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgconv_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgen_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgexec_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msgfilter_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msggrep_DEPENDENCIES = $(LIBGREP) libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msginit_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +msguniq_DEPENDENCIES = libgettextsrc.la ../gnulib-lib/libgettextlib.la $(WOE32_LDADD) +recode_sr_latin_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) +hostname_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) +urlget_DEPENDENCIES = $(OTHERPROGDEPENDENCIES) # Specify installation directory, for --enable-relocatable. msgcmp_CPPFLAGS = $(AM_CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" @@ -1170,112 +1699,112 @@ @RELOCATABLE_VIA_LD_TRUE@urlget_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(pkglibdir)` # Linking with C++ libraries is needed _only_ on mingw and Cygwin. -@WOE32DLL_FALSE@libgettextsrc_la_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@libgettextsrc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libgettextsrc_la_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@libgettextsrc_la_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@libgettextsrc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(libgettextsrc_la_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgattrib_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgattrib_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgattrib_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgattrib_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgattrib_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgattrib_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgcat_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgcat_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgcat_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgcat_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgcat_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgcat_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgcomm_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgcomm_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgcomm_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgcomm_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgcomm_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgcomm_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgconv_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgconv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgconv_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgconv_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgconv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgconv_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgen_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgen_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgen_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgen_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgen_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgen_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgfilter_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgfilter_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msgfilter_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgfilter_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgfilter_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msgfilter_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msggrep_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msggrep_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msggrep_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msggrep_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msggrep_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msggrep_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msgmerge_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msgmerge_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(msgmerge_CFLAGS) $(CFLAGS) $(msgmerge_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msgmerge_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msgmerge_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(msgmerge_CXXFLAGS) $(CXXFLAGS) $(msgmerge_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@msguniq_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@msguniq_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(msguniq_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@msguniq_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@msguniq_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(msguniq_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ -@WOE32DLL_FALSE@xgettext_LINK = $(LIBTOOL) --tag=CC \ +@WOE32DLL_FALSE@xgettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ @WOE32DLL_FALSE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_FALSE@ $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(xgettext_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_FALSE@ -o $@ -@WOE32DLL_TRUE@xgettext_LINK = $(LIBTOOL) --tag=CXX \ +@WOE32DLL_TRUE@xgettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ @WOE32DLL_TRUE@ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ @WOE32DLL_TRUE@ $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(xgettext_LDFLAGS) $(LDFLAGS) \ @WOE32DLL_TRUE@ -o $@ @@ -1287,6 +1816,11 @@ # Special rules for Java compilation. +USEJAVA = $(USEJAVA_@BUILDJAVAEXE@) +USEJAVA_yes = 1 +USEJAVA_no = $(USEJAVA_no_@BUILDJAVA@) +USEJAVA_no_yes = 1 +USEJAVA_no_no = 0 USEJEXE = $(USEJEXE_@BUILDJAVAEXE@) USEJEXE_yes = 1 USEJEXE_no = 0 @@ -1303,14 +1837,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits src/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -1328,25 +1862,30 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): user-email: $(top_builddir)/config.status $(srcdir)/user-email.sh.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ + list2="$$list2 $$p"; \ else :; fi; \ - done + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: @@ -1358,35 +1897,50 @@ rm -f "$${dir}/so_locations"; \ done libgettextsrc.la: $(libgettextsrc_la_OBJECTS) $(libgettextsrc_la_DEPENDENCIES) - $(libgettextsrc_la_LINK) -rpath $(libdir) $(libgettextsrc_la_OBJECTS) $(libgettextsrc_la_LIBADD) $(LIBS) + $(AM_V_GEN)$(libgettextsrc_la_LINK) -rpath $(libdir) $(libgettextsrc_la_OBJECTS) $(libgettextsrc_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - || test -f $$p1 \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ - else :; fi; \ - done + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list installcheck-binPROGRAMS: $(bin_PROGRAMS) bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \ @@ -1405,65 +1959,67 @@ done; rm -f c$${pid}_.???; exit $$bad clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list hostname$(EXEEXT): $(hostname_OBJECTS) $(hostname_DEPENDENCIES) @rm -f hostname$(EXEEXT) - $(hostname_LINK) $(hostname_OBJECTS) $(hostname_LDADD) $(LIBS) + $(AM_V_CCLD)$(hostname_LINK) $(hostname_OBJECTS) $(hostname_LDADD) $(LIBS) msgattrib$(EXEEXT): $(msgattrib_OBJECTS) $(msgattrib_DEPENDENCIES) @rm -f msgattrib$(EXEEXT) - $(msgattrib_LINK) $(msgattrib_OBJECTS) $(msgattrib_LDADD) $(LIBS) + $(AM_V_GEN)$(msgattrib_LINK) $(msgattrib_OBJECTS) $(msgattrib_LDADD) $(LIBS) msgcat$(EXEEXT): $(msgcat_OBJECTS) $(msgcat_DEPENDENCIES) @rm -f msgcat$(EXEEXT) - $(msgcat_LINK) $(msgcat_OBJECTS) $(msgcat_LDADD) $(LIBS) + $(AM_V_GEN)$(msgcat_LINK) $(msgcat_OBJECTS) $(msgcat_LDADD) $(LIBS) msgcmp$(EXEEXT): $(msgcmp_OBJECTS) $(msgcmp_DEPENDENCIES) @rm -f msgcmp$(EXEEXT) - $(msgcmp_LINK) $(msgcmp_OBJECTS) $(msgcmp_LDADD) $(LIBS) + $(AM_V_CCLD)$(msgcmp_LINK) $(msgcmp_OBJECTS) $(msgcmp_LDADD) $(LIBS) msgcomm$(EXEEXT): $(msgcomm_OBJECTS) $(msgcomm_DEPENDENCIES) @rm -f msgcomm$(EXEEXT) - $(msgcomm_LINK) $(msgcomm_OBJECTS) $(msgcomm_LDADD) $(LIBS) + $(AM_V_GEN)$(msgcomm_LINK) $(msgcomm_OBJECTS) $(msgcomm_LDADD) $(LIBS) msgconv$(EXEEXT): $(msgconv_OBJECTS) $(msgconv_DEPENDENCIES) @rm -f msgconv$(EXEEXT) - $(msgconv_LINK) $(msgconv_OBJECTS) $(msgconv_LDADD) $(LIBS) + $(AM_V_GEN)$(msgconv_LINK) $(msgconv_OBJECTS) $(msgconv_LDADD) $(LIBS) msgen$(EXEEXT): $(msgen_OBJECTS) $(msgen_DEPENDENCIES) @rm -f msgen$(EXEEXT) - $(msgen_LINK) $(msgen_OBJECTS) $(msgen_LDADD) $(LIBS) + $(AM_V_GEN)$(msgen_LINK) $(msgen_OBJECTS) $(msgen_LDADD) $(LIBS) msgexec$(EXEEXT): $(msgexec_OBJECTS) $(msgexec_DEPENDENCIES) @rm -f msgexec$(EXEEXT) - $(msgexec_LINK) $(msgexec_OBJECTS) $(msgexec_LDADD) $(LIBS) + $(AM_V_CCLD)$(msgexec_LINK) $(msgexec_OBJECTS) $(msgexec_LDADD) $(LIBS) msgfilter$(EXEEXT): $(msgfilter_OBJECTS) $(msgfilter_DEPENDENCIES) @rm -f msgfilter$(EXEEXT) - $(msgfilter_LINK) $(msgfilter_OBJECTS) $(msgfilter_LDADD) $(LIBS) + $(AM_V_GEN)$(msgfilter_LINK) $(msgfilter_OBJECTS) $(msgfilter_LDADD) $(LIBS) msgfmt$(EXEEXT): $(msgfmt_OBJECTS) $(msgfmt_DEPENDENCIES) @rm -f msgfmt$(EXEEXT) - $(msgfmt_LINK) $(msgfmt_OBJECTS) $(msgfmt_LDADD) $(LIBS) + $(AM_V_CCLD)$(msgfmt_LINK) $(msgfmt_OBJECTS) $(msgfmt_LDADD) $(LIBS) msggrep$(EXEEXT): $(msggrep_OBJECTS) $(msggrep_DEPENDENCIES) @rm -f msggrep$(EXEEXT) - $(msggrep_LINK) $(msggrep_OBJECTS) $(msggrep_LDADD) $(LIBS) + $(AM_V_GEN)$(msggrep_LINK) $(msggrep_OBJECTS) $(msggrep_LDADD) $(LIBS) msginit$(EXEEXT): $(msginit_OBJECTS) $(msginit_DEPENDENCIES) @rm -f msginit$(EXEEXT) - $(msginit_LINK) $(msginit_OBJECTS) $(msginit_LDADD) $(LIBS) + $(AM_V_CCLD)$(msginit_LINK) $(msginit_OBJECTS) $(msginit_LDADD) $(LIBS) msgmerge$(EXEEXT): $(msgmerge_OBJECTS) $(msgmerge_DEPENDENCIES) @rm -f msgmerge$(EXEEXT) - $(msgmerge_LINK) $(msgmerge_OBJECTS) $(msgmerge_LDADD) $(LIBS) + $(AM_V_GEN)$(msgmerge_LINK) $(msgmerge_OBJECTS) $(msgmerge_LDADD) $(LIBS) msgunfmt$(EXEEXT): $(msgunfmt_OBJECTS) $(msgunfmt_DEPENDENCIES) @rm -f msgunfmt$(EXEEXT) - $(msgunfmt_LINK) $(msgunfmt_OBJECTS) $(msgunfmt_LDADD) $(LIBS) + $(AM_V_CCLD)$(msgunfmt_LINK) $(msgunfmt_OBJECTS) $(msgunfmt_LDADD) $(LIBS) msguniq$(EXEEXT): $(msguniq_OBJECTS) $(msguniq_DEPENDENCIES) @rm -f msguniq$(EXEEXT) - $(msguniq_LINK) $(msguniq_OBJECTS) $(msguniq_LDADD) $(LIBS) + $(AM_V_GEN)$(msguniq_LINK) $(msguniq_OBJECTS) $(msguniq_LDADD) $(LIBS) recode-sr-latin$(EXEEXT): $(recode_sr_latin_OBJECTS) $(recode_sr_latin_DEPENDENCIES) @rm -f recode-sr-latin$(EXEEXT) - $(recode_sr_latin_LINK) $(recode_sr_latin_OBJECTS) $(recode_sr_latin_LDADD) $(LIBS) + $(AM_V_CCLD)$(recode_sr_latin_LINK) $(recode_sr_latin_OBJECTS) $(recode_sr_latin_LDADD) $(LIBS) urlget$(EXEEXT): $(urlget_OBJECTS) $(urlget_DEPENDENCIES) @rm -f urlget$(EXEEXT) - $(urlget_LINK) $(urlget_OBJECTS) $(urlget_LDADD) $(LIBS) + $(AM_V_CCLD)$(urlget_LINK) $(urlget_OBJECTS) $(urlget_LDADD) $(LIBS) xgettext$(EXEEXT): $(xgettext_OBJECTS) $(xgettext_DEPENDENCIES) @rm -f xgettext$(EXEEXT) - $(xgettext_LINK) $(xgettext_OBJECTS) $(xgettext_LDADD) $(LIBS) + $(AM_V_GEN)$(xgettext_LINK) $(xgettext_OBJECTS) $(xgettext_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -1472,427 +2028,583 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< gettextsrc-exports.lo: ../woe32dll/gettextsrc-exports.c - $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gettextsrc-exports.lo `test -f '../woe32dll/gettextsrc-exports.c' || echo '$(srcdir)/'`../woe32dll/gettextsrc-exports.c + $(AM_V_CC) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gettextsrc-exports.lo `test -f '../woe32dll/gettextsrc-exports.c' || echo '$(srcdir)/'`../woe32dll/gettextsrc-exports.c hostname-hostname.o: hostname.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hostname_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hostname-hostname.o `test -f 'hostname.c' || echo '$(srcdir)/'`hostname.c hostname-hostname.obj: hostname.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hostname_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hostname-hostname.obj `if test -f 'hostname.c'; then $(CYGPATH_W) 'hostname.c'; else $(CYGPATH_W) '$(srcdir)/hostname.c'; fi` msgattrib-msgattrib.o: msgattrib.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgattrib_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgattrib-msgattrib.o `test -f 'msgattrib.c' || echo '$(srcdir)/'`msgattrib.c msgattrib-msgattrib.obj: msgattrib.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgattrib_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgattrib-msgattrib.obj `if test -f 'msgattrib.c'; then $(CYGPATH_W) 'msgattrib.c'; else $(CYGPATH_W) '$(srcdir)/msgattrib.c'; fi` msgcat-msgcat.o: msgcat.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcat_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcat-msgcat.o `test -f 'msgcat.c' || echo '$(srcdir)/'`msgcat.c msgcat-msgcat.obj: msgcat.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcat_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcat-msgcat.obj `if test -f 'msgcat.c'; then $(CYGPATH_W) 'msgcat.c'; else $(CYGPATH_W) '$(srcdir)/msgcat.c'; fi` msgcmp-msgcmp.o: msgcmp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcmp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcmp-msgcmp.o `test -f 'msgcmp.c' || echo '$(srcdir)/'`msgcmp.c msgcmp-msgcmp.obj: msgcmp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcmp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcmp-msgcmp.obj `if test -f 'msgcmp.c'; then $(CYGPATH_W) 'msgcmp.c'; else $(CYGPATH_W) '$(srcdir)/msgcmp.c'; fi` +msgcmp-msgl-fsearch.o: msgl-fsearch.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcmp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcmp-msgl-fsearch.o `test -f 'msgl-fsearch.c' || echo '$(srcdir)/'`msgl-fsearch.c + +msgcmp-msgl-fsearch.obj: msgl-fsearch.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcmp_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcmp-msgl-fsearch.obj `if test -f 'msgl-fsearch.c'; then $(CYGPATH_W) 'msgl-fsearch.c'; else $(CYGPATH_W) '$(srcdir)/msgl-fsearch.c'; fi` + msgcomm-msgcomm.o: msgcomm.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcomm_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcomm-msgcomm.o `test -f 'msgcomm.c' || echo '$(srcdir)/'`msgcomm.c msgcomm-msgcomm.obj: msgcomm.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcomm_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgcomm-msgcomm.obj `if test -f 'msgcomm.c'; then $(CYGPATH_W) 'msgcomm.c'; else $(CYGPATH_W) '$(srcdir)/msgcomm.c'; fi` msgconv-msgconv.o: msgconv.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgconv_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgconv-msgconv.o `test -f 'msgconv.c' || echo '$(srcdir)/'`msgconv.c msgconv-msgconv.obj: msgconv.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgconv_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgconv-msgconv.obj `if test -f 'msgconv.c'; then $(CYGPATH_W) 'msgconv.c'; else $(CYGPATH_W) '$(srcdir)/msgconv.c'; fi` msgen-msgen.o: msgen.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgen_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgen-msgen.o `test -f 'msgen.c' || echo '$(srcdir)/'`msgen.c msgen-msgen.obj: msgen.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgen_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgen-msgen.obj `if test -f 'msgen.c'; then $(CYGPATH_W) 'msgen.c'; else $(CYGPATH_W) '$(srcdir)/msgen.c'; fi` msgexec-msgexec.o: msgexec.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgexec_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgexec-msgexec.o `test -f 'msgexec.c' || echo '$(srcdir)/'`msgexec.c msgexec-msgexec.obj: msgexec.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgexec_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgexec-msgexec.obj `if test -f 'msgexec.c'; then $(CYGPATH_W) 'msgexec.c'; else $(CYGPATH_W) '$(srcdir)/msgexec.c'; fi` msgfilter-msgfilter.o: msgfilter.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfilter-msgfilter.o `test -f 'msgfilter.c' || echo '$(srcdir)/'`msgfilter.c msgfilter-msgfilter.obj: msgfilter.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfilter-msgfilter.obj `if test -f 'msgfilter.c'; then $(CYGPATH_W) 'msgfilter.c'; else $(CYGPATH_W) '$(srcdir)/msgfilter.c'; fi` msgfilter-filter-sr-latin.o: filter-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfilter-filter-sr-latin.o `test -f 'filter-sr-latin.c' || echo '$(srcdir)/'`filter-sr-latin.c msgfilter-filter-sr-latin.obj: filter-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfilter-filter-sr-latin.obj `if test -f 'filter-sr-latin.c'; then $(CYGPATH_W) 'filter-sr-latin.c'; else $(CYGPATH_W) '$(srcdir)/filter-sr-latin.c'; fi` msgfmt-msgfmt.o: msgfmt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-msgfmt.o `test -f 'msgfmt.c' || echo '$(srcdir)/'`msgfmt.c msgfmt-msgfmt.obj: msgfmt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-msgfmt.obj `if test -f 'msgfmt.c'; then $(CYGPATH_W) 'msgfmt.c'; else $(CYGPATH_W) '$(srcdir)/msgfmt.c'; fi` msgfmt-write-mo.o: write-mo.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-mo.o `test -f 'write-mo.c' || echo '$(srcdir)/'`write-mo.c msgfmt-write-mo.obj: write-mo.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-mo.obj `if test -f 'write-mo.c'; then $(CYGPATH_W) 'write-mo.c'; else $(CYGPATH_W) '$(srcdir)/write-mo.c'; fi` msgfmt-write-java.o: write-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-java.o `test -f 'write-java.c' || echo '$(srcdir)/'`write-java.c msgfmt-write-java.obj: write-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-java.obj `if test -f 'write-java.c'; then $(CYGPATH_W) 'write-java.c'; else $(CYGPATH_W) '$(srcdir)/write-java.c'; fi` msgfmt-write-csharp.o: write-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-csharp.o `test -f 'write-csharp.c' || echo '$(srcdir)/'`write-csharp.c msgfmt-write-csharp.obj: write-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-csharp.obj `if test -f 'write-csharp.c'; then $(CYGPATH_W) 'write-csharp.c'; else $(CYGPATH_W) '$(srcdir)/write-csharp.c'; fi` msgfmt-write-resources.o: write-resources.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-resources.o `test -f 'write-resources.c' || echo '$(srcdir)/'`write-resources.c msgfmt-write-resources.obj: write-resources.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-resources.obj `if test -f 'write-resources.c'; then $(CYGPATH_W) 'write-resources.c'; else $(CYGPATH_W) '$(srcdir)/write-resources.c'; fi` msgfmt-write-tcl.o: write-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-tcl.o `test -f 'write-tcl.c' || echo '$(srcdir)/'`write-tcl.c msgfmt-write-tcl.obj: write-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-tcl.obj `if test -f 'write-tcl.c'; then $(CYGPATH_W) 'write-tcl.c'; else $(CYGPATH_W) '$(srcdir)/write-tcl.c'; fi` msgfmt-write-qt.o: write-qt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-qt.o `test -f 'write-qt.c' || echo '$(srcdir)/'`write-qt.c msgfmt-write-qt.obj: write-qt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-write-qt.obj `if test -f 'write-qt.c'; then $(CYGPATH_W) 'write-qt.c'; else $(CYGPATH_W) '$(srcdir)/write-qt.c'; fi` msgfmt-hash-string.o: ../../gettext-runtime/intl/hash-string.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-hash-string.o `test -f '../../gettext-runtime/intl/hash-string.c' || echo '$(srcdir)/'`../../gettext-runtime/intl/hash-string.c msgfmt-hash-string.obj: ../../gettext-runtime/intl/hash-string.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgfmt-hash-string.obj `if test -f '../../gettext-runtime/intl/hash-string.c'; then $(CYGPATH_W) '../../gettext-runtime/intl/hash-string.c'; else $(CYGPATH_W) '$(srcdir)/../../gettext-runtime/intl/hash-string.c'; fi` msggrep-msggrep.o: msggrep.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msggrep_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msggrep-msggrep.o `test -f 'msggrep.c' || echo '$(srcdir)/'`msggrep.c msggrep-msggrep.obj: msggrep.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msggrep_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msggrep-msggrep.obj `if test -f 'msggrep.c'; then $(CYGPATH_W) 'msggrep.c'; else $(CYGPATH_W) '$(srcdir)/msggrep.c'; fi` msginit-msginit.o: msginit.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-msginit.o `test -f 'msginit.c' || echo '$(srcdir)/'`msginit.c msginit-msginit.obj: msginit.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-msginit.obj `if test -f 'msginit.c'; then $(CYGPATH_W) 'msginit.c'; else $(CYGPATH_W) '$(srcdir)/msginit.c'; fi` msginit-lang-table.o: lang-table.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-lang-table.o `test -f 'lang-table.c' || echo '$(srcdir)/'`lang-table.c msginit-lang-table.obj: lang-table.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-lang-table.obj `if test -f 'lang-table.c'; then $(CYGPATH_W) 'lang-table.c'; else $(CYGPATH_W) '$(srcdir)/lang-table.c'; fi` msginit-plural-count.o: plural-count.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-plural-count.o `test -f 'plural-count.c' || echo '$(srcdir)/'`plural-count.c msginit-plural-count.obj: plural-count.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-plural-count.obj `if test -f 'plural-count.c'; then $(CYGPATH_W) 'plural-count.c'; else $(CYGPATH_W) '$(srcdir)/plural-count.c'; fi` msginit-localealias.o: ../../gettext-runtime/intl/localealias.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-localealias.o `test -f '../../gettext-runtime/intl/localealias.c' || echo '$(srcdir)/'`../../gettext-runtime/intl/localealias.c msginit-localealias.obj: ../../gettext-runtime/intl/localealias.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-localealias.obj `if test -f '../../gettext-runtime/intl/localealias.c'; then $(CYGPATH_W) '../../gettext-runtime/intl/localealias.c'; else $(CYGPATH_W) '$(srcdir)/../../gettext-runtime/intl/localealias.c'; fi` msginit-lock.o: ../../gettext-runtime/intl/lock.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-lock.o `test -f '../../gettext-runtime/intl/lock.c' || echo '$(srcdir)/'`../../gettext-runtime/intl/lock.c msginit-lock.obj: ../../gettext-runtime/intl/lock.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msginit_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msginit-lock.obj `if test -f '../../gettext-runtime/intl/lock.c'; then $(CYGPATH_W) '../../gettext-runtime/intl/lock.c'; else $(CYGPATH_W) '$(srcdir)/../../gettext-runtime/intl/lock.c'; fi` msgmerge-msgmerge.o: msgmerge.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-msgmerge.o `test -f 'msgmerge.c' || echo '$(srcdir)/'`msgmerge.c msgmerge-msgmerge.obj: msgmerge.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-msgmerge.obj `if test -f 'msgmerge.c'; then $(CYGPATH_W) 'msgmerge.c'; else $(CYGPATH_W) '$(srcdir)/msgmerge.c'; fi` msgmerge-msgl-fsearch.o: msgl-fsearch.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-msgl-fsearch.o `test -f 'msgl-fsearch.c' || echo '$(srcdir)/'`msgl-fsearch.c msgmerge-msgl-fsearch.obj: msgl-fsearch.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-msgl-fsearch.obj `if test -f 'msgl-fsearch.c'; then $(CYGPATH_W) 'msgl-fsearch.c'; else $(CYGPATH_W) '$(srcdir)/msgl-fsearch.c'; fi` +msgmerge-lang-table.o: lang-table.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-lang-table.o `test -f 'lang-table.c' || echo '$(srcdir)/'`lang-table.c + +msgmerge-lang-table.obj: lang-table.c + $(AM_V_CC) @AM_BACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-lang-table.obj `if test -f 'lang-table.c'; then $(CYGPATH_W) 'lang-table.c'; else $(CYGPATH_W) '$(srcdir)/lang-table.c'; fi` + msgmerge-plural-count.o: plural-count.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-plural-count.o `test -f 'plural-count.c' || echo '$(srcdir)/'`plural-count.c msgmerge-plural-count.obj: plural-count.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CFLAGS) $(CFLAGS) -c -o msgmerge-plural-count.obj `if test -f 'plural-count.c'; then $(CYGPATH_W) 'plural-count.c'; else $(CYGPATH_W) '$(srcdir)/plural-count.c'; fi` msgunfmt-msgunfmt.o: msgunfmt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-msgunfmt.o `test -f 'msgunfmt.c' || echo '$(srcdir)/'`msgunfmt.c msgunfmt-msgunfmt.obj: msgunfmt.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-msgunfmt.obj `if test -f 'msgunfmt.c'; then $(CYGPATH_W) 'msgunfmt.c'; else $(CYGPATH_W) '$(srcdir)/msgunfmt.c'; fi` msgunfmt-read-mo.o: read-mo.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-mo.o `test -f 'read-mo.c' || echo '$(srcdir)/'`read-mo.c msgunfmt-read-mo.obj: read-mo.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-mo.obj `if test -f 'read-mo.c'; then $(CYGPATH_W) 'read-mo.c'; else $(CYGPATH_W) '$(srcdir)/read-mo.c'; fi` msgunfmt-read-java.o: read-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-java.o `test -f 'read-java.c' || echo '$(srcdir)/'`read-java.c msgunfmt-read-java.obj: read-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-java.obj `if test -f 'read-java.c'; then $(CYGPATH_W) 'read-java.c'; else $(CYGPATH_W) '$(srcdir)/read-java.c'; fi` msgunfmt-read-csharp.o: read-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-csharp.o `test -f 'read-csharp.c' || echo '$(srcdir)/'`read-csharp.c msgunfmt-read-csharp.obj: read-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-csharp.obj `if test -f 'read-csharp.c'; then $(CYGPATH_W) 'read-csharp.c'; else $(CYGPATH_W) '$(srcdir)/read-csharp.c'; fi` msgunfmt-read-resources.o: read-resources.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-resources.o `test -f 'read-resources.c' || echo '$(srcdir)/'`read-resources.c msgunfmt-read-resources.obj: read-resources.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-resources.obj `if test -f 'read-resources.c'; then $(CYGPATH_W) 'read-resources.c'; else $(CYGPATH_W) '$(srcdir)/read-resources.c'; fi` msgunfmt-read-tcl.o: read-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-tcl.o `test -f 'read-tcl.c' || echo '$(srcdir)/'`read-tcl.c msgunfmt-read-tcl.obj: read-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgunfmt_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msgunfmt-read-tcl.obj `if test -f 'read-tcl.c'; then $(CYGPATH_W) 'read-tcl.c'; else $(CYGPATH_W) '$(srcdir)/read-tcl.c'; fi` msguniq-msguniq.o: msguniq.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msguniq_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msguniq-msguniq.o `test -f 'msguniq.c' || echo '$(srcdir)/'`msguniq.c msguniq-msguniq.obj: msguniq.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msguniq_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o msguniq-msguniq.obj `if test -f 'msguniq.c'; then $(CYGPATH_W) 'msguniq.c'; else $(CYGPATH_W) '$(srcdir)/msguniq.c'; fi` recode_sr_latin-recode-sr-latin.o: recode-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(recode_sr_latin_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o recode_sr_latin-recode-sr-latin.o `test -f 'recode-sr-latin.c' || echo '$(srcdir)/'`recode-sr-latin.c recode_sr_latin-recode-sr-latin.obj: recode-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(recode_sr_latin_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o recode_sr_latin-recode-sr-latin.obj `if test -f 'recode-sr-latin.c'; then $(CYGPATH_W) 'recode-sr-latin.c'; else $(CYGPATH_W) '$(srcdir)/recode-sr-latin.c'; fi` recode_sr_latin-filter-sr-latin.o: filter-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(recode_sr_latin_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o recode_sr_latin-filter-sr-latin.o `test -f 'filter-sr-latin.c' || echo '$(srcdir)/'`filter-sr-latin.c recode_sr_latin-filter-sr-latin.obj: filter-sr-latin.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(recode_sr_latin_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o recode_sr_latin-filter-sr-latin.obj `if test -f 'filter-sr-latin.c'; then $(CYGPATH_W) 'filter-sr-latin.c'; else $(CYGPATH_W) '$(srcdir)/filter-sr-latin.c'; fi` urlget-urlget.o: urlget.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(urlget_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o urlget-urlget.o `test -f 'urlget.c' || echo '$(srcdir)/'`urlget.c urlget-urlget.obj: urlget.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(urlget_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o urlget-urlget.obj `if test -f 'urlget.c'; then $(CYGPATH_W) 'urlget.c'; else $(CYGPATH_W) '$(srcdir)/urlget.c'; fi` xgettext-xgettext.o: xgettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-xgettext.o `test -f 'xgettext.c' || echo '$(srcdir)/'`xgettext.c xgettext-xgettext.obj: xgettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-xgettext.obj `if test -f 'xgettext.c'; then $(CYGPATH_W) 'xgettext.c'; else $(CYGPATH_W) '$(srcdir)/xgettext.c'; fi` xgettext-x-c.o: x-c.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-c.o `test -f 'x-c.c' || echo '$(srcdir)/'`x-c.c xgettext-x-c.obj: x-c.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-c.obj `if test -f 'x-c.c'; then $(CYGPATH_W) 'x-c.c'; else $(CYGPATH_W) '$(srcdir)/x-c.c'; fi` xgettext-x-po.o: x-po.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-po.o `test -f 'x-po.c' || echo '$(srcdir)/'`x-po.c xgettext-x-po.obj: x-po.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-po.obj `if test -f 'x-po.c'; then $(CYGPATH_W) 'x-po.c'; else $(CYGPATH_W) '$(srcdir)/x-po.c'; fi` xgettext-x-sh.o: x-sh.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-sh.o `test -f 'x-sh.c' || echo '$(srcdir)/'`x-sh.c xgettext-x-sh.obj: x-sh.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-sh.obj `if test -f 'x-sh.c'; then $(CYGPATH_W) 'x-sh.c'; else $(CYGPATH_W) '$(srcdir)/x-sh.c'; fi` xgettext-x-python.o: x-python.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-python.o `test -f 'x-python.c' || echo '$(srcdir)/'`x-python.c xgettext-x-python.obj: x-python.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-python.obj `if test -f 'x-python.c'; then $(CYGPATH_W) 'x-python.c'; else $(CYGPATH_W) '$(srcdir)/x-python.c'; fi` xgettext-x-lisp.o: x-lisp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-lisp.o `test -f 'x-lisp.c' || echo '$(srcdir)/'`x-lisp.c xgettext-x-lisp.obj: x-lisp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-lisp.obj `if test -f 'x-lisp.c'; then $(CYGPATH_W) 'x-lisp.c'; else $(CYGPATH_W) '$(srcdir)/x-lisp.c'; fi` xgettext-x-elisp.o: x-elisp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-elisp.o `test -f 'x-elisp.c' || echo '$(srcdir)/'`x-elisp.c xgettext-x-elisp.obj: x-elisp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-elisp.obj `if test -f 'x-elisp.c'; then $(CYGPATH_W) 'x-elisp.c'; else $(CYGPATH_W) '$(srcdir)/x-elisp.c'; fi` xgettext-x-librep.o: x-librep.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-librep.o `test -f 'x-librep.c' || echo '$(srcdir)/'`x-librep.c xgettext-x-librep.obj: x-librep.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-librep.obj `if test -f 'x-librep.c'; then $(CYGPATH_W) 'x-librep.c'; else $(CYGPATH_W) '$(srcdir)/x-librep.c'; fi` xgettext-x-scheme.o: x-scheme.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-scheme.o `test -f 'x-scheme.c' || echo '$(srcdir)/'`x-scheme.c xgettext-x-scheme.obj: x-scheme.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-scheme.obj `if test -f 'x-scheme.c'; then $(CYGPATH_W) 'x-scheme.c'; else $(CYGPATH_W) '$(srcdir)/x-scheme.c'; fi` xgettext-x-smalltalk.o: x-smalltalk.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-smalltalk.o `test -f 'x-smalltalk.c' || echo '$(srcdir)/'`x-smalltalk.c xgettext-x-smalltalk.obj: x-smalltalk.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-smalltalk.obj `if test -f 'x-smalltalk.c'; then $(CYGPATH_W) 'x-smalltalk.c'; else $(CYGPATH_W) '$(srcdir)/x-smalltalk.c'; fi` xgettext-x-java.o: x-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-java.o `test -f 'x-java.c' || echo '$(srcdir)/'`x-java.c xgettext-x-java.obj: x-java.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-java.obj `if test -f 'x-java.c'; then $(CYGPATH_W) 'x-java.c'; else $(CYGPATH_W) '$(srcdir)/x-java.c'; fi` xgettext-x-csharp.o: x-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-csharp.o `test -f 'x-csharp.c' || echo '$(srcdir)/'`x-csharp.c xgettext-x-csharp.obj: x-csharp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-csharp.obj `if test -f 'x-csharp.c'; then $(CYGPATH_W) 'x-csharp.c'; else $(CYGPATH_W) '$(srcdir)/x-csharp.c'; fi` xgettext-x-awk.o: x-awk.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-awk.o `test -f 'x-awk.c' || echo '$(srcdir)/'`x-awk.c xgettext-x-awk.obj: x-awk.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-awk.obj `if test -f 'x-awk.c'; then $(CYGPATH_W) 'x-awk.c'; else $(CYGPATH_W) '$(srcdir)/x-awk.c'; fi` xgettext-x-ycp.o: x-ycp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-ycp.o `test -f 'x-ycp.c' || echo '$(srcdir)/'`x-ycp.c xgettext-x-ycp.obj: x-ycp.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-ycp.obj `if test -f 'x-ycp.c'; then $(CYGPATH_W) 'x-ycp.c'; else $(CYGPATH_W) '$(srcdir)/x-ycp.c'; fi` xgettext-x-tcl.o: x-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-tcl.o `test -f 'x-tcl.c' || echo '$(srcdir)/'`x-tcl.c xgettext-x-tcl.obj: x-tcl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-tcl.obj `if test -f 'x-tcl.c'; then $(CYGPATH_W) 'x-tcl.c'; else $(CYGPATH_W) '$(srcdir)/x-tcl.c'; fi` xgettext-x-perl.o: x-perl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-perl.o `test -f 'x-perl.c' || echo '$(srcdir)/'`x-perl.c xgettext-x-perl.obj: x-perl.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-perl.obj `if test -f 'x-perl.c'; then $(CYGPATH_W) 'x-perl.c'; else $(CYGPATH_W) '$(srcdir)/x-perl.c'; fi` xgettext-x-php.o: x-php.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-php.o `test -f 'x-php.c' || echo '$(srcdir)/'`x-php.c xgettext-x-php.obj: x-php.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-php.obj `if test -f 'x-php.c'; then $(CYGPATH_W) 'x-php.c'; else $(CYGPATH_W) '$(srcdir)/x-php.c'; fi` xgettext-x-rst.o: x-rst.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-rst.o `test -f 'x-rst.c' || echo '$(srcdir)/'`x-rst.c xgettext-x-rst.obj: x-rst.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-rst.obj `if test -f 'x-rst.c'; then $(CYGPATH_W) 'x-rst.c'; else $(CYGPATH_W) '$(srcdir)/x-rst.c'; fi` xgettext-x-glade.o: x-glade.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-glade.o `test -f 'x-glade.c' || echo '$(srcdir)/'`x-glade.c xgettext-x-glade.obj: x-glade.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xgettext-x-glade.obj `if test -f 'x-glade.c'; then $(CYGPATH_W) 'x-glade.c'; else $(CYGPATH_W) '$(srcdir)/x-glade.c'; fi` .cc.o: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: + $(AM_V_CXX) @AM_BACKSLASH@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: + $(AM_V_CXX) @AM_BACKSLASH@ $(LTCXXCOMPILE) -c -o $@ $< c++format.lo: ../woe32dll/c++format.cc - $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o c++format.lo `test -f '../woe32dll/c++format.cc' || echo '$(srcdir)/'`../woe32dll/c++format.cc + $(AM_V_CXX) @AM_BACKSLASH@ + $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o c++format.lo `test -f '../woe32dll/c++format.cc' || echo '$(srcdir)/'`../woe32dll/c++format.cc msgattrib-c++msgattrib.o: ../woe32dll/c++msgattrib.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgattrib_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgattrib-c++msgattrib.o `test -f '../woe32dll/c++msgattrib.cc' || echo '$(srcdir)/'`../woe32dll/c++msgattrib.cc msgattrib-c++msgattrib.obj: ../woe32dll/c++msgattrib.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgattrib_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgattrib-c++msgattrib.obj `if test -f '../woe32dll/c++msgattrib.cc'; then $(CYGPATH_W) '../woe32dll/c++msgattrib.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgattrib.cc'; fi` msgcat-c++msgcat.o: ../woe32dll/c++msgcat.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcat_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgcat-c++msgcat.o `test -f '../woe32dll/c++msgcat.cc' || echo '$(srcdir)/'`../woe32dll/c++msgcat.cc msgcat-c++msgcat.obj: ../woe32dll/c++msgcat.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcat_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgcat-c++msgcat.obj `if test -f '../woe32dll/c++msgcat.cc'; then $(CYGPATH_W) '../woe32dll/c++msgcat.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgcat.cc'; fi` msgcomm-c++msgcomm.o: ../woe32dll/c++msgcomm.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcomm_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgcomm-c++msgcomm.o `test -f '../woe32dll/c++msgcomm.cc' || echo '$(srcdir)/'`../woe32dll/c++msgcomm.cc msgcomm-c++msgcomm.obj: ../woe32dll/c++msgcomm.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgcomm_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgcomm-c++msgcomm.obj `if test -f '../woe32dll/c++msgcomm.cc'; then $(CYGPATH_W) '../woe32dll/c++msgcomm.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgcomm.cc'; fi` msgconv-c++msgconv.o: ../woe32dll/c++msgconv.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgconv-c++msgconv.o `test -f '../woe32dll/c++msgconv.cc' || echo '$(srcdir)/'`../woe32dll/c++msgconv.cc msgconv-c++msgconv.obj: ../woe32dll/c++msgconv.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgconv-c++msgconv.obj `if test -f '../woe32dll/c++msgconv.cc'; then $(CYGPATH_W) '../woe32dll/c++msgconv.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgconv.cc'; fi` msgen-c++msgen.o: ../woe32dll/c++msgen.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgen-c++msgen.o `test -f '../woe32dll/c++msgen.cc' || echo '$(srcdir)/'`../woe32dll/c++msgen.cc msgen-c++msgen.obj: ../woe32dll/c++msgen.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgen_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgen-c++msgen.obj `if test -f '../woe32dll/c++msgen.cc'; then $(CYGPATH_W) '../woe32dll/c++msgen.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgen.cc'; fi` msgfilter-c++msgfilter.o: ../woe32dll/c++msgfilter.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgfilter-c++msgfilter.o `test -f '../woe32dll/c++msgfilter.cc' || echo '$(srcdir)/'`../woe32dll/c++msgfilter.cc msgfilter-c++msgfilter.obj: ../woe32dll/c++msgfilter.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgfilter_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msgfilter-c++msgfilter.obj `if test -f '../woe32dll/c++msgfilter.cc'; then $(CYGPATH_W) '../woe32dll/c++msgfilter.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgfilter.cc'; fi` msggrep-c++msggrep.o: ../woe32dll/c++msggrep.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msggrep_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msggrep-c++msggrep.o `test -f '../woe32dll/c++msggrep.cc' || echo '$(srcdir)/'`../woe32dll/c++msggrep.cc msggrep-c++msggrep.obj: ../woe32dll/c++msggrep.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msggrep_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msggrep-c++msggrep.obj `if test -f '../woe32dll/c++msggrep.cc'; then $(CYGPATH_W) '../woe32dll/c++msggrep.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msggrep.cc'; fi` msgmerge-c++msgmerge.o: ../woe32dll/c++msgmerge.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CXXFLAGS) $(CXXFLAGS) -c -o msgmerge-c++msgmerge.o `test -f '../woe32dll/c++msgmerge.cc' || echo '$(srcdir)/'`../woe32dll/c++msgmerge.cc msgmerge-c++msgmerge.obj: ../woe32dll/c++msgmerge.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msgmerge_CPPFLAGS) $(CPPFLAGS) $(msgmerge_CXXFLAGS) $(CXXFLAGS) -c -o msgmerge-c++msgmerge.obj `if test -f '../woe32dll/c++msgmerge.cc'; then $(CYGPATH_W) '../woe32dll/c++msgmerge.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msgmerge.cc'; fi` msguniq-c++msguniq.o: ../woe32dll/c++msguniq.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msguniq_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msguniq-c++msguniq.o `test -f '../woe32dll/c++msguniq.cc' || echo '$(srcdir)/'`../woe32dll/c++msguniq.cc msguniq-c++msguniq.obj: ../woe32dll/c++msguniq.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(msguniq_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o msguniq-c++msguniq.obj `if test -f '../woe32dll/c++msguniq.cc'; then $(CYGPATH_W) '../woe32dll/c++msguniq.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++msguniq.cc'; fi` xgettext-c++xgettext.o: ../woe32dll/c++xgettext.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o xgettext-c++xgettext.o `test -f '../woe32dll/c++xgettext.cc' || echo '$(srcdir)/'`../woe32dll/c++xgettext.cc xgettext-c++xgettext.obj: ../woe32dll/c++xgettext.cc + $(AM_V_CXX) @AM_BACKSLASH@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(xgettext_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o xgettext-c++xgettext.obj `if test -f '../woe32dll/c++xgettext.cc'; then $(CYGPATH_W) '../woe32dll/c++xgettext.cc'; else $(CYGPATH_W) '$(srcdir)/../woe32dll/c++xgettext.cc'; fi` .y.c: - $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) + $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) mostlyclean-libtool: -rm -f *.lo @@ -1905,45 +2617,49 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -1964,13 +2680,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -2007,6 +2727,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @@ -2030,6 +2751,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -2038,19 +2761,29 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-binPROGRAMS install-exec-local \ install-libLTLIBRARIES install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: installcheck-binPROGRAMS maintainer-clean: maintainer-clean-am @@ -2073,7 +2806,7 @@ uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES \ uninstall-local -.MAKE: install-am install-strip +.MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ @@ -2219,6 +2952,7 @@ $(RM) $(DESTDIR)$(pkgdatadir)/msgunfmt.tcl @WOE32_TRUE@gettext.res : $(top_srcdir)/../windows/gettext.rc @WOE32_TRUE@ $(WINDRES) `$(SHELL) $(top_srcdir)/../windows/windres-options --escape $(VERSION)` -i $(top_srcdir)/../windows/gettext.rc -o gettext.res --output-format=coff + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/src/message.c gettext-0.18.1.1/gettext-tools/src/message.c --- gettext-0.17/gettext-tools/src/message.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/message.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -34,54 +34,58 @@ const char *const format_language[NFORMATS] = { - /* format_c */ "c", - /* format_objc */ "objc", - /* format_sh */ "sh", - /* format_python */ "python", - /* format_lisp */ "lisp", - /* format_elisp */ "elisp", - /* format_librep */ "librep", - /* format_scheme */ "scheme", - /* format_smalltalk */ "smalltalk", - /* format_java */ "java", - /* format_csharp */ "csharp", - /* format_awk */ "awk", - /* format_pascal */ "object-pascal", - /* format_ycp */ "ycp", - /* format_tcl */ "tcl", - /* format_perl */ "perl", - /* format_perl_brace */ "perl-brace", - /* format_php */ "php", - /* format_gcc_internal */ "gcc-internal", - /* format_qt */ "qt", - /* format_kde */ "kde", - /* format_boost */ "boost" + /* format_c */ "c", + /* format_objc */ "objc", + /* format_sh */ "sh", + /* format_python */ "python", + /* format_lisp */ "lisp", + /* format_elisp */ "elisp", + /* format_librep */ "librep", + /* format_scheme */ "scheme", + /* format_smalltalk */ "smalltalk", + /* format_java */ "java", + /* format_csharp */ "csharp", + /* format_awk */ "awk", + /* format_pascal */ "object-pascal", + /* format_ycp */ "ycp", + /* format_tcl */ "tcl", + /* format_perl */ "perl", + /* format_perl_brace */ "perl-brace", + /* format_php */ "php", + /* format_gcc_internal */ "gcc-internal", + /* format_gfc_internal */ "gfc-internal", + /* format_qt */ "qt", + /* format_qt_plursl */ "qt-plural", + /* format_kde */ "kde", + /* format_boost */ "boost" }; const char *const format_language_pretty[NFORMATS] = { - /* format_c */ "C", - /* format_objc */ "Objective C", - /* format_sh */ "Shell", - /* format_python */ "Python", - /* format_lisp */ "Lisp", - /* format_elisp */ "Emacs Lisp", - /* format_librep */ "librep", - /* format_scheme */ "Scheme", - /* format_smalltalk */ "Smalltalk", - /* format_java */ "Java", - /* format_csharp */ "C#", - /* format_awk */ "awk", - /* format_pascal */ "Object Pascal", - /* format_ycp */ "YCP", - /* format_tcl */ "Tcl", - /* format_perl */ "Perl", - /* format_perl_brace */ "Perl brace", - /* format_php */ "PHP", - /* format_gcc_internal */ "GCC internal", - /* format_qt */ "Qt", - /* format_kde */ "KDE", - /* format_boost */ "Boost" + /* format_c */ "C", + /* format_objc */ "Objective C", + /* format_sh */ "Shell", + /* format_python */ "Python", + /* format_lisp */ "Lisp", + /* format_elisp */ "Emacs Lisp", + /* format_librep */ "librep", + /* format_scheme */ "Scheme", + /* format_smalltalk */ "Smalltalk", + /* format_java */ "Java", + /* format_csharp */ "C#", + /* format_awk */ "awk", + /* format_pascal */ "Object Pascal", + /* format_ycp */ "YCP", + /* format_tcl */ "Tcl", + /* format_perl */ "Perl", + /* format_perl_brace */ "Perl brace", + /* format_php */ "PHP", + /* format_gcc_internal */ "GCC internal", + /* format_gfc_internal */ "GFC internal", + /* format_qt */ "Qt", + /* format_qt_plural */ "Qt plural", + /* format_kde */ "KDE", + /* format_boost */ "Boost" }; @@ -89,16 +93,16 @@ possible_format_p (enum is_format is_format) { return is_format == possible - || is_format == yes_according_to_context - || is_format == yes; + || is_format == yes_according_to_context + || is_format == yes; } message_ty * message_alloc (const char *msgctxt, - const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - const lex_pos_ty *pp) + const char *msgid, const char *msgid_plural, + const char *msgstr, size_t msgstr_len, + const lex_pos_ty *pp) { message_ty *mp; size_t i; @@ -117,6 +121,8 @@ mp->is_fuzzy = false; for (i = 0; i < NFORMATS; i++) mp->is_format[i] = undecided; + mp->range.min = -1; + mp->range.max = -1; mp->do_wrap = undecided; mp->prev_msgctxt = NULL; mp->prev_msgid = NULL; @@ -184,7 +190,7 @@ { pp = &mp->filepos[j]; if (strcmp (pp->file_name, name) == 0 && pp->line_number == line) - return; + return; } /* Extend the list so that we can add a position to it. */ @@ -205,22 +211,23 @@ size_t j, i; result = message_alloc (mp->msgctxt != NULL ? xstrdup (mp->msgctxt) : NULL, - xstrdup (mp->msgid), mp->msgid_plural, - mp->msgstr, mp->msgstr_len, &mp->pos); + xstrdup (mp->msgid), mp->msgid_plural, + mp->msgstr, mp->msgstr_len, &mp->pos); if (mp->comment) { for (j = 0; j < mp->comment->nitems; ++j) - message_comment_append (result, mp->comment->item[j]); + message_comment_append (result, mp->comment->item[j]); } if (mp->comment_dot) { for (j = 0; j < mp->comment_dot->nitems; ++j) - message_comment_dot_append (result, mp->comment_dot->item[j]); + message_comment_dot_append (result, mp->comment_dot->item[j]); } result->is_fuzzy = mp->is_fuzzy; for (i = 0; i < NFORMATS; i++) result->is_format[i] = mp->is_format[i]; + result->range = mp->range; result->do_wrap = mp->do_wrap; for (j = 0; j < mp->filepos_count; ++j) { @@ -320,7 +327,7 @@ if (mlp->use_hashtable) if (message_list_hash_insert_entry (&mlp->htable, mp)) /* A message list has duplicates, although it was allocated with the - assertion that it wouldn't have duplicates. It is a bug. */ + assertion that it wouldn't have duplicates. It is a bug. */ abort (); } @@ -346,7 +353,7 @@ if (mlp->use_hashtable) if (message_list_hash_insert_entry (&mlp->htable, mp)) /* A message list has duplicates, although it was allocated with the - assertion that it wouldn't have duplicates. It is a bug. */ + assertion that it wouldn't have duplicates. It is a bug. */ abort (); } @@ -372,7 +379,7 @@ if (mlp->use_hashtable) if (message_list_hash_insert_entry (&mlp->htable, mp)) /* A message list has duplicates, although it was allocated with the - assertion that it wouldn't have duplicates. It is a bug. */ + assertion that it wouldn't have duplicates. It is a bug. */ abort (); } @@ -402,7 +409,7 @@ void message_list_remove_if_not (message_list_ty *mlp, - message_predicate_ty *predicate) + message_predicate_ty *predicate) { size_t i, j; @@ -431,19 +438,19 @@ hash_init (&mlp->htable, size); for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - if (message_list_hash_insert_entry (&mlp->htable, mp)) - /* A message list has duplicates, although it was allocated with - the assertion that it wouldn't have duplicates, and before the - msgids changed it indeed didn't have duplicates. */ - { - hash_destroy (&mlp->htable); - mlp->use_hashtable = false; - return true; - } - } + if (message_list_hash_insert_entry (&mlp->htable, mp)) + /* A message list has duplicates, although it was allocated with + the assertion that it wouldn't have duplicates, and before the + msgids changed it indeed didn't have duplicates. */ + { + hash_destroy (&mlp->htable); + mlp->use_hashtable = false; + return true; + } + } } return false; } @@ -469,7 +476,7 @@ message_ty * message_list_search (message_list_ty *mlp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { if (mlp->use_hashtable) { @@ -478,35 +485,35 @@ size_t keylen; if (msgctxt != NULL) - { - /* Concatenate the msgctxt and msgid, to form the hash table key. */ - size_t msgctxt_len = strlen (msgctxt); - size_t msgid_len = strlen (msgid); - keylen = msgctxt_len + 1 + msgid_len + 1; - alloced_key = (char *) xmalloca (keylen); - memcpy (alloced_key, msgctxt, msgctxt_len); - alloced_key[msgctxt_len] = MSGCTXT_SEPARATOR; - memcpy (alloced_key + msgctxt_len + 1, msgid, msgid_len + 1); - key = alloced_key; - } + { + /* Concatenate the msgctxt and msgid, to form the hash table key. */ + size_t msgctxt_len = strlen (msgctxt); + size_t msgid_len = strlen (msgid); + keylen = msgctxt_len + 1 + msgid_len + 1; + alloced_key = (char *) xmalloca (keylen); + memcpy (alloced_key, msgctxt, msgctxt_len); + alloced_key[msgctxt_len] = MSGCTXT_SEPARATOR; + memcpy (alloced_key + msgctxt_len + 1, msgid, msgid_len + 1); + key = alloced_key; + } else - { - alloced_key = NULL; - key = msgid; - keylen = strlen (msgid) + 1; - } + { + alloced_key = NULL; + key = msgid; + keylen = strlen (msgid) + 1; + } { - void *htable_value; - int found = !hash_find_entry (&mlp->htable, key, keylen, &htable_value); + void *htable_value; + int found = !hash_find_entry (&mlp->htable, key, keylen, &htable_value); - if (msgctxt != NULL) - freea (alloced_key); + if (msgctxt != NULL) + freea (alloced_key); - if (found) - return (message_ty *) htable_value; - else - return NULL; + if (found) + return (message_ty *) htable_value; + else + return NULL; } } else @@ -514,16 +521,16 @@ size_t j; for (j = 0; j < mlp->nitems; ++j) - { - message_ty *mp; + { + message_ty *mp; - mp = mlp->item[j]; - if ((msgctxt != NULL - ? mp->msgctxt != NULL && strcmp (msgctxt, mp->msgctxt) == 0 - : mp->msgctxt == NULL) - && strcmp (msgid, mp->msgid) == 0) - return mp; - } + mp = mlp->item[j]; + if ((msgctxt != NULL + ? mp->msgctxt != NULL && strcmp (msgctxt, mp->msgctxt) == 0 + : mp->msgctxt == NULL) + && strcmp (msgid, mp->msgid) == 0) + return mp; + } return NULL; } } @@ -531,29 +538,44 @@ double fuzzy_search_goal_function (const message_ty *mp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid, + double lower_bound) { - /* The use of 'volatile' guarantees that excess precision bits are dropped - before the addition and before the following comparison at the caller's - site. It is necessary on x86 systems where double-floats are not IEEE - compliant by default, to avoid that msgmerge results become platform and - compiler option dependent. 'volatile' is a portable alternative to gcc's - -ffloat-store option. */ - volatile double weight = fstrcmp (msgid, mp->msgid); + double bonus = 0.0; /* A translation for a context is a good proposal also for another. But give mp a small advantage if mp is valid regardless of any context or has the same context as the one being looked up. */ if (mp->msgctxt == NULL || (msgctxt != NULL && strcmp (msgctxt, mp->msgctxt) == 0)) - weight += 0.00001; - return weight; + { + bonus = 0.00001; + /* Since we will consider (weight + bonus) at the end, we are only + interested in weights that are >= lower_bound - bonus. Subtract + a little more than the bonus, in order to avoid trouble due to + rounding errors. */ + lower_bound -= bonus * 1.01; + } + + { + /* The use of 'volatile' guarantees that excess precision bits are dropped + before the addition and before the following comparison at the caller's + site. It is necessary on x86 systems where double-floats are not IEEE + compliant by default, to avoid that msgmerge results become platform and + compiler option dependent. 'volatile' is a portable alternative to + gcc's -ffloat-store option. */ + volatile double weight = fstrcmp_bounded (msgid, mp->msgid, lower_bound); + + weight += bonus; + + return weight; + } } static message_ty * message_list_search_fuzzy_inner (message_list_ty *mlp, - const char *msgctxt, const char *msgid, - double *best_weight_p) + const char *msgctxt, const char *msgid, + double *best_weight_p) { size_t j; message_ty *best_mp; @@ -566,14 +588,15 @@ mp = mlp->item[j]; if (mp->msgstr != NULL && mp->msgstr[0] != '\0') - { - double weight = fuzzy_search_goal_function (mp, msgctxt, msgid); - if (weight > *best_weight_p) - { - *best_weight_p = weight; - best_mp = mp; - } - } + { + double weight = + fuzzy_search_goal_function (mp, msgctxt, msgid, *best_weight_p); + if (weight > *best_weight_p) + { + *best_weight_p = weight; + best_mp = mp; + } + } } return best_mp; } @@ -581,7 +604,7 @@ message_ty * message_list_search_fuzzy (message_list_ty *mlp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { double best_weight; @@ -634,7 +657,7 @@ void message_list_list_append_list (message_list_list_ty *mllp, - message_list_list_ty *mllp2) + message_list_list_ty *mllp2) { size_t j; @@ -645,7 +668,7 @@ message_ty * message_list_list_search (message_list_list_ty *mllp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { message_ty *best_mp; int best_weight; /* 0: not found, 1: found without msgstr, 2: translated */ @@ -661,14 +684,14 @@ mlp = mllp->item[j]; mp = message_list_search (mlp, msgctxt, msgid); if (mp) - { - int weight = (mp->msgstr_len == 1 && mp->msgstr[0] == '\0' ? 1 : 2); - if (weight > best_weight) - { - best_mp = mp; - best_weight = weight; - } - } + { + int weight = (mp->msgstr_len == 1 && mp->msgstr[0] == '\0' ? 1 : 2); + if (weight > best_weight) + { + best_mp = mp; + best_weight = weight; + } + } } return best_mp; } @@ -677,7 +700,7 @@ #if 0 /* unused */ message_ty * message_list_list_search_fuzzy (message_list_list_ty *mllp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { size_t j; double best_weight; @@ -693,7 +716,7 @@ mlp = mllp->item[j]; mp = message_list_search_fuzzy_inner (mlp, msgctxt, msgid, &best_weight); if (mp) - best_mp = mp; + best_mp = mp; } return best_mp; } @@ -780,7 +803,7 @@ message_list_ty * msgdomain_list_sublist (msgdomain_list_ty *mdlp, const char *domain, - bool create) + bool create) { size_t j; @@ -820,16 +843,16 @@ msgdomain_ty *mdp = mdlp->item[j]; if (copy_level < 2) - { - msgdomain_ty *result_mdp = XMALLOC (msgdomain_ty); + { + msgdomain_ty *result_mdp = XMALLOC (msgdomain_ty); - result_mdp->domain = mdp->domain; - result_mdp->messages = message_list_copy (mdp->messages, copy_level); + result_mdp->domain = mdp->domain; + result_mdp->messages = message_list_copy (mdp->messages, copy_level); - msgdomain_list_append (result, result_mdp); - } + msgdomain_list_append (result, result_mdp); + } else - msgdomain_list_append (result, mdp); + msgdomain_list_append (result, mdp); } return result; @@ -839,7 +862,7 @@ #if 0 /* unused */ message_ty * msgdomain_list_search (msgdomain_list_ty *mdlp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { size_t j; @@ -851,7 +874,7 @@ mdp = mdlp->item[j]; mp = message_list_search (mdp->messages, msgctxt, msgid); if (mp) - return mp; + return mp; } return NULL; } @@ -861,7 +884,7 @@ #if 0 /* unused */ message_ty * msgdomain_list_search_fuzzy (msgdomain_list_ty *mdlp, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { size_t j; double best_weight; @@ -876,9 +899,9 @@ mdp = mdlp->item[j]; mp = message_list_search_fuzzy_inner (mdp->messages, msgctxt, msgid, - &best_weight); + &best_weight); if (mp) - best_mp = mp; + best_mp = mp; } return best_mp; } diff -Nru gettext-0.17/gettext-tools/src/message.h gettext-0.18.1.1/gettext-tools/src/message.h --- gettext-0.17/gettext-tools/src/message.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/message.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -62,11 +62,13 @@ format_perl_brace, format_php, format_gcc_internal, + format_gfc_internal, format_qt, + format_qt_plural, format_kde, format_boost }; -#define NFORMATS 22 /* Number of format_type enum values. */ +#define NFORMATS 24 /* Number of format_type enum values. */ extern DLL_VARIABLE const char *const format_language[NFORMATS]; extern DLL_VARIABLE const char *const format_language_pretty[NFORMATS]; @@ -85,6 +87,17 @@ possible_format_p (enum is_format); +/* Range of an unsigned integer argument. */ +struct argument_range +{ + int min; + int max; +}; + +/* Tests whether a range is present. */ +#define has_range_p(range) ((range).min >= 0 && (range).max >= 0) + + /* Is current msgid wrappable? */ #if 0 enum is_wrap @@ -141,10 +154,21 @@ size_t filepos_count; lex_pos_ty *filepos; - /* Informations from special comments (e.g. generated by msgmerge). */ + /* Informations from special comments (#,). + Some of them come from extracted comments. They are manipulated by + the tools, e.g. msgmerge. */ + + /* Fuzzy means "needs translator review". */ bool is_fuzzy; + + /* Designation of format string syntax requirements for specific + programming languages. */ enum is_format is_format[NFORMATS]; + /* Lower and upper bound for the argument whose format directive can be + omitted in specific cases of singular or plural. */ + struct argument_range range; + /* Do we want the string to be wrapped in the emitted PO file? */ enum is_wrap do_wrap; @@ -172,9 +196,9 @@ extern message_ty * message_alloc (const char *msgctxt, - const char *msgid, const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - const lex_pos_ty *pp); + const char *msgid, const char *msgid_plural, + const char *msgstr, size_t msgstr_len, + const lex_pos_ty *pp); #define is_header(mp) ((mp)->msgctxt == NULL && (mp)->msgid[0] == '\0') extern void message_free (message_ty *mp); @@ -195,7 +219,7 @@ size_t nitems; size_t nitems_max; bool use_hashtable; - hash_table htable; /* Table mapping msgid to 'message_ty *'. */ + hash_table htable; /* Table mapping msgid to 'message_ty *'. */ }; /* Create a fresh message list. @@ -220,7 +244,7 @@ typedef bool message_predicate_ty (const message_ty *mp); extern void message_list_remove_if_not (message_list_ty *mlp, - message_predicate_ty *predicate); + message_predicate_ty *predicate); /* Recompute the hash table of a message list after the msgids or msgctxts changed. */ extern bool @@ -232,10 +256,14 @@ message_list_copy (message_list_ty *mlp, int copy_level); extern message_ty * message_list_search (message_list_ty *mlp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); +/* Return the message in MLP which maximizes the fuzzy_search_goal_function. + Only messages with a fuzzy_search_goal_function > FUZZY_THRESHOLD are + considered. In case of several messages with the same goal function value, + the one with the smaller index is returned. */ extern message_ty * message_list_search_fuzzy (message_list_ty *mlp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); typedef struct message_list_list_ty message_list_list_ty; @@ -256,16 +284,16 @@ message_list_list_free (message_list_list_ty *mllp, int keep_level); extern void message_list_list_append (message_list_list_ty *mllp, - message_list_ty *mlp); + message_list_ty *mlp); extern void message_list_list_append_list (message_list_list_ty *mllp, - message_list_list_ty *mllp2); + message_list_list_ty *mllp2); extern message_ty * message_list_list_search (message_list_list_ty *mllp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); extern message_ty * message_list_list_search_fuzzy (message_list_list_ty *mllp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); typedef struct msgdomain_ty msgdomain_ty; @@ -288,7 +316,7 @@ size_t nitems; size_t nitems_max; bool use_hashtable; - const char *encoding; /* canonicalized encoding or NULL if unknown */ + const char *encoding; /* canonicalized encoding or NULL if unknown */ }; extern msgdomain_list_ty * @@ -299,10 +327,10 @@ msgdomain_list_append (msgdomain_list_ty *mdlp, msgdomain_ty *mdp); extern void msgdomain_list_append_list (msgdomain_list_ty *mdlp, - msgdomain_list_ty *mdlp2); + msgdomain_list_ty *mdlp2); extern message_list_ty * msgdomain_list_sublist (msgdomain_list_ty *mdlp, const char *domain, - bool create); + bool create); /* Copy a message domain list. If copy_level = 0, also copy the messages. If copy_level = 1, share the messages but copy the domains. If copy_level = 2, share the domains. */ @@ -310,20 +338,24 @@ msgdomain_list_copy (msgdomain_list_ty *mdlp, int copy_level); extern message_ty * msgdomain_list_search (msgdomain_list_ty *mdlp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); extern message_ty * msgdomain_list_search_fuzzy (msgdomain_list_ty *mdlp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid); /* The goal function used in fuzzy search. - Higher values indicate a closer match. */ + Higher values indicate a closer match. + If the result is < LOWER_BOUND, an arbitrary other value < LOWER_BOUND can + be returned. */ extern double fuzzy_search_goal_function (const message_ty *mp, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid, + double lower_bound); /* The threshold for fuzzy-searching. - A message is considered only if fstrcmp (msg, given) > FUZZY_THRESHOLD. */ + A message is considered only if + fuzzy_search_goal_function (mp, given, 0.0) > FUZZY_THRESHOLD. */ #define FUZZY_THRESHOLD 0.6 diff -Nru gettext-0.17/gettext-tools/src/msgattrib.c gettext-0.18.1.1/gettext-tools/src/msgattrib.c --- gettext-0.17/gettext-tools/src/msgattrib.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgattrib.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Manipulates attributes of messages in translation catalogs. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -42,6 +42,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "propername.h" #include "gettext.h" @@ -54,23 +55,23 @@ /* Bit mask of subsets to remove. */ enum { - REMOVE_UNTRANSLATED = 1 << 0, - REMOVE_TRANSLATED = 1 << 1, - REMOVE_FUZZY = 1 << 2, - REMOVE_NONFUZZY = 1 << 3, - REMOVE_OBSOLETE = 1 << 4, - REMOVE_NONOBSOLETE = 1 << 5 + REMOVE_UNTRANSLATED = 1 << 0, + REMOVE_TRANSLATED = 1 << 1, + REMOVE_FUZZY = 1 << 2, + REMOVE_NONFUZZY = 1 << 3, + REMOVE_OBSOLETE = 1 << 4, + REMOVE_NONOBSOLETE = 1 << 5 }; static int to_remove; /* Bit mask of actions to perform on all messages. */ enum { - SET_FUZZY = 1 << 0, - RESET_FUZZY = 1 << 1, - SET_OBSOLETE = 1 << 2, - RESET_OBSOLETE = 1 << 3, - REMOVE_PREV = 1 << 4 + SET_FUZZY = 1 << 0, + RESET_FUZZY = 1 << 1, + SET_OBSOLETE = 1 << 2, + RESET_OBSOLETE = 1 << 3, + REMOVE_PREV = 1 << 4 }; static int to_change; @@ -81,6 +82,7 @@ { "clear-fuzzy", no_argument, NULL, CHAR_MAX + 8 }, { "clear-obsolete", no_argument, NULL, CHAR_MAX + 10 }, { "clear-previous", no_argument, NULL, CHAR_MAX + 18 }, + { "color", optional_argument, NULL, CHAR_MAX + 19 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, @@ -107,6 +109,7 @@ { "stringtable-input", no_argument, NULL, CHAR_MAX + 16 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 17 }, { "strict", no_argument, NULL, 'S' }, + { "style", required_argument, NULL, CHAR_MAX + 20 }, { "translated", no_argument, NULL, CHAR_MAX + 1 }, { "untranslated", no_argument, NULL, CHAR_MAX + 2 }, { "version", no_argument, NULL, 'V' }, @@ -118,12 +121,12 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static msgdomain_list_ty *process_msgdomain_list (msgdomain_list_ty *mdlp, - msgdomain_list_ty *only_mdlp, - msgdomain_list_ty *ignore_mdlp); + msgdomain_list_ty *only_mdlp, + msgdomain_list_ty *ignore_mdlp); int @@ -170,151 +173,160 @@ ignore_file = NULL; while ((optchar = getopt_long (argc, argv, "D:eEFhino:pPsVw:", long_options, - NULL)) != EOF) + NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'n': - line_comment = 1; - break; + line_comment = 1; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: /* --translated */ - to_remove |= REMOVE_UNTRANSLATED; - break; + to_remove |= REMOVE_UNTRANSLATED; + break; case CHAR_MAX + 2: /* --untranslated */ - to_remove |= REMOVE_TRANSLATED; - break; + to_remove |= REMOVE_TRANSLATED; + break; case CHAR_MAX + 3: /* --no-fuzzy */ - to_remove |= REMOVE_FUZZY; - break; + to_remove |= REMOVE_FUZZY; + break; case CHAR_MAX + 4: /* --only-fuzzy */ - to_remove |= REMOVE_NONFUZZY; - break; + to_remove |= REMOVE_NONFUZZY; + break; case CHAR_MAX + 5: /* --no-obsolete */ - to_remove |= REMOVE_OBSOLETE; - break; + to_remove |= REMOVE_OBSOLETE; + break; case CHAR_MAX + 6: /* --only-obsolete */ - to_remove |= REMOVE_NONOBSOLETE; - break; + to_remove |= REMOVE_NONOBSOLETE; + break; case CHAR_MAX + 7: /* --set-fuzzy */ - to_change |= SET_FUZZY; - break; + to_change |= SET_FUZZY; + break; case CHAR_MAX + 8: /* --clear-fuzzy */ - to_change |= RESET_FUZZY; - break; + to_change |= RESET_FUZZY; + break; case CHAR_MAX + 9: /* --set-obsolete */ - to_change |= SET_OBSOLETE; - break; + to_change |= SET_OBSOLETE; + break; case CHAR_MAX + 10: /* --clear-obsolete */ - to_change |= RESET_OBSOLETE; - break; + to_change |= RESET_OBSOLETE; + break; case CHAR_MAX + 11: /* --fuzzy */ - to_remove |= REMOVE_NONFUZZY; - to_change |= RESET_FUZZY; - break; + to_remove |= REMOVE_NONFUZZY; + to_change |= RESET_FUZZY; + break; case CHAR_MAX + 12: /* --obsolete */ - to_remove |= REMOVE_NONOBSOLETE; - to_change |= RESET_OBSOLETE; - break; + to_remove |= REMOVE_NONOBSOLETE; + to_change |= RESET_OBSOLETE; + break; case CHAR_MAX + 13: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 14: /* --only-file */ - only_file = optarg; - break; + only_file = optarg; + break; case CHAR_MAX + 15: /* --ignore-file */ - ignore_file = optarg; - break; + ignore_file = optarg; + break; case CHAR_MAX + 16: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 17: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; case CHAR_MAX + 18: /* --clear-previous */ - to_change |= REMOVE_PREV; - break; + to_change |= REMOVE_PREV; + break; + + case CHAR_MAX + 19: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 20: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - /* NOTREACHED */ + usage (EXIT_FAILURE); + /* NOTREACHED */ } /* Version information requested. */ @@ -327,7 +339,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -350,22 +362,22 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Read input file. */ result = read_catalog_file (input_file, input_syntax); /* Read optional files that limit the extent of the attribute changes. */ only_mdlp = (only_file != NULL - ? read_catalog_file (only_file, input_syntax) - : NULL); + ? read_catalog_file (only_file, input_syntax) + : NULL); ignore_mdlp = (ignore_file != NULL - ? read_catalog_file (ignore_file, input_syntax) - : NULL); + ? read_catalog_file (ignore_file, input_syntax) + : NULL); /* Filter the messages and manipulate the attributes. */ result = process_msgdomain_list (result, only_mdlp, ignore_mdlp); @@ -389,7 +401,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -467,6 +479,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -506,7 +524,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -523,20 +541,20 @@ if ((to_remove & (REMOVE_UNTRANSLATED | REMOVE_TRANSLATED)) && (mp->msgstr[0] == '\0' - ? to_remove & REMOVE_UNTRANSLATED - : to_remove & REMOVE_TRANSLATED)) + ? to_remove & REMOVE_UNTRANSLATED + : to_remove & REMOVE_TRANSLATED)) return false; if ((to_remove & (REMOVE_FUZZY | REMOVE_NONFUZZY)) && (mp->is_fuzzy - ? to_remove & REMOVE_FUZZY - : to_remove & REMOVE_NONFUZZY)) + ? to_remove & REMOVE_FUZZY + : to_remove & REMOVE_NONFUZZY)) return false; if ((to_remove & (REMOVE_OBSOLETE | REMOVE_NONOBSOLETE)) && (mp->obsolete - ? to_remove & REMOVE_OBSOLETE - : to_remove & REMOVE_NONOBSOLETE)) + ? to_remove & REMOVE_OBSOLETE + : to_remove & REMOVE_NONOBSOLETE)) return false; return true; @@ -545,7 +563,7 @@ static void process_message_list (message_list_ty *mlp, - message_list_ty *only_mlp, message_list_ty *ignore_mlp) + message_list_ty *only_mlp, message_list_ty *ignore_mlp) { /* Keep only the selected messages. */ message_list_remove_if_not (mlp, is_message_selected); @@ -556,58 +574,58 @@ size_t j; for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - /* Attribute changes only affect messages listed in --only-file - and not listed in --ignore-file. */ - if ((only_mlp - ? message_list_search (only_mlp, mp->msgctxt, mp->msgid) != NULL - : true) - && (ignore_mlp - ? message_list_search (ignore_mlp, mp->msgctxt, mp->msgid) == NULL - : true)) - { - if (to_change & SET_FUZZY) - mp->is_fuzzy = true; - if (to_change & RESET_FUZZY) - mp->is_fuzzy = false; - /* Always keep the header entry non-obsolete. */ - if ((to_change & SET_OBSOLETE) && !is_header (mp)) - mp->obsolete = true; - if (to_change & RESET_OBSOLETE) - mp->obsolete = false; - if (to_change & REMOVE_PREV) - { - mp->prev_msgctxt = NULL; - mp->prev_msgid = NULL; - mp->prev_msgid_plural = NULL; - } - } - } + /* Attribute changes only affect messages listed in --only-file + and not listed in --ignore-file. */ + if ((only_mlp + ? message_list_search (only_mlp, mp->msgctxt, mp->msgid) != NULL + : true) + && (ignore_mlp + ? message_list_search (ignore_mlp, mp->msgctxt, mp->msgid) == NULL + : true)) + { + if (to_change & SET_FUZZY) + mp->is_fuzzy = true; + if (to_change & RESET_FUZZY) + mp->is_fuzzy = false; + /* Always keep the header entry non-obsolete. */ + if ((to_change & SET_OBSOLETE) && !is_header (mp)) + mp->obsolete = true; + if (to_change & RESET_OBSOLETE) + mp->obsolete = false; + if (to_change & REMOVE_PREV) + { + mp->prev_msgctxt = NULL; + mp->prev_msgid = NULL; + mp->prev_msgid_plural = NULL; + } + } + } } } static msgdomain_list_ty * process_msgdomain_list (msgdomain_list_ty *mdlp, - msgdomain_list_ty *only_mdlp, - msgdomain_list_ty *ignore_mdlp) + msgdomain_list_ty *only_mdlp, + msgdomain_list_ty *ignore_mdlp) { size_t k; for (k = 0; k < mdlp->nitems; k++) process_message_list (mdlp->item[k]->messages, - only_mdlp - ? msgdomain_list_sublist (only_mdlp, - mdlp->item[k]->domain, - true) - : NULL, - ignore_mdlp - ? msgdomain_list_sublist (ignore_mdlp, - mdlp->item[k]->domain, - false) - : NULL); + only_mdlp + ? msgdomain_list_sublist (only_mdlp, + mdlp->item[k]->domain, + true) + : NULL, + ignore_mdlp + ? msgdomain_list_sublist (ignore_mdlp, + mdlp->item[k]->domain, + false) + : NULL); return mdlp; } diff -Nru gettext-0.17/gettext-tools/src/msgcat.c gettext-0.18.1.1/gettext-tools/src/msgcat.c --- gettext-0.17/gettext-tools/src/msgcat.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgcat.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Concatenates several translation catalogs. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -46,6 +46,7 @@ #include "write-stringtable.h" #include "color.h" #include "msgl-cat.h" +#include "msgl-header.h" #include "propername.h" #include "gettext.h" @@ -69,6 +70,7 @@ { "force-po", no_argument, &force_po, 1 }, { "help", no_argument, NULL, 'h' }, { "indent", no_argument, NULL, 'i' }, + { "lang", required_argument, NULL, CHAR_MAX + 7 }, { "no-escape", no_argument, NULL, 'e' }, { "no-location", no_argument, &line_comment, 0 }, { "no-wrap", no_argument, NULL, CHAR_MAX + 2 }, @@ -95,7 +97,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; @@ -115,6 +117,8 @@ catalog_output_format_ty output_syntax = &output_format_po; bool sort_by_msgid = false; bool sort_by_filepos = false; + /* Language (ISO-639 code) and optional territory (ISO-3166 code). */ + const char *catalogname = NULL; /* Set program name for messages. */ set_program_name (argv[0]); @@ -143,134 +147,138 @@ use_first = false; while ((optchar = getopt_long (argc, argv, "<:>:D:eEf:Fhino:pPst:uVw:", - long_options, NULL)) != EOF) + long_options, NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case '>': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - more_than = value; - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + more_than = value; + } + break; case '<': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - less_than = value; - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + less_than = value; + } + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'f': - files_from = optarg; - break; + files_from = optarg; + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'n': - line_comment = 1; - break; + line_comment = 1; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 't': - to_code = optarg; - break; + to_code = optarg; + break; case 'u': - less_than = 2; - break; + less_than = 2; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: - use_first = true; - break; + use_first = true; + break; case CHAR_MAX + 2: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 3: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 4: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; case CHAR_MAX + 5: /* --color */ - if (handle_color_option (optarg)) - usage (EXIT_FAILURE); - break; + if (handle_color_option (optarg)) + usage (EXIT_FAILURE); + break; case CHAR_MAX + 6: /* --style */ - handle_style_option (optarg); - break; + handle_style_option (optarg); + break; + + case CHAR_MAX + 7: /* --lang */ + catalogname = optarg; + break; default: - usage (EXIT_FAILURE); - /* NOTREACHED */ + usage (EXIT_FAILURE); + /* NOTREACHED */ } /* Version information requested. */ @@ -283,7 +291,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -301,17 +309,17 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Check the message selection criteria for sanity. */ if (more_than >= less_than || less_than < 2) error (EXIT_FAILURE, 0, - _("impossible selection criteria specified (%d < n < %d)"), - more_than, less_than); + _("impossible selection criteria specified (%d < n < %d)"), + more_than, less_than); /* Determine list of files we have to process. */ if (files_from != NULL) @@ -325,7 +333,7 @@ /* Read input files, then filter, convert and merge messages. */ result = catenate_msgdomain_list (file_list, input_syntax, - output_syntax->requires_utf8 ? "UTF-8" : to_code); + output_syntax->requires_utf8 ? "UTF-8" : to_code); string_list_free (file_list); @@ -335,6 +343,10 @@ else if (sort_by_msgid) msgdomain_list_sort_by_msgid (result); + /* Set the Language field in the header. */ + if (catalogname != NULL) + msgdomain_list_set_header_field (result, "Language:", catalogname); + /* Write the PO file. */ msgdomain_list_print (result, output_file, output_syntax, force_po, false); @@ -348,7 +360,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -418,6 +430,8 @@ --use-first use first available translation for each\n\ message, don't merge several translations\n")); printf (_("\ + --lang=CATALOGNAME set 'Language' field in the header entry\n")); + printf (_("\ --color use colors and other text attributes always\n\ --color=WHEN use colors and other text attributes if WHEN.\n\ WHEN may be 'always', 'never', 'auto', or 'html'.\n")); @@ -463,7 +477,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/msgcmp.c gettext-0.18.1.1/gettext-tools/src/msgcmp.c --- gettext-0.17/gettext-tools/src/msgcmp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgcmp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. This file was written by Peter Miller This program is free software: you can redistribute it and/or modify @@ -38,7 +38,10 @@ #include "read-po.h" #include "read-properties.h" #include "read-stringtable.h" +#include "xmalloca.h" +#include "po-charset.h" #include "msgl-iconv.h" +#include "msgl-fsearch.h" #include "c-strstr.h" #include "c-strcase.h" #include "propername.h" @@ -50,6 +53,9 @@ /* Apply the .pot file to each of the domains in the PO file. */ static bool multi_domain_mode = false; +/* Determines whether to use fuzzy matching. */ +static bool use_fuzzy_matching = true; + /* Whether to consider fuzzy messages as translations. */ static bool include_fuzzies = false; @@ -62,6 +68,7 @@ { "directory", required_argument, NULL, 'D' }, { "help", no_argument, NULL, 'h' }, { "multi-domain", no_argument, NULL, 'm' }, + { "no-fuzzy-matching", no_argument, NULL, 'N' }, { "properties-input", no_argument, NULL, 'P' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 1 }, { "use-fuzzy", no_argument, NULL, CHAR_MAX + 2 }, @@ -74,11 +81,11 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void compare (const char *fn1, const char *fn2, - catalog_input_format_ty input_syntax); + catalog_input_format_ty input_syntax); int @@ -109,48 +116,52 @@ do_help = false; do_version = false; - while ((optchar = getopt_long (argc, argv, "D:hmPV", long_options, NULL)) - != EOF) + while ((optchar = getopt_long (argc, argv, "D:hmNPV", long_options, NULL)) + != EOF) switch (optchar) { - case '\0': /* long option */ - break; + case '\0': /* long option */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'm': - multi_domain_mode = true; - break; + multi_domain_mode = true; + break; + + case 'N': + use_fuzzy_matching = false; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'V': - do_version = true; - break; + do_version = true; + break; - case CHAR_MAX + 1: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; - - case CHAR_MAX + 2: /* --use-fuzzy */ - include_fuzzies = true; - break; - - case CHAR_MAX + 3: /* --use-untranslated */ - include_untranslated = true; - break; + case CHAR_MAX + 1: /* --stringtable-input */ + input_syntax = &input_format_stringtable; + break; + + case CHAR_MAX + 2: /* --use-fuzzy */ + include_fuzzies = true; + break; + + case CHAR_MAX + 3: /* --use-untranslated */ + include_untranslated = true; + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -163,7 +174,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Peter Miller")); exit (EXIT_SUCCESS); } @@ -196,7 +207,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -230,6 +241,8 @@ printf (_("\ -m, --multi-domain apply ref.pot to each of the domains in def.po\n")); printf (_("\ + -N, --no-fuzzy-matching do not use fuzzy matching\n")); + printf (_("\ --use-fuzzy consider fuzzy entries\n")); printf (_("\ --use-untranslated consider untranslated entries\n")); @@ -287,8 +300,10 @@ static void match_domain (const char *fn1, const char *fn2, - message_list_ty *defmlp, message_list_ty *refmlp, - int *nerrors) + message_list_ty *defmlp, message_fuzzy_index_ty **defmlp_findex, + const char *def_canon_charset, + message_list_ty *refmlp, + int *nerrors) { size_t j; @@ -302,43 +317,66 @@ /* See if it is in the other file. */ defmsg = message_list_search (defmlp, refmsg->msgctxt, refmsg->msgid); if (defmsg) - { - if (!include_untranslated && defmsg->msgstr[0] == '\0') - { - (*nerrors)++; - po_gram_error_at_line (&defmsg->pos, _("\ + { + if (!include_untranslated && defmsg->msgstr[0] == '\0') + { + (*nerrors)++; + po_gram_error_at_line (&defmsg->pos, _("\ this message is untranslated")); - } - else if (!include_fuzzies && defmsg->is_fuzzy && !is_header (defmsg)) - { - (*nerrors)++; - po_gram_error_at_line (&defmsg->pos, _("\ + } + else if (!include_fuzzies && defmsg->is_fuzzy && !is_header (defmsg)) + { + (*nerrors)++; + po_gram_error_at_line (&defmsg->pos, _("\ this message needs to be reviewed by the translator")); - } - else - defmsg->used = 1; - } + } + else + defmsg->used = 1; + } else - { - /* If the message was not defined at all, try to find a very - similar message, it could be a typo, or the suggestion may - help. */ - (*nerrors)++; - defmsg = - message_list_search_fuzzy (defmlp, refmsg->msgctxt, refmsg->msgid); - if (defmsg) - { - po_gram_error_at_line (&refmsg->pos, _("\ + { + /* If the message was not defined at all, try to find a very + similar message, it could be a typo, or the suggestion may + help. */ + (*nerrors)++; + if (use_fuzzy_matching) + { + if (false) + { + /* Old, slow code. */ + defmsg = + message_list_search_fuzzy (defmlp, + refmsg->msgctxt, refmsg->msgid); + } + else + { + /* Speedup through early abort in fstrcmp(), combined with + pre-sorting of the messages through a hashed index. */ + /* Create the fuzzy index lazily. */ + if (*defmlp_findex == NULL) + *defmlp_findex = + message_fuzzy_index_alloc (defmlp, def_canon_charset); + defmsg = + message_fuzzy_index_search (*defmlp_findex, + refmsg->msgctxt, refmsg->msgid, + FUZZY_THRESHOLD, false); + } + } + else + defmsg = NULL; + if (defmsg) + { + po_gram_error_at_line (&refmsg->pos, _("\ this message is used but not defined...")); - error_message_count--; - po_gram_error_at_line (&defmsg->pos, _("\ + error_message_count--; + po_gram_error_at_line (&defmsg->pos, _("\ ...but this definition is similar")); - defmsg->used = 1; - } - else - po_gram_error_at_line (&refmsg->pos, _("\ + defmsg->used = 1; + } + else + po_gram_error_at_line (&refmsg->pos, _("\ this message is used but not defined in %s"), fn1); - } + } } } @@ -350,6 +388,7 @@ msgdomain_list_ty *ref; int nerrors; size_t j, k; + const char *def_canon_charset; message_list_ty *empty_list; /* This is the master file, created by a human. */ @@ -365,34 +404,83 @@ bool was_utf8 = false; for (k = 0; k < ref->nitems; k++) { - message_list_ty *mlp = ref->item[k]->messages; + message_list_ty *mlp = ref->item[k]->messages; - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) /* && !mlp->item[j]->obsolete */) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - if (len == strlen ("UTF-8") - && c_strncasecmp (charsetstr, "UTF-8", len) == 0) - was_utf8 = true; - } - } - } - } + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) /* && !mlp->item[j]->obsolete */) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + if (len == strlen ("UTF-8") + && c_strncasecmp (charsetstr, "UTF-8", len) == 0) + was_utf8 = true; + } + } + } + } if (was_utf8) def = iconv_msgdomain_list (def, "UTF-8", true, fn1); } + /* Determine canonicalized encoding name of the definitions now, after + conversion. Only used for fuzzy matching. */ + if (use_fuzzy_matching) + { + def_canon_charset = def->encoding; + if (def_canon_charset == NULL) + { + char *charset = NULL; + + /* Get the encoding of the definitions file. */ + for (k = 0; k < def->nitems; k++) + { + message_list_ty *mlp = def->item[k]->messages; + + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + break; + } + } + } + if (charset != NULL) + break; + } + if (charset != NULL) + def_canon_charset = po_charset_canonicalize (charset); + if (def_canon_charset == NULL) + /* Unspecified encoding. Assume unibyte encoding. */ + def_canon_charset = po_charset_ascii; + } + } + else + def_canon_charset = NULL; + empty_list = message_list_alloc (false); /* Every entry in the xgettext generated file must be matched by a @@ -401,30 +489,45 @@ if (!multi_domain_mode) for (k = 0; k < ref->nitems; k++) { - const char *domain = ref->item[k]->domain; - message_list_ty *refmlp = ref->item[k]->messages; - message_list_ty *defmlp; - - defmlp = msgdomain_list_sublist (def, domain, false); - if (defmlp == NULL) - defmlp = empty_list; + const char *domain = ref->item[k]->domain; + message_list_ty *refmlp = ref->item[k]->messages; + message_list_ty *defmlp; + message_fuzzy_index_ty *defmlp_findex; + + defmlp = msgdomain_list_sublist (def, domain, false); + if (defmlp == NULL) + defmlp = empty_list; + + defmlp_findex = NULL; + + match_domain (fn1, fn2, defmlp, &defmlp_findex, def_canon_charset, + refmlp, &nerrors); - match_domain (fn1, fn2, defmlp, refmlp, &nerrors); + if (defmlp_findex != NULL) + message_fuzzy_index_free (defmlp_findex); } else { /* Apply the references messages in the default domain to each of - the definition domains. */ + the definition domains. */ message_list_ty *refmlp = ref->item[0]->messages; for (k = 0; k < def->nitems; k++) - { - message_list_ty *defmlp = def->item[k]->messages; + { + message_list_ty *defmlp = def->item[k]->messages; - /* Ignore the default message domain if it has no messages. */ - if (k > 0 || defmlp->nitems > 0) - match_domain (fn1, fn2, defmlp, refmlp, &nerrors); - } + /* Ignore the default message domain if it has no messages. */ + if (k > 0 || defmlp->nitems > 0) + { + message_fuzzy_index_ty *defmlp_findex = NULL; + + match_domain (fn1, fn2, defmlp, &defmlp_findex, def_canon_charset, + refmlp, &nerrors); + + if (defmlp_findex != NULL) + message_fuzzy_index_free (defmlp_findex); + } + } } /* Look for messages in the definition file, which are not present @@ -435,18 +538,18 @@ message_list_ty *defmlp = def->item[k]->messages; for (j = 0; j < defmlp->nitems; j++) - { - message_ty *defmsg = defmlp->item[j]; + { + message_ty *defmsg = defmlp->item[j]; - if (!defmsg->used) - po_gram_error_at_line (&defmsg->pos, - _("warning: this message is not used")); - } + if (!defmsg->used) + po_gram_error_at_line (&defmsg->pos, + _("warning: this message is not used")); + } } /* Exit with status 1 on any error. */ if (nerrors > 0) error (EXIT_FAILURE, 0, - ngettext ("found %d fatal error", "found %d fatal errors", nerrors), - nerrors); + ngettext ("found %d fatal error", "found %d fatal errors", nerrors), + nerrors); } diff -Nru gettext-0.17/gettext-tools/src/msgcomm.c gettext-0.18.1.1/gettext-tools/src/msgcomm.c --- gettext-0.17/gettext-tools/src/msgcomm.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgcomm.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1997-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1997-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. This file was written by Peter Miller @@ -44,6 +44,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "msgl-cat.h" #include "propername.h" #include "gettext.h" @@ -63,6 +64,7 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 5 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "files-from", required_argument, NULL, 'f' }, @@ -82,6 +84,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 3 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 4 }, + { "style", required_argument, NULL, CHAR_MAX + 6 }, { "to-code", required_argument, NULL, 't' }, { "unique", no_argument, NULL, 'u' }, { "version", no_argument, NULL, 'V' }, @@ -95,7 +98,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ > 4) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; @@ -139,125 +142,134 @@ use_first = false; while ((optchar = getopt_long (argc, argv, "<:>:D:eEf:Fhino:pPst:uVw:", - long_options, NULL)) != EOF) + long_options, NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case '>': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - more_than = value; - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + more_than = value; + } + break; case '<': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - less_than = value; - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + less_than = value; + } + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'f': - files_from = optarg; - break; + files_from = optarg; + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'n': - line_comment = 1; - break; + line_comment = 1; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 't': - to_code = optarg; - break; + to_code = optarg; + break; case 'u': - less_than = 2; - break; + less_than = 2; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: - omit_header = true; - break; + omit_header = true; + break; case CHAR_MAX + 2: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 3: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 4: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 5: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 6: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - /* NOTREACHED */ + usage (EXIT_FAILURE); + /* NOTREACHED */ } /* Version information requested. */ @@ -270,7 +282,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Peter Miller")); exit (EXIT_SUCCESS); } @@ -282,11 +294,11 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Determine list of files we have to process. */ if (files_from != NULL) @@ -311,8 +323,8 @@ less_than = INT_MAX; if (more_than >= less_than || less_than < 2) error (EXIT_FAILURE, 0, - _("impossible selection criteria specified (%d < n < %d)"), - more_than, less_than); + _("impossible selection criteria specified (%d < n < %d)"), + more_than, less_than); /* Read input files, then filter, convert and merge messages. */ allow_duplicates = true; @@ -340,7 +352,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -404,6 +416,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -445,7 +463,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/msgconv.c gettext-0.18.1.1/gettext-tools/src/msgconv.c --- gettext-0.17/gettext-tools/src/msgconv.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgconv.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Converts a translation catalog to a different character encoding. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -42,6 +42,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "msgl-iconv.h" #include "localcharset.h" #include "propername.h" @@ -60,6 +61,7 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 4 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, @@ -76,6 +78,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 2 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 3 }, + { "style", required_argument, NULL, CHAR_MAX + 5 }, { "to-code", required_argument, NULL, 't' }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w', }, @@ -86,7 +89,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; @@ -129,90 +132,99 @@ input_file = NULL; while ((opt = getopt_long (argc, argv, "D:eEFhio:pPst:Vw:", long_options, - NULL)) - != EOF) + NULL)) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 't': - to_code = optarg; - break; + to_code = optarg; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 2: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 3: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 4: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 5: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -225,7 +237,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -248,11 +260,11 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Default for target encoding is current locale's encoding. */ if (to_code == NULL) @@ -284,7 +296,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -332,6 +344,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -371,7 +389,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/msgen.c gettext-0.18.1.1/gettext-tools/src/msgen.c --- gettext-0.17/gettext-tools/src/msgen.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgen.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Creates an English translation catalog. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -39,10 +39,12 @@ #include "read-properties.h" #include "read-stringtable.h" #include "msgl-english.h" +#include "msgl-header.h" #include "write-catalog.h" #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "propername.h" #include "gettext.h" @@ -56,11 +58,13 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 5 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, { "help", no_argument, NULL, 'h' }, { "indent", no_argument, NULL, 'i' }, + { "lang", required_argument, NULL, CHAR_MAX + 4 }, { "no-escape", no_argument, NULL, 'e' }, { "no-location", no_argument, &line_comment, 0 }, { "no-wrap", no_argument, NULL, CHAR_MAX + 1 }, @@ -72,6 +76,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 2 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 3 }, + { "style", required_argument, NULL, CHAR_MAX + 6 }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w', }, { NULL, 0, NULL, 0 } @@ -81,7 +86,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; @@ -98,6 +103,8 @@ catalog_output_format_ty output_syntax = &output_format_po; bool sort_by_filepos = false; bool sort_by_msgid = false; + /* Language (ISO-639 code) and optional territory (ISO-3166 code). */ + const char *catalogname = NULL; /* Set program name for messages. */ set_program_name (argv[0]); @@ -122,85 +129,98 @@ output_file = NULL; while ((opt = getopt_long (argc, argv, "D:eEFhio:pPsVw:", long_options, NULL)) - != EOF) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 2: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 3: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 4: /* --lang */ + catalogname = optarg; + break; + + case CHAR_MAX + 5: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 6: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -213,7 +233,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -237,11 +257,11 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Read input file. */ result = read_catalog_file (argv[optind], input_syntax); @@ -255,6 +275,10 @@ else if (sort_by_msgid) msgdomain_list_sort_by_msgid (result); + /* Set the Language field in the header. */ + if (catalogname != NULL) + msgdomain_list_set_header_field (result, "Language:", catalogname); + /* Write the merged message list out. */ msgdomain_list_print (result, output_file, output_syntax, force_po, false); @@ -268,7 +292,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -313,6 +337,14 @@ printf (_("\ Output details:\n")); printf (_("\ + --lang=CATALOGNAME set 'Language' field in the header entry\n")); + printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -352,7 +384,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/msgexec.c gettext-0.18.1.1/gettext-tools/src/msgexec.c --- gettext-0.17/gettext-tools/src/msgexec.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgexec.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Pass translations to a subprocess. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -43,6 +44,7 @@ #include "read-po.h" #include "read-properties.h" #include "read-stringtable.h" +#include "msgl-charset.h" #include "xalloc.h" #include "full-write.h" #include "findprog.h" @@ -88,7 +90,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void process_msgdomain_list (const msgdomain_list_ty *mdlp); @@ -130,44 +132,44 @@ /* The '+' in the options string causes option parsing to terminate when the first non-option, i.e. the subprogram name, is encountered. */ while ((opt = getopt_long (argc, argv, "+D:hi:PV", long_options, NULL)) - != EOF) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - if (input_file != NULL) - { - error (EXIT_SUCCESS, 0, _("at most one input file allowed")); - usage (EXIT_FAILURE); - } - input_file = optarg; - break; + if (input_file != NULL) + { + error (EXIT_SUCCESS, 0, _("at most one input file allowed")); + usage (EXIT_FAILURE); + } + input_file = optarg; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case CHAR_MAX + 1: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -180,7 +182,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -210,9 +212,24 @@ if (strcmp (sub_name, "0") != 0) { + /* Warn if the current locale is not suitable for this PO file. */ + compare_po_locale_charsets (result); + + /* Block SIGPIPE for this process and for the subprocesses. + The subprogram may have side effects (additionally to producing some + output), therefore if there are no readers on stdout, processing of the + strings must continue nevertheless. */ + { + sigset_t sigpipe_set; + + sigemptyset (&sigpipe_set); + sigaddset (&sigpipe_set, SIGPIPE); + sigprocmask (SIG_UNBLOCK, &sigpipe_set, NULL); + } + /* Attempt to locate the program. - This is an optimization, to avoid that spawn/exec searches the PATH - on every call. */ + This is an optimization, to avoid that spawn/exec searches the PATH + on every call. */ sub_path = find_in_path (sub_name); /* Finish argument list for the program. */ @@ -234,7 +251,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -287,7 +304,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -325,7 +342,7 @@ { /* Built-in command "0". */ if (full_write (STDOUT_FILENO, str, len + 1) < len + 1) - error (EXIT_FAILURE, errno, _("write to stdout failed")); + error (EXIT_FAILURE, errno, _("write to stdout failed")); } else { @@ -333,35 +350,55 @@ char *location; pid_t child; int fd[1]; + void (*orig_sigpipe_handler)(int); int exitstatus; - /* Set environment variables for the subprocess. */ + /* Set environment variables for the subprocess. + Note: These environment variables, especially MSGEXEC_MSGCTXT and + MSGEXEC_MSGCTXT, may contain non-ASCII characters. The subprocess + may not interpret these values correctly if the locale encoding is + different from the PO file's encoding. We want about this situation, + above. + On Unix, this problem is often harmless. On Windows, however, - both + native Windows and Cygwin - the values of environment variables *must* + be in the encoding that is the value of GetACP(), because the system + may convert the environment from char** to wchar_t** before spawning + the subprocess and back from wchar_t** to char** in the subprocess, + and it does so using the GetACP() codepage. */ if (mp->msgctxt != NULL) - xsetenv ("MSGEXEC_MSGCTXT", mp->msgctxt, 1); + xsetenv ("MSGEXEC_MSGCTXT", mp->msgctxt, 1); else - unsetenv ("MSGEXEC_MSGCTXT"); + unsetenv ("MSGEXEC_MSGCTXT"); xsetenv ("MSGEXEC_MSGID", mp->msgid, 1); location = xasprintf ("%s:%ld", mp->pos.file_name, - (long) mp->pos.line_number); + (long) mp->pos.line_number); xsetenv ("MSGEXEC_LOCATION", location, 1); free (location); /* Open a pipe to a subprocess. */ child = create_pipe_out (sub_name, sub_path, sub_argv, NULL, false, true, - true, fd); + true, fd); + + /* Ignore SIGPIPE here. We don't care if the subprocesses terminates + successfully without having read all of the input that we feed it. */ + orig_sigpipe_handler = signal (SIGPIPE, SIG_IGN); if (full_write (fd[0], str, len) < len) - error (EXIT_FAILURE, errno, - _("write to %s subprocess failed"), sub_name); + if (errno != EPIPE) + error (EXIT_FAILURE, errno, + _("write to %s subprocess failed"), sub_name); close (fd[0]); + signal (SIGPIPE, orig_sigpipe_handler); + /* Remove zombie process from process list, and retrieve exit status. */ /* FIXME: Should ignore_sigpipe be set to true here? It depends on the - semantics of the subprogram... */ - exitstatus = wait_subprocess (child, sub_name, false, false, true, true); + semantics of the subprogram... */ + exitstatus = + wait_subprocess (child, sub_name, false, false, true, true, NULL); if (exitcode < exitstatus) - exitcode = exitstatus; + exitcode = exitstatus; } } diff -Nru gettext-0.17/gettext-tools/src/msgfilter.c gettext-0.18.1.1/gettext-tools/src/msgfilter.c --- gettext-0.17/gettext-tools/src/msgfilter.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgfilter.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Edit translations using a subprocess. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -20,8 +20,6 @@ # include "config.h" #endif -#include -#include #include #include #include @@ -31,18 +29,11 @@ #include #include #include -#if defined _MSC_VER || defined __MINGW32__ -# include -#endif - -/* Get fd_set (on AIX or Minix) or select() declaration (on EMX). */ -#if defined (_AIX) || defined (_MINIX) || defined (__EMX__) -# include -#endif #include "closeout.h" #include "dir-list.h" #include "error.h" +#include "xvasprintf.h" #include "error-progname.h" #include "progname.h" #include "relocatable.h" @@ -56,11 +47,12 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "msgl-charset.h" #include "xalloc.h" #include "findprog.h" -#include "pipe.h" -#include "wait-process.h" +#include "pipe-filter.h" +#include "xsetenv.h" #include "filters.h" #include "msgl-iconv.h" #include "po-charset.h" @@ -70,17 +62,7 @@ #define _(str) gettext (str) -/* We use a child process, and communicate through a bidirectional pipe. - To avoid deadlocks, let the child process decide when it wants to read - or to write, and let the parent behave accordingly. The parent uses - select() to know whether it must write or read. On platforms without - select(), we use non-blocking I/O. (This means the parent is busy - looping while waiting for the child. Not good.) */ - -/* On BeOS select() works only on sockets, not on normal file descriptors. */ -#ifdef __BEOS__ -# undef HAVE_SELECT -#endif +/* We use a child process, and communicate through a bidirectional pipe. */ /* Force output of PO file even if empty. */ @@ -96,7 +78,7 @@ static const char *sub_path; /* Argument list for the subprogram. */ -static char **sub_argv; +static const char **sub_argv; static int sub_argc; /* Filter function. */ @@ -106,6 +88,7 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 6 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, @@ -124,6 +107,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 4 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 5 }, + { "style", required_argument, NULL, CHAR_MAX + 7 }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w', }, { NULL, 0, NULL, 0 } @@ -133,7 +117,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void generic_filter (const char *str, size_t len, char **resultp, size_t *lengthp); @@ -181,95 +165,104 @@ /* The '+' in the options string causes option parsing to terminate when the first non-option, i.e. the subprogram name, is encountered. */ while ((opt = getopt_long (argc, argv, "+D:EFhi:o:pPsVw:", long_options, - NULL)) - != EOF) + NULL)) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - if (input_file != NULL) - { - error (EXIT_SUCCESS, 0, _("at most one input file allowed")); - usage (EXIT_FAILURE); - } - input_file = optarg; - break; + if (input_file != NULL) + { + error (EXIT_SUCCESS, 0, _("at most one input file allowed")); + usage (EXIT_FAILURE); + } + input_file = optarg; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: - message_print_style_indent (); - break; + message_print_style_indent (); + break; case CHAR_MAX + 2: - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case CHAR_MAX + 3: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 4: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 5: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 6: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 7: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -282,7 +275,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -299,15 +292,15 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Build argument list for the program. */ sub_argc = argc - optind; - sub_argv = XNMALLOC (sub_argc + 1, char *); + sub_argv = XNMALLOC (sub_argc + 1, const char *); for (i = 0; i < sub_argc; i++) sub_argv[i] = argv[optind + i]; sub_argv[i] = NULL; @@ -316,24 +309,24 @@ if (strcmp (sub_name, "sed") == 0) { if (sub_argc == 1) - error (EXIT_FAILURE, 0, - _("at least one sed script must be specified")); + error (EXIT_FAILURE, 0, + _("at least one sed script must be specified")); /* Replace GNU sed specific options with portable sed options. */ for (i = 1; i < sub_argc; i++) - { - if (strcmp (sub_argv[i], "--expression") == 0) - sub_argv[i] = "-e"; - else if (strcmp (sub_argv[i], "--file") == 0) - sub_argv[i] = "-f"; - else if (strcmp (sub_argv[i], "--quiet") == 0 - || strcmp (sub_argv[i], "--silent") == 0) - sub_argv[i] = "-n"; - - if (strcmp (sub_argv[i], "-e") == 0 - || strcmp (sub_argv[i], "-f") == 0) - i++; - } + { + if (strcmp (sub_argv[i], "--expression") == 0) + sub_argv[i] = "-e"; + else if (strcmp (sub_argv[i], "--file") == 0) + sub_argv[i] = "-f"; + else if (strcmp (sub_argv[i], "--quiet") == 0 + || strcmp (sub_argv[i], "--silent") == 0) + sub_argv[i] = "-n"; + + if (strcmp (sub_argv[i], "-e") == 0 + || strcmp (sub_argv[i], "-f") == 0) + i++; + } } /* By default, input comes from standard input. */ @@ -359,12 +352,12 @@ compare_po_locale_charsets (result); /* Attempt to locate the program. - This is an optimization, to avoid that spawn/exec searches the PATH - on every call. */ + This is an optimization, to avoid that spawn/exec searches the PATH + on every call. */ sub_path = find_in_path (sub_name); /* Finish argument list for the program. */ - sub_argv[0] = (char *) sub_path; + sub_argv[0] = sub_path; } /* Apply the subprogram. */ @@ -389,7 +382,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -445,6 +438,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -486,94 +485,71 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); } -#ifdef EINTR +/* Callbacks called from pipe_filter_ii_execute. */ -/* EINTR handling for close(), read(), write(), select(). - These functions can return -1/EINTR even though we don't have any - signal handlers set up, namely when we get interrupted via SIGSTOP. */ - -static inline int -nonintr_close (int fd) +struct locals { - int retval; + /* String being written. */ + const char *str; + size_t len; + /* String being read and accumulated. */ + char *result; + size_t allocated; + size_t length; +}; - do - retval = close (fd); - while (retval < 0 && errno == EINTR); +static const void * +prepare_write (size_t *num_bytes_p, void *private_data) +{ + struct locals *l = (struct locals *) private_data; - return retval; + if (l->len > 0) + { + *num_bytes_p = l->len; + return l->str; + } + else + return NULL; } -#define close nonintr_close -static inline ssize_t -nonintr_read (int fd, void *buf, size_t count) +static void +done_write (void *data_written, size_t num_bytes_written, void *private_data) { - ssize_t retval; - - do - retval = read (fd, buf, count); - while (retval < 0 && errno == EINTR); + struct locals *l = (struct locals *) private_data; - return retval; + l->str += num_bytes_written; + l->len -= num_bytes_written; } -#define read nonintr_read -static inline ssize_t -nonintr_write (int fd, const void *buf, size_t count) +static void * +prepare_read (size_t *num_bytes_p, void *private_data) { - ssize_t retval; + struct locals *l = (struct locals *) private_data; - do - retval = write (fd, buf, count); - while (retval < 0 && errno == EINTR); - - return retval; + if (l->length == l->allocated) + { + l->allocated = l->allocated + (l->allocated >> 1); + l->result = (char *) xrealloc (l->result, l->allocated); + } + *num_bytes_p = l->allocated - l->length; + return l->result + l->length; } -#undef write /* avoid warning on VMS */ -#define write nonintr_write -# if HAVE_SELECT - -static inline int -nonintr_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, - struct timeval *timeout) +static void +done_read (void *data_read, size_t num_bytes_read, void *private_data) { - int retval; + struct locals *l = (struct locals *) private_data; - do - retval = select (n, readfds, writefds, exceptfds, timeout); - while (retval < 0 && errno == EINTR); - - return retval; + l->length += num_bytes_read; } -#undef select /* avoid warning on VMS */ -#define select nonintr_select - -# endif - -#endif - -/* Non-blocking I/O. */ -#ifndef O_NONBLOCK -# define O_NONBLOCK O_NDELAY -#endif -#if HAVE_SELECT -# define IS_EAGAIN(errcode) 0 -#else -# ifdef EWOULDBLOCK -# define IS_EAGAIN(errcode) ((errcode) == EAGAIN || (errcode) == EWOULDBLOCK) -# else -# define IS_EAGAIN(errcode) ((errcode) == EAGAIN) -# endif -#endif /* Process a string STR of size LEN bytes through the subprogram. Store the freshly allocated result at *RESULTP and its length at *LENGTHP. @@ -581,139 +557,20 @@ static void generic_filter (const char *str, size_t len, char **resultp, size_t *lengthp) { -#if defined _MSC_VER || defined __MINGW32__ - /* Native Woe32 API. */ - /* Not yet implemented. */ - error (EXIT_FAILURE, 0, _("Not yet implemented.")); -#else - pid_t child; - int fd[2]; - char *result; - size_t allocated; - size_t length; - int exitstatus; - - /* Open a bidirectional pipe to a subprocess. */ - child = create_pipe_bidi (sub_name, sub_path, sub_argv, false, true, true, - fd); - - /* Enable non-blocking I/O. This permits the read() and write() calls - to return -1/EAGAIN without blocking; this is important for polling - if HAVE_SELECT is not defined. It also permits the read() and write() - calls to return after partial reads/writes; this is important if - HAVE_SELECT is defined, because select() only says that some data - can be read or written, not how many. Without non-blocking I/O, - Linux 2.2.17 and BSD systems prefer to block instead of returning - with partial results. */ - { - int fcntl_flags; - - if ((fcntl_flags = fcntl (fd[1], F_GETFL, 0)) < 0 - || fcntl (fd[1], F_SETFL, fcntl_flags | O_NONBLOCK) < 0 - || (fcntl_flags = fcntl (fd[0], F_GETFL, 0)) < 0 - || fcntl (fd[0], F_SETFL, fcntl_flags | O_NONBLOCK) < 0) - error (EXIT_FAILURE, errno, - _("cannot set up nonblocking I/O to %s subprocess"), sub_name); - } - - allocated = len + (len >> 2) + 1; - result = XNMALLOC (allocated, char); - length = 0; - - for (;;) - { -#if HAVE_SELECT - int n; - fd_set readfds; - fd_set writefds; - - FD_ZERO (&readfds); - FD_SET (fd[0], &readfds); - n = fd[0] + 1; - if (str != NULL) - { - FD_ZERO (&writefds); - FD_SET (fd[1], &writefds); - if (n <= fd[1]) - n = fd[1] + 1; - } - - n = select (n, &readfds, (str != NULL ? &writefds : NULL), NULL, NULL); - if (n < 0) - error (EXIT_FAILURE, errno, - _("communication with %s subprocess failed"), sub_name); - if (str != NULL && FD_ISSET (fd[1], &writefds)) - goto try_write; - if (FD_ISSET (fd[0], &readfds)) - goto try_read; - /* How could select() return if none of the two descriptors is ready? */ - abort (); -#endif - - /* Attempt to write. */ -#if HAVE_SELECT - try_write: -#endif - if (str != NULL) - { - if (len > 0) - { - ssize_t nwritten = write (fd[1], str, len); - if (nwritten < 0 && !IS_EAGAIN (errno)) - error (EXIT_FAILURE, errno, - _("write to %s subprocess failed"), sub_name); - if (nwritten > 0) - { - str += nwritten; - len -= nwritten; - } - } - else - { - /* Tell the child there is nothing more the parent will send. */ - close (fd[1]); - str = NULL; - } - } -#if HAVE_SELECT - continue; -#endif - - /* Attempt to read. */ -#if HAVE_SELECT - try_read: -#endif - if (length == allocated) - { - allocated = allocated + (allocated >> 1); - result = (char *) xrealloc (result, allocated); - } - { - ssize_t nread = read (fd[0], result + length, allocated - length); - if (nread < 0 && !IS_EAGAIN (errno)) - error (EXIT_FAILURE, errno, - _("read from %s subprocess failed"), sub_name); - if (nread > 0) - length += nread; - if (nread == 0 && str == NULL) - break; - } -#if HAVE_SELECT - continue; -#endif - } - - close (fd[0]); + struct locals l; - /* Remove zombie process from process list. */ - exitstatus = wait_subprocess (child, sub_name, false, false, true, true); - if (exitstatus != 0) - error (EXIT_FAILURE, 0, _("%s subprocess terminated with exit code %d"), - sub_name, exitstatus); + l.str = str; + l.len = len; + l.allocated = len + (len >> 2) + 1; + l.result = XNMALLOC (l.allocated, char); + l.length = 0; + + pipe_filter_ii_execute (sub_name, sub_path, sub_argv, false, true, + prepare_write, done_write, prepare_read, done_read, + &l); - *resultp = result; - *lengthp = length; -#endif + *resultp = l.result; + *lengthp = l.length; } @@ -735,16 +592,16 @@ for (; p < pend; p++) if (*p == '\0') - { - char *q; + { + char *q; - q = p; - for (; p < pend; p++) - if (*p != '\0') - *q++ = *p; - length = q - result; - break; - } + q = p; + for (; p < pend; p++) + if (*p != '\0') + *q++ = *p; + length = q - result; + break; + } } *resultp = result; @@ -757,6 +614,7 @@ { const char *msgstr = mp->msgstr; size_t msgstr_len = mp->msgstr_len; + char *location; size_t nsubstrings; char **substrings; size_t total_len; @@ -769,6 +627,28 @@ if (is_header (mp) && keep_header) return; + /* Set environment variables for the subprocess. + Note: These environment variables, especially MSGEXEC_MSGCTXT and + MSGEXEC_MSGCTXT, may contain non-ASCII characters. The subprocess + may not interpret these values correctly if the locale encoding is + different from the PO file's encoding. We want about this situation, + above. + On Unix, this problem is often harmless. On Windows, however, - both + native Windows and Cygwin - the values of environment variables *must* + be in the encoding that is the value of GetACP(), because the system + may convert the environment from char** to wchar_t** before spawning + the subprocess and back from wchar_t** to char** in the subprocess, + and it does so using the GetACP() codepage. */ + if (mp->msgctxt != NULL) + xsetenv ("MSGFILTER_MSGCTXT", mp->msgctxt, 1); + else + unsetenv ("MSGFILTER_MSGCTXT"); + xsetenv ("MSGFILTER_MSGID", mp->msgid, 1); + location = xasprintf ("%s:%ld", mp->pos.file_name, + (long) mp->pos.line_number); + xsetenv ("MSGFILTER_LOCATION", location, 1); + free (location); + /* Count NUL delimited substrings. */ for (p = msgstr, nsubstrings = 0; p < msgstr + msgstr_len; diff -Nru gettext-0.17/gettext-tools/src/msgfmt.c gettext-0.18.1.1/gettext-tools/src/msgfmt.c --- gettext-0.17/gettext-tools/src/msgfmt.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgfmt.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Converts Uniforum style .po files to binary .mo files - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -28,6 +28,7 @@ #include #include "closeout.h" +#include "str-list.h" #include "dir-list.h" #include "error.h" #include "error-progname.h" @@ -114,7 +115,7 @@ 'error' or 'multiline_error' to emit verbosity messages, because 'error' and 'multiline_error' during PO file parsing cause the program to exit with EXIT_FAILURE. See function lex_end(). */ -bool verbose = false; +int verbose = 0; /* If true check strings according to format string rules for the language. */ @@ -182,14 +183,14 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static const char *add_mo_suffix (const char *); static struct msg_domain *new_domain (const char *name, const char *file_name); static bool is_nonobsolete (const message_ty *mp); static void read_catalog_file_msgfmt (char *filename, - catalog_input_format_ty input_syntax); + catalog_input_format_ty input_syntax); int @@ -200,6 +201,7 @@ bool do_version = false; bool strict_uniforum = false; catalog_input_format_ty input_syntax = &input_format_po; + int arg_i; const char *canon_encoding; struct msg_domain *domain; @@ -226,134 +228,134 @@ atexit (close_stdout); while ((opt = getopt_long (argc, argv, "a:cCd:D:fhjl:o:Pr:vV", long_options, - NULL)) - != EOF) + NULL)) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'a': - { - char *endp; - size_t new_align = strtoul (optarg, &endp, 0); - - if (endp != optarg) - alignment = new_align; - } - break; + { + char *endp; + size_t new_align = strtoul (optarg, &endp, 0); + + if (endp != optarg) + alignment = new_align; + } + break; case 'c': - check_domain = true; - check_format_strings = true; - check_header = true; - break; + check_domain = true; + check_format_strings = true; + check_header = true; + break; case 'C': - check_compatibility = true; - break; + check_compatibility = true; + break; case 'd': - java_class_directory = optarg; - csharp_base_directory = optarg; - tcl_base_directory = optarg; - break; + java_class_directory = optarg; + csharp_base_directory = optarg; + tcl_base_directory = optarg; + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'f': - include_fuzzies = true; - break; + include_fuzzies = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'j': - java_mode = true; - break; + java_mode = true; + break; case 'l': - java_locale_name = optarg; - csharp_locale_name = optarg; - tcl_locale_name = optarg; - break; + java_locale_name = optarg; + csharp_locale_name = optarg; + tcl_locale_name = optarg; + break; case 'o': - output_file_name = optarg; - break; + output_file_name = optarg; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'r': - java_resource_name = optarg; - csharp_resource_name = optarg; - break; + java_resource_name = optarg; + csharp_resource_name = optarg; + break; case 'S': - strict_uniforum = true; - break; + strict_uniforum = true; + break; case 'v': - verbose = true; - break; + verbose++; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case CHAR_MAX + 1: /* --check-accelerators */ - check_accelerators = true; - if (optarg != NULL) - { - if (optarg[0] != '\0' && ispunct ((unsigned char) optarg[0]) - && optarg[1] == '\0') - accelerator_char = optarg[0]; - else - error (EXIT_FAILURE, 0, - _("the argument to %s should be a single punctuation character"), - "--check-accelerators"); - } - break; + check_accelerators = true; + if (optarg != NULL) + { + if (optarg[0] != '\0' && ispunct ((unsigned char) optarg[0]) + && optarg[1] == '\0') + accelerator_char = optarg[0]; + else + error (EXIT_FAILURE, 0, + _("the argument to %s should be a single punctuation character"), + "--check-accelerators"); + } + break; case CHAR_MAX + 2: /* --check-domain */ - check_domain = true; - break; + check_domain = true; + break; case CHAR_MAX + 3: /* --check-format */ - check_format_strings = true; - break; + check_format_strings = true; + break; case CHAR_MAX + 4: /* --check-header */ - check_header = true; - break; + check_header = true; + break; case CHAR_MAX + 5: /* --java2 */ - java_mode = true; - assume_java2 = true; - break; + java_mode = true; + assume_java2 = true; + break; case CHAR_MAX + 6: /* --no-hash */ - no_hash_table = true; - break; + no_hash_table = true; + break; case CHAR_MAX + 7: /* --tcl */ - tcl_mode = true; - break; + tcl_mode = true; + break; case CHAR_MAX + 8: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 9: /* --qt */ - qt_mode = true; - break; + qt_mode = true; + break; case CHAR_MAX + 10: /* --csharp */ - csharp_mode = true; - break; + csharp_mode = true; + break; case CHAR_MAX + 11: /* --csharp-resources */ - csharp_resources_mode = true; - break; + csharp_resources_mode = true; + break; case CHAR_MAX + 12: /* --use-untranslated (undocumented) */ - include_untranslated = true; - break; + include_untranslated = true; + break; case CHAR_MAX + 13: /* --endianness={big|little} */ - { - int endianness; + { + int endianness; - if (strcmp (optarg, "big") == 0) - endianness = 1; - else if (strcmp (optarg, "little") == 0) - endianness = 0; - else - error (EXIT_FAILURE, 0, _("invalid endianness: %s"), optarg); - - byteswap = endianness ^ ENDIANNESS; - } - break; + if (strcmp (optarg, "big") == 0) + endianness = 1; + else if (strcmp (optarg, "little") == 0) + endianness = 0; + else + error (EXIT_FAILURE, 0, _("invalid endianness: %s"), optarg); + + byteswap = endianness ^ ENDIANNESS; + } + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -366,7 +368,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -395,100 +397,100 @@ /* More than one bit set? */ if (modes & (modes - 1)) { - const char *first_option; - const char *second_option; - unsigned int i; - for (i = 0; ; i++) - if (modes & (1 << i)) - break; - first_option = mode_options[i]; - for (i = i + 1; ; i++) - if (modes & (1 << i)) - break; - second_option = mode_options[i]; - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - first_option, second_option); + const char *first_option; + const char *second_option; + unsigned int i; + for (i = 0; ; i++) + if (modes & (1 << i)) + break; + first_option = mode_options[i]; + for (i = i + 1; ; i++) + if (modes & (1 << i)) + break; + second_option = mode_options[i]; + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + first_option, second_option); } } if (java_mode) { if (output_file_name != NULL) - { - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--java", "--output-file"); - } + { + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + "--java", "--output-file"); + } if (java_class_directory == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-d directory\" specification"), - "--java"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-d directory\" specification"), + "--java"); + usage (EXIT_FAILURE); + } } else if (csharp_mode) { if (output_file_name != NULL) - { - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--csharp", "--output-file"); - } + { + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + "--csharp", "--output-file"); + } if (csharp_locale_name == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-l locale\" specification"), - "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-l locale\" specification"), + "--csharp"); + usage (EXIT_FAILURE); + } if (csharp_base_directory == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-d directory\" specification"), - "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-d directory\" specification"), + "--csharp"); + usage (EXIT_FAILURE); + } } else if (tcl_mode) { if (output_file_name != NULL) - { - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--tcl", "--output-file"); - } + { + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + "--tcl", "--output-file"); + } if (tcl_locale_name == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-l locale\" specification"), - "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-l locale\" specification"), + "--tcl"); + usage (EXIT_FAILURE); + } if (tcl_base_directory == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-d directory\" specification"), - "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-d directory\" specification"), + "--tcl"); + usage (EXIT_FAILURE); + } } else { if (java_resource_name != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), - "--resource", "--java", "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), + "--resource", "--java", "--csharp"); + usage (EXIT_FAILURE); + } if (java_locale_name != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s, %s or %s"), - "--locale", "--java", "--csharp", "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s, %s or %s"), + "--locale", "--java", "--csharp", "--tcl"); + usage (EXIT_FAILURE); + } if (java_class_directory != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s, %s or %s"), - "-d", "--java", "--csharp", "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s, %s or %s"), + "-d", "--java", "--csharp", "--tcl"); + usage (EXIT_FAILURE); + } } /* The -o option determines the name of the domain and therefore @@ -496,22 +498,20 @@ if (output_file_name != NULL) current_domain = new_domain (output_file_name, - strict_uniforum && !csharp_resources_mode && !qt_mode - ? add_mo_suffix (output_file_name) - : output_file_name); + strict_uniforum && !csharp_resources_mode && !qt_mode + ? add_mo_suffix (output_file_name) + : output_file_name); /* Process all given .po files. */ - while (argc > optind) + for (arg_i = optind; arg_i < argc; arg_i++) { /* Remember that we currently have not specified any domain. This - is of course not true when we saw the -o option. */ + is of course not true when we saw the -o option. */ if (output_file_name == NULL) - current_domain = NULL; + current_domain = NULL; /* And process the input file. */ - read_catalog_file_msgfmt (argv[optind], input_syntax); - - ++optind; + read_catalog_file_msgfmt (argv[arg_i], input_syntax); } /* We know a priori that some input_syntax->parse() functions convert @@ -529,19 +529,19 @@ for (domain = domain_list; domain != NULL; domain = domain->next) nerrors += - check_message_list (domain->mlp, - 1, check_format_strings, check_header, - check_compatibility, - check_accelerators, accelerator_char); + check_message_list (domain->mlp, + 1, check_format_strings, check_header, + check_compatibility, + check_accelerators, accelerator_char); /* Exit with status 1 on any error. */ if (nerrors > 0) { - error (0, 0, - ngettext ("found %d fatal error", "found %d fatal errors", - nerrors), - nerrors); - exit_status = EXIT_FAILURE; + error (0, 0, + ngettext ("found %d fatal error", "found %d fatal errors", + nerrors), + nerrors); + exit_status = EXIT_FAILURE; } } @@ -549,44 +549,44 @@ for (domain = domain_list; domain != NULL; domain = domain->next) { if (java_mode) - { - if (msgdomain_write_java (domain->mlp, canon_encoding, - java_resource_name, java_locale_name, - java_class_directory, assume_java2)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_java (domain->mlp, canon_encoding, + java_resource_name, java_locale_name, + java_class_directory, assume_java2)) + exit_status = EXIT_FAILURE; + } else if (csharp_mode) - { - if (msgdomain_write_csharp (domain->mlp, canon_encoding, - csharp_resource_name, csharp_locale_name, - csharp_base_directory)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_csharp (domain->mlp, canon_encoding, + csharp_resource_name, csharp_locale_name, + csharp_base_directory)) + exit_status = EXIT_FAILURE; + } else if (csharp_resources_mode) - { - if (msgdomain_write_csharp_resources (domain->mlp, canon_encoding, - domain->domain_name, - domain->file_name)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_csharp_resources (domain->mlp, canon_encoding, + domain->domain_name, + domain->file_name)) + exit_status = EXIT_FAILURE; + } else if (tcl_mode) - { - if (msgdomain_write_tcl (domain->mlp, canon_encoding, - tcl_locale_name, tcl_base_directory)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_tcl (domain->mlp, canon_encoding, + tcl_locale_name, tcl_base_directory)) + exit_status = EXIT_FAILURE; + } else if (qt_mode) - { - if (msgdomain_write_qt (domain->mlp, canon_encoding, - domain->domain_name, domain->file_name)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_qt (domain->mlp, canon_encoding, + domain->domain_name, domain->file_name)) + exit_status = EXIT_FAILURE; + } else - { - if (msgdomain_write_mo (domain->mlp, domain->domain_name, - domain->file_name)) - exit_status = EXIT_FAILURE; - } + { + if (msgdomain_write_mo (domain->mlp, domain->domain_name, + domain->file_name)) + exit_status = EXIT_FAILURE; + } /* List is not used anymore. */ message_list_free (domain->mlp, 0); @@ -595,21 +595,42 @@ /* Print statistics if requested. */ if (verbose || do_statistics) { + if (do_statistics + verbose >= 2 && optind < argc) + { + /* Print the input file name(s) in front of the statistics line. */ + char *all_input_file_names; + + { + string_list_ty input_file_names; + + string_list_init (&input_file_names);; + for (arg_i = optind; arg_i < argc; arg_i++) + string_list_append (&input_file_names, argv[arg_i]); + all_input_file_names = + string_list_join (&input_file_names, ", ", '\0', false); + string_list_destroy (&input_file_names); + } + + /* TRANSLATORS: The prefix before a statistics message. The argument + is a file name or a comma separated list of file names. */ + fprintf (stderr, _("%s: "), all_input_file_names); + free (all_input_file_names); + } fprintf (stderr, - ngettext ("%d translated message", "%d translated messages", - msgs_translated), - msgs_translated); + ngettext ("%d translated message", "%d translated messages", + msgs_translated), + msgs_translated); if (msgs_fuzzy > 0) - fprintf (stderr, - ngettext (", %d fuzzy translation", ", %d fuzzy translations", - msgs_fuzzy), - msgs_fuzzy); + fprintf (stderr, + ngettext (", %d fuzzy translation", ", %d fuzzy translations", + msgs_fuzzy), + msgs_fuzzy); if (msgs_untranslated > 0) - fprintf (stderr, - ngettext (", %d untranslated message", - ", %d untranslated messages", - msgs_untranslated), - msgs_untranslated); + fprintf (stderr, + ngettext (", %d untranslated message", + ", %d untranslated messages", + msgs_untranslated), + msgs_untranslated); fputs (".\n", stderr); } @@ -623,7 +644,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -864,26 +885,26 @@ if (check_header) { if (!this->has_header_entry) - { - multiline_error (xasprintf ("%s: ", gram_pos.file_name), - xasprintf (_("\ + { + multiline_error (xasprintf ("%s: ", this->file_name), + xasprintf (_("\ warning: PO file header missing or invalid\n"))); - multiline_error (NULL, - xasprintf (_("\ + multiline_error (NULL, + xasprintf (_("\ warning: charset conversion will not work\n"))); - } + } else if (!this->has_nonfuzzy_header_entry) - { - /* Has only a fuzzy header entry. Since the versions 0.10.xx - ignore a fuzzy header entry and even give an error on it, we - give a warning, to increase operability with these older - msgfmt versions. This warning can go away in January 2003. */ - multiline_warning (xasprintf ("%s: ", gram_pos.file_name), - xasprintf (_("warning: PO file header fuzzy\n"))); - multiline_warning (NULL, - xasprintf (_("\ + { + /* Has only a fuzzy header entry. Since the versions 0.10.xx + ignore a fuzzy header entry and even give an error on it, we + give a warning, to increase operability with these older + msgfmt versions. This warning can go away in January 2003. */ + multiline_warning (xasprintf ("%s: ", this->file_name), + xasprintf (_("warning: PO file header fuzzy\n"))); + multiline_warning (NULL, + xasprintf (_("\ warning: older versions of msgfmt will give an error on this\n"))); - } + } } } @@ -901,19 +922,19 @@ correct = strcspn (name, INVALID_PATH_CHAR); if (name[correct] != '\0') - { - exit_status = EXIT_FAILURE; - if (correct == 0) - { - error (0, 0, _("\ + { + exit_status = EXIT_FAILURE; + if (correct == 0) + { + error (0, 0, _("\ domain name \"%s\" not suitable as file name"), name); - return; - } - else - error (0, 0, _("\ + return; + } + else + error (0, 0, _("\ domain name \"%s\" not suitable as file name: will use prefix"), name); - name[correct] = '\0'; - } + name[correct] = '\0'; + } /* Set new domain. */ current_domain = new_domain (name, add_mo_suffix (name)); @@ -923,8 +944,8 @@ else { if (check_domain) - po_gram_error_at_line (&gram_pos, - _("`domain %s' directive ignored"), name); + po_gram_error_at_line (&gram_pos, + _("`domain %s' directive ignored"), name); /* NAME was allocated in po-gram-gen.y but is not used anywhere. */ free (name); @@ -934,23 +955,23 @@ static void msgfmt_add_message (default_catalog_reader_ty *this, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { /* Check whether already a domain is specified. If not, use default domain. */ if (current_domain == NULL) { current_domain = new_domain (MESSAGE_DOMAIN_DEFAULT, - add_mo_suffix (MESSAGE_DOMAIN_DEFAULT)); + add_mo_suffix (MESSAGE_DOMAIN_DEFAULT)); /* Keep current_domain and this->domain synchronized. */ this->domain = current_domain->domain_name; this->mlp = current_domain->mlp; @@ -958,62 +979,62 @@ /* Invoke superclass method. */ default_add_message (this, msgctxt, msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - force_fuzzy, obsolete); + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + force_fuzzy, obsolete); } static void msgfmt_frob_new_message (default_catalog_reader_ty *that, message_ty *mp, - const lex_pos_ty *msgid_pos, - const lex_pos_ty *msgstr_pos) + const lex_pos_ty *msgid_pos, + const lex_pos_ty *msgstr_pos) { msgfmt_catalog_reader_ty *this = (msgfmt_catalog_reader_ty *) that; if (!mp->obsolete) { /* Don't emit untranslated entries. - Also don't emit fuzzy entries, unless --use-fuzzy was specified. - But ignore fuzziness of the header entry. */ + Also don't emit fuzzy entries, unless --use-fuzzy was specified. + But ignore fuzziness of the header entry. */ if ((!include_untranslated && mp->msgstr[0] == '\0') - || (!include_fuzzies && mp->is_fuzzy && !is_header (mp))) - { - if (check_compatibility) - { - error_with_progname = false; - error_at_line (0, 0, mp->pos.file_name, mp->pos.line_number, - (mp->msgstr[0] == '\0' - ? _("empty `msgstr' entry ignored") - : _("fuzzy `msgstr' entry ignored"))); - error_with_progname = true; - } - - /* Increment counter for fuzzy/untranslated messages. */ - if (mp->msgstr[0] == '\0') - ++msgs_untranslated; - else - ++msgs_fuzzy; + || (!include_fuzzies && mp->is_fuzzy && !is_header (mp))) + { + if (check_compatibility) + { + error_with_progname = false; + error_at_line (0, 0, mp->pos.file_name, mp->pos.line_number, + (mp->msgstr[0] == '\0' + ? _("empty `msgstr' entry ignored") + : _("fuzzy `msgstr' entry ignored"))); + error_with_progname = true; + } + + /* Increment counter for fuzzy/untranslated messages. */ + if (mp->msgstr[0] == '\0') + ++msgs_untranslated; + else + ++msgs_fuzzy; - mp->obsolete = true; - } + mp->obsolete = true; + } else - { - /* Test for header entry. */ - if (is_header (mp)) - { - this->has_header_entry = true; - if (!mp->is_fuzzy) - this->has_nonfuzzy_header_entry = true; - } - else - /* We don't count the header entry in the statistic so place - the counter incrementation here. */ - if (mp->is_fuzzy) - ++msgs_fuzzy; - else - ++msgs_translated; - } + { + /* Test for header entry. */ + if (is_header (mp)) + { + this->has_header_entry = true; + if (!mp->is_fuzzy) + this->has_nonfuzzy_header_entry = true; + } + else + /* We don't count the header entry in the statistic so place + the counter incrementation here. */ + if (mp->is_fuzzy) + ++msgs_fuzzy; + else + ++msgs_translated; + } } } @@ -1032,12 +1053,12 @@ static bool warned = false; if (!include_fuzzies && check_compatibility && !warned) - { - warned = true; - error (0, 0, _("\ + { + warned = true; + error (0, 0, _("\ %s: warning: source file contains fuzzy translation"), - gram_pos.file_name); - } + gram_pos.file_name); + } } } @@ -1083,6 +1104,7 @@ pop->allow_domain_directives = true; pop->allow_duplicates = false; pop->allow_duplicates_if_same_msgstr = false; + pop->file_name = real_filename; pop->mdlp = NULL; pop->mlp = NULL; if (current_domain != NULL) @@ -1093,7 +1115,7 @@ } po_lex_pass_obsolete_entries (true); catalog_reader_parse ((abstract_catalog_reader_ty *) pop, fp, real_filename, - filename, input_syntax); + filename, input_syntax); catalog_reader_free ((abstract_catalog_reader_ty *) pop); if (fp != stdin) diff -Nru gettext-0.17/gettext-tools/src/msgfmt.h gettext-0.18.1.1/gettext-tools/src/msgfmt.h --- gettext-0.17/gettext-tools/src/msgfmt.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgfmt.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* msgfmt specifics - Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2001, 2009 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -22,6 +22,6 @@ 'error' or 'multiline_error' to emit verbosity messages, because 'error' and 'multiline_error' during PO file parsing cause the program to exit with EXIT_FAILURE. See function lex_end(). */ -extern bool verbose; +extern int verbose; #endif /* _MSGFMT_H */ diff -Nru gettext-0.17/gettext-tools/src/msggrep.c gettext-0.18.1.1/gettext-tools/src/msggrep.c --- gettext-0.17/gettext-tools/src/msggrep.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msggrep.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Extract some translations of a translation catalog. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -53,6 +53,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "str-list.h" #include "msgl-charset.h" #include "xalloc.h" @@ -91,6 +92,7 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 9 }, { "comment", no_argument, NULL, 'C' }, { "directory", required_argument, NULL, 'D' }, { "domain", required_argument, NULL, 'M' }, @@ -120,6 +122,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 7 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 8 }, + { "style", required_argument, NULL, CHAR_MAX + 10 }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w' }, { NULL, 0, NULL, 0 } @@ -129,12 +132,12 @@ /* Forward declaration of local functions. */ static void no_pass (int opt) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static msgdomain_list_ty *process_msgdomain_list (msgdomain_list_ty *mdlp); @@ -194,200 +197,209 @@ } while ((opt = getopt_long (argc, argv, "CD:e:Ef:FhiJKM:N:o:pPTvVw:X", - long_options, NULL)) - != EOF) + long_options, NULL)) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'C': - grep_pass = 3; - break; + grep_pass = 3; + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - if (grep_pass < 0) - no_pass (opt); - { - struct grep_task *gt = &grep_task[grep_pass]; - /* Append optarg and a newline to gt->patterns. */ - size_t len = strlen (optarg); - gt->patterns = - (char *) xrealloc (gt->patterns, gt->patterns_size + len + 1); - memcpy (gt->patterns + gt->patterns_size, optarg, len); - gt->patterns_size += len; - *(gt->patterns + gt->patterns_size) = '\n'; - gt->patterns_size += 1; - gt->pattern_count++; - } - break; + if (grep_pass < 0) + no_pass (opt); + { + struct grep_task *gt = &grep_task[grep_pass]; + /* Append optarg and a newline to gt->patterns. */ + size_t len = strlen (optarg); + gt->patterns = + (char *) xrealloc (gt->patterns, gt->patterns_size + len + 1); + memcpy (gt->patterns + gt->patterns_size, optarg, len); + gt->patterns_size += len; + *(gt->patterns + gt->patterns_size) = '\n'; + gt->patterns_size += 1; + gt->pattern_count++; + } + break; case 'E': - if (grep_pass < 0) - no_pass (opt); - grep_task[grep_pass].matcher = &matcher_egrep; - break; + if (grep_pass < 0) + no_pass (opt); + grep_task[grep_pass].matcher = &matcher_egrep; + break; case 'f': - if (grep_pass < 0) - no_pass (opt); - { - struct grep_task *gt = &grep_task[grep_pass]; - /* Append the contents of the specified file to gt->patterns. */ - FILE *fp = fopen (optarg, "r"); + if (grep_pass < 0) + no_pass (opt); + { + struct grep_task *gt = &grep_task[grep_pass]; + /* Append the contents of the specified file to gt->patterns. */ + FILE *fp = fopen (optarg, "r"); - if (fp == NULL) - error (EXIT_FAILURE, errno, _("\ + if (fp == NULL) + error (EXIT_FAILURE, errno, _("\ error while opening \"%s\" for reading"), optarg); - while (!feof (fp)) - { - char buf[4096]; - size_t count = fread (buf, 1, sizeof buf, fp); - - if (count == 0) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + while (!feof (fp)) + { + char buf[4096]; + size_t count = fread (buf, 1, sizeof buf, fp); + + if (count == 0) + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), optarg); - /* EOF reached. */ - break; - } - - gt->patterns = - (char *) xrealloc (gt->patterns, gt->patterns_size + count); - memcpy (gt->patterns + gt->patterns_size, buf, count); - gt->patterns_size += count; - } - - /* Append a final newline if file ended in a non-newline. */ - if (gt->patterns_size > 0 - && *(gt->patterns + gt->patterns_size - 1) != '\n') - { - gt->patterns = - (char *) xrealloc (gt->patterns, gt->patterns_size + 1); - *(gt->patterns + gt->patterns_size) = '\n'; - gt->patterns_size += 1; - } - - fclose (fp); - gt->pattern_count++; - } - break; + /* EOF reached. */ + break; + } + + gt->patterns = + (char *) xrealloc (gt->patterns, gt->patterns_size + count); + memcpy (gt->patterns + gt->patterns_size, buf, count); + gt->patterns_size += count; + } + + /* Append a final newline if file ended in a non-newline. */ + if (gt->patterns_size > 0 + && *(gt->patterns + gt->patterns_size - 1) != '\n') + { + gt->patterns = + (char *) xrealloc (gt->patterns, gt->patterns_size + 1); + *(gt->patterns + gt->patterns_size) = '\n'; + gt->patterns_size += 1; + } + + fclose (fp); + gt->pattern_count++; + } + break; case 'F': - if (grep_pass < 0) - no_pass (opt); - grep_task[grep_pass].matcher = &matcher_fgrep; - break; + if (grep_pass < 0) + no_pass (opt); + grep_task[grep_pass].matcher = &matcher_fgrep; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - if (grep_pass < 0) - no_pass (opt); - grep_task[grep_pass].case_insensitive = true; - break; + if (grep_pass < 0) + no_pass (opt); + grep_task[grep_pass].case_insensitive = true; + break; case 'J': - grep_pass = 0; - break; + grep_pass = 0; + break; case 'K': - grep_pass = 1; - break; + grep_pass = 1; + break; case 'M': - string_list_append (domain_names, optarg); - break; + string_list_append (domain_names, optarg); + break; case 'N': - string_list_append (location_files, optarg); - break; + string_list_append (location_files, optarg); + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 'T': - grep_pass = 2; - break; + grep_pass = 2; + break; case 'v': - invert_match = true; - break; + invert_match = true; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case 'X': - grep_pass = 4; - break; + grep_pass = 4; + break; case CHAR_MAX + 1: - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case CHAR_MAX + 2: - message_print_style_indent (); - break; + message_print_style_indent (); + break; case CHAR_MAX + 3: - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case CHAR_MAX + 4: - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case CHAR_MAX + 5: - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case CHAR_MAX + 6: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 7: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 8: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 9: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 10: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -400,7 +412,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -423,11 +435,11 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Compile the patterns. */ for (grep_pass = 0; grep_pass < 5; grep_pass++) @@ -435,17 +447,17 @@ struct grep_task *gt = &grep_task[grep_pass]; if (gt->pattern_count > 0) - { - if (gt->patterns_size > 0) - { - /* Strip trailing newline. */ - assert (gt->patterns[gt->patterns_size - 1] == '\n'); - gt->patterns_size--; - } - gt->compiled_patterns = - gt->matcher->compile (gt->patterns, gt->patterns_size, - gt->case_insensitive, false, false, '\n'); - } + { + if (gt->patterns_size > 0) + { + /* Strip trailing newline. */ + assert (gt->patterns[gt->patterns_size - 1] == '\n'); + gt->patterns_size--; + } + gt->compiled_patterns = + gt->matcher->compile (gt->patterns, gt->patterns_size, + gt->case_insensitive, false, false, '\n'); + } } /* Read input file. */ @@ -481,8 +493,8 @@ no_pass (int opt) { error (EXIT_SUCCESS, 0, - _("option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been specified"), - opt); + _("option '%c' cannot be used before 'J' or 'K' or 'T' or 'C' or 'X' has been specified"), + opt); usage (EXIT_FAILURE); } @@ -493,7 +505,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -575,6 +587,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ --no-escape do not use C escapes in output (default)\n")); printf (_("\ --escape use C escapes in output, no extended chars\n")); @@ -614,7 +632,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -670,8 +688,8 @@ size_t match_offset; match_offset = - gt->matcher->execute (gt->compiled_patterns, str, len, - &match_size, false); + gt->matcher->execute (gt->compiled_patterns, str, len, + &match_size, false); return (match_offset != (size_t) -1); } else @@ -715,7 +733,7 @@ size_t length = strlen (p); if (is_string_selected (2, p, length)) - return true; + return true; p += length + 1; } @@ -732,27 +750,27 @@ length = 0; for (j = 0; j < mp->comment->nitems; j++) - length += strlen (mp->comment->item[j]) + 1; + length += strlen (mp->comment->item[j]) + 1; total_comment = (char *) xmalloca (length); q = total_comment; for (j = 0; j < mp->comment->nitems; j++) - { - size_t l = strlen (mp->comment->item[j]); + { + size_t l = strlen (mp->comment->item[j]); - memcpy (q, mp->comment->item[j], l); - q += l; - *q++ = '\n'; - } + memcpy (q, mp->comment->item[j], l); + q += l; + *q++ = '\n'; + } if (q != total_comment + length) - abort (); + abort (); selected = is_string_selected (3, total_comment, length); freea (total_comment); if (selected) - return true; + return true; } /* Test extracted comments using the --extracted-comment arguments. */ @@ -767,27 +785,27 @@ length = 0; for (j = 0; j < mp->comment_dot->nitems; j++) - length += strlen (mp->comment_dot->item[j]) + 1; + length += strlen (mp->comment_dot->item[j]) + 1; total_comment = (char *) xmalloca (length); q = total_comment; for (j = 0; j < mp->comment_dot->nitems; j++) - { - size_t l = strlen (mp->comment_dot->item[j]); + { + size_t l = strlen (mp->comment_dot->item[j]); - memcpy (q, mp->comment_dot->item[j], l); - q += l; - *q++ = '\n'; - } + memcpy (q, mp->comment_dot->item[j], l); + q += l; + *q++ = '\n'; + } if (q != total_comment + length) - abort (); + abort (); selected = is_string_selected (4, total_comment, length); freea (total_comment); if (selected) - return true; + return true; } return false; diff -Nru gettext-0.17/gettext-tools/src/msginit.c gettext-0.18.1.1/gettext-tools/src/msginit.c --- gettext-0.17/gettext-tools/src/msginit.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msginit.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Initializes a new PO file. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -65,6 +65,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "po-charset.h" #include "localcharset.h" #include "localename.h" @@ -73,7 +74,7 @@ #include "lang-table.h" #include "xalloc.h" #include "xmalloca.h" -#include "filename.h" +#include "concat-filename.h" #include "xerror.h" #include "xvasprintf.h" #include "msgl-english.h" @@ -112,6 +113,7 @@ /* Long options. */ static const struct option long_options[] = { + { "color", optional_argument, NULL, CHAR_MAX + 5 }, { "help", no_argument, NULL, 'h' }, { "input", required_argument, NULL, 'i' }, { "locale", required_argument, NULL, 'l' }, @@ -122,6 +124,7 @@ { "properties-output", no_argument, NULL, 'p' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 3 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 4 }, + { "style", required_argument, NULL, CHAR_MAX + 6 }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w' }, { NULL, 0, NULL, 0 } @@ -178,74 +181,83 @@ locale = NULL; while ((opt = getopt_long (argc, argv, "hi:l:o:pPVw:", long_options, NULL)) - != EOF) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - if (input_file != NULL) - { - error (EXIT_SUCCESS, 0, _("at most one input file allowed")); - usage (EXIT_FAILURE); - } - input_file = optarg; - break; + if (input_file != NULL) + { + error (EXIT_SUCCESS, 0, _("at most one input file allowed")); + usage (EXIT_FAILURE); + } + input_file = optarg; + break; case 'l': - locale = optarg; - break; + locale = optarg; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: - no_translator = true; - break; + no_translator = true; + break; case CHAR_MAX + 2: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 3: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 4: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 5: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 6: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -258,7 +270,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -280,14 +292,14 @@ { locale = gl_locale_name (LC_MESSAGES, "LC_MESSAGES"); if (strcmp (locale, "C") == 0) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + { + multiline_error (xstrdup (""), + xstrdup (_("\ You are in a language indifferent environment. Please set\n\ your LANG environment variable, as described in the ABOUT-NLS\n\ file. This is necessary so you can test your translations.\n"))); - exit (EXIT_FAILURE); - } + exit (EXIT_FAILURE); + } } { const char *alias = _nl_expand_alias (locale); @@ -304,15 +316,15 @@ /* But don't overwrite existing PO files. */ if (access (output_file, F_OK) == 0) - { - multiline_error (xstrdup (""), - xasprintf (_("\ + { + multiline_error (xstrdup (""), + xasprintf (_("\ Output file %s already exists.\n\ Please specify the locale through the --locale option or\n\ the output .po file through the --output-file option.\n"), - output_file)); - exit (EXIT_FAILURE); - } + output_file)); + exit (EXIT_FAILURE); + } } /* Read input file. */ @@ -344,7 +356,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -390,6 +402,12 @@ printf (_("\ --no-translator assume the PO file is automatically generated\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -p, --properties-output write out a Java .properties file\n")); printf (_("\ --stringtable-output write out a NeXTstep/GNUstep .strings file\n")); @@ -411,7 +429,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -430,45 +448,45 @@ if (dirp != NULL) { for (;;) - { - struct dirent *dp; + { + struct dirent *dp; - errno = 0; - dp = readdir (dirp); - if (dp != NULL) - { - const char *name = dp->d_name; - size_t namlen = strlen (name); - - if (namlen > 4 && memcmp (name + namlen - 4, ".pot", 4) == 0) - { - if (found == NULL) - found = xstrdup (name); - else - { - multiline_error (xstrdup (""), - xstrdup (_("\ + errno = 0; + dp = readdir (dirp); + if (dp != NULL) + { + const char *name = dp->d_name; + size_t namlen = strlen (name); + + if (namlen > 4 && memcmp (name + namlen - 4, ".pot", 4) == 0) + { + if (found == NULL) + found = xstrdup (name); + else + { + multiline_error (xstrdup (""), + xstrdup (_("\ Found more than one .pot file.\n\ Please specify the input .pot file through the --input option.\n"))); - usage (EXIT_FAILURE); - } - } - } - else if (errno != 0) - error (EXIT_FAILURE, errno, _("error reading current directory")); - else - break; - } + usage (EXIT_FAILURE); + } + } + } + else if (errno != 0) + error (EXIT_FAILURE, errno, _("error reading current directory")); + else + break; + } if (closedir (dirp)) - error (EXIT_FAILURE, errno, _("error reading current directory")); + error (EXIT_FAILURE, errno, _("error reading current directory")); if (found != NULL) - return found; + return found; } #endif multiline_error (xstrdup (""), - xstrdup (_("\ + xstrdup (_("\ Found no .pot file in the current directory.\n\ Please specify the input .pot file through the --input option.\n"))); usage (EXIT_FAILURE); @@ -487,193 +505,205 @@ catalogname_for_locale (const char *locale) { static const char *locales_with_principal_territory[] = { - /* Language Main territory */ - "ace_ID", /* Achinese Indonesia */ - "af_ZA", /* Afrikaans South Africa */ - "ak_GH", /* Akan Ghana */ - "am_ET", /* Amharic Ethiopia */ - "an_ES", /* Aragonese Spain */ - "ang_GB", /* Old English Britain */ - "as_IN", /* Assamese India */ - "av_RU", /* Avaric Russia */ - "awa_IN", /* Awadhi India */ - "az_AZ", /* Azerbaijani Azerbaijan */ - "bad_CF", /* Banda Central African Republic */ - "ban_ID", /* Balinese Indonesia */ - "be_BY", /* Belarusian Belarus */ - "bem_ZM", /* Bemba Zambia */ - "bg_BG", /* Bulgarian Bulgaria */ - "bho_IN", /* Bhojpuri India */ - "bik_PH", /* Bikol Philippines */ - "bin_NG", /* Bini Nigeria */ - "bm_ML", /* Bambara Mali */ - "bn_IN", /* Bengali India */ - "bo_CN", /* Tibetan China */ - "br_FR", /* Breton France */ - "bs_BA", /* Bosnian Bosnia */ - "btk_ID", /* Batak Indonesia */ - "bug_ID", /* Buginese Indonesia */ - "ca_ES", /* Catalan Spain */ - "ce_RU", /* Chechen Russia */ - "ceb_PH", /* Cebuano Philippines */ - "co_FR", /* Corsican France */ - "cr_CA", /* Cree Canada */ - "cs_CZ", /* Czech Czech Republic */ - "csb_PL", /* Kashubian Poland */ - "cy_GB", /* Welsh Britain */ - "da_DK", /* Danish Denmark */ - "de_DE", /* German Germany */ - "din_SD", /* Dinka Sudan */ - "doi_IN", /* Dogri India */ - "dv_MV", /* Divehi Maldives */ - "dz_BT", /* Dzongkha Bhutan */ - "ee_GH", /* Éwé Ghana */ - "el_GR", /* Greek Greece */ + /* Language Main territory */ + "ace_ID", /* Achinese Indonesia */ + "af_ZA", /* Afrikaans South Africa */ + "ak_GH", /* Akan Ghana */ + "am_ET", /* Amharic Ethiopia */ + "an_ES", /* Aragonese Spain */ + "ang_GB", /* Old English Britain */ + "arn_CL", /* Mapudungun Chile */ + "as_IN", /* Assamese India */ + "ast_ES", /* Asturian Spain */ + "av_RU", /* Avaric Russia */ + "awa_IN", /* Awadhi India */ + "az_AZ", /* Azerbaijani Azerbaijan */ + "ban_ID", /* Balinese Indonesia */ + "be_BY", /* Belarusian Belarus */ + "bej_SD", /* Beja Sudan */ + "bem_ZM", /* Bemba Zambia */ + "bg_BG", /* Bulgarian Bulgaria */ + "bho_IN", /* Bhojpuri India */ + "bik_PH", /* Bikol Philippines */ + "bin_NG", /* Bini Nigeria */ + "bm_ML", /* Bambara Mali */ + "bn_IN", /* Bengali India */ + "bo_CN", /* Tibetan China */ + "br_FR", /* Breton France */ + "bs_BA", /* Bosnian Bosnia */ + "bug_ID", /* Buginese Indonesia */ + "ca_ES", /* Catalan Spain */ + "ce_RU", /* Chechen Russia */ + "ceb_PH", /* Cebuano Philippines */ + "co_FR", /* Corsican France */ + "cr_CA", /* Cree Canada */ + /* Don't put "crh_UZ" or "crh_UA" here. That would be asking for fruitless + political discussion. */ + "cs_CZ", /* Czech Czech Republic */ + "csb_PL", /* Kashubian Poland */ + "cy_GB", /* Welsh Britain */ + "da_DK", /* Danish Denmark */ + "de_DE", /* German Germany */ + "din_SD", /* Dinka Sudan */ + "doi_IN", /* Dogri India */ + "dsb_DE", /* Lower Sorbian Germany */ + "dv_MV", /* Divehi Maldives */ + "dz_BT", /* Dzongkha Bhutan */ + "ee_GH", /* Éwé Ghana */ + "el_GR", /* Greek Greece */ /* Don't put "en_GB" or "en_US" here. That would be asking for fruitless political discussion. */ - "es_ES", /* Spanish Spain */ - "et_EE", /* Estonian Estonia */ - "fa_IR", /* Persian Iran */ - "fi_FI", /* Finnish Finland */ - "fil_PH", /* Filipino Philippines */ - "fj_FJ", /* Fijian Fiji */ - "fo_FO", /* Faroese Faeroe Islands */ - "fon_BJ", /* Fon Benin */ - "fr_FR", /* French France */ - "fy_NL", /* Western Frisian Netherlands */ - "ga_IE", /* Irish Ireland */ - "gd_GB", /* Scots Britain */ - "gon_IN", /* Gondi India */ - "gsw_CH", /* Swiss German Switzerland */ - "gu_IN", /* Gujarati India */ - "he_IL", /* Hebrew Israel */ - "hi_IN", /* Hindi India */ - "hil_PH", /* Hiligaynon Philippines */ - "hr_HR", /* Croatian Croatia */ - "ht_HT", /* Haitian Haiti */ - "hu_HU", /* Hungarian Hungary */ - "hy_AM", /* Armenian Armenia */ - "id_ID", /* Indonesian Indonesia */ - "ig_NG", /* Igbo Nigeria */ - "ii_CN", /* Sichuan Yi China */ - "ilo_PH", /* Iloko Philippines */ - "is_IS", /* Icelandic Iceland */ - "it_IT", /* Italian Italy */ - "ja_JP", /* Japanese Japan */ - "jab_NG", /* Hyam Nigeria */ - "jv_ID", /* Javanese Indonesia */ - "ka_GE", /* Georgian Georgia */ - "kab_DZ", /* Kabyle Algeria */ - "kaj_NG", /* Jju Nigeria */ - "kam_KE", /* Kamba Kenya */ - "kmb_AO", /* Kimbundu Angola */ - "kcg_NG", /* Tyap Nigeria */ - "kdm_NG", /* Kagoma Nigeria */ - "kg_CD", /* Kongo Democratic Republic of Congo */ - "kk_KZ", /* Kazakh Kazakhstan */ - "kl_GL", /* Kalaallisut Greenland */ - "km_KH", /* Khmer Cambodia */ - "kn_IN", /* Kannada India */ - "ko_KR", /* Korean Korea (South) */ - "kok_IN", /* Konkani India */ - "kr_NG", /* Kanuri Nigeria */ - "kru_IN", /* Kurukh India */ - "lg_UG", /* Ganda Uganda */ - "li_BE", /* Limburgish Belgium */ - "lo_LA", /* Laotian Laos */ - "lt_LT", /* Lithuanian Lithuania */ - "lu_CD", /* Luba-Katanga Democratic Republic of Congo */ - "lua_CD", /* Luba-Lulua Democratic Republic of Congo */ - "luo_KE", /* Luo Kenya */ - "lv_LV", /* Latvian Latvia */ - "mad_ID", /* Madurese Indonesia */ - "mag_IN", /* Magahi India */ - "mai_IN", /* Maithili India */ - "mak_ID", /* Makasar Indonesia */ - "man_ML", /* Mandingo Mali */ - "men_SL", /* Mende Sierra Leone */ - "mg_MG", /* Malagasy Madagascar */ - "min_ID", /* Minangkabau Indonesia */ - "mk_MK", /* Macedonian Macedonia */ - "ml_IN", /* Malayalam India */ - "mn_MN", /* Mongolian Mongolia */ - "mni_IN", /* Manipuri India */ - "mos_BF", /* Mossi Burkina Faso */ - "mr_IN", /* Marathi India */ - "ms_MY", /* Malay Malaysia */ - "mt_MT", /* Maltese Malta */ - "mwr_IN", /* Marwari India */ - "my_MM", /* Burmese Myanmar */ - "na_NR", /* Nauru Nauru */ - "nah_MX", /* Nahuatl Mexico */ - "nap_IT", /* Neapolitan Italy */ - "nb_NO", /* Norwegian Bokmål Norway */ - "nds_DE", /* Low Saxon Germany */ - "ne_NP", /* Nepali Nepal */ - "nl_NL", /* Dutch Netherlands */ - "nn_NO", /* Norwegian Nynorsk Norway */ - "no_NO", /* Norwegian Norway */ - "nr_ZA", /* South Ndebele South Africa */ - "nso_ZA", /* Northern Sotho South Africa */ - "nym_TZ", /* Nyamwezi Tanzania */ - "nyn_UG", /* Nyankole Uganda */ - "oc_FR", /* Occitan France */ - "oj_CA", /* Ojibwa Canada */ - "or_IN", /* Oriya India */ - "pa_IN", /* Punjabi India */ - "pag_PH", /* Pangasinan Philippines */ - "pam_PH", /* Pampanga Philippines */ - "pbb_CO", /* Páez Colombia */ - "pl_PL", /* Polish Poland */ - "ps_AF", /* Pashto Afghanistan */ - "pt_PT", /* Portuguese Portugal */ - "raj_IN", /* Rajasthani India */ - "rm_CH", /* Rhaeto-Roman Switzerland */ - "rn_BI", /* Kirundi Burundi */ - "ro_RO", /* Romanian Romania */ - "ru_RU", /* Russian Russia */ - "sa_IN", /* Sanskrit India */ - "sas_ID", /* Sasak Indonesia */ - "sat_IN", /* Santali India */ - "sc_IT", /* Sardinian Italy */ - "scn_IT", /* Sicilian Italy */ - "sg_CF", /* Sango Central African Republic */ - "shn_MM", /* Shan Myanmar */ - "si_LK", /* Sinhala Sri Lanka */ - "sid_ET", /* Sidamo Ethiopia */ - "sk_SK", /* Slovak Slovakia */ - "sl_SI", /* Slovenian Slovenia */ - "so_SO", /* Somali Somalia */ - "sq_AL", /* Albanian Albania */ - "sr_RS", /* Serbian Serbia */ - "sr_YU", /* Serbian Yugoslavia - this line can be removed in 2010 */ - "srr_SN", /* Serer Senegal */ - "suk_TZ", /* Sukuma Tanzania */ - "sus_GN", /* Susu Guinea */ - "sv_SE", /* Swedish Sweden */ - "te_IN", /* Telugu India */ - "tem_SL", /* Timne Sierra Leone */ - "tet_ID", /* Tetum Indonesia */ - "tg_TJ", /* Tajik Tajikistan */ - "th_TH", /* Thai Thailand */ - "tiv_NG", /* Tiv Nigeria */ - "tk_TM", /* Turkmen Turkmenistan */ - "tl_PH", /* Tagalog Philippines */ - "to_TO", /* Tonga Tonga */ - "tr_TR", /* Turkish Turkey */ - "tum_MW", /* Tumbuka Malawi */ - "uk_UA", /* Ukrainian Ukraine */ - "umb_AO", /* Umbundu Angola */ - "ur_PK", /* Urdu Pakistan */ - "uz_UZ", /* Uzbek Uzbekistan */ - "ve_ZA", /* Venda South Africa */ - "vi_VN", /* Vietnamese Vietnam */ - "wa_BE", /* Walloon Belgium */ - "wal_ET", /* Walamo Ethiopia */ - "war_PH", /* Waray Philippines */ - "wen_DE", /* Sorbian Germany */ - "yao_MW", /* Yao Malawi */ - "zap_MX" /* Zapotec Mexico */ + "es_ES", /* Spanish Spain */ + "et_EE", /* Estonian Estonia */ + "fa_IR", /* Persian Iran */ + "fi_FI", /* Finnish Finland */ + "fil_PH", /* Filipino Philippines */ + "fj_FJ", /* Fijian Fiji */ + "fo_FO", /* Faroese Faeroe Islands */ + "fon_BJ", /* Fon Benin */ + "fr_FR", /* French France */ + "fur_IT", /* Friulian Italy */ + "fy_NL", /* Western Frisian Netherlands */ + "ga_IE", /* Irish Ireland */ + "gd_GB", /* Scottish Gaelic Britain */ + "gon_IN", /* Gondi India */ + "gsw_CH", /* Swiss German Switzerland */ + "gu_IN", /* Gujarati India */ + "he_IL", /* Hebrew Israel */ + "hi_IN", /* Hindi India */ + "hil_PH", /* Hiligaynon Philippines */ + "hr_HR", /* Croatian Croatia */ + "hsb_DE", /* Upper Sorbian Germany */ + "ht_HT", /* Haitian Haiti */ + "hu_HU", /* Hungarian Hungary */ + "hy_AM", /* Armenian Armenia */ + "id_ID", /* Indonesian Indonesia */ + "ig_NG", /* Igbo Nigeria */ + "ii_CN", /* Sichuan Yi China */ + "ilo_PH", /* Iloko Philippines */ + "is_IS", /* Icelandic Iceland */ + "it_IT", /* Italian Italy */ + "ja_JP", /* Japanese Japan */ + "jab_NG", /* Hyam Nigeria */ + "jv_ID", /* Javanese Indonesia */ + "ka_GE", /* Georgian Georgia */ + "kab_DZ", /* Kabyle Algeria */ + "kaj_NG", /* Jju Nigeria */ + "kam_KE", /* Kamba Kenya */ + "kmb_AO", /* Kimbundu Angola */ + "kcg_NG", /* Tyap Nigeria */ + "kdm_NG", /* Kagoma Nigeria */ + "kg_CD", /* Kongo Democratic Republic of Congo */ + "kk_KZ", /* Kazakh Kazakhstan */ + "kl_GL", /* Kalaallisut Greenland */ + "km_KH", /* Central Khmer Cambodia */ + "kn_IN", /* Kannada India */ + "ko_KR", /* Korean Korea (South) */ + "kok_IN", /* Konkani India */ + "kr_NG", /* Kanuri Nigeria */ + "kru_IN", /* Kurukh India */ + "lg_UG", /* Ganda Uganda */ + "li_BE", /* Limburgish Belgium */ + "lo_LA", /* Laotian Laos */ + "lt_LT", /* Lithuanian Lithuania */ + "lu_CD", /* Luba-Katanga Democratic Republic of Congo */ + "lua_CD", /* Luba-Lulua Democratic Republic of Congo */ + "luo_KE", /* Luo Kenya */ + "lv_LV", /* Latvian Latvia */ + "mad_ID", /* Madurese Indonesia */ + "mag_IN", /* Magahi India */ + "mai_IN", /* Maithili India */ + "mak_ID", /* Makasar Indonesia */ + "man_ML", /* Mandingo Mali */ + "men_SL", /* Mende Sierra Leone */ + "mg_MG", /* Malagasy Madagascar */ + "mi_NZ", /* Maori New Zealand */ + "min_ID", /* Minangkabau Indonesia */ + "mk_MK", /* Macedonian Macedonia */ + "ml_IN", /* Malayalam India */ + "mn_MN", /* Mongolian Mongolia */ + "mni_IN", /* Manipuri India */ + "mos_BF", /* Mossi Burkina Faso */ + "mr_IN", /* Marathi India */ + "ms_MY", /* Malay Malaysia */ + "mt_MT", /* Maltese Malta */ + "mwr_IN", /* Marwari India */ + "my_MM", /* Burmese Myanmar */ + "na_NR", /* Nauru Nauru */ + "nah_MX", /* Nahuatl Mexico */ + "nap_IT", /* Neapolitan Italy */ + "nb_NO", /* Norwegian Bokmål Norway */ + "nds_DE", /* Low Saxon Germany */ + "ne_NP", /* Nepali Nepal */ + "nl_NL", /* Dutch Netherlands */ + "nn_NO", /* Norwegian Nynorsk Norway */ + "no_NO", /* Norwegian Norway */ + "nr_ZA", /* South Ndebele South Africa */ + "nso_ZA", /* Northern Sotho South Africa */ + "nym_TZ", /* Nyamwezi Tanzania */ + "nyn_UG", /* Nyankole Uganda */ + "oc_FR", /* Occitan France */ + "oj_CA", /* Ojibwa Canada */ + "or_IN", /* Oriya India */ + "pa_IN", /* Punjabi India */ + "pag_PH", /* Pangasinan Philippines */ + "pam_PH", /* Pampanga Philippines */ + "pap_AN", /* Papiamento Netherlands Antilles */ + "pbb_CO", /* Páez Colombia */ + "pl_PL", /* Polish Poland */ + "ps_AF", /* Pashto Afghanistan */ + "pt_PT", /* Portuguese Portugal */ + "raj_IN", /* Rajasthani India */ + "rm_CH", /* Romansh Switzerland */ + "rn_BI", /* Kirundi Burundi */ + "ro_RO", /* Romanian Romania */ + "ru_RU", /* Russian Russia */ + "sa_IN", /* Sanskrit India */ + "sah_RU", /* Yakut Russia */ + "sas_ID", /* Sasak Indonesia */ + "sat_IN", /* Santali India */ + "sc_IT", /* Sardinian Italy */ + "scn_IT", /* Sicilian Italy */ + "sg_CF", /* Sango Central African Republic */ + "shn_MM", /* Shan Myanmar */ + "si_LK", /* Sinhala Sri Lanka */ + "sid_ET", /* Sidamo Ethiopia */ + "sk_SK", /* Slovak Slovakia */ + "sl_SI", /* Slovenian Slovenia */ + "smn_FI", /* Inari Sami Finland */ + "sms_FI", /* Skolt Sami Finland */ + "so_SO", /* Somali Somalia */ + "sq_AL", /* Albanian Albania */ + "sr_RS", /* Serbian Serbia */ + "sr_YU", /* Serbian Yugoslavia - this line can be removed in 2010 */ + "srr_SN", /* Serer Senegal */ + "suk_TZ", /* Sukuma Tanzania */ + "sus_GN", /* Susu Guinea */ + "sv_SE", /* Swedish Sweden */ + "te_IN", /* Telugu India */ + "tem_SL", /* Timne Sierra Leone */ + "tet_ID", /* Tetum Indonesia */ + "tg_TJ", /* Tajik Tajikistan */ + "th_TH", /* Thai Thailand */ + "tiv_NG", /* Tiv Nigeria */ + "tk_TM", /* Turkmen Turkmenistan */ + "tl_PH", /* Tagalog Philippines */ + "to_TO", /* Tonga Tonga */ + "tr_TR", /* Turkish Turkey */ + "tum_MW", /* Tumbuka Malawi */ + "ug_CN", /* Uighur China */ + "uk_UA", /* Ukrainian Ukraine */ + "umb_AO", /* Umbundu Angola */ + "ur_PK", /* Urdu Pakistan */ + "uz_UZ", /* Uzbek Uzbekistan */ + "ve_ZA", /* Venda South Africa */ + "vi_VN", /* Vietnamese Vietnam */ + "wa_BE", /* Walloon Belgium */ + "wal_ET", /* Walamo Ethiopia */ + "war_PH", /* Waray Philippines */ + "wen_DE", /* Sorbian Germany */ + "yao_MW", /* Yao Malawi */ + "zap_MX" /* Zapotec Mexico */ }; const char *dot; size_t i; @@ -687,7 +717,7 @@ codeset_end = strpbrk (dot + 1, "_@"); if (codeset_end == NULL) - codeset_end = dot + strlen (dot); + codeset_end = dot + strlen (dot); shorter_locale = XNMALLOC (strlen (locale), char); memcpy (shorter_locale, locale, dot - locale); @@ -699,20 +729,20 @@ for (i = 0; i < SIZEOF (locales_with_principal_territory); i++) if (strcmp (locale, locales_with_principal_territory[i]) == 0) { - const char *language_end; - size_t len; - char *shorter_locale; - - language_end = strchr (locale, '_'); - if (language_end == NULL) - abort (); - - len = language_end - locale; - shorter_locale = XNMALLOC (len + 1, char); - memcpy (shorter_locale, locale, len); - shorter_locale[len] = '\0'; - locale = shorter_locale; - break; + const char *language_end; + size_t len; + char *shorter_locale; + + language_end = strchr (locale, '_'); + if (language_end == NULL) + abort (); + + len = language_end - locale; + shorter_locale = XNMALLOC (len + 1, char); + memcpy (shorter_locale, locale, len); + shorter_locale[len] = '\0'; + locale = shorter_locale; + break; } return locale; @@ -804,8 +834,9 @@ /* Construct the value for the PACKAGE name. */ static const char * -project_id () +project_id (const char *header) { + const char *old_field; const char *gettextlibdir; char *prog; char *argv[3]; @@ -817,18 +848,45 @@ size_t linelen; int exitstatus; + /* Return the first part of the Project-Id-Version field if present, assuming + it was already filled in by xgettext. */ + old_field = get_field (header, "Project-Id-Version"); + if (old_field != NULL && strcmp (old_field, "PACKAGE VERSION") != 0) + { + /* Remove the last word from old_field. */ + const char *last_space; + + last_space = strrchr (old_field, ' '); + if (last_space != NULL) + { + while (last_space > old_field && last_space[-1] == ' ') + last_space--; + if (last_space > old_field) + { + size_t package_len = last_space - old_field; + char *package = XNMALLOC (package_len + 1, char); + memcpy (package, old_field, package_len); + package[package_len] = '\0'; + + return package; + } + } + /* It contains no version, just a package name. */ + return old_field; + } + gettextlibdir = getenv ("GETTEXTLIBDIR"); if (gettextlibdir == NULL || gettextlibdir[0] == '\0') gettextlibdir = relocate (LIBDIR "/gettext"); - prog = concatenated_filename (gettextlibdir, "project-id", NULL); + prog = xconcatenated_filename (gettextlibdir, "project-id", NULL); /* Call the project-id shell script. */ argv[0] = "/bin/sh"; argv[1] = prog; argv[2] = NULL; child = create_pipe_in (prog, "/bin/sh", argv, DEV_NULL, false, true, false, - fd); + fd); if (child == -1) goto failed; @@ -854,11 +912,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, prog, false, false, true, false); + exitstatus = wait_subprocess (child, prog, false, false, true, false, NULL); if (exitstatus != 0) { error (0, 0, _("%s subprocess failed with exit code %d"), - prog, exitstatus); + prog, exitstatus); goto failed; } @@ -895,7 +953,7 @@ if (gettextlibdir == NULL || gettextlibdir[0] == '\0') gettextlibdir = relocate (LIBDIR "/gettext"); - prog = concatenated_filename (gettextlibdir, "project-id", NULL); + prog = xconcatenated_filename (gettextlibdir, "project-id", NULL); /* Call the project-id shell script. */ argv[0] = "/bin/sh"; @@ -903,7 +961,7 @@ argv[2] = "yes"; argv[3] = NULL; child = create_pipe_in (prog, "/bin/sh", argv, DEV_NULL, false, true, false, - fd); + fd); if (child == -1) goto failed; @@ -929,11 +987,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, prog, false, false, true, false); + exitstatus = wait_subprocess (child, prog, false, false, true, false, NULL); if (exitstatus != 0) { error (0, 0, _("%s subprocess failed with exit code %d"), - prog, exitstatus); + prog, exitstatus); goto failed; } @@ -978,9 +1036,9 @@ errno = 0; userpasswd = getpwnam (username); if (userpasswd != NULL) - return userpasswd; + return userpasswd; if (errno != 0) - error (EXIT_FAILURE, errno, "getpwnam(\"%s\")", username); + error (EXIT_FAILURE, errno, "getpwnam(\"%s\")", username); } /* 2. attempt: getpwnam(getlogin()) */ @@ -990,9 +1048,9 @@ errno = 0; userpasswd = getpwnam (username); if (userpasswd != NULL) - return userpasswd; + return userpasswd; if (errno != 0) - error (EXIT_FAILURE, errno, "getpwnam(\"%s\")", username); + error (EXIT_FAILURE, errno, "getpwnam(\"%s\")", username); } /* 3. attempt: getpwuid(getuid()) */ @@ -1026,7 +1084,7 @@ fullname = pwd->pw_gecos; fullname_end = strchr (fullname, ','); if (fullname_end == NULL) - fullname_end = fullname + strlen (fullname); + fullname_end = fullname + strlen (fullname); result = XNMALLOC (fullname_end - fullname + 1, char); memcpy (result, fullname, fullname_end - fullname); @@ -1063,7 +1121,7 @@ you in case of unexpected technical problems.\n"); argv[3] = NULL; child = create_pipe_in (prog, "/bin/sh", argv, DEV_NULL, false, true, false, - fd); + fd); if (child == -1) goto failed; @@ -1089,11 +1147,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, prog, false, false, true, false); + exitstatus = wait_subprocess (child, prog, false, false, true, false, NULL); if (exitstatus != 0) { error (0, 0, _("%s subprocess failed with exit code %d"), - prog, exitstatus); + prog, exitstatus); goto failed; } @@ -1116,9 +1174,9 @@ const char *email = get_user_email (); if (fullname != NULL) - return xasprintf ("%s <%s>", fullname, email); + return xasprintf ("%s <%s>", fullname, email); else - return xasprintf ("<%s>", email); + return xasprintf ("<%s>", email); } } @@ -1162,7 +1220,7 @@ argv[5] = (char *) language; argv[6] = NULL; child = create_pipe_in (prog, "/bin/sh", argv, DEV_NULL, false, true, false, - fd); + fd); if (child == -1) goto failed; @@ -1184,11 +1242,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, prog, false, false, true, false); + exitstatus = wait_subprocess (child, prog, false, false, true, false, NULL); if (exitstatus != 0) { error (0, 0, _("%s subprocess failed with exit code %d"), - prog, exitstatus); + prog, exitstatus); goto failed; } @@ -1211,13 +1269,21 @@ const char *address = language_team_address (); if (address != NULL && address[0] != '\0') - return xasprintf ("%s %s", englishname, address); + return xasprintf ("%s %s", englishname, address); else - return englishname; + return englishname; } } +/* Construct the value for the Language field. */ +static const char * +language_value () +{ + return catalogname; +} + + /* Construct the value for the MIME-Version field. */ static const char * mime_version () @@ -1244,13 +1310,13 @@ const char *charsetstr = c_strstr (old_field, "charset="); if (charsetstr != NULL) - { - charsetstr += strlen ("charset="); - was_utf8 = (c_strcasecmp (charsetstr, "UTF-8") == 0); - } + { + charsetstr += strlen ("charset="); + was_utf8 = (c_strcasecmp (charsetstr, "UTF-8") == 0); + } } return xasprintf ("text/plain; charset=%s", - was_utf8 ? "UTF-8" : canonical_locale_charset ()); + was_utf8 ? "UTF-8" : canonical_locale_charset ()); } @@ -1294,6 +1360,7 @@ { "PO-Revision-Date", NULL, po_revision_date }, { "Last-Translator", last_translator, NULL }, { "Language-Team", language_team, NULL }, + { "Language", language_value, NULL }, { "MIME-Version", mime_version, NULL }, { "Content-Type", NULL, content_type }, { "Content-Transfer-Encoding", content_transfer_encoding, NULL }, @@ -1313,30 +1380,31 @@ for (line = header;;) { - if (strncmp (line, field, len) == 0 - && line[len] == ':' && line[len + 1] == ' ') - { - const char *value_start; - const char *value_end; - char *value; - - value_start = line + len + 2; - value_end = strchr (value_start, '\n'); - if (value_end == NULL) - value_end = value_start + strlen (value_start); - - value = XNMALLOC (value_end - value_start + 1, char); - memcpy (value, value_start, value_end - value_start); - value[value_end - value_start] = '\0'; + if (strncmp (line, field, len) == 0 && line[len] == ':') + { + const char *value_start; + const char *value_end; + char *value; + + value_start = line + len + 1; + if (*value_start == ' ') + value_start++; + value_end = strchr (value_start, '\n'); + if (value_end == NULL) + value_end = value_start + strlen (value_start); + + value = XNMALLOC (value_end - value_start + 1, char); + memcpy (value, value_start, value_end - value_start); + value[value_end - value_start] = '\0'; - return value; - } + return value; + } line = strchr (line, '\n'); if (line != NULL) - line++; + line++; else - break; + break; } return NULL; @@ -1353,46 +1421,47 @@ for (line = old_header;;) { - if (strncmp (line, field, len) == 0 - && line[len] == ':' && line[len + 1] == ' ') - { - const char *value_start; - const char *value_end; - - value_start = line + len + 2; - value_end = strchr (value_start, '\n'); - if (value_end == NULL) - value_end = value_start + strlen (value_start); - - new_header = XNMALLOC (strlen (old_header) - - (value_end - value_start) - + strlen (value) - + (*value_end != '\n' ? 1 : 0) - + 1, - char); - p = new_header; - memcpy (p, old_header, value_start - old_header); - p += value_start - old_header; - memcpy (p, value, strlen (value)); - p += strlen (value); - if (*value_end != '\n') - *p++ = '\n'; - strcpy (p, value_end); + if (strncmp (line, field, len) == 0 && line[len] == ':') + { + const char *value_start; + const char *value_end; + + value_start = line + len + 1; + if (*value_start == ' ') + value_start++; + value_end = strchr (value_start, '\n'); + if (value_end == NULL) + value_end = value_start + strlen (value_start); + + new_header = XNMALLOC (strlen (old_header) + - (value_end - value_start) + + strlen (value) + + (*value_end != '\n' ? 1 : 0) + + 1, + char); + p = new_header; + memcpy (p, old_header, value_start - old_header); + p += value_start - old_header; + memcpy (p, value, strlen (value)); + p += strlen (value); + if (*value_end != '\n') + *p++ = '\n'; + strcpy (p, value_end); - return new_header; - } + return new_header; + } line = strchr (line, '\n'); if (line != NULL) - line++; + line++; else - break; + break; } new_header = XNMALLOC (strlen (old_header) + 1 - + len + 2 + strlen (value) + 1 - + 1, - char); + + len + 2 + strlen (value) + 1 + + 1, + char); p = new_header; memcpy (p, old_header, strlen (old_header)); p += strlen (old_header); @@ -1434,7 +1503,7 @@ /* First, the English title. */ english = xasprintf ("%s translations for %%s package", - englishname_of_language ()); + englishname_of_language ()); /* Save LC_ALL, LANGUAGE, OUTPUT_CHARSET environment variables. */ @@ -1460,16 +1529,16 @@ { /* Fetch the translation. */ /* TRANSLATORS: "English" needs to be replaced by your language. - For example in it.po write "Traduzioni italiani ...", - *not* "Traduzioni inglesi ...". */ + For example in it.po write "Traduzioni italiani ...", + *not* "Traduzioni inglesi ...". */ msgid = N_("English translations for %s package"); result = gettext (msgid); if (result != msgid && strcmp (result, msgid) != 0) - /* Use the English and the foreign title. */ - result = xasprintf ("%s\n%s", english, result); + /* Use the English and the foreign title. */ + result = xasprintf ("%s\n%s", english, result); else - /* No translation found. Use the English title. */ - result = english; + /* No translation found. Use the English title. */ + result = english; } /* Restore LC_ALL, LANGUAGE, OUTPUT_CHARSET environment variables. */ @@ -1502,7 +1571,7 @@ subst[j][0] must not be the empty string. */ static const char * subst_string (const char *str, - unsigned int nsubst, const char *(*subst)[2]) + unsigned int nsubst, const char *(*subst)[2]) { if (nsubst > 0) { @@ -1513,36 +1582,36 @@ substlen = (size_t *) xmalloca (nsubst * sizeof (size_t)); for (j = 0; j < nsubst; j++) - { - substlen[j] = strlen (subst[j][0]); - if (substlen[j] == 0) - abort (); - } + { + substlen[j] = strlen (subst[j][0]); + if (substlen[j] == 0) + abort (); + } for (i = 0;;) - { - if (str[i] == '\0') - break; - for (j = 0; j < nsubst; j++) - if (*(str + i) == *subst[j][0] - && strncmp (str + i, subst[j][0], substlen[j]) == 0) - { - size_t replacement_len = strlen (subst[j][1]); - size_t new_len = strlen (str) - substlen[j] + replacement_len; - char *new_str = XNMALLOC (new_len + 1, char); - memcpy (new_str, str, i); - memcpy (new_str + i, subst[j][1], replacement_len); - strcpy (new_str + i + replacement_len, str + i + substlen[j]); - if (malloced != NULL) - free (malloced); - str = new_str; - malloced = new_str; - i += replacement_len; - break; - } - if (j == nsubst) - i++; - } + { + if (str[i] == '\0') + break; + for (j = 0; j < nsubst; j++) + if (*(str + i) == *subst[j][0] + && strncmp (str + i, subst[j][0], substlen[j]) == 0) + { + size_t replacement_len = strlen (subst[j][1]); + size_t new_len = strlen (str) - substlen[j] + replacement_len; + char *new_str = XNMALLOC (new_len + 1, char); + memcpy (new_str, str, i); + memcpy (new_str + i, subst[j][1], replacement_len); + strcpy (new_str + i + replacement_len, str + i + substlen[j]); + if (malloced != NULL) + free (malloced); + str = new_str; + malloced = new_str; + i += replacement_len; + break; + } + if (j == nsubst) + i++; + } freea (substlen); } @@ -1555,7 +1624,7 @@ must not be the empty string. */ static void subst_string_list (string_list_ty *slp, - unsigned int nsubst, const char *(*subst)[2]) + unsigned int nsubst, const char *(*subst)[2]) { size_t j; @@ -1581,74 +1650,74 @@ message_list_ty *mlp = mdlp->item[k]->messages; if (mlp->nitems > 0) - { - message_ty *header_mp = NULL; - char *header; - - /* Search the header entry. */ - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - header_mp = mlp->item[j]; - break; - } - - /* If it wasn't found, provide one. */ - if (header_mp == NULL) - { - static lex_pos_ty pos = { __FILE__, __LINE__ }; - - header_mp = message_alloc (NULL, "", NULL, "", 1, &pos); - message_list_prepend (mlp, header_mp); - } - - header = xstrdup (header_mp->msgstr); - - /* Fill in the fields. */ - for (i = 0; i < NFIELDS; i++) - { - if (field_value[i] == NULL) - field_value[i] = - (fields[i].getter1 != NULL - ? fields[i].getter1 (header) - : fields[i].getter0 ()); - - if (field_value[i] != NULL) - { - char *old_header = header; - header = put_field (header, fields[i].name, field_value[i]); - free (old_header); - } - } - - /* Replace the old translation in the header entry. */ - header_mp->msgstr = header; - header_mp->msgstr_len = strlen (header) + 1; - - /* Update the comments in the header entry. */ - if (header_mp->comment != NULL) - { - const char *subst[4][2]; - const char *id; - time_t now; - - id = project_id (); - subst[0][0] = "SOME DESCRIPTIVE TITLE"; - subst[0][1] = xasprintf (get_title (), id, id); - subst[1][0] = "PACKAGE"; - subst[1][1] = id; - subst[2][0] = "FIRST AUTHOR "; - subst[2][1] = field_value[FIELD_LAST_TRANSLATOR]; - subst[3][0] = "YEAR"; - subst[3][1] = - xasprintf ("%d", - (time (&now), (localtime (&now))->tm_year + 1900)); - subst_string_list (header_mp->comment, SIZEOF (subst), subst); - } - - /* Finally remove the fuzzy attribute. */ - header_mp->is_fuzzy = false; - } + { + message_ty *header_mp = NULL; + char *header; + + /* Search the header entry. */ + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + header_mp = mlp->item[j]; + break; + } + + /* If it wasn't found, provide one. */ + if (header_mp == NULL) + { + static lex_pos_ty pos = { __FILE__, __LINE__ }; + + header_mp = message_alloc (NULL, "", NULL, "", 1, &pos); + message_list_prepend (mlp, header_mp); + } + + header = xstrdup (header_mp->msgstr); + + /* Fill in the fields. */ + for (i = 0; i < NFIELDS; i++) + { + if (field_value[i] == NULL) + field_value[i] = + (fields[i].getter1 != NULL + ? fields[i].getter1 (header) + : fields[i].getter0 ()); + + if (field_value[i] != NULL) + { + char *old_header = header; + header = put_field (header, fields[i].name, field_value[i]); + free (old_header); + } + } + + /* Replace the old translation in the header entry. */ + header_mp->msgstr = header; + header_mp->msgstr_len = strlen (header) + 1; + + /* Update the comments in the header entry. */ + if (header_mp->comment != NULL) + { + const char *subst[4][2]; + const char *id; + time_t now; + + id = project_id (header); + subst[0][0] = "SOME DESCRIPTIVE TITLE"; + subst[0][1] = xasprintf (get_title (), id, id); + subst[1][0] = "PACKAGE"; + subst[1][1] = id; + subst[2][0] = "FIRST AUTHOR "; + subst[2][1] = field_value[FIELD_LAST_TRANSLATOR]; + subst[3][0] = "YEAR"; + subst[3][1] = + xasprintf ("%d", + (time (&now), (localtime (&now))->tm_year + 1900)); + subst_string_list (header_mp->comment, SIZEOF (subst), subst); + } + + /* Finally remove the fuzzy attribute. */ + header_mp->is_fuzzy = false; + } } return mdlp; @@ -1675,32 +1744,32 @@ memset (untranslated_plural_msgstr, '\0', nplurals); for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - bool is_untranslated; - const char *p; - const char *pend; - - if (mp->msgid_plural != NULL) - { - /* Test if mp is untranslated. (It most likely is.) */ - is_untranslated = true; - for (p = mp->msgstr, pend = p + mp->msgstr_len; p < pend; p++) - if (*p != '\0') - { - is_untranslated = false; - break; - } - if (is_untranslated) - { - /* Change mp->msgstr_len consecutive empty strings into - nplurals consecutive empty strings. */ - if (nplurals > mp->msgstr_len) - mp->msgstr = untranslated_plural_msgstr; - mp->msgstr_len = nplurals; - } - } - } + { + message_ty *mp = mlp->item[j]; + bool is_untranslated; + const char *p; + const char *pend; + + if (mp->msgid_plural != NULL) + { + /* Test if mp is untranslated. (It most likely is.) */ + is_untranslated = true; + for (p = mp->msgstr, pend = p + mp->msgstr_len; p < pend; p++) + if (*p != '\0') + { + is_untranslated = false; + break; + } + if (is_untranslated) + { + /* Change mp->msgstr_len consecutive empty strings into + nplurals consecutive empty strings. */ + if (nplurals > mp->msgstr_len) + mp->msgstr = untranslated_plural_msgstr; + mp->msgstr_len = nplurals; + } + } + } } return mdlp; } diff -Nru gettext-0.17/gettext-tools/src/msgl-ascii.c gettext-0.18.1.1/gettext-tools/src/msgl-ascii.c --- gettext-0.17/gettext-tools/src/msgl-ascii.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-ascii.c 2010-06-06 12:49:58.000000000 +0000 @@ -46,7 +46,7 @@ if (slp != NULL) for (i = 0; i < slp->nitems; i++) if (!is_ascii_string (slp->item[i])) - return false; + return false; return true; } diff -Nru gettext-0.17/gettext-tools/src/msgl-cat.c gettext-0.18.1.1/gettext-tools/src/msgl-cat.c --- gettext-0.17/gettext-tools/src/msgl-cat.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-cat.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Message list concatenation and duplicate handling. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -24,6 +24,7 @@ /* Specification. */ #include "msgl-cat.h" +#include #include #include #include @@ -70,8 +71,8 @@ int used = (tmp->used >= 0 ? tmp->used : - tmp->used); return (is_header (tmp) - ? !omit_header /* keep the header entry */ - : (used > more_than && used < less_than)); + ? !omit_header /* keep the header entry */ + : (used > more_than && used < less_than)); } @@ -104,8 +105,8 @@ msgdomain_list_ty * catenate_msgdomain_list (string_list_ty *file_list, - catalog_input_format_ty input_syntax, - const char *to_code) + catalog_input_format_ty input_syntax, + const char *to_code) { const char * const *files = file_list->item; size_t nfiles = file_list->nitems; @@ -130,87 +131,87 @@ canon_charsets[n] = XNMALLOC (mdlp->nitems, const char *); for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; - const char *canon_from_code = NULL; - - if (mlp->nitems > 0) - { - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - char *charset; - const char *canon_charset; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - canon_charset = po_charset_canonicalize (charset); - if (canon_charset == NULL) - { - /* Don't give an error for POT files, because - POT files usually contain only ASCII - msgids. */ - const char *filename = files[n]; - size_t filenamelen = strlen (filename); - - if (filenamelen >= 4 - && memcmp (filename + filenamelen - 4, - ".pot", 4) == 0 - && strcmp (charset, "CHARSET") == 0) - canon_charset = po_charset_ascii; - else - error (EXIT_FAILURE, 0, - _("\ + { + message_list_ty *mlp = mdlp->item[k]->messages; + const char *canon_from_code = NULL; + + if (mlp->nitems > 0) + { + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + char *charset; + const char *canon_charset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + canon_charset = po_charset_canonicalize (charset); + if (canon_charset == NULL) + { + /* Don't give an error for POT files, because + POT files usually contain only ASCII + msgids. */ + const char *filename = files[n]; + size_t filenamelen = strlen (filename); + + if (filenamelen >= 4 + && memcmp (filename + filenamelen - 4, + ".pot", 4) == 0 + && strcmp (charset, "CHARSET") == 0) + canon_charset = po_charset_ascii; + else + error (EXIT_FAILURE, 0, + _("\ present charset \"%s\" is not a portable encoding name"), - charset); - } + charset); + } - freea (charset); + freea (charset); - if (canon_from_code == NULL) - canon_from_code = canon_charset; - else if (canon_from_code != canon_charset) - error (EXIT_FAILURE, 0, - _("\ + if (canon_from_code == NULL) + canon_from_code = canon_charset; + else if (canon_from_code != canon_charset) + error (EXIT_FAILURE, 0, + _("\ two different charsets \"%s\" and \"%s\" in input file"), - canon_from_code, canon_charset); - } - } - } - if (canon_from_code == NULL) - { - if (is_ascii_message_list (mlp)) - canon_from_code = po_charset_ascii; - else if (mdlp->encoding != NULL) - canon_from_code = mdlp->encoding; - else - { - if (k == 0) - error (EXIT_FAILURE, 0, _("\ + canon_from_code, canon_charset); + } + } + } + if (canon_from_code == NULL) + { + if (is_ascii_message_list (mlp)) + canon_from_code = po_charset_ascii; + else if (mdlp->encoding != NULL) + canon_from_code = mdlp->encoding; + else + { + if (k == 0) + error (EXIT_FAILURE, 0, _("\ input file `%s' doesn't contain a header entry with a charset specification"), - files[n]); - else - error (EXIT_FAILURE, 0, _("\ + files[n]); + else + error (EXIT_FAILURE, 0, _("\ domain \"%s\" in input file `%s' doesn't contain a header entry with a charset specification"), - mdlp->item[k]->domain, files[n]); - } - } - } - canon_charsets[n][k] = canon_from_code; - } + mdlp->item[k]->domain, files[n]); + } + } + } + canon_charsets[n][k] = canon_from_code; + } } /* Determine textual identifications of each file/domain combination. */ @@ -223,52 +224,52 @@ identifications[n] = XNMALLOC (mdlp->nitems, const char *); for (k = 0; k < mdlp->nitems; k++) - { - const char *domain = mdlp->item[k]->domain; - message_list_ty *mlp = mdlp->item[k]->messages; - char *project_id = NULL; - - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *cp = c_strstr (header, "Project-Id-Version:"); - - if (cp != NULL) - { - const char *endp; - - cp += sizeof ("Project-Id-Version:") - 1; - - endp = strchr (cp, '\n'); - if (endp == NULL) - endp = cp + strlen (cp); - - while (cp < endp && *cp == ' ') - cp++; - - if (cp < endp) - { - size_t len = endp - cp; - project_id = XNMALLOC (len + 1, char); - memcpy (project_id, cp, len); - project_id[len] = '\0'; - } - break; - } - } - } - - identifications[n][k] = - (project_id != NULL - ? (k > 0 ? xasprintf ("%s:%s (%s)", filename, domain, project_id) - : xasprintf ("%s (%s)", filename, project_id)) - : (k > 0 ? xasprintf ("%s:%s", filename, domain) - : xasprintf ("%s", filename))); - } + { + const char *domain = mdlp->item[k]->domain; + message_list_ty *mlp = mdlp->item[k]->messages; + char *project_id = NULL; + + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *cp = c_strstr (header, "Project-Id-Version:"); + + if (cp != NULL) + { + const char *endp; + + cp += sizeof ("Project-Id-Version:") - 1; + + endp = strchr (cp, '\n'); + if (endp == NULL) + endp = cp + strlen (cp); + + while (cp < endp && *cp == ' ') + cp++; + + if (cp < endp) + { + size_t len = endp - cp; + project_id = XNMALLOC (len + 1, char); + memcpy (project_id, cp, len); + project_id[len] = '\0'; + } + break; + } + } + } + + identifications[n][k] = + (project_id != NULL + ? (k > 0 ? xasprintf ("%s:%s (%s)", filename, domain, project_id) + : xasprintf ("%s (%s)", filename, project_id)) + : (k > 0 ? xasprintf ("%s:%s", filename, domain) + : xasprintf ("%s", filename))); + } } /* Create list of resulting messages, but don't fill it. Only count @@ -283,52 +284,54 @@ size_t k; for (k = 0; k < mdlp->nitems; k++) - { - const char *domain = mdlp->item[k]->domain; - message_list_ty *mlp = mdlp->item[k]->messages; - message_list_ty *total_mlp; - - total_mlp = msgdomain_list_sublist (total_mdlp, domain, true); - - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - message_ty *tmp; - size_t i; - - tmp = message_list_search (total_mlp, mp->msgctxt, mp->msgid); - if (tmp == NULL) - { - tmp = message_alloc (mp->msgctxt, mp->msgid, mp->msgid_plural, - NULL, 0, &mp->pos); - tmp->is_fuzzy = true; /* may be set to false later */ - for (i = 0; i < NFORMATS; i++) - tmp->is_format[i] = undecided; /* may be set to yes/no later */ - tmp->do_wrap = yes; /* may be set to no later */ - tmp->obsolete = true; /* may be set to false later */ - tmp->alternative_count = 0; - tmp->alternative = NULL; - message_list_append (total_mlp, tmp); - } - - if (!msgcomm_mode - && ((!is_header (mp) && mp->is_fuzzy) - || mp->msgstr[0] == '\0')) - /* Weak translation. Counted as negative tmp->used. */ - { - if (tmp->used <= 0) - tmp->used--; - } - else - /* Good translation. Counted as positive tmp->used. */ - { - if (tmp->used < 0) - tmp->used = 0; - tmp->used++; - } - mp->tmp = tmp; - } - } + { + const char *domain = mdlp->item[k]->domain; + message_list_ty *mlp = mdlp->item[k]->messages; + message_list_ty *total_mlp; + + total_mlp = msgdomain_list_sublist (total_mdlp, domain, true); + + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + message_ty *tmp; + size_t i; + + tmp = message_list_search (total_mlp, mp->msgctxt, mp->msgid); + if (tmp == NULL) + { + tmp = message_alloc (mp->msgctxt, mp->msgid, mp->msgid_plural, + NULL, 0, &mp->pos); + tmp->is_fuzzy = true; /* may be set to false later */ + for (i = 0; i < NFORMATS; i++) + tmp->is_format[i] = undecided; /* may be set to yes/no later */ + tmp->range.min = - INT_MAX; + tmp->range.max = - INT_MAX; + tmp->do_wrap = yes; /* may be set to no later */ + tmp->obsolete = true; /* may be set to false later */ + tmp->alternative_count = 0; + tmp->alternative = NULL; + message_list_append (total_mlp, tmp); + } + + if (!msgcomm_mode + && ((!is_header (mp) && mp->is_fuzzy) + || mp->msgstr[0] == '\0')) + /* Weak translation. Counted as negative tmp->used. */ + { + if (tmp->used <= 0) + tmp->used--; + } + else + /* Good translation. Counted as positive tmp->used. */ + { + if (tmp->used < 0) + tmp->used = 0; + tmp->used++; + } + mp->tmp = tmp; + } + } } /* Remove messages that are not used and need not be converted. */ @@ -338,27 +341,27 @@ size_t k; for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; + { + message_list_ty *mlp = mdlp->item[k]->messages; - message_list_remove_if_not (mlp, - use_first - ? is_message_first_needed - : is_message_needed); - - /* If no messages are remaining, drop the charset. */ - if (mlp->nitems == 0) - canon_charsets[n][k] = NULL; - } + message_list_remove_if_not (mlp, + use_first + ? is_message_first_needed + : is_message_needed); + + /* If no messages are remaining, drop the charset. */ + if (mlp->nitems == 0) + canon_charsets[n][k] = NULL; + } } { size_t k; for (k = 0; k < total_mdlp->nitems; k++) { - message_list_ty *mlp = total_mdlp->item[k]->messages; + message_list_ty *mlp = total_mdlp->item[k]->messages; - message_list_remove_if_not (mlp, is_message_selected); + message_list_remove_if_not (mlp, is_message_selected); } } @@ -368,14 +371,14 @@ bool all_same_encoding = true; for (n = 1; n < nfiles; n++) - if (mdlps[n]->encoding != mdlps[0]->encoding) - { - all_same_encoding = false; - break; - } + if (mdlps[n]->encoding != mdlps[0]->encoding) + { + all_same_encoding = false; + break; + } if (all_same_encoding) - total_mdlp->encoding = mdlps[0]->encoding; + total_mdlp->encoding = mdlps[0]->encoding; } /* Determine the target encoding for the remaining messages. */ @@ -384,14 +387,14 @@ /* Canonicalize target encoding. */ canon_to_code = po_charset_canonicalize (to_code); if (canon_to_code == NULL) - error (EXIT_FAILURE, 0, - _("target charset \"%s\" is not a portable encoding name."), - to_code); + error (EXIT_FAILURE, 0, + _("target charset \"%s\" is not a portable encoding name."), + to_code); } else { /* No target encoding was specified. Test whether the messages are - all in a single encoding. If so, conversion is not needed. */ + all in a single encoding. If so, conversion is not needed. */ const char *first = NULL; const char *second = NULL; bool with_ASCII = false; @@ -399,98 +402,98 @@ bool all_ASCII_compatible = true; for (n = 0; n < nfiles; n++) - { - msgdomain_list_ty *mdlp = mdlps[n]; - size_t k; - - for (k = 0; k < mdlp->nitems; k++) - if (canon_charsets[n][k] != NULL) - { - if (canon_charsets[n][k] == po_charset_ascii) - with_ASCII = true; - else - { - if (first == NULL) - first = canon_charsets[n][k]; - else if (canon_charsets[n][k] != first && second == NULL) - second = canon_charsets[n][k]; - - if (strcmp (canon_charsets[n][k], "UTF-8") == 0) - with_UTF8 = true; - - if (!po_charset_ascii_compatible (canon_charsets[n][k])) - all_ASCII_compatible = false; - } - } - } + { + msgdomain_list_ty *mdlp = mdlps[n]; + size_t k; + + for (k = 0; k < mdlp->nitems; k++) + if (canon_charsets[n][k] != NULL) + { + if (canon_charsets[n][k] == po_charset_ascii) + with_ASCII = true; + else + { + if (first == NULL) + first = canon_charsets[n][k]; + else if (canon_charsets[n][k] != first && second == NULL) + second = canon_charsets[n][k]; + + if (strcmp (canon_charsets[n][k], "UTF-8") == 0) + with_UTF8 = true; + + if (!po_charset_ascii_compatible (canon_charsets[n][k])) + all_ASCII_compatible = false; + } + } + } if (with_ASCII && !all_ASCII_compatible) - { - /* assert (first != NULL); */ - if (second == NULL) - second = po_charset_ascii; - } + { + /* assert (first != NULL); */ + if (second == NULL) + second = po_charset_ascii; + } if (second != NULL) - { - /* A conversion is needed. Warn the user since he hasn't asked - for it and might be surprised. */ - if (with_UTF8) - multiline_warning (xasprintf (_("warning: ")), - xasprintf (_("\ + { + /* A conversion is needed. Warn the user since he hasn't asked + for it and might be surprised. */ + if (with_UTF8) + multiline_warning (xasprintf (_("warning: ")), + xasprintf (_("\ Input files contain messages in different encodings, UTF-8 among others.\n\ Converting the output to UTF-8.\n\ "))); - else - multiline_warning (xasprintf (_("warning: ")), - xasprintf (_("\ + else + multiline_warning (xasprintf (_("warning: ")), + xasprintf (_("\ Input files contain messages in different encodings, %s and %s among others.\n\ Converting the output to UTF-8.\n\ To select a different output encoding, use the --to-code option.\n\ "), first, second)); - canon_to_code = po_charset_utf8; - } + canon_to_code = po_charset_utf8; + } else if (first != NULL && with_ASCII && all_ASCII_compatible) - { - /* The conversion is a no-op conversion. Don't warn the user, - but still perform the conversion, in order to check that the - input was really ASCII. */ - canon_to_code = first; - } + { + /* The conversion is a no-op conversion. Don't warn the user, + but still perform the conversion, in order to check that the + input was really ASCII. */ + canon_to_code = first; + } else - { - /* No conversion needed. */ - canon_to_code = NULL; - } + { + /* No conversion needed. */ + canon_to_code = NULL; + } } /* Now convert the remaining messages to to_code. */ if (canon_to_code != NULL) for (n = 0; n < nfiles; n++) { - msgdomain_list_ty *mdlp = mdlps[n]; - size_t k; + msgdomain_list_ty *mdlp = mdlps[n]; + size_t k; - for (k = 0; k < mdlp->nitems; k++) - if (canon_charsets[n][k] != NULL) - /* If the user hasn't given a to_code, don't bother doing a noop - conversion that would only replace the charset name in the - header entry with its canonical equivalent. */ - if (!(to_code == NULL && canon_charsets[n][k] == canon_to_code)) - if (iconv_message_list (mdlp->item[k]->messages, - canon_charsets[n][k], canon_to_code, - files[n])) - { - multiline_error (xstrdup (""), - xasprintf (_("\ + for (k = 0; k < mdlp->nitems; k++) + if (canon_charsets[n][k] != NULL) + /* If the user hasn't given a to_code, don't bother doing a noop + conversion that would only replace the charset name in the + header entry with its canonical equivalent. */ + if (!(to_code == NULL && canon_charsets[n][k] == canon_to_code)) + if (iconv_message_list (mdlp->item[k]->messages, + canon_charsets[n][k], canon_to_code, + files[n])) + { + multiline_error (xstrdup (""), + xasprintf (_("\ Conversion of file %s from %s encoding to %s encoding\n\ changes some msgids or msgctxts.\n\ Either change all msgids and msgctxts to be pure ASCII, or ensure they are\n\ UTF-8 encoded from the beginning, i.e. already in your source code files.\n"), - files[n], canon_charsets[n][k], - canon_to_code)); - exit (EXIT_FAILURE); - } + files[n], canon_charsets[n][k], + canon_to_code)); + exit (EXIT_FAILURE); + } } /* Fill the resulting messages. */ @@ -500,264 +503,295 @@ size_t k; for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; + { + message_list_ty *mlp = mdlp->item[k]->messages; - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - message_ty *tmp = mp->tmp; - size_t i; - - /* No need to discard unneeded weak translations here; - they have already been filtered out above. */ - if (use_first || tmp->used == 1 || tmp->used == -1) - { - /* Copy mp, as only message, into tmp. */ - tmp->msgstr = mp->msgstr; - tmp->msgstr_len = mp->msgstr_len; - tmp->pos = mp->pos; - if (mp->comment) - for (i = 0; i < mp->comment->nitems; i++) - message_comment_append (tmp, mp->comment->item[i]); - if (mp->comment_dot) - for (i = 0; i < mp->comment_dot->nitems; i++) - message_comment_dot_append (tmp, - mp->comment_dot->item[i]); - for (i = 0; i < mp->filepos_count; i++) - message_comment_filepos (tmp, mp->filepos[i].file_name, - mp->filepos[i].line_number); - tmp->is_fuzzy = mp->is_fuzzy; - for (i = 0; i < NFORMATS; i++) - tmp->is_format[i] = mp->is_format[i]; - tmp->do_wrap = mp->do_wrap; - tmp->prev_msgctxt = mp->prev_msgctxt; - tmp->prev_msgid = mp->prev_msgid; - tmp->prev_msgid_plural = mp->prev_msgid_plural; - tmp->obsolete = mp->obsolete; - } - else if (msgcomm_mode) - { - /* Copy mp, as only message, into tmp. */ - if (tmp->msgstr == NULL) - { - tmp->msgstr = mp->msgstr; - tmp->msgstr_len = mp->msgstr_len; - tmp->pos = mp->pos; - tmp->is_fuzzy = mp->is_fuzzy; - tmp->prev_msgctxt = mp->prev_msgctxt; - tmp->prev_msgid = mp->prev_msgid; - tmp->prev_msgid_plural = mp->prev_msgid_plural; - } - if (mp->comment && tmp->comment == NULL) - for (i = 0; i < mp->comment->nitems; i++) - message_comment_append (tmp, mp->comment->item[i]); - if (mp->comment_dot && tmp->comment_dot == NULL) - for (i = 0; i < mp->comment_dot->nitems; i++) - message_comment_dot_append (tmp, - mp->comment_dot->item[i]); - for (i = 0; i < mp->filepos_count; i++) - message_comment_filepos (tmp, mp->filepos[i].file_name, - mp->filepos[i].line_number); - for (i = 0; i < NFORMATS; i++) - if (tmp->is_format[i] == undecided) - tmp->is_format[i] = mp->is_format[i]; - if (tmp->do_wrap == undecided) - tmp->do_wrap = mp->do_wrap; - tmp->obsolete = false; - } - else - { - /* Copy mp, among others, into tmp. */ - char *id = xasprintf ("#-#-#-#-# %s #-#-#-#-#", - identifications[n][k]); - size_t nbytes; - - if (tmp->alternative_count == 0) - tmp->pos = mp->pos; - - i = tmp->alternative_count; - nbytes = (i + 1) * sizeof (struct altstr); - tmp->alternative = xrealloc (tmp->alternative, nbytes); - tmp->alternative[i].msgstr = mp->msgstr; - tmp->alternative[i].msgstr_len = mp->msgstr_len; - tmp->alternative[i].msgstr_end = - tmp->alternative[i].msgstr + tmp->alternative[i].msgstr_len; - tmp->alternative[i].comment = mp->comment; - tmp->alternative[i].comment_dot = mp->comment_dot; - tmp->alternative[i].id = id; - tmp->alternative_count = i + 1; - - for (i = 0; i < mp->filepos_count; i++) - message_comment_filepos (tmp, mp->filepos[i].file_name, - mp->filepos[i].line_number); - if (!mp->is_fuzzy) - tmp->is_fuzzy = false; - for (i = 0; i < NFORMATS; i++) - if (mp->is_format[i] == yes) - tmp->is_format[i] = yes; - else if (mp->is_format[i] == no - && tmp->is_format[i] == undecided) - tmp->is_format[i] = no; - if (mp->do_wrap == no) - tmp->do_wrap = no; - /* Don't fill tmp->prev_msgid in this case. */ - if (!mp->obsolete) - tmp->obsolete = false; - } - } - } + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + message_ty *tmp = mp->tmp; + size_t i; + + /* No need to discard unneeded weak translations here; + they have already been filtered out above. */ + if (use_first || tmp->used == 1 || tmp->used == -1) + { + /* Copy mp, as only message, into tmp. */ + tmp->msgstr = mp->msgstr; + tmp->msgstr_len = mp->msgstr_len; + tmp->pos = mp->pos; + if (mp->comment) + for (i = 0; i < mp->comment->nitems; i++) + message_comment_append (tmp, mp->comment->item[i]); + if (mp->comment_dot) + for (i = 0; i < mp->comment_dot->nitems; i++) + message_comment_dot_append (tmp, + mp->comment_dot->item[i]); + for (i = 0; i < mp->filepos_count; i++) + message_comment_filepos (tmp, mp->filepos[i].file_name, + mp->filepos[i].line_number); + tmp->is_fuzzy = mp->is_fuzzy; + for (i = 0; i < NFORMATS; i++) + tmp->is_format[i] = mp->is_format[i]; + tmp->range = mp->range; + tmp->do_wrap = mp->do_wrap; + tmp->prev_msgctxt = mp->prev_msgctxt; + tmp->prev_msgid = mp->prev_msgid; + tmp->prev_msgid_plural = mp->prev_msgid_plural; + tmp->obsolete = mp->obsolete; + } + else if (msgcomm_mode) + { + /* Copy mp, as only message, into tmp. */ + if (tmp->msgstr == NULL) + { + tmp->msgstr = mp->msgstr; + tmp->msgstr_len = mp->msgstr_len; + tmp->pos = mp->pos; + tmp->is_fuzzy = mp->is_fuzzy; + tmp->prev_msgctxt = mp->prev_msgctxt; + tmp->prev_msgid = mp->prev_msgid; + tmp->prev_msgid_plural = mp->prev_msgid_plural; + } + if (mp->comment && tmp->comment == NULL) + for (i = 0; i < mp->comment->nitems; i++) + message_comment_append (tmp, mp->comment->item[i]); + if (mp->comment_dot && tmp->comment_dot == NULL) + for (i = 0; i < mp->comment_dot->nitems; i++) + message_comment_dot_append (tmp, + mp->comment_dot->item[i]); + for (i = 0; i < mp->filepos_count; i++) + message_comment_filepos (tmp, mp->filepos[i].file_name, + mp->filepos[i].line_number); + for (i = 0; i < NFORMATS; i++) + if (tmp->is_format[i] == undecided) + tmp->is_format[i] = mp->is_format[i]; + if (tmp->range.min == - INT_MAX + && tmp->range.max == - INT_MAX) + tmp->range = mp->range; + else if (has_range_p (mp->range) && has_range_p (tmp->range)) + { + if (mp->range.min < tmp->range.min) + tmp->range.min = mp->range.min; + if (mp->range.max > tmp->range.max) + tmp->range.max = mp->range.max; + } + else + { + tmp->range.min = -1; + tmp->range.max = -1; + } + if (tmp->do_wrap == undecided) + tmp->do_wrap = mp->do_wrap; + tmp->obsolete = false; + } + else + { + /* Copy mp, among others, into tmp. */ + char *id = xasprintf ("#-#-#-#-# %s #-#-#-#-#", + identifications[n][k]); + size_t nbytes; + + if (tmp->alternative_count == 0) + tmp->pos = mp->pos; + + i = tmp->alternative_count; + nbytes = (i + 1) * sizeof (struct altstr); + tmp->alternative = xrealloc (tmp->alternative, nbytes); + tmp->alternative[i].msgstr = mp->msgstr; + tmp->alternative[i].msgstr_len = mp->msgstr_len; + tmp->alternative[i].msgstr_end = + tmp->alternative[i].msgstr + tmp->alternative[i].msgstr_len; + tmp->alternative[i].comment = mp->comment; + tmp->alternative[i].comment_dot = mp->comment_dot; + tmp->alternative[i].id = id; + tmp->alternative_count = i + 1; + + for (i = 0; i < mp->filepos_count; i++) + message_comment_filepos (tmp, mp->filepos[i].file_name, + mp->filepos[i].line_number); + if (!mp->is_fuzzy) + tmp->is_fuzzy = false; + for (i = 0; i < NFORMATS; i++) + if (mp->is_format[i] == yes) + tmp->is_format[i] = yes; + else if (mp->is_format[i] == no + && tmp->is_format[i] == undecided) + tmp->is_format[i] = no; + if (tmp->range.min == - INT_MAX + && tmp->range.max == - INT_MAX) + tmp->range = mp->range; + else if (has_range_p (mp->range) && has_range_p (tmp->range)) + { + if (mp->range.min < tmp->range.min) + tmp->range.min = mp->range.min; + if (mp->range.max > tmp->range.max) + tmp->range.max = mp->range.max; + } + else + { + tmp->range.min = -1; + tmp->range.max = -1; + } + if (mp->do_wrap == no) + tmp->do_wrap = no; + /* Don't fill tmp->prev_msgid in this case. */ + if (!mp->obsolete) + tmp->obsolete = false; + } + } + } } { size_t k; for (k = 0; k < total_mdlp->nitems; k++) { - message_list_ty *mlp = total_mdlp->item[k]->messages; + message_list_ty *mlp = total_mdlp->item[k]->messages; - for (j = 0; j < mlp->nitems; j++) - { - message_ty *tmp = mlp->item[j]; - - if (tmp->alternative_count > 0) - { - /* Test whether all alternative translations are equal. */ - struct altstr *first = &tmp->alternative[0]; - size_t i; - - for (i = 0; i < tmp->alternative_count; i++) - if (!(tmp->alternative[i].msgstr_len == first->msgstr_len - && memcmp (tmp->alternative[i].msgstr, first->msgstr, - first->msgstr_len) == 0)) - break; - - if (i == tmp->alternative_count) - { - /* All alternatives are equal. */ - tmp->msgstr = first->msgstr; - tmp->msgstr_len = first->msgstr_len; - } - else - { - /* Concatenate the alternative msgstrs into a single one, - separated by markers. */ - size_t len; - const char *p; - const char *p_end; - char *new_msgstr; - char *np; - - len = 0; - for (i = 0; i < tmp->alternative_count; i++) - { - size_t id_len = strlen (tmp->alternative[i].id); - - len += tmp->alternative[i].msgstr_len; - - p = tmp->alternative[i].msgstr; - p_end = tmp->alternative[i].msgstr_end; - for (; p < p_end; p += strlen (p) + 1) - len += id_len + 2; - } - - new_msgstr = XNMALLOC (len, char); - np = new_msgstr; - for (;;) - { - /* Test whether there's one more plural form to - process. */ - for (i = 0; i < tmp->alternative_count; i++) - if (tmp->alternative[i].msgstr - < tmp->alternative[i].msgstr_end) - break; - if (i == tmp->alternative_count) - break; - - /* Process next plural form. */ - for (i = 0; i < tmp->alternative_count; i++) - if (tmp->alternative[i].msgstr - < tmp->alternative[i].msgstr_end) - { - if (np > new_msgstr && np[-1] != '\0' - && np[-1] != '\n') - *np++ = '\n'; - - len = strlen (tmp->alternative[i].id); - memcpy (np, tmp->alternative[i].id, len); - np += len; - *np++ = '\n'; - - len = strlen (tmp->alternative[i].msgstr); - memcpy (np, tmp->alternative[i].msgstr, len); - np += len; - tmp->alternative[i].msgstr += len + 1; - } - - /* Plural forms are separated by NUL bytes. */ - *np++ = '\0'; - } - tmp->msgstr = new_msgstr; - tmp->msgstr_len = np - new_msgstr; - - tmp->is_fuzzy = true; - } - - /* Test whether all alternative comments are equal. */ - for (i = 0; i < tmp->alternative_count; i++) - if (tmp->alternative[i].comment == NULL - || !string_list_equal (tmp->alternative[i].comment, - first->comment)) - break; - - if (i == tmp->alternative_count) - /* All alternatives are equal. */ - tmp->comment = first->comment; - else - /* Concatenate the alternative comments into a single one, - separated by markers. */ - for (i = 0; i < tmp->alternative_count; i++) - { - string_list_ty *slp = tmp->alternative[i].comment; - - if (slp != NULL) - { - size_t l; - - message_comment_append (tmp, tmp->alternative[i].id); - for (l = 0; l < slp->nitems; l++) - message_comment_append (tmp, slp->item[l]); - } - } - - /* Test whether all alternative dot comments are equal. */ - for (i = 0; i < tmp->alternative_count; i++) - if (tmp->alternative[i].comment_dot == NULL - || !string_list_equal (tmp->alternative[i].comment_dot, - first->comment_dot)) - break; - - if (i == tmp->alternative_count) - /* All alternatives are equal. */ - tmp->comment_dot = first->comment_dot; - else - /* Concatenate the alternative dot comments into a single one, - separated by markers. */ - for (i = 0; i < tmp->alternative_count; i++) - { - string_list_ty *slp = tmp->alternative[i].comment_dot; - - if (slp != NULL) - { - size_t l; - - message_comment_dot_append (tmp, - tmp->alternative[i].id); - for (l = 0; l < slp->nitems; l++) - message_comment_dot_append (tmp, slp->item[l]); - } - } - } - } + for (j = 0; j < mlp->nitems; j++) + { + message_ty *tmp = mlp->item[j]; + + if (tmp->alternative_count > 0) + { + /* Test whether all alternative translations are equal. */ + struct altstr *first = &tmp->alternative[0]; + size_t i; + + for (i = 0; i < tmp->alternative_count; i++) + if (!(tmp->alternative[i].msgstr_len == first->msgstr_len + && memcmp (tmp->alternative[i].msgstr, first->msgstr, + first->msgstr_len) == 0)) + break; + + if (i == tmp->alternative_count) + { + /* All alternatives are equal. */ + tmp->msgstr = first->msgstr; + tmp->msgstr_len = first->msgstr_len; + } + else + { + /* Concatenate the alternative msgstrs into a single one, + separated by markers. */ + size_t len; + const char *p; + const char *p_end; + char *new_msgstr; + char *np; + + len = 0; + for (i = 0; i < tmp->alternative_count; i++) + { + size_t id_len = strlen (tmp->alternative[i].id); + + len += tmp->alternative[i].msgstr_len; + + p = tmp->alternative[i].msgstr; + p_end = tmp->alternative[i].msgstr_end; + for (; p < p_end; p += strlen (p) + 1) + len += id_len + 2; + } + + new_msgstr = XNMALLOC (len, char); + np = new_msgstr; + for (;;) + { + /* Test whether there's one more plural form to + process. */ + for (i = 0; i < tmp->alternative_count; i++) + if (tmp->alternative[i].msgstr + < tmp->alternative[i].msgstr_end) + break; + if (i == tmp->alternative_count) + break; + + /* Process next plural form. */ + for (i = 0; i < tmp->alternative_count; i++) + if (tmp->alternative[i].msgstr + < tmp->alternative[i].msgstr_end) + { + if (np > new_msgstr && np[-1] != '\0' + && np[-1] != '\n') + *np++ = '\n'; + + len = strlen (tmp->alternative[i].id); + memcpy (np, tmp->alternative[i].id, len); + np += len; + *np++ = '\n'; + + len = strlen (tmp->alternative[i].msgstr); + memcpy (np, tmp->alternative[i].msgstr, len); + np += len; + tmp->alternative[i].msgstr += len + 1; + } + + /* Plural forms are separated by NUL bytes. */ + *np++ = '\0'; + } + tmp->msgstr = new_msgstr; + tmp->msgstr_len = np - new_msgstr; + + tmp->is_fuzzy = true; + } + + /* Test whether all alternative comments are equal. */ + for (i = 0; i < tmp->alternative_count; i++) + if (tmp->alternative[i].comment == NULL + || !string_list_equal (tmp->alternative[i].comment, + first->comment)) + break; + + if (i == tmp->alternative_count) + /* All alternatives are equal. */ + tmp->comment = first->comment; + else + /* Concatenate the alternative comments into a single one, + separated by markers. */ + for (i = 0; i < tmp->alternative_count; i++) + { + string_list_ty *slp = tmp->alternative[i].comment; + + if (slp != NULL) + { + size_t l; + + message_comment_append (tmp, tmp->alternative[i].id); + for (l = 0; l < slp->nitems; l++) + message_comment_append (tmp, slp->item[l]); + } + } + + /* Test whether all alternative dot comments are equal. */ + for (i = 0; i < tmp->alternative_count; i++) + if (tmp->alternative[i].comment_dot == NULL + || !string_list_equal (tmp->alternative[i].comment_dot, + first->comment_dot)) + break; + + if (i == tmp->alternative_count) + /* All alternatives are equal. */ + tmp->comment_dot = first->comment_dot; + else + /* Concatenate the alternative dot comments into a single one, + separated by markers. */ + for (i = 0; i < tmp->alternative_count; i++) + { + string_list_ty *slp = tmp->alternative[i].comment_dot; + + if (slp != NULL) + { + size_t l; + + message_comment_dot_append (tmp, + tmp->alternative[i].id); + for (l = 0; l < slp->nitems; l++) + message_comment_dot_append (tmp, slp->item[l]); + } + } + } + } } } diff -Nru gettext-0.17/gettext-tools/src/msgl-cat.h gettext-0.18.1.1/gettext-tools/src/msgl-cat.h --- gettext-0.17/gettext-tools/src/msgl-cat.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-cat.h 2010-06-06 12:49:58.000000000 +0000 @@ -48,8 +48,8 @@ extern msgdomain_list_ty * catenate_msgdomain_list (string_list_ty *file_list, - catalog_input_format_ty input_syntax, - const char *to_code); + catalog_input_format_ty input_syntax, + const char *to_code); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/msgl-charset.c gettext-0.18.1.1/gettext-tools/src/msgl-charset.c --- gettext-0.17/gettext-tools/src/msgl-charset.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-charset.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Message list charset and locale charset handling. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -60,73 +60,72 @@ const message_list_ty *mlp = mdlp->item[k]->messages; for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgstr == NULL - && mlp->item[j]->msgid[0] == '\0' && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - char *charset; - const char *canon_charset; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - canon_charset = po_charset_canonicalize (charset); - if (canon_charset == NULL) - error (EXIT_FAILURE, 0, - _("\ + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + char *charset; + const char *canon_charset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + canon_charset = po_charset_canonicalize (charset); + if (canon_charset == NULL) + error (EXIT_FAILURE, 0, + _("\ present charset \"%s\" is not a portable encoding name"), - charset); - freea (charset); - if (canon_locale_code != canon_charset) - { - multiline_warning (xasprintf (_("warning: ")), - xasprintf (_("\ + charset); + freea (charset); + if (canon_locale_code != canon_charset) + { + multiline_warning (xasprintf (_("warning: ")), + xasprintf (_("\ Locale charset \"%s\" is different from\n\ input file charset \"%s\".\n\ Output of '%s' might be incorrect.\n\ Possible workarounds are:\n\ "), locale_code, canon_charset, basename (program_name))); - multiline_warning (NULL, - xasprintf (_("\ + multiline_warning (NULL, + xasprintf (_("\ - Set LC_ALL to a locale with encoding %s.\n\ "), canon_charset)); - if (canon_locale_code != NULL) - multiline_warning (NULL, - xasprintf (_("\ + if (canon_locale_code != NULL) + multiline_warning (NULL, + xasprintf (_("\ - Convert the translation catalog to %s using 'msgconv',\n\ then apply '%s',\n\ then convert back to %s using 'msgconv'.\n\ "), canon_locale_code, basename (program_name), canon_charset)); - if (strcmp (canon_charset, "UTF-8") != 0 - && (canon_locale_code == NULL - || strcmp (canon_locale_code, "UTF-8") != 0)) - multiline_warning (NULL, - xasprintf (_("\ + if (strcmp (canon_charset, "UTF-8") != 0 + && (canon_locale_code == NULL + || strcmp (canon_locale_code, "UTF-8") != 0)) + multiline_warning (NULL, + xasprintf (_("\ - Set LC_ALL to a locale with encoding %s,\n\ convert the translation catalog to %s using 'msgconv',\n\ then apply '%s',\n\ then convert back to %s using 'msgconv'.\n\ "), "UTF-8", "UTF-8", basename (program_name), canon_charset)); - warned = true; - } - } - } - } + warned = true; + } + } + } + } } if (canon_locale_code == NULL && !warned) multiline_warning (xasprintf (_("warning: ")), - xasprintf (_("\ + xasprintf (_("\ Locale charset \"%s\" is not a portable encoding name.\n\ Output of '%s' might be incorrect.\n\ A possible workaround is to set LC_ALL=C.\n\ diff -Nru gettext-0.17/gettext-tools/src/msgl-check.c gettext-0.18.1.1/gettext-tools/src/msgl-check.c --- gettext-0.17/gettext-tools/src/msgl-check.c 2007-10-20 20:12:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-check.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Checking of messages in PO files. - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2008 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -47,31 +47,68 @@ #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) +/* Evaluates the plural formula for min <= n <= max + and returns the estimated number of times the value j was assumed. */ +static unsigned int +plural_expression_histogram (const struct plural_distribution *self, + int min, int max, unsigned long j) +{ + if (min < 0) + min = 0; + /* Limit the number of evaluations. Nothing interesting happens beyond + 1000. */ + if (max - min > 1000) + max = min + 1000; + if (min <= max) + { + const struct expression *expr = self->expr; + unsigned long n; + unsigned int count; + + /* Protect against arithmetic exceptions. */ + install_sigfpe_handler (); + + count = 0; + for (n = min; n <= max; n++) + { + unsigned long val = plural_eval (expr, n); + + if (val == j) + count++; + } + + /* End of protection against arithmetic exceptions. */ + uninstall_sigfpe_handler (); + + return count; + } + else + return 0; +} + + /* Check the values returned by plural_eval. Signals the errors through po_xerror. Return the number of errors that were seen. - If no errors, returns in *PLURAL_DISTRIBUTION either NULL or an array - of length NPLURALS_VALUE describing which plural formula values appear - infinitely often and in *PLURAL_DISTRIBUTION_LENGTH the length of this - array. */ + If no errors, returns in *DISTRIBUTION information about the plural_eval + values distribution. */ int check_plural_eval (const struct expression *plural_expr, - unsigned long nplurals_value, - const message_ty *header, - unsigned char **plural_distribution, - unsigned long *plural_distribution_length) + unsigned long nplurals_value, + const message_ty *header, + struct plural_distribution *distribution) { /* Do as if the plural formula assumes a value N infinitely often if it assumes it at least 5 times. */ #define OFTEN 5 - unsigned char * volatile distribution; + unsigned char * volatile array; /* Allocate a distribution array. */ if (nplurals_value <= 100) - distribution = XCALLOC (nplurals_value, unsigned char); + array = XCALLOC (nplurals_value, unsigned char); else /* nplurals_value is nonsense. Don't risk an out-of-memory. */ - distribution = NULL; + array = NULL; if (sigsetjmp (sigfpe_exit, 1) == 0) { @@ -81,51 +118,54 @@ install_sigfpe_handler (); for (n = 0; n <= 1000; n++) - { - unsigned long val = plural_eval (plural_expr, n); + { + unsigned long val = plural_eval (plural_expr, n); - if ((long) val < 0) - { - /* End of protection against arithmetic exceptions. */ - uninstall_sigfpe_handler (); - - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, - _("plural expression can produce negative values")); - return 1; - } - else if (val >= nplurals_value) - { - char *msg; - - /* End of protection against arithmetic exceptions. */ - uninstall_sigfpe_handler (); - - msg = xasprintf (_("nplurals = %lu but plural expression can produce values as large as %lu"), - nplurals_value, val); - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); - free (msg); - return 1; - } - - if (distribution != NULL && distribution[val] < OFTEN) - distribution[val]++; - } + if ((long) val < 0) + { + /* End of protection against arithmetic exceptions. */ + uninstall_sigfpe_handler (); + + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, + _("plural expression can produce negative values")); + free (array); + return 1; + } + else if (val >= nplurals_value) + { + char *msg; + + /* End of protection against arithmetic exceptions. */ + uninstall_sigfpe_handler (); + + msg = xasprintf (_("nplurals = %lu but plural expression can produce values as large as %lu"), + nplurals_value, val); + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); + free (msg); + free (array); + return 1; + } + + if (array != NULL && array[val] < OFTEN) + array[val]++; + } /* End of protection against arithmetic exceptions. */ uninstall_sigfpe_handler (); - /* Normalize the distribution[val] statistics. */ - if (distribution != NULL) - { - unsigned long val; - - for (val = 0; val < nplurals_value; val++) - distribution[val] = (distribution[val] == OFTEN ? 1 : 0); - *plural_distribution_length = nplurals_value; - } - else - *plural_distribution_length = 0; - *plural_distribution = distribution; + /* Normalize the array[val] statistics. */ + if (array != NULL) + { + unsigned long val; + + for (val = 0; val < nplurals_value; val++) + array[val] = (array[val] == OFTEN ? 1 : 0); + } + + distribution->expr = plural_expr; + distribution->often = array; + distribution->often_length = (array != NULL ? nplurals_value : 0); + distribution->histogram = plural_expression_histogram; return 0; } @@ -140,27 +180,26 @@ #if USE_SIGINFO switch (sigfpe_code) #endif - { + { #if USE_SIGINFO # ifdef FPE_INTDIV - case FPE_INTDIV: - msg = _("plural expression can produce division by zero"); - break; + case FPE_INTDIV: + msg = _("plural expression can produce division by zero"); + break; # endif # ifdef FPE_INTOVF - case FPE_INTOVF: - msg = _("plural expression can produce integer overflow"); - break; + case FPE_INTOVF: + msg = _("plural expression can produce integer overflow"); + break; # endif - default: + default: #endif - msg = _("plural expression can produce arithmetic exceptions, possibly division by zero"); - } + msg = _("plural expression can produce arithmetic exceptions, possibly division by zero"); + } po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); - if (distribution != NULL) - free (distribution); + free (array); return 1; } @@ -173,27 +212,64 @@ static char * plural_help (const char *nullentry) { - const char *language; - size_t j; + struct plural_table_entry *ptentry = NULL; - language = c_strstr (nullentry, "Language-Team: "); - if (language != NULL) - { - language += 15; - for (j = 0; j < plural_table_size; j++) - if (strncmp (language, - plural_table[j].language, - strlen (plural_table[j].language)) == 0) - { - char *helpline1 = - xasprintf (_("Try using the following, valid for %s:"), - plural_table[j].language); - char *help = - xasprintf ("%s\n\"Plural-Forms: %s\\n\"\n", - helpline1, plural_table[j].value); - free (helpline1); - return help; - } + { + const char *language; + + language = c_strstr (nullentry, "Language: "); + if (language != NULL) + { + size_t len; + + language += 10; + len = strcspn (language, " \t\n"); + if (len > 0) + { + size_t j; + + for (j = 0; j < plural_table_size; j++) + if (len == strlen (plural_table[j].lang) + && strncmp (language, plural_table[j].lang, len) == 0) + { + ptentry = &plural_table[j]; + break; + } + } + } + } + + if (ptentry == NULL) + { + const char *language; + + language = c_strstr (nullentry, "Language-Team: "); + if (language != NULL) + { + size_t j; + + language += 15; + for (j = 0; j < plural_table_size; j++) + if (strncmp (language, + plural_table[j].language, + strlen (plural_table[j].language)) == 0) + { + ptentry = &plural_table[j]; + break; + } + } + } + + if (ptentry != NULL) + { + char *helpline1 = + xasprintf (_("Try using the following, valid for %s:"), + ptentry->language); + char *help = + xasprintf ("%s\n\"Plural-Forms: %s\\n\"\n", + helpline1, ptentry->value); + free (helpline1); + return help; } return NULL; } @@ -201,13 +277,10 @@ /* Perform plural expression checking. Return the number of errors that were seen. - If no errors, returns in *PLURAL_DISTRIBUTION either NULL or an array - describing which plural formula values appear infinitely often and in - *PLURAL_DISTRIBUTION_LENGTH the length of this array. */ + If no errors, returns in *DISTRIBUTION information about the plural_eval + values distribution. */ static int -check_plural (message_list_ty *mlp, - unsigned char **plural_distribution, - unsigned long *plural_distribution_length) +check_plural (message_list_ty *mlp, struct plural_distribution *distributionp) { int seen_errors = 0; const message_ty *has_plural; @@ -215,10 +288,9 @@ const message_ty *min_pos; unsigned long max_nplurals; const message_ty *max_pos; + struct plural_distribution distribution; size_t j; message_ty *header; - unsigned char *distribution = NULL; - unsigned long distribution_length = 0; /* Determine whether mlp has plural entries. */ has_plural = NULL; @@ -226,35 +298,39 @@ min_pos = NULL; max_nplurals = 0; max_pos = NULL; + distribution.expr = NULL; + distribution.often = NULL; + distribution.often_length = 0; + distribution.histogram = NULL; for (j = 0; j < mlp->nitems; j++) { message_ty *mp = mlp->item[j]; if (!mp->obsolete && mp->msgid_plural != NULL) - { - const char *p; - const char *p_end; - unsigned long n; - - if (has_plural == NULL) - has_plural = mp; - - n = 0; - for (p = mp->msgstr, p_end = p + mp->msgstr_len; - p < p_end; - p += strlen (p) + 1) - n++; - if (min_nplurals > n) - { - min_nplurals = n; - min_pos = mp; - } - if (max_nplurals < n) - { - max_nplurals = n; - max_pos = mp; - } - } + { + const char *p; + const char *p_end; + unsigned long n; + + if (has_plural == NULL) + has_plural = mp; + + n = 0; + for (p = mp->msgstr, p_end = p + mp->msgstr_len; + p < p_end; + p += strlen (p) + 1) + n++; + if (min_nplurals > n) + { + min_nplurals = n; + min_pos = mp; + } + if (max_nplurals < n) + { + max_nplurals = n; + max_pos = mp; + } + } } /* Look at the plural entry for this domain. @@ -271,186 +347,187 @@ plural = c_strstr (nullentry, "plural="); nplurals = c_strstr (nullentry, "nplurals="); if (plural == NULL && has_plural != NULL) - { - const char *msg1 = - _("message catalog has plural form translations"); - const char *msg2 = - _("but header entry lacks a \"plural=EXPRESSION\" attribute"); - char *help = plural_help (nullentry); - - if (help != NULL) - { - char *msg2ext = xasprintf ("%s\n%s", msg2, help); - po_xerror2 (PO_SEVERITY_ERROR, - has_plural, NULL, 0, 0, false, msg1, - header, NULL, 0, 0, true, msg2ext); - free (msg2ext); - free (help); - } - else - po_xerror2 (PO_SEVERITY_ERROR, - has_plural, NULL, 0, 0, false, msg1, - header, NULL, 0, 0, false, msg2); + { + const char *msg1 = + _("message catalog has plural form translations"); + const char *msg2 = + _("but header entry lacks a \"plural=EXPRESSION\" attribute"); + char *help = plural_help (nullentry); + + if (help != NULL) + { + char *msg2ext = xasprintf ("%s\n%s", msg2, help); + po_xerror2 (PO_SEVERITY_ERROR, + has_plural, NULL, 0, 0, false, msg1, + header, NULL, 0, 0, true, msg2ext); + free (msg2ext); + free (help); + } + else + po_xerror2 (PO_SEVERITY_ERROR, + has_plural, NULL, 0, 0, false, msg1, + header, NULL, 0, 0, false, msg2); - seen_errors++; - } + seen_errors++; + } if (nplurals == NULL && has_plural != NULL) - { - const char *msg1 = - _("message catalog has plural form translations"); - const char *msg2 = - _("but header entry lacks a \"nplurals=INTEGER\" attribute"); - char *help = plural_help (nullentry); - - if (help != NULL) - { - char *msg2ext = xasprintf ("%s\n%s", msg2, help); - po_xerror2 (PO_SEVERITY_ERROR, - has_plural, NULL, 0, 0, false, msg1, - header, NULL, 0, 0, true, msg2ext); - free (msg2ext); - free (help); - } - else - po_xerror2 (PO_SEVERITY_ERROR, - has_plural, NULL, 0, 0, false, msg1, - header, NULL, 0, 0, false, msg2); + { + const char *msg1 = + _("message catalog has plural form translations"); + const char *msg2 = + _("but header entry lacks a \"nplurals=INTEGER\" attribute"); + char *help = plural_help (nullentry); + + if (help != NULL) + { + char *msg2ext = xasprintf ("%s\n%s", msg2, help); + po_xerror2 (PO_SEVERITY_ERROR, + has_plural, NULL, 0, 0, false, msg1, + header, NULL, 0, 0, true, msg2ext); + free (msg2ext); + free (help); + } + else + po_xerror2 (PO_SEVERITY_ERROR, + has_plural, NULL, 0, 0, false, msg1, + header, NULL, 0, 0, false, msg2); - seen_errors++; - } + seen_errors++; + } if (plural != NULL && nplurals != NULL) - { - const char *endp; - unsigned long int nplurals_value; - struct parse_args args; - const struct expression *plural_expr; - - /* First check the number. */ - nplurals += 9; - while (*nplurals != '\0' && c_isspace ((unsigned char) *nplurals)) - ++nplurals; - endp = nplurals; - nplurals_value = 0; - if (*nplurals >= '0' && *nplurals <= '9') - nplurals_value = strtoul (nplurals, (char **) &endp, 10); - if (nplurals == endp) - { - const char *msg = _("invalid nplurals value"); - char *help = plural_help (nullentry); - - if (help != NULL) - { - char *msgext = xasprintf ("%s\n%s", msg, help); - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, true, - msgext); - free (msgext); - free (help); - } - else - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); - - seen_errors++; - } - - /* Then check the expression. */ - plural += 7; - args.cp = plural; - if (parse_plural_expression (&args) != 0) - { - const char *msg = _("invalid plural expression"); - char *help = plural_help (nullentry); - - if (help != NULL) - { - char *msgext = xasprintf ("%s\n%s", msg, help); - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, true, - msgext); - free (msgext); - free (help); - } - else - po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); - - seen_errors++; - } - plural_expr = args.res; - - /* See whether nplurals and plural fit together. */ - if (!seen_errors) - seen_errors = - check_plural_eval (plural_expr, nplurals_value, header, - &distribution, &distribution_length); - - /* Check the number of plurals of the translations. */ - if (!seen_errors) - { - if (min_nplurals < nplurals_value) - { - char *msg1 = - xasprintf (_("nplurals = %lu"), nplurals_value); - char *msg2 = - xasprintf (ngettext ("but some messages have only one plural form", - "but some messages have only %lu plural forms", - min_nplurals), - min_nplurals); - po_xerror2 (PO_SEVERITY_ERROR, - header, NULL, 0, 0, false, msg1, - min_pos, NULL, 0, 0, false, msg2); - free (msg2); - free (msg1); - seen_errors++; - } - else if (max_nplurals > nplurals_value) - { - char *msg1 = - xasprintf (_("nplurals = %lu"), nplurals_value); - char *msg2 = - xasprintf (ngettext ("but some messages have one plural form", - "but some messages have %lu plural forms", - max_nplurals), - max_nplurals); - po_xerror2 (PO_SEVERITY_ERROR, - header, NULL, 0, 0, false, msg1, - max_pos, NULL, 0, 0, false, msg2); - free (msg2); - free (msg1); - seen_errors++; - } - /* The only valid case is max_nplurals <= n <= min_nplurals, - which means either has_plural == NULL or - max_nplurals = n = min_nplurals. */ - } - } + { + const char *endp; + unsigned long int nplurals_value; + struct parse_args args; + const struct expression *plural_expr; + + /* First check the number. */ + nplurals += 9; + while (*nplurals != '\0' && c_isspace ((unsigned char) *nplurals)) + ++nplurals; + endp = nplurals; + nplurals_value = 0; + if (*nplurals >= '0' && *nplurals <= '9') + nplurals_value = strtoul (nplurals, (char **) &endp, 10); + if (nplurals == endp) + { + const char *msg = _("invalid nplurals value"); + char *help = plural_help (nullentry); + + if (help != NULL) + { + char *msgext = xasprintf ("%s\n%s", msg, help); + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, true, + msgext); + free (msgext); + free (help); + } + else + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); + + seen_errors++; + } + + /* Then check the expression. */ + plural += 7; + args.cp = plural; + if (parse_plural_expression (&args) != 0) + { + const char *msg = _("invalid plural expression"); + char *help = plural_help (nullentry); + + if (help != NULL) + { + char *msgext = xasprintf ("%s\n%s", msg, help); + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, true, + msgext); + free (msgext); + free (help); + } + else + po_xerror (PO_SEVERITY_ERROR, header, NULL, 0, 0, false, msg); + + seen_errors++; + } + plural_expr = args.res; + + /* See whether nplurals and plural fit together. */ + if (!seen_errors) + seen_errors = + check_plural_eval (plural_expr, nplurals_value, header, + &distribution); + + /* Check the number of plurals of the translations. */ + if (!seen_errors) + { + if (min_nplurals < nplurals_value) + { + char *msg1 = + xasprintf (_("nplurals = %lu"), nplurals_value); + char *msg2 = + xasprintf (ngettext ("but some messages have only one plural form", + "but some messages have only %lu plural forms", + min_nplurals), + min_nplurals); + po_xerror2 (PO_SEVERITY_ERROR, + header, NULL, 0, 0, false, msg1, + min_pos, NULL, 0, 0, false, msg2); + free (msg2); + free (msg1); + seen_errors++; + } + else if (max_nplurals > nplurals_value) + { + char *msg1 = + xasprintf (_("nplurals = %lu"), nplurals_value); + char *msg2 = + xasprintf (ngettext ("but some messages have one plural form", + "but some messages have %lu plural forms", + max_nplurals), + max_nplurals); + po_xerror2 (PO_SEVERITY_ERROR, + header, NULL, 0, 0, false, msg1, + max_pos, NULL, 0, 0, false, msg2); + free (msg2); + free (msg1); + seen_errors++; + } + /* The only valid case is max_nplurals <= n <= min_nplurals, + which means either has_plural == NULL or + max_nplurals = n = min_nplurals. */ + } + } else - goto no_plural; + goto no_plural; } else { if (has_plural != NULL) - { - po_xerror (PO_SEVERITY_ERROR, has_plural, NULL, 0, 0, false, - _("message catalog has plural form translations, but lacks a header entry with \"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"")); - seen_errors++; - } + { + po_xerror (PO_SEVERITY_ERROR, has_plural, NULL, 0, 0, false, + _("message catalog has plural form translations, but lacks a header entry with \"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\"")); + seen_errors++; + } no_plural: /* By default, the Germanic formula (n != 1) is used. */ - distribution = XCALLOC (2, unsigned char); - distribution[1] = 1; - distribution_length = 2; + distribution.expr = &germanic_plural; + { + unsigned char *array = XCALLOC (2, unsigned char); + array[1] = 1; + distribution.often = array; + } + distribution.often_length = 2; + distribution.histogram = plural_expression_histogram; } /* distribution is not needed if we report errors. Also, if there was an error due to max_nplurals > nplurals_value, we must not use distribution because we would be doing out-of-bounds array accesses. */ - if (seen_errors > 0 && distribution != NULL) - { - free (distribution); - distribution = NULL; - distribution_length = 0; - } - *plural_distribution = distribution; - *plural_distribution_length = distribution_length; + if (seen_errors > 0) + free ((unsigned char *) distribution.often); + else + *distributionp = distribution; return seen_errors; } @@ -473,8 +550,8 @@ error (EXIT_FAILURE, 0, _("memory exhausted")); va_end (args); po_xerror (PO_SEVERITY_ERROR, - curr_mp, curr_msgid_pos.file_name, curr_msgid_pos.line_number, - (size_t)(-1), false, msg); + curr_mp, curr_msgid_pos.file_name, curr_msgid_pos.line_number, + (size_t)(-1), false, msg); free (msg); } @@ -487,17 +564,16 @@ array. */ static int check_pair (const message_ty *mp, - const char *msgid, - const lex_pos_ty *msgid_pos, - const char *msgid_plural, - const char *msgstr, size_t msgstr_len, - const enum is_format is_format[NFORMATS], - int check_newlines, - int check_format_strings, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - int check_compatibility, - int check_accelerators, char accelerator_char) + const char *msgid, + const lex_pos_ty *msgid_pos, + const char *msgid_plural, + const char *msgstr, size_t msgstr_len, + const enum is_format is_format[NFORMATS], + int check_newlines, + int check_format_strings, + const struct plural_distribution *distribution, + int check_compatibility, + int check_accelerators, char accelerator_char) { int seen_errors; int has_newline; @@ -516,90 +592,90 @@ has_newline = (msgid[0] == '\n'); #define TEST_NEWLINE(p) (p[0] == '\n') if (msgid_plural != NULL) - { - const char *p; + { + const char *p; - if (TEST_NEWLINE(msgid_plural) != has_newline) - { - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("\ + if (TEST_NEWLINE(msgid_plural) != has_newline) + { + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("\ `msgid' and `msgid_plural' entries do not both begin with '\\n'")); - seen_errors++; - } - for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) - if (TEST_NEWLINE(p) != has_newline) - { - char *msg = - xasprintf (_("\ + seen_errors++; + } + for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) + if (TEST_NEWLINE(p) != has_newline) + { + char *msg = + xasprintf (_("\ `msgid' and `msgstr[%u]' entries do not both begin with '\\n'"), j); - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, msg); - free (msg); - seen_errors++; - } - } + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, msg); + free (msg); + seen_errors++; + } + } else - { - if (TEST_NEWLINE(msgstr) != has_newline) - { - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("\ + { + if (TEST_NEWLINE(msgstr) != has_newline) + { + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("\ `msgid' and `msgstr' entries do not both begin with '\\n'")); - seen_errors++; - } - } + seen_errors++; + } + } #undef TEST_NEWLINE /* Test 2: check whether all or none of the strings end with a '\n'. */ has_newline = (msgid[strlen (msgid) - 1] == '\n'); #define TEST_NEWLINE(p) (p[0] != '\0' && p[strlen (p) - 1] == '\n') if (msgid_plural != NULL) - { - const char *p; + { + const char *p; - if (TEST_NEWLINE(msgid_plural) != has_newline) - { - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("\ + if (TEST_NEWLINE(msgid_plural) != has_newline) + { + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("\ `msgid' and `msgid_plural' entries do not both end with '\\n'")); - seen_errors++; - } - for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) - if (TEST_NEWLINE(p) != has_newline) - { - char *msg = - xasprintf (_("\ + seen_errors++; + } + for (p = msgstr, j = 0; p < msgstr + msgstr_len; p += strlen (p) + 1, j++) + if (TEST_NEWLINE(p) != has_newline) + { + char *msg = + xasprintf (_("\ `msgid' and `msgstr[%u]' entries do not both end with '\\n'"), j); - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, msg); - free (msg); - seen_errors++; - } - } + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, msg); + free (msg); + seen_errors++; + } + } else - { - if (TEST_NEWLINE(msgstr) != has_newline) - { - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("\ + { + if (TEST_NEWLINE(msgstr) != has_newline) + { + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("\ `msgid' and `msgstr' entries do not both end with '\\n'")); - seen_errors++; - } - } + seen_errors++; + } + } #undef TEST_NEWLINE } if (check_compatibility && msgid_plural != NULL) { po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("\ + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("\ plural handling is a GNU gettext extension")); seen_errors++; } @@ -611,10 +687,9 @@ curr_mp = mp; curr_msgid_pos = *msgid_pos; seen_errors += - check_msgid_msgstr_format (msgid, msgid_plural, msgstr, msgstr_len, - is_format, plural_distribution, - plural_distribution_length, - formatstring_error_logger); + check_msgid_msgstr_format (msgid, msgid_plural, msgstr, msgstr_len, + is_format, mp->range, distribution, + formatstring_error_logger); } if (check_accelerators && msgid_plural == NULL) @@ -629,37 +704,37 @@ /* We are only interested in msgids that contain exactly one '&'. */ p = strchr (msgid, accelerator_char); if (p != NULL && strchr (p + 1, accelerator_char) == NULL) - { - /* Count the number of '&' in msgstr, but ignore '&&'. */ - unsigned int count = 0; - - for (p = msgstr; (p = strchr (p, accelerator_char)) != NULL; p++) - if (p[1] == accelerator_char) - p++; - else - count++; - - if (count == 0) - { - char *msg = - xasprintf (_("msgstr lacks the keyboard accelerator mark '%c'"), - accelerator_char); - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, msg); - free (msg); - } - else if (count > 1) - { - char *msg = - xasprintf (_("msgstr has too many keyboard accelerator marks '%c'"), - accelerator_char); - po_xerror (PO_SEVERITY_ERROR, - mp, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, msg); - free (msg); - } - } + { + /* Count the number of '&' in msgstr, but ignore '&&'. */ + unsigned int count = 0; + + for (p = msgstr; (p = strchr (p, accelerator_char)) != NULL; p++) + if (p[1] == accelerator_char) + p++; + else + count++; + + if (count == 0) + { + char *msg = + xasprintf (_("msgstr lacks the keyboard accelerator mark '%c'"), + accelerator_char); + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, msg); + free (msg); + } + else if (count > 1) + { + char *msg = + xasprintf (_("msgstr has too many keyboard accelerator marks '%c'"), + accelerator_char); + po_xerror (PO_SEVERITY_ERROR, + mp, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, msg); + free (msg); + } + } } return seen_errors; @@ -674,96 +749,112 @@ { "Project-Id-Version", "PO-Revision-Date", "Last-Translator", "Language-Team", "MIME-Version", "Content-Type", - "Content-Transfer-Encoding" + "Content-Transfer-Encoding", + /* These are recommended but not yet required. */ + "Language" }; static const char *default_values[] = { "PACKAGE VERSION", "YEAR-MO-DA", "FULL NAME", "LANGUAGE", NULL, - "text/plain; charset=CHARSET", "ENCODING" + "text/plain; charset=CHARSET", "ENCODING", + "" }; const size_t nfields = SIZEOF (required_fields); + const size_t nrequiredfields = nfields - 1; int initial = -1; int cnt; for (cnt = 0; cnt < nfields; ++cnt) { - char *endp = c_strstr (msgstr_string, required_fields[cnt]); + int severity = + (cnt < nrequiredfields ? PO_SEVERITY_ERROR : PO_SEVERITY_WARNING); + const char *endp = c_strstr (msgstr_string, required_fields[cnt]); if (endp == NULL) - { - char *msg = - xasprintf (_("headerfield `%s' missing in header\n"), - required_fields[cnt]); - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, true, msg); - free (msg); - } + { + char *msg = + xasprintf (_("header field `%s' missing in header\n"), + required_fields[cnt]); + po_xerror (severity, mp, NULL, 0, 0, true, msg); + free (msg); + } else if (endp != msgstr_string && endp[-1] != '\n') - { - char *msg = - xasprintf (_("\ + { + char *msg = + xasprintf (_("\ header field `%s' should start at beginning of line\n"), - required_fields[cnt]); - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, true, msg); - free (msg); - } - else if (default_values[cnt] != NULL - && strncmp (default_values[cnt], - endp + strlen (required_fields[cnt]) + 2, - strlen (default_values[cnt])) == 0) - { - if (initial != -1) - { - po_xerror (PO_SEVERITY_ERROR, - mp, NULL, 0, 0, true, _("\ + required_fields[cnt]); + po_xerror (severity, mp, NULL, 0, 0, true, msg); + free (msg); + } + else + { + const char *p = endp + strlen (required_fields[cnt]); + /* Test whether the field's value, starting at p, is the default + value. */ + if (*p == ':') + p++; + if (*p == ' ') + p++; + if (default_values[cnt] != NULL + && strncmp (p, default_values[cnt], + strlen (default_values[cnt])) == 0) + { + p += strlen (default_values[cnt]); + if (*p == '\0' || *p == '\n') + { + if (initial != -1) + { + po_xerror (severity, + mp, NULL, 0, 0, true, _("\ some header fields still have the initial default value\n")); - initial = -1; - break; - } - else - initial = cnt; - } + initial = -1; + break; + } + else + initial = cnt; + } + } + } } if (initial != -1) { + int severity = + (initial < nrequiredfields ? PO_SEVERITY_ERROR : PO_SEVERITY_WARNING); char *msg = - xasprintf (_("field `%s' still has initial default value\n"), - required_fields[initial]); - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, true, msg); + xasprintf (_("header field `%s' still has the initial default value\n"), + required_fields[initial]); + po_xerror (severity, mp, NULL, 0, 0, true, msg); free (msg); } } /* Perform all checks on a non-obsolete message. - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. - PLURAL_DISTRIBUTION_LENGTH is the length of the PLURAL_DISTRIBUTION array. Return the number of errors that were seen. */ int check_message (const message_ty *mp, - const lex_pos_ty *msgid_pos, - int check_newlines, - int check_format_strings, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - int check_header, - int check_compatibility, - int check_accelerators, char accelerator_char) + const lex_pos_ty *msgid_pos, + int check_newlines, + int check_format_strings, + const struct plural_distribution *distribution, + int check_header, + int check_compatibility, + int check_accelerators, char accelerator_char) { if (check_header && is_header (mp)) check_header_entry (mp, mp->msgstr); return check_pair (mp, - mp->msgid, msgid_pos, mp->msgid_plural, - mp->msgstr, mp->msgstr_len, - mp->is_format, - check_newlines, - check_format_strings, - plural_distribution, plural_distribution_length, - check_compatibility, - check_accelerators, accelerator_char); + mp->msgid, msgid_pos, mp->msgid_plural, + mp->msgstr, mp->msgstr_len, + mp->is_format, + check_newlines, + check_format_strings, + distribution, + check_compatibility, + check_accelerators, accelerator_char); } @@ -771,33 +862,35 @@ Return the number of errors that were seen. */ int check_message_list (message_list_ty *mlp, - int check_newlines, - int check_format_strings, - int check_header, - int check_compatibility, - int check_accelerators, char accelerator_char) + int check_newlines, + int check_format_strings, + int check_header, + int check_compatibility, + int check_accelerators, char accelerator_char) { int seen_errors = 0; - unsigned char *plural_distribution = NULL; - unsigned long plural_distribution_length = 0; + struct plural_distribution distribution; size_t j; + distribution.expr = NULL; + distribution.often = NULL; + distribution.often_length = 0; + distribution.histogram = NULL; + if (check_header) - seen_errors += - check_plural (mlp, &plural_distribution, &plural_distribution_length); + seen_errors += check_plural (mlp, &distribution); for (j = 0; j < mlp->nitems; j++) { message_ty *mp = mlp->item[j]; if (!mp->obsolete) - seen_errors += check_message (mp, &mp->pos, - check_newlines, - check_format_strings, - plural_distribution, - plural_distribution_length, - check_header, check_compatibility, - check_accelerators, accelerator_char); + seen_errors += check_message (mp, &mp->pos, + check_newlines, + check_format_strings, + &distribution, + check_header, check_compatibility, + check_accelerators, accelerator_char); } return seen_errors; diff -Nru gettext-0.17/gettext-tools/src/msgl-check.h gettext-0.18.1.1/gettext-tools/src/msgl-check.h --- gettext-0.17/gettext-tools/src/msgl-check.h 2007-10-20 21:22:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-check.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Checking of messages in PO files. - Copyright (C) 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2005. This program is free software: you can redistribute it and/or modify @@ -21,6 +21,7 @@ #include "message.h" #include "pos.h" #include "plural-eval.h" +#include "plural-distrib.h" #ifdef __cplusplus @@ -31,40 +32,31 @@ /* Check the values returned by plural_eval. Signals the errors through po_xerror. Return the number of errors that were seen. - If no errors, returns in *PLURAL_DISTRIBUTION either NULL or an array - of length NPLURALS_VALUE describing which plural formula values appear - infinitely often and in *PLURAL_DISTRIBUTION_LENGTH the length of this - array. */ + If no errors, returns in *DISTRIBUTION information about the plural_eval + values distribution. */ extern int check_plural_eval (const struct expression *plural_expr, - unsigned long nplurals_value, - const message_ty *header, - unsigned char **plural_distribution, - unsigned long *plural_distribution_length); - -/* Perform all checks on a non-obsolete message. - PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, - PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed - infinitely often by the plural formula. - PLURAL_DISTRIBUTION_LENGTH is the length of the PLURAL_DISTRIBUTION array. - Return the number of errors that were seen. */ + unsigned long nplurals_value, + const message_ty *header, + struct plural_distribution *distribution); + +/* Perform all checks on a non-obsolete message. */ extern int check_message (const message_ty *mp, - const lex_pos_ty *msgid_pos, - int check_newlines, - int check_format_strings, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length, - int check_header, - int check_compatibility, - int check_accelerators, char accelerator_char); + const lex_pos_ty *msgid_pos, + int check_newlines, + int check_format_strings, + const struct plural_distribution *distribution, + int check_header, + int check_compatibility, + int check_accelerators, char accelerator_char); /* Perform all checks on a message list. Return the number of errors that were seen. */ extern int check_message_list (message_list_ty *mlp, - int check_newlines, - int check_format_strings, - int check_header, - int check_compatibility, - int check_accelerators, char accelerator_char); + int check_newlines, + int check_format_strings, + int check_header, + int check_compatibility, + int check_accelerators, char accelerator_char); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/msgl-english.c gettext-0.18.1.1/gettext-tools/src/msgl-english.c --- gettext-0.17/gettext-tools/src/msgl-english.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-english.c 2010-06-06 12:49:58.000000000 +0000 @@ -38,32 +38,32 @@ message_list_ty *mlp = mdlp->item[k]->messages; for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - if (mp->msgid_plural == NULL) - { - if (mp->msgstr_len == 1 && mp->msgstr[0] == '\0') - { - mp->msgstr = mp->msgid; /* no need for xstrdup */ - mp->msgstr_len = strlen (mp->msgid) + 1; - } - } - else - { - if (mp->msgstr_len == 2 - && mp->msgstr[0] == '\0' && mp->msgstr[1] == '\0') - { - size_t len0 = strlen (mp->msgid) + 1; - size_t len1 = strlen (mp->msgid_plural) + 1; - char *cp = XNMALLOC (len0 + len1, char); - memcpy (cp, mp->msgid, len0); - memcpy (cp + len0, mp->msgid_plural, len1); - mp->msgstr = cp; - mp->msgstr_len = len0 + len1; - } - } - } + if (mp->msgid_plural == NULL) + { + if (mp->msgstr_len == 1 && mp->msgstr[0] == '\0') + { + mp->msgstr = mp->msgid; /* no need for xstrdup */ + mp->msgstr_len = strlen (mp->msgid) + 1; + } + } + else + { + if (mp->msgstr_len == 2 + && mp->msgstr[0] == '\0' && mp->msgstr[1] == '\0') + { + size_t len0 = strlen (mp->msgid) + 1; + size_t len1 = strlen (mp->msgid_plural) + 1; + char *cp = XNMALLOC (len0 + len1, char); + memcpy (cp, mp->msgid, len0); + memcpy (cp + len0, mp->msgid_plural, len1); + mp->msgstr = cp; + mp->msgstr_len = len0 + len1; + } + } + } } return mdlp; diff -Nru gettext-0.17/gettext-tools/src/msgl-equal.c gettext-0.18.1.1/gettext-tools/src/msgl-equal.c --- gettext-0.17/gettext-tools/src/msgl-equal.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-equal.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Message list test for equality. - Copyright (C) 2001-2002, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2006, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -29,15 +29,15 @@ static inline bool msgstr_equal (const char *msgstr1, size_t msgstr1_len, - const char *msgstr2, size_t msgstr2_len) + const char *msgstr2, size_t msgstr2_len) { return (msgstr1_len == msgstr2_len - && memcmp (msgstr1, msgstr2, msgstr1_len) == 0); + && memcmp (msgstr1, msgstr2, msgstr1_len) == 0); } static bool msgstr_equal_ignoring_potcdate (const char *msgstr1, size_t msgstr1_len, - const char *msgstr2, size_t msgstr2_len) + const char *msgstr2, size_t msgstr2_len) { const char *msgstr1_end = msgstr1 + msgstr1_len; const char *msgstr2_end = msgstr2 + msgstr2_len; @@ -50,15 +50,15 @@ for (ptr1 = msgstr1;;) { if (msgstr1_end - ptr1 < fieldlen) - { - ptr1 = NULL; - break; - } + { + ptr1 = NULL; + break; + } if (memcmp (ptr1, field, fieldlen) == 0) - break; + break; ptr1 = (const char *) memchr (ptr1, '\n', msgstr1_end - ptr1); if (ptr1 == NULL) - break; + break; ptr1++; } @@ -66,42 +66,42 @@ for (ptr2 = msgstr2;;) { if (msgstr2_end - ptr2 < fieldlen) - { - ptr2 = NULL; - break; - } + { + ptr2 = NULL; + break; + } if (memcmp (ptr2, field, fieldlen) == 0) - break; + break; ptr2 = (const char *) memchr (ptr2, '\n', msgstr2_end - ptr2); if (ptr2 == NULL) - break; + break; ptr2++; } if (ptr1 == NULL) { if (ptr2 == NULL) - return msgstr_equal (msgstr1, msgstr1_len, msgstr2, msgstr2_len); + return msgstr_equal (msgstr1, msgstr1_len, msgstr2, msgstr2_len); } else { if (ptr2 != NULL) - { - /* Compare, ignoring the lines starting at ptr1 and ptr2. */ - if (msgstr_equal (msgstr1, ptr1 - msgstr1, msgstr2, ptr2 - msgstr2)) - { - ptr1 = (const char *) memchr (ptr1, '\n', msgstr1_end - ptr1); - if (ptr1 == NULL) - ptr1 = msgstr1_end; - - ptr2 = (const char *) memchr (ptr2, '\n', msgstr2_end - ptr2); - if (ptr2 == NULL) - ptr2 = msgstr2_end; - - return msgstr_equal (ptr1, msgstr1_end - ptr1, - ptr2, msgstr2_end - ptr2); - } - } + { + /* Compare, ignoring the lines starting at ptr1 and ptr2. */ + if (msgstr_equal (msgstr1, ptr1 - msgstr1, msgstr2, ptr2 - msgstr2)) + { + ptr1 = (const char *) memchr (ptr1, '\n', msgstr1_end - ptr1); + if (ptr1 == NULL) + ptr1 = msgstr1_end; + + ptr2 = (const char *) memchr (ptr2, '\n', msgstr2_end - ptr2); + if (ptr2 == NULL) + ptr2 = msgstr2_end; + + return msgstr_equal (ptr1, msgstr1_end - ptr1, + ptr2, msgstr2_end - ptr2); + } + } } return false; } @@ -110,8 +110,8 @@ pos_equal (const lex_pos_ty *pos1, const lex_pos_ty *pos2) { return ((pos1->file_name == pos2->file_name - || strcmp (pos1->file_name, pos2->file_name) == 0) - && pos1->line_number == pos2->line_number); + || strcmp (pos1->file_name, pos2->file_name) == 0) + && pos1->line_number == pos2->line_number); } bool @@ -131,29 +131,29 @@ bool message_equal (const message_ty *mp1, const message_ty *mp2, - bool ignore_potcdate) + bool ignore_potcdate) { size_t i, i1, i2; if (!(mp1->msgctxt != NULL - ? mp2->msgctxt != NULL && strcmp (mp1->msgctxt, mp2->msgctxt) == 0 - : mp2->msgctxt == NULL)) + ? mp2->msgctxt != NULL && strcmp (mp1->msgctxt, mp2->msgctxt) == 0 + : mp2->msgctxt == NULL)) return false; if (strcmp (mp1->msgid, mp2->msgid) != 0) return false; if (!(mp1->msgid_plural != NULL - ? mp2->msgid_plural != NULL - && strcmp (mp1->msgid_plural, mp2->msgid_plural) == 0 - : mp2->msgid_plural == NULL)) + ? mp2->msgid_plural != NULL + && strcmp (mp1->msgid_plural, mp2->msgid_plural) == 0 + : mp2->msgid_plural == NULL)) return false; if (is_header (mp1) && ignore_potcdate ? !msgstr_equal_ignoring_potcdate (mp1->msgstr, mp1->msgstr_len, - mp2->msgstr, mp2->msgstr_len) + mp2->msgstr, mp2->msgstr_len) : !msgstr_equal (mp1->msgstr, mp1->msgstr_len, - mp2->msgstr, mp2->msgstr_len)) + mp2->msgstr, mp2->msgstr_len)) return false; if (!pos_equal (&mp1->pos, &mp2->pos)) @@ -180,22 +180,25 @@ if (mp1->is_format[i] != mp2->is_format[i]) return false; + if (!(mp1->range.min == mp2->range.min && mp1->range.max == mp2->range.max)) + return false; + if (!(mp1->prev_msgctxt != NULL - ? mp2->prev_msgctxt != NULL - && strcmp (mp1->prev_msgctxt, mp2->prev_msgctxt) == 0 - : mp2->prev_msgctxt == NULL)) + ? mp2->prev_msgctxt != NULL + && strcmp (mp1->prev_msgctxt, mp2->prev_msgctxt) == 0 + : mp2->prev_msgctxt == NULL)) return false; if (!(mp1->prev_msgid != NULL - ? mp2->prev_msgid != NULL - && strcmp (mp1->prev_msgid, mp2->prev_msgid) == 0 - : mp2->prev_msgid == NULL)) + ? mp2->prev_msgid != NULL + && strcmp (mp1->prev_msgid, mp2->prev_msgid) == 0 + : mp2->prev_msgid == NULL)) return false; if (!(mp1->prev_msgid_plural != NULL - ? mp2->prev_msgid_plural != NULL - && strcmp (mp1->prev_msgid_plural, mp2->prev_msgid_plural) == 0 - : mp2->prev_msgid_plural == NULL)) + ? mp2->prev_msgid_plural != NULL + && strcmp (mp1->prev_msgid_plural, mp2->prev_msgid_plural) == 0 + : mp2->prev_msgid_plural == NULL)) return false; if (mp1->obsolete != mp2->obsolete) @@ -206,7 +209,7 @@ bool message_list_equal (const message_list_ty *mlp1, const message_list_ty *mlp2, - bool ignore_potcdate) + bool ignore_potcdate) { size_t i, i1, i2; @@ -222,17 +225,17 @@ static inline bool msgdomain_equal (const msgdomain_ty *mdp1, const msgdomain_ty *mdp2, - bool ignore_potcdate) + bool ignore_potcdate) { return (strcmp (mdp1->domain, mdp2->domain) == 0 - && message_list_equal (mdp1->messages, mdp2->messages, - ignore_potcdate)); + && message_list_equal (mdp1->messages, mdp2->messages, + ignore_potcdate)); } bool msgdomain_list_equal (const msgdomain_list_ty *mdlp1, - const msgdomain_list_ty *mdlp2, - bool ignore_potcdate) + const msgdomain_list_ty *mdlp2, + bool ignore_potcdate) { size_t i, i1, i2; diff -Nru gettext-0.17/gettext-tools/src/msgl-equal.h gettext-0.18.1.1/gettext-tools/src/msgl-equal.h --- gettext-0.17/gettext-tools/src/msgl-equal.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-equal.h 2010-06-06 12:49:58.000000000 +0000 @@ -30,22 +30,22 @@ extern bool string_list_equal (const string_list_ty *slp1, - const string_list_ty *slp2); + const string_list_ty *slp2); /* Test whether the written representation of two messages / message lists would be the same. */ extern bool message_equal (const message_ty *mp1, const message_ty *mp2, - bool ignore_potcdate); + bool ignore_potcdate); extern bool message_list_equal (const message_list_ty *mlp1, - const message_list_ty *mlp2, - bool ignore_potcdate); + const message_list_ty *mlp2, + bool ignore_potcdate); extern bool msgdomain_list_equal (const msgdomain_list_ty *mdlp1, - const msgdomain_list_ty *mdlp2, - bool ignore_potcdate); + const msgdomain_list_ty *mdlp2, + bool ignore_potcdate); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/msgl-fsearch.c gettext-0.18.1.1/gettext-tools/src/msgl-fsearch.c --- gettext-0.17/gettext-tools/src/msgl-fsearch.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-fsearch.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Fast fuzzy searching among messages. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -145,11 +145,11 @@ size_t mid = (lo + hi) / 2; /* lo <= mid < hi */ index_ty val = list[2 + mid]; if (val < idx) - lo = mid + 1; + lo = mid + 1; else if (val > idx) - hi = mid; + hi = mid; else - return NULL; + return NULL; } /* Now make room for one more list element. */ @@ -200,7 +200,7 @@ inside it must not be modified while the returned fuzzy index is in use. */ message_fuzzy_index_ty * message_fuzzy_index_alloc (const message_list_ty *mlp, - const char *canon_charset) + const char *canon_charset) { message_fuzzy_index_ty *findex = XMALLOC (message_fuzzy_index_ty); size_t count = mlp->nitems; @@ -218,58 +218,58 @@ message_ty *mp = mlp->item[j]; if (mp->msgstr != NULL && mp->msgstr[0] != '\0') - { - const char *str = mp->msgid; + { + const char *str = mp->msgid; - /* Let p0 < p1 < p2 < p3 < p4 walk through the string. */ - const char *p0 = str; - if (*p0 != '\0') - { - const char *p1 = p0 + findex->iterator (p0); - if (*p1 != '\0') - { - const char *p2 = p1 + findex->iterator (p1); - if (*p2 != '\0') - { - const char *p3 = p2 + findex->iterator (p2); - if (*p3 != '\0') - { - const char *p4 = p3 + findex->iterator (p3); - for (;;) - { - /* The segment from p0 to p4 is a 4-gram of - characters. Add a hash table entry that maps - it to the index j, or extend the existing - hash table entry accordingly. */ - void *found; - - if (hash_find_entry (&findex->gram4, p0, p4 - p0, - &found) == 0) - { - index_list_ty list = (index_list_ty) found; - list = addlast_index (list, j); - if (list != NULL) - hash_set_value (&findex->gram4, p0, p4 - p0, - list); - } - else - hash_insert_entry (&findex->gram4, p0, p4 - p0, - new_index (j)); - - /* Advance. */ - if (*p4 == '\0') - break; - p0 = p1; - p1 = p2; - p2 = p3; - p3 = p4; - p4 = p4 + findex->iterator (p4); - } - } - } - } - } - } + /* Let p0 < p1 < p2 < p3 < p4 walk through the string. */ + const char *p0 = str; + if (*p0 != '\0') + { + const char *p1 = p0 + findex->iterator (p0); + if (*p1 != '\0') + { + const char *p2 = p1 + findex->iterator (p1); + if (*p2 != '\0') + { + const char *p3 = p2 + findex->iterator (p2); + if (*p3 != '\0') + { + const char *p4 = p3 + findex->iterator (p3); + for (;;) + { + /* The segment from p0 to p4 is a 4-gram of + characters. Add a hash table entry that maps + it to the index j, or extend the existing + hash table entry accordingly. */ + void *found; + + if (hash_find_entry (&findex->gram4, p0, p4 - p0, + &found) == 0) + { + index_list_ty list = (index_list_ty) found; + list = addlast_index (list, j); + if (list != NULL) + hash_set_value (&findex->gram4, p0, p4 - p0, + list); + } + else + hash_insert_entry (&findex->gram4, p0, p4 - p0, + new_index (j)); + + /* Advance. */ + if (*p4 == '\0') + break; + p0 = p1; + p1 = p2; + p2 = p3; + p3 = p4; + p4 = p4 + findex->iterator (p4); + } + } + } + } + } + } } /* Shrink memory used by the hash table. */ @@ -281,16 +281,16 @@ iter = NULL; while (hash_iterate_modify (&findex->gram4, &iter, &key, &keylen, &valuep) - == 0) + == 0) { - index_list_ty list = (index_list_ty) *valuep; - index_ty length = list[IL_LENGTH]; + index_list_ty list = (index_list_ty) *valuep; + index_ty length = list[IL_LENGTH]; - if (length < list[IL_ALLOCATED]) - { - list[IL_ALLOCATED] = length; - *valuep = xrealloc (list, (2 + length) * sizeof (index_ty)); - } + if (length < list[IL_ALLOCATED]) + { + list[IL_ALLOCATED] = length; + *valuep = xrealloc (list, (2 + length) * sizeof (index_ty)); + } } } @@ -306,13 +306,13 @@ message_ty *mp = mlp->item[j]; if (mp->msgstr != NULL && mp->msgstr[0] != '\0') - { - const char *str = mp->msgid; - size_t len = strlen (str); - - if (len <= SHORT_MSG_MAX) - message_list_append (findex->short_messages[len], mp); - } + { + const char *str = mp->msgid; + size_t len = strlen (str); + + if (len <= SHORT_MSG_MAX) + message_list_append (findex->short_messages[len], mp); + } } /* Shrink memory used by the lists of short messages. */ @@ -321,12 +321,12 @@ message_list_ty *mlp = findex->short_messages[l]; if (mlp->nitems < mlp->nitems_max) - { - mlp->nitems_max = mlp->nitems; - mlp->item = - (message_ty **) - xrealloc (mlp->item, mlp->nitems_max * sizeof (message_ty *)); - } + { + mlp->nitems_max = mlp->nitems; + mlp->item = + (message_ty **) + xrealloc (mlp->item, mlp->nitems_max * sizeof (message_ty *)); + } } return findex; @@ -381,9 +381,9 @@ size_t new_max = 2 * accu->nitems2_max + 1; if (new_max < need) - new_max = need; + new_max = need; if (accu->item2 != NULL) - free (accu->item2); + free (accu->item2); accu->item2 = XNMALLOC (new_max, struct mult_index); accu->nitems2_max = new_max; } @@ -397,23 +397,23 @@ while (ptr1 < ptr1_end && ptr2 < ptr2_end) { if (ptr1->index < *ptr2) - { - *destptr = *ptr1; - ptr1++; - } + { + *destptr = *ptr1; + ptr1++; + } else if (ptr1->index > *ptr2) - { - destptr->index = *ptr2; - destptr->count = 1; - ptr2++; - } + { + destptr->index = *ptr2; + destptr->count = 1; + ptr2++; + } else /* ptr1->index == list[2 + i2] */ - { - destptr->index = ptr1->index; - destptr->count = ptr1->count + 1; - ptr1++; - ptr2++; - } + { + destptr->index = ptr1->index; + destptr->count = ptr1->count + 1; + ptr1++; + ptr2++; + } destptr++; } while (ptr1 < ptr1_end) @@ -470,7 +470,7 @@ { if (accu->nitems > 1) qsort (accu->item, accu->nitems, sizeof (struct mult_index), - mult_index_compare); + mult_index_compare); } /* Frees a list of indices with multiplicity. */ @@ -484,10 +484,21 @@ } /* Find a good match for the given msgctxt and msgid in the given fuzzy index. - The match does not need to be optimal. */ + The match does not need to be optimal. + Ignore matches for which the fuzzy_search_goal_function is < LOWER_BOUND. + LOWER_BOUND must be >= FUZZY_THRESHOLD. + If HEURISTIC is true, only the few best messages among the list - according + to a certain heuristic - are considered. If HEURISTIC is false, all + messages with a fuzzy_search_goal_function > FUZZY_THRESHOLD are considered, + like in message_list_search_fuzzy (except that in ambiguous cases where + several best matches exist, message_list_search_fuzzy chooses the one with + the smallest index whereas message_fuzzy_index_search makes a better + choice). */ message_ty * message_fuzzy_index_search (message_fuzzy_index_ty *findex, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid, + double lower_bound, + bool heuristic) { const char *str = msgid; @@ -497,78 +508,90 @@ { const char *p1 = p0 + findex->iterator (p0); if (*p1 != '\0') - { - const char *p2 = p1 + findex->iterator (p1); - if (*p2 != '\0') - { - const char *p3 = p2 + findex->iterator (p2); - if (*p3 != '\0') - { - const char *p4 = p3 + findex->iterator (p3); - struct mult_index_list accu; - - mult_index_list_init (&accu); - for (;;) - { - /* The segment from p0 to p4 is a 4-gram of - characters. Get the hash table entry containing - a list of indices, and add it to the accu. */ - void *found; - - if (hash_find_entry (&findex->gram4, p0, p4 - p0, - &found) == 0) - { - index_list_ty list = (index_list_ty) found; - mult_index_list_accumulate (&accu, list); - } - - /* Advance. */ - if (*p4 == '\0') - break; - p0 = p1; - p1 = p2; - p2 = p3; - p3 = p4; - p4 = p4 + findex->iterator (p4); - } - - /* Sort in decreasing count order. */ - mult_index_list_sort (&accu); - - /* Take the first few messages from this sorted list, and - maximize the fstrcmp() result. */ - { - size_t count; - struct mult_index *ptr; - message_ty *best_mp; - double best_weight; - - count = findex->firstfew; - if (count > accu.nitems) - count = accu.nitems; - - best_weight = FUZZY_THRESHOLD; - best_mp = NULL; - for (ptr = accu.item; count > 0; ptr++, count--) - { - message_ty *mp = findex->messages[ptr->index]; - double weight = - fuzzy_search_goal_function (mp, msgctxt, msgid); - - if (weight > best_weight) - { - best_weight = weight; - best_mp = mp; - } - } - - mult_index_list_free (&accu); - - return best_mp; - } - } - } - } + { + const char *p2 = p1 + findex->iterator (p1); + if (*p2 != '\0') + { + const char *p3 = p2 + findex->iterator (p2); + if (*p3 != '\0') + { + const char *p4 = p3 + findex->iterator (p3); + struct mult_index_list accu; + + mult_index_list_init (&accu); + for (;;) + { + /* The segment from p0 to p4 is a 4-gram of + characters. Get the hash table entry containing + a list of indices, and add it to the accu. */ + void *found; + + if (hash_find_entry (&findex->gram4, p0, p4 - p0, + &found) == 0) + { + index_list_ty list = (index_list_ty) found; + mult_index_list_accumulate (&accu, list); + } + + /* Advance. */ + if (*p4 == '\0') + break; + p0 = p1; + p1 = p2; + p2 = p3; + p3 = p4; + p4 = p4 + findex->iterator (p4); + } + + /* Sort in decreasing count order. */ + mult_index_list_sort (&accu); + + /* Iterate over this sorted list, and maximize the + fuzzy_search_goal_function() result. + If HEURISTIC is true, take only the first few messages. + If HEURISTIC is false, consider all messages - to match + the behaviour of message_list_search_fuzzy -, but process + them in the order of the sorted list. This increases + the chances that the later calls to fstrcmp_bounded() (via + fuzzy_search_goal_function()) terminate quickly, thanks + to the best_weight which will be quite high already after + the first few messages. */ + { + size_t count; + struct mult_index *ptr; + message_ty *best_mp; + double best_weight; + + count = accu.nitems; + if (heuristic) + { + if (count > findex->firstfew) + count = findex->firstfew; + } + + best_weight = lower_bound; + best_mp = NULL; + for (ptr = accu.item; count > 0; ptr++, count--) + { + message_ty *mp = findex->messages[ptr->index]; + double weight = + fuzzy_search_goal_function (mp, msgctxt, msgid, + best_weight); + + if (weight > best_weight) + { + best_weight = weight; + best_mp = mp; + } + } + + mult_index_list_free (&accu); + + return best_mp; + } + } + } + } } /* The string had less than 4 characters. */ @@ -588,24 +611,25 @@ if (!(lmax <= SHORT_MSG_MAX)) abort (); - best_weight = FUZZY_THRESHOLD; + best_weight = lower_bound; best_mp = NULL; for (l = lmin; l <= lmax; l++) { - message_list_ty *mlp = findex->short_messages[l]; - size_t j; + message_list_ty *mlp = findex->short_messages[l]; + size_t j; - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - double weight = fuzzy_search_goal_function (mp, msgctxt, msgid); - - if (weight > best_weight) - { - best_weight = weight; - best_mp = mp; - } - } + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + double weight = + fuzzy_search_goal_function (mp, msgctxt, msgid, best_weight); + + if (weight > best_weight) + { + best_weight = weight; + best_mp = mp; + } + } } return best_mp; diff -Nru gettext-0.17/gettext-tools/src/msgl-fsearch.h gettext-0.18.1.1/gettext-tools/src/msgl-fsearch.h --- gettext-0.17/gettext-tools/src/msgl-fsearch.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-fsearch.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Fast fuzzy searching among messages. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -20,6 +20,8 @@ #include "message.h" +#include + #ifdef __cplusplus extern "C" { @@ -36,13 +38,24 @@ inside it must not be modified while the returned fuzzy index is in use. */ extern message_fuzzy_index_ty * message_fuzzy_index_alloc (const message_list_ty *mlp, - const char *canon_charset); + const char *canon_charset); /* Find a good match for the given msgctxt and msgid in the given fuzzy index. - The match does not need to be optimal. */ + The match does not need to be optimal. + Ignore matches for which the fuzzy_search_goal_function is < LOWER_BOUND. + LOWER_BOUND must be >= FUZZY_THRESHOLD. + If HEURISTIC is true, only the few best messages among the list - according + to a certain heuristic - are considered. If HEURISTIC is false, all + messages with a fuzzy_search_goal_function > FUZZY_THRESHOLD are considered, + like in message_list_search_fuzzy (except that in ambiguous cases where + several best matches exist, message_list_search_fuzzy chooses the one with + the smallest index whereas message_fuzzy_index_search makes a better + choice). */ extern message_ty * message_fuzzy_index_search (message_fuzzy_index_ty *findex, - const char *msgctxt, const char *msgid); + const char *msgctxt, const char *msgid, + double lower_bound, + bool heuristic); /* Free a fuzzy index. */ extern void diff -Nru gettext-0.17/gettext-tools/src/msgl-header.c gettext-0.18.1.1/gettext-tools/src/msgl-header.c --- gettext-0.17/gettext-tools/src/msgl-header.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-header.c 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,170 @@ +/* Message list header manipulation. + Copyright (C) 2007 Free Software Foundation, Inc. + Written by Bruno Haible , 2007. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +/* Specification. */ +#include "msgl-header.h" + +#include + +#include "xalloc.h" + +#define SIZEOF(a) (sizeof(a) / sizeof(a[0])) + + +void +msgdomain_list_set_header_field (msgdomain_list_ty *mdlp, + const char *field, const char *value) +{ + /* The known fields in their usual order. */ + static const struct + { + const char *name; + size_t len; + } + known_fields[] = + { + { "Project-Id-Version:", sizeof ("Project-Id-Version:") - 1 }, + { "Report-Msgid-Bugs-To:", sizeof ("Report-Msgid-Bugs-To:") - 1 }, + { "POT-Creation-Date:", sizeof ("POT-Creation-Date:") - 1 }, + { "PO-Revision-Date:", sizeof ("PO-Revision-Date:") - 1 }, + { "Last-Translator:", sizeof ("Last-Translator:") - 1 }, + { "Language-Team:", sizeof ("Language-Team:") - 1 }, + { "Language:", sizeof ("Language:") - 1 }, + { "MIME-Version:", sizeof ("MIME-Version:") - 1 }, + { "Content-Type:", sizeof ("Content-Type:") - 1 }, + { "Content-Transfer-Encoding:", + sizeof ("Content-Transfer-Encoding:") - 1 } + }; + size_t field_len; + int field_index; + size_t k, i; + + field_len = strlen (field); + + /* Search the field in known_fields[]. */ + field_index = -1; + for (k = 0; k < SIZEOF (known_fields); k++) + if (strcmp (known_fields[k].name, field) == 0) + { + field_index = k; + break; + } + + for (i = 0; i < mdlp->nitems; i++) + { + message_list_ty *mlp = mdlp->item[i]->messages; + size_t j; + + /* Search the header entry. */ + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + message_ty *mp = mlp->item[j]; + + /* Modify the header entry. */ + const char *header = mp->msgstr; + char *new_header = + XNMALLOC (strlen (header) + 1 + + strlen (field) + 1 + strlen (value) + 1 + 1, + char); + + /* Test whether the field already occurs in the header entry. */ + const char *h; + + for (h = header; *h != '\0'; ) + { + if (strncmp (h, field, field_len) == 0) + break; + h = strchr (h, '\n'); + if (h == NULL) + break; + h++; + } + if (h != NULL && *h != '\0') + { + /* Replace the field. */ + char *p = new_header; + memcpy (p, header, h - header); + p += h - header; + p = stpcpy (p, field); + p = stpcpy (stpcpy (stpcpy (p, " "), value), "\n"); + h = strchr (h, '\n'); + if (h != NULL) + { + h++; + stpcpy (p, h); + } + } + else if (field_index < 0) + { + /* An unknown field. Append it at the end. */ + char *p = new_header; + p = stpcpy (p, header); + if (p > new_header && p[-1] != '\n') + *p++ = '\n'; + p = stpcpy (p, field); + stpcpy (stpcpy (stpcpy (p, " "), value), "\n"); + } + else + { + /* Find the appropriate position for inserting the field. */ + for (h = header; *h != '\0'; ) + { + /* Test whether h starts with a field name whose index is + > field_index. */ + for (k = field_index + 1; k < SIZEOF (known_fields); k++) + if (strncmp (h, known_fields[k].name, known_fields[k].len) + == 0) + break; + if (k < SIZEOF (known_fields)) + break; + h = strchr (h, '\n'); + if (h == NULL) + break; + h++; + } + if (h != NULL && *h != '\0') + { + /* Insert the field at position h. */ + char *p = new_header; + memcpy (p, header, h - header); + p += h - header; + p = stpcpy (p, field); + p = stpcpy (stpcpy (stpcpy (p, " "), value), "\n"); + stpcpy (p, h); + } + else + { + /* Append it at the end. */ + char *p = new_header; + p = stpcpy (p, header); + if (p > new_header && p[-1] != '\n') + *p++ = '\n'; + p = stpcpy (p, field); + stpcpy (stpcpy (stpcpy (p, " "), value), "\n"); + } + } + + mp->msgstr = new_header; + } + } +} diff -Nru gettext-0.17/gettext-tools/src/msgl-header.h gettext-0.18.1.1/gettext-tools/src/msgl-header.h --- gettext-0.17/gettext-tools/src/msgl-header.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-header.h 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,43 @@ +/* Message list header manipulation. + Copyright (C) 2007 Free Software Foundation, Inc. + Written by Bruno Haible , 2007. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _MSGL_HEADER_H +#define _MSGL_HEADER_H + +#include "message.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* Set the given field to the given value. + The FIELD name ends in a colon. + The VALUE will have a space prepended and a newline appended by this + function. */ +extern void + msgdomain_list_set_header_field (msgdomain_list_ty *mdlp, + const char *field, const char *value); + + +#ifdef __cplusplus +} +#endif + + +#endif /* _MSGL_HEADER_H */ diff -Nru gettext-0.17/gettext-tools/src/msgl-iconv.c gettext-0.18.1.1/gettext-tools/src/msgl-iconv.c --- gettext-0.17/gettext-tools/src/msgl-iconv.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-iconv.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Message list charset and locale charset handling. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -37,6 +37,7 @@ #include "message.h" #include "po-charset.h" #include "xstriconv.h" +#include "xstriconveh.h" #include "msgl-ascii.h" #include "xalloc.h" #include "xmalloca.h" @@ -61,21 +62,21 @@ if (context->to_code == po_charset_utf8) /* If a conversion to UTF-8 fails, the problem lies in the input. */ po_xerror (PO_SEVERITY_FATAL_ERROR, context->message, NULL, 0, 0, false, - xasprintf (_("%s: input is not valid in \"%s\" encoding"), - context->from_filename, context->from_code)); + xasprintf (_("%s: input is not valid in \"%s\" encoding"), + context->from_filename, context->from_code)); else po_xerror (PO_SEVERITY_FATAL_ERROR, context->message, NULL, 0, 0, false, - xasprintf (_("\ + xasprintf (_("\ %s: error while converting from \"%s\" encoding to \"%s\" encoding"), - context->from_filename, context->from_code, - context->to_code)); + context->from_filename, context->from_code, + context->to_code)); /* NOTREACHED */ abort (); } char * -convert_string (iconv_t cd, const char *string, - const struct conversion_context* context) +convert_string_directly (iconv_t cd, const char *string, + const struct conversion_context* context) { size_t len = strlen (string) + 1; char *result = NULL; @@ -84,7 +85,27 @@ if (xmem_cd_iconv (string, len, cd, &result, &resultlen) == 0) /* Verify the result has exactly one NUL byte, at the end. */ if (resultlen > 0 && result[resultlen - 1] == '\0' - && strlen (result) == resultlen - 1) + && strlen (result) == resultlen - 1) + return result; + + conversion_error (context); + /* NOTREACHED */ + return NULL; +} + +static char * +convert_string (const iconveh_t *cd, const char *string, + const struct conversion_context* context) +{ + size_t len = strlen (string) + 1; + char *result = NULL; + size_t resultlen = 0; + + if (xmem_cd_iconveh (string, len, cd, iconveh_error, NULL, + &result, &resultlen) == 0) + /* Verify the result has exactly one NUL byte, at the end. */ + if (resultlen > 0 && result[resultlen - 1] == '\0' + && strlen (result) == resultlen - 1) return result; conversion_error (context); @@ -93,8 +114,8 @@ } static void -convert_string_list (iconv_t cd, string_list_ty *slp, - const struct conversion_context* context) +convert_string_list (const iconveh_t *cd, string_list_ty *slp, + const struct conversion_context* context) { size_t i; @@ -104,8 +125,8 @@ } static void -convert_prev_msgid (iconv_t cd, message_ty *mp, - const struct conversion_context* context) +convert_prev_msgid (const iconveh_t *cd, message_ty *mp, + const struct conversion_context* context) { if (mp->prev_msgctxt != NULL) mp->prev_msgctxt = convert_string (cd, mp->prev_msgctxt, context); @@ -116,8 +137,8 @@ } static void -convert_msgid (iconv_t cd, message_ty *mp, - const struct conversion_context* context) +convert_msgid (const iconveh_t *cd, message_ty *mp, + const struct conversion_context* context) { if (mp->msgctxt != NULL) mp->msgctxt = convert_string (cd, mp->msgctxt, context); @@ -127,8 +148,8 @@ } static void -convert_msgstr (iconv_t cd, message_ty *mp, - const struct conversion_context* context) +convert_msgstr (const iconveh_t *cd, message_ty *mp, + const struct conversion_context* context) { char *result = NULL; size_t resultlen = 0; @@ -136,29 +157,30 @@ if (!(mp->msgstr_len > 0 && mp->msgstr[mp->msgstr_len - 1] == '\0')) abort (); - if (xmem_cd_iconv (mp->msgstr, mp->msgstr_len, cd, &result, &resultlen) == 0) + if (xmem_cd_iconveh (mp->msgstr, mp->msgstr_len, cd, iconveh_error, NULL, + &result, &resultlen) == 0) /* Verify the result has a NUL byte at the end. */ if (resultlen > 0 && result[resultlen - 1] == '\0') /* Verify the result has the same number of NUL bytes. */ { - const char *p; - const char *pend; - int nulcount1; - int nulcount2; - - for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; - p < pend; - p += strlen (p) + 1, nulcount1++); - for (p = result, pend = p + resultlen, nulcount2 = 0; - p < pend; - p += strlen (p) + 1, nulcount2++); - - if (nulcount1 == nulcount2) - { - mp->msgstr = result; - mp->msgstr_len = resultlen; - return; - } + const char *p; + const char *pend; + int nulcount1; + int nulcount2; + + for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; + p < pend; + p += strlen (p) + 1, nulcount1++); + for (p = result, pend = p + resultlen, nulcount2 = 0; + p < pend; + p += strlen (p) + 1, nulcount2++); + + if (nulcount1 == nulcount2) + { + mp->msgstr = result; + mp->msgstr_len = resultlen; + return; + } } conversion_error (context); @@ -169,10 +191,10 @@ static bool iconv_message_list_internal (message_list_ty *mlp, - const char *canon_from_code, - const char *canon_to_code, - bool update_header, - const char *from_filename) + const char *canon_from_code, + const char *canon_to_code, + bool update_header, + const char *from_filename) { bool canon_from_code_overridden = (canon_from_code != NULL); bool msgids_changed; @@ -186,86 +208,86 @@ for (j = 0; j < mlp->nitems; j++) if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) { - const char *header = mlp->item[j]->msgstr; + const char *header = mlp->item[j]->msgstr; - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - char *charset; - const char *canon_charset; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - canon_charset = po_charset_canonicalize (charset); - if (canon_charset == NULL) - { - if (!canon_from_code_overridden) - { - /* Don't give an error for POT files, because POT - files usually contain only ASCII msgids. */ - const char *filename = from_filename; - size_t filenamelen; - - if (filename != NULL - && (filenamelen = strlen (filename)) >= 4 - && memcmp (filename + filenamelen - 4, ".pot", 4) - == 0 - && strcmp (charset, "CHARSET") == 0) - canon_charset = po_charset_ascii; - else - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, - false, xasprintf (_("\ + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + char *charset; + const char *canon_charset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + canon_charset = po_charset_canonicalize (charset); + if (canon_charset == NULL) + { + if (!canon_from_code_overridden) + { + /* Don't give an error for POT files, because POT + files usually contain only ASCII msgids. */ + const char *filename = from_filename; + size_t filenamelen; + + if (filename != NULL + && (filenamelen = strlen (filename)) >= 4 + && memcmp (filename + filenamelen - 4, ".pot", 4) + == 0 + && strcmp (charset, "CHARSET") == 0) + canon_charset = po_charset_ascii; + else + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, + false, xasprintf (_("\ present charset \"%s\" is not a portable encoding name"), - charset)); - } - } - else - { - if (canon_from_code == NULL) - canon_from_code = canon_charset; - else if (canon_from_code != canon_charset) - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, - false, - xasprintf (_("\ + charset)); + } + } + else + { + if (canon_from_code == NULL) + canon_from_code = canon_charset; + else if (canon_from_code != canon_charset) + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, + false, + xasprintf (_("\ two different charsets \"%s\" and \"%s\" in input file"), - canon_from_code, canon_charset)); - } - freea (charset); - - if (update_header) - { - size_t len1, len2, len3; - char *new_header; - - len1 = charsetstr - header; - len2 = strlen (canon_to_code); - len3 = (header + strlen (header)) - (charsetstr + len); - new_header = XNMALLOC (len1 + len2 + len3 + 1, char); - memcpy (new_header, header, len1); - memcpy (new_header + len1, canon_to_code, len2); - memcpy (new_header + len1 + len2, charsetstr + len, - len3 + 1); - mlp->item[j]->msgstr = new_header; - mlp->item[j]->msgstr_len = len1 + len2 + len3 + 1; - } - } - } + canon_from_code, canon_charset)); + } + freea (charset); + + if (update_header) + { + size_t len1, len2, len3; + char *new_header; + + len1 = charsetstr - header; + len2 = strlen (canon_to_code); + len3 = (header + strlen (header)) - (charsetstr + len); + new_header = XNMALLOC (len1 + len2 + len3 + 1, char); + memcpy (new_header, header, len1); + memcpy (new_header + len1, canon_to_code, len2); + memcpy (new_header + len1 + len2, charsetstr + len, + len3 + 1); + mlp->item[j]->msgstr = new_header; + mlp->item[j]->msgstr_len = len1 + len2 + len3 + 1; + } + } + } } if (canon_from_code == NULL) { if (is_ascii_message_list (mlp)) - canon_from_code = po_charset_ascii; + canon_from_code = po_charset_ascii; else - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - _("\ + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + _("\ input file doesn't contain a header entry with a charset specification")); } @@ -275,59 +297,52 @@ if (canon_from_code != canon_to_code) { #if HAVE_ICONV - iconv_t cd; + iconveh_t cd; struct conversion_context context; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (strcmp (canon_from_code, "EUC-KR") == 0) - cd = (iconv_t)(-1); - else -# endif - cd = iconv_open (canon_to_code, canon_from_code); - if (cd == (iconv_t)(-1)) - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf (_("\ + if (iconveh_open (canon_to_code, canon_from_code, &cd) < 0) + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf (_("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \ and iconv() does not support this conversion."), - canon_from_code, canon_to_code, - basename (program_name))); + canon_from_code, canon_to_code, + basename (program_name))); context.from_code = canon_from_code; context.to_code = canon_to_code; context.from_filename = from_filename; for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - if ((mp->msgctxt != NULL && !is_ascii_string (mp->msgctxt)) - || !is_ascii_string (mp->msgid)) - msgids_changed = true; - context.message = mp; - convert_string_list (cd, mp->comment, &context); - convert_string_list (cd, mp->comment_dot, &context); - convert_prev_msgid (cd, mp, &context); - convert_msgid (cd, mp, &context); - convert_msgstr (cd, mp, &context); - } + if ((mp->msgctxt != NULL && !is_ascii_string (mp->msgctxt)) + || !is_ascii_string (mp->msgid)) + msgids_changed = true; + context.message = mp; + convert_string_list (&cd, mp->comment, &context); + convert_string_list (&cd, mp->comment_dot, &context); + convert_prev_msgid (&cd, mp, &context); + convert_msgid (&cd, mp, &context); + convert_msgstr (&cd, mp, &context); + } - iconv_close (cd); + iconveh_close (&cd); if (msgids_changed) - if (message_list_msgids_changed (mlp)) - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf (_("\ + if (message_list_msgids_changed (mlp)) + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf (_("\ Conversion from \"%s\" to \"%s\" introduces duplicates: \ some different msgids become equal."), - canon_from_code, canon_to_code)); + canon_from_code, canon_to_code)); #else - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf (_("\ + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf (_("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \ This version was built without iconv()."), - canon_from_code, canon_to_code, - basename (program_name))); + canon_from_code, canon_to_code, + basename (program_name))); #endif } @@ -336,19 +351,19 @@ bool iconv_message_list (message_list_ty *mlp, - const char *canon_from_code, const char *canon_to_code, - const char *from_filename) + const char *canon_from_code, const char *canon_to_code, + const char *from_filename) { return iconv_message_list_internal (mlp, - canon_from_code, canon_to_code, true, - from_filename); + canon_from_code, canon_to_code, true, + from_filename); } msgdomain_list_ty * iconv_msgdomain_list (msgdomain_list_ty *mdlp, - const char *to_code, - bool update_header, - const char *from_filename) + const char *to_code, + bool update_header, + const char *from_filename) { const char *canon_to_code; size_t k; @@ -357,14 +372,14 @@ canon_to_code = po_charset_canonicalize (to_code); if (canon_to_code == NULL) po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf (_("\ + xasprintf (_("\ target charset \"%s\" is not a portable encoding name."), - to_code)); + to_code)); for (k = 0; k < mdlp->nitems; k++) iconv_message_list_internal (mdlp->item[k]->messages, - mdlp->encoding, canon_to_code, update_header, - from_filename); + mdlp->encoding, canon_to_code, update_header, + from_filename); mdlp->encoding = canon_to_code; return mdlp; @@ -373,17 +388,18 @@ #if HAVE_ICONV static bool -iconvable_string (iconv_t cd, const char *string) +iconvable_string (const iconveh_t *cd, const char *string) { size_t len = strlen (string) + 1; char *result = NULL; size_t resultlen = 0; - if (xmem_cd_iconv (string, len, cd, &result, &resultlen) == 0) + if (xmem_cd_iconveh (string, len, cd, iconveh_error, NULL, + &result, &resultlen) == 0) { /* Test if the result has exactly one NUL byte, at the end. */ bool ok = (resultlen > 0 && result[resultlen - 1] == '\0' - && strlen (result) == resultlen - 1); + && strlen (result) == resultlen - 1); free (result); return ok; } @@ -391,19 +407,19 @@ } static bool -iconvable_string_list (iconv_t cd, string_list_ty *slp) +iconvable_string_list (const iconveh_t *cd, string_list_ty *slp) { size_t i; if (slp != NULL) for (i = 0; i < slp->nitems; i++) if (!iconvable_string (cd, slp->item[i])) - return false; + return false; return true; } static bool -iconvable_prev_msgid (iconv_t cd, message_ty *mp) +iconvable_prev_msgid (const iconveh_t *cd, message_ty *mp) { if (mp->prev_msgctxt != NULL) if (!iconvable_string (cd, mp->prev_msgctxt)) @@ -411,14 +427,14 @@ if (mp->prev_msgid != NULL) if (!iconvable_string (cd, mp->prev_msgid)) return false; - if (mp->msgid_plural != NULL) + if (mp->prev_msgid_plural != NULL) if (!iconvable_string (cd, mp->prev_msgid_plural)) return false; return true; } static bool -iconvable_msgid (iconv_t cd, message_ty *mp) +iconvable_msgid (const iconveh_t *cd, message_ty *mp) { if (mp->msgctxt != NULL) if (!iconvable_string (cd, mp->msgctxt)) @@ -432,7 +448,7 @@ } static bool -iconvable_msgstr (iconv_t cd, message_ty *mp) +iconvable_msgstr (const iconveh_t *cd, message_ty *mp) { char *result = NULL; size_t resultlen = 0; @@ -440,29 +456,30 @@ if (!(mp->msgstr_len > 0 && mp->msgstr[mp->msgstr_len - 1] == '\0')) abort (); - if (xmem_cd_iconv (mp->msgstr, mp->msgstr_len, cd, &result, &resultlen) == 0) + if (xmem_cd_iconveh (mp->msgstr, mp->msgstr_len, cd, iconveh_error, NULL, + &result, &resultlen) == 0) { bool ok = false; /* Test if the result has a NUL byte at the end. */ if (resultlen > 0 && result[resultlen - 1] == '\0') - /* Test if the result has the same number of NUL bytes. */ - { - const char *p; - const char *pend; - int nulcount1; - int nulcount2; - - for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; - p < pend; - p += strlen (p) + 1, nulcount1++); - for (p = result, pend = p + resultlen, nulcount2 = 0; - p < pend; - p += strlen (p) + 1, nulcount2++); - - if (nulcount1 == nulcount2) - ok = true; - } + /* Test if the result has the same number of NUL bytes. */ + { + const char *p; + const char *pend; + int nulcount1; + int nulcount2; + + for (p = mp->msgstr, pend = p + mp->msgstr_len, nulcount1 = 0; + p < pend; + p += strlen (p) + 1, nulcount1++); + for (p = result, pend = p + resultlen, nulcount2 = 0; + p < pend; + p += strlen (p) + 1, nulcount2++); + + if (nulcount1 == nulcount2) + ok = true; + } free (result); return ok; @@ -474,8 +491,8 @@ bool is_message_list_iconvable (message_list_ty *mlp, - const char *canon_from_code, - const char *canon_to_code) + const char *canon_from_code, + const char *canon_to_code) { bool canon_from_code_overridden = (canon_from_code != NULL); size_t j; @@ -488,95 +505,88 @@ for (j = 0; j < mlp->nitems; j++) if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) { - const char *header = mlp->item[j]->msgstr; + const char *header = mlp->item[j]->msgstr; - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - char *charset; - const char *canon_charset; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - canon_charset = po_charset_canonicalize (charset); - if (canon_charset == NULL) - { - if (!canon_from_code_overridden) - { - /* Don't give an error for POT files, because POT - files usually contain only ASCII msgids. */ - if (strcmp (charset, "CHARSET") == 0) - canon_charset = po_charset_ascii; - else - { - /* charset is not a portable encoding name. */ - freea (charset); - return false; - } - } - } - else - { - if (canon_from_code == NULL) - canon_from_code = canon_charset; - else if (canon_from_code != canon_charset) - { - /* Two different charsets in input file. */ - freea (charset); - return false; - } - } - freea (charset); - } - } + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + char *charset; + const char *canon_charset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + canon_charset = po_charset_canonicalize (charset); + if (canon_charset == NULL) + { + if (!canon_from_code_overridden) + { + /* Don't give an error for POT files, because POT + files usually contain only ASCII msgids. */ + if (strcmp (charset, "CHARSET") == 0) + canon_charset = po_charset_ascii; + else + { + /* charset is not a portable encoding name. */ + freea (charset); + return false; + } + } + } + else + { + if (canon_from_code == NULL) + canon_from_code = canon_charset; + else if (canon_from_code != canon_charset) + { + /* Two different charsets in input file. */ + freea (charset); + return false; + } + } + freea (charset); + } + } } if (canon_from_code == NULL) { if (is_ascii_message_list (mlp)) - canon_from_code = po_charset_ascii; + canon_from_code = po_charset_ascii; else - /* Input file lacks a header entry with a charset specification. */ - return false; + /* Input file lacks a header entry with a charset specification. */ + return false; } /* If the two encodings are the same, nothing to check. */ if (canon_from_code != canon_to_code) { #if HAVE_ICONV - iconv_t cd; + iconveh_t cd; - /* Avoid glibc-2.1 bug with EUC-KR. */ -# if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (strcmp (canon_from_code, "EUC-KR") == 0) - cd = (iconv_t)(-1); - else -# endif - cd = iconv_open (canon_to_code, canon_from_code); - if (cd == (iconv_t)(-1)) - /* iconv() doesn't support this conversion. */ - return false; + if (iconveh_open (canon_to_code, canon_from_code, &cd) < 0) + /* iconv() doesn't support this conversion. */ + return false; for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - if (!(iconvable_string_list (cd, mp->comment) - && iconvable_string_list (cd, mp->comment_dot) - && iconvable_prev_msgid (cd, mp) - && iconvable_msgid (cd, mp) - && iconvable_msgstr (cd, mp))) - return false; - } + if (!(iconvable_string_list (&cd, mp->comment) + && iconvable_string_list (&cd, mp->comment_dot) + && iconvable_prev_msgid (&cd, mp) + && iconvable_msgid (&cd, mp) + && iconvable_msgstr (&cd, mp))) + return false; + } - iconv_close (cd); + iconveh_close (&cd); #else /* This version was built without iconv(). */ return false; diff -Nru gettext-0.17/gettext-tools/src/msgl-iconv.h gettext-0.18.1.1/gettext-tools/src/msgl-iconv.h --- gettext-0.17/gettext-tools/src/msgl-iconv.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgl-iconv.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Message list character set conversion. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2006, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -42,9 +42,10 @@ const message_ty *message; /* message being converted, or NULL */ }; -/* Converts the STRING through the conversion descriptor CD. */ -extern char *convert_string (iconv_t cd, const char *string, - const struct conversion_context* context); +/* Converts the STRING through the conversion descriptor CD. + Assumes that either FROM_CODE or TO_CODE is UTF-8. */ +extern char *convert_string_directly (iconv_t cd, const char *string, + const struct conversion_context* context); #endif @@ -55,18 +56,18 @@ some msgctxt or msgid changed due to the conversion. */ extern bool iconv_message_list (message_list_ty *mlp, - const char *canon_from_code, - const char *canon_to_code, - const char *from_filename); + const char *canon_from_code, + const char *canon_to_code, + const char *from_filename); /* Converts all the message lists in MDLP to the encoding TO_CODE. UPDATE_HEADER specifies whether to update the "charset=..." specification in the header; it should normally be true. */ extern msgdomain_list_ty * iconv_msgdomain_list (msgdomain_list_ty *mdlp, - const char *to_code, - bool update_header, - const char *from_filename); + const char *to_code, + bool update_header, + const char *from_filename); /* Tests whether the message list MLP could be converted to CANON_TO_CODE. The (already canonicalized) encoding before conversion can be passed as @@ -74,8 +75,8 @@ in the header entry. */ extern bool is_message_list_iconvable (message_list_ty *mlp, - const char *canon_from_code, - const char *canon_to_code); + const char *canon_from_code, + const char *canon_to_code); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/msgmerge.c gettext-0.18.1.1/gettext-tools/src/msgmerge.c --- gettext-0.17/gettext-tools/src/msgmerge.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgmerge.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. This file was written by Peter Miller This program is free software: you can redistribute it and/or modify @@ -44,6 +44,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "format.h" #include "xalloc.h" #include "xmalloca.h" @@ -54,7 +55,8 @@ #include "msgl-iconv.h" #include "msgl-equal.h" #include "msgl-fsearch.h" -#include "lock.h" +#include "glthread/lock.h" +#include "lang-table.h" #include "plural-exp.h" #include "plural-count.h" #include "msgl-check.h" @@ -88,6 +90,9 @@ /* Determines whether to keep old msgids as previous msgids. */ static bool keep_previous = false; +/* Language (ISO-639 code) and optional territory (ISO-3166 code). */ +static const char *catalogname = NULL; + /* List of user-specified compendiums. */ static message_list_list_ty *compendiums; @@ -104,12 +109,14 @@ { { "add-location", no_argument, &line_comment, 1 }, { "backup", required_argument, NULL, CHAR_MAX + 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 9 }, { "compendium", required_argument, NULL, 'C', }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, { "help", no_argument, NULL, 'h' }, { "indent", no_argument, NULL, 'i' }, + { "lang", required_argument, NULL, CHAR_MAX + 8 }, { "multi-domain", no_argument, NULL, 'm' }, { "no-escape", no_argument, NULL, 'e' }, { "no-fuzzy-matching", no_argument, NULL, 'N' }, @@ -126,6 +133,7 @@ { "strict", no_argument, NULL, CHAR_MAX + 2 }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 5 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 6 }, + { "style", required_argument, NULL, CHAR_MAX + 10 }, { "suffix", required_argument, NULL, CHAR_MAX + 3 }, { "update", no_argument, NULL, 'U' }, { "verbose", no_argument, NULL, 'v' }, @@ -147,14 +155,14 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void compendium (const char *filename); static void msgdomain_list_stablesort_by_obsolete (msgdomain_list_ty *mdlp); static msgdomain_list_ty *merge (const char *fn1, const char *fn2, - catalog_input_format_ty input_syntax, - msgdomain_list_ty **defp); + catalog_input_format_ty input_syntax, + msgdomain_list_ty **defp); int @@ -197,122 +205,135 @@ output_file = NULL; while ((opt = getopt_long (argc, argv, "C:D:eEFhimNo:pPqsUvVw:", - long_options, NULL)) - != EOF) + long_options, NULL)) + != EOF) switch (opt) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'C': - compendium (optarg); - break; + compendium (optarg); + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'm': - multi_domain_mode = true; - break; + multi_domain_mode = true; + break; case 'N': - use_fuzzy_matching = false; - break; + use_fuzzy_matching = false; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 'q': - quiet = true; - break; + quiet = true; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'U': - update_mode = true; - break; + update_mode = true; + break; case 'v': - ++verbosity_level; - break; + ++verbosity_level; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: /* --backup */ - version_control_string = optarg; - break; + version_control_string = optarg; + break; case CHAR_MAX + 2: /* --strict */ - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case CHAR_MAX + 3: /* --suffix */ - backup_suffix_string = optarg; - break; + backup_suffix_string = optarg; + break; case CHAR_MAX + 4: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 5: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 6: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; case CHAR_MAX + 7: /* --previous */ - keep_previous = true; - break; + keep_previous = true; + break; + + case CHAR_MAX + 8: /* --lang */ + catalogname = optarg; + break; + + case CHAR_MAX + 9: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 10: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -325,7 +346,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Peter Miller")); exit (EXIT_SUCCESS); } @@ -350,34 +371,34 @@ if (update_mode) { if (output_file != NULL) - { - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--update", "--output-file"); - } + { + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + "--update", "--output-file"); + } } else { if (version_control_string != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s"), - "--backup", "--update"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s"), + "--backup", "--update"); + usage (EXIT_FAILURE); + } if (backup_suffix_string != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s"), - "--suffix", "--update"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s"), + "--suffix", "--update"); + usage (EXIT_FAILURE); + } } if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* In update mode, --properties-input implies --properties-output. */ if (update_mode && input_syntax == &input_format_properties) @@ -398,49 +419,49 @@ if (update_mode) { /* Before comparing result with def, sort the result into the same order - as would be done implicitly by output_syntax->print. */ + as would be done implicitly by output_syntax->print. */ if (output_syntax->sorts_obsoletes_to_end) - msgdomain_list_stablesort_by_obsolete (result); + msgdomain_list_stablesort_by_obsolete (result); /* Do nothing if the original file and the result are equal. Also do - nothing if the original file and the result differ only by the - POT-Creation-Date in the header entry; this is needed for projects - which don't put the .pot file under CVS. */ + nothing if the original file and the result differ only by the + POT-Creation-Date in the header entry; this is needed for projects + which don't put the .pot file under CVS. */ if (!msgdomain_list_equal (def, result, true)) - { - /* Back up def.po. */ - enum backup_type backup_type; - char *backup_file; - - output_file = argv[optind]; - - if (backup_suffix_string == NULL) - { - backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX"); - if (backup_suffix_string != NULL - && backup_suffix_string[0] == '\0') - backup_suffix_string = NULL; - } - if (backup_suffix_string != NULL) - simple_backup_suffix = backup_suffix_string; - - backup_type = xget_version (_("backup type"), version_control_string); - if (backup_type != none) - { - backup_file = find_backup_file_name (output_file, backup_type); - copy_file_preserving (output_file, backup_file); - } - - /* Write the merged message list out. */ - msgdomain_list_print (result, output_file, output_syntax, true, - false); - } + { + /* Back up def.po. */ + enum backup_type backup_type; + char *backup_file; + + output_file = argv[optind]; + + if (backup_suffix_string == NULL) + { + backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX"); + if (backup_suffix_string != NULL + && backup_suffix_string[0] == '\0') + backup_suffix_string = NULL; + } + if (backup_suffix_string != NULL) + simple_backup_suffix = backup_suffix_string; + + backup_type = xget_version (_("backup type"), version_control_string); + if (backup_type != none) + { + backup_file = find_backup_file_name (output_file, backup_type); + copy_file_preserving (output_file, backup_file); + } + + /* Write the merged message list out. */ + msgdomain_list_print (result, output_file, output_syntax, true, + false); + } } else { /* Write the merged message list out. */ msgdomain_list_print (result, output_file, output_syntax, force_po, - false); + false); } exit (EXIT_SUCCESS); @@ -453,7 +474,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -542,6 +563,14 @@ printf (_("\ Output details:\n")); printf (_("\ + --lang=CATALOGNAME set 'Language' field in the header entry\n")); + printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -585,7 +614,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -624,34 +653,34 @@ /* Sort obsolete messages to the end. */ if (mlp->nitems > 0) - { - message_ty **l1 = XNMALLOC (mlp->nitems, message_ty *); - size_t n1; - message_ty **l2 = XNMALLOC (mlp->nitems, message_ty *); - size_t n2; - size_t j; - - /* Sort the non-obsolete messages into l1 and the obsolete messages - into l2. */ - n1 = 0; - n2 = 0; - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - - if (mp->obsolete) - l2[n2++] = mp; - else - l1[n1++] = mp; - } - if (n1 > 0 && n2 > 0) - { - memcpy (mlp->item, l1, n1 * sizeof (message_ty *)); - memcpy (mlp->item + n1, l2, n2 * sizeof (message_ty *)); - } - free (l2); - free (l1); - } + { + message_ty **l1 = XNMALLOC (mlp->nitems, message_ty *); + size_t n1; + message_ty **l2 = XNMALLOC (mlp->nitems, message_ty *); + size_t n2; + size_t j; + + /* Sort the non-obsolete messages into l1 and the obsolete messages + into l2. */ + n1 = 0; + n2 = 0; + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + + if (mp->obsolete) + l2[n2++] = mp; + else + l1[n1++] = mp; + } + if (n1 > 0 && n2 > 0) + { + memcpy (mlp->item, l1, n1 * sizeof (message_ty *)); + memcpy (mlp->item + n1, l2, n2 * sizeof (message_ty *)); + } + free (l2); + free (l1); + } } } @@ -668,13 +697,23 @@ from the compendiums. Each message list has a built-in hash table, for speed when doing the exact searches. */ message_list_list_ty *lists; + + /* A fuzzy index of the current list of non-compendium messages, for speed + when doing fuzzy searches. Used only if use_fuzzy_matching is true. */ + message_fuzzy_index_ty *curr_findex; + /* A once-only execution guard for the initialization of the fuzzy index. + Needed for OpenMP. */ + gl_lock_define(, curr_findex_init_lock) + /* A fuzzy index of the compendiums, for speed when doing fuzzy searches. Used only if use_fuzzy_matching is true and compendiums != NULL. */ - message_fuzzy_index_ty *findex; + message_fuzzy_index_ty *comp_findex; /* A once-only execution guard for the initialization of the fuzzy index. Needed for OpenMP. */ - gl_lock_define(, findex_init_lock) - /* The canonical encoding of the compendiums. */ + gl_lock_define(, comp_findex_init_lock) + + /* The canonical encoding of the definitions and the compendiums. + Only used for fuzzy matching. */ const char *canon_charset; }; @@ -685,60 +724,81 @@ message_list_list_append (definitions->lists, NULL); if (compendiums != NULL) message_list_list_append_list (definitions->lists, compendiums); - definitions->findex = NULL; - gl_lock_init (definitions->findex_init_lock); + definitions->curr_findex = NULL; + gl_lock_init (definitions->curr_findex_init_lock); + definitions->comp_findex = NULL; + gl_lock_init (definitions->comp_findex_init_lock); definitions->canon_charset = canon_charset; } -/* Create the fuzzy index. +/* Return the current list of non-compendium messages. */ +static inline message_list_ty * +definitions_current_list (const definitions_ty *definitions) +{ + return definitions->lists->item[0]; +} + +/* Set the current list of non-compendium messages. */ +static inline void +definitions_set_current_list (definitions_ty *definitions, message_list_ty *mlp) +{ + definitions->lists->item[0] = mlp; + if (definitions->curr_findex != NULL) + { + message_fuzzy_index_free (definitions->curr_findex); + definitions->curr_findex = NULL; + } +} + +/* Create the fuzzy index for the current list of non-compendium messages. + Used only if use_fuzzy_matching is true. */ +static inline void +definitions_init_curr_findex (definitions_ty *definitions) +{ + /* Protect against concurrent execution. */ + gl_lock_lock (definitions->curr_findex_init_lock); + if (definitions->curr_findex == NULL) + definitions->curr_findex = + message_fuzzy_index_alloc (definitions_current_list (definitions), + definitions->canon_charset); + gl_lock_unlock (definitions->curr_findex_init_lock); +} + +/* Create the fuzzy index for the compendium messages. Used only if use_fuzzy_matching is true and compendiums != NULL. */ static inline void -definitions_init_findex (definitions_ty *definitions) +definitions_init_comp_findex (definitions_ty *definitions) { /* Protect against concurrent execution. */ - gl_lock_lock (definitions->findex_init_lock); - if (definitions->findex == NULL) + gl_lock_lock (definitions->comp_findex_init_lock); + if (definitions->comp_findex == NULL) { /* Combine all the compendium message lists into a single one. Don't - bother checking for duplicates. */ + bother checking for duplicates. */ message_list_ty *all_compendium; size_t i; all_compendium = message_list_alloc (false); for (i = 0; i < compendiums->nitems; i++) - { - message_list_ty *mlp = compendiums->item[i]; - size_t j; - - for (j = 0; j < mlp->nitems; j++) - message_list_append (all_compendium, mlp->item[j]); - } + { + message_list_ty *mlp = compendiums->item[i]; + size_t j; + + for (j = 0; j < mlp->nitems; j++) + message_list_append (all_compendium, mlp->item[j]); + } /* Create the fuzzy index from it. */ - definitions->findex = - message_fuzzy_index_alloc (all_compendium, definitions->canon_charset); + definitions->comp_findex = + message_fuzzy_index_alloc (all_compendium, definitions->canon_charset); } - gl_lock_unlock (definitions->findex_init_lock); -} - -/* Return the current list of non-compendium messages. */ -static inline message_list_ty * -definitions_current_list (const definitions_ty *definitions) -{ - return definitions->lists->item[0]; -} - -/* Set the current list of non-compendium messages. */ -static inline void -definitions_set_current_list (definitions_ty *definitions, message_list_ty *mlp) -{ - definitions->lists->item[0] = mlp; + gl_lock_unlock (definitions->comp_findex_init_lock); } /* Exact search. */ static inline message_ty * definitions_search (const definitions_ty *definitions, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { return message_list_list_search (definitions->lists, msgctxt, msgid); } @@ -747,27 +807,57 @@ Used only if use_fuzzy_matching is true. */ static inline message_ty * definitions_search_fuzzy (definitions_ty *definitions, - const char *msgctxt, const char *msgid) + const char *msgctxt, const char *msgid) { - message_ty *mp1 = - message_list_search_fuzzy (definitions_current_list (definitions), - msgctxt, msgid); + message_ty *mp1; + + if (false) + { + /* Old, slow code. */ + mp1 = + message_list_search_fuzzy (definitions_current_list (definitions), + msgctxt, msgid); + } + else + { + /* Speedup through early abort in fstrcmp(), combined with pre-sorting + of the messages through a hashed index. */ + /* Create the fuzzy index lazily. */ + if (definitions->curr_findex == NULL) + definitions_init_curr_findex (definitions); + mp1 = message_fuzzy_index_search (definitions->curr_findex, + msgctxt, msgid, + FUZZY_THRESHOLD, false); + } + if (compendiums != NULL) { + double lower_bound_for_mp2; message_ty *mp2; + lower_bound_for_mp2 = + (mp1 != NULL + ? fuzzy_search_goal_function (mp1, msgctxt, msgid, 0.0) + : FUZZY_THRESHOLD); + /* This lower bound must be >= FUZZY_THRESHOLD. */ + if (!(lower_bound_for_mp2 >= FUZZY_THRESHOLD)) + abort (); + /* Create the fuzzy index lazily. */ - if (definitions->findex == NULL) - definitions_init_findex (definitions); + if (definitions->comp_findex == NULL) + definitions_init_comp_findex (definitions); - mp2 = message_fuzzy_index_search (definitions->findex, msgctxt, msgid); + mp2 = message_fuzzy_index_search (definitions->comp_findex, + msgctxt, msgid, + lower_bound_for_mp2, true); /* Choose the best among mp1, mp2. */ if (mp1 == NULL - || (mp2 != NULL - && (fuzzy_search_goal_function (mp2, msgctxt, msgid) - > fuzzy_search_goal_function (mp1, msgctxt, msgid)))) - mp1 = mp2; + || (mp2 != NULL + && (fuzzy_search_goal_function (mp2, msgctxt, msgid, + lower_bound_for_mp2) + > lower_bound_for_mp2))) + mp1 = mp2; } return mp1; @@ -777,8 +867,10 @@ definitions_destroy (definitions_ty *definitions) { message_list_list_free (definitions->lists, 2); - if (definitions->findex != NULL) - message_fuzzy_index_free (definitions->findex); + if (definitions->curr_findex != NULL) + message_fuzzy_index_free (definitions->curr_findex); + if (definitions->comp_findex != NULL) + message_fuzzy_index_free (definitions->comp_findex); } @@ -796,17 +888,16 @@ /* Another silent error logger. */ static void silent_xerror (int severity, - const struct message_ty *message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text) + const struct message_ty *message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text) { } static message_ty * message_merge (message_ty *def, message_ty *ref, bool force_fuzzy, - const unsigned char *plural_distribution, - unsigned long plural_distribution_length) + const struct plural_distribution *distribution) { const char *msgstr; size_t msgstr_len; @@ -829,35 +920,37 @@ /* Oh, oh. The header entry and we have something to fill in. */ static const struct { - const char *name; - size_t len; + const char *name; + size_t len; } known_fields[] = { - { "Project-Id-Version:", sizeof ("Project-Id-Version:") - 1 }, -#define PROJECT_ID 0 - { "Report-Msgid-Bugs-To:", sizeof ("Report-Msgid-Bugs-To:") - 1 }, -#define REPORT_MSGID_BUGS_TO 1 - { "POT-Creation-Date:", sizeof ("POT-Creation-Date:") - 1 }, -#define POT_CREATION_DATE 2 - { "PO-Revision-Date:", sizeof ("PO-Revision-Date:") - 1 }, -#define PO_REVISION_DATE 3 - { "Last-Translator:", sizeof ("Last-Translator:") - 1 }, -#define LAST_TRANSLATOR 4 - { "Language-Team:", sizeof ("Language-Team:") - 1 }, -#define LANGUAGE_TEAM 5 - { "MIME-Version:", sizeof ("MIME-Version:") - 1 }, -#define MIME_VERSION 6 - { "Content-Type:", sizeof ("Content-Type:") - 1 }, -#define CONTENT_TYPE 7 - { "Content-Transfer-Encoding:", - sizeof ("Content-Transfer-Encoding:") - 1 } -#define CONTENT_TRANSFER 8 + { "Project-Id-Version:", sizeof ("Project-Id-Version:") - 1 }, +#define PROJECT_ID 0 + { "Report-Msgid-Bugs-To:", sizeof ("Report-Msgid-Bugs-To:") - 1 }, +#define REPORT_MSGID_BUGS_TO 1 + { "POT-Creation-Date:", sizeof ("POT-Creation-Date:") - 1 }, +#define POT_CREATION_DATE 2 + { "PO-Revision-Date:", sizeof ("PO-Revision-Date:") - 1 }, +#define PO_REVISION_DATE 3 + { "Last-Translator:", sizeof ("Last-Translator:") - 1 }, +#define LAST_TRANSLATOR 4 + { "Language-Team:", sizeof ("Language-Team:") - 1 }, +#define LANGUAGE_TEAM 5 + { "Language:", sizeof ("Language:") - 1 }, +#define LANGUAGE 6 + { "MIME-Version:", sizeof ("MIME-Version:") - 1 }, +#define MIME_VERSION 7 + { "Content-Type:", sizeof ("Content-Type:") - 1 }, +#define CONTENT_TYPE 8 + { "Content-Transfer-Encoding:", + sizeof ("Content-Transfer-Encoding:") - 1 } +#define CONTENT_TRANSFER 9 }; -#define UNKNOWN 9 +#define UNKNOWN 10 struct { - const char *string; - size_t len; + const char *string; + size_t len; } header_fields[UNKNOWN + 1]; struct obstack pool; const char *cp; @@ -872,133 +965,239 @@ cp = def->msgstr; while (*cp != '\0') - { - const char *endp = strchr (cp, '\n'); - int terminated = endp != NULL; - - if (!terminated) - { - /* Add a trailing newline. */ - char *copy; - endp = strchr (cp, '\0'); - - len = endp - cp + 1; - - copy = (char *) obstack_alloc (&pool, len + 1); - stpcpy (stpcpy (copy, cp), "\n"); - cp = copy; - } - else - { - len = (endp - cp) + 1; - ++endp; - } - - /* Compare with any of the known fields. */ - for (cnt = 0; - cnt < sizeof (known_fields) / sizeof (known_fields[0]); - ++cnt) - if (c_strncasecmp (cp, known_fields[cnt].name, known_fields[cnt].len) - == 0) - break; - - if (cnt < sizeof (known_fields) / sizeof (known_fields[0])) - { - header_fields[cnt].string = &cp[known_fields[cnt].len]; - header_fields[cnt].len = len - known_fields[cnt].len; - } - else - { - /* It's an unknown field. Append content to what is already - known. */ - char *extended = - (char *) obstack_alloc (&pool, - header_fields[UNKNOWN].len + len + 1); - memcpy (extended, header_fields[UNKNOWN].string, - header_fields[UNKNOWN].len); - memcpy (&extended[header_fields[UNKNOWN].len], cp, len); - extended[header_fields[UNKNOWN].len + len] = '\0'; - header_fields[UNKNOWN].string = extended; - header_fields[UNKNOWN].len += len; - } - - cp = endp; - } + { + const char *endp = strchr (cp, '\n'); + int terminated = endp != NULL; + + if (!terminated) + { + /* Add a trailing newline. */ + char *copy; + endp = strchr (cp, '\0'); + + len = endp - cp + 1; + + copy = (char *) obstack_alloc (&pool, len + 1); + stpcpy (stpcpy (copy, cp), "\n"); + cp = copy; + } + else + { + len = (endp - cp) + 1; + ++endp; + } + + /* Compare with any of the known fields. */ + for (cnt = 0; + cnt < sizeof (known_fields) / sizeof (known_fields[0]); + ++cnt) + if (c_strncasecmp (cp, known_fields[cnt].name, known_fields[cnt].len) + == 0) + break; + + if (cnt < sizeof (known_fields) / sizeof (known_fields[0])) + { + header_fields[cnt].string = &cp[known_fields[cnt].len]; + header_fields[cnt].len = len - known_fields[cnt].len; + } + else + { + /* It's an unknown field. Append content to what is already + known. */ + char *extended = + (char *) obstack_alloc (&pool, + header_fields[UNKNOWN].len + len + 1); + memcpy (extended, header_fields[UNKNOWN].string, + header_fields[UNKNOWN].len); + memcpy (&extended[header_fields[UNKNOWN].len], cp, len); + extended[header_fields[UNKNOWN].len + len] = '\0'; + header_fields[UNKNOWN].string = extended; + header_fields[UNKNOWN].len += len; + } + + cp = endp; + } + + /* Set the Language field if specified on the command line. */ + if (catalogname != NULL) + { + /* Prepend a space and append a newline. */ + size_t len = strlen (catalogname); + char *copy = (char *) obstack_alloc (&pool, 1 + len + 1 + 1); + stpcpy (stpcpy (stpcpy (copy, " "), catalogname), "\n"); + header_fields[LANGUAGE].string = copy; + header_fields[LANGUAGE].len = strlen (header_fields[LANGUAGE].string); + } + /* Add a Language field to PO files that don't have one. The Language + field was introduced in gettext-0.18. */ + else if (header_fields[LANGUAGE].string == NULL) + { + const char *language_team_ptr = header_fields[LANGUAGE_TEAM].string; + + if (language_team_ptr != NULL) + { + size_t language_team_len = header_fields[LANGUAGE_TEAM].len; + + /* Trim leading blanks. */ + while (language_team_len > 0 + && (*language_team_ptr == ' ' + || *language_team_ptr == '\t')) + { + language_team_ptr++; + language_team_len--; + } + + /* Trim trailing blanks. */ + while (language_team_len > 0 + && (language_team_ptr[language_team_len - 1] == ' ' + || language_team_ptr[language_team_len - 1] == '\t')) + language_team_len--; + + /* Trim last word, if it looks like an URL or email address. */ + { + size_t i; + + for (i = language_team_len; i > 0; i--) + if (language_team_ptr[i - 1] == ' ' + || language_team_ptr[i - 1] == '\t') + break; + /* The last word: language_team_ptr[i..language_team_len-1]. */ + if (i < language_team_len + && (language_team_ptr[i] == '<' + || language_team_ptr[language_team_len - 1] == '>' + || memchr (language_team_ptr, '@', language_team_len) + != NULL + || memchr (language_team_ptr, '/', language_team_len) + != NULL)) + { + /* Trim last word and blanks before it. */ + while (i > 0 + && (language_team_ptr[i - 1] == ' ' + || language_team_ptr[i - 1] == '\t')) + i--; + language_team_len = i; + } + } + + /* The rest of the Language-Team field should be the english name + of the languge. Convert to ISO 639 and ISO 3166 syntax. */ + { + size_t i; + + for (i = 0; i < language_variant_table_size; i++) + if (strlen (language_variant_table[i].english) + == language_team_len + && memcmp (language_variant_table[i].english, + language_team_ptr, language_team_len) == 0) + { + header_fields[LANGUAGE].string = + language_variant_table[i].code; + break; + } + } + if (header_fields[LANGUAGE].string == NULL) + { + size_t i; + + for (i = 0; i < language_table_size; i++) + if (strlen (language_table[i].english) == language_team_len + && memcmp (language_table[i].english, + language_team_ptr, language_team_len) == 0) + { + header_fields[LANGUAGE].string = language_table[i].code; + break; + } + } + if (header_fields[LANGUAGE].string != NULL) + { + /* Prepend a space and append a newline. */ + const char *str = header_fields[LANGUAGE].string; + size_t len = strlen (str); + char *copy = (char *) obstack_alloc (&pool, 1 + len + 1 + 1); + stpcpy (stpcpy (stpcpy (copy, " "), str), "\n"); + header_fields[LANGUAGE].string = copy; + } + else + header_fields[LANGUAGE].string = " \n"; + header_fields[LANGUAGE].len = + strlen (header_fields[LANGUAGE].string); + } + } { - const char *msgid_bugs_ptr; + const char *msgid_bugs_ptr; - msgid_bugs_ptr = c_strstr (ref->msgstr, "Report-Msgid-Bugs-To:"); - if (msgid_bugs_ptr != NULL) - { - size_t msgid_bugs_len; - const char *endp; - - msgid_bugs_ptr += sizeof ("Report-Msgid-Bugs-To:") - 1; - - endp = strchr (msgid_bugs_ptr, '\n'); - if (endp == NULL) - { - /* Add a trailing newline. */ - char *extended; - endp = strchr (msgid_bugs_ptr, '\0'); - msgid_bugs_len = (endp - msgid_bugs_ptr) + 1; - extended = (char *) obstack_alloc (&pool, msgid_bugs_len + 1); - stpcpy (stpcpy (extended, msgid_bugs_ptr), "\n"); - msgid_bugs_ptr = extended; - } - else - msgid_bugs_len = (endp - msgid_bugs_ptr) + 1; - - header_fields[REPORT_MSGID_BUGS_TO].string = msgid_bugs_ptr; - header_fields[REPORT_MSGID_BUGS_TO].len = msgid_bugs_len; - } + msgid_bugs_ptr = c_strstr (ref->msgstr, "Report-Msgid-Bugs-To:"); + if (msgid_bugs_ptr != NULL) + { + size_t msgid_bugs_len; + const char *endp; + + msgid_bugs_ptr += sizeof ("Report-Msgid-Bugs-To:") - 1; + + endp = strchr (msgid_bugs_ptr, '\n'); + if (endp == NULL) + { + /* Add a trailing newline. */ + char *extended; + endp = strchr (msgid_bugs_ptr, '\0'); + msgid_bugs_len = (endp - msgid_bugs_ptr) + 1; + extended = (char *) obstack_alloc (&pool, msgid_bugs_len + 1); + stpcpy (stpcpy (extended, msgid_bugs_ptr), "\n"); + msgid_bugs_ptr = extended; + } + else + msgid_bugs_len = (endp - msgid_bugs_ptr) + 1; + + header_fields[REPORT_MSGID_BUGS_TO].string = msgid_bugs_ptr; + header_fields[REPORT_MSGID_BUGS_TO].len = msgid_bugs_len; + } } { - const char *pot_date_ptr; + const char *pot_date_ptr; - pot_date_ptr = c_strstr (ref->msgstr, "POT-Creation-Date:"); - if (pot_date_ptr != NULL) - { - size_t pot_date_len; - const char *endp; - - pot_date_ptr += sizeof ("POT-Creation-Date:") - 1; - - endp = strchr (pot_date_ptr, '\n'); - if (endp == NULL) - { - /* Add a trailing newline. */ - char *extended; - endp = strchr (pot_date_ptr, '\0'); - pot_date_len = (endp - pot_date_ptr) + 1; - extended = (char *) obstack_alloc (&pool, pot_date_len + 1); - stpcpy (stpcpy (extended, pot_date_ptr), "\n"); - pot_date_ptr = extended; - } - else - pot_date_len = (endp - pot_date_ptr) + 1; - - header_fields[POT_CREATION_DATE].string = pot_date_ptr; - header_fields[POT_CREATION_DATE].len = pot_date_len; - } + pot_date_ptr = c_strstr (ref->msgstr, "POT-Creation-Date:"); + if (pot_date_ptr != NULL) + { + size_t pot_date_len; + const char *endp; + + pot_date_ptr += sizeof ("POT-Creation-Date:") - 1; + + endp = strchr (pot_date_ptr, '\n'); + if (endp == NULL) + { + /* Add a trailing newline. */ + char *extended; + endp = strchr (pot_date_ptr, '\0'); + pot_date_len = (endp - pot_date_ptr) + 1; + extended = (char *) obstack_alloc (&pool, pot_date_len + 1); + stpcpy (stpcpy (extended, pot_date_ptr), "\n"); + pot_date_ptr = extended; + } + else + pot_date_len = (endp - pot_date_ptr) + 1; + + header_fields[POT_CREATION_DATE].string = pot_date_ptr; + header_fields[POT_CREATION_DATE].len = pot_date_len; + } } /* Concatenate all the various fields. */ len = 0; for (cnt = 0; cnt < UNKNOWN; ++cnt) - if (header_fields[cnt].string != NULL) - len += known_fields[cnt].len + header_fields[cnt].len; + if (header_fields[cnt].string != NULL) + len += known_fields[cnt].len + header_fields[cnt].len; len += header_fields[UNKNOWN].len; cp = newp = XNMALLOC (len + 1, char); newp[len] = '\0'; -#define IF_FILLED(idx) \ - if (header_fields[idx].string) \ - newp = stpncpy (stpcpy (newp, known_fields[idx].name), \ - header_fields[idx].string, header_fields[idx].len) +#define IF_FILLED(idx) \ + if (header_fields[idx].string) \ + newp = stpncpy (stpcpy (newp, known_fields[idx].name), \ + header_fields[idx].string, header_fields[idx].len) IF_FILLED (PROJECT_ID); IF_FILLED (REPORT_MSGID_BUGS_TO); @@ -1006,11 +1205,12 @@ IF_FILLED (PO_REVISION_DATE); IF_FILLED (LAST_TRANSLATOR); IF_FILLED (LANGUAGE_TEAM); + IF_FILLED (LANGUAGE); IF_FILLED (MIME_VERSION); IF_FILLED (CONTENT_TYPE); IF_FILLED (CONTENT_TRANSFER); if (header_fields[UNKNOWN].string != NULL) - stpcpy (newp, header_fields[UNKNOWN].string); + stpcpy (newp, header_fields[UNKNOWN].string); #undef IF_FILLED @@ -1030,22 +1230,22 @@ msgstr_len = def->msgstr_len; if (def->is_fuzzy) - { - prev_msgctxt = def->prev_msgctxt; - prev_msgid = def->prev_msgid; - prev_msgid_plural = def->prev_msgid_plural; - } + { + prev_msgctxt = def->prev_msgctxt; + prev_msgid = def->prev_msgid; + prev_msgid_plural = def->prev_msgid_plural; + } else - { - prev_msgctxt = def->msgctxt; - prev_msgid = def->msgid; - prev_msgid_plural = def->msgid_plural; - } + { + prev_msgctxt = def->msgctxt; + prev_msgid = def->msgid; + prev_msgid_plural = def->msgid_plural; + } } result = message_alloc (ref->msgctxt != NULL ? xstrdup (ref->msgctxt) : NULL, - xstrdup (ref->msgid), ref->msgid_plural, - msgstr, msgstr_len, &def->pos); + xstrdup (ref->msgid), ref->msgid_plural, + msgstr, msgstr_len, &def->pos); /* Take the comments from the definition file. There will be none at all in the reference file, as it was generated by xgettext. */ @@ -1069,9 +1269,9 @@ a reason to mark the result fuzzy. */ if (!result->is_fuzzy && (ref->msgid_plural != NULL - ? def->msgid_plural == NULL - || strcmp (ref->msgid_plural, def->msgid_plural) != 0 - : def->msgid_plural != NULL)) + ? def->msgid_plural == NULL + || strcmp (ref->msgid_plural, def->msgid_plural) != 0 + : def->msgid_plural != NULL)) result->is_fuzzy = true; for (i = 0; i < NFORMATS; i++) @@ -1079,22 +1279,35 @@ result->is_format[i] = ref->is_format[i]; /* If the reference message is marked as being a format specifier, - but the definition message is not, we check if the resulting - message would pass "msgfmt -c". If yes, then all is fine. If - not, we add a fuzzy marker, because - 1. the message needs the translator's attention, - 2. msgmerge must not transform a PO file which passes "msgfmt -c" - into a PO file which doesn't. */ + but the definition message is not, we check if the resulting + message would pass "msgfmt -c". If yes, then all is fine. If + not, we add a fuzzy marker, because + 1. the message needs the translator's attention, + 2. msgmerge must not transform a PO file which passes "msgfmt -c" + into a PO file which doesn't. */ if (!result->is_fuzzy - && possible_format_p (ref->is_format[i]) - && !possible_format_p (def->is_format[i]) - && check_msgid_msgstr_format_i (ref->msgid, ref->msgid_plural, - msgstr, msgstr_len, i, - plural_distribution, - plural_distribution_length, - silent_error_logger) > 0) - result->is_fuzzy = true; - } + && possible_format_p (ref->is_format[i]) + && !possible_format_p (def->is_format[i]) + && check_msgid_msgstr_format_i (ref->msgid, ref->msgid_plural, + msgstr, msgstr_len, i, ref->range, + distribution, silent_error_logger) + > 0) + result->is_fuzzy = true; + } + + result->range = ref->range; + /* If the definition message was assuming a certain range, but the reference + message does not specify a range any more or specifies a range that is + not the same or a subset, we add a fuzzy marker, because + 1. the message needs the translator's attention, + 2. msgmerge must not transform a PO file which passes "msgfmt -c" + into a PO file which doesn't. */ + if (!result->is_fuzzy + && has_range_p (def->range) + && !(has_range_p (ref->range) + && ref->range.min >= def->range.min + && ref->range.max <= def->range.max)) + result->is_fuzzy = true; result->do_wrap = ref->do_wrap; @@ -1102,11 +1315,13 @@ Do so only when --previous is specified, for backward compatibility. Since the "previous msgid" represents the original msgid that led to the current msgstr, - - we can omit it if the resulting message is not fuzzy, + - we can omit it if the resulting message is not fuzzy or is + untranslated (but do this in a later pass, since result->is_fuzzy + is not finalized at this point), - otherwise, if the corresponding message from the definition file was translated (not fuzzy), we use that message's msgid, - otherwise, we use that message's prev_msgid. */ - if (keep_previous && result->is_fuzzy) + if (keep_previous) { result->prev_msgctxt = prev_msgctxt; result->prev_msgid = prev_msgid; @@ -1133,12 +1348,12 @@ if (ref->msgid_plural != NULL) { if (def->msgid_plural == NULL) - result->used = 1; + result->used = 1; } else { if (def->msgid_plural != NULL) - result->used = 2; + result->used = 2; } /* All done, return the merged message to the caller. */ @@ -1150,23 +1365,22 @@ static void match_domain (const char *fn1, const char *fn2, - definitions_ty *definitions, message_list_ty *refmlp, - message_list_ty *resultmlp, - struct statistics *stats, unsigned int *processed) + definitions_ty *definitions, message_list_ty *refmlp, + message_list_ty *resultmlp, + struct statistics *stats, unsigned int *processed) { message_ty *header_entry; unsigned long int nplurals; const struct expression *plural_expr; char *untranslated_plural_msgstr; - unsigned char *plural_distribution; - unsigned long plural_distribution_length; + struct plural_distribution distribution; struct search_result { message_ty *found; bool fuzzy; } *search_results; size_t j; header_entry = message_list_search (definitions_current_list (definitions), NULL, ""); extract_plural_expression (header_entry ? header_entry->msgstr : NULL, - &plural_expr, &nplurals); + &plural_expr, &nplurals); untranslated_plural_msgstr = XNMALLOC (nplurals, char); memset (untranslated_plural_msgstr, '\0', nplurals); @@ -1174,16 +1388,17 @@ { /* Disable error output temporarily. */ void (*old_po_xerror) (int, const struct message_ty *, const char *, size_t, - size_t, int, const char *) + size_t, int, const char *) = po_xerror; po_xerror = silent_xerror; if (check_plural_eval (plural_expr, nplurals, header_entry, - &plural_distribution, - &plural_distribution_length) > 0) + &distribution) > 0) { - plural_distribution = NULL; - plural_distribution_length = 0; + distribution.expr = NULL; + distribution.often = NULL; + distribution.often_length = 0; + distribution.histogram = NULL; } po_xerror = old_po_xerror; @@ -1200,47 +1415,49 @@ /* Tell the OpenMP capable compiler to distribute this loop across several threads. The schedule is dynamic, because for some messages the loop body can be executed very quickly, whereas for others it takes - a long time. */ + a long time. + Note: The Sun Workshop 6.2 C compiler does not allow a space between + '#' and 'pragma'. */ #ifdef _OPENMP - # pragma omp parallel for schedule(dynamic) + #pragma omp parallel for schedule(dynamic) #endif for (jj = 0; jj < nn; jj++) { - message_ty *refmsg = refmlp->item[jj]; - message_ty *defmsg; + message_ty *refmsg = refmlp->item[jj]; + message_ty *defmsg; - /* Because merging can take a while we print something to signal - we are not dead. */ - if (!quiet && verbosity_level <= 1 && *processed % DOT_FREQUENCY == 0) - fputc ('.', stderr); - #ifdef _OPENMP - # pragma omp atomic - #endif - (*processed)++; - - /* See if it is in the other file. */ - defmsg = - definitions_search (definitions, refmsg->msgctxt, refmsg->msgid); - if (defmsg != NULL) - { - search_results[jj].found = defmsg; - search_results[jj].fuzzy = false; - } - else if (!is_header (refmsg) - /* If the message was not defined at all, try to find a very - similar message, it could be a typo, or the suggestion may - help. */ - && use_fuzzy_matching - && ((defmsg = - definitions_search_fuzzy (definitions, - refmsg->msgctxt, - refmsg->msgid)) != NULL)) - { - search_results[jj].found = defmsg; - search_results[jj].fuzzy = true; - } - else - search_results[jj].found = NULL; + /* Because merging can take a while we print something to signal + we are not dead. */ + if (!quiet && verbosity_level <= 1 && *processed % DOT_FREQUENCY == 0) + fputc ('.', stderr); + #ifdef _OPENMP + #pragma omp atomic + #endif + (*processed)++; + + /* See if it is in the other file. */ + defmsg = + definitions_search (definitions, refmsg->msgctxt, refmsg->msgid); + if (defmsg != NULL) + { + search_results[jj].found = defmsg; + search_results[jj].fuzzy = false; + } + else if (!is_header (refmsg) + /* If the message was not defined at all, try to find a very + similar message, it could be a typo, or the suggestion may + help. */ + && use_fuzzy_matching + && ((defmsg = + definitions_search_fuzzy (definitions, + refmsg->msgctxt, + refmsg->msgid)) != NULL)) + { + search_results[jj].found = defmsg; + search_results[jj].fuzzy = true; + } + else + search_results[jj].found = NULL; } } @@ -1249,100 +1466,97 @@ message_ty *refmsg = refmlp->item[j]; /* See if it is in the other file. - This used definitions_search. */ + This used definitions_search. */ if (search_results[j].found != NULL && !search_results[j].fuzzy) - { - message_ty *defmsg = search_results[j].found; - /* Merge the reference with the definition: take the #. and - #: comments from the reference, take the # comments from - the definition, take the msgstr from the definition. Add - this merged entry to the output message list. */ - message_ty *mp = - message_merge (defmsg, refmsg, false, - plural_distribution, plural_distribution_length); - - message_list_append (resultmlp, mp); - - /* Remember that this message has been used, when we scan - later to see if anything was omitted. */ - defmsg->used = 1; - stats->merged++; - } + { + message_ty *defmsg = search_results[j].found; + /* Merge the reference with the definition: take the #. and + #: comments from the reference, take the # comments from + the definition, take the msgstr from the definition. Add + this merged entry to the output message list. */ + message_ty *mp = + message_merge (defmsg, refmsg, false, &distribution); + + message_list_append (resultmlp, mp); + + /* Remember that this message has been used, when we scan + later to see if anything was omitted. */ + defmsg->used = 1; + stats->merged++; + } else if (!is_header (refmsg)) - { - /* If the message was not defined at all, try to find a very - similar message, it could be a typo, or the suggestion may - help. This search assumed use_fuzzy_matching and used - definitions_search_fuzzy. */ - if (search_results[j].found != NULL && search_results[j].fuzzy) - { - message_ty *defmsg = search_results[j].found; - message_ty *mp; - - if (verbosity_level > 1) - { - po_gram_error_at_line (&refmsg->pos, _("\ + { + /* If the message was not defined at all, try to find a very + similar message, it could be a typo, or the suggestion may + help. This search assumed use_fuzzy_matching and used + definitions_search_fuzzy. */ + if (search_results[j].found != NULL && search_results[j].fuzzy) + { + message_ty *defmsg = search_results[j].found; + message_ty *mp; + + if (verbosity_level > 1) + { + po_gram_error_at_line (&refmsg->pos, _("\ this message is used but not defined...")); - error_message_count--; - po_gram_error_at_line (&defmsg->pos, _("\ + error_message_count--; + po_gram_error_at_line (&defmsg->pos, _("\ ...but this definition is similar")); - } + } - /* Merge the reference with the definition: take the #. and - #: comments from the reference, take the # comments from - the definition, take the msgstr from the definition. Add - this merged entry to the output message list. */ - mp = message_merge (defmsg, refmsg, true, - plural_distribution, - plural_distribution_length); - - message_list_append (resultmlp, mp); - - /* Remember that this message has been used, when we scan - later to see if anything was omitted. */ - defmsg->used = 1; - stats->fuzzied++; - if (!quiet && verbosity_level <= 1) - /* Always print a dot if we handled a fuzzy match. */ - fputc ('.', stderr); - } - else - { - message_ty *mp; - bool is_untranslated; - const char *p; - const char *pend; + /* Merge the reference with the definition: take the #. and + #: comments from the reference, take the # comments from + the definition, take the msgstr from the definition. Add + this merged entry to the output message list. */ + mp = message_merge (defmsg, refmsg, true, &distribution); + + message_list_append (resultmlp, mp); + + /* Remember that this message has been used, when we scan + later to see if anything was omitted. */ + defmsg->used = 1; + stats->fuzzied++; + if (!quiet && verbosity_level <= 1) + /* Always print a dot if we handled a fuzzy match. */ + fputc ('.', stderr); + } + else + { + message_ty *mp; + bool is_untranslated; + const char *p; + const char *pend; - if (verbosity_level > 1) - po_gram_error_at_line (&refmsg->pos, _("\ + if (verbosity_level > 1) + po_gram_error_at_line (&refmsg->pos, _("\ this message is used but not defined in %s"), fn1); - mp = message_copy (refmsg); + mp = message_copy (refmsg); - if (mp->msgid_plural != NULL) - { - /* Test if mp is untranslated. (It most likely is.) */ - is_untranslated = true; - for (p = mp->msgstr, pend = p + mp->msgstr_len; p < pend; p++) - if (*p != '\0') - { - is_untranslated = false; - break; - } - if (is_untranslated) - { - /* Change mp->msgstr_len consecutive empty strings into - nplurals consecutive empty strings. */ - if (nplurals > mp->msgstr_len) - mp->msgstr = untranslated_plural_msgstr; - mp->msgstr_len = nplurals; - } - } - - message_list_append (resultmlp, mp); - stats->missing++; - } - } + if (mp->msgid_plural != NULL) + { + /* Test if mp is untranslated. (It most likely is.) */ + is_untranslated = true; + for (p = mp->msgstr, pend = p + mp->msgstr_len; p < pend; p++) + if (*p != '\0') + { + is_untranslated = false; + break; + } + if (is_untranslated) + { + /* Change mp->msgstr_len consecutive empty strings into + nplurals consecutive empty strings. */ + if (nplurals > mp->msgstr_len) + mp->msgstr = untranslated_plural_msgstr; + mp->msgstr_len = nplurals; + } + } + + message_list_append (resultmlp, mp); + stats->missing++; + } + } } free (search_results); @@ -1359,70 +1573,85 @@ if (problematic) { - unsigned long int nplurals = 0; + unsigned long int nplurals = 0; - if (problematic & 1) - { - /* Need to know nplurals of the result domain. */ - message_ty *header_entry = - message_list_search (resultmlp, NULL, ""); - - nplurals = get_plural_count (header_entry - ? header_entry->msgstr - : NULL); - } - - for (j = 0; j < resultmlp->nitems; j++) - { - message_ty *mp = resultmlp->item[j]; - - if ((mp->used & 1) && (nplurals > 0)) - { - /* ref->msgid_plural != NULL but def->msgid_plural == NULL. - Use a copy of def->msgstr for each possible plural form. */ - size_t new_msgstr_len; - char *new_msgstr; - char *p; - unsigned long i; - - if (verbosity_level > 1) - { - po_gram_error_at_line (&mp->pos, _("\ + if (problematic & 1) + { + /* Need to know nplurals of the result domain. */ + message_ty *header_entry = + message_list_search (resultmlp, NULL, ""); + + nplurals = get_plural_count (header_entry + ? header_entry->msgstr + : NULL); + } + + for (j = 0; j < resultmlp->nitems; j++) + { + message_ty *mp = resultmlp->item[j]; + + if ((mp->used & 1) && (nplurals > 0)) + { + /* ref->msgid_plural != NULL but def->msgid_plural == NULL. + Use a copy of def->msgstr for each possible plural form. */ + size_t new_msgstr_len; + char *new_msgstr; + char *p; + unsigned long i; + + if (verbosity_level > 1) + { + po_gram_error_at_line (&mp->pos, _("\ this message should define plural forms")); - } + } - new_msgstr_len = nplurals * mp->msgstr_len; - new_msgstr = XNMALLOC (new_msgstr_len, char); - for (i = 0, p = new_msgstr; i < nplurals; i++) - { - memcpy (p, mp->msgstr, mp->msgstr_len); - p += mp->msgstr_len; - } - mp->msgstr = new_msgstr; - mp->msgstr_len = new_msgstr_len; - mp->is_fuzzy = true; - } - - if ((mp->used & 2) && (mp->msgstr_len > strlen (mp->msgstr) + 1)) - { - /* ref->msgid_plural == NULL but def->msgid_plural != NULL. - Use only the first among the plural forms. */ - - if (verbosity_level > 1) - { - po_gram_error_at_line (&mp->pos, _("\ + new_msgstr_len = nplurals * mp->msgstr_len; + new_msgstr = XNMALLOC (new_msgstr_len, char); + for (i = 0, p = new_msgstr; i < nplurals; i++) + { + memcpy (p, mp->msgstr, mp->msgstr_len); + p += mp->msgstr_len; + } + mp->msgstr = new_msgstr; + mp->msgstr_len = new_msgstr_len; + mp->is_fuzzy = true; + } + + if ((mp->used & 2) && (mp->msgstr_len > strlen (mp->msgstr) + 1)) + { + /* ref->msgid_plural == NULL but def->msgid_plural != NULL. + Use only the first among the plural forms. */ + + if (verbosity_level > 1) + { + po_gram_error_at_line (&mp->pos, _("\ this message should not define plural forms")); - } + } - mp->msgstr_len = strlen (mp->msgstr) + 1; - mp->is_fuzzy = true; - } - - /* Postprocessing of this message is done. */ - mp->used = 0; - } + mp->msgstr_len = strlen (mp->msgstr) + 1; + mp->is_fuzzy = true; + } + + /* Postprocessing of this message is done. */ + mp->used = 0; + } } } + + /* Now that mp->is_fuzzy is finalized for all messages, remove the + "previous msgid" information from all messages that are not fuzzy or + are untranslated. */ + for (j = 0; j < resultmlp->nitems; j++) + { + message_ty *mp = resultmlp->item[j]; + + if (!mp->is_fuzzy || mp->msgstr[0] == '\0') + { + mp->prev_msgctxt = NULL; + mp->prev_msgid = NULL; + mp->prev_msgid_plural = NULL; + } + } } static msgdomain_list_ty * @@ -1435,6 +1664,7 @@ unsigned int processed; struct statistics stats; msgdomain_list_ty *result; + const char *def_canon_charset; definitions_ty definitions; message_list_ty *empty_list; @@ -1450,10 +1680,10 @@ for (k = 0; k < ref->nitems; k++) if (message_list_search (ref->item[k]->messages, NULL, "") == NULL) { - static lex_pos_ty pos = { __FILE__, __LINE__ }; - message_ty *refheader = message_alloc (NULL, "", NULL, "", 1, &pos); + static lex_pos_ty pos = { __FILE__, __LINE__ }; + message_ty *refheader = message_alloc (NULL, "", NULL, "", 1, &pos); - message_list_prepend (ref->item[k]->messages, refheader); + message_list_prepend (ref->item[k]->messages, refheader); } /* The references file can be either in ASCII or in UTF-8. If it is @@ -1463,189 +1693,238 @@ bool was_utf8 = false; for (k = 0; k < ref->nitems; k++) { - message_list_ty *mlp = ref->item[k]->messages; + message_list_ty *mlp = ref->item[k]->messages; - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - if (len == strlen ("UTF-8") - && c_strncasecmp (charsetstr, "UTF-8", len) == 0) - was_utf8 = true; - } - } - } - } + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + if (len == strlen ("UTF-8") + && c_strncasecmp (charsetstr, "UTF-8", len) == 0) + was_utf8 = true; + } + } + } + } if (was_utf8) { - def = iconv_msgdomain_list (def, "UTF-8", true, fn1); - if (compendiums != NULL) - for (k = 0; k < compendiums->nitems; k++) - iconv_message_list (compendiums->item[k], NULL, po_charset_utf8, - compendium_filenames->item[k]); + def = iconv_msgdomain_list (def, "UTF-8", true, fn1); + if (compendiums != NULL) + for (k = 0; k < compendiums->nitems; k++) + iconv_message_list (compendiums->item[k], NULL, po_charset_utf8, + compendium_filenames->item[k]); } else if (compendiums != NULL && compendiums->nitems > 0) { - /* Ensure that the definitions and the compendiums are in the same - encoding. Prefer the encoding of the definitions file, if - possible; otherwise, if the definitions file is empty and the - compendiums are all in the same encoding, use that encoding; - otherwise, use UTF-8. */ - bool conversion_done = false; - { - char *charset = NULL; - - /* Get the encoding of the definitions file. */ - for (k = 0; k < def->nitems; k++) - { - message_list_ty *mlp = def->item[k]->messages; - - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - break; - } - } - } - if (charset != NULL) - break; - } - if (charset != NULL) - { - const char *canon_charset = po_charset_canonicalize (charset); - - if (canon_charset != NULL) - { - bool all_compendiums_iconvable = true; - - if (compendiums != NULL) - for (k = 0; k < compendiums->nitems; k++) - if (!is_message_list_iconvable (compendiums->item[k], - NULL, canon_charset)) - { - all_compendiums_iconvable = false; - break; - } - - if (all_compendiums_iconvable) - { - /* Convert the compendiums to def's encoding. */ - if (compendiums != NULL) - for (k = 0; k < compendiums->nitems; k++) - iconv_message_list (compendiums->item[k], - NULL, canon_charset, - compendium_filenames->item[k]); - conversion_done = true; - } - } - freea (charset); - } - } - if (!conversion_done) - { - if (def->nitems == 0 - || (def->nitems == 1 && def->item[0]->messages->nitems == 0)) - { - /* The definitions file is empty. - Compare the encodings of the compendiums. */ - const char *common_canon_charset = NULL; - - for (k = 0; k < compendiums->nitems; k++) - { - message_list_ty *mlp = compendiums->item[k]; - char *charset = NULL; - const char *canon_charset = NULL; - - for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - const char *header = mlp->item[j]->msgstr; - - if (header != NULL) - { - const char *charsetstr = - c_strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = (char *) xmalloca (len + 1); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - break; - } - } - } - if (charset != NULL) - { - canon_charset = po_charset_canonicalize (charset); - freea (charset); - } - /* If no charset declaration was found in this file, - or if it is not a valid encoding name, or if it - differs from the common charset found so far, - we have no common charset. */ - if (canon_charset == NULL - || (common_canon_charset != NULL - && canon_charset != common_canon_charset)) - { - common_canon_charset = NULL; - break; - } - common_canon_charset = canon_charset; - } - - if (common_canon_charset != NULL) - /* No conversion needed in this case. */ - conversion_done = true; - } - if (!conversion_done) - { - /* It's too hairy to find out what would be the optimal target - encoding. So, convert everything to UTF-8. */ - def = iconv_msgdomain_list (def, "UTF-8", true, fn1); - if (compendiums != NULL) - for (k = 0; k < compendiums->nitems; k++) - iconv_message_list (compendiums->item[k], - NULL, po_charset_utf8, - compendium_filenames->item[k]); - } - } + /* Ensure that the definitions and the compendiums are in the same + encoding. Prefer the encoding of the definitions file, if + possible; otherwise, if the definitions file is empty and the + compendiums are all in the same encoding, use that encoding; + otherwise, use UTF-8. */ + bool conversion_done = false; + { + char *charset = NULL; + + /* Get the encoding of the definitions file. */ + for (k = 0; k < def->nitems; k++) + { + message_list_ty *mlp = def->item[k]->messages; + + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + break; + } + } + } + if (charset != NULL) + break; + } + if (charset != NULL) + { + const char *canon_charset = po_charset_canonicalize (charset); + + if (canon_charset != NULL) + { + bool all_compendiums_iconvable = true; + + if (compendiums != NULL) + for (k = 0; k < compendiums->nitems; k++) + if (!is_message_list_iconvable (compendiums->item[k], + NULL, canon_charset)) + { + all_compendiums_iconvable = false; + break; + } + + if (all_compendiums_iconvable) + { + /* Convert the compendiums to def's encoding. */ + if (compendiums != NULL) + for (k = 0; k < compendiums->nitems; k++) + iconv_message_list (compendiums->item[k], + NULL, canon_charset, + compendium_filenames->item[k]); + conversion_done = true; + } + } + freea (charset); + } + } + if (!conversion_done) + { + if (def->nitems == 0 + || (def->nitems == 1 && def->item[0]->messages->nitems == 0)) + { + /* The definitions file is empty. + Compare the encodings of the compendiums. */ + const char *common_canon_charset = NULL; + + for (k = 0; k < compendiums->nitems; k++) + { + message_list_ty *mlp = compendiums->item[k]; + char *charset = NULL; + const char *canon_charset = NULL; + + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = + c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + break; + } + } + } + if (charset != NULL) + { + canon_charset = po_charset_canonicalize (charset); + freea (charset); + } + /* If no charset declaration was found in this file, + or if it is not a valid encoding name, or if it + differs from the common charset found so far, + we have no common charset. */ + if (canon_charset == NULL + || (common_canon_charset != NULL + && canon_charset != common_canon_charset)) + { + common_canon_charset = NULL; + break; + } + common_canon_charset = canon_charset; + } + + if (common_canon_charset != NULL) + /* No conversion needed in this case. */ + conversion_done = true; + } + if (!conversion_done) + { + /* It's too hairy to find out what would be the optimal target + encoding. So, convert everything to UTF-8. */ + def = iconv_msgdomain_list (def, "UTF-8", true, fn1); + if (compendiums != NULL) + for (k = 0; k < compendiums->nitems; k++) + iconv_message_list (compendiums->item[k], + NULL, po_charset_utf8, + compendium_filenames->item[k]); + } + } } } + /* Determine canonicalized encoding name of the definitions now, after + conversion. Only used for fuzzy matching. */ + if (use_fuzzy_matching) + { + def_canon_charset = def->encoding; + if (def_canon_charset == NULL) + { + char *charset = NULL; + + /* Get the encoding of the definitions file. */ + for (k = 0; k < def->nitems; k++) + { + message_list_ty *mlp = def->item[k]->messages; + + for (j = 0; j < mlp->nitems; j++) + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + const char *header = mlp->item[j]->msgstr; + + if (header != NULL) + { + const char *charsetstr = c_strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = (char *) xmalloca (len + 1); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + break; + } + } + } + if (charset != NULL) + break; + } + if (charset != NULL) + def_canon_charset = po_charset_canonicalize (charset); + if (def_canon_charset == NULL) + /* Unspecified encoding. Assume unibyte encoding. */ + def_canon_charset = po_charset_ascii; + } + } + else + def_canon_charset = NULL; + /* Initialize and preprocess the total set of message definitions. */ - definitions_init (&definitions, po_charset_utf8); + definitions_init (&definitions, def_canon_charset); empty_list = message_list_alloc (false); result = msgdomain_list_alloc (false); @@ -1655,43 +1934,43 @@ if (!multi_domain_mode) for (k = 0; k < ref->nitems; k++) { - const char *domain = ref->item[k]->domain; - message_list_ty *refmlp = ref->item[k]->messages; - message_list_ty *resultmlp = - msgdomain_list_sublist (result, domain, true); - message_list_ty *defmlp; - - defmlp = msgdomain_list_sublist (def, domain, false); - if (defmlp == NULL) - defmlp = empty_list; - definitions_set_current_list (&definitions, defmlp); + const char *domain = ref->item[k]->domain; + message_list_ty *refmlp = ref->item[k]->messages; + message_list_ty *resultmlp = + msgdomain_list_sublist (result, domain, true); + message_list_ty *defmlp; + + defmlp = msgdomain_list_sublist (def, domain, false); + if (defmlp == NULL) + defmlp = empty_list; + definitions_set_current_list (&definitions, defmlp); - match_domain (fn1, fn2, &definitions, refmlp, resultmlp, - &stats, &processed); + match_domain (fn1, fn2, &definitions, refmlp, resultmlp, + &stats, &processed); } else { /* Apply the references messages in the default domain to each of - the definition domains. */ + the definition domains. */ message_list_ty *refmlp = ref->item[0]->messages; for (k = 0; k < def->nitems; k++) - { - const char *domain = def->item[k]->domain; - message_list_ty *defmlp = def->item[k]->messages; - - /* Ignore the default message domain if it has no messages. */ - if (k > 0 || defmlp->nitems > 0) - { - message_list_ty *resultmlp = - msgdomain_list_sublist (result, domain, true); - - definitions_set_current_list (&definitions, defmlp); - - match_domain (fn1, fn2, &definitions, refmlp, resultmlp, - &stats, &processed); - } - } + { + const char *domain = def->item[k]->domain; + message_list_ty *defmlp = def->item[k]->messages; + + /* Ignore the default message domain if it has no messages. */ + if (k > 0 || defmlp->nitems > 0) + { + message_list_ty *resultmlp = + msgdomain_list_sublist (result, domain, true); + + definitions_set_current_list (&definitions, defmlp); + + match_domain (fn1, fn2, &definitions, refmlp, resultmlp, + &stats, &processed); + } + } } definitions_destroy (&definitions); @@ -1705,41 +1984,41 @@ message_list_ty *defmlp = def->item[k]->messages; for (j = 0; j < defmlp->nitems; j++) - { - message_ty *defmsg = defmlp->item[j]; + { + message_ty *defmsg = defmlp->item[j]; - if (!defmsg->used) - { - /* Remember the old translation although it is not used anymore. - But we mark it as obsolete. */ - message_ty *mp; - - mp = message_copy (defmsg); - /* Clear the extracted comments. */ - if (mp->comment_dot != NULL) - { - string_list_free (mp->comment_dot); - mp->comment_dot = NULL; - } - /* Clear the file position comments. */ - if (mp->filepos != NULL) - { - size_t i; - - for (i = 0; i < mp->filepos_count; i++) - free ((char *) mp->filepos[i].file_name); - mp->filepos_count = 0; - free (mp->filepos); - mp->filepos = NULL; - } - /* Mark as obsolete. */ - mp->obsolete = true; - - message_list_append (msgdomain_list_sublist (result, domain, true), - mp); - stats.obsolete++; - } - } + if (!defmsg->used) + { + /* Remember the old translation although it is not used anymore. + But we mark it as obsolete. */ + message_ty *mp; + + mp = message_copy (defmsg); + /* Clear the extracted comments. */ + if (mp->comment_dot != NULL) + { + string_list_free (mp->comment_dot); + mp->comment_dot = NULL; + } + /* Clear the file position comments. */ + if (mp->filepos != NULL) + { + size_t i; + + for (i = 0; i < mp->filepos_count; i++) + free ((char *) mp->filepos[i].file_name); + mp->filepos_count = 0; + free (mp->filepos); + mp->filepos = NULL; + } + /* Mark as obsolete. */ + mp->obsolete = true; + + message_list_append (msgdomain_list_sublist (result, domain, true), + mp); + stats.obsolete++; + } + } } /* Determine the known a-priori encoding, if any. */ @@ -1751,10 +2030,10 @@ fprintf (stderr, _("%s\ Read %ld old + %ld reference, \ merged %ld, fuzzied %ld, missing %ld, obsolete %ld.\n"), - !quiet && verbosity_level <= 1 ? "\n" : "", - (long) def->nitems, (long) ref->nitems, - (long) stats.merged, (long) stats.fuzzied, (long) stats.missing, - (long) stats.obsolete); + !quiet && verbosity_level <= 1 ? "\n" : "", + (long) def->nitems, (long) ref->nitems, + (long) stats.merged, (long) stats.fuzzied, (long) stats.missing, + (long) stats.obsolete); else if (!quiet) fputs (_(" done.\n"), stderr); diff -Nru gettext-0.17/gettext-tools/src/msgunfmt.c gettext-0.18.1.1/gettext-tools/src/msgunfmt.c --- gettext-0.17/gettext-tools/src/msgunfmt.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msgunfmt.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* msgunfmt - converts binary .mo files to Uniforum style .po files - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -43,6 +43,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "propername.h" #include "gettext.h" @@ -77,6 +78,7 @@ /* Long options. */ static const struct option long_options[] = { + { "color", optional_argument, NULL, CHAR_MAX + 6 }, { "csharp", no_argument, NULL, CHAR_MAX + 4 }, { "csharp-resources", no_argument, NULL, CHAR_MAX + 5 }, { "escape", no_argument, NULL, 'E' }, @@ -93,6 +95,7 @@ { "sort-output", no_argument, NULL, 's' }, { "strict", no_argument, NULL, 'S' }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 3 }, + { "style", required_argument, NULL, CHAR_MAX + 7 }, { "tcl", no_argument, NULL, CHAR_MAX + 1 }, { "verbose", no_argument, NULL, 'v' }, { "version", no_argument, NULL, 'V' }, @@ -104,7 +107,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void read_one_file (message_list_ty *mlp, const char *filename); @@ -139,107 +142,116 @@ atexit (close_stdout); while ((optchar = getopt_long (argc, argv, "d:eEhijl:o:pr:svVw:", - long_options, NULL)) - != EOF) + long_options, NULL)) + != EOF) switch (optchar) { case '\0': - /* long option */ - break; + /* long option */ + break; case 'd': - csharp_base_directory = optarg; - tcl_base_directory = optarg; - break; + csharp_base_directory = optarg; + tcl_base_directory = optarg; + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'j': - java_mode = true; - break; + java_mode = true; + break; case 'l': - java_locale_name = optarg; - csharp_locale_name = optarg; - tcl_locale_name = optarg; - break; + java_locale_name = optarg; + csharp_locale_name = optarg; + tcl_locale_name = optarg; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'r': - java_resource_name = optarg; - csharp_resource_name = optarg; - break; + java_resource_name = optarg; + csharp_resource_name = optarg; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 'v': - verbose = true; - break; + verbose = true; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: /* --tcl */ - tcl_mode = true; - break; + tcl_mode = true; + break; case CHAR_MAX + 2: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 3: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; case CHAR_MAX + 4: /* --csharp */ - csharp_mode = true; - break; + csharp_mode = true; + break; case CHAR_MAX + 5: /* --csharp-resources */ - csharp_resources_mode = true; - break; + csharp_resources_mode = true; + break; + + case CHAR_MAX + 6: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 7: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - break; + usage (EXIT_FAILURE); + break; } /* Version information is requested. */ @@ -252,7 +264,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -273,90 +285,90 @@ /* More than one bit set? */ if (modes & (modes - 1)) { - const char *first_option; - const char *second_option; - unsigned int i; - for (i = 0; ; i++) - if (modes & (1 << i)) - break; - first_option = mode_options[i]; - for (i = i + 1; ; i++) - if (modes & (1 << i)) - break; - second_option = mode_options[i]; - error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - first_option, second_option); + const char *first_option; + const char *second_option; + unsigned int i; + for (i = 0; ; i++) + if (modes & (1 << i)) + break; + first_option = mode_options[i]; + for (i = i + 1; ; i++) + if (modes & (1 << i)) + break; + second_option = mode_options[i]; + error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), + first_option, second_option); } } if (java_mode) { if (optind < argc) - { - error (EXIT_FAILURE, 0, - _("%s and explicit file names are mutually exclusive"), - "--java"); - } + { + error (EXIT_FAILURE, 0, + _("%s and explicit file names are mutually exclusive"), + "--java"); + } } else if (csharp_mode) { if (optind < argc) - { - error (EXIT_FAILURE, 0, - _("%s and explicit file names are mutually exclusive"), - "--csharp"); - } + { + error (EXIT_FAILURE, 0, + _("%s and explicit file names are mutually exclusive"), + "--csharp"); + } if (csharp_locale_name == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-l locale\" specification"), - "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-l locale\" specification"), + "--csharp"); + usage (EXIT_FAILURE); + } if (csharp_base_directory == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-d directory\" specification"), - "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-d directory\" specification"), + "--csharp"); + usage (EXIT_FAILURE); + } } else if (tcl_mode) { if (optind < argc) - { - error (EXIT_FAILURE, 0, - _("%s and explicit file names are mutually exclusive"), - "--tcl"); - } + { + error (EXIT_FAILURE, 0, + _("%s and explicit file names are mutually exclusive"), + "--tcl"); + } if (tcl_locale_name == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-l locale\" specification"), - "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-l locale\" specification"), + "--tcl"); + usage (EXIT_FAILURE); + } if (tcl_base_directory == NULL) - { - error (EXIT_SUCCESS, 0, - _("%s requires a \"-d directory\" specification"), - "--tcl"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, + _("%s requires a \"-d directory\" specification"), + "--tcl"); + usage (EXIT_FAILURE); + } } else { if (java_resource_name != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), - "--resource", "--java", "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), + "--resource", "--java", "--csharp"); + usage (EXIT_FAILURE); + } if (java_locale_name != NULL) - { - error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), - "--locale", "--java", "--csharp"); - usage (EXIT_FAILURE); - } + { + error (EXIT_SUCCESS, 0, _("%s is only valid with %s or %s"), + "--locale", "--java", "--csharp"); + usage (EXIT_FAILURE); + } } /* Read the given .mo file. */ @@ -367,7 +379,7 @@ else if (csharp_mode) { result = msgdomain_read_csharp (csharp_resource_name, csharp_locale_name, - csharp_base_directory); + csharp_base_directory); } else if (tcl_mode) { @@ -379,13 +391,13 @@ mlp = message_list_alloc (false); if (optind < argc) - { - do - read_one_file (mlp, argv[optind]); - while (++optind < argc); - } + { + do + read_one_file (mlp, argv[optind]); + while (++optind < argc); + } else - read_one_file (mlp, "-"); + read_one_file (mlp, "-"); result = msgdomain_list_alloc (false); result->item[0]->messages = mlp; @@ -409,7 +421,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -485,6 +497,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -520,7 +538,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/msguniq.c gettext-0.18.1.1/gettext-tools/src/msguniq.c --- gettext-0.17/gettext-tools/src/msguniq.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/msguniq.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Remove, select or merge duplicate translations. - Copyright (C) 2001-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -43,6 +43,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "msgl-cat.h" #include "propername.h" #include "gettext.h" @@ -60,6 +61,7 @@ static const struct option long_options[] = { { "add-location", no_argument, &line_comment, 1 }, + { "color", optional_argument, NULL, CHAR_MAX + 5 }, { "directory", required_argument, NULL, 'D' }, { "escape", no_argument, NULL, 'E' }, { "force-po", no_argument, &force_po, 1 }, @@ -77,6 +79,7 @@ { "strict", no_argument, NULL, 'S' }, { "stringtable-input", no_argument, NULL, CHAR_MAX + 3 }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 4 }, + { "style", required_argument, NULL, CHAR_MAX + 6 }, { "to-code", required_argument, NULL, 't' }, { "unique", no_argument, NULL, 'u' }, { "use-first", no_argument, NULL, CHAR_MAX + 1 }, @@ -89,7 +92,7 @@ /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; @@ -136,107 +139,116 @@ use_first = false; while ((optchar = getopt_long (argc, argv, "dD:eEFhino:pPst:uVw:", - long_options, NULL)) != EOF) + long_options, NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; case 'd': - more_than = 1; - less_than = INT_MAX; - break; + more_than = 1; + less_than = INT_MAX; + break; case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; case 'h': - do_help = true; - break; + do_help = true; + break; case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; case 'n': - line_comment = 1; - break; + line_comment = 1; + break; case 'o': - output_file = optarg; - break; + output_file = optarg; + break; case 'p': - output_syntax = &output_format_properties; - break; + output_syntax = &output_format_properties; + break; case 'P': - input_syntax = &input_format_properties; - break; + input_syntax = &input_format_properties; + break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; case 't': - to_code = optarg; - break; + to_code = optarg; + break; case 'u': - more_than = 0; - less_than = 2; - break; + more_than = 0; + less_than = 2; + break; case 'V': - do_version = true; - break; + do_version = true; + break; case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; case CHAR_MAX + 1: - use_first = true; - break; + use_first = true; + break; case CHAR_MAX + 2: /* --no-wrap */ - message_page_width_ignore (); - break; + message_page_width_ignore (); + break; case CHAR_MAX + 3: /* --stringtable-input */ - input_syntax = &input_format_stringtable; - break; + input_syntax = &input_format_stringtable; + break; case CHAR_MAX + 4: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 5: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 6: /* --style */ + handle_style_option (optarg); + break; default: - usage (EXIT_FAILURE); - /* NOTREACHED */ + usage (EXIT_FAILURE); + /* NOTREACHED */ } /* Version information requested. */ @@ -249,7 +261,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2007"); + "2001-2010"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -272,11 +284,11 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* Determine list of files we have to process: a single file. */ file_list = string_list_alloc (); @@ -307,7 +319,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -368,6 +380,12 @@ --use-first use first available translation for each\n\ message, don't merge several translations\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -407,7 +425,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); diff -Nru gettext-0.17/gettext-tools/src/open-catalog.c gettext-0.18.1.1/gettext-tools/src/open-catalog.c --- gettext-0.17/gettext-tools/src/open-catalog.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/open-catalog.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* open-po - search for .po file along search path list and open for reading - Copyright (C) 1995-1996, 2000-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 2000-2003, 2005-2009 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -30,6 +30,7 @@ #include "dir-list.h" #include "filename.h" +#include "concat-filename.h" #include "xalloc.h" #include "xvasprintf.h" #include "po-xerror.h" @@ -37,7 +38,7 @@ #define _(str) gettext (str) -/* This macro is used to determine the number of elements in an erray. */ +/* This macro is used to determine the number of elements in an array. */ #define SIZEOF(a) (sizeof(a)/sizeof(a[0])) static FILE * @@ -61,39 +62,39 @@ if (IS_ABSOLUTE_PATH (input_name)) { for (k = 0; k < SIZEOF (extension); ++k) - { - file_name = concatenated_filename ("", input_name, extension[k]); + { + file_name = xconcatenated_filename ("", input_name, extension[k]); - ret_val = fopen (file_name, "r"); - if (ret_val != NULL || errno != ENOENT) - { - /* We found the file. */ - *real_file_name_p = file_name; - return ret_val; - } + ret_val = fopen (file_name, "r"); + if (ret_val != NULL || errno != ENOENT) + { + /* We found the file. */ + *real_file_name_p = file_name; + return ret_val; + } - free (file_name); - } + free (file_name); + } } else { /* For relative file names, look through the directory search list, - trying the various extensions. If no directory search list is - specified, the current directory is used. */ + trying the various extensions. If no directory search list is + specified, the current directory is used. */ for (j = 0; (dir = dir_list_nth (j)) != NULL; ++j) - for (k = 0; k < SIZEOF (extension); ++k) - { - file_name = concatenated_filename (dir, input_name, extension[k]); - - ret_val = fopen (file_name, "r"); - if (ret_val != NULL || errno != ENOENT) - { - *real_file_name_p = file_name; - return ret_val; - } + for (k = 0; k < SIZEOF (extension); ++k) + { + file_name = xconcatenated_filename (dir, input_name, extension[k]); + + ret_val = fopen (file_name, "r"); + if (ret_val != NULL || errno != ENOENT) + { + *real_file_name_p = file_name; + return ret_val; + } - free (file_name); - } + free (file_name); + } } /* File does not exist. */ @@ -109,7 +110,7 @@ purposes. */ FILE * open_catalog_file (const char *input_name, char **real_file_name_p, - bool exit_on_error) + bool exit_on_error) { FILE *fp = try_open_catalog_file (input_name, real_file_name_p); @@ -117,10 +118,10 @@ { const char *errno_description = strerror (errno); po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while opening \"%s\" for reading"), - *real_file_name_p), - errno_description)); + xasprintf ("%s: %s", + xasprintf (_("error while opening \"%s\" for reading"), + *real_file_name_p), + errno_description)); } return fp; diff -Nru gettext-0.17/gettext-tools/src/open-catalog.h gettext-0.18.1.1/gettext-tools/src/open-catalog.h --- gettext-0.17/gettext-tools/src/open-catalog.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/open-catalog.h 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ file's pathname is returned in *REAL_FILE_NAME_P, for error message purposes. */ extern FILE *open_catalog_file (const char *input_name, - char **real_file_name_p, bool exit_on_error); + char **real_file_name_p, bool exit_on_error); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/plural-distrib.h gettext-0.18.1.1/gettext-tools/src/plural-distrib.h --- gettext-0.17/gettext-tools/src/plural-distrib.h 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/plural-distrib.h 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,57 @@ +/* Value distribution of plural form expressions. + Copyright (C) 2001-2008 Free Software Foundation, Inc. + Written by Bruno Haible , 2001-2005. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef _PLURAL_DISTRIB_H +#define _PLURAL_DISTRIB_H + + +/* Definition of 'struct expression'. */ +#include "plural-exp.h" + + +#ifdef __cplusplus +extern "C" { +#endif + + +/* The value distribution of a plural formula. */ +struct plural_distribution +{ + /* The plural formula as a parsed expression. */ + const struct expression *expr; + + /* OFTEN is either NULL or an array of nplurals elements, + OFTEN[j] being true if the value j appears to be assumed infinitely often + by the plural formula. */ + const unsigned char *often; + + /* The length of the OFTEN array. */ + unsigned long often_length; + + /* A function which evaluates the plural formula for min <= n <= max + and returns the estimated number of times the value j was assumed. */ + unsigned int (*histogram) (const struct plural_distribution *self, + int min, int max, unsigned long j); +}; + + +#ifdef __cplusplus +} +#endif + + +#endif /* _PLURAL_DISTRIB_H */ diff -Nru gettext-0.17/gettext-tools/src/plural-table.c gettext-0.18.1.1/gettext-tools/src/plural-table.c --- gettext-0.17/gettext-tools/src/plural-table.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/plural-table.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Table of known plural form expressions. - Copyright (C) 2001-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2006, 2009-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -26,39 +26,40 @@ struct plural_table_entry plural_table[] = { { "ja", "Japanese", "nplurals=1; plural=0;" }, - { "ko", "Korean", "nplurals=1; plural=0;" }, { "vi", "Vietnamese", "nplurals=1; plural=0;" }, - { "tr", "Turkish", "nplurals=1; plural=0;" }, - { "da", "Danish", "nplurals=2; plural=(n != 1);" }, - { "nl", "Dutch", "nplurals=2; plural=(n != 1);" }, + { "ko", "Korean", "nplurals=1; plural=0;" }, { "en", "English", "nplurals=2; plural=(n != 1);" }, - { "fo", "Faroese", "nplurals=2; plural=(n != 1);" }, { "de", "German", "nplurals=2; plural=(n != 1);" }, - { "nb", "Norwegian Bokmal", "nplurals=2; plural=(n != 1);" }, + { "nl", "Dutch", "nplurals=2; plural=(n != 1);" }, + { "sv", "Swedish", "nplurals=2; plural=(n != 1);" }, + { "da", "Danish", "nplurals=2; plural=(n != 1);" }, { "no", "Norwegian", "nplurals=2; plural=(n != 1);" }, + { "nb", "Norwegian Bokmal", "nplurals=2; plural=(n != 1);" }, { "nn", "Norwegian Nynorsk", "nplurals=2; plural=(n != 1);" }, - { "sv", "Swedish", "nplurals=2; plural=(n != 1);" }, - { "et", "Estonian", "nplurals=2; plural=(n != 1);" }, - { "fi", "Finnish", "nplurals=2; plural=(n != 1);" }, + { "fo", "Faroese", "nplurals=2; plural=(n != 1);" }, + { "es", "Spanish", "nplurals=2; plural=(n != 1);" }, + { "pt", "Portuguese", "nplurals=2; plural=(n != 1);" }, + { "it", "Italian", "nplurals=2; plural=(n != 1);" }, + { "bg", "Bulgarian", "nplurals=2; plural=(n != 1);" }, { "el", "Greek", "nplurals=2; plural=(n != 1);" }, + { "fi", "Finnish", "nplurals=2; plural=(n != 1);" }, + { "et", "Estonian", "nplurals=2; plural=(n != 1);" }, { "he", "Hebrew", "nplurals=2; plural=(n != 1);" }, - { "it", "Italian", "nplurals=2; plural=(n != 1);" }, - { "pt", "Portuguese", "nplurals=2; plural=(n != 1);" }, - { "es", "Spanish", "nplurals=2; plural=(n != 1);" }, { "eo", "Esperanto", "nplurals=2; plural=(n != 1);" }, { "hu", "Hungarian", "nplurals=2; plural=(n != 1);" }, - { "fr", "French", "nplurals=2; plural=(n > 1);" }, + { "tr", "Turkish", "nplurals=2; plural=(n != 1);" }, { "pt_BR", "Brazilian", "nplurals=2; plural=(n > 1);" }, + { "fr", "French", "nplurals=2; plural=(n > 1);" }, { "lv", "Latvian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);" }, { "ga", "Irish", "nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;" }, { "ro", "Romanian", "nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;" }, { "lt", "Lithuanian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);" }, - { "hr", "Croatian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, - { "sr", "Serbian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, { "ru", "Russian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, { "uk", "Ukrainian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, - { "sk", "Slovak", "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" }, + { "sr", "Serbian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, + { "hr", "Croatian", "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, { "cs", "Czech", "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" }, + { "sk", "Slovak", "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" }, { "pl", "Polish", "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);" }, { "sl", "Slovenian", "nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);" } }; diff -Nru gettext-0.17/gettext-tools/src/po-charset.c gettext-0.18.1.1/gettext-tools/src/po-charset.c --- gettext-0.17/gettext-tools/src/po-charset.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-charset.c 2010-06-06 12:49:58.000000000 +0000 @@ -58,8 +58,8 @@ iconv() across platforms. Taken from intl/config.charset. */ static const char *standard_charsets[] = { - ascii, "ANSI_X3.4-1968", "US-ASCII", /* i = 0..2 */ - "ISO-8859-1", "ISO_8859-1", /* i = 3, 4 */ + ascii, "ANSI_X3.4-1968", "US-ASCII", /* i = 0..2 */ + "ISO-8859-1", "ISO_8859-1", /* i = 3, 4 */ "ISO-8859-2", "ISO_8859-2", "ISO-8859-3", "ISO_8859-3", "ISO-8859-4", "ISO_8859-4", @@ -70,7 +70,7 @@ "ISO-8859-9", "ISO_8859-9", "ISO-8859-13", "ISO_8859-13", "ISO-8859-14", "ISO_8859-14", - "ISO-8859-15", "ISO_8859-15", /* i = 25, 26 */ + "ISO-8859-15", "ISO_8859-15", /* i = 25, 26 */ "KOI8-R", "KOI8-U", "KOI8-T", @@ -152,13 +152,13 @@ bool po_is_charset_weird_cjk (const char *canon_charset) { static const char *weird_cjk_charsets[] = - { /* single bytes double bytes */ - "BIG5", /* 0x{00..7F}, 0x{A1..F9}{40..FE} */ - "BIG5-HKSCS", /* 0x{00..7F}, 0x{88..FE}{40..FE} */ - "GBK", /* 0x{00..7F}, 0x{81..FE}{40..FE} */ - "GB18030", /* 0x{00..7F}, 0x{81..FE}{30..FE} */ - "SHIFT_JIS", /* 0x{00..7F}, 0x{81..F9}{40..FC} */ - "JOHAB" /* 0x{00..7F}, 0x{84..F9}{31..FE} */ + { /* single bytes double bytes */ + "BIG5", /* 0x{00..7F}, 0x{A1..F9}{40..FE} */ + "BIG5-HKSCS", /* 0x{00..7F}, 0x{88..FE}{40..FE} */ + "GBK", /* 0x{00..7F}, 0x{81..FE}{40..FE} */ + "GB18030", /* 0x{00..7F}, 0x{81..FE}{30..FE} */ + "SHIFT_JIS", /* 0x{00..7F}, 0x{81..F9}{40..FC} */ + "JOHAB" /* 0x{00..7F}, 0x{84..F9}{31..FE} */ }; size_t i; @@ -189,7 +189,7 @@ { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 < 0xff) - return 2; + return 2; } return 1; } @@ -203,23 +203,23 @@ { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 < 0xff) - return 2; + return 2; } else if (c == 0x8e) { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 < 0xe0) - return 2; + return 2; } else if (c == 0x8f) { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 < 0xff) - { - unsigned char c3 = s[2]; - if (c3 >= 0xa1 && c3 < 0xff) - return 3; - } + { + unsigned char c3 = s[2]; + if (c3 >= 0xa1 && c3 < 0xff) + return 3; + } } return 1; } @@ -233,21 +233,21 @@ { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 < 0xff) - return 2; + return 2; } else if (c == 0x8e) { unsigned char c2 = s[1]; if (c2 >= 0xa1 && c2 <= 0xb0) - { - unsigned char c3 = s[2]; - if (c3 >= 0xa1 && c3 < 0xff) - { - unsigned char c4 = s[3]; - if (c4 >= 0xa1 && c4 < 0xff) - return 4; - } - } + { + unsigned char c3 = s[2]; + if (c3 >= 0xa1 && c3 < 0xff) + { + unsigned char c4 = s[3]; + if (c4 >= 0xa1 && c4 < 0xff) + return 4; + } + } } return 1; } @@ -261,7 +261,7 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) - return 2; + return 2; } return 1; } @@ -275,7 +275,7 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) - return 2; + return 2; } return 1; } @@ -290,7 +290,7 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0x80 && c2 < 0xff)) - return 2; + return 2; } return 1; } @@ -304,21 +304,21 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0x80 && c2 < 0xff)) - return 2; + return 2; } if (c >= 0x81 && c <= 0x84) { unsigned char c2 = s[1]; if (c2 >= 0x30 && c2 <= 0x39) - { - unsigned char c3 = s[2]; - if (c3 >= 0x81 && c3 < 0xff) - { - unsigned char c4 = s[3]; - if (c4 >= 0x30 && c4 <= 0x39) - return 4; - } - } + { + unsigned char c3 = s[2]; + if (c3 >= 0x81 && c3 < 0xff) + { + unsigned char c4 = s[3]; + if (c4 >= 0x30 && c4 <= 0x39) + return 4; + } + } } return 1; } @@ -332,7 +332,7 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x40 && c2 <= 0x7e) || (c2 >= 0x80 && c2 <= 0xfc)) - return 2; + return 2; } return 1; } @@ -347,13 +347,13 @@ { unsigned char c2 = s[1]; if ((c2 >= 0x41 && c2 < 0x7f) || (c2 >= 0x81 && c2 < 0xff)) - return 2; + return 2; } else if (c >= 0xd9 && c <= 0xf9) { unsigned char c2 = s[1]; if ((c2 >= 0x31 && c2 <= 0x7e) || (c2 >= 0x91 && c2 <= 0xfe)) - return 2; + return 2; } return 1; } @@ -366,35 +366,35 @@ if (c >= 0xc2) { if (c < 0xe0) - { - unsigned char c2 = s[1]; - if (c2 >= 0x80 && c2 < 0xc0) - return 2; - } + { + unsigned char c2 = s[1]; + if (c2 >= 0x80 && c2 < 0xc0) + return 2; + } else if (c < 0xf0) - { - unsigned char c2 = s[1]; - if (c2 >= 0x80 && c2 < 0xc0) - { - unsigned char c3 = s[2]; - if (c3 >= 0x80 && c3 < 0xc0) - return 3; - } - } + { + unsigned char c2 = s[1]; + if (c2 >= 0x80 && c2 < 0xc0) + { + unsigned char c3 = s[2]; + if (c3 >= 0x80 && c3 < 0xc0) + return 3; + } + } else if (c < 0xf8) - { - unsigned char c2 = s[1]; - if (c2 >= 0x80 && c2 < 0xc0) - { - unsigned char c3 = s[2]; - if (c3 >= 0x80 && c3 < 0xc0) - { - unsigned char c4 = s[3]; - if (c4 >= 0x80 && c4 < 0xc0) - return 4; - } - } - } + { + unsigned char c2 = s[1]; + if (c2 >= 0x80 && c2 < 0xc0) + { + unsigned char c3 = s[2]; + if (c3 >= 0x80 && c3 < 0xc0) + { + unsigned char c4 = s[3]; + if (c4 >= 0x80 && c4 < 0xc0) + return 4; + } + } + } } return 1; } @@ -457,9 +457,9 @@ { /* Verify the validity of CHARSET. It is necessary 1. for the correct treatment of multibyte characters containing - 0x5C bytes in the PO lexer, + 0x5C bytes in the PO lexer, 2. so that at run time, gettext() can call iconv() to convert - msgstr. */ + msgstr. */ const char *charsetstr = c_strstr (header_entry, "charset="); if (charsetstr != NULL) @@ -476,171 +476,171 @@ canon_charset = po_charset_canonicalize (charset); if (canon_charset == NULL) - { - /* Don't warn for POT files, because POT files usually contain - only ASCII msgids. */ - size_t filenamelen = strlen (filename); - - if (!(filenamelen >= 4 - && memcmp (filename + filenamelen - 4, ".pot", 4) == 0 - && strcmp (charset, "CHARSET") == 0)) - { - char *warning_message = - xasprintf (_("\ + { + /* Don't warn for POT files, because POT files usually contain + only ASCII msgids. */ + size_t filenamelen = strlen (filename); + + if (!(filenamelen >= 4 + && memcmp (filename + filenamelen - 4, ".pot", 4) == 0 + && strcmp (charset, "CHARSET") == 0)) + { + char *warning_message = + xasprintf (_("\ Charset \"%s\" is not a portable encoding name.\n\ Message conversion to user's charset might not work.\n"), - charset); - po_xerror (PO_SEVERITY_WARNING, NULL, - filename, (size_t)(-1), (size_t)(-1), true, - warning_message); - free (warning_message); - } - } + charset); + po_xerror (PO_SEVERITY_WARNING, NULL, + filename, (size_t)(-1), (size_t)(-1), true, + warning_message); + free (warning_message); + } + } else - { - const char *envval; + { + const char *envval; - po_lex_charset = canon_charset; + po_lex_charset = canon_charset; #if HAVE_ICONV - if (po_lex_iconv != (iconv_t)(-1)) - iconv_close (po_lex_iconv); + if (po_lex_iconv != (iconv_t)(-1)) + iconv_close (po_lex_iconv); #endif - /* The old Solaris/openwin msgfmt and GNU msgfmt <= 0.10.35 - don't know about multibyte encodings, and require a spurious - backslash after every multibyte character whose last byte is - 0x5C. Some programs, like vim, distribute PO files in this - broken format. GNU msgfmt must continue to support this old - PO file format when the Makefile requests it. */ - envval = getenv ("OLD_PO_FILE_INPUT"); - if (envval != NULL && *envval != '\0') - { - /* Assume the PO file is in old format, with extraneous - backslashes. */ + /* The old Solaris/openwin msgfmt and GNU msgfmt <= 0.10.35 + don't know about multibyte encodings, and require a spurious + backslash after every multibyte character whose last byte is + 0x5C. Some programs, like vim, distribute PO files in this + broken format. GNU msgfmt must continue to support this old + PO file format when the Makefile requests it. */ + envval = getenv ("OLD_PO_FILE_INPUT"); + if (envval != NULL && *envval != '\0') + { + /* Assume the PO file is in old format, with extraneous + backslashes. */ #if HAVE_ICONV - po_lex_iconv = (iconv_t)(-1); + po_lex_iconv = (iconv_t)(-1); #endif - po_lex_weird_cjk = false; - } - else - { - /* Use iconv() to parse multibyte characters. */ + po_lex_weird_cjk = false; + } + else + { + /* Use iconv() to parse multibyte characters. */ #if HAVE_ICONV - /* Avoid glibc-2.1 bug with EUC-KR. */ + /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION - if (strcmp (po_lex_charset, "EUC-KR") == 0) - po_lex_iconv = (iconv_t)(-1); - else + if (strcmp (po_lex_charset, "EUC-KR") == 0) + po_lex_iconv = (iconv_t)(-1); + else # endif - /* Avoid Solaris 2.9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, - GBK, GB18030. */ + /* Avoid Solaris 2.9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, + GBK, GB18030. */ # if defined __sun && !defined _LIBICONV_VERSION - if ( strcmp (po_lex_charset, "GB2312") == 0 - || strcmp (po_lex_charset, "EUC-TW") == 0 - || strcmp (po_lex_charset, "BIG5") == 0 - || strcmp (po_lex_charset, "BIG5-HKSCS") == 0 - || strcmp (po_lex_charset, "GBK") == 0 - || strcmp (po_lex_charset, "GB18030") == 0) - po_lex_iconv = (iconv_t)(-1); - else + if ( strcmp (po_lex_charset, "GB2312") == 0 + || strcmp (po_lex_charset, "EUC-TW") == 0 + || strcmp (po_lex_charset, "BIG5") == 0 + || strcmp (po_lex_charset, "BIG5-HKSCS") == 0 + || strcmp (po_lex_charset, "GBK") == 0 + || strcmp (po_lex_charset, "GB18030") == 0) + po_lex_iconv = (iconv_t)(-1); + else # endif - po_lex_iconv = iconv_open ("UTF-8", po_lex_charset); - if (po_lex_iconv == (iconv_t)(-1)) - { - char *warning_message; - const char *recommendation; - const char *note; - char *whole_message; + po_lex_iconv = iconv_open ("UTF-8", po_lex_charset); + if (po_lex_iconv == (iconv_t)(-1)) + { + char *warning_message; + const char *recommendation; + const char *note; + char *whole_message; - warning_message = - xasprintf (_("\ + warning_message = + xasprintf (_("\ Charset \"%s\" is not supported. %s relies on iconv(),\n\ and iconv() does not support \"%s\".\n"), - po_lex_charset, basename (program_name), - po_lex_charset); + po_lex_charset, basename (program_name), + po_lex_charset); # if !defined _LIBICONV_VERSION - recommendation = _("\ + recommendation = _("\ Installing GNU libiconv and then reinstalling GNU gettext\n\ would fix this problem.\n"); # else - recommendation = ""; + recommendation = ""; # endif - /* Test for a charset which has double-byte characters - ending in 0x5C. For these encodings, the string parser - is likely to be confused if it can't see the character - boundaries. */ - po_lex_weird_cjk = po_is_charset_weird_cjk (po_lex_charset); - if (po_is_charset_weird (po_lex_charset) - && !po_lex_weird_cjk) - note = _("Continuing anyway, expect parse errors."); - else - note = _("Continuing anyway."); - - whole_message = - xasprintf ("%s%s%s\n", - warning_message, recommendation, note); - - po_xerror (PO_SEVERITY_WARNING, NULL, - filename, (size_t)(-1), (size_t)(-1), true, - whole_message); - - free (whole_message); - free (warning_message); - } + /* Test for a charset which has double-byte characters + ending in 0x5C. For these encodings, the string parser + is likely to be confused if it can't see the character + boundaries. */ + po_lex_weird_cjk = po_is_charset_weird_cjk (po_lex_charset); + if (po_is_charset_weird (po_lex_charset) + && !po_lex_weird_cjk) + note = _("Continuing anyway, expect parse errors."); + else + note = _("Continuing anyway."); + + whole_message = + xasprintf ("%s%s%s\n", + warning_message, recommendation, note); + + po_xerror (PO_SEVERITY_WARNING, NULL, + filename, (size_t)(-1), (size_t)(-1), true, + whole_message); + + free (whole_message); + free (warning_message); + } #else - /* Test for a charset which has double-byte characters - ending in 0x5C. For these encodings, the string parser - is likely to be confused if it can't see the character - boundaries. */ - po_lex_weird_cjk = po_is_charset_weird_cjk (po_lex_charset); - if (po_is_charset_weird (po_lex_charset) && !po_lex_weird_cjk) - { - char *warning_message; - const char *recommendation; - const char *note; - char *whole_message; + /* Test for a charset which has double-byte characters + ending in 0x5C. For these encodings, the string parser + is likely to be confused if it can't see the character + boundaries. */ + po_lex_weird_cjk = po_is_charset_weird_cjk (po_lex_charset); + if (po_is_charset_weird (po_lex_charset) && !po_lex_weird_cjk) + { + char *warning_message; + const char *recommendation; + const char *note; + char *whole_message; - warning_message = - xasprintf (_("\ + warning_message = + xasprintf (_("\ Charset \"%s\" is not supported. %s relies on iconv().\n\ This version was built without iconv().\n"), - po_lex_charset, basename (program_name)); + po_lex_charset, basename (program_name)); - recommendation = _("\ + recommendation = _("\ Installing GNU libiconv and then reinstalling GNU gettext\n\ would fix this problem.\n"); - note = _("Continuing anyway, expect parse errors."); + note = _("Continuing anyway, expect parse errors."); - whole_message = - xasprintf ("%s%s%s\n", - warning_message, recommendation, note); - - po_xerror (PO_SEVERITY_WARNING, NULL, - filename, (size_t)(-1), (size_t)(-1), true, - whole_message); - - free (whole_message); - free (warning_message); - } + whole_message = + xasprintf ("%s%s%s\n", + warning_message, recommendation, note); + + po_xerror (PO_SEVERITY_WARNING, NULL, + filename, (size_t)(-1), (size_t)(-1), true, + whole_message); + + free (whole_message); + free (warning_message); + } #endif - } - } + } + } freea (charset); } else { /* Don't warn for POT files, because POT files usually contain - only ASCII msgids. */ + only ASCII msgids. */ size_t filenamelen = strlen (filename); if (!(filenamelen >= 4 - && memcmp (filename + filenamelen - 4, ".pot", 4) == 0)) - po_xerror (PO_SEVERITY_WARNING, - NULL, filename, (size_t)(-1), (size_t)(-1), true, - _("\ + && memcmp (filename + filenamelen - 4, ".pot", 4) == 0)) + po_xerror (PO_SEVERITY_WARNING, + NULL, filename, (size_t)(-1), (size_t)(-1), true, + _("\ Charset missing in header.\n\ Message conversion to user's charset will not work.\n")); } diff -Nru gettext-0.17/gettext-tools/src/po-charset.h gettext-0.18.1.1/gettext-tools/src/po-charset.h --- gettext-0.17/gettext-tools/src/po-charset.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-charset.h 2010-06-06 12:49:58.000000000 +0000 @@ -79,7 +79,7 @@ /* Set the PO file's encoding from the header entry. */ extern void po_lex_charset_set (const char *header_entry, - const char *filename); + const char *filename); /* Finish up with the PO file's encoding. */ extern void po_lex_charset_close (void); diff -Nru gettext-0.17/gettext-tools/src/po-error.c gettext-0.18.1.1/gettext-tools/src/po-error.c --- gettext-0.17/gettext-tools/src/po-error.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-error.c 2010-06-06 12:49:58.000000000 +0000 @@ -28,12 +28,12 @@ void (*po_error) (int status, int errnum, - const char *format, ...) + const char *format, ...) = error; void (*po_error_at_line) (int status, int errnum, - const char *filename, unsigned int lineno, - const char *format, ...) + const char *filename, unsigned int lineno, + const char *format, ...) = error_at_line; void (*po_multiline_warning) (char *prefix, char *message) diff -Nru gettext-0.17/gettext-tools/src/po-error.h gettext-0.18.1.1/gettext-tools/src/po-error.h --- gettext-0.17/gettext-tools/src/po-error.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-error.h 2010-06-06 12:49:58.000000000 +0000 @@ -44,15 +44,15 @@ extern DLL_VARIABLE void (*po_error) (int status, int errnum, - const char *format, ...) + const char *format, ...) #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3 __attribute__ ((__format__ (__printf__, 3, 4))) #endif ; extern DLL_VARIABLE void (*po_error_at_line) (int status, int errnum, - const char *filename, unsigned int lineno, - const char *format, ...) + const char *filename, unsigned int lineno, + const char *format, ...) #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ > 3 __attribute__ ((__format__ (__printf__, 5, 6))) #endif diff -Nru gettext-0.17/gettext-tools/src/po-gram-gen2.h gettext-0.18.1.1/gettext-tools/src/po-gram-gen2.h --- gettext-0.17/gettext-tools/src/po-gram-gen2.h 2007-10-07 21:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-gram-gen2.h 2010-03-28 18:41:53.000000000 +0000 @@ -1,24 +1,23 @@ -/* A Bison parser, made by GNU Bison 2.3a. */ -/* Skeleton interface for Bison's Yacc-like parsers in C +/* A Bison parser, made by GNU Bison 2.4.1. */ - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -29,7 +28,7 @@ special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. - + This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ @@ -77,7 +76,9 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -{/* Line 1487 of yacc.c. */ +{ + +/* Line 1676 of yacc.c */ #line 143 "po-gram-gen.y" struct { char *string; lex_pos_ty pos; bool obsolete; } string; @@ -87,10 +88,12 @@ struct { char *ctxt; char *id; char *id_plural; lex_pos_ty pos; bool obsolete; } prev; struct { char *prev_ctxt; char *prev_id; char *prev_id_plural; char *ctxt; lex_pos_ty pos; bool obsolete; } message_intro; struct { struct msgstr_def rhs; lex_pos_ty pos; bool obsolete; } rhs; -} -/* Line 1487 of yacc.c. */ -#line 93 "po-gram-gen.h" - YYSTYPE; + + + +/* Line 1676 of yacc.c */ +#line 96 "po-gram-gen.h" +} YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define po_gram_stype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 diff -Nru gettext-0.17/gettext-tools/src/po-gram-gen.c gettext-0.18.1.1/gettext-tools/src/po-gram-gen.c --- gettext-0.17/gettext-tools/src/po-gram-gen.c 2007-10-07 21:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-gram-gen.c 2010-06-06 18:37:31.000000000 +0000 @@ -1,24 +1,23 @@ -/* A Bison parser, made by GNU Bison 2.3a. */ -/* Skeleton implementation for Bison's Yacc-like parsers in C +/* A Bison parser, made by GNU Bison 2.4.1. */ - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +/* Skeleton implementation for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -29,7 +28,7 @@ special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. - + This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ @@ -47,7 +46,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.3a" +#define YYBISON_VERSION "2.4.1" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -55,13 +54,20 @@ /* Pure parsers. */ #define YYPURE 0 +/* Push parsers. */ +#define YYPUSH 0 + +/* Pull parsers. */ +#define YYPULL 1 + /* Using locations. */ #define YYLSP_NEEDED 0 /* Copy the first part of user declarations. */ -/* Line 164 of yacc.c. */ + +/* Line 189 of yacc.c */ #line 19 "po-gram-gen.y" #ifdef HAVE_CONFIG_H @@ -141,35 +147,38 @@ static inline void do_callback_message (char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, - char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, char *prev_msgid_plural, - bool obsolete) + char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, + char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, char *prev_msgid_plural, + bool obsolete) { /* Test for header entry. Ignore fuzziness of the header entry. */ if (msgctxt == NULL && msgid[0] == '\0' && !obsolete) po_lex_charset_set (msgstr, gram_pos.file_name); po_callback_message (msgctxt, - msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - false, obsolete); + msgid, msgid_pos, msgid_plural, + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + false, obsolete); } #define free_message_intro(value) \ - if ((value).prev_ctxt != NULL) \ - free ((value).prev_ctxt); \ - if ((value).prev_id != NULL) \ - free ((value).prev_id); \ - if ((value).prev_id_plural != NULL) \ - free ((value).prev_id_plural); \ - if ((value).ctxt != NULL) \ + if ((value).prev_ctxt != NULL) \ + free ((value).prev_ctxt); \ + if ((value).prev_id != NULL) \ + free ((value).prev_id); \ + if ((value).prev_id_plural != NULL) \ + free ((value).prev_id_plural); \ + if ((value).ctxt != NULL) \ free ((value).ctxt); +/* Line 189 of yacc.c */ +#line 181 "po-gram-gen.c" + /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 @@ -232,7 +241,9 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -{/* Line 191 of yacc.c. */ +{ + +/* Line 214 of yacc.c */ #line 143 "po-gram-gen.y" struct { char *string; lex_pos_ty pos; bool obsolete; } string; @@ -242,22 +253,23 @@ struct { char *ctxt; char *id; char *id_plural; lex_pos_ty pos; bool obsolete; } prev; struct { char *prev_ctxt; char *prev_id; char *prev_id_plural; char *ctxt; lex_pos_ty pos; bool obsolete; } message_intro; struct { struct msgstr_def rhs; lex_pos_ty pos; bool obsolete; } rhs; -} -/* Line 191 of yacc.c. */ -#line 248 "po-gram-gen.c" - YYSTYPE; + + + +/* Line 214 of yacc.c */ +#line 261 "po-gram-gen.c" +} YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif - - /* Copy the second part of user declarations. */ -/* Line 221 of yacc.c. */ -#line 261 "po-gram-gen.c" + +/* Line 264 of yacc.c */ +#line 273 "po-gram-gen.c" #ifdef short # undef short @@ -420,9 +432,9 @@ /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss; - YYSTYPE yyvs; - }; + yytype_int16 yyss_alloc; + YYSTYPE yyvs_alloc; +}; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) @@ -456,12 +468,12 @@ elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack) \ +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack, Stack, yysize); \ - Stack = &yyptr->Stack; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ @@ -903,11 +915,11 @@ /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { - fprintf (stderr, " $%d = ", yyi + 1); + YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); - fprintf (stderr, "\n"); + YYFPRINTF (stderr, "\n"); } } @@ -1187,10 +1199,8 @@ break; } } - /* Prevent warnings from -Wmissing-prototypes. */ - #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); @@ -1206,7 +1216,6 @@ #endif /* ! YYPARSE_PARAM */ - /* The lookahead symbol. */ int yychar; @@ -1218,9 +1227,9 @@ -/*----------. -| yyparse. | -`----------*/ +/*-------------------------. +| yyparse or yypush_parse. | +`-------------------------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ @@ -1244,14 +1253,39 @@ #endif #endif { - - int yystate; + + + int yystate; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + + /* The stacks and their tools: + `yyss': related to states. + `yyvs': related to semantic values. + + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + yytype_int16 yyssa[YYINITDEPTH]; + yytype_int16 *yyss; + yytype_int16 *yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs; + YYSTYPE *yyvsp; + + YYSIZE_T yystacksize; + int yyn; int yyresult; - /* Number of tokens to shift before error messages enabled. */ - int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; + int yytoken; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; + #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; @@ -1259,51 +1293,28 @@ YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif - /* Three stacks and their tools: - `yyss': related to states, - `yyvs': related to semantic values, - `yyls': related to locations. - - Refer to the stacks thru separate pointers, to allow yyoverflow - to reallocate them elsewhere. */ - - /* The state stack. */ - yytype_int16 yyssa[YYINITDEPTH]; - yytype_int16 *yyss = yyssa; - yytype_int16 *yyssp; - - /* The semantic value stack. */ - YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE *yyvs = yyvsa; - YYSTYPE *yyvsp; - - - #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) - YYSIZE_T yystacksize = YYINITDEPTH; - - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - - /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; + yytoken = 0; + yyss = yyssa; + yyvs = yyvsa; + yystacksize = YYINITDEPTH; + YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ + yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ - yyssp = yyss; yyvsp = yyvs; @@ -1333,7 +1344,6 @@ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; - /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might @@ -1341,7 +1351,6 @@ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); yyss = yyss1; @@ -1364,9 +1373,8 @@ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss); - YYSTACK_RELOCATE (yyvs); - + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); @@ -1377,7 +1385,6 @@ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); @@ -1488,325 +1495,350 @@ switch (yyn) { case 7: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 179 "po-gram-gen.y" { - po_callback_comment_dispatcher ((yyvsp[(1) - (1)].string).string); - } + po_callback_comment_dispatcher ((yyvsp[(1) - (1)].string).string); + } break; case 8: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 187 "po-gram-gen.y" { - po_callback_domain ((yyvsp[(2) - (2)].string).string); - } + po_callback_domain ((yyvsp[(2) - (2)].string).string); + } break; case 9: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 195 "po-gram-gen.y" { - char *string2 = string_list_concat_destroy (&(yyvsp[(2) - (4)].stringlist).stringlist); - char *string4 = string_list_concat_destroy (&(yyvsp[(4) - (4)].stringlist).stringlist); + char *string2 = string_list_concat_destroy (&(yyvsp[(2) - (4)].stringlist).stringlist); + char *string4 = string_list_concat_destroy (&(yyvsp[(4) - (4)].stringlist).stringlist); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(2) - (4)].stringlist)); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(3) - (4)].pos)); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(4) - (4)].stringlist)); - if (!(yyvsp[(1) - (4)].message_intro).obsolete || pass_obsolete_entries) - do_callback_message ((yyvsp[(1) - (4)].message_intro).ctxt, string2, &(yyvsp[(1) - (4)].message_intro).pos, NULL, - string4, strlen (string4) + 1, &(yyvsp[(3) - (4)].pos).pos, - (yyvsp[(1) - (4)].message_intro).prev_ctxt, - (yyvsp[(1) - (4)].message_intro).prev_id, (yyvsp[(1) - (4)].message_intro).prev_id_plural, - (yyvsp[(1) - (4)].message_intro).obsolete); - else - { - free_message_intro ((yyvsp[(1) - (4)].message_intro)); - free (string2); - free (string4); - } - } + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(2) - (4)].stringlist)); + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(3) - (4)].pos)); + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(4) - (4)].stringlist)); + if (!(yyvsp[(1) - (4)].message_intro).obsolete || pass_obsolete_entries) + do_callback_message ((yyvsp[(1) - (4)].message_intro).ctxt, string2, &(yyvsp[(1) - (4)].message_intro).pos, NULL, + string4, strlen (string4) + 1, &(yyvsp[(3) - (4)].pos).pos, + (yyvsp[(1) - (4)].message_intro).prev_ctxt, + (yyvsp[(1) - (4)].message_intro).prev_id, (yyvsp[(1) - (4)].message_intro).prev_id_plural, + (yyvsp[(1) - (4)].message_intro).obsolete); + else + { + free_message_intro ((yyvsp[(1) - (4)].message_intro)); + free (string2); + free (string4); + } + } break; case 10: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 216 "po-gram-gen.y" { - char *string2 = string_list_concat_destroy (&(yyvsp[(2) - (4)].stringlist).stringlist); + char *string2 = string_list_concat_destroy (&(yyvsp[(2) - (4)].stringlist).stringlist); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(2) - (4)].stringlist)); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(3) - (4)].string)); - check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(4) - (4)].rhs)); - if (!(yyvsp[(1) - (4)].message_intro).obsolete || pass_obsolete_entries) - do_callback_message ((yyvsp[(1) - (4)].message_intro).ctxt, string2, &(yyvsp[(1) - (4)].message_intro).pos, (yyvsp[(3) - (4)].string).string, - (yyvsp[(4) - (4)].rhs).rhs.msgstr, (yyvsp[(4) - (4)].rhs).rhs.msgstr_len, &(yyvsp[(4) - (4)].rhs).pos, - (yyvsp[(1) - (4)].message_intro).prev_ctxt, - (yyvsp[(1) - (4)].message_intro).prev_id, (yyvsp[(1) - (4)].message_intro).prev_id_plural, - (yyvsp[(1) - (4)].message_intro).obsolete); - else - { - free_message_intro ((yyvsp[(1) - (4)].message_intro)); - free (string2); - free ((yyvsp[(3) - (4)].string).string); - free ((yyvsp[(4) - (4)].rhs).rhs.msgstr); - } - } + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(2) - (4)].stringlist)); + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(3) - (4)].string)); + check_obsolete ((yyvsp[(1) - (4)].message_intro), (yyvsp[(4) - (4)].rhs)); + if (!(yyvsp[(1) - (4)].message_intro).obsolete || pass_obsolete_entries) + do_callback_message ((yyvsp[(1) - (4)].message_intro).ctxt, string2, &(yyvsp[(1) - (4)].message_intro).pos, (yyvsp[(3) - (4)].string).string, + (yyvsp[(4) - (4)].rhs).rhs.msgstr, (yyvsp[(4) - (4)].rhs).rhs.msgstr_len, &(yyvsp[(4) - (4)].rhs).pos, + (yyvsp[(1) - (4)].message_intro).prev_ctxt, + (yyvsp[(1) - (4)].message_intro).prev_id, (yyvsp[(1) - (4)].message_intro).prev_id_plural, + (yyvsp[(1) - (4)].message_intro).obsolete); + else + { + free_message_intro ((yyvsp[(1) - (4)].message_intro)); + free (string2); + free ((yyvsp[(3) - (4)].string).string); + free ((yyvsp[(4) - (4)].rhs).rhs.msgstr); + } + } break; case 11: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 237 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(2) - (3)].stringlist)); - check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(3) - (3)].string)); - po_gram_error_at_line (&(yyvsp[(1) - (3)].message_intro).pos, _("missing `msgstr[]' section")); - free_message_intro ((yyvsp[(1) - (3)].message_intro)); - string_list_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); - free ((yyvsp[(3) - (3)].string).string); - } + check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(2) - (3)].stringlist)); + check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(3) - (3)].string)); + po_gram_error_at_line (&(yyvsp[(1) - (3)].message_intro).pos, _("missing `msgstr[]' section")); + free_message_intro ((yyvsp[(1) - (3)].message_intro)); + string_list_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); + free ((yyvsp[(3) - (3)].string).string); + } break; case 12: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 246 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(2) - (3)].stringlist)); - check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(3) - (3)].rhs)); - po_gram_error_at_line (&(yyvsp[(1) - (3)].message_intro).pos, _("missing `msgid_plural' section")); - free_message_intro ((yyvsp[(1) - (3)].message_intro)); - string_list_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); - free ((yyvsp[(3) - (3)].rhs).rhs.msgstr); - } + check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(2) - (3)].stringlist)); + check_obsolete ((yyvsp[(1) - (3)].message_intro), (yyvsp[(3) - (3)].rhs)); + po_gram_error_at_line (&(yyvsp[(1) - (3)].message_intro).pos, _("missing `msgid_plural' section")); + free_message_intro ((yyvsp[(1) - (3)].message_intro)); + string_list_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); + free ((yyvsp[(3) - (3)].rhs).rhs.msgstr); + } break; case 13: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 255 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].message_intro), (yyvsp[(2) - (2)].stringlist)); - po_gram_error_at_line (&(yyvsp[(1) - (2)].message_intro).pos, _("missing `msgstr' section")); - free_message_intro ((yyvsp[(1) - (2)].message_intro)); - string_list_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); - } + check_obsolete ((yyvsp[(1) - (2)].message_intro), (yyvsp[(2) - (2)].stringlist)); + po_gram_error_at_line (&(yyvsp[(1) - (2)].message_intro).pos, _("missing `msgstr' section")); + free_message_intro ((yyvsp[(1) - (2)].message_intro)); + string_list_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); + } break; case 14: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 266 "po-gram-gen.y" { - (yyval.message_intro).prev_ctxt = NULL; - (yyval.message_intro).prev_id = NULL; - (yyval.message_intro).prev_id_plural = NULL; - (yyval.message_intro).ctxt = (yyvsp[(1) - (1)].string).string; - (yyval.message_intro).pos = (yyvsp[(1) - (1)].string).pos; - (yyval.message_intro).obsolete = (yyvsp[(1) - (1)].string).obsolete; - } + (yyval.message_intro).prev_ctxt = NULL; + (yyval.message_intro).prev_id = NULL; + (yyval.message_intro).prev_id_plural = NULL; + (yyval.message_intro).ctxt = (yyvsp[(1) - (1)].string).string; + (yyval.message_intro).pos = (yyvsp[(1) - (1)].string).pos; + (yyval.message_intro).obsolete = (yyvsp[(1) - (1)].string).obsolete; + } break; case 15: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 275 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].prev), (yyvsp[(2) - (2)].string)); - (yyval.message_intro).prev_ctxt = (yyvsp[(1) - (2)].prev).ctxt; - (yyval.message_intro).prev_id = (yyvsp[(1) - (2)].prev).id; - (yyval.message_intro).prev_id_plural = (yyvsp[(1) - (2)].prev).id_plural; - (yyval.message_intro).ctxt = (yyvsp[(2) - (2)].string).string; - (yyval.message_intro).pos = (yyvsp[(2) - (2)].string).pos; - (yyval.message_intro).obsolete = (yyvsp[(2) - (2)].string).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].prev), (yyvsp[(2) - (2)].string)); + (yyval.message_intro).prev_ctxt = (yyvsp[(1) - (2)].prev).ctxt; + (yyval.message_intro).prev_id = (yyvsp[(1) - (2)].prev).id; + (yyval.message_intro).prev_id_plural = (yyvsp[(1) - (2)].prev).id_plural; + (yyval.message_intro).ctxt = (yyvsp[(2) - (2)].string).string; + (yyval.message_intro).pos = (yyvsp[(2) - (2)].string).pos; + (yyval.message_intro).obsolete = (yyvsp[(2) - (2)].string).obsolete; + } break; case 16: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 289 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].string), (yyvsp[(2) - (2)].stringlist)); - (yyval.prev).ctxt = (yyvsp[(1) - (2)].string).string; - (yyval.prev).id = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); - (yyval.prev).id_plural = NULL; - (yyval.prev).pos = (yyvsp[(1) - (2)].string).pos; - (yyval.prev).obsolete = (yyvsp[(1) - (2)].string).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].string), (yyvsp[(2) - (2)].stringlist)); + (yyval.prev).ctxt = (yyvsp[(1) - (2)].string).string; + (yyval.prev).id = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); + (yyval.prev).id_plural = NULL; + (yyval.prev).pos = (yyvsp[(1) - (2)].string).pos; + (yyval.prev).obsolete = (yyvsp[(1) - (2)].string).obsolete; + } break; case 17: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 298 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (3)].string), (yyvsp[(2) - (3)].stringlist)); - check_obsolete ((yyvsp[(1) - (3)].string), (yyvsp[(3) - (3)].string)); - (yyval.prev).ctxt = (yyvsp[(1) - (3)].string).string; - (yyval.prev).id = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); - (yyval.prev).id_plural = (yyvsp[(3) - (3)].string).string; - (yyval.prev).pos = (yyvsp[(1) - (3)].string).pos; - (yyval.prev).obsolete = (yyvsp[(1) - (3)].string).obsolete; - } + check_obsolete ((yyvsp[(1) - (3)].string), (yyvsp[(2) - (3)].stringlist)); + check_obsolete ((yyvsp[(1) - (3)].string), (yyvsp[(3) - (3)].string)); + (yyval.prev).ctxt = (yyvsp[(1) - (3)].string).string; + (yyval.prev).id = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); + (yyval.prev).id_plural = (yyvsp[(3) - (3)].string).string; + (yyval.prev).pos = (yyvsp[(1) - (3)].string).pos; + (yyval.prev).obsolete = (yyvsp[(1) - (3)].string).obsolete; + } break; case 18: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 312 "po-gram-gen.y" { - (yyval.string).string = NULL; - (yyval.string).pos = (yyvsp[(1) - (1)].pos).pos; - (yyval.string).obsolete = (yyvsp[(1) - (1)].pos).obsolete; - } + (yyval.string).string = NULL; + (yyval.string).pos = (yyvsp[(1) - (1)].pos).pos; + (yyval.string).obsolete = (yyvsp[(1) - (1)].pos).obsolete; + } break; case 19: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 318 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(2) - (3)].stringlist)); - check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(3) - (3)].pos)); - (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); - (yyval.string).pos = (yyvsp[(3) - (3)].pos).pos; - (yyval.string).obsolete = (yyvsp[(3) - (3)].pos).obsolete; - } + check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(2) - (3)].stringlist)); + check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(3) - (3)].pos)); + (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); + (yyval.string).pos = (yyvsp[(3) - (3)].pos).pos; + (yyval.string).obsolete = (yyvsp[(3) - (3)].pos).obsolete; + } break; case 20: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 329 "po-gram-gen.y" { - (yyval.string).string = NULL; - (yyval.string).pos = (yyvsp[(1) - (1)].pos).pos; - (yyval.string).obsolete = (yyvsp[(1) - (1)].pos).obsolete; - } + (yyval.string).string = NULL; + (yyval.string).pos = (yyvsp[(1) - (1)].pos).pos; + (yyval.string).obsolete = (yyvsp[(1) - (1)].pos).obsolete; + } break; case 21: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 335 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(2) - (3)].stringlist)); - check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(3) - (3)].pos)); - (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); - (yyval.string).pos = (yyvsp[(3) - (3)].pos).pos; - (yyval.string).obsolete = (yyvsp[(3) - (3)].pos).obsolete; - } + check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(2) - (3)].stringlist)); + check_obsolete ((yyvsp[(1) - (3)].pos), (yyvsp[(3) - (3)].pos)); + (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (3)].stringlist).stringlist); + (yyval.string).pos = (yyvsp[(3) - (3)].pos).pos; + (yyval.string).obsolete = (yyvsp[(3) - (3)].pos).obsolete; + } break; case 22: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 347 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].pos), (yyvsp[(2) - (2)].stringlist)); - plural_counter = 0; - (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); - (yyval.string).pos = (yyvsp[(1) - (2)].pos).pos; - (yyval.string).obsolete = (yyvsp[(1) - (2)].pos).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].pos), (yyvsp[(2) - (2)].stringlist)); + plural_counter = 0; + (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); + (yyval.string).pos = (yyvsp[(1) - (2)].pos).pos; + (yyval.string).obsolete = (yyvsp[(1) - (2)].pos).obsolete; + } break; case 23: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 358 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].pos), (yyvsp[(2) - (2)].stringlist)); - (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); - (yyval.string).pos = (yyvsp[(1) - (2)].pos).pos; - (yyval.string).obsolete = (yyvsp[(1) - (2)].pos).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].pos), (yyvsp[(2) - (2)].stringlist)); + (yyval.string).string = string_list_concat_destroy (&(yyvsp[(2) - (2)].stringlist).stringlist); + (yyval.string).pos = (yyvsp[(1) - (2)].pos).pos; + (yyval.string).obsolete = (yyvsp[(1) - (2)].pos).obsolete; + } break; case 24: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 369 "po-gram-gen.y" { - (yyval.rhs) = (yyvsp[(1) - (1)].rhs); - } + (yyval.rhs) = (yyvsp[(1) - (1)].rhs); + } break; case 25: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 373 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].rhs), (yyvsp[(2) - (2)].rhs)); - (yyval.rhs).rhs.msgstr = XNMALLOC ((yyvsp[(1) - (2)].rhs).rhs.msgstr_len + (yyvsp[(2) - (2)].rhs).rhs.msgstr_len, char); - memcpy ((yyval.rhs).rhs.msgstr, (yyvsp[(1) - (2)].rhs).rhs.msgstr, (yyvsp[(1) - (2)].rhs).rhs.msgstr_len); - memcpy ((yyval.rhs).rhs.msgstr + (yyvsp[(1) - (2)].rhs).rhs.msgstr_len, (yyvsp[(2) - (2)].rhs).rhs.msgstr, (yyvsp[(2) - (2)].rhs).rhs.msgstr_len); - (yyval.rhs).rhs.msgstr_len = (yyvsp[(1) - (2)].rhs).rhs.msgstr_len + (yyvsp[(2) - (2)].rhs).rhs.msgstr_len; - free ((yyvsp[(1) - (2)].rhs).rhs.msgstr); - free ((yyvsp[(2) - (2)].rhs).rhs.msgstr); - (yyval.rhs).pos = (yyvsp[(1) - (2)].rhs).pos; - (yyval.rhs).obsolete = (yyvsp[(1) - (2)].rhs).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].rhs), (yyvsp[(2) - (2)].rhs)); + (yyval.rhs).rhs.msgstr = XNMALLOC ((yyvsp[(1) - (2)].rhs).rhs.msgstr_len + (yyvsp[(2) - (2)].rhs).rhs.msgstr_len, char); + memcpy ((yyval.rhs).rhs.msgstr, (yyvsp[(1) - (2)].rhs).rhs.msgstr, (yyvsp[(1) - (2)].rhs).rhs.msgstr_len); + memcpy ((yyval.rhs).rhs.msgstr + (yyvsp[(1) - (2)].rhs).rhs.msgstr_len, (yyvsp[(2) - (2)].rhs).rhs.msgstr, (yyvsp[(2) - (2)].rhs).rhs.msgstr_len); + (yyval.rhs).rhs.msgstr_len = (yyvsp[(1) - (2)].rhs).rhs.msgstr_len + (yyvsp[(2) - (2)].rhs).rhs.msgstr_len; + free ((yyvsp[(1) - (2)].rhs).rhs.msgstr); + free ((yyvsp[(2) - (2)].rhs).rhs.msgstr); + (yyval.rhs).pos = (yyvsp[(1) - (2)].rhs).pos; + (yyval.rhs).obsolete = (yyvsp[(1) - (2)].rhs).obsolete; + } break; case 26: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 388 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(2) - (5)].pos)); - check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(3) - (5)].number)); - check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(4) - (5)].pos)); - check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(5) - (5)].stringlist)); - if ((yyvsp[(3) - (5)].number).number != plural_counter) - { - if (plural_counter == 0) - po_gram_error_at_line (&(yyvsp[(1) - (5)].pos).pos, _("first plural form has nonzero index")); - else - po_gram_error_at_line (&(yyvsp[(1) - (5)].pos).pos, _("plural form has wrong index")); - } - plural_counter++; - (yyval.rhs).rhs.msgstr = string_list_concat_destroy (&(yyvsp[(5) - (5)].stringlist).stringlist); - (yyval.rhs).rhs.msgstr_len = strlen ((yyval.rhs).rhs.msgstr) + 1; - (yyval.rhs).pos = (yyvsp[(1) - (5)].pos).pos; - (yyval.rhs).obsolete = (yyvsp[(1) - (5)].pos).obsolete; - } + check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(2) - (5)].pos)); + check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(3) - (5)].number)); + check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(4) - (5)].pos)); + check_obsolete ((yyvsp[(1) - (5)].pos), (yyvsp[(5) - (5)].stringlist)); + if ((yyvsp[(3) - (5)].number).number != plural_counter) + { + if (plural_counter == 0) + po_gram_error_at_line (&(yyvsp[(1) - (5)].pos).pos, _("first plural form has nonzero index")); + else + po_gram_error_at_line (&(yyvsp[(1) - (5)].pos).pos, _("plural form has wrong index")); + } + plural_counter++; + (yyval.rhs).rhs.msgstr = string_list_concat_destroy (&(yyvsp[(5) - (5)].stringlist).stringlist); + (yyval.rhs).rhs.msgstr_len = strlen ((yyval.rhs).rhs.msgstr) + 1; + (yyval.rhs).pos = (yyvsp[(1) - (5)].pos).pos; + (yyval.rhs).obsolete = (yyvsp[(1) - (5)].pos).obsolete; + } break; case 27: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 411 "po-gram-gen.y" { - string_list_init (&(yyval.stringlist).stringlist); - string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(1) - (1)].string).string); - (yyval.stringlist).pos = (yyvsp[(1) - (1)].string).pos; - (yyval.stringlist).obsolete = (yyvsp[(1) - (1)].string).obsolete; - } + string_list_init (&(yyval.stringlist).stringlist); + string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(1) - (1)].string).string); + (yyval.stringlist).pos = (yyvsp[(1) - (1)].string).pos; + (yyval.stringlist).obsolete = (yyvsp[(1) - (1)].string).obsolete; + } break; case 28: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 418 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].stringlist), (yyvsp[(2) - (2)].string)); - (yyval.stringlist).stringlist = (yyvsp[(1) - (2)].stringlist).stringlist; - string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(2) - (2)].string).string); - (yyval.stringlist).pos = (yyvsp[(1) - (2)].stringlist).pos; - (yyval.stringlist).obsolete = (yyvsp[(1) - (2)].stringlist).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].stringlist), (yyvsp[(2) - (2)].string)); + (yyval.stringlist).stringlist = (yyvsp[(1) - (2)].stringlist).stringlist; + string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(2) - (2)].string).string); + (yyval.stringlist).pos = (yyvsp[(1) - (2)].stringlist).pos; + (yyval.stringlist).obsolete = (yyvsp[(1) - (2)].stringlist).obsolete; + } break; case 29: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 429 "po-gram-gen.y" { - string_list_init (&(yyval.stringlist).stringlist); - string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(1) - (1)].string).string); - (yyval.stringlist).pos = (yyvsp[(1) - (1)].string).pos; - (yyval.stringlist).obsolete = (yyvsp[(1) - (1)].string).obsolete; - } + string_list_init (&(yyval.stringlist).stringlist); + string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(1) - (1)].string).string); + (yyval.stringlist).pos = (yyvsp[(1) - (1)].string).pos; + (yyval.stringlist).obsolete = (yyvsp[(1) - (1)].string).obsolete; + } break; case 30: -/* Line 1269 of yacc.c. */ + +/* Line 1455 of yacc.c */ #line 436 "po-gram-gen.y" { - check_obsolete ((yyvsp[(1) - (2)].stringlist), (yyvsp[(2) - (2)].string)); - (yyval.stringlist).stringlist = (yyvsp[(1) - (2)].stringlist).stringlist; - string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(2) - (2)].string).string); - (yyval.stringlist).pos = (yyvsp[(1) - (2)].stringlist).pos; - (yyval.stringlist).obsolete = (yyvsp[(1) - (2)].stringlist).obsolete; - } + check_obsolete ((yyvsp[(1) - (2)].stringlist), (yyvsp[(2) - (2)].string)); + (yyval.stringlist).stringlist = (yyvsp[(1) - (2)].stringlist).stringlist; + string_list_append (&(yyval.stringlist).stringlist, (yyvsp[(2) - (2)].string).string); + (yyval.stringlist).pos = (yyvsp[(1) - (2)].stringlist).pos; + (yyval.stringlist).obsolete = (yyvsp[(1) - (2)].stringlist).obsolete; + } break; -/* Line 1269 of yacc.c. */ -#line 1810 "po-gram-gen.c" + +/* Line 1455 of yacc.c */ +#line 1842 "po-gram-gen.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -1817,7 +1849,6 @@ *++yyvsp = yyval; - /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ @@ -1980,7 +2011,7 @@ yyresult = 1; goto yyreturn; -#ifndef yyoverflow +#if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ diff -Nru gettext-0.17/gettext-tools/src/po-gram-gen.h gettext-0.18.1.1/gettext-tools/src/po-gram-gen.h --- gettext-0.17/gettext-tools/src/po-gram-gen.h 2007-10-07 21:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-gram-gen.h 2010-03-28 18:41:53.000000000 +0000 @@ -1,24 +1,23 @@ -/* A Bison parser, made by GNU Bison 2.3a. */ -/* Skeleton interface for Bison's Yacc-like parsers in C +/* A Bison parser, made by GNU Bison 2.4.1. */ - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work @@ -29,7 +28,7 @@ special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. - + This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ @@ -77,7 +76,9 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -{/* Line 1487 of yacc.c. */ +{ + +/* Line 1676 of yacc.c */ #line 143 "po-gram-gen.y" struct { char *string; lex_pos_ty pos; bool obsolete; } string; @@ -87,10 +88,12 @@ struct { char *ctxt; char *id; char *id_plural; lex_pos_ty pos; bool obsolete; } prev; struct { char *prev_ctxt; char *prev_id; char *prev_id_plural; char *ctxt; lex_pos_ty pos; bool obsolete; } message_intro; struct { struct msgstr_def rhs; lex_pos_ty pos; bool obsolete; } rhs; -} -/* Line 1487 of yacc.c. */ -#line 93 "po-gram-gen.h" - YYSTYPE; + + + +/* Line 1676 of yacc.c */ +#line 96 "po-gram-gen.h" +} YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 diff -Nru gettext-0.17/gettext-tools/src/po-gram-gen.y gettext-0.18.1.1/gettext-tools/src/po-gram-gen.y --- gettext-0.17/gettext-tools/src/po-gram-gen.y 2007-10-07 20:27:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-gram-gen.y 2010-06-06 12:49:58.000000000 +0000 @@ -94,50 +94,50 @@ static inline void do_callback_message (char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, - char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, char *prev_msgid_plural, - bool obsolete) + char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, + char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, char *prev_msgid_plural, + bool obsolete) { /* Test for header entry. Ignore fuzziness of the header entry. */ if (msgctxt == NULL && msgid[0] == '\0' && !obsolete) po_lex_charset_set (msgstr, gram_pos.file_name); po_callback_message (msgctxt, - msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - false, obsolete); + msgid, msgid_pos, msgid_plural, + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + false, obsolete); } #define free_message_intro(value) \ - if ((value).prev_ctxt != NULL) \ - free ((value).prev_ctxt); \ - if ((value).prev_id != NULL) \ - free ((value).prev_id); \ - if ((value).prev_id_plural != NULL) \ - free ((value).prev_id_plural); \ - if ((value).ctxt != NULL) \ + if ((value).prev_ctxt != NULL) \ + free ((value).prev_ctxt); \ + if ((value).prev_id != NULL) \ + free ((value).prev_id); \ + if ((value).prev_id_plural != NULL) \ + free ((value).prev_id_plural); \ + if ((value).ctxt != NULL) \ free ((value).ctxt); %} -%token COMMENT -%token DOMAIN -%token JUNK -%token PREV_MSGCTXT -%token PREV_MSGID -%token PREV_MSGID_PLURAL -%token PREV_STRING -%token MSGCTXT -%token MSGID -%token MSGID_PLURAL -%token MSGSTR -%token NAME -%token '[' ']' -%token NUMBER -%token STRING +%token COMMENT +%token DOMAIN +%token JUNK +%token PREV_MSGCTXT +%token PREV_MSGID +%token PREV_MSGID_PLURAL +%token PREV_STRING +%token MSGCTXT +%token MSGID +%token MSGID_PLURAL +%token MSGSTR +%token NAME +%token '[' ']' +%token NUMBER +%token STRING %union { @@ -166,278 +166,278 @@ %% po_file - : /* empty */ - | po_file comment - | po_file domain - | po_file message - | po_file error - ; + : /* empty */ + | po_file comment + | po_file domain + | po_file message + | po_file error + ; comment - : COMMENT - { - po_callback_comment_dispatcher ($1.string); - } - ; + : COMMENT + { + po_callback_comment_dispatcher ($1.string); + } + ; domain - : DOMAIN STRING - { - po_callback_domain ($2.string); - } - ; + : DOMAIN STRING + { + po_callback_domain ($2.string); + } + ; message - : message_intro string_list MSGSTR string_list - { - char *string2 = string_list_concat_destroy (&$2.stringlist); - char *string4 = string_list_concat_destroy (&$4.stringlist); - - check_obsolete ($1, $2); - check_obsolete ($1, $3); - check_obsolete ($1, $4); - if (!$1.obsolete || pass_obsolete_entries) - do_callback_message ($1.ctxt, string2, &$1.pos, NULL, - string4, strlen (string4) + 1, &$3.pos, - $1.prev_ctxt, - $1.prev_id, $1.prev_id_plural, - $1.obsolete); - else - { - free_message_intro ($1); - free (string2); - free (string4); - } - } - | message_intro string_list msgid_pluralform pluralform_list - { - char *string2 = string_list_concat_destroy (&$2.stringlist); - - check_obsolete ($1, $2); - check_obsolete ($1, $3); - check_obsolete ($1, $4); - if (!$1.obsolete || pass_obsolete_entries) - do_callback_message ($1.ctxt, string2, &$1.pos, $3.string, - $4.rhs.msgstr, $4.rhs.msgstr_len, &$4.pos, - $1.prev_ctxt, - $1.prev_id, $1.prev_id_plural, - $1.obsolete); - else - { - free_message_intro ($1); - free (string2); - free ($3.string); - free ($4.rhs.msgstr); - } - } - | message_intro string_list msgid_pluralform - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - po_gram_error_at_line (&$1.pos, _("missing `msgstr[]' section")); - free_message_intro ($1); - string_list_destroy (&$2.stringlist); - free ($3.string); - } - | message_intro string_list pluralform_list - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - po_gram_error_at_line (&$1.pos, _("missing `msgid_plural' section")); - free_message_intro ($1); - string_list_destroy (&$2.stringlist); - free ($3.rhs.msgstr); - } - | message_intro string_list - { - check_obsolete ($1, $2); - po_gram_error_at_line (&$1.pos, _("missing `msgstr' section")); - free_message_intro ($1); - string_list_destroy (&$2.stringlist); - } - ; + : message_intro string_list MSGSTR string_list + { + char *string2 = string_list_concat_destroy (&$2.stringlist); + char *string4 = string_list_concat_destroy (&$4.stringlist); + + check_obsolete ($1, $2); + check_obsolete ($1, $3); + check_obsolete ($1, $4); + if (!$1.obsolete || pass_obsolete_entries) + do_callback_message ($1.ctxt, string2, &$1.pos, NULL, + string4, strlen (string4) + 1, &$3.pos, + $1.prev_ctxt, + $1.prev_id, $1.prev_id_plural, + $1.obsolete); + else + { + free_message_intro ($1); + free (string2); + free (string4); + } + } + | message_intro string_list msgid_pluralform pluralform_list + { + char *string2 = string_list_concat_destroy (&$2.stringlist); + + check_obsolete ($1, $2); + check_obsolete ($1, $3); + check_obsolete ($1, $4); + if (!$1.obsolete || pass_obsolete_entries) + do_callback_message ($1.ctxt, string2, &$1.pos, $3.string, + $4.rhs.msgstr, $4.rhs.msgstr_len, &$4.pos, + $1.prev_ctxt, + $1.prev_id, $1.prev_id_plural, + $1.obsolete); + else + { + free_message_intro ($1); + free (string2); + free ($3.string); + free ($4.rhs.msgstr); + } + } + | message_intro string_list msgid_pluralform + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + po_gram_error_at_line (&$1.pos, _("missing `msgstr[]' section")); + free_message_intro ($1); + string_list_destroy (&$2.stringlist); + free ($3.string); + } + | message_intro string_list pluralform_list + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + po_gram_error_at_line (&$1.pos, _("missing `msgid_plural' section")); + free_message_intro ($1); + string_list_destroy (&$2.stringlist); + free ($3.rhs.msgstr); + } + | message_intro string_list + { + check_obsolete ($1, $2); + po_gram_error_at_line (&$1.pos, _("missing `msgstr' section")); + free_message_intro ($1); + string_list_destroy (&$2.stringlist); + } + ; message_intro - : msg_intro - { - $$.prev_ctxt = NULL; - $$.prev_id = NULL; - $$.prev_id_plural = NULL; - $$.ctxt = $1.string; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | prev msg_intro - { - check_obsolete ($1, $2); - $$.prev_ctxt = $1.ctxt; - $$.prev_id = $1.id; - $$.prev_id_plural = $1.id_plural; - $$.ctxt = $2.string; - $$.pos = $2.pos; - $$.obsolete = $2.obsolete; - } - ; + : msg_intro + { + $$.prev_ctxt = NULL; + $$.prev_id = NULL; + $$.prev_id_plural = NULL; + $$.ctxt = $1.string; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | prev msg_intro + { + check_obsolete ($1, $2); + $$.prev_ctxt = $1.ctxt; + $$.prev_id = $1.id; + $$.prev_id_plural = $1.id_plural; + $$.ctxt = $2.string; + $$.pos = $2.pos; + $$.obsolete = $2.obsolete; + } + ; prev - : prev_msg_intro prev_string_list - { - check_obsolete ($1, $2); - $$.ctxt = $1.string; - $$.id = string_list_concat_destroy (&$2.stringlist); - $$.id_plural = NULL; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | prev_msg_intro prev_string_list prev_msgid_pluralform - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - $$.ctxt = $1.string; - $$.id = string_list_concat_destroy (&$2.stringlist); - $$.id_plural = $3.string; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : prev_msg_intro prev_string_list + { + check_obsolete ($1, $2); + $$.ctxt = $1.string; + $$.id = string_list_concat_destroy (&$2.stringlist); + $$.id_plural = NULL; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | prev_msg_intro prev_string_list prev_msgid_pluralform + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + $$.ctxt = $1.string; + $$.id = string_list_concat_destroy (&$2.stringlist); + $$.id_plural = $3.string; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; msg_intro - : MSGID - { - $$.string = NULL; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | MSGCTXT string_list MSGID - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - $$.string = string_list_concat_destroy (&$2.stringlist); - $$.pos = $3.pos; - $$.obsolete = $3.obsolete; - } - ; + : MSGID + { + $$.string = NULL; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | MSGCTXT string_list MSGID + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + $$.string = string_list_concat_destroy (&$2.stringlist); + $$.pos = $3.pos; + $$.obsolete = $3.obsolete; + } + ; prev_msg_intro - : PREV_MSGID - { - $$.string = NULL; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | PREV_MSGCTXT prev_string_list PREV_MSGID - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - $$.string = string_list_concat_destroy (&$2.stringlist); - $$.pos = $3.pos; - $$.obsolete = $3.obsolete; - } - ; + : PREV_MSGID + { + $$.string = NULL; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | PREV_MSGCTXT prev_string_list PREV_MSGID + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + $$.string = string_list_concat_destroy (&$2.stringlist); + $$.pos = $3.pos; + $$.obsolete = $3.obsolete; + } + ; msgid_pluralform - : MSGID_PLURAL string_list - { - check_obsolete ($1, $2); - plural_counter = 0; - $$.string = string_list_concat_destroy (&$2.stringlist); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : MSGID_PLURAL string_list + { + check_obsolete ($1, $2); + plural_counter = 0; + $$.string = string_list_concat_destroy (&$2.stringlist); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; prev_msgid_pluralform - : PREV_MSGID_PLURAL prev_string_list - { - check_obsolete ($1, $2); - $$.string = string_list_concat_destroy (&$2.stringlist); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : PREV_MSGID_PLURAL prev_string_list + { + check_obsolete ($1, $2); + $$.string = string_list_concat_destroy (&$2.stringlist); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; pluralform_list - : pluralform - { - $$ = $1; - } - | pluralform_list pluralform - { - check_obsolete ($1, $2); - $$.rhs.msgstr = XNMALLOC ($1.rhs.msgstr_len + $2.rhs.msgstr_len, char); - memcpy ($$.rhs.msgstr, $1.rhs.msgstr, $1.rhs.msgstr_len); - memcpy ($$.rhs.msgstr + $1.rhs.msgstr_len, $2.rhs.msgstr, $2.rhs.msgstr_len); - $$.rhs.msgstr_len = $1.rhs.msgstr_len + $2.rhs.msgstr_len; - free ($1.rhs.msgstr); - free ($2.rhs.msgstr); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : pluralform + { + $$ = $1; + } + | pluralform_list pluralform + { + check_obsolete ($1, $2); + $$.rhs.msgstr = XNMALLOC ($1.rhs.msgstr_len + $2.rhs.msgstr_len, char); + memcpy ($$.rhs.msgstr, $1.rhs.msgstr, $1.rhs.msgstr_len); + memcpy ($$.rhs.msgstr + $1.rhs.msgstr_len, $2.rhs.msgstr, $2.rhs.msgstr_len); + $$.rhs.msgstr_len = $1.rhs.msgstr_len + $2.rhs.msgstr_len; + free ($1.rhs.msgstr); + free ($2.rhs.msgstr); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; pluralform - : MSGSTR '[' NUMBER ']' string_list - { - check_obsolete ($1, $2); - check_obsolete ($1, $3); - check_obsolete ($1, $4); - check_obsolete ($1, $5); - if ($3.number != plural_counter) - { - if (plural_counter == 0) - po_gram_error_at_line (&$1.pos, _("first plural form has nonzero index")); - else - po_gram_error_at_line (&$1.pos, _("plural form has wrong index")); - } - plural_counter++; - $$.rhs.msgstr = string_list_concat_destroy (&$5.stringlist); - $$.rhs.msgstr_len = strlen ($$.rhs.msgstr) + 1; - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : MSGSTR '[' NUMBER ']' string_list + { + check_obsolete ($1, $2); + check_obsolete ($1, $3); + check_obsolete ($1, $4); + check_obsolete ($1, $5); + if ($3.number != plural_counter) + { + if (plural_counter == 0) + po_gram_error_at_line (&$1.pos, _("first plural form has nonzero index")); + else + po_gram_error_at_line (&$1.pos, _("plural form has wrong index")); + } + plural_counter++; + $$.rhs.msgstr = string_list_concat_destroy (&$5.stringlist); + $$.rhs.msgstr_len = strlen ($$.rhs.msgstr) + 1; + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; string_list - : STRING - { - string_list_init (&$$.stringlist); - string_list_append (&$$.stringlist, $1.string); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | string_list STRING - { - check_obsolete ($1, $2); - $$.stringlist = $1.stringlist; - string_list_append (&$$.stringlist, $2.string); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : STRING + { + string_list_init (&$$.stringlist); + string_list_append (&$$.stringlist, $1.string); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | string_list STRING + { + check_obsolete ($1, $2); + $$.stringlist = $1.stringlist; + string_list_append (&$$.stringlist, $2.string); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; prev_string_list - : PREV_STRING - { - string_list_init (&$$.stringlist); - string_list_append (&$$.stringlist, $1.string); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - | prev_string_list PREV_STRING - { - check_obsolete ($1, $2); - $$.stringlist = $1.stringlist; - string_list_append (&$$.stringlist, $2.string); - $$.pos = $1.pos; - $$.obsolete = $1.obsolete; - } - ; + : PREV_STRING + { + string_list_init (&$$.stringlist); + string_list_append (&$$.stringlist, $1.string); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + | prev_string_list PREV_STRING + { + check_obsolete ($1, $2); + $$.stringlist = $1.stringlist; + string_list_append (&$$.stringlist, $2.string); + $$.pos = $1.pos; + $$.obsolete = $1.obsolete; + } + ; diff -Nru gettext-0.17/gettext-tools/src/po-lex.c gettext-0.18.1.1/gettext-tools/src/po-lex.c --- gettext-0.17/gettext-tools/src/po-lex.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-lex.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller . Multibyte character handling by Bruno Haible . @@ -37,7 +37,6 @@ #endif #include "c-ctype.h" -#include "linebreak.h" #include "uniwidth.h" #include "gettext.h" #include "po-charset.h" @@ -84,7 +83,7 @@ error (EXIT_FAILURE, 0, _("memory exhausted")); va_end (ap); po_xerror (PO_SEVERITY_ERROR, NULL, gram_pos.file_name, gram_pos.line_number, - gram_pos_column + 1, false, buffer); + gram_pos_column + 1, false, buffer); free (buffer); if (error_message_count >= gram_max_allowed_errors) @@ -103,7 +102,7 @@ error (EXIT_FAILURE, 0, _("memory exhausted")); va_end (ap); po_xerror (PO_SEVERITY_ERROR, NULL, pp->file_name, pp->line_number, - (size_t)(-1), false, buffer); + (size_t)(-1), false, buffer); free (buffer); if (error_message_count >= gram_max_allowed_errors) @@ -130,10 +129,10 @@ struct mbchar { - size_t bytes; /* number of bytes of current character, > 0 */ + size_t bytes; /* number of bytes of current character, > 0 */ #if HAVE_ICONV - bool uc_valid; /* true if uc is a valid Unicode character */ - unsigned int uc; /* if uc_valid: the current character */ + bool uc_valid; /* true if uc is a valid Unicode character */ + ucs4_t uc; /* if uc_valid: the current character */ #endif char buf[MBCHAR_BUF_SIZE]; /* room for the bytes */ }; @@ -153,7 +152,7 @@ *q = *p; if (--n > 0) - do *++q = *++p; while (--n > 0); + do *++q = *++p; while (--n > 0); } } @@ -214,10 +213,10 @@ else #endif return (mbc1->bytes == mbc2->bytes - ? memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) - : mbc1->bytes < mbc2->bytes - ? (memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) > 0 ? 1 : -1) - : (memcmp (mbc1->buf, mbc2->buf, mbc2->bytes) >= 0 ? 1 : -1)); + ? memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) + : mbc1->bytes < mbc2->bytes + ? (memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) > 0 ? 1 : -1) + : (memcmp (mbc1->buf, mbc2->buf, mbc2->bytes) >= 0 ? 1 : -1)); } static inline bool @@ -229,7 +228,7 @@ else #endif return (mbc1->bytes == mbc2->bytes - && memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) == 0); + && memcmp (mbc1->buf, mbc2->buf, mbc1->bytes) == 0); } /* , classification. */ @@ -244,12 +243,12 @@ #endif return (mbc->bytes == 1 #if CHAR_MIN < 0x00 /* to avoid gcc warning */ - && mbc->buf[0] >= 0x00 + && mbc->buf[0] >= 0x00 #endif #if CHAR_MAX > 0x7F /* to avoid gcc warning */ - && mbc->buf[0] <= 0x7F + && mbc->buf[0] <= 0x7F #endif - ); + ); } /* Extra function. */ @@ -263,42 +262,42 @@ #if HAVE_ICONV if (mbc->uc_valid) { - unsigned int uc = mbc->uc; + ucs4_t uc = mbc->uc; const char *encoding = - (po_lex_iconv != (iconv_t)(-1) ? po_lex_charset : ""); + (po_lex_iconv != (iconv_t)(-1) ? po_lex_charset : ""); int w = uc_width (uc, encoding); /* For unprintable characters, arbitrarily return 0 for control - characters (except tab) and MB_UNPRINTABLE_WIDTH otherwise. */ + characters (except tab) and MB_UNPRINTABLE_WIDTH otherwise. */ if (w >= 0) - return w; + return w; if (uc >= 0x0000 && uc <= 0x001F) - { - if (uc == 0x0009) - return 8 - (gram_pos_column & 7); - return 0; - } + { + if (uc == 0x0009) + return 8 - (gram_pos_column & 7); + return 0; + } if ((uc >= 0x007F && uc <= 0x009F) || (uc >= 0x2028 && uc <= 0x2029)) - return 0; + return 0; return MB_UNPRINTABLE_WIDTH; } else #endif { if (mbc->bytes == 1) - { - if ( + { + if ( #if CHAR_MIN < 0x00 /* to avoid gcc warning */ - mbc->buf[0] >= 0x00 && + mbc->buf[0] >= 0x00 && #endif - mbc->buf[0] <= 0x1F) - { - if (mbc->buf[0] == 0x09) - return 8 - (gram_pos_column & 7); - return 0; - } - if (mbc->buf[0] == 0x7F) - return 0; - } + mbc->buf[0] <= 0x1F) + { + if (mbc->buf[0] == 0x09) + return 8 - (gram_pos_column & 7); + return 0; + } + if (mbc->buf[0] == 0x7F) + return 0; + } return MB_UNPRINTABLE_WIDTH; } } @@ -394,10 +393,10 @@ { int c = getc (mbf->fp); if (c == EOF) - { - mbf->eof_seen = true; - goto eof; - } + { + mbf->eof_seen = true; + goto eof; + } mbf->buf[0] = (unsigned char) c; mbf->bufcount++; } @@ -406,151 +405,151 @@ if (po_lex_iconv != (iconv_t)(-1)) { /* Use iconv on an increasing number of bytes. Read only as many - bytes from mbf->fp as needed. This is needed to give reasonable - interactive behaviour when mbf->fp is connected to an interactive - tty. */ + bytes from mbf->fp as needed. This is needed to give reasonable + interactive behaviour when mbf->fp is connected to an interactive + tty. */ for (;;) - { - unsigned char scratchbuf[64]; - const char *inptr = &mbf->buf[0]; - size_t insize = mbf->bufcount; - char *outptr = (char *) &scratchbuf[0]; - size_t outsize = sizeof (scratchbuf); - - size_t res = iconv (po_lex_iconv, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - /* We expect that a character has been produced if and only if - some input bytes have been consumed. */ - if ((insize < mbf->bufcount) != (outsize < sizeof (scratchbuf))) - abort (); - if (outsize == sizeof (scratchbuf)) - { - /* No character has been produced. Must be an error. */ - if (res != (size_t)(-1)) - abort (); - - if (errno == EILSEQ) - { - /* An invalid multibyte sequence was encountered. */ - /* Return a single byte. */ - if (signal_eilseq) - po_gram_error (_("invalid multibyte sequence")); - bytes = 1; - mbc->uc_valid = false; - break; - } - else if (errno == EINVAL) - { - /* An incomplete multibyte character. */ - int c; - - if (mbf->bufcount == MBCHAR_BUF_SIZE) - { - /* An overlong incomplete multibyte sequence was - encountered. */ - /* Return a single byte. */ - bytes = 1; - mbc->uc_valid = false; - break; - } - - /* Read one more byte and retry iconv. */ - c = getc (mbf->fp); - if (c == EOF) - { - mbf->eof_seen = true; - if (ferror (mbf->fp)) - goto eof; - if (signal_eilseq) - po_gram_error (_("\ + { + unsigned char scratchbuf[64]; + const char *inptr = &mbf->buf[0]; + size_t insize = mbf->bufcount; + char *outptr = (char *) &scratchbuf[0]; + size_t outsize = sizeof (scratchbuf); + + size_t res = iconv (po_lex_iconv, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + /* We expect that a character has been produced if and only if + some input bytes have been consumed. */ + if ((insize < mbf->bufcount) != (outsize < sizeof (scratchbuf))) + abort (); + if (outsize == sizeof (scratchbuf)) + { + /* No character has been produced. Must be an error. */ + if (res != (size_t)(-1)) + abort (); + + if (errno == EILSEQ) + { + /* An invalid multibyte sequence was encountered. */ + /* Return a single byte. */ + if (signal_eilseq) + po_gram_error (_("invalid multibyte sequence")); + bytes = 1; + mbc->uc_valid = false; + break; + } + else if (errno == EINVAL) + { + /* An incomplete multibyte character. */ + int c; + + if (mbf->bufcount == MBCHAR_BUF_SIZE) + { + /* An overlong incomplete multibyte sequence was + encountered. */ + /* Return a single byte. */ + bytes = 1; + mbc->uc_valid = false; + break; + } + + /* Read one more byte and retry iconv. */ + c = getc (mbf->fp); + if (c == EOF) + { + mbf->eof_seen = true; + if (ferror (mbf->fp)) + goto eof; + if (signal_eilseq) + po_gram_error (_("\ incomplete multibyte sequence at end of file")); - bytes = mbf->bufcount; - mbc->uc_valid = false; - break; - } - mbf->buf[mbf->bufcount++] = (unsigned char) c; - if (c == '\n') - { - if (signal_eilseq) - po_gram_error (_("\ + bytes = mbf->bufcount; + mbc->uc_valid = false; + break; + } + mbf->buf[mbf->bufcount++] = (unsigned char) c; + if (c == '\n') + { + if (signal_eilseq) + po_gram_error (_("\ incomplete multibyte sequence at end of line")); - bytes = mbf->bufcount - 1; - mbc->uc_valid = false; - break; - } - } - else - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - _("iconv failure"), - errno_description)); - } - } - else - { - size_t outbytes = sizeof (scratchbuf) - outsize; - bytes = mbf->bufcount - insize; - - /* We expect that one character has been produced. */ - if (bytes == 0) - abort (); - if (outbytes == 0) - abort (); - /* Convert it from UTF-8 to UCS-4. */ - if (u8_mbtouc (&mbc->uc, scratchbuf, outbytes) < outbytes) - { - /* scratchbuf contains an out-of-range Unicode character - (> 0x10ffff). */ - if (signal_eilseq) - po_gram_error (_("invalid multibyte sequence")); - mbc->uc_valid = false; - break; - } - mbc->uc_valid = true; - break; - } - } + bytes = mbf->bufcount - 1; + mbc->uc_valid = false; + break; + } + } + else + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + _("iconv failure"), + errno_description)); + } + } + else + { + size_t outbytes = sizeof (scratchbuf) - outsize; + bytes = mbf->bufcount - insize; + + /* We expect that one character has been produced. */ + if (bytes == 0) + abort (); + if (outbytes == 0) + abort (); + /* Convert it from UTF-8 to UCS-4. */ + if (u8_mbtouc (&mbc->uc, scratchbuf, outbytes) < outbytes) + { + /* scratchbuf contains an out-of-range Unicode character + (> 0x10ffff). */ + if (signal_eilseq) + po_gram_error (_("invalid multibyte sequence")); + mbc->uc_valid = false; + break; + } + mbc->uc_valid = true; + break; + } + } } else #endif { if (po_lex_weird_cjk - /* Special handling of encodings with CJK structure. */ - && (unsigned char) mbf->buf[0] >= 0x80) - { - if (mbf->bufcount == 1) - { - /* Read one more byte. */ - int c = getc (mbf->fp); - if (c == EOF) - { - if (ferror (mbf->fp)) - { - mbf->eof_seen = true; - goto eof; - } - } - else - { - mbf->buf[1] = (unsigned char) c; - mbf->bufcount++; - } - } - if (mbf->bufcount >= 2 && (unsigned char) mbf->buf[1] >= 0x30) - /* Return a double byte. */ - bytes = 2; - else - /* Return a single byte. */ - bytes = 1; - } + /* Special handling of encodings with CJK structure. */ + && (unsigned char) mbf->buf[0] >= 0x80) + { + if (mbf->bufcount == 1) + { + /* Read one more byte. */ + int c = getc (mbf->fp); + if (c == EOF) + { + if (ferror (mbf->fp)) + { + mbf->eof_seen = true; + goto eof; + } + } + else + { + mbf->buf[1] = (unsigned char) c; + mbf->bufcount++; + } + } + if (mbf->bufcount >= 2 && (unsigned char) mbf->buf[1] >= 0x30) + /* Return a double byte. */ + bytes = 2; + else + /* Return a single byte. */ + bytes = 1; + } else - { - /* Return a single byte. */ - bytes = 1; - } + { + /* Return a single byte. */ + bytes = 1; + } #if HAVE_ICONV mbc->uc_valid = false; #endif @@ -568,10 +567,10 @@ char *p = &mbf->buf[0]; do - { - *p = *(p + bytes); - p++; - } + { + *p = *(p + bytes); + p++; + } while (--count > 0); } return; @@ -648,53 +647,53 @@ mbfile_getc (mbc, mbf); if (mb_iseof (mbc)) - { - if (ferror (mbf->fp)) - bomb: - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while reading \"%s\""), - gram_pos.file_name), - errno_description)); - } - break; - } + { + if (ferror (mbf->fp)) + bomb: + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("error while reading \"%s\""), + gram_pos.file_name), + errno_description)); + } + break; + } if (mb_iseq (mbc, '\n')) - { - gram_pos.line_number++; - gram_pos_column = 0; - break; - } + { + gram_pos.line_number++; + gram_pos_column = 0; + break; + } gram_pos_column += mb_width (mbc); if (mb_iseq (mbc, '\\')) - { - mbchar_t mbc2; + { + mbchar_t mbc2; - mbfile_getc (mbc2, mbf); + mbfile_getc (mbc2, mbf); - if (mb_iseof (mbc2)) - { - if (ferror (mbf->fp)) - goto bomb; - break; - } - - if (!mb_iseq (mbc2, '\n')) - { - mbfile_ungetc (mbc2, mbf); - break; - } - - gram_pos.line_number++; - gram_pos_column = 0; - } + if (mb_iseof (mbc2)) + { + if (ferror (mbf->fp)) + goto bomb; + break; + } + + if (!mb_iseq (mbc2, '\n')) + { + mbfile_ungetc (mbc2, mbf); + break; + } + + gram_pos.line_number++; + gram_pos_column = 0; + } else - break; + break; } } @@ -705,11 +704,11 @@ if (!mb_iseof (mbc)) { if (mb_iseq (mbc, '\n')) - /* Decrement the line number, but don't care about the column. */ - gram_pos.line_number--; + /* Decrement the line number, but don't care about the column. */ + gram_pos.line_number--; else - /* Decrement the column number. Also works well enough for tabs. */ - gram_pos_column -= mb_width (mbc); + /* Decrement the column number. Also works well enough for tabs. */ + gram_pos_column -= mb_width (mbc); mbfile_ungetc (mbc, mbf); } @@ -722,25 +721,25 @@ if (!po_lex_previous) { if (!strcmp (s, "domain")) - return DOMAIN; + return DOMAIN; if (!strcmp (s, "msgid")) - return MSGID; + return MSGID; if (!strcmp (s, "msgid_plural")) - return MSGID_PLURAL; + return MSGID_PLURAL; if (!strcmp (s, "msgstr")) - return MSGSTR; + return MSGSTR; if (!strcmp (s, "msgctxt")) - return MSGCTXT; + return MSGCTXT; } else { /* Inside a "#|" context, the keywords have a different meaning. */ if (!strcmp (s, "msgid")) - return PREV_MSGID; + return PREV_MSGID; if (!strcmp (s, "msgid_plural")) - return PREV_MSGID_PLURAL; + return PREV_MSGID_PLURAL; if (!strcmp (s, "msgctxt")) - return PREV_MSGCTXT; + return PREV_MSGCTXT; } po_gram_error_at_line (&gram_pos, _("keyword \"%s\" unknown"), s); return NAME; @@ -759,95 +758,95 @@ switch (mb_ptr (mbc) [0]) { case 'n': - return '\n'; + return '\n'; case 't': - return '\t'; + return '\t'; case 'b': - return '\b'; + return '\b'; case 'r': - return '\r'; + return '\r'; case 'f': - return '\f'; + return '\f'; case 'v': - return '\v'; + return '\v'; case 'a': - return '\a'; + return '\a'; case '\\': case '"': - return mb_ptr (mbc) [0]; + return mb_ptr (mbc) [0]; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': - val = 0; - max = 0; - for (;;) - { - char c = mb_ptr (mbc) [0]; - /* Warning: not portable, can't depend on '0'..'7' ordering. */ - val = val * 8 + (c - '0'); - if (++max == 3) - break; - lex_getc (mbc); - if (mb_len (mbc) == 1) - switch (mb_ptr (mbc) [0]) - { - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - continue; - - default: - break; - } - lex_ungetc (mbc); - break; - } - return val; + val = 0; + max = 0; + for (;;) + { + char c = mb_ptr (mbc) [0]; + /* Warning: not portable, can't depend on '0'..'7' ordering. */ + val = val * 8 + (c - '0'); + if (++max == 3) + break; + lex_getc (mbc); + if (mb_len (mbc) == 1) + switch (mb_ptr (mbc) [0]) + { + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + continue; + + default: + break; + } + lex_ungetc (mbc); + break; + } + return val; case 'x': - lex_getc (mbc); - if (mb_iseof (mbc) || mb_len (mbc) != 1 - || !c_isxdigit (mb_ptr (mbc) [0])) - break; - - val = 0; - for (;;) - { - char c = mb_ptr (mbc) [0]; - val *= 16; - if (c_isdigit (c)) - /* Warning: not portable, can't depend on '0'..'9' ordering */ - val += c - '0'; - else if (c_isupper (c)) - /* Warning: not portable, can't depend on 'A'..'F' ordering */ - val += c - 'A' + 10; - else - /* Warning: not portable, can't depend on 'a'..'f' ordering */ - val += c - 'a' + 10; - - lex_getc (mbc); - if (mb_len (mbc) == 1) - switch (mb_ptr (mbc) [0]) - { - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - continue; - - default: - break; - } - lex_ungetc (mbc); - break; - } - return val; + lex_getc (mbc); + if (mb_iseof (mbc) || mb_len (mbc) != 1 + || !c_isxdigit (mb_ptr (mbc) [0])) + break; + + val = 0; + for (;;) + { + char c = mb_ptr (mbc) [0]; + val *= 16; + if (c_isdigit (c)) + /* Warning: not portable, can't depend on '0'..'9' ordering */ + val += c - '0'; + else if (c_isupper (c)) + /* Warning: not portable, can't depend on 'A'..'F' ordering */ + val += c - 'A' + 10; + else + /* Warning: not portable, can't depend on 'a'..'f' ordering */ + val += c - 'a' + 10; + + lex_getc (mbc); + if (mb_len (mbc) == 1) + switch (mb_ptr (mbc) [0]) + { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + continue; + + default: + break; + } + lex_ungetc (mbc); + break; + } + return val; /* FIXME: \u and \U are not handled. */ } @@ -872,265 +871,265 @@ lex_getc (mbc); if (mb_iseof (mbc)) - /* Yacc want this for end of file. */ - return 0; + /* Yacc want this for end of file. */ + return 0; if (mb_len (mbc) == 1) - switch (mb_ptr (mbc) [0]) - { - case '\n': - po_lex_obsolete = false; - po_lex_previous = false; - /* Ignore whitespace, not relevant for the grammar. */ - break; - - case ' ': - case '\t': - case '\r': - case '\f': - case '\v': - /* Ignore whitespace, not relevant for the grammar. */ - break; - - case '#': - lex_getc (mbc); - if (mb_iseq (mbc, '~')) - /* A pseudo-comment beginning with #~ is found. This is - not a comment. It is the format for obsolete entries. - We simply discard the "#~" prefix. The following - characters are expected to be well formed. */ - { - po_lex_obsolete = true; - /* A pseudo-comment beginning with #~| denotes a previous - untranslated string in an obsolete entry. This does not - make much sense semantically, and is implemented here - for completeness only. */ - lex_getc (mbc); - if (mb_iseq (mbc, '|')) - po_lex_previous = true; - else - lex_ungetc (mbc); - break; - } - if (mb_iseq (mbc, '|')) - /* A pseudo-comment beginning with #| is found. This is - the previous untranslated string. We discard the "#|" - prefix, but change the keywords and string returns - accordingly. */ - { - po_lex_previous = true; - break; - } - - /* Accumulate comments into a buffer. If we have been asked - to pass comments, generate a COMMENT token, otherwise - discard it. */ - signal_eilseq = false; - if (pass_comments) - { - bufpos = 0; - for (;;) - { - while (bufpos + mb_len (mbc) >= bufmax) - { - bufmax += 100; - buf = xrealloc (buf, bufmax); - } - if (mb_iseof (mbc) || mb_iseq (mbc, '\n')) - break; - - memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); - bufpos += mb_len (mbc); - - lex_getc (mbc); - } - buf[bufpos] = '\0'; - - po_gram_lval.string.string = buf; - po_gram_lval.string.pos = gram_pos; - po_gram_lval.string.obsolete = po_lex_obsolete; - po_lex_obsolete = false; - signal_eilseq = true; - return COMMENT; - } - else - { - /* We do this in separate loop because collecting large - comments while they get not passed to the upper layers - is not very efficient. */ - while (!mb_iseof (mbc) && !mb_iseq (mbc, '\n')) - lex_getc (mbc); - po_lex_obsolete = false; - signal_eilseq = true; - } - break; - - case '"': - /* Accumulate a string. */ - bufpos = 0; - for (;;) - { - lex_getc (mbc); - while (bufpos + mb_len (mbc) >= bufmax) - { - bufmax += 100; - buf = xrealloc (buf, bufmax); - } - if (mb_iseof (mbc)) - { - po_gram_error_at_line (&gram_pos, - _("end-of-file within string")); - break; - } - if (mb_iseq (mbc, '\n')) - { - po_gram_error_at_line (&gram_pos, - _("end-of-line within string")); - break; - } - if (mb_iseq (mbc, '"')) - break; - if (mb_iseq (mbc, '\\')) - { - buf[bufpos++] = control_sequence (); - continue; - } - - /* Add mbc to the accumulator. */ - memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); - bufpos += mb_len (mbc); - } - buf[bufpos] = '\0'; - - /* Strings cannot contain the msgctxt separator, because it cannot - be faithfully represented in the msgid of a .mo file. */ - if (strchr (buf, MSGCTXT_SEPARATOR) != NULL) - po_gram_error_at_line (&gram_pos, - _("context separator within string")); - - /* FIXME: Treatment of embedded \000 chars is incorrect. */ - po_gram_lval.string.string = xstrdup (buf); - po_gram_lval.string.pos = gram_pos; - po_gram_lval.string.obsolete = po_lex_obsolete; - return (po_lex_previous ? PREV_STRING : STRING); - - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': case '$': - bufpos = 0; - for (;;) - { - char c = mb_ptr (mbc) [0]; - if (bufpos + 1 >= bufmax) - { - bufmax += 100; - buf = xrealloc (buf, bufmax); - } - buf[bufpos++] = c; - lex_getc (mbc); - if (mb_len (mbc) == 1) - switch (mb_ptr (mbc) [0]) - { - default: - break; - case 'a': case 'b': case 'c': case 'd': case 'e': - case 'f': case 'g': case 'h': case 'i': case 'j': - case 'k': case 'l': case 'm': case 'n': case 'o': - case 'p': case 'q': case 'r': case 's': case 't': - case 'u': case 'v': case 'w': case 'x': case 'y': - case 'z': - case 'A': case 'B': case 'C': case 'D': case 'E': - case 'F': case 'G': case 'H': case 'I': case 'J': - case 'K': case 'L': case 'M': case 'N': case 'O': - case 'P': case 'Q': case 'R': case 'S': case 'T': - case 'U': case 'V': case 'W': case 'X': case 'Y': - case 'Z': - case '_': case '$': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - } - break; - } - lex_ungetc (mbc); - - buf[bufpos] = '\0'; - - { - int k = keyword_p (buf); - if (k == NAME) - { - po_gram_lval.string.string = xstrdup (buf); - po_gram_lval.string.pos = gram_pos; - po_gram_lval.string.obsolete = po_lex_obsolete; - } - else - { - po_gram_lval.pos.pos = gram_pos; - po_gram_lval.pos.obsolete = po_lex_obsolete; - } - return k; - } - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - bufpos = 0; - for (;;) - { - char c = mb_ptr (mbc) [0]; - if (bufpos + 1 >= bufmax) - { - bufmax += 100; - buf = xrealloc (buf, bufmax + 1); - } - buf[bufpos++] = c; - lex_getc (mbc); - if (mb_len (mbc) == 1) - switch (mb_ptr (mbc) [0]) - { - default: - break; - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - } - break; - } - lex_ungetc (mbc); - - buf[bufpos] = '\0'; - - po_gram_lval.number.number = atol (buf); - po_gram_lval.number.pos = gram_pos; - po_gram_lval.number.obsolete = po_lex_obsolete; - return NUMBER; - - case '[': - po_gram_lval.pos.pos = gram_pos; - po_gram_lval.pos.obsolete = po_lex_obsolete; - return '['; - - case ']': - po_gram_lval.pos.pos = gram_pos; - po_gram_lval.pos.obsolete = po_lex_obsolete; - return ']'; - - default: - /* This will cause a syntax error. */ - return JUNK; - } + switch (mb_ptr (mbc) [0]) + { + case '\n': + po_lex_obsolete = false; + po_lex_previous = false; + /* Ignore whitespace, not relevant for the grammar. */ + break; + + case ' ': + case '\t': + case '\r': + case '\f': + case '\v': + /* Ignore whitespace, not relevant for the grammar. */ + break; + + case '#': + lex_getc (mbc); + if (mb_iseq (mbc, '~')) + /* A pseudo-comment beginning with #~ is found. This is + not a comment. It is the format for obsolete entries. + We simply discard the "#~" prefix. The following + characters are expected to be well formed. */ + { + po_lex_obsolete = true; + /* A pseudo-comment beginning with #~| denotes a previous + untranslated string in an obsolete entry. This does not + make much sense semantically, and is implemented here + for completeness only. */ + lex_getc (mbc); + if (mb_iseq (mbc, '|')) + po_lex_previous = true; + else + lex_ungetc (mbc); + break; + } + if (mb_iseq (mbc, '|')) + /* A pseudo-comment beginning with #| is found. This is + the previous untranslated string. We discard the "#|" + prefix, but change the keywords and string returns + accordingly. */ + { + po_lex_previous = true; + break; + } + + /* Accumulate comments into a buffer. If we have been asked + to pass comments, generate a COMMENT token, otherwise + discard it. */ + signal_eilseq = false; + if (pass_comments) + { + bufpos = 0; + for (;;) + { + while (bufpos + mb_len (mbc) >= bufmax) + { + bufmax += 100; + buf = xrealloc (buf, bufmax); + } + if (mb_iseof (mbc) || mb_iseq (mbc, '\n')) + break; + + memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); + bufpos += mb_len (mbc); + + lex_getc (mbc); + } + buf[bufpos] = '\0'; + + po_gram_lval.string.string = buf; + po_gram_lval.string.pos = gram_pos; + po_gram_lval.string.obsolete = po_lex_obsolete; + po_lex_obsolete = false; + signal_eilseq = true; + return COMMENT; + } + else + { + /* We do this in separate loop because collecting large + comments while they get not passed to the upper layers + is not very efficient. */ + while (!mb_iseof (mbc) && !mb_iseq (mbc, '\n')) + lex_getc (mbc); + po_lex_obsolete = false; + signal_eilseq = true; + } + break; + + case '"': + /* Accumulate a string. */ + bufpos = 0; + for (;;) + { + lex_getc (mbc); + while (bufpos + mb_len (mbc) >= bufmax) + { + bufmax += 100; + buf = xrealloc (buf, bufmax); + } + if (mb_iseof (mbc)) + { + po_gram_error_at_line (&gram_pos, + _("end-of-file within string")); + break; + } + if (mb_iseq (mbc, '\n')) + { + po_gram_error_at_line (&gram_pos, + _("end-of-line within string")); + break; + } + if (mb_iseq (mbc, '"')) + break; + if (mb_iseq (mbc, '\\')) + { + buf[bufpos++] = control_sequence (); + continue; + } + + /* Add mbc to the accumulator. */ + memcpy_small (&buf[bufpos], mb_ptr (mbc), mb_len (mbc)); + bufpos += mb_len (mbc); + } + buf[bufpos] = '\0'; + + /* Strings cannot contain the msgctxt separator, because it cannot + be faithfully represented in the msgid of a .mo file. */ + if (strchr (buf, MSGCTXT_SEPARATOR) != NULL) + po_gram_error_at_line (&gram_pos, + _("context separator within string")); + + /* FIXME: Treatment of embedded \000 chars is incorrect. */ + po_gram_lval.string.string = xstrdup (buf); + po_gram_lval.string.pos = gram_pos; + po_gram_lval.string.obsolete = po_lex_obsolete; + return (po_lex_previous ? PREV_STRING : STRING); + + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': case '$': + bufpos = 0; + for (;;) + { + char c = mb_ptr (mbc) [0]; + if (bufpos + 1 >= bufmax) + { + bufmax += 100; + buf = xrealloc (buf, bufmax); + } + buf[bufpos++] = c; + lex_getc (mbc); + if (mb_len (mbc) == 1) + switch (mb_ptr (mbc) [0]) + { + default: + break; + case 'a': case 'b': case 'c': case 'd': case 'e': + case 'f': case 'g': case 'h': case 'i': case 'j': + case 'k': case 'l': case 'm': case 'n': case 'o': + case 'p': case 'q': case 'r': case 's': case 't': + case 'u': case 'v': case 'w': case 'x': case 'y': + case 'z': + case 'A': case 'B': case 'C': case 'D': case 'E': + case 'F': case 'G': case 'H': case 'I': case 'J': + case 'K': case 'L': case 'M': case 'N': case 'O': + case 'P': case 'Q': case 'R': case 'S': case 'T': + case 'U': case 'V': case 'W': case 'X': case 'Y': + case 'Z': + case '_': case '$': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + } + break; + } + lex_ungetc (mbc); + + buf[bufpos] = '\0'; + + { + int k = keyword_p (buf); + if (k == NAME) + { + po_gram_lval.string.string = xstrdup (buf); + po_gram_lval.string.pos = gram_pos; + po_gram_lval.string.obsolete = po_lex_obsolete; + } + else + { + po_gram_lval.pos.pos = gram_pos; + po_gram_lval.pos.obsolete = po_lex_obsolete; + } + return k; + } + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + bufpos = 0; + for (;;) + { + char c = mb_ptr (mbc) [0]; + if (bufpos + 1 >= bufmax) + { + bufmax += 100; + buf = xrealloc (buf, bufmax + 1); + } + buf[bufpos++] = c; + lex_getc (mbc); + if (mb_len (mbc) == 1) + switch (mb_ptr (mbc) [0]) + { + default: + break; + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + } + break; + } + lex_ungetc (mbc); + + buf[bufpos] = '\0'; + + po_gram_lval.number.number = atol (buf); + po_gram_lval.number.pos = gram_pos; + po_gram_lval.number.obsolete = po_lex_obsolete; + return NUMBER; + + case '[': + po_gram_lval.pos.pos = gram_pos; + po_gram_lval.pos.obsolete = po_lex_obsolete; + return '['; + + case ']': + po_gram_lval.pos.pos = gram_pos; + po_gram_lval.pos.obsolete = po_lex_obsolete; + return ']'; + + default: + /* This will cause a syntax error. */ + return JUNK; + } else - /* This will cause a syntax error. */ - return JUNK; + /* This will cause a syntax error. */ + return JUNK; } } diff -Nru gettext-0.17/gettext-tools/src/po-lex.h gettext-0.18.1.1/gettext-tools/src/po-lex.h --- gettext-0.17/gettext-tools/src/po-lex.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-lex.h 2010-06-06 12:49:58.000000000 +0000 @@ -65,7 +65,7 @@ /* Prepare lexical analysis. */ extern void lex_start (FILE *fp, const char *real_filename, - const char *logical_filename); + const char *logical_filename); /* Terminate lexical analysis. */ extern void lex_end (void); diff -Nru gettext-0.17/gettext-tools/src/po-time.c gettext-0.18.1.1/gettext-tools/src/po-time.c --- gettext-0.17/gettext-tools/src/po-time.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-time.c 2010-06-06 12:49:58.000000000 +0000 @@ -35,18 +35,18 @@ int by = b->tm_year + TM_YEAR_ORIGIN - 1; /* Some compilers cannot handle this as a single return statement. */ long days = ( - /* difference in day of year */ - a->tm_yday - b->tm_yday - /* + intervening leap days */ - + ((ay >> 2) - (by >> 2)) - - (ay / 100 - by / 100) - + ((ay / 100 >> 2) - (by / 100 >> 2)) - /* + difference in years * 365 */ - + (long) (ay - by) * 365l); + /* difference in day of year */ + a->tm_yday - b->tm_yday + /* + intervening leap days */ + + ((ay >> 2) - (by >> 2)) + - (ay / 100 - by / 100) + + ((ay / 100 >> 2) - (by / 100 >> 2)) + /* + difference in years * 365 */ + + (long) (ay - by) * 365l); return 60l * (60l * (24l * days + (a->tm_hour - b->tm_hour)) - + (a->tm_min - b->tm_min)) - + (a->tm_sec - b->tm_sec); + + (a->tm_min - b->tm_min)) + + (a->tm_sec - b->tm_sec); } @@ -66,10 +66,10 @@ tz_sign = '-'; } return xasprintf ("%d-%02d-%02d %02d:%02d%c%02ld%02ld", - local_time.tm_year + TM_YEAR_ORIGIN, - local_time.tm_mon + 1, - local_time.tm_mday, - local_time.tm_hour, - local_time.tm_min, - tz_sign, tz_min / 60, tz_min % 60); + local_time.tm_year + TM_YEAR_ORIGIN, + local_time.tm_mon + 1, + local_time.tm_mday, + local_time.tm_hour, + local_time.tm_min, + tz_sign, tz_min / 60, tz_min % 60); } diff -Nru gettext-0.17/gettext-tools/src/po-xerror.c gettext-0.18.1.1/gettext-tools/src/po-xerror.c --- gettext-0.17/gettext-tools/src/po-xerror.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-xerror.c 2010-06-06 12:49:58.000000000 +0000 @@ -41,8 +41,8 @@ static void xerror (int severity, const char *prefix_tail, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text) + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text) { if (multiline_p) { @@ -50,61 +50,61 @@ char *prefix; if (filename != NULL) - { - if (lineno != (size_t)(-1)) - { - if (column != (size_t)(-1)) - prefix = - xasprintf ("%s:%ld:%ld: %s", filename, - (long) lineno, (long) column, prefix_tail); - else - prefix = - xasprintf ("%s:%ld: %s", filename, - (long) lineno, prefix_tail); - } - else - prefix = xasprintf ("%s: %s", filename, prefix_tail); - error_with_progname = false; - } + { + if (lineno != (size_t)(-1)) + { + if (column != (size_t)(-1)) + prefix = + xasprintf ("%s:%ld:%ld: %s", filename, + (long) lineno, (long) column, prefix_tail); + else + prefix = + xasprintf ("%s:%ld: %s", filename, + (long) lineno, prefix_tail); + } + else + prefix = xasprintf ("%s: %s", filename, prefix_tail); + error_with_progname = false; + } else - prefix = xasprintf ("%s: %s", program_name, prefix_tail); + prefix = xasprintf ("%s: %s", program_name, prefix_tail); if (severity >= PO_SEVERITY_ERROR) - po_multiline_error (prefix, xstrdup (message_text)); + po_multiline_error (prefix, xstrdup (message_text)); else - po_multiline_warning (prefix, xstrdup (message_text)); + po_multiline_warning (prefix, xstrdup (message_text)); error_with_progname = old_error_with_progname; if (severity == PO_SEVERITY_FATAL_ERROR) - exit (EXIT_FAILURE); + exit (EXIT_FAILURE); } else { int exit_status = - (severity == PO_SEVERITY_FATAL_ERROR ? EXIT_FAILURE : 0); + (severity == PO_SEVERITY_FATAL_ERROR ? EXIT_FAILURE : 0); if (filename != NULL) - { - error_with_progname = false; - if (lineno != (size_t)(-1)) - { - if (column != (size_t)(-1)) - po_error (exit_status, 0, "%s:%ld:%ld: %s%s", - filename, (long) lineno, (long) column, - prefix_tail, message_text); - else - po_error_at_line (exit_status, 0, filename, lineno, "%s%s", - prefix_tail, message_text); - } - else - po_error (exit_status, 0, "%s: %s%s", - filename, prefix_tail, message_text); - error_with_progname = true; - } + { + error_with_progname = false; + if (lineno != (size_t)(-1)) + { + if (column != (size_t)(-1)) + po_error (exit_status, 0, "%s:%ld:%ld: %s%s", + filename, (long) lineno, (long) column, + prefix_tail, message_text); + else + po_error_at_line (exit_status, 0, filename, lineno, "%s%s", + prefix_tail, message_text); + } + else + po_error (exit_status, 0, "%s: %s%s", + filename, prefix_tail, message_text); + error_with_progname = true; + } else - po_error (exit_status, 0, "%s%s", prefix_tail, message_text); + po_error (exit_status, 0, "%s%s", prefix_tail, message_text); if (severity < PO_SEVERITY_ERROR) - --error_message_count; + --error_message_count; } } @@ -113,9 +113,9 @@ other. */ void textmode_xerror (int severity, - const struct message_ty *message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text) + const struct message_ty *message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text) { const char *prefix_tail = (severity == PO_SEVERITY_WARNING ? _("warning: ") : ""); @@ -128,17 +128,17 @@ } xerror (severity, prefix_tail, filename, lineno, column, - multiline_p, message_text); + multiline_p, message_text); } void textmode_xerror2 (int severity, - const struct message_ty *message1, - const char *filename1, size_t lineno1, size_t column1, - int multiline_p1, const char *message_text1, - const struct message_ty *message2, - const char *filename2, size_t lineno2, size_t column2, - int multiline_p2, const char *message_text2) + const struct message_ty *message1, + const char *filename1, size_t lineno1, size_t column1, + int multiline_p1, const char *message_text1, + const struct message_ty *message2, + const char *filename2, size_t lineno2, size_t column2, + int multiline_p2, const char *message_text2) { int severity1 = /* Don't exit before both texts have been output. */ (severity == PO_SEVERITY_FATAL_ERROR ? PO_SEVERITY_ERROR : severity); @@ -161,19 +161,19 @@ if (multiline_p1) xerror (severity1, prefix_tail, filename1, lineno1, column1, multiline_p1, - message_text1); + message_text1); else { char *message_text1_extended = xasprintf ("%s...", message_text1); xerror (severity1, prefix_tail, filename1, lineno1, column1, - multiline_p1, message_text1_extended); + multiline_p1, message_text1_extended); free (message_text1_extended); } { char *message_text2_extended = xasprintf ("...%s", message_text2); xerror (severity, prefix_tail, filename2, lineno2, column2, - multiline_p2, message_text2_extended); + multiline_p2, message_text2_extended); free (message_text2_extended); } @@ -183,16 +183,16 @@ } void (*po_xerror) (int severity, - const struct message_ty *message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text) + const struct message_ty *message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text) = textmode_xerror; void (*po_xerror2) (int severity, - const struct message_ty *message1, - const char *filename1, size_t lineno1, size_t column1, - int multiline_p1, const char *message_text1, - const struct message_ty *message2, - const char *filename2, size_t lineno2, size_t column2, - int multiline_p2, const char *message_text2) + const struct message_ty *message1, + const char *filename1, size_t lineno1, size_t column1, + int multiline_p1, const char *message_text1, + const struct message_ty *message2, + const char *filename2, size_t lineno2, size_t column2, + int multiline_p2, const char *message_text2) = textmode_xerror2; diff -Nru gettext-0.17/gettext-tools/src/po-xerror.h gettext-0.18.1.1/gettext-tools/src/po-xerror.h --- gettext-0.17/gettext-tools/src/po-xerror.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/po-xerror.h 2010-06-06 12:49:58.000000000 +0000 @@ -30,9 +30,9 @@ /* A higher-level error handler than the one in po-error.h. */ /* These values must be the same as those in gettext-po.h. */ -#define PO_SEVERITY_WARNING 0 /* just a warning, tell the user */ -#define PO_SEVERITY_ERROR 1 /* an error, the operation cannot complete */ -#define PO_SEVERITY_FATAL_ERROR 2 /* an error, the operation must be aborted */ +#define PO_SEVERITY_WARNING 0 /* just a warning, tell the user */ +#define PO_SEVERITY_ERROR 1 /* an error, the operation cannot complete */ +#define PO_SEVERITY_FATAL_ERROR 2 /* an error, the operation must be aborted */ /* Signal a problem of the given severity. MESSAGE and/or FILENAME + LINENO indicate where the problem occurred. @@ -45,9 +45,9 @@ Must not return if SEVERITY is PO_SEVERITY_FATAL_ERROR. */ extern DLL_VARIABLE void (*po_xerror) (int severity, - const struct message_ty *message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text); + const struct message_ty *message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text); /* Signal a problem that refers to two messages. Similar to two calls to po_xerror. @@ -55,25 +55,25 @@ MESSAGE_TEXT2. */ extern DLL_VARIABLE void (*po_xerror2) (int severity, - const struct message_ty *message1, - const char *filename1, size_t lineno1, size_t column1, - int multiline_p1, const char *message_text1, - const struct message_ty *message2, - const char *filename2, size_t lineno2, size_t column2, - int multiline_p2, const char *message_text2); + const struct message_ty *message1, + const char *filename1, size_t lineno1, size_t column1, + int multiline_p1, const char *message_text1, + const struct message_ty *message2, + const char *filename2, size_t lineno2, size_t column2, + int multiline_p2, const char *message_text2); /* The default error handler. */ extern void textmode_xerror (int severity, - const struct message_ty *message, - const char *filename, size_t lineno, size_t column, - int multiline_p, const char *message_text); + const struct message_ty *message, + const char *filename, size_t lineno, size_t column, + int multiline_p, const char *message_text); extern void textmode_xerror2 (int severity, - const struct message_ty *message1, - const char *filename1, size_t lineno1, size_t column1, - int multiline_p1, const char *message_text1, - const struct message_ty *message2, - const char *filename2, size_t lineno2, size_t column2, - int multiline_p2, const char *message_text2); + const struct message_ty *message1, + const char *filename1, size_t lineno1, size_t column1, + int multiline_p1, const char *message_text1, + const struct message_ty *message2, + const char *filename2, size_t lineno2, size_t column2, + int multiline_p2, const char *message_text2); #ifdef __cplusplus } diff -Nru gettext-0.17/gettext-tools/src/read-catalog-abstract.c gettext-0.18.1.1/gettext-tools/src/read-catalog-abstract.c --- gettext-0.17/gettext-tools/src/read-catalog-abstract.c 2007-10-22 01:06:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-catalog-abstract.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading PO files, abstract class. - Copyright (C) 1995-1996, 1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -24,6 +24,7 @@ /* Specification. */ #include "read-catalog-abstract.h" +#include #include #include @@ -89,25 +90,25 @@ static inline void call_directive_message (abstract_catalog_reader_ty *pop, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { if (pop->methods->directive_message) pop->methods->directive_message (pop, msgctxt, - msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, - prev_msgid, - prev_msgid_plural, - force_fuzzy, obsolete); + msgid, msgid_pos, msgid_plural, + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, + prev_msgid, + prev_msgid_plural, + force_fuzzy, obsolete); } static inline void @@ -126,7 +127,7 @@ static inline void call_comment_filepos (abstract_catalog_reader_ty *pop, const char *name, - size_t line) + size_t line) { if (pop->methods->comment_filepos) pop->methods->comment_filepos (pop, name, line); @@ -166,8 +167,8 @@ void catalog_reader_parse (abstract_catalog_reader_ty *pop, FILE *fp, - const char *real_filename, const char *logical_filename, - catalog_input_format_ty input_syntax) + const char *real_filename, const char *logical_filename, + catalog_input_format_ty input_syntax) { /* Parse the stream's content. */ parse_start (pop); @@ -176,11 +177,11 @@ if (error_message_count > 0) po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, - /*real_filename*/ NULL, (size_t)(-1), (size_t)(-1), false, - xasprintf (ngettext ("found %d fatal error", - "found %d fatal errors", - error_message_count), - error_message_count)); + /*real_filename*/ NULL, (size_t)(-1), (size_t)(-1), false, + xasprintf (ngettext ("found %d fatal error", + "found %d fatal errors", + error_message_count), + error_message_count)); error_message_count = 0; } @@ -204,19 +205,19 @@ seen. */ void po_callback_message (char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, - char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, + char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { /* assert(callback_arg); */ call_directive_message (callback_arg, msgctxt, - msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - force_fuzzy, obsolete); + msgid, msgid_pos, msgid_plural, + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + force_fuzzy, obsolete); } @@ -254,17 +255,20 @@ } -/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp. */ +/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep, + *wrapp. */ void po_parse_comment_special (const char *s, - bool *fuzzyp, enum is_format formatp[NFORMATS], - enum is_wrap *wrapp) + bool *fuzzyp, enum is_format formatp[NFORMATS], + struct argument_range *rangep, enum is_wrap *wrapp) { size_t i; *fuzzyp = false; for (i = 0; i < NFORMATS; i++) formatp[i] = undecided; + rangep->min = -1; + rangep->max = -1; *wrapp = undecided; while (*s != '\0') @@ -273,80 +277,135 @@ /* Skip whitespace. */ while (*s != '\0' && strchr ("\n \t\r\f\v,", *s) != NULL) - s++; + s++; /* Collect a token. */ t = s; while (*s != '\0' && strchr ("\n \t\r\f\v,", *s) == NULL) - s++; + s++; if (s != t) - { - size_t len = s - t; + { + size_t len = s - t; - /* Accept fuzzy flag. */ - if (len == 5 && memcmp (t, "fuzzy", 5) == 0) - { - *fuzzyp = true; - continue; - } - - /* Accept format description. */ - if (len >= 7 && memcmp (t + len - 7, "-format", 7) == 0) - { - const char *p; - size_t n; - enum is_format value; - - p = t; - n = len - 7; - - if (n >= 3 && memcmp (p, "no-", 3) == 0) - { - p += 3; - n -= 3; - value = no; - } - else if (n >= 9 && memcmp (p, "possible-", 9) == 0) - { - p += 9; - n -= 9; - value = possible; - } - else if (n >= 11 && memcmp (p, "impossible-", 11) == 0) - { - p += 11; - n -= 11; - value = impossible; - } - else - value = yes; - - for (i = 0; i < NFORMATS; i++) - if (strlen (format_language[i]) == n - && memcmp (format_language[i], p, n) == 0) - { - formatp[i] = value; - break; - } - if (i < NFORMATS) - continue; - } - - /* Accept wrap description. */ - if (len == 4 && memcmp (t, "wrap", 4) == 0) - { - *wrapp = yes; - continue; - } - if (len == 7 && memcmp (t, "no-wrap", 7) == 0) - { - *wrapp = no; - continue; - } - - /* Unknown special comment marker. It may have been generated - from a future xgettext version. Ignore it. */ - } + /* Accept fuzzy flag. */ + if (len == 5 && memcmp (t, "fuzzy", 5) == 0) + { + *fuzzyp = true; + continue; + } + + /* Accept format description. */ + if (len >= 7 && memcmp (t + len - 7, "-format", 7) == 0) + { + const char *p; + size_t n; + enum is_format value; + + p = t; + n = len - 7; + + if (n >= 3 && memcmp (p, "no-", 3) == 0) + { + p += 3; + n -= 3; + value = no; + } + else if (n >= 9 && memcmp (p, "possible-", 9) == 0) + { + p += 9; + n -= 9; + value = possible; + } + else if (n >= 11 && memcmp (p, "impossible-", 11) == 0) + { + p += 11; + n -= 11; + value = impossible; + } + else + value = yes; + + for (i = 0; i < NFORMATS; i++) + if (strlen (format_language[i]) == n + && memcmp (format_language[i], p, n) == 0) + { + formatp[i] = value; + break; + } + if (i < NFORMATS) + continue; + } + + /* Accept range description "range: ..". */ + if (len == 6 && memcmp (t, "range:", 6) == 0) + { + /* Skip whitespace. */ + while (*s != '\0' && strchr ("\n \t\r\f\v,", *s) != NULL) + s++; + + /* Collect a token. */ + t = s; + while (*s != '\0' && strchr ("\n \t\r\f\v,", *s) == NULL) + s++; + /* Parse it. */ + if (*t >= '0' && *t <= '9') + { + unsigned int min = 0; + + for (; *t >= '0' && *t <= '9'; t++) + { + if (min <= INT_MAX / 10) + { + min = 10 * min + (*t - '0'); + if (min > INT_MAX) + min = INT_MAX; + } + else + /* Avoid integer overflow. */ + min = INT_MAX; + } + if (*t++ == '.') + if (*t++ == '.') + if (*t >= '0' && *t <= '9') + { + unsigned int max = 0; + for (; *t >= '0' && *t <= '9'; t++) + { + if (max <= INT_MAX / 10) + { + max = 10 * max + (*t - '0'); + if (max > INT_MAX) + max = INT_MAX; + } + else + /* Avoid integer overflow. */ + max = INT_MAX; + } + if (min <= max) + { + rangep->min = min; + rangep->max = max; + continue; + } + } + } + } + + /* Accept wrap description. */ + if (len == 4 && memcmp (t, "wrap", 4) == 0) + { + *wrapp = yes; + continue; + } + if (len == 7 && memcmp (t, "no-wrap", 7) == 0) + { + *wrapp = no; + continue; + } + + /* Unknown special comment marker. It may have been generated + from a future xgettext version. Ignore it. */ + } } } @@ -365,171 +424,171 @@ while (*s != '\0') { while (*s == ' ' || *s == '\t' || *s == '\n') - s++; + s++; if (*s != '\0') - { - const char *string_start = s; + { + const char *string_start = s; - do - s++; - while (!(*s == '\0' || *s == ' ' || *s == '\t' || *s == '\n')); - - /* See if there is a COLON and NUMBER after the STRING, separated - through optional spaces. */ - { - const char *p = s; - - while (*p == ' ' || *p == '\t' || *p == '\n') - p++; - - if (*p == ':') - { - p++; - - while (*p == ' ' || *p == '\t' || *p == '\n') - p++; - - if (*p >= '0' && *p <= '9') - { - /* Accumulate a number. */ - size_t n = 0; - - do - { - n = n * 10 + (*p - '0'); - p++; - } - while (*p >= '0' && *p <= '9'); - - if (*p == '\0' || *p == ' ' || *p == '\t' || *p == '\n') - { - /* Parsed a GNU style file comment with spaces. */ - const char *string_end = s; - size_t string_length = string_end - string_start; - char *string = XNMALLOC (string_length + 1, char); - - memcpy (string, string_start, string_length); - string[string_length] = '\0'; - - po_callback_comment_filepos (string, n); - - free (string); - - s = p; - continue; - } - } - } - } - - /* See if there is a COLON at the end of STRING and a NUMBER after - it, separated through optional spaces. */ - if (s[-1] == ':') - { - const char *p = s; - - while (*p == ' ' || *p == '\t' || *p == '\n') - p++; - - if (*p >= '0' && *p <= '9') - { - /* Accumulate a number. */ - size_t n = 0; - - do - { - n = n * 10 + (*p - '0'); - p++; - } - while (*p >= '0' && *p <= '9'); - - if (*p == '\0' || *p == ' ' || *p == '\t' || *p == '\n') - { - /* Parsed a GNU style file comment with spaces. */ - const char *string_end = s - 1; - size_t string_length = string_end - string_start; - char *string = XNMALLOC (string_length + 1, char); - - memcpy (string, string_start, string_length); - string[string_length] = '\0'; - - po_callback_comment_filepos (string, n); - - free (string); - - s = p; - continue; - } - } - } - - /* See if there is a COLON and NUMBER at the end of the STRING, - without separating spaces. */ - { - const char *p = s; - - while (p > string_start) - { - p--; - if (!(*p >= '0' && *p <= '9')) - { - p++; - break; - } - } - - /* p now points to the beginning of the trailing digits segment - at the end of STRING. */ - - if (p < s - && p > string_start + 1 - && p[-1] == ':') - { - /* Parsed a GNU style file comment without spaces. */ - const char *string_end = p - 1; - - /* Accumulate a number. */ - { - size_t n = 0; - - do - { - n = n * 10 + (*p - '0'); - p++; - } - while (p < s); - - { - size_t string_length = string_end - string_start; - char *string = XNMALLOC (string_length + 1, char); - - memcpy (string, string_start, string_length); - string[string_length] = '\0'; - - po_callback_comment_filepos (string, n); - - free (string); - - continue; - } - } - } - } - - /* Parsed a file comment without line number. */ - { - const char *string_end = s; - size_t string_length = string_end - string_start; - char *string = XNMALLOC (string_length + 1, char); - - memcpy (string, string_start, string_length); - string[string_length] = '\0'; - - po_callback_comment_filepos (string, (size_t)(-1)); - - free (string); - } - } + do + s++; + while (!(*s == '\0' || *s == ' ' || *s == '\t' || *s == '\n')); + + /* See if there is a COLON and NUMBER after the STRING, separated + through optional spaces. */ + { + const char *p = s; + + while (*p == ' ' || *p == '\t' || *p == '\n') + p++; + + if (*p == ':') + { + p++; + + while (*p == ' ' || *p == '\t' || *p == '\n') + p++; + + if (*p >= '0' && *p <= '9') + { + /* Accumulate a number. */ + size_t n = 0; + + do + { + n = n * 10 + (*p - '0'); + p++; + } + while (*p >= '0' && *p <= '9'); + + if (*p == '\0' || *p == ' ' || *p == '\t' || *p == '\n') + { + /* Parsed a GNU style file comment with spaces. */ + const char *string_end = s; + size_t string_length = string_end - string_start; + char *string = XNMALLOC (string_length + 1, char); + + memcpy (string, string_start, string_length); + string[string_length] = '\0'; + + po_callback_comment_filepos (string, n); + + free (string); + + s = p; + continue; + } + } + } + } + + /* See if there is a COLON at the end of STRING and a NUMBER after + it, separated through optional spaces. */ + if (s[-1] == ':') + { + const char *p = s; + + while (*p == ' ' || *p == '\t' || *p == '\n') + p++; + + if (*p >= '0' && *p <= '9') + { + /* Accumulate a number. */ + size_t n = 0; + + do + { + n = n * 10 + (*p - '0'); + p++; + } + while (*p >= '0' && *p <= '9'); + + if (*p == '\0' || *p == ' ' || *p == '\t' || *p == '\n') + { + /* Parsed a GNU style file comment with spaces. */ + const char *string_end = s - 1; + size_t string_length = string_end - string_start; + char *string = XNMALLOC (string_length + 1, char); + + memcpy (string, string_start, string_length); + string[string_length] = '\0'; + + po_callback_comment_filepos (string, n); + + free (string); + + s = p; + continue; + } + } + } + + /* See if there is a COLON and NUMBER at the end of the STRING, + without separating spaces. */ + { + const char *p = s; + + while (p > string_start) + { + p--; + if (!(*p >= '0' && *p <= '9')) + { + p++; + break; + } + } + + /* p now points to the beginning of the trailing digits segment + at the end of STRING. */ + + if (p < s + && p > string_start + 1 + && p[-1] == ':') + { + /* Parsed a GNU style file comment without spaces. */ + const char *string_end = p - 1; + + /* Accumulate a number. */ + { + size_t n = 0; + + do + { + n = n * 10 + (*p - '0'); + p++; + } + while (p < s); + + { + size_t string_length = string_end - string_start; + char *string = XNMALLOC (string_length + 1, char); + + memcpy (string, string_start, string_length); + string[string_length] = '\0'; + + po_callback_comment_filepos (string, n); + + free (string); + + continue; + } + } + } + } + + /* Parsed a file comment without line number. */ + { + const char *string_end = s; + size_t string_length = string_end - string_start; + char *string = XNMALLOC (string_length + 1, char); + + memcpy (string, string_start, string_length); + string[string_length] = '\0'; + + po_callback_comment_filepos (string, (size_t)(-1)); + + free (string); + } + } } } @@ -559,81 +618,81 @@ const char *string_end; { - const char *p = s + 6; + const char *p = s + 6; - while (*p == ' ' || *p == '\t') - p++; - string_start = p; + while (*p == ' ' || *p == '\t') + p++; + string_start = p; } for (string_end = string_start; *string_end != '\0'; string_end++) - { - const char *p = string_end; + { + const char *p = string_end; - while (*p == ' ' || *p == '\t') - p++; + while (*p == ' ' || *p == '\t') + p++; - if (*p == ',') - { - p++; - - while (*p == ' ' || *p == '\t') - p++; - - if (p[0] == 'l' && p[1] == 'i' && p[2] == 'n' && p[3] == 'e') - { - p += 4; - - while (*p == ' ' || *p == '\t') - p++; - - if (p[0] == 'n' && p[1] == 'u' && p[2] == 'm' - && p[3] == 'b' && p[4] == 'e' && p[5] == 'r') - { - p += 6; - while (*p == ' ' || *p == '\t') - p++; - } - - if (*p == ':') - { - p++; - - if (*p >= '0' && *p <= '9') - { - /* Accumulate a number. */ - size_t n = 0; - - do - { - n = n * 10 + (*p - '0'); - p++; - } - while (*p >= '0' && *p <= '9'); - - while (*p == ' ' || *p == '\t' || *p == '\n') - p++; - - if (*p == '\0') - { - /* Parsed a Sun style file comment. */ - size_t string_length = string_end - string_start; - char *string = - XNMALLOC (string_length + 1, char); - - memcpy (string, string_start, string_length); - string[string_length] = '\0'; - - po_callback_comment_filepos (string, n); - - free (string); - return true; - } - } - } - } - } - } + if (*p == ',') + { + p++; + + while (*p == ' ' || *p == '\t') + p++; + + if (p[0] == 'l' && p[1] == 'i' && p[2] == 'n' && p[3] == 'e') + { + p += 4; + + while (*p == ' ' || *p == '\t') + p++; + + if (p[0] == 'n' && p[1] == 'u' && p[2] == 'm' + && p[3] == 'b' && p[4] == 'e' && p[5] == 'r') + { + p += 6; + while (*p == ' ' || *p == '\t') + p++; + } + + if (*p == ':') + { + p++; + + if (*p >= '0' && *p <= '9') + { + /* Accumulate a number. */ + size_t n = 0; + + do + { + n = n * 10 + (*p - '0'); + p++; + } + while (*p >= '0' && *p <= '9'); + + while (*p == ' ' || *p == '\t' || *p == '\n') + p++; + + if (*p == '\0') + { + /* Parsed a Sun style file comment. */ + size_t string_length = string_end - string_start; + char *string = + XNMALLOC (string_length + 1, char); + + memcpy (string, string_start, string_length); + string[string_length] = '\0'; + + po_callback_comment_filepos (string, n); + + free (string); + return true; + } + } + } + } + } + } } return false; @@ -652,15 +711,15 @@ { s++; /* There is usually a space before the comment. People don't - consider it part of the comment, therefore remove it here. */ + consider it part of the comment, therefore remove it here. */ if (*s == ' ') - s++; + s++; po_callback_comment_dot (s); } else if (*s == ':') { /* Parse the file location string. The appropriate callback will be - invoked. */ + invoked. */ po_parse_comment_filepos (s + 1); } else if (*s == ',' || *s == '!') @@ -671,17 +730,17 @@ else { /* It looks like a plain vanilla comment, but Solaris-style file - position lines do, too. Try to parse the lot. If the parse - succeeds, the appropriate callback will be invoked. */ + position lines do, too. Try to parse the lot. If the parse + succeeds, the appropriate callback will be invoked. */ if (po_parse_comment_solaris_filepos (s)) - /* Do nothing, it is a Sun-style file pos line. */ ; + /* Do nothing, it is a Sun-style file pos line. */ ; else - { - /* There is usually a space before the comment. People don't - consider it part of the comment, therefore remove it here. */ - if (*s == ' ') - s++; - po_callback_comment (s); - } + { + /* There is usually a space before the comment. People don't + consider it part of the comment, therefore remove it here. */ + if (*s == ' ') + s++; + po_callback_comment (s); + } } } diff -Nru gettext-0.17/gettext-tools/src/read-catalog-abstract.h gettext-0.18.1.1/gettext-tools/src/read-catalog-abstract.h --- gettext-0.17/gettext-tools/src/read-catalog-abstract.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-catalog-abstract.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading PO files, abstract class. - Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -75,14 +75,14 @@ /* what to do with a message directive */ void (*directive_message) (struct abstract_catalog_reader_ty *pop, - char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, char *prev_msgid_plural, - bool force_fuzzy, bool obsolete); + char *msgctxt, + char *msgid, lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, char *prev_msgid_plural, + bool force_fuzzy, bool obsolete); /* What to do with a plain-vanilla comment - the expectation is that they will be accumulated, and added to the next message @@ -100,13 +100,13 @@ they will be accumulated, and added to the next message definition seen. Or completely ignored. */ void (*comment_filepos) (struct abstract_catalog_reader_ty *pop, - const char *s, size_t line); + const char *s, size_t line); /* What to do with a comment that starts with a ',' or '!' - this is a special comment. One of the possible uses is to indicate a inexact translation. */ void (*comment_special) (struct abstract_catalog_reader_ty *pop, - const char *s); + const char *s); }; @@ -133,7 +133,7 @@ { /* Parses the contents of FP, invoking the appropriate callbacks. */ void (*parse) (abstract_catalog_reader_ty *pop, FILE *fp, - const char *real_filename, const char *logical_filename); + const char *real_filename, const char *logical_filename); /* Whether the parse function always produces messages encoded in UTF-8 encoding. */ @@ -152,9 +152,9 @@ abstract_catalog_reader_class_ty methods. */ extern void catalog_reader_parse (abstract_catalog_reader_ty *pop, FILE *fp, - const char *real_filename, - const char *logical_filename, - catalog_input_format_ty input_syntax); + const char *real_filename, + const char *logical_filename, + catalog_input_format_ty input_syntax); /* Call the destructor and deallocate a abstract_catalog_reader_ty (or derived class) instance. */ @@ -166,23 +166,25 @@ catalog_reader_parse. */ extern void po_callback_domain (char *name); extern void po_callback_message (char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, char *prev_msgid_plural, - bool force_fuzzy, bool obsolete); + char *msgid, lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, char *prev_msgid_plural, + bool force_fuzzy, bool obsolete); extern void po_callback_comment (const char *s); extern void po_callback_comment_dot (const char *s); extern void po_callback_comment_filepos (const char *s, size_t line); extern void po_callback_comment_special (const char *s); extern void po_callback_comment_dispatcher (const char *s); -/* Parse a special comment and put the result in *fuzzyp, formatp, *wrapp. */ +/* Parse a special comment and put the result in *fuzzyp, formatp, *rangep, + *wrapp. */ extern void po_parse_comment_special (const char *s, bool *fuzzyp, - enum is_format formatp[NFORMATS], - enum is_wrap *wrapp); + enum is_format formatp[NFORMATS], + struct argument_range *rangep, + enum is_wrap *wrapp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/read-catalog.c gettext-0.18.1.1/gettext-tools/src/read-catalog.c --- gettext-0.17/gettext-tools/src/read-catalog.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-catalog.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading PO files. - Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. This file was written by Peter Miller This program is free software: you can redistribute it and/or modify @@ -50,27 +50,27 @@ static inline void call_add_message (struct default_catalog_reader_ty *this, - char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, - char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - char *prev_msgctxt, char *prev_msgid, char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, + char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, + char *prev_msgctxt, char *prev_msgid, char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { default_catalog_reader_class_ty *methods = (default_catalog_reader_class_ty *) this->methods; if (methods->add_message) methods->add_message (this, msgctxt, - msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - force_fuzzy, obsolete); + msgid, msgid_pos, msgid_plural, + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + force_fuzzy, obsolete); } static inline void call_frob_new_message (struct default_catalog_reader_ty *this, message_ty *mp, - const lex_pos_ty *msgid_pos, - const lex_pos_ty *msgstr_pos) + const lex_pos_ty *msgid_pos, + const lex_pos_ty *msgstr_pos) { default_catalog_reader_class_ty *methods = (default_catalog_reader_class_ty *) this->methods; @@ -102,6 +102,8 @@ this->is_fuzzy = false; for (i = 0; i < NFORMATS; i++) this->is_format[i] = undecided; + this->range.min = -1; + this->range.max = -1; this->do_wrap = undecided; } @@ -115,18 +117,18 @@ if (this->handle_comments) { if (this->comment != NULL) - string_list_free (this->comment); + string_list_free (this->comment); if (this->comment_dot != NULL) - string_list_free (this->comment_dot); + string_list_free (this->comment_dot); } if (this->handle_filepos_comments) { size_t j; for (j = 0; j < this->filepos_count; ++j) - free (this->filepos[j].file_name); + free (this->filepos[j].file_name); if (this->filepos != NULL) - free (this->filepos); + free (this->filepos); } } @@ -156,25 +158,26 @@ if (this->handle_comments) { if (this->comment != NULL) - for (j = 0; j < this->comment->nitems; ++j) - message_comment_append (mp, this->comment->item[j]); + for (j = 0; j < this->comment->nitems; ++j) + message_comment_append (mp, this->comment->item[j]); if (this->comment_dot != NULL) - for (j = 0; j < this->comment_dot->nitems; ++j) - message_comment_dot_append (mp, this->comment_dot->item[j]); + for (j = 0; j < this->comment_dot->nitems; ++j) + message_comment_dot_append (mp, this->comment_dot->item[j]); } if (this->handle_filepos_comments) { for (j = 0; j < this->filepos_count; ++j) - { - lex_pos_ty *pp; + { + lex_pos_ty *pp; - pp = &this->filepos[j]; - message_comment_filepos (mp, pp->file_name, pp->line_number); - } + pp = &this->filepos[j]; + message_comment_filepos (mp, pp->file_name, pp->line_number); + } } mp->is_fuzzy = this->is_fuzzy; for (i = 0; i < NFORMATS; i++) mp->is_format[i] = this->is_format[i]; + mp->range = this->range; mp->do_wrap = this->do_wrap; } @@ -187,28 +190,30 @@ if (this->handle_comments) { if (this->comment != NULL) - { - string_list_free (this->comment); - this->comment = NULL; - } + { + string_list_free (this->comment); + this->comment = NULL; + } if (this->comment_dot != NULL) - { - string_list_free (this->comment_dot); - this->comment_dot = NULL; - } + { + string_list_free (this->comment_dot); + this->comment_dot = NULL; + } } if (this->handle_filepos_comments) { for (j = 0; j < this->filepos_count; ++j) - free (this->filepos[j].file_name); + free (this->filepos[j].file_name); if (this->filepos != NULL) - free (this->filepos); + free (this->filepos); this->filepos_count = 0; this->filepos = NULL; } this->is_fuzzy = false; for (i = 0; i < NFORMATS; i++) this->is_format[i] = undecided; + this->range.min = -1; + this->range.max = -1; this->do_wrap = undecided; } @@ -231,22 +236,22 @@ /* Process ['msgctxt'/]'msgid'/'msgstr' pair from .po file. */ void default_directive_message (abstract_catalog_reader_ty *that, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { default_catalog_reader_ty *this = (default_catalog_reader_ty *) that; call_add_message (this, msgctxt, msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - force_fuzzy, obsolete); + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + force_fuzzy, obsolete); /* Prepare for next message. */ default_reset_comment_state (this); @@ -261,7 +266,7 @@ if (this->handle_comments) { if (this->comment == NULL) - this->comment = string_list_alloc (); + this->comment = string_list_alloc (); string_list_append (this->comment, s); } } @@ -275,7 +280,7 @@ if (this->handle_comments) { if (this->comment_dot == NULL) - this->comment_dot = string_list_alloc (); + this->comment_dot = string_list_alloc (); string_list_append (this->comment_dot, s); } } @@ -283,7 +288,7 @@ void default_comment_filepos (abstract_catalog_reader_ty *that, - const char *name, size_t line) + const char *name, size_t line) { default_catalog_reader_ty *this = (default_catalog_reader_ty *) that; @@ -307,8 +312,8 @@ { default_catalog_reader_ty *this = (default_catalog_reader_ty *) that; - po_parse_comment_special (s, &this->is_fuzzy, this->is_format, - &this->do_wrap); + po_parse_comment_special (s, &this->is_fuzzy, this->is_format, &this->range, + &this->do_wrap); } @@ -324,7 +329,7 @@ else { po_gram_error_at_line (&gram_pos, - _("this file may not contain domain directives")); + _("this file may not contain domain directives")); /* NAME was allocated in po-gram-gen.y but is not used anywhere. */ free (name); @@ -333,16 +338,16 @@ void default_add_message (default_catalog_reader_ty *this, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { message_ty *mp; @@ -360,33 +365,33 @@ if (mp) { if (!(this->allow_duplicates_if_same_msgstr - && msgstr_len == mp->msgstr_len - && memcmp (msgstr, mp->msgstr, msgstr_len) == 0)) - { - /* We give a fatal error about this, regardless whether the - translations are equal or different. This is for consistency - with msgmerge, msgcat and others. The user can use the - msguniq program to get rid of duplicates. */ - po_xerror2 (PO_SEVERITY_ERROR, - NULL, msgid_pos->file_name, msgid_pos->line_number, - (size_t)(-1), false, _("duplicate message definition"), - mp, NULL, 0, 0, false, - _("this is the location of the first definition")); - } + && msgstr_len == mp->msgstr_len + && memcmp (msgstr, mp->msgstr, msgstr_len) == 0)) + { + /* We give a fatal error about this, regardless whether the + translations are equal or different. This is for consistency + with msgmerge, msgcat and others. The user can use the + msguniq program to get rid of duplicates. */ + po_xerror2 (PO_SEVERITY_ERROR, + NULL, msgid_pos->file_name, msgid_pos->line_number, + (size_t)(-1), false, _("duplicate message definition"), + mp, NULL, 0, 0, false, + _("this is the location of the first definition")); + } /* We don't need the just constructed entries' parameter string - (allocated in po-gram-gen.y). */ + (allocated in po-gram-gen.y). */ free (msgid); if (msgid_plural != NULL) - free (msgid_plural); + free (msgid_plural); free (msgstr); if (msgctxt != NULL) - free (msgctxt); + free (msgctxt); if (prev_msgctxt != NULL) - free (prev_msgctxt); + free (prev_msgctxt); if (prev_msgid != NULL) - free (prev_msgid); + free (prev_msgid); if (prev_msgid_plural != NULL) - free (prev_msgid_plural); + free (prev_msgid_plural); /* Add the accumulated comments to the message. */ default_copy_comment_state (this, mp); @@ -394,18 +399,18 @@ else { /* Construct message to add to the list. - Obsolete message go into the list at least for duplicate checking. - It's the caller's responsibility to ignore obsolete messages when - appropriate. */ + Obsolete message go into the list at least for duplicate checking. + It's the caller's responsibility to ignore obsolete messages when + appropriate. */ mp = message_alloc (msgctxt, msgid, msgid_plural, msgstr, msgstr_len, - msgstr_pos); + msgstr_pos); mp->prev_msgctxt = prev_msgctxt; mp->prev_msgid = prev_msgid; mp->prev_msgid_plural = prev_msgid_plural; mp->obsolete = obsolete; default_copy_comment_state (this, mp); if (force_fuzzy) - mp->is_fuzzy = true; + mp->is_fuzzy = true; call_frob_new_message (this, mp, msgid_pos, msgstr_pos); @@ -465,8 +470,8 @@ msgdomain_list_ty * read_catalog_stream (FILE *fp, const char *real_filename, - const char *logical_filename, - catalog_input_format_ty input_syntax) + const char *logical_filename, + catalog_input_format_ty input_syntax) { default_catalog_reader_ty *pop; msgdomain_list_ty *mdlp; @@ -477,6 +482,7 @@ pop->allow_domain_directives = true; pop->allow_duplicates = allow_duplicates; pop->allow_duplicates_if_same_msgstr = false; + pop->file_name = real_filename; pop->mdlp = msgdomain_list_alloc (!pop->allow_duplicates); pop->mlp = msgdomain_list_sublist (pop->mdlp, pop->domain, true); if (input_syntax->produces_utf8) @@ -484,7 +490,7 @@ pop->mdlp->encoding = po_charset_utf8; po_lex_pass_obsolete_entries (true); catalog_reader_parse ((abstract_catalog_reader_ty *) pop, fp, real_filename, - logical_filename, input_syntax); + logical_filename, input_syntax); mdlp = pop->mdlp; catalog_reader_free ((abstract_catalog_reader_ty *) pop); return mdlp; diff -Nru gettext-0.17/gettext-tools/src/read-catalog.h gettext-0.18.1.1/gettext-tools/src/read-catalog.h --- gettext-0.17/gettext-tools/src/read-catalog.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-catalog.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading PO files. - Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. This file was written by Bruno Haible . This program is free software: you can redistribute it and/or modify @@ -55,64 +55,68 @@ /* How to add a message to the list. */ void (*add_message) (struct default_catalog_reader_ty *pop, - char *msgctxt, - char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, - char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete); + char *msgctxt, + char *msgid, lex_pos_ty *msgid_pos, char *msgid_plural, + char *msgstr, size_t msgstr_len, lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete); /* How to modify a new message before adding it to the list. */ void (*frob_new_message) (struct default_catalog_reader_ty *pop, - message_ty *mp, - const lex_pos_ty *msgid_pos, - const lex_pos_ty *msgstr_pos); + message_ty *mp, + const lex_pos_ty *msgid_pos, + const lex_pos_ty *msgstr_pos); }; #define DEFAULT_CATALOG_READER_TY \ - ABSTRACT_CATALOG_READER_TY \ - \ - /* If true, pay attention to comments and filepos comments. */ \ - bool handle_comments; \ - \ - /* If true, remember comments for file name and line number for each \ - msgid, if present in the reference input. */ \ - bool handle_filepos_comments; \ - \ - /* If false, domain directives lead to an error messsage. */ \ - bool allow_domain_directives; \ - \ - /* If false, duplicate msgids in the same domain and file generate an \ - error. If true, such msgids are allowed; the caller should treat \ - them appropriately. */ \ - bool allow_duplicates; \ - \ - /* If true, allow duplicates if they have the same translation. */ \ - bool allow_duplicates_if_same_msgstr; \ - \ - /* List of messages already appeared in the current file. */ \ - msgdomain_list_ty *mdlp; \ - \ - /* Name of domain we are currently examining. */ \ - const char *domain; \ - \ - /* List of messages belonging to the current domain. */ \ - message_list_ty *mlp; \ - \ - /* Accumulate comments for next message directive. */ \ - string_list_ty *comment; \ - string_list_ty *comment_dot; \ - \ - /* Accumulate filepos comments for the next message directive. */ \ - size_t filepos_count; \ - lex_pos_ty *filepos; \ - \ - /* Flags transported in special comments. */ \ - bool is_fuzzy; \ - enum is_format is_format[NFORMATS]; \ - enum is_wrap do_wrap; \ + ABSTRACT_CATALOG_READER_TY \ + \ + /* If true, pay attention to comments and filepos comments. */ \ + bool handle_comments; \ + \ + /* If true, remember comments for file name and line number for each \ + msgid, if present in the reference input. */ \ + bool handle_filepos_comments; \ + \ + /* If false, domain directives lead to an error messsage. */ \ + bool allow_domain_directives; \ + \ + /* If false, duplicate msgids in the same domain and file generate an \ + error. If true, such msgids are allowed; the caller should treat \ + them appropriately. */ \ + bool allow_duplicates; \ + \ + /* If true, allow duplicates if they have the same translation. */ \ + bool allow_duplicates_if_same_msgstr; \ + \ + /* File name used in error messages. */ \ + const char *file_name; \ + \ + /* List of messages already appeared in the current file. */ \ + msgdomain_list_ty *mdlp; \ + \ + /* Name of domain we are currently examining. */ \ + const char *domain; \ + \ + /* List of messages belonging to the current domain. */ \ + message_list_ty *mlp; \ + \ + /* Accumulate comments for next message directive. */ \ + string_list_ty *comment; \ + string_list_ty *comment_dot; \ + \ + /* Accumulate filepos comments for the next message directive. */ \ + size_t filepos_count; \ + lex_pos_ty *filepos; \ + \ + /* Flags transported in special comments. */ \ + bool is_fuzzy; \ + enum is_format is_format[NFORMATS]; \ + struct argument_range range; \ + enum is_wrap do_wrap; \ typedef struct default_catalog_reader_ty default_catalog_reader_ty; struct default_catalog_reader_ty @@ -125,37 +129,37 @@ extern void default_parse_brief (abstract_catalog_reader_ty *that); extern void default_parse_debrief (abstract_catalog_reader_ty *that); extern void default_directive_domain (abstract_catalog_reader_ty *that, - char *name); + char *name); extern void default_directive_message (abstract_catalog_reader_ty *that, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete); + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete); extern void default_comment (abstract_catalog_reader_ty *that, const char *s); extern void default_comment_dot (abstract_catalog_reader_ty *that, - const char *s); + const char *s); extern void default_comment_filepos (abstract_catalog_reader_ty *that, - const char *name, size_t line); + const char *name, size_t line); extern void default_comment_special (abstract_catalog_reader_ty *that, - const char *s); + const char *s); extern void default_set_domain (default_catalog_reader_ty *this, char *name); extern void default_add_message (default_catalog_reader_ty *this, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete); + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete); /* Allocate a fresh default_catalog_reader_ty (or derived class) instance and call its constructor. */ @@ -175,9 +179,9 @@ /* Read the input file from a stream. Returns a list of messages. */ extern msgdomain_list_ty * read_catalog_stream (FILE *fp, - const char *real_filename, - const char *logical_filename, - catalog_input_format_ty input_syntax); + const char *real_filename, + const char *logical_filename, + catalog_input_format_ty input_syntax); /* Read the input file with the name INPUT_NAME. The ending .po is added if necessary. If INPUT_NAME is not an absolute file name and the file is @@ -185,7 +189,7 @@ a list of messages. */ extern msgdomain_list_ty * read_catalog_file (const char *input_name, - catalog_input_format_ty input_syntax); + catalog_input_format_ty input_syntax); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/read-csharp.c gettext-0.18.1.1/gettext-tools/src/read-csharp.c --- gettext-0.17/gettext-tools/src/read-csharp.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-csharp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading C# satellite assemblies. - Copyright (C) 2003-2004, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2004, 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -35,7 +35,7 @@ #include "read-catalog.h" #include "read-po.h" #include "xalloc.h" -#include "filename.h" +#include "concat-filename.h" #include "error.h" #include "gettext.h" @@ -54,8 +54,8 @@ static bool execute_and_read_po_output (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { struct locals *l = (struct locals *) private_data; pid_t child; @@ -65,7 +65,7 @@ /* Open a pipe to the C# execution engine. */ child = create_pipe_in (progname, prog_path, prog_argv, DEV_NULL, false, - true, true, fd); + true, true, fd); fp = fdopen (fd[0], "r"); if (fp == NULL) @@ -77,10 +77,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, progname, false, false, true, true); + exitstatus = + wait_subprocess (child, progname, false, false, true, true, NULL); if (exitstatus != 0) error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), - progname, exitstatus); + progname, exitstatus); return false; } @@ -88,7 +89,7 @@ msgdomain_list_ty * msgdomain_read_csharp (const char *resource_name, const char *locale_name, - const char *directory) + const char *directory) { char *culture_name; const char *args[4]; @@ -108,26 +109,26 @@ char *p; for (p = culture_name; *p != '\0'; p++) if (*p == '_') - *p = '-'; + *p = '-'; if (strncmp (culture_name, "sr-CS", 5) == 0) memcpy (culture_name, "sr-SP", 5); p = strchr (culture_name, '@'); if (p != NULL) { - if (strcmp (p, "@latin") == 0) - strcpy (p, "-Latn"); - else if (strcmp (p, "@cyrillic") == 0) - strcpy (p, "-Cyrl"); + if (strcmp (p, "@latin") == 0) + strcpy (p, "-Latn"); + else if (strcmp (p, "@cyrillic") == 0) + strcpy (p, "-Cyrl"); } if (strcmp (culture_name, "sr-SP") == 0) { - free (culture_name); - culture_name = xstrdup ("sr-SP-Latn"); + free (culture_name); + culture_name = xstrdup ("sr-SP-Latn"); } else if (strcmp (culture_name, "uz-UZ") == 0) { - free (culture_name); - culture_name = xstrdup ("uz-UZ-Latn"); + free (culture_name); + culture_name = xstrdup ("uz-UZ-Latn"); } } @@ -150,12 +151,13 @@ gettextlibdir = relocate (LIBDIR); /* Dump the resource and retrieve the resulting output. */ - assembly_path = concatenated_filename (gettextexedir, "msgunfmt.net", ".exe"); + assembly_path = + xconcatenated_filename (gettextexedir, "msgunfmt.net", ".exe"); libdirs[0] = gettextlibdir; if (execute_csharp_program (assembly_path, libdirs, 1, - args, - verbose, false, - execute_and_read_po_output, &locals)) + args, + verbose, false, + execute_and_read_po_output, &locals)) /* An error message should already have been provided. */ exit (EXIT_FAILURE); diff -Nru gettext-0.17/gettext-tools/src/read-csharp.h gettext-0.18.1.1/gettext-tools/src/read-csharp.h --- gettext-0.17/gettext-tools/src/read-csharp.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-csharp.h 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ Returns a list of messages. */ extern msgdomain_list_ty * msgdomain_read_csharp (const char *resource_name, - const char *locale_name, - const char *directory); + const char *locale_name, + const char *directory); #endif /* _READ_CSHARP_H */ diff -Nru gettext-0.17/gettext-tools/src/read-java.c gettext-0.18.1.1/gettext-tools/src/read-java.c --- gettext-0.17/gettext-tools/src/read-java.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-java.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading Java ResourceBundles. - Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -52,8 +52,8 @@ static bool execute_and_read_po_output (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { struct locals *l = (struct locals *) private_data; pid_t child; @@ -63,7 +63,7 @@ /* Open a pipe to the JVM. */ child = create_pipe_in (progname, prog_path, prog_argv, DEV_NULL, false, - true, true, fd); + true, true, fd); fp = fdopen (fd[0], "r"); if (fp == NULL) @@ -75,10 +75,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, progname, false, false, true, true); + exitstatus = + wait_subprocess (child, progname, false, false, true, true, NULL); if (exitstatus != 0) error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), - progname, exitstatus); + progname, exitstatus); return false; } @@ -127,9 +128,9 @@ Here we use the user's CLASSPATH, not a minimal one, so that the resource can be found. */ if (execute_java_class (class_name, &gettextjar, 1, false, gettextjexedir, - args, - verbose, false, - execute_and_read_po_output, &locals)) + args, + verbose, false, + execute_and_read_po_output, &locals)) /* An error message should already have been provided. */ exit (EXIT_FAILURE); diff -Nru gettext-0.17/gettext-tools/src/read-java.h gettext-0.18.1.1/gettext-tools/src/read-java.h --- gettext-0.17/gettext-tools/src/read-java.h 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-java.h 2010-06-06 12:49:58.000000000 +0000 @@ -24,6 +24,6 @@ Returns a list of messages. */ extern msgdomain_list_ty * msgdomain_read_java (const char *resource_name, - const char *locale_name); + const char *locale_name); #endif /* _READ_JAVA_H */ diff -Nru gettext-0.17/gettext-tools/src/read-mo.c gettext-0.18.1.1/gettext-tools/src/read-mo.c --- gettext-0.17/gettext-tools/src/read-mo.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-mo.c 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ /* Read the contents of the given input stream. */ static void read_binary_mo_file (struct binary_mo_file *bfp, - FILE *fp, const char *filename) + FILE *fp, const char *filename) { char *buf = NULL; size_t alloc = 0; @@ -73,21 +73,21 @@ { const size_t increment = 4096; if (size + increment > alloc) - { - alloc = alloc + alloc / 2; - if (alloc < size + increment) - alloc = size + increment; - buf = (char *) xrealloc (buf, alloc); - } + { + alloc = alloc + alloc / 2; + if (alloc < size + increment) + alloc = size + increment; + buf = (char *) xrealloc (buf, alloc); + } count = fread (buf + size, 1, increment, fp); if (count == 0) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - filename); - } + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + filename); + } else - size += count; + size += count; } buf = (char *) xrealloc (buf, size); bfp->filename = filename; @@ -126,8 +126,8 @@ error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); if (bfp->data[s_offset + s_length] != '\0') error (EXIT_FAILURE, 0, - _("file \"%s\" contains a not NUL terminated string"), - bfp->filename); + _("file \"%s\" contains a not NUL terminated string"), + bfp->filename); *lengthp = s_length + 1; return bfp->data + s_offset; @@ -136,7 +136,7 @@ /* Get a system dependent string from the file, at the given file position. */ static char * get_sysdep_string (const struct binary_mo_file *bfp, size_t offset, - const struct mo_file_header *header, size_t *lengthp) + const struct mo_file_header *header, size_t *lengthp) { /* See 'struct sysdep_string'. */ size_t length; @@ -159,25 +159,25 @@ length += segsize; if (sysdepref == SEGMENTS_END) - break; + break; if (sysdepref >= header->n_sysdep_segments) - /* Invalid. */ - error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"), - bfp->filename); + /* Invalid. */ + error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"), + bfp->filename); /* See 'struct sysdep_segment'. */ sysdep_segment_offset = header->sysdep_segments_offset + sysdepref * 8; ss_length = get_uint32 (bfp, sysdep_segment_offset); ss_offset = get_uint32 (bfp, sysdep_segment_offset + 4); if (ss_offset + ss_length > bfp->size) - error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); + error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); if (!(ss_length > 0 && bfp->data[ss_offset + ss_length - 1] == '\0')) - { - char location[30]; - sprintf (location, "sysdep_segment[%u]", (unsigned int) sysdepref); - error (EXIT_FAILURE, 0, - _("file \"%s\" contains a not NUL terminated string, at %s"), - bfp->filename, location); - } + { + char location[30]; + sprintf (location, "sysdep_segment[%u]", (unsigned int) sysdepref); + error (EXIT_FAILURE, 0, + _("file \"%s\" contains a not NUL terminated string, at %s"), + bfp->filename, location); + } n = strlen (bfp->data + ss_offset); length += (n > 1 ? 1 + n + 1 : n); } @@ -196,30 +196,30 @@ size_t n; if (s_offset + segsize > bfp->size) - error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); + error (EXIT_FAILURE, 0, _("file \"%s\" is truncated"), bfp->filename); memcpy (p, bfp->data + s_offset, segsize); p += segsize; s_offset += segsize; if (sysdepref == SEGMENTS_END) - break; + break; if (sysdepref >= header->n_sysdep_segments) - abort (); + abort (); /* See 'struct sysdep_segment'. */ sysdep_segment_offset = header->sysdep_segments_offset + sysdepref * 8; ss_length = get_uint32 (bfp, sysdep_segment_offset); ss_offset = get_uint32 (bfp, sysdep_segment_offset + 4); if (ss_offset + ss_length > bfp->size) - abort (); + abort (); if (!(ss_length > 0 && bfp->data[ss_offset + ss_length - 1] == '\0')) - abort (); + abort (); n = strlen (bfp->data + ss_offset); if (n > 1) - *p++ = '<'; + *p++ = '<'; memcpy (p, bfp->data + ss_offset, n); p += n; if (n > 1) - *p++ = '>'; + *p++ = '>'; } if (p != string + length) @@ -248,8 +248,8 @@ { fp = fopen (filename, "rb"); if (fp == NULL) - error (EXIT_FAILURE, errno, - _("error while opening \"%s\" for reading"), filename); + error (EXIT_FAILURE, errno, + _("error while opening \"%s\" for reading"), filename); } /* Read the file contents into memory. */ @@ -269,11 +269,11 @@ bf.endian = MO_LITTLE_ENDIAN; header.magic = GET_HEADER_FIELD (magic); if (header.magic != _MAGIC) - { - unrecognised: - error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"), - filename); - } + { + unrecognised: + error (EXIT_FAILURE, 0, _("file \"%s\" is not in GNU .mo format"), + filename); + } } header.revision = GET_HEADER_FIELD (revision); @@ -291,165 +291,165 @@ header.hash_tab_offset = GET_HEADER_FIELD (hash_tab_offset); for (i = 0; i < header.nstrings; i++) - { - message_ty *mp; - char *msgctxt; - char *msgid; - size_t msgid_len; - char *separator; - char *msgstr; - size_t msgstr_len; - - /* Read the msgctxt and msgid. */ - msgid = get_string (&bf, header.orig_tab_offset + i * 8, - &msgid_len); - /* Split into msgctxt and msgid. */ - separator = strchr (msgid, MSGCTXT_SEPARATOR); - if (separator != NULL) - { - /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ - *separator = '\0'; - msgctxt = msgid; - msgid = separator + 1; - msgid_len -= msgid - msgctxt; - } - else - msgctxt = NULL; - - /* Read the msgstr. */ - msgstr = get_string (&bf, header.trans_tab_offset + i * 8, - &msgstr_len); - - mp = message_alloc (msgctxt, - msgid, - (strlen (msgid) + 1 < msgid_len - ? msgid + strlen (msgid) + 1 - : NULL), - msgstr, msgstr_len, - &pos); - message_list_append (mlp, mp); - } + { + message_ty *mp; + char *msgctxt; + char *msgid; + size_t msgid_len; + char *separator; + char *msgstr; + size_t msgstr_len; + + /* Read the msgctxt and msgid. */ + msgid = get_string (&bf, header.orig_tab_offset + i * 8, + &msgid_len); + /* Split into msgctxt and msgid. */ + separator = strchr (msgid, MSGCTXT_SEPARATOR); + if (separator != NULL) + { + /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ + *separator = '\0'; + msgctxt = msgid; + msgid = separator + 1; + msgid_len -= msgid - msgctxt; + } + else + msgctxt = NULL; + + /* Read the msgstr. */ + msgstr = get_string (&bf, header.trans_tab_offset + i * 8, + &msgstr_len); + + mp = message_alloc (msgctxt, + msgid, + (strlen (msgid) + 1 < msgid_len + ? msgid + strlen (msgid) + 1 + : NULL), + msgstr, msgstr_len, + &pos); + message_list_append (mlp, mp); + } switch (header.revision & 0xffff) - { - case 0: - break; - case 1: - default: - /* Fill the header parts that apply to minor revision >= 1. */ - header.n_sysdep_segments = GET_HEADER_FIELD (n_sysdep_segments); - header.sysdep_segments_offset = - GET_HEADER_FIELD (sysdep_segments_offset); - header.n_sysdep_strings = GET_HEADER_FIELD (n_sysdep_strings); - header.orig_sysdep_tab_offset = - GET_HEADER_FIELD (orig_sysdep_tab_offset); - header.trans_sysdep_tab_offset = - GET_HEADER_FIELD (trans_sysdep_tab_offset); - - for (i = 0; i < header.n_sysdep_strings; i++) - { - message_ty *mp; - char *msgctxt; - char *msgid; - size_t msgid_len; - char *separator; - char *msgstr; - size_t msgstr_len; - nls_uint32 offset; - size_t f; - - /* Read the msgctxt and msgid. */ - offset = get_uint32 (&bf, header.orig_sysdep_tab_offset + i * 4); - msgid = get_sysdep_string (&bf, offset, &header, &msgid_len); - /* Split into msgctxt and msgid. */ - separator = strchr (msgid, MSGCTXT_SEPARATOR); - if (separator != NULL) - { - /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ - *separator = '\0'; - msgctxt = msgid; - msgid = separator + 1; - msgid_len -= msgid - msgctxt; - } - else - msgctxt = NULL; - - /* Read the msgstr. */ - offset = get_uint32 (&bf, header.trans_sysdep_tab_offset + i * 4); - msgstr = get_sysdep_string (&bf, offset, &header, &msgstr_len); - - mp = message_alloc (msgctxt, - msgid, - (strlen (msgid) + 1 < msgid_len - ? msgid + strlen (msgid) + 1 - : NULL), - msgstr, msgstr_len, - &pos); - - /* Only messages with c-format or objc-format annotation are - recognized as having system-dependent strings by msgfmt. - Which one of the two, we don't know. We have to guess, - assuming that c-format is more probable than objc-format and - that the .mo was likely produced by "msgfmt -c". */ - for (f = format_c; ; f = format_objc) - { - bool valid = true; - struct formatstring_parser *parser = formatstring_parsers[f]; - const char *str_end; - const char *str; - - str_end = msgid + msgid_len; - for (str = msgid; str < str_end; str += strlen (str) + 1) - { - char *invalid_reason = NULL; - void *descr = - parser->parse (str, false, NULL, &invalid_reason); - - if (descr != NULL) - parser->free (descr); - else - { - free (invalid_reason); - valid = false; - break; - } - } - if (valid) - { - str_end = msgstr + msgstr_len; - for (str = msgstr; str < str_end; str += strlen (str) + 1) - { - char *invalid_reason = NULL; - void *descr = - parser->parse (str, true, NULL, &invalid_reason); - - if (descr != NULL) - parser->free (descr); - else - { - free (invalid_reason); - valid = false; - break; - } - } - } - - if (valid) - { - /* Found the most likely among c-format, objc-format. */ - mp->is_format[f] = yes; - break; - } - - /* Try next f. */ - if (f == format_objc) - break; - } - - message_list_append (mlp, mp); - } - break; - } + { + case 0: + break; + case 1: + default: + /* Fill the header parts that apply to minor revision >= 1. */ + header.n_sysdep_segments = GET_HEADER_FIELD (n_sysdep_segments); + header.sysdep_segments_offset = + GET_HEADER_FIELD (sysdep_segments_offset); + header.n_sysdep_strings = GET_HEADER_FIELD (n_sysdep_strings); + header.orig_sysdep_tab_offset = + GET_HEADER_FIELD (orig_sysdep_tab_offset); + header.trans_sysdep_tab_offset = + GET_HEADER_FIELD (trans_sysdep_tab_offset); + + for (i = 0; i < header.n_sysdep_strings; i++) + { + message_ty *mp; + char *msgctxt; + char *msgid; + size_t msgid_len; + char *separator; + char *msgstr; + size_t msgstr_len; + nls_uint32 offset; + size_t f; + + /* Read the msgctxt and msgid. */ + offset = get_uint32 (&bf, header.orig_sysdep_tab_offset + i * 4); + msgid = get_sysdep_string (&bf, offset, &header, &msgid_len); + /* Split into msgctxt and msgid. */ + separator = strchr (msgid, MSGCTXT_SEPARATOR); + if (separator != NULL) + { + /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ + *separator = '\0'; + msgctxt = msgid; + msgid = separator + 1; + msgid_len -= msgid - msgctxt; + } + else + msgctxt = NULL; + + /* Read the msgstr. */ + offset = get_uint32 (&bf, header.trans_sysdep_tab_offset + i * 4); + msgstr = get_sysdep_string (&bf, offset, &header, &msgstr_len); + + mp = message_alloc (msgctxt, + msgid, + (strlen (msgid) + 1 < msgid_len + ? msgid + strlen (msgid) + 1 + : NULL), + msgstr, msgstr_len, + &pos); + + /* Only messages with c-format or objc-format annotation are + recognized as having system-dependent strings by msgfmt. + Which one of the two, we don't know. We have to guess, + assuming that c-format is more probable than objc-format and + that the .mo was likely produced by "msgfmt -c". */ + for (f = format_c; ; f = format_objc) + { + bool valid = true; + struct formatstring_parser *parser = formatstring_parsers[f]; + const char *str_end; + const char *str; + + str_end = msgid + msgid_len; + for (str = msgid; str < str_end; str += strlen (str) + 1) + { + char *invalid_reason = NULL; + void *descr = + parser->parse (str, false, NULL, &invalid_reason); + + if (descr != NULL) + parser->free (descr); + else + { + free (invalid_reason); + valid = false; + break; + } + } + if (valid) + { + str_end = msgstr + msgstr_len; + for (str = msgstr; str < str_end; str += strlen (str) + 1) + { + char *invalid_reason = NULL; + void *descr = + parser->parse (str, true, NULL, &invalid_reason); + + if (descr != NULL) + parser->free (descr); + else + { + free (invalid_reason); + valid = false; + break; + } + } + } + + if (valid) + { + /* Found the most likely among c-format, objc-format. */ + mp->is_format[f] = yes; + break; + } + + /* Try next f. */ + if (f == format_objc) + break; + } + + message_list_append (mlp, mp); + } + break; + } break; default: diff -Nru gettext-0.17/gettext-tools/src/read-po.c gettext-0.18.1.1/gettext-tools/src/read-po.c --- gettext-0.17/gettext-tools/src/read-po.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-po.c 2010-06-06 12:49:58.000000000 +0000 @@ -34,7 +34,7 @@ abstract_catalog_reader_class_ty methods. */ static void po_parse (abstract_catalog_reader_ty *this, FILE *fp, - const char *real_filename, const char *logical_filename) + const char *real_filename, const char *logical_filename) { lex_start (fp, real_filename, logical_filename); po_gram_parse (); @@ -43,6 +43,6 @@ const struct catalog_input_format input_format_po = { - po_parse, /* parse */ - false /* produces_utf8 */ + po_parse, /* parse */ + false /* produces_utf8 */ }; diff -Nru gettext-0.17/gettext-tools/src/read-properties.c gettext-0.18.1.1/gettext-tools/src/read-properties.c --- gettext-0.17/gettext-tools/src/read-properties.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-properties.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading Java .properties files. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -82,14 +82,14 @@ if (c == EOF) { if (ferror (fp)) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while reading \"%s\""), - real_file_name), - errno_description)); - } + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("error while reading \"%s\""), + real_file_name), + errno_description)); + } return EOF; } @@ -122,13 +122,13 @@ c = phase1_getc (); if (c == '\r') - { - int c2 = phase1_getc (); - if (c2 == '\n') - c = c2; - else - phase1_ungetc (c2); - } + { + int c2 = phase1_getc (); + if (c2 == '\n') + c = c2; + else + phase1_ungetc (c2); + } } if (c == '\n') @@ -159,18 +159,18 @@ for (;;) { if (c != '\\') - return c; + return c; c = phase2_getc (); if (c != '\n') - { - phase2_ungetc (c); - return '\\'; - } + { + phase2_ungetc (c); + return '\\'; + } /* Skip the backslash-newline and all whitespace that follows it. */ do - c = phase2_getc (); + c = phase2_getc (); while (c == ' ' || c == '\t' || c == '\r' || c == '\f'); } } @@ -197,39 +197,39 @@ int c2 = phase3_getc (); if (c2 == 't') - return '\t'; + return '\t'; if (c2 == 'n') - return '\n'; + return '\n'; if (c2 == 'r') - return '\r'; + return '\r'; if (c2 == 'f') - return '\f'; + return '\f'; if (c2 == 'u') - { - unsigned int n = 0; - int i; - - for (i = 0; i < 4; i++) - { - int c1 = phase3_getc (); - - if (c1 >= '0' && c1 <= '9') - n = (n << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - n = (n << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - n = (n << 4) + (c1 - 'a' + 10); - else - { - phase3_ungetc (c1); - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), - false, _("warning: invalid \\uxxxx syntax for Unicode character")); - return 'u'; - } - } - return n; - } + { + unsigned int n = 0; + int i; + + for (i = 0; i < 4; i++) + { + int c1 = phase3_getc (); + + if (c1 >= '0' && c1 <= '9') + n = (n << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + n = (n << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + n = (n << 4) + (c1 - 'a' + 10); + else + { + phase3_ungetc (c1); + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), + false, _("warning: invalid \\uxxxx syntax for Unicode character")); + return 'u'; + } + } + return n; + } return c2; } @@ -254,12 +254,12 @@ const char *str_limit = str + length; while (str < str_limit) - { - unsigned int uc = (unsigned char) *str++; - int n = u8_uctomb (q, uc, 6); - assert (n > 0); - q += n; - } + { + unsigned int uc = (unsigned char) *str++; + int n = u8_uctomb (q, uc, 6); + assert (n > 0); + q += n; + } *q = '\0'; assert (q - utf8_string <= 2 * length); @@ -281,72 +281,72 @@ while (*p != '\0') { if (p[0] == '\\' && p[1] == 'u') - { - unsigned int n = 0; - int i; - - for (i = 0; i < 4; i++) - { - int c1 = (unsigned char) p[2 + i]; - - if (c1 >= '0' && c1 <= '9') - n = (n << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - n = (n << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - n = (n << 4) + (c1 - 'a' + 10); - else - goto just_one_byte; - } - - if (i == 4) - { - unsigned int uc; - - if (n >= 0xd800 && n < 0xdc00) - { - if (p[6] == '\\' && p[7] == 'u') - { - unsigned int m = 0; - - for (i = 0; i < 4; i++) - { - int c1 = (unsigned char) p[8 + i]; - - if (c1 >= '0' && c1 <= '9') - m = (m << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - m = (m << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - m = (m << 4) + (c1 - 'a' + 10); - else - goto just_one_byte; - } - - if (i == 4 && (m >= 0xdc00 && m < 0xe000)) - { - /* Combine two UTF-16 words to a character. */ - uc = 0x10000 + ((n - 0xd800) << 10) + (m - 0xdc00); - p += 12; - } - else - goto just_one_byte; - } - else - goto just_one_byte; - } - else - { - uc = n; - p += 6; - } - - q += u8_uctomb (q, uc, 6); - continue; - } - } + { + unsigned int n = 0; + int i; + + for (i = 0; i < 4; i++) + { + int c1 = (unsigned char) p[2 + i]; + + if (c1 >= '0' && c1 <= '9') + n = (n << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + n = (n << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + n = (n << 4) + (c1 - 'a' + 10); + else + goto just_one_byte; + } + + if (i == 4) + { + unsigned int uc; + + if (n >= 0xd800 && n < 0xdc00) + { + if (p[6] == '\\' && p[7] == 'u') + { + unsigned int m = 0; + + for (i = 0; i < 4; i++) + { + int c1 = (unsigned char) p[8 + i]; + + if (c1 >= '0' && c1 <= '9') + m = (m << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + m = (m << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + m = (m << 4) + (c1 - 'a' + 10); + else + goto just_one_byte; + } + + if (i == 4 && (m >= 0xdc00 && m < 0xe000)) + { + /* Combine two UTF-16 words to a character. */ + uc = 0x10000 + ((n - 0xd800) << 10) + (m - 0xdc00); + p += 12; + } + else + goto just_one_byte; + } + else + goto just_one_byte; + } + else + { + uc = n; + p += 6; + } + + q += u8_uctomb (q, uc, 6); + continue; + } + } just_one_byte: - *q++ = (unsigned char) *p++; + *q++ = (unsigned char) *p++; } *q = '\0'; return string; @@ -387,38 +387,38 @@ for (;;) { if (in_key && (c == '=' || c == ':' - || c == ' ' || c == '\t' || c == '\r' || c == '\f')) - { - /* Skip whitespace after the string. */ - while (c == ' ' || c == '\t' || c == '\r' || c == '\f') - c = phase3_getc (); - /* Skip '=' or ':' separator. */ - if (!(c == '=' || c == ':')) - phase3_ungetc (c); - break; - } + || c == ' ' || c == '\t' || c == '\r' || c == '\f')) + { + /* Skip whitespace after the string. */ + while (c == ' ' || c == '\t' || c == '\r' || c == '\f') + c = phase3_getc (); + /* Skip '=' or ':' separator. */ + if (!(c == '=' || c == ':')) + phase3_ungetc (c); + break; + } phase3_ungetc (c); /* Read the next UTF-16 codepoint. */ c = phase4_getuc (); if (c < 0) - break; + break; /* Append it to the buffer. */ if (buflen >= bufmax) - { - bufmax += 100; - buffer = xrealloc (buffer, bufmax * sizeof (unsigned short)); - } + { + bufmax += 100; + buffer = xrealloc (buffer, bufmax * sizeof (unsigned short)); + } buffer[buflen++] = c; c = phase3_getc (); if (c == EOF || c == '\n') - { - if (in_key) - phase3_ungetc (c); - break; - } + { + if (in_key) + phase3_ungetc (c); + break; + } } /* Now convert from UTF-16 to UTF-8. */ @@ -431,13 +431,13 @@ utf8_string = XNMALLOC (3 * buflen + 1, unsigned char); for (pos = 0, q = utf8_string; pos < buflen; ) { - unsigned int uc; - int n; + ucs4_t uc; + int n; - pos += u16_mbtouc (&uc, buffer + pos, buflen - pos); - n = u8_uctomb (q, uc, 6); - assert (n > 0); - q += n; + pos += u16_mbtouc (&uc, buffer + pos, buflen - pos); + n = u8_uctomb (q, uc, 6); + assert (n > 0); + q += n; } *q = '\0'; assert (q - utf8_string <= 3 * buflen); @@ -451,7 +451,7 @@ abstract_catalog_reader_class_ty methods. */ static void properties_parse (abstract_catalog_reader_ty *this, FILE *file, - const char *real_filename, const char *logical_filename) + const char *real_filename, const char *logical_filename) { fp = file; real_file_name = real_filename; @@ -467,85 +467,85 @@ c = phase2_getc (); if (c == EOF) - break; + break; comment = false; hidden = false; if (c == '#') - comment = true; + comment = true; else if (c == '!') - { - /* For compatibility with write-properties.c, we treat '!' not - followed by space as a fuzzy or untranslated message. */ - int c2 = phase2_getc (); - if (c2 == ' ' || c2 == '\n' || c2 == EOF) - comment = true; - else - hidden = true; - phase2_ungetc (c2); - } + { + /* For compatibility with write-properties.c, we treat '!' not + followed by space as a fuzzy or untranslated message. */ + int c2 = phase2_getc (); + if (c2 == ' ' || c2 == '\n' || c2 == EOF) + comment = true; + else + hidden = true; + phase2_ungetc (c2); + } else - phase2_ungetc (c); + phase2_ungetc (c); if (comment) - { - /* A comment line. */ - static char *buffer; - static size_t bufmax; - static size_t buflen; - - buflen = 0; - for (;;) - { - c = phase2_getc (); - - if (buflen >= bufmax) - { - bufmax += 100; - buffer = xrealloc (buffer, bufmax); - } - - if (c == EOF || c == '\n') - break; - - buffer[buflen++] = c; - } - buffer[buflen] = '\0'; + { + /* A comment line. */ + static char *buffer; + static size_t bufmax; + static size_t buflen; + + buflen = 0; + for (;;) + { + c = phase2_getc (); + + if (buflen >= bufmax) + { + bufmax += 100; + buffer = xrealloc (buffer, bufmax); + } + + if (c == EOF || c == '\n') + break; + + buffer[buflen++] = c; + } + buffer[buflen] = '\0'; - po_callback_comment_dispatcher (conv_from_java (conv_from_iso_8859_1 (buffer))); - } + po_callback_comment_dispatcher (conv_from_java (conv_from_iso_8859_1 (buffer))); + } else - { - /* A key/value pair. */ - char *msgid; - lex_pos_ty msgid_pos; - - msgid_pos = gram_pos; - msgid = read_escaped_string (true); - if (msgid == NULL) - /* Skip blank line. */ - ; - else - { - char *msgstr; - lex_pos_ty msgstr_pos; - bool force_fuzzy; - - msgstr_pos = gram_pos; - msgstr = read_escaped_string (false); - if (msgstr == NULL) - msgstr = xstrdup (""); - - /* Be sure to make the message fuzzy if it was commented out - and if it is not already header/fuzzy/untranslated. */ - force_fuzzy = (hidden && msgid[0] != '\0' && msgstr[0] != '\0'); - - po_callback_message (NULL, msgid, &msgid_pos, NULL, - msgstr, strlen (msgstr) + 1, &msgstr_pos, - NULL, NULL, NULL, - force_fuzzy, false); - } - } + { + /* A key/value pair. */ + char *msgid; + lex_pos_ty msgid_pos; + + msgid_pos = gram_pos; + msgid = read_escaped_string (true); + if (msgid == NULL) + /* Skip blank line. */ + ; + else + { + char *msgstr; + lex_pos_ty msgstr_pos; + bool force_fuzzy; + + msgstr_pos = gram_pos; + msgstr = read_escaped_string (false); + if (msgstr == NULL) + msgstr = xstrdup (""); + + /* Be sure to make the message fuzzy if it was commented out + and if it is not already header/fuzzy/untranslated. */ + force_fuzzy = (hidden && msgid[0] != '\0' && msgstr[0] != '\0'); + + po_callback_message (NULL, msgid, &msgid_pos, NULL, + msgstr, strlen (msgstr) + 1, &msgstr_pos, + NULL, NULL, NULL, + force_fuzzy, false); + } + } } fp = NULL; @@ -555,6 +555,6 @@ const struct catalog_input_format input_format_properties = { - properties_parse, /* parse */ - true /* produces_utf8 */ + properties_parse, /* parse */ + true /* produces_utf8 */ }; diff -Nru gettext-0.17/gettext-tools/src/read-resources.c gettext-0.18.1.1/gettext-tools/src/read-resources.c --- gettext-0.17/gettext-tools/src/read-resources.c 2007-10-07 19:37:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-resources.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading C# .resources files. - Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -35,7 +35,7 @@ #include "read-catalog.h" #include "read-po.h" #include "message.h" -#include "filename.h" +#include "concat-filename.h" #include "error.h" #include "gettext.h" @@ -55,8 +55,8 @@ static bool execute_and_read_po_output (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { struct locals *l = (struct locals *) private_data; pid_t child; @@ -66,7 +66,7 @@ /* Open a pipe to the C# execution engine. */ child = create_pipe_in (progname, prog_path, prog_argv, NULL, false, - true, true, fd); + true, true, fd); fp = fdopen (fd[0], "r"); if (fp == NULL) @@ -78,10 +78,11 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, progname, false, false, true, true); + exitstatus = + wait_subprocess (child, progname, false, false, true, true, NULL); if (exitstatus != 0) error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), - progname, exitstatus); + progname, exitstatus); return false; } @@ -114,12 +115,13 @@ gettextlibdir = relocate (LIBDIR); /* Dump the resource and retrieve the resulting output. */ - assembly_path = concatenated_filename (gettextexedir, "msgunfmt.net", ".exe"); + assembly_path = + xconcatenated_filename (gettextexedir, "msgunfmt.net", ".exe"); libdirs[0] = gettextlibdir; if (execute_csharp_program (assembly_path, libdirs, 1, - args, - verbose, false, - execute_and_read_po_output, &locals)) + args, + verbose, false, + execute_and_read_po_output, &locals)) /* An error message should already have been provided. */ exit (EXIT_FAILURE); diff -Nru gettext-0.17/gettext-tools/src/read-stringtable.c gettext-0.18.1.1/gettext-tools/src/read-stringtable.c --- gettext-0.17/gettext-tools/src/read-stringtable.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-stringtable.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading NeXTstep/GNUstep .strings files. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -91,14 +91,14 @@ if (c == EOF) { if (ferror (fp)) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while reading \"%s\""), - real_file_name), - errno_description)); - } + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("error while reading \"%s\""), + real_file_name), + errno_description)); + } return EOF; } @@ -149,38 +149,38 @@ c0 = phase1_getc (); if (c0 == EOF) - return UEOF; + return UEOF; c1 = phase1_getc (); if (c1 == EOF) - { - phase1_ungetc (c0); - encoding = enc_iso8859_1; - } + { + phase1_ungetc (c0); + encoding = enc_iso8859_1; + } else if (c0 == 0xfe && c1 == 0xff) - encoding = enc_ucs2be; + encoding = enc_ucs2be; else if (c0 == 0xff && c1 == 0xfe) - encoding = enc_ucs2le; + encoding = enc_ucs2le; else - { - int c2; + { + int c2; - c2 = phase1_getc (); - if (c2 == EOF) - { - phase1_ungetc (c1); - phase1_ungetc (c0); - encoding = enc_iso8859_1; - } - else if (c0 == 0xef && c1 == 0xbb && c2 == 0xbf) - encoding = enc_utf8; - else - { - phase1_ungetc (c2); - phase1_ungetc (c1); - phase1_ungetc (c0); - encoding = enc_iso8859_1; - } - } + c2 = phase1_getc (); + if (c2 == EOF) + { + phase1_ungetc (c1); + phase1_ungetc (c0); + encoding = enc_iso8859_1; + } + else if (c0 == 0xef && c1 == 0xbb && c2 == 0xbf) + encoding = enc_utf8; + else + { + phase1_ungetc (c2); + phase1_ungetc (c1); + phase1_ungetc (c0); + encoding = enc_iso8859_1; + } + } } switch (encoding) @@ -188,106 +188,106 @@ case enc_ucs2be: /* Read an UCS-2BE encoded character. */ { - int c0, c1; + int c0, c1; - c0 = phase1_getc (); - if (c0 == EOF) - return UEOF; - c1 = phase1_getc (); - if (c1 == EOF) - return UEOF; - return (c0 << 8) + c1; + c0 = phase1_getc (); + if (c0 == EOF) + return UEOF; + c1 = phase1_getc (); + if (c1 == EOF) + return UEOF; + return (c0 << 8) + c1; } case enc_ucs2le: /* Read an UCS-2LE encoded character. */ { - int c0, c1; + int c0, c1; - c0 = phase1_getc (); - if (c0 == EOF) - return UEOF; - c1 = phase1_getc (); - if (c1 == EOF) - return UEOF; - return c0 + (c1 << 8); + c0 = phase1_getc (); + if (c0 == EOF) + return UEOF; + c1 = phase1_getc (); + if (c1 == EOF) + return UEOF; + return c0 + (c1 << 8); } case enc_utf8: /* Read an UTF-8 encoded character. */ { - unsigned char buf[6]; - unsigned int count; - int c; - unsigned int uc; - - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[0] = c; - count = 1; - - if (buf[0] >= 0xc0) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[1] = c; - count = 2; - - if (buf[0] >= 0xe0 - && ((buf[1] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[2] = c; - count = 3; - - if (buf[0] >= 0xf0 - && ((buf[2] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[3] = c; - count = 4; - - if (buf[0] >= 0xf8 - && ((buf[3] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[4] = c; - count = 5; - - if (buf[0] >= 0xfc - && ((buf[4] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[5] = c; - count = 6; - } - } - } - } - } + unsigned char buf[6]; + unsigned int count; + int c; + ucs4_t uc; + + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[0] = c; + count = 1; + + if (buf[0] >= 0xc0) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[1] = c; + count = 2; + + if (buf[0] >= 0xe0 + && ((buf[1] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[2] = c; + count = 3; + + if (buf[0] >= 0xf0 + && ((buf[2] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[3] = c; + count = 4; + + if (buf[0] >= 0xf8 + && ((buf[3] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[4] = c; + count = 5; + + if (buf[0] >= 0xfc + && ((buf[4] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[5] = c; + count = 6; + } + } + } + } + } - u8_mbtouc (&uc, buf, count); - return uc; + u8_mbtouc (&uc, buf, count); + return uc; } case enc_iso8859_1: /* Read an ISO-8859-1 encoded character. */ { - int c = phase1_getc (); + int c = phase1_getc (); - if (c == EOF) - return UEOF; - return c; + if (c == EOF) + return UEOF; + return c; } default: @@ -374,71 +374,71 @@ for (;;) { if (string == string_limit) - return NULL; + return NULL; c = *string++; if (c == '"') - break; + break; if (c == '\\') - { - if (string == string_limit) - return NULL; - c = *string++; - if (c >= '0' && c <= '7') - { - unsigned int n = 0; - int j = 0; - for (;;) - { - n = n * 8 + (c - '0'); - if (++j == 3) - break; - if (string == string_limit) - break; - c = *string; - if (!(c >= '0' && c <= '7')) - break; - string++; - } - c = n; - } - else if (c == 'u' || c == 'U') - { - unsigned int n = 0; - int j; - for (j = 0; j < 4; j++) - { - if (string == string_limit) - break; - c = *string; - if (c >= '0' && c <= '9') - n = n * 16 + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = n * 16 + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = n * 16 + (c - 'a' + 10); - else - break; - string++; - } - c = n; - } - else - switch (c) - { - case 'a': c = '\a'; break; - case 'b': c = '\b'; break; - case 't': c = '\t'; break; - case 'r': c = '\r'; break; - case 'n': c = '\n'; break; - case 'v': c = '\v'; break; - case 'f': c = '\f'; break; - } - } + { + if (string == string_limit) + return NULL; + c = *string++; + if (c >= '0' && c <= '7') + { + unsigned int n = 0; + int j = 0; + for (;;) + { + n = n * 8 + (c - '0'); + if (++j == 3) + break; + if (string == string_limit) + break; + c = *string; + if (!(c >= '0' && c <= '7')) + break; + string++; + } + c = n; + } + else if (c == 'u' || c == 'U') + { + unsigned int n = 0; + int j; + for (j = 0; j < 4; j++) + { + if (string == string_limit) + break; + c = *string; + if (c >= '0' && c <= '9') + n = n * 16 + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = n * 16 + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = n * 16 + (c - 'a' + 10); + else + break; + string++; + } + c = n; + } + else + switch (c) + { + case 'a': c = '\a'; break; + case 'b': c = '\b'; break; + case 't': c = '\t'; break; + case 'r': c = '\r'; break; + case 'n': c = '\n'; break; + case 'v': c = '\v'; break; + case 'f': c = '\f'; break; + } + } if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax * sizeof (int)); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax * sizeof (int)); + } buffer[buflen++] = c; } @@ -520,7 +520,7 @@ buflen -= chars_to_remove; /* Drop trailing white space, but not EOLs. */ while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; /* At special positions we interpret a comment of the form @@ -530,8 +530,8 @@ if (test_for_fuzzy_msgstr && buflen > 2 && buffer[0] == '=' && buffer[1] == ' ' && (fuzzy_msgstr = - parse_escaped_string (buffer + 2, - buflen - (buffer[buflen - 1] == ';') - 2))) + parse_escaped_string (buffer + 2, + buflen - (buffer[buflen - 1] == ';') - 2))) return; line = conv_from_ucs4 (buffer, buflen); @@ -555,16 +555,16 @@ char *endp; if (strlen (line) >= 6 && memcmp (line, "File: ", 6) == 0 - && (last_colon = strrchr (line + 6, ':')) != NULL - && *(last_colon + 1) != '\0' - && (number = strtoul (last_colon + 1, &endp, 10), *endp == '\0')) - { - /* A "File: :" type comment. */ - *last_colon = '\0'; - po_callback_comment_filepos (line + 6, number); - } + && (last_colon = strrchr (line + 6, ':')) != NULL + && *(last_colon + 1) != '\0' + && (number = strtoul (last_colon + 1, &endp, 10), *endp == '\0')) + { + /* A "File: :" type comment. */ + *last_colon = '\0'; + po_callback_comment_filepos (line + 6, number); + } else - po_callback_comment (line); + po_callback_comment (line); } } @@ -590,79 +590,79 @@ case '*': /* C style comment. */ { - bool last_was_star; - size_t trailing_stars; - bool seen_newline; - - comment_start (); - last_was_star = false; - trailing_stars = 0; - seen_newline = false; - /* Drop additional stars at the beginning of the comment. */ - for (;;) - { - c = phase3_getc (); - if (c != '*') - break; - last_was_star = true; - } - phase3_ungetc (c); - for (;;) - { - c = phase3_getc (); - if (c == UEOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - switch (c) - { - case '\n': - seen_newline = true; - comment_line_end (1, false); - comment_start (); - last_was_star = false; - trailing_stars = 0; - continue; - - case '*': - last_was_star = true; - trailing_stars++; - continue; - - case '/': - if (last_was_star) - { - /* Drop additional stars at the end of the comment. */ - comment_line_end (trailing_stars + 1, - expect_fuzzy_msgstr_as_c_comment - && !seen_newline); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - trailing_stars = 0; - continue; - } - break; - } - return ' '; + bool last_was_star; + size_t trailing_stars; + bool seen_newline; + + comment_start (); + last_was_star = false; + trailing_stars = 0; + seen_newline = false; + /* Drop additional stars at the beginning of the comment. */ + for (;;) + { + c = phase3_getc (); + if (c != '*') + break; + last_was_star = true; + } + phase3_ungetc (c); + for (;;) + { + c = phase3_getc (); + if (c == UEOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + switch (c) + { + case '\n': + seen_newline = true; + comment_line_end (1, false); + comment_start (); + last_was_star = false; + trailing_stars = 0; + continue; + + case '*': + last_was_star = true; + trailing_stars++; + continue; + + case '/': + if (last_was_star) + { + /* Drop additional stars at the end of the comment. */ + comment_line_end (trailing_stars + 1, + expect_fuzzy_msgstr_as_c_comment + && !seen_newline); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + trailing_stars = 0; + continue; + } + break; + } + return ' '; } case '/': /* C++ style comment. */ comment_start (); for (;;) - { - c = phase3_getc (); - if (c == '\n' || c == UEOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } + { + c = phase3_getc (); + if (c == '\n' || c == UEOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } comment_line_end (0, expect_fuzzy_msgstr_as_cxx_comment); return '\n'; } @@ -680,7 +680,7 @@ is_whitespace (int c) { return (c == ' ' || c == '\t' || c == '\r' || c == '\n' || c == '\f' - || c == '\b'); + || c == '\b'); } /* Return true if a character needs quoting, i.e. cannot be used in unquoted @@ -729,94 +729,94 @@ { /* Read a string enclosed in double-quotes. */ for (;;) - { - c = phase3_getc (); - if (c == UEOF || c == '"') - break; - if (c == '\\') - { - c = phase3_getc (); - if (c == UEOF) - break; - if (c >= '0' && c <= '7') - { - unsigned int n = 0; - int j = 0; - for (;;) - { - n = n * 8 + (c - '0'); - if (++j == 3) - break; - c = phase3_getc (); - if (!(c >= '0' && c <= '7')) - { - phase3_ungetc (c); - break; - } - } - c = n; - } - else if (c == 'u' || c == 'U') - { - unsigned int n = 0; - int j; - for (j = 0; j < 4; j++) - { - c = phase3_getc (); - if (c >= '0' && c <= '9') - n = n * 16 + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = n * 16 + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = n * 16 + (c - 'a' + 10); - else - { - phase3_ungetc (c); - break; - } - } - c = n; - } - else - switch (c) - { - case 'a': c = '\a'; break; - case 'b': c = '\b'; break; - case 't': c = '\t'; break; - case 'r': c = '\r'; break; - case 'n': c = '\n'; break; - case 'v': c = '\v'; break; - case 'f': c = '\f'; break; - } - } - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax * sizeof (int)); - } - buffer[buflen++] = c; - } + { + c = phase3_getc (); + if (c == UEOF || c == '"') + break; + if (c == '\\') + { + c = phase3_getc (); + if (c == UEOF) + break; + if (c >= '0' && c <= '7') + { + unsigned int n = 0; + int j = 0; + for (;;) + { + n = n * 8 + (c - '0'); + if (++j == 3) + break; + c = phase3_getc (); + if (!(c >= '0' && c <= '7')) + { + phase3_ungetc (c); + break; + } + } + c = n; + } + else if (c == 'u' || c == 'U') + { + unsigned int n = 0; + int j; + for (j = 0; j < 4; j++) + { + c = phase3_getc (); + if (c >= '0' && c <= '9') + n = n * 16 + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = n * 16 + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = n * 16 + (c - 'a' + 10); + else + { + phase3_ungetc (c); + break; + } + } + c = n; + } + else + switch (c) + { + case 'a': c = '\a'; break; + case 'b': c = '\b'; break; + case 't': c = '\t'; break; + case 'r': c = '\r'; break; + case 'n': c = '\n'; break; + case 'v': c = '\v'; break; + case 'f': c = '\f'; break; + } + } + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax * sizeof (int)); + } + buffer[buflen++] = c; + } if (c == UEOF) - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), false, - _("warning: unterminated string")); + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), false, + _("warning: unterminated string")); } else { /* Read a token outside quotes. */ if (is_quotable (c)) - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), false, - _("warning: syntax error")); + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), false, + _("warning: syntax error")); for (; c != UEOF && !is_quotable (c); c = phase4_getc ()) - { - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax * sizeof (int)); - } - buffer[buflen++] = c; - } + { + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax * sizeof (int)); + } + buffer[buflen++] = c; + } } return conv_from_ucs4 (buffer, buflen); @@ -827,7 +827,7 @@ abstract_catalog_reader_class_ty methods. */ static void stringtable_parse (abstract_catalog_reader_ty *pop, FILE *file, - const char *real_filename, const char *logical_filename) + const char *real_filename, const char *logical_filename) { fp = file; real_file_name = real_filename; @@ -854,101 +854,101 @@ /* Read the key and all the comments preceding it. */ msgid = read_string (&msgid_pos); if (msgid == NULL) - break; + break; special_comment_finish (); /* Skip whitespace. */ do - c = phase4_getc (); + c = phase4_getc (); while (is_whitespace (c)); /* Expect a '=' or ';'. */ if (c == UEOF) - { - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), false, - _("warning: unterminated key/value pair")); - break; - } + { + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), false, + _("warning: unterminated key/value pair")); + break; + } if (c == ';') - { - /* "key"; is an abbreviation for "key"=""; and does not - necessarily designate an untranslated entry. */ - msgstr = xstrdup (""); - msgstr_pos = msgid_pos; - po_callback_message (NULL, msgid, &msgid_pos, NULL, - msgstr, strlen (msgstr) + 1, &msgstr_pos, - NULL, NULL, NULL, - false, next_is_obsolete); - } + { + /* "key"; is an abbreviation for "key"=""; and does not + necessarily designate an untranslated entry. */ + msgstr = xstrdup (""); + msgstr_pos = msgid_pos; + po_callback_message (NULL, msgid, &msgid_pos, NULL, + msgstr, strlen (msgstr) + 1, &msgstr_pos, + NULL, NULL, NULL, + false, next_is_obsolete); + } else if (c == '=') - { - /* Read the value. */ - msgstr = read_string (&msgstr_pos); - if (msgstr == NULL) - { - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), - false, _("warning: unterminated key/value pair")); - break; - } - - /* Skip whitespace. But for fuzzy key/value pairs, look for the - tentative msgstr in the form of a C style comment. */ - expect_fuzzy_msgstr_as_c_comment = next_is_fuzzy; - do - { - c = phase4_getc (); - if (fuzzy_msgstr != NULL) - expect_fuzzy_msgstr_as_c_comment = false; - } - while (is_whitespace (c)); - expect_fuzzy_msgstr_as_c_comment = false; - - /* Expect a ';'. */ - if (c == ';') - { - /* But for fuzzy key/value pairs, look for the tentative msgstr - in the form of a C++ style comment. */ - if (fuzzy_msgstr == NULL && next_is_fuzzy) - { - do - c = phase3_getc (); - while (c == ' '); - phase3_ungetc (c); - - expect_fuzzy_msgstr_as_cxx_comment = true; - c = phase4_getc (); - phase4_ungetc (c); - expect_fuzzy_msgstr_as_cxx_comment = false; - } - if (fuzzy_msgstr != NULL && strcmp (msgstr, msgid) == 0) - msgstr = fuzzy_msgstr; - - /* A key/value pair. */ - po_callback_message (NULL, msgid, &msgid_pos, NULL, - msgstr, strlen (msgstr) + 1, &msgstr_pos, - NULL, NULL, NULL, - false, next_is_obsolete); - } - else - { - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), - false, _("\ + { + /* Read the value. */ + msgstr = read_string (&msgstr_pos); + if (msgstr == NULL) + { + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), + false, _("warning: unterminated key/value pair")); + break; + } + + /* Skip whitespace. But for fuzzy key/value pairs, look for the + tentative msgstr in the form of a C style comment. */ + expect_fuzzy_msgstr_as_c_comment = next_is_fuzzy; + do + { + c = phase4_getc (); + if (fuzzy_msgstr != NULL) + expect_fuzzy_msgstr_as_c_comment = false; + } + while (is_whitespace (c)); + expect_fuzzy_msgstr_as_c_comment = false; + + /* Expect a ';'. */ + if (c == ';') + { + /* But for fuzzy key/value pairs, look for the tentative msgstr + in the form of a C++ style comment. */ + if (fuzzy_msgstr == NULL && next_is_fuzzy) + { + do + c = phase3_getc (); + while (c == ' '); + phase3_ungetc (c); + + expect_fuzzy_msgstr_as_cxx_comment = true; + c = phase4_getc (); + phase4_ungetc (c); + expect_fuzzy_msgstr_as_cxx_comment = false; + } + if (fuzzy_msgstr != NULL && strcmp (msgstr, msgid) == 0) + msgstr = fuzzy_msgstr; + + /* A key/value pair. */ + po_callback_message (NULL, msgid, &msgid_pos, NULL, + msgstr, strlen (msgstr) + 1, &msgstr_pos, + NULL, NULL, NULL, + false, next_is_obsolete); + } + else + { + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), + false, _("\ warning: syntax error, expected ';' after string")); - break; - } - } + break; + } + } else - { - po_xerror (PO_SEVERITY_ERROR, NULL, - real_file_name, gram_pos.line_number, (size_t)(-1), false, - _("\ + { + po_xerror (PO_SEVERITY_ERROR, NULL, + real_file_name, gram_pos.line_number, (size_t)(-1), false, + _("\ warning: syntax error, expected '=' or ';' after string")); - break; - } + break; + } } fp = NULL; @@ -958,6 +958,6 @@ const struct catalog_input_format input_format_stringtable = { - stringtable_parse, /* parse */ - true /* produces_utf8 */ + stringtable_parse, /* parse */ + true /* produces_utf8 */ }; diff -Nru gettext-0.17/gettext-tools/src/read-tcl.c gettext-0.18.1.1/gettext-tools/src/read-tcl.c --- gettext-0.17/gettext-tools/src/read-tcl.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/read-tcl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Reading tcl/msgcat .msg files. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -29,7 +29,7 @@ #include "msgunfmt.h" #include "relocatable.h" -#include "filename.h" +#include "concat-filename.h" #include "sh-quote.h" #include "pipe.h" #include "wait-process.h" @@ -69,7 +69,7 @@ if (gettextdatadir == NULL || gettextdatadir[0] == '\0') gettextdatadir = relocate (GETTEXTDATADIR); - tclscript = concatenated_filename (gettextdatadir, "msgunfmt.tcl", NULL); + tclscript = xconcatenated_filename (gettextdatadir, "msgunfmt.tcl", NULL); /* Convert the locale name to lowercase and remove any encoding. */ len = strlen (locale_name); @@ -80,11 +80,11 @@ *p = *p - 'A' + 'a'; else if (*p == '.') { - *p = '\0'; - break; + *p = '\0'; + break; } - file_name = concatenated_filename (directory, frobbed_locale_name, ".msg"); + file_name = xconcatenated_filename (directory, frobbed_locale_name, ".msg"); freea (frobbed_locale_name); @@ -103,7 +103,7 @@ /* Open a pipe to the Tcl interpreter. */ child = create_pipe_in ("tclsh", "tclsh", argv, DEV_NULL, false, true, true, - fd); + fd); fp = fdopen (fd[0], "r"); if (fp == NULL) @@ -115,16 +115,17 @@ fclose (fp); /* Remove zombie process from process list, and retrieve exit status. */ - exitstatus = wait_subprocess (child, "tclsh", false, false, true, true); + exitstatus = + wait_subprocess (child, "tclsh", false, false, true, true, NULL); if (exitstatus != 0) { if (exitstatus == 2) - /* Special exitcode provided by msgunfmt.tcl. */ - error (EXIT_FAILURE, ENOENT, - _("error while opening \"%s\" for reading"), file_name); + /* Special exitcode provided by msgunfmt.tcl. */ + error (EXIT_FAILURE, ENOENT, + _("error while opening \"%s\" for reading"), file_name); else - error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), - "tclsh", exitstatus); + error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), + "tclsh", exitstatus); } free (tclscript); @@ -136,20 +137,20 @@ size_t j; for (j = 0; j < mlp->nitems; j++) - if (is_header (mlp->item[j])) - { - /* Found the header entry. */ - if (j > 0) - { - message_ty *header = mlp->item[j]; - size_t i; - - for (i = j; i > 0; i--) - mlp->item[i] = mlp->item[i - 1]; - mlp->item[0] = header; - } - break; - } + if (is_header (mlp->item[j])) + { + /* Found the header entry. */ + if (j > 0) + { + message_ty *header = mlp->item[j]; + size_t i; + + for (i = j; i > 0; i--) + mlp->item[i] = mlp->item[i - 1]; + mlp->item[0] = header; + } + break; + } } return mdlp; diff -Nru gettext-0.17/gettext-tools/src/recode-sr-latin.c gettext-0.18.1.1/gettext-tools/src/recode-sr-latin.c --- gettext-0.17/gettext-tools/src/recode-sr-latin.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/recode-sr-latin.c 2010-06-06 12:49:58.000000000 +0000 @@ -90,7 +90,7 @@ while ((opt = getopt_long (argc, argv, "hV", long_options, NULL)) != EOF) switch (opt) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'h': do_help = true; @@ -112,13 +112,13 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2006-2007"); + "2006-2007"); printf (_("Written by %s and %s.\n"), - /* TRANSLATORS: This is a proper name. The last name is - (with Unicode escapes) "\u0160egan" or (with HTML entities) - "Šegan". */ - proper_name_utf8 ("Danilo Segan", "Danilo \305\240egan"), - proper_name ("Bruno Haible")); + /* TRANSLATORS: This is a proper name. The last name is + (with Unicode escapes) "\u0160egan" or (with HTML entities) + "Šegan". */ + proper_name_utf8 ("Danilo Segan", "Danilo \305\240egan"), + proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -141,7 +141,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -188,8 +188,8 @@ struct linebuffer { - size_t size; /* Allocated. */ - size_t length; /* Used. */ + size_t size; /* Allocated. */ + size_t length; /* Used. */ char *buffer; }; @@ -216,27 +216,27 @@ char *end = lb->buffer + lb->size; for (;;) - { - int c = getc (stream); - if (c == EOF) - { - if (p == lb->buffer || ferror (stream)) - return NULL; - break; - } - if (p == end) - { - size_t oldsize = lb->size; /* = p - lb->buffer */ - size_t newsize = 2 * oldsize + 40; - lb->buffer = (char *) xrealloc (lb->buffer, newsize); - lb->size = newsize; - p = lb->buffer + oldsize; - end = lb->buffer + newsize; - } - *p++ = c; - if (c == '\n') - break; - } + { + int c = getc (stream); + if (c == EOF) + { + if (p == lb->buffer || ferror (stream)) + return NULL; + break; + } + if (p == end) + { + size_t oldsize = lb->size; /* = p - lb->buffer */ + size_t newsize = 2 * oldsize + 40; + lb->buffer = (char *) xrealloc (lb->buffer, newsize); + lb->size = newsize; + p = lb->buffer + oldsize; + end = lb->buffer + newsize; + } + *p++ = c; + if (c == '\n') + break; + } lb->length = p - lb->buffer; return lb; @@ -278,21 +278,21 @@ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (strcmp (locale_code, "EUC-KR") != 0) # endif - { - conv_to_utf8 = iconv_open ("UTF-8", locale_code); - /* TODO: Maybe append //TRANSLIT here? */ - conv_from_utf8 = iconv_open (locale_code, "UTF-8"); - } + { + conv_to_utf8 = iconv_open ("UTF-8", locale_code); + /* TODO: Maybe append //TRANSLIT here? */ + conv_from_utf8 = iconv_open (locale_code, "UTF-8"); + } if (conv_to_utf8 == (iconv_t)(-1)) - error (EXIT_FAILURE, 0, _("\ + error (EXIT_FAILURE, 0, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \ and iconv() does not support this conversion."), - locale_code, "UTF-8", basename (program_name)); + locale_code, "UTF-8", basename (program_name)); if (conv_from_utf8 == (iconv_t)(-1)) - error (EXIT_FAILURE, 0, _("\ + error (EXIT_FAILURE, 0, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \ and iconv() does not support this conversion."), - "UTF-8", locale_code, basename (program_name)); + "UTF-8", locale_code, basename (program_name)); last_utf8_line = NULL; last_utf8_line_len = 0; last_backconv_line = NULL; @@ -301,7 +301,7 @@ error (EXIT_FAILURE, 0, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \ This version was built without iconv()."), - locale_code, "UTF-8", basename (program_name)); + locale_code, "UTF-8", basename (program_name)); #endif } @@ -318,36 +318,36 @@ /* Read a line. */ if (read_linebuffer (&lb, stream) == NULL) - break; + break; line = lb.buffer; line_len = lb.length; /* read_linebuffer always returns a non-void result. */ if (line_len == 0) - abort (); + abort (); #if HAVE_ICONV /* Convert it to UTF-8. */ if (need_code_conversion) - { - char *utf8_line = last_utf8_line; - size_t utf8_line_len = last_utf8_line_len; - - if (xmem_cd_iconv (line, line_len, conv_to_utf8, - &utf8_line, &utf8_line_len) != 0) - error (EXIT_FAILURE, errno, - _("input is not valid in \"%s\" encoding"), - locale_code); - if (utf8_line != last_utf8_line) - { - if (last_utf8_line != NULL) - free (last_utf8_line); - last_utf8_line = utf8_line; - last_utf8_line_len = utf8_line_len; - } - - line = utf8_line; - line_len = utf8_line_len; - } + { + char *utf8_line = last_utf8_line; + size_t utf8_line_len = last_utf8_line_len; + + if (xmem_cd_iconv (line, line_len, conv_to_utf8, + &utf8_line, &utf8_line_len) != 0) + error (EXIT_FAILURE, errno, + _("input is not valid in \"%s\" encoding"), + locale_code); + if (utf8_line != last_utf8_line) + { + if (last_utf8_line != NULL) + free (last_utf8_line); + last_utf8_line = utf8_line; + last_utf8_line_len = utf8_line_len; + } + + line = utf8_line; + line_len = utf8_line_len; + } #endif /* Apply the filter. */ @@ -356,28 +356,28 @@ #if HAVE_ICONV /* Convert it back to the original encoding. */ if (need_code_conversion) - { - char *backconv_line = last_backconv_line; - size_t backconv_line_len = last_backconv_line_len; - - if (xmem_cd_iconv (filtered_line, filtered_line_len, conv_from_utf8, - &backconv_line, &backconv_line_len) != 0) - error (EXIT_FAILURE, errno, - _("error while converting from \"%s\" encoding to \"%s\" encoding"), - "UTF-8", locale_code); - if (backconv_line != last_backconv_line) - { - if (last_backconv_line != NULL) - free (last_backconv_line); - last_backconv_line = backconv_line; - last_backconv_line_len = backconv_line_len; - } + { + char *backconv_line = last_backconv_line; + size_t backconv_line_len = last_backconv_line_len; + + if (xmem_cd_iconv (filtered_line, filtered_line_len, conv_from_utf8, + &backconv_line, &backconv_line_len) != 0) + error (EXIT_FAILURE, errno, + _("error while converting from \"%s\" encoding to \"%s\" encoding"), + "UTF-8", locale_code); + if (backconv_line != last_backconv_line) + { + if (last_backconv_line != NULL) + free (last_backconv_line); + last_backconv_line = backconv_line; + last_backconv_line_len = backconv_line_len; + } - fwrite (backconv_line, 1, backconv_line_len, stdout); - } + fwrite (backconv_line, 1, backconv_line_len, stdout); + } else #endif - fwrite (filtered_line, 1, filtered_line_len, stdout); + fwrite (filtered_line, 1, filtered_line_len, stdout); free (filtered_line); } diff -Nru gettext-0.17/gettext-tools/src/str-list.c gettext-0.18.1.1/gettext-tools/src/str-list.c --- gettext-0.17/gettext-tools/src/str-list.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/str-list.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995, 1998, 2000-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 2000-2004, 2006, 2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -91,8 +91,8 @@ { slp->nitems_max = slp->nitems_max * 2 + 4; slp->item = (const char **) xrealloc (slp->item, - slp->nitems_max - * sizeof (slp->item[0])); + slp->nitems_max + * sizeof (slp->item[0])); } /* Add a copy of the string to the end of the list. */ @@ -176,14 +176,15 @@ /* Return a freshly allocated string obtained by concatenating all the - strings in the list, separated by the separator character, terminated + strings in the list, separated by the separator string, terminated by the terminator character. The terminator character is not added if drop_redundant_terminator is true and the last string already ends with the terminator. */ char * -string_list_join (const string_list_ty *slp, char separator, - char terminator, bool drop_redundant_terminator) +string_list_join (const string_list_ty *slp, const char *separator, + char terminator, bool drop_redundant_terminator) { + size_t separator_len = strlen (separator); size_t len; size_t j; char *result; @@ -192,8 +193,8 @@ len = 1; for (j = 0; j < slp->nitems; ++j) { - if (separator && j > 0) - ++len; + if (j > 0) + len += separator_len; len += strlen (slp->item[j]); } if (terminator) @@ -202,17 +203,20 @@ pos = 0; for (j = 0; j < slp->nitems; ++j) { - if (separator && j > 0) - result[pos++] = separator; + if (j > 0) + { + memcpy (result + pos, separator, separator_len); + pos += separator_len; + } len = strlen (slp->item[j]); memcpy (result + pos, slp->item[j], len); pos += len; } if (terminator && !(drop_redundant_terminator - && slp->nitems > 0 - && (len = strlen (slp->item[slp->nitems - 1])) > 0 - && slp->item[slp->nitems - 1][len - 1] == terminator)) + && slp->nitems > 0 + && (len = strlen (slp->item[slp->nitems - 1])) > 0 + && slp->item[slp->nitems - 1][len - 1] == terminator)) result[pos++] = terminator; result[pos] = '\0'; return result; diff -Nru gettext-0.17/gettext-tools/src/str-list.h gettext-0.18.1.1/gettext-tools/src/str-list.h --- gettext-0.17/gettext-tools/src/str-list.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/str-list.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1996, 1998, 2000-2004 Free Software Foundation, Inc. + Copyright (C) 1995-1996, 1998, 2000-2004, 2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -69,12 +69,12 @@ extern char *string_list_concat_destroy (string_list_ty *slp); /* Return a freshly allocated string obtained by concatenating all the - strings in the list, separated by the separator character, terminated + strings in the list, separated by the separator string, terminated by the terminator character. The terminator character is not added if drop_redundant_terminator is true and the last string already ends with the terminator. */ -extern char *string_list_join (const string_list_ty *slp, char separator, - char terminator, bool drop_redundant_terminator); +extern char *string_list_join (const string_list_ty *slp, const char *separator, + char terminator, bool drop_redundant_terminator); /* Return 1 if s is contained in the list of strings, 0 otherwise. */ extern bool string_list_member (const string_list_ty *slp, const char *s); diff -Nru gettext-0.17/gettext-tools/src/urlget.c gettext-0.18.1.1/gettext-tools/src/urlget.c --- gettext-0.17/gettext-tools/src/urlget.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/urlget.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Get the contents of an URL. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -57,13 +57,23 @@ wish to process HTML redirection tags need to include a HTML parser, and only full-fledged browsers like w3m, lynx, links have have both an URL fetcher (which covers at least the protocols "http", "ftp", "file") - and a HTML parser. */ + and a HTML parser. [Well, this is not true: libxml2 and Java (see + ) also contain + HTML parsers.] */ +/* Whether to output something on standard error. + This is true by default, because the user should know why we are trying to + establish an internet connection. Also, users get confused if a program + produces no output for more than 10 seconds for no apparent reason. */ +static bool verbose = true; + /* Long options. */ static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, + { "quiet", no_argument, NULL, 'q' }, + { "silent", no_argument, NULL, 'q' }, { "version", no_argument, NULL, 'V' }, { NULL, 0, NULL, 0 } }; @@ -106,15 +116,18 @@ do_version = false; /* Parse command line options. */ - while ((optchar = getopt_long (argc, argv, "hV", long_options, NULL)) != EOF) + while ((optchar = getopt_long (argc, argv, "hqV", long_options, NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; - case 'h': + case 'h': /* --help */ do_help = true; break; - case 'V': + case 'q': /* --quiet / --silent */ + verbose = false; + break; + case 'V': /* --version */ do_version = true; break; default: @@ -132,7 +145,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "2001-2003, 2005-2007"); + "2001-2003, 2005-2009"); printf (_("Written by %s.\n"), proper_name ("Bruno Haible")); exit (EXIT_SUCCESS); } @@ -157,7 +170,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -176,13 +189,15 @@ -h, --help display this help and exit\n")); printf (_("\ -V, --version output version information and exit\n")); + printf (_("\ + -q, --quiet, --silent suppress progress indicators\n")); printf ("\n"); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -199,62 +214,74 @@ src_fd = open (src_filename, O_RDONLY | O_BINARY); if (src_fd < 0) error (EXIT_FAILURE, errno, _("error while opening \"%s\" for reading"), - src_filename); + src_filename); for (;;) { ssize_t n_read = read (src_fd, buf, buf_size); if (n_read < 0) - { + { #ifdef EINTR - if (errno == EINTR) - continue; + if (errno == EINTR) + continue; #endif - error (EXIT_FAILURE, errno, _("error reading \"%s\""), src_filename); - } + error (EXIT_FAILURE, errno, _("error reading \"%s\""), src_filename); + } if (n_read == 0) - break; + break; if (full_write (STDOUT_FILENO, buf, n_read) < n_read) - error (EXIT_FAILURE, errno, _("error writing stdout")); + error (EXIT_FAILURE, errno, _("error writing stdout")); } if (close (src_fd) < 0) error (EXIT_FAILURE, errno, _("error after reading \"%s\""), src_filename); } +/* Exit code of the Java program. */ +static int java_exitcode; + static bool execute_it (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { (void) private_data; - return execute (progname, prog_path, prog_argv, true, true, false, false, - true, false) - != 0; + java_exitcode = + execute (progname, prog_path, prog_argv, true, true, false, false, true, + false, NULL); + /* Exit code 0 means success, 2 means timed out. */ + return !(java_exitcode == 0 || java_exitcode == 2); } /* Fetch the URL. Upon error, use the FILE as fallback. */ static void fetch (const char *url, const char *file) { + if (verbose) + { + fprintf (stderr, _("Retrieving %s..."), url); + fflush (stderr); + } + +#if USEJAVA /* First try: using Java. */ - if (0) { + { const char *class_name = "gnu.gettext.GetURL"; const char *gettextjexedir; const char *gettextjar; const char *args[2]; -#if USEJEXE +# if USEJEXE /* Make it possible to override the executable's location. This is necessary for running the testsuite before "make install". */ gettextjexedir = getenv ("GETTEXTJEXEDIR"); if (gettextjexedir == NULL || gettextjexedir[0] == '\0') gettextjexedir = relocate (GETTEXTJEXEDIR); -#else +# else gettextjexedir = NULL; -#endif +# endif /* Make it possible to override the gettext.jar location. This is necessary for running the testsuite before "make install". */ @@ -267,53 +294,65 @@ args[1] = NULL; /* Fetch the URL's contents. */ - if (execute_java_class (class_name, &gettextjar, 1, true, gettextjexedir, - args, - false, true, - execute_it, NULL) == 0) - return; + java_exitcode = 127; + if (!execute_java_class (class_name, &gettextjar, 1, true, gettextjexedir, + args, + false, true, + execute_it, NULL)) + { + if (verbose) + { + if (java_exitcode == 0) + fprintf (stderr, _(" done.\n")); + else if (java_exitcode == 2) + fprintf (stderr, _(" timed out.\n")); + } + return; + } } +#endif - /* Second try: using "wget -q -O - url". */ + /* Second try: using "wget -q -O - -T 30 url". */ { static bool wget_tested; static bool wget_present; if (!wget_tested) { - /* Test for presence of wget: "wget --version > /dev/null" */ - char *argv[3]; - int exitstatus; - - argv[0] = "wget"; - argv[1] = "--version"; - argv[2] = NULL; - exitstatus = execute ("wget", "wget", argv, false, false, true, true, - true, false); - wget_present = (exitstatus == 0); - wget_tested = true; + /* Test for presence of wget: "wget --version > /dev/null" */ + char *argv[3]; + int exitstatus; + + argv[0] = "wget"; + argv[1] = "--version"; + argv[2] = NULL; + exitstatus = execute ("wget", "wget", argv, false, false, true, true, + true, false, NULL); + wget_present = (exitstatus == 0); + wget_tested = true; } if (wget_present) { - char *argv[8]; - int exitstatus; + char *argv[8]; + int exitstatus; - argv[0] = "wget"; - argv[1] = "-q"; - argv[2] = "-O"; argv[3] = "-"; - argv[4] = "-T"; argv[5] = "30"; - argv[6] = (char *) url; - argv[7] = NULL; - exitstatus = execute ("wget", "wget", argv, true, false, false, false, - true, false); - if (exitstatus != 127) - { - if (exitstatus != 0) - /* Use the file as fallback. */ - cat_file (file); - return; - } + argv[0] = "wget"; + argv[1] = "-q"; + argv[2] = "-O"; argv[3] = "-"; + argv[4] = "-T"; argv[5] = "30"; + argv[6] = (char *) url; + argv[7] = NULL; + exitstatus = execute ("wget", "wget", argv, true, false, false, false, + true, false, NULL); + if (exitstatus != 127) + { + if (exitstatus != 0) + goto failed; + if (verbose) + fprintf (stderr, _(" done.\n")); + return; + } } } @@ -324,37 +363,38 @@ if (!lynx_tested) { - /* Test for presence of lynx: "lynx --version > /dev/null" */ - char *argv[3]; - int exitstatus; - - argv[0] = "lynx"; - argv[1] = "--version"; - argv[2] = NULL; - exitstatus = execute ("lynx", "lynx", argv, false, false, true, true, - true, false); - lynx_present = (exitstatus == 0); - lynx_tested = true; + /* Test for presence of lynx: "lynx --version > /dev/null" */ + char *argv[3]; + int exitstatus; + + argv[0] = "lynx"; + argv[1] = "--version"; + argv[2] = NULL; + exitstatus = execute ("lynx", "lynx", argv, false, false, true, true, + true, false, NULL); + lynx_present = (exitstatus == 0); + lynx_tested = true; } if (lynx_present) { - char *argv[4]; - int exitstatus; + char *argv[4]; + int exitstatus; - argv[0] = "lynx"; - argv[1] = "-source"; - argv[2] = (char *) url; - argv[3] = NULL; - exitstatus = execute ("lynx", "lynx", argv, true, false, false, false, - true, false); - if (exitstatus != 127) - { - if (exitstatus != 0) - /* Use the file as fallback. */ - cat_file (file); - return; - } + argv[0] = "lynx"; + argv[1] = "-source"; + argv[2] = (char *) url; + argv[3] = NULL; + exitstatus = execute ("lynx", "lynx", argv, true, false, false, false, + true, false, NULL); + if (exitstatus != 127) + { + if (exitstatus != 0) + goto failed; + if (verbose) + fprintf (stderr, _(" done.\n")); + return; + } } } @@ -365,40 +405,44 @@ if (!curl_tested) { - /* Test for presence of curl: "curl --version > /dev/null" */ - char *argv[3]; - int exitstatus; - - argv[0] = "curl"; - argv[1] = "--version"; - argv[2] = NULL; - exitstatus = execute ("curl", "curl", argv, false, false, true, true, - true, false); - curl_present = (exitstatus == 0 || exitstatus == 2); - curl_tested = true; + /* Test for presence of curl: "curl --version > /dev/null" */ + char *argv[3]; + int exitstatus; + + argv[0] = "curl"; + argv[1] = "--version"; + argv[2] = NULL; + exitstatus = execute ("curl", "curl", argv, false, false, true, true, + true, false, NULL); + curl_present = (exitstatus == 0 || exitstatus == 2); + curl_tested = true; } if (curl_present) { - char *argv[4]; - int exitstatus; + char *argv[4]; + int exitstatus; - argv[0] = "curl"; - argv[1] = "--silent"; - argv[2] = (char *) url; - argv[3] = NULL; - exitstatus = execute ("curl", "curl", argv, true, false, false, false, - true, false); - if (exitstatus != 127) - { - if (exitstatus != 0) - /* Use the file as fallback. */ - cat_file (file); - return; - } + argv[0] = "curl"; + argv[1] = "--silent"; + argv[2] = (char *) url; + argv[3] = NULL; + exitstatus = execute ("curl", "curl", argv, true, false, false, false, + true, false, NULL); + if (exitstatus != 127) + { + if (exitstatus != 0) + goto failed; + if (verbose) + fprintf (stderr, _(" done.\n")); + return; + } } } + failed: + if (verbose) + fprintf (stderr, _(" failed.\n")); /* Use the file as fallback. */ cat_file (file); } diff -Nru gettext-0.17/gettext-tools/src/write-catalog.c gettext-0.18.1.1/gettext-tools/src/write-catalog.c --- gettext-0.17/gettext-tools/src/write-catalog.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-catalog.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -91,8 +91,8 @@ void msgdomain_list_print (msgdomain_list_ty *mdlp, const char *filename, - catalog_output_format_ty output_syntax, - bool force, bool debug) + catalog_output_format_ty output_syntax, + bool force, bool debug) { bool to_stdout; @@ -104,158 +104,158 @@ size_t k; for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; + { + message_list_ty *mlp = mdlp->item[k]->messages; - if (!(mlp->nitems == 0 - || (mlp->nitems == 1 && is_header (mlp->item[0])))) - { - found_nonempty = true; - break; - } - } + if (!(mlp->nitems == 0 + || (mlp->nitems == 1 && is_header (mlp->item[0])))) + { + found_nonempty = true; + break; + } + } if (!found_nonempty) - return; + return; } /* Check whether the output format can accomodate all messages. */ if (!output_syntax->supports_multiple_domains && mdlp->nitems > 1) { if (output_syntax->alternative_is_po) - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\ + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\ Cannot output multiple translation domains into a single file with the specified output format. Try using PO file syntax instead.")); else - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\ + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, _("\ Cannot output multiple translation domains into a single file with the specified output format.")); } else { if (!output_syntax->supports_contexts) - { - const lex_pos_ty *has_context; - size_t k; - - has_context = NULL; - for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; - size_t j; - - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - - if (mp->msgctxt != NULL) - { - has_context = &mp->pos; - break; - } - } - } - - if (has_context != NULL) - { - error_with_progname = false; - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, - has_context->file_name, has_context->line_number, - (size_t)(-1), false, _("\ + { + const lex_pos_ty *has_context; + size_t k; + + has_context = NULL; + for (k = 0; k < mdlp->nitems; k++) + { + message_list_ty *mlp = mdlp->item[k]->messages; + size_t j; + + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + + if (mp->msgctxt != NULL) + { + has_context = &mp->pos; + break; + } + } + } + + if (has_context != NULL) + { + error_with_progname = false; + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, + has_context->file_name, has_context->line_number, + (size_t)(-1), false, _("\ message catalog has context dependent translations, but the output format does not support them.")); - error_with_progname = true; - } - } + error_with_progname = true; + } + } if (!output_syntax->supports_plurals) - { - const lex_pos_ty *has_plural; - size_t k; - - has_plural = NULL; - for (k = 0; k < mdlp->nitems; k++) - { - message_list_ty *mlp = mdlp->item[k]->messages; - size_t j; - - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - - if (mp->msgid_plural != NULL) - { - has_plural = &mp->pos; - break; - } - } - } - - if (has_plural != NULL) - { - error_with_progname = false; - if (output_syntax->alternative_is_java_class) - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, - has_plural->file_name, has_plural->line_number, - (size_t)(-1), false, _("\ + { + const lex_pos_ty *has_plural; + size_t k; + + has_plural = NULL; + for (k = 0; k < mdlp->nitems; k++) + { + message_list_ty *mlp = mdlp->item[k]->messages; + size_t j; + + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + + if (mp->msgid_plural != NULL) + { + has_plural = &mp->pos; + break; + } + } + } + + if (has_plural != NULL) + { + error_with_progname = false; + if (output_syntax->alternative_is_java_class) + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, + has_plural->file_name, has_plural->line_number, + (size_t)(-1), false, _("\ message catalog has plural form translations, but the output format does not support them. Try generating a Java class using \"msgfmt --java\", instead of a properties file.")); - else - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, - has_plural->file_name, has_plural->line_number, - (size_t)(-1), false, _("\ + else + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, + has_plural->file_name, has_plural->line_number, + (size_t)(-1), false, _("\ message catalog has plural form translations, but the output format does not support them.")); - error_with_progname = true; - } - } + error_with_progname = true; + } + } } to_stdout = (filename == NULL || strcmp (filename, "-") == 0 - || strcmp (filename, "/dev/stdout") == 0); + || strcmp (filename, "/dev/stdout") == 0); #if ENABLE_COLOR if (output_syntax->supports_color && (color_mode == color_yes - || (color_mode == color_tty && to_stdout && isatty (STDOUT_FILENO)))) + || (color_mode == color_tty && to_stdout && isatty (STDOUT_FILENO)))) { int fd; ostream_t stream; /* Open the output file. */ if (!to_stdout) - { - fd = open (filename, O_WRONLY | O_CREAT, - /* 0666 in portable POSIX notation: */ - S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); - if (fd < 0) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("cannot create output file \"%s\""), - filename), - errno_description)); - } - } + { + fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC, + /* 0666 in portable POSIX notation: */ + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + if (fd < 0) + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("cannot create output file \"%s\""), + filename), + errno_description)); + } + } else - { - fd = STDOUT_FILENO; - filename = _("standard output"); - } + { + fd = STDOUT_FILENO; + filename = _("standard output"); + } style_file_prepare (); stream = term_styled_ostream_create (fd, filename, style_file_name); if (stream == NULL) - stream = fd_ostream_create (fd, filename, true); + stream = fd_ostream_create (fd, filename, true); output_syntax->print (mdlp, stream, page_width, debug); ostream_free (stream); /* Make sure nothing went wrong. */ if (close (fd) < 0) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while writing \"%s\" file"), - filename), - errno_description)); - } + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("error while writing \"%s\" file"), + filename), + errno_description)); + } } else #endif @@ -265,61 +265,61 @@ /* Open the output file. */ if (!to_stdout) - { - fp = fopen (filename, "w"); - if (fp == NULL) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("cannot create output file \"%s\""), - filename), - errno_description)); - } - } + { + fp = fopen (filename, "wb"); + if (fp == NULL) + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("cannot create output file \"%s\""), + filename), + errno_description)); + } + } else - { - fp = stdout; - filename = _("standard output"); - } + { + fp = stdout; + filename = _("standard output"); + } stream = file_ostream_create (fp); #if ENABLE_COLOR if (output_syntax->supports_color && color_mode == color_html) - { - html_styled_ostream_t html_stream; + { + html_styled_ostream_t html_stream; - /* Convert mdlp to UTF-8 encoding. */ - if (mdlp->encoding != po_charset_utf8) - { - mdlp = msgdomain_list_copy (mdlp, 0); - mdlp = iconv_msgdomain_list (mdlp, po_charset_utf8, false, NULL); - } - - style_file_prepare (); - html_stream = html_styled_ostream_create (stream, style_file_name); - output_syntax->print (mdlp, html_stream, page_width, debug); - ostream_free (html_stream); - } + /* Convert mdlp to UTF-8 encoding. */ + if (mdlp->encoding != po_charset_utf8) + { + mdlp = msgdomain_list_copy (mdlp, 0); + mdlp = iconv_msgdomain_list (mdlp, po_charset_utf8, false, NULL); + } + + style_file_prepare (); + html_stream = html_styled_ostream_create (stream, style_file_name); + output_syntax->print (mdlp, html_stream, page_width, debug); + ostream_free (html_stream); + } else #endif - { - output_syntax->print (mdlp, stream, page_width, debug); - } + { + output_syntax->print (mdlp, stream, page_width, debug); + } ostream_free (stream); /* Make sure nothing went wrong. */ if (fwriteerror (fp)) - { - const char *errno_description = strerror (errno); - po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, - xasprintf ("%s: %s", - xasprintf (_("error while writing \"%s\" file"), - filename), - errno_description)); - } + { + const char *errno_description = strerror (errno); + po_xerror (PO_SEVERITY_FATAL_ERROR, NULL, NULL, 0, 0, false, + xasprintf ("%s: %s", + xasprintf (_("error while writing \"%s\" file"), + filename), + errno_description)); + } } } @@ -332,10 +332,22 @@ { const message_ty *a = *(const message_ty **) va; const message_ty *b = *(const message_ty **) vb; - /* Because msgids normally contain only ASCII characters, it is OK to - sort them as if we were in the C locale. And strcoll() in the C locale - is the same as strcmp(). */ - return strcmp (a->msgid, b->msgid); + + /* Because msgids normally contain only ASCII characters or are UTF-8 + encoded, it is OK to sort them as if we were in a C.UTF-8 locale. And + strcoll() in a C.UTF-8 locale is the same as strcmp(). */ + int cmp = strcmp (a->msgid, b->msgid); + if (cmp != 0) + return cmp; + + /* If the msgids are equal, disambiguate by comparing the contexts. */ + if (a->msgctxt == b->msgctxt) + return 0; + if (a->msgctxt == NULL) + return -1; + if (b->msgctxt == NULL) + return 1; + return strcmp (a->msgctxt, b->msgctxt); } @@ -349,7 +361,7 @@ message_list_ty *mlp = mdlp->item[k]->messages; if (mlp->nitems > 0) - qsort (mlp->item, mlp->nitems, sizeof (mlp->item[0]), cmp_by_msgid); + qsort (mlp->item, mlp->nitems, sizeof (mlp->item[0]), cmp_by_msgid); } } @@ -380,13 +392,13 @@ message_list_ty *mlp = mdlp->item[k]->messages; for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; + { + message_ty *mp = mlp->item[j]; - if (mp->filepos_count > 0) - qsort (mp->filepos, mp->filepos_count, sizeof (mp->filepos[0]), - cmp_filepos); - } + if (mp->filepos_count > 0) + qsort (mp->filepos, mp->filepos_count, sizeof (mp->filepos[0]), + cmp_filepos); + } } } @@ -404,7 +416,7 @@ if (a->filepos_count == 0) { if (b->filepos_count != 0) - return -1; + return -1; } if (b->filepos_count == 0) return 1; @@ -420,10 +432,21 @@ return cmp; /* If they are equal, compare on the msgid strings. */ - /* Because msgids normally contain only ASCII characters, it is OK to - sort them as if we were in the C locale. And strcoll() in the C locale - is the same as strcmp(). */ - return strcmp (a->msgid, b->msgid); + /* Because msgids normally contain only ASCII characters or are UTF-8 + encoded, it is OK to sort them as if we were in a C.UTF-8 locale. And + strcoll() in a C.UTF-8 locale is the same as strcmp(). */ + cmp = strcmp (a->msgid, b->msgid); + if (cmp != 0) + return cmp; + + /* If the msgids are equal, disambiguate by comparing the contexts. */ + if (a->msgctxt == b->msgctxt) + return 0; + if (a->msgctxt == NULL) + return -1; + if (b->msgctxt == NULL) + return 1; + return strcmp (a->msgctxt, b->msgctxt); } @@ -441,6 +464,6 @@ message_list_ty *mlp = mdlp->item[k]->messages; if (mlp->nitems > 0) - qsort (mlp->item, mlp->nitems, sizeof (mlp->item[0]), cmp_by_filepos); + qsort (mlp->item, mlp->nitems, sizeof (mlp->item[0]), cmp_by_filepos); } } diff -Nru gettext-0.17/gettext-tools/src/write-catalog.h gettext-0.18.1.1/gettext-tools/src/write-catalog.h --- gettext-0.17/gettext-tools/src/write-catalog.h 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-catalog.h 2010-06-06 12:49:58.000000000 +0000 @@ -72,9 +72,9 @@ parameters set by the functions above. */ extern void msgdomain_list_print (msgdomain_list_ty *mdlp, - const char *filename, - catalog_output_format_ty output_syntax, - bool force, bool debug); + const char *filename, + catalog_output_format_ty output_syntax, + bool force, bool debug); /* Sort MDLP destructively according to the given criterion. */ extern void diff -Nru gettext-0.17/gettext-tools/src/write-csharp.c gettext-0.18.1.1/gettext-tools/src/write-csharp.c --- gettext-0.17/gettext-tools/src/write-csharp.c 2007-10-17 23:22:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-csharp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing C# satellite assemblies. - Copyright (C) 2003-2007 Free Software Foundation, Inc. + Copyright (C) 2003-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -82,7 +82,7 @@ #include "po-charset.h" #include "xalloc.h" #include "xmalloca.h" -#include "filename.h" +#include "concat-filename.h" #include "fwriteerror.h" #include "clean-temp.h" #include "unistr.h" @@ -116,8 +116,8 @@ { char c = *p; if (!((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == '_') - || (p > resource_name && c >= '0' && c <= '9'))) - valid = false; + || (p > resource_name && c >= '0' && c <= '9'))) + valid = false; } if (valid) return xstrdup (resource_name); @@ -132,35 +132,35 @@ b = class_name; memcpy (b, "__UESCAPED__", 12); b += 12; while (str < str_limit) - { - unsigned int uc; - str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); - if (uc >= 0x10000) - { - *b++ = '_'; - *b++ = 'U'; - *b++ = hexdigit[(uc >> 28) & 0x0f]; - *b++ = hexdigit[(uc >> 24) & 0x0f]; - *b++ = hexdigit[(uc >> 20) & 0x0f]; - *b++ = hexdigit[(uc >> 16) & 0x0f]; - *b++ = hexdigit[(uc >> 12) & 0x0f]; - *b++ = hexdigit[(uc >> 8) & 0x0f]; - *b++ = hexdigit[(uc >> 4) & 0x0f]; - *b++ = hexdigit[uc & 0x0f]; - } - else if (!((uc >= 'A' && uc <= 'Z') || (uc >= 'a' && uc <= 'z') - || (uc >= '0' && uc <= '9'))) - { - *b++ = '_'; - *b++ = 'u'; - *b++ = hexdigit[(uc >> 12) & 0x0f]; - *b++ = hexdigit[(uc >> 8) & 0x0f]; - *b++ = hexdigit[(uc >> 4) & 0x0f]; - *b++ = hexdigit[uc & 0x0f]; - } - else - *b++ = uc; - } + { + ucs4_t uc; + str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); + if (uc >= 0x10000) + { + *b++ = '_'; + *b++ = 'U'; + *b++ = hexdigit[(uc >> 28) & 0x0f]; + *b++ = hexdigit[(uc >> 24) & 0x0f]; + *b++ = hexdigit[(uc >> 20) & 0x0f]; + *b++ = hexdigit[(uc >> 16) & 0x0f]; + *b++ = hexdigit[(uc >> 12) & 0x0f]; + *b++ = hexdigit[(uc >> 8) & 0x0f]; + *b++ = hexdigit[(uc >> 4) & 0x0f]; + *b++ = hexdigit[uc & 0x0f]; + } + else if (!((uc >= 'A' && uc <= 'Z') || (uc >= 'a' && uc <= 'z') + || (uc >= '0' && uc <= '9'))) + { + *b++ = '_'; + *b++ = 'u'; + *b++ = hexdigit[(uc >> 12) & 0x0f]; + *b++ = hexdigit[(uc >> 8) & 0x0f]; + *b++ = hexdigit[(uc >> 4) & 0x0f]; + *b++ = hexdigit[uc & 0x0f]; + } + else + *b++ = uc; + } *b++ = '\0'; return (char *) xrealloc (class_name, b - class_name); } @@ -177,40 +177,40 @@ fprintf (stream, "\""); while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc == 0x0000) - fprintf (stream, "\\0"); + fprintf (stream, "\\0"); else if (uc == 0x0007) - fprintf (stream, "\\a"); + fprintf (stream, "\\a"); else if (uc == 0x0008) - fprintf (stream, "\\b"); + fprintf (stream, "\\b"); else if (uc == 0x0009) - fprintf (stream, "\\t"); + fprintf (stream, "\\t"); else if (uc == 0x000a) - fprintf (stream, "\\n"); + fprintf (stream, "\\n"); else if (uc == 0x000b) - fprintf (stream, "\\v"); + fprintf (stream, "\\v"); else if (uc == 0x000c) - fprintf (stream, "\\f"); + fprintf (stream, "\\f"); else if (uc == 0x000d) - fprintf (stream, "\\r"); + fprintf (stream, "\\r"); else if (uc == 0x0022) - fprintf (stream, "\\\""); + fprintf (stream, "\\\""); else if (uc == 0x005c) - fprintf (stream, "\\\\"); + fprintf (stream, "\\\\"); else if (uc >= 0x0020 && uc < 0x007f) - fprintf (stream, "%c", uc); + fprintf (stream, "%c", (int) uc); else if (uc < 0x10000) - fprintf (stream, "\\u%c%c%c%c", - hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], - hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); + fprintf (stream, "\\u%c%c%c%c", + hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], + hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); else - fprintf (stream, "\\U%c%c%c%c%c%c%c%c", - hexdigit[(uc >> 28) & 0x0f], hexdigit[(uc >> 24) & 0x0f], - hexdigit[(uc >> 20) & 0x0f], hexdigit[(uc >> 16) & 0x0f], - hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], - hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); + fprintf (stream, "\\U%c%c%c%c%c%c%c%c", + hexdigit[(uc >> 28) & 0x0f], hexdigit[(uc >> 24) & 0x0f], + hexdigit[(uc >> 20) & 0x0f], hexdigit[(uc >> 16) & 0x0f], + hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], + hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); } fprintf (stream, "\""); } @@ -258,19 +258,19 @@ fprintf (stream, "new System.String[] { "); for (p = mp->msgstr, first = true; - p < mp->msgstr + mp->msgstr_len; - p += strlen (p) + 1, first = false) - { - if (!first) - fprintf (stream, ", "); - write_csharp_string (stream, p); - } + p < mp->msgstr + mp->msgstr_len; + p += strlen (p) + 1, first = false) + { + if (!first) + fprintf (stream, ", "); + write_csharp_string (stream, p); + } fprintf (stream, " }"); } else { if (mp->msgstr_len != strlen (mp->msgstr) + 1) - abort (); + abort (); write_csharp_string (stream, mp->msgstr); } @@ -305,7 +305,7 @@ return (exp->val.num == 0 || exp->val.num == 1); case qmop: return is_expression_boolean (exp->val.args[1]) - && is_expression_boolean (exp->val.args[2]); + && is_expression_boolean (exp->val.args[2]); default: abort (); } @@ -323,170 +323,170 @@ { /* Emit a C# expression of type 'bool'. */ switch (exp->operation) - { - case num: - fprintf (stream, "%s", exp->val.num ? "true" : "false"); - return; - case lnot: - fprintf (stream, "(!"); - write_csharp_expression (stream, exp->val.args[0], true); - fprintf (stream, ")"); - return; - case less_than: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " < "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case greater_than: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " > "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case less_or_equal: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " <= "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case greater_or_equal: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " >= "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case equal: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " == "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case not_equal: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " != "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case land: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], true); - fprintf (stream, " && "); - write_csharp_expression (stream, exp->val.args[1], true); - fprintf (stream, ")"); - return; - case lor: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], true); - fprintf (stream, " || "); - write_csharp_expression (stream, exp->val.args[1], true); - fprintf (stream, ")"); - return; - case qmop: - if (is_expression_boolean (exp->val.args[1]) - && is_expression_boolean (exp->val.args[2])) - { - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], true); - fprintf (stream, " ? "); - write_csharp_expression (stream, exp->val.args[1], true); - fprintf (stream, " : "); - write_csharp_expression (stream, exp->val.args[2], true); - fprintf (stream, ")"); - return; - } - /*FALLTHROUGH*/ - case var: - case mult: - case divide: - case module: - case plus: - case minus: - fprintf (stream, "("); - write_csharp_expression (stream, exp, false); - fprintf (stream, " != 0)"); - return; - default: - abort (); - } + { + case num: + fprintf (stream, "%s", exp->val.num ? "true" : "false"); + return; + case lnot: + fprintf (stream, "(!"); + write_csharp_expression (stream, exp->val.args[0], true); + fprintf (stream, ")"); + return; + case less_than: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " < "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case greater_than: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " > "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case less_or_equal: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " <= "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case greater_or_equal: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " >= "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case equal: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " == "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case not_equal: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " != "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case land: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], true); + fprintf (stream, " && "); + write_csharp_expression (stream, exp->val.args[1], true); + fprintf (stream, ")"); + return; + case lor: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], true); + fprintf (stream, " || "); + write_csharp_expression (stream, exp->val.args[1], true); + fprintf (stream, ")"); + return; + case qmop: + if (is_expression_boolean (exp->val.args[1]) + && is_expression_boolean (exp->val.args[2])) + { + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], true); + fprintf (stream, " ? "); + write_csharp_expression (stream, exp->val.args[1], true); + fprintf (stream, " : "); + write_csharp_expression (stream, exp->val.args[2], true); + fprintf (stream, ")"); + return; + } + /*FALLTHROUGH*/ + case var: + case mult: + case divide: + case module: + case plus: + case minus: + fprintf (stream, "("); + write_csharp_expression (stream, exp, false); + fprintf (stream, " != 0)"); + return; + default: + abort (); + } } else { /* Emit a C# expression of type 'long'. */ switch (exp->operation) - { - case var: - fprintf (stream, "n"); - return; - case num: - fprintf (stream, "%lu", exp->val.num); - return; - case mult: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " * "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case divide: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " / "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case module: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " %% "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case plus: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " + "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case minus: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], false); - fprintf (stream, " - "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case qmop: - fprintf (stream, "("); - write_csharp_expression (stream, exp->val.args[0], true); - fprintf (stream, " ? "); - write_csharp_expression (stream, exp->val.args[1], false); - fprintf (stream, " : "); - write_csharp_expression (stream, exp->val.args[2], false); - fprintf (stream, ")"); - return; - case lnot: - case less_than: - case greater_than: - case less_or_equal: - case greater_or_equal: - case equal: - case not_equal: - case land: - case lor: - fprintf (stream, "("); - write_csharp_expression (stream, exp, true); - fprintf (stream, " ? 1 : 0)"); - return; - default: - abort (); - } + { + case var: + fprintf (stream, "n"); + return; + case num: + fprintf (stream, "%lu", exp->val.num); + return; + case mult: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " * "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case divide: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " / "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case module: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " %% "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case plus: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " + "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case minus: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], false); + fprintf (stream, " - "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case qmop: + fprintf (stream, "("); + write_csharp_expression (stream, exp->val.args[0], true); + fprintf (stream, " ? "); + write_csharp_expression (stream, exp->val.args[1], false); + fprintf (stream, " : "); + write_csharp_expression (stream, exp->val.args[2], false); + fprintf (stream, ")"); + return; + case lnot: + case less_than: + case greater_than: + case less_or_equal: + case greater_or_equal: + case equal: + case not_equal: + case land: + case lor: + fprintf (stream, "("); + write_csharp_expression (stream, exp, true); + fprintf (stream, " ? 1 : 0)"); + return; + default: + abort (); + } } } @@ -504,7 +504,7 @@ size_t j; fprintf (stream, - "/* Automatically generated by GNU msgfmt. Do not modify! */\n"); + "/* Automatically generated by GNU msgfmt. Do not modify! */\n"); /* We have to use a "using" statement here, to avoid a bug in the pnet-0.6.0 compiler. */ @@ -528,7 +528,7 @@ else class_name_last_part = class_name; fprintf (stream, "public class %s : GettextResourceSet {\n", - class_name_last_part); + class_name_last_part); /* Determine whether there are plural messages. */ plurals = 0; @@ -541,22 +541,37 @@ fprintf (stream, " : base () {\n"); fprintf (stream, " }\n"); + /* Emit the TableInitialized field. */ + fprintf (stream, " private bool TableInitialized;\n"); + /* Emit the ReadResources method. */ fprintf (stream, " protected override void ReadResources () {\n"); + /* In some implementations, such as mono < 2009-02-27, the ReadResources + method is called just once, when Table == null. In other implementations, + such as mono >= 2009-02-27, it is called at every GetObject call, and it + is responsible for doing the initialization only once, even when called + simultaneously from multiple threads. */ + fprintf (stream, " if (!TableInitialized) {\n"); + fprintf (stream, " lock (this) {\n"); + fprintf (stream, " if (!TableInitialized) {\n"); /* In some implementations, the ResourceSet constructor initializes Table before calling ReadResources(). In other implementations, the ReadResources() method is expected to initialize the Table. */ - fprintf (stream, " if (Table == null)\n"); - fprintf (stream, " Table = new System.Collections.Hashtable();\n"); - fprintf (stream, " System.Collections.Hashtable t = Table;\n"); + fprintf (stream, " if (Table == null)\n"); + fprintf (stream, " Table = new System.Collections.Hashtable();\n"); + fprintf (stream, " System.Collections.Hashtable t = Table;\n"); for (j = 0; j < mlp->nitems; j++) { - fprintf (stream, " t.Add("); + fprintf (stream, " t.Add("); write_csharp_msgid (stream, mlp->item[j]); fprintf (stream, ","); write_csharp_msgstr (stream, mlp->item[j]); fprintf (stream, ");\n"); } + fprintf (stream, " TableInitialized = true;\n"); + fprintf (stream, " }\n"); + fprintf (stream, " }\n"); + fprintf (stream, " }\n"); fprintf (stream, " }\n"); /* Emit the msgid_plural strings. Only used by msgunfmt. */ @@ -565,14 +580,14 @@ fprintf (stream, " public static System.Collections.Hashtable GetMsgidPluralTable () {\n"); fprintf (stream, " System.Collections.Hashtable t = new System.Collections.Hashtable();\n"); for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgid_plural != NULL) - { - fprintf (stream, " t.Add("); - write_csharp_msgid (stream, mlp->item[j]); - fprintf (stream, ","); - write_csharp_string (stream, mlp->item[j]->msgid_plural); - fprintf (stream, ");\n"); - } + if (mlp->item[j]->msgid_plural != NULL) + { + fprintf (stream, " t.Add("); + write_csharp_msgid (stream, mlp->item[j]); + fprintf (stream, ","); + write_csharp_string (stream, mlp->item[j]->msgid_plural); + fprintf (stream, ");\n"); + } fprintf (stream, " return t;\n"); fprintf (stream, " }\n"); } @@ -586,7 +601,7 @@ header_entry = message_list_search (mlp, NULL, ""); extract_plural_expression (header_entry ? header_entry->msgstr : NULL, - &plural, &nplurals); + &plural, &nplurals); fprintf (stream, " protected override long PluralEval (long n) {\n"); fprintf (stream, " return "); @@ -606,8 +621,8 @@ int msgdomain_write_csharp (message_list_ty *mlp, const char *canon_encoding, - const char *resource_name, const char *locale_name, - const char *directory) + const char *resource_name, const char *locale_name, + const char *directory) { int retval; struct temp_dir *tmpdir; @@ -650,48 +665,48 @@ char *p; for (p = culture_name; *p != '\0'; p++) if (*p == '_') - *p = '-'; + *p = '-'; if (strncmp (culture_name, "sr-CS", 5) == 0) memcpy (culture_name, "sr-SP", 5); p = strchr (culture_name, '@'); if (p != NULL) { - if (strcmp (p, "@latin") == 0) - strcpy (p, "-Latn"); - else if (strcmp (p, "@cyrillic") == 0) - strcpy (p, "-Cyrl"); + if (strcmp (p, "@latin") == 0) + strcpy (p, "-Latn"); + else if (strcmp (p, "@cyrillic") == 0) + strcpy (p, "-Cyrl"); } if (strcmp (culture_name, "sr-SP") == 0) { - free (culture_name); - culture_name = xstrdup ("sr-SP-Latn"); + free (culture_name); + culture_name = xstrdup ("sr-SP-Latn"); } else if (strcmp (culture_name, "uz-UZ") == 0) { - free (culture_name); - culture_name = xstrdup ("uz-UZ-Latn"); + free (culture_name); + culture_name = xstrdup ("uz-UZ-Latn"); } } /* Compute the output file name. This code must be kept consistent with intl.cs, function GetSatelliteAssembly(). */ { - char *output_dir = concatenated_filename (directory, culture_name, NULL); + char *output_dir = xconcatenated_filename (directory, culture_name, NULL); struct stat statbuf; /* Try to create the output directory if it does not yet exist. */ if (stat (output_dir, &statbuf) < 0 && errno == ENOENT) if (mkdir (output_dir, S_IRUSR | S_IWUSR | S_IXUSR - | S_IRGRP | S_IWGRP | S_IXGRP - | S_IROTH | S_IWOTH | S_IXOTH) < 0) - { - error (0, errno, _("failed to create directory \"%s\""), output_dir); - free (output_dir); - goto quit2; - } + | S_IRGRP | S_IWGRP | S_IXGRP + | S_IROTH | S_IWOTH | S_IXOTH) < 0) + { + error (0, errno, _("failed to create directory \"%s\""), output_dir); + free (output_dir); + goto quit2; + } output_file = - concatenated_filename (output_dir, resource_name, ".resources.dll"); + xconcatenated_filename (output_dir, resource_name, ".resources.dll"); free (output_dir); } @@ -707,14 +722,14 @@ sprintf (class_name, "%s_%s", class_name_part1, culture_name); for (p = class_name + strlen (class_name_part1) + 1; *p != '\0'; p++) if (*p == '-') - *p = '_'; + *p = '_'; free (class_name_part1); } /* Compute the temporary C# file name. It must end in ".cs", so that the C# compiler recognizes that it is C# source code. */ csharp_file_name = - concatenated_filename (tmpdir->dir_name, "resset.cs", NULL); + xconcatenated_filename (tmpdir->dir_name, "resset.cs", NULL); /* Create the C# file. */ register_temp_file (tmpdir, csharp_file_name); @@ -745,12 +760,12 @@ libdirs[0] = gettextlibdir; libraries[0] = "GNU.Gettext"; if (compile_csharp_class (csharp_sources, 1, libdirs, 1, libraries, 1, - output_file, true, false, verbose)) + output_file, true, false, verbose > 0)) { if (!verbose) - error (0, 0, _("compilation of C# class failed, please try --verbose")); + error (0, 0, _("compilation of C# class failed, please try --verbose")); else - error (0, 0, _("compilation of C# class failed")); + error (0, 0, _("compilation of C# class failed")); goto quit3; } diff -Nru gettext-0.17/gettext-tools/src/write-csharp.h gettext-0.18.1.1/gettext-tools/src/write-csharp.h --- gettext-0.17/gettext-tools/src/write-csharp.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-csharp.h 2010-06-06 12:49:58.000000000 +0000 @@ -27,9 +27,9 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_csharp (message_list_ty *mlp, - const char *canon_encoding, - const char *resource_name, - const char *locale_name, - const char *directory); + const char *canon_encoding, + const char *resource_name, + const char *locale_name, + const char *directory); #endif /* _WRITE_CSHARP_H */ diff -Nru gettext-0.17/gettext-tools/src/write-java.c gettext-0.18.1.1/gettext-tools/src/write-java.c --- gettext-0.17/gettext-tools/src/write-java.c 2007-10-17 23:21:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-java.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing Java ResourceBundles. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -65,7 +65,8 @@ #include "po-charset.h" #include "xalloc.h" #include "xmalloca.h" -#include "filename.h" +#include "minmax.h" +#include "concat-filename.h" #include "fwriteerror.h" #include "clean-temp.h" #include "unistr.h" @@ -87,15 +88,15 @@ { /* First character, see Character.isJavaIdentifierStart. */ if (!(c_isalpha (*p) || (*p == '$') || (*p == '_'))) - return -1; + return -1; /* Following characters, see Character.isJavaIdentifierPart. */ do - p++; + p++; while (c_isalpha (*p) || (*p == '$') || (*p == '_') || c_isdigit (*p)); if (*p == '\0') - break; + break; if (*p != '.') - return -1; + return -1; p++; ndots++; } @@ -117,19 +118,19 @@ int hash = 0; while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) - /* Single UCS-2 'char'. */ - hash = 31 * hash + uc; + /* Single UCS-2 'char'. */ + hash = 31 * hash + uc; else - { - /* UTF-16 surrogate: two 'char's. */ - unsigned int uc1 = 0xd800 + ((uc - 0x10000) >> 10); - unsigned int uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); - hash = 31 * hash + uc1; - hash = 31 * hash + uc2; - } + { + /* UTF-16 surrogate: two 'char's. */ + ucs4_t uc1 = 0xd800 + ((uc - 0x10000) >> 10); + ucs4_t uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); + hash = 31 * hash + uc1; + hash = 31 * hash + uc2; + } } return hash & 0x7fffffff; } @@ -195,97 +196,97 @@ unsigned int score; /* Premature end of the loop if all future scores are known to be - larger than the already reached best_score. This relies on the - ascending loop and on the fact that score >= hashsize. */ + larger than the already reached best_score. This relies on the + ascending loop and on the fact that score >= hashsize. */ if (hashsize >= best_score) - break; + break; bitmap = XNMALLOC (hashsize, char); memset (bitmap, 0, hashsize); score = 0; for (j = 0; j < n; j++) - { - unsigned int idx = hashcodes[j] % hashsize; + { + unsigned int idx = hashcodes[j] % hashsize; - if (bitmap[idx] != 0) - { - /* Collision. Cannot deal with it if hashsize is even. */ - if ((hashsize % 2) == 0) - /* Try next hashsize. */ - goto bad_hashsize; - else - { - unsigned int idx0 = idx; - unsigned int incr = 1 + (hashcodes[j] % (hashsize - 2)); - score += 2; /* Big penalty for the additional division */ - do - { - score++; /* Small penalty for each loop round */ - idx += incr; - if (idx >= hashsize) - idx -= hashsize; - if (idx == idx0) - /* Searching for a hole, we performed a whole round - across the table. This happens particularly - frequently if gcd(hashsize,incr) > 1. Try next - hashsize. */ - goto bad_hashsize; - } - while (bitmap[idx] != 0); - } - } - bitmap[idx] = 1; - } + if (bitmap[idx] != 0) + { + /* Collision. Cannot deal with it if hashsize is even. */ + if ((hashsize % 2) == 0) + /* Try next hashsize. */ + goto bad_hashsize; + else + { + unsigned int idx0 = idx; + unsigned int incr = 1 + (hashcodes[j] % (hashsize - 2)); + score += 2; /* Big penalty for the additional division */ + do + { + score++; /* Small penalty for each loop round */ + idx += incr; + if (idx >= hashsize) + idx -= hashsize; + if (idx == idx0) + /* Searching for a hole, we performed a whole round + across the table. This happens particularly + frequently if gcd(hashsize,incr) > 1. Try next + hashsize. */ + goto bad_hashsize; + } + while (bitmap[idx] != 0); + } + } + bitmap[idx] = 1; + } /* Big hashsize also gives a penalty. */ score = XXS * score + hashsize; /* If for any incr between 1 and hashsize - 2, an whole round - (idx0, idx0 + incr, ...) is occupied, and the lookup function - must deal with collisions, then some inputs would lead to - an endless loop in the lookup function. */ + (idx0, idx0 + incr, ...) is occupied, and the lookup function + must deal with collisions, then some inputs would lead to + an endless loop in the lookup function. */ if (score > hashsize) - { - unsigned int incr; + { + unsigned int incr; - /* Since the set { idx0, idx0 + incr, ... } depends only on idx0 - and gcd(hashsize,incr), we only need to conside incr that - divides hashsize. */ - for (incr = 1; incr <= hashsize / 2; incr++) - if ((hashsize % incr) == 0) - { - unsigned int idx0; - - for (idx0 = 0; idx0 < incr; idx0++) - { - bool full = true; - unsigned int idx; - - for (idx = idx0; idx < hashsize; idx += incr) - if (bitmap[idx] == 0) - { - full = false; - break; - } - if (full) - /* A whole round is occupied. */ - goto bad_hashsize; - } - } - } + /* Since the set { idx0, idx0 + incr, ... } depends only on idx0 + and gcd(hashsize,incr), we only need to conside incr that + divides hashsize. */ + for (incr = 1; incr <= hashsize / 2; incr++) + if ((hashsize % incr) == 0) + { + unsigned int idx0; + + for (idx0 = 0; idx0 < incr; idx0++) + { + bool full = true; + unsigned int idx; + + for (idx = idx0; idx < hashsize; idx += incr) + if (bitmap[idx] == 0) + { + full = false; + break; + } + if (full) + /* A whole round is occupied. */ + goto bad_hashsize; + } + } + } if (false) - bad_hashsize: - score = UINT_MAX; + bad_hashsize: + score = UINT_MAX; free (bitmap); if (score < best_score) - { - best_score = score; - best_hashsize = hashsize; - } + { + best_score = score; + best_hashsize = hashsize; + } } if (best_hashsize == 0 || best_score < best_hashsize) abort (); @@ -304,7 +305,7 @@ compare_index (const void *pval1, const void *pval2) { return (int)((const struct table_item *) pval1)->index - - (int)((const struct table_item *) pval2)->index; + - (int)((const struct table_item *) pval2)->index; } /* Compute the list of messages and table indices, sorted according to the @@ -323,20 +324,20 @@ for (j = 0; j < n; j++) { unsigned int hashcode = - msgid_hashcode (mlp->item[j]->msgctxt, mlp->item[j]->msgid); + msgid_hashcode (mlp->item[j]->msgctxt, mlp->item[j]->msgid); unsigned int idx = hashcode % hashsize; if (bitmap[idx] != 0) - { - unsigned int incr = 1 + (hashcode % (hashsize - 2)); - do - { - idx += incr; - if (idx >= hashsize) - idx -= hashsize; - } - while (bitmap[idx] != 0); - } + { + unsigned int incr = 1 + (hashcode % (hashsize - 2)); + do + { + idx += incr; + if (idx >= hashsize) + idx -= hashsize; + } + while (bitmap[idx] != 0); + } bitmap[idx] = 1; arr[j].index = idx; @@ -361,38 +362,38 @@ fprintf (stream, "\""); while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) - { - /* Single UCS-2 'char'. */ - if (uc == 0x000a) - fprintf (stream, "\\n"); - else if (uc == 0x000d) - fprintf (stream, "\\r"); - else if (uc == 0x0022) - fprintf (stream, "\\\""); - else if (uc == 0x005c) - fprintf (stream, "\\\\"); - else if (uc >= 0x0020 && uc < 0x007f) - fprintf (stream, "%c", uc); - else - fprintf (stream, "\\u%c%c%c%c", - hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], - hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); - } + { + /* Single UCS-2 'char'. */ + if (uc == 0x000a) + fprintf (stream, "\\n"); + else if (uc == 0x000d) + fprintf (stream, "\\r"); + else if (uc == 0x0022) + fprintf (stream, "\\\""); + else if (uc == 0x005c) + fprintf (stream, "\\\\"); + else if (uc >= 0x0020 && uc < 0x007f) + fprintf (stream, "%c", (int) uc); + else + fprintf (stream, "\\u%c%c%c%c", + hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], + hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); + } else - { - /* UTF-16 surrogate: two 'char's. */ - unsigned int uc1 = 0xd800 + ((uc - 0x10000) >> 10); - unsigned int uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); - fprintf (stream, "\\u%c%c%c%c", - hexdigit[(uc1 >> 12) & 0x0f], hexdigit[(uc1 >> 8) & 0x0f], - hexdigit[(uc1 >> 4) & 0x0f], hexdigit[uc1 & 0x0f]); - fprintf (stream, "\\u%c%c%c%c", - hexdigit[(uc2 >> 12) & 0x0f], hexdigit[(uc2 >> 8) & 0x0f], - hexdigit[(uc2 >> 4) & 0x0f], hexdigit[uc2 & 0x0f]); - } + { + /* UTF-16 surrogate: two 'char's. */ + ucs4_t uc1 = 0xd800 + ((uc - 0x10000) >> 10); + ucs4_t uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); + fprintf (stream, "\\u%c%c%c%c", + hexdigit[(uc1 >> 12) & 0x0f], hexdigit[(uc1 >> 8) & 0x0f], + hexdigit[(uc1 >> 4) & 0x0f], hexdigit[uc1 & 0x0f]); + fprintf (stream, "\\u%c%c%c%c", + hexdigit[(uc2 >> 12) & 0x0f], hexdigit[(uc2 >> 8) & 0x0f], + hexdigit[(uc2 >> 4) & 0x0f], hexdigit[uc2 & 0x0f]); + } } fprintf (stream, "\""); } @@ -440,19 +441,19 @@ fprintf (stream, "new java.lang.String[] { "); for (p = mp->msgstr, first = true; - p < mp->msgstr + mp->msgstr_len; - p += strlen (p) + 1, first = false) - { - if (!first) - fprintf (stream, ", "); - write_java_string (stream, p); - } + p < mp->msgstr + mp->msgstr_len; + p += strlen (p) + 1, first = false) + { + if (!first) + fprintf (stream, ", "); + write_java_string (stream, p); + } fprintf (stream, " }"); } else { if (mp->msgstr_len != strlen (mp->msgstr) + 1) - abort (); + abort (); write_java_string (stream, mp->msgstr); } @@ -476,7 +477,7 @@ fprintf (stream, " return table[idx + 1];\n"); fprintf (stream, " }\n"); fprintf (stream, " int incr = ((hash_val %% %d) + 1) << 1;\n", - hashsize - 2); + hashsize - 2); fprintf (stream, " for (;;) {\n"); fprintf (stream, " idx += incr;\n"); fprintf (stream, " if (idx >= %d)\n", 2 * hashsize); @@ -526,7 +527,7 @@ return (exp->val.num == 0 || exp->val.num == 1); case qmop: return is_expression_boolean (exp->val.args[1]) - && is_expression_boolean (exp->val.args[2]); + && is_expression_boolean (exp->val.args[2]); default: abort (); } @@ -544,170 +545,212 @@ { /* Emit a Java expression of type 'boolean'. */ switch (exp->operation) - { - case num: - fprintf (stream, "%s", exp->val.num ? "true" : "false"); - return; - case lnot: - fprintf (stream, "(!"); - write_java_expression (stream, exp->val.args[0], true); - fprintf (stream, ")"); - return; - case less_than: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " < "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case greater_than: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " > "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case less_or_equal: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " <= "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case greater_or_equal: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " >= "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case equal: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " == "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case not_equal: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " != "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case land: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], true); - fprintf (stream, " && "); - write_java_expression (stream, exp->val.args[1], true); - fprintf (stream, ")"); - return; - case lor: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], true); - fprintf (stream, " || "); - write_java_expression (stream, exp->val.args[1], true); - fprintf (stream, ")"); - return; - case qmop: - if (is_expression_boolean (exp->val.args[1]) - && is_expression_boolean (exp->val.args[2])) - { - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], true); - fprintf (stream, " ? "); - write_java_expression (stream, exp->val.args[1], true); - fprintf (stream, " : "); - write_java_expression (stream, exp->val.args[2], true); - fprintf (stream, ")"); - return; - } - /*FALLTHROUGH*/ - case var: - case mult: - case divide: - case module: - case plus: - case minus: - fprintf (stream, "("); - write_java_expression (stream, exp, false); - fprintf (stream, " != 0)"); - return; - default: - abort (); - } + { + case num: + fprintf (stream, "%s", exp->val.num ? "true" : "false"); + return; + case lnot: + fprintf (stream, "(!"); + write_java_expression (stream, exp->val.args[0], true); + fprintf (stream, ")"); + return; + case less_than: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " < "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case greater_than: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " > "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case less_or_equal: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " <= "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case greater_or_equal: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " >= "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case equal: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " == "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case not_equal: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " != "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case land: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], true); + fprintf (stream, " && "); + write_java_expression (stream, exp->val.args[1], true); + fprintf (stream, ")"); + return; + case lor: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], true); + fprintf (stream, " || "); + write_java_expression (stream, exp->val.args[1], true); + fprintf (stream, ")"); + return; + case qmop: + if (is_expression_boolean (exp->val.args[1]) + && is_expression_boolean (exp->val.args[2])) + { + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], true); + fprintf (stream, " ? "); + write_java_expression (stream, exp->val.args[1], true); + fprintf (stream, " : "); + write_java_expression (stream, exp->val.args[2], true); + fprintf (stream, ")"); + return; + } + /*FALLTHROUGH*/ + case var: + case mult: + case divide: + case module: + case plus: + case minus: + fprintf (stream, "("); + write_java_expression (stream, exp, false); + fprintf (stream, " != 0)"); + return; + default: + abort (); + } } else { /* Emit a Java expression of type 'long'. */ switch (exp->operation) - { - case var: - fprintf (stream, "n"); - return; - case num: - fprintf (stream, "%lu", exp->val.num); - return; - case mult: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " * "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case divide: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " / "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case module: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " %% "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case plus: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " + "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case minus: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], false); - fprintf (stream, " - "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, ")"); - return; - case qmop: - fprintf (stream, "("); - write_java_expression (stream, exp->val.args[0], true); - fprintf (stream, " ? "); - write_java_expression (stream, exp->val.args[1], false); - fprintf (stream, " : "); - write_java_expression (stream, exp->val.args[2], false); - fprintf (stream, ")"); - return; - case lnot: - case less_than: - case greater_than: - case less_or_equal: - case greater_or_equal: - case equal: - case not_equal: - case land: - case lor: - fprintf (stream, "("); - write_java_expression (stream, exp, true); - fprintf (stream, " ? 1 : 0)"); - return; - default: - abort (); - } + { + case var: + fprintf (stream, "n"); + return; + case num: + fprintf (stream, "%lu", exp->val.num); + return; + case mult: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " * "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case divide: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " / "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case module: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " %% "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case plus: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " + "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case minus: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], false); + fprintf (stream, " - "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, ")"); + return; + case qmop: + fprintf (stream, "("); + write_java_expression (stream, exp->val.args[0], true); + fprintf (stream, " ? "); + write_java_expression (stream, exp->val.args[1], false); + fprintf (stream, " : "); + write_java_expression (stream, exp->val.args[2], false); + fprintf (stream, ")"); + return; + case lnot: + case less_than: + case greater_than: + case less_or_equal: + case greater_or_equal: + case equal: + case not_equal: + case land: + case lor: + fprintf (stream, "("); + write_java_expression (stream, exp, true); + fprintf (stream, " ? 1 : 0)"); + return; + default: + abort (); + } + } +} + + +/* Write the Java initialization statements for the Java 1.1.x case, + for items j, start_index <= j < end_index. */ +static void +write_java1_init_statements (FILE *stream, message_list_ty *mlp, + size_t start_index, size_t end_index) +{ + size_t j; + + for (j = start_index; j < end_index; j++) + { + fprintf (stream, " t.put("); + write_java_msgid (stream, mlp->item[j]); + fprintf (stream, ","); + write_java_msgstr (stream, mlp->item[j]); + fprintf (stream, ");\n"); + } +} + + +/* Write the Java initialization statements for the Java 2 case, + for items j, start_index <= j < end_index. */ +static void +write_java2_init_statements (FILE *stream, message_list_ty *mlp, + const struct table_item *table_items, + size_t start_index, size_t end_index) +{ + size_t j; + + for (j = start_index; j < end_index; j++) + { + const struct table_item *ti = &table_items[j]; + + fprintf (stream, " t[%d] = ", 2 * ti->index); + write_java_msgid (stream, ti->mp); + fprintf (stream, ";\n"); + fprintf (stream, " t[%d] = ", 2 * ti->index + 1); + write_java_msgstr (stream, ti->mp); + fprintf (stream, ";\n"); } } @@ -718,14 +761,14 @@ or X.Y.String. */ static void write_java_code (FILE *stream, const char *class_name, message_list_ty *mlp, - bool assume_java2) + bool assume_java2) { const char *last_dot; unsigned int plurals; size_t j; fprintf (stream, - "/* Automatically generated by GNU msgfmt. Do not modify! */\n"); + "/* Automatically generated by GNU msgfmt. Do not modify! */\n"); last_dot = strrchr (class_name, '.'); if (last_dot != NULL) { @@ -754,90 +797,120 @@ hashsize = compute_hashsize (mlp, &collisions); /* Determines which indices in the table contain a message. The others - are null. */ + are null. */ table_items = compute_table_items (mlp, hashsize); /* Emit the table of pairs (msgid, msgstr). If there are plurals, - it is of type Object[], otherwise of type String[]. We use a static - code block because that makes less code: The Java compilers also - generate code for the 'null' entries, which is dumb. */ + it is of type Object[], otherwise of type String[]. We use a static + code block because that makes less code: The Java compilers also + generate code for the 'null' entries, which is dumb. */ table_eltype = (plurals ? "java.lang.Object" : "java.lang.String"); fprintf (stream, " private static final %s[] table;\n", table_eltype); - fprintf (stream, " static {\n"); - fprintf (stream, " %s[] t = new %s[%d];\n", table_eltype, table_eltype, - 2 * hashsize); - for (j = 0; j < mlp->nitems; j++) - { - struct table_item *ti = &table_items[j]; - - fprintf (stream, " t[%d] = ", 2 * ti->index); - write_java_msgid (stream, ti->mp); - fprintf (stream, ";\n"); - fprintf (stream, " t[%d] = ", 2 * ti->index + 1); - write_java_msgstr (stream, ti->mp); - fprintf (stream, ";\n"); - } - fprintf (stream, " table = t;\n"); - fprintf (stream, " }\n"); + { + /* With the Sun javac compiler, each assignment takes 5 to 8 bytes + of bytecode, therefore for each message, up to 16 bytes are needed. + Since the bytecode of every method, including the method + that contains the static initializers, is limited to 64 KB, only ca, + 65536 / 16 = 4096 messages can be initialized in a single method. + Account for other Java compilers and for plurals by limiting it to + 1000. */ + const size_t max_items_per_method = 1000; + + if (mlp->nitems > max_items_per_method) + { + unsigned int k; + size_t start_j; + size_t end_j; + + for (k = 0, start_j = 0, end_j = start_j + max_items_per_method; + start_j < mlp->nitems; + k++, start_j = end_j, end_j = start_j + max_items_per_method) + { + fprintf (stream, " static void clinit_part_%u (%s[] t) {\n", + k, table_eltype); + write_java2_init_statements (stream, mlp, table_items, + start_j, MIN (end_j, mlp->nitems)); + fprintf (stream, " }\n"); + } + } + fprintf (stream, " static {\n"); + fprintf (stream, " %s[] t = new %s[%d];\n", table_eltype, + table_eltype, 2 * hashsize); + if (mlp->nitems > max_items_per_method) + { + unsigned int k; + size_t start_j; + + for (k = 0, start_j = 0; + start_j < mlp->nitems; + k++, start_j += max_items_per_method) + fprintf (stream, " clinit_part_%u(t);\n", k); + } + else + write_java2_init_statements (stream, mlp, table_items, + 0, mlp->nitems); + fprintf (stream, " table = t;\n"); + fprintf (stream, " }\n"); + } /* Emit the msgid_plural strings. Only used by msgunfmt. */ if (plurals) - { - bool first; - fprintf (stream, " public static final java.lang.String[] get_msgid_plural_table () {\n"); - fprintf (stream, " return new java.lang.String[] { "); - first = true; - for (j = 0; j < mlp->nitems; j++) - { - struct table_item *ti = &table_items[j]; - if (ti->mp->msgid_plural != NULL) - { - if (!first) - fprintf (stream, ", "); - write_java_string (stream, ti->mp->msgid_plural); - first = false; - } - } - fprintf (stream, " };\n"); - fprintf (stream, " }\n"); - } + { + bool first; + fprintf (stream, " public static final java.lang.String[] get_msgid_plural_table () {\n"); + fprintf (stream, " return new java.lang.String[] { "); + first = true; + for (j = 0; j < mlp->nitems; j++) + { + struct table_item *ti = &table_items[j]; + if (ti->mp->msgid_plural != NULL) + { + if (!first) + fprintf (stream, ", "); + write_java_string (stream, ti->mp->msgid_plural); + first = false; + } + } + fprintf (stream, " };\n"); + fprintf (stream, " }\n"); + } if (plurals) - { - /* Emit the lookup function. It is a common subroutine for - handleGetObject and ngettext. */ - fprintf (stream, " public java.lang.Object lookup (java.lang.String msgid) {\n"); - write_lookup_code (stream, hashsize, collisions); - fprintf (stream, " }\n"); - } + { + /* Emit the lookup function. It is a common subroutine for + handleGetObject and ngettext. */ + fprintf (stream, " public java.lang.Object lookup (java.lang.String msgid) {\n"); + write_lookup_code (stream, hashsize, collisions); + fprintf (stream, " }\n"); + } /* Emit the handleGetObject function. It is declared abstract in - ResourceBundle. It implements a local version of gettext. */ + ResourceBundle. It implements a local version of gettext. */ fprintf (stream, " public java.lang.Object handleGetObject (java.lang.String msgid) throws java.util.MissingResourceException {\n"); if (plurals) - { - fprintf (stream, " java.lang.Object value = lookup(msgid);\n"); - fprintf (stream, " return (value instanceof java.lang.String[] ? ((java.lang.String[])value)[0] : value);\n"); - } + { + fprintf (stream, " java.lang.Object value = lookup(msgid);\n"); + fprintf (stream, " return (value instanceof java.lang.String[] ? ((java.lang.String[])value)[0] : value);\n"); + } else - write_lookup_code (stream, hashsize, collisions); + write_lookup_code (stream, hashsize, collisions); fprintf (stream, " }\n"); /* Emit the getKeys function. It is declared abstract in ResourceBundle. - The inner class is not avoidable. */ + The inner class is not avoidable. */ fprintf (stream, " public java.util.Enumeration getKeys () {\n"); fprintf (stream, " return\n"); fprintf (stream, " new java.util.Enumeration() {\n"); fprintf (stream, " private int idx = 0;\n"); fprintf (stream, " { while (idx < %d && table[idx] == null) idx += 2; }\n", - 2 * hashsize); + 2 * hashsize); fprintf (stream, " public boolean hasMoreElements () {\n"); fprintf (stream, " return (idx < %d);\n", 2 * hashsize); fprintf (stream, " }\n"); fprintf (stream, " public java.lang.Object nextElement () {\n"); fprintf (stream, " java.lang.Object key = table[idx];\n"); fprintf (stream, " do idx += 2; while (idx < %d && table[idx] == null);\n", - 2 * hashsize); + 2 * hashsize); fprintf (stream, " return key;\n"); fprintf (stream, " }\n"); fprintf (stream, " };\n"); @@ -846,63 +919,95 @@ else { /* Java 1.1.x uses a different hash function. If compatibility with - this Java version is required, the hash table must be built at run time, - not at compile time. */ + this Java version is required, the hash table must be built at run time, + not at compile time. */ fprintf (stream, " private static final java.util.Hashtable table;\n"); - fprintf (stream, " static {\n"); - fprintf (stream, " java.util.Hashtable t = new java.util.Hashtable();\n"); - for (j = 0; j < mlp->nitems; j++) - { - fprintf (stream, " t.put("); - write_java_msgid (stream, mlp->item[j]); - fprintf (stream, ","); - write_java_msgstr (stream, mlp->item[j]); - fprintf (stream, ");\n"); - } - fprintf (stream, " table = t;\n"); - fprintf (stream, " }\n"); + { + /* With the Sun javac compiler, each 'put' call takes 9 to 11 bytes + of bytecode, therefore for each message, up to 11 bytes are needed. + Since the bytecode of every method, including the method + that contains the static initializers, is limited to 64 KB, only ca, + 65536 / 11 = 5958 messages can be initialized in a single method. + Account for other Java compilers and for plurals by limiting it to + 1500. */ + const size_t max_items_per_method = 1500; + + if (mlp->nitems > max_items_per_method) + { + unsigned int k; + size_t start_j; + size_t end_j; + + for (k = 0, start_j = 0, end_j = start_j + max_items_per_method; + start_j < mlp->nitems; + k++, start_j = end_j, end_j = start_j + max_items_per_method) + { + fprintf (stream, " static void clinit_part_%u (java.util.Hashtable t) {\n", + k); + write_java1_init_statements (stream, mlp, + start_j, MIN (end_j, mlp->nitems)); + fprintf (stream, " }\n"); + } + } + fprintf (stream, " static {\n"); + fprintf (stream, " java.util.Hashtable t = new java.util.Hashtable();\n"); + if (mlp->nitems > max_items_per_method) + { + unsigned int k; + size_t start_j; + + for (k = 0, start_j = 0; + start_j < mlp->nitems; + k++, start_j += max_items_per_method) + fprintf (stream, " clinit_part_%u(t);\n", k); + } + else + write_java1_init_statements (stream, mlp, 0, mlp->nitems); + fprintf (stream, " table = t;\n"); + fprintf (stream, " }\n"); + } /* Emit the msgid_plural strings. Only used by msgunfmt. */ if (plurals) - { - fprintf (stream, " public static final java.util.Hashtable get_msgid_plural_table () {\n"); - fprintf (stream, " java.util.Hashtable p = new java.util.Hashtable();\n"); - for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgid_plural != NULL) - { - fprintf (stream, " p.put("); - write_java_msgid (stream, mlp->item[j]); - fprintf (stream, ","); - write_java_string (stream, mlp->item[j]->msgid_plural); - fprintf (stream, ");\n"); - } - fprintf (stream, " return p;\n"); - fprintf (stream, " }\n"); - } + { + fprintf (stream, " public static final java.util.Hashtable get_msgid_plural_table () {\n"); + fprintf (stream, " java.util.Hashtable p = new java.util.Hashtable();\n"); + for (j = 0; j < mlp->nitems; j++) + if (mlp->item[j]->msgid_plural != NULL) + { + fprintf (stream, " p.put("); + write_java_msgid (stream, mlp->item[j]); + fprintf (stream, ","); + write_java_string (stream, mlp->item[j]->msgid_plural); + fprintf (stream, ");\n"); + } + fprintf (stream, " return p;\n"); + fprintf (stream, " }\n"); + } if (plurals) - { - /* Emit the lookup function. It is a common subroutine for - handleGetObject and ngettext. */ - fprintf (stream, " public java.lang.Object lookup (java.lang.String msgid) {\n"); - fprintf (stream, " return table.get(msgid);\n"); - fprintf (stream, " }\n"); - } + { + /* Emit the lookup function. It is a common subroutine for + handleGetObject and ngettext. */ + fprintf (stream, " public java.lang.Object lookup (java.lang.String msgid) {\n"); + fprintf (stream, " return table.get(msgid);\n"); + fprintf (stream, " }\n"); + } /* Emit the handleGetObject function. It is declared abstract in - ResourceBundle. It implements a local version of gettext. */ + ResourceBundle. It implements a local version of gettext. */ fprintf (stream, " public java.lang.Object handleGetObject (java.lang.String msgid) throws java.util.MissingResourceException {\n"); if (plurals) - { - fprintf (stream, " java.lang.Object value = table.get(msgid);\n"); - fprintf (stream, " return (value instanceof java.lang.String[] ? ((java.lang.String[])value)[0] : value);\n"); - } + { + fprintf (stream, " java.lang.Object value = table.get(msgid);\n"); + fprintf (stream, " return (value instanceof java.lang.String[] ? ((java.lang.String[])value)[0] : value);\n"); + } else - fprintf (stream, " return table.get(msgid);\n"); + fprintf (stream, " return table.get(msgid);\n"); fprintf (stream, " }\n"); /* Emit the getKeys function. It is declared abstract in - ResourceBundle. */ + ResourceBundle. */ fprintf (stream, " public java.util.Enumeration getKeys () {\n"); fprintf (stream, " return table.keys();\n"); fprintf (stream, " }\n"); @@ -917,7 +1022,7 @@ header_entry = message_list_search (mlp, NULL, ""); extract_plural_expression (header_entry ? header_entry->msgstr : NULL, - &plural, &nplurals); + &plural, &nplurals); fprintf (stream, " public static long pluralEval (long n) {\n"); fprintf (stream, " return "); @@ -937,9 +1042,9 @@ int msgdomain_write_java (message_list_ty *mlp, const char *canon_encoding, - const char *resource_name, const char *locale_name, - const char *directory, - bool assume_java2) + const char *resource_name, const char *locale_name, + const char *directory, + bool assume_java2) { int retval; struct temp_dir *tmpdir; @@ -991,25 +1096,25 @@ p = resource_name; for (i = 0; i < ndots; i++) { - const char *q = strchr (p, '.'); - size_t n = q - p; - char *part = (char *) xmalloca (n + 1); - memcpy (part, p, n); - part[n] = '\0'; - subdirs[i] = concatenated_filename (last_dir, part, NULL); - freea (part); - last_dir = subdirs[i]; - p = q + 1; + const char *q = strchr (p, '.'); + size_t n = q - p; + char *part = (char *) xmalloca (n + 1); + memcpy (part, p, n); + part[n] = '\0'; + subdirs[i] = xconcatenated_filename (last_dir, part, NULL); + freea (part); + last_dir = subdirs[i]; + p = q + 1; } if (locale_name != NULL) { - char *suffix = xasprintf ("_%s.java", locale_name); - java_file_name = concatenated_filename (last_dir, p, suffix); - free (suffix); + char *suffix = xasprintf ("_%s.java", locale_name); + java_file_name = xconcatenated_filename (last_dir, p, suffix); + free (suffix); } else - java_file_name = concatenated_filename (last_dir, p, ".java"); + java_file_name = xconcatenated_filename (last_dir, p, ".java"); } /* Create the subdirectories. This is needed because some older Java @@ -1020,13 +1125,13 @@ for (i = 0; i < ndots; i++) { - register_temp_subdir (tmpdir, subdirs[i]); - if (mkdir (subdirs[i], S_IRUSR | S_IWUSR | S_IXUSR) < 0) - { - error (0, errno, _("failed to create \"%s\""), subdirs[i]); - unregister_temp_subdir (tmpdir, subdirs[i]); - goto quit3; - } + register_temp_subdir (tmpdir, subdirs[i]); + if (mkdir (subdirs[i], S_IRUSR | S_IWUSR | S_IXUSR) < 0) + { + error (0, errno, _("failed to create \"%s\""), subdirs[i]); + unregister_temp_subdir (tmpdir, subdirs[i]); + goto quit3; + } } } @@ -1054,13 +1159,13 @@ which is in a temporary directory in our case. */ java_sources[0] = java_file_name; if (compile_java_class (java_sources, 1, NULL, 0, "1.3", "1.1", directory, - true, false, true, verbose)) + true, false, true, verbose > 0)) { if (!verbose) - error (0, 0, _("\ + error (0, 0, _("\ compilation of Java class failed, please try --verbose or set $JAVAC")); else - error (0, 0, _("\ + error (0, 0, _("\ compilation of Java class failed, please try to set $JAVAC")); goto quit3; } diff -Nru gettext-0.17/gettext-tools/src/write-java.h gettext-0.18.1.1/gettext-tools/src/write-java.h --- gettext-0.17/gettext-tools/src/write-java.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-java.h 2010-06-06 12:49:58.000000000 +0000 @@ -29,10 +29,10 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_java (message_list_ty *mlp, - const char *canon_encoding, - const char *resource_name, - const char *locale_name, - const char *directory, - bool assume_java2); + const char *canon_encoding, + const char *resource_name, + const char *locale_name, + const char *directory, + bool assume_java2); #endif /* _WRITE_JAVA_H */ diff -Nru gettext-0.17/gettext-tools/src/write-mo.c gettext-0.18.1.1/gettext-tools/src/write-mo.c --- gettext-0.17/gettext-tools/src/write-mo.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-mo.c 2010-06-06 12:49:58.000000000 +0000 @@ -57,10 +57,10 @@ #ifndef roundup # if defined __GNUC__ && __GNUC__ >= 2 # define roundup(x, y) ({typeof(x) _x = (x); typeof(y) _y = (y); \ - ((_x + _y - 1) / _y) * _y; }) + ((_x + _y - 1) / _y) * _y; }) # else # define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) -# endif /* GNU CC2 */ +# endif /* GNU CC2 */ #endif /* roundup */ @@ -82,8 +82,8 @@ 'struct pre_sysdep_message'. */ enum { - M_ID = 0, /* msgid - the original string */ - M_STR = 1 /* msgstr - the translated string */ + M_ID = 0, /* msgid - the original string */ + M_STR = 1 /* msgstr - the translated string */ }; /* An intermediate data structure representing a 'struct string_desc'. */ @@ -105,7 +105,7 @@ compare_id (const void *pval1, const void *pval2) { return strcmp (((struct pre_message *) pval1)->str[M_ID].pointer, - ((struct pre_message *) pval2)->str[M_ID].pointer); + ((struct pre_message *) pval2)->str[M_ID].pointer); } @@ -156,7 +156,7 @@ int minor_revision; bool omit_hash_table; nls_uint32 hash_tab_size; - struct mo_file_header header; /* Header of the .mo file to be written. */ + struct mo_file_header header; /* Header of the .mo file to be written. */ size_t header_size; size_t offset; struct string_desc *orig_tab; @@ -189,10 +189,10 @@ msgctlen = (mp->msgctxt != NULL ? strlen (mp->msgctxt) + 1 : 0); msgctid = XNMALLOC (msgctlen + strlen (mp->msgid) + 1, char); if (mp->msgctxt != NULL) - { - memcpy (msgctid, mp->msgctxt, msgctlen - 1); - msgctid[msgctlen - 1] = MSGCTXT_SEPARATOR; - } + { + memcpy (msgctid, mp->msgctxt, msgctlen - 1); + msgctid[msgctlen - 1] = MSGCTXT_SEPARATOR; + } strcpy (msgctid + msgctlen, mp->msgid); msgctid_arr[j] = msgctid; @@ -202,165 +202,165 @@ nintervals[M_STR] = 0; /* Test if mp contains system dependent strings and thus - requires the use of the .mo file minor revision 1. */ + requires the use of the .mo file minor revision 1. */ if (possible_format_p (mp->is_format[format_c]) - || possible_format_p (mp->is_format[format_objc])) - { - /* Check whether msgid or msgstr contain ISO C 99 - format string directives. No need to check msgid_plural, because - it is not accessed by the [n]gettext() function family. */ - const char *p_end; - const char *p; - - get_sysdep_c_format_directives (mp->msgid, false, - &intervals[M_ID], &nintervals[M_ID]); - if (msgctlen > 0) - { - struct interval *id_intervals = intervals[M_ID]; - size_t id_nintervals = nintervals[M_ID]; - - if (id_nintervals > 0) - { - unsigned int i; - - for (i = 0; i < id_nintervals; i++) - { - id_intervals[i].startpos += msgctlen; - id_intervals[i].endpos += msgctlen; - } - } - } - - p_end = mp->msgstr + mp->msgstr_len; - for (p = mp->msgstr; p < p_end; p += strlen (p) + 1) - { - struct interval *part_intervals; - size_t part_nintervals; - - get_sysdep_c_format_directives (p, true, - &part_intervals, - &part_nintervals); - if (part_nintervals > 0) - { - size_t d = p - mp->msgstr; - unsigned int i; - - intervals[M_STR] = - (struct interval *) - xrealloc (intervals[M_STR], - (nintervals[M_STR] + part_nintervals) - * sizeof (struct interval)); - for (i = 0; i < part_nintervals; i++) - { - intervals[M_STR][nintervals[M_STR] + i].startpos = - d + part_intervals[i].startpos; - intervals[M_STR][nintervals[M_STR] + i].endpos = - d + part_intervals[i].endpos; - } - nintervals[M_STR] += part_nintervals; - } - } - } + || possible_format_p (mp->is_format[format_objc])) + { + /* Check whether msgid or msgstr contain ISO C 99 + format string directives. No need to check msgid_plural, because + it is not accessed by the [n]gettext() function family. */ + const char *p_end; + const char *p; + + get_sysdep_c_format_directives (mp->msgid, false, + &intervals[M_ID], &nintervals[M_ID]); + if (msgctlen > 0) + { + struct interval *id_intervals = intervals[M_ID]; + size_t id_nintervals = nintervals[M_ID]; + + if (id_nintervals > 0) + { + unsigned int i; + + for (i = 0; i < id_nintervals; i++) + { + id_intervals[i].startpos += msgctlen; + id_intervals[i].endpos += msgctlen; + } + } + } + + p_end = mp->msgstr + mp->msgstr_len; + for (p = mp->msgstr; p < p_end; p += strlen (p) + 1) + { + struct interval *part_intervals; + size_t part_nintervals; + + get_sysdep_c_format_directives (p, true, + &part_intervals, + &part_nintervals); + if (part_nintervals > 0) + { + size_t d = p - mp->msgstr; + unsigned int i; + + intervals[M_STR] = + (struct interval *) + xrealloc (intervals[M_STR], + (nintervals[M_STR] + part_nintervals) + * sizeof (struct interval)); + for (i = 0; i < part_nintervals; i++) + { + intervals[M_STR][nintervals[M_STR] + i].startpos = + d + part_intervals[i].startpos; + intervals[M_STR][nintervals[M_STR] + i].endpos = + d + part_intervals[i].endpos; + } + nintervals[M_STR] += part_nintervals; + } + } + } if (nintervals[M_ID] > 0 || nintervals[M_STR] > 0) - { - /* System dependent string pair. */ - for (m = 0; m < 2; m++) - { - struct pre_sysdep_string *pre = - (struct pre_sysdep_string *) - xmalloc (xsum (sizeof (struct pre_sysdep_string), - xtimes (nintervals[m], - sizeof (struct pre_segment_pair)))); - const char *str; - size_t str_len; - size_t lastpos; - unsigned int i; - - if (m == M_ID) - { - str = msgctid; /* concatenation of mp->msgctxt + mp->msgid */ - str_len = strlen (msgctid) + 1; - } - else - { - str = mp->msgstr; - str_len = mp->msgstr_len; - } - - lastpos = 0; - pre->segmentcount = nintervals[m]; - for (i = 0; i < nintervals[m]; i++) - { - size_t length; - const char *pointer; - size_t r; - - pre->segments[i].segptr = str + lastpos; - pre->segments[i].segsize = intervals[m][i].startpos - lastpos; - - length = intervals[m][i].endpos - intervals[m][i].startpos; - pointer = str + intervals[m][i].startpos; - if (length >= 2 - && pointer[0] == '<' && pointer[length - 1] == '>') - { - /* Skip the '<' and '>' markers. */ - length -= 2; - pointer += 1; - } - - for (r = 0; r < n_sysdep_segments; r++) - if (sysdep_segments[r].length == length - && memcmp (sysdep_segments[r].pointer, pointer, length) - == 0) - break; - if (r == n_sysdep_segments) - { - n_sysdep_segments++; - sysdep_segments = - (struct pre_sysdep_segment *) - xrealloc (sysdep_segments, - n_sysdep_segments - * sizeof (struct pre_sysdep_segment)); - sysdep_segments[r].length = length; - sysdep_segments[r].pointer = pointer; - } - - pre->segments[i].sysdepref = r; - - if (length == 1 && *pointer == 'I') - have_outdigits = true; - - lastpos = intervals[m][i].endpos; - } - pre->segments[i].segptr = str + lastpos; - pre->segments[i].segsize = str_len - lastpos; - pre->segments[i].sysdepref = SEGMENTS_END; - - sysdep_msg_arr[n_sysdep_strings].str[m] = pre; - } - - sysdep_msg_arr[n_sysdep_strings].id_plural = mp->msgid_plural; - sysdep_msg_arr[n_sysdep_strings].id_plural_len = - (mp->msgid_plural != NULL ? strlen (mp->msgid_plural) + 1 : 0); - n_sysdep_strings++; - } + { + /* System dependent string pair. */ + for (m = 0; m < 2; m++) + { + struct pre_sysdep_string *pre = + (struct pre_sysdep_string *) + xmalloc (xsum (sizeof (struct pre_sysdep_string), + xtimes (nintervals[m], + sizeof (struct pre_segment_pair)))); + const char *str; + size_t str_len; + size_t lastpos; + unsigned int i; + + if (m == M_ID) + { + str = msgctid; /* concatenation of mp->msgctxt + mp->msgid */ + str_len = strlen (msgctid) + 1; + } + else + { + str = mp->msgstr; + str_len = mp->msgstr_len; + } + + lastpos = 0; + pre->segmentcount = nintervals[m]; + for (i = 0; i < nintervals[m]; i++) + { + size_t length; + const char *pointer; + size_t r; + + pre->segments[i].segptr = str + lastpos; + pre->segments[i].segsize = intervals[m][i].startpos - lastpos; + + length = intervals[m][i].endpos - intervals[m][i].startpos; + pointer = str + intervals[m][i].startpos; + if (length >= 2 + && pointer[0] == '<' && pointer[length - 1] == '>') + { + /* Skip the '<' and '>' markers. */ + length -= 2; + pointer += 1; + } + + for (r = 0; r < n_sysdep_segments; r++) + if (sysdep_segments[r].length == length + && memcmp (sysdep_segments[r].pointer, pointer, length) + == 0) + break; + if (r == n_sysdep_segments) + { + n_sysdep_segments++; + sysdep_segments = + (struct pre_sysdep_segment *) + xrealloc (sysdep_segments, + n_sysdep_segments + * sizeof (struct pre_sysdep_segment)); + sysdep_segments[r].length = length; + sysdep_segments[r].pointer = pointer; + } + + pre->segments[i].sysdepref = r; + + if (length == 1 && *pointer == 'I') + have_outdigits = true; + + lastpos = intervals[m][i].endpos; + } + pre->segments[i].segptr = str + lastpos; + pre->segments[i].segsize = str_len - lastpos; + pre->segments[i].sysdepref = SEGMENTS_END; + + sysdep_msg_arr[n_sysdep_strings].str[m] = pre; + } + + sysdep_msg_arr[n_sysdep_strings].id_plural = mp->msgid_plural; + sysdep_msg_arr[n_sysdep_strings].id_plural_len = + (mp->msgid_plural != NULL ? strlen (mp->msgid_plural) + 1 : 0); + n_sysdep_strings++; + } else - { - /* Static string pair. */ - msg_arr[nstrings].str[M_ID].pointer = msgctid; - msg_arr[nstrings].str[M_ID].length = strlen (msgctid) + 1; - msg_arr[nstrings].str[M_STR].pointer = mp->msgstr; - msg_arr[nstrings].str[M_STR].length = mp->msgstr_len; - msg_arr[nstrings].id_plural = mp->msgid_plural; - msg_arr[nstrings].id_plural_len = - (mp->msgid_plural != NULL ? strlen (mp->msgid_plural) + 1 : 0); - nstrings++; - } + { + /* Static string pair. */ + msg_arr[nstrings].str[M_ID].pointer = msgctid; + msg_arr[nstrings].str[M_ID].length = strlen (msgctid) + 1; + msg_arr[nstrings].str[M_STR].pointer = mp->msgstr; + msg_arr[nstrings].str[M_STR].length = mp->msgstr_len; + msg_arr[nstrings].id_plural = mp->msgid_plural; + msg_arr[nstrings].id_plural_len = + (mp->msgid_plural != NULL ? strlen (mp->msgid_plural) + 1 : 0); + nstrings++; + } for (m = 0; m < 2; m++) - if (intervals[m] != NULL) - free (intervals[m]); + if (intervals[m] != NULL) + free (intervals[m]); } /* Sort the table according to original string. */ @@ -397,16 +397,16 @@ If we now choose M to be the next prime bigger than 4 / 3 * N, we get the values - 4 and 1.85 resp. + 4 and 1.85 resp. Because unsuccessful searches are unlikely this is a good value. Formulas: [Knuth, The Art of Computer Programming, Volume 3, - Sorting and Searching, 1973, Addison Wesley] */ + Sorting and Searching, 1973, Addison Wesley] */ if (!omit_hash_table) { hash_tab_size = next_prime ((mlp->nitems * 4) / 3); /* Ensure M > 2. */ if (hash_tab_size <= 2) - hash_tab_size = 3; + hash_tab_size = 3; } else hash_tab_size = 0; @@ -467,10 +467,10 @@ /* System dependent string descriptors. */ sysdep_tab_offset = offset; for (m = 0; m < 2; m++) - for (j = 0; j < n_sysdep_strings; j++) - offset += sizeof (struct sysdep_string) - + sysdep_msg_arr[j].str[m]->segmentcount - * sizeof (struct segment_pair); + for (j = 0; j < n_sysdep_strings; j++) + offset += sizeof (struct sysdep_string) + + sysdep_msg_arr[j].str[m]->segmentcount + * sizeof (struct segment_pair); } end_offset = offset; @@ -490,13 +490,13 @@ BSWAP32 (header.hash_tab_size); BSWAP32 (header.hash_tab_offset); if (minor_revision >= 1) - { - BSWAP32 (header.n_sysdep_segments); - BSWAP32 (header.sysdep_segments_offset); - BSWAP32 (header.n_sysdep_strings); - BSWAP32 (header.orig_sysdep_tab_offset); - BSWAP32 (header.trans_sysdep_tab_offset); - } + { + BSWAP32 (header.n_sysdep_segments); + BSWAP32 (header.sysdep_segments_offset); + BSWAP32 (header.n_sysdep_strings); + BSWAP32 (header.orig_sysdep_tab_offset); + BSWAP32 (header.trans_sysdep_tab_offset); + } } fwrite (&header, header_size, 1, output_file); @@ -507,7 +507,7 @@ { offset = roundup (offset, alignment); orig_tab[j].length = - msg_arr[j].str[M_ID].length + msg_arr[j].id_plural_len; + msg_arr[j].str[M_ID].length + msg_arr[j].id_plural_len; orig_tab[j].offset = offset; offset += orig_tab[j].length; /* Subtract 1 because of the terminating NUL. */ @@ -516,8 +516,8 @@ if (byteswap) for (j = 0; j < nstrings; j++) { - BSWAP32 (orig_tab[j].length); - BSWAP32 (orig_tab[j].offset); + BSWAP32 (orig_tab[j].length); + BSWAP32 (orig_tab[j].offset); } fwrite (orig_tab, nstrings * sizeof (struct string_desc), 1, output_file); @@ -536,8 +536,8 @@ if (byteswap) for (j = 0; j < nstrings; j++) { - BSWAP32 (trans_tab[j].length); - BSWAP32 (trans_tab[j].offset); + BSWAP32 (trans_tab[j].length); + BSWAP32 (trans_tab[j].offset); } fwrite (trans_tab, nstrings * sizeof (struct string_desc), 1, output_file); @@ -554,32 +554,32 @@ memset (hash_tab, '\0', hash_tab_size * sizeof (nls_uint32)); /* Insert all value in the hash table, following the algorithm described - above. */ + above. */ for (j = 0; j < nstrings; j++) - { - nls_uint32 hash_val = hash_string (msg_arr[j].str[M_ID].pointer); - nls_uint32 idx = hash_val % hash_tab_size; - - if (hash_tab[idx] != 0) - { - /* We need the second hashing function. */ - nls_uint32 incr = 1 + (hash_val % (hash_tab_size - 2)); - - do - if (idx >= hash_tab_size - incr) - idx -= hash_tab_size - incr; - else - idx += incr; - while (hash_tab[idx] != 0); - } + { + nls_uint32 hash_val = hash_string (msg_arr[j].str[M_ID].pointer); + nls_uint32 idx = hash_val % hash_tab_size; + + if (hash_tab[idx] != 0) + { + /* We need the second hashing function. */ + nls_uint32 incr = 1 + (hash_val % (hash_tab_size - 2)); + + do + if (idx >= hash_tab_size - incr) + idx -= hash_tab_size - incr; + else + idx += incr; + while (hash_tab[idx] != 0); + } - hash_tab[idx] = j + 1; - } + hash_tab[idx] = j + 1; + } /* Write the hash table out. */ if (byteswap) - for (j = 0; j < hash_tab_size; j++) - BSWAP32 (hash_tab[j]); + for (j = 0; j < hash_tab_size; j++) + BSWAP32 (hash_tab[j]); fwrite (hash_tab, hash_tab_size * sizeof (nls_uint32), 1, output_file); free (hash_tab); @@ -595,25 +595,25 @@ /* Here output_file is at position header.sysdep_segments_offset. */ sysdep_segments_tab = - XNMALLOC (n_sysdep_segments, struct sysdep_segment); + XNMALLOC (n_sysdep_segments, struct sysdep_segment); for (i = 0; i < n_sysdep_segments; i++) - { - offset = roundup (offset, alignment); - /* The "+ 1" accounts for the trailing NUL byte. */ - sysdep_segments_tab[i].length = sysdep_segments[i].length + 1; - sysdep_segments_tab[i].offset = offset; - offset += sysdep_segments_tab[i].length; - } + { + offset = roundup (offset, alignment); + /* The "+ 1" accounts for the trailing NUL byte. */ + sysdep_segments_tab[i].length = sysdep_segments[i].length + 1; + sysdep_segments_tab[i].offset = offset; + offset += sysdep_segments_tab[i].length; + } if (byteswap) - for (i = 0; i < n_sysdep_segments; i++) - { - BSWAP32 (sysdep_segments_tab[i].length); - BSWAP32 (sysdep_segments_tab[i].offset); - } + for (i = 0; i < n_sysdep_segments; i++) + { + BSWAP32 (sysdep_segments_tab[i].length); + BSWAP32 (sysdep_segments_tab[i].offset); + } fwrite (sysdep_segments_tab, - n_sysdep_segments * sizeof (struct sysdep_segment), 1, - output_file); + n_sysdep_segments * sizeof (struct sysdep_segment), 1, + output_file); free (sysdep_segments_tab); @@ -621,70 +621,70 @@ stoffset = sysdep_tab_offset; for (m = 0; m < 2; m++) - { - /* Here output_file is at position - m == M_ID -> header.orig_sysdep_tab_offset, - m == M_STR -> header.trans_sysdep_tab_offset. */ - - for (j = 0; j < n_sysdep_strings; j++) - { - sysdep_tab[j] = stoffset; - stoffset += sizeof (struct sysdep_string) - + sysdep_msg_arr[j].str[m]->segmentcount - * sizeof (struct segment_pair); - } - /* Write the table for original/translated sysdep string offsets. */ - if (byteswap) - for (j = 0; j < n_sysdep_strings; j++) - BSWAP32 (sysdep_tab[j]); - fwrite (sysdep_tab, n_sysdep_strings * sizeof (nls_uint32), 1, - output_file); - } + { + /* Here output_file is at position + m == M_ID -> header.orig_sysdep_tab_offset, + m == M_STR -> header.trans_sysdep_tab_offset. */ + + for (j = 0; j < n_sysdep_strings; j++) + { + sysdep_tab[j] = stoffset; + stoffset += sizeof (struct sysdep_string) + + sysdep_msg_arr[j].str[m]->segmentcount + * sizeof (struct segment_pair); + } + /* Write the table for original/translated sysdep string offsets. */ + if (byteswap) + for (j = 0; j < n_sysdep_strings; j++) + BSWAP32 (sysdep_tab[j]); + fwrite (sysdep_tab, n_sysdep_strings * sizeof (nls_uint32), 1, + output_file); + } free (sysdep_tab); /* Here output_file is at position sysdep_tab_offset. */ for (m = 0; m < 2; m++) - for (j = 0; j < n_sysdep_strings; j++) - { - struct pre_sysdep_message *msg = &sysdep_msg_arr[j]; - struct pre_sysdep_string *pre = msg->str[m]; - struct sysdep_string *str = - (struct sysdep_string *) - xmalloca (sizeof (struct sysdep_string) - + pre->segmentcount * sizeof (struct segment_pair)); - unsigned int i; - - offset = roundup (offset, alignment); - str->offset = offset; - for (i = 0; i <= pre->segmentcount; i++) - { - str->segments[i].segsize = pre->segments[i].segsize; - str->segments[i].sysdepref = pre->segments[i].sysdepref; - offset += str->segments[i].segsize; - } - if (m == M_ID && msg->id_plural_len > 0) - { - str->segments[pre->segmentcount].segsize += msg->id_plural_len; - offset += msg->id_plural_len; - } - if (byteswap) - { - BSWAP32 (str->offset); - for (i = 0; i <= pre->segmentcount; i++) - { - BSWAP32 (str->segments[i].segsize); - BSWAP32 (str->segments[i].sysdepref); - } - } - fwrite (str, - sizeof (struct sysdep_string) - + pre->segmentcount * sizeof (struct segment_pair), - 1, output_file); + for (j = 0; j < n_sysdep_strings; j++) + { + struct pre_sysdep_message *msg = &sysdep_msg_arr[j]; + struct pre_sysdep_string *pre = msg->str[m]; + struct sysdep_string *str = + (struct sysdep_string *) + xmalloca (sizeof (struct sysdep_string) + + pre->segmentcount * sizeof (struct segment_pair)); + unsigned int i; + + offset = roundup (offset, alignment); + str->offset = offset; + for (i = 0; i <= pre->segmentcount; i++) + { + str->segments[i].segsize = pre->segments[i].segsize; + str->segments[i].sysdepref = pre->segments[i].sysdepref; + offset += str->segments[i].segsize; + } + if (m == M_ID && msg->id_plural_len > 0) + { + str->segments[pre->segmentcount].segsize += msg->id_plural_len; + offset += msg->id_plural_len; + } + if (byteswap) + { + BSWAP32 (str->offset); + for (i = 0; i <= pre->segmentcount; i++) + { + BSWAP32 (str->segments[i].segsize); + BSWAP32 (str->segments[i].sysdepref); + } + } + fwrite (str, + sizeof (struct sysdep_string) + + pre->segmentcount * sizeof (struct segment_pair), + 1, output_file); - freea (str); - } + freea (str); + } } /* Here output_file is at position end_offset. */ @@ -708,10 +708,10 @@ offset = roundup (offset, alignment); fwrite (msg_arr[j].str[M_ID].pointer, msg_arr[j].str[M_ID].length, 1, - output_file); + output_file); if (msg_arr[j].id_plural_len > 0) - fwrite (msg_arr[j].id_plural, msg_arr[j].id_plural_len, 1, - output_file); + fwrite (msg_arr[j].id_plural, msg_arr[j].id_plural_len, 1, + output_file); offset += msg_arr[j].str[M_ID].length + msg_arr[j].id_plural_len; } @@ -722,7 +722,7 @@ offset = roundup (offset, alignment); fwrite (msg_arr[j].str[M_STR].pointer, msg_arr[j].str[M_STR].length, 1, - output_file); + output_file); offset += msg_arr[j].str[M_STR].length; } @@ -731,40 +731,40 @@ unsigned int i; for (i = 0; i < n_sysdep_segments; i++) - { - fwrite (null, roundup (offset, alignment) - offset, 1, output_file); - offset = roundup (offset, alignment); - - fwrite (sysdep_segments[i].pointer, sysdep_segments[i].length, 1, - output_file); - fwrite (null, 1, 1, output_file); - offset += sysdep_segments[i].length + 1; - } + { + fwrite (null, roundup (offset, alignment) - offset, 1, output_file); + offset = roundup (offset, alignment); + + fwrite (sysdep_segments[i].pointer, sysdep_segments[i].length, 1, + output_file); + fwrite (null, 1, 1, output_file); + offset += sysdep_segments[i].length + 1; + } for (m = 0; m < 2; m++) - for (j = 0; j < n_sysdep_strings; j++) - { - struct pre_sysdep_message *msg = &sysdep_msg_arr[j]; - struct pre_sysdep_string *pre = msg->str[m]; - - fwrite (null, roundup (offset, alignment) - offset, 1, - output_file); - offset = roundup (offset, alignment); - - for (i = 0; i <= pre->segmentcount; i++) - { - fwrite (pre->segments[i].segptr, pre->segments[i].segsize, 1, - output_file); - offset += pre->segments[i].segsize; - } - if (m == M_ID && msg->id_plural_len > 0) - { - fwrite (msg->id_plural, msg->id_plural_len, 1, output_file); - offset += msg->id_plural_len; - } + for (j = 0; j < n_sysdep_strings; j++) + { + struct pre_sysdep_message *msg = &sysdep_msg_arr[j]; + struct pre_sysdep_string *pre = msg->str[m]; + + fwrite (null, roundup (offset, alignment) - offset, 1, + output_file); + offset = roundup (offset, alignment); + + for (i = 0; i <= pre->segmentcount; i++) + { + fwrite (pre->segments[i].segptr, pre->segments[i].segsize, 1, + output_file); + offset += pre->segments[i].segsize; + } + if (m == M_ID && msg->id_plural_len > 0) + { + fwrite (msg->id_plural, msg->id_plural_len, 1, output_file); + offset += msg->id_plural_len; + } - free (pre); - } + free (pre); + } } freea (null); @@ -778,8 +778,8 @@ int msgdomain_write_mo (message_list_ty *mlp, - const char *domain_name, - const char *file_name) + const char *domain_name, + const char *file_name) { FILE *output_file; @@ -787,30 +787,30 @@ if (mlp->nitems != 0) { if (strcmp (domain_name, "-") == 0) - { - output_file = stdout; - SET_BINARY (fileno (output_file)); - } + { + output_file = stdout; + SET_BINARY (fileno (output_file)); + } else - { - output_file = fopen (file_name, "wb"); - if (output_file == NULL) - { - error (0, errno, _("error while opening \"%s\" for writing"), - file_name); - return 1; - } - } + { + output_file = fopen (file_name, "wb"); + if (output_file == NULL) + { + error (0, errno, _("error while opening \"%s\" for writing"), + file_name); + return 1; + } + } if (output_file != NULL) - { - write_table (output_file, mlp); + { + write_table (output_file, mlp); - /* Make sure nothing went wrong. */ - if (fwriteerror (output_file)) - error (EXIT_FAILURE, errno, _("error while writing \"%s\" file"), - file_name); - } + /* Make sure nothing went wrong. */ + if (fwriteerror (output_file)) + error (EXIT_FAILURE, errno, _("error while writing \"%s\" file"), + file_name); + } } return 0; diff -Nru gettext-0.17/gettext-tools/src/write-mo.h gettext-0.18.1.1/gettext-tools/src/write-mo.h --- gettext-0.17/gettext-tools/src/write-mo.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-mo.h 2010-06-06 12:49:58.000000000 +0000 @@ -37,7 +37,7 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_mo (message_list_ty *mlp, - const char *domain_name, - const char *file_name); + const char *domain_name, + const char *file_name); #endif /* _WRITE_MO_H */ diff -Nru gettext-0.17/gettext-tools/src/write-po.c gettext-0.18.1.1/gettext-tools/src/write-po.c --- gettext-0.17/gettext-tools/src/write-po.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-po.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -37,7 +37,7 @@ #include "c-ctype.h" #include "po-charset.h" #include "format.h" -#include "linebreak.h" +#include "unilbrk.h" #include "msgl-ascii.h" #include "write-catalog.h" #include "xalloc.h" @@ -68,7 +68,7 @@ const char * make_format_description_string (enum is_format is_format, const char *lang, - bool debug) + bool debug) { static char result[100]; @@ -76,10 +76,10 @@ { case possible: if (debug) - { - sprintf (result, "possible-%s-format", lang); - break; - } + { + sprintf (result, "possible-%s-format", lang); + break; + } /* FALLTHROUGH */ case yes_according_to_context: case yes: @@ -120,6 +120,15 @@ } +/* Convert a RANGE to a freshly allocated string for use in #, flags. */ + +char * +make_range_description_string (struct argument_range range) +{ + return xasprintf ("range: %d..%d", range.min, range.max); +} + + /* Convert a wrapping flag DO_WRAP to a string for use in #, flags. */ static const char * @@ -240,29 +249,29 @@ begin_css_class (stream, class_translator_comment); for (j = 0; j < mp->comment->nitems; ++j) - { - const char *s = mp->comment->item[j]; - do - { - const char *e; - ostream_write_str (stream, "#"); - if (*s != '\0') - ostream_write_str (stream, " "); - e = strchr (s, '\n'); - if (e == NULL) - { - ostream_write_str (stream, s); - s = NULL; - } - else - { - ostream_write_mem (stream, s, e - s); - s = e + 1; - } - ostream_write_str (stream, "\n"); - } - while (s != NULL); - } + { + const char *s = mp->comment->item[j]; + do + { + const char *e; + ostream_write_str (stream, "#"); + if (*s != '\0') + ostream_write_str (stream, " "); + e = strchr (s, '\n'); + if (e == NULL) + { + ostream_write_str (stream, s); + s = NULL; + } + else + { + ostream_write_mem (stream, s, e - s); + s = e + 1; + } + ostream_write_str (stream, "\n"); + } + while (s != NULL); + } end_css_class (stream, class_translator_comment); } @@ -281,14 +290,14 @@ begin_css_class (stream, class_extracted_comment); for (j = 0; j < mp->comment_dot->nitems; ++j) - { - const char *s = mp->comment_dot->item[j]; - ostream_write_str (stream, "#."); - if (*s != '\0') - ostream_write_str (stream, " "); - ostream_write_str (stream, s); - ostream_write_str (stream, "\n"); - } + { + const char *s = mp->comment_dot->item[j]; + ostream_write_str (stream, "#."); + if (*s != '\0') + ostream_write_str (stream, " "); + ostream_write_str (stream, s); + ostream_write_str (stream, "\n"); + } end_css_class (stream, class_extracted_comment); } @@ -299,87 +308,89 @@ void message_print_comment_filepos (const message_ty *mp, ostream_t stream, - bool uniforum, size_t page_width) + bool uniforum, size_t page_width) { if (mp->filepos_count != 0) { begin_css_class (stream, class_reference_comment); if (uniforum) - { - size_t j; + { + size_t j; - for (j = 0; j < mp->filepos_count; ++j) - { - lex_pos_ty *pp = &mp->filepos[j]; - char *cp = pp->file_name; - char *str; - - while (cp[0] == '.' && cp[1] == '/') - cp += 2; - ostream_write_str (stream, "# "); - begin_css_class (stream, class_reference); - /* There are two Sun formats to choose from: SunOS and - Solaris. Use the Solaris form here. */ - str = xasprintf ("File: %s, line: %ld", - cp, (long) pp->line_number); - ostream_write_str (stream, str); - end_css_class (stream, class_reference); - ostream_write_str (stream, "\n"); - free (str); - } - } + for (j = 0; j < mp->filepos_count; ++j) + { + lex_pos_ty *pp = &mp->filepos[j]; + const char *cp = pp->file_name; + char *str; + + while (cp[0] == '.' && cp[1] == '/') + cp += 2; + ostream_write_str (stream, "# "); + begin_css_class (stream, class_reference); + /* There are two Sun formats to choose from: SunOS and + Solaris. Use the Solaris form here. */ + str = xasprintf ("File: %s, line: %ld", + cp, (long) pp->line_number); + ostream_write_str (stream, str); + end_css_class (stream, class_reference); + ostream_write_str (stream, "\n"); + free (str); + } + } else - { - size_t column; - size_t j; - - ostream_write_str (stream, "#:"); - column = 2; - for (j = 0; j < mp->filepos_count; ++j) - { - lex_pos_ty *pp; - char buffer[21]; - char *cp; - size_t len; - - pp = &mp->filepos[j]; - cp = pp->file_name; - while (cp[0] == '.' && cp[1] == '/') - cp += 2; - /* Some xgettext input formats, like RST, lack line numbers. */ - if (pp->line_number == (size_t)(-1)) - buffer[0] = '\0'; - else - sprintf (buffer, ":%ld", (long) pp->line_number); - len = strlen (cp) + strlen (buffer) + 1; - if (column > 2 && column + len >= page_width) - { - ostream_write_str (stream, "\n#:"); - column = 2; - } - ostream_write_str (stream, " "); - begin_css_class (stream, class_reference); - ostream_write_str (stream, cp); - ostream_write_str (stream, buffer); - end_css_class (stream, class_reference); - column += len; - } - ostream_write_str (stream, "\n"); - } + { + size_t column; + size_t j; + + ostream_write_str (stream, "#:"); + column = 2; + for (j = 0; j < mp->filepos_count; ++j) + { + lex_pos_ty *pp; + char buffer[21]; + const char *cp; + size_t len; + + pp = &mp->filepos[j]; + cp = pp->file_name; + while (cp[0] == '.' && cp[1] == '/') + cp += 2; + /* Some xgettext input formats, like RST, lack line numbers. */ + if (pp->line_number == (size_t)(-1)) + buffer[0] = '\0'; + else + sprintf (buffer, ":%ld", (long) pp->line_number); + len = strlen (cp) + strlen (buffer) + 1; + if (column > 2 && column + len >= page_width) + { + ostream_write_str (stream, "\n#:"); + column = 2; + } + ostream_write_str (stream, " "); + begin_css_class (stream, class_reference); + ostream_write_str (stream, cp); + ostream_write_str (stream, buffer); + end_css_class (stream, class_reference); + column += len; + } + ostream_write_str (stream, "\n"); + } end_css_class (stream, class_reference_comment); } } -/* Output mp->is_fuzzy, mp->is_format, mp->do_wrap as a comment line. */ +/* Output mp->is_fuzzy, mp->is_format, mp->range, mp->do_wrap as a comment + line. */ void message_print_comment_flags (const message_ty *mp, ostream_t stream, bool debug) { if ((mp->is_fuzzy && mp->msgstr[0] != '\0') || has_significant_format_p (mp->is_format) + || has_range_p (mp->range) || mp->do_wrap == no) { bool first_flag = true; @@ -390,47 +401,63 @@ ostream_write_str (stream, "#,"); /* We don't print the fuzzy flag if the msgstr is empty. This - might be introduced by the user but we want to normalize the - output. */ + might be introduced by the user but we want to normalize the + output. */ if (mp->is_fuzzy && mp->msgstr[0] != '\0') - { - ostream_write_str (stream, " "); - begin_css_class (stream, class_flag); - begin_css_class (stream, class_fuzzy_flag); - ostream_write_str (stream, "fuzzy"); - end_css_class (stream, class_fuzzy_flag); - end_css_class (stream, class_flag); - first_flag = false; - } + { + ostream_write_str (stream, " "); + begin_css_class (stream, class_flag); + begin_css_class (stream, class_fuzzy_flag); + ostream_write_str (stream, "fuzzy"); + end_css_class (stream, class_fuzzy_flag); + end_css_class (stream, class_flag); + first_flag = false; + } for (i = 0; i < NFORMATS; i++) - if (significant_format_p (mp->is_format[i])) - { - if (!first_flag) - ostream_write_str (stream, ","); - - ostream_write_str (stream, " "); - begin_css_class (stream, class_flag); - ostream_write_str (stream, - make_format_description_string (mp->is_format[i], - format_language[i], - debug)); - end_css_class (stream, class_flag); - first_flag = false; - } + if (significant_format_p (mp->is_format[i])) + { + if (!first_flag) + ostream_write_str (stream, ","); + + ostream_write_str (stream, " "); + begin_css_class (stream, class_flag); + ostream_write_str (stream, + make_format_description_string (mp->is_format[i], + format_language[i], + debug)); + end_css_class (stream, class_flag); + first_flag = false; + } + + if (has_range_p (mp->range)) + { + char *string; + + if (!first_flag) + ostream_write_str (stream, ","); + + ostream_write_str (stream, " "); + begin_css_class (stream, class_flag); + string = make_range_description_string (mp->range); + ostream_write_str (stream, string); + free (string); + end_css_class (stream, class_flag); + first_flag = false; + } if (mp->do_wrap == no) - { - if (!first_flag) - ostream_write_str (stream, ","); - - ostream_write_str (stream, " "); - begin_css_class (stream, class_flag); - ostream_write_str (stream, - make_c_width_description_string (mp->do_wrap)); - end_css_class (stream, class_flag); - first_flag = false; - } + { + if (!first_flag) + ostream_write_str (stream, ","); + + ostream_write_str (stream, " "); + begin_css_class (stream, class_flag); + ostream_write_str (stream, + make_c_width_description_string (mp->do_wrap)); + end_css_class (stream, class_flag); + first_flag = false; + } ostream_write_str (stream, "\n"); @@ -493,7 +520,7 @@ *q = *p; if (--n > 0) - do *++q = *++p; while (--n > 0); + do *++q = *++p; while (--n > 0); } } @@ -508,7 +535,7 @@ *p = c; if (--n > 0) - do *++p = c; while (--n > 0); + do *++p = c; while (--n > 0); } } @@ -522,6 +549,7 @@ { const char *canon_charset; char *fmtdir; + char *fmtdirattr; const char *s; bool first_line; #if HAVE_ICONV @@ -551,19 +579,19 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (strcmp (canon_charset, "EUC-KR") == 0) - conv = (iconv_t)(-1); + conv = (iconv_t)(-1); else # endif /* Avoid Solaris 2.9 bug with GB2312, EUC-TW, BIG5, BIG5-HKSCS, GBK, - GB18030. */ + GB18030. */ # if defined __sun && !defined _LIBICONV_VERSION if ( strcmp (canon_charset, "GB2312") == 0 - || strcmp (canon_charset, "EUC-TW") == 0 - || strcmp (canon_charset, "BIG5") == 0 - || strcmp (canon_charset, "BIG5-HKSCS") == 0 - || strcmp (canon_charset, "GBK") == 0 - || strcmp (canon_charset, "GB18030") == 0) - conv = (iconv_t)(-1); + || strcmp (canon_charset, "EUC-TW") == 0 + || strcmp (canon_charset, "BIG5") == 0 + || strcmp (canon_charset, "BIG5-HKSCS") == 0 + || strcmp (canon_charset, "GBK") == 0 + || strcmp (canon_charset, "GB18030") == 0) + conv = (iconv_t)(-1); else # endif /* Use iconv() to parse multibyte characters. */ @@ -583,54 +611,58 @@ /* Determine the extent of format string directives. */ fmtdir = NULL; - if (is_stylable (stream) && value[0] != '\0') + fmtdirattr = NULL; + if (value[0] != '\0') { bool is_msgstr = - (strlen (name) >= 6 && memcmp (name, "msgstr", 6) == 0); - /* or equivalent: = (css_class == class_msgstr) */ + (strlen (name) >= 6 && memcmp (name, "msgstr", 6) == 0); + /* or equivalent: = (css_class == class_msgstr) */ size_t i; for (i = 0; i < NFORMATS; i++) - if (possible_format_p (mp->is_format[i])) - { - size_t len = strlen (value); - struct formatstring_parser *parser = formatstring_parsers[i]; - char *invalid_reason = NULL; - void *descr; - char *fdp; - char *fd_end; - - fmtdir = XCALLOC (len, char); - descr = parser->parse (value, is_msgstr, fmtdir, &invalid_reason); - if (descr != NULL) - parser->free (descr); - - /* Locate the FMTDIR_* bits and transform the array to an array - of attributes. */ - fd_end = fmtdir + len; - for (fdp = fmtdir; fdp < fd_end; fdp++) - if (*fdp & FMTDIR_START) - { - char *fdq; - for (fdq = fdp; fdq < fd_end; fdq++) - if (*fdq & (FMTDIR_END | FMTDIR_ERROR)) - break; - if (!(fdq < fd_end)) - /* The ->parse method has determined the start of a - formatstring directive but not stored a bit indicating - its end. It is a bug in the ->parse method. */ - abort (); - if (*fdq & FMTDIR_ERROR) - memset (fdp, ATTR_INVALID_FORMAT_DIRECTIVE, fdq - fdp + 1); - else - memset (fdp, ATTR_FORMAT_DIRECTIVE, fdq - fdp + 1); - fdp = fdq; - } - else - *fdp = 0; + if (possible_format_p (mp->is_format[i])) + { + size_t len = strlen (value); + struct formatstring_parser *parser = formatstring_parsers[i]; + char *invalid_reason = NULL; + void *descr; + const char *fdp; + const char *fd_end; + char *fdap; + + fmtdir = XCALLOC (len, char); + descr = parser->parse (value, is_msgstr, fmtdir, &invalid_reason); + if (descr != NULL) + parser->free (descr); + + /* Locate the FMTDIR_* bits and transform the array to an array + of attributes. */ + fmtdirattr = XCALLOC (len, char); + fd_end = fmtdir + len; + for (fdp = fmtdir, fdap = fmtdirattr; fdp < fd_end; fdp++, fdap++) + if (*fdp & FMTDIR_START) + { + const char *fdq; + for (fdq = fdp; fdq < fd_end; fdq++) + if (*fdq & (FMTDIR_END | FMTDIR_ERROR)) + break; + if (!(fdq < fd_end)) + /* The ->parse method has determined the start of a + formatstring directive but not stored a bit indicating + its end. It is a bug in the ->parse method. */ + abort (); + if (*fdq & FMTDIR_ERROR) + memset (fdap, ATTR_INVALID_FORMAT_DIRECTIVE, fdq - fdp + 1); + else + memset (fdap, ATTR_FORMAT_DIRECTIVE, fdq - fdp + 1); + fdap += fdq - fdp; + fdp = fdq; + } + else + *fdap = 0; - break; - } + break; + } } /* Loop over the '\n' delimited portions of value. */ @@ -657,229 +689,236 @@ size_t i; for (es = s; *es != '\0'; ) - if (*es++ == '\n') - break; + if (*es++ == '\n') + break; /* Expand escape sequences in each portion. */ for (ep = s, portion_len = 0; ep < es; ep++) - { - char c = *ep; - if (is_escape (c)) - portion_len += 2; - else if (escape && !c_isprint ((unsigned char) c)) - portion_len += 4; - else if (c == '\\' || c == '"') - portion_len += 2; - else - { + { + char c = *ep; + if (is_escape (c)) + portion_len += 2; + else if (escape && !c_isprint ((unsigned char) c)) + portion_len += 4; + else if (c == '\\' || c == '"') + portion_len += 2; + else + { #if HAVE_ICONV - if (conv != (iconv_t)(-1)) - { - /* Skip over a complete multi-byte character. Don't - interpret the second byte of a multi-byte character as - ASCII. This is needed for the BIG5, BIG5-HKSCS, GBK, - GB18030, SHIFT_JIS, JOHAB encodings. */ - char scratchbuf[64]; - const char *inptr = ep; - size_t insize; - char *outptr = &scratchbuf[0]; - size_t outsize = sizeof (scratchbuf); - size_t res; - - res = (size_t)(-1); - for (insize = 1; inptr + insize <= es; insize++) - { - res = iconv (conv, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - if (!(res == (size_t)(-1) && errno == EINVAL)) - break; - /* We expect that no input bytes have been consumed - so far. */ - if (inptr != ep) - abort (); - } - if (res == (size_t)(-1)) - { - if (errno == EILSEQ) - { - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, false, - _("invalid multibyte sequence")); - continue; - } - else - abort (); - } - insize = inptr - ep; - portion_len += insize; - ep += insize - 1; - } - else + if (conv != (iconv_t)(-1)) + { + /* Skip over a complete multi-byte character. Don't + interpret the second byte of a multi-byte character as + ASCII. This is needed for the BIG5, BIG5-HKSCS, GBK, + GB18030, SHIFT_JIS, JOHAB encodings. */ + char scratchbuf[64]; + const char *inptr = ep; + size_t insize; + char *outptr = &scratchbuf[0]; + size_t outsize = sizeof (scratchbuf); + size_t res; + + res = (size_t)(-1); + for (insize = 1; inptr + insize <= es; insize++) + { + res = iconv (conv, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* We expect that no input bytes have been consumed + so far. */ + if (inptr != ep) + abort (); + } + if (res == (size_t)(-1)) + { + if (errno == EILSEQ) + { + po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, false, + _("invalid multibyte sequence")); + continue; + } + else + abort (); + } + insize = inptr - ep; + portion_len += insize; + ep += insize - 1; + } + else #endif - { - if (weird_cjk - /* Special handling of encodings with CJK structure. */ - && ep + 2 <= es - && (unsigned char) ep[0] >= 0x80 - && (unsigned char) ep[1] >= 0x30) - { - portion_len += 2; - ep += 1; - } - else - portion_len += 1; - } - } - } + { + if (weird_cjk + /* Special handling of encodings with CJK structure. */ + && ep + 2 <= es + && (unsigned char) ep[0] >= 0x80 + && (unsigned char) ep[1] >= 0x30) + { + portion_len += 2; + ep += 1; + } + else + portion_len += 1; + } + } + } portion = XNMALLOC (portion_len, char); overrides = XNMALLOC (portion_len, char); - memset (overrides, UC_BREAK_UNDEFINED, portion_len); attributes = XNMALLOC (portion_len, char); for (ep = s, pp = portion, op = overrides, ap = attributes; ep < es; ep++) - { - char c = *ep; - char attr = (fmtdir != NULL ? fmtdir[ep - value] : 0); - if (is_escape (c)) - { - switch (c) - { - case '\a': c = 'a'; break; - case '\b': c = 'b'; break; - case '\f': c = 'f'; break; - case '\n': c = 'n'; break; - case '\r': c = 'r'; break; - case '\t': c = 't'; break; - case '\v': c = 'v'; break; - default: abort (); - } - *pp++ = '\\'; - *pp++ = c; - op++; - *op++ = UC_BREAK_PROHIBITED; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - /* We warn about any use of escape sequences beside - '\n' and '\t'. */ - if (c != 'n' && c != 't') - { - char *error_message = - xasprintf (_("\ + { + char c = *ep; + char attr = (fmtdirattr != NULL ? fmtdirattr[ep - value] : 0); + char brk = UC_BREAK_UNDEFINED; + /* Don't break inside format directives. */ + if (attr == ATTR_FORMAT_DIRECTIVE + && (fmtdir[ep - value] & FMTDIR_START) == 0) + brk = UC_BREAK_PROHIBITED; + if (is_escape (c)) + { + switch (c) + { + case '\a': c = 'a'; break; + case '\b': c = 'b'; break; + case '\f': c = 'f'; break; + case '\n': c = 'n'; break; + case '\r': c = 'r'; break; + case '\t': c = 't'; break; + case '\v': c = 'v'; break; + default: abort (); + } + *pp++ = '\\'; + *pp++ = c; + *op++ = brk; + *op++ = UC_BREAK_PROHIBITED; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + /* We warn about any use of escape sequences beside + '\n' and '\t'. */ + if (c != 'n' && c != 't') + { + char *error_message = + xasprintf (_("\ internationalized messages should not contain the `\\%c' escape sequence"), - c); - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, false, - error_message); - free (error_message); - } - } - else if (escape && !c_isprint ((unsigned char) c)) - { - *pp++ = '\\'; - *pp++ = '0' + (((unsigned char) c >> 6) & 7); - *pp++ = '0' + (((unsigned char) c >> 3) & 7); - *pp++ = '0' + ((unsigned char) c & 7); - op++; - *op++ = UC_BREAK_PROHIBITED; - *op++ = UC_BREAK_PROHIBITED; - *op++ = UC_BREAK_PROHIBITED; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - } - else if (c == '\\' || c == '"') - { - *pp++ = '\\'; - *pp++ = c; - op++; - *op++ = UC_BREAK_PROHIBITED; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - *ap++ = attr | ATTR_ESCAPE_SEQUENCE; - } - else - { + c); + po_xerror (PO_SEVERITY_WARNING, mp, NULL, 0, 0, false, + error_message); + free (error_message); + } + } + else if (escape && !c_isprint ((unsigned char) c)) + { + *pp++ = '\\'; + *pp++ = '0' + (((unsigned char) c >> 6) & 7); + *pp++ = '0' + (((unsigned char) c >> 3) & 7); + *pp++ = '0' + ((unsigned char) c & 7); + *op++ = brk; + *op++ = UC_BREAK_PROHIBITED; + *op++ = UC_BREAK_PROHIBITED; + *op++ = UC_BREAK_PROHIBITED; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + } + else if (c == '\\' || c == '"') + { + *pp++ = '\\'; + *pp++ = c; + *op++ = brk; + *op++ = UC_BREAK_PROHIBITED; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + *ap++ = attr | ATTR_ESCAPE_SEQUENCE; + } + else + { #if HAVE_ICONV - if (conv != (iconv_t)(-1)) - { - /* Copy a complete multi-byte character. Don't - interpret the second byte of a multi-byte character as - ASCII. This is needed for the BIG5, BIG5-HKSCS, GBK, - GB18030, SHIFT_JIS, JOHAB encodings. */ - char scratchbuf[64]; - const char *inptr = ep; - size_t insize; - char *outptr = &scratchbuf[0]; - size_t outsize = sizeof (scratchbuf); - size_t res; - - res = (size_t)(-1); - for (insize = 1; inptr + insize <= es; insize++) - { - res = iconv (conv, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - if (!(res == (size_t)(-1) && errno == EINVAL)) - break; - /* We expect that no input bytes have been consumed - so far. */ - if (inptr != ep) - abort (); - } - if (res == (size_t)(-1)) - { - if (errno == EILSEQ) - { - po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, - false, _("invalid multibyte sequence")); - continue; - } - else - abort (); - } - insize = inptr - ep; - memcpy_small (pp, ep, insize); - pp += insize; - op += insize; - memset_small (ap, attr, insize); - ap += insize; - ep += insize - 1; - } - else + if (conv != (iconv_t)(-1)) + { + /* Copy a complete multi-byte character. Don't + interpret the second byte of a multi-byte character as + ASCII. This is needed for the BIG5, BIG5-HKSCS, GBK, + GB18030, SHIFT_JIS, JOHAB encodings. */ + char scratchbuf[64]; + const char *inptr = ep; + size_t insize; + char *outptr = &scratchbuf[0]; + size_t outsize = sizeof (scratchbuf); + size_t res; + + res = (size_t)(-1); + for (insize = 1; inptr + insize <= es; insize++) + { + res = iconv (conv, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + if (!(res == (size_t)(-1) && errno == EINVAL)) + break; + /* We expect that no input bytes have been consumed + so far. */ + if (inptr != ep) + abort (); + } + if (res == (size_t)(-1)) + { + if (errno == EILSEQ) + { + po_xerror (PO_SEVERITY_ERROR, mp, NULL, 0, 0, + false, _("invalid multibyte sequence")); + continue; + } + else + abort (); + } + insize = inptr - ep; + memcpy_small (pp, ep, insize); + pp += insize; + *op = brk; + memset_small (op + 1, UC_BREAK_PROHIBITED, insize - 1); + op += insize; + memset_small (ap, attr, insize); + ap += insize; + ep += insize - 1; + } + else #endif - { - if (weird_cjk - /* Special handling of encodings with CJK structure. */ - && ep + 2 <= es - && (unsigned char) c >= 0x80 - && (unsigned char) ep[1] >= 0x30) - { - *pp++ = c; - ep += 1; - *pp++ = *ep; - op += 2; - *ap++ = attr; - *ap++ = attr; - } - else - { - *pp++ = c; - op++; - *ap++ = attr; - } - } - } - } + { + if (weird_cjk + /* Special handling of encodings with CJK structure. */ + && ep + 2 <= es + && (unsigned char) c >= 0x80 + && (unsigned char) ep[1] >= 0x30) + { + *pp++ = c; + ep += 1; + *pp++ = *ep; + *op++ = brk; + *op++ = UC_BREAK_PROHIBITED; + *ap++ = attr; + *ap++ = attr; + } + else + { + *pp++ = c; + *op++ = brk; + *ap++ = attr; + } + } + } + } /* Don't break immediately before the "\n" at the end. */ if (es > s && es[-1] == '\n') - overrides[portion_len - 2] = UC_BREAK_PROHIBITED; + overrides[portion_len - 2] = UC_BREAK_PROHIBITED; linebreaks = XNMALLOC (portion_len, char); /* Subsequent lines after a break are all indented. - See INDENT-S. */ + See INDENT-S. */ startcol_after_break = (line_prefix ? strlen (line_prefix) : 0); if (indent) - startcol_after_break = (startcol_after_break + extra_indent + 8) & ~7; + startcol_after_break = (startcol_after_break + extra_indent + 8) & ~7; startcol_after_break++; /* The line width. Allow room for the closing quote character. */ @@ -889,223 +928,223 @@ recompute: /* The line starts with different things depending on whether it - is the first line, and if we are using the indented style. - See INDENT-F. */ + is the first line, and if we are using the indented style. + See INDENT-F. */ startcol = (line_prefix ? strlen (line_prefix) : 0); if (first_line) - { - startcol += strlen (name); - if (indent) - startcol = (startcol + extra_indent + 8) & ~7; - else - startcol++; - } + { + startcol += strlen (name); + if (indent) + startcol = (startcol + extra_indent + 8) & ~7; + else + startcol++; + } else - { - if (indent) - startcol = (startcol + extra_indent + 8) & ~7; - } + { + if (indent) + startcol = (startcol + extra_indent + 8) & ~7; + } /* Allow room for the opening quote character. */ startcol++; /* Adjust for indentation of subsequent lines. */ startcol -= startcol_after_break; /* Do line breaking on the portion. */ - mbs_width_linebreaks (portion, portion_len, width, startcol, 0, - overrides, canon_charset, linebreaks); + ulc_width_linebreaks (portion, portion_len, width, startcol, 0, + overrides, canon_charset, linebreaks); /* If this is the first line, and we are not using the indented - style, and the line would wrap, then use an empty first line - and restart. */ + style, and the line would wrap, then use an empty first line + and restart. */ if (first_line && !indent - && portion_len > 0 - && (*es != '\0' - || startcol > width - || memchr (linebreaks, UC_BREAK_POSSIBLE, portion_len) != NULL)) - { - if (line_prefix != NULL) - ostream_write_str (stream, line_prefix); - begin_css_class (stream, css_class); - begin_css_class (stream, class_keyword); - ostream_write_str (stream, name); - end_css_class (stream, class_keyword); - ostream_write_str (stream, " "); - begin_css_class (stream, class_string); - ostream_write_str (stream, "\"\""); - end_css_class (stream, class_string); - end_css_class (stream, css_class); - ostream_write_str (stream, "\n"); - first_line = false; - /* Recompute startcol and linebreaks. */ - goto recompute; - } + && portion_len > 0 + && (*es != '\0' + || startcol > width + || memchr (linebreaks, UC_BREAK_POSSIBLE, portion_len) != NULL)) + { + if (line_prefix != NULL) + ostream_write_str (stream, line_prefix); + begin_css_class (stream, css_class); + begin_css_class (stream, class_keyword); + ostream_write_str (stream, name); + end_css_class (stream, class_keyword); + ostream_write_str (stream, " "); + begin_css_class (stream, class_string); + ostream_write_str (stream, "\"\""); + end_css_class (stream, class_string); + end_css_class (stream, css_class); + ostream_write_str (stream, "\n"); + first_line = false; + /* Recompute startcol and linebreaks. */ + goto recompute; + } /* Print the beginning of the line. This will depend on whether - this is the first line, and if the indented style is being - used. INDENT-F. */ + this is the first line, and if the indented style is being + used. INDENT-F. */ { - int currcol = 0; + int currcol = 0; - if (line_prefix != NULL) - { - ostream_write_str (stream, line_prefix); - currcol = strlen (line_prefix); - } - begin_css_class (stream, css_class); - if (first_line) - { - begin_css_class (stream, class_keyword); - ostream_write_str (stream, name); - currcol += strlen (name); - end_css_class (stream, class_keyword); - if (indent) - { - if (extra_indent > 0) - ostream_write_mem (stream, " ", extra_indent); - currcol += extra_indent; - ostream_write_mem (stream, " ", 8 - (currcol & 7)); - currcol = (currcol + 8) & ~7; - } - else - { - ostream_write_str (stream, " "); - currcol++; - } - first_line = false; - } - else - { - if (indent) - { - if (extra_indent > 0) - ostream_write_mem (stream, " ", extra_indent); - currcol += extra_indent; - ostream_write_mem (stream, " ", 8 - (currcol & 7)); - currcol = (currcol + 8) & ~7; - } - } + if (line_prefix != NULL) + { + ostream_write_str (stream, line_prefix); + currcol = strlen (line_prefix); + } + begin_css_class (stream, css_class); + if (first_line) + { + begin_css_class (stream, class_keyword); + ostream_write_str (stream, name); + currcol += strlen (name); + end_css_class (stream, class_keyword); + if (indent) + { + if (extra_indent > 0) + ostream_write_mem (stream, " ", extra_indent); + currcol += extra_indent; + ostream_write_mem (stream, " ", 8 - (currcol & 7)); + currcol = (currcol + 8) & ~7; + } + else + { + ostream_write_str (stream, " "); + currcol++; + } + first_line = false; + } + else + { + if (indent) + { + if (extra_indent > 0) + ostream_write_mem (stream, " ", extra_indent); + currcol += extra_indent; + ostream_write_mem (stream, " ", 8 - (currcol & 7)); + currcol = (currcol + 8) & ~7; + } + } } /* Print the portion itself, with linebreaks where necessary. */ { - char currattr = 0; + char currattr = 0; - begin_css_class (stream, class_string); - ostream_write_str (stream, "\""); - begin_css_class (stream, class_text); - - for (i = 0; i < portion_len; i++) - { - if (linebreaks[i] == UC_BREAK_POSSIBLE) - { - int currcol; - - /* Change currattr so that it becomes 0. */ - if (currattr & ATTR_ESCAPE_SEQUENCE) - { - end_css_class (stream, class_escape_sequence); - currattr &= ~ATTR_ESCAPE_SEQUENCE; - } - if (currattr & ATTR_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_format_directive); - currattr &= ~ATTR_FORMAT_DIRECTIVE; - } - else if (currattr & ATTR_INVALID_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_invalid_format_directive); - currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; - } - if (!(currattr == 0)) - abort (); - - end_css_class (stream, class_text); - ostream_write_str (stream, "\""); - end_css_class (stream, class_string); - end_css_class (stream, css_class); - ostream_write_str (stream, "\n"); - currcol = 0; - /* INDENT-S. */ - if (line_prefix != NULL) - { - ostream_write_str (stream, line_prefix); - currcol = strlen (line_prefix); - } - begin_css_class (stream, css_class); - if (indent) - { - ostream_write_mem (stream, " ", 8 - (currcol & 7)); - currcol = (currcol + 8) & ~7; - } - begin_css_class (stream, class_string); - ostream_write_str (stream, "\""); - begin_css_class (stream, class_text); - } - /* Change currattr so that it matches attributes[i]. */ - if (attributes[i] != currattr) - { - /* class_escape_sequence occurs inside class_format_directive - and class_invalid_format_directive, so clear it first. */ - if (currattr & ATTR_ESCAPE_SEQUENCE) - { - end_css_class (stream, class_escape_sequence); - currattr &= ~ATTR_ESCAPE_SEQUENCE; - } - if (~attributes[i] & currattr & ATTR_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_format_directive); - currattr &= ~ATTR_FORMAT_DIRECTIVE; - } - else if (~attributes[i] & currattr & ATTR_INVALID_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_invalid_format_directive); - currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; - } - if (attributes[i] & ~currattr & ATTR_FORMAT_DIRECTIVE) - { - begin_css_class (stream, class_format_directive); - currattr |= ATTR_FORMAT_DIRECTIVE; - } - else if (attributes[i] & ~currattr & ATTR_INVALID_FORMAT_DIRECTIVE) - { - begin_css_class (stream, class_invalid_format_directive); - currattr |= ATTR_INVALID_FORMAT_DIRECTIVE; - } - /* class_escape_sequence occurs inside class_format_directive - and class_invalid_format_directive, so set it last. */ - if (attributes[i] & ~currattr & ATTR_ESCAPE_SEQUENCE) - { - begin_css_class (stream, class_escape_sequence); - currattr |= ATTR_ESCAPE_SEQUENCE; - } - } - ostream_write_mem (stream, &portion[i], 1); - } - - /* Change currattr so that it becomes 0. */ - if (currattr & ATTR_ESCAPE_SEQUENCE) - { - end_css_class (stream, class_escape_sequence); - currattr &= ~ATTR_ESCAPE_SEQUENCE; - } - if (currattr & ATTR_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_format_directive); - currattr &= ~ATTR_FORMAT_DIRECTIVE; - } - else if (currattr & ATTR_INVALID_FORMAT_DIRECTIVE) - { - end_css_class (stream, class_invalid_format_directive); - currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; - } - if (!(currattr == 0)) - abort (); - - end_css_class (stream, class_text); - ostream_write_str (stream, "\""); - end_css_class (stream, class_string); - end_css_class (stream, css_class); - ostream_write_str (stream, "\n"); + begin_css_class (stream, class_string); + ostream_write_str (stream, "\""); + begin_css_class (stream, class_text); + + for (i = 0; i < portion_len; i++) + { + if (linebreaks[i] == UC_BREAK_POSSIBLE) + { + int currcol; + + /* Change currattr so that it becomes 0. */ + if (currattr & ATTR_ESCAPE_SEQUENCE) + { + end_css_class (stream, class_escape_sequence); + currattr &= ~ATTR_ESCAPE_SEQUENCE; + } + if (currattr & ATTR_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_format_directive); + currattr &= ~ATTR_FORMAT_DIRECTIVE; + } + else if (currattr & ATTR_INVALID_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_invalid_format_directive); + currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; + } + if (!(currattr == 0)) + abort (); + + end_css_class (stream, class_text); + ostream_write_str (stream, "\""); + end_css_class (stream, class_string); + end_css_class (stream, css_class); + ostream_write_str (stream, "\n"); + currcol = 0; + /* INDENT-S. */ + if (line_prefix != NULL) + { + ostream_write_str (stream, line_prefix); + currcol = strlen (line_prefix); + } + begin_css_class (stream, css_class); + if (indent) + { + ostream_write_mem (stream, " ", 8 - (currcol & 7)); + currcol = (currcol + 8) & ~7; + } + begin_css_class (stream, class_string); + ostream_write_str (stream, "\""); + begin_css_class (stream, class_text); + } + /* Change currattr so that it matches attributes[i]. */ + if (attributes[i] != currattr) + { + /* class_escape_sequence occurs inside class_format_directive + and class_invalid_format_directive, so clear it first. */ + if (currattr & ATTR_ESCAPE_SEQUENCE) + { + end_css_class (stream, class_escape_sequence); + currattr &= ~ATTR_ESCAPE_SEQUENCE; + } + if (~attributes[i] & currattr & ATTR_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_format_directive); + currattr &= ~ATTR_FORMAT_DIRECTIVE; + } + else if (~attributes[i] & currattr & ATTR_INVALID_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_invalid_format_directive); + currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; + } + if (attributes[i] & ~currattr & ATTR_FORMAT_DIRECTIVE) + { + begin_css_class (stream, class_format_directive); + currattr |= ATTR_FORMAT_DIRECTIVE; + } + else if (attributes[i] & ~currattr & ATTR_INVALID_FORMAT_DIRECTIVE) + { + begin_css_class (stream, class_invalid_format_directive); + currattr |= ATTR_INVALID_FORMAT_DIRECTIVE; + } + /* class_escape_sequence occurs inside class_format_directive + and class_invalid_format_directive, so set it last. */ + if (attributes[i] & ~currattr & ATTR_ESCAPE_SEQUENCE) + { + begin_css_class (stream, class_escape_sequence); + currattr |= ATTR_ESCAPE_SEQUENCE; + } + } + ostream_write_mem (stream, &portion[i], 1); + } + + /* Change currattr so that it becomes 0. */ + if (currattr & ATTR_ESCAPE_SEQUENCE) + { + end_css_class (stream, class_escape_sequence); + currattr &= ~ATTR_ESCAPE_SEQUENCE; + } + if (currattr & ATTR_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_format_directive); + currattr &= ~ATTR_FORMAT_DIRECTIVE; + } + else if (currattr & ATTR_INVALID_FORMAT_DIRECTIVE) + { + end_css_class (stream, class_invalid_format_directive); + currattr &= ~ATTR_INVALID_FORMAT_DIRECTIVE; + } + if (!(currattr == 0)) + abort (); + + end_css_class (stream, class_text); + ostream_write_str (stream, "\""); + end_css_class (stream, class_string); + end_css_class (stream, css_class); + ostream_write_str (stream, "\n"); } free (linebreaks); @@ -1118,6 +1157,8 @@ } while (*s); + if (fmtdirattr != NULL) + free (fmtdirattr); if (fmtdir != NULL) free (fmtdir); @@ -1144,17 +1185,17 @@ static void message_print (const message_ty *mp, ostream_t stream, - const char *charset, size_t page_width, bool blank_line, - bool debug) + const char *charset, size_t page_width, bool blank_line, + bool debug) { int extra_indent; /* Separate messages with a blank line. Uniforum doesn't like blank lines, so use an empty comment (unless there already is one). */ if (blank_line && (!uniforum - || mp->comment == NULL - || mp->comment->nitems == 0 - || mp->comment->item[0][0] != '\0')) + || mp->comment == NULL + || mp->comment->nitems == 0 + || mp->comment->item[0][0] != '\0')) print_blank_line (stream); if (is_header (mp)) @@ -1187,18 +1228,18 @@ begin_css_class (stream, class_previous_comment); if (mp->prev_msgctxt != NULL) wrap (mp, stream, "#| ", 0, class_previous, "msgctxt", mp->prev_msgctxt, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->prev_msgid != NULL) wrap (mp, stream, "#| ", 0, class_previous, "msgid", mp->prev_msgid, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->prev_msgid_plural != NULL) wrap (mp, stream, "#| ", 0, class_previous, "msgid_plural", - mp->prev_msgid_plural, mp->do_wrap, page_width, charset); + mp->prev_msgid_plural, mp->do_wrap, page_width, charset); end_css_class (stream, class_previous_comment); extra_indent = (mp->prev_msgctxt != NULL || mp->prev_msgid != NULL - || mp->prev_msgid_plural != NULL - ? 3 - : 0); + || mp->prev_msgid_plural != NULL + ? 3 + : 0); end_css_class (stream, class_comment); @@ -1209,7 +1250,7 @@ && po_charset_canonicalize (charset) != po_charset_utf8) { char *warning_message = - xasprintf (_("\ + xasprintf (_("\ The following msgctxt contains non-ASCII characters.\n\ This will cause problems to translators who use a character encoding\n\ different from yours. Consider using a pure ASCII msgctxt instead.\n\ @@ -1221,7 +1262,7 @@ && po_charset_canonicalize (charset) != po_charset_utf8) { char *warning_message = - xasprintf (_("\ + xasprintf (_("\ The following msgid contains non-ASCII characters.\n\ This will cause problems to translators who use a character encoding\n\ different from yours. Consider using a pure ASCII msgid instead.\n\ @@ -1231,16 +1272,16 @@ } if (mp->msgctxt != NULL) wrap (mp, stream, NULL, extra_indent, class_msgid, "msgctxt", mp->msgctxt, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); wrap (mp, stream, NULL, extra_indent, class_msgid, "msgid", mp->msgid, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->msgid_plural != NULL) wrap (mp, stream, NULL, extra_indent, class_msgid, "msgid_plural", - mp->msgid_plural, mp->do_wrap, page_width, charset); + mp->msgid_plural, mp->do_wrap, page_width, charset); if (mp->msgid_plural == NULL) wrap (mp, stream, NULL, extra_indent, class_msgstr, "msgstr", mp->msgstr, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); else { char prefix_buf[20]; @@ -1248,13 +1289,13 @@ const char *p; for (p = mp->msgstr, i = 0; - p < mp->msgstr + mp->msgstr_len; - p += strlen (p) + 1, i++) - { - sprintf (prefix_buf, "msgstr[%u]", i); - wrap (mp, stream, NULL, extra_indent, class_msgstr, prefix_buf, p, - mp->do_wrap, page_width, charset); - } + p < mp->msgstr + mp->msgstr_len; + p += strlen (p) + 1, i++) + { + sprintf (prefix_buf, "msgstr[%u]", i); + wrap (mp, stream, NULL, extra_indent, class_msgstr, prefix_buf, p, + mp->do_wrap, page_width, charset); + } } if (is_header (mp)) @@ -1270,7 +1311,7 @@ static void message_print_obsolete (const message_ty *mp, ostream_t stream, - const char *charset, size_t page_width, bool blank_line) + const char *charset, size_t page_width, bool blank_line) { int extra_indent; @@ -1304,10 +1345,10 @@ ostream_write_str (stream, "#,"); if (mp->is_fuzzy) - { - ostream_write_str (stream, " fuzzy"); - first = false; - } + { + ostream_write_str (stream, " fuzzy"); + first = false; + } ostream_write_str (stream, "\n"); } @@ -1317,18 +1358,18 @@ begin_css_class (stream, class_previous_comment); if (mp->prev_msgctxt != NULL) wrap (mp, stream, "#~| ", 0, class_previous, "msgctxt", mp->prev_msgctxt, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->prev_msgid != NULL) wrap (mp, stream, "#~| ", 0, class_previous, "msgid", mp->prev_msgid, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->prev_msgid_plural != NULL) wrap (mp, stream, "#~| ", 0, class_previous, "msgid_plural", - mp->prev_msgid_plural, mp->do_wrap, page_width, charset); + mp->prev_msgid_plural, mp->do_wrap, page_width, charset); end_css_class (stream, class_previous_comment); extra_indent = (mp->prev_msgctxt != NULL || mp->prev_msgid != NULL - || mp->prev_msgid_plural != NULL - ? 1 - : 0); + || mp->prev_msgid_plural != NULL + ? 1 + : 0); end_css_class (stream, class_comment); @@ -1338,7 +1379,7 @@ && po_charset_canonicalize (charset) != po_charset_utf8) { char *warning_message = - xasprintf (_("\ + xasprintf (_("\ The following msgctxt contains non-ASCII characters.\n\ This will cause problems to translators who use a character encoding\n\ different from yours. Consider using a pure ASCII msgctxt instead.\n\ @@ -1350,7 +1391,7 @@ && po_charset_canonicalize (charset) != po_charset_utf8) { char *warning_message = - xasprintf (_("\ + xasprintf (_("\ The following msgid contains non-ASCII characters.\n\ This will cause problems to translators who use a character encoding\n\ different from yours. Consider using a pure ASCII msgid instead.\n\ @@ -1360,16 +1401,16 @@ } if (mp->msgctxt != NULL) wrap (mp, stream, "#~ ", extra_indent, class_msgid, "msgctxt", mp->msgctxt, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); wrap (mp, stream, "#~ ", extra_indent, class_msgid, "msgid", mp->msgid, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); if (mp->msgid_plural != NULL) wrap (mp, stream, "#~ ", extra_indent, class_msgid, "msgid_plural", - mp->msgid_plural, mp->do_wrap, page_width, charset); + mp->msgid_plural, mp->do_wrap, page_width, charset); if (mp->msgid_plural == NULL) wrap (mp, stream, "#~ ", extra_indent, class_msgstr, "msgstr", mp->msgstr, - mp->do_wrap, page_width, charset); + mp->do_wrap, page_width, charset); else { char prefix_buf[20]; @@ -1377,13 +1418,13 @@ const char *p; for (p = mp->msgstr, i = 0; - p < mp->msgstr + mp->msgstr_len; - p += strlen (p) + 1, i++) - { - sprintf (prefix_buf, "msgstr[%u]", i); - wrap (mp, stream, "#~ ", extra_indent, class_msgstr, prefix_buf, p, - mp->do_wrap, page_width, charset); - } + p < mp->msgstr + mp->msgstr_len; + p += strlen (p) + 1, i++) + { + sprintf (prefix_buf, "msgstr[%u]", i); + wrap (mp, stream, "#~ ", extra_indent, class_msgstr, prefix_buf, p, + mp->do_wrap, page_width, charset); + } } end_css_class (stream, class_obsolete); @@ -1392,7 +1433,7 @@ static void msgdomain_list_print_po (msgdomain_list_ty *mdlp, ostream_t stream, - size_t page_width, bool debug) + size_t page_width, bool debug) { size_t j, k; bool blank_line; @@ -1407,82 +1448,82 @@ char *allocated_charset; /* If the first domain is the default, don't bother emitting - the domain name, because it is the default. */ + the domain name, because it is the default. */ if (!(k == 0 - && strcmp (mdlp->item[k]->domain, MESSAGE_DOMAIN_DEFAULT) == 0)) - { - if (blank_line) - print_blank_line (stream); - begin_css_class (stream, class_keyword); - ostream_write_str (stream, "domain"); - end_css_class (stream, class_keyword); - ostream_write_str (stream, " "); - begin_css_class (stream, class_string); - ostream_write_str (stream, "\""); - begin_css_class (stream, class_text); - ostream_write_str (stream, mdlp->item[k]->domain); - end_css_class (stream, class_text); - ostream_write_str (stream, "\""); - end_css_class (stream, class_string); - ostream_write_str (stream, "\n"); - blank_line = true; - } + && strcmp (mdlp->item[k]->domain, MESSAGE_DOMAIN_DEFAULT) == 0)) + { + if (blank_line) + print_blank_line (stream); + begin_css_class (stream, class_keyword); + ostream_write_str (stream, "domain"); + end_css_class (stream, class_keyword); + ostream_write_str (stream, " "); + begin_css_class (stream, class_string); + ostream_write_str (stream, "\""); + begin_css_class (stream, class_text); + ostream_write_str (stream, mdlp->item[k]->domain); + end_css_class (stream, class_text); + ostream_write_str (stream, "\""); + end_css_class (stream, class_string); + ostream_write_str (stream, "\n"); + blank_line = true; + } mlp = mdlp->item[k]->messages; /* Search the header entry. */ header = NULL; for (j = 0; j < mlp->nitems; ++j) - if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) - { - header = mlp->item[j]->msgstr; - break; - } + if (is_header (mlp->item[j]) && !mlp->item[j]->obsolete) + { + header = mlp->item[j]->msgstr; + break; + } /* Extract the charset name. */ charset = "ASCII"; allocated_charset = NULL; if (header != NULL) - { - const char *charsetstr = c_strstr (header, "charset="); + { + const char *charsetstr = c_strstr (header, "charset="); - if (charsetstr != NULL) - { - size_t len; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - allocated_charset = (char *) xmalloca (len + 1); - memcpy (allocated_charset, charsetstr, len); - allocated_charset[len] = '\0'; - charset = allocated_charset; - - /* Treat the dummy default value as if it were absent. */ - if (strcmp (charset, "CHARSET") == 0) - charset = "ASCII"; - } - } + if (charsetstr != NULL) + { + size_t len; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + allocated_charset = (char *) xmalloca (len + 1); + memcpy (allocated_charset, charsetstr, len); + allocated_charset[len] = '\0'; + charset = allocated_charset; + + /* Treat the dummy default value as if it were absent. */ + if (strcmp (charset, "CHARSET") == 0) + charset = "ASCII"; + } + } /* Write out each of the messages for this domain. */ for (j = 0; j < mlp->nitems; ++j) - if (!mlp->item[j]->obsolete) - { - message_print (mlp->item[j], stream, charset, page_width, - blank_line, debug); - blank_line = true; - } + if (!mlp->item[j]->obsolete) + { + message_print (mlp->item[j], stream, charset, page_width, + blank_line, debug); + blank_line = true; + } /* Write out each of the obsolete messages for this domain. */ for (j = 0; j < mlp->nitems; ++j) - if (mlp->item[j]->obsolete) - { - message_print_obsolete (mlp->item[j], stream, charset, page_width, - blank_line); - blank_line = true; - } + if (mlp->item[j]->obsolete) + { + message_print_obsolete (mlp->item[j], stream, charset, page_width, + blank_line); + blank_line = true; + } if (allocated_charset != NULL) - freea (allocated_charset); + freea (allocated_charset); } } @@ -1490,13 +1531,13 @@ /* Describes a PO file in .po syntax. */ const struct catalog_output_format output_format_po = { - msgdomain_list_print_po, /* print */ - false, /* requires_utf8 */ - true, /* supports_color */ - true, /* supports_multiple_domains */ - true, /* supports_contexts */ - true, /* supports_plurals */ - true, /* sorts_obsoletes_to_end */ - false, /* alternative_is_po */ - false /* alternative_is_java_class */ + msgdomain_list_print_po, /* print */ + false, /* requires_utf8 */ + true, /* supports_color */ + true, /* supports_multiple_domains */ + true, /* supports_contexts */ + true, /* supports_plurals */ + true, /* sorts_obsoletes_to_end */ + false, /* alternative_is_po */ + false /* alternative_is_java_class */ }; diff -Nru gettext-0.17/gettext-tools/src/write-po.h gettext-0.18.1.1/gettext-tools/src/write-po.h --- gettext-0.17/gettext-tools/src/write-po.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-po.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1998, 2000-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2006, 2008 Free Software Foundation, Inc. This file was written by Peter Miller @@ -33,10 +33,12 @@ /* These functions are used to output a #, flags line. */ extern const char * make_format_description_string (enum is_format is_format, - const char *lang, bool debug); + const char *lang, bool debug); extern bool significant_format_p (enum is_format is_format); +extern char * + make_range_description_string (struct argument_range range); /* These functions output parts of a message, as comments. */ extern void @@ -45,10 +47,10 @@ message_print_comment_dot (const message_ty *mp, ostream_t stream); extern void message_print_comment_filepos (const message_ty *mp, ostream_t stream, - bool uniforum, size_t page_width); + bool uniforum, size_t page_width); extern void message_print_comment_flags (const message_ty *mp, ostream_t stream, - bool debug); + bool debug); /* These functions set some parameters for use by 'output_format_po.print'. */ extern void diff -Nru gettext-0.17/gettext-tools/src/write-properties.c gettext-0.18.1.1/gettext-tools/src/write-properties.c --- gettext-0.17/gettext-tools/src/write-properties.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-properties.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing Java .properties files. - Copyright (C) 2003, 2005-2008 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -70,9 +70,9 @@ while (str < str_limit) { - unsigned int uc; - str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); - length += (uc <= 0x007f ? 1 : uc < 0x10000 ? 6 : 12); + ucs4_t uc; + str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); + length += (uc <= 0x007f ? 1 : uc < 0x10000 ? 6 : 12); } } @@ -85,36 +85,36 @@ while (str < str_limit) { - unsigned int uc; - str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); - if (uc <= 0x007f) - /* ASCII characters can be output literally. - We could treat non-ASCII ISO-8859-1 characters (0x0080..0x00FF) - the same way, but there is no point in doing this; Sun's - nativetoascii doesn't do it either. */ - *newstr++ = uc; - else if (uc < 0x10000) - { - /* Single UCS-2 'char' */ - sprintf (newstr, "\\u%c%c%c%c", - hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], - hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); - newstr += 6; - } - else - { - /* UTF-16 surrogate: two 'char's. */ - unsigned int uc1 = 0xd800 + ((uc - 0x10000) >> 10); - unsigned int uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); - sprintf (newstr, "\\u%c%c%c%c", - hexdigit[(uc1 >> 12) & 0x0f], hexdigit[(uc1 >> 8) & 0x0f], - hexdigit[(uc1 >> 4) & 0x0f], hexdigit[uc1 & 0x0f]); - newstr += 6; - sprintf (newstr, "\\u%c%c%c%c", - hexdigit[(uc2 >> 12) & 0x0f], hexdigit[(uc2 >> 8) & 0x0f], - hexdigit[(uc2 >> 4) & 0x0f], hexdigit[uc2 & 0x0f]); - newstr += 6; - } + ucs4_t uc; + str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); + if (uc <= 0x007f) + /* ASCII characters can be output literally. + We could treat non-ASCII ISO-8859-1 characters (0x0080..0x00FF) + the same way, but there is no point in doing this; Sun's + nativetoascii doesn't do it either. */ + *newstr++ = uc; + else if (uc < 0x10000) + { + /* Single UCS-2 'char' */ + sprintf (newstr, "\\u%c%c%c%c", + hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], + hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); + newstr += 6; + } + else + { + /* UTF-16 surrogate: two 'char's. */ + ucs4_t uc1 = 0xd800 + ((uc - 0x10000) >> 10); + ucs4_t uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); + sprintf (newstr, "\\u%c%c%c%c", + hexdigit[(uc1 >> 12) & 0x0f], hexdigit[(uc1 >> 8) & 0x0f], + hexdigit[(uc1 >> 4) & 0x0f], hexdigit[uc1 & 0x0f]); + newstr += 6; + sprintf (newstr, "\\u%c%c%c%c", + hexdigit[(uc2 >> 12) & 0x0f], hexdigit[(uc2 >> 8) & 0x0f], + hexdigit[(uc2 >> 4) & 0x0f], hexdigit[uc2 & 0x0f]); + newstr += 6; + } } *newstr = '\0'; } @@ -132,74 +132,74 @@ while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); /* Whitespace must be escaped. */ if (uc == 0x0020 && (first || in_key)) - ostream_write_str (stream, "\\ "); + ostream_write_str (stream, "\\ "); else if (uc == 0x0009) - ostream_write_str (stream, "\\t"); + ostream_write_str (stream, "\\t"); else if (uc == 0x000a) - ostream_write_str (stream, "\\n"); + ostream_write_str (stream, "\\n"); else if (uc == 0x000d) - ostream_write_str (stream, "\\r"); + ostream_write_str (stream, "\\r"); else if (uc == 0x000c) - ostream_write_str (stream, "\\f"); + ostream_write_str (stream, "\\f"); else if (/* Backslash must be escaped. */ - uc == '\\' - /* Possible comment introducers must be escaped. */ - || uc == '#' || uc == '!' - /* Key terminators must be escaped. */ - || uc == '=' || uc == ':') - { - char seq[2]; - seq[0] = '\\'; - seq[1] = uc; - ostream_write_mem (stream, seq, 2); - } + uc == '\\' + /* Possible comment introducers must be escaped. */ + || uc == '#' || uc == '!' + /* Key terminators must be escaped. */ + || uc == '=' || uc == ':') + { + char seq[2]; + seq[0] = '\\'; + seq[1] = uc; + ostream_write_mem (stream, seq, 2); + } else if (uc >= 0x0020 && uc <= 0x007e) - { - /* ASCII characters can be output literally. - We could treat non-ASCII ISO-8859-1 characters (0x0080..0x00FF) - the same way, but there is no point in doing this; Sun's - nativetoascii doesn't do it either. */ - char seq[1]; - seq[0] = uc; - ostream_write_mem (stream, seq, 1); - } + { + /* ASCII characters can be output literally. + We could treat non-ASCII ISO-8859-1 characters (0x0080..0x00FF) + the same way, but there is no point in doing this; Sun's + nativetoascii doesn't do it either. */ + char seq[1]; + seq[0] = uc; + ostream_write_mem (stream, seq, 1); + } else if (uc < 0x10000) - { - /* Single UCS-2 'char' */ - char seq[6]; - seq[0] = '\\'; - seq[1] = 'u'; - seq[2] = hexdigit[(uc >> 12) & 0x0f]; - seq[3] = hexdigit[(uc >> 8) & 0x0f]; - seq[4] = hexdigit[(uc >> 4) & 0x0f]; - seq[5] = hexdigit[uc & 0x0f]; - ostream_write_mem (stream, seq, 6); - } + { + /* Single UCS-2 'char' */ + char seq[6]; + seq[0] = '\\'; + seq[1] = 'u'; + seq[2] = hexdigit[(uc >> 12) & 0x0f]; + seq[3] = hexdigit[(uc >> 8) & 0x0f]; + seq[4] = hexdigit[(uc >> 4) & 0x0f]; + seq[5] = hexdigit[uc & 0x0f]; + ostream_write_mem (stream, seq, 6); + } else - { - /* UTF-16 surrogate: two 'char's. */ - unsigned int uc1 = 0xd800 + ((uc - 0x10000) >> 10); - unsigned int uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); - char seq[6]; - seq[0] = '\\'; - seq[1] = 'u'; - seq[2] = hexdigit[(uc1 >> 12) & 0x0f]; - seq[3] = hexdigit[(uc1 >> 8) & 0x0f]; - seq[4] = hexdigit[(uc1 >> 4) & 0x0f]; - seq[5] = hexdigit[uc1 & 0x0f]; - ostream_write_mem (stream, seq, 6); - seq[0] = '\\'; - seq[1] = 'u'; - seq[2] = hexdigit[(uc2 >> 12) & 0x0f]; - seq[3] = hexdigit[(uc2 >> 8) & 0x0f]; - seq[4] = hexdigit[(uc2 >> 4) & 0x0f]; - seq[5] = hexdigit[uc2 & 0x0f]; - ostream_write_mem (stream, seq, 6); - } + { + /* UTF-16 surrogate: two 'char's. */ + ucs4_t uc1 = 0xd800 + ((uc - 0x10000) >> 10); + ucs4_t uc2 = 0xdc00 + ((uc - 0x10000) & 0x3ff); + char seq[6]; + seq[0] = '\\'; + seq[1] = 'u'; + seq[2] = hexdigit[(uc1 >> 12) & 0x0f]; + seq[3] = hexdigit[(uc1 >> 8) & 0x0f]; + seq[4] = hexdigit[(uc1 >> 4) & 0x0f]; + seq[5] = hexdigit[uc1 & 0x0f]; + ostream_write_mem (stream, seq, 6); + seq[0] = '\\'; + seq[1] = 'u'; + seq[2] = hexdigit[(uc2 >> 12) & 0x0f]; + seq[3] = hexdigit[(uc2 >> 8) & 0x0f]; + seq[4] = hexdigit[(uc2 >> 4) & 0x0f]; + seq[5] = hexdigit[uc2 & 0x0f]; + ostream_write_mem (stream, seq, 6); + } first = false; } } @@ -207,7 +207,7 @@ /* Writes a message to the stream. */ static void write_message (ostream_t stream, const message_ty *mp, - size_t page_width, bool debug) + size_t page_width, bool debug) { /* Print translator comment if available. */ message_print_comment (mp, stream); @@ -239,7 +239,7 @@ /* Writes an entire message list to the stream. */ static void write_properties (ostream_t stream, message_list_ty *mlp, - const char *canon_encoding, size_t page_width, bool debug) + const char *canon_encoding, size_t page_width, bool debug) { bool blank_line; size_t j, i; @@ -251,11 +251,11 @@ message_ty *mp = mlp->item[j]; if (mp->comment != NULL) - for (i = 0; i < mp->comment->nitems; ++i) - mp->comment->item[i] = conv_to_java (mp->comment->item[i]); + for (i = 0; i < mp->comment->nitems; ++i) + mp->comment->item[i] = conv_to_java (mp->comment->item[i]); if (mp->comment_dot != NULL) - for (i = 0; i < mp->comment_dot->nitems; ++i) - mp->comment_dot->item[i] = conv_to_java (mp->comment_dot->item[i]); + for (i = 0; i < mp->comment_dot->nitems; ++i) + mp->comment_dot->item[i] = conv_to_java (mp->comment_dot->item[i]); } /* Loop through the messages. */ @@ -265,21 +265,21 @@ const message_ty *mp = mlp->item[j]; if (mp->msgid_plural == NULL && !mp->obsolete) - { - if (blank_line) - ostream_write_str (stream, "\n"); + { + if (blank_line) + ostream_write_str (stream, "\n"); - write_message (stream, mp, page_width, debug); + write_message (stream, mp, page_width, debug); - blank_line = true; - } + blank_line = true; + } } } /* Output the contents of a PO file in Java .properties syntax. */ static void msgdomain_list_print_properties (msgdomain_list_ty *mdlp, ostream_t stream, - size_t page_width, bool debug) + size_t page_width, bool debug) { message_list_ty *mlp; @@ -293,13 +293,13 @@ /* Describes a PO file in Java .properties syntax. */ const struct catalog_output_format output_format_properties = { - msgdomain_list_print_properties, /* print */ - true, /* requires_utf8 */ - false, /* supports_color */ - false, /* supports_multiple_domains */ - false, /* supports_contexts */ - false, /* supports_plurals */ - false, /* sorts_obsoletes_to_end */ - true, /* alternative_is_po */ - true /* alternative_is_java_class */ + msgdomain_list_print_properties, /* print */ + true, /* requires_utf8 */ + false, /* supports_color */ + false, /* supports_multiple_domains */ + false, /* supports_contexts */ + false, /* supports_plurals */ + false, /* sorts_obsoletes_to_end */ + true, /* alternative_is_po */ + true /* alternative_is_java_class */ }; diff -Nru gettext-0.17/gettext-tools/src/write-qt.c gettext-0.18.1.1/gettext-tools/src/write-qt.c --- gettext-0.17/gettext-tools/src/write-qt.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-qt.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing Qt .qm files. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -266,7 +266,7 @@ /* Add an UTF-16 encoded string to an obstack. */ static void append_unicode_string (struct obstack *mempool, const unsigned short *string, - size_t length) + size_t length) { append_u32 (mempool, length * 2); for (; length > 0; string++, length--) @@ -293,11 +293,11 @@ while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); /* It has already been verified that the string fits in ISO-8859-1. */ if (!(uc < 0x100)) - abort (); + abort (); /* Store as ISO-8859-1. */ *q++ = (unsigned char) uc; } @@ -321,17 +321,17 @@ while (str < str_limit) { - unsigned int uc; + ucs4_t uc; str += u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) - /* UCS-2 character. */ - *q++ = (unsigned short) uc; + /* UCS-2 character. */ + *q++ = (unsigned short) uc; else - { - /* UTF-16 surrogate. */ - *q++ = 0xd800 + ((uc - 0x10000) >> 10); - *q++ = 0xdc00 + ((uc - 0x10000) & 0x3ff); - } + { + /* UTF-16 surrogate. */ + *q++ = 0xd800 + ((uc - 0x10000) >> 10); + *q++ = 0xdc00 + ((uc - 0x10000) & 0x3ff); + } } assert (q - result <= 2 * length); @@ -368,9 +368,9 @@ unsigned int b_offset = peek_u32 (b + 4); if (a_offset != b_offset) - return (a_offset >= b_offset ? 1 : -1); + return (a_offset >= b_offset ? 1 : -1); else - return 0; + return 0; } } @@ -412,43 +412,43 @@ /* No need to emit the header entry, it's not needed at runtime. */ if (!is_header (mp)) - { - char *msgctxt_as_iso_8859_1 = - conv_to_iso_8859_1 (mp->msgctxt != NULL ? mp->msgctxt : ""); - char *msgid_as_iso_8859_1 = conv_to_iso_8859_1 (mp->msgid); - size_t msgstr_len; - unsigned short *msgstr_as_utf16 = - conv_to_utf16 (mp->msgstr, &msgstr_len); - unsigned int hashcode = string_hashcode (msgid_as_iso_8859_1); - unsigned int offset = obstack_object_size (&messages_pool); - - /* Add a record to the hashes section. */ - append_u32 (&hashes_pool, hashcode); - append_u32 (&hashes_pool, offset); - - /* Add a record to the messages section. */ - - append_u8 (&messages_pool, 0x03); - append_unicode_string (&messages_pool, msgstr_as_utf16, msgstr_len); - - append_u8 (&messages_pool, 0x08); - append_base_string (&messages_pool, ""); - - append_u8 (&messages_pool, 0x06); - append_base_string (&messages_pool, msgid_as_iso_8859_1); - - append_u8 (&messages_pool, 0x07); - append_base_string (&messages_pool, msgctxt_as_iso_8859_1); - - append_u8 (&messages_pool, 0x05); - append_u32 (&messages_pool, hashcode); - - append_u8 (&messages_pool, 0x01); - - free (msgstr_as_utf16); - free (msgid_as_iso_8859_1); - free (msgctxt_as_iso_8859_1); - } + { + char *msgctxt_as_iso_8859_1 = + conv_to_iso_8859_1 (mp->msgctxt != NULL ? mp->msgctxt : ""); + char *msgid_as_iso_8859_1 = conv_to_iso_8859_1 (mp->msgid); + size_t msgstr_len; + unsigned short *msgstr_as_utf16 = + conv_to_utf16 (mp->msgstr, &msgstr_len); + unsigned int hashcode = string_hashcode (msgid_as_iso_8859_1); + unsigned int offset = obstack_object_size (&messages_pool); + + /* Add a record to the hashes section. */ + append_u32 (&hashes_pool, hashcode); + append_u32 (&hashes_pool, offset); + + /* Add a record to the messages section. */ + + append_u8 (&messages_pool, 0x03); + append_unicode_string (&messages_pool, msgstr_as_utf16, msgstr_len); + + append_u8 (&messages_pool, 0x08); + append_base_string (&messages_pool, ""); + + append_u8 (&messages_pool, 0x06); + append_base_string (&messages_pool, msgid_as_iso_8859_1); + + append_u8 (&messages_pool, 0x07); + append_base_string (&messages_pool, msgctxt_as_iso_8859_1); + + append_u8 (&messages_pool, 0x05); + append_u32 (&messages_pool, hashcode); + + append_u8 (&messages_pool, 0x01); + + free (msgstr_as_utf16); + free (msgid_as_iso_8859_1); + free (msgctxt_as_iso_8859_1); + } } /* Sort the hashes section. */ @@ -463,11 +463,11 @@ /* Write the hashes section. */ write_section (output_file, 0x42, obstack_base (&hashes_pool), - obstack_object_size (&hashes_pool)); + obstack_object_size (&hashes_pool)); /* Write the messages section. */ write_section (output_file, 0x69, obstack_base (&messages_pool), - obstack_object_size (&messages_pool)); + obstack_object_size (&messages_pool)); /* Decide whether to write a contexts section. */ { @@ -475,166 +475,166 @@ for (j = 0; j < mlp->nitems; j++) { - message_ty *mp = mlp->item[j]; + message_ty *mp = mlp->item[j]; - if (!is_header (mp)) - if (mp->msgctxt == NULL || mp->msgctxt[0] == '\0' - || strlen (mp->msgctxt) > 255) - { - can_write_contexts = false; - break; - } + if (!is_header (mp)) + if (mp->msgctxt == NULL || mp->msgctxt[0] == '\0' + || strlen (mp->msgctxt) > 255) + { + can_write_contexts = false; + break; + } } if (can_write_contexts) { - hash_table all_contexts; - size_t num_contexts; - unsigned long table_size; - - /* Collect the contexts, removing duplicates. */ - hash_init (&all_contexts, 10); - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - - if (!is_header (mp)) - hash_insert_entry (&all_contexts, - mp->msgctxt, strlen (mp->msgctxt) + 1, - NULL); - } - - /* Compute the number of different contexts. */ - num_contexts = all_contexts.size; - - /* Compute a suitable hash table size. */ - table_size = next_prime (num_contexts * 1.7); - if (table_size >= 0x10000) - table_size = 65521; - - /* Put the contexts into a hash table of size table_size. */ - { - struct list_cell { const char *context; struct list_cell *next; }; - struct list_cell *list_memory = - XNMALLOC (table_size, struct list_cell); - struct list_cell *freelist; - struct bucket { struct list_cell *head; struct list_cell **tail; }; - struct bucket *buckets = XNMALLOC (table_size, struct bucket); - size_t i; - - freelist = list_memory; - - for (i = 0; i < table_size; i++) - { - buckets[i].head = NULL; - buckets[i].tail = &buckets[i].head; - } - - { - void *iter; - const void *key; - size_t keylen; - void *null; - - iter = NULL; - while (hash_iterate (&all_contexts, &iter, &key, &keylen, &null) - == 0) - { - const char *context = (const char *)key; - i = string_hashcode (context) % table_size; - freelist->context = context; - freelist->next = NULL; - *buckets[i].tail = freelist; - buckets[i].tail = &freelist->next; - freelist++; - } - } - - /* Determine the total context pool size. */ - { - size_t pool_size; - - pool_size = 2; - for (i = 0; i < table_size; i++) - if (buckets[i].head != NULL) - { - const struct list_cell *p; - - for (p = buckets[i].head; p != NULL; p = p->next) - pool_size += 1 + strlen (p->context); - pool_size++; - if ((pool_size % 2) != 0) - pool_size++; - } - if (pool_size <= 0x20000) - { - /* Prepare the contexts section. */ - struct obstack contexts_pool; - size_t pool_offset; - - obstack_init (&contexts_pool); - - append_u16 (&contexts_pool, table_size); - pool_offset = 2; - for (i = 0; i < table_size; i++) - if (buckets[i].head != NULL) - { - const struct list_cell *p; - - append_u16 (&contexts_pool, pool_offset / 2); - for (p = buckets[i].head; p != NULL; p = p->next) - pool_offset += 1 + strlen (p->context); - pool_offset++; - if ((pool_offset % 2) != 0) - pool_offset++; - } - else - append_u16 (&contexts_pool, 0); - if (!(pool_offset == pool_size)) - abort (); - - append_u16 (&contexts_pool, 0); - pool_offset = 2; - for (i = 0; i < table_size; i++) - if (buckets[i].head != NULL) - { - const struct list_cell *p; - - for (p = buckets[i].head; p != NULL; p = p->next) - { - append_u8 (&contexts_pool, strlen (p->context)); - obstack_grow (&contexts_pool, - p->context, strlen (p->context)); - pool_offset += 1 + strlen (p->context); - } - append_u8 (&contexts_pool, 0); - pool_offset++; - if ((pool_offset % 2) != 0) - { - append_u8 (&contexts_pool, 0); - pool_offset++; - } - } - if (!(pool_offset == pool_size)) - abort (); - - if (!(obstack_object_size (&contexts_pool) - == 2 + 2 * table_size + pool_size)) - abort (); - - /* Write the contexts section. */ - write_section (output_file, 0x2f, obstack_base (&contexts_pool), - obstack_object_size (&contexts_pool)); - - obstack_free (&contexts_pool, NULL); - } - } - - free (buckets); - free (list_memory); - } + hash_table all_contexts; + size_t num_contexts; + unsigned long table_size; + + /* Collect the contexts, removing duplicates. */ + hash_init (&all_contexts, 10); + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + + if (!is_header (mp)) + hash_insert_entry (&all_contexts, + mp->msgctxt, strlen (mp->msgctxt) + 1, + NULL); + } + + /* Compute the number of different contexts. */ + num_contexts = all_contexts.size; + + /* Compute a suitable hash table size. */ + table_size = next_prime (num_contexts * 1.7); + if (table_size >= 0x10000) + table_size = 65521; + + /* Put the contexts into a hash table of size table_size. */ + { + struct list_cell { const char *context; struct list_cell *next; }; + struct list_cell *list_memory = + XNMALLOC (table_size, struct list_cell); + struct list_cell *freelist; + struct bucket { struct list_cell *head; struct list_cell **tail; }; + struct bucket *buckets = XNMALLOC (table_size, struct bucket); + size_t i; + + freelist = list_memory; + + for (i = 0; i < table_size; i++) + { + buckets[i].head = NULL; + buckets[i].tail = &buckets[i].head; + } + + { + void *iter; + const void *key; + size_t keylen; + void *null; + + iter = NULL; + while (hash_iterate (&all_contexts, &iter, &key, &keylen, &null) + == 0) + { + const char *context = (const char *)key; + i = string_hashcode (context) % table_size; + freelist->context = context; + freelist->next = NULL; + *buckets[i].tail = freelist; + buckets[i].tail = &freelist->next; + freelist++; + } + } + + /* Determine the total context pool size. */ + { + size_t pool_size; + + pool_size = 2; + for (i = 0; i < table_size; i++) + if (buckets[i].head != NULL) + { + const struct list_cell *p; + + for (p = buckets[i].head; p != NULL; p = p->next) + pool_size += 1 + strlen (p->context); + pool_size++; + if ((pool_size % 2) != 0) + pool_size++; + } + if (pool_size <= 0x20000) + { + /* Prepare the contexts section. */ + struct obstack contexts_pool; + size_t pool_offset; + + obstack_init (&contexts_pool); + + append_u16 (&contexts_pool, table_size); + pool_offset = 2; + for (i = 0; i < table_size; i++) + if (buckets[i].head != NULL) + { + const struct list_cell *p; + + append_u16 (&contexts_pool, pool_offset / 2); + for (p = buckets[i].head; p != NULL; p = p->next) + pool_offset += 1 + strlen (p->context); + pool_offset++; + if ((pool_offset % 2) != 0) + pool_offset++; + } + else + append_u16 (&contexts_pool, 0); + if (!(pool_offset == pool_size)) + abort (); + + append_u16 (&contexts_pool, 0); + pool_offset = 2; + for (i = 0; i < table_size; i++) + if (buckets[i].head != NULL) + { + const struct list_cell *p; + + for (p = buckets[i].head; p != NULL; p = p->next) + { + append_u8 (&contexts_pool, strlen (p->context)); + obstack_grow (&contexts_pool, + p->context, strlen (p->context)); + pool_offset += 1 + strlen (p->context); + } + append_u8 (&contexts_pool, 0); + pool_offset++; + if ((pool_offset % 2) != 0) + { + append_u8 (&contexts_pool, 0); + pool_offset++; + } + } + if (!(pool_offset == pool_size)) + abort (); + + if (!(obstack_object_size (&contexts_pool) + == 2 + 2 * table_size + pool_size)) + abort (); + + /* Write the contexts section. */ + write_section (output_file, 0x2f, obstack_base (&contexts_pool), + obstack_object_size (&contexts_pool)); + + obstack_free (&contexts_pool, NULL); + } + } + + free (buckets); + free (list_memory); + } - hash_destroy (&all_contexts); + hash_destroy (&all_contexts); } } @@ -645,7 +645,7 @@ int msgdomain_write_qt (message_list_ty *mlp, const char *canon_encoding, - const char *domain_name, const char *file_name) + const char *domain_name, const char *file_name) { FILE *output_file; @@ -654,21 +654,21 @@ { /* Determine whether mlp has plural entries. */ { - bool has_plural; - size_t j; + bool has_plural; + size_t j; - has_plural = false; - for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgid_plural != NULL) - has_plural = true; - if (has_plural) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + has_plural = false; + for (j = 0; j < mlp->nitems; j++) + if (mlp->item[j]->msgid_plural != NULL) + has_plural = true; + if (has_plural) + { + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has plural form translations\n\ but the Qt message catalog format doesn't support plural handling\n"))); - return 1; - } + return 1; + } } /* Convert the messages to Unicode. */ @@ -676,78 +676,78 @@ /* Determine whether mlp has non-ISO-8859-1 msgctxt entries. */ { - size_t j; + size_t j; - for (j = 0; j < mlp->nitems; j++) - { - const char *string = mlp->item[j]->msgctxt; - - if (string != NULL) - { - /* An UTF-8 encoded string fits in ISO-8859-1 if and only if - all its bytes are < 0xc4. */ - for (; *string; string++) - if ((unsigned char) *string >= 0xc4) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + for (j = 0; j < mlp->nitems; j++) + { + const char *string = mlp->item[j]->msgctxt; + + if (string != NULL) + { + /* An UTF-8 encoded string fits in ISO-8859-1 if and only if + all its bytes are < 0xc4. */ + for (; *string; string++) + if ((unsigned char) *string >= 0xc4) + { + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has msgctxt strings containing characters outside ISO-8859-1\n\ but the Qt message catalog format supports Unicode only in the translated\n\ strings, not in the context strings\n"))); - return 1; - } - } - } + return 1; + } + } + } } /* Determine whether mlp has non-ISO-8859-1 msgid entries. */ { - size_t j; + size_t j; - for (j = 0; j < mlp->nitems; j++) - { - const char *string = mlp->item[j]->msgid; - - /* An UTF-8 encoded string fits in ISO-8859-1 if and only if all - its bytes are < 0xc4. */ - for (; *string; string++) - if ((unsigned char) *string >= 0xc4) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + for (j = 0; j < mlp->nitems; j++) + { + const char *string = mlp->item[j]->msgid; + + /* An UTF-8 encoded string fits in ISO-8859-1 if and only if all + its bytes are < 0xc4. */ + for (; *string; string++) + if ((unsigned char) *string >= 0xc4) + { + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has msgid strings containing characters outside ISO-8859-1\n\ but the Qt message catalog format supports Unicode only in the translated\n\ strings, not in the untranslated strings\n"))); - return 1; - } - } + return 1; + } + } } if (strcmp (domain_name, "-") == 0) - { - output_file = stdout; - SET_BINARY (fileno (output_file)); - } + { + output_file = stdout; + SET_BINARY (fileno (output_file)); + } else - { - output_file = fopen (file_name, "wb"); - if (output_file == NULL) - { - error (0, errno, _("error while opening \"%s\" for writing"), - file_name); - return 1; - } - } + { + output_file = fopen (file_name, "wb"); + if (output_file == NULL) + { + error (0, errno, _("error while opening \"%s\" for writing"), + file_name); + return 1; + } + } if (output_file != NULL) - { - write_qm (output_file, mlp); + { + write_qm (output_file, mlp); - /* Make sure nothing went wrong. */ - if (fwriteerror (output_file)) - error (EXIT_FAILURE, errno, _("error while writing \"%s\" file"), - file_name); - } + /* Make sure nothing went wrong. */ + if (fwriteerror (output_file)) + error (EXIT_FAILURE, errno, _("error while writing \"%s\" file"), + file_name); + } } return 0; diff -Nru gettext-0.17/gettext-tools/src/write-qt.h gettext-0.18.1.1/gettext-tools/src/write-qt.h --- gettext-0.17/gettext-tools/src/write-qt.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-qt.h 2010-06-06 12:49:58.000000000 +0000 @@ -25,6 +25,6 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_qt (message_list_ty *mlp, const char *canon_encoding, - const char *domain_name, const char *file_name); + const char *domain_name, const char *file_name); #endif /* _WRITE_QT_H */ diff -Nru gettext-0.17/gettext-tools/src/write-resources.c gettext-0.18.1.1/gettext-tools/src/write-resources.c --- gettext-0.17/gettext-tools/src/write-resources.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-resources.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing C# .resources files. - Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005, 2007-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -39,7 +39,7 @@ #include "msgl-iconv.h" #include "po-charset.h" #include "xalloc.h" -#include "filename.h" +#include "concat-filename.h" #include "fwriteerror.h" #include "gettext.h" @@ -59,8 +59,8 @@ static bool execute_writing_input (const char *progname, - const char *prog_path, char **prog_argv, - void *private_data) + const char *prog_path, char **prog_argv, + void *private_data) { struct locals *l = (struct locals *) private_data; pid_t child; @@ -70,7 +70,7 @@ /* Open a pipe to the C# execution engine. */ child = create_pipe_out (progname, prog_path, prog_argv, NULL, false, - true, true, fd); + true, true, fd); fp = fdopen (fd[0], "wb"); if (fp == NULL) @@ -83,74 +83,75 @@ for (j = 0; j < mlp->nitems; j++) { - message_ty *mp = mlp->item[j]; + message_ty *mp = mlp->item[j]; - fwrite (mp->msgid, 1, strlen (mp->msgid) + 1, fp); - fwrite (mp->msgstr, 1, strlen (mp->msgstr) + 1, fp); + fwrite (mp->msgid, 1, strlen (mp->msgid) + 1, fp); + fwrite (mp->msgstr, 1, strlen (mp->msgstr) + 1, fp); } } if (fwriteerror (fp)) error (EXIT_FAILURE, 0, _("error while writing to %s subprocess"), - progname); + progname); /* Remove zombie process from process list, and retrieve exit status. */ /* He we can ignore SIGPIPE because WriteResource either writes to a file - then it never gets SIGPIPE - or to standard output, and in the latter case it has no side effects other than writing to standard output. */ - exitstatus = wait_subprocess (child, progname, true, false, true, true); + exitstatus = + wait_subprocess (child, progname, true, false, true, true, NULL); if (exitstatus != 0) error (EXIT_FAILURE, 0, _("%s subprocess failed with exit code %d"), - progname, exitstatus); + progname, exitstatus); return false; } int msgdomain_write_csharp_resources (message_list_ty *mlp, - const char *canon_encoding, - const char *domain_name, - const char *file_name) + const char *canon_encoding, + const char *domain_name, + const char *file_name) { /* If no entry for this domain don't even create the file. */ if (mlp->nitems != 0) { /* Determine whether mlp has entries with context. */ { - bool has_context; - size_t j; + bool has_context; + size_t j; - has_context = false; - for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgctxt != NULL) - has_context = true; - if (has_context) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + has_context = false; + for (j = 0; j < mlp->nitems; j++) + if (mlp->item[j]->msgctxt != NULL) + has_context = true; + if (has_context) + { + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has context dependent translations\n\ but the C# .resources format doesn't support contexts\n"))); - return 1; - } + return 1; + } } /* Determine whether mlp has plural entries. */ { - bool has_plural; - size_t j; + bool has_plural; + size_t j; - has_plural = false; - for (j = 0; j < mlp->nitems; j++) - if (mlp->item[j]->msgid_plural != NULL) - has_plural = true; - if (has_plural) - { - multiline_error (xstrdup (""), - xstrdup (_("\ + has_plural = false; + for (j = 0; j < mlp->nitems; j++) + if (mlp->item[j]->msgid_plural != NULL) + has_plural = true; + if (has_plural) + { + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has plural form translations\n\ but the C# .resources format doesn't support plural handling\n"))); - return 1; - } + return 1; + } } /* Convert the messages to Unicode. */ @@ -158,34 +159,34 @@ /* Execute the WriteResource program. */ { - const char *args[2]; - const char *gettextexedir; - char *assembly_path; - struct locals locals; - - /* Prepare arguments. */ - args[0] = file_name; - args[1] = NULL; - - /* Make it possible to override the .exe location. This is - necessary for running the testsuite before "make install". */ - gettextexedir = getenv ("GETTEXTCSHARPEXEDIR"); - if (gettextexedir == NULL || gettextexedir[0] == '\0') - gettextexedir = relocate (LIBDIR "/gettext"); - - assembly_path = - concatenated_filename (gettextexedir, "msgfmt.net", ".exe"); - - locals.mlp = mlp; - - if (execute_csharp_program (assembly_path, NULL, 0, - args, - verbose, false, - execute_writing_input, &locals)) - /* An error message should already have been provided. */ - exit (EXIT_FAILURE); + const char *args[2]; + const char *gettextexedir; + char *assembly_path; + struct locals locals; + + /* Prepare arguments. */ + args[0] = file_name; + args[1] = NULL; + + /* Make it possible to override the .exe location. This is + necessary for running the testsuite before "make install". */ + gettextexedir = getenv ("GETTEXTCSHARPEXEDIR"); + if (gettextexedir == NULL || gettextexedir[0] == '\0') + gettextexedir = relocate (LIBDIR "/gettext"); + + assembly_path = + xconcatenated_filename (gettextexedir, "msgfmt.net", ".exe"); + + locals.mlp = mlp; + + if (execute_csharp_program (assembly_path, NULL, 0, + args, + verbose > 0, false, + execute_writing_input, &locals)) + /* An error message should already have been provided. */ + exit (EXIT_FAILURE); - free (assembly_path); + free (assembly_path); } } diff -Nru gettext-0.17/gettext-tools/src/write-resources.h gettext-0.18.1.1/gettext-tools/src/write-resources.h --- gettext-0.17/gettext-tools/src/write-resources.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-resources.h 2010-06-06 12:49:58.000000000 +0000 @@ -24,8 +24,8 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_csharp_resources (message_list_ty *mlp, - const char *canon_encoding, - const char *domain_name, - const char *file_name); + const char *canon_encoding, + const char *domain_name, + const char *file_name); #endif /* _WRITE_RESOURCES_H */ diff -Nru gettext-0.17/gettext-tools/src/write-stringtable.c gettext-0.18.1.1/gettext-tools/src/write-stringtable.c --- gettext-0.17/gettext-tools/src/write-stringtable.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-stringtable.c 2010-06-06 12:49:58.000000000 +0000 @@ -67,26 +67,26 @@ unsigned char c = (unsigned char) *str++; if (c == '\t') - ostream_write_str (stream, "\\t"); + ostream_write_str (stream, "\\t"); else if (c == '\n') - ostream_write_str (stream, "\\n"); + ostream_write_str (stream, "\\n"); else if (c == '\r') - ostream_write_str (stream, "\\r"); + ostream_write_str (stream, "\\r"); else if (c == '\f') - ostream_write_str (stream, "\\f"); + ostream_write_str (stream, "\\f"); else if (c == '\\' || c == '"') - { - char seq[2]; - seq[0] = '\\'; - seq[1] = c; - ostream_write_mem (stream, seq, 2); - } + { + char seq[2]; + seq[0] = '\\'; + seq[1] = c; + ostream_write_mem (stream, seq, 2); + } else - { - char seq[1]; - seq[0] = c; - ostream_write_mem (stream, seq, 1); - } + { + char seq[1]; + seq[0] = c; + ostream_write_mem (stream, seq, 1); + } } ostream_write_str (stream, "\""); } @@ -94,7 +94,7 @@ /* Writes a message to the stream. */ static void write_message (ostream_t stream, const message_ty *mp, - size_t page_width, bool debug) + size_t page_width, bool debug) { /* Print translator comment if available. */ if (mp->comment != NULL) @@ -102,41 +102,41 @@ size_t j; for (j = 0; j < mp->comment->nitems; ++j) - { - const char *s = mp->comment->item[j]; + { + const char *s = mp->comment->item[j]; - /* Test whether it is safe to output the comment in C style, or - whether we need C++ style for it. */ - if (c_strstr (s, "*/") == NULL) - { - ostream_write_str (stream, "/*"); - if (*s != '\0' && *s != '\n') - ostream_write_str (stream, " "); - ostream_write_str (stream, s); - ostream_write_str (stream, " */\n"); - } - else - do - { - const char *e; - ostream_write_str (stream, "//"); - if (*s != '\0' && *s != '\n') - ostream_write_str (stream, " "); - e = strchr (s, '\n'); - if (e == NULL) - { - ostream_write_str (stream, s); - s = NULL; - } - else - { - ostream_write_mem (stream, s, e - s); - s = e + 1; - } - ostream_write_str (stream, "\n"); - } - while (s != NULL); - } + /* Test whether it is safe to output the comment in C style, or + whether we need C++ style for it. */ + if (c_strstr (s, "*/") == NULL) + { + ostream_write_str (stream, "/*"); + if (*s != '\0' && *s != '\n') + ostream_write_str (stream, " "); + ostream_write_str (stream, s); + ostream_write_str (stream, " */\n"); + } + else + do + { + const char *e; + ostream_write_str (stream, "//"); + if (*s != '\0' && *s != '\n') + ostream_write_str (stream, " "); + e = strchr (s, '\n'); + if (e == NULL) + { + ostream_write_str (stream, s); + s = NULL; + } + else + { + ostream_write_mem (stream, s, e - s); + s = e + 1; + } + ostream_write_str (stream, "\n"); + } + while (s != NULL); + } } /* Print xgettext extracted comments. */ @@ -145,45 +145,45 @@ size_t j; for (j = 0; j < mp->comment_dot->nitems; ++j) - { - const char *s = mp->comment_dot->item[j]; + { + const char *s = mp->comment_dot->item[j]; - /* Test whether it is safe to output the comment in C style, or - whether we need C++ style for it. */ - if (c_strstr (s, "*/") == NULL) - { - ostream_write_str (stream, "/* Comment: "); - ostream_write_str (stream, s); - ostream_write_str (stream, " */\n"); - } - else - { - bool first = true; - do - { - const char *e; - ostream_write_str (stream, "//"); - if (first || (*s != '\0' && *s != '\n')) - ostream_write_str (stream, " "); - if (first) - ostream_write_str (stream, "Comment: "); - e = strchr (s, '\n'); - if (e == NULL) - { - ostream_write_str (stream, s); - s = NULL; - } - else - { - ostream_write_mem (stream, s, e - s); - s = e + 1; - } - ostream_write_str (stream, "\n"); - first = false; - } - while (s != NULL); - } - } + /* Test whether it is safe to output the comment in C style, or + whether we need C++ style for it. */ + if (c_strstr (s, "*/") == NULL) + { + ostream_write_str (stream, "/* Comment: "); + ostream_write_str (stream, s); + ostream_write_str (stream, " */\n"); + } + else + { + bool first = true; + do + { + const char *e; + ostream_write_str (stream, "//"); + if (first || (*s != '\0' && *s != '\n')) + ostream_write_str (stream, " "); + if (first) + ostream_write_str (stream, "Comment: "); + e = strchr (s, '\n'); + if (e == NULL) + { + ostream_write_str (stream, s); + s = NULL; + } + else + { + ostream_write_mem (stream, s, e - s); + s = e + 1; + } + ostream_write_str (stream, "\n"); + first = false; + } + while (s != NULL); + } + } } /* Print the file position comments. */ @@ -192,17 +192,17 @@ size_t j; for (j = 0; j < mp->filepos_count; ++j) - { - lex_pos_ty *pp = &mp->filepos[j]; - char *cp = pp->file_name; - char *str; - - while (cp[0] == '.' && cp[1] == '/') - cp += 2; - str = xasprintf ("/* File: %s:%ld */\n", cp, (long) pp->line_number); - ostream_write_str (stream, str); - free (str); - } + { + lex_pos_ty *pp = &mp->filepos[j]; + const char *cp = pp->file_name; + char *str; + + while (cp[0] == '.' && cp[1] == '/') + cp += 2; + str = xasprintf ("/* File: %s:%ld */\n", cp, (long) pp->line_number); + ostream_write_str (stream, str); + free (str); + } } /* Print flag information in special comment. */ @@ -214,15 +214,25 @@ size_t i; for (i = 0; i < NFORMATS; i++) if (significant_format_p (mp->is_format[i])) - { - ostream_write_str (stream, "/* Flag: "); - ostream_write_str (stream, - make_format_description_string (mp->is_format[i], - format_language[i], - debug)); - ostream_write_str (stream, " */\n"); - } + { + ostream_write_str (stream, "/* Flag: "); + ostream_write_str (stream, + make_format_description_string (mp->is_format[i], + format_language[i], + debug)); + ostream_write_str (stream, " */\n"); + } } + if (has_range_p (mp->range)) + { + char *string; + + ostream_write_str (stream, "/* Flag: "); + string = make_range_description_string (mp->range); + ostream_write_str (stream, string); + free (string); + ostream_write_str (stream, " */\n"); + } /* Now write the untranslated string and the translated string. */ write_escaped_string (stream, mp->msgid); @@ -230,32 +240,32 @@ if (mp->msgstr[0] != '\0') { if (mp->is_fuzzy) - { - /* Output the msgid as value, so that at runtime the untranslated - string is returned. */ - write_escaped_string (stream, mp->msgid); - - /* Output the msgstr as a comment, so that at runtime - propertyListFromStringsFileFormat ignores it. */ - if (c_strstr (mp->msgstr, "*/") == NULL) - { - ostream_write_str (stream, " /* = "); - write_escaped_string (stream, mp->msgstr); - ostream_write_str (stream, " */"); - } - else - { - ostream_write_str (stream, "; // = "); - write_escaped_string (stream, mp->msgstr); - } - } + { + /* Output the msgid as value, so that at runtime the untranslated + string is returned. */ + write_escaped_string (stream, mp->msgid); + + /* Output the msgstr as a comment, so that at runtime + propertyListFromStringsFileFormat ignores it. */ + if (c_strstr (mp->msgstr, "*/") == NULL) + { + ostream_write_str (stream, " /* = "); + write_escaped_string (stream, mp->msgstr); + ostream_write_str (stream, " */"); + } + else + { + ostream_write_str (stream, "; // = "); + write_escaped_string (stream, mp->msgstr); + } + } else - write_escaped_string (stream, mp->msgstr); + write_escaped_string (stream, mp->msgstr); } else { /* Output the msgid as value, so that at runtime the untranslated - string is returned. */ + string is returned. */ write_escaped_string (stream, mp->msgid); } ostream_write_str (stream, ";"); @@ -266,7 +276,7 @@ /* Writes an entire message list to the stream. */ static void write_stringtable (ostream_t stream, message_list_ty *mlp, - const char *canon_encoding, size_t page_width, bool debug) + const char *canon_encoding, size_t page_width, bool debug) { bool blank_line; size_t j; @@ -285,21 +295,21 @@ const message_ty *mp = mlp->item[j]; if (mp->msgid_plural == NULL) - { - if (blank_line) - ostream_write_str (stream, "\n"); + { + if (blank_line) + ostream_write_str (stream, "\n"); - write_message (stream, mp, page_width, debug); + write_message (stream, mp, page_width, debug); - blank_line = true; - } + blank_line = true; + } } } /* Output the contents of a PO file in .strings syntax. */ static void msgdomain_list_print_stringtable (msgdomain_list_ty *mdlp, ostream_t stream, - size_t page_width, bool debug) + size_t page_width, bool debug) { message_list_ty *mlp; @@ -313,13 +323,13 @@ /* Describes a PO file in .strings syntax. */ const struct catalog_output_format output_format_stringtable = { - msgdomain_list_print_stringtable, /* print */ - true, /* requires_utf8 */ - false, /* supports_color */ - false, /* supports_multiple_domains */ - false, /* supports_contexts */ - false, /* supports_plurals */ - false, /* sorts_obsoletes_to_end */ - false, /* alternative_is_po */ - false /* alternative_is_java_class */ + msgdomain_list_print_stringtable, /* print */ + true, /* requires_utf8 */ + false, /* supports_color */ + false, /* supports_multiple_domains */ + false, /* supports_contexts */ + false, /* supports_plurals */ + false, /* sorts_obsoletes_to_end */ + false, /* alternative_is_po */ + false /* alternative_is_java_class */ }; diff -Nru gettext-0.17/gettext-tools/src/write-tcl.c gettext-0.18.1.1/gettext-tools/src/write-tcl.c --- gettext-0.17/gettext-tools/src/write-tcl.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-tcl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Writing tcl/msgcat .msg files. - Copyright (C) 2002-2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005, 2007-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify @@ -36,7 +36,7 @@ #include "po-charset.h" #include "xalloc.h" #include "xmalloca.h" -#include "filename.h" +#include "concat-filename.h" #include "fwriteerror.h" #include "unistr.h" #include "gettext.h" @@ -59,47 +59,47 @@ fprintf (stream, "\""); while (str < str_limit) { - unsigned int uc; + ucs4_t uc; unsigned int count; count = u8_mbtouc (&uc, (const unsigned char *) str, str_limit - str); if (uc < 0x10000) - { - /* Single UCS-2 'char'. */ - if (uc == 0x000a) - fprintf (stream, "\\n"); - else if (uc == 0x000d) - fprintf (stream, "\\r"); - else if (uc == 0x0022) - fprintf (stream, "\\\""); - else if (uc == 0x0024) - fprintf (stream, "\\$"); - else if (uc == 0x005b) - fprintf (stream, "\\["); - else if (uc == 0x005c) - fprintf (stream, "\\\\"); - else if (uc == 0x005d) - fprintf (stream, "\\]"); - /* No need to escape '{' and '}' because we don't have opening - braces outside the strings. */ + { + /* Single UCS-2 'char'. */ + if (uc == 0x000a) + fprintf (stream, "\\n"); + else if (uc == 0x000d) + fprintf (stream, "\\r"); + else if (uc == 0x0022) + fprintf (stream, "\\\""); + else if (uc == 0x0024) + fprintf (stream, "\\$"); + else if (uc == 0x005b) + fprintf (stream, "\\["); + else if (uc == 0x005c) + fprintf (stream, "\\\\"); + else if (uc == 0x005d) + fprintf (stream, "\\]"); + /* No need to escape '{' and '}' because we don't have opening + braces outside the strings. */ #if 0 - else if (uc == 0x007b) - fprintf (stream, "\\{"); - else if (uc == 0x007d) - fprintf (stream, "\\}"); + else if (uc == 0x007b) + fprintf (stream, "\\{"); + else if (uc == 0x007d) + fprintf (stream, "\\}"); #endif - else if (uc >= 0x0020 && uc < 0x007f) - fprintf (stream, "%c", uc); - else - fprintf (stream, "\\u%c%c%c%c", - hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], - hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); - } + else if (uc >= 0x0020 && uc < 0x007f) + fprintf (stream, "%c", (int) uc); + else + fprintf (stream, "\\u%c%c%c%c", + hexdigit[(uc >> 12) & 0x0f], hexdigit[(uc >> 8) & 0x0f], + hexdigit[(uc >> 4) & 0x0f], hexdigit[uc & 0x0f]); + } else - /* The \unnnn notation doesn't support characters >= 0x10000. - We output them as UTF-8 byte sequences and hope that either - the Tcl version reading them will be new enough or that the - user is using an UTF-8 locale. */ - fwrite (str, 1, count, stream); + /* The \unnnn notation doesn't support characters >= 0x10000. + We output them as UTF-8 byte sequences and hope that either + the Tcl version reading them will be new enough or that the + user is using an UTF-8 locale. */ + fwrite (str, 1, count, stream); str += count; } fprintf (stream, "\""); @@ -120,14 +120,14 @@ message_ty *mp = mlp->item[j]; if (is_header (mp)) - /* Tcl's msgcat unit ignores this, but msgunfmt needs it. */ - fprintf (output_file, "set ::msgcat::header "); + /* Tcl's msgcat unit ignores this, but msgunfmt needs it. */ + fprintf (output_file, "set ::msgcat::header "); else - { - fprintf (output_file, "::msgcat::mcset %s ", locale_name); - write_tcl_string (output_file, mp->msgid); - fprintf (output_file, " "); - } + { + fprintf (output_file, "::msgcat::mcset %s ", locale_name); + write_tcl_string (output_file, mp->msgid); + fprintf (output_file, " "); + } write_tcl_string (output_file, mp->msgstr); fprintf (output_file, "\n"); } @@ -135,8 +135,8 @@ int msgdomain_write_tcl (message_list_ty *mlp, const char *canon_encoding, - const char *locale_name, - const char *directory) + const char *locale_name, + const char *directory) { /* If no entry for this domain don't even create the file. */ if (mlp->nitems == 0) @@ -150,14 +150,14 @@ has_context = false; for (j = 0; j < mlp->nitems; j++) if (mlp->item[j]->msgctxt != NULL) - has_context = true; + has_context = true; if (has_context) { - multiline_error (xstrdup (""), - xstrdup (_("\ + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has context dependent translations\n\ but the Tcl message catalog format doesn't support contexts\n"))); - return 1; + return 1; } } @@ -169,14 +169,14 @@ has_plural = false; for (j = 0; j < mlp->nitems; j++) if (mlp->item[j]->msgid_plural != NULL) - has_plural = true; + has_plural = true; if (has_plural) { - multiline_error (xstrdup (""), - xstrdup (_("\ + multiline_error (xstrdup (""), + xstrdup (_("\ message catalog has plural form translations\n\ but the Tcl message catalog format doesn't support plural handling\n"))); - return 1; + return 1; } } @@ -197,22 +197,22 @@ memcpy (frobbed_locale_name, locale_name, len + 1); for (p = frobbed_locale_name; *p != '\0'; p++) if (*p >= 'A' && *p <= 'Z') - *p = *p - 'A' + 'a'; + *p = *p - 'A' + 'a'; else if (*p == '.') - { - *p = '\0'; - break; - } + { + *p = '\0'; + break; + } - file_name = concatenated_filename (directory, frobbed_locale_name, ".msg"); + file_name = xconcatenated_filename (directory, frobbed_locale_name, ".msg"); output_file = fopen (file_name, "w"); if (output_file == NULL) { - error (0, errno, _("error while opening \"%s\" for writing"), - file_name); - freea (frobbed_locale_name); - return 1; + error (0, errno, _("error while opening \"%s\" for writing"), + file_name); + freea (frobbed_locale_name); + return 1; } write_msg (output_file, mlp, frobbed_locale_name); @@ -220,7 +220,7 @@ /* Make sure nothing went wrong. */ if (fwriteerror (output_file)) error (EXIT_FAILURE, errno, _("error while writing \"%s\" file"), - file_name); + file_name); freea (frobbed_locale_name); } diff -Nru gettext-0.17/gettext-tools/src/write-tcl.h gettext-0.18.1.1/gettext-tools/src/write-tcl.h --- gettext-0.17/gettext-tools/src/write-tcl.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/write-tcl.h 2010-06-06 12:49:58.000000000 +0000 @@ -26,7 +26,7 @@ Return 0 if ok, nonzero on error. */ extern int msgdomain_write_tcl (message_list_ty *mlp, const char *canon_encoding, - const char *locale_name, - const char *directory); + const char *locale_name, + const char *directory); #endif /* _WRITE_TCL_H */ diff -Nru gettext-0.17/gettext-tools/src/x-awk.c gettext-0.18.1.1/gettext-tools/src/x-awk.c --- gettext-0.17/gettext-tools/src/x-awk.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-awk.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext awk backend. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-awk.h" #include "error.h" #include "error-progname.h" #include "xalloc.h" @@ -72,15 +71,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -92,7 +91,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_awk_keyword ("dcgettext"); x_awk_keyword ("dcngettext:1,2"); default_keywords = false; @@ -137,8 +136,8 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); return EOF; } @@ -155,7 +154,7 @@ if (c != EOF) { if (c == '\n') - --line_number; + --line_number; ungetc (c, fp); } @@ -181,26 +180,26 @@ buflen = 0; lineno = line_number; for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - { - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - } - } + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + { + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + } + } if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[buflen] = '\0'; savable_comment_add (buffer); last_comment_line = lineno; @@ -223,14 +222,14 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_string, /* "abc" */ - token_type_i18nstring, /* _"abc" */ - token_type_symbol, /* symbol, number */ - token_type_semicolon, /* ; */ - token_type_other /* regexp, misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_string, /* "abc" */ + token_type_i18nstring, /* _"abc" */ + token_type_symbol, /* symbol, number */ + token_type_semicolon, /* ; */ + token_type_other /* regexp, misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -238,7 +237,7 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_{symbol,string,i18nstring} */ + char *string; /* for token_type_{symbol,string,i18nstring} */ int line_number; }; @@ -259,88 +258,88 @@ c = phase1_getc (); if (c == EOF || c == '\n') - break; + break; if (c == '"') - return P7_QUOTES; + return P7_QUOTES; if (c != '\\') - return c; + return c; c = phase1_getc (); if (c == EOF) - break; + break; if (c != '\n') - switch (c) - { - case 'a': - return '\a'; - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - case 'v': - return '\v'; - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': - { - int n = c - '0'; - - c = phase1_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - { - n = (n << 3) + (c - '0'); - c = phase1_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - n = (n << 3) + (c - '0'); - else - phase1_ungetc (c); - } - } - else - phase1_ungetc (c); - } - return (unsigned char) n; - } - case 'x': - { - int n = 0; - - for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - else if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - else - { - phase1_ungetc (c); - break; - } - } - return (unsigned char) n; - } - default: - return c; - } + switch (c) + { + case 'a': + return '\a'; + case 'b': + return '\b'; + case 'f': + return '\f'; + case 'n': + return '\n'; + case 'r': + return '\r'; + case 't': + return '\t'; + case 'v': + return '\v'; + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': + { + int n = c - '0'; + + c = phase1_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + { + n = (n << 3) + (c - '0'); + c = phase1_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + n = (n << 3) + (c - '0'); + else + phase1_ungetc (c); + } + } + else + phase1_ungetc (c); + } + return (unsigned char) n; + } + case 'x': + { + int n = 0; + + for (;;) + { + c = phase1_getc (); + if (c == EOF) + break; + else if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + else + { + phase1_ungetc (c); + break; + } + } + return (unsigned char) n; + } + default: + return c; + } } phase1_ungetc (c); error_with_progname = false; error (0, 0, _("%s:%d: warning: unterminated string"), logical_file_name, - line_number); + line_number); error_with_progname = true; return P7_QUOTES; } @@ -390,273 +389,273 @@ c = phase2_getc (); switch (c) - { - case EOF: - tp->type = token_type_eof; - return; - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* Newline is not allowed inside expressions. It usually - introduces a fresh statement. - FIXME: Newlines after any of ',' '{' '?' ':' '||' '&&' 'do' 'else' - does *not* introduce a fresh statement. */ - prefer_division_over_regexp = false; - /* FALLTHROUGH */ - case '\t': - case ' ': - /* Ignore whitespace and comments. */ - continue; - - case '\\': - /* Backslash ought to be immediately followed by a newline. */ - continue; - } + { + case EOF: + tp->type = token_type_eof; + return; + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* Newline is not allowed inside expressions. It usually + introduces a fresh statement. + FIXME: Newlines after any of ',' '{' '?' ':' '||' '&&' 'do' 'else' + does *not* introduce a fresh statement. */ + prefer_division_over_regexp = false; + /* FALLTHROUGH */ + case '\t': + case ' ': + /* Ignore whitespace and comments. */ + continue; + + case '\\': + /* Backslash ought to be immediately followed by a newline. */ + continue; + } last_non_comment_line = tp->line_number; switch (c) - { - case '.': - { - int c2 = phase2_getc (); - phase2_ungetc (c2); - if (!(c2 >= '0' && c2 <= '9')) - { - - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - } - } - /* FALLTHROUGH */ - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - /* Symbol, or part of a number. */ - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase2_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - default: - if (bufpos == 1 && buffer[0] == '_' && c == '"') - { - tp->type = token_type_i18nstring; - goto case_string; - } - phase2_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - /* Most identifiers can be variable names; after them we must - interpret '/' as division operator. But for awk's builtin - keywords we have three cases: - (a) Must interpret '/' as division operator. "length". - (b) Must interpret '/' as start of a regular expression. - "do", "exit", "print", "printf", "return". - (c) '/' after this keyword in invalid anyway. All others. - I used the following script for the distinction. - for k in $awk_keywords; do - echo; echo $k; awk "function foo () { $k / 10 }" < /dev/null - done - */ - if (strcmp (buffer, "do") == 0 - || strcmp (buffer, "exit") == 0 - || strcmp (buffer, "print") == 0 - || strcmp (buffer, "printf") == 0 - || strcmp (buffer, "return") == 0) - prefer_division_over_regexp = false; - else - prefer_division_over_regexp = true; - return; - - case '"': - tp->type = token_type_string; - case_string: - bufpos = 0; - for (;;) - { - c = phase7_getc (); - if (c == EOF || c == P7_QUOTES) - break; - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - prefer_division_over_regexp = true; - return; - - case '(': - tp->type = token_type_lparen; - prefer_division_over_regexp = false; - return; - - case ')': - tp->type = token_type_rparen; - prefer_division_over_regexp = true; - return; - - case ',': - tp->type = token_type_comma; - prefer_division_over_regexp = false; - return; - - case ';': - tp->type = token_type_semicolon; - prefer_division_over_regexp = false; - return; - - case ']': - tp->type = token_type_other; - prefer_division_over_regexp = true; - return; - - case '/': - if (!prefer_division_over_regexp) - { - /* Regular expression. - Counting brackets is non-trivial. [[] is balanced, and so is - [\]]. Also, /[/]/ is balanced and ends at the third slash. - Do not count [ or ] if either one is preceded by a \. - A '[' should be counted if - a) it is the first one so far (brackets == 0), or - b) it is the '[' in '[:'. - A ']' should be counted if not preceded by a \. - According to POSIX, []] is how you put a ] into a set. - Try to handle that too. - */ - int brackets = 0; - bool pos0 = true; /* true at start of regexp */ - bool pos1_open = false; /* true after [ at start of regexp */ - bool pos2_open_not = false; /* true after [^ at start of regexp */ - - for (;;) - { - c = phase1_getc (); - - if (c == EOF || c == '\n') - { - phase1_ungetc (c); - error_with_progname = false; - error (0, 0, _("%s:%d: warning: unterminated regular expression"), - logical_file_name, line_number); - error_with_progname = true; - break; - } - else if (c == '[') - { - if (brackets == 0) - brackets++; - else - { - c = phase1_getc (); - if (c == ':') - brackets++; - phase1_ungetc (c); - } - if (pos0) - { - pos0 = false; - pos1_open = true; - continue; - } - } - else if (c == ']') - { - if (!(pos1_open || pos2_open_not)) - brackets--; - } - else if (c == '^') - { - if (pos1_open) - { - pos1_open = false; - pos2_open_not = true; - continue; - } - } - else if (c == '\\') - { - c = phase1_getc (); - /* Backslash-newline is valid and ignored. */ - } - else if (c == '/') - { - if (brackets <= 0) - break; - } - - pos0 = false; - pos1_open = false; - pos2_open_not = false; - } - - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - } - /* FALLTHROUGH */ - - default: - /* We could carefully recognize each of the 2 and 3 character - operators, but it is not necessary, as we only need to recognize - gettext invocations. Don't bother. */ - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - } + { + case '.': + { + int c2 = phase2_getc (); + phase2_ungetc (c2); + if (!(c2 >= '0' && c2 <= '9')) + { + + tp->type = token_type_other; + prefer_division_over_regexp = false; + return; + } + } + /* FALLTHROUGH */ + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + /* Symbol, or part of a number. */ + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase2_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + default: + if (bufpos == 1 && buffer[0] == '_' && c == '"') + { + tp->type = token_type_i18nstring; + goto case_string; + } + phase2_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + /* Most identifiers can be variable names; after them we must + interpret '/' as division operator. But for awk's builtin + keywords we have three cases: + (a) Must interpret '/' as division operator. "length". + (b) Must interpret '/' as start of a regular expression. + "do", "exit", "print", "printf", "return". + (c) '/' after this keyword in invalid anyway. All others. + I used the following script for the distinction. + for k in $awk_keywords; do + echo; echo $k; awk "function foo () { $k / 10 }" < /dev/null + done + */ + if (strcmp (buffer, "do") == 0 + || strcmp (buffer, "exit") == 0 + || strcmp (buffer, "print") == 0 + || strcmp (buffer, "printf") == 0 + || strcmp (buffer, "return") == 0) + prefer_division_over_regexp = false; + else + prefer_division_over_regexp = true; + return; + + case '"': + tp->type = token_type_string; + case_string: + bufpos = 0; + for (;;) + { + c = phase7_getc (); + if (c == EOF || c == P7_QUOTES) + break; + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + prefer_division_over_regexp = true; + return; + + case '(': + tp->type = token_type_lparen; + prefer_division_over_regexp = false; + return; + + case ')': + tp->type = token_type_rparen; + prefer_division_over_regexp = true; + return; + + case ',': + tp->type = token_type_comma; + prefer_division_over_regexp = false; + return; + + case ';': + tp->type = token_type_semicolon; + prefer_division_over_regexp = false; + return; + + case ']': + tp->type = token_type_other; + prefer_division_over_regexp = true; + return; + + case '/': + if (!prefer_division_over_regexp) + { + /* Regular expression. + Counting brackets is non-trivial. [[] is balanced, and so is + [\]]. Also, /[/]/ is balanced and ends at the third slash. + Do not count [ or ] if either one is preceded by a \. + A '[' should be counted if + a) it is the first one so far (brackets == 0), or + b) it is the '[' in '[:'. + A ']' should be counted if not preceded by a \. + According to POSIX, []] is how you put a ] into a set. + Try to handle that too. + */ + int brackets = 0; + bool pos0 = true; /* true at start of regexp */ + bool pos1_open = false; /* true after [ at start of regexp */ + bool pos2_open_not = false; /* true after [^ at start of regexp */ + + for (;;) + { + c = phase1_getc (); + + if (c == EOF || c == '\n') + { + phase1_ungetc (c); + error_with_progname = false; + error (0, 0, _("%s:%d: warning: unterminated regular expression"), + logical_file_name, line_number); + error_with_progname = true; + break; + } + else if (c == '[') + { + if (brackets == 0) + brackets++; + else + { + c = phase1_getc (); + if (c == ':') + brackets++; + phase1_ungetc (c); + } + if (pos0) + { + pos0 = false; + pos1_open = true; + continue; + } + } + else if (c == ']') + { + if (!(pos1_open || pos2_open_not)) + brackets--; + } + else if (c == '^') + { + if (pos1_open) + { + pos1_open = false; + pos2_open_not = true; + continue; + } + } + else if (c == '\\') + { + c = phase1_getc (); + /* Backslash-newline is valid and ignored. */ + } + else if (c == '/') + { + if (brackets <= 0) + break; + } + + pos0 = false; + pos1_open = false; + pos2_open_not = false; + } + + tp->type = token_type_other; + prefer_division_over_regexp = false; + return; + } + /* FALLTHROUGH */ + + default: + /* We could carefully recognize each of the 2 and 3 character + operators, but it is not necessary, as we only need to recognize + gettext invocations. Don't bother. */ + tp->type = token_type_other; + prefer_division_over_regexp = false; + return; + } } } @@ -688,9 +687,9 @@ Return true upon eof, false upon closing parenthesis. */ static bool extract_parenthesized (message_list_ty *mlp, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -707,7 +706,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -719,145 +718,145 @@ x_awk_lex (&token); if (next_is_argument && token.type != token_type_lparen) - { - /* An argument list starts, even though there is no '('. */ - context_iter = next_context_iter; - outer_context = inner_context; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - } + { + /* An argument list starts, even though there is no '('. */ + context_iter = next_context_iter; + outer_context = inner_context; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + } switch (token.type) - { - case token_type_symbol: - { - void *keyword_value; - - if (hash_find_entry (&keywords, token.string, strlen (token.string), - &keyword_value) - == 0) - { - next_shapes = (const struct callshapes *) keyword_value; - state = 1; - } - else - state = 0; - } - next_is_argument = - (strcmp (token.string, "print") == 0 - || strcmp (token.string, "printf") == 0); - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, strlen (token.string))); - free (token.string); - continue; - - case token_type_lparen: - if (extract_parenthesized (mlp, inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - arglist_parser_done (argparser, arg); - return true; - } - next_is_argument = false; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - arglist_parser_done (argparser, arg); - return false; - - case token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_is_argument = false; - next_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case token_type_string: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, &pos, - savable_comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - pos.file_name, pos.line_number, - savable_comment); - } - next_is_argument = false; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_i18nstring: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - remember_a_message (mlp, NULL, token.string, inner_context, &pos, - savable_comment); - } - next_is_argument = false; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_semicolon: - /* An argument list ends, and a new statement begins. */ - /* FIXME: Should handle newline that acts as statement separator - in the same way. */ - /* FIXME: Instead of resetting outer_context here, it may be better - to recurse in the next_is_argument handling above, waiting for - the next semicolon or other statement terminator. */ - outer_context = null_context; - context_iter = null_context_list_iterator; - next_is_argument = false; - next_context_iter = passthrough_context_list_iterator; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - state = 0; - continue; - - case token_type_eof: - arglist_parser_done (argparser, arg); - return true; - - case token_type_other: - next_is_argument = false; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - default: - abort (); - } + { + case token_type_symbol: + { + void *keyword_value; + + if (hash_find_entry (&keywords, token.string, strlen (token.string), + &keyword_value) + == 0) + { + next_shapes = (const struct callshapes *) keyword_value; + state = 1; + } + else + state = 0; + } + next_is_argument = + (strcmp (token.string, "print") == 0 + || strcmp (token.string, "printf") == 0); + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, strlen (token.string))); + free (token.string); + continue; + + case token_type_lparen: + if (extract_parenthesized (mlp, inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + arglist_parser_done (argparser, arg); + return true; + } + next_is_argument = false; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + arglist_parser_done (argparser, arg); + return false; + + case token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_is_argument = false; + next_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case token_type_string: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, &pos, + NULL, savable_comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + pos.file_name, pos.line_number, + savable_comment); + } + next_is_argument = false; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_i18nstring: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + remember_a_message (mlp, NULL, token.string, inner_context, &pos, + NULL, savable_comment); + } + next_is_argument = false; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_semicolon: + /* An argument list ends, and a new statement begins. */ + /* FIXME: Should handle newline that acts as statement separator + in the same way. */ + /* FIXME: Instead of resetting outer_context here, it may be better + to recurse in the next_is_argument handling above, waiting for + the next semicolon or other statement terminator. */ + outer_context = null_context; + context_iter = null_context_list_iterator; + next_is_argument = false; + next_context_iter = passthrough_context_list_iterator; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + state = 0; + continue; + + case token_type_eof: + arglist_parser_done (argparser, arg); + return true; + + case token_type_other: + next_is_argument = false; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + default: + abort (); + } } } void extract_awk (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -878,7 +877,7 @@ /* Eat tokens until eof is seen. When extract_parenthesized returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_parenthesized (mlp, null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + arglist_parser_alloc (mlp, NULL))) ; fp = NULL; diff -Nru gettext-0.17/gettext-tools/src/x-awk.h gettext-0.18.1.1/gettext-tools/src/x-awk.h --- gettext-0.17/gettext-tools/src/x-awk.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-awk.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_AWK \ - { "awk", "awk" }, \ + { "awk", "awk" }, \ #define SCANNERS_AWK \ - { "awk", extract_awk, \ - &flag_table_awk, &formatstring_awk, NULL }, \ + { "awk", extract_awk, \ + &flag_table_awk, &formatstring_awk, NULL }, \ /* Scan an awk file and add its translatable strings to mdlp. */ extern void extract_awk (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_awk_keyword (const char *keyword); extern void x_awk_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-c.c gettext-0.18.1.1/gettext-tools/src/x-c.c --- gettext-0.17/gettext-tools/src/x-c.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-c.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext C/C++/ObjectiveC backend. - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-c.h" #include "error.h" #include "error-progname.h" #include "xalloc.h" @@ -118,15 +117,15 @@ const char *colon; if (keywords->table == NULL) - hash_init (keywords, 100); + hash_init (keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (keywords, name, end - name, &shape); + insert_keyword_callshape (keywords, name, end - name, &shape); } } @@ -150,7 +149,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_c_keyword ("gettext"); x_c_keyword ("dgettext:2"); x_c_keyword ("dcgettext:2"); @@ -178,10 +177,10 @@ x_objc_keyword ("npgettext:1c,2,3"); x_objc_keyword ("dnpgettext:2c,3,4"); x_objc_keyword ("dcnpgettext:2c,3,4"); - x_objc_keyword ("NSLocalizedString"); /* similar to gettext */ - x_objc_keyword ("_"); /* similar to gettext */ + x_objc_keyword ("NSLocalizedString"); /* similar to gettext */ + x_objc_keyword ("_"); /* similar to gettext */ x_objc_keyword ("NSLocalizedStaticString"); /* similar to gettext_noop */ - x_objc_keyword ("__"); /* similar to gettext_noop */ + x_objc_keyword ("__"); /* similar to gettext_noop */ default_keywords = false; } @@ -416,6 +415,36 @@ /* java/java-tree.h */ xgettext_record_flag ("parse_error_context:2:pass-c-format"); #endif + + xgettext_record_flag ("gettext:1:pass-gfc-internal-format"); + xgettext_record_flag ("dgettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("dcgettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("ngettext:1:pass-gfc-internal-format"); + xgettext_record_flag ("ngettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("dngettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("dngettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("dcngettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("dcngettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("gettext_noop:1:pass-gfc-internal-format"); + xgettext_record_flag ("pgettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("dpgettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("dcpgettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("npgettext:2:pass-gfc-internal-format"); + xgettext_record_flag ("npgettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("dnpgettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("dnpgettext:4:pass-gfc-internal-format"); + xgettext_record_flag ("dcnpgettext:3:pass-gfc-internal-format"); + xgettext_record_flag ("dcnpgettext:4:pass-gfc-internal-format"); +#if 0 /* This should better be done inside GCC. */ + /* fortran/error.c */ + xgettext_record_flag ("gfc_error:1:gfc-internal-format"); + xgettext_record_flag ("gfc_error_now:1:gfc-internal-format"); + xgettext_record_flag ("gfc_fatal_error:1:gfc-internal-format"); + xgettext_record_flag ("gfc_internal_error:1:gfc-internal-format"); + xgettext_record_flag ("gfc_notify_std:2:gfc-internal-format"); + xgettext_record_flag ("gfc_warning:1:gfc-internal-format"); + xgettext_record_flag ("gfc_warning_now:1:gfc-internal-format"); +#endif } @@ -452,8 +481,8 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); return EOF; } @@ -462,7 +491,7 @@ int c1 = getc (fp); if (c1 != EOF && c1 != '\n') - ungetc (c1, fp); + ungetc (c1, fp); /* Seen line terminator CR or CR/LF. */ return '\n'; @@ -496,31 +525,31 @@ { c = phase1_pushback[--phase1_pushback_length]; if (c == '\n') - ++line_number; + ++line_number; return c; } for (;;) { c = phase0_getc (); switch (c) - { - case '\n': - ++line_number; - return '\n'; - - case '\\': - c = phase0_getc (); - if (c != '\n') - { - phase0_ungetc (c); - return '\\'; - } - ++line_number; - break; - - default: - return c; - } + { + case '\n': + ++line_number; + return '\n'; + + case '\\': + c = phase0_getc (); + if (c != '\n') + { + phase0_ungetc (c); + return '\\'; + } + ++line_number; + break; + + default: + return c; + } } } @@ -540,7 +569,7 @@ default: if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; break; } @@ -609,7 +638,7 @@ if (c != EOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -632,13 +661,13 @@ { int c = phase2_getc (); if (c != '\\') - return c; + return c; c = phase2_getc (); if (c != '\n') - { - phase2_ungetc (c); - return '\\'; - } + { + phase2_ungetc (c); + return '\\'; + } } } @@ -650,7 +679,7 @@ if (c != EOF) { if (phase3_pushback_length == SIZEOF (phase3_pushback)) - abort (); + abort (); phase3_pushback[phase3_pushback_length++] = c; } } @@ -684,7 +713,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -729,39 +758,39 @@ comment_start (); last_was_star = false; for (;;) - { - c = phase3_getc (); - if (c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - switch (c) - { - case '\n': - comment_line_end (1); - comment_start (); - last_was_star = false; - continue; - - case '*': - last_was_star = true; - continue; - - case '/': - if (last_was_star) - { - comment_line_end (2); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - continue; - } - break; - } + { + c = phase3_getc (); + if (c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + switch (c) + { + case '\n': + comment_line_end (1); + comment_start (); + last_was_star = false; + continue; + + case '*': + last_was_star = true; + continue; + + case '/': + if (last_was_star) + { + comment_line_end (2); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + continue; + } + break; + } last_comment_line = newline_count; return ' '; @@ -769,14 +798,14 @@ /* C++ or ISO C 99 comment. */ comment_start (); for (;;) - { - c = phase3_getc (); - if (c == '\n' || c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } + { + c = phase3_getc (); + if (c == '\n' || c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } comment_line_end (0); last_comment_line = newline_count; return '\n'; @@ -800,19 +829,19 @@ enum token_type_ty { - token_type_character_constant, /* 'x' */ + token_type_character_constant, /* 'x' */ token_type_eof, token_type_eoln, - token_type_hash, /* # */ - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_colon, /* : */ - token_type_name, /* abc */ - token_type_number, /* 2.7 */ - token_type_string_literal, /* "abc" */ - token_type_symbol, /* < > = etc. */ - token_type_objc_special, /* @ */ + token_type_hash, /* # */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_colon, /* : */ + token_type_name, /* abc */ + token_type_number, /* 2.7 */ + token_type_string_literal, /* "abc" */ + token_type_symbol, /* < > = etc. */ + token_type_objc_special, /* @ */ token_type_white_space }; typedef enum token_type_ty token_type_ty; @@ -821,9 +850,9 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_name, token_type_string_literal */ - refcounted_string_list_ty *comment; /* for token_type_string_literal, - token_type_objc_special */ + char *string; /* for token_type_name, token_type_string_literal */ + refcounted_string_list_ty *comment; /* for token_type_string_literal, + token_type_objc_special */ long number; int line_number; }; @@ -878,7 +907,7 @@ { default: /* Unknown escape sequences really should be an error, but just - ignore them, and let the real compiler complain. */ + ignore them, and let the real compiler complain. */ phase3_ungetc (c); return '\\'; @@ -894,8 +923,8 @@ return '\b'; /* The \e escape is preculiar to gcc, and assumes an ASCII - character set (or superset). We don't provide support for it - here. */ + character set (or superset). We don't provide support for it + here. */ case 'f': return '\f'; @@ -911,62 +940,62 @@ case 'x': c = phase3_getc (); switch (c) - { - default: - phase3_ungetc (c); - phase3_ungetc ('x'); - return '\\'; - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - break; - } + { + default: + phase3_ungetc (c); + phase3_ungetc ('x'); + return '\\'; + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + break; + } n = 0; for (;;) - { - switch (c) - { - default: - phase3_ungetc (c); - return n; - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - n = n * 16 + c - '0'; - break; - - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - n = n * 16 + 10 + c - 'A'; - break; - - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - n = n * 16 + 10 + c - 'a'; - break; - } - c = phase3_getc (); - } + { + switch (c) + { + default: + phase3_ungetc (c); + return n; + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + n = n * 16 + c - '0'; + break; + + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + n = n * 16 + 10 + c - 'A'; + break; + + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + n = n * 16 + 10 + c - 'a'; + break; + } + c = phase3_getc (); + } return n; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': n = 0; for (j = 0; j < 3; ++j) - { - n = n * 8 + c - '0'; - c = phase3_getc (); - switch (c) - { - default: - break; - - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - continue; - } - break; - } + { + n = n * 8 + c - '0'; + c = phase3_getc (); + switch (c) + { + default: + break; + + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + continue; + } + break; + } phase3_ungetc (c); return n; } @@ -1030,21 +1059,21 @@ case '\f': case '\t': for (;;) - { - c = phase4_getc (); - switch (c) - { - case ' ': - case '\f': - case '\t': - continue; - - default: - phase4_ungetc (c); - break; - } - break; - } + { + c = phase4_getc (); + switch (c) + { + case ' ': + case '\f': + case '\t': + continue; + + default: + phase4_ungetc (c); + break; + } + break; + } tp->type = token_type_white_space; return; @@ -1059,42 +1088,42 @@ case 'v': case 'w': case 'x': case 'y': case 'z': bufpos = 0; for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase4_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - - default: - phase4_ungetc (c); - break; - } - break; - } + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase4_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + + default: + phase4_ungetc (c); + break; + } + break; + } if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[bufpos] = 0; tp->string = xstrdup (buffer); tp->type = token_type_name; @@ -1104,77 +1133,77 @@ c = phase4_getc (); phase4_ungetc (c); switch (c) - { - default: - tp->type = token_type_symbol; - return; - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - c = '.'; - break; - } + { + default: + tp->type = token_type_symbol; + return; + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + c = '.'; + break; + } /* FALLTHROUGH */ case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': /* The preprocessing number token is more "generous" than the C - number tokens. This is mostly due to token pasting (another - thing we can ignore here). */ + number tokens. This is mostly due to token pasting (another + thing we can ignore here). */ bufpos = 0; for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase4_getc (); - switch (c) - { - case 'e': - case 'E': - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase4_getc (); - if (c != '+' || c != '-') - { - phase4_ungetc (c); - break; - } - continue; - - case 'A': case 'B': case 'C': case 'D': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case '.': - continue; - - default: - phase4_ungetc (c); - break; - } - break; - } + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase4_getc (); + switch (c) + { + case 'e': + case 'E': + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase4_getc (); + if (c != '+' || c != '-') + { + phase4_ungetc (c); + break; + } + continue; + + case 'A': case 'B': case 'C': case 'D': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case '.': + continue; + + default: + phase4_ungetc (c); + break; + } + break; + } if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[bufpos] = 0; tp->type = token_type_number; tp->number = atol (buffer); @@ -1182,61 +1211,61 @@ case '\'': /* We could worry about the 'L' before wide character constants, - but ignoring it has no effect unless one of the keywords is - "L". Just pretend it won't happen. Also, we don't need to - remember the character constant. */ + but ignoring it has no effect unless one of the keywords is + "L". Just pretend it won't happen. Also, we don't need to + remember the character constant. */ for (;;) - { - c = phase7_getc (); - if (c == P7_NEWLINE) - { - error_with_progname = false; - error (0, 0, _("%s:%d: warning: unterminated character constant"), - logical_file_name, line_number - 1); - error_with_progname = true; - phase7_ungetc ('\n'); - break; - } - if (c == EOF || c == P7_QUOTE) - break; - } + { + c = phase7_getc (); + if (c == P7_NEWLINE) + { + error_with_progname = false; + error (0, 0, _("%s:%d: warning: unterminated character constant"), + logical_file_name, line_number - 1); + error_with_progname = true; + phase7_ungetc ('\n'); + break; + } + if (c == EOF || c == P7_QUOTE) + break; + } tp->type = token_type_character_constant; return; case '"': /* We could worry about the 'L' before wide string constants, - but since gettext's argument is not a wide character string, - let the compiler complain about the argument not matching the - prototype. Just pretend it won't happen. */ + but since gettext's argument is not a wide character string, + let the compiler complain about the argument not matching the + prototype. Just pretend it won't happen. */ bufpos = 0; for (;;) - { - c = phase7_getc (); - if (c == P7_NEWLINE) - { - error_with_progname = false; - error (0, 0, _("%s:%d: warning: unterminated string literal"), - logical_file_name, line_number - 1); - error_with_progname = true; - phase7_ungetc ('\n'); - break; - } - if (c == EOF || c == P7_QUOTES) - break; - if (c == P7_QUOTE) - c = '\''; - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } + { + c = phase7_getc (); + if (c == P7_NEWLINE) + { + error_with_progname = false; + error (0, 0, _("%s:%d: warning: unterminated string literal"), + logical_file_name, line_number - 1); + error_with_progname = true; + phase7_ungetc ('\n'); + break; + } + if (c == EOF || c == P7_QUOTES) + break; + if (c == P7_QUOTE) + c = '\''; + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[bufpos] = 0; tp->type = token_type_string_literal; tp->string = xstrdup (buffer); @@ -1265,17 +1294,17 @@ case '@': if (objc_extensions) - { - tp->type = token_type_objc_special; - tp->comment = add_reference (savable_comment); - return; - } + { + tp->type = token_type_objc_special; + tp->comment = add_reference (savable_comment); + return; + } /* FALLTHROUGH */ default: /* We could carefully recognize each of the 2 and 3 character - operators, but it is not necessary, as we only need to recognize - gettext invocations. Don't bother. */ + operators, but it is not necessary, as we only need to recognize + gettext invocations. Don't bother. */ tp->type = token_type_symbol; return; } @@ -1289,7 +1318,7 @@ if (tp->type != token_type_eof) { if (phase5_pushback_length == SIZEOF (phase5_pushback)) - abort (); + abort (); phase5_pushback[phase5_pushback_length++] = *tp; } } @@ -1302,7 +1331,7 @@ static void phaseX_get (token_ty *tp) { - static bool middle; /* false at the beginning of a line, true otherwise. */ + static bool middle; /* false at the beginning of a line, true otherwise. */ phase5_get (tp); @@ -1311,28 +1340,28 @@ else { if (middle) - { - /* Turn hash in the middle of a line into a plain symbol token. */ - if (tp->type == token_type_hash) - tp->type = token_type_symbol; - } + { + /* Turn hash in the middle of a line into a plain symbol token. */ + if (tp->type == token_type_hash) + tp->type = token_type_symbol; + } else - { - /* When we see leading whitespace followed by a hash sign, - discard the leading white space token. The hash is all - phase 6 is interested in. */ - if (tp->type == token_type_white_space) - { - token_ty next; - - phase5_get (&next); - if (next.type == token_type_hash) - *tp = next; - else - phase5_unget (&next); - } - middle = true; - } + { + /* When we see leading whitespace followed by a hash sign, + discard the leading white space token. The hash is all + phase 6 is interested in. */ + if (tp->type == token_type_white_space) + { + token_ty next; + + phase5_get (&next); + if (next.type == token_type_hash) + *tp = next; + else + phase5_unget (&next); + } + middle = true; + } } } @@ -1362,62 +1391,62 @@ for (;;) { /* Get the next token. If it is not a '#' at the beginning of a - line (ignoring whitespace), return immediately. */ + line (ignoring whitespace), return immediately. */ phaseX_get (tp); if (tp->type != token_type_hash) - return; + return; /* Accumulate the rest of the directive in a buffer, until the - "define" keyword is seen or until end of line. */ + "define" keyword is seen or until end of line. */ bufpos = 0; for (;;) - { - phaseX_get (tp); - if (tp->type == token_type_eoln || tp->type == token_type_eof) - break; - - /* Before the "define" keyword and inside other directives - white space is irrelevant. So just throw it away. */ - if (tp->type != token_type_white_space) - { - /* If it is a #define directive, return immediately, - thus treating the body of the #define directive like - normal input. */ - if (bufpos == 0 - && tp->type == token_type_name - && strcmp (tp->string, "define") == 0) - return; - - /* Accumulate. */ - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buf = xrealloc (buf, bufmax * sizeof (buf[0])); - } - buf[bufpos++] = *tp; - } - } + { + phaseX_get (tp); + if (tp->type == token_type_eoln || tp->type == token_type_eof) + break; + + /* Before the "define" keyword and inside other directives + white space is irrelevant. So just throw it away. */ + if (tp->type != token_type_white_space) + { + /* If it is a #define directive, return immediately, + thus treating the body of the #define directive like + normal input. */ + if (bufpos == 0 + && tp->type == token_type_name + && strcmp (tp->string, "define") == 0) + return; + + /* Accumulate. */ + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buf = xrealloc (buf, bufmax * sizeof (buf[0])); + } + buf[bufpos++] = *tp; + } + } /* If it is a #line directive, with no macros to expand, act on - it. Ignore all other directives. */ + it. Ignore all other directives. */ if (bufpos >= 3 && buf[0].type == token_type_name - && strcmp (buf[0].string, "line") == 0 - && buf[1].type == token_type_number - && buf[2].type == token_type_string_literal) - { - logical_file_name = xstrdup (buf[2].string); - line_number = buf[1].number; - } + && strcmp (buf[0].string, "line") == 0 + && buf[1].type == token_type_number + && buf[2].type == token_type_string_literal) + { + logical_file_name = xstrdup (buf[2].string); + line_number = buf[1].number; + } if (bufpos >= 2 && buf[0].type == token_type_number - && buf[1].type == token_type_string_literal) - { - logical_file_name = xstrdup (buf[1].string); - line_number = buf[0].number; - } + && buf[1].type == token_type_string_literal) + { + logical_file_name = xstrdup (buf[1].string); + line_number = buf[0].number; + } /* Release the storage held by the directive. */ for (j = 0; j < bufpos; ++j) - free_token (&buf[j]); + free_token (&buf[j]); /* We must reset the selected comments. */ savable_comment_reset (); @@ -1432,7 +1461,7 @@ if (tp->type != token_type_eof) { if (phase6_pushback_length == SIZEOF (phase6_pushback)) - abort (); + abort (); phase6_pushback[phase6_pushback_length++] = *tp; } } @@ -1452,30 +1481,30 @@ { name += 3; if (name[0] == 'd' || name[0] == 'i' || name[0] == 'o' || name[0] == 'u' - || name[0] == 'x' || name[0] == 'X') - { - name += 1; - if (name[0] == 'M' && name[1] == 'A' && name[2] == 'X' - && name[3] == '\0') - return true; - if (name[0] == 'P' && name[1] == 'T' && name[2] == 'R' - && name[3] == '\0') - return true; - if (name[0] == 'L' && name[1] == 'E' && name[2] == 'A' - && name[3] == 'S' && name[4] == 'T') - name += 5; - else if (name[0] == 'F' && name[1] == 'A' && name[2] == 'S' - && name[3] == 'T') - name += 4; - if (name[0] == '8' && name[1] == '\0') - return true; - if (name[0] == '1' && name[1] == '6' && name[2] == '\0') - return true; - if (name[0] == '3' && name[1] == '2' && name[2] == '\0') - return true; - if (name[0] == '6' && name[1] == '4' && name[2] == '\0') - return true; - } + || name[0] == 'x' || name[0] == 'X') + { + name += 1; + if (name[0] == 'M' && name[1] == 'A' && name[2] == 'X' + && name[3] == '\0') + return true; + if (name[0] == 'P' && name[1] == 'T' && name[2] == 'R' + && name[3] == '\0') + return true; + if (name[0] == 'L' && name[1] == 'E' && name[2] == 'A' + && name[3] == 'S' && name[4] == 'T') + name += 5; + else if (name[0] == 'F' && name[1] == 'A' && name[2] == 'S' + && name[3] == 'T') + name += 4; + if (name[0] == '8' && name[1] == '\0') + return true; + if (name[0] == '1' && name[1] == '6' && name[2] == '\0') + return true; + if (name[0] == '3' && name[1] == '2' && name[2] == '\0') + return true; + if (name[0] == '6' && name[1] == '4' && name[2] == '\0') + return true; + } } return false; } @@ -1512,22 +1541,22 @@ phase8a_get (tp); if (tp->type == token_type_white_space) - continue; + continue; if (tp->type == token_type_eoln) - { - /* We have to track the last occurrence of a string. One - mode of xgettext allows to group an extracted message - with a comment for documentation. The rule which states - which comment is assumed to be grouped with the message - says it should immediately precede it. Our - interpretation: between the last line of the comment and - the line in which the keyword is found must be no line - with non-white space tokens. */ - ++newline_count; - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - continue; - } + { + /* We have to track the last occurrence of a string. One + mode of xgettext allows to group an extracted message + with a comment for documentation. The rule which states + which comment is assumed to be grouped with the message + says it should immediately precede it. Our + interpretation: between the last line of the comment and + the line in which the keyword is found must be no line + with non-white space tokens. */ + ++newline_count; + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + continue; + } break; } } @@ -1587,10 +1616,10 @@ phase8c_get (&tmp); if (tmp.type != token_type_string_literal) - { - phase8c_unget (&tmp); - return; - } + { + phase8c_unget (&tmp); + return; + } len = strlen (tp->string); tp->string = xrealloc (tp->string, len + strlen (tmp.string) + 1); strcpy (tp->string + len, tmp.string); @@ -1651,73 +1680,73 @@ phase8_get (&token); switch (token.type) - { - case token_type_eof: - tp->type = xgettext_token_type_eof; - return; - - case token_type_name: - last_non_comment_line = newline_count; - - if (hash_find_entry (objc_extensions ? &objc_keywords : &c_keywords, - token.string, strlen (token.string), - &keyword_value) - == 0) - { - tp->type = xgettext_token_type_keyword; - tp->shapes = (const struct callshapes *) keyword_value; - tp->pos.file_name = logical_file_name; - tp->pos.line_number = token.line_number; - } - else - tp->type = xgettext_token_type_symbol; - tp->string = token.string; - return; - - case token_type_lparen: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_lparen; - return; - - case token_type_rparen: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_rparen; - return; - - case token_type_comma: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_comma; - return; - - case token_type_colon: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_colon; - return; - - case token_type_string_literal: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_string_literal; - tp->string = token.string; - tp->comment = token.comment; - tp->pos.file_name = logical_file_name; - tp->pos.line_number = token.line_number; - return; - - case token_type_objc_special: - drop_reference (token.comment); - /* FALLTHROUGH */ - - default: - last_non_comment_line = newline_count; - - tp->type = xgettext_token_type_other; - return; - } + { + case token_type_eof: + tp->type = xgettext_token_type_eof; + return; + + case token_type_name: + last_non_comment_line = newline_count; + + if (hash_find_entry (objc_extensions ? &objc_keywords : &c_keywords, + token.string, strlen (token.string), + &keyword_value) + == 0) + { + tp->type = xgettext_token_type_keyword; + tp->shapes = (const struct callshapes *) keyword_value; + tp->pos.file_name = logical_file_name; + tp->pos.line_number = token.line_number; + } + else + tp->type = xgettext_token_type_symbol; + tp->string = token.string; + return; + + case token_type_lparen: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_lparen; + return; + + case token_type_rparen: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_rparen; + return; + + case token_type_comma: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_comma; + return; + + case token_type_colon: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_colon; + return; + + case token_type_string_literal: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_string_literal; + tp->string = token.string; + tp->comment = token.comment; + tp->pos.file_name = logical_file_name; + tp->pos.line_number = token.line_number; + return; + + case token_type_objc_special: + drop_reference (token.comment); + /* FALLTHROUGH */ + + default: + last_non_comment_line = newline_count; + + tp->type = xgettext_token_type_other; + return; + } } } @@ -1749,9 +1778,9 @@ Return true upon eof, false upon closing parenthesis. */ static bool extract_parenthesized (message_list_ty *mlp, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -1769,7 +1798,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -1780,119 +1809,119 @@ x_c_lex (&token); switch (token.type) - { - case xgettext_token_type_keyword: - next_shapes = token.shapes; - state = 1; - goto keyword_or_symbol; - - case xgettext_token_type_symbol: - state = 0; - keyword_or_symbol: - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, strlen (token.string))); - if (objc_extensions) - { - size_t token_string_len = strlen (token.string); - token.string = xrealloc (token.string, token_string_len + 2); - token.string[token_string_len] = ':'; - token.string[token_string_len + 1] = '\0'; - selectorcall_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, token_string_len + 1)); - } - free (token.string); - continue; - - case xgettext_token_type_lparen: - if (extract_parenthesized (mlp, inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - arglist_parser_done (argparser, arg); - return true; - } - next_context_iter = null_context_list_iterator; - selectorcall_context_iter = null_context_list_iterator; - state = 0; - continue; - - case xgettext_token_type_rparen: - arglist_parser_done (argparser, arg); - return false; - - case xgettext_token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - selectorcall_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case xgettext_token_type_colon: - if (objc_extensions) - { - context_iter = selectorcall_context_iter; - inner_context = - inherited_context (inner_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - selectorcall_context_iter = passthrough_context_list_iterator; - } - else - { - next_context_iter = null_context_list_iterator; - selectorcall_context_iter = null_context_list_iterator; - } - state = 0; - continue; - - case xgettext_token_type_string_literal: - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, - &token.pos, token.comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - token.pos.file_name, token.pos.line_number, - token.comment); - drop_reference (token.comment); - next_context_iter = null_context_list_iterator; - selectorcall_context_iter = null_context_list_iterator; - state = 0; - continue; - - case xgettext_token_type_other: - next_context_iter = null_context_list_iterator; - selectorcall_context_iter = null_context_list_iterator; - state = 0; - continue; - - case xgettext_token_type_eof: - arglist_parser_done (argparser, arg); - return true; - - default: - abort (); - } + { + case xgettext_token_type_keyword: + next_shapes = token.shapes; + state = 1; + goto keyword_or_symbol; + + case xgettext_token_type_symbol: + state = 0; + keyword_or_symbol: + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, strlen (token.string))); + if (objc_extensions) + { + size_t token_string_len = strlen (token.string); + token.string = xrealloc (token.string, token_string_len + 2); + token.string[token_string_len] = ':'; + token.string[token_string_len + 1] = '\0'; + selectorcall_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, token_string_len + 1)); + } + free (token.string); + continue; + + case xgettext_token_type_lparen: + if (extract_parenthesized (mlp, inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + arglist_parser_done (argparser, arg); + return true; + } + next_context_iter = null_context_list_iterator; + selectorcall_context_iter = null_context_list_iterator; + state = 0; + continue; + + case xgettext_token_type_rparen: + arglist_parser_done (argparser, arg); + return false; + + case xgettext_token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + selectorcall_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case xgettext_token_type_colon: + if (objc_extensions) + { + context_iter = selectorcall_context_iter; + inner_context = + inherited_context (inner_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + selectorcall_context_iter = passthrough_context_list_iterator; + } + else + { + next_context_iter = null_context_list_iterator; + selectorcall_context_iter = null_context_list_iterator; + } + state = 0; + continue; + + case xgettext_token_type_string_literal: + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, + &token.pos, NULL, token.comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + token.pos.file_name, token.pos.line_number, + token.comment); + drop_reference (token.comment); + next_context_iter = null_context_list_iterator; + selectorcall_context_iter = null_context_list_iterator; + state = 0; + continue; + + case xgettext_token_type_other: + next_context_iter = null_context_list_iterator; + selectorcall_context_iter = null_context_list_iterator; + state = 0; + continue; + + case xgettext_token_type_eof: + arglist_parser_done (argparser, arg); + return true; + + default: + abort (); + } } } static void extract_whole_file (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -1912,7 +1941,7 @@ /* Eat tokens until eof is seen. When extract_parenthesized returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_parenthesized (mlp, null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + arglist_parser_alloc (mlp, NULL))) ; /* Close scanner. */ @@ -1925,9 +1954,9 @@ void extract_c (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { objc_extensions = false; extract_whole_file (f, real_filename, logical_filename, flag_table, mdlp); @@ -1935,9 +1964,9 @@ void extract_objc (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { objc_extensions = true; extract_whole_file (f, real_filename, logical_filename, flag_table, mdlp); diff -Nru gettext-0.17/gettext-tools/src/x-c.h gettext-0.18.1.1/gettext-tools/src/x-c.h --- gettext-0.17/gettext-tools/src/x-c.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-c.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext C/C++/ObjectiveC backend. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -28,38 +28,42 @@ #define EXTENSIONS_C \ - { "c", "C" }, \ - { "h", "C" }, \ - { "C", "C++" }, \ - { "c++", "C++" }, \ - { "cc", "C++" }, \ - { "cxx", "C++" }, \ - { "cpp", "C++" }, \ - { "hh", "C++" }, \ - { "hxx", "C++" }, \ - { "hpp", "C++" }, \ - { "m", "ObjectiveC" }, \ + { "c", "C" }, \ + { "h", "C" }, \ + { "C", "C++" }, \ + { "c++", "C++" }, \ + { "cc", "C++" }, \ + { "cxx", "C++" }, \ + { "cpp", "C++" }, \ + { "hh", "C++" }, \ + { "hxx", "C++" }, \ + { "hpp", "C++" }, \ + { "m", "ObjectiveC" }, \ #define SCANNERS_C \ - { "C", extract_c, \ - &flag_table_c, &formatstring_c, NULL }, \ - { "C++", extract_c, \ - &flag_table_c, &formatstring_c, NULL }, \ - { "ObjectiveC", extract_objc, \ - &flag_table_objc, &formatstring_c, &formatstring_objc }, \ - { "GCC-source", extract_c, \ - &flag_table_gcc_internal, &formatstring_gcc_internal, NULL }, \ + { "C", extract_c, \ + &flag_table_c, \ + &formatstring_c, NULL }, \ + { "C++", extract_c, \ + &flag_table_c, \ + &formatstring_c, NULL }, \ + { "ObjectiveC", extract_objc, \ + &flag_table_objc, \ + &formatstring_c, &formatstring_objc }, \ + { "GCC-source", extract_c, \ + &flag_table_gcc_internal, \ + &formatstring_gcc_internal, &formatstring_gfc_internal }, \ /* Scan a C/C++ file and add its translatable strings to mdlp. */ extern void extract_c (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Scan an ObjectiveC file and add its translatable strings to mdlp. */ extern void extract_objc (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-csharp.c gettext-0.18.1.1/gettext-tools/src/x-csharp.c --- gettext-0.17/gettext-tools/src/x-csharp.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-csharp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext C# backend. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -30,7 +30,6 @@ #include "message.h" #include "xgettext.h" -#include "x-csharp.h" #include "c-ctype.h" #include "error.h" #include "error-progname.h" @@ -80,16 +79,16 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C# - identifier sequence with dots. - A colon means an invalid parse in split_keywordspec(). */ + identifier sequence with dots. + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -101,9 +100,9 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ - x_csharp_keyword ("GetString"); /* Resource{Manager,Set}.GetString */ - x_csharp_keyword ("GetPluralString:1,2"); /* GettextResource{Manager,Set}.GetPluralString */ + xgettext.texi! */ + x_csharp_keyword ("GetString"); /* Resource{Manager,Set}.GetString */ + x_csharp_keyword ("GetPluralString:1,2"); /* GettextResource{Manager,Set}.GetPluralString */ x_csharp_keyword ("GetParticularString:1c,2"); /* Resource{Manager,Set}.GetParticularString */ x_csharp_keyword ("GetParticularPluralString:1c,2,3"); /* Resource{Manager,Set}.GetParticularPluralString */ default_keywords = false; @@ -153,7 +152,7 @@ { c = phase1_pushback[--phase1_pushback_length]; if (c == '\n') - ++line_number; + ++line_number; return c; } @@ -161,8 +160,8 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); return EOF; } @@ -178,9 +177,9 @@ if (c != EOF) { if (c == '\n') - --line_number; + --line_number; if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; } } @@ -198,6 +197,8 @@ /* Newline Unicode character. */ #define UNL 0x000a +static lexical_context_ty lexical_context; + static int phase2_pushback[1]; static int phase2_pushback_length; @@ -212,141 +213,141 @@ { int c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; if (!c_isascii (c)) - { - char buffer[21]; - sprintf (buffer, ":%ld", (long) line_number); - multiline_error (xstrdup (""), - xasprintf (_("\ -Non-ASCII string at %s%s.\n\ -Please specify the source encoding through --from-code.\n"), - real_file_name, buffer)); - exit (EXIT_FAILURE); - } + { + multiline_error (xstrdup (""), + xasprintf ("%s\n%s\n", + non_ascii_error_message (lexical_context, + real_file_name, + line_number), + _("\ +Please specify the source encoding through --from-code."))); + exit (EXIT_FAILURE); + } return c; } else if (xgettext_current_source_encoding != po_charset_utf8) { #if HAVE_ICONV /* Use iconv on an increasing number of bytes. Read only as many bytes - through phase1_getc as needed. This is needed to give reasonable - interactive behaviour when fp is connected to an interactive tty. */ + through phase1_getc as needed. This is needed to give reasonable + interactive behaviour when fp is connected to an interactive tty. */ unsigned char buf[MAX_PHASE1_PUSHBACK]; size_t bufcount; int c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; buf[0] = (unsigned char) c; bufcount = 1; for (;;) - { - unsigned char scratchbuf[6]; - const char *inptr = (const char *) &buf[0]; - size_t insize = bufcount; - char *outptr = (char *) &scratchbuf[0]; - size_t outsize = sizeof (scratchbuf); - - size_t res = iconv (xgettext_current_source_iconv, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - /* We expect that a character has been produced if and only if - some input bytes have been consumed. */ - if ((insize < bufcount) != (outsize < sizeof (scratchbuf))) - abort (); - if (outsize == sizeof (scratchbuf)) - { - /* No character has been produced. Must be an error. */ - if (res != (size_t)(-1)) - abort (); - - if (errno == EILSEQ) - { - /* An invalid multibyte sequence was encountered. */ - multiline_error (xstrdup (""), - xasprintf (_("\ + { + unsigned char scratchbuf[6]; + const char *inptr = (const char *) &buf[0]; + size_t insize = bufcount; + char *outptr = (char *) &scratchbuf[0]; + size_t outsize = sizeof (scratchbuf); + + size_t res = iconv (xgettext_current_source_iconv, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + /* We expect that a character has been produced if and only if + some input bytes have been consumed. */ + if ((insize < bufcount) != (outsize < sizeof (scratchbuf))) + abort (); + if (outsize == sizeof (scratchbuf)) + { + /* No character has been produced. Must be an error. */ + if (res != (size_t)(-1)) + abort (); + + if (errno == EILSEQ) + { + /* An invalid multibyte sequence was encountered. */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Invalid multibyte sequence.\n\ Please specify the correct source encoding through --from-code.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - else if (errno == EINVAL) - { - /* An incomplete multibyte character. */ - int c; - - if (bufcount == MAX_PHASE1_PUSHBACK) - { - /* An overlong incomplete multibyte sequence was - encountered. */ - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + else if (errno == EINVAL) + { + /* An incomplete multibyte character. */ + int c; + + if (bufcount == MAX_PHASE1_PUSHBACK) + { + /* An overlong incomplete multibyte sequence was + encountered. */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Long incomplete multibyte sequence.\n\ Please specify the correct source encoding through --from-code.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - - /* Read one more byte and retry iconv. */ - c = phase1_getc (); - if (c == EOF) - { - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + + /* Read one more byte and retry iconv. */ + c = phase1_getc (); + if (c == EOF) + { + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Incomplete multibyte sequence at end of file.\n\ Please specify the correct source encoding through --from-code.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - if (c == '\n') - { - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + if (c == '\n') + { + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Incomplete multibyte sequence at end of line.\n\ Please specify the correct source encoding through --from-code.\n"), - real_file_name, line_number - 1)); - exit (EXIT_FAILURE); - } - buf[bufcount++] = (unsigned char) c; - } - else - error (EXIT_FAILURE, errno, _("%s:%d: iconv failure"), - real_file_name, line_number); - } - else - { - size_t outbytes = sizeof (scratchbuf) - outsize; - size_t bytes = bufcount - insize; - unsigned int uc; - - /* We expect that one character has been produced. */ - if (bytes == 0) - abort (); - if (outbytes == 0) - abort (); - /* Push back the unused bytes. */ - while (insize > 0) - phase1_ungetc (buf[--insize]); - /* Convert the character from UTF-8 to UCS-4. */ - if (u8_mbtouc (&uc, scratchbuf, outbytes) < outbytes) - { - /* scratchbuf contains an out-of-range Unicode character - (> 0x10ffff). */ - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number - 1)); + exit (EXIT_FAILURE); + } + buf[bufcount++] = (unsigned char) c; + } + else + error (EXIT_FAILURE, errno, _("%s:%d: iconv failure"), + real_file_name, line_number); + } + else + { + size_t outbytes = sizeof (scratchbuf) - outsize; + size_t bytes = bufcount - insize; + ucs4_t uc; + + /* We expect that one character has been produced. */ + if (bytes == 0) + abort (); + if (outbytes == 0) + abort (); + /* Push back the unused bytes. */ + while (insize > 0) + phase1_ungetc (buf[--insize]); + /* Convert the character from UTF-8 to UCS-4. */ + if (u8_mbtouc (&uc, scratchbuf, outbytes) < outbytes) + { + /* scratchbuf contains an out-of-range Unicode character + (> 0x10ffff). */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Invalid multibyte sequence.\n\ Please specify the source encoding through --from-code.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - return uc; - } - } + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + return uc; + } + } #else /* If we don't have iconv(), the only supported values for - xgettext_global_source_encoding and thus also for - xgettext_current_source_encoding are ASCII and UTF-8. */ + xgettext_global_source_encoding and thus also for + xgettext_current_source_encoding are ASCII and UTF-8. */ abort (); #endif } @@ -356,68 +357,68 @@ unsigned char buf[6]; unsigned int count; int c; - unsigned int uc; + ucs4_t uc; c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; buf[0] = c; count = 1; if (buf[0] >= 0xc0) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[1] = c; - count = 2; - } + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[1] = c; + count = 2; + } if (buf[0] >= 0xe0 - && ((buf[1] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[2] = c; - count = 3; - } + && ((buf[1] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[2] = c; + count = 3; + } if (buf[0] >= 0xf0 - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[3] = c; - count = 4; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[3] = c; + count = 4; + } if (buf[0] >= 0xf8 - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40) - && ((buf[3] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[4] = c; - count = 5; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40) + && ((buf[3] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[4] = c; + count = 5; + } if (buf[0] >= 0xfc - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40) - && ((buf[3] ^ 0x80) < 0x40) - && ((buf[4] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[5] = c; - count = 6; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40) + && ((buf[3] ^ 0x80) < 0x40) + && ((buf[4] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[5] = c; + count = 6; + } u8_mbtouc (&uc, buf, count); return uc; @@ -431,7 +432,7 @@ if (c != UEOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -457,7 +458,7 @@ { c = phase3_pushback[--phase3_pushback_length]; if (c == UNL) - ++logical_line_number; + ++logical_line_number; return c; } @@ -468,7 +469,7 @@ int c1 = phase2_getc (); if (c1 != UEOF && c1 != 0x000a) - phase2_ungetc (c1); + phase2_ungetc (c1); /* Seen line terminator CR or CR/LF. */ ++logical_line_number; @@ -487,8 +488,8 @@ int c1 = phase2_getc (); if (c1 == UEOF) - /* Seen U+001A right before the end of file. */ - return UEOF; + /* Seen U+001A right before the end of file. */ + return UEOF; phase2_ungetc (c1); } @@ -505,9 +506,9 @@ if (c != UEOF) { if (c == UNL) - --logical_line_number; + --logical_line_number; if (phase3_pushback_length == SIZEOF (phase3_pushback)) - abort (); + abort (); phase3_pushback[phase3_pushback_length++] = c; } } @@ -543,7 +544,7 @@ { size_t new_allocated = 2 * bp->utf8_allocated + 10; if (new_allocated < bp->utf8_buflen + count) - new_allocated = bp->utf8_buflen + count; + new_allocated = bp->utf8_buflen + count; bp->utf8_allocated = new_allocated; bp->utf8_buffer = xrealloc (bp->utf8_buffer, new_allocated); } @@ -595,6 +596,7 @@ static inline void comment_start () { + lexical_context = lc_comment; comment_buffer.utf8_buflen = 0; } @@ -618,10 +620,11 @@ buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; buffer[buflen] = '\0'; savable_comment_add (buffer); + lexical_context = lc_outside; } @@ -657,39 +660,39 @@ comment_start (); last_was_star = false; for (;;) - { - c = phase3_getc (); - if (c == UEOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(comment_at_start () && (c == ' ' || c == '\t'))) - comment_add (c); - switch (c) - { - case UNL: - comment_line_end (1); - comment_start (); - last_was_star = false; - continue; - - case '*': - last_was_star = true; - continue; - - case '/': - if (last_was_star) - { - comment_line_end (2); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - continue; - } - break; - } + { + c = phase3_getc (); + if (c == UEOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (c == ' ' || c == '\t'))) + comment_add (c); + switch (c) + { + case UNL: + comment_line_end (1); + comment_start (); + last_was_star = false; + continue; + + case '*': + last_was_star = true; + continue; + + case '/': + if (last_was_star) + { + comment_line_end (2); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + continue; + } + break; + } last_comment_line = logical_line_number; return ' '; @@ -698,14 +701,14 @@ last_comment_line = logical_line_number; comment_start (); for (;;) - { - c = phase3_getc (); - if (c == UNL || c == UEOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(comment_at_start () && (c == ' ' || c == '\t'))) - comment_add (c); - } + { + c = phase3_getc (); + if (c == UNL || c == UEOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (c == ' ' || c == '\t'))) + comment_add (c); + } phase3_ungetc (c); /* push back the newline, to decrement logical_line_number */ comment_line_end (0); phase3_getc (); /* read the newline again */ @@ -761,17 +764,17 @@ { int lookup1 = ((const int *) table)[1 + index1]; if (lookup1 >= 0) - { - unsigned int index2 = (uc >> 9) & 0x7f; - int lookup2 = ((const int *) table)[lookup1 + index2]; - if (lookup2 >= 0) - { - unsigned int index3 = (uc >> 5) & 0xf; - unsigned int lookup3 = ((const int *) table)[lookup2 + index3]; - - return (lookup3 >> (uc & 0x1f)) & 1; - } - } + { + unsigned int index2 = (uc >> 9) & 0x7f; + int lookup2 = ((const int *) table)[lookup1 + index2]; + if (lookup2 >= 0) + { + unsigned int index3 = (uc >> 5) & 0xf; + unsigned int lookup3 = ((const int *) table)[lookup2 + index3]; + + return (lookup3 >> (uc & 0x1f)) & 1; + } + } } return 0; } @@ -1270,9 +1273,9 @@ if (c == '#') { /* Ignore the entire line containing the preprocessor directive - (including the // comment if it contains one). */ + (including the // comment if it contains one). */ do - c = phase3_getc (); + c = phase3_getc (); while (c != UEOF && c != UNL); return c; } @@ -1290,7 +1293,7 @@ if (c != UEOF) { if (phase5_pushback_length == SIZEOF (phase5_pushback)) - abort (); + abort (); phase5_pushback[phase5_pushback_length++] = c; } } @@ -1302,17 +1305,17 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_lbrace, /* { */ - token_type_rbrace, /* } */ - token_type_comma, /* , */ - token_type_dot, /* . */ - token_type_string_literal, /* "abc", @"abc" */ - token_type_number, /* 1.23 */ - token_type_symbol, /* identifier, keyword, null */ - token_type_plus, /* + */ - token_type_other /* character literal, misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_lbrace, /* { */ + token_type_rbrace, /* } */ + token_type_comma, /* , */ + token_type_dot, /* . */ + token_type_string_literal, /* "abc", @"abc" */ + token_type_number, /* 1.23 */ + token_type_symbol, /* identifier, keyword, null */ + token_type_plus, /* + */ + token_type_other /* character literal, misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -1320,8 +1323,8 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string_literal, token_type_symbol */ - refcounted_string_list_ty *comment; /* for token_type_string_literal */ + char *string; /* for token_type_string_literal, token_type_symbol */ + refcounted_string_list_ty *comment; /* for token_type_string_literal */ int line_number; int logical_line_number; }; @@ -1360,39 +1363,39 @@ expect = (c == 'U' ? 8 : 4); n = 0; for (i = 0; i < expect; i++) - { - int c1 = phase3_getc (); + { + int c1 = phase3_getc (); - if (c1 >= '0' && c1 <= '9') - n = (n << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - n = (n << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - n = (n << 4) + (c1 - 'a' + 10); - else - { - phase3_ungetc (c1); - while (--i >= 0) - phase3_ungetc (buf[i]); - phase3_ungetc (c); - return '\\'; - } + if (c1 >= '0' && c1 <= '9') + n = (n << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + n = (n << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + n = (n << 4) + (c1 - 'a' + 10); + else + { + phase3_ungetc (c1); + while (--i >= 0) + phase3_ungetc (buf[i]); + phase3_ungetc (c); + return '\\'; + } - buf[i] = c1; - } + buf[i] = c1; + } if (n >= 0x110000) - { - error_with_progname = false; - error (0, 0, _("%s:%d: warning: invalid Unicode character"), - logical_file_name, line_number); - error_with_progname = true; - } + { + error_with_progname = false; + error (0, 0, _("%s:%d: warning: invalid Unicode character"), + logical_file_name, line_number); + error_with_progname = true; + } else if (predicate (n)) - return n; + return n; while (--i >= 0) - phase3_ungetc (buf[i]); + phase3_ungetc (buf[i]); } phase3_ungetc (c); return '\\'; @@ -1439,41 +1442,41 @@ case 'x': c = phase3_getc (); switch (c) - { - default: - phase3_ungetc (c); - phase3_ungetc ('x'); - return '\\'; - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - break; - } + { + default: + phase3_ungetc (c); + phase3_ungetc ('x'); + return '\\'; + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + break; + } n = 0; for (i = 0;; i++) - { - switch (c) - { - default: - phase3_ungetc (c); - return n; - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - n = n * 16 + c - '0'; - break; - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - n = n * 16 + 10 + c - 'A'; - break; - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - n = n * 16 + 10 + c - 'a'; - break; - } - if (i == 3) - break; - c = phase3_getc (); - } + { + switch (c) + { + default: + phase3_ungetc (c); + return n; + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + n = n * 16 + c - '0'; + break; + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + n = n * 16 + 10 + c - 'A'; + break; + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + n = n * 16 + 10 + c - 'a'; + break; + } + if (i == 3) + break; + c = phase3_getc (); + } return n; case 'u': case 'U': phase3_ungetc (c); @@ -1497,22 +1500,22 @@ /* Use phase 3, because phase 4 elides comments. */ c = phase3_getc (); if (c == UEOF || c == delimiter) - break; + break; if (c == UNL) - { - phase3_ungetc (c); - error_with_progname = false; - if (delimiter == '\'') - error (0, 0, _("%s:%d: warning: unterminated character constant"), - logical_file_name, line_number); - else - error (0, 0, _("%s:%d: warning: unterminated string constant"), - logical_file_name, line_number); - error_with_progname = true; - break; - } + { + phase3_ungetc (c); + error_with_progname = false; + if (delimiter == '\'') + error (0, 0, _("%s:%d: warning: unterminated character constant"), + logical_file_name, line_number); + else + error (0, 0, _("%s:%d: warning: unterminated string constant"), + logical_file_name, line_number); + error_with_progname = true; + break; + } if (c == '\\') - c = do_getc_escaped (); + c = do_getc_escaped (); string_buffer_append_unicode (literal, c); } } @@ -1543,199 +1546,203 @@ c = phase5_getc (); if (c == UEOF) - { - tp->type = token_type_eof; - return; - } + { + tp->type = token_type_eof; + return; + } switch (c) - { - case UNL: - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case ' ': - case '\t': - case '\f': - /* Ignore whitespace and comments. */ - continue; - } + { + case UNL: + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case ' ': + case '\t': + case '\f': + /* Ignore whitespace and comments. */ + continue; + } last_non_comment_line = tp->logical_line_number; switch (c) - { - case '(': - tp->type = token_type_lparen; - return; - - case ')': - tp->type = token_type_rparen; - return; - - case '{': - tp->type = token_type_lbrace; - return; - - case '}': - tp->type = token_type_rbrace; - return; - - case ',': - tp->type = token_type_comma; - return; - - case '.': - c = phase4_getc (); - if (!(c >= '0' && c <= '9')) - { - phase4_ungetc (c); - tp->type = token_type_dot; - return; - } - /* FALLTHROUGH */ - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - { - /* Don't need to verify the complicated syntax of integers and - floating-point numbers. We assume a valid C# input. - The simplified syntax that we recognize as number is: any - sequence of alphanumeric characters, additionally '+' and '-' - immediately after 'e' or 'E' except in hexadecimal numbers. */ - bool hexadecimal = false; - - for (;;) - { - c = phase4_getc (); - if (c >= '0' && c <= '9') - continue; - if ((c >= 'A' && c <= 'Z') || (c >= 'a' &&c <= 'z')) - { - if (c == 'X' || c == 'x') - hexadecimal = true; - if ((c == 'E' || c == 'e') && !hexadecimal) - { - c = phase4_getc (); - if (!(c == '+' || c == '-')) - phase4_ungetc (c); - } - continue; - } - if (c == '.') - continue; - break; - } - phase4_ungetc (c); - tp->type = token_type_number; - return; - } - - case '"': - /* Regular string literal. */ - { - struct string_buffer literal; - - init_string_buffer (&literal); - accumulate_escaped (&literal, '"'); - tp->string = xstrdup (string_buffer_result (&literal)); - free_string_buffer (&literal); - tp->comment = add_reference (savable_comment); - tp->type = token_type_string_literal; - return; - } - - case '\'': - /* Character literal. */ - { - struct string_buffer literal; - - init_string_buffer (&literal); - accumulate_escaped (&literal, '\''); - free_string_buffer (&literal); - tp->type = token_type_other; - return; - } - - case '+': - c = phase4_getc (); - if (c == '+') - /* Operator ++ */ - tp->type = token_type_other; - else if (c == '=') - /* Operator += */ - tp->type = token_type_other; - else - { - /* Operator + */ - phase4_ungetc (c); - tp->type = token_type_plus; - } - return; - - case '@': - c = phase4_getc (); - if (c == '"') - { - /* Verbatim string literal. */ - struct string_buffer literal; - - init_string_buffer (&literal); - for (;;) - { - /* Use phase 2, because phase 4 elides comments and phase 3 - mixes up the newline characters. */ - c = phase2_getc (); - if (c == UEOF) - break; - if (c == '"') - { - c = phase2_getc (); - if (c != '"') - { - phase2_ungetc (c); - break; - } - } - /* No special treatment of newline and backslash here. */ - string_buffer_append_unicode (&literal, c); - } - tp->string = xstrdup (string_buffer_result (&literal)); - free_string_buffer (&literal); - tp->comment = add_reference (savable_comment); - tp->type = token_type_string_literal; - return; - } - /* FALLTHROUGH, so that @identifier is recognized. */ - - default: - if (c == '\\') - c = do_getc_unicode_escaped (is_identifier_start); - if (is_identifier_start (c)) - { - static struct string_buffer buffer; - buffer.utf8_buflen = 0; - for (;;) - { - string_buffer_append_unicode (&buffer, c); - c = phase4_getc (); - if (c == '\\') - c = do_getc_unicode_escaped (is_identifier_part); - if (!is_identifier_part (c)) - break; - } - phase4_ungetc (c); - tp->string = xstrdup (string_buffer_result (&buffer)); - tp->type = token_type_symbol; - return; - } - else - { - /* Misc. operator. */ - tp->type = token_type_other; - return; - } - } + { + case '(': + tp->type = token_type_lparen; + return; + + case ')': + tp->type = token_type_rparen; + return; + + case '{': + tp->type = token_type_lbrace; + return; + + case '}': + tp->type = token_type_rbrace; + return; + + case ',': + tp->type = token_type_comma; + return; + + case '.': + c = phase4_getc (); + if (!(c >= '0' && c <= '9')) + { + phase4_ungetc (c); + tp->type = token_type_dot; + return; + } + /* FALLTHROUGH */ + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + { + /* Don't need to verify the complicated syntax of integers and + floating-point numbers. We assume a valid C# input. + The simplified syntax that we recognize as number is: any + sequence of alphanumeric characters, additionally '+' and '-' + immediately after 'e' or 'E' except in hexadecimal numbers. */ + bool hexadecimal = false; + + for (;;) + { + c = phase4_getc (); + if (c >= '0' && c <= '9') + continue; + if ((c >= 'A' && c <= 'Z') || (c >= 'a' &&c <= 'z')) + { + if (c == 'X' || c == 'x') + hexadecimal = true; + if ((c == 'E' || c == 'e') && !hexadecimal) + { + c = phase4_getc (); + if (!(c == '+' || c == '-')) + phase4_ungetc (c); + } + continue; + } + if (c == '.') + continue; + break; + } + phase4_ungetc (c); + tp->type = token_type_number; + return; + } + + case '"': + /* Regular string literal. */ + { + struct string_buffer literal; + + lexical_context = lc_string; + init_string_buffer (&literal); + accumulate_escaped (&literal, '"'); + tp->string = xstrdup (string_buffer_result (&literal)); + free_string_buffer (&literal); + tp->comment = add_reference (savable_comment); + lexical_context = lc_outside; + tp->type = token_type_string_literal; + return; + } + + case '\'': + /* Character literal. */ + { + struct string_buffer literal; + + init_string_buffer (&literal); + accumulate_escaped (&literal, '\''); + free_string_buffer (&literal); + tp->type = token_type_other; + return; + } + + case '+': + c = phase4_getc (); + if (c == '+') + /* Operator ++ */ + tp->type = token_type_other; + else if (c == '=') + /* Operator += */ + tp->type = token_type_other; + else + { + /* Operator + */ + phase4_ungetc (c); + tp->type = token_type_plus; + } + return; + + case '@': + c = phase4_getc (); + if (c == '"') + { + /* Verbatim string literal. */ + struct string_buffer literal; + + lexical_context = lc_string; + init_string_buffer (&literal); + for (;;) + { + /* Use phase 2, because phase 4 elides comments and phase 3 + mixes up the newline characters. */ + c = phase2_getc (); + if (c == UEOF) + break; + if (c == '"') + { + c = phase2_getc (); + if (c != '"') + { + phase2_ungetc (c); + break; + } + } + /* No special treatment of newline and backslash here. */ + string_buffer_append_unicode (&literal, c); + } + tp->string = xstrdup (string_buffer_result (&literal)); + free_string_buffer (&literal); + tp->comment = add_reference (savable_comment); + lexical_context = lc_outside; + tp->type = token_type_string_literal; + return; + } + /* FALLTHROUGH, so that @identifier is recognized. */ + + default: + if (c == '\\') + c = do_getc_unicode_escaped (is_identifier_start); + if (is_identifier_start (c)) + { + static struct string_buffer buffer; + buffer.utf8_buflen = 0; + for (;;) + { + string_buffer_append_unicode (&buffer, c); + c = phase4_getc (); + if (c == '\\') + c = do_getc_unicode_escaped (is_identifier_part); + if (!is_identifier_part (c)) + break; + } + phase4_ungetc (c); + tp->string = xstrdup (string_buffer_result (&buffer)); + tp->type = token_type_symbol; + return; + } + else + { + /* Misc. operator. */ + tp->type = token_type_other; + return; + } + } } } @@ -1746,7 +1753,7 @@ if (tp->type != token_type_eof) { if (phase6_pushback_length == SIZEOF (phase6_pushback)) - abort (); + abort (); phase6_pushback[phase6_pushback_length++] = *tp; } } @@ -1776,41 +1783,41 @@ size_t sum_len = strlen (sum); for (;;) - { - token_ty token2; + { + token_ty token2; - phase6_get (&token2); - if (token2.type == token_type_plus) - { - token_ty token3; - - phase6_get (&token3); - if (token3.type == token_type_string_literal) - { - token_ty token_after; - - phase6_get (&token_after); - if (token_after.type != token_type_dot) - { - char *addend = token3.string; - size_t addend_len = strlen (addend); - - sum = (char *) xrealloc (sum, sum_len + addend_len + 1); - memcpy (sum + sum_len, addend, addend_len + 1); - sum_len += addend_len; - - phase6_unget (&token_after); - free_token (&token3); - free_token (&token2); - continue; - } - phase6_unget (&token_after); - } - phase6_unget (&token3); - } - phase6_unget (&token2); - break; - } + phase6_get (&token2); + if (token2.type == token_type_plus) + { + token_ty token3; + + phase6_get (&token3); + if (token3.type == token_type_string_literal) + { + token_ty token_after; + + phase6_get (&token_after); + if (token_after.type != token_type_dot) + { + char *addend = token3.string; + size_t addend_len = strlen (addend); + + sum = (char *) xrealloc (sum, sum_len + addend_len + 1); + memcpy (sum + sum_len, addend, addend_len + 1); + sum_len += addend_len; + + phase6_unget (&token_after); + free_token (&token3); + free_token (&token2); + continue; + } + phase6_unget (&token_after); + } + phase6_unget (&token3); + } + phase6_unget (&token2); + break; + } tp->string = sum; } } @@ -1822,7 +1829,7 @@ if (tp->type != token_type_eof) { if (phase7_pushback_length == SIZEOF (phase7_pushback)) - abort (); + abort (); phase7_pushback[phase7_pushback_length++] = *tp; } } @@ -1870,9 +1877,9 @@ Return true upon eof, false upon closing parenthesis or brace. */ static bool extract_parenthesized (message_list_ty *mlp, token_type_ty terminator, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -1886,7 +1893,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -1897,219 +1904,219 @@ x_csharp_lex (&token); switch (token.type) - { - case token_type_symbol: - { - /* Combine symbol1 . ... . symbolN to a single strings, so that - we can recognize static function calls like - GettextResource.gettext. The information present for - symbolI.....symbolN has precedence over the information for - symbolJ.....symbolN with J > I. */ - char *sum = token.string; - size_t sum_len = strlen (sum); - const char *dottedname; - flag_context_list_ty *context_list; - - for (;;) - { - token_ty token2; - - x_csharp_lex (&token2); - if (token2.type == token_type_dot) - { - token_ty token3; - - x_csharp_lex (&token3); - if (token3.type == token_type_symbol) - { - char *addend = token3.string; - size_t addend_len = strlen (addend); - - sum = - (char *) xrealloc (sum, sum_len + 1 + addend_len + 1); - sum[sum_len] = '.'; - memcpy (sum + sum_len + 1, addend, addend_len + 1); - sum_len += 1 + addend_len; - - free_token (&token3); - free_token (&token2); - continue; - } - x_csharp_unlex (&token3); - } - x_csharp_unlex (&token2); - break; - } - - for (dottedname = sum;;) - { - void *keyword_value; - - if (hash_find_entry (&keywords, dottedname, strlen (dottedname), - &keyword_value) - == 0) - { - next_shapes = (const struct callshapes *) keyword_value; - state = 1; - break; - } - - dottedname = strchr (dottedname, '.'); - if (dottedname == NULL) - { - state = 0; - break; - } - dottedname++; - } - - for (dottedname = sum;;) - { - context_list = - flag_context_list_table_lookup ( - flag_context_list_table, - dottedname, strlen (dottedname)); - if (context_list != NULL) - break; - - dottedname = strchr (dottedname, '.'); - if (dottedname == NULL) - break; - dottedname++; - } - next_context_iter = flag_context_list_iterator (context_list); - - free (sum); - continue; - } - - case token_type_lparen: - if (extract_parenthesized (mlp, token_type_rparen, - inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - if (terminator == token_type_rparen) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return false; - } - if (terminator == token_type_rbrace) - { - error_with_progname = false; - error (0, 0, - _("%s:%d: warning: ')' found where '}' was expected"), - logical_file_name, token.line_number); - error_with_progname = true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_lbrace: - if (extract_parenthesized (mlp, token_type_rbrace, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rbrace: - if (terminator == token_type_rbrace) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return false; - } - if (terminator == token_type_rparen) - { - error_with_progname = false; - error (0, 0, - _("%s:%d: warning: '}' found where ')' was expected"), - logical_file_name, token.line_number); - error_with_progname = true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case token_type_string_literal: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - xgettext_current_source_encoding = po_charset_utf8; - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, - &pos, token.comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - pos.file_name, pos.line_number, - token.comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - } - drop_reference (token.comment); - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_eof: - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - - case token_type_dot: - case token_type_number: - case token_type_plus: - case token_type_other: - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - default: - abort (); - } + { + case token_type_symbol: + { + /* Combine symbol1 . ... . symbolN to a single strings, so that + we can recognize static function calls like + GettextResource.gettext. The information present for + symbolI.....symbolN has precedence over the information for + symbolJ.....symbolN with J > I. */ + char *sum = token.string; + size_t sum_len = strlen (sum); + const char *dottedname; + flag_context_list_ty *context_list; + + for (;;) + { + token_ty token2; + + x_csharp_lex (&token2); + if (token2.type == token_type_dot) + { + token_ty token3; + + x_csharp_lex (&token3); + if (token3.type == token_type_symbol) + { + char *addend = token3.string; + size_t addend_len = strlen (addend); + + sum = + (char *) xrealloc (sum, sum_len + 1 + addend_len + 1); + sum[sum_len] = '.'; + memcpy (sum + sum_len + 1, addend, addend_len + 1); + sum_len += 1 + addend_len; + + free_token (&token3); + free_token (&token2); + continue; + } + x_csharp_unlex (&token3); + } + x_csharp_unlex (&token2); + break; + } + + for (dottedname = sum;;) + { + void *keyword_value; + + if (hash_find_entry (&keywords, dottedname, strlen (dottedname), + &keyword_value) + == 0) + { + next_shapes = (const struct callshapes *) keyword_value; + state = 1; + break; + } + + dottedname = strchr (dottedname, '.'); + if (dottedname == NULL) + { + state = 0; + break; + } + dottedname++; + } + + for (dottedname = sum;;) + { + context_list = + flag_context_list_table_lookup ( + flag_context_list_table, + dottedname, strlen (dottedname)); + if (context_list != NULL) + break; + + dottedname = strchr (dottedname, '.'); + if (dottedname == NULL) + break; + dottedname++; + } + next_context_iter = flag_context_list_iterator (context_list); + + free (sum); + continue; + } + + case token_type_lparen: + if (extract_parenthesized (mlp, token_type_rparen, + inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + if (terminator == token_type_rparen) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return false; + } + if (terminator == token_type_rbrace) + { + error_with_progname = false; + error (0, 0, + _("%s:%d: warning: ')' found where '}' was expected"), + logical_file_name, token.line_number); + error_with_progname = true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_lbrace: + if (extract_parenthesized (mlp, token_type_rbrace, + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rbrace: + if (terminator == token_type_rbrace) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return false; + } + if (terminator == token_type_rparen) + { + error_with_progname = false; + error (0, 0, + _("%s:%d: warning: '}' found where ')' was expected"), + logical_file_name, token.line_number); + error_with_progname = true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case token_type_string_literal: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + xgettext_current_source_encoding = po_charset_utf8; + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, + &pos, NULL, token.comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + pos.file_name, pos.line_number, + token.comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + } + drop_reference (token.comment); + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_eof: + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + + case token_type_dot: + case token_type_number: + case token_type_plus: + case token_type_other: + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + default: + abort (); + } } } void extract_csharp (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -2118,6 +2125,8 @@ logical_file_name = xstrdup (logical_filename); line_number = 1; + lexical_context = lc_outside; + logical_line_number = 1; last_comment_line = -1; last_non_comment_line = -1; @@ -2129,8 +2138,8 @@ /* Eat tokens until eof is seen. When extract_parenthesized returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_parenthesized (mlp, token_type_eof, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) ; fp = NULL; diff -Nru gettext-0.17/gettext-tools/src/x-csharp.h gettext-0.18.1.1/gettext-tools/src/x-csharp.h --- gettext-0.17/gettext-tools/src/x-csharp.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-csharp.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,16 +28,16 @@ #define EXTENSIONS_CSHARP \ - { "cs", "C#" }, \ + { "cs", "C#" }, \ #define SCANNERS_CSHARP \ - { "C#", extract_csharp, \ - &flag_table_csharp, &formatstring_csharp, NULL }, \ + { "C#", extract_csharp, \ + &flag_table_csharp, &formatstring_csharp, NULL }, \ extern void extract_csharp (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_csharp_keyword (const char *keyword); extern void x_csharp_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-elisp.c gettext-0.18.1.1/gettext-tools/src/x-elisp.c --- gettext-0.17/gettext-tools/src/x-elisp.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-elisp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Emacs Lisp backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2001-2002. @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-elisp.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -87,15 +86,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Lisp - symbol. */ + symbol. */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -107,7 +106,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_elisp_keyword ("_"); default_keywords = false; } @@ -143,7 +142,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -168,9 +167,9 @@ /* A token consists of a sequence of characters. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - char *chars; /* the token's constituents */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + char *chars; /* the token's constituents */ }; /* Initialize a 'struct token'. */ @@ -232,7 +231,7 @@ { state |= LEAD_INT; do - p++; + p++; while (*p >= '0' && *p <= '9'); } if (*p == '.') @@ -244,7 +243,7 @@ { state |= TRAIL_INT; do - p++; + p++; while (*p >= '0' && *p <= '9'); } if (*p == 'e' || *p == 'E') @@ -252,28 +251,28 @@ state |= E_CHAR; p++; if (*p == '+' || *p == '-') - p++; + p++; if (*p >= '0' && *p <= '9') - { - state |= EXP_INT; - do - p++; - while (*p >= '0' && *p <= '9'); - } + { + state |= EXP_INT; + do + p++; + while (*p >= '0' && *p <= '9'); + } else if (p[-1] == '+' - && ((p[0] == 'I' && p[1] == 'N' && p[2] == 'F') - || (p[0] == 'N' && p[1] == 'a' && p[2] == 'N'))) - { - state |= EXP_INT; - p += 3; - } + && ((p[0] == 'I' && p[1] == 'N' && p[2] == 'F') + || (p[0] == 'N' && p[1] == 'a' && p[2] == 'N'))) + { + state |= EXP_INT; + p += 3; + } } return (*p == '\0') - && (state == (LEAD_INT | DOT_CHAR | TRAIL_INT) - || state == (DOT_CHAR | TRAIL_INT) - || state == (LEAD_INT | E_CHAR | EXP_INT) - || state == (LEAD_INT | DOT_CHAR | TRAIL_INT | E_CHAR | EXP_INT) - || state == (DOT_CHAR | TRAIL_INT | E_CHAR | EXP_INT)); + && (state == (LEAD_INT | DOT_CHAR | TRAIL_INT) + || state == (DOT_CHAR | TRAIL_INT) + || state == (LEAD_INT | E_CHAR | EXP_INT) + || state == (LEAD_INT | DOT_CHAR | TRAIL_INT | E_CHAR | EXP_INT) + || state == (DOT_CHAR | TRAIL_INT | E_CHAR | EXP_INT)); } /* Read the next token. 'first' is the first character, which has already @@ -291,20 +290,20 @@ for (;; c = do_getc ()) { if (c == EOF) - break; + break; if (c <= ' ') /* FIXME: Assumes ASCII compatible encoding */ - break; + break; if (c == '\"' || c == '\'' || c == ';' || c == '(' || c == ')' - || c == '[' || c == ']' || c == '#') - break; + || c == '[' || c == ']' || c == '#') + break; if (c == '\\') - { - quoted = true; - c = do_getc (); - if (c == EOF) - /* Invalid, but be tolerant. */ - break; - } + { + quoted = true; + c = do_getc (); + if (c == EOF) + /* Invalid, but be tolerant. */ + break; + } grow_token (tp); tp->chars[tp->charcount++] = c; } @@ -354,7 +353,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -385,20 +384,20 @@ Other objects need not to be represented precisely. */ enum object_type { - t_symbol, /* symbol */ - t_string, /* string */ - t_other, /* other kind of real object */ - t_dot, /* '.' pseudo object */ - t_listclose, /* ')' pseudo object */ + t_symbol, /* symbol */ + t_string, /* string */ + t_other, /* other kind of real object */ + t_dot, /* '.' pseudo object */ + t_listclose, /* ')' pseudo object */ t_vectorclose,/* ']' pseudo object */ - t_eof /* EOF marker */ + t_eof /* EOF marker */ }; struct object { enum object_type type; - struct token *token; /* for t_symbol and t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_symbol and t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct object'. */ @@ -466,39 +465,39 @@ case 'M': /* meta */ c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c != '-') - /* Invalid input. But be tolerant. */ - return c; + /* Invalid input. But be tolerant. */ + return c; c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c == '\\') - { - c = do_getc (); - if (c == EOF) - return EOF; - c = do_getc_escaped (c, false); - } + { + c = do_getc (); + if (c == EOF) + return EOF; + c = do_getc_escaped (c, false); + } return c | 0x80; case 'S': /* shift */ c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c != '-') - /* Invalid input. But be tolerant. */ - return c; + /* Invalid input. But be tolerant. */ + return c; c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c == '\\') - { - c = do_getc (); - if (c == EOF) - return EOF; - c = do_getc_escaped (c, false); - } + { + c = do_getc (); + if (c == EOF) + return EOF; + c = do_getc_escaped (c, false); + } return (c >= 'a' && c <= 'z' ? c - 'a' + 'A' : c); case 'H': /* hyper */ @@ -506,50 +505,50 @@ case 's': /* super */ c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c != '-') - /* Invalid input. But be tolerant. */ - return c; + /* Invalid input. But be tolerant. */ + return c; c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c == '\\') - { - c = do_getc (); - if (c == EOF) - return EOF; - c = do_getc_escaped (c, false); - } + { + c = do_getc (); + if (c == EOF) + return EOF; + c = do_getc_escaped (c, false); + } return c; case 'C': /* ctrl */ c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c != '-') - /* Invalid input. But be tolerant. */ - return c; + /* Invalid input. But be tolerant. */ + return c; /*FALLTHROUGH*/ case '^': c = do_getc (); if (c == EOF) - return EOF; + return EOF; if (c == '\\') - { - c = do_getc (); - if (c == EOF) - return EOF; - c = do_getc_escaped (c, false); - } + { + c = do_getc (); + if (c == EOF) + return EOF; + c = do_getc_escaped (c, false); + } if (c == '?') - return 0x7F; + return 0x7F; if ((c & 0x5F) >= 0x41 && (c & 0x5F) <= 0x5A) - return c & 0x9F; + return c & 0x9F; if ((c & 0x7F) >= 0x40 && (c & 0x7F) <= 0x5F) - return c & 0x9F; + return c & 0x9F; #if 0 /* We cannot handle NUL bytes in strings. */ if (c == ' ') - return 0x00; + return 0x00; #endif return c; @@ -557,57 +556,57 @@ case '5': case '6': case '7': /* An octal escape, as in ANSI C. */ { - int n = c - '0'; + int n = c - '0'; - c = do_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - { - n = (n << 3) + (c - '0'); - c = do_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - n = (n << 3) + (c - '0'); - else - do_ungetc (c); - } - } - else - do_ungetc (c); - } - return (unsigned char) n; + c = do_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + { + n = (n << 3) + (c - '0'); + c = do_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + n = (n << 3) + (c - '0'); + else + do_ungetc (c); + } + } + else + do_ungetc (c); + } + return (unsigned char) n; } case 'x': /* A hexadecimal escape, as in ANSI C. */ { - int n = 0; + int n = 0; - for (;;) - { - c = do_getc (); - if (c == EOF) - break; - else if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - else - { - do_ungetc (c); - break; - } - } - return (unsigned char) n; + for (;;) + { + c = do_getc (); + if (c == EOF) + break; + else if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + else + { + do_ungetc (c); + break; + } + } + return (unsigned char) n; } default: /* Ignore Emacs multibyte character stuff. All the strings we are - interested in are ASCII strings. */ + interested in are ASCII strings. */ return c; } } @@ -617,7 +616,7 @@ backquote syntax and new backquote syntax. */ static void read_object (struct object *op, bool first_in_list, bool new_backquote_flag, - flag_context_ty outer_context) + flag_context_ty outer_context) { for (;;) { @@ -626,598 +625,598 @@ c = do_getc (); switch (c) - { - case EOF: - op->type = t_eof; - return; - - case '\n': - /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between - both. */ - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - continue; - - case '(': - { - int arg = 0; /* Current argument number. */ - flag_context_list_iterator_ty context_iter; - const struct callshapes *shapes = NULL; - struct arglist_parser *argparser = NULL; - - for (;; arg++) - { - struct object inner; - flag_context_ty inner_context; - - if (arg == 0) - inner_context = null_context; - else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - - read_object (&inner, arg == 0, new_backquote_flag, - inner_context); - - /* Recognize end of list. */ - if (inner.type == t_listclose) - { - op->type = t_other; - /* Don't bother converting "()" to "NIL". */ - last_non_comment_line = line_number; - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return; - } - - /* Dots are not allowed in every position. ']' is not allowed. - But be tolerant. */ - - /* EOF inside list is illegal. But be tolerant. */ - if (inner.type == t_eof) - break; - - if (arg == 0) - { - /* This is the function position. */ - if (inner.type == t_symbol) - { - char *symbol_name = string_of_object (&inner); - void *keyword_value; - - if (hash_find_entry (&keywords, - symbol_name, strlen (symbol_name), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - symbol_name, strlen (symbol_name))); - - free (symbol_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (argparser != NULL && inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_object (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - } - - free_object (&inner); - } - - if (argparser != NULL) - arglist_parser_done (argparser, arg); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case ')': - /* Tell the caller about the end of list. - Unmatched closing parenthesis is illegal. But be tolerant. */ - op->type = t_listclose; - last_non_comment_line = line_number; - return; - - case '[': - { - for (;;) - { - struct object inner; - - read_object (&inner, false, new_backquote_flag, null_context); - - /* Recognize end of vector. */ - if (inner.type == t_vectorclose) - { - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /* Dots and ')' are not allowed. But be tolerant. */ - - /* EOF inside vector is illegal. But be tolerant. */ - if (inner.type == t_eof) - break; - - free_object (&inner); - } - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case ']': - /* Tell the caller about the end of vector. - Unmatched closing bracket is illegal. But be tolerant. */ - op->type = t_vectorclose; - last_non_comment_line = line_number; - return; - - case '\'': - { - struct object inner; - - read_object (&inner, false, new_backquote_flag, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '`': - if (first_in_list) - goto default_label; - { - struct object inner; - - read_object (&inner, false, true, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case ',': - if (!new_backquote_flag) - goto default_label; - { - int c = do_getc (); - /* The ,@ handling inside lists is wrong anyway, because - ,@form expands to an unknown number of elements. */ - if (c != EOF && c != '@' && c != '.') - do_ungetc (c); - } - { - struct object inner; - - read_object (&inner, false, false, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case ';': - { - bool all_semicolons = true; - - last_comment_line = line_number; - comment_start (); - for (;;) - { - int c = do_getc (); - if (c == EOF || c == '\n') - break; - if (c != ';') - all_semicolons = false; - if (!all_semicolons) - { - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - } - comment_line_end (0); - continue; - } - - case '"': - { - op->token = XMALLOC (struct token); - init_token (op->token); - op->line_number_at_start = line_number; - for (;;) - { - int c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == '"') - break; - if (c == '\\') - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - c = do_getc_escaped (c, true); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == IGNORABLE_ESCAPE) - /* Ignore escaped newline and escaped space. */ - ; - else - { - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - } - else - { - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - } - op->type = t_string; - - if (extract_all) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = op->line_number_at_start; - remember_a_message (mlp, NULL, string_of_object (op), - null_context, &pos, savable_comment); - } - last_non_comment_line = line_number; - return; - } - - case '?': - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - else if (c == '\\') - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - else - { - c = do_getc_escaped (c, false); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - } - } - /* Impossible to deal with Emacs multibyte character stuff here. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '#': - /* Dispatch macro handling. */ - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - return; - } - - switch (c) - { - case '^': - c = do_getc (); - if (c == '^') - c = do_getc (); - if (c == '[') - { - /* Read a char table, same syntax as a vector. */ - for (;;) - { - struct object inner; - - read_object (&inner, false, new_backquote_flag, - null_context); - - /* Recognize end of vector. */ - if (inner.type == t_vectorclose) - { - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /* Dots and ')' are not allowed. But be tolerant. */ - - /* EOF inside vector is illegal. But be tolerant. */ - if (inner.type == t_eof) - break; - - free_object (&inner); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - } - else - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - if (c != EOF) - last_non_comment_line = line_number; - return; - } - - case '&': - /* Read a bit vector. */ - { - struct object length; - read_object (&length, first_in_list, new_backquote_flag, - null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&length); - } - c = do_getc (); - if (c == '"') - { - struct object string; - read_object (&string, first_in_list, new_backquote_flag, - null_context); - free_object (&string); - } - else - /* Invalid input. Be tolerant, no error message. */ - do_ungetc (c); - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '[': - /* Read a compiled function, same syntax as a vector. */ - case '(': - /* Read a string with properties, same syntax as a list. */ - { - struct object inner; - do_ungetc (c); - read_object (&inner, false, new_backquote_flag, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '@': - /* Read a comment consisting of a given number of bytes. */ - { - unsigned int nskip = 0; - - for (;;) - { - c = do_getc (); - if (!(c >= '0' && c <= '9')) - break; - nskip = 10 * nskip + (c - '0'); - } - if (c != EOF) - { - do_ungetc (c); - for (; nskip > 0; nskip--) - if (do_getc () == EOF) - break; - } - continue; - } - - case '$': - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '\'': - case ':': - case 'S': case 's': /* XEmacs only */ - { - struct object inner; - read_object (&inner, false, new_backquote_flag, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - /* Read Common Lisp style #n# or #n=. */ - for (;;) - { - c = do_getc (); - if (!(c >= '0' && c <= '9')) - break; - } - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - return; - } - if (c == '=') - { - read_object (op, false, new_backquote_flag, outer_context); - last_non_comment_line = line_number; - return; - } - if (c == '#') - { - op->type = t_other; - last_non_comment_line = line_number; - return; - } - if (c == 'R' || c == 'r') - { - /* Read an integer. */ - c = do_getc (); - if (c == '+' || c == '-') - c = do_getc (); - for (; c != EOF; c = do_getc ()) - if (!c_isalnum (c)) - { - do_ungetc (c); - break; - } - op->type = t_other; - last_non_comment_line = line_number; - return; - } - /* Invalid input. Be tolerant, no error message. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - - case 'X': case 'x': - case 'O': case 'o': - case 'B': case 'b': - { - /* Read an integer. */ - c = do_getc (); - if (c == '+' || c == '-') - c = do_getc (); - for (; c != EOF; c = do_getc ()) - if (!c_isalnum (c)) - { - do_ungetc (c); - break; - } - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '*': /* XEmacs only */ - { - /* Read a bit-vector. */ - do - c = do_getc (); - while (c == '0' || c == '1'); - if (c != EOF) - do_ungetc (c); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '+': /* XEmacs only */ - case '-': /* XEmacs only */ - /* Simply assume every feature expression is true. */ - { - struct object inner; - read_object (&inner, false, new_backquote_flag, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - continue; - } - - default: - /* Invalid input. Be tolerant, no error message. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /*NOTREACHED*/ - abort (); - - case '.': - c = do_getc (); - if (c != EOF) - { - do_ungetc (c); - if (c <= ' ' /* FIXME: Assumes ASCII compatible encoding */ - || strchr ("\"'`,(", c) != NULL) - { - op->type = t_dot; - last_non_comment_line = line_number; - return; - } - } - c = '.'; - /*FALLTHROUGH*/ - default: - default_label: - if (c <= ' ') /* FIXME: Assumes ASCII compatible encoding */ - continue; - /* Read a token. */ - { - bool symbol; - - op->token = XMALLOC (struct token); - symbol = read_token (op->token, c); - if (symbol) - { - op->type = t_symbol; - last_non_comment_line = line_number; - return; - } - else - { - free_token (op->token); - free (op->token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - } - } + { + case EOF: + op->type = t_eof; + return; + + case '\n': + /* Comments assumed to be grouped with a message must immediately + precede it, with no non-whitespace token on a line between + both. */ + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + continue; + + case '(': + { + int arg = 0; /* Current argument number. */ + flag_context_list_iterator_ty context_iter; + const struct callshapes *shapes = NULL; + struct arglist_parser *argparser = NULL; + + for (;; arg++) + { + struct object inner; + flag_context_ty inner_context; + + if (arg == 0) + inner_context = null_context; + else + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + + read_object (&inner, arg == 0, new_backquote_flag, + inner_context); + + /* Recognize end of list. */ + if (inner.type == t_listclose) + { + op->type = t_other; + /* Don't bother converting "()" to "NIL". */ + last_non_comment_line = line_number; + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return; + } + + /* Dots are not allowed in every position. ']' is not allowed. + But be tolerant. */ + + /* EOF inside list is illegal. But be tolerant. */ + if (inner.type == t_eof) + break; + + if (arg == 0) + { + /* This is the function position. */ + if (inner.type == t_symbol) + { + char *symbol_name = string_of_object (&inner); + void *keyword_value; + + if (hash_find_entry (&keywords, + symbol_name, strlen (symbol_name), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + symbol_name, strlen (symbol_name))); + + free (symbol_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (argparser != NULL && inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_object (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + } + + free_object (&inner); + } + + if (argparser != NULL) + arglist_parser_done (argparser, arg); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case ')': + /* Tell the caller about the end of list. + Unmatched closing parenthesis is illegal. But be tolerant. */ + op->type = t_listclose; + last_non_comment_line = line_number; + return; + + case '[': + { + for (;;) + { + struct object inner; + + read_object (&inner, false, new_backquote_flag, null_context); + + /* Recognize end of vector. */ + if (inner.type == t_vectorclose) + { + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /* Dots and ')' are not allowed. But be tolerant. */ + + /* EOF inside vector is illegal. But be tolerant. */ + if (inner.type == t_eof) + break; + + free_object (&inner); + } + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case ']': + /* Tell the caller about the end of vector. + Unmatched closing bracket is illegal. But be tolerant. */ + op->type = t_vectorclose; + last_non_comment_line = line_number; + return; + + case '\'': + { + struct object inner; + + read_object (&inner, false, new_backquote_flag, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '`': + if (first_in_list) + goto default_label; + { + struct object inner; + + read_object (&inner, false, true, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case ',': + if (!new_backquote_flag) + goto default_label; + { + int c = do_getc (); + /* The ,@ handling inside lists is wrong anyway, because + ,@form expands to an unknown number of elements. */ + if (c != EOF && c != '@' && c != '.') + do_ungetc (c); + } + { + struct object inner; + + read_object (&inner, false, false, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case ';': + { + bool all_semicolons = true; + + last_comment_line = line_number; + comment_start (); + for (;;) + { + int c = do_getc (); + if (c == EOF || c == '\n') + break; + if (c != ';') + all_semicolons = false; + if (!all_semicolons) + { + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + } + comment_line_end (0); + continue; + } + + case '"': + { + op->token = XMALLOC (struct token); + init_token (op->token); + op->line_number_at_start = line_number; + for (;;) + { + int c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == '"') + break; + if (c == '\\') + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + c = do_getc_escaped (c, true); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == IGNORABLE_ESCAPE) + /* Ignore escaped newline and escaped space. */ + ; + else + { + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + } + else + { + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + } + op->type = t_string; + + if (extract_all) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = op->line_number_at_start; + remember_a_message (mlp, NULL, string_of_object (op), + null_context, &pos, NULL, savable_comment); + } + last_non_comment_line = line_number; + return; + } + + case '?': + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + else if (c == '\\') + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + else + { + c = do_getc_escaped (c, false); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + } + } + /* Impossible to deal with Emacs multibyte character stuff here. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '#': + /* Dispatch macro handling. */ + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + return; + } + + switch (c) + { + case '^': + c = do_getc (); + if (c == '^') + c = do_getc (); + if (c == '[') + { + /* Read a char table, same syntax as a vector. */ + for (;;) + { + struct object inner; + + read_object (&inner, false, new_backquote_flag, + null_context); + + /* Recognize end of vector. */ + if (inner.type == t_vectorclose) + { + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /* Dots and ')' are not allowed. But be tolerant. */ + + /* EOF inside vector is illegal. But be tolerant. */ + if (inner.type == t_eof) + break; + + free_object (&inner); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + } + else + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + if (c != EOF) + last_non_comment_line = line_number; + return; + } + + case '&': + /* Read a bit vector. */ + { + struct object length; + read_object (&length, first_in_list, new_backquote_flag, + null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&length); + } + c = do_getc (); + if (c == '"') + { + struct object string; + read_object (&string, first_in_list, new_backquote_flag, + null_context); + free_object (&string); + } + else + /* Invalid input. Be tolerant, no error message. */ + do_ungetc (c); + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '[': + /* Read a compiled function, same syntax as a vector. */ + case '(': + /* Read a string with properties, same syntax as a list. */ + { + struct object inner; + do_ungetc (c); + read_object (&inner, false, new_backquote_flag, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '@': + /* Read a comment consisting of a given number of bytes. */ + { + unsigned int nskip = 0; + + for (;;) + { + c = do_getc (); + if (!(c >= '0' && c <= '9')) + break; + nskip = 10 * nskip + (c - '0'); + } + if (c != EOF) + { + do_ungetc (c); + for (; nskip > 0; nskip--) + if (do_getc () == EOF) + break; + } + continue; + } + + case '$': + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '\'': + case ':': + case 'S': case 's': /* XEmacs only */ + { + struct object inner; + read_object (&inner, false, new_backquote_flag, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + /* Read Common Lisp style #n# or #n=. */ + for (;;) + { + c = do_getc (); + if (!(c >= '0' && c <= '9')) + break; + } + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + return; + } + if (c == '=') + { + read_object (op, false, new_backquote_flag, outer_context); + last_non_comment_line = line_number; + return; + } + if (c == '#') + { + op->type = t_other; + last_non_comment_line = line_number; + return; + } + if (c == 'R' || c == 'r') + { + /* Read an integer. */ + c = do_getc (); + if (c == '+' || c == '-') + c = do_getc (); + for (; c != EOF; c = do_getc ()) + if (!c_isalnum (c)) + { + do_ungetc (c); + break; + } + op->type = t_other; + last_non_comment_line = line_number; + return; + } + /* Invalid input. Be tolerant, no error message. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + + case 'X': case 'x': + case 'O': case 'o': + case 'B': case 'b': + { + /* Read an integer. */ + c = do_getc (); + if (c == '+' || c == '-') + c = do_getc (); + for (; c != EOF; c = do_getc ()) + if (!c_isalnum (c)) + { + do_ungetc (c); + break; + } + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '*': /* XEmacs only */ + { + /* Read a bit-vector. */ + do + c = do_getc (); + while (c == '0' || c == '1'); + if (c != EOF) + do_ungetc (c); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '+': /* XEmacs only */ + case '-': /* XEmacs only */ + /* Simply assume every feature expression is true. */ + { + struct object inner; + read_object (&inner, false, new_backquote_flag, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + continue; + } + + default: + /* Invalid input. Be tolerant, no error message. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /*NOTREACHED*/ + abort (); + + case '.': + c = do_getc (); + if (c != EOF) + { + do_ungetc (c); + if (c <= ' ' /* FIXME: Assumes ASCII compatible encoding */ + || strchr ("\"'`,(", c) != NULL) + { + op->type = t_dot; + last_non_comment_line = line_number; + return; + } + } + c = '.'; + /*FALLTHROUGH*/ + default: + default_label: + if (c <= ' ') /* FIXME: Assumes ASCII compatible encoding */ + continue; + /* Read a token. */ + { + bool symbol; + + op->token = XMALLOC (struct token); + symbol = read_token (op->token, c); + if (symbol) + { + op->type = t_symbol; + last_non_comment_line = line_number; + return; + } + else + { + free_token (op->token); + free (op->token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + } + } } } void extract_elisp (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; @@ -1242,7 +1241,7 @@ read_object (&toplevel_object, false, false, null_context); if (toplevel_object.type == t_eof) - break; + break; free_object (&toplevel_object); } diff -Nru gettext-0.17/gettext-tools/src/x-elisp.h gettext-0.18.1.1/gettext-tools/src/x-elisp.h --- gettext-0.17/gettext-tools/src/x-elisp.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-elisp.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_ELISP \ - { "el", "EmacsLisp" }, \ + { "el", "EmacsLisp" }, \ #define SCANNERS_ELISP \ - { "EmacsLisp", extract_elisp, \ - &flag_table_elisp, &formatstring_elisp, NULL }, \ + { "EmacsLisp", extract_elisp, \ + &flag_table_elisp, &formatstring_elisp, NULL }, \ /* Scan an Emacs Lisp file and add its translatable strings to mdlp. */ extern void extract_elisp (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/xgettext.c gettext-0.18.1.1/gettext-tools/src/xgettext.c --- gettext-0.17/gettext-tools/src/xgettext.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/xgettext.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Extracts strings from C source file to Uniforum style .po file. - Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -49,6 +49,7 @@ #include "c-strstr.h" #include "xerror.h" #include "filename.h" +#include "concat-filename.h" #include "c-strcase.h" #include "open-catalog.h" #include "read-catalog-abstract.h" @@ -62,6 +63,7 @@ #include "write-po.h" #include "write-properties.h" #include "write-stringtable.h" +#include "color.h" #include "format.h" #include "propername.h" #include "gettext.h" @@ -193,6 +195,7 @@ { "add-location", no_argument, &line_comment, 1 }, { "boost", no_argument, NULL, CHAR_MAX + 11 }, { "c++", no_argument, NULL, 'C' }, + { "color", optional_argument, NULL, CHAR_MAX + 14 }, { "copyright-holder", required_argument, NULL, CHAR_MAX + 1 }, { "debug", no_argument, &do_debug, 1 }, { "default-domain", required_argument, NULL, 'd' }, @@ -229,6 +232,7 @@ { "strict", no_argument, NULL, 'S' }, { "string-limit", required_argument, NULL, 'l' }, { "stringtable-output", no_argument, NULL, CHAR_MAX + 7 }, + { "style", required_argument, NULL, CHAR_MAX + 15 }, { "trigraphs", no_argument, NULL, 'T' }, { "version", no_argument, NULL, 'V' }, { "width", required_argument, NULL, 'w', }, @@ -240,9 +244,9 @@ arguments designating the input stream and one message domain list argument in which to add the messages. */ typedef void (*extractor_func) (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); typedef struct extractor_ty extractor_ty; struct extractor_ty @@ -251,18 +255,19 @@ flag_context_list_table_ty *flag_table; struct formatstring_parser *formatstring_parser1; struct formatstring_parser *formatstring_parser2; + struct formatstring_parser *formatstring_parser3; }; /* Forward declaration of local functions. */ static void usage (int status) #if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ > 4) || __GNUC__ > 2) - __attribute__ ((noreturn)) + __attribute__ ((noreturn)) #endif ; static void read_exclusion_file (char *file_name); static void extract_from_file (const char *file_name, extractor_ty extractor, - msgdomain_list_ty *mdlp); + msgdomain_list_ty *mdlp); static message_ty *construct_header (void); static void finalize_header (msgdomain_list_ty *mdlp); static extractor_ty language_to_extractor (const char *name); @@ -328,198 +333,247 @@ init_flag_table_php (); while ((optchar = getopt_long (argc, argv, - "ac::Cd:D:eEf:Fhijk::l:L:m::M::no:p:sTVw:x:", - long_options, NULL)) != EOF) + "ac::Cd:D:eEf:Fhijk::l:L:m::M::no:p:sTVw:x:", + long_options, NULL)) != EOF) switch (optchar) { - case '\0': /* Long option. */ - break; + case '\0': /* Long option. */ + break; + case 'a': - x_c_extract_all (); - x_sh_extract_all (); - x_python_extract_all (); - x_lisp_extract_all (); - x_elisp_extract_all (); - x_librep_extract_all (); - x_scheme_extract_all (); - x_java_extract_all (); - x_csharp_extract_all (); - x_awk_extract_all (); - x_tcl_extract_all (); - x_perl_extract_all (); - x_php_extract_all (); - x_glade_extract_all (); - break; + x_c_extract_all (); + x_sh_extract_all (); + x_python_extract_all (); + x_lisp_extract_all (); + x_elisp_extract_all (); + x_librep_extract_all (); + x_scheme_extract_all (); + x_java_extract_all (); + x_csharp_extract_all (); + x_awk_extract_all (); + x_tcl_extract_all (); + x_perl_extract_all (); + x_php_extract_all (); + x_glade_extract_all (); + break; + case 'c': - if (optarg == NULL) - { - add_all_comments = true; - comment_tag = NULL; - } - else - { - add_all_comments = false; - comment_tag = optarg; - /* We ignore leading white space. */ - while (isspace ((unsigned char) *comment_tag)) - ++comment_tag; - } - break; + if (optarg == NULL) + { + add_all_comments = true; + comment_tag = NULL; + } + else + { + add_all_comments = false; + comment_tag = optarg; + /* We ignore leading white space. */ + while (isspace ((unsigned char) *comment_tag)) + ++comment_tag; + } + break; + case 'C': - language = "C++"; - break; + language = "C++"; + break; + case 'd': - default_domain = optarg; - break; + default_domain = optarg; + break; + case 'D': - dir_list_append (optarg); - break; + dir_list_append (optarg); + break; + case 'e': - message_print_style_escape (false); - break; + message_print_style_escape (false); + break; + case 'E': - message_print_style_escape (true); - break; + message_print_style_escape (true); + break; + case 'f': - files_from = optarg; - break; + files_from = optarg; + break; + case 'F': - sort_by_filepos = true; - break; + sort_by_filepos = true; + break; + case 'h': - do_help = true; - break; + do_help = true; + break; + case 'i': - message_print_style_indent (); - break; + message_print_style_indent (); + break; + case 'j': - join_existing = true; - break; + join_existing = true; + break; + case 'k': - if (optarg != NULL && *optarg == '\0') - /* Make "--keyword=" work like "--keyword" and "-k". */ - optarg = NULL; - x_c_keyword (optarg); - x_objc_keyword (optarg); - x_sh_keyword (optarg); - x_python_keyword (optarg); - x_lisp_keyword (optarg); - x_elisp_keyword (optarg); - x_librep_keyword (optarg); - x_scheme_keyword (optarg); - x_java_keyword (optarg); - x_csharp_keyword (optarg); - x_awk_keyword (optarg); - x_tcl_keyword (optarg); - x_perl_keyword (optarg); - x_php_keyword (optarg); - x_glade_keyword (optarg); - if (optarg == NULL) - no_default_keywords = true; - else - some_additional_keywords = true; - break; + if (optarg != NULL && *optarg == '\0') + /* Make "--keyword=" work like "--keyword" and "-k". */ + optarg = NULL; + x_c_keyword (optarg); + x_objc_keyword (optarg); + x_sh_keyword (optarg); + x_python_keyword (optarg); + x_lisp_keyword (optarg); + x_elisp_keyword (optarg); + x_librep_keyword (optarg); + x_scheme_keyword (optarg); + x_java_keyword (optarg); + x_csharp_keyword (optarg); + x_awk_keyword (optarg); + x_tcl_keyword (optarg); + x_perl_keyword (optarg); + x_php_keyword (optarg); + x_glade_keyword (optarg); + if (optarg == NULL) + no_default_keywords = true; + else + some_additional_keywords = true; + break; + case 'l': - /* Accepted for backward compatibility with 0.10.35. */ - break; + /* Accepted for backward compatibility with 0.10.35. */ + break; + case 'L': - language = optarg; - break; + language = optarg; + break; + case 'm': - /* -m takes an optional argument. If none is given "" is assumed. */ - msgstr_prefix = optarg == NULL ? "" : optarg; - break; + /* -m takes an optional argument. If none is given "" is assumed. */ + msgstr_prefix = optarg == NULL ? "" : optarg; + break; + case 'M': - /* -M takes an optional argument. If none is given "" is assumed. */ - msgstr_suffix = optarg == NULL ? "" : optarg; - break; + /* -M takes an optional argument. If none is given "" is assumed. */ + msgstr_suffix = optarg == NULL ? "" : optarg; + break; + case 'n': - line_comment = 1; - break; + line_comment = 1; + break; + case 'o': - output_file = optarg; - break; + output_file = optarg; + break; + case 'p': - { - size_t len = strlen (optarg); + { + size_t len = strlen (optarg); - if (output_dir != NULL) - free (output_dir); + if (output_dir != NULL) + free (output_dir); + + if (optarg[len - 1] == '/') + output_dir = xstrdup (optarg); + else + output_dir = xasprintf ("%s/", optarg); + } + break; - if (optarg[len - 1] == '/') - output_dir = xstrdup (optarg); - else - output_dir = xasprintf ("%s/", optarg); - } - break; case 's': - sort_by_msgid = true; - break; + sort_by_msgid = true; + break; + case 'S': - message_print_style_uniforum (); - break; + message_print_style_uniforum (); + break; + case 'T': - x_c_trigraphs (); - break; + x_c_trigraphs (); + break; + case 'V': - do_version = true; - break; + do_version = true; + break; + case 'w': - { - int value; - char *endp; - value = strtol (optarg, &endp, 10); - if (endp != optarg) - message_page_width_set (value); - } - break; + { + int value; + char *endp; + value = strtol (optarg, &endp, 10); + if (endp != optarg) + message_page_width_set (value); + } + break; + case 'x': - read_exclusion_file (optarg); - break; - case CHAR_MAX + 1: /* --copyright-holder */ - copyright_holder = optarg; - break; - case CHAR_MAX + 2: /* --foreign-user */ - copyright_holder = ""; - break; - case CHAR_MAX + 3: /* --from-code */ - xgettext_global_source_encoding = po_charset_canonicalize (optarg); - if (xgettext_global_source_encoding == NULL) - xgettext_global_source_encoding = po_charset_ascii; - break; - case CHAR_MAX + 4: /* --no-wrap */ - message_page_width_ignore (); - break; - case CHAR_MAX + 5: /* --msgid-bugs-address */ - msgid_bugs_address = optarg; - break; - case CHAR_MAX + 6: /* --properties-output */ - output_syntax = &output_format_properties; - break; - case CHAR_MAX + 7: /* --stringtable-output */ - output_syntax = &output_format_stringtable; - break; - case CHAR_MAX + 8: /* --flag */ - xgettext_record_flag (optarg); - break; - case CHAR_MAX + 9: /* --qt */ - recognize_format_qt = true; - break; - case CHAR_MAX + 10: /* --kde */ - recognize_format_kde = true; - break; - case CHAR_MAX + 11: /* --boost */ - recognize_format_boost = true; - break; - case CHAR_MAX + 12: /* --package-name */ - package_name = optarg; - break; - case CHAR_MAX + 13: /* --package-version */ - package_version = optarg; - break; + read_exclusion_file (optarg); + break; + + case CHAR_MAX + 1: /* --copyright-holder */ + copyright_holder = optarg; + break; + + case CHAR_MAX + 2: /* --foreign-user */ + copyright_holder = ""; + break; + + case CHAR_MAX + 3: /* --from-code */ + xgettext_global_source_encoding = po_charset_canonicalize (optarg); + if (xgettext_global_source_encoding == NULL) + xgettext_global_source_encoding = po_charset_ascii; + break; + + case CHAR_MAX + 4: /* --no-wrap */ + message_page_width_ignore (); + break; + + case CHAR_MAX + 5: /* --msgid-bugs-address */ + msgid_bugs_address = optarg; + break; + + case CHAR_MAX + 6: /* --properties-output */ + output_syntax = &output_format_properties; + break; + + case CHAR_MAX + 7: /* --stringtable-output */ + output_syntax = &output_format_stringtable; + break; + + case CHAR_MAX + 8: /* --flag */ + xgettext_record_flag (optarg); + break; + + case CHAR_MAX + 9: /* --qt */ + recognize_format_qt = true; + break; + + case CHAR_MAX + 10: /* --kde */ + recognize_format_kde = true; + break; + + case CHAR_MAX + 11: /* --boost */ + recognize_format_boost = true; + break; + + case CHAR_MAX + 12: /* --package-name */ + package_name = optarg; + break; + + case CHAR_MAX + 13: /* --package-version */ + package_version = optarg; + break; + + case CHAR_MAX + 14: /* --color */ + if (handle_color_option (optarg) || color_test_mode) + usage (EXIT_FAILURE); + break; + + case CHAR_MAX + 15: /* --style */ + handle_style_option (optarg); + break; + default: - usage (EXIT_FAILURE); - /* NOTREACHED */ + usage (EXIT_FAILURE); + /* NOTREACHED */ } /* Version information requested. */ @@ -532,7 +586,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1998, 2000-2007"); + "1995-1998, 2000-2010"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -544,24 +598,24 @@ /* Verify selected options. */ if (!line_comment && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--no-location", "--sort-by-file"); + "--no-location", "--sort-by-file"); if (sort_by_msgid && sort_by_filepos) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--sort-output", "--sort-by-file"); + "--sort-output", "--sort-by-file"); /* We cannot support both Qt and KDE, or Qt and Boost, or KDE and Boost format strings, because there are only two formatstring parsers per language, and formatstring_c is the first one for C++. */ if (recognize_format_qt && recognize_format_kde) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--qt", "--kde"); + "--qt", "--kde"); if (recognize_format_qt && recognize_format_boost) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--qt", "--boost"); + "--qt", "--boost"); if (recognize_format_kde && recognize_format_boost) error (EXIT_FAILURE, 0, _("%s and %s are mutually exclusive"), - "--kde", "--boost"); + "--kde", "--boost"); if (join_existing && strcmp (default_domain, "-") == 0) error (EXIT_FAILURE, 0, _("\ @@ -600,15 +654,15 @@ if (output_file) { if (IS_ABSOLUTE_PATH (output_file) || strcmp (output_file, "-") == 0) - file_name = xstrdup (output_file); + file_name = xstrdup (output_file); else - /* Please do NOT add a .po suffix! */ - file_name = concatenated_filename (output_dir, output_file, NULL); + /* Please do NOT add a .po suffix! */ + file_name = xconcatenated_filename (output_dir, output_file, NULL); } else if (strcmp (default_domain, "-") == 0) file_name = "-"; else - file_name = concatenated_filename (output_dir, default_domain, ".po"); + file_name = xconcatenated_filename (output_dir, default_domain, ".po"); /* Determine list of files we have to process. */ if (files_from != NULL) @@ -630,23 +684,23 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (strcmp (xgettext_global_source_encoding, "EUC-KR") == 0) - cd = (iconv_t)(-1); + cd = (iconv_t)(-1); else # endif cd = iconv_open (po_charset_utf8, xgettext_global_source_encoding); if (cd == (iconv_t)(-1)) - error (EXIT_FAILURE, 0, _("\ + error (EXIT_FAILURE, 0, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \ and iconv() does not support this conversion."), - xgettext_global_source_encoding, po_charset_utf8, - basename (program_name)); + xgettext_global_source_encoding, po_charset_utf8, + basename (program_name)); xgettext_global_source_iconv = cd; #else error (EXIT_FAILURE, 0, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \ This version was built without iconv()."), - xgettext_global_source_encoding, po_charset_utf8, - basename (program_name)); + xgettext_global_source_encoding, po_charset_utf8, + basename (program_name)); #endif } @@ -662,13 +716,13 @@ if (join_existing) { /* Temporarily reset the directory list to empty, because file_name - is an output file and therefore should not be searched for. */ + is an output file and therefore should not be searched for. */ void *saved_directory_list = dir_list_save_reset (); extractor_ty po_extractor = { extract_po, NULL, NULL, NULL }; extract_from_file (file_name, po_extractor, mdlp); if (!is_ascii_msgdomain_list (mdlp)) - mdlp = iconv_msgdomain_list (mdlp, "UTF-8", true, file_name); + mdlp = iconv_msgdomain_list (mdlp, "UTF-8", true, file_name); dir_list_restore (saved_directory_list); } @@ -682,44 +736,44 @@ filename = file_list->item[i]; if (extractor.func) - this_file_extractor = extractor; + this_file_extractor = extractor; else - { - const char *base; - char *reduced; - const char *extension; - const char *language; - - base = strrchr (filename, '/'); - if (!base) - base = filename; - - reduced = xstrdup (base); - /* Remove a trailing ".in" - it's a generic suffix. */ - if (strlen (reduced) >= 3 - && memcmp (reduced + strlen (reduced) - 3, ".in", 3) == 0) - reduced[strlen (reduced) - 3] = '\0'; - - /* Work out what the file extension is. */ - extension = strrchr (reduced, '.'); - if (extension) - ++extension; - else - extension = ""; - - /* Derive the language from the extension, and the extractor - function from the language. */ - language = extension_to_language (extension); - if (language == NULL) - { - error (0, 0, _("\ + { + const char *base; + char *reduced; + const char *extension; + const char *language; + + base = strrchr (filename, '/'); + if (!base) + base = filename; + + reduced = xstrdup (base); + /* Remove a trailing ".in" - it's a generic suffix. */ + if (strlen (reduced) >= 3 + && memcmp (reduced + strlen (reduced) - 3, ".in", 3) == 0) + reduced[strlen (reduced) - 3] = '\0'; + + /* Work out what the file extension is. */ + extension = strrchr (reduced, '.'); + if (extension) + ++extension; + else + extension = ""; + + /* Derive the language from the extension, and the extractor + function from the language. */ + language = extension_to_language (extension); + if (language == NULL) + { + error (0, 0, _("\ warning: file `%s' extension `%s' is unknown; will try C"), filename, extension); - language = "C"; - } - this_file_extractor = language_to_extractor (language); + language = "C"; + } + this_file_extractor = language_to_extractor (language); - free (reduced); - } + free (reduced); + } /* Extract the strings from the file. */ extract_from_file (filename, this_file_extractor, mdlp); @@ -756,7 +810,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { printf (_("\ @@ -823,8 +877,10 @@ printf (_("\ -x, --exclude-file=FILE.po entries from FILE.po are not extracted\n")); printf (_("\ - -c, --add-comments[=TAG] place comment block with TAG (or those\n\ - preceding keyword lines) in output file\n")); + -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n\ + preceding keyword lines in output file\n\ + -c, --add-comments place all comment blocks preceding keyword lines\n\ + in output file\n")); printf ("\n"); printf (_("\ Language specific options:\n")); @@ -835,8 +891,8 @@ Python, Lisp, EmacsLisp, librep, Scheme, Java,\n\ C#, awk, Tcl, Perl, PHP, GCC-source, Glade)\n")); printf (_("\ - -k, --keyword[=WORD] additional keyword to be looked for (without\n\ - WORD means not to use default keywords)\n")); + -kWORD, --keyword=WORD look for WORD as an additional keyword\n\ + -k, --keyword do not to use default keywords\n")); printf (_("\ (only languages C, C++, ObjectiveC, Shell,\n\ Python, Lisp, EmacsLisp, librep, Scheme, Java,\n\ @@ -870,6 +926,12 @@ printf (_("\ Output details:\n")); printf (_("\ + --color use colors and other text attributes always\n\ + --color=WHEN use colors and other text attributes if WHEN.\n\ + WHEN may be 'always', 'never', 'auto', or 'html'.\n")); + printf (_("\ + --style=STYLEFILE specify CSS style rule file for --color\n")); + printf (_("\ -e, --no-escape do not use C escapes in output (default)\n")); printf (_("\ -E, --escape use C escapes in output, no extended chars\n")); @@ -909,9 +971,11 @@ printf (_("\ --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs\n")); printf (_("\ - -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr entries\n")); + -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr\n\ + values\n")); printf (_("\ - -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr entries\n")); + -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr\n\ + values\n")); printf ("\n"); printf (_("\ Informative output:\n")); @@ -925,7 +989,7 @@ "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ fputs (_("Report bugs to .\n"), - stdout); + stdout); } exit (status); @@ -936,22 +1000,22 @@ exclude_directive_domain (abstract_catalog_reader_ty *pop, char *name) { po_gram_error_at_line (&gram_pos, - _("this file may not contain domain directives")); + _("this file may not contain domain directives")); } static void exclude_directive_message (abstract_catalog_reader_ty *pop, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { message_ty *mp; @@ -1014,7 +1078,7 @@ void split_keywordspec (const char *spec, - const char **endp, struct callshape *shapep) + const char **endp, struct callshape *shapep) { const char *p; int argnum1 = 0; @@ -1032,113 +1096,113 @@ while (p > spec) { if (isdigit ((unsigned char) p[-1]) - || ((p[-1] == 'c' || p[-1] == 'g' || p[-1] == 't') - && p - 1 > spec && isdigit ((unsigned char) p[-2]))) - { - bool contextp = (p[-1] == 'c'); - bool glibp = (p[-1] == 'g'); - bool totalp = (p[-1] == 't'); - - do - p--; - while (p > spec && isdigit ((unsigned char) p[-1])); - - if (p > spec && (p[-1] == ',' || p[-1] == ':')) - { - char *dummy; - int arg = strtol (p, &dummy, 10); - - if (contextp) - { - if (argnumc != 0) - /* Only one context argument can be given. */ - break; - argnumc = arg; - } - else if (totalp) - { - if (argtotal != 0) - /* Only one total number of arguments can be given. */ - break; - argtotal = arg; - } - else - { - if (argnum2 != 0) - /* At most two normal arguments can be given. */ - break; - argnum2 = argnum1; - argnum2_glib_context = argnum1_glib_context; - argnum1 = arg; - argnum1_glib_context = glibp; - } - } - else - break; - } + || ((p[-1] == 'c' || p[-1] == 'g' || p[-1] == 't') + && p - 1 > spec && isdigit ((unsigned char) p[-2]))) + { + bool contextp = (p[-1] == 'c'); + bool glibp = (p[-1] == 'g'); + bool totalp = (p[-1] == 't'); + + do + p--; + while (p > spec && isdigit ((unsigned char) p[-1])); + + if (p > spec && (p[-1] == ',' || p[-1] == ':')) + { + char *dummy; + int arg = strtol (p, &dummy, 10); + + if (contextp) + { + if (argnumc != 0) + /* Only one context argument can be given. */ + break; + argnumc = arg; + } + else if (totalp) + { + if (argtotal != 0) + /* Only one total number of arguments can be given. */ + break; + argtotal = arg; + } + else + { + if (argnum2 != 0) + /* At most two normal arguments can be given. */ + break; + argnum2 = argnum1; + argnum2_glib_context = argnum1_glib_context; + argnum1 = arg; + argnum1_glib_context = glibp; + } + } + else + break; + } else if (p[-1] == '"') - { - const char *xcomment_end; + { + const char *xcomment_end; - p--; - xcomment_end = p; + p--; + xcomment_end = p; - while (p > spec && p[-1] != '"') - p--; + while (p > spec && p[-1] != '"') + p--; - if (p > spec /* && p[-1] == '"' */) - { - const char *xcomment_start; - - xcomment_start = p; - p--; - if (p > spec && (p[-1] == ',' || p[-1] == ':')) - { - size_t xcomment_len = xcomment_end - xcomment_start; - char *xcomment = XNMALLOC (xcomment_len + 1, char); - - memcpy (xcomment, xcomment_start, xcomment_len); - xcomment[xcomment_len] = '\0'; - string_list_append (&xcomments, xcomment); - } - else - break; - } - else - break; - } + if (p > spec /* && p[-1] == '"' */) + { + const char *xcomment_start; + + xcomment_start = p; + p--; + if (p > spec && (p[-1] == ',' || p[-1] == ':')) + { + size_t xcomment_len = xcomment_end - xcomment_start; + char *xcomment = XNMALLOC (xcomment_len + 1, char); + + memcpy (xcomment, xcomment_start, xcomment_len); + xcomment[xcomment_len] = '\0'; + string_list_append (&xcomments, xcomment); + } + else + break; + } + else + break; + } else - break; + break; /* Here an element of the comma-separated list has been parsed. */ if (!(p > spec && (p[-1] == ',' || p[-1] == ':'))) - abort (); + abort (); p--; if (*p == ':') - { - size_t i; + { + size_t i; - if (argnum1 == 0 && argnum2 == 0) - /* At least one non-context argument must be given. */ - break; - if (argnumc != 0 - && (argnum1_glib_context || argnum2_glib_context)) - /* Incompatible ways to specify the context. */ - break; - *endp = p; - shapep->argnum1 = (argnum1 > 0 ? argnum1 : 1); - shapep->argnum2 = argnum2; - shapep->argnumc = argnumc; - shapep->argnum1_glib_context = argnum1_glib_context; - shapep->argnum2_glib_context = argnum2_glib_context; - shapep->argtotal = argtotal; - /* Reverse the order of the xcomments. */ - string_list_init (&shapep->xcomments); - for (i = xcomments.nitems; i > 0; ) - string_list_append (&shapep->xcomments, xcomments.item[--i]); - string_list_destroy (&xcomments); - return; - } + if (argnum1 == 0 && argnum2 == 0) + /* At least one non-context argument must be given. */ + break; + if (argnumc != 0 + && (argnum1_glib_context || argnum2_glib_context)) + /* Incompatible ways to specify the context. */ + break; + *endp = p; + shapep->argnum1 = (argnum1 > 0 ? argnum1 : 1); + shapep->argnum2 = argnum2; + shapep->argnumc = argnumc; + shapep->argnum1_glib_context = argnum1_glib_context; + shapep->argnum2_glib_context = argnum2_glib_context; + shapep->argtotal = argtotal; + /* Reverse the order of the xcomments. */ + string_list_init (&shapep->xcomments); + for (i = xcomments.nitems; i > 0; ) + string_list_append (&shapep->xcomments, xcomments.item[--i]); + string_list_destroy (&xcomments); + return; + } } /* Couldn't parse the desired syntax. */ @@ -1156,8 +1220,8 @@ void insert_keyword_callshape (hash_table *table, - const char *keyword, size_t keyword_len, - const struct callshape *shape) + const char *keyword, size_t keyword_len, + const struct callshape *shape) { void *old_value; @@ -1168,55 +1232,55 @@ shapes->nshapes = 1; shapes->shapes[0] = *shape; keyword = - (const char *) hash_insert_entry (table, keyword, keyword_len, shapes); + (const char *) hash_insert_entry (table, keyword, keyword_len, shapes); if (keyword == NULL) - abort (); + abort (); shapes->keyword = keyword; shapes->keyword_len = keyword_len; } else { /* Found a 'struct callshapes'. See whether it already contains the - desired shape. */ + desired shape. */ struct callshapes *old_shapes = (struct callshapes *) old_value; bool found; size_t i; found = false; for (i = 0; i < old_shapes->nshapes; i++) - if (old_shapes->shapes[i].argnum1 == shape->argnum1 - && old_shapes->shapes[i].argnum2 == shape->argnum2 - && old_shapes->shapes[i].argnumc == shape->argnumc - && old_shapes->shapes[i].argnum1_glib_context - == shape->argnum1_glib_context - && old_shapes->shapes[i].argnum2_glib_context - == shape->argnum2_glib_context - && old_shapes->shapes[i].argtotal == shape->argtotal) - { - old_shapes->shapes[i].xcomments = shape->xcomments; - found = true; - break; - } + if (old_shapes->shapes[i].argnum1 == shape->argnum1 + && old_shapes->shapes[i].argnum2 == shape->argnum2 + && old_shapes->shapes[i].argnumc == shape->argnumc + && old_shapes->shapes[i].argnum1_glib_context + == shape->argnum1_glib_context + && old_shapes->shapes[i].argnum2_glib_context + == shape->argnum2_glib_context + && old_shapes->shapes[i].argtotal == shape->argtotal) + { + old_shapes->shapes[i].xcomments = shape->xcomments; + found = true; + break; + } if (!found) - { - /* Replace the existing 'struct callshapes' with a new one. */ - struct callshapes *shapes = - (struct callshapes *) - xmalloc (xsum (sizeof (struct callshapes), - xtimes (old_shapes->nshapes, - sizeof (struct callshape)))); - - shapes->keyword = old_shapes->keyword; - shapes->keyword_len = old_shapes->keyword_len; - shapes->nshapes = old_shapes->nshapes + 1; - for (i = 0; i < old_shapes->nshapes; i++) - shapes->shapes[i] = old_shapes->shapes[i]; - shapes->shapes[i] = *shape; - if (hash_set_value (table, keyword, keyword_len, shapes)) - abort (); - free (old_shapes); - } + { + /* Replace the existing 'struct callshapes' with a new one. */ + struct callshapes *shapes = + (struct callshapes *) + xmalloc (xsum (sizeof (struct callshapes), + xtimes (old_shapes->nshapes, + sizeof (struct callshape)))); + + shapes->keyword = old_shapes->keyword; + shapes->keyword_len = old_shapes->keyword_len; + shapes->nshapes = old_shapes->nshapes + 1; + for (i = 0; i < old_shapes->nshapes; i++) + shapes->shapes[i] = old_shapes->shapes[i]; + shapes->shapes[i] = *shape; + if (hash_set_value (table, keyword, keyword_len, shapes)) + abort (); + free (old_shapes); + } } } @@ -1230,7 +1294,7 @@ flag_context_ty inherited_context (flag_context_ty outer_context, - flag_context_ty modifier_context) + flag_context_ty modifier_context) { flag_context_ty result = modifier_context; @@ -1244,6 +1308,11 @@ result.is_format2 = outer_context.is_format2; result.pass_format2 = false; } + if (result.pass_format3) + { + result.is_format3 = outer_context.is_format3; + result.pass_format3 = false; + } return result; } @@ -1287,10 +1356,10 @@ /* Special casing of circular list. */ if (iter->head != iter->head->next) - { - iter->head = iter->head->next; - iter->argnum++; - } + { + iter->head = iter->head->next; + iter->argnum++; + } return result; } @@ -1304,7 +1373,7 @@ flag_context_list_ty * flag_context_list_table_lookup (flag_context_list_table_ty *flag_table, - const void *key, size_t keylen) + const void *key, size_t keylen) { void *entry; @@ -1318,9 +1387,9 @@ static void flag_context_list_table_insert (flag_context_list_table_ty *table, - unsigned int index, - const char *name_start, const char *name_end, - int argnum, enum is_format value, bool pass) + unsigned int index, + const char *name_start, const char *name_end, + int argnum, enum is_format value, bool pass) { char *allocated_name = NULL; @@ -1332,9 +1401,9 @@ size_t i; for (i = 0; i < name_len; i++) - name[i] = (name_start[i] >= 'a' && name_start[i] <= 'z' - ? name_start[i] - 'a' + 'A' - : name_start[i]); + name[i] = (name_start[i] >= 'a' && name_start[i] <= 'z' + ? name_start[i] - 'a' + 'A' + : name_start[i]); name_start = name; name_end = name + name_len; } @@ -1342,8 +1411,8 @@ { /* Remove redundant "::" prefix. */ if (name_end - name_start > 2 - && name_start[0] == ':' && name_start[1] == ':') - name_start += 2; + && name_start[0] == ':' && name_start[1] == ':') + name_start += 2; } /* Insert the pair (VALUE, PASS) at INDEX in the element numbered ARGNUM @@ -1355,101 +1424,118 @@ if (hash_find_entry (table, name_start, name_end - name_start, &entry) != 0) { - /* Create new hash table entry. */ - flag_context_list_ty *list = XMALLOC (flag_context_list_ty); - list->argnum = argnum; - memset (&list->flags, '\0', sizeof (list->flags)); - switch (index) - { - case 0: - list->flags.is_format1 = value; - list->flags.pass_format1 = pass; - break; - case 1: - list->flags.is_format2 = value; - list->flags.pass_format2 = pass; - break; - default: - abort (); - } - list->next = NULL; - hash_insert_entry (table, name_start, name_end - name_start, list); + /* Create new hash table entry. */ + flag_context_list_ty *list = XMALLOC (flag_context_list_ty); + list->argnum = argnum; + memset (&list->flags, '\0', sizeof (list->flags)); + switch (index) + { + case 0: + list->flags.is_format1 = value; + list->flags.pass_format1 = pass; + break; + case 1: + list->flags.is_format2 = value; + list->flags.pass_format2 = pass; + break; + case 2: + list->flags.is_format3 = value; + list->flags.pass_format3 = pass; + break; + default: + abort (); + } + list->next = NULL; + hash_insert_entry (table, name_start, name_end - name_start, list); } else { - flag_context_list_ty *list = (flag_context_list_ty *)entry; - flag_context_list_ty **lastp = NULL; - - while (list != NULL && list->argnum < argnum) - { - lastp = &list->next; - list = *lastp; - } - if (list != NULL && list->argnum == argnum) - { - /* Add this flag to the current argument number. */ - switch (index) - { - case 0: - list->flags.is_format1 = value; - list->flags.pass_format1 = pass; - break; - case 1: - list->flags.is_format2 = value; - list->flags.pass_format2 = pass; - break; - default: - abort (); - } - } - else if (lastp != NULL) - { - /* Add a new list entry for this argument number. */ - list = XMALLOC (flag_context_list_ty); - list->argnum = argnum; - memset (&list->flags, '\0', sizeof (list->flags)); - switch (index) - { - case 0: - list->flags.is_format1 = value; - list->flags.pass_format1 = pass; - break; - case 1: - list->flags.is_format2 = value; - list->flags.pass_format2 = pass; - break; - default: - abort (); - } - list->next = *lastp; - *lastp = list; - } - else - { - /* Add a new list entry for this argument number, at the beginning - of the list. Since we don't have an API for replacing the - value of a key in the hash table, we have to copy the first - list element. */ - flag_context_list_ty *copy = XMALLOC (flag_context_list_ty); - *copy = *list; - - list->argnum = argnum; - memset (&list->flags, '\0', sizeof (list->flags)); - switch (index) - { - case 0: - list->flags.is_format1 = value; - list->flags.pass_format1 = pass; - break; - case 1: - list->flags.is_format2 = value; - list->flags.pass_format2 = pass; - break; - default: - abort (); - } - list->next = copy; - } + flag_context_list_ty *list = (flag_context_list_ty *)entry; + flag_context_list_ty **lastp = NULL; + /* Invariant: list == (lastp != NULL ? *lastp : entry). */ + + while (list != NULL && list->argnum < argnum) + { + lastp = &list->next; + list = *lastp; + } + if (list != NULL && list->argnum == argnum) + { + /* Add this flag to the current argument number. */ + switch (index) + { + case 0: + list->flags.is_format1 = value; + list->flags.pass_format1 = pass; + break; + case 1: + list->flags.is_format2 = value; + list->flags.pass_format2 = pass; + break; + case 2: + list->flags.is_format3 = value; + list->flags.pass_format3 = pass; + break; + default: + abort (); + } + } + else if (lastp != NULL) + { + /* Add a new list entry for this argument number. */ + list = XMALLOC (flag_context_list_ty); + list->argnum = argnum; + memset (&list->flags, '\0', sizeof (list->flags)); + switch (index) + { + case 0: + list->flags.is_format1 = value; + list->flags.pass_format1 = pass; + break; + case 1: + list->flags.is_format2 = value; + list->flags.pass_format2 = pass; + break; + case 2: + list->flags.is_format3 = value; + list->flags.pass_format3 = pass; + break; + default: + abort (); + } + list->next = *lastp; + *lastp = list; + } + else + { + /* Add a new list entry for this argument number, at the beginning + of the list. Since we don't have an API for replacing the + value of a key in the hash table, we have to copy the first + list element. */ + flag_context_list_ty *copy = XMALLOC (flag_context_list_ty); + *copy = *list; + + list->argnum = argnum; + memset (&list->flags, '\0', sizeof (list->flags)); + switch (index) + { + case 0: + list->flags.is_format1 = value; + list->flags.pass_format1 = pass; + break; + case 1: + list->flags.is_format2 = value; + list->flags.pass_format2 = pass; + break; + case 2: + list->flags.is_format3 = value; + list->flags.pass_format3 = pass; + break; + default: + abort (); + } + list->next = copy; + } } } @@ -1469,18 +1555,18 @@ for (colon2 = optionstring + strlen (optionstring); ; ) { if (colon2 == optionstring) - goto err; + goto err; colon2--; if (*colon2 == ':') - break; + break; } for (colon1 = colon2; ; ) { if (colon1 == optionstring) - goto err; + goto err; colon1--; if (*colon1 == ':') - break; + break; } { const char *name_start = optionstring; @@ -1499,7 +1585,7 @@ char *endp; argnum = strtol (argnum_start, &endp, 10); if (endp != argnum_end) - goto err; + goto err; } if (argnum <= 0) goto err; @@ -1510,182 +1596,192 @@ pass = false; if (strlen (flag) >= 5 && memcmp (flag, "pass-", 5) == 0) - { - pass = true; - flag += 5; - } + { + pass = true; + flag += 5; + } /* Unlike po_parse_comment_special(), we don't accept "fuzzy" or "wrap" - here - it has no sense. */ + here - it has no sense. */ if (strlen (flag) >= 7 - && memcmp (flag + strlen (flag) - 7, "-format", 7) == 0) - { - const char *p; - size_t n; - enum is_format value; - size_t type; - - p = flag; - n = strlen (flag) - 7; - - if (n >= 3 && memcmp (p, "no-", 3) == 0) - { - p += 3; - n -= 3; - value = no; - } - else if (n >= 9 && memcmp (p, "possible-", 9) == 0) - { - p += 9; - n -= 9; - value = possible; - } - else if (n >= 11 && memcmp (p, "impossible-", 11) == 0) - { - p += 11; - n -= 11; - value = impossible; - } - else - value = yes_according_to_context; - - for (type = 0; type < NFORMATS; type++) - if (strlen (format_language[type]) == n - && memcmp (format_language[type], p, n) == 0) - { - switch (type) - { - case format_c: - flag_context_list_table_insert (&flag_table_c, 0, - name_start, name_end, - argnum, value, pass); - flag_context_list_table_insert (&flag_table_cxx_qt, 0, - name_start, name_end, - argnum, value, pass); - flag_context_list_table_insert (&flag_table_cxx_kde, 0, - name_start, name_end, - argnum, value, pass); - flag_context_list_table_insert (&flag_table_cxx_boost, 0, - name_start, name_end, - argnum, value, pass); - flag_context_list_table_insert (&flag_table_objc, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_objc: - flag_context_list_table_insert (&flag_table_objc, 1, - name_start, name_end, - argnum, value, pass); - break; - case format_sh: - flag_context_list_table_insert (&flag_table_sh, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_python: - flag_context_list_table_insert (&flag_table_python, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_lisp: - flag_context_list_table_insert (&flag_table_lisp, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_elisp: - flag_context_list_table_insert (&flag_table_elisp, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_librep: - flag_context_list_table_insert (&flag_table_librep, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_scheme: - flag_context_list_table_insert (&flag_table_scheme, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_smalltalk: - break; - case format_java: - flag_context_list_table_insert (&flag_table_java, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_csharp: - flag_context_list_table_insert (&flag_table_csharp, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_awk: - flag_context_list_table_insert (&flag_table_awk, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_pascal: - break; - case format_ycp: - flag_context_list_table_insert (&flag_table_ycp, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_tcl: - flag_context_list_table_insert (&flag_table_tcl, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_perl: - flag_context_list_table_insert (&flag_table_perl, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_perl_brace: - flag_context_list_table_insert (&flag_table_perl, 1, - name_start, name_end, - argnum, value, pass); - break; - case format_php: - flag_context_list_table_insert (&flag_table_php, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_gcc_internal: - flag_context_list_table_insert (&flag_table_gcc_internal, 0, - name_start, name_end, - argnum, value, pass); - break; - case format_qt: - flag_context_list_table_insert (&flag_table_cxx_qt, 1, - name_start, name_end, - argnum, value, pass); - break; - case format_kde: - flag_context_list_table_insert (&flag_table_cxx_kde, 1, - name_start, name_end, - argnum, value, pass); - break; - case format_boost: - flag_context_list_table_insert (&flag_table_cxx_boost, 1, - name_start, name_end, - argnum, value, pass); - break; - default: - abort (); - } - return; - } - /* If the flag is not among the valid values, the optionstring is - invalid. */ - } + && memcmp (flag + strlen (flag) - 7, "-format", 7) == 0) + { + const char *p; + size_t n; + enum is_format value; + size_t type; + + p = flag; + n = strlen (flag) - 7; + + if (n >= 3 && memcmp (p, "no-", 3) == 0) + { + p += 3; + n -= 3; + value = no; + } + else if (n >= 9 && memcmp (p, "possible-", 9) == 0) + { + p += 9; + n -= 9; + value = possible; + } + else if (n >= 11 && memcmp (p, "impossible-", 11) == 0) + { + p += 11; + n -= 11; + value = impossible; + } + else + value = yes_according_to_context; + + for (type = 0; type < NFORMATS; type++) + if (strlen (format_language[type]) == n + && memcmp (format_language[type], p, n) == 0) + { + switch (type) + { + case format_c: + flag_context_list_table_insert (&flag_table_c, 0, + name_start, name_end, + argnum, value, pass); + flag_context_list_table_insert (&flag_table_cxx_qt, 0, + name_start, name_end, + argnum, value, pass); + flag_context_list_table_insert (&flag_table_cxx_kde, 0, + name_start, name_end, + argnum, value, pass); + flag_context_list_table_insert (&flag_table_cxx_boost, 0, + name_start, name_end, + argnum, value, pass); + flag_context_list_table_insert (&flag_table_objc, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_objc: + flag_context_list_table_insert (&flag_table_objc, 1, + name_start, name_end, + argnum, value, pass); + break; + case format_sh: + flag_context_list_table_insert (&flag_table_sh, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_python: + flag_context_list_table_insert (&flag_table_python, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_lisp: + flag_context_list_table_insert (&flag_table_lisp, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_elisp: + flag_context_list_table_insert (&flag_table_elisp, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_librep: + flag_context_list_table_insert (&flag_table_librep, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_scheme: + flag_context_list_table_insert (&flag_table_scheme, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_smalltalk: + break; + case format_java: + flag_context_list_table_insert (&flag_table_java, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_csharp: + flag_context_list_table_insert (&flag_table_csharp, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_awk: + flag_context_list_table_insert (&flag_table_awk, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_pascal: + break; + case format_ycp: + flag_context_list_table_insert (&flag_table_ycp, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_tcl: + flag_context_list_table_insert (&flag_table_tcl, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_perl: + flag_context_list_table_insert (&flag_table_perl, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_perl_brace: + flag_context_list_table_insert (&flag_table_perl, 1, + name_start, name_end, + argnum, value, pass); + break; + case format_php: + flag_context_list_table_insert (&flag_table_php, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_gcc_internal: + flag_context_list_table_insert (&flag_table_gcc_internal, 0, + name_start, name_end, + argnum, value, pass); + break; + case format_gfc_internal: + flag_context_list_table_insert (&flag_table_gcc_internal, 1, + name_start, name_end, + argnum, value, pass); + break; + case format_qt: + flag_context_list_table_insert (&flag_table_cxx_qt, 1, + name_start, name_end, + argnum, value, pass); + break; + case format_qt_plural: + flag_context_list_table_insert (&flag_table_cxx_qt, 2, + name_start, name_end, + argnum, value, pass); + break; + case format_kde: + flag_context_list_table_insert (&flag_table_cxx_kde, 1, + name_start, name_end, + argnum, value, pass); + break; + case format_boost: + flag_context_list_table_insert (&flag_table_cxx_boost, 1, + name_start, name_end, + argnum, value, pass); + break; + default: + abort (); + } + return; + } + /* If the flag is not among the valid values, the optionstring is + invalid. */ + } } } err: error (EXIT_FAILURE, 0, _("\ A --flag argument doesn't have the ::[pass-] syntax: %s"), - optionstring); + optionstring); } @@ -1745,7 +1841,7 @@ savable_comment->refcount = 1; string_list_init (&savable_comment->contents); for (i = 0; i < oldcontents->nitems; i++) - string_list_append (&savable_comment->contents, oldcontents->item[i]); + string_list_append (&savable_comment->contents, oldcontents->item[i]); } string_list_append (&savable_comment->contents, str); } @@ -1766,7 +1862,7 @@ size_t i; for (i = 0; i < rslp->contents.nitems; i++) - xgettext_comment_add (rslp->contents.item[i]); + xgettext_comment_add (rslp->contents.item[i]); } } @@ -1774,7 +1870,7 @@ static FILE * xgettext_open (const char *fn, - char **logical_file_name_p, char **real_file_name_p) + char **logical_file_name_p, char **real_file_name_p) { FILE *fp; char *new_name; @@ -1791,7 +1887,7 @@ new_name = xstrdup (fn); fp = fopen (fn, "r"); if (fp == NULL) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while opening \"%s\" for reading"), fn); logical_file_name = xstrdup (new_name); } @@ -1800,30 +1896,30 @@ int j; for (j = 0; ; ++j) - { - const char *dir = dir_list_nth (j); + { + const char *dir = dir_list_nth (j); - if (dir == NULL) - error (EXIT_FAILURE, ENOENT, _("\ + if (dir == NULL) + error (EXIT_FAILURE, ENOENT, _("\ error while opening \"%s\" for reading"), fn); - new_name = concatenated_filename (dir, fn, NULL); + new_name = xconcatenated_filename (dir, fn, NULL); - fp = fopen (new_name, "r"); - if (fp != NULL) - break; + fp = fopen (new_name, "r"); + if (fp != NULL) + break; - if (errno != ENOENT) - error (EXIT_FAILURE, errno, _("\ + if (errno != ENOENT) + error (EXIT_FAILURE, errno, _("\ error while opening \"%s\" for reading"), new_name); - free (new_name); - } + free (new_name); + } /* Note that the NEW_NAME variable contains the actual file name - and the logical file name is what is reported by xgettext. In - this case NEW_NAME is set to the file which was found along the - directory search path, and LOGICAL_FILE_NAME is is set to the - file name which was searched for. */ + and the logical file name is what is reported by xgettext. In + this case NEW_NAME is set to the file which was found along the + directory search path, and LOGICAL_FILE_NAME is is set to the + file name which was searched for. */ logical_file_name = xstrdup (fn); } @@ -1837,11 +1933,12 @@ NULL if the language has no notion of format strings. */ static struct formatstring_parser *current_formatstring_parser1; static struct formatstring_parser *current_formatstring_parser2; +static struct formatstring_parser *current_formatstring_parser3; static void extract_from_file (const char *file_name, extractor_ty extractor, - msgdomain_list_ty *mdlp) + msgdomain_list_ty *mdlp) { char *logical_file_name; char *real_file_name; @@ -1856,8 +1953,9 @@ current_formatstring_parser1 = extractor.formatstring_parser1; current_formatstring_parser2 = extractor.formatstring_parser2; + current_formatstring_parser3 = extractor.formatstring_parser3; extractor.func (fp, real_file_name, logical_file_name, extractor.flag_table, - mdlp); + mdlp); if (fp != stdin) fclose (fp); @@ -1867,31 +1965,62 @@ +/* Error message about non-ASCII character in a specific lexical context. */ +char * +non_ascii_error_message (lexical_context_ty lcontext, + const char *file_name, size_t line_number) +{ + char buffer[21]; + char *errmsg; + + if (line_number == (size_t)(-1)) + buffer[0] = '\0'; + else + sprintf (buffer, ":%ld", (long) line_number); + + switch (lcontext) + { + case lc_outside: + errmsg = + xasprintf (_("Non-ASCII character at %s%s."), file_name, buffer); + break; + case lc_comment: + errmsg = + xasprintf (_("Non-ASCII comment at or before %s%s."), + file_name, buffer); + break; + case lc_string: + errmsg = + xasprintf (_("Non-ASCII string at %s%s."), file_name, buffer); + break; + default: + abort (); + } + return errmsg; +} + /* Convert the given string from xgettext_current_source_encoding to the output file encoding (i.e. ASCII or UTF-8). The resulting string is either the argument string, or freshly allocated. The file_name and line_number are only used for error message purposes. */ char * from_current_source_encoding (const char *string, - const char *file_name, size_t line_number) + lexical_context_ty lcontext, + const char *file_name, size_t line_number) { if (xgettext_current_source_encoding == po_charset_ascii) { if (!is_ascii_string (string)) - { - char buffer[21]; - - if (line_number == (size_t)(-1)) - buffer[0] = '\0'; - else - sprintf (buffer, ":%ld", (long) line_number); - multiline_error (xstrdup (""), - xasprintf (_("\ -Non-ASCII string at %s%s.\n\ -Please specify the source encoding through --from-code.\n"), - file_name, buffer)); - exit (EXIT_FAILURE); - } + { + multiline_error (xstrdup (""), + xasprintf ("%s\n%s\n", + non_ascii_error_message (lcontext, + file_name, + line_number), + _("\ +Please specify the source encoding through --from-code."))); + exit (EXIT_FAILURE); + } } else if (xgettext_current_source_encoding != po_charset_utf8) { @@ -1903,12 +2032,13 @@ context.from_filename = file_name; context.message = NULL; - string = convert_string (xgettext_current_source_iconv, string, &context); + string = convert_string_directly (xgettext_current_source_iconv, string, + &context); #else /* If we don't have iconv(), the only supported values for - xgettext_global_source_encoding and thus also for - xgettext_current_source_encoding are ASCII and UTF-8. - convert_string() should not be called in this case. */ + xgettext_global_source_encoding and thus also for + xgettext_current_source_encoding are ASCII and UTF-8. + convert_string_directly() should not be called in this case. */ abort (); #endif } @@ -1916,74 +2046,79 @@ return (char *) string; } -#define CONVERT_STRING(string) \ - string = from_current_source_encoding (string, pos->file_name, \ - pos->line_number); +#define CONVERT_STRING(string, lcontext) \ + string = from_current_source_encoding (string, lcontext, pos->file_name, \ + pos->line_number); /* Update the is_format[] flags depending on the information given in the context. */ static void set_format_flags_from_context (enum is_format is_format[NFORMATS], - flag_context_ty context, const char *string, - lex_pos_ty *pos, const char *pretty_msgstr) + flag_context_ty context, const char *string, + lex_pos_ty *pos, const char *pretty_msgstr) { size_t i; - if (context.is_format1 != undecided || context.is_format2 != undecided) + if (context.is_format1 != undecided + || context.is_format2 != undecided + || context.is_format3 != undecided) for (i = 0; i < NFORMATS; i++) { - if (is_format[i] == undecided) - { - if (formatstring_parsers[i] == current_formatstring_parser1 - && context.is_format1 != undecided) - is_format[i] = (enum is_format) context.is_format1; - if (formatstring_parsers[i] == current_formatstring_parser2 - && context.is_format2 != undecided) - is_format[i] = (enum is_format) context.is_format2; - } - if (possible_format_p (is_format[i])) - { - struct formatstring_parser *parser = formatstring_parsers[i]; - char *invalid_reason = NULL; - void *descr = parser->parse (string, false, NULL, &invalid_reason); - - if (descr != NULL) - parser->free (descr); - else - { - /* The string is not a valid format string. */ - if (is_format[i] != possible) - { - char buffer[21]; - - error_with_progname = false; - if (pos->line_number == (size_t)(-1)) - buffer[0] = '\0'; - else - sprintf (buffer, ":%ld", (long) pos->line_number); - multiline_warning (xasprintf (_("%s%s: warning: "), - pos->file_name, buffer), - xasprintf (is_format[i] == yes_according_to_context - ? _("Although being used in a format string position, the %s is not a valid %s format string. Reason: %s\n") - : _("Although declared as such, the %s is not a valid %s format string. Reason: %s\n"), - pretty_msgstr, - format_language_pretty[i], - invalid_reason)); - error_with_progname = true; - } - - is_format[i] = impossible; - free (invalid_reason); - } - } + if (is_format[i] == undecided) + { + if (formatstring_parsers[i] == current_formatstring_parser1 + && context.is_format1 != undecided) + is_format[i] = (enum is_format) context.is_format1; + if (formatstring_parsers[i] == current_formatstring_parser2 + && context.is_format2 != undecided) + is_format[i] = (enum is_format) context.is_format2; + if (formatstring_parsers[i] == current_formatstring_parser3 + && context.is_format3 != undecided) + is_format[i] = (enum is_format) context.is_format3; + } + if (possible_format_p (is_format[i])) + { + struct formatstring_parser *parser = formatstring_parsers[i]; + char *invalid_reason = NULL; + void *descr = parser->parse (string, false, NULL, &invalid_reason); + + if (descr != NULL) + parser->free (descr); + else + { + /* The string is not a valid format string. */ + if (is_format[i] != possible) + { + char buffer[21]; + + error_with_progname = false; + if (pos->line_number == (size_t)(-1)) + buffer[0] = '\0'; + else + sprintf (buffer, ":%ld", (long) pos->line_number); + multiline_warning (xasprintf (_("%s%s: warning: "), + pos->file_name, buffer), + xasprintf (is_format[i] == yes_according_to_context + ? _("Although being used in a format string position, the %s is not a valid %s format string. Reason: %s\n") + : _("Although declared as such, the %s is not a valid %s format string. Reason: %s\n"), + pretty_msgstr, + format_language_pretty[i], + invalid_reason)); + error_with_progname = true; + } + + is_format[i] = impossible; + free (invalid_reason); + } + } } } static void warn_format_string (enum is_format is_format[NFORMATS], const char *string, - lex_pos_ty *pos, const char *pretty_msgstr) + lex_pos_ty *pos, const char *pretty_msgstr) { if (possible_format_p (is_format[format_python]) && get_python_format_unnamed_arg_count (string) > 1) @@ -1996,8 +2131,8 @@ else sprintf (buffer, ":%ld", (long) pos->line_number); multiline_warning (xasprintf (_("%s%s: warning: "), - pos->file_name, buffer), - xasprintf (_("\ + pos->file_name, buffer), + xasprintf (_("\ '%s' format string with unnamed arguments cannot be properly localized:\n\ The translator cannot reorder the arguments.\n\ Please consider using a format string with named arguments,\n\ @@ -2010,10 +2145,12 @@ message_ty * remember_a_message (message_list_ty *mlp, char *msgctxt, char *msgid, - flag_context_ty context, lex_pos_ty *pos, - refcounted_string_list_ty *comment) + flag_context_ty context, lex_pos_ty *pos, + const char *extracted_comment, + refcounted_string_list_ty *comment) { enum is_format is_format[NFORMATS]; + struct argument_range range; enum is_wrap do_wrap; message_ty *mp; char *msgstr; @@ -2023,12 +2160,12 @@ if (exclude != NULL && message_list_search (exclude, msgctxt, msgid) != NULL) { /* Tell the lexer to reset its comment buffer, so that the next - message gets the correct comments. */ + message gets the correct comments. */ xgettext_comment_reset (); savable_comment_reset (); if (msgctxt != NULL) - free (msgctxt); + free (msgctxt); free (msgid); return NULL; @@ -2038,11 +2175,13 @@ for (i = 0; i < NFORMATS; i++) is_format[i] = undecided; + range.min = -1; + range.max = -1; do_wrap = undecided; if (msgctxt != NULL) - CONVERT_STRING (msgctxt); - CONVERT_STRING (msgid); + CONVERT_STRING (msgctxt, lc_string); + CONVERT_STRING (msgid, lc_string); if (msgctxt == NULL && msgid[0] == '\0' && !xgettext_omit_header) { @@ -2050,12 +2189,12 @@ error_with_progname = false; if (pos->line_number == (size_t)(-1)) - buffer[0] = '\0'; + buffer[0] = '\0'; else - sprintf (buffer, ":%ld", (long) pos->line_number); + sprintf (buffer, ":%ld", (long) pos->line_number); multiline_warning (xasprintf (_("%s%s: warning: "), pos->file_name, - buffer), - xstrdup (_("\ + buffer), + xstrdup (_("\ Empty msgid. It is reserved by GNU gettext:\n\ gettext(\"\") returns the header entry with\n\ meta information, not the empty string.\n"))); @@ -2067,24 +2206,24 @@ if (mp != NULL) { if (msgctxt != NULL) - free (msgctxt); + free (msgctxt); free (msgid); for (i = 0; i < NFORMATS; i++) - is_format[i] = mp->is_format[i]; + is_format[i] = mp->is_format[i]; do_wrap = mp->do_wrap; } else { /* Construct the msgstr from the prefix and suffix, otherwise use the - empty string. */ + empty string. */ if (msgstr_prefix) - msgstr = xasprintf ("%s%s%s", msgstr_prefix, msgid, msgstr_suffix); + msgstr = xasprintf ("%s%s%s", msgstr_prefix, msgid, msgstr_suffix); else - msgstr = ""; + msgstr = ""; /* Allocate a new message and append the message to the list. */ mp = message_alloc (msgctxt, msgid, NULL, msgstr, strlen (msgstr) + 1, - pos); + pos); /* Do not free msgctxt and msgid. */ message_list_append (mlp, mp); } @@ -2102,56 +2241,66 @@ nitems_before = (mp->comment_dot != NULL ? mp->comment_dot->nitems : 0); + if (extracted_comment != NULL) + message_comment_dot_append (mp, extracted_comment); + add_all_remaining_comments = add_all_comments; for (j = 0; ; ++j) { - const char *s = xgettext_comment (j); - const char *t; - if (s == NULL) - break; - - CONVERT_STRING (s); - - /* To reduce the possibility of unwanted matches we do a two - step match: the line must contain `xgettext:' and one of - the possible format description strings. */ - if ((t = c_strstr (s, "xgettext:")) != NULL) - { - bool tmp_fuzzy; - enum is_format tmp_format[NFORMATS]; - enum is_wrap tmp_wrap; - bool interesting; - - t += strlen ("xgettext:"); - - po_parse_comment_special (t, &tmp_fuzzy, tmp_format, &tmp_wrap); - - interesting = false; - for (i = 0; i < NFORMATS; i++) - if (tmp_format[i] != undecided) - { - is_format[i] = tmp_format[i]; - interesting = true; - } - if (tmp_wrap != undecided) - { - do_wrap = tmp_wrap; - interesting = true; - } - - /* If the "xgettext:" marker was followed by an interesting - keyword, and we updated our is_format/do_wrap variables, - we don't print the comment as a #. comment. */ - if (interesting) - continue; - } - /* When the comment tag is seen, it drags in not only the line - which it starts, but all remaining comment lines. */ - if (add_all_remaining_comments - || (add_all_remaining_comments = - (comment_tag != NULL - && strncmp (s, comment_tag, strlen (comment_tag)) == 0))) - message_comment_dot_append (mp, s); + const char *s = xgettext_comment (j); + const char *t; + if (s == NULL) + break; + + CONVERT_STRING (s, lc_comment); + + /* To reduce the possibility of unwanted matches we do a two + step match: the line must contain `xgettext:' and one of + the possible format description strings. */ + if ((t = c_strstr (s, "xgettext:")) != NULL) + { + bool tmp_fuzzy; + enum is_format tmp_format[NFORMATS]; + struct argument_range tmp_range; + enum is_wrap tmp_wrap; + bool interesting; + + t += strlen ("xgettext:"); + + po_parse_comment_special (t, &tmp_fuzzy, tmp_format, &tmp_range, + &tmp_wrap); + + interesting = false; + for (i = 0; i < NFORMATS; i++) + if (tmp_format[i] != undecided) + { + is_format[i] = tmp_format[i]; + interesting = true; + } + if (has_range_p (tmp_range)) + { + range = tmp_range; + interesting = true; + } + if (tmp_wrap != undecided) + { + do_wrap = tmp_wrap; + interesting = true; + } + + /* If the "xgettext:" marker was followed by an interesting + keyword, and we updated our is_format/do_wrap variables, + we don't print the comment as a #. comment. */ + if (interesting) + continue; + } + /* When the comment tag is seen, it drags in not only the line + which it starts, but all remaining comment lines. */ + if (add_all_remaining_comments + || (add_all_remaining_comments = + (comment_tag != NULL + && strncmp (s, comment_tag, strlen (comment_tag)) == 0))) + message_comment_dot_append (mp, s); } nitems_after = (mp->comment_dot != NULL ? mp->comment_dot->nitems : 0); @@ -2161,27 +2310,27 @@ same message appears several times, each time with the same comment. */ if (nitems_before < nitems_after) { - size_t added = nitems_after - nitems_before; + size_t added = nitems_after - nitems_before; - if (added <= nitems_before) - { - bool repeated = true; - - for (i = 0; i < added; i++) - if (strcmp (mp->comment_dot->item[nitems_before - added + i], - mp->comment_dot->item[nitems_before + i]) != 0) - { - repeated = false; - break; - } - - if (repeated) - { - for (i = 0; i < added; i++) - free ((char *) mp->comment_dot->item[nitems_before + i]); - mp->comment_dot->nitems = nitems_before; - } - } + if (added <= nitems_before) + { + bool repeated = true; + + for (i = 0; i < added; i++) + if (strcmp (mp->comment_dot->item[nitems_before - added + i], + mp->comment_dot->item[nitems_before + i]) != 0) + { + repeated = false; + break; + } + + if (repeated) + { + for (i = 0; i < added; i++) + free ((char *) mp->comment_dot->item[nitems_before + i]); + mp->comment_dot->nitems = nitems_before; + } + } } } @@ -2190,50 +2339,66 @@ for (i = 0; i < NFORMATS; i++) { if (is_format[i] == undecided - && (formatstring_parsers[i] == current_formatstring_parser1 - || formatstring_parsers[i] == current_formatstring_parser2) - /* But avoid redundancy: objc-format is stronger than c-format. */ - && !(i == format_c && possible_format_p (is_format[format_objc])) - && !(i == format_objc && possible_format_p (is_format[format_c])) - /* Avoid flagging a string as c-format when it's known to be a - qt-format or kde-format or boost-format string. */ - && !(i == format_c - && (possible_format_p (is_format[format_qt]) - || possible_format_p (is_format[format_kde]) - || possible_format_p (is_format[format_boost])))) - { - struct formatstring_parser *parser = formatstring_parsers[i]; - char *invalid_reason = NULL; - void *descr = parser->parse (mp->msgid, false, NULL, &invalid_reason); - - if (descr != NULL) - { - /* msgid is a valid format string. We mark only those msgids - as format strings which contain at least one format directive - and thus are format strings with a high probability. We - don't mark strings without directives as format strings, - because that would force the programmer to add - "xgettext: no-c-format" anywhere where a translator wishes - to use a percent sign. So, the msgfmt checking will not be - perfect. Oh well. */ - if (parser->get_number_of_directives (descr) > 0 - && !(parser->is_unlikely_intentional != NULL - && parser->is_unlikely_intentional (descr))) - is_format[i] = possible; - - parser->free (descr); - } - else - { - /* msgid is not a valid format string. */ - is_format[i] = impossible; - free (invalid_reason); - } - } + && (formatstring_parsers[i] == current_formatstring_parser1 + || formatstring_parsers[i] == current_formatstring_parser2 + || formatstring_parsers[i] == current_formatstring_parser3) + /* But avoid redundancy: objc-format is stronger than c-format. */ + && !(i == format_c && possible_format_p (is_format[format_objc])) + && !(i == format_objc && possible_format_p (is_format[format_c])) + /* Avoid flagging a string as c-format when it's known to be a + qt-format or qt-plural-format or kde-format or boost-format + string. */ + && !(i == format_c + && (possible_format_p (is_format[format_qt]) + || possible_format_p (is_format[format_qt_plural]) + || possible_format_p (is_format[format_kde]) + || possible_format_p (is_format[format_boost])))) + { + struct formatstring_parser *parser = formatstring_parsers[i]; + char *invalid_reason = NULL; + void *descr = parser->parse (mp->msgid, false, NULL, &invalid_reason); + + if (descr != NULL) + { + /* msgid is a valid format string. We mark only those msgids + as format strings which contain at least one format directive + and thus are format strings with a high probability. We + don't mark strings without directives as format strings, + because that would force the programmer to add + "xgettext: no-c-format" anywhere where a translator wishes + to use a percent sign. So, the msgfmt checking will not be + perfect. Oh well. */ + if (parser->get_number_of_directives (descr) > 0 + && !(parser->is_unlikely_intentional != NULL + && parser->is_unlikely_intentional (descr))) + is_format[i] = possible; + + parser->free (descr); + } + else + { + /* msgid is not a valid format string. */ + is_format[i] = impossible; + free (invalid_reason); + } + } mp->is_format[i] = is_format[i]; } - mp->do_wrap = do_wrap == no ? no : yes; /* By default we wrap. */ + if (has_range_p (range)) + { + if (has_range_p (mp->range)) + { + if (range.min < mp->range.min) + mp->range.min = range.min; + if (range.max > mp->range.max) + mp->range.max = range.max; + } + else + mp->range = range; + } + + mp->do_wrap = do_wrap == no ? no : yes; /* By default we wrap. */ /* Warn about the use of non-reorderable format strings when the programming language also provides reorderable format strings. */ @@ -2254,8 +2419,8 @@ void remember_a_message_plural (message_ty *mp, char *string, - flag_context_ty context, lex_pos_ty *pos, - refcounted_string_list_ty *comment) + flag_context_ty context, lex_pos_ty *pos, + refcounted_string_list_ty *comment) { char *msgid_plural; char *msgstr1; @@ -2267,7 +2432,7 @@ savable_comment_to_xgettext_comment (comment); - CONVERT_STRING (msgid_plural); + CONVERT_STRING (msgid_plural, lc_string); /* See if the message is already a plural message. */ if (mp->msgid_plural == NULL) @@ -2275,13 +2440,13 @@ mp->msgid_plural = msgid_plural; /* Construct the first plural form from the prefix and suffix, - otherwise use the empty string. The translator will have to - provide additional plural forms. */ + otherwise use the empty string. The translator will have to + provide additional plural forms. */ if (msgstr_prefix) - msgstr1 = - xasprintf ("%s%s%s", msgstr_prefix, msgid_plural, msgstr_suffix); + msgstr1 = + xasprintf ("%s%s%s", msgstr_prefix, msgid_plural, msgstr_suffix); else - msgstr1 = ""; + msgstr1 = ""; msgstr1_len = strlen (msgstr1) + 1; msgstr = XNMALLOC (mp->msgstr_len + msgstr1_len, char); memcpy (msgstr, mp->msgstr, mp->msgstr_len); @@ -2289,54 +2454,56 @@ mp->msgstr = msgstr; mp->msgstr_len = mp->msgstr_len + msgstr1_len; if (msgstr_prefix) - free (msgstr1); + free (msgstr1); /* Determine whether the context specifies that the msgid_plural is a - format string. */ + format string. */ set_format_flags_from_context (mp->is_format, context, mp->msgid_plural, - pos, "msgid_plural"); + pos, "msgid_plural"); /* If it is not already decided, through programmer comments or - the msgid, whether the msgid is a format string, examine the - msgid_plural. This is a heuristic. */ + the msgid, whether the msgid is a format string, examine the + msgid_plural. This is a heuristic. */ for (i = 0; i < NFORMATS; i++) - if ((formatstring_parsers[i] == current_formatstring_parser1 - || formatstring_parsers[i] == current_formatstring_parser2) - && (mp->is_format[i] == undecided || mp->is_format[i] == possible) - /* But avoid redundancy: objc-format is stronger than c-format. */ - && !(i == format_c - && possible_format_p (mp->is_format[format_objc])) - && !(i == format_objc - && possible_format_p (mp->is_format[format_c])) - /* Avoid flagging a string as c-format when it's known to be a - qt-format or boost-format string. */ - && !(i == format_c - && (possible_format_p (mp->is_format[format_qt]) - || possible_format_p (mp->is_format[format_kde]) - || possible_format_p (mp->is_format[format_boost])))) - { - struct formatstring_parser *parser = formatstring_parsers[i]; - char *invalid_reason = NULL; - void *descr = - parser->parse (mp->msgid_plural, false, NULL, &invalid_reason); - - if (descr != NULL) - { - /* Same heuristic as in remember_a_message. */ - if (parser->get_number_of_directives (descr) > 0 - && !(parser->is_unlikely_intentional != NULL - && parser->is_unlikely_intentional (descr))) - mp->is_format[i] = possible; - - parser->free (descr); - } - else - { - /* msgid_plural is not a valid format string. */ - mp->is_format[i] = impossible; - free (invalid_reason); - } - } + if ((formatstring_parsers[i] == current_formatstring_parser1 + || formatstring_parsers[i] == current_formatstring_parser2 + || formatstring_parsers[i] == current_formatstring_parser3) + && (mp->is_format[i] == undecided || mp->is_format[i] == possible) + /* But avoid redundancy: objc-format is stronger than c-format. */ + && !(i == format_c + && possible_format_p (mp->is_format[format_objc])) + && !(i == format_objc + && possible_format_p (mp->is_format[format_c])) + /* Avoid flagging a string as c-format when it's known to be a + qt-format or qt-plural-format or boost-format string. */ + && !(i == format_c + && (possible_format_p (mp->is_format[format_qt]) + || possible_format_p (mp->is_format[format_qt_plural]) + || possible_format_p (mp->is_format[format_kde]) + || possible_format_p (mp->is_format[format_boost])))) + { + struct formatstring_parser *parser = formatstring_parsers[i]; + char *invalid_reason = NULL; + void *descr = + parser->parse (mp->msgid_plural, false, NULL, &invalid_reason); + + if (descr != NULL) + { + /* Same heuristic as in remember_a_message. */ + if (parser->get_number_of_directives (descr) > 0 + && !(parser->is_unlikely_intentional != NULL + && parser->is_unlikely_intentional (descr))) + mp->is_format[i] = possible; + + parser->free (descr); + } + else + { + /* msgid_plural is not a valid format string. */ + mp->is_format[i] = impossible; + free (invalid_reason); + } + } /* Warn about the use of non-reorderable format strings when the programming language also provides reorderable format strings. */ @@ -2358,8 +2525,8 @@ if (shapes == NULL || shapes->nshapes == 0) { struct arglist_parser *ap = - (struct arglist_parser *) - xmalloc (offsetof (struct arglist_parser, alternative[0])); + (struct arglist_parser *) + xmalloc (offsetof (struct arglist_parser, alternative[0])); ap->mlp = mlp; ap->keyword = NULL; @@ -2371,10 +2538,10 @@ else { struct arglist_parser *ap = - (struct arglist_parser *) - xmalloc (xsum (sizeof (struct arglist_parser), - xtimes (shapes->nshapes - 1, - sizeof (struct partial_call)))); + (struct arglist_parser *) + xmalloc (xsum (sizeof (struct arglist_parser), + xtimes (shapes->nshapes - 1, + sizeof (struct partial_call)))); size_t i; ap->mlp = mlp; @@ -2382,29 +2549,29 @@ ap->keyword_len = shapes->keyword_len; ap->nalternatives = shapes->nshapes; for (i = 0; i < shapes->nshapes; i++) - { - ap->alternative[i].argnumc = shapes->shapes[i].argnumc; - ap->alternative[i].argnum1 = shapes->shapes[i].argnum1; - ap->alternative[i].argnum2 = shapes->shapes[i].argnum2; - ap->alternative[i].argnum1_glib_context = - shapes->shapes[i].argnum1_glib_context; - ap->alternative[i].argnum2_glib_context = - shapes->shapes[i].argnum2_glib_context; - ap->alternative[i].argtotal = shapes->shapes[i].argtotal; - ap->alternative[i].xcomments = shapes->shapes[i].xcomments; - ap->alternative[i].msgctxt = NULL; - ap->alternative[i].msgctxt_pos.file_name = NULL; - ap->alternative[i].msgctxt_pos.line_number = (size_t)(-1); - ap->alternative[i].msgid = NULL; - ap->alternative[i].msgid_context = null_context; - ap->alternative[i].msgid_pos.file_name = NULL; - ap->alternative[i].msgid_pos.line_number = (size_t)(-1); - ap->alternative[i].msgid_comment = NULL; - ap->alternative[i].msgid_plural = NULL; - ap->alternative[i].msgid_plural_context = null_context; - ap->alternative[i].msgid_plural_pos.file_name = NULL; - ap->alternative[i].msgid_plural_pos.line_number = (size_t)(-1); - } + { + ap->alternative[i].argnumc = shapes->shapes[i].argnumc; + ap->alternative[i].argnum1 = shapes->shapes[i].argnum1; + ap->alternative[i].argnum2 = shapes->shapes[i].argnum2; + ap->alternative[i].argnum1_glib_context = + shapes->shapes[i].argnum1_glib_context; + ap->alternative[i].argnum2_glib_context = + shapes->shapes[i].argnum2_glib_context; + ap->alternative[i].argtotal = shapes->shapes[i].argtotal; + ap->alternative[i].xcomments = shapes->shapes[i].xcomments; + ap->alternative[i].msgctxt = NULL; + ap->alternative[i].msgctxt_pos.file_name = NULL; + ap->alternative[i].msgctxt_pos.line_number = (size_t)(-1); + ap->alternative[i].msgid = NULL; + ap->alternative[i].msgid_context = null_context; + ap->alternative[i].msgid_pos.file_name = NULL; + ap->alternative[i].msgid_pos.line_number = (size_t)(-1); + ap->alternative[i].msgid_comment = NULL; + ap->alternative[i].msgid_plural = NULL; + ap->alternative[i].msgid_plural_context = null_context; + ap->alternative[i].msgid_plural_pos.file_name = NULL; + ap->alternative[i].msgid_plural_pos.line_number = (size_t)(-1); + } return ap; } @@ -2417,7 +2584,7 @@ struct arglist_parser *copy = (struct arglist_parser *) xmalloc (xsum (sizeof (struct arglist_parser) - sizeof (struct partial_call), - xtimes (ap->nalternatives, sizeof (struct partial_call)))); + xtimes (ap->nalternatives, sizeof (struct partial_call)))); size_t i; copy->mlp = ap->mlp; @@ -2443,7 +2610,7 @@ ccp->msgid_pos = cp->msgctxt_pos; ccp->msgid_comment = add_reference (cp->msgid_comment); ccp->msgid_plural = - (cp->msgid_plural != NULL ? xstrdup (cp->msgid_plural) : NULL); + (cp->msgid_plural != NULL ? xstrdup (cp->msgid_plural) : NULL); ccp->msgid_plural_context = cp->msgid_plural_context; ccp->msgid_plural_pos = cp->msgid_plural_pos; } @@ -2454,10 +2621,10 @@ void arglist_parser_remember (struct arglist_parser *ap, - int argnum, char *string, - flag_context_ty context, - char *file_name, size_t line_number, - refcounted_string_list_ty *comment) + int argnum, char *string, + flag_context_ty context, + char *file_name, size_t line_number, + refcounted_string_list_ty *comment) { bool stored_string = false; size_t nalternatives = ap->nalternatives; @@ -2470,35 +2637,38 @@ struct partial_call *cp = &ap->alternative[i]; if (argnum == cp->argnumc) - { - cp->msgctxt = string; - cp->msgctxt_pos.file_name = file_name; - cp->msgctxt_pos.line_number = line_number; - stored_string = true; - /* Mark msgctxt as done. */ - cp->argnumc = 0; - } - else if (argnum == cp->argnum1) - { - cp->msgid = string; - cp->msgid_context = context; - cp->msgid_pos.file_name = file_name; - cp->msgid_pos.line_number = line_number; - cp->msgid_comment = add_reference (comment); - stored_string = true; - /* Mark msgid as done. */ - cp->argnum1 = 0; - } - else if (argnum == cp->argnum2) - { - cp->msgid_plural = string; - cp->msgid_plural_context = context; - cp->msgid_plural_pos.file_name = file_name; - cp->msgid_plural_pos.line_number = line_number; - stored_string = true; - /* Mark msgid_plural as done. */ - cp->argnum2 = 0; - } + { + cp->msgctxt = string; + cp->msgctxt_pos.file_name = file_name; + cp->msgctxt_pos.line_number = line_number; + stored_string = true; + /* Mark msgctxt as done. */ + cp->argnumc = 0; + } + else + { + if (argnum == cp->argnum1) + { + cp->msgid = string; + cp->msgid_context = context; + cp->msgid_pos.file_name = file_name; + cp->msgid_pos.line_number = line_number; + cp->msgid_comment = add_reference (comment); + stored_string = true; + /* Mark msgid as done. */ + cp->argnum1 = 0; + } + if (argnum == cp->argnum2) + { + cp->msgid_plural = string; + cp->msgid_plural_context = context; + cp->msgid_plural_pos.file_name = file_name; + cp->msgid_plural_pos.line_number = line_number; + stored_string = true; + /* Mark msgid_plural as done. */ + cp->argnum2 = 0; + } + } } /* Note: There is a memory leak here: When string was stored but is later not used by arglist_parser_done, we don't free it. */ @@ -2527,11 +2697,11 @@ struct partial_call *cp = &ap->alternative[i]; if (!((cp->argnumc <= argnum - && cp->argnum1 <= argnum - && cp->argnum2 <= argnum) - || (cp->argtotal > 0 && cp->argtotal < argnum))) - /* cp is still undecided. */ - return false; + && cp->argnum1 <= argnum + && cp->argnum2 <= argnum) + || (cp->argtotal > 0 && cp->argtotal < argnum))) + /* cp is still undecided. */ + return false; } return true; } @@ -2550,8 +2720,8 @@ struct partial_call *cp = &ap->alternative[i]; if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 - && (cp->argtotal == 0 || cp->argtotal == argnum)) - ncomplete++; + && (cp->argtotal == 0 || cp->argtotal == argnum)) + ncomplete++; } if (ncomplete > 0) @@ -2560,241 +2730,259 @@ bool ambiguous = false; /* Find complete calls where msgctxt, msgid, msgid_plural are all - provided. */ + provided. */ for (i = 0; i < ap->nalternatives; i++) - { - struct partial_call *cp = &ap->alternative[i]; + { + struct partial_call *cp = &ap->alternative[i]; - if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 - && (cp->argtotal == 0 || cp->argtotal == argnum) - && cp->msgctxt != NULL - && cp->msgid != NULL - && cp->msgid_plural != NULL) - { - if (best_cp != NULL) - { - ambiguous = true; - break; - } - best_cp = cp; - } - } + if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 + && (cp->argtotal == 0 || cp->argtotal == argnum) + && cp->msgctxt != NULL + && cp->msgid != NULL + && cp->msgid_plural != NULL) + { + if (best_cp != NULL) + { + ambiguous = true; + break; + } + best_cp = cp; + } + } if (best_cp == NULL) - { - struct partial_call *best_cp1 = NULL; - struct partial_call *best_cp2 = NULL; - - /* Find complete calls where msgctxt, msgid are provided. */ - for (i = 0; i < ap->nalternatives; i++) - { - struct partial_call *cp = &ap->alternative[i]; - - if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 - && (cp->argtotal == 0 || cp->argtotal == argnum) - && cp->msgctxt != NULL - && cp->msgid != NULL) - { - if (best_cp1 != NULL) - { - ambiguous = true; - break; - } - best_cp1 = cp; - } - } - - /* Find complete calls where msgid, msgid_plural are provided. */ - for (i = 0; i < ap->nalternatives; i++) - { - struct partial_call *cp = &ap->alternative[i]; - - if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 - && (cp->argtotal == 0 || cp->argtotal == argnum) - && cp->msgid != NULL - && cp->msgid_plural != NULL) - { - if (best_cp2 != NULL) - { - ambiguous = true; - break; - } - best_cp2 = cp; - } - } - - if (best_cp1 != NULL) - best_cp = best_cp1; - if (best_cp2 != NULL) - { - if (best_cp != NULL) - ambiguous = true; - else - best_cp = best_cp2; - } - } + { + struct partial_call *best_cp1 = NULL; + struct partial_call *best_cp2 = NULL; + + /* Find complete calls where msgctxt, msgid are provided. */ + for (i = 0; i < ap->nalternatives; i++) + { + struct partial_call *cp = &ap->alternative[i]; + + if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 + && (cp->argtotal == 0 || cp->argtotal == argnum) + && cp->msgctxt != NULL + && cp->msgid != NULL) + { + if (best_cp1 != NULL) + { + ambiguous = true; + break; + } + best_cp1 = cp; + } + } + + /* Find complete calls where msgid, msgid_plural are provided. */ + for (i = 0; i < ap->nalternatives; i++) + { + struct partial_call *cp = &ap->alternative[i]; + + if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 + && (cp->argtotal == 0 || cp->argtotal == argnum) + && cp->msgid != NULL + && cp->msgid_plural != NULL) + { + if (best_cp2 != NULL) + { + ambiguous = true; + break; + } + best_cp2 = cp; + } + } + + if (best_cp1 != NULL) + best_cp = best_cp1; + if (best_cp2 != NULL) + { + if (best_cp != NULL) + ambiguous = true; + else + best_cp = best_cp2; + } + } if (best_cp == NULL) - { - /* Find complete calls where msgid is provided. */ - for (i = 0; i < ap->nalternatives; i++) - { - struct partial_call *cp = &ap->alternative[i]; - - if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 - && (cp->argtotal == 0 || cp->argtotal == argnum) - && cp->msgid != NULL) - { - if (best_cp != NULL) - { - ambiguous = true; - break; - } - best_cp = cp; - } - } - } + { + /* Find complete calls where msgid is provided. */ + for (i = 0; i < ap->nalternatives; i++) + { + struct partial_call *cp = &ap->alternative[i]; + + if (cp->argnumc == 0 && cp->argnum1 == 0 && cp->argnum2 == 0 + && (cp->argtotal == 0 || cp->argtotal == argnum) + && cp->msgid != NULL) + { + if (best_cp != NULL) + { + ambiguous = true; + break; + } + best_cp = cp; + } + } + } if (ambiguous) - { - error_with_progname = false; - error_at_line (0, 0, - best_cp->msgid_pos.file_name, - best_cp->msgid_pos.line_number, - _("ambiguous argument specification for keyword '%.*s'"), - (int) ap->keyword_len, ap->keyword); - error_with_progname = true; - } + { + error_with_progname = false; + error_at_line (0, 0, + best_cp->msgid_pos.file_name, + best_cp->msgid_pos.line_number, + _("ambiguous argument specification for keyword '%.*s'"), + (int) ap->keyword_len, ap->keyword); + error_with_progname = true; + } if (best_cp != NULL) - { - /* best_cp indicates the best found complete call. - Now call remember_a_message. */ - message_ty *mp; - - /* Split strings in the GNOME glib syntax "msgctxt|msgid". */ - if (best_cp->argnum1_glib_context || best_cp->argnum2_glib_context) - /* split_keywordspec should not allow the context to be specified - in two different ways. */ - if (best_cp->msgctxt != NULL) - abort (); - if (best_cp->argnum1_glib_context) - { - const char *separator = strchr (best_cp->msgid, '|'); - - if (separator == NULL) - { - error_with_progname = false; - error_at_line (0, 0, - best_cp->msgid_pos.file_name, - best_cp->msgid_pos.line_number, - _("warning: missing context for keyword '%.*s'"), - (int) ap->keyword_len, ap->keyword); - error_with_progname = true; - } - else - { - size_t ctxt_len = separator - best_cp->msgid; - char *ctxt = XNMALLOC (ctxt_len + 1, char); - - memcpy (ctxt, best_cp->msgid, ctxt_len); - ctxt[ctxt_len] = '\0'; - best_cp->msgctxt = ctxt; - best_cp->msgid = xstrdup (separator + 1); - } - } - if (best_cp->msgid_plural != NULL && best_cp->argnum2_glib_context) - { - const char *separator = strchr (best_cp->msgid_plural, '|'); - - if (separator == NULL) - { - error_with_progname = false; - error_at_line (0, 0, - best_cp->msgid_plural_pos.file_name, - best_cp->msgid_plural_pos.line_number, - _("warning: missing context for plural argument of keyword '%.*s'"), - (int) ap->keyword_len, ap->keyword); - error_with_progname = true; - } - else - { - size_t ctxt_len = separator - best_cp->msgid_plural; - char *ctxt = XNMALLOC (ctxt_len + 1, char); - - memcpy (ctxt, best_cp->msgid_plural, ctxt_len); - ctxt[ctxt_len] = '\0'; - if (best_cp->msgctxt == NULL) - best_cp->msgctxt = ctxt; - else - { - if (strcmp (ctxt, best_cp->msgctxt) != 0) - { - error_with_progname = false; - error_at_line (0, 0, - best_cp->msgid_plural_pos.file_name, - best_cp->msgid_plural_pos.line_number, - _("context mismatch between singular and plural form")); - error_with_progname = true; - } - free (ctxt); - } - best_cp->msgid_plural = xstrdup (separator + 1); - } - } - - mp = remember_a_message (ap->mlp, best_cp->msgctxt, best_cp->msgid, - best_cp->msgid_context, - &best_cp->msgid_pos, - best_cp->msgid_comment); - if (best_cp->msgid_plural != NULL) - remember_a_message_plural (mp, best_cp->msgid_plural, - best_cp->msgid_plural_context, - &best_cp->msgid_plural_pos, - NULL); - if (best_cp->xcomments.nitems > 0) - { - /* Add best_cp->xcomments to mp->comment_dot, unless already - present. */ - size_t i; - - for (i = 0; i < best_cp->xcomments.nitems; i++) - { - const char *xcomment = best_cp->xcomments.item[i]; - bool found = false; - - if (mp->comment_dot != NULL) - { - size_t j; - - for (j = 0; j < mp->comment_dot->nitems; j++) - if (strcmp (xcomment, mp->comment_dot->item[j]) == 0) - { - found = true; - break; - } - } - if (!found) - message_comment_dot_append (mp, xcomment); - } - } - } + { + /* best_cp indicates the best found complete call. + Now call remember_a_message. */ + message_ty *mp; + + /* Split strings in the GNOME glib syntax "msgctxt|msgid". */ + if (best_cp->argnum1_glib_context || best_cp->argnum2_glib_context) + /* split_keywordspec should not allow the context to be specified + in two different ways. */ + if (best_cp->msgctxt != NULL) + abort (); + if (best_cp->argnum1_glib_context) + { + const char *separator = strchr (best_cp->msgid, '|'); + + if (separator == NULL) + { + error_with_progname = false; + error_at_line (0, 0, + best_cp->msgid_pos.file_name, + best_cp->msgid_pos.line_number, + _("warning: missing context for keyword '%.*s'"), + (int) ap->keyword_len, ap->keyword); + error_with_progname = true; + } + else + { + size_t ctxt_len = separator - best_cp->msgid; + char *ctxt = XNMALLOC (ctxt_len + 1, char); + + memcpy (ctxt, best_cp->msgid, ctxt_len); + ctxt[ctxt_len] = '\0'; + best_cp->msgctxt = ctxt; + best_cp->msgid = xstrdup (separator + 1); + } + } + if (best_cp->msgid_plural != NULL && best_cp->argnum2_glib_context) + { + const char *separator = strchr (best_cp->msgid_plural, '|'); + + if (separator == NULL) + { + error_with_progname = false; + error_at_line (0, 0, + best_cp->msgid_plural_pos.file_name, + best_cp->msgid_plural_pos.line_number, + _("warning: missing context for plural argument of keyword '%.*s'"), + (int) ap->keyword_len, ap->keyword); + error_with_progname = true; + } + else + { + size_t ctxt_len = separator - best_cp->msgid_plural; + char *ctxt = XNMALLOC (ctxt_len + 1, char); + + memcpy (ctxt, best_cp->msgid_plural, ctxt_len); + ctxt[ctxt_len] = '\0'; + if (best_cp->msgctxt == NULL) + best_cp->msgctxt = ctxt; + else + { + if (strcmp (ctxt, best_cp->msgctxt) != 0) + { + error_with_progname = false; + error_at_line (0, 0, + best_cp->msgid_plural_pos.file_name, + best_cp->msgid_plural_pos.line_number, + _("context mismatch between singular and plural form")); + error_with_progname = true; + } + free (ctxt); + } + best_cp->msgid_plural = xstrdup (separator + 1); + } + } + + { + flag_context_ty msgid_context = best_cp->msgid_context; + flag_context_ty msgid_plural_context = best_cp->msgid_plural_context; + + /* Special support for the 3-argument tr operator in Qt: + When --qt and --keyword=tr:1,1,2c,3t are specified, add to the + context the information that the argument is expeected to be a + qt-plural-format. */ + if (recognize_format_qt + && current_formatstring_parser3 == &formatstring_qt_plural + && best_cp->msgid_plural == best_cp->msgid) + { + msgid_context.is_format3 = yes_according_to_context; + msgid_plural_context.is_format3 = yes_according_to_context; + } + + mp = remember_a_message (ap->mlp, best_cp->msgctxt, best_cp->msgid, + msgid_context, + &best_cp->msgid_pos, + NULL, best_cp->msgid_comment); + if (best_cp->msgid_plural != NULL) + remember_a_message_plural (mp, best_cp->msgid_plural, + msgid_plural_context, + &best_cp->msgid_plural_pos, + NULL); + } + + if (best_cp->xcomments.nitems > 0) + { + /* Add best_cp->xcomments to mp->comment_dot, unless already + present. */ + size_t i; + + for (i = 0; i < best_cp->xcomments.nitems; i++) + { + const char *xcomment = best_cp->xcomments.item[i]; + bool found = false; + + if (mp->comment_dot != NULL) + { + size_t j; + + for (j = 0; j < mp->comment_dot->nitems; j++) + if (strcmp (xcomment, mp->comment_dot->item[j]) == 0) + { + found = true; + break; + } + } + if (!found) + message_comment_dot_append (mp, xcomment); + } + } + } } else { /* No complete call was parsed. */ /* Note: There is a memory leak here: When there is more than one - alternative, the same string can be stored in multiple alternatives, - and it's not easy to free all strings reliably. */ + alternative, the same string can be stored in multiple alternatives, + and it's not easy to free all strings reliably. */ if (ap->nalternatives == 1) - { - if (ap->alternative[0].msgctxt != NULL) - free (ap->alternative[0].msgctxt); - if (ap->alternative[0].msgid != NULL) - free (ap->alternative[0].msgid); - if (ap->alternative[0].msgid_plural != NULL) - free (ap->alternative[0].msgid_plural); - } + { + if (ap->alternative[0].msgctxt != NULL) + free (ap->alternative[0].msgctxt); + if (ap->alternative[0].msgid != NULL) + free (ap->alternative[0].msgid); + if (ap->alternative[0].msgid_plural != NULL) + free (ap->alternative[0].msgid_plural); + } } for (i = 0; i < ap->nalternatives; i++) @@ -2816,16 +3004,16 @@ if (package_name != NULL) { if (package_version != NULL) - project_id_version = xasprintf ("%s %s", package_name, package_version); + project_id_version = xasprintf ("%s %s", package_name, package_version); else - project_id_version = xasprintf ("%s", package_name); + project_id_version = xasprintf ("%s", package_name); } else project_id_version = xstrdup ("PACKAGE VERSION"); if (msgid_bugs_address != NULL && msgid_bugs_address[0] == '\0') multiline_warning (xasprintf (_("warning: ")), - xstrdup (_("\ + xstrdup (_("\ The option --msgid-bugs-address was not specified.\n\ If you are using a `Makevars' file, please specify\n\ the MSGID_BUGS_ADDRESS variable there; otherwise please\n\ @@ -2842,26 +3030,27 @@ PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n\ Last-Translator: FULL NAME \n\ Language-Team: LANGUAGE \n\ +Language: \n\ MIME-Version: 1.0\n\ Content-Type: text/plain; charset=CHARSET\n\ Content-Transfer-Encoding: 8bit\n", - project_id_version, - msgid_bugs_address != NULL ? msgid_bugs_address : "", - timestring); + project_id_version, + msgid_bugs_address != NULL ? msgid_bugs_address : "", + timestring); free (timestring); free (project_id_version); mp = message_alloc (NULL, "", NULL, msgstr, strlen (msgstr) + 1, &pos); message_comment_append (mp, - copyright_holder[0] != '\0' - ? xasprintf ("\ + copyright_holder[0] != '\0' + ? xasprintf ("\ SOME DESCRIPTIVE TITLE.\n\ Copyright (C) YEAR %s\n\ This file is distributed under the same license as the PACKAGE package.\n\ FIRST AUTHOR , YEAR.\n", - copyright_holder) - : "\ + copyright_holder) + : "\ SOME DESCRIPTIVE TITLE.\n\ This file is put in the public domain.\n\ FIRST AUTHOR , YEAR.\n"); @@ -2883,47 +3072,47 @@ has_plural = false; for (i = 0; i < mdlp->nitems; i++) { - message_list_ty *mlp = mdlp->item[i]->messages; + message_list_ty *mlp = mdlp->item[i]->messages; - for (j = 0; j < mlp->nitems; j++) - { - message_ty *mp = mlp->item[j]; - - if (mp->msgid_plural != NULL) - { - has_plural = true; - break; - } - } - if (has_plural) - break; + for (j = 0; j < mlp->nitems; j++) + { + message_ty *mp = mlp->item[j]; + + if (mp->msgid_plural != NULL) + { + has_plural = true; + break; + } + } + if (has_plural) + break; } if (has_plural) { - message_ty *header = - message_list_search (mdlp->item[0]->messages, NULL, ""); - if (header != NULL - && c_strstr (header->msgstr, "Plural-Forms:") == NULL) - { - size_t insertpos = strlen (header->msgstr); - const char *suffix; - size_t suffix_len; - char *new_msgstr; - - suffix = "\nPlural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"; - if (insertpos == 0 || header->msgstr[insertpos-1] == '\n') - suffix++; - suffix_len = strlen (suffix); - new_msgstr = XNMALLOC (header->msgstr_len + suffix_len, char); - memcpy (new_msgstr, header->msgstr, insertpos); - memcpy (new_msgstr + insertpos, suffix, suffix_len); - memcpy (new_msgstr + insertpos + suffix_len, - header->msgstr + insertpos, - header->msgstr_len - insertpos); - header->msgstr = new_msgstr; - header->msgstr_len = header->msgstr_len + suffix_len; - } + message_ty *header = + message_list_search (mdlp->item[0]->messages, NULL, ""); + if (header != NULL + && c_strstr (header->msgstr, "Plural-Forms:") == NULL) + { + size_t insertpos = strlen (header->msgstr); + const char *suffix; + size_t suffix_len; + char *new_msgstr; + + suffix = "\nPlural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"; + if (insertpos == 0 || header->msgstr[insertpos-1] == '\n') + suffix++; + suffix_len = strlen (suffix); + new_msgstr = XNMALLOC (header->msgstr_len + suffix_len, char); + memcpy (new_msgstr, header->msgstr, insertpos); + memcpy (new_msgstr + insertpos, suffix, suffix_len); + memcpy (new_msgstr + insertpos + suffix_len, + header->msgstr + insertpos, + header->msgstr_len - insertpos); + header->msgstr = new_msgstr; + header->msgstr_len = header->msgstr_len + suffix_len; + } } } @@ -2937,17 +3126,17 @@ for (i = 0; i < mdlp->nitems; i++) { - message_list_ty *mlp = mdlp->item[i]->messages; + message_list_ty *mlp = mdlp->item[i]->messages; - if (!is_ascii_message_list (mlp)) - has_nonascii = true; + if (!is_ascii_message_list (mlp)) + has_nonascii = true; } if (has_nonascii || output_syntax->requires_utf8) { - message_list_ty *mlp = mdlp->item[0]->messages; + message_list_ty *mlp = mdlp->item[0]->messages; - iconv_message_list (mlp, po_charset_utf8, po_charset_utf8, NULL); + iconv_message_list (mlp, po_charset_utf8, po_charset_utf8, NULL); } } } @@ -3001,35 +3190,37 @@ for (tp = table; tp < ENDOF(table); ++tp) if (c_strcasecmp (name, tp->name) == 0) { - extractor_ty result; + extractor_ty result; - result.func = tp->func; - result.flag_table = tp->flag_table; - result.formatstring_parser1 = tp->formatstring_parser1; - result.formatstring_parser2 = tp->formatstring_parser2; - - /* Handle --qt. It's preferrable to handle this facility here rather - than through an option --language=C++/Qt because the latter would - conflict with the language "C++" regarding the file extensions. */ - if (recognize_format_qt && strcmp (tp->name, "C++") == 0) - { - result.flag_table = &flag_table_cxx_qt; - result.formatstring_parser2 = &formatstring_qt; - } - /* Likewise for --kde. */ - if (recognize_format_kde && strcmp (tp->name, "C++") == 0) - { - result.flag_table = &flag_table_cxx_kde; - result.formatstring_parser2 = &formatstring_kde; - } - /* Likewise for --boost. */ - if (recognize_format_boost && strcmp (tp->name, "C++") == 0) - { - result.flag_table = &flag_table_cxx_boost; - result.formatstring_parser2 = &formatstring_boost; - } + result.func = tp->func; + result.flag_table = tp->flag_table; + result.formatstring_parser1 = tp->formatstring_parser1; + result.formatstring_parser2 = tp->formatstring_parser2; + result.formatstring_parser3 = NULL; + + /* Handle --qt. It's preferrable to handle this facility here rather + than through an option --language=C++/Qt because the latter would + conflict with the language "C++" regarding the file extensions. */ + if (recognize_format_qt && strcmp (tp->name, "C++") == 0) + { + result.flag_table = &flag_table_cxx_qt; + result.formatstring_parser2 = &formatstring_qt; + result.formatstring_parser3 = &formatstring_qt_plural; + } + /* Likewise for --kde. */ + if (recognize_format_kde && strcmp (tp->name, "C++") == 0) + { + result.flag_table = &flag_table_cxx_kde; + result.formatstring_parser2 = &formatstring_kde; + } + /* Likewise for --boost. */ + if (recognize_format_boost && strcmp (tp->name, "C++") == 0) + { + result.flag_table = &flag_table_cxx_boost; + result.formatstring_parser2 = &formatstring_boost; + } - return result; + return result; } error (EXIT_FAILURE, 0, _("language `%s' unknown"), name); diff -Nru gettext-0.17/gettext-tools/src/xgettext.h gettext-0.18.1.1/gettext-tools/src/xgettext.h --- gettext-0.17/gettext-tools/src/xgettext.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/xgettext.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext common functions. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. Written by Peter Miller and Bruno Haible , 2001. @@ -61,7 +61,7 @@ /* Split keyword spec into keyword, argnum1, argnum2, argnumc. */ extern void split_keywordspec (const char *spec, const char **endp, - struct callshape *shapep); + struct callshape *shapep); /* Set of alternative calling conventions for a given keyword. */ struct callshapes @@ -75,8 +75,8 @@ /* Insert a (keyword, callshape) pair into a hash table mapping keyword to 'struct callshapes *'. */ extern void insert_keyword_callshape (hash_table *table, - const char *keyword, size_t keyword_len, - const struct callshape *shape); + const char *keyword, size_t keyword_len, + const struct callshape *shape); /* Context representing some flags. */ @@ -89,6 +89,9 @@ /* Regarding the secondary formatstring type. */ /*enum is_format*/ unsigned int is_format2 : 3; /*bool*/ unsigned int pass_format2 : 1; + /* Regarding the tertiary formatstring type. */ + /*enum is_format*/ unsigned int is_format3 : 3; + /*bool*/ unsigned int pass_format3 : 1; }; /* Null context. */ extern flag_context_ty null_context; @@ -99,15 +102,15 @@ The result will then also have all pass_format* flags = false. */ extern flag_context_ty inherited_context (flag_context_ty outer_context, - flag_context_ty modifier_context); + flag_context_ty modifier_context); /* Context representing some flags, for each possible argument number. This is a linked list, sorted according to the argument number. */ typedef struct flag_context_list_ty flag_context_list_ty; struct flag_context_list_ty { - int argnum; /* current argument number, > 0 */ - flag_context_ty flags; /* flags for current argument */ + int argnum; /* current argument number, > 0 */ + flag_context_ty flags; /* flags for current argument */ flag_context_list_ty *next; }; @@ -115,8 +118,8 @@ typedef struct flag_context_list_iterator_ty flag_context_list_iterator_ty; struct flag_context_list_iterator_ty { - int argnum; /* current argument number, > 0 */ - const flag_context_list_ty* head; /* tail of list */ + int argnum; /* current argument number, > 0 */ + const flag_context_list_ty* head; /* tail of list */ }; extern flag_context_list_iterator_ty null_context_list_iterator; extern flag_context_list_iterator_ty passthrough_context_list_iterator; @@ -131,11 +134,26 @@ flag_context_list_table_ty; extern flag_context_list_ty * flag_context_list_table_lookup (flag_context_list_table_ty *flag_table, - const void *key, size_t keylen); + const void *key, size_t keylen); /* Record a flag in the appropriate backend's table. */ extern void xgettext_record_flag (const char *optionstring); +/* Context while building up lexical tokens. */ +typedef enum + { + lc_outside, /* Initial context: outside of comments and strings. */ + lc_comment, /* Inside a comment. */ + lc_string /* Inside a string literal. */ + } + lexical_context_ty; + +/* Error message about non-ASCII character in a specific lexical context. */ +extern char *non_ascii_error_message (lexical_context_ty lcontext, + const char *file_name, + size_t line_number); + + /* Canonicalized encoding name for all input files. */ extern const char *xgettext_global_source_encoding; @@ -157,10 +175,12 @@ /* Convert the given string from xgettext_current_source_encoding to the output file encoding (i.e. ASCII or UTF-8). The resulting string is either the argument string, or freshly allocated. - The file_name and line_number are only used for error message purposes. */ + The lcontext, file_name and line_number are only used for error message + purposes. */ extern char *from_current_source_encoding (const char *string, - const char *file_name, - size_t line_number); + lexical_context_ty lcontext, + const char *file_name, + size_t line_number); /* List of messages whose msgids must not be extracted, or NULL. @@ -204,12 +224,12 @@ if (rslp != NULL) { if (rslp->refcount > 1) - rslp->refcount--; + rslp->refcount--; else - { - string_list_destroy (&rslp->contents); - free (rslp); - } + { + string_list_destroy (&rslp->contents); + free (rslp); + } } } @@ -223,15 +243,19 @@ to the callee. MSGID must be a malloc()ed string; its ownership is passed to the callee. POS->file_name must be allocated with indefinite extent. + EXTRACTED_COMMENT is a comment that needs to be copied into the POT file, + or NULL. COMMENT may be savable_comment, or it may be a saved copy of savable_comment (then add_reference must be used when saving it, and drop_reference while dropping it). Clear savable_comment. */ extern message_ty *remember_a_message (message_list_ty *mlp, - char *msgctxt, - char *msgid, - flag_context_ty context, - lex_pos_ty *pos, - refcounted_string_list_ty *comment); + char *msgctxt, + char *msgid, + flag_context_ty context, + lex_pos_ty *pos, + const char *extracted_comment, + refcounted_string_list_ty *comment); + /* Add an msgid_plural to a message previously returned by remember_a_message. STRING must be a malloc()ed string; its ownership is passed to the callee. @@ -240,10 +264,10 @@ (then add_reference must be used when saving it, and drop_reference while dropping it). Clear savable_comment. */ extern void remember_a_message_plural (message_ty *mp, - char *string, - flag_context_ty context, - lex_pos_ty *pos, - refcounted_string_list_ty *comment); + char *string, + flag_context_ty context, + lex_pos_ty *pos, + refcounted_string_list_ty *comment); /* Represents the progressive parsing of an argument list w.r.t. a single @@ -282,7 +306,7 @@ /* Creates a fresh arglist_parser recognizing calls. You can pass shapes = NULL for a parser not recognizing any calls. */ extern struct arglist_parser * arglist_parser_alloc (message_list_ty *mlp, - const struct callshapes *shapes); + const struct callshapes *shapes); /* Clones an arglist_parser. */ extern struct arglist_parser * arglist_parser_clone (struct arglist_parser *ap); /* Adds a string argument to an arglist_parser. ARGNUM must be > 0. @@ -292,10 +316,10 @@ (then add_reference must be used when saving it, and drop_reference while dropping it). Clear savable_comment. */ extern void arglist_parser_remember (struct arglist_parser *ap, - int argnum, char *string, - flag_context_ty context, - char *file_name, size_t line_number, - refcounted_string_list_ty *comment); + int argnum, char *string, + flag_context_ty context, + char *file_name, size_t line_number, + refcounted_string_list_ty *comment); /* Tests whether an arglist_parser has is not waiting for more arguments after argument ARGNUM. */ extern bool arglist_parser_decidedp (struct arglist_parser *ap, int argnum); diff -Nru gettext-0.17/gettext-tools/src/x-glade.c gettext-0.18.1.1/gettext-tools/src/x-glade.c --- gettext-0.17/gettext-tools/src/x-glade.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-glade.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext glade backend. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -39,7 +39,6 @@ #include "message.h" #include "xgettext.h" -#include "x-glade.h" #include "error.h" #include "xerror.h" #include "xvasprintf.h" @@ -81,7 +80,7 @@ else { if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); hash_insert_entry (&keywords, name, strlen (name), NULL); } @@ -95,7 +94,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_glade_keyword ("label"); x_glade_keyword ("title"); x_glade_keyword ("text"); @@ -147,11 +146,11 @@ is_large = false; for (features = XML_GetFeatureList (); features->name != NULL; features++) - if (strcmp (features->name, "XML_LARGE_SIZE") == 0) - { - is_large = true; - break; - } + if (strcmp (features->name, "XML_LARGE_SIZE") == 0) + { + is_large = true; + break; + } tested = true; } @@ -242,23 +241,23 @@ if (!tested) { if (XML_ExpatVersionInfo () .major >= 2) - /* expat >= 2.0 -> XML_Size is 'int64_t' or 'long'. */ - { - const XML_Feature *features; - - abi = is_long; - for (features = XML_GetFeatureList (); - features->name != NULL; - features++) - if (strcmp (features->name, "XML_LARGE_SIZE") == 0) - { - abi = is_int64_t; - break; - } - } + /* expat >= 2.0 -> XML_Size is 'int64_t' or 'long'. */ + { + const XML_Feature *features; + + abi = is_long; + for (features = XML_GetFeatureList (); + features->name != NULL; + features++) + if (strcmp (features->name, "XML_LARGE_SIZE") == 0) + { + abi = is_int64_t; + break; + } + } else - /* expat < 2.0 -> XML_Size is 'int'. */ - abi = is_int; + /* expat < 2.0 -> XML_Size is 'int'. */ + abi = is_int; tested = true; } return abi; @@ -318,46 +317,46 @@ /* Try to load libexpat-2.x. */ handle = dlopen ("libexpat.so.1", RTLD_LAZY); if (handle == NULL) - /* Try to load libexpat-1.x. */ - handle = dlopen ("libexpat.so.0", RTLD_LAZY); + /* Try to load libexpat-1.x. */ + handle = dlopen ("libexpat.so.0", RTLD_LAZY); if (handle != NULL - && (p_XML_ExpatVersionInfo = - (XML_Expat_Version (*) (void)) - dlsym (handle, "XML_ExpatVersionInfo")) != NULL - && (p_XML_GetFeatureList = - (const XML_Feature * (*) (void)) - dlsym (handle, "XML_GetFeatureList")) != NULL - && (p_XML_ParserCreate = - (XML_Parser (*) (const XML_Char *)) - dlsym (handle, "XML_ParserCreate")) != NULL - && (p_XML_SetElementHandler = - (void (*) (XML_Parser, XML_StartElementHandler, XML_EndElementHandler)) - dlsym (handle, "XML_SetElementHandler")) != NULL - && (p_XML_SetCharacterDataHandler = - (void (*) (XML_Parser, XML_CharacterDataHandler)) - dlsym (handle, "XML_SetCharacterDataHandler")) != NULL - && (p_XML_SetCommentHandler = - (void (*) (XML_Parser, XML_CommentHandler)) - dlsym (handle, "XML_SetCommentHandler")) != NULL - && (p_XML_Parse = - (int (*) (XML_Parser, const char *, int, int)) - dlsym (handle, "XML_Parse")) != NULL - && (p_XML_GetErrorCode = - (enum XML_Error (*) (XML_Parser)) - dlsym (handle, "XML_GetErrorCode")) != NULL - && (p_XML_GetCurrentLineNumber = - dlsym (handle, "XML_GetCurrentLineNumber")) != NULL - && (p_XML_GetCurrentColumnNumber = - dlsym (handle, "XML_GetCurrentColumnNumber")) != NULL - && (p_XML_ParserFree = - (void (*) (XML_Parser)) - dlsym (handle, "XML_ParserFree")) != NULL - && (p_XML_ErrorString = - (const XML_LChar * (*) (int)) - dlsym (handle, "XML_ErrorString")) != NULL) - libexpat_loaded = 1; + && (p_XML_ExpatVersionInfo = + (XML_Expat_Version (*) (void)) + dlsym (handle, "XML_ExpatVersionInfo")) != NULL + && (p_XML_GetFeatureList = + (const XML_Feature * (*) (void)) + dlsym (handle, "XML_GetFeatureList")) != NULL + && (p_XML_ParserCreate = + (XML_Parser (*) (const XML_Char *)) + dlsym (handle, "XML_ParserCreate")) != NULL + && (p_XML_SetElementHandler = + (void (*) (XML_Parser, XML_StartElementHandler, XML_EndElementHandler)) + dlsym (handle, "XML_SetElementHandler")) != NULL + && (p_XML_SetCharacterDataHandler = + (void (*) (XML_Parser, XML_CharacterDataHandler)) + dlsym (handle, "XML_SetCharacterDataHandler")) != NULL + && (p_XML_SetCommentHandler = + (void (*) (XML_Parser, XML_CommentHandler)) + dlsym (handle, "XML_SetCommentHandler")) != NULL + && (p_XML_Parse = + (int (*) (XML_Parser, const char *, int, int)) + dlsym (handle, "XML_Parse")) != NULL + && (p_XML_GetErrorCode = + (enum XML_Error (*) (XML_Parser)) + dlsym (handle, "XML_GetErrorCode")) != NULL + && (p_XML_GetCurrentLineNumber = + dlsym (handle, "XML_GetCurrentLineNumber")) != NULL + && (p_XML_GetCurrentColumnNumber = + dlsym (handle, "XML_GetCurrentColumnNumber")) != NULL + && (p_XML_ParserFree = + (void (*) (XML_Parser)) + dlsym (handle, "XML_ParserFree")) != NULL + && (p_XML_ErrorString = + (const XML_LChar * (*) (int)) + dlsym (handle, "XML_ErrorString")) != NULL) + libexpat_loaded = 1; else - libexpat_loaded = -1; + libexpat_loaded = -1; } return libexpat_loaded >= 0; } @@ -386,6 +385,7 @@ struct element_state { bool extract_string; + char *extracted_comment; int lineno; char *buffer; size_t bufmax; @@ -402,10 +402,10 @@ { stack_size = 2 * stack_size; if (stack_size < size) - stack_size = size; + stack_size = size; stack = - (struct element_state *) - xrealloc (stack, stack_size * sizeof (struct element_state)); + (struct element_state *) + xrealloc (stack, stack_size * sizeof (struct element_state)); } } @@ -414,7 +414,7 @@ /* Callback called when is seen. */ static void start_element_handler (void *userData, const char *name, - const char **attributes) + const char **attributes) { struct element_state *p; void *hash_result; @@ -428,50 +428,60 @@ p = &stack[stack_depth]; p->extract_string = extract_all; + p->extracted_comment = NULL; /* In Glade 1, a few specific elements are translatable. */ if (!p->extract_string) p->extract_string = (hash_find_entry (&keywords, name, strlen (name), &hash_result) == 0); /* In Glade 2, all and elements are translatable - that have the attribute translatable="yes". */ + that have the attribute translatable="yes". + See . + The translator comment is found in the attribute comments="...". + See . + */ if (!p->extract_string && (strcmp (name, "property") == 0 || strcmp (name, "atkproperty") == 0)) { bool has_translatable = false; + const char *extracted_comment = NULL; const char **attp = attributes; while (*attp != NULL) - { - if (strcmp (attp[0], "translatable") == 0) - { - has_translatable = (strcmp (attp[1], "yes") == 0); - break; - } - attp += 2; - } + { + if (strcmp (attp[0], "translatable") == 0) + has_translatable = (strcmp (attp[1], "yes") == 0); + else if (strcmp (attp[0], "comments") == 0) + extracted_comment = attp[1]; + attp += 2; + } p->extract_string = has_translatable; + p->extracted_comment = + (has_translatable && extracted_comment != NULL + ? xstrdup (extracted_comment) + : NULL); } if (!p->extract_string && strcmp (name, "atkaction") == 0) { const char **attp = attributes; while (*attp != NULL) - { - if (strcmp (attp[0], "description") == 0) - { - if (strcmp (attp[1], "") != 0) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = XML_GetCurrentLineNumber (parser); - - remember_a_message (mlp, NULL, xstrdup (attp[1]), - null_context, &pos, savable_comment); - } - break; - } - attp += 2; - } + { + if (strcmp (attp[0], "description") == 0) + { + if (strcmp (attp[1], "") != 0) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = XML_GetCurrentLineNumber (parser); + + remember_a_message (mlp, NULL, xstrdup (attp[1]), + null_context, &pos, + NULL, savable_comment); + } + break; + } + attp += 2; + } } p->lineno = XML_GetCurrentLineNumber (parser); p->buffer = NULL; @@ -492,23 +502,25 @@ { /* Don't extract the empty string. */ if (p->buflen > 0) - { - lex_pos_ty pos; + { + lex_pos_ty pos; - if (p->buflen == p->bufmax) - p->buffer = (char *) xrealloc (p->buffer, p->buflen + 1); - p->buffer[p->buflen] = '\0'; - - pos.file_name = logical_file_name; - pos.line_number = p->lineno; - - remember_a_message (mlp, NULL, p->buffer, null_context, &pos, - savable_comment); - p->buffer = NULL; - } + if (p->buflen == p->bufmax) + p->buffer = (char *) xrealloc (p->buffer, p->buflen + 1); + p->buffer[p->buflen] = '\0'; + + pos.file_name = logical_file_name; + pos.line_number = p->lineno; + + remember_a_message (mlp, NULL, p->buffer, null_context, &pos, + p->extracted_comment, savable_comment); + p->buffer = NULL; + } } /* Free memory for this stack level. */ + if (p->extracted_comment != NULL) + free (p->extracted_comment); if (p->buffer != NULL) free (p->buffer); @@ -528,12 +540,12 @@ if (len > 0) { if (p->buflen + len > p->bufmax) - { - p->bufmax = 2 * p->bufmax; - if (p->bufmax < p->buflen + len) - p->bufmax = p->buflen + len; - p->buffer = (char *) xrealloc (p->buffer, p->bufmax); - } + { + p->bufmax = 2 * p->bufmax; + if (p->bufmax < p->buflen + len) + p->bufmax = p->buflen + len; + p->buffer = (char *) xrealloc (p->buffer, p->bufmax); + } memcpy (p->buffer + p->buflen, s, len); p->buflen += len; } @@ -546,15 +558,15 @@ /* Split multiline comment into lines, and remove leading and trailing whitespace. */ char *copy = xstrdup (data); - char *p = copy; + char *p; char *q; for (p = copy; (q = strchr (p, '\n')) != NULL; p = q + 1) { while (p[0] == ' ' || p[0] == '\t') - p++; + p++; while (q > p && (q[-1] == ' ' || q[-1] == '\t')) - q--; + q--; *q = '\0'; savable_comment_add (p); } @@ -571,8 +583,8 @@ static void do_extract_glade (FILE *fp, - const char *real_filename, const char *logical_filename, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; @@ -599,26 +611,26 @@ int count = fread (buf, 1, sizeof buf, fp); if (count == 0) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_filename); - /* EOF reached. */ - break; - } + /* EOF reached. */ + break; + } if (XML_Parse (parser, buf, count, 0) == 0) - error (EXIT_FAILURE, 0, _("%s:%lu:%lu: %s"), logical_filename, - (unsigned long) XML_GetCurrentLineNumber (parser), - (unsigned long) XML_GetCurrentColumnNumber (parser) + 1, - XML_ErrorString (XML_GetErrorCode (parser))); + error (EXIT_FAILURE, 0, _("%s:%lu:%lu: %s"), logical_filename, + (unsigned long) XML_GetCurrentLineNumber (parser), + (unsigned long) XML_GetCurrentColumnNumber (parser) + 1, + XML_ErrorString (XML_GetErrorCode (parser))); } if (XML_Parse (parser, NULL, 0, 1) == 0) error (EXIT_FAILURE, 0, _("%s:%lu:%lu: %s"), logical_filename, - (unsigned long) XML_GetCurrentLineNumber (parser), - (unsigned long) XML_GetCurrentColumnNumber (parser) + 1, - XML_ErrorString (XML_GetErrorCode (parser))); + (unsigned long) XML_GetCurrentLineNumber (parser), + (unsigned long) XML_GetCurrentColumnNumber (parser) + 1, + XML_ErrorString (XML_GetErrorCode (parser))); XML_ParserFree (parser); @@ -631,9 +643,9 @@ void extract_glade (FILE *fp, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { #if DYNLOAD_LIBEXPAT || HAVE_LIBEXPAT if (LIBEXPAT_AVAILABLE ()) @@ -642,10 +654,10 @@ #endif { multiline_error (xstrdup (""), - xasprintf (_("\ + xasprintf (_("\ Language \"glade\" is not supported. %s relies on expat.\n\ This version was built without expat.\n"), - basename (program_name))); + basename (program_name))); exit (EXIT_FAILURE); } } diff -Nru gettext-0.17/gettext-tools/src/x-glade.h gettext-0.18.1.1/gettext-tools/src/x-glade.h --- gettext-0.17/gettext-tools/src/x-glade.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-glade.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_GLADE \ - { "glade", "glade" }, \ - { "glade2", "glade" }, \ + { "glade", "glade" }, \ + { "glade2", "glade" }, \ #define SCANNERS_GLADE \ - { "glade", extract_glade, NULL, NULL, NULL }, \ + { "glade", extract_glade, NULL, NULL, NULL }, \ /* Scan a glade XML file and add its translatable strings to mdlp. */ extern void extract_glade (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-java.c gettext-0.18.1.1/gettext-tools/src/x-java.c --- gettext-0.17/gettext-tools/src/x-java.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-java.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Java backend. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -30,7 +30,6 @@ #include "message.h" #include "xgettext.h" -#include "x-java.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -77,16 +76,16 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Java - identifier sequence with dots. - A colon means an invalid parse in split_keywordspec(). */ + identifier sequence with dots. + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -98,7 +97,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_java_keyword ("GettextResource.gettext:2"); /* static method */ x_java_keyword ("GettextResource.ngettext:2,3"); /* static method */ x_java_keyword ("GettextResource.pgettext:2c,3"); /* static method */ @@ -107,7 +106,7 @@ x_java_keyword ("ngettext:1,2"); x_java_keyword ("pgettext:1c,2"); x_java_keyword ("npgettext:1c,2,3"); - x_java_keyword ("getString"); /* ResourceBundle.getString */ + x_java_keyword ("getString"); /* ResourceBundle.getString */ default_keywords = false; } } @@ -165,13 +164,13 @@ { c = phase1_pushback[--phase1_pushback_length]; if (c >= MULTIPLE_U (0)) - { - if (c > MULTIPLE_U (1)) - phase1_pushback[phase1_pushback_length++] = c - 1; - return 'u'; - } + { + if (c > MULTIPLE_U (1)) + phase1_pushback[phase1_pushback_length++] = c - 1; + return 'u'; + } else - return c; + return c; } c = getc (fp); @@ -179,7 +178,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } @@ -193,23 +192,23 @@ if (c != EOF) { if (c == 'u') - { - if (phase1_pushback_length > 0 - && phase1_pushback[phase1_pushback_length - 1] >= MULTIPLE_U (0)) - phase1_pushback[phase1_pushback_length - 1]++; - else - { - if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); - phase1_pushback[phase1_pushback_length++] = MULTIPLE_U (1); - } - } + { + if (phase1_pushback_length > 0 + && phase1_pushback[phase1_pushback_length - 1] >= MULTIPLE_U (0)) + phase1_pushback[phase1_pushback_length - 1]++; + else + { + if (phase1_pushback_length == SIZEOF (phase1_pushback)) + abort (); + phase1_pushback[phase1_pushback_length++] = MULTIPLE_U (1); + } + } else - { - if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); - phase1_pushback[phase1_pushback_length++] = c; - } + { + if (phase1_pushback_length == SIZEOF (phase1_pushback)) + abort (); + phase1_pushback[phase1_pushback_length++] = c; + } } } @@ -255,46 +254,46 @@ { c = phase1_getc (); if (c == 'u') - { - unsigned int u_count = 1; - unsigned char buf[4]; - unsigned int n; - int i; - - for (;;) - { - c = phase1_getc (); - if (c != 'u') - break; - u_count++; - } - phase1_ungetc (c); - - n = 0; - for (i = 0; i < 4; i++) - { - c = phase1_getc (); - - if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - else - { - phase1_ungetc (c); - while (--i >= 0) - phase1_ungetc (buf[i]); - for (; u_count > 0; u_count--) - phase1_ungetc ('u'); - return '\\'; - } - - buf[i] = c; - } - return UNICODE (n); - } + { + unsigned int u_count = 1; + unsigned char buf[4]; + unsigned int n; + int i; + + for (;;) + { + c = phase1_getc (); + if (c != 'u') + break; + u_count++; + } + phase1_ungetc (c); + + n = 0; + for (i = 0; i < 4; i++) + { + c = phase1_getc (); + + if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + else + { + phase1_ungetc (c); + while (--i >= 0) + phase1_ungetc (buf[i]); + for (; u_count > 0; u_count--) + phase1_ungetc ('u'); + return '\\'; + } + + buf[i] = c; + } + return UNICODE (n); + } phase1_ungetc (c); return '\\'; } @@ -308,7 +307,7 @@ if (c != P2_EOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -330,7 +329,7 @@ { c = phase3_pushback[--phase3_pushback_length]; if (c == '\n') - ++line_number; + ++line_number; return c; } @@ -342,27 +341,27 @@ int c1 = phase2_getc (); if (RED (c1) != '\n') - phase2_ungetc (c1); + phase2_ungetc (c1); /* Seen line terminator CR or CR/LF. */ if (c == '\r' || c1 == '\n') - { - ++line_number; - return '\n'; - } + { + ++line_number; + return '\n'; + } else - return UNICODE ('\n'); + return UNICODE ('\n'); } else if (RED (c) == '\n') { /* Seen line terminator LF. */ if (c == '\n') - { - ++line_number; - return '\n'; - } + { + ++line_number; + return '\n'; + } else - return UNICODE ('\n'); + return UNICODE ('\n'); } return c; @@ -375,9 +374,9 @@ if (c != P2_EOF) { if (c == '\n') - --line_number; + --line_number; if (phase3_pushback_length == SIZEOF (phase3_pushback)) - abort (); + abort (); phase3_pushback[phase3_pushback_length++] = c; } } @@ -401,11 +400,13 @@ char *curr_buffer; size_t curr_buflen; size_t curr_allocated; + /* The lexical context. Used only for error message purposes. */ + lexical_context_ty lcontext; }; /* Initialize a 'struct string_buffer' to empty. */ static inline void -init_string_buffer (struct string_buffer *bp) +init_string_buffer (struct string_buffer *bp, lexical_context_ty lcontext) { bp->utf8_buffer = NULL; bp->utf8_buflen = 0; @@ -414,6 +415,7 @@ bp->curr_buffer = NULL; bp->curr_buflen = 0; bp->curr_allocated = 0; + bp->lcontext = lcontext; } /* Auxiliary function: Append a byte to bp->curr. */ @@ -436,7 +438,7 @@ { size_t new_allocated = 2 * bp->utf8_allocated + 10; if (new_allocated < bp->utf8_buflen + count) - new_allocated = bp->utf8_buflen + count; + new_allocated = bp->utf8_buflen + count; bp->utf8_allocated = new_allocated; bp->utf8_buffer = xrealloc (bp->utf8_buffer, new_allocated); } @@ -445,7 +447,7 @@ /* Auxiliary function: Append a Unicode character to bp->utf8. uc must be < 0x110000. */ static inline void -string_buffer_append_unicode (struct string_buffer *bp, unsigned int uc) +string_buffer_append_unicode (struct string_buffer *bp, ucs4_t uc) { unsigned char utf8buf[6]; int count = u8_uctomb (utf8buf, uc, 6); @@ -473,24 +475,24 @@ half surrogates. But a half surrogate is invalid in UTF-8: - RFC 3629 says - "The definition of UTF-8 prohibits encoding character - numbers between U+D800 and U+DFFF". + "The definition of UTF-8 prohibits encoding character + numbers between U+D800 and U+DFFF". - Unicode 4.0 chapter 3 - - section 3.9, p.77, says - "Because surrogate code points are not Unicode scalar - values, any UTF-8 byte sequence that would otherwise - map to code points D800..DFFF is ill-formed." - and in table 3-6, p. 78, does not mention D800..DFFF. + + section 3.9, p.77, says + "Because surrogate code points are not Unicode scalar + values, any UTF-8 byte sequence that would otherwise + map to code points D800..DFFF is ill-formed." + and in table 3-6, p. 78, does not mention D800..DFFF. - The unicode.org FAQ question "How do I convert an unpaired - UTF-16 surrogate to UTF-8?" has the answer - "By representing such an unpaired surrogate on its own - as a 3-byte sequence, the resulting UTF-8 data stream - would become ill-formed." + UTF-16 surrogate to UTF-8?" has the answer + "By representing such an unpaired surrogate on its own + as a 3-byte sequence, the resulting UTF-8 data stream + would become ill-formed." So use U+FFFD instead. */ error_with_progname = false; error (0, 0, _("%s:%d: warning: lone surrogate U+%04X"), - logical_file_name, line_number, uc); + logical_file_name, line_number, uc); error_with_progname = true; string_buffer_append_unicode (bp, 0xfffd); } @@ -518,8 +520,8 @@ string_buffer_append_byte (bp, '\0'); /* Convert from the source encoding to UTF-8. */ - curr = from_current_source_encoding (bp->curr_buffer, - logical_file_name, lineno); + curr = from_current_source_encoding (bp->curr_buffer, bp->lcontext, + logical_file_name, lineno); /* Append it to bp->utf8_buffer. */ count = strlen (curr); @@ -528,7 +530,7 @@ bp->utf8_buflen += count; if (curr != bp->curr_buffer) - free (curr); + free (curr); bp->curr_buflen = 0; } } @@ -545,32 +547,32 @@ string_buffer_flush_curr_buffer (bp, line_number); /* Test whether this character and the previous one form a Unicode - surrogate character pair. */ + surrogate character pair. */ if (bp->utf16_surr != 0 - && (c >= UNICODE (0xdc00) && c < UNICODE (0xe000))) - { - unsigned short utf16buf[2]; - unsigned int uc; - - utf16buf[0] = bp->utf16_surr; - utf16buf[1] = UTF16_VALUE (c); - if (u16_mbtouc (&uc, utf16buf, 2) != 2) - abort (); - - string_buffer_append_unicode (bp, uc); - bp->utf16_surr = 0; - } + && (c >= UNICODE (0xdc00) && c < UNICODE (0xe000))) + { + unsigned short utf16buf[2]; + ucs4_t uc; + + utf16buf[0] = bp->utf16_surr; + utf16buf[1] = UTF16_VALUE (c); + if (u16_mbtouc (&uc, utf16buf, 2) != 2) + abort (); + + string_buffer_append_unicode (bp, uc); + bp->utf16_surr = 0; + } else - { - string_buffer_flush_utf16_surr (bp); + { + string_buffer_flush_utf16_surr (bp); - if (c >= UNICODE (0xd800) && c < UNICODE (0xdc00)) - bp->utf16_surr = UTF16_VALUE (c); - else if (c >= UNICODE (0xdc00) && c < UNICODE (0xe000)) - string_buffer_append_lone_surrogate (bp, UTF16_VALUE (c)); - else - string_buffer_append_unicode (bp, UTF16_VALUE (c)); - } + if (c >= UNICODE (0xd800) && c < UNICODE (0xdc00)) + bp->utf16_surr = UTF16_VALUE (c); + else if (c >= UNICODE (0xdc00) && c < UNICODE (0xe000)) + string_buffer_append_lone_surrogate (bp, UTF16_VALUE (c)); + else + string_buffer_append_unicode (bp, UTF16_VALUE (c)); + } } else { @@ -580,10 +582,10 @@ string_buffer_flush_utf16_surr (bp); /* When a newline is seen, convert the accumulated multibyte sequence. - This ensures a correct line number in the error message in case of - a conversion error. The "- 1" is to account for the newline. */ + This ensures a correct line number in the error message in case of + a conversion error. The "- 1" is to account for the newline. */ if (c == '\n') - string_buffer_flush_curr_buffer (bp, line_number - 1); + string_buffer_flush_curr_buffer (bp, line_number - 1); string_buffer_append_byte (bp, (unsigned char) c); } @@ -625,13 +627,14 @@ comment_buffer.utf8_buflen = 0; comment_buffer.utf16_surr = 0; comment_buffer.curr_buflen = 0; + comment_buffer.lcontext = lc_comment; } static inline bool comment_at_start () { return (comment_buffer.utf8_buflen == 0 && comment_buffer.utf16_surr == 0 - && comment_buffer.curr_buflen == 0); + && comment_buffer.curr_buflen == 0); } static inline void @@ -648,7 +651,7 @@ buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; buffer[buflen] = '\0'; savable_comment_add (buffer); @@ -686,39 +689,39 @@ comment_start (); last_was_star = false; for (;;) - { - c = phase3_getc (); - if (c == P2_EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t'))) - comment_add (c); - switch (RED (c)) - { - case '\n': - comment_line_end (1); - comment_start (); - last_was_star = false; - continue; - - case '*': - last_was_star = true; - continue; - - case '/': - if (last_was_star) - { - comment_line_end (2); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - continue; - } - break; - } + { + c = phase3_getc (); + if (c == P2_EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t'))) + comment_add (c); + switch (RED (c)) + { + case '\n': + comment_line_end (1); + comment_start (); + last_was_star = false; + continue; + + case '*': + last_was_star = true; + continue; + + case '/': + if (last_was_star) + { + comment_line_end (2); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + continue; + } + break; + } last_comment_line = line_number; return ' '; @@ -727,14 +730,14 @@ last_comment_line = line_number; comment_start (); for (;;) - { - c = phase3_getc (); - if (RED (c) == '\n' || c == P2_EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t'))) - comment_add (c); - } + { + c = phase3_getc (); + if (RED (c) == '\n' || c == P2_EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t'))) + comment_add (c); + } phase3_ungetc (c); /* push back the newline, to decrement line_number */ comment_line_end (0); phase3_getc (); /* read the newline again */ @@ -755,17 +758,17 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_lbrace, /* { */ - token_type_rbrace, /* } */ - token_type_comma, /* , */ - token_type_dot, /* . */ - token_type_string_literal, /* "abc" */ - token_type_number, /* 1.23 */ - token_type_symbol, /* identifier, keyword, null */ - token_type_plus, /* + */ - token_type_other /* character literal, misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_lbrace, /* { */ + token_type_rbrace, /* } */ + token_type_comma, /* , */ + token_type_dot, /* . */ + token_type_string_literal, /* "abc" */ + token_type_number, /* 1.23 */ + token_type_symbol, /* identifier, keyword, null */ + token_type_plus, /* + */ + token_type_other /* character literal, misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -773,8 +776,8 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string_literal, token_type_symbol */ - refcounted_string_list_ty *comment; /* for token_type_string_literal */ + char *string; /* for token_type_string_literal, token_type_symbol */ + refcounted_string_list_ty *comment; /* for token_type_string_literal */ int line_number; }; @@ -821,26 +824,26 @@ case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { - int n = RED (c) - '0'; - bool maybe3digits = (n < 4); + int n = RED (c) - '0'; + bool maybe3digits = (n < 4); - c = phase3_getc (); - if (RED (c) >= '0' && RED (c) <= '7') - { - n = (n << 3) + (RED (c) - '0'); - if (maybe3digits) - { - c = phase3_getc (); - if (RED (c) >= '0' && RED (c) <= '7') - n = (n << 3) + (RED (c) - '0'); - else - phase3_ungetc (c); - } - } - else - phase3_ungetc (c); + c = phase3_getc (); + if (RED (c) >= '0' && RED (c) <= '7') + { + n = (n << 3) + (RED (c) - '0'); + if (maybe3digits) + { + c = phase3_getc (); + if (RED (c) >= '0' && RED (c) <= '7') + n = (n << 3) + (RED (c) - '0'); + else + phase3_ungetc (c); + } + } + else + phase3_ungetc (c); - return UNICODE (n); + return UNICODE (n); } default: /* Invalid escape sequence. */ @@ -860,22 +863,22 @@ /* Use phase 3, because phase 4 elides comments. */ c = phase3_getc (); if (c == P2_EOF || RED (c) == delimiter) - break; + break; if (RED (c) == '\n') - { - phase3_ungetc (c); - error_with_progname = false; - if (delimiter == '\'') - error (0, 0, _("%s:%d: warning: unterminated character constant"), - logical_file_name, line_number); - else - error (0, 0, _("%s:%d: warning: unterminated string constant"), - logical_file_name, line_number); - error_with_progname = true; - break; - } + { + phase3_ungetc (c); + error_with_progname = false; + if (delimiter == '\'') + error (0, 0, _("%s:%d: warning: unterminated character constant"), + logical_file_name, line_number); + else + error (0, 0, _("%s:%d: warning: unterminated string constant"), + logical_file_name, line_number); + error_with_progname = true; + break; + } if (RED (c) == '\\') - c = do_getc_escaped (); + c = do_getc_escaped (); string_buffer_append (literal, c); } } @@ -904,186 +907,186 @@ c = phase4_getc (); if (c == P2_EOF) - { - tp->type = token_type_eof; - return; - } + { + tp->type = token_type_eof; + return; + } switch (RED (c)) - { - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case ' ': - case '\t': - case '\f': - /* Ignore whitespace and comments. */ - continue; - } + { + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case ' ': + case '\t': + case '\f': + /* Ignore whitespace and comments. */ + continue; + } last_non_comment_line = tp->line_number; switch (RED (c)) - { - case '(': - tp->type = token_type_lparen; - return; - - case ')': - tp->type = token_type_rparen; - return; - - case '{': - tp->type = token_type_lbrace; - return; - - case '}': - tp->type = token_type_rbrace; - return; - - case ',': - tp->type = token_type_comma; - return; - - case '.': - c = phase4_getc (); - if (!(RED (c) >= '0' && RED (c) <= '9')) - { - phase4_ungetc (c); - tp->type = token_type_dot; - return; - } - /* FALLTHROUGH */ - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - { - /* Don't need to verify the complicated syntax of integers and - floating-point numbers. We assume a valid Java input. - The simplified syntax that we recognize as number is: any - sequence of alphanumeric characters, additionally '+' and '-' - immediately after 'e' or 'E' except in hexadecimal numbers. */ - bool hexadecimal = false; - - for (;;) - { - c = phase4_getc (); - if (RED (c) >= '0' && RED (c) <= '9') - continue; - if ((RED (c) >= 'A' && RED (c) <= 'Z') - || (RED (c) >= 'a' && RED (c) <= 'z')) - { - if (RED (c) == 'X' || RED (c) == 'x') - hexadecimal = true; - if ((RED (c) == 'E' || RED (c) == 'e') && !hexadecimal) - { - c = phase4_getc (); - if (!(RED (c) == '+' || RED (c) == '-')) - phase4_ungetc (c); - } - continue; - } - if (RED (c) == '.') - continue; - break; - } - phase4_ungetc (c); - tp->type = token_type_number; - return; - } - - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': - case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': - case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': - case 'V': case 'W': case 'X': case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': - case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': - case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': - case 'v': case 'w': case 'x': case 'y': case 'z': - /* Although Java allows identifiers containing many Unicode - characters, we recognize only identifiers consisting of ASCII - characters. This avoids conversion hassles w.r.t. the --keyword - arguments, and shouldn't be a big problem in practice. */ - { - static char *buffer; - static int bufmax; - int bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = RED (c); - c = phase4_getc (); - if (!((RED (c) >= 'A' && RED (c) <= 'Z') - || (RED (c) >= 'a' && RED (c) <= 'z') - || (RED (c) >= '0' && RED (c) <= '9') - || RED (c) == '_')) - break; - } - phase4_ungetc (c); - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - return; - } - - case '"': - /* String literal. */ - { - struct string_buffer literal; - - init_string_buffer (&literal); - accumulate_escaped (&literal, '"'); - tp->string = xstrdup (string_buffer_result (&literal)); - free_string_buffer (&literal); - tp->comment = add_reference (savable_comment); - tp->type = token_type_string_literal; - return; - } - - case '\'': - /* Character literal. */ - { - struct string_buffer literal; - - init_string_buffer (&literal); - accumulate_escaped (&literal, '\''); - free_string_buffer (&literal); - tp->type = token_type_other; - return; - } - - case '+': - c = phase4_getc (); - if (RED (c) == '+') - /* Operator ++ */ - tp->type = token_type_other; - else if (RED (c) == '=') - /* Operator += */ - tp->type = token_type_other; - else - { - /* Operator + */ - phase4_ungetc (c); - tp->type = token_type_plus; - } - return; - - default: - /* Misc. operator. */ - tp->type = token_type_other; - return; - } + { + case '(': + tp->type = token_type_lparen; + return; + + case ')': + tp->type = token_type_rparen; + return; + + case '{': + tp->type = token_type_lbrace; + return; + + case '}': + tp->type = token_type_rbrace; + return; + + case ',': + tp->type = token_type_comma; + return; + + case '.': + c = phase4_getc (); + if (!(RED (c) >= '0' && RED (c) <= '9')) + { + phase4_ungetc (c); + tp->type = token_type_dot; + return; + } + /* FALLTHROUGH */ + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + { + /* Don't need to verify the complicated syntax of integers and + floating-point numbers. We assume a valid Java input. + The simplified syntax that we recognize as number is: any + sequence of alphanumeric characters, additionally '+' and '-' + immediately after 'e' or 'E' except in hexadecimal numbers. */ + bool hexadecimal = false; + + for (;;) + { + c = phase4_getc (); + if (RED (c) >= '0' && RED (c) <= '9') + continue; + if ((RED (c) >= 'A' && RED (c) <= 'Z') + || (RED (c) >= 'a' && RED (c) <= 'z')) + { + if (RED (c) == 'X' || RED (c) == 'x') + hexadecimal = true; + if ((RED (c) == 'E' || RED (c) == 'e') && !hexadecimal) + { + c = phase4_getc (); + if (!(RED (c) == '+' || RED (c) == '-')) + phase4_ungetc (c); + } + continue; + } + if (RED (c) == '.') + continue; + break; + } + phase4_ungetc (c); + tp->type = token_type_number; + return; + } + + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': + case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': + case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': + case 'V': case 'W': case 'X': case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': + case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': + case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': + case 'v': case 'w': case 'x': case 'y': case 'z': + /* Although Java allows identifiers containing many Unicode + characters, we recognize only identifiers consisting of ASCII + characters. This avoids conversion hassles w.r.t. the --keyword + arguments, and shouldn't be a big problem in practice. */ + { + static char *buffer; + static int bufmax; + int bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = RED (c); + c = phase4_getc (); + if (!((RED (c) >= 'A' && RED (c) <= 'Z') + || (RED (c) >= 'a' && RED (c) <= 'z') + || (RED (c) >= '0' && RED (c) <= '9') + || RED (c) == '_')) + break; + } + phase4_ungetc (c); + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + return; + } + + case '"': + /* String literal. */ + { + struct string_buffer literal; + + init_string_buffer (&literal, lc_string); + accumulate_escaped (&literal, '"'); + tp->string = xstrdup (string_buffer_result (&literal)); + free_string_buffer (&literal); + tp->comment = add_reference (savable_comment); + tp->type = token_type_string_literal; + return; + } + + case '\'': + /* Character literal. */ + { + struct string_buffer literal; + + init_string_buffer (&literal, lc_outside); + accumulate_escaped (&literal, '\''); + free_string_buffer (&literal); + tp->type = token_type_other; + return; + } + + case '+': + c = phase4_getc (); + if (RED (c) == '+') + /* Operator ++ */ + tp->type = token_type_other; + else if (RED (c) == '=') + /* Operator += */ + tp->type = token_type_other; + else + { + /* Operator + */ + phase4_ungetc (c); + tp->type = token_type_plus; + } + return; + + default: + /* Misc. operator. */ + tp->type = token_type_other; + return; + } } } @@ -1094,7 +1097,7 @@ if (tp->type != token_type_eof) { if (phase5_pushback_length == SIZEOF (phase5_pushback)) - abort (); + abort (); phase5_pushback[phase5_pushback_length++] = *tp; } } @@ -1128,41 +1131,41 @@ size_t sum_len = strlen (sum); for (;;) - { - token_ty token2; + { + token_ty token2; - phase5_get (&token2); - if (token2.type == token_type_plus) - { - token_ty token3; - - phase5_get (&token3); - if (token3.type == token_type_string_literal) - { - token_ty token_after; - - phase5_get (&token_after); - if (token_after.type != token_type_dot) - { - char *addend = token3.string; - size_t addend_len = strlen (addend); - - sum = (char *) xrealloc (sum, sum_len + addend_len + 1); - memcpy (sum + sum_len, addend, addend_len + 1); - sum_len += addend_len; - - phase5_unget (&token_after); - free_token (&token3); - free_token (&token2); - continue; - } - phase5_unget (&token_after); - } - phase5_unget (&token3); - } - phase5_unget (&token2); - break; - } + phase5_get (&token2); + if (token2.type == token_type_plus) + { + token_ty token3; + + phase5_get (&token3); + if (token3.type == token_type_string_literal) + { + token_ty token_after; + + phase5_get (&token_after); + if (token_after.type != token_type_dot) + { + char *addend = token3.string; + size_t addend_len = strlen (addend); + + sum = (char *) xrealloc (sum, sum_len + addend_len + 1); + memcpy (sum + sum_len, addend, addend_len + 1); + sum_len += addend_len; + + phase5_unget (&token_after); + free_token (&token3); + free_token (&token2); + continue; + } + phase5_unget (&token_after); + } + phase5_unget (&token3); + } + phase5_unget (&token2); + break; + } tp->string = sum; } phase6_last = tp->type; @@ -1175,7 +1178,7 @@ if (tp->type != token_type_eof) { if (phase6_pushback_length == SIZEOF (phase6_pushback)) - abort (); + abort (); phase6_pushback[phase6_pushback_length++] = *tp; } } @@ -1223,9 +1226,9 @@ Return true upon eof, false upon closing parenthesis or brace. */ static bool extract_parenthesized (message_list_ty *mlp, token_type_ty terminator, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -1239,7 +1242,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -1250,219 +1253,219 @@ x_java_lex (&token); switch (token.type) - { - case token_type_symbol: - { - /* Combine symbol1 . ... . symbolN to a single strings, so that - we can recognize static function calls like - GettextResource.gettext. The information present for - symbolI.....symbolN has precedence over the information for - symbolJ.....symbolN with J > I. */ - char *sum = token.string; - size_t sum_len = strlen (sum); - const char *dottedname; - flag_context_list_ty *context_list; - - for (;;) - { - token_ty token2; - - x_java_lex (&token2); - if (token2.type == token_type_dot) - { - token_ty token3; - - x_java_lex (&token3); - if (token3.type == token_type_symbol) - { - char *addend = token3.string; - size_t addend_len = strlen (addend); - - sum = - (char *) xrealloc (sum, sum_len + 1 + addend_len + 1); - sum[sum_len] = '.'; - memcpy (sum + sum_len + 1, addend, addend_len + 1); - sum_len += 1 + addend_len; - - free_token (&token3); - free_token (&token2); - continue; - } - x_java_unlex (&token3); - } - x_java_unlex (&token2); - break; - } - - for (dottedname = sum;;) - { - void *keyword_value; - - if (hash_find_entry (&keywords, dottedname, strlen (dottedname), - &keyword_value) - == 0) - { - next_shapes = (const struct callshapes *) keyword_value; - state = 1; - break; - } - - dottedname = strchr (dottedname, '.'); - if (dottedname == NULL) - { - state = 0; - break; - } - dottedname++; - } - - for (dottedname = sum;;) - { - context_list = - flag_context_list_table_lookup ( - flag_context_list_table, - dottedname, strlen (dottedname)); - if (context_list != NULL) - break; - - dottedname = strchr (dottedname, '.'); - if (dottedname == NULL) - break; - dottedname++; - } - next_context_iter = flag_context_list_iterator (context_list); - - free (sum); - continue; - } - - case token_type_lparen: - if (extract_parenthesized (mlp, token_type_rparen, - inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - if (terminator == token_type_rparen) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return false; - } - if (terminator == token_type_rbrace) - { - error_with_progname = false; - error (0, 0, - _("%s:%d: warning: ')' found where '}' was expected"), - logical_file_name, token.line_number); - error_with_progname = true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_lbrace: - if (extract_parenthesized (mlp, token_type_rbrace, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rbrace: - if (terminator == token_type_rbrace) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return false; - } - if (terminator == token_type_rparen) - { - error_with_progname = false; - error (0, 0, - _("%s:%d: warning: '}' found where ')' was expected"), - logical_file_name, token.line_number); - error_with_progname = true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case token_type_string_literal: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - xgettext_current_source_encoding = po_charset_utf8; - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, - &pos, token.comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - pos.file_name, pos.line_number, - token.comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - } - drop_reference (token.comment); - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_eof: - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - - case token_type_dot: - case token_type_number: - case token_type_plus: - case token_type_other: - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - default: - abort (); - } + { + case token_type_symbol: + { + /* Combine symbol1 . ... . symbolN to a single strings, so that + we can recognize static function calls like + GettextResource.gettext. The information present for + symbolI.....symbolN has precedence over the information for + symbolJ.....symbolN with J > I. */ + char *sum = token.string; + size_t sum_len = strlen (sum); + const char *dottedname; + flag_context_list_ty *context_list; + + for (;;) + { + token_ty token2; + + x_java_lex (&token2); + if (token2.type == token_type_dot) + { + token_ty token3; + + x_java_lex (&token3); + if (token3.type == token_type_symbol) + { + char *addend = token3.string; + size_t addend_len = strlen (addend); + + sum = + (char *) xrealloc (sum, sum_len + 1 + addend_len + 1); + sum[sum_len] = '.'; + memcpy (sum + sum_len + 1, addend, addend_len + 1); + sum_len += 1 + addend_len; + + free_token (&token3); + free_token (&token2); + continue; + } + x_java_unlex (&token3); + } + x_java_unlex (&token2); + break; + } + + for (dottedname = sum;;) + { + void *keyword_value; + + if (hash_find_entry (&keywords, dottedname, strlen (dottedname), + &keyword_value) + == 0) + { + next_shapes = (const struct callshapes *) keyword_value; + state = 1; + break; + } + + dottedname = strchr (dottedname, '.'); + if (dottedname == NULL) + { + state = 0; + break; + } + dottedname++; + } + + for (dottedname = sum;;) + { + context_list = + flag_context_list_table_lookup ( + flag_context_list_table, + dottedname, strlen (dottedname)); + if (context_list != NULL) + break; + + dottedname = strchr (dottedname, '.'); + if (dottedname == NULL) + break; + dottedname++; + } + next_context_iter = flag_context_list_iterator (context_list); + + free (sum); + continue; + } + + case token_type_lparen: + if (extract_parenthesized (mlp, token_type_rparen, + inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + if (terminator == token_type_rparen) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return false; + } + if (terminator == token_type_rbrace) + { + error_with_progname = false; + error (0, 0, + _("%s:%d: warning: ')' found where '}' was expected"), + logical_file_name, token.line_number); + error_with_progname = true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_lbrace: + if (extract_parenthesized (mlp, token_type_rbrace, + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rbrace: + if (terminator == token_type_rbrace) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return false; + } + if (terminator == token_type_rparen) + { + error_with_progname = false; + error (0, 0, + _("%s:%d: warning: '}' found where ')' was expected"), + logical_file_name, token.line_number); + error_with_progname = true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case token_type_string_literal: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + xgettext_current_source_encoding = po_charset_utf8; + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, + &pos, NULL, token.comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + pos.file_name, pos.line_number, + token.comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + } + drop_reference (token.comment); + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_eof: + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + + case token_type_dot: + case token_type_number: + case token_type_plus: + case token_type_other: + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + default: + abort (); + } } } void extract_java (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -1483,8 +1486,8 @@ /* Eat tokens until eof is seen. When extract_parenthesized returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_parenthesized (mlp, token_type_eof, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) ; fp = NULL; diff -Nru gettext-0.17/gettext-tools/src/x-java.h gettext-0.18.1.1/gettext-tools/src/x-java.h --- gettext-0.17/gettext-tools/src/x-java.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-java.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,16 +28,16 @@ #define EXTENSIONS_JAVA \ - { "java", "Java" }, \ + { "java", "Java" }, \ #define SCANNERS_JAVA \ - { "Java", extract_java, \ - &flag_table_java, &formatstring_java, NULL }, \ + { "Java", extract_java, \ + &flag_table_java, &formatstring_java, NULL }, \ extern void extract_java (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_java_keyword (const char *keyword); extern void x_java_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-librep.c gettext-0.18.1.1/gettext-tools/src/x-librep.c --- gettext-0.17/gettext-tools/src/x-librep.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-librep.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext librep backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2001. @@ -32,7 +32,6 @@ #include "c-ctype.h" #include "message.h" #include "xgettext.h" -#include "x-librep.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -89,15 +88,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Lisp - symbol. */ + symbol. */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -109,7 +108,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_librep_keyword ("_"); default_keywords = false; } @@ -145,7 +144,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -170,9 +169,9 @@ /* A token consists of a sequence of characters. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - char *chars; /* the token's constituents */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + char *chars; /* the token's constituents */ }; /* Initialize a 'struct token'. */ @@ -228,173 +227,173 @@ for (;; c = do_getc ()) { switch (c) - { - case EOF: - goto done; - - case ' ': case '\t': case '\n': case '\f': case '\r': - case '(': case ')': case '[': case ']': - case '\'': case '"': case ';': case ',': case '`': - goto done; - - case '\\': - radix = 0; - c = do_getc (); - if (c == EOF) - /* Invalid, but be tolerant. */ - break; - grow_token (tp); - tp->chars[tp->charcount++] = c; - break; - - case '|': - radix = 0; - for (;;) - { - c = do_getc (); - if (c == EOF || c == '|') - break; - grow_token (tp); - tp->chars[tp->charcount++] = c; - } - break; - - default: - if (radix != 0) - { - if (expecting_prefix) - { - switch (c) - { - case 'B': case 'b': - radix = 2; - break; - case 'O': case 'o': - radix = 8; - break; - case 'D': case 'd': - radix = 10; - break; - case 'X': case 'x': - radix = 16; - break; - case 'E': case 'e': - case 'I': case 'i': - break; - default: - radix = 0; - break; - } - expecting_prefix = false; - nfirst = tp->charcount + 1; - } - else if (tp->charcount == nfirst - && (c == '+' || c == '-' || c == '#')) - { - if (c == '#') - { - if (had_sign) - radix = 0; - else - expecting_prefix = true; - } - else - had_sign = true; - nfirst = tp->charcount + 1; - } - else - { - switch (radix) - { - case -1: - if (c == '.') - { - radix = 10; - exact = false; - } - else if (!(c >= '0' && c <= '9')) - radix = 0; - else if (c == '0') - radix = 1; - else - radix = 10; - break; - - case 1: - switch (c) - { - case 'X': case 'x': - radix = 16; - nfirst = tp->charcount + 1; - break; - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': - radix = 8; - nfirst = tp->charcount; - break; - case '.': case 'E': case 'e': - radix = 10; - exact = false; - break; - case '/': - radix = 10; - rational = true; - break; - default: - radix = 0; - break; - } - break; - - default: - switch (c) - { - case '.': - if (exact && radix == 10 && !rational) - exact = false; - else - radix = 0; - break; - case '/': - if (exact && !rational) - rational = true; - else - radix = 0; - break; - case 'E': case 'e': - if (radix == 10) - { - if (!rational && !exponent) - { - exponent = true; - exact = false; - } - else - radix = 0; - break; - } - /*FALLTHROUGH*/ - default: - if (exponent && (c == '+' || c == '-')) - break; - if ((radix <= 10 - && !(c >= '0' && c <= '0' + radix - 1)) - || (radix == 16 && !c_isxdigit (c))) - radix = 0; - break; - } - break; - } - } - } - else - { - if (c == '#') - goto done; - } - grow_token (tp); - tp->chars[tp->charcount++] = c; - } + { + case EOF: + goto done; + + case ' ': case '\t': case '\n': case '\f': case '\r': + case '(': case ')': case '[': case ']': + case '\'': case '"': case ';': case ',': case '`': + goto done; + + case '\\': + radix = 0; + c = do_getc (); + if (c == EOF) + /* Invalid, but be tolerant. */ + break; + grow_token (tp); + tp->chars[tp->charcount++] = c; + break; + + case '|': + radix = 0; + for (;;) + { + c = do_getc (); + if (c == EOF || c == '|') + break; + grow_token (tp); + tp->chars[tp->charcount++] = c; + } + break; + + default: + if (radix != 0) + { + if (expecting_prefix) + { + switch (c) + { + case 'B': case 'b': + radix = 2; + break; + case 'O': case 'o': + radix = 8; + break; + case 'D': case 'd': + radix = 10; + break; + case 'X': case 'x': + radix = 16; + break; + case 'E': case 'e': + case 'I': case 'i': + break; + default: + radix = 0; + break; + } + expecting_prefix = false; + nfirst = tp->charcount + 1; + } + else if (tp->charcount == nfirst + && (c == '+' || c == '-' || c == '#')) + { + if (c == '#') + { + if (had_sign) + radix = 0; + else + expecting_prefix = true; + } + else + had_sign = true; + nfirst = tp->charcount + 1; + } + else + { + switch (radix) + { + case -1: + if (c == '.') + { + radix = 10; + exact = false; + } + else if (!(c >= '0' && c <= '9')) + radix = 0; + else if (c == '0') + radix = 1; + else + radix = 10; + break; + + case 1: + switch (c) + { + case 'X': case 'x': + radix = 16; + nfirst = tp->charcount + 1; + break; + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': + radix = 8; + nfirst = tp->charcount; + break; + case '.': case 'E': case 'e': + radix = 10; + exact = false; + break; + case '/': + radix = 10; + rational = true; + break; + default: + radix = 0; + break; + } + break; + + default: + switch (c) + { + case '.': + if (exact && radix == 10 && !rational) + exact = false; + else + radix = 0; + break; + case '/': + if (exact && !rational) + rational = true; + else + radix = 0; + break; + case 'E': case 'e': + if (radix == 10) + { + if (!rational && !exponent) + { + exponent = true; + exact = false; + } + else + radix = 0; + break; + } + /*FALLTHROUGH*/ + default: + if (exponent && (c == '+' || c == '-')) + break; + if ((radix <= 10 + && !(c >= '0' && c <= '0' + radix - 1)) + || (radix == 16 && !c_isxdigit (c))) + radix = 0; + break; + } + break; + } + } + } + else + { + if (c == '#') + goto done; + } + grow_token (tp); + tp->chars[tp->charcount++] = c; + } } done: if (c != EOF) @@ -435,7 +434,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -466,19 +465,19 @@ Other objects need not to be represented precisely. */ enum object_type { - t_symbol, /* symbol */ - t_string, /* string */ - t_other, /* other kind of real object */ - t_dot, /* '.' pseudo object */ - t_close, /* ')' or ']' pseudo object */ - t_eof /* EOF marker */ + t_symbol, /* symbol */ + t_string, /* string */ + t_other, /* other kind of real object */ + t_dot, /* '.' pseudo object */ + t_close, /* ')' or ']' pseudo object */ + t_eof /* EOF marker */ }; struct object { enum object_type type; - struct token *token; /* for t_symbol and t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_symbol and t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct object'. */ @@ -532,55 +531,55 @@ case '^': c = do_getc (); if (c == EOF) - return EOF; + return EOF; return c & 0x1f; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { - int n = c - '0'; + int n = c - '0'; - c = do_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - { - n = (n << 3) + (c - '0'); - c = do_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - n = (n << 3) + (c - '0'); - else - do_ungetc (c); - } - } - else - do_ungetc (c); - } - return (unsigned char) n; + c = do_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + { + n = (n << 3) + (c - '0'); + c = do_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + n = (n << 3) + (c - '0'); + else + do_ungetc (c); + } + } + else + do_ungetc (c); + } + return (unsigned char) n; } case 'x': { - int n = 0; + int n = 0; - for (;;) - { - c = do_getc (); - if (c == EOF) - break; - else if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - else - { - do_ungetc (c); - break; - } - } - return (unsigned char) n; + for (;;) + { + c = do_getc (); + if (c == EOF) + break; + else if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + else + { + do_ungetc (c); + break; + } + } + return (unsigned char) n; } default: return c; @@ -598,504 +597,504 @@ c = do_getc (); switch (c) - { - case EOF: - op->type = t_eof; - return; - - case '\n': - /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between - both. */ - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - continue; - - case ' ': case '\t': case '\f': case '\r': - continue; - - case '(': - { - int arg = 0; /* Current argument number. */ - flag_context_list_iterator_ty context_iter; - const struct callshapes *shapes = NULL; - struct arglist_parser *argparser = NULL; - - for (;; arg++) - { - struct object inner; - flag_context_ty inner_context; - - if (arg == 0) - inner_context = null_context; - else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - - read_object (&inner, inner_context); - - /* Recognize end of list. */ - if (inner.type == t_close) - { - op->type = t_other; - /* Don't bother converting "()" to "NIL". */ - last_non_comment_line = line_number; - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return; - } - - /* Dots are not allowed in every position. - But be tolerant. */ - - /* EOF inside list is illegal. But be tolerant. */ - if (inner.type == t_eof) - break; - - if (arg == 0) - { - /* This is the function position. */ - if (inner.type == t_symbol) - { - char *symbol_name = string_of_object (&inner); - void *keyword_value; - - if (hash_find_entry (&keywords, - symbol_name, strlen (symbol_name), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - symbol_name, strlen (symbol_name))); - - free (symbol_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (argparser != NULL && inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_object (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - } - - free_object (&inner); - } - - if (argparser != NULL) - arglist_parser_done (argparser, arg); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '[': - { - for (;;) - { - struct object inner; - - read_object (&inner, null_context); - - /* Recognize end of vector. */ - if (inner.type == t_close) - { - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /* Dots are not allowed. But be tolerant. */ - - /* EOF inside vector is illegal. But be tolerant. */ - if (inner.type == t_eof) - break; - - free_object (&inner); - } - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case ')': case ']': - /* Tell the caller about the end of list or vector. - Unmatched closing parenthesis is illegal. But be tolerant. */ - op->type = t_close; - last_non_comment_line = line_number; - return; - - case ',': - { - int c = do_getc (); - /* The ,@ handling inside lists is wrong anyway, because - ,@form expands to an unknown number of elements. */ - if (c != EOF && c != '@') - do_ungetc (c); - } - /*FALLTHROUGH*/ - case '\'': - case '`': - { - struct object inner; - - read_object (&inner, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case ';': - { - bool all_semicolons = true; - - last_comment_line = line_number; - comment_start (); - for (;;) - { - int c = do_getc (); - if (c == EOF || c == '\n' || c == '\f' || c == '\r') - break; - if (c != ';') - all_semicolons = false; - if (!all_semicolons) - { - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - } - comment_line_end (0); - continue; - } - - case '"': - { - op->token = XMALLOC (struct token); - init_token (op->token); - op->line_number_at_start = line_number; - for (;;) - { - int c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == '"') - break; - if (c == '\\') - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == '\n') - /* Ignore escaped newline. */ - ; - else - { - c = do_getc_escaped (c); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - } - else - { - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - } - op->type = t_string; - - if (extract_all) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = op->line_number_at_start; - remember_a_message (mlp, NULL, string_of_object (op), - null_context, &pos, savable_comment); - } - last_non_comment_line = line_number; - return; - } - - case '?': - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - else if (c == '\\') - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - else - { - c = do_getc_escaped (c); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - ; - } - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '#': - /* Dispatch macro handling. */ - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - return; - } - - switch (c) - { - case '!': - if (ftell (fp) == 2) - /* Skip comment until !# */ - { - c = do_getc (); - for (;;) - { - if (c == EOF) - break; - if (c == '!') - { - c = do_getc (); - if (c == EOF || c == '#') - break; - } - else - c = do_getc (); - } - if (c == EOF) - { - /* EOF not allowed here. But be tolerant. */ - op->type = t_eof; - return; - } - continue; - } - /*FALLTHROUGH*/ - case '\'': - case ':': - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '[': - case '(': - { - struct object inner; - do_ungetc (c); - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '|': - { - int depth = 0; - - comment_start (); - c = do_getc (); - for (;;) - { - if (c == EOF) - break; - if (c == '|') - { - c = do_getc (); - if (c == EOF) - break; - if (c == '#') - { - if (depth == 0) - { - comment_line_end (0); - break; - } - depth--; - comment_add ('|'); - comment_add ('#'); - c = do_getc (); - } - else - comment_add ('|'); - } - else if (c == '#') - { - c = do_getc (); - if (c == EOF) - break; - comment_add ('#'); - if (c == '|') - { - depth++; - comment_add ('|'); - c = do_getc (); - } - } - else - { - /* We skip all leading white space. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - if (c == '\n') - { - comment_line_end (1); - comment_start (); - } - c = do_getc (); - } - } - if (c == EOF) - { - /* EOF not allowed here. But be tolerant. */ - op->type = t_eof; - return; - } - last_comment_line = line_number; - continue; - } - - case '\\': - { - struct token token; - int first = '\\'; - read_token (&token, &first); - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case 'T': case 't': - case 'F': case 'f': - op->type = t_other; - last_non_comment_line = line_number; - return; - - case 'B': case 'b': - case 'O': case 'o': - case 'D': case 'd': - case 'X': case 'x': - case 'E': case 'e': - case 'I': case 'i': - { - struct token token; - do_ungetc (c); - c = '#'; - read_token (&token, &c); - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - default: - /* Invalid input. Be tolerant, no error message. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /*NOTREACHED*/ - abort (); - - default: - /* Read a token. */ - { - bool symbol; - - op->token = XMALLOC (struct token); - symbol = read_token (op->token, &c); - if (op->token->charcount == 1 && op->token->chars[0] == '.') - { - free_token (op->token); - free (op->token); - op->type = t_dot; - last_non_comment_line = line_number; - return; - } - if (!symbol) - { - free_token (op->token); - free (op->token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - /* Distinguish between "foo" and "foo#bar". */ - c = do_getc (); - if (c == '#') - { - struct token second_token; - - free_token (op->token); - free (op->token); - read_token (&second_token, NULL); - free_token (&second_token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - else - { - if (c != EOF) - do_ungetc (c); - op->type = t_symbol; - last_non_comment_line = line_number; - return; - } - } - } + { + case EOF: + op->type = t_eof; + return; + + case '\n': + /* Comments assumed to be grouped with a message must immediately + precede it, with no non-whitespace token on a line between + both. */ + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + continue; + + case ' ': case '\t': case '\f': case '\r': + continue; + + case '(': + { + int arg = 0; /* Current argument number. */ + flag_context_list_iterator_ty context_iter; + const struct callshapes *shapes = NULL; + struct arglist_parser *argparser = NULL; + + for (;; arg++) + { + struct object inner; + flag_context_ty inner_context; + + if (arg == 0) + inner_context = null_context; + else + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + + read_object (&inner, inner_context); + + /* Recognize end of list. */ + if (inner.type == t_close) + { + op->type = t_other; + /* Don't bother converting "()" to "NIL". */ + last_non_comment_line = line_number; + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return; + } + + /* Dots are not allowed in every position. + But be tolerant. */ + + /* EOF inside list is illegal. But be tolerant. */ + if (inner.type == t_eof) + break; + + if (arg == 0) + { + /* This is the function position. */ + if (inner.type == t_symbol) + { + char *symbol_name = string_of_object (&inner); + void *keyword_value; + + if (hash_find_entry (&keywords, + symbol_name, strlen (symbol_name), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + symbol_name, strlen (symbol_name))); + + free (symbol_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (argparser != NULL && inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_object (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + } + + free_object (&inner); + } + + if (argparser != NULL) + arglist_parser_done (argparser, arg); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '[': + { + for (;;) + { + struct object inner; + + read_object (&inner, null_context); + + /* Recognize end of vector. */ + if (inner.type == t_close) + { + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /* Dots are not allowed. But be tolerant. */ + + /* EOF inside vector is illegal. But be tolerant. */ + if (inner.type == t_eof) + break; + + free_object (&inner); + } + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case ')': case ']': + /* Tell the caller about the end of list or vector. + Unmatched closing parenthesis is illegal. But be tolerant. */ + op->type = t_close; + last_non_comment_line = line_number; + return; + + case ',': + { + int c = do_getc (); + /* The ,@ handling inside lists is wrong anyway, because + ,@form expands to an unknown number of elements. */ + if (c != EOF && c != '@') + do_ungetc (c); + } + /*FALLTHROUGH*/ + case '\'': + case '`': + { + struct object inner; + + read_object (&inner, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case ';': + { + bool all_semicolons = true; + + last_comment_line = line_number; + comment_start (); + for (;;) + { + int c = do_getc (); + if (c == EOF || c == '\n' || c == '\f' || c == '\r') + break; + if (c != ';') + all_semicolons = false; + if (!all_semicolons) + { + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + } + comment_line_end (0); + continue; + } + + case '"': + { + op->token = XMALLOC (struct token); + init_token (op->token); + op->line_number_at_start = line_number; + for (;;) + { + int c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == '"') + break; + if (c == '\\') + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == '\n') + /* Ignore escaped newline. */ + ; + else + { + c = do_getc_escaped (c); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + } + else + { + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + } + op->type = t_string; + + if (extract_all) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = op->line_number_at_start; + remember_a_message (mlp, NULL, string_of_object (op), + null_context, &pos, NULL, savable_comment); + } + last_non_comment_line = line_number; + return; + } + + case '?': + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + else if (c == '\\') + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + else + { + c = do_getc_escaped (c); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + ; + } + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '#': + /* Dispatch macro handling. */ + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + return; + } + + switch (c) + { + case '!': + if (ftell (fp) == 2) + /* Skip comment until !# */ + { + c = do_getc (); + for (;;) + { + if (c == EOF) + break; + if (c == '!') + { + c = do_getc (); + if (c == EOF || c == '#') + break; + } + else + c = do_getc (); + } + if (c == EOF) + { + /* EOF not allowed here. But be tolerant. */ + op->type = t_eof; + return; + } + continue; + } + /*FALLTHROUGH*/ + case '\'': + case ':': + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '[': + case '(': + { + struct object inner; + do_ungetc (c); + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '|': + { + int depth = 0; + + comment_start (); + c = do_getc (); + for (;;) + { + if (c == EOF) + break; + if (c == '|') + { + c = do_getc (); + if (c == EOF) + break; + if (c == '#') + { + if (depth == 0) + { + comment_line_end (0); + break; + } + depth--; + comment_add ('|'); + comment_add ('#'); + c = do_getc (); + } + else + comment_add ('|'); + } + else if (c == '#') + { + c = do_getc (); + if (c == EOF) + break; + comment_add ('#'); + if (c == '|') + { + depth++; + comment_add ('|'); + c = do_getc (); + } + } + else + { + /* We skip all leading white space. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + if (c == '\n') + { + comment_line_end (1); + comment_start (); + } + c = do_getc (); + } + } + if (c == EOF) + { + /* EOF not allowed here. But be tolerant. */ + op->type = t_eof; + return; + } + last_comment_line = line_number; + continue; + } + + case '\\': + { + struct token token; + int first = '\\'; + read_token (&token, &first); + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case 'T': case 't': + case 'F': case 'f': + op->type = t_other; + last_non_comment_line = line_number; + return; + + case 'B': case 'b': + case 'O': case 'o': + case 'D': case 'd': + case 'X': case 'x': + case 'E': case 'e': + case 'I': case 'i': + { + struct token token; + do_ungetc (c); + c = '#'; + read_token (&token, &c); + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + default: + /* Invalid input. Be tolerant, no error message. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /*NOTREACHED*/ + abort (); + + default: + /* Read a token. */ + { + bool symbol; + + op->token = XMALLOC (struct token); + symbol = read_token (op->token, &c); + if (op->token->charcount == 1 && op->token->chars[0] == '.') + { + free_token (op->token); + free (op->token); + op->type = t_dot; + last_non_comment_line = line_number; + return; + } + if (!symbol) + { + free_token (op->token); + free (op->token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + /* Distinguish between "foo" and "foo#bar". */ + c = do_getc (); + if (c == '#') + { + struct token second_token; + + free_token (op->token); + free (op->token); + read_token (&second_token, NULL); + free_token (&second_token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + else + { + if (c != EOF) + do_ungetc (c); + op->type = t_symbol; + last_non_comment_line = line_number; + return; + } + } + } } } void extract_librep (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; @@ -1120,7 +1119,7 @@ read_object (&toplevel_object, null_context); if (toplevel_object.type == t_eof) - break; + break; free_object (&toplevel_object); } diff -Nru gettext-0.17/gettext-tools/src/x-librep.h gettext-0.18.1.1/gettext-tools/src/x-librep.h --- gettext-0.17/gettext-tools/src/x-librep.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-librep.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_LIBREP \ - { "jl", "librep" }, \ + { "jl", "librep" }, \ #define SCANNERS_LIBREP \ - { "librep", extract_librep, \ - &flag_table_librep, &formatstring_librep, NULL }, \ + { "librep", extract_librep, \ + &flag_table_librep, &formatstring_librep, NULL }, \ /* Scan a librep file and add its translatable strings to mdlp. */ extern void extract_librep (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-lisp.c gettext-0.18.1.1/gettext-tools/src/x-lisp.c --- gettext-0.17/gettext-tools/src/x-lisp.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-lisp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Lisp backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2001. @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-lisp.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -133,29 +132,29 @@ size_t i; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Lisp symbol. - Extract the symbol name part. */ + Extract the symbol name part. */ colon = strchr (name, ':'); if (colon != NULL && colon < end) - { - name = colon + 1; - if (name < end && *name == ':') - name++; - colon = strchr (name, ':'); - if (colon != NULL && colon < end) - return; - } + { + name = colon + 1; + if (name < end && *name == ':') + name++; + colon = strchr (name, ':'); + if (colon != NULL && colon < end) + return; + } /* Uppercase it. */ len = end - name; symname = XNMALLOC (len, char); for (i = 0; i < len; i++) - symname[i] = - (name[i] >= 'a' && name[i] <= 'z' ? name[i] - 'a' + 'A' : name[i]); + symname[i] = + (name[i] >= 'a' && name[i] <= 'z' ? name[i] - 'a' + 'A' : name[i]); insert_keyword_callshape (&keywords, symname, len, &shape); } @@ -169,9 +168,9 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ - x_lisp_keyword ("gettext"); /* I18N:GETTEXT */ - x_lisp_keyword ("ngettext:1,2"); /* I18N:NGETTEXT */ + xgettext.texi! */ + x_lisp_keyword ("gettext"); /* I18N:GETTEXT */ + x_lisp_keyword ("ngettext:1,2"); /* I18N:NGETTEXT */ x_lisp_keyword ("gettext-noop"); default_keywords = false; } @@ -210,7 +209,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -236,14 +235,14 @@ enum syntax_code { - syntax_illegal, /* non-printable, except whitespace */ - syntax_single_esc, /* '\' (single escape) */ - syntax_multi_esc, /* '|' (multiple escape) */ - syntax_constituent, /* everything else (constituent) */ - syntax_whitespace, /* TAB,LF,FF,CR,' ' (whitespace) */ - syntax_eof, /* EOF */ - syntax_t_macro, /* '()'"' (terminating macro) */ - syntax_nt_macro /* '#' (non-terminating macro) */ + syntax_illegal, /* non-printable, except whitespace */ + syntax_single_esc, /* '\' (single escape) */ + syntax_multi_esc, /* '|' (multiple escape) */ + syntax_constituent, /* everything else (constituent) */ + syntax_whitespace, /* TAB,LF,FF,CR,' ' (whitespace) */ + syntax_eof, /* EOF */ + syntax_t_macro, /* '()'"' (terminating macro) */ + syntax_nt_macro /* '#' (non-terminating macro) */ }; /* Returns the syntax code of a character. */ @@ -264,16 +263,16 @@ return syntax_nt_macro; default: if (c < ' ' && c != '\b') - return syntax_illegal; + return syntax_illegal; else - return syntax_constituent; + return syntax_constituent; } } struct char_syntax { - int ch; /* character */ - enum syntax_code scode; /* syntax code */ + int ch; /* character */ + enum syntax_code scode; /* syntax code */ }; /* Returns the next character and its syntax code. */ @@ -293,19 +292,19 @@ enum attribute { - a_illg, /* invalid constituent */ - a_pack_m, /* ':' package marker */ - a_alpha, /* normal alphabetic */ - a_escaped, /* alphabetic but not subject to case conversion */ - a_ratio, /* '/' */ - a_dot, /* '.' */ - a_sign, /* '+-' */ - a_extens, /* '_^' extension characters */ - a_digit, /* '0123456789' */ + a_illg, /* invalid constituent */ + a_pack_m, /* ':' package marker */ + a_alpha, /* normal alphabetic */ + a_escaped, /* alphabetic but not subject to case conversion */ + a_ratio, /* '/' */ + a_dot, /* '.' */ + a_sign, /* '+-' */ + a_extens, /* '_^' extension characters */ + a_digit, /* '0123456789' */ a_letterdigit,/* 'A'-'Z','a'-'z' below base, except 'esfdlESFDL' */ - a_expodigit, /* 'esfdlESFDL' below base */ - a_letter, /* 'A'-'Z','a'-'z', except 'esfdlESFDL' */ - a_expo /* 'esfdlESFDL' */ + a_expodigit, /* 'esfdlESFDL' below base */ + a_letter, /* 'A'-'Z','a'-'z', except 'esfdlESFDL' */ + a_expo /* 'esfdlESFDL' */ }; #define is_letter_attribute(a) ((a) >= a_letter) @@ -348,17 +347,17 @@ struct token_char { - unsigned char ch; /* character */ - unsigned char attribute; /* attribute */ + unsigned char ch; /* character */ + unsigned char attribute; /* attribute */ }; /* A token consists of a sequence of characters with associated attribute. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - struct token_char *chars; /* the token's constituents */ - bool with_escape; /* whether single-escape or multiple escape occurs */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + struct token_char *chars; /* the token's constituents */ + bool with_escape; /* whether single-escape or multiple escape occurs */ }; /* Initialize a 'struct token'. */ @@ -409,69 +408,69 @@ for (;; read_char_syntax (&curr)) { switch (curr.scode) - { - case syntax_illegal: - /* Invalid input. Be tolerant, no error message. */ - do_ungetc (curr.ch); - return; - - case syntax_single_esc: - tp->with_escape = true; - read_char_syntax (&curr); - if (curr.scode == syntax_eof) - /* Invalid input. Be tolerant, no error message. */ - return; - grow_token (tp); - tp->chars[tp->charcount].ch = curr.ch; - tp->chars[tp->charcount].attribute = a_escaped; - tp->charcount++; - break; - - case syntax_multi_esc: - multiple_escape_flag = !multiple_escape_flag; - tp->with_escape = true; - break; - - case syntax_constituent: - case syntax_nt_macro: - grow_token (tp); - if (multiple_escape_flag) - { - tp->chars[tp->charcount].ch = curr.ch; - tp->chars[tp->charcount].attribute = a_escaped; - tp->charcount++; - } - else - { - tp->chars[tp->charcount].ch = curr.ch; - tp->chars[tp->charcount].attribute = attribute_of (curr.ch); - tp->charcount++; - } - break; - - case syntax_whitespace: - case syntax_t_macro: - if (multiple_escape_flag) - { - grow_token (tp); - tp->chars[tp->charcount].ch = curr.ch; - tp->chars[tp->charcount].attribute = a_escaped; - tp->charcount++; - } - else - { - if (curr.scode != syntax_whitespace || read_preserve_whitespace) - do_ungetc (curr.ch); - return; - } - break; - - case syntax_eof: - if (multiple_escape_flag) - /* Invalid input. Be tolerant, no error message. */ - ; - return; - } + { + case syntax_illegal: + /* Invalid input. Be tolerant, no error message. */ + do_ungetc (curr.ch); + return; + + case syntax_single_esc: + tp->with_escape = true; + read_char_syntax (&curr); + if (curr.scode == syntax_eof) + /* Invalid input. Be tolerant, no error message. */ + return; + grow_token (tp); + tp->chars[tp->charcount].ch = curr.ch; + tp->chars[tp->charcount].attribute = a_escaped; + tp->charcount++; + break; + + case syntax_multi_esc: + multiple_escape_flag = !multiple_escape_flag; + tp->with_escape = true; + break; + + case syntax_constituent: + case syntax_nt_macro: + grow_token (tp); + if (multiple_escape_flag) + { + tp->chars[tp->charcount].ch = curr.ch; + tp->chars[tp->charcount].attribute = a_escaped; + tp->charcount++; + } + else + { + tp->chars[tp->charcount].ch = curr.ch; + tp->chars[tp->charcount].attribute = attribute_of (curr.ch); + tp->charcount++; + } + break; + + case syntax_whitespace: + case syntax_t_macro: + if (multiple_escape_flag) + { + grow_token (tp); + tp->chars[tp->charcount].ch = curr.ch; + tp->chars[tp->charcount].attribute = a_escaped; + tp->charcount++; + } + else + { + if (curr.scode != syntax_whitespace || read_preserve_whitespace) + do_ungetc (curr.ch); + return; + } + break; + + case syntax_eof: + if (multiple_escape_flag) + /* Invalid input. Be tolerant, no error message. */ + ; + return; + } } } @@ -519,13 +518,13 @@ for (i = 0; i < n; i++) if (is_letter_attribute (tp->chars[i].attribute)) { - int c = tp->chars[i].ch; + int c = tp->chars[i].ch; - if (c >= 'a') - c -= 'a' - 'A'; - if (c - 'A' + 10 < base) - tp->chars[i].attribute -= 2; /* a_letter -> a_letterdigit, - a_expo -> a_expodigit */ + if (c >= 'a') + c -= 'a' - 'A'; + if (c - 'A' + 10 < base) + tp->chars[i].attribute -= 2; /* a_letter -> a_letterdigit, + a_expo -> a_expodigit */ } } @@ -537,8 +536,8 @@ for (i = 0; i < n; i++) if (tp->chars[i].attribute == a_digit - || tp->chars[i].attribute == a_letterdigit - || tp->chars[i].attribute == a_expodigit) + || tp->chars[i].attribute == a_letterdigit + || tp->chars[i].attribute == a_expodigit) return true; return false; } @@ -551,7 +550,7 @@ for (i = 1; i < n; i++) if (is_letter_attribute (tp->chars[i-1].attribute) - && is_letter_attribute (tp->chars[i].attribute)) + && is_letter_attribute (tp->chars[i].attribute)) return true; return false; } @@ -579,7 +578,7 @@ return false; if (!(tp->chars[0].attribute >= a_dot - && tp->chars[0].attribute <= a_expodigit)) + && tp->chars[0].attribute <= a_expodigit)) return false; if (tp->chars[tp->charcount - 1].attribute == a_sign) @@ -628,40 +627,40 @@ */ { bool seen_a_ratio = false; - bool seen_a_digit = false; /* seen a digit in last digit block? */ + bool seen_a_digit = false; /* seen a digit in last digit block? */ struct token_char *ptr; for (ptr = ptr1;; ptr++) { - if (ptr >= ptr_limit) - { - if (!seen_a_digit) - break; - if (seen_a_ratio) - return n_ratio; - else - return n_integer; - } - if (ptr->attribute == a_digit - || ptr->attribute == a_letterdigit - || ptr->attribute == a_expodigit) - { - int c = ptr->ch; - - c = (c < 'A' ? c - '0' : c < 'a' ? c - 'A' + 10 : c - 'a' + 10); - if (c >= *basep) - break; - seen_a_digit = true; - } - else if (ptr->attribute == a_ratio) - { - if (seen_a_ratio || !seen_a_digit) - break; - seen_a_ratio = true; - seen_a_digit = false; - } - else - break; + if (ptr >= ptr_limit) + { + if (!seen_a_digit) + break; + if (seen_a_ratio) + return n_ratio; + else + return n_integer; + } + if (ptr->attribute == a_digit + || ptr->attribute == a_letterdigit + || ptr->attribute == a_expodigit) + { + int c = ptr->ch; + + c = (c < 'A' ? c - '0' : c < 'a' ? c - 'A' + 10 : c - 'a' + 10); + if (c >= *basep) + break; + seen_a_digit = true; + } + else if (ptr->attribute == a_ratio) + { + if (seen_a_ratio || !seen_a_digit) + break; + seen_a_ratio = true; + seen_a_digit = false; + } + else + break; } } @@ -683,40 +682,40 @@ { bool seen_a_dot = false; bool seen_a_dot_with_leading_digits = false; - bool seen_a_digit = false; /* seen a digit in last digit block? */ + bool seen_a_digit = false; /* seen a digit in last digit block? */ struct token_char *ptr; for (ptr = ptr1;; ptr++) { - if (ptr >= ptr_limit) - { - /* no exponent */ - if (!seen_a_dot) - return n_none; - if (seen_a_digit) - return n_float; - if (seen_a_dot_with_leading_digits) - return n_integer; - else - return n_none; - } - if (ptr->attribute == a_digit) - { - seen_a_digit = true; - } - else if (ptr->attribute == a_dot) - { - if (seen_a_dot) - return n_none; - seen_a_dot = true; - if (seen_a_digit) - seen_a_dot_with_leading_digits = true; - seen_a_digit = false; - } - else if (ptr->attribute == a_expo || ptr->attribute == a_expodigit) - break; - else - return n_none; + if (ptr >= ptr_limit) + { + /* no exponent */ + if (!seen_a_dot) + return n_none; + if (seen_a_digit) + return n_float; + if (seen_a_dot_with_leading_digits) + return n_integer; + else + return n_none; + } + if (ptr->attribute == a_digit) + { + seen_a_digit = true; + } + else if (ptr->attribute == a_dot) + { + if (seen_a_dot) + return n_none; + seen_a_dot = true; + if (seen_a_digit) + seen_a_dot_with_leading_digits = true; + seen_a_digit = false; + } + else if (ptr->attribute == a_expo || ptr->attribute == a_expodigit) + break; + else + return n_none; } ptr++; if (!seen_a_dot_with_leading_digits || !seen_a_digit) @@ -728,11 +727,11 @@ seen_a_digit = false; for (;; ptr++) { - if (ptr >= ptr_limit) - break; - if (ptr->attribute != a_digit) - return n_none; - seen_a_digit = true; + if (ptr >= ptr_limit) + break; + if (ptr->attribute != a_digit) + return n_none; + seen_a_digit = true; } if (!seen_a_digit) return n_none; @@ -752,9 +751,9 @@ for (i = 0; i < n; i++) if (tp->chars[i].attribute != a_escaped) { - unsigned char c = tp->chars[i].ch; - if (c >= 'a' && c <= 'z') - tp->chars[i].ch = c - 'a' + 'A'; + unsigned char c = tp->chars[i].ch; + if (c >= 'a' && c <= 'z') + tp->chars[i].ch = c - 'a' + 'A'; } } @@ -767,9 +766,9 @@ for (i = 0; i < n; i++) if (tp->chars[i].attribute != a_escaped) { - unsigned char c = tp->chars[i].ch; - if (c >= 'A' && c <= 'Z') - tp->chars[i].ch = c - 'A' + 'a'; + unsigned char c = tp->chars[i].ch; + if (c >= 'A' && c <= 'Z') + tp->chars[i].ch = c - 'A' + 'a'; } } @@ -794,27 +793,27 @@ case case_invert: { - bool seen_uppercase = false; - bool seen_lowercase = false; - for (i = 0; i < n; i++) - if (tp->chars[i].attribute != a_escaped) - { - unsigned char c = tp->chars[i].ch; - if (c >= 'a' && c <= 'z') - seen_lowercase = true; - if (c >= 'A' && c <= 'Z') - seen_uppercase = true; - } - if (seen_uppercase) - { - if (!seen_lowercase) - downcase_token (tp); - } - else - { - if (seen_lowercase) - upcase_token (tp); - } + bool seen_uppercase = false; + bool seen_lowercase = false; + for (i = 0; i < n; i++) + if (tp->chars[i].attribute != a_escaped) + { + unsigned char c = tp->chars[i].ch; + if (c >= 'a' && c <= 'z') + seen_lowercase = true; + if (c >= 'A' && c <= 'Z') + seen_uppercase = true; + } + if (seen_uppercase) + { + if (!seen_lowercase) + downcase_token (tp); + } + else + { + if (seen_lowercase) + upcase_token (tp); + } } break; } @@ -850,7 +849,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -881,19 +880,19 @@ Other objects need not to be represented precisely. */ enum object_type { - t_symbol, /* symbol */ - t_string, /* string */ - t_other, /* other kind of real object */ - t_dot, /* '.' pseudo object */ - t_close, /* ')' pseudo object */ - t_eof /* EOF marker */ + t_symbol, /* symbol */ + t_string, /* string */ + t_other, /* other kind of real object */ + t_dot, /* '.' pseudo object */ + t_close, /* ')' pseudo object */ + t_eof /* EOF marker */ }; struct object { enum object_type type; - struct token *token; /* for t_symbol and t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_symbol and t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct object'. */ @@ -941,452 +940,453 @@ read_char_syntax (&curr); switch (curr.scode) - { - case syntax_eof: - op->type = t_eof; - return; - - case syntax_whitespace: - if (curr.ch == '\n') - /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between - both. */ - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - continue; - - case syntax_illegal: - op->type = t_other; - return; - - case syntax_single_esc: - case syntax_multi_esc: - case syntax_constituent: - /* Start reading a token. */ - op->token = XMALLOC (struct token); - read_token (op->token, &curr); - last_non_comment_line = line_number; - - /* Interpret the token. */ - - /* Dots. */ - if (!op->token->with_escape - && op->token->charcount == 1 - && op->token->chars[0].attribute == a_dot) - { - free_token (op->token); - free (op->token); - op->type = t_dot; - return; - } - /* Tokens consisting entirely of dots are illegal, but be tolerant - here. */ - - /* Number. */ - { - int base = read_base; - - if (is_number (op->token, &base) != n_none) - { - free_token (op->token); - free (op->token); - op->type = t_other; - return; - } - } - - /* We interpret all other tokens as symbols (including 'reserved - tokens', i.e. potential numbers which are not numbers). */ - case_convert_token (op->token); - op->type = t_symbol; - return; - - case syntax_t_macro: - case syntax_nt_macro: - /* Read a macro. */ - switch (curr.ch) - { - case '(': - { - int arg = 0; /* Current argument number. */ - flag_context_list_iterator_ty context_iter; - const struct callshapes *shapes = NULL; - struct arglist_parser *argparser = NULL; - - for (;; arg++) - { - struct object inner; - flag_context_ty inner_context; - - if (arg == 0) - inner_context = null_context; - else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - - read_object (&inner, inner_context); - - /* Recognize end of list. */ - if (inner.type == t_close) - { - op->type = t_other; - /* Don't bother converting "()" to "NIL". */ - last_non_comment_line = line_number; - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return; - } - - /* Dots are not allowed in every position. - But be tolerant. */ - - /* EOF inside list is illegal. - But be tolerant. */ - if (inner.type == t_eof) - break; - - if (arg == 0) - { - /* This is the function position. */ - if (inner.type == t_symbol) - { - char *symbol_name = string_of_object (&inner); - int i; - int prefix_len; - void *keyword_value; - - /* Omit any package name. */ - i = inner.token->charcount; - while (i > 0 - && inner.token->chars[i-1].attribute != a_pack_m) - i--; - prefix_len = i; - - if (hash_find_entry (&keywords, - symbol_name + prefix_len, - strlen (symbol_name + prefix_len), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - symbol_name, strlen (symbol_name))); - - free (symbol_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (argparser != NULL && inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_object (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - } - - free_object (&inner); - } - - if (argparser != NULL) - arglist_parser_done (argparser, arg); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case ')': - /* Tell the caller about the end of list. - Unmatched closing parenthesis is illegal. - But be tolerant. */ - op->type = t_close; - last_non_comment_line = line_number; - return; - - case ',': - { - int c = do_getc (); - /* The ,@ handling inside lists is wrong anyway, because - ,@form expands to an unknown number of elements. */ - if (c != EOF && c != '@' && c != '.') - do_ungetc (c); - } - /*FALLTHROUGH*/ - case '\'': - case '`': - { - struct object inner; - - read_object (&inner, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case ';': - { - bool all_semicolons = true; - - last_comment_line = line_number; - comment_start (); - for (;;) - { - int c = do_getc (); - if (c == EOF || c == '\n') - break; - if (c != ';') - all_semicolons = false; - if (!all_semicolons) - { - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - } - comment_line_end (0); - continue; - } - - case '"': - { - op->token = XMALLOC (struct token); - init_token (op->token); - op->line_number_at_start = line_number; - for (;;) - { - int c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == '"') - break; - if (c == '\\') /* syntax_single_esc */ - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - } - grow_token (op->token); - op->token->chars[op->token->charcount++].ch = c; - } - op->type = t_string; - - if (extract_all) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = op->line_number_at_start; - remember_a_message (mlp, NULL, string_of_object (op), - null_context, &pos, savable_comment); - } - last_non_comment_line = line_number; - return; - } - - case '#': - /* Dispatch macro handling. */ - { - int c; - - for (;;) - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - return; - } - if (!(c >= '0' && c <= '9')) - break; - } - - switch (c) - { - case '(': - case '"': - do_ungetc (c); - /*FALLTHROUGH*/ - case '\'': - case ':': - case '.': - case ',': - case 'A': case 'a': - case 'C': case 'c': - case 'P': case 'p': - case 'S': case 's': - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '|': - { - int depth = 0; - int c; - - comment_start (); - c = do_getc (); - for (;;) - { - if (c == EOF) - break; - if (c == '|') - { - c = do_getc (); - if (c == EOF) - break; - if (c == '#') - { - if (depth == 0) - { - comment_line_end (0); - break; - } - depth--; - comment_add ('|'); - comment_add ('#'); - c = do_getc (); - } - else - comment_add ('|'); - } - else if (c == '#') - { - c = do_getc (); - if (c == EOF) - break; - comment_add ('#'); - if (c == '|') - { - depth++; - comment_add ('|'); - c = do_getc (); - } - } - else - { - /* We skip all leading white space. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - if (c == '\n') - { - comment_line_end (1); - comment_start (); - } - c = do_getc (); - } - } - if (c == EOF) - { - /* EOF not allowed here. But be tolerant. */ - op->type = t_eof; - return; - } - last_comment_line = line_number; - continue; - } - - case '\\': - { - struct token token; - struct char_syntax first; - first.ch = '\\'; - first.scode = syntax_single_esc; - read_token (&token, &first); - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case 'B': case 'b': - case 'O': case 'o': - case 'X': case 'x': - case 'R': case 'r': - case '*': - { - struct token token; - read_token (&token, NULL); - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '=': - /* Ignore read labels. */ - continue; - - case '#': - /* Don't bother looking up the corresponding object. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - - case '+': - case '-': - /* Simply assume every feature expression is true. */ - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - continue; - } - - default: - op->type = t_other; - last_non_comment_line = line_number; - return; - } - /*NOTREACHED*/ - abort (); - } - - default: - /*NOTREACHED*/ - abort (); - } - - default: - /*NOTREACHED*/ - abort (); - } + { + case syntax_eof: + op->type = t_eof; + return; + + case syntax_whitespace: + if (curr.ch == '\n') + /* Comments assumed to be grouped with a message must immediately + precede it, with no non-whitespace token on a line between + both. */ + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + continue; + + case syntax_illegal: + op->type = t_other; + return; + + case syntax_single_esc: + case syntax_multi_esc: + case syntax_constituent: + /* Start reading a token. */ + op->token = XMALLOC (struct token); + read_token (op->token, &curr); + last_non_comment_line = line_number; + + /* Interpret the token. */ + + /* Dots. */ + if (!op->token->with_escape + && op->token->charcount == 1 + && op->token->chars[0].attribute == a_dot) + { + free_token (op->token); + free (op->token); + op->type = t_dot; + return; + } + /* Tokens consisting entirely of dots are illegal, but be tolerant + here. */ + + /* Number. */ + { + int base = read_base; + + if (is_number (op->token, &base) != n_none) + { + free_token (op->token); + free (op->token); + op->type = t_other; + return; + } + } + + /* We interpret all other tokens as symbols (including 'reserved + tokens', i.e. potential numbers which are not numbers). */ + case_convert_token (op->token); + op->type = t_symbol; + return; + + case syntax_t_macro: + case syntax_nt_macro: + /* Read a macro. */ + switch (curr.ch) + { + case '(': + { + int arg = 0; /* Current argument number. */ + flag_context_list_iterator_ty context_iter; + const struct callshapes *shapes = NULL; + struct arglist_parser *argparser = NULL; + + for (;; arg++) + { + struct object inner; + flag_context_ty inner_context; + + if (arg == 0) + inner_context = null_context; + else + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + + read_object (&inner, inner_context); + + /* Recognize end of list. */ + if (inner.type == t_close) + { + op->type = t_other; + /* Don't bother converting "()" to "NIL". */ + last_non_comment_line = line_number; + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return; + } + + /* Dots are not allowed in every position. + But be tolerant. */ + + /* EOF inside list is illegal. + But be tolerant. */ + if (inner.type == t_eof) + break; + + if (arg == 0) + { + /* This is the function position. */ + if (inner.type == t_symbol) + { + char *symbol_name = string_of_object (&inner); + int i; + int prefix_len; + void *keyword_value; + + /* Omit any package name. */ + i = inner.token->charcount; + while (i > 0 + && inner.token->chars[i-1].attribute != a_pack_m) + i--; + prefix_len = i; + + if (hash_find_entry (&keywords, + symbol_name + prefix_len, + strlen (symbol_name + prefix_len), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + symbol_name, strlen (symbol_name))); + + free (symbol_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (argparser != NULL && inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_object (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + } + + free_object (&inner); + } + + if (argparser != NULL) + arglist_parser_done (argparser, arg); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case ')': + /* Tell the caller about the end of list. + Unmatched closing parenthesis is illegal. + But be tolerant. */ + op->type = t_close; + last_non_comment_line = line_number; + return; + + case ',': + { + int c = do_getc (); + /* The ,@ handling inside lists is wrong anyway, because + ,@form expands to an unknown number of elements. */ + if (c != EOF && c != '@' && c != '.') + do_ungetc (c); + } + /*FALLTHROUGH*/ + case '\'': + case '`': + { + struct object inner; + + read_object (&inner, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case ';': + { + bool all_semicolons = true; + + last_comment_line = line_number; + comment_start (); + for (;;) + { + int c = do_getc (); + if (c == EOF || c == '\n') + break; + if (c != ';') + all_semicolons = false; + if (!all_semicolons) + { + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + } + comment_line_end (0); + continue; + } + + case '"': + { + op->token = XMALLOC (struct token); + init_token (op->token); + op->line_number_at_start = line_number; + for (;;) + { + int c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == '"') + break; + if (c == '\\') /* syntax_single_esc */ + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + } + grow_token (op->token); + op->token->chars[op->token->charcount++].ch = c; + } + op->type = t_string; + + if (extract_all) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = op->line_number_at_start; + remember_a_message (mlp, NULL, string_of_object (op), + null_context, &pos, + NULL, savable_comment); + } + last_non_comment_line = line_number; + return; + } + + case '#': + /* Dispatch macro handling. */ + { + int c; + + for (;;) + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + return; + } + if (!(c >= '0' && c <= '9')) + break; + } + + switch (c) + { + case '(': + case '"': + do_ungetc (c); + /*FALLTHROUGH*/ + case '\'': + case ':': + case '.': + case ',': + case 'A': case 'a': + case 'C': case 'c': + case 'P': case 'p': + case 'S': case 's': + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '|': + { + int depth = 0; + int c; + + comment_start (); + c = do_getc (); + for (;;) + { + if (c == EOF) + break; + if (c == '|') + { + c = do_getc (); + if (c == EOF) + break; + if (c == '#') + { + if (depth == 0) + { + comment_line_end (0); + break; + } + depth--; + comment_add ('|'); + comment_add ('#'); + c = do_getc (); + } + else + comment_add ('|'); + } + else if (c == '#') + { + c = do_getc (); + if (c == EOF) + break; + comment_add ('#'); + if (c == '|') + { + depth++; + comment_add ('|'); + c = do_getc (); + } + } + else + { + /* We skip all leading white space. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + if (c == '\n') + { + comment_line_end (1); + comment_start (); + } + c = do_getc (); + } + } + if (c == EOF) + { + /* EOF not allowed here. But be tolerant. */ + op->type = t_eof; + return; + } + last_comment_line = line_number; + continue; + } + + case '\\': + { + struct token token; + struct char_syntax first; + first.ch = '\\'; + first.scode = syntax_single_esc; + read_token (&token, &first); + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case 'B': case 'b': + case 'O': case 'o': + case 'X': case 'x': + case 'R': case 'r': + case '*': + { + struct token token; + read_token (&token, NULL); + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '=': + /* Ignore read labels. */ + continue; + + case '#': + /* Don't bother looking up the corresponding object. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + + case '+': + case '-': + /* Simply assume every feature expression is true. */ + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + continue; + } + + default: + op->type = t_other; + last_non_comment_line = line_number; + return; + } + /*NOTREACHED*/ + abort (); + } + + default: + /*NOTREACHED*/ + abort (); + } + + default: + /*NOTREACHED*/ + abort (); + } } } void extract_lisp (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; @@ -1411,7 +1411,7 @@ read_object (&toplevel_object, null_context); if (toplevel_object.type == t_eof) - break; + break; free_object (&toplevel_object); } diff -Nru gettext-0.17/gettext-tools/src/x-lisp.h gettext-0.18.1.1/gettext-tools/src/x-lisp.h --- gettext-0.17/gettext-tools/src/x-lisp.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-lisp.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_LISP \ - { "lisp", "Lisp" }, \ + { "lisp", "Lisp" }, \ #define SCANNERS_LISP \ - { "Lisp", extract_lisp, \ - &flag_table_lisp, &formatstring_lisp, NULL }, \ + { "Lisp", extract_lisp, \ + &flag_table_lisp, &formatstring_lisp, NULL }, \ /* Scan a Lisp file and add its translatable strings to mdlp. */ extern void extract_lisp (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-perl.c gettext-0.18.1.1/gettext-tools/src/x-perl.c --- gettext-0.17/gettext-tools/src/x-perl.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-perl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,7 +1,7 @@ /* xgettext Perl backend. - Copyright (C) 2002-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2010 Free Software Foundation, Inc. - This file was written by Guido Flohr , 2002-2003. + This file was written by Guido Flohr , 2002-2010. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-perl.h" #include "error.h" #include "error-progname.h" #include "xalloc.h" @@ -80,15 +79,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -100,7 +99,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_perl_keyword ("gettext"); x_perl_keyword ("%gettext"); x_perl_keyword ("$gettext"); @@ -200,7 +199,7 @@ static size_t linebuf_size; /* Number of lines eaten for here documents. */ -static int here_eaten; +static int eaten_here; /* Paranoia: EOF marker for __END__ or __DATA__. */ static bool end_of_file; @@ -212,8 +211,8 @@ static int phase1_getc () { - line_number += here_eaten; - here_eaten = 0; + line_number += eaten_here; + eaten_here = 0; if (end_of_file) return EOF; @@ -223,29 +222,29 @@ linesize = getline (&linebuf, &linebuf_size, fp); if (linesize < 0) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); - end_of_file = true; - return EOF; - } + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); + end_of_file = true; + return EOF; + } linepos = 0; ++line_number; /* Undosify. This is important for catching the end of <= 2 && linebuf[linesize - 1] == '\n' - && linebuf[linesize - 2] == '\r') - { - linebuf[linesize - 2] = '\n'; - linebuf[linesize - 1] = '\0'; - --linesize; - } + && linebuf[linesize - 2] == '\r') + { + linebuf[linesize - 2] = '\n'; + linebuf[linesize - 1] = '\0'; + --linesize; + } } return linebuf[linepos++]; @@ -258,9 +257,9 @@ if (c != EOF) { if (linepos == 0) - /* Attempt to ungetc across line boundary. Shouldn't happen. - No two phase1_ungetc calls are permitted in a row. */ - abort (); + /* Attempt to ungetc across line boundary. Shouldn't happen. + No two phase1_ungetc calls are permitted in a row. */ + abort (); --linepos; } @@ -297,78 +296,78 @@ bool chomp; if (read_bytes < 0) - { - if (ferror (fp)) - { - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); - } - else - { - error_with_progname = false; - error (EXIT_SUCCESS, 0, _("\ + { + if (ferror (fp)) + { + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); + } + else + { + error_with_progname = false; + error (EXIT_SUCCESS, 0, _("\ %s:%d: can't find string terminator \"%s\" anywhere before EOF"), - real_file_name, line_number, delimiter); - error_with_progname = true; + real_file_name, line_number, delimiter); + error_with_progname = true; - break; - } - } + break; + } + } - ++here_eaten; + ++eaten_here; /* Convert to UTF-8. */ my_line_utf8 = - from_current_source_encoding (my_linebuf, logical_file_name, - line_number + here_eaten); + from_current_source_encoding (my_linebuf, lc_string, logical_file_name, + line_number + eaten_here); if (my_line_utf8 != my_linebuf) - { - if (strlen (my_line_utf8) >= my_linebuf_size) - { - my_linebuf_size = strlen (my_line_utf8) + 1; - my_linebuf = xrealloc (my_linebuf, my_linebuf_size); - } - strcpy (my_linebuf, my_line_utf8); - free (my_line_utf8); - } + { + if (strlen (my_line_utf8) >= my_linebuf_size) + { + my_linebuf_size = strlen (my_line_utf8) + 1; + my_linebuf = xrealloc (my_linebuf, my_linebuf_size); + } + strcpy (my_linebuf, my_line_utf8); + free (my_line_utf8); + } /* Undosify. This is important for catching the end of <= 2 && my_linebuf[read_bytes - 1] == '\n' - && my_linebuf[read_bytes - 2] == '\r') - { - my_linebuf[read_bytes - 2] = '\n'; - my_linebuf[read_bytes - 1] = '\0'; - --read_bytes; - } + && my_linebuf[read_bytes - 2] == '\r') + { + my_linebuf[read_bytes - 2] = '\n'; + my_linebuf[read_bytes - 1] = '\0'; + --read_bytes; + } /* Temporarily remove the trailing newline from my_linebuf. */ chomp = false; if (read_bytes >= 1 && my_linebuf[read_bytes - 1] == '\n') - { - chomp = true; - my_linebuf[read_bytes - 1] = '\0'; - } + { + chomp = true; + my_linebuf[read_bytes - 1] = '\0'; + } /* See whether this line terminates the here document. */ if (strcmp (my_linebuf, delimiter) == 0) - break; + break; /* Add back the trailing newline to my_linebuf. */ if (chomp) - my_linebuf[read_bytes - 1] = '\n'; + my_linebuf[read_bytes - 1] = '\n'; /* Ensure room for read_bytes + 1 bytes. */ if (bufpos + read_bytes >= bufmax) - { - do - bufmax = 2 * bufmax + 10; - while (bufpos + read_bytes >= bufmax); - buffer = xrealloc (buffer, bufmax); - } + { + do + bufmax = 2 * bufmax + 10; + while (bufpos + read_bytes >= bufmax); + buffer = xrealloc (buffer, bufmax); + } /* Append this line to the accumulator. */ strcpy (buffer + bufpos, my_linebuf); bufpos += read_bytes; @@ -382,8 +381,8 @@ static void skip_pod () { - line_number += here_eaten; - here_eaten = 0; + line_number += eaten_here; + eaten_here = 0; linepos = 0; for (;;) @@ -391,21 +390,21 @@ linesize = getline (&linebuf, &linebuf_size, fp); if (linesize < 0) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); - return; - } + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); + return; + } ++line_number; if (strncmp ("=cut", linebuf, 4) == 0) - { - /* Force reading of a new line on next call to phase1_getc(). */ - linepos = linesize; - return; - } + { + /* Force reading of a new line on next call to phase1_getc(). */ + linepos = linesize; + return; + } } } @@ -437,38 +436,39 @@ lineno = line_number; /* Skip leading whitespace. */ for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - if (c != ' ' && c != '\t' && c != '\r' && c != '\f') - { - phase1_ungetc (c); - break; - } - } + { + c = phase1_getc (); + if (c == EOF) + break; + if (c != ' ' && c != '\t' && c != '\r' && c != '\f') + { + phase1_ungetc (c); + break; + } + } /* Accumulate the comment. */ for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - break; - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - } + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + break; + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + } if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[buflen] = '\0'; /* Convert it to UTF-8. */ utf8_string = - from_current_source_encoding (buffer, logical_file_name, lineno); + from_current_source_encoding (buffer, lc_comment, logical_file_name, + lineno); /* Save it until we encounter the corresponding string. */ savable_comment_add (utf8_string); last_comment_line = lineno; @@ -502,26 +502,29 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_fat_comma, /* => */ - token_type_dereference, /* , */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_fat_comma, /* => */ + token_type_dereference, /* -> */ token_type_semicolon, /* ; */ token_type_lbrace, /* { */ token_type_rbrace, /* } */ token_type_lbracket, /* [ */ token_type_rbracket, /* ] */ - token_type_string, /* quote-like */ + token_type_string, /* quote-like */ + token_type_number, /* starting with a digit o dot */ token_type_named_op, /* if, unless, while, ... */ token_type_variable, /* $... */ - token_type_symbol, /* symbol, number */ - token_type_regex_op, /* s, tr, y, m. */ + token_type_object, /* A dereferenced variable, maybe a blessed + object. */ + token_type_symbol, /* symbol, number */ + token_type_regex_op, /* s, tr, y, m. */ token_type_dot, /* . */ - token_type_other, /* regexp, misc. operator */ + token_type_other, /* regexp, misc. operator */ /* The following are not really token types, but variants used by the parser. */ - token_type_keyword_symbol /* keyword symbol */ + token_type_keyword_symbol /* keyword symbol */ }; typedef enum token_type_ty token_type_ty; @@ -529,10 +532,10 @@ enum string_type_ty { string_type_verbatim, /* "<<'EOF'", "m'...'", "s'...''...'", - "tr/.../.../", "y/.../.../". */ + "tr/.../.../", "y/.../.../". */ string_type_q, /* "'..'", "q/.../". */ string_type_qq, /* '"..."', "`...`", "qq/.../", "qx/.../", - "". */ + "". */ string_type_qr /* Not supported. */ }; @@ -548,13 +551,15 @@ struct token_ty { token_type_ty type; - int sub_type; /* for token_type_string, token_type_symbol */ - char *string; /* for: in encoding: - token_type_named_op ASCII - token_type_string UTF-8 - token_type_symbol ASCII - token_type_variable global_source_encoding - */ + token_type_ty last_type; + int sub_type; /* for token_type_string, token_type_symbol */ + char *string; /* for: in encoding: + token_type_named_op ASCII + token_type_string UTF-8 + token_type_symbol ASCII + token_type_variable global_source_encoding + token_type_object global_source_encoding + */ refcounted_string_list_ty *comment; /* for token_type_string */ int line_number; }; @@ -589,10 +594,14 @@ return "token_type_rbracket"; case token_type_string: return "token_type_string"; + case token_type_number: + return "token type number"; case token_type_named_op: return "token_type_named_op"; case token_type_variable: return "token_type_variable"; + case token_type_object: + return "token_type_object"; case token_type_symbol: return "token_type_symbol"; case token_type_regex_op: @@ -617,6 +626,7 @@ case token_type_string: case token_type_symbol: case token_type_variable: + case token_type_object: free (tp->string); break; default: @@ -672,61 +682,61 @@ /* This round can produce 1 or 2 bytes. Ensure room for 2 bytes. */ if (bufpos + 2 > bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } if (c == counter_delim || c == EOF) - { - buffer[bufpos++] = counter_delim; /* will be stripped off later */ - buffer[bufpos++] = '\0'; + { + buffer[bufpos++] = counter_delim; /* will be stripped off later */ + buffer[bufpos++] = '\0'; #if DEBUG_PERL - fprintf (stderr, "PASS1: %s\n", buffer); + fprintf (stderr, "PASS1: %s\n", buffer); #endif - return buffer; - } + return buffer; + } if (nested && c == delim) - { - char *inner = extract_quotelike_pass1 (delim); - size_t len = strlen (inner); - - /* Ensure room for len + 1 bytes. */ - if (bufpos + len >= bufmax) - { - do - bufmax = 2 * bufmax + 10; - while (bufpos + len >= bufmax); - buffer = xrealloc (buffer, bufmax); - } - strcpy (buffer + bufpos, inner); - free (inner); - bufpos += len; - } + { + char *inner = extract_quotelike_pass1 (delim); + size_t len = strlen (inner); + + /* Ensure room for len + 1 bytes. */ + if (bufpos + len >= bufmax) + { + do + bufmax = 2 * bufmax + 10; + while (bufpos + len >= bufmax); + buffer = xrealloc (buffer, bufmax); + } + strcpy (buffer + bufpos, inner); + free (inner); + bufpos += len; + } else if (c == '\\') - { - c = phase1_getc (); - if (c == '\\') - { - buffer[bufpos++] = '\\'; - buffer[bufpos++] = '\\'; - } - else if (c == delim || c == counter_delim) - { - /* This is pass2 in Perl. */ - buffer[bufpos++] = c; - } - else - { - buffer[bufpos++] = '\\'; - phase1_ungetc (c); - } - } + { + c = phase1_getc (); + if (c == '\\') + { + buffer[bufpos++] = '\\'; + buffer[bufpos++] = '\\'; + } + else if (c == delim || c == counter_delim) + { + /* This is pass2 in Perl. */ + buffer[bufpos++] = c; + } + else + { + buffer[bufpos++] = '\\'; + phase1_ungetc (c); + } + } else - { - buffer[bufpos++] = c; - } + { + buffer[bufpos++] = c; + } } } @@ -737,7 +747,8 @@ { char *string = extract_quotelike_pass1 (delim); char *utf8_string = - from_current_source_encoding (string, logical_file_name, line_number); + from_current_source_encoding (string, lc_string, logical_file_name, + line_number); if (utf8_string != string) free (string); return utf8_string; @@ -747,29 +758,21 @@ /* ========= Reading of tokens and commands. Extracting strings. ========= */ -/* There is an ambiguity about '/': It can start a division operator ('/' or - '/=') or it can start a regular expression. The distinction is important - because inside regular expressions, '#' loses its special meaning. - The distinction is possible depending on the parsing state: After a - variable or simple expression, it's a division operator; at the beginning - of an expression, it's a regexp. */ -static bool prefer_division_over_regexp; - /* Context lookup table. */ static flag_context_list_table_ty *flag_context_list_table; /* Forward declaration of local functions. */ static void interpolate_keywords (message_list_ty *mlp, const char *string, - int lineno); + int lineno); static token_ty *x_perl_lex (message_list_ty *mlp); static void x_perl_unlex (token_ty *tp); static bool extract_balanced (message_list_ty *mlp, - token_type_ty delim, bool eat_delim, - bool comma_delim, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - int arg, struct arglist_parser *argparser); + token_type_ty delim, bool eat_delim, + bool comma_delim, + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + int arg, struct arglist_parser *argparser); /* Extract an unsigned hexadecimal number from STRING, considering at @@ -788,13 +791,13 @@ int number; if (c >= 'A' && c <= 'F') - number = c - 'A' + 10; + number = c - 'A' + 10; else if (c >= 'a' && c <= 'f') - number = c - 'a' + 10; + number = c - 'a' + 10; else if (c >= '0' && c <= '9') - number = c - '0'; + number = c - '0'; else - break; + break; *result <<= 4; *result |= number; @@ -819,9 +822,9 @@ int number; if (c >= '0' && c <= '7') - number = c - '0'; + number = c - '0'; else - break; + break; *result <<= 3; *result |= number; @@ -855,7 +858,7 @@ Return the resulting token in *tp; tp->type == token_type_regex_op. */ static void extract_triple_quotelike (message_list_ty *mlp, token_ty *tp, int delim, - bool interpolate) + bool interpolate) { char *string; @@ -869,14 +872,14 @@ if (delim == '(' || delim == '<' || delim == '{' || delim == '[') { /* The delimiter for the second string can be different, e.g. - s{SEARCH}{REPLACE} or s{SEARCH}/REPLACE/. See "man perlrequick". */ + s{SEARCH}{REPLACE} or s{SEARCH}/REPLACE/. See "man perlrequick". */ delim = phase1_getc (); while (is_whitespace (delim)) - { - /* The hash-sign is not a valid delimiter after whitespace, ergo - use phase2_getc() and not phase1_getc() now. */ - delim = phase2_getc (); - } + { + /* The hash-sign is not a valid delimiter after whitespace, ergo + use phase2_getc() and not phase1_getc() now. */ + delim = phase2_getc (); + } } string = extract_quotelike_pass1_utf8 (delim); if (interpolate) @@ -934,327 +937,327 @@ bool backslashed; /* Ensure room for 7 bytes, 6 (multi-)bytes plus a leading backslash - if \Q modifier is present. */ + if \Q modifier is present. */ if (bufpos + 7 > bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } if (tp->sub_type == string_type_q) - { - switch (*crs) - { - case '\\': - if (crs[1] == '\\') - { - crs += 2; - buffer[bufpos++] = '\\'; - break; - } - /* FALLTHROUGH */ - default: - buffer[bufpos++] = *crs++; - break; - } - continue; - } + { + switch (*crs) + { + case '\\': + if (crs[1] == '\\') + { + crs += 2; + buffer[bufpos++] = '\\'; + break; + } + /* FALLTHROUGH */ + default: + buffer[bufpos++] = *crs++; + break; + } + continue; + } /* We only get here for double-quoted strings or regular expressions. - Unescape escape sequences. */ + Unescape escape sequences. */ if (*crs == '\\') - { - switch (crs[1]) - { - case 't': - crs += 2; - buffer[bufpos++] = '\t'; - continue; - case 'n': - crs += 2; - buffer[bufpos++] = '\n'; - continue; - case 'r': - crs += 2; - buffer[bufpos++] = '\r'; - continue; - case 'f': - crs += 2; - buffer[bufpos++] = '\f'; - continue; - case 'b': - crs += 2; - buffer[bufpos++] = '\b'; - continue; - case 'a': - crs += 2; - buffer[bufpos++] = '\a'; - continue; - case 'e': - crs += 2; - buffer[bufpos++] = 0x1b; - continue; - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - unsigned int oct_number; - int length; - - crs = extract_oct (crs + 1, 3, &oct_number); - - /* FIXME: If one of the variables UPPERCASE or LOWERCASE is - true, the character should be converted to its uppercase - resp. lowercase equivalent. I don't know if the necessary - facilities are already included in gettext. For US-Ascii - the conversion can be already be done, however. */ - if (uppercase && oct_number >= 'a' && oct_number <= 'z') - { - oct_number = oct_number - 'a' + 'A'; - } - else if (lowercase && oct_number >= 'A' && oct_number <= 'Z') - { - oct_number = oct_number - 'A' + 'a'; - } - - - /* Yes, octal escape sequences in the range 0x100..0x1ff are - valid. */ - length = u8_uctomb ((unsigned char *) (buffer + bufpos), - oct_number, 2); - if (length > 0) - bufpos += length; - } - continue; - case 'x': - { - unsigned int hex_number = 0; - int length; - - crs += 2; - if (*crs == '{') - { - const char *end = strchr (crs, '}'); - if (end == NULL) - { - error_with_progname = false; - error (error_level, 0, _("\ + { + switch (crs[1]) + { + case 't': + crs += 2; + buffer[bufpos++] = '\t'; + continue; + case 'n': + crs += 2; + buffer[bufpos++] = '\n'; + continue; + case 'r': + crs += 2; + buffer[bufpos++] = '\r'; + continue; + case 'f': + crs += 2; + buffer[bufpos++] = '\f'; + continue; + case 'b': + crs += 2; + buffer[bufpos++] = '\b'; + continue; + case 'a': + crs += 2; + buffer[bufpos++] = '\a'; + continue; + case 'e': + crs += 2; + buffer[bufpos++] = 0x1b; + continue; + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + unsigned int oct_number; + int length; + + crs = extract_oct (crs + 1, 3, &oct_number); + + /* FIXME: If one of the variables UPPERCASE or LOWERCASE is + true, the character should be converted to its uppercase + resp. lowercase equivalent. I don't know if the necessary + facilities are already included in gettext. For US-Ascii + the conversion can be already be done, however. */ + if (uppercase && oct_number >= 'a' && oct_number <= 'z') + { + oct_number = oct_number - 'a' + 'A'; + } + else if (lowercase && oct_number >= 'A' && oct_number <= 'Z') + { + oct_number = oct_number - 'A' + 'a'; + } + + + /* Yes, octal escape sequences in the range 0x100..0x1ff are + valid. */ + length = u8_uctomb ((unsigned char *) (buffer + bufpos), + oct_number, 2); + if (length > 0) + bufpos += length; + } + continue; + case 'x': + { + unsigned int hex_number = 0; + int length; + + crs += 2; + if (*crs == '{') + { + const char *end = strchr (crs, '}'); + if (end == NULL) + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: missing right brace on \\x{HEXNUMBER}"), real_file_name, line_number); - error_with_progname = true; - ++crs; - continue; - } - else - { - ++crs; - (void) extract_hex (crs, end - crs, &hex_number); - crs = end + 1; - } - } - else - { - crs = extract_hex (crs, 2, &hex_number); - } - - /* FIXME: If one of the variables UPPERCASE or LOWERCASE is - true, the character should be converted to its uppercase - resp. lowercase equivalent. I don't know if the necessary - facilities are already included in gettext. For US-Ascii - the conversion can be already be done, however. */ - if (uppercase && hex_number >= 'a' && hex_number <= 'z') - { - hex_number = hex_number - 'a' + 'A'; - } - else if (lowercase && hex_number >= 'A' && hex_number <= 'Z') - { - hex_number = hex_number - 'A' + 'a'; - } - - length = u8_uctomb ((unsigned char *) (buffer + bufpos), - hex_number, 6); - - if (length > 0) - bufpos += length; - } - continue; - case 'c': - /* Perl's notion of control characters. */ - crs += 2; - if (*crs) - { - int the_char = (unsigned char) *crs; - if (the_char >= 'a' || the_char <= 'z') - the_char = the_char - 'a' + 'A'; - buffer[bufpos++] = the_char ^ 0x40; - } - continue; - case 'N': - crs += 2; - if (*crs == '{') - { - const char *end = strchr (crs + 1, '}'); - if (end != NULL) - { - char *name; - unsigned int unicode; - - name = XNMALLOC (end - (crs + 1) + 1, char); - memcpy (name, crs + 1, end - (crs + 1)); - name[end - (crs + 1)] = '\0'; - - unicode = unicode_name_character (name); - if (unicode != UNINAME_INVALID) - { - /* FIXME: Convert to upper/lowercase if the - corresponding flag is set to true. */ - int length = - u8_uctomb ((unsigned char *) (buffer + bufpos), - unicode, 6); - if (length > 0) - bufpos += length; - } - - free (name); - - crs = end + 1; - } - } - continue; - } - } + error_with_progname = true; + ++crs; + continue; + } + else + { + ++crs; + (void) extract_hex (crs, end - crs, &hex_number); + crs = end + 1; + } + } + else + { + crs = extract_hex (crs, 2, &hex_number); + } + + /* FIXME: If one of the variables UPPERCASE or LOWERCASE is + true, the character should be converted to its uppercase + resp. lowercase equivalent. I don't know if the necessary + facilities are already included in gettext. For US-Ascii + the conversion can be already be done, however. */ + if (uppercase && hex_number >= 'a' && hex_number <= 'z') + { + hex_number = hex_number - 'a' + 'A'; + } + else if (lowercase && hex_number >= 'A' && hex_number <= 'Z') + { + hex_number = hex_number - 'A' + 'a'; + } + + length = u8_uctomb ((unsigned char *) (buffer + bufpos), + hex_number, 6); + + if (length > 0) + bufpos += length; + } + continue; + case 'c': + /* Perl's notion of control characters. */ + crs += 2; + if (*crs) + { + int the_char = (unsigned char) *crs; + if (the_char >= 'a' || the_char <= 'z') + the_char = the_char - 'a' + 'A'; + buffer[bufpos++] = the_char ^ 0x40; + } + continue; + case 'N': + crs += 2; + if (*crs == '{') + { + const char *end = strchr (crs + 1, '}'); + if (end != NULL) + { + char *name; + unsigned int unicode; + + name = XNMALLOC (end - (crs + 1) + 1, char); + memcpy (name, crs + 1, end - (crs + 1)); + name[end - (crs + 1)] = '\0'; + + unicode = unicode_name_character (name); + if (unicode != UNINAME_INVALID) + { + /* FIXME: Convert to upper/lowercase if the + corresponding flag is set to true. */ + int length = + u8_uctomb ((unsigned char *) (buffer + bufpos), + unicode, 6); + if (length > 0) + bufpos += length; + } + + free (name); + + crs = end + 1; + } + } + continue; + } + } /* No escape sequence, go on. */ if (*crs == '\\') - { - ++crs; - switch (*crs) - { - case 'E': - uppercase = false; - lowercase = false; - quotemeta = false; - ++crs; - continue; - case 'L': - uppercase = false; - lowercase = true; - ++crs; - continue; - case 'U': - uppercase = true; - lowercase = false; - ++crs; - continue; - case 'Q': - quotemeta = true; - ++crs; - continue; - case 'l': - ++crs; - if (*crs >= 'A' && *crs <= 'Z') - { - buffer[bufpos++] = *crs - 'A' + 'a'; - } - else if ((unsigned char) *crs >= 0x80) - { - error_with_progname = false; - error (error_level, 0, _("\ + { + ++crs; + switch (*crs) + { + case 'E': + uppercase = false; + lowercase = false; + quotemeta = false; + ++crs; + continue; + case 'L': + uppercase = false; + lowercase = true; + ++crs; + continue; + case 'U': + uppercase = true; + lowercase = false; + ++crs; + continue; + case 'Q': + quotemeta = true; + ++crs; + continue; + case 'l': + ++crs; + if (*crs >= 'A' && *crs <= 'Z') + { + buffer[bufpos++] = *crs - 'A' + 'a'; + } + else if ((unsigned char) *crs >= 0x80) + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: invalid interpolation (\"\\l\") of 8bit character \"%c\""), - real_file_name, line_number, *crs); - error_with_progname = true; - } - else - { - buffer[bufpos++] = *crs; - } - ++crs; - continue; - case 'u': - ++crs; - if (*crs >= 'a' && *crs <= 'z') - { - buffer[bufpos++] = *crs - 'a' + 'A'; - } - else if ((unsigned char) *crs >= 0x80) - { - error_with_progname = false; - error (error_level, 0, _("\ + real_file_name, line_number, *crs); + error_with_progname = true; + } + else + { + buffer[bufpos++] = *crs; + } + ++crs; + continue; + case 'u': + ++crs; + if (*crs >= 'a' && *crs <= 'z') + { + buffer[bufpos++] = *crs - 'a' + 'A'; + } + else if ((unsigned char) *crs >= 0x80) + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: invalid interpolation (\"\\u\") of 8bit character \"%c\""), - real_file_name, line_number, *crs); - error_with_progname = true; - } - else - { - buffer[bufpos++] = *crs; - } - ++crs; - continue; - case '\\': - buffer[bufpos++] = *crs; - ++crs; - continue; - default: - backslashed = true; - break; - } - } + real_file_name, line_number, *crs); + error_with_progname = true; + } + else + { + buffer[bufpos++] = *crs; + } + ++crs; + continue; + case '\\': + buffer[bufpos++] = *crs; + ++crs; + continue; + default: + backslashed = true; + break; + } + } else - backslashed = false; + backslashed = false; if (quotemeta - && !((*crs >= 'A' && *crs <= 'Z') || (*crs >= 'A' && *crs <= 'z') - || (*crs >= '0' && *crs <= '9') || *crs == '_')) - { - buffer[bufpos++] = '\\'; - backslashed = true; - } + && !((*crs >= 'A' && *crs <= 'Z') || (*crs >= 'A' && *crs <= 'z') + || (*crs >= '0' && *crs <= '9') || *crs == '_')) + { + buffer[bufpos++] = '\\'; + backslashed = true; + } if (!backslashed && !extract_all && (*crs == '$' || *crs == '@')) - { - error_with_progname = false; - error (error_level, 0, _("\ + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: invalid variable interpolation at \"%c\""), - real_file_name, line_number, *crs); - error_with_progname = true; - ++crs; - } + real_file_name, line_number, *crs); + error_with_progname = true; + ++crs; + } else if (lowercase) - { - if (*crs >= 'A' && *crs <= 'Z') - buffer[bufpos++] = *crs - 'A' + 'a'; - else if ((unsigned char) *crs >= 0x80) - { - error_with_progname = false; - error (error_level, 0, _("\ + { + if (*crs >= 'A' && *crs <= 'Z') + buffer[bufpos++] = *crs - 'A' + 'a'; + else if ((unsigned char) *crs >= 0x80) + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: invalid interpolation (\"\\L\") of 8bit character \"%c\""), - real_file_name, line_number, *crs); - error_with_progname = true; - buffer[bufpos++] = *crs; - } - else - buffer[bufpos++] = *crs; - ++crs; - } + real_file_name, line_number, *crs); + error_with_progname = true; + buffer[bufpos++] = *crs; + } + else + buffer[bufpos++] = *crs; + ++crs; + } else if (uppercase) - { - if (*crs >= 'a' && *crs <= 'z') - buffer[bufpos++] = *crs - 'a' + 'A'; - else if ((unsigned char) *crs >= 0x80) - { - error_with_progname = false; - error (error_level, 0, _("\ + { + if (*crs >= 'a' && *crs <= 'z') + buffer[bufpos++] = *crs - 'a' + 'A'; + else if ((unsigned char) *crs >= 0x80) + { + error_with_progname = false; + error (error_level, 0, _("\ %s:%d: invalid interpolation (\"\\U\") of 8bit character \"%c\""), - real_file_name, line_number, *crs); - error_with_progname = true; - buffer[bufpos++] = *crs; - } - else - buffer[bufpos++] = *crs; - ++crs; - } + real_file_name, line_number, *crs); + error_with_progname = true; + buffer[bufpos++] = *crs; + } + else + buffer[bufpos++] = *crs; + ++crs; + } else - { - buffer[bufpos++] = *crs++; - } + { + buffer[bufpos++] = *crs++; + } } /* Ensure room for 1 more byte. */ @@ -1295,7 +1298,7 @@ #if DEBUG_PERL fprintf (stderr, "%s:%d: extracting variable type '%c'\n", - real_file_name, line_number, first); + real_file_name, line_number, first); #endif /* @@ -1306,10 +1309,10 @@ while (c == '$' || c == '*' || c == '#' || c == '@' || c == '%') { if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[bufpos++] = c; c = phase1_getc (); } @@ -1325,34 +1328,34 @@ if (buffer[0] == '$') { if (bufpos == 1) - maybe_hash_value = true; + maybe_hash_value = true; else if (bufpos == 2 && buffer[1] == '$') - { - if (!(c == '{' - || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9') - || c == '_' || c == ':' || c == '\'' || c >= 0x80)) - { - /* Special variable $$ for pid. */ - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = '\0'; - tp->string = xstrdup (buffer); -#if DEBUG_PERL - fprintf (stderr, "%s:%d: is PID ($$)\n", - real_file_name, line_number); -#endif - - phase1_ungetc (c); - return; - } - - maybe_hash_deref = true; - bufpos = 1; - } + { + if (!(c == '{' + || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9') + || c == '_' || c == ':' || c == '\'' || c >= 0x80)) + { + /* Special variable $$ for pid. */ + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = '\0'; + tp->string = xstrdup (buffer); +#if DEBUG_PERL + fprintf (stderr, "%s:%d: is PID ($$)\n", + real_file_name, line_number); +#endif + + phase1_ungetc (c); + return; + } + + maybe_hash_deref = true; + bufpos = 1; + } } /* @@ -1374,30 +1377,33 @@ */ #if DEBUG_PERL fprintf (stderr, "%s:%d: braced {variable_name}\n", - real_file_name, line_number); + real_file_name, line_number); #endif if (extract_balanced (mlp, token_type_rbrace, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL))) - return; + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL))) + { + tp->type = token_type_eof; + return; + } buffer[bufpos++] = c; } else { while ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9') - || c == '_' || c == ':' || c == '\'' || c >= 0x80) - { - ++varbody_length; - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - } + || (c >= '0' && c <= '9') + || c == '_' || c == ':' || c == '\'' || c >= 0x80) + { + ++varbody_length; + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + } phase1_ungetc (c); } @@ -1406,16 +1412,16 @@ { c = phase1_getc (); if (c == EOF || is_whitespace (c)) - phase1_ungetc (c); /* Loser. */ + phase1_ungetc (c); /* Loser. */ else - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } } if (bufpos >= bufmax) @@ -1429,11 +1435,9 @@ #if DEBUG_PERL fprintf (stderr, "%s:%d: complete variable name: %s\n", - real_file_name, line_number, tp->string); + real_file_name, line_number, tp->string); #endif - prefer_division_over_regexp = true; - /* * 3) If the following looks strange to you, this is valid Perl syntax: * @@ -1452,138 +1456,139 @@ int c; do - c = phase2_getc (); + c = phase2_getc (); while (is_whitespace (c)); if (c == '-') - { - int c2 = phase1_getc (); + { + int c2 = phase1_getc (); - if (c2 == '>') - { - is_dereference = true; - - do - c = phase2_getc (); - while (is_whitespace (c)); - } - else if (c2 != '\n') - { - /* Discarding the newline is harmless here. The only - special character recognized after a minus is greater-than - for dereference. However, the sequence "-\n>" that we - treat incorrectly here, is a syntax error. */ - phase1_ungetc (c2); - } - } + if (c2 == '>') + { + is_dereference = true; + + do + c = phase2_getc (); + while (is_whitespace (c)); + } + else if (c2 != '\n') + { + /* Discarding the newline is harmless here. The only + special character recognized after a minus is greater-than + for dereference. However, the sequence "-\n>" that we + treat incorrectly here, is a syntax error. */ + phase1_ungetc (c2); + } + } if (maybe_hash_value && is_dereference) - { + { + tp->type = token_type_object; #if DEBUG_PERL - fprintf (stderr, "%s:%d: first keys preceded by \"->\"\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: first keys preceded by \"->\"\n", + real_file_name, line_number); #endif - } + } else if (maybe_hash_value) - { - /* Fake it into a hash. */ - tp->string[0] = '%'; - } + { + /* Fake it into a hash. */ + tp->string[0] = '%'; + } /* Do NOT change that into else if (see above). */ if ((maybe_hash_value || maybe_hash_deref) && c == '{') - { - void *keyword_value; + { + void *keyword_value; #if DEBUG_PERL - fprintf (stderr, "%s:%d: first keys preceded by '{'\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: first keys preceded by '{'\n", + real_file_name, line_number); #endif - if (hash_find_entry (&keywords, tp->string, strlen (tp->string), - &keyword_value) == 0) - { - /* TODO: Shouldn't we use the shapes of the keyword, instead - of hardwiring argnum1 = 1 ? - const struct callshapes *shapes = - (const struct callshapes *) keyword_value; - */ - struct callshapes shapes; - shapes.keyword = tp->string; /* XXX storage duration? */ - shapes.keyword_len = strlen (tp->string); - shapes.nshapes = 1; - shapes.shapes[0].argnum1 = 1; - shapes.shapes[0].argnum2 = 0; - shapes.shapes[0].argnumc = 0; - shapes.shapes[0].argnum1_glib_context = false; - shapes.shapes[0].argnum2_glib_context = false; - shapes.shapes[0].argtotal = 0; - string_list_init (&shapes.shapes[0].xcomments); - - { - /* Extract a possible string from the key. Before proceeding - we check whether the open curly is followed by a symbol and - then by a right curly. */ - flag_context_list_iterator_ty context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - tp->string, strlen (tp->string))); - token_ty *t1 = x_perl_lex (mlp); - -#if DEBUG_PERL - fprintf (stderr, "%s:%d: extracting string key\n", - real_file_name, line_number); -#endif - - if (t1->type == token_type_symbol - || t1->type == token_type_named_op) - { - token_ty *t2 = x_perl_lex (mlp); - if (t2->type == token_type_rbrace) - { - flag_context_ty context; - lex_pos_ty pos; - - context = - inherited_context (null_context, - flag_context_list_iterator_advance ( - &context_iter)); - - pos.line_number = line_number; - pos.file_name = logical_file_name; - - xgettext_current_source_encoding = po_charset_utf8; - remember_a_message (mlp, NULL, xstrdup (t1->string), - context, &pos, savable_comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - free_token (t2); - free_token (t1); - } - else - { - x_perl_unlex (t2); - } - } - else - { - x_perl_unlex (t1); - if (extract_balanced (mlp, token_type_rbrace, true, false, - null_context, context_iter, - 1, arglist_parser_alloc (mlp, &shapes))) - return; - } - } - } - else - { - phase2_ungetc (c); - } - } + if (hash_find_entry (&keywords, tp->string, strlen (tp->string), + &keyword_value) == 0) + { + /* TODO: Shouldn't we use the shapes of the keyword, instead + of hardwiring argnum1 = 1 ? + const struct callshapes *shapes = + (const struct callshapes *) keyword_value; + */ + struct callshapes shapes; + shapes.keyword = tp->string; /* XXX storage duration? */ + shapes.keyword_len = strlen (tp->string); + shapes.nshapes = 1; + shapes.shapes[0].argnum1 = 1; + shapes.shapes[0].argnum2 = 0; + shapes.shapes[0].argnumc = 0; + shapes.shapes[0].argnum1_glib_context = false; + shapes.shapes[0].argnum2_glib_context = false; + shapes.shapes[0].argtotal = 0; + string_list_init (&shapes.shapes[0].xcomments); + + { + /* Extract a possible string from the key. Before proceeding + we check whether the open curly is followed by a symbol and + then by a right curly. */ + flag_context_list_iterator_ty context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + tp->string, strlen (tp->string))); + token_ty *t1 = x_perl_lex (mlp); + +#if DEBUG_PERL + fprintf (stderr, "%s:%d: extracting string key\n", + real_file_name, line_number); +#endif + + if (t1->type == token_type_symbol + || t1->type == token_type_named_op) + { + token_ty *t2 = x_perl_lex (mlp); + if (t2->type == token_type_rbrace) + { + flag_context_ty context; + lex_pos_ty pos; + + context = + inherited_context (null_context, + flag_context_list_iterator_advance ( + &context_iter)); + + pos.line_number = line_number; + pos.file_name = logical_file_name; + + xgettext_current_source_encoding = po_charset_utf8; + remember_a_message (mlp, NULL, xstrdup (t1->string), + context, &pos, NULL, savable_comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + free_token (t2); + free_token (t1); + } + else + { + x_perl_unlex (t2); + } + } + else + { + x_perl_unlex (t1); + if (extract_balanced (mlp, token_type_rbrace, true, false, + null_context, context_iter, + 1, arglist_parser_alloc (mlp, &shapes))) + return; + } + } + } + else + { + phase2_ungetc (c); + } + } else - { - phase2_ungetc (c); - } + { + phase2_ungetc (c); + } } /* Now consume "->", "[...]", and "{...}". */ @@ -1593,55 +1598,55 @@ int c2; switch (c) - { - case '{': + { + case '{': +#if DEBUG_PERL + fprintf (stderr, "%s:%d: extracting balanced '{' after varname\n", + real_file_name, line_number); +#endif + extract_balanced (mlp, token_type_rbrace, true, false, + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL)); + break; + + case '[': +#if DEBUG_PERL + fprintf (stderr, "%s:%d: extracting balanced '[' after varname\n", + real_file_name, line_number); +#endif + extract_balanced (mlp, token_type_rbracket, true, false, + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL)); + break; + + case '-': + c2 = phase1_getc (); + if (c2 == '>') + { +#if DEBUG_PERL + fprintf (stderr, "%s:%d: another \"->\" after varname\n", + real_file_name, line_number); +#endif + break; + } + else if (c2 != '\n') + { + /* Discarding the newline is harmless here. The only + special character recognized after a minus is greater-than + for dereference. However, the sequence "-\n>" that we + treat incorrectly here, is a syntax error. */ + phase1_ungetc (c2); + } + /* FALLTHROUGH */ + + default: #if DEBUG_PERL - fprintf (stderr, "%s:%d: extracting balanced '{' after varname\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: variable finished\n", + real_file_name, line_number); #endif - extract_balanced (mlp, token_type_rbrace, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL)); - break; - - case '[': -#if DEBUG_PERL - fprintf (stderr, "%s:%d: extracting balanced '[' after varname\n", - real_file_name, line_number); -#endif - extract_balanced (mlp, token_type_rbracket, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL)); - break; - - case '-': - c2 = phase1_getc (); - if (c2 == '>') - { -#if DEBUG_PERL - fprintf (stderr, "%s:%d: another \"->\" after varname\n", - real_file_name, line_number); -#endif - break; - } - else if (c2 != '\n') - { - /* Discarding the newline is harmless here. The only - special character recognized after a minus is greater-than - for dereference. However, the sequence "-\n>" that we - treat incorrectly here, is a syntax error. */ - phase1_ungetc (c2); - } - /* FALLTHROUGH */ - - default: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: variable finished\n", - real_file_name, line_number); -#endif - phase2_ungetc (c); - return; - } + phase2_ungetc (c); + return; + } } } @@ -1713,294 +1718,379 @@ void *keyword_value; if (state == initial) - bufpos = 0; + bufpos = 0; if (c == '\n') - lineno++; + lineno++; if (bufpos + 1 >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } switch (state) - { - case initial: - switch (c) - { - case '\\': - c = (unsigned char) *string++; - if (c == '\0') - return; - break; - case '$': - buffer[bufpos++] = '$'; - maybe_hash_deref = false; - state = one_dollar; - break; - default: - break; - } - break; - case one_dollar: - switch (c) - { - case '$': - /* - * This is enough to make us believe later that we dereference - * a hash reference. - */ - maybe_hash_deref = true; - state = two_dollars; - break; - default: - if (c == '_' || c == ':' || c == '\'' || c >= 0x80 - || (c >= 'A' && c <= 'Z') - || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9')) - { - buffer[bufpos++] = c; - state = identifier; - } - else - state = initial; - break; - } - break; - case two_dollars: - if (c == '_' || c == ':' || c == '\'' || c >= 0x80 - || (c >= 'A' && c <= 'Z') - || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9')) - { - buffer[bufpos++] = c; - state = identifier; - } - else - state = initial; - break; - case identifier: - switch (c) - { - case '-': - if (hash_find_entry (&keywords, buffer, bufpos, &keyword_value) - == 0) - { - flag_context_list_iterator_ty context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - buffer, bufpos)); - context = - inherited_context (null_context, - flag_context_list_iterator_advance ( - &context_iter)); - state = minus; - } - else - state = initial; - break; - case '{': - if (!maybe_hash_deref) - buffer[0] = '%'; - if (hash_find_entry (&keywords, buffer, bufpos, &keyword_value) - == 0) - { - flag_context_list_iterator_ty context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - buffer, bufpos)); - context = - inherited_context (null_context, - flag_context_list_iterator_advance ( - &context_iter)); - state = wait_quote; - } - else - state = initial; - break; - default: - if (c == '_' || c == ':' || c == '\'' || c >= 0x80 - || (c >= 'A' && c <= 'Z') - || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9')) - { - buffer[bufpos++] = c; - } - else - state = initial; - break; - } - break; - case minus: - switch (c) - { - case '>': - state = wait_lbrace; - break; - default: - context = null_context; - state = initial; - break; - } - break; - case wait_lbrace: - switch (c) - { - case '{': - state = wait_quote; - break; - default: - context = null_context; - state = initial; - break; - } - break; - case wait_quote: - switch (c) - { - case_whitespace: - break; - case '\'': - pos.line_number = lineno; - bufpos = 0; - state = squote; - break; - case '"': - pos.line_number = lineno; - bufpos = 0; - state = dquote; - break; - default: - if (c == '_' || (c >= '0' && c <= '9') || c >= 0x80 - || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) - { - pos.line_number = lineno; - bufpos = 0; - buffer[bufpos++] = c; - state = barekey; - } - else - { - context = null_context; - state = initial; - } - break; - } - break; - case dquote: - switch (c) - { - case '"': - /* The resulting string has to be interpolated twice. */ - buffer[bufpos] = '\0'; - token.string = xstrdup (buffer); - extract_quotelike_pass3 (&token, EXIT_FAILURE); - /* The string can only shrink with interpolation (because - we ignore \Q). */ - if (!(strlen (token.string) <= bufpos)) - abort (); - strcpy (buffer, token.string); - free (token.string); - state = wait_rbrace; - break; - case '\\': - if (string[0] == '\"') - { - buffer[bufpos++] = string++[0]; - } - else if (string[0]) - { - buffer[bufpos++] = '\\'; - buffer[bufpos++] = string++[0]; - } - else - { - context = null_context; - state = initial; - } - break; - default: - buffer[bufpos++] = c; - break; - } - break; - case squote: - switch (c) - { - case '\'': - state = wait_rbrace; - break; - case '\\': - if (string[0] == '\'') - { - buffer[bufpos++] = string++[0]; - } - else if (string[0]) - { - buffer[bufpos++] = '\\'; - buffer[bufpos++] = string++[0]; - } - else - { - context = null_context; - state = initial; - } - break; - default: - buffer[bufpos++] = c; - break; - } - break; - case barekey: - if (c == '_' || (c >= '0' && c <= '9') || c >= 0x80 - || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) - { - buffer[bufpos++] = c; - break; - } - else if (is_whitespace (c)) - { - state = wait_rbrace; - break; - } - else if (c != '}') - { - context = null_context; - state = initial; - break; - } - /* Must be right brace. */ - /* FALLTHROUGH */ - case wait_rbrace: - switch (c) - { - case_whitespace: - break; - case '}': - buffer[bufpos] = '\0'; - token.string = xstrdup (buffer); - extract_quotelike_pass3 (&token, EXIT_FAILURE); - xgettext_current_source_encoding = po_charset_utf8; - remember_a_message (mlp, NULL, token.string, context, &pos, - savable_comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - /* FALLTHROUGH */ - default: - context = null_context; - state = initial; - break; - } - break; - } - } -} - -/* The last token seen in the token stream. This is important for the - interpretation of '?' and '/'. */ -static token_type_ty last_token; + { + case initial: + switch (c) + { + case '\\': + c = (unsigned char) *string++; + if (c == '\0') + return; + break; + case '$': + buffer[bufpos++] = '$'; + maybe_hash_deref = false; + state = one_dollar; + break; + default: + break; + } + break; + case one_dollar: + switch (c) + { + case '$': + /* + * This is enough to make us believe later that we dereference + * a hash reference. + */ + maybe_hash_deref = true; + state = two_dollars; + break; + default: + if (c == '_' || c == ':' || c == '\'' || c >= 0x80 + || (c >= 'A' && c <= 'Z') + || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9')) + { + buffer[bufpos++] = c; + state = identifier; + } + else + state = initial; + break; + } + break; + case two_dollars: + if (c == '_' || c == ':' || c == '\'' || c >= 0x80 + || (c >= 'A' && c <= 'Z') + || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9')) + { + buffer[bufpos++] = c; + state = identifier; + } + else + state = initial; + break; + case identifier: + switch (c) + { + case '-': + if (hash_find_entry (&keywords, buffer, bufpos, &keyword_value) + == 0) + { + flag_context_list_iterator_ty context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + buffer, bufpos)); + context = + inherited_context (null_context, + flag_context_list_iterator_advance ( + &context_iter)); + state = minus; + } + else + state = initial; + break; + case '{': + if (!maybe_hash_deref) + buffer[0] = '%'; + if (hash_find_entry (&keywords, buffer, bufpos, &keyword_value) + == 0) + { + flag_context_list_iterator_ty context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + buffer, bufpos)); + context = + inherited_context (null_context, + flag_context_list_iterator_advance ( + &context_iter)); + state = wait_quote; + } + else + state = initial; + break; + default: + if (c == '_' || c == ':' || c == '\'' || c >= 0x80 + || (c >= 'A' && c <= 'Z') + || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9')) + { + buffer[bufpos++] = c; + } + else + state = initial; + break; + } + break; + case minus: + switch (c) + { + case '>': + state = wait_lbrace; + break; + default: + context = null_context; + state = initial; + break; + } + break; + case wait_lbrace: + switch (c) + { + case '{': + state = wait_quote; + break; + default: + context = null_context; + state = initial; + break; + } + break; + case wait_quote: + switch (c) + { + case_whitespace: + break; + case '\'': + pos.line_number = lineno; + bufpos = 0; + state = squote; + break; + case '"': + pos.line_number = lineno; + bufpos = 0; + state = dquote; + break; + default: + if (c == '_' || (c >= '0' && c <= '9') || c >= 0x80 + || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) + { + pos.line_number = lineno; + bufpos = 0; + buffer[bufpos++] = c; + state = barekey; + } + else + { + context = null_context; + state = initial; + } + break; + } + break; + case dquote: + switch (c) + { + case '"': + /* The resulting string has to be interpolated twice. */ + buffer[bufpos] = '\0'; + token.string = xstrdup (buffer); + extract_quotelike_pass3 (&token, EXIT_FAILURE); + /* The string can only shrink with interpolation (because + we ignore \Q). */ + if (!(strlen (token.string) <= bufpos)) + abort (); + strcpy (buffer, token.string); + free (token.string); + state = wait_rbrace; + break; + case '\\': + if (string[0] == '\"') + { + buffer[bufpos++] = string++[0]; + } + else if (string[0]) + { + buffer[bufpos++] = '\\'; + buffer[bufpos++] = string++[0]; + } + else + { + context = null_context; + state = initial; + } + break; + default: + buffer[bufpos++] = c; + break; + } + break; + case squote: + switch (c) + { + case '\'': + state = wait_rbrace; + break; + case '\\': + if (string[0] == '\'') + { + buffer[bufpos++] = string++[0]; + } + else if (string[0]) + { + buffer[bufpos++] = '\\'; + buffer[bufpos++] = string++[0]; + } + else + { + context = null_context; + state = initial; + } + break; + default: + buffer[bufpos++] = c; + break; + } + break; + case barekey: + if (c == '_' || (c >= '0' && c <= '9') || c >= 0x80 + || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) + { + buffer[bufpos++] = c; + break; + } + else if (is_whitespace (c)) + { + state = wait_rbrace; + break; + } + else if (c != '}') + { + context = null_context; + state = initial; + break; + } + /* Must be right brace. */ + /* FALLTHROUGH */ + case wait_rbrace: + switch (c) + { + case_whitespace: + break; + case '}': + buffer[bufpos] = '\0'; + token.string = xstrdup (buffer); + extract_quotelike_pass3 (&token, EXIT_FAILURE); + xgettext_current_source_encoding = po_charset_utf8; + remember_a_message (mlp, NULL, token.string, context, &pos, + NULL, savable_comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + /* FALLTHROUGH */ + default: + context = null_context; + state = initial; + break; + } + break; + } + } +} + +/* There is an ambiguity about '/' and '?': They can start an operator + (division operator '/' or '/=' or the conditional operator '?'), or they can + start a regular expression. The distinction is important because inside + regular expressions, '#' loses its special meaning. This function helps + making the decision (a heuristic). See the documentation for details. */ +static bool +prefer_regexp_over_division (token_type_ty type) +{ + bool retval = true; + + switch (type) + { + case token_type_eof: + retval = true; + break; + case token_type_lparen: + retval = true; + break; + case token_type_rparen: + retval = false; + break; + case token_type_comma: + retval = true; + break; + case token_type_fat_comma: + retval = true; + break; + case token_type_dereference: + retval = true; + break; + case token_type_semicolon: + retval = true; + break; + case token_type_lbrace: + retval = true; + break; + case token_type_rbrace: + retval = false; + break; + case token_type_lbracket: + retval = true; + break; + case token_type_rbracket: + retval = false; + break; + case token_type_string: + retval = false; + break; + case token_type_number: + retval = false; + break; + case token_type_named_op: + retval = true; + break; + case token_type_variable: + retval = false; + break; + case token_type_object: + retval = false; + break; + case token_type_symbol: + case token_type_keyword_symbol: + retval = true; + break; + case token_type_regex_op: + retval = false; + break; + case token_type_dot: + retval = true; + break; + case token_type_other: + retval = true; + break; + } + +#if DEBUG_PERL + token_ty ty; + ty.type = type; + fprintf (stderr, "Prefer regexp over division after %s: %s\n", + token2string (&ty), retval ? "true" : "false"); +#endif + + return retval; +} + +/* Last token type seen in the stream. Important for the interpretation + of slash and question mark. */ +static token_type_ty last_token_type; /* Combine characters into tokens. Discard whitespace. */ @@ -2016,515 +2106,487 @@ { c = phase2_getc (); tp->line_number = line_number; + tp->last_type = last_token_type; switch (c) - { - case EOF: - tp->type = token_type_eof; - return; - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case '\t': - case ' ': - /* Ignore whitespace. */ - continue; - - case '%': - case '@': - case '*': - case '$': - if (!extract_all) - { - extract_variable (mlp, tp, c); - prefer_division_over_regexp = true; - return; - } - break; - } + { + case EOF: + tp->type = token_type_eof; + return; + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case '\t': + case ' ': + /* Ignore whitespace. */ + continue; + + case '%': + case '@': + case '*': + case '$': + if (!extract_all) + { + extract_variable (mlp, tp, c); + return; + } + break; + } last_non_comment_line = tp->line_number; switch (c) - { - case '.': - { - int c2 = phase1_getc (); - phase1_ungetc (c2); - if (c2 == '.') - { - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - } - else if (c2 >= '0' && c2 <= '9') - { - prefer_division_over_regexp = false; - } - else - { - tp->type = token_type_dot; - prefer_division_over_regexp = true; - return; - } - } - /* FALLTHROUGH */ - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - /* Symbol, or part of a number. */ - prefer_division_over_regexp = true; - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - - default: - phase1_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - - if (strcmp (buffer, "__END__") == 0 - || strcmp (buffer, "__DATA__") == 0) - { - end_of_file = true; - tp->type = token_type_eof; - return; - } - else if (strcmp (buffer, "and") == 0 - || strcmp (buffer, "cmp") == 0 - || strcmp (buffer, "eq") == 0 - || strcmp (buffer, "if") == 0 - || strcmp (buffer, "ge") == 0 - || strcmp (buffer, "gt") == 0 - || strcmp (buffer, "le") == 0 - || strcmp (buffer, "lt") == 0 - || strcmp (buffer, "ne") == 0 - || strcmp (buffer, "not") == 0 - || strcmp (buffer, "or") == 0 - || strcmp (buffer, "unless") == 0 - || strcmp (buffer, "while") == 0 - || strcmp (buffer, "xor") == 0) - { - tp->type = token_type_named_op; - tp->string = xstrdup (buffer); - prefer_division_over_regexp = false; - return; - } - else if (strcmp (buffer, "s") == 0 - || strcmp (buffer, "y") == 0 - || strcmp (buffer, "tr") == 0) - { - int delim = phase1_getc (); - - while (is_whitespace (delim)) - delim = phase2_getc (); - - if (delim == EOF) - { - tp->type = token_type_eof; - return; - } - if ((delim >= '0' && delim <= '9') - || (delim >= 'A' && delim <= 'Z') - || (delim >= 'a' && delim <= 'z')) - { - /* False positive. */ - phase2_ungetc (delim); - tp->type = token_type_symbol; - tp->sub_type = symbol_type_none; - tp->string = xstrdup (buffer); - prefer_division_over_regexp = true; - return; - } - extract_triple_quotelike (mlp, tp, delim, - buffer[0] == 's' && delim != '\''); - - /* Eat the following modifiers. */ - do - c = phase1_getc (); - while (c >= 'a' && c <= 'z'); - phase1_ungetc (c); - return; - } - else if (strcmp (buffer, "m") == 0) - { - int delim = phase1_getc (); - - while (is_whitespace (delim)) - delim = phase2_getc (); - - if (delim == EOF) - { - tp->type = token_type_eof; - return; - } - if ((delim >= '0' && delim <= '9') - || (delim >= 'A' && delim <= 'Z') - || (delim >= 'a' && delim <= 'z')) - { - /* False positive. */ - phase2_ungetc (delim); - tp->type = token_type_symbol; - tp->sub_type = symbol_type_none; - tp->string = xstrdup (buffer); - prefer_division_over_regexp = true; - return; - } - extract_quotelike (tp, delim); - if (delim != '\'') - interpolate_keywords (mlp, tp->string, line_number); - free (tp->string); - drop_reference (tp->comment); - tp->type = token_type_regex_op; - prefer_division_over_regexp = true; - - /* Eat the following modifiers. */ - do - c = phase1_getc (); - while (c >= 'a' && c <= 'z'); - phase1_ungetc (c); - return; - } - else if (strcmp (buffer, "qq") == 0 - || strcmp (buffer, "q") == 0 - || strcmp (buffer, "qx") == 0 - || strcmp (buffer, "qw") == 0 - || strcmp (buffer, "qr") == 0) - { - /* The qw (...) construct is not really a string but we - can treat in the same manner and then pretend it is - a symbol. Rationale: Saying "qw (foo bar)" is the - same as "my @list = ('foo', 'bar'); @list;". */ - - int delim = phase1_getc (); - - while (is_whitespace (delim)) - delim = phase2_getc (); - - if (delim == EOF) - { - tp->type = token_type_eof; - return; - } - prefer_division_over_regexp = true; - - if ((delim >= '0' && delim <= '9') - || (delim >= 'A' && delim <= 'Z') - || (delim >= 'a' && delim <= 'z')) - { - /* False positive. */ - phase2_ungetc (delim); - tp->type = token_type_symbol; - tp->sub_type = symbol_type_none; - tp->string = xstrdup (buffer); - prefer_division_over_regexp = true; - return; - } - - extract_quotelike (tp, delim); - - switch (buffer[1]) - { - case 'q': - case 'x': - tp->type = token_type_string; - tp->sub_type = string_type_qq; - interpolate_keywords (mlp, tp->string, line_number); - break; - case 'r': - drop_reference (tp->comment); - tp->type = token_type_regex_op; - break; - case 'w': - drop_reference (tp->comment); - tp->type = token_type_symbol; - tp->sub_type = symbol_type_none; - break; - case '\0': - tp->type = token_type_string; - tp->sub_type = string_type_q; - break; - default: - abort (); - } - return; - } - else if (strcmp (buffer, "grep") == 0 - || strcmp (buffer, "split") == 0) - { - prefer_division_over_regexp = false; - } - tp->type = token_type_symbol; - tp->sub_type = (strcmp (buffer, "sub") == 0 - ? symbol_type_sub - : symbol_type_none); - tp->string = xstrdup (buffer); - return; - - case '"': - prefer_division_over_regexp = true; - extract_quotelike (tp, c); - tp->sub_type = string_type_qq; - interpolate_keywords (mlp, tp->string, line_number); - return; - - case '`': - prefer_division_over_regexp = true; - extract_quotelike (tp, c); - tp->sub_type = string_type_qq; - interpolate_keywords (mlp, tp->string, line_number); - return; - - case '\'': - prefer_division_over_regexp = true; - extract_quotelike (tp, c); - tp->sub_type = string_type_q; - return; - - case '(': - c = phase2_getc (); - if (c == ')') - /* Ignore empty list. */ - continue; - else - phase2_ungetc (c); - tp->type = token_type_lparen; - prefer_division_over_regexp = false; - return; - - case ')': - tp->type = token_type_rparen; - prefer_division_over_regexp = true; - return; - - case '{': - tp->type = token_type_lbrace; - prefer_division_over_regexp = false; - return; - - case '}': - tp->type = token_type_rbrace; - prefer_division_over_regexp = false; - return; - - case '[': - tp->type = token_type_lbracket; - prefer_division_over_regexp = false; - return; - - case ']': - tp->type = token_type_rbracket; - prefer_division_over_regexp = false; - return; - - case ';': - tp->type = token_type_semicolon; - prefer_division_over_regexp = false; - return; - - case ',': - tp->type = token_type_comma; - prefer_division_over_regexp = false; - return; - - case '=': - /* Check for fat comma. */ - c = phase1_getc (); - if (c == '>') - { - tp->type = token_type_fat_comma; - return; - } - else if (linepos == 2 - && (last_token == token_type_semicolon - || last_token == token_type_rbrace) - && ((c >= 'A' && c <='Z') - || (c >= 'a' && c <= 'z'))) - { -#if DEBUG_PERL - fprintf (stderr, "%s:%d: start pod section\n", - real_file_name, line_number); -#endif - skip_pod (); -#if DEBUG_PERL - fprintf (stderr, "%s:%d: end pod section\n", - real_file_name, line_number); -#endif - continue; - } - phase1_ungetc (c); - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - - case '<': - /* Check for <string); - free (tp->string); - tp->string = string; - tp->type = token_type_string; - tp->sub_type = string_type_verbatim; - tp->line_number = line_number + 1; - return; - } - else if (c == '"') - { - char *string; - extract_quotelike (tp, c); - string = get_here_document (tp->string); - free (tp->string); - tp->string = string; - tp->type = token_type_string; - tp->sub_type = string_type_qq; - tp->line_number = line_number + 1; - interpolate_keywords (mlp, tp->string, line_number + 1); - return; - } - else if ((c >= 'A' && c <= 'Z') - || (c >= 'a' && c <= 'z') - || c == '_') - { - bufpos = 0; - while ((c >= 'A' && c <= 'Z') - || (c >= 'a' && c <= 'z') - || (c >= '0' && c <= '9') - || c == '_' || c >= 0x80) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - } - if (c == EOF) - { - tp->type = token_type_eof; - return; - } - else - { - char *string; - phase1_ungetc (c); - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = '\0'; - string = get_here_document (buffer); - tp->string = string; - tp->type = token_type_string; - tp->sub_type = string_type_qq; - tp->comment = add_reference (savable_comment); - tp->line_number = line_number + 1; - interpolate_keywords (mlp, tp->string, line_number + 1); - return; - } - } - else - { - tp->type = token_type_other; - return; - } - } - else - { - phase1_ungetc (c); - tp->type = token_type_other; - } - return; /* End of case '>'. */ - - case '-': - /* Check for dereferencing operator. */ - c = phase1_getc (); - if (c == '>') - { - tp->type = token_type_dereference; - return; - } - else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) - { - /* One of the -X (filetest) functions. We play safe - and accept all alphabetical characters here. */ - tp->type = token_type_other; - return; - } - phase1_ungetc (c); - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - - case '/': - case '?': - if (!prefer_division_over_regexp) - { - extract_quotelike (tp, c); - interpolate_keywords (mlp, tp->string, line_number); - free (tp->string); - drop_reference (tp->comment); - tp->type = token_type_other; - prefer_division_over_regexp = true; - /* Eat the following modifiers. */ - do - c = phase1_getc (); - while (c >= 'a' && c <= 'z'); - phase1_ungetc (c); - return; - } + { + case '.': + { + int c2 = phase1_getc (); + phase1_ungetc (c2); + if (c2 == '.') + { + tp->type = token_type_other; + return; + } + else if (!(c2 >= '0' && c2 <= '9')) + { + tp->type = token_type_dot; + return; + } + } + /* FALLTHROUGH */ + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + /* Symbol, or part of a number. */ + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + + default: + phase1_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + + if (strcmp (buffer, "__END__") == 0 + || strcmp (buffer, "__DATA__") == 0) + { + end_of_file = true; + tp->type = token_type_eof; + return; + } + else if (strcmp (buffer, "and") == 0 + || strcmp (buffer, "cmp") == 0 + || strcmp (buffer, "eq") == 0 + || strcmp (buffer, "if") == 0 + || strcmp (buffer, "ge") == 0 + || strcmp (buffer, "gt") == 0 + || strcmp (buffer, "le") == 0 + || strcmp (buffer, "lt") == 0 + || strcmp (buffer, "ne") == 0 + || strcmp (buffer, "not") == 0 + || strcmp (buffer, "or") == 0 + || strcmp (buffer, "unless") == 0 + || strcmp (buffer, "while") == 0 + || strcmp (buffer, "xor") == 0) + { + tp->type = token_type_named_op; + tp->string = xstrdup (buffer); + return; + } + else if (strcmp (buffer, "s") == 0 + || strcmp (buffer, "y") == 0 + || strcmp (buffer, "tr") == 0) + { + int delim = phase1_getc (); + + while (is_whitespace (delim)) + delim = phase2_getc (); + + if (delim == EOF) + { + tp->type = token_type_eof; + return; + } + if ((delim >= '0' && delim <= '9') + || (delim >= 'A' && delim <= 'Z') + || (delim >= 'a' && delim <= 'z')) + { + /* False positive. */ + phase2_ungetc (delim); + tp->type = token_type_symbol; + tp->sub_type = symbol_type_none; + tp->string = xstrdup (buffer); + return; + } + extract_triple_quotelike (mlp, tp, delim, + buffer[0] == 's' && delim != '\''); + + /* Eat the following modifiers. */ + do + c = phase1_getc (); + while (c >= 'a' && c <= 'z'); + phase1_ungetc (c); + return; + } + else if (strcmp (buffer, "m") == 0) + { + int delim = phase1_getc (); + + while (is_whitespace (delim)) + delim = phase2_getc (); + + if (delim == EOF) + { + tp->type = token_type_eof; + return; + } + if ((delim >= '0' && delim <= '9') + || (delim >= 'A' && delim <= 'Z') + || (delim >= 'a' && delim <= 'z')) + { + /* False positive. */ + phase2_ungetc (delim); + tp->type = token_type_symbol; + tp->sub_type = symbol_type_none; + tp->string = xstrdup (buffer); + return; + } + extract_quotelike (tp, delim); + if (delim != '\'') + interpolate_keywords (mlp, tp->string, line_number); + free (tp->string); + drop_reference (tp->comment); + tp->type = token_type_regex_op; + + /* Eat the following modifiers. */ + do + c = phase1_getc (); + while (c >= 'a' && c <= 'z'); + phase1_ungetc (c); + return; + } + else if (strcmp (buffer, "qq") == 0 + || strcmp (buffer, "q") == 0 + || strcmp (buffer, "qx") == 0 + || strcmp (buffer, "qw") == 0 + || strcmp (buffer, "qr") == 0) + { + /* The qw (...) construct is not really a string but we + can treat in the same manner and then pretend it is + a symbol. Rationale: Saying "qw (foo bar)" is the + same as "my @list = ('foo', 'bar'); @list;". */ + + int delim = phase1_getc (); + + while (is_whitespace (delim)) + delim = phase2_getc (); + + if (delim == EOF) + { + tp->type = token_type_eof; + return; + } + + if ((delim >= '0' && delim <= '9') + || (delim >= 'A' && delim <= 'Z') + || (delim >= 'a' && delim <= 'z')) + { + /* False positive. */ + phase2_ungetc (delim); + tp->type = token_type_symbol; + tp->sub_type = symbol_type_none; + tp->string = xstrdup (buffer); + return; + } + + extract_quotelike (tp, delim); + + switch (buffer[1]) + { + case 'q': + case 'x': + tp->type = token_type_string; + tp->sub_type = string_type_qq; + interpolate_keywords (mlp, tp->string, line_number); + break; + case 'r': + drop_reference (tp->comment); + tp->type = token_type_regex_op; + break; + case 'w': + drop_reference (tp->comment); + tp->type = token_type_symbol; + tp->sub_type = symbol_type_none; + break; + case '\0': + tp->type = token_type_string; + tp->sub_type = string_type_q; + break; + default: + abort (); + } + return; + } + else if ((buffer[0] >= '0' && buffer[0] <= '9') || buffer[0] == '.') + { + tp->type = token_type_number; + return; + } + tp->type = token_type_symbol; + tp->sub_type = (strcmp (buffer, "sub") == 0 + ? symbol_type_sub + : symbol_type_none); + tp->string = xstrdup (buffer); + return; + + case '"': + extract_quotelike (tp, c); + tp->sub_type = string_type_qq; + interpolate_keywords (mlp, tp->string, line_number); + return; + + case '`': + extract_quotelike (tp, c); + tp->sub_type = string_type_qq; + interpolate_keywords (mlp, tp->string, line_number); + return; + + case '\'': + extract_quotelike (tp, c); + tp->sub_type = string_type_q; + return; + + case '(': + c = phase2_getc (); + if (c == ')') + /* Ignore empty list. */ + continue; + else + phase2_ungetc (c); + tp->type = token_type_lparen; + return; + + case ')': + tp->type = token_type_rparen; + return; + + case '{': + tp->type = token_type_lbrace; + return; + + case '}': + tp->type = token_type_rbrace; + return; + + case '[': + tp->type = token_type_lbracket; + return; + + case ']': + tp->type = token_type_rbracket; + return; + + case ';': + tp->type = token_type_semicolon; + return; + + case ',': + tp->type = token_type_comma; + return; + + case '=': + /* Check for fat comma. */ + c = phase1_getc (); + if (c == '>') + { + tp->type = token_type_fat_comma; + return; + } + else if (linepos == 2 + && (last_token_type == token_type_semicolon + || last_token_type == token_type_rbrace) + && ((c >= 'A' && c <='Z') + || (c >= 'a' && c <= 'z'))) + { +#if DEBUG_PERL + fprintf (stderr, "%s:%d: start pod section\n", + real_file_name, line_number); +#endif + skip_pod (); +#if DEBUG_PERL + fprintf (stderr, "%s:%d: end pod section\n", + real_file_name, line_number); +#endif + continue; + } + phase1_ungetc (c); + tp->type = token_type_other; + return; + + case '<': + /* Check for <string); + free (tp->string); + tp->string = string; + tp->type = token_type_string; + tp->sub_type = string_type_verbatim; + tp->line_number = line_number + 1; + return; + } + else if (c == '"') + { + char *string; + extract_quotelike (tp, c); + string = get_here_document (tp->string); + free (tp->string); + tp->string = string; + tp->type = token_type_string; + tp->sub_type = string_type_qq; + tp->line_number = line_number + 1; + interpolate_keywords (mlp, tp->string, tp->line_number); + return; + } + else if ((c >= 'A' && c <= 'Z') + || (c >= 'a' && c <= 'z') + || c == '_') + { + bufpos = 0; + while ((c >= 'A' && c <= 'Z') + || (c >= 'a' && c <= 'z') + || (c >= '0' && c <= '9') + || c == '_' || c >= 0x80) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + } + if (c == EOF) + { + tp->type = token_type_eof; + return; + } + else + { + char *string; + phase1_ungetc (c); + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = '\0'; + string = get_here_document (buffer); + tp->string = string; + tp->type = token_type_string; + tp->sub_type = string_type_qq; + tp->comment = add_reference (savable_comment); + tp->line_number = line_number + 1; + interpolate_keywords (mlp, tp->string, tp->line_number); + return; + } + } + else + { + tp->type = token_type_other; + return; + } + } + else + { + phase1_ungetc (c); + tp->type = token_type_other; + } + return; /* End of case '>'. */ + + case '-': + /* Check for dereferencing operator. */ + c = phase1_getc (); + if (c == '>') + { + tp->type = token_type_dereference; + return; + } + else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) + { + /* One of the -X (filetest) functions. We play safe + and accept all alphabetical characters here. */ + tp->type = token_type_other; + return; + } + phase1_ungetc (c); + tp->type = token_type_other; + return; + + case '/': + case '?': + if (prefer_regexp_over_division (tp->last_type)) + { + extract_quotelike (tp, c); + interpolate_keywords (mlp, tp->string, line_number); + free (tp->string); + drop_reference (tp->comment); + tp->type = token_type_regex_op; + /* Eat the following modifiers. */ + do + c = phase1_getc (); + while (c >= 'a' && c <= 'z'); + phase1_ungetc (c); + return; + } /* Recognize operator '//'. */ if (c == '/') { @@ -2532,17 +2594,16 @@ if (c != '/') phase1_ungetc (c); } - /* FALLTHROUGH */ + /* FALLTHROUGH */ - default: - /* We could carefully recognize each of the 2 and 3 character + default: + /* We could carefully recognize each of the 2 and 3 character operators, but it is not necessary, except for the '//' operator, as we only need to recognize gettext invocations. Don't bother. */ - tp->type = token_type_other; - prefer_division_over_regexp = false; - return; - } + tp->type = token_type_other; + return; + } } } @@ -2572,14 +2633,18 @@ token_ty *token = stack->items[i]; fprintf (stderr, " [%s]\n", token2string (token)); switch (token->type) - { - case token_type_named_op: - case token_type_string: - case token_type_symbol: - case token_type_variable: - fprintf (stderr, " string: %s\n", token->string); - break; - } + { + case token_type_named_op: + case token_type_string: + case token_type_symbol: + case token_type_variable: + fprintf (stderr, " string: %s\n", token->string); + break; + case token_type_object: + fprintf (stderr, " string: %s->\n", token->string); + default: + break; + } } fprintf (stderr, "END STACK DUMP\n"); return 0; @@ -2647,16 +2712,75 @@ { tp = XMALLOC (token_ty); x_perl_prelex (mlp, tp); + tp->last_type = last_token_type; + last_token_type = tp->type; + #if DEBUG_PERL fprintf (stderr, "%s:%d: x_perl_prelex returned %s\n", - real_file_name, line_number, token2string (tp)); + real_file_name, line_number, token2string (tp)); #endif + + /* The interpretation of a slash or question mark after a function call + depends on the prototype of that function. If the function expects + at least one argument, a regular expression is preferred, otherwise + an operator. With our limited means, we can only guess here. If + the function is a builtin that takes no arguments, we prefer an + operator by silently turning the last symbol into a variable instead + of a symbol. + + Method calls without parentheses are not ambiguous. After them, an + operator must follow. Due to some ideosyncrasies in this parser + they are treated in two different manners. If the call is + chained ($foo->bar->baz) the token left of the symbol is a + dereference operator. If it is not chained ($foo->bar) the + dereference operator is consumed with the extracted variable. The + latter case is handled below. */ + if (tp->type == token_type_symbol) + { + if (tp->last_type == token_type_dereference) + { + /* Class method call or chained method call (with at least + two arrow operators). */ + last_token_type = token_type_variable; + } + else if (tp->last_type == token_type_object) + { + /* Instance method, not chained. */ + last_token_type = token_type_variable; + } + else if (strcmp (tp->string, "wantarray") == 0 + || strcmp (tp->string, "fork") == 0 + || strcmp (tp->string, "getlogin") == 0 + || strcmp (tp->string, "getppid") == 0 + || strcmp (tp->string, "getpwent") == 0 + || strcmp (tp->string, "getgrent") == 0 + || strcmp (tp->string, "gethostent") == 0 + || strcmp (tp->string, "getnetent") == 0 + || strcmp (tp->string, "getprotoent") == 0 + || strcmp (tp->string, "getservent") == 0 + || strcmp (tp->string, "setpwent") == 0 + || strcmp (tp->string, "setgrent") == 0 + || strcmp (tp->string, "endpwent") == 0 + || strcmp (tp->string, "endgrent") == 0 + || strcmp (tp->string, "endhostent") == 0 + || strcmp (tp->string, "endnetent") == 0 + || strcmp (tp->string, "endprotoent") == 0 + || strcmp (tp->string, "endservent") == 0 + || strcmp (tp->string, "time") == 0 + || strcmp (tp->string, "times") == 0 + || strcmp (tp->string, "wait") == 0 + || strcmp (tp->string, "wantarray") == 0) + { + /* A Perl built-in function that does not accept arguments. */ + last_token_type = token_type_variable; + } + } } #if DEBUG_PERL else { fprintf (stderr, "%s:%d: %s recycled from stack\n", - real_file_name, line_number, token2string (tp)); + real_file_name, line_number, token2string (tp)); } #endif @@ -2669,74 +2793,74 @@ token_ty *next = token_stack_peek (&token_stack); if (!next) - { + { #if DEBUG_PERL - fprintf (stderr, "%s:%d: pre-fetching next token\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: pre-fetching next token\n", + real_file_name, line_number); #endif - next = x_perl_lex (mlp); - x_perl_unlex (next); + next = x_perl_lex (mlp); + x_perl_unlex (next); #if DEBUG_PERL - fprintf (stderr, "%s:%d: unshifted next token\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: unshifted next token\n", + real_file_name, line_number); #endif - } + } #if DEBUG_PERL fprintf (stderr, "%s:%d: next token is %s\n", - real_file_name, line_number, token2string (next)); + real_file_name, line_number, token2string (next)); #endif if (next->type == token_type_fat_comma) - { - tp->type = token_type_string; - tp->sub_type = string_type_q; - tp->comment = add_reference (savable_comment); -#if DEBUG_PERL - fprintf (stderr, - "%s:%d: token %s mutated to token_type_string\n", - real_file_name, line_number, token2string (tp)); + { + tp->type = token_type_string; + tp->sub_type = string_type_q; + tp->comment = add_reference (savable_comment); +#if DEBUG_PERL + fprintf (stderr, + "%s:%d: token %s mutated to token_type_string\n", + real_file_name, line_number, token2string (tp)); #endif - } + } else if (tp->type == token_type_symbol && tp->sub_type == symbol_type_sub - && next->type == token_type_symbol) + && next->type == token_type_symbol) { - /* Start of a function declaration or definition. Mark this - symbol as a function name, so that we can later eat up - possible prototype information. */ + /* Start of a function declaration or definition. Mark this + symbol as a function name, so that we can later eat up + possible prototype information. */ #if DEBUG_PERL - fprintf (stderr, "%s:%d: subroutine declaration/definition '%s'\n", - real_file_name, line_number, next->string); + fprintf (stderr, "%s:%d: subroutine declaration/definition '%s'\n", + real_file_name, line_number, next->string); #endif - next->sub_type = symbol_type_function; - } + next->sub_type = symbol_type_function; + } else if (tp->type == token_type_symbol - && (tp->sub_type == symbol_type_sub - || tp->sub_type == symbol_type_function) - && next->type == token_type_lparen) + && (tp->sub_type == symbol_type_sub + || tp->sub_type == symbol_type_function) + && next->type == token_type_lparen) { - /* For simplicity we simply consume everything up to the - closing parenthesis. Actually only a limited set of - characters is allowed inside parentheses but we leave - complaints to the interpreter and are prepared for - future extensions to the Perl syntax. */ - int c; + /* For simplicity we simply consume everything up to the + closing parenthesis. Actually only a limited set of + characters is allowed inside parentheses but we leave + complaints to the interpreter and are prepared for + future extensions to the Perl syntax. */ + int c; #if DEBUG_PERL - fprintf (stderr, "%s:%d: consuming prototype information\n", - real_file_name, line_number); + fprintf (stderr, "%s:%d: consuming prototype information\n", + real_file_name, line_number); #endif - do - { - c = phase1_getc (); + do + { + c = phase1_getc (); #if DEBUG_PERL - fprintf (stderr, " consuming character '%c'\n", c); + fprintf (stderr, " consuming character '%c'\n", c); #endif - } - while (c != EOF && c != ')'); - phase1_ungetc (c); - } + } + while (c != EOF && c != ')'); + phase1_ungetc (c); + } } return tp; @@ -2769,39 +2893,40 @@ int c; do - c = phase2_getc (); + c = phase2_getc (); while (is_whitespace (c)); if (c != '.') - { - phase2_ungetc (c); - return string; - } + { + phase2_ungetc (c); + return string; + } do - c = phase2_getc (); + c = phase2_getc (); while (is_whitespace (c)); phase2_ungetc (c); if (c == '"' || c == '\'' || c == '`' - || (!prefer_division_over_regexp && (c == '/' || c == '?')) - || c == 'q') - { - token_ty *qstring = x_perl_lex (mlp); - if (qstring->type != token_type_string) - { - /* assert (qstring->type == token_type_symbol) */ - x_perl_unlex (qstring); - return string; - } - - extract_quotelike_pass3 (qstring, error_level); - len += strlen (qstring->string); - string = xrealloc (string, len); - strcat (string, qstring->string); - free_token (qstring); - } + || ((c == '/' || c == '?') + && prefer_regexp_over_division (tp->last_type)) + || c == 'q') + { + token_ty *qstring = x_perl_lex (mlp); + if (qstring->type != token_type_string) + { + /* assert (qstring->type == token_type_symbol) */ + x_perl_unlex (qstring); + return string; + } + + extract_quotelike_pass3 (qstring, error_level); + len += strlen (qstring->string); + string = xrealloc (string, len); + strcat (string, qstring->string); + free_token (qstring); + } } } @@ -2882,10 +3007,10 @@ static bool extract_balanced (message_list_ty *mlp, - token_type_ty delim, bool eat_delim, bool comma_delim, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - int arg, struct arglist_parser *argparser) + token_type_ty delim, bool eat_delim, bool comma_delim, + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + int arg, struct arglist_parser *argparser) { /* Whether to implicitly assume the next tokens are arguments even without a '('. */ @@ -2904,7 +3029,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); #if DEBUG_PERL static int nesting_level = 0; @@ -2912,9 +3037,6 @@ ++nesting_level; #endif - last_token = token_type_semicolon; /* Safe assumption. */ - prefer_division_over_regexp = false; - for (;;) { /* The current token. */ @@ -2922,477 +3044,500 @@ tp = x_perl_lex (mlp); - last_token = tp->type; - if (delim == tp->type) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); -#if DEBUG_PERL - fprintf (stderr, "%s:%d: extract_balanced finished (%d)\n", - logical_file_name, tp->line_number, --nesting_level); -#endif - if (eat_delim) - free_token (tp); - else - /* Preserve the delimiter for the caller. */ - x_perl_unlex (tp); - return false; - } + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); +#if DEBUG_PERL + fprintf (stderr, "%s:%d: extract_balanced finished (%d)\n", + logical_file_name, tp->line_number, --nesting_level); +#endif + if (eat_delim) + free_token (tp); + else + /* Preserve the delimiter for the caller. */ + x_perl_unlex (tp); + return false; + } if (comma_delim && tp->type == token_type_comma) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); -#if DEBUG_PERL - fprintf (stderr, "%s:%d: extract_balanced finished at comma (%d)\n", - logical_file_name, tp->line_number, --nesting_level); -#endif - x_perl_unlex (tp); - return false; - } - + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); +#if DEBUG_PERL + fprintf (stderr, "%s:%d: extract_balanced finished at comma (%d)\n", + logical_file_name, tp->line_number, --nesting_level); +#endif + x_perl_unlex (tp); + return false; + } + if (next_is_argument && tp->type != token_type_lparen) - { - /* An argument list starts, even though there is no '('. */ - bool next_comma_delim; - - x_perl_unlex (tp); - - if (next_shapes != NULL) - /* We know something about the function being called. Assume - that it consumes only one argument if no argument number or - total > 1 is specified. */ - { - size_t i; - - next_comma_delim = true; - for (i = 0; i < next_shapes->nshapes; i++) - { - const struct callshape *shape = &next_shapes->shapes[i]; - - if (shape->argnum1 > 1 - || shape->argnum2 > 1 - || shape->argnumc > 1 - || shape->argtotal > 1) - next_comma_delim = false; - } - } - else - /* We know nothing about the function being called. It could be - a function prototyped to take only one argument, or on the other - hand it could be prototyped to take more than one argument or an - arbitrary argument list or it could be unprototyped. Due to - the way the parser works, assuming the first case gives the - best results. */ - next_comma_delim = true; - - if (extract_balanced (mlp, delim, false, next_comma_delim, - inner_context, next_context_iter, - 1, next_argparser)) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - - next_is_argument = false; - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - continue; - } + { + /* An argument list starts, even though there is no '('. */ + bool next_comma_delim; + + x_perl_unlex (tp); + + if (next_shapes != NULL) + /* We know something about the function being called. Assume + that it consumes only one argument if no argument number or + total > 1 is specified. */ + { + size_t i; + + next_comma_delim = true; + for (i = 0; i < next_shapes->nshapes; i++) + { + const struct callshape *shape = &next_shapes->shapes[i]; + + if (shape->argnum1 > 1 + || shape->argnum2 > 1 + || shape->argnumc > 1 + || shape->argtotal > 1) + next_comma_delim = false; + } + } + else + /* We know nothing about the function being called. It could be + a function prototyped to take only one argument, or on the other + hand it could be prototyped to take more than one argument or an + arbitrary argument list or it could be unprototyped. Due to + the way the parser works, assuming the first case gives the + best results. */ + next_comma_delim = true; + + if (extract_balanced (mlp, delim, false, next_comma_delim, + inner_context, next_context_iter, + 1, next_argparser)) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + + next_is_argument = false; + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + continue; + } switch (tp->type) - { - case token_type_symbol: + { + case token_type_symbol: + case token_type_keyword_symbol: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type symbol (%d) \"%s\"\n", + logical_file_name, tp->line_number, nesting_level, + tp->string); +#endif + + { + void *keyword_value; + + if (hash_find_entry (&keywords, tp->string, strlen (tp->string), + &keyword_value) == 0) + { + const struct callshapes *shapes = + (const struct callshapes *) keyword_value; + + next_shapes = shapes; + next_argparser = arglist_parser_alloc (mlp, shapes); + } + else + { + next_shapes = NULL; + next_argparser = arglist_parser_alloc (mlp, NULL); + } + } + next_is_argument = true; + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + tp->string, strlen (tp->string))); + break; + + case token_type_variable: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type variable (%d) \"%s\"\n", + logical_file_name, tp->line_number, nesting_level, + tp->string); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_object: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type object (%d) \"%s->\"\n", + logical_file_name, tp->line_number, nesting_level, + tp->string); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_lparen: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type left parenthesis (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + if (next_is_argument) + { + /* Parse the argument list of a function call. */ + if (extract_balanced (mlp, token_type_rparen, true, false, + inner_context, next_context_iter, + 1, next_argparser)) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + return true; + } + next_is_argument = false; + next_argparser = NULL; + } + else + { + /* Parse a parenthesized expression or comma expression. */ + if (extract_balanced (mlp, token_type_rparen, true, false, + inner_context, next_context_iter, + arg, arglist_parser_clone (argparser))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); + free_token (tp); + return true; + } + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + } + skip_until_comma = true; + next_context_iter = null_context_list_iterator; + break; + + case token_type_rparen: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type right parenthesis (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + skip_until_comma = true; + next_context_iter = null_context_list_iterator; + break; + + case token_type_comma: + case token_type_fat_comma: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type comma (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + if (arglist_parser_decidedp (argparser, arg)) + { + /* We have missed the argument. */ + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + argparser = arglist_parser_alloc (mlp, NULL); + arg = 0; + } + arg++; #if DEBUG_PERL - fprintf (stderr, "%s:%d: type symbol (%d) \"%s\"\n", - logical_file_name, tp->line_number, nesting_level, - tp->string); -#endif - - { - void *keyword_value; - - if (hash_find_entry (&keywords, tp->string, strlen (tp->string), - &keyword_value) == 0) - { - const struct callshapes *shapes = - (const struct callshapes *) keyword_value; - - last_token = token_type_keyword_symbol; - next_shapes = shapes; - next_argparser = arglist_parser_alloc (mlp, shapes); - } - else - { - next_shapes = NULL; - next_argparser = arglist_parser_alloc (mlp, NULL); - } - } - next_is_argument = true; - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - tp->string, strlen (tp->string))); - break; - - case token_type_variable: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type variable (%d) \"%s\"\n", - logical_file_name, tp->line_number, nesting_level, tp->string); -#endif - prefer_division_over_regexp = true; - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_lparen: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type left parenthesis (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - if (next_is_argument) - { - /* Parse the argument list of a function call. */ - if (extract_balanced (mlp, token_type_rparen, true, false, - inner_context, next_context_iter, - 1, next_argparser)) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - return true; - } - next_is_argument = false; - next_argparser = NULL; - } - else - { - /* Parse a parenthesized expression or comma expression. */ - if (extract_balanced (mlp, token_type_rparen, true, false, - inner_context, next_context_iter, - arg, arglist_parser_clone (argparser))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); - free_token (tp); - return true; - } - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - } - skip_until_comma = true; - next_context_iter = null_context_list_iterator; - break; - - case token_type_rparen: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type right parenthesis (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - skip_until_comma = true; - next_context_iter = null_context_list_iterator; - break; - - case token_type_comma: - case token_type_fat_comma: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type comma (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - if (arglist_parser_decidedp (argparser, arg)) - { - /* We have missed the argument. */ - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - argparser = arglist_parser_alloc (mlp, NULL); - arg = 0; - } - arg++; -#if DEBUG_PERL - fprintf (stderr, "%s:%d: arg: %d\n", - real_file_name, tp->line_number, arg); -#endif - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - skip_until_comma = false; - next_context_iter = passthrough_context_list_iterator; - break; - - case token_type_string: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type string (%d): \"%s\"\n", - logical_file_name, tp->line_number, nesting_level, - tp->string); -#endif - - if (extract_all) - { - char *string = collect_message (mlp, tp, EXIT_SUCCESS); - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = tp->line_number; - xgettext_current_source_encoding = po_charset_utf8; - remember_a_message (mlp, NULL, string, inner_context, &pos, - tp->comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - } - else if (!skip_until_comma) - { - /* Need to collect the complete string, with error checking, - only if the argument ARG is used in ARGPARSER. */ - bool must_collect = false; - { - size_t nalternatives = argparser->nalternatives; - size_t i; - - for (i = 0; i < nalternatives; i++) - { - struct partial_call *cp = &argparser->alternative[i]; - - if (arg == cp->argnumc - || arg == cp->argnum1 || arg == cp->argnum2) - must_collect = true; - } - } - - if (must_collect) - { - char *string = collect_message (mlp, tp, EXIT_FAILURE); - - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_remember (argparser, arg, - string, inner_context, - logical_file_name, tp->line_number, - tp->comment); - xgettext_current_source_encoding = xgettext_global_source_encoding; - } - } - - if (arglist_parser_decidedp (argparser, arg)) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - argparser = arglist_parser_alloc (mlp, NULL); - } - - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_eof: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type EOF (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - free_token (tp); - return true; - - case token_type_lbrace: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type lbrace (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - if (extract_balanced (mlp, token_type_rbrace, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); - free_token (tp); - return true; - } - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_rbrace: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type rbrace (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_lbracket: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type lbracket (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - if (extract_balanced (mlp, token_type_rbracket, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - if (next_argparser != NULL) - free (next_argparser); - free_token (tp); - return true; - } - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_rbracket: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type rbracket (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_semicolon: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type semicolon (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - - /* The ultimate sign. */ - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_global_source_encoding; - argparser = arglist_parser_alloc (mlp, NULL); - - /* FIXME: Instead of resetting outer_context here, it may be better - to recurse in the next_is_argument handling above, waiting for - the next semicolon or other statement terminator. */ - outer_context = null_context; - context_iter = null_context_list_iterator; - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = passthrough_context_list_iterator; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - break; - - case token_type_dereference: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type dereference (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_dot: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type dot (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_named_op: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type named operator (%d): %s\n", - logical_file_name, tp->line_number, nesting_level, - tp->string); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_regex_op: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type regex operator (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - case token_type_other: -#if DEBUG_PERL - fprintf (stderr, "%s:%d: type other (%d)\n", - logical_file_name, tp->line_number, nesting_level); -#endif - next_is_argument = false; - if (next_argparser != NULL) - free (next_argparser); - next_argparser = NULL; - next_context_iter = null_context_list_iterator; - break; - - default: - fprintf (stderr, "%s:%d: unknown token type %d\n", - real_file_name, tp->line_number, tp->type); - abort (); - } + fprintf (stderr, "%s:%d: arg: %d\n", + real_file_name, tp->line_number, arg); +#endif + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + skip_until_comma = false; + next_context_iter = passthrough_context_list_iterator; + break; + + case token_type_string: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type string (%d): \"%s\"\n", + logical_file_name, tp->line_number, nesting_level, + tp->string); +#endif + + if (extract_all) + { + char *string = collect_message (mlp, tp, EXIT_SUCCESS); + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = tp->line_number; + xgettext_current_source_encoding = po_charset_utf8; + remember_a_message (mlp, NULL, string, inner_context, &pos, + NULL, tp->comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + } + else if (!skip_until_comma) + { + /* Need to collect the complete string, with error checking, + only if the argument ARG is used in ARGPARSER. */ + bool must_collect = false; + { + size_t nalternatives = argparser->nalternatives; + size_t i; + + for (i = 0; i < nalternatives; i++) + { + struct partial_call *cp = &argparser->alternative[i]; + + if (arg == cp->argnumc + || arg == cp->argnum1 || arg == cp->argnum2) + must_collect = true; + } + } + + if (must_collect) + { + char *string = collect_message (mlp, tp, EXIT_FAILURE); + + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_remember (argparser, arg, + string, inner_context, + logical_file_name, tp->line_number, + tp->comment); + xgettext_current_source_encoding = xgettext_global_source_encoding; + } + } + + if (arglist_parser_decidedp (argparser, arg)) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + argparser = arglist_parser_alloc (mlp, NULL); + } + + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_number: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type number (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_eof: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type EOF (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + free_token (tp); + return true; + + case token_type_lbrace: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type lbrace (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + if (extract_balanced (mlp, token_type_rbrace, true, false, + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); + free_token (tp); + return true; + } + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_rbrace: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type rbrace (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_lbracket: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type lbracket (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + if (extract_balanced (mlp, token_type_rbracket, true, false, + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + if (next_argparser != NULL) + free (next_argparser); + free_token (tp); + return true; + } + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_rbracket: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type rbracket (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_semicolon: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type semicolon (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + + /* The ultimate sign. */ + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_global_source_encoding; + argparser = arglist_parser_alloc (mlp, NULL); + + /* FIXME: Instead of resetting outer_context here, it may be better + to recurse in the next_is_argument handling above, waiting for + the next semicolon or other statement terminator. */ + outer_context = null_context; + context_iter = null_context_list_iterator; + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = passthrough_context_list_iterator; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + break; + + case token_type_dereference: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type dereference (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_dot: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type dot (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_named_op: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type named operator (%d): %s\n", + logical_file_name, tp->line_number, nesting_level, + tp->string); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_regex_op: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type regex operator (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + case token_type_other: +#if DEBUG_PERL + fprintf (stderr, "%s:%d: type other (%d)\n", + logical_file_name, tp->line_number, nesting_level); +#endif + next_is_argument = false; + if (next_argparser != NULL) + free (next_argparser); + next_argparser = NULL; + next_context_iter = null_context_list_iterator; + break; + + default: + fprintf (stderr, "%s:%d: unknown token type %d\n", + real_file_name, tp->line_number, tp->type); + abort (); + } free_token (tp); } @@ -3400,8 +3545,8 @@ void extract_perl (FILE *f, const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -3422,14 +3567,17 @@ token_stack.nitems_max = 0; linesize = 0; linepos = 0; - here_eaten = 0; + eaten_here = 0; end_of_file = false; + /* Safe assumption. */ + last_token_type = token_type_semicolon; + /* Eat tokens until eof is seen. When extract_balanced returns due to an unbalanced closing brace, just restart it. */ while (!extract_balanced (mlp, token_type_rbrace, true, false, - null_context, null_context_list_iterator, - 1, arglist_parser_alloc (mlp, NULL))) + null_context, null_context_list_iterator, + 1, arglist_parser_alloc (mlp, NULL))) ; fp = NULL; @@ -3437,8 +3585,8 @@ free (logical_file_name); logical_file_name = NULL; line_number = 0; - last_token = token_type_semicolon; + last_token_type = token_type_semicolon; token_stack_free (&token_stack); - here_eaten = 0; + eaten_here = 0; end_of_file = true; } diff -Nru gettext-0.17/gettext-tools/src/x-perl.h gettext-0.18.1.1/gettext-tools/src/x-perl.h --- gettext-0.17/gettext-tools/src/x-perl.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-perl.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Perl backend. - Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2006, 2010 Free Software Foundation, Inc. Written by Guido Flohr , 2002-2003 This program is free software: you can redistribute it and/or modify @@ -28,20 +28,21 @@ #define EXTENSIONS_PERL \ - { "pl", "perl" }, \ - { "PL", "perl" }, \ - { "pm", "perl" }, \ - { "cgi", "perl" }, \ + { "pl", "perl" }, \ + { "PL", "perl" }, \ + { "pm", "perl" }, \ + { "perl", "perl" }, \ + { "cgi", "perl" }, \ #define SCANNERS_PERL \ - { "perl", extract_perl, \ - &flag_table_perl, &formatstring_perl, &formatstring_perl_brace }, \ + { "perl", extract_perl, \ + &flag_table_perl, &formatstring_perl, &formatstring_perl_brace }, \ /* Scan a Perl file and add its translatable strings to mdlp. */ extern void extract_perl (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_perl_keyword (const char *keyword); extern void x_perl_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-php.c gettext-0.18.1.1/gettext-tools/src/x-php.c --- gettext-0.17/gettext-tools/src/x-php.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-php.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext PHP backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2010 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -30,7 +30,6 @@ #include "message.h" #include "xgettext.h" -#include "x-php.h" #include "error.h" #include "xalloc.h" #include "gettext.h" @@ -77,15 +76,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -97,7 +96,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_php_keyword ("_"); x_php_keyword ("gettext"); x_php_keyword ("dgettext:2"); @@ -159,12 +158,12 @@ c = getc (fp); if (c == EOF) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); - return EOF; - } + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); + return EOF; + } } if (c == '\n') @@ -180,10 +179,10 @@ if (c != EOF) { if (c == '\n') - --line_number; + --line_number; if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; } } @@ -200,237 +199,237 @@ int c = phase1_getc (); if (c == EOF) - return; + return; if (c == '<') - { - int c2 = phase1_getc (); + { + int c2 = phase1_getc (); - if (c2 == EOF) - break; + if (c2 == EOF) + break; - if (c2 == '?') - { - /* - < script language = "php" > - < script language = 'php' > - are always recognized. */ - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 != 's' && c2 != 'S') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'c' && c2 != 'C') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'r' && c2 != 'R') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'i' && c2 != 'I') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'p' && c2 != 'P') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 't' && c2 != 'T') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (!(c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r')) - { - phase1_ungetc (c2); - continue; - } - do - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); - if (c2 != 'l' && c2 != 'L') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'a' && c2 != 'A') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'n' && c2 != 'N') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'g' && c2 != 'G') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'u' && c2 != 'U') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'a' && c2 != 'A') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'g' && c2 != 'G') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'e' && c2 != 'E') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 != '=') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 == '"') - { - c2 = phase1_getc (); - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'h') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != '"') - { - phase1_ungetc (c2); - continue; - } - } - else if (c2 == '\'') - { - c2 = phase1_getc (); - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'h') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != '\'') - { - phase1_ungetc (c2); - continue; - } - } - else - { - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'h') - { - phase1_ungetc (c2); - continue; - } - c2 = phase1_getc (); - if (c2 != 'p') - { - phase1_ungetc (c2); - continue; - } - } - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 != '>') - { - phase1_ungetc (c2); - continue; - } - return; - } + if (c2 == '?') + { + /* + < script language = "php" > + < script language = 'php' > + are always recognized. */ + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 != 's' && c2 != 'S') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'c' && c2 != 'C') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'r' && c2 != 'R') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'i' && c2 != 'I') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'p' && c2 != 'P') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 't' && c2 != 'T') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (!(c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r')) + { + phase1_ungetc (c2); + continue; + } + do + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); + if (c2 != 'l' && c2 != 'L') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'a' && c2 != 'A') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'n' && c2 != 'N') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'g' && c2 != 'G') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'u' && c2 != 'U') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'a' && c2 != 'A') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'g' && c2 != 'G') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'e' && c2 != 'E') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 != '=') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 == '"') + { + c2 = phase1_getc (); + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'h') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != '"') + { + phase1_ungetc (c2); + continue; + } + } + else if (c2 == '\'') + { + c2 = phase1_getc (); + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'h') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != '\'') + { + phase1_ungetc (c2); + continue; + } + } + else + { + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'h') + { + phase1_ungetc (c2); + continue; + } + c2 = phase1_getc (); + if (c2 != 'p') + { + phase1_ungetc (c2); + continue; + } + } + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 != '>') + { + phase1_ungetc (c2); + continue; + } + return; + } } } @@ -453,63 +452,63 @@ case '?': case '%': { - int c2 = phase1_getc (); - if (c2 == '>') - { - /* ?> and %> terminate PHP mode and switch back to HTML mode. */ - skip_html (); - return ' '; - } - phase1_ungetc (c2); + int c2 = phase1_getc (); + if (c2 == '>') + { + /* ?> and %> terminate PHP mode and switch back to HTML mode. */ + skip_html (); + return ' '; + } + phase1_ungetc (c2); } break; case '<': { - int c2 = phase1_getc (); + int c2 = phase1_getc (); - /* < / script > terminates PHP mode and switches back to HTML mode. */ - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 == '/') - { - do - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); - if (c2 == 's' || c2 == 'S') - { - c2 = phase1_getc (); - if (c2 == 'c' || c2 == 'C') - { - c2 = phase1_getc (); - if (c2 == 'r' || c2 == 'R') - { - c2 = phase1_getc (); - if (c2 == 'i' || c2 == 'I') - { - c2 = phase1_getc (); - if (c2 == 'p' || c2 == 'P') - { - c2 = phase1_getc (); - if (c2 == 't' || c2 == 'T') - { - do - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' - || c2 == '\n' || c2 == '\r'); - if (c2 == '>') - { - skip_html (); - return ' '; - } - } - } - } - } - } - } - } - phase1_ungetc (c2); + /* < / script > terminates PHP mode and switches back to HTML mode. */ + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 == '/') + { + do + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); + if (c2 == 's' || c2 == 'S') + { + c2 = phase1_getc (); + if (c2 == 'c' || c2 == 'C') + { + c2 = phase1_getc (); + if (c2 == 'r' || c2 == 'R') + { + c2 = phase1_getc (); + if (c2 == 'i' || c2 == 'I') + { + c2 = phase1_getc (); + if (c2 == 'p' || c2 == 'P') + { + c2 = phase1_getc (); + if (c2 == 't' || c2 == 'T') + { + do + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' + || c2 == '\n' || c2 == '\r'); + if (c2 == '>') + { + skip_html (); + return ' '; + } + } + } + } + } + } + } + } + phase1_ungetc (c2); } break; } @@ -523,7 +522,7 @@ if (c != EOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -559,7 +558,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -602,24 +601,24 @@ comment_start (); lineno = line_number; for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - { - comment_line_end (0); - break; - } - if (last_was_qmark && c == '>') - { - comment_line_end (1); - skip_html (); - break; - } - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - last_was_qmark = (c == '?' || c == '%'); - } + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + { + comment_line_end (0); + break; + } + if (last_was_qmark && c == '>') + { + comment_line_end (1); + skip_html (); + break; + } + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + last_was_qmark = (c == '?' || c == '%'); + } last_comment_line = lineno; return '\n'; } @@ -628,89 +627,89 @@ c = phase1_getc (); switch (c) - { - default: - phase1_ungetc (c); - return '/'; - - case '*': - { - /* C comment. */ - bool last_was_star; - - comment_start (); - lineno = line_number; - last_was_star = false; - for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (buflen == 0 && (c == ' ' || c == '\t')) - continue; - comment_add (c); - switch (c) - { - case '\n': - comment_line_end (1); - comment_start (); - lineno = line_number; - last_was_star = false; - continue; - - case '*': - last_was_star = true; - continue; - - case '/': - if (last_was_star) - { - comment_line_end (2); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - continue; - } - break; - } - last_comment_line = lineno; - return ' '; - } - - case '/': - { - /* C++ comment. */ - bool last_was_qmark = false; - - comment_start (); - lineno = line_number; - for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - { - comment_line_end (0); - break; - } - if (last_was_qmark && c == '>') - { - comment_line_end (1); - skip_html (); - break; - } - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - last_was_qmark = (c == '?' || c == '%'); - } - last_comment_line = lineno; - return '\n'; - } - } + { + default: + phase1_ungetc (c); + return '/'; + + case '*': + { + /* C comment. */ + bool last_was_star; + + comment_start (); + lineno = line_number; + last_was_star = false; + for (;;) + { + c = phase1_getc (); + if (c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (buflen == 0 && (c == ' ' || c == '\t')) + continue; + comment_add (c); + switch (c) + { + case '\n': + comment_line_end (1); + comment_start (); + lineno = line_number; + last_was_star = false; + continue; + + case '*': + last_was_star = true; + continue; + + case '/': + if (last_was_star) + { + comment_line_end (2); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + continue; + } + break; + } + last_comment_line = lineno; + return ' '; + } + + case '/': + { + /* C++ comment. */ + bool last_was_qmark = false; + + comment_start (); + lineno = line_number; + for (;;) + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + { + comment_line_end (0); + break; + } + if (last_was_qmark && c == '>') + { + comment_line_end (1); + skip_html (); + break; + } + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + last_was_qmark = (c == '?' || c == '%'); + } + last_comment_line = lineno; + return '\n'; + } + } } else return c; @@ -723,7 +722,7 @@ if (c != EOF) { if (phase3_pushback_length == SIZEOF (phase3_pushback)) - abort (); + abort (); phase3_pushback[phase3_pushback_length++] = c; } } @@ -736,17 +735,17 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_lbracket, /* [ */ - token_type_rbracket, /* ] */ - token_type_dot, /* . */ - token_type_operator1, /* * / % ++ -- */ - token_type_operator2, /* + - ! ~ @ */ - token_type_string_literal, /* "abc" */ - token_type_symbol, /* symbol, number */ - token_type_other /* misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_lbracket, /* [ */ + token_type_rbracket, /* ] */ + token_type_dot, /* . */ + token_type_operator1, /* * / % ++ -- */ + token_type_operator2, /* + - ! ~ @ */ + token_type_string_literal, /* "abc" */ + token_type_symbol, /* symbol, number */ + token_type_other /* misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -754,8 +753,8 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string_literal, token_type_symbol */ - refcounted_string_list_ty *comment; /* for token_type_string_literal */ + char *string; /* for token_type_string_literal, token_type_symbol */ + refcounted_string_list_ty *comment; /* for token_type_string_literal */ int line_number; }; @@ -796,507 +795,507 @@ tp->line_number = line_number; c = phase3_getc (); switch (c) - { - case EOF: - tp->type = token_type_eof; - return; - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case ' ': - case '\t': - case '\r': - /* Ignore whitespace. */ - continue; - } + { + case EOF: + tp->type = token_type_eof; + return; + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case ' ': + case '\t': + case '\r': + /* Ignore whitespace. */ + continue; + } last_non_comment_line = tp->line_number; switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': - case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': - case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': - case 'V': case 'W': case 'X': case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': - case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': - case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': - case 'v': case 'w': case 'x': case 'y': case 'z': - case 127: case 128: case 129: case 130: case 131: case 132: case 133: - case 134: case 135: case 136: case 137: case 138: case 139: case 140: - case 141: case 142: case 143: case 144: case 145: case 146: case 147: - case 148: case 149: case 150: case 151: case 152: case 153: case 154: - case 155: case 156: case 157: case 158: case 159: case 160: case 161: - case 162: case 163: case 164: case 165: case 166: case 167: case 168: - case 169: case 170: case 171: case 172: case 173: case 174: case 175: - case 176: case 177: case 178: case 179: case 180: case 181: case 182: - case 183: case 184: case 185: case 186: case 187: case 188: case 189: - case 190: case 191: case 192: case 193: case 194: case 195: case 196: - case 197: case 198: case 199: case 200: case 201: case 202: case 203: - case 204: case 205: case 206: case 207: case 208: case 209: case 210: - case 211: case 212: case 213: case 214: case 215: case 216: case 217: - case 218: case 219: case 220: case 221: case 222: case 223: case 224: - case 225: case 226: case 227: case 228: case 229: case 230: case 231: - case 232: case 233: case 234: case 235: case 236: case 237: case 238: - case 239: case 240: case 241: case 242: case 243: case 244: case 245: - case 246: case 247: case 248: case 249: case 250: case 251: case 252: - case 253: case 254: case 255: - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case 127: case 128: case 129: case 130: case 131: case 132: - case 133: case 134: case 135: case 136: case 137: case 138: - case 139: case 140: case 141: case 142: case 143: case 144: - case 145: case 146: case 147: case 148: case 149: case 150: - case 151: case 152: case 153: case 154: case 155: case 156: - case 157: case 158: case 159: case 160: case 161: case 162: - case 163: case 164: case 165: case 166: case 167: case 168: - case 169: case 170: case 171: case 172: case 173: case 174: - case 175: case 176: case 177: case 178: case 179: case 180: - case 181: case 182: case 183: case 184: case 185: case 186: - case 187: case 188: case 189: case 190: case 191: case 192: - case 193: case 194: case 195: case 196: case 197: case 198: - case 199: case 200: case 201: case 202: case 203: case 204: - case 205: case 206: case 207: case 208: case 209: case 210: - case 211: case 212: case 213: case 214: case 215: case 216: - case 217: case 218: case 219: case 220: case 221: case 222: - case 223: case 224: case 225: case 226: case 227: case 228: - case 229: case 230: case 231: case 232: case 233: case 234: - case 235: case 236: case 237: case 238: case 239: case 240: - case 241: case 242: case 243: case 244: case 245: case 246: - case 247: case 248: case 249: case 250: case 251: case 252: - case 253: case 254: case 255: - continue; - - default: - phase1_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = 0; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - return; - - case '\'': - /* Single-quoted string literal. */ - bufpos = 0; - for (;;) - { - c = phase1_getc (); - if (c == EOF || c == '\'') - break; - if (c == '\\') - { - c = phase1_getc (); - if (c != '\\' && c != '\'') - { - phase1_ungetc (c); - c = '\\'; - } - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = 0; - tp->type = token_type_string_literal; - tp->string = xstrdup (buffer); - tp->comment = add_reference (savable_comment); - return; - - case '"': - /* Double-quoted string literal. */ - tp->type = token_type_string_literal; - bufpos = 0; - for (;;) - { - c = phase1_getc (); - if (c == EOF || c == '"') - break; - if (c == '$') - { - c = phase1_getc (); - if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') - || c == '_' || c == '{' || c >= 0x7f) - { - /* String with variables. */ - tp->type = token_type_other; - continue; - } - phase1_ungetc (c); - c = '$'; - } - if (c == '{') - { - c = phase1_getc (); - if (c == '$') - { - /* String with expressions. */ - tp->type = token_type_other; - continue; - } - phase1_ungetc (c); - c = '{'; - } - if (c == '\\') - { - int n, j; - - c = phase1_getc (); - switch (c) - { - case '"': - case '\\': - case '$': - break; - - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - n = 0; - for (j = 0; j < 3; ++j) - { - n = n * 8 + c - '0'; - c = phase1_getc (); - switch (c) - { - default: - break; - - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - continue; - } - break; - } - phase1_ungetc (c); - c = n; - break; - - case 'x': - n = 0; - for (j = 0; j < 2; ++j) - { - c = phase1_getc (); - switch (c) - { - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - n = n * 16 + c - '0'; - break; - case 'A': case 'B': case 'C': case 'D': case 'E': - case 'F': - n = n * 16 + 10 + c - 'A'; - break; - case 'a': case 'b': case 'c': case 'd': case 'e': - case 'f': - n = n * 16 + 10 + c - 'a'; - break; - default: - phase1_ungetc (c); - c = 0; - break; - } - if (c == 0) - break; - } - if (j == 0) - { - phase1_ungetc ('x'); - c = '\\'; - } - else - c = n; - break; - - case 'n': - c = '\n'; - break; - case 't': - c = '\t'; - break; - case 'r': - c = '\r'; - break; - - default: - phase1_ungetc (c); - c = '\\'; - break; - } - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = 0; - if (tp->type == token_type_string_literal) - { - tp->string = xstrdup (buffer); - tp->comment = add_reference (savable_comment); - } - return; - - case '?': - case '%': - { - int c2 = phase1_getc (); - if (c2 == '>') - { - /* ?> and %> terminate PHP mode and switch back to HTML - mode. */ - skip_html (); - tp->type = token_type_other; - } - else - { - phase1_ungetc (c2); - tp->type = (c == '%' ? token_type_operator1 : token_type_other); - } - return; - } - - case '(': - tp->type = token_type_lparen; - return; - - case ')': - tp->type = token_type_rparen; - return; - - case ',': - tp->type = token_type_comma; - return; - - case '[': - tp->type = token_type_lbracket; - return; - - case ']': - tp->type = token_type_rbracket; - return; - - case '.': - tp->type = token_type_dot; - return; - - case '*': - case '/': - tp->type = token_type_operator1; - return; - - case '+': - case '-': - { - int c2 = phase1_getc (); - if (c2 == c) - /* ++ or -- */ - tp->type = token_type_operator1; - else - /* + or - */ - { - phase1_ungetc (c2); - tp->type = token_type_operator2; - } - return; - } - - case '!': - case '~': - case '@': - tp->type = token_type_operator2; - return; - - case '<': - { - int c2 = phase1_getc (); - if (c2 == '<') - { - int c3 = phase1_getc (); - if (c3 == '<') - { - /* Start of here document. - Parse whitespace, then label, then newline. */ - do - c = phase3_getc (); - while (c == ' ' || c == '\t' || c == '\n' || c == '\r'); - - bufpos = 0; - do - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase3_getc (); - } - while (c != EOF && c != '\n' && c != '\r'); - /* buffer[0..bufpos-1] now contains the label. */ - - /* Now skip the here document. */ - for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - if (c == '\n' || c == '\r') - { - int bufidx = 0; - - while (bufidx < bufpos) - { - c = phase1_getc (); - if (c == EOF) - break; - if (c != buffer[bufidx]) - { - phase1_ungetc (c); - break; - } - bufidx++; - } - if (bufidx == bufpos) - { - c = phase1_getc (); - if (c != ';') - phase1_ungetc (c); - c = phase1_getc (); - if (c == '\n' || c == '\r') - break; - } - } - } - - /* FIXME: Ideally we should turn the here document into a - string literal if it didn't contain $ substitution. And - we should also respect backslash escape sequences like - in double-quoted strings. */ - tp->type = token_type_other; - return; - } - phase1_ungetc (c3); - } - - /* < / script > terminates PHP mode and switches back to HTML - mode. */ - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') - c2 = phase1_getc (); - if (c2 == '/') - { - do - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); - if (c2 == 's' || c2 == 'S') - { - c2 = phase1_getc (); - if (c2 == 'c' || c2 == 'C') - { - c2 = phase1_getc (); - if (c2 == 'r' || c2 == 'R') - { - c2 = phase1_getc (); - if (c2 == 'i' || c2 == 'I') - { - c2 = phase1_getc (); - if (c2 == 'p' || c2 == 'P') - { - c2 = phase1_getc (); - if (c2 == 't' || c2 == 'T') - { - do - c2 = phase1_getc (); - while (c2 == ' ' || c2 == '\t' - || c2 == '\n' || c2 == '\r'); - if (c2 == '>') - { - skip_html (); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - } - else - phase1_ungetc (c2); - - tp->type = token_type_other; - return; - } - - case '`': - /* Execution operator. */ - default: - /* We could carefully recognize each of the 2 and 3 character - operators, but it is not necessary, as we only need to recognize - gettext invocations. Don't bother. */ - tp->type = token_type_other; - return; - } + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': + case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': + case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': + case 'V': case 'W': case 'X': case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': + case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': + case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': + case 'v': case 'w': case 'x': case 'y': case 'z': + case 127: case 128: case 129: case 130: case 131: case 132: case 133: + case 134: case 135: case 136: case 137: case 138: case 139: case 140: + case 141: case 142: case 143: case 144: case 145: case 146: case 147: + case 148: case 149: case 150: case 151: case 152: case 153: case 154: + case 155: case 156: case 157: case 158: case 159: case 160: case 161: + case 162: case 163: case 164: case 165: case 166: case 167: case 168: + case 169: case 170: case 171: case 172: case 173: case 174: case 175: + case 176: case 177: case 178: case 179: case 180: case 181: case 182: + case 183: case 184: case 185: case 186: case 187: case 188: case 189: + case 190: case 191: case 192: case 193: case 194: case 195: case 196: + case 197: case 198: case 199: case 200: case 201: case 202: case 203: + case 204: case 205: case 206: case 207: case 208: case 209: case 210: + case 211: case 212: case 213: case 214: case 215: case 216: case 217: + case 218: case 219: case 220: case 221: case 222: case 223: case 224: + case 225: case 226: case 227: case 228: case 229: case 230: case 231: + case 232: case 233: case 234: case 235: case 236: case 237: case 238: + case 239: case 240: case 241: case 242: case 243: case 244: case 245: + case 246: case 247: case 248: case 249: case 250: case 251: case 252: + case 253: case 254: case 255: + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case 127: case 128: case 129: case 130: case 131: case 132: + case 133: case 134: case 135: case 136: case 137: case 138: + case 139: case 140: case 141: case 142: case 143: case 144: + case 145: case 146: case 147: case 148: case 149: case 150: + case 151: case 152: case 153: case 154: case 155: case 156: + case 157: case 158: case 159: case 160: case 161: case 162: + case 163: case 164: case 165: case 166: case 167: case 168: + case 169: case 170: case 171: case 172: case 173: case 174: + case 175: case 176: case 177: case 178: case 179: case 180: + case 181: case 182: case 183: case 184: case 185: case 186: + case 187: case 188: case 189: case 190: case 191: case 192: + case 193: case 194: case 195: case 196: case 197: case 198: + case 199: case 200: case 201: case 202: case 203: case 204: + case 205: case 206: case 207: case 208: case 209: case 210: + case 211: case 212: case 213: case 214: case 215: case 216: + case 217: case 218: case 219: case 220: case 221: case 222: + case 223: case 224: case 225: case 226: case 227: case 228: + case 229: case 230: case 231: case 232: case 233: case 234: + case 235: case 236: case 237: case 238: case 239: case 240: + case 241: case 242: case 243: case 244: case 245: case 246: + case 247: case 248: case 249: case 250: case 251: case 252: + case 253: case 254: case 255: + continue; + + default: + phase1_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = 0; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + return; + + case '\'': + /* Single-quoted string literal. */ + bufpos = 0; + for (;;) + { + c = phase1_getc (); + if (c == EOF || c == '\'') + break; + if (c == '\\') + { + c = phase1_getc (); + if (c != '\\' && c != '\'') + { + phase1_ungetc (c); + c = '\\'; + } + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = 0; + tp->type = token_type_string_literal; + tp->string = xstrdup (buffer); + tp->comment = add_reference (savable_comment); + return; + + case '"': + /* Double-quoted string literal. */ + tp->type = token_type_string_literal; + bufpos = 0; + for (;;) + { + c = phase1_getc (); + if (c == EOF || c == '"') + break; + if (c == '$') + { + c = phase1_getc (); + if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') + || c == '_' || c == '{' || c >= 0x7f) + { + /* String with variables. */ + tp->type = token_type_other; + continue; + } + phase1_ungetc (c); + c = '$'; + } + if (c == '{') + { + c = phase1_getc (); + if (c == '$') + { + /* String with expressions. */ + tp->type = token_type_other; + continue; + } + phase1_ungetc (c); + c = '{'; + } + if (c == '\\') + { + int n, j; + + c = phase1_getc (); + switch (c) + { + case '"': + case '\\': + case '$': + break; + + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + n = 0; + for (j = 0; j < 3; ++j) + { + n = n * 8 + c - '0'; + c = phase1_getc (); + switch (c) + { + default: + break; + + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + continue; + } + break; + } + phase1_ungetc (c); + c = n; + break; + + case 'x': + n = 0; + for (j = 0; j < 2; ++j) + { + c = phase1_getc (); + switch (c) + { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + n = n * 16 + c - '0'; + break; + case 'A': case 'B': case 'C': case 'D': case 'E': + case 'F': + n = n * 16 + 10 + c - 'A'; + break; + case 'a': case 'b': case 'c': case 'd': case 'e': + case 'f': + n = n * 16 + 10 + c - 'a'; + break; + default: + phase1_ungetc (c); + c = 0; + break; + } + if (c == 0) + break; + } + if (j == 0) + { + phase1_ungetc ('x'); + c = '\\'; + } + else + c = n; + break; + + case 'n': + c = '\n'; + break; + case 't': + c = '\t'; + break; + case 'r': + c = '\r'; + break; + + default: + phase1_ungetc (c); + c = '\\'; + break; + } + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = 0; + if (tp->type == token_type_string_literal) + { + tp->string = xstrdup (buffer); + tp->comment = add_reference (savable_comment); + } + return; + + case '?': + case '%': + { + int c2 = phase1_getc (); + if (c2 == '>') + { + /* ?> and %> terminate PHP mode and switch back to HTML + mode. */ + skip_html (); + tp->type = token_type_other; + } + else + { + phase1_ungetc (c2); + tp->type = (c == '%' ? token_type_operator1 : token_type_other); + } + return; + } + + case '(': + tp->type = token_type_lparen; + return; + + case ')': + tp->type = token_type_rparen; + return; + + case ',': + tp->type = token_type_comma; + return; + + case '[': + tp->type = token_type_lbracket; + return; + + case ']': + tp->type = token_type_rbracket; + return; + + case '.': + tp->type = token_type_dot; + return; + + case '*': + case '/': + tp->type = token_type_operator1; + return; + + case '+': + case '-': + { + int c2 = phase1_getc (); + if (c2 == c) + /* ++ or -- */ + tp->type = token_type_operator1; + else + /* + or - */ + { + phase1_ungetc (c2); + tp->type = token_type_operator2; + } + return; + } + + case '!': + case '~': + case '@': + tp->type = token_type_operator2; + return; + + case '<': + { + int c2 = phase1_getc (); + if (c2 == '<') + { + int c3 = phase1_getc (); + if (c3 == '<') + { + /* Start of here document. + Parse whitespace, then label, then newline. */ + do + c = phase3_getc (); + while (c == ' ' || c == '\t' || c == '\n' || c == '\r'); + + bufpos = 0; + do + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase3_getc (); + } + while (c != EOF && c != '\n' && c != '\r'); + /* buffer[0..bufpos-1] now contains the label. */ + + /* Now skip the here document. */ + for (;;) + { + c = phase1_getc (); + if (c == EOF) + break; + if (c == '\n' || c == '\r') + { + int bufidx = 0; + + while (bufidx < bufpos) + { + c = phase1_getc (); + if (c == EOF) + break; + if (c != buffer[bufidx]) + { + phase1_ungetc (c); + break; + } + bufidx++; + } + if (bufidx == bufpos) + { + c = phase1_getc (); + if (c != ';') + phase1_ungetc (c); + c = phase1_getc (); + if (c == '\n' || c == '\r') + break; + } + } + } + + /* FIXME: Ideally we should turn the here document into a + string literal if it didn't contain $ substitution. And + we should also respect backslash escape sequences like + in double-quoted strings. */ + tp->type = token_type_other; + return; + } + phase1_ungetc (c3); + } + + /* < / script > terminates PHP mode and switches back to HTML + mode. */ + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r') + c2 = phase1_getc (); + if (c2 == '/') + { + do + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' || c2 == '\n' || c2 == '\r'); + if (c2 == 's' || c2 == 'S') + { + c2 = phase1_getc (); + if (c2 == 'c' || c2 == 'C') + { + c2 = phase1_getc (); + if (c2 == 'r' || c2 == 'R') + { + c2 = phase1_getc (); + if (c2 == 'i' || c2 == 'I') + { + c2 = phase1_getc (); + if (c2 == 'p' || c2 == 'P') + { + c2 = phase1_getc (); + if (c2 == 't' || c2 == 'T') + { + do + c2 = phase1_getc (); + while (c2 == ' ' || c2 == '\t' + || c2 == '\n' || c2 == '\r'); + if (c2 == '>') + { + skip_html (); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + } + else + phase1_ungetc (c2); + + tp->type = token_type_other; + return; + } + + case '`': + /* Execution operator. */ + default: + /* We could carefully recognize each of the 2 and 3 character + operators, but it is not necessary, as we only need to recognize + gettext invocations. Don't bother. */ + tp->type = token_type_other; + return; + } } } @@ -1307,7 +1306,7 @@ if (tp->type != token_type_eof) { if (phase4_pushback_length == SIZEOF (phase4_pushback)) - abort (); + abort (); phase4_pushback[phase4_pushback_length++] = *tp; } } @@ -1334,49 +1333,49 @@ phase4_get (tp); if (tp->type == token_type_string_literal && !(phase5_last == token_type_dot - || phase5_last == token_type_operator1 - || phase5_last == token_type_operator2 - || phase5_last == token_type_rparen)) + || phase5_last == token_type_operator1 + || phase5_last == token_type_operator2 + || phase5_last == token_type_rparen)) { char *sum = tp->string; size_t sum_len = strlen (sum); for (;;) - { - token_ty token2; + { + token_ty token2; - phase4_get (&token2); - if (token2.type == token_type_dot) - { - token_ty token3; - - phase4_get (&token3); - if (token3.type == token_type_string_literal) - { - token_ty token_after; - - phase4_get (&token_after); - if (token_after.type != token_type_operator1) - { - char *addend = token3.string; - size_t addend_len = strlen (addend); - - sum = (char *) xrealloc (sum, sum_len + addend_len + 1); - memcpy (sum + sum_len, addend, addend_len + 1); - sum_len += addend_len; - - phase4_unget (&token_after); - free_token (&token3); - free_token (&token2); - continue; - } - phase4_unget (&token_after); - } - phase4_unget (&token3); - } - phase4_unget (&token2); - break; - } + phase4_get (&token2); + if (token2.type == token_type_dot) + { + token_ty token3; + + phase4_get (&token3); + if (token3.type == token_type_string_literal) + { + token_ty token_after; + + phase4_get (&token_after); + if (token_after.type != token_type_operator1) + { + char *addend = token3.string; + size_t addend_len = strlen (addend); + + sum = (char *) xrealloc (sum, sum_len + addend_len + 1); + memcpy (sum + sum_len, addend, addend_len + 1); + sum_len += addend_len; + + phase4_unget (&token_after); + free_token (&token3); + free_token (&token2); + continue; + } + phase4_unget (&token_after); + } + phase4_unget (&token3); + } + phase4_unget (&token2); + break; + } tp->string = sum; } phase5_last = tp->type; @@ -1409,13 +1408,13 @@ Extracted messages are added to MLP. DELIM can be either token_type_rparen or token_type_rbracket, or token_type_eof to accept both. - Return true upon eof, false upon closing parenthesis. */ + Return true upon eof, false upon closing parenthesis or bracket. */ static bool extract_balanced (message_list_ty *mlp, - token_type_ty delim, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) + token_type_ty delim, + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -1429,7 +1428,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -1440,125 +1439,128 @@ x_php_lex (&token); switch (token.type) - { - case token_type_symbol: - { - void *keyword_value; - - if (hash_find_entry (&keywords, token.string, strlen (token.string), - &keyword_value) - == 0) - { - next_shapes = (const struct callshapes *) keyword_value; - state = 1; - } - else - state = 0; - } - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, strlen (token.string))); - free (token.string); - continue; - - case token_type_lparen: - if (extract_balanced (mlp, token_type_rparen, - inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - arglist_parser_done (argparser, arg); - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - if (delim == token_type_rparen || delim == token_type_eof) - { - arglist_parser_done (argparser, arg); - return false; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case token_type_lbracket: - if (extract_balanced (mlp, token_type_rbracket, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) - { - arglist_parser_done (argparser, arg); - return true; - } - - case token_type_rbracket: - if (delim == token_type_rbracket || delim == token_type_eof) - { - arglist_parser_done (argparser, arg); - return false; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_string_literal: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, - &pos, token.comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - pos.file_name, pos.line_number, - token.comment); - drop_reference (token.comment); - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_dot: - case token_type_operator1: - case token_type_operator2: - case token_type_other: - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_eof: - arglist_parser_done (argparser, arg); - return true; - - default: - abort (); - } + { + case token_type_symbol: + { + void *keyword_value; + + if (hash_find_entry (&keywords, token.string, strlen (token.string), + &keyword_value) + == 0) + { + next_shapes = (const struct callshapes *) keyword_value; + state = 1; + } + else + state = 0; + } + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, strlen (token.string))); + free (token.string); + continue; + + case token_type_lparen: + if (extract_balanced (mlp, token_type_rparen, + inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + arglist_parser_done (argparser, arg); + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + if (delim == token_type_rparen || delim == token_type_eof) + { + arglist_parser_done (argparser, arg); + return false; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case token_type_lbracket: + if (extract_balanced (mlp, token_type_rbracket, + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) + { + arglist_parser_done (argparser, arg); + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rbracket: + if (delim == token_type_rbracket || delim == token_type_eof) + { + arglist_parser_done (argparser, arg); + return false; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_string_literal: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, + &pos, NULL, token.comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + pos.file_name, pos.line_number, + token.comment); + drop_reference (token.comment); + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_dot: + case token_type_operator1: + case token_type_operator2: + case token_type_other: + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_eof: + arglist_parser_done (argparser, arg); + return true; + + default: + abort (); + } } } void extract_php (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -1582,8 +1584,8 @@ /* Eat tokens until eof is seen. When extract_balanced returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_balanced (mlp, token_type_eof, - null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) ; /* Close scanner. */ diff -Nru gettext-0.17/gettext-tools/src/x-php.h gettext-0.18.1.1/gettext-tools/src/x-php.h --- gettext-0.17/gettext-tools/src/x-php.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-php.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,19 +28,19 @@ #define EXTENSIONS_PHP \ - { "php", "PHP" }, \ - { "php3", "PHP" }, \ - { "php4", "PHP" }, \ + { "php", "PHP" }, \ + { "php3", "PHP" }, \ + { "php4", "PHP" }, \ #define SCANNERS_PHP \ - { "PHP", extract_php, \ - &flag_table_php, &formatstring_php, NULL }, \ + { "PHP", extract_php, \ + &flag_table_php, &formatstring_php, NULL }, \ /* Scan a PHP file and add its translatable strings to mdlp. */ extern void extract_php (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_php_keyword (const char *keyword); extern void x_php_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-po.c gettext-0.18.1.1/gettext-tools/src/x-po.c --- gettext-0.17/gettext-tools/src/x-po.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-po.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext PO and JavaProperties backends. - Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009 Free Software Foundation, Inc. This file was written by Peter Miller @@ -32,9 +32,6 @@ #include "message.h" #include "xgettext.h" -#include "x-po.h" -#include "x-properties.h" -#include "x-stringtable.h" #include "xalloc.h" #include "read-catalog.h" #include "read-po.h" @@ -54,16 +51,16 @@ static void extract_add_message (default_catalog_reader_ty *this, - char *msgctxt, - char *msgid, - lex_pos_ty *msgid_pos, - char *msgid_plural, - char *msgstr, size_t msgstr_len, - lex_pos_ty *msgstr_pos, - char *prev_msgctxt, - char *prev_msgid, - char *prev_msgid_plural, - bool force_fuzzy, bool obsolete) + char *msgctxt, + char *msgid, + lex_pos_ty *msgid_pos, + char *msgid_plural, + char *msgstr, size_t msgstr_len, + lex_pos_ty *msgstr_pos, + char *prev_msgctxt, + char *prev_msgid, + char *prev_msgid_plural, + bool force_fuzzy, bool obsolete) { /* See whether we shall exclude this message. */ if (exclude != NULL && message_list_search (exclude, msgctxt, msgid) != NULL) @@ -76,46 +73,46 @@ if (msgctxt == NULL && *msgid == '\0' && !xgettext_omit_header) { { - const char *charsetstr = strstr (msgstr, "charset="); + const char *charsetstr = strstr (msgstr, "charset="); - if (charsetstr != NULL) - { - size_t len; - char *charset; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - charset = XNMALLOC (len + 1, char); - memcpy (charset, charsetstr, len); - charset[len] = '\0'; - - if (header_charset != NULL) - free (header_charset); - header_charset = charset; - } + if (charsetstr != NULL) + { + size_t len; + char *charset; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + charset = XNMALLOC (len + 1, char); + memcpy (charset, charsetstr, len); + charset[len] = '\0'; + + if (header_charset != NULL) + free (header_charset); + header_charset = charset; + } } discard: if (msgctxt != NULL) - free (msgctxt); + free (msgctxt); free (msgid); if (msgid_plural != NULL) - free (msgid_plural); + free (msgid_plural); free (msgstr); if (prev_msgctxt != NULL) - free (prev_msgctxt); + free (prev_msgctxt); if (prev_msgid != NULL) - free (prev_msgid); + free (prev_msgid); if (prev_msgid_plural != NULL) - free (prev_msgid_plural); + free (prev_msgid_plural); return; } /* Invoke superclass method. */ default_add_message (this, msgctxt, msgid, msgid_pos, msgid_plural, - msgstr, msgstr_len, msgstr_pos, - prev_msgctxt, prev_msgid, prev_msgid_plural, - force_fuzzy, obsolete); + msgstr, msgstr_len, msgstr_pos, + prev_msgctxt, prev_msgid, prev_msgid_plural, + force_fuzzy, obsolete); } @@ -148,9 +145,9 @@ static void extract (FILE *fp, - const char *real_filename, const char *logical_filename, - catalog_input_format_ty input_syntax, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + catalog_input_format_ty input_syntax, + msgdomain_list_ty *mdlp) { default_catalog_reader_ty *pop; @@ -162,49 +159,50 @@ pop->allow_domain_directives = false; pop->allow_duplicates = false; pop->allow_duplicates_if_same_msgstr = true; + pop->file_name = real_filename; pop->mdlp = NULL; pop->mlp = mdlp->item[0]->messages; catalog_reader_parse ((abstract_catalog_reader_ty *) pop, fp, real_filename, - logical_filename, input_syntax); + logical_filename, input_syntax); catalog_reader_free ((abstract_catalog_reader_ty *) pop); if (header_charset != NULL) { if (!xgettext_omit_header) - { - /* Put the old charset into the freshly constructed header entry. */ - message_ty *mp = - message_list_search (mdlp->item[0]->messages, NULL, ""); - - if (mp != NULL && !mp->obsolete) - { - const char *header = mp->msgstr; - - if (header != NULL) - { - const char *charsetstr = strstr (header, "charset="); - - if (charsetstr != NULL) - { - size_t len, len1, len2, len3; - char *new_header; - - charsetstr += strlen ("charset="); - len = strcspn (charsetstr, " \t\n"); - - len1 = charsetstr - header; - len2 = strlen (header_charset); - len3 = (header + strlen (header)) - (charsetstr + len); - new_header = XNMALLOC (len1 + len2 + len3 + 1, char); - memcpy (new_header, header, len1); - memcpy (new_header + len1, header_charset, len2); - memcpy (new_header + len1 + len2, charsetstr + len, len3 + 1); - mp->msgstr = new_header; - mp->msgstr_len = len1 + len2 + len3 + 1; - } - } - } - } + { + /* Put the old charset into the freshly constructed header entry. */ + message_ty *mp = + message_list_search (mdlp->item[0]->messages, NULL, ""); + + if (mp != NULL && !mp->obsolete) + { + const char *header = mp->msgstr; + + if (header != NULL) + { + const char *charsetstr = strstr (header, "charset="); + + if (charsetstr != NULL) + { + size_t len, len1, len2, len3; + char *new_header; + + charsetstr += strlen ("charset="); + len = strcspn (charsetstr, " \t\n"); + + len1 = charsetstr - header; + len2 = strlen (header_charset); + len3 = (header + strlen (header)) - (charsetstr + len); + new_header = XNMALLOC (len1 + len2 + len3 + 1, char); + memcpy (new_header, header, len1); + memcpy (new_header + len1, header_charset, len2); + memcpy (new_header + len1 + len2, charsetstr + len, len3 + 1); + mp->msgstr = new_header; + mp->msgstr_len = len1 + len2 + len3 + 1; + } + } + } + } free (header_charset); } @@ -213,9 +211,9 @@ void extract_po (FILE *fp, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { extract (fp, real_filename, logical_filename, &input_format_po, mdlp); } @@ -223,21 +221,21 @@ void extract_properties (FILE *fp, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { extract (fp, real_filename, logical_filename, &input_format_properties, - mdlp); + mdlp); } void extract_stringtable (FILE *fp, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { extract (fp, real_filename, logical_filename, &input_format_stringtable, - mdlp); + mdlp); } diff -Nru gettext-0.17/gettext-tools/src/x-po.h gettext-0.18.1.1/gettext-tools/src/x-po.h --- gettext-0.17/gettext-tools/src/x-po.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-po.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_PO \ - { "po", "PO" }, \ - { "pot", "PO" }, \ + { "po", "PO" }, \ + { "pot", "PO" }, \ #define SCANNERS_PO \ - { "PO", extract_po, NULL, NULL, NULL }, \ + { "PO", extract_po, NULL, NULL, NULL }, \ /* Scan a PO file and add its translatable strings to mdlp. */ extern void extract_po (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/x-properties.h gettext-0.18.1.1/gettext-tools/src/x-properties.h --- gettext-0.17/gettext-tools/src/x-properties.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-properties.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,16 +28,16 @@ #define EXTENSIONS_PROPERTIES \ - { "properties", "JavaProperties" }, \ + { "properties", "JavaProperties" }, \ #define SCANNERS_PROPERTIES \ - { "JavaProperties", extract_properties, NULL, NULL, NULL }, \ + { "JavaProperties", extract_properties, NULL, NULL, NULL }, \ /* Scan a JavaProperties file and add its translatable strings to mdlp. */ extern void extract_properties (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/x-python.c gettext-0.18.1.1/gettext-tools/src/x-python.c --- gettext-0.17/gettext-tools/src/x-python.c 2011-06-12 21:36:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-python.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Python backend. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -32,7 +32,6 @@ #include "message.h" #include "xgettext.h" -#include "x-python.h" #include "error.h" #include "error-progname.h" #include "progname.h" @@ -88,15 +87,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -108,7 +107,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_python_keyword ("gettext"); x_python_keyword ("ugettext"); x_python_keyword ("dgettext:2"); @@ -170,12 +169,12 @@ c = getc (fp); if (c == EOF) - { - if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); - return EOF; - } + { + if (ferror (fp)) + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); + return EOF; + } } if (c == '\n') @@ -191,10 +190,10 @@ if (c != EOF) { if (c == '\n') - --line_number; + --line_number; if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; } } @@ -210,6 +209,8 @@ /* End-of-file indicator for functions returning an UCS-4 character. */ #define UEOF -1 +static lexical_context_ty lexical_context; + static int phase2_pushback[max (9, UNINAME_MAX + 3)]; static int phase2_pushback_length; @@ -224,147 +225,147 @@ { int c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; if (!c_isascii (c)) - { - char buffer[21]; - sprintf (buffer, ":%ld", (long) line_number); - multiline_error (xstrdup (""), - xasprintf (_("\ -Non-ASCII string at %s%s.\n\ + { + multiline_error (xstrdup (""), + xasprintf ("%s\n%s\n", + non_ascii_error_message (lexical_context, + real_file_name, + line_number), + _("\ Please specify the source encoding through --from-code or through a comment\n\ -as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, buffer)); - exit (EXIT_FAILURE); - } +as specified in http://www.python.org/peps/pep-0263.html.\n"))); + exit (EXIT_FAILURE); + } return c; } else if (xgettext_current_source_encoding != po_charset_utf8) { #if HAVE_ICONV /* Use iconv on an increasing number of bytes. Read only as many bytes - through phase1_getc as needed. This is needed to give reasonable - interactive behaviour when fp is connected to an interactive tty. */ + through phase1_getc as needed. This is needed to give reasonable + interactive behaviour when fp is connected to an interactive tty. */ unsigned char buf[MAX_PHASE1_PUSHBACK]; size_t bufcount; int c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; buf[0] = (unsigned char) c; bufcount = 1; for (;;) - { - unsigned char scratchbuf[6]; - const char *inptr = (const char *) &buf[0]; - size_t insize = bufcount; - char *outptr = (char *) &scratchbuf[0]; - size_t outsize = sizeof (scratchbuf); - - size_t res = iconv (xgettext_current_source_iconv, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - /* We expect that a character has been produced if and only if - some input bytes have been consumed. */ - if ((insize < bufcount) != (outsize < sizeof (scratchbuf))) - abort (); - if (outsize == sizeof (scratchbuf)) - { - /* No character has been produced. Must be an error. */ - if (res != (size_t)(-1)) - abort (); - - if (errno == EILSEQ) - { - /* An invalid multibyte sequence was encountered. */ - multiline_error (xstrdup (""), - xasprintf (_("\ + { + unsigned char scratchbuf[6]; + const char *inptr = (const char *) &buf[0]; + size_t insize = bufcount; + char *outptr = (char *) &scratchbuf[0]; + size_t outsize = sizeof (scratchbuf); + + size_t res = iconv (xgettext_current_source_iconv, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + /* We expect that a character has been produced if and only if + some input bytes have been consumed. */ + if ((insize < bufcount) != (outsize < sizeof (scratchbuf))) + abort (); + if (outsize == sizeof (scratchbuf)) + { + /* No character has been produced. Must be an error. */ + if (res != (size_t)(-1)) + abort (); + + if (errno == EILSEQ) + { + /* An invalid multibyte sequence was encountered. */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Invalid multibyte sequence.\n\ Please specify the correct source encoding through --from-code or through a\n\ comment as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - else if (errno == EINVAL) - { - /* An incomplete multibyte character. */ - int c; - - if (bufcount == MAX_PHASE1_PUSHBACK) - { - /* An overlong incomplete multibyte sequence was - encountered. */ - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + else if (errno == EINVAL) + { + /* An incomplete multibyte character. */ + int c; + + if (bufcount == MAX_PHASE1_PUSHBACK) + { + /* An overlong incomplete multibyte sequence was + encountered. */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Long incomplete multibyte sequence.\n\ Please specify the correct source encoding through --from-code or through a\n\ comment as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - - /* Read one more byte and retry iconv. */ - c = phase1_getc (); - if (c == EOF) - { - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + + /* Read one more byte and retry iconv. */ + c = phase1_getc (); + if (c == EOF) + { + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Incomplete multibyte sequence at end of file.\n\ Please specify the correct source encoding through --from-code or through a\n\ comment as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - if (c == '\n') - { - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + if (c == '\n') + { + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Incomplete multibyte sequence at end of line.\n\ Please specify the correct source encoding through --from-code or through a\n\ comment as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, line_number - 1)); - exit (EXIT_FAILURE); - } - buf[bufcount++] = (unsigned char) c; - } - else - error (EXIT_FAILURE, errno, _("%s:%d: iconv failure"), - real_file_name, line_number); - } - else - { - size_t outbytes = sizeof (scratchbuf) - outsize; - size_t bytes = bufcount - insize; - unsigned int uc; - - /* We expect that one character has been produced. */ - if (bytes == 0) - abort (); - if (outbytes == 0) - abort (); - /* Push back the unused bytes. */ - while (insize > 0) - phase1_ungetc (buf[--insize]); - /* Convert the character from UTF-8 to UCS-4. */ - if (u8_mbtouc (&uc, scratchbuf, outbytes) < outbytes) - { - /* scratchbuf contains an out-of-range Unicode character - (> 0x10ffff). */ - multiline_error (xstrdup (""), - xasprintf (_("\ + real_file_name, line_number - 1)); + exit (EXIT_FAILURE); + } + buf[bufcount++] = (unsigned char) c; + } + else + error (EXIT_FAILURE, errno, _("%s:%d: iconv failure"), + real_file_name, line_number); + } + else + { + size_t outbytes = sizeof (scratchbuf) - outsize; + size_t bytes = bufcount - insize; + ucs4_t uc; + + /* We expect that one character has been produced. */ + if (bytes == 0) + abort (); + if (outbytes == 0) + abort (); + /* Push back the unused bytes. */ + while (insize > 0) + phase1_ungetc (buf[--insize]); + /* Convert the character from UTF-8 to UCS-4. */ + if (u8_mbtouc (&uc, scratchbuf, outbytes) < outbytes) + { + /* scratchbuf contains an out-of-range Unicode character + (> 0x10ffff). */ + multiline_error (xstrdup (""), + xasprintf (_("\ %s:%d: Invalid multibyte sequence.\n\ Please specify the source encoding through --from-code or through a comment\n\ as specified in http://www.python.org/peps/pep-0263.html.\n"), - real_file_name, line_number)); - exit (EXIT_FAILURE); - } - return uc; - } - } + real_file_name, line_number)); + exit (EXIT_FAILURE); + } + return uc; + } + } #else /* If we don't have iconv(), the only supported values for - xgettext_global_source_encoding and thus also for - xgettext_current_source_encoding are ASCII and UTF-8. */ + xgettext_global_source_encoding and thus also for + xgettext_current_source_encoding are ASCII and UTF-8. */ abort (); #endif } @@ -374,68 +375,68 @@ unsigned char buf[6]; unsigned int count; int c; - unsigned int uc; + ucs4_t uc; c = phase1_getc (); if (c == EOF) - return UEOF; + return UEOF; buf[0] = c; count = 1; if (buf[0] >= 0xc0) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[1] = c; - count = 2; - } + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[1] = c; + count = 2; + } if (buf[0] >= 0xe0 - && ((buf[1] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[2] = c; - count = 3; - } + && ((buf[1] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[2] = c; + count = 3; + } if (buf[0] >= 0xf0 - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[3] = c; - count = 4; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[3] = c; + count = 4; + } if (buf[0] >= 0xf8 - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40) - && ((buf[3] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[4] = c; - count = 5; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40) + && ((buf[3] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[4] = c; + count = 5; + } if (buf[0] >= 0xfc - && ((buf[1] ^ 0x80) < 0x40) - && ((buf[2] ^ 0x80) < 0x40) - && ((buf[3] ^ 0x80) < 0x40) - && ((buf[4] ^ 0x80) < 0x40)) - { - c = phase1_getc (); - if (c == EOF) - return UEOF; - buf[5] = c; - count = 6; - } + && ((buf[1] ^ 0x80) < 0x40) + && ((buf[2] ^ 0x80) < 0x40) + && ((buf[3] ^ 0x80) < 0x40) + && ((buf[4] ^ 0x80) < 0x40)) + { + c = phase1_getc (); + if (c == EOF) + return UEOF; + buf[5] = c; + count = 6; + } u8_mbtouc (&uc, buf, count); return uc; @@ -449,7 +450,7 @@ if (c != UEOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -480,13 +481,13 @@ /* Auxiliary function: Ensure count more bytes are available in bp->utf8. */ static inline void unicode_string_buffer_append_unicode_grow (struct unicode_string_buffer *bp, - size_t count) + size_t count) { if (bp->utf8_buflen + count > bp->utf8_allocated) { size_t new_allocated = 2 * bp->utf8_allocated + 10; if (new_allocated < bp->utf8_buflen + count) - new_allocated = bp->utf8_buflen + count; + new_allocated = bp->utf8_buflen + count; bp->utf8_allocated = new_allocated; bp->utf8_buffer = xrealloc (bp->utf8_buffer, new_allocated); } @@ -496,7 +497,7 @@ uc must be < 0x110000. */ static inline void unicode_string_buffer_append_unicode (struct unicode_string_buffer *bp, - unsigned int uc) + unsigned int uc) { unsigned char utf8buf[6]; int count = u8_uctomb (utf8buf, uc, 6); @@ -539,6 +540,7 @@ static inline void comment_start () { + lexical_context = lc_comment; comment_buffer.utf8_buflen = 0; } @@ -561,10 +563,11 @@ size_t buflen = strlen (buffer); while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; buffer[buflen] = '\0'; savable_comment_add (buffer); + lexical_context = lc_outside; return buffer; } @@ -581,10 +584,12 @@ /* Recognizing the "coding" comment. As specified in PEP 0263, it takes the form "coding" [":"|"="] {alphanumeric or "-" or "_" or "*"}* + or + "set" "fileencoding" "=" {alphanumeric or "-" or "_" or "*"}* and is located in a comment in a line that - is either the first or second line, - is not a continuation line, - - contains no other tokens except this comment. */ + - in the first form, contains no other tokens except this comment. */ /* Canonicalized encoding name for the current input file. */ static const char *xgettext_current_file_source_encoding; @@ -609,23 +614,23 @@ /* Avoid glibc-2.1 bug with EUC-KR. */ # if (__GLIBC__ - 0 == 2 && __GLIBC_MINOR__ - 0 <= 1) && !defined _LIBICONV_VERSION if (strcmp (xgettext_current_file_source_encoding, "EUC-KR") == 0) - cd = (iconv_t)(-1); + cd = (iconv_t)(-1); else # endif cd = iconv_open (po_charset_utf8, xgettext_current_file_source_encoding); if (cd == (iconv_t)(-1)) - error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1, _("\ + error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(), \ and iconv() does not support this conversion."), - xgettext_current_file_source_encoding, po_charset_utf8, - basename (program_name)); + xgettext_current_file_source_encoding, po_charset_utf8, + basename (program_name)); xgettext_current_file_source_iconv = cd; #else error_at_line (EXIT_FAILURE, 0, logical_file_name, line_number - 1, _("\ Cannot convert from \"%s\" to \"%s\". %s relies on iconv(). \ This version was built without iconv()."), - xgettext_global_source_encoding, po_charset_utf8, - basename (program_name)); + xgettext_global_source_encoding, po_charset_utf8, + basename (program_name)); #endif } @@ -644,48 +649,48 @@ { p += 6; if (*p == ':' || *p == '=') - { - p++; - while (*p == ' ' || *p == '\t') - p++; - { - const char *encoding_start = p; - - while (c_isalnum (*p) || *p == '-' || *p == '_' || *p == '.') - p++; - { - const char *encoding_end = p; - - if (encoding_end > encoding_start) - { - /* Extract the encoding string. */ - size_t encoding_len = encoding_end - encoding_start; - char *encoding = XNMALLOC (encoding_len + 1, char); - - memcpy (encoding, encoding_start, encoding_len); - encoding[encoding_len] = '\0'; - - { - /* Canonicalize it. */ - const char *canon_encoding = po_charset_canonicalize (encoding); - if (canon_encoding == NULL) - { - error_at_line (0, 0, - logical_file_name, line_number - 1, _("\ + { + p++; + while (*p == ' ' || *p == '\t') + p++; + { + const char *encoding_start = p; + + while (c_isalnum (*p) || *p == '-' || *p == '_' || *p == '.') + p++; + { + const char *encoding_end = p; + + if (encoding_end > encoding_start) + { + /* Extract the encoding string. */ + size_t encoding_len = encoding_end - encoding_start; + char *encoding = XNMALLOC (encoding_len + 1, char); + + memcpy (encoding, encoding_start, encoding_len); + encoding[encoding_len] = '\0'; + + { + /* Canonicalize it. */ + const char *canon_encoding = po_charset_canonicalize (encoding); + if (canon_encoding == NULL) + { + error_at_line (0, 0, + logical_file_name, line_number - 1, _("\ Unknown encoding \"%s\". Proceeding with ASCII instead."), - encoding); - canon_encoding = po_charset_ascii; - } - - /* Activate it. */ - set_current_file_source_encoding (canon_encoding); - } - - free (encoding); - } - } - } - } + encoding); + canon_encoding = po_charset_ascii; + } + + /* Activate it. */ + set_current_file_source_encoding (canon_encoding); + } + + free (encoding); + } + } + } + } } } @@ -706,48 +711,48 @@ { c = phase2_getc (); if (c == '\\') - { - c = phase2_getc (); - if (c != '\n') - { - phase2_ungetc (c); - /* This shouldn't happen usually, because "A backslash is - illegal elsewhere on a line outside a string literal." */ - return '\\'; - } - /* Eat backslash-newline. */ - continuation_or_nonblank_line = true; - } + { + c = phase2_getc (); + if (c != '\n') + { + phase2_ungetc (c); + /* This shouldn't happen usually, because "A backslash is + illegal elsewhere on a line outside a string literal." */ + return '\\'; + } + /* Eat backslash-newline. */ + continuation_or_nonblank_line = true; + } else if (c == '#') - { - /* Eat a comment. */ - const char *comment; - - last_comment_line = line_number; - comment_start (); - for (;;) - { - c = phase2_getc (); - if (c == UEOF || c == '\n') - break; - /* We skip all leading white space, but not EOLs. */ - if (!(comment_at_start () && (c == ' ' || c == '\t'))) - comment_add (c); - } - comment = comment_line_end (); - if (line_number - 1 <= 2 && !continuation_or_nonblank_line) - try_to_extract_coding (comment); - continuation_or_nonblank_line = false; - return c; - } + { + /* Eat a comment. */ + const char *comment; + + last_comment_line = line_number; + comment_start (); + for (;;) + { + c = phase2_getc (); + if (c == UEOF || c == '\n') + break; + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (c == ' ' || c == '\t'))) + comment_add (c); + } + comment = comment_line_end (); + if (line_number - 1 <= 2 && !continuation_or_nonblank_line) + try_to_extract_coding (comment); + continuation_or_nonblank_line = false; + return c; + } else - { - if (c == '\n') - continuation_or_nonblank_line = false; - else if (!(c == ' ' || c == '\t' || c == '\f')) - continuation_or_nonblank_line = true; - return c; - } + { + if (c == '\n') + continuation_or_nonblank_line = false; + else if (!(c == ' ' || c == '\t' || c == '\f')) + continuation_or_nonblank_line = true; + return c; + } } } @@ -793,11 +798,13 @@ char *curr_buffer; size_t curr_buflen; size_t curr_allocated; + /* The lexical context. Used only for error message purposes. */ + lexical_context_ty lcontext; }; /* Initialize a 'struct mixed_string_buffer' to empty. */ static inline void -init_mixed_string_buffer (struct mixed_string_buffer *bp) +init_mixed_string_buffer (struct mixed_string_buffer *bp, lexical_context_ty lcontext) { bp->utf8_buffer = NULL; bp->utf8_buflen = 0; @@ -806,6 +813,7 @@ bp->curr_buffer = NULL; bp->curr_buflen = 0; bp->curr_allocated = 0; + bp->lcontext = lcontext; } /* Auxiliary function: Append a byte to bp->curr. */ @@ -828,7 +836,7 @@ { size_t new_allocated = 2 * bp->utf8_allocated + 10; if (new_allocated < bp->utf8_buflen + count) - new_allocated = bp->utf8_buflen + count; + new_allocated = bp->utf8_buflen + count; bp->utf8_allocated = new_allocated; bp->utf8_buffer = xrealloc (bp->utf8_buffer, new_allocated); } @@ -837,7 +845,7 @@ /* Auxiliary function: Append a Unicode character to bp->utf8. uc must be < 0x110000. */ static inline void -mixed_string_buffer_append_unicode (struct mixed_string_buffer *bp, unsigned int uc) +mixed_string_buffer_append_unicode (struct mixed_string_buffer *bp, ucs4_t uc) { unsigned char utf8buf[6]; int count = u8_uctomb (utf8buf, uc, 6); @@ -875,8 +883,8 @@ mixed_string_buffer_append_byte (bp, '\0'); /* Convert from the source encoding to UTF-8. */ - curr = from_current_source_encoding (bp->curr_buffer, - logical_file_name, lineno); + curr = from_current_source_encoding (bp->curr_buffer, bp->lcontext, + logical_file_name, lineno); /* Append it to bp->utf8_buffer. */ count = strlen (curr); @@ -885,7 +893,7 @@ bp->utf8_buflen += count; if (curr != bp->curr_buffer) - free (curr); + free (curr); bp->curr_buflen = 0; } } @@ -902,35 +910,35 @@ mixed_string_buffer_flush_curr_buffer (bp, line_number); /* Test whether this character and the previous one form a Unicode - surrogate character pair. */ + surrogate character pair. */ if (bp->utf16_surr != 0 - && (c >= UNICODE (0xdc00) && c < UNICODE (0xe000))) - { - unsigned short utf16buf[2]; - unsigned int uc; - - utf16buf[0] = bp->utf16_surr; - utf16buf[1] = UNICODE_VALUE (c); - if (u16_mbtouc (&uc, utf16buf, 2) != 2) - abort (); - - mixed_string_buffer_append_unicode (bp, uc); - bp->utf16_surr = 0; - } + && (c >= UNICODE (0xdc00) && c < UNICODE (0xe000))) + { + unsigned short utf16buf[2]; + ucs4_t uc; + + utf16buf[0] = bp->utf16_surr; + utf16buf[1] = UNICODE_VALUE (c); + if (u16_mbtouc (&uc, utf16buf, 2) != 2) + abort (); + + mixed_string_buffer_append_unicode (bp, uc); + bp->utf16_surr = 0; + } else - { - mixed_string_buffer_flush_utf16_surr (bp); + { + mixed_string_buffer_flush_utf16_surr (bp); - if (c >= UNICODE (0xd800) && c < UNICODE (0xdc00)) - bp->utf16_surr = UNICODE_VALUE (c); - else if (c >= UNICODE (0xdc00) && c < UNICODE (0xe000)) - { - /* A half surrogate is invalid, therefore use U+FFFD instead. */ - mixed_string_buffer_append_unicode (bp, 0xfffd); - } - else - mixed_string_buffer_append_unicode (bp, UNICODE_VALUE (c)); - } + if (c >= UNICODE (0xd800) && c < UNICODE (0xdc00)) + bp->utf16_surr = UNICODE_VALUE (c); + else if (c >= UNICODE (0xdc00) && c < UNICODE (0xe000)) + { + /* A half surrogate is invalid, therefore use U+FFFD instead. */ + mixed_string_buffer_append_unicode (bp, 0xfffd); + } + else + mixed_string_buffer_append_unicode (bp, UNICODE_VALUE (c)); + } } else { @@ -940,10 +948,10 @@ mixed_string_buffer_flush_utf16_surr (bp); /* When a newline is seen, convert the accumulated multibyte sequence. - This ensures a correct line number in the error message in case of - a conversion error. The "- 1" is to account for the newline. */ + This ensures a correct line number in the error message in case of + a conversion error. The "- 1" is to account for the newline. */ if (c == '\n') - mixed_string_buffer_flush_curr_buffer (bp, line_number - 1); + mixed_string_buffer_flush_curr_buffer (bp, line_number - 1); mixed_string_buffer_append_byte (bp, (unsigned char) c); } @@ -978,12 +986,14 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_string, /* "abc", 'abc', """abc""", '''abc''' */ - token_type_symbol, /* symbol, number */ - token_type_other /* misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_lbracket, /* [ */ + token_type_rbracket, /* ] */ + token_type_string, /* "abc", 'abc', """abc""", '''abc''' */ + token_type_symbol, /* symbol, number */ + token_type_other /* misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -991,8 +1001,8 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string, token_type_symbol */ - refcounted_string_list_ty *comment; /* for token_type_string */ + char *string; /* for token_type_string, token_type_symbol */ + refcounted_string_list_ty *comment; /* for token_type_string */ int line_number; }; @@ -1012,8 +1022,8 @@ static int phase7_getuc (int quote_char, - bool triple, bool interpret_ansic, bool interpret_unicode, - unsigned int *backslash_counter) + bool triple, bool interpret_ansic, bool interpret_unicode, + unsigned int *backslash_counter) { int c; @@ -1023,308 +1033,308 @@ c = phase2_getc (); if (c == UEOF) - return P7_EOF; + return P7_EOF; if (c == quote_char && (interpret_ansic || (*backslash_counter & 1) == 0)) - { - if (triple) - { - int c1 = phase2_getc (); - if (c1 == quote_char) - { - int c2 = phase2_getc (); - if (c2 == quote_char) - return P7_STRING_END; - phase2_ungetc (c2); - } - phase2_ungetc (c1); - return UNICODE (c); - } - else - return P7_STRING_END; - } + { + if (triple) + { + int c1 = phase2_getc (); + if (c1 == quote_char) + { + int c2 = phase2_getc (); + if (c2 == quote_char) + return P7_STRING_END; + phase2_ungetc (c2); + } + phase2_ungetc (c1); + return UNICODE (c); + } + else + return P7_STRING_END; + } if (c == '\n') - { - if (triple) - { - *backslash_counter = 0; - return UNICODE ('\n'); - } - /* In r"..." and ur"..." strings, newline is only allowed - immediately after an odd number of backslashes (although the - backslashes are not interpreted!). */ - if (!(interpret_ansic || (*backslash_counter & 1) == 0)) - { - *backslash_counter = 0; - return UNICODE ('\n'); - } - phase2_ungetc (c); - error_with_progname = false; - error (0, 0, _("%s:%d: warning: unterminated string"), - logical_file_name, line_number); - error_with_progname = true; - return P7_STRING_END; - } + { + if (triple) + { + *backslash_counter = 0; + return UNICODE ('\n'); + } + /* In r"..." and ur"..." strings, newline is only allowed + immediately after an odd number of backslashes (although the + backslashes are not interpreted!). */ + if (!(interpret_ansic || (*backslash_counter & 1) == 0)) + { + *backslash_counter = 0; + return UNICODE ('\n'); + } + phase2_ungetc (c); + error_with_progname = false; + error (0, 0, _("%s:%d: warning: unterminated string"), + logical_file_name, line_number); + error_with_progname = true; + return P7_STRING_END; + } if (c != '\\') - { - *backslash_counter = 0; - return UNICODE (c); - } + { + *backslash_counter = 0; + return UNICODE (c); + } /* Backslash handling. */ if (!interpret_ansic && !interpret_unicode) - { - ++*backslash_counter; - return UNICODE ('\\'); - } + { + ++*backslash_counter; + return UNICODE ('\\'); + } /* Dispatch according to the character following the backslash. */ c = phase2_getc (); if (c == UEOF) - { - ++*backslash_counter; - return UNICODE ('\\'); - } + { + ++*backslash_counter; + return UNICODE ('\\'); + } if (interpret_ansic) - switch (c) - { - case '\n': - continue; - case '\\': - ++*backslash_counter; - return UNICODE (c); - case '\'': case '"': - *backslash_counter = 0; - return UNICODE (c); - case 'a': - *backslash_counter = 0; - return UNICODE ('\a'); - case 'b': - *backslash_counter = 0; - return UNICODE ('\b'); - case 'f': - *backslash_counter = 0; - return UNICODE ('\f'); - case 'n': - *backslash_counter = 0; - return UNICODE ('\n'); - case 'r': - *backslash_counter = 0; - return UNICODE ('\r'); - case 't': - *backslash_counter = 0; - return UNICODE ('\t'); - case 'v': - *backslash_counter = 0; - return UNICODE ('\v'); - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': - { - int n = c - '0'; - - c = phase2_getc (); - if (c != UEOF) - { - if (c >= '0' && c <= '7') - { - n = (n << 3) + (c - '0'); - c = phase2_getc (); - if (c != UEOF) - { - if (c >= '0' && c <= '7') - n = (n << 3) + (c - '0'); - else - phase2_ungetc (c); - } - } - else - phase2_ungetc (c); - } - *backslash_counter = 0; - if (interpret_unicode) - return UNICODE (n); - else - return (unsigned char) n; - } - case 'x': - { - int c1 = phase2_getc (); - int n1; - - if (c1 >= '0' && c1 <= '9') - n1 = c1 - '0'; - else if (c1 >= 'A' && c1 <= 'F') - n1 = c1 - 'A' + 10; - else if (c1 >= 'a' && c1 <= 'f') - n1 = c1 - 'a' + 10; - else - n1 = -1; - - if (n1 >= 0) - { - int c2 = phase2_getc (); - int n2; - - if (c2 >= '0' && c2 <= '9') - n2 = c2 - '0'; - else if (c2 >= 'A' && c2 <= 'F') - n2 = c2 - 'A' + 10; - else if (c2 >= 'a' && c2 <= 'f') - n2 = c2 - 'a' + 10; - else - n2 = -1; - - if (n2 >= 0) - { - int n = (n1 << 4) + n2; - *backslash_counter = 0; - if (interpret_unicode) - return UNICODE (n); - else - return (unsigned char) n; - } - - phase2_ungetc (c2); - } - phase2_ungetc (c1); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - } + switch (c) + { + case '\n': + continue; + case '\\': + ++*backslash_counter; + return UNICODE (c); + case '\'': case '"': + *backslash_counter = 0; + return UNICODE (c); + case 'a': + *backslash_counter = 0; + return UNICODE ('\a'); + case 'b': + *backslash_counter = 0; + return UNICODE ('\b'); + case 'f': + *backslash_counter = 0; + return UNICODE ('\f'); + case 'n': + *backslash_counter = 0; + return UNICODE ('\n'); + case 'r': + *backslash_counter = 0; + return UNICODE ('\r'); + case 't': + *backslash_counter = 0; + return UNICODE ('\t'); + case 'v': + *backslash_counter = 0; + return UNICODE ('\v'); + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': + { + int n = c - '0'; + + c = phase2_getc (); + if (c != UEOF) + { + if (c >= '0' && c <= '7') + { + n = (n << 3) + (c - '0'); + c = phase2_getc (); + if (c != UEOF) + { + if (c >= '0' && c <= '7') + n = (n << 3) + (c - '0'); + else + phase2_ungetc (c); + } + } + else + phase2_ungetc (c); + } + *backslash_counter = 0; + if (interpret_unicode) + return UNICODE (n); + else + return (unsigned char) n; + } + case 'x': + { + int c1 = phase2_getc (); + int n1; + + if (c1 >= '0' && c1 <= '9') + n1 = c1 - '0'; + else if (c1 >= 'A' && c1 <= 'F') + n1 = c1 - 'A' + 10; + else if (c1 >= 'a' && c1 <= 'f') + n1 = c1 - 'a' + 10; + else + n1 = -1; + + if (n1 >= 0) + { + int c2 = phase2_getc (); + int n2; + + if (c2 >= '0' && c2 <= '9') + n2 = c2 - '0'; + else if (c2 >= 'A' && c2 <= 'F') + n2 = c2 - 'A' + 10; + else if (c2 >= 'a' && c2 <= 'f') + n2 = c2 - 'a' + 10; + else + n2 = -1; + + if (n2 >= 0) + { + int n = (n1 << 4) + n2; + *backslash_counter = 0; + if (interpret_unicode) + return UNICODE (n); + else + return (unsigned char) n; + } + + phase2_ungetc (c2); + } + phase2_ungetc (c1); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + } if (interpret_unicode) - { - if (c == 'u') - { - unsigned char buf[4]; - unsigned int n = 0; - int i; - - for (i = 0; i < 4; i++) - { - int c1 = phase2_getc (); - - if (c1 >= '0' && c1 <= '9') - n = (n << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - n = (n << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - n = (n << 4) + (c1 - 'a' + 10); - else - { - phase2_ungetc (c1); - while (--i >= 0) - phase2_ungetc (buf[i]); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - - buf[i] = c1; - } - *backslash_counter = 0; - return UNICODE (n); - } - - if (interpret_ansic) - { - if (c == 'U') - { - unsigned char buf[8]; - unsigned int n = 0; - int i; - - for (i = 0; i < 8; i++) - { - int c1 = phase2_getc (); - - if (c1 >= '0' && c1 <= '9') - n = (n << 4) + (c1 - '0'); - else if (c1 >= 'A' && c1 <= 'F') - n = (n << 4) + (c1 - 'A' + 10); - else if (c1 >= 'a' && c1 <= 'f') - n = (n << 4) + (c1 - 'a' + 10); - else - { - phase2_ungetc (c1); - while (--i >= 0) - phase2_ungetc (buf[i]); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - - buf[i] = c1; - } - if (n < 0x110000) - { - *backslash_counter = 0; - return UNICODE (n); - } - - error_with_progname = false; - error (0, 0, _("%s:%d: warning: invalid Unicode character"), - logical_file_name, line_number); - error_with_progname = true; - - while (--i >= 0) - phase2_ungetc (buf[i]); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - - if (c == 'N') - { - int c1 = phase2_getc (); - if (c1 == '{') - { - unsigned char buf[UNINAME_MAX + 1]; - int i; - unsigned int n; - - for (i = 0; i < UNINAME_MAX; i++) - { - int c2 = phase2_getc (); - if (!(c2 >= ' ' && c2 <= '~')) - { - phase2_ungetc (c2); - while (--i >= 0) - phase2_ungetc (buf[i]); - phase2_ungetc (c1); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - if (c2 == '}') - break; - buf[i] = c2; - } - buf[i] = '\0'; - - n = unicode_name_character ((char *) buf); - if (n != UNINAME_INVALID) - { - *backslash_counter = 0; - return UNICODE (n); - } - - phase2_ungetc ('}'); - while (--i >= 0) - phase2_ungetc (buf[i]); - } - phase2_ungetc (c1); - phase2_ungetc (c); - ++*backslash_counter; - return UNICODE ('\\'); - } - } - } + { + if (c == 'u') + { + unsigned char buf[4]; + unsigned int n = 0; + int i; + + for (i = 0; i < 4; i++) + { + int c1 = phase2_getc (); + + if (c1 >= '0' && c1 <= '9') + n = (n << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + n = (n << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + n = (n << 4) + (c1 - 'a' + 10); + else + { + phase2_ungetc (c1); + while (--i >= 0) + phase2_ungetc (buf[i]); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + + buf[i] = c1; + } + *backslash_counter = 0; + return UNICODE (n); + } + + if (interpret_ansic) + { + if (c == 'U') + { + unsigned char buf[8]; + unsigned int n = 0; + int i; + + for (i = 0; i < 8; i++) + { + int c1 = phase2_getc (); + + if (c1 >= '0' && c1 <= '9') + n = (n << 4) + (c1 - '0'); + else if (c1 >= 'A' && c1 <= 'F') + n = (n << 4) + (c1 - 'A' + 10); + else if (c1 >= 'a' && c1 <= 'f') + n = (n << 4) + (c1 - 'a' + 10); + else + { + phase2_ungetc (c1); + while (--i >= 0) + phase2_ungetc (buf[i]); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + + buf[i] = c1; + } + if (n < 0x110000) + { + *backslash_counter = 0; + return UNICODE (n); + } + + error_with_progname = false; + error (0, 0, _("%s:%d: warning: invalid Unicode character"), + logical_file_name, line_number); + error_with_progname = true; + + while (--i >= 0) + phase2_ungetc (buf[i]); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + + if (c == 'N') + { + int c1 = phase2_getc (); + if (c1 == '{') + { + unsigned char buf[UNINAME_MAX + 1]; + int i; + unsigned int n; + + for (i = 0; i < UNINAME_MAX; i++) + { + int c2 = phase2_getc (); + if (!(c2 >= ' ' && c2 <= '~')) + { + phase2_ungetc (c2); + while (--i >= 0) + phase2_ungetc (buf[i]); + phase2_ungetc (c1); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + if (c2 == '}') + break; + buf[i] = c2; + } + buf[i] = '\0'; + + n = unicode_name_character ((char *) buf); + if (n != UNINAME_INVALID) + { + *backslash_counter = 0; + return UNICODE (n); + } + + phase2_ungetc ('}'); + while (--i >= 0) + phase2_ungetc (buf[i]); + } + phase2_ungetc (c1); + phase2_ungetc (c); + ++*backslash_counter; + return UNICODE ('\\'); + } + } + } phase2_ungetc (c); ++*backslash_counter; @@ -1359,235 +1369,237 @@ c = phase3_getc (); switch (c) - { - case UEOF: - tp->type = token_type_eof; - return; - - case ' ': - case '\t': - case '\f': - /* Ignore whitespace and comments. */ - continue; - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* Ignore newline if and only if it is used for implicit line - joining. */ - if (open_pbb > 0) - continue; - tp->type = token_type_other; - return; - } + { + case UEOF: + tp->type = token_type_eof; + return; + + case ' ': + case '\t': + case '\f': + /* Ignore whitespace and comments. */ + continue; + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* Ignore newline if and only if it is used for implicit line + joining. */ + if (open_pbb > 0) + continue; + tp->type = token_type_other; + return; + } last_non_comment_line = tp->line_number; switch (c) - { - case '.': - { - int c1 = phase3_getc (); - phase3_ungetc (c1); - if (!(c1 >= '0' && c1 <= '9')) - { - - tp->type = token_type_other; - return; - } - } - /* FALLTHROUGH */ - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': - case 'S': case 'T': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': - case 's': case 't': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - symbol: - /* Symbol, or part of a number. */ - { - static char *buffer; - static int bufmax; - int bufpos; - - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase3_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - default: - phase3_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - return; - } - - /* Strings. */ - { - struct mixed_string_buffer literal; - int quote_char; - bool interpret_ansic; - bool interpret_unicode; - bool triple; - unsigned int backslash_counter; - - case 'R': case 'r': - { - int c1 = phase2_getc (); - if (c1 == '"' || c1 == '\'') - { - quote_char = c1; - interpret_ansic = false; - interpret_unicode = false; - goto string; - } - phase2_ungetc (c1); - goto symbol; - } - - case 'U': case 'u': - { - int c1 = phase2_getc (); - if (c1 == '"' || c1 == '\'') - { - quote_char = c1; - interpret_ansic = true; - interpret_unicode = true; - goto string; - } - if (c1 == 'R' || c1 == 'r') - { - int c2 = phase2_getc (); - if (c2 == '"' || c2 == '\'') - { - quote_char = c2; - interpret_ansic = false; - interpret_unicode = true; - goto string; - } - phase2_ungetc (c2); - } - phase2_ungetc (c1); - goto symbol; - } - - case '"': case '\'': - quote_char = c; - interpret_ansic = true; - interpret_unicode = false; - string: - triple = false; - { - int c1 = phase2_getc (); - if (c1 == quote_char) - { - int c2 = phase2_getc (); - if (c2 == quote_char) - triple = true; - else - { - phase2_ungetc (c2); - phase2_ungetc (c1); - } - } - else - phase2_ungetc (c1); - } - backslash_counter = 0; - /* Start accumulating the string. */ - init_mixed_string_buffer (&literal); - for (;;) - { - int uc = phase7_getuc (quote_char, triple, interpret_ansic, - interpret_unicode, &backslash_counter); - - if (uc == P7_EOF || uc == P7_STRING_END) - break; - - if (IS_UNICODE (uc)) - assert (UNICODE_VALUE (uc) >= 0 - && UNICODE_VALUE (uc) < 0x110000); - - mixed_string_buffer_append (&literal, uc); - } - tp->string = xstrdup (mixed_string_buffer_result (&literal)); - free_mixed_string_buffer (&literal); - tp->comment = add_reference (savable_comment); - tp->type = token_type_string; - return; - } - - case '(': - open_pbb++; - tp->type = token_type_lparen; - return; - - case ')': - if (open_pbb > 0) - open_pbb--; - tp->type = token_type_rparen; - return; - - case ',': - tp->type = token_type_comma; - return; - - case '[': case '{': - open_pbb++; - tp->type = token_type_other; - return; - - case ']': case '}': - if (open_pbb > 0) - open_pbb--; - tp->type = token_type_other; - return; - - default: - /* We could carefully recognize each of the 2 and 3 character - operators, but it is not necessary, as we only need to recognize - gettext invocations. Don't bother. */ - tp->type = token_type_other; - return; - } + { + case '.': + { + int c1 = phase3_getc (); + phase3_ungetc (c1); + if (!(c1 >= '0' && c1 <= '9')) + { + + tp->type = token_type_other; + return; + } + } + /* FALLTHROUGH */ + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': + case 'S': case 'T': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': + case 's': case 't': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + symbol: + /* Symbol, or part of a number. */ + { + static char *buffer; + static int bufmax; + int bufpos; + + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase3_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + default: + phase3_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + return; + } + + /* Strings. */ + { + struct mixed_string_buffer literal; + int quote_char; + bool interpret_ansic; + bool interpret_unicode; + bool triple; + unsigned int backslash_counter; + + case 'R': case 'r': + { + int c1 = phase2_getc (); + if (c1 == '"' || c1 == '\'') + { + quote_char = c1; + interpret_ansic = false; + interpret_unicode = false; + goto string; + } + phase2_ungetc (c1); + goto symbol; + } + + case 'U': case 'u': + { + int c1 = phase2_getc (); + if (c1 == '"' || c1 == '\'') + { + quote_char = c1; + interpret_ansic = true; + interpret_unicode = true; + goto string; + } + if (c1 == 'R' || c1 == 'r') + { + int c2 = phase2_getc (); + if (c2 == '"' || c2 == '\'') + { + quote_char = c2; + interpret_ansic = false; + interpret_unicode = true; + goto string; + } + phase2_ungetc (c2); + } + phase2_ungetc (c1); + goto symbol; + } + + case '"': case '\'': + quote_char = c; + interpret_ansic = true; + interpret_unicode = false; + string: + triple = false; + lexical_context = lc_string; + { + int c1 = phase2_getc (); + if (c1 == quote_char) + { + int c2 = phase2_getc (); + if (c2 == quote_char) + triple = true; + else + { + phase2_ungetc (c2); + phase2_ungetc (c1); + } + } + else + phase2_ungetc (c1); + } + backslash_counter = 0; + /* Start accumulating the string. */ + init_mixed_string_buffer (&literal, lc_string); + for (;;) + { + int uc = phase7_getuc (quote_char, triple, interpret_ansic, + interpret_unicode, &backslash_counter); + + if (uc == P7_EOF || uc == P7_STRING_END) + break; + + if (IS_UNICODE (uc)) + assert (UNICODE_VALUE (uc) >= 0 + && UNICODE_VALUE (uc) < 0x110000); + + mixed_string_buffer_append (&literal, uc); + } + tp->string = xstrdup (mixed_string_buffer_result (&literal)); + free_mixed_string_buffer (&literal); + tp->comment = add_reference (savable_comment); + lexical_context = lc_outside; + tp->type = token_type_string; + return; + } + + case '(': + open_pbb++; + tp->type = token_type_lparen; + return; + + case ')': + if (open_pbb > 0) + open_pbb--; + tp->type = token_type_rparen; + return; + + case ',': + tp->type = token_type_comma; + return; + + case '[': case '{': + open_pbb++; + tp->type = (c == '[' ? token_type_lbracket : token_type_other); + return; + + case ']': case '}': + if (open_pbb > 0) + open_pbb--; + tp->type = (c == ']' ? token_type_rbracket : token_type_other); + return; + + default: + /* We could carefully recognize each of the 2 and 3 character + operators, but it is not necessary, as we only need to recognize + gettext invocations. Don't bother. */ + tp->type = token_type_other; + return; + } } } @@ -1598,7 +1610,7 @@ if (tp->type != token_type_eof) { if (phase5_pushback_length == SIZEOF (phase5_pushback)) - abort (); + abort (); phase5_pushback[phase5_pushback_length++] = *tp; } } @@ -1621,10 +1633,10 @@ phase5_get (&tmp); if (tmp.type != token_type_string) - { - phase5_unget (&tmp); - return; - } + { + phase5_unget (&tmp); + return; + } len = strlen (tp->string); tp->string = xrealloc (tp->string, len + strlen (tmp.string) + 1); strcpy (tp->string + len, tmp.string); @@ -1655,14 +1667,17 @@ and msgid_plural can contain subexpressions of the same form. */ -/* Extract messages until the next balanced closing parenthesis. +/* Extract messages until the next balanced closing parenthesis or bracket. Extracted messages are added to MLP. - Return true upon eof, false upon closing parenthesis. */ + DELIM can be either token_type_rparen or token_type_rbracket, or + token_type_eof to accept both. + Return true upon eof, false upon closing parenthesis or bracket. */ static bool -extract_parenthesized (message_list_ty *mlp, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - struct arglist_parser *argparser) +extract_balanced (message_list_ty *mlp, + token_type_ty delim, + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + struct arglist_parser *argparser) { /* Current argument number. */ int arg = 1; @@ -1676,7 +1691,7 @@ /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0. */ state = 0; @@ -1687,104 +1702,137 @@ x_python_lex (&token); switch (token.type) - { - case token_type_symbol: - { - void *keyword_value; - - if (hash_find_entry (&keywords, token.string, strlen (token.string), - &keyword_value) - == 0) - { - next_shapes = (const struct callshapes *) keyword_value; - state = 1; - } - else - state = 0; - } - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, strlen (token.string))); - free (token.string); - continue; - - case token_type_lparen: - if (extract_parenthesized (mlp, inner_context, next_context_iter, - arglist_parser_alloc (mlp, - state ? next_shapes : NULL))) - { - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_current_file_source_encoding; - return true; - } - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_current_file_source_encoding; - return false; - - case token_type_comma: - arg++; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - state = 0; - continue; - - case token_type_string: - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - xgettext_current_source_encoding = po_charset_utf8; - if (extract_all) - remember_a_message (mlp, NULL, token.string, inner_context, - &pos, token.comment); - else - arglist_parser_remember (argparser, arg, token.string, - inner_context, - pos.file_name, pos.line_number, - token.comment); - xgettext_current_source_encoding = xgettext_current_file_source_encoding; - } - drop_reference (token.comment); - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_eof: - xgettext_current_source_encoding = po_charset_utf8; - arglist_parser_done (argparser, arg); - xgettext_current_source_encoding = xgettext_current_file_source_encoding; - return true; - - case token_type_other: - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - default: - abort (); - } + { + case token_type_symbol: + { + void *keyword_value; + + if (hash_find_entry (&keywords, token.string, strlen (token.string), + &keyword_value) + == 0) + { + next_shapes = (const struct callshapes *) keyword_value; + state = 1; + } + else + state = 0; + } + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, strlen (token.string))); + free (token.string); + continue; + + case token_type_lparen: + if (extract_balanced (mlp, token_type_rparen, + inner_context, next_context_iter, + arglist_parser_alloc (mlp, + state ? next_shapes : NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + if (delim == token_type_rparen || delim == token_type_eof) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + return false; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_comma: + arg++; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + state = 0; + continue; + + case token_type_lbracket: + if (extract_balanced (mlp, token_type_rbracket, + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + return true; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rbracket: + if (delim == token_type_rbracket || delim == token_type_eof) + { + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + return false; + } + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_string: + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + xgettext_current_source_encoding = po_charset_utf8; + if (extract_all) + remember_a_message (mlp, NULL, token.string, inner_context, + &pos, NULL, token.comment); + else + arglist_parser_remember (argparser, arg, token.string, + inner_context, + pos.file_name, pos.line_number, + token.comment); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + } + drop_reference (token.comment); + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_eof: + xgettext_current_source_encoding = po_charset_utf8; + arglist_parser_done (argparser, arg); + xgettext_current_source_encoding = xgettext_current_file_source_encoding; + return true; + + case token_type_other: + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + default: + abort (); + } } } void extract_python (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -1793,6 +1841,8 @@ logical_file_name = xstrdup (logical_filename); line_number = 1; + lexical_context = lc_outside; + last_comment_line = -1; last_non_comment_line = -1; @@ -1814,10 +1864,11 @@ init_keywords (); - /* Eat tokens until eof is seen. When extract_parenthesized returns + /* Eat tokens until eof is seen. When extract_balanced returns due to an unbalanced closing parenthesis, just restart it. */ - while (!extract_parenthesized (mlp, null_context, null_context_list_iterator, - arglist_parser_alloc (mlp, NULL))) + while (!extract_balanced (mlp, token_type_eof, + null_context, null_context_list_iterator, + arglist_parser_alloc (mlp, NULL))) ; fp = NULL; diff -Nru gettext-0.17/gettext-tools/src/x-python.h gettext-0.18.1.1/gettext-tools/src/x-python.h --- gettext-0.17/gettext-tools/src/x-python.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-python.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_PYTHON \ - { "py", "Python" }, \ + { "py", "Python" }, \ #define SCANNERS_PYTHON \ - { "Python", extract_python, \ - &flag_table_python, &formatstring_python, NULL }, \ + { "Python", extract_python, \ + &flag_table_python, &formatstring_python, NULL }, \ /* Scan a Python file and add its translatable strings to mdlp. */ extern void extract_python (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_python_keyword (const char *keyword); extern void x_python_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-rst.c gettext-0.18.1.1/gettext-tools/src/x-rst.c --- gettext-0.17/gettext-tools/src/x-rst.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-rst.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext RST backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2001. @@ -31,7 +31,6 @@ #include "c-ctype.h" #include "message.h" #include "xgettext.h" -#include "x-rst.h" #include "error.h" #include "error-progname.h" #include "xalloc.h" @@ -58,9 +57,9 @@ void extract_rst (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { static char *buffer; static int bufmax; @@ -78,160 +77,160 @@ c = getc (f); if (c == EOF) - break; + break; /* Ignore blank line. */ if (c == '\n') - { - line_number++; - continue; - } + { + line_number++; + continue; + } /* Ignore comment line. */ if (c == '#') - { - do - c = getc (f); - while (c != EOF && c != '\n'); - if (c == EOF) - break; - line_number++; - continue; - } + { + do + c = getc (f); + while (c != EOF && c != '\n'); + if (c == EOF) + break; + line_number++; + continue; + } /* Read ModuleName.ConstName. */ bufpos = 0; for (;;) - { - if (c == EOF || c == '\n') - { - error_with_progname = false; - error (EXIT_FAILURE, 0, _("%s:%d: invalid string definition"), - logical_filename, line_number); - error_with_progname = true; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - if (c == '=') - break; - buffer[bufpos++] = c; - c = getc (f); - if (c == EOF && ferror (f)) - goto bomb; - } + { + if (c == EOF || c == '\n') + { + error_with_progname = false; + error (EXIT_FAILURE, 0, _("%s:%d: invalid string definition"), + logical_filename, line_number); + error_with_progname = true; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + if (c == '=') + break; + buffer[bufpos++] = c; + c = getc (f); + if (c == EOF && ferror (f)) + goto bomb; + } buffer[bufpos] = '\0'; location = xstrdup (buffer); /* Read StringExpression. */ bufpos = 0; for (;;) - { - c = getc (f); - if (c == EOF) - break; - else if (c == '\n') - { - line_number++; - break; - } - else if (c == '\'') - { - for (;;) - { - c = getc (f); - /* Embedded single quotes like 'abc''def' don't occur. - See fpc-1.0.4/compiler/cresstr.pas. */ - if (c == EOF || c == '\n' || c == '\'') - break; - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (c == EOF) - break; - else if (c == '\n') - { - line_number++; - break; - } - } - else if (c == '#') - { - int n; - c = getc (f); - if (c == EOF && ferror (f)) - goto bomb; - if (c == EOF || !c_isdigit (c)) - { - error_with_progname = false; - error (EXIT_FAILURE, 0, _("%s:%d: missing number after #"), - logical_filename, line_number); - error_with_progname = true; - } - n = (c - '0'); - for (;;) - { - c = getc (f); - if (c == EOF || !c_isdigit (c)) - break; - n = n * 10 + (c - '0'); - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = (unsigned char) n; - if (c == EOF) - break; - ungetc (c, f); - } - else if (c == '+') - { - c = getc (f); - if (c == EOF) - break; - if (c == '\n') - line_number++; - else - ungetc (c, f); - } - else - { - error_with_progname = false; - error (EXIT_FAILURE, 0, _("%s:%d: invalid string expression"), - logical_filename, line_number); - error_with_progname = true; - } - } + { + c = getc (f); + if (c == EOF) + break; + else if (c == '\n') + { + line_number++; + break; + } + else if (c == '\'') + { + for (;;) + { + c = getc (f); + /* Embedded single quotes like 'abc''def' don't occur. + See fpc-1.0.4/compiler/cresstr.pas. */ + if (c == EOF || c == '\n' || c == '\'') + break; + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (c == EOF) + break; + else if (c == '\n') + { + line_number++; + break; + } + } + else if (c == '#') + { + int n; + c = getc (f); + if (c == EOF && ferror (f)) + goto bomb; + if (c == EOF || !c_isdigit (c)) + { + error_with_progname = false; + error (EXIT_FAILURE, 0, _("%s:%d: missing number after #"), + logical_filename, line_number); + error_with_progname = true; + } + n = (c - '0'); + for (;;) + { + c = getc (f); + if (c == EOF || !c_isdigit (c)) + break; + n = n * 10 + (c - '0'); + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = (unsigned char) n; + if (c == EOF) + break; + ungetc (c, f); + } + else if (c == '+') + { + c = getc (f); + if (c == EOF) + break; + if (c == '\n') + line_number++; + else + ungetc (c, f); + } + else + { + error_with_progname = false; + error (EXIT_FAILURE, 0, _("%s:%d: invalid string expression"), + logical_filename, line_number); + error_with_progname = true; + } + } if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } buffer[bufpos] = '\0'; msgid = xstrdup (buffer); pos.file_name = location; pos.line_number = (size_t)(-1); - remember_a_message (mlp, NULL, msgid, null_context, &pos, NULL); + remember_a_message (mlp, NULL, msgid, null_context, &pos, NULL, NULL); /* Here c is the last read character: EOF or '\n'. */ if (c == EOF) - break; + break; } if (ferror (f)) { bomb: error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_filename); + real_filename); } } diff -Nru gettext-0.17/gettext-tools/src/x-rst.h gettext-0.18.1.1/gettext-tools/src/x-rst.h --- gettext-0.17/gettext-tools/src/x-rst.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-rst.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_RST \ - { "rst", "RST" }, \ + { "rst", "RST" }, \ #define SCANNERS_RST \ - { "RST", extract_rst, \ - NULL, &formatstring_pascal, NULL }, \ + { "RST", extract_rst, \ + NULL, &formatstring_pascal, NULL }, \ /* Scan an RST file and add its translatable strings to mdlp. */ extern void extract_rst (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/x-scheme.c gettext-0.18.1.1/gettext-tools/src/x-scheme.c --- gettext-0.17/gettext-tools/src/x-scheme.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-scheme.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Scheme backend. - Copyright (C) 2004-2007 Free Software Foundation, Inc. + Copyright (C) 2004-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2004-2005. @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-scheme.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -99,22 +98,22 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Lisp symbol. - Extract the symbol name part. */ + Extract the symbol name part. */ colon = strchr (name, ':'); if (colon != NULL && colon < end) - { - name = colon + 1; - if (name < end && *name == ':') - name++; - colon = strchr (name, ':'); - if (colon != NULL && colon < end) - return; - } + { + name = colon + 1; + if (name < end && *name == ':') + name++; + colon = strchr (name, ':'); + if (colon != NULL && colon < end) + return; + } insert_keyword_callshape (&keywords, name, end - name, &shape); } @@ -128,9 +127,9 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ - x_scheme_keyword ("gettext"); /* libguile/i18n.c */ - x_scheme_keyword ("ngettext:1,2"); /* libguile/i18n.c */ + xgettext.texi! */ + x_scheme_keyword ("gettext"); /* libguile/i18n.c */ + x_scheme_keyword ("ngettext:1,2"); /* libguile/i18n.c */ x_scheme_keyword ("gettext-noop"); default_keywords = false; } @@ -169,7 +168,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -194,9 +193,9 @@ /* A token consists of a sequence of characters. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - char *chars; /* the token's constituents */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + char *chars; /* the token's constituents */ }; /* Initialize a 'struct token'. */ @@ -241,13 +240,13 @@ int c = do_getc (); if (c == EOF) - break; + break; if (c == ' ' || c == '\r' || c == '\f' || c == '\t' || c == '\n' - || c == '"' || c == '(' || c == ')' || c == ';') - { - do_ungetc (c); - break; - } + || c == '"' || c == '(' || c == ')' || c == ';') + { + do_ungetc (c); + break; + } grow_token (tp); tp->chars[tp->charcount++] = c; } @@ -271,22 +270,22 @@ { p++; if (p == p_end) - return false; + return false; } do { int c = *p++; if (c >= '0' && c <= '9') - c = c - '0'; + c = c - '0'; else if (c >= 'A' && c <= 'F') - c = c - 'A' + 10; + c = c - 'A' + 10; else if (c >= 'a' && c <= 'f') - c = c - 'a' + 10; + c = c - 'a' + 10; else - return false; + return false; if (c >= radix) - return false; + return false; } while (p < p_end); return true; @@ -327,11 +326,11 @@ { p++; if (p == p_end) - return false; + return false; seen_sign = true; /* Recognize complex number syntax: {'+'|'-'} 'i' */ if (unconstrained && (*p == 'I' || *p == 'i') && p + 1 == p_end) - return true; + return true; } /* Parse digits before dot or exponent or slash. */ seen_digits = false; @@ -340,23 +339,23 @@ int c = *p; if (c >= '0' && c <= '9') - c = c - '0'; + c = c - '0'; else if (c >= 'A' && c <= 'F') - { - if (c >= 'D' && radix == 10) /* exponent? */ - break; - c = c - 'A' + 10; - } + { + if (c >= 'D' && radix == 10) /* exponent? */ + break; + c = c - 'A' + 10; + } else if (c >= 'a' && c <= 'f') - { - if (c >= 'd' && radix == 10) /* exponent? */ - break; - c = c - 'a' + 10; - } + { + if (c >= 'd' && radix == 10) /* exponent? */ + break; + c = c - 'a' + 10; + } else - break; + break; if (c >= radix) - return false; + return false; seen_digits = true; p++; } @@ -367,104 +366,104 @@ { /* If we have no digits so far, we need a decimal point later. */ if (!seen_digits && !(*p == '.' && radix == 10)) - return false; + return false; /* Trailing '#' signs are equivalent to zeroes. */ while (p < p_end && *p == '#') - p++; + p++; if (p < p_end) - { - if (*p == '/') - { - /* Parse digits after the slash. */ - bool all_zeroes = true; - p++; - for (; p < p_end; p++) - { - int c = *p; - - if (c >= '0' && c <= '9') - c = c - '0'; - else if (c >= 'A' && c <= 'F') - c = c - 'A' + 10; - else if (c >= 'a' && c <= 'f') - c = c - 'a' + 10; - else - break; - if (c >= radix) - return false; - if (c != 0) - all_zeroes = false; - } - /* A zero denominator is not allowed. */ - if (all_zeroes) - return false; - /* Trailing '#' signs are equivalent to zeroes. */ - while (p < p_end && *p == '#') - p++; - } - else - { - if (*p == '.') - { - /* Decimal point notation. */ - if (radix != 10) - return false; - /* Parse digits after the decimal point. */ - p++; - for (; p < p_end; p++) - { - int c = *p; - - if (c >= '0' && c <= '9') - seen_digits = true; - else - break; - } - /* Digits are required before or after the decimal point. */ - if (!seen_digits) - return false; - /* Trailing '#' signs are equivalent to zeroes. */ - while (p < p_end && *p == '#') - p++; - } - if (p < p_end) - { - /* Parse exponent. */ - switch (*p) - { - case 'D': case 'd': - case 'E': case 'e': - case 'F': case 'f': - case 'L': case 'l': - case 'S': case 's': - if (radix != 10) - return false; - p++; - if (p == p_end) - return false; - if (*p == '+' || *p == '-') - { - p++; - if (p == p_end) - return false; - } - if (!(*p >= '0' && *p <= '9')) - return false; - for (;;) - { - p++; - if (p == p_end) - break; - if (!(*p >= '0' && *p <= '9')) - break; - } - break; - default: - break; - } - } - } - } + { + if (*p == '/') + { + /* Parse digits after the slash. */ + bool all_zeroes = true; + p++; + for (; p < p_end; p++) + { + int c = *p; + + if (c >= '0' && c <= '9') + c = c - '0'; + else if (c >= 'A' && c <= 'F') + c = c - 'A' + 10; + else if (c >= 'a' && c <= 'f') + c = c - 'a' + 10; + else + break; + if (c >= radix) + return false; + if (c != 0) + all_zeroes = false; + } + /* A zero denominator is not allowed. */ + if (all_zeroes) + return false; + /* Trailing '#' signs are equivalent to zeroes. */ + while (p < p_end && *p == '#') + p++; + } + else + { + if (*p == '.') + { + /* Decimal point notation. */ + if (radix != 10) + return false; + /* Parse digits after the decimal point. */ + p++; + for (; p < p_end; p++) + { + int c = *p; + + if (c >= '0' && c <= '9') + seen_digits = true; + else + break; + } + /* Digits are required before or after the decimal point. */ + if (!seen_digits) + return false; + /* Trailing '#' signs are equivalent to zeroes. */ + while (p < p_end && *p == '#') + p++; + } + if (p < p_end) + { + /* Parse exponent. */ + switch (*p) + { + case 'D': case 'd': + case 'E': case 'e': + case 'F': case 'f': + case 'L': case 'l': + case 'S': case 's': + if (radix != 10) + return false; + p++; + if (p == p_end) + return false; + if (*p == '+' || *p == '-') + { + p++; + if (p == p_end) + return false; + } + if (!(*p >= '0' && *p <= '9')) + return false; + for (;;) + { + p++; + if (p == p_end) + break; + if (!(*p >= '0' && *p <= '9')) + break; + } + break; + default: + break; + } + } + } + } } if (p == p_end) return true; @@ -473,21 +472,21 @@ { /* Recognize the syntax {'+'|'-'} REAL-NUMBER-WITHOUT-SIGN 'i' */ if (seen_sign && (*p == 'I' || *p == 'i') && p + 1 == p_end) - return true; + return true; /* Recognize the syntaxes - REAL-NUMBER {'+'|'-'} REAL-NUMBER-WITHOUT-SIGN 'i' - REAL-NUMBER {'+'|'-'} 'i' + REAL-NUMBER {'+'|'-'} REAL-NUMBER-WITHOUT-SIGN 'i' + REAL-NUMBER {'+'|'-'} 'i' */ if (*p == '+' || *p == '-') - return (p_end[-1] == 'I' || p_end[-1] == 'i') - && (p + 1 == p_end - 1 - || is_other_number_syntax (p, p_end - 1 - p, radix, false)); + return (p_end[-1] == 'I' || p_end[-1] == 'i') + && (p + 1 == p_end - 1 + || is_other_number_syntax (p, p_end - 1 - p, radix, false)); /* Recognize the syntax REAL-NUMBER '@' REAL-NUMBER */ if (*p == '@') - { - p++; - return is_other_number_syntax (p, p_end - p, radix, false); - } + { + p++; + return is_other_number_syntax (p, p_end - p, radix, false); + } } return false; } @@ -510,46 +509,46 @@ while (len >= 2 && *str == '#') { switch (str[1]) - { - case 'B': case 'b': - if (seen_radix_prefix) - return false; - radix = 2; - seen_radix_prefix = true; - break; - case 'O': case 'o': - if (seen_radix_prefix) - return false; - radix = 8; - seen_radix_prefix = true; - break; - case 'D': case 'd': - if (seen_radix_prefix) - return false; - radix = 10; - seen_radix_prefix = true; - break; - case 'X': case 'x': - if (seen_radix_prefix) - return false; - radix = 16; - seen_radix_prefix = true; - break; - case 'E': case 'e': - if (seen_exactness_prefix) - return false; - exactness = exact; - seen_exactness_prefix = true; - break; - case 'I': case 'i': - if (seen_exactness_prefix) - return false; - exactness = inexact; - seen_exactness_prefix = true; - break; - default: - return false; - } + { + case 'B': case 'b': + if (seen_radix_prefix) + return false; + radix = 2; + seen_radix_prefix = true; + break; + case 'O': case 'o': + if (seen_radix_prefix) + return false; + radix = 8; + seen_radix_prefix = true; + break; + case 'D': case 'd': + if (seen_radix_prefix) + return false; + radix = 10; + seen_radix_prefix = true; + break; + case 'X': case 'x': + if (seen_radix_prefix) + return false; + radix = 16; + seen_radix_prefix = true; + break; + case 'E': case 'e': + if (seen_exactness_prefix) + return false; + exactness = exact; + seen_exactness_prefix = true; + break; + case 'I': case 'i': + if (seen_exactness_prefix) + return false; + exactness = inexact; + seen_exactness_prefix = true; + break; + default: + return false; + } str += 2; len -= 2; } @@ -557,15 +556,15 @@ { /* Try to parse an integer. */ if (is_integer_syntax (str, len, 10)) - return true; + return true; /* FIXME: Other Scheme implementations support exact rational numbers - or exact complex numbers. */ + or exact complex numbers. */ } if (exactness != exact) { /* Try to parse a rational, floating-point or complex number. */ if (is_other_number_syntax (str, len, 10, true)) - return true; + return true; } return false; } @@ -600,7 +599,7 @@ { buflen -= chars_to_remove; while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (chars_to_remove == 0 && buflen >= bufmax) { @@ -631,19 +630,19 @@ Other objects need not to be represented precisely. */ enum object_type { - t_symbol, /* symbol */ - t_string, /* string */ - t_other, /* other kind of real object */ - t_dot, /* '.' pseudo object */ - t_close, /* ')' pseudo object */ - t_eof /* EOF marker */ + t_symbol, /* symbol */ + t_string, /* string */ + t_other, /* other kind of real object */ + t_dot, /* '.' pseudo object */ + t_close, /* ')' pseudo object */ + t_eof /* EOF marker */ }; struct object { enum object_type type; - struct token *token; /* for t_symbol and t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_symbol and t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct object'. */ @@ -685,506 +684,506 @@ int c = do_getc (); switch (c) - { - case EOF: - op->type = t_eof; - return; - - case ' ': case '\r': case '\f': case '\t': - continue; - - case '\n': - /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between - both. */ - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - continue; - - case ';': - { - bool all_semicolons = true; - - last_comment_line = line_number; - comment_start (); - for (;;) - { - c = do_getc (); - if (c == EOF || c == '\n') - break; - if (c != ';') - all_semicolons = false; - if (!all_semicolons) - { - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - } - comment_line_end (0); - continue; - } - - case '(': - { - int arg = 0; /* Current argument number. */ - flag_context_list_iterator_ty context_iter; - const struct callshapes *shapes = NULL; - struct arglist_parser *argparser = NULL; - - for (;; arg++) - { - struct object inner; - flag_context_ty inner_context; - - if (arg == 0) - inner_context = null_context; - else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - - read_object (&inner, inner_context); - - /* Recognize end of list. */ - if (inner.type == t_close) - { - op->type = t_other; - last_non_comment_line = line_number; - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return; - } - - /* Dots are not allowed in every position. - But be tolerant. */ - - /* EOF inside list is illegal. - But be tolerant. */ - if (inner.type == t_eof) - break; - - if (arg == 0) - { - /* This is the function position. */ - if (inner.type == t_symbol) - { - char *symbol_name = string_of_object (&inner); - void *keyword_value; - - if (hash_find_entry (&keywords, - symbol_name, strlen (symbol_name), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - symbol_name, strlen (symbol_name))); - - free (symbol_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (argparser != NULL && inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_object (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - } - - free_object (&inner); - } - if (argparser != NULL) - arglist_parser_done (argparser, arg); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - - case ')': - /* Tell the caller about the end of list. - Unmatched closing parenthesis is illegal. - But be tolerant. */ - op->type = t_close; - last_non_comment_line = line_number; - return; - - case ',': - { - int c = do_getc (); - /* The ,@ handling inside lists is wrong anyway, because - ,@form expands to an unknown number of elements. */ - if (c != EOF && c != '@') - do_ungetc (c); - } - /*FALLTHROUGH*/ - case '\'': - case '`': - { - struct object inner; - - read_object (&inner, null_context); - - /* Dots and EOF are not allowed here. But be tolerant. */ - - free_object (&inner); - - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '#': - /* Dispatch macro handling. */ - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - { - op->type = t_other; - return; - } - - switch (c) - { - case '(': /* Vector */ - do_ungetc (c); - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case 'T': case 't': /* Boolean true */ - case 'F': case 'f': /* Boolean false */ - op->type = t_other; - last_non_comment_line = line_number; - return; - - case 'B': case 'b': - case 'O': case 'o': - case 'D': case 'd': - case 'X': case 'x': - case 'E': case 'e': - case 'I': case 'i': - { - struct token token; - do_ungetc (c); - read_token (&token, '#'); - if (is_number (&token)) - { - /* A number. */ - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - else - { - if (token.charcount == 2 - && (token.chars[1] == 'e' || token.chars[1] == 'i')) - { - c = do_getc (); - if (c != EOF) - do_ungetc (c); - if (c == '(') - /* Homogenous vector syntax, see arrays.scm. */ - case 'a': /* Vectors of char */ - case 'c': /* Vectors of complex */ - /*case 'e':*/ /* Vectors of long */ - case 'h': /* Vectors of short */ - /*case 'i':*/ /* Vectors of double-float */ - case 'l': /* Vectors of long long */ - case 's': /* Vectors of single-float */ - case 'u': /* Vectors of unsigned long */ - case 'y': /* Vectors of byte */ - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_token (&token); - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - } - /* Unknown # object. But be tolerant. */ - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - } - - case '!': - /* Block comment '#! ... \n!#\n'. We don't extract it - because it's only used to introduce scripts on Unix. */ - { - int last1 = 0; - int last2 = 0; - int last3 = 0; - - for (;;) - { - c = do_getc (); - if (c == EOF) - /* EOF is not allowed here. But be tolerant. */ - break; - if (last3 == '\n' && last2 == '!' && last1 == '#' - && c == '\n') - break; - last3 = last2; - last2 = last1; - last1 = c; - } - continue; - } - - case '*': - /* Bit vector. */ - { - struct token token; - read_token (&token, c); - /* The token should consists only of '0' and '1', except - for the initial '*'. But be tolerant. */ - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case '{': - /* Symbol with multiple escapes: #{...}# */ - { - op->token = XMALLOC (struct token); - - init_token (op->token); - - for (;;) - { - c = do_getc (); - - if (c == EOF) - break; - if (c == '\\') - { - c = do_getc (); - if (c == EOF) - break; - } - else if (c == '}') - { - c = do_getc (); - if (c == '#') - break; - if (c != EOF) - do_ungetc (c); - c = '}'; - } - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - - op->type = t_symbol; - last_non_comment_line = line_number; - return; - } - - case '\\': - /* Character. */ - { - struct token token; - c = do_getc (); - if (c != EOF) - { - read_token (&token, c); - free_token (&token); - } - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - case ':': /* Keyword. */ - case '&': /* Deprecated keyword, installed in optargs.scm. */ - { - struct token token; - read_token (&token, '-'); - free_token (&token); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - /* The following are installed through read-hash-extend. */ - - /* arrays.scm */ - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - /* Multidimensional array syntax: #nx(...) where - n ::= DIGIT+ - x ::= {'a'|'b'|'c'|'e'|'i'|'s'|'u'} - */ - do - c = do_getc (); - while (c >= '0' && c <= '9'); - /* c should be one of {'a'|'b'|'c'|'e'|'i'|'s'|'u'}. - But be tolerant. */ - /*FALLTHROUGH*/ - case '\'': /* boot-9.scm */ - case '.': /* boot-9.scm */ - case ',': /* srfi-10.scm */ - { - struct object inner; - read_object (&inner, null_context); - /* Dots and EOF are not allowed here. - But be tolerant. */ - free_object (&inner); - op->type = t_other; - last_non_comment_line = line_number; - return; - } - - default: - /* Unknown. */ - op->type = t_other; - last_non_comment_line = line_number; - return; - } - /*NOTREACHED*/ - abort (); - } - - case '"': - { - op->token = XMALLOC (struct token); - init_token (op->token); - op->line_number_at_start = line_number; - for (;;) - { - int c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - if (c == '"') - break; - if (c == '\\') - { - c = do_getc (); - if (c == EOF) - /* Invalid input. Be tolerant, no error message. */ - break; - switch (c) - { - case '\n': - continue; - case '0': - c = '\0'; - break; - case 'a': - c = '\a'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - default: - break; - } - } - grow_token (op->token); - op->token->chars[op->token->charcount++] = c; - } - op->type = t_string; - - if (extract_all) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = op->line_number_at_start; - remember_a_message (mlp, NULL, string_of_object (op), - null_context, &pos, savable_comment); - } - last_non_comment_line = line_number; - return; - } - - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - case '+': case '-': case '.': - /* Read a number or symbol token. */ - op->token = XMALLOC (struct token); - read_token (op->token, c); - if (op->token->charcount == 1 && op->token->chars[0] == '.') - { - free_token (op->token); - free (op->token); - op->type = t_dot; - } - else if (is_number (op->token)) - { - /* A number. */ - free_token (op->token); - free (op->token); - op->type = t_other; - } - else - { - /* A symbol. */ - op->type = t_symbol; - } - last_non_comment_line = line_number; - return; - - case ':': - default: - /* Read a symbol token. */ - op->token = XMALLOC (struct token); - read_token (op->token, c); - op->type = t_symbol; - last_non_comment_line = line_number; - return; - } + { + case EOF: + op->type = t_eof; + return; + + case ' ': case '\r': case '\f': case '\t': + continue; + + case '\n': + /* Comments assumed to be grouped with a message must immediately + precede it, with no non-whitespace token on a line between + both. */ + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + continue; + + case ';': + { + bool all_semicolons = true; + + last_comment_line = line_number; + comment_start (); + for (;;) + { + c = do_getc (); + if (c == EOF || c == '\n') + break; + if (c != ';') + all_semicolons = false; + if (!all_semicolons) + { + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + } + comment_line_end (0); + continue; + } + + case '(': + { + int arg = 0; /* Current argument number. */ + flag_context_list_iterator_ty context_iter; + const struct callshapes *shapes = NULL; + struct arglist_parser *argparser = NULL; + + for (;; arg++) + { + struct object inner; + flag_context_ty inner_context; + + if (arg == 0) + inner_context = null_context; + else + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + + read_object (&inner, inner_context); + + /* Recognize end of list. */ + if (inner.type == t_close) + { + op->type = t_other; + last_non_comment_line = line_number; + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return; + } + + /* Dots are not allowed in every position. + But be tolerant. */ + + /* EOF inside list is illegal. + But be tolerant. */ + if (inner.type == t_eof) + break; + + if (arg == 0) + { + /* This is the function position. */ + if (inner.type == t_symbol) + { + char *symbol_name = string_of_object (&inner); + void *keyword_value; + + if (hash_find_entry (&keywords, + symbol_name, strlen (symbol_name), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + symbol_name, strlen (symbol_name))); + + free (symbol_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (argparser != NULL && inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_object (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + } + + free_object (&inner); + } + if (argparser != NULL) + arglist_parser_done (argparser, arg); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + + case ')': + /* Tell the caller about the end of list. + Unmatched closing parenthesis is illegal. + But be tolerant. */ + op->type = t_close; + last_non_comment_line = line_number; + return; + + case ',': + { + int c = do_getc (); + /* The ,@ handling inside lists is wrong anyway, because + ,@form expands to an unknown number of elements. */ + if (c != EOF && c != '@') + do_ungetc (c); + } + /*FALLTHROUGH*/ + case '\'': + case '`': + { + struct object inner; + + read_object (&inner, null_context); + + /* Dots and EOF are not allowed here. But be tolerant. */ + + free_object (&inner); + + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '#': + /* Dispatch macro handling. */ + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + { + op->type = t_other; + return; + } + + switch (c) + { + case '(': /* Vector */ + do_ungetc (c); + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case 'T': case 't': /* Boolean true */ + case 'F': case 'f': /* Boolean false */ + op->type = t_other; + last_non_comment_line = line_number; + return; + + case 'B': case 'b': + case 'O': case 'o': + case 'D': case 'd': + case 'X': case 'x': + case 'E': case 'e': + case 'I': case 'i': + { + struct token token; + do_ungetc (c); + read_token (&token, '#'); + if (is_number (&token)) + { + /* A number. */ + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + else + { + if (token.charcount == 2 + && (token.chars[1] == 'e' || token.chars[1] == 'i')) + { + c = do_getc (); + if (c != EOF) + do_ungetc (c); + if (c == '(') + /* Homogenous vector syntax, see arrays.scm. */ + case 'a': /* Vectors of char */ + case 'c': /* Vectors of complex */ + /*case 'e':*/ /* Vectors of long */ + case 'h': /* Vectors of short */ + /*case 'i':*/ /* Vectors of double-float */ + case 'l': /* Vectors of long long */ + case 's': /* Vectors of single-float */ + case 'u': /* Vectors of unsigned long */ + case 'y': /* Vectors of byte */ + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_token (&token); + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + } + /* Unknown # object. But be tolerant. */ + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + } + + case '!': + /* Block comment '#! ... \n!#\n'. We don't extract it + because it's only used to introduce scripts on Unix. */ + { + int last1 = 0; + int last2 = 0; + int last3 = 0; + + for (;;) + { + c = do_getc (); + if (c == EOF) + /* EOF is not allowed here. But be tolerant. */ + break; + if (last3 == '\n' && last2 == '!' && last1 == '#' + && c == '\n') + break; + last3 = last2; + last2 = last1; + last1 = c; + } + continue; + } + + case '*': + /* Bit vector. */ + { + struct token token; + read_token (&token, c); + /* The token should consists only of '0' and '1', except + for the initial '*'. But be tolerant. */ + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case '{': + /* Symbol with multiple escapes: #{...}# */ + { + op->token = XMALLOC (struct token); + + init_token (op->token); + + for (;;) + { + c = do_getc (); + + if (c == EOF) + break; + if (c == '\\') + { + c = do_getc (); + if (c == EOF) + break; + } + else if (c == '}') + { + c = do_getc (); + if (c == '#') + break; + if (c != EOF) + do_ungetc (c); + c = '}'; + } + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + + op->type = t_symbol; + last_non_comment_line = line_number; + return; + } + + case '\\': + /* Character. */ + { + struct token token; + c = do_getc (); + if (c != EOF) + { + read_token (&token, c); + free_token (&token); + } + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + case ':': /* Keyword. */ + case '&': /* Deprecated keyword, installed in optargs.scm. */ + { + struct token token; + read_token (&token, '-'); + free_token (&token); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + /* The following are installed through read-hash-extend. */ + + /* arrays.scm */ + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + /* Multidimensional array syntax: #nx(...) where + n ::= DIGIT+ + x ::= {'a'|'b'|'c'|'e'|'i'|'s'|'u'} + */ + do + c = do_getc (); + while (c >= '0' && c <= '9'); + /* c should be one of {'a'|'b'|'c'|'e'|'i'|'s'|'u'}. + But be tolerant. */ + /*FALLTHROUGH*/ + case '\'': /* boot-9.scm */ + case '.': /* boot-9.scm */ + case ',': /* srfi-10.scm */ + { + struct object inner; + read_object (&inner, null_context); + /* Dots and EOF are not allowed here. + But be tolerant. */ + free_object (&inner); + op->type = t_other; + last_non_comment_line = line_number; + return; + } + + default: + /* Unknown. */ + op->type = t_other; + last_non_comment_line = line_number; + return; + } + /*NOTREACHED*/ + abort (); + } + + case '"': + { + op->token = XMALLOC (struct token); + init_token (op->token); + op->line_number_at_start = line_number; + for (;;) + { + int c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + if (c == '"') + break; + if (c == '\\') + { + c = do_getc (); + if (c == EOF) + /* Invalid input. Be tolerant, no error message. */ + break; + switch (c) + { + case '\n': + continue; + case '0': + c = '\0'; + break; + case 'a': + c = '\a'; + break; + case 'f': + c = '\f'; + break; + case 'n': + c = '\n'; + break; + case 'r': + c = '\r'; + break; + case 't': + c = '\t'; + break; + case 'v': + c = '\v'; + break; + default: + break; + } + } + grow_token (op->token); + op->token->chars[op->token->charcount++] = c; + } + op->type = t_string; + + if (extract_all) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = op->line_number_at_start; + remember_a_message (mlp, NULL, string_of_object (op), + null_context, &pos, NULL, savable_comment); + } + last_non_comment_line = line_number; + return; + } + + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + case '+': case '-': case '.': + /* Read a number or symbol token. */ + op->token = XMALLOC (struct token); + read_token (op->token, c); + if (op->token->charcount == 1 && op->token->chars[0] == '.') + { + free_token (op->token); + free (op->token); + op->type = t_dot; + } + else if (is_number (op->token)) + { + /* A number. */ + free_token (op->token); + free (op->token); + op->type = t_other; + } + else + { + /* A symbol. */ + op->type = t_symbol; + } + last_non_comment_line = line_number; + return; + + case ':': + default: + /* Read a symbol token. */ + op->token = XMALLOC (struct token); + read_token (op->token, c); + op->type = t_symbol; + last_non_comment_line = line_number; + return; + } } } void extract_scheme (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; @@ -1209,7 +1208,7 @@ read_object (&toplevel_object, null_context); if (toplevel_object.type == t_eof) - break; + break; free_object (&toplevel_object); } diff -Nru gettext-0.17/gettext-tools/src/x-scheme.h gettext-0.18.1.1/gettext-tools/src/x-scheme.h --- gettext-0.17/gettext-tools/src/x-scheme.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-scheme.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_SCHEME \ - { "scm", "Scheme" }, \ + { "scm", "Scheme" }, \ #define SCANNERS_SCHEME \ - { "Scheme", extract_scheme, \ - &flag_table_scheme, &formatstring_scheme, NULL }, \ + { "Scheme", extract_scheme, \ + &flag_table_scheme, &formatstring_scheme, NULL }, \ /* Scan a Scheme file and add its translatable strings to mdlp. */ extern void extract_scheme (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-sh.c gettext-0.18.1.1/gettext-tools/src/x-sh.c --- gettext-0.17/gettext-tools/src/x-sh.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-sh.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext sh backend. - Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software: you can redistribute it and/or modify @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-sh.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -90,15 +89,15 @@ const char *colon; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid C identifier. - A colon means an invalid parse in split_keywordspec(). */ + A colon means an invalid parse in split_keywordspec(). */ colon = strchr (name, ':'); if (colon == NULL || colon >= end) - insert_keyword_callshape (&keywords, name, end - name, &shape); + insert_keyword_callshape (&keywords, name, end - name, &shape); } } @@ -110,7 +109,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_sh_keyword ("gettext"); x_sh_keyword ("ngettext:1,2"); x_sh_keyword ("eval_gettext"); @@ -153,7 +152,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -186,21 +185,21 @@ { c = phase1_pushback[--phase1_pushback_length]; if (c == '\n') - ++line_number; + ++line_number; return c; } for (;;) { c = do_getc (); if (c != '\\') - return c; + return c; c = do_getc (); if (c != '\n') - { - if (c != EOF) - do_ungetc (c); - return '\\'; - } + { + if (c != EOF) + do_ungetc (c); + return '\\'; + } } } @@ -219,7 +218,7 @@ default: if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; break; } @@ -232,9 +231,9 @@ /* A token consists of a sequence of characters. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - char *chars; /* the token's constituents */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + char *chars; /* the token's constituents */ }; /* Initialize a 'struct token'. */ @@ -313,7 +312,7 @@ comment_line_end () { while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (buflen >= bufmax) { @@ -426,20 +425,20 @@ represented precisely. */ enum word_type { - t_string, /* constant string */ - t_other, /* other string */ - t_separator, /* command separator: semicolon or newline */ - t_redirect, /* redirection: one of < > >| << <<- >> <> <& >& */ - t_backquote, /* closing '`' pseudo word */ - t_paren, /* closing ')' pseudo word */ - t_eof /* EOF marker */ + t_string, /* constant string */ + t_other, /* other string */ + t_separator, /* command separator: semicolon or newline */ + t_redirect, /* redirection: one of < > >| << <<- >> <> <& >& */ + t_backquote, /* closing '`' pseudo word */ + t_paren, /* closing ')' pseudo word */ + t_eof /* EOF marker */ }; struct word { enum word_type type; - struct token *token; /* for t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct word'. */ @@ -484,7 +483,7 @@ is_operator_start (int c) { return (c == '|' || c == '&' || c == ';' || c == '<' || c == '>' - || c == '(' || c == ')'); + || c == '(' || c == ')'); } @@ -526,7 +525,7 @@ { c = phase2_pushback[--phase2_pushback_length]; if (c == '\n') - ++line_number; + ++line_number; return c; } @@ -535,145 +534,145 @@ return c; if (c == '\'') return ((open_doublequote - || (open_singlequote && open_singlequote_terminator != c)) - ? QUOTED (c) - : c); + || (open_singlequote && open_singlequote_terminator != c)) + ? QUOTED (c) + : c); if (open_singlequote) { if (c == open_singlequote_terminator) - return c; + return c; } else { if (c == '"' || c == '$') - return c; + return c; if (c == '`') - return (nested_backquotes > 0 ? CLOSING_BACKQUOTE : OPENING_BACKQUOTE); + return (nested_backquotes > 0 ? CLOSING_BACKQUOTE : OPENING_BACKQUOTE); } if (c == '\\') { /* Number of debackslahificication passes that are active at the - current point. */ + current point. */ unsigned int debackslahify = - nested_backquotes + (open_singlequote ? 0 : 1); + nested_backquotes + (open_singlequote ? 0 : 1); /* Normal number of backslashes that yield a single backslash in the - final output. */ + final output. */ unsigned int expected_count = - (unsigned int) 1 << debackslahify; + (unsigned int) 1 << debackslahify; /* Number of backslashes found. */ unsigned int count; for (count = 1; count < expected_count; count++) - { - c = phase1_getc (); - if (c != '\\') - break; - } + { + c = phase1_getc (); + if (c != '\\') + break; + } if (count == expected_count) - return '\\'; + return '\\'; /* The count of backslashes is > 0 and < expected_count, therefore the - result depends on c, the first character after the backslashes. - Note: The formulas below don't necessarily have a logic; they were - empirically determined such that 1. the xgettext-30 test succeeds, - 2. the behaviour for count == 0 would correspond to the one without - any baskslash. */ + result depends on c, the first character after the backslashes. + Note: The formulas below don't necessarily have a logic; they were + empirically determined such that 1. the xgettext-30 test succeeds, + 2. the behaviour for count == 0 would correspond to the one without + any baskslash. */ if (c == '\'') - { - if (!open_singlequote && count > (expected_count >> 1)) - { - phase1_ungetc (c); - return '\\'; - } - else - return ((open_doublequote - || (open_singlequote && open_singlequote_terminator != c)) - ? QUOTED (c) - : c); - } + { + if (!open_singlequote && count > (expected_count >> 1)) + { + phase1_ungetc (c); + return '\\'; + } + else + return ((open_doublequote + || (open_singlequote && open_singlequote_terminator != c)) + ? QUOTED (c) + : c); + } else if (c == '"') - { - /* Each debackslahificication pass converts \\ to \ and \" to "; - passes corresponding to `...` drop a lone " whereas passes - corresponding to "`...`" leave it alone. Therefore, the - minimum number of backslashes needed to get one double-quote - in the end is open_doublequotes_mask + 1. */ - if (open_singlequote) - { - if (count > open_doublequotes_mask) - { - phase1_ungetc (c); - return '\\'; - } - else - return (open_singlequote_terminator != c ? QUOTED (c) : c); - } - else - { - if (count > open_doublequotes_mask) - return QUOTED (c); - else - /* Some of the count values <= open_doublequotes_mask are - actually invalid here, but we assume a syntactically - correct input file anyway. */ - return c; - } - } + { + /* Each debackslahificication pass converts \\ to \ and \" to "; + passes corresponding to `...` drop a lone " whereas passes + corresponding to "`...`" leave it alone. Therefore, the + minimum number of backslashes needed to get one double-quote + in the end is open_doublequotes_mask + 1. */ + if (open_singlequote) + { + if (count > open_doublequotes_mask) + { + phase1_ungetc (c); + return '\\'; + } + else + return (open_singlequote_terminator != c ? QUOTED (c) : c); + } + else + { + if (count > open_doublequotes_mask) + return QUOTED (c); + else + /* Some of the count values <= open_doublequotes_mask are + actually invalid here, but we assume a syntactically + correct input file anyway. */ + return c; + } + } else if (c == '`') - { - /* FIXME: This code looks fishy. */ - if (count == expected_count - 1) - return c; - else - /* Some of the count values < expected_count - 1 are - actually invalid here, but we assume a syntactically - correct input file anyway. */ - if (nested_backquotes > 0 && !open_singlequote - && count >= (expected_count >> 2)) - return OPENING_BACKQUOTE; - else - return CLOSING_BACKQUOTE; - } + { + /* FIXME: This code looks fishy. */ + if (count == expected_count - 1) + return c; + else + /* Some of the count values < expected_count - 1 are + actually invalid here, but we assume a syntactically + correct input file anyway. */ + if (nested_backquotes > 0 && !open_singlequote + && count >= (expected_count >> 2)) + return OPENING_BACKQUOTE; + else + return CLOSING_BACKQUOTE; + } else if (c == '$') - { - if (open_singlequote) - return QUOTED (c); - if (count >= (expected_count >> 1)) - return QUOTED (c); - else - return c; - } + { + if (open_singlequote) + return QUOTED (c); + if (count >= (expected_count >> 1)) + return QUOTED (c); + else + return c; + } else - { - /* When not followed by a quoting character or backslash or dollar, - a backslash survives a debackslahificication pass unmodified. - Therefore each debackslahificication pass performs a - count := (count + 1) >> 1 - operation. Therefore the minimum number of backslashes needed - to get one backslash in the end is (expected_count >> 1) + 1. */ - if (open_doublequote || open_singlequote) - { - if (count > 0) - { - phase1_ungetc (c); - return '\\'; - } - else - return QUOTED (c); - } - else - { - if (count > (expected_count >> 1)) - { - phase1_ungetc (c); - return '\\'; - } - else if (count > 0) - return QUOTED (c); - else - return c; - } - } + { + /* When not followed by a quoting character or backslash or dollar, + a backslash survives a debackslahificication pass unmodified. + Therefore each debackslahificication pass performs a + count := (count + 1) >> 1 + operation. Therefore the minimum number of backslashes needed + to get one backslash in the end is (expected_count >> 1) + 1. */ + if (open_doublequote || open_singlequote) + { + if (count > 0) + { + phase1_ungetc (c); + return '\\'; + } + else + return QUOTED (c); + } + else + { + if (count > (expected_count >> 1)) + { + phase1_ungetc (c); + return '\\'; + } + else if (count > 0) + return QUOTED (c); + else + return c; + } + } } return (open_singlequote || open_doublequote ? QUOTED (c) : c); @@ -694,7 +693,7 @@ default: if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; break; } @@ -707,7 +706,7 @@ /* Forward declaration of local functions. */ static enum word_type read_command_list (int looking_for, - flag_context_ty outer_context); + flag_context_ty outer_context); @@ -724,31 +723,31 @@ { c = phase2_getc (); if (c == '#') - { - /* Skip a comment up to end of line. */ - last_comment_line = line_number; - comment_start (); - for (;;) - { - c = phase1_getc (); - if (c == EOF || c == '\n') - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - comment_line_end (); - } + { + /* Skip a comment up to end of line. */ + last_comment_line = line_number; + comment_start (); + for (;;) + { + c = phase1_getc (); + if (c == EOF || c == '\n') + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + comment_line_end (); + } if (c == '\n') - { - /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between - both. */ - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - wp->type = t_separator; - return; - } + { + /* Comments assumed to be grouped with a message must immediately + precede it, with no non-whitespace token on a line between + both. */ + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + wp->type = t_separator; + return; + } } while (is_whitespace (c)); @@ -761,26 +760,26 @@ if (c == '<' || c == '>') { /* Recognize the redirection operators < > >| << <<- >> <> <& >& - But <( and >) are handled below, not here. */ + But <( and >) are handled below, not here. */ int c2 = phase2_getc (); if (c2 != '(') - { - if ((c == '<' ? c2 == '<' : c2 == '|') || c2 == '>' || c2 == '&') - { - if (c == '<' && c2 == '<') - { - int c3 = phase2_getc (); - if (c3 != '-') - phase2_ungetc (c3); - } - } - else - phase2_ungetc (c2); - wp->type = t_redirect; - return; - } + { + if ((c == '<' ? c2 == '<' : c2 == '|') || c2 == '>' || c2 == '&') + { + if (c == '<' && c2 == '<') + { + int c3 = phase2_getc (); + if (c3 != '-') + phase2_ungetc (c3); + } + } + else + phase2_ungetc (c2); + wp->type = t_redirect; + return; + } else - phase2_ungetc (c2); + phase2_ungetc (c2); } if (looking_for == CLOSING_BACKQUOTE && c == CLOSING_BACKQUOTE) @@ -813,357 +812,357 @@ for (;; c = phase2_getc ()) { if (c == EOF) - break; + break; if (all_unquoted_digits && (c == '<' || c == '>')) - { - /* Recognize the redirection operators < > >| << <<- >> <> <& >& - prefixed with a nonempty sequence of unquoted digits. */ - int c2 = phase2_getc (); - if ((c == '<' ? c2 == '<' : c2 == '|') || c2 == '>' || c2 == '&') - { - if (c == '<' && c2 == '<') - { - int c3 = phase2_getc (); - if (c3 != '-') - phase2_ungetc (c3); - } - } - else - phase2_ungetc (c2); - - wp->type = t_redirect; - free_token (wp->token); - free (wp->token); + { + /* Recognize the redirection operators < > >| << <<- >> <> <& >& + prefixed with a nonempty sequence of unquoted digits. */ + int c2 = phase2_getc (); + if ((c == '<' ? c2 == '<' : c2 == '|') || c2 == '>' || c2 == '&') + { + if (c == '<' && c2 == '<') + { + int c3 = phase2_getc (); + if (c3 != '-') + phase2_ungetc (c3); + } + } + else + phase2_ungetc (c2); + + wp->type = t_redirect; + free_token (wp->token); + free (wp->token); - last_non_comment_line = line_number; + last_non_comment_line = line_number; - return; - } + return; + } all_unquoted_digits = all_unquoted_digits && (c >= '0' && c <= '9'); if (c == '$') - { - int c2; + { + int c2; - /* An unquoted dollar indicates we are not inside '...'. */ - if (open_singlequote) - abort (); - /* After reading a dollar, we know that there is no pushed back - character from an earlier lookahead. */ - if (phase2_pushback_length > 0) - abort (); - /* Therefore we can use phase1 without interfering with phase2. - We need to recognize $( outside and inside double-quotes. - It would be incorrect to do - c2 = phase2_getc (); - if (c2 == '(' || c2 == QUOTED ('(')) - because that would also trigger for $\(. */ - c2 = phase1_getc (); - if (c2 == '(') - { - bool saved_open_doublequote; - int c3; - - phase1_ungetc (c2); - - /* The entire inner command or arithmetic expression is read - ignoring possible surrounding double-quotes. */ - saved_open_doublequote = open_doublequote; - open_doublequote = false; - - c2 = phase2_getc (); - if (c2 != '(') - abort (); - - c3 = phase2_getc (); - if (c3 == '(') - { - /* Arithmetic expression (Bash syntax). Skip until the - matching closing parenthesis. */ - unsigned int depth = 2; - - do - { - c = phase2_getc (); - if (c == '(') - depth++; - else if (c == ')') - if (--depth == 0) - break; - } - while (c != EOF); - } - else - { - /* Command substitution (Bash syntax). */ - phase2_ungetc (c3); - read_command_list (')', context); - } - - open_doublequote = saved_open_doublequote; - } - else - { - phase1_ungetc (c2); - c2 = phase2_getc (); - - if (c2 == '\'' && !open_singlequote) - { - /* Bash builtin for string with ANSI-C escape sequences. */ - saw_opening_singlequote (); - for (;;) - { - c = phase2_getc (); - if (c == EOF) - break; - if (c == '\'') - { - saw_closing_singlequote (); - break; - } - if (c == '\\') - { - c = phase2_getc (); - switch (c) - { - default: - phase2_ungetc (c); - c = '\\'; - break; - - case '\\': - break; - case '\'': - /* Don't call saw_closing_singlequote () - here. */ - break; - - case 'a': - c = '\a'; - break; - case 'b': - c = '\b'; - break; - case 'e': - c = 0x1b; /* ESC */ - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - - case 'x': - c = phase2_getc (); - if ((c >= '0' && c <= '9') - || (c >= 'A' && c <= 'F') - || (c >= 'a' && c <= 'f')) - { - int n; - - if (c >= '0' && c <= '9') - n = c - '0'; - else if (c >= 'A' && c <= 'F') - n = 10 + c - 'A'; - else if (c >= 'a' && c <= 'f') - n = 10 + c - 'a'; - else - abort (); - - c = phase2_getc (); - if ((c >= '0' && c <= '9') - || (c >= 'A' && c <= 'F') - || (c >= 'a' && c <= 'f')) - { - if (c >= '0' && c <= '9') - n = n * 16 + c - '0'; - else if (c >= 'A' && c <= 'F') - n = n * 16 + 10 + c - 'A'; - else if (c >= 'a' && c <= 'f') - n = n * 16 + 10 + c - 'a'; - else - abort (); - } - else - phase2_ungetc (c); - - c = n; - } - else - { - phase2_ungetc (c); - phase2_ungetc ('x'); - c = '\\'; - } - break; - - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - int n = c - '0'; - - c = phase2_getc (); - if (c >= '0' && c <= '7') - { - n = n * 8 + c - '0'; - - c = phase2_getc (); - if (c >= '0' && c <= '7') - n = n * 8 + c - '0'; - else - phase2_ungetc (c); - } - else - phase2_ungetc (c); - - c = n; - } - break; - } - } - if (wp->type == t_string) - { - grow_token (wp->token); - wp->token->chars[wp->token->charcount++] = - (unsigned char) c; - } - } - /* The result is a literal string. Don't change wp->type. */ - continue; - } - else if (c2 == '"' && !open_doublequote) - { - /* Bash builtin for internationalized string. */ - lex_pos_ty pos; - struct token string; - - saw_opening_singlequote (); - open_singlequote_terminator = '"'; - pos.file_name = logical_file_name; - pos.line_number = line_number; - init_token (&string); - for (;;) - { - c = phase2_getc (); - if (c == EOF) - break; - if (c == '"') - { - saw_closing_singlequote (); - break; - } - grow_token (&string); - string.chars[string.charcount++] = (unsigned char) c; - } - remember_a_message (mlp, NULL, string_of_token (&string), - context, &pos, savable_comment); - free_token (&string); - - error_with_progname = false; - error (0, 0, _("%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; use eval_gettext instead"), - pos.file_name, (unsigned long) pos.line_number); - error_with_progname = true; - - /* The result at runtime is not constant. Therefore we - change wp->type. */ - } - else - phase2_ungetc (c2); - } - wp->type = t_other; - continue; - } + /* An unquoted dollar indicates we are not inside '...'. */ + if (open_singlequote) + abort (); + /* After reading a dollar, we know that there is no pushed back + character from an earlier lookahead. */ + if (phase2_pushback_length > 0) + abort (); + /* Therefore we can use phase1 without interfering with phase2. + We need to recognize $( outside and inside double-quotes. + It would be incorrect to do + c2 = phase2_getc (); + if (c2 == '(' || c2 == QUOTED ('(')) + because that would also trigger for $\(. */ + c2 = phase1_getc (); + if (c2 == '(') + { + bool saved_open_doublequote; + int c3; + + phase1_ungetc (c2); + + /* The entire inner command or arithmetic expression is read + ignoring possible surrounding double-quotes. */ + saved_open_doublequote = open_doublequote; + open_doublequote = false; + + c2 = phase2_getc (); + if (c2 != '(') + abort (); + + c3 = phase2_getc (); + if (c3 == '(') + { + /* Arithmetic expression (Bash syntax). Skip until the + matching closing parenthesis. */ + unsigned int depth = 2; + + do + { + c = phase2_getc (); + if (c == '(') + depth++; + else if (c == ')') + if (--depth == 0) + break; + } + while (c != EOF); + } + else + { + /* Command substitution (Bash syntax). */ + phase2_ungetc (c3); + read_command_list (')', context); + } + + open_doublequote = saved_open_doublequote; + } + else + { + phase1_ungetc (c2); + c2 = phase2_getc (); + + if (c2 == '\'' && !open_singlequote) + { + /* Bash builtin for string with ANSI-C escape sequences. */ + saw_opening_singlequote (); + for (;;) + { + c = phase2_getc (); + if (c == EOF) + break; + if (c == '\'') + { + saw_closing_singlequote (); + break; + } + if (c == '\\') + { + c = phase2_getc (); + switch (c) + { + default: + phase2_ungetc (c); + c = '\\'; + break; + + case '\\': + break; + case '\'': + /* Don't call saw_closing_singlequote () + here. */ + break; + + case 'a': + c = '\a'; + break; + case 'b': + c = '\b'; + break; + case 'e': + c = 0x1b; /* ESC */ + break; + case 'f': + c = '\f'; + break; + case 'n': + c = '\n'; + break; + case 'r': + c = '\r'; + break; + case 't': + c = '\t'; + break; + case 'v': + c = '\v'; + break; + + case 'x': + c = phase2_getc (); + if ((c >= '0' && c <= '9') + || (c >= 'A' && c <= 'F') + || (c >= 'a' && c <= 'f')) + { + int n; + + if (c >= '0' && c <= '9') + n = c - '0'; + else if (c >= 'A' && c <= 'F') + n = 10 + c - 'A'; + else if (c >= 'a' && c <= 'f') + n = 10 + c - 'a'; + else + abort (); + + c = phase2_getc (); + if ((c >= '0' && c <= '9') + || (c >= 'A' && c <= 'F') + || (c >= 'a' && c <= 'f')) + { + if (c >= '0' && c <= '9') + n = n * 16 + c - '0'; + else if (c >= 'A' && c <= 'F') + n = n * 16 + 10 + c - 'A'; + else if (c >= 'a' && c <= 'f') + n = n * 16 + 10 + c - 'a'; + else + abort (); + } + else + phase2_ungetc (c); + + c = n; + } + else + { + phase2_ungetc (c); + phase2_ungetc ('x'); + c = '\\'; + } + break; + + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + int n = c - '0'; + + c = phase2_getc (); + if (c >= '0' && c <= '7') + { + n = n * 8 + c - '0'; + + c = phase2_getc (); + if (c >= '0' && c <= '7') + n = n * 8 + c - '0'; + else + phase2_ungetc (c); + } + else + phase2_ungetc (c); + + c = n; + } + break; + } + } + if (wp->type == t_string) + { + grow_token (wp->token); + wp->token->chars[wp->token->charcount++] = + (unsigned char) c; + } + } + /* The result is a literal string. Don't change wp->type. */ + continue; + } + else if (c2 == '"' && !open_doublequote) + { + /* Bash builtin for internationalized string. */ + lex_pos_ty pos; + struct token string; + + saw_opening_singlequote (); + open_singlequote_terminator = '"'; + pos.file_name = logical_file_name; + pos.line_number = line_number; + init_token (&string); + for (;;) + { + c = phase2_getc (); + if (c == EOF) + break; + if (c == '"') + { + saw_closing_singlequote (); + break; + } + grow_token (&string); + string.chars[string.charcount++] = (unsigned char) c; + } + remember_a_message (mlp, NULL, string_of_token (&string), + context, &pos, NULL, savable_comment); + free_token (&string); + + error_with_progname = false; + error (0, 0, _("%s:%lu: warning: the syntax $\"...\" is deprecated due to security reasons; use eval_gettext instead"), + pos.file_name, (unsigned long) pos.line_number); + error_with_progname = true; + + /* The result at runtime is not constant. Therefore we + change wp->type. */ + } + else + phase2_ungetc (c2); + } + wp->type = t_other; + continue; + } if (c == '\'') - { - if (!open_singlequote) - { - /* Handle an opening single quote. */ - saw_opening_singlequote (); - } - else - { - /* Handle a closing single quote. */ - saw_closing_singlequote (); - } - continue; - } + { + if (!open_singlequote) + { + /* Handle an opening single quote. */ + saw_opening_singlequote (); + } + else + { + /* Handle a closing single quote. */ + saw_closing_singlequote (); + } + continue; + } if (c == '"') - { - if (open_singlequote && open_singlequote_terminator == '"') - { - /* Handle a closing i18n quote. */ - saw_closing_singlequote (); - } - else if (!open_doublequote) - { - /* Handle an opening double quote. */ - saw_opening_doublequote (); - } - else - { - /* Handle a closing double quote. */ - saw_closing_doublequote (); - } - continue; - } + { + if (open_singlequote && open_singlequote_terminator == '"') + { + /* Handle a closing i18n quote. */ + saw_closing_singlequote (); + } + else if (!open_doublequote) + { + /* Handle an opening double quote. */ + saw_opening_doublequote (); + } + else + { + /* Handle a closing double quote. */ + saw_closing_doublequote (); + } + continue; + } if (c == OPENING_BACKQUOTE) - { - /* Handle an opening backquote. */ - saw_opening_backquote (); - - read_command_list (CLOSING_BACKQUOTE, context); - - wp->type = t_other; - continue; - } + { + /* Handle an opening backquote. */ + saw_opening_backquote (); + + read_command_list (CLOSING_BACKQUOTE, context); + + wp->type = t_other; + continue; + } if (c == CLOSING_BACKQUOTE) - break; + break; if (c == '<' || c == '>') - { - int c2; + { + int c2; - /* An unquoted c indicates we are not inside '...' nor "...". */ - if (open_singlequote || open_doublequote) - abort (); - - c2 = phase2_getc (); - if (c2 == '(') - { - /* Process substitution (Bash syntax). */ - read_command_list (')', context); - - wp->type = t_other; - continue; - } - else - phase2_ungetc (c2); - } + /* An unquoted c indicates we are not inside '...' nor "...". */ + if (open_singlequote || open_doublequote) + abort (); + + c2 = phase2_getc (); + if (c2 == '(') + { + /* Process substitution (Bash syntax). */ + read_command_list (')', context); + + wp->type = t_other; + continue; + } + else + phase2_ungetc (c2); + } if (!open_singlequote && !open_doublequote - && (is_whitespace (c) || is_operator_start (c))) - break; + && (is_whitespace (c) || is_operator_start (c))) + break; if (wp->type == t_string) - { - grow_token (wp->token); - wp->token->chars[wp->token->charcount++] = (unsigned char) c; - } + { + grow_token (wp->token); + wp->token->chars[wp->token->charcount++] = (unsigned char) c; + } } phase2_ungetc (c); @@ -1194,8 +1193,8 @@ like "$verbose" that may expand to nothing, and 2. it's a big effort to know where a command starts in a $(for ...) or $(case ...) compound command. */ - int arg = 0; /* Current argument number. */ - bool arg_of_redirect = false; /* True right after a redirection operator. */ + int arg = 0; /* Current argument number. */ + bool arg_of_redirect = false; /* True right after a redirection operator. */ flag_context_list_iterator_ty context_iter; const struct callshapes *shapes = NULL; struct arglist_parser *argparser = NULL; @@ -1206,101 +1205,101 @@ flag_context_ty inner_context; if (arg == 0) - inner_context = null_context; + inner_context = null_context; else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); read_word (&inner, looking_for, inner_context); /* Recognize end of command. */ if (inner.type == t_separator - || inner.type == t_backquote || inner.type == t_paren - || inner.type == t_eof) - { - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return inner.type; - } + || inner.type == t_backquote || inner.type == t_paren + || inner.type == t_eof) + { + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return inner.type; + } if (extract_all) - { - if (inner.type == t_string) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = inner.line_number_at_start; - remember_a_message (mlp, NULL, string_of_word (&inner), - inner_context, &pos, savable_comment); - } - } + { + if (inner.type == t_string) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = inner.line_number_at_start; + remember_a_message (mlp, NULL, string_of_word (&inner), + inner_context, &pos, NULL, savable_comment); + } + } if (arg_of_redirect) - { - /* Ignore arguments of redirection operators. */ - arg_of_redirect = false; - } + { + /* Ignore arguments of redirection operators. */ + arg_of_redirect = false; + } else if (inner.type == t_redirect) - { - /* Ignore this word and the following one. */ - arg_of_redirect = true; - } + { + /* Ignore this word and the following one. */ + arg_of_redirect = true; + } else - { - if (argparser == NULL) - { - /* This is the function position. */ - arg = 0; - if (inner.type == t_string) - { - char *function_name = string_of_word (&inner); - void *keyword_value; - - if (hash_find_entry (&keywords, - function_name, strlen (function_name), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - function_name, strlen (function_name))); - - free (function_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_word (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - - if (arglist_parser_decidedp (argparser, arg)) - { - /* Stop looking for arguments of the last function_name. */ - /* FIXME: What about context_iter? */ - arglist_parser_done (argparser, arg); - shapes = NULL; - argparser = NULL; - } - } + { + if (argparser == NULL) + { + /* This is the function position. */ + arg = 0; + if (inner.type == t_string) + { + char *function_name = string_of_word (&inner); + void *keyword_value; + + if (hash_find_entry (&keywords, + function_name, strlen (function_name), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + function_name, strlen (function_name))); + + free (function_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_word (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + + if (arglist_parser_decidedp (argparser, arg)) + { + /* Stop looking for arguments of the last function_name. */ + /* FIXME: What about context_iter? */ + arglist_parser_done (argparser, arg); + shapes = NULL; + argparser = NULL; + } + } - arg++; - } + arg++; + } free_word (&inner); } @@ -1320,16 +1319,16 @@ terminator = read_command (looking_for, outer_context); if (terminator != t_separator) - return terminator; + return terminator; } } void extract_sh (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; diff -Nru gettext-0.17/gettext-tools/src/x-sh.h gettext-0.18.1.1/gettext-tools/src/x-sh.h --- gettext-0.17/gettext-tools/src/x-sh.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-sh.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,18 +28,18 @@ #define EXTENSIONS_SH \ - { "sh", "Shell" }, \ - { "bash", "Shell" }, \ + { "sh", "Shell" }, \ + { "bash", "Shell" }, \ #define SCANNERS_SH \ - { "Shell", extract_sh, \ - &flag_table_sh, &formatstring_sh, NULL }, \ + { "Shell", extract_sh, \ + &flag_table_sh, &formatstring_sh, NULL }, \ /* Scan a shell script file and add its translatable strings to mdlp. */ extern void extract_sh (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void x_sh_keyword (const char *keyword); extern void x_sh_extract_all (void); diff -Nru gettext-0.17/gettext-tools/src/x-smalltalk.c gettext-0.18.1.1/gettext-tools/src/x-smalltalk.c --- gettext-0.17/gettext-tools/src/x-smalltalk.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-smalltalk.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Smalltalk backend. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -29,7 +29,6 @@ #include "message.h" #include "xgettext.h" -#include "x-smalltalk.h" #include "error.h" #include "xalloc.h" #include "gettext.h" @@ -89,8 +88,8 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); return EOF; } @@ -107,7 +106,7 @@ if (c != EOF) { if (c == '\n') - --line_number; + --line_number; ungetc (c, fp); } @@ -141,7 +140,7 @@ comment_line_end () { while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (buflen >= bufmax) { @@ -165,10 +164,10 @@ enum token_type_ty { token_type_eof, - token_type_uniq, /* # */ - token_type_symbol, /* symbol */ - token_type_string_literal, /* string, stringconst, symbolconst */ - token_type_other /* misc. operator */ + token_type_uniq, /* # */ + token_type_symbol, /* symbol */ + token_type_string_literal, /* string, stringconst, symbolconst */ + token_type_other /* misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -176,7 +175,7 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string_literal, token_type_symbol */ + char *string; /* for token_type_string_literal, token_type_symbol */ int line_number; }; @@ -207,234 +206,234 @@ tp->line_number = line_number; c = phase1_getc (); switch (c) - { - case EOF: - tp->type = token_type_eof; - return; - - case '"': - { - /* Comment. */ - int lineno; - - comment_start (); - lineno = line_number; - for (;;) - { - c = phase1_getc (); - if (c == '"' || c == EOF) - break; - if (c == '\n') - { - comment_line_end (); - comment_start (); - } - else - { - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - } - comment_line_end (); - last_comment_line = lineno; - continue; - } - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case ' ': - case '\t': - case '\r': - /* Ignore whitespace. */ - continue; - } + { + case EOF: + tp->type = token_type_eof; + return; + + case '"': + { + /* Comment. */ + int lineno; + + comment_start (); + lineno = line_number; + for (;;) + { + c = phase1_getc (); + if (c == '"' || c == EOF) + break; + if (c == '\n') + { + comment_line_end (); + comment_start (); + } + else + { + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + } + comment_line_end (); + last_comment_line = lineno; + continue; + } + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case ' ': + case '\t': + case '\r': + /* Ignore whitespace. */ + continue; + } last_non_comment_line = tp->line_number; switch (c) - { - case '\'': - /* String literal. */ - bufpos = 0; - for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - if (c == '\'') - { - c = phase1_getc (); - if (c != '\'') - { - phase1_ungetc (c); - break; - } - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = 0; - tp->type = token_type_string_literal; - tp->string = xstrdup (buffer); - return; - - case '+': - case '-': - case '*': - case '/': - case '~': - case '|': - case ',': - case '<': - case '>': - case '=': - case '&': - case '@': - case '?': - case '%': - case '\\': - { - char *name; - int c2 = phase1_getc (); - switch (c2) - { - case '+': - case '-': - case '*': - case '/': - case '~': - case '|': - case ',': - case '<': - case '>': - case '=': - case '&': - case '@': - case '?': - case '%': - name = XNMALLOC (3, char); - name[0] = c; - name[1] = c2; - name[2] = '\0'; - tp->type = token_type_symbol; - tp->string = name; - return; - default: - phase1_ungetc (c2); - break; - } - name = XNMALLOC (2, char); - name[0] = c; - name[1] = '\0'; - tp->type = token_type_symbol; - tp->string = name; - return; - } - - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - /* Recognize id or id":"[id":"]* or id":"[id":"]*id. */ - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - case ':': - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase1_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - continue; - default: - phase1_ungetc (c); - break; - } - break; - default: - phase1_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - return; - - case '#': - /* Uniquification operator. */ - tp->type = token_type_uniq; - return; - - case '$': - c = phase1_getc (); - tp->type = token_type_other; - return; - - default: - tp->type = token_type_other; - return; - } + { + case '\'': + /* String literal. */ + bufpos = 0; + for (;;) + { + c = phase1_getc (); + if (c == EOF) + break; + if (c == '\'') + { + c = phase1_getc (); + if (c != '\'') + { + phase1_ungetc (c); + break; + } + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = 0; + tp->type = token_type_string_literal; + tp->string = xstrdup (buffer); + return; + + case '+': + case '-': + case '*': + case '/': + case '~': + case '|': + case ',': + case '<': + case '>': + case '=': + case '&': + case '@': + case '?': + case '%': + case '\\': + { + char *name; + int c2 = phase1_getc (); + switch (c2) + { + case '+': + case '-': + case '*': + case '/': + case '~': + case '|': + case ',': + case '<': + case '>': + case '=': + case '&': + case '@': + case '?': + case '%': + name = XNMALLOC (3, char); + name[0] = c; + name[1] = c2; + name[2] = '\0'; + tp->type = token_type_symbol; + tp->string = name; + return; + default: + phase1_ungetc (c2); + break; + } + name = XNMALLOC (2, char); + name[0] = c; + name[1] = '\0'; + tp->type = token_type_symbol; + tp->string = name; + return; + } + + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + /* Recognize id or id":"[id":"]* or id":"[id":"]*id. */ + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + case ':': + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase1_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + continue; + default: + phase1_ungetc (c); + break; + } + break; + default: + phase1_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + return; + + case '#': + /* Uniquification operator. */ + tp->type = token_type_uniq; + return; + + case '$': + c = phase1_getc (); + tp->type = token_type_other; + return; + + default: + tp->type = token_type_other; + return; + } } } @@ -445,7 +444,7 @@ if (tp->type != token_type_eof) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = *tp; } } @@ -463,13 +462,13 @@ phase2_get (&token2); if (token2.type == token_type_symbol - || token2.type == token_type_string_literal) - { - tp->type = token_type_string_literal; - tp->string = token2.string; - } + || token2.type == token_type_string_literal) + { + tp->type = token_type_string_literal; + tp->string = token2.string; + } else - phase2_unget (&token2); + phase2_unget (&token2); } } @@ -489,9 +488,9 @@ void extract_smalltalk (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -521,72 +520,72 @@ for (;;) { - token_ty token; + token_ty token; - x_smalltalk_lex (&token); + x_smalltalk_lex (&token); - switch (token.type) - { - case token_type_symbol: - state = (strcmp (token.string, "NLS") == 0 ? 1 : - strcmp (token.string, "?") == 0 && state == 1 ? 2 : - strcmp (token.string, "at:") == 0 && state == 1 ? 3 : - strcmp (token.string, "plural:") == 0 && state == 4 ? 5 : - 0); - free (token.string); - break; - - case token_type_string_literal: - if (state == 2) - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - remember_a_message (mlp, NULL, token.string, null_context, - &pos, savable_comment); - state = 0; - break; - } - if (state == 3) - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - plural_mp = remember_a_message (mlp, NULL, token.string, - null_context, &pos, - savable_comment); - state = 4; - break; - } - if (state == 5) - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - remember_a_message_plural (plural_mp, token.string, - null_context, &pos, - savable_comment); - state = 0; - break; - } - state = 0; - free (token.string); - break; - - case token_type_uniq: - case token_type_other: - state = 0; - break; - - case token_type_eof: - break; - - default: - abort (); - } + switch (token.type) + { + case token_type_symbol: + state = (strcmp (token.string, "NLS") == 0 ? 1 : + strcmp (token.string, "?") == 0 && state == 1 ? 2 : + strcmp (token.string, "at:") == 0 && state == 1 ? 3 : + strcmp (token.string, "plural:") == 0 && state == 4 ? 5 : + 0); + free (token.string); + break; + + case token_type_string_literal: + if (state == 2) + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + remember_a_message (mlp, NULL, token.string, null_context, + &pos, NULL, savable_comment); + state = 0; + break; + } + if (state == 3) + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + plural_mp = remember_a_message (mlp, NULL, token.string, + null_context, &pos, + NULL, savable_comment); + state = 4; + break; + } + if (state == 5) + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + remember_a_message_plural (plural_mp, token.string, + null_context, &pos, + savable_comment); + state = 0; + break; + } + state = 0; + free (token.string); + break; + + case token_type_uniq: + case token_type_other: + state = 0; + break; + + case token_type_eof: + break; + + default: + abort (); + } - if (token.type == token_type_eof) - break; + if (token.type == token_type_eof) + break; } } diff -Nru gettext-0.17/gettext-tools/src/x-smalltalk.h gettext-0.18.1.1/gettext-tools/src/x-smalltalk.h --- gettext-0.17/gettext-tools/src/x-smalltalk.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-smalltalk.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_SMALLTALK \ - { "st", "Smalltalk" }, \ + { "st", "Smalltalk" }, \ #define SCANNERS_SMALLTALK \ - { "Smalltalk", extract_smalltalk, \ - NULL, &formatstring_smalltalk, NULL }, \ + { "Smalltalk", extract_smalltalk, \ + NULL, &formatstring_smalltalk, NULL }, \ /* Scan a Smalltalk file and add its translatable strings to mdlp. */ extern void extract_smalltalk (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/x-stringtable.h gettext-0.18.1.1/gettext-tools/src/x-stringtable.h --- gettext-0.17/gettext-tools/src/x-stringtable.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-stringtable.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,16 +28,16 @@ #define EXTENSIONS_STRINGTABLE \ - { "strings", "NXStringTable" }, \ + { "strings", "NXStringTable" }, \ #define SCANNERS_STRINGTABLE \ - { "NXStringTable", extract_stringtable, NULL, NULL, NULL }, \ + { "NXStringTable", extract_stringtable, NULL, NULL, NULL }, \ /* Scan a JavaProperties file and add its translatable strings to mdlp. */ extern void extract_stringtable (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); #ifdef __cplusplus diff -Nru gettext-0.17/gettext-tools/src/x-tcl.c gettext-0.18.1.1/gettext-tools/src/x-tcl.c --- gettext-0.17/gettext-tools/src/x-tcl.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-tcl.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext Tcl backend. - Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2002. @@ -33,7 +33,6 @@ #include "message.h" #include "xgettext.h" -#include "x-tcl.h" #include "error.h" #include "xalloc.h" #include "hash.h" @@ -91,14 +90,14 @@ struct callshape shape; if (keywords.table == NULL) - hash_init (&keywords, 100); + hash_init (&keywords, 100); split_keywordspec (name, &end, &shape); /* The characters between name and end should form a valid Tcl - function name. A leading "::" is redundant. */ + function name. A leading "::" is redundant. */ if (end - name >= 2 && name[0] == ':' && name[1] == ':') - name += 2; + name += 2; insert_keyword_callshape (&keywords, name, end - name, &shape); } @@ -112,7 +111,7 @@ if (default_keywords) { /* When adding new keywords here, also update the documentation in - xgettext.texi! */ + xgettext.texi! */ x_tcl_keyword ("::msgcat::mc"); default_keywords = false; } @@ -148,7 +147,7 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("\ + error (EXIT_FAILURE, errno, _("\ error while reading \"%s\""), real_file_name); } else if (c == '\n') @@ -185,7 +184,7 @@ { c = phase1_pushback[--phase1_pushback_length]; if (c == '\n' || c == BS_NL) - ++line_number; + ++line_number; return c; } c = do_getc (); @@ -195,14 +194,14 @@ if (c != '\n') { if (c != EOF) - do_ungetc (c); + do_ungetc (c); return '\\'; } for (;;) { c = do_getc (); if (!(c == ' ' || c == '\t')) - break; + break; } if (c != EOF) do_ungetc (c); @@ -225,7 +224,7 @@ default: if (phase1_pushback_length == SIZEOF (phase1_pushback)) - abort (); + abort (); phase1_pushback[phase1_pushback_length++] = c; break; } @@ -271,11 +270,11 @@ { c = phase2_pushback[--phase2_pushback_length]; if (c == '\n' || c == BS_NL) - ++line_number; + ++line_number; else if (c == '{') - ++brace_depth; + ++brace_depth; else if (c == '}') - --brace_depth; + --brace_depth; return c; } c = phase1_getc (); @@ -284,7 +283,7 @@ else if (c == '}') { if (--brace_depth == 0) - c = CL_BRACE; + c = CL_BRACE; } return c; } @@ -296,22 +295,22 @@ if (c != EOF) { switch (c) - { - case '\n': - case BS_NL: - --line_number; - break; - - case '{': - --brace_depth; - break; - - case '}': - ++brace_depth; - break; - } + { + case '\n': + case BS_NL: + --line_number; + break; + + case '{': + --brace_depth; + break; + + case '}': + ++brace_depth; + break; + } if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -323,9 +322,9 @@ /* A token consists of a sequence of characters. */ struct token { - int allocated; /* number of allocated 'token_char's */ - int charcount; /* number of used 'token_char's */ - char *chars; /* the token's constituents */ + int allocated; /* number of allocated 'token_char's */ + int charcount; /* number of used 'token_char's */ + char *chars; /* the token's constituents */ }; /* Initialize a 'struct token'. */ @@ -384,7 +383,7 @@ comment_line_end () { while (buflen >= 1 - && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) + && (buffer[buflen - 1] == ' ' || buffer[buflen - 1] == '\t')) --buflen; if (buflen >= bufmax) { @@ -415,19 +414,19 @@ string literals). Other words need not to be represented precisely. */ enum word_type { - t_string, /* constant string */ - t_other, /* other string */ - t_separator, /* command separator: semicolon or newline */ - t_bracket, /* ']' pseudo word */ - t_brace, /* '}' pseudo word */ - t_eof /* EOF marker */ + t_string, /* constant string */ + t_other, /* other string */ + t_separator, /* command separator: semicolon or newline */ + t_bracket, /* ']' pseudo word */ + t_brace, /* '}' pseudo word */ + t_eof /* EOF marker */ }; struct word { enum word_type type; - struct token *token; /* for t_string */ - int line_number_at_start; /* for t_string */ + struct token *token; /* for t_string */ + int line_number_at_start; /* for t_string */ }; /* Free the memory pointed to by a 'struct word'. */ @@ -490,70 +489,70 @@ return '\v'; case 'x': { - int n = 0; - unsigned int i; + int n = 0; + unsigned int i; - for (i = 0;; i++) - { - c = phase1_getc (); - if (c == EOF || !c_isxdigit ((unsigned char) c)) - break; - - if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - } - phase1_ungetc (c); - return (i > 0 ? (unsigned char) n : 'x'); + for (i = 0;; i++) + { + c = phase1_getc (); + if (c == EOF || !c_isxdigit ((unsigned char) c)) + break; + + if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + } + phase1_ungetc (c); + return (i > 0 ? (unsigned char) n : 'x'); } case 'u': { - int n = 0; - unsigned int i; + int n = 0; + unsigned int i; - for (i = 0; i < 4; i++) - { - c = phase1_getc (); - if (c == EOF || !c_isxdigit ((unsigned char) c)) - break; - - if (c >= '0' && c <= '9') - n = (n << 4) + (c - '0'); - else if (c >= 'A' && c <= 'F') - n = (n << 4) + (c - 'A' + 10); - else if (c >= 'a' && c <= 'f') - n = (n << 4) + (c - 'a' + 10); - } - phase1_ungetc (c); - return (i > 0 ? n : 'u'); + for (i = 0; i < 4; i++) + { + c = phase1_getc (); + if (c == EOF || !c_isxdigit ((unsigned char) c)) + break; + + if (c >= '0' && c <= '9') + n = (n << 4) + (c - '0'); + else if (c >= 'A' && c <= 'F') + n = (n << 4) + (c - 'A' + 10); + else if (c >= 'a' && c <= 'f') + n = (n << 4) + (c - 'a' + 10); + } + phase1_ungetc (c); + return (i > 0 ? n : 'u'); } case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { - int n = c - '0'; + int n = c - '0'; - c = phase1_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - { - n = (n << 3) + (c - '0'); - c = phase1_getc (); - if (c != EOF) - { - if (c >= '0' && c <= '7') - n = (n << 3) + (c - '0'); - else - phase1_ungetc (c); - } - } - else - phase1_ungetc (c); - } - return (unsigned char) n; + c = phase1_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + { + n = (n << 3) + (c - '0'); + c = phase1_getc (); + if (c != EOF) + { + if (c >= '0' && c <= '7') + n = (n << 3) + (c - '0'); + else + phase1_ungetc (c); + } + } + else + phase1_ungetc (c); + } + return (unsigned char) n; } default: /* Note: If c is non-ASCII, Tcl's behaviour is undefined here. */ @@ -564,22 +563,22 @@ enum terminator { - te_space_separator, /* looking for space semicolon newline */ - te_space_separator_bracket, /* looking for space semicolon newline ']' */ - te_paren, /* looking for ')' */ - te_quote /* looking for '"' */ + te_space_separator, /* looking for space semicolon newline */ + te_space_separator_bracket, /* looking for space semicolon newline ']' */ + te_paren, /* looking for ')' */ + te_quote /* looking for '"' */ }; /* Forward declaration of local functions. */ static enum word_type read_command_list (int looking_for, - flag_context_ty outer_context); + flag_context_ty outer_context); /* Accumulate tokens into the given word. 'looking_for' denotes a parse terminator combination. Return the first character past the token. */ static int accumulate_word (struct word *wp, enum terminator looking_for, - flag_context_ty context) + flag_context_ty context) { int c; @@ -588,123 +587,123 @@ c = phase2_getc (); if (c == EOF || c == CL_BRACE) - return c; + return c; if ((looking_for == te_space_separator - || looking_for == te_space_separator_bracket) - && (c == ' ' || c == BS_NL - || c == '\t' || c == '\v' || c == '\f' || c == '\r' - || c == ';' || c == '\n')) - return c; + || looking_for == te_space_separator_bracket) + && (c == ' ' || c == BS_NL + || c == '\t' || c == '\v' || c == '\f' || c == '\r' + || c == ';' || c == '\n')) + return c; if (looking_for == te_space_separator_bracket && c == ']') - return c; + return c; if (looking_for == te_paren && c == ')') - return c; + return c; if (looking_for == te_quote && c == '"') - return c; + return c; if (c == '$') - { - /* Distinguish $varname, ${varname} and lone $. */ - c = phase2_getc (); - if (c == '{') - { - /* ${varname} */ - do - c = phase2_getc (); - while (c != EOF && c != '}'); - wp->type = t_other; - } - else - { - bool nonempty = false; - - for (; c != EOF && c != CL_BRACE; c = phase2_getc ()) - { - if (c_isalnum ((unsigned char) c) || (c == '_')) - { - nonempty = true; - continue; - } - if (c == ':') - { - c = phase2_getc (); - if (c == ':') - { - do - c = phase2_getc (); - while (c == ':'); - - phase2_ungetc (c); - nonempty = true; - continue; - } - phase2_ungetc (c); - c = ':'; - } - break; - } - if (c == '(') - { - /* $varname(index) */ - struct word index_word; - - index_word.type = t_other; - c = accumulate_word (&index_word, te_paren, null_context); - if (c != EOF && c != ')') - phase2_ungetc (c); - wp->type = t_other; - } - else - { - phase2_ungetc (c); - if (nonempty) - { - /* $varname */ - wp->type = t_other; - } - else - { - /* lone $ */ - if (wp->type == t_string) - { - grow_token (wp->token); - wp->token->chars[wp->token->charcount++] = '$'; - } - } - } - } - } + { + /* Distinguish $varname, ${varname} and lone $. */ + c = phase2_getc (); + if (c == '{') + { + /* ${varname} */ + do + c = phase2_getc (); + while (c != EOF && c != '}'); + wp->type = t_other; + } + else + { + bool nonempty = false; + + for (; c != EOF && c != CL_BRACE; c = phase2_getc ()) + { + if (c_isalnum ((unsigned char) c) || (c == '_')) + { + nonempty = true; + continue; + } + if (c == ':') + { + c = phase2_getc (); + if (c == ':') + { + do + c = phase2_getc (); + while (c == ':'); + + phase2_ungetc (c); + nonempty = true; + continue; + } + phase2_ungetc (c); + c = ':'; + } + break; + } + if (c == '(') + { + /* $varname(index) */ + struct word index_word; + + index_word.type = t_other; + c = accumulate_word (&index_word, te_paren, null_context); + if (c != EOF && c != ')') + phase2_ungetc (c); + wp->type = t_other; + } + else + { + phase2_ungetc (c); + if (nonempty) + { + /* $varname */ + wp->type = t_other; + } + else + { + /* lone $ */ + if (wp->type == t_string) + { + grow_token (wp->token); + wp->token->chars[wp->token->charcount++] = '$'; + } + } + } + } + } else if (c == '[') - { - read_command_list (']', context); - wp->type = t_other; - } + { + read_command_list (']', context); + wp->type = t_other; + } else if (c == '\\') - { - unsigned int uc; - unsigned char utf8buf[6]; - int count; - int i; - - uc = do_getc_escaped (); - assert (uc < 0x10000); - count = u8_uctomb (utf8buf, uc, 6); - assert (count > 0); - if (wp->type == t_string) - for (i = 0; i < count; i++) - { - grow_token (wp->token); - wp->token->chars[wp->token->charcount++] = utf8buf[i]; - } - } + { + unsigned int uc; + unsigned char utf8buf[6]; + int count; + int i; + + uc = do_getc_escaped (); + assert (uc < 0x10000); + count = u8_uctomb (utf8buf, uc, 6); + assert (count > 0); + if (wp->type == t_string) + for (i = 0; i < count; i++) + { + grow_token (wp->token); + wp->token->chars[wp->token->charcount++] = utf8buf[i]; + } + } else - { - if (wp->type == t_string) - { - grow_token (wp->token); - wp->token->chars[wp->token->charcount++] = (unsigned char) c; - } - } + { + if (wp->type == t_string) + { + grow_token (wp->token); + wp->token->chars[wp->token->charcount++] = (unsigned char) c; + } + } } } @@ -719,7 +718,7 @@ do c = phase2_getc (); while (c == ' ' || c == BS_NL - || c == '\t' || c == '\v' || c == '\f' || c == '\r'); + || c == '\t' || c == '\v' || c == '\f' || c == '\r'); if (c == EOF) { @@ -737,9 +736,9 @@ if (c == '\n') { /* Comments assumed to be grouped with a message must immediately - precede it, with no non-whitespace token on a line between both. */ + precede it, with no non-whitespace token on a line between both. */ if (last_non_comment_line > last_comment_line) - savable_comment_reset (); + savable_comment_reset (); wp->type = t_separator; return; } @@ -764,14 +763,14 @@ enum word_type terminator; /* Start a new nested character group, which lasts until the next - balanced '}' (ignoring \} things). */ + balanced '}' (ignoring \} things). */ previous_depth = phase2_push () - 1; /* Interpret it as a command list. */ terminator = read_command_list ('\0', null_context); if (terminator == t_brace) - phase2_pop (previous_depth); + phase2_pop (previous_depth); wp->type = t_other; last_non_comment_line = line_number; @@ -787,18 +786,18 @@ { c = accumulate_word (wp, te_quote, context); if (c != EOF && c != '"') - phase2_ungetc (c); + phase2_ungetc (c); } else { phase2_ungetc (c); c = accumulate_word (wp, - looking_for == ']' - ? te_space_separator_bracket - : te_space_separator, - context); + looking_for == ']' + ? te_space_separator_bracket + : te_space_separator, + context); if (c != EOF) - phase2_ungetc (c); + phase2_ungetc (c); } if (wp->type != t_string) @@ -825,119 +824,120 @@ c = phase2_getc (); if (c == ' ' || c == BS_NL - || c == '\t' || c == '\v' || c == '\f' || c == '\r') - continue; + || c == '\t' || c == '\v' || c == '\f' || c == '\r') + continue; if (c == '#') - { - /* Skip a comment up to end of line. */ - last_comment_line = line_number; - comment_start (); - for (;;) - { - c = phase2_getc (); - if (c == EOF || c == CL_BRACE || c == '\n') - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - comment_add (c); - } - comment_line_end (); - continue; - } + { + /* Skip a comment up to end of line. */ + last_comment_line = line_number; + comment_start (); + for (;;) + { + c = phase2_getc (); + if (c == EOF || c == CL_BRACE || c == '\n') + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + comment_add (c); + } + comment_line_end (); + continue; + } break; } phase2_ungetc (c); /* Read the words that make up the command. */ { - int arg = 0; /* Current argument number. */ + int arg = 0; /* Current argument number. */ flag_context_list_iterator_ty context_iter; const struct callshapes *shapes = NULL; struct arglist_parser *argparser = NULL; for (;; arg++) { - struct word inner; - flag_context_ty inner_context; + struct word inner; + flag_context_ty inner_context; - if (arg == 0) - inner_context = null_context; - else - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - - read_word (&inner, looking_for, inner_context); - - /* Recognize end of command. */ - if (inner.type == t_separator || inner.type == t_bracket - || inner.type == t_brace || inner.type == t_eof) - { - if (argparser != NULL) - arglist_parser_done (argparser, arg); - return inner.type; - } - - if (extract_all) - { - if (inner.type == t_string) - { - lex_pos_ty pos; - - pos.file_name = logical_file_name; - pos.line_number = inner.line_number_at_start; - remember_a_message (mlp, NULL, string_of_word (&inner), - inner_context, &pos, savable_comment); - } - } - - if (arg == 0) - { - /* This is the function position. */ - if (inner.type == t_string) - { - char *function_name = string_of_word (&inner); - char *stripped_name; - void *keyword_value; - - /* A leading "::" is redundant. */ - stripped_name = function_name; - if (function_name[0] == ':' && function_name[1] == ':') - stripped_name += 2; - - if (hash_find_entry (&keywords, - stripped_name, strlen (stripped_name), - &keyword_value) - == 0) - shapes = (const struct callshapes *) keyword_value; - - argparser = arglist_parser_alloc (mlp, shapes); - - context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - stripped_name, strlen (stripped_name))); - - free (function_name); - } - else - context_iter = null_context_list_iterator; - } - else - { - /* These are the argument positions. */ - if (argparser != NULL && inner.type == t_string) - arglist_parser_remember (argparser, arg, - string_of_word (&inner), - inner_context, - logical_file_name, - inner.line_number_at_start, - savable_comment); - } + if (arg == 0) + inner_context = null_context; + else + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + + read_word (&inner, looking_for, inner_context); + + /* Recognize end of command. */ + if (inner.type == t_separator || inner.type == t_bracket + || inner.type == t_brace || inner.type == t_eof) + { + if (argparser != NULL) + arglist_parser_done (argparser, arg); + return inner.type; + } + + if (extract_all) + { + if (inner.type == t_string) + { + lex_pos_ty pos; + + pos.file_name = logical_file_name; + pos.line_number = inner.line_number_at_start; + remember_a_message (mlp, NULL, string_of_word (&inner), + inner_context, &pos, + NULL, savable_comment); + } + } + + if (arg == 0) + { + /* This is the function position. */ + if (inner.type == t_string) + { + char *function_name = string_of_word (&inner); + char *stripped_name; + void *keyword_value; + + /* A leading "::" is redundant. */ + stripped_name = function_name; + if (function_name[0] == ':' && function_name[1] == ':') + stripped_name += 2; + + if (hash_find_entry (&keywords, + stripped_name, strlen (stripped_name), + &keyword_value) + == 0) + shapes = (const struct callshapes *) keyword_value; + + argparser = arglist_parser_alloc (mlp, shapes); + + context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + stripped_name, strlen (stripped_name))); + + free (function_name); + } + else + context_iter = null_context_list_iterator; + } + else + { + /* These are the argument positions. */ + if (argparser != NULL && inner.type == t_string) + arglist_parser_remember (argparser, arg, + string_of_word (&inner), + inner_context, + logical_file_name, + inner.line_number_at_start, + savable_comment); + } - free_word (&inner); + free_word (&inner); } } } @@ -956,16 +956,16 @@ terminator = read_command (looking_for, outer_context); if (terminator != t_separator) - return terminator; + return terminator; } } void extract_tcl (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { mlp = mdlp->item[0]->messages; diff -Nru gettext-0.17/gettext-tools/src/x-tcl.h gettext-0.18.1.1/gettext-tools/src/x-tcl.h --- gettext-0.17/gettext-tools/src/x-tcl.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-tcl.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_TCL \ - { "tcl", "Tcl" }, \ + { "tcl", "Tcl" }, \ #define SCANNERS_TCL \ - { "Tcl", extract_tcl, \ - &flag_table_tcl, &formatstring_tcl, NULL }, \ + { "Tcl", extract_tcl, \ + &flag_table_tcl, &formatstring_tcl, NULL }, \ /* Scan a Tcl file and add its translatable strings to mdlp. */ extern void extract_tcl (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); /* Handling of options specific to this language. */ diff -Nru gettext-0.17/gettext-tools/src/x-ycp.c gettext-0.18.1.1/gettext-tools/src/x-ycp.c --- gettext-0.17/gettext-tools/src/x-ycp.c 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-ycp.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* xgettext YCP backend. - Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. This file was written by Bruno Haible , 2001. @@ -31,7 +31,6 @@ #include "message.h" #include "xgettext.h" -#include "x-ycp.h" #include "error.h" #include "xalloc.h" #include "gettext.h" @@ -89,8 +88,8 @@ if (c == EOF) { if (ferror (fp)) - error (EXIT_FAILURE, errno, _("error while reading \"%s\""), - real_file_name); + error (EXIT_FAILURE, errno, _("error while reading \"%s\""), + real_file_name); return EOF; } @@ -112,12 +111,12 @@ if (c != EOF) { if (c == '\n') - { - --line_number; - char_in_line = INT_MAX; - } + { + --line_number; + char_in_line = INT_MAX; + } else - --char_in_line; + --char_in_line; ungetc (c, fp); } @@ -150,40 +149,40 @@ { /* Eat whitespace, to recognize ^[\t ]*# pattern. */ do - c = phase1_getc (); + c = phase1_getc (); while (c == '\t' || c == ' '); if (c == '#') - { - /* sh comment. */ - buflen = 0; - lineno = line_number; - for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - { - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - } - } - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen] = '\0'; - savable_comment_add (buffer); - last_comment_line = lineno; - return '\n'; - } + { + /* sh comment. */ + buflen = 0; + lineno = line_number; + for (;;) + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + { + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + } + } + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen] = '\0'; + savable_comment_add (buffer); + last_comment_line = lineno; + return '\n'; + } } else c = phase1_getc (); @@ -193,102 +192,102 @@ c = phase1_getc (); switch (c) - { - default: - phase1_ungetc (c); - return '/'; - - case '*': - /* C comment. */ - buflen = 0; - lineno = line_number; - last_was_star = false; - for (;;) - { - c = phase1_getc (); - if (c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (buflen == 0 && (c == ' ' || c == '\t')) - continue; - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - switch (c) - { - case '\n': - --buflen; - while (buflen >= 1 - && (buffer[buflen - 1] == ' ' - || buffer[buflen - 1] == '\t')) - --buflen; - buffer[buflen] = '\0'; - savable_comment_add (buffer); - buflen = 0; - lineno = line_number; - last_was_star = false; - continue; - - case '*': - last_was_star = true; - continue; - - case '/': - if (last_was_star) - { - buflen -= 2; - while (buflen >= 1 - && (buffer[buflen - 1] == ' ' - || buffer[buflen - 1] == '\t')) - --buflen; - buffer[buflen] = '\0'; - savable_comment_add (buffer); - break; - } - /* FALLTHROUGH */ - - default: - last_was_star = false; - continue; - } - break; - } - last_comment_line = lineno; - return ' '; - - case '/': - /* C++ comment. */ - buflen = 0; - lineno = line_number; - for (;;) - { - c = phase1_getc (); - if (c == '\n' || c == EOF) - break; - /* We skip all leading white space, but not EOLs. */ - if (!(buflen == 0 && (c == ' ' || c == '\t'))) - { - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen++] = c; - } - } - if (buflen >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[buflen] = '\0'; - savable_comment_add (buffer); - last_comment_line = lineno; - return '\n'; - } + { + default: + phase1_ungetc (c); + return '/'; + + case '*': + /* C comment. */ + buflen = 0; + lineno = line_number; + last_was_star = false; + for (;;) + { + c = phase1_getc (); + if (c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (buflen == 0 && (c == ' ' || c == '\t')) + continue; + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + switch (c) + { + case '\n': + --buflen; + while (buflen >= 1 + && (buffer[buflen - 1] == ' ' + || buffer[buflen - 1] == '\t')) + --buflen; + buffer[buflen] = '\0'; + savable_comment_add (buffer); + buflen = 0; + lineno = line_number; + last_was_star = false; + continue; + + case '*': + last_was_star = true; + continue; + + case '/': + if (last_was_star) + { + buflen -= 2; + while (buflen >= 1 + && (buffer[buflen - 1] == ' ' + || buffer[buflen - 1] == '\t')) + --buflen; + buffer[buflen] = '\0'; + savable_comment_add (buffer); + break; + } + /* FALLTHROUGH */ + + default: + last_was_star = false; + continue; + } + break; + } + last_comment_line = lineno; + return ' '; + + case '/': + /* C++ comment. */ + buflen = 0; + lineno = line_number; + for (;;) + { + c = phase1_getc (); + if (c == '\n' || c == EOF) + break; + /* We skip all leading white space, but not EOLs. */ + if (!(buflen == 0 && (c == ' ' || c == '\t'))) + { + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen++] = c; + } + } + if (buflen >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[buflen] = '\0'; + savable_comment_add (buffer); + last_comment_line = lineno; + return '\n'; + } } else return c; @@ -301,7 +300,7 @@ if (c != EOF) { if (phase2_pushback_length == SIZEOF (phase2_pushback)) - abort (); + abort (); phase2_pushback[phase2_pushback_length++] = c; } } @@ -313,13 +312,13 @@ enum token_type_ty { token_type_eof, - token_type_lparen, /* ( */ - token_type_rparen, /* ) */ - token_type_comma, /* , */ - token_type_i18n, /* _( */ - token_type_string_literal, /* "abc" */ - token_type_symbol, /* symbol, number */ - token_type_other /* misc. operator */ + token_type_lparen, /* ( */ + token_type_rparen, /* ) */ + token_type_comma, /* , */ + token_type_i18n, /* _( */ + token_type_string_literal, /* "abc" */ + token_type_symbol, /* symbol, number */ + token_type_other /* misc. operator */ }; typedef enum token_type_ty token_type_ty; @@ -327,8 +326,8 @@ struct token_ty { token_type_ty type; - char *string; /* for token_type_string_literal, token_type_symbol */ - refcounted_string_list_ty *comment; /* for token_type_string_literal */ + char *string; /* for token_type_string_literal, token_type_symbol */ + refcounted_string_list_ty *comment; /* for token_type_string_literal */ int line_number; }; @@ -349,58 +348,58 @@ c = phase1_getc (); if (c == '"') - return P7_QUOTES; + return P7_QUOTES; if (c != '\\') - return c; + return c; c = phase1_getc (); if (c != '\n') - switch (c) - { - case 'b': - return '\b'; - case 'f': - return '\f'; - case 'n': - return '\n'; - case 'r': - return '\r'; - case 't': - return '\t'; - - /* FIXME: What is the octal escape syntax? - syntax.html says: [0] [0-7]+ - scanner.ll says: [0-7] [0-7] [0-7] - */ + switch (c) + { + case 'b': + return '\b'; + case 'f': + return '\f'; + case 'n': + return '\n'; + case 'r': + return '\r'; + case 't': + return '\t'; + + /* FIXME: What is the octal escape syntax? + syntax.html says: [0] [0-7]+ + scanner.ll says: [0-7] [0-7] [0-7] + */ #if 0 - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - int n, j; - - n = 0; - for (j = 0; j < 3; ++j) - { - n = n * 8 + c - '0'; - c = phase1_getc (); - switch (c) - { - default: - break; - - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - continue; - } - break; - } - phase1_ungetc (c); - return n; - } + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + int n, j; + + n = 0; + for (j = 0; j < 3; ++j) + { + n = n * 8 + c - '0'; + c = phase1_getc (); + switch (c) + { + default: + break; + + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + continue; + } + break; + } + phase1_ungetc (c); + return n; + } #endif - default: - return c; - } + default: + return c; + } } } @@ -440,131 +439,131 @@ c = phase2_getc (); switch (c) - { - case EOF: - tp->type = token_type_eof; - return; - - case '\n': - if (last_non_comment_line > last_comment_line) - savable_comment_reset (); - /* FALLTHROUGH */ - case '\r': - case '\t': - case ' ': - /* Ignore whitespace and comments. */ - continue; - } + { + case EOF: + tp->type = token_type_eof; + return; + + case '\n': + if (last_non_comment_line > last_comment_line) + savable_comment_reset (); + /* FALLTHROUGH */ + case '\r': + case '\t': + case ' ': + /* Ignore whitespace and comments. */ + continue; + } last_non_comment_line = tp->line_number; switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - /* Symbol, or part of a number. */ - bufpos = 0; - for (;;) - { - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - c = phase2_getc (); - switch (c) - { - case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': - case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': - case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': - case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': - case 'Y': case 'Z': - case '_': - case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': - case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': - case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': - case 's': case 't': case 'u': case 'v': case 'w': case 'x': - case 'y': case 'z': - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': - continue; - default: - if (bufpos == 1 && buffer[0] == '_' && c == '(') - { - tp->type = token_type_i18n; - return; - } - phase2_ungetc (c); - break; - } - break; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_symbol; - return; - - case '"': - bufpos = 0; - for (;;) - { - c = phase7_getc (); - if (c == EOF || c == P7_QUOTES) - break; - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos++] = c; - } - if (bufpos >= bufmax) - { - bufmax = 2 * bufmax + 10; - buffer = xrealloc (buffer, bufmax); - } - buffer[bufpos] = '\0'; - tp->string = xstrdup (buffer); - tp->type = token_type_string_literal; - tp->comment = add_reference (savable_comment); - return; - - case '(': - tp->type = token_type_lparen; - return; - - case ')': - tp->type = token_type_rparen; - return; - - case ',': - tp->type = token_type_comma; - return; - - default: - /* We could carefully recognize each of the 2 and 3 character - operators, but it is not necessary, as we only need to recognize - gettext invocations. Don't bother. */ - tp->type = token_type_other; - return; - } + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + /* Symbol, or part of a number. */ + bufpos = 0; + for (;;) + { + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + c = phase2_getc (); + switch (c) + { + case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': + case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': + case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': + case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': + case 'Y': case 'Z': + case '_': + case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': + case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': + case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': + case 's': case 't': case 'u': case 'v': case 'w': case 'x': + case 'y': case 'z': + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + continue; + default: + if (bufpos == 1 && buffer[0] == '_' && c == '(') + { + tp->type = token_type_i18n; + return; + } + phase2_ungetc (c); + break; + } + break; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_symbol; + return; + + case '"': + bufpos = 0; + for (;;) + { + c = phase7_getc (); + if (c == EOF || c == P7_QUOTES) + break; + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos++] = c; + } + if (bufpos >= bufmax) + { + bufmax = 2 * bufmax + 10; + buffer = xrealloc (buffer, bufmax); + } + buffer[bufpos] = '\0'; + tp->string = xstrdup (buffer); + tp->type = token_type_string_literal; + tp->comment = add_reference (savable_comment); + return; + + case '(': + tp->type = token_type_lparen; + return; + + case ')': + tp->type = token_type_rparen; + return; + + case ',': + tp->type = token_type_comma; + return; + + default: + /* We could carefully recognize each of the 2 and 3 character + operators, but it is not necessary, as we only need to recognize + gettext invocations. Don't bother. */ + tp->type = token_type_other; + return; + } } } @@ -575,7 +574,7 @@ if (tp->type != token_type_eof) { if (phase5_pushback_length == SIZEOF (phase5_pushback)) - abort (); + abort (); phase5_pushback[phase5_pushback_length++] = *tp; } } @@ -597,10 +596,10 @@ phase5_get (&tmp); if (tmp.type != token_type_string_literal) - { - phase5_unget (&tmp); - return; - } + { + phase5_unget (&tmp); + return; + } len = strlen (tp->string); tp->string = xrealloc (tp->string, len + strlen (tmp.string) + 1); strcpy (tp->string + len, tmp.string); @@ -636,19 +635,19 @@ Return true upon eof, false upon closing parenthesis. */ static bool extract_parenthesized (message_list_ty *mlp, - flag_context_ty outer_context, - flag_context_list_iterator_ty context_iter, - bool in_i18n) + flag_context_ty outer_context, + flag_context_list_iterator_ty context_iter, + bool in_i18n) { int state; /* 1 or 2 inside _( ... ), otherwise 0 */ - message_ty *plural_mp = NULL; /* defined only when in states 1 and 2 */ + message_ty *plural_mp = NULL; /* defined only when in states 1 and 2 */ /* Context iterator that will be used if the next token is a '('. */ flag_context_list_iterator_ty next_context_iter = passthrough_context_list_iterator; /* Current context. */ flag_context_ty inner_context = inherited_context (outer_context, - flag_context_list_iterator_advance (&context_iter)); + flag_context_list_iterator_advance (&context_iter)); /* Start state is 0 or 1. */ state = (in_i18n ? 1 : 0); @@ -658,106 +657,106 @@ token_ty token; if (in_i18n) - phase8_get (&token); + phase8_get (&token); else - phase5_get (&token); + phase5_get (&token); switch (token.type) - { - case token_type_i18n: - if (extract_parenthesized (mlp, inner_context, next_context_iter, - true)) - return true; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_string_literal: - if (state == 1) - { - lex_pos_ty pos; - pos.file_name = logical_file_name; - pos.line_number = token.line_number; - - if (plural_mp == NULL) - { - /* Seen an msgid. */ - plural_mp = remember_a_message (mlp, NULL, token.string, - inner_context, &pos, - token.comment); - state = 2; - } - else - { - /* Seen an msgid_plural. */ - remember_a_message_plural (plural_mp, token.string, - inner_context, &pos, - token.comment); - state = 0; - } - drop_reference (token.comment); - } - else - { - free_token (&token); - state = 0; - } - next_context_iter = null_context_list_iterator; - continue; - - case token_type_symbol: - next_context_iter = - flag_context_list_iterator ( - flag_context_list_table_lookup ( - flag_context_list_table, - token.string, strlen (token.string))); - free_token (&token); - state = 0; - continue; - - case token_type_lparen: - if (extract_parenthesized (mlp, inner_context, next_context_iter, - false)) - return true; - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_rparen: - return false; - - case token_type_comma: - if (state == 2) - state = 1; - else - state = 0; - inner_context = - inherited_context (outer_context, - flag_context_list_iterator_advance ( - &context_iter)); - next_context_iter = passthrough_context_list_iterator; - continue; - - case token_type_other: - next_context_iter = null_context_list_iterator; - state = 0; - continue; - - case token_type_eof: - return true; - - default: - abort (); - } + { + case token_type_i18n: + if (extract_parenthesized (mlp, inner_context, next_context_iter, + true)) + return true; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_string_literal: + if (state == 1) + { + lex_pos_ty pos; + pos.file_name = logical_file_name; + pos.line_number = token.line_number; + + if (plural_mp == NULL) + { + /* Seen an msgid. */ + plural_mp = remember_a_message (mlp, NULL, token.string, + inner_context, &pos, + NULL, token.comment); + state = 2; + } + else + { + /* Seen an msgid_plural. */ + remember_a_message_plural (plural_mp, token.string, + inner_context, &pos, + token.comment); + state = 0; + } + drop_reference (token.comment); + } + else + { + free_token (&token); + state = 0; + } + next_context_iter = null_context_list_iterator; + continue; + + case token_type_symbol: + next_context_iter = + flag_context_list_iterator ( + flag_context_list_table_lookup ( + flag_context_list_table, + token.string, strlen (token.string))); + free_token (&token); + state = 0; + continue; + + case token_type_lparen: + if (extract_parenthesized (mlp, inner_context, next_context_iter, + false)) + return true; + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_rparen: + return false; + + case token_type_comma: + if (state == 2) + state = 1; + else + state = 0; + inner_context = + inherited_context (outer_context, + flag_context_list_iterator_advance ( + &context_iter)); + next_context_iter = passthrough_context_list_iterator; + continue; + + case token_type_other: + next_context_iter = null_context_list_iterator; + state = 0; + continue; + + case token_type_eof: + return true; + + default: + abort (); + } } } void extract_ycp (FILE *f, - const char *real_filename, const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp) + const char *real_filename, const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp) { message_list_ty *mlp = mdlp->item[0]->messages; @@ -775,7 +774,7 @@ /* Eat tokens until eof is seen. When extract_parenthesized returns due to an unbalanced closing parenthesis, just restart it. */ while (!extract_parenthesized (mlp, null_context, null_context_list_iterator, - false)) + false)) ; fp = NULL; diff -Nru gettext-0.17/gettext-tools/src/x-ycp.h gettext-0.18.1.1/gettext-tools/src/x-ycp.h --- gettext-0.17/gettext-tools/src/x-ycp.h 2007-10-07 19:37:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/src/x-ycp.h 2010-06-06 12:49:58.000000000 +0000 @@ -28,17 +28,17 @@ #define EXTENSIONS_YCP \ - { "ycp", "YCP" }, \ + { "ycp", "YCP" }, \ #define SCANNERS_YCP \ - { "YCP", extract_ycp, \ - &flag_table_ycp, &formatstring_ycp, NULL }, \ + { "YCP", extract_ycp, \ + &flag_table_ycp, &formatstring_ycp, NULL }, \ /* Scan an YCP file and add its translatable strings to mdlp. */ extern void extract_ycp (FILE *fp, const char *real_filename, - const char *logical_filename, - flag_context_list_table_ty *flag_table, - msgdomain_list_ty *mdlp); + const char *logical_filename, + flag_context_list_table_ty *flag_table, + msgdomain_list_ty *mdlp); extern void init_flag_table_ycp (void); diff -Nru gettext-0.17/gettext-tools/styles/ChangeLog gettext-0.18.1.1/gettext-tools/styles/ChangeLog --- gettext-0.17/gettext-tools/styles/ChangeLog 2007-11-06 23:27:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/styles/ChangeLog 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,11 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gettext-tools/styles/Makefile.in gettext-0.18.1.1/gettext-tools/styles/Makefile.in --- gettext-0.17/gettext-tools/styles/Makefile.in 2007-11-06 23:40:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/styles/Makefile.in 2010-06-06 20:12:33.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -36,28 +38,41 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -65,13 +80,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -80,23 +96,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -104,68 +128,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -185,13 +239,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -199,6 +253,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -206,9 +267,23 @@ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(stylesdir)" -stylesDATA_INSTALL = $(INSTALL_DATA) DATA = $(styles_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = $(datadir)/gettext @@ -216,8 +291,12 @@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -258,136 +337,320 @@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -401,53 +664,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -460,17 +803,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -478,18 +824,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -504,6 +858,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -514,94 +869,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -611,13 +1094,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -638,8 +1122,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -654,6 +1149,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -667,6 +1163,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.2 gnits @@ -684,14 +1181,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits styles/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits styles/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits styles/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits styles/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -709,6 +1206,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo @@ -718,20 +1216,23 @@ install-stylesDATA: $(styles_DATA) @$(NORMAL_INSTALL) test -z "$(stylesdir)" || $(MKDIR_P) "$(DESTDIR)$(stylesdir)" - @list='$(styles_DATA)'; for p in $$list; do \ + @list='$(styles_DATA)'; test -n "$(stylesdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(stylesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(stylesdir)/$$f'"; \ - $(stylesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(stylesdir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(stylesdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(stylesdir)" || exit $$?; \ done uninstall-stylesDATA: @$(NORMAL_UNINSTALL) - @list='$(styles_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(stylesdir)/$$f'"; \ - rm -f "$(DESTDIR)$(stylesdir)/$$f"; \ - done + @list='$(styles_DATA)'; test -n "$(stylesdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(stylesdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(stylesdir)" && rm -f $$files tags: TAGS TAGS: @@ -755,13 +1256,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -792,6 +1297,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -810,6 +1316,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -818,18 +1326,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -864,6 +1382,7 @@ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-stylesDATA + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/tests/ChangeLog gettext-0.18.1.1/gettext-tools/tests/ChangeLog --- gettext-0.17/gettext-tools/tests/ChangeLog 2007-11-06 23:27:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/ChangeLog 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,577 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-26 Bruno Haible + + Avoid test suite failures on NetBSD 5.0. + * msgfilter-1: Skip the test if the 'fold' program trims trailing + spaces. + * msgfilter-3: Likewise. + +2010-05-23 Bruno Haible + + msggrep: Fix interpretation of '$' in regular expressions. + * msggrep-9: New file. + * msggrep-10: New file. + * Makefile.am (TESTS): Add them. + Reported by Sean Flanigan . + +2010-05-22 Bruno Haible + + xgettext-glade-4: Skip, not fail, when expat was not available. + * xgettext-glade-4: Use the same test for xgettext Glade support as in + xgettext-glade-[123]. + Patch by Matt Burgess . + +2010-05-15 Bruno Haible + + Avoid link error on MacOS X 10.4, due to replaced 'unsetenv' function. + * Makefile.am (gettext_6_prg_LDADD, gettext_7_prg_LDADD): Add + libgettextlib.la. Add $(LDADD). + (gettext_6_prg_LDADD_1, gettext_7_prg_LDADD_1): Remove $(LDADD) here. + Reported by at . + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + Avoid test suite failures on Cygwin 1.7. + * lang-c++: Link without the -Wl,--disable-auto-import option. + * lang-clisp: Convert CR/LF to LF before applying DIFF. + * lang-tcl: Likewise. + +2010-04-25 Bruno Haible + + Update support of object-pascal-format strings. + * format-pascal-1: Add test for "%:d". + * format-pascal-2: Add test for "%:s". Test type compatibility between + %d, %u, %x. + +2010-03-31 Guido Flohr + + Improve how xgettext handles Perl syntax ambiguities. + * xgettext-perl-8: New file. + * Makefile.am (TESTS): Add it. + Reported by Guillem Jover via Santiago Vila. + +2009-12-26 Bruno Haible + + Enable the gettext-6 and gettext-7 tests also on MacOS X. + * Makefile.am (gettext_6_prg_CFLAGS, gettext_7_prg_CFLAGS): Depend on + HAVE_NEWLOCALE instead of GLIBC2. + (gettext_6_prg_LDADD, gettext_7_prg_LDADD): Likewise. Remove + libgettextlib.la. + * gettext-6-prg.c: Enable the test also on MacOS X platforms that have + uselocale. + (LOCALE_DE_ISO8859, LOCALE_FR_ISO8859): New macros. + (thread1_execution, thread2_execution): Use them. + (check_locale_exists): New function. + (main): Check for the locales if an argument is passed. + * gettext-7-prg.c: Enable the test also on MacOS X platforms that have + uselocale. + (LOCALE_DE_ISO8859, LOCALE_DE_UTF8): New macros. + (thread1_execution, thread2_execution): Use them. + (check_locale_exists): New function. + (main): Check for the locales if an argument is passed. + * gettext-6: Make the test work also on MacOS X systems. Test the + presence of the locales through the program, not through testlocale. + * gettext-7: Likewise. + +2009-12-26 Bruno Haible + + * gettext-7: Make the test fail when it produced unexpected results. + +2009-12-21 Bruno Haible + + * format-c-3-prg.c: Don't use setlocale override. + * format-c-4-prg.c: Likewise. + * plural-1-prg.c: Likewise. + +2009-12-13 Bruno Haible + + Avoid a test failure on MacOS X 10.5. + * lang-java: Make the test work when both locales fr_FR.ISO8859-1 and + fr_FR.UTF-8 exist. + +2009-12-12 Bruno Haible + + * *.c: Untabify. + +2009-08-30 Bruno Haible + + Fix a test failure on Solaris. + * msgexec-2 (TR): New variable. + +2009-08-15 Bruno Haible + + * msgunfmt-tcl-1: Explain that this test fails on mingw. + +2009-08-14 Bruno Haible + + * Makefile.am (update-expected): New target. + +2009-08-14 Bruno Haible + + Avoid a warning message on Cygwin. + * msggrep-7: Filter out msggrep's warning about locale charset. + +2009-08-13 Bruno Haible + + * msgexec-1: Filter out msgexec's warning about locale charset. + * msgexec-2: Likewise. + * msgexec-4: Likewise. Explain why this test fails on mingw. + +2009-08-10 Bruno Haible + + Avoid a test failure on Cygwin. + * msginit-1: Replace also CP1252 label with ASCII. + +2009-07-27 Часлав Илић (Chusslove Illich) + Bruno Haible + + * recode-sr-latin-1: Add test cases with accents. + +2009-06-06 Bruno Haible + + * xgettext-perl-1: Add test of // operator. + +2009-05-29 Bruno Haible + + * msgfmt-10: Update after msgfmt's error message changed. + +2009-05-29 Bruno Haible + + Avoid lang-c++ test failure. + * lang-c++: Pass --tag option to libtool. + +2009-05-21 Bruno Haible + + * Makefile.am (AUTOMAKE_OPTIONS): Add 1.11 and color-tests. + +2009-05-16 Bruno Haible + + * xgettext-glade-4: New file. + * Makefile.am (TESTS): Add it. + +2009-03-29 Bruno Haible + + * format-gfc-internal-1: New file. + * format-gfc-internal-2: New file. + * Makefile.am (TESTS): Add them. + +2009-01-28 Bruno Haible + + * format-qt-plural-1: New file. + * format-qt-plural-2: New file. + * Makefile.am (TESTS): Add them. + +2009-01-27 Bruno Haible + + * xgettext-c-13: Test also the 3 variants of the tr function and the + qt-plural-format flag. + +2009-01-25 Bruno Haible + + Avoid a test suite failure on platforms that have a gl_IE locale. + * msginit-1: Normalize the charset of the generated PO file. + +2008-10-04 Bruno Haible + + * msgfmt-17: New file. + * Makefile.am (TESTS): Add it. + Reported by Anatoly Techtonik + via . + +2008-10-04 Bruno Haible + + * msgcat-18: New file. + * msgcomm-27: New file. + * msgmerge-24: New file. + * xgettext-c-18: New file. + * Makefile.am (TESTS): Add them. + +2008-09-29 Bruno Haible + + Avoid test suite failures on mingw. + * msgexec-1: Don't produce CR/LFs in the per-message command script. + * msgexec-3: Likewise. + * msgexec-4: Likewise. + +2008-09-28 Bruno Haible + + Avoid test suite failures on mingw. + * msgcmp-2: Normalize program name with .exe suffix also when it + occurs at the beginning of a line of error output. + * msgcmp-3: Likewise. + * msgfmt-7: Likewise. + * msgfmt-8: Likewise. + * msgfmt-9: Likewise. + * msgfmt-10: Likewise. + * msgmerge-2: Likewise. + * msgmerge-9: Likewise. + * msgexec-2: Convert CR/LF to LF before applying DIFF. + +2008-08-23 Bruno Haible + + * msgmerge-update-4: New file, based on msgmerge-update-3. + * Makefile.am (TESTS): Add it. + Reported by Vincent Danjean + via . + +2008-08-16 Bruno Haible + + * xgettext-python-1: Test that strings inside [ ] are not extracted for + an outer gettext call. + +2008-08-15 Bruno Haible + + * format-python-2: Check that %.0s normally behaves like %s. + +2008-06-01 Bruno Haible + + * lang-bash: Add note about failure on MacOS X. + +2008-06-01 Bruno Haible + + * lang-smalltalk: Avoid test failure with gst-3.0.3 on MacOS X. + +2008-05-26 Bruno Haible + + * gettext-8: New file. + * Makefile.am (noinst_PROGRAMS): Add gettext-8-prg, remove gettext-8. + (gettext_8_prg_*): Renamed from gettext_8_*. + +2008-05-12 Bruno Haible + + * msgcat-17: Change test so that it works with newer line-breaking + algorithm. + +2008-04-06 Bruno Haible + + Avoid testsuite failures on MacOS X 10.5. + * format-c-3: Use "LC_ALL=C tr" instead of "tr". Avoids error with + non-ASCII bytes in UTF-8 locales. + * format-c-4: Likewise. + * format-c-5: Likewise. + * format-perl-mixed-1: Likewise. + * gettext-1: Likewise. + * lang-bash: Likewise. + * lang-c: Likewise. + * lang-c++: Likewise. + * lang-clisp: Likewise. + * lang-csharp: Likewise. + * lang-elisp: Likewise. + * lang-gawk: Likewise. + * lang-guile: Likewise. + * lang-java: Likewise. + * lang-librep: Likewise. + * lang-objc: Likewise. + * lang-pascal: Likewise. + * lang-perl-1: Likewise. + * lang-perl-2: Likewise. + * lang-php: Likewise. + * lang-po: Likewise. + * lang-python-1: Likewise. + * lang-python-2: Likewise. + * lang-rst: Likewise. + * lang-sh: Likewise. + * lang-smalltalk: Likewise. + * lang-tcl: Likewise. + * lang-ycp: Likewise. + * msgattrib-1: Likewise. + * msgattrib-10: Likewise. + * msgattrib-11: Likewise. + * msgattrib-12: Likewise. + * msgattrib-13: Likewise. + * msgattrib-14: Likewise. + * msgattrib-15: Likewise. + * msgattrib-16: Likewise. + * msgattrib-17: Likewise. + * msgattrib-2: Likewise. + * msgattrib-3: Likewise. + * msgattrib-4: Likewise. + * msgattrib-5: Likewise. + * msgattrib-6: Likewise. + * msgattrib-7: Likewise. + * msgattrib-8: Likewise. + * msgattrib-9: Likewise. + * msgattrib-properties-1: Likewise. + * msgcat-1: Likewise. + * msgcat-10: Likewise. + * msgcat-11: Likewise. + * msgcat-13: Likewise. + * msgcat-15: Likewise. + * msgcat-16: Likewise. + * msgcat-17: Likewise. + * msgcat-2: Likewise. + * msgcat-3: Likewise. + * msgcat-4: Likewise. + * msgcat-5: Likewise. + * msgcat-6: Likewise. + * msgcat-7: Likewise. + * msgcat-8: Likewise. + * msgcat-9: Likewise. + * msgcat-properties-1: Likewise. + * msgcat-stringtable-1: Likewise. + * msgcmp-2: Likewise. + * msgcmp-3: Likewise. + * msgcomm-1: Likewise. + * msgcomm-10: Likewise. + * msgcomm-11: Likewise. + * msgcomm-12: Likewise. + * msgcomm-13: Likewise. + * msgcomm-14: Likewise. + * msgcomm-16: Likewise. + * msgcomm-17: Likewise. + * msgcomm-18: Likewise. + * msgcomm-19: Likewise. + * msgcomm-2: Likewise. + * msgcomm-20: Likewise. + * msgcomm-21: Likewise. + * msgcomm-22: Likewise. + * msgcomm-23: Likewise. + * msgcomm-24: Likewise. + * msgcomm-25: Likewise. + * msgcomm-26: Likewise. + * msgcomm-3: Likewise. + * msgcomm-4: Likewise. + * msgcomm-5: Likewise. + * msgcomm-6: Likewise. + * msgcomm-7: Likewise. + * msgcomm-8: Likewise. + * msgcomm-9: Likewise. + * msgconv-5: Likewise. + * msgconv-6: Likewise. + * msgen-1: Likewise. + * msgen-2: Likewise. + * msgen-3: Likewise. + * msgfilter-sr-latin-1: Likewise. + * msgfmt-1: Likewise. + * msgfmt-10: Likewise. + * msgfmt-12: Likewise. + * msgfmt-14: Likewise. + * msgfmt-16: Likewise. + * msgfmt-5: Likewise. + * msgfmt-7: Likewise. + * msgfmt-8: Likewise. + * msgfmt-9: Likewise. + * msgfmt-properties-1: Likewise. + * msggrep-1: Likewise. + * msggrep-2: Likewise. + * msggrep-3: Likewise. + * msggrep-4: Likewise. + * msggrep-5: Likewise. + * msggrep-6: Likewise. + * msggrep-7: Likewise. + * msggrep-8: Likewise. + * msginit-1: Likewise. + * msginit-2: Likewise. + * msgmerge-1: Likewise. + * msgmerge-10: Likewise. + * msgmerge-11: Likewise. + * msgmerge-12: Likewise. + * msgmerge-13: Likewise. + * msgmerge-14: Likewise. + * msgmerge-15: Likewise. + * msgmerge-16: Likewise. + * msgmerge-17: Likewise. + * msgmerge-18: Likewise. + * msgmerge-19: Likewise. + * msgmerge-2: Likewise. + * msgmerge-20: Likewise. + * msgmerge-21: Likewise. + * msgmerge-22: Likewise. + * msgmerge-23: Likewise. + * msgmerge-3: Likewise. + * msgmerge-4: Likewise. + * msgmerge-5: Likewise. + * msgmerge-6: Likewise. + * msgmerge-7: Likewise. + * msgmerge-8: Likewise. + * msgmerge-9: Likewise. + * msgmerge-compendium-1: Likewise. + * msgmerge-compendium-2: Likewise. + * msgmerge-compendium-3: Likewise. + * msgmerge-compendium-4: Likewise. + * msgmerge-compendium-5: Likewise. + * msgmerge-compendium-6: Likewise. + * msgmerge-properties-1: Likewise. + * msgmerge-properties-2: Likewise. + * msgmerge-update-2: Likewise. + * msgunfmt-1: Likewise. + * msgunfmt-2: Likewise. + * msgunfmt-properties-1: Likewise. + * msguniq-1: Likewise. + * msguniq-2: Likewise. + * msguniq-3: Likewise. + * msguniq-5: Likewise. + * msguniq-6: Likewise. + * plural-1: Likewise. + * xgettext-2: Likewise. + * xgettext-3: Likewise. + * xgettext-4: Likewise. + * xgettext-5: Likewise. + * xgettext-6: Likewise. + * xgettext-7: Likewise. + * xgettext-8: Likewise. + * xgettext-9: Likewise. + * xgettext-awk-1: Likewise. + * xgettext-awk-2: Likewise. + * xgettext-c-1: Likewise. + * xgettext-c-10: Likewise. + * xgettext-c-11: Likewise. + * xgettext-c-12: Likewise. + * xgettext-c-13: Likewise. + * xgettext-c-14: Likewise. + * xgettext-c-15: Likewise. + * xgettext-c-16: Likewise. + * xgettext-c-17: Likewise. + * xgettext-c-2: Likewise. + * xgettext-c-3: Likewise. + * xgettext-c-4: Likewise. + * xgettext-c-5: Likewise. + * xgettext-c-6: Likewise. + * xgettext-c-7: Likewise. + * xgettext-c-8: Likewise. + * xgettext-c-9: Likewise. + * xgettext-csharp-1: Likewise. + * xgettext-csharp-2: Likewise. + * xgettext-csharp-3: Likewise. + * xgettext-csharp-4: Likewise. + * xgettext-csharp-5: Likewise. + * xgettext-csharp-6: Likewise. + * xgettext-csharp-7: Likewise. + * xgettext-elisp-1: Likewise. + * xgettext-elisp-2: Likewise. + * xgettext-java-1: Likewise. + * xgettext-java-2: Likewise. + * xgettext-java-3: Likewise. + * xgettext-java-4: Likewise. + * xgettext-java-5: Likewise. + * xgettext-java-6: Likewise. + * xgettext-java-7: Likewise. + * xgettext-librep-1: Likewise. + * xgettext-librep-2: Likewise. + * xgettext-lisp-1: Likewise. + * xgettext-lisp-2: Likewise. + * xgettext-objc-1: Likewise. + * xgettext-objc-2: Likewise. + * xgettext-perl-1: Likewise. + * xgettext-perl-2: Likewise. + * xgettext-perl-3: Likewise. + * xgettext-perl-4: Likewise. + * xgettext-perl-5: Likewise. + * xgettext-perl-6: Likewise. + * xgettext-perl-7: Likewise. + * xgettext-php-1: Likewise. + * xgettext-php-2: Likewise. + * xgettext-php-3: Likewise. + * xgettext-php-4: Likewise. + * xgettext-po-1: Likewise. + * xgettext-properties-1: Likewise. + * xgettext-python-1: Likewise. + * xgettext-python-2: Likewise. + * xgettext-python-3: Likewise. + * xgettext-python-4: Likewise. + * xgettext-scheme-1: Likewise. + * xgettext-scheme-3: Likewise. + * xgettext-sh-1: Likewise. + * xgettext-sh-2: Likewise. + * xgettext-sh-3: Likewise. + * xgettext-sh-4: Likewise. + * xgettext-sh-5: Likewise. + * xgettext-sh-6: Likewise. + * xgettext-smalltalk-1: Likewise. + * xgettext-smalltalk-2: Likewise. + * xgettext-stringtable-1: Likewise. + * xgettext-tcl-1: Likewise. + * xgettext-tcl-2: Likewise. + * xgettext-tcl-3: Likewise. + * xgettext-ycp-1: Likewise. + * xgettext-ycp-2: Likewise. + * xgettext-ycp-3: Likewise. + * xgettext-ycp-4: Likewise. + +2008-02-20 Bruno Haible + + * format-gcc-internal-1: Test also %K. + +2008-02-04 Bruno Haible + + * msgmerge-23: New file. + * Makefile.am (TESTS): Add it. + Reported by Yukiko Bando via + Chusslove Illich (Часлав Илић) . + +2008-01-12 Bruno Haible + + * xgettext-glade-2: Use 'grep' with a pipe as input, not a regular + file. + * xgettext-glade-3: Likewise. + * xgettext-java-2: Likewise. + * xgettext-python-1: Likewise. + * xgettext-python-3: Likewise. + * xgettext-stringtable-1: Likewise. + * xgettext-tcl-1: Likewise. + Fixes test failures on OpenBSD 4.0. + +2007-12-24 Bruno Haible + + * gettext-3-prg.c: Don't include setenv.h. + * gettext-5-prg.c: Likewise. + * gettext-6-prg.c: Likewise. + * gettext-7-prg.c: Likewise. + +2007-12-24 Bruno Haible + + * msginit-1: Add 'Language' field in header to input. Check that it is + filled. + * msginit-2: Likewise. + * msgmerge-5: Add 'Language' field in header to expected result. + * msgmerge-6: Likewise. + * msgmerge-10: Likewise. + * msgmerge-11: Likewise. + * msgmerge-12: Likewise. + * msgmerge-13: Likewise. + * msgmerge-14: Likewise. + * msgmerge-16: Likewise. + * msgmerge-21: Likewise. + * msgmerge-22: Likewise. + * mm-viet.out: Likewise. + * msgmerge-update-1: Add 'Language' field in header to input. + * msgmerge-update-2: Likewise. + * msgmerge-update-3: Likewise. + * xgettext-3: Add 'Language' field in header to expected result. + * xgettext-4: Likewise. + * xgettext-5: Likewise. + * xgettext-8: Likewise. + * xgettext-csharp-2: Likewise. + * xgettext-csharp-3: Likewise. + * xgettext-glade-1: Likewise. + * xgettext-glade-2: Likewise. + * xgettext-glade-3: Likewise. + * xgettext-java-2: Likewise. + * xgettext-perl-2: Likewise. + * xgettext-perl-3: Likewise. + * xgettext-python-1: Likewise. + * xgettext-python-3: Likewise. + * xgettext-stringtable-1: Likewise. + * xgettext-tcl-1: Likewise. + +2007-12-22 Bruno Haible + + * msgcat-17: New file. + * Makefile.am (TESTS): Add it. + +2007-11-15 Bruno Haible + + * gettext-8-prg.c: New file. + * Makefile.am (TESTS, noinst_PROGRAMS): Add gettext-8. + (gettext_8_*): New variables. + 2007-11-07 Bruno Haible * gettext-0.17 released. @@ -332,8 +906,8 @@ 2007-04-30 Bruno Haible - * lang-php: Remove 'echo' of printf result. - Patch by Jens Petersen . + * lang-php: Remove 'echo' of printf result. + Patch by Jens Petersen . 2007-03-27 Bruno Haible @@ -349,8 +923,8 @@ 2007-03-17 Bruno Haible - * xgettext-php-1: Test that strings [ ] are not extracted for an outer - gettext call. + * xgettext-php-1: Test that strings inside [ ] are not extracted for an + outer gettext call. 2007-02-19 Bruno Haible @@ -549,7 +1123,7 @@ 2006-06-04 Bruno Haible - * recode-sr-latin-2: Skip the test on MacOS X and BeOS. + * recode-sr-latin-2: Skip the test on MacOS X and BeOS. 2006-06-04 Bruno Haible @@ -921,7 +1495,7 @@ 2005-07-16 Bruno Haible - * msgcat-stringtable-1: Filter out warning message from output. + * msgcat-stringtable-1: Filter out warning message from output. 2005-05-27 Bruno Haible diff -Nru gettext-0.17/gettext-tools/tests/format-c-3 gettext-0.18.1.1/gettext-tools/tests/format-c-3 --- gettext-0.17/gettext-tools/tests/format-c-3 2007-05-14 22:35:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-c-3 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o fc3.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-3-prg.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fc3.tmp > fc3.pot +LC_ALL=C tr -d '\r' < fc3.tmp > fc3.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles fc3.ok" @@ -40,7 +40,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o de.po.tmp de/LC_MESSAGES/fc3.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < de.po.tmp > de.po.un +LC_ALL=C tr -d '\r' < de.po.tmp > de.po.un test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/format-c-3-prg.c gettext-0.18.1.1/gettext-tools/tests/format-c-3-prg.c --- gettext-0.17/gettext-tools/tests/format-c-3-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-c-3-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the format-c-3 test. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +31,11 @@ #undef _LIBINTL_H #include "libgnuintl.h" +/* Disable the override of setlocale that libgnuintl.h activates on MacOS X + and Windows. This test relies on the fake setlocale function in + setlocale.c. */ +#undef setlocale + #define _(string) gettext (string) /* Fallback definition. */ @@ -62,8 +67,8 @@ c1 = "Vater von %"; c2 = " Kindern"; if (!(strlen (s) > strlen (c1) + strlen (c2) - && memcmp (s, c1, strlen (c1)) == 0 - && memcmp (s + strlen (s) - strlen (c2), c2, strlen (c2)) == 0)) + && memcmp (s, c1, strlen (c1)) == 0 + && memcmp (s + strlen (s) - strlen (c2), c2, strlen (c2)) == 0)) { fprintf (stderr, "String not translated.\n"); exit (1); diff -Nru gettext-0.17/gettext-tools/tests/format-c-4 gettext-0.18.1.1/gettext-tools/tests/format-c-4 --- gettext-0.17/gettext-tools/tests/format-c-4 2007-05-14 22:36:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-c-4 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o fc4.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-4-prg.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fc4.tmp > fc4.pot +LC_ALL=C tr -d '\r' < fc4.tmp > fc4.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles fc4.ok" @@ -44,7 +44,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o de.po.tmp de/LC_MESSAGES/fc4.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < de.po.tmp > de.po.un +LC_ALL=C tr -d '\r' < de.po.tmp > de.po.un test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/format-c-4-prg.c gettext-0.18.1.1/gettext-tools/tests/format-c-4-prg.c --- gettext-0.17/gettext-tools/tests/format-c-4-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-c-4-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the format-c-4 test. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +31,11 @@ #undef _LIBINTL_H #include "libgnuintl.h" +/* Disable the override of setlocale that libgnuintl.h activates on MacOS X + and Windows. This test relies on the fake setlocale function in + setlocale.c. */ +#undef setlocale + #define _(string) gettext (string) /* Fallback definition. */ @@ -62,8 +67,8 @@ c1 = "Vater von %"; c2 = " Kindern"; if (!(strlen (s) > strlen (c1) + strlen (c2) - && memcmp (s, c1, strlen (c1)) == 0 - && memcmp (s + strlen (s) - strlen (c2), c2, strlen (c2)) == 0)) + && memcmp (s, c1, strlen (c1)) == 0 + && memcmp (s + strlen (s) - strlen (c2), c2, strlen (c2)) == 0)) { fprintf (stderr, "String not translated.\n"); exit (1); diff -Nru gettext-0.17/gettext-tools/tests/format-c-5 gettext-0.18.1.1/gettext-tools/tests/format-c-5 --- gettext-0.17/gettext-tools/tests/format-c-5 2007-05-14 22:37:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-c-5 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o fc5.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-5-prg.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fc5.tmp > fc5.pot +LC_ALL=C tr -d '\r' < fc5.tmp > fc5.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles fc5.ok" @@ -41,7 +41,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o fa.po.tmp fa/LC_MESSAGES/fc5.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fa.po.tmp > fa.po.un +LC_ALL=C tr -d '\r' < fa.po.tmp > fa.po.un test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/format-gcc-internal-1 gettext-0.18.1.1/gettext-tools/tests/format-gcc-internal-1 --- gettext-0.17/gettext-tools/tests/format-gcc-internal-1 2006-06-21 12:07:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-gcc-internal-1 2010-06-06 12:49:58.000000000 +0000 @@ -43,6 +43,8 @@ "abc%J" # Valid: %J with flags "%qJ" +# Valid: %K with flags +"%qK" # Valid: one pointer argument "abc%D" # Valid: one pointer argument diff -Nru gettext-0.17/gettext-tools/tests/format-gfc-internal-1 gettext-0.18.1.1/gettext-tools/tests/format-gfc-internal-1 --- gettext-0.17/gettext-tools/tests/format-gfc-internal-1 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-gfc-internal-1 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,109 @@ +#! /bin/sh + +# Test recognition of GFC internal format strings. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles f-gf-1.data" +cat <<\EOF > f-gf-1.data +# Valid: no argument +"abc%%" +# Valid: void argument +"abc%C" +# Valid: one locus argument +"abc%L" +# Valid: one character argument +"abc%c" +# Valid: one string argument +"abc%s" +# Valid: one integer argument +"abc%i" +# Valid: one integer argument +"abc%d" +# Valid: one integer argument +"abc%u" +# Valid: one argument with size specifier +"abc%li" +# Valid: one argument with size specifier +"abc%ld" +# Valid: one argument with size specifier +"abc%lu" +# Invalid: one argument with invalid size specifier +"abc%lli" +# Invalid: one argument with invalid size specifier +"abc%llu" +# Invalid: one argument with invalid size specifier +"abc%ls" +# Invalid: unterminated +"abc%" +# Invalid: unknown format specifier +"abc%y" +# Invalid: precision +"abc%.*s" +# Valid: three arguments +"abc%d%u%u" +# Valid: a numbered argument +"abc%1$d" +# Invalid: zero +"abc%0$d" +# Invalid: unterminated number +"abc%1" +# Valid: three arguments, two with same number +"abc%1$i,%2$c,%1$d" +# Invalid: argument with conflicting types +"abc%1$i,%2$c,%1$u" +# Valid: multiple uses of void argument +"abc%Cdef%dghi%C" +# Invalid: argument with conflicting types +"abc%1$i,%2$c,%1$C" +# Valid: mixing of numbered and unnumbered arguments +"abc%d%2$u" +# Invalid: missing non-final argument +"abc%2$u%3$s" +# Valid: non-final argument is void +"abc%C%2$u%3$s" +# Valid: permutation +"abc%2$ddef%1$d" +# Valid: multiple uses of same argument +"abc%2$udef%1$sghi%2$u" +EOF + +: ${XGETTEXT=xgettext} +n=0 +while read comment; do + read string + n=`expr $n + 1` + tmpfiles="$tmpfiles f-gf-1-$n.in f-gf-1-$n.po" + cat < f-gf-1-$n.in +gettext(${string}); +EOF + ${XGETTEXT} -L GCC-source -o f-gf-1-$n.po f-gf-1-$n.in || exit 1 + test -f f-gf-1-$n.po || exit 1 + fail= + if echo "$comment" | grep 'Valid:' > /dev/null; then + if grep gfc-internal-format f-gf-1-$n.po > /dev/null; then + : + else + fail=yes + fi + else + if grep gfc-internal-format f-gf-1-$n.po > /dev/null; then + fail=yes + else + : + fi + fi + if test -n "$fail"; then + echo "Format string recognition error:" 1>&2 + cat f-gf-1-$n.in 1>&2 + echo "Got:" 1>&2 + cat f-gf-1-$n.po 1>&2 + exit 1 + fi + rm -f f-gf-1-$n.in f-gf-1-$n.po +done < f-gf-1.data + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/format-gfc-internal-2 gettext-0.18.1.1/gettext-tools/tests/format-gfc-internal-2 --- gettext-0.17/gettext-tools/tests/format-gfc-internal-2 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-gfc-internal-2 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,184 @@ +#! /bin/sh + +# Test checking of GFC internal format strings. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles f-gf-2.data" +cat <<\EOF > f-gf-2.data +# Valid: %% doesn't count +msgid "abc%%def" +msgstr "xyz" +# Invalid: %C consumes currentloc +msgid "abc%Cdef" +msgstr "xyz" +# Invalid: %C consumes currentloc +msgid "abc" +msgstr "xyz%Cuvw" +# Invalid: invalid msgstr +msgid "abc%%def" +msgstr "xyz%" +# Valid: same arguments +msgid "abc%s%udef" +msgstr "xyz%s%u" +# Valid: same arguments but in numbered syntax +msgid "abc%s%ddef" +msgstr "xyz%1$s%2$d" +# Valid: permutation +msgid "abc%s%d%cdef" +msgstr "xyz%3$c%2$d%1$s" +# Invalid: too few arguments +msgid "abc%sdef%u" +msgstr "xyz%s" +# Invalid: too many arguments +msgid "abc%udef" +msgstr "xyz%uvw%c" +# Invalid: missing argument +msgid "abc%2$sdef%1$u" +msgstr "xyz%1$u" +# Invalid: missing argument +msgid "abc%1$sdef%2$u" +msgstr "xyz%2$u" +# Invalid: added argument +msgid "abc%1$udef" +msgstr "xyz%1$uvw%2$c" +# Valid: type compatibility +msgid "abc%i" +msgstr "xyz%d" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%s" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%i" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%u" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%li" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%lu" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%c" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%i" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%u" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%li" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%lu" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%s" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%i" +msgstr "xyz%u" +# Invalid: type incompatibility +msgid "abc%i" +msgstr "xyz%li" +# Invalid: type incompatibility +msgid "abc%i" +msgstr "xyz%lu" +# Invalid: type incompatibility +msgid "abc%i" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%i" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%u" +msgstr "xyz%li" +# Invalid: type incompatibility +msgid "abc%u" +msgstr "xyz%lu" +# Invalid: type incompatibility +msgid "abc%u" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%u" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%li" +msgstr "xyz%lu" +# Invalid: type incompatibility +msgid "abc%li" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%li" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%lu" +msgstr "xyz%L" +# Invalid: type incompatibility +msgid "abc%lu" +msgstr "xyz%C" +# Invalid: type incompatibility +msgid "abc%L" +msgstr "xyz%C" +# Invalid: permutation +msgid "abc%sdef%c" +msgstr "abc%cdef%s" +# Valid: currentloc reference position does not matter +msgid "abc%sdef%C" +msgstr "abc%Cdef%s" +# Valid: currentloc reference may be repeated +msgid "abc%sdef%C" +msgstr "abc%sdef%Cghi%C" +# Valid: currentloc reference may be repeated and permuted +msgid "abc%Cdef%Cghi%s" +msgstr "abc%sdef%C" +EOF + +: ${MSGFMT=msgfmt} +n=0 +while read comment; do + read msgid_line + read msgstr_line + n=`expr $n + 1` + tmpfiles="$tmpfiles f-gf-2-$n.po f-gf-2-$n.mo" + cat < f-gf-2-$n.po +#, gfc-internal-format +${msgid_line} +${msgstr_line} +EOF + fail= + if echo "$comment" | grep 'Valid:' > /dev/null; then + if ${MSGFMT} --check-format -o f-gf-2-$n.mo f-gf-2-$n.po; then + : + else + fail=yes + fi + else + ${MSGFMT} --check-format -o f-gf-2-$n.mo f-gf-2-$n.po 2> /dev/null + if test $? = 1; then + : + else + fail=yes + fi + fi + if test -n "$fail"; then + echo "Format string checking error:" 1>&2 + cat f-gf-2-$n.po 1>&2 + exit 1 + fi + rm -f f-gf-2-$n.po f-gf-2-$n.mo +done < f-gf-2.data + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/format-pascal-1 gettext-0.18.1.1/gettext-tools/tests/format-pascal-1 --- gettext-0.17/gettext-tools/tests/format-pascal-1 2003-02-14 14:36:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-pascal-1 2010-06-06 12:49:58.000000000 +0000 @@ -57,6 +57,8 @@ "abc%d%x%x" # Valid: a numbered argument "abc%0:d" +# Valid: a numbered argument with omitted number +"abc%:d" # Valid: two-digit numbered arguments "abc%10:def%9:dgh%8:dij%7:dkl%6:dmn%5:dop%4:dqr%3:dst%2:duv%1:dwx%0:dyz" # Invalid: unterminated number diff -Nru gettext-0.17/gettext-tools/tests/format-pascal-2 gettext-0.18.1.1/gettext-tools/tests/format-pascal-2 --- gettext-0.17/gettext-tools/tests/format-pascal-2 2003-02-14 14:36:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-pascal-2 2010-06-06 12:49:58.000000000 +0000 @@ -37,6 +37,12 @@ # Valid: same numbered arguments, with different widths msgid "abc%1:5s%0:4s" msgstr "xyz%1:4s%0:5s" +# Valid: same numbered arguments +msgid "abc%:s" +msgstr "xyz%0:s" +# Valid: same numbered arguments +msgid "abc%0:s" +msgstr "xyz%:s" # Invalid: missing argument msgid "abc%1:sdef%0:x" msgstr "xyz%0:x" @@ -47,6 +53,15 @@ msgid "abc%0:xdef" msgstr "xyz%0:xvw%1:p" # Valid: type compatibility +msgid "abc%d" +msgstr "xyz%u" +# Valid: type compatibility +msgid "abc%d" +msgstr "xyz%x" +# Valid: type compatibility +msgid "abc%u" +msgstr "xyz%x" +# Valid: type compatibility msgid "abc%e" msgstr "xyz%f" # Valid: type compatibility @@ -68,26 +83,14 @@ msgid "abc%d" msgstr "xyz%p" # Invalid: type incompatibility -msgid "abc%d" -msgstr "xyz%x" -# Invalid: type incompatibility msgid "abc%e" msgstr "xyz%s" # Invalid: type incompatibility msgid "abc%e" msgstr "xyz%p" # Invalid: type incompatibility -msgid "abc%e" -msgstr "xyz%x" -# Invalid: type incompatibility msgid "abc%s" msgstr "xyz%p" -# Invalid: type incompatibility -msgid "abc%s" -msgstr "xyz%x" -# Invalid: type incompatibility -msgid "abc%p" -msgstr "xyz%x" # Invalid: type incompatibility for width msgid "abc%g%*g" msgstr "xyz%*g%g" diff -Nru gettext-0.17/gettext-tools/tests/format-perl-mixed-1 gettext-0.18.1.1/gettext-tools/tests/format-perl-mixed-1 --- gettext-0.17/gettext-tools/tests/format-perl-mixed-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-perl-mixed-1 2010-06-06 12:49:58.000000000 +0000 @@ -44,7 +44,7 @@ fail= if test -n "${formats}"; then # Verify that the first line contains the expected #, comment. - if sed 1q < f-pm-1-$n.po | tr -d '\r' | grep '^'"${formats}"'$' > /dev/null; then + if sed 1q < f-pm-1-$n.po | LC_ALL=C tr -d '\r' | grep '^'"${formats}"'$' > /dev/null; then : else fail=yes diff -Nru gettext-0.17/gettext-tools/tests/format-python-2 gettext-0.18.1.1/gettext-tools/tests/format-python-2 --- gettext-0.17/gettext-tools/tests/format-python-2 2003-02-14 14:37:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-python-2 2010-06-06 12:49:58.000000000 +0000 @@ -84,6 +84,9 @@ msgstr "xyz%s" # Invalid: type incompatibility msgid "abc%c" +msgstr "xyz%.0s" +# Invalid: type incompatibility +msgid "abc%c" msgstr "xyz%i" # Invalid: type incompatibility msgid "abc%c" @@ -92,9 +95,15 @@ msgid "abc%s" msgstr "xyz%i" # Invalid: type incompatibility +msgid "abc%.0s" +msgstr "xyz%i" +# Invalid: type incompatibility msgid "abc%s" msgstr "xyz%e" # Invalid: type incompatibility +msgid "abc%.0s" +msgstr "xyz%e" +# Invalid: type incompatibility msgid "abc%i" msgstr "xyz%e" # Invalid: type incompatibility for width diff -Nru gettext-0.17/gettext-tools/tests/format-qt-plural-1 gettext-0.18.1.1/gettext-tools/tests/format-qt-plural-1 --- gettext-0.17/gettext-tools/tests/format-qt-plural-1 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-qt-plural-1 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,65 @@ +#! /bin/sh + +# Test recognition of Qt plural format strings. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles f-qtp-1.data" +cat <<\EOF > f-qtp-1.data +# Unrecognized: no argument +"abcdef" +# Unrecognized: unterminated +"abcdef%" +# Unrecognized: unterminated +"abcdef%L" +# Valid: one argument +"abc%ndef" +# Valid: unterminated +"abc%ndef%" +# Valid: unterminated +"abc%ndef%L" +# Valid: multiple uses of same argument +"abc%ndef%nghi" +# Valid: an argument with locale-dependency flag +"abc%Lndef" +EOF + +: ${XGETTEXT=xgettext} +n=0 +while read comment; do + read string + n=`expr $n + 1` + tmpfiles="$tmpfiles f-qtp-1-$n.in f-qtp-1-$n.po" + cat < f-qtp-1-$n.in +_(${string}); +EOF + ${XGETTEXT} -L C++ --qt -k_ -o f-qtp-1-$n.po f-qtp-1-$n.in || exit 1 + test -f f-qtp-1-$n.po || exit 1 + fail= + if echo "$comment" | grep 'Valid:' > /dev/null; then + if grep qt-plural-format f-qtp-1-$n.po > /dev/null; then + : + else + fail=yes + fi + else + if grep qt-plural-format f-qtp-1-$n.po > /dev/null; then + fail=yes + else + : + fi + fi + if test -n "$fail"; then + echo "Format string recognition error:" 1>&2 + cat f-qtp-1-$n.in 1>&2 + echo "Got:" 1>&2 + cat f-qtp-1-$n.po 1>&2 + exit 1 + fi + rm -f f-qtp-1-$n.in f-qtp-1-$n.po +done < f-qtp-1.data + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/format-qt-plural-2 gettext-0.18.1.1/gettext-tools/tests/format-qt-plural-2 --- gettext-0.17/gettext-tools/tests/format-qt-plural-2 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/format-qt-plural-2 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,73 @@ +#! /bin/sh + +# Test checking of Qt plural format strings. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles f-qtp-2.data" +cat <<\EOF > f-qtp-2.data +# Valid: %1 doesn't count +msgid "abc%1def" +msgstr "xyz" +# Valid: same arguments +msgid "abc%ndef" +msgstr "xyz%n" +# Valid: same arguments, L option is ignored +msgid "abc%Lndef" +msgstr "xyz%n" +# Valid: same arguments, L option is ignored +msgid "abc%ndef" +msgstr "xyz%Ln" +# Valid: repetition of an argument in the translation +msgid "abc%ndef" +msgstr "xyz%nuvw%n" +# Valid: removing repeated argument in the translation +msgid "abc%ndef%n" +msgstr "xyz%nuvw" +# Invalid: too few arguments +msgid "abc%ndef" +msgstr "xyz" +# Invalid: too many arguments +msgid "abcdef" +msgstr "xyz%nuvw" +EOF + +: ${MSGFMT=msgfmt} +n=0 +while read comment; do + read msgid_line + read msgstr_line + n=`expr $n + 1` + tmpfiles="$tmpfiles f-qtp-2-$n.po f-qtp-2-$n.mo" + cat < f-qtp-2-$n.po +#, qt-plural-format +${msgid_line} +${msgstr_line} +EOF + fail= + if echo "$comment" | grep 'Valid:' > /dev/null; then + if ${MSGFMT} --check-format -o f-qtp-2-$n.mo f-qtp-2-$n.po; then + : + else + fail=yes + fi + else + ${MSGFMT} --check-format -o f-qtp-2-$n.mo f-qtp-2-$n.po 2> /dev/null + if test $? = 1; then + : + else + fail=yes + fi + fi + if test -n "$fail"; then + echo "Format string checking error:" 1>&2 + cat f-qtp-2-$n.po 1>&2 + exit 1 + fi + rm -f f-qtp-2-$n.po f-qtp-2-$n.mo +done < f-qtp-2.data + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/gettext-1 gettext-0.18.1.1/gettext-tools/tests/gettext-1 --- gettext-0.17/gettext-tools/tests/gettext-1 2007-03-11 02:15:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-1 2010-06-06 12:49:58.000000000 +0000 @@ -13,7 +13,7 @@ tmpfiles="$tmpfiles gt-test1.out" : ${GETTEXT=gettext} TEXTDOMAINDIR=.. LANGUAGE=tests \ -${GETTEXT} --env LC_ALL=en -e test 'SYS_(C)\n' | tr -d '\r' > gt-test1.out +${GETTEXT} --env LC_ALL=en -e test 'SYS_(C)\n' | LC_ALL=C tr -d '\r' > gt-test1.out # Create correct file. tmpfile="$tmpfiles gtmf-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/gettext-3-prg.c gettext-0.18.1.1/gettext-tools/tests/gettext-3-prg.c --- gettext-0.17/gettext-tools/tests/gettext-3-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-3-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the gettext-3 test. - Copyright (C) 2000, 2005 Free Software Foundation, Inc. + Copyright (C) 2000, 2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include #include #include -#include "setenv.h" /* Make sure we use the included libintl, not the system's one. */ #undef _LIBINTL_H @@ -68,13 +67,13 @@ int j; if (setlocale (LC_ALL, lang[i]) == NULL) - setlocale (LC_ALL, "C"); + setlocale (LC_ALL, "C"); bindtextdomain ("tstlang", "."); for (j = 0; j < data_cnt; ++j) - printf ("%s - %s\n", strings[j].selection, - gettext (strings[j].description)); + printf ("%s - %s\n", strings[j].selection, + gettext (strings[j].description)); } return 0; diff -Nru gettext-0.17/gettext-tools/tests/gettext-5-prg.c gettext-0.18.1.1/gettext-tools/tests/gettext-5-prg.c --- gettext-0.17/gettext-tools/tests/gettext-5-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-5-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the gettext-5 test. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2007 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,7 +24,6 @@ #include #include #include -#include "setenv.h" /* Make sure we use the included libintl, not the system's one. */ #undef _LIBINTL_H diff -Nru gettext-0.17/gettext-tools/tests/gettext-6 gettext-0.18.1.1/gettext-tools/tests/gettext-6 --- gettext-0.17/gettext-tools/tests/gettext-6 2006-12-16 16:58:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-6 2010-06-06 12:49:58.000000000 +0000 @@ -7,30 +7,29 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -# This test works only on glibc systems. +# This test works only on glibc and MacOS X systems. +: ${host_os=unknown} : ${GLIBC2=no} -test "$GLIBC2" = yes || { - echo "Skipping test: not a glibc system" +{ case "$host_os" in + *-gnu*) test "$GLIBC2" = yes ;; + darwin*) true ;; + *) false ;; + esac +} || { + echo "Skipping test: not a glibc or Mac OS X system" exit 77 } # This test works only on systems that have a de_DE and fr_FR locale installed. -LC_ALL=de_DE ./testlocale || { +missing_locale=`./gettext-6-prg 1` +if test -n "$missing_locale"; then if test -f /usr/bin/localedef; then - echo "Skipping test: locale de_DE not installed" + echo "Skipping test: locale ${missing_locale} not installed" else - echo "Skipping test: locale de_DE not supported" + echo "Skipping test: locale ${missing_locale} not supported" fi exit 77 -} -LC_ALL=fr_FR ./testlocale || { - if test -f /usr/bin/localedef; then - echo "Skipping test: locale fr_FR not installed" - else - echo "Skipping test: locale fr_FR not supported" - fi - exit 77 -} +fi tmpfiles="$tmpfiles de_DE fr_FR" test -d de_DE || mkdir de_DE @@ -55,7 +54,7 @@ case $? in 0) ;; 77) - echo "Skipping test: not a glibc 2.3 system" + echo "Skipping test: not a glibc >= 2.3 or MacOS X >= 10.5 system" rm -fr $tmpfiles; exit 77 ;; esac diff -Nru gettext-0.17/gettext-tools/tests/gettext-6-prg.c gettext-0.18.1.1/gettext-tools/tests/gettext-6-prg.c --- gettext-0.17/gettext-tools/tests/gettext-6-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-6-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the gettext-6 test. - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,15 +25,26 @@ #include #include -#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) +#if USE_POSIX_THREADS && (__GLIBC__ >= 2 || (defined __APPLE__ && defined __MACH__)) && HAVE_USELOCALE #include -#include "setenv.h" /* Make sure we use the included libintl, not the system's one. */ #undef _LIBINTL_H #include "libgnuintl.h" +/* Name of German and French locale in ISO-8859-1 or ISO-8859-15 encoding. */ +#if __GLIBC__ >= 2 +# define LOCALE_DE_ISO8859 "de_DE.ISO-8859-1" +# define LOCALE_FR_ISO8859 "fr_FR.ISO-8859-1" +#elif defined __APPLE__ && defined __MACH__ /* MacOS X */ +# define LOCALE_DE_ISO8859 "de_DE.ISO8859-1" +# define LOCALE_FR_ISO8859 "fr_FR.ISO8859-1" +#else +# define LOCALE_DE_ISO8859 "de_DE" +# define LOCALE_FR_ISO8859 "fr_FR" +#endif + /* Set to 1 if the program is not behaving correctly. */ int result; @@ -73,7 +84,7 @@ char *s; waitfor (1); - uselocale (newlocale (LC_ALL_MASK, "de_DE", NULL)); + uselocale (newlocale (LC_ALL_MASK, LOCALE_DE_ISO8859, NULL)); setto (2); waitfor (1); @@ -105,7 +116,7 @@ char *s; waitfor (2); - uselocale (newlocale (LC_ALL_MASK, "fr_FR", NULL)); + uselocale (newlocale (LC_ALL_MASK, LOCALE_FR_ISO8859, NULL)); setto (1); waitfor (2); @@ -131,12 +142,36 @@ return NULL; } +static void +check_locale_exists (const char *name) +{ + if (newlocale (LC_ALL_MASK, name, NULL) == NULL) + { + printf ("%s\n", name); + exit (1); + } +} + int -main (void) +main (int argc, char *argv[]) { + int arg; pthread_t thread1; pthread_t thread2; + arg = (argc > 1 ? atoi (argv[1]) : 0); + switch (arg) + { + case 1: + /* Check for the existence of the first locale. */ + check_locale_exists (LOCALE_DE_ISO8859); + /* Check for the existence of the second locale. */ + check_locale_exists (LOCALE_FR_ISO8859); + return 0; + default: + break; + } + unsetenv ("LANGUAGE"); unsetenv ("OUTPUT_CHARSET"); textdomain ("tstthread"); diff -Nru gettext-0.17/gettext-tools/tests/gettext-7 gettext-0.18.1.1/gettext-tools/tests/gettext-7 --- gettext-0.17/gettext-tools/tests/gettext-7 2006-12-16 16:58:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-7 2010-06-06 12:49:58.000000000 +0000 @@ -7,31 +7,30 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -# This test works only on glibc systems. +# This test works only on glibc and MacOS X systems. +: ${host_os=unknown} : ${GLIBC2=no} -test "$GLIBC2" = yes || { - echo "Skipping test: not a glibc system" +{ case "$host_os" in + *-gnu*) test "$GLIBC2" = yes ;; + darwin*) true ;; + *) false ;; + esac +} || { + echo "Skipping test: not a glibc or Mac OS X system" exit 77 } # This test works only on systems that have a de_DE.ISO-8859-1 and # de_DE.UTF-8 locale installed. -LC_ALL=de_DE.ISO-8859-1 ./testlocale || { +missing_locale=`./gettext-7-prg 1` +if test -n "$missing_locale"; then if test -f /usr/bin/localedef; then - echo "Skipping test: locale de_DE.ISO-8859-1 not installed" + echo "Skipping test: locale ${missing_locale} not installed" else - echo "Skipping test: locale de_DE.ISO-8859-1 not supported" + echo "Skipping test: locale ${missing_locale} not supported" fi exit 77 -} -LC_ALL=de_DE.UTF-8 ./testlocale || { - if test -f /usr/bin/localedef; then - echo "Skipping test: locale de_DE.UTF-8 not installed" - else - echo "Skipping test: locale de_DE.UTF-8 not supported" - fi - exit 77 -} +fi tmpfiles="$tmpfiles de_DE" test -d de_DE || mkdir de_DE @@ -45,9 +44,12 @@ case $? in 0) ;; 77) - echo "Skipping test: not a glibc 2.3 system" + echo "Skipping test: not a glibc >= 2.3 or MacOS X >= 10.5 system" rm -fr $tmpfiles; exit 77 ;; + *) + exit 1 + ;; esac rm -fr $tmpfiles diff -Nru gettext-0.17/gettext-tools/tests/gettext-7-prg.c gettext-0.18.1.1/gettext-tools/tests/gettext-7-prg.c --- gettext-0.17/gettext-tools/tests/gettext-7-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-7-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the gettext-7 test. - Copyright (C) 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2005-2007, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,15 +25,26 @@ #include #include -#if USE_POSIX_THREADS && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) +#if USE_POSIX_THREADS && (__GLIBC__ >= 2 || (defined __APPLE__ && defined __MACH__)) && HAVE_USELOCALE #include -#include "setenv.h" /* Make sure we use the included libintl, not the system's one. */ #undef _LIBINTL_H #include "libgnuintl.h" +/* Name of German locale in ISO-8859-1 or ISO-8859-15 encoding. */ +#if __GLIBC__ >= 2 +# define LOCALE_DE_ISO8859 "de_DE.ISO-8859-1" +#elif defined __APPLE__ && defined __MACH__ /* MacOS X */ +# define LOCALE_DE_ISO8859 "de_DE.ISO8859-1" +#else +# define LOCALE_DE_ISO8859 "de_DE" +#endif + +/* Name of German locale in UTF-8 encoding. */ +#define LOCALE_DE_UTF8 "de_DE.UTF-8" + /* Set to 1 if the program is not behaving correctly. */ int result; @@ -73,7 +84,7 @@ char *s; waitfor (1); - uselocale (newlocale (LC_ALL_MASK, "de_DE.ISO-8859-1", NULL)); + uselocale (newlocale (LC_ALL_MASK, LOCALE_DE_ISO8859, NULL)); setto (2); /* Here we expect output in ISO-8859-1. */ @@ -107,7 +118,7 @@ char *s; waitfor (2); - uselocale (newlocale (LC_ALL_MASK, "de_DE.UTF-8", NULL)); + uselocale (newlocale (LC_ALL_MASK, LOCALE_DE_UTF8, NULL)); setto (1); /* Here we expect output in UTF-8. */ @@ -135,12 +146,36 @@ return NULL; } +static void +check_locale_exists (const char *name) +{ + if (newlocale (LC_ALL_MASK, name, NULL) == NULL) + { + printf ("%s\n", name); + exit (1); + } +} + int -main (void) +main (int argc, char *argv[]) { + int arg; pthread_t thread1; pthread_t thread2; + arg = (argc > 1 ? atoi (argv[1]) : 0); + switch (arg) + { + case 1: + /* Check for the existence of the first locale. */ + check_locale_exists (LOCALE_DE_ISO8859); + /* Check for the existence of the second locale. */ + check_locale_exists (LOCALE_DE_UTF8); + return 0; + default: + break; + } + unsetenv ("LANGUAGE"); unsetenv ("OUTPUT_CHARSET"); textdomain ("tstthread"); diff -Nru gettext-0.17/gettext-tools/tests/gettext-8 gettext-0.18.1.1/gettext-tools/tests/gettext-8 --- gettext-0.17/gettext-tools/tests/gettext-8 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-8 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,5 @@ +#! /bin/sh + +# Test that gettext() does not crash by stack overflow when msgid is very long. + +./gettext-8-prg diff -Nru gettext-0.17/gettext-tools/tests/gettext-8-prg.c gettext-0.18.1.1/gettext-tools/tests/gettext-8-prg.c --- gettext-0.17/gettext-tools/tests/gettext-8-prg.c 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/gettext-8-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,79 @@ +/* Test that gettext() does not crash by stack overflow when msgid is very long. + Copyright (C) 2007 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* Written by Bruno Haible , 2007. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +#if HAVE_GETRLIMIT && HAVE_SETRLIMIT +# include +# include +# include +#endif + +/* Make sure we use the included libintl, not the system's one. */ +#undef _LIBINTL_H +#include "libgnuintl.h" + +int +main () +{ + size_t n; + char *msg; + + n = 1000000; + +#if HAVE_GETRLIMIT && HAVE_SETRLIMIT + { + struct rlimit limit; + +# ifdef RLIMIT_STACK + if (getrlimit (RLIMIT_STACK, &limit) < 0) + { + printf ("Skipping test: getrlimit does not work\n"); + return 77; + } + if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > n) + limit.rlim_max = n; + limit.rlim_cur = limit.rlim_max; + if (setrlimit (RLIMIT_STACK, &limit) < 0) + { + printf ("Skipping test: setrlimit does not work\n"); + return 77; + } +# endif + } +#endif + + msg = (char *) malloc (n + 1); + if (msg == NULL) + { + printf ("Skipping test: out of memory\n"); + return 77; + } + memset (msg, 'x', n); + msg[n] = '\0'; + + msg = gettext (msg); + + return 0; +} diff -Nru gettext-0.17/gettext-tools/tests/lang-bash gettext-0.18.1.1/gettext-tools/tests/lang-bash --- gettext-0.17/gettext-tools/tests/lang-bash 2007-05-14 22:46:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-bash 2010-06-06 12:49:58.000000000 +0000 @@ -4,6 +4,11 @@ # Assumes an fr_FR locale is installed. # Assumes the following packages are installed: bash 2.0 or newer. +# This test fails on MacOS X 10.5 because its 'bash' command is built with +# an included intl directory without iconv support; hence it produces wrong +# output when accessing any .mo file not generated from a .po file in UTF-8 +# encoding. + tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 @@ -33,7 +38,7 @@ result=$? cat prog.err | grep -v 'warning: the syntax \$"\.\.\." is deprecated due to security reasons' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -73,7 +78,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-c gettext-0.18.1.1/gettext-tools/tests/lang-c --- gettext-0.17/gettext-tools/tests/lang-c 2007-05-14 22:47:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-c 2010-06-06 12:49:58.000000000 +0000 @@ -56,7 +56,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -107,7 +107,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-c++ gettext-0.18.1.1/gettext-tools/tests/lang-c++ --- gettext-0.17/gettext-tools/tests/lang-c++ 2007-05-14 22:47:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-c++ 2010-06-06 12:49:58.000000000 +0000 @@ -70,14 +70,17 @@ # ${CXXFLAGS} or ${CPPFLAGS}. ${CXX} -I.. -I../../gettext-runtime/libasprintf -I$top_srcdir/gnulib-lib -I../intl ${CXXFLAGS} ${CPPFLAGS} -c prog.cc \ || exit 1 -${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../gnulib-lib/libgettextlib.la ${LTLIBINTL} \ +# Remove the -Wl,--disable-auto-import option here that is added by +# woe32-dll.m4. Cygwin 1.7.2 does not support it in C++ mode: It gives +# a link error about 'std::cout'. +${LIBTOOL} --quiet --mode=link --tag=CXX ${CXX} ${CXXFLAGS} `echo "X ${LDFLAGS} " | sed -e 's/^X//' -e 's/ -Wl,--disable-auto-import / /'` -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../gnulib-lib/libgettextlib.la ${LTLIBINTL} \ || exit 1 tmpfiles="$tmpfiles prog.tmp prog.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -126,7 +129,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-clisp gettext-0.18.1.1/gettext-tools/tests/lang-clisp --- gettext-0.17/gettext-tools/tests/lang-clisp 2007-05-14 22:47:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-clisp 2010-06-06 12:49:58.000000000 +0000 @@ -25,7 +25,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.lisp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -74,7 +74,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -148,11 +148,13 @@ : ${LOCALE_FR=fr_FR} : ${LOCALE_FR_UTF8=fr_FR.UTF-8} if test $LOCALE_FR != none; then - CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR clisp prog.lisp 2 > prog.out || exit 1 + CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR clisp prog.lisp 2 > prog.tmp || exit 1 + LC_ALL=C tr -d '\r' < prog.tmp > prog.out || exit 1 ${DIFF} prog.ok prog.out || exit 1 fi if test $LOCALE_FR_UTF8 != none; then - CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 clisp prog.lisp 2 > prog.out || exit 1 + CLISP_LANGUAGE= LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 clisp prog.lisp 2 > prog.tmp || exit 1 + LC_ALL=C tr -d '\r' < prog.tmp > prog.out || exit 1 ${DIFF} prog.oku prog.out || exit 1 fi diff -Nru gettext-0.17/gettext-tools/tests/lang-csharp gettext-0.18.1.1/gettext-tools/tests/lang-csharp --- gettext-0.17/gettext-tools/tests/lang-csharp 2007-09-02 09:36:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-csharp 2010-06-06 12:49:58.000000000 +0000 @@ -57,7 +57,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location program.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -132,7 +132,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-elisp gettext-0.18.1.1/gettext-tools/tests/lang-elisp --- gettext-0.17/gettext-tools/tests/lang-elisp 2007-05-14 22:47:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-elisp 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.el test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -56,7 +56,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-gawk gettext-0.18.1.1/gettext-tools/tests/lang-gawk --- gettext-0.17/gettext-tools/tests/lang-gawk 2007-10-27 19:34:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-gawk 2010-06-06 12:49:58.000000000 +0000 @@ -29,7 +29,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.awk test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -78,7 +78,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-guile gettext-0.18.1.1/gettext-tools/tests/lang-guile --- gettext-0.17/gettext-tools/tests/lang-guile 2007-05-14 22:48:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-guile 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.scm test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -77,7 +77,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-java gettext-0.18.1.1/gettext-tools/tests/lang-java --- gettext-0.17/gettext-tools/tests/lang-java 2007-09-01 21:17:51.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-java 2010-06-06 12:49:58.000000000 +0000 @@ -38,24 +38,13 @@ Locale.setDefault(new Locale("fr","FR")); EOF case "$host_os" in - darwin[56]*) -cat <<\EOF >> Program.java - // Some systems (like MacOS X) don't set System.out's character encoding - // to ISO-8859-1, which is what we need for comparison purposes. - try { - System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out), - true, "ISO-8859-1")); - } catch (UnsupportedEncodingException e) { - } -EOF - ;; darwin*) cat <<\EOF >> Program.java // Some systems (like MacOS X) don't set System.out's character encoding - // to UTF-8, which is what we need for comparison purposes. + // according to LC_ALL, which is what we need for comparison purposes. try { System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out), - true, "UTF-8")); + true, args[1])); } catch (UnsupportedEncodingException e) { } EOF @@ -82,7 +71,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location Program.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -157,7 +146,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -216,11 +205,11 @@ : ${LOCALE_FR_UTF8=fr_FR.UTF-8} : ${JAVAEXEC="/bin/sh ../javaexec.sh"} if test $LOCALE_FR != none; then - LANGUAGE= LC_ALL=$LOCALE_FR CLASSPATH=.:../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 > prog.out || exit 1 + LANGUAGE= LC_ALL=$LOCALE_FR CLASSPATH=.:../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 ISO-8859-1 > prog.out || exit 1 ${DIFF} prog.ok prog.out || exit 1 fi if test $LOCALE_FR_UTF8 != none; then - LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 CLASSPATH=.:../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 > prog.out || exit 1 + LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 CLASSPATH=.:../../gettext-runtime/intl-java/libintl.jar ${JAVAEXEC} Program 2 UTF-8 > prog.out || exit 1 ${DIFF} prog.oku prog.out || exit 1 fi diff -Nru gettext-0.17/gettext-tools/tests/lang-librep gettext-0.18.1.1/gettext-tools/tests/lang-librep --- gettext-0.17/gettext-tools/tests/lang-librep 2007-05-14 22:48:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-librep 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.jl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -60,7 +60,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-objc gettext-0.18.1.1/gettext-tools/tests/lang-objc --- gettext-0.17/gettext-tools/tests/lang-objc 2007-05-14 22:48:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-objc 2010-06-06 12:49:58.000000000 +0000 @@ -72,7 +72,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location -k_ prog.m test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -123,7 +123,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-pascal gettext-0.18.1.1/gettext-tools/tests/lang-pascal --- gettext-0.17/gettext-tools/tests/lang-pascal 2007-05-14 22:48:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-pascal 2010-06-06 12:49:58.000000000 +0000 @@ -39,7 +39,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --add-location prog.rst test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -77,7 +77,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-perl-1 gettext-0.18.1.1/gettext-tools/tests/lang-perl-1 --- gettext-0.17/gettext-tools/tests/lang-perl-1 2007-05-14 22:49:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-perl-1 2010-06-06 12:49:58.000000000 +0000 @@ -30,7 +30,7 @@ -k__ --flag=__:1:pass-perl-format --flag=__:1:pass-perl-brace-format \ -o prog.tmp --omit-header --no-location program.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -79,7 +79,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-perl-2 gettext-0.18.1.1/gettext-tools/tests/lang-perl-2 --- gettext-0.17/gettext-tools/tests/lang-perl-2 2007-05-14 22:49:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-perl-2 2010-06-06 12:49:58.000000000 +0000 @@ -29,7 +29,7 @@ -k__x --flag=__x:1:perl-brace-format \ -o prog.tmp --omit-header --no-location program.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -78,7 +78,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-php gettext-0.18.1.1/gettext-tools/tests/lang-php --- gettext-0.17/gettext-tools/tests/lang-php 2007-05-14 22:49:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-php 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -58,7 +58,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-po gettext-0.18.1.1/gettext-tools/tests/lang-po --- gettext-0.17/gettext-tools/tests/lang-po 2007-05-14 22:52:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-po 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --add-location prog-in.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -62,7 +62,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp.po --omit-header --add-location prog-in.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp.po > prog.po +LC_ALL=C tr -d '\r' < prog.tmp.po > prog.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-python-1 gettext-0.18.1.1/gettext-tools/tests/lang-python-1 --- gettext-0.17/gettext-tools/tests/lang-python-1 2007-05-14 22:49:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-python-1 2010-06-06 12:49:58.000000000 +0000 @@ -25,7 +25,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -61,7 +61,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-python-2 gettext-0.18.1.1/gettext-tools/tests/lang-python-2 --- gettext-0.17/gettext-tools/tests/lang-python-2 2007-05-14 22:49:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-python-2 2010-06-06 12:49:58.000000000 +0000 @@ -31,7 +31,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -80,7 +80,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-rst gettext-0.18.1.1/gettext-tools/tests/lang-rst --- gettext-0.17/gettext-tools/tests/lang-rst 2007-05-13 19:11:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-rst 2010-06-06 12:49:58.000000000 +0000 @@ -26,7 +26,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --add-location prog.rst test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" diff -Nru gettext-0.17/gettext-tools/tests/lang-sh gettext-0.18.1.1/gettext-tools/tests/lang-sh --- gettext-0.17/gettext-tools/tests/lang-sh 2007-05-14 22:49:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-sh 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -72,7 +72,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/lang-smalltalk gettext-0.18.1.1/gettext-tools/tests/lang-smalltalk --- gettext-0.17/gettext-tools/tests/lang-smalltalk 2007-05-14 22:50:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-smalltalk 2010-06-06 12:49:58.000000000 +0000 @@ -37,7 +37,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.st test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -86,7 +86,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -122,6 +122,10 @@ # gst versions older than 2.3 also print "Loading package I18N". { echo 'Loading package I18N'; cat prog.ok; } > prog.ok2 { echo 'Loading package I18N'; cat prog.oku; } > prog.oku2 +# gst version 3.0.3 also prints "Loading package Iconv" and +# "Loading package I18N". +{ echo 'Loading package Iconv'; echo 'Loading package I18N'; cat prog.ok; } > prog.ok3 +{ echo 'Loading package Iconv'; echo 'Loading package I18N'; cat prog.oku; } > prog.oku3 : ${LOCALE_FR=fr_FR} : ${LOCALE_FR_UTF8=fr_FR.UTF-8} @@ -129,13 +133,15 @@ LANGUAGE= LC_ALL=$LOCALE_FR gst -Q prog.st > prog.out || exit 1 ${DIFF} prog.ok prog.out > /dev/null || ${DIFF} prog.ok2 prog.out > /dev/null || - { ${DIFF} prog.ok prog.out; exit 1; } + ${DIFF} prog.ok3 prog.out > /dev/null || + { ${DIFF} prog.ok prog.out; exit 1; } fi if test $LOCALE_FR_UTF8 != none; then LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gst -Q prog.st > prog.out || exit 1 ${DIFF} prog.oku prog.out > /dev/null || ${DIFF} prog.oku2 prog.out > /dev/null || - { ${DIFF} prog.oku prog.out; exit 1; } + ${DIFF} prog.oku3 prog.out > /dev/null || + { ${DIFF} prog.oku prog.out; exit 1; } fi if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then if test -f /usr/bin/localedef; then diff -Nru gettext-0.17/gettext-tools/tests/lang-tcl gettext-0.18.1.1/gettext-tools/tests/lang-tcl --- gettext-0.17/gettext-tools/tests/lang-tcl 2007-05-14 22:50:20.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-tcl 2010-06-06 12:49:58.000000000 +0000 @@ -8,6 +8,9 @@ # but not in the fr_FR.UTF-8 locale. Probably because in the fr_FR locale, # nl_langinfo(CODESET) returns "". +# Note: This test fails on Cygwin 1.7.2 in the fr_FR.UTF-8 locale but not +# in the fr_FR.ISO-8859-1 locale. + tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 @@ -25,7 +28,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header -k_ program.tcl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -63,7 +66,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -100,11 +103,13 @@ : ${LOCALE_FR=fr_FR} : ${LOCALE_FR_UTF8=fr_FR.UTF-8} if test $LOCALE_FR != none; then - LANGUAGE= LANG=$LOCALE_FR LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.out || exit 1 + LANGUAGE= LANG=$LOCALE_FR LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.tmp || exit 1 + LC_ALL=C tr -d '\r' < prog.tmp > prog.out || exit 1 ${DIFF} prog.ok prog.out || exit 1 fi if test $LOCALE_FR_UTF8 != none; then - LANGUAGE= LANG=$LOCALE_FR_UTF8 LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.out || exit 1 + LANGUAGE= LANG=$LOCALE_FR_UTF8 LC_MESSAGES= LC_CTYPE= LC_ALL= tclsh program.tcl > prog.tmp || exit 1 + LC_ALL=C tr -d '\r' < prog.tmp > prog.out || exit 1 ${DIFF} prog.oku prog.out || exit 1 fi if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then diff -Nru gettext-0.17/gettext-tools/tests/lang-ycp gettext-0.18.1.1/gettext-tools/tests/lang-ycp --- gettext-0.17/gettext-tools/tests/lang-ycp 2007-05-14 22:50:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/lang-ycp 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o prog.tmp --omit-header --no-location prog.ycp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < prog.tmp > prog.pot +LC_ALL=C tr -d '\r' < prog.tmp > prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles prog.ok" @@ -69,7 +69,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po prog.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/Makefile.am gettext-0.18.1.1/gettext-tools/tests/Makefile.am --- gettext-0.17/gettext-tools/tests/Makefile.am 2007-10-20 21:54:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/Makefile.am 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/tests subdirectory of GNU gettext -## Copyright (C) 1995-1997, 2001-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1997, 2001-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -16,11 +16,12 @@ ## Process this file with automake to produce Makefile.in. -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies +AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests EXTRA_DIST = MOSTLYCLEANFILES = core *.stackdump TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \ + gettext-8 \ msgattrib-1 msgattrib-2 msgattrib-3 msgattrib-4 msgattrib-5 \ msgattrib-6 msgattrib-7 msgattrib-8 msgattrib-9 msgattrib-10 \ msgattrib-11 msgattrib-12 msgattrib-13 msgattrib-14 msgattrib-15 \ @@ -28,7 +29,7 @@ msgattrib-properties-1 \ msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 msgcat-7 \ msgcat-8 msgcat-9 msgcat-10 msgcat-11 msgcat-12 msgcat-13 msgcat-14 \ - msgcat-15 msgcat-16 \ + msgcat-15 msgcat-16 msgcat-17 msgcat-18 \ msgcat-properties-1 msgcat-properties-2 \ msgcat-stringtable-1 \ msgcmp-1 msgcmp-2 msgcmp-3 msgcmp-4 \ @@ -36,7 +37,7 @@ msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \ msgcomm-14 msgcomm-15 msgcomm-16 msgcomm-17 msgcomm-18 msgcomm-19 \ msgcomm-20 msgcomm-21 msgcomm-22 msgcomm-23 msgcomm-24 msgcomm-25 \ - msgcomm-26 \ + msgcomm-26 msgcomm-27 \ msgconv-1 msgconv-2 msgconv-3 msgconv-4 msgconv-5 msgconv-6 \ msgen-1 msgen-2 msgen-3 \ msgexec-1 msgexec-2 msgexec-3 msgexec-4 \ @@ -44,20 +45,22 @@ msgfilter-sr-latin-1 \ msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \ msgfmt-8 msgfmt-9 msgfmt-10 msgfmt-11 msgfmt-12 msgfmt-13 msgfmt-14 \ - msgfmt-15 msgfmt-16 \ + msgfmt-15 msgfmt-16 msgfmt-17 \ msgfmt-properties-1 \ msgfmt-qt-1 msgfmt-qt-2 \ msggrep-1 msggrep-2 msggrep-3 msggrep-4 msggrep-5 msggrep-6 msggrep-7 \ - msggrep-8 \ + msggrep-8 msggrep-9 msggrep-10 \ msginit-1 msginit-2 \ msgmerge-1 msgmerge-2 msgmerge-3 msgmerge-4 msgmerge-5 msgmerge-6 \ msgmerge-7 msgmerge-8 msgmerge-9 msgmerge-10 msgmerge-11 msgmerge-12 \ msgmerge-13 msgmerge-14 msgmerge-15 msgmerge-16 msgmerge-17 \ msgmerge-18 msgmerge-19 msgmerge-20 msgmerge-21 msgmerge-22 \ + msgmerge-23 msgmerge-24 \ msgmerge-compendium-1 msgmerge-compendium-2 msgmerge-compendium-3 \ msgmerge-compendium-4 msgmerge-compendium-5 msgmerge-compendium-6 \ msgmerge-properties-1 msgmerge-properties-2 \ msgmerge-update-1 msgmerge-update-2 msgmerge-update-3 \ + msgmerge-update-4 \ msgunfmt-1 msgunfmt-2 \ msgunfmt-csharp-1 \ msgunfmt-java-1 \ @@ -71,19 +74,19 @@ xgettext-c-1 xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \ xgettext-c-6 xgettext-c-7 xgettext-c-8 xgettext-c-9 xgettext-c-10 \ xgettext-c-11 xgettext-c-12 xgettext-c-13 xgettext-c-14 xgettext-c-15 \ - xgettext-c-16 xgettext-c-17 \ + xgettext-c-16 xgettext-c-17 xgettext-c-18 \ xgettext-csharp-1 xgettext-csharp-2 xgettext-csharp-3 \ xgettext-csharp-4 xgettext-csharp-5 xgettext-csharp-6 \ xgettext-csharp-7 \ xgettext-elisp-1 xgettext-elisp-2 \ - xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 \ + xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 xgettext-glade-4 \ xgettext-java-1 xgettext-java-2 xgettext-java-3 xgettext-java-4 \ xgettext-java-5 xgettext-java-6 xgettext-java-7 \ xgettext-librep-1 xgettext-librep-2 \ xgettext-lisp-1 xgettext-lisp-2 \ xgettext-objc-1 xgettext-objc-2 \ xgettext-perl-1 xgettext-perl-2 xgettext-perl-3 xgettext-perl-4 \ - xgettext-perl-5 xgettext-perl-6 xgettext-perl-7 \ + xgettext-perl-5 xgettext-perl-6 xgettext-perl-7 xgettext-perl-8 \ xgettext-php-1 xgettext-php-2 xgettext-php-3 xgettext-php-4 \ xgettext-po-1 \ xgettext-properties-1 \ @@ -102,6 +105,7 @@ format-csharp-1 format-csharp-2 \ format-elisp-1 format-elisp-2 \ format-gcc-internal-1 format-gcc-internal-2 \ + format-gfc-internal-1 format-gfc-internal-2 \ format-java-1 format-java-2 \ format-kde-1 format-kde-2 \ format-librep-1 format-librep-2 \ @@ -113,6 +117,7 @@ format-perl-brace-1 format-perl-brace-2 \ format-perl-mixed-1 format-perl-mixed-2 \ format-qt-1 format-qt-2 \ + format-qt-plural-1 format-qt-plural-2 \ format-scheme-1 format-scheme-2 \ format-sh-1 format-sh-2 \ format-tcl-1 format-tcl-2 \ @@ -139,7 +144,7 @@ # For debugging memory leaks and memory allocation bugs. # You should build with --disable-shared when using valgrind. CHECKER = -#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes +#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --suppressions=$(srcdir)/../gnulib-lib/libunistring.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes #CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \ @@ -183,6 +188,8 @@ CONFIG_SHELL='$(SHELL)' \ $(SHELL) +# Update the expected test results. +update-expected: xg-c-1.ok.po xg-c-1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c $(XGETTEXT) -d xg-c-1.ok -p $(srcdir) \ -k_ --omit-header --no-location \ @@ -199,7 +206,7 @@ LDADD = $(LDADD_@USE_INCLUDED_LIBINTL@) @INTL_MACOSX_LIBS@ LDADD_yes = ../intl/libintl.la @LTLIBTHREAD@ LDADD_no = ../intl/libgnuintl.la @LTLIBTHREAD@ @LTLIBINTL@ -noinst_PROGRAMS = tstgettext tstngettext testlocale gettext-3-prg gettext-4-prg gettext-5-prg gettext-6-prg gettext-7-prg cake fc3 fc4 fc5 +noinst_PROGRAMS = tstgettext tstngettext testlocale gettext-3-prg gettext-4-prg gettext-5-prg gettext-6-prg gettext-7-prg gettext-8-prg cake fc3 fc4 fc5 tstgettext_SOURCES = tstgettext.c setlocale.c tstgettext_CFLAGS = -DINSTALLDIR=\".\" tstgettext_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) @@ -214,15 +221,17 @@ gettext_5_prg_SOURCES = gettext-5-prg.c gettext_5_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) gettext_6_prg_SOURCES = gettext-6-prg.c -gettext_6_prg_CFLAGS = $(gettext_6_prg_CFLAGS_@GLIBC2@) -gettext_6_prg_CFLAGS_yes = -DUSE_POSIX_THREADS -gettext_6_prg_LDADD = $(gettext_6_prg_LDADD_@GLIBC2@) -gettext_6_prg_LDADD_yes = ../gnulib-lib/libgettextlib.la $(LDADD) -lpthread +gettext_6_prg_CFLAGS = $(gettext_6_prg_CFLAGS_@HAVE_NEWLOCALE@) +gettext_6_prg_CFLAGS_1 = -DUSE_POSIX_THREADS +gettext_6_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) $(gettext_6_prg_LDADD_@HAVE_NEWLOCALE@) +gettext_6_prg_LDADD_1 = -lpthread gettext_7_prg_SOURCES = gettext-7-prg.c -gettext_7_prg_CFLAGS = $(gettext_7_prg_CFLAGS_@GLIBC2@) -gettext_7_prg_CFLAGS_yes = -DUSE_POSIX_THREADS -gettext_7_prg_LDADD = $(gettext_7_prg_LDADD_@GLIBC2@) -gettext_7_prg_LDADD_yes = ../gnulib-lib/libgettextlib.la $(LDADD) -lpthread +gettext_7_prg_CFLAGS = $(gettext_7_prg_CFLAGS_@HAVE_NEWLOCALE@) +gettext_7_prg_CFLAGS_1 = -DUSE_POSIX_THREADS +gettext_7_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) $(gettext_7_prg_LDADD_@HAVE_NEWLOCALE@) +gettext_7_prg_LDADD_1 = -lpthread +gettext_8_prg_SOURCES = gettext-8-prg.c +gettext_8_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) cake_SOURCES = plural-1-prg.c setlocale.c cake_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) fc3_SOURCES = format-c-3-prg.c setlocale.c diff -Nru gettext-0.17/gettext-tools/tests/Makefile.in gettext-0.18.1.1/gettext-tools/tests/Makefile.in --- gettext-0.17/gettext-tools/tests/Makefile.in 2007-11-06 23:40:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/Makefile.in 2010-06-06 20:12:33.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,8 +17,9 @@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -35,35 +37,49 @@ noinst_PROGRAMS = tstgettext$(EXEEXT) tstngettext$(EXEEXT) \ testlocale$(EXEEXT) gettext-3-prg$(EXEEXT) \ gettext-4-prg$(EXEEXT) gettext-5-prg$(EXEEXT) \ - gettext-6-prg$(EXEEXT) gettext-7-prg$(EXEEXT) cake$(EXEEXT) \ - fc3$(EXEEXT) fc4$(EXEEXT) fc5$(EXEEXT) + gettext-6-prg$(EXEEXT) gettext-7-prg$(EXEEXT) \ + gettext-8-prg$(EXEEXT) cake$(EXEEXT) fc3$(EXEEXT) fc4$(EXEEXT) \ + fc5$(EXEEXT) subdir = tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = \ $(top_srcdir)/libgettextpo/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/libgettextpo/gnulib-m4/ulonglong.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/btowc.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/gnulib-comp.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/langinfo_h.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/nl_langinfo.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/regex.m4 \ + $(top_srcdir)/libgrep/gnulib-m4/wcrtomb.m4 \ + $(top_srcdir)/gnulib-m4/00gnulib.m4 \ $(top_srcdir)/gnulib-m4/absolute-header.m4 \ $(top_srcdir)/gnulib-m4/acl.m4 \ $(top_srcdir)/gnulib-m4/alloca.m4 \ $(top_srcdir)/gnulib-m4/argmatch.m4 \ + $(top_srcdir)/gnulib-m4/asm-underscore.m4 \ $(top_srcdir)/gnulib-m4/atexit.m4 \ $(top_srcdir)/gnulib-m4/backupfile.m4 \ $(top_srcdir)/gnulib-m4/bison-i18n.m4 \ $(top_srcdir)/gnulib-m4/byteswap.m4 \ - $(top_srcdir)/gnulib-m4/canonicalize-lgpl.m4 \ + $(top_srcdir)/gnulib-m4/canonicalize.m4 \ + $(top_srcdir)/gnulib-m4/cloexec.m4 \ $(top_srcdir)/gnulib-m4/copy-file.m4 \ $(top_srcdir)/gnulib-m4/csharp.m4 \ $(top_srcdir)/gnulib-m4/csharpcomp.m4 \ $(top_srcdir)/gnulib-m4/csharpexec.m4 \ + $(top_srcdir)/gnulib-m4/curses.m4 \ + $(top_srcdir)/gnulib-m4/dos.m4 \ + $(top_srcdir)/gnulib-m4/double-slash-root.m4 \ + $(top_srcdir)/gnulib-m4/dup2.m4 \ $(top_srcdir)/gnulib-m4/eaccess.m4 \ $(top_srcdir)/gnulib-m4/eealloc.m4 \ - $(top_srcdir)/gnulib-m4/eoverflow.m4 \ + $(top_srcdir)/gnulib-m4/environ.m4 \ + $(top_srcdir)/gnulib-m4/errno_h.m4 \ $(top_srcdir)/gnulib-m4/error.m4 \ $(top_srcdir)/gnulib-m4/execute.m4 \ - $(top_srcdir)/gnulib-m4/exitfail.m4 \ $(top_srcdir)/gnulib-m4/extensions.m4 \ $(top_srcdir)/gnulib-m4/fatal-signal.m4 \ + $(top_srcdir)/gnulib-m4/fcntl.m4 \ $(top_srcdir)/gnulib-m4/fcntl_h.m4 \ $(top_srcdir)/gnulib-m4/findprog.m4 \ $(top_srcdir)/gnulib-m4/float_h.m4 \ @@ -71,13 +87,14 @@ $(top_srcdir)/gnulib-m4/fopen.m4 \ $(top_srcdir)/gnulib-m4/gcj.m4 \ $(top_srcdir)/gnulib-m4/getdelim.m4 \ + $(top_srcdir)/gnulib-m4/getdtablesize.m4 \ $(top_srcdir)/gnulib-m4/getline.m4 \ $(top_srcdir)/gnulib-m4/getopt.m4 \ + $(top_srcdir)/gnulib-m4/getpagesize.m4 \ $(top_srcdir)/gnulib-m4/gettimeofday.m4 \ $(top_srcdir)/gnulib-m4/gl_list.m4 \ $(top_srcdir)/gnulib-m4/gnulib-common.m4 \ $(top_srcdir)/gnulib-m4/gnulib-comp.m4 \ - $(top_srcdir)/gnulib-m4/hard-locale.m4 \ $(top_srcdir)/gnulib-m4/iconv_h.m4 \ $(top_srcdir)/gnulib-m4/iconv_open.m4 \ $(top_srcdir)/gnulib-m4/include_next.m4 \ @@ -86,23 +103,31 @@ $(top_srcdir)/gnulib-m4/java.m4 \ $(top_srcdir)/gnulib-m4/javacomp.m4 \ $(top_srcdir)/gnulib-m4/javaexec.m4 \ + $(top_srcdir)/gnulib-m4/lib-ld.m4 \ + $(top_srcdir)/gnulib-m4/lib-link.m4 \ + $(top_srcdir)/gnulib-m4/lib-prefix.m4 \ $(top_srcdir)/gnulib-m4/libcroco.m4 \ $(top_srcdir)/gnulib-m4/libglib.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-base.m4 \ + $(top_srcdir)/gnulib-m4/libunistring-optional.m4 \ + $(top_srcdir)/gnulib-m4/libunistring.m4 \ $(top_srcdir)/gnulib-m4/libxml.m4 \ - $(top_srcdir)/gnulib-m4/linebreak.m4 \ $(top_srcdir)/gnulib-m4/localcharset.m4 \ $(top_srcdir)/gnulib-m4/locale-fr.m4 \ + $(top_srcdir)/gnulib-m4/locale-ja.m4 \ $(top_srcdir)/gnulib-m4/locale-tr.m4 \ $(top_srcdir)/gnulib-m4/locale-zh.m4 \ $(top_srcdir)/gnulib-m4/locale_h.m4 \ $(top_srcdir)/gnulib-m4/localename.m4 \ + $(top_srcdir)/gnulib-m4/lstat.m4 \ $(top_srcdir)/gnulib-m4/malloc.m4 \ $(top_srcdir)/gnulib-m4/malloca.m4 \ $(top_srcdir)/gnulib-m4/mbchar.m4 \ $(top_srcdir)/gnulib-m4/mbiter.m4 \ $(top_srcdir)/gnulib-m4/mbrtowc.m4 \ + $(top_srcdir)/gnulib-m4/mbsinit.m4 \ $(top_srcdir)/gnulib-m4/mbslen.m4 \ - $(top_srcdir)/gnulib-m4/mbsstr.m4 \ + $(top_srcdir)/gnulib-m4/mbsrtowcs.m4 \ $(top_srcdir)/gnulib-m4/mbstate_t.m4 \ $(top_srcdir)/gnulib-m4/mbswidth.m4 \ $(top_srcdir)/gnulib-m4/memchr.m4 \ @@ -110,68 +135,98 @@ $(top_srcdir)/gnulib-m4/memset.m4 \ $(top_srcdir)/gnulib-m4/minmax.m4 \ $(top_srcdir)/gnulib-m4/mkdtemp.m4 \ + $(top_srcdir)/gnulib-m4/mmap-anon.m4 \ + $(top_srcdir)/gnulib-m4/mode_t.m4 \ $(top_srcdir)/gnulib-m4/moo.m4 \ + $(top_srcdir)/gnulib-m4/multiarch.m4 \ $(top_srcdir)/gnulib-m4/no-c++.m4 \ - $(top_srcdir)/gnulib-m4/onceonly_2_57.m4 \ + $(top_srcdir)/gnulib-m4/onceonly.m4 \ $(top_srcdir)/gnulib-m4/open.m4 \ - $(top_srcdir)/gnulib-m4/openmp.m4 \ $(top_srcdir)/gnulib-m4/pathmax.m4 \ $(top_srcdir)/gnulib-m4/pipe.m4 \ + $(top_srcdir)/gnulib-m4/pipe2.m4 \ + $(top_srcdir)/gnulib-m4/posix_spawn.m4 \ + $(top_srcdir)/gnulib-m4/printf.m4 \ + $(top_srcdir)/gnulib-m4/putenv.m4 \ $(top_srcdir)/gnulib-m4/quote.m4 \ $(top_srcdir)/gnulib-m4/quotearg.m4 \ + $(top_srcdir)/gnulib-m4/rawmemchr.m4 \ + $(top_srcdir)/gnulib-m4/read-file.m4 \ $(top_srcdir)/gnulib-m4/readlink.m4 \ $(top_srcdir)/gnulib-m4/realloc.m4 \ $(top_srcdir)/gnulib-m4/relocatable-lib.m4 \ $(top_srcdir)/gnulib-m4/relocatable.m4 \ + $(top_srcdir)/gnulib-m4/rmdir.m4 \ $(top_srcdir)/gnulib-m4/safe-read.m4 \ $(top_srcdir)/gnulib-m4/safe-write.m4 \ + $(top_srcdir)/gnulib-m4/sched_h.m4 \ $(top_srcdir)/gnulib-m4/setenv.m4 \ $(top_srcdir)/gnulib-m4/sig_atomic_t.m4 \ + $(top_srcdir)/gnulib-m4/sigaction.m4 \ $(top_srcdir)/gnulib-m4/signal_h.m4 \ $(top_srcdir)/gnulib-m4/signalblocking.m4 \ + $(top_srcdir)/gnulib-m4/sigpipe.m4 \ $(top_srcdir)/gnulib-m4/snprintf.m4 \ + $(top_srcdir)/gnulib-m4/spawn_h.m4 \ $(top_srcdir)/gnulib-m4/ssize_t.m4 \ + $(top_srcdir)/gnulib-m4/stat.m4 \ $(top_srcdir)/gnulib-m4/stdarg.m4 \ $(top_srcdir)/gnulib-m4/stdbool.m4 \ + $(top_srcdir)/gnulib-m4/stddef_h.m4 \ $(top_srcdir)/gnulib-m4/stdint.m4 \ $(top_srcdir)/gnulib-m4/stdio_h.m4 \ $(top_srcdir)/gnulib-m4/stdlib_h.m4 \ $(top_srcdir)/gnulib-m4/stpcpy.m4 \ $(top_srcdir)/gnulib-m4/stpncpy.m4 \ + $(top_srcdir)/gnulib-m4/strchrnul.m4 \ $(top_srcdir)/gnulib-m4/strcspn.m4 \ - $(top_srcdir)/gnulib-m4/strdup.m4 \ $(top_srcdir)/gnulib-m4/strerror.m4 \ $(top_srcdir)/gnulib-m4/string_h.m4 \ $(top_srcdir)/gnulib-m4/strnlen.m4 \ $(top_srcdir)/gnulib-m4/strpbrk.m4 \ + $(top_srcdir)/gnulib-m4/strstr.m4 \ $(top_srcdir)/gnulib-m4/strtol.m4 \ $(top_srcdir)/gnulib-m4/strtoul.m4 \ + $(top_srcdir)/gnulib-m4/symlink.m4 \ + $(top_srcdir)/gnulib-m4/sys_select_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_socket_h.m4 \ $(top_srcdir)/gnulib-m4/sys_stat_h.m4 \ $(top_srcdir)/gnulib-m4/sys_time_h.m4 \ + $(top_srcdir)/gnulib-m4/sys_wait_h.m4 \ $(top_srcdir)/gnulib-m4/tempname.m4 \ $(top_srcdir)/gnulib-m4/term-ostream.m4 \ $(top_srcdir)/gnulib-m4/terminfo.m4 \ + $(top_srcdir)/gnulib-m4/thread.m4 \ + $(top_srcdir)/gnulib-m4/time_h.m4 \ $(top_srcdir)/gnulib-m4/tls.m4 \ $(top_srcdir)/gnulib-m4/tmpdir.m4 \ $(top_srcdir)/gnulib-m4/unionwait.m4 \ + $(top_srcdir)/gnulib-m4/unistd-safer.m4 \ $(top_srcdir)/gnulib-m4/unistd_h.m4 \ $(top_srcdir)/gnulib-m4/unlocked-io.m4 \ $(top_srcdir)/gnulib-m4/vasnprintf.m4 \ $(top_srcdir)/gnulib-m4/vasprintf.m4 \ $(top_srcdir)/gnulib-m4/vsnprintf.m4 \ $(top_srcdir)/gnulib-m4/wait-process.m4 \ - $(top_srcdir)/gnulib-m4/wchar.m4 \ - $(top_srcdir)/gnulib-m4/wctype.m4 \ + $(top_srcdir)/gnulib-m4/warn-on-use.m4 \ + $(top_srcdir)/gnulib-m4/wchar_h.m4 \ + $(top_srcdir)/gnulib-m4/wctob.m4 \ + $(top_srcdir)/gnulib-m4/wctype_h.m4 \ $(top_srcdir)/gnulib-m4/wcwidth.m4 \ + $(top_srcdir)/gnulib-m4/write.m4 \ $(top_srcdir)/gnulib-m4/xvasprintf.m4 \ + $(top_srcdir)/gnulib-m4/yield.m4 \ $(top_srcdir)/../m4/fixautomake.m4 \ + $(top_srcdir)/../m4/init-package-version.m4 \ $(top_srcdir)/../m4/libtool.m4 \ + $(top_srcdir)/../m4/ltoptions.m4 \ + $(top_srcdir)/../m4/ltsugar.m4 \ + $(top_srcdir)/../m4/ltversion.m4 \ + $(top_srcdir)/../m4/lt~obsolete.m4 \ $(top_srcdir)/../m4/woe32-dll.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-ld.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-link.m4 \ - $(top_srcdir)/../autoconf-lib-link/m4/lib-prefix.m4 \ $(top_srcdir)/../gettext-runtime/m4/ansi-c++.m4 \ $(top_srcdir)/../gettext-runtime/m4/codeset.m4 \ + $(top_srcdir)/../gettext-runtime/m4/fcntl-o.m4 \ $(top_srcdir)/../gettext-runtime/m4/gettext.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc2.m4 \ $(top_srcdir)/../gettext-runtime/m4/glibc21.m4 \ @@ -191,13 +246,13 @@ $(top_srcdir)/../gettext-runtime/m4/progtest.m4 \ $(top_srcdir)/../gettext-runtime/m4/size_max.m4 \ $(top_srcdir)/../gettext-runtime/m4/stdint_h.m4 \ + $(top_srcdir)/../gettext-runtime/m4/threadlib.m4 \ $(top_srcdir)/../gettext-runtime/m4/uintmax_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/visibility.m4 \ $(top_srcdir)/../gettext-runtime/m4/wchar_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/wint_t.m4 \ $(top_srcdir)/../gettext-runtime/m4/xsize.m4 \ - $(top_srcdir)/m4/hostname.m4 $(top_srcdir)/m4/libgrep.m4 \ - $(top_srcdir)/m4/locale-ja.m4 $(top_srcdir)/m4/regex.m4 \ + $(top_srcdir)/m4/exported.m4 $(top_srcdir)/m4/hostname.m4 \ $(top_srcdir)/m4/setlocale.m4 $(top_srcdir)/m4/siginfo.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -205,12 +260,16 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../build-aux/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am_cake_OBJECTS = plural-1-prg.$(OBJEXT) setlocale.$(OBJEXT) cake_OBJECTS = $(am_cake_OBJECTS) am__DEPENDENCIES_1 = cake_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ $(am__DEPENDENCIES_1) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent am_fc3_OBJECTS = format-c-3-prg.$(OBJEXT) setlocale.$(OBJEXT) fc3_OBJECTS = $(am_fc3_OBJECTS) fc3_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ @@ -237,16 +296,22 @@ $(am__DEPENDENCIES_1) am_gettext_6_prg_OBJECTS = gettext_6_prg-gettext-6-prg.$(OBJEXT) gettext_6_prg_OBJECTS = $(am_gettext_6_prg_OBJECTS) -gettext_6_prg_DEPENDENCIES = -gettext_6_prg_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ +gettext_6_prg_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ + $(am__DEPENDENCIES_1) +gettext_6_prg_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(gettext_6_prg_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_gettext_7_prg_OBJECTS = gettext_7_prg-gettext-7-prg.$(OBJEXT) gettext_7_prg_OBJECTS = $(am_gettext_7_prg_OBJECTS) -gettext_7_prg_DEPENDENCIES = -gettext_7_prg_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ +gettext_7_prg_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ + $(am__DEPENDENCIES_1) +gettext_7_prg_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(gettext_7_prg_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_gettext_8_prg_OBJECTS = gettext-8-prg.$(OBJEXT) +gettext_8_prg_OBJECTS = $(am_gettext_8_prg_OBJECTS) +gettext_8_prg_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ + $(am__DEPENDENCIES_1) am_testlocale_OBJECTS = testlocale.$(OBJEXT) testlocale_OBJECTS = $(am_testlocale_OBJECTS) testlocale_LDADD = $(LDADD) @@ -256,7 +321,7 @@ tstgettext_OBJECTS = $(am_tstgettext_OBJECTS) tstgettext_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ $(am__DEPENDENCIES_1) -tstgettext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ +tstgettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(tstgettext_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_tstngettext_OBJECTS = tstngettext-tstngettext.$(OBJEXT) \ @@ -264,41 +329,74 @@ tstngettext_OBJECTS = $(am_tstngettext_OBJECTS) tstngettext_DEPENDENCIES = ../gnulib-lib/libgettextlib.la \ $(am__DEPENDENCIES_1) -tstngettext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ +tstngettext_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(tstngettext_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(cake_SOURCES) $(fc3_SOURCES) $(fc4_SOURCES) $(fc5_SOURCES) \ $(gettext_3_prg_SOURCES) $(gettext_4_prg_SOURCES) \ $(gettext_5_prg_SOURCES) $(gettext_6_prg_SOURCES) \ - $(gettext_7_prg_SOURCES) $(testlocale_SOURCES) \ - $(tstgettext_SOURCES) $(tstngettext_SOURCES) + $(gettext_7_prg_SOURCES) $(gettext_8_prg_SOURCES) \ + $(testlocale_SOURCES) $(tstgettext_SOURCES) \ + $(tstngettext_SOURCES) DIST_SOURCES = $(cake_SOURCES) $(fc3_SOURCES) $(fc4_SOURCES) \ $(fc5_SOURCES) $(gettext_3_prg_SOURCES) \ $(gettext_4_prg_SOURCES) $(gettext_5_prg_SOURCES) \ $(gettext_6_prg_SOURCES) $(gettext_7_prg_SOURCES) \ - $(testlocale_SOURCES) $(tstgettext_SOURCES) \ - $(tstngettext_SOURCES) + $(gettext_8_prg_SOURCES) $(testlocale_SOURCES) \ + $(tstgettext_SOURCES) $(tstngettext_SOURCES) ETAGS = etags CTAGS = ctags +# If stdout is a non-dumb tty, use colors. If test -t is not supported, +# then this fails; a conservative approach. Of course do not redirect +# stdout here, just stderr. +am__tty_colors = \ +red=; grn=; lgn=; blu=; std=; \ +test "X$(AM_COLOR_TESTS)" != Xno \ +&& test "X$$TERM" != Xdumb \ +&& { test "X$(AM_COLOR_TESTS)" = Xalways || test -t 1 2>/dev/null; } \ +&& { \ + red=''; \ + grn=''; \ + lgn=''; \ + blu=''; \ + std=''; \ +} DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ +ARCHIVE_FORMAT = @ARCHIVE_FORMAT@ AS = @AS@ +ASM_SYMBOL_PREFIX = @ASM_SYMBOL_PREFIX@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -339,136 +437,320 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ DVIPS = @DVIPS@ -ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -EOVERFLOW = @EOVERFLOW@ +EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ +EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ +ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ +ENOLINK_VALUE = @ENOLINK_VALUE@ +EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ +EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ +ERRNO_H = @ERRNO_H@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FCNTL_H = @FCNTL_H@ -FFLAGS = @FFLAGS@ +FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ FNMATCH_H = @FNMATCH_H@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ GENCAT = @GENCAT@ GETOPT_H = @GETOPT_H@ +GETTEXTLIB_EXPORTS_FLAGS = @GETTEXTLIB_EXPORTS_FLAGS@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLOBAL_SYMBOL_PIPE = @GLOBAL_SYMBOL_PIPE@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ +GNULIB_ACCEPT = @GNULIB_ACCEPT@ +GNULIB_ACCEPT4 = @GNULIB_ACCEPT4@ +GNULIB_ATOLL = @GNULIB_ATOLL@ +GNULIB_BIND = @GNULIB_BIND@ +GNULIB_BTOWC = @GNULIB_BTOWC@ GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@ +GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@ GNULIB_CHOWN = @GNULIB_CHOWN@ +GNULIB_CLOSE = @GNULIB_CLOSE@ +GNULIB_CONNECT = @GNULIB_CONNECT@ +GNULIB_DPRINTF = @GNULIB_DPRINTF@ GNULIB_DUP2 = @GNULIB_DUP2@ +GNULIB_DUP3 = @GNULIB_DUP3@ +GNULIB_DUPLOCALE = @GNULIB_DUPLOCALE@ +GNULIB_ENVIRON = @GNULIB_ENVIRON@ +GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@ +GNULIB_FACCESSAT = @GNULIB_FACCESSAT@ GNULIB_FCHDIR = @GNULIB_FCHDIR@ +GNULIB_FCHMODAT = @GNULIB_FCHMODAT@ +GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@ +GNULIB_FCLOSE = @GNULIB_FCLOSE@ +GNULIB_FCNTL = @GNULIB_FCNTL@ GNULIB_FFLUSH = @GNULIB_FFLUSH@ GNULIB_FOPEN = @GNULIB_FOPEN@ +GNULIB_FPRINTF = @GNULIB_FPRINTF@ GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@ +GNULIB_FPURGE = @GNULIB_FPURGE@ +GNULIB_FPUTC = @GNULIB_FPUTC@ +GNULIB_FPUTS = @GNULIB_FPUTS@ GNULIB_FREOPEN = @GNULIB_FREOPEN@ GNULIB_FSEEK = @GNULIB_FSEEK@ GNULIB_FSEEKO = @GNULIB_FSEEKO@ +GNULIB_FSTATAT = @GNULIB_FSTATAT@ +GNULIB_FSYNC = @GNULIB_FSYNC@ GNULIB_FTELL = @GNULIB_FTELL@ GNULIB_FTELLO = @GNULIB_FTELLO@ GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@ +GNULIB_FUTIMENS = @GNULIB_FUTIMENS@ +GNULIB_FWRITE = @GNULIB_FWRITE@ GNULIB_GETCWD = @GNULIB_GETCWD@ GNULIB_GETDELIM = @GNULIB_GETDELIM@ +GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@ +GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@ +GNULIB_GETGROUPS = @GNULIB_GETGROUPS@ +GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@ GNULIB_GETLINE = @GNULIB_GETLINE@ +GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ +GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ +GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ +GNULIB_GETPEERNAME = @GNULIB_GETPEERNAME@ +GNULIB_GETSOCKNAME = @GNULIB_GETSOCKNAME@ +GNULIB_GETSOCKOPT = @GNULIB_GETSOCKOPT@ GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ +GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ +GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ +GNULIB_GRANTPT = @GNULIB_GRANTPT@ +GNULIB_LCHMOD = @GNULIB_LCHMOD@ GNULIB_LCHOWN = @GNULIB_LCHOWN@ +GNULIB_LINK = @GNULIB_LINK@ +GNULIB_LINKAT = @GNULIB_LINKAT@ +GNULIB_LISTEN = @GNULIB_LISTEN@ GNULIB_LSEEK = @GNULIB_LSEEK@ +GNULIB_LSTAT = @GNULIB_LSTAT@ GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@ +GNULIB_MBRLEN = @GNULIB_MBRLEN@ +GNULIB_MBRTOWC = @GNULIB_MBRTOWC@ GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@ GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@ GNULIB_MBSCHR = @GNULIB_MBSCHR@ GNULIB_MBSCSPN = @GNULIB_MBSCSPN@ +GNULIB_MBSINIT = @GNULIB_MBSINIT@ GNULIB_MBSLEN = @GNULIB_MBSLEN@ GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@ GNULIB_MBSNLEN = @GNULIB_MBSNLEN@ +GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@ GNULIB_MBSPBRK = @GNULIB_MBSPBRK@ GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@ GNULIB_MBSRCHR = @GNULIB_MBSRCHR@ +GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@ GNULIB_MBSSEP = @GNULIB_MBSSEP@ GNULIB_MBSSPN = @GNULIB_MBSSPN@ GNULIB_MBSSTR = @GNULIB_MBSSTR@ GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@ +GNULIB_MEMCHR = @GNULIB_MEMCHR@ GNULIB_MEMMEM = @GNULIB_MEMMEM@ GNULIB_MEMPCPY = @GNULIB_MEMPCPY@ GNULIB_MEMRCHR = @GNULIB_MEMRCHR@ +GNULIB_MKDIRAT = @GNULIB_MKDIRAT@ GNULIB_MKDTEMP = @GNULIB_MKDTEMP@ +GNULIB_MKFIFO = @GNULIB_MKFIFO@ +GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@ +GNULIB_MKNOD = @GNULIB_MKNOD@ +GNULIB_MKNODAT = @GNULIB_MKNODAT@ +GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@ +GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@ GNULIB_MKSTEMP = @GNULIB_MKSTEMP@ +GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@ +GNULIB_MKTIME = @GNULIB_MKTIME@ +GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@ +GNULIB_NL_LANGINFO = @GNULIB_NL_LANGINFO@ +GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@ +GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@ GNULIB_OPEN = @GNULIB_OPEN@ +GNULIB_OPENAT = @GNULIB_OPENAT@ +GNULIB_PERROR = @GNULIB_PERROR@ +GNULIB_PIPE2 = @GNULIB_PIPE2@ +GNULIB_POPEN = @GNULIB_POPEN@ +GNULIB_POSIX_SPAWN = @GNULIB_POSIX_SPAWN@ +GNULIB_POSIX_SPAWNATTR_DESTROY = @GNULIB_POSIX_SPAWNATTR_DESTROY@ +GNULIB_POSIX_SPAWNATTR_GETFLAGS = @GNULIB_POSIX_SPAWNATTR_GETFLAGS@ +GNULIB_POSIX_SPAWNATTR_GETPGROUP = @GNULIB_POSIX_SPAWNATTR_GETPGROUP@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_GETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_GETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_GETSIGMASK = @GNULIB_POSIX_SPAWNATTR_GETSIGMASK@ +GNULIB_POSIX_SPAWNATTR_INIT = @GNULIB_POSIX_SPAWNATTR_INIT@ +GNULIB_POSIX_SPAWNATTR_SETFLAGS = @GNULIB_POSIX_SPAWNATTR_SETFLAGS@ +GNULIB_POSIX_SPAWNATTR_SETPGROUP = @GNULIB_POSIX_SPAWNATTR_SETPGROUP@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPARAM@ +GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY = @GNULIB_POSIX_SPAWNATTR_SETSCHEDPOLICY@ +GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT = @GNULIB_POSIX_SPAWNATTR_SETSIGDEFAULT@ +GNULIB_POSIX_SPAWNATTR_SETSIGMASK = @GNULIB_POSIX_SPAWNATTR_SETSIGMASK@ +GNULIB_POSIX_SPAWNP = @GNULIB_POSIX_SPAWNP@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_DESTROY@ +GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT = @GNULIB_POSIX_SPAWN_FILE_ACTIONS_INIT@ +GNULIB_PREAD = @GNULIB_PREAD@ +GNULIB_PRINTF = @GNULIB_PRINTF@ GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@ +GNULIB_PTSNAME = @GNULIB_PTSNAME@ +GNULIB_PUTC = @GNULIB_PUTC@ +GNULIB_PUTCHAR = @GNULIB_PUTCHAR@ GNULIB_PUTENV = @GNULIB_PUTENV@ +GNULIB_PUTS = @GNULIB_PUTS@ +GNULIB_PWRITE = @GNULIB_PWRITE@ +GNULIB_RANDOM_R = @GNULIB_RANDOM_R@ +GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@ GNULIB_READLINK = @GNULIB_READLINK@ +GNULIB_READLINKAT = @GNULIB_READLINKAT@ GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@ +GNULIB_REALPATH = @GNULIB_REALPATH@ +GNULIB_RECV = @GNULIB_RECV@ +GNULIB_RECVFROM = @GNULIB_RECVFROM@ +GNULIB_REMOVE = @GNULIB_REMOVE@ +GNULIB_RENAME = @GNULIB_RENAME@ +GNULIB_RENAMEAT = @GNULIB_RENAMEAT@ +GNULIB_RMDIR = @GNULIB_RMDIR@ +GNULIB_RPMATCH = @GNULIB_RPMATCH@ +GNULIB_SELECT = @GNULIB_SELECT@ +GNULIB_SEND = @GNULIB_SEND@ +GNULIB_SENDTO = @GNULIB_SENDTO@ +GNULIB_SETENV = @GNULIB_SETENV@ +GNULIB_SETSOCKOPT = @GNULIB_SETSOCKOPT@ +GNULIB_SHUTDOWN = @GNULIB_SHUTDOWN@ +GNULIB_SIGACTION = @GNULIB_SIGACTION@ +GNULIB_SIGNAL_H_SIGPIPE = @GNULIB_SIGNAL_H_SIGPIPE@ GNULIB_SIGPROCMASK = @GNULIB_SIGPROCMASK@ GNULIB_SLEEP = @GNULIB_SLEEP@ GNULIB_SNPRINTF = @GNULIB_SNPRINTF@ +GNULIB_SOCKET = @GNULIB_SOCKET@ GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@ +GNULIB_STAT = @GNULIB_STAT@ +GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@ GNULIB_STPCPY = @GNULIB_STPCPY@ GNULIB_STPNCPY = @GNULIB_STPNCPY@ GNULIB_STRCASESTR = @GNULIB_STRCASESTR@ GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@ GNULIB_STRDUP = @GNULIB_STRDUP@ GNULIB_STRERROR = @GNULIB_STRERROR@ +GNULIB_STRNCAT = @GNULIB_STRNCAT@ GNULIB_STRNDUP = @GNULIB_STRNDUP@ GNULIB_STRNLEN = @GNULIB_STRNLEN@ GNULIB_STRPBRK = @GNULIB_STRPBRK@ +GNULIB_STRPTIME = @GNULIB_STRPTIME@ GNULIB_STRSEP = @GNULIB_STRSEP@ +GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@ +GNULIB_STRSTR = @GNULIB_STRSTR@ +GNULIB_STRTOD = @GNULIB_STRTOD@ GNULIB_STRTOK_R = @GNULIB_STRTOK_R@ +GNULIB_STRTOLL = @GNULIB_STRTOLL@ +GNULIB_STRTOULL = @GNULIB_STRTOULL@ +GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@ +GNULIB_SYMLINK = @GNULIB_SYMLINK@ +GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@ +GNULIB_TIMEGM = @GNULIB_TIMEGM@ +GNULIB_TIME_R = @GNULIB_TIME_R@ +GNULIB_TMPFILE = @GNULIB_TMPFILE@ +GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@ +GNULIB_UNISTD_H_GETOPT = @GNULIB_UNISTD_H_GETOPT@ +GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@ +GNULIB_UNLINK = @GNULIB_UNLINK@ +GNULIB_UNLINKAT = @GNULIB_UNLINKAT@ +GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@ +GNULIB_UNSETENV = @GNULIB_UNSETENV@ +GNULIB_USLEEP = @GNULIB_USLEEP@ +GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@ GNULIB_VASPRINTF = @GNULIB_VASPRINTF@ +GNULIB_VDPRINTF = @GNULIB_VDPRINTF@ +GNULIB_VFPRINTF = @GNULIB_VFPRINTF@ GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@ +GNULIB_VPRINTF = @GNULIB_VPRINTF@ GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@ GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@ GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@ +GNULIB_WCRTOMB = @GNULIB_WCRTOMB@ +GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@ +GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@ +GNULIB_WCTOB = @GNULIB_WCTOB@ GNULIB_WCWIDTH = @GNULIB_WCWIDTH@ +GNULIB_WRITE = @GNULIB_WRITE@ GREP = @GREP@ +HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ +HAVE_ATOLL = @HAVE_ATOLL@ +HAVE_BTOWC = @HAVE_BTOWC@ HAVE_CALLOC_POSIX = @HAVE_CALLOC_POSIX@ +HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ +HAVE_CHOWN = @HAVE_CHOWN@ HAVE_CLIX = @HAVE_CLIX@ HAVE_CLIX_IN_PATH = @HAVE_CLIX_IN_PATH@ HAVE_CSC = @HAVE_CSC@ HAVE_CSCC = @HAVE_CSCC@ HAVE_CSCC_IN_PATH = @HAVE_CSCC_IN_PATH@ HAVE_CSC_IN_PATH = @HAVE_CSC_IN_PATH@ +HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ +HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ +HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ +HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ +HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ -HAVE_DECL_MKDIR = @HAVE_DECL_MKDIR@ +HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ -HAVE_DECL_STRERROR = @HAVE_DECL_STRERROR@ -HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ +HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ +HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ +HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP2 = @HAVE_DUP2@ +HAVE_DUP3 = @HAVE_DUP3@ +HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ +HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ +HAVE_FACCESSAT = @HAVE_FACCESSAT@ +HAVE_FCHDIR = @HAVE_FCHDIR@ +HAVE_FCHMODAT = @HAVE_FCHMODAT@ +HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ +HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FSEEKO = @HAVE_FSEEKO@ +HAVE_FSTATAT = @HAVE_FSTATAT@ +HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ +HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GCJ = @HAVE_GCJ@ HAVE_GCJ_C = @HAVE_GCJ_C@ HAVE_GCJ_IN_PATH = @HAVE_GCJ_IN_PATH@ +HAVE_GETDOMAINNAME = @HAVE_GETDOMAINNAME@ +HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ +HAVE_GETGROUPS = @HAVE_GETGROUPS@ +HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ +HAVE_GETLOGIN = @HAVE_GETLOGIN@ +HAVE_GETOPT_H = @HAVE_GETOPT_H@ +HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ +HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GIJ = @HAVE_GIJ@ HAVE_GIJ_IN_PATH = @HAVE_GIJ_IN_PATH@ HAVE_GLOBAL_SYMBOL_PIPE = @HAVE_GLOBAL_SYMBOL_PIPE@ +HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_ILRUN = @HAVE_ILRUN@ HAVE_ILRUN_IN_PATH = @HAVE_ILRUN_IN_PATH@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ -HAVE_IO_H = @HAVE_IO_H@ +HAVE_ISWBLANK = @HAVE_ISWBLANK@ HAVE_ISWCNTRL = @HAVE_ISWCNTRL@ HAVE_JAVA = @HAVE_JAVA@ HAVE_JAVAC = @HAVE_JAVAC@ @@ -482,53 +764,133 @@ HAVE_JRE_IN_PATH = @HAVE_JRE_IN_PATH@ HAVE_JVIEW = @HAVE_JVIEW@ HAVE_JVIEW_IN_PATH = @HAVE_JVIEW_IN_PATH@ +HAVE_LANGINFO_CODESET = @HAVE_LANGINFO_CODESET@ +HAVE_LANGINFO_ERA = @HAVE_LANGINFO_ERA@ +HAVE_LANGINFO_H = @HAVE_LANGINFO_H@ +HAVE_LCHMOD = @HAVE_LCHMOD@ +HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBEXPAT = @HAVE_LIBEXPAT@ +HAVE_LIBUNISTRING = @HAVE_LIBUNISTRING@ +HAVE_LINK = @HAVE_LINK@ +HAVE_LINKAT = @HAVE_LINKAT@ +HAVE_LOCALTIME_R = @HAVE_LOCALTIME_R@ HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MALLOC_POSIX = @HAVE_MALLOC_POSIX@ +HAVE_MBRLEN = @HAVE_MBRLEN@ +HAVE_MBRTOWC = @HAVE_MBRTOWC@ +HAVE_MBSINIT = @HAVE_MBSINIT@ +HAVE_MBSLEN = @HAVE_MBSLEN@ +HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ +HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MCS = @HAVE_MCS@ HAVE_MCS_IN_PATH = @HAVE_MCS_IN_PATH@ +HAVE_MEMCHR = @HAVE_MEMCHR@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ +HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ +HAVE_MKFIFO = @HAVE_MKFIFO@ +HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ +HAVE_MKNOD = @HAVE_MKNOD@ +HAVE_MKNODAT = @HAVE_MKNODAT@ +HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ +HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ +HAVE_MKSTEMP = @HAVE_MKSTEMP@ +HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MONO = @HAVE_MONO@ HAVE_MONO_IN_PATH = @HAVE_MONO_IN_PATH@ +HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ +HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ +HAVE_NL_LANGINFO = @HAVE_NL_LANGINFO@ +HAVE_OPENAT = @HAVE_OPENAT@ +HAVE_OS_H = @HAVE_OS_H@ +HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ +HAVE_POSIX_SPAWN = @HAVE_POSIX_SPAWN@ +HAVE_POSIX_SPAWNATTR_T = @HAVE_POSIX_SPAWNATTR_T@ +HAVE_POSIX_SPAWN_FILE_ACTIONS_T = @HAVE_POSIX_SPAWN_FILE_ACTIONS_T@ +HAVE_PREAD = @HAVE_PREAD@ +HAVE_PTSNAME = @HAVE_PTSNAME@ +HAVE_PWRITE = @HAVE_PWRITE@ +HAVE_RANDOM_H = @HAVE_RANDOM_H@ +HAVE_RANDOM_R = @HAVE_RANDOM_R@ +HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ +HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOC_POSIX = @HAVE_REALLOC_POSIX@ +HAVE_REALPATH = @HAVE_REALPATH@ +HAVE_RENAMEAT = @HAVE_RENAMEAT@ +HAVE_RPMATCH = @HAVE_RPMATCH@ +HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ +HAVE_SCHED_H = @HAVE_SCHED_H@ +HAVE_SETENV = @HAVE_SETENV@ +HAVE_SIGACTION = @HAVE_SIGACTION@ +HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ +HAVE_SPAWN_H = @HAVE_SPAWN_H@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ -HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ -HAVE_STRNDUP = @HAVE_STRNDUP@ HAVE_STRPBRK = @HAVE_STRPBRK@ +HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ +HAVE_STRTOD = @HAVE_STRTOD@ +HAVE_STRTOLL = @HAVE_STRTOLL@ +HAVE_STRTOULL = @HAVE_STRTOULL@ +HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ +HAVE_STRUCT_SCHED_PARAM = @HAVE_STRUCT_SCHED_PARAM@ +HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ +HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ +HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ +HAVE_SYMLINK = @HAVE_SYMLINK@ +HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ +HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ +HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ +HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ +HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ +HAVE_TIMEGM = @HAVE_TIMEGM@ +HAVE_TTYNAME_R = @HAVE_TTYNAME_R@ +HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ +HAVE_UNLINKAT = @HAVE_UNLINKAT@ +HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ +HAVE_UNSETENV = @HAVE_UNSETENV@ HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@ +HAVE_USLEEP = @HAVE_USLEEP@ +HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ +HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ +HAVE_WCHAR_T = @HAVE_WCHAR_T@ +HAVE_WCRTOMB = @HAVE_WCRTOMB@ +HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ +HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCTYPE_H = @HAVE_WCTYPE_H@ +HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WPRINTF = @HAVE_WPRINTF@ +HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ +HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ ICONV_H = @ICONV_H@ INCCROCO = @INCCROCO@ INCGLIB = @INCGLIB@ INCLUDE_NEXT = @INCLUDE_NEXT@ +INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INCTERMINFO = @INCTERMINFO@ INCXML = @INCXML@ INSTALL = @INSTALL@ @@ -541,17 +903,20 @@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ +INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ JAR = @JAR@ JAVA_CHOICE = @JAVA_CHOICE@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBCROCO = @LIBCROCO@ LIBEXPAT = @LIBEXPAT@ LIBEXPAT_PREFIX = @LIBEXPAT_PREFIX@ LIBGLIB = @LIBGLIB@ LIBGLIB_H = @LIBGLIB_H@ -LIBGREPOBJS = @LIBGREPOBJS@ +LIBGREP_LIBDEPS = @LIBGREP_LIBDEPS@ +LIBGREP_LTLIBDEPS = @LIBGREP_LTLIBDEPS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ @@ -559,18 +924,26 @@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ -LIBSCHED = @LIBSCHED@ LIBTERMINFO = @LIBTERMINFO@ +LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTHREAD = @LIBTHREAD@ LIBTOOL = @LIBTOOL@ +LIBUNISTRING = @LIBUNISTRING@ +LIBUNISTRING_PREFIX = @LIBUNISTRING_PREFIX@ +LIBUNISTRING_UNICONV_H = @LIBUNISTRING_UNICONV_H@ +LIBUNISTRING_UNILBRK_H = @LIBUNISTRING_UNILBRK_H@ +LIBUNISTRING_UNINAME_H = @LIBUNISTRING_UNINAME_H@ +LIBUNISTRING_UNISTR_H = @LIBUNISTRING_UNISTR_H@ +LIBUNISTRING_UNITYPES_H = @LIBUNISTRING_UNITYPES_H@ +LIBUNISTRING_UNIWIDTH_H = @LIBUNISTRING_UNIWIDTH_H@ LIBXML = @LIBXML@ LIBXML_H = @LIBXML_H@ LIB_ACL = @LIB_ACL@ -LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@ +LIPO = @LIPO@ LN_S = @LN_S@ +LOCALCHARSET_TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@ LOCALE_FR = @LOCALE_FR@ LOCALE_FR_UTF8 = @LOCALE_FR_UTF8@ -LOCALE_H = @LOCALE_H@ LOCALE_JA = @LOCALE_JA@ LOCALE_TR_UTF8 = @LOCALE_TR_UTF8@ LOCALE_ZH_CN = @LOCALE_ZH_CN@ @@ -585,6 +958,7 @@ LTLIBPTH = @LTLIBPTH@ LTLIBTERMINFO = @LTLIBTERMINFO@ LTLIBTHREAD = @LTLIBTHREAD@ +LTLIBUNISTRING = @LTLIBUNISTRING@ LTLIBXML = @LTLIBXML@ LTNOUNDEF = @LTNOUNDEF@ MAKEINFO = @MAKEINFO@ @@ -595,94 +969,222 @@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ MSGMERGE_LIBM = @MSGMERGE_LIBM@ +NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ +NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ +NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ +NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ +NEXT_AS_FIRST_DIRECTIVE_ICONV_H = @NEXT_AS_FIRST_DIRECTIVE_ICONV_H@ +NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H = @NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H@ +NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ +NEXT_AS_FIRST_DIRECTIVE_SCHED_H = @NEXT_AS_FIRST_DIRECTIVE_SCHED_H@ +NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ +NEXT_AS_FIRST_DIRECTIVE_SPAWN_H = @NEXT_AS_FIRST_DIRECTIVE_SPAWN_H@ +NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ +NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ +NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ +NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ +NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ +NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H@ +NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ +NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ +NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ +NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H = @NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H@ +NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ +NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_ICONV_H = @NEXT_ICONV_H@ +NEXT_LANGINFO_H = @NEXT_LANGINFO_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ +NEXT_SCHED_H = @NEXT_SCHED_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ +NEXT_SPAWN_H = @NEXT_SPAWN_H@ +NEXT_STDARG_H = @NEXT_STDARG_H@ +NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRING_H = @NEXT_STRING_H@ +NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ +NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ +NEXT_SYS_WAIT_H = @NEXT_SYS_WAIT_H@ +NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NEXT_WCTYPE_H = @NEXT_WCTYPE_H@ NM = @NM@ +NMEDIT = @NMEDIT@ NO_CXX = @NO_CXX@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POSUB = @POSUB@ +PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ +PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ +RC = @RC@ RELOCATABLE = @RELOCATABLE@ RELOCATABLE_BUILD_DIR = @RELOCATABLE_BUILD_DIR@ RELOCATABLE_CONFIG_H_DIR = @RELOCATABLE_CONFIG_H_DIR@ RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@ RELOCATABLE_LIBRARY_PATH = @RELOCATABLE_LIBRARY_PATH@ RELOCATABLE_SRC_DIR = @RELOCATABLE_SRC_DIR@ +RELOCATABLE_STRIP = @RELOCATABLE_STRIP@ +REPLACE_BTOWC = @REPLACE_BTOWC@ +REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHOWN = @REPLACE_CHOWN@ -REPLACE_FCHDIR = @REPLACE_FCHDIR@ +REPLACE_CLOSE = @REPLACE_CLOSE@ +REPLACE_DPRINTF = @REPLACE_DPRINTF@ +REPLACE_DUP = @REPLACE_DUP@ +REPLACE_DUP2 = @REPLACE_DUP2@ +REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ +REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ +REPLACE_FCLOSE = @REPLACE_FCLOSE@ +REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ +REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ +REPLACE_FSTAT = @REPLACE_FSTAT@ +REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ +REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GETCWD = @REPLACE_GETCWD@ +REPLACE_GETDELIM = @REPLACE_GETDELIM@ +REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ +REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_ICONV = @REPLACE_ICONV@ REPLACE_ICONV_OPEN = @REPLACE_ICONV_OPEN@ REPLACE_ICONV_UTF = @REPLACE_ICONV_UTF@ +REPLACE_ISWCNTRL = @REPLACE_ISWCNTRL@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ +REPLACE_LINK = @REPLACE_LINK@ +REPLACE_LINKAT = @REPLACE_LINKAT@ +REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ +REPLACE_LSTAT = @REPLACE_LSTAT@ +REPLACE_MBRLEN = @REPLACE_MBRLEN@ +REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ +REPLACE_MBSINIT = @REPLACE_MBSINIT@ +REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ +REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ +REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ +REPLACE_MEMCHR = @REPLACE_MEMCHR@ +REPLACE_MEMMEM = @REPLACE_MEMMEM@ +REPLACE_MKDIR = @REPLACE_MKDIR@ +REPLACE_MKFIFO = @REPLACE_MKFIFO@ +REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ +REPLACE_MKTIME = @REPLACE_MKTIME@ +REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ +REPLACE_NL_LANGINFO = @REPLACE_NL_LANGINFO@ +REPLACE_NULL = @REPLACE_NULL@ +REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ +REPLACE_OPENAT = @REPLACE_OPENAT@ +REPLACE_PERROR = @REPLACE_PERROR@ +REPLACE_POPEN = @REPLACE_POPEN@ +REPLACE_POSIX_SPAWN = @REPLACE_POSIX_SPAWN@ +REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PUTENV = @REPLACE_PUTENV@ +REPLACE_PWRITE = @REPLACE_PWRITE@ +REPLACE_READLINK = @REPLACE_READLINK@ +REPLACE_REALPATH = @REPLACE_REALPATH@ +REPLACE_REMOVE = @REPLACE_REMOVE@ +REPLACE_RENAME = @REPLACE_RENAME@ +REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ +REPLACE_RMDIR = @REPLACE_RMDIR@ +REPLACE_SELECT = @REPLACE_SELECT@ +REPLACE_SETENV = @REPLACE_SETENV@ +REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ +REPLACE_STAT = @REPLACE_STAT@ +REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ +REPLACE_STPNCPY = @REPLACE_STPNCPY@ +REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ +REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ +REPLACE_STRNCAT = @REPLACE_STRNCAT@ +REPLACE_STRNDUP = @REPLACE_STRNDUP@ +REPLACE_STRNLEN = @REPLACE_STRNLEN@ +REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ +REPLACE_STRSTR = @REPLACE_STRSTR@ +REPLACE_STRTOD = @REPLACE_STRTOD@ +REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ +REPLACE_SYMLINK = @REPLACE_SYMLINK@ +REPLACE_TIMEGM = @REPLACE_TIMEGM@ +REPLACE_TMPFILE = @REPLACE_TMPFILE@ +REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ +REPLACE_UNLINK = @REPLACE_UNLINK@ +REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ +REPLACE_UNSETENV = @REPLACE_UNSETENV@ +REPLACE_USLEEP = @REPLACE_USLEEP@ +REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ +REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ +REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ +REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ +REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ +REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ +REPLACE_WRITE = @REPLACE_WRITE@ +SCHED_H = @SCHED_H@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ +STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ +STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ -SYS_STAT_H = @SYS_STAT_H@ -SYS_TIME_H = @SYS_TIME_H@ +SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TESTCSHARP = @TESTCSHARP@ TESTJAVA = @TESTJAVA@ TESTLIBASPRINTF = @TESTLIBASPRINTF@ TEXI2PDF = @TEXI2PDF@ +TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ +UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ +UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ +UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ +USE_ACL = @USE_ACL@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ -WCHAR_H = @WCHAR_H@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ -WCTYPE_H = @WCTYPE_H@ WINDRES = @WINDRES@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ WOE32 = @WOE32@ @@ -692,13 +1194,14 @@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ +YIELD_LIB = @YIELD_LIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ aclocaldir = @aclocaldir@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ @@ -719,8 +1222,19 @@ exec_prefix = @exec_prefix@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ +gltests_LIBOBJS = @gltests_LIBOBJS@ +gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ +gltests_WITNESS = @gltests_WITNESS@ +grgl_LIBOBJS = @grgl_LIBOBJS@ +grgl_LTLIBOBJS = @grgl_LTLIBOBJS@ +grgltests_LIBOBJS = @grgltests_LIBOBJS@ +grgltests_LTLIBOBJS = @grgltests_LTLIBOBJS@ +grgltests_WITNESS = @grgltests_WITNESS@ gtpo_LIBOBJS = @gtpo_LIBOBJS@ gtpo_LTLIBOBJS = @gtpo_LTLIBOBJS@ +gtpotests_LIBOBJS = @gtpotests_LIBOBJS@ +gtpotests_LTLIBOBJS = @gtpotests_LTLIBOBJS@ +gtpotests_WITNESS = @gtpotests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ @@ -735,6 +1249,7 @@ lispdir = @lispdir@ localedir = @localedir@ localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -748,9 +1263,10 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies +AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests EXTRA_DIST = $(TESTS) test.mo xg-c-1.ok.po mex-test2.ok \ mm-ko.ascii.pot mm-ko.euc-kr.po mm-ko-comp.euc-kr.po \ mm-viet.comp.po mm-viet.pot mm-viet.out msguniq-a.in \ @@ -760,6 +1276,7 @@ gettext-6-1.po gettext-6-2.po gettext-7.po MOSTLYCLEANFILES = core *.stackdump TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \ + gettext-8 \ msgattrib-1 msgattrib-2 msgattrib-3 msgattrib-4 msgattrib-5 \ msgattrib-6 msgattrib-7 msgattrib-8 msgattrib-9 msgattrib-10 \ msgattrib-11 msgattrib-12 msgattrib-13 msgattrib-14 msgattrib-15 \ @@ -767,7 +1284,7 @@ msgattrib-properties-1 \ msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 msgcat-7 \ msgcat-8 msgcat-9 msgcat-10 msgcat-11 msgcat-12 msgcat-13 msgcat-14 \ - msgcat-15 msgcat-16 \ + msgcat-15 msgcat-16 msgcat-17 msgcat-18 \ msgcat-properties-1 msgcat-properties-2 \ msgcat-stringtable-1 \ msgcmp-1 msgcmp-2 msgcmp-3 msgcmp-4 \ @@ -775,7 +1292,7 @@ msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \ msgcomm-14 msgcomm-15 msgcomm-16 msgcomm-17 msgcomm-18 msgcomm-19 \ msgcomm-20 msgcomm-21 msgcomm-22 msgcomm-23 msgcomm-24 msgcomm-25 \ - msgcomm-26 \ + msgcomm-26 msgcomm-27 \ msgconv-1 msgconv-2 msgconv-3 msgconv-4 msgconv-5 msgconv-6 \ msgen-1 msgen-2 msgen-3 \ msgexec-1 msgexec-2 msgexec-3 msgexec-4 \ @@ -783,20 +1300,22 @@ msgfilter-sr-latin-1 \ msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \ msgfmt-8 msgfmt-9 msgfmt-10 msgfmt-11 msgfmt-12 msgfmt-13 msgfmt-14 \ - msgfmt-15 msgfmt-16 \ + msgfmt-15 msgfmt-16 msgfmt-17 \ msgfmt-properties-1 \ msgfmt-qt-1 msgfmt-qt-2 \ msggrep-1 msggrep-2 msggrep-3 msggrep-4 msggrep-5 msggrep-6 msggrep-7 \ - msggrep-8 \ + msggrep-8 msggrep-9 msggrep-10 \ msginit-1 msginit-2 \ msgmerge-1 msgmerge-2 msgmerge-3 msgmerge-4 msgmerge-5 msgmerge-6 \ msgmerge-7 msgmerge-8 msgmerge-9 msgmerge-10 msgmerge-11 msgmerge-12 \ msgmerge-13 msgmerge-14 msgmerge-15 msgmerge-16 msgmerge-17 \ msgmerge-18 msgmerge-19 msgmerge-20 msgmerge-21 msgmerge-22 \ + msgmerge-23 msgmerge-24 \ msgmerge-compendium-1 msgmerge-compendium-2 msgmerge-compendium-3 \ msgmerge-compendium-4 msgmerge-compendium-5 msgmerge-compendium-6 \ msgmerge-properties-1 msgmerge-properties-2 \ msgmerge-update-1 msgmerge-update-2 msgmerge-update-3 \ + msgmerge-update-4 \ msgunfmt-1 msgunfmt-2 \ msgunfmt-csharp-1 \ msgunfmt-java-1 \ @@ -810,19 +1329,19 @@ xgettext-c-1 xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \ xgettext-c-6 xgettext-c-7 xgettext-c-8 xgettext-c-9 xgettext-c-10 \ xgettext-c-11 xgettext-c-12 xgettext-c-13 xgettext-c-14 xgettext-c-15 \ - xgettext-c-16 xgettext-c-17 \ + xgettext-c-16 xgettext-c-17 xgettext-c-18 \ xgettext-csharp-1 xgettext-csharp-2 xgettext-csharp-3 \ xgettext-csharp-4 xgettext-csharp-5 xgettext-csharp-6 \ xgettext-csharp-7 \ xgettext-elisp-1 xgettext-elisp-2 \ - xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 \ + xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 xgettext-glade-4 \ xgettext-java-1 xgettext-java-2 xgettext-java-3 xgettext-java-4 \ xgettext-java-5 xgettext-java-6 xgettext-java-7 \ xgettext-librep-1 xgettext-librep-2 \ xgettext-lisp-1 xgettext-lisp-2 \ xgettext-objc-1 xgettext-objc-2 \ xgettext-perl-1 xgettext-perl-2 xgettext-perl-3 xgettext-perl-4 \ - xgettext-perl-5 xgettext-perl-6 xgettext-perl-7 \ + xgettext-perl-5 xgettext-perl-6 xgettext-perl-7 xgettext-perl-8 \ xgettext-php-1 xgettext-php-2 xgettext-php-3 xgettext-php-4 \ xgettext-po-1 \ xgettext-properties-1 \ @@ -841,6 +1360,7 @@ format-csharp-1 format-csharp-2 \ format-elisp-1 format-elisp-2 \ format-gcc-internal-1 format-gcc-internal-2 \ + format-gfc-internal-1 format-gfc-internal-2 \ format-java-1 format-java-2 \ format-kde-1 format-kde-2 \ format-librep-1 format-librep-2 \ @@ -852,6 +1372,7 @@ format-perl-brace-1 format-perl-brace-2 \ format-perl-mixed-1 format-perl-mixed-2 \ format-qt-1 format-qt-2 \ + format-qt-plural-1 format-qt-plural-2 \ format-scheme-1 format-scheme-2 \ format-sh-1 format-sh-2 \ format-tcl-1 format-tcl-2 \ @@ -866,7 +1387,7 @@ # For debugging memory leaks and memory allocation bugs. # You should build with --disable-shared when using valgrind. CHECKER = -#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes +#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../gnulib-lib/malloca.valgrind --suppressions=$(srcdir)/../gnulib-lib/libunistring.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes #CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \ PATH=.:../src:../../gettext-runtime/src:$(top_srcdir)/../gettext-runtime/src:$$PATH \ @@ -935,15 +1456,17 @@ gettext_5_prg_SOURCES = gettext-5-prg.c gettext_5_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) gettext_6_prg_SOURCES = gettext-6-prg.c -gettext_6_prg_CFLAGS = $(gettext_6_prg_CFLAGS_@GLIBC2@) -gettext_6_prg_CFLAGS_yes = -DUSE_POSIX_THREADS -gettext_6_prg_LDADD = $(gettext_6_prg_LDADD_@GLIBC2@) -gettext_6_prg_LDADD_yes = ../gnulib-lib/libgettextlib.la $(LDADD) -lpthread +gettext_6_prg_CFLAGS = $(gettext_6_prg_CFLAGS_@HAVE_NEWLOCALE@) +gettext_6_prg_CFLAGS_1 = -DUSE_POSIX_THREADS +gettext_6_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) $(gettext_6_prg_LDADD_@HAVE_NEWLOCALE@) +gettext_6_prg_LDADD_1 = -lpthread gettext_7_prg_SOURCES = gettext-7-prg.c -gettext_7_prg_CFLAGS = $(gettext_7_prg_CFLAGS_@GLIBC2@) -gettext_7_prg_CFLAGS_yes = -DUSE_POSIX_THREADS -gettext_7_prg_LDADD = $(gettext_7_prg_LDADD_@GLIBC2@) -gettext_7_prg_LDADD_yes = ../gnulib-lib/libgettextlib.la $(LDADD) -lpthread +gettext_7_prg_CFLAGS = $(gettext_7_prg_CFLAGS_@HAVE_NEWLOCALE@) +gettext_7_prg_CFLAGS_1 = -DUSE_POSIX_THREADS +gettext_7_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) $(gettext_7_prg_LDADD_@HAVE_NEWLOCALE@) +gettext_7_prg_LDADD_1 = -lpthread +gettext_8_prg_SOURCES = gettext-8-prg.c +gettext_8_prg_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) cake_SOURCES = plural-1-prg.c setlocale.c cake_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD) fc3_SOURCES = format-c-3-prg.c setlocale.c @@ -960,14 +1483,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnits tests/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnits tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -985,49 +1508,55 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list cake$(EXEEXT): $(cake_OBJECTS) $(cake_DEPENDENCIES) @rm -f cake$(EXEEXT) - $(LINK) $(cake_OBJECTS) $(cake_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(cake_OBJECTS) $(cake_LDADD) $(LIBS) fc3$(EXEEXT): $(fc3_OBJECTS) $(fc3_DEPENDENCIES) @rm -f fc3$(EXEEXT) - $(LINK) $(fc3_OBJECTS) $(fc3_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(fc3_OBJECTS) $(fc3_LDADD) $(LIBS) fc4$(EXEEXT): $(fc4_OBJECTS) $(fc4_DEPENDENCIES) @rm -f fc4$(EXEEXT) - $(LINK) $(fc4_OBJECTS) $(fc4_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(fc4_OBJECTS) $(fc4_LDADD) $(LIBS) fc5$(EXEEXT): $(fc5_OBJECTS) $(fc5_DEPENDENCIES) @rm -f fc5$(EXEEXT) - $(LINK) $(fc5_OBJECTS) $(fc5_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(fc5_OBJECTS) $(fc5_LDADD) $(LIBS) gettext-3-prg$(EXEEXT): $(gettext_3_prg_OBJECTS) $(gettext_3_prg_DEPENDENCIES) @rm -f gettext-3-prg$(EXEEXT) - $(LINK) $(gettext_3_prg_OBJECTS) $(gettext_3_prg_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(gettext_3_prg_OBJECTS) $(gettext_3_prg_LDADD) $(LIBS) gettext-4-prg$(EXEEXT): $(gettext_4_prg_OBJECTS) $(gettext_4_prg_DEPENDENCIES) @rm -f gettext-4-prg$(EXEEXT) - $(LINK) $(gettext_4_prg_OBJECTS) $(gettext_4_prg_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(gettext_4_prg_OBJECTS) $(gettext_4_prg_LDADD) $(LIBS) gettext-5-prg$(EXEEXT): $(gettext_5_prg_OBJECTS) $(gettext_5_prg_DEPENDENCIES) @rm -f gettext-5-prg$(EXEEXT) - $(LINK) $(gettext_5_prg_OBJECTS) $(gettext_5_prg_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(gettext_5_prg_OBJECTS) $(gettext_5_prg_LDADD) $(LIBS) gettext-6-prg$(EXEEXT): $(gettext_6_prg_OBJECTS) $(gettext_6_prg_DEPENDENCIES) @rm -f gettext-6-prg$(EXEEXT) - $(gettext_6_prg_LINK) $(gettext_6_prg_OBJECTS) $(gettext_6_prg_LDADD) $(LIBS) + $(AM_V_CCLD)$(gettext_6_prg_LINK) $(gettext_6_prg_OBJECTS) $(gettext_6_prg_LDADD) $(LIBS) gettext-7-prg$(EXEEXT): $(gettext_7_prg_OBJECTS) $(gettext_7_prg_DEPENDENCIES) @rm -f gettext-7-prg$(EXEEXT) - $(gettext_7_prg_LINK) $(gettext_7_prg_OBJECTS) $(gettext_7_prg_LDADD) $(LIBS) + $(AM_V_CCLD)$(gettext_7_prg_LINK) $(gettext_7_prg_OBJECTS) $(gettext_7_prg_LDADD) $(LIBS) +gettext-8-prg$(EXEEXT): $(gettext_8_prg_OBJECTS) $(gettext_8_prg_DEPENDENCIES) + @rm -f gettext-8-prg$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(gettext_8_prg_OBJECTS) $(gettext_8_prg_LDADD) $(LIBS) testlocale$(EXEEXT): $(testlocale_OBJECTS) $(testlocale_DEPENDENCIES) @rm -f testlocale$(EXEEXT) - $(LINK) $(testlocale_OBJECTS) $(testlocale_LDADD) $(LIBS) + $(AM_V_CCLD)$(LINK) $(testlocale_OBJECTS) $(testlocale_LDADD) $(LIBS) tstgettext$(EXEEXT): $(tstgettext_OBJECTS) $(tstgettext_DEPENDENCIES) @rm -f tstgettext$(EXEEXT) - $(tstgettext_LINK) $(tstgettext_OBJECTS) $(tstgettext_LDADD) $(LIBS) + $(AM_V_CCLD)$(tstgettext_LINK) $(tstgettext_OBJECTS) $(tstgettext_LDADD) $(LIBS) tstngettext$(EXEEXT): $(tstngettext_OBJECTS) $(tstngettext_DEPENDENCIES) @rm -f tstngettext$(EXEEXT) - $(tstngettext_LINK) $(tstngettext_OBJECTS) $(tstngettext_LDADD) $(LIBS) + $(AM_V_CCLD)$(tstngettext_LINK) $(tstngettext_OBJECTS) $(tstngettext_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -1036,48 +1565,63 @@ -rm -f *.tab.c .c.o: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c $< .c.obj: + $(AM_V_CC) @AM_BACKSLASH@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: + $(AM_V_CC) @AM_BACKSLASH@ $(LTCOMPILE) -c -o $@ $< gettext_6_prg-gettext-6-prg.o: gettext-6-prg.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_6_prg_CFLAGS) $(CFLAGS) -c -o gettext_6_prg-gettext-6-prg.o `test -f 'gettext-6-prg.c' || echo '$(srcdir)/'`gettext-6-prg.c gettext_6_prg-gettext-6-prg.obj: gettext-6-prg.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_6_prg_CFLAGS) $(CFLAGS) -c -o gettext_6_prg-gettext-6-prg.obj `if test -f 'gettext-6-prg.c'; then $(CYGPATH_W) 'gettext-6-prg.c'; else $(CYGPATH_W) '$(srcdir)/gettext-6-prg.c'; fi` gettext_7_prg-gettext-7-prg.o: gettext-7-prg.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_7_prg_CFLAGS) $(CFLAGS) -c -o gettext_7_prg-gettext-7-prg.o `test -f 'gettext-7-prg.c' || echo '$(srcdir)/'`gettext-7-prg.c gettext_7_prg-gettext-7-prg.obj: gettext-7-prg.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gettext_7_prg_CFLAGS) $(CFLAGS) -c -o gettext_7_prg-gettext-7-prg.obj `if test -f 'gettext-7-prg.c'; then $(CYGPATH_W) 'gettext-7-prg.c'; else $(CYGPATH_W) '$(srcdir)/gettext-7-prg.c'; fi` tstgettext-tstgettext.o: tstgettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstgettext_CFLAGS) $(CFLAGS) -c -o tstgettext-tstgettext.o `test -f 'tstgettext.c' || echo '$(srcdir)/'`tstgettext.c tstgettext-tstgettext.obj: tstgettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstgettext_CFLAGS) $(CFLAGS) -c -o tstgettext-tstgettext.obj `if test -f 'tstgettext.c'; then $(CYGPATH_W) 'tstgettext.c'; else $(CYGPATH_W) '$(srcdir)/tstgettext.c'; fi` tstgettext-setlocale.o: setlocale.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstgettext_CFLAGS) $(CFLAGS) -c -o tstgettext-setlocale.o `test -f 'setlocale.c' || echo '$(srcdir)/'`setlocale.c tstgettext-setlocale.obj: setlocale.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstgettext_CFLAGS) $(CFLAGS) -c -o tstgettext-setlocale.obj `if test -f 'setlocale.c'; then $(CYGPATH_W) 'setlocale.c'; else $(CYGPATH_W) '$(srcdir)/setlocale.c'; fi` tstngettext-tstngettext.o: tstngettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstngettext_CFLAGS) $(CFLAGS) -c -o tstngettext-tstngettext.o `test -f 'tstngettext.c' || echo '$(srcdir)/'`tstngettext.c tstngettext-tstngettext.obj: tstngettext.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstngettext_CFLAGS) $(CFLAGS) -c -o tstngettext-tstngettext.obj `if test -f 'tstngettext.c'; then $(CYGPATH_W) 'tstngettext.c'; else $(CYGPATH_W) '$(srcdir)/tstngettext.c'; fi` tstngettext-setlocale.o: setlocale.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstngettext_CFLAGS) $(CFLAGS) -c -o tstngettext-setlocale.o `test -f 'setlocale.c' || echo '$(srcdir)/'`setlocale.c tstngettext-setlocale.obj: setlocale.c + $(AM_V_CC) @AM_BACKSLASH@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tstngettext_CFLAGS) $(CFLAGS) -c -o tstngettext-setlocale.obj `if test -f 'setlocale.c'; then $(CYGPATH_W) 'setlocale.c'; else $(CYGPATH_W) '$(srcdir)/setlocale.c'; fi` mostlyclean-libtool: @@ -1091,53 +1635,58 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ + $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ @@ -1146,49 +1695,63 @@ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ - echo "XPASS: $$tst"; \ + col=$$red; res=XPASS; \ ;; \ *) \ - echo "PASS: $$tst"; \ + col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *$$ws$$tst$$ws*) \ + *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ - echo "XFAIL: $$tst"; \ + col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ + col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ - echo "SKIP: $$tst"; \ + col=$$blu; res=SKIP; \ fi; \ + echo "$${col}$$res$${std}: $$tst"; \ done; \ + if test "$$all" -eq 1; then \ + tests="test"; \ + All=""; \ + else \ + tests="tests"; \ + All="All "; \ + fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ - banner="All $$all tests passed"; \ + banner="$$All$$all $$tests passed"; \ else \ - banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ + banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all tests failed"; \ + banner="$$failed of $$all $$tests failed"; \ else \ - banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ + banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ - skipped="($$skip tests were not run)"; \ + if test "$$skip" -eq 1; then \ + skipped="($$skip test was not run)"; \ + else \ + skipped="($$skip tests were not run)"; \ + fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ @@ -1199,11 +1762,15 @@ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ - echo "$$dashes"; \ + if test "$$failed" -eq 0; then \ + echo "$$grn$$dashes"; \ + else \ + echo "$$red$$dashes"; \ + fi; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ - echo "$$dashes"; \ + echo "$$dashes$$std"; \ test "$$failed" -eq 0; \ else :; fi @@ -1223,13 +1790,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -1259,6 +1830,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -1279,6 +1851,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -1287,18 +1861,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -1320,7 +1904,7 @@ uninstall-am: -.MAKE: install-am install-strip +.MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-local clean-noinstPROGRAMS \ @@ -1337,6 +1921,8 @@ tags uninstall uninstall-am +# Update the expected test results. +update-expected: xg-c-1.ok.po xg-c-1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c $(XGETTEXT) -d xg-c-1.ok -p $(srcdir) \ -k_ --omit-header --no-location \ @@ -1345,6 +1931,7 @@ # Clean up after Solaris cc. clean-local: rm -rf SunWS_cache + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gettext-tools/tests/mm-viet.out gettext-0.18.1.1/gettext-tools/tests/mm-viet.out --- gettext-0.17/gettext-tools/tests/mm-viet.out 2006-08-04 14:10:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/mm-viet.out 2010-06-06 12:49:58.000000000 +0000 @@ -10,6 +10,7 @@ "PO-Revision-Date: #LOCALTIME %F %R%z#\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" +"Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-1 gettext-0.18.1.1/gettext-tools/tests/msgattrib-1 --- gettext-0.17/gettext-tools/tests/msgattrib-1 2007-09-09 17:38:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-1 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --translated -o ma-test1.tmp ma-test1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test1.tmp > ma-test1.out +LC_ALL=C tr -d '\r' < ma-test1.tmp > ma-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-10 gettext-0.18.1.1/gettext-tools/tests/msgattrib-10 --- gettext-0.17/gettext-tools/tests/msgattrib-10 2007-03-11 02:26:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-10 2010-06-06 12:49:58.000000000 +0000 @@ -61,7 +61,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --set-obsolete -o ma-test10.tmp ma-test10.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test10.tmp > ma-test10.out +LC_ALL=C tr -d '\r' < ma-test10.tmp > ma-test10.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test10.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-11 gettext-0.18.1.1/gettext-tools/tests/msgattrib-11 --- gettext-0.17/gettext-tools/tests/msgattrib-11 2007-03-11 02:26:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-11 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --clear-obsolete -o ma-test11.tmp ma-test11.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test11.tmp > ma-test11.out +LC_ALL=C tr -d '\r' < ma-test11.tmp > ma-test11.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test11.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-12 gettext-0.18.1.1/gettext-tools/tests/msgattrib-12 --- gettext-0.17/gettext-tools/tests/msgattrib-12 2007-03-11 02:27:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-12 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --fuzzy -o ma-test12.tmp ma-test12.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test12.tmp > ma-test12.out +LC_ALL=C tr -d '\r' < ma-test12.tmp > ma-test12.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test12.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-13 gettext-0.18.1.1/gettext-tools/tests/msgattrib-13 --- gettext-0.17/gettext-tools/tests/msgattrib-13 2007-03-11 02:28:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-13 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --obsolete -o ma-test13.tmp ma-test13.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test13.tmp > ma-test13.out +LC_ALL=C tr -d '\r' < ma-test13.tmp > ma-test13.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test13.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-14 gettext-0.18.1.1/gettext-tools/tests/msgattrib-14 --- gettext-0.17/gettext-tools/tests/msgattrib-14 2007-03-11 02:28:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-14 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --obsolete --no-fuzzy -o ma-test14.tmp ma-test14.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test14.tmp > ma-test14.out +LC_ALL=C tr -d '\r' < ma-test14.tmp > ma-test14.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test14.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-15 gettext-0.18.1.1/gettext-tools/tests/msgattrib-15 --- gettext-0.17/gettext-tools/tests/msgattrib-15 2007-03-11 02:30:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-15 2010-06-06 12:49:58.000000000 +0000 @@ -55,7 +55,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --clear-fuzzy -o ma-test15.tmp ma-test15.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test15.tmp > ma-test15.out +LC_ALL=C tr -d '\r' < ma-test15.tmp > ma-test15.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-16 gettext-0.18.1.1/gettext-tools/tests/msgattrib-16 --- gettext-0.17/gettext-tools/tests/msgattrib-16 2007-03-11 02:30:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-16 2010-06-06 12:49:58.000000000 +0000 @@ -48,7 +48,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --fuzzy -o ma-test16.tmp ma-test16.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test16.tmp > ma-test16.out +LC_ALL=C tr -d '\r' < ma-test16.tmp > ma-test16.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test16.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-17 gettext-0.18.1.1/gettext-tools/tests/msgattrib-17 --- gettext-0.17/gettext-tools/tests/msgattrib-17 2007-03-11 02:31:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-17 2010-06-06 12:49:58.000000000 +0000 @@ -48,7 +48,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --clear-previous -o ma-test17.tmp ma-test17.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test17.tmp > ma-test17.out +LC_ALL=C tr -d '\r' < ma-test17.tmp > ma-test17.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test17.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-2 gettext-0.18.1.1/gettext-tools/tests/msgattrib-2 --- gettext-0.17/gettext-tools/tests/msgattrib-2 2007-03-11 02:19:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-2 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --untranslated -o ma-test2.tmp ma-test2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test2.tmp > ma-test2.out +LC_ALL=C tr -d '\r' < ma-test2.tmp > ma-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-3 gettext-0.18.1.1/gettext-tools/tests/msgattrib-3 --- gettext-0.17/gettext-tools/tests/msgattrib-3 2007-03-11 02:20:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-3 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --no-fuzzy -o ma-test3.tmp ma-test3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test3.tmp > ma-test3.out +LC_ALL=C tr -d '\r' < ma-test3.tmp > ma-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-4 gettext-0.18.1.1/gettext-tools/tests/msgattrib-4 --- gettext-0.17/gettext-tools/tests/msgattrib-4 2007-03-11 02:21:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-4 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --only-fuzzy -o ma-test4.tmp ma-test4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test4.tmp > ma-test4.out +LC_ALL=C tr -d '\r' < ma-test4.tmp > ma-test4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-5 gettext-0.18.1.1/gettext-tools/tests/msgattrib-5 --- gettext-0.17/gettext-tools/tests/msgattrib-5 2007-03-11 02:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-5 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --no-obsolete -o ma-test5.tmp ma-test5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test5.tmp > ma-test5.out +LC_ALL=C tr -d '\r' < ma-test5.tmp > ma-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-6 gettext-0.18.1.1/gettext-tools/tests/msgattrib-6 --- gettext-0.17/gettext-tools/tests/msgattrib-6 2007-03-11 02:23:06.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-6 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --only-obsolete -o ma-test6.tmp ma-test6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test6.tmp > ma-test6.out +LC_ALL=C tr -d '\r' < ma-test6.tmp > ma-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-7 gettext-0.18.1.1/gettext-tools/tests/msgattrib-7 --- gettext-0.17/gettext-tools/tests/msgattrib-7 2007-03-11 02:24:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-7 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --translated --only-obsolete -o ma-test7.tmp ma-test7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test7.tmp > ma-test7.out +LC_ALL=C tr -d '\r' < ma-test7.tmp > ma-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-8 gettext-0.18.1.1/gettext-tools/tests/msgattrib-8 --- gettext-0.17/gettext-tools/tests/msgattrib-8 2007-03-11 02:25:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-8 2010-06-06 12:49:58.000000000 +0000 @@ -61,7 +61,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --set-fuzzy -o ma-test8.tmp ma-test8.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test8.tmp > ma-test8.out +LC_ALL=C tr -d '\r' < ma-test8.tmp > ma-test8.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test8.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-9 gettext-0.18.1.1/gettext-tools/tests/msgattrib-9 --- gettext-0.17/gettext-tools/tests/msgattrib-9 2007-03-11 02:25:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-9 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --clear-fuzzy -o ma-test9.tmp ma-test9.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-test9.tmp > ma-test9.out +LC_ALL=C tr -d '\r' < ma-test9.tmp > ma-test9.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-test9.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgattrib-properties-1 gettext-0.18.1.1/gettext-tools/tests/msgattrib-properties-1 --- gettext-0.17/gettext-tools/tests/msgattrib-properties-1 2007-03-11 03:08:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgattrib-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -36,7 +36,7 @@ : ${MSGATTRIB=msgattrib} ${MSGATTRIB} --translated --properties-input --properties-output -o ma-s-1.tmp ma-s-1.properties test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < ma-s-1.tmp > ma-s-1.out +LC_ALL=C tr -d '\r' < ma-s-1.tmp > ma-s-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles ma-s-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-1 gettext-0.18.1.1/gettext-tools/tests/msgcat-1 --- gettext-0.17/gettext-tools/tests/msgcat-1 2007-03-11 02:34:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-1 2010-06-06 12:49:58.000000000 +0000 @@ -45,7 +45,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test1.tmp mcat-test1.in1 mcat-test1.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test1.tmp > mcat-test1.out +LC_ALL=C tr -d '\r' < mcat-test1.tmp > mcat-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-10 gettext-0.18.1.1/gettext-tools/tests/msgcat-10 --- gettext-0.17/gettext-tools/tests/msgcat-10 2007-03-11 02:44:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-10 2010-06-06 12:49:58.000000000 +0000 @@ -66,7 +66,7 @@ ${MSGCAT} --more-than=0 -o mcat-test10.tmp \ mcat-test10.in1 mcat-test10.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test10.tmp > mcat-test10.out +LC_ALL=C tr -d '\r' < mcat-test10.tmp > mcat-test10.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test10.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-11 gettext-0.18.1.1/gettext-tools/tests/msgcat-11 --- gettext-0.17/gettext-tools/tests/msgcat-11 2007-03-11 02:44:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-11 2010-06-06 12:49:58.000000000 +0000 @@ -37,7 +37,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test11.tmp mcat-test11.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test11.tmp > mcat-test11.out +LC_ALL=C tr -d '\r' < mcat-test11.tmp > mcat-test11.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgcat-13 gettext-0.18.1.1/gettext-tools/tests/msgcat-13 --- gettext-0.17/gettext-tools/tests/msgcat-13 2007-03-11 02:45:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-13 2010-06-06 12:49:58.000000000 +0000 @@ -73,7 +73,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test13.tmp mcat-test13.in1 mcat-test13.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test13.tmp > mcat-test13.out +LC_ALL=C tr -d '\r' < mcat-test13.tmp > mcat-test13.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test13.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-15 gettext-0.18.1.1/gettext-tools/tests/msgcat-15 --- gettext-0.17/gettext-tools/tests/msgcat-15 2007-03-11 02:46:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-15 2010-06-06 12:49:58.000000000 +0000 @@ -49,7 +49,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test15.tmp1 mcat-test15.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test15.tmp1 > mcat-test15.out1 +LC_ALL=C tr -d '\r' < mcat-test15.tmp1 > mcat-test15.out1 test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -61,7 +61,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} --indent -o mcat-test15.tmp2 mcat-test15.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test15.tmp2 > mcat-test15.out2 +LC_ALL=C tr -d '\r' < mcat-test15.tmp2 > mcat-test15.out2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test15.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-16 gettext-0.18.1.1/gettext-tools/tests/msgcat-16 --- gettext-0.17/gettext-tools/tests/msgcat-16 2007-03-11 02:47:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-16 2010-06-06 12:49:58.000000000 +0000 @@ -50,7 +50,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} -o mcat-test16.tmp mcat-test16.in1 mcat-test16.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test16.tmp > mcat-test16.out +LC_ALL=C tr -d '\r' < mcat-test16.tmp > mcat-test16.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test16.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-17 gettext-0.18.1.1/gettext-tools/tests/msgcat-17 --- gettext-0.17/gettext-tools/tests/msgcat-17 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-17 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,60 @@ +#! /bin/sh + +# Test msgcat with --width option. Check that format strings are not broken. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mcat-test17.in" +cat <<\EOF > mcat-test17.in +msgid "" +msgstr "" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "write error of a large result on a too small disk% s% s" +msgstr "Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine Platte% s% smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment und an jeder Stelle" + +#, c-format +msgid "write error of a big result on a too small disk% s% s" +msgstr "Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine Platte% s% smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment und an jeder Stelle" +EOF + +tmpfiles="$tmpfiles mcat-test17.tmp mcat-test17.out" +rm -f mcat-test17.tmp +: ${MSGCAT=msgcat} +${MSGCAT} -o mcat-test17.tmp --width=80 mcat-test17.in +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mcat-test17.tmp > mcat-test17.out +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mcat-test17.ok" +cat <<\EOF > mcat-test17.ok +msgid "" +msgstr "" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "write error of a large result on a too small disk% s% s" +msgstr "" +"Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine Platte% s% " +"smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment und an jeder " +"Stelle" + +#, c-format +msgid "write error of a big result on a too small disk% s% s" +msgstr "" +"Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine Platte% s" +"% smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment und an " +"jeder Stelle" +EOF + +: ${DIFF=diff} +${DIFF} mcat-test17.ok mcat-test17.out +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msgcat-18 gettext-0.18.1.1/gettext-tools/tests/msgcat-18 --- gettext-0.17/gettext-tools/tests/msgcat-18 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-18 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,100 @@ +#! /bin/sh + +# Test msgcat: handling of 'range:' flags. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mcat-test18.in1 mcat-test18.in2" +cat <<\EOF > mcat-test18.in1 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..6 +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..7 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..6 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +cat <<\EOF > mcat-test18.in2 +#, c-format, range: 1..6 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..6 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +tmpfiles="$tmpfiles mcat-test18.tmp mcat-test18.out" +rm -f mcat-test18.tmp +: ${MSGCAT=msgcat} +${MSGCAT} -o mcat-test18.tmp mcat-test18.in1 mcat-test18.in2 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mcat-test18.tmp > mcat-test18.out +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mcat-test18.ok" +cat <<\EOF > mcat-test18.ok +#, c-format +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..7 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +: ${DIFF=diff} +${DIFF} mcat-test18.ok mcat-test18.out +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msgcat-2 gettext-0.18.1.1/gettext-tools/tests/msgcat-2 --- gettext-0.17/gettext-tools/tests/msgcat-2 2007-03-11 02:36:14.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-2 2010-06-06 12:49:58.000000000 +0000 @@ -63,7 +63,7 @@ result=$? cat mcat-test2.err | grep -v 'warning: .* encodings' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test2.tmp > mcat-test2.out +LC_ALL=C tr -d '\r' < mcat-test2.tmp > mcat-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-3 gettext-0.18.1.1/gettext-tools/tests/msgcat-3 --- gettext-0.17/gettext-tools/tests/msgcat-3 2007-03-11 02:37:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-3 2010-06-06 12:49:58.000000000 +0000 @@ -64,7 +64,7 @@ result=$? cat mcat-test3.err | grep -v 'warning: .* encodings' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test3.tmp > mcat-test3.out +LC_ALL=C tr -d '\r' < mcat-test3.tmp > mcat-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-4 gettext-0.18.1.1/gettext-tools/tests/msgcat-4 --- gettext-0.17/gettext-tools/tests/msgcat-4 2007-03-11 02:37:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-4 2010-06-06 12:49:58.000000000 +0000 @@ -64,7 +64,7 @@ result=$? cat mcat-test4.err | grep -v 'warning: .* encodings' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test4.tmp > mcat-test4.out +LC_ALL=C tr -d '\r' < mcat-test4.tmp > mcat-test4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-5 gettext-0.18.1.1/gettext-tools/tests/msgcat-5 --- gettext-0.17/gettext-tools/tests/msgcat-5 2007-03-11 02:39:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-5 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ ${MSGCAT} --use-first --more-than=0 -o mcat-test5.tmp \ mcat-test5.in1 mcat-test5.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test5.tmp > mcat-test5.out +LC_ALL=C tr -d '\r' < mcat-test5.tmp > mcat-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-6 gettext-0.18.1.1/gettext-tools/tests/msgcat-6 --- gettext-0.17/gettext-tools/tests/msgcat-6 2007-03-11 02:39:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-6 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ ${MSGCAT} --more-than=0 -o mcat-test6.tmp \ mcat-test6.in1 mcat-test6.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test6.tmp > mcat-test6.out +LC_ALL=C tr -d '\r' < mcat-test6.tmp > mcat-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-7 gettext-0.18.1.1/gettext-tools/tests/msgcat-7 --- gettext-0.17/gettext-tools/tests/msgcat-7 2007-03-11 02:45:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-7 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ : ${MSGCAT=msgcat} ${MSGCAT} --sort-output -o mcat-test7.tmp mcat-test7.in1 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test7.tmp > mcat-test7.out +LC_ALL=C tr -d '\r' < mcat-test7.tmp > mcat-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-8 gettext-0.18.1.1/gettext-tools/tests/msgcat-8 --- gettext-0.17/gettext-tools/tests/msgcat-8 2007-03-11 02:42:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-8 2010-06-06 12:49:58.000000000 +0000 @@ -63,7 +63,7 @@ ${MSGCAT} --more-than=0 -o mcat-test8.tmp \ mcat-test8.in1 mcat-test8.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test8.tmp > mcat-test8.out +LC_ALL=C tr -d '\r' < mcat-test8.tmp > mcat-test8.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test8.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-9 gettext-0.18.1.1/gettext-tools/tests/msgcat-9 --- gettext-0.17/gettext-tools/tests/msgcat-9 2007-03-11 02:43:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-9 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ ${MSGCAT} --more-than=0 -o mcat-test9.tmp \ mcat-test9.in1 mcat-test9.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-test9.tmp > mcat-test9.out +LC_ALL=C tr -d '\r' < mcat-test9.tmp > mcat-test9.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-test9.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-properties-1 gettext-0.18.1.1/gettext-tools/tests/msgcat-properties-1 --- gettext-0.17/gettext-tools/tests/msgcat-properties-1 2007-03-11 03:10:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -25,7 +25,7 @@ ${MSGCAT} --use-first --more-than=0 --properties-input --properties-output \ -o mcat-p-1.tmp mcat-p-1.in1 mcat-p-1.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-p-1.tmp > mcat-p-1.out +LC_ALL=C tr -d '\r' < mcat-p-1.tmp > mcat-p-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-p-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcat-stringtable-1 gettext-0.18.1.1/gettext-tools/tests/msgcat-stringtable-1 --- gettext-0.17/gettext-tools/tests/msgcat-stringtable-1 2007-03-11 03:12:18.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcat-stringtable-1 2010-06-06 12:49:58.000000000 +0000 @@ -35,7 +35,7 @@ result=$? cat mcat-s-1.err | grep -v ': internationalized messages' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcat-s-1.tmp > mcat-s-1.out +LC_ALL=C tr -d '\r' < mcat-s-1.tmp > mcat-s-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcat-s-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcmp-2 gettext-0.18.1.1/gettext-tools/tests/msgcmp-2 --- gettext-0.17/gettext-tools/tests/msgcmp-2 2007-05-14 23:13:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcmp-2 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ tmpfiles="$tmpfiles mc-test2.out" : ${MSGCMP=msgcmp} LC_MESSAGES=C LC_ALL= \ -${MSGCMP} mc-test2.in1 mc-test2.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' | tr -d '\r' > mc-test2.out +${MSGCMP} mc-test2.in1 mc-test2.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' -e 's|^msgcmp\.exe|msgcmp|' | LC_ALL=C tr -d '\r' > mc-test2.out tmpfiles="$tmpfiles mc-test2.ok" cat < mc-test2.ok diff -Nru gettext-0.17/gettext-tools/tests/msgcmp-3 gettext-0.18.1.1/gettext-tools/tests/msgcmp-3 --- gettext-0.17/gettext-tools/tests/msgcmp-3 2007-05-14 23:13:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcmp-3 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ tmpfiles="$tmpfiles mc-test3.out" : ${MSGCMP=msgcmp} LC_MESSAGES=C LC_ALL= \ -${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' | tr -d '\r' > mc-test3.out +${MSGCMP} --properties-input mc-test3.in1 mc-test3.in2 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgcmp\.exe|msgcmp|' -e 's|^msgcmp\.exe|msgcmp|' | LC_ALL=C tr -d '\r' > mc-test3.out tmpfiles="$tmpfiles mc-test3.ok" cat < mc-test3.ok diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-1 gettext-0.18.1.1/gettext-tools/tests/msgcomm-1 --- gettext-0.17/gettext-tools/tests/msgcomm-1 2007-03-11 03:14:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-1 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 -o mcomm-test1.tmp mcomm-test1.in1 mcomm-test1.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test1.tmp > mcomm-test1.out +LC_ALL=C tr -d '\r' < mcomm-test1.tmp > mcomm-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-10 gettext-0.18.1.1/gettext-tools/tests/msgcomm-10 --- gettext-0.17/gettext-tools/tests/msgcomm-10 2007-03-11 03:26:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-10 2010-06-06 12:49:58.000000000 +0000 @@ -45,7 +45,7 @@ ${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test10.tmp \ mcomm-test10.in1 mcomm-test10.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test10.tmp > mcomm-test10.out +LC_ALL=C tr -d '\r' < mcomm-test10.tmp > mcomm-test10.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test10.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-11 gettext-0.18.1.1/gettext-tools/tests/msgcomm-11 --- gettext-0.17/gettext-tools/tests/msgcomm-11 2007-03-11 03:27:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-11 2010-06-06 12:49:58.000000000 +0000 @@ -49,7 +49,7 @@ ${MSGCOMM} --more-than=1 --no-location --omit-header -o mcomm-test11.tmp \ mcomm-test11.in1 mcomm-test11.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test11.tmp > mcomm-test11.out +LC_ALL=C tr -d '\r' < mcomm-test11.tmp > mcomm-test11.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test11.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-12 gettext-0.18.1.1/gettext-tools/tests/msgcomm-12 --- gettext-0.17/gettext-tools/tests/msgcomm-12 2007-03-11 03:28:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-12 2010-06-06 12:49:58.000000000 +0000 @@ -71,7 +71,7 @@ ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test12.tmp \ mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test12.tmp > mcomm-test12.out +LC_ALL=C tr -d '\r' < mcomm-test12.tmp > mcomm-test12.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test12.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-13 gettext-0.18.1.1/gettext-tools/tests/msgcomm-13 --- gettext-0.17/gettext-tools/tests/msgcomm-13 2007-03-11 03:29:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-13 2010-06-06 12:49:58.000000000 +0000 @@ -74,7 +74,7 @@ ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test13.tmp \ mcomm-test13.in1 mcomm-test13.in2 mcomm-test13.in3 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test13.tmp > mcomm-test13.out +LC_ALL=C tr -d '\r' < mcomm-test13.tmp > mcomm-test13.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test13.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-14 gettext-0.18.1.1/gettext-tools/tests/msgcomm-14 --- gettext-0.17/gettext-tools/tests/msgcomm-14 2007-03-11 03:29:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-14 2010-06-06 12:49:58.000000000 +0000 @@ -69,7 +69,7 @@ ${MSGCOMM} --less-than=2 --no-location --force-po -o mcomm-test14.tmp \ mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test14.tmp > mcomm-test14.out +LC_ALL=C tr -d '\r' < mcomm-test14.tmp > mcomm-test14.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test14.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-16 gettext-0.18.1.1/gettext-tools/tests/msgcomm-16 --- gettext-0.17/gettext-tools/tests/msgcomm-16 2007-03-11 03:30:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-16 2010-06-06 12:49:58.000000000 +0000 @@ -63,7 +63,7 @@ result=$? cat mcomm-test16.err | grep -v 'warning: .* encodings' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test16.tmp > mcomm-test16.out +LC_ALL=C tr -d '\r' < mcomm-test16.tmp > mcomm-test16.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test16.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-17 gettext-0.18.1.1/gettext-tools/tests/msgcomm-17 --- gettext-0.17/gettext-tools/tests/msgcomm-17 2007-03-11 03:31:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-17 2010-06-06 12:49:58.000000000 +0000 @@ -72,7 +72,7 @@ -o mcomm-test17.tmp \ mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test17.tmp > mcomm-test17.out +LC_ALL=C tr -d '\r' < mcomm-test17.tmp > mcomm-test17.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test17.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-18 gettext-0.18.1.1/gettext-tools/tests/msgcomm-18 --- gettext-0.17/gettext-tools/tests/msgcomm-18 2007-03-11 03:32:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-18 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 -o mcomm-test18.tmp mcomm-test18.in1 mcomm-test18.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test18.tmp > mcomm-test18.out +LC_ALL=C tr -d '\r' < mcomm-test18.tmp > mcomm-test18.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test18.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-19 gettext-0.18.1.1/gettext-tools/tests/msgcomm-19 --- gettext-0.17/gettext-tools/tests/msgcomm-19 2007-03-11 03:32:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-19 2010-06-06 12:49:58.000000000 +0000 @@ -26,7 +26,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 -o mcomm-test19.tmp mcomm-test19.in1 mcomm-test19.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test19.tmp > mcomm-test19.out +LC_ALL=C tr -d '\r' < mcomm-test19.tmp > mcomm-test19.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test19.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-2 gettext-0.18.1.1/gettext-tools/tests/msgcomm-2 --- gettext-0.17/gettext-tools/tests/msgcomm-2 2007-03-11 03:15:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-2 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${MSGCOMM} --more-than=0 --no-location -o mcomm-test2.tmp \ mcomm-test2.in1 mcomm-test2.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test2.tmp > mcomm-test2.out +LC_ALL=C tr -d '\r' < mcomm-test2.tmp > mcomm-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-20 gettext-0.18.1.1/gettext-tools/tests/msgcomm-20 --- gettext-0.17/gettext-tools/tests/msgcomm-20 2007-03-11 03:37:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-20 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ ${MSGCOMM} --more-than=0 -o mcomm-test20.tmp \ mcomm-test20.in1 mcomm-test20.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test20.tmp > mcomm-test20.out +LC_ALL=C tr -d '\r' < mcomm-test20.tmp > mcomm-test20.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test20.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-21 gettext-0.18.1.1/gettext-tools/tests/msgcomm-21 --- gettext-0.17/gettext-tools/tests/msgcomm-21 2007-03-11 03:38:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-21 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 -o mcomm-test21.tmp mcomm-test21.in1 mcomm-test21.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test21.tmp > mcomm-test21.out +LC_ALL=C tr -d '\r' < mcomm-test21.tmp > mcomm-test21.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test21.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-22 gettext-0.18.1.1/gettext-tools/tests/msgcomm-22 --- gettext-0.17/gettext-tools/tests/msgcomm-22 2007-03-11 03:39:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-22 2010-06-06 12:49:58.000000000 +0000 @@ -70,7 +70,7 @@ ${MSGCOMM} --less-than=2 -o mcomm-test22.tmp \ mcomm-test22.in1 mcomm-test22.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test22.tmp > mcomm-test22.out +LC_ALL=C tr -d '\r' < mcomm-test22.tmp > mcomm-test22.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test22.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-23 gettext-0.18.1.1/gettext-tools/tests/msgcomm-23 --- gettext-0.17/gettext-tools/tests/msgcomm-23 2007-05-13 19:38:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-23 2010-06-06 12:49:58.000000000 +0000 @@ -13,7 +13,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} -w 1000 -o mcomm-23.tmp mcomm-23.in1 mcomm-23.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-23.tmp > mcomm-23.out +LC_ALL=C tr -d '\r' < mcomm-23.tmp > mcomm-23.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-24 gettext-0.18.1.1/gettext-tools/tests/msgcomm-24 --- gettext-0.17/gettext-tools/tests/msgcomm-24 2007-03-11 03:40:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-24 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 --properties-input --properties-output -o mcomm-test24.tmp mcomm-test24.in1 mcomm-test24.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test24.tmp > mcomm-test24.out +LC_ALL=C tr -d '\r' < mcomm-test24.tmp > mcomm-test24.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test24.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-25 gettext-0.18.1.1/gettext-tools/tests/msgcomm-25 --- gettext-0.17/gettext-tools/tests/msgcomm-25 2007-03-11 03:41:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-25 2010-06-06 12:49:58.000000000 +0000 @@ -72,7 +72,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} --more-than=0 -o mcomm-test25.tmp mcomm-test25.in1 mcomm-test25.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test25.tmp > mcomm-test25.out +LC_ALL=C tr -d '\r' < mcomm-test25.tmp > mcomm-test25.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test25.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-26 gettext-0.18.1.1/gettext-tools/tests/msgcomm-26 --- gettext-0.17/gettext-tools/tests/msgcomm-26 2007-03-11 03:41:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-26 2010-06-06 12:49:58.000000000 +0000 @@ -75,7 +75,7 @@ : ${MSGCOMM=msgcomm} ${MSGCOMM} -o mcomm-test26.tmp mcomm-test26.in1 mcomm-test26.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test26.tmp > mcomm-test26.out +LC_ALL=C tr -d '\r' < mcomm-test26.tmp > mcomm-test26.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test26.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-27 gettext-0.18.1.1/gettext-tools/tests/msgcomm-27 --- gettext-0.17/gettext-tools/tests/msgcomm-27 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-27 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,99 @@ +#! /bin/sh + +# Test handling of format and 'range:' flag. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mcomm-test27.in1 mcomm-test27.in2" +cat < mcomm-test27.in1 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..6 +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..7 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..6 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +cat < mcomm-test27.in2 +#, c-format, range: 1..6 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..6 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +tmpfiles="$tmpfiles mcomm-test27.tmp mcomm-test27.out" +: ${MSGCOMM=msgcomm} +${MSGCOMM} -o mcomm-test27.tmp mcomm-test27.in1 mcomm-test27.in2 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mcomm-test27.tmp > mcomm-test27.out +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mcomm-test27.ok" +cat << EOF > mcomm-test27.ok +#, c-format +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..7 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +: ${DIFF=diff} +${DIFF} mcomm-test27.ok mcomm-test27.out +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-3 gettext-0.18.1.1/gettext-tools/tests/msgcomm-3 --- gettext-0.17/gettext-tools/tests/msgcomm-3 2007-03-11 03:15:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-3 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${MSGCOMM} --more-than=0 --omit-header -o mcomm-test3.tmp \ mcomm-test3.in1 mcomm-test3.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test3.tmp > mcomm-test3.out +LC_ALL=C tr -d '\r' < mcomm-test3.tmp > mcomm-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-4 gettext-0.18.1.1/gettext-tools/tests/msgcomm-4 --- gettext-0.17/gettext-tools/tests/msgcomm-4 2007-03-11 03:16:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-4 2010-06-06 12:49:58.000000000 +0000 @@ -34,7 +34,7 @@ ${MSGCOMM} --more-than=0 -o mcomm-test4.tmp \ mcomm-test4.in1 mcomm-test4.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test4.tmp > mcomm-test4.out +LC_ALL=C tr -d '\r' < mcomm-test4.tmp > mcomm-test4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-5 gettext-0.18.1.1/gettext-tools/tests/msgcomm-5 --- gettext-0.17/gettext-tools/tests/msgcomm-5 2007-03-11 03:17:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-5 2010-06-06 12:49:58.000000000 +0000 @@ -34,7 +34,7 @@ ${MSGCOMM} --more-than=0 --omit-header -o mcomm-test5.tmp \ mcomm-test5.in1 mcomm-test5.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test5.tmp > mcomm-test5.out +LC_ALL=C tr -d '\r' < mcomm-test5.tmp > mcomm-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-6 gettext-0.18.1.1/gettext-tools/tests/msgcomm-6 --- gettext-0.17/gettext-tools/tests/msgcomm-6 2007-03-11 03:18:37.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-6 2010-06-06 12:49:58.000000000 +0000 @@ -34,7 +34,7 @@ ${MSGCOMM} --more-than=0 --no-location -o mcomm-test6.tmp \ mcomm-test6.in1 mcomm-test6.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test6.tmp > mcomm-test6.out +LC_ALL=C tr -d '\r' < mcomm-test6.tmp > mcomm-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-7 gettext-0.18.1.1/gettext-tools/tests/msgcomm-7 --- gettext-0.17/gettext-tools/tests/msgcomm-7 2007-03-11 03:19:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-7 2010-06-06 12:49:58.000000000 +0000 @@ -34,7 +34,7 @@ ${MSGCOMM} --more-than=0 --no-location --omit-header -o mcomm-test7.tmp \ mcomm-test7.in1 mcomm-test7.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test7.tmp > mcomm-test7.out +LC_ALL=C tr -d '\r' < mcomm-test7.tmp > mcomm-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-8 gettext-0.18.1.1/gettext-tools/tests/msgcomm-8 --- gettext-0.17/gettext-tools/tests/msgcomm-8 2007-03-11 03:21:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-8 2010-06-06 12:49:58.000000000 +0000 @@ -45,7 +45,7 @@ ${MSGCOMM} --more-than=1 -o mcomm-test8.tmp \ mcomm-test8.in1 mcomm-test8.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test8.tmp > mcomm-test8.out +LC_ALL=C tr -d '\r' < mcomm-test8.tmp > mcomm-test8.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test8.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgcomm-9 gettext-0.18.1.1/gettext-tools/tests/msgcomm-9 --- gettext-0.17/gettext-tools/tests/msgcomm-9 2007-03-11 03:23:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgcomm-9 2010-06-06 12:49:58.000000000 +0000 @@ -45,7 +45,7 @@ ${MSGCOMM} --more-than=1 --no-location -o mcomm-test9.tmp \ mcomm-test9.in1 mcomm-test9.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mcomm-test9.tmp > mcomm-test9.out +LC_ALL=C tr -d '\r' < mcomm-test9.tmp > mcomm-test9.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mcomm-test9.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgconv-5 gettext-0.18.1.1/gettext-tools/tests/msgconv-5 --- gettext-0.17/gettext-tools/tests/msgconv-5 2007-03-11 03:42:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgconv-5 2010-06-06 12:49:58.000000000 +0000 @@ -55,7 +55,7 @@ : ${MSGCONV=msgconv} ${MSGCONV} --to-code=UTF-8 -o mco-test5.tmp mco-test5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mco-test5.tmp > mco-test5.out +LC_ALL=C tr -d '\r' < mco-test5.tmp > mco-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mco-test5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgconv-6 gettext-0.18.1.1/gettext-tools/tests/msgconv-6 --- gettext-0.17/gettext-tools/tests/msgconv-6 2007-03-11 03:43:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgconv-6 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ : ${MSGCONV=msgconv} ${MSGCONV} --to-code=ISO-8859-1 -o mco-test6.tmp mco-test6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mco-test6.tmp > mco-test6.out +LC_ALL=C tr -d '\r' < mco-test6.tmp > mco-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mco-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgen-1 gettext-0.18.1.1/gettext-tools/tests/msgen-1 --- gettext-0.17/gettext-tools/tests/msgen-1 2007-03-11 03:47:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgen-1 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${MSGEN=msgen} ${MSGEN} -o men-test1.tmp men-test1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < men-test1.tmp > men-test1.out +LC_ALL=C tr -d '\r' < men-test1.tmp > men-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles men-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgen-2 gettext-0.18.1.1/gettext-tools/tests/msgen-2 --- gettext-0.17/gettext-tools/tests/msgen-2 2007-03-11 03:48:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgen-2 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ : ${MSGEN=msgen} ${MSGEN} --properties-input --properties-output -o men-test2.tmp men-test2.properties test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < men-test2.tmp > men-test2.out +LC_ALL=C tr -d '\r' < men-test2.tmp > men-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles men-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgen-3 gettext-0.18.1.1/gettext-tools/tests/msgen-3 --- gettext-0.17/gettext-tools/tests/msgen-3 2007-03-11 03:49:05.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgen-3 2010-06-06 12:49:58.000000000 +0000 @@ -47,7 +47,7 @@ : ${MSGEN=msgen} ${MSGEN} -o men-test3.tmp men-test3.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < men-test3.tmp > men-test3.out +LC_ALL=C tr -d '\r' < men-test3.tmp > men-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles men-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgexec-1 gettext-0.18.1.1/gettext-tools/tests/msgexec-1 --- gettext-0.17/gettext-tools/tests/msgexec-1 2003-02-14 15:38:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgexec-1 2010-06-06 12:49:58.000000000 +0000 @@ -60,21 +60,24 @@ tmpfiles="$tmpfiles mex-test1.sh" cat <<\EOF > mex-test1.sh #! /bin/sh -echo "========================= $MSGEXEC_LOCATION =========================" +echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r' cat < mex-test1.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C \ +${MSGEXEC} -i mex-test1.po ./mex-test1.sh > mex-test1.out 2> mex-test1.err +result=$? +cat mex-test1.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mex-test1.ok" cat <<\EOF > mex-test1.ok diff -Nru gettext-0.17/gettext-tools/tests/msgexec-2 gettext-0.18.1.1/gettext-tools/tests/msgexec-2 --- gettext-0.17/gettext-tools/tests/msgexec-2 2003-02-14 15:38:19.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgexec-2 2010-06-06 12:49:58.000000000 +0000 @@ -5,6 +5,18 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 +# Find a 'tr' program that supports NUL bytes in the input. +# Solaris /usr/bin/tr does not. +if test -f /usr/xpg6/bin/tr; then + TR=/usr/xpg6/bin/tr +else + if test -f /usr/xpg4/bin/tr; then + TR=/usr/xpg4/bin/tr + else + TR=tr + fi +fi + tmpfiles="$tmpfiles mex-test2.po" cat <<\EOF > mex-test2.po # HEADER. @@ -57,9 +69,14 @@ #~ msgstr "das einen verheirateten Mann liebt" EOF -tmpfiles="$tmpfiles mex-test2.out" +tmpfiles="$tmpfiles mex-test2.tmp mex-test2.out mex-test2.err" : ${MSGEXEC=msgexec} -${MSGEXEC} -i mex-test2.po 0 > mex-test2.out +LC_ALL=C \ +${MSGEXEC} -i mex-test2.po 0 > mex-test2.tmp 2> mex-test2.err +result=$? +cat mex-test2.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C $TR -d '\r' < mex-test2.tmp > mex-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${CMP=cmp} diff -Nru gettext-0.17/gettext-tools/tests/msgexec-3 gettext-0.18.1.1/gettext-tools/tests/msgexec-3 --- gettext-0.17/gettext-tools/tests/msgexec-3 2003-04-29 10:12:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgexec-3 2010-06-06 12:49:58.000000000 +0000 @@ -35,13 +35,13 @@ tmpfiles="$tmpfiles mex-test3.sh" cat <<\EOF > mex-test3.sh #! /bin/sh -echo "========================= $MSGEXEC_LOCATION =========================" +echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r' cat <. + tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 @@ -54,24 +67,27 @@ tmpfiles="$tmpfiles mex-test4.sh" cat <<\EOF > mex-test4.sh #! /bin/sh -echo "========================= $MSGEXEC_LOCATION =========================" +echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r' if test -n "${MSGEXEC_MSGCTXT+set}"; then - echo "context: $MSGEXEC_MSGCTXT" + echo "context: $MSGEXEC_MSGCTXT" | LC_ALL=C tr -d '\r' fi cat < mex-test4.out -test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C \ +${MSGEXEC} -i mex-test4.po ./mex-test4.sh > mex-test4.out 2> mex-test4.err +result=$? +cat mex-test4.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mex-test4.ok" cat <<\EOF > mex-test4.ok diff -Nru gettext-0.17/gettext-tools/tests/msgfilter-1 gettext-0.18.1.1/gettext-tools/tests/msgfilter-1 --- gettext-0.17/gettext-tools/tests/msgfilter-1 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfilter-1 2010-06-06 12:49:58.000000000 +0000 @@ -24,6 +24,12 @@ rm -fr $tmpfiles; exit 77 } +# Some fold programs (like NetBSD 5.0) remove trailing spaces when wrapping. +echo ab cd | fold -b -s -w 3 | grep ' ' >/dev/null || { + echo "Skipping test: fold program trims trailing spaces" + rm -fr $tmpfiles; exit 77 +} + # Some fold programs (like HP-UX) insert a newline at the end, if the last # line was not terminated with a newline and the -s option was given. foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c` diff -Nru gettext-0.17/gettext-tools/tests/msgfilter-3 gettext-0.18.1.1/gettext-tools/tests/msgfilter-3 --- gettext-0.17/gettext-tools/tests/msgfilter-3 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfilter-3 2010-06-06 12:49:58.000000000 +0000 @@ -24,6 +24,12 @@ rm -fr $tmpfiles; exit 77 } +# Some fold programs (like NetBSD 5.0) remove trailing spaces when wrapping. +echo ab cd | fold -b -s -w 3 | grep ' ' >/dev/null || { + echo "Skipping test: fold program trims trailing spaces" + rm -fr $tmpfiles; exit 77 +} + # Some fold programs (like HP-UX) insert a newline at the end, if the last # line was not terminated with a newline and the -s option was given. foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c` diff -Nru gettext-0.17/gettext-tools/tests/msgfilter-sr-latin-1 gettext-0.18.1.1/gettext-tools/tests/msgfilter-sr-latin-1 --- gettext-0.17/gettext-tools/tests/msgfilter-sr-latin-1 2007-03-11 03:50:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfilter-sr-latin-1 2010-06-06 12:49:58.000000000 +0000 @@ -312,7 +312,7 @@ : ${MSGFILTER=msgfilter} ${MSGFILTER} -i mfi-srl-1.po -o mfi-srl-1.tmp recode-sr-latin test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mfi-srl-1.tmp > mfi-srl-1.out +LC_ALL=C tr -d '\r' < mfi-srl-1.tmp > mfi-srl-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mfi-srl-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-1 gettext-0.18.1.1/gettext-tools/tests/msgfmt-1 --- gettext-0.17/gettext-tools/tests/msgfmt-1 2007-03-11 03:51:54.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-1 2010-06-06 12:49:58.000000000 +0000 @@ -63,7 +63,7 @@ : ${GETTEXT=gettext} TEXTDOMAINDIR=.. LANGUAGE=tests \ ${GETTEXT} --env LC_ALL=en gen 'SYS_(C) -' | tr -d '\r' > mf-test1.out +' | LC_ALL=C tr -d '\r' > mf-test1.out tmpfiles="$tmpfiles gtmf-test1.ok" cat < gtmf-test1.ok diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-10 gettext-0.18.1.1/gettext-tools/tests/msgfmt-10 --- gettext-0.17/gettext-tools/tests/msgfmt-10 2007-05-14 23:13:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-10 2010-06-06 12:49:58.000000000 +0000 @@ -70,11 +70,11 @@ : ${MSGFMT=msgfmt} LC_MESSAGES=C LC_ALL= \ ${MSGFMT} --check -o /dev/null mf-test10.po2 \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' | tr -d '\r' > mf-test10.err + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test10.err tmpfiles="$tmpfiles mf-test10.ok" cat << EOF > mf-test10.ok -mf-test10.po2:20: number of format specifications in 'msgid' and 'msgstr[1]' does not match +mf-test10.po2:20: number of format specifications in 'msgid_plural' and 'msgstr[1]' does not match msgfmt: found 1 fatal error EOF diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-12 gettext-0.18.1.1/gettext-tools/tests/msgfmt-12 --- gettext-0.17/gettext-tools/tests/msgfmt-12 2007-03-11 03:56:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-12 2010-06-06 12:49:58.000000000 +0000 @@ -31,7 +31,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mf-12.tmp mf-12.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mf-12.tmp > mf-12.out +LC_ALL=C tr -d '\r' < mf-12.tmp > mf-12.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mf-12.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-14 gettext-0.18.1.1/gettext-tools/tests/msgfmt-14 --- gettext-0.17/gettext-tools/tests/msgfmt-14 2007-03-11 03:56:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-14 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mf-14.tmp mf-14.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mf-14.tmp > mf-14.out +LC_ALL=C tr -d '\r' < mf-14.tmp > mf-14.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mf-14.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-16 gettext-0.18.1.1/gettext-tools/tests/msgfmt-16 --- gettext-0.17/gettext-tools/tests/msgfmt-16 2007-03-11 03:57:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-16 2010-06-06 12:49:58.000000000 +0000 @@ -53,7 +53,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mf-16.tmp mf-16.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mf-16.tmp > mf-16.out +LC_ALL=C tr -d '\r' < mf-16.tmp > mf-16.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mf-16.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-17 gettext-0.18.1.1/gettext-tools/tests/msgfmt-17 --- gettext-0.17/gettext-tools/tests/msgfmt-17 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-17 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,136 @@ +#! /bin/sh + +# Test range dependent checking of format strings with plural forms. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +# Take as example a plural formula which takes all values infinitely often. +# Test: 1 - lack %d for value 0 - error +# 2 - lack %d for value 0 but limited range such that only one n - ok +# 3 - lack %d for value 1 - error +# 4 - lack %d for value 1 but limited range such that multiple n - error + +tmpfiles="$tmpfiles mf-15.po1" +cat <<\EOF > mf-15.po1 +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU bison\n" +"PO-Revision-Date: 2001-04-05 19:47+0200\n" +"Last-Translator: ABC DEF \n" +"Language-Team: test \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: ../roundup/date.py:851 +#, python-format +msgid "1 %(number)s/4 hours" +msgid_plural "1 %(number)s/4 hours" +msgstr[0] "час с четвертью" +msgstr[1] "час и %(number)s четверти" +msgstr[2] "час и %(number)s четвертей" +EOF + +: ${MSGFMT=msgfmt} +${MSGFMT} --check -o /dev/null mf-15.po1 2>/dev/null +test $? = 1 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mf-15.po2" +cat <<\EOF > mf-15.po2 +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU bison\n" +"PO-Revision-Date: 2001-04-05 19:47+0200\n" +"Last-Translator: ABC DEF \n" +"Language-Team: test \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: ../roundup/date.py:851 +#, python-format, range: 1..3 +msgid "1 %(number)s/4 hours" +msgid_plural "1 %(number)s/4 hours" +msgstr[0] "час с четвертью" +msgstr[1] "час и %(number)s четверти" +msgstr[2] "час и %(number)s четвертей" +EOF + +: ${MSGFMT=msgfmt} +${MSGFMT} --check -o /dev/null mf-15.po2 +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mf-15.po3" +cat <<\EOF > mf-15.po3 +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU bison\n" +"PO-Revision-Date: 2001-04-05 19:47+0200\n" +"Last-Translator: ABC DEF \n" +"Language-Team: test \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: ../roundup/date.py:851 +#, python-format +msgid "1 %(number)s/4 hours" +msgid_plural "1 %(number)s/4 hours" +msgstr[0] "час и %(number)s четверти" +msgstr[1] "час с четвертью" +msgstr[2] "час и %(number)s четвертей" +EOF + +: ${MSGFMT=msgfmt} +${MSGFMT} --check -o /dev/null mf-15.po3 2>/dev/null +test $? = 1 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mf-15.po4" +cat <<\EOF > mf-15.po4 +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: GNU bison\n" +"PO-Revision-Date: 2001-04-05 19:47+0200\n" +"Last-Translator: ABC DEF \n" +"Language-Team: test \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#: ../roundup/date.py:851 +#, python-format, range: 1..3 +msgid "1 %(number)s/4 hours" +msgid_plural "1 %(number)s/4 hours" +msgstr[0] "час и %(number)s четверти" +msgstr[1] "час с четвертью" +msgstr[2] "час и %(number)s четвертей" +EOF + +: ${MSGFMT=msgfmt} +${MSGFMT} --check -o /dev/null mf-15.po4 2>/dev/null +test $? = 1 || { rm -fr $tmpfiles; exit 1; } + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-5 gettext-0.18.1.1/gettext-tools/tests/msgfmt-5 --- gettext-0.17/gettext-tools/tests/msgfmt-5 2007-03-11 03:53:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-5 2010-06-06 12:49:58.000000000 +0000 @@ -41,11 +41,11 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o foo-de.tmp foo-de.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < foo-de.tmp > foo-de.out +LC_ALL=C tr -d '\r' < foo-de.tmp > foo-de.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } ${MSGUNFMT} -o foo-fr.tmp foo-fr.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < foo-fr.tmp > foo-fr.out +LC_ALL=C tr -d '\r' < foo-fr.tmp > foo-fr.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles foo-de.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-7 gettext-0.18.1.1/gettext-tools/tests/msgfmt-7 --- gettext-0.17/gettext-tools/tests/msgfmt-7 2007-05-14 23:13:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-7 2010-06-06 12:49:58.000000000 +0000 @@ -30,7 +30,7 @@ : ${MSGFMT=msgfmt} LC_MESSAGES=C LC_ALL= \ ${MSGFMT} --verbose --check mf-test7.in1 -o /dev/null \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' | tr -d '\r' > mf-test7.err + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test7.err tmpfiles="$tmpfiles mf-test7.ok" cat << EOF > mf-test7.ok diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-8 gettext-0.18.1.1/gettext-tools/tests/msgfmt-8 --- gettext-0.17/gettext-tools/tests/msgfmt-8 2007-05-14 23:13:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-8 2010-06-06 12:49:58.000000000 +0000 @@ -30,7 +30,7 @@ : ${MSGFMT=msgfmt} LC_MESSAGES=C LC_ALL= \ ${MSGFMT} --verbose --check mf-test8.in1 -o /dev/null \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' | tr -d '\r' > mf-test8.err + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test8.err tmpfiles="$tmpfiles mf-test8.ok" cat << EOF > mf-test8.ok diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-9 gettext-0.18.1.1/gettext-tools/tests/msgfmt-9 --- gettext-0.17/gettext-tools/tests/msgfmt-9 2007-05-14 23:13:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-9 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${MSGFMT=msgfmt} LC_MESSAGES=C LC_ALL= \ ${MSGFMT} --verbose --check mf-test9.in1 -o /dev/null \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' | tr -d '\r' > mf-test9.err + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgfmt\.exe|msgfmt|' -e 's|^msgfmt\.exe|msgfmt|' | LC_ALL=C tr -d '\r' > mf-test9.err tmpfiles="$tmpfiles mf-test9.ok" cat << EOF > mf-test9.ok diff -Nru gettext-0.17/gettext-tools/tests/msgfmt-properties-1 gettext-0.18.1.1/gettext-tools/tests/msgfmt-properties-1 --- gettext-0.17/gettext-tools/tests/msgfmt-properties-1 2007-03-11 03:58:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgfmt-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -43,7 +43,7 @@ : ${GETTEXT=gettext} TEXTDOMAINDIR=.. LANGUAGE=tests \ ${GETTEXT} --env LC_ALL=en gen 'SYS_(C) -' | tr -d '\r' > mf-test1.out +' | LC_ALL=C tr -d '\r' > mf-test1.out tmpfiles="$tmpfiles gtmf-test1.ok" cat < gtmf-test1.ok diff -Nru gettext-0.17/gettext-tools/tests/msggrep-1 gettext-0.18.1.1/gettext-tools/tests/msggrep-1 --- gettext-0.17/gettext-tools/tests/msggrep-1 2007-03-11 04:00:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-1 2010-06-06 12:49:58.000000000 +0000 @@ -159,7 +159,7 @@ : ${MSGGREP=msggrep} ${MSGGREP} -N pipe-bidi.c -o mg-test1.tmp mg-test1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test1.tmp > mg-test1.out +LC_ALL=C tr -d '\r' < mg-test1.tmp > mg-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-10 gettext-0.18.1.1/gettext-tools/tests/msggrep-10 --- gettext-0.17/gettext-tools/tests/msggrep-10 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-10 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,16 @@ +#! /bin/sh + +# Verify that $ as end-of-line anchor does not cause a crash. +# +# + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +: ${MSGGREP=msggrep} +echo a=b | LC_MESSAGES=C LC_ALL= ${MSGGREP} -P -K -e '^a$' > /dev/null +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msggrep-2 gettext-0.18.1.1/gettext-tools/tests/msggrep-2 --- gettext-0.17/gettext-tools/tests/msggrep-2 2007-03-11 04:00:55.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-2 2010-06-06 12:49:58.000000000 +0000 @@ -156,7 +156,7 @@ : ${MSGGREP=msggrep} ${MSGGREP} -M fr -o mg-test2.tmp mg-test2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test2.tmp > mg-test2.out +LC_ALL=C tr -d '\r' < mg-test2.tmp > mg-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-3 gettext-0.18.1.1/gettext-tools/tests/msggrep-3 --- gettext-0.17/gettext-tools/tests/msggrep-3 2007-03-11 04:02:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-3 2010-06-06 12:49:58.000000000 +0000 @@ -166,7 +166,7 @@ result=$? cat mg-test3.err | grep -v 'warning: Locale charset' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test3.tmp > mg-test3.out +LC_ALL=C tr -d '\r' < mg-test3.tmp > mg-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-4 gettext-0.18.1.1/gettext-tools/tests/msggrep-4 --- gettext-0.17/gettext-tools/tests/msggrep-4 2007-03-11 04:03:25.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-4 2010-06-06 12:49:58.000000000 +0000 @@ -168,7 +168,7 @@ result=$? cat mg-test4.err | grep -v 'warning: Locale charset' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test4.tmp > mg-test4.out +LC_ALL=C tr -d '\r' < mg-test4.tmp > mg-test4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-5 gettext-0.18.1.1/gettext-tools/tests/msggrep-5 --- gettext-0.17/gettext-tools/tests/msggrep-5 2007-03-11 04:04:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-5 2010-06-06 12:49:58.000000000 +0000 @@ -174,7 +174,7 @@ result=$? cat mg-test5.err | grep -v 'warning: Locale charset' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test5.tmp > mg-test5.out +LC_ALL=C tr -d '\r' < mg-test5.tmp > mg-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-6 gettext-0.18.1.1/gettext-tools/tests/msggrep-6 --- gettext-0.17/gettext-tools/tests/msggrep-6 2007-03-11 04:04:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-6 2010-06-06 12:49:58.000000000 +0000 @@ -120,7 +120,7 @@ ${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.tmp mg-test6.properties result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test6.tmp > mg-test6.out +LC_ALL=C tr -d '\r' < mg-test6.tmp > mg-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-7 gettext-0.18.1.1/gettext-tools/tests/msggrep-7 --- gettext-0.17/gettext-tools/tests/msggrep-7 2007-03-11 04:05:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-7 2010-06-06 12:49:58.000000000 +0000 @@ -51,12 +51,14 @@ #~ msgstr "Enregistrer sous" EOF -tmpfiles="$tmpfiles mg-test7.tmp mg-test7.out" +tmpfiles="$tmpfiles mg-test7.tmp mg-test7.out mg-test7.err" : ${MSGGREP=msggrep} LC_MESSAGES=C LC_ALL= \ -${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po -test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test7.tmp > mg-test7.out +${MSGGREP} -J -e "File|" -o mg-test7.tmp mg-test7.po 2> mg-test7.err +result=$? +cat mg-test7.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mg-test7.tmp > mg-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-8 gettext-0.18.1.1/gettext-tools/tests/msggrep-8 --- gettext-0.17/gettext-tools/tests/msggrep-8 2007-03-11 04:06:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-8 2010-06-06 12:49:58.000000000 +0000 @@ -42,7 +42,7 @@ result=$? cat mg-test8.err | grep -v 'warning: Locale charset' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mg-test8.tmp > mg-test8.out +LC_ALL=C tr -d '\r' < mg-test8.tmp > mg-test8.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mg-test8.ok" diff -Nru gettext-0.17/gettext-tools/tests/msggrep-9 gettext-0.18.1.1/gettext-tools/tests/msggrep-9 --- gettext-0.17/gettext-tools/tests/msggrep-9 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msggrep-9 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,230 @@ +#! /bin/sh + +# Test interpretation of $ as end-of-line anchor. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mg-test9.po" +cat <<\EOF > mg-test9.po +# German translations for GNU gettext package. +# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +msgid "" +msgstr "" +"Project-Id-Version: GNU gettext 0.11-pre1\n" +"POT-Creation-Date: 2001-12-08 20:33+0100\n" +"PO-Revision-Date: 2001-11-04 12:25+0100\n" +"Last-Translator: Karl Eichwalder \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: argmatch.c:141 +msgid "invalid argument" +msgstr "ungltiges Argument" + +#: argmatch.c:142 +msgid "ambiguous argument" +msgstr "mehrdeutiges Argument" + +#: argmatch.c:162 +msgid "Valid arguments are:" +msgstr "Gltige Argumente sind:" + +#: copy-file.c:60 +#, c-format +msgid "error while opening \"%s\" for reading" +msgstr "ffnen der Datei %s zum Lesen fehlgeschlagen" + +#: copy-file.c:67 +#, c-format +msgid "cannot open backup file \"%s\" for writing" +msgstr "ffnen der Sicherungsdatei %s zum Schreiben fehlgeschlagen" + +#: copy-file.c:80 +#, c-format +msgid "error reading \"%s\"" +msgstr "Fehler beim Lesen von %s" + +#: copy-file.c:86 copy-file.c:90 +#, c-format +msgid "error writing \"%s\"" +msgstr "Fehler beim Schreiben von %s" + +#: copy-file.c:92 +#, c-format +msgid "error after reading \"%s\"" +msgstr "Fehler nach dem Lesen von %s" + +#: error.c:115 +msgid "Unknown system error" +msgstr "Unbekannter Systemfehler" + +#: execute.c:170 execute.c:205 pipe-bidi.c:156 pipe-bidi.c:191 pipe-in.c:169 +#: pipe-in.c:205 pipe-out.c:169 pipe-out.c:205 wait-process.c:136 +#, c-format +msgid "%s subprocess failed" +msgstr "Subprozess %s fehlgeschlagen" + +#: getopt.c:691 +#, c-format +msgid "%s: option `%s' is ambiguous\n" +msgstr "%s: Option %s ist mehrdeutig\n" + +#: getopt.c:716 +#, c-format +msgid "%s: option `--%s' doesn't allow an argument\n" +msgstr "%s: Option --%s erwartet kein Argument\n" + +#: getopt.c:721 +#, c-format +msgid "%s: option `%c%s' doesn't allow an argument\n" +msgstr "%s: Option %c%s erwartet kein Argument\n" + +#: getopt.c:739 getopt.c:912 +#, c-format +msgid "%s: option `%s' requires an argument\n" +msgstr "%s: Option %s erwartet ein Argument\n" + +#: getopt.c:768 +#, c-format +msgid "%s: unrecognized option `--%s'\n" +msgstr "%s: unbekannte Option --%s\n" + +#: getopt.c:772 +#, c-format +msgid "%s: unrecognized option `%c%s'\n" +msgstr "%s: unbekannte Option %c%s\n" + +#: getopt.c:798 +#, c-format +msgid "%s: illegal option -- %c\n" +msgstr "%s: unzulssige Option -- %c\n" + +#: getopt.c:801 +#, c-format +msgid "%s: invalid option -- %c\n" +msgstr "%s: ungltige Option -- %c\n" + +#: getopt.c:831 getopt.c:961 +#, c-format +msgid "" +"%s: option requires an argument\n" +"--> %c\n" +msgstr "" +"%s: Option erwartet ein Argument\n" +"--> %c\n" + +#: getopt.c:878 +#, c-format +msgid "%s: option `-W %s' is ambiguous\n" +msgstr "%s: Option -W %s ist mehrdeutig\n" + +#: getopt.c:896 +#, c-format +msgid "%s: option `-W %s' doesn't allow an argument\n" +msgstr "%s: Option -W %s erwartet kein Argument\n" + +#: javacomp.c:465 +msgid "Java compiler not found, try installing gcj or set $JAVAC" +msgstr "" +"Java-Compiler nicht gefunden; bitte gcj installieren oder $JAVAC setzen" + +#: javaexec.c:404 +msgid "Java virtual machine not found, try installing gij or set $JAVA" +msgstr "" +"Virtuelle Java-Maschine nicht gefunden; bitte gcj installieren oder\n" +"$JAVA setzen" + +#: obstack.c:474 xerror.c:75 xmalloc.c:56 +msgid "memory exhausted" +msgstr "virtueller Speicher erschpft" + +#: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136 +msgid "cannot create pipe" +msgstr "Es ist nicht mglich, eine Pipe zu erzeugen" + +#: wait-process.c:117 +#, c-format +msgid "%s subprocess" +msgstr "Subprozess %s" + +#: wait-process.c:129 +#, c-format +msgid "%s subprocess got fatal signal" +msgstr "Subprozess %s hat ein fatales Signal erhalten" +EOF + +tmpfiles="$tmpfiles mg-test9.tmp mg-test9.err mg-test9.out" +: ${MSGGREP=msggrep} +LC_MESSAGES=C LC_ALL= \ +${MSGGREP} -K -e 'argument$' -o mg-test9.tmp mg-test9.po > mg-test9.err 2>&1 +result=$? +cat mg-test9.err | grep -v 'warning: Locale charset' | grep -v '^ ' +test $result = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mg-test9.tmp > mg-test9.out +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mg-test9.ok" +cat <<\EOF > mg-test9.ok +# German translations for GNU gettext package. +# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +msgid "" +msgstr "" +"Project-Id-Version: GNU gettext 0.11-pre1\n" +"POT-Creation-Date: 2001-12-08 20:33+0100\n" +"PO-Revision-Date: 2001-11-04 12:25+0100\n" +"Last-Translator: Karl Eichwalder \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: argmatch.c:141 +msgid "invalid argument" +msgstr "ungltiges Argument" + +#: argmatch.c:142 +msgid "ambiguous argument" +msgstr "mehrdeutiges Argument" + +#: getopt.c:716 +#, c-format +msgid "%s: option `--%s' doesn't allow an argument\n" +msgstr "%s: Option --%s erwartet kein Argument\n" + +#: getopt.c:721 +#, c-format +msgid "%s: option `%c%s' doesn't allow an argument\n" +msgstr "%s: Option %c%s erwartet kein Argument\n" + +#: getopt.c:739 getopt.c:912 +#, c-format +msgid "%s: option `%s' requires an argument\n" +msgstr "%s: Option %s erwartet ein Argument\n" + +#: getopt.c:831 getopt.c:961 +#, c-format +msgid "" +"%s: option requires an argument\n" +"--> %c\n" +msgstr "" +"%s: Option erwartet ein Argument\n" +"--> %c\n" + +#: getopt.c:896 +#, c-format +msgid "%s: option `-W %s' doesn't allow an argument\n" +msgstr "%s: Option -W %s erwartet kein Argument\n" +EOF + +: ${DIFF=diff} +${DIFF} mg-test9.ok mg-test9.out +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msginit-1 gettext-0.18.1.1/gettext-tools/tests/msginit-1 --- gettext-0.17/gettext-tools/tests/msginit-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msginit-1 2010-06-06 12:49:58.000000000 +0000 @@ -20,6 +20,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" @@ -43,11 +44,19 @@ : ${MSGINIT=msginit} ${MSGINIT} -i mi-test1.pot -l ga_IE --no-translator -o mi-test1.tmp 2>mi-test1.err test $? = 0 || { cat mi-test1.err 1>&2; rm -fr $tmpfiles; exit 1; } -sed -e '1,15d' < mi-test1.tmp | tr -d '\r' > mi-test1.out +# The charset stored in the header entry is the locale encoding of the gl_IE +# locale, which is system dependent, or ASCII if the locale does not exist. +sed -e '1,10d' -e 's/\(ISO-8859-1\|CP1252\|UTF-8\)/ASCII/g' < mi-test1.tmp | LC_ALL=C tr -d '\r' > mi-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mi-test1.ok" cat <<\EOF > mi-test1.ok +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ga\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n" #, c-format diff -Nru gettext-0.17/gettext-tools/tests/msginit-2 gettext-0.18.1.1/gettext-tools/tests/msginit-2 --- gettext-0.17/gettext-tools/tests/msginit-2 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msginit-2 2010-06-06 12:49:58.000000000 +0000 @@ -20,6 +20,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -67,11 +68,17 @@ : ${MSGINIT=msginit} ${MSGINIT} -i mi-test2.pot -l ga_IE --no-translator -o mi-test2.tmp 2>mi-test2.err test $? = 0 || { cat mi-test2.err 1>&2; rm -fr $tmpfiles; exit 1; } -sed -e '1,15d' < mi-test2.tmp | tr -d '\r' > mi-test2.out +sed -e '1,10d' < mi-test2.tmp | LC_ALL=C tr -d '\r' > mi-test2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mi-test2.ok" cat <<\EOF > mi-test2.ok +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ga\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;\n" #. A menu item diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-1 gettext-0.18.1.1/gettext-tools/tests/msgmerge-1 --- gettext-0.17/gettext-tools/tests/msgmerge-1 2007-03-11 04:08:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-1 2010-06-06 12:49:58.000000000 +0000 @@ -42,7 +42,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test1.tmp mm-test1.in1 mm-test1.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test1.tmp > mm-test1.out +LC_ALL=C tr -d '\r' < mm-test1.tmp > mm-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-10 gettext-0.18.1.1/gettext-tools/tests/msgmerge-10 --- gettext-0.17/gettext-tools/tests/msgmerge-10 2007-05-13 17:26:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-10 2010-06-06 12:49:58.000000000 +0000 @@ -58,7 +58,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test10.tmp mm-test10.po mm-test10.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test10.tmp > mm-test10.out +LC_ALL=C tr -d '\r' < mm-test10.tmp > mm-test10.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test10.ok" @@ -74,6 +74,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-11 gettext-0.18.1.1/gettext-tools/tests/msgmerge-11 --- gettext-0.17/gettext-tools/tests/msgmerge-11 2007-05-13 17:26:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-11 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test11.tmp mm-test11.po mm-test11.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test11.tmp > mm-test11.out +LC_ALL=C tr -d '\r' < mm-test11.tmp > mm-test11.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test11.ok" @@ -76,6 +76,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-12 gettext-0.18.1.1/gettext-tools/tests/msgmerge-12 --- gettext-0.17/gettext-tools/tests/msgmerge-12 2007-05-13 17:27:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-12 2010-06-06 12:49:58.000000000 +0000 @@ -58,7 +58,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test12.tmp mm-test12.po mm-test12.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test12.tmp > mm-test12.out +LC_ALL=C tr -d '\r' < mm-test12.tmp > mm-test12.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test12.ok" @@ -74,6 +74,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-13 gettext-0.18.1.1/gettext-tools/tests/msgmerge-13 --- gettext-0.17/gettext-tools/tests/msgmerge-13 2007-05-13 17:28:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-13 2010-06-06 12:49:58.000000000 +0000 @@ -91,7 +91,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test13.tmp mm-test13.po mm-test13.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test13.tmp > mm-test13.out +LC_ALL=C tr -d '\r' < mm-test13.tmp > mm-test13.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test13.ok" @@ -107,6 +107,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-14 gettext-0.18.1.1/gettext-tools/tests/msgmerge-14 --- gettext-0.17/gettext-tools/tests/msgmerge-14 2007-05-13 17:28:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-14 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test14.tmp mm-test14-ru.po mm-test14.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test14.tmp > mm-test14.out +LC_ALL=C tr -d '\r' < mm-test14.tmp > mm-test14.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test14.ok" @@ -79,6 +79,7 @@ "PO-Revision-Date: 2002-11-01 01:23+0100\n" "Last-Translator: Arseny Slobodjuck \n" "Language-Team: Russian \n" +"Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-15 gettext-0.18.1.1/gettext-tools/tests/msgmerge-15 --- gettext-0.17/gettext-tools/tests/msgmerge-15 2007-05-13 17:29:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-15 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test15.tmp mm-test15.pot mm-test15.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test15.tmp > mm-test15.out +LC_ALL=C tr -d '\r' < mm-test15.tmp > mm-test15.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test15.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-16 gettext-0.18.1.1/gettext-tools/tests/msgmerge-16 --- gettext-0.17/gettext-tools/tests/msgmerge-16 2007-05-13 17:30:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-16 2010-06-06 12:49:58.000000000 +0000 @@ -64,7 +64,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test16.tmp.po mm-test16.po mm-test16.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test16.tmp.po > mm-test16.new.po +LC_ALL=C tr -d '\r' < mm-test16.tmp.po > mm-test16.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test16.ok" @@ -77,6 +77,7 @@ "PO-Revision-Date: 2003-10-20 10:13+0200\n" "Last-Translator: Bruno Haible \n" "Language-Team: Polish \n" +"Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-17 gettext-0.18.1.1/gettext-tools/tests/msgmerge-17 --- gettext-0.17/gettext-tools/tests/msgmerge-17 2007-05-13 17:31:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-17 2010-06-06 12:49:58.000000000 +0000 @@ -58,7 +58,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test17.tmp.po mm-test17.po mm-test17.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test17.tmp.po > mm-test17.new.po +LC_ALL=C tr -d '\r' < mm-test17.tmp.po > mm-test17.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test17.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-18 gettext-0.18.1.1/gettext-tools/tests/msgmerge-18 --- gettext-0.17/gettext-tools/tests/msgmerge-18 2007-05-13 19:39:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-18 2010-06-06 12:49:58.000000000 +0000 @@ -124,7 +124,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test18.tmp.po mm-test18.po mm-test18.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test18.tmp.po > mm-test18.new.po +LC_ALL=C tr -d '\r' < mm-test18.tmp.po > mm-test18.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test18.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-19 gettext-0.18.1.1/gettext-tools/tests/msgmerge-19 --- gettext-0.17/gettext-tools/tests/msgmerge-19 2007-05-13 19:39:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-19 2010-06-06 12:49:58.000000000 +0000 @@ -84,7 +84,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q --previous -o mm-test19.tmp.po mm-test19.po mm-test19.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test19.tmp.po > mm-test19.new1.po +LC_ALL=C tr -d '\r' < mm-test19.tmp.po > mm-test19.new1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test19.ok1" @@ -174,7 +174,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q --previous -o mm-test19.tmp.po mm-test19.new1.po mm-test19.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test19.tmp.po > mm-test19.new2.po +LC_ALL=C tr -d '\r' < mm-test19.tmp.po > mm-test19.new2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test19.ok2" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-2 gettext-0.18.1.1/gettext-tools/tests/msgmerge-2 --- gettext-0.17/gettext-tools/tests/msgmerge-2 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-2 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ : ${MSGMERGE=msgmerge} LC_MESSAGES=C LC_ALL= \ ${MSGMERGE} -q -o /dev/stdout mm-test2.in1 mm-test2.in2 \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgmerge\.exe|msgmerge|' | tr -d '\r' > mm-test2.out + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgmerge\.exe|msgmerge|' -e 's|^msgmerge\.exe|msgmerge|' | LC_ALL=C tr -d '\r' > mm-test2.out tmpfiles="$tmpfiles mm-test2.ok" cat << EOF > mm-test2.ok diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-20 gettext-0.18.1.1/gettext-tools/tests/msgmerge-20 --- gettext-0.17/gettext-tools/tests/msgmerge-20 2007-05-14 22:31:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-20 2010-06-06 12:49:58.000000000 +0000 @@ -79,7 +79,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test20.tmp.po mm-test20.po mm-test20.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test20.tmp.po > mm-test20.new.po +LC_ALL=C tr -d '\r' < mm-test20.tmp.po > mm-test20.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test20.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-21 gettext-0.18.1.1/gettext-tools/tests/msgmerge-21 --- gettext-0.17/gettext-tools/tests/msgmerge-21 2007-10-21 01:24:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-21 2010-06-06 12:49:58.000000000 +0000 @@ -53,7 +53,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test21.tmp.po mm-test21.po mm-test21.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test21.tmp.po > mm-test21.new.po +LC_ALL=C tr -d '\r' < mm-test21.tmp.po > mm-test21.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test21.ok" @@ -66,6 +66,7 @@ "PO-Revision-Date: 2007-06-28 16:37+0200\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-22 gettext-0.18.1.1/gettext-tools/tests/msgmerge-22 --- gettext-0.17/gettext-tools/tests/msgmerge-22 2007-10-20 21:44:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-22 2010-06-06 12:49:58.000000000 +0000 @@ -51,7 +51,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test22.tmp.po mm-test22.po mm-test22.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test22.tmp.po > mm-test22.new.po +LC_ALL=C tr -d '\r' < mm-test22.tmp.po > mm-test22.new.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test22.ok" @@ -64,6 +64,7 @@ "PO-Revision-Date: 2007-06-28 16:37+0200\n" "Last-Translator: Karl Eichwalder \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-23 gettext-0.18.1.1/gettext-tools/tests/msgmerge-23 --- gettext-0.17/gettext-tools/tests/msgmerge-23 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-23 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,141 @@ +#! /bin/sh + +# Test msgmerge when a msgid_plural changed but msgid remained the same, +# and --previous was specified. +# Reported by Chusslove Illich (Часлав Илић). + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mm-test23.po" +cat <<\EOF > mm-test23.po +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-01-13 16:59+0100\n" +"PO-Revision-Date: 2007-06-28 16:37+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, c-format +msgid "%n lines" +msgstr "" + +#, c-format +msgid "%n areas" +msgstr "%n Flächen" + +#, c-format +msgid "One object" +msgid_plural "%n objects" +msgstr[0] "" +msgstr[1] "" + +#, c-format +msgid "One volume" +msgid_plural "%n volumes" +msgstr[0] "Ein Band" +msgstr[1] "%n Bände" +EOF + +tmpfiles="$tmpfiles mm-test23.pot" +cat <<\EOF > mm-test23.pot +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-01-13 16:59+0100\n" +"PO-Revision-Date: 2007-06-28 16:37+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#, kde-format +msgid "%1 lines" +msgstr "" + +#, kde-format +msgid "%1 areas" +msgstr "" + +#, kde-format +msgid "One object" +msgid_plural "%1 objects" +msgstr[0] "" +msgstr[1] "" + +#, kde-format +msgid "One volume" +msgid_plural "%1 volumes" +msgstr[0] "" +msgstr[1] "" +EOF + +tmpfiles="$tmpfiles mm-test23.tmp.po mm-test23.new.po" +: ${MSGMERGE=msgmerge} +${MSGMERGE} -q --previous -o mm-test23.tmp.po mm-test23.po mm-test23.pot +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mm-test23.tmp.po > mm-test23.new.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mm-test23.ok" +cat <<\EOF > mm-test23.ok +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-01-13 16:59+0100\n" +"PO-Revision-Date: 2007-06-28 16:37+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#, kde-format +msgid "%1 lines" +msgstr "" + +#, fuzzy, kde-format +#| msgid "%n areas" +msgid "%1 areas" +msgstr "%n Flächen" + +#, kde-format +msgid "One object" +msgid_plural "%1 objects" +msgstr[0] "" +msgstr[1] "" + +#, fuzzy, kde-format +#| msgid "One volume" +#| msgid_plural "%n volumes" +msgid "One volume" +msgid_plural "%1 volumes" +msgstr[0] "Ein Band" +msgstr[1] "%n Bände" +EOF + +: ${DIFF=diff} +${DIFF} mm-test23.ok mm-test23.new.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mm-test23.mo" +: ${MSGFMT=msgfmt} +${MSGFMT} --check -o mm-test23.mo mm-test23.new.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-24 gettext-0.18.1.1/gettext-tools/tests/msgmerge-24 --- gettext-0.17/gettext-tools/tests/msgmerge-24 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-24 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,174 @@ +#! /bin/sh + +# Test msgmerge and msgcmp: handling of 'range:' flags. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mm-test24.po" +cat <<\EOF > mm-test24.po +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#, c-format +msgid "one day" +msgid_plural "%d days" +msgstr[0] "un jour" +msgstr[1] "%d jours" + +#, c-format, range: 1..6 +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "une semaine et un jour" +msgstr[1] "une semaine et %d jours" + +#, c-format, range: 1..7 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "deux semaines et un jour" +msgstr[1] "deux semaines et %d jours" + +#, c-format, range: 0..6 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "trois semaines et un jour" +msgstr[1] "trois semaines et %d jours" + +#, c-format, range: 0..7 +msgid "four weeks and one day" +msgid_plural "four weeks and %d days" +msgstr[0] "quatre semaines et un jour" +msgstr[1] "quatre semaines et %d jours" + +#, c-format, range: 1..6 +msgid "five weeks and one day" +msgid_plural "five weeks and %d days" +msgstr[0] "cinq semaines et un jour" +msgstr[1] "cinq semaines et %d jours" +EOF + +tmpfiles="$tmpfiles mm-test24.pot" +cat <<\EOF > mm-test24.pot +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#, c-format, range: 1..6 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..6 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 1..6 +msgid "four weeks and one day" +msgid_plural "four weeks and %d days" +msgstr[0] "" +msgstr[1] "" + +#, c-format, range: 0..7 +msgid "five weeks and one day" +msgid_plural "five weeks and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +: ${MSGCMP=msgcmp} +${MSGCMP} --use-fuzzy --use-untranslated mm-test24.po mm-test24.pot 2>/dev/null +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mm-test24.tmp.po mm-test24.new.po" +: ${MSGMERGE=msgmerge} +${MSGMERGE} -q -o mm-test24.tmp.po mm-test24.po mm-test24.pot +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < mm-test24.tmp.po > mm-test24.new.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mm-test24.ok" +cat <<\EOF > mm-test24.ok +msgid "" +msgstr "" +"Report-Msgid-Bugs-To: \n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#, c-format, range: 1..6 +msgid "one day" +msgid_plural "%d days" +msgstr[0] "un jour" +msgstr[1] "%d jours" + +#, fuzzy, c-format +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "une semaine et un jour" +msgstr[1] "une semaine et %d jours" + +#, fuzzy, c-format, range: 0..6 +msgid "two weeks and one day" +msgid_plural "two weeks and %d days" +msgstr[0] "deux semaines et un jour" +msgstr[1] "deux semaines et %d jours" + +#, fuzzy, c-format, range: 1..7 +msgid "three weeks and one day" +msgid_plural "three weeks and %d days" +msgstr[0] "trois semaines et un jour" +msgstr[1] "trois semaines et %d jours" + +#, c-format, range: 1..6 +msgid "four weeks and one day" +msgid_plural "four weeks and %d days" +msgstr[0] "quatre semaines et un jour" +msgstr[1] "quatre semaines et %d jours" + +#, fuzzy, c-format, range: 0..7 +msgid "five weeks and one day" +msgid_plural "five weeks and %d days" +msgstr[0] "cinq semaines et un jour" +msgstr[1] "cinq semaines et %d jours" +EOF + +: ${DIFF=diff} +${DIFF} mm-test24.ok mm-test24.new.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +: ${MSGCMP=msgcmp} +${MSGCMP} --use-fuzzy --use-untranslated mm-test24.new.po mm-test24.pot +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +rm -fr $tmpfiles + +exit 0 diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-3 gettext-0.18.1.1/gettext-tools/tests/msgmerge-3 --- gettext-0.17/gettext-tools/tests/msgmerge-3 2007-03-11 04:09:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-3 2010-06-06 12:49:58.000000000 +0000 @@ -56,7 +56,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test3.tmp mm-test3.in1 mm-test3.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test3.tmp > mm-test3.out +LC_ALL=C tr -d '\r' < mm-test3.tmp > mm-test3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-4 gettext-0.18.1.1/gettext-tools/tests/msgmerge-4 --- gettext-0.17/gettext-tools/tests/msgmerge-4 2007-03-11 04:10:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-4 2010-06-06 12:49:58.000000000 +0000 @@ -31,7 +31,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test4.tmp mm-test4.in1.po mm-test4.in2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test4.tmp > mm-test4.out +LC_ALL=C tr -d '\r' < mm-test4.tmp > mm-test4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-5 gettext-0.18.1.1/gettext-tools/tests/msgmerge-5 --- gettext-0.17/gettext-tools/tests/msgmerge-5 2007-05-13 17:23:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-5 2010-06-06 12:49:58.000000000 +0000 @@ -46,7 +46,7 @@ result=$? cat mm-test5.err | grep -v 'warning: Charset' | grep -v '^ ' test $result = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test5.tmp > mm-test5.out +LC_ALL=C tr -d '\r' < mm-test5.tmp > mm-test5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test5.ok" @@ -62,6 +62,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: ENCODING\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-6 gettext-0.18.1.1/gettext-tools/tests/msgmerge-6 --- gettext-0.17/gettext-tools/tests/msgmerge-6 2007-05-13 17:24:24.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-6 2010-06-06 12:49:58.000000000 +0000 @@ -61,7 +61,7 @@ LC_MESSAGES=C LC_ALL= \ ${MSGMERGE} -q -o mm-test6.tmp mm-test6.in1.po mm-test6.in2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test6.tmp > mm-test6.out +LC_ALL=C tr -d '\r' < mm-test6.tmp > mm-test6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test6.ok" @@ -77,6 +77,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix Natter \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-7 gettext-0.18.1.1/gettext-tools/tests/msgmerge-7 --- gettext-0.17/gettext-tools/tests/msgmerge-7 2007-05-13 17:24:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-7 2010-06-06 12:49:58.000000000 +0000 @@ -46,7 +46,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o mm-test7.tmp mm-test7.po mm-test7.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test7.tmp > mm-test7.out +LC_ALL=C tr -d '\r' < mm-test7.tmp > mm-test7.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-8 gettext-0.18.1.1/gettext-tools/tests/msgmerge-8 --- gettext-0.17/gettext-tools/tests/msgmerge-8 2007-05-13 17:25:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-8 2010-06-06 12:49:58.000000000 +0000 @@ -42,7 +42,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} --multi-domain -q -o mm-test8.tmp mm-test8.po mm-test8.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-test8.tmp > mm-test8.out +LC_ALL=C tr -d '\r' < mm-test8.tmp > mm-test8.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-test8.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-9 gettext-0.18.1.1/gettext-tools/tests/msgmerge-9 --- gettext-0.17/gettext-tools/tests/msgmerge-9 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-9 2010-06-06 12:49:58.000000000 +0000 @@ -25,7 +25,7 @@ : ${MSGMERGE=msgmerge} LC_MESSAGES=C LC_ALL= \ ${MSGMERGE} -q -o /dev/null mm-test9.in1 mm-test9.in2 \ - 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgmerge\.exe|msgmerge|' | tr -d '\r' > mm-test9.err + 2>&1 | grep -v '^==' | sed -e 's|[^ ]*\\msgmerge\.exe|msgmerge|' -e 's|^msgmerge\.exe|msgmerge|' | LC_ALL=C tr -d '\r' > mm-test9.err tmpfiles="$tmpfiles mm-test9.ok" cat << EOF > mm-test9.ok diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-1 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-1 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-1 2007-05-13 17:34:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-1 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -C mm-c-1.com -o mm-c-1.tmp mm-c-1.in1 mm-c-1.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-1.tmp > mm-c-1.out +LC_ALL=C tr -d '\r' < mm-c-1.tmp > mm-c-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-2 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-2 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-2 2007-05-13 17:35:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-2 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -C mm-c-2.com -o mm-c-2.tmp mm-c-2.in1 mm-c-2.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-2.tmp > mm-c-2.out +LC_ALL=C tr -d '\r' < mm-c-2.tmp > mm-c-2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-3 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-3 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-3 2007-05-13 17:36:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-3 2010-06-06 12:49:58.000000000 +0000 @@ -40,7 +40,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -C mm-c-3.com -o mm-c-3.tmp mm-c-3.in1 mm-c-3.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-3.tmp > mm-c-3.out +LC_ALL=C tr -d '\r' < mm-c-3.tmp > mm-c-3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-4 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-4 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-4 2007-05-13 17:36:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-4 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q --compendium mm-c-4.com -o mm-c-4.tmp /dev/null mm-c-4.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-4.tmp > mm-c-4.out +LC_ALL=C tr -d '\r' < mm-c-4.tmp > mm-c-4.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-5 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-5 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-5 2007-05-13 17:37:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-5 2010-06-06 12:49:58.000000000 +0000 @@ -11,7 +11,7 @@ --compendium ${top_srcdir}/tests/mm-viet.comp.po \ /dev/null ${top_srcdir}/tests/mm-viet.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-5.tmp > mm-c-5.out +LC_ALL=C tr -d '\r' < mm-c-5.tmp > mm-c-5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-compendium-6 gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-6 --- gettext-0.17/gettext-tools/tests/msgmerge-compendium-6 2007-05-14 22:33:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-compendium-6 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \ ${top_srcdir}/tests/mm-ko.euc-kr.po ${top_srcdir}/tests/mm-ko.ascii.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-AEE.tmp > mm-c-6-AEE.out +LC_ALL=C tr -d '\r' < mm-c-6-AEE.tmp > mm-c-6-AEE.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-AEU.tmp mm-c-6-AEU.out" @@ -36,7 +36,7 @@ --compendium mm-ko-comp.utf-8.po \ ${top_srcdir}/tests/mm-ko.euc-kr.po ${top_srcdir}/tests/mm-ko.ascii.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-AEU.tmp > mm-c-6-AEU.out +LC_ALL=C tr -d '\r' < mm-c-6-AEU.tmp > mm-c-6-AEU.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-AUE.tmp mm-c-6-AUE.out" @@ -45,7 +45,7 @@ --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \ mm-ko.utf-8.po ${top_srcdir}/tests/mm-ko.ascii.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-AUE.tmp > mm-c-6-AUE.out +LC_ALL=C tr -d '\r' < mm-c-6-AUE.tmp > mm-c-6-AUE.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-AUU.tmp mm-c-6-AUU.out" @@ -54,7 +54,7 @@ --compendium mm-ko-comp.utf-8.po \ mm-ko.utf-8.po ${top_srcdir}/tests/mm-ko.ascii.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-AUU.tmp > mm-c-6-AUU.out +LC_ALL=C tr -d '\r' < mm-c-6-AUU.tmp > mm-c-6-AUU.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-UEE.tmp mm-c-6-UEE.out" @@ -63,7 +63,7 @@ --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \ ${top_srcdir}/tests/mm-ko.euc-kr.po mm-ko.utf-8.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-UEE.tmp > mm-c-6-UEE.out +LC_ALL=C tr -d '\r' < mm-c-6-UEE.tmp > mm-c-6-UEE.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-UEU.tmp mm-c-6-UEU.out" @@ -72,7 +72,7 @@ --compendium mm-ko-comp.utf-8.po \ ${top_srcdir}/tests/mm-ko.euc-kr.po mm-ko.utf-8.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-UEU.tmp > mm-c-6-UEU.out +LC_ALL=C tr -d '\r' < mm-c-6-UEU.tmp > mm-c-6-UEU.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-UUE.tmp mm-c-6-UUE.out" @@ -81,7 +81,7 @@ --compendium ${top_srcdir}/tests/mm-ko-comp.euc-kr.po \ mm-ko.utf-8.po mm-ko.utf-8.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-UUE.tmp > mm-c-6-UUE.out +LC_ALL=C tr -d '\r' < mm-c-6-UUE.tmp > mm-c-6-UUE.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-UUU.tmp mm-c-6-UUU.out" @@ -90,13 +90,13 @@ --compendium mm-ko-comp.utf-8.po \ mm-ko.utf-8.po mm-ko.utf-8.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-c-6-UUU.tmp > mm-c-6-UUU.out +LC_ALL=C tr -d '\r' < mm-c-6-UUU.tmp > mm-c-6-UUU.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-c-6-U.ok mm-c-6-E.ok" : ${MSGCONV=msgconv} -${MSGCONV} --to-code=UTF-8 mm-c-6-UUU.out | tr -d '\r' > mm-c-6-U.ok -${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | sed -e 's,EUC-KR,euc-kr,' | tr -d '\r' > mm-c-6-E.ok +${MSGCONV} --to-code=UTF-8 mm-c-6-UUU.out | LC_ALL=C tr -d '\r' > mm-c-6-U.ok +${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | sed -e 's,EUC-KR,euc-kr,' | LC_ALL=C tr -d '\r' > mm-c-6-E.ok : ${DIFF=diff} ${DIFF} mm-c-6-E.ok mm-c-6-AEE.out || { rm -fr $tmpfiles; exit 1; } diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-properties-1 gettext-0.18.1.1/gettext-tools/tests/msgmerge-properties-1 --- gettext-0.17/gettext-tools/tests/msgmerge-properties-1 2007-05-13 17:42:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -41,7 +41,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q --properties-input --properties-output -o mm-p-1.tmp mm-p-1.in1 mm-p-1.in2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-p-1.tmp > mm-p-1.out +LC_ALL=C tr -d '\r' < mm-p-1.tmp > mm-p-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-p-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-properties-2 gettext-0.18.1.1/gettext-tools/tests/msgmerge-properties-2 --- gettext-0.17/gettext-tools/tests/msgmerge-properties-2 2007-05-13 17:44:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-properties-2 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ ${MSGMERGE} -q --properties-input --update mm-p-2.po mm-p-2.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } mv mm-p-2.po mm-p-2.tmp || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-p-2.tmp > mm-p-2.po +LC_ALL=C tr -d '\r' < mm-p-2.tmp > mm-p-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-p-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-update-1 gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-1 --- gettext-0.17/gettext-tools/tests/msgmerge-update-1 2003-11-04 14:40:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-1 2010-06-06 12:49:58.000000000 +0000 @@ -18,6 +18,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-update-2 gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-2 --- gettext-0.17/gettext-tools/tests/msgmerge-update-2 2007-05-13 17:45:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-2 2010-06-06 12:49:58.000000000 +0000 @@ -19,6 +19,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -56,7 +57,7 @@ ${MSGMERGE} -q --update mm-u-2.po mm-u-2.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } mv mm-u-2.po mm-u-2.tmp || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mm-u-2.tmp > mm-u-2.po +LC_ALL=C tr -d '\r' < mm-u-2.tmp > mm-u-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles mm-u-2.ok" @@ -72,6 +73,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-update-3 gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-3 --- gettext-0.17/gettext-tools/tests/msgmerge-update-3 2003-11-04 14:40:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-3 2010-06-06 12:49:58.000000000 +0000 @@ -20,6 +20,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" @@ -69,6 +70,7 @@ "PO-Revision-Date: 2001-04-29 21:19+02:00\n" "Last-Translator: Felix N. \n" "Language-Team: German \n" +"Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/msgmerge-update-4 gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-4 --- gettext-0.17/gettext-tools/tests/msgmerge-update-4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgmerge-update-4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,95 @@ +#! /bin/sh + +# Test --update with --sort-output: POT-Creation-Date changed. This change +# must not be reflected in the resulting PO file; this is needed for projects +# which don't put the .pot file under CVS. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles mm-u-4.po" +cat <<\EOF > mm-u-4.po +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: cog_training 1.0\n" +"POT-Creation-Date: 2001-04-29 22:40+0200\n" +"PO-Revision-Date: 2001-04-29 21:19+02:00\n" +"Last-Translator: Felix N. \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 +msgid "white" +msgstr "wei" + +#~ msgid "green" +#~ msgstr "grn" +EOF + +tmpfiles="$tmpfiles mm-u-4.pot" +cat < mm-u-4.pot +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2001-04-30 18:51+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 +msgid "white" +msgstr "" +EOF + +tmpfiles="$tmpfiles mm-u-4.po~" +: ${MSGMERGE=msgmerge} +${MSGMERGE} -q --update --sort-output mm-u-4.po mm-u-4.pot +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles mm-u-4.ok" +cat <<\EOF > mm-u-4.ok +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: cog_training 1.0\n" +"POT-Creation-Date: 2001-04-29 22:40+0200\n" +"PO-Revision-Date: 2001-04-29 21:19+02:00\n" +"Last-Translator: Felix N. \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#: cogarithmetic.cc:12 cogidmarkup.cc:288 cogroman.cc:14 +msgid "white" +msgstr "wei" + +#~ msgid "green" +#~ msgstr "grn" +EOF + +: ${DIFF=diff} +${DIFF} mm-u-4.ok mm-u-4.po +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/msgunfmt-1 gettext-0.18.1.1/gettext-tools/tests/msgunfmt-1 --- gettext-0.17/gettext-tools/tests/msgunfmt-1 2007-05-13 17:46:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgunfmt-1 2010-06-06 12:49:58.000000000 +0000 @@ -41,7 +41,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mu-test1.tmp mu-test1.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mu-test1.tmp > mu-test1.out +LC_ALL=C tr -d '\r' < mu-test1.tmp > mu-test1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgunfmt-2 gettext-0.18.1.1/gettext-tools/tests/msgunfmt-2 --- gettext-0.17/gettext-tools/tests/msgunfmt-2 2007-05-13 17:47:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgunfmt-2 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o mu-2.tmp mu-2.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mu-2.tmp > mu-2.out +LC_ALL=C tr -d '\r' < mu-2.tmp > mu-2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgunfmt-properties-1 gettext-0.18.1.1/gettext-tools/tests/msgunfmt-properties-1 --- gettext-0.17/gettext-tools/tests/msgunfmt-properties-1 2007-05-13 17:48:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgunfmt-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} --properties-output -o mu-p-1.tmp mu-p-1.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < mu-p-1.tmp > mu-p-1.out +LC_ALL=C tr -d '\r' < mu-p-1.tmp > mu-p-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msgunfmt-tcl-1 gettext-0.18.1.1/gettext-tools/tests/msgunfmt-tcl-1 --- gettext-0.17/gettext-tools/tests/msgunfmt-tcl-1 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msgunfmt-tcl-1 2010-06-06 12:49:58.000000000 +0000 @@ -2,6 +2,13 @@ # Test of --tcl option. +# This test fails on mingw, in the Cygwin environment: tclsh exists as +# tclsh.exe from Cygwin. When msgunfmt invokes it, it crashes, presenting +# a dialog "16 bit MS-DOS subsystem - The NTVDM CPU has encountered an +# illegal instruction." When this dialog is closed, msgunfmt continues, +# reads empty output, and refrains from creating a PO file because +# --force-po was not specified. + tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 diff -Nru gettext-0.17/gettext-tools/tests/msguniq-1 gettext-0.18.1.1/gettext-tools/tests/msguniq-1 --- gettext-0.17/gettext-tools/tests/msguniq-1 2007-05-13 17:49:52.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msguniq-1 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${MSGUNIQ-msguniq} ${MSGUNIQ} -w 1000 -o msguniq-1.tmp ${top_srcdir}/tests/msguniq-a.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < msguniq-1.tmp > msguniq-1.out +LC_ALL=C tr -d '\r' < msguniq-1.tmp > msguniq-1.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/msguniq-2 gettext-0.18.1.1/gettext-tools/tests/msguniq-2 --- gettext-0.17/gettext-tools/tests/msguniq-2 2007-05-13 17:50:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msguniq-2 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${MSGUNIQ-msguniq} ${MSGUNIQ} -w 1000 -u -o msguniq-2.tmp ${top_srcdir}/tests/msguniq-a.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < msguniq-2.tmp > msguniq-2.out +LC_ALL=C tr -d '\r' < msguniq-2.tmp > msguniq-2.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles msguniq-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/msguniq-3 gettext-0.18.1.1/gettext-tools/tests/msguniq-3 --- gettext-0.17/gettext-tools/tests/msguniq-3 2007-05-13 17:51:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msguniq-3 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ : ${MSGUNIQ-msguniq} ${MSGUNIQ} -w 1000 -d -o msguniq-3.tmp ${top_srcdir}/tests/msguniq-a.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < msguniq-3.tmp > msguniq-3.out +LC_ALL=C tr -d '\r' < msguniq-3.tmp > msguniq-3.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles msguniq-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/msguniq-5 gettext-0.18.1.1/gettext-tools/tests/msguniq-5 --- gettext-0.17/gettext-tools/tests/msguniq-5 2007-05-13 17:51:47.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msguniq-5 2010-06-06 12:49:58.000000000 +0000 @@ -60,7 +60,7 @@ : ${MSGUNIQ-msguniq} ${MSGUNIQ} -o msguniq-5.tmp msguniq-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < msguniq-5.tmp > msguniq-5.out +LC_ALL=C tr -d '\r' < msguniq-5.tmp > msguniq-5.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles msguniq-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/msguniq-6 gettext-0.18.1.1/gettext-tools/tests/msguniq-6 --- gettext-0.17/gettext-tools/tests/msguniq-6 2007-05-13 17:52:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/msguniq-6 2010-06-06 12:49:58.000000000 +0000 @@ -73,7 +73,7 @@ : ${MSGUNIQ=msguniq} ${MSGUNIQ} -o msguniq-6.tmp msguniq-6.in test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < msguniq-6.tmp > msguniq-6.out +LC_ALL=C tr -d '\r' < msguniq-6.tmp > msguniq-6.out test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles msguniq-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/plural-1 gettext-0.18.1.1/gettext-tools/tests/plural-1 --- gettext-0.17/gettext-tools/tests/plural-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/plural-1 2010-06-06 12:49:58.000000000 +0000 @@ -7,7 +7,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o cake.tmp --omit-header --no-location ${top_srcdir}/tests/plural-1-prg.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < cake.tmp > cake.pot +LC_ALL=C tr -d '\r' < cake.tmp > cake.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles cake.ok" @@ -36,7 +36,7 @@ : ${MSGMERGE=msgmerge} ${MSGMERGE} -q -o fr.po.tmp fr.po cake.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.new +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.new test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} @@ -53,7 +53,7 @@ : ${MSGUNFMT=msgunfmt} ${MSGUNFMT} -o fr.po.tmp fr/LC_MESSAGES/cake.mo test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < fr.po.tmp > fr.po.un +LC_ALL=C tr -d '\r' < fr.po.tmp > fr.po.un test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles fr.po.strip" @@ -66,15 +66,15 @@ : ${DIFF=diff} echo 'un morceau de gateau' > cake.ok LANGUAGE= ./cake fr 1 > cake.tmp || exit 1 -tr -d '\r' < cake.tmp > cake.out || exit 1 +LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 echo '2 morceaux de gateau' > cake.ok LANGUAGE= ./cake fr 2 > cake.tmp || exit 1 -tr -d '\r' < cake.tmp > cake.out || exit 1 +LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 echo '10 morceaux de gateau' > cake.ok LANGUAGE= ./cake fr 10 > cake.tmp || exit 1 -tr -d '\r' < cake.tmp > cake.out || exit 1 +LC_ALL=C tr -d '\r' < cake.tmp > cake.out || exit 1 ${DIFF} cake.ok cake.out || exit 1 rm -fr $tmpfiles diff -Nru gettext-0.17/gettext-tools/tests/plural-1-prg.c gettext-0.18.1.1/gettext-tools/tests/plural-1-prg.c --- gettext-0.17/gettext-tools/tests/plural-1-prg.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/plural-1-prg.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Test program, used by the plural-1 test. - Copyright (C) 2001-2002 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,6 +27,11 @@ #undef _LIBINTL_H #include "libgnuintl.h" +/* Disable the override of setlocale that libgnuintl.h activates on MacOS X + and Windows. This test relies on the fake setlocale function in + setlocale.c. */ +#undef setlocale + int main (int argc, char *argv[]) { diff -Nru gettext-0.17/gettext-tools/tests/recode-sr-latin-1 gettext-0.18.1.1/gettext-tools/tests/recode-sr-latin-1 --- gettext-0.17/gettext-tools/tests/recode-sr-latin-1 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/recode-sr-latin-1 2010-06-06 12:49:58.000000000 +0000 @@ -28,6 +28,10 @@ cat <<\EOF > rec-srl-1.in Исправни аргументи су неједнозначан аргумент +љубазни фењерџија чађавог лица хоће да ми покаже штос +ЉУБАЗНИ ФЕЊЕРЏИЈА ЧАЂАВОГ ЛИЦА ХОЋЕ ДА МИ ПОКАЖЕ ШТОС +ЉУБЉАНА Љубљана ЏИВЏАН Џивџан ЊУЊОРИ Њуњори +ѐѝӣӯ ЍЀӢӮ ЉӮ ӮЉ EOF tmpfiles="$tmpfiles rec-srl-1.out" @@ -40,6 +44,10 @@ cat <<\EOF > rec-srl-1.ok Ispravni argumenti su nejednoznačan argument +ljubazni fenjerdžija čađavog lica hoće da mi pokaže štos +LJUBAZNI FENJERDŽIJA ČAĐAVOG LICA HOĆE DA MI POKAŽE ŠTOS +LJUBLJANA Ljubljana DŽIVDŽAN Dživdžan NJUNJORI Njunjori +èìīū ÌÈĪŪ LJŪ ŪLJ EOF : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/setlocale.c gettext-0.18.1.1/gettext-tools/tests/setlocale.c --- gettext-0.17/gettext-tools/tests/setlocale.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/setlocale.c 2010-06-06 12:49:58.000000000 +0000 @@ -106,58 +106,58 @@ strcpy (copy, locale); if (category == LC_ALL) - { - while ((facetp = facets) != NULL) - { - facets = facetp->next; - free (facetp->current_locale); - free (facetp); - } - if (current_locale != C_string) - free (current_locale); - current_locale = copy; - } + { + while ((facetp = facets) != NULL) + { + facets = facetp->next; + free (facetp->current_locale); + free (facetp); + } + if (current_locale != C_string) + free (current_locale); + current_locale = copy; + } else - { - for (facetp = facets; facetp != NULL; facetp = facetp->next) - if (category == facetp->category) - { - free (facetp->current_locale); - facetp->current_locale = copy; - break; - } - if (facetp == NULL) - { - facetp = (struct list *) malloc (sizeof (struct list)); - facetp->category = category; - facetp->current_locale = copy; - facetp->next = facets; - facets = facetp; - } - } + { + for (facetp = facets; facetp != NULL; facetp = facetp->next) + if (category == facetp->category) + { + free (facetp->current_locale); + facetp->current_locale = copy; + break; + } + if (facetp == NULL) + { + facetp = (struct list *) malloc (sizeof (struct list)); + facetp->category = category; + facetp->current_locale = copy; + facetp->next = facets; + facets = facetp; + } + } } retval = current_locale; for (facetp = facets; facetp != NULL; facetp = facetp->next) if (category == facetp->category) { - retval = facetp->current_locale; - break; + retval = facetp->current_locale; + break; } if (retval[0] == '\0') { retval = getenv ("LC_ALL"); if (retval == NULL || retval[0] == '\0') - { - retval = getenv (category_to_name (category)); - if (retval == NULL || retval[0] == '\0') - { - retval = getenv ("LANG"); - if (retval == NULL || retval[0] == '\0') - retval = "C"; - } - } + { + retval = getenv (category_to_name (category)); + if (retval == NULL || retval[0] == '\0') + { + retval = getenv ("LANG"); + if (retval == NULL || retval[0] == '\0') + retval = "C"; + } + } } return retval; } diff -Nru gettext-0.17/gettext-tools/tests/tstgettext.c gettext-0.18.1.1/gettext-tools/tests/tstgettext.c --- gettext-0.17/gettext-tools/tests/tstgettext.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/tstgettext.c 2010-06-06 12:49:58.000000000 +0000 @@ -102,10 +102,10 @@ /* Parse command line options. */ while ((optchar = getopt_long (argc, argv, "+d:eEhnsV", long_options, NULL)) - != EOF) + != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'd': domain = optarg; @@ -130,15 +130,15 @@ break; case '=': { - /* Undocumented option --env sets an environment variable. */ - char *separator = strchr (optarg, '='); - if (separator != NULL) - { - *separator = '\0'; - xsetenv (optarg, separator + 1, 1); - environ_changed = true; - break; - } + /* Undocumented option --env sets an environment variable. */ + char *separator = strchr (optarg, '='); + if (separator != NULL) + { + *separator = '\0'; + xsetenv (optarg, separator + 1, 1); + environ_changed = true; + break; + } } /*FALLTHROUGH*/ default: @@ -161,7 +161,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1997, 2000-2006"); + "1995-1997, 2000-2006"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -178,78 +178,78 @@ /* Get arguments. */ switch (argc - optind) - { - default: - error (EXIT_FAILURE, 0, _("too many arguments")); - - case 2: - domain = argv[optind++]; - /* FALLTHROUGH */ - - case 1: - break; - - case 0: - error (EXIT_FAILURE, 0, _("missing arguments")); - } + { + default: + error (EXIT_FAILURE, 0, _("too many arguments")); + + case 2: + domain = argv[optind++]; + /* FALLTHROUGH */ + + case 1: + break; + + case 0: + error (EXIT_FAILURE, 0, _("missing arguments")); + } msgid = argv[optind++]; /* Expand escape sequences if enabled. */ if (do_expand) - msgid = expand_escape (msgid); + msgid = expand_escape (msgid); /* If no domain name is given we don't translate. */ if (domain == NULL || domain[0] == '\0') - { - fputs (msgid, stdout); - } + { + fputs (msgid, stdout); + } else - { - /* Bind domain to appropriate directory. */ - if (domaindir != NULL && domaindir[0] != '\0') - bindtextdomain (domain, domaindir); - - /* Write out the result. */ - fputs (dgettext (domain, msgid), stdout); - } + { + /* Bind domain to appropriate directory. */ + if (domaindir != NULL && domaindir[0] != '\0') + bindtextdomain (domain, domaindir); + + /* Write out the result. */ + fputs (dgettext (domain, msgid), stdout); + } } else { if (optind < argc) - { - /* If no domain name is given we print the original string. - We mark this assigning NULL to domain. */ - if (domain == NULL || domain[0] == '\0') - domain = NULL; - else - /* Bind domain to appropriate directory. */ - if (domaindir != NULL && domaindir[0] != '\0') - bindtextdomain (domain, domaindir); - - /* We have to simulate `echo'. All arguments are strings. */ - do - { - msgid = argv[optind++]; - - /* Expand escape sequences if enabled. */ - if (do_expand) - msgid = expand_escape (msgid); - - /* Write out the result. */ - fputs (domain == NULL ? msgid : dgettext (domain, msgid), - stdout); - - /* We separate the arguments by a single ' '. */ - if (optind < argc) - fputc (' ', stdout); - } - while (optind < argc); - } + { + /* If no domain name is given we print the original string. + We mark this assigning NULL to domain. */ + if (domain == NULL || domain[0] == '\0') + domain = NULL; + else + /* Bind domain to appropriate directory. */ + if (domaindir != NULL && domaindir[0] != '\0') + bindtextdomain (domain, domaindir); + + /* We have to simulate `echo'. All arguments are strings. */ + do + { + msgid = argv[optind++]; + + /* Expand escape sequences if enabled. */ + if (do_expand) + msgid = expand_escape (msgid); + + /* Write out the result. */ + fputs (domain == NULL ? msgid : dgettext (domain, msgid), + stdout); + + /* We separate the arguments by a single ' '. */ + if (optind < argc) + fputc (' ', stdout); + } + while (optind < argc); + } /* If not otherwise told: add trailing newline. */ if (add_newline) - fputc ('\n', stdout); + fputc ('\n', stdout); } exit (EXIT_SUCCESS); @@ -262,7 +262,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -296,7 +296,7 @@ But it does not simply copy its arguments to stdout. Instead those messages\n\ found in the selected catalog are translated.\n\ Standard search directory: %s\n"), - getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); + getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); printf ("\n"); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying @@ -319,14 +319,14 @@ for (;;) { while (cp[0] != '\0' && cp[0] != '\\') - ++cp; + ++cp; if (cp[0] == '\0') - return str; + return str; /* Found a backslash. */ if (cp[1] == '\0') - return str; + return str; if (strchr ("abcfnrtv\\01234567", cp[1]) != NULL) - break; + break; ++cp; } @@ -339,69 +339,69 @@ { /* Here cp[0] == '\\'. */ switch (*++cp) - { - case 'a': /* alert */ - *rp++ = '\a'; - ++cp; - break; - case 'b': /* backspace */ - *rp++ = '\b'; - ++cp; - break; - case 'c': /* suppress trailing newline */ - add_newline = false; - ++cp; - break; - case 'f': /* form feed */ - *rp++ = '\f'; - ++cp; - break; - case 'n': /* new line */ - *rp++ = '\n'; - ++cp; - break; - case 'r': /* carriage return */ - *rp++ = '\r'; - ++cp; - break; - case 't': /* horizontal tab */ - *rp++ = '\t'; - ++cp; - break; - case 'v': /* vertical tab */ - *rp++ = '\v'; - ++cp; - break; - case '\\': - *rp = '\\'; - ++cp; - break; - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - { - int ch = *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - - if (*cp >= '0' && *cp <= '7') - { - ch *= 8; - ch += *cp++ - '0'; - } - } - *rp = ch; - } - break; - default: - *rp = '\\'; - break; - } + { + case 'a': /* alert */ + *rp++ = '\a'; + ++cp; + break; + case 'b': /* backspace */ + *rp++ = '\b'; + ++cp; + break; + case 'c': /* suppress trailing newline */ + add_newline = false; + ++cp; + break; + case 'f': /* form feed */ + *rp++ = '\f'; + ++cp; + break; + case 'n': /* new line */ + *rp++ = '\n'; + ++cp; + break; + case 'r': /* carriage return */ + *rp++ = '\r'; + ++cp; + break; + case 't': /* horizontal tab */ + *rp++ = '\t'; + ++cp; + break; + case 'v': /* vertical tab */ + *rp++ = '\v'; + ++cp; + break; + case '\\': + *rp = '\\'; + ++cp; + break; + case '0': case '1': case '2': case '3': + case '4': case '5': case '6': case '7': + { + int ch = *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + + if (*cp >= '0' && *cp <= '7') + { + ch *= 8; + ch += *cp++ - '0'; + } + } + *rp = ch; + } + break; + default: + *rp = '\\'; + break; + } while (cp[0] != '\0' && cp[0] != '\\') - *rp++ = *cp++; + *rp++ = *cp++; } while (cp[0] != '\0'); diff -Nru gettext-0.17/gettext-tools/tests/tstngettext.c gettext-0.18.1.1/gettext-tools/tests/tstngettext.c --- gettext-0.17/gettext-tools/tests/tstngettext.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/tstngettext.c 2010-06-06 12:49:58.000000000 +0000 @@ -90,10 +90,10 @@ /* Parse command line options. */ while ((optchar = getopt_long (argc, argv, "+d:hV", long_options, NULL)) - != EOF) + != EOF) switch (optchar) { - case '\0': /* Long option. */ + case '\0': /* Long option. */ break; case 'd': domain = optarg; @@ -106,15 +106,15 @@ break; case '=': { - /* Undocumented option --env sets an environment variable. */ - char *separator = strchr (optarg, '='); - if (separator != NULL) - { - *separator = '\0'; - xsetenv (optarg, separator + 1, 1); - environ_changed = true; - break; - } + /* Undocumented option --env sets an environment variable. */ + char *separator = strchr (optarg, '='); + if (separator != NULL) + { + *separator = '\0'; + xsetenv (optarg, separator + 1, 1); + environ_changed = true; + break; + } } /*FALLTHROUGH*/ default: @@ -137,7 +137,7 @@ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), - "1995-1997, 2000-2006"); + "1995-1997, 2000-2006"); printf (_("Written by %s.\n"), proper_name ("Ulrich Drepper")); exit (EXIT_SUCCESS); } @@ -170,25 +170,25 @@ count = argv[optind++]; { - char *endp; - unsigned long tmp_val; + char *endp; + unsigned long tmp_val; - errno = 0; - tmp_val = strtoul (count, &endp, 10); - if (errno == 0 && count[0] != '\0' && endp[0] == '\0') - n = tmp_val; - else - /* When COUNT is not valid, use plural. */ - n = 99; + errno = 0; + tmp_val = strtoul (count, &endp, 10); + if (errno == 0 && count[0] != '\0' && endp[0] == '\0') + n = tmp_val; + else + /* When COUNT is not valid, use plural. */ + n = 99; } /* If no domain name is given we don't translate, and we use English - plural form handling. */ + plural form handling. */ if (domain == NULL) - fputs (n == 1 ? msgid : msgid_plural, stdout); + fputs (n == 1 ? msgid : msgid_plural, stdout); else - /* Write out the result. */ - fputs (dngettext (domain, msgid, msgid_plural, n), stdout); + /* Write out the result. */ + fputs (dngettext (domain, msgid, msgid_plural, n), stdout); } exit (EXIT_SUCCESS); @@ -201,7 +201,7 @@ { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), - program_name); + program_name); else { /* xgettext: no-wrap */ @@ -212,7 +212,7 @@ -V, --version display version information and exit\n\ MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural)\n\ COUNT choose singular/plural form based on this value\n"), - program_name); + program_name); /* xgettext: no-wrap */ printf (_("\ \n\ diff -Nru gettext-0.17/gettext-tools/tests/xg-c-1.ok.po gettext-0.18.1.1/gettext-tools/tests/xg-c-1.ok.po --- gettext-0.17/gettext-tools/tests/xg-c-1.ok.po 2007-10-07 21:10:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xg-c-1.ok.po 2010-06-06 18:44:58.000000000 +0000 @@ -154,8 +154,11 @@ #, c-format msgid "" -" -c, --add-comments[=TAG] place comment block with TAG (or those\n" -" preceding keyword lines) in output file\n" +" -cTAG, --add-comments=TAG place comment blocks starting with TAG and\n" +" preceding keyword lines in output file\n" +" -c, --add-comments place all comment blocks preceding keyword " +"lines\n" +" in output file\n" msgstr "" #, c-format @@ -176,8 +179,8 @@ #, c-format msgid "" -" -k, --keyword[=WORD] additional keyword to be looked for (without\n" -" WORD means not to use default keywords)\n" +" -kWORD, --keyword=WORD look for WORD as an additional keyword\n" +" -k, --keyword do not to use default keywords\n" msgstr "" #, c-format @@ -230,6 +233,18 @@ #, c-format msgid "" +" --color use colors and other text attributes always\n" +" --color=WHEN use colors and other text attributes if WHEN.\n" +" WHEN may be 'always', 'never', 'auto', or " +"'html'.\n" +msgstr "" + +#, c-format +msgid " --style=STYLEFILE specify CSS style rule file for --color\n" +msgstr "" + +#, c-format +msgid "" " -e, --no-escape do not use C escapes in output (default)\n" msgstr "" @@ -316,14 +331,16 @@ #, c-format msgid "" -" -m, --msgstr-prefix[=STRING] use STRING or \"\" as prefix for msgstr " -"entries\n" +" -m[STRING], --msgstr-prefix[=STRING] use STRING or \"\" as prefix for " +"msgstr\n" +" values\n" msgstr "" #, c-format msgid "" -" -M, --msgstr-suffix[=STRING] use STRING or \"\" as suffix for msgstr " -"entries\n" +" -M[STRING], --msgstr-suffix[=STRING] use STRING or \"\" as suffix for " +"msgstr\n" +" values\n" msgstr "" #, c-format @@ -346,8 +363,8 @@ #, c-format msgid "" -"A --flag argument doesn't have the ::[pass-] syntax: %" -"s" +"A --flag argument doesn't have the ::[pass-] syntax: " +"%s" msgstr "" msgid "standard input" @@ -358,9 +375,18 @@ msgstr "" #, c-format -msgid "" -"Non-ASCII string at %s%s.\n" -"Please specify the source encoding through --from-code.\n" +msgid "Non-ASCII character at %s%s." +msgstr "" + +#, c-format +msgid "Non-ASCII comment at or before %s%s." +msgstr "" + +#, c-format +msgid "Non-ASCII string at %s%s." +msgstr "" + +msgid "Please specify the source encoding through --from-code." msgstr "" #, c-format @@ -375,8 +401,8 @@ #, c-format msgid "" -"Although declared as such, the %s is not a valid %s format string. Reason: %" -"s\n" +"Although declared as such, the %s is not a valid %s format string. Reason: " +"%s\n" msgstr "" #, c-format @@ -453,6 +479,10 @@ msgstr[1] "" #, c-format +msgid "%s: " +msgstr "" + +#, c-format msgid "%d translated message" msgid_plural "%d translated messages" msgstr[0] "" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-2 --- gettext-0.17/gettext-tools/tests/xgettext-2 2007-05-13 17:56:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-2 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -d xg-test2.tmp -k_ --omit-header --no-location xg-test2.in.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-test2.tmp.po > xg-test2.po +LC_ALL=C tr -d '\r' < xg-test2.tmp.po > xg-test2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-3 --- gettext-0.17/gettext-tools/tests/xgettext-3 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-3 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --no-location -k_ xg-test3.in.c 2>/dev/null \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-test3.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-test3.po tmpfiles="$tmpfiles xg-test3.ok" cat < xg-test3.ok @@ -45,6 +45,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-4 --- gettext-0.17/gettext-tools/tests/xgettext-4 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-4 2010-06-06 12:49:58.000000000 +0000 @@ -14,7 +14,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --foreign-user --no-location -k_ xg-test4.in.c \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-test4.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-test4.po tmpfiles="$tmpfiles xg-test4.ok" cat < xg-test4.ok @@ -30,6 +30,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-5 --- gettext-0.17/gettext-tools/tests/xgettext-5 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-5 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ test $? = 1 || { rm -fr $tmpfiles; exit 1; } ${XGETTEXT} --no-location -k_ --from-code=iso-8859-2 -o xg-test5.tmp xg-test5.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-test5.tmp > xg-test5.po +LC_ALL=C tr -d '\r' < xg-test5.tmp > xg-test5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test5.pot" @@ -41,6 +41,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-6 --- gettext-0.17/gettext-tools/tests/xgettext-6 2007-05-13 17:57:03.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-6 2010-06-06 12:49:58.000000000 +0000 @@ -95,7 +95,7 @@ xg-test6.jl xg-test6.java xg-test6.awk xg-test6.ycp xg-test6.tcl \ xg-test6.pl xg-test6.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-test6.tmp.po > xg-test6.po +LC_ALL=C tr -d '\r' < xg-test6.tmp.po > xg-test6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-7 gettext-0.18.1.1/gettext-tools/tests/xgettext-7 --- gettext-0.17/gettext-tools/tests/xgettext-7 2007-05-13 17:57:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-7 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --add-comments -d xg-test7.tmp xg-test7.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-test7.tmp.po > xg-test7.po +LC_ALL=C tr -d '\r' < xg-test7.tmp.po > xg-test7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test7.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-8 gettext-0.18.1.1/gettext-tools/tests/xgettext-8 --- gettext-0.17/gettext-tools/tests/xgettext-8 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-8 2010-06-06 12:49:58.000000000 +0000 @@ -40,7 +40,7 @@ test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test8.pot" -sed -e '/POT-Creation-Date/d' < xg-test8.po | tr -d '\r' > xg-test8.pot +sed -e '/POT-Creation-Date/d' < xg-test8.po | LC_ALL=C tr -d '\r' > xg-test8.pot tmpfiles="$tmpfiles xg-test8.ok" cat <<\EOF > xg-test8.ok @@ -57,6 +57,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-9 gettext-0.18.1.1/gettext-tools/tests/xgettext-9 --- gettext-0.17/gettext-tools/tests/xgettext-9 2007-05-13 17:58:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-9 2010-06-06 12:49:58.000000000 +0000 @@ -29,7 +29,7 @@ --keyword=title:1,\"xhtml-format\",\"xml-format\" \ -d xg-test9.tmp xg-test9.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-test9.tmp.po > xg-test9.po +LC_ALL=C tr -d '\r' < xg-test9.tmp.po > xg-test9.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-test9.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-awk-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-awk-1 --- gettext-0.17/gettext-tools/tests/xgettext-awk-1 2007-05-13 17:59:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-awk-1 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-a-1.tmp xg-a-1.awk test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-a-1.tmp.po > xg-a-1.po +LC_ALL=C tr -d '\r' < xg-a-1.tmp.po > xg-a-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-a-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-awk-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-awk-2 --- gettext-0.17/gettext-tools/tests/xgettext-awk-2 2007-06-18 23:18:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-awk-2 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-a-2.tmp xg-a-2.awk test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-a-2.tmp.po > xg-a-2.po +LC_ALL=C tr -d '\r' < xg-a-2.tmp.po > xg-a-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-a-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-1 --- gettext-0.17/gettext-tools/tests/xgettext-c-1 2007-05-13 17:59:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-1 2010-06-06 12:49:58.000000000 +0000 @@ -12,7 +12,7 @@ ${XGETTEXT} -d xg-c-1.tmp -k_ --omit-header --no-location \ $top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po +LC_ALL=C tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-10 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-10 --- gettext-0.17/gettext-tools/tests/xgettext-c-10 2007-05-13 18:07:16.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-10 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ --keyword=i18n:1 --keyword=i18n:1c,2 --keyword=tr:1 --keyword=tr:1,2c \ -d xg-c-10.tmp xg-c-10.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-10.tmp.po > xg-c-10.po +LC_ALL=C tr -d '\r' < xg-c-10.tmp.po > xg-c-10.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-10.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-11 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-11 --- gettext-0.17/gettext-tools/tests/xgettext-c-11 2007-05-13 18:13:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-11 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ --keyword=i18n:1 --keyword=i18n:1c,2,2t --keyword=i18n:1,2,3t \ -d xg-c-11.tmp xg-c-11.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-11.tmp.po > xg-c-11.po +LC_ALL=C tr -d '\r' < xg-c-11.tmp.po > xg-c-11.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-11.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-12 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-12 --- gettext-0.17/gettext-tools/tests/xgettext-c-12 2007-05-13 18:14:08.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-12 2010-06-06 12:49:58.000000000 +0000 @@ -15,7 +15,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-c-12.tmp xg-c-12.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-12.tmp.po > xg-c-12.po +LC_ALL=C tr -d '\r' < xg-c-12.tmp.po > xg-c-12.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-12.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-13 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-13 --- gettext-0.17/gettext-tools/tests/xgettext-c-13 2007-05-13 18:14:43.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-13 2010-06-06 12:49:58.000000000 +0000 @@ -8,15 +8,20 @@ tmpfiles="$tmpfiles xg-c-13.cc" cat <<\EOF > xg-c-13.cc foo (gettext ("on")); +tr ("stopped"); +tr ("action", ""); +tr ("deleted %n files", "", numdel); EOF tmpfiles="$tmpfiles xg-c-13.tmp.po xg-c-13.po" : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-c-13.tmp \ - --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format --qt \ + --qt \ + --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format \ + --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t \ xg-c-13.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-13.tmp.po > xg-c-13.po +LC_ALL=C tr -d '\r' < xg-c-13.tmp.po > xg-c-13.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-13.ok" @@ -24,6 +29,20 @@ #, qt-format msgid "on" msgstr "" + +msgid "stopped" +msgstr "" + +msgctxt "" +msgid "action" +msgstr "" + +#, qt-plural-format +msgctxt "" +msgid "deleted %n files" +msgid_plural "deleted %n files" +msgstr[0] "" +msgstr[1] "" EOF : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-14 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-14 --- gettext-0.17/gettext-tools/tests/xgettext-c-14 2007-05-13 18:15:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-14 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-c-14.tmp --boost xg-c-14.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-14.tmp.po > xg-c-14.po +LC_ALL=C tr -d '\r' < xg-c-14.tmp.po > xg-c-14.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } # The first 4 are not marked as c-format, because they are known as diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-15 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-15 --- gettext-0.17/gettext-tools/tests/xgettext-c-15 2007-05-13 18:15:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-15 2010-06-06 12:49:58.000000000 +0000 @@ -19,7 +19,7 @@ --keyword=Q_:1g --keyword=Q_:1g,2g \ -d xg-c-15.tmp xg-c-15.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-15.tmp.po > xg-c-15.po +LC_ALL=C tr -d '\r' < xg-c-15.tmp.po > xg-c-15.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-15.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-16 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-16 --- gettext-0.17/gettext-tools/tests/xgettext-c-16 2007-06-18 23:10:38.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-16 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-c-16.tmp xg-c-16.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-16.tmp.po > xg-c-16.po +LC_ALL=C tr -d '\r' < xg-c-16.tmp.po > xg-c-16.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-16.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-17 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-17 --- gettext-0.17/gettext-tools/tests/xgettext-c-17 2007-10-09 13:27:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-17 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ ${XGETTEXT} --omit-header --no-location -d xg-c-17.tmp --language=C++ --kde \ xg-c-17.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-17.tmp.po > xg-c-17.po +LC_ALL=C tr -d '\r' < xg-c-17.tmp.po > xg-c-17.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-17.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-18 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-18 --- gettext-0.17/gettext-tools/tests/xgettext-c-18 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-18 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,39 @@ +#! /bin/sh + +# Test C support: extraction of 'range:' flags. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles xg-c-18.c" +cat <<\EOF > xg-c-18.c +if (days > 7 && days < 14) + /* xgettext: range: 1..6 */ + printf (ngettext ("one week and one day", "one week and %d days", + days - 7), + days - 7); +EOF + +tmpfiles="$tmpfiles xg-c-18.tmp.po xg-c-18.po" +: ${XGETTEXT=xgettext} +${XGETTEXT} --omit-header --no-location -d xg-c-18.tmp xg-c-18.c +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < xg-c-18.tmp.po > xg-c-18.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles xg-c-18.ok" +cat < xg-c-18.ok +#, c-format, range: 1..6 +msgid "one week and one day" +msgid_plural "one week and %d days" +msgstr[0] "" +msgstr[1] "" +EOF + +: ${DIFF=diff} +${DIFF} xg-c-18.ok xg-c-18.po +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-2 --- gettext-0.17/gettext-tools/tests/xgettext-c-2 2007-05-13 18:00:49.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-2 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -d xg-c-2.tmp -k_ --omit-header --no-location xg-c-2.in.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-2.tmp.po > xg-c-2.po +LC_ALL=C tr -d '\r' < xg-c-2.tmp.po > xg-c-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-3 --- gettext-0.17/gettext-tools/tests/xgettext-c-3 2007-05-13 18:01:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-3 2010-06-06 12:49:58.000000000 +0000 @@ -17,7 +17,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --add-location -d xg-c-3.tmp xg-c-3.in.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-3.tmp.po > xg-c-3.po +LC_ALL=C tr -d '\r' < xg-c-3.tmp.po > xg-c-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-4 --- gettext-0.17/gettext-tools/tests/xgettext-c-4 2007-05-13 18:02:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-4 2010-06-06 12:49:58.000000000 +0000 @@ -14,7 +14,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location --trigraphs -d xg-c-4.tmp xg-c-4.in.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-4.tmp.po > xg-c-4.po +LC_ALL=C tr -d '\r' < xg-c-4.tmp.po > xg-c-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-5 --- gettext-0.17/gettext-tools/tests/xgettext-c-5 2007-05-13 18:03:33.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-5 2010-06-06 12:49:58.000000000 +0000 @@ -14,7 +14,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location --add-comments -d xg-c-5.tmp xg-c-5.in.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-5.tmp.po > xg-c-5.po +LC_ALL=C tr -d '\r' < xg-c-5.tmp.po > xg-c-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-6 --- gettext-0.17/gettext-tools/tests/xgettext-c-6 2007-05-13 18:04:21.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-6 2010-06-06 12:49:58.000000000 +0000 @@ -25,7 +25,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=XXX \ -d xg-c-6.tmp xg-c-6.in.C test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-6.tmp.po > xg-c-6.po +LC_ALL=C tr -d '\r' < xg-c-6.tmp.po > xg-c-6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-7 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-7 --- gettext-0.17/gettext-tools/tests/xgettext-c-7 2007-05-13 18:05:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-7 2010-06-06 12:49:58.000000000 +0000 @@ -44,7 +44,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -c --c++ -d xg-c-7.tmp xg-c-7.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-7.tmp.po > xg-c-7.po +LC_ALL=C tr -d '\r' < xg-c-7.tmp.po > xg-c-7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-7.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-8 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-8 --- gettext-0.17/gettext-tools/tests/xgettext-c-8 2007-05-13 18:05:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-8 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -k_ -o xg-c-8.tmp xg-c-8.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-8.tmp > xg-c-8.po +LC_ALL=C tr -d '\r' < xg-c-8.tmp > xg-c-8.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-8.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-c-9 gettext-0.18.1.1/gettext-tools/tests/xgettext-c-9 --- gettext-0.17/gettext-tools/tests/xgettext-c-9 2007-05-13 18:06:39.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-c-9 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-c-9.tmp xg-c-9.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-c-9.tmp.po > xg-c-9.po +LC_ALL=C tr -d '\r' < xg-c-9.tmp.po > xg-c-9.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-c-9.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-1 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-1 2007-05-13 18:16:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-1 2010-06-06 12:49:58.000000000 +0000 @@ -33,7 +33,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -c -d xg-cs-1.tmp xg-cs-1.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-cs-1.tmp.po > xg-cs-1.po +LC_ALL=C tr -d '\r' < xg-cs-1.tmp.po > xg-cs-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-2 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-2 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-2 2010-06-06 12:49:58.000000000 +0000 @@ -29,7 +29,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --add-location -c --from-code=UTF-8 xg-cs-2.cs \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-cs-2.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-cs-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-2.ok" @@ -47,6 +47,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-3 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-3 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-3 2010-06-06 12:49:58.000000000 +0000 @@ -6,7 +6,7 @@ trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles xg-cs-3.cs" -tr '%' '\015' <<\EOF > xg-cs-3.cs +LC_ALL=C tr '%' '\015' <<\EOF > xg-cs-3.cs class TestCase { public static void Main (String[] args) { // Test recognition of \u escapes. @@ -55,7 +55,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --add-location -c -kMyGetString:2 xg-cs-3.cs 2>/dev/null \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-cs-3.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-cs-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-3.ok" @@ -73,6 +73,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-4 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-4 2007-05-13 18:19:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-4 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ ${XGETTEXT} --omit-header --no-location --keyword=MyPluralString:2,3 \ -d xg-cs-4.tmp xg-cs-4.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-cs-4.tmp.po > xg-cs-4.po +LC_ALL=C tr -d '\r' < xg-cs-4.tmp.po > xg-cs-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-5 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-5 2007-05-13 18:19:07.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-5 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-cs-5.tmp xg-cs-5.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-cs-5.tmp.po > xg-cs-5.po +LC_ALL=C tr -d '\r' < xg-cs-5.tmp.po > xg-cs-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-6 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-6 2007-06-18 23:20:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-6 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-cs-6.tmp xg-cs-6.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-cs-6.tmp.po > xg-cs-6.po +LC_ALL=C tr -d '\r' < xg-cs-6.tmp.po > xg-cs-6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-csharp-7 gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-7 --- gettext-0.17/gettext-tools/tests/xgettext-csharp-7 2007-09-02 09:30:28.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-csharp-7 2010-06-06 12:49:58.000000000 +0000 @@ -15,7 +15,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-cs-7.tmp xg-cs-7.cs test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-cs-7.tmp.po > xg-cs-7.po +LC_ALL=C tr -d '\r' < xg-cs-7.tmp.po > xg-cs-7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-cs-7.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-elisp-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-elisp-1 --- gettext-0.17/gettext-tools/tests/xgettext-elisp-1 2007-05-13 18:20:23.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-elisp-1 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-el-1.tmp xg-el-1.el test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-el-1.tmp.po > xg-el-1.po +LC_ALL=C tr -d '\r' < xg-el-1.tmp.po > xg-el-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-el-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-elisp-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-elisp-2 --- gettext-0.17/gettext-tools/tests/xgettext-elisp-2 2007-06-18 23:48:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-elisp-2 2010-06-06 12:49:58.000000000 +0000 @@ -21,7 +21,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-el-2.tmp xg-el-2.el test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-el-2.tmp.po > xg-el-2.po +LC_ALL=C tr -d '\r' < xg-el-2.tmp.po > xg-el-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-el-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-glade-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-1 --- gettext-0.17/gettext-tools/tests/xgettext-glade-1 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-1 2010-06-06 12:49:58.000000000 +0000 @@ -1354,6 +1354,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-glade-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-2 --- gettext-0.17/gettext-tools/tests/xgettext-glade-2 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-2 2010-06-06 12:49:58.000000000 +0000 @@ -63,7 +63,9 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --add-comments -o xg-gl-2.tmp simple.glade test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-gl-2.tmp > xg-gl-2.pot +# Don't simplify this to "grep ... < xg-gl-2.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-gl-2.tmp | grep -v 'POT-Creation-Date' > xg-gl-2.pot tmpfiles="$tmpfiles xg-gl-2.ok" cat <<\EOF > xg-gl-2.ok @@ -80,6 +82,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-glade-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-3 --- gettext-0.17/gettext-tools/tests/xgettext-glade-3 2006-06-09 20:22:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-3 2010-06-06 12:49:58.000000000 +0000 @@ -170,7 +170,9 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-gl-3.tmp asciitable.glade2 test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-gl-3.tmp > xg-gl-3.pot +# Don't simplify this to "grep ... < xg-gl-3.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-gl-3.tmp | grep -v 'POT-Creation-Date' > xg-gl-3.pot tmpfiles="$tmpfiles xg-gl-3.ok" cat <<\EOF > xg-gl-3.ok @@ -187,6 +189,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-glade-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-4 --- gettext-0.17/gettext-tools/tests/xgettext-glade-4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-glade-4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,82 @@ +#!/bin/sh + +# Test of Glade 2 support. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles empty.glade" +cat < empty.glade + + +EOF + +tmpfiles="$tmpfiles xg-gl-4.pot" +: ${XGETTEXT=xgettext} +${XGETTEXT} -o xg-gl-4.pot empty.glade 2>/dev/null +test $? = 0 || { + echo "Skipping test: xgettext was built without Glade support" + rm -fr $tmpfiles; exit 77 +} + +tmpfiles="$tmpfiles xg-gl-4.glade" +cat < xg-gl-4.glade + + + + + + + + True + True + True + Form + 0 + + + + +EOF + +tmpfiles="$tmpfiles xg-gl-4.tmp xg-gl-4.pot" +: ${XGETTEXT=xgettext} +${XGETTEXT} -o xg-gl-4.tmp xg-gl-4.glade +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +# Don't simplify this to "grep ... < xg-gl-4.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-gl-4.tmp | grep -v 'POT-Creation-Date' > xg-gl-4.pot + +tmpfiles="$tmpfiles xg-gl-4.ok" +cat <<\EOF > xg-gl-4.ok +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Form means shape here +#: xg-gl-4.glade:11 +msgid "Form" +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-gl-4.ok xg-gl-4.pot +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-1 --- gettext-0.17/gettext-tools/tests/xgettext-java-1 2007-05-13 18:20:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-1 2010-06-06 12:49:58.000000000 +0000 @@ -35,7 +35,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -c -d xg-j-1.tmp xg-j-1.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-1.tmp.po > xg-j-1.po +LC_ALL=C tr -d '\r' < xg-j-1.tmp.po > xg-j-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-2 --- gettext-0.17/gettext-tools/tests/xgettext-java-2 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-2 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,9 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --from-code=ISO-8859-1 -c -o xg-j-2.tmp xg-j-2.java 2>/dev/null test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-j-2.tmp | tr -d '\r' > xg-j-2.pot +# Don't simplify this to "grep ... < xg-j-2.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-j-2.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-j-2.pot tmpfiles="$tmpfiles xg-j-2.ok" cat <<\EOF > xg-j-2.ok @@ -79,6 +81,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-3 --- gettext-0.17/gettext-tools/tests/xgettext-java-3 2007-05-13 18:22:34.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-3 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-j-3.tmp xg-j-3.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-3.tmp.po > xg-j-3.po +LC_ALL=C tr -d '\r' < xg-j-3.tmp.po > xg-j-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-4 --- gettext-0.17/gettext-tools/tests/xgettext-java-4 2007-05-13 18:23:11.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-4 2010-06-06 12:49:58.000000000 +0000 @@ -21,7 +21,7 @@ ${XGETTEXT} --omit-header --no-location --keyword=ngettext:2,3 \ -d xg-j-4.tmp xg-j-4.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-4.tmp.po > xg-j-4.po +LC_ALL=C tr -d '\r' < xg-j-4.tmp.po > xg-j-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-5 --- gettext-0.17/gettext-tools/tests/xgettext-java-5 2007-05-13 18:23:56.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-5 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-j-5.tmp xg-j-5.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-5.tmp.po > xg-j-5.po +LC_ALL=C tr -d '\r' < xg-j-5.tmp.po > xg-j-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-6 --- gettext-0.17/gettext-tools/tests/xgettext-java-6 2007-06-18 23:28:27.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-6 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-j-6.tmp xg-j-6.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-6.tmp.po > xg-j-6.po +LC_ALL=C tr -d '\r' < xg-j-6.tmp.po > xg-j-6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-java-7 gettext-0.18.1.1/gettext-tools/tests/xgettext-java-7 --- gettext-0.17/gettext-tools/tests/xgettext-java-7 2007-09-02 09:27:09.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-java-7 2010-06-06 12:49:58.000000000 +0000 @@ -16,7 +16,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-j-7.tmp xg-j-7.java test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-j-7.tmp.po > xg-j-7.po +LC_ALL=C tr -d '\r' < xg-j-7.tmp.po > xg-j-7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-j-7.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-librep-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-librep-1 --- gettext-0.17/gettext-tools/tests/xgettext-librep-1 2007-05-13 18:24:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-librep-1 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-lr-1.tmp xg-lr-1.jl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-lr-1.tmp.po > xg-lr-1.po +LC_ALL=C tr -d '\r' < xg-lr-1.tmp.po > xg-lr-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-lr-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-librep-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-librep-2 --- gettext-0.17/gettext-tools/tests/xgettext-librep-2 2007-06-18 23:31:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-librep-2 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-lr-2.tmp xg-lr-2.jl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-lr-2.tmp.po > xg-lr-2.po +LC_ALL=C tr -d '\r' < xg-lr-2.tmp.po > xg-lr-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-lr-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-lisp-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-lisp-1 --- gettext-0.17/gettext-tools/tests/xgettext-lisp-1 2007-05-13 18:25:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-lisp-1 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-ls-1.tmp xg-ls-1.lisp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ls-1.tmp.po > xg-ls-1.po +LC_ALL=C tr -d '\r' < xg-ls-1.tmp.po > xg-ls-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ls-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-lisp-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-lisp-2 --- gettext-0.17/gettext-tools/tests/xgettext-lisp-2 2007-06-18 23:33:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-lisp-2 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-ls-2.tmp xg-ls-2.lisp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ls-2.tmp.po > xg-ls-2.po +LC_ALL=C tr -d '\r' < xg-ls-2.tmp.po > xg-ls-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ls-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-objc-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-objc-1 --- gettext-0.17/gettext-tools/tests/xgettext-objc-1 2007-05-13 18:25:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-objc-1 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header -k_ -kNSLocalizedString -d xg-ob-1.tmp xg-ob-1.m test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ob-1.tmp.po > xg-ob-1.po +LC_ALL=C tr -d '\r' < xg-ob-1.tmp.po > xg-ob-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ob-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-objc-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-objc-2 --- gettext-0.17/gettext-tools/tests/xgettext-objc-2 2007-05-13 18:26:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-objc-2 2010-06-06 12:49:58.000000000 +0000 @@ -32,7 +32,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-ob-2.tmp xg-ob-2.m test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ob-2.tmp.po > xg-ob-2.po +LC_ALL=C tr -d '\r' < xg-ob-2.tmp.po > xg-ob-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ob-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-1 --- gettext-0.17/gettext-tools/tests/xgettext-perl-1 2007-05-13 18:26:59.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-1 2010-06-06 12:49:58.000000000 +0000 @@ -144,6 +144,10 @@ If you have gettext()'d foo bar test3'... =cut +gettext "Before slash-slash"; +print $foo // 'undef'; +gettext "After slash-slash"; + __END__ gettext "Discarded!"; EOF @@ -156,7 +160,7 @@ -k\$__ --flag=\$__:1:pass-perl-format --flag=\$__:1:pass-perl-brace-format \ -d xg-pl-1.tmp xg-pl-1.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pl-1.tmp.po > xg-pl-1.po +LC_ALL=C tr -d '\r' < xg-pl-1.tmp.po > xg-pl-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-1.ok" @@ -319,6 +323,14 @@ #, perl-format, no-perl-brace-format msgid "Left as an %exercise to {maintainer}." msgstr "" + +#: xg-pl-1.pl:138 +msgid "Before slash-slash" +msgstr "" + +#: xg-pl-1.pl:140 +msgid "After slash-slash" +msgstr "" EOF : ${DIFF=diff} diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-2 --- gettext-0.17/gettext-tools/tests/xgettext-perl-2 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-2 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --from-code=ISO-8859-1 xg-pl-2.pl \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-pl-2.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-pl-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-2.ok" @@ -36,6 +36,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-3 --- gettext-0.17/gettext-tools/tests/xgettext-perl-3 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-3 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ : ${XGETTEXT=xgettext} # delete POT-Creation-Date: line because the date depends on local time. ${XGETTEXT} --output - --from-code=UTF-8 xg-pl-3.pl \ - | sed '/\"POT-Creation-Date:.*/d' | tr -d '\r' > xg-pl-3.po + | sed '/\"POT-Creation-Date:.*/d' | LC_ALL=C tr -d '\r' > xg-pl-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-3.ok" @@ -36,6 +36,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-4 --- gettext-0.17/gettext-tools/tests/xgettext-perl-4 2007-05-13 18:28:10.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-4 2010-06-06 12:49:58.000000000 +0000 @@ -62,7 +62,7 @@ LC_MESSAGES=C LC_ALL= \ ${XGETTEXT} -a --omit-header --no-location -o xg-pl-4.tmp.pot xg-pl-4.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pl-4.tmp.pot > xg-pl-4.pot +LC_ALL=C tr -d '\r' < xg-pl-4.tmp.pot > xg-pl-4.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-5 --- gettext-0.17/gettext-tools/tests/xgettext-perl-5 2007-05-13 18:28:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-5 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-pl-5.tmp xg-pl-5.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pl-5.tmp.po > xg-pl-5.po +LC_ALL=C tr -d '\r' < xg-pl-5.tmp.po > xg-pl-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-6 --- gettext-0.17/gettext-tools/tests/xgettext-perl-6 2007-05-13 18:29:44.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-6 2010-06-06 12:49:58.000000000 +0000 @@ -71,7 +71,7 @@ LC_MESSAGES=C LC_ALL= \ ${XGETTEXT} --omit-header --no-location -o xg-pl-6.tmp xg-pl-6.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pl-6.tmp > xg-pl-6.pot +LC_ALL=C tr -d '\r' < xg-pl-6.tmp > xg-pl-6.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-7 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-7 --- gettext-0.17/gettext-tools/tests/xgettext-perl-7 2007-06-18 23:39:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-7 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-pl-7.tmp xg-pl-7.pl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pl-7.tmp.po > xg-pl-7.po +LC_ALL=C tr -d '\r' < xg-pl-7.tmp.po > xg-pl-7.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pl-7.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-perl-8 gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-8 --- gettext-0.17/gettext-tools/tests/xgettext-perl-8 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-perl-8 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,133 @@ +#! /bin/sh + +# The slash (/) and the question mark (?) serve a double-purpose in Perl. +# Depending on the context they can either be an operator (division +# or ternary respectively) or they are regex delimiters for pattern +# matches. This test case checks the proper recognition. + +tmpfiles="" +trap 'rm -fr $tmpfiles' 1 2 3 15 + +tmpfiles="$tmpfiles xg-pl-8.pl" +cat <<\EOF > xg-pl-8.pl +info(__("using %s."), ($a->b() eq "auto" ? "" : "")); + +print __"Question mark after string is an operator!\n"; +# ?; Re-sync. + +@times = sort {$a - $b} split /,\s*/, $options + if (defined $options && $options); + +print __"First slash in a an argument to a function starts a pattern match."; +# /; Re-sync. + +$0 =~ /xyz/ ? 'foo' : 'bar'; + +print __"Question mark after a regular pattern match is an operator!"; +# ?; Re-sync. + +$0 =~ m{xyz} ? 'foo' : 'bar'; + +print __"Question mark after a nesting pattern match is an operator!"; +# ?; Re-sync. + +$0 =~ m|xyz| ? 'foo' : 'bar'; + +print __"Question mark after a non-nesting pattern match is an operator!"; +# ?; Re-sync. + +print __(<method ? 1 : 0; + +print __"Class method calls without parentheses do not accept arguments!"; +# ?; Re-sync. + +$foo = $Something->method ? 1 : 0; + +print __"Instance method calls without parentheses do not accept arguments!"; +# ?; Re-sync. + +$foo = $Some->thing->method ? 1 : 0; + +print __"Chained method calls without parentheses do not accept arguments!"; +# ?; Re-sync. + +print __"Synching works."; +EOF + +tmpfiles="$tmpfiles xg-pl-8.tmp.po xg-pl-8.po" +: ${XGETTEXT=xgettext} +${XGETTEXT} --omit-header -n \ + -k__ \ + -d xg-pl-8.tmp xg-pl-8.pl +test $? = 0 || { rm -fr $tmpfiles; exit 1; } +LC_ALL=C tr -d '\r' < xg-pl-8.tmp.po > xg-pl-8.po +test $? = 0 || { rm -fr $tmpfiles; exit 1; } + +tmpfiles="$tmpfiles xg-pl-8.ok" +cat <<\EOF > xg-pl-8.ok +#: xg-pl-8.pl:1 +#, perl-format +msgid "using %s." +msgstr "" + +#: xg-pl-8.pl:3 +msgid "Question mark after string is an operator!\n" +msgstr "" + +#: xg-pl-8.pl:9 +msgid "First slash in a an argument to a function starts a pattern match." +msgstr "" + +#: xg-pl-8.pl:14 +msgid "Question mark after a regular pattern match is an operator!" +msgstr "" + +#: xg-pl-8.pl:19 +msgid "Question mark after a nesting pattern match is an operator!" +msgstr "" + +#: xg-pl-8.pl:24 +msgid "Question mark after a non-nesting pattern match is an operator!" +msgstr "" + +#: xg-pl-8.pl:28 +msgid "Line number for here documents is not correct.\n" +msgstr "" + +#: xg-pl-8.pl:33 +msgid "The function wantarray does not take arguments!" +msgstr "" + +#: xg-pl-8.pl:38 +msgid "Class method calls without parentheses do not accept arguments!" +msgstr "" + +#: xg-pl-8.pl:43 +msgid "Instance method calls without parentheses do not accept arguments!" +msgstr "" + +#: xg-pl-8.pl:48 +msgid "Chained method calls without parentheses do not accept arguments!" +msgstr "" + +#: xg-pl-8.pl:51 +msgid "Synching works." +msgstr "" +EOF + +: ${DIFF=diff} +${DIFF} xg-pl-8.ok xg-pl-8.po +result=$? + +rm -fr $tmpfiles + +exit $result diff -Nru gettext-0.17/gettext-tools/tests/xgettext-php-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-php-1 --- gettext-0.17/gettext-tools/tests/xgettext-php-1 2007-05-13 19:40:22.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-php-1 2010-06-06 12:49:58.000000000 +0000 @@ -30,7 +30,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-ph-1.tmp xg-ph-1.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ph-1.tmp.po > xg-ph-1.po +LC_ALL=C tr -d '\r' < xg-ph-1.tmp.po > xg-ph-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ph-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-php-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-php-2 --- gettext-0.17/gettext-tools/tests/xgettext-php-2 2007-05-13 18:38:29.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-php-2 2010-06-06 12:49:58.000000000 +0000 @@ -46,7 +46,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-ph-2.tmp xg-ph-2.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ph-2.tmp.po > xg-ph-2.po +LC_ALL=C tr -d '\r' < xg-ph-2.tmp.po > xg-ph-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ph-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-php-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-php-3 --- gettext-0.17/gettext-tools/tests/xgettext-php-3 2007-07-04 23:35:01.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-php-3 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-ph-3.tmp xg-ph-3.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ph-3.tmp.po > xg-ph-3.po +LC_ALL=C tr -d '\r' < xg-ph-3.tmp.po > xg-ph-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ph-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-php-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-php-4 --- gettext-0.17/gettext-tools/tests/xgettext-php-4 2007-07-04 23:42:30.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-php-4 2010-06-06 12:49:58.000000000 +0000 @@ -22,7 +22,7 @@ ${XGETTEXT} --omit-header --no-location --extract-all \ -d xg-ph-4.tmp xg-ph-4.php test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-ph-4.tmp.po > xg-ph-4.po +LC_ALL=C tr -d '\r' < xg-ph-4.tmp.po > xg-ph-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-ph-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-po-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-po-1 --- gettext-0.17/gettext-tools/tests/xgettext-po-1 2007-05-13 18:39:12.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-po-1 2010-06-06 12:49:58.000000000 +0000 @@ -50,7 +50,7 @@ ${XGETTEXT} --omit-header -n \ -d xg-po-1.tmp xg-po-1.in.po xg-po-1.c xg-po-1.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-po-1.tmp.po > xg-po-1.po +LC_ALL=C tr -d '\r' < xg-po-1.tmp.po > xg-po-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-po-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-properties-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-properties-1 --- gettext-0.17/gettext-tools/tests/xgettext-properties-1 2007-05-13 18:39:50.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-properties-1 2010-06-06 12:49:58.000000000 +0000 @@ -47,7 +47,7 @@ ${XGETTEXT} --omit-header -n \ -d xg-pr-1.tmp xg-pr-1.in.properties xg-pr-1.c xg-pr-1.cc test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-pr-1.tmp.po > xg-pr-1.po +LC_ALL=C tr -d '\r' < xg-pr-1.tmp.po > xg-pr-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-pr-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-python-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-python-1 --- gettext-0.17/gettext-tools/tests/xgettext-python-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-python-1 2010-06-06 12:49:58.000000000 +0000 @@ -22,13 +22,18 @@ # interpret_ansic = false, interpret_unicode = true _(ur"abc\ \\def\'ghi\"jkl\a\b\f\n\r\t\v x\040x\x7ey\u0142\U00010123\N{LATIN SMALL LETTER Z}"); + +# This will not be extracted. +_(CATEGORIES["default"]["name"]); EOF tmpfiles="$tmpfiles xg-py-1.err xg-py-1.tmp xg-py-1.pot" : ${XGETTEXT=xgettext} ${XGETTEXT} --add-comments --no-location -o xg-py-1.tmp xg-py-1.py 2>xg-py-1.err test $? = 0 || { cat xg-py-1.err; rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-py-1.tmp | tr -d '\r' > xg-py-1.pot +# Don't simplify this to "grep ... < xg-py-1.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-py-1.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-py-1.pot tmpfiles="$tmpfiles xg-py-1.ok" cat <<\EOF > xg-py-1.ok @@ -45,6 +50,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-python-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-python-2 --- gettext-0.17/gettext-tools/tests/xgettext-python-2 2007-05-13 18:40:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-python-2 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-py-2.tmp xg-py-2.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-py-2.tmp.po > xg-py-2.po +LC_ALL=C tr -d '\r' < xg-py-2.tmp.po > xg-py-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-py-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-python-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-python-3 --- gettext-0.17/gettext-tools/tests/xgettext-python-3 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-python-3 2010-06-06 12:49:58.000000000 +0000 @@ -35,6 +35,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -54,7 +55,9 @@ ${XGETTEXT} --add-comments=TRANSLATORS: --no-location --from-code=euc-jp \ -o xg-py-3a.tmp xg-py-3a.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-py-3a.tmp | tr -d '\r' > xg-py-3a.pot +# Don't simplify this to "grep ... < xg-py-3a.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-py-3a.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-py-3a.pot : ${DIFF=diff} ${DIFF} xg-py-3.ok xg-py-3a.pot @@ -66,7 +69,9 @@ ${XGETTEXT} --add-comments=TRANSLATORS: --no-location \ -o xg-py-3b.tmp xg-py-3b.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-py-3b.tmp | tr -d '\r' > xg-py-3b.pot +# Don't simplify this to "grep ... < xg-py-3b.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-py-3b.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-py-3b.pot ${DIFF} xg-py-3.ok xg-py-3b.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } @@ -78,7 +83,9 @@ ${XGETTEXT} --add-comments=TRANSLATORS: --no-location --from-code=iso-8859-1 \ -o xg-py-3c.tmp xg-py-3b.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-py-3c.tmp | tr -d '\r' > xg-py-3c.pot +# Don't simplify this to "grep ... < xg-py-3c.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-py-3c.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-py-3c.pot ${DIFF} xg-py-3.ok xg-py-3c.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } @@ -98,7 +105,9 @@ ${XGETTEXT} --add-comments=TRANSLATORS: \ -o xg-py-3d.tmp xg-py-3d.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-py-3d.tmp | tr -d '\r' > xg-py-3d.pot +# Don't simplify this to "grep ... < xg-py-3d.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-py-3d.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-py-3d.pot tmpfiles="$tmpfiles xg-py-3d.ok" cat <<\EOF > xg-py-3d.ok @@ -115,6 +124,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-python-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-python-4 --- gettext-0.17/gettext-tools/tests/xgettext-python-4 2007-06-18 23:46:35.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-python-4 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-py-3.tmp xg-py-3.py test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-py-3.tmp.po > xg-py-3.po +LC_ALL=C tr -d '\r' < xg-py-3.tmp.po > xg-py-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-py-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-scheme-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-scheme-1 --- gettext-0.17/gettext-tools/tests/xgettext-scheme-1 2007-05-13 18:41:36.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-scheme-1 2010-06-06 12:49:58.000000000 +0000 @@ -21,7 +21,7 @@ ${XGETTEXT} -k_ --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-sc-1.tmp xg-sc-1.scm test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sc-1.tmp.po > xg-sc-1.po +LC_ALL=C tr -d '\r' < xg-sc-1.tmp.po > xg-sc-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sc-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-scheme-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-scheme-3 --- gettext-0.17/gettext-tools/tests/xgettext-scheme-3 2007-06-18 23:48:45.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-scheme-3 2010-06-06 12:49:58.000000000 +0000 @@ -21,7 +21,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-sc-3.tmp xg-sc-3.scm test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sc-3.tmp.po > xg-sc-3.po +LC_ALL=C tr -d '\r' < xg-sc-3.tmp.po > xg-sc-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sc-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-1 --- gettext-0.17/gettext-tools/tests/xgettext-sh-1 2007-05-13 18:42:57.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-1 2010-06-06 12:49:58.000000000 +0000 @@ -470,7 +470,7 @@ ${XGETTEXT} --omit-header --no-location --keyword=ngettext:1 \ -d xg-sh-1.tmp xg-sh-1.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-1.tmp.po > xg-sh-1.po +LC_ALL=C tr -d '\r' < xg-sh-1.tmp.po > xg-sh-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-2 --- gettext-0.17/gettext-tools/tests/xgettext-sh-2 2007-05-13 18:43:41.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-2 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-sh-2.tmp xg-sh-2.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-2.tmp.po > xg-sh-2.po +LC_ALL=C tr -d '\r' < xg-sh-2.tmp.po > xg-sh-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-3 --- gettext-0.17/gettext-tools/tests/xgettext-sh-3 2007-05-13 18:44:15.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-3 2010-06-06 12:49:58.000000000 +0000 @@ -14,7 +14,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-sh-3.tmp xg-sh-3.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-3.tmp.po > xg-sh-3.po +LC_ALL=C tr -d '\r' < xg-sh-3.tmp.po > xg-sh-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-4 --- gettext-0.17/gettext-tools/tests/xgettext-sh-4 2007-05-13 18:45:13.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-4 2010-06-06 12:49:58.000000000 +0000 @@ -120,7 +120,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-sh-4.tmp xg-sh-4.sh 2>xg-sh-4.err test $? = 0 || { cat xg-sh-4.err; rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-4.tmp.po > xg-sh-4.po +LC_ALL=C tr -d '\r' < xg-sh-4.tmp.po > xg-sh-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-4.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-5 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-5 --- gettext-0.17/gettext-tools/tests/xgettext-sh-5 2007-05-13 18:45:58.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-5 2010-06-06 12:49:58.000000000 +0000 @@ -21,7 +21,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-sh-5.tmp xg-sh-5.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-5.tmp.po > xg-sh-5.po +LC_ALL=C tr -d '\r' < xg-sh-5.tmp.po > xg-sh-5.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-5.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-sh-6 gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-6 --- gettext-0.17/gettext-tools/tests/xgettext-sh-6 2007-06-18 23:54:48.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-sh-6 2010-06-06 12:49:58.000000000 +0000 @@ -16,7 +16,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-sh-6.tmp xg-sh-6.sh test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-sh-6.tmp.po > xg-sh-6.po +LC_ALL=C tr -d '\r' < xg-sh-6.tmp.po > xg-sh-6.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-sh-6.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-smalltalk-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-smalltalk-1 --- gettext-0.17/gettext-tools/tests/xgettext-smalltalk-1 2007-05-13 18:56:04.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-smalltalk-1 2010-06-06 12:49:58.000000000 +0000 @@ -24,7 +24,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-st-1.tmp xg-st-1.st test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-st-1.tmp.po > xg-st-1.po +LC_ALL=C tr -d '\r' < xg-st-1.tmp.po > xg-st-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-st-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-smalltalk-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-smalltalk-2 --- gettext-0.17/gettext-tools/tests/xgettext-smalltalk-2 2007-06-18 23:59:02.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-smalltalk-2 2010-06-06 12:49:58.000000000 +0000 @@ -20,7 +20,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location \ -d xg-st-2.tmp xg-st-2.st test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-st-2.tmp.po > xg-st-2.po +LC_ALL=C tr -d '\r' < xg-st-2.tmp.po > xg-st-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-st-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-stringtable-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-stringtable-1 --- gettext-0.17/gettext-tools/tests/xgettext-stringtable-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-stringtable-1 2010-06-06 12:49:58.000000000 +0000 @@ -27,7 +27,9 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} -o xg-st-1.tmp xg-st-1.strings test $? = 0 || { rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-st-1.tmp | tr -d '\r' > xg-st-1.po +# Don't simplify this to "grep ... < xg-st-1.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-st-1.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-st-1.po tmpfiles="$tmpfiles xg-st-1.ok" cat <<\EOF > xg-st-1.ok @@ -44,6 +46,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-tcl-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-1 --- gettext-0.17/gettext-tools/tests/xgettext-tcl-1 2007-10-20 20:01:32.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-1 2010-06-06 12:49:58.000000000 +0000 @@ -28,7 +28,9 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --add-comments --no-location -k_ -o xg-t-1.tmp xg-t-1.tcl 2>xg-t-1.err test $? = 0 || { cat xg-t-1.err; rm -fr $tmpfiles; exit 1; } -grep -v 'POT-Creation-Date' < xg-t-1.tmp | tr -d '\r' > xg-t-1.pot +# Don't simplify this to "grep ... < xg-t-1.tmp", otherwise OpenBSD 4.0 grep +# only outputs "Binary file (standard input) matches". +cat xg-t-1.tmp | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > xg-t-1.pot tmpfiles="$tmpfiles xg-t-1.ok" cat <<\EOF > xg-t-1.ok @@ -45,6 +47,7 @@ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-tcl-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-2 --- gettext-0.17/gettext-tools/tests/xgettext-tcl-2 2007-05-13 18:56:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-2 2010-06-06 12:49:58.000000000 +0000 @@ -23,7 +23,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: -k_ \ -d xg-t-2.tmp xg-t-2.tcl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-t-2.tmp.po > xg-t-2.po +LC_ALL=C tr -d '\r' < xg-t-2.tmp.po > xg-t-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-t-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-tcl-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-3 --- gettext-0.17/gettext-tools/tests/xgettext-tcl-3 2007-06-19 00:04:42.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-tcl-3 2010-06-06 12:49:58.000000000 +0000 @@ -17,7 +17,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-t-3.tmp xg-t-3.tcl test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-t-3.tmp.po > xg-t-3.po +LC_ALL=C tr -d '\r' < xg-t-3.tmp.po > xg-t-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-t-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-ycp-1 gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-1 --- gettext-0.17/gettext-tools/tests/xgettext-ycp-1 2007-05-13 18:57:17.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-1 2010-06-06 12:49:58.000000000 +0000 @@ -15,7 +15,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -k:1,2 -d xg-y-1.tmp xg-y-1.ycp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-y-1.tmp.po > xg-y-1.po +LC_ALL=C tr -d '\r' < xg-y-1.tmp.po > xg-y-1.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-y-1.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-ycp-2 gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-2 --- gettext-0.17/gettext-tools/tests/xgettext-ycp-2 2007-05-13 18:57:53.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-2 2010-06-06 12:49:58.000000000 +0000 @@ -26,7 +26,7 @@ ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \ -d xg-y-2.tmp xg-y-2.ycp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po +LC_ALL=C tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-y-2.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-ycp-3 gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-3 --- gettext-0.17/gettext-tools/tests/xgettext-ycp-3 2007-05-13 18:58:26.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-3 2010-06-06 12:49:58.000000000 +0000 @@ -17,7 +17,7 @@ : ${XGETTEXT=xgettext} ${XGETTEXT} --omit-header --no-location -d xg-y-3.tmp xg-y-3.ycp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-y-3.tmp.po > xg-y-3.po +LC_ALL=C tr -d '\r' < xg-y-3.tmp.po > xg-y-3.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-y-3.ok" diff -Nru gettext-0.17/gettext-tools/tests/xgettext-ycp-4 gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-4 --- gettext-0.17/gettext-tools/tests/xgettext-ycp-4 2007-06-19 00:06:31.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/tests/xgettext-ycp-4 2010-06-06 12:49:58.000000000 +0000 @@ -18,7 +18,7 @@ ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \ -d xg-y-4.tmp xg-y-4.ycp test $? = 0 || { rm -fr $tmpfiles; exit 1; } -tr -d '\r' < xg-y-4.tmp.po > xg-y-4.po +LC_ALL=C tr -d '\r' < xg-y-4.tmp.po > xg-y-4.po test $? = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles xg-y-4.ok" diff -Nru gettext-0.17/gettext-tools/woe32dll/export.h gettext-0.18.1.1/gettext-tools/woe32dll/export.h --- gettext-0.17/gettext-tools/woe32dll/export.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/woe32dll/export.h 2010-06-06 12:49:58.000000000 +0000 @@ -95,12 +95,12 @@ /* Ensure that the variable x is exported from the library, and that a pseudo-variable IMP(x) is available. */ #define VARIABLE(x) \ - /* Export x without redefining x. This code was found by compiling a \ - snippet: \ - extern __declspec(dllexport) int x; int x = 42; */ \ - asm (".section .drectve\n"); \ - asm (".ascii \" -export:" #x ",data\"\n"); \ - asm (".data\n"); \ - /* Allocate a pseudo-variable IMP(x). */ \ - extern int x; \ + /* Export x without redefining x. This code was found by compiling a \ + snippet: \ + extern __declspec(dllexport) int x; int x = 42; */ \ + asm (".section .drectve\n"); \ + asm (".ascii \" -export:" #x ",data\"\n"); \ + asm (".data\n"); \ + /* Allocate a pseudo-variable IMP(x). */ \ + extern int x; \ void * IMP(x) = &x; diff -Nru gettext-0.17/gettext-tools/woe32dll/gettextlib-exports.c gettext-0.18.1.1/gettext-tools/woe32dll/gettextlib-exports.c --- gettext-0.17/gettext-tools/woe32dll/gettextlib-exports.c 2007-10-17 21:56:46.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/woe32dll/gettextlib-exports.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* List of exported symbols of libgettextlib on Cygwin. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2010 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -26,7 +26,9 @@ VARIABLE(gl_array_list_implementation) VARIABLE(gl_linkedhash_list_implementation) VARIABLE(program_name) +#if GNULIB_DEFINED_GETOPT VARIABLE(rpl_optarg) VARIABLE(rpl_optind) +#endif VARIABLE(simple_backup_suffix) VARIABLE(styled_ostream_typeinfo) diff -Nru gettext-0.17/gettext-tools/woe32dll/gettextsrc-exports.c gettext-0.18.1.1/gettext-tools/woe32dll/gettextsrc-exports.c --- gettext-0.17/gettext-tools/woe32dll/gettextsrc-exports.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gettext-tools/woe32dll/gettextsrc-exports.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* List of exported symbols of libgettextsrc on Cygwin. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -27,6 +27,7 @@ VARIABLE(formatstring_csharp) VARIABLE(formatstring_elisp) VARIABLE(formatstring_gcc_internal) +VARIABLE(formatstring_gfc_internal) VARIABLE(formatstring_java) VARIABLE(formatstring_kde) VARIABLE(formatstring_librep) @@ -39,6 +40,7 @@ VARIABLE(formatstring_php) VARIABLE(formatstring_python) VARIABLE(formatstring_qt) +VARIABLE(formatstring_qt_plural) VARIABLE(formatstring_scheme) VARIABLE(formatstring_sh) VARIABLE(formatstring_smalltalk) diff -Nru gettext-0.17/gnulib-local/build-aux/moopp gettext-0.18.1.1/gnulib-local/build-aux/moopp --- gettext-0.17/gnulib-local/build-aux/moopp 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/build-aux/moopp 2010-06-06 12:49:58.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # Minimal Object-Oriented style PreProcessor. -# Copyright (C) 2006-2007 Free Software Foundation, Inc. +# Copyright (C) 2006-2008 Free Software Foundation, Inc. # Written by Bruno Haible , 2006. # # This program is free software: you can redistribute it and/or modify @@ -659,6 +659,8 @@ inherited=yes fi done + # First a prototype, to avoid gcc -Wmissing-prototypes warnings. + echo "$rettype ${main_classname}__${name} ($arglist);" echo "$rettype" echo "${main_classname}__${name} ($arglist)" echo "{" diff -Nru gettext-0.17/gnulib-local/ChangeLog gettext-0.18.1.1/gnulib-local/ChangeLog --- gettext-0.17/gnulib-local/ChangeLog 2007-11-06 23:27:30.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/ChangeLog 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,235 @@ +2010-06-04 Bruno Haible + + * gettext-0.18.1 released. + +2010-05-19 Bruno Haible + + Link with libunistring, if it exists. + * modules/gettext-tools-misc (lib_LDFLAGS): Add LTLIBUNISTRING. + +2010-05-24 Bruno Haible + + Use the newest regex module from gnulib. + * modules/gettext-tools-misc (Files): Remove m4/mbrtowc.m4 and + m4/memchr.m4. + +2010-05-24 Bruno Haible + + Use regex module without dependency on 'malloc'. + * lib/regex_internal.h.diff: New file. + * lib/regexec.c.diff: New file. + * modules/regex.diff: New file. + * Makefile.am (EXTRA_DIST): Add them. + +2010-05-23 Bruno Haible + + Do regex matching purely with regex, not regex + dfa + kwset. + * modules/gettext-tools-misc (Files): Remove m4/hard-locale.m4. + +2010-05-09 Bruno Haible + + * gettext-0.18 released. + +2010-05-09 Bruno Haible + + Avoid test suite failure on mingw. + * tests/test-term-ostream-xterm: Convert CR/LF to LF before comparing. + +2010-05-09 Bruno Haible + + Export rpl_optind, rpl_optarg from DLL depending on platform. + * modules/gettext-tools-misc (AM_CPPFLAGS): Augment by + GETTEXTLIB_EXPORTS_FLAGS. + +2010-05-09 Bruno Haible + + Avoid compilation error in libgettextpo directory on Solaris 8. + * lib/unistd.in.h.diff: New file. + * Makefile.am (EXTRA_DIST): Add it. + +2010-03-28 Bruno Haible + + * modules/closeout (Depends-on): Add stdlib, remove exit. + * modules/fd-ostream (Depends-on): Likewise. + * modules/html-styled-ostream (Depends-on): Likewise. + * modules/iconv-ostream (Depends-on): Likewise. + * modules/memory-ostream (Depends-on): Likewise. + * modules/term-ostream (Depends-on): Likewise. + * modules/xalloc (Depends-on): Likewise. + +2010-03-06 Bruno Haible + + * m4/exitfail.m4.diff: Remove file. + * modules/exitfail.diff: Remove file. + * Makefile.am (EXTRA_DIST): Remove them. + +2010-02-19 Bruno Haible + + * modules/wait-process.diff: Remove trailing space. + +2010-01-14 Bruno Haible + + Use full 'vasnprintf' module from gnulib. The reduced one did not + support NULL arguments. + * lib/vasprintf.c: Remove file. + * m4/vasprintf.m4: Remove file. + * modules/vasprintf.diff: Remove file. + * Makefile.am (EXTRA_DIST): Remove them. + Reported by LRN at . + +2010-01-11 Bruno Haible + + * modules/html-ostream (Depends-on): Remove utf8-ucs4. Instead add + unistr/u8-mbtouc. + +2009-12-25 Bruno Haible + + * lib/html-ostream.oo.c: Include gl_xlist.h instead of gl_list.h. + * modules/html-ostream (Depends-on): Add xlist. Remove list. + +2009-12-12 Bruno Haible + + * lib/*.h, lib/*.c: Untabify. + * m4/unionwait.m4: Untabify. + * tests/*.c: Untabify. + +2009-12-12 Bruno Haible + + * lib/fnmatch_loop.c.diff: Update after gnulib changed. + +2009-08-15 Bruno Haible + + Stop using gnulib module 'strdup'. + * modules/gettext-tools-misc (Files): Remove m4/strdup.m4. + +2009-08-10 Bruno Haible + + Avoid gcc warning on Cygwin. + * lib/html-ostream.oo.c (html_ostream::write_mem): Change type of local + variable 'uc'. + +2009-05-23 Bruno Haible + + Avoid gcc warning "cast from pointer to integer of different size". + * lib/glibconfig.in.h (GPOINTER_TO_INT, GINT_TO_POINTER): Cast through + intptr_t. + (GPOINTER_TO_UINT, GUINT_TO_POINTER: Cast through uintptr_t. + +2009-05-01 Bruno Haible + + Avoid compiler warnings when redefining macros defined by . + * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext, + dngettext, dcngettext, textdomain, bindtextdomain, + bind_textdomain_codeset): Undefine before redefining. + +2009-03-25 Bruno Haible + + * m4/quotearg.m4.diff: Update after gnulib changed. + +2008-12-18 Bruno Haible + + * modules/gettext-tools-misc (Files): Add m4/locale-ja.m4. + +2008-12-07 Bruno Haible + + Avoid gcc -Wmissing-prototypes warnings. + * lib/html-ostream.oo.c: Mark all method implementations as static. + * lib/term-ostream.oo.c: Likewise. + +2008-12-07 Bruno Haible + + Avoid gcc -Wmissing-prototypes warnings. + * build-aux/moopp (func_emit_source_c): Emit a prototype before the + synthetized functions. + +2008-09-14 Bruno Haible + + * modules/libxml: Use $(mkdir_p) to create the libxml directory. + * modules/libglib: Use $(mkdir_p) to create the glib directory. + Suggested by Ralf Wildenhues . + +2008-09-14 Bruno Haible + + * modules/libglib (Depends-on): Add strerror. + +2008-08-16 Bruno Haible + + Recognize installed libxml2 version 2.6.x. + * m4/libxml.m4 (gl_LIBXML): Determine libxml2_include_dir by looking + for as well. + Reported by Steve Trotman + via . + +2008-05-18 Bruno Haible + + * modules/propername: Remove file, moved to gnulib. + * lib/propername.h: Remove file, moved to gnulib. + * lib/propername.c: Remove file, moved to gnulib. + * Makefile.am (EXTRA_DIST): Remove them. + +2008-05-18 Bruno Haible + + * lib/propername.c: Include , , trim.h, mbchar.h, + mbuiter.h. Don't include c-strstr.h. + (mbsstr_trimmed_wordbounded): New function. + (proper_name, proper_name_utf8): Use it instead of mbsstr or c_strstr. + * modules/propername (Depends-on): Add stdbool, trim, mbchar, mbuiter. + Remove c-strstr. + Reported by Paul Eggert . + +2008-05-18 Bruno Haible + + * modules/propername (Notice): New field. + (configure.ac): Invoke AM_GETTEXT_OPTION. + * lib/propername.h: Add more comments. + Reported by Ben Pfaff . + +2008-05-11 Bruno Haible + + * lib/gen-lbrkprop.c: Move to gnulib as lib/unilbrk/gen-lbrk.c. + * lib/3level.h: Remove file. + * modules/gen-lbrkprop: Move to gnulib as modules/unilbrk/gen-lbrk. + * Makefile.am (EXTRA_DIST): Remove lib/gen-lbrkprop.c, lib/3level.h, + modules/gen-lbrkprop. + +2008-05-11 Bruno Haible + + * lib/gen-lbrkprop.c (output_lbp): Output to two different streams. + (output_tables): Accept two filename arguments. + (main): Generate lbrkprop1.h and lbrkprop2.h instead of lbrkprop.h. + + * lib/gen-lbrkprop.c (unicode_combining): Remove variable. + (fill_combining): Remove function. + (main): Take one argument less. + * lib/Combining.txt: Remove file. + * modules/gen-lbrkprop (Files): Remove Combining.txt. + * Makefile.am (EXTRA_DIST): Likewise. + + * lib/gen-lbrkprop.c: Change copyright to GPLv3+. + (output_tables): Emit a GPLv3+ header. + +2008-05-10 Bruno Haible + + * lib/linebreak.c.diff: Remove file. + * Makefile.am (EXTRA_DIST): Remove it. + +2008-01-13 Bruno Haible + + New configure option --disable-curses. + * m4/curses.m4: New file. + * m4/termcap.m4 (gl_TERMCAP_BODY): Require gl_CURSES and consider its + result. + * m4/terminfo.m4 (gl_TERMINFO_BODY): Likewise. + * modules/termcap (Files): Add m4/curses.m4. + * modules/terminfo (Files): Likewise. + * Makefile.am (EXTRA_DIST): Add m4/curses.m4. + +2007-11-09 Bruno Haible + + * m4/libglib.m4 (gl_LIBGLIB): Ensure that the is from a glib + version >= 2.0. + Reported by Paul Eggert . + 2007-11-07 Bruno Haible * gettext-0.17 released. diff -Nru gettext-0.17/gnulib-local/lib/3level.h gettext-0.18.1.1/gnulib-local/lib/3level.h --- gettext-0.17/gnulib-local/lib/3level.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/3level.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,325 +0,0 @@ -/* Copyright (C) 2000-2001 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Bruno Haible , 2000. - - - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@gnu.org. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 3 of the License, or any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Construction of sparse 3-level tables. - See wchar-lookup.h or coll-lookup.h for their structure and the - meaning of p and q. - - Before including this file, set - TABLE to the name of the structure to be defined - ELEMENT to the type of every entry - DEFAULT to the default value for empty entries - ITERATE if you want the TABLE_iterate function to be defined - NO_FINALIZE if you don't want the TABLE_finalize function to be defined - - This will define - - struct TABLE; - void TABLE_init (struct TABLE *t); - ELEMENT TABLE_get (struct TABLE *t, uint32_t wc); - void TABLE_add (struct TABLE *t, uint32_t wc, ELEMENT value); - void TABLE_iterate (struct TABLE *t, - void (*fn) (uint32_t wc, ELEMENT value)); - void TABLE_finalize (struct TABLE *t); -*/ - -#define CONCAT(a,b) CONCAT1(a,b) -#define CONCAT1(a,b) a##b - -struct TABLE -{ - /* Parameters. */ - unsigned int p; - unsigned int q; - /* Working representation. */ - size_t level1_alloc; - size_t level1_size; - uint32_t *level1; - size_t level2_alloc; - size_t level2_size; - uint32_t *level2; - size_t level3_alloc; - size_t level3_size; - ELEMENT *level3; - /* Compressed representation. */ - size_t result_size; - char *result; -}; - -/* Initialize. Assumes t->p and t->q have already been set. */ -static inline void -CONCAT(TABLE,_init) (struct TABLE *t) -{ - t->level1 = NULL; - t->level1_alloc = t->level1_size = 0; - t->level2 = NULL; - t->level2_alloc = t->level2_size = 0; - t->level3 = NULL; - t->level3_alloc = t->level3_size = 0; -} - -/* Marker for an empty slot. This has the value 0xFFFFFFFF, regardless - whether 'int' is 16 bit, 32 bit, or 64 bit. */ -#define EMPTY ((uint32_t) ~0) - -/* Retrieve an entry. */ -static inline ELEMENT -CONCAT(TABLE,_get) (struct TABLE *t, uint32_t wc) -{ - uint32_t index1 = wc >> (t->q + t->p); - if (index1 < t->level1_size) - { - uint32_t lookup1 = t->level1[index1]; - if (lookup1 != EMPTY) - { - uint32_t index2 = ((wc >> t->p) & ((1 << t->q) - 1)) - + (lookup1 << t->q); - uint32_t lookup2 = t->level2[index2]; - if (lookup2 != EMPTY) - { - uint32_t index3 = (wc & ((1 << t->p) - 1)) - + (lookup2 << t->p); - ELEMENT lookup3 = t->level3[index3]; - - return lookup3; - } - } - } - return DEFAULT; -} - -/* Add one entry. */ -static void -CONCAT(TABLE,_add) (struct TABLE *t, uint32_t wc, ELEMENT value) -{ - uint32_t index1 = wc >> (t->q + t->p); - uint32_t index2 = (wc >> t->p) & ((1 << t->q) - 1); - uint32_t index3 = wc & ((1 << t->p) - 1); - size_t i, i1, i2; - - if (value == CONCAT(TABLE,_get) (t, wc)) - return; - - if (index1 >= t->level1_size) - { - if (index1 >= t->level1_alloc) - { - size_t alloc = 2 * t->level1_alloc; - if (alloc <= index1) - alloc = index1 + 1; - t->level1 = (uint32_t *) xrealloc ((char *) t->level1, - alloc * sizeof (uint32_t)); - t->level1_alloc = alloc; - } - while (index1 >= t->level1_size) - t->level1[t->level1_size++] = EMPTY; - } - - if (t->level1[index1] == EMPTY) - { - if (t->level2_size == t->level2_alloc) - { - size_t alloc = 2 * t->level2_alloc + 1; - t->level2 = (uint32_t *) xrealloc ((char *) t->level2, - (alloc << t->q) * sizeof (uint32_t)); - t->level2_alloc = alloc; - } - i1 = t->level2_size << t->q; - i2 = (t->level2_size + 1) << t->q; - for (i = i1; i < i2; i++) - t->level2[i] = EMPTY; - t->level1[index1] = t->level2_size++; - } - - index2 += t->level1[index1] << t->q; - - if (t->level2[index2] == EMPTY) - { - if (t->level3_size == t->level3_alloc) - { - size_t alloc = 2 * t->level3_alloc + 1; - t->level3 = (ELEMENT *) xrealloc ((char *) t->level3, - (alloc << t->p) * sizeof (ELEMENT)); - t->level3_alloc = alloc; - } - i1 = t->level3_size << t->p; - i2 = (t->level3_size + 1) << t->p; - for (i = i1; i < i2; i++) - t->level3[i] = DEFAULT; - t->level2[index2] = t->level3_size++; - } - - index3 += t->level2[index2] << t->p; - - t->level3[index3] = value; -} - -#ifdef ITERATE -/* Apply a function to all entries in the table. */ -static void -CONCAT(TABLE,_iterate) (struct TABLE *t, - void (*fn) (uint32_t wc, ELEMENT value)) -{ - uint32_t index1; - for (index1 = 0; index1 < t->level1_size; index1++) - { - uint32_t lookup1 = t->level1[index1]; - if (lookup1 != EMPTY) - { - uint32_t lookup1_shifted = lookup1 << t->q; - uint32_t index2; - for (index2 = 0; index2 < (1 << t->q); index2++) - { - uint32_t lookup2 = t->level2[index2 + lookup1_shifted]; - if (lookup2 != EMPTY) - { - uint32_t lookup2_shifted = lookup2 << t->p; - uint32_t index3; - for (index3 = 0; index3 < (1 << t->p); index3++) - { - ELEMENT lookup3 = t->level3[index3 + lookup2_shifted]; - if (lookup3 != DEFAULT) - fn ((((index1 << t->q) + index2) << t->p) + index3, - lookup3); - } - } - } - } - } -} -#endif - -#ifndef NO_FINALIZE -/* Finalize and shrink. */ -static void -CONCAT(TABLE,_finalize) (struct TABLE *t) -{ - size_t i, j, k; - uint32_t reorder3[t->level3_size]; - uint32_t reorder2[t->level2_size]; - uint32_t level1_offset, level2_offset, level3_offset, last_offset; - - /* Uniquify level3 blocks. */ - k = 0; - for (j = 0; j < t->level3_size; j++) - { - for (i = 0; i < k; i++) - if (memcmp (&t->level3[i << t->p], &t->level3[j << t->p], - (1 << t->p) * sizeof (ELEMENT)) == 0) - break; - /* Relocate block j to block i. */ - reorder3[j] = i; - if (i == k) - { - if (i != j) - memcpy (&t->level3[i << t->p], &t->level3[j << t->p], - (1 << t->p) * sizeof (ELEMENT)); - k++; - } - } - t->level3_size = k; - - for (i = 0; i < (t->level2_size << t->q); i++) - if (t->level2[i] != EMPTY) - t->level2[i] = reorder3[t->level2[i]]; - - /* Uniquify level2 blocks. */ - k = 0; - for (j = 0; j < t->level2_size; j++) - { - for (i = 0; i < k; i++) - if (memcmp (&t->level2[i << t->q], &t->level2[j << t->q], - (1 << t->q) * sizeof (uint32_t)) == 0) - break; - /* Relocate block j to block i. */ - reorder2[j] = i; - if (i == k) - { - if (i != j) - memcpy (&t->level2[i << t->q], &t->level2[j << t->q], - (1 << t->q) * sizeof (uint32_t)); - k++; - } - } - t->level2_size = k; - - for (i = 0; i < t->level1_size; i++) - if (t->level1[i] != EMPTY) - t->level1[i] = reorder2[t->level1[i]]; - - /* Create and fill the resulting compressed representation. */ - last_offset = - 5 * sizeof (uint32_t) - + t->level1_size * sizeof (uint32_t) - + (t->level2_size << t->q) * sizeof (uint32_t) - + (t->level3_size << t->p) * sizeof (ELEMENT); - t->result_size = (last_offset + 3) & ~3ul; - t->result = (char *) xmalloc (t->result_size); - - level1_offset = - 5 * sizeof (uint32_t); - level2_offset = - 5 * sizeof (uint32_t) - + t->level1_size * sizeof (uint32_t); - level3_offset = - 5 * sizeof (uint32_t) - + t->level1_size * sizeof (uint32_t) - + (t->level2_size << t->q) * sizeof (uint32_t); - - ((uint32_t *) t->result)[0] = t->q + t->p; - ((uint32_t *) t->result)[1] = t->level1_size; - ((uint32_t *) t->result)[2] = t->p; - ((uint32_t *) t->result)[3] = (1 << t->q) - 1; - ((uint32_t *) t->result)[4] = (1 << t->p) - 1; - - for (i = 0; i < t->level1_size; i++) - ((uint32_t *) (t->result + level1_offset))[i] = - (t->level1[i] == EMPTY - ? 0 - : (t->level1[i] << t->q) * sizeof (uint32_t) + level2_offset); - - for (i = 0; i < (t->level2_size << t->q); i++) - ((uint32_t *) (t->result + level2_offset))[i] = - (t->level2[i] == EMPTY - ? 0 - : (t->level2[i] << t->p) * sizeof (ELEMENT) + level3_offset); - - for (i = 0; i < (t->level3_size << t->p); i++) - ((ELEMENT *) (t->result + level3_offset))[i] = t->level3[i]; - - if (last_offset < t->result_size) - memset (t->result + last_offset, 0, t->result_size - last_offset); - - if (t->level1_alloc > 0) - free (t->level1); - if (t->level2_alloc > 0) - free (t->level2); - if (t->level3_alloc > 0) - free (t->level3); -} -#endif - -#undef EMPTY -#undef TABLE -#undef ELEMENT -#undef DEFAULT -#undef ITERATE -#undef NO_FINALIZE diff -Nru gettext-0.17/gnulib-local/lib/addext.c gettext-0.18.1.1/gnulib-local/lib/addext.c --- gettext-0.17/gnulib-local/lib/addext.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/addext.c 2010-06-06 12:49:58.000000000 +0000 @@ -75,13 +75,13 @@ /* Live within DOS's 8.3 limit. */ char *dot = strchr (s, '.'); if (dot) - { - slen -= dot + 1 - s; - s = dot + 1; - slen_max = 3; - } + { + slen -= dot + 1 - s; + s = dot + 1; + slen_max = 3; + } else - slen_max = 8; + slen_max = 8; extlen = 9; /* Don't use EXT. */ } @@ -90,7 +90,7 @@ else { if (slen_max <= slen) - slen = slen_max - 1; + slen = slen_max - 1; s[slen] = e; s[slen + 1] = 0; } diff -Nru gettext-0.17/gnulib-local/lib/backupfile.c gettext-0.18.1.1/gnulib-local/lib/backupfile.c --- gettext-0.17/gnulib-local/lib/backupfile.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/backupfile.c 2010-06-06 12:49:58.000000000 +0000 @@ -96,27 +96,27 @@ backup_suffix_size_max = numbered_suffix_size_max; s = (char *) malloc (file_len + backup_suffix_size_max - + numbered_suffix_size_max); + + numbered_suffix_size_max); if (s) { strcpy (s, file); #if HAVE_DIR if (backup_type != simple) - { - int highest_backup; - size_t dir_len = basename (s) - s; - - strcpy (s + dir_len, "."); - highest_backup = max_backup_version (file + dir_len, s); - if (! (backup_type == numbered_existing && highest_backup == 0)) - { - char *numbered_suffix = s + (file_len + backup_suffix_size_max); - sprintf (numbered_suffix, ".~%d~", highest_backup + 1); - suffix = numbered_suffix; - } - strcpy (s, file); - } + { + int highest_backup; + size_t dir_len = basename (s) - s; + + strcpy (s + dir_len, "."); + highest_backup = max_backup_version (file + dir_len, s); + if (! (backup_type == numbered_existing && highest_backup == 0)) + { + char *numbered_suffix = s + (file_len + backup_suffix_size_max); + sprintf (numbered_suffix, ".~%d~", highest_backup + 1); + suffix = numbered_suffix; + } + strcpy (s, file); + } #endif /* HAVE_DIR */ addext (s, suffix, '~'); @@ -150,11 +150,11 @@ while ((dp = readdir (dirp)) != 0) { if (!REAL_DIR_ENTRY (dp) || strlen (dp->d_name) < file_name_length + 4) - continue; + continue; this_version = version_number (file, dp->d_name, file_name_length); if (this_version > highest_version) - highest_version = this_version; + highest_version = this_version; } if (closedir (dirp)) return 0; @@ -177,9 +177,9 @@ && backup[base_length + 1] == '~') { for (p = &backup[base_length + 2]; ISDIGIT (*p); ++p) - version = version * 10 + *p - '0'; + version = version * 10 + *p - '0'; if (p[0] != '~' || p[1]) - version = 0; + version = 0; } return version; } diff -Nru gettext-0.17/gnulib-local/lib/backupfile.h gettext-0.18.1.1/gnulib-local/lib/backupfile.h --- gettext-0.17/gnulib-local/lib/backupfile.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/backupfile.h 2010-06-06 12:49:58.000000000 +0000 @@ -39,16 +39,16 @@ numbered }; -# define VALID_BACKUP_TYPE(Type) \ - ((Type) == none \ - || (Type) == simple \ - || (Type) == numbered_existing \ +# define VALID_BACKUP_TYPE(Type) \ + ((Type) == none \ + || (Type) == simple \ + || (Type) == numbered_existing \ || (Type) == numbered) extern DLL_VARIABLE char const *simple_backup_suffix; extern char *find_backup_file_name (char const *file, - enum backup_type backup_type); + enum backup_type backup_type); extern enum backup_type get_version (char const *context, char const *arg); extern enum backup_type xget_version (char const *context, char const *arg); extern void addext (char *filename, char const *ext, char e); diff -Nru gettext-0.17/gnulib-local/lib/basename.c gettext-0.18.1.1/gnulib-local/lib/basename.c --- gettext-0.17/gnulib-local/lib/basename.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/basename.c 2010-06-06 12:49:58.000000000 +0000 @@ -66,9 +66,9 @@ for (p = name; *p; p++) { if (ISSLASH (*p)) - base = p + 1; + base = p + 1; else - all_slashes = 0; + all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ diff -Nru gettext-0.17/gnulib-local/lib/Combining.txt gettext-0.18.1.1/gnulib-local/lib/Combining.txt --- gettext-0.17/gnulib-local/lib/Combining.txt 2006-08-02 13:41:36.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/Combining.txt 1970-01-01 00:00:00.000000000 +0000 @@ -1,105 +0,0 @@ -Property dump for: 0x20000004 (Combining) - -0300..034E (79 chars) -0360..0362 (3 chars) -0483..0486 (4 chars) -0488..0489 (2 chars) -0591..05A1 (17 chars) -05A3..05B9 (23 chars) -05BB..05BD (3 chars) -05BF -05C1..05C2 (2 chars) -05C4 -064B..0655 (11 chars) -0670 -06D6..06E4 (15 chars) -06E7..06E8 (2 chars) -06EA..06ED (4 chars) -0711 -0730..074A (27 chars) -07A6..07B0 (11 chars) -0901..0903 (3 chars) -093C -093E..094D (16 chars) -0951..0954 (4 chars) -0962..0963 (2 chars) -0981..0983 (3 chars) -09BC -09BE..09C4 (7 chars) -09C7..09C8 (2 chars) -09CB..09CD (3 chars) -09D7 -09E2..09E3 (2 chars) -0A02 -0A3C -0A3E..0A42 (5 chars) -0A47..0A48 (2 chars) -0A4B..0A4D (3 chars) -0A70..0A71 (2 chars) -0A81..0A83 (3 chars) -0ABC -0ABE..0AC5 (8 chars) -0AC7..0AC9 (3 chars) -0ACB..0ACD (3 chars) -0B01..0B03 (3 chars) -0B3C -0B3E..0B43 (6 chars) -0B47..0B48 (2 chars) -0B4B..0B4D (3 chars) -0B56..0B57 (2 chars) -0B82..0B83 (2 chars) -0BBE..0BC2 (5 chars) -0BC6..0BC8 (3 chars) -0BCA..0BCD (4 chars) -0BD7 -0C01..0C03 (3 chars) -0C3E..0C44 (7 chars) -0C46..0C48 (3 chars) -0C4A..0C4D (4 chars) -0C55..0C56 (2 chars) -0C82..0C83 (2 chars) -0CBE..0CC4 (7 chars) -0CC6..0CC8 (3 chars) -0CCA..0CCD (4 chars) -0CD5..0CD6 (2 chars) -0D02..0D03 (2 chars) -0D3E..0D43 (6 chars) -0D46..0D48 (3 chars) -0D4A..0D4D (4 chars) -0D57 -0D82..0D83 (2 chars) -0DCA -0DCF..0DD4 (6 chars) -0DD6 -0DD8..0DDF (8 chars) -0DF2..0DF3 (2 chars) -0E31 -0E34..0E3A (7 chars) -0E47..0E4E (8 chars) -0EB1 -0EB4..0EB9 (6 chars) -0EBB..0EBC (2 chars) -0EC8..0ECD (6 chars) -0F18..0F19 (2 chars) -0F35 -0F37 -0F39 -0F3E..0F3F (2 chars) -0F71..0F84 (20 chars) -0F86..0F87 (2 chars) -0F90..0F97 (8 chars) -0F99..0FBC (36 chars) -0FC6 -102C..1032 (7 chars) -1036..1039 (4 chars) -1056..1059 (4 chars) -17B4..17D3 (32 chars) -18A9 -20D0..20E3 (20 chars) -302A..302F (6 chars) -3099..309A (2 chars) -F8F0..F8FF (16 chars) -FB1E -FE20..FE23 (4 chars) - -******************************************* diff -Nru gettext-0.17/gnulib-local/lib/fd-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/fd-ostream.oo.c --- gettext-0.17/gnulib-local/lib/fd-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/fd-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -37,8 +37,8 @@ fields: int fd; char *filename; - char *buffer; /* A buffer, or NULL. */ - size_t avail; /* Number of bytes available in the buffer. */ + char *buffer; /* A buffer, or NULL. */ + size_t avail; /* Number of bytes available in the buffer. */ }; #define BUFSIZE 4096 @@ -51,74 +51,74 @@ if (len > 0) { if (stream->buffer != NULL) - { - /* Buffered. */ - assert (stream->avail > 0); - #if 0 /* unoptimized */ - do - { - size_t n = (len <= stream->avail ? len : stream->avail); - if (n > 0) - { - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - stream->avail -= n; - len -= n; - } - if (stream->avail == 0) - { - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - stream->avail = BUFSIZE; - } - } - while (len > 0); - #else /* optimized */ - if (len < stream->avail) - { - /* Move the data into the buffer. */ - memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); - stream->avail -= len; - } - else - { - /* Split the data into: - - a first chunk, which is added to the buffer and output, - - a series of chunks of size BUFSIZE, which can be output - directly, without going through the buffer, and - - a last chunk, which is copied to the buffer. */ - size_t n = stream->avail; - memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); - data = (char *) data + n; - len -= n; - if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - - while (len >= BUFSIZE) - { - if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - data = (char *) data + BUFSIZE; - len -= BUFSIZE; - } - - if (len > 0) - memcpy (stream->buffer, data, len); - stream->avail = BUFSIZE - len; - } - #endif - assert (stream->avail > 0); - } + { + /* Buffered. */ + assert (stream->avail > 0); + #if 0 /* unoptimized */ + do + { + size_t n = (len <= stream->avail ? len : stream->avail); + if (n > 0) + { + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + stream->avail -= n; + len -= n; + } + if (stream->avail == 0) + { + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + stream->avail = BUFSIZE; + } + } + while (len > 0); + #else /* optimized */ + if (len < stream->avail) + { + /* Move the data into the buffer. */ + memcpy (stream->buffer + BUFSIZE - stream->avail, data, len); + stream->avail -= len; + } + else + { + /* Split the data into: + - a first chunk, which is added to the buffer and output, + - a series of chunks of size BUFSIZE, which can be output + directly, without going through the buffer, and + - a last chunk, which is copied to the buffer. */ + size_t n = stream->avail; + memcpy (stream->buffer + BUFSIZE - stream->avail, data, n); + data = (char *) data + n; + len -= n; + if (full_write (stream->fd, stream->buffer, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + + while (len >= BUFSIZE) + { + if (full_write (stream->fd, data, BUFSIZE) < BUFSIZE) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + data = (char *) data + BUFSIZE; + len -= BUFSIZE; + } + + if (len > 0) + memcpy (stream->buffer, data, len); + stream->avail = BUFSIZE - len; + } + #endif + assert (stream->avail > 0); + } else - { - /* Unbuffered. */ - if (full_write (stream->fd, data, len) < len) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - } + { + /* Unbuffered. */ + if (full_write (stream->fd, data, len) < len) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + } } } @@ -129,7 +129,7 @@ { size_t filled = BUFSIZE - stream->avail; if (full_write (stream->fd, stream->buffer, filled) < filled) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); stream->avail = BUFSIZE; } } @@ -150,7 +150,7 @@ fd_ostream_t stream = (struct fd_ostream_representation *) xmalloc (sizeof (struct fd_ostream_representation) - + (buffered ? BUFSIZE : 0)); + + (buffered ? BUFSIZE : 0)); stream->base.vtable = &fd_ostream_vtable; stream->fd = fd; @@ -158,7 +158,7 @@ if (buffered) { stream->buffer = - (char *) (void *) stream + sizeof (struct fd_ostream_representation); + (char *) (void *) stream + sizeof (struct fd_ostream_representation); stream->avail = BUFSIZE; } else diff -Nru gettext-0.17/gnulib-local/lib/fd-ostream.oo.h gettext-0.18.1.1/gnulib-local/lib/fd-ostream.oo.h --- gettext-0.17/gnulib-local/lib/fd-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/fd-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -38,7 +38,7 @@ FILENAME is used only for error messages. Note that the resulting stream must be closed before FD can be closed. */ extern fd_ostream_t fd_ostream_create (int fd, const char *filename, - bool buffered); + bool buffered); #ifdef __cplusplus diff -Nru gettext-0.17/gnulib-local/lib/fnmatch_loop.c.diff gettext-0.18.1.1/gnulib-local/lib/fnmatch_loop.c.diff --- gettext-0.17/gnulib-local/lib/fnmatch_loop.c.diff 2006-08-02 14:24:33.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/fnmatch_loop.c.diff 2010-06-06 12:49:58.000000000 +0000 @@ -1,7 +1,7 @@ -*** lib/fnmatch_loop.c.bak 2006-07-11 13:54:17.000000000 +0200 ---- lib/fnmatch_loop.c 2006-07-30 21:03:04.000000000 +0200 +*** lib/fnmatch_loop.c.bak 2009-12-10 20:38:55.000000000 +0100 +--- lib/fnmatch_loop.c 2009-12-11 11:55:04.000000000 +0100 *************** -*** 1003,1022 **** +*** 1021,1040 **** struct patternlist { struct patternlist *next; @@ -21,8 +21,8 @@ ! return -1; else if (*p == L_('[')) { - /* Handle brackets special. */ ---- 1003,1028 ---- + /* Handle brackets special. */ +--- 1021,1046 ---- struct patternlist { struct patternlist *next; @@ -48,99 +48,99 @@ ! goto failed; else if (*p == L_('[')) { - /* Handle brackets special. */ + /* Handle brackets special. */ *************** -*** 1034,1040 **** - while (*p != L_(']')) - if (*p++ == L_('\0')) - /* This is no valid pattern. */ -! return -1; +*** 1052,1058 **** + while (*p != L_(']')) + if (*p++ == L_('\0')) + /* This is no valid pattern. */ +! return -1; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') - || *p == L_('!')) && p[1] == L_('(')) ---- 1040,1046 ---- - while (*p != L_(']')) - if (*p++ == L_('\0')) - /* This is no valid pattern. */ -! goto failed; + || *p == L_('!')) && p[1] == L_('(')) +--- 1058,1064 ---- + while (*p != L_(']')) + if (*p++ == L_('\0')) + /* This is no valid pattern. */ +! goto failed; } else if ((*p == L_('?') || *p == L_('*') || *p == L_('+') || *p == L_('@') - || *p == L_('!')) && p[1] == L_('(')) + || *p == L_('!')) && p[1] == L_('(')) *************** -*** 1057,1067 **** - plensize = plen * sizeof (CHAR); \ - newpsize = offsetof (struct patternlist, str) + plensize; \ - if ((size_t) -1 / sizeof (CHAR) < plen \ -! || newpsize < offsetof (struct patternlist, str) \ -! || ALLOCA_LIMIT <= newpsize) \ -! return -1; \ -! newp = (struct patternlist *) alloca (newpsize); \ -! *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ - newp->next = NULL; \ - *lastp = newp; \ - lastp = &newp->next ---- 1063,1083 ---- - plensize = plen * sizeof (CHAR); \ - newpsize = offsetof (struct patternlist, str) + plensize; \ - if ((size_t) -1 / sizeof (CHAR) < plen \ -! || newpsize < offsetof (struct patternlist, str)) \ -! goto failed; \ -! if (newpsize < ALLOCA_LIMIT) \ -! { \ -! newp = (struct patternlist *) alloca (newpsize); \ -! newp->malloced = 0; \ -! } \ -! else \ -! { \ -! newp = (struct patternlist *) malloc (newpsize); \ -! if (!newp) \ -! goto failed; \ -! newp->malloced = 1; \ -! } \ -! *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ - newp->next = NULL; \ - *lastp = newp; \ - lastp = &newp->next +*** 1075,1085 **** + plensize = plen * sizeof (CHAR); \ + newpsize = offsetof (struct patternlist, str) + plensize; \ + if ((size_t) -1 / sizeof (CHAR) < plen \ +! || newpsize < offsetof (struct patternlist, str) \ +! || ALLOCA_LIMIT <= newpsize) \ +! return -1; \ +! newp = (struct patternlist *) alloca (newpsize); \ +! *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ + newp->next = NULL; \ + *lastp = newp; \ + lastp = &newp->next +--- 1081,1101 ---- + plensize = plen * sizeof (CHAR); \ + newpsize = offsetof (struct patternlist, str) + plensize; \ + if ((size_t) -1 / sizeof (CHAR) < plen \ +! || newpsize < offsetof (struct patternlist, str)) \ +! goto failed; \ +! if (newpsize < ALLOCA_LIMIT) \ +! { \ +! newp = (struct patternlist *) alloca (newpsize); \ +! newp->malloced = 0; \ +! } \ +! else \ +! { \ +! newp = (struct patternlist *) malloc (newpsize); \ +! if (!newp) \ +! goto failed; \ +! newp->malloced = 1; \ +! } \ +! *((CHAR *) MEMPCPY (newp->str, startp, p - startp)) = L_('\0'); \ + newp->next = NULL; \ + *lastp = newp; \ + lastp = &newp->next *************** -*** 1085,1096 **** +*** 1103,1114 **** { case L_('*'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) -! return 0; +! return 0; /* FALLTHROUGH */ case L_('+'): do - { - for (rs = string; rs <= string_end; ++rs) - /* First match the prefix with the current pattern with the - current pattern. */ ---- 1101,1117 ---- + { + for (rs = string; rs <= string_end; ++rs) + /* First match the prefix with the current pattern with the + current pattern. */ +--- 1119,1135 ---- { case L_('*'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) -! { -! retval = 0; -! goto done; -! } +! { +! retval = 0; +! goto done; +! } /* FALLTHROUGH */ case L_('+'): do - { -+ struct patternlist *next; + { ++ struct patternlist *next; + - for (rs = string; rs <= string_end; ++rs) - /* First match the prefix with the current pattern with the - current pattern. */ + for (rs = string; rs <= string_end; ++rs) + /* First match the prefix with the current pattern with the + current pattern. */ *************** -*** 1112,1142 **** - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME - ? flags : flags & ~FNM_PERIOD) == 0))) -! /* It worked. Signal success. */ -! return 0; - } +*** 1130,1160 **** + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME + ? flags : flags & ~FNM_PERIOD) == 0))) +! /* It worked. Signal success. */ +! return 0; + } ! while ((list = list->next) != NULL); /* None of the patterns lead to a match. */ @@ -148,39 +148,39 @@ case L_('?'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) -! return 0; +! return 0; /* FALLTHROUGH */ case L_('@'): do -! /* I cannot believe it but `strcat' is actually acceptable -! here. Match the entire string with the prefix from the -! pattern list and the rest of the pattern following the -! pattern list. */ -! if (FCT (STRCAT (list->str, p), string, string_end, -! no_leading_period, -! flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) -! /* It worked. Signal success. */ -! return 0; +! /* I cannot believe it but `strcat' is actually acceptable +! here. Match the entire string with the prefix from the +! pattern list and the rest of the pattern following the +! pattern list. */ +! if (FCT (STRCAT (list->str, p), string, string_end, +! no_leading_period, +! flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) +! /* It worked. Signal success. */ +! return 0; ! while ((list = list->next) != NULL); /* None of the patterns lead to a match. */ return FNM_NOMATCH; ---- 1133,1186 ---- - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME - ? flags : flags & ~FNM_PERIOD) == 0))) -! { -! /* It worked. Signal success. */ -! retval = 0; -! goto done; -! } +--- 1151,1204 ---- + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME + ? flags : flags & ~FNM_PERIOD) == 0))) +! { +! /* It worked. Signal success. */ +! retval = 0; +! goto done; +! } ! -! next = list->next; -! if (list->malloced) -! free (list); -! list = next; - } +! next = list->next; +! if (list->malloced) +! free (list); +! list = next; + } ! while (list != NULL); /* None of the patterns lead to a match. */ @@ -188,50 +188,50 @@ case L_('?'): if (FCT (p, string, string_end, no_leading_period, flags) == 0) -! { -! retval = 0; -! goto done; -! } +! { +! retval = 0; +! goto done; +! } /* FALLTHROUGH */ case L_('@'): do -! { -! struct patternlist *next; +! { +! struct patternlist *next; ! -! /* I cannot believe it but `strcat' is actually acceptable -! here. Match the entire string with the prefix from the -! pattern list and the rest of the pattern following the -! pattern list. */ -! if (FCT (STRCAT (list->str, p), string, string_end, -! no_leading_period, -! flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) -! { -! /* It worked. Signal success. */ -! retval = 0; -! goto done; -! } +! /* I cannot believe it but `strcat' is actually acceptable +! here. Match the entire string with the prefix from the +! pattern list and the rest of the pattern following the +! pattern list. */ +! if (FCT (STRCAT (list->str, p), string, string_end, +! no_leading_period, +! flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) == 0) +! { +! /* It worked. Signal success. */ +! retval = 0; +! goto done; +! } ! -! next = list->next; -! if (list->malloced) -! free (list); -! list = next; -! } +! next = list->next; +! if (list->malloced) +! free (list); +! list = next; +! } ! while (list != NULL); /* None of the patterns lead to a match. */ return FNM_NOMATCH; *************** -*** 1159,1178 **** - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) - == 0)) -! /* This is successful. */ -! return 0; - } +*** 1177,1196 **** + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) + == 0)) +! /* This is successful. */ +! return 0; + } /* None of the patterns together with the rest of the pattern - lead to a match. */ + lead to a match. */ ! return FNM_NOMATCH; default: @@ -243,19 +243,19 @@ } ---- 1203,1237 ---- - : rs[-1] == '/' && NO_LEADING_PERIOD (flags), - flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) - == 0)) -! { -! /* This is successful. */ -! retval = 0; -! goto done; -! } - } +--- 1221,1255 ---- + : rs[-1] == '/' && NO_LEADING_PERIOD (flags), + flags & FNM_FILE_NAME ? flags : flags & ~FNM_PERIOD) + == 0)) +! { +! /* This is successful. */ +! retval = 0; +! goto done; +! } + } /* None of the patterns together with the rest of the pattern - lead to a match. */ + lead to a match. */ ! retval = FNM_NOMATCH; ! goto done; @@ -272,7 +272,7 @@ ! struct patternlist *next = list->next; ! ! if (list->malloced) -! free (list); +! free (list); ! list = next; ! } ! return retval; diff -Nru gettext-0.17/gnulib-local/lib/gen-lbrkprop.c gettext-0.18.1.1/gnulib-local/lib/gen-lbrkprop.c --- gettext-0.17/gnulib-local/lib/gen-lbrkprop.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/gen-lbrkprop.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,1404 +0,0 @@ -/* Generate a Unicode conforming Line Break Properties tables from a - UnicodeData file. - Written by Bruno Haible , 2000-2004. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -/* Usage example: - $ gen-lbrkprop /usr/local/share/Unidata/UnicodeData.txt \ - Combining.txt \ - /usr/local/share/Unidata/EastAsianWidth.txt \ - /usr/local/share/Unidata/LineBreak.txt \ - 3.1.0 - */ - -#include -#include -#include -#include -#include -#include - -/* This structure represents one line in the UnicodeData.txt file. */ -struct unicode_attribute -{ - const char *name; /* Character name */ - const char *category; /* General category */ - const char *combining; /* Canonical combining classes */ - const char *bidi; /* Bidirectional category */ - const char *decomposition; /* Character decomposition mapping */ - const char *decdigit; /* Decimal digit value */ - const char *digit; /* Digit value */ - const char *numeric; /* Numeric value */ - int mirrored; /* mirrored */ - const char *oldname; /* Old Unicode 1.0 name */ - const char *comment; /* Comment */ - unsigned int upper; /* Uppercase mapping */ - unsigned int lower; /* Lowercase mapping */ - unsigned int title; /* Titlecase mapping */ -}; - -/* Missing fields are represented with "" for strings, and NONE for - characters. */ -#define NONE (~(unsigned int)0) - -/* The entire contents of the UnicodeData.txt file. */ -struct unicode_attribute unicode_attributes [0x110000]; - -/* Stores in unicode_attributes[i] the values from the given fields. */ -static void -fill_attribute (unsigned int i, - const char *field1, const char *field2, - const char *field3, const char *field4, - const char *field5, const char *field6, - const char *field7, const char *field8, - const char *field9, const char *field10, - const char *field11, const char *field12, - const char *field13, const char *field14) -{ - struct unicode_attribute * uni; - - if (i >= 0x110000) - { - fprintf (stderr, "index too large\n"); - exit (1); - } - uni = &unicode_attributes[i]; - /* Copy the strings. */ - uni->name = strdup (field1); - uni->category = (field2[0] == '\0' ? "" : strdup (field2)); - uni->combining = (field3[0] == '\0' ? "" : strdup (field3)); - uni->bidi = (field4[0] == '\0' ? "" : strdup (field4)); - uni->decomposition = (field5[0] == '\0' ? "" : strdup (field5)); - uni->decdigit = (field6[0] == '\0' ? "" : strdup (field6)); - uni->digit = (field7[0] == '\0' ? "" : strdup (field7)); - uni->numeric = (field8[0] == '\0' ? "" : strdup (field8)); - uni->mirrored = (field9[0] == 'Y'); - uni->oldname = (field10[0] == '\0' ? "" : strdup (field10)); - uni->comment = (field11[0] == '\0' ? "" : strdup (field11)); - uni->upper = (field12[0] =='\0' ? NONE : strtoul (field12, NULL, 16)); - uni->lower = (field13[0] =='\0' ? NONE : strtoul (field13, NULL, 16)); - uni->title = (field14[0] =='\0' ? NONE : strtoul (field14, NULL, 16)); -} - -/* Maximum length of a field in the UnicodeData.txt file. */ -#define FIELDLEN 120 - -/* Reads the next field from STREAM. The buffer BUFFER has size FIELDLEN. - Reads up to (but excluding) DELIM. - Returns 1 when a field was successfully read, otherwise 0. */ -static int -getfield (FILE *stream, char *buffer, int delim) -{ - int count = 0; - int c; - - for (; (c = getc (stream)), (c != EOF && c != delim); ) - { - /* The original unicode.org UnicodeData.txt file happens to have - CR/LF line terminators. Silently convert to LF. */ - if (c == '\r') - continue; - - /* Put c into the buffer. */ - if (++count >= FIELDLEN - 1) - { - fprintf (stderr, "field too long\n"); - exit (1); - } - *buffer++ = c; - } - - if (c == EOF) - return 0; - - *buffer = '\0'; - return 1; -} - -/* Stores in unicode_attributes[] the entire contents of the UnicodeData.txt - file. */ -static void -fill_attributes (const char *unicodedata_filename) -{ - unsigned int i, j; - FILE *stream; - char field0[FIELDLEN]; - char field1[FIELDLEN]; - char field2[FIELDLEN]; - char field3[FIELDLEN]; - char field4[FIELDLEN]; - char field5[FIELDLEN]; - char field6[FIELDLEN]; - char field7[FIELDLEN]; - char field8[FIELDLEN]; - char field9[FIELDLEN]; - char field10[FIELDLEN]; - char field11[FIELDLEN]; - char field12[FIELDLEN]; - char field13[FIELDLEN]; - char field14[FIELDLEN]; - int lineno = 0; - - for (i = 0; i < 0x110000; i++) - unicode_attributes[i].name = NULL; - - stream = fopen (unicodedata_filename, "r"); - if (stream == NULL) - { - fprintf (stderr, "error during fopen of '%s'\n", unicodedata_filename); - exit (1); - } - - for (;;) - { - int n; - - lineno++; - n = getfield (stream, field0, ';'); - n += getfield (stream, field1, ';'); - n += getfield (stream, field2, ';'); - n += getfield (stream, field3, ';'); - n += getfield (stream, field4, ';'); - n += getfield (stream, field5, ';'); - n += getfield (stream, field6, ';'); - n += getfield (stream, field7, ';'); - n += getfield (stream, field8, ';'); - n += getfield (stream, field9, ';'); - n += getfield (stream, field10, ';'); - n += getfield (stream, field11, ';'); - n += getfield (stream, field12, ';'); - n += getfield (stream, field13, ';'); - n += getfield (stream, field14, '\n'); - if (n == 0) - break; - if (n != 15) - { - fprintf (stderr, "short line in'%s':%d\n", - unicodedata_filename, lineno); - exit (1); - } - i = strtoul (field0, NULL, 16); - if (field1[0] == '<' - && strlen (field1) >= 9 - && !strcmp (field1 + strlen(field1) - 8, ", First>")) - { - /* Deal with a range. */ - lineno++; - n = getfield (stream, field0, ';'); - n += getfield (stream, field1, ';'); - n += getfield (stream, field2, ';'); - n += getfield (stream, field3, ';'); - n += getfield (stream, field4, ';'); - n += getfield (stream, field5, ';'); - n += getfield (stream, field6, ';'); - n += getfield (stream, field7, ';'); - n += getfield (stream, field8, ';'); - n += getfield (stream, field9, ';'); - n += getfield (stream, field10, ';'); - n += getfield (stream, field11, ';'); - n += getfield (stream, field12, ';'); - n += getfield (stream, field13, ';'); - n += getfield (stream, field14, '\n'); - if (n != 15) - { - fprintf (stderr, "missing end range in '%s':%d\n", - unicodedata_filename, lineno); - exit (1); - } - if (!(field1[0] == '<' - && strlen (field1) >= 8 - && !strcmp (field1 + strlen (field1) - 7, ", Last>"))) - { - fprintf (stderr, "missing end range in '%s':%d\n", - unicodedata_filename, lineno); - exit (1); - } - field1[strlen (field1) - 7] = '\0'; - j = strtoul (field0, NULL, 16); - for (; i <= j; i++) - fill_attribute (i, field1+1, field2, field3, field4, field5, - field6, field7, field8, field9, field10, - field11, field12, field13, field14); - } - else - { - /* Single character line */ - fill_attribute (i, field1, field2, field3, field4, field5, - field6, field7, field8, field9, field10, - field11, field12, field13, field14); - } - } - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error reading from '%s'\n", unicodedata_filename); - exit (1); - } -} - -/* The combining property from the PropList.txt file. */ -char unicode_combining[0x110000]; - -/* Stores in unicode_combining[] the Combining property from the - Unicode 3.0 PropList.txt file. */ -static void -fill_combining (const char *proplist_filename) -{ - unsigned int i; - FILE *stream; - char buf[100+1]; - - for (i = 0; i < 0x110000; i++) - unicode_combining[i] = 0; - - stream = fopen (proplist_filename, "r"); - if (stream == NULL) - { - fprintf (stderr, "error during fopen of '%s'\n", proplist_filename); - exit (1); - } - - /* Search for the "Property dump for: 0x20000004 (Combining)" line. */ - do - { - if (fscanf (stream, "%100[^\n]\n", buf) < 1) - { - fprintf (stderr, "no combining property found in '%s'\n", - proplist_filename); - exit (1); - } - } - while (strstr (buf, "(Combining)") == NULL); - - for (;;) - { - unsigned int i1, i2; - - if (fscanf (stream, "%100[^\n]\n", buf) < 1) - { - fprintf (stderr, "premature end of combining property in '%s'\n", - proplist_filename); - exit (1); - } - if (buf[0] == '*') - break; - if (strlen (buf) >= 10 && buf[4] == '.' && buf[5] == '.') - { - if (sscanf (buf, "%4X..%4X", &i1, &i2) < 2) - { - fprintf (stderr, "parse error in combining property in '%s'\n", - proplist_filename); - exit (1); - } - } - else if (strlen (buf) >= 4) - { - if (sscanf (buf, "%4X", &i1) < 1) - { - fprintf (stderr, "parse error in combining property in '%s'\n", - proplist_filename); - exit (1); - } - i2 = i1; - } - else - { - fprintf (stderr, "parse error in combining property in '%s'\n", - proplist_filename); - exit (1); - } - for (i = i1; i <= i2; i++) - unicode_combining[i] = 1; - } - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error reading from '%s'\n", proplist_filename); - exit (1); - } -} - -/* The width property from the EastAsianWidth.txt file. - Each is NULL (unassigned) or "N", "A", "H", "W", "F", "Na". */ -const char * unicode_width[0x110000]; - -/* Stores in unicode_width[] the width property from the EastAsianWidth.txt - file. */ -static void -fill_width (const char *width_filename) -{ - unsigned int i, j; - FILE *stream; - char field0[FIELDLEN]; - char field1[FIELDLEN]; - char field2[FIELDLEN]; - int lineno = 0; - - for (i = 0; i < 0x110000; i++) - unicode_width[i] = (unicode_attributes[i].name != NULL ? "N" : NULL); - - stream = fopen (width_filename, "r"); - if (stream == NULL) - { - fprintf (stderr, "error during fopen of '%s'\n", width_filename); - exit (1); - } - - for (;;) - { - int n; - int c; - - lineno++; - c = getc (stream); - if (c == EOF) - break; - if (c == '#') - { - do c = getc (stream); while (c != EOF && c != '\n'); - continue; - } - ungetc (c, stream); - n = getfield (stream, field0, ';'); - n += getfield (stream, field1, ' '); - n += getfield (stream, field2, '\n'); - if (n == 0) - break; - if (n != 3) - { - fprintf (stderr, "short line in '%s':%d\n", width_filename, lineno); - exit (1); - } - i = strtoul (field0, NULL, 16); - if (strstr (field0, "..") != NULL) - { - /* Deal with a range. */ - j = strtoul (strstr (field0, "..") + 2, NULL, 16); - for (; i <= j; i++) - unicode_width[i] = strdup (field1); - } - else - { - /* Single character line. */ - unicode_width[i] = strdup (field1); - } - } - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error reading from '%s'\n", width_filename); - exit (1); - } -} - -/* Line breaking classification. */ - -enum -{ - /* Values >= 20 are resolved at run time. */ - LBP_BK = 0, /* mandatory break */ -/*LBP_CR, carriage return - not used here because it's a DOSism */ -/*LBP_LF, line feed - not used here because it's a DOSism */ - LBP_CM = 20, /* attached characters and combining marks */ -/*LBP_SG, surrogates - not used here because they are not characters */ - LBP_ZW = 1, /* zero width space */ - LBP_IN = 2, /* inseparable */ - LBP_GL = 3, /* non-breaking (glue) */ - LBP_CB = 22, /* contingent break opportunity */ - LBP_SP = 21, /* space */ - LBP_BA = 4, /* break opportunity after */ - LBP_BB = 5, /* break opportunity before */ - LBP_B2 = 6, /* break opportunity before and after */ - LBP_HY = 7, /* hyphen */ - LBP_NS = 8, /* non starter */ - LBP_OP = 9, /* opening punctuation */ - LBP_CL = 10, /* closing punctuation */ - LBP_QU = 11, /* ambiguous quotation */ - LBP_EX = 12, /* exclamation/interrogation */ - LBP_ID = 13, /* ideographic */ - LBP_NU = 14, /* numeric */ - LBP_IS = 15, /* infix separator (numeric) */ - LBP_SY = 16, /* symbols allowing breaks */ - LBP_AL = 17, /* ordinary alphabetic and symbol characters */ - LBP_PR = 18, /* prefix (numeric) */ - LBP_PO = 19, /* postfix (numeric) */ - LBP_SA = 23, /* complex context (South East Asian) */ - LBP_AI = 24, /* ambiguous (alphabetic or ideograph) */ - LBP_XX = 25 /* unknown */ -}; - -/* Returns the line breaking classification for ch, as a bit mask. */ -static int -get_lbp (unsigned int ch) -{ - int attr = 0; - - if (unicode_attributes[ch].name != NULL) - { - /* mandatory break */ - if (ch == 0x000A || ch == 0x000D || ch == 0x0085 /* newline */ - || ch == 0x000C /* form feed */ - || ch == 0x2028 /* LINE SEPARATOR */ - || ch == 0x2029 /* PARAGRAPH SEPARATOR */) - attr |= 1 << LBP_BK; - - /* zero width space */ - if (ch == 0x200B /* ZERO WIDTH SPACE */) - attr |= 1 << LBP_ZW; - - /* inseparable */ - if (ch == 0x2024 /* ONE DOT LEADER */ - || ch == 0x2025 /* TWO DOT LEADER */ - || ch == 0x2026 /* HORIZONTAL ELLIPSIS */) - attr |= 1 << LBP_IN; - - /* non-breaking (glue) */ - if (ch == 0xFEFF /* ZERO WIDTH NO-BREAK SPACE */ - || ch == 0x00A0 /* NO-BREAK SPACE */ - || ch == 0x202F /* NARROW NO-BREAK SPACE */ - || ch == 0x2007 /* FIGURE SPACE */ - || ch == 0x2011 /* NON-BREAKING HYPHEN */ - || ch == 0x0F0C /* TIBETAN MARK DELIMITER TSHEG BSTAR */) - attr |= 1 << LBP_GL; - - /* contingent break opportunity */ - if (ch == 0xFFFC /* OBJECT REPLACEMENT CHARACTER */) - attr |= 1 << LBP_CB; - - /* space */ - if (ch == 0x0020 /* SPACE */) - attr |= 1 << LBP_SP; - - /* break opportunity after */ - if (ch == 0x2000 /* EN QUAD */ - || ch == 0x2001 /* EM QUAD */ - || ch == 0x2002 /* EN SPACE */ - || ch == 0x2003 /* EM SPACE */ - || ch == 0x2004 /* THREE-PER-EM SPACE */ - || ch == 0x2005 /* FOUR-PER-EM SPACE */ - || ch == 0x2006 /* SIX-PER-EM SPACE */ - || ch == 0x2008 /* PUNCTUATION SPACE */ - || ch == 0x2009 /* THIN SPACE */ - || ch == 0x200A /* HAIR SPACE */ - || ch == 0x0009 /* tab */ - || ch == 0x058A /* ARMENIAN HYPHEN */ - || ch == 0x2010 /* HYPHEN */ - || ch == 0x2012 /* FIGURE DASH */ - || ch == 0x2013 /* EN DASH */ - || ch == 0x00AD /* SOFT HYPHEN */ - || ch == 0x0F0B /* TIBETAN MARK INTERSYLLABIC TSHEG */ - || ch == 0x1361 /* ETHIOPIC WORDSPACE */ - || ch == 0x1680 /* OGHAM SPACE MARK */ - || ch == 0x17D5 /* KHMER SIGN BARIYOOSAN */ - || ch == 0x2027 /* HYPHENATION POINT */ - || ch == 0x007C /* VERTICAL LINE */) - attr |= 1 << LBP_BA; - - /* break opportunity before */ - if (ch == 0x00B4 /* ACUTE ACCENT */ - || ch == 0x02C8 /* MODIFIER LETTER VERTICAL LINE */ - || ch == 0x02CC /* MODIFIER LETTER LOW VERTICAL LINE */ - || ch == 0x1806 /* MONGOLIAN TODO SOFT HYPHEN */) - attr |= 1 << LBP_BB; - - /* break opportunity before and after */ - if (ch == 0x2014 /* EM DASH */) - attr |= 1 << LBP_B2; - - /* hyphen */ - if (ch == 0x002D /* HYPHEN-MINUS */) - attr |= 1 << LBP_HY; - - /* exclamation/interrogation */ - if (ch == 0x0021 /* EXCLAMATION MARK */ - || ch == 0x003F /* QUESTION MARK */ - || ch == 0xFE56 /* SMALL QUESTION MARK */ - || ch == 0xFE57 /* SMALL EXCLAMATION MARK */ - || ch == 0xFF01 /* FULLWIDTH EXCLAMATION MARK */ - || ch == 0xFF1F /* FULLWIDTH QUESTION MARK */) - attr |= 1 << LBP_EX; - - /* opening punctuation */ - if (unicode_attributes[ch].category[0] == 'P' - && unicode_attributes[ch].category[1] == 's') - attr |= 1 << LBP_OP; - - /* closing punctuation */ - if (ch == 0x3001 /* IDEOGRAPHIC COMMA */ - || ch == 0x3002 /* IDEOGRAPHIC FULL STOP */ - || ch == 0xFE50 /* SMALL COMMA */ - || ch == 0xFE52 /* SMALL FULL STOP */ - || ch == 0xFF0C /* FULLWIDTH COMMA */ - || ch == 0xFF0E /* FULLWIDTH FULL STOP */ - || ch == 0xFF61 /* HALFWIDTH IDEOGRAPHIC FULL STOP */ - || ch == 0xFF64 /* HALFWIDTH IDEOGRAPHIC COMMA */ - || (unicode_attributes[ch].category[0] == 'P' - && unicode_attributes[ch].category[1] == 'e')) - attr |= 1 << LBP_CL; - - /* ambiguous quotation */ - if (ch == 0x0022 /* QUOTATION MARK */ - || ch == 0x0027 /* APOSTROPHE */ - || (unicode_attributes[ch].category[0] == 'P' - && (unicode_attributes[ch].category[1] == 'f' - || unicode_attributes[ch].category[1] == 'i'))) - attr |= 1 << LBP_QU; - - /* attached characters and combining marks */ - if ((unicode_attributes[ch].category[0] == 'M' - && (unicode_attributes[ch].category[1] == 'n' - || unicode_attributes[ch].category[1] == 'c' - || unicode_attributes[ch].category[1] == 'e')) - || (ch >= 0x1160 && ch <= 0x11F9) - || (unicode_attributes[ch].category[0] == 'C' - && (unicode_attributes[ch].category[1] == 'c' - || unicode_attributes[ch].category[1] == 'f'))) - if (!(attr & ((1 << LBP_BK) | (1 << LBP_BA) | (1 << LBP_GL)))) - attr |= 1 << LBP_CM; - - /* non starter */ - if (ch == 0x0E5A /* THAI CHARACTER ANGKHANKHU */ - || ch == 0x0E5B /* THAI CHARACTER KHOMUT */ - || ch == 0x17D4 /* KHMER SIGN KHAN */ - || ch == 0x17D6 /* KHMER SIGN CAMNUC PII KUUH */ - || ch == 0x17D7 /* KHMER SIGN LEK TOO */ - || ch == 0x17D8 /* KHMER SIGN BEYYAL */ - || ch == 0x17D9 /* KHMER SIGN PHNAEK MUAN */ - || ch == 0x17DA /* KHMER SIGN KOOMUUT */ - || ch == 0x203C /* DOUBLE EXCLAMATION MARK */ - || ch == 0x2044 /* FRACTION SLASH */ - || ch == 0x3005 /* IDEOGRAPHIC ITERATION MARK */ - || ch == 0x301C /* WAVE DASH */ - || ch == 0x309B /* KATAKANA-HIRAGANA VOICED SOUND MARK */ - || ch == 0x309C /* KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK */ - || ch == 0x309D /* HIRAGANA ITERATION MARK */ - || ch == 0x309E /* HIRAGANA VOICED ITERATION MARK */ - || ch == 0x30FB /* KATAKANA MIDDLE DOT */ - || ch == 0x30FD /* KATAKANA ITERATION MARK */ - || ch == 0xFE54 /* SMALL SEMICOLON */ - || ch == 0xFE55 /* SMALL COLON */ - || ch == 0xFF1A /* FULLWIDTH COLON */ - || ch == 0xFF1B /* FULLWIDTH SEMICOLON */ - || ch == 0xFF65 /* HALFWIDTH KATAKANA MIDDLE DOT */ - || ch == 0xFF70 /* HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK */ - || ch == 0xFF9E /* HALFWIDTH KATAKANA VOICED SOUND MARK */ - || ch == 0xFF9F /* HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK */ - || (unicode_attributes[ch].category[0] == 'L' - && unicode_attributes[ch].category[1] == 'm' - && (unicode_width[ch][0] == 'W' - || unicode_width[ch][0] == 'H')) - || (unicode_attributes[ch].category[0] == 'S' - && unicode_attributes[ch].category[1] == 'k' - && unicode_width[ch][0] == 'W') - || strstr (unicode_attributes[ch].name, "HIRAGANA LETTER SMALL ") != NULL - || strstr (unicode_attributes[ch].name, "KATAKANA LETTER SMALL ") != NULL) - attr |= 1 << LBP_NS; - - /* numeric */ - if (unicode_attributes[ch].category[0] == 'N' - && unicode_attributes[ch].category[1] == 'd' - && strstr (unicode_attributes[ch].name, "FULLWIDTH") == NULL) - attr |= 1 << LBP_NU; - - /* infix separator (numeric) */ - if (ch == 0x002C /* COMMA */ - || ch == 0x002E /* FULL STOP */ - || ch == 0x003A /* COLON */ - || ch == 0x003B /* SEMICOLON */ - || ch == 0x0589 /* ARMENIAN FULL STOP */) - attr |= 1 << LBP_IS; - - /* symbols allowing breaks */ - if (ch == 0x002F /* SOLIDUS */) - attr |= 1 << LBP_SY; - - /* postfix (numeric) */ - if (ch == 0x0025 /* PERCENT SIGN */ - || ch == 0x00A2 /* CENT SIGN */ - || ch == 0x00B0 /* DEGREE SIGN */ - || ch == 0x2030 /* PER MILLE SIGN */ - || ch == 0x2031 /* PER TEN THOUSAND SIGN */ - || ch == 0x2032 /* PRIME */ - || ch == 0x2033 /* DOUBLE PRIME */ - || ch == 0x2034 /* TRIPLE PRIME */ - || ch == 0x2035 /* REVERSED PRIME */ - || ch == 0x2036 /* REVERSED DOUBLE PRIME */ - || ch == 0x2037 /* REVERSED TRIPLE PRIME */ - || ch == 0x20A7 /* PESETA SIGN */ - || ch == 0x2103 /* DEGREE CELSIUS */ - || ch == 0x2109 /* DEGREE FAHRENHEIT */ - || ch == 0x2126 /* OHM SIGN */ - || ch == 0xFE6A /* SMALL PERCENT SIGN */ - || ch == 0xFF05 /* FULLWIDTH PERCENT SIGN */ - || ch == 0xFFE0 /* FULLWIDTH DIGIT ZERO */) - attr |= 1 << LBP_PO; - - /* prefix (numeric) */ - if (ch == 0x002B /* PLUS SIGN */ - || ch == 0x005C /* REVERSE SOLIDUS */ - || ch == 0x00B1 /* PLUS-MINUS SIGN */ - || ch == 0x2116 /* NUMERO SIGN */ - || ch == 0x2212 /* MINUS SIGN */ - || ch == 0x2213 /* MINUS-OR-PLUS SIGN */ - || (unicode_attributes[ch].category[0] == 'S' - && unicode_attributes[ch].category[1] == 'c')) - if (!(attr & (1 << LBP_PO))) - attr |= 1 << LBP_PR; - - /* complex context (South East Asian) */ - if (((ch >= 0x0E00 && ch <= 0x0EFF) - || (ch >= 0x1000 && ch <= 0x109F) - || (ch >= 0x1780 && ch <= 0x17FF)) - && unicode_attributes[ch].category[0] == 'L' - && (unicode_attributes[ch].category[1] == 'm' - || unicode_attributes[ch].category[1] == 'o')) - if (!(attr & ((1 << LBP_CM) | (1 << LBP_NS) | (1 << LBP_NU) | (1 << LBP_BA) | (1 << LBP_PR)))) - attr |= 1 << LBP_SA; - - /* ideographic */ - if ((ch >= 0x1100 && ch <= 0x115F) /* HANGUL CHOSEONG */ - || (ch >= 0x2E80 && ch <= 0x2FFF) /* CJK RADICAL, KANGXI RADICAL, IDEOGRAPHIC DESCRIPTION */ - || ch == 0x3000 /* IDEOGRAPHIC SPACE */ - || (ch >= 0x3130 && ch <= 0x318F) /* HANGUL LETTER */ - || (ch >= 0x3400 && ch <= 0x4DBF) /* CJK Ideograph Extension A */ - || (ch >= 0x4E00 && ch <= 0x9FAF) /* CJK Ideograph */ - || (ch >= 0xF900 && ch <= 0xFAFF) /* CJK COMPATIBILITY IDEOGRAPH */ - || (ch >= 0xAC00 && ch <= 0xD7AF) /* HANGUL SYLLABLE */ - || (ch >= 0xA000 && ch <= 0xA48C) /* YI SYLLABLE */ - || (ch >= 0xA490 && ch <= 0xA4C6) /* YI RADICAL */ - || ch == 0xFE62 /* SMALL PLUS SIGN */ - || ch == 0xFE63 /* SMALL HYPHEN-MINUS */ - || ch == 0xFE64 /* SMALL LESS-THAN SIGN */ - || ch == 0xFE65 /* SMALL GREATER-THAN SIGN */ - || ch == 0xFE66 /* SMALL EQUALS SIGN */ - || (ch >= 0xFF10 && ch <= 0xFF19) /* FULLWIDTH DIGIT */ - || (ch >= 0x20000 && ch <= 0x2A6D6) /* CJK Ideograph Extension B */ - || (ch >= 0x2F800 && ch <= 0x2FA1D) /* CJK COMPATIBILITY IDEOGRAPH */ - || strstr (unicode_attributes[ch].name, "FULLWIDTH LATIN ") != NULL - || (ch >= 0x3000 && ch <= 0x33FF - && !(attr & ((1 << LBP_CM) | (1 << LBP_NS) | (1 << LBP_OP) | (1 << LBP_CL)))) - /* Extra characters for compatibility with Unicode LineBreak.txt. */ - || ch == 0xFE30 /* PRESENTATION FORM FOR VERTICAL TWO DOT LEADER */ - || ch == 0xFE31 /* PRESENTATION FORM FOR VERTICAL EM DASH */ - || ch == 0xFE32 /* PRESENTATION FORM FOR VERTICAL EN DASH */ - || ch == 0xFE33 /* PRESENTATION FORM FOR VERTICAL LOW LINE */ - || ch == 0xFE34 /* PRESENTATION FORM FOR VERTICAL WAVY LOW LINE */ - || ch == 0xFE49 /* DASHED OVERLINE */ - || ch == 0xFE4A /* CENTRELINE OVERLINE */ - || ch == 0xFE4B /* WAVY OVERLINE */ - || ch == 0xFE4C /* DOUBLE WAVY OVERLINE */ - || ch == 0xFE4D /* DASHED LOW LINE */ - || ch == 0xFE4E /* CENTRELINE LOW LINE */ - || ch == 0xFE4F /* WAVY LOW LINE */ - || ch == 0xFE51 /* SMALL IDEOGRAPHIC COMMA */ - || ch == 0xFE58 /* SMALL EM DASH */ - || ch == 0xFE5F /* SMALL NUMBER SIGN */ - || ch == 0xFE60 /* SMALL AMPERSAND */ - || ch == 0xFE61 /* SMALL ASTERISK */ - || ch == 0xFE68 /* SMALL REVERSE SOLIDUS */ - || ch == 0xFE6B /* SMALL COMMERCIAL AT */ - || ch == 0xFF02 /* FULLWIDTH QUOTATION MARK */ - || ch == 0xFF03 /* FULLWIDTH NUMBER SIGN */ - || ch == 0xFF06 /* FULLWIDTH AMPERSAND */ - || ch == 0xFF07 /* FULLWIDTH APOSTROPHE */ - || ch == 0xFF0A /* FULLWIDTH ASTERISK */ - || ch == 0xFF0B /* FULLWIDTH PLUS SIGN */ - || ch == 0xFF0D /* FULLWIDTH HYPHEN-MINUS */ - || ch == 0xFF0F /* FULLWIDTH SOLIDUS */ - || ch == 0xFF1C /* FULLWIDTH LESS-THAN SIGN */ - || ch == 0xFF1D /* FULLWIDTH EQUALS SIGN */ - || ch == 0xFF1E /* FULLWIDTH GREATER-THAN SIGN */ - || ch == 0xFF20 /* FULLWIDTH COMMERCIAL AT */ - || ch == 0xFF3C /* FULLWIDTH REVERSE SOLIDUS */ - || ch == 0xFF3E /* FULLWIDTH CIRCUMFLEX ACCENT */ - || ch == 0xFF3F /* FULLWIDTH LOW LINE */ - || ch == 0xFF40 /* FULLWIDTH GRAVE ACCENT */ - || ch == 0xFF5C /* FULLWIDTH VERTICAL LINE */ - || ch == 0xFF5E /* FULLWIDTH TILDE */ - || ch == 0xFFE2 /* FULLWIDTH NOT SIGN */ - || ch == 0xFFE3 /* FULLWIDTH MACRON */ - || ch == 0xFFE4) /* FULLWIDTH BROKEN BAR */ - { - /* ambiguous (ideograph) ? */ - if (unicode_width[ch] != NULL - && unicode_width[ch][0] == 'A') - attr |= 1 << LBP_AI; - else - attr |= 1 << LBP_ID; - } - - /* ordinary alphabetic and symbol characters */ - if ((unicode_attributes[ch].category[0] == 'L' - && (unicode_attributes[ch].category[1] == 'u' - || unicode_attributes[ch].category[1] == 'l' - || unicode_attributes[ch].category[1] == 't' - || unicode_attributes[ch].category[1] == 'm' - || unicode_attributes[ch].category[1] == 'o')) - || (unicode_attributes[ch].category[0] == 'S' - && (unicode_attributes[ch].category[1] == 'm' - || unicode_attributes[ch].category[1] == 'c' - || unicode_attributes[ch].category[1] == 'k' - || unicode_attributes[ch].category[1] == 'o')) - /* Extra characters for compatibility with Unicode LineBreak.txt. */ - || ch == 0x0023 /* NUMBER SIGN */ - || ch == 0x0026 /* AMPERSAND */ - || ch == 0x002A /* ASTERISK */ - || ch == 0x0040 /* COMMERCIAL AT */ - || ch == 0x005F /* LOW LINE */ - || ch == 0x00A1 /* INVERTED EXCLAMATION MARK */ - || ch == 0x00B2 /* SUPERSCRIPT TWO */ - || ch == 0x00B3 /* SUPERSCRIPT THREE */ - || ch == 0x00B7 /* MIDDLE DOT */ - || ch == 0x00B9 /* SUPERSCRIPT ONE */ - || ch == 0x00BC /* VULGAR FRACTION ONE QUARTER */ - || ch == 0x00BD /* VULGAR FRACTION ONE HALF */ - || ch == 0x00BE /* VULGAR FRACTION THREE QUARTERS */ - || ch == 0x00BF /* INVERTED QUESTION MARK */ - || ch == 0x037E /* GREEK QUESTION MARK */ - || ch == 0x0387 /* GREEK ANO TELEIA */ - || ch == 0x055A /* ARMENIAN APOSTROPHE */ - || ch == 0x055B /* ARMENIAN EMPHASIS MARK */ - || ch == 0x055C /* ARMENIAN EXCLAMATION MARK */ - || ch == 0x055D /* ARMENIAN COMMA */ - || ch == 0x055E /* ARMENIAN QUESTION MARK */ - || ch == 0x055F /* ARMENIAN ABBREVIATION MARK */ - || ch == 0x05BE /* HEBREW PUNCTUATION MAQAF */ - || ch == 0x05C0 /* HEBREW PUNCTUATION PASEQ */ - || ch == 0x05C3 /* HEBREW PUNCTUATION SOF PASUQ */ - || ch == 0x05F3 /* HEBREW PUNCTUATION GERESH */ - || ch == 0x05F4 /* HEBREW PUNCTUATION GERSHAYIM */ - || ch == 0x060C /* ARABIC COMMA */ - || ch == 0x061B /* ARABIC SEMICOLON */ - || ch == 0x061F /* ARABIC QUESTION MARK */ - || ch == 0x066A /* ARABIC PERCENT SIGN */ - || ch == 0x066B /* ARABIC DECIMAL SEPARATOR */ - || ch == 0x066C /* ARABIC THOUSANDS SEPARATOR */ - || ch == 0x066D /* ARABIC FIVE POINTED STAR */ - || ch == 0x06D4 /* ARABIC FULL STOP */ - || ch == 0x0700 /* SYRIAC END OF PARAGRAPH */ - || ch == 0x0701 /* SYRIAC SUPRALINEAR FULL STOP */ - || ch == 0x0702 /* SYRIAC SUBLINEAR FULL STOP */ - || ch == 0x0703 /* SYRIAC SUPRALINEAR COLON */ - || ch == 0x0704 /* SYRIAC SUBLINEAR COLON */ - || ch == 0x0705 /* SYRIAC HORIZONTAL COLON */ - || ch == 0x0706 /* SYRIAC COLON SKEWED LEFT */ - || ch == 0x0707 /* SYRIAC COLON SKEWED RIGHT */ - || ch == 0x0708 /* SYRIAC SUPRALINEAR COLON SKEWED LEFT */ - || ch == 0x0709 /* SYRIAC SUBLINEAR COLON SKEWED RIGHT */ - || ch == 0x070A /* SYRIAC CONTRACTION */ - || ch == 0x070B /* SYRIAC HARKLEAN OBELUS */ - || ch == 0x070C /* SYRIAC HARKLEAN METOBELUS */ - || ch == 0x070D /* SYRIAC HARKLEAN ASTERISCUS */ - || ch == 0x0964 /* DEVANAGARI DANDA */ - || ch == 0x0965 /* DEVANAGARI DOUBLE DANDA */ - || ch == 0x0970 /* DEVANAGARI ABBREVIATION SIGN */ - || ch == 0x09F4 /* BENGALI CURRENCY NUMERATOR ONE */ - || ch == 0x09F5 /* BENGALI CURRENCY NUMERATOR TWO */ - || ch == 0x09F6 /* BENGALI CURRENCY NUMERATOR THREE */ - || ch == 0x09F7 /* BENGALI CURRENCY NUMERATOR FOUR */ - || ch == 0x09F8 /* BENGALI CURRENCY NUMERATOR ONE LESS THAN THE DENOMINATOR */ - || ch == 0x09F9 /* BENGALI CURRENCY DENOMINATOR SIXTEEN */ - || ch == 0x0BF0 /* TAMIL NUMBER TEN */ - || ch == 0x0BF1 /* TAMIL NUMBER ONE HUNDRED */ - || ch == 0x0BF2 /* TAMIL NUMBER ONE THOUSAND */ - || ch == 0x0DF4 /* SINHALA PUNCTUATION KUNDDALIYA */ - || ch == 0x0E4F /* THAI CHARACTER FONGMAN */ - || ch == 0x0F04 /* TIBETAN MARK INITIAL YIG MGO MDUN MA */ - || ch == 0x0F05 /* TIBETAN MARK CLOSING YIG MGO SGAB MA */ - || ch == 0x0F06 /* TIBETAN MARK CARET YIG MGO PHUR SHAD MA */ - || ch == 0x0F07 /* TIBETAN MARK YIG MGO TSHEG SHAD MA */ - || ch == 0x0F08 /* TIBETAN MARK SBRUL SHAD */ - || ch == 0x0F09 /* TIBETAN MARK BSKUR YIG MGO */ - || ch == 0x0F0A /* TIBETAN MARK BKA- SHOG YIG MGO */ - || ch == 0x0F0D /* TIBETAN MARK SHAD */ - || ch == 0x0F0E /* TIBETAN MARK NYIS SHAD */ - || ch == 0x0F0F /* TIBETAN MARK TSHEG SHAD */ - || ch == 0x0F10 /* TIBETAN MARK NYIS TSHEG SHAD */ - || ch == 0x0F11 /* TIBETAN MARK RIN CHEN SPUNGS SHAD */ - || ch == 0x0F12 /* TIBETAN MARK RGYA GRAM SHAD */ - || ch == 0x0F2A /* TIBETAN DIGIT HALF ONE */ - || ch == 0x0F2B /* TIBETAN DIGIT HALF TWO */ - || ch == 0x0F2C /* TIBETAN DIGIT HALF THREE */ - || ch == 0x0F2D /* TIBETAN DIGIT HALF FOUR */ - || ch == 0x0F2E /* TIBETAN DIGIT HALF FIVE */ - || ch == 0x0F2F /* TIBETAN DIGIT HALF SIX */ - || ch == 0x0F30 /* TIBETAN DIGIT HALF SEVEN */ - || ch == 0x0F31 /* TIBETAN DIGIT HALF EIGHT */ - || ch == 0x0F32 /* TIBETAN DIGIT HALF NINE */ - || ch == 0x0F33 /* TIBETAN DIGIT HALF ZERO */ - || ch == 0x0F85 /* TIBETAN MARK PALUTA */ - || ch == 0x104A /* MYANMAR SIGN LITTLE SECTION */ - || ch == 0x104B /* MYANMAR SIGN SECTION */ - || ch == 0x104C /* MYANMAR SYMBOL LOCATIVE */ - || ch == 0x104D /* MYANMAR SYMBOL COMPLETED */ - || ch == 0x104E /* MYANMAR SYMBOL AFOREMENTIONED */ - || ch == 0x104F /* MYANMAR SYMBOL GENITIVE */ - || ch == 0x10FB /* GEORGIAN PARAGRAPH SEPARATOR */ - || ch == 0x1362 /* ETHIOPIC FULL STOP */ - || ch == 0x1363 /* ETHIOPIC COMMA */ - || ch == 0x1364 /* ETHIOPIC SEMICOLON */ - || ch == 0x1365 /* ETHIOPIC COLON */ - || ch == 0x1366 /* ETHIOPIC PREFACE COLON */ - || ch == 0x1367 /* ETHIOPIC QUESTION MARK */ - || ch == 0x1368 /* ETHIOPIC PARAGRAPH SEPARATOR */ - || ch == 0x1372 /* ETHIOPIC NUMBER TEN */ - || ch == 0x1373 /* ETHIOPIC NUMBER TWENTY */ - || ch == 0x1374 /* ETHIOPIC NUMBER THIRTY */ - || ch == 0x1375 /* ETHIOPIC NUMBER FORTY */ - || ch == 0x1376 /* ETHIOPIC NUMBER FIFTY */ - || ch == 0x1377 /* ETHIOPIC NUMBER SIXTY */ - || ch == 0x1378 /* ETHIOPIC NUMBER SEVENTY */ - || ch == 0x1379 /* ETHIOPIC NUMBER EIGHTY */ - || ch == 0x137A /* ETHIOPIC NUMBER NINETY */ - || ch == 0x137B /* ETHIOPIC NUMBER HUNDRED */ - || ch == 0x137C /* ETHIOPIC NUMBER TEN THOUSAND */ - || ch == 0x166D /* CANADIAN SYLLABICS CHI SIGN */ - || ch == 0x166E /* CANADIAN SYLLABICS FULL STOP */ - || ch == 0x16EB /* RUNIC SINGLE PUNCTUATION */ - || ch == 0x16EC /* RUNIC MULTIPLE PUNCTUATION */ - || ch == 0x16ED /* RUNIC CROSS PUNCTUATION */ - || ch == 0x16EE /* RUNIC ARLAUG SYMBOL */ - || ch == 0x16EF /* RUNIC TVIMADUR SYMBOL */ - || ch == 0x16F0 /* RUNIC BELGTHOR SYMBOL */ - || ch == 0x17DC /* KHMER SIGN AVAKRAHASANYA */ - || ch == 0x1800 /* MONGOLIAN BIRGA */ - || ch == 0x1801 /* MONGOLIAN ELLIPSIS */ - || ch == 0x1802 /* MONGOLIAN COMMA */ - || ch == 0x1803 /* MONGOLIAN FULL STOP */ - || ch == 0x1804 /* MONGOLIAN COLON */ - || ch == 0x1805 /* MONGOLIAN FOUR DOTS */ - || ch == 0x1807 /* MONGOLIAN SIBE SYLLABLE BOUNDARY MARKER */ - || ch == 0x1808 /* MONGOLIAN MANCHU COMMA */ - || ch == 0x1809 /* MONGOLIAN MANCHU FULL STOP */ - || ch == 0x180A /* MONGOLIAN NIRUGU */ - || ch == 0x2015 /* HORIZONTAL BAR */ - || ch == 0x2016 /* DOUBLE VERTICAL LINE */ - || ch == 0x2017 /* DOUBLE LOW LINE */ - || ch == 0x2020 /* DAGGER */ - || ch == 0x2021 /* DOUBLE DAGGER */ - || ch == 0x2022 /* BULLET */ - || ch == 0x2023 /* TRIANGULAR BULLET */ - || ch == 0x2038 /* CARET */ - || ch == 0x203B /* REFERENCE MARK */ - || ch == 0x203D /* INTERROBANG */ - || ch == 0x203E /* OVERLINE */ - || ch == 0x203F /* UNDERTIE */ - || ch == 0x2040 /* CHARACTER TIE */ - || ch == 0x2041 /* CARET INSERTION POINT */ - || ch == 0x2042 /* ASTERISM */ - || ch == 0x2043 /* HYPHEN BULLET */ - || ch == 0x2048 /* QUESTION EXCLAMATION MARK */ - || ch == 0x2049 /* EXCLAMATION QUESTION MARK */ - || ch == 0x204A /* TIRONIAN SIGN ET */ - || ch == 0x204B /* REVERSED PILCROW SIGN */ - || ch == 0x204C /* BLACK LEFTWARDS BULLET */ - || ch == 0x204D /* BLACK RIGHTWARDS BULLET */ - || ch == 0x2070 /* SUPERSCRIPT ZERO */ - || ch == 0x2074 /* SUPERSCRIPT FOUR */ - || ch == 0x2075 /* SUPERSCRIPT FIVE */ - || ch == 0x2076 /* SUPERSCRIPT SIX */ - || ch == 0x2077 /* SUPERSCRIPT SEVEN */ - || ch == 0x2078 /* SUPERSCRIPT EIGHT */ - || ch == 0x2079 /* SUPERSCRIPT NINE */ - || ch == 0x2080 /* SUBSCRIPT ZERO */ - || ch == 0x2081 /* SUBSCRIPT ONE */ - || ch == 0x2082 /* SUBSCRIPT TWO */ - || ch == 0x2083 /* SUBSCRIPT THREE */ - || ch == 0x2084 /* SUBSCRIPT FOUR */ - || ch == 0x2085 /* SUBSCRIPT FIVE */ - || ch == 0x2086 /* SUBSCRIPT SIX */ - || ch == 0x2087 /* SUBSCRIPT SEVEN */ - || ch == 0x2088 /* SUBSCRIPT EIGHT */ - || ch == 0x2089 /* SUBSCRIPT NINE */ - || (ch >= 0x2153 && ch <= 0x215E) /* VULGAR FRACTION */ - || ch == 0x215F /* FRACTION NUMERATOR ONE */ - || (ch >= 0x2160 && ch <= 0x2183) /* ROMAN NUMERAL */ - || (ch >= 0x2460 && ch <= 0x2473) /* CIRCLED NUMBER */ - || (ch >= 0x2474 && ch <= 0x2487) /* PARENTHESIZED NUMBER */ - || (ch >= 0x2488 && ch <= 0x249B) /* NUMBER FULL STOP */ - || ch == 0x24EA /* CIRCLED DIGIT ZERO */ - || (ch >= 0x2776 && ch <= 0x2793) /* DINGBAT CIRCLED DIGIT */ - || ch == 0x10320 /* OLD ITALIC NUMERAL ONE */ - || ch == 0x10321 /* OLD ITALIC NUMERAL FIVE */ - || ch == 0x10322 /* OLD ITALIC NUMERAL TEN */ - || ch == 0x10323 /* OLD ITALIC NUMERAL FIFTY */ - || ch == 0x1034A) /* GOTHIC LETTER NINE HUNDRED */ - if (!(attr & ((1 << LBP_CM) | (1 << LBP_NS) | (1 << LBP_ID) | (1 << LBP_BA) | (1 << LBP_BB) | (1 << LBP_PO) | (1 << LBP_PR) | (1 << LBP_SA) | (1 << LBP_CB)))) - { - /* ambiguous (alphabetic) ? */ - if (unicode_width[ch] != NULL - && unicode_width[ch][0] == 'A') - attr |= 1 << LBP_AI; - else - attr |= 1 << LBP_AL; - } - } - - if (attr == 0) - /* unknown */ - attr |= 1 << LBP_XX; - - return attr; -} - -/* Output the line breaking properties in a human readable format. */ -static void -debug_output_lbp (FILE *stream) -{ - unsigned int i; - - for (i = 0; i < 0x110000; i++) - { - int attr = get_lbp (i); - if (attr != 1 << LBP_XX) - { - fprintf (stream, "0x%04X", i); -#define PRINT_BIT(attr,bit) \ - if (attr & (1 << bit)) fprintf (stream, " " #bit); - PRINT_BIT(attr,LBP_BK); - PRINT_BIT(attr,LBP_CM); - PRINT_BIT(attr,LBP_ZW); - PRINT_BIT(attr,LBP_IN); - PRINT_BIT(attr,LBP_GL); - PRINT_BIT(attr,LBP_CB); - PRINT_BIT(attr,LBP_SP); - PRINT_BIT(attr,LBP_BA); - PRINT_BIT(attr,LBP_BB); - PRINT_BIT(attr,LBP_B2); - PRINT_BIT(attr,LBP_HY); - PRINT_BIT(attr,LBP_NS); - PRINT_BIT(attr,LBP_OP); - PRINT_BIT(attr,LBP_CL); - PRINT_BIT(attr,LBP_QU); - PRINT_BIT(attr,LBP_EX); - PRINT_BIT(attr,LBP_ID); - PRINT_BIT(attr,LBP_NU); - PRINT_BIT(attr,LBP_IS); - PRINT_BIT(attr,LBP_SY); - PRINT_BIT(attr,LBP_AL); - PRINT_BIT(attr,LBP_PR); - PRINT_BIT(attr,LBP_PO); - PRINT_BIT(attr,LBP_SA); - PRINT_BIT(attr,LBP_XX); - PRINT_BIT(attr,LBP_AI); -#undef PRINT_BIT - fprintf (stream, "\n"); - } - } -} - -static void -debug_output_tables (const char *filename) -{ - FILE *stream; - - stream = fopen (filename, "w"); - if (stream == NULL) - { - fprintf (stderr, "cannot open '%s' for writing\n", filename); - exit (1); - } - - debug_output_lbp (stream); - - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error writing to '%s'\n", filename); - exit (1); - } -} - -/* The line breaking property from the LineBreak.txt file. */ -int unicode_org_lbp[0x110000]; - -/* Stores in unicode_org_lbp[] the line breaking property from the - LineBreak.txt file. */ -static void -fill_org_lbp (const char *linebreak_filename) -{ - unsigned int i, j; - FILE *stream; - char field0[FIELDLEN]; - char field1[FIELDLEN]; - char field2[FIELDLEN]; - int lineno = 0; - - for (i = 0; i < 0x110000; i++) - unicode_org_lbp[i] = LBP_XX; - - stream = fopen (linebreak_filename, "r"); - if (stream == NULL) - { - fprintf (stderr, "error during fopen of '%s'\n", linebreak_filename); - exit (1); - } - - for (;;) - { - int n; - int c; - int value; - - lineno++; - c = getc (stream); - if (c == EOF) - break; - if (c == '#') - { - do c = getc (stream); while (c != EOF && c != '\n'); - continue; - } - ungetc (c, stream); - n = getfield (stream, field0, ';'); - n += getfield (stream, field1, ' '); - n += getfield (stream, field2, '\n'); - if (n == 0) - break; - if (n != 3) - { - fprintf (stderr, "short line in '%s':%d\n", linebreak_filename, - lineno); - exit (1); - } -#define TRY(bit) else if (strcmp (field1, #bit + 4) == 0) value = bit; - if (false) {} - TRY(LBP_BK) - TRY(LBP_CM) - TRY(LBP_ZW) - TRY(LBP_IN) - TRY(LBP_GL) - TRY(LBP_CB) - TRY(LBP_SP) - TRY(LBP_BA) - TRY(LBP_BB) - TRY(LBP_B2) - TRY(LBP_HY) - TRY(LBP_NS) - TRY(LBP_OP) - TRY(LBP_CL) - TRY(LBP_QU) - TRY(LBP_EX) - TRY(LBP_ID) - TRY(LBP_NU) - TRY(LBP_IS) - TRY(LBP_SY) - TRY(LBP_AL) - TRY(LBP_PR) - TRY(LBP_PO) - TRY(LBP_SA) - TRY(LBP_XX) - TRY(LBP_AI) -#undef TRY - else if (strcmp (field1, "LF") == 0) value = LBP_BK; - else if (strcmp (field1, "CR") == 0) value = LBP_BK; - else if (strcmp (field1, "SG") == 0) value = LBP_XX; - else - { - fprintf (stderr, "unknown property value \"%s\" in '%s':%d\n", - field1, linebreak_filename, lineno); - exit (1); - } - i = strtoul (field0, NULL, 16); - if (strstr (field0, "..") != NULL) - { - /* Deal with a range. */ - j = strtoul (strstr (field0, "..") + 2, NULL, 16); - for (; i <= j; i++) - unicode_org_lbp[i] = value; - } - else - { - /* Single character line. */ - unicode_org_lbp[i] = value; - } - } - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error reading from '%s'\n", linebreak_filename); - exit (1); - } -} - -/* Output the line breaking properties in a human readable format. */ -static void -debug_output_org_lbp (FILE *stream) -{ - unsigned int i; - - for (i = 0; i < 0x110000; i++) - { - int attr = unicode_org_lbp[i]; - if (attr != LBP_XX) - { - fprintf (stream, "0x%04X", i); -#define PRINT_BIT(attr,bit) \ - if (attr == bit) fprintf (stream, " " #bit); - PRINT_BIT(attr,LBP_BK); - PRINT_BIT(attr,LBP_CM); - PRINT_BIT(attr,LBP_ZW); - PRINT_BIT(attr,LBP_IN); - PRINT_BIT(attr,LBP_GL); - PRINT_BIT(attr,LBP_CB); - PRINT_BIT(attr,LBP_SP); - PRINT_BIT(attr,LBP_BA); - PRINT_BIT(attr,LBP_BB); - PRINT_BIT(attr,LBP_B2); - PRINT_BIT(attr,LBP_HY); - PRINT_BIT(attr,LBP_NS); - PRINT_BIT(attr,LBP_OP); - PRINT_BIT(attr,LBP_CL); - PRINT_BIT(attr,LBP_QU); - PRINT_BIT(attr,LBP_EX); - PRINT_BIT(attr,LBP_ID); - PRINT_BIT(attr,LBP_NU); - PRINT_BIT(attr,LBP_IS); - PRINT_BIT(attr,LBP_SY); - PRINT_BIT(attr,LBP_AL); - PRINT_BIT(attr,LBP_PR); - PRINT_BIT(attr,LBP_PO); - PRINT_BIT(attr,LBP_SA); - PRINT_BIT(attr,LBP_XX); - PRINT_BIT(attr,LBP_AI); -#undef PRINT_BIT - fprintf (stream, "\n"); - } - } -} - -static void -debug_output_org_tables (const char *filename) -{ - FILE *stream; - - stream = fopen (filename, "w"); - if (stream == NULL) - { - fprintf (stderr, "cannot open '%s' for writing\n", filename); - exit (1); - } - - debug_output_org_lbp (stream); - - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error writing to '%s'\n", filename); - exit (1); - } -} - -/* Construction of sparse 3-level tables. */ -#define TABLE lbp_table -#define ELEMENT unsigned char -#define DEFAULT LBP_XX -#define xmalloc malloc -#define xrealloc realloc -#include "3level.h" - -static void -output_lbp (FILE *stream) -{ - unsigned int i; - struct lbp_table t; - unsigned int level1_offset, level2_offset, level3_offset; - - t.p = 7; - t.q = 9; - lbp_table_init (&t); - - for (i = 0; i < 0x110000; i++) - { - int attr = get_lbp (i); - - /* Now attr should contain exactly one bit. */ - if (attr == 0 || ((attr & (attr - 1)) != 0)) - abort (); - - if (attr != 1 << LBP_XX) - { - unsigned int log2_attr; - for (log2_attr = 0; attr > 1; attr >>= 1, log2_attr++); - - lbp_table_add (&t, i, log2_attr); - } - } - - lbp_table_finalize (&t); - - level1_offset = - 5 * sizeof (uint32_t); - level2_offset = - 5 * sizeof (uint32_t) - + t.level1_size * sizeof (uint32_t); - level3_offset = - 5 * sizeof (uint32_t) - + t.level1_size * sizeof (uint32_t) - + (t.level2_size << t.q) * sizeof (uint32_t); - - for (i = 0; i < 5; i++) - fprintf (stream, "#define lbrkprop_header_%d %d\n", i, - ((uint32_t *) t.result)[i]); - fprintf (stream, "static const\n"); - fprintf (stream, "struct\n"); - fprintf (stream, " {\n"); - fprintf (stream, " int level1[%d];\n", t.level1_size); - fprintf (stream, " int level2[%d << %d];\n", t.level2_size, t.q); - fprintf (stream, " unsigned char level3[%d << %d];\n", t.level3_size, t.p); - fprintf (stream, " }\n"); - fprintf (stream, "lbrkprop =\n"); - fprintf (stream, "{\n"); - fprintf (stream, " {"); - for (i = 0; i < t.level1_size; i++) - { - uint32_t offset; - if (i > 0 && (i % 8) == 0) - fprintf (stream, "\n "); - offset = ((uint32_t *) (t.result + level1_offset))[i]; - fprintf (stream, " %5d%s", - offset == 0 ? -1 : (offset - level2_offset) / sizeof (uint32_t), - (i+1 < t.level1_size ? "," : "")); - } - fprintf (stream, " },\n"); - fprintf (stream, " {"); - if (t.level2_size << t.q > 8) - fprintf (stream, "\n "); - for (i = 0; i < t.level2_size << t.q; i++) - { - uint32_t offset; - if (i > 0 && (i % 8) == 0) - fprintf (stream, "\n "); - offset = ((uint32_t *) (t.result + level2_offset))[i]; - fprintf (stream, " %5d%s", - offset == 0 ? -1 : (offset - level3_offset) / sizeof (uint8_t), - (i+1 < t.level2_size << t.q ? "," : "")); - } - if (t.level2_size << t.q > 8) - fprintf (stream, "\n "); - fprintf (stream, " },\n"); - fprintf (stream, " {"); - if (t.level3_size << t.p > 8) - fprintf (stream, "\n "); - for (i = 0; i < t.level3_size << t.p; i++) - { - unsigned char value = ((unsigned char *) (t.result + level3_offset))[i]; - const char *value_string; - switch (value) - { -#define CASE(x) case x: value_string = #x; break; - CASE(LBP_BK); - CASE(LBP_CM); - CASE(LBP_ZW); - CASE(LBP_IN); - CASE(LBP_GL); - CASE(LBP_CB); - CASE(LBP_SP); - CASE(LBP_BA); - CASE(LBP_BB); - CASE(LBP_B2); - CASE(LBP_HY); - CASE(LBP_NS); - CASE(LBP_OP); - CASE(LBP_CL); - CASE(LBP_QU); - CASE(LBP_EX); - CASE(LBP_ID); - CASE(LBP_NU); - CASE(LBP_IS); - CASE(LBP_SY); - CASE(LBP_AL); - CASE(LBP_PR); - CASE(LBP_PO); - CASE(LBP_SA); - CASE(LBP_XX); - CASE(LBP_AI); -#undef CASE - default: - abort (); - } - if (i > 0 && (i % 8) == 0) - fprintf (stream, "\n "); - fprintf (stream, " %s%s", value_string, - (i+1 < t.level3_size << t.p ? "," : "")); - } - if (t.level3_size << t.p > 8) - fprintf (stream, "\n "); - fprintf (stream, " }\n"); - fprintf (stream, "};\n"); -} - -static void -output_tables (const char *filename, const char *version) -{ - FILE *stream; - - stream = fopen (filename, "w"); - if (stream == NULL) - { - fprintf (stderr, "cannot open '%s' for writing\n", filename); - exit (1); - } - - fprintf (stream, "/* Line breaking properties of Unicode characters. */\n"); - fprintf (stream, "/* Generated automatically by gen-lbrkprop for Unicode %s. */\n", - version); - fprintf (stream, "\n"); - - /* Put a GPL header on it. The gnulib module is under LGPL (although it - still carries the GPL header), and it's gnulib-tool which replaces the - GPL header with an LGPL header. */ - fprintf (stream, "/* Copyright (C) 2000-2004 Free Software Foundation, Inc.\n"); - fprintf (stream, "\n"); - fprintf (stream, "This program is free software; you can redistribute it and/or modify\n"); - fprintf (stream, "it under the terms of the GNU General Public License as published by\n"); - fprintf (stream, "the Free Software Foundation; either version 2, or (at your option)\n"); - fprintf (stream, "any later version.\n"); - fprintf (stream, "\n"); - fprintf (stream, "This program is distributed in the hope that it will be useful,\n"); - fprintf (stream, "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"); - fprintf (stream, "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"); - fprintf (stream, "GNU General Public License for more details.\n"); - fprintf (stream, "\n"); - fprintf (stream, "You should have received a copy of the GNU General Public License\n"); - fprintf (stream, "along with this program; if not, write to the Free Software\n"); - fprintf (stream, "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */\n"); - fprintf (stream, "\n"); - - output_lbp (stream); - - if (ferror (stream) || fclose (stream)) - { - fprintf (stderr, "error writing to '%s'\n", filename); - exit (1); - } -} - -int -main (int argc, char * argv[]) -{ - if (argc != 6) - { - fprintf (stderr, "Usage: %s UnicodeData.txt Combining.txt EastAsianWidth.txt LineBreak.txt version\n", - argv[0]); - exit (1); - } - - fill_attributes (argv[1]); - fill_combining (argv[2]); - fill_width (argv[3]); - fill_org_lbp (argv[4]); - - debug_output_tables ("lbrkprop.txt"); - debug_output_org_tables ("lbrkprop_org.txt"); - - output_tables ("lbrkprop.h", argv[5]); - - return 0; -} diff -Nru gettext-0.17/gnulib-local/lib/gettext.h gettext-0.18.1.1/gnulib-local/lib/gettext.h --- gettext-0.17/gnulib-local/lib/gettext.h 2006-11-27 13:53:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/gettext.h 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Convenience header for conditional use of GNU . - Copyright (C) 1995-1998, 2000-2002, 2004-2006 Free Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -64,21 +64,30 @@ for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ +# undef gettext # define gettext(Msgid) ((const char *) (Msgid)) +# undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) +# undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) +# undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) +# undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) +# undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext(Domainname, Msgid1, Msgid2, N)) +# undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) +# undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) +# undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) @@ -132,8 +141,8 @@ #endif static const char * pgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - int category) + const char *msg_ctxt_id, const char *msgid, + int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) @@ -151,9 +160,9 @@ #endif static const char * npgettext_aux (const char *domain, - const char *msg_ctxt_id, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msg_ctxt_id, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); @@ -191,8 +200,8 @@ #endif static const char * dcpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - int category) + const char *msgctxt, const char *msgid, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -214,10 +223,10 @@ translation = dcgettext (domain, msg_ctxt_id, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (translation != msg_ctxt_id) - return translation; + return translation; } return msgid; } @@ -236,9 +245,9 @@ #endif static const char * dcnpgettext_expr (const char *domain, - const char *msgctxt, const char *msgid, - const char *msgid_plural, unsigned long int n, - int category) + const char *msgctxt, const char *msgid, + const char *msgid_plural, unsigned long int n, + int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; @@ -260,10 +269,10 @@ translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) - free (msg_ctxt_id); + free (msg_ctxt_id); #endif if (!(translation == msg_ctxt_id || translation == msgid_plural)) - return translation; + return translation; } return (n == 1 ? msgid : msgid_plural); } diff -Nru gettext-0.17/gnulib-local/lib/glibconfig.in.h gettext-0.18.1.1/gnulib-local/lib/glibconfig.in.h --- gettext-0.17/gnulib-local/lib/glibconfig.in.h 2007-10-04 22:31:02.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/glibconfig.in.h 2010-06-06 12:49:58.000000000 +0000 @@ -40,11 +40,11 @@ typedef size_t gsize; typedef ssize_t gssize; -#define GPOINTER_TO_INT(p) ((gint) (p)) -#define GPOINTER_TO_UINT(p) ((guint) (p)) +#define GPOINTER_TO_INT(p) ((gint) (intptr_t) (p)) +#define GPOINTER_TO_UINT(p) ((guint) (uintptr_t) (p)) -#define GINT_TO_POINTER(i) ((gpointer) (i)) -#define GUINT_TO_POINTER(u) ((gpointer) (u)) +#define GINT_TO_POINTER(i) ((gpointer) (intptr_t) (i)) +#define GUINT_TO_POINTER(u) ((gpointer) (uintptr_t) (u)) #define g_memmove memmove diff -Nru gettext-0.17/gnulib-local/lib/hash.c gettext-0.18.1.1/gnulib-local/lib/hash.c --- gettext-0.17/gnulib-local/lib/hash.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/hash.c 2010-06-06 12:49:58.000000000 +0000 @@ -138,15 +138,15 @@ /* References: [Aho,Sethi,Ullman] Compilers: Principles, Techniques and Tools, 1986 - [Knuth] The Art of Computer Programming, part3 (6.4) */ + [Knuth] The Art of Computer Programming, part3 (6.4) */ /* Look up a given key in the hash table. Return the index of the entry, if present, or otherwise the index a free entry where it could be inserted. */ static size_t lookup (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval) + const void *key, size_t keylen, + unsigned long int hval) { unsigned long int hash; size_t idx; @@ -160,24 +160,24 @@ if (table[idx].used) { if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; + && memcmp (table[idx].key, key, keylen) == 0) + return idx; /* Second hash function as suggested in [Knuth]. */ hash = 1 + hval % (htab->size - 2); do - { - if (idx <= hash) - idx = htab->size + idx - hash; - else - idx -= hash; - - /* If entry is found use it. */ - if (table[idx].used == hval && table[idx].keylen == keylen - && memcmp (table[idx].key, key, keylen) == 0) - return idx; - } + { + if (idx <= hash) + idx = htab->size + idx - hash; + else + idx -= hash; + + /* If entry is found use it. */ + if (table[idx].used == hval && table[idx].keylen == keylen + && memcmp (table[idx].key, key, keylen) == 0) + return idx; + } while (table[idx].used); } return idx; @@ -188,7 +188,7 @@ If found, return 0 and set *RESULT to it. Otherwise return -1. */ int hash_find_entry (hash_table *htab, const void *key, size_t keylen, - void **result) + void **result) { hash_entry *table = htab->table; size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen)); @@ -206,8 +206,8 @@ IDX is known to be unused. */ static void insert_entry_2 (hash_table *htab, - const void *key, size_t keylen, - unsigned long int hval, size_t idx, void *data) + const void *key, size_t keylen, + unsigned long int hval, size_t idx, void *data) { hash_entry *table = htab->table; @@ -249,10 +249,10 @@ for (idx = 1; idx <= old_size; ++idx) if (table[idx].used) insert_entry_2 (htab, table[idx].key, table[idx].keylen, - table[idx].used, - lookup (htab, table[idx].key, table[idx].keylen, - table[idx].used), - table[idx].data); + table[idx].used, + lookup (htab, table[idx].key, table[idx].keylen, + table[idx].used), + table[idx].data); free (table); } @@ -264,8 +264,8 @@ given key. */ const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -280,8 +280,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return keycopy; } } @@ -291,8 +291,8 @@ Return 0. */ int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data) + const void *key, size_t keylen, + void *data) { unsigned long int hval = compute_hashval (key, keylen); hash_entry *table = htab->table; @@ -310,8 +310,8 @@ void *keycopy = obstack_copy (&htab->mem_pool, key, keylen); insert_entry_2 (htab, keycopy, keylen, hval, idx, data); if (100 * htab->filled > 75 * htab->size) - /* Table is filled more than 75%. Resize the table. */ - resize (htab); + /* Table is filled more than 75%. Resize the table. */ + resize (htab); return 0; } } @@ -323,20 +323,20 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate (hash_table *htab, void **ptr, const void **key, size_t *keylen, - void **data) + void **data) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; @@ -356,21 +356,21 @@ Return 0 normally, -1 when the whole hash table has been traversed. */ int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap) + const void **key, size_t *keylen, + void ***datap) { hash_entry *curr; if (*ptr == NULL) { if (htab->first == NULL) - return -1; + return -1; curr = htab->first; } else { if (*ptr == htab->first) - return -1; + return -1; curr = (hash_entry *) *ptr; } curr = curr->next; diff -Nru gettext-0.17/gnulib-local/lib/hash.h gettext-0.18.1.1/gnulib-local/lib/hash.h --- gettext-0.17/gnulib-local/lib/hash.h 2006-08-02 13:49:53.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/hash.h 2010-06-06 12:49:58.000000000 +0000 @@ -48,30 +48,30 @@ /* Look up the value of a key in the given table. If found, return 0 and set *RESULT to it. Otherwise return -1. */ extern int hash_find_entry (hash_table *htab, - const void *key, size_t keylen, - void **result); + const void *key, size_t keylen, + void **result); /* Try to insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return non-NULL (more precisely, the address of the KEY inside the table's memory pool) if successful, or NULL if there is already an entry with the given key. */ extern const void * hash_insert_entry (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Insert the pair (KEY[0..KEYLEN-1], DATA) in the hash table. Return 0. */ extern int hash_set_value (hash_table *htab, - const void *key, size_t keylen, - void *data); + const void *key, size_t keylen, + void *data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry in *KEY, *KEYLEN, *DATA. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void **data); + const void **key, size_t *keylen, + void **data); /* Steps *PTR forward to the next used entry in the given hash table. *PTR should be initially set to NULL. Store information about the next entry @@ -79,8 +79,8 @@ value; modifying **DATAP will modify the value of the entry. Return 0 normally, -1 when the whole hash table has been traversed. */ extern int hash_iterate_modify (hash_table *htab, void **ptr, - const void **key, size_t *keylen, - void ***datap); + const void **key, size_t *keylen, + void ***datap); /* Given SEED > 1, return the smallest odd prime number >= SEED. */ extern unsigned long int next_prime (unsigned long int seed); diff -Nru gettext-0.17/gnulib-local/lib/html-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/html-ostream.oo.c --- gettext-0.17/gnulib-local/lib/html-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/html-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Output stream that produces HTML output. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -24,7 +24,7 @@ #include #include -#include "gl_list.h" +#include "gl_xlist.h" #include "gl_array_list.h" #include "unistr.h" #include "xalloc.h" @@ -56,13 +56,13 @@ size_t i; for (i = stream->last_class_stack_size; i < stream->curr_class_stack_size; i++) - { - char *classname = (char *) gl_list_get_at (stream->class_stack, i); + { + char *classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, "destination, classname); - ostream_write_str (stream->destination, "\">"); - } + ostream_write_str (stream->destination, "destination, classname); + ostream_write_str (stream->destination, "\">"); + } stream->last_class_stack_size = stream->curr_class_stack_size; } else if (stream->curr_class_stack_size < stream->last_class_stack_size) @@ -70,18 +70,18 @@ size_t i = stream->last_class_stack_size; while (i > stream->curr_class_stack_size) - { - char *classname; + { + char *classname; - --i; - classname = (char *) gl_list_get_at (stream->class_stack, i); - ostream_write_str (stream->destination, ""); - if (shrink_stack) - { - gl_list_remove_at (stream->class_stack, i); - free (classname); - } - } + --i; + classname = (char *) gl_list_get_at (stream->class_stack, i); + ostream_write_str (stream->destination, ""); + if (shrink_stack) + { + gl_list_remove_at (stream->class_stack, i); + free (classname); + } + } stream->last_class_stack_size = stream->curr_class_stack_size; } } @@ -97,111 +97,111 @@ inbufcount = stream->buflen; if (inbufcount > 0) - memcpy (inbuffer, stream->buf, inbufcount); + memcpy (inbuffer, stream->buf, inbufcount); for (;;) - { - /* At this point, inbuffer[0..inbufcount-1] is filled. */ - { - /* Combine the previous rest with a chunk of new input. */ - size_t n = - (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); - - if (n > 0) - { - memcpy (inbuffer + inbufcount, data, n); - data = (char *) data + n; - inbufcount += n; - len -= n; - } - } - { - /* Handle complete UTF-8 characters. */ - const char *inptr = inbuffer; - size_t insize = inbufcount; - - while (insize > 0) - { - unsigned char c0; - unsigned int uc; - int nbytes; - - c0 = ((const unsigned char *) inptr)[0]; - if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : - c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) - break; - - nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); - - if (uc == '\n') - { - size_t prev_class_stack_size = stream->curr_class_stack_size; - stream->curr_class_stack_size = 0; - emit_pending_spans (stream, false); - ostream_write_str (stream->destination, "
    "); - stream->curr_class_stack_size = prev_class_stack_size; - } - else - { - emit_pending_spans (stream, true); - - switch (uc) - { - case '"': - ostream_write_str (stream->destination, """); - break; - case '&': - ostream_write_str (stream->destination, "&"); - break; - case '<': - ostream_write_str (stream->destination, "<"); - break; - case '>': - /* Needed to avoid "]]>" in the output. */ - ostream_write_str (stream->destination, ">"); - break; - case ' ': - /* Needed because HTML viewers merge adjacent spaces - and drop spaces adjacent to
    and similar. */ - ostream_write_str (stream->destination, " "); - break; - default: - if (uc >= 0x20 && uc < 0x7F) - { - /* Output ASCII characters as such. */ - char bytes[1]; - bytes[0] = uc; - ostream_write_mem (stream->destination, bytes, 1); - } - else - { - /* Output non-ASCII characters in #&nnn; - notation. */ - char bytes[32]; - sprintf (bytes, "&#%d;", uc); - ostream_write_str (stream->destination, bytes); - } - break; - } - } - - inptr += nbytes; - insize -= nbytes; - } - /* Put back the unconverted part. */ - if (insize > BUFSIZE) - abort (); - if (len == 0) - { - if (insize > 0) - memcpy (stream->buf, inptr, insize); - stream->buflen = insize; - break; - } - if (insize > 0) - memmove (inbuffer, inptr, insize); - inbufcount = insize; - } - } + { + /* At this point, inbuffer[0..inbufcount-1] is filled. */ + { + /* Combine the previous rest with a chunk of new input. */ + size_t n = + (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); + + if (n > 0) + { + memcpy (inbuffer + inbufcount, data, n); + data = (char *) data + n; + inbufcount += n; + len -= n; + } + } + { + /* Handle complete UTF-8 characters. */ + const char *inptr = inbuffer; + size_t insize = inbufcount; + + while (insize > 0) + { + unsigned char c0; + ucs4_t uc; + int nbytes; + + c0 = ((const unsigned char *) inptr)[0]; + if (insize < (c0 < 0xc0 ? 1 : c0 < 0xe0 ? 2 : c0 < 0xf0 ? 3 : + c0 < 0xf8 ? 4 : c0 < 0xfc ? 5 : 6)) + break; + + nbytes = u8_mbtouc (&uc, (const unsigned char *) inptr, insize); + + if (uc == '\n') + { + size_t prev_class_stack_size = stream->curr_class_stack_size; + stream->curr_class_stack_size = 0; + emit_pending_spans (stream, false); + ostream_write_str (stream->destination, "
    "); + stream->curr_class_stack_size = prev_class_stack_size; + } + else + { + emit_pending_spans (stream, true); + + switch (uc) + { + case '"': + ostream_write_str (stream->destination, """); + break; + case '&': + ostream_write_str (stream->destination, "&"); + break; + case '<': + ostream_write_str (stream->destination, "<"); + break; + case '>': + /* Needed to avoid "]]>" in the output. */ + ostream_write_str (stream->destination, ">"); + break; + case ' ': + /* Needed because HTML viewers merge adjacent spaces + and drop spaces adjacent to
    and similar. */ + ostream_write_str (stream->destination, " "); + break; + default: + if (uc >= 0x20 && uc < 0x7F) + { + /* Output ASCII characters as such. */ + char bytes[1]; + bytes[0] = uc; + ostream_write_mem (stream->destination, bytes, 1); + } + else + { + /* Output non-ASCII characters in #&nnn; + notation. */ + char bytes[32]; + sprintf (bytes, "&#%d;", (int) uc); + ostream_write_str (stream->destination, bytes); + } + break; + } + } + + inptr += nbytes; + insize -= nbytes; + } + /* Put back the unconverted part. */ + if (insize > BUFSIZE) + abort (); + if (len == 0) + { + if (insize > 0) + memcpy (stream->buf, inptr, insize); + stream->buflen = insize; + break; + } + if (insize > 0) + memmove (inbuffer, inptr, insize); + inbufcount = insize; + } + } #undef BUFFERSIZE } } @@ -225,13 +225,13 @@ /* Implementation of html_ostream_t methods. */ -void +static void html_ostream::begin_span (html_ostream_t stream, const char *classname) { if (stream->last_class_stack_size > stream->curr_class_stack_size && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size), - classname) != 0) + stream->curr_class_stack_size), + classname) != 0) emit_pending_spans (stream, true); /* Now either last_class_stack_size <= curr_class_stack_size @@ -242,17 +242,17 @@ - in this case we only need to increment curr_class_stack_size. */ if (stream->last_class_stack_size <= stream->curr_class_stack_size) gl_list_add_at (stream->class_stack, stream->curr_class_stack_size, - xstrdup (classname)); + xstrdup (classname)); stream->curr_class_stack_size++; } -void +static void html_ostream::end_span (html_ostream_t stream, const char *classname) { if (!(stream->curr_class_stack_size > 0 - && strcmp ((char *) gl_list_get_at (stream->class_stack, - stream->curr_class_stack_size - 1), - classname) == 0)) + && strcmp ((char *) gl_list_get_at (stream->class_stack, + stream->curr_class_stack_size - 1), + classname) == 0)) /* Improperly nested begin_span/end_span calls. */ abort (); stream->curr_class_stack_size--; diff -Nru gettext-0.17/gnulib-local/lib/html-styled-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/html-styled-ostream.oo.c --- gettext-0.17/gnulib-local/lib/html-styled-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/html-styled-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -53,7 +53,7 @@ static void html_styled_ostream::write_mem (html_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { html_ostream_write_mem (stream->html_destination, data, len); } @@ -76,14 +76,14 @@ static void html_styled_ostream::begin_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_begin_span (stream->html_destination, classname); } static void html_styled_ostream::end_use_class (html_styled_ostream_t stream, - const char *classname) + const char *classname) { html_ostream_end_span (stream->html_destination, classname); } @@ -112,44 +112,44 @@ - special characters like < > & " are escaped in the \n"); + "\n"); } ostream_write_str (stream->destination, "\n"); ostream_write_str (stream->destination, "\n"); diff -Nru gettext-0.17/gnulib-local/lib/html-styled-ostream.oo.h gettext-0.18.1.1/gnulib-local/lib/html-styled-ostream.oo.h --- gettext-0.17/gnulib-local/lib/html-styled-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/html-styled-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -38,7 +38,7 @@ closed. */ extern html_styled_ostream_t html_styled_ostream_create (ostream_t destination, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gnulib-local/lib/iconv-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/iconv-ostream.oo.c --- gettext-0.17/gnulib-local/lib/iconv-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/iconv-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -69,70 +69,70 @@ inbufcount = stream->buflen; if (inbufcount > 0) - memcpy (inbuffer, stream->buf, inbufcount); + memcpy (inbuffer, stream->buf, inbufcount); for (;;) - { - /* At this point, inbuffer[0..inbufcount-1] is filled. */ - { - /* Combine the previous rest with a chunk of new input. */ - size_t n = - (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); - - if (n > 0) - { - memcpy (inbuffer + inbufcount, data, n); - data = (char *) data + n; - inbufcount += n; - len -= n; - } - } - { - /* Attempt to convert the combined input. */ - char outbuffer[8*BUFFERSIZE]; - - const char *inptr = inbuffer; - size_t insize = inbufcount; - char *outptr = outbuffer; - size_t outsize = sizeof (outbuffer); - - size_t res = iconv (stream->cd, - (ICONV_CONST char **) &inptr, &insize, - &outptr, &outsize); - #if !defined _LIBICONV_VERSION && !defined __GLIBC__ - /* Irix iconv() inserts a NUL byte if it cannot convert. - NetBSD iconv() inserts a question mark if it cannot convert. - Only GNU libiconv and GNU libc are known to prefer to fail rather - than doing a lossy conversion. */ - if (res > 0) - { - errno = EILSEQ; - res = -1; - } - #endif - if (res == (size_t)(-1) && errno != EINVAL) - error (EXIT_FAILURE, 0, _("%s: cannot convert from %s to %s"), - "iconv_ostream", - stream->from_encoding, stream->to_encoding); - /* Output the converted part. */ - if (sizeof (outbuffer) - outsize > 0) - ostream_write_mem (stream->destination, - outbuffer, sizeof (outbuffer) - outsize); - /* Put back the unconverted part. */ - if (insize > BUFSIZE) - error (EXIT_FAILURE, 0, _("%s: shift sequence too long"), - "iconv_ostream"); - if (len == 0) - { - if (insize > 0) - memcpy (stream->buf, inptr, insize); - stream->buflen = insize; - break; - } - if (insize > 0) - memmove (inbuffer, inptr, insize); - inbufcount = insize; - } - } + { + /* At this point, inbuffer[0..inbufcount-1] is filled. */ + { + /* Combine the previous rest with a chunk of new input. */ + size_t n = + (len <= BUFFERSIZE - inbufcount ? len : BUFFERSIZE - inbufcount); + + if (n > 0) + { + memcpy (inbuffer + inbufcount, data, n); + data = (char *) data + n; + inbufcount += n; + len -= n; + } + } + { + /* Attempt to convert the combined input. */ + char outbuffer[8*BUFFERSIZE]; + + const char *inptr = inbuffer; + size_t insize = inbufcount; + char *outptr = outbuffer; + size_t outsize = sizeof (outbuffer); + + size_t res = iconv (stream->cd, + (ICONV_CONST char **) &inptr, &insize, + &outptr, &outsize); + #if !defined _LIBICONV_VERSION && !defined __GLIBC__ + /* Irix iconv() inserts a NUL byte if it cannot convert. + NetBSD iconv() inserts a question mark if it cannot convert. + Only GNU libiconv and GNU libc are known to prefer to fail rather + than doing a lossy conversion. */ + if (res > 0) + { + errno = EILSEQ; + res = -1; + } + #endif + if (res == (size_t)(-1) && errno != EINVAL) + error (EXIT_FAILURE, 0, _("%s: cannot convert from %s to %s"), + "iconv_ostream", + stream->from_encoding, stream->to_encoding); + /* Output the converted part. */ + if (sizeof (outbuffer) - outsize > 0) + ostream_write_mem (stream->destination, + outbuffer, sizeof (outbuffer) - outsize); + /* Put back the unconverted part. */ + if (insize > BUFSIZE) + error (EXIT_FAILURE, 0, _("%s: shift sequence too long"), + "iconv_ostream"); + if (len == 0) + { + if (insize > 0) + memcpy (stream->buf, inptr, insize); + stream->buflen = insize; + break; + } + if (insize > 0) + memmove (inbuffer, inptr, insize); + inbufcount = insize; + } + } #undef BUFFERSIZE } } @@ -160,11 +160,11 @@ size_t res = iconv (stream->cd, NULL, NULL, &outptr, &outsize); if (res == (size_t)(-1)) error (EXIT_FAILURE, 0, _("%s: cannot convert from %s to %s"), - "iconv_ostream", stream->from_encoding, stream->to_encoding); + "iconv_ostream", stream->from_encoding, stream->to_encoding); /* Output the converted part. */ if (sizeof (outbuffer) - outsize > 0) ostream_write_mem (stream->destination, - outbuffer, sizeof (outbuffer) - outsize); + outbuffer, sizeof (outbuffer) - outsize); } #endif @@ -178,7 +178,7 @@ iconv_ostream_t iconv_ostream_create (const char *from_encoding, const char *to_encoding, - ostream_t destination) + ostream_t destination) { iconv_ostream_t stream = XMALLOC (struct iconv_ostream_representation); @@ -198,15 +198,15 @@ if (stream->cd == (iconv_t)(-1)) { if (iconv_open ("UTF-8", from_encoding) == (iconv_t)(-1)) - error (EXIT_FAILURE, 0, _("%s does not support conversion from %s"), - "iconv", from_encoding); + error (EXIT_FAILURE, 0, _("%s does not support conversion from %s"), + "iconv", from_encoding); else if (iconv_open (to_encoding, "UTF-8") == (iconv_t)(-1)) - error (EXIT_FAILURE, 0, _("%s does not support conversion to %s"), - "iconv", to_encoding); + error (EXIT_FAILURE, 0, _("%s does not support conversion to %s"), + "iconv", to_encoding); else - error (EXIT_FAILURE, 0, - _("%s does not support conversion from %s to %s"), - "iconv", from_encoding, to_encoding); + error (EXIT_FAILURE, 0, + _("%s does not support conversion from %s to %s"), + "iconv", from_encoding, to_encoding); } stream->buflen = 0; diff -Nru gettext-0.17/gnulib-local/lib/iconv-ostream.oo.h gettext-0.18.1.1/gnulib-local/lib/iconv-ostream.oo.h --- gettext-0.17/gnulib-local/lib/iconv-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/iconv-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -40,8 +40,8 @@ /* Create an output stream that converts from FROM_ENCODING to TO_ENCODING, writing the result to DESTINATION. */ extern iconv_ostream_t iconv_ostream_create (const char *from_encoding, - const char *to_encoding, - ostream_t destination); + const char *to_encoding, + ostream_t destination); #endif /* HAVE_ICONV */ diff -Nru gettext-0.17/gnulib-local/lib/linebreak.c.diff gettext-0.18.1.1/gnulib-local/lib/linebreak.c.diff --- gettext-0.17/gnulib-local/lib/linebreak.c.diff 2007-09-01 15:41:51.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/linebreak.c.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,68 +0,0 @@ -*** linebreak.c.orig 2007-09-01 17:41:07.000000000 +0200 ---- linebreak.c 2007-09-01 17:41:26.000000000 +0200 -*************** -*** 247,252 **** ---- 247,254 ---- - } - } - -+ #ifdef unused -+ - void - u16_possible_linebreaks (const unsigned short *s, size_t n, const char *encoding, char *p) - { -*************** -*** 467,472 **** ---- 469,476 ---- - } - } - -+ #endif -+ - - /* Choose the best line breaks, assuming the uc_width function. - Return the column after the end of the string. */ -*************** -*** 555,560 **** ---- 559,566 ---- - return last_column + piece_width; - } - -+ #ifdef unused -+ - int - u16_width_linebreaks (const unsigned short *s, size_t n, - int width, int start_column, int at_end_columns, -*************** -*** 722,727 **** ---- 728,735 ---- - return last_column + piece_width; - } - -+ #endif -+ - - #ifdef TEST1 - -*************** -*** 987,992 **** ---- 995,1002 ---- - - #endif /* C_CTYPE_ASCII */ - -+ #if defined unused || defined TEST2 -+ - void - mbs_possible_linebreaks (const char *s, size_t n, const char *encoding, - char *p) -*************** -*** 1080,1085 **** ---- 1090,1097 ---- - } - } - -+ #endif -+ - int - mbs_width_linebreaks (const char *s, size_t n, - int width, int start_column, int at_end_columns, diff -Nru gettext-0.17/gnulib-local/lib/memory-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/memory-ostream.oo.c --- gettext-0.17/gnulib-local/lib/memory-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/memory-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -33,31 +33,31 @@ struct memory_ostream : struct ostream { fields: - char *buffer; /* Buffer containing the accumulated output. */ - size_t buflen; /* Number of bytes stored so far. */ - size_t allocated; /* Allocated size of the buffer. */ + char *buffer; /* Buffer containing the accumulated output. */ + size_t buflen; /* Number of bytes stored so far. */ + size_t allocated; /* Allocated size of the buffer. */ }; /* Implementation of ostream_t methods. */ static void memory_ostream::write_mem (memory_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { if (len > 0) { if (len > stream->allocated - stream->buflen) - { - size_t new_allocated = - xmax (xsum (stream->buflen, len), - xsum (stream->allocated, stream->allocated)); - if (size_overflow_p (new_allocated)) - error (EXIT_FAILURE, 0, - _("%s: too much output, buffer size overflow"), - "memory_ostream"); - stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); - stream->allocated = new_allocated; - } + { + size_t new_allocated = + xmax (xsum (stream->buflen, len), + xsum (stream->allocated, stream->allocated)); + if (size_overflow_p (new_allocated)) + error (EXIT_FAILURE, 0, + _("%s: too much output, buffer size overflow"), + "memory_ostream"); + stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); + stream->allocated = new_allocated; + } memcpy (stream->buffer + stream->buflen, data, len); stream->buflen += len; } @@ -79,7 +79,7 @@ void memory_ostream::contents (memory_ostream_t stream, - const void **bufp, size_t *buflenp) + const void **bufp, size_t *buflenp) { *bufp = stream->buffer; *buflenp = stream->buflen; diff -Nru gettext-0.17/gnulib-local/lib/propername.c gettext-0.18.1.1/gnulib-local/lib/propername.c --- gettext-0.17/gnulib-local/lib/propername.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/propername.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,157 +0,0 @@ -/* Localization of proper names. - Copyright (C) 2006-2007 Free Software Foundation, Inc. - Written by Bruno Haible , 2006. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -/* Specification. */ -#include "propername.h" - -#include -#include -#include -#if HAVE_ICONV -# include -#endif - -#include "localcharset.h" -#include "c-strcase.h" -#include "xstriconv.h" -#include "c-strstr.h" -#include "xalloc.h" -#include "gettext.h" - - -/* Return the localization of NAME. NAME is written in ASCII. */ - -const char * -proper_name (const char *name) -{ - /* See whether there is a translation. */ - const char *translation = gettext (name); - - if (translation != name) - { - /* See whether the translation contains the original name. */ - if (mbsstr (translation, name) != NULL) - return translation; - else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - return result; - } - } - else - return name; -} - -/* Return the localization of a name whose original writing is not ASCII. - NAME_UTF8 is the real name, written in UTF-8 with octal or hexadecimal - escape sequences. NAME_ASCII is a fallback written only with ASCII - characters. */ - -const char * -proper_name_utf8 (const char *name_ascii, const char *name_utf8) -{ - /* See whether there is a translation. */ - const char *translation = gettext (name_ascii); - - /* Try to convert NAME_UTF8 to the locale encoding. */ - const char *locale_code = locale_charset (); - char *alloc_name_converted = NULL; - char *alloc_name_converted_translit = NULL; - const char *name_converted = NULL; - const char *name_converted_translit = NULL; - const char *name; - - if (c_strcasecmp (locale_code, "UTF-8") != 0) - { -#if HAVE_ICONV - name_converted = alloc_name_converted = - xstr_iconv (name_utf8, "UTF-8", locale_code); - -# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ - || _LIBICONV_VERSION >= 0x0105 - { - size_t len = strlen (locale_code); - char *locale_code_translit = XNMALLOC (len + 10 + 1, char); - memcpy (locale_code_translit, locale_code, len); - memcpy (locale_code_translit + len, "//TRANSLIT", 10 + 1); - - name_converted_translit = alloc_name_converted_translit = - xstr_iconv (name_utf8, "UTF-8", locale_code_translit); - - free (locale_code_translit); - } -# endif -#endif - } - else - { - name_converted = name_utf8; - name_converted_translit = name_utf8; - } - - /* The name in locale encoding. */ - name = (name_converted != NULL ? name_converted : - name_converted_translit != NULL ? name_converted_translit : - name_ascii); - - if (translation != name_ascii) - { - /* See whether the translation contains the original name. - The multibyte-aware mbsstr() is not absolutely necessary here. */ - if (c_strstr (translation, name_ascii) != NULL - || (name_converted != NULL - && mbsstr (translation, name_converted) != NULL) - || (name_converted_translit != NULL - && mbsstr (translation, name_converted_translit) != NULL)) - { - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return translation; - } - else - { - /* Return "TRANSLATION (NAME)". */ - char *result = - XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char); - - sprintf (result, "%s (%s)", translation, name); - - if (alloc_name_converted != NULL) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL) - free (alloc_name_converted_translit); - return result; - } - } - else - { - if (alloc_name_converted != NULL && alloc_name_converted != name) - free (alloc_name_converted); - if (alloc_name_converted_translit != NULL - && alloc_name_converted_translit != name) - free (alloc_name_converted_translit); - return name; - } -} diff -Nru gettext-0.17/gnulib-local/lib/propername.h gettext-0.18.1.1/gnulib-local/lib/propername.h --- gettext-0.17/gnulib-local/lib/propername.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/propername.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,41 +0,0 @@ -/* Localization of proper names. - Copyright (C) 2006 Free Software Foundation, Inc. - Written by Bruno Haible , 2006. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#ifndef _PROPERNAME_H -#define _PROPERNAME_H - - -#ifdef __cplusplus -extern "C" { -#endif - -/* Return the localization of NAME. NAME is written in ASCII. */ -extern const char * proper_name (const char *name); - -/* Return the localization of a name whose original writing is not ASCII. - NAME_UTF8 is the real name, written in UTF-8 with octal or hexadecimal - escape sequences. NAME_ASCII is a fallback written only with ASCII - characters. */ -extern const char * proper_name_utf8 (const char *name_ascii, - const char *name_utf8); - -#ifdef __cplusplus -} -#endif - - -#endif /* _PROPERNAME_H */ diff -Nru gettext-0.17/gnulib-local/lib/regexec.c.diff gettext-0.18.1.1/gnulib-local/lib/regexec.c.diff --- gettext-0.17/gnulib-local/lib/regexec.c.diff 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/regexec.c.diff 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,19 @@ +*** lib/regexec.c.orig Mon May 24 12:36:55 2010 +--- lib/regexec.c Mon May 24 12:34:41 2010 +*************** +*** 3425,3431 **** + else + { + dest_states = (re_dfastate_t **) +! malloc (ndests * 3 * sizeof (re_dfastate_t *)); + if (BE (dest_states == NULL, 0)) + { + out_free: +--- 3425,3431 ---- + else + { + dest_states = (re_dfastate_t **) +! re_malloc (re_dfastate_t *, ndests * 3); + if (BE (dest_states == NULL, 0)) + { + out_free: diff -Nru gettext-0.17/gnulib-local/lib/regex_internal.h.diff gettext-0.18.1.1/gnulib-local/lib/regex_internal.h.diff --- gettext-0.17/gnulib-local/lib/regex_internal.h.diff 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/regex_internal.h.diff 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,19 @@ +*** lib/regex_internal.h.orig Mon May 24 12:36:55 2010 +--- lib/regex_internal.h Mon May 24 12:35:46 2010 +*************** +*** 476,482 **** + # define MAX(a,b) ((a) < (b) ? (b) : (a)) + #endif + +! #define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t))) + #define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t))) + #define re_free(p) free (p) + +--- 476,482 ---- + # define MAX(a,b) ((a) < (b) ? (b) : (a)) + #endif + +! #define re_malloc(t,n) ((t *) malloc ((n) > 0 ? (n) * sizeof (t) : 1)) + #define re_realloc(p,t,n) ((t *) realloc (p, (n) * sizeof (t))) + #define re_free(p) free (p) + diff -Nru gettext-0.17/gnulib-local/lib/term-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/term-ostream.oo.c --- gettext-0.17/gnulib-local/lib/term-ostream.oo.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/term-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ /* Output stream for attributed text, producing ANSI escape sequences. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -79,57 +79,57 @@ if (r > g) { if (b > r) - { - /* b > r > g, so max = b, min = g */ - result->hue = 4.0f + (float) (r - g) / (float) (b - g); - result->saturation = 1.0f - (float) g / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > r > g, so max = b, min = g */ + result->hue = 4.0f + (float) (r - g) / (float) (b - g); + result->saturation = 1.0f - (float) g / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b <= g) - { - /* r > g >= b, so max = r, min = b */ - result->hue = 0.0f + (float) (g - b) / (float) (r - b); - result->saturation = 1.0f - (float) b / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r > g >= b, so max = r, min = b */ + result->hue = 0.0f + (float) (g - b) / (float) (r - b); + result->saturation = 1.0f - (float) b / (float) r; + result->brightness = (float) r / 255.0f; + } else - { - /* r >= b > g, so max = r, min = g */ - result->hue = 6.0f - (float) (b - g) / (float) (r - g); - result->saturation = 1.0f - (float) g / (float) r; - result->brightness = (float) r / 255.0f; - } + { + /* r >= b > g, so max = r, min = g */ + result->hue = 6.0f - (float) (b - g) / (float) (r - g); + result->saturation = 1.0f - (float) g / (float) r; + result->brightness = (float) r / 255.0f; + } } else { if (b > g) - { - /* b > g >= r, so max = b, min = r */ - result->hue = 4.0f - (float) (g - r) / (float) (b - r); - result->saturation = 1.0f - (float) r / (float) b; - result->brightness = (float) b / 255.0f; - } + { + /* b > g >= r, so max = b, min = r */ + result->hue = 4.0f - (float) (g - r) / (float) (b - r); + result->saturation = 1.0f - (float) r / (float) b; + result->brightness = (float) b / 255.0f; + } else if (b < r) - { - /* g >= r > b, so max = g, min = b */ - result->hue = 2.0f - (float) (r - b) / (float) (g - b); - result->saturation = 1.0f - (float) b / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= r > b, so max = g, min = b */ + result->hue = 2.0f - (float) (r - b) / (float) (g - b); + result->saturation = 1.0f - (float) b / (float) g; + result->brightness = (float) g / 255.0f; + } else if (g > r) - { - /* g >= b >= r, g > r, so max = g, min = r */ - result->hue = 2.0f + (float) (b - r) / (float) (g - r); - result->saturation = 1.0f - (float) r / (float) g; - result->brightness = (float) g / 255.0f; - } + { + /* g >= b >= r, g > r, so max = g, min = r */ + result->hue = 2.0f + (float) (b - r) / (float) (g - r); + result->saturation = 1.0f - (float) r / (float) g; + result->brightness = (float) g / 255.0f; + } else - { - /* r = g = b. A grey color. */ - result->hue = 0; /* arbitrary */ - result->saturation = 0; - result->brightness = (float) r / 255.0f; - } + { + /* r = g = b. A grey color. */ + result->hue = 0; /* arbitrary */ + result->saturation = 0; + result->brightness = (float) r / 255.0f; + } } } @@ -143,11 +143,11 @@ float angle1 = color1->hue * 1.04719755f; /* normalize to [0,2π] */ float angle2 = color2->hue * 1.04719755f; /* normalize to [0,2π] */ float delta_x = color1->saturation * cosf (angle1) - - color2->saturation * cosf (angle2); + - color2->saturation * cosf (angle2); float delta_y = color1->saturation * sinf (angle1) - - color2->saturation * sinf (angle2); + - color2->saturation * sinf (angle2); float delta_v = color1->brightness - - color2->brightness; + - color2->brightness; return delta_x * delta_x + delta_y * delta_y + delta_v * delta_v; #else @@ -156,11 +156,11 @@ float delta_hue = (color1->hue >= color2->hue ? (color1->hue - color2->hue >= 3.0f - ? 6.0f + color2->hue - color1->hue - : color1->hue - color2->hue) + ? 6.0f + color2->hue - color1->hue + : color1->hue - color2->hue) : (color2->hue - color1->hue >= 3.0f - ? 6.0f + color1->hue - color2->hue - : color2->hue - color1->hue)); + ? 6.0f + color1->hue - color2->hue + : color2->hue - color1->hue)); float min_saturation = (color1->saturation < color2->saturation ? color1->saturation @@ -169,8 +169,8 @@ float delta_brightness = color1->brightness - color2->brightness; return delta_hue * delta_hue * min_saturation - + delta_saturation * delta_saturation * 0.2f - + delta_brightness * delta_brightness * 0.8f; + + delta_saturation * delta_saturation * 0.2f + + delta_brightness * delta_brightness * 0.8f; #endif } @@ -198,14 +198,14 @@ /* Avoid converting a color to grey, or fading out a color too much. */ if (i_hsv.saturation > given_hsv.saturation * 0.5f) - { - float distance = color_distance (&given_hsv, &i_hsv); - if (distance < best_distance) - { - best_index = i; - best_distance = distance; - } - } + { + float distance = color_distance (&given_hsv, &i_hsv); + if (distance < best_distance) + { + best_index = i; + best_distance = distance; + } + } } #if 0 /* Debugging code */ @@ -239,12 +239,12 @@ /* The color model used by the terminal. */ typedef enum { - cm_monochrome, /* No colors. */ - cm_common8, /* Usual terminal with at least 8 colors. */ - cm_xterm8, /* TERM=xterm, with 8 colors. */ - cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ - cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ - cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ + cm_monochrome, /* No colors. */ + cm_common8, /* Usual terminal with at least 8 colors. */ + cm_xterm8, /* TERM=xterm, with 8 colors. */ + cm_xterm16, /* TERM=xterm-16color, with 16 colors. */ + cm_xterm88, /* TERM=xterm-88color, with 88 colors. */ + cm_xterm256 /* TERM=xterm-256color, with 256 colors. */ } colormodel_t; /* ----------------------- cm_monochrome color model ----------------------- */ @@ -295,9 +295,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -353,9 +353,9 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.500f) - return 0; + return 0; else - return 7; + return 7; } else /* Color approximation. */ @@ -401,13 +401,13 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.151f) - return 0; + return 0; else if (luminance < 0.600f) - return 8; + return 8; else if (luminance < 0.949f) - return 7; + return 7; else - return 15; + return 15; } else /* Color approximation. */ @@ -527,31 +527,31 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.090f) - return 0; + return 0; else if (luminance < 0.241f) - return 80; + return 80; else if (luminance < 0.331f) - return 8; + return 8; else if (luminance < 0.406f) - return 81; + return 81; else if (luminance < 0.498f) - return 82; + return 82; else if (luminance < 0.585f) - return 37; + return 37; else if (luminance < 0.680f) - return 84; + return 84; else if (luminance < 0.764f) - return 85; + return 85; else if (luminance < 0.810f) - return 58; + return 58; else if (luminance < 0.857f) - return 86; + return 86; else if (luminance < 0.902f) - return 7; + return 7; else if (luminance < 0.953f) - return 87; + return 87; else - return 15; + return 15; } else /* Color approximation. */ @@ -839,71 +839,71 @@ /* Greyscale approximation. */ float luminance = color_luminance (r, g, b); if (luminance < 0.015f) - return 0; + return 0; else if (luminance < 0.051f) - return 232; + return 232; else if (luminance < 0.090f) - return 233; + return 233; else if (luminance < 0.129f) - return 234; + return 234; else if (luminance < 0.157f) - return 235; + return 235; else if (luminance < 0.177f) - return 59; + return 59; else if (luminance < 0.207f) - return 236; + return 236; else if (luminance < 0.247f) - return 237; + return 237; else if (luminance < 0.284f) - return 238; + return 238; else if (luminance < 0.304f) - return 8; + return 8; else if (luminance < 0.319f) - return 239; + return 239; else if (luminance < 0.339f) - return 102; + return 102; else if (luminance < 0.364f) - return 240; + return 240; else if (luminance < 0.404f) - return 241; + return 241; else if (luminance < 0.443f) - return 242; + return 242; else if (luminance < 0.480f) - return 243; + return 243; else if (luminance < 0.500f) - return 145; + return 145; else if (luminance < 0.521f) - return 244; + return 244; else if (luminance < 0.560f) - return 245; + return 245; else if (luminance < 0.600f) - return 246; + return 246; else if (luminance < 0.639f) - return 247; + return 247; else if (luminance < 0.663f) - return 248; + return 248; else if (luminance < 0.682f) - return 188; + return 188; else if (luminance < 0.717f) - return 249; + return 249; else if (luminance < 0.756f) - return 250; + return 250; else if (luminance < 0.796f) - return 251; + return 251; else if (luminance < 0.823f) - return 252; + return 252; else if (luminance < 0.843f) - return 231; + return 231; else if (luminance < 0.874f) - return 253; + return 253; else if (luminance < 0.896f) - return 254; + return 254; else if (luminance < 0.915f) - return 7; + return 7; else if (luminance < 0.966f) - return 255; + return 255; else - return 15; + return 15; } else /* Color approximation. */ @@ -946,20 +946,20 @@ char *filename; /* Values from the terminal type's terminfo/termcap description. See terminfo(5) for details. */ - /* terminfo termcap */ - int max_colors; /* colors Co */ - int no_color_video; /* ncv NC */ - char *set_a_foreground; /* setaf AF */ - char *set_foreground; /* setf Sf */ - char *set_a_background; /* setab AB */ - char *set_background; /* setb Sb */ - char *orig_pair; /* op op */ - char *enter_bold_mode; /* bold md */ - char *enter_italics_mode; /* sitm ZH */ - char *exit_italics_mode; /* ritm ZR */ - char *enter_underline_mode; /* smul us */ - char *exit_underline_mode; /* rmul ue */ - char *exit_attribute_mode; /* sgr0 me */ + /* terminfo termcap */ + int max_colors; /* colors Co */ + int no_color_video; /* ncv NC */ + char *set_a_foreground; /* setaf AF */ + char *set_foreground; /* setf Sf */ + char *set_a_background; /* setab AB */ + char *set_background; /* setb Sb */ + char *orig_pair; /* op op */ + char *enter_bold_mode; /* bold md */ + char *enter_italics_mode; /* sitm ZH */ + char *exit_italics_mode; /* ritm ZR */ + char *enter_underline_mode; /* smul us */ + char *exit_underline_mode; /* rmul ue */ + char *exit_attribute_mode; /* sgr0 me */ /* Inferred values. */ bool supports_foreground; bool supports_background; @@ -968,13 +968,13 @@ bool supports_posture; bool supports_underline; /* Variable state. */ - char *buffer; /* Buffer for the current line. */ - attributes_t *attrbuffer; /* Buffer for the simplified attributes; same - length as buffer. */ - size_t buflen; /* Number of bytes stored so far. */ - size_t allocated; /* Allocated size of the buffer. */ - attributes_t curr_attr; /* Current attributes. */ - attributes_t simp_attr; /* Simplified current attributes. */ + char *buffer; /* Buffer for the current line. */ + attributes_t *attrbuffer; /* Buffer for the simplified attributes; same + length as buffer. */ + size_t buflen; /* Number of bytes stored so far. */ + size_t allocated; /* Allocated size of the buffer. */ + attributes_t curr_attr; /* Current attributes. */ + attributes_t simp_attr; /* Simplified current attributes. */ }; /* Simplify attributes, according to the terminal's capabilities. */ @@ -985,13 +985,13 @@ && stream->no_color_video > 0) { /* When colors and attributes can not be represented simultaneously, - we give preference to the color. */ + we give preference to the color. */ if (stream->no_color_video & 2) - /* Colors conflict with underlining. */ - attr.underline = UNDERLINE_OFF; + /* Colors conflict with underlining. */ + attr.underline = UNDERLINE_OFF; if (stream->no_color_video & 32) - /* Colors conflict with bold weight. */ - attr.weight = WEIGHT_NORMAL; + /* Colors conflict with bold weight. */ + attr.weight = WEIGHT_NORMAL; } if (!stream->supports_foreground) attr.color = COLOR_DEFAULT; @@ -1040,13 +1040,13 @@ if (out_fd >= 0) { if (restore_colors != NULL) - tputs (restore_colors, 1, out_char_unchecked); + tputs (restore_colors, 1, out_char_unchecked); if (restore_weight != NULL) - tputs (restore_weight, 1, out_char_unchecked); + tputs (restore_weight, 1, out_char_unchecked); if (restore_posture != NULL) - tputs (restore_posture, 1, out_char_unchecked); + tputs (restore_posture, 1, out_char_unchecked); if (restore_underline != NULL) - tputs (restore_underline, 1, out_char_unchecked); + tputs (restore_underline, 1, out_char_unchecked); } } @@ -1079,7 +1079,7 @@ sigemptyset (&stopping_signal_set); for (i = 0; i < num_stopping_signals; i++) - sigaddset (&stopping_signal_set, stopping_signals[i]); + sigaddset (&stopping_signal_set, stopping_signals[i]); stopping_signal_set_initialized = true; } @@ -1106,10 +1106,10 @@ equal_attributes (attributes_t attr1, attributes_t attr2) { return (attr1.color == attr2.color - && attr1.bgcolor == attr2.bgcolor - && attr1.weight == attr2.weight - && attr1.posture == attr2.posture - && attr1.underline == attr2.underline); + && attr1.bgcolor == attr2.bgcolor + && attr1.weight == attr2.weight + && attr1.posture == attr2.posture + && attr1.underline == attr2.underline); } /* Signal error after full_write failed. */ @@ -1137,7 +1137,7 @@ /* Output escape sequences to switch from OLD_ATTR to NEW_ATTR. */ static void out_attr_change (term_ostream_t stream, - attributes_t old_attr, attributes_t new_attr) + attributes_t old_attr, attributes_t new_attr) { bool cleared_attributes; @@ -1193,20 +1193,20 @@ if ((old_attr.weight != WEIGHT_NORMAL && new_attr.weight == WEIGHT_NORMAL) || (old_attr.posture != POSTURE_NORMAL - && new_attr.posture == POSTURE_NORMAL - /* implies stream->exit_italics_mode == NULL */) + && new_attr.posture == POSTURE_NORMAL + /* implies stream->exit_italics_mode == NULL */) || (old_attr.underline != UNDERLINE_OFF - && new_attr.underline == UNDERLINE_OFF - /* implies stream->exit_underline_mode == NULL */)) + && new_attr.underline == UNDERLINE_OFF + /* implies stream->exit_underline_mode == NULL */)) { tputs (stream->exit_attribute_mode, 1, out_char); /* We don't know exactly what effects exit_attribute_mode has, but - this is the minimum effect: */ + this is the minimum effect: */ old_attr.weight = WEIGHT_NORMAL; if (stream->exit_italics_mode == NULL) - old_attr.posture = POSTURE_NORMAL; + old_attr.posture = POSTURE_NORMAL; if (stream->exit_underline_mode == NULL) - old_attr.underline = UNDERLINE_OFF; + old_attr.underline = UNDERLINE_OFF; cleared_attributes = true; } @@ -1217,87 +1217,87 @@ assert (stream->supports_foreground); assert (new_attr.color != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.color >= 0 && new_attr.color < 8); - if (stream->set_a_foreground != NULL) - tputs (tparm (stream->set_a_foreground, - color_bgr (new_attr.color)), - 1, out_char); - else - tputs (tparm (stream->set_foreground, new_attr.color), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.color >= 0 && new_attr.color < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.color >= 0 && new_attr.color < 16); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.color < 8) - { - bytes[2] = '3'; bytes[3] = '0' + new_attr.color; - } - else - { - bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); - } - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm88: - assert (new_attr.color >= 0 && new_attr.color < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 10) - *p++ = '0' + (new_attr.color / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.color >= 0 && new_attr.color < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.color >= 100) - *p++ = '0' + (new_attr.color / 100); - if (new_attr.color >= 10) - *p++ = '0' + ((new_attr.color % 100) / 10); - *p++ = '0' + (new_attr.color % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.color >= 0 && new_attr.color < 8); + if (stream->set_a_foreground != NULL) + tputs (tparm (stream->set_a_foreground, + color_bgr (new_attr.color)), + 1, out_char); + else + tputs (tparm (stream->set_foreground, new_attr.color), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.color >= 0 && new_attr.color < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.color >= 0 && new_attr.color < 16); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.color < 8) + { + bytes[2] = '3'; bytes[3] = '0' + new_attr.color; + } + else + { + bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8); + } + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm88: + assert (new_attr.color >= 0 && new_attr.color < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 10) + *p++ = '0' + (new_attr.color / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.color >= 0 && new_attr.color < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '3'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.color >= 100) + *p++ = '0' + (new_attr.color / 100); + if (new_attr.color >= 10) + *p++ = '0' + ((new_attr.color % 100) / 10); + *p++ = '0' + (new_attr.color % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.bgcolor != old_attr.bgcolor || (cleared_attributes && new_attr.bgcolor != COLOR_DEFAULT)) @@ -1305,90 +1305,90 @@ assert (stream->supports_background); assert (new_attr.bgcolor != COLOR_DEFAULT); switch (stream->colormodel) - { - case cm_common8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - if (stream->set_a_background != NULL) - tputs (tparm (stream->set_a_background, - color_bgr (new_attr.bgcolor)), - 1, out_char); - else - tputs (tparm (stream->set_background, new_attr.bgcolor), - 1, out_char); - break; - /* When we are dealing with an xterm, there is no need to go through - tputs() because we know there is no padding and sleeping. */ - case cm_xterm8: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); - { - char bytes[5]; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - break; - case cm_xterm16: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); - { - char bytes[6]; - bytes[0] = 0x1B; bytes[1] = '['; - if (new_attr.bgcolor < 8) - { - bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; - bytes[4] = 'm'; - if (full_write (out_fd, bytes, 5) < 5) - out_error (); - } - else - { - bytes[2] = '1'; bytes[3] = '0'; - bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; - if (full_write (out_fd, bytes, 6) < 6) - out_error (); - } - } - break; - case cm_xterm88: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); - { - char bytes[10]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 10) - *p++ = '0' + (new_attr.bgcolor / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - case cm_xterm256: - assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); - { - char bytes[11]; - char *p; - bytes[0] = 0x1B; bytes[1] = '['; - bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; - bytes[5] = '5'; bytes[6] = ';'; - p = bytes + 7; - if (new_attr.bgcolor >= 100) - *p++ = '0' + (new_attr.bgcolor / 100); - if (new_attr.bgcolor >= 10) - *p++ = '0' + ((new_attr.bgcolor % 100) / 10); - *p++ = '0' + (new_attr.bgcolor % 10); - *p++ = 'm'; - if (full_write (out_fd, bytes, p - bytes) < p - bytes) - out_error (); - } - break; - default: - abort (); - } + { + case cm_common8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + if (stream->set_a_background != NULL) + tputs (tparm (stream->set_a_background, + color_bgr (new_attr.bgcolor)), + 1, out_char); + else + tputs (tparm (stream->set_background, new_attr.bgcolor), + 1, out_char); + break; + /* When we are dealing with an xterm, there is no need to go through + tputs() because we know there is no padding and sleeping. */ + case cm_xterm8: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8); + { + char bytes[5]; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + break; + case cm_xterm16: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16); + { + char bytes[6]; + bytes[0] = 0x1B; bytes[1] = '['; + if (new_attr.bgcolor < 8) + { + bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor; + bytes[4] = 'm'; + if (full_write (out_fd, bytes, 5) < 5) + out_error (); + } + else + { + bytes[2] = '1'; bytes[3] = '0'; + bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm'; + if (full_write (out_fd, bytes, 6) < 6) + out_error (); + } + } + break; + case cm_xterm88: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88); + { + char bytes[10]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 10) + *p++ = '0' + (new_attr.bgcolor / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + case cm_xterm256: + assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256); + { + char bytes[11]; + char *p; + bytes[0] = 0x1B; bytes[1] = '['; + bytes[2] = '4'; bytes[3] = '8'; bytes[4] = ';'; + bytes[5] = '5'; bytes[6] = ';'; + p = bytes + 7; + if (new_attr.bgcolor >= 100) + *p++ = '0' + (new_attr.bgcolor / 100); + if (new_attr.bgcolor >= 10) + *p++ = '0' + ((new_attr.bgcolor % 100) / 10); + *p++ = '0' + (new_attr.bgcolor % 10); + *p++ = 'm'; + if (full_write (out_fd, bytes, p - bytes) < p - bytes) + out_error (); + } + break; + default: + abort (); + } } if (new_attr.weight != old_attr.weight @@ -1452,7 +1452,7 @@ if (n > 0) { if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); + error (EXIT_FAILURE, errno, _("error writing to %s"), stream->filename); cp += n; ap += n; len -= n; @@ -1460,49 +1460,49 @@ if (len > 0) { /* Block fatal signals, so that a SIGINT or similar doesn't interrupt - us without the possibility of restoring the terminal's state. */ + us without the possibility of restoring the terminal's state. */ block_fatal_signals (); /* Likewise for SIGTSTP etc. */ block_stopping_signals (); /* Enable the exit handler for restoring the terminal's state. */ restore_colors = - (stream->supports_foreground || stream->supports_background - ? stream->orig_pair - : NULL); + (stream->supports_foreground || stream->supports_background + ? stream->orig_pair + : NULL); restore_weight = - (stream->supports_weight ? stream->exit_attribute_mode : NULL); + (stream->supports_weight ? stream->exit_attribute_mode : NULL); restore_posture = - (stream->supports_posture - ? (stream->exit_italics_mode != NULL - ? stream->exit_italics_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_posture + ? (stream->exit_italics_mode != NULL + ? stream->exit_italics_mode + : stream->exit_attribute_mode) + : NULL); restore_underline = - (stream->supports_underline - ? (stream->exit_underline_mode != NULL - ? stream->exit_underline_mode - : stream->exit_attribute_mode) - : NULL); + (stream->supports_underline + ? (stream->exit_underline_mode != NULL + ? stream->exit_underline_mode + : stream->exit_attribute_mode) + : NULL); out_fd = stream->fd; out_filename = stream->filename; while (len > 0) - { - /* Activate the attributes in *ap. */ - out_attr_change (stream, attr, *ap); - attr = *ap; - /* See how many characters we can output without further attribute - changes. */ - for (n = 1; n < len && equal_attributes (ap[n], attr); n++) - ; - if (full_write (stream->fd, cp, n) < n) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n; - ap += n; - len -= n; - } + { + /* Activate the attributes in *ap. */ + out_attr_change (stream, attr, *ap); + attr = *ap; + /* See how many characters we can output without further attribute + changes. */ + for (n = 1; n < len && equal_attributes (ap[n], attr); n++) + ; + if (full_write (stream->fd, cp, n) < n) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n; + ap += n; + len -= n; + } /* Switch back to the default attributes. */ out_attr_change (stream, attr, default_attr); @@ -1554,42 +1554,42 @@ /* Copy n bytes into the buffer. */ if (n > stream->allocated - stream->buflen) - { - size_t new_allocated = - xmax (xsum (stream->buflen, n), - xsum (stream->allocated, stream->allocated)); - if (size_overflow_p (new_allocated)) - error (EXIT_FAILURE, 0, - _("%s: too much output, buffer size overflow"), - "term_ostream"); - stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); - stream->attrbuffer = - (attributes_t *) - xrealloc (stream->attrbuffer, - new_allocated * sizeof (attributes_t)); - stream->allocated = new_allocated; - } + { + size_t new_allocated = + xmax (xsum (stream->buflen, n), + xsum (stream->allocated, stream->allocated)); + if (size_overflow_p (new_allocated)) + error (EXIT_FAILURE, 0, + _("%s: too much output, buffer size overflow"), + "term_ostream"); + stream->buffer = (char *) xrealloc (stream->buffer, new_allocated); + stream->attrbuffer = + (attributes_t *) + xrealloc (stream->attrbuffer, + new_allocated * sizeof (attributes_t)); + stream->allocated = new_allocated; + } memcpy (stream->buffer + stream->buflen, cp, n); { - attributes_t attr = stream->simp_attr; - attributes_t *ap = stream->attrbuffer + stream->buflen; - attributes_t *ap_end = ap + n; - for (; ap < ap_end; ap++) - *ap = attr; + attributes_t attr = stream->simp_attr; + attributes_t *ap = stream->attrbuffer + stream->buflen; + attributes_t *ap_end = ap + n; + for (; ap < ap_end; ap++) + *ap = attr; } stream->buflen += n; if (newline != NULL) - { - output_buffer (stream); - if (full_write (stream->fd, "\n", 1) < 1) - error (EXIT_FAILURE, errno, _("error writing to %s"), - stream->filename); - cp += n + 1; /* cp = newline + 1; */ - len -= n + 1; - } + { + output_buffer (stream); + if (full_write (stream->fd, "\n", 1) < 1) + error (EXIT_FAILURE, errno, _("error writing to %s"), + stream->filename); + cp += n + 1; /* cp = newline + 1; */ + len -= n + 1; + } else - break; + break; } } @@ -1632,65 +1632,65 @@ /* Implementation of term_ostream_t methods. */ -term_color_t +static term_color_t term_ostream::get_color (term_ostream_t stream) { return stream->curr_attr.color; } -void +static void term_ostream::set_color (term_ostream_t stream, term_color_t color) { stream->curr_attr.color = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_color_t +static term_color_t term_ostream::get_bgcolor (term_ostream_t stream) { return stream->curr_attr.bgcolor; } -void +static void term_ostream::set_bgcolor (term_ostream_t stream, term_color_t color) { stream->curr_attr.bgcolor = color; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_weight_t +static term_weight_t term_ostream::get_weight (term_ostream_t stream) { return stream->curr_attr.weight; } -void +static void term_ostream::set_weight (term_ostream_t stream, term_weight_t weight) { stream->curr_attr.weight = weight; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_posture_t +static term_posture_t term_ostream::get_posture (term_ostream_t stream) { return stream->curr_attr.posture; } -void +static void term_ostream::set_posture (term_ostream_t stream, term_posture_t posture) { stream->curr_attr.posture = posture; stream->simp_attr = simplify_attributes (stream, stream->curr_attr); } -term_underline_t +static term_underline_t term_ostream::get_underline (term_ostream_t stream) { return stream->curr_attr.underline; } -void +static void term_ostream::set_underline (term_ostream_t stream, term_underline_t underline) { stream->curr_attr.underline = underline; @@ -1741,31 +1741,31 @@ if (term != NULL && term[0] != '\0') { /* When the terminfo function are available, we prefer them over the - termcap functions because - 1. they don't risk a buffer overflow, - 2. on OSF/1, for TERM=xterm, the tiget* functions provide access - to the number of colors and the color escape sequences, whereas - the tget* functions don't provide them. */ + termcap functions because + 1. they don't risk a buffer overflow, + 2. on OSF/1, for TERM=xterm, the tiget* functions provide access + to the number of colors and the color escape sequences, whereas + the tget* functions don't provide them. */ #if HAVE_TERMINFO int err = 1; if (setupterm (term, fd, &err) || err == 1) - { - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tigetnum ("colors"); - stream->no_color_video = tigetnum ("ncv"); - stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); - stream->set_foreground = xstrdup0 (tigetstr ("setf")); - stream->set_a_background = xstrdup0 (tigetstr ("setab")); - stream->set_background = xstrdup0 (tigetstr ("setb")); - stream->orig_pair = xstrdup0 (tigetstr ("op")); - stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); - stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); - stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); - stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); - stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); - stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); - } + { + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tigetnum ("colors"); + stream->no_color_video = tigetnum ("ncv"); + stream->set_a_foreground = xstrdup0 (tigetstr ("setaf")); + stream->set_foreground = xstrdup0 (tigetstr ("setf")); + stream->set_a_background = xstrdup0 (tigetstr ("setab")); + stream->set_background = xstrdup0 (tigetstr ("setb")); + stream->orig_pair = xstrdup0 (tigetstr ("op")); + stream->enter_bold_mode = xstrdup0 (tigetstr ("bold")); + stream->enter_italics_mode = xstrdup0 (tigetstr ("sitm")); + stream->exit_italics_mode = xstrdup0 (tigetstr ("ritm")); + stream->enter_underline_mode = xstrdup0 (tigetstr ("smul")); + stream->exit_underline_mode = xstrdup0 (tigetstr ("rmul")); + stream->exit_attribute_mode = xstrdup0 (tigetstr ("sgr0")); + } #elif HAVE_TERMCAP struct { char buf[1024]; char canary[4]; } termcapbuf; int retval; @@ -1774,64 +1774,64 @@ memcpy (termcapbuf.canary, "CnRy", 4); retval = tgetent (termcapbuf.buf, term); if (memcmp (termcapbuf.canary, "CnRy", 4) != 0) - /* Buffer overflow! */ - abort (); + /* Buffer overflow! */ + abort (); if (retval > 0) - { - struct { char buf[1024]; char canary[4]; } termentrybuf; - char *termentryptr; - - /* Prepare for calling tgetstr, being defensive against buffer - overflow. ncurses' tgetstr() supports a second argument NULL, - but NetBSD's tgetstr() doesn't. */ - memcpy (termentrybuf.canary, "CnRz", 4); - #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) - - /* Retrieve particular values depending on the terminal type. */ - stream->max_colors = tgetnum ("Co"); - stream->no_color_video = tgetnum ("NC"); - stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); - stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); - stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); - stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); - stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); - stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); - stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); - stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); - stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); - stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); - stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); + { + struct { char buf[1024]; char canary[4]; } termentrybuf; + char *termentryptr; + + /* Prepare for calling tgetstr, being defensive against buffer + overflow. ncurses' tgetstr() supports a second argument NULL, + but NetBSD's tgetstr() doesn't. */ + memcpy (termentrybuf.canary, "CnRz", 4); + #define TEBP ((termentryptr = termentrybuf.buf), &termentryptr) + + /* Retrieve particular values depending on the terminal type. */ + stream->max_colors = tgetnum ("Co"); + stream->no_color_video = tgetnum ("NC"); + stream->set_a_foreground = xstrdup0 (tgetstr ("AF", TEBP)); + stream->set_foreground = xstrdup0 (tgetstr ("Sf", TEBP)); + stream->set_a_background = xstrdup0 (tgetstr ("AB", TEBP)); + stream->set_background = xstrdup0 (tgetstr ("Sb", TEBP)); + stream->orig_pair = xstrdup0 (tgetstr ("op", TEBP)); + stream->enter_bold_mode = xstrdup0 (tgetstr ("md", TEBP)); + stream->enter_italics_mode = xstrdup0 (tgetstr ("ZH", TEBP)); + stream->exit_italics_mode = xstrdup0 (tgetstr ("ZR", TEBP)); + stream->enter_underline_mode = xstrdup0 (tgetstr ("us", TEBP)); + stream->exit_underline_mode = xstrdup0 (tgetstr ("ue", TEBP)); + stream->exit_attribute_mode = xstrdup0 (tgetstr ("me", TEBP)); # ifdef __BEOS__ - /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" - it contains balues in terminfo syntax but the system's tparam() - function understands only the termcap syntax. */ - if (stream->set_a_foreground != NULL - && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) - { - free (stream->set_a_foreground); - stream->set_a_foreground = xstrdup ("\033[3%dm"); - } - if (stream->set_a_background != NULL - && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) - { - free (stream->set_a_background); - stream->set_a_background = xstrdup ("\033[4%dm"); - } + /* The BeOS termcap entry for "beterm" is broken: For "AF" and "AB" + it contains balues in terminfo syntax but the system's tparam() + function understands only the termcap syntax. */ + if (stream->set_a_foreground != NULL + && strcmp (stream->set_a_foreground, "\033[3%p1%dm") == 0) + { + free (stream->set_a_foreground); + stream->set_a_foreground = xstrdup ("\033[3%dm"); + } + if (stream->set_a_background != NULL + && strcmp (stream->set_a_background, "\033[4%p1%dm") == 0) + { + free (stream->set_a_background); + stream->set_a_background = xstrdup ("\033[4%dm"); + } # endif - /* The termcap entry for cygwin is broken: It has no "ncv" value, - but bold and underline are actually rendered through colors. */ - if (strcmp (term, "cygwin") == 0) - stream->no_color_video |= 2 | 32; - - /* Done with tgetstr. Detect possible buffer overflow. */ - #undef TEBP - if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) - /* Buffer overflow! */ - abort (); - } + /* The termcap entry for cygwin is broken: It has no "ncv" value, + but bold and underline are actually rendered through colors. */ + if (strcmp (term, "cygwin") == 0) + stream->no_color_video |= 2 | 32; + + /* Done with tgetstr. Detect possible buffer overflow. */ + #undef TEBP + if (memcmp (termentrybuf.canary, "CnRz", 4) != 0) + /* Buffer overflow! */ + abort (); + } #else /* Fallback code for platforms with neither the terminfo nor the termcap functions, such as mingw. @@ -1849,17 +1849,17 @@ #endif /* AIX 4.3.2, IRIX 6.5, HP-UX 11, Solaris 7..10 all lack the - description of color capabilities of "xterm" and "xterms" - in their terminfo database. But it is important to have - color in xterm. So we provide the color capabilities here. */ + description of color capabilities of "xterm" and "xterms" + in their terminfo database. But it is important to have + color in xterm. So we provide the color capabilities here. */ if (stream->max_colors <= 1 - && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) - { - stream->max_colors = 8; - stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); - stream->set_a_background = xstrdup ("\033[4%p1%dm"); - stream->orig_pair = xstrdup ("\033[39;49m"); - } + && (strcmp (term, "xterm") == 0 || strcmp (term, "xterms") == 0)) + { + stream->max_colors = 8; + stream->set_a_foreground = xstrdup ("\033[3%p1%dm"); + stream->set_a_background = xstrdup ("\033[4%p1%dm"); + stream->orig_pair = xstrdup ("\033[39;49m"); + } } /* Infer the capabilities. */ @@ -1874,28 +1874,28 @@ stream->colormodel = (stream->supports_foreground || stream->supports_background ? (term != NULL - && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ - (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) - || /* Recognize rxvt-16color. */ - (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) - || /* Recognize konsole-16color. */ - (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) - ? (stream->max_colors == 256 ? cm_xterm256 : - stream->max_colors == 88 ? cm_xterm88 : - stream->max_colors == 16 ? cm_xterm16 : - cm_xterm8) - : cm_common8) + && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */ + (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0) + || /* Recognize rxvt-16color. */ + (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0) + || /* Recognize konsole-16color. */ + (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0)) + ? (stream->max_colors == 256 ? cm_xterm256 : + stream->max_colors == 88 ? cm_xterm88 : + stream->max_colors == 16 ? cm_xterm16 : + cm_xterm8) + : cm_common8) : cm_monochrome); stream->supports_weight = (stream->enter_bold_mode != NULL && stream->exit_attribute_mode != NULL); stream->supports_posture = (stream->enter_italics_mode != NULL && (stream->exit_italics_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); stream->supports_underline = (stream->enter_underline_mode != NULL && (stream->exit_underline_mode != NULL - || stream->exit_attribute_mode != NULL)); + || stream->exit_attribute_mode != NULL)); /* Initialize the buffer. */ stream->allocated = 120; @@ -1916,8 +1916,8 @@ static bool registered = false; if (!registered) { - atexit (restore); - registered = true; + atexit (restore); + registered = true; } } diff -Nru gettext-0.17/gnulib-local/lib/term-ostream.oo.h gettext-0.18.1.1/gnulib-local/lib/term-ostream.oo.h --- gettext-0.17/gnulib-local/lib/term-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/term-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -65,7 +65,7 @@ /* Convert an RGB value (red, green, blue in [0..255]) to a color, valid for this stream only. */ term_color_t rgb_to_color (term_ostream_t stream, - int red, int green, int blue); + int red, int green, int blue); /* Get/set the text color. */ term_color_t get_color (term_ostream_t stream); @@ -86,7 +86,7 @@ /* Get/set the text underline decoration. */ term_underline_t get_underline (term_ostream_t stream); void set_underline (term_ostream_t stream, - term_underline_t underline); + term_underline_t underline); }; diff -Nru gettext-0.17/gnulib-local/lib/term-styled-ostream.oo.c gettext-0.18.1.1/gnulib-local/lib/term-styled-ostream.oo.c --- gettext-0.17/gnulib-local/lib/term-styled-ostream.oo.c 2007-10-27 15:19:49.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/term-styled-ostream.oo.c 2010-06-06 12:49:58.000000000 +0000 @@ -84,7 +84,7 @@ static void term_styled_ostream::write_mem (term_styled_ostream_t stream, - const void *data, size_t len) + const void *data, size_t len) { term_ostream_set_color (stream->destination, stream->curr_attr->color); term_ostream_set_bgcolor (stream->destination, stream->curr_attr->bgcolor); @@ -116,7 +116,7 @@ while (hash_iterate (&stream->cache, &ptr, &key, &keylen, &data) == 0) { - free (data); + free (data); } } hash_destroy (&stream->cache); @@ -177,9 +177,9 @@ /* An extended version of cr_sel_eng_get_matched_style. */ static enum CRStatus crx_sel_eng_get_matched_style (CRSelEng * a_this, CRCascade * a_cascade, - xmlNode * a_node, - CRXStyle * a_parent_style, CRXStyle ** a_style, - gboolean a_set_props_to_initial_values) + xmlNode * a_node, + CRXStyle * a_parent_style, CRXStyle ** a_style, + gboolean a_set_props_to_initial_values) { enum CRStatus status; CRPropList *props = NULL; @@ -188,7 +188,7 @@ return CR_BAD_PARAM_ERROR; status = cr_sel_eng_get_matched_properties_from_cascade (a_this, a_cascade, - a_node, &props); + a_node, &props); if (!(status == CR_OK)) return status; @@ -197,69 +197,69 @@ CRXStyle *style; if (!*a_style) - { - *a_style = crx_style_new (a_set_props_to_initial_values); - if (!*a_style) - return CR_ERROR; - } + { + *a_style = crx_style_new (a_set_props_to_initial_values); + if (!*a_style) + return CR_ERROR; + } else - { - if (a_set_props_to_initial_values) - { - cr_style_set_props_to_initial_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_NONE; - } - else - { - cr_style_set_props_to_default_values ((*a_style)->base); - (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; - } - } + { + if (a_set_props_to_initial_values) + { + cr_style_set_props_to_initial_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_NONE; + } + else + { + cr_style_set_props_to_default_values ((*a_style)->base); + (*a_style)->text_decoration = TEXT_DECORATION_INHERIT; + } + } style = *a_style; style->parent_style = a_parent_style; style->base->parent_style = - (a_parent_style != NULL ? a_parent_style->base : NULL); + (a_parent_style != NULL ? a_parent_style->base : NULL); { - CRPropList *cur; + CRPropList *cur; - for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) - { - CRDeclaration *decl = NULL; - - cr_prop_list_get_decl (cur, &decl); - cr_style_set_style_from_decl (style->base, decl); - if (decl != NULL - && decl->property != NULL - && decl->property->stryng != NULL - && decl->property->stryng->str != NULL) - { - if (strcmp (decl->property->stryng->str, "text-decoration") == 0 - && decl->value != NULL - && decl->value->type == TERM_IDENT - && decl->value->content.str != NULL) - { - const char *value = - cr_string_peek_raw_str (decl->value->content.str); - - if (value != NULL) - { - if (strcmp (value, "none") == 0) - style->text_decoration = TEXT_DECORATION_NONE; - else if (strcmp (value, "underline") == 0) - style->text_decoration = TEXT_DECORATION_UNDERLINE; - else if (strcmp (value, "overline") == 0) - style->text_decoration = TEXT_DECORATION_OVERLINE; - else if (strcmp (value, "line-through") == 0) - style->text_decoration = TEXT_DECORATION_LINE_THROUGH; - else if (strcmp (value, "blink") == 0) - style->text_decoration = TEXT_DECORATION_BLINK; - else if (strcmp (value, "inherit") == 0) - style->text_decoration = TEXT_DECORATION_INHERIT; - } - } - } - } + for (cur = props; cur != NULL; cur = cr_prop_list_get_next (cur)) + { + CRDeclaration *decl = NULL; + + cr_prop_list_get_decl (cur, &decl); + cr_style_set_style_from_decl (style->base, decl); + if (decl != NULL + && decl->property != NULL + && decl->property->stryng != NULL + && decl->property->stryng->str != NULL) + { + if (strcmp (decl->property->stryng->str, "text-decoration") == 0 + && decl->value != NULL + && decl->value->type == TERM_IDENT + && decl->value->content.str != NULL) + { + const char *value = + cr_string_peek_raw_str (decl->value->content.str); + + if (value != NULL) + { + if (strcmp (value, "none") == 0) + style->text_decoration = TEXT_DECORATION_NONE; + else if (strcmp (value, "underline") == 0) + style->text_decoration = TEXT_DECORATION_UNDERLINE; + else if (strcmp (value, "overline") == 0) + style->text_decoration = TEXT_DECORATION_OVERLINE; + else if (strcmp (value, "line-through") == 0) + style->text_decoration = TEXT_DECORATION_LINE_THROUGH; + else if (strcmp (value, "blink") == 0) + style->text_decoration = TEXT_DECORATION_BLINK; + else if (strcmp (value, "inherit") == 0) + style->text_decoration = TEXT_DECORATION_INHERIT; + } + } + } + } } cr_prop_list_destroy (props); @@ -280,33 +280,33 @@ static term_color_t style_compute_color_value (CRStyle *style, enum CRRgbProp which, - term_ostream_t stream) + term_ostream_t stream) { for (;;) { if (style == NULL) - return COLOR_DEFAULT; + return COLOR_DEFAULT; if (cr_rgb_is_set_to_inherit (&style->rgb_props[which].sv)) - style = style->parent_style; + style = style->parent_style; else if (cr_rgb_is_set_to_transparent (&style->rgb_props[which].sv)) - /* A transparent color occurs as default background color, set by - cr_style_set_props_to_default_values. */ - return COLOR_DEFAULT; + /* A transparent color occurs as default background color, set by + cr_style_set_props_to_default_values. */ + return COLOR_DEFAULT; else - { - CRRgb rgb; - int r; - int g; - int b; - - cr_rgb_copy (&rgb, &style->rgb_props[which].sv); - if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) - abort (); - r = rgb.red & 0xff; - g = rgb.green & 0xff; - b = rgb.blue & 0xff; - return term_ostream_rgb_to_color (stream, r, g, b); - } + { + CRRgb rgb; + int r; + int g; + int b; + + cr_rgb_copy (&rgb, &style->rgb_props[which].sv); + if (cr_rgb_compute_from_percentage (&rgb) != CR_OK) + abort (); + r = rgb.red & 0xff; + g = rgb.green & 0xff; + b = rgb.blue & 0xff; + return term_ostream_rgb_to_color (stream, r, g, b); + } } } @@ -317,51 +317,51 @@ for (;;) { if (style == NULL) - value += 4; + value += 4; else - switch (style->font_weight) - { - case FONT_WEIGHT_INHERIT: - style = style->parent_style; - continue; - case FONT_WEIGHT_BOLDER: - value += 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_LIGHTER: - value -= 1; - style = style->parent_style; - continue; - case FONT_WEIGHT_100: - value += 1; - break; - case FONT_WEIGHT_200: - value += 2; - break; - case FONT_WEIGHT_300: - value += 3; - break; - case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: - value += 4; - break; - case FONT_WEIGHT_500: - value += 5; - break; - case FONT_WEIGHT_600: - value += 6; - break; - case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: - value += 7; - break; - case FONT_WEIGHT_800: - value += 8; - break; - case FONT_WEIGHT_900: - value += 9; - break; - default: - abort (); - } + switch (style->font_weight) + { + case FONT_WEIGHT_INHERIT: + style = style->parent_style; + continue; + case FONT_WEIGHT_BOLDER: + value += 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_LIGHTER: + value -= 1; + style = style->parent_style; + continue; + case FONT_WEIGHT_100: + value += 1; + break; + case FONT_WEIGHT_200: + value += 2; + break; + case FONT_WEIGHT_300: + value += 3; + break; + case FONT_WEIGHT_400: case FONT_WEIGHT_NORMAL: + value += 4; + break; + case FONT_WEIGHT_500: + value += 5; + break; + case FONT_WEIGHT_600: + value += 6; + break; + case FONT_WEIGHT_700: case FONT_WEIGHT_BOLD: + value += 7; + break; + case FONT_WEIGHT_800: + value += 8; + break; + case FONT_WEIGHT_900: + value += 9; + break; + default: + abort (); + } /* Value >= 600 -> WEIGHT_BOLD. Value <= 500 -> WEIGHT_NORMAL. */ return (value >= 6 ? WEIGHT_BOLD : WEIGHT_NORMAL); } @@ -373,20 +373,20 @@ for (;;) { if (style == NULL) - return POSTURE_DEFAULT; + return POSTURE_DEFAULT; switch (style->font_style) - { - case FONT_STYLE_INHERIT: - style = style->parent_style; - break; - case FONT_STYLE_NORMAL: - return POSTURE_NORMAL; - case FONT_STYLE_ITALIC: - case FONT_STYLE_OBLIQUE: - return POSTURE_ITALIC; - default: - abort (); - } + { + case FONT_STYLE_INHERIT: + style = style->parent_style; + break; + case FONT_STYLE_NORMAL: + return POSTURE_NORMAL; + case FONT_STYLE_ITALIC: + case FONT_STYLE_OBLIQUE: + return POSTURE_ITALIC; + default: + abort (); + } } } @@ -396,22 +396,22 @@ for (;;) { if (style == NULL) - return UNDERLINE_DEFAULT; + return UNDERLINE_DEFAULT; switch (style->text_decoration) - { - case TEXT_DECORATION_INHERIT: - style = style->parent_style; - break; - case TEXT_DECORATION_NONE: - case TEXT_DECORATION_OVERLINE: - case TEXT_DECORATION_LINE_THROUGH: - case TEXT_DECORATION_BLINK: - return UNDERLINE_OFF; - case TEXT_DECORATION_UNDERLINE: - return UNDERLINE_ON; - default: - abort (); - } + { + case TEXT_DECORATION_INHERIT: + style = style->parent_style; + break; + case TEXT_DECORATION_NONE: + case TEXT_DECORATION_OVERLINE: + case TEXT_DECORATION_LINE_THROUGH: + case TEXT_DECORATION_BLINK: + return UNDERLINE_OFF; + case TEXT_DECORATION_UNDERLINE: + return UNDERLINE_ON; + default: + abort (); + } } } @@ -439,10 +439,10 @@ xmlNodePtr child; if (!(*p_start == ' ')) - abort (); + abort (); p_start++; for (p = p_start; p < p_end && *p != ' '; p++) - ; + ; /* Temporarily replace the ' ' by '\0'. */ *p = '\0'; @@ -452,8 +452,8 @@ *p = ' '; if (xmlAddChild (curr, child) == NULL) - /* Error! Shouldn't happen. */ - abort (); + /* Error! Shouldn't happen. */ + abort (); curr = child; p_start = p; @@ -470,17 +470,17 @@ curr_style = NULL; if (crx_sel_eng_get_matched_style (stream->css_engine, - stream->css_document, - curr, - parent_style, &curr_style, - FALSE) != CR_OK) - abort (); + stream->css_document, + curr, + parent_style, &curr_style, + FALSE) != CR_OK) + abort (); if (curr_style == NULL) - /* No declarations matched this node. Inherit all values. */ - curr_style = parent_style; + /* No declarations matched this node. Inherit all values. */ + curr_style = parent_style; else - /* curr_style is a new style, inheriting from parent_style. */ - ; + /* curr_style is a new style, inheriting from parent_style. */ + ; } curr_style_base = (curr_style != NULL ? curr_style->base : NULL); @@ -488,10 +488,10 @@ attr = XMALLOC (attributes_t); attr->color = style_compute_color_value (curr_style_base, RGB_PROP_COLOR, - stream->destination); + stream->destination); attr->bgcolor = style_compute_color_value (curr_style_base, RGB_PROP_BACKGROUND_COLOR, - stream->destination); + stream->destination); attr->weight = style_compute_font_weight_value (curr_style_base); attr->posture = style_compute_font_posture_value (curr_style_base); attr->underline = style_compute_text_underline_value (curr_style); @@ -518,15 +518,15 @@ { attributes_t *attr = match (stream); if (hash_insert_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - attr) == NULL) + stream->curr_classes, stream->curr_classes_length, + attr) == NULL) abort (); stream->curr_attr = attr; } static void term_styled_ostream::begin_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { size_t classname_len; char *p; @@ -543,7 +543,7 @@ { size_t new_allocated = stream->curr_classes_length + 1 + classname_len + 1; if (new_allocated < 2 * stream->curr_classes_allocated) - new_allocated = 2 * stream->curr_classes_allocated; + new_allocated = 2 * stream->curr_classes_allocated; stream->curr_classes = xrealloc (stream->curr_classes, new_allocated); stream->curr_classes_allocated = new_allocated; @@ -555,8 +555,8 @@ /* Uodate stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) match_and_cache (stream); else stream->curr_attr = (attributes_t *) found; @@ -564,7 +564,7 @@ static void term_styled_ostream::end_use_class (term_styled_ostream_t stream, - const char *classname) + const char *classname) { char *p_end; char *p_start; @@ -582,15 +582,15 @@ ; p_start = p + 1; if (!(p_end - p_start == strlen (classname) - && memcmp (p_start, classname, p_end - p_start) == 0)) + && memcmp (p_start, classname, p_end - p_start) == 0)) /* The match ing call to begin_use_class used a different classname. */ abort (); stream->curr_classes_length = p - stream->curr_classes; /* Update stream->curr_attr. */ if (hash_find_entry (&stream->cache, - stream->curr_classes, stream->curr_classes_length, - &found) < 0) + stream->curr_classes, stream->curr_classes_length, + &found) < 0) abort (); stream->curr_attr = (attributes_t *) found; } @@ -599,7 +599,7 @@ term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename) + const char *css_filename) { term_styled_ostream_t stream = XMALLOC (struct term_styled_ostream_representation); @@ -609,8 +609,8 @@ stream->destination = term_ostream_create (fd, filename); if (cr_om_parser_simply_parse_file ((const guchar *) css_filename, - CR_UTF_8, /* CR_AUTO is not supported */ - &css_file_contents) != CR_OK) + CR_UTF_8, /* CR_AUTO is not supported */ + &css_file_contents) != CR_OK) { term_ostream_free (stream->destination); free (stream); diff -Nru gettext-0.17/gnulib-local/lib/term-styled-ostream.oo.h gettext-0.18.1.1/gnulib-local/lib/term-styled-ostream.oo.h --- gettext-0.17/gnulib-local/lib/term-styled-ostream.oo.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/term-styled-ostream.oo.h 2010-06-06 12:49:58.000000000 +0000 @@ -39,7 +39,7 @@ Return NULL upon failure. */ extern term_styled_ostream_t term_styled_ostream_create (int fd, const char *filename, - const char *css_filename); + const char *css_filename); #ifdef __cplusplus diff -Nru gettext-0.17/gnulib-local/lib/tparm.c gettext-0.18.1.1/gnulib-local/lib/tparm.c --- gettext-0.17/gnulib-local/lib/tparm.c 2006-12-14 12:34:16.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/tparm.c 2010-06-06 12:49:58.000000000 +0000 @@ -31,14 +31,14 @@ #endif #ifndef MAX_PUSHED -#define MAX_PUSHED 32 +#define MAX_PUSHED 32 #endif -#define ARG 1 -#define NUM 2 +#define ARG 1 +#define NUM 2 -#define INTEGER 1 -#define STRING 2 +#define INTEGER 1 +#define STRING 2 #define MAX_LINE 640 @@ -96,19 +96,19 @@ if (argcnt > argnum) { if (arg_list[argnum].type != type) - return 1; + return 1; else if (type == STRING) - *(char **)p = arg_list[argnum].string; + *(char **)p = arg_list[argnum].string; else - *(int *)p = arg_list[argnum].integer; + *(int *)p = arg_list[argnum].integer; } else { arg_list[argcnt].type = type; if (type == STRING) - *(char **)p = arg_list[argcnt++].string = (char *) va_arg (tparm_args, char *); + *(char **)p = arg_list[argcnt++].string = (char *) va_arg (tparm_args, char *); else - *(int *)p = arg_list[argcnt++].integer = (int) va_arg (tparm_args, int); + *(int *)p = arg_list[argcnt++].integer = (int) va_arg (tparm_args, int); } return 0; } @@ -146,28 +146,28 @@ { case '\\': switch (*++sp) - { - case '\'': - case '$': - case '\\': - case '%': - *c = *sp; - return 2; - case '\0': - *c = '\\'; - return 1; - case '0': - if (sp[1] == '0' && sp[2] == '0') - { - *c = '\0'; - return 4; - } - *c = '\200'; /* '\0' ???? */ - return 2; - default: - *c = *sp; - return 2; - } + { + case '\'': + case '$': + case '\\': + case '%': + *c = *sp; + return 2; + case '\0': + *c = '\\'; + return 1; + case '0': + if (sp[1] == '0' && sp[2] == '0') + { + *c = '\0'; + return 4; + } + *c = '\200'; /* '\0' ???? */ + return 2; + default: + *c = *sp; + return 2; + } default: *c = *sp; return 1; @@ -193,57 +193,57 @@ Terminfo % codes: - %% output a '%' - %[[:][-+# ][width][.precision]][doxXs] - output pop according to the printf format - %c output pop as a char - %'c' push character constant c. - %{n} push decimal constant n. - %p[1-9] push paramter [1-9] - %g[a-z] push variable [a-z] - %P[a-z] put pop in variable [a-z] - %l push the length of pop (a string) - %+ add pop to pop and push the result - %- subtract pop from pop and push the result - %* multiply pop and pop and push the result - %& bitwise and pop and pop and push the result - %| bitwise or pop and pop and push the result - %^ bitwise xor pop and pop and push the result - %~ push the bitwise not of pop - %= compare if pop and pop are equal and push the result - %> compare if pop is less than pop and push the result - %< compare if pop is greater than pop and push the result - %A logical and pop and pop and push the result - %O logical or pop and pop and push the result - %! push the logical not of pop - %? condition %t if_true [%e if_false] %; - if condtion evaulates as true then evaluate if_true, - else evaluate if_false. elseif's can be done: - %? cond %t true [%e cond2 %t true2] ... [%e condN %t trueN] [%e false] %; - %i add one to parameters 1 and 2. (ANSI) + %% output a '%' + %[[:][-+# ][width][.precision]][doxXs] + output pop according to the printf format + %c output pop as a char + %'c' push character constant c. + %{n} push decimal constant n. + %p[1-9] push paramter [1-9] + %g[a-z] push variable [a-z] + %P[a-z] put pop in variable [a-z] + %l push the length of pop (a string) + %+ add pop to pop and push the result + %- subtract pop from pop and push the result + %* multiply pop and pop and push the result + %& bitwise and pop and pop and push the result + %| bitwise or pop and pop and push the result + %^ bitwise xor pop and pop and push the result + %~ push the bitwise not of pop + %= compare if pop and pop are equal and push the result + %> compare if pop is less than pop and push the result + %< compare if pop is greater than pop and push the result + %A logical and pop and pop and push the result + %O logical or pop and pop and push the result + %! push the logical not of pop + %? condition %t if_true [%e if_false] %; + if condtion evaulates as true then evaluate if_true, + else evaluate if_false. elseif's can be done: + %? cond %t true [%e cond2 %t true2] ... [%e condN %t trueN] [%e false] %; + %i add one to parameters 1 and 2. (ANSI) Termcap Codes: - %% output a % - %. output parameter as a character - %d output parameter as a decimal number - %2 output parameter in printf format %02d - %3 output parameter in printf format %03d - %+x add the character x to parameter and output it as a character -(UW) %-x subtract parameter FROM the character x and output it as a char -(UW) %ax add the character x to parameter -(GNU) %a[+*-/=][cp]x - GNU arithmetic. -(UW) %sx subtract parameter FROM the character x - %>xy if parameter > character x then add character y to parameter - %B convert to BCD (parameter = (parameter/10)*16 + parameter%16) - %D Delta Data encode (parameter = parameter - 2*(paramter%16)) - %i increment the first two parameters by one - %n xor the first two parameters by 0140 -(GNU) %m xor the first two parameters by 0177 - %r swap the first two parameters -(GNU) %b backup to previous parameter -(GNU) %f skip this parameter + %% output a % + %. output parameter as a character + %d output parameter as a decimal number + %2 output parameter in printf format %02d + %3 output parameter in printf format %03d + %+x add the character x to parameter and output it as a character +(UW) %-x subtract parameter FROM the character x and output it as a char +(UW) %ax add the character x to parameter +(GNU) %a[+*-/=][cp]x + GNU arithmetic. +(UW) %sx subtract parameter FROM the character x + %>xy if parameter > character x then add character y to parameter + %B convert to BCD (parameter = (parameter/10)*16 + parameter%16) + %D Delta Data encode (parameter = parameter - 2*(paramter%16)) + %i increment the first two parameters by one + %n xor the first two parameters by 0140 +(GNU) %m xor the first two parameters by 0177 + %r swap the first two parameters +(GNU) %b backup to previous parameter +(GNU) %f skip this parameter Note the two definitions of %a, the GNU defintion is used if the characters after the 'a' are valid, otherwise the UW definition is used. @@ -281,616 +281,616 @@ while (*sp != '\0') { switch (*sp) - { - case '\\': - if (scan_for) - { - if (*++sp != '\0') - sp++; - break; - } - *dp++ = *sp++; - if (*sp != '\0') - *dp++ = *sp++; - break; - case '%': - sp++; - if (scan_for) - { - if (*sp == scan_for && if_depth == scan_depth) - { - if (scan_for == ';') - if_depth--; - scan_for = 0; - } - else if (*sp == '?') - if_depth++; - else if (*sp == ';') - { - if (if_depth == 0) - return OOPS; - else - if_depth--; - } - sp++; - break; - } - fmt = NULL; - switch (*sp) - { - case '%': - *dp++ = *sp++; - break; - case '+': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i += j; - if (pushnum (i)) - return OOPS; - sp++; - break; - } - /* FALLTHROUGH */ - case 'C': - if (*sp == 'C') - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (i >= 96) - { - i /= 96; - if (i == '$') - *dp++ = '\\'; - *dp++ = i; - } - } - fmt = "%c"; - /* FALLTHROUGH */ - case 'a': - if (!termcap) - return OOPS; - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (*++sp == '\0') - return OOPS; - if ((sp[1] == 'p' || sp[1] == 'c') - && sp[2] != '\0' && fmt == NULL) - { - /* GNU arithmetic parameter, what they really need is - terminfo. */ - int val; - int lc; - if (sp[1] == 'p' - && getarg (termcap - 1 + sp[2] - '@', INTEGER, &val)) - return OOPS; - if (sp[1] == 'c') - { - char c; - lc = cvtchar (sp + 2, &c) + 2; - /* Mask out 8th bit so \200 can be used for \0 as per - GNU docs. */ - val = c & 0177; - } - else - lc = 2; - switch (sp[0]) - { - case '=': - break; - case '+': - val = i + val; - break; - case '-': - val = i - val; - break; - case '*': - val = i * val; - break; - case '/': - val = i / val; - break; - default: - /* Not really GNU's %a after all... */ - { - char c; - lc = cvtchar (sp, &c); - val = c + i; - } - break; - } - arg_list[termcap - 1].integer = val; - sp += lc; - break; - } - { - char c; - sp += cvtchar (sp, &c); - arg_list[termcap - 1].integer = c + i; - } - } - if (fmt == NULL) - break; - sp--; - /* FALLTHROUGH */ - case '-': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i -= j; - if (pushnum (i)) - return OOPS; - sp++; - break; - } - fmt = "%c"; - /* FALLTHROUGH */ - case 's': - if (termcap && (fmt == NULL || *sp == '-')) - { - int i; - if (getarg (termcap - 1, INTEGER, &i)) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - arg_list[termcap - 1].integer = c - i; - } - if (fmt == NULL) - break; - sp--; - } - if (!termcap) - return OOPS; - /* FALLTHROUGH */ - case '.': - if (termcap && fmt == NULL) - fmt = "%c"; - /* FALLTHROUGH */ - case 'd': - if (termcap && fmt == NULL) - fmt = "%d"; - /* FALLTHROUGH */ - case '2': - if (termcap && fmt == NULL) - fmt = "%02d"; - /* FALLTHROUGH */ - case '3': - if (termcap && fmt == NULL) - fmt = "%03d"; - /* FALLTHROUGH */ - case ':': case ' ': case '#': case 'u': - case 'x': case 'X': case 'o': case 'c': - case '0': case '1': case '4': case '5': - case '6': case '7': case '8': case '9': - if (fmt == NULL) - { - if (termcap) - return OOPS; - if (*sp == ':') - sp++; - fmt = fmt_buf; - *fmt++ = '%'; - while (*sp != 's' && *sp != 'x' && *sp != 'X' && *sp != 'd' - && *sp != 'o' && *sp != 'c' && *sp != 'u') - { - if (*sp == '\0') - return OOPS; - *fmt++ = *sp++; - } - *fmt++ = *sp; - *fmt = '\0'; - fmt = fmt_buf; - } - { - char conv_char = fmt[strlen (fmt) - 1]; - if (conv_char == 's') - { - char *s; - if (popstring (&s)) - return OOPS; - sprintf (sbuf, fmt, s); - } - else - { - int i; - if (termcap) - { - if (getarg (termcap++ - 1, INTEGER, &i)) - return OOPS; - } - else - if (popnum (&i)) - return OOPS; - if (i == 0 && conv_char == 'c') - strcpy (sbuf, "\000"); - else - sprintf (sbuf, fmt, i); - } - } - sp++; - fmt = sbuf; - while (*fmt != '\0') - { - if (*fmt == '$') - *dp++ = '\\'; - *dp++ = *fmt++; - } - break; - case 'r': - { - int i; - if (!termcap || getarg (1, INTEGER, &i)) - return OOPS; - arg_list[1].integer = arg_list[0].integer; - arg_list[0].integer = i; - } - sp++; - break; - case 'i': - { - int i; - if (getarg (1, INTEGER, &i) || arg_list[0].type != INTEGER) - return OOPS; - } - arg_list[1].integer++; - arg_list[0].integer++; - sp++; - break; - case 'n': - { - int i; - if (!termcap || getarg (1, INTEGER, &i)) - return OOPS; - } - arg_list[0].integer ^= 0140; - arg_list[1].integer ^= 0140; - sp++; - break; - case '>': - if (!termcap) - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i > j); - if (pushnum (i)) - return OOPS; - sp++; - break; - } - { - int i; - if (getarg (termcap-1, INTEGER, &i)) - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - if (i > c) - { - sp += cvtchar (sp, &c); - arg_list[termcap-1].integer += c; - } - else - sp += cvtchar (sp, &c); - } - } - sp++; - break; - case 'B': - { - int i; - if (!termcap || getarg (termcap-1, INTEGER, &i)) - return OOPS; - arg_list[termcap-1].integer = 16 * (i / 10) + i % 10; - } - sp++; - break; - case 'D': - { - int i; - if (!termcap || getarg (termcap-1, INTEGER, &i)) - return OOPS; - arg_list[termcap-1].integer = i - 2 * (i % 16); - } - sp++; - break; - case 'p': - if (termcap > 1) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - int i = (*sp == '0' ? 9 : *sp - '1'); - if (i < 0 || i > 9) - return OOPS; - if (pusharg (i)) - return OOPS; - } - termcap = 0; - sp++; - break; - case 'P': - if (termcap || *++sp == '\0') - return OOPS; - { - int i = *sp++ - 'a'; - if (i < 0 || i > 25) - return OOPS; - if (pos-- == 0) - return OOPS; - switch (vars[i].type = S[pos].type) - { - case ARG: - vars[i].argnum = S[pos].argnum; - break; - case NUM: - vars[i].value = S[pos].value; - break; - } - } - break; - case 'g': - if (termcap || *++sp == '\0') - return OOPS; - { - int i = *sp++ - 'a'; - if (i < 0 || i > 25) - return OOPS; - switch (vars[i].type) - { - case ARG: - if (pusharg (vars[i].argnum)) - return OOPS; - break; - case NUM: - if (pushnum (vars[i].value)) - return OOPS; - break; - } - } - break; - case '\'': - if (termcap > 1) - return OOPS; - if (*++sp == '\0') - return OOPS; - { - char c; - sp += cvtchar (sp, &c); - if (pushnum (c) || *sp++ != '\'') - return OOPS; - } - termcap = 0; - break; - case '{': - if (termcap > 1) - return OOPS; - { - int i; - i = 0; - sp++; - while (c_isdigit (*sp)) - i = 10 * i + *sp++ - '0'; - if (*sp++ != '}' || pushnum (i)) - return OOPS; - } - termcap = 0; - break; - case 'l': - { - int i; - char *s; - if (termcap || popstring (&s)) - return OOPS; - i = strlen (s); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '*': - { - int i, j; - if (termcap || popnum (&j) || popnum (&i)) - return OOPS; - i *= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '/': - { - int i, j; - if (termcap || popnum (&j) || popnum (&i)) - return OOPS; - i /= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'm': - if (termcap) - { - int i; - if (getarg (1, INTEGER, &i)) - return OOPS; - arg_list[0].integer ^= 0177; - arg_list[1].integer ^= 0177; - sp++; - break; - } - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i %= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '&': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i &= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '|': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i |= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '^': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i ^= j; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '=': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i == j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '<': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i < j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'A': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i && j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case 'O': - { - int i, j; - if (popnum (&j) || popnum (&i)) - return OOPS; - i = (i || j); - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '!': - { - int i; - if (popnum (&i)) - return OOPS; - i = !i; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '~': - { - int i; - if (popnum (&i)) - return OOPS; - i = ~i; - if (pushnum (i)) - return OOPS; - } - sp++; - break; - case '?': - if (termcap > 1) - return OOPS; - termcap = 0; - if_depth++; - sp++; - break; - case 't': - { - int i; - if (popnum (&i) || if_depth == 0) - return OOPS; - if (!i) - { - scan_for = 'e'; - scan_depth = if_depth; - } - } - sp++; - break; - case 'e': - if (if_depth == 0) - return OOPS; - scan_for = ';'; - scan_depth = if_depth; - sp++; - break; - case ';': - if (if_depth-- == 0) - return OOPS; - sp++; - break; - case 'b': - if (--termcap < 1) - return OOPS; - sp++; - break; - case 'f': - if (!termcap++) - return OOPS; - sp++; - break; - } - break; - default: - if (scan_for) - sp++; - else - *dp++ = *sp++; - break; - } + { + case '\\': + if (scan_for) + { + if (*++sp != '\0') + sp++; + break; + } + *dp++ = *sp++; + if (*sp != '\0') + *dp++ = *sp++; + break; + case '%': + sp++; + if (scan_for) + { + if (*sp == scan_for && if_depth == scan_depth) + { + if (scan_for == ';') + if_depth--; + scan_for = 0; + } + else if (*sp == '?') + if_depth++; + else if (*sp == ';') + { + if (if_depth == 0) + return OOPS; + else + if_depth--; + } + sp++; + break; + } + fmt = NULL; + switch (*sp) + { + case '%': + *dp++ = *sp++; + break; + case '+': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i += j; + if (pushnum (i)) + return OOPS; + sp++; + break; + } + /* FALLTHROUGH */ + case 'C': + if (*sp == 'C') + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (i >= 96) + { + i /= 96; + if (i == '$') + *dp++ = '\\'; + *dp++ = i; + } + } + fmt = "%c"; + /* FALLTHROUGH */ + case 'a': + if (!termcap) + return OOPS; + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (*++sp == '\0') + return OOPS; + if ((sp[1] == 'p' || sp[1] == 'c') + && sp[2] != '\0' && fmt == NULL) + { + /* GNU arithmetic parameter, what they really need is + terminfo. */ + int val; + int lc; + if (sp[1] == 'p' + && getarg (termcap - 1 + sp[2] - '@', INTEGER, &val)) + return OOPS; + if (sp[1] == 'c') + { + char c; + lc = cvtchar (sp + 2, &c) + 2; + /* Mask out 8th bit so \200 can be used for \0 as per + GNU docs. */ + val = c & 0177; + } + else + lc = 2; + switch (sp[0]) + { + case '=': + break; + case '+': + val = i + val; + break; + case '-': + val = i - val; + break; + case '*': + val = i * val; + break; + case '/': + val = i / val; + break; + default: + /* Not really GNU's %a after all... */ + { + char c; + lc = cvtchar (sp, &c); + val = c + i; + } + break; + } + arg_list[termcap - 1].integer = val; + sp += lc; + break; + } + { + char c; + sp += cvtchar (sp, &c); + arg_list[termcap - 1].integer = c + i; + } + } + if (fmt == NULL) + break; + sp--; + /* FALLTHROUGH */ + case '-': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i -= j; + if (pushnum (i)) + return OOPS; + sp++; + break; + } + fmt = "%c"; + /* FALLTHROUGH */ + case 's': + if (termcap && (fmt == NULL || *sp == '-')) + { + int i; + if (getarg (termcap - 1, INTEGER, &i)) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + arg_list[termcap - 1].integer = c - i; + } + if (fmt == NULL) + break; + sp--; + } + if (!termcap) + return OOPS; + /* FALLTHROUGH */ + case '.': + if (termcap && fmt == NULL) + fmt = "%c"; + /* FALLTHROUGH */ + case 'd': + if (termcap && fmt == NULL) + fmt = "%d"; + /* FALLTHROUGH */ + case '2': + if (termcap && fmt == NULL) + fmt = "%02d"; + /* FALLTHROUGH */ + case '3': + if (termcap && fmt == NULL) + fmt = "%03d"; + /* FALLTHROUGH */ + case ':': case ' ': case '#': case 'u': + case 'x': case 'X': case 'o': case 'c': + case '0': case '1': case '4': case '5': + case '6': case '7': case '8': case '9': + if (fmt == NULL) + { + if (termcap) + return OOPS; + if (*sp == ':') + sp++; + fmt = fmt_buf; + *fmt++ = '%'; + while (*sp != 's' && *sp != 'x' && *sp != 'X' && *sp != 'd' + && *sp != 'o' && *sp != 'c' && *sp != 'u') + { + if (*sp == '\0') + return OOPS; + *fmt++ = *sp++; + } + *fmt++ = *sp; + *fmt = '\0'; + fmt = fmt_buf; + } + { + char conv_char = fmt[strlen (fmt) - 1]; + if (conv_char == 's') + { + char *s; + if (popstring (&s)) + return OOPS; + sprintf (sbuf, fmt, s); + } + else + { + int i; + if (termcap) + { + if (getarg (termcap++ - 1, INTEGER, &i)) + return OOPS; + } + else + if (popnum (&i)) + return OOPS; + if (i == 0 && conv_char == 'c') + strcpy (sbuf, "\000"); + else + sprintf (sbuf, fmt, i); + } + } + sp++; + fmt = sbuf; + while (*fmt != '\0') + { + if (*fmt == '$') + *dp++ = '\\'; + *dp++ = *fmt++; + } + break; + case 'r': + { + int i; + if (!termcap || getarg (1, INTEGER, &i)) + return OOPS; + arg_list[1].integer = arg_list[0].integer; + arg_list[0].integer = i; + } + sp++; + break; + case 'i': + { + int i; + if (getarg (1, INTEGER, &i) || arg_list[0].type != INTEGER) + return OOPS; + } + arg_list[1].integer++; + arg_list[0].integer++; + sp++; + break; + case 'n': + { + int i; + if (!termcap || getarg (1, INTEGER, &i)) + return OOPS; + } + arg_list[0].integer ^= 0140; + arg_list[1].integer ^= 0140; + sp++; + break; + case '>': + if (!termcap) + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i > j); + if (pushnum (i)) + return OOPS; + sp++; + break; + } + { + int i; + if (getarg (termcap-1, INTEGER, &i)) + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + if (i > c) + { + sp += cvtchar (sp, &c); + arg_list[termcap-1].integer += c; + } + else + sp += cvtchar (sp, &c); + } + } + sp++; + break; + case 'B': + { + int i; + if (!termcap || getarg (termcap-1, INTEGER, &i)) + return OOPS; + arg_list[termcap-1].integer = 16 * (i / 10) + i % 10; + } + sp++; + break; + case 'D': + { + int i; + if (!termcap || getarg (termcap-1, INTEGER, &i)) + return OOPS; + arg_list[termcap-1].integer = i - 2 * (i % 16); + } + sp++; + break; + case 'p': + if (termcap > 1) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + int i = (*sp == '0' ? 9 : *sp - '1'); + if (i < 0 || i > 9) + return OOPS; + if (pusharg (i)) + return OOPS; + } + termcap = 0; + sp++; + break; + case 'P': + if (termcap || *++sp == '\0') + return OOPS; + { + int i = *sp++ - 'a'; + if (i < 0 || i > 25) + return OOPS; + if (pos-- == 0) + return OOPS; + switch (vars[i].type = S[pos].type) + { + case ARG: + vars[i].argnum = S[pos].argnum; + break; + case NUM: + vars[i].value = S[pos].value; + break; + } + } + break; + case 'g': + if (termcap || *++sp == '\0') + return OOPS; + { + int i = *sp++ - 'a'; + if (i < 0 || i > 25) + return OOPS; + switch (vars[i].type) + { + case ARG: + if (pusharg (vars[i].argnum)) + return OOPS; + break; + case NUM: + if (pushnum (vars[i].value)) + return OOPS; + break; + } + } + break; + case '\'': + if (termcap > 1) + return OOPS; + if (*++sp == '\0') + return OOPS; + { + char c; + sp += cvtchar (sp, &c); + if (pushnum (c) || *sp++ != '\'') + return OOPS; + } + termcap = 0; + break; + case '{': + if (termcap > 1) + return OOPS; + { + int i; + i = 0; + sp++; + while (c_isdigit (*sp)) + i = 10 * i + *sp++ - '0'; + if (*sp++ != '}' || pushnum (i)) + return OOPS; + } + termcap = 0; + break; + case 'l': + { + int i; + char *s; + if (termcap || popstring (&s)) + return OOPS; + i = strlen (s); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '*': + { + int i, j; + if (termcap || popnum (&j) || popnum (&i)) + return OOPS; + i *= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '/': + { + int i, j; + if (termcap || popnum (&j) || popnum (&i)) + return OOPS; + i /= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'm': + if (termcap) + { + int i; + if (getarg (1, INTEGER, &i)) + return OOPS; + arg_list[0].integer ^= 0177; + arg_list[1].integer ^= 0177; + sp++; + break; + } + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i %= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '&': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i &= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '|': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i |= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '^': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i ^= j; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '=': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i == j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '<': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i < j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'A': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i && j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case 'O': + { + int i, j; + if (popnum (&j) || popnum (&i)) + return OOPS; + i = (i || j); + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '!': + { + int i; + if (popnum (&i)) + return OOPS; + i = !i; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '~': + { + int i; + if (popnum (&i)) + return OOPS; + i = ~i; + if (pushnum (i)) + return OOPS; + } + sp++; + break; + case '?': + if (termcap > 1) + return OOPS; + termcap = 0; + if_depth++; + sp++; + break; + case 't': + { + int i; + if (popnum (&i) || if_depth == 0) + return OOPS; + if (!i) + { + scan_for = 'e'; + scan_depth = if_depth; + } + } + sp++; + break; + case 'e': + if (if_depth == 0) + return OOPS; + scan_for = ';'; + scan_depth = if_depth; + sp++; + break; + case ';': + if (if_depth-- == 0) + return OOPS; + sp++; + break; + case 'b': + if (--termcap < 1) + return OOPS; + sp++; + break; + case 'f': + if (!termcap++) + return OOPS; + sp++; + break; + } + break; + default: + if (scan_for) + sp++; + else + *dp++ = *sp++; + break; + } } va_end (tparm_args); *dp = '\0'; diff -Nru gettext-0.17/gnulib-local/lib/tputs.c gettext-0.18.1.1/gnulib-local/lib/tputs.c --- gettext-0.17/gnulib-local/lib/tputs.c 2006-12-23 15:56:43.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/tputs.c 2010-06-06 12:49:58.000000000 +0000 @@ -36,7 +36,7 @@ { cp++; while (c_isdigit (*cp)) - cp++; + cp++; } for (; *cp != '\0'; cp++) outcharfun (*cp); diff -Nru gettext-0.17/gnulib-local/lib/unistd.in.h.diff gettext-0.18.1.1/gnulib-local/lib/unistd.in.h.diff --- gettext-0.17/gnulib-local/lib/unistd.in.h.diff 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/unistd.in.h.diff 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,15 @@ +--- unistd.in.h.orig 2010-05-09 02:37:27.000000000 +0200 ++++ unistd.in.h 2010-05-09 10:51:25.000000000 +0200 +@@ -93,7 +93,11 @@ + + /* Get getopt(), optarg, optind, opterr, optopt. + But avoid namespace pollution on glibc systems. */ +-#if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT ++/* Also, don't include inside libgettextpo, because we use ++ the getopt module only in gettext-tools/gnulib-lib/, not in ++ gettext-tools/libgettextpo/, but there is only a single ++ GNULIB_UNISTD_H_GETOPT variable for both. */ ++#if @GNULIB_UNISTD_H_GETOPT@ && !defined GTPO_CONFIG_H && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT + # include + #endif + diff -Nru gettext-0.17/gnulib-local/lib/vasprintf.c gettext-0.18.1.1/gnulib-local/lib/vasprintf.c --- gettext-0.17/gnulib-local/lib/vasprintf.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/vasprintf.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,182 +0,0 @@ -/* Like vsprintf but provides a pointer to malloc'd storage, which must - be freed by the caller. - Copyright (C) 1994, 1998-1999, 2000-2003, 2006-2007 Free Software Foundation, Inc. - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . */ - -#include - -/* Specification. */ -#include - -#include -#include -#include -#include -#include - -#ifdef TEST -size_t global_total_width; -#endif - -static int -int_vasprintf (char **result, const char *format, va_list args) -{ - const char *p = format; - /* Add one to make sure that it is never zero, which might cause malloc - to return NULL. */ - size_t total_width = strlen (format) + 1; - va_list ap; - - va_copy (ap, args); - while (*p != '\0') - { - if (*p++ == '%') - { - while (strchr ("-+ #0", *p)) - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - if (*p == '.') - { - ++p; - if (*p == '*') - { - ++p; - total_width += abs (va_arg (ap, int)); - } - else - total_width += strtoul (p, (char **) &p, 10); - } - while (strchr ("hlLjtz", *p)) - ++p; - /* Should be big enough for any format specifier except %s - and floats. */ - total_width += 30; - switch (*p) - { - case 'd': - case 'i': - case 'o': - case 'u': - case 'x': - case 'X': - case 'c': - (void) va_arg (ap, int); - break; - case 'f': - case 'F': - { - double arg = va_arg (ap, double); - if (arg >= 1.0 || arg <= -1.0) - /* Since an ieee double can have an exponent of 307, we'll - make the buffer wide enough to cover the gross case. */ - total_width += 307; - } - break; - case 'e': - case 'E': - case 'g': - case 'G': - (void) va_arg (ap, double); - break; - case 's': - total_width += strlen (va_arg (ap, char *)); - break; - case 'p': - case 'n': - (void) va_arg (ap, char *); - break; - } - p++; - } - } - va_end (ap); - -#ifdef TEST - global_total_width = total_width; -#endif - *result = malloc (total_width); - if (*result != NULL) - return vsprintf (*result, format, args); - else - return -1; -} - -int -vasprintf (char **result, const char *format, va_list args) -{ - return int_vasprintf (result, format, args); -} - -int -asprintf (char **result, const char *format, ...) -{ - va_list args; - int done; - - va_start (args, format); - done = vasprintf (result, format, args); - va_end (args); - - return done; -} - -/* ========================= test program ========================= */ - -#ifdef TEST - -#include - -void -checkit (const char* format, ...) -{ - va_list args; - char *result; - - va_start (args, format); - vasprintf (&result, format, args); - va_end (args); - if (strlen (result) < global_total_width) - printf ("PASS: "); - else - printf ("FAIL: "); - printf ("%lu %s\n", (unsigned long) global_total_width, result); -} - -int -main () -{ - checkit ("%d", 0x12345678); - checkit ("%200d", 5); - checkit ("%.300d", 6); - checkit ("%100.150d", 7); - checkit ("%s", "jjjjjjjjjiiiiiiiiiiiiiiioooooooooooooooooppppppppppppaa\n\ -777777777777777777333333333333366666666666622222222222777777777777733333"); - checkit ("%f%s%d%s", 1.0, "foo", 77, "asdjffffffffffffffiiiiiiiiiiixxxxx"); - checkit ("%e", DBL_MIN); - checkit ("%e", DBL_MAX); - checkit ("%.400f", DBL_MIN); - checkit ("%f", DBL_MAX); - checkit ("%g", DBL_MIN); - checkit ("%g", DBL_MAX); - return 0; -} - -#endif /* TEST */ diff -Nru gettext-0.17/gnulib-local/lib/xalloc.h gettext-0.18.1.1/gnulib-local/lib/xalloc.h --- gettext-0.17/gnulib-local/lib/xalloc.h 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/xalloc.h 2010-06-06 12:49:58.000000000 +0000 @@ -84,8 +84,8 @@ known at compile-time. */ # define XNMALLOC(N,T) \ ((T *) (sizeof (T) == 1 \ - ? xmalloc (N) \ - : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) + ? xmalloc (N) \ + : xnboundedmalloc(N, (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / sizeof (T), sizeof (T)))) static inline void * xnboundedmalloc (size_t n, size_t bound, size_t s) { diff -Nru gettext-0.17/gnulib-local/lib/xerror.c gettext-0.18.1.1/gnulib-local/lib/xerror.c --- gettext-0.17/gnulib-local/lib/xerror.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/xerror.c 2010-06-06 12:49:58.000000000 +0000 @@ -49,10 +49,10 @@ { width = 0; if (error_with_progname) - { - fprintf (stderr, "%s: ", program_name); - width += mbswidth (program_name, 0) + 2; - } + { + fprintf (stderr, "%s: ", program_name); + width += mbswidth (program_name, 0) + 2; + } fputs (prefix, stderr); width += mbswidth (prefix, 0); free (prefix); @@ -64,16 +64,16 @@ const char *np; for (i = width; i > 0; i--) - putc (' ', stderr); + putc (' ', stderr); after_indent: np = strchr (cp, '\n'); if (np == NULL || np[1] == '\0') - { - fputs (cp, stderr); - break; - } + { + fputs (cp, stderr); + break; + } np++; fwrite (cp, 1, np - cp, stderr); diff -Nru gettext-0.17/gnulib-local/lib/xgetcwd.c gettext-0.18.1.1/gnulib-local/lib/xgetcwd.c --- gettext-0.17/gnulib-local/lib/xgetcwd.c 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/lib/xgetcwd.c 2010-06-06 12:49:58.000000000 +0000 @@ -58,7 +58,7 @@ return NULL; path_max = (unsigned) PATH_MAX; - path_max += 2; /* The getcwd docs say to do this. */ + path_max += 2; /* The getcwd docs say to do this. */ for (;;) { @@ -67,14 +67,14 @@ errno = 0; ret = getcwd (cwd, path_max); if (ret != NULL) - return ret; + return ret; if (errno != ERANGE) - { - int save_errno = errno; - free (cwd); - errno = save_errno; - return NULL; - } + { + int save_errno = errno; + free (cwd); + errno = save_errno; + return NULL; + } free (cwd); diff -Nru gettext-0.17/gnulib-local/m4/curses.m4 gettext-0.18.1.1/gnulib-local/m4/curses.m4 --- gettext-0.17/gnulib-local/m4/curses.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/curses.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,16 @@ +# curses.m4 serial 1 (gettext-0.18) +dnl Copyright (C) 2008 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Sets gl_curses_allowed to yes or no. +AC_DEFUN([gl_CURSES], +[ + AC_MSG_CHECKING([whether curses libraries may be used]) + AC_ARG_ENABLE(curses, + [ --disable-curses do not use libncurses, libtermcap even if they exist], + [gl_curses_allowed="$enableval"], + [gl_curses_allowed=yes]) + AC_MSG_RESULT([$gl_curses_allowed]) +]) diff -Nru gettext-0.17/gnulib-local/m4/exitfail.m4.diff gettext-0.18.1.1/gnulib-local/m4/exitfail.m4.diff --- gettext-0.17/gnulib-local/m4/exitfail.m4.diff 2006-08-22 18:26:28.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/exitfail.m4.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -*** gnulib/m4/exitfail.m4 2005-03-21 23:06:27.000000000 +0100 ---- gettext-tools/m4/exitfail.m4 2005-03-09 00:49:02.000000000 +0100 -*************** -*** 6,13 **** - - AC_DEFUN([gl_EXITFAIL], - [ -- AC_LIBOBJ([exitfail]) -- - dnl No prerequisites of lib/exitfail.c. - : - ]) ---- 6,11 ---- diff -Nru gettext-0.17/gnulib-local/m4/libglib.m4 gettext-0.18.1.1/gnulib-local/m4/libglib.m4 --- gettext-0.17/gnulib-local/m4/libglib.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/libglib.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# libglib.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# libglib.m4 serial 3 (gettext-0.17) +dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -35,7 +35,11 @@ dnl one that built the library. AC_LIB_LINKFLAGS_BODY([glib-2.0]) LIBS="$gl_save_LIBS $LIBGLIB_2_0" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" @@ -44,7 +48,11 @@ if test "$gl_cv_libglib" != yes; then gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCGLIB_2_0" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" @@ -56,7 +64,11 @@ dnl and /usr/lib/glib-2.0/include. if test -n "$LIBGLIB_2_0_PREFIX"; then CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include" - AC_TRY_LINK([#include ], + AC_TRY_LINK([#include +#ifndef G_BEGIN_DECLS +error this glib.h includes a glibconfig.h from a glib version 1.x +#endif +], [g_string_new ("foo");], [gl_cv_libglib=yes gl_cv_LIBGLIB="$LIBGLIB_2_0" diff -Nru gettext-0.17/gnulib-local/m4/libxml.m4 gettext-0.18.1.1/gnulib-local/m4/libxml.m4 --- gettext-0.17/gnulib-local/m4/libxml.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/libxml.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# libxml.m4 serial 4 (gettext-0.17) -dnl Copyright (C) 2006 Free Software Foundation, Inc. +# libxml.m4 serial 5 (gettext-0.18) +dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -56,17 +56,30 @@ ]) if test "$gl_cv_libxml" != yes; then dnl Often the include files are installed in /usr/include/libxml2. - AC_TRY_LINK([#include ], - [xmlCheckVersion (0);], - [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h]) - libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` - if test -d "$libxml2_include_dir"; then - gl_cv_libxml=yes + dnl In libxml2-2.5, is self-contained. + dnl In libxml2-2.6, it includes which is + dnl self-contained. + libxml2_include_dir= + AC_TRY_CPP([#include ], + [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlexports.h]) + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlexports_h" | sed -e 's,.libxml.xmlexports\.h$,,'` + ]) + if test -z "$libxml2_include_dir"; then + AC_TRY_CPP([#include ], + [gl_ABSOLUTE_HEADER([libxml2/libxml/xmlversion.h]) + libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'` + ]) + fi + if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then + CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir" + AC_TRY_LINK([#include ], + [xmlCheckVersion (0);], + [gl_cv_libxml=yes gl_cv_LIBXML="$LIBXML2 $LIBICONV" gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV" gl_cv_INCXML="-I$libxml2_include_dir" - fi - ]) + ]) + fi fi CPPFLAGS="$gl_save_CPPFLAGS" fi diff -Nru gettext-0.17/gnulib-local/m4/quotearg.m4.diff gettext-0.18.1.1/gnulib-local/m4/quotearg.m4.diff --- gettext-0.17/gnulib-local/m4/quotearg.m4.diff 2006-08-22 18:31:37.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/quotearg.m4.diff 2010-06-06 12:49:58.000000000 +0000 @@ -1,13 +1,10 @@ *** gnulib/m4/quotearg.m4 2005-03-21 23:06:27.000000000 +0100 --- gettext-tools/m4/quotearg.m4 2005-03-09 00:49:02.000000000 +0100 *************** -*** 6,13 **** +*** 6,10 **** AC_DEFUN([gl_QUOTEARG], [ - AC_LIBOBJ([quotearg]) -- - dnl Prerequisites of lib/quotearg.c. - AC_CHECK_HEADERS_ONCE(wchar.h wctype.h) - AC_CHECK_FUNCS_ONCE(iswprint mbsinit) ---- 6,11 ---- + ]) +--- 6,9 ---- diff -Nru gettext-0.17/gnulib-local/m4/termcap.m4 gettext-0.18.1.1/gnulib-local/m4/termcap.m4 --- gettext-0.17/gnulib-local/m4/termcap.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/termcap.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# termcap.m4 serial 6 (gettext-0.17) -dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. +# termcap.m4 serial 7 (gettext-0.18) +dnl Copyright (C) 2000-2002, 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -34,17 +34,35 @@ dnl tparm(). dnl Some systems, like mingw, have nothing at all. + dnl Some people want to avoid these libraries, in special situations such + dnl as when cross-compiling. + AC_REQUIRE([gl_CURSES]) + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) - dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([ncurses]) - - dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([termcap]) + if test "$gl_curses_allowed" != no; then + + dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([ncurses]) + + dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([termcap]) + + else + + LIBNCURSES= + LTLIBNCURSES= + INCNCURSES= + + LIBTERMCAP= + LTLIBTERMCAP= + INCTERMCAP= + + fi AC_CACHE_CHECK([where termcap library functions come from], [gl_cv_termcap], [ gl_cv_termcap="not found, consider installing GNU ncurses" diff -Nru gettext-0.17/gnulib-local/m4/terminfo.m4 gettext-0.18.1.1/gnulib-local/m4/terminfo.m4 --- gettext-0.17/gnulib-local/m4/terminfo.m4 2007-10-28 17:49:10.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/terminfo.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# terminfo.m4 serial 2 (gettext-0.17) -dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. +# terminfo.m4 serial 3 (gettext-0.18) +dnl Copyright (C) 2000-2002, 2006, 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -37,25 +37,51 @@ dnl tparm(). dnl Some systems, like mingw, have nothing at all. + dnl Some people want to avoid these libraries, in special situations such + dnl as when cross-compiling. + AC_REQUIRE([gl_CURSES]) + dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) - dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([ncurses]) - - dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([termcap]) - - dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([xcurses]) - - dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([curses]) + if test "$gl_curses_allowed" != no; then + + dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([ncurses]) + + dnl Search for libtermcap and define LIBTERMCAP, LTLIBTERMCAP and INCTERMCAP + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([termcap]) + + dnl Search for libxcurses and define LIBXCURSES, LTLIBXCURSES and INCXCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([xcurses]) + + dnl Search for libcurses and define LIBCURSES, LTLIBCURSES and INCCURSES + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([curses]) + + else + + LIBNCURSES= + LTLIBNCURSES= + INCNCURSES= + + LIBTERMCAP= + LTLIBTERMCAP= + INCTERMCAP= + + LIBXCURSES= + LTLIBXCURSES= + INCXCURSES= + + LIBCURSES= + LTLIBCURSES= + INCCURSES= + + fi dnl When searching for the terminfo functions, prefer libtermcap over dnl libxcurses and libcurses, because it is smaller. diff -Nru gettext-0.17/gnulib-local/m4/unionwait.m4 gettext-0.18.1.1/gnulib-local/m4/unionwait.m4 --- gettext-0.17/gnulib-local/m4/unionwait.m4 2006-08-02 13:35:42.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/unionwait.m4 2010-06-06 12:49:58.000000000 +0000 @@ -13,7 +13,7 @@ AC_CACHE_VAL(gt_cv_union_wait, [dnl AC_TRY_LINK([#include #include ], - [union wait status; int pid; pid = wait (&status); + [union wait status; int pid; pid = wait (&status); #ifdef WEXITSTATUS /* Some POSIXoid systems have both the new-style macros and the old union wait type, and they do not work together. If union wait @@ -29,7 +29,7 @@ pid = waitpid (-1, &status, 0); #endif ], - [gt_cv_union_wait=yes], [gt_cv_union_wait=no])]) + [gt_cv_union_wait=yes], [gt_cv_union_wait=no])]) if test "$gt_cv_union_wait" = yes; then AC_DEFINE(HAVE_UNION_WAIT, 1, [Define if defines the 'union wait' type.]) diff -Nru gettext-0.17/gnulib-local/m4/vasprintf.m4 gettext-0.18.1.1/gnulib-local/m4/vasprintf.m4 --- gettext-0.17/gnulib-local/m4/vasprintf.m4 2007-05-14 00:37:42.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/m4/vasprintf.m4 1970-01-01 00:00:00.000000000 +0000 @@ -1,32 +0,0 @@ -# vasprintf.m4 serial 2 -dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FUNC_VASPRINTF], -[ - AC_CHECK_FUNCS([vasprintf]) - if test $ac_cv_func_vasprintf = no; then - gl_REPLACE_VASPRINTF - fi -]) - -AC_DEFUN([gl_REPLACE_VASPRINTF], -[ - AC_LIBOBJ([vasprintf]) - AC_REQUIRE([gl_STDIO_H_DEFAULTS]) - if test $ac_cv_func_vasprintf = yes; then - REPLACE_VASPRINTF=1 - else - HAVE_VASPRINTF=0 - fi - gl_PREREQ_VASPRINTF_H -]) - -# Prerequisites of the vasprintf portion of lib/stdio.h. -AC_DEFUN([gl_PREREQ_VASPRINTF_H], -[ - dnl Persuade glibc to declare asprintf() and vasprintf(). - AC_REQUIRE([AC_GNU_SOURCE]) -]) diff -Nru gettext-0.17/gnulib-local/Makefile.am gettext-0.18.1.1/gnulib-local/Makefile.am --- gettext-0.17/gnulib-local/Makefile.am 2007-10-27 14:53:25.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/Makefile.am 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the gnulib-local directory of GNU gettext -## Copyright (C) 2006-2007 Free Software Foundation, Inc. +## Copyright (C) 2006-2008, 2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -21,7 +21,6 @@ EXTRA_DIST = \ ChangeLog \ build-aux/moopp \ -lib/3level.h \ lib/addext.c \ lib/alloca.in.h \ lib/argmatch.h.diff \ @@ -33,7 +32,6 @@ lib/ChangeLog.1 \ lib/closeout.c \ lib/closeout.h \ -lib/Combining.txt \ lib/error.h.diff \ lib/error-progname.c \ lib/error-progname.h \ @@ -44,7 +42,6 @@ lib/file-ostream.oo.h \ lib/fnmatch.c.diff \ lib/fnmatch_loop.c.diff \ -lib/gen-lbrkprop.c \ lib/getopt.in.h.diff \ lib/gettext.h \ lib/gl_array_list.h.diff \ @@ -218,7 +215,6 @@ lib/libxml/xpathInternals.in.h \ lib/libxml/xpointer.c \ lib/libxml/xpointer.in.h \ -lib/linebreak.c.diff \ lib/memory-ostream.oo.c \ lib/memory-ostream.oo.h \ lib/moo.h \ @@ -226,8 +222,8 @@ lib/ostream.oo.c \ lib/ostream.oo.h \ lib/progname.h.diff \ -lib/propername.c \ -lib/propername.h \ +lib/regexec.c.diff \ +lib/regex_internal.h.diff \ lib/styled-ostream.oo.c \ lib/styled-ostream.oo.h \ lib/term-ostream.oo.c \ @@ -238,7 +234,7 @@ lib/terminfo.h \ lib/tparm.c \ lib/tputs.c \ -lib/vasprintf.c \ +lib/unistd.in.h.diff \ lib/xalloc.h \ lib/xerror.c \ lib/xerror.h \ @@ -250,7 +246,7 @@ m4/backupfile.m4 \ m4/ChangeLog.0 \ m4/ChangeLog.1 \ -m4/exitfail.m4.diff \ +m4/curses.m4 \ m4/gcj.m4 \ m4/hard-locale.m4.diff \ m4/libcroco.m4 \ @@ -264,17 +260,14 @@ m4/terminfo.m4 \ m4/term-ostream.m4 \ m4/unionwait.m4 \ -m4/vasprintf.m4 \ modules/backupfile \ modules/basename \ modules/closeout \ modules/error-progname \ -modules/exitfail.diff \ modules/fd-ostream \ modules/file-ostream \ modules/fnmatch.diff \ modules/gcj \ -modules/gen-lbrkprop \ modules/gettext-runtime-misc \ modules/gettext-tools-misc \ modules/hash \ @@ -289,9 +282,9 @@ modules/moo \ modules/moo-tests \ modules/ostream \ -modules/propername \ modules/quotearg.diff \ modules/quote.diff \ +modules/regex.diff \ modules/styled-ostream \ modules/termcap \ modules/termcap-h \ @@ -300,7 +293,6 @@ modules/term-ostream \ modules/term-ostream-tests \ modules/term-styled-ostream \ -modules/vasprintf.diff \ modules/wait-process.diff \ modules/xalloc \ modules/xalloc-die \ diff -Nru gettext-0.17/gnulib-local/Makefile.in gettext-0.18.1.1/gnulib-local/Makefile.in --- gettext-0.17/gnulib-local/Makefile.in 2007-11-06 23:56:13.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/Makefile.in 2010-06-06 20:12:52.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -34,16 +36,25 @@ subdir = gnulib-local DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/init-package-version.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -62,8 +73,6 @@ ECHO_T = @ECHO_T@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -F77 = @F77@ -FFLAGS = @FFLAGS@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ INSTALL = @INSTALL@ @@ -82,6 +91,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ @@ -135,6 +145,7 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @@ -143,7 +154,6 @@ EXTRA_DIST = \ ChangeLog \ build-aux/moopp \ -lib/3level.h \ lib/addext.c \ lib/alloca.in.h \ lib/argmatch.h.diff \ @@ -155,7 +165,6 @@ lib/ChangeLog.1 \ lib/closeout.c \ lib/closeout.h \ -lib/Combining.txt \ lib/error.h.diff \ lib/error-progname.c \ lib/error-progname.h \ @@ -166,7 +175,6 @@ lib/file-ostream.oo.h \ lib/fnmatch.c.diff \ lib/fnmatch_loop.c.diff \ -lib/gen-lbrkprop.c \ lib/getopt.in.h.diff \ lib/gettext.h \ lib/gl_array_list.h.diff \ @@ -340,7 +348,6 @@ lib/libxml/xpathInternals.in.h \ lib/libxml/xpointer.c \ lib/libxml/xpointer.in.h \ -lib/linebreak.c.diff \ lib/memory-ostream.oo.c \ lib/memory-ostream.oo.h \ lib/moo.h \ @@ -348,8 +355,8 @@ lib/ostream.oo.c \ lib/ostream.oo.h \ lib/progname.h.diff \ -lib/propername.c \ -lib/propername.h \ +lib/regexec.c.diff \ +lib/regex_internal.h.diff \ lib/styled-ostream.oo.c \ lib/styled-ostream.oo.h \ lib/term-ostream.oo.c \ @@ -360,7 +367,7 @@ lib/terminfo.h \ lib/tparm.c \ lib/tputs.c \ -lib/vasprintf.c \ +lib/unistd.in.h.diff \ lib/xalloc.h \ lib/xerror.c \ lib/xerror.h \ @@ -372,7 +379,7 @@ m4/backupfile.m4 \ m4/ChangeLog.0 \ m4/ChangeLog.1 \ -m4/exitfail.m4.diff \ +m4/curses.m4 \ m4/gcj.m4 \ m4/hard-locale.m4.diff \ m4/libcroco.m4 \ @@ -386,17 +393,14 @@ m4/terminfo.m4 \ m4/term-ostream.m4 \ m4/unionwait.m4 \ -m4/vasprintf.m4 \ modules/backupfile \ modules/basename \ modules/closeout \ modules/error-progname \ -modules/exitfail.diff \ modules/fd-ostream \ modules/file-ostream \ modules/fnmatch.diff \ modules/gcj \ -modules/gen-lbrkprop \ modules/gettext-runtime-misc \ modules/gettext-tools-misc \ modules/hash \ @@ -411,9 +415,9 @@ modules/moo \ modules/moo-tests \ modules/ostream \ -modules/propername \ modules/quotearg.diff \ modules/quote.diff \ +modules/regex.diff \ modules/styled-ostream \ modules/termcap \ modules/termcap-h \ @@ -422,7 +426,6 @@ modules/term-ostream \ modules/term-ostream-tests \ modules/term-styled-ostream \ -modules/vasprintf.diff \ modules/wait-process.diff \ modules/xalloc \ modules/xalloc-die \ @@ -464,14 +467,14 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gnulib-local/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu gnulib-local/Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gnulib-local/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu gnulib-local/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -489,6 +492,7 @@ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): tags: TAGS TAGS: @@ -512,13 +516,17 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @@ -546,6 +554,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -564,6 +573,8 @@ html: html-am +html-am: + info: info-am info-am: @@ -572,18 +583,28 @@ install-dvi: install-dvi-am +install-dvi-am: + install-exec-am: install-html: install-html-am +install-html-am: + install-info: install-info-am +install-info-am: + install-man: install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -616,6 +637,7 @@ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/gnulib-local/modules/closeout gettext-0.18.1.1/gnulib-local/modules/closeout --- gettext-0.17/gnulib-local/modules/closeout 2006-08-02 14:24:33.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/closeout 2010-06-06 12:49:58.000000000 +0000 @@ -8,7 +8,7 @@ Depends-on: error fwriteerror -exit +stdlib gettext-h configure.ac: diff -Nru gettext-0.17/gnulib-local/modules/exitfail.diff gettext-0.18.1.1/gnulib-local/modules/exitfail.diff --- gettext-0.17/gnulib-local/modules/exitfail.diff 2006-10-16 12:15:04.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/exitfail.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -*** exitfail.bak 2006-10-12 19:44:17.000000000 +0200 ---- exitfail 2006-10-12 21:55:12.000000000 +0200 -*************** -*** 13,18 **** - gl_EXITFAIL - - Makefile.am: - - Include: - "exitfail.h" ---- 13,19 ---- - gl_EXITFAIL - - Makefile.am: -+ lib_SOURCES += exitfail.h exitfail.c - - Include: - "exitfail.h" diff -Nru gettext-0.17/gnulib-local/modules/fd-ostream gettext-0.18.1.1/gnulib-local/modules/fd-ostream --- gettext-0.17/gnulib-local/modules/fd-ostream 2006-12-22 12:08:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/fd-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -8,7 +8,7 @@ Depends-on: ostream error -exit +stdlib full-write gettext xalloc diff -Nru gettext-0.17/gnulib-local/modules/gen-lbrkprop gettext-0.18.1.1/gnulib-local/modules/gen-lbrkprop --- gettext-0.17/gnulib-local/modules/gen-lbrkprop 2006-08-02 14:24:33.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/gen-lbrkprop 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -Description: -Generates lbrkprop.h. - -Files: -lib/gen-lbrkprop.c -lib/3level.h -lib/Combining.txt - -Depends-on: - -configure.ac: - -Makefile.am: - -Include: - -License: -GPLed build tool - -Maintainer: -Bruno Haible - diff -Nru gettext-0.17/gnulib-local/modules/gettext-tools-misc gettext-0.18.1.1/gnulib-local/modules/gettext-tools-misc --- gettext-0.17/gnulib-local/modules/gettext-tools-misc 2007-10-27 12:38:48.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/gettext-tools-misc 2010-06-06 12:49:58.000000000 +0000 @@ -1,11 +1,8 @@ Description: Files: -m4/hard-locale.m4 -m4/mbrtowc.m4 -m4/memchr.m4 -m4/strdup.m4 m4/locale-fr.m4 +m4/locale-ja.m4 Depends-on: @@ -16,18 +13,22 @@ # Specify that libgettextlib should installed in $(libdir). lib_LTLIBRARIES = libgettextlib.la +# Need $(LTLIBUNISTRING) because ulc_width_linebreaks, uc_width, etc. may be +# taken from libunistring, when the configure option --with-libunistring-prefix +# was given. # Need @LTLIBINTL@ because many source files use gettext(). # Need @LTLIBICONV@ because linebreak.c and striconv.c use iconv(). # Need @LIB_ACL@ because copy-file.c uses acl.h. # Need @LTLIBC@ for -no-undefined to work on many platforms. lib_LDFLAGS += \ -release @VERSION@ \ - @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@ + $(LTLIBUNISTRING) @LTLIBINTL@ @LTLIBICONV@ @LIB_ACL@ @LTLIBC@ @LTNOUNDEF@ # Tell the mingw or Cygwin linker which symbols to export. if WOE32DLL lib_SOURCES += ../woe32dll/gettextlib-exports.c lib_LDFLAGS += -Wl,--export-all-symbols +AM_CPPFLAGS += @GETTEXTLIB_EXPORTS_FLAGS@ endif # No need to install libgettextlib.a, except on AIX. diff -Nru gettext-0.17/gnulib-local/modules/html-ostream gettext-0.18.1.1/gnulib-local/modules/html-ostream --- gettext-0.17/gnulib-local/modules/html-ostream 2006-12-22 12:08:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/html-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -8,8 +8,8 @@ Depends-on: ostream array-list -list -utf8-ucs4 +xlist +unistr/u8-mbtouc xalloc configure.ac: diff -Nru gettext-0.17/gnulib-local/modules/html-styled-ostream gettext-0.18.1.1/gnulib-local/modules/html-styled-ostream --- gettext-0.17/gnulib-local/modules/html-styled-ostream 2006-12-23 16:01:23.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/html-styled-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -12,7 +12,7 @@ binary-io error safe-read -exit +stdlib xalloc gettext-h diff -Nru gettext-0.17/gnulib-local/modules/iconv-ostream gettext-0.18.1.1/gnulib-local/modules/iconv-ostream --- gettext-0.17/gnulib-local/modules/iconv-ostream 2006-12-22 12:08:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/iconv-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ ostream c-strcase error -exit +stdlib gettext iconv xalloc diff -Nru gettext-0.17/gnulib-local/modules/libglib gettext-0.18.1.1/gnulib-local/modules/libglib --- gettext-0.17/gnulib-local/modules/libglib 2007-10-04 22:44:09.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/libglib 2010-06-06 12:49:58.000000000 +0000 @@ -19,6 +19,7 @@ m4/libglib.m4 Depends-on: +strerror vasprintf xalloc xvasprintf @@ -58,42 +59,42 @@ mv -f $@-t $@ glib/ghash.h: glib/ghash.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/ghash.in.h; \ } > $@-t mv -f $@-t $@ glib/glist.h: glib/glist.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/glist.in.h; \ } > $@-t mv -f $@-t $@ glib/gprimes.h: glib/gprimes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gprimes.in.h; \ } > $@-t mv -f $@-t $@ glib/gstrfuncs.h: glib/gstrfuncs.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstrfuncs.in.h; \ } > $@-t mv -f $@-t $@ glib/gstring.h: glib/gstring.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gstring.in.h; \ } > $@-t mv -f $@-t $@ glib/gtypes.h: glib/gtypes.in.h - test -d glib || mkdir glib + test -d glib || $(mkdir_p) glib { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/glib/gtypes.in.h; \ } > $@-t diff -Nru gettext-0.17/gnulib-local/modules/libxml gettext-0.18.1.1/gnulib-local/modules/libxml --- gettext-0.17/gnulib-local/modules/libxml 2007-10-26 00:48:50.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/libxml 2010-06-06 12:49:58.000000000 +0000 @@ -164,329 +164,329 @@ BUILT_SOURCES += $(LIBXML_H) libxml/DOCBparser.h: libxml/DOCBparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/DOCBparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLparser.h: libxml/HTMLparser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLparser.in.h; \ } > $@-t mv -f $@-t $@ libxml/HTMLtree.h: libxml/HTMLtree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/HTMLtree.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX.h: libxml/SAX.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX.in.h; \ } > $@-t mv -f $@-t $@ libxml/SAX2.h: libxml/SAX2.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/SAX2.in.h; \ } > $@-t mv -f $@-t $@ libxml/c14n.h: libxml/c14n.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/c14n.in.h; \ } > $@-t mv -f $@-t $@ libxml/catalog.h: libxml/catalog.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/catalog.in.h; \ } > $@-t mv -f $@-t $@ libxml/chvalid.h: libxml/chvalid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/chvalid.in.h; \ } > $@-t mv -f $@-t $@ libxml/debugXML.h: libxml/debugXML.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/debugXML.in.h; \ } > $@-t mv -f $@-t $@ libxml/dict.h: libxml/dict.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/dict.in.h; \ } > $@-t mv -f $@-t $@ libxml/encoding.h: libxml/encoding.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/encoding.in.h; \ } > $@-t mv -f $@-t $@ libxml/entities.h: libxml/entities.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/entities.in.h; \ } > $@-t mv -f $@-t $@ libxml/globals.h: libxml/globals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/globals.in.h; \ } > $@-t mv -f $@-t $@ libxml/hash.h: libxml/hash.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/hash.in.h; \ } > $@-t mv -f $@-t $@ libxml/list.h: libxml/list.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/list.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanoftp.h: libxml/nanoftp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanoftp.in.h; \ } > $@-t mv -f $@-t $@ libxml/nanohttp.h: libxml/nanohttp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/nanohttp.in.h; \ } > $@-t mv -f $@-t $@ libxml/parser.h: libxml/parser.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parser.in.h; \ } > $@-t mv -f $@-t $@ libxml/parserInternals.h: libxml/parserInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/parserInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/pattern.h: libxml/pattern.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/pattern.in.h; \ } > $@-t mv -f $@-t $@ libxml/relaxng.h: libxml/relaxng.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/relaxng.in.h; \ } > $@-t mv -f $@-t $@ libxml/schemasInternals.h: libxml/schemasInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schemasInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/schematron.h: libxml/schematron.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/schematron.in.h; \ } > $@-t mv -f $@-t $@ libxml/threads.h: libxml/threads.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/threads.in.h; \ } > $@-t mv -f $@-t $@ libxml/tree.h: libxml/tree.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/tree.in.h; \ } > $@-t mv -f $@-t $@ libxml/uri.h: libxml/uri.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/uri.in.h; \ } > $@-t mv -f $@-t $@ libxml/valid.h: libxml/valid.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/valid.in.h; \ } > $@-t mv -f $@-t $@ libxml/xinclude.h: libxml/xinclude.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xinclude.in.h; \ } > $@-t mv -f $@-t $@ libxml/xlink.h: libxml/xlink.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xlink.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlIO.h: libxml/xmlIO.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlIO.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlautomata.h: libxml/xmlautomata.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlautomata.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlerror.h: libxml/xmlerror.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlerror.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlexports.h: libxml/xmlexports.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlexports.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmemory.h: libxml/xmlmemory.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmemory.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlmodule.h: libxml/xmlmodule.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlmodule.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlreader.h: libxml/xmlreader.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlreader.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlregexp.h: libxml/xmlregexp.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlregexp.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlsave.h: libxml/xmlsave.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlsave.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemas.h: libxml/xmlschemas.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemas.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlschemastypes.h: libxml/xmlschemastypes.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlschemastypes.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlstring.h: libxml/xmlstring.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlstring.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlunicode.h: libxml/xmlunicode.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlunicode.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlversion.h: libxml/xmlversion.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlversion.in.h; \ } > $@-t mv -f $@-t $@ libxml/xmlwriter.h: libxml/xmlwriter.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xmlwriter.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpath.h: libxml/xpath.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpath.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpathInternals.h: libxml/xpathInternals.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpathInternals.in.h; \ } > $@-t mv -f $@-t $@ libxml/xpointer.h: libxml/xpointer.in.h - test -d libxml || mkdir libxml + test -d libxml || $(mkdir_p) libxml { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/libxml/xpointer.in.h; \ } > $@-t diff -Nru gettext-0.17/gnulib-local/modules/memory-ostream gettext-0.18.1.1/gnulib-local/modules/memory-ostream --- gettext-0.17/gnulib-local/modules/memory-ostream 2006-12-22 12:08:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/memory-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -8,7 +8,7 @@ Depends-on: ostream error -exit +stdlib gettext xalloc xsize diff -Nru gettext-0.17/gnulib-local/modules/propername gettext-0.18.1.1/gnulib-local/modules/propername --- gettext-0.17/gnulib-local/modules/propername 2007-03-04 00:32:41.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/propername 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -Description: -Localization of proper names. - -Files: -lib/propername.h -lib/propername.c - -Depends-on: -iconv -localcharset -c-strcase -xstriconv -c-strstr -mbsstr -xalloc -gettext-h - -configure.ac: - -Makefile.am: -lib_SOURCES += propername.h propername.c - -Include: -"propername.h" - -License: -GPL - -Maintainer: -Bruno Haible - diff -Nru gettext-0.17/gnulib-local/modules/regex.diff gettext-0.18.1.1/gnulib-local/modules/regex.diff --- gettext-0.17/gnulib-local/modules/regex.diff 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/regex.diff 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,19 @@ +*** modules/regex.orig Mon May 24 12:36:55 2010 +--- modules/regex Mon May 24 12:36:42 2010 +*************** +*** 17,23 **** + extensions + gettext-h + localcharset +! malloc + memcmp + memmove + mbrtowc +--- 17,23 ---- + extensions + gettext-h + localcharset +! malloc-posix + memcmp + memmove + mbrtowc diff -Nru gettext-0.17/gnulib-local/modules/termcap gettext-0.18.1.1/gnulib-local/modules/termcap --- gettext-0.17/gnulib-local/modules/termcap 2006-12-23 15:56:55.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/termcap 2010-06-06 12:49:58.000000000 +0000 @@ -3,6 +3,7 @@ Files: m4/termcap.m4 +m4/curses.m4 lib/tparm.c lib/tputs.c diff -Nru gettext-0.17/gnulib-local/modules/terminfo gettext-0.18.1.1/gnulib-local/modules/terminfo --- gettext-0.17/gnulib-local/modules/terminfo 2006-12-23 15:56:55.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/terminfo 2010-06-06 12:49:58.000000000 +0000 @@ -3,6 +3,7 @@ Files: m4/terminfo.m4 +m4/curses.m4 lib/tparm.c lib/tputs.c diff -Nru gettext-0.17/gnulib-local/modules/term-ostream gettext-0.18.1.1/gnulib-local/modules/term-ostream --- gettext-0.17/gnulib-local/modules/term-ostream 2006-12-22 12:08:12.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/term-ostream 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ Depends-on: ostream error -exit +stdlib fatal-signal sigprocmask full-write diff -Nru gettext-0.17/gnulib-local/modules/vasprintf.diff gettext-0.18.1.1/gnulib-local/modules/vasprintf.diff --- gettext-0.17/gnulib-local/modules/vasprintf.diff 2007-09-24 22:55:05.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/vasprintf.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,28 +0,0 @@ -*** vasprintf.orig 2007-09-19 00:04:41.000000000 +0200 ---- vasprintf 2007-09-25 00:54:11.000000000 +0200 -*************** -*** 3,14 **** - - Files: - lib/vasprintf.c -- lib/asprintf.c - m4/vasprintf.m4 - - Depends-on: - extensions -! vasnprintf - stdio - - configure.ac: ---- 3,13 ---- - - Files: - lib/vasprintf.c - m4/vasprintf.m4 - - Depends-on: - extensions -! stdarg - stdio - - configure.ac: diff -Nru gettext-0.17/gnulib-local/modules/wait-process.diff gettext-0.18.1.1/gnulib-local/modules/wait-process.diff --- gettext-0.17/gnulib-local/modules/wait-process.diff 2006-08-02 14:24:33.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/wait-process.diff 2010-06-06 12:49:58.000000000 +0000 @@ -6,7 +6,7 @@ lib/wait-process.c m4/wait-process.m4 m4/sig_atomic_t.m4 -+ m4/unionwait.m4 ++ m4/unionwait.m4 Depends-on: fatal-signal diff -Nru gettext-0.17/gnulib-local/modules/xalloc gettext-0.18.1.1/gnulib-local/modules/xalloc --- gettext-0.17/gnulib-local/modules/xalloc 2006-11-13 12:40:00.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/modules/xalloc 2010-06-06 12:49:58.000000000 +0000 @@ -9,7 +9,7 @@ Depends-on: error gettext-h -exit +stdlib configure.ac: diff -Nru gettext-0.17/gnulib-local/tests/test-moo-assign.c gettext-0.18.1.1/gnulib-local/tests/test-moo-assign.c --- gettext-0.17/gnulib-local/tests/test-moo-assign.c 2006-12-04 13:35:38.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/tests/test-moo-assign.c 2010-06-06 12:49:58.000000000 +0000 @@ -12,21 +12,21 @@ root_t a1 = a; root_t a2 = b; root_t a3 = c; - sub1_t b1 = a; /* ERROR */ + sub1_t b1 = a; /* ERROR */ sub1_t b2 = b; sub1_t b3 = c; - sub2_t c1 = a; /* ERROR */ - sub2_t c2 = b; /* ERROR */ + sub2_t c1 = a; /* ERROR */ + sub2_t c2 = b; /* ERROR */ sub2_t c3 = c; /* Test assignments. */ a = a1; a = b1; a = c1; - b = a2; /* ERROR */ + b = a2; /* ERROR */ b = b2; b = c2; - c = a3; /* ERROR */ - c = b3; /* ERROR */ + c = a3; /* ERROR */ + c = b3; /* ERROR */ c = c3; } diff -Nru gettext-0.17/gnulib-local/tests/test-term-ostream.c gettext-0.18.1.1/gnulib-local/tests/test-term-ostream.c --- gettext-0.17/gnulib-local/tests/test-term-ostream.c 2006-12-04 13:31:46.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/tests/test-term-ostream.c 2010-06-06 12:49:58.000000000 +0000 @@ -48,23 +48,23 @@ ostream_write_str (stream, name); ostream_write_mem (stream, " ", 7 - strlen (name)); for (col = 0; col <= 8; col++) - { - term_color_t row_color = colors[row].c; - term_color_t col_color = colors[col].c; - - ostream_write_str (stream, "|"); - term_ostream_set_color (stream, row_color); - term_ostream_set_bgcolor (stream, col_color); - if (!(term_ostream_get_color (stream) == row_color - && term_ostream_get_bgcolor (stream) == col_color)) - abort (); - ostream_write_str (stream, " Words "); - term_ostream_set_color (stream, COLOR_DEFAULT); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - if (!(term_ostream_get_color (stream) == COLOR_DEFAULT - && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) - abort (); - } + { + term_color_t row_color = colors[row].c; + term_color_t col_color = colors[col].c; + + ostream_write_str (stream, "|"); + term_ostream_set_color (stream, row_color); + term_ostream_set_bgcolor (stream, col_color); + if (!(term_ostream_get_color (stream) == row_color + && term_ostream_get_bgcolor (stream) == col_color)) + abort (); + ostream_write_str (stream, " Words "); + term_ostream_set_color (stream, COLOR_DEFAULT); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + if (!(term_ostream_get_color (stream) == COLOR_DEFAULT + && term_ostream_get_bgcolor (stream) == COLOR_DEFAULT)) + abort (); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); @@ -74,90 +74,90 @@ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int r = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int g = b + (int) (row / 17.0f * (r - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int g = b + (int) (row / 17.0f * (r - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 1 to 2. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int g = 255; - int b = (int) (255.0f / 64.0f * col + 0.5f); - int r = b + (int) (row / 17.0f * (g - b) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int b = (int) (255.0f / 64.0f * col + 0.5f); + int r = b + (int) (row / 17.0f * (g - b) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 2 to 3. */ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int g = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int b = r + (int) (row / 17.0f * (g - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int g = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int b = r + (int) (row / 17.0f * (g - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 3 to 4. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int b = 255; - int r = (int) (255.0f / 64.0f * col + 0.5f); - int g = r + (int) (row / 17.0f * (b - r) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int r = (int) (255.0f / 64.0f * col + 0.5f); + int g = r + (int) (row / 17.0f * (b - r) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 4 to 5. */ for (row = 0; row <= 17; row++) { for (col = 0; col <= 64; col++) - { - int b = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int r = g + (int) (row / 17.0f * (b - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int b = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int r = g + (int) (row / 17.0f * (b - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } /* Hue from 5 to 6. */ for (row = 17; row >= 0; row--) { for (col = 0; col <= 64; col++) - { - int r = 255; - int g = (int) (255.0f / 64.0f * col + 0.5f); - int b = g + (int) (row / 17.0f * (r - g) + 0.5f); - term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); - term_ostream_set_bgcolor (stream, c); - ostream_write_str (stream, " "); - term_ostream_set_bgcolor (stream, COLOR_DEFAULT); - } + { + int r = 255; + int g = (int) (255.0f / 64.0f * col + 0.5f); + int b = g + (int) (row / 17.0f * (r - g) + 0.5f); + term_color_t c = term_ostream_rgb_to_color (stream, r, g, b); + term_ostream_set_bgcolor (stream, c); + ostream_write_str (stream, " "); + term_ostream_set_bgcolor (stream, COLOR_DEFAULT); + } ostream_write_str (stream, "\n"); } ostream_write_str (stream, "\n"); diff -Nru gettext-0.17/gnulib-local/tests/test-term-ostream-xterm gettext-0.18.1.1/gnulib-local/tests/test-term-ostream-xterm --- gettext-0.17/gnulib-local/tests/test-term-ostream-xterm 2007-10-27 14:52:46.000000000 +0000 +++ gettext-0.18.1.1/gnulib-local/tests/test-term-ostream-xterm 2010-06-06 12:49:58.000000000 +0000 @@ -3,10 +3,11 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -tmpfiles="$tmpfiles out" +tmpfiles="$tmpfiles out1 out" # The redirection of stderr into a pipe avoids the output of padding bytes # (unnecessary NUL bytes after escape sequences) on some systems. -(TERM=xterm ./test-term-ostream > out) 2>&1 | cat 1>&2 +(TERM=xterm ./test-term-ostream > out1) 2>&1 | cat 1>&2 +LC_ALL=C tr -d '\r' < out1 > out # There are several variants of the "xterm" terminal description floating # around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm" diff -Nru gettext-0.17/HACKING gettext-0.18.1.1/HACKING --- gettext-0.17/HACKING 2007-06-30 22:14:30.000000000 +0000 +++ gettext-0.18.1.1/HACKING 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ All you need to know when hacking (modifying) GNU gettext or when building -it off the CVS. +it off the git repository. Requirements @@ -56,14 +56,20 @@ + Homepage: http://www.gnu.org/software/gnulib/ + * GNU tar (for creating distributable tarballs) + + Homepage: + http://www.gnu.org/software/tar/ + And, of course, the packages listed in the DEPENDENCIES file. -Building off the CVS -==================== +Building off the git repository +=============================== -Access to the CVS is described at http://savannah.gnu.org/cvs/?group=gettext . +Access to the git repository is described at + http://savannah.gnu.org/git/?group=gettext -After fetching the sources from the CVS, peek at the comments in autogen.sh, -then run "./autogen.sh"; then you can proceed with "./configure" as usual. +After fetching the sources from the repository, peek at the comments in +autogen.sh, then run "./autogen.sh"; then you can proceed with "./configure" +as usual. diff -Nru gettext-0.17/INSTALL gettext-0.18.1.1/INSTALL --- gettext-0.17/INSTALL 2007-10-03 12:10:50.000000000 +0000 +++ gettext-0.18.1.1/INSTALL 2010-06-06 12:49:57.000000000 +0000 @@ -83,6 +83,20 @@ one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple '-arch' options to the +compiler but only a single '-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases. You +may have to build one architecture at a time and combine the results +using the 'lipo' tool if you have problems. + Installation Names ================== @@ -198,11 +212,14 @@ is not installed, it is recommended to use the following options in order to use an ANSI C compiler: - ./configure CC="cc -Ae" + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. - On OSF/1 a.k.a. Tru64, some versions of the default C compiler don't grok -its header file. The option -nodtk can be used as a workaround. -If GNU CC is not installed, it is therefore recommended to try + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try ./configure CC="cc" @@ -216,6 +233,11 @@ ./configure CC="xlc -D_ALL_SOURCE" + On Haiku, software installed for all users goes in /boot/common, not +/usr/local. It is recommended to use the following options: + + ./configure --prefix=/boot/common + On BeOS, user installed software goes in /boot/home/config, not /usr/local. It is recommended to use the following options: diff -Nru gettext-0.17/m4/fixautomake.m4 gettext-0.18.1.1/m4/fixautomake.m4 --- gettext-0.17/m4/fixautomake.m4 2006-10-24 20:59:59.000000000 +0000 +++ gettext-0.18.1.1/m4/fixautomake.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,5 +1,5 @@ -# fixautomake.m4 serial 6 (gettext-0.16) -dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. +# fixautomake.m4 serial 8 (gettext-0.18) +dnl Copyright (C) 2002-2003, 2006, 2009 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -8,31 +8,19 @@ dnl From Bruno Haible -dnl Fix unesthetic build commands generated by automake. -AC_DEFUN([FIX_MAKEFILE_COMPILE], [ - sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file -]) - -dnl Fix an automake-1.5-1.7.2 bug: the distrib rule is omitted. +dnl Fix an automake-1.5-1.11 bug: the distrib rule is omitted. AC_DEFUN([FIX_MAKEFILE_DISTRIB], [ sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp mv $ac_file.tmp $ac_file ]) -dnl Fix an automake-1.9-1.10 bug: the distrib rule is not extensible. +dnl Fix an automake-1.9-1.11 bug: the distrib rule is not extensible. dnl Insert a invocation of the distdir1 target inside the distdir commands, dnl after $(distdir) has been erased and re-created. AC_DEFUN([FIX_MAKEFILE_TOPDIR_DISTRIB], [ - sed_script='/mkdir \$(distdir)$/{a\ + sed_script='/mkdir "*\$(distdir)"*$/{a\ \ $(MAKE) distdir1 }' sed -e "$sed_script" < $ac_file > $ac_file.tmp mv $ac_file.tmp $ac_file ]) - -dnl Fix an automake-1.5-1.7.2 bug: all info files are erased by "make". -AC_DEFUN([FIX_MAKEFILE_INFO], [ - sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp - mv $ac_file.tmp $ac_file -]) diff -Nru gettext-0.17/m4/init-package-version.m4 gettext-0.18.1.1/m4/init-package-version.m4 --- gettext-0.17/m4/init-package-version.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/m4/init-package-version.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,99 @@ +# init-package-version.m4 serial 2 (gettext-0.18) +dnl Copyright (C) 1992-2009 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +# Make it possible to pass version numbers extracted from a file in +# $(srcdir) to autoconf. +# +# Autoconf insists on passing the package name and version number to +# every generated .h file and every Makefile. This was a reasonable +# design at times when a version number was changed only once a month. +# Nowadays, people often assign a new version number once a week, or +# even change it each time a 'git' commit is made. Regenerating all +# the files that depend on configure.ac (aclocal.m4, configure, +# config.status, config.h, all Makefiles) may take 15 minutes. These +# delays can severely hamper development. +# +# An alternative is to store the version number in a file in $(srcdir) +# that is separate from configure.ac. It can be a data file, a shell +# script, a .m4 file, or other. The essential point is that the maintainer +# is responsible for creating Makefile dependencies to this version file +# for every file that needs to be rebuilt when the version changes. This +# typically includes +# - distributable documentation files that carry the version number, +# but does not include +# - aclocal.m4, configure, config.status, config.h, all Makefiles, +# - executables. +# +# autoconf and automake make it hard to follow this approach: +# +# - If AC_INIT is used with arguments, there is a chicken-and-egg problem: +# The arguments need to be read from a file in $(srcdir). The location +# of $(srcdir) is only determined by AC_CONFIG_SRCDIR. AC_CONFIG_SRCDIR +# can only appear after AC_INIT (otherwise aclocal gives an error: +# "error: m4_defn: undefined macro: _m4_divert_diversion"). +# Furthermore, the arguments passed to AC_INIT must be literals; for +# example, the assignment to PACKAGE_VERSION looks like this: +# [PACKAGE_VERSION=']AC_PACKAGE_VERSION['] +# +# - If AC_INIT is used without arguments: +# Automake provides its own variables, PACKAGE and VERSION, and uses them +# instead of PACKAGE_NAME and PACKAGE_VERSION that come from Autoconf. +# - If AM_INIT_AUTOMAKE is used with two arguments, automake options +# like 'silent-rules' cannot be specified. +# - If AM_INIT_AUTOMAKE is used in its one-argument form or without +# arguments at all, it triggers an error +# "error: AC_INIT should be called with package and version arguments". +# - If AM_INIT_AUTOMAKE is used in its one-argument form or without +# arguments at all, and _AC_INIT_PACKAGE is used before it, with +# the package and version number from the file as arguments, we get +# a warning: "warning: AC_INIT: not a literal: $VERSION_NUMBER". +# The arguments passed to _AC_INIT_PACKAGE must be literals. +# +# With the macro defined in this file, the approach can be coded like this: +# +# AC_INIT +# AC_CONFIG_SRCDIR(WITNESS) +# . $srcdir/../version.sh +# gl_INIT_PACKAGE(PACKAGE, $VERSION_NUMBER) +# AM_INIT_AUTOMAKE([OPTIONS]) + +# gl_INIT_PACKAGE(PACKAGE-NAME, VERSION) +# -------------------------------------- +# followed by an AM_INIT_AUTOMAKE invocation, +# is like calling AM_INIT_AUTOMAKE(PACKAGE-NAME, VERSION) +# except that it can use computed non-literal arguments. +AC_DEFUN([gl_INIT_PACKAGE], +[ + AC_BEFORE([$0], [AM_INIT_AUTOMAKE]) + dnl Define AC_PACKAGE_NAME, because macros such as gnulib/m4/acl.m4 need it. + m4_ifndef([AC_PACKAGE_NAME], [m4_define([AC_PACKAGE_NAME], [$1])]) + dnl Redefine AM_INIT_AUTOMAKE. + m4_define([gl_AM_INIT_AUTOMAKE], + m4_bpatsubst(m4_dquote( + m4_bpatsubst(m4_dquote( + m4_bpatsubst(m4_dquote( + m4_defn([AM_INIT_AUTOMAKE])), + [AC_PACKAGE_NAME], [gl_INIT_DUMMY])), + [AC_PACKAGE_TARNAME], [gl_INIT_DUMMY])), + [AC_PACKAGE_VERSION], [gl_INIT_DUMMY]) + [AC_SUBST([PACKAGE], [$1]) + AC_SUBST([VERSION], [$2]) + ]) + m4_define([AM_INIT_AUTOMAKE], + m4_defn([gl_RPL_INIT_AUTOMAKE])) +]) +m4_define([gl_INIT_DUMMY], []) +AC_DEFUN([gl_RPL_INIT_AUTOMAKE], [ + m4_ifval([$2], + [m4_fatal([After gl_INIT_PACKAGE, the two-argument form of AM_INIT_AUTOMAKE cannot be used.])]) + gl_AM_INIT_AUTOMAKE([$1 no-define]) + m4_if(m4_index([ $1 ], [ no-define ]), [-1], + [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]) + ]) +]) diff -Nru gettext-0.17/m4/libtool.m4 gettext-0.18.1.1/m4/libtool.m4 --- gettext-0.17/m4/libtool.m4 2007-10-27 00:46:10.000000000 +0000 +++ gettext-0.18.1.1/m4/libtool.m4 2010-06-06 12:49:58.000000000 +0000 @@ -1,107 +1,185 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 -## Free Software Foundation, Inc. -## Originally by Gordon Matzigkeit , 1996 -## -## This file is free software; the Free Software Foundation gives -## unlimited permission to copy and/or distribute it, with or without -## modifications, as long as this notice is preserved. - -# serial 51 AC_PROG_LIBTOOL - - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) -# ----------------------------------------------------------- -# If this macro is not defined by Autoconf, define it here. -m4_ifdef([AC_PROVIDE_IFELSE], - [], - [m4_define([AC_PROVIDE_IFELSE], - [m4_ifdef([AC_PROVIDE_$1], - [$2], [$3])])]) +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) +# serial 56 LT_INIT -# AC_PROG_LIBTOOL -# --------------- -AC_DEFUN([AC_PROG_LIBTOOL], -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. - AC_PROVIDE_IFELSE([AC_PROG_CXX], - [AC_LIBTOOL_CXX], - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX - ])]) -dnl And a similar setup for Fortran 77 support - AC_PROVIDE_IFELSE([AC_PROG_F77], - [AC_LIBTOOL_F77], - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 -])]) - -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. - AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], - [AC_LIBTOOL_GCJ], - [ifdef([AC_PROG_GCJ], - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([A][M_PROG_GCJ], - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) - ifdef([LT_AC_PROG_GCJ], - [define([LT_AC_PROG_GCJ], - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) -])])# AC_PROG_LIBTOOL +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) -# _AC_PROG_LIBTOOL -# ---------------- -AC_DEFUN([_AC_PROG_LIBTOOL], -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" +LIBTOOL_DEPS="$ltmain" # Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl -# Prevent multiple expansion -define([AC_PROG_LIBTOOL], []) -])# _AC_PROG_LIBTOOL +_LT_SETUP +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) -# AC_LIBTOOL_SETUP -# ---------------- -AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.50)dnl -AC_REQUIRE([AC_ENABLE_SHARED])dnl -AC_REQUIRE([AC_ENABLE_STATIC])dnl -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_LD])dnl -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl -AC_REQUIRE([AC_PROG_NM])dnl - +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl AC_REQUIRE([AC_PROG_LN_S])dnl -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -AC_REQUIRE([AC_OBJEXT])dnl -AC_REQUIRE([AC_EXEEXT])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi -AC_LIBTOOL_SYS_MAX_CMD_LEN -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -AC_LIBTOOL_OBJDIR +_LT_CHECK_OBJDIR -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -_LT_AC_PROG_ECHO_BACKSLASH +m4_require([_LT_TAG_COMPILER])dnl +_LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) @@ -117,6422 +195,6870 @@ # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] +double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' -# Constants: -rm="rm -f" - # Global variables: -default_ofile=libtool +ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" -AC_CHECK_TOOL(AR, ar, false) -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) +with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - AC_PATH_MAGIC + _LT_PATH_MAGIC fi ;; esac -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -enable_win32_dll=yes, enable_win32_dll=no) - -AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP -AC_ARG_WITH([pic], - [AC_HELP_STRING([--with-pic], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [pic_mode="$withval"], - [pic_mode=default]) -test -z "$pic_mode" && pic_mode=default -# Use C for the default configuration in the libtool script -tagname= -AC_LIBTOOL_LANG_C_CONFIG -_LT_AC_TAGCONFIG -])# AC_LIBTOOL_SETUP +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN -# _LT_AC_SYS_COMPILER -# ------------------- -AC_DEFUN([_LT_AC_SYS_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl +## ------------------------------------- ## +## Accumulate code for creating libtool. ## +## ------------------------------------- ## + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_AC_SYS_COMPILER -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -AC_DEFUN([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +## ------------------------ ## +## FIXME: Eliminate VARNAME ## +## ------------------------ ## + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -AC_DEFUN([_LT_COMPILER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_COMPILER_BOILERPLATE - +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -AC_DEFUN([_LT_LINKER_BOILERPLATE], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$rm conftest* -])# _LT_LINKER_BOILERPLATE +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) -# _LT_AC_SYS_LIBPATH_AIX -# ---------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi],[]) -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -])# _LT_AC_SYS_LIBPATH_AIX +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) -# _LT_AC_SHELL_INIT(ARG) -# ---------------------- -AC_DEFUN([_LT_AC_SHELL_INIT], -[ifdef([AC_DIVERSION_NOTICE], - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -$1 -AC_DIVERT_POP -])# _LT_AC_SHELL_INIT +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) -# _LT_AC_PROG_ECHO_BACKSLASH -# -------------------------- -# Add some code to the start of the generated configure script which -# will find an echo command which doesn't interpret backslashes. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[_LT_AC_SHELL_INIT([ -# Check that we are running under the correct shell. -SHELL=${CONFIG_SHELL-/bin/sh} -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` - ;; -esac +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) -echo=${ECHO-echo} -if test "X[$]1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X[$]1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} -fi -if test "X[$]1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL [$]0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL [$]0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - if test "$prev" != 'sed 50q "[$]0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" -fi +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS -AC_SUBST(ECHO) -])])# _LT_AC_PROG_ECHO_BACKSLASH +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ -# _LT_AC_LOCK -# ----------- -AC_DEFUN([_LT_AC_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AC_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; - *ELF-64*) - HPUX_IA64_MODE="64" + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) LD="${LD-ld} -64" ;; - esac + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac - fi - rm -rf conftest* - ;; +done -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\[$]0 --fallback-echo"')dnl " + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; - ]) esac -need_locks="$enable_libtool_lock" +_LT_OUTPUT_LIBTOOL_INIT +]) -])# _LT_AC_LOCK +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +cat >"$CONFIG_LT" <<_LTEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate a libtool stub with the current configuration. + +lt_cl_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AS_SHELL_SANITIZE +_AS_PREPARE -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED]) -AC_CACHE_CHECK([$1], [$2], - [$2=no - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $rm conftest* -]) +exec AS_MESSAGE_FD>&1 +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2008 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." -if test x"[$]$2" = xyes; then - ifelse([$5], , :, [$5]) -else - ifelse([$6], , :, [$6]) -fi -])# AC_LIBTOOL_COMPILER_OPTION +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ------------------------------------------------------------ -# Check whether the given compiler option works -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $rm conftest* - LDFLAGS="$save_LDFLAGS" -]) + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done -if test x"[$]$2" = xyes; then - ifelse([$4], , :, [$4]) -else - ifelse([$5], , :, [$5]) +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null fi -])# AC_LIBTOOL_LINKER_OPTION +_LTEOF +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +if test "$no_create" != yes; then + lt_cl_success=: + test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" + exec AS_MESSAGE_LOG_FD>/dev/null + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false + exec AS_MESSAGE_LOG_FD>>config.log + $lt_cl_success || AS_EXIT(1) +fi +])# LT_OUTPUT -# AC_LIBTOOL_SYS_MAX_CMD_LEN -# -------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], -[# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring="ABCD" - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; +_LT_EOF - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF ;; esac -]) -if test -n $lt_cv_sys_max_cmd_len ; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -])# AC_LIBTOOL_SYS_MAX_CMD_LEN + _LT_PROG_LTMAIN -# _LT_AC_CHECK_DLFCN -# ------------------ -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h)dnl -])# _LT_AC_CHECK_DLFCN + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + _LT_PROG_XSI_SHELLFNS -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# --------------------------------------------------------------------- -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "$cross_compiling" = yes; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) -#if HAVE_DLFCN_H -#include -#endif + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" -#include +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif -#ifdef __cplusplus -extern "C" void exit (int); -#endif +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG - exit (status); -}] -EOF - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_AC_TRY_DLOPEN_SELF +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) -# AC_LIBTOOL_DLOPEN_SELF -# ---------------------- -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl -if test "x$enable_dlopen" != xyes; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - case $host_os in - beos*) - lt_cv_dlopen="load_add_on" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl - mingw* | pw32*) - lt_cv_dlopen="LoadLibrary" - lt_cv_dlopen_libs= - ;; +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - cygwin*) - lt_cv_dlopen="dlopen" - lt_cv_dlopen_libs= - ;; +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ - lt_cv_dlopen="dyld" - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen="shl_load"], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen="dlopen"], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) - ]) - ]) - ]) - ]) - ]) - ;; - esac +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER - if test "x$lt_cv_dlopen" != xno; then - enable_dlopen=yes - else - enable_dlopen=no - fi - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE - save_LDFLAGS="$LDFLAGS" - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - save_LIBS="$LIBS" - LIBS="$lt_cv_dlopen_libs $LIBS" +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" ]) - - if test "x$lt_cv_dlopen_self" = xyes; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_AC_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" ;; esac +]) - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; +# _LT_DARWIN_LINKER_FEATURES +# -------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; esac -fi -])# AC_LIBTOOL_DLOPEN_SELF + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) +# _LT_SYS_MODULE_PATH_AIX +# ----------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_SYS_MODULE_PATH_AIX -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) -# --------------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $rm -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $rm conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out - cd .. - rmdir conftest - $rm conftest* -]) -])# AC_LIBTOOL_PROG_CC_C_O +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_SHELL_INIT -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) -# ----------------------------------------- -# Check to see if we can do hard links to lock some files if needed -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], -[AC_REQUIRE([_LT_AC_LOCK])dnl - -hard_links="nottested" -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $rm conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test "$hard_links" = no; then - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[_LT_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} +case X$lt_ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac -# AC_LIBTOOL_OBJDIR -# ----------------- -AC_DEFUN([AC_LIBTOOL_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs +ECHO=${lt_ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! + : else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -])# AC_LIBTOOL_OBJDIR +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<_LT_EOF +[$]* +_LT_EOF + exit 0 +fi -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) -# ---------------------------------------------- -# Check hardcoding attributes. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_AC_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - # We can hardcode non-existant directories. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then - # Linking always hardcodes the temporary library directory. - _LT_AC_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then - # Fast installation is not supported - enable_fast_install=no -elif test "$shlibpath_overrides_runpath" = yes || - test "$enable_shared" = no; then - # Fast installation is not necessary - enable_fast_install=needless -fi -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" -# AC_LIBTOOL_SYS_LIB_STRIP -# ------------------------ -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], -[striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac -fi -])# AC_LIBTOOL_SYS_LIB_STRIP + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done -# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# ----------------------------- -# PORTME Fill in your ld.so characteristics -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -m4_if($1,[],[ -if test "$GCC" = yes; then - case $host_os in - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; - *) lt_awk_arg="/^libraries:/" ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary. - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path/$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" - else - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi + fi fi - done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' -BEGIN {RS=" "; FS="/|\n";} { - lt_foo=""; - lt_count=0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo="/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -need_lib_prefix=unknown -hardcode_into_libs=no + fi +fi -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi -case $host_os in -aix3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' - shlibpath_var=LIBPATH +AC_SUBST(lt_ECHO) +]) +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], + [An echo program that does not interpret backslashes]) +])# _LT_PROG_ECHO_BACKSLASH - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}${shared_ext}$major' - ;; -aix4* | aix5*) - version_type=linux - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test "$host_cpu" = ia64; then - # AIX 5 supports IA64 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line `#! .'. This would cause the generated library to - # depend on `.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; esac - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - if test "$aix_use_runtimelinking" = yes; then - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac else - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}${shared_ext}$major' + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac fi - shlibpath_var=LIBPATH fi + rm -rf conftest* ;; -amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - -beos*) - library_names_spec='${libname}${shared_ext}' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* ;; -cygwin* | mingw* | pw32*) - version_type=windows - shrext_cmds=".dll" - need_version=no - need_lib_prefix=no - - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $rm \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" - ;; - mingw*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac ;; esac - ;; - - *) - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' - ;; - esac - dynamic_linker='Win32 ld.exe' - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH + fi + rm -rf conftest* ;; +esac -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' - soname_spec='${libname}${release}${major}$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; -freebsd1*) - dynamic_linker=no - ;; +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[AC_CHECK_TOOL(AR, ar, false) +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1]) -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[123]]*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) -gnu*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - ;; +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - if test "X$HPUX_IA64_MODE" = X32; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - fi - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. - postinstall_cmds='chmod 555 $lib' - ;; + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +])# _LT_CMD_OLD_ARCHIVE -interix[[3-9]]*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" - hardcode_into_libs=yes - ;; +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - # Append ld.so.conf contents to the search path - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION -newsos6) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) -nto-qnx*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; -openbsd*) - version_type=sunos - sys_lib_dlsearch_path_spec="/usr/lib" - need_lib_prefix=no - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. - case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; - esac - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case $host_os in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac - else - shlibpath_overrides_runpath=yes - fi - ;; +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" -os2*) - libname_spec='$name' - shrext_cmds=".dll" - need_lib_prefix=no - library_names_spec='$libname${shared_ext} $libname.a' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=LIBPATH - ;; + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='${libname}${release}${shared_ext}$major' - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - ;; + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; -rdos*) - dynamic_linker=no - ;; + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; -solaris*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; -sunos4*) - version_type=sunos - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test "$with_gnu_ld" = yes; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec ;then - version_type=linux - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' - soname_spec='$libname${shared_ext}.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=freebsd-elf - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - hardcode_into_libs=yes - if test "$with_gnu_ld" = yes; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -uts4*) - version_type=linux - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test "$dynamic_linker" = no && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; -# _LT_AC_TAGCONFIG -# ---------------- -AC_DEFUN([_LT_AC_TAGCONFIG], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_ARG_WITH([tags], - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], - [include additional configurations @<:@automatic@:>@])], - [tagnames="$withval"]) - -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - AC_MSG_WARN([output file `$ofile' does not exist]) - fi - - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + lt_cv_sys_max_cmd_len=32768 fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in - "") ;; - *) AC_MSG_ERROR([invalid tag name: $tagname]) - ;; - esac - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - AC_MSG_ERROR([tag name \"$tagname\" already exists]) - fi +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_LIBTOOL_LANG_CXX_CONFIG - else - tagname="" - fi - ;; - F77) - if test -n "$F77" && test "X$F77" != "Xno"; then - AC_LIBTOOL_LANG_F77_CONFIG - else - tagname="" - fi - ;; +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line __oline__ "configure" +#include "confdefs.h" - GCJ) - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then - AC_LIBTOOL_LANG_GCJ_CONFIG - else - tagname="" - fi - ;; +#if HAVE_DLFCN_H +#include +#endif - RC) - AC_LIBTOOL_LANG_RC_CONFIG - ;; +#include - *) - AC_MSG_ERROR([Unsupported tag name: $tagname]) - ;; - esac +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif - # Append the new tag name to the list of available tags. - if test -n "$tagname" ; then - available_tags="$available_tags $tagname" - fi - fi - done - IFS="$lt_save_ifs" +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif - # Now substitute the updated list of available tags. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then - mv "${ofile}T" "$ofile" - chmod +x "$ofile" +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } else - rm -f "${ofile}T" - AC_MSG_ERROR([unable to update list of available tagged configurations.]) + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 fi fi -])# _LT_AC_TAGCONFIG - - -# AC_LIBTOOL_DLOPEN -# ----------------- -# enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_DLOPEN - +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF -# AC_LIBTOOL_WIN32_DLL -# -------------------- -# declare package support for building win32 DLLs -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) -])# AC_LIBTOOL_WIN32_DLL +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= -# AC_ENABLE_SHARED([DEFAULT]) -# --------------------------- -# implement the --enable-shared flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([shared], - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) -])# AC_ENABLE_SHARED + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; -# AC_DISABLE_SHARED -# ----------------- -# set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no) -])# AC_DISABLE_SHARED + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; -# AC_ENABLE_STATIC([DEFAULT]) -# --------------------------- -# implement the --enable-static flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([static], - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_static=]AC_ENABLE_STATIC_DEFAULT) -])# AC_ENABLE_STATIC + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi -# AC_DISABLE_STATIC -# ----------------- -# set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no) -])# AC_DISABLE_STATIC + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" -# AC_ENABLE_FAST_INSTALL([DEFAULT]) -# --------------------------------- -# implement the --enable-fast-install flag -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE([fast-install], - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac], - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) -])# AC_ENABLE_FAST_INSTALL + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) -# AC_DISABLE_FAST_INSTALL -# ----------------------- -# set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no) -])# AC_DISABLE_FAST_INSTALL + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac -# AC_LIBTOOL_PICMODE([MODE]) -# -------------------------- -# implement the --with-pic flag -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default) -])# AC_LIBTOOL_PICMODE + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) -# AC_PROG_EGREP -# ------------- -# This is predefined starting with Autoconf 2.54, so this conditional -# definition can be removed once we require Autoconf 2.54 or later. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi]) - EGREP=$ac_cv_prog_egrep - AC_SUBST([EGREP]) -])]) +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext -# AC_PATH_TOOL_PREFIX -# ------------------- -# find a file program which can recognize shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD="$MAGIC_CMD" - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <&2 + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org -EOF - fi ;; - esac - fi - break - fi - done - IFS="$lt_save_ifs" - MAGIC_CMD="$lt_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi else - AC_MSG_RESULT(no) + need_locks=no fi -])# AC_PATH_TOOL_PREFIX +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS -# AC_PATH_MAGIC -# ------------- -# find a file program which can recognize a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink else - MAGIC_CMD=: + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported fi -])# AC_PATH_MAGIC +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH -# AC_PROG_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH([gnu-ld], - [AC_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test "$withval" = no || with_gnu_ld=yes], - [with_gnu_ld=no]) -AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi ;; *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown + AC_MSG_RESULT([no]) ;; esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else - reload_cmds='$LD$reload_flag -o $output$reload_objs' + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi - ;; -esac -])# AC_PROG_LD_RELOAD_FLAG - + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no -# AC_DEPLIBS_CHECK_METHOD -# ----------------------- -# how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], -[AC_CACHE_CHECK([how to recognize dependent libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given extended regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[[45]]*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' ;; -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi ;; esac - else - lt_cv_deplibs_check_method=pass_all + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH fi ;; -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file +amigaos*) case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH ;; -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux* | k*bsd*-gnu) - lt_cv_deplibs_check_method=pass_all +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs ;; -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes -nto-qnx*) - lt_cv_deplibs_check_method=unknown - ;; + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; -openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH ;; -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; -rdos*) - lt_cv_deplibs_check_method=pass_all +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH ;; -solaris*) - lt_cv_deplibs_check_method=pass_all +freebsd1*) + dynamic_linker=no ;; -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes ;; - ncr) - lt_cv_deplibs_check_method=pass_all + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes ;; - siemens) - lt_cv_deplibs_check_method=pass_all + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; - pc) - lt_cv_deplibs_check_method=pass_all + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' ;; esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown -])# AC_DEPLIBS_CHECK_METHOD - -# AC_PROG_NM -# ---------- -# find the pathname to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - lt_nm_to_check="${ac_tool_prefix}nm" - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS="$lt_save_ifs" - test -z "$ac_dir" && ac_dir=. - tmp_nm="$ac_dir/$lt_tmp_nm" - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in - */dev/null* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS="$lt_save_ifs" - done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -])# AC_PROG_NM - - -# AC_CHECK_LIBM -# ------------- -# check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM="-lm") +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes ;; -esac -])# AC_CHECK_LIBM +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' -# (note the single quotes!). If your package is not flat and you're not -# using automake, define top_builddir and top_srcdir appropriately in -# the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_CONVENIENCE +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) -# ----------------------------------- -# sets LIBLTDL to the link flags for the libltdl installable library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, -# and an installed libltdl is not found, it is assumed to be `libltdl'. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and top_srcdir -# appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, lt_dlinit, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -])# AC_LIBLTDL_INSTALLABLE - - -# AC_LIBTOOL_CXX -# -------------- -# enable support for C++ libraries -AC_DEFUN([AC_LIBTOOL_CXX], -[AC_REQUIRE([_LT_AC_LANG_CXX]) -])# AC_LIBTOOL_CXX - - -# _LT_AC_LANG_CXX -# --------------- -AC_DEFUN([_LT_AC_LANG_CXX], -[AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) -])# _LT_AC_LANG_CXX - -# _LT_AC_PROG_CXXCPP -# ------------------ -AC_DEFUN([_LT_AC_PROG_CXXCPP], -[ -AC_REQUIRE([AC_PROG_CXX]) -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - AC_PROG_CXXCPP -fi -])# _LT_AC_PROG_CXXCPP - -# AC_LIBTOOL_F77 -# -------------- -# enable support for Fortran 77 libraries -AC_DEFUN([AC_LIBTOOL_F77], -[AC_REQUIRE([_LT_AC_LANG_F77]) -])# AC_LIBTOOL_F77 - - -# _LT_AC_LANG_F77 -# --------------- -AC_DEFUN([_LT_AC_LANG_F77], -[AC_REQUIRE([AC_PROG_F77]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) -])# _LT_AC_LANG_F77 - - -# AC_LIBTOOL_GCJ -# -------------- -# enable support for GCJ libraries -AC_DEFUN([AC_LIBTOOL_GCJ], -[AC_REQUIRE([_LT_AC_LANG_GCJ]) -])# AC_LIBTOOL_GCJ - - -# _LT_AC_LANG_GCJ -# --------------- -AC_DEFUN([_LT_AC_LANG_GCJ], -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) -])# _LT_AC_LANG_GCJ - - -# AC_LIBTOOL_RC -# ------------- -# enable support for Windows resource files -AC_DEFUN([AC_LIBTOOL_RC], -[AC_REQUIRE([LT_AC_PROG_RC]) -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) -])# AC_LIBTOOL_RC - - -# AC_LIBTOOL_LANG_C_CONFIG -# ------------------------ -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) -AC_DEFUN([_LT_AC_LANG_C_CONFIG], -[lt_save_CC="$CC" -AC_LANG_PUSH(C) -# Source file extension for C test sources. -ac_ext=c + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; -# Object file extension for compiled C test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; -_LT_AC_SYS_COMPILER +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_SYS_LIB_STRIP -AC_LIBTOOL_DLOPEN_SELF - -# Report which library types will actually be built -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no +rdos*) + dynamic_linker=no + ;; -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -AC_LIBTOOL_CONFIG($1) + need_version=yes + ;; -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_C_CONFIG - - -# AC_LIBTOOL_LANG_CXX_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], -[AC_LANG_PUSH(C++) -AC_REQUIRE([AC_PROG_CXX]) -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) - -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Dependencies to place before and after the object being linked: -_LT_AC_TAGVAR(predep_objects, $1)= -_LT_AC_TAGVAR(postdep_objects, $1)= -_LT_AC_TAGVAR(predeps, $1)= -_LT_AC_TAGVAR(postdeps, $1)= -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; -# Source file extension for C++ test sources. -ac_ext=cpp +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; -# Object file extension for compiled C++ test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - $as_unset lt_cv_prog_gnu_ld +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - $as_unset lt_cv_path_LD +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' -else - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= -fi +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER -if test "$GXX" = yes; then - # Set up default GNU C++ configuration - AC_PROG_LD +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + MAGIC_CMD=: fi +fi +])# _LT_PATH_MAGIC - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' -else - GXX=no - with_gnu_ld=no - wlarc= -fi +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl -# PORTME: fill in a description of your system's C++ link characteristics -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -_LT_AC_TAGVAR(ld_shlibs, $1)=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 /dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" +# Old names: +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_LD], []) +dnl AC_DEFUN([AC_PROG_LD], []) + + +# _LT_PATH_LD_GNU +#- -------------- +m4_defun([_LT_PATH_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +# _LT_CMD_RELOAD +# -------------- +# find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +m4_defun([_LT_CMD_RELOAD], +[AC_CACHE_CHECK([for $LD option to reload object files], + lt_cv_ld_reload_flag, + [lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else - _LT_AC_TAGVAR(ld_shlibs, $1)=no + reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; +esac +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl +_LT_DECL([], [reload_cmds], [2])dnl +])# _LT_CMD_RELOAD - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi +# _LT_CHECK_MAGIC_METHOD +# ---------------------- +# how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_MAGIC_METHOD], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +AC_CACHE_CHECK([how to recognize dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[[4-9]]*) + lt_cv_deplibs_check_method=pass_all ;; - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - - if test "$GXX" = yes ; then - lt_int_apple_cc_single_mod=no - output_verbose_link_cmd='echo' - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then - lt_int_apple_cc_single_mod=yes - fi - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - fi - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - fi - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - freebsd[[12]]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - freebsd-elf*) - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - ;; - gnu*) - ;; - hpux9*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: +beos*) + lt_cv_deplibs_check_method=pass_all + ;; - case $host_cpu in - hppa*64*|ia64*) ;; - *) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; - esac - fi +bsdi[[45]]*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' - fi - fi - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' - ;; - pgCC*) - # Portland Group C++ compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - m88k*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; - openbsd2*) - # C++ shared libraries are fairly broken - _LT_AC_TAGVAR(ld_shlibs, $1)=no + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + esac + ;; - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; - else - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; - output_verbose_link_cmd='echo' +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; - # The C++ compiler must be used to create the archive. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac + ncr) + lt_cv_deplibs_check_method=pass_all ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so ;; - vxworks*) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no + siemens) + lt_cv_deplibs_check_method=pass_all ;; - *) - # FIXME: insert proper C++ library support - _LT_AC_TAGVAR(ld_shlibs, $1)=no + pc) + lt_cv_deplibs_check_method=pass_all ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; esac -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown -_LT_AC_TAGVAR(GCC, $1)="$GXX" -_LT_AC_TAGVAR(LD, $1)="$LD" +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method == "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -AC_LIBTOOL_POSTDEP_PREDEP($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) -AC_LIBTOOL_CONFIG($1) +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" \ + && { test "$build" = "$host" \ + || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \ + }; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl -AC_LANG_POP -CC=$lt_save_CC -LDCXX=$LD -LD=$lt_save_LD -GCC=$lt_save_GCC -with_gnu_ldcxx=$with_gnu_ld -with_gnu_ld=$lt_save_with_gnu_ld -lt_cv_path_LDCXX=$lt_cv_path_LD -lt_cv_path_LD=$lt_save_path_LD -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -])# AC_LIBTOOL_LANG_CXX_CONFIG +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) -# ------------------------------------ -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - # - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' ;; - solaris*) - case $cc_basename in - CC*) - # The more standards-conforming stlport4 library is - # incompatible with the Cstd library. Avoid specifying - # it if it's in CXXFLAGS. Ignore libCrun as - # -library=stlport4 depends on it. - case " $CXX $CXXFLAGS " in - *" -library=stlport4 "*) - solaris_use_stlport4=yes - ;; - esac - - # Adding this requires a known-good setup of shared libraries for - # Sun compiler versions before 5.6, else PIC objects from an old - # archive will be linked into the output, leading to subtle bugs. - if test "$solaris_use_stlport4" != yes; then - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' - fi - ;; - esac + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' ;; esac -]) -case " $_LT_AC_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; esac -])# AC_LIBTOOL_POSTDEP_PREDEP -# AC_LIBTOOL_LANG_F77_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], -[AC_REQUIRE([AC_PROG_F77]) -AC_LANG_PUSH(Fortran 77) +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_AC_TAGVAR(allow_undefined_flag, $1)= -_LT_AC_TAGVAR(always_export_symbols, $1)=no -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_direct, $1)=no -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no -_LT_AC_TAGVAR(hardcode_automatic, $1)=no -_LT_AC_TAGVAR(module_cmds, $1)= -_LT_AC_TAGVAR(module_expsym_cmds, $1)= -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_AC_TAGVAR(no_undefined_flag, $1)= -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" -# Source file extension for f77 test sources. -ac_ext=f +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac -# Object file extension for compiled f77 test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do -# Code to be used in simple compile tests -lt_simple_compile_test_code="\ - subroutine t - return - end -" + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" -# Code to be used in simple link tests -lt_simple_link_test_code="\ - program t - end -" + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER + # Check to see that the pipe works correctly. + pipe_works=no -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${F77-"f77"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' -AC_MSG_CHECKING([if libtool supports shared libraries]) -AC_MSG_RESULT([$can_build_shared]) + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; -AC_MSG_CHECKING([whether to build shared libraries]) -test "$can_build_shared" = "no" && enable_shared=no +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 fi - ;; -aix4* | aix5*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC*) + # IBM XL 8.0 on PPC + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac fi - ;; -esac -AC_MSG_RESULT([$enable_shared]) - -AC_MSG_CHECKING([whether to build static libraries]) -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -AC_MSG_RESULT([$enable_static]) - -_LT_AC_TAGVAR(GCC, $1)="$G77" -_LT_AC_TAGVAR(LD, $1)="$LD" - -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) - -AC_LIBTOOL_CONFIG($1) - -AC_LANG_POP -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_F77_CONFIG - +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' -# AC_LIBTOOL_LANG_GCJ_CONFIG -# -------------------------- -# Ensure that the configuration vars for the C compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], -[AC_LANG_SAVE + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; -# Source file extension for Java test sources. -ac_ext=java + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; -# Object file extension for compiled Java test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${GCJ-"gcj"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) -AC_LIBTOOL_PROG_COMPILER_PIC($1) -AC_LIBTOOL_PROG_CC_C_O($1) -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) -AC_LIBTOOL_PROG_LD_SHLIBS($1) -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; -AC_LIBTOOL_CONFIG($1) + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_GCJ_CONFIG + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; -# AC_LIBTOOL_LANG_RC_CONFIG -# ------------------------- -# Ensure that the configuration vars for the Windows resource compiler are -# suitably defined. Those variables are subsequently used by -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], -[AC_LANG_SAVE + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + esac + ;; + esac + ;; -# Source file extension for RC test sources. -ac_ext=rc + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; -# Object file extension for compiled RC test sources. -objext=o -_LT_AC_TAGVAR(objext, $1)=$objext + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; -# Code to be used in simple link tests -lt_simple_link_test_code="$lt_simple_compile_test_code" + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_AC_SYS_COMPILER + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; -# Allow CC to be a program name with arguments. -lt_save_CC="$CC" -CC=${RC-"windres"} -compiler=$CC -_LT_AC_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; -AC_LIBTOOL_CONFIG($1) + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; -AC_LANG_RESTORE -CC="$lt_save_CC" -])# AC_LIBTOOL_LANG_RC_CONFIG + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; -# AC_LIBTOOL_CONFIG([TAGNAME]) -# ---------------------------- -# If TAGNAME is not passed, then create an initial libtool script -# with a default configuration from the untagged config vars. Otherwise -# add code to config.status for appending the configuration named by -# TAGNAME from the matching tagged config vars. -AC_DEFUN([AC_LIBTOOL_CONFIG], -[# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - _LT_AC_TAGVAR(compiler, $1) \ - _LT_AC_TAGVAR(CC, $1) \ - _LT_AC_TAGVAR(LD, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ - _LT_AC_TAGVAR(old_archive_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ - _LT_AC_TAGVAR(predep_objects, $1) \ - _LT_AC_TAGVAR(postdep_objects, $1) \ - _LT_AC_TAGVAR(predeps, $1) \ - _LT_AC_TAGVAR(postdeps, $1) \ - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ - _LT_AC_TAGVAR(archive_cmds, $1) \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ - _LT_AC_TAGVAR(postinstall_cmds, $1) \ - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ - _LT_AC_TAGVAR(no_undefined_flag, $1) \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ - _LT_AC_TAGVAR(hardcode_automatic, $1) \ - _LT_AC_TAGVAR(module_cmds, $1) \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ - _LT_AC_TAGVAR(fix_srcfile_path, $1) \ - _LT_AC_TAGVAR(exclude_expsyms, $1) \ - _LT_AC_TAGVAR(include_expsyms, $1); do - - case $var in - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ - _LT_AC_TAGVAR(archive_cmds, $1) | \ - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(module_cmds, $1) | \ - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; + *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac - done - - case $lt_echo in - *'\[$]0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; - esac - -ifelse([$1], [], - [cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - AC_MSG_NOTICE([creating $ofile])], - [cfgfile="$ofile"]) - - cat <<__EOF__ >> "$cfgfile" -ifelse([$1], [], -[#! $SHELL + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. # -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. +# Check to make sure the PIC flag actually works. # -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Check to make sure the static flag actually works. # -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG], -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) - -# Is the compiler the GNU C compiler? -with_gcc=$_LT_AC_TAGVAR(GCC, $1) - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC -# Used on cygwin: assembler. -AS="$AS" -# The name of the directory that contains temporary libtool files. -objdir=$objdir +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac -# How to pass a linker flag through the compiler. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + _LT_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' -# Object file suffix (normally "o"). -objext="$ac_objext" + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac -# Old archive suffix (normally "a"). -libext="$libext" + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. -# Executable file suffix (normally ""). -exeext="$exeext" +_LT_EOF + fi + ;; -# Additional compiler flags for building library objects. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -pic_mode=$pic_mode + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' -# Must we lock files when doing compilation? -need_locks=$lt_need_locks + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; -# Do we need a version for libraries? -need_version=$need_version + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag= + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -# Whether dlopen is supported. -dlopen_support=$enable_dlopen + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. -# Library versioning type. -version_type=$version_type +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; -# Format of library name prefix. -libname_spec=$lt_libname_spec + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi -# Commands used to build and install a shared archive. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd + freebsd1*) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: -# This is the shared library runtime path variable. -runpath_var=$runpath_var + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' -# This is the shared library path variable. -shlibpath_var=$shlibpath_var + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE(int foo(void) {}, + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + ) + LDFLAGS="$save_LDFLAGS" + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; -# How to hardcode a shared library path into an executable. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + *nto* | *qnx*) + ;; -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' -# Set to yes if exported symbols are required. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; -# The commands to list exported symbols. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; -# Symbols that must always be exported. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac -ifelse([$1],[], -[# ### END LIBTOOL CONFIG], -[# ### END LIBTOOL TAG CONFIG: $tagname]) + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no -__EOF__ +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld -ifelse([$1],[], [ - case $host_os in - aix3*) - cat <<\EOF >> "$cfgfile" +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF - ;; - esac +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -]) -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac fi -fi -])# AC_LIBTOOL_CONFIG - - -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + ;; +esac -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], + [[If ld is used when linking, flag to hardcode $libdir into a binary + during linking. This must work even if $libdir does not exist]]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [fix_srcfile_path], [1], + [Fix the shell variable $srcfile for the compiler]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS -if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC="$CC" +AC_LANG_PUSH(C) +# Source file extension for C test sources. +ac_ext=c -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([LT_AC_PROG_SED]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - if test "$host_cpu" = ia64; then - symcode='[[ABCDEGRST]]' - fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[[ABCDGIRSTW]]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report which library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) - # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + _LT_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG - # Check to see that the pipe works correctly. - pipe_works=no - rm -f conftest* - cat > conftest.$ac_ext </dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_CXX - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_CXX], []) - # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif -EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[AC_REQUIRE([_LT_PROG_CXX])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif +# Source file extension for C++ test sources. +ac_ext=cpp -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr_t address; -} -lt_preloaded_symbols[[]] = -{ -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} -}; +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then - pipe_works=yes - fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 + $as_unset lt_cv_prog_gnu_ld fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX else - lt_cv_sys_global_symbol_pipe= + $as_unset lt_cv_path_LD fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) -# --------------------------------------- -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + if test "$GXX" = yes; then + # Set up default GNU C++ configuration -AC_MSG_CHECKING([for $compiler option to produce PIC]) - ifelse([$1],[CXX],[ - # C++ specific cases for pic, static, wl, etc. - if test "$GXX" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + LT_PATH_LD - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi - ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in - aix4* | aix5*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + _LT_TAGVAR(ld_shlibs, $1)=no fi ;; + chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - esac + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; + dgux*) - case $cc_basename in - ec++*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - ghcx*) + ghcx*) # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - *) + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - esac - ;; + esac + ;; + + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | dragonfly*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - aCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + aCC*) case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; - *) + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; - *) + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes ;; - esac - ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - icpc* | ecpc*) + icpc* | ecpc* ) # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC*) - # Portland Group C++ compiler. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 will use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test "$GCC" = yes; then - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + xl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - esac - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - esac - ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; - mingw* | cygwin* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' - ;; + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; - hpux9* | hpux10* | hpux11*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=echo + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' - ;; - irix5* | irix6* | nonstopux*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac - newsos6) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; + _LT_TAGVAR(hardcode_libdir_separator, $1)=: - linux* | k*bsd*-gnu) - case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac ;; - pgcc* | pgf77* | pgf90* | pgf95*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no ;; - ccc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac ;; - como) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' + + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C 5.9 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; - esac - ;; esac ;; - osf3* | osf4* | osf5*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' - rdos*) - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac ;; - solaris*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac - sunos4*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" - sysv4*MP*) - if test -d /usr/nec ;then - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG - unicos*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - uts4*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= - *) - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF ]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" - ;; -esac + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no -# -# Check to make sure the static flag actually works. -# -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) -]) + for p in `eval "$output_verbose_link_cmd"`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + else + prev= + fi + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + ;; -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) -# ------------------------------------ -# See if the linker supports building shared libraries. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], -[AC_REQUIRE([LT_AC_PROG_SED])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -ifelse([$1],[CXX],[ - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - case $host_os in - aix4* | aix5*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" - ;; - cygwin* | mingw*) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - ;; - *) - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -],[ - runpath_var= - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_AC_TAGVAR(archive_cmds, $1)= - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown - _LT_AC_TAGVAR(hardcode_automatic, $1)=no - _LT_AC_TAGVAR(module_cmds, $1)= - _LT_AC_TAGVAR(module_expsym_cmds, $1)= - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_AC_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ` (' and `)$', so one must not match beginning or - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', - # as well as any symbol that contains `d'. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - _LT_CC_BASENAME([$compiler]) - case $host_os in - cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd*) - with_gnu_ld=no - ;; - esac + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' + if test "$pre_test_object_deps_done" = no; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v 2>/dev/null` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; esac + done - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX/PPC, the GNU linker is very broken - if test "$host_cpu" != ia64; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +$RM -f confest.$objext -EOF - fi - ;; +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes ;; + esac - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=no - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes ;; + esac - interix[[3-9]]*) - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; - esac - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_PROG_F77 +# ------------ +# Since AC_PROG_F77 is broken, in that it returns the empty string +# if there is no fortran compiler, we have our own version here. +m4_defun([_LT_PROG_F77], +[ +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) +AC_PROG_F77 +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_F77 - if test $supports_anon_versioning = yes; then - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_F77], []) - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <&2 +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_REQUIRE([_LT_PROG_F77])dnl +AC_LANG_PUSH(Fortran 77) -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; +# Source file extension for f77 test sources. +ac_ext=f - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" -_LT_EOF - ;; - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" - sunos4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER - *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + CC=${F77-"f77"} + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then - runpath_var= - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' - else - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi - done - ;; - esac + ;; + esac + AC_MSG_RESULT([$enable_shared]) - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" +fi # test "$_lt_disable_F77" != yes - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. +AC_LANG_POP +])# _LT_LANG_F77_CONFIG - _LT_AC_TAGVAR(archive_cmds, $1)='' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi +# _LT_PROG_FC +# ----------- +# Since AC_PROG_FC is broken, in that it returns the empty string +# if there is no fortran compiler, we have our own version here. +m4_defun([_LT_PROG_FC], +[ +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) +AC_PROG_FC +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_FC - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. - _LT_AC_SYS_LIBPATH_AIX - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - # This is similar to how AIX traditionally builds its shared libraries. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_FC], []) - amigaos*) - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - # see comment about different semantics on the GNU ld section - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - bsdi[[45]]*) - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_REQUIRE([_LT_PROG_FC])dnl +AC_LANG_PUSH(Fortran) + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} - darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[[012]]) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi - ;; +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext - dgux*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" - freebsd1*) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + CC=${FC-"f95"} + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) - hpux9*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_direct, $1)=yes + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - ;; + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no - hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" +fi # test "$_lt_disable_FC" != yes - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; +AC_LANG_POP +])# _LT_LANG_FC_CONFIG - hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - fi - if test "$with_gnu_ld" = no; then - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - case $host_cpu in - hppa*64*|ia64*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; +# Source file extension for Java test sources. +ac_ext=java - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" - newsos6) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - openbsd*) - if test -f /usr/libexec/ld.so; then - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' - else - case $host_os in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - ;; - *) - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' - ;; - esac - fi - else - _LT_AC_TAGVAR(ld_shlibs, $1)=no - fi - ;; +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER - os2*) - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE - osf3*) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' - else - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no - # Both c and cxx compiler support -rpath directly - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: - ;; +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds - solaris*) - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' - if test "$GCC" = yes; then - wlarc='${wl}' - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. GCC discards it without `$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test "$GCC" = yes; then - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' - else - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - ;; +## CAVEAT EMPTOR: +## There is no encapsulation within the following macros, do not change +## the running order or otherwise move them around unless you know exactly +## what you are doing... +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; + _LT_CONFIG($1) +fi - sysv4) - case $host_vendor in - sni) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_AC_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; +AC_LANG_RESTORE - sysv4.3*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; +GCC=$lt_save_GCC +CC="$lt_save_CC" +])# _LT_LANG_GCJ_CONFIG - sysv4*MP*) - if test -d /usr/nec; then - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_AC_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +# Source file extension for RC test sources. +ac_ext=rc - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' - runpath_var='LD_RUN_PATH' +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext - if test "$GCC" = yes; then - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - uts4*) - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" - *) - _LT_AC_TAGVAR(ld_shlibs, $1)=no - ;; - esac - fi -]) -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER -# -# Do we need to explicitly link libc? -# -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE - if test "$enable_shared" = yes && test "$GCC" = yes; then - case $_LT_AC_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) - _LT_AC_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no - else - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) - ;; - esac - fi - ;; -esac -])# AC_LIBTOOL_PROG_LD_SHLIBS +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC="$lt_save_CC" +])# _LT_LANG_RC_CONFIG -# _LT_AC_FILE_LTDLL_C -# ------------------- -# Be careful that the start marker always follows a newline. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ -])# _LT_AC_FILE_LTDLL_C +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) -# --------------------------------- -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) -# old names -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) - -# This is just to silence aclocal about the macro not being used -ifelse([AC_DISABLE_FAST_INSTALL]) - -AC_DEFUN([LT_AC_PROG_GCJ], -[AC_CHECK_TOOL(GCJ, gcj, no) - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS) +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) ]) -AC_DEFUN([LT_AC_PROG_RC], -[AC_CHECK_TOOL(RC, windres, no) +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) ]) -# Cheap backport of AS_EXECUTABLE_P and required macros -# from Autoconf 2.59; we should not use $as_executable_p directly. +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) -# _AS_TEST_PREPARE -# ---------------- -m4_ifndef([_AS_TEST_PREPARE], -[m4_defun([_AS_TEST_PREPARE], -[if test -x / >/dev/null 2>&1; then - as_executable_p='test -x' -else - as_executable_p='test -f' -fi -])])# _AS_TEST_PREPARE -# AS_EXECUTABLE_P -# --------------- -# Check whether a file is executable. -m4_ifndef([AS_EXECUTABLE_P], -[m4_defun([AS_EXECUTABLE_P], -[AS_REQUIRE([_AS_TEST_PREPARE])dnl -$as_executable_p $1[]dnl -])])# AS_EXECUTABLE_P +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED +m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ -# LT_AC_PROG_SED -# -------------- -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -AC_DEFUN([LT_AC_PROG_SED], + +m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. @@ -6544,7 +7070,7 @@ test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done @@ -6585,4 +7111,266 @@ SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_XSI_SHELLFNS +# --------------------- +# Bourne and XSI compatible variants of some useful shell functions. +m4_defun([_LT_PROG_XSI_SHELLFNS], +[case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $[*] )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +dnl func_dirname_and_basename +dnl A portable version of this function is already defined in general.m4sh +dnl so there is no need for it here. + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} + +# sed scripts: +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[[^=]]*=//' + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$[@]"` +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` +} + +_LT_EOF +esac + +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$[1]+=\$[2]" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$[1]=\$$[1]\$[2]" +} + +_LT_EOF + ;; + esac ]) diff -Nru gettext-0.17/m4/lt~obsolete.m4 gettext-0.18.1.1/m4/lt~obsolete.m4 --- gettext-0.17/m4/lt~obsolete.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/m4/lt~obsolete.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,92 @@ +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 4 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) diff -Nru gettext-0.17/m4/ltoptions.m4 gettext-0.18.1.1/m4/ltoptions.m4 --- gettext-0.17/m4/ltoptions.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/m4/ltoptions.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,368 @@ +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + +## --------------------------------- ## +## Macros to handle LT_INIT options. ## +## --------------------------------- ## + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [0], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) + +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + +## ----------------- ## +## LTDL_INIT Options ## +## ----------------- ## + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) diff -Nru gettext-0.17/m4/ltsugar.m4 gettext-0.18.1.1/m4/ltsugar.m4 --- gettext-0.17/m4/ltsugar.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/m4/ltsugar.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,123 @@ +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) diff -Nru gettext-0.17/m4/ltversion.m4 gettext-0.18.1.1/m4/ltversion.m4 --- gettext-0.17/m4/ltversion.m4 1970-01-01 00:00:00.000000000 +0000 +++ gettext-0.18.1.1/m4/ltversion.m4 2010-06-06 12:49:58.000000000 +0000 @@ -0,0 +1,23 @@ +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# Generated from ltversion.in. + +# serial 3012 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.2.6]) +m4_define([LT_PACKAGE_REVISION], [1.3012]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.2.6' +macro_revision='1.3012' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) diff -Nru gettext-0.17/Makefile.am gettext-0.18.1.1/Makefile.am --- gettext-0.17/Makefile.am 2007-11-03 14:58:00.000000000 +0000 +++ gettext-0.18.1.1/Makefile.am 2010-06-06 12:49:57.000000000 +0000 @@ -1,5 +1,5 @@ ## Makefile for the toplevel directory of GNU gettext -## Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. +## Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,8 +18,9 @@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies ACLOCAL = build-aux/fixaclocal @ACLOCAL@ +ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = gnulib-local gettext-runtime gettext-tools autoconf-lib-link +SUBDIRS = gnulib-local gettext-runtime gettext-tools EXTRA_DIST = \ version.sh DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh \ @@ -28,7 +29,7 @@ m4/libtool.m4 # Additional dependencies for configure, due to the use of autoconf --trace. -$(srcdir)/configure: $(srcdir)/autoconf-lib-link/configure.ac $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac +$(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac # Verify that some files are the same. distcheck-hook: @@ -42,6 +43,7 @@ cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/po/remove-potcdate.sin cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/examples/po/remove-potcdate.sin cmp -s gettext-runtime/m4/codeset.m4 gettext-tools/gnulib-m4/codeset.m4 + cmp -s gettext-runtime/m4/fcntl-o.m4 gettext-tools/gnulib-m4/fcntl-o.m4 cmp -s gettext-runtime/m4/gettext.m4 gettext-tools/gnulib-m4/gettext.m4 cmp -s gettext-runtime/m4/glibc2.m4 gettext-tools/gnulib-m4/glibc2.m4 cmp -s gettext-runtime/m4/glibc21.m4 gettext-tools/gnulib-m4/glibc21.m4 @@ -62,6 +64,7 @@ cmp -s gettext-runtime/m4/progtest.m4 gettext-tools/gnulib-m4/progtest.m4 cmp -s gettext-runtime/m4/size_max.m4 gettext-tools/gnulib-m4/size_max.m4 cmp -s gettext-runtime/m4/stdint_h.m4 gettext-tools/gnulib-m4/stdint_h.m4 + cmp -s gettext-runtime/m4/threadlib.m4 gettext-tools/gnulib-m4/threadlib.m4 cmp -s gettext-runtime/m4/uintmax_t.m4 gettext-tools/gnulib-m4/uintmax_t.m4 cmp -s gettext-runtime/m4/visibility.m4 gettext-tools/gnulib-m4/visibility.m4 cmp -s gettext-runtime/m4/wchar_t.m4 gettext-tools/gnulib-m4/wchar_t.m4 @@ -71,8 +74,8 @@ test "`sed 1,18d gettext-runtime/intl/localcharset.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.h | md5sum`" test "`sed 1,18d gettext-runtime/intl/localcharset.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.c | md5sum`" test "`sed 1,17d gettext-runtime/intl/localename.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localename.c | md5sum`" - test "`sed 1,17d gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/lock.h | md5sum`" - test "`sed 1,17d gettext-runtime/intl/lock.c | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/lock.c | md5sum`" + test "`sed 1,17d gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/glthread/lock.h | md5sum`" + test "`sed 1,17d gettext-runtime/intl/lock.c | md5sum`" = "`sed -e 1,16d -e 's,glthread/,,g' gettext-tools/gnulib-lib/glthread/lock.c | md5sum`" cmp -s gettext-runtime/intl/printf-args.h gettext-runtime/libasprintf/printf-args.h cmp -s gettext-runtime/intl/printf-args.c gettext-runtime/libasprintf/printf-args.c cmp -s gettext-runtime/intl/printf-parse.h gettext-runtime/libasprintf/printf-parse.h @@ -86,18 +89,12 @@ cmp -s gettext-runtime/intl/vasnprintf.c gettext-runtime/libasprintf/vasnprintf.c cmp -s gettext-runtime/intl/xsize.h gettext-runtime/libasprintf/xsize.h test "`sed 1,18d gettext-runtime/intl/xsize.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/xsize.h | md5sum`" - cmp -s autoconf-lib-link/m4/lib-ld.m4 gettext-tools/gnulib-m4/lib-ld.m4 - cmp -s autoconf-lib-link/m4/lib-link.m4 gettext-tools/gnulib-m4/lib-link.m4 - cmp -s autoconf-lib-link/m4/lib-prefix.m4 gettext-tools/gnulib-m4/lib-prefix.m4 - cmp -s autoconf-lib-link/config.rpath build-aux/config.rpath cmp -s gettext-runtime/man/help2man gettext-tools/man/help2man cmp -s gettext-runtime/man/x-to-1.in gettext-tools/man/x-to-1.in cmp -s gettext-runtime/libasprintf/texi2html gettext-tools/doc/texi2html cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.java gettext-tools/examples/hello-java-swing/m4/TestAWT.java cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.class gettext-tools/examples/hello-java-swing/m4/TestAWT.class - test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,17d gettext-runtime/libasprintf/alloca.in.h | md5sum`" - cmp -s gettext-tools/libgrep/memchr.c gettext-tools/gnulib-lib/memchr.c - cmp -s gettext-tools/libgrep/strdup.c gettext-tools/gnulib-lib/strdup.c + test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,15d gettext-runtime/libasprintf/alloca.in.h | md5sum`" # DJGPP port. diff -Nru gettext-0.17/Makefile.in gettext-0.18.1.1/Makefile.in --- gettext-0.17/Makefile.in 2007-11-06 23:56:14.000000000 +0000 +++ gettext-0.18.1.1/Makefile.in 2010-06-06 20:12:52.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,8 +16,9 @@ @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -41,15 +43,23 @@ build-aux/missing build-aux/mkinstalldirs \ build-aux/texinfo.tex build-aux/ylwrap ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/m4/init-package-version.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = depcomp = am__depfiles_maybe = +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -61,6 +71,9 @@ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -68,15 +81,41 @@ distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = build-aux/fixaclocal @ACLOCAL@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -95,8 +134,6 @@ ECHO_T = @ECHO_T@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ -F77 = @F77@ -FFLAGS = @FFLAGS@ GCJ = @GCJ@ GCJFLAGS = @GCJFLAGS@ INSTALL = @INSTALL@ @@ -115,6 +152,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ @@ -168,10 +206,12 @@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies -SUBDIRS = gnulib-local gettext-runtime gettext-tools autoconf-lib-link +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = gnulib-local gettext-runtime gettext-tools # DJGPP port. @@ -198,15 +238,15 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -222,9 +262,10 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -233,7 +274,7 @@ # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -250,7 +291,7 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ @@ -258,7 +299,7 @@ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): - @failcom='exit 1'; \ + @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ @@ -284,16 +325,16 @@ else \ local_target="$$target"; \ fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) @@ -301,14 +342,14 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ @@ -320,46 +361,50 @@ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -375,38 +420,55 @@ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ + am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -415,6 +477,14 @@ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) @@ -438,13 +508,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -452,10 +526,12 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ @@ -477,13 +553,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: - @cd $(distuninstallcheck_dir) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -525,6 +603,7 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -544,6 +623,8 @@ html: html-recursive +html-am: + info: info-recursive info-am: @@ -552,18 +633,28 @@ install-dvi: install-dvi-recursive +install-dvi-am: + install-exec-am: install-html: install-html-recursive +install-html-am: + install-info: install-info-recursive +install-info-am: + install-man: install-pdf: install-pdf-recursive +install-pdf-am: + install-ps: install-ps-recursive +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-recursive @@ -586,27 +677,27 @@ uninstall-am: -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ - install-strip +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ + install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ - dist-shar dist-tarZ dist-zip distcheck distclean \ - distclean-generic distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ - tags-recursive uninstall uninstall-am + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ + distclean distclean-generic distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am # Additional dependencies for configure, due to the use of autoconf --trace. -$(srcdir)/configure: $(srcdir)/autoconf-lib-link/configure.ac $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac +$(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-tools/configure.ac # Verify that some files are the same. distcheck-hook: @@ -620,6 +711,7 @@ cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/po/remove-potcdate.sin cmp -s gettext-runtime/po/remove-potcdate.sin gettext-tools/examples/po/remove-potcdate.sin cmp -s gettext-runtime/m4/codeset.m4 gettext-tools/gnulib-m4/codeset.m4 + cmp -s gettext-runtime/m4/fcntl-o.m4 gettext-tools/gnulib-m4/fcntl-o.m4 cmp -s gettext-runtime/m4/gettext.m4 gettext-tools/gnulib-m4/gettext.m4 cmp -s gettext-runtime/m4/glibc2.m4 gettext-tools/gnulib-m4/glibc2.m4 cmp -s gettext-runtime/m4/glibc21.m4 gettext-tools/gnulib-m4/glibc21.m4 @@ -640,6 +732,7 @@ cmp -s gettext-runtime/m4/progtest.m4 gettext-tools/gnulib-m4/progtest.m4 cmp -s gettext-runtime/m4/size_max.m4 gettext-tools/gnulib-m4/size_max.m4 cmp -s gettext-runtime/m4/stdint_h.m4 gettext-tools/gnulib-m4/stdint_h.m4 + cmp -s gettext-runtime/m4/threadlib.m4 gettext-tools/gnulib-m4/threadlib.m4 cmp -s gettext-runtime/m4/uintmax_t.m4 gettext-tools/gnulib-m4/uintmax_t.m4 cmp -s gettext-runtime/m4/visibility.m4 gettext-tools/gnulib-m4/visibility.m4 cmp -s gettext-runtime/m4/wchar_t.m4 gettext-tools/gnulib-m4/wchar_t.m4 @@ -649,8 +742,8 @@ test "`sed 1,18d gettext-runtime/intl/localcharset.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.h | md5sum`" test "`sed 1,18d gettext-runtime/intl/localcharset.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localcharset.c | md5sum`" test "`sed 1,17d gettext-runtime/intl/localename.c | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/localename.c | md5sum`" - test "`sed 1,17d gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/lock.h | md5sum`" - test "`sed 1,17d gettext-runtime/intl/lock.c | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/lock.c | md5sum`" + test "`sed 1,17d gettext-runtime/intl/lock.h | md5sum`" = "`sed 1,16d gettext-tools/gnulib-lib/glthread/lock.h | md5sum`" + test "`sed 1,17d gettext-runtime/intl/lock.c | md5sum`" = "`sed -e 1,16d -e 's,glthread/,,g' gettext-tools/gnulib-lib/glthread/lock.c | md5sum`" cmp -s gettext-runtime/intl/printf-args.h gettext-runtime/libasprintf/printf-args.h cmp -s gettext-runtime/intl/printf-args.c gettext-runtime/libasprintf/printf-args.c cmp -s gettext-runtime/intl/printf-parse.h gettext-runtime/libasprintf/printf-parse.h @@ -664,18 +757,13 @@ cmp -s gettext-runtime/intl/vasnprintf.c gettext-runtime/libasprintf/vasnprintf.c cmp -s gettext-runtime/intl/xsize.h gettext-runtime/libasprintf/xsize.h test "`sed 1,18d gettext-runtime/intl/xsize.h | md5sum`" = "`sed 1,17d gettext-tools/gnulib-lib/xsize.h | md5sum`" - cmp -s autoconf-lib-link/m4/lib-ld.m4 gettext-tools/gnulib-m4/lib-ld.m4 - cmp -s autoconf-lib-link/m4/lib-link.m4 gettext-tools/gnulib-m4/lib-link.m4 - cmp -s autoconf-lib-link/m4/lib-prefix.m4 gettext-tools/gnulib-m4/lib-prefix.m4 - cmp -s autoconf-lib-link/config.rpath build-aux/config.rpath cmp -s gettext-runtime/man/help2man gettext-tools/man/help2man cmp -s gettext-runtime/man/x-to-1.in gettext-tools/man/x-to-1.in cmp -s gettext-runtime/libasprintf/texi2html gettext-tools/doc/texi2html cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.java gettext-tools/examples/hello-java-swing/m4/TestAWT.java cmp -s gettext-tools/examples/hello-java-awt/m4/TestAWT.class gettext-tools/examples/hello-java-swing/m4/TestAWT.class - test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,17d gettext-runtime/libasprintf/alloca.in.h | md5sum`" - cmp -s gettext-tools/libgrep/memchr.c gettext-tools/gnulib-lib/memchr.c - cmp -s gettext-tools/libgrep/strdup.c gettext-tools/gnulib-lib/strdup.c + test "`sed 1,15d gnulib-local/lib/alloca.in.h | md5sum`" = "`sed 1,15d gettext-runtime/libasprintf/alloca.in.h | md5sum`" + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff -Nru gettext-0.17/NEWS gettext-0.18.1.1/NEWS --- gettext-0.17/NEWS 2007-11-02 00:38:26.000000000 +0000 +++ gettext-0.18.1.1/NEWS 2010-06-06 12:49:57.000000000 +0000 @@ -1,3 +1,98 @@ +Version 0.18.1 - June 2010 + +* msggrep: A '$' anchor in a regular expression now also matches the end of + the string, even if it does not end in a newline. + +* Dependencies: + The libraries and programs are now linked with libunistring if this library + is already installed. + +* Installation options: + The configure option --with-cvs is deprecated. The 'autopoint' program will + now use the 'git' program by default to compress its archive. If the + configure option --without-git is specified, 'autopoint' will not rely on + 'git', but will instead rely on a locally installed a 3 MB large archive. + +Version 0.18 - May 2010 + +* Runtime behaviour: + - On MacOS X and Windows systems, now extends setlocale() and + newlocale() so that their determination of the default locale considers + the choice the user has made in the system control panels. + - On MacOS X systems, the gettext()/dgettext()/... functions now respect the + locale of the current thread, if a thread-specific locale has been set. + +* PO file format: + There is a new field 'Language' in the header entry. It denotes the language + code (plus optional country code) for the PO file. This field can be used + by automated tools, such as spell checkers. It is expected to be more + reliable than looking at the file name or at the 'Language-Team' field in + the header entry. + msgmerge, msgcat, msgen have a new option --lang that allows to specify + this field. Additionally, msgmerge fills in this new field by looking at + the 'Language-Team' field (if the --lang option is not given). + +* xgettext and PO file format: + For messages with plural forms, programmers can inform the translators + about the range of possible values of the numeric argument, like this: + /* xgettext: range: 0..15 */ + This information 'range: 0..15' is stored in the PO file as a flag attached + to the message. Translators can produce better translations when they know + that the numeric argument is small. + +* Colorized PO files: + msgattrib, msgcomm, msgconv, msgen, msgfilter, msggrep, msginit, msgmerge, + msgunfmt, msguniq, xgettext now have options --color and --style, like msgcat + has since version 0.17. + +* msgmerge is up to 10 times faster when the PO and POT files are large. + This speedup was contributed by Ralf Wildenhues. + +* msgcmp has a new option -N/--no-fuzzy-matching, like msgmerge has since + version 0.12. + +* msgfilter now sets environment variables during the invocation of the + filter, indicating the msgid and location of the messge being processed. + +* xgettext now can extract plural forms from Qt 4 programs. The recommended + xgettext command-line options for this case are: + --qt --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t + +* xgettext --language=GCC-source now recognizes also the format strings + used in the Fortran front-end of the GCC compiler, and marks them as + 'gfc-internal-format'. + +* autopoint can now be used to update several PO directories all together. + +* PO mode changes: + - PO files with plural entries are now correctly handled. + - Editing a message with previous msgid (in comments) removes these + comments. Contributed by Noritada Kobayashi. + +* The po/Makevars file has a new field MSGMERGE_OPTIONS, that can be used + to adjust msgmerge's operation. + +* The use of the macro AM_GNU_GETTEXT without 'external' argument and the + --intl option of the gettextize program are deprecated and will be removed + in the next release. Instead of including the intl sources in your package, + we suggest making the libintl library an (optional) prerequisite of your + package. + +* Updated the meaning of 'gcc-internal-format' to match GCC 4.3. + +* Installation options: + The configure options --without-cvs and --with-git can be used to specify + whether 'autopoint' will use the 'cvs' program, or the 'git' program, or + none at all. These options allow to trade dependencies against installed + package size: If --without-cvs is specified and --with-git is not specified, + 'autopoint' will not rely on 'cvs' or 'git', but will instead rely on a + locally installed a 3 MB large archive. + +* Portability: + - The msgfilter program now also works on native Woe32 platforms. + - Compiled C# message catalogs now also work with 'mono' versions from 2009 + or newer. + Version 0.17 - November 2007 * License: diff -Nru gettext-0.17/os2/README.OS2 gettext-0.18.1.1/os2/README.OS2 --- gettext-0.17/os2/README.OS2 2002-03-15 18:21:42.000000000 +0000 +++ gettext-0.18.1.1/os2/README.OS2 2010-06-06 12:49:58.000000000 +0000 @@ -170,13 +170,13 @@ ============ Hung-Chi Chu - the original port of gettext (0.10.35) + the original port of gettext (0.10.35) Jun SAWATAISHI - some more work on it and submitted the patches to GNU team, although - they were not completely integrated. + some more work on it and submitted the patches to GNU team, although + they were not completely integrated. Andrew Zabolotny - Succeeded to remove almost all OS/2-specific #ifdef's from mainstream - source code, wrote the dedicated OS/2 makefile, wrote the iconv wrapper - around OS/2 Unicode API, added support for locale translations. + Succeeded to remove almost all OS/2-specific #ifdef's from mainstream + source code, wrote the dedicated OS/2 makefile, wrote the iconv wrapper + around OS/2 Unicode API, added support for locale translations. diff -Nru gettext-0.17/PACKAGING gettext-0.18.1.1/PACKAGING --- gettext-0.17/PACKAGING 2007-10-31 12:34:44.000000000 +0000 +++ gettext-0.18.1.1/PACKAGING 2010-06-06 12:49:57.000000000 +0000 @@ -113,8 +113,11 @@ $prefix/share/gettext/gettext.h $prefix/share/gettext/gettext.jar (only installed if gcj is not present) $prefix/share/gettext/msgunfmt.tcl - $prefix/share/gettext/archive.tar.gz + $prefix/share/gettext/archive.git.tar.gz + $prefix/share/gettext/archive.dir.tar.gz (only installed if --without-git specified) + $prefix/share/gettext/archive.cvs.tar.gz (only installed if --with-cvs specified) $prefix/share/aclocal/codeset.m4 + $prefix/share/aclocal/fcntl-o.m4 $prefix/share/aclocal/gettext.m4 $prefix/share/aclocal/glibc2.m4 $prefix/share/aclocal/glibc21.m4 diff -Nru gettext-0.17/README gettext-0.18.1.1/README --- gettext-0.17/README 2006-12-12 14:25:25.000000000 +0000 +++ gettext-0.18.1.1/README 2010-06-06 12:49:57.000000000 +0000 @@ -4,37 +4,14 @@ languages should be implemented. For this task GNU gettext provides the needed tools and library functions. +It is also interesting for translators, because GNU gettext provides +the 'msgmerge' program, which prepares a message catalog before a +translation update. + Users of GNU packages should also install GNU gettext because some other GNU packages will use the gettext program included in this package to internationalize the messages given by shell scripts. -Another good reason to install GNU gettext is to make sure the -here included functions compile ok. This helps to prevent errors -when installing other packages which use this library. The message -handling functions are not yet part of POSIX and ISO/IEC standards -and therefore it is not possible to rely on facts about their -implementation in the local C library. For this reason, GNU gettext -tries using the system's functionality only if it is a GNU gettext -implementation (possibly a different version); otherwise, compatibility -problems would occur. - -We felt that the Uniforum proposals has the much more flexible interface -and, what is more important, does not burden the programmers as much as -the other possibility does. - - -Please share your results with us. If this package compiles ok for -you future GNU release will likely also not fail, at least for reasons -found in message handling. Send comments and bug reports to - bug-gnu-gettext@gnu.org - - -The goal of this library was to give a unique interface to message -handling functions. At least the same level of importance was to give -the programmer/maintainer the needed tools to maintain the message -catalogs. The interface is designed after the proposals of the -Uniforum group. - The homepage of this package is at @@ -45,11 +22,15 @@ ftp://ftp.gnu.org/pub/gnu/gettext/ -The configure script provides two non-standard options. These will -also be available in other packages if they use the functionality of -GNU gettext. Use +Send comments and bug reports to + bug-gnu-gettext@gnu.org + + +The configure script provides a non-standard option. It is also +available in other packages that use the functionality of GNU gettext. +Use - --disable-nls + --disable-nls if you absolutely don't want to have messages handling code. You will always get the original messages (mostly English). You could consider @@ -62,71 +43,22 @@ intersection of these two sets are computed automatically. You could once and for all define in your profile/cshrc the variable LINGUAS: -(Bourne Shell) LINGUAS="de fr nl"; export LINGUAS +(Bourne Shell) LINGUAS="de fr nl"; export LINGUAS -(C Shell) setenv LINGUAS "de fr nl" +(C Shell) setenv LINGUAS "de fr nl" or specify it directly while configuring - env LINGUAS="de fr nl" ./configure + env LINGUAS="de fr nl" ./configure Consult the manual for more information on language names. -The second configure option is - - --with-included-gettext - -This forces to use the GNU implementation of the message handling library -regardless what the local C library provides. This possibility is -useful if the local C library is a glibc 2.1.x or older, which didn't -have all the features the included libintl has. - Other files you might look into: -`ABOUT-NLS' - current state of the GNU internationalization effort -`COPYING' - copying conditions -`DEPENDENCIES' - list of prerequisite packages, to be installed before this one -`INSTALL' - general compilation and installation rules -`NEWS' - major changes in the current version -`THANKS' - list of contributors - - -Some points you might be interested in before installing the package: - -1. If your system's C library already provides the gettext interface - and its associated tools don't come from this package, it might be - a good idea to configure the package with - --program-transform-name='s/^gettext$/g&/;s/^msgfmt$/g&/;s/^xgettext$/g&/' - - Systems affected by this are: - Solaris 2.x - -2. Some system have a very dumb^H^H^H^Hstrange version of msgfmt, the - one which comes with xview. This one is *not* usable. It's best - you delete^H^H^H^H^H^Hrename it or install this package as in the - point above with - --program-transform-name='s/^gettext$/g&/;s/^msgfmt$/g&/;s/^xgettext$/g&/' - -3. The locale name alias scheme implemented here is in a similar form - implemented in the X Window System. Especially the alias data base - file can be shared. Normally this file is found at something like - - /usr/lib/X11/locale/locale.alias - - If you have the X Window System installed try to find this file and - specify the path at the make run: - - make aliaspath='/usr/lib/X11/locale:/usr/local/lib/locale' - - (or whatever is appropriate for you). The file name is always - locale.alias. - In the misc/ subdirectory you find an example for an alias database file. - -4. The msgmerge program performs fuzzy search in the message sets. It - might run a long time on slow systems. I saw this problem when running - it on my old i386DX25. The time can really be several minutes, - especially if you have long messages and/or a great number of - them. - If you have a faster implementation of the fstrcmp() function and - want to share it with the rest of us, please contact me. +ABOUT-NLS - current state of the GNU internationalization effort +COPYING - copying conditions +DEPENDENCIES - list of prerequisite packages, to be installed before this one +INSTALL - general compilation and installation rules +NEWS - major changes in the current version +THANKS - list of contributors diff -Nru gettext-0.17/README.woe32 gettext-0.18.1.1/README.woe32 --- gettext-0.17/README.woe32 2007-10-17 21:56:42.000000000 +0000 +++ gettext-0.18.1.1/README.woe32 2010-06-06 12:49:57.000000000 +0000 @@ -1,4 +1,4 @@ -Installation on Woe32 (WinNT/2000/XP, Win95/98/ME): +Installation on Woe32 (WinNT/2000/XP/Vista/7, Win95/98/ME): This file explains how to create binaries for the mingw execution environment. For how to create binaries for the cygwin environment, please see the normal @@ -23,12 +23,26 @@ PATH=/usr/local/mingw/bin:$PATH export PATH ./configure --host=i586-pc-mingw32 --prefix=/usr/local/mingw \ - CPPFLAGS="-mno-cygwin -Wall -I/usr/local/mingw/include" \ - CFLAGS="-mno-cygwin -O2 -g" \ - CXXFLAGS="-mno-cygwin -O2 -g" \ - LDFLAGS="-mno-cygwin -L/usr/local/mingw/lib" + CC="gcc-3 -mno-cygwin" \ + CXX="g++-3 -mno-cygwin" \ + CPPFLAGS="-Wall -I/usr/local/mingw/include" \ + LDFLAGS="-L/usr/local/mingw/lib" -The -mno-cygwin tells the cygwin compiler and linker to build for mingw. -The -I and -L option are so that packages previously built for the +The -mno-cygwin option tells the cygwin compiler and linker to build for +mingw. The -I and -L option are so that packages previously built for the same environment are found. The --host option tells the various tools that you are building for mingw, not cygwin. + +It is also possible to build 64-bit mode binaries, by using the development +tool chain from the mingw-w64 project +and the configure options: + --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 \ + CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \ + LD=x86_64-w64-mingw32-ld NM=x86_64-w64-mingw32-nm \ + AR=x86_64-w64-mingw32-ar RANLIB=x86_64-w64-mingw32-ranlib + +Dependencies: + +This package depends on GNU libiconv. (See the file DEPENDENCIES.) Before +building this package, you need to build GNU libiconv, in the same development +environment, with the same configure options, and install it ("make install"). diff -Nru gettext-0.17/THANKS gettext-0.18.1.1/THANKS --- gettext-0.17/THANKS 2007-06-03 17:53:57.000000000 +0000 +++ gettext-0.18.1.1/THANKS 2010-06-06 12:49:57.000000000 +0000 @@ -6,7 +6,7 @@ software. Written in April-June 1995 by -Ulrich Drepper drepper@ipd.info.uni-karlsruhe.de +Ulrich Drepper drepper@ipd.info.uni-karlsruhe.de Special thanks to François Pinard , who did a major part of the testing, provided the Emacs PO mode, and wrote major @@ -24,311 +24,311 @@ Thanks to all of the following for their valuable hints/fixes/discussions/contributions: -Aaron Stone aaron@serendipity.cx -Aaron Williams aaron_williams@net.com -Abel Cheung abelcheung@gmail.com -Adam Heath doogie@debian.org -Adrian Bunk bunk@fs.tum.de -Akim Demaille akim@epita.fr -Alain Bench messtic@oreka.com -Alain Guibert derogaton+bggt@oreka.com, alguibert@free.fr -Albert Chin-A-Young china@thewrittenword.com -Alexander V. Lukyanov lav@yars.free.net -Alexander Turbov AVTurbov@gwise.eltech.ru -Alexandre Duret-Lutz aduret@enst.fr -Alfred M. Szmidt ams@kemisten.nu -Alfredo alfredio@ciaoweb.it -Amos Batto amosbatto@yahoo.com -Andreas Buening andreas.buening@nexgo.de -Andreas Fischer a.fischer@asentics.de -Andreas Schwab schwab@issan.informatik.uni-dortmund.de -Andrew Suffield asuffield@debian.org -Andrew V. Samoilov kai@cmail.ru -Andrew Walrond andrew@walrond.org -Andrew Zabolotny zap@cobra.ru -Andries Brouwer andries.brouwer@cwi.nl -Andriy Gapon avg@icyb.net.ua -Arkadiusz Miśkiewicz arekm@pld-linux.org -Arpad Biro biro_arpad@yahoo.com -Artem Vakhitov temcat@mail.ru -Arto C. Nirkko anirkko@insel.ch -Asgeir Frimannsson asgeirf@redhat.com -A. Sopicki a.sopicki@gmx.de -? atras-ch@mail.msiu.ru -Bang Jun Young bangjy@nownuri.nowcom.co.kr -Barry A. Warsaw barry@zope.com -Behdad Esfahbod behdad@cs.toronto.edu -Ben Elliston bje@redhat.com -Benoît Sibaud benoit.sibaud@rd.francetelecom.com -Bernard Massot bmassot@free.fr -Bernhard Herzog bernhard@users.sourceforge.net -Bethor bethor@gmx.li -Bill Perry wmperry@aventail.com -Bjoern Voigt bjoern@cs.tu-berlin.de -Bob Rossi bob_rossi@cox.net -Bram Moolenaar bram@moolenaar.net -Bruno Haible haible@ma2s2.mathematik.uni-karlsruhe.de -Carlo Wood carlo@alinoe.com -Carlos Perelló Marín carlos@gnome.org -Cary Farah cfarah@jjkeller.com -Charles Wilson cwilson@ece.gatech.edu -Chris Pickett chris.pickett@mail.mcgill.ca -Chris Zubrzycki beren@mac.com -Christian Casteyde casteyde.christian@free.fr -Christian Neumair chris@gnome-de.org -Christian von Roques roques@pond.sub.org -Christoph Thielecke u15119@hs-harz.de -Christopher Seip chris.seip@hp.com -Chuck Berg chuckhberg@yahoo.com -Chusslove Illich (Часлав Илић) caslav.ilic@gmx.net -Claudio Fontana claudio@gnu.org -Clytie Siddall clytie@riverland.net.au -Colin Marquardt colin@marquardt-home.de -Colin Watson cjwatson@debian.org -Crispin Flowerday cflowerday@zeus.com -Dalibor Topic robilad@kaffe.org -Daniel Burrows dburrows@debian.org -Daniel Leidert daniel.leidert@wgdd.de -Daniel Schepler schepler@math.berkeley.edu -Danilo Šegan (Данило Шеган) danilo@gnome.org -Dave Patton dpatton@confluence.org -David Faure faure@kde.org -David Fraser davidf@sjsoft.com -Denis Barbier barbier@linuxfr.org -Denis Excoffier Denis.Excoffier@free.fr -Deniz Akkus deniz@arayan.com -Dennis Bjorklund db@zigo.dhs.org -Dennis Schridde devurandom@gmx.net -Derek Clegg derek_clegg@next.com -Derek Robert Price derek@ximbiot.com -Dwayne Bailey dwayne@obsidian.co.za -Earnie Boyd earnie_boyd@yahoo.com -Ed Avis avised@kbcfp.com -Eddy Petrişor eddy.petrisor@gmail.com -Edmund Grimley Evans edmundo@rano.org -Egmont Koblinger egmont@uhulinux.hu -Eli Zaretskii eliz@is.elta.co.il -Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de -Enrique Melero Gómez justine@iprolink.ch -Eric Backus ericb@lsid.hp.com -Eric Blake ebb9@byu.net -Eric Botcazou ebotcazou@libertysurf.fr -Erik Sigra sigra@home.se -Farzaneh Sarafraz farzaneh@farsiweb.info -Fatih Demir kabalak@gtranslator.org -Felipe Contreras al593181@mail.mty.itesm.mx -Felix Natter f.natter@ndh.net -Finlay Dobbie finlay.dobbie@gmail.com -Francesco Potortì pot@fly.cnuce.cnr.it -Frank Donahoe fdonahoe@wilkes1.wilkes.edu -Frédéric L. W. Meunier 0@pervalidus.tk -Gabor Kelemen kelemeng@gnome.hu -Gabriele Stilli superenzima@libero.it -Gaëtan Frenoy gaetan@frenoy.net -Gary V. Vaughan gary@gnu.org -Gerald Combs gerald@ethereal.com -Glenn Popelka gpp@mail.gpopelka.com -Golubev I. N. gin@mo.msk.ru -Greg McGary gkm@magilla.cichlid.com -Göran Uddeborg gvran@uddeborg.pp.se -Hagen Fritsch itooktheredpill@gmx.de -Haibin Zhang dragzhb@yahoo.com.cn -Han Boetes han@mijncomputer.nl -Hans Ulrich Niedermann debian@n-dimensional.de -Henry Nelson netb@yuba.ne.jp -H. J. Lu hjl@lucon.org -Hrvoje Niksic hniksic@srce.hr -Igor Brezac igor@ipass.net -I. Thomas Cundiff tcundiff@eclipse.net -Jacob (=Jouk) Jansen joukj@hrem.stm.tudelft.nl -Jakub Bogusz qboosh@pld-linux.org -Jakub Jelinek jj@sunsite.ms.mff.cuni.cz -James A Baker jabaker@mac.com -James Henstridge james@daa.com.au -James Youngman jay@gnu.org -Jan Djärv jan.djarv@mbox200.swipnet.se -Jan-Marek Glogowski glogow@stud.fbi.fh-darmstadt.de -Jan Schneider jan@horde.org -Jason Keltz jas@cs.yorku.ca -Javier Fernández-Sanguino Peña jfs@computer.org -Jeff Bonggren jbon@cfl.rr.com -Jeff Rizzo riz@netbsd.org -Jens A. Tkotz jens@peino.de -Jens Petersen petersen@redhat.com -Jim Meyering meyering@na-net.ornl.gov -Jochen Hein jochen@jochen.org -Joel Reicher joel@panacea.null.org -Jörg Schilling schilling@fokus.fraunhofer.de -Joey Hess joeyh@debian.org -Jonas Koch Bentzen jonas@understroem.dk -Joosep-Georg Järvemaa joosep-georg.jarvemaa_4898@eesti.ee -Jorn Baayen jbaayen@dds.nl -Josep Puigdemont baldrick@terra.es -Joshua R. Poulson jrp@plaza.ds.adp.com -Jouko Orava joorava@pcu.helsinki.fi -Jozef Riha jose1711@gmail.com -Juan Manuel Guerrero st001906@hrz1.hrz.tu-darmstadt.de -Jürgen A. Erhard jae+debian@jerhard.org -Julien Chiron julien.chiron@univ.u-3mrs.fr -Jun Sawataishi jsawa@attglobal.net -Kalle Niemitalo tosi@ees2.oulu.fi -Karl Berry kb@cs.umb.edu -Karl Chen quarl@hkn.eecs.berkeley.edu -Karl Eichwalder ke@suse.de -Kaveh R. Ghazi ghazi@caip.rutgers.edu -Kenichi Handa handa@etl.go.jp -Ken Y. Clark kclark@logsoft.com -Kevin Ryde user42@zip.com.au -Kingpin mthurn@copper.dulles.tasc.com -Kiyotaka Sakai ksakai@isr.co.jp -Kouichi Hashikawa z01a7ksy@cs.ecip.tohoku.ac.jp -Larry Schwimmer rosebud@cyclone.stanford.edu -Lars Hecking lhecking@nmrc.ie -Laurent Bourbeau bourbeau@progiciels-bpi.ca -Len Makin len@hpc.csiro.au -Leonard den Ottolander leonard@den.ottolander.nl -Leonardo Fontenelle leo.fontenelle@gmail.com -Liu Garfield jackliu9999@hotmail.com -Lorenzo Gil Sanchez lgs@sicem.biz -Luke Schierer lschiere@rackspace.com -Maciej W. Rozycki macro@ds2.pg.gda.pl -Mads Martin Joergensen mmj@suse.de -Marc Prior MarcPrior@compuserve.com -Marcel Telka marcel@telka.sk -Marcus Daniels marcus@sysc.pdx.edu -Marcus Meissner meissner@suse.de -Marin Purgar pmc@asgard.hr -Marius Schamschula mschamschula@gmail.com -Mark A. Wicks mwicks@kettering.edu -Mark D. Baushke mdb@cvshome.org -Mark Detrick Mark.Detrick@mcdata.com -Mark Eichin eichin@thok.org -Mark Junker mjscod@gmx.de -Martin Mokrejš mmokrejs@natur.cuni.cz -Martin Pitt mpitt@debian.org -Martin Quinson martin.quinson@ens-lyon.fr -Martin v. Löwis martin@loewis.home.cs.tu-berlin.de -Matt Dreezer matthew.dreezer@edl.uk.eds.com -Matthew McGillis matthew@jenika.com -Matthias Clasen mclasen@redhat.com -Mattias Ellert mattias.ellert@tsl.uu.se -Matthias Kiefer kiefer@kde.org -Max de Mendizabal max@acer.com.mx -Michael C. Toren mct@toren.net -Michael Opdenacker m-opdenacker@ti.com -Michael Schloh von Bennewitz michael.schloh@cw.com -Michael Stather michaelstather@nuzi.de -Michal Černoevič Michal.Cernoevic@pvt.cz -Michel Robitaille robitail@iro.umontreal.ca -Michelle Konzack linux4michelle@freenet.de -Mike Frysinger vapier@gentoo.org -Miroslaw Dobrzanski-Neumann mne@mosaic-ag.com -? mus1876@gmx.info -Nelson H. F. Beebe beebe@math.utah.edu -Nick Clifton nickc@redhat.com -Nicolas François nicolas.francois@centraliens.net -Niki Waibel niki.waibel@newlogic.com -Nils Magnus Larsgard nmlarsgaard@atmel.no -Nils Naumann naumann@unileoben.ac.at -Nina Kusnetsova nina@ns.kinetics.nsc.ru -Noah Friedman friedman@splode.com -Noah Slater nslater@gmail.com -Olly Betts olly@survex.com -O'Riva oriva@earthlink.net -Owen Taylor otaylor@redhat.com -Pablo Saratxaga pablo@mandrakesoft.com -Paolo Bonzini bonzini@gnu.org -Paul D. Smith psmith@gnu.org -Paul Eggert eggert@twinsun.com -Paul Jarc prj@po.cwru.edu -Paul Martinolich martinol@nrlssc.navy.mil -Pavel Roskin proski@gnu.org -Pekka Järveläinen pj@csc.fi -Pepa cerna.zelva@seznam.cz -Perry Rapp prapp@erols.com, lifelines_3_0_18@hotmail.com -Perry Smith pedz@easesoftware.com -Peter Breitenlohner peb@mppmu.mpg.de -Pierre pierre42d@9online.fr -Philipp Thomas pthomas@suse.de -Primoz Peterlin primoz.peterlin@biofiz.mf.uni-lj.si -Rafał Maszkowski rzm@icm.edu.pl -Ralf Corsepius rc040203@freenet.de -Ralf Menzel menzel@ls6.cs.uni-dortmund.de -Ralf Wildenhues Ralf.Wildenhues@gmx.de -Raphaël Zhou xzhou@tlmcom.fr -Recai Oktaş roktas@omu.edu.tr -Reinout van Schouwen reinout@cs.vu.nl -Rhys Weatherley rweather@zip.com.au -Richard Lloyd richard.lloyd@connectinternetsolutions.com -Richard S. Blake blakers@presence-group.com -Richard Stallman rms@gnu.org -Rob Landley rob@landley.net -Rob Leslie rob@mars.org -Robert Millan rmh@aybabtu.com -Robert Vock RobertVock@gmx.de -Roberto Bagnara bagnara@cs.unipr.it -Rodrigo Stulzer Lopes rodrigo@conectiva.com.br -Roger Leigh rl117@york.ac.uk -Roland McGrath roland@gnu.ai.mit.edu -Ron Lee ron@debian.org -Roozbeh Pournader roozbeh@sharif.edu -Ross Golder ross@golder.org -Ryan Anderson ryan@autoweb.net -Ryan Schmidt gettext-2007b@ryandesign.com -Sakai Kiyotaka ksakai@netwk.ntt-at.co.jp -Sam Hocevar sam@zoy.org -Sam Steingold sds@gnu.org -Santiago Vila Doncel sanvila@unex.es -Sebastian Günther sguenther@gmx.de -Sergey Poznyakoff gray@mirddin.farlep.net -Sergio Talens-Oliag sto@debian.org -Simon Josefsson jas@extundo.com -Simon Watts swatts@ngms.eu.com -Simos Xenitellis simos74@gmx.net -Stanislav Brabec sbrabec@suse.cz -Stanislav Visnovsky visnovsky@nenya.ms.mff.cuni.cz -Stefan Hundhammer sh@suse.de -Stefan Kost kost@imn.htwk-leipzig.de -Stefan Kowski stefan.kowski@parks-informatik.de -Stefan Nordhausen nordhaus@informatik.hu-berlin.de -Steffen Macke sdteffen@gmail.com -Stepan Kasal kasal@math.cas.cz -Stephan Kulow coolo@kde.org -Stephane Matamontero stephane.matamontero@gemodek.de -Stephen Cartwright sgcartwr@ucalgary.ca -Stephen Gildea gildea@stop.mail-abuse.org -Steven Edwards Steven_Ed4153@yahoo.com -Svante Seleborg svante@axantum.com -Sven Joachim sven_joachim@web.de -Sven Utcke utcke@informatik.uni-hamburg.de -Sylvain Beucler beuc@gnu.org -Thomas E. Dickey dickey@clark.net -Thomas Vander Stichele thomas@apestaart.org -Thorsten Kukuk kukuk@suse.de -Thorsten Maerz torte@netztorte.de -Tim Mooney mooney@dogbert.cc.ndsu.nodak.edu -Tim Van Holder tim.van.holder@pandora.be -Tom Tromey tromey@cygnus.com -Tommy Johansson tommy@kanalen.org -Tor Lillqvist tml@iki.fi -Trond Eivind Glomsrød teg@redhat.com -Uwe Ohse uwe@tirka.gun.de -Vaclav Haisman V.Haisman@sh.cvut.cz -Valery Beaud valery.beaud@art.alcatel.fr -Vera Mickael vera.mickael@free.fr -Veronica Loell info@nakawe.se -Vincent Torri vtorri@univ-evry.fr -Volodymyr M. Lisivka lvm@mystery.lviv.net -Wang Jian lark@linux.net.cn -Warren L Dodge warrend@mdhost.cse.tek.com -Werner Koch wk@gnupg.org -Werner Lemberg wl@gnu.org -Wesley J. Landaker wjl@icecavern.net -William J Poser wjposer@ldc.upenn.edu -Wojciech Polak polak@gnu.org -Xiong Jiang jxiong@offtopic.org -Yann Dirson ydirson@altern.org -Yves Codet ycodet@club-internet.fr +Aaron Stone aaron@serendipity.cx +Aaron Williams aaron_williams@net.com +Abel Cheung abelcheung@gmail.com +Adam Heath doogie@debian.org +Adrian Bunk bunk@fs.tum.de +Akim Demaille akim@epita.fr +Alain Bench messtic@oreka.com +Alain Guibert derogaton+bggt@oreka.com, alguibert@free.fr +Albert Chin-A-Young china@thewrittenword.com +Alexander V. Lukyanov lav@yars.free.net +Alexander Turbov AVTurbov@gwise.eltech.ru +Alexandre Duret-Lutz aduret@enst.fr +Alfred M. Szmidt ams@kemisten.nu +Alfredo alfredio@ciaoweb.it +Amos Batto amosbatto@yahoo.com +Andreas Buening andreas.buening@nexgo.de +Andreas Fischer a.fischer@asentics.de +Andreas Schwab schwab@issan.informatik.uni-dortmund.de +Andrew Suffield asuffield@debian.org +Andrew V. Samoilov kai@cmail.ru +Andrew Walrond andrew@walrond.org +Andrew Zabolotny zap@cobra.ru +Andries Brouwer andries.brouwer@cwi.nl +Andriy Gapon avg@icyb.net.ua +Arkadiusz Miśkiewicz arekm@pld-linux.org +Arpad Biro biro_arpad@yahoo.com +Artem Vakhitov temcat@mail.ru +Arto C. Nirkko anirkko@insel.ch +Asgeir Frimannsson asgeirf@redhat.com +A. Sopicki a.sopicki@gmx.de +? atras-ch@mail.msiu.ru +Bang Jun Young bangjy@nownuri.nowcom.co.kr +Barry A. Warsaw barry@zope.com +Behdad Esfahbod behdad@cs.toronto.edu +Ben Elliston bje@redhat.com +Benoît Sibaud benoit.sibaud@rd.francetelecom.com +Bernard Massot bmassot@free.fr +Bernhard Herzog bernhard@users.sourceforge.net +Bethor bethor@gmx.li +Bill Perry wmperry@aventail.com +Bjoern Voigt bjoern@cs.tu-berlin.de +Bob Rossi bob_rossi@cox.net +Bram Moolenaar bram@moolenaar.net +Bruno Haible haible@ma2s2.mathematik.uni-karlsruhe.de +Carlo Wood carlo@alinoe.com +Carlos Perelló Marín carlos@gnome.org +Cary Farah cfarah@jjkeller.com +Charles Wilson cwilson@ece.gatech.edu +Chris Pickett chris.pickett@mail.mcgill.ca +Chris Zubrzycki beren@mac.com +Christian Casteyde casteyde.christian@free.fr +Christian Neumair chris@gnome-de.org +Christian von Roques roques@pond.sub.org +Christoph Thielecke u15119@hs-harz.de +Christopher Seip chris.seip@hp.com +Chuck Berg chuckhberg@yahoo.com +Chusslove Illich (Часлав Илић) caslav.ilic@gmx.net +Claudio Fontana claudio@gnu.org +Clytie Siddall clytie@riverland.net.au +Colin Marquardt colin@marquardt-home.de +Colin Watson cjwatson@debian.org +Crispin Flowerday cflowerday@zeus.com +Dalibor Topic robilad@kaffe.org +Daniel Burrows dburrows@debian.org +Daniel Leidert daniel.leidert@wgdd.de +Daniel Schepler schepler@math.berkeley.edu +Danilo Šegan (Данило Шеган) danilo@gnome.org +Dave Patton dpatton@confluence.org +David Faure faure@kde.org +David Fraser davidf@sjsoft.com +Denis Barbier barbier@linuxfr.org +Denis Excoffier Denis.Excoffier@free.fr +Deniz Akkus deniz@arayan.com +Dennis Bjorklund db@zigo.dhs.org +Dennis Schridde devurandom@gmx.net +Derek Clegg derek_clegg@next.com +Derek Robert Price derek@ximbiot.com +Dwayne Bailey dwayne@obsidian.co.za +Earnie Boyd earnie_boyd@yahoo.com +Ed Avis avised@kbcfp.com +Eddy Petrişor eddy.petrisor@gmail.com +Edmund Grimley Evans edmundo@rano.org +Egmont Koblinger egmont@uhulinux.hu +Eli Zaretskii eliz@is.elta.co.il +Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de +Enrique Melero Gómez justine@iprolink.ch +Eric Backus ericb@lsid.hp.com +Eric Blake ebb9@byu.net +Eric Botcazou ebotcazou@libertysurf.fr +Erik Sigra sigra@home.se +Farzaneh Sarafraz farzaneh@farsiweb.info +Fatih Demir kabalak@gtranslator.org +Felipe Contreras al593181@mail.mty.itesm.mx +Felix Natter f.natter@ndh.net +Finlay Dobbie finlay.dobbie@gmail.com +Francesco Potortì pot@fly.cnuce.cnr.it +Frank Donahoe fdonahoe@wilkes1.wilkes.edu +Frédéric L. W. Meunier 0@pervalidus.tk +Gabor Kelemen kelemeng@gnome.hu +Gabriele Stilli superenzima@libero.it +Gaëtan Frenoy gaetan@frenoy.net +Gary V. Vaughan gary@gnu.org +Gerald Combs gerald@ethereal.com +Glenn Popelka gpp@mail.gpopelka.com +Golubev I. N. gin@mo.msk.ru +Greg McGary gkm@magilla.cichlid.com +Göran Uddeborg gvran@uddeborg.pp.se +Hagen Fritsch itooktheredpill@gmx.de +Haibin Zhang dragzhb@yahoo.com.cn +Han Boetes han@mijncomputer.nl +Hans Ulrich Niedermann debian@n-dimensional.de +Henry Nelson netb@yuba.ne.jp +H. J. Lu hjl@lucon.org +Hrvoje Niksic hniksic@srce.hr +Igor Brezac igor@ipass.net +I. Thomas Cundiff tcundiff@eclipse.net +Jacob (=Jouk) Jansen joukj@hrem.stm.tudelft.nl +Jakub Bogusz qboosh@pld-linux.org +Jakub Jelinek jj@sunsite.ms.mff.cuni.cz +James A Baker jabaker@mac.com +James Henstridge james@daa.com.au +James Youngman jay@gnu.org +Jan Djärv jan.djarv@mbox200.swipnet.se +Jan-Marek Glogowski glogow@stud.fbi.fh-darmstadt.de +Jan Schneider jan@horde.org +Jason Keltz jas@cs.yorku.ca +Javier Fernández-Sanguino Peña jfs@computer.org +Jeff Bonggren jbon@cfl.rr.com +Jeff Rizzo riz@netbsd.org +Jens A. Tkotz jens@peino.de +Jens Petersen petersen@redhat.com +Jim Meyering meyering@na-net.ornl.gov +Jochen Hein jochen@jochen.org +Joel Reicher joel@panacea.null.org +Jörg Schilling schilling@fokus.fraunhofer.de +Joey Hess joeyh@debian.org +Jonas Koch Bentzen jonas@understroem.dk +Joosep-Georg Järvemaa joosep-georg.jarvemaa_4898@eesti.ee +Jorn Baayen jbaayen@dds.nl +Josep Puigdemont baldrick@terra.es +Joshua R. Poulson jrp@plaza.ds.adp.com +Jouko Orava joorava@pcu.helsinki.fi +Jozef Riha jose1711@gmail.com +Juan Manuel Guerrero st001906@hrz1.hrz.tu-darmstadt.de +Jürgen A. Erhard jae+debian@jerhard.org +Julien Chiron julien.chiron@univ.u-3mrs.fr +Jun Sawataishi jsawa@attglobal.net +Kalle Niemitalo tosi@ees2.oulu.fi +Karl Berry kb@cs.umb.edu +Karl Chen quarl@hkn.eecs.berkeley.edu +Karl Eichwalder ke@suse.de +Kaveh R. Ghazi ghazi@caip.rutgers.edu +Kenichi Handa handa@etl.go.jp +Ken Y. Clark kclark@logsoft.com +Kevin Ryde user42@zip.com.au +Kingpin mthurn@copper.dulles.tasc.com +Kiyotaka Sakai ksakai@isr.co.jp +Kouichi Hashikawa z01a7ksy@cs.ecip.tohoku.ac.jp +Larry Schwimmer rosebud@cyclone.stanford.edu +Lars Hecking lhecking@nmrc.ie +Laurent Bourbeau bourbeau@progiciels-bpi.ca +Len Makin len@hpc.csiro.au +Leonard den Ottolander leonard@den.ottolander.nl +Leonardo Fontenelle leo.fontenelle@gmail.com +Liu Garfield jackliu9999@hotmail.com +Lorenzo Gil Sanchez lgs@sicem.biz +Luke Schierer lschiere@rackspace.com +Maciej W. Rozycki macro@ds2.pg.gda.pl +Mads Martin Joergensen mmj@suse.de +Marc Prior MarcPrior@compuserve.com +Marcel Telka marcel@telka.sk +Marcus Daniels marcus@sysc.pdx.edu +Marcus Meissner meissner@suse.de +Marin Purgar pmc@asgard.hr +Marius Schamschula mschamschula@gmail.com +Mark A. Wicks mwicks@kettering.edu +Mark D. Baushke mdb@cvshome.org +Mark Detrick Mark.Detrick@mcdata.com +Mark Eichin eichin@thok.org +Mark Junker mjscod@gmx.de +Martin Mokrejš mmokrejs@natur.cuni.cz +Martin Pitt mpitt@debian.org +Martin Quinson martin.quinson@ens-lyon.fr +Martin v. Löwis martin@loewis.home.cs.tu-berlin.de +Matt Dreezer matthew.dreezer@edl.uk.eds.com +Matthew McGillis matthew@jenika.com +Matthias Clasen mclasen@redhat.com +Mattias Ellert mattias.ellert@tsl.uu.se +Matthias Kiefer kiefer@kde.org +Max de Mendizabal max@acer.com.mx +Michael C. Toren mct@toren.net +Michael Opdenacker m-opdenacker@ti.com +Michael Schloh von Bennewitz michael.schloh@cw.com +Michael Stather michaelstather@nuzi.de +Michal Černoevič Michal.Cernoevic@pvt.cz +Michel Robitaille robitail@iro.umontreal.ca +Michelle Konzack linux4michelle@freenet.de +Mike Frysinger vapier@gentoo.org +Miroslaw Dobrzanski-Neumann mne@mosaic-ag.com +? mus1876@gmx.info +Nelson H. F. Beebe beebe@math.utah.edu +Nick Clifton nickc@redhat.com +Nicolas François nicolas.francois@centraliens.net +Niki Waibel niki.waibel@newlogic.com +Nils Magnus Larsgard nmlarsgaard@atmel.no +Nils Naumann naumann@unileoben.ac.at +Nina Kusnetsova nina@ns.kinetics.nsc.ru +Noah Friedman friedman@splode.com +Noah Slater nslater@gmail.com +Olly Betts olly@survex.com +O'Riva oriva@earthlink.net +Owen Taylor otaylor@redhat.com +Pablo Saratxaga pablo@mandrakesoft.com +Paolo Bonzini bonzini@gnu.org +Paul D. Smith psmith@gnu.org +Paul Eggert eggert@twinsun.com +Paul Jarc prj@po.cwru.edu +Paul Martinolich martinol@nrlssc.navy.mil +Pavel Roskin proski@gnu.org +Pekka Järveläinen pj@csc.fi +Pepa cerna.zelva@seznam.cz +Perry Rapp prapp@erols.com, lifelines_3_0_18@hotmail.com +Perry Smith pedz@easesoftware.com +Peter Breitenlohner peb@mppmu.mpg.de +Pierre pierre42d@9online.fr +Philipp Thomas pthomas@suse.de +Primoz Peterlin primoz.peterlin@biofiz.mf.uni-lj.si +Rafał Maszkowski rzm@icm.edu.pl +Ralf Corsepius rc040203@freenet.de +Ralf Menzel menzel@ls6.cs.uni-dortmund.de +Ralf Wildenhues Ralf.Wildenhues@gmx.de +Raphaël Zhou xzhou@tlmcom.fr +Recai Oktaş roktas@omu.edu.tr +Reinout van Schouwen reinout@cs.vu.nl +Rhys Weatherley rweather@zip.com.au +Richard Lloyd richard.lloyd@connectinternetsolutions.com +Richard S. Blake blakers@presence-group.com +Richard Stallman rms@gnu.org +Rob Landley rob@landley.net +Rob Leslie rob@mars.org +Robert Millan rmh@aybabtu.com +Robert Vock RobertVock@gmx.de +Roberto Bagnara bagnara@cs.unipr.it +Rodrigo Stulzer Lopes rodrigo@conectiva.com.br +Roger Leigh rl117@york.ac.uk +Roland McGrath roland@gnu.ai.mit.edu +Ron Lee ron@debian.org +Roozbeh Pournader roozbeh@sharif.edu +Ross Golder ross@golder.org +Ryan Anderson ryan@autoweb.net +Ryan Schmidt gettext-2007b@ryandesign.com +Sakai Kiyotaka ksakai@netwk.ntt-at.co.jp +Sam Hocevar sam@zoy.org +Sam Steingold sds@gnu.org +Santiago Vila Doncel sanvila@unex.es +Sebastian Günther sguenther@gmx.de +Sergey Poznyakoff gray@mirddin.farlep.net +Sergio Talens-Oliag sto@debian.org +Simon Josefsson jas@extundo.com +Simon Watts swatts@ngms.eu.com +Simos Xenitellis simos74@gmx.net +Stanislav Brabec sbrabec@suse.cz +Stanislav Visnovsky visnovsky@nenya.ms.mff.cuni.cz +Stefan Hundhammer sh@suse.de +Stefan Kost kost@imn.htwk-leipzig.de +Stefan Kowski stefan.kowski@parks-informatik.de +Stefan Nordhausen nordhaus@informatik.hu-berlin.de +Steffen Macke sdteffen@gmail.com +Stepan Kasal kasal@math.cas.cz +Stephan Kulow coolo@kde.org +Stephane Matamontero stephane.matamontero@gemodek.de +Stephen Cartwright sgcartwr@ucalgary.ca +Stephen Gildea gildea@stop.mail-abuse.org +Steven Edwards Steven_Ed4153@yahoo.com +Svante Seleborg svante@axantum.com +Sven Joachim sven_joachim@web.de +Sven Utcke utcke@informatik.uni-hamburg.de +Sylvain Beucler beuc@gnu.org +Thomas E. Dickey dickey@clark.net +Thomas Vander Stichele thomas@apestaart.org +Thorsten Kukuk kukuk@suse.de +Thorsten Maerz torte@netztorte.de +Tim Mooney mooney@dogbert.cc.ndsu.nodak.edu +Tim Van Holder tim.van.holder@pandora.be +Tom Tromey tromey@cygnus.com +Tommy Johansson tommy@kanalen.org +Tor Lillqvist tml@iki.fi +Trond Eivind Glomsrød teg@redhat.com +Uwe Ohse uwe@tirka.gun.de +Vaclav Haisman V.Haisman@sh.cvut.cz +Valery Beaud valery.beaud@art.alcatel.fr +Vera Mickael vera.mickael@free.fr +Veronica Loell info@nakawe.se +Vincent Torri vtorri@univ-evry.fr +Volodymyr M. Lisivka lvm@mystery.lviv.net +Wang Jian lark@linux.net.cn +Warren L Dodge warrend@mdhost.cse.tek.com +Werner Koch wk@gnupg.org +Werner Lemberg wl@gnu.org +Wesley J. Landaker wjl@icecavern.net +William J Poser wjposer@ldc.upenn.edu +Wojciech Polak polak@gnu.org +Xiong Jiang jxiong@offtopic.org +Yann Dirson ydirson@altern.org +Yves Codet ycodet@club-internet.fr Thanks to all members of the translation teams for the different diff -Nru gettext-0.17/version.sh gettext-0.18.1.1/version.sh --- gettext-0.17/version.sh 2007-11-06 23:23:45.000000000 +0000 +++ gettext-0.18.1.1/version.sh 2010-06-06 12:49:58.000000000 +0000 @@ -1,3 +1,3 @@ # Version number and release date. -VERSION_NUMBER=0.17 -RELEASE_DATE=2007-11-07 # in "date +%Y-%m-%d" format +VERSION_NUMBER=0.18.1 +RELEASE_DATE=2010-06-04 # in "date +%Y-%m-%d" format diff -Nru gettext-0.17/windows/gettext.rc gettext-0.18.1.1/windows/gettext.rc --- gettext-0.17/windows/gettext.rc 2007-10-07 19:37:40.000000000 +0000 +++ gettext-0.18.1.1/windows/gettext.rc 2010-06-06 12:49:58.000000000 +0000 @@ -21,10 +21,10 @@ BEGIN VALUE "Comments", "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License along with this program. If not, see .\0" VALUE "CompanyName", "Free Software Foundation\0" - VALUE "FileDescription", "GPLed program for Windows NT/2000/XP/Vista and Windows 95/98/ME\0" + VALUE "FileDescription", "GPLed program for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0" VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" VALUE "InternalName", "*.exe\0" - VALUE "LegalCopyright", "Copyright (C) 1995-2007\0" + VALUE "LegalCopyright", "Copyright (C) 1995-2010\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "*.exe\0" VALUE "ProductName", "gettext utilities\0"